diff --git a/dist/README.md b/dist/README.md index 200cb52250c..1af804d1fa4 100644 --- a/dist/README.md +++ b/dist/README.md @@ -229,7 +229,7 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.9 MB | 1.2 MB | 398.2 kB | +| 2.9 MB | 1.2 MB | 398.3 kB | #### CDN links > https://cdn.plot.ly/plotly-finance-3.4.0.js diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js index 24c44dee32e..7888bf15e0b 100644 --- a/dist/plotly-basic.js +++ b/dist/plotly-basic.js @@ -13756,9 +13756,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35886,7 +35886,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js index db891b91261..39e003dd4eb 100644 --- a/dist/plotly-basic.min.js +++ b/dist/plotly-basic.min.js @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var fI=Object.defineProperty,cI=Object.defineProperties;var vI=Object.getOwnPropertyDescriptors;var pb=Object.getOwnPropertySymbols;var hI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable;var mb=(e,r,t)=>r in e?fI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,no=(e,r)=>{for(var t in r||(r={}))hI.call(r,t)&&mb(e,t,r[t]);if(pb)for(var t of pb(r))dI.call(r,t)&&mb(e,t,r[t]);return e},mv=(e,r)=>cI(e,vI(r));var J=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var yv=J(yb=>{"use strict";yb.version="3.4.0"});var bb=J((gb,gv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof gv!="undefined"&&gv.exports&&(gv.exports=t[r])})("Promise",typeof window!="undefined"?window:gb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,M){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:M!==!1})}}catch(_){r=function(T,b,M){return T[b]=M,T}}a=function(){var w,T,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),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,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=w(_(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[G++],he,we,te,se=new b,ue;++X=p.length)return E;var G=[],X=x[N++];return E.forEach(function(j,ee){G.push({key:j,values:R(ee,N)})}),X?G.sort(function(j,ee){return X(j.key,ee.key)}):G}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 K(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}},Ae.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(ve(p,c[p]));return this}return this.each(ve(c,p))};function ve(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," ")}Ae.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),A=(c=Re(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},Ae.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=Ve);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 G(){var X=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),j;for(var ee in this)if(j=ee.match(X)){var he=this[ee];this.removeEventListener(j[1],he,he.$),delete this[ee]}}return S?p?N:E:p?H:G}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(c){"on"+c in a&&He.remove(c)});function Je(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 Ve(c,p){var x=Je(c,p);return function(A){var S=this,L=A.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,A)}}var Xe,lr=0;function tr(c){var p=".dragsuppress-"+ ++lr,x="click"+p,A=e.select(i(c)).on("touchmove"+p,ne).on("dragstart"+p,ne).on("selectstart"+p,ne);if(Xe==null&&(Xe="onselectstart"in c?!1:V(c.style,"userSelect")),Xe){var S=n(c).style,L=S[Xe];S[Xe]="none"}return function(R){if(A.on(p,null),Xe&&(S[Xe]=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,pe())};var Qe=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(Qe<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();Qe=!(L.f||L.e),x.remove()}}return Qe?(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=pe().changedTouches),p){for(var A=0,S=p.length,L;A0?1:c<0?-1:0}function it(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?Ee:Math.acos(c)}function yt(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function Dt(c){return((c=Math.exp(c))-1/c)/2}function Kt(c){return((c=Math.exp(c))+1/c)/2}function qa(c){return((c=Math.exp(2*c))-1)/(c+1)}function sa(c){return(c=Math.sin(c/2))*c}var ua=Math.SQRT2,vr=2,lt=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,G=R-A,X=N*N+G*G,j,ee;if(X0&&(er=er.transition().duration(R)),er.call(Me.event)}function dr(){se&&se.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),_e&&_e.domain(ue.range().map(function(er){return(er-c.y)/c.k}).map(ue.invert))}function pr(er){E++||er({type:"zoomstart"})}function Cr(er){dr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function mr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=we.of(er,arguments),qr=0,Kr=e.select(i(er)).on(G,da).on(X,Ea),Tt=ce(e.mouse(er)),Vt=tr(er);vv.call(er),pr(Lr);function da(){qr=1,ur(e.mouse(er),Tt),Cr(Lr)}function Ea(){Kr.on(G,null).on(X,null),Vt(qr),mr(Lr)}}function Jr(){var er=this,Lr=we.of(er,arguments),qr={},Kr=0,Tt,Vt=".zoom-"+e.event.changedTouches[0].identifier,da="touchmove"+Vt,Ea="touchend"+Vt,Ba=[],Pa=e.select(er),Ga=tr(er);Wa(),pr(Lr),Pa.on(N,null).on(ee,Wa);function Ta(){var Vn=e.touches(er);return Tt=c.k,Vn.forEach(function(pa){pa.identifier in qr&&(qr[pa.identifier]=ce(pa))}),Vn}function Wa(){var Vn=e.event.target;e.select(Vn).on(da,to).on(Ea,uI),Ba.push(Vn);for(var pa=e.event.changedTouches,bn=0,pi=pa.length;bn1){var ao=xn[0],ul=xn[1],pv=ao[0]-ul[0],db=ao[1]-ul[1];Kr=pv*pv+db*db}}function to(){var Vn=e.touches(er),pa,bn,pi,xn;vv.call(er);for(var ys=0,ao=Vn.length;ys1?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 Da(R(c+120),R(c),R(c-120))}e.hcl=Qt;function Qt(c,p,x){return this instanceof Qt?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof Qt?new Qt(c.h,c.c,c.l):c instanceof Ct?Gc(c.l,c.a,c.b):Gc((c=or((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Qt(c,p,x)}var hi=Qt.prototype=new bt;hi.brighter=function(c){return new Qt(this.h,this.c,Math.min(100,this.l+wt*(arguments.length?c:1)))},hi.darker=function(c){return new Qt(this.h,this.c,Math.max(0,this.l-wt*(arguments.length?c:1)))},hi.rgb=function(){return yn(this.h,this.c,this.l).rgb()};function yn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Ct(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Ct;function Ct(c,p,x){return this instanceof Ct?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Ct?new Ct(c.l,c.a,c.b):c instanceof Qt?yn(c.h,c.c,c.l):or((c=Da(c)).r,c.g,c.b):new Ct(c,p,x)}var wt=18,ca=.95047,Kl=1,Ql=1.08883,ol=Ct.prototype=new bt;ol.brighter=function(c){return new Ct(Math.min(100,this.l+wt*(arguments.length?c:1)),this.a,this.b)},ol.darker=function(c){return new Ct(Math.max(0,this.l-wt*(arguments.length?c:1)),this.a,this.b)},ol.rgb=function(){return Vc(this.l,this.a,this.b)};function Vc(c,p,x){var A=(c+16)/116,S=A+p/500,L=A-x/200;return S=Ru(S)*ca,A=Ru(A)*Kl,L=Ru(L)*Ql,new Da(Nu(3.2404542*S-1.5371385*A-.4985314*L),Nu(-.969266*S+1.8760108*A+.041556*L),Nu(.0556434*S-.2040259*A+1.0572252*L))}function Gc(c,p,x){return c>0?new Qt(Math.atan2(x,p)*Br,Math.sqrt(p*p+x*x),c):new Qt(NaN,NaN,c)}function Ru(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function zu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Nu(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,mn):new Da(c,p,x)}function Wc(c){return new Da(c>>16,c>>8&255,c&255)}function us(c){return Wc(c)+""}var fs=Da.prototype=new bt;fs.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 Da(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 jr(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 Qr(R,E,N)}function or(c,p,x){c=va(c),p=va(p),x=va(x);var A=zu((.4124564*c+.3575761*p+.1804375*x)/ca),S=zu((.2126729*c+.7151522*p+.072175*x)/Kl),L=zu((.0193339*c+.119192*p+.9503041*x)/Ql);return Ct(116*S-16,500*(A-S),200*(S-L))}function va(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ot(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var ha=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});ha.forEach(function(c,p){ha.set(c,Wc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Yn(W);function Yn(c){return function(p,x,A){return arguments.length===2&&typeof x=="function"&&(A=x,x=null),$l(p,x,c,A)}}function $l(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=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var X=E.status,j;if(!X&&cN(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 he in R)E.setRequestHeader(he,R[he]);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(fN(A))}function fN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function cN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` +"use strict";var Plotly=(()=>{var fI=Object.defineProperty,cI=Object.defineProperties;var vI=Object.getOwnPropertyDescriptors;var pb=Object.getOwnPropertySymbols;var hI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable;var mb=(e,r,t)=>r in e?fI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,no=(e,r)=>{for(var t in r||(r={}))hI.call(r,t)&&mb(e,t,r[t]);if(pb)for(var t of pb(r))dI.call(r,t)&&mb(e,t,r[t]);return e},yv=(e,r)=>cI(e,vI(r));var J=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var gv=J(yb=>{"use strict";yb.version="3.4.0"});var bb=J((gb,bv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bv!="undefined"&&bv.exports&&(bv.exports=t[r])})("Promise",typeof window!="undefined"?window:gb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,M){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:M!==!1})}}catch(_){r=function(T,b,M){return T[b]=M,T}}a=function(){var w,T,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),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,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=w(_(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[G++],he,we,te,se=new b,ue;++X=p.length)return E;var G=[],X=x[N++];return E.forEach(function(j,ee){G.push({key:j,values:R(ee,N)})}),X?G.sort(function(j,ee){return X(j.key,ee.key)}):G}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 K(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}},Ae.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(ve(p,c[p]));return this}return this.each(ve(c,p))};function ve(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," ")}Ae.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),A=(c=Re(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},Ae.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=Ve);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 G(){var X=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),j;for(var ee in this)if(j=ee.match(X)){var he=this[ee];this.removeEventListener(j[1],he,he.$),delete this[ee]}}return S?p?N:E:p?H:G}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(c){"on"+c in a&&He.remove(c)});function Je(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 Ve(c,p){var x=Je(c,p);return function(A){var S=this,L=A.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,A)}}var Xe,lr=0;function tr(c){var p=".dragsuppress-"+ ++lr,x="click"+p,A=e.select(i(c)).on("touchmove"+p,ne).on("dragstart"+p,ne).on("selectstart"+p,ne);if(Xe==null&&(Xe="onselectstart"in c?!1:V(c.style,"userSelect")),Xe){var S=n(c).style,L=S[Xe];S[Xe]="none"}return function(R){if(A.on(p,null),Xe&&(S[Xe]=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,pe())};var Qe=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(Qe<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();Qe=!(L.f||L.e),x.remove()}}return Qe?(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=pe().changedTouches),p){for(var A=0,S=p.length,L;A0?1:c<0?-1:0}function it(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?Ee:Math.acos(c)}function yt(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function Dt(c){return((c=Math.exp(c))-1/c)/2}function Kt(c){return((c=Math.exp(c))+1/c)/2}function qa(c){return((c=Math.exp(2*c))-1)/(c+1)}function sa(c){return(c=Math.sin(c/2))*c}var ua=Math.SQRT2,vr=2,lt=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,G=R-A,X=N*N+G*G,j,ee;if(X0&&(er=er.transition().duration(R)),er.call(Me.event)}function dr(){se&&se.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),_e&&_e.domain(ue.range().map(function(er){return(er-c.y)/c.k}).map(ue.invert))}function pr(er){E++||er({type:"zoomstart"})}function Cr(er){dr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function mr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=we.of(er,arguments),qr=0,Kr=e.select(i(er)).on(G,da).on(X,Ea),Tt=ce(e.mouse(er)),Vt=tr(er);hv.call(er),pr(Lr);function da(){qr=1,ur(e.mouse(er),Tt),Cr(Lr)}function Ea(){Kr.on(G,null).on(X,null),Vt(qr),mr(Lr)}}function Jr(){var er=this,Lr=we.of(er,arguments),qr={},Kr=0,Tt,Vt=".zoom-"+e.event.changedTouches[0].identifier,da="touchmove"+Vt,Ea="touchend"+Vt,Ba=[],Pa=e.select(er),Ga=tr(er);Wa(),pr(Lr),Pa.on(N,null).on(ee,Wa);function Ta(){var Vn=e.touches(er);return Tt=c.k,Vn.forEach(function(pa){pa.identifier in qr&&(qr[pa.identifier]=ce(pa))}),Vn}function Wa(){var Vn=e.event.target;e.select(Vn).on(da,to).on(Ea,uI),Ba.push(Vn);for(var pa=e.event.changedTouches,bn=0,pi=pa.length;bn1){var ao=xn[0],ul=xn[1],mv=ao[0]-ul[0],db=ao[1]-ul[1];Kr=mv*mv+db*db}}function to(){var Vn=e.touches(er),pa,bn,pi,xn;hv.call(er);for(var ys=0,ao=Vn.length;ys1?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 Da(R(c+120),R(c),R(c-120))}e.hcl=Qt;function Qt(c,p,x){return this instanceof Qt?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof Qt?new Qt(c.h,c.c,c.l):c instanceof Ct?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 Qt(c,p,x)}var hi=Qt.prototype=new bt;hi.brighter=function(c){return new Qt(this.h,this.c,Math.min(100,this.l+wt*(arguments.length?c:1)))},hi.darker=function(c){return new Qt(this.h,this.c,Math.max(0,this.l-wt*(arguments.length?c:1)))},hi.rgb=function(){return yn(this.h,this.c,this.l).rgb()};function yn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Ct(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Ct;function Ct(c,p,x){return this instanceof Ct?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Ct?new Ct(c.l,c.a,c.b):c instanceof Qt?yn(c.h,c.c,c.l):or((c=Da(c)).r,c.g,c.b):new Ct(c,p,x)}var wt=18,ca=.95047,Kl=1,Ql=1.08883,ol=Ct.prototype=new bt;ol.brighter=function(c){return new Ct(Math.min(100,this.l+wt*(arguments.length?c:1)),this.a,this.b)},ol.darker=function(c){return new Ct(Math.max(0,this.l-wt*(arguments.length?c:1)),this.a,this.b)},ol.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=Ru(S)*ca,A=Ru(A)*Kl,L=Ru(L)*Ql,new Da(Nu(3.2404542*S-1.5371385*A-.4985314*L),Nu(-.969266*S+1.8760108*A+.041556*L),Nu(.0556434*S-.2040259*A+1.0572252*L))}function Wc(c,p,x){return c>0?new Qt(Math.atan2(x,p)*Br,Math.sqrt(p*p+x*x),c):new Qt(NaN,NaN,c)}function Ru(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function zu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Nu(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,mn):new Da(c,p,x)}function Xc(c){return new Da(c>>16,c>>8&255,c&255)}function us(c){return Xc(c)+""}var fs=Da.prototype=new bt;fs.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 Da(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 jr(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 Qr(R,E,N)}function or(c,p,x){c=va(c),p=va(p),x=va(x);var A=zu((.4124564*c+.3575761*p+.1804375*x)/ca),S=zu((.2126729*c+.7151522*p+.072175*x)/Kl),L=zu((.0193339*c+.119192*p+.9503041*x)/Ql);return Ct(116*S-16,500*(A-S),200*(S-L))}function va(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ot(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var ha=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});ha.forEach(function(c,p){ha.set(c,Xc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Yn(W);function Yn(c){return function(p,x,A){return arguments.length===2&&typeof x=="function"&&(A=x,x=null),$l(p,x,c,A)}}function $l(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=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var X=E.status,j;if(!X&&cN(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 he in R)E.setRequestHeader(he,R[he]);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(fN(A))}function fN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function cN(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(G,X,j){arguments.length<3&&(j=X,X=null);var ee=$l(G,p,X==null?L:R(X),j);return ee.row=function(he){return arguments.length?ee.response((X=he)==null?L:R(he)):X},ee}function L(G){return S.parse(G.responseText)}function R(G){return function(X){return S.parse(X.responseText,G)}}S.parse=function(G,X){var j;return S.parseRows(G,function(ee,he){if(j)return j(ee,he-1);var we=function(te){for(var se={},ue=ee.length,_e=0;_e=we)return ee;if(_e)return _e=!1,j;var Ue=te;if(G.charCodeAt(Ue)===34){for(var nr=Ue;nr++24?(isFinite(p)&&(clearTimeout(Kc),Kc=setTimeout(x1,p)),Jc=0):(Jc=1,e5(x1))}e.timer.flush=function(){r5(),t5()};function r5(){for(var c=Date.now(),p=Xc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function t5(){for(var c,p=Xc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[G[j[E]][2]]);for(E=+he;E1&&it(c[x[A-2]],c[x[A-1]],c[S])<=0;)--A;x[A++]=S}return x.slice(0,A)}function vN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,$c),c};var $c=e.geom.polygon.prototype=[];$c.area=function(){for(var c=-1,p=this.length,x,A=this[p-1],S=0;++coe)E=E.L;else if(R=p-mN(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=o5(c);if(hs.insert(A,N),!(!A&&!S)){if(A===S){ps(A),S=o5(A.site),hs.insert(N,S),N.edge=S.edge=Hu(A.site,N.site),ds(A),ds(S);return}if(!S){N.edge=Hu(A.site,N.site);return}ps(A),ps(S);var G=A.site,X=G.x,j=G.y,ee=c.x-X,he=c.y-j,we=S.site,te=we.x-X,se=we.y-j,ue=2*(ee*se-he*te),_e=ee*ee+he*he,Me=te*te+se*se,ce={x:(se*_e-he*Me)/ue+X,y:(ee*Me-te*_e)/ue+j};jc(S.edge,G,we,ce),N.edge=Hu(G,c,null,ce),S.edge=Hu(c,we,null,ce),ds(A),ds(S)}}function s5(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,G=N-p;if(!G)return E;var X=E-A,j=1/L-1/G,ee=X/G;return j?(-ee+Math.sqrt(ee*ee-2*j*(X*X/(-2*G)-N+G/2+S-L/2)))/j+A:(A+E)/2}function mN(c,p){var x=c.N;if(x)return s5(x,p);var A=c.site;return A.y===p?A.x:1/0}function u5(c){this.site=c,this.edges=[]}u5.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(f5),c.length};function yN(c){for(var p=c[0][0],x=c[1][0],A=c[0][1],S=c[1][1],L,R,E,N,G=jl,X=G.length,j,ee,he,we,te,se;X--;)if(j=G[X],!(!j||!j.prepare()))for(he=j.edges,we=he.length,ee=0;eeoe||_(N-R)>oe)&&(he.splice(ee,0,new ev(wN(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+G*G,he=X*X+se*se,we=(se*ee-G*he)/j,te=(N*he-X*ee)/j,se=te+E,ue=l5.pop()||new gN;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,Me=Iu._;Me;)if(ue.y0)){if(te/=he,he<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=x-E,!(!he&&te<0)){if(te/=he,he<0){if(te>ee)return;te>j&&(j=te)}else if(he>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*he,y:N+j*we}),ee<1&&(S.b={x:E+ee*he,y:N+ee*we}),S}}}}}}function xN(c){for(var p=vs,x=bN(c[0][0],c[0][1],c[1][0],c[1][1]),A=p.length,S;A--;)S=p[A],(!_N(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<=he?[[X,he],[ee,he],[ee,j],[X,j]]:[];_e.point=N[te]}),G}function E(N){return N.map(function(G,X){return{x:Math.round(A(G,X)/oe)*oe,y:Math.round(S(G,X)/oe)*oe,i:X}})}return R.links=function(N){return k1(E(N)).edges.filter(function(G){return G.l&&G.r}).map(function(G){return{source:N[G.l.i],target:N[G.r.i]}})},R.triangles=function(N){var G=[];return k1(E(N)).cells.forEach(function(X,j){for(var ee=X.site,he=X.edges.sort(f5),we=-1,te=he.length,se,ue,_e=he[te-1].edge,Me=_e.l===ee?_e.r:_e.l;++weMe&&(Me=X.x),X.y>ce&&(ce=X.y),he.push(X.x),we.push(X.y);else for(te=0;teMe&&(Me=Ue),nr>ce&&(ce=nr),he.push(Ue),we.push(nr)}var ur=Me-ue,ir=ce-_e;ur>ir?ce=_e+ur:Me=ue+ir;function dr(mr,Tr,Jr,Et,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Et)))if(mr.leaf){var Kr=mr.x,Tt=mr.y;if(Kr!=null)if(_(Kr-Jr)+_(Tt-Et)<.01)pr(mr,Tr,Jr,Et,rt,er,Lr,qr);else{var Vt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Vt,Kr,Tt,rt,er,Lr,qr),pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}else mr.x=Jr,mr.y=Et,mr.point=Tr}else pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}function pr(mr,Tr,Jr,Et,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,Tt=(er+qr)*.5,Vt=Jr>=Kr,da=Et>=Tt,Ea=da<<1|Vt;mr.leaf=!1,mr=mr.nodes[Ea]||(mr.nodes[Ea]=h5()),Vt?rt=Kr:Lr=Kr,da?er=Tt:qr=Tt,dr(mr,Tr,Jr,Et,rt,er,Lr,qr)}var Cr=h5();if(Cr.add=function(mr){dr(Cr,mr,+j(mr,++te),+ee(mr,te),ue,_e,Me,ce)},Cr.visit=function(mr){Yu(mr,Cr,ue,_e,Me,ce)},Cr.find=function(mr){return SN(Cr,mr[0],mr[1],ue,_e,Me,ce)},te=-1,p==null){for(;++teL||ee>R||he=Ue,ir=x>=nr,dr=ir<<1|ur,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:Oi(A,S)})),x=L1.lastIndex;return x=0&&!(A=e.interpolators[x](c,p)););return A}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?S1:p5:p instanceof bt?S1:Array.isArray(p)?av:x==="object"&&isNaN(p)?d5:Oi)(c,p)}],e.interpolateArray=av;function av(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=CN.get(x)||m5,A=LN.get(A)||W,qN(A(x.apply(null,r.call(arguments,1))))};function qN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function y5(c){return function(p){return 1-c(1-p)}}function g5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function DN(c){return c*c}function EN(c){return c*c*c}function PN(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 RN(c){return function(p){return Math.pow(p,c)}}function zN(c){return 1-Math.cos(c*sr)}function NN(c){return Math.pow(2,10*(c-1))}function FN(c){return 1-Math.sqrt(1-c*c)}function IN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/ar*Math.asin(1/c):(c=1,x=p/4),function(A){return 1+c*Math.pow(2,-10*A)*Math.sin((A-x)*ar/p)}}function HN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function ON(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=BN;function BN(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 yn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateHsl=YN;function YN(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 mn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateLab=UN;function UN(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 Vc(x+L*N,A+R*N,S+E*N)+""}}e.interpolateRound=b5;function b5(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 x5(A?A.matrix:GN)})(c)};function x5(c){var p=[c.a,c.b],x=[c.c,c.d],A=w5(p),S=_5(p,x),L=w5(VN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),A.push({i:x.push(ms(x)+"rotate(",null,")")-2,x:Oi(c,p)})):p&&x.push(ms(x)+"rotate("+p+")")}function ZN(c,p,x,A){c!==p?A.push({i:x.push(ms(x)+"skewX(",null,")")-2,x:Oi(c,p)}):p&&x.push(ms(x)+"skewX("+p+")")}function JN(c,p,x,A){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(ms(x)+"scale(",null,",",null,")");A.push({i:S-4,x:Oi(c[0],p[0])},{i:S-2,x:Oi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(ms(x)+"scale("+p+")")}function T5(c,p){var x=[],A=[];return c=e.transform(c),p=e.transform(p),WN(c.translate,p.translate,x,A),XN(c.rotate,p.rotate,x,A),ZN(c.skew,p.skew,x,A),JN(c.scale,p.scale,x,A),c=p=null,function(S){for(var L=-1,R=A.length,E;++L0?L=ce:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ce>0&&(p.start({type:"start",alpha:L=ce}),x=Qc(c.tick)),c):L},c.start=function(){var ce,Ue=he.length,nr=we.length,ur=A[0],ir=A[1],dr,pr;for(ce=0;ce=0;)L.push(X=G[N]),X.parent=E,X.depth=E.depth+1;x&&(E.value=0),E.children=G}else x&&(E.value=+x.call(A,E,E.depth)||0),delete E.children;return di(S,function(j){var ee,he;c&&(ee=j.children)&&ee.sort(c),x&&(he=j.parent)&&(he.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&&(Vu(S,function(L){L.children&&(L.value=0)}),di(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 Uu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=fF,c}function Vu(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 di(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 yF(c){return c.reduce(gF,0)}function gF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=xF,A=bF;function S(L,ee){for(var E=[],N=L.map(p,this),G=x.call(this,N,ee),X=A.call(this,G,N,ee),j,ee=-1,he=N.length,we=X.length-1,te=c?1:1/he,se;++ee0)for(ee=-1;++ee=G[0]&&se<=G[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 S5(R,L)}:Rr(L),S):A},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function bF(c,p){return S5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function S5(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 xF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(_F),p=0,x=[1,1],A;function S(L,R){var E=c.call(this,L,R),N=E[0],G=x[0],X=x[1],j=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(N.x=N.y=0,di(N,function(he){he.r=+j(he.value)}),di(N,q5),p){var ee=p*(A?1:Math.max(2*N.r/G,2*N.r/X))/2;di(N,function(he){he.r+=ee}),di(N,q5),di(N,function(he){he.r-=ee})}return D5(N,G/2,X/2,A?1:1/Math.max(2*N.r/G,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},Uu(S,c)};function _F(c,p){return c.value-p.value}function E1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function C5(c,p){c._pack_next=p,p._pack_prev=c}function L5(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 q5(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,G,X,j,ee;function he(ce){x=Math.min(ce.x-ce.r,x),A=Math.max(ce.x+ce.r,A),S=Math.min(ce.y-ce.r,S),L=Math.max(ce.y+ce.r,L)}if(p.forEach(wF),R=p[0],R.x=-R.r,R.y=0,he(R),ee>1&&(E=p[1],E.x=E.r,E.y=0,he(E),ee>2))for(N=p[2],E5(R,E,N),he(N),E1(R,N),R._pack_prev=N,E1(N,E),E=R._pack_next,G=3;Gse.x&&(se=Ue),Ue.depth>ue.depth&&(ue=Ue)});var _e=p(te,se)/2-te.x,Me=x[0]/(se.x+p(se,te)/2+_e),ce=x[1]/(ue.depth||1);Vu(he,function(Ue){Ue.x=(Ue.x+_e)*Me,Ue.y=Ue.depth*ce})}return ee}function L(X){for(var j={A:null,children:[X]},ee=[j],he;(he=ee.pop())!=null;)for(var we=he.children,te,se=0,ue=we.length;se0&&(MF(kF(te,X,ee),X,Ue),ue+=Ue,_e+=Ue),Me+=te.m,ue+=he.m,ce+=se.m,_e+=we.m;te&&!R1(we)&&(we.t=te,we.m+=Me-_e),he&&!P1(se)&&(se.t=he,se.m+=ue-ce,ee=X)}return ee}function G(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?G:null,S):A?null:x},S.nodeSize=function(X){return arguments.length?(A=(x=X)==null?null:G,S):A?x:null},Uu(S,c)};function P5(c,p){return c.parent==p.parent?1:2}function P1(c){var p=c.children;return p.length?p[0]:c.t}function R1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function MF(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 AF(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 kF(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=P5,x=[1,1],A=!1;function S(L,R){var E=c.call(this,L,R),N=E[0],G,X=0;di(N,function(te){var se=te.children;se&&se.length?(te.x=CF(se),te.y=SF(se)):(te.x=G?X+=p(te,G):0,te.y=0,G=te)});var j=R5(N),ee=z5(N),he=j.x-p(j,ee)/2,we=ee.x+p(ee,j)/2;return di(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-he)/(we-he)*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},Uu(S,c)};function SF(c){return 1+e.max(c,function(p){return p.y})}function CF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function R5(c){var p=c.children;return p&&p.length?R5(p[0]):c}function z5(c){var p=c.children,x;return p&&(x=p.length)?z5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],A=null,S=z1,L=!1,R,E="squarify",N=.5*(1+Math.sqrt(5));function G(te,se){for(var ue=-1,_e=te.length,Me,ce;++ue<_e;)ce=(Me=te[ue]).value*(se<0?0:se),Me.area=isNaN(ce)||ce<=0?0:ce}function X(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=[],Me=se.slice(),ce,Ue=1/0,nr,ur=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),ir;for(G(Me,ue.dx*ue.dy/te.value),_e.area=0;(ir=Me.length)>0;)_e.push(ce=Me[ir-1]),_e.area+=ce.area,E!=="squarify"||(nr=ee(_e,ur))<=Ue?(Me.pop(),Ue=nr):(_e.area-=_e.pop().area,he(_e,ur,ue,!1),ur=Math.min(ue.dx,ue.dy),_e.length=_e.area=0,Ue=1/0);_e.length&&(he(_e,ur,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(),Me,ce=[];for(G(_e,ue.dx*ue.dy/te.value),ce.area=0;Me=_e.pop();)ce.push(Me),ce.area+=Me.area,Me.z!=null&&(he(ce,Me.z?ue.dx:ue.dy,ue,!_e.length),ce.length=ce.area=0);se.forEach(j)}}function ee(te,se){for(var ue=te.area,_e,Me=0,ce=1/0,Ue=-1,nr=te.length;++UeMe&&(Me=_e));return ue*=ue,se*=se,ue?Math.max(se*Me*N/ue,ue/(se*ce*N)):1/0}function he(te,se,ue,_e){var Me=-1,ce=te.length,Ue=ue.x,nr=ue.y,ur=se?p(te.area/se):0,ir;if(se==ue.dx){for((_e||ur>ue.dy)&&(ur=ue.dy);++Meue.dx)&&(ur=ue.dx);++Me1);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?DF:LF,G=A?QN:KN;return S=N(c,p,G,x),L=N(p,c,G,eo),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(b5)},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 I1(c,N)},E.tickFormat=function(N,G){return d3_scale_linearTickFormat(c,N,G)},E.nice=function(N){return O5(c,N),R()},E.copy=function(){return I5(c,p,x,A)},R()}function H5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function O5(c,p){return N1(c,F5(F1(c,p)[2])),N1(c,F5(F1(c,p)[2])),c}function F1(c,p){p==null&&(p=10);var x=nv(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 I1(c,p){return e.range.apply(e,F1(c,p))}var EF={s:1,g:1,p:1,r:1,e:1};function B5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function kie(c,p){var x=B5(p[2]);return c in EF?Math.abs(x-B5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return Y5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Y5(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=N1(A.map(S),x?Math:PF);return c.domain(E),A=E.map(L),R},R.ticks=function(){var E=nv(A),N=[],G=E[0],X=E[1],j=Math.floor(S(G)),ee=Math.ceil(S(X)),he=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 Y5(c.copy(),p,x,A)},H5(R,c)}var PF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return U5(e.scale.linear(),1,[0,1])};function U5(c,p,x){var A=lv(p),S=lv(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 I1(x,R)},L.tickFormat=function(R,E){return d3_scale_linearTickFormat(x,R,E)},L.nice=function(R){return L.domain(O5(x,R))},L.exponent=function(R){return arguments.length?(A=lv(p=R),S=lv(1/p),c.domain(x.map(A)),L):p},L.copy=function(){return U5(c.copy(),p,x)},H5(L,c)}function lv(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 V5([],{t:"range",a:[[]]})};function V5(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(G){return E+N*G})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,G=E.length,X;++N0?x[L-1]:c[0],Lee?0:1;if(X=cr)return N(X,we)+(G?N(G,1-we):"")+"Z";var te,se,ue,_e,Me=0,ce=0,Ue,nr,ur,ir,dr,pr,Cr,mr,Tr=[];if((_e=(+R.apply(this,arguments)||0)/2)&&(ue=A===ov?Math.sqrt(G*G+X*X):+A.apply(this,arguments),we||(ce*=-1),X&&(ce=yt(ue/X*Math.sin(_e))),G&&(Me=yt(ue/G*Math.sin(_e)))),X){Ue=X*Math.cos(j+ce),nr=X*Math.sin(j+ce),ur=X*Math.cos(ee-ce),ir=X*Math.sin(ee-ce);var Jr=Math.abs(ee-j-2*ce)<=Ee?0:1;if(ce&&sv(Ue,nr,ur,ir)===we^Jr){var Et=(j+ee)/2;Ue=X*Math.cos(Et),nr=X*Math.sin(Et),ur=ir=null}}else Ue=nr=0;if(G){dr=G*Math.cos(ee-Me),pr=G*Math.sin(ee-Me),Cr=G*Math.cos(j+Me),mr=G*Math.sin(j+Me);var rt=Math.abs(j-ee+2*Me)<=Ee?0:1;if(Me&&sv(dr,pr,Cr,mr)===1-we^rt){var er=(j+ee)/2;dr=G*Math.cos(er),pr=G*Math.sin(er),Cr=mr=null}}else dr=pr=0;if(he>oe&&(te=Math.min(Math.abs(X-G)/2,+x.apply(this,arguments)))>.001){se=G0?0:1}function uv(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,G=-E*L,X=c[0]+N,j=c[1]+G,ee=p[0]+N,he=p[1]+G,we=(X+ee)/2,te=(j+he)/2,se=ee-X,ue=he-j,_e=se*se+ue*ue,Me=x-A,ce=X*he-ee*j,Ue=(ue<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*_e-ce*ce)),nr=(ce*ue-se*Ue)/_e,ur=(-ce*se-ue*Ue)/_e,ir=(ce*ue+se*Ue)/_e,dr=(-ce*se+ue*Ue)/_e,pr=nr-we,Cr=ur-te,mr=ir-we,Tr=dr-te;return pr*pr+Cr*Cr>mr*mr+Tr*Tr&&(nr=ir,ur=dr),[[nr-N,ur-G],[nr*x/Me,ur*x/Me]]}function Q5(){return!0}function $5(c){var p=cs,x=Fu,A=Q5,S=Un,L=S.key,R=.7;function E(N){var G=[],X=[],j=-1,ee=N.length,he,we=Rr(p),te=Rr(x);function se(){G.push("M",S(c(X),R))}for(;++j1?c.join("L"):c+"Z"}function j5(c){return c.join("L")+"Z"}function YF(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 O1(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 G=2;G9&&(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 QF(c){return c.length<3?Un(c):c[0]+fv(c,KF(c))}e.svg.line.radial=function(){var c=$5(ab);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ab(c){for(var p,x=-1,A=c.length,S,L;++xEe)+",1 "+j}function G(X,j,ee,he){return"Q 0,0 "+he}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 $F(c){return c.radius}e.svg.diagonal=function(){var c=ib,p=lb,x=ob;function A(S,L){var R=c.call(this,S,L),E=p.call(this,S,L),N=(R.y+E.y)/2,G=[R,{x:R.x,y:N},{x:E.x,y:N},E];return G=G.map(x),"M"+G[0]+"C"+G[1]+" "+G[2]+" "+G[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 ob(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=ob,x=c.projection;return c.projection=function(A){return arguments.length?x(jF(p=A)):p},c};function jF(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=rI,p=eI;function x(A,S){return(ub.get(c.call(this,A,S))||sb)(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 eI(){return 64}function rI(){return"circle"}function sb(c){var p=Math.sqrt(c/Ee);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var ub=e.map({circle:sb,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*fb)),x=p*fb;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/cv),x=p*cv/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/cv),x=p*cv/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=ub.keys();var cv=Math.sqrt(3),fb=Math.tan(30*Mr);Ae.transition=function(c){for(var p=ro||++vb,x=W1(c),A=[],S,L,R=hv||{time:Date.now(),ease:PN,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=Qc(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=hb,x=6,A=6,S=3,L=[10],R=null,E;function N(G){G.each(function(){var X=e.select(this),j=this.__chart__||c,ee=this.__chart__=c.copy(),he=R==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():R,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):W:E,te=X.selectAll(".tick").data(he,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),Me=Math.max(x,0)+S,ce,Ue=iv(ee),nr=X.selectAll(".domain").data([0]),ur=(nr.enter().append("path").attr("class","domain"),e.transition(nr));se.append("line"),se.append("text");var ir=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,Jr,Et,rt,er;if(p==="bottom"||p==="top"?(ce=nI,Jr="x",rt="y",Et="x2",er="y2",pr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ue[0]+","+Tr*A+"V0H"+Ue[1]+"V"+Tr*A)):(ce=iI,Jr="y",rt="x",Et="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),ur.attr("d","M"+Tr*A+","+Ue[0]+"H0V"+Ue[1]+"H"+Tr*A)),ir.attr(er,Tr*x),Cr.attr(rt,Tr*Me),dr.attr(Et,0).attr(er,Tr*x),mr.attr(Jr,0).attr(rt,Tr*Me),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;j=ee=function(Kr){return Lr(Kr)+qr}}else j.rangeBand?j=ee:ue.call(ce,ee,j);se.call(ce,j,ee),_e.call(ce,ee,ee)})}return N.scale=function(G){return arguments.length?(c=G,N):c},N.orient=function(G){return arguments.length?(p=G in aI?G+"":hb,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(G){return arguments.length?(R=G,N):R},N.tickFormat=function(G){return arguments.length?(E=G,N):E},N.tickSize=function(G){var X=arguments.length;return X?(x=+G,A=+arguments[X-1],N):x},N.innerTickSize=function(G){return arguments.length?(x=+G,N):x},N.outerTickSize=function(G){return arguments.length?(A=+G,N):A},N.tickPadding=function(G){return arguments.length?(S=+G,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var hb="bottom",aI={top:1,right:1,bottom:1,left:1};function nI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate("+(isFinite(S)?S:x(A))+",0)"})}function iI(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,G=X1[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(G,W);_e.exit().remove(),_e.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return lI[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 Me=e.transition(se),ce=e.transition(ue),Ue;p&&(Ue=iv(p),ce.attr("x",Ue[0]).attr("width",Ue[1]-Ue[0]),ee(Me)),x&&(Ue=iv(x),ce.attr("y",Ue[0]).attr("height",Ue[1]-Ue[0]),he(Me)),j(Me)})}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,ro?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 Me=av(A,ue.x),ce=av(S,ue.y);return L=R=null,function(Ue){A=ue.x=Me(Ue),S=ue.y=ce(Ue),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 he(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),Me=se.datum(),ce=!/^(n|s)$/.test(Me)&&p,Ue=!/^(e|w)$/.test(Me)&&x,nr=se.classed("extent"),ur=tr(te),ir,dr=e.mouse(te),pr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Et);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),_e.interrupt().selectAll("*").interrupt(),nr)dr[0]=A[0]-dr[0],dr[1]=S[0]-dr[1];else if(Me){var mr=+/w$/.test(Me),Tr=+/^n/.test(Me);pr=[A[1-mr]-dr[0],S[1-Tr]-dr[1]],dr[0]=A[mr],dr[1]=S[Tr]}else e.event.altKey&&(ir=dr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",se.style("cursor")),ue({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(nr||(ir=null,dr[0]-=A[1],dr[1]-=S[1],nr=2),ne())}function Et(){e.event.keyCode==32&&nr==2&&(dr[0]+=A[1],dr[1]+=S[1],nr=0,ne())}function rt(){var qr=e.mouse(te),Kr=!1;pr&&(qr[0]+=pr[0],qr[1]+=pr[1]),nr||(e.event.altKey?(ir||(ir=[(A[0]+A[1])/2,(S[0]+S[1])/2]),dr[0]=A[+(qr[0]{(function(e,r){typeof xv=="object"&&typeof xb!="undefined"?r(xv):(e=e||self,r(e.d3=e.d3||{}))})(xv,function(e){"use strict";var r=new Date,t=new Date;function a(ie,xe,Ke,hr){function ze(Te){return ie(Te=arguments.length===0?new Date:new Date(+Te)),Te}return ze.floor=function(Te){return ie(Te=new Date(+Te)),Te},ze.ceil=function(Te){return ie(Te=new Date(Te-1)),xe(Te,1),ie(Te),Te},ze.round=function(Te){var ke=ze(Te),He=ze.ceil(Te);return Te-ke0))return Je;do Je.push(Ve=new Date(+Te)),xe(Te,He),ie(Te);while(Ve=ke)for(;ie(ke),!Te(ke);)ke.setTime(ke-1)},function(ke,He){if(ke>=ke)if(He<0)for(;++He<=0;)for(;xe(ke,-1),!Te(ke););else for(;--He>=0;)for(;xe(ke,1),!Te(ke););})},Ke&&(ze.count=function(Te,ke){return r.setTime(+Te),t.setTime(+ke),ie(r),ie(t),Math.floor(Ke(r,t))},ze.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?ze.filter(hr?function(ke){return hr(ke)%Te===0}:function(ke){return ze.count(0,ke)%Te===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}),w=_.range;function T(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=T(0),M=T(1),C=T(2),k=T(3),q=T(4),D=T(5),P=T(6),z=b.range,F=M.range,O=C.range,I=k.range,W=q.range,Z=D.range,V=P.range,Y=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=Y.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 K=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()}),pe=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 de(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=de(0),ge=de(1),Ae=de(2),B=de(3),$=de(4),U=de(5),le=de(6),ve=be.range,me=ge.range,De=Ae.range,Re=B.range,Le=$.range,Fe=U.range,Oe=le.range,We=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()}),Pe=We.range,Be=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()});Be.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 Ge=Be.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=Z,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=Y,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=V,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=W,e.timeTuesday=C,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=K,e.utcDay=re,e.utcDays=Ce,e.utcFriday=U,e.utcFridays=Fe,e.utcHour=ye,e.utcHours=Se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ne,e.utcMinutes=pe,e.utcMonday=ge,e.utcMondays=me,e.utcMonth=We,e.utcMonths=Pe,e.utcSaturday=le,e.utcSaturdays=Oe,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=ve,e.utcThursday=$,e.utcThursdays=Le,e.utcTuesday=Ae,e.utcTuesdays=De,e.utcWednesday=B,e.utcWednesdays=Re,e.utcWeek=be,e.utcWeeks=ve,e.utcYear=Be,e.utcYears=Ge,Object.defineProperty(e,"__esModule",{value:!0})})});var gs=J((_v,_b)=>{(function(e,r){typeof _v=="object"&&typeof _b!="undefined"?r(_v,Z1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(_v,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,Ee=ae.time,ar=ae.periods,cr=ae.days,sr=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,$r=h(ar),it=d(ar),_t=h(cr),yt=d(cr),Dt=h(sr),Kt=d(sr),qa=h(Mr),sa=d(Mr),ua=h(Br),vr=d(Br),lt={a:Kl,A:Ql,b:ol,B:Vc,c:null,d:Y,e:Y,f:pe,H,I:Q,j:K,L:ne,m:ye,M:Se,p:Gc,q:Ru,Q:ke,s:He,S:re,u:Ce,U:de,V:be,w:ge,W:Ae,x:null,X:null,y:B,Y:$,Z:U,"%":Te},Zr={a:zu,A:Nu,b:Da,B:Wc,c:null,d:le,e:le,f:Le,H:ve,I:me,j:De,L:Re,m:Fe,M:Oe,p:us,q:fs,Q:ke,s:He,S:We,u:Pe,U:Be,V:Ge,w:ie,W:xe,x:null,X:null,y:Ke,Y:hr,Z:ze,"%":Te},ft={a:mn,A:Qt,b:hi,B:yn,c:Ct,d:q,e:q,f:I,H:P,I:P,j:D,L:O,m:k,M:z,p:fa,q:C,Q:Z,s:V,S:F,u:y,U:g,V:_,w:m,W:w,x:wt,X:ca,y:b,Y:T,Z:M,"%":W};lt.x=St(qe,lt),lt.X=St(Ee,lt),lt.c=St(oe,lt),Zr.x=St(qe,Zr),Zr.X=St(Ee,Zr),Zr.c=St(oe,Zr);function St(yr,Gr){return function(jr){var or=[],va=-1,ot=0,ha=yr.length,Rr,Yn,$l;for(jr instanceof Date||(jr=new Date(+jr));++va53)return null;"w"in or||(or.w=1),"Z"in or?(ot=a(n(or.y,0,1)),ha=ot.getUTCDay(),ot=ha>4||ha===0?r.utcMonday.ceil(ot):r.utcMonday(ot),ot=r.utcDay.offset(ot,(or.V-1)*7),or.y=ot.getUTCFullYear(),or.m=ot.getUTCMonth(),or.d=ot.getUTCDate()+(or.w+6)%7):(ot=t(n(or.y,0,1)),ha=ot.getDay(),ot=ha>4||ha===0?r.timeMonday.ceil(ot):r.timeMonday(ot),ot=r.timeDay.offset(ot,(or.V-1)*7),or.y=ot.getFullYear(),or.m=ot.getMonth(),or.d=ot.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),ha="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-(ha+5)%7:or.w+or.U*7-(ha+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function Qr(yr,Gr,jr,or){for(var va=0,ot=Gr.length,ha=jr.length,Rr,Yn;va=ha)return-1;if(Rr=Gr.charCodeAt(va++),Rr===37){if(Rr=Gr.charAt(va++),Yn=ft[Rr in l?Gr.charAt(va++):Rr],!Yn||(or=Yn(yr,jr,or))<0)return-1}else if(Rr!=jr.charCodeAt(or++))return-1}return or}function fa(yr,Gr,jr){var or=$r.exec(Gr.slice(jr));return or?(yr.p=it[or[0].toLowerCase()],jr+or[0].length):-1}function mn(yr,Gr,jr){var or=Dt.exec(Gr.slice(jr));return or?(yr.w=Kt[or[0].toLowerCase()],jr+or[0].length):-1}function Qt(yr,Gr,jr){var or=_t.exec(Gr.slice(jr));return or?(yr.w=yt[or[0].toLowerCase()],jr+or[0].length):-1}function hi(yr,Gr,jr){var or=ua.exec(Gr.slice(jr));return or?(yr.m=vr[or[0].toLowerCase()],jr+or[0].length):-1}function yn(yr,Gr,jr){var or=qa.exec(Gr.slice(jr));return or?(yr.m=sa[or[0].toLowerCase()],jr+or[0].length):-1}function Ct(yr,Gr,jr){return Qr(yr,oe,Gr,jr)}function wt(yr,Gr,jr){return Qr(yr,qe,Gr,jr)}function ca(yr,Gr,jr){return Qr(yr,Ee,Gr,jr)}function Kl(yr){return sr[yr.getDay()]}function Ql(yr){return cr[yr.getDay()]}function ol(yr){return Br[yr.getMonth()]}function Vc(yr){return Mr[yr.getMonth()]}function Gc(yr){return ar[+(yr.getHours()>=12)]}function Ru(yr){return 1+~~(yr.getMonth()/3)}function zu(yr){return sr[yr.getUTCDay()]}function Nu(yr){return cr[yr.getUTCDay()]}function Da(yr){return Br[yr.getUTCMonth()]}function Wc(yr){return Mr[yr.getUTCMonth()]}function us(yr){return ar[+(yr.getUTCHours()>=12)]}function fs(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Gr=St(yr+="",lt);return Gr.toString=function(){return yr},Gr},parse:function(yr){var Gr=bt(yr+="",!1);return Gr.toString=function(){return yr},Gr},utcFormat:function(yr){var Gr=St(yr+="",Zr);return Gr.toString=function(){return yr},Gr},utcParse:function(yr){var Gr=bt(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 Ee=ae<0?"-":"",ar=(Ee?-ae:ae)+"",cr=ar.length;return Ee+(cr68?1900:2e3),qe+Ee[0].length):-1}function M(ae,oe,qe){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Ee?(ae.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),qe+Ee[0].length):-1}function C(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+1));return Ee?(ae.q=Ee[0]*3-3,qe+Ee[0].length):-1}function k(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.m=Ee[0]-1,qe+Ee[0].length):-1}function q(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.d=+Ee[0],qe+Ee[0].length):-1}function D(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.m=0,ae.d=+Ee[0],qe+Ee[0].length):-1}function P(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.H=+Ee[0],qe+Ee[0].length):-1}function z(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.M=+Ee[0],qe+Ee[0].length):-1}function F(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.S=+Ee[0],qe+Ee[0].length):-1}function O(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.L=+Ee[0],qe+Ee[0].length):-1}function I(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+6));return Ee?(ae.L=Math.floor(Ee[0]/1e3),qe+Ee[0].length):-1}function W(ae,oe,qe){var Ee=s.exec(oe.slice(qe,qe+1));return Ee?qe+Ee[0].length:-1}function Z(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.Q=+Ee[0],qe+Ee[0].length):-1}function V(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.s=+Ee[0],qe+Ee[0].length):-1}function Y(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 K(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 pe(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 de(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 ge(ae){return ae.getDay()}function Ae(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 U(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 ve(ae,oe){return f(ae.getUTCHours(),oe,2)}function me(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function De(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Re(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Le(ae,oe){return Re(ae,oe)+"000"}function Fe(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Oe(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function We(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function Pe(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Be(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function Ge(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 Te(){return"%"}function ke(ae){return+ae}function He(ae){return Math.floor(+ae/1e3)}var Je;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(ae){return Je=i(ae),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ae){return ae.toISOString()}var tr=Date.prototype.toISOString?lr:e.utcFormat(Xe);function Qe(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?Qe:e.utcParse(Xe);e.isoFormat=tr,e.isoParse=Ne,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var J1=J((wv,wb)=>{(function(e,r){typeof wv=="object"&&typeof wb!="undefined"?r(wv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(wv,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],W=0;z>0&&I>0&&(W+I+1>P&&(I=Math.max(1,P-W)),F.push(D.substring(z-=I,z+I)),!((W+=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+"",W=k.nan===void 0?"NaN":k.nan+"";function Z(Y){Y=o(Y);var H=Y.fill,Q=Y.align,K=Y.sign,ne=Y.symbol,pe=Y.zero,ye=Y.width,Se=Y.comma,re=Y.precision,Ce=Y.trim,de=Y.type;de==="n"?(Se=!0,de="g"):d[de]||(re===void 0&&(re=12),Ce=!0,de="g"),(pe||H==="0"&&Q==="=")&&(pe=!0,H="0",Q="=");var be=ne==="$"?D:ne==="#"&&/[boxX]/.test(de)?"0"+de.toLowerCase():"",ge=ne==="$"?P:/[%p]/.test(de)?O:"",Ae=d[de],B=/[defgprs%]/.test(de);re=re===void 0?6:/[gprs]/.test(de)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function $(U){var le=be,ve=ge,me,De,Re;if(de==="c")ve=Ae(U)+ve,U="";else{U=+U;var Le=U<0||1/U<0;if(U=isNaN(U)?W:Ae(Math.abs(U),re),Ce&&(U=u(U)),Le&&+U==0&&K!=="+"&&(Le=!1),le=(Le?K==="("?K:I:K==="-"||K==="("?"":K)+le,ve=(de==="s"?g[8+f/3]:"")+ve+(Le&&K==="("?")":""),B){for(me=-1,De=U.length;++meRe||Re>57){ve=(Re===46?z+U.slice(me+1):U.slice(me))+ve,U=U.slice(0,me);break}}}Se&&!pe&&(U=q(U,1/0));var Fe=le.length+U.length+ve.length,Oe=Fe>1)+le+U+ve+Oe.slice(Fe);break;default:U=Oe+le+U+ve;break}return F(U)}return $.toString=function(){return Y+""},$}function V(Y,H){var Q=Z((Y=o(Y),Y.type="f",Y)),K=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ne=Math.pow(10,-K),pe=g[8+K/3];return function(ye){return Q(ne*ye)+pe}}return{format:Z,formatPrefix:V}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}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=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var Mb=J((qie,Tb)=>{"use strict";Tb.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=J((Die,Ab)=>{"use strict";var pI=Mb();Ab.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&pI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=J((Eie,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 K1=J((Tv,Sb)=>{(function(e,r){typeof Tv=="object"&&typeof Sb!="undefined"?r(Tv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Tv,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 fl=J((Pie,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 an=J(Gn=>{"use strict";var mI=K1().decode,yI=fl(),Q1=Array.isArray,gI=ArrayBuffer,bI=DataView;function Lb(e){return gI.isView(e)&&!(e instanceof bI)}Gn.isTypedArray=Lb;function Mv(e){return Q1(e)||Lb(e)}Gn.isArrayOrTypedArray=Mv;function xI(e){return!Mv(e[0])}Gn.isArray1D=xI;Gn.ensureArray=function(e,r){return Q1(e)||(e=[]),e.length=r,e};var ia={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};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function $1(e){return e.constructor===ArrayBuffer}Gn.isArrayBuffer=$1;Gn.decodeTypedArraySpec=function(e){var r=[],t=_I(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;$1(l)||(l=mI(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 Db=Hr(),ep=an().isArrayOrTypedArray;zb.exports=function(r,t){if(Db(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 bs=Av(),kI=/^\w*$/,SI=0,Nb=1,kv=2,Fb=3,io=4;Ib.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=bs(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|kv,v.set(h,null);if(f){for(i=d;i{"use strict";var CI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,LI=/^[^\.\[\]]+$/;Ob.exports=function(e,r){for(;r;){var t=e.match(CI);if(t)e=t[1];else if(e.match(LI))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=J((Iie,Yb)=>{"use strict";var qI=Hr();Yb.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 qI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Gb=J((Hie,Vb)=>{"use strict";var Ub=an().isArrayOrTypedArray,Wu=fl();Vb.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(Ub(n)&&Ub(i)&&Wu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function DI(e,r){var t=e%r;return t<0?t+r:t}function EI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Wb.exports={mod:DI,modHalf:EI}});var _n=J((Bie,Cv)=>{(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 U=u(B);this._originalInput=B,this._r=U.r,this._g=U.g,this._b=U.b,this._a=U.a,this._roundA=n(100*this._a)/100,this._format=$.format||U.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=U.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(),$,U,le,ve,me,De;return $=B.r/255,U=B.g/255,le=B.b/255,$<=.03928?ve=$/12.92:ve=e.pow(($+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=e.pow((U+.055)/1.055,2.4),le<=.03928?De=le/12.92:De=e.pow((le+.055)/1.055,2.4),.2126*ve+.7152*me+.0722*De},setAlpha:function(B){return this._a=Y(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),U=n(B.s*100),le=n(B.v*100);return this._a==1?"hsv("+$+", "+U+"%, "+le+"%)":"hsva("+$+", "+U+"%, "+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),U=n(B.s*100),le=n(B.l*100);return this._a==1?"hsl("+$+", "+U+"%, "+le+"%)":"hsla("+$+", "+U+"%, "+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:Z[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var $="#"+_(this._r,this._g,this._b,this._a),U=$,le=this._gradientType?"GradientType = 1, ":"";if(B){var ve=s(B);U="#"+_(ve._r,ve._g,ve._b,ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+$+",endColorstr="+U+")"},toString:function(B){var $=!!B;B=B||this._format;var U=!1,le=this._a<1&&this._a>=0,ve=!$&&le&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return ve?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(U=this.toRgbString()),B==="prgb"&&(U=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(U=this.toHexString()),B==="hex3"&&(U=this.toHexString(!0)),B==="hex4"&&(U=this.toHex8String(!0)),B==="hex8"&&(U=this.toHex8String()),B==="name"&&(U=this.toName()),B==="hsl"&&(U=this.toHslString()),B==="hsv"&&(U=this.toHsvString()),U||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,$){var U=B.apply(null,[this].concat([].slice.call($)));return this._r=U._r,this._g=U._g,this._b=U._b,this.setAlpha(U._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(w,arguments)},saturate:function(){return this._applyModification(T,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 U={};for(var le in B)B.hasOwnProperty(le)&&(le==="a"?U[le]=B[le]:U[le]=Se(B[le]));B=U}return s(B,$)};function u(B){var $={r:0,g:0,b:0},U=1,le=null,ve=null,me=null,De=!1,Re=!1;return typeof B=="string"&&(B=ge(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?($=f(B.r,B.g,B.b),De=!0,Re=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(le=Se(B.s),ve=Se(B.v),$=m(B.h,le,ve),De=!0,Re="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(le=Se(B.s),me=Se(B.l),$=h(B.h,le,me),De=!0,Re="hsl"),B.hasOwnProperty("a")&&(U=B.a)),U=Y(U),{ok:De,format:B.format||Re,r:i(255,l($.r,0)),g:i(255,l($.g,0)),b:i(255,l($.b,0)),a:U}}function f(B,$,U){return{r:H(B,255)*255,g:H($,255)*255,b:H(U,255)*255}}function v(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=(le+ve)/2;if(le==ve)me=De=0;else{var Le=le-ve;switch(De=Re>.5?Le/(2-le-ve):Le/(le+ve),le){case B:me=($-U)/Le+($1&&(We-=1),We<1/6?Fe+(Oe-Fe)*6*We:We<1/2?Oe:We<2/3?Fe+(Oe-Fe)*(2/3-We)*6:Fe}if($===0)le=ve=me=U;else{var Re=U<.5?U*(1+$):U+$-U*$,Le=2*U-Re;le=De(Le,Re,B+1/3),ve=De(Le,Re,B),me=De(Le,Re,B-1/3)}return{r:le*255,g:ve*255,b:me*255}}function d(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=le,Le=le-ve;if(De=le===0?0:Le/le,le==ve)me=0;else{switch(le){case B:me=($-U)/Le+($>1)+720)%360;--$;)le.h=(le.h+ve)%360,me.push(s(le));return me}function I(B,$){$=$||6;for(var U=s(B).toHsv(),le=U.h,ve=U.s,me=U.v,De=[],Re=1/$;$--;)De.push(s({h:le,s:ve,v:me})),me=(me+Re)%1;return De}s.mix=function(B,$,U){U=U===0?0:U||50;var le=s(B).toRgb(),ve=s($).toRgb(),me=U/100,De={r:(ve.r-le.r)*me+le.r,g:(ve.g-le.g)*me+le.g,b:(ve.b-le.b)*me+le.b,a:(ve.a-le.a)*me+le.a};return s(De)},s.readability=function(B,$){var U=s(B),le=s($);return(e.max(U.getLuminance(),le.getLuminance())+.05)/(e.min(U.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(B,$,U){var le=s.readability(B,$),ve,me;switch(me=!1,ve=Ae(U),ve.level+ve.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,$,U){var le=null,ve=0,me,De,Re,Le;U=U||{},De=U.includeFallbackColors,Re=U.level,Le=U.size;for(var Fe=0;Fe<$.length;Fe++)me=s.readability(B,$[Fe]),me>ve&&(ve=me,le=s($[Fe]));return s.isReadable(B,le,{level:Re,size:Le})||!De?le:(U.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],U))};var W=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"},Z=s.hexNames=V(W);function V(B){var $={};for(var U in B)B.hasOwnProperty(U)&&($[B[U]]=U);return $}function Y(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function H(B,$){ne(B)&&(B="100%");var U=pe(B);return B=i($,l(0,parseFloat(B))),U&&(B=parseInt(B*$,10)/100),e.abs(B-$)<1e-6?1:B%$/parseFloat($)}function Q(B){return i(1,l(0,B))}function K(B){return parseInt(B,16)}function ne(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function pe(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 K(B)/255}var de=function(){var B="[-\\+]?\\d+%?",$="[-\\+]?\\d*\\.\\d+%?",U="(?:"+$+")|(?:"+B+")",le="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",ve="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?";return{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ve),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!!de.CSS_UNIT.exec(B)}function ge(B){B=B.replace(r,"").replace(t,"").toLowerCase();var $=!1;if(W[B])B=W[B],$=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U;return(U=de.rgb.exec(B))?{r:U[1],g:U[2],b:U[3]}:(U=de.rgba.exec(B))?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=de.hsl.exec(B))?{h:U[1],s:U[2],l:U[3]}:(U=de.hsla.exec(B))?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=de.hsv.exec(B))?{h:U[1],s:U[2],v:U[3]}:(U=de.hsva.exec(B))?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=de.hex8.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),a:Ce(U[4]),format:$?"name":"hex8"}:(U=de.hex6.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),format:$?"name":"hex"}:(U=de.hex4.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),a:Ce(U[4]+""+U[4]),format:$?"name":"hex8"}:(U=de.hex3.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),format:$?"name":"hex"}:!1}function Ae(B){var $,U;return B=B||{level:"AA",size:"small"},$=(B.level||"AA").toUpperCase(),U=(B.size||"small").toLowerCase(),$!=="AA"&&$!=="AAA"&&($="AA"),U!=="small"&&U!=="large"&&(U="small"),{level:$,size:U}}typeof Cv!="undefined"&&Cv.exports?Cv.exports=s:window.tinycolor=s})(Math)});var Wt=J(Ju=>{"use strict";var Xb=fl(),Xu=Array.isArray;function PI(e,r){var t,a;for(t=0;t{"use strict";Zb.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 Ku=J((Vie,Jb)=>{"use strict";Jb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _s=J((Gie,$b)=>{"use strict";var Kb=Ku(),Qb=ma(),rp=Qb({editType:"none"});rp.family.dflt=Kb.HOVERFONT;rp.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:rp,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 Lv=J((Wie,jb)=>{"use strict";var RI=ma(),Qu=_s().hoverlabel,$u=Wt().extendFlat;jb.exports={hoverlabel:{bgcolor:$u({},Qu.bgcolor,{arrayOk:!0}),bordercolor:$u({},Qu.bordercolor,{arrayOk:!0}),font:RI({arrayOk:!0,editType:"none"}),align:$u({},Qu.align,{arrayOk:!0}),namelength:$u({},Qu.namelength,{arrayOk:!0}),showarrow:$u({},Qu.showarrow),editType:"none"}}});var Wn=J((Xie,ex)=>{"use strict";var zI=ma(),NI=Lv();ex.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:zI({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:NI.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 lo=J((Zie,ax)=>{"use strict";var FI=_n(),qv={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)"]]},rx=qv.RdBu;function II(e,r){if(r||(r=rx),!e)return r;function t(){try{e=qv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),tx(e)?e:r}function tx(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";oo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];oo.defaultLine="#444";oo.lightLine="#eee";oo.background="#fff";oo.borderLine="#BEC8D9";oo.lightFraction=100*10/11});var Er=J((Kie,nx)=>{"use strict";var Xa=_n(),OI=Hr(),BI=an().isTypedArray,$t=nx.exports={},Dv=mi();$t.defaults=Dv.defaults;var YI=$t.defaultLine=Dv.defaultLine;$t.lightLine=Dv.lightLine;var ap=$t.background=Dv.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Xa(e))};$t.opacity=function(e){return e?Xa(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Xa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Xa(e).toRgb();if(t.a===1)return Xa(e).toRgbString();var a=Xa(r||ap).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 Xa(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Xa(e).toRgb(),n=Xa(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 Xa(i).toRgbString()};$t.contrast=function(e,r,t){var a=Xa(e);a.getAlpha()!==1&&(a=Xa($t.combine(e,ap)));var n=a.isDark()?r?a.lighten(r):ap:t?a.darken(t):YI;return n.toString()};$t.stroke=function(e,r){var t=Xa(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Xa(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.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 Ev=J((Qie,ix)=>{"use strict";ix.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var ws=J(lx=>{"use strict";lx.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 fx=J(Za=>{"use strict";var np=Hr(),ox=_n(),sx=Wt().extendFlat,UI=Wn(),VI=lo(),GI=Er(),WI=Ev().DESELECTDIM,Ts=Av(),ux=ws().counter,XI=xs().modHalf,Xn=an().isArrayOrTypedArray,cl=an().isTypedArraySpec,vl=an().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Xn(e)?e:cl(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){cl(e)&&(e=vl(e)),!np(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}cl(e)&&(e=vl(e)),e%1||!np(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){cl(e)&&(e=vl(e)),ox(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return ox(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(VI.get(e,t))}},angle:{coerceFunction:function(e,r,t){cl(e)&&(e=vl(e)),e==="auto"?r.set("auto"):np(e)?r.set(XI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||ux(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Xn(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:!!ux(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 cx={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},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:{}}},vx={};function hx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),hx(a,r[t]))}}hx(cx,vx);dx.exports={configAttributes:cx,dfltConfig:vx}});var lp=J((rle,px)=>{"use strict";var ip=Ir(),ZI=Hr(),ju=[];px.exports=function(e,r){if(ju.indexOf(e)!==-1)return;ju.push(e);var t=1e3;ZI(r)?t=r:r==="long"&&(t=3e3);var a=ip.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(ju);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=ju.indexOf(o);s!==-1&&ju.splice(s,1),ip.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=ip.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var Ms=so().dfltConfig,op=lp(),sp=mx.exports={};sp.log=function(){var e;if(Ms.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};sp.warn=function(){var e;if(Ms.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};sp.error=function(){var e;if(Ms.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Rv=J((ale,yx)=>{"use strict";yx.exports=function(){}});var up=J((nle,gx)=>{"use strict";gx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{bx.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 wx=J((lle,_x)=>{_x.exports=KI;function KI(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 Mx=J((ole,Tx)=>{Tx.exports=QI;function QI(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 fp=J((sle,Ax)=>{Ax.exports=$I;function $I(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 Sx=J((ule,kx)=>{kx.exports=jI;function jI(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 Lx=J((fle,Cx)=>{Cx.exports=eH;function eH(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],w=t*o-a*l,T=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=w*O-T*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-_*T)*I,e[7]=(f*k-h*b+d*T)*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+_*w)*I,e[11]=(v*b-f*C-d*w)*I,e[12]=(o*D-l*z-s*q)*I,e[13]=(t*z-a*D+n*q)*I,e[14]=(y*T-m*M-g*w)*I,e[15]=(f*M-v*T+h*w)*I,e):null}});var Dx=J((cle,qx)=>{qx.exports=rH;function rH(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 Px=J((vle,Ex)=>{Ex.exports=tH;function tH(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,w=r*o-a*i,T=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-w*z+T*P+b*D-M*q+C*k}});var zx=J((hle,Rx)=>{Rx.exports=aH;function aH(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],w=r[15],T=t[0],b=t[1],M=t[2],C=t[3];return e[0]=T*a+b*o+M*v+C*y,e[1]=T*n+b*s+M*h+C*g,e[2]=T*i+b*u+M*d+C*_,e[3]=T*l+b*f+M*m+C*w,T=t[4],b=t[5],M=t[6],C=t[7],e[4]=T*a+b*o+M*v+C*y,e[5]=T*n+b*s+M*h+C*g,e[6]=T*i+b*u+M*d+C*_,e[7]=T*l+b*f+M*m+C*w,T=t[8],b=t[9],M=t[10],C=t[11],e[8]=T*a+b*o+M*v+C*y,e[9]=T*n+b*s+M*h+C*g,e[10]=T*i+b*u+M*d+C*_,e[11]=T*l+b*f+M*m+C*w,T=t[12],b=t[13],M=t[14],C=t[15],e[12]=T*a+b*o+M*v+C*y,e[13]=T*n+b*s+M*h+C*g,e[14]=T*i+b*u+M*d+C*_,e[15]=T*l+b*f+M*m+C*w,e}});var Fx=J((dle,Nx)=>{Nx.exports=nH;function nH(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 Hx=J((ple,Ix)=>{Ix.exports=iH;function iH(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 Bx=J((mle,Ox)=>{Ox.exports=lH;function lH(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,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W;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],w=r[7],T=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,W=l*l*f+u,e[0]=v*k+y*q+T*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+M*D,e[3]=m*k+w*q+C*D,e[4]=v*P+y*z+T*F,e[5]=h*P+g*z+b*F,e[6]=d*P+_*z+M*F,e[7]=m*P+w*z+C*F,e[8]=v*O+y*I+T*W,e[9]=h*O+g*I+b*W,e[10]=d*O+_*I+M*W,e[11]=m*O+w*I+C*W,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ux=J((yle,Yx)=>{Yx.exports=oH;function oH(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 Gx=J((gle,Vx)=>{Vx.exports=sH;function sH(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 Xx=J((ble,Wx)=>{Wx.exports=uH;function uH(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 Jx=J((xle,Zx)=>{Zx.exports=fH;function fH(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 Qx=J((_le,Kx)=>{Kx.exports=cH;function cH(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,w=l*u;return e[0]=1-(d+y),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,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 jx=J((wle,$x)=>{$x.exports=vH;function vH(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_=J((Tle,e_)=>{e_.exports=hH;function hH(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_=J((Mle,t_)=>{t_.exports=dH;function dH(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 i_=J((Ale,n_)=>{n_.exports=pH;function pH(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 o_=J((kle,l_)=>{l_.exports=mH;function mH(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 u_=J((Sle,s_)=>{s_.exports=yH;function yH(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 c_=J((Cle,f_)=>{f_.exports=gH;function gH(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 h_=J((Lle,v_)=>{v_.exports=bH;function bH(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 p_=J((qle,d_)=>{d_.exports=xH;function xH(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 y_=J((Dle,m_)=>{m_.exports=_H;function _H(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 b_=J((Ele,g_)=>{var wH=fp();g_.exports=TH;function TH(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],w=a[1],T=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?wH(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=w*h-T*v,i=T*f-_*h,l=_*v-w*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 __=J((Ple,x_)=>{x_.exports=MH;function MH(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 cp=J((Rle,w_)=>{w_.exports={create:xx(),clone:wx(),copy:Mx(),identity:fp(),transpose:Sx(),invert:Lx(),adjoint:Dx(),determinant:Px(),multiply:zx(),translate:Fx(),scale:Hx(),rotate:Bx(),rotateX:Ux(),rotateY:Gx(),rotateZ:Xx(),fromRotation:Jx(),fromRotationTranslation:Qx(),fromScaling:jx(),fromTranslation:r_(),fromXRotation:a_(),fromYRotation:i_(),fromZRotation:o_(),fromQuat:u_(),frustum:c_(),perspective:h_(),perspectiveFromFieldOfView:p_(),ortho:y_(),lookAt:b_(),str:__()}});var zv=J(Pt=>{"use strict";var AH=cp();Pt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var kH=Ir(),T_=uo(),SH=zv(),CH=cp();function LH(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 qH(e){var r=kH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function M_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function DH(e,r){A_("global",e,r)}function A_(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):T_.warn("addStyleRule failed"):T_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function EH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&M_(t)}function PH(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 RH(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(a){var n=k_(a);if(n){var i=SH.convertCssMatrix(n);t=CH.multiply(t,t,i)}}),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(a){return+a})}function S_(e){for(var r=[];zH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function zH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function NH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}C_.exports={getGraphDiv:LH,isPlotDiv:qH,removeElement:M_,addStyleRule:DH,addRelatedStyleRule:A_,deleteRelatedStyleRule:EH,setStyleOnHover:PH,getFullTransformMatrix:RH,getElementTransformMatrix:k_,getElementAndAncestors:S_,equalDomRects:NH}});var rf=J((Fle,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 yi=J((Ile,N_)=>{"use strict";var D_=Wt().extendFlat,FH=fl(),E_={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"]},IH=E_.flags.slice().concat(["fullReplot"]),HH=P_.flags.slice().concat("layoutReplot");N_.exports={traces:E_,layout:P_,traceFlags:function(){return q_(IH)},layoutFlags:function(){return q_(HH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";vp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};vp.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 hp=J((Ole,F_)=>{"use strict";F_.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 fo=J(As=>{"use strict";var{DATE_FORMAT_LINK:OH,FORMAT_LINK:BH}=hp(),YH=["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 UH({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}".`,BH,"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}".`,OH,"for details on the date formatting syntax.",YH].join(" ")}As.templateFormatStringDescription=UH;As.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});As.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Iv=J((Ule,U_)=>{"use strict";function hl(e,r){return r?r.d2l(e):e}function I_(e,r){return r?r.l2d(e):e}function VH(e){return e.x0}function GH(e){return e.x1}function WH(e){return e.y0}function XH(e){return e.y1}function H_(e){return e.x0shift||0}function O_(e){return e.x1shift||0}function B_(e){return e.y0shift||0}function Y_(e){return e.y1shift||0}function Nv(e,r){return hl(e.x1,r)+O_(e)-hl(e.x0,r)-H_(e)}function Fv(e,r,t){return hl(e.y1,t)+Y_(e)-hl(e.y0,t)-B_(e)}function ZH(e,r){return Math.abs(Nv(e,r))}function JH(e,r,t){return Math.abs(Fv(e,r,t))}function KH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Nv(e,r),2)+Math.pow(Fv(e,r,t),2))}function QH(e,r){return I_((hl(e.x1,r)+O_(e)+hl(e.x0,r)+H_(e))/2,r)}function $H(e,r,t){return I_((hl(e.y1,t)+Y_(e)+hl(e.y0,t)+B_(e))/2,t)}function jH(e,r,t){return e.type!=="line"?void 0:Fv(e,r,t)/Nv(e,r)}var eO=["x0","x1","y0","y1","dy","height","ycenter"],rO=["x0","x1","y0","y1","dx","width","xcenter"];U_.exports={x0:VH,x1:GH,y0:WH,y1:XH,slope:jH,dx:Nv,dy:Fv,width:ZH,height:JH,length:KH,xcenter:QH,ycenter:$H,simpleXVariables:eO,simpleYVariables:rO}});var W_=J((Vle,G_)=>{"use strict";var tO=yi().overrideAll,co=Wn(),V_=ma(),aO=gi().dash,dl=Wt().extendFlat,{shapeTexttemplateAttrs:nO,templatefallbackAttrs:iO}=fo(),lO=Iv();G_.exports=tO({newshape:{visible:dl({},co.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:dl({},co.legend,{}),legendgroup:dl({},co.legendgroup,{}),legendgrouptitle:{text:dl({},co.legendgrouptitle.text,{}),font:V_({})},legendrank:dl({},co.legendrank,{}),legendwidth:dl({},co.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:dl({},aO,{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:dl({},co.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:nO({newshape:!0},{keys:Object.keys(lO)}),texttemplatefallback:iO({editType:"arraydraw"}),font:V_({}),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_=J((Gle,X_)=>{"use strict";var oO=gi().dash,sO=Wt().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:sO({},oO,{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 Hv=J((Wle,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 ks=J((Xle,j_)=>{"use strict";var dp=ma(),uO=rf(),Ov=mi(),K_=W_(),Q_=Z_(),fO=Hv(),$_=Wt().extendFlat,Bv=dp({editType:"calc"});Bv.family.dflt='"Open Sans", verdana, arial, sans-serif';Bv.size.dflt=12;Bv.color.dflt=Ov.defaultLine;j_.exports={font:Bv,title:{text:{valType:"string",editType:"layoutstyle"},font:dp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:dp({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:$_(fO({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:Ov.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Ov.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:Ov.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:$_({},uO.transition,{editType:"none"})}});var e4=J(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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=J(zr=>{"use strict";var Ss=uo(),r4=Rv(),t4=up(),cO=fl(),vO=ef().addStyleRule,a4=Wt(),hO=Wn(),dO=ks(),pO=a4.extendFlat,pp=a4.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 _O=gs().timeFormat,d4=Hr(),mp=uo(),ml=xs().mod,qs=Gt(),wn=qs.BADNUM,Ja=qs.ONEDAY,tf=qs.ONEHOUR,pl=qs.ONEMIN,Ls=qs.ONESEC,af=qs.EPOCHJD,Bi=br(),s4=gs().utcFormat,wO=/^\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,TO=/^\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,u4=new Date().getFullYear()-70;function Yi(e){return e&&Bi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Rt.dateTick0=function(e,r){var t=MO(e,!!r);if(r<2)return t;var a=Rt.dateTime2ms(t,e);return a+=Ja*(r-1),Rt.ms2DateTime(a,0,e)};function MO(e,r){return Yi(e)?r?Bi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Bi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Rt.dfltRange=function(e){return Yi(e)?Bi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Rt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Uv,Vv;Rt.dateTime2ms=function(e,r){if(Rt.isJSDate(e)){var t=e.getTimezoneOffset()*pl,a=(e.getUTCMinutes()-e.getMinutes())*pl+(e.getUTCSeconds()-e.getSeconds())*Ls+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*pl;t=t-n/2+ml(a-t+n/2,n)}return e=Number(e)-t,e>=Uv&&e<=Vv?e:wn}if(typeof e!="string"&&typeof e!="number")return wn;e=String(e);var i=Yi(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?TO:wO);if(!s)return wn;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 wn;u=Number(u);var y;try{var g=Bi.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(T){return wn}return y?(y.toJD()-af)*Ja+h*tf+d*pl+m*Ls:wn}u.length===2?u=(Number(u)+2e3-u4)%100+u4:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?wn:w.getTime()+m*Ls};Uv=Rt.MIN_MS=Rt.dateTime2ms("-9999");Vv=Rt.MAX_MS=Rt.dateTime2ms("9999-12-31 23:59:59.9999");Rt.isDateTime=function(e,r){return Rt.dateTime2ms(e,r)!==wn};function Cs(e,r){return String(e+Math.pow(10,r)).slice(1)}var Yv=90*Ja,f4=3*tf,c4=5*pl;Rt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Uv&&e<=Vv))return wn;r||(r=0);var a=Math.floor(ml(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Yi(t)){var v=Math.floor(n/Ja)+af,h=Math.floor(ml(e,Ja));try{i=Bi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=s4("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=Uv+Ja&&e<=Vv-Ja))return wn;var r=Math.floor(ml(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=_O("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return p4(a,n,i,l,o)};function p4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Cs(r,2)+":"+Cs(t,2),(a||n)&&(e+=":"+Cs(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Cs(n,i)}return e}Rt.cleanDate=function(e,r,t){if(e===wn)return r;if(Rt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Yi(t))return mp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Rt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Rt.isDateTime(e,t))return mp.error("unrecognized date",e),r;return e};var AO=/%\d?f/g,kO=/%h/g,SO={1:"1",2:"1",3:"2",4:"2"};function v4(e,r,t,a){e=e.replace(AO,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(kO,function(){return SO[t("%q")(n)]}),Yi(a))try{e=Bi.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var CO=[59,59.9,59.99,59.999,59.9999];function LO(e,r){var t=ml(e+.05,Ja),a=Cs(Math.floor(t/tf),2)+":"+Cs(ml(Math.floor(t/pl),60),2);if(r!=="M"){d4(r)||(r=0);var n=Math.min(ml(e/Ls,60),CO[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Rt.formatDate=function(e,r,t,a,n,i){if(n=Yi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`)};function E(G){return G.map(N).join(c)}function N(G){return x.test(G)?'"'+G.replace(/\"/g,'""')+'"':G}return S},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Zc,Jc,Kc,Qc,e5=this[V(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){$c.apply(this,arguments)};function $c(c,p,x){var A=arguments.length;A<2&&(p=0),A<3&&(x=Date.now());var S=x+p,L={c,t:S,n:null};return Jc?Jc.n=L:Zc=L,Jc=L,Kc||(Qc=clearTimeout(Qc),Kc=1,e5(x1)),L}function x1(){var c=r5(),p=t5()-c;p>24?(isFinite(p)&&(clearTimeout(Qc),Qc=setTimeout(x1,p)),Kc=0):(Kc=1,e5(x1))}e.timer.flush=function(){r5(),t5()};function r5(){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 t5(){for(var c,p=Zc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[G[j[E]][2]]);for(E=+he;E1&&it(c[x[A-2]],c[x[A-1]],c[S])<=0;)--A;x[A++]=S}return x.slice(0,A)}function vN(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-mN(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=o5(c);if(hs.insert(A,N),!(!A&&!S)){if(A===S){ps(A),S=o5(A.site),hs.insert(N,S),N.edge=S.edge=Hu(A.site,N.site),ds(A),ds(S);return}if(!S){N.edge=Hu(A.site,N.site);return}ps(A),ps(S);var G=A.site,X=G.x,j=G.y,ee=c.x-X,he=c.y-j,we=S.site,te=we.x-X,se=we.y-j,ue=2*(ee*se-he*te),_e=ee*ee+he*he,Me=te*te+se*se,ce={x:(se*_e-he*Me)/ue+X,y:(ee*Me-te*_e)/ue+j};ev(S.edge,G,we,ce),N.edge=Hu(G,c,null,ce),S.edge=Hu(c,we,null,ce),ds(A),ds(S)}}function s5(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,G=N-p;if(!G)return E;var X=E-A,j=1/L-1/G,ee=X/G;return j?(-ee+Math.sqrt(ee*ee-2*j*(X*X/(-2*G)-N+G/2+S-L/2)))/j+A:(A+E)/2}function mN(c,p){var x=c.N;if(x)return s5(x,p);var A=c.site;return A.y===p?A.x:1/0}function u5(c){this.site=c,this.edges=[]}u5.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(f5),c.length};function yN(c){for(var p=c[0][0],x=c[1][0],A=c[0][1],S=c[1][1],L,R,E,N,G=jl,X=G.length,j,ee,he,we,te,se;X--;)if(j=G[X],!(!j||!j.prepare()))for(he=j.edges,we=he.length,ee=0;eeoe||_(N-R)>oe)&&(he.splice(ee,0,new rv(wN(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+G*G,he=X*X+se*se,we=(se*ee-G*he)/j,te=(N*he-X*ee)/j,se=te+E,ue=l5.pop()||new gN;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,Me=Iu._;Me;)if(ue.y0)){if(te/=he,he<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=x-E,!(!he&&te<0)){if(te/=he,he<0){if(te>ee)return;te>j&&(j=te)}else if(he>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*he,y:N+j*we}),ee<1&&(S.b={x:E+ee*he,y:N+ee*we}),S}}}}}}function xN(c){for(var p=vs,x=bN(c[0][0],c[0][1],c[1][0],c[1][1]),A=p.length,S;A--;)S=p[A],(!_N(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<=he?[[X,he],[ee,he],[ee,j],[X,j]]:[];_e.point=N[te]}),G}function E(N){return N.map(function(G,X){return{x:Math.round(A(G,X)/oe)*oe,y:Math.round(S(G,X)/oe)*oe,i:X}})}return R.links=function(N){return k1(E(N)).edges.filter(function(G){return G.l&&G.r}).map(function(G){return{source:N[G.l.i],target:N[G.r.i]}})},R.triangles=function(N){var G=[];return k1(E(N)).cells.forEach(function(X,j){for(var ee=X.site,he=X.edges.sort(f5),we=-1,te=he.length,se,ue,_e=he[te-1].edge,Me=_e.l===ee?_e.r:_e.l;++weMe&&(Me=X.x),X.y>ce&&(ce=X.y),he.push(X.x),we.push(X.y);else for(te=0;teMe&&(Me=Ue),nr>ce&&(ce=nr),he.push(Ue),we.push(nr)}var ur=Me-ue,ir=ce-_e;ur>ir?ce=_e+ur:Me=ue+ir;function dr(mr,Tr,Jr,Et,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Et)))if(mr.leaf){var Kr=mr.x,Tt=mr.y;if(Kr!=null)if(_(Kr-Jr)+_(Tt-Et)<.01)pr(mr,Tr,Jr,Et,rt,er,Lr,qr);else{var Vt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Vt,Kr,Tt,rt,er,Lr,qr),pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}else mr.x=Jr,mr.y=Et,mr.point=Tr}else pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}function pr(mr,Tr,Jr,Et,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,Tt=(er+qr)*.5,Vt=Jr>=Kr,da=Et>=Tt,Ea=da<<1|Vt;mr.leaf=!1,mr=mr.nodes[Ea]||(mr.nodes[Ea]=h5()),Vt?rt=Kr:Lr=Kr,da?er=Tt:qr=Tt,dr(mr,Tr,Jr,Et,rt,er,Lr,qr)}var Cr=h5();if(Cr.add=function(mr){dr(Cr,mr,+j(mr,++te),+ee(mr,te),ue,_e,Me,ce)},Cr.visit=function(mr){Yu(mr,Cr,ue,_e,Me,ce)},Cr.find=function(mr){return SN(Cr,mr[0],mr[1],ue,_e,Me,ce)},te=-1,p==null){for(;++teL||ee>R||he=Ue,ir=x>=nr,dr=ir<<1|ur,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:Oi(A,S)})),x=L1.lastIndex;return x=0&&!(A=e.interpolators[x](c,p)););return A}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?S1:p5:p instanceof bt?S1:Array.isArray(p)?nv:x==="object"&&isNaN(p)?d5:Oi)(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=CN.get(x)||m5,A=LN.get(A)||W,qN(A(x.apply(null,r.call(arguments,1))))};function qN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function y5(c){return function(p){return 1-c(1-p)}}function g5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function DN(c){return c*c}function EN(c){return c*c*c}function PN(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 RN(c){return function(p){return Math.pow(p,c)}}function zN(c){return 1-Math.cos(c*sr)}function NN(c){return Math.pow(2,10*(c-1))}function FN(c){return 1-Math.sqrt(1-c*c)}function IN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/ar*Math.asin(1/c):(c=1,x=p/4),function(A){return 1+c*Math.pow(2,-10*A)*Math.sin((A-x)*ar/p)}}function HN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function ON(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=BN;function BN(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 yn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateHsl=YN;function YN(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 mn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateLab=UN;function UN(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=b5;function b5(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 x5(A?A.matrix:GN)})(c)};function x5(c){var p=[c.a,c.b],x=[c.c,c.d],A=w5(p),S=_5(p,x),L=w5(VN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),A.push({i:x.push(ms(x)+"rotate(",null,")")-2,x:Oi(c,p)})):p&&x.push(ms(x)+"rotate("+p+")")}function ZN(c,p,x,A){c!==p?A.push({i:x.push(ms(x)+"skewX(",null,")")-2,x:Oi(c,p)}):p&&x.push(ms(x)+"skewX("+p+")")}function JN(c,p,x,A){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(ms(x)+"scale(",null,",",null,")");A.push({i:S-4,x:Oi(c[0],p[0])},{i:S-2,x:Oi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(ms(x)+"scale("+p+")")}function T5(c,p){var x=[],A=[];return c=e.transform(c),p=e.transform(p),WN(c.translate,p.translate,x,A),XN(c.rotate,p.rotate,x,A),ZN(c.skew,p.skew,x,A),JN(c.scale,p.scale,x,A),c=p=null,function(S){for(var L=-1,R=A.length,E;++L0?L=ce:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ce>0&&(p.start({type:"start",alpha:L=ce}),x=$c(c.tick)),c):L},c.start=function(){var ce,Ue=he.length,nr=we.length,ur=A[0],ir=A[1],dr,pr;for(ce=0;ce=0;)L.push(X=G[N]),X.parent=E,X.depth=E.depth+1;x&&(E.value=0),E.children=G}else x&&(E.value=+x.call(A,E,E.depth)||0),delete E.children;return di(S,function(j){var ee,he;c&&(ee=j.children)&&ee.sort(c),x&&(he=j.parent)&&(he.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&&(Vu(S,function(L){L.children&&(L.value=0)}),di(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 Uu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=fF,c}function Vu(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 di(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 yF(c){return c.reduce(gF,0)}function gF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=xF,A=bF;function S(L,ee){for(var E=[],N=L.map(p,this),G=x.call(this,N,ee),X=A.call(this,G,N,ee),j,ee=-1,he=N.length,we=X.length-1,te=c?1:1/he,se;++ee0)for(ee=-1;++ee=G[0]&&se<=G[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 S5(R,L)}:Rr(L),S):A},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function bF(c,p){return S5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function S5(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 xF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(_F),p=0,x=[1,1],A;function S(L,R){var E=c.call(this,L,R),N=E[0],G=x[0],X=x[1],j=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(N.x=N.y=0,di(N,function(he){he.r=+j(he.value)}),di(N,q5),p){var ee=p*(A?1:Math.max(2*N.r/G,2*N.r/X))/2;di(N,function(he){he.r+=ee}),di(N,q5),di(N,function(he){he.r-=ee})}return D5(N,G/2,X/2,A?1:1/Math.max(2*N.r/G,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},Uu(S,c)};function _F(c,p){return c.value-p.value}function E1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function C5(c,p){c._pack_next=p,p._pack_prev=c}function L5(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 q5(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,G,X,j,ee;function he(ce){x=Math.min(ce.x-ce.r,x),A=Math.max(ce.x+ce.r,A),S=Math.min(ce.y-ce.r,S),L=Math.max(ce.y+ce.r,L)}if(p.forEach(wF),R=p[0],R.x=-R.r,R.y=0,he(R),ee>1&&(E=p[1],E.x=E.r,E.y=0,he(E),ee>2))for(N=p[2],E5(R,E,N),he(N),E1(R,N),R._pack_prev=N,E1(N,E),E=R._pack_next,G=3;Gse.x&&(se=Ue),Ue.depth>ue.depth&&(ue=Ue)});var _e=p(te,se)/2-te.x,Me=x[0]/(se.x+p(se,te)/2+_e),ce=x[1]/(ue.depth||1);Vu(he,function(Ue){Ue.x=(Ue.x+_e)*Me,Ue.y=Ue.depth*ce})}return ee}function L(X){for(var j={A:null,children:[X]},ee=[j],he;(he=ee.pop())!=null;)for(var we=he.children,te,se=0,ue=we.length;se0&&(MF(kF(te,X,ee),X,Ue),ue+=Ue,_e+=Ue),Me+=te.m,ue+=he.m,ce+=se.m,_e+=we.m;te&&!R1(we)&&(we.t=te,we.m+=Me-_e),he&&!P1(se)&&(se.t=he,se.m+=ue-ce,ee=X)}return ee}function G(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?G:null,S):A?null:x},S.nodeSize=function(X){return arguments.length?(A=(x=X)==null?null:G,S):A?x:null},Uu(S,c)};function P5(c,p){return c.parent==p.parent?1:2}function P1(c){var p=c.children;return p.length?p[0]:c.t}function R1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function MF(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 AF(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 kF(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=P5,x=[1,1],A=!1;function S(L,R){var E=c.call(this,L,R),N=E[0],G,X=0;di(N,function(te){var se=te.children;se&&se.length?(te.x=CF(se),te.y=SF(se)):(te.x=G?X+=p(te,G):0,te.y=0,G=te)});var j=R5(N),ee=z5(N),he=j.x-p(j,ee)/2,we=ee.x+p(ee,j)/2;return di(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-he)/(we-he)*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},Uu(S,c)};function SF(c){return 1+e.max(c,function(p){return p.y})}function CF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function R5(c){var p=c.children;return p&&p.length?R5(p[0]):c}function z5(c){var p=c.children,x;return p&&(x=p.length)?z5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],A=null,S=z1,L=!1,R,E="squarify",N=.5*(1+Math.sqrt(5));function G(te,se){for(var ue=-1,_e=te.length,Me,ce;++ue<_e;)ce=(Me=te[ue]).value*(se<0?0:se),Me.area=isNaN(ce)||ce<=0?0:ce}function X(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=[],Me=se.slice(),ce,Ue=1/0,nr,ur=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),ir;for(G(Me,ue.dx*ue.dy/te.value),_e.area=0;(ir=Me.length)>0;)_e.push(ce=Me[ir-1]),_e.area+=ce.area,E!=="squarify"||(nr=ee(_e,ur))<=Ue?(Me.pop(),Ue=nr):(_e.area-=_e.pop().area,he(_e,ur,ue,!1),ur=Math.min(ue.dx,ue.dy),_e.length=_e.area=0,Ue=1/0);_e.length&&(he(_e,ur,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(),Me,ce=[];for(G(_e,ue.dx*ue.dy/te.value),ce.area=0;Me=_e.pop();)ce.push(Me),ce.area+=Me.area,Me.z!=null&&(he(ce,Me.z?ue.dx:ue.dy,ue,!_e.length),ce.length=ce.area=0);se.forEach(j)}}function ee(te,se){for(var ue=te.area,_e,Me=0,ce=1/0,Ue=-1,nr=te.length;++UeMe&&(Me=_e));return ue*=ue,se*=se,ue?Math.max(se*Me*N/ue,ue/(se*ce*N)):1/0}function he(te,se,ue,_e){var Me=-1,ce=te.length,Ue=ue.x,nr=ue.y,ur=se?p(te.area/se):0,ir;if(se==ue.dx){for((_e||ur>ue.dy)&&(ur=ue.dy);++Meue.dx)&&(ur=ue.dx);++Me1);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?DF:LF,G=A?QN:KN;return S=N(c,p,G,x),L=N(p,c,G,eo),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(b5)},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 I1(c,N)},E.tickFormat=function(N,G){return d3_scale_linearTickFormat(c,N,G)},E.nice=function(N){return O5(c,N),R()},E.copy=function(){return I5(c,p,x,A)},R()}function H5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function O5(c,p){return N1(c,F5(F1(c,p)[2])),N1(c,F5(F1(c,p)[2])),c}function F1(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 I1(c,p){return e.range.apply(e,F1(c,p))}var EF={s:1,g:1,p:1,r:1,e:1};function B5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function kie(c,p){var x=B5(p[2]);return c in EF?Math.abs(x-B5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return Y5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Y5(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=N1(A.map(S),x?Math:PF);return c.domain(E),A=E.map(L),R},R.ticks=function(){var E=iv(A),N=[],G=E[0],X=E[1],j=Math.floor(S(G)),ee=Math.ceil(S(X)),he=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 Y5(c.copy(),p,x,A)},H5(R,c)}var PF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return U5(e.scale.linear(),1,[0,1])};function U5(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 I1(x,R)},L.tickFormat=function(R,E){return d3_scale_linearTickFormat(x,R,E)},L.nice=function(R){return L.domain(O5(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 U5(c.copy(),p,x)},H5(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 V5([],{t:"range",a:[[]]})};function V5(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(G){return E+N*G})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,G=E.length,X;++N0?x[L-1]:c[0],Lee?0:1;if(X=cr)return N(X,we)+(G?N(G,1-we):"")+"Z";var te,se,ue,_e,Me=0,ce=0,Ue,nr,ur,ir,dr,pr,Cr,mr,Tr=[];if((_e=(+R.apply(this,arguments)||0)/2)&&(ue=A===sv?Math.sqrt(G*G+X*X):+A.apply(this,arguments),we||(ce*=-1),X&&(ce=yt(ue/X*Math.sin(_e))),G&&(Me=yt(ue/G*Math.sin(_e)))),X){Ue=X*Math.cos(j+ce),nr=X*Math.sin(j+ce),ur=X*Math.cos(ee-ce),ir=X*Math.sin(ee-ce);var Jr=Math.abs(ee-j-2*ce)<=Ee?0:1;if(ce&&uv(Ue,nr,ur,ir)===we^Jr){var Et=(j+ee)/2;Ue=X*Math.cos(Et),nr=X*Math.sin(Et),ur=ir=null}}else Ue=nr=0;if(G){dr=G*Math.cos(ee-Me),pr=G*Math.sin(ee-Me),Cr=G*Math.cos(j+Me),mr=G*Math.sin(j+Me);var rt=Math.abs(j-ee+2*Me)<=Ee?0:1;if(Me&&uv(dr,pr,Cr,mr)===1-we^rt){var er=(j+ee)/2;dr=G*Math.cos(er),pr=G*Math.sin(er),Cr=mr=null}}else dr=pr=0;if(he>oe&&(te=Math.min(Math.abs(X-G)/2,+x.apply(this,arguments)))>.001){se=G0?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,G=-E*L,X=c[0]+N,j=c[1]+G,ee=p[0]+N,he=p[1]+G,we=(X+ee)/2,te=(j+he)/2,se=ee-X,ue=he-j,_e=se*se+ue*ue,Me=x-A,ce=X*he-ee*j,Ue=(ue<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*_e-ce*ce)),nr=(ce*ue-se*Ue)/_e,ur=(-ce*se-ue*Ue)/_e,ir=(ce*ue+se*Ue)/_e,dr=(-ce*se+ue*Ue)/_e,pr=nr-we,Cr=ur-te,mr=ir-we,Tr=dr-te;return pr*pr+Cr*Cr>mr*mr+Tr*Tr&&(nr=ir,ur=dr),[[nr-N,ur-G],[nr*x/Me,ur*x/Me]]}function Q5(){return!0}function $5(c){var p=cs,x=Fu,A=Q5,S=Un,L=S.key,R=.7;function E(N){var G=[],X=[],j=-1,ee=N.length,he,we=Rr(p),te=Rr(x);function se(){G.push("M",S(c(X),R))}for(;++j1?c.join("L"):c+"Z"}function j5(c){return c.join("L")+"Z"}function YF(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 O1(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 G=2;G9&&(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 QF(c){return c.length<3?Un(c):c[0]+cv(c,KF(c))}e.svg.line.radial=function(){var c=$5(ab);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ab(c){for(var p,x=-1,A=c.length,S,L;++xEe)+",1 "+j}function G(X,j,ee,he){return"Q 0,0 "+he}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 $F(c){return c.radius}e.svg.diagonal=function(){var c=ib,p=lb,x=ob;function A(S,L){var R=c.call(this,S,L),E=p.call(this,S,L),N=(R.y+E.y)/2,G=[R,{x:R.x,y:N},{x:E.x,y:N},E];return G=G.map(x),"M"+G[0]+"C"+G[1]+" "+G[2]+" "+G[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 ob(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=ob,x=c.projection;return c.projection=function(A){return arguments.length?x(jF(p=A)):p},c};function jF(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=rI,p=eI;function x(A,S){return(ub.get(c.call(this,A,S))||sb)(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 eI(){return 64}function rI(){return"circle"}function sb(c){var p=Math.sqrt(c/Ee);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var ub=e.map({circle:sb,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*fb)),x=p*fb;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=ub.keys();var vv=Math.sqrt(3),fb=Math.tan(30*Mr);Ae.transition=function(c){for(var p=ro||++vb,x=W1(c),A=[],S,L,R=dv||{time:Date.now(),ease:PN,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=hb,x=6,A=6,S=3,L=[10],R=null,E;function N(G){G.each(function(){var X=e.select(this),j=this.__chart__||c,ee=this.__chart__=c.copy(),he=R==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():R,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):W:E,te=X.selectAll(".tick").data(he,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),Me=Math.max(x,0)+S,ce,Ue=lv(ee),nr=X.selectAll(".domain").data([0]),ur=(nr.enter().append("path").attr("class","domain"),e.transition(nr));se.append("line"),se.append("text");var ir=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,Jr,Et,rt,er;if(p==="bottom"||p==="top"?(ce=nI,Jr="x",rt="y",Et="x2",er="y2",pr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ue[0]+","+Tr*A+"V0H"+Ue[1]+"V"+Tr*A)):(ce=iI,Jr="y",rt="x",Et="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),ur.attr("d","M"+Tr*A+","+Ue[0]+"H0V"+Ue[1]+"H"+Tr*A)),ir.attr(er,Tr*x),Cr.attr(rt,Tr*Me),dr.attr(Et,0).attr(er,Tr*x),mr.attr(Jr,0).attr(rt,Tr*Me),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;j=ee=function(Kr){return Lr(Kr)+qr}}else j.rangeBand?j=ee:ue.call(ce,ee,j);se.call(ce,j,ee),_e.call(ce,ee,ee)})}return N.scale=function(G){return arguments.length?(c=G,N):c},N.orient=function(G){return arguments.length?(p=G in aI?G+"":hb,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(G){return arguments.length?(R=G,N):R},N.tickFormat=function(G){return arguments.length?(E=G,N):E},N.tickSize=function(G){var X=arguments.length;return X?(x=+G,A=+arguments[X-1],N):x},N.innerTickSize=function(G){return arguments.length?(x=+G,N):x},N.outerTickSize=function(G){return arguments.length?(A=+G,N):A},N.tickPadding=function(G){return arguments.length?(S=+G,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var hb="bottom",aI={top:1,right:1,bottom:1,left:1};function nI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate("+(isFinite(S)?S:x(A))+",0)"})}function iI(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,G=X1[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(G,W);_e.exit().remove(),_e.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return lI[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 Me=e.transition(se),ce=e.transition(ue),Ue;p&&(Ue=lv(p),ce.attr("x",Ue[0]).attr("width",Ue[1]-Ue[0]),ee(Me)),x&&(Ue=lv(x),ce.attr("y",Ue[0]).attr("height",Ue[1]-Ue[0]),he(Me)),j(Me)})}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,ro?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 Me=nv(A,ue.x),ce=nv(S,ue.y);return L=R=null,function(Ue){A=ue.x=Me(Ue),S=ue.y=ce(Ue),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 he(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),Me=se.datum(),ce=!/^(n|s)$/.test(Me)&&p,Ue=!/^(e|w)$/.test(Me)&&x,nr=se.classed("extent"),ur=tr(te),ir,dr=e.mouse(te),pr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Et);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),_e.interrupt().selectAll("*").interrupt(),nr)dr[0]=A[0]-dr[0],dr[1]=S[0]-dr[1];else if(Me){var mr=+/w$/.test(Me),Tr=+/^n/.test(Me);pr=[A[1-mr]-dr[0],S[1-Tr]-dr[1]],dr[0]=A[mr],dr[1]=S[Tr]}else e.event.altKey&&(ir=dr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",se.style("cursor")),ue({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(nr||(ir=null,dr[0]-=A[1],dr[1]-=S[1],nr=2),ne())}function Et(){e.event.keyCode==32&&nr==2&&(dr[0]+=A[1],dr[1]+=S[1],nr=0,ne())}function rt(){var qr=e.mouse(te),Kr=!1;pr&&(qr[0]+=pr[0],qr[1]+=pr[1]),nr||(e.event.altKey?(ir||(ir=[(A[0]+A[1])/2,(S[0]+S[1])/2]),dr[0]=A[+(qr[0]{(function(e,r){typeof _v=="object"&&typeof xb!="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(Te){return ie(Te=arguments.length===0?new Date:new Date(+Te)),Te}return ze.floor=function(Te){return ie(Te=new Date(+Te)),Te},ze.ceil=function(Te){return ie(Te=new Date(Te-1)),xe(Te,1),ie(Te),Te},ze.round=function(Te){var ke=ze(Te),He=ze.ceil(Te);return Te-ke0))return Je;do Je.push(Ve=new Date(+Te)),xe(Te,He),ie(Te);while(Ve=ke)for(;ie(ke),!Te(ke);)ke.setTime(ke-1)},function(ke,He){if(ke>=ke)if(He<0)for(;++He<=0;)for(;xe(ke,-1),!Te(ke););else for(;--He>=0;)for(;xe(ke,1),!Te(ke););})},Ke&&(ze.count=function(Te,ke){return r.setTime(+Te),t.setTime(+ke),ie(r),ie(t),Math.floor(Ke(r,t))},ze.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?ze.filter(hr?function(ke){return hr(ke)%Te===0}:function(ke){return ze.count(0,ke)%Te===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}),w=_.range;function T(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=T(0),M=T(1),C=T(2),k=T(3),q=T(4),D=T(5),P=T(6),z=b.range,F=M.range,O=C.range,I=k.range,W=q.range,Z=D.range,V=P.range,Y=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=Y.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 K=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()}),pe=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 de(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=de(0),ge=de(1),Ae=de(2),B=de(3),$=de(4),U=de(5),le=de(6),ve=be.range,me=ge.range,De=Ae.range,Re=B.range,Le=$.range,Fe=U.range,Oe=le.range,We=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()}),Pe=We.range,Be=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()});Be.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 Ge=Be.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=Z,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=Y,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=V,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=W,e.timeTuesday=C,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=K,e.utcDay=re,e.utcDays=Ce,e.utcFriday=U,e.utcFridays=Fe,e.utcHour=ye,e.utcHours=Se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ne,e.utcMinutes=pe,e.utcMonday=ge,e.utcMondays=me,e.utcMonth=We,e.utcMonths=Pe,e.utcSaturday=le,e.utcSaturdays=Oe,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=ve,e.utcThursday=$,e.utcThursdays=Le,e.utcTuesday=Ae,e.utcTuesdays=De,e.utcWednesday=B,e.utcWednesdays=Re,e.utcWeek=be,e.utcWeeks=ve,e.utcYear=Be,e.utcYears=Ge,Object.defineProperty(e,"__esModule",{value:!0})})});var gs=J((wv,_b)=>{(function(e,r){typeof wv=="object"&&typeof _b!="undefined"?r(wv,Z1()):(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,Ee=ae.time,ar=ae.periods,cr=ae.days,sr=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,$r=h(ar),it=d(ar),_t=h(cr),yt=d(cr),Dt=h(sr),Kt=d(sr),qa=h(Mr),sa=d(Mr),ua=h(Br),vr=d(Br),lt={a:Kl,A:Ql,b:ol,B:Gc,c:null,d:Y,e:Y,f:pe,H,I:Q,j:K,L:ne,m:ye,M:Se,p:Wc,q:Ru,Q:ke,s:He,S:re,u:Ce,U:de,V:be,w:ge,W:Ae,x:null,X:null,y:B,Y:$,Z:U,"%":Te},Zr={a:zu,A:Nu,b:Da,B:Xc,c:null,d:le,e:le,f:Le,H:ve,I:me,j:De,L:Re,m:Fe,M:Oe,p:us,q:fs,Q:ke,s:He,S:We,u:Pe,U:Be,V:Ge,w:ie,W:xe,x:null,X:null,y:Ke,Y:hr,Z:ze,"%":Te},ft={a:mn,A:Qt,b:hi,B:yn,c:Ct,d:q,e:q,f:I,H:P,I:P,j:D,L:O,m:k,M:z,p:fa,q:C,Q:Z,s:V,S:F,u:y,U:g,V:_,w:m,W:w,x:wt,X:ca,y:b,Y:T,Z:M,"%":W};lt.x=St(qe,lt),lt.X=St(Ee,lt),lt.c=St(oe,lt),Zr.x=St(qe,Zr),Zr.X=St(Ee,Zr),Zr.c=St(oe,Zr);function St(yr,Gr){return function(jr){var or=[],va=-1,ot=0,ha=yr.length,Rr,Yn,$l;for(jr instanceof Date||(jr=new Date(+jr));++va53)return null;"w"in or||(or.w=1),"Z"in or?(ot=a(n(or.y,0,1)),ha=ot.getUTCDay(),ot=ha>4||ha===0?r.utcMonday.ceil(ot):r.utcMonday(ot),ot=r.utcDay.offset(ot,(or.V-1)*7),or.y=ot.getUTCFullYear(),or.m=ot.getUTCMonth(),or.d=ot.getUTCDate()+(or.w+6)%7):(ot=t(n(or.y,0,1)),ha=ot.getDay(),ot=ha>4||ha===0?r.timeMonday.ceil(ot):r.timeMonday(ot),ot=r.timeDay.offset(ot,(or.V-1)*7),or.y=ot.getFullYear(),or.m=ot.getMonth(),or.d=ot.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),ha="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-(ha+5)%7:or.w+or.U*7-(ha+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function Qr(yr,Gr,jr,or){for(var va=0,ot=Gr.length,ha=jr.length,Rr,Yn;va=ha)return-1;if(Rr=Gr.charCodeAt(va++),Rr===37){if(Rr=Gr.charAt(va++),Yn=ft[Rr in l?Gr.charAt(va++):Rr],!Yn||(or=Yn(yr,jr,or))<0)return-1}else if(Rr!=jr.charCodeAt(or++))return-1}return or}function fa(yr,Gr,jr){var or=$r.exec(Gr.slice(jr));return or?(yr.p=it[or[0].toLowerCase()],jr+or[0].length):-1}function mn(yr,Gr,jr){var or=Dt.exec(Gr.slice(jr));return or?(yr.w=Kt[or[0].toLowerCase()],jr+or[0].length):-1}function Qt(yr,Gr,jr){var or=_t.exec(Gr.slice(jr));return or?(yr.w=yt[or[0].toLowerCase()],jr+or[0].length):-1}function hi(yr,Gr,jr){var or=ua.exec(Gr.slice(jr));return or?(yr.m=vr[or[0].toLowerCase()],jr+or[0].length):-1}function yn(yr,Gr,jr){var or=qa.exec(Gr.slice(jr));return or?(yr.m=sa[or[0].toLowerCase()],jr+or[0].length):-1}function Ct(yr,Gr,jr){return Qr(yr,oe,Gr,jr)}function wt(yr,Gr,jr){return Qr(yr,qe,Gr,jr)}function ca(yr,Gr,jr){return Qr(yr,Ee,Gr,jr)}function Kl(yr){return sr[yr.getDay()]}function Ql(yr){return cr[yr.getDay()]}function ol(yr){return Br[yr.getMonth()]}function Gc(yr){return Mr[yr.getMonth()]}function Wc(yr){return ar[+(yr.getHours()>=12)]}function Ru(yr){return 1+~~(yr.getMonth()/3)}function zu(yr){return sr[yr.getUTCDay()]}function Nu(yr){return cr[yr.getUTCDay()]}function Da(yr){return Br[yr.getUTCMonth()]}function Xc(yr){return Mr[yr.getUTCMonth()]}function us(yr){return ar[+(yr.getUTCHours()>=12)]}function fs(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Gr=St(yr+="",lt);return Gr.toString=function(){return yr},Gr},parse:function(yr){var Gr=bt(yr+="",!1);return Gr.toString=function(){return yr},Gr},utcFormat:function(yr){var Gr=St(yr+="",Zr);return Gr.toString=function(){return yr},Gr},utcParse:function(yr){var Gr=bt(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 Ee=ae<0?"-":"",ar=(Ee?-ae:ae)+"",cr=ar.length;return Ee+(cr68?1900:2e3),qe+Ee[0].length):-1}function M(ae,oe,qe){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Ee?(ae.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),qe+Ee[0].length):-1}function C(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+1));return Ee?(ae.q=Ee[0]*3-3,qe+Ee[0].length):-1}function k(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.m=Ee[0]-1,qe+Ee[0].length):-1}function q(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.d=+Ee[0],qe+Ee[0].length):-1}function D(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.m=0,ae.d=+Ee[0],qe+Ee[0].length):-1}function P(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.H=+Ee[0],qe+Ee[0].length):-1}function z(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.M=+Ee[0],qe+Ee[0].length):-1}function F(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.S=+Ee[0],qe+Ee[0].length):-1}function O(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.L=+Ee[0],qe+Ee[0].length):-1}function I(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+6));return Ee?(ae.L=Math.floor(Ee[0]/1e3),qe+Ee[0].length):-1}function W(ae,oe,qe){var Ee=s.exec(oe.slice(qe,qe+1));return Ee?qe+Ee[0].length:-1}function Z(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.Q=+Ee[0],qe+Ee[0].length):-1}function V(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.s=+Ee[0],qe+Ee[0].length):-1}function Y(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 K(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 pe(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 de(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 ge(ae){return ae.getDay()}function Ae(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 U(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 ve(ae,oe){return f(ae.getUTCHours(),oe,2)}function me(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function De(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Re(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Le(ae,oe){return Re(ae,oe)+"000"}function Fe(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Oe(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function We(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function Pe(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Be(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function Ge(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 Te(){return"%"}function ke(ae){return+ae}function He(ae){return Math.floor(+ae/1e3)}var Je;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(ae){return Je=i(ae),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ae){return ae.toISOString()}var tr=Date.prototype.toISOString?lr:e.utcFormat(Xe);function Qe(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?Qe:e.utcParse(Xe);e.isoFormat=tr,e.isoParse=Ne,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var J1=J((Tv,wb)=>{(function(e,r){typeof Tv=="object"&&typeof wb!="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],W=0;z>0&&I>0&&(W+I+1>P&&(I=Math.max(1,P-W)),F.push(D.substring(z-=I,z+I)),!((W+=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+"",W=k.nan===void 0?"NaN":k.nan+"";function Z(Y){Y=o(Y);var H=Y.fill,Q=Y.align,K=Y.sign,ne=Y.symbol,pe=Y.zero,ye=Y.width,Se=Y.comma,re=Y.precision,Ce=Y.trim,de=Y.type;de==="n"?(Se=!0,de="g"):d[de]||(re===void 0&&(re=12),Ce=!0,de="g"),(pe||H==="0"&&Q==="=")&&(pe=!0,H="0",Q="=");var be=ne==="$"?D:ne==="#"&&/[boxX]/.test(de)?"0"+de.toLowerCase():"",ge=ne==="$"?P:/[%p]/.test(de)?O:"",Ae=d[de],B=/[defgprs%]/.test(de);re=re===void 0?6:/[gprs]/.test(de)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function $(U){var le=be,ve=ge,me,De,Re;if(de==="c")ve=Ae(U)+ve,U="";else{U=+U;var Le=U<0||1/U<0;if(U=isNaN(U)?W:Ae(Math.abs(U),re),Ce&&(U=u(U)),Le&&+U==0&&K!=="+"&&(Le=!1),le=(Le?K==="("?K:I:K==="-"||K==="("?"":K)+le,ve=(de==="s"?g[8+f/3]:"")+ve+(Le&&K==="("?")":""),B){for(me=-1,De=U.length;++meRe||Re>57){ve=(Re===46?z+U.slice(me+1):U.slice(me))+ve,U=U.slice(0,me);break}}}Se&&!pe&&(U=q(U,1/0));var Fe=le.length+U.length+ve.length,Oe=Fe>1)+le+U+ve+Oe.slice(Fe);break;default:U=Oe+le+U+ve;break}return F(U)}return $.toString=function(){return Y+""},$}function V(Y,H){var Q=Z((Y=o(Y),Y.type="f",Y)),K=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ne=Math.pow(10,-K),pe=g[8+K/3];return function(ye){return Q(ne*ye)+pe}}return{format:Z,formatPrefix:V}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}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=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var Mb=J((qie,Tb)=>{"use strict";Tb.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=J((Die,Ab)=>{"use strict";var pI=Mb();Ab.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&pI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=J((Eie,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 K1=J((Mv,Sb)=>{(function(e,r){typeof Mv=="object"&&typeof Sb!="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 fl=J((Pie,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 an=J(Gn=>{"use strict";var mI=K1().decode,yI=fl(),Q1=Array.isArray,gI=ArrayBuffer,bI=DataView;function Lb(e){return gI.isView(e)&&!(e instanceof bI)}Gn.isTypedArray=Lb;function Av(e){return Q1(e)||Lb(e)}Gn.isArrayOrTypedArray=Av;function xI(e){return!Av(e[0])}Gn.isArray1D=xI;Gn.ensureArray=function(e,r){return Q1(e)||(e=[]),e.length=r,e};var ia={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};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function $1(e){return e.constructor===ArrayBuffer}Gn.isArrayBuffer=$1;Gn.decodeTypedArraySpec=function(e){var r=[],t=_I(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;$1(l)||(l=mI(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 Db=Hr(),ep=an().isArrayOrTypedArray;zb.exports=function(r,t){if(Db(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 bs=kv(),kI=/^\w*$/,SI=0,Nb=1,Sv=2,Fb=3,io=4;Ib.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=bs(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 CI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,LI=/^[^\.\[\]]+$/;Ob.exports=function(e,r){for(;r;){var t=e.match(CI);if(t)e=t[1];else if(e.match(LI))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=J((Iie,Yb)=>{"use strict";var qI=Hr();Yb.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 qI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Gb=J((Hie,Vb)=>{"use strict";var Ub=an().isArrayOrTypedArray,Wu=fl();Vb.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(Ub(n)&&Ub(i)&&Wu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function DI(e,r){var t=e%r;return t<0?t+r:t}function EI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Wb.exports={mod:DI,modHalf:EI}});var _n=J((Bie,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 U=u(B);this._originalInput=B,this._r=U.r,this._g=U.g,this._b=U.b,this._a=U.a,this._roundA=n(100*this._a)/100,this._format=$.format||U.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=U.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(),$,U,le,ve,me,De;return $=B.r/255,U=B.g/255,le=B.b/255,$<=.03928?ve=$/12.92:ve=e.pow(($+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=e.pow((U+.055)/1.055,2.4),le<=.03928?De=le/12.92:De=e.pow((le+.055)/1.055,2.4),.2126*ve+.7152*me+.0722*De},setAlpha:function(B){return this._a=Y(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),U=n(B.s*100),le=n(B.v*100);return this._a==1?"hsv("+$+", "+U+"%, "+le+"%)":"hsva("+$+", "+U+"%, "+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),U=n(B.s*100),le=n(B.l*100);return this._a==1?"hsl("+$+", "+U+"%, "+le+"%)":"hsla("+$+", "+U+"%, "+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:Z[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var $="#"+_(this._r,this._g,this._b,this._a),U=$,le=this._gradientType?"GradientType = 1, ":"";if(B){var ve=s(B);U="#"+_(ve._r,ve._g,ve._b,ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+$+",endColorstr="+U+")"},toString:function(B){var $=!!B;B=B||this._format;var U=!1,le=this._a<1&&this._a>=0,ve=!$&&le&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return ve?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(U=this.toRgbString()),B==="prgb"&&(U=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(U=this.toHexString()),B==="hex3"&&(U=this.toHexString(!0)),B==="hex4"&&(U=this.toHex8String(!0)),B==="hex8"&&(U=this.toHex8String()),B==="name"&&(U=this.toName()),B==="hsl"&&(U=this.toHslString()),B==="hsv"&&(U=this.toHsvString()),U||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,$){var U=B.apply(null,[this].concat([].slice.call($)));return this._r=U._r,this._g=U._g,this._b=U._b,this.setAlpha(U._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(w,arguments)},saturate:function(){return this._applyModification(T,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 U={};for(var le in B)B.hasOwnProperty(le)&&(le==="a"?U[le]=B[le]:U[le]=Se(B[le]));B=U}return s(B,$)};function u(B){var $={r:0,g:0,b:0},U=1,le=null,ve=null,me=null,De=!1,Re=!1;return typeof B=="string"&&(B=ge(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?($=f(B.r,B.g,B.b),De=!0,Re=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(le=Se(B.s),ve=Se(B.v),$=m(B.h,le,ve),De=!0,Re="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(le=Se(B.s),me=Se(B.l),$=h(B.h,le,me),De=!0,Re="hsl"),B.hasOwnProperty("a")&&(U=B.a)),U=Y(U),{ok:De,format:B.format||Re,r:i(255,l($.r,0)),g:i(255,l($.g,0)),b:i(255,l($.b,0)),a:U}}function f(B,$,U){return{r:H(B,255)*255,g:H($,255)*255,b:H(U,255)*255}}function v(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=(le+ve)/2;if(le==ve)me=De=0;else{var Le=le-ve;switch(De=Re>.5?Le/(2-le-ve):Le/(le+ve),le){case B:me=($-U)/Le+($1&&(We-=1),We<1/6?Fe+(Oe-Fe)*6*We:We<1/2?Oe:We<2/3?Fe+(Oe-Fe)*(2/3-We)*6:Fe}if($===0)le=ve=me=U;else{var Re=U<.5?U*(1+$):U+$-U*$,Le=2*U-Re;le=De(Le,Re,B+1/3),ve=De(Le,Re,B),me=De(Le,Re,B-1/3)}return{r:le*255,g:ve*255,b:me*255}}function d(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=le,Le=le-ve;if(De=le===0?0:Le/le,le==ve)me=0;else{switch(le){case B:me=($-U)/Le+($>1)+720)%360;--$;)le.h=(le.h+ve)%360,me.push(s(le));return me}function I(B,$){$=$||6;for(var U=s(B).toHsv(),le=U.h,ve=U.s,me=U.v,De=[],Re=1/$;$--;)De.push(s({h:le,s:ve,v:me})),me=(me+Re)%1;return De}s.mix=function(B,$,U){U=U===0?0:U||50;var le=s(B).toRgb(),ve=s($).toRgb(),me=U/100,De={r:(ve.r-le.r)*me+le.r,g:(ve.g-le.g)*me+le.g,b:(ve.b-le.b)*me+le.b,a:(ve.a-le.a)*me+le.a};return s(De)},s.readability=function(B,$){var U=s(B),le=s($);return(e.max(U.getLuminance(),le.getLuminance())+.05)/(e.min(U.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(B,$,U){var le=s.readability(B,$),ve,me;switch(me=!1,ve=Ae(U),ve.level+ve.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,$,U){var le=null,ve=0,me,De,Re,Le;U=U||{},De=U.includeFallbackColors,Re=U.level,Le=U.size;for(var Fe=0;Fe<$.length;Fe++)me=s.readability(B,$[Fe]),me>ve&&(ve=me,le=s($[Fe]));return s.isReadable(B,le,{level:Re,size:Le})||!De?le:(U.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],U))};var W=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"},Z=s.hexNames=V(W);function V(B){var $={};for(var U in B)B.hasOwnProperty(U)&&($[B[U]]=U);return $}function Y(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function H(B,$){ne(B)&&(B="100%");var U=pe(B);return B=i($,l(0,parseFloat(B))),U&&(B=parseInt(B*$,10)/100),e.abs(B-$)<1e-6?1:B%$/parseFloat($)}function Q(B){return i(1,l(0,B))}function K(B){return parseInt(B,16)}function ne(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function pe(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 K(B)/255}var de=function(){var B="[-\\+]?\\d+%?",$="[-\\+]?\\d*\\.\\d+%?",U="(?:"+$+")|(?:"+B+")",le="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",ve="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?";return{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ve),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!!de.CSS_UNIT.exec(B)}function ge(B){B=B.replace(r,"").replace(t,"").toLowerCase();var $=!1;if(W[B])B=W[B],$=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U;return(U=de.rgb.exec(B))?{r:U[1],g:U[2],b:U[3]}:(U=de.rgba.exec(B))?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=de.hsl.exec(B))?{h:U[1],s:U[2],l:U[3]}:(U=de.hsla.exec(B))?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=de.hsv.exec(B))?{h:U[1],s:U[2],v:U[3]}:(U=de.hsva.exec(B))?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=de.hex8.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),a:Ce(U[4]),format:$?"name":"hex8"}:(U=de.hex6.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),format:$?"name":"hex"}:(U=de.hex4.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),a:Ce(U[4]+""+U[4]),format:$?"name":"hex8"}:(U=de.hex3.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),format:$?"name":"hex"}:!1}function Ae(B){var $,U;return B=B||{level:"AA",size:"small"},$=(B.level||"AA").toUpperCase(),U=(B.size||"small").toLowerCase(),$!=="AA"&&$!=="AAA"&&($="AA"),U!=="small"&&U!=="large"&&(U="small"),{level:$,size:U}}typeof Lv!="undefined"&&Lv.exports?Lv.exports=s:window.tinycolor=s})(Math)});var Wt=J(Ju=>{"use strict";var Xb=fl(),Xu=Array.isArray;function PI(e,r){var t,a;for(t=0;t{"use strict";Zb.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 Ku=J((Vie,Jb)=>{"use strict";Jb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _s=J((Gie,$b)=>{"use strict";var Kb=Ku(),Qb=ma(),rp=Qb({editType:"none"});rp.family.dflt=Kb.HOVERFONT;rp.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:rp,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 qv=J((Wie,jb)=>{"use strict";var RI=ma(),Qu=_s().hoverlabel,$u=Wt().extendFlat;jb.exports={hoverlabel:{bgcolor:$u({},Qu.bgcolor,{arrayOk:!0}),bordercolor:$u({},Qu.bordercolor,{arrayOk:!0}),font:RI({arrayOk:!0,editType:"none"}),align:$u({},Qu.align,{arrayOk:!0}),namelength:$u({},Qu.namelength,{arrayOk:!0}),showarrow:$u({},Qu.showarrow),editType:"none"}}});var Wn=J((Xie,ex)=>{"use strict";var zI=ma(),NI=qv();ex.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:zI({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:NI.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 lo=J((Zie,ax)=>{"use strict";var FI=_n(),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)"]]},rx=Dv.RdBu;function II(e,r){if(r||(r=rx),!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()),tx(e)?e:r}function tx(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";oo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];oo.defaultLine="#444";oo.lightLine="#eee";oo.background="#fff";oo.borderLine="#BEC8D9";oo.lightFraction=100*10/11});var Er=J((Kie,nx)=>{"use strict";var Xa=_n(),OI=Hr(),BI=an().isTypedArray,$t=nx.exports={},Ev=mi();$t.defaults=Ev.defaults;var YI=$t.defaultLine=Ev.defaultLine;$t.lightLine=Ev.lightLine;var ap=$t.background=Ev.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Xa(e))};$t.opacity=function(e){return e?Xa(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Xa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Xa(e).toRgb();if(t.a===1)return Xa(e).toRgbString();var a=Xa(r||ap).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 Xa(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Xa(e).toRgb(),n=Xa(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 Xa(i).toRgbString()};$t.contrast=function(e,r,t){var a=Xa(e);a.getAlpha()!==1&&(a=Xa($t.combine(e,ap)));var n=a.isDark()?r?a.lighten(r):ap:t?a.darken(t):YI;return n.toString()};$t.stroke=function(e,r){var t=Xa(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Xa(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.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=J((Qie,ix)=>{"use strict";ix.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var ws=J(lx=>{"use strict";lx.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 fx=J(Za=>{"use strict";var np=Hr(),ox=_n(),sx=Wt().extendFlat,UI=Wn(),VI=lo(),GI=Er(),WI=Pv().DESELECTDIM,Ts=kv(),ux=ws().counter,XI=xs().modHalf,Xn=an().isArrayOrTypedArray,cl=an().isTypedArraySpec,vl=an().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Xn(e)?e:cl(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){cl(e)&&(e=vl(e)),!np(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}cl(e)&&(e=vl(e)),e%1||!np(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){cl(e)&&(e=vl(e)),ox(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return ox(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(VI.get(e,t))}},angle:{coerceFunction:function(e,r,t){cl(e)&&(e=vl(e)),e==="auto"?r.set("auto"):np(e)?r.set(XI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||ux(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Xn(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:!!ux(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 cx={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},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:{}}},vx={};function hx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),hx(a,r[t]))}}hx(cx,vx);dx.exports={configAttributes:cx,dfltConfig:vx}});var lp=J((rle,px)=>{"use strict";var ip=Ir(),ZI=Hr(),ju=[];px.exports=function(e,r){if(ju.indexOf(e)!==-1)return;ju.push(e);var t=1e3;ZI(r)?t=r:r==="long"&&(t=3e3);var a=ip.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(ju);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=ju.indexOf(o);s!==-1&&ju.splice(s,1),ip.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=ip.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var Ms=so().dfltConfig,op=lp(),sp=mx.exports={};sp.log=function(){var e;if(Ms.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};sp.warn=function(){var e;if(Ms.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};sp.error=function(){var e;if(Ms.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zv=J((ale,yx)=>{"use strict";yx.exports=function(){}});var up=J((nle,gx)=>{"use strict";gx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{bx.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 wx=J((lle,_x)=>{_x.exports=KI;function KI(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 Mx=J((ole,Tx)=>{Tx.exports=QI;function QI(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 fp=J((sle,Ax)=>{Ax.exports=$I;function $I(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 Sx=J((ule,kx)=>{kx.exports=jI;function jI(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 Lx=J((fle,Cx)=>{Cx.exports=eH;function eH(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],w=t*o-a*l,T=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=w*O-T*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-_*T)*I,e[7]=(f*k-h*b+d*T)*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+_*w)*I,e[11]=(v*b-f*C-d*w)*I,e[12]=(o*D-l*z-s*q)*I,e[13]=(t*z-a*D+n*q)*I,e[14]=(y*T-m*M-g*w)*I,e[15]=(f*M-v*T+h*w)*I,e):null}});var Dx=J((cle,qx)=>{qx.exports=rH;function rH(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 Px=J((vle,Ex)=>{Ex.exports=tH;function tH(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,w=r*o-a*i,T=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-w*z+T*P+b*D-M*q+C*k}});var zx=J((hle,Rx)=>{Rx.exports=aH;function aH(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],w=r[15],T=t[0],b=t[1],M=t[2],C=t[3];return e[0]=T*a+b*o+M*v+C*y,e[1]=T*n+b*s+M*h+C*g,e[2]=T*i+b*u+M*d+C*_,e[3]=T*l+b*f+M*m+C*w,T=t[4],b=t[5],M=t[6],C=t[7],e[4]=T*a+b*o+M*v+C*y,e[5]=T*n+b*s+M*h+C*g,e[6]=T*i+b*u+M*d+C*_,e[7]=T*l+b*f+M*m+C*w,T=t[8],b=t[9],M=t[10],C=t[11],e[8]=T*a+b*o+M*v+C*y,e[9]=T*n+b*s+M*h+C*g,e[10]=T*i+b*u+M*d+C*_,e[11]=T*l+b*f+M*m+C*w,T=t[12],b=t[13],M=t[14],C=t[15],e[12]=T*a+b*o+M*v+C*y,e[13]=T*n+b*s+M*h+C*g,e[14]=T*i+b*u+M*d+C*_,e[15]=T*l+b*f+M*m+C*w,e}});var Fx=J((dle,Nx)=>{Nx.exports=nH;function nH(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 Hx=J((ple,Ix)=>{Ix.exports=iH;function iH(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 Bx=J((mle,Ox)=>{Ox.exports=lH;function lH(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,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W;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],w=r[7],T=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,W=l*l*f+u,e[0]=v*k+y*q+T*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+M*D,e[3]=m*k+w*q+C*D,e[4]=v*P+y*z+T*F,e[5]=h*P+g*z+b*F,e[6]=d*P+_*z+M*F,e[7]=m*P+w*z+C*F,e[8]=v*O+y*I+T*W,e[9]=h*O+g*I+b*W,e[10]=d*O+_*I+M*W,e[11]=m*O+w*I+C*W,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ux=J((yle,Yx)=>{Yx.exports=oH;function oH(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 Gx=J((gle,Vx)=>{Vx.exports=sH;function sH(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 Xx=J((ble,Wx)=>{Wx.exports=uH;function uH(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 Jx=J((xle,Zx)=>{Zx.exports=fH;function fH(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 Qx=J((_le,Kx)=>{Kx.exports=cH;function cH(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,w=l*u;return e[0]=1-(d+y),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,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 jx=J((wle,$x)=>{$x.exports=vH;function vH(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_=J((Tle,e_)=>{e_.exports=hH;function hH(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_=J((Mle,t_)=>{t_.exports=dH;function dH(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 i_=J((Ale,n_)=>{n_.exports=pH;function pH(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 o_=J((kle,l_)=>{l_.exports=mH;function mH(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 u_=J((Sle,s_)=>{s_.exports=yH;function yH(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 c_=J((Cle,f_)=>{f_.exports=gH;function gH(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 h_=J((Lle,v_)=>{v_.exports=bH;function bH(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 p_=J((qle,d_)=>{d_.exports=xH;function xH(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 y_=J((Dle,m_)=>{m_.exports=_H;function _H(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 b_=J((Ele,g_)=>{var wH=fp();g_.exports=TH;function TH(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],w=a[1],T=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?wH(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=w*h-T*v,i=T*f-_*h,l=_*v-w*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 __=J((Ple,x_)=>{x_.exports=MH;function MH(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 cp=J((Rle,w_)=>{w_.exports={create:xx(),clone:wx(),copy:Mx(),identity:fp(),transpose:Sx(),invert:Lx(),adjoint:Dx(),determinant:Px(),multiply:zx(),translate:Fx(),scale:Hx(),rotate:Bx(),rotateX:Ux(),rotateY:Gx(),rotateZ:Xx(),fromRotation:Jx(),fromRotationTranslation:Qx(),fromScaling:jx(),fromTranslation:r_(),fromXRotation:a_(),fromYRotation:i_(),fromZRotation:o_(),fromQuat:u_(),frustum:c_(),perspective:h_(),perspectiveFromFieldOfView:p_(),ortho:y_(),lookAt:b_(),str:__()}});var Nv=J(Pt=>{"use strict";var AH=cp();Pt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var kH=Ir(),T_=uo(),SH=Nv(),CH=cp();function LH(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 qH(e){var r=kH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function M_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function DH(e,r){A_("global",e,r)}function A_(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):T_.warn("addStyleRule failed"):T_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function EH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&M_(t)}function PH(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 RH(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(a){var n=k_(a);if(n){var i=SH.convertCssMatrix(n);t=CH.multiply(t,t,i)}}),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(a){return+a})}function S_(e){for(var r=[];zH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function zH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function NH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}C_.exports={getGraphDiv:LH,isPlotDiv:qH,removeElement:M_,addStyleRule:DH,addRelatedStyleRule:A_,deleteRelatedStyleRule:EH,setStyleOnHover:PH,getFullTransformMatrix:RH,getElementTransformMatrix:k_,getElementAndAncestors:S_,equalDomRects:NH}});var rf=J((Fle,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 yi=J((Ile,N_)=>{"use strict";var D_=Wt().extendFlat,FH=fl(),E_={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"]},IH=E_.flags.slice().concat(["fullReplot"]),HH=P_.flags.slice().concat("layoutReplot");N_.exports={traces:E_,layout:P_,traceFlags:function(){return q_(IH)},layoutFlags:function(){return q_(HH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";vp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};vp.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 hp=J((Ole,F_)=>{"use strict";F_.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 fo=J(As=>{"use strict";var{DATE_FORMAT_LINK:OH,FORMAT_LINK:BH}=hp(),YH=["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 UH({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}".`,BH,"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}".`,OH,"for details on the date formatting syntax.",YH].join(" ")}As.templateFormatStringDescription=UH;As.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});As.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Hv=J((Ule,U_)=>{"use strict";function hl(e,r){return r?r.d2l(e):e}function I_(e,r){return r?r.l2d(e):e}function VH(e){return e.x0}function GH(e){return e.x1}function WH(e){return e.y0}function XH(e){return e.y1}function H_(e){return e.x0shift||0}function O_(e){return e.x1shift||0}function B_(e){return e.y0shift||0}function Y_(e){return e.y1shift||0}function Fv(e,r){return hl(e.x1,r)+O_(e)-hl(e.x0,r)-H_(e)}function Iv(e,r,t){return hl(e.y1,t)+Y_(e)-hl(e.y0,t)-B_(e)}function ZH(e,r){return Math.abs(Fv(e,r))}function JH(e,r,t){return Math.abs(Iv(e,r,t))}function KH(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 QH(e,r){return I_((hl(e.x1,r)+O_(e)+hl(e.x0,r)+H_(e))/2,r)}function $H(e,r,t){return I_((hl(e.y1,t)+Y_(e)+hl(e.y0,t)+B_(e))/2,t)}function jH(e,r,t){return e.type!=="line"?void 0:Iv(e,r,t)/Fv(e,r)}var eO=["x0","x1","y0","y1","dy","height","ycenter"],rO=["x0","x1","y0","y1","dx","width","xcenter"];U_.exports={x0:VH,x1:GH,y0:WH,y1:XH,slope:jH,dx:Fv,dy:Iv,width:ZH,height:JH,length:KH,xcenter:QH,ycenter:$H,simpleXVariables:eO,simpleYVariables:rO}});var W_=J((Vle,G_)=>{"use strict";var tO=yi().overrideAll,co=Wn(),V_=ma(),aO=gi().dash,dl=Wt().extendFlat,{shapeTexttemplateAttrs:nO,templatefallbackAttrs:iO}=fo(),lO=Hv();G_.exports=tO({newshape:{visible:dl({},co.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:dl({},co.legend,{}),legendgroup:dl({},co.legendgroup,{}),legendgrouptitle:{text:dl({},co.legendgrouptitle.text,{}),font:V_({})},legendrank:dl({},co.legendrank,{}),legendwidth:dl({},co.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:dl({},aO,{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:dl({},co.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:nO({newshape:!0},{keys:Object.keys(lO)}),texttemplatefallback:iO({editType:"arraydraw"}),font:V_({}),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_=J((Gle,X_)=>{"use strict";var oO=gi().dash,sO=Wt().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:sO({},oO,{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=J((Wle,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 ks=J((Xle,j_)=>{"use strict";var dp=ma(),uO=rf(),Bv=mi(),K_=W_(),Q_=Z_(),fO=Ov(),$_=Wt().extendFlat,Yv=dp({editType:"calc"});Yv.family.dflt='"Open Sans", verdana, arial, sans-serif';Yv.size.dflt=12;Yv.color.dflt=Bv.defaultLine;j_.exports={font:Yv,title:{text:{valType:"string",editType:"layoutstyle"},font:dp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:dp({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:$_(fO({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:K_.newshape,activeshape:K_.activeshape,newselection:Q_.newselection,activeselection:Q_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:$_({},uO.transition,{editType:"none"})}});var e4=J(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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=J(zr=>{"use strict";var Ss=uo(),r4=zv(),t4=up(),cO=fl(),vO=ef().addStyleRule,a4=Wt(),hO=Wn(),dO=ks(),pO=a4.extendFlat,pp=a4.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 _O=gs().timeFormat,d4=Hr(),mp=uo(),ml=xs().mod,qs=Gt(),wn=qs.BADNUM,Ja=qs.ONEDAY,tf=qs.ONEHOUR,pl=qs.ONEMIN,Ls=qs.ONESEC,af=qs.EPOCHJD,Bi=br(),s4=gs().utcFormat,wO=/^\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,TO=/^\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,u4=new Date().getFullYear()-70;function Yi(e){return e&&Bi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Rt.dateTick0=function(e,r){var t=MO(e,!!r);if(r<2)return t;var a=Rt.dateTime2ms(t,e);return a+=Ja*(r-1),Rt.ms2DateTime(a,0,e)};function MO(e,r){return Yi(e)?r?Bi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Bi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Rt.dfltRange=function(e){return Yi(e)?Bi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Rt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vv,Gv;Rt.dateTime2ms=function(e,r){if(Rt.isJSDate(e)){var t=e.getTimezoneOffset()*pl,a=(e.getUTCMinutes()-e.getMinutes())*pl+(e.getUTCSeconds()-e.getSeconds())*Ls+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*pl;t=t-n/2+ml(a-t+n/2,n)}return e=Number(e)-t,e>=Vv&&e<=Gv?e:wn}if(typeof e!="string"&&typeof e!="number")return wn;e=String(e);var i=Yi(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?TO:wO);if(!s)return wn;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 wn;u=Number(u);var y;try{var g=Bi.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(T){return wn}return y?(y.toJD()-af)*Ja+h*tf+d*pl+m*Ls:wn}u.length===2?u=(Number(u)+2e3-u4)%100+u4:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?wn:w.getTime()+m*Ls};Vv=Rt.MIN_MS=Rt.dateTime2ms("-9999");Gv=Rt.MAX_MS=Rt.dateTime2ms("9999-12-31 23:59:59.9999");Rt.isDateTime=function(e,r){return Rt.dateTime2ms(e,r)!==wn};function Cs(e,r){return String(e+Math.pow(10,r)).slice(1)}var Uv=90*Ja,f4=3*tf,c4=5*pl;Rt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vv&&e<=Gv))return wn;r||(r=0);var a=Math.floor(ml(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Yi(t)){var v=Math.floor(n/Ja)+af,h=Math.floor(ml(e,Ja));try{i=Bi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=s4("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 wn;var r=Math.floor(ml(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=_O("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return p4(a,n,i,l,o)};function p4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Cs(r,2)+":"+Cs(t,2),(a||n)&&(e+=":"+Cs(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Cs(n,i)}return e}Rt.cleanDate=function(e,r,t){if(e===wn)return r;if(Rt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Yi(t))return mp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Rt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Rt.isDateTime(e,t))return mp.error("unrecognized date",e),r;return e};var AO=/%\d?f/g,kO=/%h/g,SO={1:"1",2:"1",3:"2",4:"2"};function v4(e,r,t,a){e=e.replace(AO,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(kO,function(){return SO[t("%q")(n)]}),Yi(a))try{e=Bi.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var CO=[59,59.9,59.99,59.999,59.9999];function LO(e,r){var t=ml(e+.05,Ja),a=Cs(Math.floor(t/tf),2)+":"+Cs(ml(Math.floor(t/pl),60),2);if(r!=="M"){d4(r)||(r=0);var n=Math.min(ml(e/Ls,60),CO[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Rt.formatDate=function(e,r,t,a,n,i){if(n=Yi(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 LO(e,t)+` -`+v4(i.dayMonthYear,e,a,n);return v4(r,e,a,n)};var h4=3*Ja;Rt.incrementMonth=function(e,r,t){t=Yi(t)&&t;var a=ml(e,Ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ja)+af,i=Bi.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-af)*Ja+a}catch(s){mp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+h4);return o.setUTCMonth(o.getUTCMonth()+r)+a-h4};Rt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Yi(r)&&Bi.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";y4.exports=function(r){return r}});var bp=J(Ui=>{"use strict";var qO=Hr(),DO=uo(),EO=yp(),PO=Gt().BADNUM,gp=1e-9;Ui.findBin=function(e,r,t){if(qO(r.start))return t?Math.ceil((e-r.start)/r.size-gp)-1:Math.floor((e-r.start)/r.size+gp);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?RO:zO:s=t?FO:NO,e+=l*gp*(t?-1:1)*(l>=0?1:-1);a90&&DO.log("Long binary search..."),a-1};function RO(e,r){return er}function FO(e,r){return e>=r}Ui.sorterAsc=function(e,r){return e-r};Ui.sorterDes=function(e,r){return r-e};Ui.distinctVals=function(e){var r=e.slice();r.sort(Ui.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===PO;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}};Ui.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()};Ui.findIndexOfMin=function(e,r){r=r||EO;for(var t=1/0,a,n=0;n{"use strict";g4.exports=function(r){return Object.keys(r).sort()}});var b4=J(zt=>{"use strict";var nf=Hr(),IO=an().isArrayOrTypedArray;zt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),nf(r)||(r=!1),IO(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 M4=J((toe,T4)=>{"use strict";var x4=xs(),_p=x4.mod,HO=x4.modHalf,lf=Math.PI,yl=2*lf;function OO(e){return e/180*lf}function BO(e){return e/lf*180}function wp(e){return Math.abs(e[1]-e[0])>yl-1e-14}function _4(e,r){return HO(r-e,yl)}function YO(e,r){return Math.abs(_4(e,r))}function w4(e,r){if(wp(r))return!0;var t,a;r[0]a&&(a+=yl);var n=_p(e,yl),i=n+yl;return n>=t&&n<=a||i>=t&&i<=a}function UO(e,r,t,a){if(!w4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Tp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=wp([t,a]),s,u,f,v,h;o?(s=0,u=lf,f=yl):t{"use strict";vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var C4=J(ho=>{"use strict";var Mp=xs().mod;ho.segmentsIntersect=S4;function S4(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}}ho.segmentDistance=function(r,t,a,n,i,l,o,s){if(S4(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(Gv(u,f,d,i-r,l-t),Gv(u,f,d,o-r,s-t),Gv(v,h,m,r-i,t-l),Gv(v,h,m,a-i,n-l));return Math.sqrt(y)};function Gv(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 Wv,Ap,k4;ho.getTextLocation=function(r,t,a,n){if((r!==Ap||n!==k4)&&(Wv={},Ap=r,k4=n),Wv[a])return Wv[a];var i=r.getPointAtLength(Mp(a-n/2,t)),l=r.getPointAtLength(Mp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Mp(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 Wv[a]=v,v};ho.clearLocationCache=function(){Ap=null};ho.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,w=g.yo?g.y-o:0;return Math.sqrt(_*_+w*w)}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}};ho.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 Xv=J(of=>{"use strict";var Vi={};of.throttle=function(r,t,a){var n=Vi[r],i=Date.now();if(!n){for(var l in Vi)Vi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};of.done=function(e){var r=Vi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};of.clear=function(e){if(e)L4(Vi[e]),delete Vi[e];else for(var r in Vi)of.clear(r)};function L4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var D4=J((loe,q4)=>{"use strict";q4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var E4=J((ooe,Zv)=>{"use strict";Zv.exports=kp;Zv.exports.isMobile=kp;Zv.exports.default=kp;var XO=/(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,ZO=/CrOS/,JO=/android|ipad|playbook|silk/i;function kp(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=XO.test(r)&&!ZO.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 R4=J((soe,P4)=>{"use strict";var KO=Hr(),QO=E4();P4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=$O(),typeof t!="string")return!0;var a=QO({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(KO(u)&&(u=+u),u>=13)return!0}}}return a};function $O(){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 N4=J((uoe,z4)=>{"use strict";var jO=Ir();z4.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]=jO.select(this)}),n}});var I4=J((foe,F4)=>{"use strict";var eB=br();F4.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=eB.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var O4=J((coe,H4)=>{"use strict";H4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";B4.exports=function(r){for(var t=aB(r)?tB:rB,a=[],n=0;n{"use strict";U4.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 W4=J((doe,G4)=>{"use strict";var nB=Hr(),iB=Gt().BADNUM,lB=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G4.exports=function(r){return typeof r=="string"&&(r=r.replace(lB,"")),nB(r)?Number(r):iB}});var Ie=J((poe,i6)=>{"use strict";var sf=Ir(),oB=gs().utcFormat,sB=J1().format,$4=Hr(),j4=Gt(),e6=j4.FP_SAFE,uB=-e6,X4=j4.BADNUM,fe=i6.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 Z4={};fe.warnBadFormat=function(e){var r=String(e);Z4[r]||(Z4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=sB(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=Av();fe.keyedContainer=Hb();fe.relativeAttr=Bb();fe.isPlainObject=fl();fe.toLogRange=Sv();fe.relinkPrivateKeys=Gb();var gl=an();fe.isArrayBuffer=gl.isArrayBuffer;fe.isTypedArray=gl.isTypedArray;fe.isArrayOrTypedArray=gl.isArrayOrTypedArray;fe.isArray1D=gl.isArray1D;fe.ensureArray=gl.ensureArray;fe.concat=gl.concat;fe.maxRowLength=gl.maxRowLength;fe.minRowLength=gl.minRowLength;var r6=xs();fe.mod=r6.mod;fe.modHalf=r6.modHalf;var bl=fx();fe.valObjectMeta=bl.valObjectMeta;fe.coerce=bl.coerce;fe.coerce2=bl.coerce2;fe.coerceFont=bl.coerceFont;fe.coercePattern=bl.coercePattern;fe.coerceHoverinfo=bl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=bl.coerceSelectionMarkerOpacity;fe.validate=bl.validate;var nn=m4();fe.dateTime2ms=nn.dateTime2ms;fe.isDateTime=nn.isDateTime;fe.ms2DateTime=nn.ms2DateTime;fe.ms2DateTimeLocal=nn.ms2DateTimeLocal;fe.cleanDate=nn.cleanDate;fe.isJSDate=nn.isJSDate;fe.formatDate=nn.formatDate;fe.incrementMonth=nn.incrementMonth;fe.dateTick0=nn.dateTick0;fe.dfltRange=nn.dfltRange;fe.findExactDates=nn.findExactDates;fe.MIN_MS=nn.MIN_MS;fe.MAX_MS=nn.MAX_MS;var po=bp();fe.findBin=po.findBin;fe.sorterAsc=po.sorterAsc;fe.sorterDes=po.sorterDes;fe.distinctVals=po.distinctVals;fe.roundUp=po.roundUp;fe.sort=po.sort;fe.findIndexOfMin=po.findIndexOfMin;fe.sortObjectKeys=xp();var Gi=b4();fe.aggNums=Gi.aggNums;fe.len=Gi.len;fe.mean=Gi.mean;fe.geometricMean=Gi.geometricMean;fe.median=Gi.median;fe.midRange=Gi.midRange;fe.variance=Gi.variance;fe.stdev=Gi.stdev;fe.interp=Gi.interp;var Zn=zv();fe.init2dArray=Zn.init2dArray;fe.transposeRagged=Zn.transposeRagged;fe.dot=Zn.dot;fe.translationMatrix=Zn.translationMatrix;fe.rotationMatrix=Zn.rotationMatrix;fe.rotationXYMatrix=Zn.rotationXYMatrix;fe.apply3DTransform=Zn.apply3DTransform;fe.apply2DTransform=Zn.apply2DTransform;fe.apply2DTransform2=Zn.apply2DTransform2;fe.convertCssMatrix=Zn.convertCssMatrix;fe.inverseTransformMatrix=Zn.inverseTransformMatrix;var bi=M4();fe.deg2rad=bi.deg2rad;fe.rad2deg=bi.rad2deg;fe.angleDelta=bi.angleDelta;fe.angleDist=bi.angleDist;fe.isFullCircle=bi.isFullCircle;fe.isAngleInsideSector=bi.isAngleInsideSector;fe.isPtInsideSector=bi.isPtInsideSector;fe.pathArc=bi.pathArc;fe.pathSector=bi.pathSector;fe.pathAnnulus=bi.pathAnnulus;var Es=A4();fe.isLeftAnchor=Es.isLeftAnchor;fe.isCenterAnchor=Es.isCenterAnchor;fe.isRightAnchor=Es.isRightAnchor;fe.isTopAnchor=Es.isTopAnchor;fe.isMiddleAnchor=Es.isMiddleAnchor;fe.isBottomAnchor=Es.isBottomAnchor;var Ps=C4();fe.segmentsIntersect=Ps.segmentsIntersect;fe.segmentDistance=Ps.segmentDistance;fe.getTextLocation=Ps.getTextLocation;fe.clearLocationCache=Ps.clearLocationCache;fe.getVisibleSegment=Ps.getVisibleSegment;fe.findPointOnPath=Ps.findPointOnPath;var Qv=Wt();fe.extendFlat=Qv.extendFlat;fe.extendDeep=Qv.extendDeep;fe.extendDeepAll=Qv.extendDeepAll;fe.extendDeepNoArrays=Qv.extendDeepNoArrays;var Sp=uo();fe.log=Sp.log;fe.warn=Sp.warn;fe.error=Sp.error;var fB=ws();fe.counterRegex=fB.counter;var Cp=Xv();fe.throttle=Cp.throttle;fe.throttleDone=Cp.done;fe.clearThrottle=Cp.clear;var Jn=ef();fe.getGraphDiv=Jn.getGraphDiv;fe.isPlotDiv=Jn.isPlotDiv;fe.removeElement=Jn.removeElement;fe.addStyleRule=Jn.addStyleRule;fe.addRelatedStyleRule=Jn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Jn.deleteRelatedStyleRule;fe.setStyleOnHover=Jn.setStyleOnHover;fe.getFullTransformMatrix=Jn.getFullTransformMatrix;fe.getElementTransformMatrix=Jn.getElementTransformMatrix;fe.getElementAndAncestors=Jn.getElementAndAncestors;fe.equalDomRects=Jn.equalDomRects;fe.clearResponsive=D4();fe.preserveDrawingBuffer=R4();fe.makeTraceGroups=N4();fe._=I4();fe.notifier=lp();fe.filterUnique=O4();fe.filterVisible=Y4();fe.pushUnique=up();fe.increment=V4();fe.cleanNumber=W4();fe.ensureNumber=function(r){return $4(r)?(r=Number(r),r>e6||r=r?!1:$4(e)&&e>=0&&e%1===0};fe.noop=Rv();fe.identity=yp();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;nhB.test(window.navigator.userAgent);var dB=/Firefox\/(\d+)\.\d+/;fe.getFirefoxVersion=function(){var e=dB.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 sf.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 n6=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return n6.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var yB={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=e=>Lp(mv(no({},e),{opts:yB}));var gB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=e=>Lp(mv(no({},e),{opts:gB}));var bB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xB(e){var r=e.match(bB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var _B={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=e=>Lp(mv(no({},e),{opts:_B}));var J4=/^[:|\|]/;function Lp({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=xB(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(n6.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=Kv&&l<=K4,u=o>=Kv&&o<=K4;if(s&&(a=10*a+l-Kv),u&&(n=10*n+o-Kv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Ds=2e9;fe.seedPseudoRandom=function(){Ds=2e9};fe.pseudoRandom=function(){var e=Ds;return Ds=(69069*Ds+1)%4294967296,Math.abs(Ds-e)<429496729?fe.pseudoRandom():Ds/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 Q4=fe.getFirefoxVersion(),wB=Q4!==null&&Q4<86;fe.getPositionFromD3Event=function(){return wB?[sf.event.layerX,sf.event.layerY]:[sf.event.offsetX,sf.event.offsetY]}});var s6=J(()=>{"use strict";var TB=Ie(),l6={"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(qp in l6)o6=qp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),TB.addStyleRule(o6,l6[qp]);var o6,qp});var Dp=J((boe,u6)=>{u6.exports=!0});var Pp=J((xoe,f6)=>{"use strict";var MB=Dp(),Ep;typeof window.matchMedia=="function"?Ep=!window.matchMedia("(hover: none)").matches:Ep=MB;f6.exports=Ep});var e0=J((_oe,Rp)=>{"use strict";var Rs=typeof Reflect=="object"?Reflect:null,c6=Rs&&typeof Rs.apply=="function"?Rs.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},$v;Rs&&typeof Rs.ownKeys=="function"?$v=Rs.ownKeys:Object.getOwnPropertySymbols?$v=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:$v=function(r){return Object.getOwnPropertyNames(r)};function AB(e){console&&console.warn&&console.warn(e)}var h6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Rp.exports=vt;Rp.exports.once=LB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var v6=10;function jv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return v6},set:function(e){if(typeof e!="number"||e<0||h6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");v6=e}});vt.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};vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||h6(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 d6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return d6(this)};vt.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")c6(s,this,t);else for(var u=s.length,f=b6(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,AB(o)}return e}vt.prototype.addListener=function(r,t){return p6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return p6(this,r,t,!0)};function kB(){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 m6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=kB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return jv(t),this.on(r,m6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return jv(t),this.prependListener(r,m6(this,r,t)),this};vt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(jv(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():SB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};vt.prototype.off=vt.prototype.removeListener;vt.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 y6(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?CB(n):b6(n,n.length)}vt.prototype.listeners=function(r){return y6(this,r,!0)};vt.prototype.rawListeners=function(r){return y6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):g6.call(e,r)};vt.prototype.listenerCount=g6;function g6(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}vt.prototype.eventNames=function(){return this._eventsCount>0?$v(this._events):[]};function b6(e,r){for(var t=new Array(r),a=0;a{"use strict";var zp=e0().EventEmitter,DB={init:function(e){if(e._ev instanceof zp)return e;var r=new zp,t=new zp;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 w6=Ie(),EB=so().dfltConfig;function PB(e,r){for(var t=[],a,n=0;nEB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Wi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Wi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Wi.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";A6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Fs=J(Xt=>{"use strict";var Tn=br(),ff=Ie(),t0=Wn(),Fp=ks(),RB=Np(),zB=rf(),NB=so().configAttributes,k6=yi(),Kn=ff.extendDeepAll,zs=ff.isPlainObject,FB=ff.isArrayOrTypedArray,a0=ff.nestedProperty,IB=ff.valObjectMeta,Ip="_isSubplotObj",n0="_isLinkedToArray",HB="_arrayAttrRegexps",C6="_deprecated",Hp=[Ip,n0,HB,C6];Xt.IS_SUBPLOT_OBJ=Ip;Xt.IS_LINKED_TO_ARRAY=n0;Xt.DEPRECATED=C6;Xt.UNDERSCORE_ATTRS=Hp;Xt.get=function(){var e={};return Tn.allTypes.forEach(function(r){e[r]=BB(r)}),{defs:{valObjects:IB,metaKeys:Hp.concat(["description","role","editType","impliedEdits"]),editType:{traces:k6.traces,layout:k6.layout},impliedEdits:{}},traces:e,layout:YB(),frames:UB(),animation:Ns(zB),config:Ns(NB)}};Xt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Hp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Xt.isValObject(l)&&zs(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)FB(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(!r0(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function r0(e){return e===Math.round(e)&&e>=0}function BB(e){var r,t;r=Tn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Kn({},t0),i=Kn({},r.attributes);Xt.crawl(i,function(s,u,f,v,h){a0(n,h).set(void 0),s===void 0&&a0(i,h).set(void 0)}),Kn(a,n),Tn.traceIs(e,"noOpacity")&&delete a.opacity,Tn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Tn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Kn(a,i),t.attributes&&Kn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ns(a)};if(r.layoutAttributes){var o={};Kn(o,r.layoutAttributes),l.layoutAttributes=Ns(o)}return r.animatable||Xt.crawl(l,function(s){Xt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function YB(){var e={},r,t;Kn(e,Fp);for(r in Tn.subplotsRegistry)if(t=Tn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Is=Ie(),ZB=Wn(),xl="templateitemname",Op={name:{valType:"string",editType:"none"}};Op[xl]={valType:"string",editType:"calc"};mo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Op.name,r[xl]=Op[xl],r};mo.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=Is.coerce(i,{},ZB,"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}};mo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Is.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};mo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[D6(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[xl]=u[xl];if(!q6(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][xl]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?Is.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)Is.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var jt=J((Soe,E6)=>{"use strict";var cf=ws().counter;E6.exports={idRegex:{x:cf("x","( domain)?"),y:cf("y","( domain)?")},attrRegex:cf("[xy]axis"),xAxisMatch:cf("xaxis"),yAxisMatch:cf("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=J(Ka=>{"use strict";var JB=br(),Bp=jt();Ka.id2name=function(r){if(!(typeof r!="string"||!r.match(Bp.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ka.name2id=function(r){if(r.match(Bp.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ka.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Bp.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":"")}};Ka.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ka.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ka.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function P6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function KB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function QB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}R6.exports={clearOutlineControllers:KB,clearOutline:QB}});var i0=J((qoe,z6)=>{"use strict";z6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Yp=J(o0=>{"use strict";var l0=br(),Doe=jt().SUBPLOT_PATTERN;o0.getSubplotCalcData=function(e,r,t){var a=l0.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var $B=br(),Hs=Ie();yo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=yo.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){N6(e,l,n.cache),n.check=function(){if(i){var f=N6(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;Hs.isPlainObject(i)?Up(i,r,l,a+1):r(l,n,i)}})}});var Ht=J((Roe,j6)=>{"use strict";var W6=Ir(),eY=gs().timeFormatLocale,rY=J1().formatLocale,vf=Hr(),tY=K1(),Wr=br(),X6=Fs(),aY=ct(),fr=Ie(),Z6=Er(),O6=Gt().BADNUM,Qa=Zt(),nY=_l().clearOutline,iY=i0(),Vp=rf(),lY=Np(),oY=Yp().getModuleCalcData,B6=fr.relinkPrivateKeys,go=fr._,$e=j6.exports={};fr.extendFlat($e,Wr);$e.attributes=Wn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ma();$e.layoutAttributes=ks();var u0=H6();$e.executeAPICommand=u0.executeAPICommand;$e.computeAPICommandBindings=u0.computeAPICommandBindings;$e.manageCommandObserver=u0.manageCommandObserver;$e.hasSimpleAPICommandBindings=u0.hasSimpleAPICommandBindings;$e.redrawText=function(e){return e=fr.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($e.previousPromises(e)))},300)})};$e.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.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||fr.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};$e.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};$e.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Z6.defaultLine,"pointer-events":"all"}).each(function(){var u=W6.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&&sY(e,i),l.text(i.text()&&o.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(){$e.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})}}$e.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=W6.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=$e.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var uY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],fY=["year","month","dayMonth","dayMonthYear"];$e.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||$e.createTransitionData(e),n._dfltTitle={plot:go(e,"Click to enter Plot title"),subtitle:go(e,"Click to enter Plot subtitle"),x:go(e,"Click to enter X axis title"),y:go(e,"Click to enter Y axis title"),colorbar:go(e,"Click to enter Colorscale title"),annotation:go(e,"new text")},n._traceWord=go(e,"trace");var h=Y6(e,uY);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;$e.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),$e.sanitizeMargins(n)}else{$e.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,w=y&&(g||_);w?$e.plotAutoSize(e,i,n):y&&$e.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=hY(h,n.separators),n._extraFormat=Y6(e,fY),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=vY(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=cY(l,s),$e.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,$e.linkSubplots(o,n,l,a),$e.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),I=F,W=O;I&&!W?a._bgLayer.remove():W&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&nY({_fullLayout:a}),dY(o,n),B6(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Z=n._tracePreGUI,V={},Y;for(Y in Z)V[Y]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=$e.layoutAttributes.width.min,h=$e.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}),$e.sanitizeMargins(a)};$e.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(fr.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 w=t.xl!==void 0?t.xl:t.x,T=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:w,size:t.l+y},r:{val:T,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 $e.doAutoMargin(e)}};function mY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}$e.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),J6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.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 w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],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"&&vf(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,W=z.size,Z=t-l.r-l.l,V=a-l.t-l.b;for(var Y in h){if(vf(O)&&h[Y].r){var H=h[Y].r.val,Q=h[Y].r.size;if(H>F){var K=(O*H+(Q-Z)*F)/(H-F),ne=(Q*(1-F)+(O-Z)*(1-H))/(H-F);K+ne>s+u&&(s=K,u=ne)}}if(vf(W)&&h[Y].t){var pe=h[Y].t.val,ye=h[Y].t.size;if(pe>I){var Se=(W*pe+(ye-V)*I)/(pe-I),re=(ye*(1-I)+(W-V)*(1-pe))/(pe-I);Se+re>v+f&&(v=Se,f=re)}}}}}var Ce=fr.constrain(t-i.l-i.r,K6,m),de=fr.constrain(a-i.t-i.b,Q6,y),be=Math.max(0,t-Ce),ge=Math.max(0,a-de);if(be){var Ae=(s+u)/be;Ae>1&&(s/=Ae,u/=Ae)}if(ge){var B=(v+f)/ge;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&&($e.didMarginChange(o,n)||mY(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,fr.warn("Too many auto-margin redraws.")}yY(e)};function yY(e){var r=Qa.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};$e.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&$e.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(fr.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.slice(-3)==="src")return}else if(t==="keepstream"){if(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0&&!fr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var g=Array.isArray(h),_=fr.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(w)?tY.encode(w):w},d)}return g?h.map(function(T){return u(T,d)}):_?fr.simpleMap(h,fr.identity):fr.isJSDate(h)?fr.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)};$e.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=[$e.previousPromises,s,t.prepareFn,$e.rehover,$e.reselect,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Qa.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:O6,y:O6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(V6(t,a,n),o=0;o{"use strict";bo.xmlns="http://www.w3.org/2000/xmlns/";bo.svg="http://www.w3.org/2000/svg";bo.xlink="http://www.w3.org/1999/xlink";bo.svgAttrs={xmlns:bo.svg,"xmlns:xlink":bo.xlink}});var Ma=J((Noe,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 ya=J(Mn=>{"use strict";var Ot=Ir(),Xi=Ie(),xY=Xi.strTranslate,Gp=xo(),_Y=Ma().LINE_SPACING,wY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(wY),i=Ot.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=zY(e.node(),a);s&&e.style("pointer-events","all"),Mn.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};kY(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 w=e.node().style.fill||"black",T=m.select("g");T.attr({fill:w,stroke:w});var b=T.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]+")"+xY(-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 TY=/(<|<|<)/g,MY=/(>|>|>)/g;function AY(e){return e.replace(TY,"\\lt ").replace(MY,"\\gt ")}var r7=[["$","$"],["\\(","\\)"]];function kY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Xi.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Xi.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:r7},displayAlign:"left"})},u=function(){i=Xi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=r7},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 w="math-output-"+Xi.randstr({},64);o=Ot.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(AY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Xi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),M;a===2?M=Ot.select("body").select("#MathJax_SVG_glyphs"):M=w.select("defs"),t(w,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 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"},SY={sub:"0.3em",sup:"-0.6em"},CY={sub:"-0.21em",sup:"0.42em"},t7="\u200B",a7=["http:","https:","mailto:","",void 0,":"],l7=Mn.NEWLINES=/(\r\n?|\n)/g,Xp=/(<[^<>]*>)/,Zp=/<(\/?)([^ >]*)(\s+(.*))?>/i,LY=//i;Mn.BR_TAG_ALL=//gi;var o7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,s7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,u7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _o(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&f0(a)}var DY=/(^|;)\s*color:/;Mn.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(Xp),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 EY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},PY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f0(e){return e.replace(PY,function(r,t){var a;return t.charAt(0)==="#"?a=RY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=EY[t],a||r})}Mn.convertEntities=f0;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(l7," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Gp.svg,"tspan");Ot.select(C).attr({class:"line",dy:i*_Y+"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&&Xi.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=LY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Xp),h=0;h{"use strict";var NY=Ir(),v0=_n(),df=Hr(),c0=Ie(),c7=Er(),FY=lo().isValid;function IY(e,r,t){var a=r?c0.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(c0.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function y7(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 b7=hp(),OY=b7.FORMAT_LINK,BY=b7.DATE_FORMAT_LINK;function YY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Jp:x7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Jp(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: "+OY+"."].join(" ")}function x7(e,r){return Jp(e,r)+[" And for dates see: "+BY+".","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:YY,descriptionOnlyNumbers:Jp,descriptionWithDates:x7}});var Qn=J((Boe,I7)=>{"use strict";var w7=ma(),Os=mi(),F7=gi().dash,Qp=Wt().extendFlat,T7=ct().templatedArray,Ooe=fo().templateFormatStringDescription,M7=h0().descriptionWithDates,UY=Gt().ONEDAY,xi=jt(),VY=xi.HOUR_PATTERN,GY=xi.WEEKDAY_PATTERN,Kp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},WY=Qp({},Kp,{values:Kp.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"},L7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function q7(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 E7={valType:"color",dflt:Os.defaultLine,editType:"ticks"},P7={valType:"color",dflt:Os.lightLine,editType:"ticks"};function R7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var z7=Qp({},F7,{editType:"ticks"}),N7={valType:"boolean",editType:"ticks"};I7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Os.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:[xi.idRegex.x.toString(),xi.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:[xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"calc"},rangebreaks:T7("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:[GY,VY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:UY},editType:"calc"}),tickmode:WY,nticks:A7(),tick0:k7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:C7,ticktext:{valType:"data_array",editType:"ticks"},ticks:L7,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:q7(),tickwidth:D7(),tickcolor:E7,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:Qp({},F7,{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:M7("tick label")},tickformatstops:T7("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:M7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Os.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:N7,gridcolor:P7,gridwidth:R7(),griddash:z7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Os.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:Os.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Kp,nticks:A7("minor"),tick0:k7,dtick:S7,tickvals:C7,ticks:L7,ticklen:q7("minor"),tickwidth:D7("minor"),tickcolor:E7,gridcolor:P7,gridwidth:R7("minor"),griddash:z7,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 d0=J((Yoe,B7)=>{"use strict";var ht=Qn(),H7=ma(),O7=Wt().extendFlat,XY=yi().overrideAll;B7.exports=XY({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:ht.linecolor,outlinewidth:ht.linewidth,bordercolor:ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:O7({},ht.ticks,{dflt:""}),ticklabeloverflow:O7({},ht.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:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:H7({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,title:{text:{valType:"string"},font:H7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var pf=J((Voe,U7)=>{"use strict";var ZY=d0(),JY=ws().counter,KY=xp(),Y7=lo().scales,Uoe=KY(Y7);function p0(e){return"`"+e+"`"}U7.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"?Y7[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 "+p0(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",_=p0(u+d),w=p0(u+m),T=p0(u+y),b=w+" and "+T,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=ZY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:JY("coloraxis"),dflt:null,editType:"calc"}),k}});var jp=J((Goe,V7)=>{"use strict";var QY=Wt().extendFlat,$Y=pf(),$p=lo().scales;V7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:$p.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:$p.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:$p.RdBu,editType:"calc"}},coloraxis:QY({_isSubplotObj:!0,editType:"calc"},$Y("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var em=J((Woe,G7)=>{"use strict";var jY=Ie();G7.exports=function(r){return jY.isPlainObject(r.colorbar)}});var am=J(tm=>{"use strict";var rm=Hr(),W7=Ie(),X7=Gt(),eU=X7.ONEDAY,rU=X7.ONEWEEK;tm.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?eU:1;if(!e)return i;if(rm(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=rm(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};tm.tick0=function(e,r,t,a){if(r==="date")return W7.cleanDate(e,W7.dateTick0(t,a%rU===0?1:0));if(!(a==="D1"||a==="D2"))return rm(e)?Number(e):0}});var nm=J((Zoe,J7)=>{"use strict";var Z7=am(),tU=Ie().isArrayOrTypedArray,aU=an().isTypedArraySpec,nU=an().decodeTypedArraySpec;J7.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(w){var T=o[w];return aU(T)&&(T=nU(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=tU(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=Z7.dtick(h,n);s.tick0=Z7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var lm=J((Joe,Q7)=>{"use strict";var im=Ie(),K7=Qn();Q7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?K7.minor:K7,u=i?"minor.":"",f=im.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=im.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=im.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 om=J((Koe,$7)=>{"use strict";$7.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 $n=J((Qoe,j7)=>{"use strict";var m0=Ie(),iU=ct();j7.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=m0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=iU.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var sm=Ie(),lU=Er().contrast,e9=Qn(),oU=om(),sU=$n();r9.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");sm.isPlainObject(l)||delete t.labelalias;var o=oU(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?lU(i.bgColor):f&&f!==e9.color.dflt?f:u.color;if(sm.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");sU(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uU}),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 uU(e,r){function t(n,i){return sm.coerce(e,r,e9.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var fm=J((joe,t9)=>{"use strict";var fU=om();t9.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=fU(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var cm=J((ese,a9)=>{"use strict";var wl=Ie(),cU=ct(),vU=nm(),hU=lm(),dU=um(),pU=fm(),mU=d0();a9.exports=function(r,t,a){var n=cU.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return wl.coerce(i,n,mU,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",w,T,b,M="left";v?(b="middle",M=_?"left":"right",w=_?1.02:1,T=.5):(b=g?"bottom":"top",M="center",w=.5,T=g?1.02:1),wl.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:w}},"x"),wl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:T}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),wl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=wl.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"),vU(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"),pU(i,n,l,"linear",q),dU(i,n,l,"linear",q),hU(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=wl.extendFlat({},k,{family:D.family,size:wl.bigFont(D.size)});wl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var Bs=J((rse,l9)=>{"use strict";var n9=Hr(),hm=Ie(),yU=em(),gU=cm(),i9=lo().isValid,bU=br().traceIs;function vm(e,r){var t=r.slice(0,r.length-1);return r?hm.nestedProperty(e,t).get()||{}:e}l9.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=vm(r,l),f=vm(t,l),v=vm(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=bU(t,"contour")&&hm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,hm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],w=u[o+"max"],T=n9(_)&&n9(w)&&_{"use strict";var o9=Ie(),xU=ct(),s9=jp(),_U=Bs();u9.exports=function(r,t){function a(v,h){return o9.coerce(r,t,s9,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return o9.coerce(i,l,s9.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=xU.newContainer(t,s,"coloraxis"),l._name=s,_U(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wU=Ie(),TU=An().hasColorscale,MU=An().extractOpts;c9.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?wU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=MU(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 h9=Hr(),dm=Ie(),AU=An().extractOpts;d9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?dm.nestedProperty(t,l).get():t,s=AU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return dm.aggNums(Math.min,null,i)},m=function(){return dm.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&h9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&h9(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 pm=J((ise,p9)=>{"use strict";var g0=lo(),Ys=An();p9.exports={moduleType:"component",name:"colorscale",attributes:pf(),layoutAttributes:jp(),supplyLayoutDefaults:f9(),handleDefaults:Bs(),crossTraceDefaults:v9(),calc:y0(),scales:g0.scales,defaultScale:g0.defaultScale,getScale:g0.get,isValidScale:g0.isValid,hasColorscale:Ys.hasColorscale,extractOpts:Ys.extractOpts,extractScale:Ys.extractScale,flipScale:Ys.flipScale,makeColorScaleFunc:Ys.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ys.makeColorScaleFuncFromTrace}});var ln=J((lse,y9)=>{"use strict";var m9=Ie(),kU=an().isTypedArraySpec;y9.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 m9.isPlainObject(r)&&(m9.isArrayOrTypedArray(r.size)||kU(r.size))}}});var b9=J((ose,g9)=>{"use strict";var SU=Hr();g9.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 SU(s)&&s>0?Math.max(s,i):0}}});var _i=J(Aa=>{"use strict";var b0=Ie();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{w9.exports=EU;var mm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},DU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function EU(e){var r=[];return e.replace(DU,function(t,a,n){var i=a.toLowerCase();for(n=RU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==mm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var zU=ym(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",T9=Math.sqrt(2),Tl=Math.sqrt(3),gm=Math.PI,bm=Math.cos,xm=Math.sin;C9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(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=Ze(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=Ze(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=Ze(e*.4,2),n=Ze(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=Ze(e*.8/T9,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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/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=Ze(e*.924,2),n=Ze(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=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(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=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(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=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*1.1,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(e*.7,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(e/T9,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=Ze(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=Ze(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=Ze(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=Ze(e*1.3,2),n=Ze(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=Ze(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=Ze(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=Ze(e*1.2,2),n=Ze(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=Ze(e/2,2),n=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=gm/2.5,n=2*e*bm(a),i=2*e*xm(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=gm/4,n=2*e*bm(a),i=2*e*xm(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 M9,A9,k9,S9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(k9===e&&S9===r&&M9===t)return A9;k9=e,S9=r,M9=t;function a(g,_){var w=bm(g),T=xm(g),b=_[0],M=_[1]+(r||0);return[b*w-M*T,b*T+M*w]}for(var n=e/180*gm,i=0,l=0,o=zU(t),s="",u=0;u{"use strict";var ea=Ir(),tt=Ie(),NU=tt.numberFormat,Ao=Hr(),km=_n(),_0=br(),ga=Er(),FU=pm(),yf=tt.strTranslate,w0=ya(),IU=xo(),HU=Ma(),OU=HU.LINE_SPACING,H9=Ev().DESELECTDIM,BU=ln(),YU=b9(),UU=_i().appendArrayPointValue,je=J9.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(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",_m(GU(f))),s&&e.style("text-shadow",s==="auto"?w0.makeTextShadow(ga.contrast(i)):_m(s)),u&&e.style("text-decoration-line",_m(WU(u)))};function _m(e){return e==="none"?void 0:e}var VU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function GU(e){return VU[e]}function WU(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(Ao(n)&&Ao(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",yf(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=ea.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=_0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,ea.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!Ao(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||"";ga.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||"";ea.select(this).call(ga.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 O9(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(U9,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(ga.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=ea.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};O9(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ea.select(this);a[0].trace&&O9(n,a[0].trace,r,t)})};var q9=L9();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(q9).forEach(function(e){var r=q9[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 XU=je.symbolNames.length,ZU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(Ao(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>=XU||e>=400?0:Math.floor(Math.max(e,0))};function B9(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?ZU:"")}var D9=NU("~f"),Y9={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=Y9[a];return U9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function U9(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=Lm(e,t),v=Cm(e,t);r.attr("d",B9(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):tt.isArrayOrTypedArray(o.color)?m=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.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(ga.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var w=l.gradient,T=e.mgt;T?h=!0:T=w&&w.type,tt.isArrayOrTypedArray(T)&&(T=T[0],Y9[T]||(T=0));var b=l.pattern,M=je.getPatternAttr,C=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(T&&T!=="none"){var k=e.mgc;k?h=!0:k=w.color;var q=t.uid;h&&(q+="-"+e.i),je.gradient(r,n,q,T,[[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),W=M(b.solidity,e.i,.3);D=D||e.mcc||tt.isArrayOrTypedArray(b.shape)||tt.isArrayOrTypedArray(b.path)||tt.isArrayOrTypedArray(b.bgcolor)||tt.isArrayOrTypedArray(b.fgcolor)||tt.isArrayOrTypedArray(b.size)||tt.isArrayOrTypedArray(b.solidity);var Z=t.uid;D&&(Z+="-"+e.i),je.pattern(r,"point",n,Z,C,I,W,e.mcc,b.fillmode,F,z,O)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);y&&ga.stroke(r,m)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),_0.traceIs(e,"symbols")&&(r.ms2mrc=BU.isBubble(e)?YU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.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;(tt.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:H9*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,w=g!==void 0,T=_!==void 0;return _0.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?w?g/2:M:T?_/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:ga.addOpacity(v,H9))},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){ga.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",B9(je.symbolNumber(o),s,Lm(l,r),Cm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ea.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=ea.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.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={};UU(h,r,o.i),u=tt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,m=G9(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(w0.convertToTspans,t).call(V9,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=ea.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=G9(a,r);ga.fill(n,i);var s=_0.traceIs(r,"bar-like");V9(n,l,o,a.mrc2||a.mrc,s)})}};var E9=.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=Z9;je.makeTester=function(){var e=tt.ensureSingleById(ea.select("body"),"svg","js-plotly-tester",function(t){t.attr(IU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.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 Tm=0,QU=1e4;je.bBox=function(e,r,t){t||(t=P9(e));var a;if(t){if(a=je.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=P9(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 tt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ea.select(u).attr("transform",null).call(w0.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 Tm>=QU&&(je.savedBBoxes={},Tm=0),t&&(je.savedBBoxes[t]=d),Tm++,tt.extendFlat({},d)};function P9(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",Sm(r,t))};function Sm(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+=yf(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 $U=/\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($U,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var jU=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ea.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(jU);r===1&&t===1?a=[]:a=[yf(l,o),"scale("+r+","+t+")",yf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Cm(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=Cm;var mf=Math.atan2,wo=Math.cos,Vs=Math.sin;function R9(e,r){var t=r[0],a=r[1];return[t*wo(e)-a*Vs(e),t*Vs(e)+a*wo(e)]}var z9,N9,F9,I9,Mm,Am;function Lm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||tt.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=mf(h[1]-n,h[0]-a),m=mf(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,w=z9/180*Math.PI,T=N9/180*Math.PI,b=w-g,M=wo(T)*Vs(b),C=Vs(T)*wo(_)-wo(T)*Vs(_)*wo(b);y=-mf(M,C)-Math.PI,z9=u,N9=f}var k=R9(d,[wo(y),0]),q=R9(m,[Vs(y),0]);t=mf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(Am===r.uid&&e.i===Mm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Am===r.uid&&e.i===Mm+1&&Ao(a)&&Ao(n)){var D=a-F9,P=n-I9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=mf(P,D)/Math.PI*180+90}else t=null}return F9=a,I9=n,Mm=e.i,Am=r.uid,t}je.getMarkerAngle=Lm});var gf=J((vse,j9)=>{"use strict";var Gs=Ir(),eV=Hr(),rV=Ht(),qm=br(),ko=Ie(),K9=ko.strTranslate,T0=at(),M0=Er(),Ws=ya(),Q9=Ev(),tV=Ma().OPPOSITE_SIDE,$9=/ [XY][0-9]* /,Dm=1.6,Em=1.6;function aV(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,w=g.size,T=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(),W=!1,Z=1,V=O.font,Y=V.family,H=V.size,Q=V.color,K=V.weight,ne=V.style,pe=V.variant,ye=V.textcase,Se=V.lineposition,re=V.shadow,Ce;i==="title.text"?Ce="titleText":i.indexOf("axis")!==-1?Ce="axisTitleText":i.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var de=e._context.edits[Ce];function be(Oe,We){return Oe===void 0||We===void 0?!1:Oe.replace($9," % ")===We.replace($9," % ")}m===""?h=0:be(m,l)&&(de||(m=""),h=.2,y=!0),z&&(I===""?Z=0:be(I,F)&&(de||(I=""),Z=.2,W=!0)),t._meta?m=ko.templateString(m,t._meta):a._meta&&(m=ko.templateString(m,a._meta));var ge=m||I||de,Ae;v||(v=ko.ensureSingle(a._infolayer,"g","g-"+r),Ae=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(ge?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var $=null,U=r+"-subtitle",le=I||de;if(z&&($=v.selectAll("text."+U).data(le?[0]:[]),$.enter().append("text"),$.text(I).attr("class",U),$.exit().remove()),!ge)return v;function ve(Oe,We){ko.syncOrAsync([me,De],{title:Oe,subtitle:We})}function me(Oe){var We=Oe.title,Pe=Oe.subtitle,Be;!f&&Ae&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||Ae)&&(Be+=K9(0,(f.offset||0)-(Ae||0)))):Be=null,We.attr("transform",Be);function Ge(Te){if(Te){var ke=Gs.select(Te.node().parentNode).select("."+U);if(!ke.empty()){var He=Te.node().getBBox();if(He.height){var Je=He.y+He.height+Dm*H;ke.attr("y",Je)}}}}if(We.style("opacity",h*M0.opacity(T)).call(T0.font,{color:M0.rgb(T),size:Gs.round(w,2),family:_,weight:b,style:M,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Ws.convertToTspans,e,Ge),Pe&&!Pe.empty()){var ie=v.select("."+r+"-math-group"),xe=We.node().getBBox(),Ke=ie.node()?ie.node().getBBox():void 0,hr=Ke?Ke.y+Ke.height+Dm*H:xe.y+xe.height+Em*H,ze=ko.extendFlat({},u,{y:hr});Pe.attr("transform",Be),Pe.style("opacity",Z*M0.opacity(Q)).call(T0.font,{color:M0.rgb(Q),size:Gs.round(H,2),family:Y,weight:K,style:ne,variant:pe,textcase:ye,shadow:re,lineposition:Se}).attr(ze).call(Ws.convertToTspans,e)}return rV.previousPromises(e)}function De(Oe){var We=Oe.title,Pe=Gs.select(We.node().parentNode);if(s&&s.selection&&s.side&&m){Pe.attr("transform",null);var Be=tV[s.side],Ge=s.side==="left"||s.side==="top"?-1:1,ie=eV(s.pad)?s.pad:2,xe=T0.bBox(Pe.node()),Ke={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var ze in hr)for(var Te in hr[ze]){var ke=hr[ze][Te];Ke[Te]=Math.max(Ke[Te],ke)}var He={left:Ke.l,top:Ke.t,right:a.width-Ke.r,bottom:a.height-Ke.b},Je=s.maxShift||Ge*(He[s.side]-xe[s.side]),Ve=0;if(Je<0)Ve=Je;else{var Xe=s.offsetLeft||0,lr=s.offsetTop||0;xe.left-=Xe,xe.right-=Xe,xe.top-=lr,xe.bottom-=lr,s.selection.each(function(){var Qe=T0.bBox(this);ko.bBoxIntersect(xe,Qe,ie)&&(Ve=Math.max(Ve,Ge*(Qe[s.side]-xe[Be])+ie))}),Ve=Math.min(Je,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Je<0){var tr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Pe.attr("transform",K9(tr[0],tr[1]))}}}B.call(ve,$);function Re(Oe,We){Oe.text(We).on("mouseover.opacity",function(){Gs.select(this).transition().duration(Q9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Gs.select(this).transition().duration(Q9.HIDE_PLACEHOLDER).style("opacity",0)})}if(de&&(m?B.on(".opacity",null):(Re(B,l),y=!0),B.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){o!==void 0?qm.call("_guiRestyle",e,i,Oe,o):qm.call("_guiRelayout",e,i,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,u.x,u.y)}),z)){if(z&&!m){var Le=B.node().getBBox(),Fe=Le.y+Le.height+Em*H;$.attr("y",Fe)}I?$.on(".opacity",null):(Re($,F),W=!0),$.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){qm.call("_guiRelayout",e,"title.subtitle.text",Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,$.attr("x"),$.attr("y"))})}return B.classed("js-placeholder",y),$&&!$.empty()&&$.classed("js-placeholder",W),v}j9.exports={draw:aV,SUBTITLE_PADDING_EM:Em,SUBTITLE_PADDING_MATHJAX_EM:Dm}});var E0=J((hse,n8)=>{"use strict";var nV=Ir(),iV=gs().utcFormat,nt=Ie(),lV=nt.numberFormat,wi=Hr(),Ml=nt.cleanNumber,oV=nt.ms2DateTime,e8=nt.dateTime2ms,Ti=nt.ensureNumber,r8=nt.isArrayOrTypedArray,Al=Gt(),A0=Al.FP_SAFE,jn=Al.BADNUM,sV=Al.LOG_CLIP,uV=Al.ONEWEEK,k0=Al.ONEDAY,S0=Al.ONEHOUR,t8=Al.ONEMIN,a8=Al.ONESEC,C0=Zt(),D0=jt(),L0=D0.HOUR_PATTERN,q0=D0.WEEKDAY_PATTERN;function bf(e){return Math.pow(10,e)}function Pm(e){return e!=null}n8.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*sV*Math.abs(C-k))}else return jn}function l(b,M,C,k){if((k||{}).msUTC&&wi(b))return+b;var q=e8(b,C||r.calendar);if(q===jn)if(wi(b)){b=+b;var D=Math.floor(nt.mod(b+.05,1)*10),P=Math.round(b-D/10);q=e8(new Date(P))+D/10}else return jn;return q}function o(b,M,C){return oV(b,M,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Pm(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 jn}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:Ti,r.l2c=r.type==="log"?bf:Ti,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 bf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Ml,r.c2d=r.c2r=r.l2d=r.l2r=Ti,r.d2p=r.r2p=function(b){return r.l2p(Ml(b))},r.p2d=r.p2r=_,r.cleanPos=Ti):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Ml(b),M)},r.r2d=r.r2c=function(b){return bf(Ml(b))},r.d2c=r.r2l=Ml,r.c2d=r.l2r=Ti,r.c2r=i,r.l2d=bf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return bf(_(b))},r.r2p=function(b){return r.l2p(Ml(b))},r.p2r=_,r.cleanPos=Ti):r.type==="date"?(r.d2r=r.r2d=nt.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 nt.cleanDate(b,jn,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=Ti,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:Ti(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=Ti,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:Ti(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[C0.id2name(D)];M=M.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CP[1]&&(k[D?0:1]=C),k[0]===k[1]){var z=r.l2r(M),F=r.l2r(C);if(M!==void 0){var O=z+1;C!==void 0&&(O=Math.min(O,F)),k[D?1:0]=O}if(C!==void 0){var I=F+1;M!==void 0&&(I=Math.max(I,z)),k[D?0:1]=I}}}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var C=nt.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=nt.dfltRange(r.calendar):n==="y"?q=D0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=M.dfltRange||D0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){nt.nestedProperty(r,b).set(q);return}var D=C[0]===null,P=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=nt.cleanDate(C[0],jn,r.calendar),C[1]=nt.cleanDate(C[1],jn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!nt.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=nt.constrain(r.r2l(C[0]),nt.MIN_MS+1e3,nt.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!wi(C[k]))if(!(D||P)&&wi(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-A0?C[k]=-A0:C[k]>A0&&(C[k]=A0),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=C0.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 W=I?-1:1;for(r._m2=W*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=pe),ye=!1)}ye&&P.push({min:ne,max:pe})}};for(C=0;C{"use strict";var i8=Hr(),Rm=Ie(),fV=Gt().BADNUM,P0=Rm.isArrayOrTypedArray,cV=Rm.isDateTime,vV=Rm.cleanNumber,l8=Math.round;s8.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(P0(n)&&!n.length)return"-";if(!i&&yV(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function o8(e){return Math.max(1,(e-1)/1e3)}function mV(e,r){for(var t=e.length,a=o8(t),n=0,i=0,l={},o=0;on*2}function yV(e){return P0(e[0])&&P0(e[1])}});var xf=J((pse,m8)=>{"use strict";var gV=Ir(),v8=Hr(),kl=Ie(),R0=Gt().FP_SAFE,bV=br(),xV=at(),h8=Zt(),_V=h8.getFromId,wV=h8.isLinked;m8.exports={applyAutorangeOptions:p8,getAutoRange:Nm,makePadFn:Fm,doAutoRange:MV,findExtremes:AV,concatExtremes:Om};function Nm(e,r){var t,a,n=[],i=e._fullLayout,l=Fm(i,r,0),o=Fm(i,r,1),s=Om(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return kl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(P=T-l(C)-o(k),P>b?z/P>M&&(q=C,D=k,M=z/P):z/T>M&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},M=z/T));function F(V,Y){return Math.max(V,o(Y))}if(v===h){var O=v-1,I=v+1;if(_)if(v===0)n=[0,1];else{var W=(v>0?f:u).reduce(F,0),Z=v/(1-Math.min(.5,W/T));n=v>0?[0,Z]:[Z,0]}else w?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})):w&&(q.val-M*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-q.val-u8(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-M*l(q),D.val+M*o(D)];return n=p8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),kl.simpleMap(n,r.l2r||Number)}function u8(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(w=1/0,T=-1/0,s)for(v=0;v0&&(w=h),h>T&&h-R0&&(w=h),h>T&&h=z;v--)P(v);return{min:a,max:n,opts:t}}function Im(e,r,t,a){d8(e,r,t,a,kV)}function Hm(e,r,t,a){d8(e,r,t,a,SV)}function d8(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 c8(e){return v8(e)&&Math.abs(e)=r}function CV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z0(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&&z0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z0(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=CV(t,r),a=LV(a,r),[t,a]}});var dt=J((yse,H8)=>{"use strict";var kn=Ir(),Bt=Hr(),Xs=Ht(),wf=br(),gr=Ie(),Zs=gr.strTranslate,So=ya(),qV=gf(),Tf=Er(),on=at(),DV=Qn(),y8=am(),mse=jt(),ba=Gt(),EV=ba.ONEMAXYEAR,I0=ba.ONEAVGYEAR,H0=ba.ONEMINYEAR,PV=ba.ONEMAXQUARTER,Vm=ba.ONEAVGQUARTER,O0=ba.ONEMINQUARTER,RV=ba.ONEMAXMONTH,Js=ba.ONEAVGMONTH,B0=ba.ONEMINMONTH,sn=ba.ONEWEEK,Ra=ba.ONEDAY,Sl=Ra/2,Ai=ba.ONEHOUR,Mf=ba.ONEMIN,Y0=ba.ONESEC,zV=ba.ONEMILLI,NV=ba.ONEMICROSEC,Co=ba.MINUS_SIGN,V0=ba.BADNUM,Gm={K:"zeroline"},Wm={K:"gridline",L:"path"},Xm={K:"minor-gridline",L:"path"},C8={K:"tick",L:"path"},g8={K:"tick",L:"text"},b8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},G0=Ma(),_f=G0.MID_SHIFT,Lo=G0.CAP_SHIFT,Af=G0.LINE_SPACING,FV=G0.OPPOSITE_SIDE,U0=3,Ye=H8.exports={};Ye.setConvert=E0();var IV=zm(),ki=Zt(),HV=ki.idSort,OV=ki.isLinked;Ye.id2name=ki.id2name;Ye.name2id=ki.name2id;Ye.cleanId=ki.cleanId;Ye.list=ki.list;Ye.listIds=ki.listIds;Ye.getFromId=ki.getFromId;Ye.getFromTrace=ki.getFromTrace;var L8=xf();Ye.getAutoRange=L8.getAutoRange;Ye.findExtremes=L8.findExtremes;var BV=1e-4;function Qm(e){var r=(e[1]-e[0])*BV;return[e[0]-r,e[1]+r]}Ye.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)};Ye.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))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.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=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=Sl;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Bt(r._tmin),n;if(a){var i=Ye.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,Ye.prepTicks(e,t),a){var o=Bt(r.dtick),s=Bt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Bm(u,f)?u===2*sn&&f===2*Ra&&(e.dtick=sn):u===2*sn&&f===3*Ra?e.dtick=sn:u===sn&&!(r._input.minor||{}).nticks?e.dtick=Ra:w8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bm(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"?Bm(u,f)||(e.dtick=w8(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function w8(e,r){return Math.abs(e/r-1)<.001}Ye.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,Ye.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>=H0?u>=H0&&u<=EV?v=u:v=I0:t===Vm&&f>=O0?u>=O0&&u<=PV?v=u:v=Vm:f>=B0?u>=B0&&u<=RV?v=u:v=Js:t===sn&&f>=sn?v=sn:f>=Ra?v=Ra:t===Sl&&f>=Sl?v=Sl:t===Ai&&f>=Ai&&(v=Ai);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;gsn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.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]=(T?0:1);b--){var M=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(g=[],m=T8(r,!M)):(_=[],y=T8(r,!M));continue}if(C.tickmode==="sync"){g=[],m=XV(r);continue}var k=Qm(u),q=k[0],D=k[1],P=Bt(C.dtick),z=a==="log"&&!(P||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:I<=D;I=Ye.tickIncrement(I,V,f,n)){if(b&&W++,C.rangebreaks&&!f){if(I=h)break}if(g.length>d||I===O)break;O=I;var Y={value:I};b?(z&&I!==(I|0)&&(Y.simpleLabel=!0),i>1&&W%i&&(Y.skipLabel=!0),g.push(Y)):(Y.minor=!0,_.push(Y))}}if(!_||_.length<2)s=!1;else{var H=(_[1].value-_[0].value)*(o?-1:1);gG(H,r.tickformat)||(s=!1)}if(!s)w=g;else{var Q=g.concat(_);l&&g.length&&(Q=Q.slice(1)),Q=Q.sort(function(Fe,Oe){return Fe.value-Oe.value}).filter(function(Fe,Oe,We){return Oe===0||Fe.value!==We[Oe-1].value});var K=Q.map(function(Fe,Oe){return Fe.minor===void 0&&!Fe.skipLabel?Oe:null}).filter(function(Fe){return Fe!==null});K.forEach(function(Fe){s.map(function(Oe){var We=Fe+Oe;We>=0&&We-1;ge--){if(g[ge].drop){g.splice(ge,1);continue}g[ge].value=Um(g[ge].value,r);var U=r.c2p(g[ge].value);(Ae?$>U-B:$h||Peh&&(We.periodX=h),Pen&&hI0)r/=I0,a=n(10),e.dtick="M"+12*Mi(r,a,N0);else if(i>Js)r/=Js,e.dtick="M"+Mi(r,1,M8);else if(i>Ra){if(e.dtick=Mi(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:ZV),!t){var l=Ye.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>Ai?e.dtick=Mi(r,Ai,M8):i>Mf?e.dtick=Mi(r,Mf,A8):i>Y0?e.dtick=Mi(r,Y0,A8):(a=n(10),e.dtick=Mi(r,a,N0))}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"+Mi(r,a,N0)}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))):ry(e)?(e.tick0=0,a=1,e.dtick=Mi(r,a,JV)):(e.tick0=0,a=n(10),e.dtick=Mi(r,a,N0));if(e.dtick===0&&(e.dtick=1),!Bt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function P8(e){var r=e.dtick;if(e._tickexponent=0,!Bt(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>=Mf&&n<=16||r>=Ai)e._tickround="M";else if(r>=Y0&&n<=19||r>=Mf)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(Bt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Bt(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&&(Ks(e.exponentformat)&&e.exponentformat!=="SI extended"&&!$m(s)||Ks(e.exponentformat)&&e.exponentformat==="SI extended"&&!jm(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(Bt(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"?E8:D8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(kn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.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=Sf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function QV(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=kf(Math.pow(10,l),e,n,a);else if(Bt(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"||Ks(m)&&m!=="SI extended"&&$m(h)||Ks(m)&&m==="SI extended"&&jm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Co)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Co)+d:(r.text=kf(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 $V(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jV(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 eG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=kf(r.x,e,n,a)}function rG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=tG(i);if(l[1]>=100)r.text=kf(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=Co+r.text)}}}else r.text=kf(r.x,e,n,a)}function tG(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 z8=["f","p","n","\u03BC","m","","k","M","G","T"],aG=["q","r","y","z","a",...z8,"P","E","Z","Y","R","Q"],Ks=e=>["SI","SI extended","B"].includes(e);function $m(e){return e>14||e<-15}function jm(e){return e>32||e<-30}function nG(e,r){return Ks(r)?!!(r==="SI extended"&&jm(e)||r!=="SI extended"&&$m(e)):!1}function kf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Bt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};P8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Co);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":Ks(l)&&(e+=l==="SI extended"?aG[o/3+10]:z8[o/3+5])}return n?Co+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Js}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=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Km(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.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=Ye.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),Km(r,m,a,!0),Km(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=yG(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?Pe.bottom-Oe:0,We))));var xe=0,Ke=0;if(r._shiftPusher&&(xe=Math.max(We,Pe.height>0?Le==="l"?Oe-Pe.left:Pe.right-Oe: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){Be={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"?Be[Le]=r._depth:(Be[Le]=r._depth=Math.max(Pe.width>0?Oe-Pe.top:0,We),hr.reverse()),Pe.width>0){var Te=Pe.right-(r._offset+r._length);Te>0&&(Be.xr=1,Be.r=Te);var ke=r._offset-Pe.left;ke>0&&(Be.xl=0,Be.l=ke)}}else if(Le==="l"?(r._depth=Math.max(Pe.height>0?Oe-Pe.left:0,We),Be[Le]=r._depth-ze):(r._depth=Math.max(Pe.height>0?Pe.right-Oe:0,We),Be[Le]=r._depth+ze,hr.reverse()),Pe.height>0){var He=Pe.bottom-(r._offset+r._length);He>0&&(Be.yb=0,Be.b=He);var Je=r._offset-Pe.top;Je>0&&(Be.yt=1,Be.t=Je)}Be[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Le]+=S8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ge={x:0,y:0,r:0,l:0,t:0,b:0},Ge[Fe]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ge[Fe]+=We),r.mirror===!0||r.mirror==="ticks"?Ge[v]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ge[v]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Re&&(ie=wf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(k8(Be,r.automargin),k8(Ge,r.automargin)),Xs.autoMargin(e,ey(r),Be),Xs.autoMargin(e,F8(r),Ge),Xs.autoMargin(e,I8(r),ie)}),gr.syncOrAsync(me)}};function k8(e,r){if(e){var t=Object.keys(b8).reduce(function(a,n){return r.indexOf(n)!==-1&&b8[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 iG(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 Zs(n+e._offset+e.l2p(Zm(h))+t,i+a)}:function(h){return Zs(i+a,n+e._offset+e.l2p(Zm(h))+t)}};function Zm(e){return e.periodX!==void 0?e.periodX:e.x}function uG(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=U0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*Lo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=U0),s&&f==="top"&&(h-=d*(1-Lo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h: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,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};Ye.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},w,T,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),w=m*M,T=r+d*M,b=P?1:-.2,Math.abs(D)===90&&(v?b+=_f:D===-90&&k==="bottom"?b=Lo:D===90&&k==="top"?b=_f:b=.5,C=_f/2*(D/90)),_.xFn=function(O){return O.dx+w+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*b},_.anchorFn=function(O,I){if(f){if(o)return"end";if(s)return"start"}return!Bt(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},_.heightFn=function(O,I,W){return I<-60||I>60?-.5*W:e.side==="top"!==v?-W:0};else if(q==="y"){if(P=!v&&k==="left"||v&&k==="right",M=P?1:-1,v&&(M*=-1),w=d,T=m*M,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=Lo:b=.5),v){var z=Bt(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*Lo*M,b=0}}_.xFn=function(O){return O.dx+r-(w+O.fontSize*b)*M+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*_f},_.anchorFn=function(O,I){return Bt(I)&&Math.abs(I)===90?"middle":P?"end":"start"},_.heightFn=function(O,I,W){return e.side==="right"&&(I*=-1),I<-30?-W:I<30?-.5*W:0}}return _};function W0(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(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,W0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Tf.stroke(kn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return on.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),X0(r,[C8]),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(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.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,W0);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 Tf.stroke(kn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return on.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)}}X0(r,[Wm,Xm])}};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(l,o){return HV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Tf.stroke,r.zerolinecolor||Tf.defaultLine).style("stroke-width",on.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),X0(r,[Gm])};Ye.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:[],W0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(H){var Q=kn.select(this),K=e._promises.length;Q.call(So.positionText,s.xFn(H),s.yFn(H)).call(on.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[K]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),X0(r,[g8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(H){kn.select(this).select("text").call(So.positionText,s.xFn(H),s.yFn(H))});function d(H,Q){H.each(function(K){var ne=kn.select(this),pe=ne.select(".text-math-group"),ye=s.anchorFn(K,Q),Se=t.transFn.call(ne.node(),K)+(Bt(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(K)+","+(s.yFn(K)-K.fontSize/2)+")":""),re=So.lineCount(ne),Ce=Af*K.fontSize,de=s.heightFn(K,Bt(Q)?+Q:0,(re-1)*Ce);if(de&&(Se+=Zs(0,de)),pe.empty()){var be=ne.select("text");be.attr({transform:Se,"text-anchor":ye}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=on.bBox(pe.node()).width,Ae=ge*{end:-.5,start:.5}[ye];pe.attr("transform",Se+Zs(Ae,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Q=H.indexOf("hide")!==-1,K=r._id.charAt(0)==="x",ne=0,pe=K?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,pe=r.l2p(ye[1])+r._offset}var Se=Math.min(ne,pe),re=Math.max(ne,pe),Ce=r.side,de=1/0,be=-1/0;v.each(function($){var U=kn.select(this),le=U.select(".text-math-group");if(le.empty()){var ve=on.bBox(U.node()),me=0;K?(ve.right>re||ve.leftre||ve.top+(r.tickangle?0:$.fontSize/4)r["_visibleLabelMin_"+ye._id]?U.style("display","none"):re.K==="tick"&&!Se&&U.node().style.display!=="none"&&U.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=[],K,ne=1;v.each(function(Be){H=Math.max(H,Be.fontSize);var Ge=r.l2p(Be.x),ie=Jm(this),xe=on.bBox(ie.node());ne=Math.max(ne,So.lineCount(ie)),Q.push({top:0,bottom:10,height:10,left:Ge-xe.width/2,right:Ge+xe.width/2+2,width:xe.width+2})});var pe=(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=pe?Se/2:Se,Ce=pe?r.ticklen:H*1.25*ne,de=Math.sqrt(Math.pow(re,2)+Math.pow(Ce,2)),be=re/de,ge=r.autotickangles.map(function(Be){return Be*Math.PI/180}),Ae=ge.find(function(Be){return Math.abs(Math.cos(Be))<=be});Ae===void 0&&(Ae=ge.reduce(function(Be,Ge){return Math.abs(Math.cos(Be))Z*W&&(F=W,D[q]=P[q]=O[q])}var V=Math.abs(F-z);V-M>0?(V-=M,M*=1+M/V):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=T.p2r(T.r2p(P[k])+C*M),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var Y=gr.syncOrAsync(_);return Y&&Y.then&&e._promises.push(Y),Y};function fG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,W0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Tf.stroke,r.dividercolor).style("stroke-width",on.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 S8(e){var r=e.title.font.size,t=(e.title.text.match(So.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Lo+t*Af):t?r*(t+1)*Af:r}function cG(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*Lo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(_f+o*Af));else{var s=Sf(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=Ye.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=on.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,qV.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"}})}Ye.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)===V0)&&(N8(r,0)||!vG(e,r,t,a)||hG(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return N8(e,t.x)})};function N8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=NV:/%L/.test(r)?e>=zV:/%[SX]/.test(r)?e>=Y0:/%M/.test(r)?e>=Mf:/%[HI]/.test(r)?e>=Ai:/%p/.test(r)?e>=Sl:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=sn:/%[Bbm]/.test(r)?e>=B0:/%[q]/.test(r)?e>=O0:/%[Yy]/.test(r)?e>=H0:!0}});var B8=J((gse,O8)=>{"use strict";O8.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 ty=J((bse,Y8)=>{"use strict";var bG=B8();Y8.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&&(bG(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var V8=J((xse,U8)=>{var xG={left:0,top:0};U8.exports=_G;function _G(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=wG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function wG(e){return e===window||e===document||e===document.body?xG:e.getBoundingClientRect()}});var ay=J((_se,G8)=>{"use strict";var TG=Dp();function MG(){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}G8.exports=TG&&MG()});var X8=J((wse,W8)=>{"use strict";W8.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 K8=J((Tse,J8)=>{"use strict";var Z8=Ie(),AG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];J8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=Z8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=Z8.constrain(Math.floor(t*3),0,2),AG[t][r]}});var $8=J((Mse,Q8)=>{"use strict";var kG=uf(),SG=Xv(),CG=ef().getGraphDiv,LG=Ku(),ny=Q8.exports={};ny.wrapped=function(e,r,t){e=CG(e),e._fullLayout&&SG.clear(e._fullLayout._uid+LG.HOVERID),ny.raw(e,r,t)};ny.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&kG.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 ei=J((Ase,tw)=>{"use strict";var qG=V8(),iy=Pp(),DG=ay(),EG=Ie().removeElement,PG=jt(),qo=tw.exports={};qo.align=X8();qo.getCursor=K8();var ew=$8();qo.unhover=ew.wrapped;qo.unhoverRaw=ew.raw;qo.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,DG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(T,b,M){return Math.abs(T)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",T))}t._dragging=!1,t._dragged=!1}};function rw(){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}qo.coverSlip=rw;function j8(e){return qG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cl=J((kse,aw)=>{"use strict";aw.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 lw=J((Sse,iw)=>{"use strict";var ly=Cl(),Cf="data-savedcursor",nw="!!";iw.exports=function(r,t){var a=r.attr(Cf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var oy=ma(),RG=mi();ow.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:RG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:oy({editType:"legend"}),grouptitlefont:oy({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:oy({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var qf=J(Lf=>{"use strict";Lf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Lf.isVertical=function(r){return r.orientation!=="h"};Lf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Lf.getId=function(r){return r._id||"legend"}});var fy=J((qse,sw)=>{"use strict";var Z0=br(),un=Ie(),zG=ct(),NG=Wn(),FG=sy(),IG=ks(),uy=qf();function HG(e,r,t,a,n){var i=r[e]||{},l=zG.newContainer(t,e);function o(H,Q){return un.coerce(i,l,FG,H,Q)}var s=un.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 K=f._input,ne=f;return un.coerce(K,ne,NG,H,Q)},h=t.font||{},d=un.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 w(H){return Z0.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(w).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,W,Z="left";P?(O=0,Z0.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,W="bottom"):(I=1,W="top"):z?(I=-.1,W="top"):(I=0,W="bottom")):(I=1,W="auto",F?O=1.02:(O=1,Z="right")),un.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:O}},"x"),un.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:I}},"y"),o("traceorder",g),uy.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",Z),o("yanchor",W),o("maxheight"),o("valign"),un.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",P?"left":"top");var Y=un.extendFlat({},s,{size:un.bigFont(s.size)});un.coerceFont(o,"title.font",Y);let H=n>1;o("titleclick",H?"toggle":!1),o("titledoubleclick",H?"toggleothers":!1)}}}sw.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Ll=br(),cy=Ie(),OG=cy.pushUnique,BG=qf(),uw=!0;vy.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"&&uw&&t.data&&t._context.showTips&&(cy.notifier(cy._(t,"Double-click on legend to isolate one trace"),"long"),uw=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,v=(i.shapes||[]).filter(function(Re){return Re.showlegend}),h=f.concat(v),d=l.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,y,g,_,w,T,b,M={},C=[],k=[],q=[];function D(Re,Le){var Fe=C.indexOf(Re),Oe=M.visible;return Oe||(Oe=M.visible=[]),C.indexOf(Re)===-1&&(C.push(Re),Fe=C.length-1),Oe[Fe]=Le,Fe}var P=(i.shapes||[]).map(function(Re){return Re._input}),z=!1;function F(Re,Le){P[Re].visible=Le,z=!0}function O(Re,Le){if(!(l.groupTitle&&!s)){var Fe=Re._fullInput||Re,Oe=Fe._isShape,We=Fe.index;We===void 0&&(We=Fe._index);var Pe=Fe.visible===!1?!1:Le;Oe?F(We,Pe):D(We,Pe)}}var I=d.legend,W=d._fullInput,Z=W&&W._isShape;if(!Z&&Ll.traceIs(d,"pie-like")){var V=l.label,Y=u.indexOf(V);if(n==="toggle")Y===-1?u.push(V):u.splice(Y,1);else if(n==="toggleothers"){var H=Y!==-1,Q=[];for(y=0;y{"use strict";fw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hw=J((Pse,vw)=>{"use strict";var cw=br(),py=qf();vw.exports=function(r,t,a){var n=t._inHover,i=py.isGrouped(t),l=py.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(H,Q,K){if(t.visible!==!1&&!(a&&H!==t._id))if(Q===""||!py.isGrouped(t)){var ne="~~i"+v;s.push(ne),o[ne]=[K],v++}else s.indexOf(Q)===-1?(s.push(Q),u=!0,o[Q]=[K]):o[Q].push(K)}for(d=0;dF&&(z=F)}D[d][0]._groupMinRank=z,D[d][0]._preGroupSort=d}var O=function(H,Q){return H[0]._groupMinRank-Q[0]._groupMinRank||H[0]._preGroupSort-Q[0]._preGroupSort},I=function(H,Q){return H.trace.legendrank-Q.trace.legendrank||H._preSort-Q._preSort};for(D.forEach(function(H,Q){H[0]._preGroupSort=Q}),D.sort(O),d=0;d{"use strict";var J0=Ie();function dw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Do.formatPiePercent=function(r,t){var a=dw((r*100).toPrecision(3));return J0.numSeparate(a,t)+"%"};Do.formatPieValue=function(r,t){var a=dw(r.toPrecision(10));return J0.numSeparate(a,t)};Do.getFirstFilled=function(r,t){if(J0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var YG=at(),UG=Er();pw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?YG.pointStyle(r,a,n,t):UG.fill(r,t.color)}});var Q0=J((Nse,bw)=>{"use strict";var yw=Er(),gw=K0().castOption,VG=mw();bw.exports=function(r,t,a,n){var i=a.marker.line,l=gw(i.color,t.pts)||yw.defaultLine,o=gw(i.width,t.pts)||0;r.call(VG,t,a,n).style("stroke-width",o).call(yw.stroke,l)}});var by=J((Fse,Aw)=>{"use strict";var za=Ir(),my=br(),ka=Ie(),xw=ka.strTranslate,fn=at(),Sn=Er(),yy=An().extractOpts,$0=ln(),GG=Q0(),WG=K0().castOption,XG=dy(),_w=12,ww=5,Eo=2,ZG=10,Qs=5;Aw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+XG.itemGap*2)/2,s=xw(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=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],W=I*(.5*(F-O+3))||0,Z=a.indentation;D.attr("transform",xw(Z,W))}var V=D.selectAll("g.legendfill").data([k]);V.enter().append("g").classed("legendfill",!0);var Y=D.selectAll("g.legendlines").data([k]);Y.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(T).each(f).each(v).each(_).each(w);function f(k){var q=Tw(k),D=q.showFill,P=q.showLine,z=q.showGradientLine,F=q.showGradientFill,O=q.anyFill,I=q.anyLine,W=k[0],Z=W.trace,V,Y,H=yy(Z),Q=H.colorscale,K=H.reversescale,ne=function(be){if(be.size())if(D)fn.fillGroupStyle(be,t,!0);else{var ge="legendfill-"+Z.uid;fn.gradient(be,t,ge,gy(K),Q,"fill")}},pe=function(be){if(be.size()){var ge="legendline-"+Z.uid;fn.lineGroupStyle(be),fn.gradient(be,t,ge,gy(K),Q,"stroke")}},ye=$0.hasMarkers(Z)||!O?"M5,0":I?"M5,-2":"M5,-3",Se=za.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,Z.line,ZG,ww);Y=ka.minExtend(Z,{line:{width:Ce}}),V=[ka.minExtend(W,{trace:Y})]}var de=Se.select(".legendlines").selectAll("path").data(P||z?[V]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",ye+(z?"l"+l+",0.0001":"h"+l)).call(P?fn.lineGroupStyle:pe)}function v(k){var q=Tw(k),D=q.anyFill,P=q.anyLine,z=q.showLine,F=q.showMarker,O=k[0],I=O.trace,W=!F&&!P&&!D&&$0.hasText(I),Z,V;function Y(re,Ce,de,be){var ge=ka.nestedProperty(I,re).get(),Ae=ka.isArrayOrTypedArray(ge)&&Ce?Ce(ge):ge;if(i&&Ae&&be!==void 0&&(Ae=be),de){if(Aede[1])return de[1]}return Ae}function H(re){return O._distinct&&O.index&&re[O.index]?re[O.index]:re[0]}if(F||W||z){var Q={},K={};if(F){Q.mc=Y("marker.color",H),Q.mx=Y("marker.symbol",H),Q.mo=Y("marker.opacity",ka.mean,[.2,1]),Q.mlc=Y("marker.line.color",H),Q.mlw=Y("marker.line.width",ka.mean,[0,5],Eo),Q.mld=I._isShape?"solid":Y("marker.line.dash",H),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=Y("marker.size",ka.mean,[2,16],_w);Q.ms=ne,K.marker.size=ne}z&&(K.line={width:Y("line.width",H,[0,10],ww)}),W&&(Q.tx="Aa",Q.tp=Y("textposition",H),Q.ts=10,Q.tc=Y("textfont.color",H),Q.tf=Y("textfont.family",H),Q.tw=Y("textfont.weight",H),Q.ty=Y("textfont.style",H),Q.tv=Y("textfont.variant",H),Q.tC=Y("textfont.textcase",H),Q.tE=Y("textfont.lineposition",H),Q.tS=Y("textfont.shadow",H)),Z=[ka.minExtend(O,Q)],V=ka.minExtend(I,K),V.selectedpoints=null,V.texttemplate=null}var pe=za.select(this).select("g.legendpoints"),ye=pe.selectAll("path.scatterpts").data(F?Z:[]);ye.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ye.exit().remove(),ye.call(fn.pointStyle,V,t),F&&(Z[0].mrc=3);var Se=pe.selectAll("g.pointtext").data(W?Z:[]);Se.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Se.exit().remove(),Se.selectAll("text").call(fn.textPointStyle,V,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),W=q[O[0]].marker,Z=u(void 0,W.line,Qs,Eo);I.attr("d",O[1]).style("stroke-width",Z+"px").call(Sn.fill,W.color),Z&&I.call(Sn.stroke,W.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:my.traceIs(P,"bar"),W=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(I?[k]:[]);W.enter().append("path").classed("legend"+D,!0).attr("d",O).attr("transform",s),W.exit().remove(),W.each(function(Z){var V=za.select(this),Y=Z[0],H=u(Y.mlw,z.line,Qs,Eo);V.style("stroke-width",H+"px");var Q=Y.mcc;if(!a._inHover&&"mc"in Y){var K=yy(z),ne=K.mid;ne===void 0&&(ne=(K.max+K.min)/2),Q=fn.tryColorscale(z,"")(ne)}var pe=Q||Y.mc||z.color,ye=z.pattern,Se=fn.getPatternAttr,re=ye&&(Se(ye.shape,0,"")||Se(ye.path,0,""));if(re){var Ce=Se(ye.bgcolor,0,null),de=Se(ye.fgcolor,0,null),be=ye.fgopacity,ge=Mw(ye.size,8,10),Ae=Mw(ye.solidity,.5,1),B="legend-"+P.uid;V.call(fn.pattern,"legend",t,B,re,ge,Ae,Q,ye.fillmode,Ce,de,be)}else V.call(Sn.fill,pe);H&&Sn.stroke(V,Y.mlc||F.color)})}function g(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&my.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=ka.minExtend(q,{marker:{size:i?_w:ka.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(fn.pointStyle,z,t)}else{var F=u(void 0,q.line,Qs,Eo);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,Qs,Eo);F.style("stroke-width",I+"px").call(Sn.fill,O.fillcolor),I&&Sn.stroke(F,O.line.color)})}function w(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,Qs,Eo);F.style("fill","none").call(fn.dashLine,O.line.dash,I),I&&Sn.stroke(F,O.line.color)})}function T(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:my.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||{},W=u(WG(I.line.width,P.pts),I.line,Qs,Eo),Z="pieLike",V=ka.minExtend(z,{marker:{line:{width:W}}},Z),Y=ka.minExtend(P,{trace:V},Z);GG(O,Y,V,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=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),W=yy(q),Z=W.colorscale,V=W.reversescale,Y=function(ne){if(ne.size()){var pe="legendfill-"+q.uid;fn.gradient(ne,t,pe,gy(V,D==="radial"),Z,"fill")}},H;if(Z){if(!D){var K=Z.length;H=O===0?Z[V?K-1:0][1]:O===1?Z[V?0:K-1][1]:Z[Math.floor((K-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(Sn.fill,H):I.call(Y)})}};function gy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Tw(e){var r=e[0].trace,t=r.contours,a=$0.hasLines(r),n=$0.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 Mw(e,r,t){return e&&ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var Ty=J((Ise,Rw)=>{"use strict";var Ya=Ir(),Nt=Ie(),_y=Ht(),Po=br(),rh=uf(),xy=ei(),Ft=at(),Df=Er(),Ro=ya(),kw=hy().handleItemClick,Sw=hy().handleTitleClick,Yt=dy(),wy=Ma(),Ew=wy.LINE_SPACING,js=wy.FROM_TL,Cw=wy.FROM_BR,Lw=hw(),JG=by(),eu=qf(),$s=1,KG=/^legend[0-9]*$/;Rw.exports=function(r,t){if(t)qw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ya.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(KG)&&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(),_y.autoMargin(e,n);var y=Nt.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Nt.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Nt.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(Df.stroke,t.bordercolor).call(Df.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Nt.ensureSingle(y,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Nt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ft.font,T.font).text(T.text),eh(b,w,e,t,$s),!o&&(t.titleclick||t.titledoubleclick)&&eW(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Nt.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Yt.scrollBarEnterAttrs).call(Df.fill,Yt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Nt.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 Po.traceIs(P,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Ya.select(this).call($G,e,t)}).call(JG,e,t).each(function(q){o||q[0].groupTitle&&t.groupclick==="toggleitem"||Ya.select(this).call(jG,e,n)}),Nt.syncOrAsync([_y.previousPromises,function(){return aW(e,C,k,t,w)},function(){var q=a._size,D=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(T.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),ve=e._fullData.concat(le).some(function(me){let De=me.legend||"legend";var Re=Array.isArray(De)?De.includes(n):De===n;return Re&&me.visible===!0});b.style("opacity",ve?1:.5)}if(!o){var F,O;P?F=q.l+q.w*t.x-js[th(t)]*t._width:F=a.width*t.x-js[th(t)]*t._width,z?O=q.t+q.h*(1-t.y)-js[ah(t)]*t._effHeight:O=a.height*(1-t.y)-js[ah(t)]*t._effHeight;var I=nW(e,n,F,O);if(I)return;if(a.margin.autoexpand){var W=F,Z=O;F=P?Nt.constrain(F,0,a.width-t._width):W,O=z?Nt.constrain(O,0,a.height-t._effHeight):Z,F!==W&&Nt.log("Constrain "+n+".x to make legend fit inside graph"),O!==Z&&Nt.log("Constrain "+n+".y to make legend fit inside graph")}Ft.setTranslate(y,F,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var V=t._effHeight;o&&(V=t._height),_.attr({width:t._width-D,height:V-D,x:D/2,y:D/2}),Ft.setTranslate(w,0,0),g.select("rect").attr({width:t._width-2*D,height:V-2*D,x:D,y:D}),Ft.setClipUrl(w,i,e),Ft.setRect(M,0,0,0,0),delete t._scrollY}else{var Y=Math.max(Yt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-Y-2*Yt.scrollBarMargin,Q=t._height-t._effHeight,K=H/Q,ne=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ne}),Ft.setClipUrl(w,i,e),ge(ne,Y,K),y.on("wheel",function(){ne=Nt.constrain(t._scrollY+Ya.event.deltaY/Q*H,0,Q),ge(ne,Y,K),ne!==0&&ne!==Q&&Ya.event.preventDefault()});var pe,ye,Se,re=function(le,ve,me){var De=(me-ve)/K+le;return Nt.constrain(De,0,Q)},Ce=function(le,ve,me){var De=(ve-me)/K+le;return Nt.constrain(De,0,Q)},de=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"?pe=le.changedTouches[0].clientY:pe=le.clientY,Se=ne}).on("drag",function(){var le=Ya.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ye=le.changedTouches[0].clientY:ye=le.clientY,ne=re(Se,pe,ye),ge(ne,Y,K))});M.call(de);var be=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"&&(pe=le.changedTouches[0].clientY,Se=ne)}).on("drag",function(){var le=Ya.event.sourceEvent;le.type==="touchmove"&&(ye=le.changedTouches[0].clientY,ne=Ce(Se,pe,ye),ge(ne,Y,K))});w.call(be)}function ge(le,ve,me){t._scrollY=e._fullLayout[n]._scrollY=le,Ft.setTranslate(w,0,-le),Ft.setRect(M,t._width,Yt.scrollBarMargin+le*me,Yt.scrollBarWidth,ve),g.select("rect").attr("y",D+le)}if(e._context.edits.legendPosition){var Ae,B,$,U;y.classed("cursor-move",!0),xy.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==M.node()){var ve=Ft.getTranslate(y);$=ve.x,U=ve.y}},moveFn:function(le,ve){if($!==void 0&&U!==void 0){var me=$+le,De=U+ve;Ft.setTranslate(y,me,De),Ae=xy.align(me,t._width,q.l,q.l+q.w,t.xanchor),B=xy.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(Ae!==void 0&&B!==void 0){var le={};le[n+".x"]=Ae,le[n+".y"]=B,Po.call("_guiRelayout",e,le)}},clickFn:function(le,ve){var me=l.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return ve.clientX>=De.left&&ve.clientX<=De.right&&ve.clientY>=De.top&&ve.clientY<=De.bottom});me.size()>0&&Pw(e,t,me,le,ve)}})}}],e)}}function j0(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 Pw(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),Po.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=rh.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&kw(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=rh.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&kw(t,e,r,s)}}function $G(e,r,t){var a=eu.getId(t),n=e.data()[0][0],i=n.trace,l=Po.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=Nt.templateString(u,i._meta))));var v=Nt.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ft.font,f).text(o?Dw(u,s):u);var h=t.indentation+t.itemwidth+Yt.itemGap*2;Ro.positionText(v,h,0),o?v.call(Ro.makeEditable,{gd:r,text:u}).call(eh,e,r,t).on("edit",function(d){this.text(Dw(d,s)).call(eh,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Po.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Po.call("_guiRestyle",r,y,i.index)}):eh(v,e,r,t)}function Dw(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 jG(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Nt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Df.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)),Pw(r,o,e,i,Ya.event)}}))}function eW(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Po.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Nt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Df.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:Ya.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(rh.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,rh.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&Sw(r,t,t.titledoubleclick))}))}function eh(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Ro.convertToTspans(e,t,function(){rW(r,t,a,n)})}function rW(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=eu.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===$s?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*Ew,h,d;if(o){var m=Ft.bBox(o);h=m.height,d=m.width,a===$s?Ft.setTranslate(l,u,u+h*.75):Ft.setTranslate(l,0,h*.25)}else{var y="."+s+(a===$s?"title":"")+"text",g=e.select(y),_=Ro.lineCount(g),w=g.node();if(h=v*_,d=w?Ft.bBox(w).width:0,a===$s)t.title.side==="left"&&(d+=Yt.itemGap*2),Ro.positionText(g,u+Yt.titlePad,u+v);else{var T=Yt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=Yt.itemGap,d-=t.indentation+t.itemwidth),Ro.positionText(g,T,-v*((_-1)/2-.3))}}a===$s?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=v,n.height=Math.max(h,16)+3,n.width=d)}function tW(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 aW(e,r,t,a,n){var i=e._fullLayout,l=eu.getId(a);a||(a=i[l]);var o=i._size,s=eu.isVertical(a),u=eu.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,h=2*v,d=Yt.itemGap,m=a.indentation+a.itemwidth+d*2,y=2*(v+d),g=ah(a),_=a.y<0||a.y===0&&g==="top",w=a.y>1||a.y===1&&g==="bottom",T=a.tracegroupgap,b={};let{orientation:M,yref:C}=a,{maxheight:k}=a,q=_||w||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=tW(a);if(s)t.each(function(le){var ve=le[0].height;Ft.setTranslate(this,v+z[0],v+z[1]+a._height+ve/2+d),a._height+=ve,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,ve){Ft.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=th(a),O=a.x<0||a.x===0&&F==="right",I=a.x>1||a.x===1&&F==="left",W=w||_,Z=i.width/2;a._maxWidth=Math.max(O?W&&F==="left"?o.l+o.w:Z:I?W&&F==="right"?o.r+o.w:Z:o.w,2*m);var V=0,Y=0;t.each(function(le){var ve=j0(le,a,m);V=Math.max(V,ve),Y+=ve}),P=null;var H=0;if(u){var Q=0,K=0,ne=0;r.each(function(){var le=0,ve=0;Ya.select(this).selectAll("g.traces").each(function(De){var Re=j0(De,a,m),Le=De[0].height;Ft.setTranslate(this,z[0],z[1]+v+d+Le/2+ve),ve+=Le,le=Math.max(le,Re),b[De[0].trace.legendgroup]=le});var me=le+d;K>0&&me+v+K>a._maxWidth?(H=Math.max(H,K),K=0,ne+=Q+T,Q=ve):Q=Math.max(Q,ve),Ft.setTranslate(this,K,ne),K+=me}),a._width=Math.max(H,K)+v,a._height=ne+Q+y}else{var pe=t.size(),ye=Y+h+(pe-1)*d=a._maxWidth&&(H=Math.max(H,de),re=0,Ce+=Se,a._height+=Se,Se=0),Ft.setTranslate(this,z[0]+v+re,z[1]+v+Ce+ve/2+d),de=re+me+d,re+=De,Se=Math.max(Se,ve)}),ye?(a._width=re+h,a._height=Se+y):(a._width=Math.max(H,de)+h,a._height+=Se+y)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(v+Yt.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(v+Yt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,ge=be.legendText||be.legendPosition;t.each(function(le){var ve=Ya.select(this).select("."+l+"toggle"),me=le[0].height,De=le[0].trace.legendgroup,Re=j0(le,a,m);u&&De!==""&&(Re=b[De]);var Le=ge?m:P||Re;!s&&!f&&(Le+=d/2),Ft.setRect(ve,0,-me/2,Le,me)});var Ae=n.select("."+l+"titletext");Ae.node()&&QG(Ae,a,v);var B=n.select("."+l+"titletoggle");if(B.size()&&Ae.node()){var $=Ae.attr("x")||0,U=Yt.titlePad;Ft.setRect(B,$-U,v,a._titleWidth+2*U,a._titleHeight+2*U)}}function nW(e,r,t,a){var n=e._fullLayout,i=n[r],l=th(i),o=ah(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 _y.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*js[l],r:i._width*Cw[l],b:i._effHeight*Cw[o],t:i._effHeight*js[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 th(e){return Nt.isRightAnchor(e)?"right":Nt.isCenterAnchor(e)?"center":"left"}function ah(e){return Nt.isBottomAnchor(e)?"bottom":Nt.isMiddleAnchor(e)?"middle":"top"}});var Sy=J(ky=>{"use strict";var zo=Ir(),Zi=Hr(),zw=_n(),Mt=Ie(),iW=Mt.pushUnique,My=Mt.strTranslate,lW=Mt.strRotate,oW=uf(),Cn=ya(),sW=lw(),Si=at(),ra=Er(),nh=ei(),Ci=dt(),uW=jt().zindexSeparator,tu=br(),ri=_i(),No=Ku(),fW=fy(),cW=Ty(),Uw=No.YANGLE,Ay=Math.PI*Uw/180,vW=1/Math.sin(Ay),hW=Math.cos(Ay),dW=Math.sin(Ay),pt=No.HOVERARROWSIZE,Or=No.HOVERTEXTPAD,Nw={box:!0,ohlc:!0,violin:!0,candlestick:!0},pW={scatter:!0,scattergl:!0,splom:!0};function Fw(e,r){return e.distance-r.distance}ky.hover=function(r,t,a,n){r=Mt.getGraphDiv(r);var i=t.target;Mt.throttle(r._fullLayout._uid+No.HOVERID,No.HOVERMINTIME,function(){mW(r,t,a,n,i)})};ky.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Zw(n),l=Jw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,T=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),P=g.trace;if(tu.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},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||ra.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=Gw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ra.background,container:zo.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 w=g.y0-g.by/2;w-vk[0]._length||U<0||U>q[0]._length)return nh.unhoverRaw(e,r)}if(r.pointerX=$+k[0]._offset,r.pointerY=U+q[0]._offset,"xval"in r?Z=ri.flat(i,r.xval):Z=ri.p2c(k,$),"yval"in r?V=ri.flat(i,r.yval):V=ri.p2c(q,U),!Zi(Z[0])||!Zi(V[0]))return Mt.warn("Fx.hover failed",r,e),nh.unhoverRaw(e,r)}var me=1/0;function De(vr,lt){for(H=0;Hde&&(I.splice(0,de),me=I[0].distance),v&&O!==0&&I.length===0){Ce.distance=O,Ce.index=!1;var Qr=K._module.hoverPoints(Ce,Se,re,"closest",{hoverLayer:o._hoverlayer});if(Qr&&(Qr=Qr.filter(function(Ct){return Ct.spikeDistance<=O})),Qr&&Qr.length){var fa,mn=Qr.filter(function(Ct){return Ct.xa.showspikes&&Ct.xa.spikesnap!=="hovered data"});if(mn.length){var Qt=mn[0];Zi(Qt.x0)&&Zi(Qt.y0)&&(fa=Le(Qt),(!be.vLinePoint||be.vLinePoint.spikeDistance>fa.spikeDistance)&&(be.vLinePoint=fa))}var hi=Qr.filter(function(Ct){return Ct.ya.showspikes&&Ct.ya.spikesnap!=="hovered data"});if(hi.length){var yn=hi[0];Zi(yn.x0)&&Zi(yn.y0)&&(fa=Le(yn),(!be.hLinePoint||be.hLinePoint.spikeDistance>fa.spikeDistance)&&(be.hLinePoint=fa))}}}}}De();function Re(vr,lt,Zr){for(var ft=null,St=1/0,bt,Qr=0;Qrvr.trace.index===Te.trace.index):I=[Te];var ke=I.length,He=Yw("x",Te,o),Je=Yw("y",Te,o);De(He,Je);var Ve=[],Xe={},lr=0,tr=function(vr){var lt=Nw[vr.trace.type]?Vw(vr):vr.trace.index;if(!Xe[lt])lr++,Xe[lt]=lr,Ve.push(vr);else{var Zr=Xe[lt]-1,ft=Ve[Zr];Zr>0&&Math.abs(vr.distance)ke-1;Qe--)tr(I[Qe]);I=Ve,Pe()}var Ne=e._hoverdata,ae=[],oe=Zw(e),qe=Jw(e);for(let vr of I){var Ee=ri.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var ar=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(ar=vr.cd[vr.index].ht),vr.hovertemplate=ar||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var cr=vr.x0+vr.xa._offset,sr=vr.x1+vr.xa._offset,Mr=vr.y0+vr.ya._offset,Br=vr.y1+vr.ya._offset,$r=Math.min(cr,sr),it=Math.max(cr,sr),_t=Math.min(Mr,Br),yt=Math.max(Mr,Br);Ee.bbox={x0:$r+qe,x1:it+qe,y0:_t+oe,y1:yt+oe}}vr.eventData=[Ee],ae.push(Ee)}e._hoverdata=ae;var Dt=h==="y"&&(W.length>1||I.length>1)||h==="closest"&&ge&&I.length>1,Kt=ra.combine(o.plot_bgcolor||ra.background,o.paper_bgcolor),qa=Gw(I,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:Kt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),sa=qa.hoverLabels;if(ri.isUnifiedHover(h)||(gW(sa,Dt,o,qa.commonLabelBoundingBox),Xw(sa,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var ua=tu.getComponentMethod("annotations","hasClickToShow")(e,ae);sW(zo.select(n),ua?"pointer":"")}!n||a||!_W(e,r,Ne)||(Ne&&e.emit("plotly_unhover",{event:r,points:Ne}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:Z,yvals:V}))}function Vw(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 yW=/([\s\S]*)<\/extra>/;function Gw(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||No.HOVERFONT,v=r.fontSize||No.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,w=e[0],T=w.xa,b=w.ya,M=n.charAt(0),C=M+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-oe&&(qe=a.width-oe),Te.attr("d","M"+(Qe-qe)+",0L"+(Qe-qe+pt)+","+ae+pt+"H"+oe+"v"+ae+(Or*2+tr.height)+"H"+-oe+"V"+ae+pt+"H"+(Qe-qe-pt)+"Z"),Qe=qe,H.minX=Qe-oe,H.maxX=Qe+oe,T.side==="top"?(H.minY=Ne-(Or*2+tr.height),H.maxY=Ne-Or):(H.minY=Ne+Or,H.maxY=Ne+(Or*2+tr.height))}else{var Ee,ar,cr;b.side==="right"?(Ee="start",ar=1,cr="",Qe=T._offset+T._length):(Ee="end",ar=-1,cr="-",Qe=T._offset),Ne=b._offset+(w.y0+w.y1)/2,ke.attr("text-anchor",Ee),Te.attr("d","M0,0L"+cr+pt+","+pt+"V"+(Or+tr.height/2)+"h"+cr+(Or*2+tr.width)+"V-"+(Or+tr.height/2)+"H"+cr+pt+"V-"+pt+"Z"),H.minY=Ne-(Or+tr.height/2),H.maxY=Ne+(Or+tr.height/2),b.side==="right"?(H.minX=Qe+pt,H.maxX=Qe+pt+(Or*2+tr.width)):(H.minX=Qe-pt-(Or*2+tr.width),H.maxX=Qe-pt);var sr=tr.height/2,Mr=P-tr.top-sr,Br="clip"+a._uid+"commonlabel"+b._id,$r;if(QeTe.hoverinfo!=="none");if(ze.length===0)return[];var Q=a.hoverlabel,K=Q.font,ne=ze[0],pe=((n==="x unified"?ne.xa:ne.ya).unifiedhovertitle||{}).text,ye=pe?Mt.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:pe}):k,Se={showlegend:!0,legend:{title:{text:ye,font:K},font:K,bgcolor:Q.bgcolor,bordercolor:Q.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},re={font:K};fW(Se,re,t._fullData);var Ce=re.legend;Ce.entries=[];for(var de=0;de=0?xe=Pe:Be+ve=0?xe=Be:Ge+ve=0?Ke=Oe:We+me=0?Ke=We:ie+me=0,(ze.idealAlign==="top"||!yt)&&Dt?(cr-=Mr/2,ze.anchor="end"):yt?(cr+=Mr/2,ze.anchor="start"):ze.anchor="middle",ze.crossPos=cr;else{if(ze.pos=cr,yt=ar+sr/2+_t<=z,Dt=ar-sr/2-_t>=0,(ze.idealAlign==="left"||!yt)&&Dt)ar-=sr/2,ze.anchor="end";else if(yt)ar+=sr/2,ze.anchor="start";else{ze.anchor="middle";var Kt=_t/2,qa=ar+Kt-z,sa=ar-Kt;qa>0&&(ar-=qa),sa<0&&(ar+=-sa)}ze.crossPos=ar}Ne.attr("text-anchor",ze.anchor),oe&&ae.attr("text-anchor",ze.anchor),Te.attr("transform",My(ar,cr)+(i?lW(Uw):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function Iw(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=Mt.templateString(e.name,e.trace._meta)),l=Bw(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=Mt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(yW,(m,y)=>(l=Bw(y,e.nameLength),""))}return[o,l]}function gW(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(Z){return Z*t._invScaleX},g=function(Z){return Z*t._invScaleY};e.each(function(Z){var V=Z[n],Y=Z[i],H=V._id.charAt(0)==="x",Q=V.range;f===0&&Q&&Q[0]>Q[1]!==H&&(o=-1);var K=0,ne=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=Ww(Z,r),ye=Z.anchor,Se=ye==="end"?-1:1,re,Ce;if(ye==="middle")re=Z.crossPos+(H?g(pe.y-Z.by/2):y(Z.bx/2+Z.tx2width/2)),Ce=re+(H?g(Z.by):y(Z.bx));else if(H)re=Z.crossPos+g(pt+pe.y)-g(Z.by/2-pt),Ce=re+g(Z.by);else{var de=y(Se*pt+pe.x),be=de+y(Se*Z.bx);re=Z.crossPos+Math.min(de,be),Ce=Z.crossPos+Math.max(de,be)}H?d!==void 0&&m!==void 0&&Math.min(Ce,m)-Math.max(re,d)>1&&(Y.side==="left"?(K=Y._mainLinePosition,ne=t.width):ne=Y._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Ce,h)-Math.max(re,v)>1&&(Y.side==="top"?(K=Y._mainLinePosition,ne=t.height):ne=Y._mainLinePosition)}u[f++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?vW:1)/2,pmin:K,pmax:ne}]}),u.sort(function(Z,V){return Z[0].posref-V[0].posref||o*(V[0].traceIndex-Z[0].traceIndex)});var _,w,T,b,M,C,k;function q(Z){var V=Z[0],Y=Z[Z.length-1];if(w=V.pmin-V.pos-V.dp+V.size,T=Y.pos+Y.dp+Y.size-V.pmax,w>.01){for(M=Z.length-1;M>=0;M--)Z[M].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(M=Z.length-1;M>=0;M--)Z[M].dp-=T;_=!1}if(_){var H=0;for(b=0;bV.pmax&&H++;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos>V.pmax-1&&(C.del=!0,H--);for(b=0;b=0;M--)Z[M].dp-=T;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos+C.dp+C.size>V.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+=w;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(T=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=T;_=!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],W=I.datum;W.offset=I.dp,W.del=I.del}}}function Ww(e,r){var t=0,a=e.offset;return r&&(a*=-dW,t=e.offset*hW),{x:t,y:a}}function bW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+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 Xw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=zo.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=bW(l),h=Ww(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*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+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 w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Cn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(Cn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Si.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 xW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Zi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Mt.castOption(n,t,h);return l(m)?m:Mt.extractOption({},a,"",d)}:function(h,d){return Mt.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=Mt.constrain(e.x0,0,e.xa._length),e.x1=Mt.constrain(e.x1,0,e.xa._length),e.y0=Mt.constrain(e.y0,0,e.ya._length),e.y1=Mt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ci.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:Ci.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=Ci.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ci.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=Ci.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ci.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 Hw(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=ra.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=zw.readability(h.color,v)<1.5?ra.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||g,b=Ci.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":w,stroke:T,"stroke-dasharray":Si.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).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=zw.readability(D.color,v)<1.5?ra.contrast(v):D.color,I=u.spikemode,W=u.spikethickness,Z=u.spikecolor||O,V=Ci.getPxPosition(e,u),Y,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(Y=V,H=z),I.indexOf("across")!==-1){var Q=u._counterDomainMin,K=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),K=Math.max(K,u.position)),Y=i.t+(1-K)*i.h,H=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W,stroke:Z,"stroke-dasharray":Si.dashStyle(u.spikedash,W)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:V-(u.side!=="top"?W:-W),r:W,fill:Z}).classed("spikeline",!0)}}}function _W(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 Ow(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Bw(e,r){return Cn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Jw=e=>e.offsetLeft+e.clientLeft;function ru(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Mt.apply3DTransform(t._invTransform)(n,i),u=Mt.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 ih=J((Ose,Kw)=>{"use strict";var TW=Ie(),MW=Er(),AW=_i().isUnifiedHover;Kw.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&&AW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=MW.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),TW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var $w=J((Bse,Qw)=>{"use strict";var kW=Ie(),SW=ih(),CW=_s();Qw.exports=function(r,t){function a(n,i){return kW.coerce(r,t,CW,n,i)}SW(r,t,a)}});var rT=J((Yse,eT)=>{"use strict";var jw=Ie(),LW=Lv(),qW=ih();eT.exports=function(r,t,a,n){function i(o,s){return jw.coerce(r,t,LW,o,s)}var l=jw.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),qW(r,t,i,l)}});var Cy=J((Use,tT)=>{"use strict";var DW=Ie(),EW=_s();tT.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:DW.coerce(r,t,EW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var iT=J((Vse,nT)=>{"use strict";var aT=Ie(),PW=_s(),RW=Cy(),zW=ih();nT.exports=function(r,t){function a(f,v){return aT.coerce(r,t,PW,f,v)}var n=RW(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),zW(r,t,a),aT.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var sT=J((Gse,oT)=>{"use strict";var Ly=Ie(),lT=br();oT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Ly.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var FW=br(),IW=Sy().hover;uT.exports=function(r,t,a){var n=FW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&IW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Li=J((Xse,hT)=>{"use strict";var HW=Ir(),lh=Ie(),OW=ei(),Ef=_i(),cT=_s(),vT=Sy();hT.exports={moduleType:"component",name:"fx",constants:Ku(),schema:{layout:cT},attributes:Lv(),layoutAttributes:cT,supplyLayoutGlobalDefaults:$w(),supplyDefaults:rT(),supplyLayoutDefaults:iT(),calc:sT(),getDistanceFunction:Ef.getDistanceFunction,getClosest:Ef.getClosest,inbox:Ef.inbox,quadrature:Ef.quadrature,appendArrayPointValue:Ef.appendArrayPointValue,castHoverOption:YW,castHoverinfo:UW,hover:vT.hover,unhover:OW.unhover,loneHover:vT.loneHover,loneUnhover:BW,click:fT()};function BW(e){var r=lh.isD3Selection(e)?e:HW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function YW(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function UW(e,r,t){function a(n){return lh.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",a)}});var au=J(Ji=>{"use strict";Ji.selectMode=function(e){return e==="lasso"||e==="select"};Ji.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ji.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ji.selectingOrDrawing=function(e){return Ji.freeMode(e)||Ji.rectMode(e)}});var oh=J((Jse,dT)=>{"use strict";dT.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 sh=J((Kse,pT)=>{"use strict";pT.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 fh=J((Qse,mT)=>{"use strict";var uh=32;mT.exports={CIRCLE_SIDES:uh,i000:0,i090:uh/4,i180:uh/2,i270:uh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ch=J(($se,gT)=>{"use strict";var VW=Ie().strTranslate;function yT(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 GW(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 WW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return yT(e,t[r])}}function XW(e){return VW(e.xaxis._offset,e.yaxis._offset)}gT.exports={p2r:yT,r2p:GW,axValue:WW,getTransform:XW}});var ql=J(Ki=>{"use strict";var ZW=ym(),_T=fh(),nu=_T.CIRCLE_SIDES,qy=_T.SQRT2,wT=ch(),bT=wT.p2r,xT=wT.r2p,JW=[0,3,4,5,6,1,2],KW=[0,3,4,1,2];Ki.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var TT=Zt(),CT=au(),QW=CT.drawMode,$W=CT.openMode,iu=fh(),MT=iu.i000,AT=iu.i090,kT=iu.i180,ST=iu.i270,jW=iu.cos45,eX=iu.sin45,LT=ch(),hh=LT.p2r,Dl=LT.r2p,rX=_l(),tX=rX.clearOutline,dh=ql(),aX=dh.readPaths,nX=dh.writePaths,iX=dh.ellipseOver,lX=dh.fixDatesForPaths;function oX(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(!QW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var sX=au(),uX=sX.selectMode,fX=_l(),cX=fX.clearOutline,Dy=ql(),vX=Dy.readPaths,hX=Dy.writePaths,dX=Dy.fixDatesForPaths;ET.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(!uX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";PT.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 Pl=J(xa=>{"use strict";var qi=Rf(),RT=Ie(),El=dt();xa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};xa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};xa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};xa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};xa.extractPathCoords=function(e,r,t){var a=[],n=e.match(qi.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(qi.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};xa.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=xa.shapePositionToRange(r);l=function(s){var u=Qi(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=xa.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};xa.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=xa.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};xa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};xa.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}};xa.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}};xa.getPathString=function(e,r){let t=r.type,a=El.getRefType(r.xref),n=El.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,h,d,m,y,g,_;function w(P,z,F,O){var I;if(P)if(z==="domain")O?I=function(W){return P._offset+P._length*(1-W)}:I=function(W){return P._offset+P._length*W};else{let W=xa.shapePositionToRange(P);I=function(Z){return P._offset+P.r2p(W(Z,!0))},F==="path"&&P.type==="date"&&(I=xa.decodeDate(I))}else O?I=function(W){return i.t+i.h*(1-W)}:I=function(W){return i.l+i.w*W};return I}if(a==="array"?(h=[],l=r.xref.map(function(P){return El.getFromId(e,P)}),h=r.xref.map(function(P,z){return w(l[z],El.getRefType(P),t,!1)})):(l=El.getFromId(e,r.xref),h=w(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(P){return El.getFromId(e,P)}),d=r.yref.map(function(P,z){return w(o[z],El.getRefType(P),t,!0)})):(o=El.getFromId(e,r.yref),d=w(o,n,t,!0)),t==="path")return pX(r,h,d);if(a==="array")s=Qi(l[0],r.x0shift),u=Qi(l[1],r.x1shift),m=h[0](r.x0)+s,y=h[1](r.x1)+u;else if(s=Qi(l,r.x0shift),u=Qi(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=Qi(o[0],r.y0shift),v=Qi(o[1],r.y1shift),g=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=Qi(o,r.y0shift),v=Qi(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 T=(m+y)/2,b=(g+_)/2,M=Math.abs(T-m),C=Math.abs(b-g),k="A"+M+","+C,q=T+M+","+b,D=T+","+(b-C);return"M"+q+k+" 0 1,1 "+D+k+" 0 0,1 "+q+"Z"};function pX(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(qi.segmentRE,function(h){var d=0,m=h.charAt(0),y=qi.paramIsX[m],g=qi.paramIsY[m],_=qi.numParams[m];let w=y.drawn!==void 0,T=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var C=h.slice(1).replace(qi.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.*/,""),RT.log("Ignoring extra params in segment "+h)),w&&f++,T&&v++,m+C})}function Qi(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 Ry=J((nue,FT)=>{"use strict";var mX=Ie(),Di=dt(),zT=ya(),NT=at(),yX=ql().readPaths,Py=Pl(),gX=Py.getPathString,zf=Iv(),bX=Ma().FROM_TL;FT.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=Di.getFromId(r,a.xref),s=Di.getFromId(r,a.yref);let K=Array.isArray(a.xref),ne=Array.isArray(a.yref);for(var u in zf){var f=typeof zf[u]=="function",v=!K||zf.simpleXVariables.includes(u),h=!ne||zf.simpleYVariables.includes(u);if(f&&v&&h){var d=zf[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=mX.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),w=_.append("text").attr(g).classed("shape-label-text",!0).text(i),T,b,M,C;if(a.path){var k=gX(r,a),q=yX(k,r);T=1/0,M=1/0,b=-1/0,C=-1/0;for(var D=0;D=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function _X(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,_,w,T;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 wX=Ie(),TX=wX.strTranslate,IT=ei(),BT=au(),MX=BT.drawMode,YT=BT.selectMode,UT=br(),HT=Er(),yh=fh(),AX=yh.i000,kX=yh.i090,SX=yh.i180,CX=yh.i270,LX=_l(),VT=LX.clearOutlineControllers,Ny=ql(),mh=Ny.pointsOnRectangle,zy=Ny.pointsOnEllipse,qX=Ny.writePaths,DX=ph().newShapes,EX=ph().createShapeObj,PX=Ey(),RX=Ry();GT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(zy(r[0])||a.hasText)&&o({redrawing:!0})}function o(V){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=DX(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=PX(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&UT.call((V||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=MX(f),h=YT(f);(v||h)&&(i._fullLayout._outlining=!0),VT(i),t.attr("d",qX(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=zX([],r);var w=u.append("g").attr("class","outline-controllers");P(w),Z()}if(v&&a.hasText){var T=u.select(".label-temp"),b=EX(t,a,a.dragmode);RX(i,"label-temp",b,T)}function M(V){y=+V.srcElement.getAttribute("data-i"),g=+V.srcElement.getAttribute("data-j"),d[y][g].moveFn=C}function C(V,Y){if(r.length){var H=_[y][g][1],Q=_[y][g][2],K=r[y],ne=K.length;if(mh(K)){var pe=V,ye=Y;if(a.isActiveSelection){var Se=OT(K,g);Se[1]===K[g][1]?ye=0:pe=0}for(var re=0;re1&&!(V.length===2&&V[1][0]==="Z")&&(g===0&&(V[0][0]="M"),r[y]=V,l(),o())}}function D(V,Y){if(V===2){y=+Y.srcElement.getAttribute("data-i"),g=+Y.srcElement.getAttribute("data-j");var H=r[y];!mh(H)&&!zy(H)&&q()}}function P(V){d=[];for(var Y=0;Y{"use strict";var FX=Ir(),KT=br(),Iy=Ie(),Fo=dt(),IX=ql().readPaths,HX=gh(),xh=Ry(),QT=_l().clearOutlineControllers,Fy=Er(),_h=at(),OX=ct().arrayEditor,WT=ei(),XT=Cl(),Io=Rf(),$a=Pl(),Hy=$a.getPathString;eM.exports={draw:Oy,drawOne:$T,eraseActiveShape:VX,drawLabel:xh};function Oy(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;nFo.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 YX(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,_,w,T,b,M,C,k,q,D,P,z,F=FX.select(r.node().parentNode),O=Fo.getFromId(e,t.xref),I=Fo.getRefType(t.xref),W=Fo.getFromId(e,t.yref),Z=Fo.getRefType(t.yref),V=t.x0shift,Y=t.x1shift,H=t.y0shift,Q=t.y1shift,K=function(Re,Le){var Fe=$a.getDataToPixel(e,O,Le,!1,I);return Fe(Re)},ne=function(Re,Le){var Fe=$a.getDataToPixel(e,W,Le,!0,Z);return Fe(Re)},pe=$a.getPixelToData(e,O,!1,I),ye=$a.getPixelToData(e,W,!0,Z),Se=de(),re={element:Se.node(),gd:e,prepFn:Ae,doneFn:B,clickFn:$},Ce;WT.init(re),Se.node().onmousemove=ge;function de(){return f?be():r}function be(){var Re=10,Le=Math.max(t.line.width,Re),Fe=n.append("g").attr("data-index",a).attr("drag-helper",!0);Fe.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Oe={"fill-opacity":"0"},We=Math.max(Le/2,Re);return Fe.append("circle").attr({"data-line-point":"start-point",cx:s?K(t.xanchor)+t.x0:K(t.x0,V),cy:u?ne(t.yanchor)-t.y0:ne(t.y0,H),r:We}).style(Oe).classed("cursor-grab",!0),Fe.append("circle").attr({"data-line-point":"end-point",cx:s?K(t.xanchor)+t.x1:K(t.x1,Y),cy:u?ne(t.yanchor)-t.y1:ne(t.y1,Q),r:We}).style(Oe).classed("cursor-grab",!0),Fe}function ge(Re){if(bh(e)){Ce=null;return}if(f)Re.target.tagName==="path"?Ce="move":Ce=Re.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=re.element.getBoundingClientRect(),Fe=Le.right-Le.left,Oe=Le.bottom-Le.top,We=Re.clientX-Le.left,Pe=Re.clientY-Le.top,Be=!v&&Fe>l&&Oe>o&&!Re.shiftKey?WT.getCursor(We/Fe,1-Pe/Oe):"move";XT(r,Be),Ce=Be.split("-")[0]}}function Ae(Re){bh(e)||(s&&(_=K(t.xanchor)),u&&(w=ne(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:K(t.x0),m=u?t.y0:ne(t.y0),y=s?t.x1:K(t.x1),g=u?t.y1:ne(t.y1)),dg?(T=m,k="y0",b=g,q="y1"):(T=g,k="y1",b=m,q="y0"),ge(Re),ve(n,t),De(r,t,e),re.moveFn=Ce==="move"?U:le,re.altKey=Re.altKey)}function B(){bh(e)||(XT(r),me(n),jT(r,e,t),KT.call("_guiRelayout",e,i.getUpdateObj()))}function $(){bh(e)||me(n)}function U(Re,Le){if(t.type==="path"){var Fe=function(Pe){return Pe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(Be){return pe(K(Be)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(Be){return ye(ne(Be)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else s?h("xanchor",t.xanchor=pe(_+Re)):(h("x0",t.x0=pe(d+Re)),h("x1",t.x1=pe(y+Re))),u?h("yanchor",t.yanchor=ye(w+Le)):(h("y0",t.y0=ye(m+Le)),h("y1",t.y1=ye(g+Le)));r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function le(Re,Le){if(v){var Fe=function(Xe){return Xe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(lr){return pe(K(lr)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(lr){return ye(ne(lr)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else if(f){if(Ce==="resize-over-start-point"){var Pe=d+Re,Be=u?m-Le:m+Le;h("x0",t.x0=s?Pe:pe(Pe)),h("y0",t.y0=u?Be:ye(Be))}else if(Ce==="resize-over-end-point"){var Ge=y+Re,ie=u?g-Le:g+Le;h("x1",t.x1=s?Ge:pe(Ge)),h("y1",t.y1=u?ie:ye(ie))}}else{var xe=function(Xe){return Ce.indexOf(Xe)!==-1},Ke=xe("n"),hr=xe("s"),ze=xe("w"),Te=xe("e"),ke=Ke?T+Le:T,He=hr?b+Le:b,Je=ze?M+Re:M,Ve=Te?C+Re:C;u&&(Ke&&(ke=T-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))),Ve-Je>l&&(h(D,t[D]=s?Je:pe(Je)),h(P,t[P]=s?Ve:pe(Ve)))}r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function ve(Re,Le){(s||u)&&Fe();function Fe(){var Oe=Le.type!=="path",We=Re.selectAll(".visual-cue").data([0]),Pe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Be=K(s?Le.xanchor:Iy.midRange(Oe?[Le.x0,Le.x1]:$a.extractPathCoords(Le.path,Io.paramIsX))),Ge=ne(u?Le.yanchor:Iy.midRange(Oe?[Le.y0,Le.y1]:$a.extractPathCoords(Le.path,Io.paramIsY)));if(Be=$a.roundPositionForSharpStrokeRendering(Be,Pe),Ge=$a.roundPositionForSharpStrokeRendering(Ge,Pe),s&&u){var ie="M"+(Be-1-Pe)+","+(Ge-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var xe="M"+(Be-1-Pe)+","+(Ge-9-Pe)+"v18 h2 v-18 Z";We.attr("d",xe)}else{var Ke="M"+(Be-9-Pe)+","+(Ge-1-Pe)+"h18 v2 h-18 Z";We.attr("d",Ke)}}}function me(Re){Re.selectAll(".visual-cue").remove()}function De(Re,Le,Fe){var Oe=Le.xref,We=Le.yref,Pe=Fo.getFromId(Fe,Oe),Be=Fo.getFromId(Fe,We),Ge="";Oe!=="paper"&&!Pe.autorange&&(Ge+=Oe),We!=="paper"&&!Be.autorange&&(Ge+=We),_h.setClipUrl(Re,Ge?"clip"+Fe._fullLayout._uid+Ge:null,Fe)}}function ZT(e,r,t){return e.replace(Io.segmentRE,function(a){var n=0,i=a.charAt(0),l=Io.paramIsX[i],o=Io.paramIsY[i],s=Io.numParams[i],u=a.slice(1).replace(Io.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function UX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){JT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=JT,Oy(e)}}}function JT(e){if(wh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(QT(e),delete e._fullLayout._activeShapeIndex,Oy(e))}}function VX(e){if(wh(e)){QT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ln=br(),rM=Ht(),tM=Zt(),Ur=sh(),GX=Th().eraseActiveShape,Mh=Ie(),Nr=Mh._,Vr=uM.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"};Mh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Ln.call("downloadImage",e,t).then(function(a){Mh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){Mh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){rM.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){rM.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Na};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Na};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Na};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Na};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Na};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Na};Vr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Na};Vr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Na};Vr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Na};Vr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:GX};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Na};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Na};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Na};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Na};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:Na};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: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=tM.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 fM=Uy(),ZX=Object.keys(fM),cM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],vM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(cM),ou=[],JX=function(e){if(vM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ou.indexOf(r)===-1&&ou.push(r),ou.indexOf(t)===-1&&ou.push(t)}};ZX.forEach(function(e){JX(fM[e])});ou.sort();hM.exports={DRAW_MODES:cM,backButtons:vM,foreButtons:ou}});var Gy=J((fue,dM)=>{"use strict";var uue=Vy();dM.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 mM=J((cue,pM)=>{"use strict";var KX=Ie(),Nf=Er(),QX=ct(),$X=Gy();pM.exports=function(r,t){var a=r.modebar||{},n=QX.newContainer(t,"modebar");function i(o,s){return KX.coerce(a,n,$X,o,s)}i("orientation"),i("bgcolor",Nf.addOpacity(t.paper_bgcolor,.5));var l=Nf.contrast(Nf.rgb(t.modebar.bgcolor));i("color",Nf.addOpacity(l,.3)),i("activecolor",Nf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var xM=J((vue,bM)=>{"use strict";var Wy=Ir(),jX=Hr(),kh=Ie(),yM=sh(),eZ=yv().version,rZ=new DOMParser;function gM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ei=gM.prototype;Ei.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(),kh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ei.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)})};Ei.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ei.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&&Wy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||yM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ei.createIcon=function(e){var r=jX(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=rZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ei.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=Wy.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:kh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ei.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var nZ=Zt(),_M=ln(),Xy=br(),iZ=_i().isUnifiedHover,lZ=xM(),Sh=Uy(),oZ=Vy().DRAW_MODES,sZ=Ie().extendDeep;wM.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=dZ(i):!a.displayModeBar&&a.watermark?l=[]:l=uZ(r),n?n.update(r,l):t._modeBar=lZ(r,l)};function uZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,H){if(typeof H=="string"){if(H.toLowerCase()===Y.toLowerCase())return!0}else{var Q=H.name,K=H._cat||H.name;if(Q===Y||K===Y.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(Y){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"]:T?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(vZ(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"]),cZ(t)&&F.push("select2d","lasso2d");var O=[],I=function(Y){O.indexOf(Y)===-1&&P.indexOf(Y)!==-1&&O.push(Y)};if(Array.isArray(o)){for(var W=[],Z=0;Z{"use strict";MM.exports={moduleType:"component",name:"modebar",layoutAttributes:Gy(),supplyLayoutDefaults:mM(),manage:TM()}});var Jy=J((pue,AM)=>{"use strict";var pZ=Ma().FROM_BL;AM.exports=function(r,t,a){a===void 0&&(a=pZ[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 If=J(Ff=>{"use strict";var Ho=Ie(),Ky=xf(),ti=Zt().id2name,mZ=Qn(),kM=Jy(),yZ=E0(),gZ=Gt().ALMOST_EQUAL,bZ=Ma().FROM_BL;Ff.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 _Z(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lgZ*m&&!w)){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 Lh=Ir(),Fa=br(),cn=Ht(),qn=Ie(),jy=ya(),eg=oh(),Hf=Er(),su=at(),qM=gf(),zM=Zy(),Of=dt(),$i=Ma(),NM=If(),wZ=NM.enforce,TZ=NM.clean,DM=xf().doAutoRange,FM="start",MZ="middle",IM="end",AZ=jt().zindexSeparator;ta.layoutStyles=function(e){return qn.syncOrAsync([cn.doAutoMargin,SZ],e)};function kZ(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function SZ(e){var r=e._fullLayout,t=r._size,a=t.p,n=Of.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(su.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ta.drawMainTitle(e),zM.manage(e),!r._has("cartesian"))return cn.previousPromises(e);function v(Ae,B,$){var U=Ae._lw/2;if(Ae._id.charAt(0)==="x"){if(B){if($==="top")return B._offset-a-U}else return t.t+t.h*(1-(Ae.position||0))+U%1;return B._offset+B._length+a+U}if(B){if($==="right")return B._offset+B._length+a+U}else return t.l+t.w*(Ae.position||0)+U%1;return B._offset-a-U}for(i=0;i0){DZ(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,i);var f=(r.text.match(jy.BR_TAG_ALL)||[]).length;if(f){var v=$i.LINE_SPACING*f+$i.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=Lh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+qM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,y)}}}};function CZ(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=qn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return qn.isTopAnchor(r)&&t==="t"||qn.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=LZ(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function DZ(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"&&CZ(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),cn.allowAutoMargin(e,n),cn.autoMargin(e,n,o)}function EZ(e,r){var t=e.title,a=e._size,n=0;switch(r===FM?n=t.pad.l:r===IM&&(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 PZ(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===$i.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 RM(e){return e==="top"?$i.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":$i.MID_SHIFT+"em"}function RZ(e){var r=e.title,t=MZ;return qn.isRightAnchor(r)?t=IM:qn.isLeftAnchor(r)&&(t=FM),t}function zZ(e){var r=e.title,t="0em";return qn.isTopAnchor(r)?t=$i.CAP_SHIFT+"em":qn.isMiddleAnchor(r)&&(t=$i.MID_SHIFT+"em"),t}ta.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var NZ=ql().readPaths,FZ=gh(),HM=_l().clearOutlineControllers,rg=Er(),OM=at(),IZ=ct().arrayEditor,BM=Pl(),HZ=BM.getPathString;UM.exports={draw:Dh,drawOne:YM,activateLastSelection:YZ};function Dh(e){var r=e._fullLayout;HM(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(rg.stroke,v).call(rg.fill,f).call(OM.dashLine,g?"solid":d,g?4+h:h);if(OZ(_,e,a),m){var w=IZ(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=NZ(o,e);FZ(b,_,T)}else _.style("pointer-events",g?"all":"none");y[g]=_}var M=y[0],C=y[1];C.node().addEventListener("click",function(){return BZ(e,M)})}}function OZ(e,r,t){var a=t.xref+t.yref;OM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function BZ(e,r){if(Eh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){tg(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=tg,Dh(e)}}}function YZ(e){if(Eh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=tg,Dh(e)}}function tg(e){if(Eh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(HM(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var GM=J((bue,VM)=>{function UZ(){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}VM.exports=UZ});var XM=J((xue,WM)=>{function VZ(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}WM.exports=VZ});var JM=J((_ue,ZM)=>{var GZ={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}};ZM.exports=GZ});var QM=J((wue,KM)=>{var Bf=JM();function WZ(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=Bf.create();function l(m,y,g,_,w,T){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(g,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?w:T,_?T:w)?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=Bf.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 _=Bf.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=Bf.create();function _(W,Z){var V=W.seg.start,Y=W.seg.end,H=Z.seg.start,Q=Z.seg.end;return r.pointsCollinear(V,H,Q)?r.pointsCollinear(Y,H,Q)||r.pointAboveOrOnLine(Y,H,Q)?1:-1:r.pointAboveOrOnLine(V,H,Q)?1:-1}function w(W){return g.findTransition(function(Z){var V=_(W,Z.ev);return V>0})}function T(W,Z){var V=W.seg,Y=Z.seg,H=V.start,Q=V.end,K=Y.start,ne=Y.end;t&&t.checkIntersection(V,Y);var pe=r.linesIntersect(H,Q,K,ne);if(pe===!1){if(!r.pointsCollinear(H,Q,K)||r.pointsSame(H,ne)||r.pointsSame(Q,K))return!1;var ye=r.pointsSame(H,K),Se=r.pointsSame(Q,ne);if(ye&&Se)return Z;var re=!ye&&r.pointBetween(H,K,ne),Ce=!Se&&r.pointBetween(Q,K,ne);if(ye)return Ce?h(Z,Q):h(W,ne),Z;re&&(Se||(Ce?h(Z,Q):h(W,ne)),h(Z,H))}else pe.alongA===0&&(pe.alongB===-1?h(W,K):pe.alongB===0?h(W,pe.pt):pe.alongB===1&&h(W,ne)),pe.alongB===0&&(pe.alongA===-1?h(Z,H):pe.alongA===0?h(Z,pe.pt):pe.alongA===1&&h(Z,Q));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let W=function(){if(k){var Z=T(M,k);if(Z)return Z}return q?T(M,q):!1};var I=W;t&&t.segmentNew(M.seg,M.primary);var C=w(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=W();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(Bf.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)&&T(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 XZ(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,W,Z){return f.index=I,f.matches_head=W,f.matches_pt1=Z,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Yf(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 ZZ={union:function(e,r){return Yf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Yf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Yf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Yf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Yf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};eA.exports=ZZ});var aA=J((Aue,tA)=>{var JZ={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 KZ=GM(),QZ=XM(),nA=QM(),$Z=jM(),Uf=rA(),iA=aA(),Dn=!1,Vf=QZ(),ja;ja={buildLog:function(e){return e===!0?Dn=KZ():e===!1&&(Dn=!1),Dn===!1?!1:Dn.list},epsilon:function(e){return Vf.epsilon(e)},segments:function(e){var r=nA(!0,Vf,Dn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=nA(!1,Vf,Dn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Uf.union(e.combined,Dn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Uf.intersect(e.combined,Dn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Uf.difference(e.combined,Dn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Uf.differenceRev(e.combined,Dn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Uf.xor(e.combined,Dn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$Z(e.segments,Vf,Dn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return iA.toPolygon(ja,e)},polygonToGeoJSON:function(e){return iA.fromPolygon(ja,Vf,e)},union:function(e,r){return Gf(e,r,ja.selectUnion)},intersect:function(e,r){return Gf(e,r,ja.selectIntersect)},difference:function(e,r){return Gf(e,r,ja.selectDifference)},differenceRev:function(e,r){return Gf(e,r,ja.selectDifferenceRev)},xor:function(e,r){return Gf(e,r,ja.selectXor)}};function Gf(e,r,t){var a=ja.segments(e),n=ja.segments(r),i=ja.combine(a,n),l=t(i);return ja.polygon(l)}typeof window=="object"&&(window.PolyBool=ja);lA.exports=ja});var uA=J((Sue,sA)=>{sA.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 ig=J((Cue,fA)=>{"use strict";var ng=zv().dot,Ph=Gt().BADNUM,Rh=fA.exports={};Rh.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||_===Ph||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===Ph||gn||_===Ph||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],M=0,C,k,q,D,P;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(ng(v,u))>n)return!0;return!1};Rh.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 vA=J((Lue,cA)=>{"use strict";cA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var RA=J((que,PA)=>{"use strict";var hA=oA(),jZ=uA(),Zf=br(),eJ=at().dashStyle,Wf=Er(),rJ=Li(),tJ=_i().makeEventData,jf=au(),aJ=jf.freeMode,nJ=jf.rectMode,Jf=jf.drawMode,ug=jf.openMode,fg=jf.selectMode,dA=Pl(),pA=Rf(),xA=gh(),_A=_l().clearOutline,wA=ql(),lg=wA.handleEllipse,iJ=wA.readPaths,lJ=ph().newShapes,oJ=Ey(),sJ=ag().activateLastSelection,Nh=Ie(),uJ=Nh.sorterAsc,TA=ig(),Xf=Xv(),En=Zt().getFromId,fJ=oh(),cJ=qh().redrawReglTraces,Fh=vA(),Pi=Fh.MINSELECT,vJ=TA.filter,cg=TA.tester,vg=ch(),mA=vg.p2r,hJ=vg.axValue,dJ=vg.getTransform;function hg(e){return e.subplot!==void 0}function pJ(e,r,t,a,n){var i=!hg(a),l=aJ(n),o=nJ(n),s=ug(n),u=Jf(n),f=fg(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,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=dJ(T),M=r-w.left,C=t-w.top;y._calcInverseTransform(m);var k=Nh.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],W=O._length,Z=I._length,V=e.altKey&&!(Jf(n)&&s),Y,H,Q,K,ne,pe,ye;AA(e,m,a),l&&(Y=vJ([[M,C]],Fh.BENDPX));var Se=_.selectAll("path.select-outline-"+T.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)",de=re.line.color||(i?Wf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Se.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":eJ(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Wf.stroke,de).call(Wf.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:Wf.background,stroke:Wf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ge=_.select(".label-temp");ge.empty()&&(ge=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=y._uid+Fh.SELECTID,B=[],$=Ih(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=O._id,ve=I._id;qA(m,le,ve,$);for(var me=(m.layout||{}).selections||[],De=[],Re=!1,Le=0;Le=0){m._fullLayout._deactivateShape(m);return}if(!u){var me=y.clickmode;Xf.done(Ae).then(function(){if(Xf.clear(Ae),le===2){for(Se.remove(),ne=0;ne<$.length;ne++)pe=$[ne],pe._module.selectPoints(pe,!1);if(Qf(m,$),Kf(a),mg(m),$.length){var De=$[0].xaxis,Re=$[0].yaxis;if(De&&Re){for(var Le=[],Fe=m._fullLayout.selections,Oe=0;Oe-1&&MA(ve,m,a.xaxes,a.yaxes,a.subplot,a,Se),me==="event"&&$f(m,void 0);rJ.click(m,ve,T.id)}).catch(Nh.error)}},a.doneFn=function(){be.remove(),Xf.done(Ae).then(function(){Xf.clear(Ae),!g&&K&&a.selectionDefs&&(K.subtract=V,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(g||u)&&Kf(a,g),a.doneFnCompleted&&a.doneFnCompleted(B),f&&$f(m,ye)}).catch(Nh.error)}}function MA(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,_,w,T,b,M;if(xJ(o)){AA(e,r,i),h=Ih(r,t,a,n);var C=_J(o,h),k=C.pointNumbers.length>0;if(k?wJ(h,C):TJ(h)&&(w=gA(C))){for(l&&l.remove(),M=0;M=0}function bJ(e){return e._fullLayout._activeSelectionIndex>=0}function Kf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;gJ(n)&&n._fullLayout._deactivateShape(n),bJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Jf(t),s=fg(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=lJ(u,e)),f&&Zf.call("_guiRelayout",n,{shapes:f});var v;s&&!hg(e)&&(v=oJ(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Zf.call("_guiRelayout",n,{selections:v}).then(function(){r&&sJ(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function yA(e){return e._id}function Ih(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(yA),l=t.map(yA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function wJ(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 Qf(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var le=bA(e,!0);if(le.length){var ve=le[0].xref,me=le[0].yref;if(ve&&me){var De=DA(le),Re=EA([En(e,ve,"x"),En(e,me,"y")]);Re(B,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:U&&$f(e,B),h._reselect=!1}if(!l&&h._deselect){var Le=h._deselect;o=Le.xref,s=Le.yref,kJ(o,s,f)||qA(e,o,s,a),U&&(B.points.length?$f(e,B):mg(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function AJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";zA.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 ec=J((Eue,NA)=>{"use strict";NA.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 uu=J((Rue,HA)=>{"use strict";var FA=yg(),IA=ma(),Hh=jt(),DJ=ct().templatedArray,Pue=ec();HA.exports=DJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:IA({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:FA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:FA.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",Hh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Hh.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",Hh.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:IA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Oh=J((zue,OA)=>{"use strict";OA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var YA=J((Nue,BA)=>{"use strict";BA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Oo=J((Fue,KA)=>{"use strict";var UA=h0().axisHoverFormat,{hovertemplateAttrs:EJ,texttemplateAttrs:PJ,templatefallbackAttrs:VA}=fo(),GA=pf(),RJ=ma(),WA=gi().dash,zJ=gi().pattern,NJ=at(),FJ=Oh(),rc=Wt().extendFlat,IJ=YA();function XA(e){return{valType:"any",dflt:0,editType:"calc"}}function ZA(e){return{valType:"any",editType:"calc"}}function JA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}KA.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:XA("x"),yperiod:XA("y"),xperiod0:ZA("x0"),yperiod0:ZA("y0"),xperiodalignment:JA("x"),yperiodalignment:JA("y"),xhoverformat:UA("x"),yhoverformat:UA("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:PJ(),texttemplatefallback:VA({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:EJ({},{keys:FJ.eventDataKeys}),hovertemplatefallback:VA(),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:rc({},WA,{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:IJ(!0),fillgradient:rc({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:zJ,marker:rc({symbol:{valType:"enumerated",values:NJ.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:rc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:rc({},WA,{arrayOk:!0}),editType:"calc"},GA("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"},GA("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:RJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gg=J((Hue,jA)=>{"use strict";var QA=uu(),$A=Oo().line,HJ=gi().dash,Bh=Wt().extendFlat,OJ=yi().overrideAll,BJ=ct().templatedArray,Iue=ec();jA.exports=OJ(BJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Bh({},QA.xref,{}),yref:Bh({},QA.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:$A.color,width:Bh({},$A.width,{min:1,dflt:1}),dash:Bh({},HJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ak=J((Oue,tk)=>{"use strict";var ek=Ie(),Yh=dt(),YJ=$n(),UJ=gg(),rk=Pl();tk.exports=function(r,t){YJ(r,t,{name:"selections",handleItemDefaults:VJ});for(var a=t.selections,n=0;n{"use strict";nk.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 tc=J((Yue,sk)=>{"use strict";var GJ=br(),lk=Ie(),ok=Zt();sk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=GJ.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 uk=ag(),ac=RA();fk.exports={moduleType:"component",name:"selections",layoutAttributes:gg(),supplyLayoutDefaults:ak(),supplyDrawNewSelectionDefaults:ik(),includeBasePlot:tc()("selections"),draw:uk.draw,drawOne:uk.drawOne,reselect:ac.reselect,prepSelect:ac.prepSelect,clearOutline:ac.clearOutline,clearSelectionsCache:ac.clearSelectionsCache,selectOnClick:ac.selectOnClick}});var Dk=J((Vue,qk)=>{"use strict";var Tg=Ir(),Pn=Ie(),ck=Pn.numberFormat,WJ=_n(),XJ=ay(),Uh=br(),xk=Pn.strTranslate,ZJ=ya(),vk=Er(),zl=at(),JJ=Li(),hk=dt(),KJ=Cl(),QJ=ei(),_k=au(),Vh=_k.selectingOrDrawing,$J=_k.freeMode,jJ=Ma().FROM_TL,eK=oh(),rK=qh().redrawReglTraces,tK=Ht(),xg=Zt().getFromId,aK=fu().prepSelect,nK=fu().clearOutline,iK=fu().selectOnClick,bg=Jy(),Mg=jt(),dk=Mg.MINDRAG,Ua=Mg.MINZOOM,pk=!0;function lK(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,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W,Z,V;t+=r.yaxis._shift;function Y(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var Te=r.overlays,ke=0;ke=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(wg(He),Te===2&&!f&&Ge(),u)Je.indexOf("select")>-1&&iK(ke,He,y,g,r.id,K),Je.indexOf("event")>-1&&JJ.click(He,ke,r.id);else if(Te===1&&f){var Ve=l?h:v,Xe=l==="s"||o==="w"?0:1,lr=Ve._name+".range["+Xe+"]",tr=oK(Ve,Xe),Qe="left",Ne="middle";if(Ve.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ve.side==="right"&&(Qe="right")):o==="e"&&(Qe="right"),He._context.showAxisRangeEntryBoxes&&Tg.select(Q).call(ZJ.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(tr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Qe,verticalAlign:Ne}).on("edit",function(ae){var oe=Ve.d2r(ae);oe!==void 0&&Uh.call("_guiRelayout",He,lr,oe)})}}QJ.init(K);var ye,Se,re,Ce,de,be,ge,Ae,B,$;function U(Te,ke,He){var Je=Q.getBoundingClientRect();ye=ke-Je.left,Se=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ve=Pn.apply3DTransform(e._fullLayout._invTransform)(ye,Se);ye=Ve[0],Se=Ve[1],re={l:ye,r:ye,w:0,t:Se,b:Se,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:WJ(e._fullLayout.plot_bgcolor).getLuminance(),de="M0,0H"+T+"V"+b+"H0V0",be=!1,ge="xy",$=!1,Ae=Mk(s,Ce,_,w,de),B=Ak(s,_,w)}function le(Te,ke){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(T,Z*Te+ye)),Je=Math.max(0,Math.min(b,V*ke+Se)),Ve=Math.abs(He-ye),Xe=Math.abs(Je-Se);re.l=Math.min(ye,He),re.r=Math.max(ye,He),re.t=Math.min(Se,Je),re.b=Math.max(Se,Je);function lr(){ge="",re.r=re.l,re.t=re.b,B.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ve>Ua||Xe>Ua?(ge="xy",Ve/T>Xe/b?(Xe=Ve*b/T,Se>Je?re.t=Se-Xe:re.b=Se+Xe):(Ve=Xe*T/b,ye>He?re.l=ye-Ve:re.r=ye+Ve),B.attr("d",Gh(re))):lr();else if(C.isSubplotConstrained)if(Ve>Ua||Xe>Ua){ge="xy";var tr=Math.min(re.l/T,(b-re.b)/b),Qe=Math.max(re.r/T,(b-re.t)/b);re.l=tr*T,re.r=Qe*T,re.b=(1-tr)*b,re.t=(1-Qe)*b,B.attr("d",Gh(re))}else lr();else!q||Xe0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(lr.maxallowed!==void 0&&P===(lr.range[0]1&&(tr.maxallowed!==void 0&&z===(tr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function uK(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Mk(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",xk(t,a)).attr("d",n+"Z")}function Ak(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vk.background,stroke:vk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xk(r,t)).attr("d","M0,0Z")}function kk(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"),Sk(e,r,n,i)}function Sk(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 wg(e){Tg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ck(e){pk&&e.data&&e._context.showTips&&(Pn.notifier(Pn._(e,"Double-click to zoom back out"),"long"),pk=!1)}function fK(e,r){return"M"+(e.l-.5)+","+(r-Ua-.5)+"h-3v"+(2*Ua+1)+"h3ZM"+(e.r+.5)+","+(r-Ua-.5)+"h3v"+(2*Ua+1)+"h-3Z"}function cK(e,r){return"M"+(r-Ua-.5)+","+(e.t-.5)+"v-3h"+(2*Ua+1)+"v3ZM"+(r-Ua-.5)+","+(e.b+.5)+"v3h"+(2*Ua+1)+"v-3Z"}function Gh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ua)/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 gk(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 vK=Ir(),Wh=Li(),hK=ei(),dK=Cl(),ai=Dk().makeDragBox,aa=jt().DRAGGERSIZE;Xh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){vK.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=ai(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]&&Wh.hover(r,h,i)},Wh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,hK.unhover(r,h))},r._context.showAxisDragHandles&&(ai(r,l,o._offset-aa,s._offset-aa,aa,aa,"n","w"),ai(r,l,o._offset+o._length,s._offset-aa,aa,aa,"n","e"),ai(r,l,o._offset-aa,s._offset+s._length,aa,aa,"s","w"),ai(r,l,o._offset+o._length,s._offset+s._length,aa,aa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=aa),ai(r,l,o._offset+o._length*.1,f,o._length*.8,aa,"","ew"),ai(r,l,o._offset,f,o._length*.1,aa,"","w"),ai(r,l,o._offset+o._length*.9,f,o._length*.1,aa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=aa),ai(r,l,v,s._offset+s._length*.1,aa,s._length*.8,"ns",""),ai(r,l,v,s._offset+s._length*.9,aa,s._length*.1,"s",""),ai(r,l,v,s._offset,aa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Wh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Wh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Xh.updateFx(r)}};Xh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";dK(r._draggers,t)}});var Rk=J((Wue,Pk)=>{"use strict";var Ek=br();Pk.exports=function(r){for(var t=Ek.layoutArrayContainers,a=Ek.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var pK=fl(),kg=Rv(),nc=uo(),mK=bp().sorterAsc,Sg=br();ic.containerArrayMatch=Rk();var yK=ic.isAddVal=function(r){return r==="add"||pK(r)},zk=ic.isRemoveVal=function(r){return r===null||r==="remove"};ic.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=Sg.getComponentMethod(l,"supplyLayoutDefaults"),s=Sg.getComponentMethod(l,"draw"),u=Sg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===kg||s===kg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&nc.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(zk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return nc.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(mK),y=t.get(),g=y||[],_=i(h,l).get(),w=[],T=-1,b=g.length,M,C,k,q,D,P,z,F;for(M=0;Mg.length-(z?0:1)){nc.warn("index out of range",l,k);continue}if(P!==void 0)D.length>1&&nc.warn("Insertion & removal are incompatible with edits to the same index.",l,k),zk(P)?w.push(k):z?(P==="add"&&(P={}),g.splice(k,0,P),_&&_.splice(k,0,{})):nc.warn("Unrecognized full object edit value",l,k,P),T===-1&&(T=k);else for(C=0;C=0;M--)g.splice(w[M],1),_&&_.splice(w[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==kg){var O;if(T===-1)O=m;else{for(b=Math.max(g.length,b),O=[],M=0;M=T));M++)O.push(k);for(M=T;M{"use strict";var Ok=Hr(),Bk=br(),Ia=Ie(),lc=Ht(),Yk=Zt(),Uk=Er(),oc=Yk.cleanId,gK=Yk.getFromTrace,Cg=Bk.traceIs,bK=["x","y","z"];Rn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ia.log("Clearing previous rejected promises from queue."),e._promises=[]};Rn.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=(lc.subplotsRegistry.cartesian||{}).attrRegex,n=(lc.subplotsRegistry.polar||{}).attrRegex,i=(lc.subplotsRegistry.ternary||{}).attrRegex,l=(lc.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"),Uk.clean(e),e.template&&e.template.layout&&Rn.cleanLayout(e.template.layout),e};function cu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=oc(a,n,!0))}Rn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Rn.hasParent=function(e,r){for(var t=Hk(r);t;){if(t in e)return!0;t=Hk(t)}return!1};Rn.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)?Lg(n,i):!1))return!1}return!0}return!1};Rn.collectionsAreEqual=Lg});var zg=J(Yr=>{"use strict";var Qh=Ir(),wK=Hr(),TK=Pp(),rr=Ie(),st=rr.nestedProperty,Eg=uf(),Va=M6(),zn=br(),nd=Fs(),xr=Ht(),Ha=dt(),MK=ty(),AK=Qn(),qg=at(),kK=Er(),SK=Ag().initInteractions,CK=xo(),LK=fu().clearOutline,Jk=so().dfltConfig,Jh=Nk(),It=Vk(),et=qh(),Nl=yi(),qK=jt().AX_NAME_PATTERN,Dg=0,Gk=5;function DK(e,r,t,a){var n;if(e=rr.getGraphDiv(e),Eg.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Eg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.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)}Qk(e,a),t||(t={}),Qh.select(e).classed("js-plotly-plot",!0),qg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(It.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=It.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(eQ(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),qg.initGradients(e),qg.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 $k(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]),jh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&jh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function NK(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("."),W=st(e.layout,I).get(),Z=st(a,I).get(),V=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:ji(V);var Y=nd.getLayoutValObject(a,q.parts);if(Y&&Y.impliedEdits&&D!==null)for(var H in Y.impliedEdits)T(rr.relativeAttr(k,H),Y.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var Q=k==="height"?"width":"height";T(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(O.match(oS))C(O),st(a,I+"._inputRange").set(null);else if(O.match(sS)){C(O),st(a,I+"._inputRange").set(null);var K=st(a,I).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else O.match(OK)&&st(a,I+"._inputDomain").set(null);if(F==="type"){M=W;var ne=Z.type==="linear"&&D==="log",pe=Z.type==="log"&&D==="linear";if(ne||pe){if(!M||!M.range)T(I+".autorange",!0);else if(Z.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&&T(I+".autorange",!0),ye<=0?ye=Se/1e6:Se<=0&&(Se=ye/1e6),T(I+".range[0]",Math.log(ye)/Math.LN10),T(I+".range[1]",Math.log(Se)/Math.LN10)):(T(I+".range[0]",Math.pow(10,ye)),T(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"],zn.getComponentMethod("annotations","convertCoords")(e,Z,D,T),zn.getComponentMethod("images","convertCoords")(e,Z,D,T)}else T(I+".autorange",!0),T(I+".range",null);st(a,I+"._inputRange").set(null)}else if(F.match(qK)){var re=st(a,k).get(),Ce=(D||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),zn.getComponentMethod("annotations","convertCoords")(e,re,Ce,T),zn.getComponentMethod("images","convertCoords")(e,re,Ce,T)}var de=Jh.containerArrayMatch(k);if(de){f=de.array,v=de.index;var be=de.property,ge=Y||{editType:"calc"};v!==""&&be===""&&(Jh.isAddVal(D)?w[k]=null:Jh.isRemoveVal(D)?w[k]=(st(t,f).get()||[])[v]:rr.warn("unrecognized full object value",r)),Nl.update(g,ge),u[f]||(u[f]={});var Ae=u[f][v];Ae||(Ae=u[f][v]={}),Ae[be]=D,delete r[k]}else F==="reverse"?(W.range?W.range.reverse():(T(I+".autorange",!0),W.range=[1,0]),Z.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&V!==!1||D!==!1&&V===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(V==="lasso"||V==="select")?g.plot=!0:Y?Nl.update(g,Y):g.calc=!0,q.set(D))}}for(f in u){var B=Jh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);B||(g.plot=!0)}for(var $ in b){M=Ha.getFromId(e,$);var U=M&&M._constraintGroup;if(U){g.calc=!0;for(var le in U)b[le]||(Ha.getFromId(e,le)._constraintShrinkable=!0)}}(fS(e)||r.height||r.width)&&(g.plot=!0);var ve=a.shapes;for(v=0;v1;)if(a.pop(),t=st(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function UK(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[I,W]of O)W.forEach(Z=>e.on(I,Z));return Yr.react(e,r,t,a)})}else{e.data=r||[],It.cleanData(e.data),e.layout=t||{},It.cleanLayout(e.layout),GK(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=ZK(e,s,h,d,m),g=y.newDataRevision,_=XK(e,o,v,d,m,g);if(fS(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function XK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Nl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=nd.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 w,T,b=[],M=r==null,C=Array.isArray(r),k=!M&&!C&&rr.isPlainObject(r);if(k)b.push({type:"object",data:_(rr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function KK(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.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(rr.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&&Dgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.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 Va&&Va.add(e,o,u,s,f),xr.modifyFrames(e,i)}function $K(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Eg.purge(e),r._container&&r._container.remove(),delete e._context,e}function jK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.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 eQ(e){var r=Qh.select(e),t=e._fullLayout;if(t._calcInverseTransform=jK,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={};Qh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(CK.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=JK;Yr.addFrames=KK;Yr.deleteFrames=QK;Yr.addTraces=aS;Yr.deleteTraces=nS;Yr.extendTraces=rS;Yr.moveTraces=Pg;Yr.prependTraces=tS;Yr.newPlot=zK;Yr._doPlot=DK;Yr.purge=$K;Yr.react=WK;Yr.redraw=RK;Yr.relayout=sc;Yr.restyle=ed;Yr.setPlotConfig=EK;Yr.update=td;Yr._guiRelayout=Rg(sc);Yr._guiRestyle=Rg(ed);Yr._guiUpdate=Rg(td);Yr._storeDirectGUIEdit=HK});var Bo=J(Ri=>{"use strict";var rQ=br();Ri.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Ri.getRedrawFunc=function(e){return function(){rQ.getComponentMethod("colorbar","draw")(e)}};Ri.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ri.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cS=window.URL||window.webkitURL;Ri.createObjectURL=function(e){return cS.createObjectURL(e)};Ri.revokeObjectURL=function(e){return cS.revokeObjectURL(e)};Ri.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=tQ(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Ri.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function tQ(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Fg=Ir(),Que=Ie(),aQ=at(),nQ=Er(),$ue=xo(),Ng=/"/g,fc="TOBESTRIPPED",iQ=new RegExp('("'+fc+")|("+fc+'")',"g");function lQ(e){var r=Fg.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 oQ(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vS.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(aQ.setRect,0,0,o,s).call(nQ.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var sQ=Ie(),uQ=e0().EventEmitter,cc=Bo();function fQ(e){var r=e.emitter||new uQ,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"||sQ.isSafari()?_=cc.encodeSVG(l):(g=cc.createBlob(l,"svg"),_=cc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var w;switch(g=null,cc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(g=null,cc.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},y.src=_});return e.promise?t:r}hS.exports=fQ});var Hg=J((rfe,mS)=>{"use strict";var dS=Hr(),pS=zg(),cQ=Ht(),zi=Ie(),vc=Bo(),vQ=ld(),hQ=od(),dQ=yv().version,Ig={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 pQ(e,r){r=r||{};var t,a,n,i;zi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=zi.getGraphDiv(e),t=zi.extendDeep([],e.data),a=zi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||zi.validate(r[C],Ig[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 "+zi.join2(Ig.format.values,", "," or ")+".");var o={};function s(C,k){return zi.coerce(r,o,Ig,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=zi.extendFlat({},a);f?g.width=f:r.width===null&&dS(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&dS(i.height)&&(g.height=i.height);var _=zi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=vc.getRedrawFunc(y);function T(){return new Promise(function(C){setTimeout(C,vc.getDelay(y._fullLayout))})}function b(){return new Promise(function(C,k){var q=vQ(y,u,h),D=y._fullLayout.width,P=y._fullLayout.height;function z(){pS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=cQ.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=dQ,F=JSON.stringify(F),z(),C(m?F:vc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:vc.encodeSVG(q));var O=document.createElement("canvas");O.id=zi.randstr(),hQ({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(vc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){pS.newPlot(y,t,g,_).then(w).then(T).then(b).then(function(q){C(M(q))}).catch(function(q){k(q)})})}mS.exports=pQ});var bS=J((tfe,gS)=>{"use strict";var Nn=Ie(),mQ=Ht(),yQ=Fs(),gQ=so().dfltConfig,ni=Nn.isPlainObject,Uo=Array.isArray,Og=Nn.isArrayOrTypedArray;gS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=yQ.get(),n=[],i={_context:Nn.extendFlat({},gQ)},l,o;Uo(r)?(i.data=Nn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(na("array","data"))),ni(t)?(i.layout=Nn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(na("object","layout"))),mQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(na("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(g);w&&(_=Math.min(_,g.length));var T,b,M,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Uo(f[b])){f[b].length>v[b].length&&a.push(na("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,g[b].length):q);T++)M=w?g[b][T]:g,C=f[b][T],k=v[b][T],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b,T),C,k)):a.push(na("value",n,u.concat(b,T),C))}else a.push(na("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)M=w?g[b]:g,C=f[b],k=v[b],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b),C,k)):a.push(na("value",n,u.concat(b),C))}else if(h.items&&!m&&Uo(f)){var D=g[Object.keys(g)[0]],P=[],z,F;for(z=0;z{"use strict";var AQ=Ie(),ud=Bo();function kQ(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=ud.createBlob(e,t),u=ud.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ud.revokeObjectURL(u),s=null,l(r);if(AQ.isSafari()){var f=t==="svg"?",":";base64,";return ud.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}xS.exports=kQ});var Bg=J((ife,TS)=>{"use strict";var wS=Ie(),SQ=Hg(),CQ=_S(),nfe=Bo();function LQ(e,r){var t;return wS.isPlainObject(e)||(t=wS.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=SQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),CQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}TS.exports=LQ});var CS=J(Yg=>{"use strict";var en=Ie(),rn=en.isPlainObject,MS=Fs(),AS=Ht(),qQ=Wn(),kS=ct(),SS=so().dfltConfig;Yg.makeTemplate=function(e){e=en.isPlainObject(e)?e:en.getGraphDiv(e),e=en.extendDeep({_context:SS},{data:e.data,layout:e.layout}),AS.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={};hc(d,m,EQ.bind(null,d));var y=en.coerce(d,{},qQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),hc(t,a.layout,DQ.bind(null,t)),delete a.layout.template;var n=t.template;if(rn(n)){var i=n.layout,l,o,s,u,f,v;rn(i)&&fd(i,a.layout);var h=n.data;if(rn(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 w(T,b){for(var M in T)if(M.charAt(0)!=="_"){var C=T[M],k=Fn(T,M,b);rn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&PQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(RQ)};function PQ(e){for(var r=0;r{"use strict";var Jt=zg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var zQ=ef().getGraphDiv,NQ=Th().eraseActiveShape;mt.deleteActiveShape=function(e){return NQ(zQ(e))};mt.toImage=Hg();mt.validate=bS();mt.downloadImage=Bg();var LS=CS();mt.makeTemplate=LS.makeTemplate;mt.validateTemplate=LS.validateTemplate});var Vg=J((sfe,DS)=>{"use strict";var Ug=Ie(),FQ=br();DS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=FQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ug.minRowLength(i);l?o=Math.min(u,Ug.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ug.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Gg=J((ufe,RS)=>{"use strict";var ES=Ie().dateTick0,IQ=Gt(),HQ=IQ.ONEWEEK;function PS(e,r){return e%HQ===0?ES(r,1):ES(r,0)}RS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",PS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",PS(o,t.ycalendar)),n("yperiodalignment"))}}});var FS=J((ffe,NS)=>{"use strict";var zS=["orientation","groupnorm","stackgaps"];NS.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 IS=Er(),HS=An().hasColorscale,OS=Bs(),OQ=ln();BS.exports=function(r,t,a,n,i,l={}){var o=OQ.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),HS(r,"marker")&&OS(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=IS.background:u=IS.defaultLine,i("marker.line.color",u),HS(r,"marker.line")&&OS(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 VS=J((vfe,US)=>{"use strict";var BQ=Ie().isArrayOrTypedArray,YQ=An().hasColorscale,UQ=Bs();US.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),YQ(r,"line"))UQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(BQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var WS=J((hfe,GS)=>{"use strict";GS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var ZS=J((dfe,XS)=>{"use strict";var VQ=Ie();XS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),VQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var QS=J((pfe,KS)=>{"use strict";var vd=Er(),JS=Ie().isArrayOrTypedArray;function GQ(e){for(var r=vd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var $S=Ie(),WQ=br(),XQ=Oo(),ZQ=Oh(),vu=ln(),JQ=Vg(),KQ=Gg(),QQ=FS(),$Q=YS(),jQ=VS(),jS=WS(),e$=ZS(),r$=QS(),t$=Ie().coercePattern;eC.exports=function(r,t,a,n){function i(d,m){return $S.coerce(r,t,XQ,d,m)}var l=JQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){KQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=QQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var a$=If().getAxisGroup;tC.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=a$(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 nC=J((gfe,aC)=>{"use strict";var n$=Ie(),i$=Wg(),l$=Oo();aC.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return n$.coerce(n._input,n,l$,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 lC=J((bfe,iC)=>{"use strict";var o$=Ie(),s$=i0();iC.exports=function(e,r){function t(n,i){return o$.coerce(e,r,s$,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Xg=J((xfe,sC)=>{"use strict";var u$=Hr(),oC=Ie(),f$=oC.dateTime2ms,hd=oC.incrementMonth,c$=Gt(),v$=c$.ONEAVGMONTH;sC.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(u$(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=f$(h,u)||0,m=[],y=[],g=[],_=n.length,w=0;w<_;w++){var T=n[w],b,M,C;if(o){for(b=Math.round((T-d)/(o*v$)),C=hd(d,o*b,u);C>T;)C=hd(C,-o,u);for(;C<=T;)C=hd(C,o,u);M=hd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;M=C-l}m[w]=f?M:v?C:(M+C)/2,y[w]=M,g[w]=C}return{vals:m,starts:y,ends:g}}});var cC=J((_fe,fC)=>{"use strict";var Zg=An().hasColorscale,Jg=y0(),uC=ln();fC.exports=function(r,t){uC.hasLines(t)&&Zg(t,"line")&&Jg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),uC.hasMarkers(t)&&(Zg(t,"marker")&&Jg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Zg(t,"marker.line")&&Jg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Kg=J((wfe,vC)=>{"use strict";var At=Ie();vC.exports=function(r,t){for(var a=0;a{"use strict";var hC=Ie();dC.exports=function(r,t){hC.isArrayOrTypedArray(t.selectedpoints)&&hC.tagSelected(r,t)}});var t2=J((Mfe,_C)=>{"use strict";var pC=Hr(),jg=Ie(),dc=dt(),mC=Xg(),$g=Gt().BADNUM,e2=ln(),h$=cC(),d$=Kg(),p$=Qg();function m$(e,r){var t=e._fullLayout,a=r._xA=dc.getFromId(e,r.xaxis||"x","x"),n=r._yA=dc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=mC(r,a,"x",i),s=mC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=r2(r,t,a,n),y=!1,g,_,w,T,b,M;bC(t,r);var C="x",k="y",q;if(m)jg.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=gC(r,v);yC(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(M=h[T].s,w=h.length-1;w>T;w--)h[w].s=M;for(;_{"use strict";wC.exports=dd;var y$=Ie().distinctVals;function dd(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";MC.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var s2=J((Sfe,CC)=>{"use strict";var In=Hr(),{isArrayOrTypedArray:el}=Ie(),{BADNUM:hu}=Gt(),g$=br(),mc=dt(),{getAxisGroup:b$}=If(),pd=TC(),{TEXTPAD:x$}=pc(),{LINE_SPACING:_$}=Ma(),{BR_TAG_ALL:w$}=ya();function T$(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||!In(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*_$*t+x$;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 P$(e,r,t,a){for(var n=du(a),i=0;i{"use strict";var LC=t2(),qC=s2().setGroupPositions;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;uD[f]&&f{"use strict";var F$=at(),NC=Gt(),yc=NC.BADNUM,FC=NC.LOG_CLIP,PC=FC+.5,RC=FC-.5,md=Ie(),I$=md.segmentsIntersect,zC=md.constrain,f2=Oh();IC.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",_=[],w=f2.minTolerance,T=r.length,b=new Array(T),M=0,C,k,q,D,P,z,F,O,I,W,Z,V,Y,H,Q,K;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===yc){if(l&&(oe=n.c2p(ae.x,!0)),oe===yc)return!1;o&&qe===yc&&(oe*=Math.abs(n._m*u*(n._m>0?PC:RC)/(i._m*s*(i._m>0?PC:RC)))),oe*=1e3}if(qe===yc){if(o&&(qe=i.c2p(ae.y,!0)),qe===yc)return!1;qe*=1e3}return[oe,qe]}function pe(Ne,ae,oe,qe){var Ee=oe-Ne,ar=qe-ae,cr=.5-Ne,sr=.5-ae,Mr=Ee*Ee+ar*ar,Br=Ee*cr+ar*sr;if(Br>0&&Br1||Math.abs(cr.y-oe[0][1])>1)&&(cr=[cr.x,cr.y],qe&&Ce(cr,Ne)ge||Ne[1]B)return[zC(Ne[0],be,ge),zC(Ne[1],Ae,B)]}function Oe(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===ge)||Ne[1]===ae[1]&&(Ne[1]===Ae||Ne[1]===B))return!0}function We(Ne,ae){var oe=[],qe=Fe(Ne),Ee=Fe(ae);return qe&&Ee&&Oe(qe,Ee)||(qe&&oe.push(qe),Ee&&oe.push(Ee)),oe}function Pe(Ne,ae,oe){return function(qe,Ee){var ar=Fe(qe),cr=Fe(Ee),sr=[];if(ar&&cr&&Oe(ar,cr))return sr;ar&&sr.push(ar),cr&&sr.push(cr);var Mr=2*md.constrain((qe[Ne]+Ee[Ne])/2,ae,oe)-((ar||qe)[Ne]+(cr||Ee)[Ne]);if(Mr){var Br;ar&&cr?Br=Mr>0==ar[Ne]>cr[Ne]?ar:cr:Br=ar||cr,Br[Ne]+=Mr}return sr}}var Be;m==="linear"||m==="spline"?Be=Le:m==="hv"||m==="vh"?Be=We:m==="hvh"?Be=Pe(0,be,ge):m==="vhv"&&(Be=Pe(1,Ae,B));function Ge(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Ee=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Ee>0?[qe>0?be:ge,B]:[qe>0?ge:be,Ae]}function ie(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[M-1][0],Ee=oe===b[M-1][1];if(!(qe&&Ee))if(M>1){var ar=ae===b[M-2][0],cr=oe===b[M-2][1];qe&&(ae===be||ae===ge)&&ar?cr?M--:b[M-1]=Ne:Ee&&(oe===Ae||oe===B)&&cr?ar?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([ve,me]),ie(Ne),De=null,ve=me=0}var Ke=md.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,U=Ne[0]ge?ge:0,le=Ne[1]B?B:0,U||le){if(!M)b[M++]=[U||Ne[0],le||Ne[1]];else if(De){var ae=Be(De,Ne);ae.length>1&&(xe(ae[0]),b[M++]=ae[1])}else Re=Be(b[M-1],Ne)[0],b[M++]=Re;var oe=b[M-1];U&&le&&(oe[0]!==U||oe[1]!==le)?(De&&(ve!==U&&me!==le?ie(ve&&me?Ge(De,Ne):[ve||U,me||le]):ve&&me&&ie([ve,me])),ie([U,le])):ve-U&&me-le&&ie([U||ve,le||me]),De=Ne,ve=U,me=le}else De&&xe(Be(De,Ne)[0]),b[M++]=Ne}for(C=0;Cre(z,ze))break;q=z,Y=I[0]*O[0]+I[1]*O[1],Y>Z?(Z=Y,D=z,F=!1):Y=r.length||!z)break;hr(z),k=z}}De&&ie([ve||De[0],me||De[1]]),_.push(b.slice(0,M))}var Te=m.slice(m.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var ke=!1,He=-1,Je=[],Ve=0;Ve<_.length;Ve++)for(var Xe=0;Xe<_[Ve].length-1;Xe++){var lr=_[Ve][Xe],tr=_[Ve][Xe+1],Qe=F$.applyBackoff(tr,lr);(Qe[0]!==tr[0]||Qe[1]!==tr[1])&&(ke=!0),Je[He+1]||(He++,Je[He]=[lr,[Qe[0],Qe[1]]])}return ke?Je:_}return _}});var YC=J((qfe,BC)=>{"use strict";var OC={tonextx:1,tonexty:1,tonext:1};BC.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 ii=Ir(),H$=br(),gc=Ie(),pu=gc.ensureSingle,VC=gc.identity,Lt=at(),mu=ln(),O$=HC(),B$=YC(),yd=ig().tester;GC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=B$(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(),Y$(r,o,t),f){l&&(s=l());var h=ii.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){UC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){UC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Y$(e,r,t){r.each(function(a){var n=pu(ii.select(this),"g","fills");Lt.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,VC);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=pu(ii.select(this),"path","js-fill")})})}function UC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;U$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=ii.select(i),g=pu(y,"g","errorbars"),_=pu(y,"g","lines"),w=pu(y,"g","points"),T=pu(y,"g","text");if(H$.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,W,Z="",V="",Y,H,Q,K,ne,pe,ye=[];d._polygons=[];var Se=[],re=[],Ce=gc.noop;if(b=d._ownFill,mu.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(Y=Lt.steps(m.shape),H=Lt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?Y=H=function(Pe){var Be=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Be[0]&&Pe[0][1]===Be[1]?Lt.smoothclosed(Pe.slice(1),m.smoothing):Lt.smoothopen(Pe,m.smoothing)}:Y=H=function(Pe){return"M"+Pe.join("L")},Q=function(Pe){return H(Pe.reverse())},re=O$(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 de=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;mu.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";XC.exports={container:"marker",min:"cmin",max:"cmax"}});var JC=J((Pfe,ZC)=>{"use strict";var gd=dt();ZC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=gd.getFromTrace(i,t,"x"),o=gd.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=gd.tickText(l,l.c2l(s),!0).text,n.yLabel=gd.tickText(o,o.c2l(u),!0).text,n}});var p2=J((Rfe,KC)=>{"use strict";var v2=Ir(),yu=at(),V$=br();function G$(e){var r=v2.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=v2.select(this),n=t.trace||t[0].trace;h2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=v2.select(this),n=t.trace||t[0].trace;d2(a,n,e)}),r.selectAll("g.trace path.js-line").call(yu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(yu.fillGroupStyle,e,!1),V$.getComponentMethod("errorbars","style")(r)}function h2(e,r,t){yu.pointStyle(e.selectAll("path.point"),r,t)}function d2(e,r,t){yu.textPointStyle(e.selectAll("text"),r,t)}function W$(e,r,t){var a=r[0].trace;a.selectedpoints?(yu.selectedPointStyle(t.selectAll("path.point"),a),yu.selectedTextStyle(t.selectAll("text"),a)):(h2(t,a,e),d2(t,a,e))}KC.exports={style:G$,stylePoints:h2,styleText:d2,styleOnSelect:W$}});var $C=J((zfe,QC)=>{"use strict";var gu=Er(),X$=ln();QC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&gu.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&&gu.opacity(i)?i:l&&gu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?gu.opacity(n)<.3?gu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&gu.opacity(a)&&X$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var rL=J((Nfe,eL)=>{"use strict";var bd=Ie(),jC=Li(),Z$=br(),J$=$C(),m2=Er(),K$=bd.fillText;eL.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(V){if(m){var Y=o.c2p(V.xStart),H=o.c2p(V.xEnd);return u>=Math.min(Y,H)&&u<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(o.c2p(V.x)-u);return ne=Math.min(Y,H)&&f<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(s.c2p(V.y)-f);return neye!=B>=ye&&(be=Ce[re-1][0],ge=Ce[re][0],B-Ae&&(de=be+(ge-be)*(ye-Ae)/(B-Ae),Q=Math.min(Q,de),K=Math.max(K,de)));return Q=Math.max(Q,0),K=Math.min(K,o._length),{x0:Q,x1:K,y0:ye,y1:ye}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=F(l._fillElement)&&!F(l._fillExclusionElement);if(I){var W=O(l._polygons);W===null&&(W={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var Z=m2.defaultLine;return m2.opacity(l.fillcolor)?Z=l.fillcolor:m2.opacity((l.line||{}).color)&&(Z=l.line.color),bd.extendFlat(r,{distance:r.maxHoverDistance,x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1,color:Z,hovertemplate:!1}),delete r.index,l.text&&!bd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var nL=J((Ffe,aL)=>{"use strict";var tL=ln();aL.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!tL.hasMarkers(o)&&!tL.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";iL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fL=J((Hfe,uL)=>{"use strict";var bc=br().traceIs,y2=zm();uL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Q$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Q$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=$$(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:!bc(i,"cartesian")||bc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,sL(i,a)){var u=oL(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(sL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function oL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sL(e,r){var t=oL(e),a=bc(e,"box-violin"),n=bc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var vL=J((Ofe,cL)=>{"use strict";var j$=an().isTypedArraySpec;function ej(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||j$(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=ej(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var pL=J((Bfe,dL)=>{"use strict";var hL=_n().mix,rj=mi(),tj=Ie();dL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return tj.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=hL(i,n.bgColor,n.blend||rj.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=hL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!g||!!_||!!w);T||(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 b2=J((Yfe,_L)=>{"use strict";var mL=Hr(),aj=br(),xc=Ie(),nj=ct(),ij=$n(),g2=Qn(),yL=nm(),gL=lm(),lj=um(),oj=fm(),sj=vL(),uj=pL(),fj=ty(),bL=E0(),xd=jt().WEEKDAY_PATTERN,cj=jt().HOUR_PATTERN;_L.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=aj.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=xc.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"),bL(t,i),fj(r,t,a,n),sj(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==g2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(oj(r,t,a,v,n),!u)return t;a("title.text",_),xc.coerceFont(a,"title.font",o,{overrideDflt:{size:xc.bigFont(o.size),color:g}}),yL(r,t,a,v);var w=n.hasMinor;if(w&&(nj.newContainer(t,"minor"),yL(r,t,a,v,{isMinor:!0})),lj(r,t,a,v,n),gL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,gL(r,t,a,n),n.isMinor=T}uj(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g2}),w&&!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(ij(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vj}),!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=xL(i[o]),s){l=xd;break}}var u=a("pattern",l);if(u===xd)for(o=0;o<2;o++)s=xL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case xd:if(!mL(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 cj:if(!mL(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 dj=Hr(),_d=Ie();wL.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||(dj(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=_d.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=_d.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var w=a("autoshift");w&&(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 T=!1;if(l.length&&(T=_d.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),_d.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var DL=J((Vfe,qL)=>{"use strict";var Vo=Ie(),TL=Er(),pj=_i().isUnifiedHover,mj=Cy(),ML=ct(),yj=ks(),AL=Qn(),gj=fL(),kL=b2(),bj=If(),SL=x2(),w2=Zt(),Ni=w2.id2name,CL=w2.name2id,xj=jt().AX_ID_PATTERN,LL=br(),wd=LL.traceIs,_2=LL.getComponentMethod;function Td(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}qL.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 _j=Ir(),EL=br(),Md=Ie(),vn=at(),Ad=dt();PL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ad.redrawComponents(r);return}function l(g){var _=g.xaxis,w=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(vn.setTranslate,0,0).call(vn.setScale,1,1),g.plot.call(vn.setTranslate,_._offset,w._offset).call(vn.setScale,1,1);var T=g.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(vn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(vn.setTextPointsScale,1,1),T.call(vn.hideOutsideRangePoints,g)}function o(g,_){var w=g.plotinfo,T=w.xaxis,b=w.yaxis,M=T._length,C=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var P=Md.simpleMap(g.xr0,T.r2l),z=Md.simpleMap(g.xr1,T.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),T.range[0]=T.l2r(P[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(P[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=M;if(q){var I=Md.simpleMap(g.yr0,b.r2l),W=Md.simpleMap(g.yr1,b.r2l),Z=I[1]-I[0],V=W[1]-W[0];D[1]=(I[1]*(1-_)+_*W[1]-I[1])/(I[0]-I[1])*C,D[3]=C*(1-_+_*V/Z),b.range[0]=T.l2r(I[0]*(1-_)+_*W[0]),b.range[1]=b.l2r(I[1]*(1-_)+_*W[1])}else D[1]=0,D[3]=C;Ad.drawOne(r,T,{skipTitle:!0}),Ad.drawOne(r,b,{skipTitle:!0}),Ad.redrawComponents(r,[T._id,b._id]);var Y=k?M/D[2]:1,H=q?C/D[3]:1,Q=k?D[0]:0,K=q?D[1]:0,ne=k?D[0]/D[2]*M:0,pe=q?D[1]/D[3]*C:0,ye=T._offset-ne,Se=b._offset-pe;w.clipRect.call(vn.setTranslate,Q,K).call(vn.setScale,1/Y,1/H),w.plot.call(vn.setTranslate,ye,Se).call(vn.setScale,Y,H),vn.setPointGroupScale(w.zoomScalePts,1/Y,1/H),vn.setTextPointsScale(w.zoomScaleTxt,1/Y,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 Cd=J(Sa=>{"use strict";var Sd=Ir(),zL=br(),Go=Ie(),wj=Ht(),Tj=at(),NL=Yp().getModuleCalcData,Fl=Zt(),li=jt(),Mj=xo(),Xr=Go.ensureSingle;function kd(e,r,t){return Go.ensureSingle(e,r,t,function(a){a.datum(t)})}var Wo=li.zindexSeparator;Sa.name="cartesian";Sa.attr=["xaxis","yaxis"];Sa.idRoot=["x","y"];Sa.idRegex=li.idRegex;Sa.attrRegex=li.attrRegex;Sa.attributes=lL();Sa.layoutAttributes=Qn();Sa.supplyLayoutDefaults=DL();Sa.transitionAxes=RL();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(Wo)!==-1)continue;d+=Wo+(u+1),h=Go.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(M+=Wo+b),T.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||(kd(r.minorGridlayer,"g",r.xaxis._id),kd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort),kd(r.gridlayer,"g",r.xaxis._id),kd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function HL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Sd.select(this);f.remove(),OL(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 Ld=ln();BL.exports={hasLines:Ld.hasLines,hasMarkers:Ld.hasMarkers,hasText:Ld.hasText,isBubble:Ld.isBubble,attributes:Oo(),layoutAttributes:i0(),supplyDefaults:rC(),crossTraceDefaults:nC(),supplyLayoutDefaults:lC(),calc:t2().calc,crossTraceCalc:EC(),arraysToCalcdata:Kg(),plot:WC(),colorbar:c2(),formatLabels:JC(),style:p2().style,styleOnSelect:p2().styleOnSelect,hoverPoints:rL(),selectPoints:nL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var GL=J((Zfe,VL)=>{"use strict";var kj=Ir(),Sj=Er(),UL=yg(),T2=Ie(),Cj=T2.strScale,Lj=T2.strRotate,qj=T2.strTranslate;VL.exports=function(r,t,a){var n=r.node(),i=UL[a.arrowhead||0],l=UL[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,w=d.y-m.y;if(y=Math.atan2(w,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){I();return}if(v){if(v*v>_*_+w*w){I();return}var T=v*Math.cos(y),b=v*Math.sin(y);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){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 WL=Ir(),M2=br(),Dj=Ht(),Hl=Ie(),A2=Hl.strTranslate,wc=dt(),Xo=Er(),rl=at(),XL=Li(),k2=ya(),S2=Cl(),_c=ei(),Ej=ct().arrayEditor,Pj=GL();KL.exports={draw:Rj,drawOne:ZL,drawRaw:JL};function Rj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ee="right":Ee="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ee]}for(var Ae=!1,B=["x","y"],$=0;$1)&&(ve===le?(ze=me.r2fraction(r["a"+U]),(ze<0||ze>1)&&(Ae=!0)):Ae=!0),Be=me._offset+me.r2p(r[U]),xe=.5}else{var Te=hr==="domain";U==="x"?(ie=r[U],Be=Te?me._offset+me._length*ie:Be=o.l+o.w*ie):(ie=1-r[U],Be=Te?me._offset+me._length*ie:Be=o.t+o.h*ie),xe=r.showarrow?.5:ie}if(r.showarrow){Pe.head=Be;var ke=r["a"+U];if(Ke=Re*ge(.5,r.xanchor)-Le*ge(.5,r.yanchor),ve===le){var He=wc.getRefType(ve);He==="domain"?(U==="y"&&(ke=1-ke),Pe.tail=me._offset+me._length*ke):He==="paper"?U==="y"?(ke=1-ke,Pe.tail=o.t+o.h*ke):Pe.tail=o.l+o.w*ke:Pe.tail=me._offset+me.r2p(ke),Ge=Ke}else Pe.tail=Be+ke,Ge=Ke+ke;Pe.text=Pe.tail+Ke;var Je=l[U==="x"?"width":"height"];if(le==="paper"&&(Pe.head=Hl.constrain(Pe.head,1,Je-1)),ve==="pixel"){var Ve=-Math.max(Pe.tail-3,Pe.text),Xe=Math.min(Pe.tail+3,Pe.text)-Je;Ve>0?(Pe.tail+=Ve,Pe.text+=Ve):Xe>0&&(Pe.tail-=Xe,Pe.text-=Xe)}Pe.tail+=We,Pe.head+=We}else Ke=Fe*ge(xe,Oe),Ge=Ke,Pe.text=Be+Ke;Pe.text+=We,Ke+=We,Ge+=We,r["_"+U+"padplus"]=Fe/2+Ge,r["_"+U+"padminus"]=Fe/2-Ge,r["_"+U+"size"]=Fe,r["_"+U+"shift"]=Ke}if(Ae){k.remove();return}var lr=0,tr=0;if(r.align!=="left"&&(lr=(re-ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(tr=(Ce-Se)*(r.valign==="middle"?.5:1)),ne)K.select("svg").attr({x:P+lr-1,y:P+tr}).call(rl.setClipUrl,F?y:null,e);else{var Qe=P+tr-pe.top,Ne=P+lr-pe.left;Z.call(k2.positionText,Ne,Qe).call(rl.setClipUrl,F?y:null,e)}O.select("rect").call(rl.setRect,P,P,re,Ce),z.call(rl.setRect,q/2,q/2,de-q,be-q),k.call(rl.setTranslate,Math.round(g.x.text-de/2),Math.round(g.y.text-be/2)),T.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Ee){w.selectAll(".annotation-arrow-g").remove();var ar=g.x.head,cr=g.y.head,sr=g.x.tail+qe,Mr=g.y.tail+Ee,Br=g.x.text+qe,$r=g.y.text+Ee,it=Hl.rotationXYMatrix(_,Br,$r),_t=Hl.apply2DTransform(it),yt=Hl.apply2DTransform2(it),Dt=+z.attr("width"),Kt=+z.attr("height"),qa=Br-.5*Dt,sa=qa+Dt,ua=$r-.5*Kt,vr=ua+Kt,lt=[[qa,ua,qa,vr],[qa,vr,sa,vr],[sa,vr,sa,ua],[sa,ua,qa,ua]].map(yt);if(!lt.reduce(function(wt,ca){return wt^!!Hl.segmentsIntersect(ar,cr,ar+1e6,cr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){lt.forEach(function(wt){var ca=Hl.segmentsIntersect(sr,Mr,ar,cr,wt[0],wt[1],wt[2],wt[3]);ca&&(sr=ca.x,Mr=ca.y)});var Zr=r.arrowwidth,ft=r.arrowcolor,St=r.arrowside,bt=w.append("g").style({opacity:Xo.opacity(ft)}).classed("annotation-arrow-g",!0),Qr=bt.append("path").attr("d","M"+sr+","+Mr+"L"+ar+","+cr).style("stroke-width",Zr+"px").call(Xo.stroke,Xo.rgb(ft));if(Pj(Qr,St,r),s.annotationPosition&&Qr.node().parentNode&&!a){var fa=ar,mn=cr;if(r.standoff){var Qt=Math.sqrt(Math.pow(ar-sr,2)+Math.pow(cr-Mr,2));fa+=r.standoff*(sr-ar)/Qt,mn+=r.standoff*(Mr-cr)/Qt}var hi=bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-fa)+","+(Mr-mn),transform:A2(fa,mn)}).style("stroke-width",Zr+6+"px").call(Xo.stroke,"rgba(0,0,0,0)").call(Xo.fill,"rgba(0,0,0,0)"),yn,Ct;_c.init({element:hi.node(),gd:e,prepFn:function(){var wt=rl.getTranslate(k);yn=wt.x,Ct=wt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(wt,ca){var Kl=_t(yn,Ct),Ql=Kl[0]+wt,ol=Kl[1]+ca;k.call(rl.setTranslate,Ql,ol),d("x",Il(n,wt,"x",o,r)),d("y",Il(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Il(n,wt,"ax",o,r)),r.ayref===r.yref&&d("ay",Il(i,ca,"ay",o,r)),bt.attr("transform",A2(wt,ca)),T.attr({transform:"rotate("+_+","+Ql+","+ol+")"})},doneFn:function(){M2.call("_guiRelayout",e,m());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;_c.init({element:k.node(),gd:e,prepFn:function(){oe=T.attr("transform")},moveFn:function(qe,Ee){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Il(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Il(i,Ee,"ay",o.w,r)):d("ay",r.ay+Ee),ae(qe,Ee);else{if(a)return;var cr,sr;if(n)cr=Il(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=_c.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)sr=Il(i,Ee,"y",o,r);else{var $r=r._ysize/o.h,it=r.y-(r._yshift+r.yshift)/o.h-$r/2;sr=_c.align(it-Ee/o.h,$r,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&(ar=_c.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}T.attr({transform:A2(qe,Ee)+oe}),S2(k,ar)},clickFn:function(qe,Ee){r.captureevents&&e.emit("plotly_clickannotation",C(Ee))},doneFn:function(){S2(k),M2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?Z.call(k2.makeEditable,{delegate:k,gd:e}).call(V).on("edit",function(H){r.text=H,this.call(V),d("text",H),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),M2.call("_guiRelayout",e,m())}):Z.call(V)}});var tq=J((Kfe,rq)=>{"use strict";var QL=Ie(),zj=br(),$L=ct().arrayEditor;rq.exports={hasClickToShow:Nj,onClick:Fj};function Nj(e,r){var t=eq(e,r);return t.on.length>0||t.explicitOff.length>0}function Fj(e,r){var t=eq(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 C2=Ie(),bu=Er();aq.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=bu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),C2.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:bu.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||(bu.opacity(i)?bu.rgb(i):bu.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||bu.contrast(g)),w=C2.extendFlat({},y.font);w.color||(w.color=_),C2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var iq=J(($fe,nq)=>{"use strict";var q2=Ie(),Zo=dt(),Ij=$n(),Hj=L2(),Oj=uu();nq.exports=function(r,t){Ij(r,t,{name:"annotations",handleItemDefaults:Bj})};function Bj(e,r,t){function a(T,b){return q2.coerce(e,r,Oj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Hj(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=Zo.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Zo.getFromId(u,h);d._annIndices.push(r._index)}if(Zo.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Zo.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Zo.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(q2.noneOrAll(e,r,["x","y"]),l&&q2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Zo.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Zo.cleanPosition(w,u,r.yref)}}}});var sq=J((jfe,oq)=>{"use strict";var D2=Ie(),Jo=dt(),Yj=qd().draw;oq.exports=function(r){var t=r._fullLayout,a=D2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D2.syncOrAsync([Yj,Uj],r)};function Uj(e){var r=e._fullLayout;D2.filterVisible(r.annotations).forEach(function(t){var a=Jo.getFromId(e,t.xref),n=Jo.getFromId(e,t.yref),i=Jo.getRefType(t.xref),l=Jo.getRefType(t.yref);t._extremes={},i==="range"&&lq(t,a),l==="range"&&lq(t,n)})}function lq(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 w=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Jo.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var fq=J((ece,uq)=>{"use strict";var Vj=Hr(),Gj=Sv();uq.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=Gj(m,t.range):y=Math.pow(10,m),Vj(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var E2=qd(),cq=tq();vq.exports={moduleType:"component",name:"annotations",layoutAttributes:uu(),supplyLayoutDefaults:iq(),includeBasePlot:tc()("annotations"),calcAutorange:sq(),draw:E2.draw,drawOne:E2.drawOne,drawRaw:E2.drawRaw,hasClickToShow:cq.hasClickToShow,onClick:cq.onClick,convertCoords:fq()}});var Dd=J((tce,dq)=>{"use strict";var ut=uu(),Wj=yi().overrideAll,Xj=ct().templatedArray;dq.exports=Wj(Xj("annotation",{visible:ut.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ut.xanchor,xshift:ut.xshift,yanchor:ut.yanchor,yshift:ut.yshift,text:ut.text,textangle:ut.textangle,font:ut.font,width:ut.width,height:ut.height,opacity:ut.opacity,align:ut.align,valign:ut.valign,bgcolor:ut.bgcolor,bordercolor:ut.bordercolor,borderpad:ut.borderpad,borderwidth:ut.borderwidth,showarrow:ut.showarrow,arrowcolor:ut.arrowcolor,arrowhead:ut.arrowhead,startarrowhead:ut.startarrowhead,arrowside:ut.arrowside,arrowsize:ut.arrowsize,startarrowsize:ut.startarrowsize,arrowwidth:ut.arrowwidth,standoff:ut.standoff,startstandoff:ut.startstandoff,hovertext:ut.hovertext,hoverlabel:ut.hoverlabel,captureevents:ut.captureevents}),"calc","from-root")});var mq=J((ace,pq)=>{"use strict";var P2=Ie(),Zj=dt(),Jj=$n(),Kj=L2(),Qj=Dd();pq.exports=function(r,t,a){Jj(r,t,{name:"annotations",handleItemDefaults:$j,fullLayout:a.fullLayout})};function $j(e,r,t,a){function n(o,s){return P2.coerce(e,r,Qj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Zj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Kj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P2.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),P2.noneOrAll(e,r,["ax","ay"])))}});var xq=J((nce,bq)=>{"use strict";var yq=Ie(),gq=dt();bq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function R2(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 eee(e,r){var t=R2(e.projection,R2(e.view,R2(e.model,[r[0],r[1],r[2],1])));return t}_q.exports=eee});var Mq=J((lce,Tq)=>{"use strict";var ree=qd().drawRaw,tee=wq(),aee=["x","y","z"];Tq.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=tee(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),ree(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Sq=J((oce,kq)=>{"use strict";var nee=br(),Aq=Ie();kq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Dd()}}},layoutAttributes:Dd(),handleDefaults:mq(),includeBasePlot:iee,convert:xq(),draw:Mq()};function iee(e,r){var t=nee.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var sce=jt(),Cq=ma(),Lq=Oo().line,lee=gi().dash,oi=Wt().extendFlat,oee=ct().templatedArray,uce=ec(),xu=Wn(),qq=uu(),{shapeTexttemplateAttrs:see,templatefallbackAttrs:uee}=fo(),fee=Iv();Dq.exports=oee("shape",{visible:oi({},xu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:oi({},xu.legend,{editType:"calc+arraydraw"}),legendgroup:oi({},xu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:oi({},xu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Cq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:oi({},xu.legendrank,{editType:"calc+arraydraw"}),legendwidth:oi({},xu.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:oi({},qq.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:oi({},qq.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:oi({},Lq.color,{editType:"arraydraw"}),width:oi({},Lq.width,{editType:"calc+arraydraw"}),dash:oi({},lee,{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:see({},{keys:Object.keys(fee)}),texttemplatefallback:uee({editType:"arraydraw"}),font:Cq({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 Pq=J((cce,Eq)=>{"use strict";var _u=Ie(),hn=dt(),cee=$n(),vee=z2(),Tc=Pl();Eq.exports=function(r,t){cee(r,t,{name:"shapes",handleItemDefaults:dee})};function hee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function dee(e,r,t){function a(T,b){return _u.coerce(e,r,vee,T,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),_u.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(T=>{var b=T+"anchor",M=T==="x"?v:h,C={_fullLayout:t},k,q,D,P;let z=T+"ref",F=e[z];if(Array.isArray(F)&&F.length>0){let O=Tc.countDefiningCoords(s,l,T);P=hn.coerceRefArray(e,r,C,T,void 0,"paper",O),r["_"+T+"refArray"]=!0}else P=hn.coerceRef(e,r,C,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){hn.getRefType(O)==="range"&&(k=hn.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];hn.getRefType(I)==="range"?(k=hn.getFromId(C,I),q=Tc.shapePositionToRange(k),D=Tc.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(T+O+"shift")):q=D=_u.identity;let Z=T+O,V=e[Z];if(e[Z]=q(e[Z],!0),M==="pixel"?a(Z,m[O]):hn.coercePosition(r,C,a,I,Z,d[O]),r[Z]=D(r[Z]),e[Z]=V,O===0&&M==="pixel"){let Y=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,I,b,.25),r[b]=D(r[b]),e[b]=Y}});else{if(hn.getRefType(P)==="range"?(k=hn.getFromId(C,P),k._shapeIndices.push(r._index),D=Tc.rangeToShapePosition(k),q=Tc.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):q=D=_u.identity,u){let I=T+"0",W=T+"1",Z=e[I],V=e[W];e[I]=q(e[I],!0),e[W]=q(e[W],!0),M==="pixel"?(a(I,m[0]),a(W,m[1])):(hn.coercePosition(r,C,a,P,I,d[0]),hn.coercePosition(r,C,a,P,W,d[1])),r[I]=D(r[I]),r[W]=D(r[W]),e[I]=Z,e[W]=V}if(M==="pixel"){let I=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,P,b,.25),r[b]=D(r[b]),e[b]=I}}}),u&&_u.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 w=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",hee(y,w)),a("label.padding"),_u.coerceFont(a,"label.font",t.font)}}});var Nq=J((vce,zq)=>{"use strict";var pee=Er(),Rq=Ie();function mee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}zq.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"),Rq.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",pee.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",mee(l,u)),a("newshape.label.padding"),Rq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Uq=J((hce,Yq)=>{"use strict";var N2=Ie(),Hn=dt(),Fi=Rf(),F2=Pl();Yq.exports=function(r){var t=r._fullLayout,a=N2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Iq(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=Hn.getFromId(r,i.xref),o=Oq(l,i,Fi.paramIsX),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Iq(i))));if(u==="array"){let f=Fq(r,i,"y");Object.entries(f).forEach(([v,h])=>{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Hq(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=Hn.getFromId(r,i.yref),o=Oq(l,i,Fi.paramIsY),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Hq(i))))}};function Fq(e,r,t){let a=r[t+"ref"],n=t==="x"?Fi.paramIsX:Fi.paramIsY;function i(v,h){v==="paper"||Hn.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(h))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(Fi.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=Hn.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=F2.decodeDate(f)),u[h._id]=l[v].map(f)}}return u}function Iq(e){return Bq(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Hq(e){return Bq(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Bq(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?F2.extractPathCoords(n,i?Fi.paramIsY:Fi.paramIsX):[t,a],u=N2.aggNums(Math.max,null,s),f=N2.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 Oq(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(Fi.segmentRE),m,y,g,_,w;for(e.type==="date"&&(u=F2.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Wq=J((dce,Gq)=>{"use strict";var Vq=Th();Gq.exports={moduleType:"component",name:"shapes",layoutAttributes:z2(),supplyLayoutDefaults:Pq(),supplyDrawNewShapeDefaults:Nq(),includeBasePlot:tc()("shapes"),calcAutorange:Uq(),draw:Vq.draw,drawOne:Vq.drawOne}});var I2=J((mce,Zq)=>{"use strict";var Xq=jt(),yee=ct().templatedArray,pce=ec();Zq.exports=yee("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",Xq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Xq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Kq=J((yce,Jq)=>{"use strict";var gee=Ie(),H2=dt(),bee=$n(),xee=I2(),_ee="images";Jq.exports=function(r,t){var a={name:_ee,handleItemDefaults:wee};bee(r,t,a)};function wee(e,r,t){function a(h,d){return gee.coerce(e,r,xee,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=H2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=H2.getFromId(l,f);v._imgIndices.push(r._index)}H2.coercePosition(r,l,a,f,u,0)}return r}});var eD=J((gce,jq)=>{"use strict";var Qq=Ir(),Tee=at(),wu=dt(),$q=Zt(),Mee=xo();jq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var rD=Hr(),Aee=Sv();tD.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";nD.exports={moduleType:"component",name:"images",layoutAttributes:I2(),supplyLayoutDefaults:Kq(),includeBasePlot:tc()("images"),draw:eD(),convertCoords:aD()}});var Ed=J((_ce,lD)=>{"use strict";lD.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 O2=J((wce,sD)=>{"use strict";var kee=ma(),See=mi(),Cee=Wt().extendFlat,Lee=yi().overrideAll,qee=Hv(),oD=ct().templatedArray,Dee=oD("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}});sD.exports=Lee(oD("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:Dee,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:Cee(qee({editType:"arraydraw"}),{}),font:kee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:See.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var vD=J((Tce,cD)=>{"use strict";var Pd=Ie(),uD=$n(),fD=O2(),Eee=Ed(),Pee=Eee.name,Ree=fD.buttons;cD.exports=function(r,t){var a={name:Pee,handleItemDefaults:zee};uD(r,t,a)};function zee(e,r,t){function a(l,o){return Pd.coerce(e,r,fD,l,o)}var n=uD(e,r,{name:"buttons",handleItemDefaults:Nee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Pd.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Pd.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Nee(e,r){function t(n,i){return Pd.coerce(e,r,Ree,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 pD=J((Mce,dD)=>{"use strict";dD.exports=xt;var si=Ir(),hD=Er(),Tu=at(),Rd=Ie();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,w,T,b,M;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var C=h||y;C?(w=o,T=w+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?(T=o+g,w=Math.max(T-g,0),g=T-w):(w=o,T=Math.min(w+g,i),g=T-w)),this._box={l:w,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(hD.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,W=xt.barLength+2*xt.barPad,Z=o+s,V=u;Z+I>i&&(Z=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(hD.fill,xt.barColor),O?(this.vbar=Y.attr({rx:xt.barRadius,ry:xt.barRadius,x:Z,y:V,width:I,height:W}),this._vbarYMin=V+W/2,this._vbarTranslateMax=_-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Q=w-.5,K=O?T+I+.5:T+.5,ne=b-.5,pe=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(K)-Math.floor(Q),height:Math.ceil(pe)-Math.floor(ne)}),this.container.call(Tu.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(Tu.setClipUrl,null),delete this._clipRect),k||O){var Se=si.behavior.drag().on("dragstart",function(){si.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=si.behavior.drag().on("dragstart",function(){si.event.sourceEvent.preventDefault(),si.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(Tu.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-=si.event.dx),this.vbar&&(t-=si.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=si.event.deltaY),this.vbar&&(t+=si.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=Rd.constrain(si.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=Rd.constrain(si.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=Rd.constrain(r||0,0,a),t=Rd.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Tu.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(Tu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Tu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var AD=J((Ace,MD)=>{"use strict";var Mu=Ir(),Mc=Ht(),Ac=Er(),Au=at(),dn=Ie(),zd=ya(),Fee=ct().arrayEditor,yD=Ma().LINE_SPACING,_r=Ed(),Iee=pD();MD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){Mc.autoMargin(r,wD(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(){Mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,Hee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Wee=Ed();kD.exports={moduleType:"component",name:Wee.name,layoutAttributes:O2(),supplyLayoutDefaults:vD(),draw:AD()}});var Sc=J((Sce,CD)=>{"use strict";CD.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 V2=J((Cce,DD)=>{"use strict";var LD=ma(),Xee=Hv(),Zee=Wt().extendDeepAll,Jee=yi().overrideAll,Kee=rf(),qD=ct().templatedArray,Ko=Sc(),Qee=qD("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}});DD.exports=Jee(qD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Qee,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:Zee(Xee({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:Kee.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:LD({})},font:LD({}),activebgcolor:{valType:"color",dflt:Ko.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ko.railBgColor},bordercolor:{valType:"color",dflt:Ko.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ko.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ko.tickLength},tickcolor:{valType:"color",dflt:Ko.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ko.minorTickLength}}),"arraydraw","from-root")});var zD=J((Lce,RD)=>{"use strict";var ku=Ie(),ED=$n(),PD=V2(),$ee=Sc(),jee=$ee.name,ere=PD.steps;RD.exports=function(r,t){ED(r,t,{name:jee,handleItemDefaults:rre})};function rre(e,r,t){function a(v,h){return ku.coerce(e,r,PD,v,h)}for(var n=ED(e,r,{name:"steps",handleItemDefaults:tre}),i=0,l=0;l{"use strict";var ui=Ir(),Nd=Ht(),Ol=Er(),fi=at(),pn=Ie(),are=pn.strTranslate,Cc=ya(),nre=ct().arrayEditor,Dr=Sc(),X2=Ma(),ID=X2.LINE_SPACING,G2=X2.FROM_TL,W2=X2.FROM_BR;VD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=ire(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),Nd.autoMargin(r,HD(f))}if(i.exit().each(function(){ui.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,lre);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",are(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Z2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function FD(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 hre(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(YD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Ol.fill,t.bgcolor).attr("opacity",0),fi.setTranslate(n,0,a.currentValueTotalHeight)}function dre(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Ol.stroke,r.bordercolor).call(Ol.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),fi.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var XD=J((Dce,WD)=>{"use strict";var pre=Sc();WD.exports={moduleType:"component",name:pre.name,layoutAttributes:V2(),supplyLayoutDefaults:zD(),draw:GD()}});var Id=J((Ece,JD)=>{"use strict";var ZD=mi();JD.exports={bgcolor:{valType:"color",dflt:ZD.background,editType:"plot"},bordercolor:{valType:"color",dflt:ZD.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 J2=J((Pce,KD)=>{"use strict";KD.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 Hd=J((Rce,QD)=>{"use strict";QD.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 eE=J(Bd=>{"use strict";var mre=Zt(),yre=ya(),$D=Hd(),gre=Ma().LINE_SPACING,Od=$D.name;function jD(e){var r=e&&e[Od];return r&&r.visible}Bd.isVisible=jD;Bd.makeData=function(e){for(var r=mre.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Yd=Ie(),rE=ct(),tE=Zt(),bre=Id(),xre=J2();aE.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Yd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=rE.newContainer(i,"rangeslider");function s(M,C){return Yd.coerce(l,o,bre,M,C)}var u,f;function v(M,C){return Yd.coerce(u,f,xre,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")))===tE.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Yd.simpleMap(m,tE.id2name),g=0;g{"use strict";var _re=Zt().list,wre=xf().getAutoRange,Tre=Hd();iE.exports=function(r){for(var t=_re(r,"x",!0),a=0;a{"use strict";var Ud=Ir(),Mre=br(),Are=Ht(),qt=Ie(),Vd=qt.strTranslate,sE=at(),Bl=Er(),kre=gf(),Sre=Cd(),K2=Zt(),Cre=ei(),Lre=Cl(),Fr=Hd();uE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Y.max)Z=z[V+1];else if(W=Y.pmax)Z=z[V+1];else if(W0?e.touches[0].clientX:0}function qre(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=Ud.event,u=s.target,f=oE(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=Cre.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var w=oE(_),T=+w-f,b,M,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,M=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,M=d;break;case l:if(C="col-resize",d+T<0)return;b=h,M=d+T;break;default:C="ew-resize",b=v,M=v+T;break}if(M{"use strict";var Ore=Ie(),Bre=Id(),Yre=J2(),Q2=eE();cE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ore.extendFlat({},Bre,{yaxis:Yre})}}},layoutAttributes:Id(),handleDefaults:nE(),calcAutorange:lE(),draw:fE(),isVisible:Q2.isVisible,makeData:Q2.makeData,autoMarginOpts:Q2.autoMarginOpts}});var Gd=J((Oce,dE)=>{"use strict";var Ure=ma(),hE=mi(),Vre=ct().templatedArray,Gre=Vre("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"});dE.exports={visible:{valType:"boolean",editType:"plot"},buttons:Gre,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:Ure({editType:"plot"}),bgcolor:{valType:"color",dflt:hE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:hE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $2=J((Bce,pE)=>{"use strict";pE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var gE=J((Yce,yE)=>{"use strict";var Wd=Ie(),Wre=Er(),Xre=ct(),Zre=$n(),mE=Gd(),j2=$2();yE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Xre.newContainer(t,"rangeselector");function s(d,m){return Wd.coerce(l,o,mE,d,m)}var u=Zre(l,o,{name:"buttons",handleItemDefaults:Jre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Kre(t,a,n);s("x",v[0]),s("y",v[1]),Wd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Wd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Wre.contrast(h,j2.lightAmount,j2.darkAmount)),s("bordercolor"),s("borderwidth")}};function Jre(e,r,t,a){var n=a.calendar;function i(s,u){return Wd.coerce(e,r,mE.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 Kre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Qre=Z1(),$re=Ie().titleCase;bE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=jre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function jre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Qre["utc"+$re(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 CE=J((Vce,SE)=>{"use strict";var Zd=Ir(),ete=br(),rte=Ht(),_E=Er(),kE=at(),tl=Ie(),wE=tl.strTranslate,Xd=ya(),tte=Zt(),t3=Ma(),TE=t3.LINE_SPACING,ME=t3.FROM_TL,AE=t3.FROM_BR,r3=$2(),ate=xE();SE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(nte(r),ite);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Zd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(tl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Zd.select(this),v=ate(l,u);u._isActive=lte(l,u,v),f.call(e3,o,u),f.call(ste,o,u,r),f.on("click",function(){r._dragged||ete.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(e3,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(e3,o,u)})}),fte(r,s,o,l._name,i)})};function nte(e){for(var r=tte.list(e,"x",!0),t=[],a=0;a{"use strict";LE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gd()}}},layoutAttributes:Gd(),handleDefaults:gE(),draw:CE()}});var Jd=J(a3=>{"use strict";var DE=Wt().extendFlat;a3.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:DE({},t,{}),y:DE({},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};a3.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 cte=Ie(),vte=ws().counter,hte=Jd().attributes,EE=jt().idRegex,dte=ct(),n3={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:[vte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.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:hte({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 Kd(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 pte(e,r){var t=e.grid||{},a=Kd(r,t,"x"),n=Kd(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=dte.newContainer(r,"grid");function h(C,k){return cte.coerce(t,v,n3,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",w=i?.2:.1,T=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:PE("x",h,w,b,m),y:PE("y",h,T,M,d,_)}}function PE(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";FE.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 OE=J((Jce,HE)=>{"use strict";var IE=Hr(),yte=br(),gte=Ie(),bte=ct(),xte=i3();HE.exports=function(e,r,t,a){var n="error_"+a.axis,i=bte.newContainer(r,n),l=e[n]||{};function o(m,y){return gte.coerce(l,i,xte,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||IE(l.thickness)||IE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",yte.traceIs(r,"gl3d")?0:4))}}});var l3=J((Kce,YE)=>{"use strict";YE.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=BE(t,r.value),o=BE(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 BE(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 GE=J((Qce,VE)=>{"use strict";var o3=Hr(),_te=br(),s3=dt(),wte=Ie(),Tte=l3();VE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var WE=Ir(),Yl=Hr(),Mte=at(),Ate=ln();XE.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(w){return w.id});var y=Ate.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=WE.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),Mte.setClipUrl(g,a.layerClipId,r),g.each(function(w){var T=WE.select(this),b=kte(w,l,o);if(!(y&&!w.vis)){var M,C=T.select("path.yerror");if(d.visible&&Yl(b.x)&&Yl(b.yh)&&Yl(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=T.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=T.select("path.xerror");if(h.visible&&Yl(b.y)&&Yl(b.xh)&&Yl(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=T.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 kte(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),Yl(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),Yl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var QE=J((jce,KE)=>{"use strict";var Ste=Ir(),JE=Er();KE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Ste.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 eP=J((eve,jE)=>{"use strict";var Lc=Ie(),$E=yi().overrideAll,qc=i3(),Qo={error_x:Lc.extendFlat({},qc),error_y:Lc.extendFlat({},qc)};delete Qo.error_x.copy_zstyle;delete Qo.error_y.copy_zstyle;delete Qo.error_y.copy_ystyle;var Dc={error_x:Lc.extendFlat({},qc),error_y:Lc.extendFlat({},qc),error_z:Lc.extendFlat({},qc)};delete Dc.error_x.copy_ystyle;delete Dc.error_y.copy_ystyle;delete Dc.error_z.copy_ystyle;delete Dc.error_z.copy_zstyle;jE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qo,bar:Qo,histogram:Qo,scatter3d:$E(Dc,"calc","nested"),scattergl:$E(Qo,"calc","nested")}},supplyDefaults:OE(),calc:GE(),makeComputeError:l3(),plot:ZE(),style:QE(),hoverInfo:Cte};function Cte(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 tP=J((rve,rP)=>{"use strict";rP.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 uP=J((tve,sP)=>{"use strict";var Ul=Ir(),u3=_n(),$d=Ht(),aP=br(),al=dt(),Qd=ei(),On=Ie(),vi=On.strTranslate,oP=Wt().extendFlat,f3=Cl(),ci=at(),c3=Er(),Lte=gf(),qte=ya(),Dte=An().flipScale,Ete=b2(),Pte=x2(),Rte=Qn(),v3=Ma(),nP=v3.LINE_SPACING,iP=v3.FROM_TL,lP=v3.FROM_BR,gt=tP().cn;function zte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+gt.colorbar).data(Nte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(gt.colorbar,!0),t.each(function(a){var n=Ul.select(this);On.ensureSingle(n,"rect",gt.cbbg),On.ensureSingle(n,"g",gt.cbfills),On.ensureSingle(n,"g",gt.cblines),On.ensureSingle(n,"g",gt.cbaxis,function(l){l.classed(gt.crisp,!0)}),On.ensureSingle(n,"g",gt.cbtitleunshift,function(l){l.append("g").classed(gt.cbtitle,!0)}),On.ensureSingle(n,"rect",gt.cboutline);var i=Fte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ite(n,a,e)}),t.exit().each(function(a){$d.autoMargin(e,a._id)}).remove(),t.order()}function Nte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return oP(T,{_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?Dte(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));ge*=$*On.roundUp(B/$,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(de.tick0=0)}de.dtick=ge}de.domain=a?[re+m/b.h,re+H-m/b.h]:[re+d/b.w,re+H-d/b.w],de.setScale(),e.attr("transform",vi(Math.round(b.l),Math.round(b.t)));var U=e.select("."+gt.cbtitleunshift).attr("transform",vi(-Math.round(b.l),-Math.round(b.t))),le=de.ticklabelposition,ve=de.title.font.size,me=e.select("."+gt.cbaxis),De,Re=0,Le=0;function Fe(Ge,ie){var xe={propContainer:de,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+gt.cbtitle)},Ke=Ge.charAt(0)==="h"?Ge.slice(1):"h"+Ge;e.selectAll("."+Ke+",."+Ke+"-math-group").remove(),Lte.draw(t,Ge,oP(xe,ie||{}))}function Oe(){if(a&&be||!a&&!be){var Ge,ie;q==="top"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re-H)+3+ve*.75),q==="bottom"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re)-3-ve*.25),q==="right"&&(ie=m+b.t+K*g+3+ve*.75,Ge=d+b.l+Q*re),Fe(de._id+"title",{attributes:{x:Ge,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Ge=de.position||0,ie=de._offset+de._length/2,xe,Ke;if(q==="right")Ke=ie,xe=b.l+Q*Ge+10+ve*(de.showticklabels?1:.5);else if(xe=ie,q==="bottom"&&(Ke=b.t+K*Ge+10+(le.indexOf("inside")===-1?de.tickfont.size:0)+(de.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=k.text.split("
").length;Ke=b.t+K*Ge+10-Z-nP*ve*hr}Fe((a?"h":"v")+de._id+"title",{avoid:{selection:Ul.select(t).selectAll("g."+de._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:xe,y:Ke,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!be||a&&be){var Ge=e.select("."+gt.cbtitle),ie=Ge.select("text"),xe=[-s/2,s/2],Ke=Ge.select(".h"+de._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*nP);var ze;if(Ke?(ze=ci.bBox(Ke),Le=ze.width,Re=ze.height,Re>hr&&(xe[1]-=(Re-hr)/2)):ie.node()&&!ie.classed(gt.jsPlaceholder)&&(ze=ci.bBox(ie.node()),Le=ze.width,Re=ze.height),a){if(Re){if(Re+=5,q==="top")de.domain[1]-=Re/b.h,xe[1]*=-1;else{de.domain[0]+=Re/b.h;var Te=qte.lineCount(ie);xe[1]+=(1-Te)*hr}Ge.attr("transform",vi(xe[0],xe[1])),de.setScale()}}else Le&&(q==="right"&&(de.domain[0]+=(Le+ve/2)/b.w),Ge.attr("transform",vi(xe[0],xe[1])),de.setScale())}e.selectAll("."+gt.cbfills+",."+gt.cblines).attr("transform",a?vi(0,Math.round(b.h*(1-de.domain[1]))):vi(Math.round(b.w*de.domain[0]),0)),me.attr("transform",a?vi(0,Math.round(-b.t)):vi(Math.round(-b.l),0));var ke=e.select("."+gt.cbfills).selectAll("rect."+gt.cbfill).attr("style","").data(I);ke.enter().append("rect").classed(gt.cbfill,!0).attr("style",""),ke.exit().remove();var He=D.map(de.c2p).map(Math.round).sort(function(tr,Qe){return tr-Qe});ke.each(function(tr,Qe){var Ne=[Qe===0?D[0]:(I[Qe]+I[Qe-1])/2,Qe===I.length-1?D[1]:(I[Qe]+I[Qe+1])/2].map(de.c2p).map(Math.round);a&&(Ne[1]=On.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,He[0],He[1]));var ae=Ul.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",Ul.min(Ne)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Ul.max(Ne)-Ul.min(Ne),2));if(r._fillgradient)ci.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(tr).replace("e-","");ae.attr("fill",u3(oe).toHexString())}});var Je=e.select("."+gt.cblines).selectAll("path."+gt.cbline).data(C.color&&C.width?W:[]);Je.enter().append("path").classed(gt.cbline,!0),Je.exit().remove(),Je.each(function(tr){var Qe=ne,Ne=Math.round(de.c2p(tr))+C.width/2%1;Ul.select(this).attr("d","M"+(a?Qe+","+Ne:Ne+","+Qe)+(a?"h":"v")+Z).call(ci.lineGroupStyle,C.width,P(tr),C.dash)}),me.selectAll("g."+de._id+"tick,path").remove();var Ve=ne+Z+(s||0)/2-(r.ticks==="outside"?1:0),Xe=al.calcTicks(de),lr=al.getTickSigns(de)[2];return al.drawTicks(t,de,{vals:de.ticks==="inside"?al.clipEnds(de,Xe):Xe,layer:me,path:al.makeTickPath(de,Ve,lr),transFn:al.makeTransTickFn(de)}),al.drawLabels(t,de,{vals:Xe,layer:me,transFn:al.makeTransTickLabelFn(de),labelFns:al.makeLabelFns(de,Ve)})}function Be(){var Ge,ie=Z+s/2;le.indexOf("inside")===-1&&(Ge=ci.bBox(me.node()),ie+=a?Ge.width:Ge.height),De=U.select("text");var xe=0,Ke=a&&q==="top",hr=!a&&q==="right",ze=0;if(De.node()&&!De.classed(gt.jsPlaceholder)){var Te,ke=U.select(".h"+de._id+"title-math-group").node();ke&&(a&&be||!a&&!be)?(Ge=ci.bBox(ke),xe=Ge.width,Te=Ge.height):(Ge=ci.bBox(U.node()),xe=Ge.right-b.l-(a?ne:Ce),Te=Ge.bottom-b.t-(a?Ce:ne),!a&&q==="top"&&(ie+=Ge.height,ze=Ge.height)),hr&&(De.attr("transform",vi(xe/2+ve/2,0)),xe*=2),ie=Math.max(ie,a?xe:Te)}var He=(a?d:m)*2+ie+u+s/2,Je=0;!a&&k.text&&h==="bottom"&&g<=0&&(Je=He/2,He+=Je,ze+=Je),T._hColorbarMoveTitle=Je,T._hColorbarMoveCBTitle=ze;var Ve=u+s,Xe=(a?ne:Ce)-Ve/2-(a?d:0),lr=(a?Ce:ne)-(a?Y:m+ze-Je);e.select("."+gt.cbbg).attr("x",Xe).attr("y",lr).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(Y+Ve,2)).call(c3.fill,f).call(c3.stroke,r.bordercolor).style("stroke-width",u);var tr=hr?Math.max(xe-10,0):0;e.selectAll("."+gt.cboutline).attr("x",(a?ne:Ce+d)+tr).attr("y",(a?Ce+m-Y:ne)+(Ke?Re:0)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Y-(a?2*m+Re:2*d+tr),2)).call(c3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Qe=a?pe*He:0,Ne=a?0:(1-ye)*He-ze;if(Qe=w?b.l-Qe:-Qe,Ne=_?b.t-Ne:-Ne,e.attr("transform",vi(Qe,Ne)),!a&&(u||u3(f).getAlpha()&&!u3.equals(T.paper_bgcolor,f))){var ae=me.selectAll("text"),oe=ae[0].length,qe=e.select("."+gt.cbbg).node(),Ee=ci.bBox(qe),ar=ci.getTranslate(e),cr=2;ae.each(function(qa,sa){var ua=0,vr=oe-1;if(sa===ua||sa===vr){var lt=ci.bBox(this),Zr=ci.getTranslate(this),ft;if(sa===vr){var St=lt.right+Zr.x,bt=Ee.right+ar.x+Ce-u-cr+y;ft=bt-St,ft>0&&(ft=0)}else if(sa===ua){var Qr=lt.left+Zr.x,fa=Ee.left+ar.x+Ce+u+cr;ft=fa-Qr,ft<0&&(ft=0)}ft&&(oe<3?this.setAttribute("transform","translate("+ft+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=iP[v],Br=lP[v],$r=iP[h],it=lP[h],_t=He-Z;a?(i==="pixels"?(sr.y=g,sr.t=Y*$r,sr.b=Y*it):(sr.t=sr.b=0,sr.yt=g+n*$r,sr.yb=g-n*it),o==="pixels"?(sr.x=y,sr.l=He*Mr,sr.r=He*Br):(sr.l=_t*Mr,sr.r=_t*Br,sr.xl=y-l*Mr,sr.xr=y+l*Br)):(i==="pixels"?(sr.x=y,sr.l=Y*Mr,sr.r=Y*Br):(sr.l=sr.r=0,sr.xl=y+n*Mr,sr.xr=y-n*Br),o==="pixels"?(sr.y=1-g,sr.t=He*$r,sr.b=He*it):(sr.t=_t*$r,sr.b=_t*it,sr.yt=g-l*$r,sr.yb=g+l*it));var yt=r.y<.5?"b":"t",Dt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Kt={r:T.width-Xe-Qe,l:Xe+sr.r,b:T.height-lr-Ne,t:lr+sr.b};w&&_?$d.autoMargin(t,r._id,sr):w?t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]:_||a?t._fullLayout._reservedMargin[r._id][Dt]=Kt[Dt]:t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]}return On.syncOrAsync([$d.previousPromises,Oe,Pe,We,$d.previousPromises,Be],t)}function Ite(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Qd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),f3(e)},moveFn:function(u,f){e.attr("transform",l+vi(u,f)),o=Qd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Qd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Qd.getCursor(o,s,r.xanchor,r.yanchor);f3(e,v)},doneFn:function(){if(f3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?aP.call("_guiRestyle",t,u,r._traceIndex):aP.call("_guiRelayout",t,u)}}})}function Hte(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";fP.exports={moduleType:"component",name:"colorbar",attributes:d0(),supplyDefaults:cm(),draw:uP().draw,hasColorbar:em()}});var hP=J((nve,vP)=>{"use strict";vP.exports={moduleType:"component",name:"legend",layoutAttributes:sy(),supplyLayoutDefaults:fy(),draw:Ty(),style:by()}});var pP=J((ive,dP)=>{"use strict";dP.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 yP=J((lve,mP)=>{"use strict";mP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var d3=J((ove,_P)=>{"use strict";var Bte=br(),xP=Ie(),h3=xP.extendFlat,gP=xP.extendDeep;function bP(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 Yte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}_P.exports=function(r,t){var a,n=r.data,i=r.layout,l=gP([],n),o=gP({},i,bP(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 Ute=e0().EventEmitter,Vte=br(),Gte=Ie(),wP=Bo(),Wte=d3(),Xte=ld(),Zte=od();function Jte(e,r){var t=new Ute,a=Wte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=wP.getDelay(n._fullLayout);setTimeout(function(){var s=Xte(n),u=document.createElement("canvas");u.id=Gte.randstr(),t=Zte({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=wP.getRedrawFunc(n);return Vte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}TP.exports=Jte});var SP=J((uve,kP)=>{"use strict";var AP=Bo(),Kte={getDelay:AP.getDelay,getRedrawFunc:AP.getRedrawFunc,clone:d3(),toSVG:ld(),svgToImg:od(),toImage:MP(),downloadImage:Bg()};kP.exports=Kte});var LP=J(nl=>{"use strict";nl.version=yv().version;bb();s6();var Qte=br(),Ec=nl.register=Qte.register,m3=qS(),CP=Object.keys(m3);for(jd=0;jd{"use strict";qP.exports=LP()});var Pc=J((vve,NP)=>{"use strict";var kt=Oo(),EP=h0().axisHoverFormat,{hovertemplateAttrs:$te,texttemplateAttrs:jte,templatefallbackAttrs:PP}=fo(),zP=pf(),eae=ma(),RP=pc(),rae=gi().pattern,$o=Wt().extendFlat,y3=eae({editType:"calc",arrayOk:!0,colorEditType:"style"}),tae=kt.marker,aae=tae.line,nae=$o({},aae.width,{dflt:0}),iae=$o({width:nae,editType:"calc"},zP("marker.line")),lae=$o({line:iae,editType:"calc"},zP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rae,cornerradius:{valType:"any",editType:"calc"}});NP.exports={x:kt.x,x0:kt.x0,dx:kt.dx,y:kt.y,y0:kt.y0,dy:kt.dy,xperiod:kt.xperiod,yperiod:kt.yperiod,xperiod0:kt.xperiod0,yperiod0:kt.yperiod0,xperiodalignment:kt.xperiodalignment,yperiodalignment:kt.yperiodalignment,xhoverformat:EP("x"),yhoverformat:EP("y"),text:kt.text,texttemplate:jte({editType:"plot"},{keys:RP.eventDataKeys}),texttemplatefallback:PP({editType:"plot"}),hovertext:kt.hovertext,hovertemplate:$te({},{keys:RP.eventDataKeys}),hovertemplatefallback:PP(),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:$o({},y3,{}),insidetextfont:$o({},y3,{}),outsidetextfont:$o({},y3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:$o({},kt.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:lae,offsetgroup:kt.offsetgroup,alignmentgroup:kt.alignmentgroup,selected:{marker:{opacity:kt.selected.marker.opacity,color:kt.selected.marker.color,editType:"style"},textfont:kt.selected.textfont,editType:"style"},unselected:{marker:{opacity:kt.unselected.marker.opacity,color:kt.unselected.marker.color,editType:"style"},textfont:kt.unselected.textfont,editType:"style"},zorder:kt.zorder}});var g3=J((hve,FP)=>{"use strict";FP.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 BP=J((dve,OP)=>{"use strict";var oae=Er(),IP=An().hasColorscale,HP=Bs(),sae=Ie().coercePattern;OP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=IP(r,"marker");o&&HP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",oae.defaultLine),IP(r,"marker.line")&&HP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),sae(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Rc=J((pve,XP)=>{"use strict";var YP=Hr(),Cu=Ie(),UP=Er(),uae=br(),fae=Vg(),cae=Gg(),vae=BP(),hae=Wg(),VP=Pc(),r1=Cu.coerceFont;function dae(e,r,t,a){function n(u,f){return Cu.coerce(e,r,VP,u,f)}var i=fae(e,r,a,n);if(!i){r.visible=!1;return}cae(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");WP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),vae(e,r,n,t,a);var o=(r.marker.line||{}).color,s=uae.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||UP.defaultLine,{axis:"y"}),s(e,r,o||UP.defaultLine,{axis:"x",inherit:"y"}),Cu.coerceSelectionMarkerOpacity(r,n)}function pae(e,r){var t,a;function n(o,s){return Cu.coerce(a._input,a,VP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&YP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function WP(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=r1(a,"textfont",t.font),_=Cu.extendFlat({},g),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,r1(a,"insidetextfont",_),h){var b=Cu.extendFlat({},g);T&&delete b.color,r1(a,"pathbar.textfont",b)}y&&r1(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")}XP.exports={supplyDefaults:dae,crossTraceDefaults:pae,handleText:WP,validateCornerradius:GP}});var JP=J((mve,ZP)=>{"use strict";var mae=br(),yae=dt(),gae=Ie(),bae=g3(),xae=Rc().validateCornerradius;ZP.exports=function(e,r,t){function a(y,g){return gae.coerce(e,r,bae,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=yae.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=xae(m)}});var b3=J((yve,KP)=>{"use strict";var Lu=Ie();KP.exports=function(r,t){for(var a=0;a{"use strict";var QP=dt(),$P=Xg(),jP=An().hasColorscale,eR=y0(),_ae=b3(),wae=Qg();rR.exports=function(r,t){var a=QP.getFromId(r,t.xaxis||"x"),n=QP.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=$P(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=$P(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 Tae=Ir(),Mae=Ie();function Aae(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=Tae.select(this).select("text");Mae.setTransormAndDisplay(u,s)}})}}function kae(e,r,t){if(t.uniformtext.mode){var a=aR(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Cae=Hr(),Lae=_n(),iR=Ie().isArrayOrTypedArray;jo.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};jo.coerceNumber=function(e,r,t){if(Cae(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};jo.coerceColor=function(e,r,t){return Lae(r).isValid()?r:t!==void 0?t:e.dflt};jo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};jo.getValue=function(e,r){var t;return iR(e)?r{"use strict";var Nc=Ir(),qae=Er(),Fc=at(),lR=Ie(),oR=br(),sR=zc().resizeText,x3=Pc(),Dae=x3.textfont,Eae=x3.insidetextfont,Pae=x3.outsidetextfont,_a=t1();function Rae(e){var r=Nc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");sR(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)&&Nc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Nc.select(this),l=n[0].trace;uR(i,l,e)}),oR.getComponentMethod("errorbars","style")(r)}function uR(e,r,t){Fc.pointStyle(e.selectAll("path"),r,t),fR(e,r,t)}function fR(e,r,t){e.selectAll("text").each(function(a){var n=Nc.select(this),i=lR.ensureUniformFontSize(t,cR(n,a,r,t));Fc.font(n,i)})}function zae(e,r,t){var a=r[0].trace;a.selectedpoints?Nae(t,a,e):(uR(t,a,e),oR.getComponentMethod("errorbars","style")(t))}function Nae(e,r,t){Fc.selectedPointStyle(e.selectAll("path"),r),Fae(e.selectAll("text"),r,t)}function Fae(e,r,t){e.each(function(a){var n=Nc.select(this),i;if(a.selected){i=lR.ensureUniformFontSize(t,cR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Fc.font(n,i)}else Fc.selectedTextStyle(n,r)})}function cR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=pR(r,t);i=hR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=dR(t,r.i,n));return i}function vR(e,r,t){return _3(Dae,e.textfont,r,t)}function hR(e,r,t,a){var n=vR(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:qae.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}),_3(Eae,e.insidetextfont,r,n)}function dR(e,r,t){var a=vR(e,r,t);return _3(Pae,e.outsidetextfont,r,a)}function _3(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 pR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}mR.exports={style:Rae,styleTextPoints:fR,styleOnSelect:zae,getInsideTextFont:hR,getOutsideTextFont:dR,getBarColor:pR,resizeText:sR}});var AR=J((wve,MR)=>{"use strict";var n1=Ir(),i1=Hr(),la=Ie(),Iae=ya(),Hae=Er(),Vl=at(),Oae=br(),l1=dt().tickText,yR=zc(),Bae=yR.recordMinTextSize,Yae=yR.clearMinTextSize,w3=a1(),qu=t1(),Uae=pc(),gR=Pc(),Vae=gR.text,Gae=gR.textposition,Wae=_i().appendArrayPointValue,Oa=Uae.TEXTPAD;function Xae(e){return e.id}function Zae(e){if(e.ids)return Xae}function T3(e){return(e>0)-(e<0)}function Ii(e,r){return e0}function Kae(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},Yae("bar",s));var f=la.makeTraceGroups(a,t,"trace bars").each(function(v){var h=n1.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",C=xR(n),k=la.ensureSingle(h,"g","points"),q=Zae(d),D=k.selectAll("g.point").data(la.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var O=n1.select(this),I=Jae(z,l,o,M),W=I[0][0],Z=I[0][1],V=I[1][0],Y=I[1][1],H=(M?Z-W:Y-V)===0;H&&T&&qu.getLineWidth(d,z)&&(H=!1),H||(H=!i1(W)||!i1(Z)||!i1(V)||!i1(Y)),z.isBlank=H,H&&(M?Z=W:Y=V),b&&!H&&(M?(W-=Ii(W,Z)*b,Z+=Ii(W,Z)*b):(V-=Ii(V,Y)*b,Y+=Ii(V,Y)*b));var Q,K;if(d.type==="waterfall"){if(!H){var ne=d[z.dir].marker;Q=ne.line.width,K=ne.color}}else Q=qu.getLineWidth(d,z),K=z.mc||d.marker.color;function pe(ie){var xe=n1.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?n1.round(Math.round(ie)-xe,2):ie}function ye(ie,xe,Ke){return Ke&&ie===xe?ie:Math.abs(ie-xe)>=2?pe(ie):ie>xe?Math.ceil(ie):Math.floor(ie)}var Se=Hae.opacity(K),re=Se<1||Q>.01?pe:ye;e._context.staticPlot||(W=re(W,Z,M),Z=re(Z,W,M),V=re(V,Y,!M),Y=re(Y,V,!M));var Ce=M?l.c2p:o.c2p,de;z.s0>0?de=z._sMax:z.s0<0?de=z._sMin:de=z.s1>0?z._sMax:z._sMin;function be(ie,xe){if(!ie)return 0;var Ke=Math.abs(M?Y-V:Z-W),hr=Math.abs(M?Z-W:Y-V),ze=re(Math.abs(Ce(de,!0)-Ce(0,!0))),Te=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,Te),0))}var ge=w||_?be(m.cornerradiusvalue,m.cornerradiusform):0,Ae,B,$="M"+W+","+V+"V"+Y+"H"+Z+"V"+V+"Z",U=0;if(ge&&z.s){var le=T3(z.s0)===0||T3(z.s)===T3(z.s0)?z.s1:z.s0;if(U=re(z.hasB?0:Math.abs(Ce(de,!0)-Ce(le,!0))),U0?Math.sqrt(U*(2*ge-U)):0,Fe=ve>0?Math.max:Math.min;Ae="M"+W+","+V+"V"+(Y-Re*me)+"H"+Fe(Z-(ge-U)*ve,W)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me-Le)+"V"+(V+ge*me+Le)+"A "+ge+","+ge+" 0 0 "+De+" "+Fe(Z-(ge-U)*ve,W)+","+(V+Re*me)+"Z"}else if(z.hasB)Ae="M"+(W+ge*ve)+","+V+"A "+ge+","+ge+" 0 0 "+De+" "+W+","+(V+ge*me)+"V"+(Y-ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve)+","+Y+"H"+(Z-ge*ve)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me)+"V"+(V+ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-ge*ve)+","+V+"Z";else{B=Math.abs(Y-V)+U;var Oe=B0?Math.sqrt(U*(2*ge-U)):0,Pe=me>0?Math.max:Math.min;Ae="M"+(W+Oe*ve)+","+V+"V"+Pe(Y-(ge-U)*me,V)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve-We)+","+Y+"H"+(Z-ge*ve+We)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-Oe*ve)+","+Pe(Y-(ge-U)*me,V)+"V"+V+"Z"}}else Ae=$}else Ae=$;var Be=bR(la.ensureSingle(O,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-W)*(Y-V))||H&&e._context.staticPlot?"M0,0Z":Ae).call(Vl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Ge=Vl.makePointStyleFns(d);Vl.singlePointStyle(z,Be,d,Ge,e)}Qae(e,r,O,v,F,W,Z,V,Y,ge,U,n,i),r.layerClipId&&Vl.hideOutsideRangePoint(z,O.select("text"),l,o,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;Vl.setClipUrl(h,P?null:r.layerClipId,e)});Oae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Qae(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,$,U){var le=la.ensureSingle(B,"text").text($).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Vl.font,U).call(Iae.convertToTspans,e);return le}var w=a[0].trace,T=w.orientation==="h",b=ene(y,a,n,d,m);g=rne(w,n);var M=v.mode==="stack"||v.mode==="relative",C=a[n],k=!M||C._outmost,q=C.hasB,D=u&&u-f>Oa;if(!b||g==="none"||(C.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var P=y.font,z=w3.getBarColor(a[n],w),F=w3.getInsideTextFont(w,n,P,z),O=w3.getOutsideTextFont(w,n,P),I=w.insidetextanchor||"end",W=t.datum();T?d.type==="log"&&W.s0<=0&&(d.range[0]0&&pe>0,re;D?q?re=es(Y-2*u,H,ne,pe,T)||es(Y,H-2*u,ne,pe,T):T?re=es(Y-(u-f),H,ne,pe,T)||es(Y,H-2*(u-f),ne,pe,T):re=es(Y,H-(u-f),ne,pe,T)||es(Y-2*(u-f),H,ne,pe,T):re=es(Y,H,ne,pe,T),Se&&re?g="inside":(g="outside",Q.remove(),Q=null)}else g="inside";if(!Q){ye=la.ensureUniformFontSize(e,g==="outside"?O:F),Q=_(t,b,ye);var Ce=Q.attr("transform");if(Q.attr("transform",""),K=Vl.bBox(Q.node()),ne=K.width,pe=K.height,Q.attr("transform",Ce),ne<=0||pe<=0){Q.remove();return}}var de=w.textangle,be,ge;g==="outside"?(ge=w.constraintext==="both"||w.constraintext==="outside",be=jae(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de})):(ge=w.constraintext==="both"||w.constraintext==="inside",be=TR(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de,anchor:I,hasB:q,r:u,overhead:f})),be.fontSize=ye.size,Bae(w.type==="histogram"?"bar":w.type,be,y),C.transform=be;var Ae=bR(Q,y,v,h);la.setTransormAndDisplay(Ae,be)}function es(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 _R(e){return e==="auto"?0:e}function wR(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 TR(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,w=n.width,T=n.height,b=Math.abs(r-e),M=Math.abs(a-t),C=b>2*Oa&&M>2*Oa?Oa:0;b-=2*C,M-=2*C;var k=_R(s);s==="auto"&&!(w<=b&&T<=M)&&(w>b||T>M)&&(!(w>M||T>b)||wOa){var z=$ae(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,W=(t+a)/2,Z=0,V=0;if(v||f){var Y=(l?q.x:q.y)/2;g&&(f||y)&&(C+=P);var H=l?Ii(e,r):Ii(t,a);l?v?(I=e+H*C,Z=-H*Y):(I=r-H*C,Z=H*Y):v?(W=t+H*C,V=-H*Y):(W=a-H*C,V=H*Y)}return{textX:F,textY:O,targetX:I,targetY:W,anchorX:Z,anchorY:V,scale:D,rotate:k}}function $ae(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,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=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,w=(-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,w=(-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,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function jae(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=_R(s),g=wR(n,y),_=(l?g.x:g.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,C=0,k=0,q=l?Ii(r,e):Ii(t,a);return l?(b=r-q*d,C=q*_):(M=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:M,anchorX:C,anchorY:k,scale:m,rotate:y}}function ene(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=tne(e,r,t,a,n):i.textinfo?o=ane(r,t,a,n):o=qu.getValue(i.text,t),qu.coerceString(Vae,o)}function rne(e,r){var t=qu.getValue(e.textposition,r);return qu.coerceEnumerated(Gae,t)}function tne(e,r,t,a,n){var i=r[0].trace,l=la.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 l1(h,h.c2l(C),!0).text}function g(C){return l1(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=y(_.p);var T=la.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=g(_.s);var b={};Wae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=g(w.delta),w.final=_.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),u&&(w.value=_.s,w.valueLabel=g(w.value),w.percentInitial=_.begR,w.percentInitialLabel=la.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=la.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=la.formatPercent(_.sumR));var M=la.castOption(i,_.i,"customdata");return M&&(w.customdata=M),la.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function ane(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 l1(C,M,!0).text}function u(M){var C=i?t:a;return l1(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=la.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,w=_-g;y("initial")&&d.push(u(w)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var T=0;y("percent initial")&&T++,y("percent previous")&&T++,y("percent total")&&T++;var b=T>1;y("percent initial")&&(m=la.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=la.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=la.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}MR.exports={plot:Kae,toMoveInsideBar:TR}});var qR=J((Tve,LR)=>{"use strict";var Ic=Li(),nne=br(),kR=Er(),ine=Ie().fillText,lne=t1().getLineWidth,M3=dt().hoverLabelText,one=Gt().BADNUM;function sne(e,r,t,a,n){var i=SR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=CR(o,s),nne.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function SR(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,_,w;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=W,_=F):(h=r,d=t,m="x",y="y",_=W,g=F);var T=l[m+"period"],b=s||T;function M(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Ce){var de=re.w;return re[m]+Ce*de/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?M:T?function(re){return re.p-q(re)/2}:function(re){return Math.min(M(re),re.p-o.bardelta/2)},P=s?C:T?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Ce,de){return n.finiteRange&&(de=0),Ic.inbox(re-h,Ce-h,de+Math.min(1,Math.abs(Ce-re)/w)-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 de=Math.abs(re.rawS)||0;d>0?Ce+=de:d<0&&(Ce-=de)}return Ce}function W(re){var Ce=d,de=re.b,be=I(re);return Ic.inbox(de-Ce,be-Ce,f+(be-Ce)/(be-de)-1)}function Z(re){var Ce=d,de=re.b,be=I(re);return Ic.inbox(de-Ce,be-Ce,v+(be-Ce)/(be-de)-1)}var V=e[m+"a"],Y=e[y+"a"];w=Math.abs(V.r2c(V.range[1])-V.r2c(V.range[0]));function H(re){return(g(re)+_(re))/2}var Q=Ic.getDistanceFunction(a,g,_,H);if(Ic.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==one){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 K=e.index,ne=i[K],pe=l.base?ne.b+ne.s:ne.s;e[y+"0"]=e[y+"1"]=Y.c2p(ne[y],!0),e[y+"LabelVal"]=pe;var ye=o.extents[o.extents.round(ne.p)];e[m+"0"]=V.c2p(s?D(ne):ye[0],!0),e[m+"1"]=V.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=M3(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=M3(Y,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=M3(Y,ne.b,l[y+"hoverformat"]),e.spikeDistance=(Z(ne)+O(ne))/2,e[m+"Spike"]=V.c2p(ne.p,!0),ine(ne,l,e),e.hovertemplate=l.hovertemplate,e}}function CR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=lne(e,r);if(kR.opacity(t))return t;if(kR.opacity(a)&&n)return a}LR.exports={hoverPoints:sne,hoverOnBars:SR,getTraceColor:CR}});var ER=J((Mve,DR)=>{"use strict";DR.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 RR=J((Ave,PR)=>{"use strict";PR.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";zR.exports={attributes:Pc(),layoutAttributes:g3(),supplyDefaults:Rc().supplyDefaults,crossTraceDefaults:Rc().crossTraceDefaults,supplyLayoutDefaults:JP(),calc:tR(),crossTraceCalc:s2().crossTraceCalc,colorbar:c2(),arraysToCalcdata:b3(),plot:AR().plot,style:a1().style,styleOnSelect:a1().styleOnSelect,hoverPoints:qR().hoverPoints,eventData:ER(),selectPoints:RR(),moduleType:"trace",name:"bar",basePlotModule:Cd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var IR=J((Sve,FR)=>{"use strict";FR.exports=NR()});var k3=J((Cve,OR)=>{"use strict";var A3=Wn(),fne=Jd().attributes,cne=ma(),vne=mi(),{hovertemplateAttrs:hne,texttemplateAttrs:dne,templatefallbackAttrs:HR}=fo(),rs=Wt().extendFlat,pne=gi().pattern,o1=cne({editType:"plot",arrayOk:!0,colorEditType:"plot"});OR.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:vne.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:pne,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:rs({},A3.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:hne({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:HR(),texttemplate:dne({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:HR({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:rs({},o1,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:rs({},o1,{}),outsidetextfont:rs({},o1,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:rs({},A3.showlegend,{arrayOk:!0}),legend:rs({},A3.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:rs({},o1,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:fne({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 VR=J((Lve,UR)=>{"use strict";var mne=Hr(),Hc=Ie(),yne=k3(),gne=Jd().defaults,bne=Rc().handleText,xne=Ie().coercePattern;function BR(e,r){var t=Hc.isArrayOrTypedArray(e),a=Hc.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 YR(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");xne(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 _ne(e,r,t,a){function n(w,T){return Hc.coerce(e,r,yne,w,T)}var i=n("labels"),l=n("values"),o=BR(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,YR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var v;if(f||(v=n("textinfo",Hc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||v&&v!=="none"){var h=n("textposition");bne(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");gne(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"),Hc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}UR.exports={handleLabelsAndValues:BR,handleMarkerDefaults:YR,supplyDefaults:_ne}});var S3=J((qve,GR)=>{"use strict";GR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var XR=J((Dve,WR)=>{"use strict";var wne=Ie(),Tne=S3();WR.exports=function(r,t){function a(n,i){return wne.coerce(r,t,Tne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var L3=J((Eve,KR)=>{"use strict";var Mne=Hr(),C3=_n(),Ane=Er(),kne={};function Sne(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 ZR(e){return function(t,a){return!t||(t=C3(t),!t.isValid())?!1:(t=Ane.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Cne(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,kne));for(var o=0,s=0;s{"use strict";var Lne=_i().appendArrayMultiPointValues;QR.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]),Lne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var xz=J((Rve,bz)=>{"use strict";var tn=Ir(),qne=Ht(),s1=Li(),nz=Er(),il=at(),wa=Ie(),Dne=wa.strScale,jR=wa.strTranslate,q3=ya(),iz=zc(),Ene=iz.recordMinTextSize,Pne=iz.clearMinTextSize,lz=pc().TEXTPAD,wr=K0(),u1=$R(),ez=Ie().isValidTextValue;function Rne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Pne("pie",a),uz(r,e),mz(r,n);var i=wa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=tn.select(this),s=l[0],u=s.trace;Une(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=tn.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){tn.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=tn.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(oz,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(Y,H,Q,K){var ne=K*(H[0]-Y[0]),pe=K*(H[1]-Y[1]);return"a"+K*s.r+","+K*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ne+","+pe}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 W=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+W*b.px0[0]+","+W*b.px0[1]+I+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}yz(e,b,s);var Z=wr.castOption(u.textposition,b.pts),V=q.selectAll("g.slicetext").data(b.text&&Z!=="none"?[0]:[]);V.enter().append("g").classed("slicetext",!0),V.exit().remove(),V.each(function(){var Y=wa.ensureSingle(tn.select(this),"text","",function(re){re.attr("data-notex",1)}),H=wa.ensureUniformFontSize(e,Z==="outside"?Nne(u,b,a.font):sz(u,b,a.font));Y.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(il.font,H).call(q3.convertToTspans,e);var Q=il.bBox(Y.node()),K;if(Z==="outside")K=az(Q,b);else if(K=fz(Q,b,s),Z==="auto"&&K.scale<1){var ne=wa.ensureUniformFontSize(e,u.outsidetextfont);Y.call(il.font,ne),Q=il.bBox(Y.node()),K=az(Q,b)}var pe=K.textPosAngle,ye=pe===void 0?b.pxmid:f1(s.r,pe);if(K.targetX=C+ye[0]*K.rCenter+(K.x||0),K.targetY=k+ye[1]*K.rCenter+(K.y||0),gz(K,Q),K.outside){var Se=K.targetY;b.yLabelMin=Se-Q.height/2,b.yLabelMid=Se,b.yLabelMax=Se+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}K.fontSize=H.size,Ene(u.type,K,a),l[M].transform=K,wa.setTransormAndDisplay(Y,K)})});var d=tn.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(tn.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(il.font,u.title.font).call(q3.convertToTspans,e);var C;u.title.position==="middle center"?C=Hne(s):C=dz(s,n),b.attr("transform",jR(C.x,C.y)+Dne(Math.min(1,C.scale))+jR(C.tx,C.ty))}),h&&Bne(v,u),zne(f,u),h&&u.automargin){var m=il.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),w=(.5*g-s.r)/n.w,T=(.5*_-s.r)/n.h;qne.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-T,yt:y.y[1]+T,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=tn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function zne(e,r){e.each(function(t){var a=tn.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(nz.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function oz(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=s1.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 w=f.hoverlabel,T=w.font,b=[];s1.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(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[u1(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:[u1(s,f)],event:tn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=tn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=tn.event,r.emit("plotly_unhover",{points:[u1(v,f)],event:tn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(s1.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=[u1(s,f)],s1.click(r,tn.event))})}function Nne(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 sz(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||nz.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function uz(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/T,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=rz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=tz(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 Fne(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 Hne(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 dz(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=pz(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=One(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=D3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function One(e,r){return e/(r===void 0?1:r)}function D3(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 pz(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 Bne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(T,b){return T.pxmid[1]-b.pxmid[1]}function g(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=M-C,P,z,F,O,I,W;if(D*s>0&&(T.labelExtraY=D),!!wa.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(O=F.cyFinal+l(F.px0[1],F.px1[1]),D=O-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(P=3*o*Math.abs(z-v.indexOf(T)),I=F.cxFinal+i(F.px0[0],F.px1[0]),W=I+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,W*o>0&&(T.labelExtraX+=W)))}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=Ine(u,r))}function f1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function yz(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);ez(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 w=g(r),T=wr.getFirstFilled(n.text,r.pts);(ez(T)||T==="")&&(w.text=T),r.text=wa.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:_})}}}function gz(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}bz.exports={plot:Rne,formatSliceLabel:yz,transformInsideText:fz,determineInsideTextFont:sz,positionTitleOutside:dz,prerenderTitles:uz,layoutAreas:mz,attachFxHandlers:oz,computeTransform:gz}});var Tz=J((zve,wz)=>{"use strict";var _z=Ir(),Vne=Q0(),Gne=zc().resizeText;wz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Gne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=_z.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){_z.select(this).call(Vne,o,i,r)})})}});var Az=J(Du=>{"use strict";var Mz=Ht();Du.name="pie";Du.plot=function(e,r,t,a){Mz.plotBasePlot(Du.name,e,r,t,a)};Du.clean=function(e,r,t,a){Mz.cleanBasePlot(Du.name,e,r,t,a)}});var Sz=J((Fve,kz)=>{"use strict";kz.exports={attributes:k3(),supplyDefaults:VR().supplyDefaults,supplyLayoutDefaults:XR(),layoutAttributes:S3(),calc:L3().calc,crossTraceCalc:L3().crossTraceCalc,plot:xz().plot,style:Tz(),styleOne:Q0(),moduleType:"trace",name:"pie",basePlotModule:Az(),categories:["pie-like","pie","showLegend"],meta:{}}});var Lz=J((Ive,Cz)=>{"use strict";Cz.exports=Sz()});var Ca=J((Hve,Dz)=>{"use strict";var qz=Object.getOwnPropertySymbols,Wne=Object.prototype.hasOwnProperty,Xne=Object.prototype.propertyIsEnumerable;function Zne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jne(){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}}Dz.exports=Jne()?Object.assign:function(e,r){for(var t,a=Zne(e),n,i=1;i{var v1=Ca();function Ez(){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={}}v1(Ez.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 E3(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 c1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}v1(E3.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?"-":"")+c1(Math.abs(this.year()),4)+"-"+c1(this.month(),2)+"-"+c1(this.day(),2)}});function P3(){this.shortYearCutoff="+10"}v1(P3.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 E3(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?"-":"")+c1(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=Pz.exports=new Ez;Pr.cdate=E3;Pr.baseCalendar=P3;Pr.calendars.gregorian=R3});var Rz=J(()=>{var z3=Ca(),oa=La();z3(oa.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"});oa.local=oa.regionalOptions[""];z3(oa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});z3(oa.baseCalendar.prototype,{UNIX_EPOCH:oa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:oa.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 oa.local.invalidFormat||oa.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;T+C1},f=function(b,M,C,k){var q=""+M;if(u(b,k))for(;q.length1},w=function(F,O){var I=_(F,O),W=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],Z=new RegExp("^-?\\d{1,"+W+"}"),V=r.substring(q).match(Z);if(!V)throw(oa.local.missingNumberAt||oa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=V[0].length,parseInt(V[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},M=function(F,O,I,W){for(var Z=_(F,W)?I:O,V=0;V-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 zz=J(()=>{var Gl=La(),Kne=Ca(),N3=Gl.instance();function h1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h1.prototype=new Gl.baseCalendar;Kne(h1.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($ne);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(jne);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(eie);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 Gl.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 Gl.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,Gl.local.invalidyear),n=Xl[a-Xl[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=N3.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=Wl[e-Wl[0]],a=t>>13,n=a?12:11;if(r>n)throw Gl.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,Gl.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=tie(e,i,t,n);return N3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=N3.fromJD(e),t=rie(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(Qne),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(h1.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 Qne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,$ne=/^\d?\d[iI]?/m,jne=/^闰?十?[一二三四五六七八九]?月/m,eie=/^闰?十?[一二三四五六七八九]?/m;Gl.calendars.chinese=h1;var Wl=[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 rie(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=Xl[n.year-Xl[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Xl[i.year-Xl[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 _=Wl[i.year-Wl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=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=Wl[l.year-Wl[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,T=_>>5&15,b=_&31,M=new Date(w,T-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var Nz=J(()=>{var ts=La(),aie=Ca();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new ts.baseCalendar;aie(F3.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 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,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 a=this._validate(e,r,t,ts.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)}});ts.calendars.coptic=F3});var Fz=J(()=>{var ll=La(),nie=Ca();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new ll.baseCalendar;nie(I3.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,ll.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.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,ll.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ll.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,ll.local.invalidDate);return{century:iie[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ll.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 iie={20:"Fruitbat",21:"Anchovy"};ll.calendars.discworld=I3});var Iz=J(()=>{var as=La(),lie=Ca();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new as.baseCalendar;lie(H3.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 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.ethiopian=H3});var Hz=J(()=>{var Zl=La(),oie=Ca();function O3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O3.prototype=new Zl.baseCalendar;oie(O3.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,Zl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,d1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zl.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,Zl.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,Zl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&d1(this.daysInYear(e),10)===5?30:r===9&&d1(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,Zl.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,Zl.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 d1(e,r){return e-r*Math.floor(e/r)}Zl.calendars.hebrew=O3});var Oz=J(()=>{var Oc=La(),sie=Ca();function B3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B3.prototype=new Oc.baseCalendar;sie(B3.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,Oc.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,Oc.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,Oc.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)}});Oc.calendars.islamic=B3});var Bz=J(()=>{var Bc=La(),uie=Ca();function Y3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y3.prototype=new Bc.baseCalendar;uie(Y3.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,Bc.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,Bc.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,Bc.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)}});Bc.calendars.julian=Y3});var Uz=J(()=>{var Bn=La(),fie=Ca();function V3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V3.prototype=new Bn.baseCalendar;fie(V3.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,Bn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bn.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,Bn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Bn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Bn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bn.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=U3(e+8+17*20,365);return[Math.floor(r/20)+1,U3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Yz(e+20,20),Yz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Bn.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 U3(e,r){return e-r*Math.floor(e/r)}function Yz(e,r){return U3(e-1,r)+1}Bn.calendars.mayan=V3});var Gz=J(()=>{var ns=La(),cie=Ca();function G3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G3.prototype=new ns.baseCalendar;var Vz=ns.instance("gregorian");cie(G3.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,ns.local.invalidYear||ns.regionalOptions[""].invalidYear);return Vz.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,ns.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,ns.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)}});ns.calendars.nanakshahi=G3});var Wz=J(()=>{var is=La(),vie=Ca();function W3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W3.prototype=new is.baseCalendar;vie(W3.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,is.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,is.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,is.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=is.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=is.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 Eu=La(),hie=Ca();function m1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function p1(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}m1.prototype=new Eu.baseCalendar;hie(m1.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,Eu.local.invalidYear);return p1(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,Eu.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,Eu.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,p1(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)}});Eu.calendars.persian=m1;Eu.calendars.jalali=m1});var Zz=J(()=>{var ls=La(),die=Ca(),y1=ls.instance();function X3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X3.prototype=new ls.baseCalendar;die(X3.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,ls.local.invalidYear),t=this._t2gYear(r.year());return y1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ls.local.invalidYear),n=this._t2gYear(a.year());return y1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ls.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,ls.local.invalidDate),n=this._t2gYear(a.year());return y1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=y1.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)}});ls.calendars.taiwan=X3});var Jz=J(()=>{var os=La(),pie=Ca(),g1=os.instance();function Z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z3.prototype=new os.baseCalendar;pie(Z3.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,os.local.invalidYear),t=this._t2gYear(r.year());return g1.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 g1.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 g1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=g1.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)}});os.calendars.thai=Z3});var Kz=J(()=>{var ss=La(),mie=Ca();function J3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J3.prototype=new ss.baseCalendar;mie(J3.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,ss.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,ss.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Jl[n]-Jl[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,ss.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Jl[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-Jl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ss.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=ss.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ss.calendars.ummalqura=J3;var Jl=[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 $z=J((y0e,Qz)=>{"use strict";Qz.exports=La();Rz();zz();Nz();Fz();Iz();Hz();Oz();Bz();Uz();Gz();Wz();Xz();Zz();Jz();Kz()});var iN=J((g0e,nN)=>{"use strict";var eN=$z(),Yc=Ie(),rN=Gt(),yie=rN.EPOCHJD,gie=rN.ONEDAY,$3={valType:"enumerated",values:Yc.sortObjectKeys(eN.calendars),editType:"calc",dflt:"gregorian"},tN=function(e,r,t,a){var n={};return n[t]=$3,Yc.coerce(e,r,n,t,a)},bie=function(e,r,t,a){for(var n=0;n{"use strict";lN.exports=iN()});var Aie=J((x0e,uN)=>{var sN=DP();sN.register([IR(),Lz(),oN()]);uN.exports=sN});return Aie();})(); +`+v4(i.dayMonthYear,e,a,n);return v4(r,e,a,n)};var h4=3*Ja;Rt.incrementMonth=function(e,r,t){t=Yi(t)&&t;var a=ml(e,Ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ja)+af,i=Bi.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-af)*Ja+a}catch(s){mp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+h4);return o.setUTCMonth(o.getUTCMonth()+r)+a-h4};Rt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Yi(r)&&Bi.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";y4.exports=function(r){return r}});var bp=J(Ui=>{"use strict";var qO=Hr(),DO=uo(),EO=yp(),PO=Gt().BADNUM,gp=1e-9;Ui.findBin=function(e,r,t){if(qO(r.start))return t?Math.ceil((e-r.start)/r.size-gp)-1:Math.floor((e-r.start)/r.size+gp);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?RO:zO:s=t?FO:NO,e+=l*gp*(t?-1:1)*(l>=0?1:-1);a90&&DO.log("Long binary search..."),a-1};function RO(e,r){return er}function FO(e,r){return e>=r}Ui.sorterAsc=function(e,r){return e-r};Ui.sorterDes=function(e,r){return r-e};Ui.distinctVals=function(e){var r=e.slice();r.sort(Ui.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===PO;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}};Ui.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()};Ui.findIndexOfMin=function(e,r){r=r||EO;for(var t=1/0,a,n=0;n{"use strict";g4.exports=function(r){return Object.keys(r).sort()}});var b4=J(zt=>{"use strict";var nf=Hr(),IO=an().isArrayOrTypedArray;zt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),nf(r)||(r=!1),IO(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 M4=J((toe,T4)=>{"use strict";var x4=xs(),_p=x4.mod,HO=x4.modHalf,lf=Math.PI,yl=2*lf;function OO(e){return e/180*lf}function BO(e){return e/lf*180}function wp(e){return Math.abs(e[1]-e[0])>yl-1e-14}function _4(e,r){return HO(r-e,yl)}function YO(e,r){return Math.abs(_4(e,r))}function w4(e,r){if(wp(r))return!0;var t,a;r[0]a&&(a+=yl);var n=_p(e,yl),i=n+yl;return n>=t&&n<=a||i>=t&&i<=a}function UO(e,r,t,a){if(!w4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Tp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=wp([t,a]),s,u,f,v,h;o?(s=0,u=lf,f=yl):t{"use strict";vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var C4=J(ho=>{"use strict";var Mp=xs().mod;ho.segmentsIntersect=S4;function S4(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}}ho.segmentDistance=function(r,t,a,n,i,l,o,s){if(S4(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,Ap,k4;ho.getTextLocation=function(r,t,a,n){if((r!==Ap||n!==k4)&&(Xv={},Ap=r,k4=n),Xv[a])return Xv[a];var i=r.getPointAtLength(Mp(a-n/2,t)),l=r.getPointAtLength(Mp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Mp(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};ho.clearLocationCache=function(){Ap=null};ho.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,w=g.yo?g.y-o:0;return Math.sqrt(_*_+w*w)}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}};ho.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=J(of=>{"use strict";var Vi={};of.throttle=function(r,t,a){var n=Vi[r],i=Date.now();if(!n){for(var l in Vi)Vi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};of.done=function(e){var r=Vi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};of.clear=function(e){if(e)L4(Vi[e]),delete Vi[e];else for(var r in Vi)of.clear(r)};function L4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var D4=J((loe,q4)=>{"use strict";q4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var E4=J((ooe,Jv)=>{"use strict";Jv.exports=kp;Jv.exports.isMobile=kp;Jv.exports.default=kp;var XO=/(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,ZO=/CrOS/,JO=/android|ipad|playbook|silk/i;function kp(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=XO.test(r)&&!ZO.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 R4=J((soe,P4)=>{"use strict";var KO=Hr(),QO=E4();P4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=$O(),typeof t!="string")return!0;var a=QO({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(KO(u)&&(u=+u),u>=13)return!0}}}return a};function $O(){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 N4=J((uoe,z4)=>{"use strict";var jO=Ir();z4.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]=jO.select(this)}),n}});var I4=J((foe,F4)=>{"use strict";var eB=br();F4.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=eB.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var O4=J((coe,H4)=>{"use strict";H4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";B4.exports=function(r){for(var t=aB(r)?tB:rB,a=[],n=0;n{"use strict";U4.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 W4=J((doe,G4)=>{"use strict";var nB=Hr(),iB=Gt().BADNUM,lB=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G4.exports=function(r){return typeof r=="string"&&(r=r.replace(lB,"")),nB(r)?Number(r):iB}});var Ie=J((poe,i6)=>{"use strict";var sf=Ir(),oB=gs().utcFormat,sB=J1().format,$4=Hr(),j4=Gt(),e6=j4.FP_SAFE,uB=-e6,X4=j4.BADNUM,fe=i6.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 Z4={};fe.warnBadFormat=function(e){var r=String(e);Z4[r]||(Z4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=sB(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=kv();fe.keyedContainer=Hb();fe.relativeAttr=Bb();fe.isPlainObject=fl();fe.toLogRange=Cv();fe.relinkPrivateKeys=Gb();var gl=an();fe.isArrayBuffer=gl.isArrayBuffer;fe.isTypedArray=gl.isTypedArray;fe.isArrayOrTypedArray=gl.isArrayOrTypedArray;fe.isArray1D=gl.isArray1D;fe.ensureArray=gl.ensureArray;fe.concat=gl.concat;fe.maxRowLength=gl.maxRowLength;fe.minRowLength=gl.minRowLength;var r6=xs();fe.mod=r6.mod;fe.modHalf=r6.modHalf;var bl=fx();fe.valObjectMeta=bl.valObjectMeta;fe.coerce=bl.coerce;fe.coerce2=bl.coerce2;fe.coerceFont=bl.coerceFont;fe.coercePattern=bl.coercePattern;fe.coerceHoverinfo=bl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=bl.coerceSelectionMarkerOpacity;fe.validate=bl.validate;var nn=m4();fe.dateTime2ms=nn.dateTime2ms;fe.isDateTime=nn.isDateTime;fe.ms2DateTime=nn.ms2DateTime;fe.ms2DateTimeLocal=nn.ms2DateTimeLocal;fe.cleanDate=nn.cleanDate;fe.isJSDate=nn.isJSDate;fe.formatDate=nn.formatDate;fe.incrementMonth=nn.incrementMonth;fe.dateTick0=nn.dateTick0;fe.dfltRange=nn.dfltRange;fe.findExactDates=nn.findExactDates;fe.MIN_MS=nn.MIN_MS;fe.MAX_MS=nn.MAX_MS;var po=bp();fe.findBin=po.findBin;fe.sorterAsc=po.sorterAsc;fe.sorterDes=po.sorterDes;fe.distinctVals=po.distinctVals;fe.roundUp=po.roundUp;fe.sort=po.sort;fe.findIndexOfMin=po.findIndexOfMin;fe.sortObjectKeys=xp();var Gi=b4();fe.aggNums=Gi.aggNums;fe.len=Gi.len;fe.mean=Gi.mean;fe.geometricMean=Gi.geometricMean;fe.median=Gi.median;fe.midRange=Gi.midRange;fe.variance=Gi.variance;fe.stdev=Gi.stdev;fe.interp=Gi.interp;var Zn=Nv();fe.init2dArray=Zn.init2dArray;fe.transposeRagged=Zn.transposeRagged;fe.dot=Zn.dot;fe.translationMatrix=Zn.translationMatrix;fe.rotationMatrix=Zn.rotationMatrix;fe.rotationXYMatrix=Zn.rotationXYMatrix;fe.apply3DTransform=Zn.apply3DTransform;fe.apply2DTransform=Zn.apply2DTransform;fe.apply2DTransform2=Zn.apply2DTransform2;fe.convertCssMatrix=Zn.convertCssMatrix;fe.inverseTransformMatrix=Zn.inverseTransformMatrix;var bi=M4();fe.deg2rad=bi.deg2rad;fe.rad2deg=bi.rad2deg;fe.angleDelta=bi.angleDelta;fe.angleDist=bi.angleDist;fe.isFullCircle=bi.isFullCircle;fe.isAngleInsideSector=bi.isAngleInsideSector;fe.isPtInsideSector=bi.isPtInsideSector;fe.pathArc=bi.pathArc;fe.pathSector=bi.pathSector;fe.pathAnnulus=bi.pathAnnulus;var Es=A4();fe.isLeftAnchor=Es.isLeftAnchor;fe.isCenterAnchor=Es.isCenterAnchor;fe.isRightAnchor=Es.isRightAnchor;fe.isTopAnchor=Es.isTopAnchor;fe.isMiddleAnchor=Es.isMiddleAnchor;fe.isBottomAnchor=Es.isBottomAnchor;var Ps=C4();fe.segmentsIntersect=Ps.segmentsIntersect;fe.segmentDistance=Ps.segmentDistance;fe.getTextLocation=Ps.getTextLocation;fe.clearLocationCache=Ps.clearLocationCache;fe.getVisibleSegment=Ps.getVisibleSegment;fe.findPointOnPath=Ps.findPointOnPath;var $v=Wt();fe.extendFlat=$v.extendFlat;fe.extendDeep=$v.extendDeep;fe.extendDeepAll=$v.extendDeepAll;fe.extendDeepNoArrays=$v.extendDeepNoArrays;var Sp=uo();fe.log=Sp.log;fe.warn=Sp.warn;fe.error=Sp.error;var fB=ws();fe.counterRegex=fB.counter;var Cp=Zv();fe.throttle=Cp.throttle;fe.throttleDone=Cp.done;fe.clearThrottle=Cp.clear;var Jn=ef();fe.getGraphDiv=Jn.getGraphDiv;fe.isPlotDiv=Jn.isPlotDiv;fe.removeElement=Jn.removeElement;fe.addStyleRule=Jn.addStyleRule;fe.addRelatedStyleRule=Jn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Jn.deleteRelatedStyleRule;fe.setStyleOnHover=Jn.setStyleOnHover;fe.getFullTransformMatrix=Jn.getFullTransformMatrix;fe.getElementTransformMatrix=Jn.getElementTransformMatrix;fe.getElementAndAncestors=Jn.getElementAndAncestors;fe.equalDomRects=Jn.equalDomRects;fe.clearResponsive=D4();fe.preserveDrawingBuffer=R4();fe.makeTraceGroups=N4();fe._=I4();fe.notifier=lp();fe.filterUnique=O4();fe.filterVisible=Y4();fe.pushUnique=up();fe.increment=V4();fe.cleanNumber=W4();fe.ensureNumber=function(r){return $4(r)?(r=Number(r),r>e6||r=r?!1:$4(e)&&e>=0&&e%1===0};fe.noop=zv();fe.identity=yp();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;nhB.test(window.navigator.userAgent);var dB=/Firefox\/(\d+)\.\d+/;fe.getFirefoxVersion=function(){var e=dB.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 sf.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 n6=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return n6.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var yB={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=e=>Lp(yv(no({},e),{opts:yB}));var gB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=e=>Lp(yv(no({},e),{opts:gB}));var bB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xB(e){var r=e.match(bB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var _B={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=e=>Lp(yv(no({},e),{opts:_B}));var J4=/^[:|\|]/;function Lp({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=xB(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(n6.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<=K4,u=o>=Qv&&o<=K4;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 Ds=2e9;fe.seedPseudoRandom=function(){Ds=2e9};fe.pseudoRandom=function(){var e=Ds;return Ds=(69069*Ds+1)%4294967296,Math.abs(Ds-e)<429496729?fe.pseudoRandom():Ds/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 Q4=fe.getFirefoxVersion(),wB=Q4!==null&&Q4<86;fe.getPositionFromD3Event=function(){return wB?[sf.event.layerX,sf.event.layerY]:[sf.event.offsetX,sf.event.offsetY]}});var s6=J(()=>{"use strict";var TB=Ie(),l6={"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(qp in l6)o6=qp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),TB.addStyleRule(o6,l6[qp]);var o6,qp});var Dp=J((boe,u6)=>{u6.exports=!0});var Pp=J((xoe,f6)=>{"use strict";var MB=Dp(),Ep;typeof window.matchMedia=="function"?Ep=!window.matchMedia("(hover: none)").matches:Ep=MB;f6.exports=Ep});var r0=J((_oe,Rp)=>{"use strict";var Rs=typeof Reflect=="object"?Reflect:null,c6=Rs&&typeof Rs.apply=="function"?Rs.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},jv;Rs&&typeof Rs.ownKeys=="function"?jv=Rs.ownKeys:Object.getOwnPropertySymbols?jv=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:jv=function(r){return Object.getOwnPropertyNames(r)};function AB(e){console&&console.warn&&console.warn(e)}var h6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Rp.exports=vt;Rp.exports.once=LB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var v6=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(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return v6},set:function(e){if(typeof e!="number"||e<0||h6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");v6=e}});vt.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};vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||h6(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 d6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return d6(this)};vt.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")c6(s,this,t);else for(var u=s.length,f=b6(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,AB(o)}return e}vt.prototype.addListener=function(r,t){return p6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return p6(this,r,t,!0)};function kB(){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 m6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=kB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return e0(t),this.on(r,m6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return e0(t),this.prependListener(r,m6(this,r,t)),this};vt.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():SB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};vt.prototype.off=vt.prototype.removeListener;vt.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 y6(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?CB(n):b6(n,n.length)}vt.prototype.listeners=function(r){return y6(this,r,!0)};vt.prototype.rawListeners=function(r){return y6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):g6.call(e,r)};vt.prototype.listenerCount=g6;function g6(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}vt.prototype.eventNames=function(){return this._eventsCount>0?jv(this._events):[]};function b6(e,r){for(var t=new Array(r),a=0;a{"use strict";var zp=r0().EventEmitter,DB={init:function(e){if(e._ev instanceof zp)return e;var r=new zp,t=new zp;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 w6=Ie(),EB=so().dfltConfig;function PB(e,r){for(var t=[],a,n=0;nEB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Wi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Wi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Wi.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";A6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Fs=J(Xt=>{"use strict";var Tn=br(),ff=Ie(),a0=Wn(),Fp=ks(),RB=Np(),zB=rf(),NB=so().configAttributes,k6=yi(),Kn=ff.extendDeepAll,zs=ff.isPlainObject,FB=ff.isArrayOrTypedArray,n0=ff.nestedProperty,IB=ff.valObjectMeta,Ip="_isSubplotObj",i0="_isLinkedToArray",HB="_arrayAttrRegexps",C6="_deprecated",Hp=[Ip,i0,HB,C6];Xt.IS_SUBPLOT_OBJ=Ip;Xt.IS_LINKED_TO_ARRAY=i0;Xt.DEPRECATED=C6;Xt.UNDERSCORE_ATTRS=Hp;Xt.get=function(){var e={};return Tn.allTypes.forEach(function(r){e[r]=BB(r)}),{defs:{valObjects:IB,metaKeys:Hp.concat(["description","role","editType","impliedEdits"]),editType:{traces:k6.traces,layout:k6.layout},impliedEdits:{}},traces:e,layout:YB(),frames:UB(),animation:Ns(zB),config:Ns(NB)}};Xt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Hp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Xt.isValObject(l)&&zs(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)FB(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 BB(e){var r,t;r=Tn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Kn({},a0),i=Kn({},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)}),Kn(a,n),Tn.traceIs(e,"noOpacity")&&delete a.opacity,Tn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Tn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Kn(a,i),t.attributes&&Kn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ns(a)};if(r.layoutAttributes){var o={};Kn(o,r.layoutAttributes),l.layoutAttributes=Ns(o)}return r.animatable||Xt.crawl(l,function(s){Xt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function YB(){var e={},r,t;Kn(e,Fp);for(r in Tn.subplotsRegistry)if(t=Tn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Is=Ie(),ZB=Wn(),xl="templateitemname",Op={name:{valType:"string",editType:"none"}};Op[xl]={valType:"string",editType:"calc"};mo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Op.name,r[xl]=Op[xl],r};mo.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=Is.coerce(i,{},ZB,"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}};mo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Is.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};mo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[D6(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[xl]=u[xl];if(!q6(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][xl]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?Is.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)Is.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var jt=J((Soe,E6)=>{"use strict";var cf=ws().counter;E6.exports={idRegex:{x:cf("x","( domain)?"),y:cf("y","( domain)?")},attrRegex:cf("[xy]axis"),xAxisMatch:cf("xaxis"),yAxisMatch:cf("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=J(Ka=>{"use strict";var JB=br(),Bp=jt();Ka.id2name=function(r){if(!(typeof r!="string"||!r.match(Bp.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ka.name2id=function(r){if(r.match(Bp.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ka.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Bp.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":"")}};Ka.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ka.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ka.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function P6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function KB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function QB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}R6.exports={clearOutlineControllers:KB,clearOutline:QB}});var l0=J((qoe,z6)=>{"use strict";z6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Yp=J(s0=>{"use strict";var o0=br(),Doe=jt().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 $B=br(),Hs=Ie();yo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=yo.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){N6(e,l,n.cache),n.check=function(){if(i){var f=N6(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;Hs.isPlainObject(i)?Up(i,r,l,a+1):r(l,n,i)}})}});var Ht=J((Roe,j6)=>{"use strict";var W6=Ir(),eY=gs().timeFormatLocale,rY=J1().formatLocale,vf=Hr(),tY=K1(),Wr=br(),X6=Fs(),aY=ct(),fr=Ie(),Z6=Er(),O6=Gt().BADNUM,Qa=Zt(),nY=_l().clearOutline,iY=l0(),Vp=rf(),lY=Np(),oY=Yp().getModuleCalcData,B6=fr.relinkPrivateKeys,go=fr._,$e=j6.exports={};fr.extendFlat($e,Wr);$e.attributes=Wn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ma();$e.layoutAttributes=ks();var f0=H6();$e.executeAPICommand=f0.executeAPICommand;$e.computeAPICommandBindings=f0.computeAPICommandBindings;$e.manageCommandObserver=f0.manageCommandObserver;$e.hasSimpleAPICommandBindings=f0.hasSimpleAPICommandBindings;$e.redrawText=function(e){return e=fr.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($e.previousPromises(e)))},300)})};$e.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.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||fr.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};$e.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};$e.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Z6.defaultLine,"pointer-events":"all"}).each(function(){var u=W6.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&&sY(e,i),l.text(i.text()&&o.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(){$e.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})}}$e.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=W6.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=$e.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var uY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],fY=["year","month","dayMonth","dayMonthYear"];$e.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||$e.createTransitionData(e),n._dfltTitle={plot:go(e,"Click to enter Plot title"),subtitle:go(e,"Click to enter Plot subtitle"),x:go(e,"Click to enter X axis title"),y:go(e,"Click to enter Y axis title"),colorbar:go(e,"Click to enter Colorscale title"),annotation:go(e,"new text")},n._traceWord=go(e,"trace");var h=Y6(e,uY);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;$e.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),$e.sanitizeMargins(n)}else{$e.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,w=y&&(g||_);w?$e.plotAutoSize(e,i,n):y&&$e.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=hY(h,n.separators),n._extraFormat=Y6(e,fY),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=vY(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=cY(l,s),$e.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,$e.linkSubplots(o,n,l,a),$e.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),I=F,W=O;I&&!W?a._bgLayer.remove():W&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&nY({_fullLayout:a}),dY(o,n),B6(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Z=n._tracePreGUI,V={},Y;for(Y in Z)V[Y]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=$e.layoutAttributes.width.min,h=$e.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}),$e.sanitizeMargins(a)};$e.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(fr.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 w=t.xl!==void 0?t.xl:t.x,T=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:w,size:t.l+y},r:{val:T,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 $e.doAutoMargin(e)}};function mY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}$e.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),J6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.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 w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],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"&&vf(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,W=z.size,Z=t-l.r-l.l,V=a-l.t-l.b;for(var Y in h){if(vf(O)&&h[Y].r){var H=h[Y].r.val,Q=h[Y].r.size;if(H>F){var K=(O*H+(Q-Z)*F)/(H-F),ne=(Q*(1-F)+(O-Z)*(1-H))/(H-F);K+ne>s+u&&(s=K,u=ne)}}if(vf(W)&&h[Y].t){var pe=h[Y].t.val,ye=h[Y].t.size;if(pe>I){var Se=(W*pe+(ye-V)*I)/(pe-I),re=(ye*(1-I)+(W-V)*(1-pe))/(pe-I);Se+re>v+f&&(v=Se,f=re)}}}}}var Ce=fr.constrain(t-i.l-i.r,K6,m),de=fr.constrain(a-i.t-i.b,Q6,y),be=Math.max(0,t-Ce),ge=Math.max(0,a-de);if(be){var Ae=(s+u)/be;Ae>1&&(s/=Ae,u/=Ae)}if(ge){var B=(v+f)/ge;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&&($e.didMarginChange(o,n)||mY(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,fr.warn("Too many auto-margin redraws.")}yY(e)};function yY(e){var r=Qa.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};$e.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&$e.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(fr.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.slice(-3)==="src")return}else if(t==="keepstream"){if(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0&&!fr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var g=Array.isArray(h),_=fr.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(w)?tY.encode(w):w},d)}return g?h.map(function(T){return u(T,d)}):_?fr.simpleMap(h,fr.identity):fr.isJSDate(h)?fr.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)};$e.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=[$e.previousPromises,s,t.prepareFn,$e.rehover,$e.reselect,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Qa.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:O6,y:O6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(V6(t,a,n),o=0;o{"use strict";bo.xmlns="http://www.w3.org/2000/xmlns/";bo.svg="http://www.w3.org/2000/svg";bo.xlink="http://www.w3.org/1999/xlink";bo.svgAttrs={xmlns:bo.svg,"xmlns:xlink":bo.xlink}});var Ma=J((Noe,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 ya=J(Mn=>{"use strict";var Ot=Ir(),Xi=Ie(),xY=Xi.strTranslate,Gp=xo(),_Y=Ma().LINE_SPACING,wY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(wY),i=Ot.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=zY(e.node(),a);s&&e.style("pointer-events","all"),Mn.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};kY(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 w=e.node().style.fill||"black",T=m.select("g");T.attr({fill:w,stroke:w});var b=T.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]+")"+xY(-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 TY=/(<|<|<)/g,MY=/(>|>|>)/g;function AY(e){return e.replace(TY,"\\lt ").replace(MY,"\\gt ")}var r7=[["$","$"],["\\(","\\)"]];function kY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Xi.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Xi.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:r7},displayAlign:"left"})},u=function(){i=Xi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=r7},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 w="math-output-"+Xi.randstr({},64);o=Ot.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(AY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Xi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),M;a===2?M=Ot.select("body").select("#MathJax_SVG_glyphs"):M=w.select("defs"),t(w,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 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"},SY={sub:"0.3em",sup:"-0.6em"},CY={sub:"-0.21em",sup:"0.42em"},t7="\u200B",a7=["http:","https:","mailto:","",void 0,":"],l7=Mn.NEWLINES=/(\r\n?|\n)/g,Xp=/(<[^<>]*>)/,Zp=/<(\/?)([^ >]*)(\s+(.*))?>/i,LY=//i;Mn.BR_TAG_ALL=//gi;var o7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,s7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,u7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _o(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c0(a)}var DY=/(^|;)\s*color:/;Mn.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(Xp),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 EY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},PY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c0(e){return e.replace(PY,function(r,t){var a;return t.charAt(0)==="#"?a=RY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=EY[t],a||r})}Mn.convertEntities=c0;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(l7," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Gp.svg,"tspan");Ot.select(C).attr({class:"line",dy:i*_Y+"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&&Xi.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=LY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Xp),h=0;h{"use strict";var NY=Ir(),h0=_n(),df=Hr(),v0=Ie(),c7=Er(),FY=lo().isValid;function IY(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 y7(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 b7=hp(),OY=b7.FORMAT_LINK,BY=b7.DATE_FORMAT_LINK;function YY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Jp:x7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Jp(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: "+OY+"."].join(" ")}function x7(e,r){return Jp(e,r)+[" And for dates see: "+BY+".","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:YY,descriptionOnlyNumbers:Jp,descriptionWithDates:x7}});var Qn=J((Boe,I7)=>{"use strict";var w7=ma(),Os=mi(),F7=gi().dash,Qp=Wt().extendFlat,T7=ct().templatedArray,Ooe=fo().templateFormatStringDescription,M7=d0().descriptionWithDates,UY=Gt().ONEDAY,xi=jt(),VY=xi.HOUR_PATTERN,GY=xi.WEEKDAY_PATTERN,Kp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},WY=Qp({},Kp,{values:Kp.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"},L7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function q7(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 E7={valType:"color",dflt:Os.defaultLine,editType:"ticks"},P7={valType:"color",dflt:Os.lightLine,editType:"ticks"};function R7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var z7=Qp({},F7,{editType:"ticks"}),N7={valType:"boolean",editType:"ticks"};I7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Os.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:[xi.idRegex.x.toString(),xi.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:[xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"calc"},rangebreaks:T7("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:[GY,VY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:UY},editType:"calc"}),tickmode:WY,nticks:A7(),tick0:k7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:C7,ticktext:{valType:"data_array",editType:"ticks"},ticks:L7,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:q7(),tickwidth:D7(),tickcolor:E7,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:Qp({},F7,{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:M7("tick label")},tickformatstops:T7("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:M7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Os.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:N7,gridcolor:P7,gridwidth:R7(),griddash:z7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Os.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:Os.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Kp,nticks:A7("minor"),tick0:k7,dtick:S7,tickvals:C7,ticks:L7,ticklen:q7("minor"),tickwidth:D7("minor"),tickcolor:E7,gridcolor:P7,gridwidth:R7("minor"),griddash:z7,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 p0=J((Yoe,B7)=>{"use strict";var ht=Qn(),H7=ma(),O7=Wt().extendFlat,XY=yi().overrideAll;B7.exports=XY({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:ht.linecolor,outlinewidth:ht.linewidth,bordercolor:ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:O7({},ht.ticks,{dflt:""}),ticklabeloverflow:O7({},ht.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:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:H7({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,title:{text:{valType:"string"},font:H7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var pf=J((Voe,U7)=>{"use strict";var ZY=p0(),JY=ws().counter,KY=xp(),Y7=lo().scales,Uoe=KY(Y7);function m0(e){return"`"+e+"`"}U7.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"?Y7[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),w=m0(u+m),T=m0(u+y),b=w+" and "+T,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=ZY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:JY("coloraxis"),dflt:null,editType:"calc"}),k}});var jp=J((Goe,V7)=>{"use strict";var QY=Wt().extendFlat,$Y=pf(),$p=lo().scales;V7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:$p.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:$p.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:$p.RdBu,editType:"calc"}},coloraxis:QY({_isSubplotObj:!0,editType:"calc"},$Y("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var em=J((Woe,G7)=>{"use strict";var jY=Ie();G7.exports=function(r){return jY.isPlainObject(r.colorbar)}});var am=J(tm=>{"use strict";var rm=Hr(),W7=Ie(),X7=Gt(),eU=X7.ONEDAY,rU=X7.ONEWEEK;tm.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?eU:1;if(!e)return i;if(rm(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=rm(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};tm.tick0=function(e,r,t,a){if(r==="date")return W7.cleanDate(e,W7.dateTick0(t,a%rU===0?1:0));if(!(a==="D1"||a==="D2"))return rm(e)?Number(e):0}});var nm=J((Zoe,J7)=>{"use strict";var Z7=am(),tU=Ie().isArrayOrTypedArray,aU=an().isTypedArraySpec,nU=an().decodeTypedArraySpec;J7.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(w){var T=o[w];return aU(T)&&(T=nU(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=tU(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=Z7.dtick(h,n);s.tick0=Z7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var lm=J((Joe,Q7)=>{"use strict";var im=Ie(),K7=Qn();Q7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?K7.minor:K7,u=i?"minor.":"",f=im.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=im.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=im.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 om=J((Koe,$7)=>{"use strict";$7.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 $n=J((Qoe,j7)=>{"use strict";var y0=Ie(),iU=ct();j7.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=iU.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var sm=Ie(),lU=Er().contrast,e9=Qn(),oU=om(),sU=$n();r9.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");sm.isPlainObject(l)||delete t.labelalias;var o=oU(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?lU(i.bgColor):f&&f!==e9.color.dflt?f:u.color;if(sm.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");sU(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uU}),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 uU(e,r){function t(n,i){return sm.coerce(e,r,e9.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var fm=J((joe,t9)=>{"use strict";var fU=om();t9.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=fU(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var cm=J((ese,a9)=>{"use strict";var wl=Ie(),cU=ct(),vU=nm(),hU=lm(),dU=um(),pU=fm(),mU=p0();a9.exports=function(r,t,a){var n=cU.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return wl.coerce(i,n,mU,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",w,T,b,M="left";v?(b="middle",M=_?"left":"right",w=_?1.02:1,T=.5):(b=g?"bottom":"top",M="center",w=.5,T=g?1.02:1),wl.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:w}},"x"),wl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:T}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),wl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=wl.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"),vU(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"),pU(i,n,l,"linear",q),dU(i,n,l,"linear",q),hU(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=wl.extendFlat({},k,{family:D.family,size:wl.bigFont(D.size)});wl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var Bs=J((rse,l9)=>{"use strict";var n9=Hr(),hm=Ie(),yU=em(),gU=cm(),i9=lo().isValid,bU=br().traceIs;function vm(e,r){var t=r.slice(0,r.length-1);return r?hm.nestedProperty(e,t).get()||{}:e}l9.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=vm(r,l),f=vm(t,l),v=vm(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=bU(t,"contour")&&hm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,hm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],w=u[o+"max"],T=n9(_)&&n9(w)&&_{"use strict";var o9=Ie(),xU=ct(),s9=jp(),_U=Bs();u9.exports=function(r,t){function a(v,h){return o9.coerce(r,t,s9,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return o9.coerce(i,l,s9.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=xU.newContainer(t,s,"coloraxis"),l._name=s,_U(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wU=Ie(),TU=An().hasColorscale,MU=An().extractOpts;c9.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?wU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=MU(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 h9=Hr(),dm=Ie(),AU=An().extractOpts;d9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?dm.nestedProperty(t,l).get():t,s=AU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return dm.aggNums(Math.min,null,i)},m=function(){return dm.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&h9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&h9(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 pm=J((ise,p9)=>{"use strict";var b0=lo(),Ys=An();p9.exports={moduleType:"component",name:"colorscale",attributes:pf(),layoutAttributes:jp(),supplyLayoutDefaults:f9(),handleDefaults:Bs(),crossTraceDefaults:v9(),calc:g0(),scales:b0.scales,defaultScale:b0.defaultScale,getScale:b0.get,isValidScale:b0.isValid,hasColorscale:Ys.hasColorscale,extractOpts:Ys.extractOpts,extractScale:Ys.extractScale,flipScale:Ys.flipScale,makeColorScaleFunc:Ys.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ys.makeColorScaleFuncFromTrace}});var ln=J((lse,y9)=>{"use strict";var m9=Ie(),kU=an().isTypedArraySpec;y9.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 m9.isPlainObject(r)&&(m9.isArrayOrTypedArray(r.size)||kU(r.size))}}});var b9=J((ose,g9)=>{"use strict";var SU=Hr();g9.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 SU(s)&&s>0?Math.max(s,i):0}}});var _i=J(Aa=>{"use strict";var x0=Ie();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{w9.exports=EU;var mm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},DU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function EU(e){var r=[];return e.replace(DU,function(t,a,n){var i=a.toLowerCase();for(n=RU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==mm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var zU=ym(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",T9=Math.sqrt(2),Tl=Math.sqrt(3),gm=Math.PI,bm=Math.cos,xm=Math.sin;C9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(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=Ze(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=Ze(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=Ze(e*.4,2),n=Ze(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=Ze(e*.8/T9,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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/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=Ze(e*.924,2),n=Ze(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=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(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=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(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=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*1.1,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(e*.7,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(e/T9,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=Ze(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=Ze(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=Ze(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=Ze(e*1.3,2),n=Ze(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=Ze(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=Ze(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=Ze(e*1.2,2),n=Ze(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=Ze(e/2,2),n=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=gm/2.5,n=2*e*bm(a),i=2*e*xm(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=gm/4,n=2*e*bm(a),i=2*e*xm(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 M9,A9,k9,S9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(k9===e&&S9===r&&M9===t)return A9;k9=e,S9=r,M9=t;function a(g,_){var w=bm(g),T=xm(g),b=_[0],M=_[1]+(r||0);return[b*w-M*T,b*T+M*w]}for(var n=e/180*gm,i=0,l=0,o=zU(t),s="",u=0;u{"use strict";var ea=Ir(),tt=Ie(),NU=tt.numberFormat,Ao=Hr(),km=_n(),w0=br(),ga=Er(),FU=pm(),yf=tt.strTranslate,T0=ya(),IU=xo(),HU=Ma(),OU=HU.LINE_SPACING,H9=Pv().DESELECTDIM,BU=ln(),YU=b9(),UU=_i().appendArrayPointValue,je=J9.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(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",_m(GU(f))),s&&e.style("text-shadow",s==="auto"?T0.makeTextShadow(ga.contrast(i)):_m(s)),u&&e.style("text-decoration-line",_m(WU(u)))};function _m(e){return e==="none"?void 0:e}var VU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function GU(e){return VU[e]}function WU(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(Ao(n)&&Ao(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",yf(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=ea.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,ea.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!Ao(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||"";ga.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||"";ea.select(this).call(ga.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 O9(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(U9,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(ga.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=ea.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};O9(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ea.select(this);a[0].trace&&O9(n,a[0].trace,r,t)})};var q9=L9();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(q9).forEach(function(e){var r=q9[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 XU=je.symbolNames.length,ZU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(Ao(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>=XU||e>=400?0:Math.floor(Math.max(e,0))};function B9(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?ZU:"")}var D9=NU("~f"),Y9={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=Y9[a];return U9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function U9(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=Lm(e,t),v=Cm(e,t);r.attr("d",B9(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):tt.isArrayOrTypedArray(o.color)?m=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.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(ga.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var w=l.gradient,T=e.mgt;T?h=!0:T=w&&w.type,tt.isArrayOrTypedArray(T)&&(T=T[0],Y9[T]||(T=0));var b=l.pattern,M=je.getPatternAttr,C=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(T&&T!=="none"){var k=e.mgc;k?h=!0:k=w.color;var q=t.uid;h&&(q+="-"+e.i),je.gradient(r,n,q,T,[[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),W=M(b.solidity,e.i,.3);D=D||e.mcc||tt.isArrayOrTypedArray(b.shape)||tt.isArrayOrTypedArray(b.path)||tt.isArrayOrTypedArray(b.bgcolor)||tt.isArrayOrTypedArray(b.fgcolor)||tt.isArrayOrTypedArray(b.size)||tt.isArrayOrTypedArray(b.solidity);var Z=t.uid;D&&(Z+="-"+e.i),je.pattern(r,"point",n,Z,C,I,W,e.mcc,b.fillmode,F,z,O)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);y&&ga.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=BU.isBubble(e)?YU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.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;(tt.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:H9*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,w=g!==void 0,T=_!==void 0;return w0.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?w?g/2:M:T?_/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:ga.addOpacity(v,H9))},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){ga.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",B9(je.symbolNumber(o),s,Lm(l,r),Cm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ea.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=ea.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.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={};UU(h,r,o.i),u=tt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,m=G9(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(V9,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=ea.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=G9(a,r);ga.fill(n,i);var s=w0.traceIs(r,"bar-like");V9(n,l,o,a.mrc2||a.mrc,s)})}};var E9=.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=Z9;je.makeTester=function(){var e=tt.ensureSingleById(ea.select("body"),"svg","js-plotly-tester",function(t){t.attr(IU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.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 Tm=0,QU=1e4;je.bBox=function(e,r,t){t||(t=P9(e));var a;if(t){if(a=je.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=P9(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 tt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ea.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 Tm>=QU&&(je.savedBBoxes={},Tm=0),t&&(je.savedBBoxes[t]=d),Tm++,tt.extendFlat({},d)};function P9(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",Sm(r,t))};function Sm(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+=yf(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 $U=/\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($U,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var jU=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ea.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(jU);r===1&&t===1?a=[]:a=[yf(l,o),"scale("+r+","+t+")",yf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Cm(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=Cm;var mf=Math.atan2,wo=Math.cos,Vs=Math.sin;function R9(e,r){var t=r[0],a=r[1];return[t*wo(e)-a*Vs(e),t*Vs(e)+a*wo(e)]}var z9,N9,F9,I9,Mm,Am;function Lm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||tt.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=mf(h[1]-n,h[0]-a),m=mf(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,w=z9/180*Math.PI,T=N9/180*Math.PI,b=w-g,M=wo(T)*Vs(b),C=Vs(T)*wo(_)-wo(T)*Vs(_)*wo(b);y=-mf(M,C)-Math.PI,z9=u,N9=f}var k=R9(d,[wo(y),0]),q=R9(m,[Vs(y),0]);t=mf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(Am===r.uid&&e.i===Mm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Am===r.uid&&e.i===Mm+1&&Ao(a)&&Ao(n)){var D=a-F9,P=n-I9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=mf(P,D)/Math.PI*180+90}else t=null}return F9=a,I9=n,Mm=e.i,Am=r.uid,t}je.getMarkerAngle=Lm});var gf=J((vse,j9)=>{"use strict";var Gs=Ir(),eV=Hr(),rV=Ht(),qm=br(),ko=Ie(),K9=ko.strTranslate,M0=at(),A0=Er(),Ws=ya(),Q9=Pv(),tV=Ma().OPPOSITE_SIDE,$9=/ [XY][0-9]* /,Dm=1.6,Em=1.6;function aV(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,w=g.size,T=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(),W=!1,Z=1,V=O.font,Y=V.family,H=V.size,Q=V.color,K=V.weight,ne=V.style,pe=V.variant,ye=V.textcase,Se=V.lineposition,re=V.shadow,Ce;i==="title.text"?Ce="titleText":i.indexOf("axis")!==-1?Ce="axisTitleText":i.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var de=e._context.edits[Ce];function be(Oe,We){return Oe===void 0||We===void 0?!1:Oe.replace($9," % ")===We.replace($9," % ")}m===""?h=0:be(m,l)&&(de||(m=""),h=.2,y=!0),z&&(I===""?Z=0:be(I,F)&&(de||(I=""),Z=.2,W=!0)),t._meta?m=ko.templateString(m,t._meta):a._meta&&(m=ko.templateString(m,a._meta));var ge=m||I||de,Ae;v||(v=ko.ensureSingle(a._infolayer,"g","g-"+r),Ae=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(ge?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var $=null,U=r+"-subtitle",le=I||de;if(z&&($=v.selectAll("text."+U).data(le?[0]:[]),$.enter().append("text"),$.text(I).attr("class",U),$.exit().remove()),!ge)return v;function ve(Oe,We){ko.syncOrAsync([me,De],{title:Oe,subtitle:We})}function me(Oe){var We=Oe.title,Pe=Oe.subtitle,Be;!f&&Ae&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||Ae)&&(Be+=K9(0,(f.offset||0)-(Ae||0)))):Be=null,We.attr("transform",Be);function Ge(Te){if(Te){var ke=Gs.select(Te.node().parentNode).select("."+U);if(!ke.empty()){var He=Te.node().getBBox();if(He.height){var Je=He.y+He.height+Dm*H;ke.attr("y",Je)}}}}if(We.style("opacity",h*A0.opacity(T)).call(M0.font,{color:A0.rgb(T),size:Gs.round(w,2),family:_,weight:b,style:M,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Ws.convertToTspans,e,Ge),Pe&&!Pe.empty()){var ie=v.select("."+r+"-math-group"),xe=We.node().getBBox(),Ke=ie.node()?ie.node().getBBox():void 0,hr=Ke?Ke.y+Ke.height+Dm*H:xe.y+xe.height+Em*H,ze=ko.extendFlat({},u,{y:hr});Pe.attr("transform",Be),Pe.style("opacity",Z*A0.opacity(Q)).call(M0.font,{color:A0.rgb(Q),size:Gs.round(H,2),family:Y,weight:K,style:ne,variant:pe,textcase:ye,shadow:re,lineposition:Se}).attr(ze).call(Ws.convertToTspans,e)}return rV.previousPromises(e)}function De(Oe){var We=Oe.title,Pe=Gs.select(We.node().parentNode);if(s&&s.selection&&s.side&&m){Pe.attr("transform",null);var Be=tV[s.side],Ge=s.side==="left"||s.side==="top"?-1:1,ie=eV(s.pad)?s.pad:2,xe=M0.bBox(Pe.node()),Ke={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var ze in hr)for(var Te in hr[ze]){var ke=hr[ze][Te];Ke[Te]=Math.max(Ke[Te],ke)}var He={left:Ke.l,top:Ke.t,right:a.width-Ke.r,bottom:a.height-Ke.b},Je=s.maxShift||Ge*(He[s.side]-xe[s.side]),Ve=0;if(Je<0)Ve=Je;else{var Xe=s.offsetLeft||0,lr=s.offsetTop||0;xe.left-=Xe,xe.right-=Xe,xe.top-=lr,xe.bottom-=lr,s.selection.each(function(){var Qe=M0.bBox(this);ko.bBoxIntersect(xe,Qe,ie)&&(Ve=Math.max(Ve,Ge*(Qe[s.side]-xe[Be])+ie))}),Ve=Math.min(Je,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Je<0){var tr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Pe.attr("transform",K9(tr[0],tr[1]))}}}B.call(ve,$);function Re(Oe,We){Oe.text(We).on("mouseover.opacity",function(){Gs.select(this).transition().duration(Q9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Gs.select(this).transition().duration(Q9.HIDE_PLACEHOLDER).style("opacity",0)})}if(de&&(m?B.on(".opacity",null):(Re(B,l),y=!0),B.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){o!==void 0?qm.call("_guiRestyle",e,i,Oe,o):qm.call("_guiRelayout",e,i,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,u.x,u.y)}),z)){if(z&&!m){var Le=B.node().getBBox(),Fe=Le.y+Le.height+Em*H;$.attr("y",Fe)}I?$.on(".opacity",null):(Re($,F),W=!0),$.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){qm.call("_guiRelayout",e,"title.subtitle.text",Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,$.attr("x"),$.attr("y"))})}return B.classed("js-placeholder",y),$&&!$.empty()&&$.classed("js-placeholder",W),v}j9.exports={draw:aV,SUBTITLE_PADDING_EM:Em,SUBTITLE_PADDING_MATHJAX_EM:Dm}});var P0=J((hse,n8)=>{"use strict";var nV=Ir(),iV=gs().utcFormat,nt=Ie(),lV=nt.numberFormat,wi=Hr(),Ml=nt.cleanNumber,oV=nt.ms2DateTime,e8=nt.dateTime2ms,Ti=nt.ensureNumber,r8=nt.isArrayOrTypedArray,Al=Gt(),k0=Al.FP_SAFE,jn=Al.BADNUM,sV=Al.LOG_CLIP,uV=Al.ONEWEEK,S0=Al.ONEDAY,C0=Al.ONEHOUR,t8=Al.ONEMIN,a8=Al.ONESEC,L0=Zt(),E0=jt(),q0=E0.HOUR_PATTERN,D0=E0.WEEKDAY_PATTERN;function bf(e){return Math.pow(10,e)}function Pm(e){return e!=null}n8.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*sV*Math.abs(C-k))}else return jn}function l(b,M,C,k){if((k||{}).msUTC&&wi(b))return+b;var q=e8(b,C||r.calendar);if(q===jn)if(wi(b)){b=+b;var D=Math.floor(nt.mod(b+.05,1)*10),P=Math.round(b-D/10);q=e8(new Date(P))+D/10}else return jn;return q}function o(b,M,C){return oV(b,M,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Pm(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 jn}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:Ti,r.l2c=r.type==="log"?bf:Ti,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 bf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Ml,r.c2d=r.c2r=r.l2d=r.l2r=Ti,r.d2p=r.r2p=function(b){return r.l2p(Ml(b))},r.p2d=r.p2r=_,r.cleanPos=Ti):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Ml(b),M)},r.r2d=r.r2c=function(b){return bf(Ml(b))},r.d2c=r.r2l=Ml,r.c2d=r.l2r=Ti,r.c2r=i,r.l2d=bf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return bf(_(b))},r.r2p=function(b){return r.l2p(Ml(b))},r.p2r=_,r.cleanPos=Ti):r.type==="date"?(r.d2r=r.r2d=nt.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 nt.cleanDate(b,jn,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=Ti,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:Ti(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=Ti,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:Ti(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),k[0]===k[1]){var z=r.l2r(M),F=r.l2r(C);if(M!==void 0){var O=z+1;C!==void 0&&(O=Math.min(O,F)),k[D?1:0]=O}if(C!==void 0){var I=F+1;M!==void 0&&(I=Math.max(I,z)),k[D?0:1]=I}}}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var C=nt.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=nt.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){nt.nestedProperty(r,b).set(q);return}var D=C[0]===null,P=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=nt.cleanDate(C[0],jn,r.calendar),C[1]=nt.cleanDate(C[1],jn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!nt.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=nt.constrain(r.r2l(C[0]),nt.MIN_MS+1e3,nt.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!wi(C[k]))if(!(D||P)&&wi(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 W=I?-1:1;for(r._m2=W*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=pe),ye=!1)}ye&&P.push({min:ne,max:pe})}};for(C=0;C{"use strict";var i8=Hr(),Rm=Ie(),fV=Gt().BADNUM,R0=Rm.isArrayOrTypedArray,cV=Rm.isDateTime,vV=Rm.cleanNumber,l8=Math.round;s8.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(R0(n)&&!n.length)return"-";if(!i&&yV(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function o8(e){return Math.max(1,(e-1)/1e3)}function mV(e,r){for(var t=e.length,a=o8(t),n=0,i=0,l={},o=0;on*2}function yV(e){return R0(e[0])&&R0(e[1])}});var xf=J((pse,m8)=>{"use strict";var gV=Ir(),v8=Hr(),kl=Ie(),z0=Gt().FP_SAFE,bV=br(),xV=at(),h8=Zt(),_V=h8.getFromId,wV=h8.isLinked;m8.exports={applyAutorangeOptions:p8,getAutoRange:Nm,makePadFn:Fm,doAutoRange:MV,findExtremes:AV,concatExtremes:Om};function Nm(e,r){var t,a,n=[],i=e._fullLayout,l=Fm(i,r,0),o=Fm(i,r,1),s=Om(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return kl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(P=T-l(C)-o(k),P>b?z/P>M&&(q=C,D=k,M=z/P):z/T>M&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},M=z/T));function F(V,Y){return Math.max(V,o(Y))}if(v===h){var O=v-1,I=v+1;if(_)if(v===0)n=[0,1];else{var W=(v>0?f:u).reduce(F,0),Z=v/(1-Math.min(.5,W/T));n=v>0?[0,Z]:[Z,0]}else w?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})):w&&(q.val-M*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-q.val-u8(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-M*l(q),D.val+M*o(D)];return n=p8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),kl.simpleMap(n,r.l2r||Number)}function u8(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(w=1/0,T=-1/0,s)for(v=0;v0&&(w=h),h>T&&h-z0&&(w=h),h>T&&h=z;v--)P(v);return{min:a,max:n,opts:t}}function Im(e,r,t,a){d8(e,r,t,a,kV)}function Hm(e,r,t,a){d8(e,r,t,a,SV)}function d8(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 c8(e){return v8(e)&&Math.abs(e)=r}function CV(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 LV(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=CV(t,r),a=LV(a,r),[t,a]}});var dt=J((yse,H8)=>{"use strict";var kn=Ir(),Bt=Hr(),Xs=Ht(),wf=br(),gr=Ie(),Zs=gr.strTranslate,So=ya(),qV=gf(),Tf=Er(),on=at(),DV=Qn(),y8=am(),mse=jt(),ba=Gt(),EV=ba.ONEMAXYEAR,H0=ba.ONEAVGYEAR,O0=ba.ONEMINYEAR,PV=ba.ONEMAXQUARTER,Vm=ba.ONEAVGQUARTER,B0=ba.ONEMINQUARTER,RV=ba.ONEMAXMONTH,Js=ba.ONEAVGMONTH,Y0=ba.ONEMINMONTH,sn=ba.ONEWEEK,Ra=ba.ONEDAY,Sl=Ra/2,Ai=ba.ONEHOUR,Mf=ba.ONEMIN,U0=ba.ONESEC,zV=ba.ONEMILLI,NV=ba.ONEMICROSEC,Co=ba.MINUS_SIGN,G0=ba.BADNUM,Gm={K:"zeroline"},Wm={K:"gridline",L:"path"},Xm={K:"minor-gridline",L:"path"},C8={K:"tick",L:"path"},g8={K:"tick",L:"text"},b8={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(),_f=W0.MID_SHIFT,Lo=W0.CAP_SHIFT,Af=W0.LINE_SPACING,FV=W0.OPPOSITE_SIDE,V0=3,Ye=H8.exports={};Ye.setConvert=P0();var IV=zm(),ki=Zt(),HV=ki.idSort,OV=ki.isLinked;Ye.id2name=ki.id2name;Ye.name2id=ki.name2id;Ye.cleanId=ki.cleanId;Ye.list=ki.list;Ye.listIds=ki.listIds;Ye.getFromId=ki.getFromId;Ye.getFromTrace=ki.getFromTrace;var L8=xf();Ye.getAutoRange=L8.getAutoRange;Ye.findExtremes=L8.findExtremes;var BV=1e-4;function Qm(e){var r=(e[1]-e[0])*BV;return[e[0]-r,e[1]+r]}Ye.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)};Ye.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))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.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=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=Sl;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Bt(r._tmin),n;if(a){var i=Ye.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,Ye.prepTicks(e,t),a){var o=Bt(r.dtick),s=Bt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Bm(u,f)?u===2*sn&&f===2*Ra&&(e.dtick=sn):u===2*sn&&f===3*Ra?e.dtick=sn:u===sn&&!(r._input.minor||{}).nticks?e.dtick=Ra:w8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bm(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"?Bm(u,f)||(e.dtick=w8(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function w8(e,r){return Math.abs(e/r-1)<.001}Ye.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,Ye.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<=EV?v=u:v=H0:t===Vm&&f>=B0?u>=B0&&u<=PV?v=u:v=Vm:f>=Y0?u>=Y0&&u<=RV?v=u:v=Js:t===sn&&f>=sn?v=sn:f>=Ra?v=Ra:t===Sl&&f>=Sl?v=Sl:t===Ai&&f>=Ai&&(v=Ai);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;gsn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.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]=(T?0:1);b--){var M=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(g=[],m=T8(r,!M)):(_=[],y=T8(r,!M));continue}if(C.tickmode==="sync"){g=[],m=XV(r);continue}var k=Qm(u),q=k[0],D=k[1],P=Bt(C.dtick),z=a==="log"&&!(P||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:I<=D;I=Ye.tickIncrement(I,V,f,n)){if(b&&W++,C.rangebreaks&&!f){if(I=h)break}if(g.length>d||I===O)break;O=I;var Y={value:I};b?(z&&I!==(I|0)&&(Y.simpleLabel=!0),i>1&&W%i&&(Y.skipLabel=!0),g.push(Y)):(Y.minor=!0,_.push(Y))}}if(!_||_.length<2)s=!1;else{var H=(_[1].value-_[0].value)*(o?-1:1);gG(H,r.tickformat)||(s=!1)}if(!s)w=g;else{var Q=g.concat(_);l&&g.length&&(Q=Q.slice(1)),Q=Q.sort(function(Fe,Oe){return Fe.value-Oe.value}).filter(function(Fe,Oe,We){return Oe===0||Fe.value!==We[Oe-1].value});var K=Q.map(function(Fe,Oe){return Fe.minor===void 0&&!Fe.skipLabel?Oe:null}).filter(function(Fe){return Fe!==null});K.forEach(function(Fe){s.map(function(Oe){var We=Fe+Oe;We>=0&&We-1;ge--){if(g[ge].drop){g.splice(ge,1);continue}g[ge].value=Um(g[ge].value,r);var U=r.c2p(g[ge].value);(Ae?$>U-B:$h||Peh&&(We.periodX=h),Pen&&hH0)r/=H0,a=n(10),e.dtick="M"+12*Mi(r,a,F0);else if(i>Js)r/=Js,e.dtick="M"+Mi(r,1,M8);else if(i>Ra){if(e.dtick=Mi(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:ZV),!t){var l=Ye.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>Ai?e.dtick=Mi(r,Ai,M8):i>Mf?e.dtick=Mi(r,Mf,A8):i>U0?e.dtick=Mi(r,U0,A8):(a=n(10),e.dtick=Mi(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"+Mi(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))):ry(e)?(e.tick0=0,a=1,e.dtick=Mi(r,a,JV)):(e.tick0=0,a=n(10),e.dtick=Mi(r,a,F0));if(e.dtick===0&&(e.dtick=1),!Bt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function P8(e){var r=e.dtick;if(e._tickexponent=0,!Bt(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>=Mf&&n<=16||r>=Ai)e._tickround="M";else if(r>=U0&&n<=19||r>=Mf)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(Bt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Bt(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&&(Ks(e.exponentformat)&&e.exponentformat!=="SI extended"&&!$m(s)||Ks(e.exponentformat)&&e.exponentformat==="SI extended"&&!jm(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(Bt(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"?E8:D8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(kn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.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=Sf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function QV(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=kf(Math.pow(10,l),e,n,a);else if(Bt(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"||Ks(m)&&m!=="SI extended"&&$m(h)||Ks(m)&&m==="SI extended"&&jm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Co)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Co)+d:(r.text=kf(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 $V(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jV(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 eG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=kf(r.x,e,n,a)}function rG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=tG(i);if(l[1]>=100)r.text=kf(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=Co+r.text)}}}else r.text=kf(r.x,e,n,a)}function tG(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 z8=["f","p","n","\u03BC","m","","k","M","G","T"],aG=["q","r","y","z","a",...z8,"P","E","Z","Y","R","Q"],Ks=e=>["SI","SI extended","B"].includes(e);function $m(e){return e>14||e<-15}function jm(e){return e>32||e<-30}function nG(e,r){return Ks(r)?!!(r==="SI extended"&&jm(e)||r!=="SI extended"&&$m(e)):!1}function kf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Bt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};P8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Co);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":Ks(l)&&(e+=l==="SI extended"?aG[o/3+10]:z8[o/3+5])}return n?Co+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Js}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=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Km(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.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=Ye.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),Km(r,m,a,!0),Km(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=yG(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?Pe.bottom-Oe:0,We))));var xe=0,Ke=0;if(r._shiftPusher&&(xe=Math.max(We,Pe.height>0?Le==="l"?Oe-Pe.left:Pe.right-Oe: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){Be={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"?Be[Le]=r._depth:(Be[Le]=r._depth=Math.max(Pe.width>0?Oe-Pe.top:0,We),hr.reverse()),Pe.width>0){var Te=Pe.right-(r._offset+r._length);Te>0&&(Be.xr=1,Be.r=Te);var ke=r._offset-Pe.left;ke>0&&(Be.xl=0,Be.l=ke)}}else if(Le==="l"?(r._depth=Math.max(Pe.height>0?Oe-Pe.left:0,We),Be[Le]=r._depth-ze):(r._depth=Math.max(Pe.height>0?Pe.right-Oe:0,We),Be[Le]=r._depth+ze,hr.reverse()),Pe.height>0){var He=Pe.bottom-(r._offset+r._length);He>0&&(Be.yb=0,Be.b=He);var Je=r._offset-Pe.top;Je>0&&(Be.yt=1,Be.t=Je)}Be[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Le]+=S8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ge={x:0,y:0,r:0,l:0,t:0,b:0},Ge[Fe]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ge[Fe]+=We),r.mirror===!0||r.mirror==="ticks"?Ge[v]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ge[v]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Re&&(ie=wf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(k8(Be,r.automargin),k8(Ge,r.automargin)),Xs.autoMargin(e,ey(r),Be),Xs.autoMargin(e,F8(r),Ge),Xs.autoMargin(e,I8(r),ie)}),gr.syncOrAsync(me)}};function k8(e,r){if(e){var t=Object.keys(b8).reduce(function(a,n){return r.indexOf(n)!==-1&&b8[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 iG(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 Zs(n+e._offset+e.l2p(Zm(h))+t,i+a)}:function(h){return Zs(i+a,n+e._offset+e.l2p(Zm(h))+t)}};function Zm(e){return e.periodX!==void 0?e.periodX:e.x}function uG(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*Lo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=V0),s&&f==="top"&&(h-=d*(1-Lo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h: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,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};Ye.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},w,T,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),w=m*M,T=r+d*M,b=P?1:-.2,Math.abs(D)===90&&(v?b+=_f:D===-90&&k==="bottom"?b=Lo:D===90&&k==="top"?b=_f:b=.5,C=_f/2*(D/90)),_.xFn=function(O){return O.dx+w+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*b},_.anchorFn=function(O,I){if(f){if(o)return"end";if(s)return"start"}return!Bt(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},_.heightFn=function(O,I,W){return I<-60||I>60?-.5*W:e.side==="top"!==v?-W:0};else if(q==="y"){if(P=!v&&k==="left"||v&&k==="right",M=P?1:-1,v&&(M*=-1),w=d,T=m*M,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=Lo:b=.5),v){var z=Bt(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*Lo*M,b=0}}_.xFn=function(O){return O.dx+r-(w+O.fontSize*b)*M+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*_f},_.anchorFn=function(O,I){return Bt(I)&&Math.abs(I)===90?"middle":P?"end":"start"},_.heightFn=function(O,I,W){return e.side==="right"&&(I*=-1),I<-30?-W:I<30?-.5*W:0}}return _};function X0(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(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 Tf.stroke(kn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return on.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Z0(r,[C8]),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(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.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 Tf.stroke(kn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return on.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,[Wm,Xm])}};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(l,o){return HV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Tf.stroke,r.zerolinecolor||Tf.defaultLine).style("stroke-width",on.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Z0(r,[Gm])};Ye.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=kn.select(this),K=e._promises.length;Q.call(So.positionText,s.xFn(H),s.yFn(H)).call(on.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[K]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),Z0(r,[g8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(H){kn.select(this).select("text").call(So.positionText,s.xFn(H),s.yFn(H))});function d(H,Q){H.each(function(K){var ne=kn.select(this),pe=ne.select(".text-math-group"),ye=s.anchorFn(K,Q),Se=t.transFn.call(ne.node(),K)+(Bt(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(K)+","+(s.yFn(K)-K.fontSize/2)+")":""),re=So.lineCount(ne),Ce=Af*K.fontSize,de=s.heightFn(K,Bt(Q)?+Q:0,(re-1)*Ce);if(de&&(Se+=Zs(0,de)),pe.empty()){var be=ne.select("text");be.attr({transform:Se,"text-anchor":ye}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=on.bBox(pe.node()).width,Ae=ge*{end:-.5,start:.5}[ye];pe.attr("transform",Se+Zs(Ae,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Q=H.indexOf("hide")!==-1,K=r._id.charAt(0)==="x",ne=0,pe=K?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,pe=r.l2p(ye[1])+r._offset}var Se=Math.min(ne,pe),re=Math.max(ne,pe),Ce=r.side,de=1/0,be=-1/0;v.each(function($){var U=kn.select(this),le=U.select(".text-math-group");if(le.empty()){var ve=on.bBox(U.node()),me=0;K?(ve.right>re||ve.leftre||ve.top+(r.tickangle?0:$.fontSize/4)r["_visibleLabelMin_"+ye._id]?U.style("display","none"):re.K==="tick"&&!Se&&U.node().style.display!=="none"&&U.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=[],K,ne=1;v.each(function(Be){H=Math.max(H,Be.fontSize);var Ge=r.l2p(Be.x),ie=Jm(this),xe=on.bBox(ie.node());ne=Math.max(ne,So.lineCount(ie)),Q.push({top:0,bottom:10,height:10,left:Ge-xe.width/2,right:Ge+xe.width/2+2,width:xe.width+2})});var pe=(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=pe?Se/2:Se,Ce=pe?r.ticklen:H*1.25*ne,de=Math.sqrt(Math.pow(re,2)+Math.pow(Ce,2)),be=re/de,ge=r.autotickangles.map(function(Be){return Be*Math.PI/180}),Ae=ge.find(function(Be){return Math.abs(Math.cos(Be))<=be});Ae===void 0&&(Ae=ge.reduce(function(Be,Ge){return Math.abs(Math.cos(Be))Z*W&&(F=W,D[q]=P[q]=O[q])}var V=Math.abs(F-z);V-M>0?(V-=M,M*=1+M/V):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=T.p2r(T.r2p(P[k])+C*M),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var Y=gr.syncOrAsync(_);return Y&&Y.then&&e._promises.push(Y),Y};function fG(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(Tf.stroke,r.dividercolor).style("stroke-width",on.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 S8(e){var r=e.title.font.size,t=(e.title.text.match(So.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Lo+t*Af):t?r*(t+1)*Af:r}function cG(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*Lo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(_f+o*Af));else{var s=Sf(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=Ye.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=on.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,qV.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"}})}Ye.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)&&(N8(r,0)||!vG(e,r,t,a)||hG(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return N8(e,t.x)})};function N8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=NV:/%L/.test(r)?e>=zV:/%[SX]/.test(r)?e>=U0:/%M/.test(r)?e>=Mf:/%[HI]/.test(r)?e>=Ai:/%p/.test(r)?e>=Sl:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=sn:/%[Bbm]/.test(r)?e>=Y0:/%[q]/.test(r)?e>=B0:/%[Yy]/.test(r)?e>=O0:!0}});var B8=J((gse,O8)=>{"use strict";O8.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 ty=J((bse,Y8)=>{"use strict";var bG=B8();Y8.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&&(bG(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var V8=J((xse,U8)=>{var xG={left:0,top:0};U8.exports=_G;function _G(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=wG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function wG(e){return e===window||e===document||e===document.body?xG:e.getBoundingClientRect()}});var ay=J((_se,G8)=>{"use strict";var TG=Dp();function MG(){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}G8.exports=TG&&MG()});var X8=J((wse,W8)=>{"use strict";W8.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 K8=J((Tse,J8)=>{"use strict";var Z8=Ie(),AG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];J8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=Z8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=Z8.constrain(Math.floor(t*3),0,2),AG[t][r]}});var $8=J((Mse,Q8)=>{"use strict";var kG=uf(),SG=Zv(),CG=ef().getGraphDiv,LG=Ku(),ny=Q8.exports={};ny.wrapped=function(e,r,t){e=CG(e),e._fullLayout&&SG.clear(e._fullLayout._uid+LG.HOVERID),ny.raw(e,r,t)};ny.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&kG.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 ei=J((Ase,tw)=>{"use strict";var qG=V8(),iy=Pp(),DG=ay(),EG=Ie().removeElement,PG=jt(),qo=tw.exports={};qo.align=X8();qo.getCursor=K8();var ew=$8();qo.unhover=ew.wrapped;qo.unhoverRaw=ew.raw;qo.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,DG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(T,b,M){return Math.abs(T)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",T))}t._dragging=!1,t._dragged=!1}};function rw(){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}qo.coverSlip=rw;function j8(e){return qG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cl=J((kse,aw)=>{"use strict";aw.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 lw=J((Sse,iw)=>{"use strict";var ly=Cl(),Cf="data-savedcursor",nw="!!";iw.exports=function(r,t){var a=r.attr(Cf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var oy=ma(),RG=mi();ow.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:RG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:oy({editType:"legend"}),grouptitlefont:oy({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:oy({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var qf=J(Lf=>{"use strict";Lf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Lf.isVertical=function(r){return r.orientation!=="h"};Lf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Lf.getId=function(r){return r._id||"legend"}});var fy=J((qse,sw)=>{"use strict";var J0=br(),un=Ie(),zG=ct(),NG=Wn(),FG=sy(),IG=ks(),uy=qf();function HG(e,r,t,a,n){var i=r[e]||{},l=zG.newContainer(t,e);function o(H,Q){return un.coerce(i,l,FG,H,Q)}var s=un.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 K=f._input,ne=f;return un.coerce(K,ne,NG,H,Q)},h=t.font||{},d=un.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 w(H){return J0.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(w).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,W,Z="left";P?(O=0,J0.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,W="bottom"):(I=1,W="top"):z?(I=-.1,W="top"):(I=0,W="bottom")):(I=1,W="auto",F?O=1.02:(O=1,Z="right")),un.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:O}},"x"),un.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:I}},"y"),o("traceorder",g),uy.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",Z),o("yanchor",W),o("maxheight"),o("valign"),un.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",P?"left":"top");var Y=un.extendFlat({},s,{size:un.bigFont(s.size)});un.coerceFont(o,"title.font",Y);let H=n>1;o("titleclick",H?"toggle":!1),o("titledoubleclick",H?"toggleothers":!1)}}}sw.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Ll=br(),cy=Ie(),OG=cy.pushUnique,BG=qf(),uw=!0;vy.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"&&uw&&t.data&&t._context.showTips&&(cy.notifier(cy._(t,"Double-click on legend to isolate one trace"),"long"),uw=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,v=(i.shapes||[]).filter(function(Re){return Re.showlegend}),h=f.concat(v),d=l.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,y,g,_,w,T,b,M={},C=[],k=[],q=[];function D(Re,Le){var Fe=C.indexOf(Re),Oe=M.visible;return Oe||(Oe=M.visible=[]),C.indexOf(Re)===-1&&(C.push(Re),Fe=C.length-1),Oe[Fe]=Le,Fe}var P=(i.shapes||[]).map(function(Re){return Re._input}),z=!1;function F(Re,Le){P[Re].visible=Le,z=!0}function O(Re,Le){if(!(l.groupTitle&&!s)){var Fe=Re._fullInput||Re,Oe=Fe._isShape,We=Fe.index;We===void 0&&(We=Fe._index);var Pe=Fe.visible===!1?!1:Le;Oe?F(We,Pe):D(We,Pe)}}var I=d.legend,W=d._fullInput,Z=W&&W._isShape;if(!Z&&Ll.traceIs(d,"pie-like")){var V=l.label,Y=u.indexOf(V);if(n==="toggle")Y===-1?u.push(V):u.splice(Y,1);else if(n==="toggleothers"){var H=Y!==-1,Q=[];for(y=0;y{"use strict";fw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hw=J((Pse,vw)=>{"use strict";var cw=br(),py=qf();vw.exports=function(r,t,a){var n=t._inHover,i=py.isGrouped(t),l=py.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(H,Q,K){if(t.visible!==!1&&!(a&&H!==t._id))if(Q===""||!py.isGrouped(t)){var ne="~~i"+v;s.push(ne),o[ne]=[K],v++}else s.indexOf(Q)===-1?(s.push(Q),u=!0,o[Q]=[K]):o[Q].push(K)}for(d=0;dF&&(z=F)}D[d][0]._groupMinRank=z,D[d][0]._preGroupSort=d}var O=function(H,Q){return H[0]._groupMinRank-Q[0]._groupMinRank||H[0]._preGroupSort-Q[0]._preGroupSort},I=function(H,Q){return H.trace.legendrank-Q.trace.legendrank||H._preSort-Q._preSort};for(D.forEach(function(H,Q){H[0]._preGroupSort=Q}),D.sort(O),d=0;d{"use strict";var K0=Ie();function dw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Do.formatPiePercent=function(r,t){var a=dw((r*100).toPrecision(3));return K0.numSeparate(a,t)+"%"};Do.formatPieValue=function(r,t){var a=dw(r.toPrecision(10));return K0.numSeparate(a,t)};Do.getFirstFilled=function(r,t){if(K0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var YG=at(),UG=Er();pw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?YG.pointStyle(r,a,n,t):UG.fill(r,t.color)}});var $0=J((Nse,bw)=>{"use strict";var yw=Er(),gw=Q0().castOption,VG=mw();bw.exports=function(r,t,a,n){var i=a.marker.line,l=gw(i.color,t.pts)||yw.defaultLine,o=gw(i.width,t.pts)||0;r.call(VG,t,a,n).style("stroke-width",o).call(yw.stroke,l)}});var by=J((Fse,Aw)=>{"use strict";var za=Ir(),my=br(),ka=Ie(),xw=ka.strTranslate,fn=at(),Sn=Er(),yy=An().extractOpts,j0=ln(),GG=$0(),WG=Q0().castOption,XG=dy(),_w=12,ww=5,Eo=2,ZG=10,Qs=5;Aw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+XG.itemGap*2)/2,s=xw(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=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],W=I*(.5*(F-O+3))||0,Z=a.indentation;D.attr("transform",xw(Z,W))}var V=D.selectAll("g.legendfill").data([k]);V.enter().append("g").classed("legendfill",!0);var Y=D.selectAll("g.legendlines").data([k]);Y.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(T).each(f).each(v).each(_).each(w);function f(k){var q=Tw(k),D=q.showFill,P=q.showLine,z=q.showGradientLine,F=q.showGradientFill,O=q.anyFill,I=q.anyLine,W=k[0],Z=W.trace,V,Y,H=yy(Z),Q=H.colorscale,K=H.reversescale,ne=function(be){if(be.size())if(D)fn.fillGroupStyle(be,t,!0);else{var ge="legendfill-"+Z.uid;fn.gradient(be,t,ge,gy(K),Q,"fill")}},pe=function(be){if(be.size()){var ge="legendline-"+Z.uid;fn.lineGroupStyle(be),fn.gradient(be,t,ge,gy(K),Q,"stroke")}},ye=j0.hasMarkers(Z)||!O?"M5,0":I?"M5,-2":"M5,-3",Se=za.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,Z.line,ZG,ww);Y=ka.minExtend(Z,{line:{width:Ce}}),V=[ka.minExtend(W,{trace:Y})]}var de=Se.select(".legendlines").selectAll("path").data(P||z?[V]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",ye+(z?"l"+l+",0.0001":"h"+l)).call(P?fn.lineGroupStyle:pe)}function v(k){var q=Tw(k),D=q.anyFill,P=q.anyLine,z=q.showLine,F=q.showMarker,O=k[0],I=O.trace,W=!F&&!P&&!D&&j0.hasText(I),Z,V;function Y(re,Ce,de,be){var ge=ka.nestedProperty(I,re).get(),Ae=ka.isArrayOrTypedArray(ge)&&Ce?Ce(ge):ge;if(i&&Ae&&be!==void 0&&(Ae=be),de){if(Aede[1])return de[1]}return Ae}function H(re){return O._distinct&&O.index&&re[O.index]?re[O.index]:re[0]}if(F||W||z){var Q={},K={};if(F){Q.mc=Y("marker.color",H),Q.mx=Y("marker.symbol",H),Q.mo=Y("marker.opacity",ka.mean,[.2,1]),Q.mlc=Y("marker.line.color",H),Q.mlw=Y("marker.line.width",ka.mean,[0,5],Eo),Q.mld=I._isShape?"solid":Y("marker.line.dash",H),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=Y("marker.size",ka.mean,[2,16],_w);Q.ms=ne,K.marker.size=ne}z&&(K.line={width:Y("line.width",H,[0,10],ww)}),W&&(Q.tx="Aa",Q.tp=Y("textposition",H),Q.ts=10,Q.tc=Y("textfont.color",H),Q.tf=Y("textfont.family",H),Q.tw=Y("textfont.weight",H),Q.ty=Y("textfont.style",H),Q.tv=Y("textfont.variant",H),Q.tC=Y("textfont.textcase",H),Q.tE=Y("textfont.lineposition",H),Q.tS=Y("textfont.shadow",H)),Z=[ka.minExtend(O,Q)],V=ka.minExtend(I,K),V.selectedpoints=null,V.texttemplate=null}var pe=za.select(this).select("g.legendpoints"),ye=pe.selectAll("path.scatterpts").data(F?Z:[]);ye.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ye.exit().remove(),ye.call(fn.pointStyle,V,t),F&&(Z[0].mrc=3);var Se=pe.selectAll("g.pointtext").data(W?Z:[]);Se.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Se.exit().remove(),Se.selectAll("text").call(fn.textPointStyle,V,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),W=q[O[0]].marker,Z=u(void 0,W.line,Qs,Eo);I.attr("d",O[1]).style("stroke-width",Z+"px").call(Sn.fill,W.color),Z&&I.call(Sn.stroke,W.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:my.traceIs(P,"bar"),W=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(I?[k]:[]);W.enter().append("path").classed("legend"+D,!0).attr("d",O).attr("transform",s),W.exit().remove(),W.each(function(Z){var V=za.select(this),Y=Z[0],H=u(Y.mlw,z.line,Qs,Eo);V.style("stroke-width",H+"px");var Q=Y.mcc;if(!a._inHover&&"mc"in Y){var K=yy(z),ne=K.mid;ne===void 0&&(ne=(K.max+K.min)/2),Q=fn.tryColorscale(z,"")(ne)}var pe=Q||Y.mc||z.color,ye=z.pattern,Se=fn.getPatternAttr,re=ye&&(Se(ye.shape,0,"")||Se(ye.path,0,""));if(re){var Ce=Se(ye.bgcolor,0,null),de=Se(ye.fgcolor,0,null),be=ye.fgopacity,ge=Mw(ye.size,8,10),Ae=Mw(ye.solidity,.5,1),B="legend-"+P.uid;V.call(fn.pattern,"legend",t,B,re,ge,Ae,Q,ye.fillmode,Ce,de,be)}else V.call(Sn.fill,pe);H&&Sn.stroke(V,Y.mlc||F.color)})}function g(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&my.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=ka.minExtend(q,{marker:{size:i?_w:ka.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(fn.pointStyle,z,t)}else{var F=u(void 0,q.line,Qs,Eo);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,Qs,Eo);F.style("stroke-width",I+"px").call(Sn.fill,O.fillcolor),I&&Sn.stroke(F,O.line.color)})}function w(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,Qs,Eo);F.style("fill","none").call(fn.dashLine,O.line.dash,I),I&&Sn.stroke(F,O.line.color)})}function T(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:my.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||{},W=u(WG(I.line.width,P.pts),I.line,Qs,Eo),Z="pieLike",V=ka.minExtend(z,{marker:{line:{width:W}}},Z),Y=ka.minExtend(P,{trace:V},Z);GG(O,Y,V,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=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),W=yy(q),Z=W.colorscale,V=W.reversescale,Y=function(ne){if(ne.size()){var pe="legendfill-"+q.uid;fn.gradient(ne,t,pe,gy(V,D==="radial"),Z,"fill")}},H;if(Z){if(!D){var K=Z.length;H=O===0?Z[V?K-1:0][1]:O===1?Z[V?0:K-1][1]:Z[Math.floor((K-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(Sn.fill,H):I.call(Y)})}};function gy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Tw(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 Mw(e,r,t){return e&&ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var Ty=J((Ise,Rw)=>{"use strict";var Ya=Ir(),Nt=Ie(),_y=Ht(),Po=br(),th=uf(),xy=ei(),Ft=at(),Df=Er(),Ro=ya(),kw=hy().handleItemClick,Sw=hy().handleTitleClick,Yt=dy(),wy=Ma(),Ew=wy.LINE_SPACING,js=wy.FROM_TL,Cw=wy.FROM_BR,Lw=hw(),JG=by(),eu=qf(),$s=1,KG=/^legend[0-9]*$/;Rw.exports=function(r,t){if(t)qw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ya.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(KG)&&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(),_y.autoMargin(e,n);var y=Nt.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Nt.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Nt.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(Df.stroke,t.bordercolor).call(Df.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Nt.ensureSingle(y,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Nt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ft.font,T.font).text(T.text),rh(b,w,e,t,$s),!o&&(t.titleclick||t.titledoubleclick)&&eW(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Nt.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Yt.scrollBarEnterAttrs).call(Df.fill,Yt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Nt.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 Po.traceIs(P,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Ya.select(this).call($G,e,t)}).call(JG,e,t).each(function(q){o||q[0].groupTitle&&t.groupclick==="toggleitem"||Ya.select(this).call(jG,e,n)}),Nt.syncOrAsync([_y.previousPromises,function(){return aW(e,C,k,t,w)},function(){var q=a._size,D=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(T.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),ve=e._fullData.concat(le).some(function(me){let De=me.legend||"legend";var Re=Array.isArray(De)?De.includes(n):De===n;return Re&&me.visible===!0});b.style("opacity",ve?1:.5)}if(!o){var F,O;P?F=q.l+q.w*t.x-js[ah(t)]*t._width:F=a.width*t.x-js[ah(t)]*t._width,z?O=q.t+q.h*(1-t.y)-js[nh(t)]*t._effHeight:O=a.height*(1-t.y)-js[nh(t)]*t._effHeight;var I=nW(e,n,F,O);if(I)return;if(a.margin.autoexpand){var W=F,Z=O;F=P?Nt.constrain(F,0,a.width-t._width):W,O=z?Nt.constrain(O,0,a.height-t._effHeight):Z,F!==W&&Nt.log("Constrain "+n+".x to make legend fit inside graph"),O!==Z&&Nt.log("Constrain "+n+".y to make legend fit inside graph")}Ft.setTranslate(y,F,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var V=t._effHeight;o&&(V=t._height),_.attr({width:t._width-D,height:V-D,x:D/2,y:D/2}),Ft.setTranslate(w,0,0),g.select("rect").attr({width:t._width-2*D,height:V-2*D,x:D,y:D}),Ft.setClipUrl(w,i,e),Ft.setRect(M,0,0,0,0),delete t._scrollY}else{var Y=Math.max(Yt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-Y-2*Yt.scrollBarMargin,Q=t._height-t._effHeight,K=H/Q,ne=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ne}),Ft.setClipUrl(w,i,e),ge(ne,Y,K),y.on("wheel",function(){ne=Nt.constrain(t._scrollY+Ya.event.deltaY/Q*H,0,Q),ge(ne,Y,K),ne!==0&&ne!==Q&&Ya.event.preventDefault()});var pe,ye,Se,re=function(le,ve,me){var De=(me-ve)/K+le;return Nt.constrain(De,0,Q)},Ce=function(le,ve,me){var De=(ve-me)/K+le;return Nt.constrain(De,0,Q)},de=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"?pe=le.changedTouches[0].clientY:pe=le.clientY,Se=ne}).on("drag",function(){var le=Ya.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ye=le.changedTouches[0].clientY:ye=le.clientY,ne=re(Se,pe,ye),ge(ne,Y,K))});M.call(de);var be=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"&&(pe=le.changedTouches[0].clientY,Se=ne)}).on("drag",function(){var le=Ya.event.sourceEvent;le.type==="touchmove"&&(ye=le.changedTouches[0].clientY,ne=Ce(Se,pe,ye),ge(ne,Y,K))});w.call(be)}function ge(le,ve,me){t._scrollY=e._fullLayout[n]._scrollY=le,Ft.setTranslate(w,0,-le),Ft.setRect(M,t._width,Yt.scrollBarMargin+le*me,Yt.scrollBarWidth,ve),g.select("rect").attr("y",D+le)}if(e._context.edits.legendPosition){var Ae,B,$,U;y.classed("cursor-move",!0),xy.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==M.node()){var ve=Ft.getTranslate(y);$=ve.x,U=ve.y}},moveFn:function(le,ve){if($!==void 0&&U!==void 0){var me=$+le,De=U+ve;Ft.setTranslate(y,me,De),Ae=xy.align(me,t._width,q.l,q.l+q.w,t.xanchor),B=xy.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(Ae!==void 0&&B!==void 0){var le={};le[n+".x"]=Ae,le[n+".y"]=B,Po.call("_guiRelayout",e,le)}},clickFn:function(le,ve){var me=l.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return ve.clientX>=De.left&&ve.clientX<=De.right&&ve.clientY>=De.top&&ve.clientY<=De.bottom});me.size()>0&&Pw(e,t,me,le,ve)}})}}],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 Pw(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),Po.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&&kw(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&&kw(t,e,r,s)}}function $G(e,r,t){var a=eu.getId(t),n=e.data()[0][0],i=n.trace,l=Po.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=Nt.templateString(u,i._meta))));var v=Nt.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ft.font,f).text(o?Dw(u,s):u);var h=t.indentation+t.itemwidth+Yt.itemGap*2;Ro.positionText(v,h,0),o?v.call(Ro.makeEditable,{gd:r,text:u}).call(rh,e,r,t).on("edit",function(d){this.text(Dw(d,s)).call(rh,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Po.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Po.call("_guiRestyle",r,y,i.index)}):rh(v,e,r,t)}function Dw(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 jG(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Nt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Df.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)),Pw(r,o,e,i,Ya.event)}}))}function eW(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Po.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Nt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Df.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:Ya.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),Ro.convertToTspans(e,t,function(){rW(r,t,a,n)})}function rW(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=eu.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===$s?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*Ew,h,d;if(o){var m=Ft.bBox(o);h=m.height,d=m.width,a===$s?Ft.setTranslate(l,u,u+h*.75):Ft.setTranslate(l,0,h*.25)}else{var y="."+s+(a===$s?"title":"")+"text",g=e.select(y),_=Ro.lineCount(g),w=g.node();if(h=v*_,d=w?Ft.bBox(w).width:0,a===$s)t.title.side==="left"&&(d+=Yt.itemGap*2),Ro.positionText(g,u+Yt.titlePad,u+v);else{var T=Yt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=Yt.itemGap,d-=t.indentation+t.itemwidth),Ro.positionText(g,T,-v*((_-1)/2-.3))}}a===$s?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=v,n.height=Math.max(h,16)+3,n.width=d)}function tW(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 aW(e,r,t,a,n){var i=e._fullLayout,l=eu.getId(a);a||(a=i[l]);var o=i._size,s=eu.isVertical(a),u=eu.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,h=2*v,d=Yt.itemGap,m=a.indentation+a.itemwidth+d*2,y=2*(v+d),g=nh(a),_=a.y<0||a.y===0&&g==="top",w=a.y>1||a.y===1&&g==="bottom",T=a.tracegroupgap,b={};let{orientation:M,yref:C}=a,{maxheight:k}=a,q=_||w||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=tW(a);if(s)t.each(function(le){var ve=le[0].height;Ft.setTranslate(this,v+z[0],v+z[1]+a._height+ve/2+d),a._height+=ve,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,ve){Ft.setTranslate(this,0,ve*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",W=w||_,Z=i.width/2;a._maxWidth=Math.max(O?W&&F==="left"?o.l+o.w:Z:I?W&&F==="right"?o.r+o.w:Z:o.w,2*m);var V=0,Y=0;t.each(function(le){var ve=eh(le,a,m);V=Math.max(V,ve),Y+=ve}),P=null;var H=0;if(u){var Q=0,K=0,ne=0;r.each(function(){var le=0,ve=0;Ya.select(this).selectAll("g.traces").each(function(De){var Re=eh(De,a,m),Le=De[0].height;Ft.setTranslate(this,z[0],z[1]+v+d+Le/2+ve),ve+=Le,le=Math.max(le,Re),b[De[0].trace.legendgroup]=le});var me=le+d;K>0&&me+v+K>a._maxWidth?(H=Math.max(H,K),K=0,ne+=Q+T,Q=ve):Q=Math.max(Q,ve),Ft.setTranslate(this,K,ne),K+=me}),a._width=Math.max(H,K)+v,a._height=ne+Q+y}else{var pe=t.size(),ye=Y+h+(pe-1)*d=a._maxWidth&&(H=Math.max(H,de),re=0,Ce+=Se,a._height+=Se,Se=0),Ft.setTranslate(this,z[0]+v+re,z[1]+v+Ce+ve/2+d),de=re+me+d,re+=De,Se=Math.max(Se,ve)}),ye?(a._width=re+h,a._height=Se+y):(a._width=Math.max(H,de)+h,a._height+=Se+y)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(v+Yt.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(v+Yt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,ge=be.legendText||be.legendPosition;t.each(function(le){var ve=Ya.select(this).select("."+l+"toggle"),me=le[0].height,De=le[0].trace.legendgroup,Re=eh(le,a,m);u&&De!==""&&(Re=b[De]);var Le=ge?m:P||Re;!s&&!f&&(Le+=d/2),Ft.setRect(ve,0,-me/2,Le,me)});var Ae=n.select("."+l+"titletext");Ae.node()&&QG(Ae,a,v);var B=n.select("."+l+"titletoggle");if(B.size()&&Ae.node()){var $=Ae.attr("x")||0,U=Yt.titlePad;Ft.setRect(B,$-U,v,a._titleWidth+2*U,a._titleHeight+2*U)}}function nW(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 _y.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*js[l],r:i._width*Cw[l],b:i._effHeight*Cw[o],t:i._effHeight*js[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 Nt.isRightAnchor(e)?"right":Nt.isCenterAnchor(e)?"center":"left"}function nh(e){return Nt.isBottomAnchor(e)?"bottom":Nt.isMiddleAnchor(e)?"middle":"top"}});var Sy=J(ky=>{"use strict";var zo=Ir(),Zi=Hr(),zw=_n(),Mt=Ie(),iW=Mt.pushUnique,My=Mt.strTranslate,lW=Mt.strRotate,oW=uf(),Cn=ya(),sW=lw(),Si=at(),ra=Er(),ih=ei(),Ci=dt(),uW=jt().zindexSeparator,tu=br(),ri=_i(),No=Ku(),fW=fy(),cW=Ty(),Uw=No.YANGLE,Ay=Math.PI*Uw/180,vW=1/Math.sin(Ay),hW=Math.cos(Ay),dW=Math.sin(Ay),pt=No.HOVERARROWSIZE,Or=No.HOVERTEXTPAD,Nw={box:!0,ohlc:!0,violin:!0,candlestick:!0},pW={scatter:!0,scattergl:!0,splom:!0};function Fw(e,r){return e.distance-r.distance}ky.hover=function(r,t,a,n){r=Mt.getGraphDiv(r);var i=t.target;Mt.throttle(r._fullLayout._uid+No.HOVERID,No.HOVERMINTIME,function(){mW(r,t,a,n,i)})};ky.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Zw(n),l=Jw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,T=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),P=g.trace;if(tu.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},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||ra.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=Gw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ra.background,container:zo.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 w=g.y0-g.by/2;w-vk[0]._length||U<0||U>q[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=$+k[0]._offset,r.pointerY=U+q[0]._offset,"xval"in r?Z=ri.flat(i,r.xval):Z=ri.p2c(k,$),"yval"in r?V=ri.flat(i,r.yval):V=ri.p2c(q,U),!Zi(Z[0])||!Zi(V[0]))return Mt.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}var me=1/0;function De(vr,lt){for(H=0;Hde&&(I.splice(0,de),me=I[0].distance),v&&O!==0&&I.length===0){Ce.distance=O,Ce.index=!1;var Qr=K._module.hoverPoints(Ce,Se,re,"closest",{hoverLayer:o._hoverlayer});if(Qr&&(Qr=Qr.filter(function(Ct){return Ct.spikeDistance<=O})),Qr&&Qr.length){var fa,mn=Qr.filter(function(Ct){return Ct.xa.showspikes&&Ct.xa.spikesnap!=="hovered data"});if(mn.length){var Qt=mn[0];Zi(Qt.x0)&&Zi(Qt.y0)&&(fa=Le(Qt),(!be.vLinePoint||be.vLinePoint.spikeDistance>fa.spikeDistance)&&(be.vLinePoint=fa))}var hi=Qr.filter(function(Ct){return Ct.ya.showspikes&&Ct.ya.spikesnap!=="hovered data"});if(hi.length){var yn=hi[0];Zi(yn.x0)&&Zi(yn.y0)&&(fa=Le(yn),(!be.hLinePoint||be.hLinePoint.spikeDistance>fa.spikeDistance)&&(be.hLinePoint=fa))}}}}}De();function Re(vr,lt,Zr){for(var ft=null,St=1/0,bt,Qr=0;Qrvr.trace.index===Te.trace.index):I=[Te];var ke=I.length,He=Yw("x",Te,o),Je=Yw("y",Te,o);De(He,Je);var Ve=[],Xe={},lr=0,tr=function(vr){var lt=Nw[vr.trace.type]?Vw(vr):vr.trace.index;if(!Xe[lt])lr++,Xe[lt]=lr,Ve.push(vr);else{var Zr=Xe[lt]-1,ft=Ve[Zr];Zr>0&&Math.abs(vr.distance)ke-1;Qe--)tr(I[Qe]);I=Ve,Pe()}var Ne=e._hoverdata,ae=[],oe=Zw(e),qe=Jw(e);for(let vr of I){var Ee=ri.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var ar=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(ar=vr.cd[vr.index].ht),vr.hovertemplate=ar||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var cr=vr.x0+vr.xa._offset,sr=vr.x1+vr.xa._offset,Mr=vr.y0+vr.ya._offset,Br=vr.y1+vr.ya._offset,$r=Math.min(cr,sr),it=Math.max(cr,sr),_t=Math.min(Mr,Br),yt=Math.max(Mr,Br);Ee.bbox={x0:$r+qe,x1:it+qe,y0:_t+oe,y1:yt+oe}}vr.eventData=[Ee],ae.push(Ee)}e._hoverdata=ae;var Dt=h==="y"&&(W.length>1||I.length>1)||h==="closest"&&ge&&I.length>1,Kt=ra.combine(o.plot_bgcolor||ra.background,o.paper_bgcolor),qa=Gw(I,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:Kt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),sa=qa.hoverLabels;if(ri.isUnifiedHover(h)||(gW(sa,Dt,o,qa.commonLabelBoundingBox),Xw(sa,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var ua=tu.getComponentMethod("annotations","hasClickToShow")(e,ae);sW(zo.select(n),ua?"pointer":"")}!n||a||!_W(e,r,Ne)||(Ne&&e.emit("plotly_unhover",{event:r,points:Ne}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:Z,yvals:V}))}function Vw(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 yW=/([\s\S]*)<\/extra>/;function Gw(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||No.HOVERFONT,v=r.fontSize||No.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,w=e[0],T=w.xa,b=w.ya,M=n.charAt(0),C=M+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-oe&&(qe=a.width-oe),Te.attr("d","M"+(Qe-qe)+",0L"+(Qe-qe+pt)+","+ae+pt+"H"+oe+"v"+ae+(Or*2+tr.height)+"H"+-oe+"V"+ae+pt+"H"+(Qe-qe-pt)+"Z"),Qe=qe,H.minX=Qe-oe,H.maxX=Qe+oe,T.side==="top"?(H.minY=Ne-(Or*2+tr.height),H.maxY=Ne-Or):(H.minY=Ne+Or,H.maxY=Ne+(Or*2+tr.height))}else{var Ee,ar,cr;b.side==="right"?(Ee="start",ar=1,cr="",Qe=T._offset+T._length):(Ee="end",ar=-1,cr="-",Qe=T._offset),Ne=b._offset+(w.y0+w.y1)/2,ke.attr("text-anchor",Ee),Te.attr("d","M0,0L"+cr+pt+","+pt+"V"+(Or+tr.height/2)+"h"+cr+(Or*2+tr.width)+"V-"+(Or+tr.height/2)+"H"+cr+pt+"V-"+pt+"Z"),H.minY=Ne-(Or+tr.height/2),H.maxY=Ne+(Or+tr.height/2),b.side==="right"?(H.minX=Qe+pt,H.maxX=Qe+pt+(Or*2+tr.width)):(H.minX=Qe-pt-(Or*2+tr.width),H.maxX=Qe-pt);var sr=tr.height/2,Mr=P-tr.top-sr,Br="clip"+a._uid+"commonlabel"+b._id,$r;if(QeTe.hoverinfo!=="none");if(ze.length===0)return[];var Q=a.hoverlabel,K=Q.font,ne=ze[0],pe=((n==="x unified"?ne.xa:ne.ya).unifiedhovertitle||{}).text,ye=pe?Mt.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:pe}):k,Se={showlegend:!0,legend:{title:{text:ye,font:K},font:K,bgcolor:Q.bgcolor,bordercolor:Q.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},re={font:K};fW(Se,re,t._fullData);var Ce=re.legend;Ce.entries=[];for(var de=0;de=0?xe=Pe:Be+ve=0?xe=Be:Ge+ve=0?Ke=Oe:We+me=0?Ke=We:ie+me=0,(ze.idealAlign==="top"||!yt)&&Dt?(cr-=Mr/2,ze.anchor="end"):yt?(cr+=Mr/2,ze.anchor="start"):ze.anchor="middle",ze.crossPos=cr;else{if(ze.pos=cr,yt=ar+sr/2+_t<=z,Dt=ar-sr/2-_t>=0,(ze.idealAlign==="left"||!yt)&&Dt)ar-=sr/2,ze.anchor="end";else if(yt)ar+=sr/2,ze.anchor="start";else{ze.anchor="middle";var Kt=_t/2,qa=ar+Kt-z,sa=ar-Kt;qa>0&&(ar-=qa),sa<0&&(ar+=-sa)}ze.crossPos=ar}Ne.attr("text-anchor",ze.anchor),oe&&ae.attr("text-anchor",ze.anchor),Te.attr("transform",My(ar,cr)+(i?lW(Uw):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function Iw(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=Mt.templateString(e.name,e.trace._meta)),l=Bw(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=Mt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(yW,(m,y)=>(l=Bw(y,e.nameLength),""))}return[o,l]}function gW(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(Z){return Z*t._invScaleX},g=function(Z){return Z*t._invScaleY};e.each(function(Z){var V=Z[n],Y=Z[i],H=V._id.charAt(0)==="x",Q=V.range;f===0&&Q&&Q[0]>Q[1]!==H&&(o=-1);var K=0,ne=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=Ww(Z,r),ye=Z.anchor,Se=ye==="end"?-1:1,re,Ce;if(ye==="middle")re=Z.crossPos+(H?g(pe.y-Z.by/2):y(Z.bx/2+Z.tx2width/2)),Ce=re+(H?g(Z.by):y(Z.bx));else if(H)re=Z.crossPos+g(pt+pe.y)-g(Z.by/2-pt),Ce=re+g(Z.by);else{var de=y(Se*pt+pe.x),be=de+y(Se*Z.bx);re=Z.crossPos+Math.min(de,be),Ce=Z.crossPos+Math.max(de,be)}H?d!==void 0&&m!==void 0&&Math.min(Ce,m)-Math.max(re,d)>1&&(Y.side==="left"?(K=Y._mainLinePosition,ne=t.width):ne=Y._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Ce,h)-Math.max(re,v)>1&&(Y.side==="top"?(K=Y._mainLinePosition,ne=t.height):ne=Y._mainLinePosition)}u[f++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?vW:1)/2,pmin:K,pmax:ne}]}),u.sort(function(Z,V){return Z[0].posref-V[0].posref||o*(V[0].traceIndex-Z[0].traceIndex)});var _,w,T,b,M,C,k;function q(Z){var V=Z[0],Y=Z[Z.length-1];if(w=V.pmin-V.pos-V.dp+V.size,T=Y.pos+Y.dp+Y.size-V.pmax,w>.01){for(M=Z.length-1;M>=0;M--)Z[M].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(M=Z.length-1;M>=0;M--)Z[M].dp-=T;_=!1}if(_){var H=0;for(b=0;bV.pmax&&H++;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos>V.pmax-1&&(C.del=!0,H--);for(b=0;b=0;M--)Z[M].dp-=T;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos+C.dp+C.size>V.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+=w;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(T=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=T;_=!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],W=I.datum;W.offset=I.dp,W.del=I.del}}}function Ww(e,r){var t=0,a=e.offset;return r&&(a*=-dW,t=e.offset*hW),{x:t,y:a}}function bW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+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 Xw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=zo.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=bW(l),h=Ww(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*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+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 w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Cn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(Cn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Si.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 xW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Zi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Mt.castOption(n,t,h);return l(m)?m:Mt.extractOption({},a,"",d)}:function(h,d){return Mt.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=Mt.constrain(e.x0,0,e.xa._length),e.x1=Mt.constrain(e.x1,0,e.xa._length),e.y0=Mt.constrain(e.y0,0,e.ya._length),e.y1=Mt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ci.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:Ci.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=Ci.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ci.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=Ci.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ci.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 Hw(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=ra.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=zw.readability(h.color,v)<1.5?ra.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||g,b=Ci.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":w,stroke:T,"stroke-dasharray":Si.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).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=zw.readability(D.color,v)<1.5?ra.contrast(v):D.color,I=u.spikemode,W=u.spikethickness,Z=u.spikecolor||O,V=Ci.getPxPosition(e,u),Y,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(Y=V,H=z),I.indexOf("across")!==-1){var Q=u._counterDomainMin,K=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),K=Math.max(K,u.position)),Y=i.t+(1-K)*i.h,H=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W,stroke:Z,"stroke-dasharray":Si.dashStyle(u.spikedash,W)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:V-(u.side!=="top"?W:-W),r:W,fill:Z}).classed("spikeline",!0)}}}function _W(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 Ow(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Bw(e,r){return Cn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Jw=e=>e.offsetLeft+e.clientLeft;function ru(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Mt.apply3DTransform(t._invTransform)(n,i),u=Mt.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=J((Ose,Kw)=>{"use strict";var TW=Ie(),MW=Er(),AW=_i().isUnifiedHover;Kw.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&&AW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=MW.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),TW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var $w=J((Bse,Qw)=>{"use strict";var kW=Ie(),SW=lh(),CW=_s();Qw.exports=function(r,t){function a(n,i){return kW.coerce(r,t,CW,n,i)}SW(r,t,a)}});var rT=J((Yse,eT)=>{"use strict";var jw=Ie(),LW=qv(),qW=lh();eT.exports=function(r,t,a,n){function i(o,s){return jw.coerce(r,t,LW,o,s)}var l=jw.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),qW(r,t,i,l)}});var Cy=J((Use,tT)=>{"use strict";var DW=Ie(),EW=_s();tT.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:DW.coerce(r,t,EW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var iT=J((Vse,nT)=>{"use strict";var aT=Ie(),PW=_s(),RW=Cy(),zW=lh();nT.exports=function(r,t){function a(f,v){return aT.coerce(r,t,PW,f,v)}var n=RW(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),zW(r,t,a),aT.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var sT=J((Gse,oT)=>{"use strict";var Ly=Ie(),lT=br();oT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Ly.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var FW=br(),IW=Sy().hover;uT.exports=function(r,t,a){var n=FW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&IW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Li=J((Xse,hT)=>{"use strict";var HW=Ir(),oh=Ie(),OW=ei(),Ef=_i(),cT=_s(),vT=Sy();hT.exports={moduleType:"component",name:"fx",constants:Ku(),schema:{layout:cT},attributes:qv(),layoutAttributes:cT,supplyLayoutGlobalDefaults:$w(),supplyDefaults:rT(),supplyLayoutDefaults:iT(),calc:sT(),getDistanceFunction:Ef.getDistanceFunction,getClosest:Ef.getClosest,inbox:Ef.inbox,quadrature:Ef.quadrature,appendArrayPointValue:Ef.appendArrayPointValue,castHoverOption:YW,castHoverinfo:UW,hover:vT.hover,unhover:OW.unhover,loneHover:vT.loneHover,loneUnhover:BW,click:fT()};function BW(e){var r=oh.isD3Selection(e)?e:HW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function YW(e,r,t){return oh.castOption(e,r,"hoverlabel."+t)}function UW(e,r,t){function a(n){return oh.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return oh.castOption(e,t,"hoverinfo",a)}});var au=J(Ji=>{"use strict";Ji.selectMode=function(e){return e==="lasso"||e==="select"};Ji.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ji.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ji.selectingOrDrawing=function(e){return Ji.freeMode(e)||Ji.rectMode(e)}});var sh=J((Jse,dT)=>{"use strict";dT.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=J((Kse,pT)=>{"use strict";pT.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=J((Qse,mT)=>{"use strict";var fh=32;mT.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=J(($se,gT)=>{"use strict";var VW=Ie().strTranslate;function yT(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 GW(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 WW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return yT(e,t[r])}}function XW(e){return VW(e.xaxis._offset,e.yaxis._offset)}gT.exports={p2r:yT,r2p:GW,axValue:WW,getTransform:XW}});var ql=J(Ki=>{"use strict";var ZW=ym(),_T=ch(),nu=_T.CIRCLE_SIDES,qy=_T.SQRT2,wT=vh(),bT=wT.p2r,xT=wT.r2p,JW=[0,3,4,5,6,1,2],KW=[0,3,4,1,2];Ki.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var TT=Zt(),CT=au(),QW=CT.drawMode,$W=CT.openMode,iu=ch(),MT=iu.i000,AT=iu.i090,kT=iu.i180,ST=iu.i270,jW=iu.cos45,eX=iu.sin45,LT=vh(),dh=LT.p2r,Dl=LT.r2p,rX=_l(),tX=rX.clearOutline,ph=ql(),aX=ph.readPaths,nX=ph.writePaths,iX=ph.ellipseOver,lX=ph.fixDatesForPaths;function oX(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(!QW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var sX=au(),uX=sX.selectMode,fX=_l(),cX=fX.clearOutline,Dy=ql(),vX=Dy.readPaths,hX=Dy.writePaths,dX=Dy.fixDatesForPaths;ET.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(!uX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";PT.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 Pl=J(xa=>{"use strict";var qi=Rf(),RT=Ie(),El=dt();xa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};xa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};xa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};xa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};xa.extractPathCoords=function(e,r,t){var a=[],n=e.match(qi.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(qi.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};xa.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=xa.shapePositionToRange(r);l=function(s){var u=Qi(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=xa.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};xa.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=xa.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};xa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};xa.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}};xa.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}};xa.getPathString=function(e,r){let t=r.type,a=El.getRefType(r.xref),n=El.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,h,d,m,y,g,_;function w(P,z,F,O){var I;if(P)if(z==="domain")O?I=function(W){return P._offset+P._length*(1-W)}:I=function(W){return P._offset+P._length*W};else{let W=xa.shapePositionToRange(P);I=function(Z){return P._offset+P.r2p(W(Z,!0))},F==="path"&&P.type==="date"&&(I=xa.decodeDate(I))}else O?I=function(W){return i.t+i.h*(1-W)}:I=function(W){return i.l+i.w*W};return I}if(a==="array"?(h=[],l=r.xref.map(function(P){return El.getFromId(e,P)}),h=r.xref.map(function(P,z){return w(l[z],El.getRefType(P),t,!1)})):(l=El.getFromId(e,r.xref),h=w(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(P){return El.getFromId(e,P)}),d=r.yref.map(function(P,z){return w(o[z],El.getRefType(P),t,!0)})):(o=El.getFromId(e,r.yref),d=w(o,n,t,!0)),t==="path")return pX(r,h,d);if(a==="array")s=Qi(l[0],r.x0shift),u=Qi(l[1],r.x1shift),m=h[0](r.x0)+s,y=h[1](r.x1)+u;else if(s=Qi(l,r.x0shift),u=Qi(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=Qi(o[0],r.y0shift),v=Qi(o[1],r.y1shift),g=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=Qi(o,r.y0shift),v=Qi(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 T=(m+y)/2,b=(g+_)/2,M=Math.abs(T-m),C=Math.abs(b-g),k="A"+M+","+C,q=T+M+","+b,D=T+","+(b-C);return"M"+q+k+" 0 1,1 "+D+k+" 0 0,1 "+q+"Z"};function pX(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(qi.segmentRE,function(h){var d=0,m=h.charAt(0),y=qi.paramIsX[m],g=qi.paramIsY[m],_=qi.numParams[m];let w=y.drawn!==void 0,T=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var C=h.slice(1).replace(qi.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.*/,""),RT.log("Ignoring extra params in segment "+h)),w&&f++,T&&v++,m+C})}function Qi(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 Ry=J((nue,FT)=>{"use strict";var mX=Ie(),Di=dt(),zT=ya(),NT=at(),yX=ql().readPaths,Py=Pl(),gX=Py.getPathString,zf=Hv(),bX=Ma().FROM_TL;FT.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=Di.getFromId(r,a.xref),s=Di.getFromId(r,a.yref);let K=Array.isArray(a.xref),ne=Array.isArray(a.yref);for(var u in zf){var f=typeof zf[u]=="function",v=!K||zf.simpleXVariables.includes(u),h=!ne||zf.simpleYVariables.includes(u);if(f&&v&&h){var d=zf[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=mX.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),w=_.append("text").attr(g).classed("shape-label-text",!0).text(i),T,b,M,C;if(a.path){var k=gX(r,a),q=yX(k,r);T=1/0,M=1/0,b=-1/0,C=-1/0;for(var D=0;D=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function _X(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,_,w,T;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 wX=Ie(),TX=wX.strTranslate,IT=ei(),BT=au(),MX=BT.drawMode,YT=BT.selectMode,UT=br(),HT=Er(),yh=ch(),AX=yh.i000,kX=yh.i090,SX=yh.i180,CX=yh.i270,LX=_l(),VT=LX.clearOutlineControllers,Ny=ql(),Nf=Ny.pointsOnRectangle,zy=Ny.pointsOnEllipse,qX=Ny.writePaths,DX=mh().newShapes,EX=mh().createShapeObj,PX=Ey(),RX=Ry();GT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(zy(r[0])||Nf(r[0])||a.hasText)&&o({redrawing:!0})}function o(V){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=DX(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=PX(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&UT.call((V||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=MX(f),h=YT(f);(v||h)&&(i._fullLayout._outlining=!0),VT(i),t.attr("d",qX(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=zX([],r);var w=u.append("g").attr("class","outline-controllers");P(w),Z()}if(v&&a.hasText){var T=u.select(".label-temp"),b=EX(t,a,a.dragmode);RX(i,"label-temp",b,T)}function M(V){y=+V.srcElement.getAttribute("data-i"),g=+V.srcElement.getAttribute("data-j"),d[y][g].moveFn=C}function C(V,Y){if(r.length){var H=_[y][g][1],Q=_[y][g][2],K=r[y],ne=K.length;if(Nf(K)){var pe=V,ye=Y;if(a.isActiveSelection){var Se=OT(K,g);Se[1]===K[g][1]?ye=0:pe=0}for(var re=0;re1&&!(V.length===2&&V[1][0]==="Z")&&(g===0&&(V[0][0]="M"),r[y]=V,l(),o())}}function D(V,Y){if(V===2){y=+Y.srcElement.getAttribute("data-i"),g=+Y.srcElement.getAttribute("data-j");var H=r[y];!Nf(H)&&!zy(H)&&q()}}function P(V){d=[];for(var Y=0;Y{"use strict";var FX=Ir(),KT=br(),Iy=Ie(),Fo=dt(),IX=ql().readPaths,HX=gh(),xh=Ry(),QT=_l().clearOutlineControllers,Fy=Er(),_h=at(),OX=ct().arrayEditor,WT=ei(),XT=Cl(),Io=Rf(),$a=Pl(),Hy=$a.getPathString;eM.exports={draw:Oy,drawOne:$T,eraseActiveShape:VX,drawLabel:xh};function Oy(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;nFo.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 YX(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,_,w,T,b,M,C,k,q,D,P,z,F=FX.select(r.node().parentNode),O=Fo.getFromId(e,t.xref),I=Fo.getRefType(t.xref),W=Fo.getFromId(e,t.yref),Z=Fo.getRefType(t.yref),V=t.x0shift,Y=t.x1shift,H=t.y0shift,Q=t.y1shift,K=function(Re,Le){var Fe=$a.getDataToPixel(e,O,Le,!1,I);return Fe(Re)},ne=function(Re,Le){var Fe=$a.getDataToPixel(e,W,Le,!0,Z);return Fe(Re)},pe=$a.getPixelToData(e,O,!1,I),ye=$a.getPixelToData(e,W,!0,Z),Se=de(),re={element:Se.node(),gd:e,prepFn:Ae,doneFn:B,clickFn:$},Ce;WT.init(re),Se.node().onmousemove=ge;function de(){return f?be():r}function be(){var Re=10,Le=Math.max(t.line.width,Re),Fe=n.append("g").attr("data-index",a).attr("drag-helper",!0);Fe.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Oe={"fill-opacity":"0"},We=Math.max(Le/2,Re);return Fe.append("circle").attr({"data-line-point":"start-point",cx:s?K(t.xanchor)+t.x0:K(t.x0,V),cy:u?ne(t.yanchor)-t.y0:ne(t.y0,H),r:We}).style(Oe).classed("cursor-grab",!0),Fe.append("circle").attr({"data-line-point":"end-point",cx:s?K(t.xanchor)+t.x1:K(t.x1,Y),cy:u?ne(t.yanchor)-t.y1:ne(t.y1,Q),r:We}).style(Oe).classed("cursor-grab",!0),Fe}function ge(Re){if(bh(e)){Ce=null;return}if(f)Re.target.tagName==="path"?Ce="move":Ce=Re.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=re.element.getBoundingClientRect(),Fe=Le.right-Le.left,Oe=Le.bottom-Le.top,We=Re.clientX-Le.left,Pe=Re.clientY-Le.top,Be=!v&&Fe>l&&Oe>o&&!Re.shiftKey?WT.getCursor(We/Fe,1-Pe/Oe):"move";XT(r,Be),Ce=Be.split("-")[0]}}function Ae(Re){bh(e)||(s&&(_=K(t.xanchor)),u&&(w=ne(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:K(t.x0),m=u?t.y0:ne(t.y0),y=s?t.x1:K(t.x1),g=u?t.y1:ne(t.y1)),dg?(T=m,k="y0",b=g,q="y1"):(T=g,k="y1",b=m,q="y0"),ge(Re),ve(n,t),De(r,t,e),re.moveFn=Ce==="move"?U:le,re.altKey=Re.altKey)}function B(){bh(e)||(XT(r),me(n),jT(r,e,t),KT.call("_guiRelayout",e,i.getUpdateObj()))}function $(){bh(e)||me(n)}function U(Re,Le){if(t.type==="path"){var Fe=function(Pe){return Pe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(Be){return pe(K(Be)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(Be){return ye(ne(Be)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else s?h("xanchor",t.xanchor=pe(_+Re)):(h("x0",t.x0=pe(d+Re)),h("x1",t.x1=pe(y+Re))),u?h("yanchor",t.yanchor=ye(w+Le)):(h("y0",t.y0=ye(m+Le)),h("y1",t.y1=ye(g+Le)));r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function le(Re,Le){if(v){var Fe=function(Xe){return Xe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(lr){return pe(K(lr)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(lr){return ye(ne(lr)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else if(f){if(Ce==="resize-over-start-point"){var Pe=d+Re,Be=u?m-Le:m+Le;h("x0",t.x0=s?Pe:pe(Pe)),h("y0",t.y0=u?Be:ye(Be))}else if(Ce==="resize-over-end-point"){var Ge=y+Re,ie=u?g-Le:g+Le;h("x1",t.x1=s?Ge:pe(Ge)),h("y1",t.y1=u?ie:ye(ie))}}else{var xe=function(Xe){return Ce.indexOf(Xe)!==-1},Ke=xe("n"),hr=xe("s"),ze=xe("w"),Te=xe("e"),ke=Ke?T+Le:T,He=hr?b+Le:b,Je=ze?M+Re:M,Ve=Te?C+Re:C;u&&(Ke&&(ke=T-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))),Ve-Je>l&&(h(D,t[D]=s?Je:pe(Je)),h(P,t[P]=s?Ve:pe(Ve)))}r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function ve(Re,Le){(s||u)&&Fe();function Fe(){var Oe=Le.type!=="path",We=Re.selectAll(".visual-cue").data([0]),Pe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Be=K(s?Le.xanchor:Iy.midRange(Oe?[Le.x0,Le.x1]:$a.extractPathCoords(Le.path,Io.paramIsX))),Ge=ne(u?Le.yanchor:Iy.midRange(Oe?[Le.y0,Le.y1]:$a.extractPathCoords(Le.path,Io.paramIsY)));if(Be=$a.roundPositionForSharpStrokeRendering(Be,Pe),Ge=$a.roundPositionForSharpStrokeRendering(Ge,Pe),s&&u){var ie="M"+(Be-1-Pe)+","+(Ge-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var xe="M"+(Be-1-Pe)+","+(Ge-9-Pe)+"v18 h2 v-18 Z";We.attr("d",xe)}else{var Ke="M"+(Be-9-Pe)+","+(Ge-1-Pe)+"h18 v2 h-18 Z";We.attr("d",Ke)}}}function me(Re){Re.selectAll(".visual-cue").remove()}function De(Re,Le,Fe){var Oe=Le.xref,We=Le.yref,Pe=Fo.getFromId(Fe,Oe),Be=Fo.getFromId(Fe,We),Ge="";Oe!=="paper"&&!Pe.autorange&&(Ge+=Oe),We!=="paper"&&!Be.autorange&&(Ge+=We),_h.setClipUrl(Re,Ge?"clip"+Fe._fullLayout._uid+Ge:null,Fe)}}function ZT(e,r,t){return e.replace(Io.segmentRE,function(a){var n=0,i=a.charAt(0),l=Io.paramIsX[i],o=Io.paramIsY[i],s=Io.numParams[i],u=a.slice(1).replace(Io.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function UX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){JT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=JT,Oy(e)}}}function JT(e){if(wh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(QT(e),delete e._fullLayout._activeShapeIndex,Oy(e))}}function VX(e){if(wh(e)){QT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ln=br(),rM=Ht(),tM=Zt(),Ur=uh(),GX=Th().eraseActiveShape,Mh=Ie(),Nr=Mh._,Vr=uM.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"};Mh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Ln.call("downloadImage",e,t).then(function(a){Mh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){Mh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){rM.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){rM.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Na};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Na};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Na};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Na};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Na};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Na};Vr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Na};Vr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Na};Vr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Na};Vr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:GX};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Na};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Na};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Na};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Na};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:Na};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: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=tM.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 fM=Uy(),ZX=Object.keys(fM),cM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],vM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(cM),ou=[],JX=function(e){if(vM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ou.indexOf(r)===-1&&ou.push(r),ou.indexOf(t)===-1&&ou.push(t)}};ZX.forEach(function(e){JX(fM[e])});ou.sort();hM.exports={DRAW_MODES:cM,backButtons:vM,foreButtons:ou}});var Gy=J((fue,dM)=>{"use strict";var uue=Vy();dM.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 mM=J((cue,pM)=>{"use strict";var KX=Ie(),Ff=Er(),QX=ct(),$X=Gy();pM.exports=function(r,t){var a=r.modebar||{},n=QX.newContainer(t,"modebar");function i(o,s){return KX.coerce(a,n,$X,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 xM=J((vue,bM)=>{"use strict";var Wy=Ir(),jX=Hr(),kh=Ie(),yM=uh(),eZ=gv().version,rZ=new DOMParser;function gM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ei=gM.prototype;Ei.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(),kh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ei.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)})};Ei.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ei.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&&Wy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||yM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ei.createIcon=function(e){var r=jX(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=rZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ei.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=Wy.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:kh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ei.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var nZ=Zt(),_M=ln(),Xy=br(),iZ=_i().isUnifiedHover,lZ=xM(),Sh=Uy(),oZ=Vy().DRAW_MODES,sZ=Ie().extendDeep;wM.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=dZ(i):!a.displayModeBar&&a.watermark?l=[]:l=uZ(r),n?n.update(r,l):t._modeBar=lZ(r,l)};function uZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,H){if(typeof H=="string"){if(H.toLowerCase()===Y.toLowerCase())return!0}else{var Q=H.name,K=H._cat||H.name;if(Q===Y||K===Y.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(Y){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"]:T?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(vZ(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"]),cZ(t)&&F.push("select2d","lasso2d");var O=[],I=function(Y){O.indexOf(Y)===-1&&P.indexOf(Y)!==-1&&O.push(Y)};if(Array.isArray(o)){for(var W=[],Z=0;Z{"use strict";MM.exports={moduleType:"component",name:"modebar",layoutAttributes:Gy(),supplyLayoutDefaults:mM(),manage:TM()}});var Jy=J((pue,AM)=>{"use strict";var pZ=Ma().FROM_BL;AM.exports=function(r,t,a){a===void 0&&(a=pZ[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=J(If=>{"use strict";var Ho=Ie(),Ky=xf(),ti=Zt().id2name,mZ=Qn(),kM=Jy(),yZ=P0(),gZ=Gt().ALMOST_EQUAL,bZ=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 _Z(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lgZ*m&&!w)){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 Lh=Ir(),Fa=br(),cn=Ht(),qn=Ie(),jy=ya(),eg=sh(),Of=Er(),su=at(),qM=gf(),zM=Zy(),Bf=dt(),$i=Ma(),NM=Hf(),wZ=NM.enforce,TZ=NM.clean,DM=xf().doAutoRange,FM="start",MZ="middle",IM="end",AZ=jt().zindexSeparator;ta.layoutStyles=function(e){return qn.syncOrAsync([cn.doAutoMargin,SZ],e)};function kZ(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function SZ(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(su.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ta.drawMainTitle(e),zM.manage(e),!r._has("cartesian"))return cn.previousPromises(e);function v(Ae,B,$){var U=Ae._lw/2;if(Ae._id.charAt(0)==="x"){if(B){if($==="top")return B._offset-a-U}else return t.t+t.h*(1-(Ae.position||0))+U%1;return B._offset+B._length+a+U}if(B){if($==="right")return B._offset+B._length+a+U}else return t.l+t.w*(Ae.position||0)+U%1;return B._offset-a-U}for(i=0;i0){DZ(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,i);var f=(r.text.match(jy.BR_TAG_ALL)||[]).length;if(f){var v=$i.LINE_SPACING*f+$i.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=Lh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+qM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,y)}}}};function CZ(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=qn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return qn.isTopAnchor(r)&&t==="t"||qn.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=LZ(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function DZ(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"&&CZ(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),cn.allowAutoMargin(e,n),cn.autoMargin(e,n,o)}function EZ(e,r){var t=e.title,a=e._size,n=0;switch(r===FM?n=t.pad.l:r===IM&&(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 PZ(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===$i.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 RM(e){return e==="top"?$i.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":$i.MID_SHIFT+"em"}function RZ(e){var r=e.title,t=MZ;return qn.isRightAnchor(r)?t=IM:qn.isLeftAnchor(r)&&(t=FM),t}function zZ(e){var r=e.title,t="0em";return qn.isTopAnchor(r)?t=$i.CAP_SHIFT+"em":qn.isMiddleAnchor(r)&&(t=$i.MID_SHIFT+"em"),t}ta.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var NZ=ql().readPaths,FZ=gh(),HM=_l().clearOutlineControllers,rg=Er(),OM=at(),IZ=ct().arrayEditor,BM=Pl(),HZ=BM.getPathString;UM.exports={draw:Dh,drawOne:YM,activateLastSelection:YZ};function Dh(e){var r=e._fullLayout;HM(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(rg.stroke,v).call(rg.fill,f).call(OM.dashLine,g?"solid":d,g?4+h:h);if(OZ(_,e,a),m){var w=IZ(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=NZ(o,e);FZ(b,_,T)}else _.style("pointer-events",g?"all":"none");y[g]=_}var M=y[0],C=y[1];C.node().addEventListener("click",function(){return BZ(e,M)})}}function OZ(e,r,t){var a=t.xref+t.yref;OM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function BZ(e,r){if(Eh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){tg(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=tg,Dh(e)}}}function YZ(e){if(Eh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=tg,Dh(e)}}function tg(e){if(Eh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(HM(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var GM=J((bue,VM)=>{function UZ(){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}VM.exports=UZ});var XM=J((xue,WM)=>{function VZ(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}WM.exports=VZ});var JM=J((_ue,ZM)=>{var GZ={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}};ZM.exports=GZ});var QM=J((wue,KM)=>{var Yf=JM();function WZ(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,_,w,T){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(g,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?w:T,_?T:w)?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 _(W,Z){var V=W.seg.start,Y=W.seg.end,H=Z.seg.start,Q=Z.seg.end;return r.pointsCollinear(V,H,Q)?r.pointsCollinear(Y,H,Q)||r.pointAboveOrOnLine(Y,H,Q)?1:-1:r.pointAboveOrOnLine(V,H,Q)?1:-1}function w(W){return g.findTransition(function(Z){var V=_(W,Z.ev);return V>0})}function T(W,Z){var V=W.seg,Y=Z.seg,H=V.start,Q=V.end,K=Y.start,ne=Y.end;t&&t.checkIntersection(V,Y);var pe=r.linesIntersect(H,Q,K,ne);if(pe===!1){if(!r.pointsCollinear(H,Q,K)||r.pointsSame(H,ne)||r.pointsSame(Q,K))return!1;var ye=r.pointsSame(H,K),Se=r.pointsSame(Q,ne);if(ye&&Se)return Z;var re=!ye&&r.pointBetween(H,K,ne),Ce=!Se&&r.pointBetween(Q,K,ne);if(ye)return Ce?h(Z,Q):h(W,ne),Z;re&&(Se||(Ce?h(Z,Q):h(W,ne)),h(Z,H))}else pe.alongA===0&&(pe.alongB===-1?h(W,K):pe.alongB===0?h(W,pe.pt):pe.alongB===1&&h(W,ne)),pe.alongB===0&&(pe.alongA===-1?h(Z,H):pe.alongA===0?h(Z,pe.pt):pe.alongA===1&&h(Z,Q));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let W=function(){if(k){var Z=T(M,k);if(Z)return Z}return q?T(M,q):!1};var I=W;t&&t.segmentNew(M.seg,M.primary);var C=w(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=W();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)&&T(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 XZ(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,W,Z){return f.index=I,f.matches_head=W,f.matches_pt1=Z,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 ZZ={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)}};eA.exports=ZZ});var aA=J((Aue,tA)=>{var JZ={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 KZ=GM(),QZ=XM(),nA=QM(),$Z=jM(),Vf=rA(),iA=aA(),Dn=!1,Gf=QZ(),ja;ja={buildLog:function(e){return e===!0?Dn=KZ():e===!1&&(Dn=!1),Dn===!1?!1:Dn.list},epsilon:function(e){return Gf.epsilon(e)},segments:function(e){var r=nA(!0,Gf,Dn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=nA(!1,Gf,Dn);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,Dn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Vf.intersect(e.combined,Dn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Vf.difference(e.combined,Dn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Vf.differenceRev(e.combined,Dn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Vf.xor(e.combined,Dn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$Z(e.segments,Gf,Dn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return iA.toPolygon(ja,e)},polygonToGeoJSON:function(e){return iA.fromPolygon(ja,Gf,e)},union:function(e,r){return Wf(e,r,ja.selectUnion)},intersect:function(e,r){return Wf(e,r,ja.selectIntersect)},difference:function(e,r){return Wf(e,r,ja.selectDifference)},differenceRev:function(e,r){return Wf(e,r,ja.selectDifferenceRev)},xor:function(e,r){return Wf(e,r,ja.selectXor)}};function Wf(e,r,t){var a=ja.segments(e),n=ja.segments(r),i=ja.combine(a,n),l=t(i);return ja.polygon(l)}typeof window=="object"&&(window.PolyBool=ja);lA.exports=ja});var uA=J((Sue,sA)=>{sA.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 ig=J((Cue,fA)=>{"use strict";var ng=Nv().dot,Ph=Gt().BADNUM,Rh=fA.exports={};Rh.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||_===Ph||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===Ph||gn||_===Ph||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],M=0,C,k,q,D,P;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(ng(v,u))>n)return!0;return!1};Rh.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 vA=J((Lue,cA)=>{"use strict";cA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var RA=J((que,PA)=>{"use strict";var hA=oA(),jZ=uA(),Jf=br(),eJ=at().dashStyle,Xf=Er(),rJ=Li(),tJ=_i().makeEventData,ec=au(),aJ=ec.freeMode,nJ=ec.rectMode,Kf=ec.drawMode,ug=ec.openMode,fg=ec.selectMode,dA=Pl(),pA=Rf(),xA=gh(),_A=_l().clearOutline,wA=ql(),lg=wA.handleEllipse,iJ=wA.readPaths,lJ=mh().newShapes,oJ=Ey(),sJ=ag().activateLastSelection,Nh=Ie(),uJ=Nh.sorterAsc,TA=ig(),Zf=Zv(),En=Zt().getFromId,fJ=sh(),cJ=qh().redrawReglTraces,Fh=vA(),Pi=Fh.MINSELECT,vJ=TA.filter,cg=TA.tester,vg=vh(),mA=vg.p2r,hJ=vg.axValue,dJ=vg.getTransform;function hg(e){return e.subplot!==void 0}function pJ(e,r,t,a,n){var i=!hg(a),l=aJ(n),o=nJ(n),s=ug(n),u=Kf(n),f=fg(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,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=dJ(T),M=r-w.left,C=t-w.top;y._calcInverseTransform(m);var k=Nh.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],W=O._length,Z=I._length,V=e.altKey&&!(Kf(n)&&s),Y,H,Q,K,ne,pe,ye;AA(e,m,a),l&&(Y=vJ([[M,C]],Fh.BENDPX));var Se=_.selectAll("path.select-outline-"+T.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)",de=re.line.color||(i?Xf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Se.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":eJ(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Xf.stroke,de).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 ge=_.select(".label-temp");ge.empty()&&(ge=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=y._uid+Fh.SELECTID,B=[],$=Ih(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=O._id,ve=I._id;qA(m,le,ve,$);for(var me=(m.layout||{}).selections||[],De=[],Re=!1,Le=0;Le=0){m._fullLayout._deactivateShape(m);return}if(!u){var me=y.clickmode;Zf.done(Ae).then(function(){if(Zf.clear(Ae),le===2){for(Se.remove(),ne=0;ne<$.length;ne++)pe=$[ne],pe._module.selectPoints(pe,!1);if($f(m,$),Qf(a),mg(m),$.length){var De=$[0].xaxis,Re=$[0].yaxis;if(De&&Re){for(var Le=[],Fe=m._fullLayout.selections,Oe=0;Oe-1&&MA(ve,m,a.xaxes,a.yaxes,a.subplot,a,Se),me==="event"&&jf(m,void 0);rJ.click(m,ve,T.id)}).catch(Nh.error)}},a.doneFn=function(){be.remove(),Zf.done(Ae).then(function(){Zf.clear(Ae),!g&&K&&a.selectionDefs&&(K.subtract=V,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(g||u)&&Qf(a,g),a.doneFnCompleted&&a.doneFnCompleted(B),f&&jf(m,ye)}).catch(Nh.error)}}function MA(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,_,w,T,b,M;if(xJ(o)){AA(e,r,i),h=Ih(r,t,a,n);var C=_J(o,h),k=C.pointNumbers.length>0;if(k?wJ(h,C):TJ(h)&&(w=gA(C))){for(l&&l.remove(),M=0;M=0}function bJ(e){return e._fullLayout._activeSelectionIndex>=0}function Qf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;gJ(n)&&n._fullLayout._deactivateShape(n),bJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Kf(t),s=fg(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=lJ(u,e)),f&&Jf.call("_guiRelayout",n,{shapes:f});var v;s&&!hg(e)&&(v=oJ(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Jf.call("_guiRelayout",n,{selections:v}).then(function(){r&&sJ(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function yA(e){return e._id}function Ih(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(yA),l=t.map(yA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function wJ(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=bA(e,!0);if(le.length){var ve=le[0].xref,me=le[0].yref;if(ve&&me){var De=DA(le),Re=EA([En(e,ve,"x"),En(e,me,"y")]);Re(B,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:U&&jf(e,B),h._reselect=!1}if(!l&&h._deselect){var Le=h._deselect;o=Le.xref,s=Le.yref,kJ(o,s,f)||qA(e,o,s,a),U&&(B.points.length?jf(e,B):mg(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function AJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";zA.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=J((Eue,NA)=>{"use strict";NA.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 uu=J((Rue,HA)=>{"use strict";var FA=yg(),IA=ma(),Hh=jt(),DJ=ct().templatedArray,Pue=rc();HA.exports=DJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:IA({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:FA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:FA.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",Hh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Hh.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",Hh.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:IA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Oh=J((zue,OA)=>{"use strict";OA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var YA=J((Nue,BA)=>{"use strict";BA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Oo=J((Fue,KA)=>{"use strict";var UA=d0().axisHoverFormat,{hovertemplateAttrs:EJ,texttemplateAttrs:PJ,templatefallbackAttrs:VA}=fo(),GA=pf(),RJ=ma(),WA=gi().dash,zJ=gi().pattern,NJ=at(),FJ=Oh(),tc=Wt().extendFlat,IJ=YA();function XA(e){return{valType:"any",dflt:0,editType:"calc"}}function ZA(e){return{valType:"any",editType:"calc"}}function JA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}KA.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:XA("x"),yperiod:XA("y"),xperiod0:ZA("x0"),yperiod0:ZA("y0"),xperiodalignment:JA("x"),yperiodalignment:JA("y"),xhoverformat:UA("x"),yhoverformat:UA("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:PJ(),texttemplatefallback:VA({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:EJ({},{keys:FJ.eventDataKeys}),hovertemplatefallback:VA(),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({},WA,{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:IJ(!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:zJ,marker:tc({symbol:{valType:"enumerated",values:NJ.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({},WA,{arrayOk:!0}),editType:"calc"},GA("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"},GA("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:RJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gg=J((Hue,jA)=>{"use strict";var QA=uu(),$A=Oo().line,HJ=gi().dash,Bh=Wt().extendFlat,OJ=yi().overrideAll,BJ=ct().templatedArray,Iue=rc();jA.exports=OJ(BJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Bh({},QA.xref,{}),yref:Bh({},QA.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:$A.color,width:Bh({},$A.width,{min:1,dflt:1}),dash:Bh({},HJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ak=J((Oue,tk)=>{"use strict";var ek=Ie(),Yh=dt(),YJ=$n(),UJ=gg(),rk=Pl();tk.exports=function(r,t){YJ(r,t,{name:"selections",handleItemDefaults:VJ});for(var a=t.selections,n=0;n{"use strict";nk.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=J((Yue,sk)=>{"use strict";var GJ=br(),lk=Ie(),ok=Zt();sk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=GJ.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 uk=ag(),nc=RA();fk.exports={moduleType:"component",name:"selections",layoutAttributes:gg(),supplyLayoutDefaults:ak(),supplyDrawNewSelectionDefaults:ik(),includeBasePlot:ac()("selections"),draw:uk.draw,drawOne:uk.drawOne,reselect:nc.reselect,prepSelect:nc.prepSelect,clearOutline:nc.clearOutline,clearSelectionsCache:nc.clearSelectionsCache,selectOnClick:nc.selectOnClick}});var Dk=J((Vue,qk)=>{"use strict";var Tg=Ir(),Pn=Ie(),ck=Pn.numberFormat,WJ=_n(),XJ=ay(),Uh=br(),xk=Pn.strTranslate,ZJ=ya(),vk=Er(),zl=at(),JJ=Li(),hk=dt(),KJ=Cl(),QJ=ei(),_k=au(),Vh=_k.selectingOrDrawing,$J=_k.freeMode,jJ=Ma().FROM_TL,eK=sh(),rK=qh().redrawReglTraces,tK=Ht(),xg=Zt().getFromId,aK=fu().prepSelect,nK=fu().clearOutline,iK=fu().selectOnClick,bg=Jy(),Mg=jt(),dk=Mg.MINDRAG,Ua=Mg.MINZOOM,pk=!0;function lK(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,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W,Z,V;t+=r.yaxis._shift;function Y(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var Te=r.overlays,ke=0;ke=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(wg(He),Te===2&&!f&&Ge(),u)Je.indexOf("select")>-1&&iK(ke,He,y,g,r.id,K),Je.indexOf("event")>-1&&JJ.click(He,ke,r.id);else if(Te===1&&f){var Ve=l?h:v,Xe=l==="s"||o==="w"?0:1,lr=Ve._name+".range["+Xe+"]",tr=oK(Ve,Xe),Qe="left",Ne="middle";if(Ve.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ve.side==="right"&&(Qe="right")):o==="e"&&(Qe="right"),He._context.showAxisRangeEntryBoxes&&Tg.select(Q).call(ZJ.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(tr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Qe,verticalAlign:Ne}).on("edit",function(ae){var oe=Ve.d2r(ae);oe!==void 0&&Uh.call("_guiRelayout",He,lr,oe)})}}QJ.init(K);var ye,Se,re,Ce,de,be,ge,Ae,B,$;function U(Te,ke,He){var Je=Q.getBoundingClientRect();ye=ke-Je.left,Se=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ve=Pn.apply3DTransform(e._fullLayout._invTransform)(ye,Se);ye=Ve[0],Se=Ve[1],re={l:ye,r:ye,w:0,t:Se,b:Se,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:WJ(e._fullLayout.plot_bgcolor).getLuminance(),de="M0,0H"+T+"V"+b+"H0V0",be=!1,ge="xy",$=!1,Ae=Mk(s,Ce,_,w,de),B=Ak(s,_,w)}function le(Te,ke){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(T,Z*Te+ye)),Je=Math.max(0,Math.min(b,V*ke+Se)),Ve=Math.abs(He-ye),Xe=Math.abs(Je-Se);re.l=Math.min(ye,He),re.r=Math.max(ye,He),re.t=Math.min(Se,Je),re.b=Math.max(Se,Je);function lr(){ge="",re.r=re.l,re.t=re.b,B.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ve>Ua||Xe>Ua?(ge="xy",Ve/T>Xe/b?(Xe=Ve*b/T,Se>Je?re.t=Se-Xe:re.b=Se+Xe):(Ve=Xe*T/b,ye>He?re.l=ye-Ve:re.r=ye+Ve),B.attr("d",Gh(re))):lr();else if(C.isSubplotConstrained)if(Ve>Ua||Xe>Ua){ge="xy";var tr=Math.min(re.l/T,(b-re.b)/b),Qe=Math.max(re.r/T,(b-re.t)/b);re.l=tr*T,re.r=Qe*T,re.b=(1-tr)*b,re.t=(1-Qe)*b,B.attr("d",Gh(re))}else lr();else!q||Xe0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(lr.maxallowed!==void 0&&P===(lr.range[0]1&&(tr.maxallowed!==void 0&&z===(tr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function uK(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Mk(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",xk(t,a)).attr("d",n+"Z")}function Ak(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vk.background,stroke:vk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xk(r,t)).attr("d","M0,0Z")}function kk(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"),Sk(e,r,n,i)}function Sk(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 wg(e){Tg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ck(e){pk&&e.data&&e._context.showTips&&(Pn.notifier(Pn._(e,"Double-click to zoom back out"),"long"),pk=!1)}function fK(e,r){return"M"+(e.l-.5)+","+(r-Ua-.5)+"h-3v"+(2*Ua+1)+"h3ZM"+(e.r+.5)+","+(r-Ua-.5)+"h3v"+(2*Ua+1)+"h-3Z"}function cK(e,r){return"M"+(r-Ua-.5)+","+(e.t-.5)+"v-3h"+(2*Ua+1)+"v3ZM"+(r-Ua-.5)+","+(e.b+.5)+"v3h"+(2*Ua+1)+"v-3Z"}function Gh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ua)/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 gk(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 vK=Ir(),Wh=Li(),hK=ei(),dK=Cl(),ai=Dk().makeDragBox,aa=jt().DRAGGERSIZE;Xh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){vK.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=ai(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]&&Wh.hover(r,h,i)},Wh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,hK.unhover(r,h))},r._context.showAxisDragHandles&&(ai(r,l,o._offset-aa,s._offset-aa,aa,aa,"n","w"),ai(r,l,o._offset+o._length,s._offset-aa,aa,aa,"n","e"),ai(r,l,o._offset-aa,s._offset+s._length,aa,aa,"s","w"),ai(r,l,o._offset+o._length,s._offset+s._length,aa,aa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=aa),ai(r,l,o._offset+o._length*.1,f,o._length*.8,aa,"","ew"),ai(r,l,o._offset,f,o._length*.1,aa,"","w"),ai(r,l,o._offset+o._length*.9,f,o._length*.1,aa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=aa),ai(r,l,v,s._offset+s._length*.1,aa,s._length*.8,"ns",""),ai(r,l,v,s._offset+s._length*.9,aa,s._length*.1,"s",""),ai(r,l,v,s._offset,aa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Wh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Wh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Xh.updateFx(r)}};Xh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";dK(r._draggers,t)}});var Rk=J((Wue,Pk)=>{"use strict";var Ek=br();Pk.exports=function(r){for(var t=Ek.layoutArrayContainers,a=Ek.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var pK=fl(),kg=zv(),ic=uo(),mK=bp().sorterAsc,Sg=br();lc.containerArrayMatch=Rk();var yK=lc.isAddVal=function(r){return r==="add"||pK(r)},zk=lc.isRemoveVal=function(r){return r===null||r==="remove"};lc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=Sg.getComponentMethod(l,"supplyLayoutDefaults"),s=Sg.getComponentMethod(l,"draw"),u=Sg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===kg||s===kg,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(zk(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(mK),y=t.get(),g=y||[],_=i(h,l).get(),w=[],T=-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),zk(P)?w.push(k):z?(P==="add"&&(P={}),g.splice(k,0,P),_&&_.splice(k,0,{})):ic.warn("Unrecognized full object edit value",l,k,P),T===-1&&(T=k);else for(C=0;C=0;M--)g.splice(w[M],1),_&&_.splice(w[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==kg){var O;if(T===-1)O=m;else{for(b=Math.max(g.length,b),O=[],M=0;M=T));M++)O.push(k);for(M=T;M{"use strict";var Ok=Hr(),Bk=br(),Ia=Ie(),oc=Ht(),Yk=Zt(),Uk=Er(),sc=Yk.cleanId,gK=Yk.getFromTrace,Cg=Bk.traceIs,bK=["x","y","z"];Rn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ia.log("Clearing previous rejected promises from queue."),e._promises=[]};Rn.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"),Uk.clean(e),e.template&&e.template.layout&&Rn.cleanLayout(e.template.layout),e};function cu(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))}Rn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Rn.hasParent=function(e,r){for(var t=Hk(r);t;){if(t in e)return!0;t=Hk(t)}return!1};Rn.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)?Lg(n,i):!1))return!1}return!0}return!1};Rn.collectionsAreEqual=Lg});var zg=J(Yr=>{"use strict";var Qh=Ir(),wK=Hr(),TK=Pp(),rr=Ie(),st=rr.nestedProperty,Eg=uf(),Va=M6(),zn=br(),nd=Fs(),xr=Ht(),Ha=dt(),MK=ty(),AK=Qn(),qg=at(),kK=Er(),SK=Ag().initInteractions,CK=xo(),LK=fu().clearOutline,Jk=so().dfltConfig,Jh=Nk(),It=Vk(),et=qh(),Nl=yi(),qK=jt().AX_NAME_PATTERN,Dg=0,Gk=5;function DK(e,r,t,a){var n;if(e=rr.getGraphDiv(e),Eg.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Eg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.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)}Qk(e,a),t||(t={}),Qh.select(e).classed("js-plotly-plot",!0),qg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(It.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=It.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(eQ(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),qg.initGradients(e),qg.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 $k(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]),jh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&jh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function NK(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("."),W=st(e.layout,I).get(),Z=st(a,I).get(),V=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:ji(V);var Y=nd.getLayoutValObject(a,q.parts);if(Y&&Y.impliedEdits&&D!==null)for(var H in Y.impliedEdits)T(rr.relativeAttr(k,H),Y.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var Q=k==="height"?"width":"height";T(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(O.match(oS))C(O),st(a,I+"._inputRange").set(null);else if(O.match(sS)){C(O),st(a,I+"._inputRange").set(null);var K=st(a,I).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else O.match(OK)&&st(a,I+"._inputDomain").set(null);if(F==="type"){M=W;var ne=Z.type==="linear"&&D==="log",pe=Z.type==="log"&&D==="linear";if(ne||pe){if(!M||!M.range)T(I+".autorange",!0);else if(Z.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&&T(I+".autorange",!0),ye<=0?ye=Se/1e6:Se<=0&&(Se=ye/1e6),T(I+".range[0]",Math.log(ye)/Math.LN10),T(I+".range[1]",Math.log(Se)/Math.LN10)):(T(I+".range[0]",Math.pow(10,ye)),T(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"],zn.getComponentMethod("annotations","convertCoords")(e,Z,D,T),zn.getComponentMethod("images","convertCoords")(e,Z,D,T)}else T(I+".autorange",!0),T(I+".range",null);st(a,I+"._inputRange").set(null)}else if(F.match(qK)){var re=st(a,k).get(),Ce=(D||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),zn.getComponentMethod("annotations","convertCoords")(e,re,Ce,T),zn.getComponentMethod("images","convertCoords")(e,re,Ce,T)}var de=Jh.containerArrayMatch(k);if(de){f=de.array,v=de.index;var be=de.property,ge=Y||{editType:"calc"};v!==""&&be===""&&(Jh.isAddVal(D)?w[k]=null:Jh.isRemoveVal(D)?w[k]=(st(t,f).get()||[])[v]:rr.warn("unrecognized full object value",r)),Nl.update(g,ge),u[f]||(u[f]={});var Ae=u[f][v];Ae||(Ae=u[f][v]={}),Ae[be]=D,delete r[k]}else F==="reverse"?(W.range?W.range.reverse():(T(I+".autorange",!0),W.range=[1,0]),Z.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&V!==!1||D!==!1&&V===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(V==="lasso"||V==="select")?g.plot=!0:Y?Nl.update(g,Y):g.calc=!0,q.set(D))}}for(f in u){var B=Jh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);B||(g.plot=!0)}for(var $ in b){M=Ha.getFromId(e,$);var U=M&&M._constraintGroup;if(U){g.calc=!0;for(var le in U)b[le]||(Ha.getFromId(e,le)._constraintShrinkable=!0)}}(fS(e)||r.height||r.width)&&(g.plot=!0);var ve=a.shapes;for(v=0;v1;)if(a.pop(),t=st(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function UK(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[I,W]of O)W.forEach(Z=>e.on(I,Z));return Yr.react(e,r,t,a)})}else{e.data=r||[],It.cleanData(e.data),e.layout=t||{},It.cleanLayout(e.layout),GK(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=ZK(e,s,h,d,m),g=y.newDataRevision,_=XK(e,o,v,d,m,g);if(fS(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function XK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Nl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=nd.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 w,T,b=[],M=r==null,C=Array.isArray(r),k=!M&&!C&&rr.isPlainObject(r);if(k)b.push({type:"object",data:_(rr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function KK(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.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(rr.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&&Dgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.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 Va&&Va.add(e,o,u,s,f),xr.modifyFrames(e,i)}function $K(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Eg.purge(e),r._container&&r._container.remove(),delete e._context,e}function jK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.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 eQ(e){var r=Qh.select(e),t=e._fullLayout;if(t._calcInverseTransform=jK,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={};Qh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(CK.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=JK;Yr.addFrames=KK;Yr.deleteFrames=QK;Yr.addTraces=aS;Yr.deleteTraces=nS;Yr.extendTraces=rS;Yr.moveTraces=Pg;Yr.prependTraces=tS;Yr.newPlot=zK;Yr._doPlot=DK;Yr.purge=$K;Yr.react=WK;Yr.redraw=RK;Yr.relayout=uc;Yr.restyle=ed;Yr.setPlotConfig=EK;Yr.update=td;Yr._guiRelayout=Rg(uc);Yr._guiRestyle=Rg(ed);Yr._guiUpdate=Rg(td);Yr._storeDirectGUIEdit=HK});var Bo=J(Ri=>{"use strict";var rQ=br();Ri.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Ri.getRedrawFunc=function(e){return function(){rQ.getComponentMethod("colorbar","draw")(e)}};Ri.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ri.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cS=window.URL||window.webkitURL;Ri.createObjectURL=function(e){return cS.createObjectURL(e)};Ri.revokeObjectURL=function(e){return cS.revokeObjectURL(e)};Ri.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=tQ(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Ri.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function tQ(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Fg=Ir(),Que=Ie(),aQ=at(),nQ=Er(),$ue=xo(),Ng=/"/g,cc="TOBESTRIPPED",iQ=new RegExp('("'+cc+")|("+cc+'")',"g");function lQ(e){var r=Fg.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 oQ(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vS.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(aQ.setRect,0,0,o,s).call(nQ.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var sQ=Ie(),uQ=r0().EventEmitter,vc=Bo();function fQ(e){var r=e.emitter||new uQ,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"||sQ.isSafari()?_=vc.encodeSVG(l):(g=vc.createBlob(l,"svg"),_=vc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var w;switch(g=null,vc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(g=null,vc.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},y.src=_});return e.promise?t:r}hS.exports=fQ});var Hg=J((rfe,mS)=>{"use strict";var dS=Hr(),pS=zg(),cQ=Ht(),zi=Ie(),hc=Bo(),vQ=ld(),hQ=od(),dQ=gv().version,Ig={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 pQ(e,r){r=r||{};var t,a,n,i;zi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=zi.getGraphDiv(e),t=zi.extendDeep([],e.data),a=zi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||zi.validate(r[C],Ig[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 "+zi.join2(Ig.format.values,", "," or ")+".");var o={};function s(C,k){return zi.coerce(r,o,Ig,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=zi.extendFlat({},a);f?g.width=f:r.width===null&&dS(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&dS(i.height)&&(g.height=i.height);var _=zi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=hc.getRedrawFunc(y);function T(){return new Promise(function(C){setTimeout(C,hc.getDelay(y._fullLayout))})}function b(){return new Promise(function(C,k){var q=vQ(y,u,h),D=y._fullLayout.width,P=y._fullLayout.height;function z(){pS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=cQ.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=dQ,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=zi.randstr(),hQ({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){pS.newPlot(y,t,g,_).then(w).then(T).then(b).then(function(q){C(M(q))}).catch(function(q){k(q)})})}mS.exports=pQ});var bS=J((tfe,gS)=>{"use strict";var Nn=Ie(),mQ=Ht(),yQ=Fs(),gQ=so().dfltConfig,ni=Nn.isPlainObject,Uo=Array.isArray,Og=Nn.isArrayOrTypedArray;gS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=yQ.get(),n=[],i={_context:Nn.extendFlat({},gQ)},l,o;Uo(r)?(i.data=Nn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(na("array","data"))),ni(t)?(i.layout=Nn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(na("object","layout"))),mQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(na("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(g);w&&(_=Math.min(_,g.length));var T,b,M,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Uo(f[b])){f[b].length>v[b].length&&a.push(na("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,g[b].length):q);T++)M=w?g[b][T]:g,C=f[b][T],k=v[b][T],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b,T),C,k)):a.push(na("value",n,u.concat(b,T),C))}else a.push(na("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)M=w?g[b]:g,C=f[b],k=v[b],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b),C,k)):a.push(na("value",n,u.concat(b),C))}else if(h.items&&!m&&Uo(f)){var D=g[Object.keys(g)[0]],P=[],z,F;for(z=0;z{"use strict";var AQ=Ie(),ud=Bo();function kQ(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=ud.createBlob(e,t),u=ud.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ud.revokeObjectURL(u),s=null,l(r);if(AQ.isSafari()){var f=t==="svg"?",":";base64,";return ud.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}xS.exports=kQ});var Bg=J((ife,TS)=>{"use strict";var wS=Ie(),SQ=Hg(),CQ=_S(),nfe=Bo();function LQ(e,r){var t;return wS.isPlainObject(e)||(t=wS.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=SQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),CQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}TS.exports=LQ});var CS=J(Yg=>{"use strict";var en=Ie(),rn=en.isPlainObject,MS=Fs(),AS=Ht(),qQ=Wn(),kS=ct(),SS=so().dfltConfig;Yg.makeTemplate=function(e){e=en.isPlainObject(e)?e:en.getGraphDiv(e),e=en.extendDeep({_context:SS},{data:e.data,layout:e.layout}),AS.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,EQ.bind(null,d));var y=en.coerce(d,{},qQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),dc(t,a.layout,DQ.bind(null,t)),delete a.layout.template;var n=t.template;if(rn(n)){var i=n.layout,l,o,s,u,f,v;rn(i)&&fd(i,a.layout);var h=n.data;if(rn(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 w(T,b){for(var M in T)if(M.charAt(0)!=="_"){var C=T[M],k=Fn(T,M,b);rn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&PQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(RQ)};function PQ(e){for(var r=0;r{"use strict";var Jt=zg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var zQ=ef().getGraphDiv,NQ=Th().eraseActiveShape;mt.deleteActiveShape=function(e){return NQ(zQ(e))};mt.toImage=Hg();mt.validate=bS();mt.downloadImage=Bg();var LS=CS();mt.makeTemplate=LS.makeTemplate;mt.validateTemplate=LS.validateTemplate});var Vg=J((sfe,DS)=>{"use strict";var Ug=Ie(),FQ=br();DS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=FQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ug.minRowLength(i);l?o=Math.min(u,Ug.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ug.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Gg=J((ufe,RS)=>{"use strict";var ES=Ie().dateTick0,IQ=Gt(),HQ=IQ.ONEWEEK;function PS(e,r){return e%HQ===0?ES(r,1):ES(r,0)}RS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",PS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",PS(o,t.ycalendar)),n("yperiodalignment"))}}});var FS=J((ffe,NS)=>{"use strict";var zS=["orientation","groupnorm","stackgaps"];NS.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 IS=Er(),HS=An().hasColorscale,OS=Bs(),OQ=ln();BS.exports=function(r,t,a,n,i,l={}){var o=OQ.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),HS(r,"marker")&&OS(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=IS.background:u=IS.defaultLine,i("marker.line.color",u),HS(r,"marker.line")&&OS(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 VS=J((vfe,US)=>{"use strict";var BQ=Ie().isArrayOrTypedArray,YQ=An().hasColorscale,UQ=Bs();US.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),YQ(r,"line"))UQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(BQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var WS=J((hfe,GS)=>{"use strict";GS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var ZS=J((dfe,XS)=>{"use strict";var VQ=Ie();XS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),VQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var QS=J((pfe,KS)=>{"use strict";var vd=Er(),JS=Ie().isArrayOrTypedArray;function GQ(e){for(var r=vd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var $S=Ie(),WQ=br(),XQ=Oo(),ZQ=Oh(),vu=ln(),JQ=Vg(),KQ=Gg(),QQ=FS(),$Q=YS(),jQ=VS(),jS=WS(),e$=ZS(),r$=QS(),t$=Ie().coercePattern;eC.exports=function(r,t,a,n){function i(d,m){return $S.coerce(r,t,XQ,d,m)}var l=JQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){KQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=QQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var a$=Hf().getAxisGroup;tC.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=a$(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 nC=J((gfe,aC)=>{"use strict";var n$=Ie(),i$=Wg(),l$=Oo();aC.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return n$.coerce(n._input,n,l$,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 lC=J((bfe,iC)=>{"use strict";var o$=Ie(),s$=l0();iC.exports=function(e,r){function t(n,i){return o$.coerce(e,r,s$,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Xg=J((xfe,sC)=>{"use strict";var u$=Hr(),oC=Ie(),f$=oC.dateTime2ms,hd=oC.incrementMonth,c$=Gt(),v$=c$.ONEAVGMONTH;sC.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(u$(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=f$(h,u)||0,m=[],y=[],g=[],_=n.length,w=0;w<_;w++){var T=n[w],b,M,C;if(o){for(b=Math.round((T-d)/(o*v$)),C=hd(d,o*b,u);C>T;)C=hd(C,-o,u);for(;C<=T;)C=hd(C,o,u);M=hd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;M=C-l}m[w]=f?M:v?C:(M+C)/2,y[w]=M,g[w]=C}return{vals:m,starts:y,ends:g}}});var cC=J((_fe,fC)=>{"use strict";var Zg=An().hasColorscale,Jg=g0(),uC=ln();fC.exports=function(r,t){uC.hasLines(t)&&Zg(t,"line")&&Jg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),uC.hasMarkers(t)&&(Zg(t,"marker")&&Jg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Zg(t,"marker.line")&&Jg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Kg=J((wfe,vC)=>{"use strict";var At=Ie();vC.exports=function(r,t){for(var a=0;a{"use strict";var hC=Ie();dC.exports=function(r,t){hC.isArrayOrTypedArray(t.selectedpoints)&&hC.tagSelected(r,t)}});var t2=J((Mfe,_C)=>{"use strict";var pC=Hr(),jg=Ie(),pc=dt(),mC=Xg(),$g=Gt().BADNUM,e2=ln(),h$=cC(),d$=Kg(),p$=Qg();function m$(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=mC(r,a,"x",i),s=mC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=r2(r,t,a,n),y=!1,g,_,w,T,b,M;bC(t,r);var C="x",k="y",q;if(m)jg.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=gC(r,v);yC(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(M=h[T].s,w=h.length-1;w>T;w--)h[w].s=M;for(;_{"use strict";wC.exports=dd;var y$=Ie().distinctVals;function dd(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";MC.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var s2=J((Sfe,CC)=>{"use strict";var In=Hr(),{isArrayOrTypedArray:el}=Ie(),{BADNUM:hu}=Gt(),g$=br(),yc=dt(),{getAxisGroup:b$}=Hf(),pd=TC(),{TEXTPAD:x$}=mc(),{LINE_SPACING:_$}=Ma(),{BR_TAG_ALL:w$}=ya();function T$(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||!In(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*_$*t+x$;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 P$(e,r,t,a){for(var n=du(a),i=0;i{"use strict";var LC=t2(),qC=s2().setGroupPositions;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;uD[f]&&f{"use strict";var F$=at(),NC=Gt(),gc=NC.BADNUM,FC=NC.LOG_CLIP,PC=FC+.5,RC=FC-.5,md=Ie(),I$=md.segmentsIntersect,zC=md.constrain,f2=Oh();IC.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",_=[],w=f2.minTolerance,T=r.length,b=new Array(T),M=0,C,k,q,D,P,z,F,O,I,W,Z,V,Y,H,Q,K;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?PC:RC)/(i._m*s*(i._m>0?PC:RC)))),oe*=1e3}if(qe===gc){if(o&&(qe=i.c2p(ae.y,!0)),qe===gc)return!1;qe*=1e3}return[oe,qe]}function pe(Ne,ae,oe,qe){var Ee=oe-Ne,ar=qe-ae,cr=.5-Ne,sr=.5-ae,Mr=Ee*Ee+ar*ar,Br=Ee*cr+ar*sr;if(Br>0&&Br1||Math.abs(cr.y-oe[0][1])>1)&&(cr=[cr.x,cr.y],qe&&Ce(cr,Ne)ge||Ne[1]B)return[zC(Ne[0],be,ge),zC(Ne[1],Ae,B)]}function Oe(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===ge)||Ne[1]===ae[1]&&(Ne[1]===Ae||Ne[1]===B))return!0}function We(Ne,ae){var oe=[],qe=Fe(Ne),Ee=Fe(ae);return qe&&Ee&&Oe(qe,Ee)||(qe&&oe.push(qe),Ee&&oe.push(Ee)),oe}function Pe(Ne,ae,oe){return function(qe,Ee){var ar=Fe(qe),cr=Fe(Ee),sr=[];if(ar&&cr&&Oe(ar,cr))return sr;ar&&sr.push(ar),cr&&sr.push(cr);var Mr=2*md.constrain((qe[Ne]+Ee[Ne])/2,ae,oe)-((ar||qe)[Ne]+(cr||Ee)[Ne]);if(Mr){var Br;ar&&cr?Br=Mr>0==ar[Ne]>cr[Ne]?ar:cr:Br=ar||cr,Br[Ne]+=Mr}return sr}}var Be;m==="linear"||m==="spline"?Be=Le:m==="hv"||m==="vh"?Be=We:m==="hvh"?Be=Pe(0,be,ge):m==="vhv"&&(Be=Pe(1,Ae,B));function Ge(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Ee=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Ee>0?[qe>0?be:ge,B]:[qe>0?ge:be,Ae]}function ie(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[M-1][0],Ee=oe===b[M-1][1];if(!(qe&&Ee))if(M>1){var ar=ae===b[M-2][0],cr=oe===b[M-2][1];qe&&(ae===be||ae===ge)&&ar?cr?M--:b[M-1]=Ne:Ee&&(oe===Ae||oe===B)&&cr?ar?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([ve,me]),ie(Ne),De=null,ve=me=0}var Ke=md.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,U=Ne[0]ge?ge:0,le=Ne[1]B?B:0,U||le){if(!M)b[M++]=[U||Ne[0],le||Ne[1]];else if(De){var ae=Be(De,Ne);ae.length>1&&(xe(ae[0]),b[M++]=ae[1])}else Re=Be(b[M-1],Ne)[0],b[M++]=Re;var oe=b[M-1];U&&le&&(oe[0]!==U||oe[1]!==le)?(De&&(ve!==U&&me!==le?ie(ve&&me?Ge(De,Ne):[ve||U,me||le]):ve&&me&&ie([ve,me])),ie([U,le])):ve-U&&me-le&&ie([U||ve,le||me]),De=Ne,ve=U,me=le}else De&&xe(Be(De,Ne)[0]),b[M++]=Ne}for(C=0;Cre(z,ze))break;q=z,Y=I[0]*O[0]+I[1]*O[1],Y>Z?(Z=Y,D=z,F=!1):Y=r.length||!z)break;hr(z),k=z}}De&&ie([ve||De[0],me||De[1]]),_.push(b.slice(0,M))}var Te=m.slice(m.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var ke=!1,He=-1,Je=[],Ve=0;Ve<_.length;Ve++)for(var Xe=0;Xe<_[Ve].length-1;Xe++){var lr=_[Ve][Xe],tr=_[Ve][Xe+1],Qe=F$.applyBackoff(tr,lr);(Qe[0]!==tr[0]||Qe[1]!==tr[1])&&(ke=!0),Je[He+1]||(He++,Je[He]=[lr,[Qe[0],Qe[1]]])}return ke?Je:_}return _}});var YC=J((qfe,BC)=>{"use strict";var OC={tonextx:1,tonexty:1,tonext:1};BC.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 ii=Ir(),H$=br(),bc=Ie(),pu=bc.ensureSingle,VC=bc.identity,Lt=at(),mu=ln(),O$=HC(),B$=YC(),yd=ig().tester;GC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=B$(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(),Y$(r,o,t),f){l&&(s=l());var h=ii.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){UC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){UC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Y$(e,r,t){r.each(function(a){var n=pu(ii.select(this),"g","fills");Lt.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,VC);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=pu(ii.select(this),"path","js-fill")})})}function UC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;U$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=ii.select(i),g=pu(y,"g","errorbars"),_=pu(y,"g","lines"),w=pu(y,"g","points"),T=pu(y,"g","text");if(H$.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,W,Z="",V="",Y,H,Q,K,ne,pe,ye=[];d._polygons=[];var Se=[],re=[],Ce=bc.noop;if(b=d._ownFill,mu.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(Y=Lt.steps(m.shape),H=Lt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?Y=H=function(Pe){var Be=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Be[0]&&Pe[0][1]===Be[1]?Lt.smoothclosed(Pe.slice(1),m.smoothing):Lt.smoothopen(Pe,m.smoothing)}:Y=H=function(Pe){return"M"+Pe.join("L")},Q=function(Pe){return H(Pe.reverse())},re=O$(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 de=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;mu.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";XC.exports={container:"marker",min:"cmin",max:"cmax"}});var JC=J((Pfe,ZC)=>{"use strict";var gd=dt();ZC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=gd.getFromTrace(i,t,"x"),o=gd.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=gd.tickText(l,l.c2l(s),!0).text,n.yLabel=gd.tickText(o,o.c2l(u),!0).text,n}});var p2=J((Rfe,KC)=>{"use strict";var v2=Ir(),yu=at(),V$=br();function G$(e){var r=v2.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=v2.select(this),n=t.trace||t[0].trace;h2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=v2.select(this),n=t.trace||t[0].trace;d2(a,n,e)}),r.selectAll("g.trace path.js-line").call(yu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(yu.fillGroupStyle,e,!1),V$.getComponentMethod("errorbars","style")(r)}function h2(e,r,t){yu.pointStyle(e.selectAll("path.point"),r,t)}function d2(e,r,t){yu.textPointStyle(e.selectAll("text"),r,t)}function W$(e,r,t){var a=r[0].trace;a.selectedpoints?(yu.selectedPointStyle(t.selectAll("path.point"),a),yu.selectedTextStyle(t.selectAll("text"),a)):(h2(t,a,e),d2(t,a,e))}KC.exports={style:G$,stylePoints:h2,styleText:d2,styleOnSelect:W$}});var $C=J((zfe,QC)=>{"use strict";var gu=Er(),X$=ln();QC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&gu.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&&gu.opacity(i)?i:l&&gu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?gu.opacity(n)<.3?gu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&gu.opacity(a)&&X$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var rL=J((Nfe,eL)=>{"use strict";var bd=Ie(),jC=Li(),Z$=br(),J$=$C(),m2=Er(),K$=bd.fillText;eL.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(V){if(m){var Y=o.c2p(V.xStart),H=o.c2p(V.xEnd);return u>=Math.min(Y,H)&&u<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(o.c2p(V.x)-u);return ne=Math.min(Y,H)&&f<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(s.c2p(V.y)-f);return neye!=B>=ye&&(be=Ce[re-1][0],ge=Ce[re][0],B-Ae&&(de=be+(ge-be)*(ye-Ae)/(B-Ae),Q=Math.min(Q,de),K=Math.max(K,de)));return Q=Math.max(Q,0),K=Math.min(K,o._length),{x0:Q,x1:K,y0:ye,y1:ye}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=F(l._fillElement)&&!F(l._fillExclusionElement);if(I){var W=O(l._polygons);W===null&&(W={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var Z=m2.defaultLine;return m2.opacity(l.fillcolor)?Z=l.fillcolor:m2.opacity((l.line||{}).color)&&(Z=l.line.color),bd.extendFlat(r,{distance:r.maxHoverDistance,x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1,color:Z,hovertemplate:!1}),delete r.index,l.text&&!bd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var nL=J((Ffe,aL)=>{"use strict";var tL=ln();aL.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!tL.hasMarkers(o)&&!tL.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";iL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fL=J((Hfe,uL)=>{"use strict";var xc=br().traceIs,y2=zm();uL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Q$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Q$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=$$(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,sL(i,a)){var u=oL(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(sL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function oL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sL(e,r){var t=oL(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 vL=J((Ofe,cL)=>{"use strict";var j$=an().isTypedArraySpec;function ej(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||j$(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=ej(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var pL=J((Bfe,dL)=>{"use strict";var hL=_n().mix,rj=mi(),tj=Ie();dL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return tj.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=hL(i,n.bgColor,n.blend||rj.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=hL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!g||!!_||!!w);T||(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 b2=J((Yfe,_L)=>{"use strict";var mL=Hr(),aj=br(),_c=Ie(),nj=ct(),ij=$n(),g2=Qn(),yL=nm(),gL=lm(),lj=um(),oj=fm(),sj=vL(),uj=pL(),fj=ty(),bL=P0(),xd=jt().WEEKDAY_PATTERN,cj=jt().HOUR_PATTERN;_L.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=aj.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"),bL(t,i),fj(r,t,a,n),sj(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==g2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(oj(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}}),yL(r,t,a,v);var w=n.hasMinor;if(w&&(nj.newContainer(t,"minor"),yL(r,t,a,v,{isMinor:!0})),lj(r,t,a,v,n),gL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,gL(r,t,a,n),n.isMinor=T}uj(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g2}),w&&!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(ij(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vj}),!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=xL(i[o]),s){l=xd;break}}var u=a("pattern",l);if(u===xd)for(o=0;o<2;o++)s=xL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case xd:if(!mL(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 cj:if(!mL(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 dj=Hr(),_d=Ie();wL.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||(dj(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=_d.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=_d.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var w=a("autoshift");w&&(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 T=!1;if(l.length&&(T=_d.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),_d.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var DL=J((Vfe,qL)=>{"use strict";var Vo=Ie(),TL=Er(),pj=_i().isUnifiedHover,mj=Cy(),ML=ct(),yj=ks(),AL=Qn(),gj=fL(),kL=b2(),bj=Hf(),SL=x2(),w2=Zt(),Ni=w2.id2name,CL=w2.name2id,xj=jt().AX_ID_PATTERN,LL=br(),wd=LL.traceIs,_2=LL.getComponentMethod;function Td(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}qL.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 _j=Ir(),EL=br(),Md=Ie(),vn=at(),Ad=dt();PL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ad.redrawComponents(r);return}function l(g){var _=g.xaxis,w=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(vn.setTranslate,0,0).call(vn.setScale,1,1),g.plot.call(vn.setTranslate,_._offset,w._offset).call(vn.setScale,1,1);var T=g.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(vn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(vn.setTextPointsScale,1,1),T.call(vn.hideOutsideRangePoints,g)}function o(g,_){var w=g.plotinfo,T=w.xaxis,b=w.yaxis,M=T._length,C=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var P=Md.simpleMap(g.xr0,T.r2l),z=Md.simpleMap(g.xr1,T.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),T.range[0]=T.l2r(P[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(P[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=M;if(q){var I=Md.simpleMap(g.yr0,b.r2l),W=Md.simpleMap(g.yr1,b.r2l),Z=I[1]-I[0],V=W[1]-W[0];D[1]=(I[1]*(1-_)+_*W[1]-I[1])/(I[0]-I[1])*C,D[3]=C*(1-_+_*V/Z),b.range[0]=T.l2r(I[0]*(1-_)+_*W[0]),b.range[1]=b.l2r(I[1]*(1-_)+_*W[1])}else D[1]=0,D[3]=C;Ad.drawOne(r,T,{skipTitle:!0}),Ad.drawOne(r,b,{skipTitle:!0}),Ad.redrawComponents(r,[T._id,b._id]);var Y=k?M/D[2]:1,H=q?C/D[3]:1,Q=k?D[0]:0,K=q?D[1]:0,ne=k?D[0]/D[2]*M:0,pe=q?D[1]/D[3]*C:0,ye=T._offset-ne,Se=b._offset-pe;w.clipRect.call(vn.setTranslate,Q,K).call(vn.setScale,1/Y,1/H),w.plot.call(vn.setTranslate,ye,Se).call(vn.setScale,Y,H),vn.setPointGroupScale(w.zoomScalePts,1/Y,1/H),vn.setTextPointsScale(w.zoomScaleTxt,1/Y,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 Cd=J(Sa=>{"use strict";var Sd=Ir(),zL=br(),Go=Ie(),wj=Ht(),Tj=at(),NL=Yp().getModuleCalcData,Fl=Zt(),li=jt(),Mj=xo(),Xr=Go.ensureSingle;function kd(e,r,t){return Go.ensureSingle(e,r,t,function(a){a.datum(t)})}var Wo=li.zindexSeparator;Sa.name="cartesian";Sa.attr=["xaxis","yaxis"];Sa.idRoot=["x","y"];Sa.idRegex=li.idRegex;Sa.attrRegex=li.attrRegex;Sa.attributes=lL();Sa.layoutAttributes=Qn();Sa.supplyLayoutDefaults=DL();Sa.transitionAxes=RL();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(Wo)!==-1)continue;d+=Wo+(u+1),h=Go.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(M+=Wo+b),T.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||(kd(r.minorGridlayer,"g",r.xaxis._id),kd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort),kd(r.gridlayer,"g",r.xaxis._id),kd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function HL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Sd.select(this);f.remove(),OL(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 Ld=ln();BL.exports={hasLines:Ld.hasLines,hasMarkers:Ld.hasMarkers,hasText:Ld.hasText,isBubble:Ld.isBubble,attributes:Oo(),layoutAttributes:l0(),supplyDefaults:rC(),crossTraceDefaults:nC(),supplyLayoutDefaults:lC(),calc:t2().calc,crossTraceCalc:EC(),arraysToCalcdata:Kg(),plot:WC(),colorbar:c2(),formatLabels:JC(),style:p2().style,styleOnSelect:p2().styleOnSelect,hoverPoints:rL(),selectPoints:nL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var GL=J((Zfe,VL)=>{"use strict";var kj=Ir(),Sj=Er(),UL=yg(),T2=Ie(),Cj=T2.strScale,Lj=T2.strRotate,qj=T2.strTranslate;VL.exports=function(r,t,a){var n=r.node(),i=UL[a.arrowhead||0],l=UL[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,w=d.y-m.y;if(y=Math.atan2(w,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){I();return}if(v){if(v*v>_*_+w*w){I();return}var T=v*Math.cos(y),b=v*Math.sin(y);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){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 WL=Ir(),M2=br(),Dj=Ht(),Hl=Ie(),A2=Hl.strTranslate,Tc=dt(),Xo=Er(),rl=at(),XL=Li(),k2=ya(),S2=Cl(),wc=ei(),Ej=ct().arrayEditor,Pj=GL();KL.exports={draw:Rj,drawOne:ZL,drawRaw:JL};function Rj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ee="right":Ee="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ee]}for(var Ae=!1,B=["x","y"],$=0;$1)&&(ve===le?(ze=me.r2fraction(r["a"+U]),(ze<0||ze>1)&&(Ae=!0)):Ae=!0),Be=me._offset+me.r2p(r[U]),xe=.5}else{var Te=hr==="domain";U==="x"?(ie=r[U],Be=Te?me._offset+me._length*ie:Be=o.l+o.w*ie):(ie=1-r[U],Be=Te?me._offset+me._length*ie:Be=o.t+o.h*ie),xe=r.showarrow?.5:ie}if(r.showarrow){Pe.head=Be;var ke=r["a"+U];if(Ke=Re*ge(.5,r.xanchor)-Le*ge(.5,r.yanchor),ve===le){var He=Tc.getRefType(ve);He==="domain"?(U==="y"&&(ke=1-ke),Pe.tail=me._offset+me._length*ke):He==="paper"?U==="y"?(ke=1-ke,Pe.tail=o.t+o.h*ke):Pe.tail=o.l+o.w*ke:Pe.tail=me._offset+me.r2p(ke),Ge=Ke}else Pe.tail=Be+ke,Ge=Ke+ke;Pe.text=Pe.tail+Ke;var Je=l[U==="x"?"width":"height"];if(le==="paper"&&(Pe.head=Hl.constrain(Pe.head,1,Je-1)),ve==="pixel"){var Ve=-Math.max(Pe.tail-3,Pe.text),Xe=Math.min(Pe.tail+3,Pe.text)-Je;Ve>0?(Pe.tail+=Ve,Pe.text+=Ve):Xe>0&&(Pe.tail-=Xe,Pe.text-=Xe)}Pe.tail+=We,Pe.head+=We}else Ke=Fe*ge(xe,Oe),Ge=Ke,Pe.text=Be+Ke;Pe.text+=We,Ke+=We,Ge+=We,r["_"+U+"padplus"]=Fe/2+Ge,r["_"+U+"padminus"]=Fe/2-Ge,r["_"+U+"size"]=Fe,r["_"+U+"shift"]=Ke}if(Ae){k.remove();return}var lr=0,tr=0;if(r.align!=="left"&&(lr=(re-ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(tr=(Ce-Se)*(r.valign==="middle"?.5:1)),ne)K.select("svg").attr({x:P+lr-1,y:P+tr}).call(rl.setClipUrl,F?y:null,e);else{var Qe=P+tr-pe.top,Ne=P+lr-pe.left;Z.call(k2.positionText,Ne,Qe).call(rl.setClipUrl,F?y:null,e)}O.select("rect").call(rl.setRect,P,P,re,Ce),z.call(rl.setRect,q/2,q/2,de-q,be-q),k.call(rl.setTranslate,Math.round(g.x.text-de/2),Math.round(g.y.text-be/2)),T.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Ee){w.selectAll(".annotation-arrow-g").remove();var ar=g.x.head,cr=g.y.head,sr=g.x.tail+qe,Mr=g.y.tail+Ee,Br=g.x.text+qe,$r=g.y.text+Ee,it=Hl.rotationXYMatrix(_,Br,$r),_t=Hl.apply2DTransform(it),yt=Hl.apply2DTransform2(it),Dt=+z.attr("width"),Kt=+z.attr("height"),qa=Br-.5*Dt,sa=qa+Dt,ua=$r-.5*Kt,vr=ua+Kt,lt=[[qa,ua,qa,vr],[qa,vr,sa,vr],[sa,vr,sa,ua],[sa,ua,qa,ua]].map(yt);if(!lt.reduce(function(wt,ca){return wt^!!Hl.segmentsIntersect(ar,cr,ar+1e6,cr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){lt.forEach(function(wt){var ca=Hl.segmentsIntersect(sr,Mr,ar,cr,wt[0],wt[1],wt[2],wt[3]);ca&&(sr=ca.x,Mr=ca.y)});var Zr=r.arrowwidth,ft=r.arrowcolor,St=r.arrowside,bt=w.append("g").style({opacity:Xo.opacity(ft)}).classed("annotation-arrow-g",!0),Qr=bt.append("path").attr("d","M"+sr+","+Mr+"L"+ar+","+cr).style("stroke-width",Zr+"px").call(Xo.stroke,Xo.rgb(ft));if(Pj(Qr,St,r),s.annotationPosition&&Qr.node().parentNode&&!a){var fa=ar,mn=cr;if(r.standoff){var Qt=Math.sqrt(Math.pow(ar-sr,2)+Math.pow(cr-Mr,2));fa+=r.standoff*(sr-ar)/Qt,mn+=r.standoff*(Mr-cr)/Qt}var hi=bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-fa)+","+(Mr-mn),transform:A2(fa,mn)}).style("stroke-width",Zr+6+"px").call(Xo.stroke,"rgba(0,0,0,0)").call(Xo.fill,"rgba(0,0,0,0)"),yn,Ct;wc.init({element:hi.node(),gd:e,prepFn:function(){var wt=rl.getTranslate(k);yn=wt.x,Ct=wt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(wt,ca){var Kl=_t(yn,Ct),Ql=Kl[0]+wt,ol=Kl[1]+ca;k.call(rl.setTranslate,Ql,ol),d("x",Il(n,wt,"x",o,r)),d("y",Il(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Il(n,wt,"ax",o,r)),r.ayref===r.yref&&d("ay",Il(i,ca,"ay",o,r)),bt.attr("transform",A2(wt,ca)),T.attr({transform:"rotate("+_+","+Ql+","+ol+")"})},doneFn:function(){M2.call("_guiRelayout",e,m());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;wc.init({element:k.node(),gd:e,prepFn:function(){oe=T.attr("transform")},moveFn:function(qe,Ee){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Il(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Il(i,Ee,"ay",o.w,r)):d("ay",r.ay+Ee),ae(qe,Ee);else{if(a)return;var cr,sr;if(n)cr=Il(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=wc.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)sr=Il(i,Ee,"y",o,r);else{var $r=r._ysize/o.h,it=r.y-(r._yshift+r.yshift)/o.h-$r/2;sr=wc.align(it-Ee/o.h,$r,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&(ar=wc.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}T.attr({transform:A2(qe,Ee)+oe}),S2(k,ar)},clickFn:function(qe,Ee){r.captureevents&&e.emit("plotly_clickannotation",C(Ee))},doneFn:function(){S2(k),M2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?Z.call(k2.makeEditable,{delegate:k,gd:e}).call(V).on("edit",function(H){r.text=H,this.call(V),d("text",H),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),M2.call("_guiRelayout",e,m())}):Z.call(V)}});var tq=J((Kfe,rq)=>{"use strict";var QL=Ie(),zj=br(),$L=ct().arrayEditor;rq.exports={hasClickToShow:Nj,onClick:Fj};function Nj(e,r){var t=eq(e,r);return t.on.length>0||t.explicitOff.length>0}function Fj(e,r){var t=eq(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 C2=Ie(),bu=Er();aq.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=bu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),C2.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:bu.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||(bu.opacity(i)?bu.rgb(i):bu.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||bu.contrast(g)),w=C2.extendFlat({},y.font);w.color||(w.color=_),C2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var iq=J(($fe,nq)=>{"use strict";var q2=Ie(),Zo=dt(),Ij=$n(),Hj=L2(),Oj=uu();nq.exports=function(r,t){Ij(r,t,{name:"annotations",handleItemDefaults:Bj})};function Bj(e,r,t){function a(T,b){return q2.coerce(e,r,Oj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Hj(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=Zo.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Zo.getFromId(u,h);d._annIndices.push(r._index)}if(Zo.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Zo.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Zo.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(q2.noneOrAll(e,r,["x","y"]),l&&q2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Zo.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Zo.cleanPosition(w,u,r.yref)}}}});var sq=J((jfe,oq)=>{"use strict";var D2=Ie(),Jo=dt(),Yj=qd().draw;oq.exports=function(r){var t=r._fullLayout,a=D2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D2.syncOrAsync([Yj,Uj],r)};function Uj(e){var r=e._fullLayout;D2.filterVisible(r.annotations).forEach(function(t){var a=Jo.getFromId(e,t.xref),n=Jo.getFromId(e,t.yref),i=Jo.getRefType(t.xref),l=Jo.getRefType(t.yref);t._extremes={},i==="range"&&lq(t,a),l==="range"&&lq(t,n)})}function lq(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 w=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Jo.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var fq=J((ece,uq)=>{"use strict";var Vj=Hr(),Gj=Cv();uq.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=Gj(m,t.range):y=Math.pow(10,m),Vj(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var E2=qd(),cq=tq();vq.exports={moduleType:"component",name:"annotations",layoutAttributes:uu(),supplyLayoutDefaults:iq(),includeBasePlot:ac()("annotations"),calcAutorange:sq(),draw:E2.draw,drawOne:E2.drawOne,drawRaw:E2.drawRaw,hasClickToShow:cq.hasClickToShow,onClick:cq.onClick,convertCoords:fq()}});var Dd=J((tce,dq)=>{"use strict";var ut=uu(),Wj=yi().overrideAll,Xj=ct().templatedArray;dq.exports=Wj(Xj("annotation",{visible:ut.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ut.xanchor,xshift:ut.xshift,yanchor:ut.yanchor,yshift:ut.yshift,text:ut.text,textangle:ut.textangle,font:ut.font,width:ut.width,height:ut.height,opacity:ut.opacity,align:ut.align,valign:ut.valign,bgcolor:ut.bgcolor,bordercolor:ut.bordercolor,borderpad:ut.borderpad,borderwidth:ut.borderwidth,showarrow:ut.showarrow,arrowcolor:ut.arrowcolor,arrowhead:ut.arrowhead,startarrowhead:ut.startarrowhead,arrowside:ut.arrowside,arrowsize:ut.arrowsize,startarrowsize:ut.startarrowsize,arrowwidth:ut.arrowwidth,standoff:ut.standoff,startstandoff:ut.startstandoff,hovertext:ut.hovertext,hoverlabel:ut.hoverlabel,captureevents:ut.captureevents}),"calc","from-root")});var mq=J((ace,pq)=>{"use strict";var P2=Ie(),Zj=dt(),Jj=$n(),Kj=L2(),Qj=Dd();pq.exports=function(r,t,a){Jj(r,t,{name:"annotations",handleItemDefaults:$j,fullLayout:a.fullLayout})};function $j(e,r,t,a){function n(o,s){return P2.coerce(e,r,Qj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Zj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Kj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P2.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),P2.noneOrAll(e,r,["ax","ay"])))}});var xq=J((nce,bq)=>{"use strict";var yq=Ie(),gq=dt();bq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function R2(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 eee(e,r){var t=R2(e.projection,R2(e.view,R2(e.model,[r[0],r[1],r[2],1])));return t}_q.exports=eee});var Mq=J((lce,Tq)=>{"use strict";var ree=qd().drawRaw,tee=wq(),aee=["x","y","z"];Tq.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=tee(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),ree(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Sq=J((oce,kq)=>{"use strict";var nee=br(),Aq=Ie();kq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Dd()}}},layoutAttributes:Dd(),handleDefaults:mq(),includeBasePlot:iee,convert:xq(),draw:Mq()};function iee(e,r){var t=nee.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var sce=jt(),Cq=ma(),Lq=Oo().line,lee=gi().dash,oi=Wt().extendFlat,oee=ct().templatedArray,uce=rc(),xu=Wn(),qq=uu(),{shapeTexttemplateAttrs:see,templatefallbackAttrs:uee}=fo(),fee=Hv();Dq.exports=oee("shape",{visible:oi({},xu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:oi({},xu.legend,{editType:"calc+arraydraw"}),legendgroup:oi({},xu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:oi({},xu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Cq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:oi({},xu.legendrank,{editType:"calc+arraydraw"}),legendwidth:oi({},xu.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:oi({},qq.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:oi({},qq.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:oi({},Lq.color,{editType:"arraydraw"}),width:oi({},Lq.width,{editType:"calc+arraydraw"}),dash:oi({},lee,{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:see({},{keys:Object.keys(fee)}),texttemplatefallback:uee({editType:"arraydraw"}),font:Cq({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 Pq=J((cce,Eq)=>{"use strict";var _u=Ie(),hn=dt(),cee=$n(),vee=z2(),Mc=Pl();Eq.exports=function(r,t){cee(r,t,{name:"shapes",handleItemDefaults:dee})};function hee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function dee(e,r,t){function a(T,b){return _u.coerce(e,r,vee,T,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),_u.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(T=>{var b=T+"anchor",M=T==="x"?v:h,C={_fullLayout:t},k,q,D,P;let z=T+"ref",F=e[z];if(Array.isArray(F)&&F.length>0){let O=Mc.countDefiningCoords(s,l,T);P=hn.coerceRefArray(e,r,C,T,void 0,"paper",O),r["_"+T+"refArray"]=!0}else P=hn.coerceRef(e,r,C,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){hn.getRefType(O)==="range"&&(k=hn.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];hn.getRefType(I)==="range"?(k=hn.getFromId(C,I),q=Mc.shapePositionToRange(k),D=Mc.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(T+O+"shift")):q=D=_u.identity;let Z=T+O,V=e[Z];if(e[Z]=q(e[Z],!0),M==="pixel"?a(Z,m[O]):hn.coercePosition(r,C,a,I,Z,d[O]),r[Z]=D(r[Z]),e[Z]=V,O===0&&M==="pixel"){let Y=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,I,b,.25),r[b]=D(r[b]),e[b]=Y}});else{if(hn.getRefType(P)==="range"?(k=hn.getFromId(C,P),k._shapeIndices.push(r._index),D=Mc.rangeToShapePosition(k),q=Mc.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):q=D=_u.identity,u){let I=T+"0",W=T+"1",Z=e[I],V=e[W];e[I]=q(e[I],!0),e[W]=q(e[W],!0),M==="pixel"?(a(I,m[0]),a(W,m[1])):(hn.coercePosition(r,C,a,P,I,d[0]),hn.coercePosition(r,C,a,P,W,d[1])),r[I]=D(r[I]),r[W]=D(r[W]),e[I]=Z,e[W]=V}if(M==="pixel"){let I=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,P,b,.25),r[b]=D(r[b]),e[b]=I}}}),u&&_u.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 w=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",hee(y,w)),a("label.padding"),_u.coerceFont(a,"label.font",t.font)}}});var Nq=J((vce,zq)=>{"use strict";var pee=Er(),Rq=Ie();function mee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}zq.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"),Rq.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",pee.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",mee(l,u)),a("newshape.label.padding"),Rq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Uq=J((hce,Yq)=>{"use strict";var N2=Ie(),Hn=dt(),Fi=Rf(),F2=Pl();Yq.exports=function(r){var t=r._fullLayout,a=N2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Iq(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=Hn.getFromId(r,i.xref),o=Oq(l,i,Fi.paramIsX),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Iq(i))));if(u==="array"){let f=Fq(r,i,"y");Object.entries(f).forEach(([v,h])=>{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Hq(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=Hn.getFromId(r,i.yref),o=Oq(l,i,Fi.paramIsY),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Hq(i))))}};function Fq(e,r,t){let a=r[t+"ref"],n=t==="x"?Fi.paramIsX:Fi.paramIsY;function i(v,h){v==="paper"||Hn.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(h))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(Fi.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=Hn.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=F2.decodeDate(f)),u[h._id]=l[v].map(f)}}return u}function Iq(e){return Bq(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Hq(e){return Bq(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Bq(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?F2.extractPathCoords(n,i?Fi.paramIsY:Fi.paramIsX):[t,a],u=N2.aggNums(Math.max,null,s),f=N2.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 Oq(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(Fi.segmentRE),m,y,g,_,w;for(e.type==="date"&&(u=F2.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Wq=J((dce,Gq)=>{"use strict";var Vq=Th();Gq.exports={moduleType:"component",name:"shapes",layoutAttributes:z2(),supplyLayoutDefaults:Pq(),supplyDrawNewShapeDefaults:Nq(),includeBasePlot:ac()("shapes"),calcAutorange:Uq(),draw:Vq.draw,drawOne:Vq.drawOne}});var I2=J((mce,Zq)=>{"use strict";var Xq=jt(),yee=ct().templatedArray,pce=rc();Zq.exports=yee("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",Xq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Xq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Kq=J((yce,Jq)=>{"use strict";var gee=Ie(),H2=dt(),bee=$n(),xee=I2(),_ee="images";Jq.exports=function(r,t){var a={name:_ee,handleItemDefaults:wee};bee(r,t,a)};function wee(e,r,t){function a(h,d){return gee.coerce(e,r,xee,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=H2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=H2.getFromId(l,f);v._imgIndices.push(r._index)}H2.coercePosition(r,l,a,f,u,0)}return r}});var eD=J((gce,jq)=>{"use strict";var Qq=Ir(),Tee=at(),wu=dt(),$q=Zt(),Mee=xo();jq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var rD=Hr(),Aee=Cv();tD.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";nD.exports={moduleType:"component",name:"images",layoutAttributes:I2(),supplyLayoutDefaults:Kq(),includeBasePlot:ac()("images"),draw:eD(),convertCoords:aD()}});var Ed=J((_ce,lD)=>{"use strict";lD.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 O2=J((wce,sD)=>{"use strict";var kee=ma(),See=mi(),Cee=Wt().extendFlat,Lee=yi().overrideAll,qee=Ov(),oD=ct().templatedArray,Dee=oD("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}});sD.exports=Lee(oD("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:Dee,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:Cee(qee({editType:"arraydraw"}),{}),font:kee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:See.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var vD=J((Tce,cD)=>{"use strict";var Pd=Ie(),uD=$n(),fD=O2(),Eee=Ed(),Pee=Eee.name,Ree=fD.buttons;cD.exports=function(r,t){var a={name:Pee,handleItemDefaults:zee};uD(r,t,a)};function zee(e,r,t){function a(l,o){return Pd.coerce(e,r,fD,l,o)}var n=uD(e,r,{name:"buttons",handleItemDefaults:Nee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Pd.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Pd.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Nee(e,r){function t(n,i){return Pd.coerce(e,r,Ree,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 pD=J((Mce,dD)=>{"use strict";dD.exports=xt;var si=Ir(),hD=Er(),Tu=at(),Rd=Ie();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,w,T,b,M;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var C=h||y;C?(w=o,T=w+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?(T=o+g,w=Math.max(T-g,0),g=T-w):(w=o,T=Math.min(w+g,i),g=T-w)),this._box={l:w,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(hD.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,W=xt.barLength+2*xt.barPad,Z=o+s,V=u;Z+I>i&&(Z=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(hD.fill,xt.barColor),O?(this.vbar=Y.attr({rx:xt.barRadius,ry:xt.barRadius,x:Z,y:V,width:I,height:W}),this._vbarYMin=V+W/2,this._vbarTranslateMax=_-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Q=w-.5,K=O?T+I+.5:T+.5,ne=b-.5,pe=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(K)-Math.floor(Q),height:Math.ceil(pe)-Math.floor(ne)}),this.container.call(Tu.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(Tu.setClipUrl,null),delete this._clipRect),k||O){var Se=si.behavior.drag().on("dragstart",function(){si.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=si.behavior.drag().on("dragstart",function(){si.event.sourceEvent.preventDefault(),si.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(Tu.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-=si.event.dx),this.vbar&&(t-=si.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=si.event.deltaY),this.vbar&&(t+=si.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=Rd.constrain(si.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=Rd.constrain(si.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=Rd.constrain(r||0,0,a),t=Rd.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Tu.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(Tu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Tu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var AD=J((Ace,MD)=>{"use strict";var Mu=Ir(),Ac=Ht(),kc=Er(),Au=at(),dn=Ie(),zd=ya(),Fee=ct().arrayEditor,yD=Ma().LINE_SPACING,_r=Ed(),Iee=pD();MD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){Ac.autoMargin(r,wD(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(){Mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,Hee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Wee=Ed();kD.exports={moduleType:"component",name:Wee.name,layoutAttributes:O2(),supplyLayoutDefaults:vD(),draw:AD()}});var Cc=J((Sce,CD)=>{"use strict";CD.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 V2=J((Cce,DD)=>{"use strict";var LD=ma(),Xee=Ov(),Zee=Wt().extendDeepAll,Jee=yi().overrideAll,Kee=rf(),qD=ct().templatedArray,Ko=Cc(),Qee=qD("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}});DD.exports=Jee(qD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Qee,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:Zee(Xee({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:Kee.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:LD({})},font:LD({}),activebgcolor:{valType:"color",dflt:Ko.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ko.railBgColor},bordercolor:{valType:"color",dflt:Ko.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ko.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ko.tickLength},tickcolor:{valType:"color",dflt:Ko.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ko.minorTickLength}}),"arraydraw","from-root")});var zD=J((Lce,RD)=>{"use strict";var ku=Ie(),ED=$n(),PD=V2(),$ee=Cc(),jee=$ee.name,ere=PD.steps;RD.exports=function(r,t){ED(r,t,{name:jee,handleItemDefaults:rre})};function rre(e,r,t){function a(v,h){return ku.coerce(e,r,PD,v,h)}for(var n=ED(e,r,{name:"steps",handleItemDefaults:tre}),i=0,l=0;l{"use strict";var ui=Ir(),Nd=Ht(),Ol=Er(),fi=at(),pn=Ie(),are=pn.strTranslate,Lc=ya(),nre=ct().arrayEditor,Dr=Cc(),X2=Ma(),ID=X2.LINE_SPACING,G2=X2.FROM_TL,W2=X2.FROM_BR;VD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=ire(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),Nd.autoMargin(r,HD(f))}if(i.exit().each(function(){ui.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,lre);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",are(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Z2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function FD(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 hre(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(YD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Ol.fill,t.bgcolor).attr("opacity",0),fi.setTranslate(n,0,a.currentValueTotalHeight)}function dre(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Ol.stroke,r.bordercolor).call(Ol.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),fi.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var XD=J((Dce,WD)=>{"use strict";var pre=Cc();WD.exports={moduleType:"component",name:pre.name,layoutAttributes:V2(),supplyLayoutDefaults:zD(),draw:GD()}});var Id=J((Ece,JD)=>{"use strict";var ZD=mi();JD.exports={bgcolor:{valType:"color",dflt:ZD.background,editType:"plot"},bordercolor:{valType:"color",dflt:ZD.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 J2=J((Pce,KD)=>{"use strict";KD.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 Hd=J((Rce,QD)=>{"use strict";QD.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 eE=J(Bd=>{"use strict";var mre=Zt(),yre=ya(),$D=Hd(),gre=Ma().LINE_SPACING,Od=$D.name;function jD(e){var r=e&&e[Od];return r&&r.visible}Bd.isVisible=jD;Bd.makeData=function(e){for(var r=mre.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Yd=Ie(),rE=ct(),tE=Zt(),bre=Id(),xre=J2();aE.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Yd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=rE.newContainer(i,"rangeslider");function s(M,C){return Yd.coerce(l,o,bre,M,C)}var u,f;function v(M,C){return Yd.coerce(u,f,xre,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")))===tE.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Yd.simpleMap(m,tE.id2name),g=0;g{"use strict";var _re=Zt().list,wre=xf().getAutoRange,Tre=Hd();iE.exports=function(r){for(var t=_re(r,"x",!0),a=0;a{"use strict";var Ud=Ir(),Mre=br(),Are=Ht(),qt=Ie(),Vd=qt.strTranslate,sE=at(),Bl=Er(),kre=gf(),Sre=Cd(),K2=Zt(),Cre=ei(),Lre=Cl(),Fr=Hd();uE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Y.max)Z=z[V+1];else if(W=Y.pmax)Z=z[V+1];else if(W0?e.touches[0].clientX:0}function qre(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=Ud.event,u=s.target,f=oE(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=Cre.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var w=oE(_),T=+w-f,b,M,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,M=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,M=d;break;case l:if(C="col-resize",d+T<0)return;b=h,M=d+T;break;default:C="ew-resize",b=v,M=v+T;break}if(M{"use strict";var Ore=Ie(),Bre=Id(),Yre=J2(),Q2=eE();cE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ore.extendFlat({},Bre,{yaxis:Yre})}}},layoutAttributes:Id(),handleDefaults:nE(),calcAutorange:lE(),draw:fE(),isVisible:Q2.isVisible,makeData:Q2.makeData,autoMarginOpts:Q2.autoMarginOpts}});var Gd=J((Oce,dE)=>{"use strict";var Ure=ma(),hE=mi(),Vre=ct().templatedArray,Gre=Vre("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"});dE.exports={visible:{valType:"boolean",editType:"plot"},buttons:Gre,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:Ure({editType:"plot"}),bgcolor:{valType:"color",dflt:hE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:hE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $2=J((Bce,pE)=>{"use strict";pE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var gE=J((Yce,yE)=>{"use strict";var Wd=Ie(),Wre=Er(),Xre=ct(),Zre=$n(),mE=Gd(),j2=$2();yE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Xre.newContainer(t,"rangeselector");function s(d,m){return Wd.coerce(l,o,mE,d,m)}var u=Zre(l,o,{name:"buttons",handleItemDefaults:Jre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Kre(t,a,n);s("x",v[0]),s("y",v[1]),Wd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Wd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Wre.contrast(h,j2.lightAmount,j2.darkAmount)),s("bordercolor"),s("borderwidth")}};function Jre(e,r,t,a){var n=a.calendar;function i(s,u){return Wd.coerce(e,r,mE.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 Kre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Qre=Z1(),$re=Ie().titleCase;bE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=jre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function jre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Qre["utc"+$re(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 CE=J((Vce,SE)=>{"use strict";var Zd=Ir(),ete=br(),rte=Ht(),_E=Er(),kE=at(),tl=Ie(),wE=tl.strTranslate,Xd=ya(),tte=Zt(),t3=Ma(),TE=t3.LINE_SPACING,ME=t3.FROM_TL,AE=t3.FROM_BR,r3=$2(),ate=xE();SE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(nte(r),ite);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Zd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(tl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Zd.select(this),v=ate(l,u);u._isActive=lte(l,u,v),f.call(e3,o,u),f.call(ste,o,u,r),f.on("click",function(){r._dragged||ete.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(e3,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(e3,o,u)})}),fte(r,s,o,l._name,i)})};function nte(e){for(var r=tte.list(e,"x",!0),t=[],a=0;a{"use strict";LE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gd()}}},layoutAttributes:Gd(),handleDefaults:gE(),draw:CE()}});var Jd=J(a3=>{"use strict";var DE=Wt().extendFlat;a3.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:DE({},t,{}),y:DE({},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};a3.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 cte=Ie(),vte=ws().counter,hte=Jd().attributes,EE=jt().idRegex,dte=ct(),n3={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:[vte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.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:hte({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 Kd(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 pte(e,r){var t=e.grid||{},a=Kd(r,t,"x"),n=Kd(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=dte.newContainer(r,"grid");function h(C,k){return cte.coerce(t,v,n3,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",w=i?.2:.1,T=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:PE("x",h,w,b,m),y:PE("y",h,T,M,d,_)}}function PE(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";FE.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 OE=J((Jce,HE)=>{"use strict";var IE=Hr(),yte=br(),gte=Ie(),bte=ct(),xte=i3();HE.exports=function(e,r,t,a){var n="error_"+a.axis,i=bte.newContainer(r,n),l=e[n]||{};function o(m,y){return gte.coerce(l,i,xte,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||IE(l.thickness)||IE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",yte.traceIs(r,"gl3d")?0:4))}}});var l3=J((Kce,YE)=>{"use strict";YE.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=BE(t,r.value),o=BE(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 BE(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 GE=J((Qce,VE)=>{"use strict";var o3=Hr(),_te=br(),s3=dt(),wte=Ie(),Tte=l3();VE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var WE=Ir(),Yl=Hr(),Mte=at(),Ate=ln();XE.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(w){return w.id});var y=Ate.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=WE.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),Mte.setClipUrl(g,a.layerClipId,r),g.each(function(w){var T=WE.select(this),b=kte(w,l,o);if(!(y&&!w.vis)){var M,C=T.select("path.yerror");if(d.visible&&Yl(b.x)&&Yl(b.yh)&&Yl(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=T.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=T.select("path.xerror");if(h.visible&&Yl(b.y)&&Yl(b.xh)&&Yl(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=T.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 kte(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),Yl(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),Yl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var QE=J((jce,KE)=>{"use strict";var Ste=Ir(),JE=Er();KE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Ste.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 eP=J((eve,jE)=>{"use strict";var qc=Ie(),$E=yi().overrideAll,Dc=i3(),Qo={error_x:qc.extendFlat({},Dc),error_y:qc.extendFlat({},Dc)};delete Qo.error_x.copy_zstyle;delete Qo.error_y.copy_zstyle;delete Qo.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;jE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qo,bar:Qo,histogram:Qo,scatter3d:$E(Ec,"calc","nested"),scattergl:$E(Qo,"calc","nested")}},supplyDefaults:OE(),calc:GE(),makeComputeError:l3(),plot:ZE(),style:QE(),hoverInfo:Cte};function Cte(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 tP=J((rve,rP)=>{"use strict";rP.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 uP=J((tve,sP)=>{"use strict";var Ul=Ir(),u3=_n(),$d=Ht(),aP=br(),al=dt(),Qd=ei(),On=Ie(),vi=On.strTranslate,oP=Wt().extendFlat,f3=Cl(),ci=at(),c3=Er(),Lte=gf(),qte=ya(),Dte=An().flipScale,Ete=b2(),Pte=x2(),Rte=Qn(),v3=Ma(),nP=v3.LINE_SPACING,iP=v3.FROM_TL,lP=v3.FROM_BR,gt=tP().cn;function zte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+gt.colorbar).data(Nte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(gt.colorbar,!0),t.each(function(a){var n=Ul.select(this);On.ensureSingle(n,"rect",gt.cbbg),On.ensureSingle(n,"g",gt.cbfills),On.ensureSingle(n,"g",gt.cblines),On.ensureSingle(n,"g",gt.cbaxis,function(l){l.classed(gt.crisp,!0)}),On.ensureSingle(n,"g",gt.cbtitleunshift,function(l){l.append("g").classed(gt.cbtitle,!0)}),On.ensureSingle(n,"rect",gt.cboutline);var i=Fte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ite(n,a,e)}),t.exit().each(function(a){$d.autoMargin(e,a._id)}).remove(),t.order()}function Nte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return oP(T,{_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?Dte(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));ge*=$*On.roundUp(B/$,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(de.tick0=0)}de.dtick=ge}de.domain=a?[re+m/b.h,re+H-m/b.h]:[re+d/b.w,re+H-d/b.w],de.setScale(),e.attr("transform",vi(Math.round(b.l),Math.round(b.t)));var U=e.select("."+gt.cbtitleunshift).attr("transform",vi(-Math.round(b.l),-Math.round(b.t))),le=de.ticklabelposition,ve=de.title.font.size,me=e.select("."+gt.cbaxis),De,Re=0,Le=0;function Fe(Ge,ie){var xe={propContainer:de,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+gt.cbtitle)},Ke=Ge.charAt(0)==="h"?Ge.slice(1):"h"+Ge;e.selectAll("."+Ke+",."+Ke+"-math-group").remove(),Lte.draw(t,Ge,oP(xe,ie||{}))}function Oe(){if(a&&be||!a&&!be){var Ge,ie;q==="top"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re-H)+3+ve*.75),q==="bottom"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re)-3-ve*.25),q==="right"&&(ie=m+b.t+K*g+3+ve*.75,Ge=d+b.l+Q*re),Fe(de._id+"title",{attributes:{x:Ge,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Ge=de.position||0,ie=de._offset+de._length/2,xe,Ke;if(q==="right")Ke=ie,xe=b.l+Q*Ge+10+ve*(de.showticklabels?1:.5);else if(xe=ie,q==="bottom"&&(Ke=b.t+K*Ge+10+(le.indexOf("inside")===-1?de.tickfont.size:0)+(de.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=k.text.split("
").length;Ke=b.t+K*Ge+10-Z-nP*ve*hr}Fe((a?"h":"v")+de._id+"title",{avoid:{selection:Ul.select(t).selectAll("g."+de._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:xe,y:Ke,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!be||a&&be){var Ge=e.select("."+gt.cbtitle),ie=Ge.select("text"),xe=[-s/2,s/2],Ke=Ge.select(".h"+de._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*nP);var ze;if(Ke?(ze=ci.bBox(Ke),Le=ze.width,Re=ze.height,Re>hr&&(xe[1]-=(Re-hr)/2)):ie.node()&&!ie.classed(gt.jsPlaceholder)&&(ze=ci.bBox(ie.node()),Le=ze.width,Re=ze.height),a){if(Re){if(Re+=5,q==="top")de.domain[1]-=Re/b.h,xe[1]*=-1;else{de.domain[0]+=Re/b.h;var Te=qte.lineCount(ie);xe[1]+=(1-Te)*hr}Ge.attr("transform",vi(xe[0],xe[1])),de.setScale()}}else Le&&(q==="right"&&(de.domain[0]+=(Le+ve/2)/b.w),Ge.attr("transform",vi(xe[0],xe[1])),de.setScale())}e.selectAll("."+gt.cbfills+",."+gt.cblines).attr("transform",a?vi(0,Math.round(b.h*(1-de.domain[1]))):vi(Math.round(b.w*de.domain[0]),0)),me.attr("transform",a?vi(0,Math.round(-b.t)):vi(Math.round(-b.l),0));var ke=e.select("."+gt.cbfills).selectAll("rect."+gt.cbfill).attr("style","").data(I);ke.enter().append("rect").classed(gt.cbfill,!0).attr("style",""),ke.exit().remove();var He=D.map(de.c2p).map(Math.round).sort(function(tr,Qe){return tr-Qe});ke.each(function(tr,Qe){var Ne=[Qe===0?D[0]:(I[Qe]+I[Qe-1])/2,Qe===I.length-1?D[1]:(I[Qe]+I[Qe+1])/2].map(de.c2p).map(Math.round);a&&(Ne[1]=On.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,He[0],He[1]));var ae=Ul.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",Ul.min(Ne)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Ul.max(Ne)-Ul.min(Ne),2));if(r._fillgradient)ci.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(tr).replace("e-","");ae.attr("fill",u3(oe).toHexString())}});var Je=e.select("."+gt.cblines).selectAll("path."+gt.cbline).data(C.color&&C.width?W:[]);Je.enter().append("path").classed(gt.cbline,!0),Je.exit().remove(),Je.each(function(tr){var Qe=ne,Ne=Math.round(de.c2p(tr))+C.width/2%1;Ul.select(this).attr("d","M"+(a?Qe+","+Ne:Ne+","+Qe)+(a?"h":"v")+Z).call(ci.lineGroupStyle,C.width,P(tr),C.dash)}),me.selectAll("g."+de._id+"tick,path").remove();var Ve=ne+Z+(s||0)/2-(r.ticks==="outside"?1:0),Xe=al.calcTicks(de),lr=al.getTickSigns(de)[2];return al.drawTicks(t,de,{vals:de.ticks==="inside"?al.clipEnds(de,Xe):Xe,layer:me,path:al.makeTickPath(de,Ve,lr),transFn:al.makeTransTickFn(de)}),al.drawLabels(t,de,{vals:Xe,layer:me,transFn:al.makeTransTickLabelFn(de),labelFns:al.makeLabelFns(de,Ve)})}function Be(){var Ge,ie=Z+s/2;le.indexOf("inside")===-1&&(Ge=ci.bBox(me.node()),ie+=a?Ge.width:Ge.height),De=U.select("text");var xe=0,Ke=a&&q==="top",hr=!a&&q==="right",ze=0;if(De.node()&&!De.classed(gt.jsPlaceholder)){var Te,ke=U.select(".h"+de._id+"title-math-group").node();ke&&(a&&be||!a&&!be)?(Ge=ci.bBox(ke),xe=Ge.width,Te=Ge.height):(Ge=ci.bBox(U.node()),xe=Ge.right-b.l-(a?ne:Ce),Te=Ge.bottom-b.t-(a?Ce:ne),!a&&q==="top"&&(ie+=Ge.height,ze=Ge.height)),hr&&(De.attr("transform",vi(xe/2+ve/2,0)),xe*=2),ie=Math.max(ie,a?xe:Te)}var He=(a?d:m)*2+ie+u+s/2,Je=0;!a&&k.text&&h==="bottom"&&g<=0&&(Je=He/2,He+=Je,ze+=Je),T._hColorbarMoveTitle=Je,T._hColorbarMoveCBTitle=ze;var Ve=u+s,Xe=(a?ne:Ce)-Ve/2-(a?d:0),lr=(a?Ce:ne)-(a?Y:m+ze-Je);e.select("."+gt.cbbg).attr("x",Xe).attr("y",lr).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(Y+Ve,2)).call(c3.fill,f).call(c3.stroke,r.bordercolor).style("stroke-width",u);var tr=hr?Math.max(xe-10,0):0;e.selectAll("."+gt.cboutline).attr("x",(a?ne:Ce+d)+tr).attr("y",(a?Ce+m-Y:ne)+(Ke?Re:0)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Y-(a?2*m+Re:2*d+tr),2)).call(c3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Qe=a?pe*He:0,Ne=a?0:(1-ye)*He-ze;if(Qe=w?b.l-Qe:-Qe,Ne=_?b.t-Ne:-Ne,e.attr("transform",vi(Qe,Ne)),!a&&(u||u3(f).getAlpha()&&!u3.equals(T.paper_bgcolor,f))){var ae=me.selectAll("text"),oe=ae[0].length,qe=e.select("."+gt.cbbg).node(),Ee=ci.bBox(qe),ar=ci.getTranslate(e),cr=2;ae.each(function(qa,sa){var ua=0,vr=oe-1;if(sa===ua||sa===vr){var lt=ci.bBox(this),Zr=ci.getTranslate(this),ft;if(sa===vr){var St=lt.right+Zr.x,bt=Ee.right+ar.x+Ce-u-cr+y;ft=bt-St,ft>0&&(ft=0)}else if(sa===ua){var Qr=lt.left+Zr.x,fa=Ee.left+ar.x+Ce+u+cr;ft=fa-Qr,ft<0&&(ft=0)}ft&&(oe<3?this.setAttribute("transform","translate("+ft+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=iP[v],Br=lP[v],$r=iP[h],it=lP[h],_t=He-Z;a?(i==="pixels"?(sr.y=g,sr.t=Y*$r,sr.b=Y*it):(sr.t=sr.b=0,sr.yt=g+n*$r,sr.yb=g-n*it),o==="pixels"?(sr.x=y,sr.l=He*Mr,sr.r=He*Br):(sr.l=_t*Mr,sr.r=_t*Br,sr.xl=y-l*Mr,sr.xr=y+l*Br)):(i==="pixels"?(sr.x=y,sr.l=Y*Mr,sr.r=Y*Br):(sr.l=sr.r=0,sr.xl=y+n*Mr,sr.xr=y-n*Br),o==="pixels"?(sr.y=1-g,sr.t=He*$r,sr.b=He*it):(sr.t=_t*$r,sr.b=_t*it,sr.yt=g-l*$r,sr.yb=g+l*it));var yt=r.y<.5?"b":"t",Dt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Kt={r:T.width-Xe-Qe,l:Xe+sr.r,b:T.height-lr-Ne,t:lr+sr.b};w&&_?$d.autoMargin(t,r._id,sr):w?t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]:_||a?t._fullLayout._reservedMargin[r._id][Dt]=Kt[Dt]:t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]}return On.syncOrAsync([$d.previousPromises,Oe,Pe,We,$d.previousPromises,Be],t)}function Ite(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Qd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),f3(e)},moveFn:function(u,f){e.attr("transform",l+vi(u,f)),o=Qd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Qd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Qd.getCursor(o,s,r.xanchor,r.yanchor);f3(e,v)},doneFn:function(){if(f3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?aP.call("_guiRestyle",t,u,r._traceIndex):aP.call("_guiRelayout",t,u)}}})}function Hte(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";fP.exports={moduleType:"component",name:"colorbar",attributes:p0(),supplyDefaults:cm(),draw:uP().draw,hasColorbar:em()}});var hP=J((nve,vP)=>{"use strict";vP.exports={moduleType:"component",name:"legend",layoutAttributes:sy(),supplyLayoutDefaults:fy(),draw:Ty(),style:by()}});var pP=J((ive,dP)=>{"use strict";dP.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 yP=J((lve,mP)=>{"use strict";mP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var d3=J((ove,_P)=>{"use strict";var Bte=br(),xP=Ie(),h3=xP.extendFlat,gP=xP.extendDeep;function bP(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 Yte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}_P.exports=function(r,t){var a,n=r.data,i=r.layout,l=gP([],n),o=gP({},i,bP(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 Ute=r0().EventEmitter,Vte=br(),Gte=Ie(),wP=Bo(),Wte=d3(),Xte=ld(),Zte=od();function Jte(e,r){var t=new Ute,a=Wte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=wP.getDelay(n._fullLayout);setTimeout(function(){var s=Xte(n),u=document.createElement("canvas");u.id=Gte.randstr(),t=Zte({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=wP.getRedrawFunc(n);return Vte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}TP.exports=Jte});var SP=J((uve,kP)=>{"use strict";var AP=Bo(),Kte={getDelay:AP.getDelay,getRedrawFunc:AP.getRedrawFunc,clone:d3(),toSVG:ld(),svgToImg:od(),toImage:MP(),downloadImage:Bg()};kP.exports=Kte});var LP=J(nl=>{"use strict";nl.version=gv().version;bb();s6();var Qte=br(),Pc=nl.register=Qte.register,m3=qS(),CP=Object.keys(m3);for(jd=0;jd{"use strict";qP.exports=LP()});var Rc=J((vve,NP)=>{"use strict";var kt=Oo(),EP=d0().axisHoverFormat,{hovertemplateAttrs:$te,texttemplateAttrs:jte,templatefallbackAttrs:PP}=fo(),zP=pf(),eae=ma(),RP=mc(),rae=gi().pattern,$o=Wt().extendFlat,y3=eae({editType:"calc",arrayOk:!0,colorEditType:"style"}),tae=kt.marker,aae=tae.line,nae=$o({},aae.width,{dflt:0}),iae=$o({width:nae,editType:"calc"},zP("marker.line")),lae=$o({line:iae,editType:"calc"},zP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rae,cornerradius:{valType:"any",editType:"calc"}});NP.exports={x:kt.x,x0:kt.x0,dx:kt.dx,y:kt.y,y0:kt.y0,dy:kt.dy,xperiod:kt.xperiod,yperiod:kt.yperiod,xperiod0:kt.xperiod0,yperiod0:kt.yperiod0,xperiodalignment:kt.xperiodalignment,yperiodalignment:kt.yperiodalignment,xhoverformat:EP("x"),yhoverformat:EP("y"),text:kt.text,texttemplate:jte({editType:"plot"},{keys:RP.eventDataKeys}),texttemplatefallback:PP({editType:"plot"}),hovertext:kt.hovertext,hovertemplate:$te({},{keys:RP.eventDataKeys}),hovertemplatefallback:PP(),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:$o({},y3,{}),insidetextfont:$o({},y3,{}),outsidetextfont:$o({},y3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:$o({},kt.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:lae,offsetgroup:kt.offsetgroup,alignmentgroup:kt.alignmentgroup,selected:{marker:{opacity:kt.selected.marker.opacity,color:kt.selected.marker.color,editType:"style"},textfont:kt.selected.textfont,editType:"style"},unselected:{marker:{opacity:kt.unselected.marker.opacity,color:kt.unselected.marker.color,editType:"style"},textfont:kt.unselected.textfont,editType:"style"},zorder:kt.zorder}});var g3=J((hve,FP)=>{"use strict";FP.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 BP=J((dve,OP)=>{"use strict";var oae=Er(),IP=An().hasColorscale,HP=Bs(),sae=Ie().coercePattern;OP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=IP(r,"marker");o&&HP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",oae.defaultLine),IP(r,"marker.line")&&HP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),sae(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var zc=J((pve,XP)=>{"use strict";var YP=Hr(),Cu=Ie(),UP=Er(),uae=br(),fae=Vg(),cae=Gg(),vae=BP(),hae=Wg(),VP=Rc(),r1=Cu.coerceFont;function dae(e,r,t,a){function n(u,f){return Cu.coerce(e,r,VP,u,f)}var i=fae(e,r,a,n);if(!i){r.visible=!1;return}cae(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");WP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),vae(e,r,n,t,a);var o=(r.marker.line||{}).color,s=uae.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||UP.defaultLine,{axis:"y"}),s(e,r,o||UP.defaultLine,{axis:"x",inherit:"y"}),Cu.coerceSelectionMarkerOpacity(r,n)}function pae(e,r){var t,a;function n(o,s){return Cu.coerce(a._input,a,VP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&YP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function WP(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=r1(a,"textfont",t.font),_=Cu.extendFlat({},g),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,r1(a,"insidetextfont",_),h){var b=Cu.extendFlat({},g);T&&delete b.color,r1(a,"pathbar.textfont",b)}y&&r1(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")}XP.exports={supplyDefaults:dae,crossTraceDefaults:pae,handleText:WP,validateCornerradius:GP}});var JP=J((mve,ZP)=>{"use strict";var mae=br(),yae=dt(),gae=Ie(),bae=g3(),xae=zc().validateCornerradius;ZP.exports=function(e,r,t){function a(y,g){return gae.coerce(e,r,bae,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=yae.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=xae(m)}});var b3=J((yve,KP)=>{"use strict";var Lu=Ie();KP.exports=function(r,t){for(var a=0;a{"use strict";var QP=dt(),$P=Xg(),jP=An().hasColorscale,eR=g0(),_ae=b3(),wae=Qg();rR.exports=function(r,t){var a=QP.getFromId(r,t.xaxis||"x"),n=QP.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=$P(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=$P(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 Tae=Ir(),Mae=Ie();function Aae(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=Tae.select(this).select("text");Mae.setTransormAndDisplay(u,s)}})}}function kae(e,r,t){if(t.uniformtext.mode){var a=aR(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Cae=Hr(),Lae=_n(),iR=Ie().isArrayOrTypedArray;jo.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};jo.coerceNumber=function(e,r,t){if(Cae(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};jo.coerceColor=function(e,r,t){return Lae(r).isValid()?r:t!==void 0?t:e.dflt};jo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};jo.getValue=function(e,r){var t;return iR(e)?r{"use strict";var Fc=Ir(),qae=Er(),Ic=at(),lR=Ie(),oR=br(),sR=Nc().resizeText,x3=Rc(),Dae=x3.textfont,Eae=x3.insidetextfont,Pae=x3.outsidetextfont,_a=t1();function Rae(e){var r=Fc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");sR(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;uR(i,l,e)}),oR.getComponentMethod("errorbars","style")(r)}function uR(e,r,t){Ic.pointStyle(e.selectAll("path"),r,t),fR(e,r,t)}function fR(e,r,t){e.selectAll("text").each(function(a){var n=Fc.select(this),i=lR.ensureUniformFontSize(t,cR(n,a,r,t));Ic.font(n,i)})}function zae(e,r,t){var a=r[0].trace;a.selectedpoints?Nae(t,a,e):(uR(t,a,e),oR.getComponentMethod("errorbars","style")(t))}function Nae(e,r,t){Ic.selectedPointStyle(e.selectAll("path"),r),Fae(e.selectAll("text"),r,t)}function Fae(e,r,t){e.each(function(a){var n=Fc.select(this),i;if(a.selected){i=lR.ensureUniformFontSize(t,cR(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 cR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=pR(r,t);i=hR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=dR(t,r.i,n));return i}function vR(e,r,t){return _3(Dae,e.textfont,r,t)}function hR(e,r,t,a){var n=vR(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:qae.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}),_3(Eae,e.insidetextfont,r,n)}function dR(e,r,t){var a=vR(e,r,t);return _3(Pae,e.outsidetextfont,r,a)}function _3(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 pR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}mR.exports={style:Rae,styleTextPoints:fR,styleOnSelect:zae,getInsideTextFont:hR,getOutsideTextFont:dR,getBarColor:pR,resizeText:sR}});var AR=J((wve,MR)=>{"use strict";var n1=Ir(),i1=Hr(),la=Ie(),Iae=ya(),Hae=Er(),Vl=at(),Oae=br(),l1=dt().tickText,yR=Nc(),Bae=yR.recordMinTextSize,Yae=yR.clearMinTextSize,w3=a1(),qu=t1(),Uae=mc(),gR=Rc(),Vae=gR.text,Gae=gR.textposition,Wae=_i().appendArrayPointValue,Oa=Uae.TEXTPAD;function Xae(e){return e.id}function Zae(e){if(e.ids)return Xae}function T3(e){return(e>0)-(e<0)}function Ii(e,r){return e0}function Kae(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},Yae("bar",s));var f=la.makeTraceGroups(a,t,"trace bars").each(function(v){var h=n1.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",C=xR(n),k=la.ensureSingle(h,"g","points"),q=Zae(d),D=k.selectAll("g.point").data(la.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var O=n1.select(this),I=Jae(z,l,o,M),W=I[0][0],Z=I[0][1],V=I[1][0],Y=I[1][1],H=(M?Z-W:Y-V)===0;H&&T&&qu.getLineWidth(d,z)&&(H=!1),H||(H=!i1(W)||!i1(Z)||!i1(V)||!i1(Y)),z.isBlank=H,H&&(M?Z=W:Y=V),b&&!H&&(M?(W-=Ii(W,Z)*b,Z+=Ii(W,Z)*b):(V-=Ii(V,Y)*b,Y+=Ii(V,Y)*b));var Q,K;if(d.type==="waterfall"){if(!H){var ne=d[z.dir].marker;Q=ne.line.width,K=ne.color}}else Q=qu.getLineWidth(d,z),K=z.mc||d.marker.color;function pe(ie){var xe=n1.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?n1.round(Math.round(ie)-xe,2):ie}function ye(ie,xe,Ke){return Ke&&ie===xe?ie:Math.abs(ie-xe)>=2?pe(ie):ie>xe?Math.ceil(ie):Math.floor(ie)}var Se=Hae.opacity(K),re=Se<1||Q>.01?pe:ye;e._context.staticPlot||(W=re(W,Z,M),Z=re(Z,W,M),V=re(V,Y,!M),Y=re(Y,V,!M));var Ce=M?l.c2p:o.c2p,de;z.s0>0?de=z._sMax:z.s0<0?de=z._sMin:de=z.s1>0?z._sMax:z._sMin;function be(ie,xe){if(!ie)return 0;var Ke=Math.abs(M?Y-V:Z-W),hr=Math.abs(M?Z-W:Y-V),ze=re(Math.abs(Ce(de,!0)-Ce(0,!0))),Te=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,Te),0))}var ge=w||_?be(m.cornerradiusvalue,m.cornerradiusform):0,Ae,B,$="M"+W+","+V+"V"+Y+"H"+Z+"V"+V+"Z",U=0;if(ge&&z.s){var le=T3(z.s0)===0||T3(z.s)===T3(z.s0)?z.s1:z.s0;if(U=re(z.hasB?0:Math.abs(Ce(de,!0)-Ce(le,!0))),U0?Math.sqrt(U*(2*ge-U)):0,Fe=ve>0?Math.max:Math.min;Ae="M"+W+","+V+"V"+(Y-Re*me)+"H"+Fe(Z-(ge-U)*ve,W)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me-Le)+"V"+(V+ge*me+Le)+"A "+ge+","+ge+" 0 0 "+De+" "+Fe(Z-(ge-U)*ve,W)+","+(V+Re*me)+"Z"}else if(z.hasB)Ae="M"+(W+ge*ve)+","+V+"A "+ge+","+ge+" 0 0 "+De+" "+W+","+(V+ge*me)+"V"+(Y-ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve)+","+Y+"H"+(Z-ge*ve)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me)+"V"+(V+ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-ge*ve)+","+V+"Z";else{B=Math.abs(Y-V)+U;var Oe=B0?Math.sqrt(U*(2*ge-U)):0,Pe=me>0?Math.max:Math.min;Ae="M"+(W+Oe*ve)+","+V+"V"+Pe(Y-(ge-U)*me,V)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve-We)+","+Y+"H"+(Z-ge*ve+We)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-Oe*ve)+","+Pe(Y-(ge-U)*me,V)+"V"+V+"Z"}}else Ae=$}else Ae=$;var Be=bR(la.ensureSingle(O,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-W)*(Y-V))||H&&e._context.staticPlot?"M0,0Z":Ae).call(Vl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Ge=Vl.makePointStyleFns(d);Vl.singlePointStyle(z,Be,d,Ge,e)}Qae(e,r,O,v,F,W,Z,V,Y,ge,U,n,i),r.layerClipId&&Vl.hideOutsideRangePoint(z,O.select("text"),l,o,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;Vl.setClipUrl(h,P?null:r.layerClipId,e)});Oae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Qae(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,$,U){var le=la.ensureSingle(B,"text").text($).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Vl.font,U).call(Iae.convertToTspans,e);return le}var w=a[0].trace,T=w.orientation==="h",b=ene(y,a,n,d,m);g=rne(w,n);var M=v.mode==="stack"||v.mode==="relative",C=a[n],k=!M||C._outmost,q=C.hasB,D=u&&u-f>Oa;if(!b||g==="none"||(C.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var P=y.font,z=w3.getBarColor(a[n],w),F=w3.getInsideTextFont(w,n,P,z),O=w3.getOutsideTextFont(w,n,P),I=w.insidetextanchor||"end",W=t.datum();T?d.type==="log"&&W.s0<=0&&(d.range[0]0&&pe>0,re;D?q?re=es(Y-2*u,H,ne,pe,T)||es(Y,H-2*u,ne,pe,T):T?re=es(Y-(u-f),H,ne,pe,T)||es(Y,H-2*(u-f),ne,pe,T):re=es(Y,H-(u-f),ne,pe,T)||es(Y-2*(u-f),H,ne,pe,T):re=es(Y,H,ne,pe,T),Se&&re?g="inside":(g="outside",Q.remove(),Q=null)}else g="inside";if(!Q){ye=la.ensureUniformFontSize(e,g==="outside"?O:F),Q=_(t,b,ye);var Ce=Q.attr("transform");if(Q.attr("transform",""),K=Vl.bBox(Q.node()),ne=K.width,pe=K.height,Q.attr("transform",Ce),ne<=0||pe<=0){Q.remove();return}}var de=w.textangle,be,ge;g==="outside"?(ge=w.constraintext==="both"||w.constraintext==="outside",be=jae(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de})):(ge=w.constraintext==="both"||w.constraintext==="inside",be=TR(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de,anchor:I,hasB:q,r:u,overhead:f})),be.fontSize=ye.size,Bae(w.type==="histogram"?"bar":w.type,be,y),C.transform=be;var Ae=bR(Q,y,v,h);la.setTransormAndDisplay(Ae,be)}function es(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 _R(e){return e==="auto"?0:e}function wR(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 TR(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,w=n.width,T=n.height,b=Math.abs(r-e),M=Math.abs(a-t),C=b>2*Oa&&M>2*Oa?Oa:0;b-=2*C,M-=2*C;var k=_R(s);s==="auto"&&!(w<=b&&T<=M)&&(w>b||T>M)&&(!(w>M||T>b)||wOa){var z=$ae(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,W=(t+a)/2,Z=0,V=0;if(v||f){var Y=(l?q.x:q.y)/2;g&&(f||y)&&(C+=P);var H=l?Ii(e,r):Ii(t,a);l?v?(I=e+H*C,Z=-H*Y):(I=r-H*C,Z=H*Y):v?(W=t+H*C,V=-H*Y):(W=a-H*C,V=H*Y)}return{textX:F,textY:O,targetX:I,targetY:W,anchorX:Z,anchorY:V,scale:D,rotate:k}}function $ae(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,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=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,w=(-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,w=(-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,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function jae(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=_R(s),g=wR(n,y),_=(l?g.x:g.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,C=0,k=0,q=l?Ii(r,e):Ii(t,a);return l?(b=r-q*d,C=q*_):(M=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:M,anchorX:C,anchorY:k,scale:m,rotate:y}}function ene(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=tne(e,r,t,a,n):i.textinfo?o=ane(r,t,a,n):o=qu.getValue(i.text,t),qu.coerceString(Vae,o)}function rne(e,r){var t=qu.getValue(e.textposition,r);return qu.coerceEnumerated(Gae,t)}function tne(e,r,t,a,n){var i=r[0].trace,l=la.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 l1(h,h.c2l(C),!0).text}function g(C){return l1(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=y(_.p);var T=la.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=g(_.s);var b={};Wae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=g(w.delta),w.final=_.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),u&&(w.value=_.s,w.valueLabel=g(w.value),w.percentInitial=_.begR,w.percentInitialLabel=la.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=la.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=la.formatPercent(_.sumR));var M=la.castOption(i,_.i,"customdata");return M&&(w.customdata=M),la.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function ane(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 l1(C,M,!0).text}function u(M){var C=i?t:a;return l1(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=la.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,w=_-g;y("initial")&&d.push(u(w)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var T=0;y("percent initial")&&T++,y("percent previous")&&T++,y("percent total")&&T++;var b=T>1;y("percent initial")&&(m=la.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=la.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=la.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}MR.exports={plot:Kae,toMoveInsideBar:TR}});var qR=J((Tve,LR)=>{"use strict";var Hc=Li(),nne=br(),kR=Er(),ine=Ie().fillText,lne=t1().getLineWidth,M3=dt().hoverLabelText,one=Gt().BADNUM;function sne(e,r,t,a,n){var i=SR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=CR(o,s),nne.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function SR(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,_,w;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=W,_=F):(h=r,d=t,m="x",y="y",_=W,g=F);var T=l[m+"period"],b=s||T;function M(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Ce){var de=re.w;return re[m]+Ce*de/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?M:T?function(re){return re.p-q(re)/2}:function(re){return Math.min(M(re),re.p-o.bardelta/2)},P=s?C:T?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Ce,de){return n.finiteRange&&(de=0),Hc.inbox(re-h,Ce-h,de+Math.min(1,Math.abs(Ce-re)/w)-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 de=Math.abs(re.rawS)||0;d>0?Ce+=de:d<0&&(Ce-=de)}return Ce}function W(re){var Ce=d,de=re.b,be=I(re);return Hc.inbox(de-Ce,be-Ce,f+(be-Ce)/(be-de)-1)}function Z(re){var Ce=d,de=re.b,be=I(re);return Hc.inbox(de-Ce,be-Ce,v+(be-Ce)/(be-de)-1)}var V=e[m+"a"],Y=e[y+"a"];w=Math.abs(V.r2c(V.range[1])-V.r2c(V.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!==one){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 K=e.index,ne=i[K],pe=l.base?ne.b+ne.s:ne.s;e[y+"0"]=e[y+"1"]=Y.c2p(ne[y],!0),e[y+"LabelVal"]=pe;var ye=o.extents[o.extents.round(ne.p)];e[m+"0"]=V.c2p(s?D(ne):ye[0],!0),e[m+"1"]=V.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=M3(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=M3(Y,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=M3(Y,ne.b,l[y+"hoverformat"]),e.spikeDistance=(Z(ne)+O(ne))/2,e[m+"Spike"]=V.c2p(ne.p,!0),ine(ne,l,e),e.hovertemplate=l.hovertemplate,e}}function CR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=lne(e,r);if(kR.opacity(t))return t;if(kR.opacity(a)&&n)return a}LR.exports={hoverPoints:sne,hoverOnBars:SR,getTraceColor:CR}});var ER=J((Mve,DR)=>{"use strict";DR.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 RR=J((Ave,PR)=>{"use strict";PR.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";zR.exports={attributes:Rc(),layoutAttributes:g3(),supplyDefaults:zc().supplyDefaults,crossTraceDefaults:zc().crossTraceDefaults,supplyLayoutDefaults:JP(),calc:tR(),crossTraceCalc:s2().crossTraceCalc,colorbar:c2(),arraysToCalcdata:b3(),plot:AR().plot,style:a1().style,styleOnSelect:a1().styleOnSelect,hoverPoints:qR().hoverPoints,eventData:ER(),selectPoints:RR(),moduleType:"trace",name:"bar",basePlotModule:Cd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var IR=J((Sve,FR)=>{"use strict";FR.exports=NR()});var k3=J((Cve,OR)=>{"use strict";var A3=Wn(),fne=Jd().attributes,cne=ma(),vne=mi(),{hovertemplateAttrs:hne,texttemplateAttrs:dne,templatefallbackAttrs:HR}=fo(),rs=Wt().extendFlat,pne=gi().pattern,o1=cne({editType:"plot",arrayOk:!0,colorEditType:"plot"});OR.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:vne.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:pne,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:rs({},A3.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:hne({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:HR(),texttemplate:dne({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:HR({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:rs({},o1,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:rs({},o1,{}),outsidetextfont:rs({},o1,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:rs({},A3.showlegend,{arrayOk:!0}),legend:rs({},A3.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:rs({},o1,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:fne({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 VR=J((Lve,UR)=>{"use strict";var mne=Hr(),Oc=Ie(),yne=k3(),gne=Jd().defaults,bne=zc().handleText,xne=Ie().coercePattern;function BR(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 YR(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");xne(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 _ne(e,r,t,a){function n(w,T){return Oc.coerce(e,r,yne,w,T)}var i=n("labels"),l=n("values"),o=BR(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,YR(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");bne(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");gne(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")}UR.exports={handleLabelsAndValues:BR,handleMarkerDefaults:YR,supplyDefaults:_ne}});var S3=J((qve,GR)=>{"use strict";GR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var XR=J((Dve,WR)=>{"use strict";var wne=Ie(),Tne=S3();WR.exports=function(r,t){function a(n,i){return wne.coerce(r,t,Tne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var L3=J((Eve,KR)=>{"use strict";var Mne=Hr(),C3=_n(),Ane=Er(),kne={};function Sne(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 ZR(e){return function(t,a){return!t||(t=C3(t),!t.isValid())?!1:(t=Ane.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Cne(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,kne));for(var o=0,s=0;s{"use strict";var Lne=_i().appendArrayMultiPointValues;QR.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]),Lne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var xz=J((Rve,bz)=>{"use strict";var tn=Ir(),qne=Ht(),s1=Li(),nz=Er(),il=at(),wa=Ie(),Dne=wa.strScale,jR=wa.strTranslate,q3=ya(),iz=Nc(),Ene=iz.recordMinTextSize,Pne=iz.clearMinTextSize,lz=mc().TEXTPAD,wr=Q0(),u1=$R(),ez=Ie().isValidTextValue;function Rne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Pne("pie",a),uz(r,e),mz(r,n);var i=wa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=tn.select(this),s=l[0],u=s.trace;Une(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=tn.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){tn.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=tn.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(oz,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(Y,H,Q,K){var ne=K*(H[0]-Y[0]),pe=K*(H[1]-Y[1]);return"a"+K*s.r+","+K*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ne+","+pe}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 W=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+W*b.px0[0]+","+W*b.px0[1]+I+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}yz(e,b,s);var Z=wr.castOption(u.textposition,b.pts),V=q.selectAll("g.slicetext").data(b.text&&Z!=="none"?[0]:[]);V.enter().append("g").classed("slicetext",!0),V.exit().remove(),V.each(function(){var Y=wa.ensureSingle(tn.select(this),"text","",function(re){re.attr("data-notex",1)}),H=wa.ensureUniformFontSize(e,Z==="outside"?Nne(u,b,a.font):sz(u,b,a.font));Y.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(il.font,H).call(q3.convertToTspans,e);var Q=il.bBox(Y.node()),K;if(Z==="outside")K=az(Q,b);else if(K=fz(Q,b,s),Z==="auto"&&K.scale<1){var ne=wa.ensureUniformFontSize(e,u.outsidetextfont);Y.call(il.font,ne),Q=il.bBox(Y.node()),K=az(Q,b)}var pe=K.textPosAngle,ye=pe===void 0?b.pxmid:f1(s.r,pe);if(K.targetX=C+ye[0]*K.rCenter+(K.x||0),K.targetY=k+ye[1]*K.rCenter+(K.y||0),gz(K,Q),K.outside){var Se=K.targetY;b.yLabelMin=Se-Q.height/2,b.yLabelMid=Se,b.yLabelMax=Se+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}K.fontSize=H.size,Ene(u.type,K,a),l[M].transform=K,wa.setTransormAndDisplay(Y,K)})});var d=tn.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(tn.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(il.font,u.title.font).call(q3.convertToTspans,e);var C;u.title.position==="middle center"?C=Hne(s):C=dz(s,n),b.attr("transform",jR(C.x,C.y)+Dne(Math.min(1,C.scale))+jR(C.tx,C.ty))}),h&&Bne(v,u),zne(f,u),h&&u.automargin){var m=il.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),w=(.5*g-s.r)/n.w,T=(.5*_-s.r)/n.h;qne.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-T,yt:y.y[1]+T,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=tn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function zne(e,r){e.each(function(t){var a=tn.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(nz.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function oz(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=s1.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 w=f.hoverlabel,T=w.font,b=[];s1.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(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[u1(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:[u1(s,f)],event:tn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=tn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=tn.event,r.emit("plotly_unhover",{points:[u1(v,f)],event:tn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(s1.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=[u1(s,f)],s1.click(r,tn.event))})}function Nne(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 sz(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||nz.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function uz(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/T,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=rz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=tz(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 Fne(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 Hne(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 dz(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=pz(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=One(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=D3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function One(e,r){return e/(r===void 0?1:r)}function D3(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 pz(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 Bne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(T,b){return T.pxmid[1]-b.pxmid[1]}function g(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=M-C,P,z,F,O,I,W;if(D*s>0&&(T.labelExtraY=D),!!wa.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(O=F.cyFinal+l(F.px0[1],F.px1[1]),D=O-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(P=3*o*Math.abs(z-v.indexOf(T)),I=F.cxFinal+i(F.px0[0],F.px1[0]),W=I+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,W*o>0&&(T.labelExtraX+=W)))}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=Ine(u,r))}function f1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function yz(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);ez(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 w=g(r),T=wr.getFirstFilled(n.text,r.pts);(ez(T)||T==="")&&(w.text=T),r.text=wa.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:_})}}}function gz(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}bz.exports={plot:Rne,formatSliceLabel:yz,transformInsideText:fz,determineInsideTextFont:sz,positionTitleOutside:dz,prerenderTitles:uz,layoutAreas:mz,attachFxHandlers:oz,computeTransform:gz}});var Tz=J((zve,wz)=>{"use strict";var _z=Ir(),Vne=$0(),Gne=Nc().resizeText;wz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Gne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=_z.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){_z.select(this).call(Vne,o,i,r)})})}});var Az=J(Du=>{"use strict";var Mz=Ht();Du.name="pie";Du.plot=function(e,r,t,a){Mz.plotBasePlot(Du.name,e,r,t,a)};Du.clean=function(e,r,t,a){Mz.cleanBasePlot(Du.name,e,r,t,a)}});var Sz=J((Fve,kz)=>{"use strict";kz.exports={attributes:k3(),supplyDefaults:VR().supplyDefaults,supplyLayoutDefaults:XR(),layoutAttributes:S3(),calc:L3().calc,crossTraceCalc:L3().crossTraceCalc,plot:xz().plot,style:Tz(),styleOne:$0(),moduleType:"trace",name:"pie",basePlotModule:Az(),categories:["pie-like","pie","showLegend"],meta:{}}});var Lz=J((Ive,Cz)=>{"use strict";Cz.exports=Sz()});var Ca=J((Hve,Dz)=>{"use strict";var qz=Object.getOwnPropertySymbols,Wne=Object.prototype.hasOwnProperty,Xne=Object.prototype.propertyIsEnumerable;function Zne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jne(){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}}Dz.exports=Jne()?Object.assign:function(e,r){for(var t,a=Zne(e),n,i=1;i{var v1=Ca();function Ez(){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={}}v1(Ez.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 E3(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 c1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}v1(E3.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?"-":"")+c1(Math.abs(this.year()),4)+"-"+c1(this.month(),2)+"-"+c1(this.day(),2)}});function P3(){this.shortYearCutoff="+10"}v1(P3.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 E3(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?"-":"")+c1(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=Pz.exports=new Ez;Pr.cdate=E3;Pr.baseCalendar=P3;Pr.calendars.gregorian=R3});var Rz=J(()=>{var z3=Ca(),oa=La();z3(oa.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"});oa.local=oa.regionalOptions[""];z3(oa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});z3(oa.baseCalendar.prototype,{UNIX_EPOCH:oa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:oa.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 oa.local.invalidFormat||oa.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;T+C1},f=function(b,M,C,k){var q=""+M;if(u(b,k))for(;q.length1},w=function(F,O){var I=_(F,O),W=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],Z=new RegExp("^-?\\d{1,"+W+"}"),V=r.substring(q).match(Z);if(!V)throw(oa.local.missingNumberAt||oa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=V[0].length,parseInt(V[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},M=function(F,O,I,W){for(var Z=_(F,W)?I:O,V=0;V-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 zz=J(()=>{var Gl=La(),Kne=Ca(),N3=Gl.instance();function h1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h1.prototype=new Gl.baseCalendar;Kne(h1.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($ne);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(jne);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(eie);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 Gl.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 Gl.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,Gl.local.invalidyear),n=Xl[a-Xl[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=N3.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=Wl[e-Wl[0]],a=t>>13,n=a?12:11;if(r>n)throw Gl.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,Gl.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=tie(e,i,t,n);return N3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=N3.fromJD(e),t=rie(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(Qne),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(h1.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 Qne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,$ne=/^\d?\d[iI]?/m,jne=/^闰?十?[一二三四五六七八九]?月/m,eie=/^闰?十?[一二三四五六七八九]?/m;Gl.calendars.chinese=h1;var Wl=[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 rie(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=Xl[n.year-Xl[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Xl[i.year-Xl[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 _=Wl[i.year-Wl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=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=Wl[l.year-Wl[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,T=_>>5&15,b=_&31,M=new Date(w,T-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var Nz=J(()=>{var ts=La(),aie=Ca();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new ts.baseCalendar;aie(F3.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 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,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 a=this._validate(e,r,t,ts.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)}});ts.calendars.coptic=F3});var Fz=J(()=>{var ll=La(),nie=Ca();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new ll.baseCalendar;nie(I3.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,ll.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.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,ll.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ll.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,ll.local.invalidDate);return{century:iie[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ll.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 iie={20:"Fruitbat",21:"Anchovy"};ll.calendars.discworld=I3});var Iz=J(()=>{var as=La(),lie=Ca();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new as.baseCalendar;lie(H3.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 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.ethiopian=H3});var Hz=J(()=>{var Zl=La(),oie=Ca();function O3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O3.prototype=new Zl.baseCalendar;oie(O3.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,Zl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,d1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zl.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,Zl.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,Zl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&d1(this.daysInYear(e),10)===5?30:r===9&&d1(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,Zl.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,Zl.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 d1(e,r){return e-r*Math.floor(e/r)}Zl.calendars.hebrew=O3});var Oz=J(()=>{var Bc=La(),sie=Ca();function B3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B3.prototype=new Bc.baseCalendar;sie(B3.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=B3});var Bz=J(()=>{var Yc=La(),uie=Ca();function Y3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y3.prototype=new Yc.baseCalendar;uie(Y3.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=Y3});var Uz=J(()=>{var Bn=La(),fie=Ca();function V3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V3.prototype=new Bn.baseCalendar;fie(V3.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,Bn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bn.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,Bn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Bn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Bn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bn.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=U3(e+8+17*20,365);return[Math.floor(r/20)+1,U3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Yz(e+20,20),Yz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Bn.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 U3(e,r){return e-r*Math.floor(e/r)}function Yz(e,r){return U3(e-1,r)+1}Bn.calendars.mayan=V3});var Gz=J(()=>{var ns=La(),cie=Ca();function G3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G3.prototype=new ns.baseCalendar;var Vz=ns.instance("gregorian");cie(G3.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,ns.local.invalidYear||ns.regionalOptions[""].invalidYear);return Vz.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,ns.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,ns.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)}});ns.calendars.nanakshahi=G3});var Wz=J(()=>{var is=La(),vie=Ca();function W3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W3.prototype=new is.baseCalendar;vie(W3.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,is.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,is.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,is.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=is.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=is.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 Eu=La(),hie=Ca();function m1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function p1(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}m1.prototype=new Eu.baseCalendar;hie(m1.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,Eu.local.invalidYear);return p1(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,Eu.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,Eu.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,p1(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)}});Eu.calendars.persian=m1;Eu.calendars.jalali=m1});var Zz=J(()=>{var ls=La(),die=Ca(),y1=ls.instance();function X3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X3.prototype=new ls.baseCalendar;die(X3.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,ls.local.invalidYear),t=this._t2gYear(r.year());return y1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ls.local.invalidYear),n=this._t2gYear(a.year());return y1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ls.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,ls.local.invalidDate),n=this._t2gYear(a.year());return y1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=y1.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)}});ls.calendars.taiwan=X3});var Jz=J(()=>{var os=La(),pie=Ca(),g1=os.instance();function Z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z3.prototype=new os.baseCalendar;pie(Z3.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,os.local.invalidYear),t=this._t2gYear(r.year());return g1.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 g1.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 g1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=g1.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)}});os.calendars.thai=Z3});var Kz=J(()=>{var ss=La(),mie=Ca();function J3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J3.prototype=new ss.baseCalendar;mie(J3.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,ss.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,ss.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Jl[n]-Jl[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,ss.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Jl[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-Jl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ss.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=ss.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ss.calendars.ummalqura=J3;var Jl=[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 $z=J((y0e,Qz)=>{"use strict";Qz.exports=La();Rz();zz();Nz();Fz();Iz();Hz();Oz();Bz();Uz();Gz();Wz();Xz();Zz();Jz();Kz()});var iN=J((g0e,nN)=>{"use strict";var eN=$z(),Uc=Ie(),rN=Gt(),yie=rN.EPOCHJD,gie=rN.ONEDAY,$3={valType:"enumerated",values:Uc.sortObjectKeys(eN.calendars),editType:"calc",dflt:"gregorian"},tN=function(e,r,t,a){var n={};return n[t]=$3,Uc.coerce(e,r,n,t,a)},bie=function(e,r,t,a){for(var n=0;n{"use strict";lN.exports=iN()});var Aie=J((x0e,uN)=>{var sN=DP();sN.register([IR(),Lz(),oN()]);uN.exports=sN});return Aie();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index 28c85592d55..26566df88cd 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -13756,9 +13756,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35886,7 +35886,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index 2ea838efdc3..ff05b2f6954 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var ooe=Object.defineProperty,loe=Object.defineProperties;var soe=Object.getOwnPropertyDescriptors;var J8=Object.getOwnPropertySymbols;var uoe=Object.prototype.hasOwnProperty,foe=Object.prototype.propertyIsEnumerable;var $8=(e,r,t)=>r in e?ooe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ks=(e,r)=>{for(var t in r||(r={}))uoe.call(r,t)&&$8(e,t,r[t]);if(J8)for(var t of J8(r))foe.call(r,t)&&$8(e,t,r[t]);return e},yp=(e,r)=>loe(e,soe(r));var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var mp=N(K8=>{"use strict";K8.version="3.4.0"});var eM=N((Q8,gp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof gp!="undefined"&&gp.exports&&(gp.exports=t[r])})("Promise",typeof window!="undefined"?window:Q8,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,q){b=new w(M,q),_?_.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,S=new Array(A);A--;)S[A]=g[A];return S}}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,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}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,S=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,S=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,S=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,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)<0?S=C+1:L=C}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)>0?L=C:S=C+1}return S}}}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){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,C;S;)C=Math.random()*S--|0,L=h[S+g],h[S+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,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 S=[],L=T(x(A)),C=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++C)>g;)S.push(O/L);else for(;(O=h+A*++C)=g.length)return L?L.call(h,U):S?U.sort(S):U;for(var $=-1,re=U.length,te=g[J++],_e,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 S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;A=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],A=new b;function S(){for(var L=g,C=-1,O=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),le.hasOwnProperty(A)?{space:le[A],local:h}:h}},ye.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(ve(g,h[g]));return this}return this.each(ve(h,g))};function ve(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){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?S:A:typeof g=="function"?h.local?F:O:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ye.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=Pe(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[S])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ye.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=He.get(h);O&&(h=O,C=Ve);function F(){var $=this[S];$&&(this.removeEventListener(h,$,$.$),delete this[S])}function U(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),re;for(var te in this)if(re=te.match($)){var _e=this[te];this.removeEventListener(re[1],_e,_e.$),delete this[te]}}return L?g?U:F:g?H:J}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(h){"on"+h in a&&He.remove(h)});function Je(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Ve(h,g){var A=Je(h,g);return function(S){var L=this,C=S.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Ze,or=0;function rr(h){var g=".dragsuppress-"+ ++or,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Ze==null&&(Ze="onselectstart"in h?!1:Y(h.style,"userSelect")),Ze){var L=n(h).style,C=L[Ze];L[Ze]="none"}return function(O){if(S.on(g,null),Ze&&(L[Ze]=C),O){var F=function(){S.on(A,null)};S.on(A,function(){ee(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ie(h,fe())};var Ke=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 S=A.createSVGPoint();if(Ke<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();Ke=!(C.f||C.e),A.remove()}}return Ke?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.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=fe().changedTouches),g){for(var S=0,L=g.length,C;S0?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 ft(h){return h>1?sr:h<-1?-sr:Math.asin(h)}function Ft(h){return((h=Math.exp(h))-1/h)/2}function Tt(h){return((h=Math.exp(h))+1/h)/2}function pa(h){return((h=Math.exp(2*h))-1)/(h+1)}function $t(h){return(h=Math.sin(h/2))*h}var sa=Math.SQRT2,dr=2,yt=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],L=h[2],C=g[0],O=g[1],F=g[2],U=C-A,J=O-S,$=U*U+J*J,re,te;if($0&&(ar=ar.transition().duration(O)),ar.call(Se.event)}function pr(){pe&&pe.domain(ae.range().map(function(ar){return(ar-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(ar){return(ar-h.y)/h.k}).map(ge.invert))}function yr(ar){F++||ar({type:"zoomstart"})}function Er(ar){pr(),ar({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gr(ar){--F||(ar({type:"zoomend"}),A=null)}function Mr(){var ar=this,Dr=ke.of(ar,arguments),Pr=0,nt=e.select(i(ar)).on(J,Ia).on($,tn),Gt=xe(e.mouse(ar)),ma=rr(ar);vp.call(ar),yr(Dr);function Ia(){Pr=1,cr(e.mouse(ar),Gt),Er(Dr)}function tn(){nt.on(J,null).on($,null),ma(Pr),gr(Dr)}}function at(){var ar=this,Dr=ke.of(ar,arguments),Pr={},nt=0,Gt,ma=".zoom-"+e.event.changedTouches[0].identifier,Ia="touchmove"+ma,tn="touchend"+ma,mn=[],an=e.select(ar),Mn=rr(ar);kn(),yr(Dr),an.on(U,null).on(te,kn);function ja(){var Ji=e.touches(ar);return Gt=h.k,Ji.forEach(function(za){za.identifier in Pr&&(Pr[za.identifier]=xe(za))}),Ji}function kn(){var Ji=e.event.target;e.select(Ji).on(Ia,Js).on(tn,ioe),mn.push(Ji);for(var za=e.event.changedTouches,li=0,Mo=za.length;li1){var $s=si[0],Gl=si[1],pp=$s[0]-Gl[0],X8=$s[1]-Gl[1];nt=pp*pp+X8*X8}}function Js(){var Ji=e.touches(ar),za,li,Mo,si;vp.call(ar);for(var Cf=0,$s=Ji.length;Cf<$s;++Cf,si=null)if(Mo=Ji[Cf],si=Pr[Mo.identifier]){if(li)break;za=Mo,li=si}if(si){var Gl=(Gl=Mo[0]-za[0])*Gl+(Gl=Mo[1]-za[1])*Gl,pp=nt&&Math.sqrt(Gl/nt);za=[(za[0]+Mo[0])/2,(za[1]+Mo[1])/2],li=[(li[0]+si[0])/2,(li[1]+si[1])/2],ir(pp*Gt)}_e=null,cr(za,li),Er(Dr)}function ioe(){if(e.event.touches.length){for(var Ji=e.event.changedTouches,za=0,li=Ji.length;za1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function O(F){return Math.round(C(F)*255)}return new Zt(O(h+120),O(h),O(h-120))}e.hcl=jt;function jt(h,g,A){return this instanceof jt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof jt?new jt(h.h,h.c,h.l):h instanceof Nt?It(h.l,h.a,h.b):It((h=ur((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new jt(h,g,A)}var dn=jt.prototype=new Lt;dn.brighter=function(h){return new jt(this.h,this.c,Math.min(100,this.l+Ct*(arguments.length?h:1)))},dn.darker=function(h){return new jt(this.h,this.c,Math.max(0,this.l-Ct*(arguments.length?h:1)))},dn.rgb=function(){return pn(this.h,this.c,this.l).rgb()};function pn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Nt(A,Math.cos(h*=kr)*g,Math.sin(h)*g)}e.lab=Nt;function Nt(h,g,A){return this instanceof Nt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Nt?new Nt(h.l,h.a,h.b):h instanceof jt?pn(h.h,h.c,h.l):ur((h=Zt(h)).r,h.g,h.b):new Nt(h,g,A)}var Ct=18,wa=.95047,il=1,ol=1.08883,ct=Nt.prototype=new Lt;ct.brighter=function(h){return new Nt(Math.min(100,this.l+Ct*(arguments.length?h:1)),this.a,this.b)},ct.darker=function(h){return new Nt(Math.max(0,this.l-Ct*(arguments.length?h:1)),this.a,this.b)},ct.rgb=function(){return An(this.l,this.a,this.b)};function An(h,g,A){var S=(h+16)/116,L=S+g/500,C=S-A/200;return L=Ys(L)*wa,S=Ys(S)*il,C=Ys(C)*ol,new Zt(Wi(3.2404542*L-1.5371385*S-.4985314*C),Wi(-.969266*L+1.8760108*S+.041556*C),Wi(.0556434*L-.2040259*S+1.0572252*C))}function It(h,g,A){return h>0?new jt(Math.atan2(A,g)*zr,Math.sqrt(g*g+A*A),h):new jt(NaN,NaN,h)}function Ys(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 Wi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Zt;function Zt(h,g,A){return this instanceof Zt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Zt?new Zt(h.r,h.g,h.b):Kr(""+h,Zt,rn):new Zt(h,g,A)}function ji(h){return new Zt(h>>16,h>>8&255,h&255)}function Bl(h){return ji(h)+""}var Hl=Zt.prototype=new Lt;Hl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new Zt(L,L,L):(g&&g>4,S=S>>4|S,L=U&240,L=L>>4|L,C=U&15,C=C<<4|C):h.length===7&&(S=(U&16711680)>>16,L=(U&65280)>>8,C=U&255)),g(S,L,C))}function vt(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-S,O,F,U=(L+S)/2;return C?(F=U<.5?C/(L+S):C/(2-L-S),h==L?O=(g-A)/C+(g0&&U<1?0:O),new Gr(O,F,U)}function ur(h,g,A){h=Fa(h),g=Fa(g),A=Fa(A);var S=yn((.4124564*h+.3575761*g+.1804375*A)/wa),L=yn((.2126729*h+.7151522*g+.072175*A)/il),C=yn((.0193339*h+.119192*g+.9503041*A)/ol);return Nt(116*L-16,500*(S-L),200*(L-C))}function Fa(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 Na=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});Na.forEach(function(h,g){Na.set(h,ji(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,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Ws(g,A,h,S)}}function Ws(h,g,A,S){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(!$&&lne(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 _e in O)F.setRequestHeader(_e,O[_e]);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"),S==null?L:L.get(one(S))}function one(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function lne(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +"use strict";var Plotly=(()=>{var ooe=Object.defineProperty,loe=Object.defineProperties;var soe=Object.getOwnPropertyDescriptors;var J8=Object.getOwnPropertySymbols;var uoe=Object.prototype.hasOwnProperty,foe=Object.prototype.propertyIsEnumerable;var $8=(e,r,t)=>r in e?ooe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ks=(e,r)=>{for(var t in r||(r={}))uoe.call(r,t)&&$8(e,t,r[t]);if(J8)for(var t of J8(r))foe.call(r,t)&&$8(e,t,r[t]);return e},mp=(e,r)=>loe(e,soe(r));var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var gp=N(K8=>{"use strict";K8.version="3.4.0"});var eM=N((Q8,bp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bp!="undefined"&&bp.exports&&(bp.exports=t[r])})("Promise",typeof window!="undefined"?window:Q8,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,q){b=new w(M,q),_?_.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,S=new Array(A);A--;)S[A]=g[A];return S}}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,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}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,S=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,S=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,S=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,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)<0?S=C+1:L=C}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[C],A)>0?L=C:S=C+1}return S}}}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){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,C;S;)C=Math.random()*S--|0,L=h[S+g],h[S+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,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 S=[],L=T(x(A)),C=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++C)>g;)S.push(O/L);else for(;(O=h+A*++C)=g.length)return L?L.call(h,U):S?U.sort(S):U;for(var $=-1,re=U.length,te=g[J++],_e,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 S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;A=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],A=new b;function S(){for(var L=g,C=-1,O=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),le.hasOwnProperty(A)?{space:le[A],local:h}:h}},ye.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(ve(g,h[g]));return this}return this.each(ve(h,g))};function ve(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){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?S:A:typeof g=="function"?h.local?F:O:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ye.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=Pe(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[S])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ye.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=He.get(h);O&&(h=O,C=Ve);function F(){var $=this[S];$&&(this.removeEventListener(h,$,$.$),delete this[S])}function U(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),re;for(var te in this)if(re=te.match($)){var _e=this[te];this.removeEventListener(re[1],_e,_e.$),delete this[te]}}return L?g?U:F:g?H:J}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(h){"on"+h in a&&He.remove(h)});function Je(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Ve(h,g){var A=Je(h,g);return function(S){var L=this,C=S.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Ze,or=0;function rr(h){var g=".dragsuppress-"+ ++or,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Ze==null&&(Ze="onselectstart"in h?!1:Y(h.style,"userSelect")),Ze){var L=n(h).style,C=L[Ze];L[Ze]="none"}return function(O){if(S.on(g,null),Ze&&(L[Ze]=C),O){var F=function(){S.on(A,null)};S.on(A,function(){ee(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ie(h,fe())};var Ke=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 S=A.createSVGPoint();if(Ke<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();Ke=!(C.f||C.e),A.remove()}}return Ke?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.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=fe().changedTouches),g){for(var S=0,L=g.length,C;S0?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 ft(h){return h>1?sr:h<-1?-sr:Math.asin(h)}function Ft(h){return((h=Math.exp(h))-1/h)/2}function Tt(h){return((h=Math.exp(h))+1/h)/2}function pa(h){return((h=Math.exp(2*h))-1)/(h+1)}function $t(h){return(h=Math.sin(h/2))*h}var sa=Math.SQRT2,dr=2,yt=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],L=h[2],C=g[0],O=g[1],F=g[2],U=C-A,J=O-S,$=U*U+J*J,re,te;if($0&&(ar=ar.transition().duration(O)),ar.call(Se.event)}function pr(){pe&&pe.domain(ae.range().map(function(ar){return(ar-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(ar){return(ar-h.y)/h.k}).map(ge.invert))}function yr(ar){F++||ar({type:"zoomstart"})}function Er(ar){pr(),ar({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gr(ar){--F||(ar({type:"zoomend"}),A=null)}function Mr(){var ar=this,Dr=ke.of(ar,arguments),Pr=0,nt=e.select(i(ar)).on(J,Ia).on($,tn),Gt=xe(e.mouse(ar)),ma=rr(ar);hp.call(ar),yr(Dr);function Ia(){Pr=1,cr(e.mouse(ar),Gt),Er(Dr)}function tn(){nt.on(J,null).on($,null),ma(Pr),gr(Dr)}}function at(){var ar=this,Dr=ke.of(ar,arguments),Pr={},nt=0,Gt,ma=".zoom-"+e.event.changedTouches[0].identifier,Ia="touchmove"+ma,tn="touchend"+ma,mn=[],an=e.select(ar),Mn=rr(ar);kn(),yr(Dr),an.on(U,null).on(te,kn);function ja(){var Ji=e.touches(ar);return Gt=h.k,Ji.forEach(function(za){za.identifier in Pr&&(Pr[za.identifier]=xe(za))}),Ji}function kn(){var Ji=e.event.target;e.select(Ji).on(Ia,Js).on(tn,ioe),mn.push(Ji);for(var za=e.event.changedTouches,li=0,Mo=za.length;li1){var $s=si[0],Gl=si[1],yp=$s[0]-Gl[0],X8=$s[1]-Gl[1];nt=yp*yp+X8*X8}}function Js(){var Ji=e.touches(ar),za,li,Mo,si;hp.call(ar);for(var Cf=0,$s=Ji.length;Cf<$s;++Cf,si=null)if(Mo=Ji[Cf],si=Pr[Mo.identifier]){if(li)break;za=Mo,li=si}if(si){var Gl=(Gl=Mo[0]-za[0])*Gl+(Gl=Mo[1]-za[1])*Gl,yp=nt&&Math.sqrt(Gl/nt);za=[(za[0]+Mo[0])/2,(za[1]+Mo[1])/2],li=[(li[0]+si[0])/2,(li[1]+si[1])/2],ir(yp*Gt)}_e=null,cr(za,li),Er(Dr)}function ioe(){if(e.event.touches.length){for(var Ji=e.event.changedTouches,za=0,li=Ji.length;za1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function O(F){return Math.round(C(F)*255)}return new Zt(O(h+120),O(h),O(h-120))}e.hcl=jt;function jt(h,g,A){return this instanceof jt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof jt?new jt(h.h,h.c,h.l):h instanceof Nt?It(h.l,h.a,h.b):It((h=ur((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new jt(h,g,A)}var dn=jt.prototype=new Lt;dn.brighter=function(h){return new jt(this.h,this.c,Math.min(100,this.l+Ct*(arguments.length?h:1)))},dn.darker=function(h){return new jt(this.h,this.c,Math.max(0,this.l-Ct*(arguments.length?h:1)))},dn.rgb=function(){return pn(this.h,this.c,this.l).rgb()};function pn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Nt(A,Math.cos(h*=kr)*g,Math.sin(h)*g)}e.lab=Nt;function Nt(h,g,A){return this instanceof Nt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Nt?new Nt(h.l,h.a,h.b):h instanceof jt?pn(h.h,h.c,h.l):ur((h=Zt(h)).r,h.g,h.b):new Nt(h,g,A)}var Ct=18,wa=.95047,il=1,ol=1.08883,ct=Nt.prototype=new Lt;ct.brighter=function(h){return new Nt(Math.min(100,this.l+Ct*(arguments.length?h:1)),this.a,this.b)},ct.darker=function(h){return new Nt(Math.max(0,this.l-Ct*(arguments.length?h:1)),this.a,this.b)},ct.rgb=function(){return An(this.l,this.a,this.b)};function An(h,g,A){var S=(h+16)/116,L=S+g/500,C=S-A/200;return L=Ys(L)*wa,S=Ys(S)*il,C=Ys(C)*ol,new Zt(Wi(3.2404542*L-1.5371385*S-.4985314*C),Wi(-.969266*L+1.8760108*S+.041556*C),Wi(.0556434*L-.2040259*S+1.0572252*C))}function It(h,g,A){return h>0?new jt(Math.atan2(A,g)*zr,Math.sqrt(g*g+A*A),h):new jt(NaN,NaN,h)}function Ys(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 Wi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Zt;function Zt(h,g,A){return this instanceof Zt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Zt?new Zt(h.r,h.g,h.b):Kr(""+h,Zt,rn):new Zt(h,g,A)}function ji(h){return new Zt(h>>16,h>>8&255,h&255)}function Bl(h){return ji(h)+""}var Hl=Zt.prototype=new Lt;Hl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new Zt(L,L,L):(g&&g>4,S=S>>4|S,L=U&240,L=L>>4|L,C=U&15,C=C<<4|C):h.length===7&&(S=(U&16711680)>>16,L=(U&65280)>>8,C=U&255)),g(S,L,C))}function vt(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-S,O,F,U=(L+S)/2;return C?(F=U<.5?C/(L+S):C/(2-L-S),h==L?O=(g-A)/C+(g0&&U<1?0:O),new Gr(O,F,U)}function ur(h,g,A){h=Fa(h),g=Fa(g),A=Fa(A);var S=yn((.4124564*h+.3575761*g+.1804375*A)/wa),L=yn((.2126729*h+.7151522*g+.072175*A)/il),C=yn((.0193339*h+.119192*g+.9503041*A)/ol);return Nt(116*L-16,500*(S-L),200*(L-C))}function Fa(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 Na=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});Na.forEach(function(h,g){Na.set(h,ji(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,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Ws(g,A,h,S)}}function Ws(h,g,A,S){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(!$&&lne(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 _e in O)F.setRequestHeader(_e,O[_e]);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"),S==null?L:L.get(one(S))}function one(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function lne(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` ]`),S=h.charCodeAt(0);function L(J,$,re){arguments.length<3&&(re=$,$=null);var te=Ws(J,g,$==null?C:O($),re);return te.row=function(_e){return arguments.length?te.response(($=_e)==null?C:O(_e)):$},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,_e){if(re)return re(te,_e-1);var ke=function(ae){for(var pe={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,re;var We=ae;if(J.charCodeAt(We)===34){for(var ir=We;ir++24?(isFinite(g)&&(clearTimeout(Jd),Jd=setTimeout(D3,g)),Xd=0):(Xd=1,FA(D3))}e.timer.flush=function(){NA(),IA()};function NA(){for(var h=Date.now(),g=jd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function IA(){for(var h,g=jd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[J[re[F]][2]]);for(F=+_e;F1&&et(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function sne(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Kd),h};var Kd=e.geom.polygon.prototype=[];Kd.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],L=0;++hde)F=F.L;else if(O=g-vne(F,A),O>de){if(!F.R){S=F;break}F=F.R}else{C>-de?(S=F.P,L=F):O>-de?(S=F,L=F.N):S=L=F;break}var U=UA(h);if(kf.insert(S,U),!(!S&&!L)){if(S===L){qf(S),L=UA(S.site),kf.insert(U,L),U.edge=L.edge=Gv(S.site,U.site),Sf(S),Sf(L);return}if(!L){U.edge=Gv(S.site,U.site);return}qf(S),qf(L);var J=S.site,$=J.x,re=J.y,te=h.x-$,_e=h.y-re,ke=L.site,ae=ke.x-$,pe=ke.y-re,ge=2*(te*pe-_e*ae),Me=te*te+_e*_e,Se=ae*ae+pe*pe,xe={x:(pe*Me-_e*Se)/ge+$,y:(te*Se-ae*Me)/ge+re};Qd(L.edge,J,ke,xe),U.edge=Gv(J,h,null,xe),L.edge=Gv(h,ke,null,xe),Sf(S),Sf(L)}}function GA(h,g){var A=h.site,S=A.x,L=A.y,C=L-g;if(!C)return S;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-S,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+S:(S+F)/2}function vne(h,g){var A=h.N;if(A)return GA(A,g);var S=h.site;return S.y===g?S.x:1/0}function VA(h){this.site=h,this.edges=[]}VA.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(YA),h.length};function hne(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],C,O,F,U,J=js,$=J.length,re,te,_e,ke,ae,pe;$--;)if(re=J[$],!(!re||!re.prepare()))for(_e=re.edges,ke=_e.length,te=0;tede||x(U-O)>de)&&(_e.splice(te,0,new ep(gne(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-S)=-Re)){var te=U*U+J*J,_e=$*$+pe*pe,ke=(pe*te-J*_e)/re,ae=(U*_e-$*te)/re,pe=ae+F,ge=HA.pop()||new dne;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=Uv._;Se;)if(ge.y0)){if(ae/=_e,_e<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=A-F,!(!_e&&ae<0)){if(ae/=_e,_e<0){if(ae>te)return;ae>re&&(re=ae)}else if(_e>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=S-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*_e,y:U+re*ke}),te<1&&(L.b={x:F+te*_e,y:U+te*ke}),L}}}}}}function yne(h){for(var g=Mf,A=pne(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!mne(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!S)S={x:ke,y:O};else if(S.y>=F)return;A={x:ke,y:F}}else{if(!S)S={x:ke,y:F};else if(S.y1)if($>te){if(!S)S={x:(O-ge)/pe,y:O};else if(S.y>=F)return;A={x:(F-ge)/pe,y:F}}else{if(!S)S={x:(F-ge)/pe,y:F};else if(S.y=C)return;A={x:C,y:pe*C+ge}}else{if(!S)S={x:C,y:pe*C+ge};else if(S.x=$&&ge.x<=te&&ge.y>=re&&ge.y<=_e?[[$,_e],[te,_e],[te,re],[$,re]]:[];Me.point=U[ae]}),J}function F(U){return U.map(function(J,$){return{x:Math.round(S(J,$)/de)*de,y:Math.round(L(J,$)/de)*de,i:$}})}return O.links=function(U){return z3(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 z3(F(U)).cells.forEach(function($,re){for(var te=$.site,_e=$.edges.sort(YA),ke=-1,ae=_e.length,pe,ge,Me=_e[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),_e.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=We),ir>xe&&(xe=ir),_e.push(We),ke.push(ir)}var cr=Se-ge,lr=xe-Me;cr>lr?xe=Me+cr:Se=ge+lr;function pr(gr,Mr,at,Kt,dt,ar,Dr,Pr){if(!(isNaN(at)||isNaN(Kt)))if(gr.leaf){var nt=gr.x,Gt=gr.y;if(nt!=null)if(x(nt-at)+x(Gt-Kt)<.01)yr(gr,Mr,at,Kt,dt,ar,Dr,Pr);else{var ma=gr.point;gr.x=gr.y=gr.point=null,yr(gr,ma,nt,Gt,dt,ar,Dr,Pr),yr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}else gr.x=at,gr.y=Kt,gr.point=Mr}else yr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}function yr(gr,Mr,at,Kt,dt,ar,Dr,Pr){var nt=(dt+Dr)*.5,Gt=(ar+Pr)*.5,ma=at>=nt,Ia=Kt>=Gt,tn=Ia<<1|ma;gr.leaf=!1,gr=gr.nodes[tn]||(gr.nodes[tn]=ZA()),ma?dt=nt:Dr=nt,Ia?ar=Gt:Pr=Gt,pr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}var Er=ZA();if(Er.add=function(gr){pr(Er,gr,+re(gr,++ae),+te(gr,ae),ge,Me,Se,xe)},Er.visit=function(gr){Wv(gr,Er,ge,Me,Se,xe)},Er.find=function(gr){return Tne(Er,gr[0],gr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>O||_e=We,lr=A>=ir,pr=lr<<1|cr,yr=pr+4;prA&&(C=g.slice(A,C),F[O]?F[O]+=C:F[++O]=C),(S=S[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,U.push({i:O,x:ll(S,L)})),A=H3.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Na.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?O3:JA:g instanceof Lt?O3:Array.isArray(g)?ap:A==="object"&&isNaN(g)?XA:ll)(h,g)}],e.interpolateArray=ap;function ap(h,g){var A=[],S=[],L=h.length,C=g.length,O=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=Ane.get(A)||$A,S=Mne.get(S)||B,kne(S(A.apply(null,r.call(arguments,1))))};function kne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function KA(h){return function(g){return 1-h(1-g)}}function QA(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Sne(h){return h*h}function qne(h){return h*h*h}function Lne(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 Cne(h){return function(g){return Math.pow(g,h)}}function Ene(h){return 1-Math.cos(h*sr)}function Dne(h){return Math.pow(2,10*(h-1))}function Rne(h){return 1-Math.sqrt(1-h*h)}function Pne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/Qe*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*Qe/g)}}function Fne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Nne(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=Ine;function Ine(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,C=g.h-A,O=g.c-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.c:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return pn(A+C*U,S+O*U,L+F*U)+""}}e.interpolateHsl=zne;function zne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,C=g.h-A,O=g.s-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.s:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return rn(A+C*U,S+O*U,L+F*U)+""}}e.interpolateLab=One;function One(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,C=g.l-A,O=g.a-S,F=g.b-L;return function(U){return An(A+C*U,S+O*U,L+F*U)+""}}e.interpolateRound=e8;function e8(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 S=g.transform.baseVal.consolidate()}return new r8(S?S.matrix:Hne)})(h)};function r8(h){var g=[h.a,h.b],A=[h.c,h.d],S=a8(g),L=t8(g,A),C=a8(Bne(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Lf(A)+"rotate(",null,")")-2,x:ll(h,g)})):g&&A.push(Lf(A)+"rotate("+g+")")}function Vne(h,g,A,S){h!==g?S.push({i:A.push(Lf(A)+"skewX(",null,")")-2,x:ll(h,g)}):g&&A.push(Lf(A)+"skewX("+g+")")}function Yne(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(Lf(A)+"scale(",null,",",null,")");S.push({i:L-4,x:ll(h[0],g[0])},{i:L-2,x:ll(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Lf(A)+"scale("+g+")")}function n8(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),Une(h.translate,g.translate,A,S),Gne(h.rotate,g.rotate,A,S),Vne(h.skew,g.skew,A,S),Yne(h.scale,g.scale,A,S),h=g=null,function(L){for(var C=-1,O=S.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=$d(h.tick)),h):C},h.start=function(){var xe,We=_e.length,ir=ke.length,cr=S[0],lr=S[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(S,F,F.depth)||0),delete F.children;return Ao(L,function(re){var te,_e;h&&(te=re.children)&&te.sort(h),A&&(_e=re.parent)&&(_e.value+=re.value)}),O}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(A=L,S):A},S.revalue=function(L){return A&&(Zv(L,function(C){C.children&&(C.value=0)}),Ao(L,function(C){var O;C.children||(C.value=+A.call(S,C,C.depth)||0),(O=C.parent)&&(O.value+=C.value)})),L},S};function jv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=oie,h}function Zv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function Ao(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(O=h.children)&&(C=O.length))for(var L=-1,C,O;++LL&&(L=F),S.push(F)}for(O=0;OS&&(A=g,S=L);return A}function hie(h){return h.reduce(die,0)}function die(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=yie,S=pie;function L(C,te){for(var F=[],U=C.map(g,this),J=A.call(this,U,te),$=S.call(this,J,U,te),re,te=-1,_e=U.length,ke=$.length-1,ae=h?1:1/_e,pe;++te0)for(te=-1;++te<_e;)pe=U[te],pe>=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?(S=typeof C=="number"?function(O){return s8(O,C)}:Or(C),L):S},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function pie(h,g){return s8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function s8(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,C=[];++A<=g;)C[A]=L*A+S;return C}function yie(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(mie),g=0,A=[1,1],S;function L(C,O){var F=h.call(this,C,O),U=F[0],J=A[0],$=A[1],re=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(U.x=U.y=0,Ao(U,function(_e){_e.r=+re(_e.value)}),Ao(U,c8),g){var te=g*(S?1:Math.max(2*U.r/J,2*U.r/$))/2;Ao(U,function(_e){_e.r+=te}),Ao(U,c8),Ao(U,function(_e){_e.r-=te})}return v8(U,J/2,$/2,S?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?(S=C==null||typeof C=="function"?C:+C,L):S},L.padding=function(C){return arguments.length?(g=+C,L):g},jv(L,h)};function mie(h,g){return h.value-g.value}function V3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function u8(h,g){h._pack_next=g,g._pack_prev=h}function f8(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function c8(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,S=-1/0,L=1/0,C=-1/0,O,F,U,J,$,re,te;function _e(xe){A=Math.min(xe.x-xe.r,A),S=Math.max(xe.x+xe.r,S),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(gie),O=g[0],O.x=-O.r,O.y=0,_e(O),te>1&&(F=g[1],F.x=F.r,F.y=0,_e(F),te>2))for(U=g[2],h8(O,F,U),_e(U),V3(O,U),O._pack_prev=U,V3(U,F),F=O._pack_next,J=3;Jpe.x&&(pe=We),We.depth>ge.depth&&(ge=We)});var Me=g(ae,pe)/2-ae.x,Se=A[0]/(pe.x+g(pe,ae)/2+Me),xe=A[1]/(ge.depth||1);Zv(_e,function(We){We.x=(We.x+Me)*Se,We.y=We.depth*xe})}return te}function C($){for(var re={A:null,children:[$]},te=[re],_e;(_e=te.pop())!=null;)for(var ke=_e.children,ae,pe=0,ge=ke.length;pe0&&(xie(wie(ae,$,te),$,We),ge+=We,Me+=We),Se+=ae.m,ge+=_e.m,xe+=pe.m,Me+=ke.m;ae&&!W3(ke)&&(ke.t=ae,ke.m+=Se-Me),_e&&!Y3(pe)&&(pe.t=_e,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?(S=(A=$)==null?J:null,L):S?null:A},L.nodeSize=function($){return arguments.length?(S=(A=$)==null?null:J,L):S?A:null},jv(L,h)};function d8(h,g){return h.parent==g.parent?1:2}function Y3(h){var g=h.children;return g.length?g[0]:h.t}function W3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function xie(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function _ie(h){for(var g=0,A=0,S=h.children,L=S.length,C;--L>=0;)C=S[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function wie(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=d8,A=[1,1],S=!1;function L(C,O){var F=h.call(this,C,O),U=F[0],J,$=0;Ao(U,function(ae){var pe=ae.children;pe&&pe.length?(ae.x=Aie(pe),ae.y=Tie(pe)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var re=p8(U),te=y8(U),_e=re.x-g(re,te)/2,ke=te.x+g(te,re)/2;return Ao(U,S?function(ae){ae.x=(ae.x-U.x)*A[0],ae.y=(U.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-_e)/(ke-_e)*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?(S=(A=C)==null,L):S?null:A},L.nodeSize=function(C){return arguments.length?(S=(A=C)!=null,L):S?A:null},jv(L,h)};function Tie(h){return 1+e.max(h,function(g){return g.y})}function Aie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function p8(h){var g=h.children;return g&&g.length?p8(g[0]):h}function y8(h){var g=h.children,A;return g&&(A=g.length)?y8(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=j3,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[lr-1]),Me.area+=xe.area,F!=="squarify"||(ir=te(Me,cr))<=We?(Se.pop(),We=ir):(Me.area-=Me.pop().area,_e(Me,cr,ge,!1),cr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,We=1/0);Me.length&&(_e(Me,cr,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&&(_e(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,We=-1,ir=ae.length;++WeSe&&(Se=Me));return ge*=ge,pe*=pe,ge?Math.max(pe*Se*U/ge,ge/(pe*xe*U)):1/0}function _e(ae,pe,ge,Me){var Se=-1,xe=ae.length,We=ge.x,ir=ge.y,cr=pe?g(ae.area/pe):0,lr;if(pe==ge.dx){for((Me||cr>ge.dy)&&(cr=ge.dy);++Sege.dx)&&(cr=ge.dx);++Se1);return h+g*S*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?Sie:Mie,J=S?jne:Wne;return L=U(h,g,J,A),C=U(g,h,J,Zs),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(e8)},F.clamp=function(U){return arguments.length?(S=U,O()):S},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return J3(h,U)},F.tickFormat=function(U,J){return d3_scale_linearTickFormat(h,U,J)},F.nice=function(U){return _8(h,U),O()},F.copy=function(){return b8(h,g,A,S)},O()}function x8(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function _8(h,g){return Z3(h,g8(X3(h,g)[2])),Z3(h,g8(X3(h,g)[2])),h}function X3(h,g){g==null&&(g=10);var A=np(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),C=g/S*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 J3(h,g){return e.range.apply(e,X3(h,g))}var qie={s:1,g:1,p:1,r:1,e:1};function w8(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function SCe(h,g){var A=w8(g[2]);return h in qie?Math.abs(A-w8(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return T8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function T8(h,g,A,S){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((S=F.map(Number)).map(L)),O):S},O.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),O):g},O.nice=function(){var F=Z3(S.map(L),A?Math:Lie);return h.domain(F),S=F.map(C),O},O.ticks=function(){var F=np(S),U=[],J=F[0],$=F[1],re=Math.floor(L(J)),te=Math.ceil(L($)),_e=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 T8(h.copy(),g,A,S)},x8(O,h)}var Lie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return A8(e.scale.linear(),1,[0,1])};function A8(h,g,A){var S=op(g),L=op(1/g);function C(O){return h(S(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(S)),C):A},C.ticks=function(O){return J3(A,O)},C.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},C.nice=function(O){return C.domain(_8(A,O))},C.exponent=function(O){return arguments.length?(S=op(g=O),L=op(1/g),h.domain(A.map(S)),C):g},C.copy=function(){return A8(h.copy(),g,A)},x8(C,h)}function op(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 M8([],{t:"range",a:[[]]})};function M8(h,g){var A,S,L;function C(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.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($=fr)return U($,ke)+(J?U(J,1-ke):"")+"Z";var ae,pe,ge,Me,Se=0,xe=0,We,ir,cr,lr,pr,yr,Er,gr,Mr=[];if((Me=(+O.apply(this,arguments)||0)/2)&&(ge=S===lp?Math.sqrt(J*J+$*$):+S.apply(this,arguments),ke||(xe*=-1),$&&(xe=ft(ge/$*Math.sin(Me))),J&&(Se=ft(ge/J*Math.sin(Me)))),$){We=$*Math.cos(re+xe),ir=$*Math.sin(re+xe),cr=$*Math.cos(te-xe),lr=$*Math.sin(te-xe);var at=Math.abs(te-re-2*xe)<=Fe?0:1;if(xe&&sp(We,ir,cr,lr)===ke^at){var Kt=(re+te)/2;We=$*Math.cos(Kt),ir=$*Math.sin(Kt),cr=lr=null}}else We=ir=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 dt=Math.abs(re-te+2*Se)<=Fe?0:1;if(Se&&sp(pr,yr,Er,gr)===1-ke^dt){var ar=(re+te)/2;pr=J*Math.cos(ar),yr=J*Math.sin(ar),Er=gr=null}}else pr=yr=0;if(_e>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){pe=J<$^ke?0:1;var Dr=ae,Pr=ae;if(_e0?0:1}function up(h,g,A,S,L){var C=h[0]-g[0],O=h[1]-g[1],F=(L?S:-S)/Math.sqrt(C*C+O*O),U=F*O,J=-F*C,$=h[0]+U,re=h[1]+J,te=g[0]+U,_e=g[1]+J,ke=($+te)/2,ae=(re+_e)/2,pe=te-$,ge=_e-re,Me=pe*pe+ge*ge,Se=A-S,xe=$*_e-te*re,We=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),ir=(xe*ge-pe*We)/Me,cr=(-xe*pe-ge*We)/Me,lr=(xe*ge+pe*We)/Me,pr=(-xe*pe+ge*We)/Me,yr=ir-ke,Er=cr-ae,gr=lr-ke,Mr=pr-ae;return yr*yr+Er*Er>gr*gr+Mr*Mr&&(ir=lr,cr=pr),[[ir-U,cr-J],[ir*A/Se,cr*A/Se]]}function D8(){return!0}function R8(h){var g=Af,A=Hv,S=D8,L=Xi,C=L.key,O=.7;function F(U){var J=[],$=[],re=-1,te=U.length,_e,ke=Or(g),ae=Or(A);function pe(){J.push("M",L(h($),O))}for(;++re1?h.join("L"):h+"Z"}function P8(h){return h.join("L")+"Z"}function zie(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1&&L.push("H",S[0]),L.join("")}function K3(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1){F=g[1],C=h[U],U++,S+="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*S,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 jie(h){return h.length<3?Xi(h):h[0]+fp(h,Wie(h))}e.svg.line.radial=function(){var h=R8(z8);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function z8(h){for(var g,A=-1,S=h.length,L,C;++AFe)+",1 "+re}function J($,re,te,_e){return"Q 0,0 "+_e}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?(S=Or($),C):S},C.endAngle=function($){return arguments.length?(L=Or($),C):L},C};function Zie(h){return h.radius}e.svg.diagonal=function(){var h=B8,g=H8,A=U8;function S(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 S.source=function(L){return arguments.length?(h=Or(L),S):h},S.target=function(L){return arguments.length?(g=Or(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function U8(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=U8,A=h.projection;return h.projection=function(S){return arguments.length?A(Xie(g=S)):g},h};function Xie(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-sr;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=$ie,g=Jie;function A(S,L){return(V8.get(h.call(this,S,L))||G8)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Or(S),A):h},A.size=function(S){return arguments.length?(g=Or(S),A):g},A};function Jie(){return 64}function $ie(){return"circle"}function G8(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 V8=e.map({circle:G8,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*Y8)),A=g*Y8;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/cp),A=g*cp/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/cp),A=g*cp/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=V8.keys();var cp=Math.sqrt(3),Y8=Math.tan(30*kr);ye.transition=function(h){for(var g=Xs||++j8,A=nb(h),S=[],L,C,O=hp||{time:Date.now(),ease:Lne,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[S]:delete h[A],1}O||(F=L.time,U=$d(te,0,F),O=C[S]={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=Z8,A=6,S=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(),_e=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(_e,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,We=ip(te),ir=$.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));pe.append("line"),pe.append("text");var lr=pe.select("line"),pr=Me.select("line"),yr=ae.select("text").text(ke),Er=pe.select("text"),gr=Me.select("text"),Mr=g==="top"||g==="left"?-1:1,at,Kt,dt,ar;if(g==="bottom"||g==="top"?(xe=eoe,at="x",dt="y",Kt="x2",ar="y2",yr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+We[0]+","+Mr*S+"V0H"+We[1]+"V"+Mr*S)):(xe=roe,at="y",dt="x",Kt="y2",ar="x2",yr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),cr.attr("d","M"+Mr*S+","+We[0]+"H0V"+We[1]+"H"+Mr*S)),lr.attr(ar,Mr*A),Er.attr(dt,Mr*Se),pr.attr(Kt,0).attr(ar,Mr*A),gr.attr(at,0).attr(dt,Mr*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 Qie?J+"":Z8,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,S=+arguments[$-1],U):A},U.innerTickSize=function(J){return arguments.length?(A=+J,U):A},U.outerTickSize=function(J){return arguments.length?(S=+J,U):S},U.tickPadding=function(J){return arguments.length?(L=+J,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var Z8="bottom",Qie={top:1,right:1,bottom:1,left:1};function eoe(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function roe(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=ie($,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],C,O,F=!0,U=!0,J=ib[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(ir){return"resize "+ir}).style("cursor",function(ir){return toe[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-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),We;g&&(We=ip(g),xe.attr("x",We[0]).attr("width",We[1]-We[0]),te(Se)),A&&(We=ip(A),xe.attr("y",We[0]).attr("height",We[1]-We[0]),_e(Se)),re(Se)})}$.event=function(ae){ae.each(function(){var pe=h.of(this,arguments),ge={x:S,y:L,i:C,j:O},Me=this.__chart__||ge;this.__chart__=ge,Xs?e.select(this).transition().each("start.brush",function(){C=Me.i,O=Me.j,S=Me.x,L=Me.y,pe({type:"brushstart"})}).tween("brush:brush",function(){var Se=ap(S,ge.x),xe=ap(L,ge.y);return C=O=null,function(We){S=ge.x=Se(We),L=ge.y=xe(We),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("+S[+/e$/.test(pe)]+","+L[+/^s/.test(pe)]+")"})}function te(ae){ae.select(".extent").attr("x",S[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function _e(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,We=!/^(e|w)$/.test(Se)&&A,ir=pe.classed("extent"),cr=rr(ae),lr,pr=e.mouse(ae),yr,Er=e.select(i(ae)).on("keydown.brush",at).on("keyup.brush",Kt);if(e.event.changedTouches?Er.on("touchmove.brush",dt).on("touchend.brush",Dr):Er.on("mousemove.brush",dt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),ir)pr[0]=S[0]-pr[0],pr[1]=L[0]-pr[1];else if(Se){var gr=+/w$/.test(Se),Mr=+/^n/.test(Se);yr=[S[1-gr]-pr[0],L[1-Mr]-pr[1]],pr[0]=S[gr],pr[1]=L[Mr]}else e.event.altKey&&(lr=pr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",pe.style("cursor")),ge({type:"brushstart"}),dt();function at(){e.event.keyCode==32&&(ir||(lr=null,pr[0]-=S[1],pr[1]-=L[1],ir=2),ee())}function Kt(){e.event.keyCode==32&&ir==2&&(pr[0]+=S[1],pr[1]+=L[1],ir=0,ee())}function dt(){var Pr=e.mouse(ae),nt=!1;yr&&(Pr[0]+=yr[0],Pr[1]+=yr[1]),ir||(e.event.altKey?(lr||(lr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),pr[0]=S[+(Pr[0]{(function(e,r){typeof xp=="object"&&typeof rM!="undefined"?r(xp):(e=e||self,r(e.d3=e.d3||{}))})(xp,function(e){"use strict";var r=new Date,t=new Date;function a(oe,Ae,Xe,hr){function Ne(Te){return oe(Te=arguments.length===0?new Date:new Date(+Te)),Te}return Ne.floor=function(Te){return oe(Te=new Date(+Te)),Te},Ne.ceil=function(Te){return oe(Te=new Date(Te-1)),Ae(Te,1),oe(Te),Te},Ne.round=function(Te){var qe=Ne(Te),He=Ne.ceil(Te);return Te-qe0))return Je;do Je.push(Ve=new Date(+Te)),Ae(Te,He),oe(Te);while(Ve=qe)for(;oe(qe),!Te(qe);)qe.setTime(qe-1)},function(qe,He){if(qe>=qe)if(He<0)for(;++He<=0;)for(;Ae(qe,-1),!Te(qe););else for(;--He>=0;)for(;Ae(qe,1),!Te(qe););})},Xe&&(Ne.count=function(Te,qe){return r.setTime(+Te),t.setTime(+qe),oe(r),oe(t),Math.floor(Xe(r,t))},Ne.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?Ne.filter(hr?function(qe){return hr(qe)%Te===0}:function(qe){return Ne.count(0,qe)%Te===0}):Ne}),Ne}var n=a(function(){},function(oe,Ae){oe.setTime(+oe+Ae)},function(oe,Ae){return Ae-oe});n.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?a(function(Ae){Ae.setTime(Math.floor(Ae/oe)*oe)},function(Ae,Xe){Ae.setTime(+Ae+Xe*oe)},function(Ae,Xe){return(Xe-Ae)/oe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,Ae){oe.setTime(+oe+Ae*o)},function(oe,Ae){return(Ae-oe)/o},function(oe){return oe.getUTCSeconds()}),v=c.range,d=a(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o)},function(oe,Ae){oe.setTime(+oe+Ae*l)},function(oe,Ae){return(Ae-oe)/l},function(oe){return oe.getMinutes()}),p=d.range,y=a(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o-oe.getMinutes()*l)},function(oe,Ae){oe.setTime(+oe+Ae*s)},function(oe,Ae){return(Ae-oe)/s},function(oe){return oe.getHours()}),m=y.range,x=a(function(oe){oe.setHours(0,0,0,0)},function(oe,Ae){oe.setDate(oe.getDate()+Ae)},function(oe,Ae){return(Ae-oe-(Ae.getTimezoneOffset()-oe.getTimezoneOffset())*l)/u},function(oe){return oe.getDate()-1}),T=x.range;function _(oe){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-oe)%7),Ae.setHours(0,0,0,0)},function(Ae,Xe){Ae.setDate(Ae.getDate()+Xe*7)},function(Ae,Xe){return(Xe-Ae-(Xe.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),w=_(1),k=_(2),M=_(3),q=_(4),E=_(5),D=_(6),P=b.range,R=w.range,z=k.range,I=M.range,B=q.range,G=E.range,Y=D.range,V=a(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,Ae){oe.setMonth(oe.getMonth()+Ae)},function(oe,Ae){return Ae.getMonth()-oe.getMonth()+(Ae.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),H=V.range,X=a(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,Ae){oe.setFullYear(oe.getFullYear()+Ae)},function(oe,Ae){return Ae.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});X.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/oe)*oe),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Xe){Ae.setFullYear(Ae.getFullYear()+Xe*oe)})};var j=X.range,ee=a(function(oe){oe.setUTCSeconds(0,0)},function(oe,Ae){oe.setTime(+oe+Ae*l)},function(oe,Ae){return(Ae-oe)/l},function(oe){return oe.getUTCMinutes()}),fe=ee.range,ie=a(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,Ae){oe.setTime(+oe+Ae*s)},function(oe,Ae){return(Ae-oe)/s},function(oe){return oe.getUTCHours()}),ue=ie.range,K=a(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCDate(oe.getUTCDate()+Ae)},function(oe,Ae){return(Ae-oe)/u},function(oe){return oe.getUTCDate()-1}),we=K.range;function se(oe){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-oe)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Xe){Ae.setUTCDate(Ae.getUTCDate()+Xe*7)},function(Ae,Xe){return(Xe-Ae)/f})}var ce=se(0),he=se(1),ye=se(2),W=se(3),Q=se(4),Z=se(5),le=se(6),ve=ce.range,me=he.range,Ce=ye.range,Pe=W.range,Le=Q.range,ze=Z.range,Be=le.range,Ge=a(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCMonth(oe.getUTCMonth()+Ae)},function(oe,Ae){return Ae.getUTCMonth()-oe.getUTCMonth()+(Ae.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),De=Ge.range,Oe=a(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCFullYear(oe.getUTCFullYear()+Ae)},function(oe,Ae){return Ae.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});Oe.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/oe)*oe),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Xe){Ae.setUTCFullYear(Ae.getUTCFullYear()+Xe*oe)})};var Ue=Oe.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=q,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=j,e.utcDay=K,e.utcDays=we,e.utcFriday=Z,e.utcFridays=ze,e.utcHour=ie,e.utcHours=ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=fe,e.utcMonday=he,e.utcMondays=me,e.utcMonth=Ge,e.utcMonths=De,e.utcSaturday=le,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ce,e.utcSundays=ve,e.utcThursday=Q,e.utcThursdays=Le,e.utcTuesday=ye,e.utcTuesdays=Ce,e.utcWednesday=W,e.utcWednesdays=Pe,e.utcWeek=ce,e.utcWeeks=ve,e.utcYear=Oe,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var Ef=N((_p,tM)=>{(function(e,r){typeof _p=="object"&&typeof tM!="undefined"?r(_p,ob()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(_p,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,Re){return{y:ne,m:de,d:Re,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Re=ne.date,Fe=ne.time,Qe=ne.periods,fr=ne.days,sr=ne.shortDays,kr=ne.months,zr=ne.shortMonths,Yr=v(Qe),et=d(Qe),qt=v(fr),ft=d(fr),Ft=v(sr),Tt=d(sr),pa=v(kr),$t=d(kr),sa=v(zr),dr=d(zr),yt={a:il,A:ol,b:ct,B:An,c:null,d:V,e:V,f:fe,H,I:X,j,L:ee,m:ie,M:ue,p:It,q:Ys,Q:qe,s:He,S:K,u:we,U:se,V:ce,w:he,W:ye,x:null,X:null,y:W,Y:Q,Z,"%":Te},Zr={a:yn,A:Wi,b:Zt,B:ji,c:null,d:le,e:le,f:Le,H:ve,I:me,j:Ce,L:Pe,m:ze,M:Be,p:Bl,q:Hl,Q:qe,s:He,S:Ge,u:De,U:Oe,V:Ue,w:oe,W:Ae,x:null,X:null,y:Xe,Y:hr,Z:Ne,"%":Te},$r={a:rn,A:jt,b:dn,B:pn,c:Nt,d:q,e:q,f:I,H:D,I:D,j:E,L:z,m:M,M:P,p:Bt,q:k,Q:G,s:Y,S:R,u:y,U:m,V:x,w:p,W:T,x:Ct,X:wa,y:b,Y:_,Z:w,"%":B};yt.x=mt(Re,yt),yt.X=mt(Fe,yt),yt.c=mt(de,yt),Zr.x=mt(Re,Zr),Zr.X=mt(Fe,Zr),Zr.c=mt(de,Zr);function mt(mr,Kr){return function(vt){var ur=[],Fa=-1,At=0,Na=mr.length,Or,Zi,Ws;for(vt instanceof Date||(vt=new Date(+vt));++Fa53)return null;"w"in ur||(ur.w=1),"Z"in ur?(At=a(n(ur.y,0,1)),Na=At.getUTCDay(),At=Na>4||Na===0?r.utcMonday.ceil(At):r.utcMonday(At),At=r.utcDay.offset(At,(ur.V-1)*7),ur.y=At.getUTCFullYear(),ur.m=At.getUTCMonth(),ur.d=At.getUTCDate()+(ur.w+6)%7):(At=t(n(ur.y,0,1)),Na=At.getDay(),At=Na>4||Na===0?r.timeMonday.ceil(At):r.timeMonday(At),At=r.timeDay.offset(At,(ur.V-1)*7),ur.y=At.getFullYear(),ur.m=At.getMonth(),ur.d=At.getDate()+(ur.w+6)%7)}else("W"in ur||"U"in ur)&&("w"in ur||(ur.w="u"in ur?ur.u%7:"W"in ur?1:0),Na="Z"in ur?a(n(ur.y,0,1)).getUTCDay():t(n(ur.y,0,1)).getDay(),ur.m=0,ur.d="W"in ur?(ur.w+6)%7+ur.W*7-(Na+5)%7:ur.w+ur.U*7-(Na+6)%7);return"Z"in ur?(ur.H+=ur.Z/100|0,ur.M+=ur.Z%100,a(ur)):t(ur)}}function Gr(mr,Kr,vt,ur){for(var Fa=0,At=Kr.length,Na=vt.length,Or,Zi;Fa=Na)return-1;if(Or=Kr.charCodeAt(Fa++),Or===37){if(Or=Kr.charAt(Fa++),Zi=$r[Or in o?Kr.charAt(Fa++):Or],!Zi||(ur=Zi(mr,vt,ur))<0)return-1}else if(Or!=vt.charCodeAt(ur++))return-1}return ur}function Bt(mr,Kr,vt){var ur=Yr.exec(Kr.slice(vt));return ur?(mr.p=et[ur[0].toLowerCase()],vt+ur[0].length):-1}function rn(mr,Kr,vt){var ur=Ft.exec(Kr.slice(vt));return ur?(mr.w=Tt[ur[0].toLowerCase()],vt+ur[0].length):-1}function jt(mr,Kr,vt){var ur=qt.exec(Kr.slice(vt));return ur?(mr.w=ft[ur[0].toLowerCase()],vt+ur[0].length):-1}function dn(mr,Kr,vt){var ur=sa.exec(Kr.slice(vt));return ur?(mr.m=dr[ur[0].toLowerCase()],vt+ur[0].length):-1}function pn(mr,Kr,vt){var ur=pa.exec(Kr.slice(vt));return ur?(mr.m=$t[ur[0].toLowerCase()],vt+ur[0].length):-1}function Nt(mr,Kr,vt){return Gr(mr,de,Kr,vt)}function Ct(mr,Kr,vt){return Gr(mr,Re,Kr,vt)}function wa(mr,Kr,vt){return Gr(mr,Fe,Kr,vt)}function il(mr){return sr[mr.getDay()]}function ol(mr){return fr[mr.getDay()]}function ct(mr){return zr[mr.getMonth()]}function An(mr){return kr[mr.getMonth()]}function It(mr){return Qe[+(mr.getHours()>=12)]}function Ys(mr){return 1+~~(mr.getMonth()/3)}function yn(mr){return sr[mr.getUTCDay()]}function Wi(mr){return fr[mr.getUTCDay()]}function Zt(mr){return zr[mr.getUTCMonth()]}function ji(mr){return kr[mr.getUTCMonth()]}function Bl(mr){return Qe[+(mr.getUTCHours()>=12)]}function Hl(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Kr=mt(mr+="",yt);return Kr.toString=function(){return mr},Kr},parse:function(mr){var Kr=Lt(mr+="",!1);return Kr.toString=function(){return mr},Kr},utcFormat:function(mr){var Kr=mt(mr+="",Zr);return Kr.toString=function(){return mr},Kr},utcParse:function(mr){var Kr=Lt(mr+="",!0);return Kr.toString=function(){return mr},Kr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Re){var Fe=ne<0?"-":"",Qe=(Fe?-ne:ne)+"",fr=Qe.length;return Fe+(fr68?1900:2e3),Re+Fe[0].length):-1}function w(ne,de,Re){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Re,Re+6));return Fe?(ne.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Re+Fe[0].length):-1}function k(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+1));return Fe?(ne.q=Fe[0]*3-3,Re+Fe[0].length):-1}function M(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.m=Fe[0]-1,Re+Fe[0].length):-1}function q(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.d=+Fe[0],Re+Fe[0].length):-1}function E(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+3));return Fe?(ne.m=0,ne.d=+Fe[0],Re+Fe[0].length):-1}function D(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.H=+Fe[0],Re+Fe[0].length):-1}function P(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.M=+Fe[0],Re+Fe[0].length):-1}function R(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.S=+Fe[0],Re+Fe[0].length):-1}function z(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+3));return Fe?(ne.L=+Fe[0],Re+Fe[0].length):-1}function I(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+6));return Fe?(ne.L=Math.floor(Fe[0]/1e3),Re+Fe[0].length):-1}function B(ne,de,Re){var Fe=s.exec(de.slice(Re,Re+1));return Fe?Re+Fe[0].length:-1}function G(ne,de,Re){var Fe=l.exec(de.slice(Re));return Fe?(ne.Q=+Fe[0],Re+Fe[0].length):-1}function Y(ne,de,Re){var Fe=l.exec(de.slice(Re));return Fe?(ne.s=+Fe[0],Re+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 j(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 fe(ne,de){return ee(ne,de)+"000"}function ie(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 we(ne){var de=ne.getDay();return de===0?7:de}function se(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ce(ne,de){var Re=ne.getDay();return ne=Re>=4||Re===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function he(ne){return ne.getDay()}function ye(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function W(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 le(ne,de){return f(ne.getUTCDate(),de,2)}function ve(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Ce(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function Pe(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Le(ne,de){return Pe(ne,de)+"000"}function ze(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Be(ne,de){return f(ne.getUTCMinutes(),de,2)}function Ge(ne,de){return f(ne.getUTCSeconds(),de,2)}function De(ne){var de=ne.getUTCDay();return de===0?7:de}function Oe(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Ue(ne,de){var Re=ne.getUTCDay();return ne=Re>=4||Re===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function oe(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function Xe(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function hr(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function Ne(){return"+0000"}function Te(){return"%"}function qe(ne){return+ne}function He(ne){return Math.floor(+ne/1e3)}var Je;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 Je=i(ne),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Ze="%Y-%m-%dT%H:%M:%S.%LZ";function or(ne){return ne.toISOString()}var rr=Date.prototype.toISOString?or:e.utcFormat(Ze);function Ke(ne){var de=new Date(ne);return isNaN(de)?null:de}var Ie=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Ze);e.isoFormat=rr,e.isoParse=Ie,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var lb=N((wp,aM)=>{(function(e,r){typeof wp=="object"&&typeof aM!="undefined"?r(wp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(wp,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,q){if((E=(M=q?M.toExponential(q-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,q){return function(E,D){for(var P=E.length,R=[],z=0,I=M[0],B=0;P>0&&I>0&&(B+I+1>D&&(I=Math.max(1,D-B)),R.push(E.substring(P-=I,P+I)),!((B+=I+1)>D));)I=M[z=(z+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);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]})}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 q=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,q){var E=t(M,q);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,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var E=t(M,q);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,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},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 q=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)),z=M.percent===void 0?"%":M.percent+"",I=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,j=V.sign,ee=V.symbol,fe=V.zero,ie=V.width,ue=V.comma,K=V.precision,we=V.trim,se=V.type;se==="n"?(ue=!0,se="g"):d[se]||(K===void 0&&(K=12),we=!0,se="g"),(fe||H==="0"&&X==="=")&&(fe=!0,H="0",X="=");var ce=ee==="$"?E:ee==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",he=ee==="$"?D:/[%p]/.test(se)?z:"",ye=d[se],W=/[defgprs%]/.test(se);K=K===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(Z){var le=ce,ve=he,me,Ce,Pe;if(se==="c")ve=ye(Z)+ve,Z="";else{Z=+Z;var Le=Z<0||1/Z<0;if(Z=isNaN(Z)?B:ye(Math.abs(Z),K),we&&(Z=u(Z)),Le&&+Z==0&&j!=="+"&&(Le=!1),le=(Le?j==="("?j:I:j==="-"||j==="("?"":j)+le,ve=(se==="s"?m[8+f/3]:"")+ve+(Le&&j==="("?")":""),W){for(me=-1,Ce=Z.length;++mePe||Pe>57){ve=(Pe===46?P+Z.slice(me+1):Z.slice(me))+ve,Z=Z.slice(0,me);break}}}ue&&!fe&&(Z=q(Z,1/0));var ze=le.length+Z.length+ve.length,Be=ze>1)+le+Z+ve+Be.slice(ze);break;default:Z=Be+le+Z+ve;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)),j=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ee=Math.pow(10,-j),fe=m[8+j/3];return function(ie){return X(ee*ie)+fe}}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,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-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 iM=N((ECe,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 Rr=N((DCe,oM)=>{"use strict";var coe=iM();oM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&coe(t))return!1}else if(r!=="number")return!1;return e-e<1}});var zt=N((RCe,lM)=>{"use strict";lM.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 sb=N((Tp,sM)=>{(function(e,r){typeof Tp=="object"&&typeof sM!="undefined"?r(Tp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Tp,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((PCe,uM)=>{"use strict";uM.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 Vn=N($i=>{"use strict";var voe=sb().decode,hoe=Vl(),ub=Array.isArray,doe=ArrayBuffer,poe=DataView;function fM(e){return doe.isView(e)&&!(e instanceof poe)}$i.isTypedArray=fM;function Ap(e){return ub(e)||fM(e)}$i.isArrayOrTypedArray=Ap;function yoe(e){return!Ap(e[0])}$i.isArray1D=yoe;$i.ensureArray=function(e,r){return ub(e)||(e=[]),e.length=r,e};var Ea={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};Ea.uint8c=Ea.u1c;Ea.uint8=Ea.u1;Ea.int8=Ea.i1;Ea.uint16=Ea.u2;Ea.int16=Ea.i2;Ea.uint32=Ea.u4;Ea.int32=Ea.i4;Ea.float32=Ea.f4;Ea.float64=Ea.f8;function fb(e){return e.constructor===ArrayBuffer}$i.isArrayBuffer=fb;$i.decodeTypedArraySpec=function(e){var r=[],t=moe(e),a=t.dtype,n=Ea[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;fb(o)||(o=voe(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 vM=Rr(),vb=Vn().isArrayOrTypedArray;yM.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 Df=Mp(),woe=/^\w*$/,Toe=0,mM=1,kp=2,gM=3,Qs=4;bM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Df(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|kp,c.set(v,null);if(f){for(i=d;i{"use strict";var Aoe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Moe=/^[^\.\[\]]+$/;_M.exports=function(e,r){for(;r;){var t=e.match(Aoe);if(t)e=t[1];else if(e.match(Moe))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 Sp=N((OCe,TM)=>{"use strict";var koe=Rr();TM.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 koe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var kM=N((BCe,MM)=>{"use strict";var AM=Vn().isArrayOrTypedArray,Jv=Vl();MM.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(AM(n)&&AM(i)&&Jv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function Soe(e,r){var t=e%r;return t<0?t+r:t}function qoe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}SM.exports={mod:Soe,modHalf:qoe}});var Sn=N((UCe,qp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=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,le,ve,me,Ce;return Q=W.r/255,Z=W.g/255,le=W.b/255,Q<=.03928?ve=Q/12.92:ve=e.pow((Q+.055)/1.055,2.4),Z<=.03928?me=Z/12.92:me=e.pow((Z+.055)/1.055,2.4),le<=.03928?Ce=le/12.92:Ce=e.pow((le+.055)/1.055,2.4),.2126*ve+.7152*me+.0722*Ce},setAlpha:function(W){return this._a=V(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),le=n(W.v*100);return this._a==1?"hsv("+Q+", "+Z+"%, "+le+"%)":"hsva("+Q+", "+Z+"%, "+le+"%, "+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),le=n(W.l*100);return this._a==1?"hsl("+Q+", "+Z+"%, "+le+"%)":"hsla("+Q+", "+Z+"%, "+le+"%, "+this._roundA+")"},toHex:function(W){return y(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return m(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(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(W){var Q="#"+x(this._r,this._g,this._b,this._a),Z=Q,le=this._gradientType?"GradientType = 1, ":"";if(W){var ve=s(W);Z="#"+x(ve._r,ve._g,ve._b,ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+Q+",endColorstr="+Z+")"},toString:function(W){var Q=!!W;W=W||this._format;var Z=!1,le=this._a<1&&this._a>=0,ve=!Q&&le&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return ve?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(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(q,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,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(W,Q){if(typeof W=="object"){var Z={};for(var le in W)W.hasOwnProperty(le)&&(le==="a"?Z[le]=W[le]:Z[le]=ue(W[le]));W=Z}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},Z=1,le=null,ve=null,me=null,Ce=!1,Pe=!1;return typeof W=="string"&&(W=he(W)),typeof W=="object"&&(ce(W.r)&&ce(W.g)&&ce(W.b)?(Q=f(W.r,W.g,W.b),Ce=!0,Pe=String(W.r).substr(-1)==="%"?"prgb":"rgb"):ce(W.h)&&ce(W.s)&&ce(W.v)?(le=ue(W.s),ve=ue(W.v),Q=p(W.h,le,ve),Ce=!0,Pe="hsv"):ce(W.h)&&ce(W.s)&&ce(W.l)&&(le=ue(W.s),me=ue(W.l),Q=v(W.h,le,me),Ce=!0,Pe="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=V(Z),{ok:Ce,format:W.format||Pe,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(W,Q,Z){return{r:H(W,255)*255,g:H(Q,255)*255,b:H(Z,255)*255}}function c(W,Q,Z){W=H(W,255),Q=H(Q,255),Z=H(Z,255);var le=o(W,Q,Z),ve=i(W,Q,Z),me,Ce,Pe=(le+ve)/2;if(le==ve)me=Ce=0;else{var Le=le-ve;switch(Ce=Pe>.5?Le/(2-le-ve):Le/(le+ve),le){case W:me=(Q-Z)/Le+(Q1&&(Ge-=1),Ge<1/6?ze+(Be-ze)*6*Ge:Ge<1/2?Be:Ge<2/3?ze+(Be-ze)*(2/3-Ge)*6:ze}if(Q===0)le=ve=me=Z;else{var Pe=Z<.5?Z*(1+Q):Z+Q-Z*Q,Le=2*Z-Pe;le=Ce(Le,Pe,W+1/3),ve=Ce(Le,Pe,W),me=Ce(Le,Pe,W-1/3)}return{r:le*255,g:ve*255,b:me*255}}function d(W,Q,Z){W=H(W,255),Q=H(Q,255),Z=H(Z,255);var le=o(W,Q,Z),ve=i(W,Q,Z),me,Ce,Pe=le,Le=le-ve;if(Ce=le===0?0:Le/le,le==ve)me=0;else{switch(le){case W:me=(Q-Z)/Le+(Q>1)+720)%360;--Q;)le.h=(le.h+ve)%360,me.push(s(le));return me}function I(W,Q){Q=Q||6;for(var Z=s(W).toHsv(),le=Z.h,ve=Z.s,me=Z.v,Ce=[],Pe=1/Q;Q--;)Ce.push(s({h:le,s:ve,v:me})),me=(me+Pe)%1;return Ce}s.mix=function(W,Q,Z){Z=Z===0?0:Z||50;var le=s(W).toRgb(),ve=s(Q).toRgb(),me=Z/100,Ce={r:(ve.r-le.r)*me+le.r,g:(ve.g-le.g)*me+le.g,b:(ve.b-le.b)*me+le.b,a:(ve.a-le.a)*me+le.a};return s(Ce)},s.readability=function(W,Q){var Z=s(W),le=s(Q);return(e.max(Z.getLuminance(),le.getLuminance())+.05)/(e.min(Z.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(W,Q,Z){var le=s.readability(W,Q),ve,me;switch(me=!1,ve=ye(Z),ve.level+ve.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(W,Q,Z){var le=null,ve=0,me,Ce,Pe,Le;Z=Z||{},Ce=Z.includeFallbackColors,Pe=Z.level,Le=Z.size;for(var ze=0;zeve&&(ve=me,le=s(Q[ze]));return s.isReadable(W,le,{level:Pe,size:Le})||!Ce?le:(Z.includeFallbackColors=!1,s.mostReadable(W,["#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(W){var Q={};for(var Z in W)W.hasOwnProperty(Z)&&(Q[W[Z]]=Z);return Q}function V(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function H(W,Q){ee(W)&&(W="100%");var Z=fe(W);return W=i(Q,o(0,parseFloat(W))),Z&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function X(W){return i(1,o(0,W))}function j(W){return parseInt(W,16)}function ee(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function fe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ie(W){return W.length==1?"0"+W:""+W}function ue(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function we(W){return j(W)/255}var se=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+Q+")|(?:"+W+")",le="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",ve="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ve),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 ce(W){return!!se.CSS_UNIT.exec(W)}function he(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[W])W=B[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=se.rgb.exec(W))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=se.rgba.exec(W))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=se.hsl.exec(W))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=se.hsla.exec(W))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=se.hsv.exec(W))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=se.hsva.exec(W))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=se.hex8.exec(W))?{r:j(Z[1]),g:j(Z[2]),b:j(Z[3]),a:we(Z[4]),format:Q?"name":"hex8"}:(Z=se.hex6.exec(W))?{r:j(Z[1]),g:j(Z[2]),b:j(Z[3]),format:Q?"name":"hex"}:(Z=se.hex4.exec(W))?{r:j(Z[1]+""+Z[1]),g:j(Z[2]+""+Z[2]),b:j(Z[3]+""+Z[3]),a:we(Z[4]+""+Z[4]),format:Q?"name":"hex8"}:(Z=se.hex3.exec(W))?{r:j(Z[1]+""+Z[1]),g:j(Z[2]+""+Z[2]),b:j(Z[3]+""+Z[3]),format:Q?"name":"hex"}:!1}function ye(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 qp!="undefined"&&qp.exports?qp.exports=s:window.tinycolor=s})(Math)});var bt=N(Qv=>{"use strict";var qM=Vl(),$v=Array.isArray;function Loe(e,r){var t,a;for(t=0;t{"use strict";LM.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 eh=N((YCe,CM)=>{"use strict";CM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Pf=N((WCe,RM)=>{"use strict";var EM=eh(),DM=ga(),hb=DM({editType:"none"});hb.family.dflt=EM.HOVERFONT;hb.size.dflt=EM.HOVERFONTSIZE;RM.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:DM({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((jCe,PM)=>{"use strict";var Coe=ga(),rh=Pf().hoverlabel,th=bt().extendFlat;PM.exports={hoverlabel:{bgcolor:th({},rh.bgcolor,{arrayOk:!0}),bordercolor:th({},rh.bordercolor,{arrayOk:!0}),font:Coe({arrayOk:!0,editType:"none"}),align:th({},rh.align,{arrayOk:!0}),namelength:th({},rh.namelength,{arrayOk:!0}),showarrow:th({},rh.showarrow),editType:"none"}}});var gn=N((ZCe,FM)=>{"use strict";var Eoe=ga(),Doe=Lp();FM.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:Eoe({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:Doe.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 eu=N((XCe,zM)=>{"use strict";var Roe=Sn(),Cp={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)"]]},NM=Cp.RdBu;function Poe(e,r){if(r||(r=NM),!e)return r;function t(){try{e=Cp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),IM(e)?e:r}function IM(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";ru.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ru.defaultLine="#444";ru.lightLine="#eee";ru.background="#fff";ru.borderLine="#BEC8D9";ru.lightFraction=100*10/11});var Tr=N(($Ce,OM)=>{"use strict";var qn=Sn(),Noe=Rr(),Ioe=Vn().isTypedArray,Ta=OM.exports={},Ep=ui();Ta.defaults=Ep.defaults;var zoe=Ta.defaultLine=Ep.defaultLine;Ta.lightLine=Ep.lightLine;var pb=Ta.background=Ep.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(qn(e))};Ta.opacity=function(e){return e?qn(e).getAlpha():0};Ta.addOpacity=function(e,r){var t=qn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Ta.combine=function(e,r){var t=qn(e).toRgb();if(t.a===1)return qn(e).toRgbString();var a=qn(r||pb).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 qn(i).toRgbString()};Ta.interpolate=function(e,r,t){var a=qn(e).toRgb(),n=qn(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 qn(i).toRgbString()};Ta.contrast=function(e,r,t){var a=qn(e);a.getAlpha()!==1&&(a=qn(Ta.combine(e,pb)));var n=a.isDark()?r?a.lighten(r):pb:t?a.darken(t):zoe;return n.toString()};Ta.stroke=function(e,r){var t=qn(r);e.style({stroke:Ta.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Ta.fill=function(e,r){var t=qn(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 Dp=N((KCe,BM)=>{"use strict";BM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Ff=N(HM=>{"use strict";HM.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 YM=N(Ln=>{"use strict";var yb=Rr(),UM=Sn(),GM=bt().extendFlat,Ooe=gn(),Boe=eu(),Hoe=Tr(),Uoe=Dp().DESELECTDIM,Nf=Mp(),VM=Ff().counter,Goe=Rf().modHalf,Ki=Vn().isArrayOrTypedArray,Yl=Vn().isTypedArraySpec,Wl=Vn().decodeTypedArraySpec;Ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ki(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)),!yb(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||!yb(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)),UM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return UM(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(Boe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),e==="auto"?r.set("auto"):yb(e)?r.set(Goe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||VM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Ki(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:!!VM(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 WM={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},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:{}}},jM={};function ZM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),ZM(a,r[t]))}}ZM(WM,jM);XM.exports={configAttributes:WM,dfltConfig:jM}});var gb=N((tEe,JM)=>{"use strict";var mb=Sr(),Voe=Rr(),ah=[];JM.exports=function(e,r){if(ah.indexOf(e)!==-1)return;ah.push(e);var t=1e3;Voe(r)?t=r:r==="long"&&(t=3e3);var a=mb.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(ah);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=ah.indexOf(l);s!==-1&&ah.splice(s,1),mb.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=mb.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var If=tu().dfltConfig,bb=gb(),xb=$M.exports={};xb.log=function(){var e;if(If.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xb.warn=function(){var e;if(If.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xb.error=function(){var e;if(If.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Pp=N((nEe,KM)=>{"use strict";KM.exports=function(){}});var _b=N((iEe,QM)=>{"use strict";QM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{e9.exports=Yoe;function Yoe(){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 a9=N((lEe,t9)=>{t9.exports=Woe;function Woe(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 i9=N((sEe,n9)=>{n9.exports=joe;function joe(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 wb=N((uEe,o9)=>{o9.exports=Zoe;function Zoe(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 s9=N((fEe,l9)=>{l9.exports=Xoe;function Xoe(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 f9=N((cEe,u9)=>{u9.exports=Joe;function Joe(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,q=f*y-c*p,E=f*m-v*p,D=f*x-d*p,P=c*m-v*y,R=c*x-d*y,z=v*x-d*m,I=T*z-_*R+b*P+w*D-k*E+M*q;return I?(I=1/I,e[0]=(l*z-s*R+u*P)*I,e[1]=(n*R-a*z-i*P)*I,e[2]=(y*M-m*k+x*w)*I,e[3]=(v*k-c*M-d*w)*I,e[4]=(s*D-o*z-u*E)*I,e[5]=(t*z-n*D+i*E)*I,e[6]=(m*b-p*M-x*_)*I,e[7]=(f*M-v*b+d*_)*I,e[8]=(o*R-l*D+u*q)*I,e[9]=(a*D-t*R-i*q)*I,e[10]=(p*k-y*b+x*T)*I,e[11]=(c*b-f*k-d*T)*I,e[12]=(l*E-o*P-s*q)*I,e[13]=(t*P-a*E+n*q)*I,e[14]=(y*_-p*w-m*T)*I,e[15]=(f*w-c*_+v*T)*I,e):null}});var v9=N((vEe,c9)=>{c9.exports=$oe;function $oe(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 d9=N((hEe,h9)=>{h9.exports=Koe;function Koe(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,q=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*q+k*M}});var y9=N((dEe,p9)=>{p9.exports=Qoe;function Qoe(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 g9=N((pEe,m9)=>{m9.exports=ele;function ele(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 x9=N((yEe,b9)=>{b9.exports=rle;function rle(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 w9=N((mEe,_9)=>{_9.exports=tle;function tle(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,q,E,D,P,R,z,I,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,q=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,z=n*o*f+i*s,I=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+y*q+_*E,e[1]=v*M+m*q+b*E,e[2]=d*M+x*q+w*E,e[3]=p*M+T*q+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*z+y*I+_*B,e[9]=v*z+m*I+b*B,e[10]=d*z+x*I+w*B,e[11]=p*z+T*I+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var A9=N((gEe,T9)=>{T9.exports=ale;function ale(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 k9=N((bEe,M9)=>{M9.exports=nle;function nle(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 q9=N((xEe,S9)=>{S9.exports=ile;function ile(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 C9=N((_Ee,L9)=>{L9.exports=ole;function ole(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 D9=N((wEe,E9)=>{E9.exports=lle;function lle(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 P9=N((TEe,R9)=>{R9.exports=sle;function sle(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 N9=N((AEe,F9)=>{F9.exports=ule;function ule(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 z9=N((MEe,I9)=>{I9.exports=fle;function fle(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 B9=N((kEe,O9)=>{O9.exports=cle;function cle(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 U9=N((SEe,H9)=>{H9.exports=vle;function vle(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 V9=N((qEe,G9)=>{G9.exports=hle;function hle(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 W9=N((LEe,Y9)=>{Y9.exports=dle;function dle(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 Z9=N((CEe,j9)=>{j9.exports=ple;function ple(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 J9=N((EEe,X9)=>{X9.exports=yle;function yle(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 K9=N((DEe,$9)=>{$9.exports=mle;function mle(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 ek=N((REe,Q9)=>{var gle=wb();Q9.exports=ble;function ble(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?gle(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 tk=N((PEe,rk)=>{rk.exports=xle;function xle(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 Tb=N((FEe,ak)=>{ak.exports={create:r9(),clone:a9(),copy:i9(),identity:wb(),transpose:s9(),invert:f9(),adjoint:v9(),determinant:d9(),multiply:y9(),translate:g9(),scale:x9(),rotate:w9(),rotateX:A9(),rotateY:k9(),rotateZ:q9(),fromRotation:C9(),fromRotationTranslation:D9(),fromScaling:P9(),fromTranslation:N9(),fromXRotation:z9(),fromYRotation:B9(),fromZRotation:U9(),fromQuat:V9(),frustum:W9(),perspective:Z9(),perspectiveFromFieldOfView:J9(),ortho:K9(),lookAt:ek(),str:tk()}});var Fp=N(Qt=>{"use strict";var _le=Tb();Qt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var wle=Sr(),nk=au(),Tle=Fp(),Ale=Tb();function Mle(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 kle(e){var r=wle.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function ik(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Sle(e,r){ok("global",e,r)}function ok(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):nk.warn("addStyleRule failed"):nk.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function qle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ik(t)}function Lle(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 Cle(e){var r=sk(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=lk(a);if(n){var i=Tle.convertCssMatrix(n);t=Ale.multiply(t,t,i)}}),t}function lk(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 sk(e){for(var r=[];Ele(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Ele(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Dle(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}uk.exports={getGraphDiv:Mle,isPlotDiv:kle,removeElement:ik,addStyleRule:Sle,addRelatedStyleRule:ok,deleteRelatedStyleRule:qle,setStyleOnHover:Lle,getFullTransformMatrix:Cle,getElementTransformMatrix:lk,getElementAndAncestors:sk,equalDomRects:Dle}});var ih=N((zEe,fk)=>{"use strict";fk.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 Qi=N((OEe,mk)=>{"use strict";var vk=bt().extendFlat,Rle=Vl(),hk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},dk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Ple=hk.flags.slice().concat(["fullReplot"]),Fle=dk.flags.slice().concat("layoutReplot");mk.exports={traces:hk,layout:dk,traceFlags:function(){return ck(Ple)},layoutFlags:function(){return ck(Fle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Ab.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Ab.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 Mb=N((HEe,gk)=>{"use strict";gk.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 Yn=N(zf=>{"use strict";var{DATE_FORMAT_LINK:Nle,FORMAT_LINK:Ile}=Mb(),zle=["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 Ole({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}".`,Ile,"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}".`,Nle,"for details on the date formatting syntax.",zle].join(" ")}zf.templateFormatStringDescription=Ole;zf.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Ks({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});zf.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Ks({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});zf.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});zf.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zp=N((VEe,Ak)=>{"use strict";function jl(e,r){return r?r.d2l(e):e}function bk(e,r){return r?r.l2d(e):e}function Ble(e){return e.x0}function Hle(e){return e.x1}function Ule(e){return e.y0}function Gle(e){return e.y1}function xk(e){return e.x0shift||0}function _k(e){return e.x1shift||0}function wk(e){return e.y0shift||0}function Tk(e){return e.y1shift||0}function Np(e,r){return jl(e.x1,r)+_k(e)-jl(e.x0,r)-xk(e)}function Ip(e,r,t){return jl(e.y1,t)+Tk(e)-jl(e.y0,t)-wk(e)}function Vle(e,r){return Math.abs(Np(e,r))}function Yle(e,r,t){return Math.abs(Ip(e,r,t))}function Wle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Np(e,r),2)+Math.pow(Ip(e,r,t),2))}function jle(e,r){return bk((jl(e.x1,r)+_k(e)+jl(e.x0,r)+xk(e))/2,r)}function Zle(e,r,t){return bk((jl(e.y1,t)+Tk(e)+jl(e.y0,t)+wk(e))/2,t)}function Xle(e,r,t){return e.type!=="line"?void 0:Ip(e,r,t)/Np(e,r)}var Jle=["x0","x1","y0","y1","dy","height","ycenter"],$le=["x0","x1","y0","y1","dx","width","xcenter"];Ak.exports={x0:Ble,x1:Hle,y0:Ule,y1:Gle,slope:Xle,dx:Np,dy:Ip,width:Vle,height:Yle,length:Wle,xcenter:jle,ycenter:Zle,simpleXVariables:Jle,simpleYVariables:$le}});var Sk=N((YEe,kk)=>{"use strict";var Kle=Qi().overrideAll,nu=gn(),Mk=ga(),Qle=fi().dash,Zl=bt().extendFlat,{shapeTexttemplateAttrs:ese,templatefallbackAttrs:rse}=Yn(),tse=zp();kk.exports=Kle({newshape:{visible:Zl({},nu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Zl({},nu.legend,{}),legendgroup:Zl({},nu.legendgroup,{}),legendgrouptitle:{text:Zl({},nu.legendgrouptitle.text,{}),font:Mk({})},legendrank:Zl({},nu.legendrank,{}),legendwidth:Zl({},nu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Zl({},Qle,{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({},nu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:ese({newshape:!0},{keys:Object.keys(tse)}),texttemplatefallback:rse({editType:"arraydraw"}),font:Mk({}),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((WEe,qk)=>{"use strict";var ase=fi().dash,nse=bt().extendFlat;qk.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:nse({},ase,{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 Op=N((jEe,Ck)=>{"use strict";Ck.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 Of=N((ZEe,Pk)=>{"use strict";var kb=ga(),ise=ih(),Bp=ui(),Ek=Sk(),Dk=Lk(),ose=Op(),Rk=bt().extendFlat,Hp=kb({editType:"calc"});Hp.family.dflt='"Open Sans", verdana, arial, sans-serif';Hp.size.dflt=12;Hp.color.dflt=Bp.defaultLine;Pk.exports={font:Hp,title:{text:{valType:"string",editType:"layoutstyle"},font:kb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:kb({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:Rk(ose({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:Bp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Bp.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:Bp.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:Ek.newshape,activeshape:Ek.activeshape,newselection:Dk.newselection,activeselection:Dk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Rk({},ise.transition,{editType:"none"})}});var Fk=N(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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 Bf=au(),Nk=Pp(),Ik=_b(),lse=Vl(),sse=nh().addStyleRule,zk=bt(),use=gn(),fse=Of(),cse=zk.extendFlat,Sb=zk.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 mse=Ef().timeFormat,Xk=Rr(),qb=au(),Jl=Rf().mod,Gf=zt(),ci=Gf.BADNUM,Cn=Gf.ONEDAY,oh=Gf.ONEHOUR,Xl=Gf.ONEMIN,Uf=Gf.ONESEC,lh=Gf.EPOCHJD,sl=br(),Gk=Ef().utcFormat,gse=/^\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,bse=/^\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,Vk=new Date().getFullYear()-70;function ul(e){return e&&sl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ea.dateTick0=function(e,r){var t=xse(e,!!r);if(r<2)return t;var a=ea.dateTime2ms(t,e);return a+=Cn*(r-1),ea.ms2DateTime(a,0,e)};function xse(e,r){return ul(e)?r?sl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:sl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ea.dfltRange=function(e){return ul(e)?sl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ea.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Gp,Vp;ea.dateTime2ms=function(e,r){if(ea.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*Uf+(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>=Gp&&e<=Vp?e:ci}if(typeof e!="string"&&typeof e!="number")return ci;e=String(e);var i=ul(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?bse:gse);if(!s)return ci;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 ci;u=Number(u);var y;try{var m=sl.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 ci}return y?(y.toJD()-lh)*Cn+v*oh+d*Xl+p*Uf:ci}u.length===2?u=(Number(u)+2e3-Vk)%100+Vk: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?ci:T.getTime()+p*Uf};Gp=ea.MIN_MS=ea.dateTime2ms("-9999");Vp=ea.MAX_MS=ea.dateTime2ms("9999-12-31 23:59:59.9999");ea.isDateTime=function(e,r){return ea.dateTime2ms(e,r)!==ci};function Hf(e,r){return String(e+Math.pow(10,r)).slice(1)}var Up=90*Cn,Yk=3*oh,Wk=5*Xl;ea.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Gp&&e<=Vp))return ci;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(ul(t)){var c=Math.floor(n/Cn)+lh,v=Math.floor(Jl(e,Cn));try{i=sl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Gk("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=Gp+Cn&&e<=Vp-Cn))return ci;var r=Math.floor(Jl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=mse("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Jk(a,n,i,o,l)};function Jk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Hf(r,2)+":"+Hf(t,2),(a||n)&&(e+=":"+Hf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Hf(n,i)}return e}ea.cleanDate=function(e,r,t){if(e===ci)return r;if(ea.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ul(t))return qb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ea.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ea.isDateTime(e,t))return qb.error("unrecognized date",e),r;return e};var _se=/%\d?f/g,wse=/%h/g,Tse={1:"1",2:"1",3:"2",4:"2"};function jk(e,r,t,a){e=e.replace(_se,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(wse,function(){return Tse[t("%q")(n)]}),ul(a))try{e=sl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Ase=[59,59.9,59.99,59.999,59.9999];function Mse(e,r){var t=Jl(e+.05,Cn),a=Hf(Math.floor(t/oh),2)+":"+Hf(Jl(Math.floor(t/Xl),60),2);if(r!=="M"){Xk(r)||(r=0);var n=Math.min(Jl(e/Uf,60),Ase[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ea.formatDate=function(e,r,t,a,n,i){if(n=ul(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`)};function F(J){return J.map(U).join(h)}function U(J){return A.test(J)?'"'+J.replace(/\"/g,'""')+'"':J}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Zd,Xd,Jd,$d,FA=this[Y(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){Kd.apply(this,arguments)};function Kd(h,g,A){var S=arguments.length;S<2&&(g=0),S<3&&(A=Date.now());var L=A+g,C={c:h,t:L,n:null};return Xd?Xd.n=C:Zd=C,Xd=C,Jd||($d=clearTimeout($d),Jd=1,FA(D3)),C}function D3(){var h=NA(),g=IA()-h;g>24?(isFinite(g)&&(clearTimeout($d),$d=setTimeout(D3,g)),Jd=0):(Jd=1,FA(D3))}e.timer.flush=function(){NA(),IA()};function NA(){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 IA(){for(var h,g=Zd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[J[re[F]][2]]);for(F=+_e;F1&&et(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function sne(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,S=this[g-1],L=0;++hde)F=F.L;else if(O=g-vne(F,A),O>de){if(!F.R){S=F;break}F=F.R}else{C>-de?(S=F.P,L=F):O>-de?(S=F,L=F.N):S=L=F;break}var U=UA(h);if(kf.insert(S,U),!(!S&&!L)){if(S===L){qf(S),L=UA(S.site),kf.insert(U,L),U.edge=L.edge=Gv(S.site,U.site),Sf(S),Sf(L);return}if(!L){U.edge=Gv(S.site,U.site);return}qf(S),qf(L);var J=S.site,$=J.x,re=J.y,te=h.x-$,_e=h.y-re,ke=L.site,ae=ke.x-$,pe=ke.y-re,ge=2*(te*pe-_e*ae),Me=te*te+_e*_e,Se=ae*ae+pe*pe,xe={x:(pe*Me-_e*Se)/ge+$,y:(te*Se-ae*Me)/ge+re};ep(L.edge,J,ke,xe),U.edge=Gv(J,h,null,xe),L.edge=Gv(h,ke,null,xe),Sf(S),Sf(L)}}function GA(h,g){var A=h.site,S=A.x,L=A.y,C=L-g;if(!C)return S;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-S,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+S:(S+F)/2}function vne(h,g){var A=h.N;if(A)return GA(A,g);var S=h.site;return S.y===g?S.x:1/0}function VA(h){this.site=h,this.edges=[]}VA.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(YA),h.length};function hne(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],C,O,F,U,J=js,$=J.length,re,te,_e,ke,ae,pe;$--;)if(re=J[$],!(!re||!re.prepare()))for(_e=re.edges,ke=_e.length,te=0;tede||x(U-O)>de)&&(_e.splice(te,0,new rp(gne(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-S)=-Re)){var te=U*U+J*J,_e=$*$+pe*pe,ke=(pe*te-J*_e)/re,ae=(U*_e-$*te)/re,pe=ae+F,ge=HA.pop()||new dne;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=Uv._;Se;)if(ge.y0)){if(ae/=_e,_e<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=A-F,!(!_e&&ae<0)){if(ae/=_e,_e<0){if(ae>te)return;ae>re&&(re=ae)}else if(_e>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=S-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*_e,y:U+re*ke}),te<1&&(L.b={x:F+te*_e,y:U+te*ke}),L}}}}}}function yne(h){for(var g=Mf,A=pne(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!mne(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!S)S={x:ke,y:O};else if(S.y>=F)return;A={x:ke,y:F}}else{if(!S)S={x:ke,y:F};else if(S.y1)if($>te){if(!S)S={x:(O-ge)/pe,y:O};else if(S.y>=F)return;A={x:(F-ge)/pe,y:F}}else{if(!S)S={x:(F-ge)/pe,y:F};else if(S.y=C)return;A={x:C,y:pe*C+ge}}else{if(!S)S={x:C,y:pe*C+ge};else if(S.x=$&&ge.x<=te&&ge.y>=re&&ge.y<=_e?[[$,_e],[te,_e],[te,re],[$,re]]:[];Me.point=U[ae]}),J}function F(U){return U.map(function(J,$){return{x:Math.round(S(J,$)/de)*de,y:Math.round(L(J,$)/de)*de,i:$}})}return O.links=function(U){return z3(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 z3(F(U)).cells.forEach(function($,re){for(var te=$.site,_e=$.edges.sort(YA),ke=-1,ae=_e.length,pe,ge,Me=_e[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),_e.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=We),ir>xe&&(xe=ir),_e.push(We),ke.push(ir)}var cr=Se-ge,lr=xe-Me;cr>lr?xe=Me+cr:Se=ge+lr;function pr(gr,Mr,at,Kt,dt,ar,Dr,Pr){if(!(isNaN(at)||isNaN(Kt)))if(gr.leaf){var nt=gr.x,Gt=gr.y;if(nt!=null)if(x(nt-at)+x(Gt-Kt)<.01)yr(gr,Mr,at,Kt,dt,ar,Dr,Pr);else{var ma=gr.point;gr.x=gr.y=gr.point=null,yr(gr,ma,nt,Gt,dt,ar,Dr,Pr),yr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}else gr.x=at,gr.y=Kt,gr.point=Mr}else yr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}function yr(gr,Mr,at,Kt,dt,ar,Dr,Pr){var nt=(dt+Dr)*.5,Gt=(ar+Pr)*.5,ma=at>=nt,Ia=Kt>=Gt,tn=Ia<<1|ma;gr.leaf=!1,gr=gr.nodes[tn]||(gr.nodes[tn]=ZA()),ma?dt=nt:Dr=nt,Ia?ar=Gt:Pr=Gt,pr(gr,Mr,at,Kt,dt,ar,Dr,Pr)}var Er=ZA();if(Er.add=function(gr){pr(Er,gr,+re(gr,++ae),+te(gr,ae),ge,Me,Se,xe)},Er.visit=function(gr){Wv(gr,Er,ge,Me,Se,xe)},Er.find=function(gr){return Tne(Er,gr[0],gr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>O||_e=We,lr=A>=ir,pr=lr<<1|cr,yr=pr+4;prA&&(C=g.slice(A,C),F[O]?F[O]+=C:F[++O]=C),(S=S[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,U.push({i:O,x:ll(S,L)})),A=H3.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Na.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?O3:JA:g instanceof Lt?O3:Array.isArray(g)?np:A==="object"&&isNaN(g)?XA:ll)(h,g)}],e.interpolateArray=np;function np(h,g){var A=[],S=[],L=h.length,C=g.length,O=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=Ane.get(A)||$A,S=Mne.get(S)||B,kne(S(A.apply(null,r.call(arguments,1))))};function kne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function KA(h){return function(g){return 1-h(1-g)}}function QA(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Sne(h){return h*h}function qne(h){return h*h*h}function Lne(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 Cne(h){return function(g){return Math.pow(g,h)}}function Ene(h){return 1-Math.cos(h*sr)}function Dne(h){return Math.pow(2,10*(h-1))}function Rne(h){return 1-Math.sqrt(1-h*h)}function Pne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/Qe*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*Qe/g)}}function Fne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Nne(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=Ine;function Ine(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,C=g.h-A,O=g.c-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.c:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return pn(A+C*U,S+O*U,L+F*U)+""}}e.interpolateHsl=zne;function zne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,C=g.h-A,O=g.s-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.s:S),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return rn(A+C*U,S+O*U,L+F*U)+""}}e.interpolateLab=One;function One(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,C=g.l-A,O=g.a-S,F=g.b-L;return function(U){return An(A+C*U,S+O*U,L+F*U)+""}}e.interpolateRound=e8;function e8(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 S=g.transform.baseVal.consolidate()}return new r8(S?S.matrix:Hne)})(h)};function r8(h){var g=[h.a,h.b],A=[h.c,h.d],S=a8(g),L=t8(g,A),C=a8(Bne(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Lf(A)+"rotate(",null,")")-2,x:ll(h,g)})):g&&A.push(Lf(A)+"rotate("+g+")")}function Vne(h,g,A,S){h!==g?S.push({i:A.push(Lf(A)+"skewX(",null,")")-2,x:ll(h,g)}):g&&A.push(Lf(A)+"skewX("+g+")")}function Yne(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(Lf(A)+"scale(",null,",",null,")");S.push({i:L-4,x:ll(h[0],g[0])},{i:L-2,x:ll(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Lf(A)+"scale("+g+")")}function n8(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),Une(h.translate,g.translate,A,S),Gne(h.rotate,g.rotate,A,S),Vne(h.skew,g.skew,A,S),Yne(h.scale,g.scale,A,S),h=g=null,function(L){for(var C=-1,O=S.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,We=_e.length,ir=ke.length,cr=S[0],lr=S[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(S,F,F.depth)||0),delete F.children;return Ao(L,function(re){var te,_e;h&&(te=re.children)&&te.sort(h),A&&(_e=re.parent)&&(_e.value+=re.value)}),O}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(A=L,S):A},S.revalue=function(L){return A&&(Zv(L,function(C){C.children&&(C.value=0)}),Ao(L,function(C){var O;C.children||(C.value=+A.call(S,C,C.depth)||0),(O=C.parent)&&(O.value+=C.value)})),L},S};function jv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=oie,h}function Zv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function Ao(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(O=h.children)&&(C=O.length))for(var L=-1,C,O;++LL&&(L=F),S.push(F)}for(O=0;OS&&(A=g,S=L);return A}function hie(h){return h.reduce(die,0)}function die(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=yie,S=pie;function L(C,te){for(var F=[],U=C.map(g,this),J=A.call(this,U,te),$=S.call(this,J,U,te),re,te=-1,_e=U.length,ke=$.length-1,ae=h?1:1/_e,pe;++te0)for(te=-1;++te<_e;)pe=U[te],pe>=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?(S=typeof C=="number"?function(O){return s8(O,C)}:Or(C),L):S},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function pie(h,g){return s8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function s8(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,C=[];++A<=g;)C[A]=L*A+S;return C}function yie(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(mie),g=0,A=[1,1],S;function L(C,O){var F=h.call(this,C,O),U=F[0],J=A[0],$=A[1],re=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(U.x=U.y=0,Ao(U,function(_e){_e.r=+re(_e.value)}),Ao(U,c8),g){var te=g*(S?1:Math.max(2*U.r/J,2*U.r/$))/2;Ao(U,function(_e){_e.r+=te}),Ao(U,c8),Ao(U,function(_e){_e.r-=te})}return v8(U,J/2,$/2,S?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?(S=C==null||typeof C=="function"?C:+C,L):S},L.padding=function(C){return arguments.length?(g=+C,L):g},jv(L,h)};function mie(h,g){return h.value-g.value}function V3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function u8(h,g){h._pack_next=g,g._pack_prev=h}function f8(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function c8(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,S=-1/0,L=1/0,C=-1/0,O,F,U,J,$,re,te;function _e(xe){A=Math.min(xe.x-xe.r,A),S=Math.max(xe.x+xe.r,S),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(gie),O=g[0],O.x=-O.r,O.y=0,_e(O),te>1&&(F=g[1],F.x=F.r,F.y=0,_e(F),te>2))for(U=g[2],h8(O,F,U),_e(U),V3(O,U),O._pack_prev=U,V3(U,F),F=O._pack_next,J=3;Jpe.x&&(pe=We),We.depth>ge.depth&&(ge=We)});var Me=g(ae,pe)/2-ae.x,Se=A[0]/(pe.x+g(pe,ae)/2+Me),xe=A[1]/(ge.depth||1);Zv(_e,function(We){We.x=(We.x+Me)*Se,We.y=We.depth*xe})}return te}function C($){for(var re={A:null,children:[$]},te=[re],_e;(_e=te.pop())!=null;)for(var ke=_e.children,ae,pe=0,ge=ke.length;pe0&&(xie(wie(ae,$,te),$,We),ge+=We,Me+=We),Se+=ae.m,ge+=_e.m,xe+=pe.m,Me+=ke.m;ae&&!W3(ke)&&(ke.t=ae,ke.m+=Se-Me),_e&&!Y3(pe)&&(pe.t=_e,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?(S=(A=$)==null?J:null,L):S?null:A},L.nodeSize=function($){return arguments.length?(S=(A=$)==null?null:J,L):S?A:null},jv(L,h)};function d8(h,g){return h.parent==g.parent?1:2}function Y3(h){var g=h.children;return g.length?g[0]:h.t}function W3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function xie(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function _ie(h){for(var g=0,A=0,S=h.children,L=S.length,C;--L>=0;)C=S[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function wie(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=d8,A=[1,1],S=!1;function L(C,O){var F=h.call(this,C,O),U=F[0],J,$=0;Ao(U,function(ae){var pe=ae.children;pe&&pe.length?(ae.x=Aie(pe),ae.y=Tie(pe)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var re=p8(U),te=y8(U),_e=re.x-g(re,te)/2,ke=te.x+g(te,re)/2;return Ao(U,S?function(ae){ae.x=(ae.x-U.x)*A[0],ae.y=(U.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-_e)/(ke-_e)*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?(S=(A=C)==null,L):S?null:A},L.nodeSize=function(C){return arguments.length?(S=(A=C)!=null,L):S?A:null},jv(L,h)};function Tie(h){return 1+e.max(h,function(g){return g.y})}function Aie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function p8(h){var g=h.children;return g&&g.length?p8(g[0]):h}function y8(h){var g=h.children,A;return g&&(A=g.length)?y8(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=j3,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[lr-1]),Me.area+=xe.area,F!=="squarify"||(ir=te(Me,cr))<=We?(Se.pop(),We=ir):(Me.area-=Me.pop().area,_e(Me,cr,ge,!1),cr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,We=1/0);Me.length&&(_e(Me,cr,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&&(_e(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,We=-1,ir=ae.length;++WeSe&&(Se=Me));return ge*=ge,pe*=pe,ge?Math.max(pe*Se*U/ge,ge/(pe*xe*U)):1/0}function _e(ae,pe,ge,Me){var Se=-1,xe=ae.length,We=ge.x,ir=ge.y,cr=pe?g(ae.area/pe):0,lr;if(pe==ge.dx){for((Me||cr>ge.dy)&&(cr=ge.dy);++Sege.dx)&&(cr=ge.dx);++Se1);return h+g*S*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?Sie:Mie,J=S?jne:Wne;return L=U(h,g,J,A),C=U(g,h,J,Zs),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(e8)},F.clamp=function(U){return arguments.length?(S=U,O()):S},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return J3(h,U)},F.tickFormat=function(U,J){return d3_scale_linearTickFormat(h,U,J)},F.nice=function(U){return _8(h,U),O()},F.copy=function(){return b8(h,g,A,S)},O()}function x8(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function _8(h,g){return Z3(h,g8(X3(h,g)[2])),Z3(h,g8(X3(h,g)[2])),h}function X3(h,g){g==null&&(g=10);var A=ip(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),C=g/S*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 J3(h,g){return e.range.apply(e,X3(h,g))}var qie={s:1,g:1,p:1,r:1,e:1};function w8(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function SCe(h,g){var A=w8(g[2]);return h in qie?Math.abs(A-w8(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return T8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function T8(h,g,A,S){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((S=F.map(Number)).map(L)),O):S},O.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),O):g},O.nice=function(){var F=Z3(S.map(L),A?Math:Lie);return h.domain(F),S=F.map(C),O},O.ticks=function(){var F=ip(S),U=[],J=F[0],$=F[1],re=Math.floor(L(J)),te=Math.ceil(L($)),_e=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 T8(h.copy(),g,A,S)},x8(O,h)}var Lie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return A8(e.scale.linear(),1,[0,1])};function A8(h,g,A){var S=lp(g),L=lp(1/g);function C(O){return h(S(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(S)),C):A},C.ticks=function(O){return J3(A,O)},C.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},C.nice=function(O){return C.domain(_8(A,O))},C.exponent=function(O){return arguments.length?(S=lp(g=O),L=lp(1/g),h.domain(A.map(S)),C):g},C.copy=function(){return A8(h.copy(),g,A)},x8(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 M8([],{t:"range",a:[[]]})};function M8(h,g){var A,S,L;function C(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.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($=fr)return U($,ke)+(J?U(J,1-ke):"")+"Z";var ae,pe,ge,Me,Se=0,xe=0,We,ir,cr,lr,pr,yr,Er,gr,Mr=[];if((Me=(+O.apply(this,arguments)||0)/2)&&(ge=S===sp?Math.sqrt(J*J+$*$):+S.apply(this,arguments),ke||(xe*=-1),$&&(xe=ft(ge/$*Math.sin(Me))),J&&(Se=ft(ge/J*Math.sin(Me)))),$){We=$*Math.cos(re+xe),ir=$*Math.sin(re+xe),cr=$*Math.cos(te-xe),lr=$*Math.sin(te-xe);var at=Math.abs(te-re-2*xe)<=Fe?0:1;if(xe&&up(We,ir,cr,lr)===ke^at){var Kt=(re+te)/2;We=$*Math.cos(Kt),ir=$*Math.sin(Kt),cr=lr=null}}else We=ir=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 dt=Math.abs(re-te+2*Se)<=Fe?0:1;if(Se&&up(pr,yr,Er,gr)===1-ke^dt){var ar=(re+te)/2;pr=J*Math.cos(ar),yr=J*Math.sin(ar),Er=gr=null}}else pr=yr=0;if(_e>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){pe=J<$^ke?0:1;var Dr=ae,Pr=ae;if(_e0?0:1}function fp(h,g,A,S,L){var C=h[0]-g[0],O=h[1]-g[1],F=(L?S:-S)/Math.sqrt(C*C+O*O),U=F*O,J=-F*C,$=h[0]+U,re=h[1]+J,te=g[0]+U,_e=g[1]+J,ke=($+te)/2,ae=(re+_e)/2,pe=te-$,ge=_e-re,Me=pe*pe+ge*ge,Se=A-S,xe=$*_e-te*re,We=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),ir=(xe*ge-pe*We)/Me,cr=(-xe*pe-ge*We)/Me,lr=(xe*ge+pe*We)/Me,pr=(-xe*pe+ge*We)/Me,yr=ir-ke,Er=cr-ae,gr=lr-ke,Mr=pr-ae;return yr*yr+Er*Er>gr*gr+Mr*Mr&&(ir=lr,cr=pr),[[ir-U,cr-J],[ir*A/Se,cr*A/Se]]}function D8(){return!0}function R8(h){var g=Af,A=Hv,S=D8,L=Xi,C=L.key,O=.7;function F(U){var J=[],$=[],re=-1,te=U.length,_e,ke=Or(g),ae=Or(A);function pe(){J.push("M",L(h($),O))}for(;++re1?h.join("L"):h+"Z"}function P8(h){return h.join("L")+"Z"}function zie(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1&&L.push("H",S[0]),L.join("")}function K3(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1){F=g[1],C=h[U],U++,S+="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*S,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 jie(h){return h.length<3?Xi(h):h[0]+cp(h,Wie(h))}e.svg.line.radial=function(){var h=R8(z8);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function z8(h){for(var g,A=-1,S=h.length,L,C;++AFe)+",1 "+re}function J($,re,te,_e){return"Q 0,0 "+_e}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?(S=Or($),C):S},C.endAngle=function($){return arguments.length?(L=Or($),C):L},C};function Zie(h){return h.radius}e.svg.diagonal=function(){var h=B8,g=H8,A=U8;function S(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 S.source=function(L){return arguments.length?(h=Or(L),S):h},S.target=function(L){return arguments.length?(g=Or(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function U8(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=U8,A=h.projection;return h.projection=function(S){return arguments.length?A(Xie(g=S)):g},h};function Xie(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-sr;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=$ie,g=Jie;function A(S,L){return(V8.get(h.call(this,S,L))||G8)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Or(S),A):h},A.size=function(S){return arguments.length?(g=Or(S),A):g},A};function Jie(){return 64}function $ie(){return"circle"}function G8(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 V8=e.map({circle:G8,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*Y8)),A=g*Y8;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=V8.keys();var vp=Math.sqrt(3),Y8=Math.tan(30*kr);ye.transition=function(h){for(var g=Xs||++j8,A=nb(h),S=[],L,C,O=dp||{time:Date.now(),ease:Lne,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[S]:delete h[A],1}O||(F=L.time,U=Kd(te,0,F),O=C[S]={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=Z8,A=6,S=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(),_e=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(_e,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,We=op(te),ir=$.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));pe.append("line"),pe.append("text");var lr=pe.select("line"),pr=Me.select("line"),yr=ae.select("text").text(ke),Er=pe.select("text"),gr=Me.select("text"),Mr=g==="top"||g==="left"?-1:1,at,Kt,dt,ar;if(g==="bottom"||g==="top"?(xe=eoe,at="x",dt="y",Kt="x2",ar="y2",yr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+We[0]+","+Mr*S+"V0H"+We[1]+"V"+Mr*S)):(xe=roe,at="y",dt="x",Kt="y2",ar="x2",yr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),cr.attr("d","M"+Mr*S+","+We[0]+"H0V"+We[1]+"H"+Mr*S)),lr.attr(ar,Mr*A),Er.attr(dt,Mr*Se),pr.attr(Kt,0).attr(ar,Mr*A),gr.attr(at,0).attr(dt,Mr*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 Qie?J+"":Z8,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,S=+arguments[$-1],U):A},U.innerTickSize=function(J){return arguments.length?(A=+J,U):A},U.outerTickSize=function(J){return arguments.length?(S=+J,U):S},U.tickPadding=function(J){return arguments.length?(L=+J,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var Z8="bottom",Qie={top:1,right:1,bottom:1,left:1};function eoe(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function roe(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=ie($,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],C,O,F=!0,U=!0,J=ib[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(ir){return"resize "+ir}).style("cursor",function(ir){return toe[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-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),We;g&&(We=op(g),xe.attr("x",We[0]).attr("width",We[1]-We[0]),te(Se)),A&&(We=op(A),xe.attr("y",We[0]).attr("height",We[1]-We[0]),_e(Se)),re(Se)})}$.event=function(ae){ae.each(function(){var pe=h.of(this,arguments),ge={x:S,y:L,i:C,j:O},Me=this.__chart__||ge;this.__chart__=ge,Xs?e.select(this).transition().each("start.brush",function(){C=Me.i,O=Me.j,S=Me.x,L=Me.y,pe({type:"brushstart"})}).tween("brush:brush",function(){var Se=np(S,ge.x),xe=np(L,ge.y);return C=O=null,function(We){S=ge.x=Se(We),L=ge.y=xe(We),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("+S[+/e$/.test(pe)]+","+L[+/^s/.test(pe)]+")"})}function te(ae){ae.select(".extent").attr("x",S[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function _e(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,We=!/^(e|w)$/.test(Se)&&A,ir=pe.classed("extent"),cr=rr(ae),lr,pr=e.mouse(ae),yr,Er=e.select(i(ae)).on("keydown.brush",at).on("keyup.brush",Kt);if(e.event.changedTouches?Er.on("touchmove.brush",dt).on("touchend.brush",Dr):Er.on("mousemove.brush",dt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),ir)pr[0]=S[0]-pr[0],pr[1]=L[0]-pr[1];else if(Se){var gr=+/w$/.test(Se),Mr=+/^n/.test(Se);yr=[S[1-gr]-pr[0],L[1-Mr]-pr[1]],pr[0]=S[gr],pr[1]=L[Mr]}else e.event.altKey&&(lr=pr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",pe.style("cursor")),ge({type:"brushstart"}),dt();function at(){e.event.keyCode==32&&(ir||(lr=null,pr[0]-=S[1],pr[1]-=L[1],ir=2),ee())}function Kt(){e.event.keyCode==32&&ir==2&&(pr[0]+=S[1],pr[1]+=L[1],ir=0,ee())}function dt(){var Pr=e.mouse(ae),nt=!1;yr&&(Pr[0]+=yr[0],Pr[1]+=yr[1]),ir||(e.event.altKey?(lr||(lr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),pr[0]=S[+(Pr[0]{(function(e,r){typeof _p=="object"&&typeof rM!="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(oe,Ae,Xe,hr){function Ne(Te){return oe(Te=arguments.length===0?new Date:new Date(+Te)),Te}return Ne.floor=function(Te){return oe(Te=new Date(+Te)),Te},Ne.ceil=function(Te){return oe(Te=new Date(Te-1)),Ae(Te,1),oe(Te),Te},Ne.round=function(Te){var qe=Ne(Te),He=Ne.ceil(Te);return Te-qe0))return Je;do Je.push(Ve=new Date(+Te)),Ae(Te,He),oe(Te);while(Ve=qe)for(;oe(qe),!Te(qe);)qe.setTime(qe-1)},function(qe,He){if(qe>=qe)if(He<0)for(;++He<=0;)for(;Ae(qe,-1),!Te(qe););else for(;--He>=0;)for(;Ae(qe,1),!Te(qe););})},Xe&&(Ne.count=function(Te,qe){return r.setTime(+Te),t.setTime(+qe),oe(r),oe(t),Math.floor(Xe(r,t))},Ne.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?Ne.filter(hr?function(qe){return hr(qe)%Te===0}:function(qe){return Ne.count(0,qe)%Te===0}):Ne}),Ne}var n=a(function(){},function(oe,Ae){oe.setTime(+oe+Ae)},function(oe,Ae){return Ae-oe});n.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?a(function(Ae){Ae.setTime(Math.floor(Ae/oe)*oe)},function(Ae,Xe){Ae.setTime(+Ae+Xe*oe)},function(Ae,Xe){return(Xe-Ae)/oe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,Ae){oe.setTime(+oe+Ae*o)},function(oe,Ae){return(Ae-oe)/o},function(oe){return oe.getUTCSeconds()}),v=c.range,d=a(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o)},function(oe,Ae){oe.setTime(+oe+Ae*l)},function(oe,Ae){return(Ae-oe)/l},function(oe){return oe.getMinutes()}),p=d.range,y=a(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o-oe.getMinutes()*l)},function(oe,Ae){oe.setTime(+oe+Ae*s)},function(oe,Ae){return(Ae-oe)/s},function(oe){return oe.getHours()}),m=y.range,x=a(function(oe){oe.setHours(0,0,0,0)},function(oe,Ae){oe.setDate(oe.getDate()+Ae)},function(oe,Ae){return(Ae-oe-(Ae.getTimezoneOffset()-oe.getTimezoneOffset())*l)/u},function(oe){return oe.getDate()-1}),T=x.range;function _(oe){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-oe)%7),Ae.setHours(0,0,0,0)},function(Ae,Xe){Ae.setDate(Ae.getDate()+Xe*7)},function(Ae,Xe){return(Xe-Ae-(Xe.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),w=_(1),k=_(2),M=_(3),q=_(4),E=_(5),D=_(6),P=b.range,R=w.range,z=k.range,I=M.range,B=q.range,G=E.range,Y=D.range,V=a(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,Ae){oe.setMonth(oe.getMonth()+Ae)},function(oe,Ae){return Ae.getMonth()-oe.getMonth()+(Ae.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),H=V.range,X=a(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,Ae){oe.setFullYear(oe.getFullYear()+Ae)},function(oe,Ae){return Ae.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});X.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/oe)*oe),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Xe){Ae.setFullYear(Ae.getFullYear()+Xe*oe)})};var j=X.range,ee=a(function(oe){oe.setUTCSeconds(0,0)},function(oe,Ae){oe.setTime(+oe+Ae*l)},function(oe,Ae){return(Ae-oe)/l},function(oe){return oe.getUTCMinutes()}),fe=ee.range,ie=a(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,Ae){oe.setTime(+oe+Ae*s)},function(oe,Ae){return(Ae-oe)/s},function(oe){return oe.getUTCHours()}),ue=ie.range,K=a(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCDate(oe.getUTCDate()+Ae)},function(oe,Ae){return(Ae-oe)/u},function(oe){return oe.getUTCDate()-1}),we=K.range;function se(oe){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-oe)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Xe){Ae.setUTCDate(Ae.getUTCDate()+Xe*7)},function(Ae,Xe){return(Xe-Ae)/f})}var ce=se(0),he=se(1),ye=se(2),W=se(3),Q=se(4),Z=se(5),le=se(6),ve=ce.range,me=he.range,Ce=ye.range,Pe=W.range,Le=Q.range,ze=Z.range,Be=le.range,Ge=a(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCMonth(oe.getUTCMonth()+Ae)},function(oe,Ae){return Ae.getUTCMonth()-oe.getUTCMonth()+(Ae.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),De=Ge.range,Oe=a(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,Ae){oe.setUTCFullYear(oe.getUTCFullYear()+Ae)},function(oe,Ae){return Ae.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});Oe.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/oe)*oe),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Xe){Ae.setUTCFullYear(Ae.getUTCFullYear()+Xe*oe)})};var Ue=Oe.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=q,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=j,e.utcDay=K,e.utcDays=we,e.utcFriday=Z,e.utcFridays=ze,e.utcHour=ie,e.utcHours=ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=fe,e.utcMonday=he,e.utcMondays=me,e.utcMonth=Ge,e.utcMonths=De,e.utcSaturday=le,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ce,e.utcSundays=ve,e.utcThursday=Q,e.utcThursdays=Le,e.utcTuesday=ye,e.utcTuesdays=Ce,e.utcWednesday=W,e.utcWednesdays=Pe,e.utcWeek=ce,e.utcWeeks=ve,e.utcYear=Oe,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var Ef=N((wp,tM)=>{(function(e,r){typeof wp=="object"&&typeof tM!="undefined"?r(wp,ob()):(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,Re){return{y:ne,m:de,d:Re,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Re=ne.date,Fe=ne.time,Qe=ne.periods,fr=ne.days,sr=ne.shortDays,kr=ne.months,zr=ne.shortMonths,Yr=v(Qe),et=d(Qe),qt=v(fr),ft=d(fr),Ft=v(sr),Tt=d(sr),pa=v(kr),$t=d(kr),sa=v(zr),dr=d(zr),yt={a:il,A:ol,b:ct,B:An,c:null,d:V,e:V,f:fe,H,I:X,j,L:ee,m:ie,M:ue,p:It,q:Ys,Q:qe,s:He,S:K,u:we,U:se,V:ce,w:he,W:ye,x:null,X:null,y:W,Y:Q,Z,"%":Te},Zr={a:yn,A:Wi,b:Zt,B:ji,c:null,d:le,e:le,f:Le,H:ve,I:me,j:Ce,L:Pe,m:ze,M:Be,p:Bl,q:Hl,Q:qe,s:He,S:Ge,u:De,U:Oe,V:Ue,w:oe,W:Ae,x:null,X:null,y:Xe,Y:hr,Z:Ne,"%":Te},$r={a:rn,A:jt,b:dn,B:pn,c:Nt,d:q,e:q,f:I,H:D,I:D,j:E,L:z,m:M,M:P,p:Bt,q:k,Q:G,s:Y,S:R,u:y,U:m,V:x,w:p,W:T,x:Ct,X:wa,y:b,Y:_,Z:w,"%":B};yt.x=mt(Re,yt),yt.X=mt(Fe,yt),yt.c=mt(de,yt),Zr.x=mt(Re,Zr),Zr.X=mt(Fe,Zr),Zr.c=mt(de,Zr);function mt(mr,Kr){return function(vt){var ur=[],Fa=-1,At=0,Na=mr.length,Or,Zi,Ws;for(vt instanceof Date||(vt=new Date(+vt));++Fa53)return null;"w"in ur||(ur.w=1),"Z"in ur?(At=a(n(ur.y,0,1)),Na=At.getUTCDay(),At=Na>4||Na===0?r.utcMonday.ceil(At):r.utcMonday(At),At=r.utcDay.offset(At,(ur.V-1)*7),ur.y=At.getUTCFullYear(),ur.m=At.getUTCMonth(),ur.d=At.getUTCDate()+(ur.w+6)%7):(At=t(n(ur.y,0,1)),Na=At.getDay(),At=Na>4||Na===0?r.timeMonday.ceil(At):r.timeMonday(At),At=r.timeDay.offset(At,(ur.V-1)*7),ur.y=At.getFullYear(),ur.m=At.getMonth(),ur.d=At.getDate()+(ur.w+6)%7)}else("W"in ur||"U"in ur)&&("w"in ur||(ur.w="u"in ur?ur.u%7:"W"in ur?1:0),Na="Z"in ur?a(n(ur.y,0,1)).getUTCDay():t(n(ur.y,0,1)).getDay(),ur.m=0,ur.d="W"in ur?(ur.w+6)%7+ur.W*7-(Na+5)%7:ur.w+ur.U*7-(Na+6)%7);return"Z"in ur?(ur.H+=ur.Z/100|0,ur.M+=ur.Z%100,a(ur)):t(ur)}}function Gr(mr,Kr,vt,ur){for(var Fa=0,At=Kr.length,Na=vt.length,Or,Zi;Fa=Na)return-1;if(Or=Kr.charCodeAt(Fa++),Or===37){if(Or=Kr.charAt(Fa++),Zi=$r[Or in o?Kr.charAt(Fa++):Or],!Zi||(ur=Zi(mr,vt,ur))<0)return-1}else if(Or!=vt.charCodeAt(ur++))return-1}return ur}function Bt(mr,Kr,vt){var ur=Yr.exec(Kr.slice(vt));return ur?(mr.p=et[ur[0].toLowerCase()],vt+ur[0].length):-1}function rn(mr,Kr,vt){var ur=Ft.exec(Kr.slice(vt));return ur?(mr.w=Tt[ur[0].toLowerCase()],vt+ur[0].length):-1}function jt(mr,Kr,vt){var ur=qt.exec(Kr.slice(vt));return ur?(mr.w=ft[ur[0].toLowerCase()],vt+ur[0].length):-1}function dn(mr,Kr,vt){var ur=sa.exec(Kr.slice(vt));return ur?(mr.m=dr[ur[0].toLowerCase()],vt+ur[0].length):-1}function pn(mr,Kr,vt){var ur=pa.exec(Kr.slice(vt));return ur?(mr.m=$t[ur[0].toLowerCase()],vt+ur[0].length):-1}function Nt(mr,Kr,vt){return Gr(mr,de,Kr,vt)}function Ct(mr,Kr,vt){return Gr(mr,Re,Kr,vt)}function wa(mr,Kr,vt){return Gr(mr,Fe,Kr,vt)}function il(mr){return sr[mr.getDay()]}function ol(mr){return fr[mr.getDay()]}function ct(mr){return zr[mr.getMonth()]}function An(mr){return kr[mr.getMonth()]}function It(mr){return Qe[+(mr.getHours()>=12)]}function Ys(mr){return 1+~~(mr.getMonth()/3)}function yn(mr){return sr[mr.getUTCDay()]}function Wi(mr){return fr[mr.getUTCDay()]}function Zt(mr){return zr[mr.getUTCMonth()]}function ji(mr){return kr[mr.getUTCMonth()]}function Bl(mr){return Qe[+(mr.getUTCHours()>=12)]}function Hl(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Kr=mt(mr+="",yt);return Kr.toString=function(){return mr},Kr},parse:function(mr){var Kr=Lt(mr+="",!1);return Kr.toString=function(){return mr},Kr},utcFormat:function(mr){var Kr=mt(mr+="",Zr);return Kr.toString=function(){return mr},Kr},utcParse:function(mr){var Kr=Lt(mr+="",!0);return Kr.toString=function(){return mr},Kr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Re){var Fe=ne<0?"-":"",Qe=(Fe?-ne:ne)+"",fr=Qe.length;return Fe+(fr68?1900:2e3),Re+Fe[0].length):-1}function w(ne,de,Re){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Re,Re+6));return Fe?(ne.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Re+Fe[0].length):-1}function k(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+1));return Fe?(ne.q=Fe[0]*3-3,Re+Fe[0].length):-1}function M(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.m=Fe[0]-1,Re+Fe[0].length):-1}function q(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.d=+Fe[0],Re+Fe[0].length):-1}function E(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+3));return Fe?(ne.m=0,ne.d=+Fe[0],Re+Fe[0].length):-1}function D(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.H=+Fe[0],Re+Fe[0].length):-1}function P(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.M=+Fe[0],Re+Fe[0].length):-1}function R(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+2));return Fe?(ne.S=+Fe[0],Re+Fe[0].length):-1}function z(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+3));return Fe?(ne.L=+Fe[0],Re+Fe[0].length):-1}function I(ne,de,Re){var Fe=l.exec(de.slice(Re,Re+6));return Fe?(ne.L=Math.floor(Fe[0]/1e3),Re+Fe[0].length):-1}function B(ne,de,Re){var Fe=s.exec(de.slice(Re,Re+1));return Fe?Re+Fe[0].length:-1}function G(ne,de,Re){var Fe=l.exec(de.slice(Re));return Fe?(ne.Q=+Fe[0],Re+Fe[0].length):-1}function Y(ne,de,Re){var Fe=l.exec(de.slice(Re));return Fe?(ne.s=+Fe[0],Re+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 j(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 fe(ne,de){return ee(ne,de)+"000"}function ie(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 we(ne){var de=ne.getDay();return de===0?7:de}function se(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ce(ne,de){var Re=ne.getDay();return ne=Re>=4||Re===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function he(ne){return ne.getDay()}function ye(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function W(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 le(ne,de){return f(ne.getUTCDate(),de,2)}function ve(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Ce(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function Pe(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Le(ne,de){return Pe(ne,de)+"000"}function ze(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Be(ne,de){return f(ne.getUTCMinutes(),de,2)}function Ge(ne,de){return f(ne.getUTCSeconds(),de,2)}function De(ne){var de=ne.getUTCDay();return de===0?7:de}function Oe(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Ue(ne,de){var Re=ne.getUTCDay();return ne=Re>=4||Re===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function oe(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function Xe(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function hr(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function Ne(){return"+0000"}function Te(){return"%"}function qe(ne){return+ne}function He(ne){return Math.floor(+ne/1e3)}var Je;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 Je=i(ne),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Ze="%Y-%m-%dT%H:%M:%S.%LZ";function or(ne){return ne.toISOString()}var rr=Date.prototype.toISOString?or:e.utcFormat(Ze);function Ke(ne){var de=new Date(ne);return isNaN(de)?null:de}var Ie=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Ze);e.isoFormat=rr,e.isoParse=Ie,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var lb=N((Tp,aM)=>{(function(e,r){typeof Tp=="object"&&typeof aM!="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,q){if((E=(M=q?M.toExponential(q-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,q){return function(E,D){for(var P=E.length,R=[],z=0,I=M[0],B=0;P>0&&I>0&&(B+I+1>D&&(I=Math.max(1,D-B)),R.push(E.substring(P-=I,P+I)),!((B+=I+1)>D));)I=M[z=(z+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);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]})}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 q=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,q){var E=t(M,q);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,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var E=t(M,q);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,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},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 q=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)),z=M.percent===void 0?"%":M.percent+"",I=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,j=V.sign,ee=V.symbol,fe=V.zero,ie=V.width,ue=V.comma,K=V.precision,we=V.trim,se=V.type;se==="n"?(ue=!0,se="g"):d[se]||(K===void 0&&(K=12),we=!0,se="g"),(fe||H==="0"&&X==="=")&&(fe=!0,H="0",X="=");var ce=ee==="$"?E:ee==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",he=ee==="$"?D:/[%p]/.test(se)?z:"",ye=d[se],W=/[defgprs%]/.test(se);K=K===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(Z){var le=ce,ve=he,me,Ce,Pe;if(se==="c")ve=ye(Z)+ve,Z="";else{Z=+Z;var Le=Z<0||1/Z<0;if(Z=isNaN(Z)?B:ye(Math.abs(Z),K),we&&(Z=u(Z)),Le&&+Z==0&&j!=="+"&&(Le=!1),le=(Le?j==="("?j:I:j==="-"||j==="("?"":j)+le,ve=(se==="s"?m[8+f/3]:"")+ve+(Le&&j==="("?")":""),W){for(me=-1,Ce=Z.length;++mePe||Pe>57){ve=(Pe===46?P+Z.slice(me+1):Z.slice(me))+ve,Z=Z.slice(0,me);break}}}ue&&!fe&&(Z=q(Z,1/0));var ze=le.length+Z.length+ve.length,Be=ze>1)+le+Z+ve+Be.slice(ze);break;default:Z=Be+le+Z+ve;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)),j=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ee=Math.pow(10,-j),fe=m[8+j/3];return function(ie){return X(ee*ie)+fe}}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,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-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 iM=N((ECe,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 Rr=N((DCe,oM)=>{"use strict";var coe=iM();oM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&coe(t))return!1}else if(r!=="number")return!1;return e-e<1}});var zt=N((RCe,lM)=>{"use strict";lM.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 sb=N((Ap,sM)=>{(function(e,r){typeof Ap=="object"&&typeof sM!="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((PCe,uM)=>{"use strict";uM.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 Vn=N($i=>{"use strict";var voe=sb().decode,hoe=Vl(),ub=Array.isArray,doe=ArrayBuffer,poe=DataView;function fM(e){return doe.isView(e)&&!(e instanceof poe)}$i.isTypedArray=fM;function Mp(e){return ub(e)||fM(e)}$i.isArrayOrTypedArray=Mp;function yoe(e){return!Mp(e[0])}$i.isArray1D=yoe;$i.ensureArray=function(e,r){return ub(e)||(e=[]),e.length=r,e};var Ea={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};Ea.uint8c=Ea.u1c;Ea.uint8=Ea.u1;Ea.int8=Ea.i1;Ea.uint16=Ea.u2;Ea.int16=Ea.i2;Ea.uint32=Ea.u4;Ea.int32=Ea.i4;Ea.float32=Ea.f4;Ea.float64=Ea.f8;function fb(e){return e.constructor===ArrayBuffer}$i.isArrayBuffer=fb;$i.decodeTypedArraySpec=function(e){var r=[],t=moe(e),a=t.dtype,n=Ea[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;fb(o)||(o=voe(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 vM=Rr(),vb=Vn().isArrayOrTypedArray;yM.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 Df=kp(),woe=/^\w*$/,Toe=0,mM=1,Sp=2,gM=3,Qs=4;bM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Df(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 Aoe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Moe=/^[^\.\[\]]+$/;_M.exports=function(e,r){for(;r;){var t=e.match(Aoe);if(t)e=t[1];else if(e.match(Moe))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((OCe,TM)=>{"use strict";var koe=Rr();TM.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 koe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var kM=N((BCe,MM)=>{"use strict";var AM=Vn().isArrayOrTypedArray,Jv=Vl();MM.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(AM(n)&&AM(i)&&Jv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function Soe(e,r){var t=e%r;return t<0?t+r:t}function qoe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}SM.exports={mod:Soe,modHalf:qoe}});var Sn=N((UCe,Lp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=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,le,ve,me,Ce;return Q=W.r/255,Z=W.g/255,le=W.b/255,Q<=.03928?ve=Q/12.92:ve=e.pow((Q+.055)/1.055,2.4),Z<=.03928?me=Z/12.92:me=e.pow((Z+.055)/1.055,2.4),le<=.03928?Ce=le/12.92:Ce=e.pow((le+.055)/1.055,2.4),.2126*ve+.7152*me+.0722*Ce},setAlpha:function(W){return this._a=V(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),le=n(W.v*100);return this._a==1?"hsv("+Q+", "+Z+"%, "+le+"%)":"hsva("+Q+", "+Z+"%, "+le+"%, "+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),le=n(W.l*100);return this._a==1?"hsl("+Q+", "+Z+"%, "+le+"%)":"hsla("+Q+", "+Z+"%, "+le+"%, "+this._roundA+")"},toHex:function(W){return y(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return m(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(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(W){var Q="#"+x(this._r,this._g,this._b,this._a),Z=Q,le=this._gradientType?"GradientType = 1, ":"";if(W){var ve=s(W);Z="#"+x(ve._r,ve._g,ve._b,ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+Q+",endColorstr="+Z+")"},toString:function(W){var Q=!!W;W=W||this._format;var Z=!1,le=this._a<1&&this._a>=0,ve=!Q&&le&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return ve?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(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(q,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,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(W,Q){if(typeof W=="object"){var Z={};for(var le in W)W.hasOwnProperty(le)&&(le==="a"?Z[le]=W[le]:Z[le]=ue(W[le]));W=Z}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},Z=1,le=null,ve=null,me=null,Ce=!1,Pe=!1;return typeof W=="string"&&(W=he(W)),typeof W=="object"&&(ce(W.r)&&ce(W.g)&&ce(W.b)?(Q=f(W.r,W.g,W.b),Ce=!0,Pe=String(W.r).substr(-1)==="%"?"prgb":"rgb"):ce(W.h)&&ce(W.s)&&ce(W.v)?(le=ue(W.s),ve=ue(W.v),Q=p(W.h,le,ve),Ce=!0,Pe="hsv"):ce(W.h)&&ce(W.s)&&ce(W.l)&&(le=ue(W.s),me=ue(W.l),Q=v(W.h,le,me),Ce=!0,Pe="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=V(Z),{ok:Ce,format:W.format||Pe,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(W,Q,Z){return{r:H(W,255)*255,g:H(Q,255)*255,b:H(Z,255)*255}}function c(W,Q,Z){W=H(W,255),Q=H(Q,255),Z=H(Z,255);var le=o(W,Q,Z),ve=i(W,Q,Z),me,Ce,Pe=(le+ve)/2;if(le==ve)me=Ce=0;else{var Le=le-ve;switch(Ce=Pe>.5?Le/(2-le-ve):Le/(le+ve),le){case W:me=(Q-Z)/Le+(Q1&&(Ge-=1),Ge<1/6?ze+(Be-ze)*6*Ge:Ge<1/2?Be:Ge<2/3?ze+(Be-ze)*(2/3-Ge)*6:ze}if(Q===0)le=ve=me=Z;else{var Pe=Z<.5?Z*(1+Q):Z+Q-Z*Q,Le=2*Z-Pe;le=Ce(Le,Pe,W+1/3),ve=Ce(Le,Pe,W),me=Ce(Le,Pe,W-1/3)}return{r:le*255,g:ve*255,b:me*255}}function d(W,Q,Z){W=H(W,255),Q=H(Q,255),Z=H(Z,255);var le=o(W,Q,Z),ve=i(W,Q,Z),me,Ce,Pe=le,Le=le-ve;if(Ce=le===0?0:Le/le,le==ve)me=0;else{switch(le){case W:me=(Q-Z)/Le+(Q>1)+720)%360;--Q;)le.h=(le.h+ve)%360,me.push(s(le));return me}function I(W,Q){Q=Q||6;for(var Z=s(W).toHsv(),le=Z.h,ve=Z.s,me=Z.v,Ce=[],Pe=1/Q;Q--;)Ce.push(s({h:le,s:ve,v:me})),me=(me+Pe)%1;return Ce}s.mix=function(W,Q,Z){Z=Z===0?0:Z||50;var le=s(W).toRgb(),ve=s(Q).toRgb(),me=Z/100,Ce={r:(ve.r-le.r)*me+le.r,g:(ve.g-le.g)*me+le.g,b:(ve.b-le.b)*me+le.b,a:(ve.a-le.a)*me+le.a};return s(Ce)},s.readability=function(W,Q){var Z=s(W),le=s(Q);return(e.max(Z.getLuminance(),le.getLuminance())+.05)/(e.min(Z.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(W,Q,Z){var le=s.readability(W,Q),ve,me;switch(me=!1,ve=ye(Z),ve.level+ve.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(W,Q,Z){var le=null,ve=0,me,Ce,Pe,Le;Z=Z||{},Ce=Z.includeFallbackColors,Pe=Z.level,Le=Z.size;for(var ze=0;zeve&&(ve=me,le=s(Q[ze]));return s.isReadable(W,le,{level:Pe,size:Le})||!Ce?le:(Z.includeFallbackColors=!1,s.mostReadable(W,["#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(W){var Q={};for(var Z in W)W.hasOwnProperty(Z)&&(Q[W[Z]]=Z);return Q}function V(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function H(W,Q){ee(W)&&(W="100%");var Z=fe(W);return W=i(Q,o(0,parseFloat(W))),Z&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function X(W){return i(1,o(0,W))}function j(W){return parseInt(W,16)}function ee(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function fe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ie(W){return W.length==1?"0"+W:""+W}function ue(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function we(W){return j(W)/255}var se=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+Q+")|(?:"+W+")",le="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",ve="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ve),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 ce(W){return!!se.CSS_UNIT.exec(W)}function he(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[W])W=B[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=se.rgb.exec(W))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=se.rgba.exec(W))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=se.hsl.exec(W))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=se.hsla.exec(W))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=se.hsv.exec(W))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=se.hsva.exec(W))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=se.hex8.exec(W))?{r:j(Z[1]),g:j(Z[2]),b:j(Z[3]),a:we(Z[4]),format:Q?"name":"hex8"}:(Z=se.hex6.exec(W))?{r:j(Z[1]),g:j(Z[2]),b:j(Z[3]),format:Q?"name":"hex"}:(Z=se.hex4.exec(W))?{r:j(Z[1]+""+Z[1]),g:j(Z[2]+""+Z[2]),b:j(Z[3]+""+Z[3]),a:we(Z[4]+""+Z[4]),format:Q?"name":"hex8"}:(Z=se.hex3.exec(W))?{r:j(Z[1]+""+Z[1]),g:j(Z[2]+""+Z[2]),b:j(Z[3]+""+Z[3]),format:Q?"name":"hex"}:!1}function ye(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 Lp!="undefined"&&Lp.exports?Lp.exports=s:window.tinycolor=s})(Math)});var bt=N(Qv=>{"use strict";var qM=Vl(),$v=Array.isArray;function Loe(e,r){var t,a;for(t=0;t{"use strict";LM.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 eh=N((YCe,CM)=>{"use strict";CM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Pf=N((WCe,RM)=>{"use strict";var EM=eh(),DM=ga(),hb=DM({editType:"none"});hb.family.dflt=EM.HOVERFONT;hb.size.dflt=EM.HOVERFONTSIZE;RM.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:DM({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,PM)=>{"use strict";var Coe=ga(),rh=Pf().hoverlabel,th=bt().extendFlat;PM.exports={hoverlabel:{bgcolor:th({},rh.bgcolor,{arrayOk:!0}),bordercolor:th({},rh.bordercolor,{arrayOk:!0}),font:Coe({arrayOk:!0,editType:"none"}),align:th({},rh.align,{arrayOk:!0}),namelength:th({},rh.namelength,{arrayOk:!0}),showarrow:th({},rh.showarrow),editType:"none"}}});var gn=N((ZCe,FM)=>{"use strict";var Eoe=ga(),Doe=Cp();FM.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:Eoe({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:Doe.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 eu=N((XCe,zM)=>{"use strict";var Roe=Sn(),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)"]]},NM=Ep.RdBu;function Poe(e,r){if(r||(r=NM),!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()),IM(e)?e:r}function IM(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";ru.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ru.defaultLine="#444";ru.lightLine="#eee";ru.background="#fff";ru.borderLine="#BEC8D9";ru.lightFraction=100*10/11});var Tr=N(($Ce,OM)=>{"use strict";var qn=Sn(),Noe=Rr(),Ioe=Vn().isTypedArray,Ta=OM.exports={},Dp=ui();Ta.defaults=Dp.defaults;var zoe=Ta.defaultLine=Dp.defaultLine;Ta.lightLine=Dp.lightLine;var pb=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(qn(e))};Ta.opacity=function(e){return e?qn(e).getAlpha():0};Ta.addOpacity=function(e,r){var t=qn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Ta.combine=function(e,r){var t=qn(e).toRgb();if(t.a===1)return qn(e).toRgbString();var a=qn(r||pb).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 qn(i).toRgbString()};Ta.interpolate=function(e,r,t){var a=qn(e).toRgb(),n=qn(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 qn(i).toRgbString()};Ta.contrast=function(e,r,t){var a=qn(e);a.getAlpha()!==1&&(a=qn(Ta.combine(e,pb)));var n=a.isDark()?r?a.lighten(r):pb:t?a.darken(t):zoe;return n.toString()};Ta.stroke=function(e,r){var t=qn(r);e.style({stroke:Ta.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Ta.fill=function(e,r){var t=qn(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((KCe,BM)=>{"use strict";BM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Ff=N(HM=>{"use strict";HM.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 YM=N(Ln=>{"use strict";var yb=Rr(),UM=Sn(),GM=bt().extendFlat,Ooe=gn(),Boe=eu(),Hoe=Tr(),Uoe=Rp().DESELECTDIM,Nf=kp(),VM=Ff().counter,Goe=Rf().modHalf,Ki=Vn().isArrayOrTypedArray,Yl=Vn().isTypedArraySpec,Wl=Vn().decodeTypedArraySpec;Ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ki(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)),!yb(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||!yb(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)),UM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return UM(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(Boe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),e==="auto"?r.set("auto"):yb(e)?r.set(Goe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||VM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Ki(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:!!VM(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 WM={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},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:{}}},jM={};function ZM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),ZM(a,r[t]))}}ZM(WM,jM);XM.exports={configAttributes:WM,dfltConfig:jM}});var gb=N((tEe,JM)=>{"use strict";var mb=Sr(),Voe=Rr(),ah=[];JM.exports=function(e,r){if(ah.indexOf(e)!==-1)return;ah.push(e);var t=1e3;Voe(r)?t=r:r==="long"&&(t=3e3);var a=mb.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(ah);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=ah.indexOf(l);s!==-1&&ah.splice(s,1),mb.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=mb.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var If=tu().dfltConfig,bb=gb(),xb=$M.exports={};xb.log=function(){var e;if(If.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xb.warn=function(){var e;if(If.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xb.error=function(){var e;if(If.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Fp=N((nEe,KM)=>{"use strict";KM.exports=function(){}});var _b=N((iEe,QM)=>{"use strict";QM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{e9.exports=Yoe;function Yoe(){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 a9=N((lEe,t9)=>{t9.exports=Woe;function Woe(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 i9=N((sEe,n9)=>{n9.exports=joe;function joe(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 wb=N((uEe,o9)=>{o9.exports=Zoe;function Zoe(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 s9=N((fEe,l9)=>{l9.exports=Xoe;function Xoe(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 f9=N((cEe,u9)=>{u9.exports=Joe;function Joe(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,q=f*y-c*p,E=f*m-v*p,D=f*x-d*p,P=c*m-v*y,R=c*x-d*y,z=v*x-d*m,I=T*z-_*R+b*P+w*D-k*E+M*q;return I?(I=1/I,e[0]=(l*z-s*R+u*P)*I,e[1]=(n*R-a*z-i*P)*I,e[2]=(y*M-m*k+x*w)*I,e[3]=(v*k-c*M-d*w)*I,e[4]=(s*D-o*z-u*E)*I,e[5]=(t*z-n*D+i*E)*I,e[6]=(m*b-p*M-x*_)*I,e[7]=(f*M-v*b+d*_)*I,e[8]=(o*R-l*D+u*q)*I,e[9]=(a*D-t*R-i*q)*I,e[10]=(p*k-y*b+x*T)*I,e[11]=(c*b-f*k-d*T)*I,e[12]=(l*E-o*P-s*q)*I,e[13]=(t*P-a*E+n*q)*I,e[14]=(y*_-p*w-m*T)*I,e[15]=(f*w-c*_+v*T)*I,e):null}});var v9=N((vEe,c9)=>{c9.exports=$oe;function $oe(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 d9=N((hEe,h9)=>{h9.exports=Koe;function Koe(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,q=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*q+k*M}});var y9=N((dEe,p9)=>{p9.exports=Qoe;function Qoe(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 g9=N((pEe,m9)=>{m9.exports=ele;function ele(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 x9=N((yEe,b9)=>{b9.exports=rle;function rle(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 w9=N((mEe,_9)=>{_9.exports=tle;function tle(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,q,E,D,P,R,z,I,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,q=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,z=n*o*f+i*s,I=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+y*q+_*E,e[1]=v*M+m*q+b*E,e[2]=d*M+x*q+w*E,e[3]=p*M+T*q+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*z+y*I+_*B,e[9]=v*z+m*I+b*B,e[10]=d*z+x*I+w*B,e[11]=p*z+T*I+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var A9=N((gEe,T9)=>{T9.exports=ale;function ale(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 k9=N((bEe,M9)=>{M9.exports=nle;function nle(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 q9=N((xEe,S9)=>{S9.exports=ile;function ile(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 C9=N((_Ee,L9)=>{L9.exports=ole;function ole(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 D9=N((wEe,E9)=>{E9.exports=lle;function lle(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 P9=N((TEe,R9)=>{R9.exports=sle;function sle(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 N9=N((AEe,F9)=>{F9.exports=ule;function ule(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 z9=N((MEe,I9)=>{I9.exports=fle;function fle(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 B9=N((kEe,O9)=>{O9.exports=cle;function cle(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 U9=N((SEe,H9)=>{H9.exports=vle;function vle(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 V9=N((qEe,G9)=>{G9.exports=hle;function hle(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 W9=N((LEe,Y9)=>{Y9.exports=dle;function dle(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 Z9=N((CEe,j9)=>{j9.exports=ple;function ple(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 J9=N((EEe,X9)=>{X9.exports=yle;function yle(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 K9=N((DEe,$9)=>{$9.exports=mle;function mle(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 ek=N((REe,Q9)=>{var gle=wb();Q9.exports=ble;function ble(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?gle(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 tk=N((PEe,rk)=>{rk.exports=xle;function xle(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 Tb=N((FEe,ak)=>{ak.exports={create:r9(),clone:a9(),copy:i9(),identity:wb(),transpose:s9(),invert:f9(),adjoint:v9(),determinant:d9(),multiply:y9(),translate:g9(),scale:x9(),rotate:w9(),rotateX:A9(),rotateY:k9(),rotateZ:q9(),fromRotation:C9(),fromRotationTranslation:D9(),fromScaling:P9(),fromTranslation:N9(),fromXRotation:z9(),fromYRotation:B9(),fromZRotation:U9(),fromQuat:V9(),frustum:W9(),perspective:Z9(),perspectiveFromFieldOfView:J9(),ortho:K9(),lookAt:ek(),str:tk()}});var Np=N(Qt=>{"use strict";var _le=Tb();Qt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var wle=Sr(),nk=au(),Tle=Np(),Ale=Tb();function Mle(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 kle(e){var r=wle.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function ik(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Sle(e,r){ok("global",e,r)}function ok(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):nk.warn("addStyleRule failed"):nk.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function qle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ik(t)}function Lle(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 Cle(e){var r=sk(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=lk(a);if(n){var i=Tle.convertCssMatrix(n);t=Ale.multiply(t,t,i)}}),t}function lk(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 sk(e){for(var r=[];Ele(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Ele(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Dle(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}uk.exports={getGraphDiv:Mle,isPlotDiv:kle,removeElement:ik,addStyleRule:Sle,addRelatedStyleRule:ok,deleteRelatedStyleRule:qle,setStyleOnHover:Lle,getFullTransformMatrix:Cle,getElementTransformMatrix:lk,getElementAndAncestors:sk,equalDomRects:Dle}});var ih=N((zEe,fk)=>{"use strict";fk.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 Qi=N((OEe,mk)=>{"use strict";var vk=bt().extendFlat,Rle=Vl(),hk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},dk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Ple=hk.flags.slice().concat(["fullReplot"]),Fle=dk.flags.slice().concat("layoutReplot");mk.exports={traces:hk,layout:dk,traceFlags:function(){return ck(Ple)},layoutFlags:function(){return ck(Fle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Ab.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Ab.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 Mb=N((HEe,gk)=>{"use strict";gk.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 Yn=N(zf=>{"use strict";var{DATE_FORMAT_LINK:Nle,FORMAT_LINK:Ile}=Mb(),zle=["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 Ole({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}".`,Ile,"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}".`,Nle,"for details on the date formatting syntax.",zle].join(" ")}zf.templateFormatStringDescription=Ole;zf.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Ks({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});zf.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Ks({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});zf.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});zf.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Op=N((VEe,Ak)=>{"use strict";function jl(e,r){return r?r.d2l(e):e}function bk(e,r){return r?r.l2d(e):e}function Ble(e){return e.x0}function Hle(e){return e.x1}function Ule(e){return e.y0}function Gle(e){return e.y1}function xk(e){return e.x0shift||0}function _k(e){return e.x1shift||0}function wk(e){return e.y0shift||0}function Tk(e){return e.y1shift||0}function Ip(e,r){return jl(e.x1,r)+_k(e)-jl(e.x0,r)-xk(e)}function zp(e,r,t){return jl(e.y1,t)+Tk(e)-jl(e.y0,t)-wk(e)}function Vle(e,r){return Math.abs(Ip(e,r))}function Yle(e,r,t){return Math.abs(zp(e,r,t))}function Wle(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 jle(e,r){return bk((jl(e.x1,r)+_k(e)+jl(e.x0,r)+xk(e))/2,r)}function Zle(e,r,t){return bk((jl(e.y1,t)+Tk(e)+jl(e.y0,t)+wk(e))/2,t)}function Xle(e,r,t){return e.type!=="line"?void 0:zp(e,r,t)/Ip(e,r)}var Jle=["x0","x1","y0","y1","dy","height","ycenter"],$le=["x0","x1","y0","y1","dx","width","xcenter"];Ak.exports={x0:Ble,x1:Hle,y0:Ule,y1:Gle,slope:Xle,dx:Ip,dy:zp,width:Vle,height:Yle,length:Wle,xcenter:jle,ycenter:Zle,simpleXVariables:Jle,simpleYVariables:$le}});var Sk=N((YEe,kk)=>{"use strict";var Kle=Qi().overrideAll,nu=gn(),Mk=ga(),Qle=fi().dash,Zl=bt().extendFlat,{shapeTexttemplateAttrs:ese,templatefallbackAttrs:rse}=Yn(),tse=Op();kk.exports=Kle({newshape:{visible:Zl({},nu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Zl({},nu.legend,{}),legendgroup:Zl({},nu.legendgroup,{}),legendgrouptitle:{text:Zl({},nu.legendgrouptitle.text,{}),font:Mk({})},legendrank:Zl({},nu.legendrank,{}),legendwidth:Zl({},nu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Zl({},Qle,{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({},nu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:ese({newshape:!0},{keys:Object.keys(tse)}),texttemplatefallback:rse({editType:"arraydraw"}),font:Mk({}),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((WEe,qk)=>{"use strict";var ase=fi().dash,nse=bt().extendFlat;qk.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:nse({},ase,{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,Ck)=>{"use strict";Ck.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 Of=N((ZEe,Pk)=>{"use strict";var kb=ga(),ise=ih(),Hp=ui(),Ek=Sk(),Dk=Lk(),ose=Bp(),Rk=bt().extendFlat,Up=kb({editType:"calc"});Up.family.dflt='"Open Sans", verdana, arial, sans-serif';Up.size.dflt=12;Up.color.dflt=Hp.defaultLine;Pk.exports={font:Up,title:{text:{valType:"string",editType:"layoutstyle"},font:kb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:kb({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:Rk(ose({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:Ek.newshape,activeshape:Ek.activeshape,newselection:Dk.newselection,activeselection:Dk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Rk({},ise.transition,{editType:"none"})}});var Fk=N(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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 Bf=au(),Nk=Fp(),Ik=_b(),lse=Vl(),sse=nh().addStyleRule,zk=bt(),use=gn(),fse=Of(),cse=zk.extendFlat,Sb=zk.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 mse=Ef().timeFormat,Xk=Rr(),qb=au(),Jl=Rf().mod,Gf=zt(),ci=Gf.BADNUM,Cn=Gf.ONEDAY,oh=Gf.ONEHOUR,Xl=Gf.ONEMIN,Uf=Gf.ONESEC,lh=Gf.EPOCHJD,sl=br(),Gk=Ef().utcFormat,gse=/^\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,bse=/^\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,Vk=new Date().getFullYear()-70;function ul(e){return e&&sl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ea.dateTick0=function(e,r){var t=xse(e,!!r);if(r<2)return t;var a=ea.dateTime2ms(t,e);return a+=Cn*(r-1),ea.ms2DateTime(a,0,e)};function xse(e,r){return ul(e)?r?sl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:sl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ea.dfltRange=function(e){return ul(e)?sl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ea.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vp,Yp;ea.dateTime2ms=function(e,r){if(ea.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*Uf+(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:ci}if(typeof e!="string"&&typeof e!="number")return ci;e=String(e);var i=ul(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?bse:gse);if(!s)return ci;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 ci;u=Number(u);var y;try{var m=sl.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 ci}return y?(y.toJD()-lh)*Cn+v*oh+d*Xl+p*Uf:ci}u.length===2?u=(Number(u)+2e3-Vk)%100+Vk: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?ci:T.getTime()+p*Uf};Vp=ea.MIN_MS=ea.dateTime2ms("-9999");Yp=ea.MAX_MS=ea.dateTime2ms("9999-12-31 23:59:59.9999");ea.isDateTime=function(e,r){return ea.dateTime2ms(e,r)!==ci};function Hf(e,r){return String(e+Math.pow(10,r)).slice(1)}var Gp=90*Cn,Yk=3*oh,Wk=5*Xl;ea.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vp&&e<=Yp))return ci;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(ul(t)){var c=Math.floor(n/Cn)+lh,v=Math.floor(Jl(e,Cn));try{i=sl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Gk("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+Cn&&e<=Yp-Cn))return ci;var r=Math.floor(Jl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=mse("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Jk(a,n,i,o,l)};function Jk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Hf(r,2)+":"+Hf(t,2),(a||n)&&(e+=":"+Hf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Hf(n,i)}return e}ea.cleanDate=function(e,r,t){if(e===ci)return r;if(ea.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ul(t))return qb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ea.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ea.isDateTime(e,t))return qb.error("unrecognized date",e),r;return e};var _se=/%\d?f/g,wse=/%h/g,Tse={1:"1",2:"1",3:"2",4:"2"};function jk(e,r,t,a){e=e.replace(_se,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(wse,function(){return Tse[t("%q")(n)]}),ul(a))try{e=sl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Ase=[59,59.9,59.99,59.999,59.9999];function Mse(e,r){var t=Jl(e+.05,Cn),a=Hf(Math.floor(t/oh),2)+":"+Hf(Jl(Math.floor(t/Xl),60),2);if(r!=="M"){Xk(r)||(r=0);var n=Math.min(Jl(e/Uf,60),Ase[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ea.formatDate=function(e,r,t,a,n,i){if(n=ul(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 Mse(e,t)+` -`+jk(i.dayMonthYear,e,a,n);return jk(r,e,a,n)};var Zk=3*Cn;ea.incrementMonth=function(e,r,t){t=ul(t)&&t;var a=Jl(e,Cn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Cn)+lh,i=sl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-lh)*Cn+a}catch(s){qb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Zk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Zk};ea.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=ul(r)&&sl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Kk.exports=function(r){return r}});var Eb=N(fl=>{"use strict";var kse=Rr(),Sse=au(),qse=Lb(),Lse=zt().BADNUM,Cb=1e-9;fl.findBin=function(e,r,t){if(kse(r.start))return t?Math.ceil((e-r.start)/r.size-Cb)-1:Math.floor((e-r.start)/r.size+Cb);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?Cse:Ese:s=t?Rse:Dse,e+=o*Cb*(t?-1:1)*(o>=0?1:-1);a90&&Sse.log("Long binary search..."),a-1};function Cse(e,r){return er}function Rse(e,r){return e>=r}fl.sorterAsc=function(e,r){return e-r};fl.sorterDes=function(e,r){return r-e};fl.distinctVals=function(e){var r=e.slice();r.sort(fl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Lse;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}};fl.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()};fl.findIndexOfMin=function(e,r){r=r||qse;for(var t=1/0,a,n=0;n{"use strict";Qk.exports=function(r){return Object.keys(r).sort()}});var eS=N(ra=>{"use strict";var sh=Rr(),Pse=Vn().isArrayOrTypedArray;ra.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),sh(r)||(r=!1),Pse(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 iS=N((aDe,nS)=>{"use strict";var rS=Rf(),Rb=rS.mod,Fse=rS.modHalf,uh=Math.PI,$l=2*uh;function Nse(e){return e/180*uh}function Ise(e){return e/uh*180}function Pb(e){return Math.abs(e[1]-e[0])>$l-1e-14}function tS(e,r){return Fse(r-e,$l)}function zse(e,r){return Math.abs(tS(e,r))}function aS(e,r){if(Pb(r))return!0;var t,a;r[0]a&&(a+=$l);var n=Rb(e,$l),i=n+$l;return n>=t&&n<=a||i>=t&&i<=a}function Ose(e,r,t,a){if(!aS(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Fb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Pb([t,a]),s,u,f,c,v;l?(s=0,u=uh,f=$l):t{"use strict";iu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};iu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};iu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};iu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};iu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};iu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var uS=N(ou=>{"use strict";var Nb=Rf().mod;ou.segmentsIntersect=sS;function sS(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}}ou.segmentDistance=function(r,t,a,n,i,o,l,s){if(sS(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(Yp(u,f,d,i-r,o-t),Yp(u,f,d,l-r,s-t),Yp(c,v,p,r-i,t-o),Yp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Yp(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 Wp,Ib,lS;ou.getTextLocation=function(r,t,a,n){if((r!==Ib||n!==lS)&&(Wp={},Ib=r,lS=n),Wp[a])return Wp[a];var i=r.getPointAtLength(Nb(a-n/2,t)),o=r.getPointAtLength(Nb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Nb(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 Wp[a]=c,c};ou.clearLocationCache=function(){Ib=null};ou.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}};ou.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 jp=N(fh=>{"use strict";var cl={};fh.throttle=function(r,t,a){var n=cl[r],i=Date.now();if(!n){for(var o in cl)cl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};fh.done=function(e){var r=cl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};fh.clear=function(e){if(e)fS(cl[e]),delete cl[e];else for(var r in cl)fh.clear(r)};function fS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var vS=N((lDe,cS)=>{"use strict";cS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var hS=N((sDe,Zp)=>{"use strict";Zp.exports=zb;Zp.exports.isMobile=zb;Zp.exports.default=zb;var Gse=/(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,Vse=/CrOS/,Yse=/android|ipad|playbook|silk/i;function zb(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=Gse.test(r)&&!Vse.test(r)||!!e.tablet&&Yse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var pS=N((uDe,dS)=>{"use strict";var Wse=Rr(),jse=hS();dS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Zse(),typeof t!="string")return!0;var a=jse({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(Wse(u)&&(u=+u),u>=13)return!0}}}return a};function Zse(){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 mS=N((fDe,yS)=>{"use strict";var Xse=Sr();yS.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]=Xse.select(this)}),n}});var bS=N((cDe,gS)=>{"use strict";var Jse=br();gS.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=Jse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var _S=N((vDe,xS)=>{"use strict";xS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";wS.exports=function(r){for(var t=Qse(r)?Kse:$se,a=[],n=0;n{"use strict";AS.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 SS=N((pDe,kS)=>{"use strict";var eue=Rr(),rue=zt().BADNUM,tue=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;kS.exports=function(r){return typeof r=="string"&&(r=r.replace(tue,"")),eue(r)?Number(r):rue}});var Ee=N((yDe,BS)=>{"use strict";var ch=Sr(),aue=Ef().utcFormat,nue=lb().format,RS=Rr(),PS=zt(),FS=PS.FP_SAFE,iue=-FS,qS=PS.BADNUM,be=BS.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 LS={};be.warnBadFormat=function(e){var r=String(e);LS[r]||(LS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=nue(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=Mp();be.keyedContainer=xM();be.relativeAttr=wM();be.isPlainObject=Vl();be.toLogRange=Sp();be.relinkPrivateKeys=kM();var Kl=Vn();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 NS=Rf();be.mod=NS.mod;be.modHalf=NS.modHalf;var Ql=YM();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 Wn=$k();be.dateTime2ms=Wn.dateTime2ms;be.isDateTime=Wn.isDateTime;be.ms2DateTime=Wn.ms2DateTime;be.ms2DateTimeLocal=Wn.ms2DateTimeLocal;be.cleanDate=Wn.cleanDate;be.isJSDate=Wn.isJSDate;be.formatDate=Wn.formatDate;be.incrementMonth=Wn.incrementMonth;be.dateTick0=Wn.dateTick0;be.dfltRange=Wn.dfltRange;be.findExactDates=Wn.findExactDates;be.MIN_MS=Wn.MIN_MS;be.MAX_MS=Wn.MAX_MS;var lu=Eb();be.findBin=lu.findBin;be.sorterAsc=lu.sorterAsc;be.sorterDes=lu.sorterDes;be.distinctVals=lu.distinctVals;be.roundUp=lu.roundUp;be.sort=lu.sort;be.findIndexOfMin=lu.findIndexOfMin;be.sortObjectKeys=Db();var vl=eS();be.aggNums=vl.aggNums;be.len=vl.len;be.mean=vl.mean;be.geometricMean=vl.geometricMean;be.median=vl.median;be.midRange=vl.midRange;be.variance=vl.variance;be.stdev=vl.stdev;be.interp=vl.interp;var eo=Fp();be.init2dArray=eo.init2dArray;be.transposeRagged=eo.transposeRagged;be.dot=eo.dot;be.translationMatrix=eo.translationMatrix;be.rotationMatrix=eo.rotationMatrix;be.rotationXYMatrix=eo.rotationXYMatrix;be.apply3DTransform=eo.apply3DTransform;be.apply2DTransform=eo.apply2DTransform;be.apply2DTransform2=eo.apply2DTransform2;be.convertCssMatrix=eo.convertCssMatrix;be.inverseTransformMatrix=eo.inverseTransformMatrix;var ko=iS();be.deg2rad=ko.deg2rad;be.rad2deg=ko.rad2deg;be.angleDelta=ko.angleDelta;be.angleDist=ko.angleDist;be.isFullCircle=ko.isFullCircle;be.isAngleInsideSector=ko.isAngleInsideSector;be.isPtInsideSector=ko.isPtInsideSector;be.pathArc=ko.pathArc;be.pathSector=ko.pathSector;be.pathAnnulus=ko.pathAnnulus;var Yf=oS();be.isLeftAnchor=Yf.isLeftAnchor;be.isCenterAnchor=Yf.isCenterAnchor;be.isRightAnchor=Yf.isRightAnchor;be.isTopAnchor=Yf.isTopAnchor;be.isMiddleAnchor=Yf.isMiddleAnchor;be.isBottomAnchor=Yf.isBottomAnchor;var Wf=uS();be.segmentsIntersect=Wf.segmentsIntersect;be.segmentDistance=Wf.segmentDistance;be.getTextLocation=Wf.getTextLocation;be.clearLocationCache=Wf.clearLocationCache;be.getVisibleSegment=Wf.getVisibleSegment;be.findPointOnPath=Wf.findPointOnPath;var $p=bt();be.extendFlat=$p.extendFlat;be.extendDeep=$p.extendDeep;be.extendDeepAll=$p.extendDeepAll;be.extendDeepNoArrays=$p.extendDeepNoArrays;var Ob=au();be.log=Ob.log;be.warn=Ob.warn;be.error=Ob.error;var oue=Ff();be.counterRegex=oue.counter;var Bb=jp();be.throttle=Bb.throttle;be.throttleDone=Bb.done;be.clearThrottle=Bb.clear;var ro=nh();be.getGraphDiv=ro.getGraphDiv;be.isPlotDiv=ro.isPlotDiv;be.removeElement=ro.removeElement;be.addStyleRule=ro.addStyleRule;be.addRelatedStyleRule=ro.addRelatedStyleRule;be.deleteRelatedStyleRule=ro.deleteRelatedStyleRule;be.setStyleOnHover=ro.setStyleOnHover;be.getFullTransformMatrix=ro.getFullTransformMatrix;be.getElementTransformMatrix=ro.getElementTransformMatrix;be.getElementAndAncestors=ro.getElementAndAncestors;be.equalDomRects=ro.equalDomRects;be.clearResponsive=vS();be.preserveDrawingBuffer=pS();be.makeTraceGroups=mS();be._=bS();be.notifier=gb();be.filterUnique=_S();be.filterVisible=TS();be.pushUnique=_b();be.increment=MS();be.cleanNumber=SS();be.ensureNumber=function(r){return RS(r)?(r=Number(r),r>FS||r=r?!1:RS(e)&&e>=0&&e%1===0};be.noop=Pp();be.identity=Lb();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;nuue.test(window.navigator.userAgent);var fue=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=fue.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 ch.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 OS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return OS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var hue={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>Hb(yp(Ks({},e),{opts:hue}));var due={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>Hb(yp(Ks({},e),{opts:due}));var pue=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function yue(e){var r=e.match(pue);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var mue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>Hb(yp(Ks({},e),{opts:mue}));var CS=/^[:|\|]/;function Hb({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=yue(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(OS.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,q=t===!1?o:t;return w=Jp&&o<=ES,u=l>=Jp&&l<=ES;if(s&&(a=10*a+o-Jp),u&&(n=10*n+l-Jp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Vf=2e9;be.seedPseudoRandom=function(){Vf=2e9};be.pseudoRandom=function(){var e=Vf;return Vf=(69069*Vf+1)%4294967296,Math.abs(Vf-e)<429496729?be.pseudoRandom():Vf/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 DS=be.getFirefoxVersion(),gue=DS!==null&&DS<86;be.getPositionFromD3Event=function(){return gue?[ch.event.layerX,ch.event.layerY]:[ch.event.offsetX,ch.event.offsetY]}});var GS=N(()=>{"use strict";var bue=Ee(),HS={"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(Ub in HS)US=Ub.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),bue.addStyleRule(US,HS[Ub]);var US,Ub});var Gb=N((xDe,VS)=>{VS.exports=!0});var Yb=N((_De,YS)=>{"use strict";var xue=Gb(),Vb;typeof window.matchMedia=="function"?Vb=!window.matchMedia("(hover: none)").matches:Vb=xue;YS.exports=Vb});var su=N((wDe,Wb)=>{"use strict";var jf=typeof Reflect=="object"?Reflect:null,WS=jf&&typeof jf.apply=="function"?jf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Kp;jf&&typeof jf.ownKeys=="function"?Kp=jf.ownKeys:Object.getOwnPropertySymbols?Kp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Kp=function(r){return Object.getOwnPropertyNames(r)};function _ue(e){console&&console.warn&&console.warn(e)}var ZS=Number.isNaN||function(r){return r!==r};function Et(){Et.init.call(this)}Wb.exports=Et;Wb.exports.once=Mue;Et.EventEmitter=Et;Et.prototype._events=void 0;Et.prototype._eventsCount=0;Et.prototype._maxListeners=void 0;var jS=10;function Qp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return jS},set:function(e){if(typeof e!="number"||e<0||ZS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");jS=e}});Et.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};Et.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||ZS(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 XS(e){return e._maxListeners===void 0?Et.defaultMaxListeners:e._maxListeners}Et.prototype.getMaxListeners=function(){return XS(this)};Et.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")WS(s,this,t);else for(var u=s.length,f=eq(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,_ue(l)}return e}Et.prototype.addListener=function(r,t){return JS(this,r,t,!1)};Et.prototype.on=Et.prototype.addListener;Et.prototype.prependListener=function(r,t){return JS(this,r,t,!0)};function wue(){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 $S(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=wue.bind(a);return n.listener=t,a.wrapFn=n,n}Et.prototype.once=function(r,t){return Qp(t),this.on(r,$S(this,r,t)),this};Et.prototype.prependOnceListener=function(r,t){return Qp(t),this.prependListener(r,$S(this,r,t)),this};Et.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Qp(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():Tue(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Et.prototype.off=Et.prototype.removeListener;Et.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 KS(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?Aue(n):eq(n,n.length)}Et.prototype.listeners=function(r){return KS(this,r,!0)};Et.prototype.rawListeners=function(r){return KS(this,r,!1)};Et.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):QS.call(e,r)};Et.prototype.listenerCount=QS;function QS(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}Et.prototype.eventNames=function(){return this._eventsCount>0?Kp(this._events):[]};function eq(e,r){for(var t=new Array(r),a=0;a{"use strict";var jb=su().EventEmitter,Sue={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 aq=Ee(),que=tu().dfltConfig;function Lue(e,r){for(var t=[],a,n=0;nque.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};hl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};hl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};hl.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";oq.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Jf=N(ba=>{"use strict";var vi=br(),hh=Ee(),r1=gn(),Xb=Of(),Cue=Zb(),Eue=ih(),Due=tu().configAttributes,lq=Qi(),to=hh.extendDeepAll,Zf=hh.isPlainObject,Rue=hh.isArrayOrTypedArray,t1=hh.nestedProperty,Pue=hh.valObjectMeta,Jb="_isSubplotObj",a1="_isLinkedToArray",Fue="_arrayAttrRegexps",uq="_deprecated",$b=[Jb,a1,Fue,uq];ba.IS_SUBPLOT_OBJ=Jb;ba.IS_LINKED_TO_ARRAY=a1;ba.DEPRECATED=uq;ba.UNDERSCORE_ATTRS=$b;ba.get=function(){var e={};return vi.allTypes.forEach(function(r){e[r]=Iue(r)}),{defs:{valObjects:Pue,metaKeys:$b.concat(["description","role","editType","impliedEdits"]),editType:{traces:lq.traces,layout:lq.layout},impliedEdits:{}},traces:e,layout:zue(),frames:Oue(),animation:Xf(Eue),config:Xf(Due)}};ba.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if($b.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ba.isValObject(o)&&Zf(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)Rue(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(!e1(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function e1(e){return e===Math.round(e)&&e>=0}function Iue(e){var r,t;r=vi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=to({},r1),i=to({},r.attributes);ba.crawl(i,function(s,u,f,c,v){t1(n,v).set(void 0),s===void 0&&t1(i,v).set(void 0)}),to(a,n),vi.traceIs(e,"noOpacity")&&delete a.opacity,vi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),vi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,to(a,i),t.attributes&&to(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Xf(a)};if(r.layoutAttributes){var l={};to(l,r.layoutAttributes),o.layoutAttributes=Xf(l)}return r.animatable||ba.crawl(o,function(s){ba.isValObject(s)&&"anim"in s&&delete s.anim}),o}function zue(){var e={},r,t;to(e,Xb);for(r in vi.subplotsRegistry)if(t=vi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var $f=Ee(),Vue=gn(),es="templateitemname",Kb={name:{valType:"string",editType:"none"}};Kb[es]={valType:"string",editType:"calc"};uu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Kb.name,r[es]=Kb[es],r};uu.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=$f.coerce(i,{},Vue,"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}};uu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);$f.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};uu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[vq(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(!cq(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?$f.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)$f.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var xa=N((qDe,hq)=>{"use strict";var dh=Ff().counter;hq.exports={idRegex:{x:dh("x","( domain)?"),y:dh("y","( domain)?")},attrRegex:dh("[xy]axis"),xAxisMatch:dh("xaxis"),yAxisMatch:dh("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 ua=N(En=>{"use strict";var Yue=br(),Qb=xa();En.id2name=function(r){if(!(typeof r!="string"||!r.match(Qb.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(Qb.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(Qb.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),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};En.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function dq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Wue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}pq.exports={clearOutlineControllers:Wue,clearOutline:jue}});var n1=N((EDe,yq)=>{"use strict";yq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var l1=N(o1=>{"use strict";var i1=br(),DDe=xa().SUBPLOT_PATTERN;o1.getSubplotCalcData=function(e,r,t){var a=i1.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Zue=br(),Kf=Ee();fu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=fu.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){mq(e,o,n.cache),n.check=function(){if(i){var f=mq(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;Kf.isPlainObject(i)?ex(i,r,o,a+1):r(o,n,i)}})}});var ta=N((FDe,Pq)=>{"use strict";var Sq=Sr(),Jue=Ef().timeFormatLocale,$ue=lb().formatLocale,ph=Rr(),Kue=sb(),Qr=br(),qq=Jf(),Que=_t(),vr=Ee(),Lq=Tr(),_q=zt().BADNUM,Dn=ua(),efe=rs().clearOutline,rfe=n1(),rx=ih(),tfe=Zb(),afe=l1().getModuleCalcData,wq=vr.relinkPrivateKeys,cu=vr._,er=Pq.exports={};vr.extendFlat(er,Qr);er.attributes=gn();er.attributes.type.values=er.allTypes;er.fontAttrs=ga();er.layoutAttributes=Of();var u1=xq();er.executeAPICommand=u1.executeAPICommand;er.computeAPICommandBindings=u1.computeAPICommandBindings;er.manageCommandObserver=u1.manageCommandObserver;er.hasSimpleAPICommandBindings=u1.hasSimpleAPICommandBindings;er.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(er.previousPromises(e)))},300)})};er.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};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.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=Sq.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&&nfe(e,i),o.text(i.text()&&l.text()?" - ":"")}};function nfe(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(){er.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})}}er.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Sq.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=er.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var ife=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],ofe=["year","month","dayMonth","dayMonthYear"];er.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||er.createTransitionData(e),n._dfltTitle={plot:cu(e,"Click to enter Plot title"),subtitle:cu(e,"Click to enter Plot subtitle"),x:cu(e,"Click to enter X axis title"),y:cu(e,"Click to enter Y axis title"),colorbar:cu(e,"Click to enter Colorscale title"),annotation:cu(e,"new text")},n._traceWord=cu(e,"trace");var v=Tq(e,ife);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,x=f.autosizable,T=y&&(m||x);T?er.plotAutoSize(e,i,n):y&&er.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=ufe(v,n.separators),n._extraFormat=Tq(e,ofe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=sfe(),b=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=lfe(o,s),er.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,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),I=R,B=z;I&&!B?a._bgLayer.remove():B&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&efe({_fullLayout:a}),ffe(l,n),wq(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=er.layoutAttributes.width.min,v=er.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}),er.sanitizeMargins(a)};er.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 er.doAutoMargin(e)}};function vfe(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}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Cq(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"&&ph(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var q=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-q)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,I=P.val,B=P.size,G=t-o.r-o.l,Y=a-o.t-o.b;for(var V in v){if(ph(z)&&v[V].r){var H=v[V].r.val,X=v[V].r.size;if(H>R){var j=(z*H+(X-G)*R)/(H-R),ee=(X*(1-R)+(z-G)*(1-H))/(H-R);j+ee>s+u&&(s=j,u=ee)}}if(ph(B)&&v[V].t){var fe=v[V].t.val,ie=v[V].t.size;if(fe>I){var ue=(B*fe+(ie-Y)*I)/(fe-I),K=(ie*(1-I)+(B-Y)*(1-fe))/(fe-I);ue+K>c+f&&(c=ue,f=K)}}}}}var we=vr.constrain(t-i.l-i.r,Eq,p),se=vr.constrain(a-i.t-i.b,Dq,y),ce=Math.max(0,t-we),he=Math.max(0,a-se);if(ce){var ye=(s+u)/ce;ye>1&&(s/=ye,u/=ye)}if(he){var W=(c+f)/he;W>1&&(c/=W,f/=W)}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&&(er.didMarginChange(l,n)||vfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};er.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&er.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)?Kue.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)};er.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=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=Dn.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:_q,y:_q}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(Mq(t,a,n),l=0;l{"use strict";vu.xmlns="http://www.w3.org/2000/xmlns/";vu.svg="http://www.w3.org/2000/svg";vu.xlink="http://www.w3.org/1999/xlink";vu.svgAttrs={xmlns:vu.svg,"xmlns:xlink":vu.xlink}});var Oa=N((IDe,Fq)=>{"use strict";Fq.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(hi=>{"use strict";var fa=Sr(),pl=Ee(),yfe=pl.strTranslate,tx=dl(),mfe=Oa().LINE_SPACING,gfe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;hi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(gfe),i=fa.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=Efe(e.node(),a);s&&e.style("pointer-events","all"),hi.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};wfe(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"),q=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,q]+")"+yfe(-w/2,D-k/2)});else if(o[0]==="l")q=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,q=D;else{var P=e.attr("text-anchor");M=M-w*(P==="middle"?.5:P==="end"?1:0),q=q+D-k/2}p.attr({x:M,y:q}),t&&t.call(e,y),s(y)})})):l(),e};var bfe=/(<|<|<)/g,xfe=/(>|>|>)/g;function _fe(e){return e.replace(bfe,"\\lt ").replace(xfe,"\\gt ")}var Nq=[["$","$"],["\\(","\\)"]];function wfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){pl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=pl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Nq},displayAlign:"left"})},u=function(){i=pl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Nq},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-"+pl.randstr({},64);l=fa.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(_fe(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(!_)pl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),w;a===2?w=fa.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 Bq={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"},Tfe={sub:"0.3em",sup:"-0.6em"},Afe={sub:"-0.21em",sup:"0.42em"},Iq="\u200B",zq=["http:","https:","mailto:","",void 0,":"],Hq=hi.NEWLINES=/(\r\n?|\n)/g,nx=/(<[^<>]*>)/,ix=/<(\/?)([^ >]*)(\s+(.*))?>/i,Mfe=//i;hi.BR_TAG_ALL=//gi;var Uq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Gq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Vq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,kfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function hu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&f1(a)}var Sfe=/(^|;)\s*color:/;hi.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(nx),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 qfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Lfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f1(e){return e.replace(Lfe,function(r,t){var a;return t.charAt(0)==="#"?a=Cfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=qfe[t],a||r})}hi.convertEntities=f1;function Cfe(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 Efe(e,r){r=r.replace(Hq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(tx.svg,"tspan");fa.select(k).attr({class:"line",dy:i*mfe+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q.",r);return}var M=a.pop();k!==M.type&&pl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Mfe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(nx),v=0;v{"use strict";var Dfe=Sr(),v1=Sn(),mh=Rr(),c1=Ee(),Wq=Tr(),Rfe=eu().isValid;function Pfe(e,r,t){var a=r?c1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(c1.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Kq(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 eL=Mb(),Nfe=eL.FORMAT_LINK,Ife=eL.DATE_FORMAT_LINK;function zfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ox:rL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ox(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: "+Nfe+"."].join(" ")}function rL(e,r){return ox(e,r)+[" And for dates see: "+Ife+".","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(" ")}tL.exports={axisHoverFormat:zfe,descriptionOnlyNumbers:ox,descriptionWithDates:rL}});var di=N((UDe,bL)=>{"use strict";var aL=ga(),Qf=ui(),gL=fi().dash,sx=bt().extendFlat,nL=_t().templatedArray,HDe=Yn().templateFormatStringDescription,iL=ao().descriptionWithDates,Ofe=zt().ONEDAY,So=xa(),Bfe=So.HOUR_PATTERN,Hfe=So.WEEKDAY_PATTERN,lx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ufe=sx({},lx,{values:lx.values.slice().concat(["sync"])});function oL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var lL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},sL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},uL={valType:"data_array",editType:"ticks"},fL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function cL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function vL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var hL={valType:"color",dflt:Qf.defaultLine,editType:"ticks"},dL={valType:"color",dflt:Qf.lightLine,editType:"ticks"};function pL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var yL=sx({},gL,{editType:"ticks"}),mL={valType:"boolean",editType:"ticks"};bL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:aL({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:[So.idRegex.x.toString(),So.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:[So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"calc"},rangebreaks:nL("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:[Hfe,Bfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Ofe},editType:"calc"}),tickmode:Ufe,nticks:oL(),tick0:lL,dtick:sL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:uL,ticktext:{valType:"data_array",editType:"ticks"},ticks:fL,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:cL(),tickwidth:vL(),tickcolor:hL,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:sx({},gL,{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:aL({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:iL("tick label")},tickformatstops:nL("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:iL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Qf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:mL,gridcolor:dL,gridwidth:pL(),griddash:yL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Qf.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:Qf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"plot"},minor:{tickmode:lx,nticks:oL("minor"),tick0:lL,dtick:sL,tickvals:uL,ticks:fL,ticklen:cL("minor"),tickwidth:vL("minor"),tickcolor:hL,gridcolor:dL,gridwidth:pL("minor"),griddash:yL,showgrid:mL,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 h1=N((GDe,wL)=>{"use strict";var Dt=di(),xL=ga(),_L=bt().extendFlat,Gfe=Qi().overrideAll;wL.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: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:_L({},Dt.ticks,{dflt:""}),ticklabeloverflow:_L({},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:xL({}),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:xL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var qo=N((YDe,AL)=>{"use strict";var Vfe=h1(),Yfe=Ff().counter,Wfe=Db(),TL=eu().scales,VDe=Wfe(TL);function d1(e){return"`"+e+"`"}AL.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"?TL[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 "+d1(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=d1(u+d),T=d1(u+p),_=d1(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=Vfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Yfe("coloraxis"),dflt:null,editType:"calc"}),M}});var fx=N((WDe,ML)=>{"use strict";var jfe=bt().extendFlat,Zfe=qo(),ux=eu().scales;ML.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ux.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ux.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ux.RdBu,editType:"calc"}},coloraxis:jfe({_isSubplotObj:!0,editType:"calc"},Zfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var cx=N((jDe,kL)=>{"use strict";var Xfe=Ee();kL.exports=function(r){return Xfe.isPlainObject(r.colorbar)}});var dx=N(hx=>{"use strict";var vx=Rr(),SL=Ee(),qL=zt(),Jfe=qL.ONEDAY,$fe=qL.ONEWEEK;hx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Jfe:1;if(!e)return i;if(vx(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=vx(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};hx.tick0=function(e,r,t,a){if(r==="date")return SL.cleanDate(e,SL.dateTick0(t,a%$fe===0?1:0));if(!(a==="D1"||a==="D2"))return vx(e)?Number(e):0}});var p1=N((XDe,CL)=>{"use strict";var LL=dx(),Kfe=Ee().isArrayOrTypedArray,Qfe=Vn().isTypedArraySpec,ece=Vn().decodeTypedArraySpec;CL.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 Qfe(_)&&(_=ece(_)),_!==void 0?_:(s._template||{})[T]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Kfe(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=LL.dtick(v,n);s.tick0=LL.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 y1=N((JDe,DL)=>{"use strict";var px=Ee(),EL=di();DL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?EL.minor:EL,u=i?"minor.":"",f=px.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=px.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=px.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 yx=N(($De,RL)=>{"use strict";RL.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 no=N((KDe,PL)=>{"use strict";var m1=Ee(),rce=_t();PL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=m1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=rce.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var mx=Ee(),tce=Tr().contrast,FL=di(),ace=yx(),nce=no();NL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");mx.isPlainObject(o)||delete t.labelalias;var l=ace(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?tce(i.bgColor):f&&f!==FL.color.dflt?f:u.color;if(mx.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");nce(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ice}),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 ice(e,r){function t(n,i){return mx.coerce(e,r,FL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var b1=N((eRe,IL)=>{"use strict";var oce=yx();IL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=oce(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var gx=N((rRe,zL)=>{"use strict";var ts=Ee(),lce=_t(),sce=p1(),uce=y1(),fce=g1(),cce=b1(),vce=h1();zL.exports=function(r,t,a){var n=lce.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return ts.coerce(i,n,vce,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"),sce(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),cce(i,n,o,"linear",q),fce(i,n,o,"linear",q),uce(i,n,o,"linear",q),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 yl=N((tRe,HL)=>{"use strict";var OL=Rr(),xx=Ee(),hce=cx(),dce=gx(),BL=eu().isValid,pce=br().traceIs;function bx(e,r){var t=r.slice(0,r.length-1);return r?xx.nestedProperty(e,t).get()||{}:e}HL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=bx(r,o),f=bx(t,o),c=bx(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=pce(t,"contour")&&xx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,xx.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"],_=OL(x)&&OL(T)&&x{"use strict";var UL=Ee(),yce=_t(),GL=fx(),mce=yl();VL.exports=function(r,t){function a(c,v){return UL.coerce(r,t,GL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return UL.coerce(i,o,GL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=yce.newContainer(t,s,"coloraxis"),o._name=s,mce(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var gce=Ee(),bce=jn().hasColorscale,xce=jn().extractOpts;WL.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?gce.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=xce(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 ZL=Rr(),_x=Ee(),_ce=jn().extractOpts;XL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?_x.nestedProperty(t,o).get():t,s=_ce(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return _x.aggNums(Math.min,null,i)},p=function(){return _x.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&ZL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&ZL(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((oRe,JL)=>{"use strict";var x1=eu(),rc=jn();JL.exports={moduleType:"component",name:"colorscale",attributes:qo(),layoutAttributes:fx(),supplyLayoutDefaults:YL(),handleDefaults:yl(),crossTraceDefaults:jL(),calc:ec(),scales:x1.scales,defaultScale:x1.defaultScale,getScale:x1.get,isValidScale:x1.isValid,hasColorscale:rc.hasColorscale,extractOpts:rc.extractOpts,extractScale:rc.extractScale,flipScale:rc.flipScale,makeColorScaleFunc:rc.makeColorScaleFunc,makeColorScaleFuncFromTrace:rc.makeColorScaleFuncFromTrace}});var Rn=N((lRe,KL)=>{"use strict";var $L=Ee(),wce=Vn().isTypedArraySpec;KL.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 $L.isPlainObject(r)&&($L.isArrayOrTypedArray(r.size)||wce(r.size))}}});var eC=N((sRe,QL)=>{"use strict";var Tce=Rr();QL.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 Tce(s)&&s>0?Math.max(s,i):0}}});var Co=N(Za=>{"use strict";var _1=Ee();Za.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Za.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{aC.exports=qce;var wx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Sce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function qce(e){var r=[];return e.replace(Sce,function(t,a,n){var i=a.toLowerCase();for(n=Cce(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==wx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Ece=Tx(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",nC=Math.sqrt(2),as=Math.sqrt(3),Ax=Math.PI,Mx=Math.cos,kx=Math.sin;uC.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/nC,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/nC,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=Ax/2.5,n=2*e*Mx(a),i=2*e*kx(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=Ax/4,n=2*e*Mx(a),i=2*e*kx(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 iC,oC,lC,sC;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(lC===e&&sC===r&&iC===t)return oC;lC=e,sC=r,iC=t;function a(m,x){var T=Mx(m),_=kx(m),b=x[0],w=x[1]+(r||0);return[b*T-w*_,b*_+w*T]}for(var n=e/180*Ax,i=0,o=0,l=Ece(t),s="",u=0;u{"use strict";var Ma=Sr(),pt=Ee(),Dce=pt.numberFormat,mu=Rr(),Dx=Sn(),T1=br(),Ba=Tr(),Rce=Lo(),bh=pt.strTranslate,A1=Aa(),Pce=dl(),Fce=Oa(),Nce=Fce.LINE_SPACING,xC=Dp().DESELECTDIM,Ice=Rn(),zce=eC(),Oce=Co().appendArrayPointValue,tr=CC.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(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",Sx(Hce(f))),s&&e.style("text-shadow",s==="auto"?A1.makeTextShadow(Ba.contrast(i)):Sx(s)),u&&e.style("text-decoration-line",Sx(Uce(u)))};function Sx(e){return e==="none"?void 0:e}var Bce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Hce(e){return Bce[e]}function Uce(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(mu(n)&&mu(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",bh(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=T1.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||!mu(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||"";Ba.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(Ba.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 _C(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(AC,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(Ba.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=Ma.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};_C(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&&_C(n,a[0].trace,r,t)})};var cC=fC();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(cC).forEach(function(e){var r=cC[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 Gce=tr.symbolNames.length,Vce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(mu(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>=Gce||e>=400?0:Math.floor(Math.max(e,0))};function wC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?Vce:"")}var vC=Dce("~f"),TC={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=TC[a];return AC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function AC(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=Fx(e,t),c=Px(e,t);r.attr("d",wC(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):pt.isArrayOrTypedArray(l.color)?p=Ba.defaultLine:p=l.color,pt.isArrayOrTypedArray(o.color)&&(d=Ba.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(Ba.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,pt.isArrayOrTypedArray(_)&&(_=_[0],TC[_]||(_=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 q=t.uid;v&&(q+="-"+e.i),tr.gradient(r,n,q,_,[[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),z=b.fgopacity,I=w(b.size,e.i,8),B=w(b.solidity,e.i,.3);E=E||e.mcc||pt.isArrayOrTypedArray(b.shape)||pt.isArrayOrTypedArray(b.path)||pt.isArrayOrTypedArray(b.bgcolor)||pt.isArrayOrTypedArray(b.fgcolor)||pt.isArrayOrTypedArray(b.size)||pt.isArrayOrTypedArray(b.solidity);var G=t.uid;E&&(G+="-"+e.i),tr.pattern(r,"point",n,G,k,I,B,e.mcc,b.fillmode,R,P,z)}else pt.isArrayOrTypedArray(d)?Ba.fill(r,d[e.i]):Ba.fill(r,d);y&&Ba.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),T1.traceIs(e,"symbols")&&(r.ms2mrc=Ice.isBubble(e)?zce(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.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;(pt.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:xC*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 T1.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:Ba.addOpacity(c,xC))},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){Ba.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",wC(tr.symbolNumber(l),s,Fx(o,r),Px(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?pt.extractOption(l,r,"txt","texttemplate"):pt.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={};Oce(v,r,l.i),u=pt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=kC(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(A1.convertToTspans,t).call(MC,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=kC(a,r);Ba.fill(n,i);var s=T1.traceIs(r,"bar-like");MC(n,o,l,a.mrc2||a.mrc,s)})}};var hC=.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=LC;tr.makeTester=function(){var e=pt.ensureSingleById(Ma.select("body"),"svg","js-plotly-tester",function(t){t.attr(Pce.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"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Lx=0,jce=1e4;tr.bBox=function(e,r,t){t||(t=dC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return pt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=dC(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 pt.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(A1.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 Lx>=jce&&(tr.savedBBoxes={},Lx=0),t&&(tr.savedBBoxes[t]=d),Lx++,pt.extendFlat({},d)};function dC(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",Rx(r,t))};function Rx(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+=bh(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 Zce=/\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(Zce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Xce=/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(Xce);r===1&&t===1?a=[]:a=[bh(o,l),"scale("+r+","+t+")",bh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Px(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=Px;var gh=Math.atan2,du=Math.cos,ac=Math.sin;function pC(e,r){var t=r[0],a=r[1];return[t*du(e)-a*ac(e),t*ac(e)+a*du(e)]}var yC,mC,gC,bC,Cx,Ex;function Fx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.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=gh(v[1]-n,v[0]-a),p=gh(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=yC/180*Math.PI,_=mC/180*Math.PI,b=T-m,w=du(_)*ac(b),k=ac(_)*du(x)-du(_)*ac(x)*du(b);y=-gh(w,k)-Math.PI,yC=u,mC=f}var M=pC(d,[du(y),0]),q=pC(p,[ac(y),0]);t=gh(M[1]+q[1],M[0]+q[0])/Math.PI*180,i==="previous"&&!(Ex===r.uid&&e.i===Cx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Ex===r.uid&&e.i===Cx+1&&mu(a)&&mu(n)){var E=a-gC,D=n-bC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=gh(D,E)/Math.PI*180+90}else t=null}return gC=a,bC=n,Cx=e.i,Ex=r.uid,t}tr.getMarkerAngle=Fx});var oc=N((hRe,PC)=>{"use strict";var nc=Sr(),Jce=Rr(),$ce=ta(),Nx=br(),gu=Ee(),EC=gu.strTranslate,M1=Wr(),k1=Tr(),ic=Aa(),DC=Dp(),Kce=Oa().OPPOSITE_SIDE,RC=/ [XY][0-9]* /,Ix=1.6,zx=1.6;function Qce(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,q=m.lineposition,E=m.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},I=(z.text||"").trim(),B=!1,G=1,Y=z.font,V=Y.family,H=Y.size,X=Y.color,j=Y.weight,ee=Y.style,fe=Y.variant,ie=Y.textcase,ue=Y.lineposition,K=Y.shadow,we;i==="title.text"?we="titleText":i.indexOf("axis")!==-1?we="axisTitleText":i.indexOf("colorbar")!==-1&&(we="colorbarTitleText");var se=e._context.edits[we];function ce(Be,Ge){return Be===void 0||Ge===void 0?!1:Be.replace(RC," % ")===Ge.replace(RC," % ")}p===""?v=0:ce(p,o)&&(se||(p=""),v=.2,y=!0),P&&(I===""?G=0:ce(I,R)&&(se||(I=""),G=.2,B=!0)),t._meta?p=gu.templateString(p,t._meta):a._meta&&(p=gu.templateString(p,a._meta));var he=p||I||se,ye;c||(c=gu.ensureSingle(a._infolayer,"g","g-"+r),ye=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(he?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,Z=r+"-subtitle",le=I||se;if(P&&(Q=c.selectAll("text."+Z).data(le?[0]:[]),Q.enter().append("text"),Q.text(I).attr("class",Z),Q.exit().remove()),!he)return c;function ve(Be,Ge){gu.syncOrAsync([me,Ce],{title:Be,subtitle:Ge})}function me(Be){var Ge=Be.title,De=Be.subtitle,Oe;!f&&ye&&(f={}),f?(Oe="",f.rotate&&(Oe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ye)&&(Oe+=EC(0,(f.offset||0)-(ye||0)))):Oe=null,Ge.attr("transform",Oe);function Ue(Te){if(Te){var qe=nc.select(Te.node().parentNode).select("."+Z);if(!qe.empty()){var He=Te.node().getBBox();if(He.height){var Je=He.y+He.height+Ix*H;qe.attr("y",Je)}}}}if(Ge.style("opacity",v*k1.opacity(_)).call(M1.font,{color:k1.rgb(_),size:nc.round(T,2),family:x,weight:b,style:w,variant:k,textcase:M,shadow:E,lineposition:q}).attr(u).call(ic.convertToTspans,e,Ue),De&&!De.empty()){var oe=c.select("."+r+"-math-group"),Ae=Ge.node().getBBox(),Xe=oe.node()?oe.node().getBBox():void 0,hr=Xe?Xe.y+Xe.height+Ix*H:Ae.y+Ae.height+zx*H,Ne=gu.extendFlat({},u,{y:hr});De.attr("transform",Oe),De.style("opacity",G*k1.opacity(X)).call(M1.font,{color:k1.rgb(X),size:nc.round(H,2),family:V,weight:j,style:ee,variant:fe,textcase:ie,shadow:K,lineposition:ue}).attr(Ne).call(ic.convertToTspans,e)}return $ce.previousPromises(e)}function Ce(Be){var Ge=Be.title,De=nc.select(Ge.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Oe=Kce[s.side],Ue=s.side==="left"||s.side==="top"?-1:1,oe=Jce(s.pad)?s.pad:2,Ae=M1.bBox(De.node()),Xe={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var Ne in hr)for(var Te in hr[Ne]){var qe=hr[Ne][Te];Xe[Te]=Math.max(Xe[Te],qe)}var He={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},Je=s.maxShift||Ue*(He[s.side]-Ae[s.side]),Ve=0;if(Je<0)Ve=Je;else{var Ze=s.offsetLeft||0,or=s.offsetTop||0;Ae.left-=Ze,Ae.right-=Ze,Ae.top-=or,Ae.bottom-=or,s.selection.each(function(){var Ke=M1.bBox(this);gu.bBoxIntersect(Ae,Ke,oe)&&(Ve=Math.max(Ve,Ue*(Ke[s.side]-Ae[Oe])+oe))}),Ve=Math.min(Je,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Je<0){var rr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];De.attr("transform",EC(rr[0],rr[1]))}}}W.call(ve,Q);function Pe(Be,Ge){Be.text(Ge).on("mouseover.opacity",function(){nc.select(this).transition().duration(DC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){nc.select(this).transition().duration(DC.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(p?W.on(".opacity",null):(Pe(W,o),y=!0),W.call(ic.makeEditable,{gd:e}).on("edit",function(Be){l!==void 0?Nx.call("_guiRestyle",e,i,Be,l):Nx.call("_guiRelayout",e,i,Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Be){this.text(Be||" ").call(ic.positionText,u.x,u.y)}),P)){if(P&&!p){var Le=W.node().getBBox(),ze=Le.y+Le.height+zx*H;Q.attr("y",ze)}I?Q.on(".opacity",null):(Pe(Q,R),B=!0),Q.call(ic.makeEditable,{gd:e}).on("edit",function(Be){Nx.call("_guiRelayout",e,"title.subtitle.text",Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Be){this.text(Be||" ").call(ic.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",y),Q&&!Q.empty()&&Q.classed("js-placeholder",B),c}PC.exports={draw:Qce,SUBTITLE_PADDING_EM:zx,SUBTITLE_PADDING_MATHJAX_EM:Ix}});var lc=N((dRe,OC)=>{"use strict";var eve=Sr(),rve=Ef().utcFormat,wt=Ee(),tve=wt.numberFormat,Eo=Rr(),ns=wt.cleanNumber,ave=wt.ms2DateTime,FC=wt.dateTime2ms,Do=wt.ensureNumber,NC=wt.isArrayOrTypedArray,is=zt(),S1=is.FP_SAFE,io=is.BADNUM,nve=is.LOG_CLIP,ive=is.ONEWEEK,q1=is.ONEDAY,L1=is.ONEHOUR,IC=is.ONEMIN,zC=is.ONESEC,C1=ua(),R1=xa(),E1=R1.HOUR_PATTERN,D1=R1.WEEKDAY_PATTERN;function xh(e){return Math.pow(10,e)}function Ox(e){return e!=null}OC.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*nve*Math.abs(k-M))}else return io}function o(b,w,k,M){if((M||{}).msUTC&&Eo(b))return+b;var q=FC(b,k||r.calendar);if(q===io)if(Eo(b)){b=+b;var E=Math.floor(wt.mod(b+.05,1)*10),D=Math.round(b-E/10);q=FC(new Date(D))+E/10}else return io;return q}function l(b,w,k){return ave(b,w,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Ox(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 io}function f(b,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,q=M*b,E=0,D=0;DR)E=D+1;else{E=q<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):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:Do,r.l2c=r.type==="log"?xh:Do,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 xh(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=Do,r.d2p=r.r2p=function(b){return r.l2p(ns(b))},r.p2d=r.p2r=x,r.cleanPos=Do):r.type==="log"?(r.d2r=r.d2l=function(b,w){return i(ns(b),w)},r.r2d=r.r2c=function(b){return xh(ns(b))},r.d2c=r.r2l=ns,r.c2d=r.l2r=Do,r.c2r=i,r.l2d=xh,r.d2p=function(b,w){return r.l2p(r.d2r(b,w))},r.p2d=function(b){return xh(x(b))},r.r2p=function(b){return r.l2p(ns(b))},r.p2r=x,r.cleanPos=Do):r.type==="date"?(r.d2r=r.r2d=wt.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 wt.cleanDate(b,io,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=Do,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:Do(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=Do,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:Do(b)},r.setupMultiCategory=function(b){var w=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var E in q)if(E!==a){var D=t[C1.id2name(E)];w=w.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k),M[0]===M[1]){var P=r.l2r(w),R=r.l2r(k);if(w!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var I=R+1;w!==void 0&&(I=Math.max(I,P)),M[E?0:1]=I}}}},r.cleanRange=function(b,w){r._cleanRange(b,w),r.limitRange(b)},r._cleanRange=function(b,w){w||(w={}),b||(b="range");var k=wt.nestedProperty(r,b).get(),M,q;if(r.type==="date"?q=wt.dfltRange(r.calendar):n==="y"?q=R1.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=w.dfltRange||R1.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){wt.nestedProperty(r,b).set(q);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=wt.cleanDate(k[0],io,r.calendar),k[1]=wt.cleanDate(k[1],io,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!wt.isDateTime(k[M],r.calendar)){r[b]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=wt.constrain(r.r2l(k[0]),wt.MIN_MS+1e3,wt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Eo(k[M]))if(!(E||D)&&Eo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=q;break}if(k[M]<-S1?k[M]=-S1:k[M]>S1&&(k[M]=S1),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=C1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],q),D=r.r2l(r[M][1],q),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,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(I=!I),I&&r._rangebreaks.reverse();var B=I?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;Rq&&(q+=7,Eq&&(q+=24,E=M&&E=M&&b=K.min&&(eeK.max&&(K.max=fe),ie=!1)}ie&&D.push({min:ee,max:fe})}};for(k=0;k{"use strict";var BC=Rr(),Bx=Ee(),ove=zt().BADNUM,P1=Bx.isArrayOrTypedArray,lve=Bx.isDateTime,sve=Bx.cleanNumber,HC=Math.round;GC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(P1(n)&&!n.length)return"-";if(!i&&hve(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function UC(e){return Math.max(1,(e-1)/1e3)}function vve(e,r){for(var t=e.length,a=UC(t),n=0,i=0,o={},l=0;ln*2}function hve(e){return P1(e[0])&&P1(e[1])}});var _h=N((yRe,$C)=>{"use strict";var dve=Sr(),jC=Rr(),os=Ee(),N1=zt().FP_SAFE,pve=br(),yve=Wr(),ZC=ua(),mve=ZC.getFromId,gve=ZC.isLinked;$C.exports={applyAutorangeOptions:JC,getAutoRange:Hx,makePadFn:Ux,doAutoRange:xve,findExtremes:_ve,concatExtremes:Yx};function Hx(e,r){var t,a,n=[],i=e._fullLayout,o=Ux(i,r,0),l=Ux(i,r,1),s=Yx(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&&(q=k,E=M,w=P/D):P/_>w&&(q={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 z=c-1,I=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,z),Math.max(1,I)]:n=[z,I]}else x?(q.val>=0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(q.val-w*o(q)<0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-q.val-VC(r,k.val,M.val))/(_-o(q)-l(E)),n=[q.val-w*o(q),E.val+w*l(E)];return n=JC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),os.simpleMap(n,r.l2r||Number)}function VC(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),q=b(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-N1&&(T=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function Gx(e,r,t,a){XC(e,r,t,a,wve)}function Vx(e,r,t,a){XC(e,r,t,a,Tve)}function XC(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 WC(e){return jC(e)&&Math.abs(e)=r}function Ave(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&I1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&I1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Mve(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&I1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&I1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function I1(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=Ave(t,r),a=Mve(a,r),[t,a]}});var Ir=N((gRe,xE)=>{"use strict";var pi=Sr(),ca=Rr(),sc=ta(),Th=br(),xr=Ee(),uc=xr.strTranslate,bu=Aa(),kve=oc(),Ah=Tr(),Zn=Wr(),Sve=di(),KC=dx(),mRe=xa(),Ha=zt(),qve=Ha.ONEMAXYEAR,B1=Ha.ONEAVGYEAR,H1=Ha.ONEMINYEAR,Lve=Ha.ONEMAXQUARTER,Xx=Ha.ONEAVGQUARTER,U1=Ha.ONEMINQUARTER,Cve=Ha.ONEMAXMONTH,fc=Ha.ONEAVGMONTH,G1=Ha.ONEMINMONTH,Xn=Ha.ONEWEEK,nn=Ha.ONEDAY,ls=nn/2,Po=Ha.ONEHOUR,Mh=Ha.ONEMIN,V1=Ha.ONESEC,Eve=Ha.ONEMILLI,Dve=Ha.ONEMICROSEC,xu=Ha.MINUS_SIGN,W1=Ha.BADNUM,Jx={K:"zeroline"},$x={K:"gridline",L:"path"},Kx={K:"minor-gridline",L:"path"},uE={K:"tick",L:"path"},QC={K:"tick",L:"text"},eE={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},j1=Oa(),wh=j1.MID_SHIFT,_u=j1.CAP_SHIFT,kh=j1.LINE_SPACING,Rve=j1.OPPOSITE_SIDE,Y1=3,Ye=xE.exports={};Ye.setConvert=lc();var Pve=F1(),Fo=ua(),Fve=Fo.idSort,Nve=Fo.isLinked;Ye.id2name=Fo.id2name;Ye.name2id=Fo.name2id;Ye.cleanId=Fo.cleanId;Ye.list=Fo.list;Ye.listIds=Fo.listIds;Ye.getFromId=Fo.getFromId;Ye.getFromTrace=Fo.getFromTrace;var fE=_h();Ye.getAutoRange=fE.getAutoRange;Ye.findExtremes=fE.findExtremes;var Ive=1e-4;function t5(e){var r=(e[1]-e[0])*Ive;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")+nn*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+nn*15.5:e-=ls;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&ca(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=ca(r.dtick),s=ca(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Wx(u,f)?u===2*Xn&&f===2*nn&&(e.dtick=Xn):u===2*Xn&&f===3*nn?e.dtick=Xn:u===Xn&&!(r._input.minor||{}).nticks?e.dtick=nn:aE(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Wx(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"?Wx(u,f)||(e.dtick=aE(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Wx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function aE(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>=H1?u>=H1&&u<=qve?c=u:c=B1:t===Xx&&f>=U1?u>=U1&&u<=Lve?c=u:c=Xx:f>=G1?u>=G1&&u<=Cve?c=u:c=fc:t===Xn&&f>=Xn?c=Xn:f>=nn?c=nn:t===ls&&f>=ls?c=ls:t===Po&&f>=Po&&(c=Po);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;mXn&&(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]=(_?0:1);b--){var w=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(w?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){b?(m=[],p=nE(r,!w)):(x=[],y=nE(r,!w));continue}if(k.tickmode==="sync"){m=[],p=Gve(r);continue}var M=t5(u),q=M[0],E=M[1],D=ca(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=Ye.tickFirst(k,t);if(b){if(r._tmin=R,R=E:I<=E;I=Ye.tickIncrement(I,Y,f,n)){if(b&&B++,k.rangebreaks&&!f){if(I=v)break}if(m.length>d||I===z)break;z=I;var V={value:I};b?(P&&I!==(I|0)&&(V.simpleLabel=!0),i>1&&B%i&&(V.skipLabel=!0),m.push(V)):(V.minor=!0,x.push(V))}}if(!x||x.length<2)s=!1;else{var H=(x[1].value-x[0].value)*(l?-1:1);dhe(H,r.tickformat)||(s=!1)}if(!s)T=m;else{var X=m.concat(x);o&&m.length&&(X=X.slice(1)),X=X.sort(function(ze,Be){return ze.value-Be.value}).filter(function(ze,Be,Ge){return Be===0||ze.value!==Ge[Be-1].value});var j=X.map(function(ze,Be){return ze.minor===void 0&&!ze.skipLabel?Be:null}).filter(function(ze){return ze!==null});j.forEach(function(ze){s.map(function(Be){var Ge=ze+Be;Ge>=0&&Ge-1;he--){if(m[he].drop){m.splice(he,1);continue}m[he].value=Zx(m[he].value,r);var Z=r.c2p(m[he].value);(ye?Q>Z-W:Qv||Dev&&(Ge.periodX=v),Den&&vB1)r/=B1,a=n(10),e.dtick="M"+12*Ro(r,a,z1);else if(i>fc)r/=fc,e.dtick="M"+Ro(r,1,iE);else if(i>nn){if(e.dtick=Ro(r,nn,e._hasDayOfWeekBreaks?[1,2,7,14]:Vve),!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>Po?e.dtick=Ro(r,Po,iE):i>Mh?e.dtick=Ro(r,Mh,oE):i>V1?e.dtick=Ro(r,V1,oE):(a=n(10),e.dtick=Ro(r,a,z1))}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"+Ro(r,a,z1)}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))):o5(e)?(e.tick0=0,a=1,e.dtick=Ro(r,a,Yve)):(e.tick0=0,a=n(10),e.dtick=Ro(r,a,z1));if(e.dtick===0&&(e.dtick=1),!ca(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function dE(e){var r=e.dtick;if(e._tickexponent=0,!ca(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>=nn&&n<=10||r>=nn*15)e._tickround="d";else if(r>=Mh&&n<=16||r>=Po)e._tickround="M";else if(r>=V1&&n<=19||r>=Mh)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(ca(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ca(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&&(cc(e.exponentformat)&&e.exponentformat!=="SI extended"&&!a5(s)||cc(e.exponentformat)&&e.exponentformat==="SI extended"&&!n5(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(ca(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"?hE:vE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(pi.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=qh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function jve(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=Sh(Math.pow(10,o),e,n,a);else if(ca(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"||cc(p)&&p!=="SI extended"&&a5(v)||cc(p)&&p==="SI extended"&&n5(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":xu)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":xu)+d:(r.text=Sh(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 Zve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Xve(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 Jve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Sh(r.x,e,n,a)}function $ve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Kve(i);if(o[1]>=100)r.text=Sh(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=xu+r.text)}}}else r.text=Sh(r.x,e,n,a)}function Kve(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 yE=["f","p","n","\u03BC","m","","k","M","G","T"],Qve=["q","r","y","z","a",...yE,"P","E","Z","Y","R","Q"],cc=e=>["SI","SI extended","B"].includes(e);function a5(e){return e>14||e<-15}function n5(e){return e>32||e<-30}function ehe(e,r){return cc(r)?!!(r==="SI extended"&&n5(e)||r!=="SI extended"&&a5(e)):!1}function Sh(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:ca(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};dE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,xu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":cc(o)&&(e+=o==="SI extended"?Qve[l/3+10]:yE[l/3+5])}return n?xu+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*fc}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&&r5(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),r5(r,p,a,!0),r5(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=hhe(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 ze=u+(Le||"tick");return w[ze]||(w[ze]=nhe(r,ze,x)),w[ze]}if(r.visible){var M=Ye.makeTransTickFn(r),q=Ye.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=rhe(r,_);D=Ye.clipEnds(r,z),E=P?D:z}else D=Ye.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var I=r._gridVals=D,B=ahe(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,Y={};for(i=0;i0?De.bottom-Be:0,Ge))));var Ae=0,Xe=0;if(r._shiftPusher&&(Ae=Math.max(Ge,De.height>0?Le==="l"?Be-De.left:De.right-Be:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Xe+=sE(r))),r._fullDepth=Math.max(Ae,Xe)),r.automargin){Oe={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(Le==="b"?Oe[Le]=r._depth:(Oe[Le]=r._depth=Math.max(De.width>0?Be-De.top:0,Ge),hr.reverse()),De.width>0){var Te=De.right-(r._offset+r._length);Te>0&&(Oe.xr=1,Oe.r=Te);var qe=r._offset-De.left;qe>0&&(Oe.xl=0,Oe.l=qe)}}else if(Le==="l"?(r._depth=Math.max(De.height>0?Be-De.left:0,Ge),Oe[Le]=r._depth-Ne):(r._depth=Math.max(De.height>0?De.right-Be:0,Ge),Oe[Le]=r._depth+Ne,hr.reverse()),De.height>0){var He=De.bottom-(r._offset+r._length);He>0&&(Oe.yb=0,Oe.b=He);var Je=r._offset-De.top;Je>0&&(Oe.yt=1,Oe.t=Je)}Oe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Oe[Le]+=sE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[ze]+=Ge),r.mirror===!0||r.mirror==="ticks"?Ue[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Pe&&(oe=Th.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(lE(Oe,r.automargin),lE(Ue,r.automargin)),sc.autoMargin(e,i5(r),Oe),sc.autoMargin(e,gE(r),Ue),sc.autoMargin(e,bE(r),oe)}),xr.syncOrAsync(me)}};function lE(e,r){if(e){var t=Object.keys(eE).reduce(function(a,n){return r.indexOf(n)!==-1&&eE[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 rhe(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 uc(n+e._offset+e.l2p(Qx(v))+t,i+a)}:function(v){return uc(i+a,n+e._offset+e.l2p(Qx(v))+t)}};function Qx(e){return e.periodX!==void 0?e.periodX:e.x}function ihe(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=Y1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*_u,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Y1),s&&f==="top"&&(v-=d*(1-_u)),(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(z){return a.indexOf(z)!==-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,q=e._id.charAt(0),E=e.tickangle,D;if(q==="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+=wh:E===-90&&M==="bottom"?b=_u:E===90&&M==="top"?b=wh:b=.5,k=wh/2*(E/90)),x.xFn=function(z){return z.dx+T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,I){if(f){if(l)return"end";if(s)return"start"}return!ca(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},x.heightFn=function(z,I,B){return I<-60||I>60?-.5*B:e.side==="top"!==c?-B:0};else if(q==="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=_u:b=.5),c){var P=ca(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*_u*w,b=0}}x.xFn=function(z){return z.dx+r-(T+z.fontSize*b)*w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*wh},x.anchorFn=function(z,I){return ca(I)&&Math.abs(I)===90?"middle":D?"end":"start"},x.heightFn=function(z,I,B){return e.side==="right"&&(I*=-1),I<-30?-B:I<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 Ah.stroke(pi.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),X1(r,[uE]),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 Ah.stroke(pi.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)}}X1(r,[$x,Kx])}};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 Fve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Ah.stroke,r.zerolinecolor||Ah.defaultLine).style("stroke-width",Zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),X1(r,[Jx])};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 X=pi.select(this),j=e._promises.length;X.call(bu.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(bu.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),X1(r,[QC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(H){pi.select(this).select("text").call(bu.positionText,s.xFn(H),s.yFn(H))});function d(H,X){H.each(function(j){var ee=pi.select(this),fe=ee.select(".text-math-group"),ie=s.anchorFn(j,X),ue=t.transFn.call(ee.node(),j)+(ca(X)&&+X!=0?" rotate("+X+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),K=bu.lineCount(ee),we=kh*j.fontSize,se=s.heightFn(j,ca(X)?+X:0,(K-1)*we);if(se&&(ue+=uc(0,se)),fe.empty()){var ce=ee.select("text");ce.attr({transform:ue,"text-anchor":ie}),ce.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var he=Zn.bBox(fe.node()).width,ye=he*{end:-.5,start:.5}[ie];fe.attr("transform",ue+uc(ye,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var X=H.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,fe=j?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var ie=xr.simpleMap(r.range,r.r2l);ee=r.l2p(ie[0])+r._offset,fe=r.l2p(ie[1])+r._offset}var ue=Math.min(ee,fe),K=Math.max(ee,fe),we=r.side,se=1/0,ce=-1/0;c.each(function(Q){var Z=pi.select(this),le=Z.select(".text-math-group");if(le.empty()){var ve=Zn.bBox(Z.node()),me=0;j?(ve.right>K||ve.leftK||ve.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+ie._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=[],j,ee=1;c.each(function(Oe){H=Math.max(H,Oe.fontSize);var Ue=r.l2p(Oe.x),oe=e5(this),Ae=Zn.bBox(oe.node());ee=Math.max(ee,bu.lineCount(oe)),X.push({top:0,bottom:10,height:10,left:Ue-Ae.width/2,right:Ue+Ae.width/2+2,width:Ae.width+2})});var fe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ie=l.length,ue=Math.abs((l[ie-1].x-l[0].x)*r._m)/(ie-1),K=fe?ue/2:ue,we=fe?r.ticklen:H*1.25*ee,se=Math.sqrt(Math.pow(K,2)+Math.pow(we,2)),ce=K/se,he=r.autotickangles.map(function(Oe){return Oe*Math.PI/180}),ye=he.find(function(Oe){return Math.abs(Math.cos(Oe))<=ce});ye===void 0&&(ye=he.reduce(function(Oe,Ue){return Math.abs(Math.cos(Oe))G*B&&(R=B,E[q]=D[q]=z[q])}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 ohe(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(Ah.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 sE(e){var r=e.title.font.size,t=(e.title.text.match(bu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(_u+t*kh):t?r*(t+1)*kh:r}function lhe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(bu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*_u:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(wh+l*kh));else{var s=qh(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,kve.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)===W1)&&(mE(r,0)||!she(e,r,t,a)||uhe(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return mE(e,t.x)})};function mE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Dve:/%L/.test(r)?e>=Eve:/%[SX]/.test(r)?e>=V1:/%M/.test(r)?e>=Mh:/%[HI]/.test(r)?e>=Po:/%p/.test(r)?e>=ls:/%[Aadejuwx]/.test(r)?e>=nn:/%[UVW]/.test(r)?e>=Xn:/%[Bbm]/.test(r)?e>=G1:/%[q]/.test(r)?e>=U1:/%[Yy]/.test(r)?e>=H1:!0}});var wE=N((bRe,_E)=>{"use strict";_E.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 l5=N((xRe,TE)=>{"use strict";var phe=wE();TE.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&&(phe(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var ME=N((_Re,AE)=>{var yhe={left:0,top:0};AE.exports=mhe;function mhe(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=ghe(r);return t[0]=a-i.left,t[1]=n-i.top,t}function ghe(e){return e===window||e===document||e===document.body?yhe:e.getBoundingClientRect()}});var s5=N((wRe,kE)=>{"use strict";var bhe=Gb();function xhe(){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}kE.exports=bhe&&xhe()});var qE=N((TRe,SE)=>{"use strict";SE.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 EE=N((ARe,CE)=>{"use strict";var LE=Ee(),_he=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];CE.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),_he[t][r]}});var RE=N((MRe,DE)=>{"use strict";var whe=vh(),The=jp(),Ahe=nh().getGraphDiv,Mhe=eh(),u5=DE.exports={};u5.wrapped=function(e,r,t){e=Ahe(e),e._fullLayout&&The.clear(e._fullLayout._uid+Mhe.HOVERID),u5.raw(e,r,t)};u5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&whe.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 yi=N((kRe,IE)=>{"use strict";var khe=ME(),f5=Yb(),She=s5(),qhe=Ee().removeElement,Lhe=xa(),wu=IE.exports={};wu.align=qE();wu.getCursor=EE();var FE=RE();wu.unhover=FE.wrapped;wu.unhoverRaw=FE.raw;wu.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,She?(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 NE(){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}wu.coverSlip=NE;function PE(e){return khe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var ss=N((SRe,zE)=>{"use strict";zE.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 HE=N((qRe,BE)=>{"use strict";var c5=ss(),Lh="data-savedcursor",OE="!!";BE.exports=function(r,t){var a=r.attr(Lh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var v5=ga(),Che=ui();UE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Che.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:v5({editType:"legend"}),grouptitlefont:v5({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:v5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Eh=N(Ch=>{"use strict";Ch.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Ch.isVertical=function(r){return r.orientation!=="h"};Ch.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Ch.getId=function(r){return r._id||"legend"}});var p5=N((ERe,GE)=>{"use strict";var J1=br(),Jn=Ee(),Ehe=_t(),Dhe=gn(),Rhe=h5(),Phe=Of(),d5=Eh();function Fhe(e,r,t,a,n){var i=r[e]||{},o=Ehe.newContainer(t,e);function l(H,X){return Jn.coerce(i,o,Rhe,H,X)}var s=Jn.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 j=f._input,ee=f;return Jn.coerce(j,ee,Dhe,H,X)},v=t.font||{},d=Jn.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 J1.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"),q=l("yref"),E=l("xref"),D=M==="h",P=q==="paper",R=E==="paper",z,I,B,G="left";D?(z=0,J1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,B="bottom"):(I=1,B="top"):P?(I=-.1,B="top"):(I=0,B="bottom")):(I=1,B="auto",R?z=1.02:(z=1,G="right")),Jn.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),Jn.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),d5.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"),Jn.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",D?"left":"top");var V=Jn.extendFlat({},s,{size:Jn.bigFont(s.size)});Jn.coerceFont(l,"title.font",V);let H=n>1;l("titleclick",H?"toggle":!1),l("titledoubleclick",H?"toggleothers":!1)}}}GE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var us=br(),y5=Ee(),Nhe=y5.pushUnique,Ihe=Eh(),VE=!0;m5.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"&&VE&&t.data&&t._context.showTips&&(y5.notifier(y5._(t,"Double-click on legend to isolate one trace"),"long"),VE=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,c=(i.shapes||[]).filter(function(Pe){return Pe.showlegend}),v=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,m,x,T,_,b,w={},k=[],M=[],q=[];function E(Pe,Le){var ze=k.indexOf(Pe),Be=w.visible;return Be||(Be=w.visible=[]),k.indexOf(Pe)===-1&&(k.push(Pe),ze=k.length-1),Be[ze]=Le,ze}var D=(i.shapes||[]).map(function(Pe){return Pe._input}),P=!1;function R(Pe,Le){D[Pe].visible=Le,P=!0}function z(Pe,Le){if(!(o.groupTitle&&!s)){var ze=Pe._fullInput||Pe,Be=ze._isShape,Ge=ze.index;Ge===void 0&&(Ge=ze._index);var De=ze.visible===!1?!1:Le;Be?R(Ge,De):E(Ge,De)}}var I=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;y{"use strict";YE.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((PRe,jE)=>{"use strict";var WE=br(),x5=Eh();jE.exports=function(r,t,a){var n=t._inHover,i=x5.isGrouped(t),o=x5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(H,X,j){if(t.visible!==!1&&!(a&&H!==t._id))if(X===""||!x5.isGrouped(t)){var ee="~~i"+c;s.push(ee),l[ee]=[j],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,l[X]=[j]):l[X].push(j)}for(d=0;dR&&(P=R)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var z=function(H,X){return H[0]._groupMinRank-X[0]._groupMinRank||H[0]._preGroupSort-X[0]._preGroupSort},I=function(H,X){return H.trace.legendrank-X.trace.legendrank||H._preSort-X._preSort};for(E.forEach(function(H,X){H[0]._preGroupSort=X}),E.sort(z),d=0;d{"use strict";var $1=Ee();function XE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Tu.formatPiePercent=function(r,t){var a=XE((r*100).toPrecision(3));return $1.numSeparate(a,t)+"%"};Tu.formatPieValue=function(r,t){var a=XE(r.toPrecision(10));return $1.numSeparate(a,t)};Tu.getFirstFilled=function(r,t){if($1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var zhe=Wr(),Ohe=Tr();JE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?zhe.pointStyle(r,a,n,t):Ohe.fill(r,t.color)}});var Q1=N((IRe,eD)=>{"use strict";var KE=Tr(),QE=K1().castOption,Bhe=$E();eD.exports=function(r,t,a,n){var i=a.marker.line,o=QE(i.color,t.pts)||KE.defaultLine,l=QE(i.width,t.pts)||0;r.call(Bhe,t,a,n).style("stroke-width",l).call(KE.stroke,o)}});var A5=N((zRe,oD)=>{"use strict";var on=Sr(),_5=br(),Xa=Ee(),rD=Xa.strTranslate,$n=Wr(),mi=Tr(),w5=jn().extractOpts,ey=Rn(),Hhe=Q1(),Uhe=K1().castOption,Ghe=b5(),tD=12,aD=5,Au=2,Vhe=10,vc=5;oD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Ghe.itemGap*2)/2,s=rD(l,0),u=function(M,q,E,D){var P;if(M+1)P=M;else if(q&&q.width>0)P=q.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var q=on.select(this),E=Xa.ensureSingle(q,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var I={top:1,bottom:-1}[P],B=I*(.5*(R-z+3))||0,G=a.indentation;E.attr("transform",rD(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 q=nD(M),E=q.showFill,D=q.showLine,P=q.showGradientLine,R=q.showGradientFill,z=q.anyFill,I=q.anyLine,B=M[0],G=B.trace,Y,V,H=w5(G),X=H.colorscale,j=H.reversescale,ee=function(ce){if(ce.size())if(E)$n.fillGroupStyle(ce,t,!0);else{var he="legendfill-"+G.uid;$n.gradient(ce,t,he,T5(j),X,"fill")}},fe=function(ce){if(ce.size()){var he="legendline-"+G.uid;$n.lineGroupStyle(ce),$n.gradient(ce,t,he,T5(j),X,"stroke")}},ie=ey.hasMarkers(G)||!z?"M5,0":I?"M5,-2":"M5,-3",ue=on.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",ie+"h"+o+"v6h-"+o+"z").call(ee),D||P){var we=u(void 0,G.line,Vhe,aD);V=Xa.minExtend(G,{line:{width:we}}),Y=[Xa.minExtend(B,{trace:V})]}var se=ue.select(".legendlines").selectAll("path").data(D||P?[Y]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",ie+(P?"l"+o+",0.0001":"h"+o)).call(D?$n.lineGroupStyle:fe)}function c(M){var q=nD(M),E=q.anyFill,D=q.anyLine,P=q.showLine,R=q.showMarker,z=M[0],I=z.trace,B=!R&&!D&&!E&&ey.hasText(I),G,Y;function V(K,we,se,ce){var he=Xa.nestedProperty(I,K).get(),ye=Xa.isArrayOrTypedArray(he)&&we?we(he):he;if(i&&ye&&ce!==void 0&&(ye=ce),se){if(yese[1])return se[1]}return ye}function H(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var X={},j={};if(R){X.mc=V("marker.color",H),X.mx=V("marker.symbol",H),X.mo=V("marker.opacity",Xa.mean,[.2,1]),X.mlc=V("marker.line.color",H),X.mlw=V("marker.line.width",Xa.mean,[0,5],Au),X.mld=I._isShape?"solid":V("marker.line.dash",H),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Xa.mean,[2,16],tD);X.ms=ee,j.marker.size=ee}P&&(j.line={width:V("line.width",H,[0,10],aD)}),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=[Xa.minExtend(z,X)],Y=Xa.minExtend(I,j),Y.selectedpoints=null,Y.texttemplate=null}var fe=on.select(this).select("g.legendpoints"),ie=fe.selectAll("path.scatterpts").data(R?G:[]);ie.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ie.exit().remove(),ie.call($n.pointStyle,Y,t),R&&(G[0].mrc=3);var ue=fe.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($n.textPointStyle,Y,t)}function v(M){var q=M[0].trace,E=q.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=[];q.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=on.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(z){var I=on.select(this),B=q[z[0]].marker,G=u(void 0,B.line,vc,Au);I.attr("d",z[1]).style("stroke-width",G+"px").call(mi.fill,B.color),G&&I.call(mi.stroke,B.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,q,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=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",I=E?D.visible&&D.type===E:_5.traceIs(D,"bar"),B=on.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(I?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(G){var Y=on.select(this),V=G[0],H=u(V.mlw,P.line,vc,Au);Y.style("stroke-width",H+"px");var X=V.mcc;if(!a._inHover&&"mc"in V){var j=w5(P),ee=j.mid;ee===void 0&&(ee=(j.max+j.min)/2),X=$n.tryColorscale(P,"")(ee)}var fe=X||V.mc||P.color,ie=P.pattern,ue=$n.getPatternAttr,K=ie&&(ue(ie.shape,0,"")||ue(ie.path,0,""));if(K){var we=ue(ie.bgcolor,0,null),se=ue(ie.fgcolor,0,null),ce=ie.fgopacity,he=iD(ie.size,8,10),ye=iD(ie.solidity,.5,1),W="legend-"+D.uid;Y.call($n.pattern,"legend",t,W,K,he,ye,X,ie.fillmode,we,se,ce)}else Y.call(mi.fill,fe);H&&mi.stroke(Y,V.mlc||R.color)})}function m(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&_5.traceIs(q,"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=on.select(this);if((q.boxpoints==="all"||q.points==="all")&&mi.opacity(q.fillcolor)===0&&mi.opacity((q.line||{}).color)===0){var P=Xa.minExtend(q,{marker:{size:i?tD:Xa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call($n.pointStyle,P,t)}else{var R=u(void 0,q.line,vc,Au);D.style("stroke-width",R+"px").call(mi.fill,q.fillcolor),R&&mi.stroke(D,q.line.color)}})}function x(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.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=on.select(this),z=q[P?"increasing":"decreasing"],I=u(void 0,z.line,vc,Au);R.style("stroke-width",I+"px").call(mi.fill,z.fillcolor),I&&mi.stroke(R,z.line.color)})}function T(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.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=on.select(this),z=q[P?"increasing":"decreasing"],I=u(void 0,z.line,vc,Au);R.style("fill","none").call($n.dashLine,z.line.dash,I),I&&mi.stroke(R,z.line.color)})}function _(M){w(M,this,"pie")}function b(M){w(M,this,"funnelarea")}function w(M,q,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:_5.traceIs(P,E),z=on.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var I=P.marker||{},B=u(Uhe(I.line.width,D.pts),I.line,vc,Au),G="pieLike",Y=Xa.minExtend(P,{marker:{line:{width:B}}},G),V=Xa.minExtend(D,{trace:Y},G);Hhe(z,V,Y,t)}}function k(M){var q=M[0].trace,E,D=[];if(q.visible)switch(q.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=on.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,z){var I=on.select(this),B=w5(q),G=B.colorscale,Y=B.reversescale,V=function(ee){if(ee.size()){var fe="legendfill-"+q.uid;$n.gradient(ee,t,fe,T5(Y,E==="radial"),G,"fill")}},H;if(G){if(!E){var j=G.length;H=z===0?G[Y?j-1:0][1]:z===1?G[Y?0:j-1][1]:G[Math.floor((j-1)/2)][1]}}else{var X=q.vertexcolor||q.facecolor||q.color;H=Xa.isArrayOrTypedArray(X)?X[z]||X[0]:X}I.attr("d",R[0]),H?I.call(mi.fill,H):I.call(V)})}};function T5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function nD(e){var r=e[0].trace,t=r.contours,a=ey.hasLines(r),n=ey.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 iD(e,r,t){return e&&Xa.isArrayOrTypedArray(e)?r:e>t?t:e}});var q5=N((ORe,pD)=>{"use strict";var bn=Sr(),aa=Ee(),k5=ta(),Mu=br(),ay=vh(),M5=yi(),na=Wr(),Dh=Tr(),ku=Aa(),lD=g5().handleItemClick,sD=g5().handleTitleClick,va=b5(),S5=Oa(),hD=S5.LINE_SPACING,dc=S5.FROM_TL,uD=S5.FROM_BR,fD=ZE(),Yhe=A5(),pc=Eh(),hc=1,Whe=/^legend[0-9]*$/;pD.exports=function(r,t){if(t)cD(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(Whe)&&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(),k5.autoMargin(e,n);var y=aa.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=aa.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),x=aa.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});x.call(Dh.stroke,t.bordercolor).call(Dh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=aa.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=aa.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(na.font,_.font).text(_.text),ty(b,T,e,t,hc),!l&&(t.titleclick||t.titledoubleclick)&&Jhe(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=aa.ensureSingle(y,"rect","scrollbar",function(q){q.attr(va.scrollBarEnterAttrs).call(Dh.fill,va.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(aa.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(q){let E=q[0],D=E.trace;if(E.groupTitle){let P=D.legendgroup,R=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(R).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return Mu.traceIs(D,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){bn.select(this).call(Zhe,e,t)}).call(Yhe,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||bn.select(this).call(Xhe,e,n)}),aa.syncOrAsync([k5.previousPromises,function(){return Qhe(e,k,M,t,T)},function(){var q=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),ve=e._fullData.concat(le).some(function(me){let Ce=me.legend||"legend";var Pe=Array.isArray(Ce)?Ce.includes(n):Ce===n;return Pe&&me.visible===!0});b.style("opacity",ve?1:.5)}if(!l){var R,z;D?R=q.l+q.w*t.x-dc[ny(t)]*t._width:R=a.width*t.x-dc[ny(t)]*t._width,P?z=q.t+q.h*(1-t.y)-dc[iy(t)]*t._effHeight:z=a.height*(1-t.y)-dc[iy(t)]*t._effHeight;var I=e0e(e,n,R,z);if(I)return;if(a.margin.autoexpand){var B=R,G=z;R=D?aa.constrain(R,0,a.width-t._width):B,z=P?aa.constrain(z,0,a.height-t._effHeight):G,R!==B&&aa.log("Constrain "+n+".x to make legend fit inside graph"),z!==G&&aa.log("Constrain "+n+".y to make legend fit inside graph")}na.setTranslate(y,R,z)}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}),na.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*E,height:Y-2*E,x:E,y:E}),na.setClipUrl(T,i,e),na.setRect(w,0,0,0,0),delete t._scrollY}else{var V=Math.max(va.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-V-2*va.scrollBarMargin,X=t._height-t._effHeight,j=H/X,ee=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*E+va.scrollBarWidth+va.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+va.scrollBarWidth+va.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),na.setClipUrl(T,i,e),he(ee,V,j),y.on("wheel",function(){ee=aa.constrain(t._scrollY+bn.event.deltaY/X*H,0,X),he(ee,V,j),ee!==0&&ee!==X&&bn.event.preventDefault()});var fe,ie,ue,K=function(le,ve,me){var Ce=(me-ve)/j+le;return aa.constrain(Ce,0,X)},we=function(le,ve,me){var Ce=(ve-me)/j+le;return aa.constrain(Ce,0,X)},se=bn.behavior.drag().on("dragstart",function(){var le=bn.event.sourceEvent;le.type==="touchstart"?fe=le.changedTouches[0].clientY:fe=le.clientY,ue=ee}).on("drag",function(){var le=bn.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ie=le.changedTouches[0].clientY:ie=le.clientY,ee=K(ue,fe,ie),he(ee,V,j))});w.call(se);var ce=bn.behavior.drag().on("dragstart",function(){var le=bn.event.sourceEvent;le.type==="touchstart"&&(fe=le.changedTouches[0].clientY,ue=ee)}).on("drag",function(){var le=bn.event.sourceEvent;le.type==="touchmove"&&(ie=le.changedTouches[0].clientY,ee=we(ue,fe,ie),he(ee,V,j))});T.call(ce)}function he(le,ve,me){t._scrollY=e._fullLayout[n]._scrollY=le,na.setTranslate(T,0,-le),na.setRect(w,t._width,va.scrollBarMargin+le*me,va.scrollBarWidth,ve),m.select("rect").attr("y",E+le)}if(e._context.edits.legendPosition){var ye,W,Q,Z;y.classed("cursor-move",!0),M5.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==w.node()){var ve=na.getTranslate(y);Q=ve.x,Z=ve.y}},moveFn:function(le,ve){if(Q!==void 0&&Z!==void 0){var me=Q+le,Ce=Z+ve;na.setTranslate(y,me,Ce),ye=M5.align(me,t._width,q.l,q.l+q.w,t.xanchor),W=M5.align(Ce+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ye!==void 0&&W!==void 0){var le={};le[n+".x"]=ye,le[n+".y"]=W,Mu.call("_guiRelayout",e,le)}},clickFn:function(le,ve){var me=o.selectAll("g.traces").filter(function(){var Ce=this.getBoundingClientRect();return ve.clientX>=Ce.left&&ve.clientX<=Ce.right&&ve.clientY>=Ce.top&&ve.clientY<=Ce.bottom});me.size()>0&&dD(e,t,me,le,ve)}})}}],e)}}function ry(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 dD(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),Mu.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=ay.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&lD(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=ay.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&lD(t,e,r,s)}}function Zhe(e,r,t){var a=pc.getId(t),n=e.data()[0][0],i=n.trace,o=Mu.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=aa.templateString(u,i._meta))));var c=aa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(na.font,f).text(l?vD(u,s):u);var v=t.indentation+t.itemwidth+va.itemGap*2;ku.positionText(c,v,0),l?c.call(ku.makeEditable,{gd:r,text:u}).call(ty,e,r,t).on("edit",function(d){this.text(vD(d,s)).call(ty,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Mu.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Mu.call("_guiRestyle",r,y,i.index)}):ty(c,e,r,t)}function vD(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 Xhe(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=aa.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Dh.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)),dD(r,l,e,i,bn.event)}}))}function Jhe(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Mu.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=aa.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Dh.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(ay.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&sD(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,ay.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&sD(r,t,t.titledoubleclick))}))}function ty(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),ku.convertToTspans(e,t,function(){$he(r,t,a,n)})}function $he(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=pc.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===hc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*hD,v,d;if(l){var p=na.bBox(l);v=p.height,d=p.width,a===hc?na.setTranslate(o,u,u+v*.75):na.setTranslate(o,0,v*.25)}else{var y="."+s+(a===hc?"title":"")+"text",m=e.select(y),x=ku.lineCount(m),T=m.node();if(v=c*x,d=T?na.bBox(T).width:0,a===hc)t.title.side==="left"&&(d+=va.itemGap*2),ku.positionText(m,u+va.titlePad,u+c);else{var _=va.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=va.itemGap,d-=t.indentation+t.itemwidth),ku.positionText(m,_,-c*((x-1)/2-.3))}}a===hc?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function Khe(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 Qhe(e,r,t,a,n){var i=e._fullLayout,o=pc.getId(a);a||(a=i[o]);var l=i._size,s=pc.isVertical(a),u=pc.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=va.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=iy(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,q=x||T||w!=="v"||k!=="paper";M||(M=q?.5:1);let E=q?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=Khe(a);if(s)t.each(function(le){var ve=le[0].height;na.setTranslate(this,c+P[0],c+P[1]+a._height+ve/2+d),a._height+=ve,a._width=Math.max(a._width,le[0].width)}),D=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(le,ve){na.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=ny(a),z=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",B=T||x,G=i.width/2;a._maxWidth=Math.max(z?B&&R==="left"?l.l+l.w:G:I?B&&R==="right"?l.r+l.w:G:l.w,2*p);var Y=0,V=0;t.each(function(le){var ve=ry(le,a,p);Y=Math.max(Y,ve),V+=ve}),D=null;var H=0;if(u){var X=0,j=0,ee=0;r.each(function(){var le=0,ve=0;bn.select(this).selectAll("g.traces").each(function(Ce){var Pe=ry(Ce,a,p),Le=Ce[0].height;na.setTranslate(this,P[0],P[1]+c+d+Le/2+ve),ve+=Le,le=Math.max(le,Pe),b[Ce[0].trace.legendgroup]=le});var me=le+d;j>0&&me+c+j>a._maxWidth?(H=Math.max(H,j),j=0,ee+=X+_,X=ve):X=Math.max(X,ve),na.setTranslate(this,j,ee),j+=me}),a._width=Math.max(H,j)+c,a._height=ee+X+y}else{var fe=t.size(),ie=V+v+(fe-1)*d=a._maxWidth&&(H=Math.max(H,se),K=0,we+=ue,a._height+=ue,ue=0),na.setTranslate(this,P[0]+c+K,P[1]+c+we+ve/2+d),se=K+me+d,K+=Ce,ue=Math.max(ue,ve)}),ie?(a._width=K+v,a._height=ue+y):(a._width=Math.max(H,se)+v,a._height+=ue+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+va.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+va.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ce=e._context.edits,he=ce.legendText||ce.legendPosition;t.each(function(le){var ve=bn.select(this).select("."+o+"toggle"),me=le[0].height,Ce=le[0].trace.legendgroup,Pe=ry(le,a,p);u&&Ce!==""&&(Pe=b[Ce]);var Le=he?p:D||Pe;!s&&!f&&(Le+=d/2),na.setRect(ve,0,-me/2,Le,me)});var ye=n.select("."+o+"titletext");ye.node()&&jhe(ye,a,c);var W=n.select("."+o+"titletoggle");if(W.size()&&ye.node()){var Q=ye.attr("x")||0,Z=va.titlePad;na.setRect(W,Q-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function e0e(e,r,t,a){var n=e._fullLayout,i=n[r],o=ny(i),l=iy(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 k5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*dc[o],r:i._width*uD[o],b:i._effHeight*uD[l],t:i._effHeight*dc[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 ny(e){return aa.isRightAnchor(e)?"right":aa.isCenterAnchor(e)?"center":"left"}function iy(e){return aa.isBottomAnchor(e)?"bottom":aa.isMiddleAnchor(e)?"middle":"top"}});var D5=N(E5=>{"use strict";var Su=Sr(),ml=Rr(),yD=Sn(),Vt=Ee(),r0e=Vt.pushUnique,L5=Vt.strTranslate,t0e=Vt.strRotate,a0e=vh(),gi=Aa(),n0e=HE(),No=Wr(),ka=Tr(),oy=yi(),Io=Ir(),i0e=xa().zindexSeparator,mc=br(),oo=Co(),qu=eh(),o0e=p5(),l0e=q5(),AD=qu.YANGLE,C5=Math.PI*AD/180,s0e=1/Math.sin(C5),u0e=Math.cos(C5),f0e=Math.sin(C5),Rt=qu.HOVERARROWSIZE,Vr=qu.HOVERTEXTPAD,mD={box:!0,ohlc:!0,violin:!0,candlestick:!0},c0e={scatter:!0,scattergl:!0,splom:!0};function gD(e,r){return e.distance-r.distance}E5.hover=function(r,t,a,n){r=Vt.getGraphDiv(r);var i=t.target;Vt.throttle(r._fullLayout._uid+qu.HOVERID,qu.HOVERMINTIME,function(){v0e(r,t,a,n,i)})};E5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=LD(n),o=CD(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),q=Math.min(_,b),E=Math.max(_,b),D=m.trace;if(mc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,q+=z,E+=z}w.bbox={x0:k+o,x1:M+o,y0:q+i,y1:E+i},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=kD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ka.background,container:Su.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>q[0]._length)return oy.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=Z+q[0]._offset,"xval"in r?G=oo.flat(i,r.xval):G=oo.p2c(M,Q),"yval"in r?Y=oo.flat(i,r.yval):Y=oo.p2c(q,Z),!ml(G[0])||!ml(Y[0]))return Vt.warn("Fx.hover failed",r,e),oy.unhoverRaw(e,r)}var me=1/0;function Ce(dr,yt){for(H=0;Hse&&(I.splice(0,se),me=I[0].distance),c&&z!==0&&I.length===0){we.distance=z,we.index=!1;var Gr=j._module.hoverPoints(we,ue,K,"closest",{hoverLayer:l._hoverlayer});if(Gr&&(Gr=Gr.filter(function(Nt){return Nt.spikeDistance<=z})),Gr&&Gr.length){var Bt,rn=Gr.filter(function(Nt){return Nt.xa.showspikes&&Nt.xa.spikesnap!=="hovered data"});if(rn.length){var jt=rn[0];ml(jt.x0)&&ml(jt.y0)&&(Bt=Le(jt),(!ce.vLinePoint||ce.vLinePoint.spikeDistance>Bt.spikeDistance)&&(ce.vLinePoint=Bt))}var dn=Gr.filter(function(Nt){return Nt.ya.showspikes&&Nt.ya.spikesnap!=="hovered data"});if(dn.length){var pn=dn[0];ml(pn.x0)&&ml(pn.y0)&&(Bt=Le(pn),(!ce.hLinePoint||ce.hLinePoint.spikeDistance>Bt.spikeDistance)&&(ce.hLinePoint=Bt))}}}}}Ce();function Pe(dr,yt,Zr){for(var $r=null,mt=1/0,Lt,Gr=0;Grdr.trace.index===Te.trace.index):I=[Te];var qe=I.length,He=TD("x",Te,l),Je=TD("y",Te,l);Ce(He,Je);var Ve=[],Ze={},or=0,rr=function(dr){var yt=mD[dr.trace.type]?MD(dr):dr.trace.index;if(!Ze[yt])or++,Ze[yt]=or,Ve.push(dr);else{var Zr=Ze[yt]-1,$r=Ve[Zr];Zr>0&&Math.abs(dr.distance)qe-1;Ke--)rr(I[Ke]);I=Ve,De()}var Ie=e._hoverdata,ne=[],de=LD(e),Re=CD(e);for(let dr of I){var Fe=oo.makeEventData(dr,dr.trace,dr.cd);if(dr.hovertemplate!==!1){var Qe=!1;dr.cd[dr.index]&&dr.cd[dr.index].ht&&(Qe=dr.cd[dr.index].ht),dr.hovertemplate=Qe||dr.trace.hovertemplate||!1}if(dr.xa&&dr.ya){var fr=dr.x0+dr.xa._offset,sr=dr.x1+dr.xa._offset,kr=dr.y0+dr.ya._offset,zr=dr.y1+dr.ya._offset,Yr=Math.min(fr,sr),et=Math.max(fr,sr),qt=Math.min(kr,zr),ft=Math.max(kr,zr);Fe.bbox={x0:Yr+Re,x1:et+Re,y0:qt+de,y1:ft+de}}dr.eventData=[Fe],ne.push(Fe)}e._hoverdata=ne;var Ft=v==="y"&&(B.length>1||I.length>1)||v==="closest"&&he&&I.length>1,Tt=ka.combine(l.plot_bgcolor||ka.background,l.paper_bgcolor),pa=kD(I,{gd:e,hovermode:v,rotateLabels:Ft,bgColor:Tt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),$t=pa.hoverLabels;if(oo.isUnifiedHover(v)||(d0e($t,Ft,l,pa.commonLabelBoundingBox),qD($t,Ft,l._invScaleX,l._invScaleY)),n&&n.tagName){var sa=mc.getComponentMethod("annotations","hasClickToShow")(e,ne);n0e(Su.select(n),sa?"pointer":"")}!n||a||!m0e(e,r,Ie)||(Ie&&e.emit("plotly_unhover",{event:r,points:Ie}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:q,xvals:G,yvals:Y}))}function MD(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 h0e=/([\s\S]*)<\/extra>/;function kD(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||qu.HOVERFONT,c=r.fontSize||qu.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 q=0;qa.width-de&&(Re=a.width-de),Te.attr("d","M"+(Ke-Re)+",0L"+(Ke-Re+Rt)+","+ne+Rt+"H"+de+"v"+ne+(Vr*2+rr.height)+"H"+-de+"V"+ne+Rt+"H"+(Ke-Re-Rt)+"Z"),Ke=Re,H.minX=Ke-de,H.maxX=Ke+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,Qe,fr;b.side==="right"?(Fe="start",Qe=1,fr="",Ke=_._offset+_._length):(Fe="end",Qe=-1,fr="-",Ke=_._offset),Ie=b._offset+(T.y0+T.y1)/2,qe.attr("text-anchor",Fe),Te.attr("d","M0,0L"+fr+Rt+","+Rt+"V"+(Vr+rr.height/2)+"h"+fr+(Vr*2+rr.width)+"V-"+(Vr+rr.height/2)+"H"+fr+Rt+"V-"+Rt+"Z"),H.minY=Ie-(Vr+rr.height/2),H.maxY=Ie+(Vr+rr.height/2),b.side==="right"?(H.minX=Ke+Rt,H.maxX=Ke+Rt+(Vr*2+rr.width)):(H.minX=Ke-Rt-(Vr*2+rr.width),H.maxX=Ke-Rt);var sr=rr.height/2,kr=D-rr.top-sr,zr="clip"+a._uid+"commonlabel"+b._id,Yr;if(KeTe.hoverinfo!=="none");if(Ne.length===0)return[];var X=a.hoverlabel,j=X.font,ee=Ne[0],fe=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,ie=fe?Vt.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:fe}):M,ue={showlegend:!0,legend:{title:{text:ie,font:j},font:j,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:j};o0e(ue,K,t._fullData);var we=K.legend;we.entries=[];for(var se=0;se=0?Ae=De:Oe+ve=0?Ae=Oe:Ue+ve=0?Xe=Be:Ge+me=0?Xe=Ge:oe+me=0,(Ne.idealAlign==="top"||!ft)&&Ft?(fr-=kr/2,Ne.anchor="end"):ft?(fr+=kr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=fr;else{if(Ne.pos=fr,ft=Qe+sr/2+qt<=P,Ft=Qe-sr/2-qt>=0,(Ne.idealAlign==="left"||!ft)&&Ft)Qe-=sr/2,Ne.anchor="end";else if(ft)Qe+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var Tt=qt/2,pa=Qe+Tt-P,$t=Qe-Tt;pa>0&&(Qe-=pa),$t<0&&(Qe+=-$t)}Ne.crossPos=Qe}Ie.attr("text-anchor",Ne.anchor),de&&ne.attr("text-anchor",Ne.anchor),Te.attr("transform",L5(Qe,fr)+(i?t0e(AD):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function bD(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=Vt.templateString(e.name,e.trace._meta)),o=wD(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=Vt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(h0e,(p,y)=>(o=wD(y,e.nameLength),""))}return[l,o]}function d0e(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 j=0,ee=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var fe=SD(G,r),ie=G.anchor,ue=ie==="end"?-1:1,K,we;if(ie==="middle")K=G.crossPos+(H?m(fe.y-G.by/2):y(G.bx/2+G.tx2width/2)),we=K+(H?m(G.by):y(G.bx));else if(H)K=G.crossPos+m(Rt+fe.y)-m(G.by/2-Rt),we=K+m(G.by);else{var se=y(ue*Rt+fe.x),ce=se+y(ue*G.bx);K=G.crossPos+Math.min(se,ce),we=G.crossPos+Math.max(se,ce)}H?d!==void 0&&p!==void 0&&Math.min(we,p)-Math.max(K,d)>1&&(V.side==="left"?(j=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(we,v)-Math.max(K,c)>1&&(V.side==="top"?(j=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?s0e:1)/2,pmin:j,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 q(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(q)}for(b=u.length-1;b>=0;b--){var z=u[b];for(w=z.length-1;w>=0;w--){var I=z[w],B=I.datum;B.offset=I.dp,B.del=I.del}}}function SD(e,r){var t=0,a=e.offset;return r&&(a*=-f0e,t=e.offset*u0e),{x:t,y:a}}function p0e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Rt+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 qD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Su.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=p0e(o),v=SD(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*Rt+d)+","+i(Rt+p)+"v"+i(o.by/2-Rt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Rt+d)+"V"+i(p-Rt)+"Z":x="M"+n(f*Rt+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(gi.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(gi.positionText,n(c.text2ShiftX+c.alignShift*Vr+d),i(p+o.ty0-o.by/2+Vr)),l.select("rect").call(No.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 y0e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||ml(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Vt.castOption(n,t,v);return o(p)?p:Vt.extractOption({},a,"",d)}:function(v,d){return Vt.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=Vt.constrain(e.x0,0,e.xa._length),e.x1=Vt.constrain(e.x1,0,e.xa._length),e.y0=Vt.constrain(e.y0,0,e.ya._length),e.y1=Vt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Io.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:Io.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=Io.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Io.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=Io.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Io.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 xD(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=yD.readability(v.color,c)<1.5?ka.contrast(c):v.color,x=f.spikemode,T=f.spikethickness,_=f.spikecolor||m,b=Io.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,q=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),q=Math.max(q,f.position)),w=i.l+M*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":No.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 z=yD.readability(E.color,c)<1.5?ka.contrast(c):E.color,I=u.spikemode,B=u.spikethickness,G=u.spikecolor||z,Y=Io.getPxPosition(e,u),V,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(V=Y,H=P),I.indexOf("across")!==-1){var X=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),j=Math.max(j,u.position)),V=i.t+(1-j)*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":No.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)}I.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 m0e(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 _D(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function wD(e,r){return gi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function g0e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,CD=e=>e.offsetLeft+e.clientLeft;function yc(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Vt.apply3DTransform(t._invTransform)(n,i),u=Vt.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 ly=N((HRe,ED)=>{"use strict";var b0e=Ee(),x0e=Tr(),_0e=Co().isUnifiedHover;ED.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&&_0e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=x0e.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),b0e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var RD=N((URe,DD)=>{"use strict";var w0e=Ee(),T0e=ly(),A0e=Pf();DD.exports=function(r,t){function a(n,i){return w0e.coerce(r,t,A0e,n,i)}T0e(r,t,a)}});var ND=N((GRe,FD)=>{"use strict";var PD=Ee(),M0e=Lp(),k0e=ly();FD.exports=function(r,t,a,n){function i(l,s){return PD.coerce(r,t,M0e,l,s)}var o=PD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),k0e(r,t,i,o)}});var R5=N((VRe,ID)=>{"use strict";var S0e=Ee(),q0e=Pf();ID.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:S0e.coerce(r,t,q0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var BD=N((YRe,OD)=>{"use strict";var zD=Ee(),L0e=Pf(),C0e=R5(),E0e=ly();OD.exports=function(r,t){function a(f,c){return zD.coerce(r,t,L0e,f,c)}var n=C0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),E0e(r,t,a),zD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var GD=N((WRe,UD)=>{"use strict";var P5=Ee(),HD=br();UD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return P5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var R0e=br(),P0e=D5().hover;VD.exports=function(r,t,a){var n=R0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&P0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Pn=N((ZRe,ZD)=>{"use strict";var F0e=Sr(),sy=Ee(),N0e=yi(),Rh=Co(),WD=Pf(),jD=D5();ZD.exports={moduleType:"component",name:"fx",constants:eh(),schema:{layout:WD},attributes:Lp(),layoutAttributes:WD,supplyLayoutGlobalDefaults:RD(),supplyDefaults:ND(),supplyLayoutDefaults:BD(),calc:GD(),getDistanceFunction:Rh.getDistanceFunction,getClosest:Rh.getClosest,inbox:Rh.inbox,quadrature:Rh.quadrature,appendArrayPointValue:Rh.appendArrayPointValue,castHoverOption:z0e,castHoverinfo:O0e,hover:jD.hover,unhover:N0e.unhover,loneHover:jD.loneHover,loneUnhover:I0e,click:YD()};function I0e(e){var r=sy.isD3Selection(e)?e:F0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function z0e(e,r,t){return sy.castOption(e,r,"hoverlabel."+t)}function O0e(e,r,t){function a(n){return sy.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return sy.castOption(e,t,"hoverinfo",a)}});var Lu=N(gl=>{"use strict";gl.selectMode=function(e){return e==="lasso"||e==="select"};gl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};gl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};gl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};gl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};gl.selectingOrDrawing=function(e){return gl.freeMode(e)||gl.rectMode(e)}});var uy=N((JRe,XD)=>{"use strict";XD.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 fy=N(($Re,JD)=>{"use strict";JD.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 vy=N((KRe,$D)=>{"use strict";var cy=32;$D.exports={CIRCLE_SIDES:cy,i000:0,i090:cy/4,i180:cy/2,i270:cy/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var hy=N((QRe,QD)=>{"use strict";var B0e=Ee().strTranslate;function KD(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 H0e(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 U0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return KD(e,t[r])}}function G0e(e){return B0e(e.xaxis._offset,e.yaxis._offset)}QD.exports={p2r:KD,r2p:H0e,axValue:U0e,getTransform:G0e}});var fs=N(bl=>{"use strict";var V0e=Tx(),tR=vy(),gc=tR.CIRCLE_SIDES,F5=tR.SQRT2,aR=hy(),eR=aR.p2r,rR=aR.r2p,Y0e=[0,3,4,5,6,1,2],W0e=[0,3,4,1,2];bl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var nR=ua(),uR=Lu(),j0e=uR.drawMode,Z0e=uR.openMode,bc=vy(),iR=bc.i000,oR=bc.i090,lR=bc.i180,sR=bc.i270,X0e=bc.cos45,J0e=bc.sin45,fR=hy(),py=fR.p2r,cs=fR.r2p,$0e=rs(),K0e=$0e.clearOutline,yy=fs(),Q0e=yy.readPaths,ede=yy.writePaths,rde=yy.ellipseOver,tde=yy.fixDatesForPaths;function ade(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(!j0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var nde=Lu(),ide=nde.selectMode,ode=rs(),lde=ode.clearOutline,N5=fs(),sde=N5.readPaths,ude=N5.writePaths,fde=N5.fixDatesForPaths;hR.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(!ide(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";dR.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(Ua=>{"use strict";var zo=Fh(),pR=Ee(),vs=Ir();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(zo.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(zo.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ua.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=Ua.shapePositionToRange(r);o=function(s){var u=xl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ua.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};Ua.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=Ua.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};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=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,z){var I;if(D)if(P==="domain")z?I=function(B){return D._offset+D._length*(1-B)}:I=function(B){return D._offset+D._length*B};else{let B=Ua.shapePositionToRange(D);I=function(G){return D._offset+D.r2p(B(G,!0))},R==="path"&&D.type==="date"&&(I=Ua.decodeDate(I))}else z?I=function(B){return i.t+i.h*(1-B)}:I=function(B){return i.l+i.w*B};return I}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 cde(r,v,d);if(a==="array")s=xl(o[0],r.x0shift),u=xl(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=xl(o,r.x0shift),u=xl(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=xl(l[0],r.y0shift),c=xl(l[1],r.y1shift),m=d[0](r.y0)+f,x=d[1](r.y1)+c;else if(f=xl(l,r.y0shift),c=xl(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,q=_+w+","+b,E=_+","+(b-k);return"M"+q+M+" 0 1,1 "+E+M+" 0 0,1 "+q+"Z"};function cde(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(zo.segmentRE,function(v){var d=0,p=v.charAt(0),y=zo.paramIsX[p],m=zo.paramIsY[p],x=zo.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(zo.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.*/,""),pR.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}function xl(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 O5=N((iPe,gR)=>{"use strict";var vde=Ee(),Oo=Ir(),yR=Aa(),mR=Wr(),hde=fs().readPaths,z5=hs(),dde=z5.getPathString,Nh=zp(),pde=Oa().FROM_TL;gR.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=Oo.getFromId(r,a.xref),s=Oo.getFromId(r,a.yref);let j=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in Nh){var f=typeof Nh[u]=="function",c=!j||Nh.simpleXVariables.includes(u),v=!ee||Nh.simpleYVariables.includes(u);if(f&&c&&v){var d=Nh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=vde.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=dde(r,a),q=hde(M,r);_=1/0,w=1/0,b=-1/0,k=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function mde(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 gde=Ee(),bde=gde.strTranslate,bR=yi(),wR=Lu(),xde=wR.drawMode,TR=wR.selectMode,AR=br(),xR=Tr(),by=vy(),_de=by.i000,wde=by.i090,Tde=by.i180,Ade=by.i270,Mde=rs(),MR=Mde.clearOutlineControllers,H5=fs(),gy=H5.pointsOnRectangle,B5=H5.pointsOnEllipse,kde=H5.writePaths,Sde=my().newShapes,qde=my().createShapeObj,Lde=I5(),Cde=O5();kR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(B5(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=Sde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Lde(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&AR.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=xde(f),v=TR(f);(c||v)&&(i._fullLayout._outlining=!0),MR(i),t.attr("d",kde(r));var d,p,y,m,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Ede([],r);var T=u.append("g").attr("class","outline-controllers");D(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),b=qde(t,a,a.dragmode);Cde(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],j=r[y],ee=j.length;if(gy(j)){var fe=Y,ie=V;if(a.isActiveSelection){var ue=_R(j,m);ue[1]===j[m][1]?ie=0:fe=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];!gy(H)&&!B5(H)&&q()}}function D(Y){d=[];for(var V=0;V{"use strict";var Rde=Sr(),ER=br(),G5=Ee(),Cu=Ir(),Pde=fs().readPaths,Fde=xy(),wy=O5(),DR=rs().clearOutlineControllers,U5=Tr(),Ty=Wr(),Nde=_t().arrayEditor,SR=yi(),qR=ss(),Eu=Fh(),Fn=hs(),V5=Fn.getPathString;FR.exports={draw:Y5,drawOne:RR,eraseActiveShape:Bde,drawLabel:wy};function Y5(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;nCu.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 zde(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,q,E,D,P,R=Rde.select(r.node().parentNode),z=Cu.getFromId(e,t.xref),I=Cu.getRefType(t.xref),B=Cu.getFromId(e,t.yref),G=Cu.getRefType(t.yref),Y=t.x0shift,V=t.x1shift,H=t.y0shift,X=t.y1shift,j=function(Pe,Le){var ze=Fn.getDataToPixel(e,z,Le,!1,I);return ze(Pe)},ee=function(Pe,Le){var ze=Fn.getDataToPixel(e,B,Le,!0,G);return ze(Pe)},fe=Fn.getPixelToData(e,z,!1,I),ie=Fn.getPixelToData(e,B,!0,G),ue=se(),K={element:ue.node(),gd:e,prepFn:ye,doneFn:W,clickFn:Q},we;SR.init(K),ue.node().onmousemove=he;function se(){return f?ce():r}function ce(){var Pe=10,Le=Math.max(t.line.width,Pe),ze=n.append("g").attr("data-index",a).attr("drag-helper",!0);ze.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Be={"fill-opacity":"0"},Ge=Math.max(Le/2,Pe);return ze.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,Y),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,H),r:Ge}).style(Be).classed("cursor-grab",!0),ze.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,X),r:Ge}).style(Be).classed("cursor-grab",!0),ze}function he(Pe){if(_y(e)){we=null;return}if(f)Pe.target.tagName==="path"?we="move":we=Pe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=K.element.getBoundingClientRect(),ze=Le.right-Le.left,Be=Le.bottom-Le.top,Ge=Pe.clientX-Le.left,De=Pe.clientY-Le.top,Oe=!c&&ze>o&&Be>l&&!Pe.shiftKey?SR.getCursor(Ge/ze,1-De/Be):"move";qR(r,Oe),we=Oe.split("-")[0]}}function ye(Pe){_y(e)||(s&&(x=j(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:ee(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:ee(t.y1)),dm?(_=p,M="y0",b=m,q="y1"):(_=m,M="y1",b=p,q="y0"),he(Pe),ve(n,t),Ce(r,t,e),K.moveFn=we==="move"?Z:le,K.altKey=Pe.altKey)}function W(){_y(e)||(qR(r),me(n),PR(r,e,t),ER.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){_y(e)||me(n)}function Z(Pe,Le){if(t.type==="path"){var ze=function(De){return De},Be=ze,Ge=ze;s?v("xanchor",t.xanchor=fe(x+Pe)):(Be=function(Oe){return fe(j(Oe)+Pe)},z&&z.type==="date"&&(Be=Fn.encodeDate(Be))),u?v("yanchor",t.yanchor=ie(T+Le)):(Ge=function(Oe){return ie(ee(Oe)+Le)},B&&B.type==="date"&&(Ge=Fn.encodeDate(Ge))),v("path",t.path=LR(P,Be,Ge))}else s?v("xanchor",t.xanchor=fe(x+Pe)):(v("x0",t.x0=fe(d+Pe)),v("x1",t.x1=fe(y+Pe))),u?v("yanchor",t.yanchor=ie(T+Le)):(v("y0",t.y0=ie(p+Le)),v("y1",t.y1=ie(m+Le)));r.attr("d",V5(e,t)),ve(n,t),wy(e,a,t,R)}function le(Pe,Le){if(c){var ze=function(Ze){return Ze},Be=ze,Ge=ze;s?v("xanchor",t.xanchor=fe(x+Pe)):(Be=function(or){return fe(j(or)+Pe)},z&&z.type==="date"&&(Be=Fn.encodeDate(Be))),u?v("yanchor",t.yanchor=ie(T+Le)):(Ge=function(or){return ie(ee(or)+Le)},B&&B.type==="date"&&(Ge=Fn.encodeDate(Ge))),v("path",t.path=LR(P,Be,Ge))}else if(f){if(we==="resize-over-start-point"){var De=d+Pe,Oe=u?p-Le:p+Le;v("x0",t.x0=s?De:fe(De)),v("y0",t.y0=u?Oe:ie(Oe))}else if(we==="resize-over-end-point"){var Ue=y+Pe,oe=u?m-Le:m+Le;v("x1",t.x1=s?Ue:fe(Ue)),v("y1",t.y1=u?oe:ie(oe))}}else{var Ae=function(Ze){return we.indexOf(Ze)!==-1},Xe=Ae("n"),hr=Ae("s"),Ne=Ae("w"),Te=Ae("e"),qe=Xe?_+Le:_,He=hr?b+Le:b,Je=Ne?w+Pe:w,Ve=Te?k+Pe:k;u&&(Xe&&(qe=_-Le),hr&&(He=b-Le)),(!u&&He-qe>l||u&&qe-He>l)&&(v(M,t[M]=u?qe:ie(qe)),v(q,t[q]=u?He:ie(He))),Ve-Je>o&&(v(E,t[E]=s?Je:fe(Je)),v(D,t[D]=s?Ve:fe(Ve)))}r.attr("d",V5(e,t)),ve(n,t),wy(e,a,t,R)}function ve(Pe,Le){(s||u)&&ze();function ze(){var Be=Le.type!=="path",Ge=Pe.selectAll(".visual-cue").data([0]),De=1;Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Oe=j(s?Le.xanchor:G5.midRange(Be?[Le.x0,Le.x1]:Fn.extractPathCoords(Le.path,Eu.paramIsX))),Ue=ee(u?Le.yanchor:G5.midRange(Be?[Le.y0,Le.y1]:Fn.extractPathCoords(Le.path,Eu.paramIsY)));if(Oe=Fn.roundPositionForSharpStrokeRendering(Oe,De),Ue=Fn.roundPositionForSharpStrokeRendering(Ue,De),s&&u){var oe="M"+(Oe-1-De)+","+(Ue-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",oe)}else if(s){var Ae="M"+(Oe-1-De)+","+(Ue-9-De)+"v18 h2 v-18 Z";Ge.attr("d",Ae)}else{var Xe="M"+(Oe-9-De)+","+(Ue-1-De)+"h18 v2 h-18 Z";Ge.attr("d",Xe)}}}function me(Pe){Pe.selectAll(".visual-cue").remove()}function Ce(Pe,Le,ze){var Be=Le.xref,Ge=Le.yref,De=Cu.getFromId(ze,Be),Oe=Cu.getFromId(ze,Ge),Ue="";Be!=="paper"&&!De.autorange&&(Ue+=Be),Ge!=="paper"&&!Oe.autorange&&(Ue+=Ge),Ty.setClipUrl(Pe,Ue?"clip"+ze._fullLayout._uid+Ue:null,ze)}}function LR(e,r,t){return e.replace(Eu.segmentRE,function(a){var n=0,i=a.charAt(0),o=Eu.paramIsX[i],l=Eu.paramIsY[i],s=Eu.numParams[i],u=a.slice(1).replace(Eu.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Ode(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){CR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=CR,Y5(e)}}}function CR(e){if(Ay(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(DR(e),delete e._fullLayout._activeShapeIndex,Y5(e))}}function Bde(e){if(Ay(e)){DR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var bi=br(),NR=ta(),IR=ua(),Xr=fy(),Hde=My().eraseActiveShape,ky=Ee(),Hr=ky._,Jr=VR.exports={};Jr.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:Xr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};ky.notifier(Hr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),bi.call("downloadImage",e,t).then(function(a){ky.notifier(Hr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){ky.notifier(Hr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Jr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:Xr.disk,click:function(e){NR.sendDataToCloud(e)}};Jr.editInChartStudio={name:"editInChartStudio",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:Xr.pencil,click:function(e){NR.sendDataToCloud(e)}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Hr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Xr.zoombox,click:ln};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Hr(e,"Pan")},attr:"dragmode",val:"pan",icon:Xr.pan,click:ln};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Hr(e,"Box Select")},attr:"dragmode",val:"select",icon:Xr.selectbox,click:ln};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Hr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Xr.lasso,click:ln};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Hr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Xr.drawclosedpath,click:ln};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Hr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Xr.drawopenpath,click:ln};Jr.drawline={name:"drawline",title:function(e){return Hr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Xr.drawline,click:ln};Jr.drawrect={name:"drawrect",title:function(e){return Hr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Xr.drawrect,click:ln};Jr.drawcircle={name:"drawcircle",title:function(e){return Hr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Xr.drawcircle,click:ln};Jr.eraseshape={name:"eraseshape",title:function(e){return Hr(e,"Erase active shape")},icon:Xr.eraseshape,click:Hde};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Hr(e,"Zoom in")},attr:"zoom",val:"in",icon:Xr.zoom_plus,click:ln};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Hr(e,"Zoom out")},attr:"zoom",val:"out",icon:Xr.zoom_minus,click:ln};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Hr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Xr.autoscale,click:ln};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Hr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Xr.home,click:ln};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Hr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Xr.tooltip_basic,gravity:"ne",click:ln};Jr.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:Xr.tooltip_compare,gravity:"ne",click:ln};function ln(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=IR.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 YR=Z5(),Vde=Object.keys(YR),WR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],jR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(WR),_c=[],Yde=function(e){if(jR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();_c.indexOf(r)===-1&&_c.push(r),_c.indexOf(t)===-1&&_c.push(t)}};Vde.forEach(function(e){Yde(YR[e])});_c.sort();ZR.exports={DRAW_MODES:WR,backButtons:jR,foreButtons:_c}});var J5=N((cPe,XR)=>{"use strict";var fPe=X5();XR.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 $R=N((vPe,JR)=>{"use strict";var Wde=Ee(),Ih=Tr(),jde=_t(),Zde=J5();JR.exports=function(r,t){var a=r.modebar||{},n=jde.newContainer(t,"modebar");function i(l,s){return Wde.coerce(a,n,Zde,l,s)}i("orientation"),i("bgcolor",Ih.addOpacity(t.paper_bgcolor,.5));var o=Ih.contrast(Ih.rgb(t.modebar.bgcolor));i("color",Ih.addOpacity(o,.3)),i("activecolor",Ih.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var rP=N((hPe,eP)=>{"use strict";var $5=Sr(),Xde=Rr(),qy=Ee(),KR=fy(),Jde=mp().version,$de=new DOMParser;function QR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Bo=QR.prototype;Bo.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(),qy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Bo.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)})};Bo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Bo.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&&$5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||KR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Bo.createIcon=function(e){var r=Xde(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=$de.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Bo.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=$5.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:qy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Bo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var epe=ua(),tP=Rn(),K5=br(),rpe=Co().isUnifiedHover,tpe=rP(),Ly=Z5(),ape=X5().DRAW_MODES,npe=Ee().extendDeep;aP.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=fpe(i):!a.displayModeBar&&a.watermark?o=[]:o=ipe(r),n?n.update(r,o):t._modeBar=tpe(r,o)};function ipe(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,j=H._cat||H.name;if(X===V||j===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"),(spe(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"]),lpe(t)&&R.push("select2d","lasso2d");var z=[],I=function(V){z.indexOf(V)===-1&&D.indexOf(V)!==-1&&z.push(V)};if(Array.isArray(l)){for(var B=[],G=0;G{"use strict";iP.exports={moduleType:"component",name:"modebar",layoutAttributes:J5(),supplyLayoutDefaults:$R(),manage:nP()}});var e_=N((yPe,oP)=>{"use strict";var cpe=Oa().FROM_BL;oP.exports=function(r,t,a){a===void 0&&(a=cpe[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 Ru=N(zh=>{"use strict";var Du=Ee(),r_=_h(),lo=ua().id2name,vpe=di(),lP=e_(),hpe=lc(),dpe=zt().ALMOST_EQUAL,ppe=Oa().FROM_BL;zh.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 mpe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;odpe*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 Ey=Sr(),sn=br(),Kn=ta(),xi=Ee(),n_=Aa(),i_=uy(),Oh=Tr(),wc=Wr(),cP=oc(),yP=Q5(),Bh=Ir(),_l=Oa(),mP=Ru(),gpe=mP.enforce,bpe=mP.clean,vP=_h().doAutoRange,gP="start",xpe="middle",bP="end",_pe=xa().zindexSeparator;Sa.layoutStyles=function(e){return xi.syncOrAsync([Kn.doAutoMargin,Tpe],e)};function wpe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Tpe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Bh.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(wc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Sa.drawMainTitle(e),yP.manage(e),!r._has("cartesian"))return Kn.previousPromises(e);function c(ye,W,Q){var Z=ye._lw/2;if(ye._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-Z}else return t.t+t.h*(1-(ye.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*(ye.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){Spe(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:pP(r.yanchor)}).call(n_.positionText,o,i);var f=(r.text.match(n_.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=Ey.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+cP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:pP(r.yanchor)}).call(n_.positionText,o,y)}}}};function Ape(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=xi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return xi.isTopAnchor(r)&&t==="t"||xi.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=Mpe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Spe(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"&&Ape(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Kn.allowAutoMargin(e,n),Kn.autoMargin(e,n,l)}function qpe(e,r){var t=e.title,a=e._size,n=0;switch(r===gP?n=t.pad.l:r===bP&&(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 Lpe(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 pP(e){return e==="top"?_l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":_l.MID_SHIFT+"em"}function Cpe(e){var r=e.title,t=xpe;return xi.isRightAnchor(r)?t=bP:xi.isLeftAnchor(r)&&(t=gP),t}function Epe(e){var r=e.title,t="0em";return xi.isTopAnchor(r)?t=_l.CAP_SHIFT+"em":xi.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 Dpe=fs().readPaths,Rpe=xy(),xP=rs().clearOutlineControllers,o_=Tr(),_P=Wr(),Ppe=_t().arrayEditor,wP=hs(),Fpe=wP.getPathString;AP.exports={draw:Ry,drawOne:TP,activateLastSelection:zpe};function Ry(e){var r=e._fullLayout;xP(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(o_.stroke,c).call(o_.fill,f).call(_P.dashLine,m?"solid":d,m?4+v:v);if(Npe(x,e,a),p){var T=Ppe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=Dpe(l,e);Rpe(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 Ipe(e,w)})}}function Npe(e,r,t){var a=t.xref+t.yref;_P.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Ipe(e,r){if(Py(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){l_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=l_,Ry(e)}}}function zpe(e){if(Py(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=l_,Ry(e)}}function l_(e){if(Py(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(xP(e),delete e._fullLayout._activeSelectionIndex,Ry(e))}}});var kP=N((xPe,MP)=>{function Ope(){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}MP.exports=Ope});var qP=N((_Pe,SP)=>{function Bpe(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}SP.exports=Bpe});var CP=N((wPe,LP)=>{var Hpe={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}};LP.exports=Hpe});var DP=N((TPe,EP)=>{var Hh=CP();function Upe(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=Hh.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=Hh.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=Hh.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=Hh.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,j=V.start,ee=V.end;t&&t.checkIntersection(Y,V);var fe=r.linesIntersect(H,X,j,ee);if(fe===!1){if(!r.pointsCollinear(H,X,j)||r.pointsSame(H,ee)||r.pointsSame(X,j))return!1;var ie=r.pointsSame(H,j),ue=r.pointsSame(X,ee);if(ie&&ue)return G;var K=!ie&&r.pointBetween(H,j,ee),we=!ue&&r.pointBetween(X,j,ee);if(ie)return we?v(G,X):v(B,ee),G;K&&(ue||(we?v(G,X):v(B,ee)),v(G,H))}else fe.alongA===0&&(fe.alongB===-1?v(B,j):fe.alongB===0?v(B,fe.pt):fe.alongB===1&&v(B,ee)),fe.alongB===0&&(fe.alongA===-1?v(G,H):fe.alongA===0?v(G,fe.pt):fe.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 q?_(w,q):!1};var I=B;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,q?q.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,q?w.seg.myFill.below=q.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;q?w.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=w.primary?y:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,q?q.seg:!1),w.other.status=k.insert(Hh.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 z=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=z}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 Gpe(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(I,B,G){return f.index=I,f.matches_head=B,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Uh(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 Vpe={union:function(e,r){return Uh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Uh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Uh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Uh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Uh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};FP.exports=Vpe});var zP=N((kPe,IP)=>{var Ype={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 Wpe=kP(),jpe=qP(),OP=DP(),Zpe=PP(),Gh=NP(),BP=zP(),_i=!1,Vh=jpe(),Nn;Nn={buildLog:function(e){return e===!0?_i=Wpe():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return Vh.epsilon(e)},segments:function(e){var r=OP(!0,Vh,_i);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=OP(!1,Vh,_i);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Gh.union(e.combined,_i),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Gh.intersect(e.combined,_i),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Gh.difference(e.combined,_i),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Gh.differenceRev(e.combined,_i),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Gh.xor(e.combined,_i),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Zpe(e.segments,Vh,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return BP.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return BP.fromPolygon(Nn,Vh,e)},union:function(e,r){return Yh(e,r,Nn.selectUnion)},intersect:function(e,r){return Yh(e,r,Nn.selectIntersect)},difference:function(e,r){return Yh(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Yh(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Yh(e,r,Nn.selectXor)}};function Yh(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),o=t(i);return Nn.polygon(o)}typeof window=="object"&&(window.PolyBool=Nn);HP.exports=Nn});var VP=N((qPe,GP)=>{GP.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 f_=N((LPe,YP)=>{"use strict";var u_=Fp().dot,Fy=zt().BADNUM,Ny=YP.exports={};Ny.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===Fy||xo||y&&u(p))}function c(p,y){var m=p[0],x=p[1];if(m===Fy||mn||x===Fy||xo)return!1;var T=t.length,_=t[0][0],b=t[0][1],w=0,k,M,q,E,D;for(k=1;kMath.max(M,_)||x>Math.max(q,b)))if(xl||Math.abs(u_(c,u))>n)return!0;return!1};Ny.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 jP=N((CPe,WP)=>{"use strict";WP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var pF=N((EPe,dF)=>{"use strict";var ZP=UP(),Xpe=VP(),Zh=br(),Jpe=Wr().dashStyle,Wh=Tr(),$pe=Pn(),Kpe=Co().makeEventData,Qh=Lu(),Qpe=Qh.freeMode,e1e=Qh.rectMode,Xh=Qh.drawMode,d_=Qh.openMode,p_=Qh.selectMode,XP=hs(),JP=Fh(),rF=xy(),tF=rs().clearOutline,aF=fs(),c_=aF.handleEllipse,r1e=aF.readPaths,t1e=my().newShapes,a1e=I5(),n1e=s_().activateLastSelection,zy=Ee(),i1e=zy.sorterAsc,nF=f_(),jh=jp(),wi=ua().getFromId,o1e=uy(),l1e=Dy().redrawReglTraces,Oy=jP(),Ho=Oy.MINSELECT,s1e=nF.filter,y_=nF.tester,m_=hy(),$P=m_.p2r,u1e=m_.axValue,f1e=m_.getTransform;function g_(e){return e.subplot!==void 0}function c1e(e,r,t,a,n){var i=!g_(a),o=Qpe(n),l=e1e(n),s=d_(n),u=Xh(n),f=p_(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=f1e(_),w=r-T.left,k=t-T.top;y._calcInverseTransform(p);var M=zy.apply3DTransform(y._invTransform)(w,k);w=M[0],k=M[1];var q=y._invScaleX,E=y._invScaleY,D=w,P=k,R="M"+w+","+k,z=a.xaxes[0],I=a.yaxes[0],B=z._length,G=I._length,Y=e.altKey&&!(Xh(n)&&s),V,H,X,j,ee,fe,ie;oF(e,p,a),o&&(V=s1e([[w,k]],Oy.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 we=u&&!s?K.fillcolor:"rgba(0,0,0,0)",se=K.line.color||(i?Wh.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":Jpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Wh.stroke,se).call(Wh.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ce=x.append("path").attr("class","zoombox-corners").style({fill:Wh.background,stroke:Wh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var he=x.select(".label-temp");he.empty()&&(he=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ye=y._uid+Oy.SELECTID,W=[],Q=By(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=z._id,ve=I._id;cF(p,le,ve,Q);for(var me=(p.layout||{}).selections||[],Ce=[],Pe=!1,Le=0;Le=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=y.clickmode;jh.done(ye).then(function(){if(jh.clear(ye),le===2){for(ue.remove(),ee=0;ee-1&&iF(ve,p,a.xaxes,a.yaxes,a.subplot,a,ue),me==="event"&&Kh(p,void 0);$pe.click(p,ve,_.id)}).catch(zy.error)}},a.doneFn=function(){ce.remove(),jh.done(ye).then(function(){jh.clear(ye),!m&&j&&a.selectionDefs&&(j.subtract=Y,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(m||u)&&Jh(a,m),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Kh(p,ie)}).catch(zy.error)}}function iF(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(y1e(l)){oF(e,r,i),v=By(r,t,a,n);var k=m1e(l,v),M=k.pointNumbers.length>0;if(M?g1e(v,k):b1e(v)&&(T=QP(k))){for(o&&o.remove(),w=0;w=0}function p1e(e){return e._fullLayout._activeSelectionIndex>=0}function Jh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;d1e(n)&&n._fullLayout._deactivateShape(n),p1e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Xh(t),s=p_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=t1e(u,e)),f&&Zh.call("_guiRelayout",n,{shapes:f});var c;s&&!g_(e)&&(c=a1e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Zh.call("_guiRelayout",n,{selections:c}).then(function(){r&&n1e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function KP(e){return e._id}function By(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(KP),o=t.map(KP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function g1e(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 $h(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var le=eF(e,!0);if(le.length){var ve=le[0].xref,me=le[0].yref;if(ve&&me){var Ce=vF(le),Pe=hF([wi(e,ve,"x"),wi(e,me,"y")]);Pe(W,Ce)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Kh(e,W),v._reselect=!1}if(!o&&v._deselect){var Le=v._deselect;l=Le.xref,s=Le.yref,w1e(l,s,f)||cF(e,l,s,a),Z&&(W.points.length?Kh(e,W):__(e)),v._deselect=!1}return{eventData:W,selectionTesters:t}}function _1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";yF.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 e0=N((RPe,mF)=>{"use strict";mF.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 Tc=N((FPe,xF)=>{"use strict";var gF=w_(),bF=ga(),Hy=xa(),S1e=_t().templatedArray,PPe=e0();xF.exports=S1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:bF({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:gF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:gF.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",Hy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Hy.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",Hy.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:bF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var r0=N((NPe,_F)=>{"use strict";_F.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Uy=N((IPe,wF)=>{"use strict";wF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ti=N((zPe,CF)=>{"use strict";var TF=ao().axisHoverFormat,{hovertemplateAttrs:q1e,texttemplateAttrs:L1e,templatefallbackAttrs:AF}=Yn(),MF=qo(),C1e=ga(),kF=fi().dash,E1e=fi().pattern,D1e=Wr(),R1e=r0(),t0=bt().extendFlat,P1e=Uy();function SF(e){return{valType:"any",dflt:0,editType:"calc"}}function qF(e){return{valType:"any",editType:"calc"}}function LF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}CF.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:SF("x"),yperiod:SF("y"),xperiod0:qF("x0"),yperiod0:qF("y0"),xperiodalignment:LF("x"),yperiodalignment:LF("y"),xhoverformat:TF("x"),yhoverformat:TF("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:L1e(),texttemplatefallback:AF({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:q1e({},{keys:R1e.eventDataKeys}),hovertemplatefallback:AF(),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:t0({},kF,{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:P1e(!0),fillgradient:t0({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:E1e,marker:t0({symbol:{valType:"enumerated",values:D1e.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:t0({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:t0({},kF,{arrayOk:!0}),editType:"calc"},MF("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"},MF("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:C1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var T_=N((BPe,RF)=>{"use strict";var EF=Tc(),DF=Ti().line,F1e=fi().dash,Gy=bt().extendFlat,N1e=Qi().overrideAll,I1e=_t().templatedArray,OPe=e0();RF.exports=N1e(I1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Gy({},EF.xref,{}),yref:Gy({},EF.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:DF.color,width:Gy({},DF.width,{min:1,dflt:1}),dash:Gy({},F1e,{dflt:"dot"})}}),"arraydraw","from-root")});var IF=N((HPe,NF)=>{"use strict";var PF=Ee(),Vy=Ir(),z1e=no(),O1e=T_(),FF=hs();NF.exports=function(r,t){z1e(r,t,{name:"selections",handleItemDefaults:B1e});for(var a=t.selections,n=0;n{"use strict";zF.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 a0=N((GPe,UF)=>{"use strict";var H1e=br(),BF=Ee(),HF=ua();UF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=H1e.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 GF=s_(),n0=pF();VF.exports={moduleType:"component",name:"selections",layoutAttributes:T_(),supplyLayoutDefaults:IF(),supplyDrawNewSelectionDefaults:OF(),includeBasePlot:a0()("selections"),draw:GF.draw,drawOne:GF.drawOne,reselect:n0.reselect,prepSelect:n0.prepSelect,clearOutline:n0.clearOutline,clearSelectionsCache:n0.clearSelectionsCache,selectOnClick:n0.selectOnClick}});var cN=N((YPe,fN)=>{"use strict";var q_=Sr(),Ai=Ee(),YF=Ai.numberFormat,U1e=Sn(),G1e=s5(),Yy=br(),eN=Ai.strTranslate,V1e=Aa(),WF=Tr(),ps=Wr(),Y1e=Pn(),jF=Ir(),W1e=ss(),j1e=yi(),rN=Lu(),Wy=rN.selectingOrDrawing,Z1e=rN.freeMode,X1e=Oa().FROM_TL,J1e=uy(),$1e=Dy().redrawReglTraces,K1e=ta(),M_=ua().getFromId,Q1e=Uo().prepSelect,eye=Uo().clearOutline,rye=Uo().selectOnClick,A_=e_(),L_=xa(),ZF=L_.MINDRAG,xn=L_.MINZOOM,XF=!0;function tye(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,q,E,D,P,R,z,I,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){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(S_(He),Te===2&&!f&&Ue(),u)Je.indexOf("select")>-1&&rye(qe,He,y,m,r.id,j),Je.indexOf("event")>-1&&Y1e.click(He,qe,r.id);else if(Te===1&&f){var Ve=o?v:c,Ze=o==="s"||l==="w"?0:1,or=Ve._name+".range["+Ze+"]",rr=aye(Ve,Ze),Ke="left",Ie="middle";if(Ve.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Ve.side==="right"&&(Ke="right")):l==="e"&&(Ke="right"),He._context.showAxisRangeEntryBoxes&&q_.select(X).call(V1e.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(rr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Ie}).on("edit",function(ne){var de=Ve.d2r(ne);de!==void 0&&Yy.call("_guiRelayout",He,or,de)})}}j1e.init(j);var ie,ue,K,we,se,ce,he,ye,W,Q;function Z(Te,qe,He){var Je=X.getBoundingClientRect();ie=qe-Je.left,ue=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ve=Ai.apply3DTransform(e._fullLayout._invTransform)(ie,ue);ie=Ve[0],ue=Ve[1],K={l:ie,r:ie,w:0,t:ue,b:ue,h:0},we=e._hmpixcount?e._hmlumcount/e._hmpixcount:U1e(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+_+"V"+b+"H0V0",ce=!1,he="xy",Q=!1,ye=nN(s,we,x,T,se),W=iN(s,x,T)}function le(Te,qe){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(_,G*Te+ie)),Je=Math.max(0,Math.min(b,Y*qe+ue)),Ve=Math.abs(He-ie),Ze=Math.abs(Je-ue);K.l=Math.min(ie,He),K.r=Math.max(ie,He),K.t=Math.min(ue,Je),K.b=Math.max(ue,Je);function or(){he="",K.r=K.l,K.t=K.b,W.attr("d","M0,0Z")}if(w.isSubplotConstrained)Ve>xn||Ze>xn?(he="xy",Ve/_>Ze/b?(Ze=Ve*b/_,ue>Je?K.t=ue-Ze:K.b=ue+Ze):(Ve=Ze*_/b,ie>He?K.l=ie-Ve:K.r=ie+Ve),W.attr("d",jy(K))):or();else if(k.isSubplotConstrained)if(Ve>xn||Ze>xn){he="xy";var rr=Math.min(K.l/_,(b-K.b)/b),Ke=Math.max(K.r/_,(b-K.t)/b);K.l=rr*_,K.r=Ke*_,K.b=(1-rr)*b,K.t=(1-Ke)*b,W.attr("d",jy(K))}else or();else!q||Ze0){var ne;if(k.isSubplotConstrained||!M&&q.length===1){for(ne=0;ne1&&(or.maxallowed!==void 0&&D===(or.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 iye(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function nN(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",eN(t,a)).attr("d",n+"Z")}function iN(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:WF.background,stroke:WF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",eN(r,t)).attr("d","M0,0Z")}function oN(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"),lN(e,r,n,i)}function lN(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 S_(e){q_.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function sN(e){XF&&e.data&&e._context.showTips&&(Ai.notifier(Ai._(e,"Double-click to zoom back out"),"long"),XF=!1)}function oye(e,r){return"M"+(e.l-.5)+","+(r-xn-.5)+"h-3v"+(2*xn+1)+"h3ZM"+(e.r+.5)+","+(r-xn-.5)+"h3v"+(2*xn+1)+"h-3Z"}function lye(e,r){return"M"+(r-xn-.5)+","+(e.t-.5)+"v-3h"+(2*xn+1)+"v3ZM"+(r-xn-.5)+","+(e.b+.5)+"v3h"+(2*xn+1)+"v-3Z"}function jy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,xn)/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 KF(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 sye=Sr(),Zy=Pn(),uye=yi(),fye=ss(),so=cN().makeDragBox,qa=xa().DRAGGERSIZE;Xy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){sye.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=so(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]&&Zy.hover(r,v,i)},Zy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,uye.unhover(r,v))},r._context.showAxisDragHandles&&(so(r,o,l._offset-qa,s._offset-qa,qa,qa,"n","w"),so(r,o,l._offset+l._length,s._offset-qa,qa,qa,"n","e"),so(r,o,l._offset-qa,s._offset+s._length,qa,qa,"s","w"),so(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),so(r,o,l._offset+l._length*.1,f,l._length*.8,qa,"","ew"),so(r,o,l._offset,f,l._length*.1,qa,"","w"),so(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),so(r,o,c,s._offset+s._length*.1,qa,s._length*.8,"ns",""),so(r,o,c,s._offset+s._length*.9,qa,s._length*.1,"s",""),so(r,o,c,s._offset,qa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Zy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Zy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Xy.updateFx(r)}};Xy.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";fye(r._draggers,t)}});var dN=N((jPe,hN)=>{"use strict";var vN=br();hN.exports=function(r){for(var t=vN.layoutArrayContainers,a=vN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var cye=Vl(),E_=Pp(),i0=au(),vye=Eb().sorterAsc,D_=br();o0.containerArrayMatch=dN();var hye=o0.isAddVal=function(r){return r==="add"||cye(r)},pN=o0.isRemoveVal=function(r){return r===null||r==="remove"};o0.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=D_.getComponentMethod(o,"supplyLayoutDefaults"),s=D_.getComponentMethod(o,"draw"),u=D_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===E_||s===E_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&i0.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(pN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return i0.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(vye),y=t.get(),m=y||[],x=i(v,o).get(),T=[],_=-1,b=m.length,w,k,M,q,E,D,P,R;for(w=0;wm.length-(P?0:1)){i0.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&i0.warn("Insertion & removal are incompatible with edits to the same index.",o,M),pN(D)?T.push(M):P?(D==="add"&&(D={}),m.splice(M,0,D),x&&x.splice(M,0,{})):i0.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!==E_){var z;if(_===-1)z=p;else{for(b=Math.max(m.length,b),z=[],w=0;w=_));w++)z.push(M);for(w=_;w{"use strict";var xN=Rr(),_N=br(),un=Ee(),l0=ta(),wN=ua(),TN=Tr(),s0=wN.cleanId,dye=wN.getFromTrace,R_=_N.traceIs,pye=["x","y","z"];Mi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&un.log("Clearing previous rejected promises from queue."),e._promises=[]};Mi.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=(l0.subplotsRegistry.cartesian||{}).attrRegex,n=(l0.subplotsRegistry.polar||{}).attrRegex,i=(l0.subplotsRegistry.ternary||{}).attrRegex,o=(l0.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"),TN.clean(e),e.template&&e.template.layout&&Mi.cleanLayout(e.template.layout),e};function Ac(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=s0(a,n,!0))}Mi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Mi.hasParent=function(e,r){for(var t=bN(r);t;){if(t in e)return!0;t=bN(t)}return!1};Mi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>un.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;aun.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)?P_(n,i):!1))return!1}return!0}return!1};Mi.collectionsAreEqual=P_});var B_=N(jr=>{"use strict";var Qy=Sr(),gye=Rr(),bye=Yb(),nr=Ee(),Mt=nr.nestedProperty,I_=vh(),_n=iq(),ki=br(),om=Jf(),_r=ta(),fn=Ir(),xye=l5(),_ye=di(),F_=Wr(),wye=Tr(),Tye=C_().initInteractions,Aye=dl(),Mye=Uo().clearOutline,LN=tu().dfltConfig,$y=yN(),ia=AN(),ht=Dy(),ys=Qi(),kye=xa().AX_NAME_PATTERN,N_=0,MN=5;function Sye(e,r,t,a){var n;if(e=nr.getGraphDiv(e),I_.init(e),nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=I_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!nr.isPlotDiv(e)&&nr.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)}EN(e,a),t||(t={}),Qy.select(e).classed("js-plotly-plot",!0),F_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ia.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ia.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Jye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),F_.initGradients(e),F_.initPatterns(e),s&&fn.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 DN(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]),rm(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rm(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Dye(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[P]!="string";)P--;var R=q.parts[P],z=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),B=Mt(e.layout,I).get(),G=Mt(a,I).get(),Y=q.get();if(E!==void 0){x[M]=E,T[M]=R==="reverse"?E:wl(Y);var V=om.getLayoutValObject(a,q.parts);if(V&&V.impliedEdits&&E!==null)for(var H in V.impliedEdits)_(nr.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(z.match(HN))k(z),Mt(a,I+"._inputRange").set(null);else if(z.match(UN)){k(z),Mt(a,I+"._inputRange").set(null);var j=Mt(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(Nye)&&Mt(a,I+"._inputDomain").set(null);if(R==="type"){w=B;var ee=G.type==="linear"&&E==="log",fe=G.type==="log"&&E==="linear";if(ee||fe){if(!w||!w.range)_(I+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var ie=w.range[0],ue=w.range[1];ee?(ie<=0&&ue<=0&&_(I+".autorange",!0),ie<=0?ie=ue/1e6:ue<=0&&(ue=ie/1e6),_(I+".range[0]",Math.log(ie)/Math.LN10),_(I+".range[1]",Math.log(ue)/Math.LN10)):(_(I+".range[0]",Math.pow(10,ie)),_(I+".range[1]",Math.pow(10,ue)))}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"],ki.getComponentMethod("annotations","convertCoords")(e,G,E,_),ki.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(I+".autorange",!0),_(I+".range",null);Mt(a,I+"._inputRange").set(null)}else if(R.match(kye)){var K=Mt(a,M).get(),we=(E||{}).type;(!we||we==="-")&&(we="linear"),ki.getComponentMethod("annotations","convertCoords")(e,K,we,_),ki.getComponentMethod("images","convertCoords")(e,K,we,_)}var se=$y.containerArrayMatch(M);if(se){f=se.array,c=se.index;var ce=se.property,he=V||{editType:"calc"};c!==""&&ce===""&&($y.isAddVal(E)?T[M]=null:$y.isRemoveVal(E)?T[M]=(Mt(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),ys.update(m,he),u[f]||(u[f]={});var ye=u[f][c];ye||(ye=u[f][c]={}),ye[ce]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(I+".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,q.set(E))}}for(f in u){var W=$y.applyContainerArrayChanges(e,i(t,f),u[f],m,i);W||(m.plot=!0)}for(var Q in b){w=fn.getFromId(e,Q);var Z=w&&w._constraintGroup;if(Z){m.calc=!0;for(var le in Z)b[le]||(fn.getFromId(e,le)._constraintShrinkable=!0)}}(VN(e)||r.height||r.width)&&(m.plot=!0);var ve=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 Oye(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=jr.newPlot(e,r,t,a).then(()=>{for(let[I,B]of z)B.forEach(G=>e.on(I,G));return jr.react(e,r,t,a)})}else{e.data=r||[],ia.cleanData(e.data),e.layout=t||{},ia.cleanLayout(e.layout),Hye(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=Vye(e,s,v,d,p),m=y.newDataRevision,x=Gye(e,l,c,d,p,m);if(VN(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 Gye(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=om.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 z=0;za._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&&nr.isPlainObject(r);if(M)b.push({type:"object",data:x(nr.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 Wye(e,r,t){if(e=nr.getGraphDiv(e),r==null)return Promise.resolve();if(!nr.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(nr.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&&N_q.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&nr.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 _n&&_n.add(e,l,u,s,f),_r.modifyFrames(e,i)}function Zye(e){e=nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),I_.purge(e),r._container&&r._container.remove(),delete e._context,e}function Xye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!nr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=nr.inverseTransformMatrix(nr.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 Jye(e){var r=Qy.select(e),t=e._fullLayout;if(t._calcInverseTransform=Xye,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={};Qy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Aye.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=Yye;jr.addFrames=Wye;jr.deleteFrames=jye;jr.addTraces=IN;jr.deleteTraces=zN;jr.extendTraces=FN;jr.moveTraces=z_;jr.prependTraces=NN;jr.newPlot=Eye;jr._doPlot=Sye;jr.purge=Zye;jr.react=Uye;jr.redraw=Cye;jr.relayout=u0;jr.restyle=tm;jr.setPlotConfig=qye;jr.update=nm;jr._guiRelayout=O_(u0);jr._guiRestyle=O_(tm);jr._guiUpdate=O_(nm);jr._storeDirectGUIEdit=Fye});var Tl=N(Go=>{"use strict";var $ye=br();Go.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Go.getRedrawFunc=function(e){return function(){$ye.getComponentMethod("colorbar","draw")(e)}};Go.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Go.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var YN=window.URL||window.webkitURL;Go.createObjectURL=function(e){return YN.createObjectURL(e)};Go.revokeObjectURL=function(e){return YN.revokeObjectURL(e)};Go.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=Kye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Go.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Kye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var U_=Sr(),KPe=Ee(),Qye=Wr(),eme=Tr(),QPe=dl(),H_=/"/g,c0="TOBESTRIPPED",rme=new RegExp('("'+c0+")|("+c0+'")',"g");function tme(e){var r=U_.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 ame(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}WN.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(Qye.setRect,0,0,l,s).call(eme.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var nme=Ee(),ime=su().EventEmitter,v0=Tl();function ome(e){var r=e.emitter||new ime,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"||nme.isSafari()?x=v0.encodeSVG(o):(m=v0.createBlob(o,"svg"),x=v0.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,v0.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,v0.revokeObjectURL(x),n(T),!e.promise)return r.emit("error",T)},y.src=x});return e.promise?t:r}jN.exports=ome});var V_=N((tFe,JN)=>{"use strict";var ZN=Rr(),XN=B_(),lme=ta(),Vo=Ee(),h0=Tl(),sme=sm(),ume=um(),fme=mp().version,G_={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 cme(e,r){r=r||{};var t,a,n,i;Vo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Vo.getGraphDiv(e),t=Vo.extendDeep([],e.data),a=Vo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Vo.validate(r[k],G_[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 "+Vo.join2(G_.format.values,", "," or ")+".");var l={};function s(k,M){return Vo.coerce(r,l,G_,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=Vo.extendFlat({},a);f?m.width=f:r.width===null&&ZN(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&ZN(i.height)&&(m.height=i.height);var x=Vo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=h0.getRedrawFunc(y);function _(){return new Promise(function(k){setTimeout(k,h0.getDelay(y._fullLayout))})}function b(){return new Promise(function(k,M){var q=sme(y,u,v),E=y._fullLayout.width,D=y._fullLayout.height;function P(){XN.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=lme.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=fme,R=JSON.stringify(R),P(),k(p?R:h0.encodeJSON(R))}if(P(),u==="svg")return k(p?q:h0.encodeSVG(q));var z=document.createElement("canvas");z.id=Vo.randstr(),ume({format:u,width:E,height:D,scale:v,canvas:z,svg:q,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace(h0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){XN.newPlot(y,t,m,x).then(T).then(_).then(b).then(function(q){k(w(q))}).catch(function(q){M(q)})})}JN.exports=cme});var QN=N((aFe,KN)=>{"use strict";var Si=Ee(),vme=ta(),hme=Jf(),dme=tu().dfltConfig,uo=Si.isPlainObject,Fu=Array.isArray,Y_=Si.isArrayOrTypedArray;KN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=hme.get(),n=[],i={_context:Si.extendFlat({},dme)},o,l;Fu(r)?(i.data=Si.extendDeep([],r),o=r):(i.data=[],o=[],n.push(La("array","data"))),uo(t)?(i.layout=Si.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(La("object","layout"))),vme.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 q=c[b].length;for(_=0;_<(T?Math.min(q,m[b].length):q);_++)w=T?m[b][_]:m,k=f[b][_],M=c[b][_],Si.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 _me=Ee(),cm=Tl();function wme(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=cm.createBlob(e,t),u=cm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),cm.revokeObjectURL(u),s=null,o(r);if(_me.isSafari()){var f=t==="svg"?",":";base64,";return cm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}eI.exports=wme});var W_=N((oFe,aI)=>{"use strict";var tI=Ee(),Tme=V_(),Ame=rI(),iFe=Tl();function Mme(e,r){var t;return tI.isPlainObject(e)||(t=tI.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=Tme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Ame(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}aI.exports=Mme});var sI=N(j_=>{"use strict";var In=Ee(),zn=In.isPlainObject,nI=Jf(),iI=ta(),kme=gn(),oI=_t(),lI=tu().dfltConfig;j_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:lI},{data:e.data,layout:e.layout}),iI.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={};d0(d,p,qme.bind(null,d));var y=In.coerce(d,{},kme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),d0(t,a.layout,Sme.bind(null,t)),delete a.layout.template;var n=t.template;if(zn(n)){var i=n.layout,o,l,s,u,f,c;zn(i)&&vm(i,a.layout);var v=n.data;if(zn(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=qi(_,w,b);zn(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&Lme(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(Cme)};function Lme(e){for(var r=0;r{"use strict";var _a=B_();Pt._doPlot=_a._doPlot;Pt.newPlot=_a.newPlot;Pt.restyle=_a.restyle;Pt.relayout=_a.relayout;Pt.redraw=_a.redraw;Pt.update=_a.update;Pt._guiRestyle=_a._guiRestyle;Pt._guiRelayout=_a._guiRelayout;Pt._guiUpdate=_a._guiUpdate;Pt._storeDirectGUIEdit=_a._storeDirectGUIEdit;Pt.react=_a.react;Pt.extendTraces=_a.extendTraces;Pt.prependTraces=_a.prependTraces;Pt.addTraces=_a.addTraces;Pt.deleteTraces=_a.deleteTraces;Pt.moveTraces=_a.moveTraces;Pt.purge=_a.purge;Pt.addFrames=_a.addFrames;Pt.deleteFrames=_a.deleteFrames;Pt.animate=_a.animate;Pt.setPlotConfig=_a.setPlotConfig;var Eme=nh().getGraphDiv,Dme=My().eraseActiveShape;Pt.deleteActiveShape=function(e){return Dme(Eme(e))};Pt.toImage=V_();Pt.validate=QN();Pt.downloadImage=W_();var uI=sI();Pt.makeTemplate=uI.makeTemplate;Pt.validateTemplate=uI.validateTemplate});var X_=N((uFe,cI)=>{"use strict";var Z_=Ee(),Rme=br();cI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Rme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Z_.minRowLength(i);o?l=Math.min(u,Z_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Z_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var Mc=N((fFe,dI)=>{"use strict";var vI=Ee().dateTick0,Pme=zt(),Fme=Pme.ONEWEEK;function hI(e,r){return e%Fme===0?vI(r,1):vI(r,0)}dI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",hI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",hI(l,t.ycalendar)),n("yperiodalignment"))}}});var mI=N((cFe,yI)=>{"use strict";var pI=["orientation","groupnorm","stackgaps"];yI.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 gI=Tr(),bI=jn().hasColorscale,xI=yl(),Nme=Rn();_I.exports=function(r,t,a,n,i,o={}){var l=Nme.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),bI(r,"marker")&&xI(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=gI.background:u=gI.defaultLine,i("marker.line.color",u),bI(r,"marker.line")&&xI(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 $_=N((hFe,wI)=>{"use strict";var Ime=Ee().isArrayOrTypedArray,zme=jn().hasColorscale,Ome=yl();wI.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),zme(r,"line"))Ome(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Ime(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var K_=N((dFe,TI)=>{"use strict";TI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Q_=N((pFe,AI)=>{"use strict";var Bme=Ee();AI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Bme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var e4=N((yFe,kI)=>{"use strict";var dm=Tr(),MI=Ee().isArrayOrTypedArray;function Hme(e){for(var r=dm.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var SI=Ee(),Ume=br(),Gme=Ti(),Vme=r0(),kc=Rn(),Yme=X_(),Wme=Mc(),jme=mI(),Zme=J_(),Xme=$_(),qI=K_(),Jme=Q_(),$me=e4(),Kme=Ee().coercePattern;LI.exports=function(r,t,a,n){function i(d,p){return SI.coerce(r,t,Gme,d,p)}var o=Yme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Wme(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 Qme=Ru().getAxisGroup;EI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Qme(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 RI=N((bFe,DI)=>{"use strict";var ege=Ee(),rge=p0(),tge=Ti();DI.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return ege.coerce(n._input,n,tge,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 FI=N((xFe,PI)=>{"use strict";var age=Ee(),nge=n1();PI.exports=function(e,r){function t(n,i){return age.coerce(e,r,nge,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Sc=N((_Fe,II)=>{"use strict";var ige=Rr(),NI=Ee(),oge=NI.dateTime2ms,pm=NI.incrementMonth,lge=zt(),sge=lge.ONEAVGMONTH;II.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(ige(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=oge(v,u)||0,p=[],y=[],m=[],x=n.length,T=0;T_;)k=pm(k,-l,u);for(;k<=_;)k=pm(k,l,u);w=pm(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 a4=N((wFe,OI)=>{"use strict";var r4=jn().hasColorscale,t4=ec(),zI=Rn();OI.exports=function(r,t){zI.hasLines(t)&&r4(t,"line")&&t4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zI.hasMarkers(t)&&(r4(t,"marker")&&t4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r4(t,"marker.line")&&t4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ym=N((TFe,BI)=>{"use strict";var Yt=Ee();BI.exports=function(r,t){for(var a=0;a{"use strict";var HI=Ee();UI.exports=function(r,t){HI.isArrayOrTypedArray(t.selectedpoints)&&HI.tagSelected(r,t)}});var gm=N((MFe,XI)=>{"use strict";var GI=Rr(),i4=Ee(),y0=Ir(),VI=Sc(),n4=zt().BADNUM,o4=Rn(),uge=a4(),fge=ym(),cge=mm();function vge(e,r){var t=e._fullLayout,a=r._xA=y0.getFromId(e,r.xaxis||"x","x"),n=r._yA=y0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=VI(r,a,"x",i),s=VI(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=l4(r,t,a,n),y=!1,m,x,T,_,b,w;jI(t,r);var k="x",M="y",q;if(p)i4.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",q="x"):(k="s",q="y"),b=p.stackgaps==="interpolate";else{var E=WI(r,c);YI(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][q],G=v[x-1].s,Y=(v[T].s-G)/(v[T][q]-B);x{"use strict";JI.exports=bm;var hge=Ee().distinctVals;function bm(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";KI.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var _m=N((qFe,tz)=>{"use strict";var Li=Rr(),{isArrayOrTypedArray:Al}=Ee(),{BADNUM:qc}=zt(),dge=br(),g0=Ir(),{getAxisGroup:pge}=Ru(),xm=$I(),{TEXTPAD:yge}=m0(),{LINE_SPACING:mge}=Oa(),{BR_TAG_ALL:gge}=Aa();function bge(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*mge*t+yge;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 Lge(e,r,t,a){for(var n=Lc(a),i=0;i{"use strict";var az=gm(),nz=_m().setGroupPositions;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;uE[f]&&f{"use strict";var Rge=Wr(),fz=zt(),b0=fz.BADNUM,cz=fz.LOG_CLIP,lz=cz+.5,sz=cz-.5,wm=Ee(),Pge=wm.segmentsIntersect,uz=wm.constrain,d4=r0();vz.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=d4.minTolerance,_=r.length,b=new Array(_),w=0,k,M,q,E,D,P,R,z,I,B,G,Y,V,H,X,j;function ee(Ie){var ne=r[Ie];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Re=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===b0){if(o&&(de=n.c2p(ne.x,!0)),de===b0)return!1;l&&Re===b0&&(de*=Math.abs(n._m*u*(n._m>0?lz:sz)/(i._m*s*(i._m>0?lz:sz)))),de*=1e3}if(Re===b0){if(l&&(Re=i.c2p(ne.y,!0)),Re===b0)return!1;Re*=1e3}return[de,Re]}function fe(Ie,ne,de,Re){var Fe=de-Ie,Qe=Re-ne,fr=.5-Ie,sr=.5-ne,kr=Fe*Fe+Qe*Qe,zr=Fe*fr+Qe*sr;if(zr>0&&zr1||Math.abs(fr.y-de[0][1])>1)&&(fr=[fr.x,fr.y],Re&&we(fr,Ie)he||Ie[1]W)return[uz(Ie[0],ce,he),uz(Ie[1],ye,W)]}function Be(Ie,ne){if(Ie[0]===ne[0]&&(Ie[0]===ce||Ie[0]===he)||Ie[1]===ne[1]&&(Ie[1]===ye||Ie[1]===W))return!0}function Ge(Ie,ne){var de=[],Re=ze(Ie),Fe=ze(ne);return Re&&Fe&&Be(Re,Fe)||(Re&&de.push(Re),Fe&&de.push(Fe)),de}function De(Ie,ne,de){return function(Re,Fe){var Qe=ze(Re),fr=ze(Fe),sr=[];if(Qe&&fr&&Be(Qe,fr))return sr;Qe&&sr.push(Qe),fr&&sr.push(fr);var kr=2*wm.constrain((Re[Ie]+Fe[Ie])/2,ne,de)-((Qe||Re)[Ie]+(fr||Fe)[Ie]);if(kr){var zr;Qe&&fr?zr=kr>0==Qe[Ie]>fr[Ie]?Qe:fr:zr=Qe||fr,zr[Ie]+=kr}return sr}}var Oe;p==="linear"||p==="spline"?Oe=Le:p==="hv"||p==="vh"?Oe=Ge:p==="hvh"?Oe=De(0,ce,he):p==="vhv"&&(Oe=De(1,ye,W));function Ue(Ie,ne){var de=ne[0]-Ie[0],Re=(ne[1]-Ie[1])/de,Fe=(Ie[1]*ne[0]-ne[1]*Ie[0])/de;return Fe>0?[Re>0?ce:he,W]:[Re>0?he:ce,ye]}function oe(Ie){var ne=Ie[0],de=Ie[1],Re=ne===b[w-1][0],Fe=de===b[w-1][1];if(!(Re&&Fe))if(w>1){var Qe=ne===b[w-2][0],fr=de===b[w-2][1];Re&&(ne===ce||ne===he)&&Qe?fr?w--:b[w-1]=Ie:Fe&&(de===ye||de===W)&&fr?Qe?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]&&oe([ve,me]),oe(Ie),Ce=null,ve=me=0}var Xe=wm.isArrayOrTypedArray(c);function hr(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Xe?c[Ie.i]:c,Ie.backoff=f),ie=Ie[0]/s,ue=Ie[1]/u,Z=Ie[0]he?he:0,le=Ie[1]W?W:0,Z||le){if(!w)b[w++]=[Z||Ie[0],le||Ie[1]];else if(Ce){var ne=Oe(Ce,Ie);ne.length>1&&(Ae(ne[0]),b[w++]=ne[1])}else Pe=Oe(b[w-1],Ie)[0],b[w++]=Pe;var de=b[w-1];Z&&le&&(de[0]!==Z||de[1]!==le)?(Ce&&(ve!==Z&&me!==le?oe(ve&&me?Ue(Ce,Ie):[ve||Z,me||le]):ve&&me&&oe([ve,me])),oe([Z,le])):ve-Z&&me-le&&oe([Z||ve,le||me]),Ce=Ie,ve=Z,me=le}else Ce&&Ae(Oe(Ce,Ie)[0]),b[w++]=Ie}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Ce=null,hr(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!y||!t.simplify){hr(E);continue}var Ne=ee(k+1);if(B=we(E,M),!(!(m&&(w===0||w===_-1))&&BK(P,Ne))break;q=P,V=I[0]*z[0]+I[1]*z[1],V>G?(G=V,E=P,R=!1):V=r.length||!P)break;hr(P),M=P}}Ce&&oe([ve||Ce[0],me||Ce[1]]),x.push(b.slice(0,w))}var Te=p.slice(p.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var qe=!1,He=-1,Je=[],Ve=0;Ve{"use strict";var hz={tonextx:1,tonexty:1,tonext:1};dz.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 fo=Sr(),Fge=br(),x0=Ee(),Cc=x0.ensureSingle,mz=x0.identity,Xt=Wr(),Ec=Rn(),Nge=p4(),Ige=pz(),Tm=f_().tester;gz.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Ige(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(),zge(r,l,t),f){o&&(s=o());var v=fo.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){yz(r,p,t,d,c,this,i)})})}else l.each(function(d,p){yz(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function zge(e,r,t){r.each(function(a){var n=Cc(fo.select(this),"g","fills");Xt.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,mz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Cc(fo.select(this),"path","js-fill")})})}function yz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Oge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=fo.select(i),m=Cc(y,"g","errorbars"),x=Cc(y,"g","lines"),T=Cc(y,"g","points"),_=Cc(y,"g","text");if(Fge.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,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",w=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var I,B,G="",Y="",V,H,X,j,ee,fe,ie=[];d._polygons=[];var ue=[],K=[],we=x0.noop;if(b=d._ownFill,Ec.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Xt.steps(p.shape),H=Xt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=H=function(De){var Oe=De[De.length-1];return De.length>1&&De[0][0]===Oe[0]&&De[0][1]===Oe[1]?Xt.smoothclosed(De.slice(1),p.smoothing):Xt.smoothopen(De,p.smoothing)}:V=H=function(De){return"M"+De.join("L")},X=function(De){return H(De.reverse())},K=Nge(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 se=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;Ec.hasMarkers(x)&&x.marker.maxdisplayed>0&&m{"use strict";bz.exports={container:"marker",min:"cmin",max:"cmax"}});var m4=N((PFe,xz)=>{"use strict";var Am=Ir();xz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Am.getFromTrace(i,t,"x"),l=Am.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=Am.tickText(o,o.c2l(s),!0).text,n.yLabel=Am.tickText(l,l.c2l(u),!0).text,n}});var Nu=N((FFe,_z)=>{"use strict";var g4=Sr(),Dc=Wr(),Bge=br();function Hge(e){var r=g4.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=g4.select(this),n=t.trace||t[0].trace;b4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=g4.select(this),n=t.trace||t[0].trace;x4(a,n,e)}),r.selectAll("g.trace path.js-line").call(Dc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Dc.fillGroupStyle,e,!1),Bge.getComponentMethod("errorbars","style")(r)}function b4(e,r,t){Dc.pointStyle(e.selectAll("path.point"),r,t)}function x4(e,r,t){Dc.textPointStyle(e.selectAll("text"),r,t)}function Uge(e,r,t){var a=r[0].trace;a.selectedpoints?(Dc.selectedPointStyle(t.selectAll("path.point"),a),Dc.selectedTextStyle(t.selectAll("text"),a)):(b4(t,a,e),x4(t,a,e))}_z.exports={style:Hge,stylePoints:b4,styleText:x4,styleOnSelect:Uge}});var Tz=N((NFe,wz)=>{"use strict";var Rc=Tr(),Gge=Rn();wz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Rc.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&&Rc.opacity(i)?i:o&&Rc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Rc.opacity(n)<.3?Rc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Rc.opacity(a)&&Gge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var w4=N((IFe,Mz)=>{"use strict";var Mm=Ee(),Az=Pn(),Vge=br(),Yge=Tz(),_4=Tr(),Wge=Mm.fillText;Mz.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),j=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),j=1-1/X,ee=Math.abs(s.c2p(Y.y)-f);return eeie!=W>=ie&&(ce=we[K-1][0],he=we[K][0],W-ye&&(se=ce+(he-ce)*(ie-ye)/(W-ye),X=Math.min(X,se),j=Math.max(j,se)));return X=Math.max(X,0),j=Math.min(j,l._length),{x0:X,x1:j,y0:ie,y1:ie}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=_4.defaultLine;return _4.opacity(o.fillcolor)?G=o.fillcolor:_4.opacity((o.line||{}).color)&&(G=o.line.color),Mm.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&&!Mm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var T4=N((zFe,Sz)=>{"use strict";var kz=Rn();Sz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!kz.hasMarkers(l)&&!kz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";qz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Rz=N((BFe,Dz)=>{"use strict";var w0=br().traceIs,A4=F1();Dz.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=Zge(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:!w0(i,"cartesian")||w0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,Ez(i,a)){var u=Cz(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(Ez(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function Cz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Ez(e,r){var t=Cz(e),a=w0(e,"box-violin"),n=w0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var Fz=N((HFe,Pz)=>{"use strict";var Xge=Vn().isTypedArraySpec;function Jge(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||Xge(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=Jge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var M4=N((UFe,Iz)=>{"use strict";var Nz=Sn().mix,$ge=ui(),Kge=Ee();Iz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,E){return Kge.coerce2(r,t,n.attributes,q,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=Nz(i,n.bgColor,n.blend||$ge.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=Nz(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 S4=N((GFe,Gz)=>{"use strict";var zz=Rr(),Qge=br(),T0=Ee(),e2e=_t(),r2e=no(),k4=di(),Oz=p1(),Bz=y1(),t2e=g1(),a2e=b1(),n2e=Fz(),i2e=M4(),o2e=l5(),Hz=lc(),km=xa().WEEKDAY_PATTERN,l2e=xa().HOUR_PATTERN;Gz.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=Qge.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=T0.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"),Hz(t,i),o2e(r,t,a,n),n2e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==k4.color.dflt?y:l.color,x=s.label||i._dfltTitle[o];if(a2e(r,t,a,c,n),!u)return t;a("title.text",x),T0.coerceFont(a,"title.font",l,{overrideDflt:{size:T0.bigFont(l.size),color:m}}),Oz(r,t,a,c);var T=n.hasMinor;if(T&&(e2e.newContainer(t,"minor"),Oz(r,t,a,c,{isMinor:!0})),t2e(r,t,a,c,n),Bz(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Bz(r,t,a,n),n.isMinor=_}i2e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:k4}),T&&!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(r2e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:s2e}),!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=Uz(i[l]),s){o=km;break}}var u=a("pattern",o);if(u===km)for(l=0;l<2;l++)s=Uz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case km:if(!zz(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 l2e:if(!zz(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 f2e=Rr(),Sm=Ee();Vz.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||(f2e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Sm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=Sm.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&&(_=Sm.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),Sm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Qz=N((YFe,Kz)=>{"use strict";var Iu=Ee(),Yz=Tr(),c2e=Co().isUnifiedHover,v2e=R5(),Wz=_t(),h2e=Of(),jz=di(),d2e=Rz(),Zz=S4(),p2e=Ru(),Xz=q4(),C4=ua(),Yo=C4.id2name,Jz=C4.name2id,y2e=xa().AX_ID_PATTERN,$z=br(),qm=$z.traceIs,L4=$z.getComponentMethod;function Lm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Kz.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 m2e=Sr(),eO=br(),Cm=Ee(),Qn=Wr(),Em=Ir();rO.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Em.redrawComponents(r);return}function o(m){var x=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Qn.setTranslate,0,0).call(Qn.setScale,1,1),m.plot.call(Qn.setTranslate,x._offset,T._offset).call(Qn.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Qn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Qn.setTextPointsScale,1,1),_.call(Qn.hideOutsideRangePoints,m)}function l(m,x){var T=m.plotinfo,_=T.xaxis,b=T.yaxis,w=_._length,k=b._length,M=!!m.xr1,q=!!m.yr1,E=[];if(M){var D=Cm.simpleMap(m.xr0,_.r2l),P=Cm.simpleMap(m.xr1,_.r2l),R=D[1]-D[0],z=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*z/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(q){var I=Cm.simpleMap(m.yr0,b.r2l),B=Cm.simpleMap(m.yr1,b.r2l),G=I[1]-I[0],Y=B[1]-B[0];E[1]=(I[1]*(1-x)+x*B[1]-I[1])/(I[0]-I[1])*k,E[3]=k*(1-x+x*Y/G),b.range[0]=_.l2r(I[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(I[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;Em.drawOne(r,_,{skipTitle:!0}),Em.drawOne(r,b,{skipTitle:!0}),Em.redrawComponents(r,[_._id,b._id]);var V=M?w/E[2]:1,H=q?k/E[3]:1,X=M?E[0]:0,j=q?E[1]:0,ee=M?E[0]/E[2]*w:0,fe=q?E[1]/E[3]*k:0,ie=_._offset-ee,ue=b._offset-fe;T.clipRect.call(Qn.setTranslate,X,j).call(Qn.setScale,1/V,1/H),T.plot.call(Qn.setTranslate,ie,ue).call(Qn.setScale,V,H),Qn.setPointGroupScale(T.zoomScalePts,1/V,1/H),Qn.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 Ci=N(Ja=>{"use strict";var Rm=Sr(),aO=br(),zu=Ee(),g2e=ta(),b2e=Wr(),nO=l1().getModuleCalcData,ms=ua(),co=xa(),x2e=dl(),rt=zu.ensureSingle;function Dm(e,r,t){return zu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ou=co.zindexSeparator;Ja.name="cartesian";Ja.attr=["xaxis","yaxis"];Ja.idRoot=["x","y"];Ja.idRegex=co.idRegex;Ja.attrRegex=co.attrRegex;Ja.attributes=Lz();Ja.layoutAttributes=di();Ja.supplyLayoutDefaults=Qz();Ja.transitionAxes=tO();Ja.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(Ou)!==-1)continue;d+=Ou+(u+1),v=zu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(w+=Ou+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||(Dm(r.minorGridlayer,"g",r.xaxis._id),Dm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort),Dm(r.gridlayer,"g",r.xaxis._id),Dm(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 lO(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Rm.select(this);f.remove(),sO(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 Pm=Rn();uO.exports={hasLines:Pm.hasLines,hasMarkers:Pm.hasMarkers,hasText:Pm.hasText,isBubble:Pm.isBubble,attributes:Ti(),layoutAttributes:n1(),supplyDefaults:CI(),crossTraceDefaults:RI(),supplyLayoutDefaults:FI(),calc:gm().calc,crossTraceCalc:oz(),arraysToCalcdata:ym(),plot:y4(),colorbar:_0(),formatLabels:m4(),style:Nu().style,styleOnSelect:Nu().styleOnSelect,hoverPoints:w4(),selectPoints:T4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ci(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var hO=N((XFe,vO)=>{"use strict";var w2e=Sr(),T2e=Tr(),cO=w_(),E4=Ee(),A2e=E4.strScale,M2e=E4.strRotate,k2e=E4.strTranslate;vO.exports=function(r,t,a){var n=r.node(),i=cO[a.arrowhead||0],o=cO[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)){I();return}if(c){if(c*c>x*x+T*T){I();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){I();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(),q="";if(M{"use strict";var dO=Sr(),D4=br(),S2e=ta(),bs=Ee(),R4=bs.strTranslate,M0=Ir(),Bu=Tr(),Ml=Wr(),pO=Pn(),P4=Aa(),F4=ss(),A0=yi(),q2e=_t().arrayEditor,L2e=hO();gO.exports={draw:C2e,drawOne:yO,drawRaw:mO};function C2e(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 ye=!1,W=["x","y"],Q=0;Q1)&&(ve===le?(Ne=me.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(ye=!0)):ye=!0),Oe=me._offset+me.r2p(r[Z]),Ae=.5}else{var Te=hr==="domain";Z==="x"?(oe=r[Z],Oe=Te?me._offset+me._length*oe:Oe=l.l+l.w*oe):(oe=1-r[Z],Oe=Te?me._offset+me._length*oe:Oe=l.t+l.h*oe),Ae=r.showarrow?.5:oe}if(r.showarrow){De.head=Oe;var qe=r["a"+Z];if(Xe=Pe*he(.5,r.xanchor)-Le*he(.5,r.yanchor),ve===le){var He=M0.getRefType(ve);He==="domain"?(Z==="y"&&(qe=1-qe),De.tail=me._offset+me._length*qe):He==="paper"?Z==="y"?(qe=1-qe,De.tail=l.t+l.h*qe):De.tail=l.l+l.w*qe:De.tail=me._offset+me.r2p(qe),Ue=Xe}else De.tail=Oe+qe,Ue=Xe+qe;De.text=De.tail+Xe;var Je=o[Z==="x"?"width":"height"];if(le==="paper"&&(De.head=bs.constrain(De.head,1,Je-1)),ve==="pixel"){var Ve=-Math.max(De.tail-3,De.text),Ze=Math.min(De.tail+3,De.text)-Je;Ve>0?(De.tail+=Ve,De.text+=Ve):Ze>0&&(De.tail-=Ze,De.text-=Ze)}De.tail+=Ge,De.head+=Ge}else Xe=ze*he(Ae,Be),Ue=Xe,De.text=Oe+Xe;De.text+=Ge,Xe+=Ge,Ue+=Ge,r["_"+Z+"padplus"]=ze/2+Ue,r["_"+Z+"padminus"]=ze/2-Ue,r["_"+Z+"size"]=ze,r["_"+Z+"shift"]=Xe}if(ye){M.remove();return}var or=0,rr=0;if(r.align!=="left"&&(or=(K-ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(rr=(we-ue)*(r.valign==="middle"?.5:1)),ee)j.select("svg").attr({x:D+or-1,y:D+rr}).call(Ml.setClipUrl,R?y:null,e);else{var Ke=D+rr-fe.top,Ie=D+or-fe.left;G.call(P4.positionText,Ie,Ke).call(Ml.setClipUrl,R?y:null,e)}z.select("rect").call(Ml.setRect,D,D,K,we),P.call(Ml.setRect,q/2,q/2,se-q,ce-q),M.call(Ml.setTranslate,Math.round(m.x.text-se/2),Math.round(m.y.text-ce/2)),_.attr({transform:"rotate("+x+","+m.x.text+","+m.y.text+")"});var ne=function(Re,Fe){T.selectAll(".annotation-arrow-g").remove();var Qe=m.x.head,fr=m.y.head,sr=m.x.tail+Re,kr=m.y.tail+Fe,zr=m.x.text+Re,Yr=m.y.text+Fe,et=bs.rotationXYMatrix(x,zr,Yr),qt=bs.apply2DTransform(et),ft=bs.apply2DTransform2(et),Ft=+P.attr("width"),Tt=+P.attr("height"),pa=zr-.5*Ft,$t=pa+Ft,sa=Yr-.5*Tt,dr=sa+Tt,yt=[[pa,sa,pa,dr],[pa,dr,$t,dr],[$t,dr,$t,sa],[$t,sa,pa,sa]].map(ft);if(!yt.reduce(function(Ct,wa){return Ct^!!bs.segmentsIntersect(Qe,fr,Qe+1e6,fr+1e6,wa[0],wa[1],wa[2],wa[3])},!1)){yt.forEach(function(Ct){var wa=bs.segmentsIntersect(sr,kr,Qe,fr,Ct[0],Ct[1],Ct[2],Ct[3]);wa&&(sr=wa.x,kr=wa.y)});var Zr=r.arrowwidth,$r=r.arrowcolor,mt=r.arrowside,Lt=T.append("g").style({opacity:Bu.opacity($r)}).classed("annotation-arrow-g",!0),Gr=Lt.append("path").attr("d","M"+sr+","+kr+"L"+Qe+","+fr).style("stroke-width",Zr+"px").call(Bu.stroke,Bu.rgb($r));if(L2e(Gr,mt,r),s.annotationPosition&&Gr.node().parentNode&&!a){var Bt=Qe,rn=fr;if(r.standoff){var jt=Math.sqrt(Math.pow(Qe-sr,2)+Math.pow(fr-kr,2));Bt+=r.standoff*(sr-Qe)/jt,rn+=r.standoff*(kr-fr)/jt}var dn=Lt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-Bt)+","+(kr-rn),transform:R4(Bt,rn)}).style("stroke-width",Zr+6+"px").call(Bu.stroke,"rgba(0,0,0,0)").call(Bu.fill,"rgba(0,0,0,0)"),pn,Nt;A0.init({element:dn.node(),gd:e,prepFn:function(){var Ct=Ml.getTranslate(M);pn=Ct.x,Nt=Ct.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ct,wa){var il=qt(pn,Nt),ol=il[0]+Ct,ct=il[1]+wa;M.call(Ml.setTranslate,ol,ct),d("x",gs(n,Ct,"x",l,r)),d("y",gs(i,wa,"y",l,r)),r.axref===r.xref&&d("ax",gs(n,Ct,"ax",l,r)),r.ayref===r.yref&&d("ay",gs(i,wa,"ay",l,r)),Lt.attr("transform",R4(Ct,wa)),_.attr({transform:"rotate("+x+","+ol+","+ct+")"})},doneFn:function(){D4.call("_guiRelayout",e,p());var Ct=document.querySelector(".js-notes-box-panel");Ct&&Ct.redraw(Ct.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;A0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Re,Fe){var Qe="pointer";if(r.showarrow)r.axref===r.xref?d("ax",gs(n,Re,"ax",l,r)):d("ax",r.ax+Re),r.ayref===r.yref?d("ay",gs(i,Fe,"ay",l.w,r)):d("ay",r.ay+Fe),ne(Re,Fe);else{if(a)return;var fr,sr;if(n)fr=gs(n,Re,"x",l,r);else{var kr=r._xsize/l.w,zr=r.x+(r._xshift-r.xshift)/l.w-kr/2;fr=A0.align(zr+Re/l.w,kr,0,1,r.xanchor)}if(i)sr=gs(i,Fe,"y",l,r);else{var Yr=r._ysize/l.h,et=r.y-(r._yshift+r.yshift)/l.h-Yr/2;sr=A0.align(et-Fe/l.h,Yr,0,1,r.yanchor)}d("x",fr),d("y",sr),(!n||!i)&&(Qe=A0.getCursor(n?.5:fr,i?.5:sr,r.xanchor,r.yanchor))}_.attr({transform:R4(Re,Fe)+de}),F4(M,Qe)},clickFn:function(Re,Fe){r.captureevents&&e.emit("plotly_clickannotation",k(Fe))},doneFn:function(){F4(M),D4.call("_guiRelayout",e,p());var Re=document.querySelector(".js-notes-box-panel");Re&&Re.redraw(Re.selectedObj)}})}}s.annotationText?G.call(P4.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),D4.call("_guiRelayout",e,p())}):G.call(Y)}});var AO=N(($Fe,TO)=>{"use strict";var bO=Ee(),E2e=br(),xO=_t().arrayEditor;TO.exports={hasClickToShow:D2e,onClick:R2e};function D2e(e,r){var t=wO(e,r);return t.on.length>0||t.explicitOff.length>0}function R2e(e,r){var t=wO(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 N4=Ee(),Pc=Tr();MO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Pc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),N4.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:Pc.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||(Pc.opacity(i)?Pc.rgb(i):Pc.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||Pc.contrast(m)),T=N4.extendFlat({},y.font);T.color||(T.color=x),N4.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var SO=N((QFe,kO)=>{"use strict";var z4=Ee(),Hu=Ir(),P2e=no(),F2e=I4(),N2e=Tc();kO.exports=function(r,t){P2e(r,t,{name:"annotations",handleItemDefaults:I2e})};function I2e(e,r,t){function a(_,b){return z4.coerce(e,r,N2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){F2e(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=Hu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Hu.getFromId(u,v);d._annIndices.push(r._index)}if(Hu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Hu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Hu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(z4.noneOrAll(e,r,["x","y"]),o&&z4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),T=a("yclick");r._xclick=x===void 0?r.x:Hu.cleanPosition(x,u,r.xref),r._yclick=T===void 0?r.y:Hu.cleanPosition(T,u,r.yref)}}}});var CO=N((eNe,LO)=>{"use strict";var O4=Ee(),Uu=Ir(),z2e=Fm().draw;LO.exports=function(r){var t=r._fullLayout,a=O4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return O4.syncOrAsync([z2e,O2e],r)};function O2e(e){var r=e._fullLayout;O4.filterVisible(r.annotations).forEach(function(t){var a=Uu.getFromId(e,t.xref),n=Uu.getFromId(e,t.yref),i=Uu.getRefType(t.xref),o=Uu.getRefType(t.yref);t._extremes={},i==="range"&&qO(t,a),o==="range"&&qO(t,n)})}function qO(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=Uu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Uu.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=Uu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=x}});var DO=N((rNe,EO)=>{"use strict";var B2e=Rr(),H2e=Sp();EO.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=H2e(p,t.range):y=Math.pow(10,p),B2e(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var B4=Fm(),RO=AO();PO.exports={moduleType:"component",name:"annotations",layoutAttributes:Tc(),supplyLayoutDefaults:SO(),includeBasePlot:a0()("annotations"),calcAutorange:CO(),draw:B4.draw,drawOne:B4.drawOne,drawRaw:B4.drawRaw,hasClickToShow:RO.hasClickToShow,onClick:RO.onClick,convertCoords:DO()}});var Nm=N((aNe,NO)=>{"use strict";var kt=Tc(),U2e=Qi().overrideAll,G2e=_t().templatedArray;NO.exports=U2e(G2e("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 zO=N((nNe,IO)=>{"use strict";var H4=Ee(),V2e=Ir(),Y2e=no(),W2e=I4(),j2e=Nm();IO.exports=function(r,t,a){Y2e(r,t,{name:"annotations",handleItemDefaults:Z2e,fullLayout:a.fullLayout})};function Z2e(e,r,t,a){function n(l,s){return H4.coerce(e,r,j2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],V2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(W2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),H4.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),H4.noneOrAll(e,r,["ax","ay"])))}});var UO=N((iNe,HO)=>{"use strict";var OO=Ee(),BO=Ir();HO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function U4(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 J2e(e,r){var t=U4(e.projection,U4(e.view,U4(e.model,[r[0],r[1],r[2],1])));return t}GO.exports=J2e});var WO=N((lNe,YO)=>{"use strict";var $2e=Fm().drawRaw,K2e=VO(),Q2e=["x","y","z"];YO.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=K2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),$2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var XO=N((sNe,ZO)=>{"use strict";var e3e=br(),jO=Ee();ZO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Nm()}}},layoutAttributes:Nm(),handleDefaults:zO(),includeBasePlot:r3e,convert:UO(),draw:WO()};function r3e(e,r){var t=e3e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var uNe=xa(),JO=ga(),$O=Ti().line,t3e=fi().dash,vo=bt().extendFlat,a3e=_t().templatedArray,fNe=e0(),Fc=gn(),KO=Tc(),{shapeTexttemplateAttrs:n3e,templatefallbackAttrs:i3e}=Yn(),o3e=zp();QO.exports=a3e("shape",{visible:vo({},Fc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vo({},Fc.legend,{editType:"calc+arraydraw"}),legendgroup:vo({},Fc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vo({},Fc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:JO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vo({},Fc.legendrank,{editType:"calc+arraydraw"}),legendwidth:vo({},Fc.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:vo({},KO.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:vo({},KO.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:vo({},$O.color,{editType:"arraydraw"}),width:vo({},$O.width,{editType:"calc+arraydraw"}),dash:vo({},t3e,{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:n3e({},{keys:Object.keys(o3e)}),texttemplatefallback:i3e({editType:"arraydraw"}),font:JO({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 rB=N((vNe,eB)=>{"use strict";var Nc=Ee(),ei=Ir(),l3e=no(),s3e=G4(),k0=hs();eB.exports=function(r,t){l3e(r,t,{name:"shapes",handleItemDefaults:f3e})};function u3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function f3e(e,r,t){function a(_,b){return Nc.coerce(e,r,s3e,_,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Nc.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,q,E,D;let P=_+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let z=k0.countDefiningCoords(s,o,_);D=ei.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else D=ei.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(D))D.forEach(function(z){ei.getRefType(z)==="range"&&(M=ei.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let I=D[z];ei.getRefType(I)==="range"?(M=ei.getFromId(k,I),q=k0.shapePositionToRange(M),E=k0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):q=E=Nc.identity;let G=_+z,Y=e[G];if(e[G]=q(e[G],!0),w==="pixel"?a(G,p[z]):ei.coercePosition(r,k,a,I,G,d[z]),r[G]=E(r[G]),e[G]=Y,z===0&&w==="pixel"){let V=e[b];e[b]=q(e[b],!0),ei.coercePosition(r,k,a,I,b,.25),r[b]=E(r[b]),e[b]=V}});else{if(ei.getRefType(D)==="range"?(M=ei.getFromId(k,D),M._shapeIndices.push(r._index),E=k0.rangeToShapePosition(M),q=k0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):q=E=Nc.identity,u){let I=_+"0",B=_+"1",G=e[I],Y=e[B];e[I]=q(e[I],!0),e[B]=q(e[B],!0),w==="pixel"?(a(I,p[0]),a(B,p[1])):(ei.coercePosition(r,k,a,D,I,d[0]),ei.coercePosition(r,k,a,D,B,d[1])),r[I]=E(r[I]),r[B]=E(r[B]),e[I]=G,e[B]=Y}if(w==="pixel"){let I=e[b];e[b]=q(e[b],!0),ei.coercePosition(r,k,a,D,b,.25),r[b]=E(r[b]),e[b]=I}}}),u&&Nc.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",u3e(y,T)),a("label.padding"),Nc.coerceFont(a,"label.font",t.font)}}});var nB=N((hNe,aB)=>{"use strict";var c3e=Tr(),tB=Ee();function v3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}aB.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"),tB.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",c3e.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",v3e(o,u)),a("newshape.label.padding"),tB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var cB=N((dNe,fB)=>{"use strict";var V4=Ee(),Ei=Ir(),Wo=Fh(),Y4=hs();fB.exports=function(r){var t=r._fullLayout,a=V4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=Ei.getFromId(r,c),i._extremes[o._id]=Ei.findExtremes(o,v,oB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ei.getFromId(r,i.xref),l=sB(o,i,Wo.paramIsX),l&&(i._extremes[o._id]=Ei.findExtremes(o,l,oB(i))));if(u==="array"){let f=iB(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=Ei.getFromId(r,c),i._extremes[o._id]=Ei.findExtremes(o,v,lB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ei.getFromId(r,i.yref),l=sB(o,i,Wo.paramIsY),l&&(i._extremes[o._id]=Ei.findExtremes(o,l,lB(i))))}};function iB(e,r,t){let a=r[t+"ref"],n=t==="x"?Wo.paramIsX:Wo.paramIsY;function i(c,v){c==="paper"||Ei.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Wo.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=Ei.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=Y4.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function oB(e){return uB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function lB(e){return uB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function uB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?Y4.extractPathCoords(n,i?Wo.paramIsY:Wo.paramIsX):[t,a],u=V4.aggNums(Math.max,null,s),f=V4.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 sB(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(Wo.segmentRE),p,y,m,x,T;for(e.type==="date"&&(u=Y4.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var dB=N((pNe,hB)=>{"use strict";var vB=My();hB.exports={moduleType:"component",name:"shapes",layoutAttributes:G4(),supplyLayoutDefaults:rB(),supplyDrawNewShapeDefaults:nB(),includeBasePlot:a0()("shapes"),calcAutorange:cB(),draw:vB.draw,drawOne:vB.drawOne}});var W4=N((mNe,yB)=>{"use strict";var pB=xa(),h3e=_t().templatedArray,yNe=e0();yB.exports=h3e("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",pB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",pB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var gB=N((gNe,mB)=>{"use strict";var d3e=Ee(),j4=Ir(),p3e=no(),y3e=W4(),m3e="images";mB.exports=function(r,t){var a={name:m3e,handleItemDefaults:g3e};p3e(r,t,a)};function g3e(e,r,t){function a(v,d){return d3e.coerce(e,r,y3e,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 wB=N((bNe,_B)=>{"use strict";var bB=Sr(),b3e=Wr(),Ic=Ir(),xB=ua(),x3e=dl();_B.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var TB=Rr(),_3e=Sp();AB.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";kB.exports={moduleType:"component",name:"images",layoutAttributes:W4(),supplyLayoutDefaults:gB(),includeBasePlot:a0()("images"),draw:wB(),convertCoords:MB()}});var Im=N((wNe,qB)=>{"use strict";qB.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 Z4=N((TNe,CB)=>{"use strict";var w3e=ga(),T3e=ui(),A3e=bt().extendFlat,M3e=Qi().overrideAll,k3e=Op(),LB=_t().templatedArray,S3e=LB("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}});CB.exports=M3e(LB("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:S3e,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:A3e(k3e({editType:"arraydraw"}),{}),font:w3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:T3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var PB=N((ANe,RB)=>{"use strict";var zm=Ee(),EB=no(),DB=Z4(),q3e=Im(),L3e=q3e.name,C3e=DB.buttons;RB.exports=function(r,t){var a={name:L3e,handleItemDefaults:E3e};EB(r,t,a)};function E3e(e,r,t){function a(o,l){return zm.coerce(e,r,DB,o,l)}var n=EB(e,r,{name:"buttons",handleItemDefaults:D3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function D3e(e,r){function t(n,i){return zm.coerce(e,r,C3e,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 IB=N((MNe,NB)=>{"use strict";NB.exports=Ht;var ho=Sr(),FB=Tr(),zc=Wr(),Om=Ee();function Ht(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})}Ht.barWidth=2;Ht.barLength=20;Ht.barRadius=2;Ht.barPad=1;Ht.barColor="#808BA4";Ht.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,q=Ht.barLength+2*Ht.barPad,E=Ht.barWidth+2*Ht.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(FB.fill,Ht.barColor),M?(this.hbar=R.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:D,y:P,width:q,height:E}),this._hbarXMin=D+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,I=Ht.barWidth+2*Ht.barPad,B=Ht.barLength+2*Ht.barPad,G=l+s,Y=u;G+I>i&&(G=i-I);var V=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(FB.fill,Ht.barColor),z?(this.vbar=V.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:G,y:Y,width:I,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,j=z?_+I+.5:_+.5,ee=b-.5,fe=M?w+E+.5:w+.5,ie=n._topdefs.selectAll("#"+H).data(M||z?[0]:[]);if(ie.exit().remove(),ie.enter().append("clipPath").attr("id",H).append("rect"),M||z?(this._clipRect=ie.select("rect").attr({x:Math.floor(X),y:Math.floor(ee),width:Math.ceil(j)-Math.floor(X),height:Math.ceil(fe)-Math.floor(ee)}),this.container.call(zc.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(zc.setClipUrl,null),delete this._clipRect),M||z){var ue=ho.behavior.drag().on("dragstart",function(){ho.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=ho.behavior.drag().on("dragstart",function(){ho.event.sourceEvent.preventDefault(),ho.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ht.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(zc.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)};Ht.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ho.event.dx),this.vbar&&(t-=ho.event.dy),this.setTranslate(r,t)};Ht.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ho.event.deltaY),this.vbar&&(t+=ho.event.deltaY),this.setTranslate(r,t)};Ht.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Om.constrain(ho.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=Om.constrain(ho.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ht.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Om.constrain(r||0,0,a),t=Om.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(zc.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(zc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(zc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var jB=N((kNe,WB)=>{"use strict";var Oc=Sr(),S0=ta(),q0=Tr(),Bc=Wr(),ri=Ee(),Bm=Aa(),R3e=_t().arrayEditor,OB=Oa().LINE_SPACING,wr=Im(),P3e=IB();WB.exports=function(r){var t=r._fullLayout,a=ri.filterVisible(t[wr.name]);function n(v){S0.autoMargin(r,VB(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(){Oc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,F3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ri.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var U3e=Im();ZB.exports={moduleType:"component",name:U3e.name,layoutAttributes:Z4(),supplyLayoutDefaults:PB(),draw:jB()}});var C0=N((qNe,JB)=>{"use strict";JB.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 K4=N((LNe,QB)=>{"use strict";var $B=ga(),G3e=Op(),V3e=bt().extendDeepAll,Y3e=Qi().overrideAll,W3e=ih(),KB=_t().templatedArray,Gu=C0(),j3e=KB("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}});QB.exports=Y3e(KB("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:V3e(G3e({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:W3e.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:$B({})},font:$B({}),activebgcolor:{valType:"color",dflt:Gu.gripBgActiveColor},bgcolor:{valType:"color",dflt:Gu.railBgColor},bordercolor:{valType:"color",dflt:Gu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Gu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Gu.tickLength},tickcolor:{valType:"color",dflt:Gu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Gu.minorTickLength}}),"arraydraw","from-root")});var aH=N((CNe,tH)=>{"use strict";var Hc=Ee(),eH=no(),rH=K4(),Z3e=C0(),X3e=Z3e.name,J3e=rH.steps;tH.exports=function(r,t){eH(r,t,{name:X3e,handleItemDefaults:$3e})};function $3e(e,r,t){function a(c,v){return Hc.coerce(e,r,rH,c,v)}for(var n=eH(e,r,{name:"steps",handleItemDefaults:K3e}),i=0,o=0;o{"use strict";var po=Sr(),Hm=ta(),xs=Tr(),yo=Wr(),ti=Ee(),Q3e=ti.strTranslate,E0=Aa(),ebe=_t().arrayEditor,Fr=C0(),rw=Oa(),oH=rw.LINE_SPACING,Q4=rw.FROM_TL,ew=rw.FROM_BR;vH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=rbe(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),Hm.autoMargin(r,lH(f))}if(i.exit().each(function(){po.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,tbe);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",Q3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function tw(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function iH(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 ube(e,r,t){var a=t._dims,n=ti.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(fH,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),yo.setTranslate(n,0,a.currentValueTotalHeight)}function fbe(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ti.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"),yo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var pH=N((DNe,dH)=>{"use strict";var cbe=C0();dH.exports={moduleType:"component",name:cbe.name,layoutAttributes:K4(),supplyLayoutDefaults:aH(),draw:hH()}});var Gm=N((RNe,mH)=>{"use strict";var yH=ui();mH.exports={bgcolor:{valType:"color",dflt:yH.background,editType:"plot"},bordercolor:{valType:"color",dflt:yH.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 aw=N((PNe,gH)=>{"use strict";gH.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 Vm=N((FNe,bH)=>{"use strict";bH.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 wH=N(Wm=>{"use strict";var vbe=ua(),hbe=Aa(),xH=Vm(),dbe=Oa().LINE_SPACING,Ym=xH.name;function _H(e){var r=e&&e[Ym];return r&&r.visible}Wm.isVisible=_H;Wm.makeData=function(e){for(var r=vbe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var jm=Ee(),TH=_t(),AH=ua(),pbe=Gm(),ybe=aw();MH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;jm.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=TH.newContainer(i,"rangeslider");function s(w,k){return jm.coerce(o,l,pbe,w,k)}var u,f;function c(w,k){return jm.coerce(u,f,ybe,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")))===AH.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),y=jm.simpleMap(p,AH.id2name),m=0;m{"use strict";var mbe=ua().list,gbe=_h().getAutoRange,bbe=Vm();SH.exports=function(r){for(var t=mbe(r,"x",!0),a=0;a{"use strict";var Zm=Sr(),xbe=br(),_be=ta(),Jt=Ee(),Xm=Jt.strTranslate,CH=Wr(),_s=Tr(),wbe=oc(),Tbe=Ci(),nw=ua(),Abe=yi(),Mbe=ss(),Ur=Vm();EH.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 kbe(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=Zm.event,u=s.target,f=LH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Abe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(x){var T=LH(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 Nbe=Ee(),Ibe=Gm(),zbe=aw(),iw=wH();RH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Nbe.extendFlat({},Ibe,{yaxis:zbe})}}},layoutAttributes:Gm(),handleDefaults:kH(),calcAutorange:qH(),draw:DH(),isVisible:iw.isVisible,makeData:iw.makeData,autoMarginOpts:iw.autoMarginOpts}});var Jm=N((HNe,NH)=>{"use strict";var Obe=ga(),FH=ui(),Bbe=_t().templatedArray,Hbe=Bbe("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"});NH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Hbe,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:Obe({editType:"plot"}),bgcolor:{valType:"color",dflt:FH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:FH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var ow=N((UNe,IH)=>{"use strict";IH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var BH=N((GNe,OH)=>{"use strict";var $m=Ee(),Ube=Tr(),Gbe=_t(),Vbe=no(),zH=Jm(),lw=ow();OH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Gbe.newContainer(t,"rangeselector");function s(d,p){return $m.coerce(o,l,zH,d,p)}var u=Vbe(o,l,{name:"buttons",handleItemDefaults:Ybe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Wbe(t,a,n);s("x",c[0]),s("y",c[1]),$m.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),$m.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Ube.contrast(v,lw.lightAmount,lw.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ybe(e,r,t,a){var n=a.calendar;function i(s,u){return $m.coerce(e,r,zH.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 Wbe(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=ob(),Zbe=Ee().titleCase;HH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Xbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Xbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=jbe["utc"+Zbe(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 JH=N((YNe,XH)=>{"use strict";var Qm=Sr(),Jbe=br(),$be=ta(),GH=Tr(),ZH=Wr(),kl=Ee(),VH=kl.strTranslate,Km=Aa(),Kbe=ua(),fw=Oa(),YH=fw.LINE_SPACING,WH=fw.FROM_TL,jH=fw.FROM_BR,uw=ow(),Qbe=UH();XH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(exe(r),rxe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Qm.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=Qm.select(this),c=Qbe(o,u);u._isActive=txe(o,u,c),f.call(sw,l,u),f.call(nxe,l,u,r),f.on("click",function(){r._dragged||Jbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(sw,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(sw,l,u)})}),oxe(r,s,l,o._name,i)})};function exe(e){for(var r=Kbe.list(e,"x",!0),t=[],a=0;a{"use strict";$H.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Jm()}}},layoutAttributes:Jm(),handleDefaults:BH(),draw:JH()}});var Uc=N(cw=>{"use strict";var QH=bt().extendFlat;cw.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:QH({},t,{}),y:QH({},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};cw.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 lxe=Ee(),sxe=Ff().counter,uxe=Uc().attributes,eU=xa().idRegex,fxe=_t(),vw={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:[sxe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eU.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:uxe({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 eg(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 cxe(e,r){var t=e.grid||{},a=eg(r,t,"x"),n=eg(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=fxe.newContainer(r,"grid");function v(k,M){return lxe.coerce(t,c,vw,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:rU("x",v,T,b,p),y:rU("y",v,_,w,d,x)}}function rU(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";iU.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 sU=N((JNe,lU)=>{"use strict";var oU=Rr(),hxe=br(),dxe=Ee(),pxe=_t(),yxe=hw();lU.exports=function(e,r,t,a){var n="error_"+a.axis,i=pxe.newContainer(r,n),o=e[n]||{};function l(p,y){return dxe.coerce(o,i,yxe,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||oU(o.thickness)||oU(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",hxe.traceIs(r,"gl3d")?0:4))}}});var dw=N(($Ne,fU)=>{"use strict";fU.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=uU(t,r.value),l=uU(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 uU(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 hU=N((KNe,vU)=>{"use strict";var pw=Rr(),mxe=br(),yw=Ir(),gxe=Ee(),bxe=dw();vU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var dU=Sr(),ws=Rr(),xxe=Wr(),_xe=Rn();pU.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=_xe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=dU.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),xxe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=dU.select(this),b=wxe(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 q=_.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=!q.size(),i?q=_.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",w)}else q.remove()}})}})};function wxe(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 bU=N((eIe,gU)=>{"use strict";var Txe=Sr(),mU=Tr();gU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Txe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(mU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(mU.stroke,i.color)})}});var wU=N((rIe,_U)=>{"use strict";var D0=Ee(),xU=Qi().overrideAll,R0=hw(),Vu={error_x:D0.extendFlat({},R0),error_y:D0.extendFlat({},R0)};delete Vu.error_x.copy_zstyle;delete Vu.error_y.copy_zstyle;delete Vu.error_y.copy_ystyle;var P0={error_x:D0.extendFlat({},R0),error_y:D0.extendFlat({},R0),error_z:D0.extendFlat({},R0)};delete P0.error_x.copy_ystyle;delete P0.error_y.copy_ystyle;delete P0.error_z.copy_ystyle;delete P0.error_z.copy_zstyle;_U.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Vu,bar:Vu,histogram:Vu,scatter3d:xU(P0,"calc","nested"),scattergl:xU(Vu,"calc","nested")}},supplyDefaults:sU(),calc:hU(),makeComputeError:dw(),plot:yU(),style:bU(),hoverInfo:Axe};function Axe(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 AU=N((tIe,TU)=>{"use strict";TU.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 EU=N((aIe,CU)=>{"use strict";var Ts=Sr(),mw=Sn(),tg=ta(),MU=br(),Sl=Ir(),rg=yi(),Di=Ee(),go=Di.strTranslate,LU=bt().extendFlat,gw=ss(),mo=Wr(),bw=Tr(),Mxe=oc(),kxe=Aa(),Sxe=jn().flipScale,qxe=S4(),Lxe=q4(),Cxe=di(),xw=Oa(),kU=xw.LINE_SPACING,SU=xw.FROM_TL,qU=xw.FROM_BR,Ot=AU().cn;function Exe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ot.colorbar).data(Dxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ot.colorbar,!0),t.each(function(a){var n=Ts.select(this);Di.ensureSingle(n,"rect",Ot.cbbg),Di.ensureSingle(n,"g",Ot.cbfills),Di.ensureSingle(n,"g",Ot.cblines),Di.ensureSingle(n,"g",Ot.cbaxis,function(o){o.classed(Ot.crisp,!0)}),Di.ensureSingle(n,"g",Ot.cbtitleunshift,function(o){o.append("g").classed(Ot.cbtitle,!0)}),Di.ensureSingle(n,"rect",Ot.cboutline);var i=Rxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Pxe(n,a,e)}),t.exit().each(function(a){tg.autoMargin(e,a._id)}).remove(),t.order()}function Dxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return LU(_,{_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?Sxe(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(W)/Math.LN10));he*=Q*Di.roundUp(W/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=he}se.domain=a?[K+p/b.h,K+H-p/b.h]:[K+d/b.w,K+H-d/b.w],se.setScale(),e.attr("transform",go(Math.round(b.l),Math.round(b.t)));var Z=e.select("."+Ot.cbtitleunshift).attr("transform",go(-Math.round(b.l),-Math.round(b.t))),le=se.ticklabelposition,ve=se.title.font.size,me=e.select("."+Ot.cbaxis),Ce,Pe=0,Le=0;function ze(Ue,oe){var Ae={propContainer:se,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Ot.cbtitle)},Xe=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),Mxe.draw(t,Ue,LU(Ae,oe||{}))}function Be(){if(a&&ce||!a&&!ce){var Ue,oe;q==="top"&&(Ue=d+b.l+X*y,oe=p+b.t+j*(1-K-H)+3+ve*.75),q==="bottom"&&(Ue=d+b.l+X*y,oe=p+b.t+j*(1-K)-3-ve*.25),q==="right"&&(oe=p+b.t+j*m+3+ve*.75,Ue=d+b.l+X*K),ze(se._id+"title",{attributes:{x:Ue,y:oe,"text-anchor":a?"start":"middle"}})}}function Ge(){if(a&&!ce||!a&&ce){var Ue=se.position||0,oe=se._offset+se._length/2,Ae,Xe;if(q==="right")Xe=oe,Ae=b.l+X*Ue+10+ve*(se.showticklabels?1:.5);else if(Ae=oe,q==="bottom"&&(Xe=b.t+j*Ue+10+(le.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=M.text.split("
").length;Xe=b.t+j*Ue+10-G-kU*ve*hr}ze((a?"h":"v")+se._id+"title",{avoid:{selection:Ts.select(t).selectAll("g."+se._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:Xe,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!ce||a&&ce){var Ue=e.select("."+Ot.cbtitle),oe=Ue.select("text"),Ae=[-s/2,s/2],Xe=Ue.select(".h"+se._id+"title-math-group").node(),hr=15.6;oe.node()&&(hr=parseInt(oe.node().style.fontSize,10)*kU);var Ne;if(Xe?(Ne=mo.bBox(Xe),Le=Ne.width,Pe=Ne.height,Pe>hr&&(Ae[1]-=(Pe-hr)/2)):oe.node()&&!oe.classed(Ot.jsPlaceholder)&&(Ne=mo.bBox(oe.node()),Le=Ne.width,Pe=Ne.height),a){if(Pe){if(Pe+=5,q==="top")se.domain[1]-=Pe/b.h,Ae[1]*=-1;else{se.domain[0]+=Pe/b.h;var Te=kxe.lineCount(oe);Ae[1]+=(1-Te)*hr}Ue.attr("transform",go(Ae[0],Ae[1])),se.setScale()}}else Le&&(q==="right"&&(se.domain[0]+=(Le+ve/2)/b.w),Ue.attr("transform",go(Ae[0],Ae[1])),se.setScale())}e.selectAll("."+Ot.cbfills+",."+Ot.cblines).attr("transform",a?go(0,Math.round(b.h*(1-se.domain[1]))):go(Math.round(b.w*se.domain[0]),0)),me.attr("transform",a?go(0,Math.round(-b.t)):go(Math.round(-b.l),0));var qe=e.select("."+Ot.cbfills).selectAll("rect."+Ot.cbfill).attr("style","").data(I);qe.enter().append("rect").classed(Ot.cbfill,!0).attr("style",""),qe.exit().remove();var He=E.map(se.c2p).map(Math.round).sort(function(rr,Ke){return rr-Ke});qe.each(function(rr,Ke){var Ie=[Ke===0?E[0]:(I[Ke]+I[Ke-1])/2,Ke===I.length-1?E[1]:(I[Ke]+I[Ke+1])/2].map(se.c2p).map(Math.round);a&&(Ie[1]=Di.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,He[0],He[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)mo.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(rr).replace("e-","");ne.attr("fill",mw(de).toHexString())}});var Je=e.select("."+Ot.cblines).selectAll("path."+Ot.cbline).data(k.color&&k.width?B:[]);Je.enter().append("path").classed(Ot.cbline,!0),Je.exit().remove(),Je.each(function(rr){var Ke=ee,Ie=Math.round(se.c2p(rr))+k.width/2%1;Ts.select(this).attr("d","M"+(a?Ke+","+Ie:Ie+","+Ke)+(a?"h":"v")+G).call(mo.lineGroupStyle,k.width,D(rr),k.dash)}),me.selectAll("g."+se._id+"tick,path").remove();var Ve=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),Ze=Sl.calcTicks(se),or=Sl.getTickSigns(se)[2];return Sl.drawTicks(t,se,{vals:se.ticks==="inside"?Sl.clipEnds(se,Ze):Ze,layer:me,path:Sl.makeTickPath(se,Ve,or),transFn:Sl.makeTransTickFn(se)}),Sl.drawLabels(t,se,{vals:Ze,layer:me,transFn:Sl.makeTransTickLabelFn(se),labelFns:Sl.makeLabelFns(se,Ve)})}function Oe(){var Ue,oe=G+s/2;le.indexOf("inside")===-1&&(Ue=mo.bBox(me.node()),oe+=a?Ue.width:Ue.height),Ce=Z.select("text");var Ae=0,Xe=a&&q==="top",hr=!a&&q==="right",Ne=0;if(Ce.node()&&!Ce.classed(Ot.jsPlaceholder)){var Te,qe=Z.select(".h"+se._id+"title-math-group").node();qe&&(a&&ce||!a&&!ce)?(Ue=mo.bBox(qe),Ae=Ue.width,Te=Ue.height):(Ue=mo.bBox(Z.node()),Ae=Ue.right-b.l-(a?ee:we),Te=Ue.bottom-b.t-(a?we:ee),!a&&q==="top"&&(oe+=Ue.height,Ne=Ue.height)),hr&&(Ce.attr("transform",go(Ae/2+ve/2,0)),Ae*=2),oe=Math.max(oe,a?Ae:Te)}var He=(a?d:p)*2+oe+u+s/2,Je=0;!a&&M.text&&v==="bottom"&&m<=0&&(Je=He/2,He+=Je,Ne+=Je),_._hColorbarMoveTitle=Je,_._hColorbarMoveCBTitle=Ne;var Ve=u+s,Ze=(a?ee:we)-Ve/2-(a?d:0),or=(a?we:ee)-(a?V:p+Ne-Je);e.select("."+Ot.cbbg).attr("x",Ze).attr("y",or).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(V+Ve,2)).call(bw.fill,f).call(bw.stroke,r.bordercolor).style("stroke-width",u);var rr=hr?Math.max(Ae-10,0):0;e.selectAll("."+Ot.cboutline).attr("x",(a?ee:we+d)+rr).attr("y",(a?we+p-V:ee)+(Xe?Pe:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(V-(a?2*p+Pe:2*d+rr),2)).call(bw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?fe*He:0,Ie=a?0:(1-ie)*He-Ne;if(Ke=T?b.l-Ke:-Ke,Ie=x?b.t-Ie:-Ie,e.attr("transform",go(Ke,Ie)),!a&&(u||mw(f).getAlpha()&&!mw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,Re=e.select("."+Ot.cbbg).node(),Fe=mo.bBox(Re),Qe=mo.getTranslate(e),fr=2;ne.each(function(pa,$t){var sa=0,dr=de-1;if($t===sa||$t===dr){var yt=mo.bBox(this),Zr=mo.getTranslate(this),$r;if($t===dr){var mt=yt.right+Zr.x,Lt=Fe.right+Qe.x+we-u-fr+y;$r=Lt-mt,$r>0&&($r=0)}else if($t===sa){var Gr=yt.left+Zr.x,Bt=Fe.left+Qe.x+we+u+fr;$r=Bt-Gr,$r<0&&($r=0)}$r&&(de<3?this.setAttribute("transform","translate("+$r+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},kr=SU[c],zr=qU[c],Yr=SU[v],et=qU[v],qt=He-G;a?(i==="pixels"?(sr.y=m,sr.t=V*Yr,sr.b=V*et):(sr.t=sr.b=0,sr.yt=m+n*Yr,sr.yb=m-n*et),l==="pixels"?(sr.x=y,sr.l=He*kr,sr.r=He*zr):(sr.l=qt*kr,sr.r=qt*zr,sr.xl=y-o*kr,sr.xr=y+o*zr)):(i==="pixels"?(sr.x=y,sr.l=V*kr,sr.r=V*zr):(sr.l=sr.r=0,sr.xl=y+n*kr,sr.xr=y-n*zr),l==="pixels"?(sr.y=1-m,sr.t=He*Yr,sr.b=He*et):(sr.t=qt*Yr,sr.b=qt*et,sr.yt=m-o*Yr,sr.yb=m+o*et));var ft=r.y<.5?"b":"t",Ft=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Tt={r:_.width-Ze-Ke,l:Ze+sr.r,b:_.height-or-Ie,t:or+sr.b};T&&x?tg.autoMargin(t,r._id,sr):T?t._fullLayout._reservedMargin[r._id][ft]=Tt[ft]:x||a?t._fullLayout._reservedMargin[r._id][Ft]=Tt[Ft]:t._fullLayout._reservedMargin[r._id][ft]=Tt[ft]}return Di.syncOrAsync([tg.previousPromises,Be,De,Ge,tg.previousPromises,Oe],t)}function Pxe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;rg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),gw(e)},moveFn:function(u,f){e.attr("transform",o+go(u,f)),l=rg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=rg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=rg.getCursor(l,s,r.xanchor,r.yanchor);gw(e,c)},doneFn:function(){if(gw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?MU.call("_guiRestyle",t,u,r._traceIndex):MU.call("_guiRelayout",t,u)}}})}function Fxe(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";DU.exports={moduleType:"component",name:"colorbar",attributes:h1(),supplyDefaults:gx(),draw:EU().draw,hasColorbar:cx()}});var FU=N((iIe,PU)=>{"use strict";PU.exports={moduleType:"component",name:"legend",layoutAttributes:h5(),supplyLayoutDefaults:p5(),draw:q5(),style:A5()}});var IU=N((oIe,NU)=>{"use strict";NU.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 OU=N((lIe,zU)=>{"use strict";zU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var ww=N((sIe,GU)=>{"use strict";var Ixe=br(),UU=Ee(),_w=UU.extendFlat,BU=UU.extendDeep;function HU(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 zxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}GU.exports=function(r,t){var a,n=r.data,i=r.layout,o=BU([],n),l=BU({},i,HU(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 Oxe=su().EventEmitter,Bxe=br(),Hxe=Ee(),VU=Tl(),Uxe=ww(),Gxe=sm(),Vxe=um();function Yxe(e,r){var t=new Oxe,a=Uxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=VU.getDelay(n._fullLayout);setTimeout(function(){var s=Gxe(n),u=document.createElement("canvas");u.id=Hxe.randstr(),t=Vxe({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=VU.getRedrawFunc(n);return Bxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}YU.exports=Yxe});var XU=N((fIe,ZU)=>{"use strict";var jU=Tl(),Wxe={getDelay:jU.getDelay,getRedrawFunc:jU.getRedrawFunc,clone:ww(),toSVG:sm(),svgToImg:um(),toImage:WU(),downloadImage:W_()};ZU.exports=Wxe});var $U=N(ql=>{"use strict";ql.version=mp().version;eM();GS();var jxe=br(),F0=ql.register=jxe.register,Aw=fI(),JU=Object.keys(Aw);for(ag=0;ag{"use strict";KU.exports=$U()});var Wu=N((hIe,nG)=>{"use strict";var Wt=Ti(),eG=ao().axisHoverFormat,{hovertemplateAttrs:Zxe,texttemplateAttrs:Xxe,templatefallbackAttrs:rG}=Yn(),aG=qo(),Jxe=ga(),tG=m0(),$xe=fi().pattern,Yu=bt().extendFlat,Mw=Jxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Kxe=Wt.marker,Qxe=Kxe.line,e5e=Yu({},Qxe.width,{dflt:0}),r5e=Yu({width:e5e,editType:"calc"},aG("marker.line")),t5e=Yu({line:r5e,editType:"calc"},aG("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:$xe,cornerradius:{valType:"any",editType:"calc"}});nG.exports={x:Wt.x,x0:Wt.x0,dx:Wt.dx,y:Wt.y,y0:Wt.y0,dy:Wt.dy,xperiod:Wt.xperiod,yperiod:Wt.yperiod,xperiod0:Wt.xperiod0,yperiod0:Wt.yperiod0,xperiodalignment:Wt.xperiodalignment,yperiodalignment:Wt.yperiodalignment,xhoverformat:eG("x"),yhoverformat:eG("y"),text:Wt.text,texttemplate:Xxe({editType:"plot"},{keys:tG.eventDataKeys}),texttemplatefallback:rG({editType:"plot"}),hovertext:Wt.hovertext,hovertemplate:Zxe({},{keys:tG.eventDataKeys}),hovertemplatefallback:rG(),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:Yu({},Mw,{}),insidetextfont:Yu({},Mw,{}),outsidetextfont:Yu({},Mw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yu({},Wt.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:t5e,offsetgroup:Wt.offsetgroup,alignmentgroup:Wt.alignmentgroup,selected:{marker:{opacity:Wt.selected.marker.opacity,color:Wt.selected.marker.color,editType:"style"},textfont:Wt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Wt.unselected.marker.opacity,color:Wt.unselected.marker.color,editType:"style"},textfont:Wt.unselected.textfont,editType:"style"},zorder:Wt.zorder}});var ig=N((dIe,iG)=>{"use strict";iG.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 kw=N((pIe,sG)=>{"use strict";var a5e=Tr(),oG=jn().hasColorscale,lG=yl(),n5e=Ee().coercePattern;sG.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=oG(r,"marker");l&&lG(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",a5e.defaultLine),oG(r,"marker.line")&&lG(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),n5e(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var ju=N((yIe,dG)=>{"use strict";var uG=Rr(),Vc=Ee(),fG=Tr(),i5e=br(),o5e=X_(),l5e=Mc(),s5e=kw(),u5e=p0(),cG=Wu(),og=Vc.coerceFont;function f5e(e,r,t,a){function n(u,f){return Vc.coerce(e,r,cG,u,f)}var i=o5e(e,r,a,n);if(!i){r.visible=!1;return}l5e(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");hG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s5e(e,r,n,t,a);var l=(r.marker.line||{}).color,s=i5e.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||fG.defaultLine,{axis:"y"}),s(e,r,l||fG.defaultLine,{axis:"x",inherit:"y"}),Vc.coerceSelectionMarkerOpacity(r,n)}function c5e(e,r){var t,a;function n(l,s){return Vc.coerce(a._input,a,cG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&uG(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function hG(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=og(a,"textfont",t.font),x=Vc.extendFlat({},m),T=e.textfont&&e.textfont.color,_=!T;if(_&&delete x.color,og(a,"insidetextfont",x),v){var b=Vc.extendFlat({},m);_&&delete b.color,og(a,"pathbar.textfont",b)}y&&og(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")}dG.exports={supplyDefaults:f5e,crossTraceDefaults:c5e,handleText:hG,validateCornerradius:vG}});var Sw=N((mIe,pG)=>{"use strict";var v5e=br(),h5e=Ir(),d5e=Ee(),p5e=ig(),y5e=ju().validateCornerradius;pG.exports=function(e,r,t){function a(y,m){return d5e.coerce(e,r,p5e,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=h5e.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=y5e(p)}});var lg=N((gIe,yG)=>{"use strict";var Yc=Ee();yG.exports=function(r,t){for(var a=0;a{"use strict";var mG=Ir(),gG=Sc(),bG=jn().hasColorscale,xG=ec(),m5e=lg(),g5e=mm();_G.exports=function(r,t){var a=mG.getFromId(r,t.xaxis||"x"),n=mG.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=gG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=gG(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 b5e=Sr(),x5e=Ee();function _5e(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=b5e.select(this).select("text");x5e.setTransormAndDisplay(u,s)}})}}function w5e(e,r,t){if(t.uniformtext.mode){var a=TG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var A5e=Rr(),M5e=Sn(),MG=Ee().isArrayOrTypedArray;Zu.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};Zu.coerceNumber=function(e,r,t){if(A5e(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};Zu.coerceColor=function(e,r,t){return M5e(r).isValid()?r:t!==void 0?t:e.dflt};Zu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Zu.getValue=function(e,r){var t;return MG(e)?r{"use strict";var I0=Sr(),k5e=Tr(),z0=Wr(),kG=Ee(),SG=br(),qG=N0().resizeText,qw=Wu(),S5e=qw.textfont,q5e=qw.insidetextfont,L5e=qw.outsidetextfont,Ga=sg();function C5e(e){var r=I0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");qG(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)&&I0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=I0.select(this),o=n[0].trace;LG(i,o,e)}),SG.getComponentMethod("errorbars","style")(r)}function LG(e,r,t){z0.pointStyle(e.selectAll("path"),r,t),CG(e,r,t)}function CG(e,r,t){e.selectAll("text").each(function(a){var n=I0.select(this),i=kG.ensureUniformFontSize(t,EG(n,a,r,t));z0.font(n,i)})}function E5e(e,r,t){var a=r[0].trace;a.selectedpoints?D5e(t,a,e):(LG(t,a,e),SG.getComponentMethod("errorbars","style")(t))}function D5e(e,r,t){z0.selectedPointStyle(e.selectAll("path"),r),R5e(e.selectAll("text"),r,t)}function R5e(e,r,t){e.each(function(a){var n=I0.select(this),i;if(a.selected){i=kG.ensureUniformFontSize(t,EG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),z0.font(n,i)}else z0.selectedTextStyle(n,r)})}function EG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=FG(r,t);i=RG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=PG(t,r.i,n));return i}function DG(e,r,t){return Lw(S5e,e.textfont,r,t)}function RG(e,r,t,a){var n=DG(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:k5e.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}),Lw(q5e,e.insidetextfont,r,n)}function PG(e,r,t){var a=DG(e,r,t);return Lw(L5e,e.outsidetextfont,r,a)}function Lw(e,r,t,a){r=r||{};var n=Ga.getValue(r.family,t),i=Ga.getValue(r.size,t),o=Ga.getValue(r.color,t),l=Ga.getValue(r.weight,t),s=Ga.getValue(r.style,t),u=Ga.getValue(r.variant,t),f=Ga.getValue(r.textcase,t),c=Ga.getValue(r.lineposition,t),v=Ga.getValue(r.shadow,t);return{family:Ga.coerceString(e.family,n,a.family),size:Ga.coerceNumber(e.size,i,a.size),color:Ga.coerceColor(e.color,o,a.color),weight:Ga.coerceString(e.weight,l,a.weight),style:Ga.coerceString(e.style,s,a.style),variant:Ga.coerceString(e.variant,u,a.variant),textcase:Ga.coerceString(e.variant,f,a.textcase),lineposition:Ga.coerceString(e.variant,c,a.lineposition),shadow:Ga.coerceString(e.variant,v,a.shadow)}}function FG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}NG.exports={style:C5e,styleTextPoints:CG,styleOnSelect:E5e,getInsideTextFont:RG,getOutsideTextFont:PG,getBarColor:FG,resizeText:qG}});var Dw=N((TIe,VG)=>{"use strict";var ug=Sr(),fg=Rr(),Da=Ee(),P5e=Aa(),F5e=Tr(),As=Wr(),N5e=br(),cg=Ir().tickText,IG=N0(),I5e=IG.recordMinTextSize,z5e=IG.clearMinTextSize,Cw=Wc(),jc=sg(),O5e=m0(),zG=Wu(),B5e=zG.text,H5e=zG.textposition,U5e=Co().appendArrayPointValue,cn=O5e.TEXTPAD;function G5e(e){return e.id}function V5e(e){if(e.ids)return G5e}function Ew(e){return(e>0)-(e<0)}function jo(e,r){return e0}function W5e(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},z5e("bar",s));var f=Da.makeTraceGroups(a,t,"trace bars").each(function(c){var v=ug.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=BG(n),M=Da.ensureSingle(v,"g","points"),q=V5e(d),E=M.selectAll("g.point").data(Da.identity,q);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=ug.select(this),I=Y5e(P,o,l,w),B=I[0][0],G=I[0][1],Y=I[1][0],V=I[1][1],H=(w?G-B:V-Y)===0;H&&_&&jc.getLineWidth(d,P)&&(H=!1),H||(H=!fg(B)||!fg(G)||!fg(Y)||!fg(V)),P.isBlank=H,H&&(w?G=B:V=Y),b&&!H&&(w?(B-=jo(B,G)*b,G+=jo(B,G)*b):(Y-=jo(Y,V)*b,V+=jo(Y,V)*b));var X,j;if(d.type==="waterfall"){if(!H){var ee=d[P.dir].marker;X=ee.line.width,j=ee.color}}else X=jc.getLineWidth(d,P),j=P.mc||d.marker.color;function fe(oe){var Ae=ug.round(X/2%1,2);return n.gap===0&&n.groupgap===0?ug.round(Math.round(oe)-Ae,2):oe}function ie(oe,Ae,Xe){return Xe&&oe===Ae?oe:Math.abs(oe-Ae)>=2?fe(oe):oe>Ae?Math.ceil(oe):Math.floor(oe)}var ue=F5e.opacity(j),K=ue<1||X>.01?fe:ie;e._context.staticPlot||(B=K(B,G,w),G=K(G,B,w),Y=K(Y,V,!w),V=K(V,Y,!w));var we=w?o.c2p:l.c2p,se;P.s0>0?se=P._sMax:P.s0<0?se=P._sMin:se=P.s1>0?P._sMax:P._sMin;function ce(oe,Ae){if(!oe)return 0;var Xe=Math.abs(w?V-Y:G-B),hr=Math.abs(w?G-B:V-Y),Ne=K(Math.abs(we(se,!0)-we(0,!0))),Te=P.hasB?Math.min(Xe/2,hr/2):Math.min(Xe/2,Ne),qe;if(Ae==="%"){var He=Math.min(50,oe);qe=Xe*(He/100)}else qe=oe;return K(Math.max(Math.min(qe,Te),0))}var he=T||x?ce(p.cornerradiusvalue,p.cornerradiusform):0,ye,W,Q="M"+B+","+Y+"V"+V+"H"+G+"V"+Y+"Z",Z=0;if(he&&P.s){var le=Ew(P.s0)===0||Ew(P.s)===Ew(P.s0)?P.s1:P.s0;if(Z=K(P.hasB?0:Math.abs(we(se,!0)-we(le,!0))),Z0?Math.sqrt(Z*(2*he-Z)):0,ze=ve>0?Math.max:Math.min;ye="M"+B+","+Y+"V"+(V-Pe*me)+"H"+ze(G-(he-Z)*ve,B)+"A "+he+","+he+" 0 0 "+Ce+" "+G+","+(V-he*me-Le)+"V"+(Y+he*me+Le)+"A "+he+","+he+" 0 0 "+Ce+" "+ze(G-(he-Z)*ve,B)+","+(Y+Pe*me)+"Z"}else if(P.hasB)ye="M"+(B+he*ve)+","+Y+"A "+he+","+he+" 0 0 "+Ce+" "+B+","+(Y+he*me)+"V"+(V-he*me)+"A "+he+","+he+" 0 0 "+Ce+" "+(B+he*ve)+","+V+"H"+(G-he*ve)+"A "+he+","+he+" 0 0 "+Ce+" "+G+","+(V-he*me)+"V"+(Y+he*me)+"A "+he+","+he+" 0 0 "+Ce+" "+(G-he*ve)+","+Y+"Z";else{W=Math.abs(V-Y)+Z;var Be=W0?Math.sqrt(Z*(2*he-Z)):0,De=me>0?Math.max:Math.min;ye="M"+(B+Be*ve)+","+Y+"V"+De(V-(he-Z)*me,Y)+"A "+he+","+he+" 0 0 "+Ce+" "+(B+he*ve-Ge)+","+V+"H"+(G-he*ve+Ge)+"A "+he+","+he+" 0 0 "+Ce+" "+(G-Be*ve)+","+De(V-(he-Z)*me,Y)+"V"+Y+"Z"}}else ye=Q}else ye=Q;var Oe=OG(Da.ensureSingle(z,"path"),s,n,i);if(Oe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-B)*(V-Y))||H&&e._context.staticPlot?"M0,0Z":ye).call(As.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ue=As.makePointStyleFns(d);As.singlePointStyle(P,Oe,d,Ue,e)}j5e(e,r,z,c,R,B,G,Y,V,he,Z,n,i),r.layerClipId&&As.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;As.setClipUrl(v,D?null:r.layerClipId,e)});N5e.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(W,Q,Z){var le=Da.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(As.font,Z).call(P5e.convertToTspans,e);return le}var T=a[0].trace,_=T.orientation==="h",b=J5e(y,a,n,d,p);m=$5e(T,n);var w=c.mode==="stack"||c.mode==="relative",k=a[n],M=!w||k._outmost,q=k.hasB,E=u&&u-f>cn;if(!b||m==="none"||(k.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var D=y.font,P=Cw.getBarColor(a[n],T),R=Cw.getInsideTextFont(T,n,D,P),z=Cw.getOutsideTextFont(T,n,D),I=T.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&fe>0,K;E?q?K=Xu(V-2*u,H,ee,fe,_)||Xu(V,H-2*u,ee,fe,_):_?K=Xu(V-(u-f),H,ee,fe,_)||Xu(V,H-2*(u-f),ee,fe,_):K=Xu(V,H-(u-f),ee,fe,_)||Xu(V-2*(u-f),H,ee,fe,_):K=Xu(V,H,ee,fe,_),ue&&K?m="inside":(m="outside",X.remove(),X=null)}else m="inside";if(!X){ie=Da.ensureUniformFontSize(e,m==="outside"?z:R),X=x(t,b,ie);var we=X.attr("transform");if(X.attr("transform",""),j=As.bBox(X.node()),ee=j.width,fe=j.height,X.attr("transform",we),ee<=0||fe<=0){X.remove();return}}var se=T.textangle,ce,he;m==="outside"?(he=T.constraintext==="both"||T.constraintext==="outside",ce=X5e(i,o,l,s,j,{isHorizontal:_,constrained:he,angle:se})):(he=T.constraintext==="both"||T.constraintext==="inside",ce=GG(i,o,l,s,j,{isHorizontal:_,constrained:he,angle:se,anchor:I,hasB:q,r:u,overhead:f})),ce.fontSize=ie.size,I5e(T.type==="histogram"?"bar":T.type,ce,y),k.transform=ce;var ye=OG(X,y,c,v);Da.setTransormAndDisplay(ye,ce)}function Xu(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 HG(e){return e==="auto"?0:e}function UG(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 GG(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*cn&&w>2*cn?cn:0;b-=2*k,w-=2*k;var M=HG(s);s==="auto"&&!(T<=b&&_<=w)&&(T>b||_>w)&&(!(T>w||_>b)||T<_!=bcn){var P=Z5e(e,r,t,a,q,m,x,o,y);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/q.x,w/q.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,I=(e+cn)*p+(r-cn)*d,B=(t+a)/2,G=0,Y=0;if(c||f){var V=(o?q.x:q.y)/2;m&&(f||y)&&(k+=D);var H=o?jo(e,r):jo(t,a);o?c?(I=e+H*k,G=-H*V):(I=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:z,targetX:I,targetY:B,anchorX:G,anchorY:Y,scale:E,rotate:M}}function Z5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*cn),f=Math.max(0,Math.abs(a-t)-2*cn),c=i-cn,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 X5e(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*cn?cn:0:d=c>2*cn?cn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=HG(s),m=UG(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,q=o?jo(r,e):jo(t,a);return o?(b=r-q*d,k=q*x):(w=a+q*d,M=-q*x),{textX:T,textY:_,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:p,rotate:y}}function J5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=K5e(e,r,t,a,n):i.textinfo?l=Q5e(r,t,a,n):l=jc.getValue(i.text,t),jc.coerceString(B5e,l)}function $5e(e,r){var t=jc.getValue(e.textposition,r);return jc.coerceEnumerated(H5e,t)}function K5e(e,r,t,a,n){var i=r[0].trace,o=Da.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 cg(v,v.c2l(k),!0).text}function m(k){return cg(p,p.c2l(k),!0).text}var x=r[t],T={};T.label=x.p,T.labelLabel=T[c+"Label"]=y(x.p);var _=Da.castOption(i,x.i,"text");(_===0||_)&&(T.text=_),T.value=x.s,T.valueLabel=T[d+"Label"]=m(x.s);var b={};U5e(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=Da.formatPercent(x.begR),T.percentPrevious=x.difR,T.percentPreviousLabel=Da.formatPercent(x.difR),T.percentTotal=x.sumR,T.percenTotalLabel=Da.formatPercent(x.sumR));var w=Da.castOption(i,x.i,"customdata");return w&&(T.customdata=w),Da.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function Q5e(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 cg(k,w,!0).text}function u(w){var k=i?t:a;return cg(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=Da.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=Da.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Da.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Da.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}VG.exports={plot:W5e,toMoveInsideBar:GG}});var Pw=N((AIe,ZG)=>{"use strict";var O0=Pn(),e_e=br(),YG=Tr(),r_e=Ee().fillText,t_e=sg().getLineWidth,Rw=Ir().hoverLabelText,a_e=zt().BADNUM;function n_e(e,r,t,a,n){var i=WG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=jG(l,s),e_e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function WG(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,we){var se=K.w;return K[p]+we*se/2}function q(K){return K[p+"End"]-K[p+"Start"]}var E=s?w:_?function(K){return K.p-q(K)/2}:function(K){return Math.min(w(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+q(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,we,se){return n.finiteRange&&(se=0),O0.inbox(K-v,we-v,se+Math.min(1,Math.abs(we-K)/T)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(w(K),k(K),c)}function I(K){var we=K[y];if(u){var se=Math.abs(K.rawS)||0;d>0?we+=se:d<0&&(we-=se)}return we}function B(K){var we=d,se=K.b,ce=I(K);return O0.inbox(se-we,ce-we,f+(ce-we)/(ce-se)-1)}function G(K){var we=d,se=K.b,ce=I(K);return O0.inbox(se-we,ce-we,c+(ce-we)/(ce-se)-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=O0.getDistanceFunction(a,m,x,H);if(O0.getClosest(i,X,e),e.index!==!1&&i[e.index].p!==a_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 j=e.index,ee=i[j],fe=o.base?ee.b+ee.s:ee.s;e[y+"0"]=e[y+"1"]=V.c2p(ee[y],!0),e[y+"LabelVal"]=fe;var ie=l.extents[l.extents.round(ee.p)];e[p+"0"]=Y.c2p(s?E(ee):ie[0],!0),e[p+"1"]=Y.c2p(s?D(ee):ie[1],!0);var ue=ee.orig_p!==void 0;return e[p+"LabelVal"]=ue?ee.orig_p:ee.p,e.labelLabel=Rw(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Rw(V,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=Rw(V,ee.b,o[y+"hoverformat"]),e.spikeDistance=(G(ee)+z(ee))/2,e[p+"Spike"]=Y.c2p(ee.p,!0),r_e(ee,o,e),e.hovertemplate=o.hovertemplate,e}}function jG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=t_e(e,r);if(YG.opacity(t))return t;if(YG.opacity(a)&&n)return a}ZG.exports={hoverPoints:n_e,hoverOnBars:WG,getTraceColor:jG}});var JG=N((MIe,XG)=>{"use strict";XG.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 Fw=N((kIe,$G)=>{"use strict";$G.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";KG.exports={attributes:Wu(),layoutAttributes:ig(),supplyDefaults:ju().supplyDefaults,crossTraceDefaults:ju().crossTraceDefaults,supplyLayoutDefaults:Sw(),calc:wG(),crossTraceCalc:_m().crossTraceCalc,colorbar:_0(),arraysToCalcdata:lg(),plot:Dw().plot,style:Wc().style,styleOnSelect:Wc().styleOnSelect,hoverPoints:Pw().hoverPoints,eventData:JG(),selectPoints:Fw(),moduleType:"trace",name:"bar",basePlotModule:Ci(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var rV=N((qIe,eV)=>{"use strict";eV.exports=QG()});var vg=N((LIe,iV)=>{"use strict";var o_e=Uy(),Ri=Ti(),tV=Wu(),l_e=ui(),aV=ao().axisHoverFormat,{hovertemplateAttrs:s_e,templatefallbackAttrs:u_e}=Yn(),Ll=bt().extendFlat,Zc=Ri.marker,nV=Zc.line;iV.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:Ri.xperiod,yperiod:Ri.yperiod,xperiod0:Ri.xperiod0,yperiod0:Ri.yperiod0,xperiodalignment:Ri.xperiodalignment,yperiodalignment:Ri.yperiodalignment,xhoverformat:aV("x"),yhoverformat:aV("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({},Zc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Ll({},Zc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Ll({},Zc.angle,{arrayOk:!1,editType:"calc"}),size:Ll({},Zc.size,{arrayOk:!1,editType:"calc"}),color:Ll({},Zc.color,{arrayOk:!1,editType:"style"}),line:{color:Ll({},nV.color,{arrayOk:!1,dflt:l_e.defaultLine,editType:"style"}),width:Ll({},nV.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:o_e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:tV.offsetgroup,alignmentgroup:tV.alignmentgroup,selected:{marker:Ri.selected.marker,editType:"style"},unselected:{marker:Ri.unselected.marker,editType:"style"},text:Ll({},Ri.text,{}),hovertext:Ll({},Ri.hovertext,{}),hovertemplate:s_e({}),hovertemplatefallback:u_e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ri.zorder}});var hg=N((CIe,oV)=>{"use strict";oV.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 H0=N((EIe,fV)=>{"use strict";var Pi=Ee(),f_e=br(),c_e=Tr(),v_e=Mc(),h_e=p0(),lV=F1(),B0=vg();function d_e(e,r,t,a){function n(p,y){return Pi.coerce(e,r,B0,p,y)}if(sV(e,r,n,a),r.visible!==!1){v_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",c_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 Pi.validate(e.notchwidth,B0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),uV(e,r,n,{prefix:"box"}),n("zorder")}}function sV(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Pi.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Pi.validate(e[D],B0[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(Pi.minRowLength(u),Pi.minRowLength(f),Pi.minRowLength(c))}var v=n(o),d=n(l),p=v&&Pi.minRowLength(o),y=d&&Pi.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 q=t("orientation",T);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var E=f_e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function uV(e,r,t,a){var n=a.prefix,i=Pi.coerce2(e,r,B0,"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")),Pi.coerceSelectionMarkerOpacity(r,t)}function p_e(e,r){var t,a;function n(s){return Pi.coerce(a._input,a,B0,s)}for(var i=0;i{"use strict";var y_e=br(),m_e=Ee(),g_e=hg();function cV(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var zw=Rr(),dg=Ir(),x_e=Sc(),oa=Ee(),ai=zt().BADNUM,Cl=oa._;_V.exports=function(r,t){var a=r._fullLayout,n=dg.getFromId(r,t.xaxis||"x"),i=dg.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=__e(t,d,v,a[l]),m=y[0],x=y[1],T=oa.distinctVals(m,v),_=T.vals,b=T.minDiff/2,w,k,M,q,E,D,P=(t.boxpoints||t.points)==="all"?oa.identity:function(Ce){return Ce.vw.uf};if(t._hasPreCompStats){var R=t[c],z=function(Ce){return f.d2c((t[Ce]||[])[s])},I=1/0,B=-1/0;for(s=0;s=w.q1&&w.q3>=w.med){var Y=z("lowerfence");w.lf=Y!==ai&&Y<=w.q1?Y:yV(w,M,q);var V=z("upperfence");w.uf=V!==ai&&V>=w.q3?V:mV(w,M,q);var H=z("mean");w.mean=H!==ai?H:q?oa.mean(M,q):(w.q1+w.q3)/2;var X=z("sd");w.sd=H!==ai&&X>=0?X:q?oa.stdev(M,q,w.mean):w.q3-w.q1,w.lo=gV(w),w.uo=bV(w);var j=z("notchspan");j=j!==ai&&j>0?j:xV(w,q),w.ln=w.med-j,w.un=w.med+j;var ee=w.lf,fe=w.uf;t.boxpoints&&M.length&&(ee=Math.min(ee,M[0]),fe=Math.max(fe,M[q-1])),t.notched&&(ee=Math.min(ee,w.ln),fe=Math.max(fe,w.un)),w.min=ee,w.max=fe}else{oa.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+w.q1,"median = "+w.med,"q3 = "+w.q3].join(` -`));var ie;w.med!==ai?ie=w.med:w.q1!==ai?w.q3!==ai?ie=(w.q1+w.q3)/2:ie=w.q1:w.q3!==ai?ie=w.q3:ie=0,w.med=ie,w.q1=w.q3=ie,w.lf=w.uf=ie,w.mean=w.sd=ie,w.ln=w.un=ie,w.min=w.max=ie}I=Math.min(I,w.min),B=Math.max(B,w.max),w.pts2=k.filter(P),o.push(w)}}t._extremes[f._id]=dg.findExtremes(f,[I,B],{padded:!0})}else{var ue=f.makeCalcdata(t,c),K=w_e(_,b),we=_.length,se=T_e(we);for(s=0;s=0&&ce0){if(w={},w.pos=w[d]=_[s],k=w.pts=se[s].sort(dV),M=w[c]=k.map(pV),q=M.length,w.min=M[0],w.max=M[q-1],w.mean=oa.mean(M,q),w.sd=oa.stdev(M,q,w.mean)*t.sdmultiple,w.med=oa.interp(M,.5),q%2&&(Q||Z)){var le,ve;Q?(le=M.slice(0,q/2),ve=M.slice(q/2+1)):Z&&(le=M.slice(0,q/2+1),ve=M.slice(q/2)),w.q1=oa.interp(le,.5),w.q3=oa.interp(ve,.5)}else w.q1=oa.interp(M,.25),w.q3=oa.interp(M,.75);w.lf=yV(w,M,q),w.uf=mV(w,M,q),w.lo=gV(w),w.uo=bV(w);var me=xV(w,q);w.ln=w.med-me,w.un=w.med+me,he=Math.min(he,w.ln),ye=Math.max(ye,w.un),w.pts2=k.filter(P),o.push(w)}t.notched&&oa.isTypedArray(ue)&&(ue=Array.from(ue)),t._extremes[f._id]=dg.findExtremes(f,t.notched?ue.concat([he,ye]):ue,{padded:!0})}return A_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 __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=x_e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||zw(e.name)&&["linear","log"].indexOf(t.type)!==-1||oa.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 wV=Ir(),M_e=Ee(),k_e=Ru().getAxisGroup,TV=["v","h"];function S_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=q*(k?1:.5),j=X,H=j=D):M==="negative"?(V=j=D,H=q*(k?1:.5),ee=X):(V=H=q,j=ee=X),se){var ce=b.pointpos,he=b.jitter,ye=b.marker.size/2,W=0;ce+he>=0&&(W=X*(ce+he),W>V?(we=!0,ue=ye,fe=W):W>j&&(ue=ye,fe=V)),W<=V&&(fe=V);var Q=0;ce-he<=0&&(Q=-X*(ce-he),Q>H?(we=!0,K=ye,ie=Q):Q>ee&&(K=ye,ie=H)),Q<=H&&(ie=H)}else fe=V,ie=H;var Z=new Array(f.length);for(u=0;u{"use strict";var Xc=Sr(),Ju=Ee(),q_e=Wr(),kV=5,L_e=.01;function C_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Ju.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Xc.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),SV(s,{pos:v,val:d},c,f,n),qV(s,{x:i,y:o},c,f),LV(s,{pos:v,val:d},c,f)})}function SV(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?Ju.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 Xc.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,q=t.whiskerwidth,E=s?w*q+(1-q)*M:l.l2p(b-f)+c,D=s?k*q+(1-q)*M:l.l2p(b+f)+c,P=l.l2p(b-m*y)+c,R=l.l2p(b+x*y)+c,z=t.sizemode==="sd",I=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),G=Ju.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(I,B)+1,Math.max(I,B)-1),Y=_.lf===void 0||t.boxpoints===!1||z,V=o.c2p(Y?_.min:_.lf,!0),H=o.c2p(Y?_.max:_.uf,!0),X=o.c2p(_.ln,!0),j=o.c2p(_.un,!0);i?Xc.select(this).attr("d","M"+G+","+P+"V"+R+"M"+I+","+w+"V"+k+(p?"H"+X+"L"+G+","+R+"L"+j+","+k:"")+"H"+B+"V"+w+(p?"H"+j+"L"+G+","+P+"L"+X+","+w:"")+"Z"+(d?"M"+I+","+M+"H"+V+"M"+B+","+M+"H"+H+(v===0?"":"M"+V+","+E+"V"+D+"M"+H+","+E+"V"+D):"")):Xc.select(this).attr("d","M"+P+","+G+"H"+R+"M"+w+","+I+"H"+k+(p?"V"+X+"L"+R+","+G+"L"+k+","+j:"")+"V"+B+"H"+w+(p?"V"+j+"L"+P+","+G+"L"+w+","+X:"")+"Z"+(d?"M"+M+","+I+"V"+V+"M"+M+","+B+"V"+H+(v===0?"":"M"+E+","+V+"H"+D+"M"+E+","+H+"H"+D):""))})}function qV(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Ju.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*L_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(q_e.translatePoints,n,i)}function LV(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?Ju.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"?Xc.select(this).attr("d","M"+T+","+y+"V"+m+(u==="sd"?"m0,0L"+_+","+x+"L"+T+","+y+"L"+b+","+x+"Z":"")):Xc.select(this).attr("d","M"+y+","+T+"H"+m+(u==="sd"?"m0,0L"+x+","+_+"L"+y+","+T+"L"+x+","+b+"Z":""))})}CV.exports={plot:C_e,plotBoxAndWhiskers:SV,plotPoints:qV,plotBoxMean:LV}});var Yw=N((NIe,EV)=>{"use strict";var Uw=Sr(),Gw=Tr(),Vw=Wr();function E_e(e,r,t){var a=t||Uw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Uw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Gw.stroke,d).call(Gw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Uw.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(Gw.stroke,o.line.color);var f=i.selectAll("path.point");Vw.pointStyle(f,o,e)}})}function D_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Vw.selectedPointStyle(n,a):Vw.pointStyle(n,a,e)}EV.exports={style:E_e,styleOnSelect:D_e}});var jw=N((IIe,FV)=>{"use strict";var R_e=Ir(),Ww=Ee(),Ms=Pn(),DV=Tr(),P_e=Ww.fillText;function F_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(RV(e,r,t,a))),o.indexOf("points")!==-1&&(s=PV(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function RV(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,q=s.wHover,E=function(ye){return v.c2l(ye.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(ye){var W=E(ye);return Ms.inbox(W,W+q,_)},k=w,M=0),l.side==="negative"&&(T=function(ye){var W=E(ye);return Ms.inbox(W-q,W,_)},k=0,M=w)):(T=function(ye){var W=E(ye);return Ms.inbox(W-q,W+q,_)},k=M=w);var D;u?D=function(ye){return Ms.inbox(ye.span[0]-p,ye.span[1]-p,_)}:D=function(ye){return Ms.inbox(ye.min-p,ye.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(ye){return(m(ye)+x(ye))/2}var z=Ms.getDistanceFunction(a,m,x,R);if(Ms.getClosest(n,z,e),e.index===!1)return[];var I=n[e.index],B=l.line.color,G=(l.marker||{}).color;DV.opacity(B)&&l.line.width?e.color=B:DV.opacity(G)&&l.boxpoints?e.color=G:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(I.pos+s.bPos+k,!0),e[f+"LabelVal"]=I.orig_p!==void 0?I.orig_p:I.pos;var Y=f+"Spike";e.spikeDistance=R(I)*b/_,e[Y]=v.c2p(I.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"],j=d.range[1]{"use strict";NV.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 Zw=N((OIe,zV)=>{"use strict";zV.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";OV.exports={attributes:vg(),layoutAttributes:hg(),supplyDefaults:H0().supplyDefaults,crossTraceDefaults:H0().crossTraceDefaults,supplyLayoutDefaults:Nw().supplyLayoutDefaults,calc:Ow(),crossTraceCalc:Bw().crossTraceCalc,plot:Hw().plot,style:Yw().style,styleOnSelect:Yw().styleOnSelect,hoverPoints:jw().hoverPoints,eventData:IV(),selectPoints:Zw(),moduleType:"trace",name:"box",basePlotModule:Ci(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var UV=N((HIe,HV)=>{"use strict";HV.exports=BV()});var U0=N((UIe,VV)=>{"use strict";var N_e=qo(),{extendFlat:On}=bt(),I_e=gn(),{axisHoverFormat:Xw}=ao(),z_e=ga(),{hovertemplateAttrs:O_e,templatefallbackAttrs:GV,texttemplateAttrs:B_e}=Yn(),ni=Ti();VV.exports=On({z:{valType:"data_array",editType:"calc"},x:On({},ni.x,{impliedEdits:{xtype:"array"}}),x0:On({},ni.x0,{impliedEdits:{xtype:"scaled"}}),dx:On({},ni.dx,{impliedEdits:{xtype:"scaled"}}),y:On({},ni.y,{impliedEdits:{ytype:"array"}}),y0:On({},ni.y0,{impliedEdits:{ytype:"scaled"}}),dy:On({},ni.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:On({},ni.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:On({},ni.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:On({},ni.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:On({},ni.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:On({},ni.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:On({},ni.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:Xw("x"),yhoverformat:Xw("y"),zhoverformat:Xw("z",1),hovertemplate:O_e(),hovertemplatefallback:GV(),texttemplate:B_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:GV({editType:"plot"}),textfont:z_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:On({},I_e.showlegend,{dflt:!1}),zorder:ni.zorder},N_e("",{cLetter:"z",autoColorDflt:!1}))});var Jw=N((GIe,WV)=>{"use strict";var H_e=Rr(),pg=Ee(),U_e=br();WV.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(pg.isArray1D(l)){s=a(i),u=a(o);var f=pg.minRowLength(s),c=pg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=YV(i,a),u=YV(o,a),!G_e(l))return 0;a("transpose"),t._length=null}var v=U_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function YV(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function G_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var jV=Ee();ZV.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=jV.extendFlat({},t.font,{color:"auto",size:"auto"});jV.coerceFont(r,"textfont",a)}});var $w=N((YIe,XV)=>{"use strict";XV.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var KV=N((WIe,$V)=>{"use strict";var JV=Ee(),V_e=Jw(),Y_e=G0(),W_e=Mc(),j_e=$w(),Z_e=yl(),X_e=U0();$V.exports=function(r,t,a,n){function i(l,s){return JV.coerce(r,t,X_e,l,s)}var o=V_e(r,t,i,n);if(!o){t.visible=!1;return}W_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),Y_e(i,n),j_e(r,t,i,n),i("hoverongaps"),i("connectgaps",JV.isArray1D(t.z)&&t.zsmooth!==!1),Z_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Kw=N((jIe,QV)=>{"use strict";var Jc=Rr();QV.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Jc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Jc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Jc(n))if(n=Number(n),Jc(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(Jc(n))if(n=Number(n),Jc(t[e])){if(t[e]{"use strict";eY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";rY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var $c=zt(),$u=$c.ONEAVGYEAR,tY=$c.ONEAVGMONTH,mg=$c.ONEDAY,aY=$c.ONEHOUR,nY=$c.ONEMIN,iY=$c.ONESEC,oY=Ir().tickIncrement;uY.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(yg(u+l,u+s,n,i),yg(f+l,f+s,n,i)),v=Math.min(yg(u+o,u+l,n,i),yg(f+o,f+l,n,i)),d,p;if(c>v&&vmg){var y=d===$u?1:6,m=d===$u?"M12":"M1";return function(x,T){var _=n.c2d(x,$u,i),b=_.indexOf("-",y);b>0&&(_=_.slice(0,b));var w=n.d2c(_,0,i);if(wiY?e>mg?e>$u*1.1?$u:e>tY*1.1?tY:mg:e>aY?aY:e>nY?nY:iY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function J_e(e,r,t,a,n,i){if(a&&e>mg){var o=sY(r,n,i),l=sY(t,n,i),s=e===$u?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function sY(e,r,t){var a=r.c2d(e,$u,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var n6=N(($Ie,dY)=>{"use strict";var t6=Rr(),vn=Ee(),fY=br(),Fi=Ir(),{hasColorscale:cY}=jn(),vY=ec(),$_e=lg(),hY=Kw(),K_e=Qw(),Q_e=e6(),e4e=r6();function r4e(e,r){var t=[],a=[],n=r.orientation==="h",i=Fi.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=a6(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,q,E,D;u.enabled&&M&&(w=w.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=hY.count,I=K_e[w],B=!1,G=function(W){return i.r2c(W,0,s)},Y;for(vn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],B=k==="avg",z=hY[k]),f=G(v.start),E=G(v.end)+(f-Fi.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ce;f--)if(a[f]){he=f;break}for(f=ce;f<=he;f++)if(t6(t[f])&&t6(a[f])){var ye={p:t[f],s:a[f],b:0};u.enabled||(ye.pts=_[f],j?ye.ph0=ye.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ye.ph0=K(y[f]),ye.ph1=K(y[f+1],!0))),se.push(ye)}return se.length===1&&(se[0].width1=Fi.tickIncrement(se[0].p,v.size,!1,s)-se[0].p),cY(r,"marker")&&vY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),cY(r,"marker.line")&&vY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),$_e(se,r),vn.isArrayOrTypedArray(r.selectedpoints)&&vn.tagSelected(se,r,ie),se}function a6(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?vn.cleanDate(ue,null,d):null}:function(ue){return t6(ue)?Number(ue):null};function b(ue,K,we){K[ue+"Found"]?(K[ue]=_(K[ue]),K[ue]===null&&(K[ue]=we[ue])):(y[ue]=K[ue]=we[ue],vn.nestedProperty(c[0],i+"."+ue).set(we[ue]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var w=[],k=!0,M=!1,q=!1;for(f=0;ft.r2l(Y)&&(H=Fi.tickIncrement(H,s.size,!0,d)),z.start=t.l2r(H),G||vn.nestedProperty(r,i+".start").set(z.start)}var X=s.end,j=t.r2l(R.end),ee=j!==void 0;if((s.endFound||ee)&&j!==t.r2l(X)){var fe=ee?j:vn.aggNums(Math.max,null,p);z.end=t.l2r(fe),ee||vn.nestedProperty(r,i+".start").set(z.end)}var ie="autobin"+a;return r._input[ie]===!1&&(r._input[i]=vn.extendFlat({},r[i]||{}),delete r._input[ie],delete r[ie]),[z,p]}function t4e(e,r,t,a,n){var i=e._fullLayout,o=a4e(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())}}dY.exports={calc:r4e,calcAllAutoBins:a6}});var wY=N((KIe,_Y)=>{"use strict";var pY=Ee(),Kc=Ir(),yY=Kw(),i4e=Qw(),o4e=e6(),l4e=r6(),mY=n6().calcAllAutoBins;_Y.exports=function(r,t){var a=Kc.getFromId(r,t.xaxis),n=Kc.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=mY(r,t,a,"x"),m=y[0],x=y[1],T=mY(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=[],q=[],E=typeof m.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:m,I=D?R:_,B=0,G=[],Y=[],V=t.histnorm,H=t.histfunc,X=V.indexOf("density")!==-1,j=H==="max"||H==="min",ee=j?null:0,fe=yY.count,ie=i4e[V],ue=!1,K=[],we=[],se="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";se&&H!=="count"&&(ue=H==="avg",fe=yY[H]);var ce=m.size,he=l(m.start),ye=l(m.end)+(he-Kc.tickIncrement(he,ce,!1,i))/1e6;for(c=he;c=0&&d=0&&p{"use strict";var Zo=Ee(),TY=zt().BADNUM,AY=Sc();MY.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=AY(r,t,n,s).vals,u=AY(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Zo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Zo.isArray1D(v),p,y,m=Zo.distinctVals(s),x=m.vals,T=Zo.distinctVals(u),_=T.vals,b=[],w,k,M=_.length,q=x.length;for(p=0;p{"use strict";var s4e=Rr(),u4e=Ee(),gg=zt().BADNUM;SY.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(s4e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var f4e=Ee(),LY=.01,c4e=[[-1,0],[1,0],[0,-1],[0,1]];function v4e(e){return .5-.25*Math.min(1,e*.5)}EY.exports=function(r,t){var a=1,n;for(CY(r,t),n=0;nLY;n++)a=CY(r,t,v4e(a));return a>LY&&f4e.log("interp2d didn't converge quickly",a),r};function CY(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 PY=N((tze,RY)=>{"use strict";var h4e=Ee().maxRowLength;RY.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=h4e(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 zY=N((aze,IY)=>{"use strict";var FY=br(),NY=Ee().isArrayOrTypedArray;IY.exports=function(r,t,a,n,i,o){var l=[],s=FY.traceIs(r,"contour"),u=FY.traceIs(r,"histogram"),f,c,v,d=NY(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 OY=br(),i6=Ee(),bg=Ir(),BY=Sc(),d4e=wY(),p4e=ec(),y4e=kY(),m4e=qY(),g4e=DY(),b4e=PY(),xg=zY(),o6=zt().BADNUM;UY.exports=function(r,t){var a=bg.getFromId(r,t.xaxis||"x"),n=bg.getFromId(r,t.yaxis||"y"),i=OY.traceIs(t,"contour"),o=OY.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=d4e(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;i6.isArray1D(_)?(y4e(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=BY(t,a,"x",c).vals,v=BY(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=m4e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=x4e(s,v,m),o||(s=HY(s),v=HY(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=b4e(m),g4e(m,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,i6.warn('cannot use zsmooth: "fast": '+z)}function w(z){if(z.length>1){var I=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(I/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=i6.maxRowLength(m),M=t.xtype==="scaled"?"":s,q=xg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=xg(t,E,d,p,m.length,n);t._extremes[a._id]=bg.findExtremes(a,q),t._extremes[n._id]=bg.findExtremes(n,D);var P={x:q,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===q.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||p4e(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=xg(R,M,u,f,k,a),P.yfill=xg(R,E,d,p,m.length,n)}return[P]};function HY(e){for(var r=[],t=e.length,a=0;a{"use strict";wg.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"]];wg.STYLE=wg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var s6=N((oze,VY)=>{"use strict";var GY=Tg(),_4e=Wr(),l6=Ee(),Qc=null;function w4e(){if(Qc!==null)return Qc;Qc=!1;var e=l6.isSafari()||l6.isMacWKWebView()||l6.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(GY.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Qc=r.some(function(o){return t.apply(null,o)});else{var a=_4e.tester.append("image").attr("style",GY.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Qc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Qc}VY.exports=w4e});var Ag=N((lze,QY)=>{"use strict";var YY=Sr(),T4e=Sn(),A4e=br(),M4e=Wr(),k4e=Ir(),Ni=Ee(),WY=Aa(),S4e=m4(),q4e=Tr(),L4e=Lo().extractOpts,C4e=Lo().makeColorScaleFuncFromTrace,E4e=dl(),D4e=Oa(),u6=D4e.LINE_SPACING,R4e=s6(),P4e=Tg().STYLE,$Y="heatmap-label";function KY(e){return e.selectAll("g."+$Y)}function jY(e){KY(e).remove()}QY.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ni.makeTraceGroups(a,t,"hm").each(function(o){var l=YY.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=A4e.traceIs(u,"contour"),T=x?"best":u.zsmooth,_=v.length,b=Ni.maxRowLength(v),w=!1,k=!1,M,q,E,D,P,R,z,I;for(R=0;M===void 0&&R0;)q=n.c2p(d[R]),R--;for(q0;)P=i.c2p(p[R]),R--;P=n._length||q<=0||D>=i._length||P<=0;if(H){var X=l.selectAll("image").data([]);X.exit().remove(),jY(l);return}var j,ee;B==="fast"?(j=b,ee=_):(j=Y,ee=V);var fe=document.createElement("canvas");fe.width=j,fe.height=ee;var ie=fe.getContext("2d",{willReadFrequently:!0}),ue=C4e(u,{noNumericCheck:!0,returnArray:!0}),K,we;B==="fast"?(K=w?function(ct){return b-1-ct}:Ni.identity,we=k?function(ct){return _-1-ct}:Ni.identity):(K=function(ct){return Ni.constrain(Math.round(n.c2p(d[ct])-M),0,Y)},we=function(ct){return Ni.constrain(Math.round(i.c2p(p[ct])-D),0,V)});var se=we(0),ce=[se,se],he=w?0:1,ye=k?0:1,W=0,Q=0,Z=0,le=0,ve,me,Ce,Pe,Le;function ze(ct,An){if(ct!==void 0){var It=ue(ct);return It[0]=Math.round(It[0]),It[1]=Math.round(It[1]),It[2]=Math.round(It[2]),W+=An,Q+=It[0]*An,Z+=It[1]*An,le+=It[2]*An,It}return[0,0,0,0]}function Be(ct,An,It,Ys){var yn=ct[It.bin0];if(yn===void 0)return ze(void 0,1);var Wi=ct[It.bin1],Zt=An[It.bin0],ji=An[It.bin1],Bl=Wi-yn||0,Hl=Zt-yn||0,mr;return Wi===void 0?ji===void 0?mr=0:Zt===void 0?mr=2*(ji-yn):mr=(2*ji-Zt-yn)*2/3:ji===void 0?Zt===void 0?mr=0:mr=(2*yn-Wi-Zt)*2/3:Zt===void 0?mr=(2*ji-Wi-yn)*2/3:mr=ji+yn-Wi-Zt,ze(yn+It.frac*Bl+Ys.frac*(Hl+It.frac*mr))}if(B!=="default"){var Ge=0,De;try{De=new Uint8Array(j*ee*4)}catch(ct){De=new Array(j*ee*4)}if(B==="smooth"){var Oe=y||d,Ue=m||p,oe=new Array(Oe.length),Ae=new Array(Ue.length),Xe=new Array(Y),hr=y?XY:ZY,Ne=m?XY:ZY,Te,qe,He;for(R=0;Rqt||qt>i._length))for(z=kr;zFt||Ft>n._length)){var Tt=S4e({x:ft,y:et},u,e._fullLayout);Tt.x=ft,Tt.y=et;var pa=s.z[R][z];pa===void 0?(Tt.z="",Tt.zLabel=""):(Tt.z=pa,Tt.zLabel=k4e.tickText(Re,pa,"hover").text);var $t=s.text&&s.text[R]&&s.text[R][z];($t===void 0||$t===!1)&&($t=""),Tt.text=$t;var sa=Ni.texttemplateString({data:[Tt,u._meta],fallback:u.texttemplatefallback,labels:Tt,locale:e._fullLayout._d3locale,template:ne});if(sa){var dr=sa.split("
"),yt=dr.length,Zr=0;for(I=0;I{"use strict";eW.exports={min:"zmin",max:"zmax"}});var Mg=N((uze,rW)=>{"use strict";var F4e=Sr();rW.exports=function(r){F4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var Sg=N((fze,aW)=>{"use strict";var tW=Pn(),V0=Ee(),kg=V0.isArrayOrTypedArray,N4e=Ir(),I4e=Lo().extractOpts;aW.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){V0.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(tW.inbox(t-c[0],t-c[c.length-1],0)>0||tW.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(T=[2*c[0]-c[1]],q=1;q{"use strict";nW.exports={attributes:U0(),supplyDefaults:KV(),calc:_g(),plot:Ag(),colorbar:f6(),style:Mg(),hoverPoints:Sg(),moduleType:"trace",name:"heatmap",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var lW=N((vze,oW)=>{"use strict";oW.exports=iW()});var c6=N((hze,sW)=>{"use strict";sW.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var fW=N((dze,uW)=>{"use strict";uW.exports={eventDataKeys:["binNumber"]}});var qg=N((pze,dW)=>{"use strict";var Bn=Wu(),cW=ao().axisHoverFormat,{hovertemplateAttrs:z4e,texttemplateAttrs:O4e,templatefallbackAttrs:vW}=Yn(),v6=ga(),hW=c6(),B4e=fW(),h6=bt().extendFlat;dW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:cW("x"),yhoverformat:cW("y"),text:h6({},Bn.text,{}),hovertext:h6({},Bn.hovertext,{}),orientation:Bn.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:hW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:hW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:z4e({},{keys:B4e.eventDataKeys}),hovertemplatefallback:vW(),texttemplate:O4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:vW({editType:"plot"}),textposition:h6({},Bn.textposition,{arrayOk:!1}),textfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Bn.insidetextanchor,textangle:Bn.textangle,cliponaxis:Bn.cliponaxis,constraintext:Bn.constraintext,marker:Bn.marker,offsetgroup:Bn.offsetgroup,alignmentgroup:Bn.alignmentgroup,selected:Bn.selected,unselected:Bn.unselected,zorder:Bn.zorder}});var gW=N((yze,mW)=>{"use strict";var pW=br(),Y0=Ee(),yW=Tr(),H4e=ju().handleText,U4e=kw(),G4e=qg();mW.exports=function(r,t,a,n){function i(T,_){return Y0.coerce(r,t,G4e,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");H4e(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(Y0.minRowLength(o)&&Y0.minRowLength(l)):Y0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=pW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),U4e(r,t,i,a,n),Y0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,x=pW.getComponentMethod("errorbars","supplyDefaults");x(r,t,m||yW.defaultLine,{axis:"y"}),x(r,t,m||yW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var Cg=N((mze,_W)=>{"use strict";var W0=Ee(),V4e=ua(),Lg=br().traceIs,Y4e=p0(),W4e=ju().validateCornerradius,bW=W0.nestedProperty,d6=Ru().getAxisGroup,xW=[{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"];_W.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,G){return W0.coerce(l._input,l,l._module.attributes,B,G)}function y(B){return B.orientation==="v"?"x":"y"}function m(B,G){var Y=V4e.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"]||"",j=a[G],ee=!0;j&&(H===j.axType&&X===j.calendar?(ee=!1,j.traces.push(B),j.dirs.push(Y)):(G=V,H!==j.axType&&W0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+H,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),X!==j.calendar&&W0.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",j.calendar?"on a "+j.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 Z4e=Pw().hoverPoints,X4e=Ir().hoverLabelText;wW.exports=function(r,t,a,n,i){var o=Z4e(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"]=X4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var p6=N((bze,AW)=>{"use strict";AW.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";MW.exports={attributes:qg(),layoutAttributes:ig(),supplyDefaults:gW(),crossTraceDefaults:Cg(),supplyLayoutDefaults:Sw(),calc:n6().calc,crossTraceCalc:_m().crossTraceCalc,plot:Dw().plot,layerName:"barlayer",style:Wc().style,styleOnSelect:Wc().styleOnSelect,colorbar:_0(),hoverPoints:TW(),selectPoints:Fw(),eventData:p6(),moduleType:"trace",name:"histogram",basePlotModule:Ci(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var qW=N((_ze,SW)=>{"use strict";SW.exports=kW()});var Dg=N((wze,EW)=>{"use strict";var bo=qg(),LW=c6(),Eg=U0(),J4e=gn(),y6=ao().axisHoverFormat,{hovertemplateAttrs:$4e,texttemplateAttrs:K4e,templatefallbackAttrs:CW}=Yn(),Q4e=qo(),j0=bt().extendFlat;EW.exports=j0({x:bo.x,y:bo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:bo.histnorm,histfunc:bo.histfunc,nbinsx:bo.nbinsx,xbins:LW("x"),nbinsy:bo.nbinsy,ybins:LW("y"),autobinx:bo.autobinx,autobiny:bo.autobiny,bingroup:j0({},bo.bingroup,{}),xbingroup:j0({},bo.bingroup,{}),ybingroup:j0({},bo.bingroup,{}),xgap:Eg.xgap,ygap:Eg.ygap,zsmooth:Eg.zsmooth,xhoverformat:y6("x"),yhoverformat:y6("y"),zhoverformat:y6("z",1),hovertemplate:$4e({},{keys:["z"]}),hovertemplatefallback:CW(),texttemplate:K4e({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:CW({editType:"plot"}),textfont:Eg.textfont,showlegend:j0({},J4e.showlegend,{dflt:!1})},Q4e("",{cLetter:"z",autoColorDflt:!1}))});var m6=N((Tze,RW)=>{"use strict";var ewe=br(),DW=Ee();RW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=DW.minRowLength(i),s=DW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=ewe.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 FW=N((Aze,PW)=>{"use strict";var rwe=Ee(),twe=m6(),awe=$w(),nwe=yl(),iwe=G0(),owe=Dg();PW.exports=function(r,t,a,n){function i(o,l){return rwe.coerce(r,t,owe,o,l)}twe(r,t,i,n),t.visible!==!1&&(awe(r,t,i,n),nwe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),iwe(i,n),i("xhoverformat"),i("yhoverformat"))}});var zW=N((Mze,IW)=>{"use strict";var lwe=Sg(),NW=Ir().hoverLabelText;IW.exports=function(r,t,a,n,i){var o=lwe(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=NW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=NW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var BW=N((kze,OW)=>{"use strict";OW.exports={attributes:Dg(),supplyDefaults:FW(),crossTraceDefaults:Cg(),calc:_g(),plot:Ag(),layerName:"heatmaplayer",colorbar:f6(),style:Mg(),hoverPoints:zW(),eventData:p6(),moduleType:"trace",name:"histogram2d",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var UW=N((Sze,HW)=>{"use strict";HW.exports=BW()});var Rg=N((qze,GW)=>{"use strict";GW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Fg=N((Lze,jW)=>{"use strict";var la=U0(),Pg=Ti(),YW=ao(),g6=YW.axisHoverFormat,swe=YW.descriptionOnlyNumbers,uwe=qo(),fwe=fi().dash,cwe=ga(),ev=bt().extendFlat,WW=Rg(),vwe=WW.COMPARISON_OPS2,hwe=WW.INTERVAL_OPS,VW=Pg.line;jW.exports=ev({z:la.z,x:la.x,x0:la.x0,dx:la.dx,y:la.y,y0:la.y0,dy:la.dy,xperiod:la.xperiod,yperiod:la.yperiod,xperiod0:Pg.xperiod0,yperiod0:Pg.yperiod0,xperiodalignment:la.xperiodalignment,yperiodalignment:la.yperiodalignment,text:la.text,hovertext:la.hovertext,transpose:la.transpose,xtype:la.xtype,ytype:la.ytype,xhoverformat:g6("x"),yhoverformat:g6("y"),zhoverformat:g6("z",1),hovertemplate:la.hovertemplate,hovertemplatefallback:la.hovertemplatefallback,texttemplate:ev({},la.texttemplate,{}),texttemplatefallback:la.texttemplatefallback,textfont:ev({},la.textfont,{}),hoverongaps:la.hoverongaps,connectgaps:ev({},la.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:cwe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:swe("contour label")},operation:{valType:"enumerated",values:[].concat(vwe).concat(hwe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},VW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:fwe,smoothing:ev({},VW.smoothing,{}),editType:"plot"},zorder:Pg.zorder},uwe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var x6=N((Cze,XW)=>{"use strict";var $a=Dg(),Xo=Fg(),dwe=qo(),b6=ao().axisHoverFormat,ZW=bt().extendFlat;XW.exports=ZW({x:$a.x,y:$a.y,z:$a.z,marker:$a.marker,histnorm:$a.histnorm,histfunc:$a.histfunc,nbinsx:$a.nbinsx,xbins:$a.xbins,nbinsy:$a.nbinsy,ybins:$a.ybins,autobinx:$a.autobinx,autobiny:$a.autobiny,bingroup:$a.bingroup,xbingroup:$a.xbingroup,ybingroup:$a.ybingroup,autocontour:Xo.autocontour,ncontours:Xo.ncontours,contours:Xo.contours,line:{color:Xo.line.color,width:ZW({},Xo.line.width,{dflt:.5}),dash:Xo.line.dash,smoothing:Xo.line.smoothing,editType:"plot"},xhoverformat:b6("x"),yhoverformat:b6("y"),zhoverformat:b6("z",1),hovertemplate:$a.hovertemplate,hovertemplatefallback:$a.hovertemplatefallback,texttemplate:Xo.texttemplate,texttemplatefallback:Xo.texttemplatefallback,textfont:Xo.textfont},dwe("",{cLetter:"z",editTypeOverride:"calc"}))});var _6=N((Eze,JW)=>{"use strict";JW.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 w6=N((Dze,$W)=>{"use strict";var pwe=Ee();$W.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;pwe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var T6=N((Rze,KW)=>{"use strict";var ywe=yl(),mwe=w6();KW.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,ywe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),mwe(a,n,s,i)}});var tj=N((Pze,rj)=>{"use strict";var QW=Ee(),gwe=m6(),bwe=_6(),xwe=T6(),_we=G0(),ej=x6();rj.exports=function(r,t,a,n){function i(l,s){return QW.coerce(r,t,ej,l,s)}function o(l){return QW.coerce2(r,t,ej,l)}gwe(r,t,i,n),t.visible!==!1&&(bwe(r,t,i,o),xwe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&_we(i,n))}});var ij=N((Fze,nj)=>{"use strict";var M6=Ir(),A6=Ee();nj.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=A6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=A6.aggNums(Math.max,null,t));var o=aj(n,i,r.ncontours);a.size=o.dtick,a.start=M6.tickFirst(o),o.range.reverse(),a.end=M6.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={}),A6.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=aj(l,s,r.ncontours).dtick,u.size=a.size=f}}};function aj(e,r,t){var a={type:"linear",range:[e,r]};return M6.autoTicks(a,(r-e)/(t||15)),a}});var Z0=N((Nze,oj)=>{"use strict";oj.exports=function(r){return r.end+r.size/1e6}});var k6=N((Ize,sj)=>{"use strict";var lj=Lo(),wwe=_g(),Twe=ij(),Awe=Z0();sj.exports=function(r,t){var a=wwe(r,t),n=a[0].z;Twe(t,n);var i=t.contours,o=lj.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=Awe(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 lj.calc(r,t,{vals:l,cLetter:"z"}),a}});var Ng=N((zze,uj)=>{"use strict";uj.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 cj=N((Oze,fj)=>{"use strict";var Ig=Ng();fj.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 pj=N((Bze,dj)=>{"use strict";var zg=Ee(),rv=Ng();dj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){zg.log("Found bad marching index:",o,r,e.level);break}s.push(hj(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),X0(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&&zg.log("Infinite loop in contour?");var m=X0(s[0],s[s.length-1],a,n),x=0,T=.2*e.smoothing,_=[],b=0,w,k,M,q,E,D,P,R,z,I,B;for(d=1;d=b;d--)if(w=_[d],w=b&&w+_[k]R&&z--,e.edgepaths[z]=B.concat(s,I));break}H||(e.edgepaths[R]=s.concat(I))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function hj(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 bj=N((Hze,gj)=>{"use strict";var S6=Rg(),qwe=Rr();gj.exports={"[]":yj("[]"),"][":yj("]["),">":q6(">"),"<":q6("<"),"=":q6("=")};function mj(e,r){var t=Array.isArray(r),a;function n(i){return qwe(i)?+i:null}return S6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):S6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:S6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function yj(e){return function(r){r=mj(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 q6(e){return function(r){return r=mj(e,r),{start:r,end:1/0,size:1/0}}}});var wj=N((Uze,_j)=>{"use strict";var xj=Ee(),Lwe=bj(),Cwe=Z0();_j.exports=function(r,t,a){for(var n=r.type==="constraint"?Lwe[r._operation](r.value):r,i=n.size,o=[],l=Cwe(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){xj.warn("Too many contours, clipping at 1000",r);break}return o}});var Mj=N((Gze,Aj)=>{"use strict";var tv=Ee();Aj.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&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";kj.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 L6=N(hn=>{"use strict";var $0=Sr(),Ra=Ee(),El=Wr(),Ewe=Lo(),Cj=Aa(),qj=Ir(),Lj=lc(),Dwe=Ag(),Ej=cj(),Dj=pj(),Rwe=wj(),Pwe=Mj(),Rj=Sj(),J0=Ng(),Jo=J0.LABELOPTIMIZER;hn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Ra.makeTraceGroups(n,a,"contour").each(function(l){var s=$0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=Rwe(d,t,u),y=Ra.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),Dwe(r,t,m,y),Ej(p),Dj(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=Pwe(p,d._operation)),Fwe(s,w,d),Nwe(s,k,w,d),Iwe(s,p,r,u,d),Owe(s,t,r,u,w)})};function Fwe(e,r,t){var a=Ra.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 Nwe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&Rj(r,a);var o=Ra.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:"")+Pj(s,t);u?$0.select(this).attr("d",u).style("stroke","none"):$0.select(this).remove()})}function Pj(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){Ra.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):Ra.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){Ra.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aJo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Jo.MAXCOST)return f};function zwe(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=Jo.EDGECOST*(1/(c-1)+1/(v-1));d+=Jo.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,x=l+f,T=0;T{"use strict";var Hwe=Sr(),C6=Lo(),Uwe=Z0();Fj.exports=function(r){var t=r.contours,a=t.start,n=Uwe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=C6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?C6.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 Og=Sr(),Nj=Wr(),Gwe=Mg(),Vwe=E6();Ij.exports=function(r){var t=Og.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Og.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?Vwe(i):null;n.selectAll("g.contourlevel").each(function(m){Og.select(this).selectAll("path").call(Nj.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){Nj.font(Og.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))}}),Gwe(r)}});var R6=N((Zze,Oj)=>{"use strict";var zj=Lo(),Ywe=E6(),Wwe=Z0();function jwe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=Ywe(r,{isColorbar:!0});if(o==="heatmap"){var s=zj.extractOpts(r);t._fillgradient=s.reversescale?zj.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:Wwe(a),size:i}}Oj.exports={min:"zmin",max:"zmax",calc:jwe}});var P6=N((Xze,Bj)=>{"use strict";var Bg=Tr(),Zwe=Sg();Bj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=Zwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Bg.opacity(s.fillcolor)?l.color=Bg.addOpacity(s.fillcolor,1):s.contours.showlines&&Bg.opacity(s.line.color)&&(l.color=Bg.addOpacity(s.line.color,1)))}),o}});var Uj=N((Jze,Hj)=>{"use strict";Hj.exports={attributes:x6(),supplyDefaults:tj(),crossTraceDefaults:Cg(),calc:k6(),plot:L6().plot,layerName:"contourlayer",style:D6(),colorbar:R6(),hoverPoints:P6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Vj=N(($ze,Gj)=>{"use strict";Gj.exports=Uj()});var $j=N((Kze,Jj)=>{"use strict";var Yj=Rr(),Xwe=w6(),Zj=Tr(),Wj=Zj.addOpacity,Jwe=Zj.opacity,Xj=Rg(),jj=Ee().isArrayOrTypedArray,$we=Xj.CONSTRAINT_REDUCTION,Kwe=Xj.COMPARISON_OPS2;Jj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=$we[c],Qwe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Wj((r.line||{}).color||i,.5))),s){var v=f&&Jwe(f)?Wj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),Xwe(a,n,u,o)};function Qwe(e,r){var t;Kwe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),jj(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])]:Yj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Yj(r.value)||(jj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var eZ=N((Qze,Qj)=>{"use strict";var F6=Ee(),e6e=Jw(),r6e=Mc(),t6e=$j(),a6e=_6(),n6e=T6(),i6e=G0(),Kj=Fg();Qj.exports=function(r,t,a,n){function i(u,f){return F6.coerce(r,t,Kj,u,f)}function o(u){return F6.coerce2(r,t,Kj,u)}var l=e6e(r,t,i,n);if(!l){t.visible=!1;return}r6e(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",F6.isArray1D(t.z)),s?t6e(r,t,i,n,a):(a6e(r,t,i,o),n6e(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&i6e(i,n),i("zorder")}});var tZ=N((eOe,rZ)=>{"use strict";rZ.exports={attributes:Fg(),supplyDefaults:eZ(),calc:k6(),plot:L6().plot,style:D6(),colorbar:R6(),hoverPoints:P6(),moduleType:"trace",name:"contour",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var nZ=N((rOe,aZ)=>{"use strict";aZ.exports=tZ()});var N6=N((tOe,sZ)=>{"use strict";var{hovertemplateAttrs:o6e,texttemplateAttrs:l6e,templatefallbackAttrs:iZ}=Yn(),s6e=Uy(),ii=Ti(),u6e=gn(),oZ=qo(),f6e=fi().dash,ks=bt().extendFlat,Ii=ii.marker,K0=ii.line,lZ=Ii.line;sZ.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({},ii.mode,{dflt:"markers"}),text:ks({},ii.text,{}),texttemplate:l6e({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:iZ({editType:"plot"}),hovertext:ks({},ii.hovertext,{}),line:{color:K0.color,width:K0.width,dash:f6e,backoff:K0.backoff,shape:ks({},K0.shape,{values:["linear","spline"]}),smoothing:K0.smoothing,editType:"calc"},connectgaps:ii.connectgaps,cliponaxis:ii.cliponaxis,fill:ks({},ii.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:s6e(),marker:ks({symbol:Ii.symbol,opacity:Ii.opacity,angle:Ii.angle,angleref:Ii.angleref,standoff:Ii.standoff,maxdisplayed:Ii.maxdisplayed,size:Ii.size,sizeref:Ii.sizeref,sizemin:Ii.sizemin,sizemode:Ii.sizemode,line:ks({width:lZ.width,dash:lZ.dash,editType:"calc"},oZ("marker.line")),gradient:Ii.gradient,editType:"calc"},oZ("marker")),textfont:ii.textfont,textposition:ii.textposition,selected:ii.selected,unselected:ii.unselected,hoverinfo:ks({},u6e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ii.hoveron,hovertemplate:o6e(),hovertemplatefallback:iZ()}});var vZ=N((aOe,cZ)=>{"use strict";var uZ=Ee(),c6e=r0(),av=Rn(),v6e=J_(),h6e=$_(),fZ=K_(),d6e=Q_(),p6e=e4(),y6e=N6();cZ.exports=function(r,t,a,n){function i(v,d){return uZ.coerce(r,t,y6e,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 I6=Ir();hZ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=I6.tickText(i.aaxis,r.a,!0).text,n.bLabel=I6.tickText(i.baxis,r.b,!0).text,n.cLabel=I6.tickText(i.caxis,r.c,!0).text,n}});var gZ=N((iOe,mZ)=>{"use strict";var z6=Rr(),m6e=a4(),g6e=ym(),b6e=mm(),x6e=gm().calcMarkerSize,pZ=["a","b","c"],yZ={a:["b","c"],b:["a","c"],c:["a","b"]};mZ.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 _6e=y4();bZ.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 w6e=w4();_Z.exports=function(r,t,a,n){var i=w6e(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 AZ=N((sOe,TZ)=>{"use strict";TZ.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 FZ=N((uOe,PZ)=>{"use strict";var CZ=Sr(),T6e=Sn(),O6=br(),Dl=Ee(),$o=Dl.strTranslate,Hg=Dl._,iv=Tr(),Ug=Wr(),Q0=lc(),B6=bt().extendFlat,A6e=ta(),Ss=Ir(),MZ=yi(),kZ=Pn(),EZ=Lu(),SZ=EZ.freeMode,M6e=EZ.rectMode,H6=oc(),k6e=Uo().prepSelect,S6e=Uo().selectOnClick,q6e=Uo().clearOutline,L6e=Uo().clearSelectionsCache,DZ=xa();function RZ(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}PZ.exports=RZ;var Ko=RZ.prototype;Ko.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Ko.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;inv*u?(x=u,m=x*nv):(m=s,x=m/nv),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"},Q0(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(I){return I.a>=t.aaxis.range[0]&&I.a<=t.aaxis.range[1]&&I.b>=t.baxis.range[1]&&I.b<=t.baxis.range[0]&&I.c>=t.caxis.range[1]&&I.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},Q0(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],w=t.aaxis=B6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*nv],anchor:"free",position:0,_id:"y",_length:m});Q0(w,t.graphDiv._fullLayout),w.setScale();var k=t.baxis=B6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});Q0(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=B6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*nv],anchor:"free",position:0,_id:"y",_length:m});Q0(M,t.graphDiv._fullLayout),M.setScale();var q="M"+p+","+(y+x)+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var E="M0,"+x+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=$o(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=$o(p-k._offset,y+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=$o(p+m/2,y)+"rotate(30)"+$o(0,-w._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=$o(p+m/2,y)+"rotate(-30)"+$o(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",w.showline?"M"+p+","+(y+x)+"l"+m/2+",-"+x:"M0,0").call(iv.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(iv.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(iv.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Ug.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Ko.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"]=H6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:Hg(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"]=H6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:Hg(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"]=H6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:Hg(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"}})}};Ko.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=C6e(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 C6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ca=DZ.MINZOOM/2+.87,E6e="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",D6e="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",R6e="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",P6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",qZ=!0;Ko.clearOutline=function(){L6e(this.dragOptions),q6e(this.dragOptions.gd)};Ko.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,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var I=e.dragOptions.dragmode=t._fullLayout.dragmode;SZ(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,T(P,R,z)):I==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,q(),e.clearOutline(t)):(M6e(I)||SZ(I))&&k6e(P,R,z,e.dragOptions,I)}};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 z=t._fullLayout.clickmode;LZ(t),P===2&&(t.emit("plotly_doubleclick",null),O6.call("_guiRelayout",t,m({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&S6e(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&kZ.click(t,R,e.id)}function T(P,R,z){var I=r.getBoundingClientRect();o=R-I.left,l=z-I.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=T6e(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",$o(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",$o(e.x0,e.y0)).style({fill:iv.background,stroke:iv.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 z=o+P*n,I=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,I))),G=Math.max(0,Math.min(1,b(o,l),b(z,I))),Y=Math.max(0,Math.min(1,w(o,l),w(z,I))),V=(B/2+Y)*e.w,H=(1-B/2-G)*e.w,X=(V+H)/2,j=H-V,ee=(1-B)*e.h,fe=ee-j/nv;j.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(){LZ(t),f!==s&&(O6.call("_guiRelayout",t,m(f)),qZ&&t.data&&t._context.showTips&&(Dl.notifier(Hg(t,"Double-click to zoom back out"),"long"),qZ=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(z+I)/2,c:s.c-(z-I)/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=$o(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var V=$o(-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(Ug.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function D(){O6.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){kZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||MZ.unhover(t,P)},MZ.init(this.dragOptions)};function LZ(e){CZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var V6=N((fOe,NZ)=>{"use strict";var F6e=ui(),N6e=Uc().attributes,it=di(),I6e=Qi().overrideAll,U6=bt().extendFlat,G6={title:{text:it.title.text,font:it.title.font},color:it.color,tickmode:it.minor.tickmode,nticks:U6({},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:U6({},it.showline,{dflt:!0}),linecolor:it.linecolor,linewidth:it.linewidth,showgrid:U6({},it.showgrid,{dflt:!0}),gridcolor:it.gridcolor,gridwidth:it.gridwidth,griddash:it.griddash,layer:it.layer,min:{valType:"number",dflt:0,min:0}},Gg=NZ.exports=I6e({domain:N6e({name:"ternary"}),bgcolor:{valType:"color",dflt:F6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:G6,baxis:G6,caxis:G6},"plot","from-root");Gg.uirevision={valType:"any",editType:"none"};Gg.aaxis.uirevision=Gg.baxis.uirevision=Gg.caxis.uirevision={valType:"any",editType:"none"}});var zZ=N((cOe,IZ)=>{"use strict";var z6e=Ee(),O6e=_t(),B6e=Uc().defaults;IZ.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 z6e.coerce(v,d,o,T,_)}for(var y=0;y{"use strict";var H6e=Tr(),U6e=_t(),Vg=Ee(),G6e=zZ(),V6e=g1(),Y6e=b1(),W6e=y1(),j6e=p1(),Z6e=M4(),BZ=V6(),OZ=["aaxis","baxis","caxis"];HZ.exports=function(r,t,a){G6e(r,t,a,{type:"ternary",attributes:BZ,handleDefaults:X6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function X6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=H6e.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 J6e(e,r,t,a){var n=BZ[r._name];function i(d,p){return Vg.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,Vg.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Vg.bigFont(t.font.size),color:l}}),i("min"),j6e(e,r,i,"linear"),Y6e(e,r,i,"linear"),V6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),W6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Vg.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),Z6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var GZ=N(zi=>{"use strict";var $6e=FZ(),K6e=l1().getSubplotCalcData,Q6e=Ee().counterRegex,ov="ternary";zi.name=ov;var e7e=zi.attr="subplot";zi.idRoot=ov;zi.idRegex=zi.attrRegex=Q6e(ov);var r7e=zi.attributes={};r7e[e7e]={valType:"subplotid",dflt:"ternary",editType:"calc"};zi.layoutAttributes=V6();zi.supplyLayoutDefaults=UZ();zi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[ov],i=0;i{"use strict";VZ.exports={attributes:N6(),supplyDefaults:vZ(),colorbar:_0(),formatLabels:dZ(),calc:gZ(),plot:xZ(),style:Nu().style,styleOnSelect:Nu().styleOnSelect,hoverPoints:wZ(),selectPoints:T4(),eventData:AZ(),moduleType:"trace",name:"scatterternary",basePlotModule:GZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var jZ=N((pOe,WZ)=>{"use strict";WZ.exports=YZ()});var Y6=N((yOe,XZ)=>{"use strict";var ha=vg(),lv=bt().extendFlat,ZZ=ao().axisHoverFormat;XZ.exports={y:ha.y,x:ha.x,x0:ha.x0,y0:ha.y0,xhoverformat:ZZ("x"),yhoverformat:ZZ("y"),name:lv({},ha.name,{}),orientation:lv({},ha.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:ha.fillcolor,points:lv({},ha.boxpoints,{}),jitter:lv({},ha.jitter,{}),pointpos:lv({},ha.pointpos,{}),width:lv({},ha.width,{}),marker:ha.marker,text:ha.text,hovertext:ha.hovertext,hovertemplate:ha.hovertemplate,hovertemplatefallback:ha.hovertemplatefallback,quartilemethod:ha.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:ha.offsetgroup,alignmentgroup:ha.alignmentgroup,selected:ha.selected,unselected:ha.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ha.zorder}});var Z6=N((mOe,JZ)=>{"use strict";var W6=hg(),j6=Ee().extendFlat;JZ.exports={violinmode:j6({},W6.boxmode,{}),violingap:j6({},W6.boxgap,{}),violingroupgap:j6({},W6.boxgroupgap,{})}});var rX=N((gOe,eX)=>{"use strict";var $Z=Ee(),t7e=Tr(),KZ=H0(),QZ=Y6();eX.exports=function(r,t,a,n){function i(w,k){return $Z.coerce(r,t,QZ,w,k)}function o(w,k){return $Z.coerce2(r,t,QZ,w,k)}if(KZ.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",t7e.addOpacity(t.line.color,.5));KZ.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 aX=N((bOe,tX)=>{"use strict";var a7e=Ee(),n7e=Z6(),i7e=Nw();tX.exports=function(r,t,a){function n(i,o){return a7e.coerce(r,t,n7e,i,o)}i7e._supply(r,t,a,n,"violin")}});var Yg=N(Ku=>{"use strict";var o7e=Ee(),l7e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Ku.makeKDE=function(e,r,t){var a=t.length,n=l7e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var X6=Ee(),J6=Ir(),s7e=Ow(),nX=Yg(),u7e=zt().BADNUM;iX.exports=function(r,t){var a=s7e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=J6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var h7e=Bw().setPositionOffset,lX=["v","h"];sX.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var $6=Sr(),K6=Ee(),d7e=Wr(),Q6=Hw(),p7e=p4(),y7e=Yg();fX.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=p7e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return d7e.smoothopen(v[0],1)}K6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=$6.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(K6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var B=$6.select(this),G=I.density,Y=G.length,V=T.c2l(I.pos+y,!0),H=T.l2p(V),X;if(p.width)X=d.maxKDE/m;else{var j=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?j.maxKDE/m*(j.maxCount/I.pts.length):j.maxKDE/m}var ee,fe,ie,ue,K,we,se;if(b){for(we=new Array(Y),ue=0;ue{"use strict";var vX=Sr(),sv=Tr(),m7e=Nu().stylePoints;hX.exports=function(r){var t=vX.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=vX.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(sv.stroke,n.line.color).call(sv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(sv.stroke,l.color).call(sv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(sv.stroke,s.color),i.selectAll("path.meanline").style(f).call(sv.stroke,s.color),m7e(i,n,r)})}});var gX=N((MOe,mX)=>{"use strict";var g7e=Tr(),e7=Ee(),b7e=Ir(),pX=jw(),yX=Yg();mX.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=pX.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 q=e7.extendFlat({},r),E=w.c2p(k,!0),D=yX.getKdeValue(M,s,k),P=yX.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[_+"0"]=q[_+"1"]=E,q[_+"Label"]=_+": "+b7e.hoverLabelText(w,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var I=0,B=0;B{"use strict";bX.exports={attributes:Y6(),layoutAttributes:Z6(),supplyDefaults:rX(),crossTraceDefaults:H0().crossTraceDefaults,supplyLayoutDefaults:aX(),calc:oX(),crossTraceCalc:uX(),plot:cX(),style:dX(),styleOnSelect:Nu().styleOnSelect,hoverPoints:gX(),selectPoints:Zw(),moduleType:"trace",name:"violin",basePlotModule:Ci(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var wX=N((SOe,_X)=>{"use strict";_X.exports=xX()});var uv=N((qOe,TX)=>{"use strict";TX.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 r7=N((LOe,MX)=>{"use strict";var x7e=gn(),_7e=Ti().zorder,{hovertemplateAttrs:w7e,templatefallbackAttrs:T7e}=Yn(),AX=bt().extendFlat,A7e=uv().colormodel,rd=["rgb","rgba","rgba256","hsl","hsla"],M7e=[],k7e=[];for(fv=0;fv{"use strict";var S7e=Ee(),q7e=r7(),kX=uv(),L7e=Tl().IMAGE_URL_PREFIX;SX.exports=function(r,t){function a(o,l){return S7e.coerce(r,t,q7e,o,l)}a("source"),t.source&&!t.source.match(L7e)&&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=kX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=kX.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((EOe,t7)=>{typeof Object.create=="function"?t7.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:t7.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 a7=N((DOe,LX)=>{LX.exports=su().EventEmitter});var DX=N(Wg=>{"use strict";Wg.byteLength=E7e;Wg.toByteArray=R7e;Wg.fromByteArray=N7e;var Qo=[],Oi=[],C7e=typeof Uint8Array!="undefined"?Uint8Array:Array,n7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Qu=0,CX=n7.length;Qu0)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 E7e(e){var r=EX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function D7e(e,r,t){return(r+t)*3/4-t}function R7e(e){var r,t=EX(e),a=t[0],n=t[1],i=new C7e(D7e(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=Oi[e.charCodeAt(s)]<<2|Oi[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Oi[e.charCodeAt(s)]<<10|Oi[e.charCodeAt(s+1)]<<4|Oi[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function P7e(e){return Qo[e>>18&63]+Qo[e>>12&63]+Qo[e>>6&63]+Qo[e&63]}function F7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Qo[r>>2]+Qo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Qo[r>>10]+Qo[r>>4&63]+Qo[r<<2&63]+"=")),n.join("")}});var RX=N(i7=>{i7.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)};i7.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 pv=N(dv=>{"use strict";var o7=DX(),vv=RX(),PX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;dv.Buffer=je;dv.SlowBuffer=U7e;dv.INSPECT_MAX_BYTES=50;var jg=2147483647;dv.kMaxLength=jg;je.TYPED_ARRAY_SUPPORT=I7e();!je.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 I7e(){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(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function Pl(e){if(e>jg)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(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 f7(e)}return zX(e,r,t)}je.poolSize=8192;function zX(e,r,t){if(typeof e=="string")return O7e(e,r);if(ArrayBuffer.isView(e))return B7e(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(el(e,ArrayBuffer)||e&&el(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(el(e,SharedArrayBuffer)||e&&el(e.buffer,SharedArrayBuffer)))return s7(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 je.from(a,r,t);let n=H7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.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)}je.from=function(e,r,t){return zX(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function OX(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 z7e(e,r,t){return OX(e),e<=0?Pl(e):r!==void 0?typeof t=="string"?Pl(e).fill(r,t):Pl(e).fill(r):Pl(e)}je.alloc=function(e,r,t){return z7e(e,r,t)};function f7(e){return OX(e),Pl(e<0?0:c7(e)|0)}je.allocUnsafe=function(e){return f7(e)};je.allocUnsafeSlow=function(e){return f7(e)};function O7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=BX(e,r)|0,a=Pl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function l7(e){let r=e.length<0?0:c7(e.length)|0,t=Pl(r);for(let a=0;a=jg)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jg.toString(16)+" bytes");return e|0}function U7e(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(el(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),el(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.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?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function BX(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||el(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 u7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return XX(e).length;default:if(n)return a?-1:u7(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=BX;function G7e(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 Q7e(this,r,t);case"utf8":case"utf-8":return UX(this,r,t);case"ascii":return $7e(this,r,t);case"latin1":case"binary":return K7e(this,r,t);case"base64":return X7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eTe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function ef(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.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+=" ... "),""};PX&&(je.prototype[PX]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(el(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.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,h7(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=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:FX(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):FX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function FX(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 V7e(this,r,t,a);case"utf8":case"utf-8":return Y7e(this,r,t,a);case"ascii":case"latin1":case"binary":return W7e(this,r,t,a);case"base64":return j7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X7e(e,r,t){return r===0&&t===e.length?o7.fromByteArray(e):o7.fromByteArray(e.slice(r,t))}function UX(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 J7e(a)}var NX=4096;function J7e(e){let r=e.length;if(r<=NX)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")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=qs(function(r){r=r>>>0,hv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&td(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,hv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&td(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||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(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};je.prototype.readInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=qs(function(r){r=r>>>0,hv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&td(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,hv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&td(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Va(r,4,this.length),vv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),vv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),vv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),vv.read(this,r,!1,52,8)};function Hn(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.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;Hn(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;Hn(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};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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 GX(e,r,t,a,n){ZX(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 VX(e,r,t,a,n){ZX(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}je.prototype.writeBigUInt64LE=qs(function(r,t=0){return GX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=qs(function(r,t=0){return VX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Hn(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};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Hn(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};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeBigInt64LE=qs(function(r,t=0){return GX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=qs(function(r,t=0){return VX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function YX(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 WX(e,r,t,a,n){return r=+r,t=t>>>0,n||YX(e,r,t,4,34028234663852886e22,-34028234663852886e22),vv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return WX(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return WX(this,r,t,!1,a)};function jX(e,r,t,a,n){return r=+r,t=t>>>0,n||YX(e,r,t,8,17976931348623157e292,-17976931348623157e292),vv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return jX(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return jX(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.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=IX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=IX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function IX(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 rTe(e,r,t){hv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&td(r,e.length-(t+1))}function ZX(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 cv.ERR_OUT_OF_RANGE("value",l,e)}rTe(a,n,i)}function hv(e,r){if(typeof e!="number")throw new cv.ERR_INVALID_ARG_TYPE(r,"number",e)}function td(e,r,t){throw Math.floor(e)!==e?(hv(e,t),new cv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new cv.ERR_BUFFER_OUT_OF_BOUNDS:new cv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var tTe=/[^+/0-9A-Za-z-_]/g;function aTe(e){if(e=e.split("=")[0],e=e.trim().replace(tTe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function u7(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 nTe(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function XX(e){return o7.toByteArray(aTe(e))}function Zg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function el(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function h7(e){return e!==e}var oTe=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"?lTe:e}function lTe(){throw new Error("BigInt not supported")}});var Xg=N((IOe,JX)=>{"use strict";JX.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 ad=N((zOe,$X)=>{"use strict";var sTe=Xg();$X.exports=function(){return sTe()&&!!Symbol.toStringTag}});var d7=N((OOe,KX)=>{"use strict";KX.exports=Object});var eJ=N((BOe,QX)=>{"use strict";QX.exports=Error});var tJ=N((HOe,rJ)=>{"use strict";rJ.exports=EvalError});var nJ=N((UOe,aJ)=>{"use strict";aJ.exports=RangeError});var oJ=N((GOe,iJ)=>{"use strict";iJ.exports=ReferenceError});var p7=N((VOe,lJ)=>{"use strict";lJ.exports=SyntaxError});var yv=N((YOe,sJ)=>{"use strict";sJ.exports=TypeError});var fJ=N((WOe,uJ)=>{"use strict";uJ.exports=URIError});var vJ=N((jOe,cJ)=>{"use strict";cJ.exports=Math.abs});var dJ=N((ZOe,hJ)=>{"use strict";hJ.exports=Math.floor});var yJ=N((XOe,pJ)=>{"use strict";pJ.exports=Math.max});var gJ=N((JOe,mJ)=>{"use strict";mJ.exports=Math.min});var xJ=N(($Oe,bJ)=>{"use strict";bJ.exports=Math.pow});var wJ=N((KOe,_J)=>{"use strict";_J.exports=Math.round});var AJ=N((QOe,TJ)=>{"use strict";TJ.exports=Number.isNaN||function(r){return r!==r}});var kJ=N((eBe,MJ)=>{"use strict";var uTe=AJ();MJ.exports=function(r){return uTe(r)||r===0?r:r<0?-1:1}});var qJ=N((rBe,SJ)=>{"use strict";SJ.exports=Object.getOwnPropertyDescriptor});var rf=N((tBe,LJ)=>{"use strict";var Jg=qJ();if(Jg)try{Jg([],"length")}catch(e){Jg=null}LJ.exports=Jg});var nd=N((aBe,CJ)=>{"use strict";var $g=Object.defineProperty||!1;if($g)try{$g({},"a",{value:1})}catch(e){$g=!1}CJ.exports=$g});var RJ=N((nBe,DJ)=>{"use strict";var EJ=typeof Symbol!="undefined"&&Symbol,fTe=Xg();DJ.exports=function(){return typeof EJ!="function"||typeof Symbol!="function"||typeof EJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fTe()}});var y7=N((iBe,PJ)=>{"use strict";PJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var m7=N((oBe,FJ)=>{"use strict";var cTe=d7();FJ.exports=cTe.getPrototypeOf||null});var zJ=N((lBe,IJ)=>{"use strict";var vTe="Function.prototype.bind called on incompatible ",hTe=Object.prototype.toString,dTe=Math.max,pTe="[object Function]",NJ=function(r,t){for(var a=[],n=0;n{"use strict";var gTe=zJ();OJ.exports=Function.prototype.bind||gTe});var Kg=N((uBe,BJ)=>{"use strict";BJ.exports=Function.prototype.call});var g7=N((fBe,HJ)=>{"use strict";HJ.exports=Function.prototype.apply});var GJ=N((cBe,UJ)=>{"use strict";UJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var YJ=N((vBe,VJ)=>{"use strict";var bTe=mv(),xTe=g7(),_Te=Kg(),wTe=GJ();VJ.exports=wTe||bTe.call(_Te,xTe)});var jJ=N((hBe,WJ)=>{"use strict";var TTe=mv(),ATe=yv(),MTe=Kg(),kTe=YJ();WJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new ATe("a function is required");return kTe(TTe,MTe,r)}});var QJ=N((dBe,KJ)=>{"use strict";var STe=jJ(),ZJ=rf(),JJ;try{JJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var b7=!!JJ&&ZJ&&ZJ(Object.prototype,"__proto__"),$J=Object,XJ=$J.getPrototypeOf;KJ.exports=b7&&typeof b7.get=="function"?STe([b7.get]):typeof XJ=="function"?function(r){return XJ(r==null?r:$J(r))}:!1});var n$=N((pBe,a$)=>{"use strict";var e$=y7(),r$=m7(),t$=QJ();a$.exports=e$?function(r){return e$(r)}:r$?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return r$(r)}:t$?function(r){return t$(r)}:null});var o$=N((yBe,i$)=>{"use strict";var qTe=Function.prototype.call,LTe=Object.prototype.hasOwnProperty,CTe=mv();i$.exports=CTe.call(qTe,LTe)});var r2=N((mBe,v$)=>{"use strict";var ot,ETe=d7(),DTe=eJ(),RTe=tJ(),PTe=nJ(),FTe=oJ(),_v=p7(),xv=yv(),NTe=fJ(),ITe=vJ(),zTe=dJ(),OTe=yJ(),BTe=gJ(),HTe=xJ(),UTe=wJ(),GTe=kJ(),f$=Function,x7=function(e){try{return f$('"use strict"; return ('+e+").constructor;")()}catch(r){}},id=rf(),VTe=nd(),_7=function(){throw new xv},YTe=id?function(){try{return arguments.callee,_7}catch(e){try{return id(arguments,"callee").get}catch(r){return _7}}}():_7,gv=RJ()(),Ya=n$(),WTe=m7(),jTe=y7(),c$=g7(),od=Kg(),bv={},ZTe=typeof Uint8Array=="undefined"||!Ya?ot:Ya(Uint8Array),tf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":gv&&Ya?Ya([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":bv,"%AsyncGenerator%":bv,"%AsyncGeneratorFunction%":bv,"%AsyncIteratorPrototype%":bv,"%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%":DTe,"%eval%":eval,"%EvalError%":RTe,"%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%":f$,"%GeneratorFunction%":bv,"%Int8Array%":typeof Int8Array=="undefined"?ot:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ot:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gv&&Ya?Ya(Ya([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map=="undefined"?ot:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!gv||!Ya?ot:Ya(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ETe,"%Object.getOwnPropertyDescriptor%":id,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ot:Promise,"%Proxy%":typeof Proxy=="undefined"?ot:Proxy,"%RangeError%":PTe,"%ReferenceError%":FTe,"%Reflect%":typeof Reflect=="undefined"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ot:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!gv||!Ya?ot:Ya(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gv&&Ya?Ya(""[Symbol.iterator]()):ot,"%Symbol%":gv?Symbol:ot,"%SyntaxError%":_v,"%ThrowTypeError%":YTe,"%TypedArray%":ZTe,"%TypeError%":xv,"%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%":NTe,"%WeakMap%":typeof WeakMap=="undefined"?ot:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ot:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ot:WeakSet,"%Function.prototype.call%":od,"%Function.prototype.apply%":c$,"%Object.defineProperty%":VTe,"%Object.getPrototypeOf%":WTe,"%Math.abs%":ITe,"%Math.floor%":zTe,"%Math.max%":OTe,"%Math.min%":BTe,"%Math.pow%":HTe,"%Math.round%":UTe,"%Math.sign%":GTe,"%Reflect.getPrototypeOf%":jTe};if(Ya)try{null.error}catch(e){l$=Ya(Ya(e)),tf["%Error.prototype%"]=l$}var l$,XTe=function e(r){var t;if(r==="%AsyncFunction%")t=x7("async function () {}");else if(r==="%GeneratorFunction%")t=x7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=x7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Ya&&(t=Ya(n.prototype))}return tf[r]=t,t},s$={__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"]},ld=mv(),Qg=o$(),JTe=ld.call(od,Array.prototype.concat),$Te=ld.call(c$,Array.prototype.splice),u$=ld.call(od,String.prototype.replace),e2=ld.call(od,String.prototype.slice),KTe=ld.call(od,RegExp.prototype.exec),QTe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eAe=/\\(\\)?/g,rAe=function(r){var t=e2(r,0,1),a=e2(r,-1);if(t==="%"&&a!=="%")throw new _v("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new _v("invalid intrinsic syntax, expected opening `%`");var n=[];return u$(r,QTe,function(i,o,l,s){n[n.length]=l?u$(s,eAe,"$1"):o||i}),n},tAe=function(r,t){var a=r,n;if(Qg(s$,a)&&(n=s$[a],a="%"+n[0]+"%"),Qg(tf,a)){var i=tf[a];if(i===bv&&(i=XTe(a)),typeof i=="undefined"&&!t)throw new xv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new _v("intrinsic "+r+" does not exist!")};v$.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new xv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new xv('"allowMissing" argument must be a boolean');if(KTe(/^%?[^%]*%?$/,r)===null)throw new _v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=rAe(r),n=a.length>0?a[0]:"",i=tAe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],$Te(a,JTe([0,1],u)));for(var f=1,c=!0;f=a.length){var y=id(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Qg(l,v),l=l[v];c&&!s&&(tf[o]=l)}}return l}});var y$=N((gBe,p$)=>{"use strict";var h$=nd(),aAe=p7(),wv=yv(),d$=rf();p$.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new wv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new wv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new wv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new wv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new wv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new wv("`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=!!d$&&d$(r,t);if(h$)h$(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 aAe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var T7=N((bBe,g$)=>{"use strict";var w7=nd(),m$=function(){return!!w7};m$.hasArrayLengthDefineBug=function(){if(!w7)return null;try{return w7([],"length",{value:1}).length!==1}catch(r){return!0}};g$.exports=m$});var T$=N((xBe,w$)=>{"use strict";var nAe=r2(),b$=y$(),iAe=T7()(),x$=rf(),_$=yv(),oAe=nAe("%Math.floor%");w$.exports=function(r,t){if(typeof r!="function")throw new _$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||oAe(t)!==t)throw new _$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&x$){var o=x$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(iAe?b$(r,"length",t,!0,!0):b$(r,"length",t)),r}});var sd=N((_Be,t2)=>{"use strict";var A7=mv(),a2=r2(),lAe=T$(),sAe=yv(),k$=a2("%Function.prototype.apply%"),S$=a2("%Function.prototype.call%"),q$=a2("%Reflect.apply%",!0)||A7.call(S$,k$),A$=nd(),uAe=a2("%Math.max%");t2.exports=function(r){if(typeof r!="function")throw new sAe("a function is required");var t=q$(A7,S$,arguments);return lAe(t,1+uAe(0,r.length-(arguments.length-1)),!0)};var M$=function(){return q$(A7,k$,arguments)};A$?A$(t2.exports,"apply",{value:M$}):t2.exports.apply=M$});var Tv=N((wBe,E$)=>{"use strict";var L$=r2(),C$=sd(),fAe=C$(L$("String.prototype.indexOf"));E$.exports=function(r,t){var a=L$(r,!!t);return typeof a=="function"&&fAe(r,".prototype.")>-1?C$(a):a}});var P$=N((TBe,R$)=>{"use strict";var cAe=ad()(),vAe=Tv(),M7=vAe("Object.prototype.toString"),n2=function(r){return cAe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:M7(r)==="[object Arguments]"},D$=function(r){return n2(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&M7(r)!=="[object Array]"&&M7(r.callee)==="[object Function]"},hAe=function(){return n2(arguments)}();n2.isLegacyArguments=D$;R$.exports=hAe?n2:D$});var I$=N((ABe,N$)=>{"use strict";var dAe=Object.prototype.toString,pAe=Function.prototype.toString,yAe=/^\s*(?:function)?\*/,F$=ad()(),k7=Object.getPrototypeOf,mAe=function(){if(!F$)return!1;try{return Function("return function*() {}")()}catch(e){}},S7;N$.exports=function(r){if(typeof r!="function")return!1;if(yAe.test(pAe.call(r)))return!0;if(!F$){var t=dAe.call(r);return t==="[object GeneratorFunction]"}if(!k7)return!1;if(typeof S7=="undefined"){var a=mAe();S7=a?k7(a):!1}return k7(r)===S7}});var H$=N((MBe,B$)=>{"use strict";var O$=Function.prototype.toString,Av=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,L7,i2;if(typeof Av=="function"&&typeof Object.defineProperty=="function")try{L7=Object.defineProperty({},"length",{get:function(){throw i2}}),i2={},Av(function(){throw 42},null,L7)}catch(e){e!==i2&&(Av=null)}else Av=null;var gAe=/^\s*class\b/,C7=function(r){try{var t=O$.call(r);return gAe.test(t)}catch(a){return!1}},q7=function(r){try{return C7(r)?!1:(O$.call(r),!0)}catch(t){return!1}},o2=Object.prototype.toString,bAe="[object Object]",xAe="[object Function]",_Ae="[object GeneratorFunction]",wAe="[object HTMLAllCollection]",TAe="[object HTML document.all class]",AAe="[object HTMLCollection]",MAe=typeof Symbol=="function"&&!!Symbol.toStringTag,kAe=!(0 in[,]),E7=function(){return!1};typeof document=="object"&&(z$=document.all,o2.call(z$)===o2.call(document.all)&&(E7=function(r){if((kAe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=o2.call(r);return(t===wAe||t===TAe||t===AAe||t===bAe)&&r("")==null}catch(a){}return!1}));var z$;B$.exports=Av?function(r){if(E7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Av(r,null,L7)}catch(t){if(t!==i2)return!1}return!C7(r)&&q7(r)}:function(r){if(E7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(MAe)return q7(r);if(C7(r))return!1;var t=o2.call(r);return t!==xAe&&t!==_Ae&&!/^\[object HTML/.test(t)?!1:q7(r)}});var D7=N((kBe,G$)=>{"use strict";var SAe=H$(),qAe=Object.prototype.toString,U$=Object.prototype.hasOwnProperty,LAe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),qAe.call(r)==="[object Array]"?LAe(r,t,n):typeof r=="string"?CAe(r,t,n):EAe(r,t,n)};G$.exports=DAe});var P7=N((SBe,V$)=>{"use strict";var R7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],RAe=typeof globalThis=="undefined"?window:globalThis;V$.exports=function(){for(var r=[],t=0;t{"use strict";var s2=D7(),PAe=P7(),Y$=sd(),I7=Tv(),l2=rf(),FAe=I7("Object.prototype.toString"),j$=ad()(),W$=typeof globalThis=="undefined"?window:globalThis,N7=PAe(),z7=I7("String.prototype.slice"),F7=Object.getPrototypeOf,NAe=I7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:zAe(r)}return l2?IAe(r):null}});var rK=N((LBe,eK)=>{"use strict";var J$=D7(),OAe=P7(),B7=Tv(),BAe=B7("Object.prototype.toString"),$$=ad()(),f2=rf(),HAe=typeof globalThis=="undefined"?window:globalThis,K$=OAe(),UAe=B7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return f2?VAe(r):!1}});var G7=N(lt=>{"use strict";var YAe=P$(),WAe=I$(),xo=X$(),tK=rK();function Mv(e){return e.call.bind(e)}var aK=typeof BigInt!="undefined",nK=typeof Symbol!="undefined",Bi=Mv(Object.prototype.toString),jAe=Mv(Number.prototype.valueOf),ZAe=Mv(String.prototype.valueOf),XAe=Mv(Boolean.prototype.valueOf);aK&&(iK=Mv(BigInt.prototype.valueOf));var iK;nK&&(oK=Mv(Symbol.prototype.valueOf));var oK;function fd(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}lt.isArgumentsObject=YAe;lt.isGeneratorFunction=WAe;lt.isTypedArray=tK;function JAe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}lt.isPromise=JAe;function $Ae(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):tK(e)||sK(e)}lt.isArrayBufferView=$Ae;function KAe(e){return xo(e)==="Uint8Array"}lt.isUint8Array=KAe;function QAe(e){return xo(e)==="Uint8ClampedArray"}lt.isUint8ClampedArray=QAe;function e8e(e){return xo(e)==="Uint16Array"}lt.isUint16Array=e8e;function r8e(e){return xo(e)==="Uint32Array"}lt.isUint32Array=r8e;function t8e(e){return xo(e)==="Int8Array"}lt.isInt8Array=t8e;function a8e(e){return xo(e)==="Int16Array"}lt.isInt16Array=a8e;function n8e(e){return xo(e)==="Int32Array"}lt.isInt32Array=n8e;function i8e(e){return xo(e)==="Float32Array"}lt.isFloat32Array=i8e;function o8e(e){return xo(e)==="Float64Array"}lt.isFloat64Array=o8e;function l8e(e){return xo(e)==="BigInt64Array"}lt.isBigInt64Array=l8e;function s8e(e){return xo(e)==="BigUint64Array"}lt.isBigUint64Array=s8e;function c2(e){return Bi(e)==="[object Map]"}c2.working=typeof Map!="undefined"&&c2(new Map);function u8e(e){return typeof Map=="undefined"?!1:c2.working?c2(e):e instanceof Map}lt.isMap=u8e;function v2(e){return Bi(e)==="[object Set]"}v2.working=typeof Set!="undefined"&&v2(new Set);function f8e(e){return typeof Set=="undefined"?!1:v2.working?v2(e):e instanceof Set}lt.isSet=f8e;function h2(e){return Bi(e)==="[object WeakMap]"}h2.working=typeof WeakMap!="undefined"&&h2(new WeakMap);function c8e(e){return typeof WeakMap=="undefined"?!1:h2.working?h2(e):e instanceof WeakMap}lt.isWeakMap=c8e;function U7(e){return Bi(e)==="[object WeakSet]"}U7.working=typeof WeakSet!="undefined"&&U7(new WeakSet);function v8e(e){return U7(e)}lt.isWeakSet=v8e;function d2(e){return Bi(e)==="[object ArrayBuffer]"}d2.working=typeof ArrayBuffer!="undefined"&&d2(new ArrayBuffer);function lK(e){return typeof ArrayBuffer=="undefined"?!1:d2.working?d2(e):e instanceof ArrayBuffer}lt.isArrayBuffer=lK;function p2(e){return Bi(e)==="[object DataView]"}p2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&p2(new DataView(new ArrayBuffer(1),0,1));function sK(e){return typeof DataView=="undefined"?!1:p2.working?p2(e):e instanceof DataView}lt.isDataView=sK;var H7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ud(e){return Bi(e)==="[object SharedArrayBuffer]"}function uK(e){return typeof H7=="undefined"?!1:(typeof ud.working=="undefined"&&(ud.working=ud(new H7)),ud.working?ud(e):e instanceof H7)}lt.isSharedArrayBuffer=uK;function h8e(e){return Bi(e)==="[object AsyncFunction]"}lt.isAsyncFunction=h8e;function d8e(e){return Bi(e)==="[object Map Iterator]"}lt.isMapIterator=d8e;function p8e(e){return Bi(e)==="[object Set Iterator]"}lt.isSetIterator=p8e;function y8e(e){return Bi(e)==="[object Generator]"}lt.isGeneratorObject=y8e;function m8e(e){return Bi(e)==="[object WebAssembly.Module]"}lt.isWebAssemblyCompiledModule=m8e;function fK(e){return fd(e,jAe)}lt.isNumberObject=fK;function cK(e){return fd(e,ZAe)}lt.isStringObject=cK;function vK(e){return fd(e,XAe)}lt.isBooleanObject=vK;function hK(e){return aK&&fd(e,iK)}lt.isBigIntObject=hK;function dK(e){return nK&&fd(e,oK)}lt.isSymbolObject=dK;function g8e(e){return fK(e)||cK(e)||vK(e)||hK(e)||dK(e)}lt.isBoxedPrimitive=g8e;function b8e(e){return typeof Uint8Array!="undefined"&&(lK(e)||uK(e))}lt.isAnyArrayBuffer=b8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(lt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var V7=N((EBe,pK)=>{pK.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var J7=N(st=>{var yK=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]),Z7(r)?t.showHidden=r:r&&st._extend(t,r),nf(t.showHidden)&&(t.showHidden=!1),nf(t.depth)&&(t.depth=2),nf(t.colors)&&(t.colors=!1),nf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=_8e),b2(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 _8e(e,r){var t=Ls.styles[r];return t?"\x1B["+Ls.colors[t][0]+"m"+e+"\x1B["+Ls.colors[t][1]+"m":e}function w8e(e,r){return e}function T8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function b2(e,r,t){if(e.customInspect&&r&&g2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return w2(a)||(a=b2(e,a,t)),a}var n=A8e(e,r);if(n)return n;var i=Object.keys(r),o=T8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),vd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Y7(r);if(i.length===0){if(g2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(cd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(vd(r))return Y7(r)}var s="",u=!1,f=["{","}"];if(gK(r)&&(u=!0,f=["[","]"]),g2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(cd(r)&&(s=" "+RegExp.prototype.toString.call(r)),x2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),vd(r)&&(s=" "+Y7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return cd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=M8e(e,r,t,o,i):v=i.map(function(d){return j7(e,r,t,o,d,u)}),e.seen.pop(),k8e(v,s,f)}function A8e(e,r){if(nf(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(bK(r))return e.stylize(""+r,"number");if(Z7(r))return e.stylize(""+r,"boolean");if(_2(r))return e.stylize("null","null")}function Y7(e){return"["+Error.prototype.toString.call(e)+"]"}function M8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";Kk.exports=function(r){return r}});var Eb=N(fl=>{"use strict";var kse=Rr(),Sse=au(),qse=Lb(),Lse=zt().BADNUM,Cb=1e-9;fl.findBin=function(e,r,t){if(kse(r.start))return t?Math.ceil((e-r.start)/r.size-Cb)-1:Math.floor((e-r.start)/r.size+Cb);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?Cse:Ese:s=t?Rse:Dse,e+=o*Cb*(t?-1:1)*(o>=0?1:-1);a90&&Sse.log("Long binary search..."),a-1};function Cse(e,r){return er}function Rse(e,r){return e>=r}fl.sorterAsc=function(e,r){return e-r};fl.sorterDes=function(e,r){return r-e};fl.distinctVals=function(e){var r=e.slice();r.sort(fl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Lse;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}};fl.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()};fl.findIndexOfMin=function(e,r){r=r||qse;for(var t=1/0,a,n=0;n{"use strict";Qk.exports=function(r){return Object.keys(r).sort()}});var eS=N(ra=>{"use strict";var sh=Rr(),Pse=Vn().isArrayOrTypedArray;ra.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),sh(r)||(r=!1),Pse(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 iS=N((aDe,nS)=>{"use strict";var rS=Rf(),Rb=rS.mod,Fse=rS.modHalf,uh=Math.PI,$l=2*uh;function Nse(e){return e/180*uh}function Ise(e){return e/uh*180}function Pb(e){return Math.abs(e[1]-e[0])>$l-1e-14}function tS(e,r){return Fse(r-e,$l)}function zse(e,r){return Math.abs(tS(e,r))}function aS(e,r){if(Pb(r))return!0;var t,a;r[0]a&&(a+=$l);var n=Rb(e,$l),i=n+$l;return n>=t&&n<=a||i>=t&&i<=a}function Ose(e,r,t,a){if(!aS(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Fb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Pb([t,a]),s,u,f,c,v;l?(s=0,u=uh,f=$l):t{"use strict";iu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};iu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};iu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};iu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};iu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};iu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var uS=N(ou=>{"use strict";var Nb=Rf().mod;ou.segmentsIntersect=sS;function sS(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}}ou.segmentDistance=function(r,t,a,n,i,o,l,s){if(sS(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,Ib,lS;ou.getTextLocation=function(r,t,a,n){if((r!==Ib||n!==lS)&&(jp={},Ib=r,lS=n),jp[a])return jp[a];var i=r.getPointAtLength(Nb(a-n/2,t)),o=r.getPointAtLength(Nb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Nb(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};ou.clearLocationCache=function(){Ib=null};ou.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}};ou.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(fh=>{"use strict";var cl={};fh.throttle=function(r,t,a){var n=cl[r],i=Date.now();if(!n){for(var o in cl)cl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};fh.done=function(e){var r=cl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};fh.clear=function(e){if(e)fS(cl[e]),delete cl[e];else for(var r in cl)fh.clear(r)};function fS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var vS=N((lDe,cS)=>{"use strict";cS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var hS=N((sDe,Xp)=>{"use strict";Xp.exports=zb;Xp.exports.isMobile=zb;Xp.exports.default=zb;var Gse=/(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,Vse=/CrOS/,Yse=/android|ipad|playbook|silk/i;function zb(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=Gse.test(r)&&!Vse.test(r)||!!e.tablet&&Yse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var pS=N((uDe,dS)=>{"use strict";var Wse=Rr(),jse=hS();dS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Zse(),typeof t!="string")return!0;var a=jse({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(Wse(u)&&(u=+u),u>=13)return!0}}}return a};function Zse(){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 mS=N((fDe,yS)=>{"use strict";var Xse=Sr();yS.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]=Xse.select(this)}),n}});var bS=N((cDe,gS)=>{"use strict";var Jse=br();gS.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=Jse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var _S=N((vDe,xS)=>{"use strict";xS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";wS.exports=function(r){for(var t=Qse(r)?Kse:$se,a=[],n=0;n{"use strict";AS.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 SS=N((pDe,kS)=>{"use strict";var eue=Rr(),rue=zt().BADNUM,tue=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;kS.exports=function(r){return typeof r=="string"&&(r=r.replace(tue,"")),eue(r)?Number(r):rue}});var Ee=N((yDe,BS)=>{"use strict";var ch=Sr(),aue=Ef().utcFormat,nue=lb().format,RS=Rr(),PS=zt(),FS=PS.FP_SAFE,iue=-FS,qS=PS.BADNUM,be=BS.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 LS={};be.warnBadFormat=function(e){var r=String(e);LS[r]||(LS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=nue(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=kp();be.keyedContainer=xM();be.relativeAttr=wM();be.isPlainObject=Vl();be.toLogRange=qp();be.relinkPrivateKeys=kM();var Kl=Vn();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 NS=Rf();be.mod=NS.mod;be.modHalf=NS.modHalf;var Ql=YM();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 Wn=$k();be.dateTime2ms=Wn.dateTime2ms;be.isDateTime=Wn.isDateTime;be.ms2DateTime=Wn.ms2DateTime;be.ms2DateTimeLocal=Wn.ms2DateTimeLocal;be.cleanDate=Wn.cleanDate;be.isJSDate=Wn.isJSDate;be.formatDate=Wn.formatDate;be.incrementMonth=Wn.incrementMonth;be.dateTick0=Wn.dateTick0;be.dfltRange=Wn.dfltRange;be.findExactDates=Wn.findExactDates;be.MIN_MS=Wn.MIN_MS;be.MAX_MS=Wn.MAX_MS;var lu=Eb();be.findBin=lu.findBin;be.sorterAsc=lu.sorterAsc;be.sorterDes=lu.sorterDes;be.distinctVals=lu.distinctVals;be.roundUp=lu.roundUp;be.sort=lu.sort;be.findIndexOfMin=lu.findIndexOfMin;be.sortObjectKeys=Db();var vl=eS();be.aggNums=vl.aggNums;be.len=vl.len;be.mean=vl.mean;be.geometricMean=vl.geometricMean;be.median=vl.median;be.midRange=vl.midRange;be.variance=vl.variance;be.stdev=vl.stdev;be.interp=vl.interp;var eo=Np();be.init2dArray=eo.init2dArray;be.transposeRagged=eo.transposeRagged;be.dot=eo.dot;be.translationMatrix=eo.translationMatrix;be.rotationMatrix=eo.rotationMatrix;be.rotationXYMatrix=eo.rotationXYMatrix;be.apply3DTransform=eo.apply3DTransform;be.apply2DTransform=eo.apply2DTransform;be.apply2DTransform2=eo.apply2DTransform2;be.convertCssMatrix=eo.convertCssMatrix;be.inverseTransformMatrix=eo.inverseTransformMatrix;var ko=iS();be.deg2rad=ko.deg2rad;be.rad2deg=ko.rad2deg;be.angleDelta=ko.angleDelta;be.angleDist=ko.angleDist;be.isFullCircle=ko.isFullCircle;be.isAngleInsideSector=ko.isAngleInsideSector;be.isPtInsideSector=ko.isPtInsideSector;be.pathArc=ko.pathArc;be.pathSector=ko.pathSector;be.pathAnnulus=ko.pathAnnulus;var Yf=oS();be.isLeftAnchor=Yf.isLeftAnchor;be.isCenterAnchor=Yf.isCenterAnchor;be.isRightAnchor=Yf.isRightAnchor;be.isTopAnchor=Yf.isTopAnchor;be.isMiddleAnchor=Yf.isMiddleAnchor;be.isBottomAnchor=Yf.isBottomAnchor;var Wf=uS();be.segmentsIntersect=Wf.segmentsIntersect;be.segmentDistance=Wf.segmentDistance;be.getTextLocation=Wf.getTextLocation;be.clearLocationCache=Wf.clearLocationCache;be.getVisibleSegment=Wf.getVisibleSegment;be.findPointOnPath=Wf.findPointOnPath;var Kp=bt();be.extendFlat=Kp.extendFlat;be.extendDeep=Kp.extendDeep;be.extendDeepAll=Kp.extendDeepAll;be.extendDeepNoArrays=Kp.extendDeepNoArrays;var Ob=au();be.log=Ob.log;be.warn=Ob.warn;be.error=Ob.error;var oue=Ff();be.counterRegex=oue.counter;var Bb=Zp();be.throttle=Bb.throttle;be.throttleDone=Bb.done;be.clearThrottle=Bb.clear;var ro=nh();be.getGraphDiv=ro.getGraphDiv;be.isPlotDiv=ro.isPlotDiv;be.removeElement=ro.removeElement;be.addStyleRule=ro.addStyleRule;be.addRelatedStyleRule=ro.addRelatedStyleRule;be.deleteRelatedStyleRule=ro.deleteRelatedStyleRule;be.setStyleOnHover=ro.setStyleOnHover;be.getFullTransformMatrix=ro.getFullTransformMatrix;be.getElementTransformMatrix=ro.getElementTransformMatrix;be.getElementAndAncestors=ro.getElementAndAncestors;be.equalDomRects=ro.equalDomRects;be.clearResponsive=vS();be.preserveDrawingBuffer=pS();be.makeTraceGroups=mS();be._=bS();be.notifier=gb();be.filterUnique=_S();be.filterVisible=TS();be.pushUnique=_b();be.increment=MS();be.cleanNumber=SS();be.ensureNumber=function(r){return RS(r)?(r=Number(r),r>FS||r=r?!1:RS(e)&&e>=0&&e%1===0};be.noop=Fp();be.identity=Lb();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;nuue.test(window.navigator.userAgent);var fue=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=fue.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 ch.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 OS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return OS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var hue={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>Hb(mp(Ks({},e),{opts:hue}));var due={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>Hb(mp(Ks({},e),{opts:due}));var pue=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function yue(e){var r=e.match(pue);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var mue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>Hb(mp(Ks({},e),{opts:mue}));var CS=/^[:|\|]/;function Hb({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=yue(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(OS.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,q=t===!1?o:t;return w=$p&&o<=ES,u=l>=$p&&l<=ES;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 Vf=2e9;be.seedPseudoRandom=function(){Vf=2e9};be.pseudoRandom=function(){var e=Vf;return Vf=(69069*Vf+1)%4294967296,Math.abs(Vf-e)<429496729?be.pseudoRandom():Vf/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 DS=be.getFirefoxVersion(),gue=DS!==null&&DS<86;be.getPositionFromD3Event=function(){return gue?[ch.event.layerX,ch.event.layerY]:[ch.event.offsetX,ch.event.offsetY]}});var GS=N(()=>{"use strict";var bue=Ee(),HS={"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(Ub in HS)US=Ub.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),bue.addStyleRule(US,HS[Ub]);var US,Ub});var Gb=N((xDe,VS)=>{VS.exports=!0});var Yb=N((_De,YS)=>{"use strict";var xue=Gb(),Vb;typeof window.matchMedia=="function"?Vb=!window.matchMedia("(hover: none)").matches:Vb=xue;YS.exports=Vb});var su=N((wDe,Wb)=>{"use strict";var jf=typeof Reflect=="object"?Reflect:null,WS=jf&&typeof jf.apply=="function"?jf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Qp;jf&&typeof jf.ownKeys=="function"?Qp=jf.ownKeys:Object.getOwnPropertySymbols?Qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qp=function(r){return Object.getOwnPropertyNames(r)};function _ue(e){console&&console.warn&&console.warn(e)}var ZS=Number.isNaN||function(r){return r!==r};function Et(){Et.init.call(this)}Wb.exports=Et;Wb.exports.once=Mue;Et.EventEmitter=Et;Et.prototype._events=void 0;Et.prototype._eventsCount=0;Et.prototype._maxListeners=void 0;var jS=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(Et,"defaultMaxListeners",{enumerable:!0,get:function(){return jS},set:function(e){if(typeof e!="number"||e<0||ZS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");jS=e}});Et.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};Et.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||ZS(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 XS(e){return e._maxListeners===void 0?Et.defaultMaxListeners:e._maxListeners}Et.prototype.getMaxListeners=function(){return XS(this)};Et.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")WS(s,this,t);else for(var u=s.length,f=eq(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,_ue(l)}return e}Et.prototype.addListener=function(r,t){return JS(this,r,t,!1)};Et.prototype.on=Et.prototype.addListener;Et.prototype.prependListener=function(r,t){return JS(this,r,t,!0)};function wue(){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 $S(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=wue.bind(a);return n.listener=t,a.wrapFn=n,n}Et.prototype.once=function(r,t){return e1(t),this.on(r,$S(this,r,t)),this};Et.prototype.prependOnceListener=function(r,t){return e1(t),this.prependListener(r,$S(this,r,t)),this};Et.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():Tue(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Et.prototype.off=Et.prototype.removeListener;Et.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 KS(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?Aue(n):eq(n,n.length)}Et.prototype.listeners=function(r){return KS(this,r,!0)};Et.prototype.rawListeners=function(r){return KS(this,r,!1)};Et.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):QS.call(e,r)};Et.prototype.listenerCount=QS;function QS(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}Et.prototype.eventNames=function(){return this._eventsCount>0?Qp(this._events):[]};function eq(e,r){for(var t=new Array(r),a=0;a{"use strict";var jb=su().EventEmitter,Sue={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 aq=Ee(),que=tu().dfltConfig;function Lue(e,r){for(var t=[],a,n=0;nque.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};hl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};hl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};hl.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";oq.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Jf=N(ba=>{"use strict";var vi=br(),hh=Ee(),t1=gn(),Xb=Of(),Cue=Zb(),Eue=ih(),Due=tu().configAttributes,lq=Qi(),to=hh.extendDeepAll,Zf=hh.isPlainObject,Rue=hh.isArrayOrTypedArray,a1=hh.nestedProperty,Pue=hh.valObjectMeta,Jb="_isSubplotObj",n1="_isLinkedToArray",Fue="_arrayAttrRegexps",uq="_deprecated",$b=[Jb,n1,Fue,uq];ba.IS_SUBPLOT_OBJ=Jb;ba.IS_LINKED_TO_ARRAY=n1;ba.DEPRECATED=uq;ba.UNDERSCORE_ATTRS=$b;ba.get=function(){var e={};return vi.allTypes.forEach(function(r){e[r]=Iue(r)}),{defs:{valObjects:Pue,metaKeys:$b.concat(["description","role","editType","impliedEdits"]),editType:{traces:lq.traces,layout:lq.layout},impliedEdits:{}},traces:e,layout:zue(),frames:Oue(),animation:Xf(Eue),config:Xf(Due)}};ba.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if($b.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ba.isValObject(o)&&Zf(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)Rue(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 Iue(e){var r,t;r=vi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=to({},t1),i=to({},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)}),to(a,n),vi.traceIs(e,"noOpacity")&&delete a.opacity,vi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),vi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,to(a,i),t.attributes&&to(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Xf(a)};if(r.layoutAttributes){var l={};to(l,r.layoutAttributes),o.layoutAttributes=Xf(l)}return r.animatable||ba.crawl(o,function(s){ba.isValObject(s)&&"anim"in s&&delete s.anim}),o}function zue(){var e={},r,t;to(e,Xb);for(r in vi.subplotsRegistry)if(t=vi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var $f=Ee(),Vue=gn(),es="templateitemname",Kb={name:{valType:"string",editType:"none"}};Kb[es]={valType:"string",editType:"calc"};uu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Kb.name,r[es]=Kb[es],r};uu.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=$f.coerce(i,{},Vue,"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}};uu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);$f.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};uu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[vq(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(!cq(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?$f.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)$f.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var xa=N((qDe,hq)=>{"use strict";var dh=Ff().counter;hq.exports={idRegex:{x:dh("x","( domain)?"),y:dh("y","( domain)?")},attrRegex:dh("[xy]axis"),xAxisMatch:dh("xaxis"),yAxisMatch:dh("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 ua=N(En=>{"use strict";var Yue=br(),Qb=xa();En.id2name=function(r){if(!(typeof r!="string"||!r.match(Qb.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(Qb.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(Qb.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),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};En.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function dq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Wue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}pq.exports={clearOutlineControllers:Wue,clearOutline:jue}});var i1=N((EDe,yq)=>{"use strict";yq.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(),DDe=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 Zue=br(),Kf=Ee();fu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=fu.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){mq(e,o,n.cache),n.check=function(){if(i){var f=mq(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;Kf.isPlainObject(i)?ex(i,r,o,a+1):r(o,n,i)}})}});var ta=N((FDe,Pq)=>{"use strict";var Sq=Sr(),Jue=Ef().timeFormatLocale,$ue=lb().formatLocale,ph=Rr(),Kue=sb(),Qr=br(),qq=Jf(),Que=_t(),vr=Ee(),Lq=Tr(),_q=zt().BADNUM,Dn=ua(),efe=rs().clearOutline,rfe=i1(),rx=ih(),tfe=Zb(),afe=s1().getModuleCalcData,wq=vr.relinkPrivateKeys,cu=vr._,er=Pq.exports={};vr.extendFlat(er,Qr);er.attributes=gn();er.attributes.type.values=er.allTypes;er.fontAttrs=ga();er.layoutAttributes=Of();var f1=xq();er.executeAPICommand=f1.executeAPICommand;er.computeAPICommandBindings=f1.computeAPICommandBindings;er.manageCommandObserver=f1.manageCommandObserver;er.hasSimpleAPICommandBindings=f1.hasSimpleAPICommandBindings;er.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(er.previousPromises(e)))},300)})};er.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};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.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=Sq.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&&nfe(e,i),o.text(i.text()&&l.text()?" - ":"")}};function nfe(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(){er.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})}}er.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Sq.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=er.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var ife=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],ofe=["year","month","dayMonth","dayMonthYear"];er.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||er.createTransitionData(e),n._dfltTitle={plot:cu(e,"Click to enter Plot title"),subtitle:cu(e,"Click to enter Plot subtitle"),x:cu(e,"Click to enter X axis title"),y:cu(e,"Click to enter Y axis title"),colorbar:cu(e,"Click to enter Colorscale title"),annotation:cu(e,"new text")},n._traceWord=cu(e,"trace");var v=Tq(e,ife);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,x=f.autosizable,T=y&&(m||x);T?er.plotAutoSize(e,i,n):y&&er.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=ufe(v,n.separators),n._extraFormat=Tq(e,ofe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=sfe(),b=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=lfe(o,s),er.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,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),I=R,B=z;I&&!B?a._bgLayer.remove():B&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&efe({_fullLayout:a}),ffe(l,n),wq(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=er.layoutAttributes.width.min,v=er.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}),er.sanitizeMargins(a)};er.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 er.doAutoMargin(e)}};function vfe(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}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Cq(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"&&ph(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var q=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-q)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,I=P.val,B=P.size,G=t-o.r-o.l,Y=a-o.t-o.b;for(var V in v){if(ph(z)&&v[V].r){var H=v[V].r.val,X=v[V].r.size;if(H>R){var j=(z*H+(X-G)*R)/(H-R),ee=(X*(1-R)+(z-G)*(1-H))/(H-R);j+ee>s+u&&(s=j,u=ee)}}if(ph(B)&&v[V].t){var fe=v[V].t.val,ie=v[V].t.size;if(fe>I){var ue=(B*fe+(ie-Y)*I)/(fe-I),K=(ie*(1-I)+(B-Y)*(1-fe))/(fe-I);ue+K>c+f&&(c=ue,f=K)}}}}}var we=vr.constrain(t-i.l-i.r,Eq,p),se=vr.constrain(a-i.t-i.b,Dq,y),ce=Math.max(0,t-we),he=Math.max(0,a-se);if(ce){var ye=(s+u)/ce;ye>1&&(s/=ye,u/=ye)}if(he){var W=(c+f)/he;W>1&&(c/=W,f/=W)}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&&(er.didMarginChange(l,n)||vfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};er.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&er.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)?Kue.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)};er.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=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=Dn.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:_q,y:_q}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(Mq(t,a,n),l=0;l{"use strict";vu.xmlns="http://www.w3.org/2000/xmlns/";vu.svg="http://www.w3.org/2000/svg";vu.xlink="http://www.w3.org/1999/xlink";vu.svgAttrs={xmlns:vu.svg,"xmlns:xlink":vu.xlink}});var Oa=N((IDe,Fq)=>{"use strict";Fq.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(hi=>{"use strict";var fa=Sr(),pl=Ee(),yfe=pl.strTranslate,tx=dl(),mfe=Oa().LINE_SPACING,gfe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;hi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(gfe),i=fa.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=Efe(e.node(),a);s&&e.style("pointer-events","all"),hi.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};wfe(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"),q=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,q]+")"+yfe(-w/2,D-k/2)});else if(o[0]==="l")q=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,q=D;else{var P=e.attr("text-anchor");M=M-w*(P==="middle"?.5:P==="end"?1:0),q=q+D-k/2}p.attr({x:M,y:q}),t&&t.call(e,y),s(y)})})):l(),e};var bfe=/(<|<|<)/g,xfe=/(>|>|>)/g;function _fe(e){return e.replace(bfe,"\\lt ").replace(xfe,"\\gt ")}var Nq=[["$","$"],["\\(","\\)"]];function wfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){pl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=pl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Nq},displayAlign:"left"})},u=function(){i=pl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Nq},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-"+pl.randstr({},64);l=fa.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(_fe(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(!_)pl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),w;a===2?w=fa.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 Bq={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"},Tfe={sub:"0.3em",sup:"-0.6em"},Afe={sub:"-0.21em",sup:"0.42em"},Iq="\u200B",zq=["http:","https:","mailto:","",void 0,":"],Hq=hi.NEWLINES=/(\r\n?|\n)/g,nx=/(<[^<>]*>)/,ix=/<(\/?)([^ >]*)(\s+(.*))?>/i,Mfe=//i;hi.BR_TAG_ALL=//gi;var Uq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Gq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Vq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,kfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function hu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c1(a)}var Sfe=/(^|;)\s*color:/;hi.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(nx),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 qfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Lfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c1(e){return e.replace(Lfe,function(r,t){var a;return t.charAt(0)==="#"?a=Cfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=qfe[t],a||r})}hi.convertEntities=c1;function Cfe(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 Efe(e,r){r=r.replace(Hq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(tx.svg,"tspan");fa.select(k).attr({class:"line",dy:i*mfe+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q.",r);return}var M=a.pop();k!==M.type&&pl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Mfe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(nx),v=0;v{"use strict";var Dfe=Sr(),h1=Sn(),mh=Rr(),v1=Ee(),Wq=Tr(),Rfe=eu().isValid;function Pfe(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 Kq(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 eL=Mb(),Nfe=eL.FORMAT_LINK,Ife=eL.DATE_FORMAT_LINK;function zfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ox:rL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ox(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: "+Nfe+"."].join(" ")}function rL(e,r){return ox(e,r)+[" And for dates see: "+Ife+".","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(" ")}tL.exports={axisHoverFormat:zfe,descriptionOnlyNumbers:ox,descriptionWithDates:rL}});var di=N((UDe,bL)=>{"use strict";var aL=ga(),Qf=ui(),gL=fi().dash,sx=bt().extendFlat,nL=_t().templatedArray,HDe=Yn().templateFormatStringDescription,iL=ao().descriptionWithDates,Ofe=zt().ONEDAY,So=xa(),Bfe=So.HOUR_PATTERN,Hfe=So.WEEKDAY_PATTERN,lx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ufe=sx({},lx,{values:lx.values.slice().concat(["sync"])});function oL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var lL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},sL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},uL={valType:"data_array",editType:"ticks"},fL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function cL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function vL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var hL={valType:"color",dflt:Qf.defaultLine,editType:"ticks"},dL={valType:"color",dflt:Qf.lightLine,editType:"ticks"};function pL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var yL=sx({},gL,{editType:"ticks"}),mL={valType:"boolean",editType:"ticks"};bL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:aL({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:[So.idRegex.x.toString(),So.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:[So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"calc"},rangebreaks:nL("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:[Hfe,Bfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Ofe},editType:"calc"}),tickmode:Ufe,nticks:oL(),tick0:lL,dtick:sL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:uL,ticktext:{valType:"data_array",editType:"ticks"},ticks:fL,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:cL(),tickwidth:vL(),tickcolor:hL,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:sx({},gL,{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:aL({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:iL("tick label")},tickformatstops:nL("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:iL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Qf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:mL,gridcolor:dL,gridwidth:pL(),griddash:yL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Qf.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:Qf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",So.idRegex.x.toString(),So.idRegex.y.toString()],editType:"plot"},minor:{tickmode:lx,nticks:oL("minor"),tick0:lL,dtick:sL,tickvals:uL,ticks:fL,ticklen:cL("minor"),tickwidth:vL("minor"),tickcolor:hL,gridcolor:dL,gridwidth:pL("minor"),griddash:yL,showgrid:mL,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((GDe,wL)=>{"use strict";var Dt=di(),xL=ga(),_L=bt().extendFlat,Gfe=Qi().overrideAll;wL.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: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:_L({},Dt.ticks,{dflt:""}),ticklabeloverflow:_L({},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:xL({}),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:xL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var qo=N((YDe,AL)=>{"use strict";var Vfe=d1(),Yfe=Ff().counter,Wfe=Db(),TL=eu().scales,VDe=Wfe(TL);function p1(e){return"`"+e+"`"}AL.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"?TL[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=Vfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Yfe("coloraxis"),dflt:null,editType:"calc"}),M}});var fx=N((WDe,ML)=>{"use strict";var jfe=bt().extendFlat,Zfe=qo(),ux=eu().scales;ML.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ux.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ux.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ux.RdBu,editType:"calc"}},coloraxis:jfe({_isSubplotObj:!0,editType:"calc"},Zfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var cx=N((jDe,kL)=>{"use strict";var Xfe=Ee();kL.exports=function(r){return Xfe.isPlainObject(r.colorbar)}});var dx=N(hx=>{"use strict";var vx=Rr(),SL=Ee(),qL=zt(),Jfe=qL.ONEDAY,$fe=qL.ONEWEEK;hx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Jfe:1;if(!e)return i;if(vx(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=vx(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};hx.tick0=function(e,r,t,a){if(r==="date")return SL.cleanDate(e,SL.dateTick0(t,a%$fe===0?1:0));if(!(a==="D1"||a==="D2"))return vx(e)?Number(e):0}});var y1=N((XDe,CL)=>{"use strict";var LL=dx(),Kfe=Ee().isArrayOrTypedArray,Qfe=Vn().isTypedArraySpec,ece=Vn().decodeTypedArraySpec;CL.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 Qfe(_)&&(_=ece(_)),_!==void 0?_:(s._template||{})[T]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Kfe(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=LL.dtick(v,n);s.tick0=LL.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((JDe,DL)=>{"use strict";var px=Ee(),EL=di();DL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?EL.minor:EL,u=i?"minor.":"",f=px.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=px.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=px.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 yx=N(($De,RL)=>{"use strict";RL.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 no=N((KDe,PL)=>{"use strict";var g1=Ee(),rce=_t();PL.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=rce.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var mx=Ee(),tce=Tr().contrast,FL=di(),ace=yx(),nce=no();NL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");mx.isPlainObject(o)||delete t.labelalias;var l=ace(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?tce(i.bgColor):f&&f!==FL.color.dflt?f:u.color;if(mx.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");nce(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ice}),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 ice(e,r){function t(n,i){return mx.coerce(e,r,FL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var x1=N((eRe,IL)=>{"use strict";var oce=yx();IL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=oce(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var gx=N((rRe,zL)=>{"use strict";var ts=Ee(),lce=_t(),sce=y1(),uce=m1(),fce=b1(),cce=x1(),vce=d1();zL.exports=function(r,t,a){var n=lce.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return ts.coerce(i,n,vce,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"),sce(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),cce(i,n,o,"linear",q),fce(i,n,o,"linear",q),uce(i,n,o,"linear",q),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 yl=N((tRe,HL)=>{"use strict";var OL=Rr(),xx=Ee(),hce=cx(),dce=gx(),BL=eu().isValid,pce=br().traceIs;function bx(e,r){var t=r.slice(0,r.length-1);return r?xx.nestedProperty(e,t).get()||{}:e}HL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=bx(r,o),f=bx(t,o),c=bx(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=pce(t,"contour")&&xx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,xx.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"],_=OL(x)&&OL(T)&&x{"use strict";var UL=Ee(),yce=_t(),GL=fx(),mce=yl();VL.exports=function(r,t){function a(c,v){return UL.coerce(r,t,GL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return UL.coerce(i,o,GL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=yce.newContainer(t,s,"coloraxis"),o._name=s,mce(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var gce=Ee(),bce=jn().hasColorscale,xce=jn().extractOpts;WL.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?gce.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=xce(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 ZL=Rr(),_x=Ee(),_ce=jn().extractOpts;XL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?_x.nestedProperty(t,o).get():t,s=_ce(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return _x.aggNums(Math.min,null,i)},p=function(){return _x.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&ZL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&ZL(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((oRe,JL)=>{"use strict";var _1=eu(),rc=jn();JL.exports={moduleType:"component",name:"colorscale",attributes:qo(),layoutAttributes:fx(),supplyLayoutDefaults:YL(),handleDefaults:yl(),crossTraceDefaults:jL(),calc:ec(),scales:_1.scales,defaultScale:_1.defaultScale,getScale:_1.get,isValidScale:_1.isValid,hasColorscale:rc.hasColorscale,extractOpts:rc.extractOpts,extractScale:rc.extractScale,flipScale:rc.flipScale,makeColorScaleFunc:rc.makeColorScaleFunc,makeColorScaleFuncFromTrace:rc.makeColorScaleFuncFromTrace}});var Rn=N((lRe,KL)=>{"use strict";var $L=Ee(),wce=Vn().isTypedArraySpec;KL.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 $L.isPlainObject(r)&&($L.isArrayOrTypedArray(r.size)||wce(r.size))}}});var eC=N((sRe,QL)=>{"use strict";var Tce=Rr();QL.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 Tce(s)&&s>0?Math.max(s,i):0}}});var Co=N(Za=>{"use strict";var w1=Ee();Za.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Za.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{aC.exports=qce;var wx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Sce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function qce(e){var r=[];return e.replace(Sce,function(t,a,n){var i=a.toLowerCase();for(n=Cce(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==wx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Ece=Tx(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",nC=Math.sqrt(2),as=Math.sqrt(3),Ax=Math.PI,Mx=Math.cos,kx=Math.sin;uC.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/nC,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/nC,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=Ax/2.5,n=2*e*Mx(a),i=2*e*kx(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=Ax/4,n=2*e*Mx(a),i=2*e*kx(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 iC,oC,lC,sC;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(lC===e&&sC===r&&iC===t)return oC;lC=e,sC=r,iC=t;function a(m,x){var T=Mx(m),_=kx(m),b=x[0],w=x[1]+(r||0);return[b*T-w*_,b*_+w*T]}for(var n=e/180*Ax,i=0,o=0,l=Ece(t),s="",u=0;u{"use strict";var Ma=Sr(),pt=Ee(),Dce=pt.numberFormat,mu=Rr(),Dx=Sn(),A1=br(),Ba=Tr(),Rce=Lo(),bh=pt.strTranslate,M1=Aa(),Pce=dl(),Fce=Oa(),Nce=Fce.LINE_SPACING,xC=Rp().DESELECTDIM,Ice=Rn(),zce=eC(),Oce=Co().appendArrayPointValue,tr=CC.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(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",Sx(Hce(f))),s&&e.style("text-shadow",s==="auto"?M1.makeTextShadow(Ba.contrast(i)):Sx(s)),u&&e.style("text-decoration-line",Sx(Uce(u)))};function Sx(e){return e==="none"?void 0:e}var Bce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Hce(e){return Bce[e]}function Uce(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(mu(n)&&mu(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",bh(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||!mu(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||"";Ba.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(Ba.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 _C(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(AC,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(Ba.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=Ma.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};_C(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&&_C(n,a[0].trace,r,t)})};var cC=fC();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(cC).forEach(function(e){var r=cC[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 Gce=tr.symbolNames.length,Vce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(mu(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>=Gce||e>=400?0:Math.floor(Math.max(e,0))};function wC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?Vce:"")}var vC=Dce("~f"),TC={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=TC[a];return AC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function AC(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=Fx(e,t),c=Px(e,t);r.attr("d",wC(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):pt.isArrayOrTypedArray(l.color)?p=Ba.defaultLine:p=l.color,pt.isArrayOrTypedArray(o.color)&&(d=Ba.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(Ba.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,pt.isArrayOrTypedArray(_)&&(_=_[0],TC[_]||(_=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 q=t.uid;v&&(q+="-"+e.i),tr.gradient(r,n,q,_,[[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),z=b.fgopacity,I=w(b.size,e.i,8),B=w(b.solidity,e.i,.3);E=E||e.mcc||pt.isArrayOrTypedArray(b.shape)||pt.isArrayOrTypedArray(b.path)||pt.isArrayOrTypedArray(b.bgcolor)||pt.isArrayOrTypedArray(b.fgcolor)||pt.isArrayOrTypedArray(b.size)||pt.isArrayOrTypedArray(b.solidity);var G=t.uid;E&&(G+="-"+e.i),tr.pattern(r,"point",n,G,k,I,B,e.mcc,b.fillmode,R,P,z)}else pt.isArrayOrTypedArray(d)?Ba.fill(r,d[e.i]):Ba.fill(r,d);y&&Ba.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=Ice.isBubble(e)?zce(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.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;(pt.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:xC*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:Ba.addOpacity(c,xC))},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){Ba.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",wC(tr.symbolNumber(l),s,Fx(o,r),Px(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?pt.extractOption(l,r,"txt","texttemplate"):pt.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={};Oce(v,r,l.i),u=pt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=kC(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(MC,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=kC(a,r);Ba.fill(n,i);var s=A1.traceIs(r,"bar-like");MC(n,o,l,a.mrc2||a.mrc,s)})}};var hC=.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=LC;tr.makeTester=function(){var e=pt.ensureSingleById(Ma.select("body"),"svg","js-plotly-tester",function(t){t.attr(Pce.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"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Lx=0,jce=1e4;tr.bBox=function(e,r,t){t||(t=dC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return pt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=dC(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 pt.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 Lx>=jce&&(tr.savedBBoxes={},Lx=0),t&&(tr.savedBBoxes[t]=d),Lx++,pt.extendFlat({},d)};function dC(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",Rx(r,t))};function Rx(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+=bh(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 Zce=/\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(Zce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Xce=/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(Xce);r===1&&t===1?a=[]:a=[bh(o,l),"scale("+r+","+t+")",bh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Px(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=Px;var gh=Math.atan2,du=Math.cos,ac=Math.sin;function pC(e,r){var t=r[0],a=r[1];return[t*du(e)-a*ac(e),t*ac(e)+a*du(e)]}var yC,mC,gC,bC,Cx,Ex;function Fx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.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=gh(v[1]-n,v[0]-a),p=gh(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=yC/180*Math.PI,_=mC/180*Math.PI,b=T-m,w=du(_)*ac(b),k=ac(_)*du(x)-du(_)*ac(x)*du(b);y=-gh(w,k)-Math.PI,yC=u,mC=f}var M=pC(d,[du(y),0]),q=pC(p,[ac(y),0]);t=gh(M[1]+q[1],M[0]+q[0])/Math.PI*180,i==="previous"&&!(Ex===r.uid&&e.i===Cx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Ex===r.uid&&e.i===Cx+1&&mu(a)&&mu(n)){var E=a-gC,D=n-bC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=gh(D,E)/Math.PI*180+90}else t=null}return gC=a,bC=n,Cx=e.i,Ex=r.uid,t}tr.getMarkerAngle=Fx});var oc=N((hRe,PC)=>{"use strict";var nc=Sr(),Jce=Rr(),$ce=ta(),Nx=br(),gu=Ee(),EC=gu.strTranslate,k1=Wr(),S1=Tr(),ic=Aa(),DC=Rp(),Kce=Oa().OPPOSITE_SIDE,RC=/ [XY][0-9]* /,Ix=1.6,zx=1.6;function Qce(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,q=m.lineposition,E=m.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},I=(z.text||"").trim(),B=!1,G=1,Y=z.font,V=Y.family,H=Y.size,X=Y.color,j=Y.weight,ee=Y.style,fe=Y.variant,ie=Y.textcase,ue=Y.lineposition,K=Y.shadow,we;i==="title.text"?we="titleText":i.indexOf("axis")!==-1?we="axisTitleText":i.indexOf("colorbar")!==-1&&(we="colorbarTitleText");var se=e._context.edits[we];function ce(Be,Ge){return Be===void 0||Ge===void 0?!1:Be.replace(RC," % ")===Ge.replace(RC," % ")}p===""?v=0:ce(p,o)&&(se||(p=""),v=.2,y=!0),P&&(I===""?G=0:ce(I,R)&&(se||(I=""),G=.2,B=!0)),t._meta?p=gu.templateString(p,t._meta):a._meta&&(p=gu.templateString(p,a._meta));var he=p||I||se,ye;c||(c=gu.ensureSingle(a._infolayer,"g","g-"+r),ye=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(he?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,Z=r+"-subtitle",le=I||se;if(P&&(Q=c.selectAll("text."+Z).data(le?[0]:[]),Q.enter().append("text"),Q.text(I).attr("class",Z),Q.exit().remove()),!he)return c;function ve(Be,Ge){gu.syncOrAsync([me,Ce],{title:Be,subtitle:Ge})}function me(Be){var Ge=Be.title,De=Be.subtitle,Oe;!f&&ye&&(f={}),f?(Oe="",f.rotate&&(Oe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ye)&&(Oe+=EC(0,(f.offset||0)-(ye||0)))):Oe=null,Ge.attr("transform",Oe);function Ue(Te){if(Te){var qe=nc.select(Te.node().parentNode).select("."+Z);if(!qe.empty()){var He=Te.node().getBBox();if(He.height){var Je=He.y+He.height+Ix*H;qe.attr("y",Je)}}}}if(Ge.style("opacity",v*S1.opacity(_)).call(k1.font,{color:S1.rgb(_),size:nc.round(T,2),family:x,weight:b,style:w,variant:k,textcase:M,shadow:E,lineposition:q}).attr(u).call(ic.convertToTspans,e,Ue),De&&!De.empty()){var oe=c.select("."+r+"-math-group"),Ae=Ge.node().getBBox(),Xe=oe.node()?oe.node().getBBox():void 0,hr=Xe?Xe.y+Xe.height+Ix*H:Ae.y+Ae.height+zx*H,Ne=gu.extendFlat({},u,{y:hr});De.attr("transform",Oe),De.style("opacity",G*S1.opacity(X)).call(k1.font,{color:S1.rgb(X),size:nc.round(H,2),family:V,weight:j,style:ee,variant:fe,textcase:ie,shadow:K,lineposition:ue}).attr(Ne).call(ic.convertToTspans,e)}return $ce.previousPromises(e)}function Ce(Be){var Ge=Be.title,De=nc.select(Ge.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Oe=Kce[s.side],Ue=s.side==="left"||s.side==="top"?-1:1,oe=Jce(s.pad)?s.pad:2,Ae=k1.bBox(De.node()),Xe={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var Ne in hr)for(var Te in hr[Ne]){var qe=hr[Ne][Te];Xe[Te]=Math.max(Xe[Te],qe)}var He={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},Je=s.maxShift||Ue*(He[s.side]-Ae[s.side]),Ve=0;if(Je<0)Ve=Je;else{var Ze=s.offsetLeft||0,or=s.offsetTop||0;Ae.left-=Ze,Ae.right-=Ze,Ae.top-=or,Ae.bottom-=or,s.selection.each(function(){var Ke=k1.bBox(this);gu.bBoxIntersect(Ae,Ke,oe)&&(Ve=Math.max(Ve,Ue*(Ke[s.side]-Ae[Oe])+oe))}),Ve=Math.min(Je,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Je<0){var rr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];De.attr("transform",EC(rr[0],rr[1]))}}}W.call(ve,Q);function Pe(Be,Ge){Be.text(Ge).on("mouseover.opacity",function(){nc.select(this).transition().duration(DC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){nc.select(this).transition().duration(DC.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(p?W.on(".opacity",null):(Pe(W,o),y=!0),W.call(ic.makeEditable,{gd:e}).on("edit",function(Be){l!==void 0?Nx.call("_guiRestyle",e,i,Be,l):Nx.call("_guiRelayout",e,i,Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Be){this.text(Be||" ").call(ic.positionText,u.x,u.y)}),P)){if(P&&!p){var Le=W.node().getBBox(),ze=Le.y+Le.height+zx*H;Q.attr("y",ze)}I?Q.on(".opacity",null):(Pe(Q,R),B=!0),Q.call(ic.makeEditable,{gd:e}).on("edit",function(Be){Nx.call("_guiRelayout",e,"title.subtitle.text",Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Be){this.text(Be||" ").call(ic.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",y),Q&&!Q.empty()&&Q.classed("js-placeholder",B),c}PC.exports={draw:Qce,SUBTITLE_PADDING_EM:zx,SUBTITLE_PADDING_MATHJAX_EM:Ix}});var lc=N((dRe,OC)=>{"use strict";var eve=Sr(),rve=Ef().utcFormat,wt=Ee(),tve=wt.numberFormat,Eo=Rr(),ns=wt.cleanNumber,ave=wt.ms2DateTime,FC=wt.dateTime2ms,Do=wt.ensureNumber,NC=wt.isArrayOrTypedArray,is=zt(),q1=is.FP_SAFE,io=is.BADNUM,nve=is.LOG_CLIP,ive=is.ONEWEEK,L1=is.ONEDAY,C1=is.ONEHOUR,IC=is.ONEMIN,zC=is.ONESEC,E1=ua(),P1=xa(),D1=P1.HOUR_PATTERN,R1=P1.WEEKDAY_PATTERN;function xh(e){return Math.pow(10,e)}function Ox(e){return e!=null}OC.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*nve*Math.abs(k-M))}else return io}function o(b,w,k,M){if((M||{}).msUTC&&Eo(b))return+b;var q=FC(b,k||r.calendar);if(q===io)if(Eo(b)){b=+b;var E=Math.floor(wt.mod(b+.05,1)*10),D=Math.round(b-E/10);q=FC(new Date(D))+E/10}else return io;return q}function l(b,w,k){return ave(b,w,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Ox(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 io}function f(b,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,q=M*b,E=0,D=0;DR)E=D+1;else{E=q<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):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:Do,r.l2c=r.type==="log"?xh:Do,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 xh(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=Do,r.d2p=r.r2p=function(b){return r.l2p(ns(b))},r.p2d=r.p2r=x,r.cleanPos=Do):r.type==="log"?(r.d2r=r.d2l=function(b,w){return i(ns(b),w)},r.r2d=r.r2c=function(b){return xh(ns(b))},r.d2c=r.r2l=ns,r.c2d=r.l2r=Do,r.c2r=i,r.l2d=xh,r.d2p=function(b,w){return r.l2p(r.d2r(b,w))},r.p2d=function(b){return xh(x(b))},r.r2p=function(b){return r.l2p(ns(b))},r.p2r=x,r.cleanPos=Do):r.type==="date"?(r.d2r=r.r2d=wt.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 wt.cleanDate(b,io,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=Do,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:Do(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=Do,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:Do(b)},r.setupMultiCategory=function(b){var w=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var E in q)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),M[0]===M[1]){var P=r.l2r(w),R=r.l2r(k);if(w!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var I=R+1;w!==void 0&&(I=Math.max(I,P)),M[E?0:1]=I}}}},r.cleanRange=function(b,w){r._cleanRange(b,w),r.limitRange(b)},r._cleanRange=function(b,w){w||(w={}),b||(b="range");var k=wt.nestedProperty(r,b).get(),M,q;if(r.type==="date"?q=wt.dfltRange(r.calendar):n==="y"?q=P1.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=w.dfltRange||P1.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){wt.nestedProperty(r,b).set(q);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=wt.cleanDate(k[0],io,r.calendar),k[1]=wt.cleanDate(k[1],io,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!wt.isDateTime(k[M],r.calendar)){r[b]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=wt.constrain(r.r2l(k[0]),wt.MIN_MS+1e3,wt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Eo(k[M]))if(!(E||D)&&Eo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=q;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",q=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],q),D=r.r2l(r[M][1],q),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,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(I=!I),I&&r._rangebreaks.reverse();var B=I?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;Rq&&(q+=7,Eq&&(q+=24,E=M&&E=M&&b=K.min&&(eeK.max&&(K.max=fe),ie=!1)}ie&&D.push({min:ee,max:fe})}};for(k=0;k{"use strict";var BC=Rr(),Bx=Ee(),ove=zt().BADNUM,F1=Bx.isArrayOrTypedArray,lve=Bx.isDateTime,sve=Bx.cleanNumber,HC=Math.round;GC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(F1(n)&&!n.length)return"-";if(!i&&hve(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function UC(e){return Math.max(1,(e-1)/1e3)}function vve(e,r){for(var t=e.length,a=UC(t),n=0,i=0,o={},l=0;ln*2}function hve(e){return F1(e[0])&&F1(e[1])}});var _h=N((yRe,$C)=>{"use strict";var dve=Sr(),jC=Rr(),os=Ee(),I1=zt().FP_SAFE,pve=br(),yve=Wr(),ZC=ua(),mve=ZC.getFromId,gve=ZC.isLinked;$C.exports={applyAutorangeOptions:JC,getAutoRange:Hx,makePadFn:Ux,doAutoRange:xve,findExtremes:_ve,concatExtremes:Yx};function Hx(e,r){var t,a,n=[],i=e._fullLayout,o=Ux(i,r,0),l=Ux(i,r,1),s=Yx(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&&(q=k,E=M,w=P/D):P/_>w&&(q={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 z=c-1,I=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,z),Math.max(1,I)]:n=[z,I]}else x?(q.val>=0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(q.val-w*o(q)<0&&(q={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-q.val-VC(r,k.val,M.val))/(_-o(q)-l(E)),n=[q.val-w*o(q),E.val+w*l(E)];return n=JC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),os.simpleMap(n,r.l2r||Number)}function VC(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),q=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 Gx(e,r,t,a){XC(e,r,t,a,wve)}function Vx(e,r,t,a){XC(e,r,t,a,Tve)}function XC(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 WC(e){return jC(e)&&Math.abs(e)=r}function Ave(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 Mve(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=Ave(t,r),a=Mve(a,r),[t,a]}});var Ir=N((gRe,xE)=>{"use strict";var pi=Sr(),ca=Rr(),sc=ta(),Th=br(),xr=Ee(),uc=xr.strTranslate,bu=Aa(),kve=oc(),Ah=Tr(),Zn=Wr(),Sve=di(),KC=dx(),mRe=xa(),Ha=zt(),qve=Ha.ONEMAXYEAR,H1=Ha.ONEAVGYEAR,U1=Ha.ONEMINYEAR,Lve=Ha.ONEMAXQUARTER,Xx=Ha.ONEAVGQUARTER,G1=Ha.ONEMINQUARTER,Cve=Ha.ONEMAXMONTH,fc=Ha.ONEAVGMONTH,V1=Ha.ONEMINMONTH,Xn=Ha.ONEWEEK,nn=Ha.ONEDAY,ls=nn/2,Po=Ha.ONEHOUR,Mh=Ha.ONEMIN,Y1=Ha.ONESEC,Eve=Ha.ONEMILLI,Dve=Ha.ONEMICROSEC,xu=Ha.MINUS_SIGN,j1=Ha.BADNUM,Jx={K:"zeroline"},$x={K:"gridline",L:"path"},Kx={K:"minor-gridline",L:"path"},uE={K:"tick",L:"path"},QC={K:"tick",L:"text"},eE={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=Oa(),wh=Z1.MID_SHIFT,_u=Z1.CAP_SHIFT,kh=Z1.LINE_SPACING,Rve=Z1.OPPOSITE_SIDE,W1=3,Ye=xE.exports={};Ye.setConvert=lc();var Pve=N1(),Fo=ua(),Fve=Fo.idSort,Nve=Fo.isLinked;Ye.id2name=Fo.id2name;Ye.name2id=Fo.name2id;Ye.cleanId=Fo.cleanId;Ye.list=Fo.list;Ye.listIds=Fo.listIds;Ye.getFromId=Fo.getFromId;Ye.getFromTrace=Fo.getFromTrace;var fE=_h();Ye.getAutoRange=fE.getAutoRange;Ye.findExtremes=fE.findExtremes;var Ive=1e-4;function t5(e){var r=(e[1]-e[0])*Ive;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")+nn*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+nn*15.5:e-=ls;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&ca(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=ca(r.dtick),s=ca(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Wx(u,f)?u===2*Xn&&f===2*nn&&(e.dtick=Xn):u===2*Xn&&f===3*nn?e.dtick=Xn:u===Xn&&!(r._input.minor||{}).nticks?e.dtick=nn:aE(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Wx(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"?Wx(u,f)||(e.dtick=aE(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Wx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function aE(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<=qve?c=u:c=H1:t===Xx&&f>=G1?u>=G1&&u<=Lve?c=u:c=Xx:f>=V1?u>=V1&&u<=Cve?c=u:c=fc:t===Xn&&f>=Xn?c=Xn:f>=nn?c=nn:t===ls&&f>=ls?c=ls:t===Po&&f>=Po&&(c=Po);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;mXn&&(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]=(_?0:1);b--){var w=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(w?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){b?(m=[],p=nE(r,!w)):(x=[],y=nE(r,!w));continue}if(k.tickmode==="sync"){m=[],p=Gve(r);continue}var M=t5(u),q=M[0],E=M[1],D=ca(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=Ye.tickFirst(k,t);if(b){if(r._tmin=R,R=E:I<=E;I=Ye.tickIncrement(I,Y,f,n)){if(b&&B++,k.rangebreaks&&!f){if(I=v)break}if(m.length>d||I===z)break;z=I;var V={value:I};b?(P&&I!==(I|0)&&(V.simpleLabel=!0),i>1&&B%i&&(V.skipLabel=!0),m.push(V)):(V.minor=!0,x.push(V))}}if(!x||x.length<2)s=!1;else{var H=(x[1].value-x[0].value)*(l?-1:1);dhe(H,r.tickformat)||(s=!1)}if(!s)T=m;else{var X=m.concat(x);o&&m.length&&(X=X.slice(1)),X=X.sort(function(ze,Be){return ze.value-Be.value}).filter(function(ze,Be,Ge){return Be===0||ze.value!==Ge[Be-1].value});var j=X.map(function(ze,Be){return ze.minor===void 0&&!ze.skipLabel?Be:null}).filter(function(ze){return ze!==null});j.forEach(function(ze){s.map(function(Be){var Ge=ze+Be;Ge>=0&&Ge-1;he--){if(m[he].drop){m.splice(he,1);continue}m[he].value=Zx(m[he].value,r);var Z=r.c2p(m[he].value);(ye?Q>Z-W:Qv||Dev&&(Ge.periodX=v),Den&&vH1)r/=H1,a=n(10),e.dtick="M"+12*Ro(r,a,O1);else if(i>fc)r/=fc,e.dtick="M"+Ro(r,1,iE);else if(i>nn){if(e.dtick=Ro(r,nn,e._hasDayOfWeekBreaks?[1,2,7,14]:Vve),!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>Po?e.dtick=Ro(r,Po,iE):i>Mh?e.dtick=Ro(r,Mh,oE):i>Y1?e.dtick=Ro(r,Y1,oE):(a=n(10),e.dtick=Ro(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"+Ro(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))):o5(e)?(e.tick0=0,a=1,e.dtick=Ro(r,a,Yve)):(e.tick0=0,a=n(10),e.dtick=Ro(r,a,O1));if(e.dtick===0&&(e.dtick=1),!ca(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function dE(e){var r=e.dtick;if(e._tickexponent=0,!ca(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>=nn&&n<=10||r>=nn*15)e._tickround="d";else if(r>=Mh&&n<=16||r>=Po)e._tickround="M";else if(r>=Y1&&n<=19||r>=Mh)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(ca(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ca(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&&(cc(e.exponentformat)&&e.exponentformat!=="SI extended"&&!a5(s)||cc(e.exponentformat)&&e.exponentformat==="SI extended"&&!n5(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(ca(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"?hE:vE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(pi.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=qh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function jve(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=Sh(Math.pow(10,o),e,n,a);else if(ca(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"||cc(p)&&p!=="SI extended"&&a5(v)||cc(p)&&p==="SI extended"&&n5(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":xu)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":xu)+d:(r.text=Sh(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 Zve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Xve(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 Jve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Sh(r.x,e,n,a)}function $ve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Kve(i);if(o[1]>=100)r.text=Sh(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=xu+r.text)}}}else r.text=Sh(r.x,e,n,a)}function Kve(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 yE=["f","p","n","\u03BC","m","","k","M","G","T"],Qve=["q","r","y","z","a",...yE,"P","E","Z","Y","R","Q"],cc=e=>["SI","SI extended","B"].includes(e);function a5(e){return e>14||e<-15}function n5(e){return e>32||e<-30}function ehe(e,r){return cc(r)?!!(r==="SI extended"&&n5(e)||r!=="SI extended"&&a5(e)):!1}function Sh(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:ca(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};dE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,xu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":cc(o)&&(e+=o==="SI extended"?Qve[l/3+10]:yE[l/3+5])}return n?xu+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*fc}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&&r5(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),r5(r,p,a,!0),r5(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=hhe(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 ze=u+(Le||"tick");return w[ze]||(w[ze]=nhe(r,ze,x)),w[ze]}if(r.visible){var M=Ye.makeTransTickFn(r),q=Ye.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=rhe(r,_);D=Ye.clipEnds(r,z),E=P?D:z}else D=Ye.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var I=r._gridVals=D,B=ahe(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,Y={};for(i=0;i0?De.bottom-Be:0,Ge))));var Ae=0,Xe=0;if(r._shiftPusher&&(Ae=Math.max(Ge,De.height>0?Le==="l"?Be-De.left:De.right-Be:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Xe+=sE(r))),r._fullDepth=Math.max(Ae,Xe)),r.automargin){Oe={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(Le==="b"?Oe[Le]=r._depth:(Oe[Le]=r._depth=Math.max(De.width>0?Be-De.top:0,Ge),hr.reverse()),De.width>0){var Te=De.right-(r._offset+r._length);Te>0&&(Oe.xr=1,Oe.r=Te);var qe=r._offset-De.left;qe>0&&(Oe.xl=0,Oe.l=qe)}}else if(Le==="l"?(r._depth=Math.max(De.height>0?Be-De.left:0,Ge),Oe[Le]=r._depth-Ne):(r._depth=Math.max(De.height>0?De.right-Be:0,Ge),Oe[Le]=r._depth+Ne,hr.reverse()),De.height>0){var He=De.bottom-(r._offset+r._length);He>0&&(Oe.yb=0,Oe.b=He);var Je=r._offset-De.top;Je>0&&(Oe.yt=1,Oe.t=Je)}Oe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Oe[Le]+=sE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[ze]+=Ge),r.mirror===!0||r.mirror==="ticks"?Ue[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Pe&&(oe=Th.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(lE(Oe,r.automargin),lE(Ue,r.automargin)),sc.autoMargin(e,i5(r),Oe),sc.autoMargin(e,gE(r),Ue),sc.autoMargin(e,bE(r),oe)}),xr.syncOrAsync(me)}};function lE(e,r){if(e){var t=Object.keys(eE).reduce(function(a,n){return r.indexOf(n)!==-1&&eE[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 rhe(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 uc(n+e._offset+e.l2p(Qx(v))+t,i+a)}:function(v){return uc(i+a,n+e._offset+e.l2p(Qx(v))+t)}};function Qx(e){return e.periodX!==void 0?e.periodX:e.x}function ihe(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*_u,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=W1),s&&f==="top"&&(v-=d*(1-_u)),(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(z){return a.indexOf(z)!==-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,q=e._id.charAt(0),E=e.tickangle,D;if(q==="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+=wh:E===-90&&M==="bottom"?b=_u:E===90&&M==="top"?b=wh:b=.5,k=wh/2*(E/90)),x.xFn=function(z){return z.dx+T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,I){if(f){if(l)return"end";if(s)return"start"}return!ca(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},x.heightFn=function(z,I,B){return I<-60||I>60?-.5*B:e.side==="top"!==c?-B:0};else if(q==="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=_u:b=.5),c){var P=ca(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*_u*w,b=0}}x.xFn=function(z){return z.dx+r-(T+z.fontSize*b)*w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*wh},x.anchorFn=function(z,I){return ca(I)&&Math.abs(I)===90?"middle":D?"end":"start"},x.heightFn=function(z,I,B){return e.side==="right"&&(I*=-1),I<-30?-B:I<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 Ah.stroke(pi.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,[uE]),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 Ah.stroke(pi.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,[$x,Kx])}};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 Fve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Ah.stroke,r.zerolinecolor||Ah.defaultLine).style("stroke-width",Zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),J1(r,[Jx])};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=pi.select(this),j=e._promises.length;X.call(bu.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(bu.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),J1(r,[QC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(H){pi.select(this).select("text").call(bu.positionText,s.xFn(H),s.yFn(H))});function d(H,X){H.each(function(j){var ee=pi.select(this),fe=ee.select(".text-math-group"),ie=s.anchorFn(j,X),ue=t.transFn.call(ee.node(),j)+(ca(X)&&+X!=0?" rotate("+X+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),K=bu.lineCount(ee),we=kh*j.fontSize,se=s.heightFn(j,ca(X)?+X:0,(K-1)*we);if(se&&(ue+=uc(0,se)),fe.empty()){var ce=ee.select("text");ce.attr({transform:ue,"text-anchor":ie}),ce.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var he=Zn.bBox(fe.node()).width,ye=he*{end:-.5,start:.5}[ie];fe.attr("transform",ue+uc(ye,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var X=H.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,fe=j?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var ie=xr.simpleMap(r.range,r.r2l);ee=r.l2p(ie[0])+r._offset,fe=r.l2p(ie[1])+r._offset}var ue=Math.min(ee,fe),K=Math.max(ee,fe),we=r.side,se=1/0,ce=-1/0;c.each(function(Q){var Z=pi.select(this),le=Z.select(".text-math-group");if(le.empty()){var ve=Zn.bBox(Z.node()),me=0;j?(ve.right>K||ve.leftK||ve.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+ie._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=[],j,ee=1;c.each(function(Oe){H=Math.max(H,Oe.fontSize);var Ue=r.l2p(Oe.x),oe=e5(this),Ae=Zn.bBox(oe.node());ee=Math.max(ee,bu.lineCount(oe)),X.push({top:0,bottom:10,height:10,left:Ue-Ae.width/2,right:Ue+Ae.width/2+2,width:Ae.width+2})});var fe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ie=l.length,ue=Math.abs((l[ie-1].x-l[0].x)*r._m)/(ie-1),K=fe?ue/2:ue,we=fe?r.ticklen:H*1.25*ee,se=Math.sqrt(Math.pow(K,2)+Math.pow(we,2)),ce=K/se,he=r.autotickangles.map(function(Oe){return Oe*Math.PI/180}),ye=he.find(function(Oe){return Math.abs(Math.cos(Oe))<=ce});ye===void 0&&(ye=he.reduce(function(Oe,Ue){return Math.abs(Math.cos(Oe))G*B&&(R=B,E[q]=D[q]=z[q])}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 ohe(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(Ah.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 sE(e){var r=e.title.font.size,t=(e.title.text.match(bu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(_u+t*kh):t?r*(t+1)*kh:r}function lhe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(bu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*_u:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(wh+l*kh));else{var s=qh(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,kve.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)&&(mE(r,0)||!she(e,r,t,a)||uhe(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return mE(e,t.x)})};function mE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Dve:/%L/.test(r)?e>=Eve:/%[SX]/.test(r)?e>=Y1:/%M/.test(r)?e>=Mh:/%[HI]/.test(r)?e>=Po:/%p/.test(r)?e>=ls:/%[Aadejuwx]/.test(r)?e>=nn:/%[UVW]/.test(r)?e>=Xn:/%[Bbm]/.test(r)?e>=V1:/%[q]/.test(r)?e>=G1:/%[Yy]/.test(r)?e>=U1:!0}});var wE=N((bRe,_E)=>{"use strict";_E.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 l5=N((xRe,TE)=>{"use strict";var phe=wE();TE.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&&(phe(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var ME=N((_Re,AE)=>{var yhe={left:0,top:0};AE.exports=mhe;function mhe(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=ghe(r);return t[0]=a-i.left,t[1]=n-i.top,t}function ghe(e){return e===window||e===document||e===document.body?yhe:e.getBoundingClientRect()}});var s5=N((wRe,kE)=>{"use strict";var bhe=Gb();function xhe(){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}kE.exports=bhe&&xhe()});var qE=N((TRe,SE)=>{"use strict";SE.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 EE=N((ARe,CE)=>{"use strict";var LE=Ee(),_he=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];CE.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),_he[t][r]}});var RE=N((MRe,DE)=>{"use strict";var whe=vh(),The=Zp(),Ahe=nh().getGraphDiv,Mhe=eh(),u5=DE.exports={};u5.wrapped=function(e,r,t){e=Ahe(e),e._fullLayout&&The.clear(e._fullLayout._uid+Mhe.HOVERID),u5.raw(e,r,t)};u5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&whe.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 yi=N((kRe,IE)=>{"use strict";var khe=ME(),f5=Yb(),She=s5(),qhe=Ee().removeElement,Lhe=xa(),wu=IE.exports={};wu.align=qE();wu.getCursor=EE();var FE=RE();wu.unhover=FE.wrapped;wu.unhoverRaw=FE.raw;wu.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,She?(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 NE(){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}wu.coverSlip=NE;function PE(e){return khe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var ss=N((SRe,zE)=>{"use strict";zE.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 HE=N((qRe,BE)=>{"use strict";var c5=ss(),Lh="data-savedcursor",OE="!!";BE.exports=function(r,t){var a=r.attr(Lh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var v5=ga(),Che=ui();UE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Che.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:v5({editType:"legend"}),grouptitlefont:v5({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:v5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Eh=N(Ch=>{"use strict";Ch.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Ch.isVertical=function(r){return r.orientation!=="h"};Ch.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Ch.getId=function(r){return r._id||"legend"}});var p5=N((ERe,GE)=>{"use strict";var $1=br(),Jn=Ee(),Ehe=_t(),Dhe=gn(),Rhe=h5(),Phe=Of(),d5=Eh();function Fhe(e,r,t,a,n){var i=r[e]||{},o=Ehe.newContainer(t,e);function l(H,X){return Jn.coerce(i,o,Rhe,H,X)}var s=Jn.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 j=f._input,ee=f;return Jn.coerce(j,ee,Dhe,H,X)},v=t.font||{},d=Jn.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"),q=l("yref"),E=l("xref"),D=M==="h",P=q==="paper",R=E==="paper",z,I,B,G="left";D?(z=0,$1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,B="bottom"):(I=1,B="top"):P?(I=-.1,B="top"):(I=0,B="bottom")):(I=1,B="auto",R?z=1.02:(z=1,G="right")),Jn.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),Jn.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),d5.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"),Jn.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",D?"left":"top");var V=Jn.extendFlat({},s,{size:Jn.bigFont(s.size)});Jn.coerceFont(l,"title.font",V);let H=n>1;l("titleclick",H?"toggle":!1),l("titledoubleclick",H?"toggleothers":!1)}}}GE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var us=br(),y5=Ee(),Nhe=y5.pushUnique,Ihe=Eh(),VE=!0;m5.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"&&VE&&t.data&&t._context.showTips&&(y5.notifier(y5._(t,"Double-click on legend to isolate one trace"),"long"),VE=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,c=(i.shapes||[]).filter(function(Pe){return Pe.showlegend}),v=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,m,x,T,_,b,w={},k=[],M=[],q=[];function E(Pe,Le){var ze=k.indexOf(Pe),Be=w.visible;return Be||(Be=w.visible=[]),k.indexOf(Pe)===-1&&(k.push(Pe),ze=k.length-1),Be[ze]=Le,ze}var D=(i.shapes||[]).map(function(Pe){return Pe._input}),P=!1;function R(Pe,Le){D[Pe].visible=Le,P=!0}function z(Pe,Le){if(!(o.groupTitle&&!s)){var ze=Pe._fullInput||Pe,Be=ze._isShape,Ge=ze.index;Ge===void 0&&(Ge=ze._index);var De=ze.visible===!1?!1:Le;Be?R(Ge,De):E(Ge,De)}}var I=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;y{"use strict";YE.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((PRe,jE)=>{"use strict";var WE=br(),x5=Eh();jE.exports=function(r,t,a){var n=t._inHover,i=x5.isGrouped(t),o=x5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(H,X,j){if(t.visible!==!1&&!(a&&H!==t._id))if(X===""||!x5.isGrouped(t)){var ee="~~i"+c;s.push(ee),l[ee]=[j],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,l[X]=[j]):l[X].push(j)}for(d=0;dR&&(P=R)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var z=function(H,X){return H[0]._groupMinRank-X[0]._groupMinRank||H[0]._preGroupSort-X[0]._preGroupSort},I=function(H,X){return H.trace.legendrank-X.trace.legendrank||H._preSort-X._preSort};for(E.forEach(function(H,X){H[0]._preGroupSort=X}),E.sort(z),d=0;d{"use strict";var K1=Ee();function XE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Tu.formatPiePercent=function(r,t){var a=XE((r*100).toPrecision(3));return K1.numSeparate(a,t)+"%"};Tu.formatPieValue=function(r,t){var a=XE(r.toPrecision(10));return K1.numSeparate(a,t)};Tu.getFirstFilled=function(r,t){if(K1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var zhe=Wr(),Ohe=Tr();JE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?zhe.pointStyle(r,a,n,t):Ohe.fill(r,t.color)}});var ey=N((IRe,eD)=>{"use strict";var KE=Tr(),QE=Q1().castOption,Bhe=$E();eD.exports=function(r,t,a,n){var i=a.marker.line,o=QE(i.color,t.pts)||KE.defaultLine,l=QE(i.width,t.pts)||0;r.call(Bhe,t,a,n).style("stroke-width",l).call(KE.stroke,o)}});var A5=N((zRe,oD)=>{"use strict";var on=Sr(),_5=br(),Xa=Ee(),rD=Xa.strTranslate,$n=Wr(),mi=Tr(),w5=jn().extractOpts,ry=Rn(),Hhe=ey(),Uhe=Q1().castOption,Ghe=b5(),tD=12,aD=5,Au=2,Vhe=10,vc=5;oD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Ghe.itemGap*2)/2,s=rD(l,0),u=function(M,q,E,D){var P;if(M+1)P=M;else if(q&&q.width>0)P=q.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var q=on.select(this),E=Xa.ensureSingle(q,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var I={top:1,bottom:-1}[P],B=I*(.5*(R-z+3))||0,G=a.indentation;E.attr("transform",rD(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 q=nD(M),E=q.showFill,D=q.showLine,P=q.showGradientLine,R=q.showGradientFill,z=q.anyFill,I=q.anyLine,B=M[0],G=B.trace,Y,V,H=w5(G),X=H.colorscale,j=H.reversescale,ee=function(ce){if(ce.size())if(E)$n.fillGroupStyle(ce,t,!0);else{var he="legendfill-"+G.uid;$n.gradient(ce,t,he,T5(j),X,"fill")}},fe=function(ce){if(ce.size()){var he="legendline-"+G.uid;$n.lineGroupStyle(ce),$n.gradient(ce,t,he,T5(j),X,"stroke")}},ie=ry.hasMarkers(G)||!z?"M5,0":I?"M5,-2":"M5,-3",ue=on.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",ie+"h"+o+"v6h-"+o+"z").call(ee),D||P){var we=u(void 0,G.line,Vhe,aD);V=Xa.minExtend(G,{line:{width:we}}),Y=[Xa.minExtend(B,{trace:V})]}var se=ue.select(".legendlines").selectAll("path").data(D||P?[Y]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",ie+(P?"l"+o+",0.0001":"h"+o)).call(D?$n.lineGroupStyle:fe)}function c(M){var q=nD(M),E=q.anyFill,D=q.anyLine,P=q.showLine,R=q.showMarker,z=M[0],I=z.trace,B=!R&&!D&&!E&&ry.hasText(I),G,Y;function V(K,we,se,ce){var he=Xa.nestedProperty(I,K).get(),ye=Xa.isArrayOrTypedArray(he)&&we?we(he):he;if(i&&ye&&ce!==void 0&&(ye=ce),se){if(yese[1])return se[1]}return ye}function H(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var X={},j={};if(R){X.mc=V("marker.color",H),X.mx=V("marker.symbol",H),X.mo=V("marker.opacity",Xa.mean,[.2,1]),X.mlc=V("marker.line.color",H),X.mlw=V("marker.line.width",Xa.mean,[0,5],Au),X.mld=I._isShape?"solid":V("marker.line.dash",H),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Xa.mean,[2,16],tD);X.ms=ee,j.marker.size=ee}P&&(j.line={width:V("line.width",H,[0,10],aD)}),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=[Xa.minExtend(z,X)],Y=Xa.minExtend(I,j),Y.selectedpoints=null,Y.texttemplate=null}var fe=on.select(this).select("g.legendpoints"),ie=fe.selectAll("path.scatterpts").data(R?G:[]);ie.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ie.exit().remove(),ie.call($n.pointStyle,Y,t),R&&(G[0].mrc=3);var ue=fe.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($n.textPointStyle,Y,t)}function v(M){var q=M[0].trace,E=q.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=[];q.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=on.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(z){var I=on.select(this),B=q[z[0]].marker,G=u(void 0,B.line,vc,Au);I.attr("d",z[1]).style("stroke-width",G+"px").call(mi.fill,B.color),G&&I.call(mi.stroke,B.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,q,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=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",I=E?D.visible&&D.type===E:_5.traceIs(D,"bar"),B=on.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(I?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(G){var Y=on.select(this),V=G[0],H=u(V.mlw,P.line,vc,Au);Y.style("stroke-width",H+"px");var X=V.mcc;if(!a._inHover&&"mc"in V){var j=w5(P),ee=j.mid;ee===void 0&&(ee=(j.max+j.min)/2),X=$n.tryColorscale(P,"")(ee)}var fe=X||V.mc||P.color,ie=P.pattern,ue=$n.getPatternAttr,K=ie&&(ue(ie.shape,0,"")||ue(ie.path,0,""));if(K){var we=ue(ie.bgcolor,0,null),se=ue(ie.fgcolor,0,null),ce=ie.fgopacity,he=iD(ie.size,8,10),ye=iD(ie.solidity,.5,1),W="legend-"+D.uid;Y.call($n.pattern,"legend",t,W,K,he,ye,X,ie.fillmode,we,se,ce)}else Y.call(mi.fill,fe);H&&mi.stroke(Y,V.mlc||R.color)})}function m(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&_5.traceIs(q,"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=on.select(this);if((q.boxpoints==="all"||q.points==="all")&&mi.opacity(q.fillcolor)===0&&mi.opacity((q.line||{}).color)===0){var P=Xa.minExtend(q,{marker:{size:i?tD:Xa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call($n.pointStyle,P,t)}else{var R=u(void 0,q.line,vc,Au);D.style("stroke-width",R+"px").call(mi.fill,q.fillcolor),R&&mi.stroke(D,q.line.color)}})}function x(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.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=on.select(this),z=q[P?"increasing":"decreasing"],I=u(void 0,z.line,vc,Au);R.style("stroke-width",I+"px").call(mi.fill,z.fillcolor),I&&mi.stroke(R,z.line.color)})}function T(M){var q=M[0].trace,E=on.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.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=on.select(this),z=q[P?"increasing":"decreasing"],I=u(void 0,z.line,vc,Au);R.style("fill","none").call($n.dashLine,z.line.dash,I),I&&mi.stroke(R,z.line.color)})}function _(M){w(M,this,"pie")}function b(M){w(M,this,"funnelarea")}function w(M,q,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:_5.traceIs(P,E),z=on.select(q).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var I=P.marker||{},B=u(Uhe(I.line.width,D.pts),I.line,vc,Au),G="pieLike",Y=Xa.minExtend(P,{marker:{line:{width:B}}},G),V=Xa.minExtend(D,{trace:Y},G);Hhe(z,V,Y,t)}}function k(M){var q=M[0].trace,E,D=[];if(q.visible)switch(q.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=on.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,z){var I=on.select(this),B=w5(q),G=B.colorscale,Y=B.reversescale,V=function(ee){if(ee.size()){var fe="legendfill-"+q.uid;$n.gradient(ee,t,fe,T5(Y,E==="radial"),G,"fill")}},H;if(G){if(!E){var j=G.length;H=z===0?G[Y?j-1:0][1]:z===1?G[Y?0:j-1][1]:G[Math.floor((j-1)/2)][1]}}else{var X=q.vertexcolor||q.facecolor||q.color;H=Xa.isArrayOrTypedArray(X)?X[z]||X[0]:X}I.attr("d",R[0]),H?I.call(mi.fill,H):I.call(V)})}};function T5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function nD(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 iD(e,r,t){return e&&Xa.isArrayOrTypedArray(e)?r:e>t?t:e}});var q5=N((ORe,pD)=>{"use strict";var bn=Sr(),aa=Ee(),k5=ta(),Mu=br(),ny=vh(),M5=yi(),na=Wr(),Dh=Tr(),ku=Aa(),lD=g5().handleItemClick,sD=g5().handleTitleClick,va=b5(),S5=Oa(),hD=S5.LINE_SPACING,dc=S5.FROM_TL,uD=S5.FROM_BR,fD=ZE(),Yhe=A5(),pc=Eh(),hc=1,Whe=/^legend[0-9]*$/;pD.exports=function(r,t){if(t)cD(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(Whe)&&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(),k5.autoMargin(e,n);var y=aa.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=aa.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),x=aa.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});x.call(Dh.stroke,t.bordercolor).call(Dh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=aa.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=aa.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(na.font,_.font).text(_.text),ay(b,T,e,t,hc),!l&&(t.titleclick||t.titledoubleclick)&&Jhe(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=aa.ensureSingle(y,"rect","scrollbar",function(q){q.attr(va.scrollBarEnterAttrs).call(Dh.fill,va.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(aa.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(q){let E=q[0],D=E.trace;if(E.groupTitle){let P=D.legendgroup,R=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(R).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return Mu.traceIs(D,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){bn.select(this).call(Zhe,e,t)}).call(Yhe,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||bn.select(this).call(Xhe,e,n)}),aa.syncOrAsync([k5.previousPromises,function(){return Qhe(e,k,M,t,T)},function(){var q=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),ve=e._fullData.concat(le).some(function(me){let Ce=me.legend||"legend";var Pe=Array.isArray(Ce)?Ce.includes(n):Ce===n;return Pe&&me.visible===!0});b.style("opacity",ve?1:.5)}if(!l){var R,z;D?R=q.l+q.w*t.x-dc[iy(t)]*t._width:R=a.width*t.x-dc[iy(t)]*t._width,P?z=q.t+q.h*(1-t.y)-dc[oy(t)]*t._effHeight:z=a.height*(1-t.y)-dc[oy(t)]*t._effHeight;var I=e0e(e,n,R,z);if(I)return;if(a.margin.autoexpand){var B=R,G=z;R=D?aa.constrain(R,0,a.width-t._width):B,z=P?aa.constrain(z,0,a.height-t._effHeight):G,R!==B&&aa.log("Constrain "+n+".x to make legend fit inside graph"),z!==G&&aa.log("Constrain "+n+".y to make legend fit inside graph")}na.setTranslate(y,R,z)}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}),na.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*E,height:Y-2*E,x:E,y:E}),na.setClipUrl(T,i,e),na.setRect(w,0,0,0,0),delete t._scrollY}else{var V=Math.max(va.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-V-2*va.scrollBarMargin,X=t._height-t._effHeight,j=H/X,ee=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*E+va.scrollBarWidth+va.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+va.scrollBarWidth+va.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),na.setClipUrl(T,i,e),he(ee,V,j),y.on("wheel",function(){ee=aa.constrain(t._scrollY+bn.event.deltaY/X*H,0,X),he(ee,V,j),ee!==0&&ee!==X&&bn.event.preventDefault()});var fe,ie,ue,K=function(le,ve,me){var Ce=(me-ve)/j+le;return aa.constrain(Ce,0,X)},we=function(le,ve,me){var Ce=(ve-me)/j+le;return aa.constrain(Ce,0,X)},se=bn.behavior.drag().on("dragstart",function(){var le=bn.event.sourceEvent;le.type==="touchstart"?fe=le.changedTouches[0].clientY:fe=le.clientY,ue=ee}).on("drag",function(){var le=bn.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ie=le.changedTouches[0].clientY:ie=le.clientY,ee=K(ue,fe,ie),he(ee,V,j))});w.call(se);var ce=bn.behavior.drag().on("dragstart",function(){var le=bn.event.sourceEvent;le.type==="touchstart"&&(fe=le.changedTouches[0].clientY,ue=ee)}).on("drag",function(){var le=bn.event.sourceEvent;le.type==="touchmove"&&(ie=le.changedTouches[0].clientY,ee=we(ue,fe,ie),he(ee,V,j))});T.call(ce)}function he(le,ve,me){t._scrollY=e._fullLayout[n]._scrollY=le,na.setTranslate(T,0,-le),na.setRect(w,t._width,va.scrollBarMargin+le*me,va.scrollBarWidth,ve),m.select("rect").attr("y",E+le)}if(e._context.edits.legendPosition){var ye,W,Q,Z;y.classed("cursor-move",!0),M5.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==w.node()){var ve=na.getTranslate(y);Q=ve.x,Z=ve.y}},moveFn:function(le,ve){if(Q!==void 0&&Z!==void 0){var me=Q+le,Ce=Z+ve;na.setTranslate(y,me,Ce),ye=M5.align(me,t._width,q.l,q.l+q.w,t.xanchor),W=M5.align(Ce+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ye!==void 0&&W!==void 0){var le={};le[n+".x"]=ye,le[n+".y"]=W,Mu.call("_guiRelayout",e,le)}},clickFn:function(le,ve){var me=o.selectAll("g.traces").filter(function(){var Ce=this.getBoundingClientRect();return ve.clientX>=Ce.left&&ve.clientX<=Ce.right&&ve.clientY>=Ce.top&&ve.clientY<=Ce.bottom});me.size()>0&&dD(e,t,me,le,ve)}})}}],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 dD(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),Mu.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&&lD(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&&lD(t,e,r,s)}}function Zhe(e,r,t){var a=pc.getId(t),n=e.data()[0][0],i=n.trace,o=Mu.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=aa.templateString(u,i._meta))));var c=aa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(na.font,f).text(l?vD(u,s):u);var v=t.indentation+t.itemwidth+va.itemGap*2;ku.positionText(c,v,0),l?c.call(ku.makeEditable,{gd:r,text:u}).call(ay,e,r,t).on("edit",function(d){this.text(vD(d,s)).call(ay,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Mu.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Mu.call("_guiRestyle",r,y,i.index)}):ay(c,e,r,t)}function vD(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 Xhe(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=aa.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Dh.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)),dD(r,l,e,i,bn.event)}}))}function Jhe(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Mu.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=aa.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Dh.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&&sD(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&&sD(r,t,t.titledoubleclick))}))}function ay(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),ku.convertToTspans(e,t,function(){$he(r,t,a,n)})}function $he(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=pc.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===hc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*hD,v,d;if(l){var p=na.bBox(l);v=p.height,d=p.width,a===hc?na.setTranslate(o,u,u+v*.75):na.setTranslate(o,0,v*.25)}else{var y="."+s+(a===hc?"title":"")+"text",m=e.select(y),x=ku.lineCount(m),T=m.node();if(v=c*x,d=T?na.bBox(T).width:0,a===hc)t.title.side==="left"&&(d+=va.itemGap*2),ku.positionText(m,u+va.titlePad,u+c);else{var _=va.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=va.itemGap,d-=t.indentation+t.itemwidth),ku.positionText(m,_,-c*((x-1)/2-.3))}}a===hc?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function Khe(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 Qhe(e,r,t,a,n){var i=e._fullLayout,o=pc.getId(a);a||(a=i[o]);var l=i._size,s=pc.isVertical(a),u=pc.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=va.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,q=x||T||w!=="v"||k!=="paper";M||(M=q?.5:1);let E=q?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=Khe(a);if(s)t.each(function(le){var ve=le[0].height;na.setTranslate(this,c+P[0],c+P[1]+a._height+ve/2+d),a._height+=ve,a._width=Math.max(a._width,le[0].width)}),D=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(le,ve){na.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=iy(a),z=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",B=T||x,G=i.width/2;a._maxWidth=Math.max(z?B&&R==="left"?l.l+l.w:G:I?B&&R==="right"?l.r+l.w:G:l.w,2*p);var Y=0,V=0;t.each(function(le){var ve=ty(le,a,p);Y=Math.max(Y,ve),V+=ve}),D=null;var H=0;if(u){var X=0,j=0,ee=0;r.each(function(){var le=0,ve=0;bn.select(this).selectAll("g.traces").each(function(Ce){var Pe=ty(Ce,a,p),Le=Ce[0].height;na.setTranslate(this,P[0],P[1]+c+d+Le/2+ve),ve+=Le,le=Math.max(le,Pe),b[Ce[0].trace.legendgroup]=le});var me=le+d;j>0&&me+c+j>a._maxWidth?(H=Math.max(H,j),j=0,ee+=X+_,X=ve):X=Math.max(X,ve),na.setTranslate(this,j,ee),j+=me}),a._width=Math.max(H,j)+c,a._height=ee+X+y}else{var fe=t.size(),ie=V+v+(fe-1)*d=a._maxWidth&&(H=Math.max(H,se),K=0,we+=ue,a._height+=ue,ue=0),na.setTranslate(this,P[0]+c+K,P[1]+c+we+ve/2+d),se=K+me+d,K+=Ce,ue=Math.max(ue,ve)}),ie?(a._width=K+v,a._height=ue+y):(a._width=Math.max(H,se)+v,a._height+=ue+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+va.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+va.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ce=e._context.edits,he=ce.legendText||ce.legendPosition;t.each(function(le){var ve=bn.select(this).select("."+o+"toggle"),me=le[0].height,Ce=le[0].trace.legendgroup,Pe=ty(le,a,p);u&&Ce!==""&&(Pe=b[Ce]);var Le=he?p:D||Pe;!s&&!f&&(Le+=d/2),na.setRect(ve,0,-me/2,Le,me)});var ye=n.select("."+o+"titletext");ye.node()&&jhe(ye,a,c);var W=n.select("."+o+"titletoggle");if(W.size()&&ye.node()){var Q=ye.attr("x")||0,Z=va.titlePad;na.setRect(W,Q-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function e0e(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 k5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*dc[o],r:i._width*uD[o],b:i._effHeight*uD[l],t:i._effHeight*dc[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 aa.isRightAnchor(e)?"right":aa.isCenterAnchor(e)?"center":"left"}function oy(e){return aa.isBottomAnchor(e)?"bottom":aa.isMiddleAnchor(e)?"middle":"top"}});var D5=N(E5=>{"use strict";var Su=Sr(),ml=Rr(),yD=Sn(),Vt=Ee(),r0e=Vt.pushUnique,L5=Vt.strTranslate,t0e=Vt.strRotate,a0e=vh(),gi=Aa(),n0e=HE(),No=Wr(),ka=Tr(),ly=yi(),Io=Ir(),i0e=xa().zindexSeparator,mc=br(),oo=Co(),qu=eh(),o0e=p5(),l0e=q5(),AD=qu.YANGLE,C5=Math.PI*AD/180,s0e=1/Math.sin(C5),u0e=Math.cos(C5),f0e=Math.sin(C5),Rt=qu.HOVERARROWSIZE,Vr=qu.HOVERTEXTPAD,mD={box:!0,ohlc:!0,violin:!0,candlestick:!0},c0e={scatter:!0,scattergl:!0,splom:!0};function gD(e,r){return e.distance-r.distance}E5.hover=function(r,t,a,n){r=Vt.getGraphDiv(r);var i=t.target;Vt.throttle(r._fullLayout._uid+qu.HOVERID,qu.HOVERMINTIME,function(){v0e(r,t,a,n,i)})};E5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=LD(n),o=CD(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),q=Math.min(_,b),E=Math.max(_,b),D=m.trace;if(mc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,q+=z,E+=z}w.bbox={x0:k+o,x1:M+o,y0:q+i,y1:E+i},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=kD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ka.background,container:Su.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>q[0]._length)return ly.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=Z+q[0]._offset,"xval"in r?G=oo.flat(i,r.xval):G=oo.p2c(M,Q),"yval"in r?Y=oo.flat(i,r.yval):Y=oo.p2c(q,Z),!ml(G[0])||!ml(Y[0]))return Vt.warn("Fx.hover failed",r,e),ly.unhoverRaw(e,r)}var me=1/0;function Ce(dr,yt){for(H=0;Hse&&(I.splice(0,se),me=I[0].distance),c&&z!==0&&I.length===0){we.distance=z,we.index=!1;var Gr=j._module.hoverPoints(we,ue,K,"closest",{hoverLayer:l._hoverlayer});if(Gr&&(Gr=Gr.filter(function(Nt){return Nt.spikeDistance<=z})),Gr&&Gr.length){var Bt,rn=Gr.filter(function(Nt){return Nt.xa.showspikes&&Nt.xa.spikesnap!=="hovered data"});if(rn.length){var jt=rn[0];ml(jt.x0)&&ml(jt.y0)&&(Bt=Le(jt),(!ce.vLinePoint||ce.vLinePoint.spikeDistance>Bt.spikeDistance)&&(ce.vLinePoint=Bt))}var dn=Gr.filter(function(Nt){return Nt.ya.showspikes&&Nt.ya.spikesnap!=="hovered data"});if(dn.length){var pn=dn[0];ml(pn.x0)&&ml(pn.y0)&&(Bt=Le(pn),(!ce.hLinePoint||ce.hLinePoint.spikeDistance>Bt.spikeDistance)&&(ce.hLinePoint=Bt))}}}}}Ce();function Pe(dr,yt,Zr){for(var $r=null,mt=1/0,Lt,Gr=0;Grdr.trace.index===Te.trace.index):I=[Te];var qe=I.length,He=TD("x",Te,l),Je=TD("y",Te,l);Ce(He,Je);var Ve=[],Ze={},or=0,rr=function(dr){var yt=mD[dr.trace.type]?MD(dr):dr.trace.index;if(!Ze[yt])or++,Ze[yt]=or,Ve.push(dr);else{var Zr=Ze[yt]-1,$r=Ve[Zr];Zr>0&&Math.abs(dr.distance)qe-1;Ke--)rr(I[Ke]);I=Ve,De()}var Ie=e._hoverdata,ne=[],de=LD(e),Re=CD(e);for(let dr of I){var Fe=oo.makeEventData(dr,dr.trace,dr.cd);if(dr.hovertemplate!==!1){var Qe=!1;dr.cd[dr.index]&&dr.cd[dr.index].ht&&(Qe=dr.cd[dr.index].ht),dr.hovertemplate=Qe||dr.trace.hovertemplate||!1}if(dr.xa&&dr.ya){var fr=dr.x0+dr.xa._offset,sr=dr.x1+dr.xa._offset,kr=dr.y0+dr.ya._offset,zr=dr.y1+dr.ya._offset,Yr=Math.min(fr,sr),et=Math.max(fr,sr),qt=Math.min(kr,zr),ft=Math.max(kr,zr);Fe.bbox={x0:Yr+Re,x1:et+Re,y0:qt+de,y1:ft+de}}dr.eventData=[Fe],ne.push(Fe)}e._hoverdata=ne;var Ft=v==="y"&&(B.length>1||I.length>1)||v==="closest"&&he&&I.length>1,Tt=ka.combine(l.plot_bgcolor||ka.background,l.paper_bgcolor),pa=kD(I,{gd:e,hovermode:v,rotateLabels:Ft,bgColor:Tt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),$t=pa.hoverLabels;if(oo.isUnifiedHover(v)||(d0e($t,Ft,l,pa.commonLabelBoundingBox),qD($t,Ft,l._invScaleX,l._invScaleY)),n&&n.tagName){var sa=mc.getComponentMethod("annotations","hasClickToShow")(e,ne);n0e(Su.select(n),sa?"pointer":"")}!n||a||!m0e(e,r,Ie)||(Ie&&e.emit("plotly_unhover",{event:r,points:Ie}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:q,xvals:G,yvals:Y}))}function MD(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 h0e=/([\s\S]*)<\/extra>/;function kD(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||qu.HOVERFONT,c=r.fontSize||qu.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 q=0;qa.width-de&&(Re=a.width-de),Te.attr("d","M"+(Ke-Re)+",0L"+(Ke-Re+Rt)+","+ne+Rt+"H"+de+"v"+ne+(Vr*2+rr.height)+"H"+-de+"V"+ne+Rt+"H"+(Ke-Re-Rt)+"Z"),Ke=Re,H.minX=Ke-de,H.maxX=Ke+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,Qe,fr;b.side==="right"?(Fe="start",Qe=1,fr="",Ke=_._offset+_._length):(Fe="end",Qe=-1,fr="-",Ke=_._offset),Ie=b._offset+(T.y0+T.y1)/2,qe.attr("text-anchor",Fe),Te.attr("d","M0,0L"+fr+Rt+","+Rt+"V"+(Vr+rr.height/2)+"h"+fr+(Vr*2+rr.width)+"V-"+(Vr+rr.height/2)+"H"+fr+Rt+"V-"+Rt+"Z"),H.minY=Ie-(Vr+rr.height/2),H.maxY=Ie+(Vr+rr.height/2),b.side==="right"?(H.minX=Ke+Rt,H.maxX=Ke+Rt+(Vr*2+rr.width)):(H.minX=Ke-Rt-(Vr*2+rr.width),H.maxX=Ke-Rt);var sr=rr.height/2,kr=D-rr.top-sr,zr="clip"+a._uid+"commonlabel"+b._id,Yr;if(KeTe.hoverinfo!=="none");if(Ne.length===0)return[];var X=a.hoverlabel,j=X.font,ee=Ne[0],fe=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,ie=fe?Vt.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:fe}):M,ue={showlegend:!0,legend:{title:{text:ie,font:j},font:j,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:j};o0e(ue,K,t._fullData);var we=K.legend;we.entries=[];for(var se=0;se=0?Ae=De:Oe+ve=0?Ae=Oe:Ue+ve=0?Xe=Be:Ge+me=0?Xe=Ge:oe+me=0,(Ne.idealAlign==="top"||!ft)&&Ft?(fr-=kr/2,Ne.anchor="end"):ft?(fr+=kr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=fr;else{if(Ne.pos=fr,ft=Qe+sr/2+qt<=P,Ft=Qe-sr/2-qt>=0,(Ne.idealAlign==="left"||!ft)&&Ft)Qe-=sr/2,Ne.anchor="end";else if(ft)Qe+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var Tt=qt/2,pa=Qe+Tt-P,$t=Qe-Tt;pa>0&&(Qe-=pa),$t<0&&(Qe+=-$t)}Ne.crossPos=Qe}Ie.attr("text-anchor",Ne.anchor),de&&ne.attr("text-anchor",Ne.anchor),Te.attr("transform",L5(Qe,fr)+(i?t0e(AD):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function bD(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=Vt.templateString(e.name,e.trace._meta)),o=wD(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=Vt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(h0e,(p,y)=>(o=wD(y,e.nameLength),""))}return[l,o]}function d0e(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 j=0,ee=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var fe=SD(G,r),ie=G.anchor,ue=ie==="end"?-1:1,K,we;if(ie==="middle")K=G.crossPos+(H?m(fe.y-G.by/2):y(G.bx/2+G.tx2width/2)),we=K+(H?m(G.by):y(G.bx));else if(H)K=G.crossPos+m(Rt+fe.y)-m(G.by/2-Rt),we=K+m(G.by);else{var se=y(ue*Rt+fe.x),ce=se+y(ue*G.bx);K=G.crossPos+Math.min(se,ce),we=G.crossPos+Math.max(se,ce)}H?d!==void 0&&p!==void 0&&Math.min(we,p)-Math.max(K,d)>1&&(V.side==="left"?(j=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(we,v)-Math.max(K,c)>1&&(V.side==="top"?(j=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?s0e:1)/2,pmin:j,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 q(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(q)}for(b=u.length-1;b>=0;b--){var z=u[b];for(w=z.length-1;w>=0;w--){var I=z[w],B=I.datum;B.offset=I.dp,B.del=I.del}}}function SD(e,r){var t=0,a=e.offset;return r&&(a*=-f0e,t=e.offset*u0e),{x:t,y:a}}function p0e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Rt+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 qD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Su.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=p0e(o),v=SD(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*Rt+d)+","+i(Rt+p)+"v"+i(o.by/2-Rt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Rt+d)+"V"+i(p-Rt)+"Z":x="M"+n(f*Rt+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(gi.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(gi.positionText,n(c.text2ShiftX+c.alignShift*Vr+d),i(p+o.ty0-o.by/2+Vr)),l.select("rect").call(No.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 y0e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||ml(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Vt.castOption(n,t,v);return o(p)?p:Vt.extractOption({},a,"",d)}:function(v,d){return Vt.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=Vt.constrain(e.x0,0,e.xa._length),e.x1=Vt.constrain(e.x1,0,e.xa._length),e.y0=Vt.constrain(e.y0,0,e.ya._length),e.y1=Vt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Io.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:Io.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=Io.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Io.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=Io.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Io.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 xD(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=yD.readability(v.color,c)<1.5?ka.contrast(c):v.color,x=f.spikemode,T=f.spikethickness,_=f.spikecolor||m,b=Io.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,q=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),q=Math.max(q,f.position)),w=i.l+M*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":No.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 z=yD.readability(E.color,c)<1.5?ka.contrast(c):E.color,I=u.spikemode,B=u.spikethickness,G=u.spikecolor||z,Y=Io.getPxPosition(e,u),V,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(V=Y,H=P),I.indexOf("across")!==-1){var X=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),j=Math.max(j,u.position)),V=i.t+(1-j)*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":No.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)}I.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 m0e(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 _D(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function wD(e,r){return gi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function g0e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,CD=e=>e.offsetLeft+e.clientLeft;function yc(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Vt.apply3DTransform(t._invTransform)(n,i),u=Vt.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((HRe,ED)=>{"use strict";var b0e=Ee(),x0e=Tr(),_0e=Co().isUnifiedHover;ED.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&&_0e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=x0e.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),b0e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var RD=N((URe,DD)=>{"use strict";var w0e=Ee(),T0e=sy(),A0e=Pf();DD.exports=function(r,t){function a(n,i){return w0e.coerce(r,t,A0e,n,i)}T0e(r,t,a)}});var ND=N((GRe,FD)=>{"use strict";var PD=Ee(),M0e=Cp(),k0e=sy();FD.exports=function(r,t,a,n){function i(l,s){return PD.coerce(r,t,M0e,l,s)}var o=PD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),k0e(r,t,i,o)}});var R5=N((VRe,ID)=>{"use strict";var S0e=Ee(),q0e=Pf();ID.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:S0e.coerce(r,t,q0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var BD=N((YRe,OD)=>{"use strict";var zD=Ee(),L0e=Pf(),C0e=R5(),E0e=sy();OD.exports=function(r,t){function a(f,c){return zD.coerce(r,t,L0e,f,c)}var n=C0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),E0e(r,t,a),zD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var GD=N((WRe,UD)=>{"use strict";var P5=Ee(),HD=br();UD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return P5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var R0e=br(),P0e=D5().hover;VD.exports=function(r,t,a){var n=R0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&P0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Pn=N((ZRe,ZD)=>{"use strict";var F0e=Sr(),uy=Ee(),N0e=yi(),Rh=Co(),WD=Pf(),jD=D5();ZD.exports={moduleType:"component",name:"fx",constants:eh(),schema:{layout:WD},attributes:Cp(),layoutAttributes:WD,supplyLayoutGlobalDefaults:RD(),supplyDefaults:ND(),supplyLayoutDefaults:BD(),calc:GD(),getDistanceFunction:Rh.getDistanceFunction,getClosest:Rh.getClosest,inbox:Rh.inbox,quadrature:Rh.quadrature,appendArrayPointValue:Rh.appendArrayPointValue,castHoverOption:z0e,castHoverinfo:O0e,hover:jD.hover,unhover:N0e.unhover,loneHover:jD.loneHover,loneUnhover:I0e,click:YD()};function I0e(e){var r=uy.isD3Selection(e)?e:F0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function z0e(e,r,t){return uy.castOption(e,r,"hoverlabel."+t)}function O0e(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(gl=>{"use strict";gl.selectMode=function(e){return e==="lasso"||e==="select"};gl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};gl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};gl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};gl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};gl.selectingOrDrawing=function(e){return gl.freeMode(e)||gl.rectMode(e)}});var fy=N((JRe,XD)=>{"use strict";XD.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(($Re,JD)=>{"use strict";JD.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((KRe,$D)=>{"use strict";var vy=32;$D.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((QRe,QD)=>{"use strict";var B0e=Ee().strTranslate;function KD(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 H0e(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 U0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return KD(e,t[r])}}function G0e(e){return B0e(e.xaxis._offset,e.yaxis._offset)}QD.exports={p2r:KD,r2p:H0e,axValue:U0e,getTransform:G0e}});var fs=N(bl=>{"use strict";var V0e=Tx(),tR=hy(),gc=tR.CIRCLE_SIDES,F5=tR.SQRT2,aR=dy(),eR=aR.p2r,rR=aR.r2p,Y0e=[0,3,4,5,6,1,2],W0e=[0,3,4,1,2];bl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var nR=ua(),uR=Lu(),j0e=uR.drawMode,Z0e=uR.openMode,bc=hy(),iR=bc.i000,oR=bc.i090,lR=bc.i180,sR=bc.i270,X0e=bc.cos45,J0e=bc.sin45,fR=dy(),yy=fR.p2r,cs=fR.r2p,$0e=rs(),K0e=$0e.clearOutline,my=fs(),Q0e=my.readPaths,ede=my.writePaths,rde=my.ellipseOver,tde=my.fixDatesForPaths;function ade(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(!j0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var nde=Lu(),ide=nde.selectMode,ode=rs(),lde=ode.clearOutline,N5=fs(),sde=N5.readPaths,ude=N5.writePaths,fde=N5.fixDatesForPaths;hR.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(!ide(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";dR.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(Ua=>{"use strict";var zo=Fh(),pR=Ee(),vs=Ir();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(zo.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(zo.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ua.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=Ua.shapePositionToRange(r);o=function(s){var u=xl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ua.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};Ua.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=Ua.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};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=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,z){var I;if(D)if(P==="domain")z?I=function(B){return D._offset+D._length*(1-B)}:I=function(B){return D._offset+D._length*B};else{let B=Ua.shapePositionToRange(D);I=function(G){return D._offset+D.r2p(B(G,!0))},R==="path"&&D.type==="date"&&(I=Ua.decodeDate(I))}else z?I=function(B){return i.t+i.h*(1-B)}:I=function(B){return i.l+i.w*B};return I}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 cde(r,v,d);if(a==="array")s=xl(o[0],r.x0shift),u=xl(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=xl(o,r.x0shift),u=xl(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=xl(l[0],r.y0shift),c=xl(l[1],r.y1shift),m=d[0](r.y0)+f,x=d[1](r.y1)+c;else if(f=xl(l,r.y0shift),c=xl(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,q=_+w+","+b,E=_+","+(b-k);return"M"+q+M+" 0 1,1 "+E+M+" 0 0,1 "+q+"Z"};function cde(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(zo.segmentRE,function(v){var d=0,p=v.charAt(0),y=zo.paramIsX[p],m=zo.paramIsY[p],x=zo.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(zo.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.*/,""),pR.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}function xl(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 O5=N((iPe,gR)=>{"use strict";var vde=Ee(),Oo=Ir(),yR=Aa(),mR=Wr(),hde=fs().readPaths,z5=hs(),dde=z5.getPathString,Nh=Op(),pde=Oa().FROM_TL;gR.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=Oo.getFromId(r,a.xref),s=Oo.getFromId(r,a.yref);let j=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in Nh){var f=typeof Nh[u]=="function",c=!j||Nh.simpleXVariables.includes(u),v=!ee||Nh.simpleYVariables.includes(u);if(f&&c&&v){var d=Nh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=vde.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=dde(r,a),q=hde(M,r);_=1/0,w=1/0,b=-1/0,k=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function mde(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 gde=Ee(),bde=gde.strTranslate,bR=yi(),wR=Lu(),xde=wR.drawMode,TR=wR.selectMode,AR=br(),xR=Tr(),by=hy(),_de=by.i000,wde=by.i090,Tde=by.i180,Ade=by.i270,Mde=rs(),MR=Mde.clearOutlineControllers,H5=fs(),Ih=H5.pointsOnRectangle,B5=H5.pointsOnEllipse,kde=H5.writePaths,Sde=gy().newShapes,qde=gy().createShapeObj,Lde=I5(),Cde=O5();kR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(B5(r[0])||Ih(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=Sde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Lde(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&AR.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=xde(f),v=TR(f);(c||v)&&(i._fullLayout._outlining=!0),MR(i),t.attr("d",kde(r));var d,p,y,m,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Ede([],r);var T=u.append("g").attr("class","outline-controllers");D(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),b=qde(t,a,a.dragmode);Cde(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],j=r[y],ee=j.length;if(Ih(j)){var fe=Y,ie=V;if(a.isActiveSelection){var ue=_R(j,m);ue[1]===j[m][1]?ie=0:fe=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];!Ih(H)&&!B5(H)&&q()}}function D(Y){d=[];for(var V=0;V{"use strict";var Rde=Sr(),ER=br(),G5=Ee(),Cu=Ir(),Pde=fs().readPaths,Fde=xy(),wy=O5(),DR=rs().clearOutlineControllers,U5=Tr(),Ty=Wr(),Nde=_t().arrayEditor,SR=yi(),qR=ss(),Eu=Fh(),Fn=hs(),V5=Fn.getPathString;FR.exports={draw:Y5,drawOne:RR,eraseActiveShape:Bde,drawLabel:wy};function Y5(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;nCu.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 zde(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,q,E,D,P,R=Rde.select(r.node().parentNode),z=Cu.getFromId(e,t.xref),I=Cu.getRefType(t.xref),B=Cu.getFromId(e,t.yref),G=Cu.getRefType(t.yref),Y=t.x0shift,V=t.x1shift,H=t.y0shift,X=t.y1shift,j=function(Pe,Le){var ze=Fn.getDataToPixel(e,z,Le,!1,I);return ze(Pe)},ee=function(Pe,Le){var ze=Fn.getDataToPixel(e,B,Le,!0,G);return ze(Pe)},fe=Fn.getPixelToData(e,z,!1,I),ie=Fn.getPixelToData(e,B,!0,G),ue=se(),K={element:ue.node(),gd:e,prepFn:ye,doneFn:W,clickFn:Q},we;SR.init(K),ue.node().onmousemove=he;function se(){return f?ce():r}function ce(){var Pe=10,Le=Math.max(t.line.width,Pe),ze=n.append("g").attr("data-index",a).attr("drag-helper",!0);ze.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Be={"fill-opacity":"0"},Ge=Math.max(Le/2,Pe);return ze.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,Y),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,H),r:Ge}).style(Be).classed("cursor-grab",!0),ze.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,X),r:Ge}).style(Be).classed("cursor-grab",!0),ze}function he(Pe){if(_y(e)){we=null;return}if(f)Pe.target.tagName==="path"?we="move":we=Pe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=K.element.getBoundingClientRect(),ze=Le.right-Le.left,Be=Le.bottom-Le.top,Ge=Pe.clientX-Le.left,De=Pe.clientY-Le.top,Oe=!c&&ze>o&&Be>l&&!Pe.shiftKey?SR.getCursor(Ge/ze,1-De/Be):"move";qR(r,Oe),we=Oe.split("-")[0]}}function ye(Pe){_y(e)||(s&&(x=j(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:ee(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:ee(t.y1)),dm?(_=p,M="y0",b=m,q="y1"):(_=m,M="y1",b=p,q="y0"),he(Pe),ve(n,t),Ce(r,t,e),K.moveFn=we==="move"?Z:le,K.altKey=Pe.altKey)}function W(){_y(e)||(qR(r),me(n),PR(r,e,t),ER.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){_y(e)||me(n)}function Z(Pe,Le){if(t.type==="path"){var ze=function(De){return De},Be=ze,Ge=ze;s?v("xanchor",t.xanchor=fe(x+Pe)):(Be=function(Oe){return fe(j(Oe)+Pe)},z&&z.type==="date"&&(Be=Fn.encodeDate(Be))),u?v("yanchor",t.yanchor=ie(T+Le)):(Ge=function(Oe){return ie(ee(Oe)+Le)},B&&B.type==="date"&&(Ge=Fn.encodeDate(Ge))),v("path",t.path=LR(P,Be,Ge))}else s?v("xanchor",t.xanchor=fe(x+Pe)):(v("x0",t.x0=fe(d+Pe)),v("x1",t.x1=fe(y+Pe))),u?v("yanchor",t.yanchor=ie(T+Le)):(v("y0",t.y0=ie(p+Le)),v("y1",t.y1=ie(m+Le)));r.attr("d",V5(e,t)),ve(n,t),wy(e,a,t,R)}function le(Pe,Le){if(c){var ze=function(Ze){return Ze},Be=ze,Ge=ze;s?v("xanchor",t.xanchor=fe(x+Pe)):(Be=function(or){return fe(j(or)+Pe)},z&&z.type==="date"&&(Be=Fn.encodeDate(Be))),u?v("yanchor",t.yanchor=ie(T+Le)):(Ge=function(or){return ie(ee(or)+Le)},B&&B.type==="date"&&(Ge=Fn.encodeDate(Ge))),v("path",t.path=LR(P,Be,Ge))}else if(f){if(we==="resize-over-start-point"){var De=d+Pe,Oe=u?p-Le:p+Le;v("x0",t.x0=s?De:fe(De)),v("y0",t.y0=u?Oe:ie(Oe))}else if(we==="resize-over-end-point"){var Ue=y+Pe,oe=u?m-Le:m+Le;v("x1",t.x1=s?Ue:fe(Ue)),v("y1",t.y1=u?oe:ie(oe))}}else{var Ae=function(Ze){return we.indexOf(Ze)!==-1},Xe=Ae("n"),hr=Ae("s"),Ne=Ae("w"),Te=Ae("e"),qe=Xe?_+Le:_,He=hr?b+Le:b,Je=Ne?w+Pe:w,Ve=Te?k+Pe:k;u&&(Xe&&(qe=_-Le),hr&&(He=b-Le)),(!u&&He-qe>l||u&&qe-He>l)&&(v(M,t[M]=u?qe:ie(qe)),v(q,t[q]=u?He:ie(He))),Ve-Je>o&&(v(E,t[E]=s?Je:fe(Je)),v(D,t[D]=s?Ve:fe(Ve)))}r.attr("d",V5(e,t)),ve(n,t),wy(e,a,t,R)}function ve(Pe,Le){(s||u)&&ze();function ze(){var Be=Le.type!=="path",Ge=Pe.selectAll(".visual-cue").data([0]),De=1;Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Oe=j(s?Le.xanchor:G5.midRange(Be?[Le.x0,Le.x1]:Fn.extractPathCoords(Le.path,Eu.paramIsX))),Ue=ee(u?Le.yanchor:G5.midRange(Be?[Le.y0,Le.y1]:Fn.extractPathCoords(Le.path,Eu.paramIsY)));if(Oe=Fn.roundPositionForSharpStrokeRendering(Oe,De),Ue=Fn.roundPositionForSharpStrokeRendering(Ue,De),s&&u){var oe="M"+(Oe-1-De)+","+(Ue-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",oe)}else if(s){var Ae="M"+(Oe-1-De)+","+(Ue-9-De)+"v18 h2 v-18 Z";Ge.attr("d",Ae)}else{var Xe="M"+(Oe-9-De)+","+(Ue-1-De)+"h18 v2 h-18 Z";Ge.attr("d",Xe)}}}function me(Pe){Pe.selectAll(".visual-cue").remove()}function Ce(Pe,Le,ze){var Be=Le.xref,Ge=Le.yref,De=Cu.getFromId(ze,Be),Oe=Cu.getFromId(ze,Ge),Ue="";Be!=="paper"&&!De.autorange&&(Ue+=Be),Ge!=="paper"&&!Oe.autorange&&(Ue+=Ge),Ty.setClipUrl(Pe,Ue?"clip"+ze._fullLayout._uid+Ue:null,ze)}}function LR(e,r,t){return e.replace(Eu.segmentRE,function(a){var n=0,i=a.charAt(0),o=Eu.paramIsX[i],l=Eu.paramIsY[i],s=Eu.numParams[i],u=a.slice(1).replace(Eu.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Ode(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){CR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=CR,Y5(e)}}}function CR(e){if(Ay(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(DR(e),delete e._fullLayout._activeShapeIndex,Y5(e))}}function Bde(e){if(Ay(e)){DR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var bi=br(),NR=ta(),IR=ua(),Xr=cy(),Hde=My().eraseActiveShape,ky=Ee(),Hr=ky._,Jr=VR.exports={};Jr.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:Xr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};ky.notifier(Hr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),bi.call("downloadImage",e,t).then(function(a){ky.notifier(Hr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){ky.notifier(Hr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Jr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:Xr.disk,click:function(e){NR.sendDataToCloud(e)}};Jr.editInChartStudio={name:"editInChartStudio",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:Xr.pencil,click:function(e){NR.sendDataToCloud(e)}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Hr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Xr.zoombox,click:ln};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Hr(e,"Pan")},attr:"dragmode",val:"pan",icon:Xr.pan,click:ln};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Hr(e,"Box Select")},attr:"dragmode",val:"select",icon:Xr.selectbox,click:ln};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Hr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Xr.lasso,click:ln};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Hr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Xr.drawclosedpath,click:ln};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Hr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Xr.drawopenpath,click:ln};Jr.drawline={name:"drawline",title:function(e){return Hr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Xr.drawline,click:ln};Jr.drawrect={name:"drawrect",title:function(e){return Hr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Xr.drawrect,click:ln};Jr.drawcircle={name:"drawcircle",title:function(e){return Hr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Xr.drawcircle,click:ln};Jr.eraseshape={name:"eraseshape",title:function(e){return Hr(e,"Erase active shape")},icon:Xr.eraseshape,click:Hde};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Hr(e,"Zoom in")},attr:"zoom",val:"in",icon:Xr.zoom_plus,click:ln};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Hr(e,"Zoom out")},attr:"zoom",val:"out",icon:Xr.zoom_minus,click:ln};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Hr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Xr.autoscale,click:ln};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Hr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Xr.home,click:ln};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Hr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Xr.tooltip_basic,gravity:"ne",click:ln};Jr.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:Xr.tooltip_compare,gravity:"ne",click:ln};function ln(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=IR.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 YR=Z5(),Vde=Object.keys(YR),WR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],jR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(WR),_c=[],Yde=function(e){if(jR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();_c.indexOf(r)===-1&&_c.push(r),_c.indexOf(t)===-1&&_c.push(t)}};Vde.forEach(function(e){Yde(YR[e])});_c.sort();ZR.exports={DRAW_MODES:WR,backButtons:jR,foreButtons:_c}});var J5=N((cPe,XR)=>{"use strict";var fPe=X5();XR.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 $R=N((vPe,JR)=>{"use strict";var Wde=Ee(),zh=Tr(),jde=_t(),Zde=J5();JR.exports=function(r,t){var a=r.modebar||{},n=jde.newContainer(t,"modebar");function i(l,s){return Wde.coerce(a,n,Zde,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 rP=N((hPe,eP)=>{"use strict";var $5=Sr(),Xde=Rr(),qy=Ee(),KR=cy(),Jde=gp().version,$de=new DOMParser;function QR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Bo=QR.prototype;Bo.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(),qy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Bo.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)})};Bo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Bo.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&&$5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||KR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Bo.createIcon=function(e){var r=Xde(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=$de.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Bo.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=$5.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:qy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Bo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var epe=ua(),tP=Rn(),K5=br(),rpe=Co().isUnifiedHover,tpe=rP(),Ly=Z5(),ape=X5().DRAW_MODES,npe=Ee().extendDeep;aP.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=fpe(i):!a.displayModeBar&&a.watermark?o=[]:o=ipe(r),n?n.update(r,o):t._modeBar=tpe(r,o)};function ipe(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,j=H._cat||H.name;if(X===V||j===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"),(spe(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"]),lpe(t)&&R.push("select2d","lasso2d");var z=[],I=function(V){z.indexOf(V)===-1&&D.indexOf(V)!==-1&&z.push(V)};if(Array.isArray(l)){for(var B=[],G=0;G{"use strict";iP.exports={moduleType:"component",name:"modebar",layoutAttributes:J5(),supplyLayoutDefaults:$R(),manage:nP()}});var e_=N((yPe,oP)=>{"use strict";var cpe=Oa().FROM_BL;oP.exports=function(r,t,a){a===void 0&&(a=cpe[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 Ru=N(Oh=>{"use strict";var Du=Ee(),r_=_h(),lo=ua().id2name,vpe=di(),lP=e_(),hpe=lc(),dpe=zt().ALMOST_EQUAL,ppe=Oa().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 mpe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;odpe*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 Ey=Sr(),sn=br(),Kn=ta(),xi=Ee(),n_=Aa(),i_=fy(),Bh=Tr(),wc=Wr(),cP=oc(),yP=Q5(),Hh=Ir(),_l=Oa(),mP=Ru(),gpe=mP.enforce,bpe=mP.clean,vP=_h().doAutoRange,gP="start",xpe="middle",bP="end",_pe=xa().zindexSeparator;Sa.layoutStyles=function(e){return xi.syncOrAsync([Kn.doAutoMargin,Tpe],e)};function wpe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Tpe(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(wc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Sa.drawMainTitle(e),yP.manage(e),!r._has("cartesian"))return Kn.previousPromises(e);function c(ye,W,Q){var Z=ye._lw/2;if(ye._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-Z}else return t.t+t.h*(1-(ye.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*(ye.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){Spe(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:pP(r.yanchor)}).call(n_.positionText,o,i);var f=(r.text.match(n_.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=Ey.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+cP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:pP(r.yanchor)}).call(n_.positionText,o,y)}}}};function Ape(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=xi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return xi.isTopAnchor(r)&&t==="t"||xi.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=Mpe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Spe(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"&&Ape(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Kn.allowAutoMargin(e,n),Kn.autoMargin(e,n,l)}function qpe(e,r){var t=e.title,a=e._size,n=0;switch(r===gP?n=t.pad.l:r===bP&&(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 Lpe(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 pP(e){return e==="top"?_l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":_l.MID_SHIFT+"em"}function Cpe(e){var r=e.title,t=xpe;return xi.isRightAnchor(r)?t=bP:xi.isLeftAnchor(r)&&(t=gP),t}function Epe(e){var r=e.title,t="0em";return xi.isTopAnchor(r)?t=_l.CAP_SHIFT+"em":xi.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 Dpe=fs().readPaths,Rpe=xy(),xP=rs().clearOutlineControllers,o_=Tr(),_P=Wr(),Ppe=_t().arrayEditor,wP=hs(),Fpe=wP.getPathString;AP.exports={draw:Ry,drawOne:TP,activateLastSelection:zpe};function Ry(e){var r=e._fullLayout;xP(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(o_.stroke,c).call(o_.fill,f).call(_P.dashLine,m?"solid":d,m?4+v:v);if(Npe(x,e,a),p){var T=Ppe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=Dpe(l,e);Rpe(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 Ipe(e,w)})}}function Npe(e,r,t){var a=t.xref+t.yref;_P.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Ipe(e,r){if(Py(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){l_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=l_,Ry(e)}}}function zpe(e){if(Py(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=l_,Ry(e)}}function l_(e){if(Py(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(xP(e),delete e._fullLayout._activeSelectionIndex,Ry(e))}}});var kP=N((xPe,MP)=>{function Ope(){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}MP.exports=Ope});var qP=N((_Pe,SP)=>{function Bpe(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}SP.exports=Bpe});var CP=N((wPe,LP)=>{var Hpe={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}};LP.exports=Hpe});var DP=N((TPe,EP)=>{var Uh=CP();function Upe(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,j=V.start,ee=V.end;t&&t.checkIntersection(Y,V);var fe=r.linesIntersect(H,X,j,ee);if(fe===!1){if(!r.pointsCollinear(H,X,j)||r.pointsSame(H,ee)||r.pointsSame(X,j))return!1;var ie=r.pointsSame(H,j),ue=r.pointsSame(X,ee);if(ie&&ue)return G;var K=!ie&&r.pointBetween(H,j,ee),we=!ue&&r.pointBetween(X,j,ee);if(ie)return we?v(G,X):v(B,ee),G;K&&(ue||(we?v(G,X):v(B,ee)),v(G,H))}else fe.alongA===0&&(fe.alongB===-1?v(B,j):fe.alongB===0?v(B,fe.pt):fe.alongB===1&&v(B,ee)),fe.alongB===0&&(fe.alongA===-1?v(G,H):fe.alongA===0?v(G,fe.pt):fe.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 q?_(w,q):!1};var I=B;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,q?q.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,q?w.seg.myFill.below=q.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;q?w.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=w.primary?y:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,q?q.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 z=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=z}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 Gpe(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(I,B,G){return f.index=I,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 Vpe={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)}};FP.exports=Vpe});var zP=N((kPe,IP)=>{var Ype={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 Wpe=kP(),jpe=qP(),OP=DP(),Zpe=PP(),Vh=NP(),BP=zP(),_i=!1,Yh=jpe(),Nn;Nn={buildLog:function(e){return e===!0?_i=Wpe():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return Yh.epsilon(e)},segments:function(e){var r=OP(!0,Yh,_i);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=OP(!1,Yh,_i);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,_i),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Vh.intersect(e.combined,_i),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Vh.difference(e.combined,_i),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Vh.differenceRev(e.combined,_i),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Vh.xor(e.combined,_i),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Zpe(e.segments,Yh,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return BP.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return BP.fromPolygon(Nn,Yh,e)},union:function(e,r){return Wh(e,r,Nn.selectUnion)},intersect:function(e,r){return Wh(e,r,Nn.selectIntersect)},difference:function(e,r){return Wh(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Wh(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Wh(e,r,Nn.selectXor)}};function Wh(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),o=t(i);return Nn.polygon(o)}typeof window=="object"&&(window.PolyBool=Nn);HP.exports=Nn});var VP=N((qPe,GP)=>{GP.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 f_=N((LPe,YP)=>{"use strict";var u_=Np().dot,Fy=zt().BADNUM,Ny=YP.exports={};Ny.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===Fy||xo||y&&u(p))}function c(p,y){var m=p[0],x=p[1];if(m===Fy||mn||x===Fy||xo)return!1;var T=t.length,_=t[0][0],b=t[0][1],w=0,k,M,q,E,D;for(k=1;kMath.max(M,_)||x>Math.max(q,b)))if(xl||Math.abs(u_(c,u))>n)return!0;return!1};Ny.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 jP=N((CPe,WP)=>{"use strict";WP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var pF=N((EPe,dF)=>{"use strict";var ZP=UP(),Xpe=VP(),Xh=br(),Jpe=Wr().dashStyle,jh=Tr(),$pe=Pn(),Kpe=Co().makeEventData,e0=Lu(),Qpe=e0.freeMode,e1e=e0.rectMode,Jh=e0.drawMode,d_=e0.openMode,p_=e0.selectMode,XP=hs(),JP=Fh(),rF=xy(),tF=rs().clearOutline,aF=fs(),c_=aF.handleEllipse,r1e=aF.readPaths,t1e=gy().newShapes,a1e=I5(),n1e=s_().activateLastSelection,zy=Ee(),i1e=zy.sorterAsc,nF=f_(),Zh=Zp(),wi=ua().getFromId,o1e=fy(),l1e=Dy().redrawReglTraces,Oy=jP(),Ho=Oy.MINSELECT,s1e=nF.filter,y_=nF.tester,m_=dy(),$P=m_.p2r,u1e=m_.axValue,f1e=m_.getTransform;function g_(e){return e.subplot!==void 0}function c1e(e,r,t,a,n){var i=!g_(a),o=Qpe(n),l=e1e(n),s=d_(n),u=Jh(n),f=p_(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=f1e(_),w=r-T.left,k=t-T.top;y._calcInverseTransform(p);var M=zy.apply3DTransform(y._invTransform)(w,k);w=M[0],k=M[1];var q=y._invScaleX,E=y._invScaleY,D=w,P=k,R="M"+w+","+k,z=a.xaxes[0],I=a.yaxes[0],B=z._length,G=I._length,Y=e.altKey&&!(Jh(n)&&s),V,H,X,j,ee,fe,ie;oF(e,p,a),o&&(V=s1e([[w,k]],Oy.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 we=u&&!s?K.fillcolor:"rgba(0,0,0,0)",se=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":Jpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(jh.stroke,se).call(jh.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ce=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 he=x.select(".label-temp");he.empty()&&(he=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ye=y._uid+Oy.SELECTID,W=[],Q=By(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=z._id,ve=I._id;cF(p,le,ve,Q);for(var me=(p.layout||{}).selections||[],Ce=[],Pe=!1,Le=0;Le=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=y.clickmode;Zh.done(ye).then(function(){if(Zh.clear(ye),le===2){for(ue.remove(),ee=0;ee-1&&iF(ve,p,a.xaxes,a.yaxes,a.subplot,a,ue),me==="event"&&Qh(p,void 0);$pe.click(p,ve,_.id)}).catch(zy.error)}},a.doneFn=function(){ce.remove(),Zh.done(ye).then(function(){Zh.clear(ye),!m&&j&&a.selectionDefs&&(j.subtract=Y,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(m||u)&&$h(a,m),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Qh(p,ie)}).catch(zy.error)}}function iF(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(y1e(l)){oF(e,r,i),v=By(r,t,a,n);var k=m1e(l,v),M=k.pointNumbers.length>0;if(M?g1e(v,k):b1e(v)&&(T=QP(k))){for(o&&o.remove(),w=0;w=0}function p1e(e){return e._fullLayout._activeSelectionIndex>=0}function $h(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;d1e(n)&&n._fullLayout._deactivateShape(n),p1e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Jh(t),s=p_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=t1e(u,e)),f&&Xh.call("_guiRelayout",n,{shapes:f});var c;s&&!g_(e)&&(c=a1e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Xh.call("_guiRelayout",n,{selections:c}).then(function(){r&&n1e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function KP(e){return e._id}function By(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(KP),o=t.map(KP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function g1e(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 le=eF(e,!0);if(le.length){var ve=le[0].xref,me=le[0].yref;if(ve&&me){var Ce=vF(le),Pe=hF([wi(e,ve,"x"),wi(e,me,"y")]);Pe(W,Ce)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Qh(e,W),v._reselect=!1}if(!o&&v._deselect){var Le=v._deselect;l=Le.xref,s=Le.yref,w1e(l,s,f)||cF(e,l,s,a),Z&&(W.points.length?Qh(e,W):__(e)),v._deselect=!1}return{eventData:W,selectionTesters:t}}function _1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";yF.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((RPe,mF)=>{"use strict";mF.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 Tc=N((FPe,xF)=>{"use strict";var gF=w_(),bF=ga(),Hy=xa(),S1e=_t().templatedArray,PPe=r0();xF.exports=S1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:bF({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:gF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:gF.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",Hy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Hy.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",Hy.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:bF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var t0=N((NPe,_F)=>{"use strict";_F.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Uy=N((IPe,wF)=>{"use strict";wF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ti=N((zPe,CF)=>{"use strict";var TF=ao().axisHoverFormat,{hovertemplateAttrs:q1e,texttemplateAttrs:L1e,templatefallbackAttrs:AF}=Yn(),MF=qo(),C1e=ga(),kF=fi().dash,E1e=fi().pattern,D1e=Wr(),R1e=t0(),a0=bt().extendFlat,P1e=Uy();function SF(e){return{valType:"any",dflt:0,editType:"calc"}}function qF(e){return{valType:"any",editType:"calc"}}function LF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}CF.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:SF("x"),yperiod:SF("y"),xperiod0:qF("x0"),yperiod0:qF("y0"),xperiodalignment:LF("x"),yperiodalignment:LF("y"),xhoverformat:TF("x"),yhoverformat:TF("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:L1e(),texttemplatefallback:AF({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:q1e({},{keys:R1e.eventDataKeys}),hovertemplatefallback:AF(),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({},kF,{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:P1e(!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:E1e,marker:a0({symbol:{valType:"enumerated",values:D1e.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({},kF,{arrayOk:!0}),editType:"calc"},MF("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"},MF("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:C1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var T_=N((BPe,RF)=>{"use strict";var EF=Tc(),DF=Ti().line,F1e=fi().dash,Gy=bt().extendFlat,N1e=Qi().overrideAll,I1e=_t().templatedArray,OPe=r0();RF.exports=N1e(I1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Gy({},EF.xref,{}),yref:Gy({},EF.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:DF.color,width:Gy({},DF.width,{min:1,dflt:1}),dash:Gy({},F1e,{dflt:"dot"})}}),"arraydraw","from-root")});var IF=N((HPe,NF)=>{"use strict";var PF=Ee(),Vy=Ir(),z1e=no(),O1e=T_(),FF=hs();NF.exports=function(r,t){z1e(r,t,{name:"selections",handleItemDefaults:B1e});for(var a=t.selections,n=0;n{"use strict";zF.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((GPe,UF)=>{"use strict";var H1e=br(),BF=Ee(),HF=ua();UF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=H1e.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 GF=s_(),i0=pF();VF.exports={moduleType:"component",name:"selections",layoutAttributes:T_(),supplyLayoutDefaults:IF(),supplyDrawNewSelectionDefaults:OF(),includeBasePlot:n0()("selections"),draw:GF.draw,drawOne:GF.drawOne,reselect:i0.reselect,prepSelect:i0.prepSelect,clearOutline:i0.clearOutline,clearSelectionsCache:i0.clearSelectionsCache,selectOnClick:i0.selectOnClick}});var cN=N((YPe,fN)=>{"use strict";var q_=Sr(),Ai=Ee(),YF=Ai.numberFormat,U1e=Sn(),G1e=s5(),Yy=br(),eN=Ai.strTranslate,V1e=Aa(),WF=Tr(),ps=Wr(),Y1e=Pn(),jF=Ir(),W1e=ss(),j1e=yi(),rN=Lu(),Wy=rN.selectingOrDrawing,Z1e=rN.freeMode,X1e=Oa().FROM_TL,J1e=fy(),$1e=Dy().redrawReglTraces,K1e=ta(),M_=ua().getFromId,Q1e=Uo().prepSelect,eye=Uo().clearOutline,rye=Uo().selectOnClick,A_=e_(),L_=xa(),ZF=L_.MINDRAG,xn=L_.MINZOOM,XF=!0;function tye(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,q,E,D,P,R,z,I,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){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(S_(He),Te===2&&!f&&Ue(),u)Je.indexOf("select")>-1&&rye(qe,He,y,m,r.id,j),Je.indexOf("event")>-1&&Y1e.click(He,qe,r.id);else if(Te===1&&f){var Ve=o?v:c,Ze=o==="s"||l==="w"?0:1,or=Ve._name+".range["+Ze+"]",rr=aye(Ve,Ze),Ke="left",Ie="middle";if(Ve.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Ve.side==="right"&&(Ke="right")):l==="e"&&(Ke="right"),He._context.showAxisRangeEntryBoxes&&q_.select(X).call(V1e.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(rr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Ie}).on("edit",function(ne){var de=Ve.d2r(ne);de!==void 0&&Yy.call("_guiRelayout",He,or,de)})}}j1e.init(j);var ie,ue,K,we,se,ce,he,ye,W,Q;function Z(Te,qe,He){var Je=X.getBoundingClientRect();ie=qe-Je.left,ue=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ve=Ai.apply3DTransform(e._fullLayout._invTransform)(ie,ue);ie=Ve[0],ue=Ve[1],K={l:ie,r:ie,w:0,t:ue,b:ue,h:0},we=e._hmpixcount?e._hmlumcount/e._hmpixcount:U1e(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+_+"V"+b+"H0V0",ce=!1,he="xy",Q=!1,ye=nN(s,we,x,T,se),W=iN(s,x,T)}function le(Te,qe){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(_,G*Te+ie)),Je=Math.max(0,Math.min(b,Y*qe+ue)),Ve=Math.abs(He-ie),Ze=Math.abs(Je-ue);K.l=Math.min(ie,He),K.r=Math.max(ie,He),K.t=Math.min(ue,Je),K.b=Math.max(ue,Je);function or(){he="",K.r=K.l,K.t=K.b,W.attr("d","M0,0Z")}if(w.isSubplotConstrained)Ve>xn||Ze>xn?(he="xy",Ve/_>Ze/b?(Ze=Ve*b/_,ue>Je?K.t=ue-Ze:K.b=ue+Ze):(Ve=Ze*_/b,ie>He?K.l=ie-Ve:K.r=ie+Ve),W.attr("d",jy(K))):or();else if(k.isSubplotConstrained)if(Ve>xn||Ze>xn){he="xy";var rr=Math.min(K.l/_,(b-K.b)/b),Ke=Math.max(K.r/_,(b-K.t)/b);K.l=rr*_,K.r=Ke*_,K.b=(1-rr)*b,K.t=(1-Ke)*b,W.attr("d",jy(K))}else or();else!q||Ze0){var ne;if(k.isSubplotConstrained||!M&&q.length===1){for(ne=0;ne1&&(or.maxallowed!==void 0&&D===(or.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 iye(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function nN(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",eN(t,a)).attr("d",n+"Z")}function iN(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:WF.background,stroke:WF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",eN(r,t)).attr("d","M0,0Z")}function oN(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"),lN(e,r,n,i)}function lN(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 S_(e){q_.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function sN(e){XF&&e.data&&e._context.showTips&&(Ai.notifier(Ai._(e,"Double-click to zoom back out"),"long"),XF=!1)}function oye(e,r){return"M"+(e.l-.5)+","+(r-xn-.5)+"h-3v"+(2*xn+1)+"h3ZM"+(e.r+.5)+","+(r-xn-.5)+"h3v"+(2*xn+1)+"h-3Z"}function lye(e,r){return"M"+(r-xn-.5)+","+(e.t-.5)+"v-3h"+(2*xn+1)+"v3ZM"+(r-xn-.5)+","+(e.b+.5)+"v3h"+(2*xn+1)+"v-3Z"}function jy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,xn)/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 KF(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 sye=Sr(),Zy=Pn(),uye=yi(),fye=ss(),so=cN().makeDragBox,qa=xa().DRAGGERSIZE;Xy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){sye.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=so(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]&&Zy.hover(r,v,i)},Zy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,uye.unhover(r,v))},r._context.showAxisDragHandles&&(so(r,o,l._offset-qa,s._offset-qa,qa,qa,"n","w"),so(r,o,l._offset+l._length,s._offset-qa,qa,qa,"n","e"),so(r,o,l._offset-qa,s._offset+s._length,qa,qa,"s","w"),so(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),so(r,o,l._offset+l._length*.1,f,l._length*.8,qa,"","ew"),so(r,o,l._offset,f,l._length*.1,qa,"","w"),so(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),so(r,o,c,s._offset+s._length*.1,qa,s._length*.8,"ns",""),so(r,o,c,s._offset+s._length*.9,qa,s._length*.1,"s",""),so(r,o,c,s._offset,qa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Zy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Zy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Xy.updateFx(r)}};Xy.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";fye(r._draggers,t)}});var dN=N((jPe,hN)=>{"use strict";var vN=br();hN.exports=function(r){for(var t=vN.layoutArrayContainers,a=vN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var cye=Vl(),E_=Fp(),o0=au(),vye=Eb().sorterAsc,D_=br();l0.containerArrayMatch=dN();var hye=l0.isAddVal=function(r){return r==="add"||cye(r)},pN=l0.isRemoveVal=function(r){return r===null||r==="remove"};l0.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=D_.getComponentMethod(o,"supplyLayoutDefaults"),s=D_.getComponentMethod(o,"draw"),u=D_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===E_||s===E_,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(pN(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(vye),y=t.get(),m=y||[],x=i(v,o).get(),T=[],_=-1,b=m.length,w,k,M,q,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),pN(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!==E_){var z;if(_===-1)z=p;else{for(b=Math.max(m.length,b),z=[],w=0;w=_));w++)z.push(M);for(w=_;w{"use strict";var xN=Rr(),_N=br(),un=Ee(),s0=ta(),wN=ua(),TN=Tr(),u0=wN.cleanId,dye=wN.getFromTrace,R_=_N.traceIs,pye=["x","y","z"];Mi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&un.log("Clearing previous rejected promises from queue."),e._promises=[]};Mi.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"),TN.clean(e),e.template&&e.template.layout&&Mi.cleanLayout(e.template.layout),e};function Ac(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))}Mi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Mi.hasParent=function(e,r){for(var t=bN(r);t;){if(t in e)return!0;t=bN(t)}return!1};Mi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>un.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;aun.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)?P_(n,i):!1))return!1}return!0}return!1};Mi.collectionsAreEqual=P_});var B_=N(jr=>{"use strict";var Qy=Sr(),gye=Rr(),bye=Yb(),nr=Ee(),Mt=nr.nestedProperty,I_=vh(),_n=iq(),ki=br(),om=Jf(),_r=ta(),fn=Ir(),xye=l5(),_ye=di(),F_=Wr(),wye=Tr(),Tye=C_().initInteractions,Aye=dl(),Mye=Uo().clearOutline,LN=tu().dfltConfig,$y=yN(),ia=AN(),ht=Dy(),ys=Qi(),kye=xa().AX_NAME_PATTERN,N_=0,MN=5;function Sye(e,r,t,a){var n;if(e=nr.getGraphDiv(e),I_.init(e),nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=I_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!nr.isPlotDiv(e)&&nr.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)}EN(e,a),t||(t={}),Qy.select(e).classed("js-plotly-plot",!0),F_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ia.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ia.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Jye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),F_.initGradients(e),F_.initPatterns(e),s&&fn.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 DN(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]),rm(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rm(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Dye(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[P]!="string";)P--;var R=q.parts[P],z=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),B=Mt(e.layout,I).get(),G=Mt(a,I).get(),Y=q.get();if(E!==void 0){x[M]=E,T[M]=R==="reverse"?E:wl(Y);var V=om.getLayoutValObject(a,q.parts);if(V&&V.impliedEdits&&E!==null)for(var H in V.impliedEdits)_(nr.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(z.match(HN))k(z),Mt(a,I+"._inputRange").set(null);else if(z.match(UN)){k(z),Mt(a,I+"._inputRange").set(null);var j=Mt(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(Nye)&&Mt(a,I+"._inputDomain").set(null);if(R==="type"){w=B;var ee=G.type==="linear"&&E==="log",fe=G.type==="log"&&E==="linear";if(ee||fe){if(!w||!w.range)_(I+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var ie=w.range[0],ue=w.range[1];ee?(ie<=0&&ue<=0&&_(I+".autorange",!0),ie<=0?ie=ue/1e6:ue<=0&&(ue=ie/1e6),_(I+".range[0]",Math.log(ie)/Math.LN10),_(I+".range[1]",Math.log(ue)/Math.LN10)):(_(I+".range[0]",Math.pow(10,ie)),_(I+".range[1]",Math.pow(10,ue)))}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"],ki.getComponentMethod("annotations","convertCoords")(e,G,E,_),ki.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(I+".autorange",!0),_(I+".range",null);Mt(a,I+"._inputRange").set(null)}else if(R.match(kye)){var K=Mt(a,M).get(),we=(E||{}).type;(!we||we==="-")&&(we="linear"),ki.getComponentMethod("annotations","convertCoords")(e,K,we,_),ki.getComponentMethod("images","convertCoords")(e,K,we,_)}var se=$y.containerArrayMatch(M);if(se){f=se.array,c=se.index;var ce=se.property,he=V||{editType:"calc"};c!==""&&ce===""&&($y.isAddVal(E)?T[M]=null:$y.isRemoveVal(E)?T[M]=(Mt(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),ys.update(m,he),u[f]||(u[f]={});var ye=u[f][c];ye||(ye=u[f][c]={}),ye[ce]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(I+".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,q.set(E))}}for(f in u){var W=$y.applyContainerArrayChanges(e,i(t,f),u[f],m,i);W||(m.plot=!0)}for(var Q in b){w=fn.getFromId(e,Q);var Z=w&&w._constraintGroup;if(Z){m.calc=!0;for(var le in Z)b[le]||(fn.getFromId(e,le)._constraintShrinkable=!0)}}(VN(e)||r.height||r.width)&&(m.plot=!0);var ve=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 Oye(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=jr.newPlot(e,r,t,a).then(()=>{for(let[I,B]of z)B.forEach(G=>e.on(I,G));return jr.react(e,r,t,a)})}else{e.data=r||[],ia.cleanData(e.data),e.layout=t||{},ia.cleanLayout(e.layout),Hye(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=Vye(e,s,v,d,p),m=y.newDataRevision,x=Gye(e,l,c,d,p,m);if(VN(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 Gye(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=om.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 z=0;za._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&&nr.isPlainObject(r);if(M)b.push({type:"object",data:x(nr.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 Wye(e,r,t){if(e=nr.getGraphDiv(e),r==null)return Promise.resolve();if(!nr.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(nr.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&&N_q.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&nr.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 _n&&_n.add(e,l,u,s,f),_r.modifyFrames(e,i)}function Zye(e){e=nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),I_.purge(e),r._container&&r._container.remove(),delete e._context,e}function Xye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!nr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=nr.inverseTransformMatrix(nr.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 Jye(e){var r=Qy.select(e),t=e._fullLayout;if(t._calcInverseTransform=Xye,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={};Qy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Aye.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=Yye;jr.addFrames=Wye;jr.deleteFrames=jye;jr.addTraces=IN;jr.deleteTraces=zN;jr.extendTraces=FN;jr.moveTraces=z_;jr.prependTraces=NN;jr.newPlot=Eye;jr._doPlot=Sye;jr.purge=Zye;jr.react=Uye;jr.redraw=Cye;jr.relayout=f0;jr.restyle=tm;jr.setPlotConfig=qye;jr.update=nm;jr._guiRelayout=O_(f0);jr._guiRestyle=O_(tm);jr._guiUpdate=O_(nm);jr._storeDirectGUIEdit=Fye});var Tl=N(Go=>{"use strict";var $ye=br();Go.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Go.getRedrawFunc=function(e){return function(){$ye.getComponentMethod("colorbar","draw")(e)}};Go.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Go.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var YN=window.URL||window.webkitURL;Go.createObjectURL=function(e){return YN.createObjectURL(e)};Go.revokeObjectURL=function(e){return YN.revokeObjectURL(e)};Go.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=Kye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Go.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Kye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var U_=Sr(),KPe=Ee(),Qye=Wr(),eme=Tr(),QPe=dl(),H_=/"/g,v0="TOBESTRIPPED",rme=new RegExp('("'+v0+")|("+v0+'")',"g");function tme(e){var r=U_.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 ame(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}WN.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(Qye.setRect,0,0,l,s).call(eme.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var nme=Ee(),ime=su().EventEmitter,h0=Tl();function ome(e){var r=e.emitter||new ime,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"||nme.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}jN.exports=ome});var V_=N((tFe,JN)=>{"use strict";var ZN=Rr(),XN=B_(),lme=ta(),Vo=Ee(),d0=Tl(),sme=sm(),ume=um(),fme=gp().version,G_={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 cme(e,r){r=r||{};var t,a,n,i;Vo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Vo.getGraphDiv(e),t=Vo.extendDeep([],e.data),a=Vo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Vo.validate(r[k],G_[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 "+Vo.join2(G_.format.values,", "," or ")+".");var l={};function s(k,M){return Vo.coerce(r,l,G_,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=Vo.extendFlat({},a);f?m.width=f:r.width===null&&ZN(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&ZN(i.height)&&(m.height=i.height);var x=Vo.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 q=sme(y,u,v),E=y._fullLayout.width,D=y._fullLayout.height;function P(){XN.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=lme.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=fme,R=JSON.stringify(R),P(),k(p?R:d0.encodeJSON(R))}if(P(),u==="svg")return k(p?q:d0.encodeSVG(q));var z=document.createElement("canvas");z.id=Vo.randstr(),ume({format:u,width:E,height:D,scale:v,canvas:z,svg:q,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace(d0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){XN.newPlot(y,t,m,x).then(T).then(_).then(b).then(function(q){k(w(q))}).catch(function(q){M(q)})})}JN.exports=cme});var QN=N((aFe,KN)=>{"use strict";var Si=Ee(),vme=ta(),hme=Jf(),dme=tu().dfltConfig,uo=Si.isPlainObject,Fu=Array.isArray,Y_=Si.isArrayOrTypedArray;KN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=hme.get(),n=[],i={_context:Si.extendFlat({},dme)},o,l;Fu(r)?(i.data=Si.extendDeep([],r),o=r):(i.data=[],o=[],n.push(La("array","data"))),uo(t)?(i.layout=Si.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(La("object","layout"))),vme.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 q=c[b].length;for(_=0;_<(T?Math.min(q,m[b].length):q);_++)w=T?m[b][_]:m,k=f[b][_],M=c[b][_],Si.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 _me=Ee(),cm=Tl();function wme(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=cm.createBlob(e,t),u=cm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),cm.revokeObjectURL(u),s=null,o(r);if(_me.isSafari()){var f=t==="svg"?",":";base64,";return cm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}eI.exports=wme});var W_=N((oFe,aI)=>{"use strict";var tI=Ee(),Tme=V_(),Ame=rI(),iFe=Tl();function Mme(e,r){var t;return tI.isPlainObject(e)||(t=tI.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=Tme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Ame(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}aI.exports=Mme});var sI=N(j_=>{"use strict";var In=Ee(),zn=In.isPlainObject,nI=Jf(),iI=ta(),kme=gn(),oI=_t(),lI=tu().dfltConfig;j_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:lI},{data:e.data,layout:e.layout}),iI.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,qme.bind(null,d));var y=In.coerce(d,{},kme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),p0(t,a.layout,Sme.bind(null,t)),delete a.layout.template;var n=t.template;if(zn(n)){var i=n.layout,o,l,s,u,f,c;zn(i)&&vm(i,a.layout);var v=n.data;if(zn(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=qi(_,w,b);zn(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&Lme(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(Cme)};function Lme(e){for(var r=0;r{"use strict";var _a=B_();Pt._doPlot=_a._doPlot;Pt.newPlot=_a.newPlot;Pt.restyle=_a.restyle;Pt.relayout=_a.relayout;Pt.redraw=_a.redraw;Pt.update=_a.update;Pt._guiRestyle=_a._guiRestyle;Pt._guiRelayout=_a._guiRelayout;Pt._guiUpdate=_a._guiUpdate;Pt._storeDirectGUIEdit=_a._storeDirectGUIEdit;Pt.react=_a.react;Pt.extendTraces=_a.extendTraces;Pt.prependTraces=_a.prependTraces;Pt.addTraces=_a.addTraces;Pt.deleteTraces=_a.deleteTraces;Pt.moveTraces=_a.moveTraces;Pt.purge=_a.purge;Pt.addFrames=_a.addFrames;Pt.deleteFrames=_a.deleteFrames;Pt.animate=_a.animate;Pt.setPlotConfig=_a.setPlotConfig;var Eme=nh().getGraphDiv,Dme=My().eraseActiveShape;Pt.deleteActiveShape=function(e){return Dme(Eme(e))};Pt.toImage=V_();Pt.validate=QN();Pt.downloadImage=W_();var uI=sI();Pt.makeTemplate=uI.makeTemplate;Pt.validateTemplate=uI.validateTemplate});var X_=N((uFe,cI)=>{"use strict";var Z_=Ee(),Rme=br();cI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Rme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Z_.minRowLength(i);o?l=Math.min(u,Z_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Z_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var Mc=N((fFe,dI)=>{"use strict";var vI=Ee().dateTick0,Pme=zt(),Fme=Pme.ONEWEEK;function hI(e,r){return e%Fme===0?vI(r,1):vI(r,0)}dI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",hI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",hI(l,t.ycalendar)),n("yperiodalignment"))}}});var mI=N((cFe,yI)=>{"use strict";var pI=["orientation","groupnorm","stackgaps"];yI.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 gI=Tr(),bI=jn().hasColorscale,xI=yl(),Nme=Rn();_I.exports=function(r,t,a,n,i,o={}){var l=Nme.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),bI(r,"marker")&&xI(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=gI.background:u=gI.defaultLine,i("marker.line.color",u),bI(r,"marker.line")&&xI(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 $_=N((hFe,wI)=>{"use strict";var Ime=Ee().isArrayOrTypedArray,zme=jn().hasColorscale,Ome=yl();wI.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),zme(r,"line"))Ome(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Ime(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var K_=N((dFe,TI)=>{"use strict";TI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Q_=N((pFe,AI)=>{"use strict";var Bme=Ee();AI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Bme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var e4=N((yFe,kI)=>{"use strict";var dm=Tr(),MI=Ee().isArrayOrTypedArray;function Hme(e){for(var r=dm.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var SI=Ee(),Ume=br(),Gme=Ti(),Vme=t0(),kc=Rn(),Yme=X_(),Wme=Mc(),jme=mI(),Zme=J_(),Xme=$_(),qI=K_(),Jme=Q_(),$me=e4(),Kme=Ee().coercePattern;LI.exports=function(r,t,a,n){function i(d,p){return SI.coerce(r,t,Gme,d,p)}var o=Yme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Wme(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 Qme=Ru().getAxisGroup;EI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Qme(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 RI=N((bFe,DI)=>{"use strict";var ege=Ee(),rge=y0(),tge=Ti();DI.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return ege.coerce(n._input,n,tge,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 FI=N((xFe,PI)=>{"use strict";var age=Ee(),nge=i1();PI.exports=function(e,r){function t(n,i){return age.coerce(e,r,nge,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Sc=N((_Fe,II)=>{"use strict";var ige=Rr(),NI=Ee(),oge=NI.dateTime2ms,pm=NI.incrementMonth,lge=zt(),sge=lge.ONEAVGMONTH;II.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(ige(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=oge(v,u)||0,p=[],y=[],m=[],x=n.length,T=0;T_;)k=pm(k,-l,u);for(;k<=_;)k=pm(k,l,u);w=pm(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 a4=N((wFe,OI)=>{"use strict";var r4=jn().hasColorscale,t4=ec(),zI=Rn();OI.exports=function(r,t){zI.hasLines(t)&&r4(t,"line")&&t4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zI.hasMarkers(t)&&(r4(t,"marker")&&t4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r4(t,"marker.line")&&t4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ym=N((TFe,BI)=>{"use strict";var Yt=Ee();BI.exports=function(r,t){for(var a=0;a{"use strict";var HI=Ee();UI.exports=function(r,t){HI.isArrayOrTypedArray(t.selectedpoints)&&HI.tagSelected(r,t)}});var gm=N((MFe,XI)=>{"use strict";var GI=Rr(),i4=Ee(),m0=Ir(),VI=Sc(),n4=zt().BADNUM,o4=Rn(),uge=a4(),fge=ym(),cge=mm();function vge(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=VI(r,a,"x",i),s=VI(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=l4(r,t,a,n),y=!1,m,x,T,_,b,w;jI(t,r);var k="x",M="y",q;if(p)i4.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",q="x"):(k="s",q="y"),b=p.stackgaps==="interpolate";else{var E=WI(r,c);YI(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][q],G=v[x-1].s,Y=(v[T].s-G)/(v[T][q]-B);x{"use strict";JI.exports=bm;var hge=Ee().distinctVals;function bm(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";KI.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var _m=N((qFe,tz)=>{"use strict";var Li=Rr(),{isArrayOrTypedArray:Al}=Ee(),{BADNUM:qc}=zt(),dge=br(),b0=Ir(),{getAxisGroup:pge}=Ru(),xm=$I(),{TEXTPAD:yge}=g0(),{LINE_SPACING:mge}=Oa(),{BR_TAG_ALL:gge}=Aa();function bge(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*mge*t+yge;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 Lge(e,r,t,a){for(var n=Lc(a),i=0;i{"use strict";var az=gm(),nz=_m().setGroupPositions;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;uE[f]&&f{"use strict";var Rge=Wr(),fz=zt(),x0=fz.BADNUM,cz=fz.LOG_CLIP,lz=cz+.5,sz=cz-.5,wm=Ee(),Pge=wm.segmentsIntersect,uz=wm.constrain,d4=t0();vz.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=d4.minTolerance,_=r.length,b=new Array(_),w=0,k,M,q,E,D,P,R,z,I,B,G,Y,V,H,X,j;function ee(Ie){var ne=r[Ie];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Re=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&&Re===x0&&(de*=Math.abs(n._m*u*(n._m>0?lz:sz)/(i._m*s*(i._m>0?lz:sz)))),de*=1e3}if(Re===x0){if(l&&(Re=i.c2p(ne.y,!0)),Re===x0)return!1;Re*=1e3}return[de,Re]}function fe(Ie,ne,de,Re){var Fe=de-Ie,Qe=Re-ne,fr=.5-Ie,sr=.5-ne,kr=Fe*Fe+Qe*Qe,zr=Fe*fr+Qe*sr;if(zr>0&&zr1||Math.abs(fr.y-de[0][1])>1)&&(fr=[fr.x,fr.y],Re&&we(fr,Ie)he||Ie[1]W)return[uz(Ie[0],ce,he),uz(Ie[1],ye,W)]}function Be(Ie,ne){if(Ie[0]===ne[0]&&(Ie[0]===ce||Ie[0]===he)||Ie[1]===ne[1]&&(Ie[1]===ye||Ie[1]===W))return!0}function Ge(Ie,ne){var de=[],Re=ze(Ie),Fe=ze(ne);return Re&&Fe&&Be(Re,Fe)||(Re&&de.push(Re),Fe&&de.push(Fe)),de}function De(Ie,ne,de){return function(Re,Fe){var Qe=ze(Re),fr=ze(Fe),sr=[];if(Qe&&fr&&Be(Qe,fr))return sr;Qe&&sr.push(Qe),fr&&sr.push(fr);var kr=2*wm.constrain((Re[Ie]+Fe[Ie])/2,ne,de)-((Qe||Re)[Ie]+(fr||Fe)[Ie]);if(kr){var zr;Qe&&fr?zr=kr>0==Qe[Ie]>fr[Ie]?Qe:fr:zr=Qe||fr,zr[Ie]+=kr}return sr}}var Oe;p==="linear"||p==="spline"?Oe=Le:p==="hv"||p==="vh"?Oe=Ge:p==="hvh"?Oe=De(0,ce,he):p==="vhv"&&(Oe=De(1,ye,W));function Ue(Ie,ne){var de=ne[0]-Ie[0],Re=(ne[1]-Ie[1])/de,Fe=(Ie[1]*ne[0]-ne[1]*Ie[0])/de;return Fe>0?[Re>0?ce:he,W]:[Re>0?he:ce,ye]}function oe(Ie){var ne=Ie[0],de=Ie[1],Re=ne===b[w-1][0],Fe=de===b[w-1][1];if(!(Re&&Fe))if(w>1){var Qe=ne===b[w-2][0],fr=de===b[w-2][1];Re&&(ne===ce||ne===he)&&Qe?fr?w--:b[w-1]=Ie:Fe&&(de===ye||de===W)&&fr?Qe?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]&&oe([ve,me]),oe(Ie),Ce=null,ve=me=0}var Xe=wm.isArrayOrTypedArray(c);function hr(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Xe?c[Ie.i]:c,Ie.backoff=f),ie=Ie[0]/s,ue=Ie[1]/u,Z=Ie[0]he?he:0,le=Ie[1]W?W:0,Z||le){if(!w)b[w++]=[Z||Ie[0],le||Ie[1]];else if(Ce){var ne=Oe(Ce,Ie);ne.length>1&&(Ae(ne[0]),b[w++]=ne[1])}else Pe=Oe(b[w-1],Ie)[0],b[w++]=Pe;var de=b[w-1];Z&&le&&(de[0]!==Z||de[1]!==le)?(Ce&&(ve!==Z&&me!==le?oe(ve&&me?Ue(Ce,Ie):[ve||Z,me||le]):ve&&me&&oe([ve,me])),oe([Z,le])):ve-Z&&me-le&&oe([Z||ve,le||me]),Ce=Ie,ve=Z,me=le}else Ce&&Ae(Oe(Ce,Ie)[0]),b[w++]=Ie}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Ce=null,hr(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!y||!t.simplify){hr(E);continue}var Ne=ee(k+1);if(B=we(E,M),!(!(m&&(w===0||w===_-1))&&BK(P,Ne))break;q=P,V=I[0]*z[0]+I[1]*z[1],V>G?(G=V,E=P,R=!1):V=r.length||!P)break;hr(P),M=P}}Ce&&oe([ve||Ce[0],me||Ce[1]]),x.push(b.slice(0,w))}var Te=p.slice(p.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var qe=!1,He=-1,Je=[],Ve=0;Ve{"use strict";var hz={tonextx:1,tonexty:1,tonext:1};dz.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 fo=Sr(),Fge=br(),_0=Ee(),Cc=_0.ensureSingle,mz=_0.identity,Xt=Wr(),Ec=Rn(),Nge=p4(),Ige=pz(),Tm=f_().tester;gz.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Ige(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(),zge(r,l,t),f){o&&(s=o());var v=fo.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){yz(r,p,t,d,c,this,i)})})}else l.each(function(d,p){yz(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function zge(e,r,t){r.each(function(a){var n=Cc(fo.select(this),"g","fills");Xt.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,mz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Cc(fo.select(this),"path","js-fill")})})}function yz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Oge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=fo.select(i),m=Cc(y,"g","errorbars"),x=Cc(y,"g","lines"),T=Cc(y,"g","points"),_=Cc(y,"g","text");if(Fge.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,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",w=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var I,B,G="",Y="",V,H,X,j,ee,fe,ie=[];d._polygons=[];var ue=[],K=[],we=_0.noop;if(b=d._ownFill,Ec.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Xt.steps(p.shape),H=Xt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=H=function(De){var Oe=De[De.length-1];return De.length>1&&De[0][0]===Oe[0]&&De[0][1]===Oe[1]?Xt.smoothclosed(De.slice(1),p.smoothing):Xt.smoothopen(De,p.smoothing)}:V=H=function(De){return"M"+De.join("L")},X=function(De){return H(De.reverse())},K=Nge(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 se=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;Ec.hasMarkers(x)&&x.marker.maxdisplayed>0&&m{"use strict";bz.exports={container:"marker",min:"cmin",max:"cmax"}});var m4=N((PFe,xz)=>{"use strict";var Am=Ir();xz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Am.getFromTrace(i,t,"x"),l=Am.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=Am.tickText(o,o.c2l(s),!0).text,n.yLabel=Am.tickText(l,l.c2l(u),!0).text,n}});var Nu=N((FFe,_z)=>{"use strict";var g4=Sr(),Dc=Wr(),Bge=br();function Hge(e){var r=g4.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=g4.select(this),n=t.trace||t[0].trace;b4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=g4.select(this),n=t.trace||t[0].trace;x4(a,n,e)}),r.selectAll("g.trace path.js-line").call(Dc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Dc.fillGroupStyle,e,!1),Bge.getComponentMethod("errorbars","style")(r)}function b4(e,r,t){Dc.pointStyle(e.selectAll("path.point"),r,t)}function x4(e,r,t){Dc.textPointStyle(e.selectAll("text"),r,t)}function Uge(e,r,t){var a=r[0].trace;a.selectedpoints?(Dc.selectedPointStyle(t.selectAll("path.point"),a),Dc.selectedTextStyle(t.selectAll("text"),a)):(b4(t,a,e),x4(t,a,e))}_z.exports={style:Hge,stylePoints:b4,styleText:x4,styleOnSelect:Uge}});var Tz=N((NFe,wz)=>{"use strict";var Rc=Tr(),Gge=Rn();wz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Rc.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&&Rc.opacity(i)?i:o&&Rc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Rc.opacity(n)<.3?Rc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Rc.opacity(a)&&Gge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var w4=N((IFe,Mz)=>{"use strict";var Mm=Ee(),Az=Pn(),Vge=br(),Yge=Tz(),_4=Tr(),Wge=Mm.fillText;Mz.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),j=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),j=1-1/X,ee=Math.abs(s.c2p(Y.y)-f);return eeie!=W>=ie&&(ce=we[K-1][0],he=we[K][0],W-ye&&(se=ce+(he-ce)*(ie-ye)/(W-ye),X=Math.min(X,se),j=Math.max(j,se)));return X=Math.max(X,0),j=Math.min(j,l._length),{x0:X,x1:j,y0:ie,y1:ie}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=_4.defaultLine;return _4.opacity(o.fillcolor)?G=o.fillcolor:_4.opacity((o.line||{}).color)&&(G=o.line.color),Mm.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&&!Mm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var T4=N((zFe,Sz)=>{"use strict";var kz=Rn();Sz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!kz.hasMarkers(l)&&!kz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";qz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Rz=N((BFe,Dz)=>{"use strict";var T0=br().traceIs,A4=N1();Dz.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=Zge(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,Ez(i,a)){var u=Cz(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(Ez(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function Cz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Ez(e,r){var t=Cz(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 Fz=N((HFe,Pz)=>{"use strict";var Xge=Vn().isTypedArraySpec;function Jge(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||Xge(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=Jge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var M4=N((UFe,Iz)=>{"use strict";var Nz=Sn().mix,$ge=ui(),Kge=Ee();Iz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,E){return Kge.coerce2(r,t,n.attributes,q,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=Nz(i,n.bgColor,n.blend||$ge.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=Nz(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 S4=N((GFe,Gz)=>{"use strict";var zz=Rr(),Qge=br(),A0=Ee(),e2e=_t(),r2e=no(),k4=di(),Oz=y1(),Bz=m1(),t2e=b1(),a2e=x1(),n2e=Fz(),i2e=M4(),o2e=l5(),Hz=lc(),km=xa().WEEKDAY_PATTERN,l2e=xa().HOUR_PATTERN;Gz.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=Qge.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"),Hz(t,i),o2e(r,t,a,n),n2e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==k4.color.dflt?y:l.color,x=s.label||i._dfltTitle[o];if(a2e(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}}),Oz(r,t,a,c);var T=n.hasMinor;if(T&&(e2e.newContainer(t,"minor"),Oz(r,t,a,c,{isMinor:!0})),t2e(r,t,a,c,n),Bz(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Bz(r,t,a,n),n.isMinor=_}i2e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:k4}),T&&!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(r2e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:s2e}),!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=Uz(i[l]),s){o=km;break}}var u=a("pattern",o);if(u===km)for(l=0;l<2;l++)s=Uz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case km:if(!zz(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 l2e:if(!zz(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 f2e=Rr(),Sm=Ee();Vz.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||(f2e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Sm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=Sm.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&&(_=Sm.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),Sm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Qz=N((YFe,Kz)=>{"use strict";var Iu=Ee(),Yz=Tr(),c2e=Co().isUnifiedHover,v2e=R5(),Wz=_t(),h2e=Of(),jz=di(),d2e=Rz(),Zz=S4(),p2e=Ru(),Xz=q4(),C4=ua(),Yo=C4.id2name,Jz=C4.name2id,y2e=xa().AX_ID_PATTERN,$z=br(),qm=$z.traceIs,L4=$z.getComponentMethod;function Lm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Kz.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 m2e=Sr(),eO=br(),Cm=Ee(),Qn=Wr(),Em=Ir();rO.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Em.redrawComponents(r);return}function o(m){var x=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Qn.setTranslate,0,0).call(Qn.setScale,1,1),m.plot.call(Qn.setTranslate,x._offset,T._offset).call(Qn.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Qn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Qn.setTextPointsScale,1,1),_.call(Qn.hideOutsideRangePoints,m)}function l(m,x){var T=m.plotinfo,_=T.xaxis,b=T.yaxis,w=_._length,k=b._length,M=!!m.xr1,q=!!m.yr1,E=[];if(M){var D=Cm.simpleMap(m.xr0,_.r2l),P=Cm.simpleMap(m.xr1,_.r2l),R=D[1]-D[0],z=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*z/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(q){var I=Cm.simpleMap(m.yr0,b.r2l),B=Cm.simpleMap(m.yr1,b.r2l),G=I[1]-I[0],Y=B[1]-B[0];E[1]=(I[1]*(1-x)+x*B[1]-I[1])/(I[0]-I[1])*k,E[3]=k*(1-x+x*Y/G),b.range[0]=_.l2r(I[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(I[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;Em.drawOne(r,_,{skipTitle:!0}),Em.drawOne(r,b,{skipTitle:!0}),Em.redrawComponents(r,[_._id,b._id]);var V=M?w/E[2]:1,H=q?k/E[3]:1,X=M?E[0]:0,j=q?E[1]:0,ee=M?E[0]/E[2]*w:0,fe=q?E[1]/E[3]*k:0,ie=_._offset-ee,ue=b._offset-fe;T.clipRect.call(Qn.setTranslate,X,j).call(Qn.setScale,1/V,1/H),T.plot.call(Qn.setTranslate,ie,ue).call(Qn.setScale,V,H),Qn.setPointGroupScale(T.zoomScalePts,1/V,1/H),Qn.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 Ci=N(Ja=>{"use strict";var Rm=Sr(),aO=br(),zu=Ee(),g2e=ta(),b2e=Wr(),nO=s1().getModuleCalcData,ms=ua(),co=xa(),x2e=dl(),rt=zu.ensureSingle;function Dm(e,r,t){return zu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ou=co.zindexSeparator;Ja.name="cartesian";Ja.attr=["xaxis","yaxis"];Ja.idRoot=["x","y"];Ja.idRegex=co.idRegex;Ja.attrRegex=co.attrRegex;Ja.attributes=Lz();Ja.layoutAttributes=di();Ja.supplyLayoutDefaults=Qz();Ja.transitionAxes=tO();Ja.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(Ou)!==-1)continue;d+=Ou+(u+1),v=zu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(w+=Ou+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||(Dm(r.minorGridlayer,"g",r.xaxis._id),Dm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort),Dm(r.gridlayer,"g",r.xaxis._id),Dm(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 lO(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Rm.select(this);f.remove(),sO(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 Pm=Rn();uO.exports={hasLines:Pm.hasLines,hasMarkers:Pm.hasMarkers,hasText:Pm.hasText,isBubble:Pm.isBubble,attributes:Ti(),layoutAttributes:i1(),supplyDefaults:CI(),crossTraceDefaults:RI(),supplyLayoutDefaults:FI(),calc:gm().calc,crossTraceCalc:oz(),arraysToCalcdata:ym(),plot:y4(),colorbar:w0(),formatLabels:m4(),style:Nu().style,styleOnSelect:Nu().styleOnSelect,hoverPoints:w4(),selectPoints:T4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ci(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var hO=N((XFe,vO)=>{"use strict";var w2e=Sr(),T2e=Tr(),cO=w_(),E4=Ee(),A2e=E4.strScale,M2e=E4.strRotate,k2e=E4.strTranslate;vO.exports=function(r,t,a){var n=r.node(),i=cO[a.arrowhead||0],o=cO[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)){I();return}if(c){if(c*c>x*x+T*T){I();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){I();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(),q="";if(M{"use strict";var dO=Sr(),D4=br(),S2e=ta(),bs=Ee(),R4=bs.strTranslate,k0=Ir(),Bu=Tr(),Ml=Wr(),pO=Pn(),P4=Aa(),F4=ss(),M0=yi(),q2e=_t().arrayEditor,L2e=hO();gO.exports={draw:C2e,drawOne:yO,drawRaw:mO};function C2e(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 ye=!1,W=["x","y"],Q=0;Q1)&&(ve===le?(Ne=me.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(ye=!0)):ye=!0),Oe=me._offset+me.r2p(r[Z]),Ae=.5}else{var Te=hr==="domain";Z==="x"?(oe=r[Z],Oe=Te?me._offset+me._length*oe:Oe=l.l+l.w*oe):(oe=1-r[Z],Oe=Te?me._offset+me._length*oe:Oe=l.t+l.h*oe),Ae=r.showarrow?.5:oe}if(r.showarrow){De.head=Oe;var qe=r["a"+Z];if(Xe=Pe*he(.5,r.xanchor)-Le*he(.5,r.yanchor),ve===le){var He=k0.getRefType(ve);He==="domain"?(Z==="y"&&(qe=1-qe),De.tail=me._offset+me._length*qe):He==="paper"?Z==="y"?(qe=1-qe,De.tail=l.t+l.h*qe):De.tail=l.l+l.w*qe:De.tail=me._offset+me.r2p(qe),Ue=Xe}else De.tail=Oe+qe,Ue=Xe+qe;De.text=De.tail+Xe;var Je=o[Z==="x"?"width":"height"];if(le==="paper"&&(De.head=bs.constrain(De.head,1,Je-1)),ve==="pixel"){var Ve=-Math.max(De.tail-3,De.text),Ze=Math.min(De.tail+3,De.text)-Je;Ve>0?(De.tail+=Ve,De.text+=Ve):Ze>0&&(De.tail-=Ze,De.text-=Ze)}De.tail+=Ge,De.head+=Ge}else Xe=ze*he(Ae,Be),Ue=Xe,De.text=Oe+Xe;De.text+=Ge,Xe+=Ge,Ue+=Ge,r["_"+Z+"padplus"]=ze/2+Ue,r["_"+Z+"padminus"]=ze/2-Ue,r["_"+Z+"size"]=ze,r["_"+Z+"shift"]=Xe}if(ye){M.remove();return}var or=0,rr=0;if(r.align!=="left"&&(or=(K-ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(rr=(we-ue)*(r.valign==="middle"?.5:1)),ee)j.select("svg").attr({x:D+or-1,y:D+rr}).call(Ml.setClipUrl,R?y:null,e);else{var Ke=D+rr-fe.top,Ie=D+or-fe.left;G.call(P4.positionText,Ie,Ke).call(Ml.setClipUrl,R?y:null,e)}z.select("rect").call(Ml.setRect,D,D,K,we),P.call(Ml.setRect,q/2,q/2,se-q,ce-q),M.call(Ml.setTranslate,Math.round(m.x.text-se/2),Math.round(m.y.text-ce/2)),_.attr({transform:"rotate("+x+","+m.x.text+","+m.y.text+")"});var ne=function(Re,Fe){T.selectAll(".annotation-arrow-g").remove();var Qe=m.x.head,fr=m.y.head,sr=m.x.tail+Re,kr=m.y.tail+Fe,zr=m.x.text+Re,Yr=m.y.text+Fe,et=bs.rotationXYMatrix(x,zr,Yr),qt=bs.apply2DTransform(et),ft=bs.apply2DTransform2(et),Ft=+P.attr("width"),Tt=+P.attr("height"),pa=zr-.5*Ft,$t=pa+Ft,sa=Yr-.5*Tt,dr=sa+Tt,yt=[[pa,sa,pa,dr],[pa,dr,$t,dr],[$t,dr,$t,sa],[$t,sa,pa,sa]].map(ft);if(!yt.reduce(function(Ct,wa){return Ct^!!bs.segmentsIntersect(Qe,fr,Qe+1e6,fr+1e6,wa[0],wa[1],wa[2],wa[3])},!1)){yt.forEach(function(Ct){var wa=bs.segmentsIntersect(sr,kr,Qe,fr,Ct[0],Ct[1],Ct[2],Ct[3]);wa&&(sr=wa.x,kr=wa.y)});var Zr=r.arrowwidth,$r=r.arrowcolor,mt=r.arrowside,Lt=T.append("g").style({opacity:Bu.opacity($r)}).classed("annotation-arrow-g",!0),Gr=Lt.append("path").attr("d","M"+sr+","+kr+"L"+Qe+","+fr).style("stroke-width",Zr+"px").call(Bu.stroke,Bu.rgb($r));if(L2e(Gr,mt,r),s.annotationPosition&&Gr.node().parentNode&&!a){var Bt=Qe,rn=fr;if(r.standoff){var jt=Math.sqrt(Math.pow(Qe-sr,2)+Math.pow(fr-kr,2));Bt+=r.standoff*(sr-Qe)/jt,rn+=r.standoff*(kr-fr)/jt}var dn=Lt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-Bt)+","+(kr-rn),transform:R4(Bt,rn)}).style("stroke-width",Zr+6+"px").call(Bu.stroke,"rgba(0,0,0,0)").call(Bu.fill,"rgba(0,0,0,0)"),pn,Nt;M0.init({element:dn.node(),gd:e,prepFn:function(){var Ct=Ml.getTranslate(M);pn=Ct.x,Nt=Ct.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ct,wa){var il=qt(pn,Nt),ol=il[0]+Ct,ct=il[1]+wa;M.call(Ml.setTranslate,ol,ct),d("x",gs(n,Ct,"x",l,r)),d("y",gs(i,wa,"y",l,r)),r.axref===r.xref&&d("ax",gs(n,Ct,"ax",l,r)),r.ayref===r.yref&&d("ay",gs(i,wa,"ay",l,r)),Lt.attr("transform",R4(Ct,wa)),_.attr({transform:"rotate("+x+","+ol+","+ct+")"})},doneFn:function(){D4.call("_guiRelayout",e,p());var Ct=document.querySelector(".js-notes-box-panel");Ct&&Ct.redraw(Ct.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;M0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Re,Fe){var Qe="pointer";if(r.showarrow)r.axref===r.xref?d("ax",gs(n,Re,"ax",l,r)):d("ax",r.ax+Re),r.ayref===r.yref?d("ay",gs(i,Fe,"ay",l.w,r)):d("ay",r.ay+Fe),ne(Re,Fe);else{if(a)return;var fr,sr;if(n)fr=gs(n,Re,"x",l,r);else{var kr=r._xsize/l.w,zr=r.x+(r._xshift-r.xshift)/l.w-kr/2;fr=M0.align(zr+Re/l.w,kr,0,1,r.xanchor)}if(i)sr=gs(i,Fe,"y",l,r);else{var Yr=r._ysize/l.h,et=r.y-(r._yshift+r.yshift)/l.h-Yr/2;sr=M0.align(et-Fe/l.h,Yr,0,1,r.yanchor)}d("x",fr),d("y",sr),(!n||!i)&&(Qe=M0.getCursor(n?.5:fr,i?.5:sr,r.xanchor,r.yanchor))}_.attr({transform:R4(Re,Fe)+de}),F4(M,Qe)},clickFn:function(Re,Fe){r.captureevents&&e.emit("plotly_clickannotation",k(Fe))},doneFn:function(){F4(M),D4.call("_guiRelayout",e,p());var Re=document.querySelector(".js-notes-box-panel");Re&&Re.redraw(Re.selectedObj)}})}}s.annotationText?G.call(P4.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),D4.call("_guiRelayout",e,p())}):G.call(Y)}});var AO=N(($Fe,TO)=>{"use strict";var bO=Ee(),E2e=br(),xO=_t().arrayEditor;TO.exports={hasClickToShow:D2e,onClick:R2e};function D2e(e,r){var t=wO(e,r);return t.on.length>0||t.explicitOff.length>0}function R2e(e,r){var t=wO(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 N4=Ee(),Pc=Tr();MO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Pc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),N4.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:Pc.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||(Pc.opacity(i)?Pc.rgb(i):Pc.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||Pc.contrast(m)),T=N4.extendFlat({},y.font);T.color||(T.color=x),N4.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var SO=N((QFe,kO)=>{"use strict";var z4=Ee(),Hu=Ir(),P2e=no(),F2e=I4(),N2e=Tc();kO.exports=function(r,t){P2e(r,t,{name:"annotations",handleItemDefaults:I2e})};function I2e(e,r,t){function a(_,b){return z4.coerce(e,r,N2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){F2e(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=Hu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Hu.getFromId(u,v);d._annIndices.push(r._index)}if(Hu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Hu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Hu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(z4.noneOrAll(e,r,["x","y"]),o&&z4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),T=a("yclick");r._xclick=x===void 0?r.x:Hu.cleanPosition(x,u,r.xref),r._yclick=T===void 0?r.y:Hu.cleanPosition(T,u,r.yref)}}}});var CO=N((eNe,LO)=>{"use strict";var O4=Ee(),Uu=Ir(),z2e=Fm().draw;LO.exports=function(r){var t=r._fullLayout,a=O4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return O4.syncOrAsync([z2e,O2e],r)};function O2e(e){var r=e._fullLayout;O4.filterVisible(r.annotations).forEach(function(t){var a=Uu.getFromId(e,t.xref),n=Uu.getFromId(e,t.yref),i=Uu.getRefType(t.xref),o=Uu.getRefType(t.yref);t._extremes={},i==="range"&&qO(t,a),o==="range"&&qO(t,n)})}function qO(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=Uu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Uu.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=Uu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=x}});var DO=N((rNe,EO)=>{"use strict";var B2e=Rr(),H2e=qp();EO.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=H2e(p,t.range):y=Math.pow(10,p),B2e(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var B4=Fm(),RO=AO();PO.exports={moduleType:"component",name:"annotations",layoutAttributes:Tc(),supplyLayoutDefaults:SO(),includeBasePlot:n0()("annotations"),calcAutorange:CO(),draw:B4.draw,drawOne:B4.drawOne,drawRaw:B4.drawRaw,hasClickToShow:RO.hasClickToShow,onClick:RO.onClick,convertCoords:DO()}});var Nm=N((aNe,NO)=>{"use strict";var kt=Tc(),U2e=Qi().overrideAll,G2e=_t().templatedArray;NO.exports=U2e(G2e("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 zO=N((nNe,IO)=>{"use strict";var H4=Ee(),V2e=Ir(),Y2e=no(),W2e=I4(),j2e=Nm();IO.exports=function(r,t,a){Y2e(r,t,{name:"annotations",handleItemDefaults:Z2e,fullLayout:a.fullLayout})};function Z2e(e,r,t,a){function n(l,s){return H4.coerce(e,r,j2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],V2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(W2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),H4.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),H4.noneOrAll(e,r,["ax","ay"])))}});var UO=N((iNe,HO)=>{"use strict";var OO=Ee(),BO=Ir();HO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function U4(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 J2e(e,r){var t=U4(e.projection,U4(e.view,U4(e.model,[r[0],r[1],r[2],1])));return t}GO.exports=J2e});var WO=N((lNe,YO)=>{"use strict";var $2e=Fm().drawRaw,K2e=VO(),Q2e=["x","y","z"];YO.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=K2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),$2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var XO=N((sNe,ZO)=>{"use strict";var e3e=br(),jO=Ee();ZO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Nm()}}},layoutAttributes:Nm(),handleDefaults:zO(),includeBasePlot:r3e,convert:UO(),draw:WO()};function r3e(e,r){var t=e3e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var uNe=xa(),JO=ga(),$O=Ti().line,t3e=fi().dash,vo=bt().extendFlat,a3e=_t().templatedArray,fNe=r0(),Fc=gn(),KO=Tc(),{shapeTexttemplateAttrs:n3e,templatefallbackAttrs:i3e}=Yn(),o3e=Op();QO.exports=a3e("shape",{visible:vo({},Fc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vo({},Fc.legend,{editType:"calc+arraydraw"}),legendgroup:vo({},Fc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vo({},Fc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:JO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vo({},Fc.legendrank,{editType:"calc+arraydraw"}),legendwidth:vo({},Fc.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:vo({},KO.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:vo({},KO.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:vo({},$O.color,{editType:"arraydraw"}),width:vo({},$O.width,{editType:"calc+arraydraw"}),dash:vo({},t3e,{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:n3e({},{keys:Object.keys(o3e)}),texttemplatefallback:i3e({editType:"arraydraw"}),font:JO({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 rB=N((vNe,eB)=>{"use strict";var Nc=Ee(),ei=Ir(),l3e=no(),s3e=G4(),S0=hs();eB.exports=function(r,t){l3e(r,t,{name:"shapes",handleItemDefaults:f3e})};function u3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function f3e(e,r,t){function a(_,b){return Nc.coerce(e,r,s3e,_,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Nc.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,q,E,D;let P=_+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let z=S0.countDefiningCoords(s,o,_);D=ei.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else D=ei.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(D))D.forEach(function(z){ei.getRefType(z)==="range"&&(M=ei.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let I=D[z];ei.getRefType(I)==="range"?(M=ei.getFromId(k,I),q=S0.shapePositionToRange(M),E=S0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):q=E=Nc.identity;let G=_+z,Y=e[G];if(e[G]=q(e[G],!0),w==="pixel"?a(G,p[z]):ei.coercePosition(r,k,a,I,G,d[z]),r[G]=E(r[G]),e[G]=Y,z===0&&w==="pixel"){let V=e[b];e[b]=q(e[b],!0),ei.coercePosition(r,k,a,I,b,.25),r[b]=E(r[b]),e[b]=V}});else{if(ei.getRefType(D)==="range"?(M=ei.getFromId(k,D),M._shapeIndices.push(r._index),E=S0.rangeToShapePosition(M),q=S0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):q=E=Nc.identity,u){let I=_+"0",B=_+"1",G=e[I],Y=e[B];e[I]=q(e[I],!0),e[B]=q(e[B],!0),w==="pixel"?(a(I,p[0]),a(B,p[1])):(ei.coercePosition(r,k,a,D,I,d[0]),ei.coercePosition(r,k,a,D,B,d[1])),r[I]=E(r[I]),r[B]=E(r[B]),e[I]=G,e[B]=Y}if(w==="pixel"){let I=e[b];e[b]=q(e[b],!0),ei.coercePosition(r,k,a,D,b,.25),r[b]=E(r[b]),e[b]=I}}}),u&&Nc.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",u3e(y,T)),a("label.padding"),Nc.coerceFont(a,"label.font",t.font)}}});var nB=N((hNe,aB)=>{"use strict";var c3e=Tr(),tB=Ee();function v3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}aB.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"),tB.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",c3e.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",v3e(o,u)),a("newshape.label.padding"),tB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var cB=N((dNe,fB)=>{"use strict";var V4=Ee(),Ei=Ir(),Wo=Fh(),Y4=hs();fB.exports=function(r){var t=r._fullLayout,a=V4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=Ei.getFromId(r,c),i._extremes[o._id]=Ei.findExtremes(o,v,oB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ei.getFromId(r,i.xref),l=sB(o,i,Wo.paramIsX),l&&(i._extremes[o._id]=Ei.findExtremes(o,l,oB(i))));if(u==="array"){let f=iB(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=Ei.getFromId(r,c),i._extremes[o._id]=Ei.findExtremes(o,v,lB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ei.getFromId(r,i.yref),l=sB(o,i,Wo.paramIsY),l&&(i._extremes[o._id]=Ei.findExtremes(o,l,lB(i))))}};function iB(e,r,t){let a=r[t+"ref"],n=t==="x"?Wo.paramIsX:Wo.paramIsY;function i(c,v){c==="paper"||Ei.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Wo.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=Ei.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=Y4.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function oB(e){return uB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function lB(e){return uB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function uB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?Y4.extractPathCoords(n,i?Wo.paramIsY:Wo.paramIsX):[t,a],u=V4.aggNums(Math.max,null,s),f=V4.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 sB(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(Wo.segmentRE),p,y,m,x,T;for(e.type==="date"&&(u=Y4.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var dB=N((pNe,hB)=>{"use strict";var vB=My();hB.exports={moduleType:"component",name:"shapes",layoutAttributes:G4(),supplyLayoutDefaults:rB(),supplyDrawNewShapeDefaults:nB(),includeBasePlot:n0()("shapes"),calcAutorange:cB(),draw:vB.draw,drawOne:vB.drawOne}});var W4=N((mNe,yB)=>{"use strict";var pB=xa(),h3e=_t().templatedArray,yNe=r0();yB.exports=h3e("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",pB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",pB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var gB=N((gNe,mB)=>{"use strict";var d3e=Ee(),j4=Ir(),p3e=no(),y3e=W4(),m3e="images";mB.exports=function(r,t){var a={name:m3e,handleItemDefaults:g3e};p3e(r,t,a)};function g3e(e,r,t){function a(v,d){return d3e.coerce(e,r,y3e,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 wB=N((bNe,_B)=>{"use strict";var bB=Sr(),b3e=Wr(),Ic=Ir(),xB=ua(),x3e=dl();_B.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var TB=Rr(),_3e=qp();AB.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";kB.exports={moduleType:"component",name:"images",layoutAttributes:W4(),supplyLayoutDefaults:gB(),includeBasePlot:n0()("images"),draw:wB(),convertCoords:MB()}});var Im=N((wNe,qB)=>{"use strict";qB.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 Z4=N((TNe,CB)=>{"use strict";var w3e=ga(),T3e=ui(),A3e=bt().extendFlat,M3e=Qi().overrideAll,k3e=Bp(),LB=_t().templatedArray,S3e=LB("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}});CB.exports=M3e(LB("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:S3e,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:A3e(k3e({editType:"arraydraw"}),{}),font:w3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:T3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var PB=N((ANe,RB)=>{"use strict";var zm=Ee(),EB=no(),DB=Z4(),q3e=Im(),L3e=q3e.name,C3e=DB.buttons;RB.exports=function(r,t){var a={name:L3e,handleItemDefaults:E3e};EB(r,t,a)};function E3e(e,r,t){function a(o,l){return zm.coerce(e,r,DB,o,l)}var n=EB(e,r,{name:"buttons",handleItemDefaults:D3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function D3e(e,r){function t(n,i){return zm.coerce(e,r,C3e,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 IB=N((MNe,NB)=>{"use strict";NB.exports=Ht;var ho=Sr(),FB=Tr(),zc=Wr(),Om=Ee();function Ht(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})}Ht.barWidth=2;Ht.barLength=20;Ht.barRadius=2;Ht.barPad=1;Ht.barColor="#808BA4";Ht.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,q=Ht.barLength+2*Ht.barPad,E=Ht.barWidth+2*Ht.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(FB.fill,Ht.barColor),M?(this.hbar=R.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:D,y:P,width:q,height:E}),this._hbarXMin=D+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,I=Ht.barWidth+2*Ht.barPad,B=Ht.barLength+2*Ht.barPad,G=l+s,Y=u;G+I>i&&(G=i-I);var V=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(FB.fill,Ht.barColor),z?(this.vbar=V.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:G,y:Y,width:I,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,j=z?_+I+.5:_+.5,ee=b-.5,fe=M?w+E+.5:w+.5,ie=n._topdefs.selectAll("#"+H).data(M||z?[0]:[]);if(ie.exit().remove(),ie.enter().append("clipPath").attr("id",H).append("rect"),M||z?(this._clipRect=ie.select("rect").attr({x:Math.floor(X),y:Math.floor(ee),width:Math.ceil(j)-Math.floor(X),height:Math.ceil(fe)-Math.floor(ee)}),this.container.call(zc.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(zc.setClipUrl,null),delete this._clipRect),M||z){var ue=ho.behavior.drag().on("dragstart",function(){ho.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=ho.behavior.drag().on("dragstart",function(){ho.event.sourceEvent.preventDefault(),ho.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ht.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(zc.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)};Ht.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ho.event.dx),this.vbar&&(t-=ho.event.dy),this.setTranslate(r,t)};Ht.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ho.event.deltaY),this.vbar&&(t+=ho.event.deltaY),this.setTranslate(r,t)};Ht.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Om.constrain(ho.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=Om.constrain(ho.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ht.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Om.constrain(r||0,0,a),t=Om.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(zc.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(zc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(zc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var jB=N((kNe,WB)=>{"use strict";var Oc=Sr(),q0=ta(),L0=Tr(),Bc=Wr(),ri=Ee(),Bm=Aa(),R3e=_t().arrayEditor,OB=Oa().LINE_SPACING,wr=Im(),P3e=IB();WB.exports=function(r){var t=r._fullLayout,a=ri.filterVisible(t[wr.name]);function n(v){q0.autoMargin(r,VB(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(){Oc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,F3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ri.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var U3e=Im();ZB.exports={moduleType:"component",name:U3e.name,layoutAttributes:Z4(),supplyLayoutDefaults:PB(),draw:jB()}});var E0=N((qNe,JB)=>{"use strict";JB.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 K4=N((LNe,QB)=>{"use strict";var $B=ga(),G3e=Bp(),V3e=bt().extendDeepAll,Y3e=Qi().overrideAll,W3e=ih(),KB=_t().templatedArray,Gu=E0(),j3e=KB("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}});QB.exports=Y3e(KB("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:V3e(G3e({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:W3e.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:$B({})},font:$B({}),activebgcolor:{valType:"color",dflt:Gu.gripBgActiveColor},bgcolor:{valType:"color",dflt:Gu.railBgColor},bordercolor:{valType:"color",dflt:Gu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Gu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Gu.tickLength},tickcolor:{valType:"color",dflt:Gu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Gu.minorTickLength}}),"arraydraw","from-root")});var aH=N((CNe,tH)=>{"use strict";var Hc=Ee(),eH=no(),rH=K4(),Z3e=E0(),X3e=Z3e.name,J3e=rH.steps;tH.exports=function(r,t){eH(r,t,{name:X3e,handleItemDefaults:$3e})};function $3e(e,r,t){function a(c,v){return Hc.coerce(e,r,rH,c,v)}for(var n=eH(e,r,{name:"steps",handleItemDefaults:K3e}),i=0,o=0;o{"use strict";var po=Sr(),Hm=ta(),xs=Tr(),yo=Wr(),ti=Ee(),Q3e=ti.strTranslate,D0=Aa(),ebe=_t().arrayEditor,Fr=E0(),rw=Oa(),oH=rw.LINE_SPACING,Q4=rw.FROM_TL,ew=rw.FROM_BR;vH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=rbe(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),Hm.autoMargin(r,lH(f))}if(i.exit().each(function(){po.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,tbe);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",Q3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function tw(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function iH(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 ube(e,r,t){var a=t._dims,n=ti.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(fH,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),yo.setTranslate(n,0,a.currentValueTotalHeight)}function fbe(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ti.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"),yo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var pH=N((DNe,dH)=>{"use strict";var cbe=E0();dH.exports={moduleType:"component",name:cbe.name,layoutAttributes:K4(),supplyLayoutDefaults:aH(),draw:hH()}});var Gm=N((RNe,mH)=>{"use strict";var yH=ui();mH.exports={bgcolor:{valType:"color",dflt:yH.background,editType:"plot"},bordercolor:{valType:"color",dflt:yH.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 aw=N((PNe,gH)=>{"use strict";gH.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 Vm=N((FNe,bH)=>{"use strict";bH.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 wH=N(Wm=>{"use strict";var vbe=ua(),hbe=Aa(),xH=Vm(),dbe=Oa().LINE_SPACING,Ym=xH.name;function _H(e){var r=e&&e[Ym];return r&&r.visible}Wm.isVisible=_H;Wm.makeData=function(e){for(var r=vbe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var jm=Ee(),TH=_t(),AH=ua(),pbe=Gm(),ybe=aw();MH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;jm.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=TH.newContainer(i,"rangeslider");function s(w,k){return jm.coerce(o,l,pbe,w,k)}var u,f;function c(w,k){return jm.coerce(u,f,ybe,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")))===AH.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),y=jm.simpleMap(p,AH.id2name),m=0;m{"use strict";var mbe=ua().list,gbe=_h().getAutoRange,bbe=Vm();SH.exports=function(r){for(var t=mbe(r,"x",!0),a=0;a{"use strict";var Zm=Sr(),xbe=br(),_be=ta(),Jt=Ee(),Xm=Jt.strTranslate,CH=Wr(),_s=Tr(),wbe=oc(),Tbe=Ci(),nw=ua(),Abe=yi(),Mbe=ss(),Ur=Vm();EH.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 kbe(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=Zm.event,u=s.target,f=LH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Abe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(x){var T=LH(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 Nbe=Ee(),Ibe=Gm(),zbe=aw(),iw=wH();RH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Nbe.extendFlat({},Ibe,{yaxis:zbe})}}},layoutAttributes:Gm(),handleDefaults:kH(),calcAutorange:qH(),draw:DH(),isVisible:iw.isVisible,makeData:iw.makeData,autoMarginOpts:iw.autoMarginOpts}});var Jm=N((HNe,NH)=>{"use strict";var Obe=ga(),FH=ui(),Bbe=_t().templatedArray,Hbe=Bbe("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"});NH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Hbe,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:Obe({editType:"plot"}),bgcolor:{valType:"color",dflt:FH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:FH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var ow=N((UNe,IH)=>{"use strict";IH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var BH=N((GNe,OH)=>{"use strict";var $m=Ee(),Ube=Tr(),Gbe=_t(),Vbe=no(),zH=Jm(),lw=ow();OH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Gbe.newContainer(t,"rangeselector");function s(d,p){return $m.coerce(o,l,zH,d,p)}var u=Vbe(o,l,{name:"buttons",handleItemDefaults:Ybe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Wbe(t,a,n);s("x",c[0]),s("y",c[1]),$m.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),$m.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Ube.contrast(v,lw.lightAmount,lw.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ybe(e,r,t,a){var n=a.calendar;function i(s,u){return $m.coerce(e,r,zH.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 Wbe(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=ob(),Zbe=Ee().titleCase;HH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Xbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Xbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=jbe["utc"+Zbe(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 JH=N((YNe,XH)=>{"use strict";var Qm=Sr(),Jbe=br(),$be=ta(),GH=Tr(),ZH=Wr(),kl=Ee(),VH=kl.strTranslate,Km=Aa(),Kbe=ua(),fw=Oa(),YH=fw.LINE_SPACING,WH=fw.FROM_TL,jH=fw.FROM_BR,uw=ow(),Qbe=UH();XH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(exe(r),rxe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Qm.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=Qm.select(this),c=Qbe(o,u);u._isActive=txe(o,u,c),f.call(sw,l,u),f.call(nxe,l,u,r),f.on("click",function(){r._dragged||Jbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(sw,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(sw,l,u)})}),oxe(r,s,l,o._name,i)})};function exe(e){for(var r=Kbe.list(e,"x",!0),t=[],a=0;a{"use strict";$H.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Jm()}}},layoutAttributes:Jm(),handleDefaults:BH(),draw:JH()}});var Uc=N(cw=>{"use strict";var QH=bt().extendFlat;cw.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:QH({},t,{}),y:QH({},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};cw.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 lxe=Ee(),sxe=Ff().counter,uxe=Uc().attributes,eU=xa().idRegex,fxe=_t(),vw={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:[sxe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eU.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:uxe({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 eg(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 cxe(e,r){var t=e.grid||{},a=eg(r,t,"x"),n=eg(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=fxe.newContainer(r,"grid");function v(k,M){return lxe.coerce(t,c,vw,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:rU("x",v,T,b,p),y:rU("y",v,_,w,d,x)}}function rU(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";iU.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 sU=N((JNe,lU)=>{"use strict";var oU=Rr(),hxe=br(),dxe=Ee(),pxe=_t(),yxe=hw();lU.exports=function(e,r,t,a){var n="error_"+a.axis,i=pxe.newContainer(r,n),o=e[n]||{};function l(p,y){return dxe.coerce(o,i,yxe,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||oU(o.thickness)||oU(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",hxe.traceIs(r,"gl3d")?0:4))}}});var dw=N(($Ne,fU)=>{"use strict";fU.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=uU(t,r.value),l=uU(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 uU(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 hU=N((KNe,vU)=>{"use strict";var pw=Rr(),mxe=br(),yw=Ir(),gxe=Ee(),bxe=dw();vU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var dU=Sr(),ws=Rr(),xxe=Wr(),_xe=Rn();pU.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=_xe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=dU.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),xxe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=dU.select(this),b=wxe(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 q=_.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=!q.size(),i?q=_.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",w)}else q.remove()}})}})};function wxe(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 bU=N((eIe,gU)=>{"use strict";var Txe=Sr(),mU=Tr();gU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Txe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(mU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(mU.stroke,i.color)})}});var wU=N((rIe,_U)=>{"use strict";var R0=Ee(),xU=Qi().overrideAll,P0=hw(),Vu={error_x:R0.extendFlat({},P0),error_y:R0.extendFlat({},P0)};delete Vu.error_x.copy_zstyle;delete Vu.error_y.copy_zstyle;delete Vu.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;_U.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Vu,bar:Vu,histogram:Vu,scatter3d:xU(F0,"calc","nested"),scattergl:xU(Vu,"calc","nested")}},supplyDefaults:sU(),calc:hU(),makeComputeError:dw(),plot:yU(),style:bU(),hoverInfo:Axe};function Axe(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 AU=N((tIe,TU)=>{"use strict";TU.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 EU=N((aIe,CU)=>{"use strict";var Ts=Sr(),mw=Sn(),tg=ta(),MU=br(),Sl=Ir(),rg=yi(),Di=Ee(),go=Di.strTranslate,LU=bt().extendFlat,gw=ss(),mo=Wr(),bw=Tr(),Mxe=oc(),kxe=Aa(),Sxe=jn().flipScale,qxe=S4(),Lxe=q4(),Cxe=di(),xw=Oa(),kU=xw.LINE_SPACING,SU=xw.FROM_TL,qU=xw.FROM_BR,Ot=AU().cn;function Exe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ot.colorbar).data(Dxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ot.colorbar,!0),t.each(function(a){var n=Ts.select(this);Di.ensureSingle(n,"rect",Ot.cbbg),Di.ensureSingle(n,"g",Ot.cbfills),Di.ensureSingle(n,"g",Ot.cblines),Di.ensureSingle(n,"g",Ot.cbaxis,function(o){o.classed(Ot.crisp,!0)}),Di.ensureSingle(n,"g",Ot.cbtitleunshift,function(o){o.append("g").classed(Ot.cbtitle,!0)}),Di.ensureSingle(n,"rect",Ot.cboutline);var i=Rxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Pxe(n,a,e)}),t.exit().each(function(a){tg.autoMargin(e,a._id)}).remove(),t.order()}function Dxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return LU(_,{_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?Sxe(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(W)/Math.LN10));he*=Q*Di.roundUp(W/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=he}se.domain=a?[K+p/b.h,K+H-p/b.h]:[K+d/b.w,K+H-d/b.w],se.setScale(),e.attr("transform",go(Math.round(b.l),Math.round(b.t)));var Z=e.select("."+Ot.cbtitleunshift).attr("transform",go(-Math.round(b.l),-Math.round(b.t))),le=se.ticklabelposition,ve=se.title.font.size,me=e.select("."+Ot.cbaxis),Ce,Pe=0,Le=0;function ze(Ue,oe){var Ae={propContainer:se,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Ot.cbtitle)},Xe=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),Mxe.draw(t,Ue,LU(Ae,oe||{}))}function Be(){if(a&&ce||!a&&!ce){var Ue,oe;q==="top"&&(Ue=d+b.l+X*y,oe=p+b.t+j*(1-K-H)+3+ve*.75),q==="bottom"&&(Ue=d+b.l+X*y,oe=p+b.t+j*(1-K)-3-ve*.25),q==="right"&&(oe=p+b.t+j*m+3+ve*.75,Ue=d+b.l+X*K),ze(se._id+"title",{attributes:{x:Ue,y:oe,"text-anchor":a?"start":"middle"}})}}function Ge(){if(a&&!ce||!a&&ce){var Ue=se.position||0,oe=se._offset+se._length/2,Ae,Xe;if(q==="right")Xe=oe,Ae=b.l+X*Ue+10+ve*(se.showticklabels?1:.5);else if(Ae=oe,q==="bottom"&&(Xe=b.t+j*Ue+10+(le.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=M.text.split("
").length;Xe=b.t+j*Ue+10-G-kU*ve*hr}ze((a?"h":"v")+se._id+"title",{avoid:{selection:Ts.select(t).selectAll("g."+se._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:Xe,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!ce||a&&ce){var Ue=e.select("."+Ot.cbtitle),oe=Ue.select("text"),Ae=[-s/2,s/2],Xe=Ue.select(".h"+se._id+"title-math-group").node(),hr=15.6;oe.node()&&(hr=parseInt(oe.node().style.fontSize,10)*kU);var Ne;if(Xe?(Ne=mo.bBox(Xe),Le=Ne.width,Pe=Ne.height,Pe>hr&&(Ae[1]-=(Pe-hr)/2)):oe.node()&&!oe.classed(Ot.jsPlaceholder)&&(Ne=mo.bBox(oe.node()),Le=Ne.width,Pe=Ne.height),a){if(Pe){if(Pe+=5,q==="top")se.domain[1]-=Pe/b.h,Ae[1]*=-1;else{se.domain[0]+=Pe/b.h;var Te=kxe.lineCount(oe);Ae[1]+=(1-Te)*hr}Ue.attr("transform",go(Ae[0],Ae[1])),se.setScale()}}else Le&&(q==="right"&&(se.domain[0]+=(Le+ve/2)/b.w),Ue.attr("transform",go(Ae[0],Ae[1])),se.setScale())}e.selectAll("."+Ot.cbfills+",."+Ot.cblines).attr("transform",a?go(0,Math.round(b.h*(1-se.domain[1]))):go(Math.round(b.w*se.domain[0]),0)),me.attr("transform",a?go(0,Math.round(-b.t)):go(Math.round(-b.l),0));var qe=e.select("."+Ot.cbfills).selectAll("rect."+Ot.cbfill).attr("style","").data(I);qe.enter().append("rect").classed(Ot.cbfill,!0).attr("style",""),qe.exit().remove();var He=E.map(se.c2p).map(Math.round).sort(function(rr,Ke){return rr-Ke});qe.each(function(rr,Ke){var Ie=[Ke===0?E[0]:(I[Ke]+I[Ke-1])/2,Ke===I.length-1?E[1]:(I[Ke]+I[Ke+1])/2].map(se.c2p).map(Math.round);a&&(Ie[1]=Di.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,He[0],He[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)mo.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(rr).replace("e-","");ne.attr("fill",mw(de).toHexString())}});var Je=e.select("."+Ot.cblines).selectAll("path."+Ot.cbline).data(k.color&&k.width?B:[]);Je.enter().append("path").classed(Ot.cbline,!0),Je.exit().remove(),Je.each(function(rr){var Ke=ee,Ie=Math.round(se.c2p(rr))+k.width/2%1;Ts.select(this).attr("d","M"+(a?Ke+","+Ie:Ie+","+Ke)+(a?"h":"v")+G).call(mo.lineGroupStyle,k.width,D(rr),k.dash)}),me.selectAll("g."+se._id+"tick,path").remove();var Ve=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),Ze=Sl.calcTicks(se),or=Sl.getTickSigns(se)[2];return Sl.drawTicks(t,se,{vals:se.ticks==="inside"?Sl.clipEnds(se,Ze):Ze,layer:me,path:Sl.makeTickPath(se,Ve,or),transFn:Sl.makeTransTickFn(se)}),Sl.drawLabels(t,se,{vals:Ze,layer:me,transFn:Sl.makeTransTickLabelFn(se),labelFns:Sl.makeLabelFns(se,Ve)})}function Oe(){var Ue,oe=G+s/2;le.indexOf("inside")===-1&&(Ue=mo.bBox(me.node()),oe+=a?Ue.width:Ue.height),Ce=Z.select("text");var Ae=0,Xe=a&&q==="top",hr=!a&&q==="right",Ne=0;if(Ce.node()&&!Ce.classed(Ot.jsPlaceholder)){var Te,qe=Z.select(".h"+se._id+"title-math-group").node();qe&&(a&&ce||!a&&!ce)?(Ue=mo.bBox(qe),Ae=Ue.width,Te=Ue.height):(Ue=mo.bBox(Z.node()),Ae=Ue.right-b.l-(a?ee:we),Te=Ue.bottom-b.t-(a?we:ee),!a&&q==="top"&&(oe+=Ue.height,Ne=Ue.height)),hr&&(Ce.attr("transform",go(Ae/2+ve/2,0)),Ae*=2),oe=Math.max(oe,a?Ae:Te)}var He=(a?d:p)*2+oe+u+s/2,Je=0;!a&&M.text&&v==="bottom"&&m<=0&&(Je=He/2,He+=Je,Ne+=Je),_._hColorbarMoveTitle=Je,_._hColorbarMoveCBTitle=Ne;var Ve=u+s,Ze=(a?ee:we)-Ve/2-(a?d:0),or=(a?we:ee)-(a?V:p+Ne-Je);e.select("."+Ot.cbbg).attr("x",Ze).attr("y",or).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(V+Ve,2)).call(bw.fill,f).call(bw.stroke,r.bordercolor).style("stroke-width",u);var rr=hr?Math.max(Ae-10,0):0;e.selectAll("."+Ot.cboutline).attr("x",(a?ee:we+d)+rr).attr("y",(a?we+p-V:ee)+(Xe?Pe:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(V-(a?2*p+Pe:2*d+rr),2)).call(bw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?fe*He:0,Ie=a?0:(1-ie)*He-Ne;if(Ke=T?b.l-Ke:-Ke,Ie=x?b.t-Ie:-Ie,e.attr("transform",go(Ke,Ie)),!a&&(u||mw(f).getAlpha()&&!mw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,Re=e.select("."+Ot.cbbg).node(),Fe=mo.bBox(Re),Qe=mo.getTranslate(e),fr=2;ne.each(function(pa,$t){var sa=0,dr=de-1;if($t===sa||$t===dr){var yt=mo.bBox(this),Zr=mo.getTranslate(this),$r;if($t===dr){var mt=yt.right+Zr.x,Lt=Fe.right+Qe.x+we-u-fr+y;$r=Lt-mt,$r>0&&($r=0)}else if($t===sa){var Gr=yt.left+Zr.x,Bt=Fe.left+Qe.x+we+u+fr;$r=Bt-Gr,$r<0&&($r=0)}$r&&(de<3?this.setAttribute("transform","translate("+$r+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},kr=SU[c],zr=qU[c],Yr=SU[v],et=qU[v],qt=He-G;a?(i==="pixels"?(sr.y=m,sr.t=V*Yr,sr.b=V*et):(sr.t=sr.b=0,sr.yt=m+n*Yr,sr.yb=m-n*et),l==="pixels"?(sr.x=y,sr.l=He*kr,sr.r=He*zr):(sr.l=qt*kr,sr.r=qt*zr,sr.xl=y-o*kr,sr.xr=y+o*zr)):(i==="pixels"?(sr.x=y,sr.l=V*kr,sr.r=V*zr):(sr.l=sr.r=0,sr.xl=y+n*kr,sr.xr=y-n*zr),l==="pixels"?(sr.y=1-m,sr.t=He*Yr,sr.b=He*et):(sr.t=qt*Yr,sr.b=qt*et,sr.yt=m-o*Yr,sr.yb=m+o*et));var ft=r.y<.5?"b":"t",Ft=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Tt={r:_.width-Ze-Ke,l:Ze+sr.r,b:_.height-or-Ie,t:or+sr.b};T&&x?tg.autoMargin(t,r._id,sr):T?t._fullLayout._reservedMargin[r._id][ft]=Tt[ft]:x||a?t._fullLayout._reservedMargin[r._id][Ft]=Tt[Ft]:t._fullLayout._reservedMargin[r._id][ft]=Tt[ft]}return Di.syncOrAsync([tg.previousPromises,Be,De,Ge,tg.previousPromises,Oe],t)}function Pxe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;rg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),gw(e)},moveFn:function(u,f){e.attr("transform",o+go(u,f)),l=rg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=rg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=rg.getCursor(l,s,r.xanchor,r.yanchor);gw(e,c)},doneFn:function(){if(gw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?MU.call("_guiRestyle",t,u,r._traceIndex):MU.call("_guiRelayout",t,u)}}})}function Fxe(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";DU.exports={moduleType:"component",name:"colorbar",attributes:d1(),supplyDefaults:gx(),draw:EU().draw,hasColorbar:cx()}});var FU=N((iIe,PU)=>{"use strict";PU.exports={moduleType:"component",name:"legend",layoutAttributes:h5(),supplyLayoutDefaults:p5(),draw:q5(),style:A5()}});var IU=N((oIe,NU)=>{"use strict";NU.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 OU=N((lIe,zU)=>{"use strict";zU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var ww=N((sIe,GU)=>{"use strict";var Ixe=br(),UU=Ee(),_w=UU.extendFlat,BU=UU.extendDeep;function HU(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 zxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}GU.exports=function(r,t){var a,n=r.data,i=r.layout,o=BU([],n),l=BU({},i,HU(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 Oxe=su().EventEmitter,Bxe=br(),Hxe=Ee(),VU=Tl(),Uxe=ww(),Gxe=sm(),Vxe=um();function Yxe(e,r){var t=new Oxe,a=Uxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=VU.getDelay(n._fullLayout);setTimeout(function(){var s=Gxe(n),u=document.createElement("canvas");u.id=Hxe.randstr(),t=Vxe({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=VU.getRedrawFunc(n);return Bxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}YU.exports=Yxe});var XU=N((fIe,ZU)=>{"use strict";var jU=Tl(),Wxe={getDelay:jU.getDelay,getRedrawFunc:jU.getRedrawFunc,clone:ww(),toSVG:sm(),svgToImg:um(),toImage:WU(),downloadImage:W_()};ZU.exports=Wxe});var $U=N(ql=>{"use strict";ql.version=gp().version;eM();GS();var jxe=br(),N0=ql.register=jxe.register,Aw=fI(),JU=Object.keys(Aw);for(ag=0;ag{"use strict";KU.exports=$U()});var Wu=N((hIe,nG)=>{"use strict";var Wt=Ti(),eG=ao().axisHoverFormat,{hovertemplateAttrs:Zxe,texttemplateAttrs:Xxe,templatefallbackAttrs:rG}=Yn(),aG=qo(),Jxe=ga(),tG=g0(),$xe=fi().pattern,Yu=bt().extendFlat,Mw=Jxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Kxe=Wt.marker,Qxe=Kxe.line,e5e=Yu({},Qxe.width,{dflt:0}),r5e=Yu({width:e5e,editType:"calc"},aG("marker.line")),t5e=Yu({line:r5e,editType:"calc"},aG("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:$xe,cornerradius:{valType:"any",editType:"calc"}});nG.exports={x:Wt.x,x0:Wt.x0,dx:Wt.dx,y:Wt.y,y0:Wt.y0,dy:Wt.dy,xperiod:Wt.xperiod,yperiod:Wt.yperiod,xperiod0:Wt.xperiod0,yperiod0:Wt.yperiod0,xperiodalignment:Wt.xperiodalignment,yperiodalignment:Wt.yperiodalignment,xhoverformat:eG("x"),yhoverformat:eG("y"),text:Wt.text,texttemplate:Xxe({editType:"plot"},{keys:tG.eventDataKeys}),texttemplatefallback:rG({editType:"plot"}),hovertext:Wt.hovertext,hovertemplate:Zxe({},{keys:tG.eventDataKeys}),hovertemplatefallback:rG(),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:Yu({},Mw,{}),insidetextfont:Yu({},Mw,{}),outsidetextfont:Yu({},Mw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yu({},Wt.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:t5e,offsetgroup:Wt.offsetgroup,alignmentgroup:Wt.alignmentgroup,selected:{marker:{opacity:Wt.selected.marker.opacity,color:Wt.selected.marker.color,editType:"style"},textfont:Wt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Wt.unselected.marker.opacity,color:Wt.unselected.marker.color,editType:"style"},textfont:Wt.unselected.textfont,editType:"style"},zorder:Wt.zorder}});var ig=N((dIe,iG)=>{"use strict";iG.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 kw=N((pIe,sG)=>{"use strict";var a5e=Tr(),oG=jn().hasColorscale,lG=yl(),n5e=Ee().coercePattern;sG.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=oG(r,"marker");l&&lG(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",a5e.defaultLine),oG(r,"marker.line")&&lG(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),n5e(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var ju=N((yIe,dG)=>{"use strict";var uG=Rr(),Vc=Ee(),fG=Tr(),i5e=br(),o5e=X_(),l5e=Mc(),s5e=kw(),u5e=y0(),cG=Wu(),og=Vc.coerceFont;function f5e(e,r,t,a){function n(u,f){return Vc.coerce(e,r,cG,u,f)}var i=o5e(e,r,a,n);if(!i){r.visible=!1;return}l5e(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");hG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s5e(e,r,n,t,a);var l=(r.marker.line||{}).color,s=i5e.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||fG.defaultLine,{axis:"y"}),s(e,r,l||fG.defaultLine,{axis:"x",inherit:"y"}),Vc.coerceSelectionMarkerOpacity(r,n)}function c5e(e,r){var t,a;function n(l,s){return Vc.coerce(a._input,a,cG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&uG(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function hG(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=og(a,"textfont",t.font),x=Vc.extendFlat({},m),T=e.textfont&&e.textfont.color,_=!T;if(_&&delete x.color,og(a,"insidetextfont",x),v){var b=Vc.extendFlat({},m);_&&delete b.color,og(a,"pathbar.textfont",b)}y&&og(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")}dG.exports={supplyDefaults:f5e,crossTraceDefaults:c5e,handleText:hG,validateCornerradius:vG}});var Sw=N((mIe,pG)=>{"use strict";var v5e=br(),h5e=Ir(),d5e=Ee(),p5e=ig(),y5e=ju().validateCornerradius;pG.exports=function(e,r,t){function a(y,m){return d5e.coerce(e,r,p5e,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=h5e.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=y5e(p)}});var lg=N((gIe,yG)=>{"use strict";var Yc=Ee();yG.exports=function(r,t){for(var a=0;a{"use strict";var mG=Ir(),gG=Sc(),bG=jn().hasColorscale,xG=ec(),m5e=lg(),g5e=mm();_G.exports=function(r,t){var a=mG.getFromId(r,t.xaxis||"x"),n=mG.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=gG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=gG(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 b5e=Sr(),x5e=Ee();function _5e(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=b5e.select(this).select("text");x5e.setTransormAndDisplay(u,s)}})}}function w5e(e,r,t){if(t.uniformtext.mode){var a=TG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var A5e=Rr(),M5e=Sn(),MG=Ee().isArrayOrTypedArray;Zu.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};Zu.coerceNumber=function(e,r,t){if(A5e(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};Zu.coerceColor=function(e,r,t){return M5e(r).isValid()?r:t!==void 0?t:e.dflt};Zu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Zu.getValue=function(e,r){var t;return MG(e)?r{"use strict";var z0=Sr(),k5e=Tr(),O0=Wr(),kG=Ee(),SG=br(),qG=I0().resizeText,qw=Wu(),S5e=qw.textfont,q5e=qw.insidetextfont,L5e=qw.outsidetextfont,Ga=sg();function C5e(e){var r=z0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");qG(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;LG(i,o,e)}),SG.getComponentMethod("errorbars","style")(r)}function LG(e,r,t){O0.pointStyle(e.selectAll("path"),r,t),CG(e,r,t)}function CG(e,r,t){e.selectAll("text").each(function(a){var n=z0.select(this),i=kG.ensureUniformFontSize(t,EG(n,a,r,t));O0.font(n,i)})}function E5e(e,r,t){var a=r[0].trace;a.selectedpoints?D5e(t,a,e):(LG(t,a,e),SG.getComponentMethod("errorbars","style")(t))}function D5e(e,r,t){O0.selectedPointStyle(e.selectAll("path"),r),R5e(e.selectAll("text"),r,t)}function R5e(e,r,t){e.each(function(a){var n=z0.select(this),i;if(a.selected){i=kG.ensureUniformFontSize(t,EG(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 EG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=FG(r,t);i=RG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=PG(t,r.i,n));return i}function DG(e,r,t){return Lw(S5e,e.textfont,r,t)}function RG(e,r,t,a){var n=DG(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:k5e.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}),Lw(q5e,e.insidetextfont,r,n)}function PG(e,r,t){var a=DG(e,r,t);return Lw(L5e,e.outsidetextfont,r,a)}function Lw(e,r,t,a){r=r||{};var n=Ga.getValue(r.family,t),i=Ga.getValue(r.size,t),o=Ga.getValue(r.color,t),l=Ga.getValue(r.weight,t),s=Ga.getValue(r.style,t),u=Ga.getValue(r.variant,t),f=Ga.getValue(r.textcase,t),c=Ga.getValue(r.lineposition,t),v=Ga.getValue(r.shadow,t);return{family:Ga.coerceString(e.family,n,a.family),size:Ga.coerceNumber(e.size,i,a.size),color:Ga.coerceColor(e.color,o,a.color),weight:Ga.coerceString(e.weight,l,a.weight),style:Ga.coerceString(e.style,s,a.style),variant:Ga.coerceString(e.variant,u,a.variant),textcase:Ga.coerceString(e.variant,f,a.textcase),lineposition:Ga.coerceString(e.variant,c,a.lineposition),shadow:Ga.coerceString(e.variant,v,a.shadow)}}function FG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}NG.exports={style:C5e,styleTextPoints:CG,styleOnSelect:E5e,getInsideTextFont:RG,getOutsideTextFont:PG,getBarColor:FG,resizeText:qG}});var Dw=N((TIe,VG)=>{"use strict";var ug=Sr(),fg=Rr(),Da=Ee(),P5e=Aa(),F5e=Tr(),As=Wr(),N5e=br(),cg=Ir().tickText,IG=I0(),I5e=IG.recordMinTextSize,z5e=IG.clearMinTextSize,Cw=Wc(),jc=sg(),O5e=g0(),zG=Wu(),B5e=zG.text,H5e=zG.textposition,U5e=Co().appendArrayPointValue,cn=O5e.TEXTPAD;function G5e(e){return e.id}function V5e(e){if(e.ids)return G5e}function Ew(e){return(e>0)-(e<0)}function jo(e,r){return e0}function W5e(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},z5e("bar",s));var f=Da.makeTraceGroups(a,t,"trace bars").each(function(c){var v=ug.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=BG(n),M=Da.ensureSingle(v,"g","points"),q=V5e(d),E=M.selectAll("g.point").data(Da.identity,q);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=ug.select(this),I=Y5e(P,o,l,w),B=I[0][0],G=I[0][1],Y=I[1][0],V=I[1][1],H=(w?G-B:V-Y)===0;H&&_&&jc.getLineWidth(d,P)&&(H=!1),H||(H=!fg(B)||!fg(G)||!fg(Y)||!fg(V)),P.isBlank=H,H&&(w?G=B:V=Y),b&&!H&&(w?(B-=jo(B,G)*b,G+=jo(B,G)*b):(Y-=jo(Y,V)*b,V+=jo(Y,V)*b));var X,j;if(d.type==="waterfall"){if(!H){var ee=d[P.dir].marker;X=ee.line.width,j=ee.color}}else X=jc.getLineWidth(d,P),j=P.mc||d.marker.color;function fe(oe){var Ae=ug.round(X/2%1,2);return n.gap===0&&n.groupgap===0?ug.round(Math.round(oe)-Ae,2):oe}function ie(oe,Ae,Xe){return Xe&&oe===Ae?oe:Math.abs(oe-Ae)>=2?fe(oe):oe>Ae?Math.ceil(oe):Math.floor(oe)}var ue=F5e.opacity(j),K=ue<1||X>.01?fe:ie;e._context.staticPlot||(B=K(B,G,w),G=K(G,B,w),Y=K(Y,V,!w),V=K(V,Y,!w));var we=w?o.c2p:l.c2p,se;P.s0>0?se=P._sMax:P.s0<0?se=P._sMin:se=P.s1>0?P._sMax:P._sMin;function ce(oe,Ae){if(!oe)return 0;var Xe=Math.abs(w?V-Y:G-B),hr=Math.abs(w?G-B:V-Y),Ne=K(Math.abs(we(se,!0)-we(0,!0))),Te=P.hasB?Math.min(Xe/2,hr/2):Math.min(Xe/2,Ne),qe;if(Ae==="%"){var He=Math.min(50,oe);qe=Xe*(He/100)}else qe=oe;return K(Math.max(Math.min(qe,Te),0))}var he=T||x?ce(p.cornerradiusvalue,p.cornerradiusform):0,ye,W,Q="M"+B+","+Y+"V"+V+"H"+G+"V"+Y+"Z",Z=0;if(he&&P.s){var le=Ew(P.s0)===0||Ew(P.s)===Ew(P.s0)?P.s1:P.s0;if(Z=K(P.hasB?0:Math.abs(we(se,!0)-we(le,!0))),Z0?Math.sqrt(Z*(2*he-Z)):0,ze=ve>0?Math.max:Math.min;ye="M"+B+","+Y+"V"+(V-Pe*me)+"H"+ze(G-(he-Z)*ve,B)+"A "+he+","+he+" 0 0 "+Ce+" "+G+","+(V-he*me-Le)+"V"+(Y+he*me+Le)+"A "+he+","+he+" 0 0 "+Ce+" "+ze(G-(he-Z)*ve,B)+","+(Y+Pe*me)+"Z"}else if(P.hasB)ye="M"+(B+he*ve)+","+Y+"A "+he+","+he+" 0 0 "+Ce+" "+B+","+(Y+he*me)+"V"+(V-he*me)+"A "+he+","+he+" 0 0 "+Ce+" "+(B+he*ve)+","+V+"H"+(G-he*ve)+"A "+he+","+he+" 0 0 "+Ce+" "+G+","+(V-he*me)+"V"+(Y+he*me)+"A "+he+","+he+" 0 0 "+Ce+" "+(G-he*ve)+","+Y+"Z";else{W=Math.abs(V-Y)+Z;var Be=W0?Math.sqrt(Z*(2*he-Z)):0,De=me>0?Math.max:Math.min;ye="M"+(B+Be*ve)+","+Y+"V"+De(V-(he-Z)*me,Y)+"A "+he+","+he+" 0 0 "+Ce+" "+(B+he*ve-Ge)+","+V+"H"+(G-he*ve+Ge)+"A "+he+","+he+" 0 0 "+Ce+" "+(G-Be*ve)+","+De(V-(he-Z)*me,Y)+"V"+Y+"Z"}}else ye=Q}else ye=Q;var Oe=OG(Da.ensureSingle(z,"path"),s,n,i);if(Oe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-B)*(V-Y))||H&&e._context.staticPlot?"M0,0Z":ye).call(As.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ue=As.makePointStyleFns(d);As.singlePointStyle(P,Oe,d,Ue,e)}j5e(e,r,z,c,R,B,G,Y,V,he,Z,n,i),r.layerClipId&&As.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;As.setClipUrl(v,D?null:r.layerClipId,e)});N5e.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(W,Q,Z){var le=Da.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(As.font,Z).call(P5e.convertToTspans,e);return le}var T=a[0].trace,_=T.orientation==="h",b=J5e(y,a,n,d,p);m=$5e(T,n);var w=c.mode==="stack"||c.mode==="relative",k=a[n],M=!w||k._outmost,q=k.hasB,E=u&&u-f>cn;if(!b||m==="none"||(k.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var D=y.font,P=Cw.getBarColor(a[n],T),R=Cw.getInsideTextFont(T,n,D,P),z=Cw.getOutsideTextFont(T,n,D),I=T.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&fe>0,K;E?q?K=Xu(V-2*u,H,ee,fe,_)||Xu(V,H-2*u,ee,fe,_):_?K=Xu(V-(u-f),H,ee,fe,_)||Xu(V,H-2*(u-f),ee,fe,_):K=Xu(V,H-(u-f),ee,fe,_)||Xu(V-2*(u-f),H,ee,fe,_):K=Xu(V,H,ee,fe,_),ue&&K?m="inside":(m="outside",X.remove(),X=null)}else m="inside";if(!X){ie=Da.ensureUniformFontSize(e,m==="outside"?z:R),X=x(t,b,ie);var we=X.attr("transform");if(X.attr("transform",""),j=As.bBox(X.node()),ee=j.width,fe=j.height,X.attr("transform",we),ee<=0||fe<=0){X.remove();return}}var se=T.textangle,ce,he;m==="outside"?(he=T.constraintext==="both"||T.constraintext==="outside",ce=X5e(i,o,l,s,j,{isHorizontal:_,constrained:he,angle:se})):(he=T.constraintext==="both"||T.constraintext==="inside",ce=GG(i,o,l,s,j,{isHorizontal:_,constrained:he,angle:se,anchor:I,hasB:q,r:u,overhead:f})),ce.fontSize=ie.size,I5e(T.type==="histogram"?"bar":T.type,ce,y),k.transform=ce;var ye=OG(X,y,c,v);Da.setTransormAndDisplay(ye,ce)}function Xu(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 HG(e){return e==="auto"?0:e}function UG(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 GG(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*cn&&w>2*cn?cn:0;b-=2*k,w-=2*k;var M=HG(s);s==="auto"&&!(T<=b&&_<=w)&&(T>b||_>w)&&(!(T>w||_>b)||T<_!=bcn){var P=Z5e(e,r,t,a,q,m,x,o,y);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/q.x,w/q.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,I=(e+cn)*p+(r-cn)*d,B=(t+a)/2,G=0,Y=0;if(c||f){var V=(o?q.x:q.y)/2;m&&(f||y)&&(k+=D);var H=o?jo(e,r):jo(t,a);o?c?(I=e+H*k,G=-H*V):(I=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:z,targetX:I,targetY:B,anchorX:G,anchorY:Y,scale:E,rotate:M}}function Z5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*cn),f=Math.max(0,Math.abs(a-t)-2*cn),c=i-cn,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 X5e(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*cn?cn:0:d=c>2*cn?cn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=HG(s),m=UG(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,q=o?jo(r,e):jo(t,a);return o?(b=r-q*d,k=q*x):(w=a+q*d,M=-q*x),{textX:T,textY:_,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:p,rotate:y}}function J5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=K5e(e,r,t,a,n):i.textinfo?l=Q5e(r,t,a,n):l=jc.getValue(i.text,t),jc.coerceString(B5e,l)}function $5e(e,r){var t=jc.getValue(e.textposition,r);return jc.coerceEnumerated(H5e,t)}function K5e(e,r,t,a,n){var i=r[0].trace,o=Da.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 cg(v,v.c2l(k),!0).text}function m(k){return cg(p,p.c2l(k),!0).text}var x=r[t],T={};T.label=x.p,T.labelLabel=T[c+"Label"]=y(x.p);var _=Da.castOption(i,x.i,"text");(_===0||_)&&(T.text=_),T.value=x.s,T.valueLabel=T[d+"Label"]=m(x.s);var b={};U5e(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=Da.formatPercent(x.begR),T.percentPrevious=x.difR,T.percentPreviousLabel=Da.formatPercent(x.difR),T.percentTotal=x.sumR,T.percenTotalLabel=Da.formatPercent(x.sumR));var w=Da.castOption(i,x.i,"customdata");return w&&(T.customdata=w),Da.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function Q5e(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 cg(k,w,!0).text}function u(w){var k=i?t:a;return cg(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=Da.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=Da.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Da.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Da.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}VG.exports={plot:W5e,toMoveInsideBar:GG}});var Pw=N((AIe,ZG)=>{"use strict";var B0=Pn(),e_e=br(),YG=Tr(),r_e=Ee().fillText,t_e=sg().getLineWidth,Rw=Ir().hoverLabelText,a_e=zt().BADNUM;function n_e(e,r,t,a,n){var i=WG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=jG(l,s),e_e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function WG(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,we){var se=K.w;return K[p]+we*se/2}function q(K){return K[p+"End"]-K[p+"Start"]}var E=s?w:_?function(K){return K.p-q(K)/2}:function(K){return Math.min(w(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+q(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,we,se){return n.finiteRange&&(se=0),B0.inbox(K-v,we-v,se+Math.min(1,Math.abs(we-K)/T)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(w(K),k(K),c)}function I(K){var we=K[y];if(u){var se=Math.abs(K.rawS)||0;d>0?we+=se:d<0&&(we-=se)}return we}function B(K){var we=d,se=K.b,ce=I(K);return B0.inbox(se-we,ce-we,f+(ce-we)/(ce-se)-1)}function G(K){var we=d,se=K.b,ce=I(K);return B0.inbox(se-we,ce-we,c+(ce-we)/(ce-se)-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!==a_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 j=e.index,ee=i[j],fe=o.base?ee.b+ee.s:ee.s;e[y+"0"]=e[y+"1"]=V.c2p(ee[y],!0),e[y+"LabelVal"]=fe;var ie=l.extents[l.extents.round(ee.p)];e[p+"0"]=Y.c2p(s?E(ee):ie[0],!0),e[p+"1"]=Y.c2p(s?D(ee):ie[1],!0);var ue=ee.orig_p!==void 0;return e[p+"LabelVal"]=ue?ee.orig_p:ee.p,e.labelLabel=Rw(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Rw(V,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=Rw(V,ee.b,o[y+"hoverformat"]),e.spikeDistance=(G(ee)+z(ee))/2,e[p+"Spike"]=Y.c2p(ee.p,!0),r_e(ee,o,e),e.hovertemplate=o.hovertemplate,e}}function jG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=t_e(e,r);if(YG.opacity(t))return t;if(YG.opacity(a)&&n)return a}ZG.exports={hoverPoints:n_e,hoverOnBars:WG,getTraceColor:jG}});var JG=N((MIe,XG)=>{"use strict";XG.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 Fw=N((kIe,$G)=>{"use strict";$G.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";KG.exports={attributes:Wu(),layoutAttributes:ig(),supplyDefaults:ju().supplyDefaults,crossTraceDefaults:ju().crossTraceDefaults,supplyLayoutDefaults:Sw(),calc:wG(),crossTraceCalc:_m().crossTraceCalc,colorbar:w0(),arraysToCalcdata:lg(),plot:Dw().plot,style:Wc().style,styleOnSelect:Wc().styleOnSelect,hoverPoints:Pw().hoverPoints,eventData:JG(),selectPoints:Fw(),moduleType:"trace",name:"bar",basePlotModule:Ci(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var rV=N((qIe,eV)=>{"use strict";eV.exports=QG()});var vg=N((LIe,iV)=>{"use strict";var o_e=Uy(),Ri=Ti(),tV=Wu(),l_e=ui(),aV=ao().axisHoverFormat,{hovertemplateAttrs:s_e,templatefallbackAttrs:u_e}=Yn(),Ll=bt().extendFlat,Zc=Ri.marker,nV=Zc.line;iV.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:Ri.xperiod,yperiod:Ri.yperiod,xperiod0:Ri.xperiod0,yperiod0:Ri.yperiod0,xperiodalignment:Ri.xperiodalignment,yperiodalignment:Ri.yperiodalignment,xhoverformat:aV("x"),yhoverformat:aV("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({},Zc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Ll({},Zc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Ll({},Zc.angle,{arrayOk:!1,editType:"calc"}),size:Ll({},Zc.size,{arrayOk:!1,editType:"calc"}),color:Ll({},Zc.color,{arrayOk:!1,editType:"style"}),line:{color:Ll({},nV.color,{arrayOk:!1,dflt:l_e.defaultLine,editType:"style"}),width:Ll({},nV.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:o_e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:tV.offsetgroup,alignmentgroup:tV.alignmentgroup,selected:{marker:Ri.selected.marker,editType:"style"},unselected:{marker:Ri.unselected.marker,editType:"style"},text:Ll({},Ri.text,{}),hovertext:Ll({},Ri.hovertext,{}),hovertemplate:s_e({}),hovertemplatefallback:u_e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ri.zorder}});var hg=N((CIe,oV)=>{"use strict";oV.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((EIe,fV)=>{"use strict";var Pi=Ee(),f_e=br(),c_e=Tr(),v_e=Mc(),h_e=y0(),lV=N1(),H0=vg();function d_e(e,r,t,a){function n(p,y){return Pi.coerce(e,r,H0,p,y)}if(sV(e,r,n,a),r.visible!==!1){v_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",c_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 Pi.validate(e.notchwidth,H0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),uV(e,r,n,{prefix:"box"}),n("zorder")}}function sV(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Pi.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Pi.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(Pi.minRowLength(u),Pi.minRowLength(f),Pi.minRowLength(c))}var v=n(o),d=n(l),p=v&&Pi.minRowLength(o),y=d&&Pi.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 q=t("orientation",T);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var E=f_e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function uV(e,r,t,a){var n=a.prefix,i=Pi.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")),Pi.coerceSelectionMarkerOpacity(r,t)}function p_e(e,r){var t,a;function n(s){return Pi.coerce(a._input,a,H0,s)}for(var i=0;i{"use strict";var y_e=br(),m_e=Ee(),g_e=hg();function cV(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var zw=Rr(),dg=Ir(),x_e=Sc(),oa=Ee(),ai=zt().BADNUM,Cl=oa._;_V.exports=function(r,t){var a=r._fullLayout,n=dg.getFromId(r,t.xaxis||"x"),i=dg.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=__e(t,d,v,a[l]),m=y[0],x=y[1],T=oa.distinctVals(m,v),_=T.vals,b=T.minDiff/2,w,k,M,q,E,D,P=(t.boxpoints||t.points)==="all"?oa.identity:function(Ce){return Ce.vw.uf};if(t._hasPreCompStats){var R=t[c],z=function(Ce){return f.d2c((t[Ce]||[])[s])},I=1/0,B=-1/0;for(s=0;s=w.q1&&w.q3>=w.med){var Y=z("lowerfence");w.lf=Y!==ai&&Y<=w.q1?Y:yV(w,M,q);var V=z("upperfence");w.uf=V!==ai&&V>=w.q3?V:mV(w,M,q);var H=z("mean");w.mean=H!==ai?H:q?oa.mean(M,q):(w.q1+w.q3)/2;var X=z("sd");w.sd=H!==ai&&X>=0?X:q?oa.stdev(M,q,w.mean):w.q3-w.q1,w.lo=gV(w),w.uo=bV(w);var j=z("notchspan");j=j!==ai&&j>0?j:xV(w,q),w.ln=w.med-j,w.un=w.med+j;var ee=w.lf,fe=w.uf;t.boxpoints&&M.length&&(ee=Math.min(ee,M[0]),fe=Math.max(fe,M[q-1])),t.notched&&(ee=Math.min(ee,w.ln),fe=Math.max(fe,w.un)),w.min=ee,w.max=fe}else{oa.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+w.q1,"median = "+w.med,"q3 = "+w.q3].join(` +`));var ie;w.med!==ai?ie=w.med:w.q1!==ai?w.q3!==ai?ie=(w.q1+w.q3)/2:ie=w.q1:w.q3!==ai?ie=w.q3:ie=0,w.med=ie,w.q1=w.q3=ie,w.lf=w.uf=ie,w.mean=w.sd=ie,w.ln=w.un=ie,w.min=w.max=ie}I=Math.min(I,w.min),B=Math.max(B,w.max),w.pts2=k.filter(P),o.push(w)}}t._extremes[f._id]=dg.findExtremes(f,[I,B],{padded:!0})}else{var ue=f.makeCalcdata(t,c),K=w_e(_,b),we=_.length,se=T_e(we);for(s=0;s=0&&ce0){if(w={},w.pos=w[d]=_[s],k=w.pts=se[s].sort(dV),M=w[c]=k.map(pV),q=M.length,w.min=M[0],w.max=M[q-1],w.mean=oa.mean(M,q),w.sd=oa.stdev(M,q,w.mean)*t.sdmultiple,w.med=oa.interp(M,.5),q%2&&(Q||Z)){var le,ve;Q?(le=M.slice(0,q/2),ve=M.slice(q/2+1)):Z&&(le=M.slice(0,q/2+1),ve=M.slice(q/2)),w.q1=oa.interp(le,.5),w.q3=oa.interp(ve,.5)}else w.q1=oa.interp(M,.25),w.q3=oa.interp(M,.75);w.lf=yV(w,M,q),w.uf=mV(w,M,q),w.lo=gV(w),w.uo=bV(w);var me=xV(w,q);w.ln=w.med-me,w.un=w.med+me,he=Math.min(he,w.ln),ye=Math.max(ye,w.un),w.pts2=k.filter(P),o.push(w)}t.notched&&oa.isTypedArray(ue)&&(ue=Array.from(ue)),t._extremes[f._id]=dg.findExtremes(f,t.notched?ue.concat([he,ye]):ue,{padded:!0})}return A_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 __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=x_e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||zw(e.name)&&["linear","log"].indexOf(t.type)!==-1||oa.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 wV=Ir(),M_e=Ee(),k_e=Ru().getAxisGroup,TV=["v","h"];function S_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=q*(k?1:.5),j=X,H=j=D):M==="negative"?(V=j=D,H=q*(k?1:.5),ee=X):(V=H=q,j=ee=X),se){var ce=b.pointpos,he=b.jitter,ye=b.marker.size/2,W=0;ce+he>=0&&(W=X*(ce+he),W>V?(we=!0,ue=ye,fe=W):W>j&&(ue=ye,fe=V)),W<=V&&(fe=V);var Q=0;ce-he<=0&&(Q=-X*(ce-he),Q>H?(we=!0,K=ye,ie=Q):Q>ee&&(K=ye,ie=H)),Q<=H&&(ie=H)}else fe=V,ie=H;var Z=new Array(f.length);for(u=0;u{"use strict";var Xc=Sr(),Ju=Ee(),q_e=Wr(),kV=5,L_e=.01;function C_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Ju.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Xc.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),SV(s,{pos:v,val:d},c,f,n),qV(s,{x:i,y:o},c,f),LV(s,{pos:v,val:d},c,f)})}function SV(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?Ju.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 Xc.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,q=t.whiskerwidth,E=s?w*q+(1-q)*M:l.l2p(b-f)+c,D=s?k*q+(1-q)*M:l.l2p(b+f)+c,P=l.l2p(b-m*y)+c,R=l.l2p(b+x*y)+c,z=t.sizemode==="sd",I=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),G=Ju.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(I,B)+1,Math.max(I,B)-1),Y=_.lf===void 0||t.boxpoints===!1||z,V=o.c2p(Y?_.min:_.lf,!0),H=o.c2p(Y?_.max:_.uf,!0),X=o.c2p(_.ln,!0),j=o.c2p(_.un,!0);i?Xc.select(this).attr("d","M"+G+","+P+"V"+R+"M"+I+","+w+"V"+k+(p?"H"+X+"L"+G+","+R+"L"+j+","+k:"")+"H"+B+"V"+w+(p?"H"+j+"L"+G+","+P+"L"+X+","+w:"")+"Z"+(d?"M"+I+","+M+"H"+V+"M"+B+","+M+"H"+H+(v===0?"":"M"+V+","+E+"V"+D+"M"+H+","+E+"V"+D):"")):Xc.select(this).attr("d","M"+P+","+G+"H"+R+"M"+w+","+I+"H"+k+(p?"V"+X+"L"+R+","+G+"L"+k+","+j:"")+"V"+B+"H"+w+(p?"V"+j+"L"+P+","+G+"L"+w+","+X:"")+"Z"+(d?"M"+M+","+I+"V"+V+"M"+M+","+B+"V"+H+(v===0?"":"M"+E+","+V+"H"+D+"M"+E+","+H+"H"+D):""))})}function qV(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Ju.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*L_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(q_e.translatePoints,n,i)}function LV(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?Ju.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"?Xc.select(this).attr("d","M"+T+","+y+"V"+m+(u==="sd"?"m0,0L"+_+","+x+"L"+T+","+y+"L"+b+","+x+"Z":"")):Xc.select(this).attr("d","M"+y+","+T+"H"+m+(u==="sd"?"m0,0L"+x+","+_+"L"+y+","+T+"L"+x+","+b+"Z":""))})}CV.exports={plot:C_e,plotBoxAndWhiskers:SV,plotPoints:qV,plotBoxMean:LV}});var Yw=N((NIe,EV)=>{"use strict";var Uw=Sr(),Gw=Tr(),Vw=Wr();function E_e(e,r,t){var a=t||Uw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Uw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Gw.stroke,d).call(Gw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Uw.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(Gw.stroke,o.line.color);var f=i.selectAll("path.point");Vw.pointStyle(f,o,e)}})}function D_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Vw.selectedPointStyle(n,a):Vw.pointStyle(n,a,e)}EV.exports={style:E_e,styleOnSelect:D_e}});var jw=N((IIe,FV)=>{"use strict";var R_e=Ir(),Ww=Ee(),Ms=Pn(),DV=Tr(),P_e=Ww.fillText;function F_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(RV(e,r,t,a))),o.indexOf("points")!==-1&&(s=PV(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function RV(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,q=s.wHover,E=function(ye){return v.c2l(ye.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(ye){var W=E(ye);return Ms.inbox(W,W+q,_)},k=w,M=0),l.side==="negative"&&(T=function(ye){var W=E(ye);return Ms.inbox(W-q,W,_)},k=0,M=w)):(T=function(ye){var W=E(ye);return Ms.inbox(W-q,W+q,_)},k=M=w);var D;u?D=function(ye){return Ms.inbox(ye.span[0]-p,ye.span[1]-p,_)}:D=function(ye){return Ms.inbox(ye.min-p,ye.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(ye){return(m(ye)+x(ye))/2}var z=Ms.getDistanceFunction(a,m,x,R);if(Ms.getClosest(n,z,e),e.index===!1)return[];var I=n[e.index],B=l.line.color,G=(l.marker||{}).color;DV.opacity(B)&&l.line.width?e.color=B:DV.opacity(G)&&l.boxpoints?e.color=G:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(I.pos+s.bPos+k,!0),e[f+"LabelVal"]=I.orig_p!==void 0?I.orig_p:I.pos;var Y=f+"Spike";e.spikeDistance=R(I)*b/_,e[Y]=v.c2p(I.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"],j=d.range[1]{"use strict";NV.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 Zw=N((OIe,zV)=>{"use strict";zV.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";OV.exports={attributes:vg(),layoutAttributes:hg(),supplyDefaults:U0().supplyDefaults,crossTraceDefaults:U0().crossTraceDefaults,supplyLayoutDefaults:Nw().supplyLayoutDefaults,calc:Ow(),crossTraceCalc:Bw().crossTraceCalc,plot:Hw().plot,style:Yw().style,styleOnSelect:Yw().styleOnSelect,hoverPoints:jw().hoverPoints,eventData:IV(),selectPoints:Zw(),moduleType:"trace",name:"box",basePlotModule:Ci(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var UV=N((HIe,HV)=>{"use strict";HV.exports=BV()});var G0=N((UIe,VV)=>{"use strict";var N_e=qo(),{extendFlat:On}=bt(),I_e=gn(),{axisHoverFormat:Xw}=ao(),z_e=ga(),{hovertemplateAttrs:O_e,templatefallbackAttrs:GV,texttemplateAttrs:B_e}=Yn(),ni=Ti();VV.exports=On({z:{valType:"data_array",editType:"calc"},x:On({},ni.x,{impliedEdits:{xtype:"array"}}),x0:On({},ni.x0,{impliedEdits:{xtype:"scaled"}}),dx:On({},ni.dx,{impliedEdits:{xtype:"scaled"}}),y:On({},ni.y,{impliedEdits:{ytype:"array"}}),y0:On({},ni.y0,{impliedEdits:{ytype:"scaled"}}),dy:On({},ni.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:On({},ni.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:On({},ni.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:On({},ni.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:On({},ni.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:On({},ni.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:On({},ni.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:Xw("x"),yhoverformat:Xw("y"),zhoverformat:Xw("z",1),hovertemplate:O_e(),hovertemplatefallback:GV(),texttemplate:B_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:GV({editType:"plot"}),textfont:z_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:On({},I_e.showlegend,{dflt:!1}),zorder:ni.zorder},N_e("",{cLetter:"z",autoColorDflt:!1}))});var Jw=N((GIe,WV)=>{"use strict";var H_e=Rr(),pg=Ee(),U_e=br();WV.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(pg.isArray1D(l)){s=a(i),u=a(o);var f=pg.minRowLength(s),c=pg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=YV(i,a),u=YV(o,a),!G_e(l))return 0;a("transpose"),t._length=null}var v=U_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function YV(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function G_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var jV=Ee();ZV.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=jV.extendFlat({},t.font,{color:"auto",size:"auto"});jV.coerceFont(r,"textfont",a)}});var $w=N((YIe,XV)=>{"use strict";XV.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var KV=N((WIe,$V)=>{"use strict";var JV=Ee(),V_e=Jw(),Y_e=V0(),W_e=Mc(),j_e=$w(),Z_e=yl(),X_e=G0();$V.exports=function(r,t,a,n){function i(l,s){return JV.coerce(r,t,X_e,l,s)}var o=V_e(r,t,i,n);if(!o){t.visible=!1;return}W_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),Y_e(i,n),j_e(r,t,i,n),i("hoverongaps"),i("connectgaps",JV.isArray1D(t.z)&&t.zsmooth!==!1),Z_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Kw=N((jIe,QV)=>{"use strict";var Jc=Rr();QV.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Jc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Jc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Jc(n))if(n=Number(n),Jc(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(Jc(n))if(n=Number(n),Jc(t[e])){if(t[e]{"use strict";eY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";rY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var $c=zt(),$u=$c.ONEAVGYEAR,tY=$c.ONEAVGMONTH,mg=$c.ONEDAY,aY=$c.ONEHOUR,nY=$c.ONEMIN,iY=$c.ONESEC,oY=Ir().tickIncrement;uY.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(yg(u+l,u+s,n,i),yg(f+l,f+s,n,i)),v=Math.min(yg(u+o,u+l,n,i),yg(f+o,f+l,n,i)),d,p;if(c>v&&vmg){var y=d===$u?1:6,m=d===$u?"M12":"M1";return function(x,T){var _=n.c2d(x,$u,i),b=_.indexOf("-",y);b>0&&(_=_.slice(0,b));var w=n.d2c(_,0,i);if(wiY?e>mg?e>$u*1.1?$u:e>tY*1.1?tY:mg:e>aY?aY:e>nY?nY:iY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function J_e(e,r,t,a,n,i){if(a&&e>mg){var o=sY(r,n,i),l=sY(t,n,i),s=e===$u?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function sY(e,r,t){var a=r.c2d(e,$u,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var n6=N(($Ie,dY)=>{"use strict";var t6=Rr(),vn=Ee(),fY=br(),Fi=Ir(),{hasColorscale:cY}=jn(),vY=ec(),$_e=lg(),hY=Kw(),K_e=Qw(),Q_e=e6(),e4e=r6();function r4e(e,r){var t=[],a=[],n=r.orientation==="h",i=Fi.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=a6(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,q,E,D;u.enabled&&M&&(w=w.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=hY.count,I=K_e[w],B=!1,G=function(W){return i.r2c(W,0,s)},Y;for(vn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],B=k==="avg",z=hY[k]),f=G(v.start),E=G(v.end)+(f-Fi.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ce;f--)if(a[f]){he=f;break}for(f=ce;f<=he;f++)if(t6(t[f])&&t6(a[f])){var ye={p:t[f],s:a[f],b:0};u.enabled||(ye.pts=_[f],j?ye.ph0=ye.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ye.ph0=K(y[f]),ye.ph1=K(y[f+1],!0))),se.push(ye)}return se.length===1&&(se[0].width1=Fi.tickIncrement(se[0].p,v.size,!1,s)-se[0].p),cY(r,"marker")&&vY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),cY(r,"marker.line")&&vY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),$_e(se,r),vn.isArrayOrTypedArray(r.selectedpoints)&&vn.tagSelected(se,r,ie),se}function a6(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?vn.cleanDate(ue,null,d):null}:function(ue){return t6(ue)?Number(ue):null};function b(ue,K,we){K[ue+"Found"]?(K[ue]=_(K[ue]),K[ue]===null&&(K[ue]=we[ue])):(y[ue]=K[ue]=we[ue],vn.nestedProperty(c[0],i+"."+ue).set(we[ue]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var w=[],k=!0,M=!1,q=!1;for(f=0;ft.r2l(Y)&&(H=Fi.tickIncrement(H,s.size,!0,d)),z.start=t.l2r(H),G||vn.nestedProperty(r,i+".start").set(z.start)}var X=s.end,j=t.r2l(R.end),ee=j!==void 0;if((s.endFound||ee)&&j!==t.r2l(X)){var fe=ee?j:vn.aggNums(Math.max,null,p);z.end=t.l2r(fe),ee||vn.nestedProperty(r,i+".start").set(z.end)}var ie="autobin"+a;return r._input[ie]===!1&&(r._input[i]=vn.extendFlat({},r[i]||{}),delete r._input[ie],delete r[ie]),[z,p]}function t4e(e,r,t,a,n){var i=e._fullLayout,o=a4e(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())}}dY.exports={calc:r4e,calcAllAutoBins:a6}});var wY=N((KIe,_Y)=>{"use strict";var pY=Ee(),Kc=Ir(),yY=Kw(),i4e=Qw(),o4e=e6(),l4e=r6(),mY=n6().calcAllAutoBins;_Y.exports=function(r,t){var a=Kc.getFromId(r,t.xaxis),n=Kc.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=mY(r,t,a,"x"),m=y[0],x=y[1],T=mY(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=[],q=[],E=typeof m.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:m,I=D?R:_,B=0,G=[],Y=[],V=t.histnorm,H=t.histfunc,X=V.indexOf("density")!==-1,j=H==="max"||H==="min",ee=j?null:0,fe=yY.count,ie=i4e[V],ue=!1,K=[],we=[],se="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";se&&H!=="count"&&(ue=H==="avg",fe=yY[H]);var ce=m.size,he=l(m.start),ye=l(m.end)+(he-Kc.tickIncrement(he,ce,!1,i))/1e6;for(c=he;c=0&&d=0&&p{"use strict";var Zo=Ee(),TY=zt().BADNUM,AY=Sc();MY.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=AY(r,t,n,s).vals,u=AY(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Zo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Zo.isArray1D(v),p,y,m=Zo.distinctVals(s),x=m.vals,T=Zo.distinctVals(u),_=T.vals,b=[],w,k,M=_.length,q=x.length;for(p=0;p{"use strict";var s4e=Rr(),u4e=Ee(),gg=zt().BADNUM;SY.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(s4e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var f4e=Ee(),LY=.01,c4e=[[-1,0],[1,0],[0,-1],[0,1]];function v4e(e){return .5-.25*Math.min(1,e*.5)}EY.exports=function(r,t){var a=1,n;for(CY(r,t),n=0;nLY;n++)a=CY(r,t,v4e(a));return a>LY&&f4e.log("interp2d didn't converge quickly",a),r};function CY(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 PY=N((tze,RY)=>{"use strict";var h4e=Ee().maxRowLength;RY.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=h4e(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 zY=N((aze,IY)=>{"use strict";var FY=br(),NY=Ee().isArrayOrTypedArray;IY.exports=function(r,t,a,n,i,o){var l=[],s=FY.traceIs(r,"contour"),u=FY.traceIs(r,"histogram"),f,c,v,d=NY(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 OY=br(),i6=Ee(),bg=Ir(),BY=Sc(),d4e=wY(),p4e=ec(),y4e=kY(),m4e=qY(),g4e=DY(),b4e=PY(),xg=zY(),o6=zt().BADNUM;UY.exports=function(r,t){var a=bg.getFromId(r,t.xaxis||"x"),n=bg.getFromId(r,t.yaxis||"y"),i=OY.traceIs(t,"contour"),o=OY.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=d4e(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;i6.isArray1D(_)?(y4e(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=BY(t,a,"x",c).vals,v=BY(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=m4e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=x4e(s,v,m),o||(s=HY(s),v=HY(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=b4e(m),g4e(m,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,i6.warn('cannot use zsmooth: "fast": '+z)}function w(z){if(z.length>1){var I=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(I/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=i6.maxRowLength(m),M=t.xtype==="scaled"?"":s,q=xg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=xg(t,E,d,p,m.length,n);t._extremes[a._id]=bg.findExtremes(a,q),t._extremes[n._id]=bg.findExtremes(n,D);var P={x:q,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===q.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||p4e(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=xg(R,M,u,f,k,a),P.yfill=xg(R,E,d,p,m.length,n)}return[P]};function HY(e){for(var r=[],t=e.length,a=0;a{"use strict";wg.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"]];wg.STYLE=wg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var s6=N((oze,VY)=>{"use strict";var GY=Tg(),_4e=Wr(),l6=Ee(),Qc=null;function w4e(){if(Qc!==null)return Qc;Qc=!1;var e=l6.isSafari()||l6.isMacWKWebView()||l6.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(GY.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Qc=r.some(function(o){return t.apply(null,o)});else{var a=_4e.tester.append("image").attr("style",GY.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Qc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Qc}VY.exports=w4e});var Ag=N((lze,QY)=>{"use strict";var YY=Sr(),T4e=Sn(),A4e=br(),M4e=Wr(),k4e=Ir(),Ni=Ee(),WY=Aa(),S4e=m4(),q4e=Tr(),L4e=Lo().extractOpts,C4e=Lo().makeColorScaleFuncFromTrace,E4e=dl(),D4e=Oa(),u6=D4e.LINE_SPACING,R4e=s6(),P4e=Tg().STYLE,$Y="heatmap-label";function KY(e){return e.selectAll("g."+$Y)}function jY(e){KY(e).remove()}QY.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ni.makeTraceGroups(a,t,"hm").each(function(o){var l=YY.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=A4e.traceIs(u,"contour"),T=x?"best":u.zsmooth,_=v.length,b=Ni.maxRowLength(v),w=!1,k=!1,M,q,E,D,P,R,z,I;for(R=0;M===void 0&&R0;)q=n.c2p(d[R]),R--;for(q0;)P=i.c2p(p[R]),R--;P=n._length||q<=0||D>=i._length||P<=0;if(H){var X=l.selectAll("image").data([]);X.exit().remove(),jY(l);return}var j,ee;B==="fast"?(j=b,ee=_):(j=Y,ee=V);var fe=document.createElement("canvas");fe.width=j,fe.height=ee;var ie=fe.getContext("2d",{willReadFrequently:!0}),ue=C4e(u,{noNumericCheck:!0,returnArray:!0}),K,we;B==="fast"?(K=w?function(ct){return b-1-ct}:Ni.identity,we=k?function(ct){return _-1-ct}:Ni.identity):(K=function(ct){return Ni.constrain(Math.round(n.c2p(d[ct])-M),0,Y)},we=function(ct){return Ni.constrain(Math.round(i.c2p(p[ct])-D),0,V)});var se=we(0),ce=[se,se],he=w?0:1,ye=k?0:1,W=0,Q=0,Z=0,le=0,ve,me,Ce,Pe,Le;function ze(ct,An){if(ct!==void 0){var It=ue(ct);return It[0]=Math.round(It[0]),It[1]=Math.round(It[1]),It[2]=Math.round(It[2]),W+=An,Q+=It[0]*An,Z+=It[1]*An,le+=It[2]*An,It}return[0,0,0,0]}function Be(ct,An,It,Ys){var yn=ct[It.bin0];if(yn===void 0)return ze(void 0,1);var Wi=ct[It.bin1],Zt=An[It.bin0],ji=An[It.bin1],Bl=Wi-yn||0,Hl=Zt-yn||0,mr;return Wi===void 0?ji===void 0?mr=0:Zt===void 0?mr=2*(ji-yn):mr=(2*ji-Zt-yn)*2/3:ji===void 0?Zt===void 0?mr=0:mr=(2*yn-Wi-Zt)*2/3:Zt===void 0?mr=(2*ji-Wi-yn)*2/3:mr=ji+yn-Wi-Zt,ze(yn+It.frac*Bl+Ys.frac*(Hl+It.frac*mr))}if(B!=="default"){var Ge=0,De;try{De=new Uint8Array(j*ee*4)}catch(ct){De=new Array(j*ee*4)}if(B==="smooth"){var Oe=y||d,Ue=m||p,oe=new Array(Oe.length),Ae=new Array(Ue.length),Xe=new Array(Y),hr=y?XY:ZY,Ne=m?XY:ZY,Te,qe,He;for(R=0;Rqt||qt>i._length))for(z=kr;zFt||Ft>n._length)){var Tt=S4e({x:ft,y:et},u,e._fullLayout);Tt.x=ft,Tt.y=et;var pa=s.z[R][z];pa===void 0?(Tt.z="",Tt.zLabel=""):(Tt.z=pa,Tt.zLabel=k4e.tickText(Re,pa,"hover").text);var $t=s.text&&s.text[R]&&s.text[R][z];($t===void 0||$t===!1)&&($t=""),Tt.text=$t;var sa=Ni.texttemplateString({data:[Tt,u._meta],fallback:u.texttemplatefallback,labels:Tt,locale:e._fullLayout._d3locale,template:ne});if(sa){var dr=sa.split("
"),yt=dr.length,Zr=0;for(I=0;I{"use strict";eW.exports={min:"zmin",max:"zmax"}});var Mg=N((uze,rW)=>{"use strict";var F4e=Sr();rW.exports=function(r){F4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var Sg=N((fze,aW)=>{"use strict";var tW=Pn(),Y0=Ee(),kg=Y0.isArrayOrTypedArray,N4e=Ir(),I4e=Lo().extractOpts;aW.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(tW.inbox(t-c[0],t-c[c.length-1],0)>0||tW.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(T=[2*c[0]-c[1]],q=1;q{"use strict";nW.exports={attributes:G0(),supplyDefaults:KV(),calc:_g(),plot:Ag(),colorbar:f6(),style:Mg(),hoverPoints:Sg(),moduleType:"trace",name:"heatmap",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var lW=N((vze,oW)=>{"use strict";oW.exports=iW()});var c6=N((hze,sW)=>{"use strict";sW.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var fW=N((dze,uW)=>{"use strict";uW.exports={eventDataKeys:["binNumber"]}});var qg=N((pze,dW)=>{"use strict";var Bn=Wu(),cW=ao().axisHoverFormat,{hovertemplateAttrs:z4e,texttemplateAttrs:O4e,templatefallbackAttrs:vW}=Yn(),v6=ga(),hW=c6(),B4e=fW(),h6=bt().extendFlat;dW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:cW("x"),yhoverformat:cW("y"),text:h6({},Bn.text,{}),hovertext:h6({},Bn.hovertext,{}),orientation:Bn.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:hW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:hW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:z4e({},{keys:B4e.eventDataKeys}),hovertemplatefallback:vW(),texttemplate:O4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:vW({editType:"plot"}),textposition:h6({},Bn.textposition,{arrayOk:!1}),textfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:v6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Bn.insidetextanchor,textangle:Bn.textangle,cliponaxis:Bn.cliponaxis,constraintext:Bn.constraintext,marker:Bn.marker,offsetgroup:Bn.offsetgroup,alignmentgroup:Bn.alignmentgroup,selected:Bn.selected,unselected:Bn.unselected,zorder:Bn.zorder}});var gW=N((yze,mW)=>{"use strict";var pW=br(),W0=Ee(),yW=Tr(),H4e=ju().handleText,U4e=kw(),G4e=qg();mW.exports=function(r,t,a,n){function i(T,_){return W0.coerce(r,t,G4e,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");H4e(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=pW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),U4e(r,t,i,a,n),W0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,x=pW.getComponentMethod("errorbars","supplyDefaults");x(r,t,m||yW.defaultLine,{axis:"y"}),x(r,t,m||yW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var Cg=N((mze,_W)=>{"use strict";var j0=Ee(),V4e=ua(),Lg=br().traceIs,Y4e=y0(),W4e=ju().validateCornerradius,bW=j0.nestedProperty,d6=Ru().getAxisGroup,xW=[{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"];_W.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=V4e.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"]||"",j=a[G],ee=!0;j&&(H===j.axType&&X===j.calendar?(ee=!1,j.traces.push(B),j.dirs.push(Y)):(G=V,H!==j.axType&&j0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+H,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),X!==j.calendar&&j0.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",j.calendar?"on a "+j.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 Z4e=Pw().hoverPoints,X4e=Ir().hoverLabelText;wW.exports=function(r,t,a,n,i){var o=Z4e(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"]=X4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var p6=N((bze,AW)=>{"use strict";AW.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";MW.exports={attributes:qg(),layoutAttributes:ig(),supplyDefaults:gW(),crossTraceDefaults:Cg(),supplyLayoutDefaults:Sw(),calc:n6().calc,crossTraceCalc:_m().crossTraceCalc,plot:Dw().plot,layerName:"barlayer",style:Wc().style,styleOnSelect:Wc().styleOnSelect,colorbar:w0(),hoverPoints:TW(),selectPoints:Fw(),eventData:p6(),moduleType:"trace",name:"histogram",basePlotModule:Ci(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var qW=N((_ze,SW)=>{"use strict";SW.exports=kW()});var Dg=N((wze,EW)=>{"use strict";var bo=qg(),LW=c6(),Eg=G0(),J4e=gn(),y6=ao().axisHoverFormat,{hovertemplateAttrs:$4e,texttemplateAttrs:K4e,templatefallbackAttrs:CW}=Yn(),Q4e=qo(),Z0=bt().extendFlat;EW.exports=Z0({x:bo.x,y:bo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:bo.histnorm,histfunc:bo.histfunc,nbinsx:bo.nbinsx,xbins:LW("x"),nbinsy:bo.nbinsy,ybins:LW("y"),autobinx:bo.autobinx,autobiny:bo.autobiny,bingroup:Z0({},bo.bingroup,{}),xbingroup:Z0({},bo.bingroup,{}),ybingroup:Z0({},bo.bingroup,{}),xgap:Eg.xgap,ygap:Eg.ygap,zsmooth:Eg.zsmooth,xhoverformat:y6("x"),yhoverformat:y6("y"),zhoverformat:y6("z",1),hovertemplate:$4e({},{keys:["z"]}),hovertemplatefallback:CW(),texttemplate:K4e({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:CW({editType:"plot"}),textfont:Eg.textfont,showlegend:Z0({},J4e.showlegend,{dflt:!1})},Q4e("",{cLetter:"z",autoColorDflt:!1}))});var m6=N((Tze,RW)=>{"use strict";var ewe=br(),DW=Ee();RW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=DW.minRowLength(i),s=DW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=ewe.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 FW=N((Aze,PW)=>{"use strict";var rwe=Ee(),twe=m6(),awe=$w(),nwe=yl(),iwe=V0(),owe=Dg();PW.exports=function(r,t,a,n){function i(o,l){return rwe.coerce(r,t,owe,o,l)}twe(r,t,i,n),t.visible!==!1&&(awe(r,t,i,n),nwe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),iwe(i,n),i("xhoverformat"),i("yhoverformat"))}});var zW=N((Mze,IW)=>{"use strict";var lwe=Sg(),NW=Ir().hoverLabelText;IW.exports=function(r,t,a,n,i){var o=lwe(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=NW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=NW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var BW=N((kze,OW)=>{"use strict";OW.exports={attributes:Dg(),supplyDefaults:FW(),crossTraceDefaults:Cg(),calc:_g(),plot:Ag(),layerName:"heatmaplayer",colorbar:f6(),style:Mg(),hoverPoints:zW(),eventData:p6(),moduleType:"trace",name:"histogram2d",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var UW=N((Sze,HW)=>{"use strict";HW.exports=BW()});var Rg=N((qze,GW)=>{"use strict";GW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Fg=N((Lze,jW)=>{"use strict";var la=G0(),Pg=Ti(),YW=ao(),g6=YW.axisHoverFormat,swe=YW.descriptionOnlyNumbers,uwe=qo(),fwe=fi().dash,cwe=ga(),ev=bt().extendFlat,WW=Rg(),vwe=WW.COMPARISON_OPS2,hwe=WW.INTERVAL_OPS,VW=Pg.line;jW.exports=ev({z:la.z,x:la.x,x0:la.x0,dx:la.dx,y:la.y,y0:la.y0,dy:la.dy,xperiod:la.xperiod,yperiod:la.yperiod,xperiod0:Pg.xperiod0,yperiod0:Pg.yperiod0,xperiodalignment:la.xperiodalignment,yperiodalignment:la.yperiodalignment,text:la.text,hovertext:la.hovertext,transpose:la.transpose,xtype:la.xtype,ytype:la.ytype,xhoverformat:g6("x"),yhoverformat:g6("y"),zhoverformat:g6("z",1),hovertemplate:la.hovertemplate,hovertemplatefallback:la.hovertemplatefallback,texttemplate:ev({},la.texttemplate,{}),texttemplatefallback:la.texttemplatefallback,textfont:ev({},la.textfont,{}),hoverongaps:la.hoverongaps,connectgaps:ev({},la.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:cwe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:swe("contour label")},operation:{valType:"enumerated",values:[].concat(vwe).concat(hwe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},VW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:fwe,smoothing:ev({},VW.smoothing,{}),editType:"plot"},zorder:Pg.zorder},uwe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var x6=N((Cze,XW)=>{"use strict";var $a=Dg(),Xo=Fg(),dwe=qo(),b6=ao().axisHoverFormat,ZW=bt().extendFlat;XW.exports=ZW({x:$a.x,y:$a.y,z:$a.z,marker:$a.marker,histnorm:$a.histnorm,histfunc:$a.histfunc,nbinsx:$a.nbinsx,xbins:$a.xbins,nbinsy:$a.nbinsy,ybins:$a.ybins,autobinx:$a.autobinx,autobiny:$a.autobiny,bingroup:$a.bingroup,xbingroup:$a.xbingroup,ybingroup:$a.ybingroup,autocontour:Xo.autocontour,ncontours:Xo.ncontours,contours:Xo.contours,line:{color:Xo.line.color,width:ZW({},Xo.line.width,{dflt:.5}),dash:Xo.line.dash,smoothing:Xo.line.smoothing,editType:"plot"},xhoverformat:b6("x"),yhoverformat:b6("y"),zhoverformat:b6("z",1),hovertemplate:$a.hovertemplate,hovertemplatefallback:$a.hovertemplatefallback,texttemplate:Xo.texttemplate,texttemplatefallback:Xo.texttemplatefallback,textfont:Xo.textfont},dwe("",{cLetter:"z",editTypeOverride:"calc"}))});var _6=N((Eze,JW)=>{"use strict";JW.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 w6=N((Dze,$W)=>{"use strict";var pwe=Ee();$W.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;pwe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var T6=N((Rze,KW)=>{"use strict";var ywe=yl(),mwe=w6();KW.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,ywe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),mwe(a,n,s,i)}});var tj=N((Pze,rj)=>{"use strict";var QW=Ee(),gwe=m6(),bwe=_6(),xwe=T6(),_we=V0(),ej=x6();rj.exports=function(r,t,a,n){function i(l,s){return QW.coerce(r,t,ej,l,s)}function o(l){return QW.coerce2(r,t,ej,l)}gwe(r,t,i,n),t.visible!==!1&&(bwe(r,t,i,o),xwe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&_we(i,n))}});var ij=N((Fze,nj)=>{"use strict";var M6=Ir(),A6=Ee();nj.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=A6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=A6.aggNums(Math.max,null,t));var o=aj(n,i,r.ncontours);a.size=o.dtick,a.start=M6.tickFirst(o),o.range.reverse(),a.end=M6.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={}),A6.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=aj(l,s,r.ncontours).dtick,u.size=a.size=f}}};function aj(e,r,t){var a={type:"linear",range:[e,r]};return M6.autoTicks(a,(r-e)/(t||15)),a}});var X0=N((Nze,oj)=>{"use strict";oj.exports=function(r){return r.end+r.size/1e6}});var k6=N((Ize,sj)=>{"use strict";var lj=Lo(),wwe=_g(),Twe=ij(),Awe=X0();sj.exports=function(r,t){var a=wwe(r,t),n=a[0].z;Twe(t,n);var i=t.contours,o=lj.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=Awe(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 lj.calc(r,t,{vals:l,cLetter:"z"}),a}});var Ng=N((zze,uj)=>{"use strict";uj.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 cj=N((Oze,fj)=>{"use strict";var Ig=Ng();fj.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 pj=N((Bze,dj)=>{"use strict";var zg=Ee(),rv=Ng();dj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){zg.log("Found bad marching index:",o,r,e.level);break}s.push(hj(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&&zg.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,q,E,D,P,R,z,I,B;for(d=1;d=b;d--)if(w=_[d],w=b&&w+_[k]R&&z--,e.edgepaths[z]=B.concat(s,I));break}H||(e.edgepaths[R]=s.concat(I))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function hj(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 bj=N((Hze,gj)=>{"use strict";var S6=Rg(),qwe=Rr();gj.exports={"[]":yj("[]"),"][":yj("]["),">":q6(">"),"<":q6("<"),"=":q6("=")};function mj(e,r){var t=Array.isArray(r),a;function n(i){return qwe(i)?+i:null}return S6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):S6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:S6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function yj(e){return function(r){r=mj(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 q6(e){return function(r){return r=mj(e,r),{start:r,end:1/0,size:1/0}}}});var wj=N((Uze,_j)=>{"use strict";var xj=Ee(),Lwe=bj(),Cwe=X0();_j.exports=function(r,t,a){for(var n=r.type==="constraint"?Lwe[r._operation](r.value):r,i=n.size,o=[],l=Cwe(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){xj.warn("Too many contours, clipping at 1000",r);break}return o}});var Mj=N((Gze,Aj)=>{"use strict";var tv=Ee();Aj.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&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";kj.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 L6=N(hn=>{"use strict";var K0=Sr(),Ra=Ee(),El=Wr(),Ewe=Lo(),Cj=Aa(),qj=Ir(),Lj=lc(),Dwe=Ag(),Ej=cj(),Dj=pj(),Rwe=wj(),Pwe=Mj(),Rj=Sj(),$0=Ng(),Jo=$0.LABELOPTIMIZER;hn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Ra.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=Rwe(d,t,u),y=Ra.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),Dwe(r,t,m,y),Ej(p),Dj(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=Pwe(p,d._operation)),Fwe(s,w,d),Nwe(s,k,w,d),Iwe(s,p,r,u,d),Owe(s,t,r,u,w)})};function Fwe(e,r,t){var a=Ra.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 Nwe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&Rj(r,a);var o=Ra.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:"")+Pj(s,t);u?K0.select(this).attr("d",u).style("stroke","none"):K0.select(this).remove()})}function Pj(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){Ra.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):Ra.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){Ra.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aJo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Jo.MAXCOST)return f};function zwe(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=Jo.EDGECOST*(1/(c-1)+1/(v-1));d+=Jo.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,x=l+f,T=0;T{"use strict";var Hwe=Sr(),C6=Lo(),Uwe=X0();Fj.exports=function(r){var t=r.contours,a=t.start,n=Uwe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=C6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?C6.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 Og=Sr(),Nj=Wr(),Gwe=Mg(),Vwe=E6();Ij.exports=function(r){var t=Og.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Og.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?Vwe(i):null;n.selectAll("g.contourlevel").each(function(m){Og.select(this).selectAll("path").call(Nj.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){Nj.font(Og.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))}}),Gwe(r)}});var R6=N((Zze,Oj)=>{"use strict";var zj=Lo(),Ywe=E6(),Wwe=X0();function jwe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=Ywe(r,{isColorbar:!0});if(o==="heatmap"){var s=zj.extractOpts(r);t._fillgradient=s.reversescale?zj.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:Wwe(a),size:i}}Oj.exports={min:"zmin",max:"zmax",calc:jwe}});var P6=N((Xze,Bj)=>{"use strict";var Bg=Tr(),Zwe=Sg();Bj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=Zwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Bg.opacity(s.fillcolor)?l.color=Bg.addOpacity(s.fillcolor,1):s.contours.showlines&&Bg.opacity(s.line.color)&&(l.color=Bg.addOpacity(s.line.color,1)))}),o}});var Uj=N((Jze,Hj)=>{"use strict";Hj.exports={attributes:x6(),supplyDefaults:tj(),crossTraceDefaults:Cg(),calc:k6(),plot:L6().plot,layerName:"contourlayer",style:D6(),colorbar:R6(),hoverPoints:P6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Vj=N(($ze,Gj)=>{"use strict";Gj.exports=Uj()});var $j=N((Kze,Jj)=>{"use strict";var Yj=Rr(),Xwe=w6(),Zj=Tr(),Wj=Zj.addOpacity,Jwe=Zj.opacity,Xj=Rg(),jj=Ee().isArrayOrTypedArray,$we=Xj.CONSTRAINT_REDUCTION,Kwe=Xj.COMPARISON_OPS2;Jj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=$we[c],Qwe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Wj((r.line||{}).color||i,.5))),s){var v=f&&Jwe(f)?Wj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),Xwe(a,n,u,o)};function Qwe(e,r){var t;Kwe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),jj(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])]:Yj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Yj(r.value)||(jj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var eZ=N((Qze,Qj)=>{"use strict";var F6=Ee(),e6e=Jw(),r6e=Mc(),t6e=$j(),a6e=_6(),n6e=T6(),i6e=V0(),Kj=Fg();Qj.exports=function(r,t,a,n){function i(u,f){return F6.coerce(r,t,Kj,u,f)}function o(u){return F6.coerce2(r,t,Kj,u)}var l=e6e(r,t,i,n);if(!l){t.visible=!1;return}r6e(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",F6.isArray1D(t.z)),s?t6e(r,t,i,n,a):(a6e(r,t,i,o),n6e(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&i6e(i,n),i("zorder")}});var tZ=N((eOe,rZ)=>{"use strict";rZ.exports={attributes:Fg(),supplyDefaults:eZ(),calc:k6(),plot:L6().plot,style:D6(),colorbar:R6(),hoverPoints:P6(),moduleType:"trace",name:"contour",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var nZ=N((rOe,aZ)=>{"use strict";aZ.exports=tZ()});var N6=N((tOe,sZ)=>{"use strict";var{hovertemplateAttrs:o6e,texttemplateAttrs:l6e,templatefallbackAttrs:iZ}=Yn(),s6e=Uy(),ii=Ti(),u6e=gn(),oZ=qo(),f6e=fi().dash,ks=bt().extendFlat,Ii=ii.marker,Q0=ii.line,lZ=Ii.line;sZ.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({},ii.mode,{dflt:"markers"}),text:ks({},ii.text,{}),texttemplate:l6e({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:iZ({editType:"plot"}),hovertext:ks({},ii.hovertext,{}),line:{color:Q0.color,width:Q0.width,dash:f6e,backoff:Q0.backoff,shape:ks({},Q0.shape,{values:["linear","spline"]}),smoothing:Q0.smoothing,editType:"calc"},connectgaps:ii.connectgaps,cliponaxis:ii.cliponaxis,fill:ks({},ii.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:s6e(),marker:ks({symbol:Ii.symbol,opacity:Ii.opacity,angle:Ii.angle,angleref:Ii.angleref,standoff:Ii.standoff,maxdisplayed:Ii.maxdisplayed,size:Ii.size,sizeref:Ii.sizeref,sizemin:Ii.sizemin,sizemode:Ii.sizemode,line:ks({width:lZ.width,dash:lZ.dash,editType:"calc"},oZ("marker.line")),gradient:Ii.gradient,editType:"calc"},oZ("marker")),textfont:ii.textfont,textposition:ii.textposition,selected:ii.selected,unselected:ii.unselected,hoverinfo:ks({},u6e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ii.hoveron,hovertemplate:o6e(),hovertemplatefallback:iZ()}});var vZ=N((aOe,cZ)=>{"use strict";var uZ=Ee(),c6e=t0(),av=Rn(),v6e=J_(),h6e=$_(),fZ=K_(),d6e=Q_(),p6e=e4(),y6e=N6();cZ.exports=function(r,t,a,n){function i(v,d){return uZ.coerce(r,t,y6e,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 I6=Ir();hZ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=I6.tickText(i.aaxis,r.a,!0).text,n.bLabel=I6.tickText(i.baxis,r.b,!0).text,n.cLabel=I6.tickText(i.caxis,r.c,!0).text,n}});var gZ=N((iOe,mZ)=>{"use strict";var z6=Rr(),m6e=a4(),g6e=ym(),b6e=mm(),x6e=gm().calcMarkerSize,pZ=["a","b","c"],yZ={a:["b","c"],b:["a","c"],c:["a","b"]};mZ.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 _6e=y4();bZ.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 w6e=w4();_Z.exports=function(r,t,a,n){var i=w6e(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 AZ=N((sOe,TZ)=>{"use strict";TZ.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 FZ=N((uOe,PZ)=>{"use strict";var CZ=Sr(),T6e=Sn(),O6=br(),Dl=Ee(),$o=Dl.strTranslate,Hg=Dl._,iv=Tr(),Ug=Wr(),ed=lc(),B6=bt().extendFlat,A6e=ta(),Ss=Ir(),MZ=yi(),kZ=Pn(),EZ=Lu(),SZ=EZ.freeMode,M6e=EZ.rectMode,H6=oc(),k6e=Uo().prepSelect,S6e=Uo().selectOnClick,q6e=Uo().clearOutline,L6e=Uo().clearSelectionsCache,DZ=xa();function RZ(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}PZ.exports=RZ;var Ko=RZ.prototype;Ko.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Ko.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;inv*u?(x=u,m=x*nv):(m=s,x=m/nv),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(I){return I.a>=t.aaxis.range[0]&&I.a<=t.aaxis.range[1]&&I.b>=t.baxis.range[1]&&I.b<=t.baxis.range[0]&&I.c>=t.caxis.range[1]&&I.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=B6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*nv],anchor:"free",position:0,_id:"y",_length:m});ed(w,t.graphDiv._fullLayout),w.setScale();var k=t.baxis=B6({},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=B6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*nv],anchor:"free",position:0,_id:"y",_length:m});ed(M,t.graphDiv._fullLayout),M.setScale();var q="M"+p+","+(y+x)+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var E="M0,"+x+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=$o(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=$o(p-k._offset,y+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=$o(p+m/2,y)+"rotate(30)"+$o(0,-w._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=$o(p+m/2,y)+"rotate(-30)"+$o(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",w.showline?"M"+p+","+(y+x)+"l"+m/2+",-"+x:"M0,0").call(iv.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(iv.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(iv.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Ug.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Ko.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"]=H6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:Hg(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"]=H6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:Hg(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"]=H6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:Hg(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"}})}};Ko.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=C6e(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 C6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ca=DZ.MINZOOM/2+.87,E6e="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",D6e="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",R6e="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",P6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",qZ=!0;Ko.clearOutline=function(){L6e(this.dragOptions),q6e(this.dragOptions.gd)};Ko.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,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var I=e.dragOptions.dragmode=t._fullLayout.dragmode;SZ(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,T(P,R,z)):I==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,q(),e.clearOutline(t)):(M6e(I)||SZ(I))&&k6e(P,R,z,e.dragOptions,I)}};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 z=t._fullLayout.clickmode;LZ(t),P===2&&(t.emit("plotly_doubleclick",null),O6.call("_guiRelayout",t,m({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&S6e(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&kZ.click(t,R,e.id)}function T(P,R,z){var I=r.getBoundingClientRect();o=R-I.left,l=z-I.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=T6e(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",$o(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",$o(e.x0,e.y0)).style({fill:iv.background,stroke:iv.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 z=o+P*n,I=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,I))),G=Math.max(0,Math.min(1,b(o,l),b(z,I))),Y=Math.max(0,Math.min(1,w(o,l),w(z,I))),V=(B/2+Y)*e.w,H=(1-B/2-G)*e.w,X=(V+H)/2,j=H-V,ee=(1-B)*e.h,fe=ee-j/nv;j.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(){LZ(t),f!==s&&(O6.call("_guiRelayout",t,m(f)),qZ&&t.data&&t._context.showTips&&(Dl.notifier(Hg(t,"Double-click to zoom back out"),"long"),qZ=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(z+I)/2,c:s.c-(z-I)/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=$o(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var V=$o(-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(Ug.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function D(){O6.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){kZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||MZ.unhover(t,P)},MZ.init(this.dragOptions)};function LZ(e){CZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var V6=N((fOe,NZ)=>{"use strict";var F6e=ui(),N6e=Uc().attributes,it=di(),I6e=Qi().overrideAll,U6=bt().extendFlat,G6={title:{text:it.title.text,font:it.title.font},color:it.color,tickmode:it.minor.tickmode,nticks:U6({},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:U6({},it.showline,{dflt:!0}),linecolor:it.linecolor,linewidth:it.linewidth,showgrid:U6({},it.showgrid,{dflt:!0}),gridcolor:it.gridcolor,gridwidth:it.gridwidth,griddash:it.griddash,layer:it.layer,min:{valType:"number",dflt:0,min:0}},Gg=NZ.exports=I6e({domain:N6e({name:"ternary"}),bgcolor:{valType:"color",dflt:F6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:G6,baxis:G6,caxis:G6},"plot","from-root");Gg.uirevision={valType:"any",editType:"none"};Gg.aaxis.uirevision=Gg.baxis.uirevision=Gg.caxis.uirevision={valType:"any",editType:"none"}});var zZ=N((cOe,IZ)=>{"use strict";var z6e=Ee(),O6e=_t(),B6e=Uc().defaults;IZ.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 z6e.coerce(v,d,o,T,_)}for(var y=0;y{"use strict";var H6e=Tr(),U6e=_t(),Vg=Ee(),G6e=zZ(),V6e=b1(),Y6e=x1(),W6e=m1(),j6e=y1(),Z6e=M4(),BZ=V6(),OZ=["aaxis","baxis","caxis"];HZ.exports=function(r,t,a){G6e(r,t,a,{type:"ternary",attributes:BZ,handleDefaults:X6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function X6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=H6e.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 J6e(e,r,t,a){var n=BZ[r._name];function i(d,p){return Vg.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,Vg.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Vg.bigFont(t.font.size),color:l}}),i("min"),j6e(e,r,i,"linear"),Y6e(e,r,i,"linear"),V6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),W6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Vg.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),Z6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var GZ=N(zi=>{"use strict";var $6e=FZ(),K6e=s1().getSubplotCalcData,Q6e=Ee().counterRegex,ov="ternary";zi.name=ov;var e7e=zi.attr="subplot";zi.idRoot=ov;zi.idRegex=zi.attrRegex=Q6e(ov);var r7e=zi.attributes={};r7e[e7e]={valType:"subplotid",dflt:"ternary",editType:"calc"};zi.layoutAttributes=V6();zi.supplyLayoutDefaults=UZ();zi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[ov],i=0;i{"use strict";VZ.exports={attributes:N6(),supplyDefaults:vZ(),colorbar:w0(),formatLabels:dZ(),calc:gZ(),plot:xZ(),style:Nu().style,styleOnSelect:Nu().styleOnSelect,hoverPoints:wZ(),selectPoints:T4(),eventData:AZ(),moduleType:"trace",name:"scatterternary",basePlotModule:GZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var jZ=N((pOe,WZ)=>{"use strict";WZ.exports=YZ()});var Y6=N((yOe,XZ)=>{"use strict";var ha=vg(),lv=bt().extendFlat,ZZ=ao().axisHoverFormat;XZ.exports={y:ha.y,x:ha.x,x0:ha.x0,y0:ha.y0,xhoverformat:ZZ("x"),yhoverformat:ZZ("y"),name:lv({},ha.name,{}),orientation:lv({},ha.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:ha.fillcolor,points:lv({},ha.boxpoints,{}),jitter:lv({},ha.jitter,{}),pointpos:lv({},ha.pointpos,{}),width:lv({},ha.width,{}),marker:ha.marker,text:ha.text,hovertext:ha.hovertext,hovertemplate:ha.hovertemplate,hovertemplatefallback:ha.hovertemplatefallback,quartilemethod:ha.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:ha.offsetgroup,alignmentgroup:ha.alignmentgroup,selected:ha.selected,unselected:ha.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ha.zorder}});var Z6=N((mOe,JZ)=>{"use strict";var W6=hg(),j6=Ee().extendFlat;JZ.exports={violinmode:j6({},W6.boxmode,{}),violingap:j6({},W6.boxgap,{}),violingroupgap:j6({},W6.boxgroupgap,{})}});var rX=N((gOe,eX)=>{"use strict";var $Z=Ee(),t7e=Tr(),KZ=U0(),QZ=Y6();eX.exports=function(r,t,a,n){function i(w,k){return $Z.coerce(r,t,QZ,w,k)}function o(w,k){return $Z.coerce2(r,t,QZ,w,k)}if(KZ.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",t7e.addOpacity(t.line.color,.5));KZ.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 aX=N((bOe,tX)=>{"use strict";var a7e=Ee(),n7e=Z6(),i7e=Nw();tX.exports=function(r,t,a){function n(i,o){return a7e.coerce(r,t,n7e,i,o)}i7e._supply(r,t,a,n,"violin")}});var Yg=N(Ku=>{"use strict";var o7e=Ee(),l7e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Ku.makeKDE=function(e,r,t){var a=t.length,n=l7e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var X6=Ee(),J6=Ir(),s7e=Ow(),nX=Yg(),u7e=zt().BADNUM;iX.exports=function(r,t){var a=s7e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=J6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var h7e=Bw().setPositionOffset,lX=["v","h"];sX.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var $6=Sr(),K6=Ee(),d7e=Wr(),Q6=Hw(),p7e=p4(),y7e=Yg();fX.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=p7e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return d7e.smoothopen(v[0],1)}K6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=$6.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(K6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var B=$6.select(this),G=I.density,Y=G.length,V=T.c2l(I.pos+y,!0),H=T.l2p(V),X;if(p.width)X=d.maxKDE/m;else{var j=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?j.maxKDE/m*(j.maxCount/I.pts.length):j.maxKDE/m}var ee,fe,ie,ue,K,we,se;if(b){for(we=new Array(Y),ue=0;ue{"use strict";var vX=Sr(),sv=Tr(),m7e=Nu().stylePoints;hX.exports=function(r){var t=vX.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=vX.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(sv.stroke,n.line.color).call(sv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(sv.stroke,l.color).call(sv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(sv.stroke,s.color),i.selectAll("path.meanline").style(f).call(sv.stroke,s.color),m7e(i,n,r)})}});var gX=N((MOe,mX)=>{"use strict";var g7e=Tr(),e7=Ee(),b7e=Ir(),pX=jw(),yX=Yg();mX.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=pX.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 q=e7.extendFlat({},r),E=w.c2p(k,!0),D=yX.getKdeValue(M,s,k),P=yX.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[_+"0"]=q[_+"1"]=E,q[_+"Label"]=_+": "+b7e.hoverLabelText(w,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var I=0,B=0;B{"use strict";bX.exports={attributes:Y6(),layoutAttributes:Z6(),supplyDefaults:rX(),crossTraceDefaults:U0().crossTraceDefaults,supplyLayoutDefaults:aX(),calc:oX(),crossTraceCalc:uX(),plot:cX(),style:dX(),styleOnSelect:Nu().styleOnSelect,hoverPoints:gX(),selectPoints:Zw(),moduleType:"trace",name:"violin",basePlotModule:Ci(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var wX=N((SOe,_X)=>{"use strict";_X.exports=xX()});var uv=N((qOe,TX)=>{"use strict";TX.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 r7=N((LOe,MX)=>{"use strict";var x7e=gn(),_7e=Ti().zorder,{hovertemplateAttrs:w7e,templatefallbackAttrs:T7e}=Yn(),AX=bt().extendFlat,A7e=uv().colormodel,td=["rgb","rgba","rgba256","hsl","hsla"],M7e=[],k7e=[];for(fv=0;fv{"use strict";var S7e=Ee(),q7e=r7(),kX=uv(),L7e=Tl().IMAGE_URL_PREFIX;SX.exports=function(r,t){function a(o,l){return S7e.coerce(r,t,q7e,o,l)}a("source"),t.source&&!t.source.match(L7e)&&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=kX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=kX.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((EOe,t7)=>{typeof Object.create=="function"?t7.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:t7.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 a7=N((DOe,LX)=>{LX.exports=su().EventEmitter});var DX=N(Wg=>{"use strict";Wg.byteLength=E7e;Wg.toByteArray=R7e;Wg.fromByteArray=N7e;var Qo=[],Oi=[],C7e=typeof Uint8Array!="undefined"?Uint8Array:Array,n7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Qu=0,CX=n7.length;Qu0)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 E7e(e){var r=EX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function D7e(e,r,t){return(r+t)*3/4-t}function R7e(e){var r,t=EX(e),a=t[0],n=t[1],i=new C7e(D7e(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=Oi[e.charCodeAt(s)]<<2|Oi[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Oi[e.charCodeAt(s)]<<10|Oi[e.charCodeAt(s+1)]<<4|Oi[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function P7e(e){return Qo[e>>18&63]+Qo[e>>12&63]+Qo[e>>6&63]+Qo[e&63]}function F7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Qo[r>>2]+Qo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Qo[r>>10]+Qo[r>>4&63]+Qo[r<<2&63]+"=")),n.join("")}});var RX=N(i7=>{i7.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)};i7.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 pv=N(dv=>{"use strict";var o7=DX(),vv=RX(),PX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;dv.Buffer=je;dv.SlowBuffer=U7e;dv.INSPECT_MAX_BYTES=50;var jg=2147483647;dv.kMaxLength=jg;je.TYPED_ARRAY_SUPPORT=I7e();!je.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 I7e(){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(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function Pl(e){if(e>jg)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(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 f7(e)}return zX(e,r,t)}je.poolSize=8192;function zX(e,r,t){if(typeof e=="string")return O7e(e,r);if(ArrayBuffer.isView(e))return B7e(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(el(e,ArrayBuffer)||e&&el(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(el(e,SharedArrayBuffer)||e&&el(e.buffer,SharedArrayBuffer)))return s7(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 je.from(a,r,t);let n=H7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.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)}je.from=function(e,r,t){return zX(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function OX(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 z7e(e,r,t){return OX(e),e<=0?Pl(e):r!==void 0?typeof t=="string"?Pl(e).fill(r,t):Pl(e).fill(r):Pl(e)}je.alloc=function(e,r,t){return z7e(e,r,t)};function f7(e){return OX(e),Pl(e<0?0:c7(e)|0)}je.allocUnsafe=function(e){return f7(e)};je.allocUnsafeSlow=function(e){return f7(e)};function O7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=BX(e,r)|0,a=Pl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function l7(e){let r=e.length<0?0:c7(e.length)|0,t=Pl(r);for(let a=0;a=jg)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jg.toString(16)+" bytes");return e|0}function U7e(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(el(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),el(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.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?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function BX(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||el(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 u7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return XX(e).length;default:if(n)return a?-1:u7(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=BX;function G7e(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 Q7e(this,r,t);case"utf8":case"utf-8":return UX(this,r,t);case"ascii":return $7e(this,r,t);case"latin1":case"binary":return K7e(this,r,t);case"base64":return X7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eTe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function ef(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.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+=" ... "),""};PX&&(je.prototype[PX]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(el(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.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,h7(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=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:FX(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):FX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function FX(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 V7e(this,r,t,a);case"utf8":case"utf-8":return Y7e(this,r,t,a);case"ascii":case"latin1":case"binary":return W7e(this,r,t,a);case"base64":return j7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X7e(e,r,t){return r===0&&t===e.length?o7.fromByteArray(e):o7.fromByteArray(e.slice(r,t))}function UX(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 J7e(a)}var NX=4096;function J7e(e){let r=e.length;if(r<=NX)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")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=qs(function(r){r=r>>>0,hv(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,hv(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||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(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};je.prototype.readInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=qs(function(r){r=r>>>0,hv(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,hv(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||Va(r,4,this.length),vv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),vv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),vv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),vv.read(this,r,!1,52,8)};function Hn(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.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;Hn(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;Hn(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};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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 GX(e,r,t,a,n){ZX(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 VX(e,r,t,a,n){ZX(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}je.prototype.writeBigUInt64LE=qs(function(r,t=0){return GX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=qs(function(r,t=0){return VX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Hn(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};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Hn(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};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Hn(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};je.prototype.writeBigInt64LE=qs(function(r,t=0){return GX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=qs(function(r,t=0){return VX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function YX(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 WX(e,r,t,a,n){return r=+r,t=t>>>0,n||YX(e,r,t,4,34028234663852886e22,-34028234663852886e22),vv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return WX(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return WX(this,r,t,!1,a)};function jX(e,r,t,a,n){return r=+r,t=t>>>0,n||YX(e,r,t,8,17976931348623157e292,-17976931348623157e292),vv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return jX(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return jX(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.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=IX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=IX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function IX(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 rTe(e,r,t){hv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&ad(r,e.length-(t+1))}function ZX(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 cv.ERR_OUT_OF_RANGE("value",l,e)}rTe(a,n,i)}function hv(e,r){if(typeof e!="number")throw new cv.ERR_INVALID_ARG_TYPE(r,"number",e)}function ad(e,r,t){throw Math.floor(e)!==e?(hv(e,t),new cv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new cv.ERR_BUFFER_OUT_OF_BOUNDS:new cv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var tTe=/[^+/0-9A-Za-z-_]/g;function aTe(e){if(e=e.split("=")[0],e=e.trim().replace(tTe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function u7(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 nTe(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function XX(e){return o7.toByteArray(aTe(e))}function Zg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function el(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function h7(e){return e!==e}var oTe=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"?lTe:e}function lTe(){throw new Error("BigInt not supported")}});var Xg=N((IOe,JX)=>{"use strict";JX.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((zOe,$X)=>{"use strict";var sTe=Xg();$X.exports=function(){return sTe()&&!!Symbol.toStringTag}});var d7=N((OOe,KX)=>{"use strict";KX.exports=Object});var eJ=N((BOe,QX)=>{"use strict";QX.exports=Error});var tJ=N((HOe,rJ)=>{"use strict";rJ.exports=EvalError});var nJ=N((UOe,aJ)=>{"use strict";aJ.exports=RangeError});var oJ=N((GOe,iJ)=>{"use strict";iJ.exports=ReferenceError});var p7=N((VOe,lJ)=>{"use strict";lJ.exports=SyntaxError});var yv=N((YOe,sJ)=>{"use strict";sJ.exports=TypeError});var fJ=N((WOe,uJ)=>{"use strict";uJ.exports=URIError});var vJ=N((jOe,cJ)=>{"use strict";cJ.exports=Math.abs});var dJ=N((ZOe,hJ)=>{"use strict";hJ.exports=Math.floor});var yJ=N((XOe,pJ)=>{"use strict";pJ.exports=Math.max});var gJ=N((JOe,mJ)=>{"use strict";mJ.exports=Math.min});var xJ=N(($Oe,bJ)=>{"use strict";bJ.exports=Math.pow});var wJ=N((KOe,_J)=>{"use strict";_J.exports=Math.round});var AJ=N((QOe,TJ)=>{"use strict";TJ.exports=Number.isNaN||function(r){return r!==r}});var kJ=N((eBe,MJ)=>{"use strict";var uTe=AJ();MJ.exports=function(r){return uTe(r)||r===0?r:r<0?-1:1}});var qJ=N((rBe,SJ)=>{"use strict";SJ.exports=Object.getOwnPropertyDescriptor});var rf=N((tBe,LJ)=>{"use strict";var Jg=qJ();if(Jg)try{Jg([],"length")}catch(e){Jg=null}LJ.exports=Jg});var id=N((aBe,CJ)=>{"use strict";var $g=Object.defineProperty||!1;if($g)try{$g({},"a",{value:1})}catch(e){$g=!1}CJ.exports=$g});var RJ=N((nBe,DJ)=>{"use strict";var EJ=typeof Symbol!="undefined"&&Symbol,fTe=Xg();DJ.exports=function(){return typeof EJ!="function"||typeof Symbol!="function"||typeof EJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fTe()}});var y7=N((iBe,PJ)=>{"use strict";PJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var m7=N((oBe,FJ)=>{"use strict";var cTe=d7();FJ.exports=cTe.getPrototypeOf||null});var zJ=N((lBe,IJ)=>{"use strict";var vTe="Function.prototype.bind called on incompatible ",hTe=Object.prototype.toString,dTe=Math.max,pTe="[object Function]",NJ=function(r,t){for(var a=[],n=0;n{"use strict";var gTe=zJ();OJ.exports=Function.prototype.bind||gTe});var Kg=N((uBe,BJ)=>{"use strict";BJ.exports=Function.prototype.call});var g7=N((fBe,HJ)=>{"use strict";HJ.exports=Function.prototype.apply});var GJ=N((cBe,UJ)=>{"use strict";UJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var YJ=N((vBe,VJ)=>{"use strict";var bTe=mv(),xTe=g7(),_Te=Kg(),wTe=GJ();VJ.exports=wTe||bTe.call(_Te,xTe)});var jJ=N((hBe,WJ)=>{"use strict";var TTe=mv(),ATe=yv(),MTe=Kg(),kTe=YJ();WJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new ATe("a function is required");return kTe(TTe,MTe,r)}});var QJ=N((dBe,KJ)=>{"use strict";var STe=jJ(),ZJ=rf(),JJ;try{JJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var b7=!!JJ&&ZJ&&ZJ(Object.prototype,"__proto__"),$J=Object,XJ=$J.getPrototypeOf;KJ.exports=b7&&typeof b7.get=="function"?STe([b7.get]):typeof XJ=="function"?function(r){return XJ(r==null?r:$J(r))}:!1});var n$=N((pBe,a$)=>{"use strict";var e$=y7(),r$=m7(),t$=QJ();a$.exports=e$?function(r){return e$(r)}:r$?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return r$(r)}:t$?function(r){return t$(r)}:null});var o$=N((yBe,i$)=>{"use strict";var qTe=Function.prototype.call,LTe=Object.prototype.hasOwnProperty,CTe=mv();i$.exports=CTe.call(qTe,LTe)});var r2=N((mBe,v$)=>{"use strict";var ot,ETe=d7(),DTe=eJ(),RTe=tJ(),PTe=nJ(),FTe=oJ(),_v=p7(),xv=yv(),NTe=fJ(),ITe=vJ(),zTe=dJ(),OTe=yJ(),BTe=gJ(),HTe=xJ(),UTe=wJ(),GTe=kJ(),f$=Function,x7=function(e){try{return f$('"use strict"; return ('+e+").constructor;")()}catch(r){}},od=rf(),VTe=id(),_7=function(){throw new xv},YTe=od?function(){try{return arguments.callee,_7}catch(e){try{return od(arguments,"callee").get}catch(r){return _7}}}():_7,gv=RJ()(),Ya=n$(),WTe=m7(),jTe=y7(),c$=g7(),ld=Kg(),bv={},ZTe=typeof Uint8Array=="undefined"||!Ya?ot:Ya(Uint8Array),tf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":gv&&Ya?Ya([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":bv,"%AsyncGenerator%":bv,"%AsyncGeneratorFunction%":bv,"%AsyncIteratorPrototype%":bv,"%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%":DTe,"%eval%":eval,"%EvalError%":RTe,"%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%":f$,"%GeneratorFunction%":bv,"%Int8Array%":typeof Int8Array=="undefined"?ot:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ot:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gv&&Ya?Ya(Ya([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map=="undefined"?ot:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!gv||!Ya?ot:Ya(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ETe,"%Object.getOwnPropertyDescriptor%":od,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ot:Promise,"%Proxy%":typeof Proxy=="undefined"?ot:Proxy,"%RangeError%":PTe,"%ReferenceError%":FTe,"%Reflect%":typeof Reflect=="undefined"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ot:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!gv||!Ya?ot:Ya(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gv&&Ya?Ya(""[Symbol.iterator]()):ot,"%Symbol%":gv?Symbol:ot,"%SyntaxError%":_v,"%ThrowTypeError%":YTe,"%TypedArray%":ZTe,"%TypeError%":xv,"%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%":NTe,"%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%":c$,"%Object.defineProperty%":VTe,"%Object.getPrototypeOf%":WTe,"%Math.abs%":ITe,"%Math.floor%":zTe,"%Math.max%":OTe,"%Math.min%":BTe,"%Math.pow%":HTe,"%Math.round%":UTe,"%Math.sign%":GTe,"%Reflect.getPrototypeOf%":jTe};if(Ya)try{null.error}catch(e){l$=Ya(Ya(e)),tf["%Error.prototype%"]=l$}var l$,XTe=function e(r){var t;if(r==="%AsyncFunction%")t=x7("async function () {}");else if(r==="%GeneratorFunction%")t=x7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=x7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Ya&&(t=Ya(n.prototype))}return tf[r]=t,t},s$={__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=mv(),Qg=o$(),JTe=sd.call(ld,Array.prototype.concat),$Te=sd.call(c$,Array.prototype.splice),u$=sd.call(ld,String.prototype.replace),e2=sd.call(ld,String.prototype.slice),KTe=sd.call(ld,RegExp.prototype.exec),QTe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eAe=/\\(\\)?/g,rAe=function(r){var t=e2(r,0,1),a=e2(r,-1);if(t==="%"&&a!=="%")throw new _v("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new _v("invalid intrinsic syntax, expected opening `%`");var n=[];return u$(r,QTe,function(i,o,l,s){n[n.length]=l?u$(s,eAe,"$1"):o||i}),n},tAe=function(r,t){var a=r,n;if(Qg(s$,a)&&(n=s$[a],a="%"+n[0]+"%"),Qg(tf,a)){var i=tf[a];if(i===bv&&(i=XTe(a)),typeof i=="undefined"&&!t)throw new xv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new _v("intrinsic "+r+" does not exist!")};v$.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new xv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new xv('"allowMissing" argument must be a boolean');if(KTe(/^%?[^%]*%?$/,r)===null)throw new _v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=rAe(r),n=a.length>0?a[0]:"",i=tAe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],$Te(a,JTe([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=Qg(l,v),l=l[v];c&&!s&&(tf[o]=l)}}return l}});var y$=N((gBe,p$)=>{"use strict";var h$=id(),aAe=p7(),wv=yv(),d$=rf();p$.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new wv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new wv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new wv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new wv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new wv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new wv("`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=!!d$&&d$(r,t);if(h$)h$(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 aAe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var T7=N((bBe,g$)=>{"use strict";var w7=id(),m$=function(){return!!w7};m$.hasArrayLengthDefineBug=function(){if(!w7)return null;try{return w7([],"length",{value:1}).length!==1}catch(r){return!0}};g$.exports=m$});var T$=N((xBe,w$)=>{"use strict";var nAe=r2(),b$=y$(),iAe=T7()(),x$=rf(),_$=yv(),oAe=nAe("%Math.floor%");w$.exports=function(r,t){if(typeof r!="function")throw new _$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||oAe(t)!==t)throw new _$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&x$){var o=x$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(iAe?b$(r,"length",t,!0,!0):b$(r,"length",t)),r}});var ud=N((_Be,t2)=>{"use strict";var A7=mv(),a2=r2(),lAe=T$(),sAe=yv(),k$=a2("%Function.prototype.apply%"),S$=a2("%Function.prototype.call%"),q$=a2("%Reflect.apply%",!0)||A7.call(S$,k$),A$=id(),uAe=a2("%Math.max%");t2.exports=function(r){if(typeof r!="function")throw new sAe("a function is required");var t=q$(A7,S$,arguments);return lAe(t,1+uAe(0,r.length-(arguments.length-1)),!0)};var M$=function(){return q$(A7,k$,arguments)};A$?A$(t2.exports,"apply",{value:M$}):t2.exports.apply=M$});var Tv=N((wBe,E$)=>{"use strict";var L$=r2(),C$=ud(),fAe=C$(L$("String.prototype.indexOf"));E$.exports=function(r,t){var a=L$(r,!!t);return typeof a=="function"&&fAe(r,".prototype.")>-1?C$(a):a}});var P$=N((TBe,R$)=>{"use strict";var cAe=nd()(),vAe=Tv(),M7=vAe("Object.prototype.toString"),n2=function(r){return cAe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:M7(r)==="[object Arguments]"},D$=function(r){return n2(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&M7(r)!=="[object Array]"&&M7(r.callee)==="[object Function]"},hAe=function(){return n2(arguments)}();n2.isLegacyArguments=D$;R$.exports=hAe?n2:D$});var I$=N((ABe,N$)=>{"use strict";var dAe=Object.prototype.toString,pAe=Function.prototype.toString,yAe=/^\s*(?:function)?\*/,F$=nd()(),k7=Object.getPrototypeOf,mAe=function(){if(!F$)return!1;try{return Function("return function*() {}")()}catch(e){}},S7;N$.exports=function(r){if(typeof r!="function")return!1;if(yAe.test(pAe.call(r)))return!0;if(!F$){var t=dAe.call(r);return t==="[object GeneratorFunction]"}if(!k7)return!1;if(typeof S7=="undefined"){var a=mAe();S7=a?k7(a):!1}return k7(r)===S7}});var H$=N((MBe,B$)=>{"use strict";var O$=Function.prototype.toString,Av=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,L7,i2;if(typeof Av=="function"&&typeof Object.defineProperty=="function")try{L7=Object.defineProperty({},"length",{get:function(){throw i2}}),i2={},Av(function(){throw 42},null,L7)}catch(e){e!==i2&&(Av=null)}else Av=null;var gAe=/^\s*class\b/,C7=function(r){try{var t=O$.call(r);return gAe.test(t)}catch(a){return!1}},q7=function(r){try{return C7(r)?!1:(O$.call(r),!0)}catch(t){return!1}},o2=Object.prototype.toString,bAe="[object Object]",xAe="[object Function]",_Ae="[object GeneratorFunction]",wAe="[object HTMLAllCollection]",TAe="[object HTML document.all class]",AAe="[object HTMLCollection]",MAe=typeof Symbol=="function"&&!!Symbol.toStringTag,kAe=!(0 in[,]),E7=function(){return!1};typeof document=="object"&&(z$=document.all,o2.call(z$)===o2.call(document.all)&&(E7=function(r){if((kAe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=o2.call(r);return(t===wAe||t===TAe||t===AAe||t===bAe)&&r("")==null}catch(a){}return!1}));var z$;B$.exports=Av?function(r){if(E7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Av(r,null,L7)}catch(t){if(t!==i2)return!1}return!C7(r)&&q7(r)}:function(r){if(E7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(MAe)return q7(r);if(C7(r))return!1;var t=o2.call(r);return t!==xAe&&t!==_Ae&&!/^\[object HTML/.test(t)?!1:q7(r)}});var D7=N((kBe,G$)=>{"use strict";var SAe=H$(),qAe=Object.prototype.toString,U$=Object.prototype.hasOwnProperty,LAe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),qAe.call(r)==="[object Array]"?LAe(r,t,n):typeof r=="string"?CAe(r,t,n):EAe(r,t,n)};G$.exports=DAe});var P7=N((SBe,V$)=>{"use strict";var R7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],RAe=typeof globalThis=="undefined"?window:globalThis;V$.exports=function(){for(var r=[],t=0;t{"use strict";var s2=D7(),PAe=P7(),Y$=ud(),I7=Tv(),l2=rf(),FAe=I7("Object.prototype.toString"),j$=nd()(),W$=typeof globalThis=="undefined"?window:globalThis,N7=PAe(),z7=I7("String.prototype.slice"),F7=Object.getPrototypeOf,NAe=I7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:zAe(r)}return l2?IAe(r):null}});var rK=N((LBe,eK)=>{"use strict";var J$=D7(),OAe=P7(),B7=Tv(),BAe=B7("Object.prototype.toString"),$$=nd()(),f2=rf(),HAe=typeof globalThis=="undefined"?window:globalThis,K$=OAe(),UAe=B7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return f2?VAe(r):!1}});var G7=N(lt=>{"use strict";var YAe=P$(),WAe=I$(),xo=X$(),tK=rK();function Mv(e){return e.call.bind(e)}var aK=typeof BigInt!="undefined",nK=typeof Symbol!="undefined",Bi=Mv(Object.prototype.toString),jAe=Mv(Number.prototype.valueOf),ZAe=Mv(String.prototype.valueOf),XAe=Mv(Boolean.prototype.valueOf);aK&&(iK=Mv(BigInt.prototype.valueOf));var iK;nK&&(oK=Mv(Symbol.prototype.valueOf));var oK;function cd(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}lt.isArgumentsObject=YAe;lt.isGeneratorFunction=WAe;lt.isTypedArray=tK;function JAe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}lt.isPromise=JAe;function $Ae(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):tK(e)||sK(e)}lt.isArrayBufferView=$Ae;function KAe(e){return xo(e)==="Uint8Array"}lt.isUint8Array=KAe;function QAe(e){return xo(e)==="Uint8ClampedArray"}lt.isUint8ClampedArray=QAe;function e8e(e){return xo(e)==="Uint16Array"}lt.isUint16Array=e8e;function r8e(e){return xo(e)==="Uint32Array"}lt.isUint32Array=r8e;function t8e(e){return xo(e)==="Int8Array"}lt.isInt8Array=t8e;function a8e(e){return xo(e)==="Int16Array"}lt.isInt16Array=a8e;function n8e(e){return xo(e)==="Int32Array"}lt.isInt32Array=n8e;function i8e(e){return xo(e)==="Float32Array"}lt.isFloat32Array=i8e;function o8e(e){return xo(e)==="Float64Array"}lt.isFloat64Array=o8e;function l8e(e){return xo(e)==="BigInt64Array"}lt.isBigInt64Array=l8e;function s8e(e){return xo(e)==="BigUint64Array"}lt.isBigUint64Array=s8e;function c2(e){return Bi(e)==="[object Map]"}c2.working=typeof Map!="undefined"&&c2(new Map);function u8e(e){return typeof Map=="undefined"?!1:c2.working?c2(e):e instanceof Map}lt.isMap=u8e;function v2(e){return Bi(e)==="[object Set]"}v2.working=typeof Set!="undefined"&&v2(new Set);function f8e(e){return typeof Set=="undefined"?!1:v2.working?v2(e):e instanceof Set}lt.isSet=f8e;function h2(e){return Bi(e)==="[object WeakMap]"}h2.working=typeof WeakMap!="undefined"&&h2(new WeakMap);function c8e(e){return typeof WeakMap=="undefined"?!1:h2.working?h2(e):e instanceof WeakMap}lt.isWeakMap=c8e;function U7(e){return Bi(e)==="[object WeakSet]"}U7.working=typeof WeakSet!="undefined"&&U7(new WeakSet);function v8e(e){return U7(e)}lt.isWeakSet=v8e;function d2(e){return Bi(e)==="[object ArrayBuffer]"}d2.working=typeof ArrayBuffer!="undefined"&&d2(new ArrayBuffer);function lK(e){return typeof ArrayBuffer=="undefined"?!1:d2.working?d2(e):e instanceof ArrayBuffer}lt.isArrayBuffer=lK;function p2(e){return Bi(e)==="[object DataView]"}p2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&p2(new DataView(new ArrayBuffer(1),0,1));function sK(e){return typeof DataView=="undefined"?!1:p2.working?p2(e):e instanceof DataView}lt.isDataView=sK;var H7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function fd(e){return Bi(e)==="[object SharedArrayBuffer]"}function uK(e){return typeof H7=="undefined"?!1:(typeof fd.working=="undefined"&&(fd.working=fd(new H7)),fd.working?fd(e):e instanceof H7)}lt.isSharedArrayBuffer=uK;function h8e(e){return Bi(e)==="[object AsyncFunction]"}lt.isAsyncFunction=h8e;function d8e(e){return Bi(e)==="[object Map Iterator]"}lt.isMapIterator=d8e;function p8e(e){return Bi(e)==="[object Set Iterator]"}lt.isSetIterator=p8e;function y8e(e){return Bi(e)==="[object Generator]"}lt.isGeneratorObject=y8e;function m8e(e){return Bi(e)==="[object WebAssembly.Module]"}lt.isWebAssemblyCompiledModule=m8e;function fK(e){return cd(e,jAe)}lt.isNumberObject=fK;function cK(e){return cd(e,ZAe)}lt.isStringObject=cK;function vK(e){return cd(e,XAe)}lt.isBooleanObject=vK;function hK(e){return aK&&cd(e,iK)}lt.isBigIntObject=hK;function dK(e){return nK&&cd(e,oK)}lt.isSymbolObject=dK;function g8e(e){return fK(e)||cK(e)||vK(e)||hK(e)||dK(e)}lt.isBoxedPrimitive=g8e;function b8e(e){return typeof Uint8Array!="undefined"&&(lK(e)||uK(e))}lt.isAnyArrayBuffer=b8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(lt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var V7=N((EBe,pK)=>{pK.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var J7=N(st=>{var yK=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]),Z7(r)?t.showHidden=r:r&&st._extend(t,r),nf(t.showHidden)&&(t.showHidden=!1),nf(t.depth)&&(t.depth=2),nf(t.colors)&&(t.colors=!1),nf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=_8e),b2(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 _8e(e,r){var t=Ls.styles[r];return t?"\x1B["+Ls.colors[t][0]+"m"+e+"\x1B["+Ls.colors[t][1]+"m":e}function w8e(e,r){return e}function T8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function b2(e,r,t){if(e.customInspect&&r&&g2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return w2(a)||(a=b2(e,a,t)),a}var n=A8e(e,r);if(n)return n;var i=Object.keys(r),o=T8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),hd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Y7(r);if(i.length===0){if(g2(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(x2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(hd(r))return Y7(r)}var s="",u=!1,f=["{","}"];if(gK(r)&&(u=!0,f=["[","]"]),g2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(vd(r)&&(s=" "+RegExp.prototype.toString.call(r)),x2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),hd(r)&&(s=" "+Y7(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=M8e(e,r,t,o,i):v=i.map(function(d){return j7(e,r,t,o,d,u)}),e.seen.pop(),k8e(v,s,f)}function A8e(e,r){if(nf(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(bK(r))return e.stylize(""+r,"number");if(Z7(r))return e.stylize(""+r,"boolean");if(_2(r))return e.stylize("null","null")}function Y7(e){return"["+Error.prototype.toString.call(e)+"]"}function M8e(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=` @@ -28,7 +28,7 @@ `))):l=e.stylize("[Circular]","special")),nf(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 k8e(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=G7();function gK(e){return Array.isArray(e)}st.isArray=gK;function Z7(e){return typeof e=="boolean"}st.isBoolean=Z7;function _2(e){return e===null}st.isNull=_2;function S8e(e){return e==null}st.isNullOrUndefined=S8e;function bK(e){return typeof e=="number"}st.isNumber=bK;function w2(e){return typeof e=="string"}st.isString=w2;function q8e(e){return typeof e=="symbol"}st.isSymbol=q8e;function nf(e){return e===void 0}st.isUndefined=nf;function cd(e){return kv(e)&&X7(e)==="[object RegExp]"}st.isRegExp=cd;st.types.isRegExp=cd;function kv(e){return typeof e=="object"&&e!==null}st.isObject=kv;function x2(e){return kv(e)&&X7(e)==="[object Date]"}st.isDate=x2;st.types.isDate=x2;function vd(e){return kv(e)&&(X7(e)==="[object Error]"||e instanceof Error)}st.isError=vd;st.types.isNativeError=vd;function g2(e){return typeof e=="function"}st.isFunction=g2;function L8e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=L8e;st.isBuffer=V7();function X7(e){return Object.prototype.toString.call(e)}function W7(e){return e<10?"0"+e.toString(10):e.toString(10)}var C8e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E8e(){var e=new Date,r=[W7(e.getHours()),W7(e.getMinutes()),W7(e.getSeconds())].join(":");return[e.getDate(),C8e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",E8e(),st.format.apply(st,arguments))};st.inherits=Rl();st._extend=function(e,r){if(!r||!kv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function xK(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var af=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(af&&r[af]){var t=r[af];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,af,{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 _K(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 P8e(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 T2.alloc(0);for(var a=T2.allocUnsafe(t>>>0),n=this.head,i=0;n;)H8e(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=T2.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:B8e,value:function(t,a){return $7(this,P8e({},a,{depth:0,customInspect:!1}))}}]),e}()});var Q7=N((PBe,kK)=>{"use strict";function U8e(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(K7,this,e)):process.nextTick(K7,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(A2,t):(t._writableState.errorEmitted=!0,process.nextTick(MK,t,i)):process.nextTick(MK,t,i):r?(process.nextTick(A2,t),r(i)):process.nextTick(A2,t)}),this)}function MK(e,r){K7(e,r),A2(e)}function A2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function G8e(){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 K7(e,r){e.emit("error",r)}function V8e(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}kK.exports={destroy:U8e,undestroy:G8e,errorOrDestroy:V8e}});var of=N((FBe,LK)=>{"use strict";function Y8e(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var qK={};function Hi(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){Y8e(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,qK[e]=n}function SK(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 W8e(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 Z8e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Hi("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Hi("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&W8e(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(SK(r,"type"));else{var i=Z8e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(SK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Hi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Hi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Hi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Hi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Hi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Hi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Hi("ERR_STREAM_WRITE_AFTER_END","write after end");Hi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Hi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Hi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");LK.exports.codes=qK});var eT=N((NBe,CK)=>{"use strict";var X8e=of().codes.ERR_INVALID_OPT_VALUE;function J8e(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function $8e(e,r,t,a){var n=J8e(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new X8e(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}CK.exports={getHighWaterMark:$8e}});var DK=N((IBe,EK)=>{EK.exports=K8e;function K8e(e,r){if(rT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(rT("throwDeprecation"))throw new Error(r);rT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function rT(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 nT=N((zBe,zK)=>{"use strict";zK.exports=da;function PK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){MMe(r,e)}}var Sv;da.WritableState=dd;var Q8e={deprecate:DK()},FK=a7(),k2=pv().Buffer,eMe=window.Uint8Array||function(){};function rMe(e){return k2.from(e)}function tMe(e){return k2.isBuffer(e)||e instanceof eMe}var aT=Q7(),aMe=eT(),nMe=aMe.getHighWaterMark,Cs=of().codes,iMe=Cs.ERR_INVALID_ARG_TYPE,oMe=Cs.ERR_METHOD_NOT_IMPLEMENTED,lMe=Cs.ERR_MULTIPLE_CALLBACK,sMe=Cs.ERR_STREAM_CANNOT_PIPE,uMe=Cs.ERR_STREAM_DESTROYED,fMe=Cs.ERR_STREAM_NULL_VALUES,cMe=Cs.ERR_STREAM_WRITE_AFTER_END,vMe=Cs.ERR_UNKNOWN_ENCODING,qv=aT.errorOrDestroy;Rl()(da,FK);function hMe(){}function dd(e,r,t){Sv=Sv||lf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Sv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=nMe(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){xMe(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 PK(this)}dd.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(dd.prototype,"buffer",{get:Q8e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var M2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M2=Function.prototype[Symbol.hasInstance],Object.defineProperty(da,Symbol.hasInstance,{value:function(r){return M2.call(this,r)?!0:this!==da?!1:r&&r._writableState instanceof dd}})):M2=function(r){return r instanceof this};function da(e){Sv=Sv||lf();var r=this instanceof Sv;if(!r&&!M2.call(da,this))return new da(e);this._writableState=new dd(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)),FK.call(this)}da.prototype.pipe=function(){qv(this,new sMe)};function dMe(e,r){var t=new cMe;qv(e,t),process.nextTick(r,t)}function pMe(e,r,t,a){var n;return t===null?n=new fMe:typeof t!="string"&&!r.objectMode&&(n=new iMe("chunk",["string","Buffer"],t)),n?(qv(e,n),process.nextTick(a,n),!1):!0}da.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&tMe(e);return i&&!k2.isBuffer(e)&&(e=rMe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=hMe),a.ending?dMe(this,t):(i||pMe(this,a,e,t))&&(a.pendingcb++,n=mMe(this,a,i,e,r,t)),n};da.prototype.cork=function(){this._writableState.corked++};da.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&NK(this,e))};da.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 vMe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(da.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yMe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=k2.from(r,t)),r}Object.defineProperty(da.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mMe(e,r,t,a,n,i){if(!t){var o=yMe(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 kMe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};BK.exports=rl;var OK=lT(),oT=nT();Rl()(rl,OK);for(iT=kMe(oT.prototype),S2=0;S2{var L2=pv(),tl=L2.Buffer;function HK(e,r){for(var t in e)r[t]=e[t]}tl.from&&tl.alloc&&tl.allocUnsafe&&tl.allocUnsafeSlow?UK.exports=L2:(HK(L2,sT),sT.Buffer=sf);function sf(e,r,t){return tl(e,r,t)}sf.prototype=Object.create(tl.prototype);HK(tl,sf);sf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return tl(e,r,t)};sf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=tl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};sf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return tl(e)};sf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return L2.SlowBuffer(e)}});var cT=N(YK=>{"use strict";var fT=GK().Buffer,VK=fT.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 LMe(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 CMe(e){var r=LMe(e);if(typeof r!="string"&&(fT.isEncoding===VK||!VK(e)))throw new Error("Unknown encoding: "+e);return r||e}YK.StringDecoder=pd;function pd(e){this.encoding=CMe(e);var r;switch(this.encoding){case"utf16le":this.text=NMe,this.end=IMe,r=4;break;case"utf8":this.fillLast=RMe,r=4;break;case"base64":this.text=zMe,this.end=OMe,r=3;break;default:this.write=BMe,this.end=HMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=fT.allocUnsafe(r)}pd.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 EMe(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 DMe(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 RMe(e){var r=this.lastTotal-this.lastNeed,t=DMe(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 PMe(e,r){var t=EMe(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 FMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function NMe(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 IMe(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 zMe(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 OMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function BMe(e){return e.toString(this.encoding)}function HMe(e){return e&&e.length?this.write(e):""}});var C2=N((HBe,ZK)=>{"use strict";var WK=of().codes.ERR_STREAM_PREMATURE_CLOSE;function UMe(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 E2;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 YMe=C2(),Ds=Symbol("lastResolve"),uf=Symbol("lastReject"),yd=Symbol("error"),D2=Symbol("ended"),ff=Symbol("lastPromise"),vT=Symbol("handlePromise"),cf=Symbol("stream");function Rs(e,r){return{value:e,done:r}}function WMe(e){var r=e[Ds];if(r!==null){var t=e[cf].read();t!==null&&(e[ff]=null,e[Ds]=null,e[uf]=null,r(Rs(t,!1)))}}function jMe(e){process.nextTick(WMe,e)}function ZMe(e,r){return function(t,a){e.then(function(){if(r[D2]){t(Rs(void 0,!0));return}r[vT](t,a)},a)}}var XMe=Object.getPrototypeOf(function(){}),JMe=Object.setPrototypeOf((E2={get stream(){return this[cf]},next:function(){var r=this,t=this[yd];if(t!==null)return Promise.reject(t);if(this[D2])return Promise.resolve(Rs(void 0,!0));if(this[cf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[yd]?l(r[yd]):o(Rs(void 0,!0))})});var a=this[ff],n;if(a)n=new Promise(ZMe(a,this));else{var i=this[cf].read();if(i!==null)return Promise.resolve(Rs(i,!1));n=new Promise(this[vT])}return this[ff]=n,n}},Es(E2,Symbol.asyncIterator,function(){return this}),Es(E2,"return",function(){var r=this;return new Promise(function(t,a){r[cf].destroy(null,function(n){if(n){a(n);return}t(Rs(void 0,!0))})})}),E2),XMe),$Me=function(r){var t,a=Object.create(JMe,(t={},Es(t,cf,{value:r,writable:!0}),Es(t,Ds,{value:null,writable:!0}),Es(t,uf,{value:null,writable:!0}),Es(t,yd,{value:null,writable:!0}),Es(t,D2,{value:r._readableState.endEmitted,writable:!0}),Es(t,vT,{value:function(i,o){var l=a[cf].read();l?(a[ff]=null,a[Ds]=null,a[uf]=null,i(Rs(l,!1))):(a[Ds]=i,a[uf]=o)},writable:!0}),t));return a[ff]=null,YMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[uf];i!==null&&(a[ff]=null,a[Ds]=null,a[uf]=null,i(n)),a[yd]=n;return}var o=a[Ds];o!==null&&(a[ff]=null,a[Ds]=null,a[uf]=null,o(Rs(void 0,!0))),a[D2]=!0}),r.on("readable",jMe.bind(null,a)),a};XK.exports=$Me});var KK=N((GBe,$K)=>{$K.exports=function(){throw new Error("Readable.from is not available in the browser")}});var lT=N((YBe,sQ)=>{"use strict";sQ.exports=gt;var Lv;gt.ReadableState=tQ;var VBe=su().EventEmitter,rQ=function(r,t){return r.listeners(t).length},gd=a7(),R2=pv().Buffer,KMe=window.Uint8Array||function(){};function QMe(e){return R2.from(e)}function e9e(e){return R2.isBuffer(e)||e instanceof KMe}var hT=J7(),tt;hT&&hT.debuglog?tt=hT.debuglog("stream"):tt=function(){};var r9e=AK(),xT=Q7(),t9e=eT(),a9e=t9e.getHighWaterMark,P2=of().codes,n9e=P2.ERR_INVALID_ARG_TYPE,i9e=P2.ERR_STREAM_PUSH_AFTER_EOF,o9e=P2.ERR_METHOD_NOT_IMPLEMENTED,l9e=P2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Cv,dT,pT;Rl()(gt,gd);var md=xT.errorOrDestroy,yT=["error","close","destroy","pause","resume"];function s9e(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 tQ(e,r,t){Lv=Lv||lf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Lv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=a9e(this,e,"readableHighWaterMark",t),this.buffer=new r9e,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&&(Cv||(Cv=cT().StringDecoder),this.decoder=new Cv(e.encoding),this.encoding=e.encoding)}function gt(e){if(Lv=Lv||lf(),!(this instanceof gt))return new gt(e);var r=this instanceof Lv;this._readableState=new tQ(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),gd.call(this)}Object.defineProperty(gt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});gt.prototype.destroy=xT.destroy;gt.prototype._undestroy=xT.undestroy;gt.prototype._destroy=function(e,r){r(e)};gt.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=R2.from(e,r),r=""),a=!0),aQ(this,e,r,!1,a)};gt.prototype.unshift=function(e){return aQ(this,e,null,!0,!1)};function aQ(e,r,t,a,n){tt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,c9e(e,i);else{var o;if(n||(o=u9e(i,r)),o)md(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==R2.prototype&&(r=QMe(r)),a)i.endEmitted?md(e,new l9e):mT(e,i,r,!0);else if(i.ended)md(e,new i9e);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?mT(e,i,r,!1):bT(e,i)):mT(e,i,r,!1)}else a||(i.reading=!1,bT(e,i))}return!i.ended&&(i.length=QK?e=QK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function eQ(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=f9e(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}gt.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?gT(this):F2(this),null;if(e=eQ(e,r),e===0&&r.ended)return r.length===0&&gT(this),null;var a=r.needReadable;tt("need readable",a),(r.length===0||r.length-e0?n=oQ(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&&gT(this)),n!==null&&this.emit("data",n),n};function c9e(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?F2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,nQ(e)))}}function F2(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(nQ,e))}function nQ(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,_T(e)}function bT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(v9e,e,r))}function v9e(e,r){for(;!r.reading&&!r.ended&&(r.length1&&lQ(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),rQ(e,"error")===0&&md(e,m)}s9e(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 h9e(e){return function(){var t=e._readableState;tt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&rQ(e,"data")&&(t.flowing=!0,_T(e))}}gt.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?F2(this):a.reading||process.nextTick(d9e,this)),t};gt.prototype.addListener=gt.prototype.on;gt.prototype.removeListener=function(e,r){var t=gd.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(iQ,this),t};gt.prototype.removeAllListeners=function(e){var r=gd.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(iQ,this),r};function iQ(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 d9e(e){tt("readable nexttick read 0"),e.read(0)}gt.prototype.resume=function(){var e=this._readableState;return e.flowing||(tt("resume"),e.flowing=!e.readableListening,p9e(this,e)),e.paused=!1,this};function p9e(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(y9e,e,r))}function y9e(e,r){tt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),_T(e),r.flowing&&!r.reading&&e.read(0)}gt.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 _T(e){var r=e._readableState;for(tt("flow",r.flowing);r.flowing&&e.read()!==null;);}gt.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 gT(e){var r=e._readableState;tt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(m9e,r,e))}function m9e(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"&&(gt.from=function(e,r){return pT===void 0&&(pT=KK()),pT(gt,e,r)});function lQ(e,r){for(var t=0,a=e.length;t{"use strict";fQ.exports=Fl;var N2=of().codes,g9e=N2.ERR_METHOD_NOT_IMPLEMENTED,b9e=N2.ERR_MULTIPLE_CALLBACK,x9e=N2.ERR_TRANSFORM_ALREADY_TRANSFORMING,_9e=N2.ERR_TRANSFORM_WITH_LENGTH_0,I2=lf();Rl()(Fl,I2);function w9e(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new b9e);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";vQ.exports=bd;var cQ=wT();Rl()(bd,cQ);function bd(e){if(!(this instanceof bd))return new bd(e);cQ.call(this,e)}bd.prototype._transform=function(e,r,t){t(null,e)}});var gQ=N((ZBe,mQ)=>{"use strict";var TT;function A9e(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var yQ=of().codes,M9e=yQ.ERR_MISSING_ARGS,k9e=yQ.ERR_STREAM_DESTROYED;function dQ(e){if(e)throw e}function S9e(e){return e.setHeader&&typeof e.abort=="function"}function q9e(e,r,t,a){a=A9e(a);var n=!1;e.on("close",function(){n=!0}),TT===void 0&&(TT=C2()),TT(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,S9e(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new k9e("pipe"))}}}function pQ(e){e()}function L9e(e,r){return e.pipe(r)}function C9e(e){return!e.length||typeof e[e.length-1]!="function"?dQ:e.pop()}function E9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return q9e(o,s,u,function(f){n||(n=f),f&&i.forEach(pQ),!s&&(i.forEach(pQ),a(n))})});return r.reduce(L9e)}mQ.exports=E9e});var xQ=N((XBe,bQ)=>{bQ.exports=Ui;var AT=su().EventEmitter,D9e=Rl();D9e(Ui,AT);Ui.Readable=lT();Ui.Writable=nT();Ui.Duplex=lf();Ui.Transform=wT();Ui.PassThrough=hQ();Ui.finished=C2();Ui.pipeline=gQ();Ui.Stream=Ui;function Ui(){AT.call(this)}Ui.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(),AT.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 Dv=N(ut=>{var _Q=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]),qT(r)?t.showHidden=r:r&&ut._extend(t,r),hf(t.showHidden)&&(t.showHidden=!1),hf(t.depth)&&(t.depth=2),hf(t.colors)&&(t.colors=!1),hf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=P9e),H2(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 P9e(e,r){var t=Ps.styles[r];return t?"\x1B["+Ps.colors[t][0]+"m"+e+"\x1B["+Ps.colors[t][1]+"m":e}function F9e(e,r){return e}function N9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function H2(e,r,t){if(e.customInspect&&r&&B2(r.inspect)&&r.inspect!==ut.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return V2(a)||(a=H2(e,a,t)),a}var n=I9e(e,r);if(n)return n;var i=Object.keys(r),o=N9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),_d(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return MT(r);if(i.length===0){if(B2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(xd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(U2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_d(r))return MT(r)}var s="",u=!1,f=["{","}"];if(TQ(r)&&(u=!0,f=["[","]"]),B2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(xd(r)&&(s=" "+RegExp.prototype.toString.call(r)),U2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),_d(r)&&(s=" "+MT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return xd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=z9e(e,r,t,o,i):v=i.map(function(d){return ST(e,r,t,o,d,u)}),e.seen.pop(),O9e(v,s,f)}function I9e(e,r){if(hf(r))return e.stylize("undefined","undefined");if(V2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(AQ(r))return e.stylize(""+r,"number");if(qT(r))return e.stylize(""+r,"boolean");if(G2(r))return e.stylize("null","null")}function MT(e){return"["+Error.prototype.toString.call(e)+"]"}function z9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";function _K(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 P8e(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 T2.alloc(0);for(var a=T2.allocUnsafe(t>>>0),n=this.head,i=0;n;)H8e(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=T2.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:B8e,value:function(t,a){return $7(this,P8e({},a,{depth:0,customInspect:!1}))}}]),e}()});var Q7=N((PBe,kK)=>{"use strict";function U8e(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(K7,this,e)):process.nextTick(K7,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(A2,t):(t._writableState.errorEmitted=!0,process.nextTick(MK,t,i)):process.nextTick(MK,t,i):r?(process.nextTick(A2,t),r(i)):process.nextTick(A2,t)}),this)}function MK(e,r){K7(e,r),A2(e)}function A2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function G8e(){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 K7(e,r){e.emit("error",r)}function V8e(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}kK.exports={destroy:U8e,undestroy:G8e,errorOrDestroy:V8e}});var of=N((FBe,LK)=>{"use strict";function Y8e(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var qK={};function Hi(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){Y8e(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,qK[e]=n}function SK(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 W8e(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 Z8e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Hi("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Hi("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&W8e(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(SK(r,"type"));else{var i=Z8e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(SK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Hi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Hi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Hi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Hi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Hi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Hi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Hi("ERR_STREAM_WRITE_AFTER_END","write after end");Hi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Hi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Hi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");LK.exports.codes=qK});var eT=N((NBe,CK)=>{"use strict";var X8e=of().codes.ERR_INVALID_OPT_VALUE;function J8e(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function $8e(e,r,t,a){var n=J8e(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new X8e(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}CK.exports={getHighWaterMark:$8e}});var DK=N((IBe,EK)=>{EK.exports=K8e;function K8e(e,r){if(rT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(rT("throwDeprecation"))throw new Error(r);rT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function rT(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 nT=N((zBe,zK)=>{"use strict";zK.exports=da;function PK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){MMe(r,e)}}var Sv;da.WritableState=pd;var Q8e={deprecate:DK()},FK=a7(),k2=pv().Buffer,eMe=window.Uint8Array||function(){};function rMe(e){return k2.from(e)}function tMe(e){return k2.isBuffer(e)||e instanceof eMe}var aT=Q7(),aMe=eT(),nMe=aMe.getHighWaterMark,Cs=of().codes,iMe=Cs.ERR_INVALID_ARG_TYPE,oMe=Cs.ERR_METHOD_NOT_IMPLEMENTED,lMe=Cs.ERR_MULTIPLE_CALLBACK,sMe=Cs.ERR_STREAM_CANNOT_PIPE,uMe=Cs.ERR_STREAM_DESTROYED,fMe=Cs.ERR_STREAM_NULL_VALUES,cMe=Cs.ERR_STREAM_WRITE_AFTER_END,vMe=Cs.ERR_UNKNOWN_ENCODING,qv=aT.errorOrDestroy;Rl()(da,FK);function hMe(){}function pd(e,r,t){Sv=Sv||lf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Sv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=nMe(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){xMe(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 PK(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:Q8e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var M2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M2=Function.prototype[Symbol.hasInstance],Object.defineProperty(da,Symbol.hasInstance,{value:function(r){return M2.call(this,r)?!0:this!==da?!1:r&&r._writableState instanceof pd}})):M2=function(r){return r instanceof this};function da(e){Sv=Sv||lf();var r=this instanceof Sv;if(!r&&!M2.call(da,this))return new da(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)),FK.call(this)}da.prototype.pipe=function(){qv(this,new sMe)};function dMe(e,r){var t=new cMe;qv(e,t),process.nextTick(r,t)}function pMe(e,r,t,a){var n;return t===null?n=new fMe:typeof t!="string"&&!r.objectMode&&(n=new iMe("chunk",["string","Buffer"],t)),n?(qv(e,n),process.nextTick(a,n),!1):!0}da.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&tMe(e);return i&&!k2.isBuffer(e)&&(e=rMe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=hMe),a.ending?dMe(this,t):(i||pMe(this,a,e,t))&&(a.pendingcb++,n=mMe(this,a,i,e,r,t)),n};da.prototype.cork=function(){this._writableState.corked++};da.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&NK(this,e))};da.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 vMe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(da.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yMe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=k2.from(r,t)),r}Object.defineProperty(da.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mMe(e,r,t,a,n,i){if(!t){var o=yMe(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 kMe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};BK.exports=rl;var OK=lT(),oT=nT();Rl()(rl,OK);for(iT=kMe(oT.prototype),S2=0;S2{var L2=pv(),tl=L2.Buffer;function HK(e,r){for(var t in e)r[t]=e[t]}tl.from&&tl.alloc&&tl.allocUnsafe&&tl.allocUnsafeSlow?UK.exports=L2:(HK(L2,sT),sT.Buffer=sf);function sf(e,r,t){return tl(e,r,t)}sf.prototype=Object.create(tl.prototype);HK(tl,sf);sf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return tl(e,r,t)};sf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=tl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};sf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return tl(e)};sf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return L2.SlowBuffer(e)}});var cT=N(YK=>{"use strict";var fT=GK().Buffer,VK=fT.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 LMe(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 CMe(e){var r=LMe(e);if(typeof r!="string"&&(fT.isEncoding===VK||!VK(e)))throw new Error("Unknown encoding: "+e);return r||e}YK.StringDecoder=yd;function yd(e){this.encoding=CMe(e);var r;switch(this.encoding){case"utf16le":this.text=NMe,this.end=IMe,r=4;break;case"utf8":this.fillLast=RMe,r=4;break;case"base64":this.text=zMe,this.end=OMe,r=3;break;default:this.write=BMe,this.end=HMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=fT.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 EMe(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 DMe(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 RMe(e){var r=this.lastTotal-this.lastNeed,t=DMe(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 PMe(e,r){var t=EMe(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 FMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function NMe(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 IMe(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 zMe(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 OMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function BMe(e){return e.toString(this.encoding)}function HMe(e){return e&&e.length?this.write(e):""}});var C2=N((HBe,ZK)=>{"use strict";var WK=of().codes.ERR_STREAM_PREMATURE_CLOSE;function UMe(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 E2;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 YMe=C2(),Ds=Symbol("lastResolve"),uf=Symbol("lastReject"),md=Symbol("error"),D2=Symbol("ended"),ff=Symbol("lastPromise"),vT=Symbol("handlePromise"),cf=Symbol("stream");function Rs(e,r){return{value:e,done:r}}function WMe(e){var r=e[Ds];if(r!==null){var t=e[cf].read();t!==null&&(e[ff]=null,e[Ds]=null,e[uf]=null,r(Rs(t,!1)))}}function jMe(e){process.nextTick(WMe,e)}function ZMe(e,r){return function(t,a){e.then(function(){if(r[D2]){t(Rs(void 0,!0));return}r[vT](t,a)},a)}}var XMe=Object.getPrototypeOf(function(){}),JMe=Object.setPrototypeOf((E2={get stream(){return this[cf]},next:function(){var r=this,t=this[md];if(t!==null)return Promise.reject(t);if(this[D2])return Promise.resolve(Rs(void 0,!0));if(this[cf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[md]?l(r[md]):o(Rs(void 0,!0))})});var a=this[ff],n;if(a)n=new Promise(ZMe(a,this));else{var i=this[cf].read();if(i!==null)return Promise.resolve(Rs(i,!1));n=new Promise(this[vT])}return this[ff]=n,n}},Es(E2,Symbol.asyncIterator,function(){return this}),Es(E2,"return",function(){var r=this;return new Promise(function(t,a){r[cf].destroy(null,function(n){if(n){a(n);return}t(Rs(void 0,!0))})})}),E2),XMe),$Me=function(r){var t,a=Object.create(JMe,(t={},Es(t,cf,{value:r,writable:!0}),Es(t,Ds,{value:null,writable:!0}),Es(t,uf,{value:null,writable:!0}),Es(t,md,{value:null,writable:!0}),Es(t,D2,{value:r._readableState.endEmitted,writable:!0}),Es(t,vT,{value:function(i,o){var l=a[cf].read();l?(a[ff]=null,a[Ds]=null,a[uf]=null,i(Rs(l,!1))):(a[Ds]=i,a[uf]=o)},writable:!0}),t));return a[ff]=null,YMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[uf];i!==null&&(a[ff]=null,a[Ds]=null,a[uf]=null,i(n)),a[md]=n;return}var o=a[Ds];o!==null&&(a[ff]=null,a[Ds]=null,a[uf]=null,o(Rs(void 0,!0))),a[D2]=!0}),r.on("readable",jMe.bind(null,a)),a};XK.exports=$Me});var KK=N((GBe,$K)=>{$K.exports=function(){throw new Error("Readable.from is not available in the browser")}});var lT=N((YBe,sQ)=>{"use strict";sQ.exports=gt;var Lv;gt.ReadableState=tQ;var VBe=su().EventEmitter,rQ=function(r,t){return r.listeners(t).length},bd=a7(),R2=pv().Buffer,KMe=window.Uint8Array||function(){};function QMe(e){return R2.from(e)}function e9e(e){return R2.isBuffer(e)||e instanceof KMe}var hT=J7(),tt;hT&&hT.debuglog?tt=hT.debuglog("stream"):tt=function(){};var r9e=AK(),xT=Q7(),t9e=eT(),a9e=t9e.getHighWaterMark,P2=of().codes,n9e=P2.ERR_INVALID_ARG_TYPE,i9e=P2.ERR_STREAM_PUSH_AFTER_EOF,o9e=P2.ERR_METHOD_NOT_IMPLEMENTED,l9e=P2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Cv,dT,pT;Rl()(gt,bd);var gd=xT.errorOrDestroy,yT=["error","close","destroy","pause","resume"];function s9e(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 tQ(e,r,t){Lv=Lv||lf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Lv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=a9e(this,e,"readableHighWaterMark",t),this.buffer=new r9e,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&&(Cv||(Cv=cT().StringDecoder),this.decoder=new Cv(e.encoding),this.encoding=e.encoding)}function gt(e){if(Lv=Lv||lf(),!(this instanceof gt))return new gt(e);var r=this instanceof Lv;this._readableState=new tQ(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(gt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});gt.prototype.destroy=xT.destroy;gt.prototype._undestroy=xT.undestroy;gt.prototype._destroy=function(e,r){r(e)};gt.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=R2.from(e,r),r=""),a=!0),aQ(this,e,r,!1,a)};gt.prototype.unshift=function(e){return aQ(this,e,null,!0,!1)};function aQ(e,r,t,a,n){tt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,c9e(e,i);else{var o;if(n||(o=u9e(i,r)),o)gd(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==R2.prototype&&(r=QMe(r)),a)i.endEmitted?gd(e,new l9e):mT(e,i,r,!0);else if(i.ended)gd(e,new i9e);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?mT(e,i,r,!1):bT(e,i)):mT(e,i,r,!1)}else a||(i.reading=!1,bT(e,i))}return!i.ended&&(i.length=QK?e=QK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function eQ(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=f9e(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}gt.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?gT(this):F2(this),null;if(e=eQ(e,r),e===0&&r.ended)return r.length===0&&gT(this),null;var a=r.needReadable;tt("need readable",a),(r.length===0||r.length-e0?n=oQ(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&&gT(this)),n!==null&&this.emit("data",n),n};function c9e(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?F2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,nQ(e)))}}function F2(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(nQ,e))}function nQ(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,_T(e)}function bT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(v9e,e,r))}function v9e(e,r){for(;!r.reading&&!r.ended&&(r.length1&&lQ(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),rQ(e,"error")===0&&gd(e,m)}s9e(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 h9e(e){return function(){var t=e._readableState;tt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&rQ(e,"data")&&(t.flowing=!0,_T(e))}}gt.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?F2(this):a.reading||process.nextTick(d9e,this)),t};gt.prototype.addListener=gt.prototype.on;gt.prototype.removeListener=function(e,r){var t=bd.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(iQ,this),t};gt.prototype.removeAllListeners=function(e){var r=bd.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(iQ,this),r};function iQ(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 d9e(e){tt("readable nexttick read 0"),e.read(0)}gt.prototype.resume=function(){var e=this._readableState;return e.flowing||(tt("resume"),e.flowing=!e.readableListening,p9e(this,e)),e.paused=!1,this};function p9e(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(y9e,e,r))}function y9e(e,r){tt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),_T(e),r.flowing&&!r.reading&&e.read(0)}gt.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 _T(e){var r=e._readableState;for(tt("flow",r.flowing);r.flowing&&e.read()!==null;);}gt.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 gT(e){var r=e._readableState;tt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(m9e,r,e))}function m9e(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"&&(gt.from=function(e,r){return pT===void 0&&(pT=KK()),pT(gt,e,r)});function lQ(e,r){for(var t=0,a=e.length;t{"use strict";fQ.exports=Fl;var N2=of().codes,g9e=N2.ERR_METHOD_NOT_IMPLEMENTED,b9e=N2.ERR_MULTIPLE_CALLBACK,x9e=N2.ERR_TRANSFORM_ALREADY_TRANSFORMING,_9e=N2.ERR_TRANSFORM_WITH_LENGTH_0,I2=lf();Rl()(Fl,I2);function w9e(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new b9e);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";vQ.exports=xd;var cQ=wT();Rl()(xd,cQ);function xd(e){if(!(this instanceof xd))return new xd(e);cQ.call(this,e)}xd.prototype._transform=function(e,r,t){t(null,e)}});var gQ=N((ZBe,mQ)=>{"use strict";var TT;function A9e(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var yQ=of().codes,M9e=yQ.ERR_MISSING_ARGS,k9e=yQ.ERR_STREAM_DESTROYED;function dQ(e){if(e)throw e}function S9e(e){return e.setHeader&&typeof e.abort=="function"}function q9e(e,r,t,a){a=A9e(a);var n=!1;e.on("close",function(){n=!0}),TT===void 0&&(TT=C2()),TT(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,S9e(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new k9e("pipe"))}}}function pQ(e){e()}function L9e(e,r){return e.pipe(r)}function C9e(e){return!e.length||typeof e[e.length-1]!="function"?dQ:e.pop()}function E9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return q9e(o,s,u,function(f){n||(n=f),f&&i.forEach(pQ),!s&&(i.forEach(pQ),a(n))})});return r.reduce(L9e)}mQ.exports=E9e});var xQ=N((XBe,bQ)=>{bQ.exports=Ui;var AT=su().EventEmitter,D9e=Rl();D9e(Ui,AT);Ui.Readable=lT();Ui.Writable=nT();Ui.Duplex=lf();Ui.Transform=wT();Ui.PassThrough=hQ();Ui.finished=C2();Ui.pipeline=gQ();Ui.Stream=Ui;function Ui(){AT.call(this)}Ui.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(),AT.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 Dv=N(ut=>{var _Q=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]),qT(r)?t.showHidden=r:r&&ut._extend(t,r),hf(t.showHidden)&&(t.showHidden=!1),hf(t.depth)&&(t.depth=2),hf(t.colors)&&(t.colors=!1),hf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=P9e),H2(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 P9e(e,r){var t=Ps.styles[r];return t?"\x1B["+Ps.colors[t][0]+"m"+e+"\x1B["+Ps.colors[t][1]+"m":e}function F9e(e,r){return e}function N9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function H2(e,r,t){if(e.customInspect&&r&&B2(r.inspect)&&r.inspect!==ut.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return V2(a)||(a=H2(e,a,t)),a}var n=I9e(e,r);if(n)return n;var i=Object.keys(r),o=N9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),wd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return MT(r);if(i.length===0){if(B2(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(U2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(wd(r))return MT(r)}var s="",u=!1,f=["{","}"];if(TQ(r)&&(u=!0,f=["[","]"]),B2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(_d(r)&&(s=" "+RegExp.prototype.toString.call(r)),U2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),wd(r)&&(s=" "+MT(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=z9e(e,r,t,o,i):v=i.map(function(d){return ST(e,r,t,o,d,u)}),e.seen.pop(),O9e(v,s,f)}function I9e(e,r){if(hf(r))return e.stylize("undefined","undefined");if(V2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(AQ(r))return e.stylize(""+r,"number");if(qT(r))return e.stylize(""+r,"boolean");if(G2(r))return e.stylize("null","null")}function MT(e){return"["+Error.prototype.toString.call(e)+"]"}function z9e(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=` @@ -37,8 +37,8 @@ `))):l=e.stylize("[Circular]","special")),hf(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 O9e(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=G7();function TQ(e){return Array.isArray(e)}ut.isArray=TQ;function qT(e){return typeof e=="boolean"}ut.isBoolean=qT;function G2(e){return e===null}ut.isNull=G2;function B9e(e){return e==null}ut.isNullOrUndefined=B9e;function AQ(e){return typeof e=="number"}ut.isNumber=AQ;function V2(e){return typeof e=="string"}ut.isString=V2;function H9e(e){return typeof e=="symbol"}ut.isSymbol=H9e;function hf(e){return e===void 0}ut.isUndefined=hf;function xd(e){return Ev(e)&<(e)==="[object RegExp]"}ut.isRegExp=xd;ut.types.isRegExp=xd;function Ev(e){return typeof e=="object"&&e!==null}ut.isObject=Ev;function U2(e){return Ev(e)&<(e)==="[object Date]"}ut.isDate=U2;ut.types.isDate=U2;function _d(e){return Ev(e)&&(LT(e)==="[object Error]"||e instanceof Error)}ut.isError=_d;ut.types.isNativeError=_d;function B2(e){return typeof e=="function"}ut.isFunction=B2;function U9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ut.isPrimitive=U9e;ut.isBuffer=V7();function LT(e){return Object.prototype.toString.call(e)}function kT(e){return e<10?"0"+e.toString(10):e.toString(10)}var G9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V9e(){var e=new Date,r=[kT(e.getHours()),kT(e.getMinutes()),kT(e.getSeconds())].join(":");return[e.getDate(),G9e[e.getMonth()],r].join(" ")}ut.log=function(){console.log("%s - %s",V9e(),ut.format.apply(ut,arguments))};ut.inherits=Rl();ut._extend=function(e,r){if(!r||!Ev(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function MQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var vf=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(vf&&r[vf]){var t=r[vf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,vf,{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 kQ(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 tke(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function ake(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function nke(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}wd("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);wd("ERR_INVALID_ARG_TYPE",function(e,r,t){Rv===void 0&&(Rv=W2()),Rv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&tke(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(ake(e," argument"))n="The ".concat(e," ").concat(a," ").concat(SQ(r,"type"));else{var i=nke(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(SQ(r,"type"))}return n+=". Received type ".concat(Fs(t)),n},TypeError);wd("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";CT===void 0&&(CT=Dv());var a=CT.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);wd("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);wd("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);LQ.exports.codes=qQ});var OQ=N((KBe,zQ)=>{"use strict";function CQ(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 EQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function pke(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 _o="",Td="",Ad="",Ka="",df={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:"},yke=10;function PQ(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 Md(e){return FT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function mke(e,r,t){var a="",n="",i=0,o="",l=!1,s=Md(e),u=s.split(` -`),f=Md(r).split(` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}ut.types=G7();function TQ(e){return Array.isArray(e)}ut.isArray=TQ;function qT(e){return typeof e=="boolean"}ut.isBoolean=qT;function G2(e){return e===null}ut.isNull=G2;function B9e(e){return e==null}ut.isNullOrUndefined=B9e;function AQ(e){return typeof e=="number"}ut.isNumber=AQ;function V2(e){return typeof e=="string"}ut.isString=V2;function H9e(e){return typeof e=="symbol"}ut.isSymbol=H9e;function hf(e){return e===void 0}ut.isUndefined=hf;function _d(e){return Ev(e)&<(e)==="[object RegExp]"}ut.isRegExp=_d;ut.types.isRegExp=_d;function Ev(e){return typeof e=="object"&&e!==null}ut.isObject=Ev;function U2(e){return Ev(e)&<(e)==="[object Date]"}ut.isDate=U2;ut.types.isDate=U2;function wd(e){return Ev(e)&&(LT(e)==="[object Error]"||e instanceof Error)}ut.isError=wd;ut.types.isNativeError=wd;function B2(e){return typeof e=="function"}ut.isFunction=B2;function U9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ut.isPrimitive=U9e;ut.isBuffer=V7();function LT(e){return Object.prototype.toString.call(e)}function kT(e){return e<10?"0"+e.toString(10):e.toString(10)}var G9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V9e(){var e=new Date,r=[kT(e.getHours()),kT(e.getMinutes()),kT(e.getSeconds())].join(":");return[e.getDate(),G9e[e.getMonth()],r].join(" ")}ut.log=function(){console.log("%s - %s",V9e(),ut.format.apply(ut,arguments))};ut.inherits=Rl();ut._extend=function(e,r){if(!r||!Ev(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function MQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var vf=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(vf&&r[vf]){var t=r[vf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,vf,{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 kQ(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 tke(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function ake(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function nke(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){Rv===void 0&&(Rv=W2()),Rv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&tke(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(ake(e," argument"))n="The ".concat(e," ").concat(a," ").concat(SQ(r,"type"));else{var i=nke(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(SQ(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";CT===void 0&&(CT=Dv());var a=CT.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);LQ.exports.codes=qQ});var OQ=N((KBe,zQ)=>{"use strict";function CQ(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 EQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function pke(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 _o="",Ad="",Md="",Ka="",df={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:"},yke=10;function PQ(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 FT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function mke(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"&&Un(e)==="object"&&Un(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<=yke){if((Un(e)!=="object"||e===null)&&(Un(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(df[t],` `)+"".concat(u[0]," !== ").concat(f[0],` @@ -52,39 +52,39 @@ `)}c>3&&(o=` `.concat(_o,"...").concat(Ka).concat(o),l=!0),a!==""&&(o=` `.concat(a).concat(o),a="");var _=0,b=df[t]+` -`.concat(Td,"+ actual").concat(Ka," ").concat(Ad,"- expected").concat(Ka),w=" ".concat(_o,"...").concat(Ka," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` +`.concat(Ad,"+ actual").concat(Ka," ").concat(Md,"- expected").concat(Ka),w=" ".concat(_o,"...").concat(Ka," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` `.concat(_o,"...").concat(Ka),l=!0):k>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,a+=` -`.concat(Ad,"-").concat(Ka," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` +`.concat(Md,"-").concat(Ka," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` `.concat(_o,"...").concat(Ka),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(Td,"+").concat(Ka," ").concat(u[c]),_++;else{var M=f[c],q=u[c],E=q!==M&&(!RQ(q,",")||q.slice(0,-1)!==M);E&&RQ(M,",")&&M.slice(0,-1)===q&&(E=!1,q+=","),E?(k>1&&c>2&&(k>4?(n+=` +`.concat(Ad,"+").concat(Ka," ").concat(u[c]),_++;else{var M=f[c],q=u[c],E=q!==M&&(!RQ(q,",")||q.slice(0,-1)!==M);E&&RQ(M,",")&&M.slice(0,-1)===q&&(E=!1,q+=","),E?(k>1&&c>2&&(k>4?(n+=` `.concat(_o,"...").concat(Ka),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(Td,"+").concat(Ka," ").concat(q),a+=` -`.concat(Ad,"-").concat(Ka," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` +`.concat(Ad,"+").concat(Ka," ").concat(q),a+=` +`.concat(Md,"-").concat(Ka," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` `.concat(q),_++))}if(_>20&&c30)for(d[26]="".concat(_o,"...").concat(Ka);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=Md(u),y="",m=df[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(df[l],` +`))}else{var p=kd(u),y="",m=df[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(df[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(Md(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(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,` should equal -`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(RT(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(RT(i),s),i.stack,i.name="AssertionError",NQ(i)}return lke(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return FT(this,EQ(EQ({},o),{},{customInspect:!1,depth:0}))}}]),a}(PT(Error),FT.custom);zQ.exports=gke});var NT=N((QBe,HQ)=>{"use strict";var BQ=Object.prototype.toString;HQ.exports=function(r){var t=BQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&BQ.call(r.callee)==="[object Function]"),a}});var JQ=N((eHe,XQ)=>{"use strict";var ZQ;Object.keys||(qd=Object.prototype.hasOwnProperty,IT=Object.prototype.toString,UQ=NT(),zT=Object.prototype.propertyIsEnumerable,GQ=!zT.call({toString:null},"toString"),VQ=zT.call(function(){},"prototype"),Ld=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Z2=function(e){var r=e.constructor;return r&&r.prototype===e},YQ={$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},WQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!YQ["$"+e]&&qd.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),jQ=function(e){if(typeof window=="undefined"||!WQ)return Z2(e);try{return Z2(e)}catch(r){return!1}},ZQ=function(r){var t=r!==null&&typeof r=="object",a=IT.call(r)==="[object Function]",n=UQ(r),i=t&&IT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=VQ&&a;if(i&&r.length>0&&!qd.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var bke=Array.prototype.slice,xke=NT(),$Q=Object.keys,X2=$Q?function(r){return $Q(r)}:JQ(),KQ=Object.keys;X2.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 xke(a)?KQ(bke.call(a)):KQ(a)})}else Object.keys=X2;return Object.keys||X2};QQ.exports=X2});var iee=N((tHe,nee)=>{"use strict";var _ke=OT(),tee=Xg()(),aee=Tv(),eee=Object,wke=aee("Array.prototype.push"),ree=aee("Object.prototype.propertyIsEnumerable"),Tke=tee?Object.getOwnPropertySymbols:null;nee.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=eee(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var BT=iee(),Ake=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var see=function(e){return e!==e};uee.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||see(r)&&see(t))}});var J2=N((iHe,fee)=>{"use strict";var kke=HT();fee.exports=function(){return typeof Object.is=="function"?Object.is:kke}});var Cd=N((oHe,dee)=>{"use strict";var Ske=OT(),qke=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Lke=Object.prototype.toString,Cke=Array.prototype.concat,cee=Object.defineProperty,Eke=function(e){return typeof e=="function"&&Lke.call(e)==="[object Function]"},Dke=T7()(),vee=cee&&Dke,Rke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!Eke(a)||!a())return}vee?cee(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},hee=function(e,r){var t=arguments.length>2?arguments[2]:{},a=Ske(r);qke&&(a=Cke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var Pke=J2(),Fke=Cd();pee.exports=function(){var r=Pke();return Fke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var xee=N((sHe,bee)=>{"use strict";var Nke=Cd(),Ike=sd(),zke=HT(),mee=J2(),Oke=yee(),gee=Ike(mee(),Object);Nke(gee,{getPolyfill:mee,implementation:zke,shim:Oke});bee.exports=gee});var UT=N((uHe,_ee)=>{"use strict";_ee.exports=function(r){return r!==r}});var GT=N((fHe,wee)=>{"use strict";var Bke=UT();wee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Bke}});var Aee=N((cHe,Tee)=>{"use strict";var Hke=Cd(),Uke=GT();Tee.exports=function(){var r=Uke();return Hke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var qee=N((vHe,See)=>{"use strict";var Gke=sd(),Vke=Cd(),Yke=UT(),Mee=GT(),Wke=Aee(),kee=Gke(Mee(),Number);Vke(kee,{getPolyfill:Mee,implementation:Yke,shim:Wke});See.exports=kee});var Zee=N((hHe,jee)=>{"use strict";function Lee(e,r){return Jke(e)||Xke(e,r)||Zke(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 Zke(e,r){if(e){if(typeof e=="string")return Cee(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 Cee(e,r)}}function Cee(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 Q2(e){return Object.keys(e).filter(iSe).concat(r3(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Gee(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 wo(e){"@babel/helpers - typeof";return wo=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},wo(e)}function Xee(e,r){for(var t=0;t{"use strict";var BQ=Object.prototype.toString;HQ.exports=function(r){var t=BQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&BQ.call(r.callee)==="[object Function]"),a}});var JQ=N((eHe,XQ)=>{"use strict";var ZQ;Object.keys||(Ld=Object.prototype.hasOwnProperty,IT=Object.prototype.toString,UQ=NT(),zT=Object.prototype.propertyIsEnumerable,GQ=!zT.call({toString:null},"toString"),VQ=zT.call(function(){},"prototype"),Cd=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Z2=function(e){var r=e.constructor;return r&&r.prototype===e},YQ={$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},WQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!YQ["$"+e]&&Ld.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),jQ=function(e){if(typeof window=="undefined"||!WQ)return Z2(e);try{return Z2(e)}catch(r){return!1}},ZQ=function(r){var t=r!==null&&typeof r=="object",a=IT.call(r)==="[object Function]",n=UQ(r),i=t&&IT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=VQ&&a;if(i&&r.length>0&&!Ld.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var bke=Array.prototype.slice,xke=NT(),$Q=Object.keys,X2=$Q?function(r){return $Q(r)}:JQ(),KQ=Object.keys;X2.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 xke(a)?KQ(bke.call(a)):KQ(a)})}else Object.keys=X2;return Object.keys||X2};QQ.exports=X2});var iee=N((tHe,nee)=>{"use strict";var _ke=OT(),tee=Xg()(),aee=Tv(),eee=Object,wke=aee("Array.prototype.push"),ree=aee("Object.prototype.propertyIsEnumerable"),Tke=tee?Object.getOwnPropertySymbols:null;nee.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=eee(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var BT=iee(),Ake=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var see=function(e){return e!==e};uee.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||see(r)&&see(t))}});var J2=N((iHe,fee)=>{"use strict";var kke=HT();fee.exports=function(){return typeof Object.is=="function"?Object.is:kke}});var Ed=N((oHe,dee)=>{"use strict";var Ske=OT(),qke=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Lke=Object.prototype.toString,Cke=Array.prototype.concat,cee=Object.defineProperty,Eke=function(e){return typeof e=="function"&&Lke.call(e)==="[object Function]"},Dke=T7()(),vee=cee&&Dke,Rke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!Eke(a)||!a())return}vee?cee(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},hee=function(e,r){var t=arguments.length>2?arguments[2]:{},a=Ske(r);qke&&(a=Cke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var Pke=J2(),Fke=Ed();pee.exports=function(){var r=Pke();return Fke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var xee=N((sHe,bee)=>{"use strict";var Nke=Ed(),Ike=ud(),zke=HT(),mee=J2(),Oke=yee(),gee=Ike(mee(),Object);Nke(gee,{getPolyfill:mee,implementation:zke,shim:Oke});bee.exports=gee});var UT=N((uHe,_ee)=>{"use strict";_ee.exports=function(r){return r!==r}});var GT=N((fHe,wee)=>{"use strict";var Bke=UT();wee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Bke}});var Aee=N((cHe,Tee)=>{"use strict";var Hke=Ed(),Uke=GT();Tee.exports=function(){var r=Uke();return Hke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var qee=N((vHe,See)=>{"use strict";var Gke=ud(),Vke=Ed(),Yke=UT(),Mee=GT(),Wke=Aee(),kee=Gke(Mee(),Number);Vke(kee,{getPolyfill:Mee,implementation:Yke,shim:Wke});See.exports=kee});var Zee=N((hHe,jee)=>{"use strict";function Lee(e,r){return Jke(e)||Xke(e,r)||Zke(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 Zke(e,r){if(e){if(typeof e=="string")return Cee(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 Cee(e,r)}}function Cee(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 Q2(e){return Object.keys(e).filter(iSe).concat(r3(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Gee(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 wo(e){"@babel/helpers - typeof";return wo=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},wo(e)}function Xee(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 Fd=1e3,Nd=Fd*60,Id=Nd*60,zd=Id*24,ESe=zd*365.25;hre.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return DSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?PSe(e):RSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function DSe(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*ESe;case"days":case"day":case"d":return t*zd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Id;case"minutes":case"minute":case"mins":case"min":case"m":return t*Nd;case"seconds":case"second":case"secs":case"sec":case"s":return t*Fd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function RSe(e){return e>=zd?Math.round(e/zd)+"d":e>=Id?Math.round(e/Id)+"h":e>=Nd?Math.round(e/Nd)+"m":e>=Fd?Math.round(e/Fd)+"s":e+"ms"}function PSe(e){return u3(e,zd,"day")||u3(e,Id,"hour")||u3(e,Nd,"minute")||u3(e,Fd,"second")||e+" ms"}function u3(e,r,t){if(!(e{St=pre.exports=JT.debug=JT.default=JT;St.coerce=OSe;St.disable=ISe;St.enable=NSe;St.enabled=zSe;St.humanize=dre();St.names=[];St.skips=[];St.formatters={};var XT;function FSe(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 JT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(XT||a);t.diff=n,t.prev=XT,t.curr=a,XT=a;for(var i=new Array(arguments.length),o=0;o{Tn=gre.exports=yre();Tn.log=USe;Tn.formatArgs=HSe;Tn.save=GSe;Tn.load=mre;Tn.useColors=BSe;Tn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:VSe();Tn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function BSe(){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+)/)}Tn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function HSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+Tn.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 USe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function GSe(e){try{e==null?Tn.storage.removeItem("debug"):Tn.storage.debug=e}catch(r){}}function mre(){var e;try{e=Tn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Tn.enable(mre());function VSe(){try{return window.localStorage}catch(e){}}});var Sre=N((yHe,kre)=>{var Fv=W2(),Os=bre()("stream-parser");kre.exports=WSe;var _re=-1,f3=0,YSe=1,wre=2;function WSe(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=ZSe,r&&(e._passthrough=XSe),r?e._transform=$Se:e._write=JSe}function Od(e){Os("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=_re,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function jSe(e,r){Fv(!this._parserCallback,'there is already a "callback" set!'),Fv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Od(this),Os("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=f3}function ZSe(e,r){Fv(!this._parserCallback,'there is already a "callback" set!'),Fv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Od(this),Os("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=YSe}function XSe(e,r){Fv(!this._parserCallback,'There is already a "callback" set!'),Fv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Od(this),Os("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=wre}function JSe(e,r,t){this._parserInit||Od(this),Os("write(%o bytes)",e.length),typeof r=="function"&&(t=r),Are(this,e,null,t)}function $Se(e,r,t){this._parserInit||Od(this),Os("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),Are(this,e,r,t)}function Tre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return xre(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return xre(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return Tre(e,r.slice(n.length),t,a)}})}}function xre(e,r,t,a){if(e._parserBytesLeft-=r.length,Os("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===f3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===wre&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===f3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==f3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=_re,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Mre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var Are=Mre(Tre);function Mre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(Nl=>{"use strict";var qre=xQ().Transform,KSe=Sre();function Bd(){qre.call(this,{readableObjectMode:!0})}Bd.prototype=Object.create(qre.prototype);Bd.prototype.constructor=Bd;KSe(Bd.prototype);Nl.ParserStream=Bd;Nl.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Nv=xt().readUInt16BE,KT=xt().readUInt32BE;function Hd(e,r){if(e.length<4+r)return null;var t=KT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Nv(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}v3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(aqe(e,r),!!r.sizes.length){var t=nqe(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 h3(e,r){var t=new Error(e);return t.code=r,t}function iqe(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 h3("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 h3("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 h3("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 h3("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)})};QT.exports.ExifParser=Il;QT.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 Ere=N((xHe,Cre)=>{"use strict";var oqe=xt().str2arr,lqe=xt().sliceEq,sqe=xt().readUInt32BE,p3=Lre(),uqe=d3(),fqe=oqe("ftyp");Cre.exports=function(e){if(lqe(e,4,fqe)){var r=p3.unbox(e,0);if(r){var t=p3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=p3.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=p3.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=sqe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=uqe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var Pre=N((_He,Rre)=>{"use strict";var cqe=xt().str2arr,vqe=xt().sliceEq,Dre=xt().readUInt16LE,hqe=cqe("BM");Rre.exports=function(e){if(!(e.length<26)&&vqe(e,0,hqe))return{width:Dre(e,18),height:Dre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Ore=N((wHe,zre)=>{"use strict";var Ire=xt().str2arr,Fre=xt().sliceEq,Nre=xt().readUInt16LE,dqe=Ire("GIF87a"),pqe=Ire("GIF89a");zre.exports=function(e){if(!(e.length<10)&&!(!Fre(e,0,dqe)&&!Fre(e,0,pqe)))return{width:Nre(e,6),height:Nre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Ure=N((THe,Hre)=>{"use strict";var eA=xt().readUInt16LE,yqe=0,mqe=1,Bre=16;Hre.exports=function(e){var r=eA(e,0),t=eA(e,2),a=eA(e,4);if(!(r!==yqe||t!==mqe||!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 Vre=N((AHe,Gre)=>{"use strict";var rA=xt().readUInt16BE,gqe=xt().str2arr,bqe=xt().sliceEq,xqe=d3(),_qe=gqe("Exif\0\0");Gre.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=rA(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&bqe(e,r,_qe)&&(n=xqe.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 Xre=N((MHe,Zre)=>{"use strict";var jre=xt().str2arr,Yre=xt().sliceEq,Wre=xt().readUInt32BE,wqe=jre(`\x89PNG\r +`));var l=new zs({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}Ut.match=function e(r,t,a){fre(r,t,a,e,"match")};Ut.doesNotMatch=function e(r,t,a){fre(r,t,a,e,"doesNotMatch")};function cre(){for(var e=arguments.length,r=new Array(e),t=0;t{var Nd=1e3,Id=Nd*60,zd=Id*60,Od=zd*24,ESe=Od*365.25;hre.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return DSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?PSe(e):RSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function DSe(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*ESe;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 RSe(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 PSe(e){return u3(e,Od,"day")||u3(e,zd,"hour")||u3(e,Id,"minute")||u3(e,Nd,"second")||e+" ms"}function u3(e,r,t){if(!(e{St=pre.exports=JT.debug=JT.default=JT;St.coerce=OSe;St.disable=ISe;St.enable=NSe;St.enabled=zSe;St.humanize=dre();St.names=[];St.skips=[];St.formatters={};var XT;function FSe(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 JT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(XT||a);t.diff=n,t.prev=XT,t.curr=a,XT=a;for(var i=new Array(arguments.length),o=0;o{Tn=gre.exports=yre();Tn.log=USe;Tn.formatArgs=HSe;Tn.save=GSe;Tn.load=mre;Tn.useColors=BSe;Tn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:VSe();Tn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function BSe(){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+)/)}Tn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function HSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+Tn.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 USe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function GSe(e){try{e==null?Tn.storage.removeItem("debug"):Tn.storage.debug=e}catch(r){}}function mre(){var e;try{e=Tn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Tn.enable(mre());function VSe(){try{return window.localStorage}catch(e){}}});var Sre=N((yHe,kre)=>{var Fv=W2(),Os=bre()("stream-parser");kre.exports=WSe;var _re=-1,f3=0,YSe=1,wre=2;function WSe(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=ZSe,r&&(e._passthrough=XSe),r?e._transform=$Se:e._write=JSe}function Bd(e){Os("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=_re,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function jSe(e,r){Fv(!this._parserCallback,'there is already a "callback" set!'),Fv(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=f3}function ZSe(e,r){Fv(!this._parserCallback,'there is already a "callback" set!'),Fv(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=YSe}function XSe(e,r){Fv(!this._parserCallback,'There is already a "callback" set!'),Fv(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=wre}function JSe(e,r,t){this._parserInit||Bd(this),Os("write(%o bytes)",e.length),typeof r=="function"&&(t=r),Are(this,e,null,t)}function $Se(e,r,t){this._parserInit||Bd(this),Os("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),Are(this,e,r,t)}function Tre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return xre(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return xre(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return Tre(e,r.slice(n.length),t,a)}})}}function xre(e,r,t,a){if(e._parserBytesLeft-=r.length,Os("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===f3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===wre&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===f3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==f3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=_re,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Mre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var Are=Mre(Tre);function Mre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(Nl=>{"use strict";var qre=xQ().Transform,KSe=Sre();function Hd(){qre.call(this,{readableObjectMode:!0})}Hd.prototype=Object.create(qre.prototype);Hd.prototype.constructor=Hd;KSe(Hd.prototype);Nl.ParserStream=Hd;Nl.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Nv=xt().readUInt16BE,KT=xt().readUInt32BE;function Ud(e,r){if(e.length<4+r)return null;var t=KT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Nv(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}v3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(aqe(e,r),!!r.sizes.length){var t=nqe(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 h3(e,r){var t=new Error(e);return t.code=r,t}function iqe(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 h3("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 h3("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 h3("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 h3("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)})};QT.exports.ExifParser=Il;QT.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 Ere=N((xHe,Cre)=>{"use strict";var oqe=xt().str2arr,lqe=xt().sliceEq,sqe=xt().readUInt32BE,p3=Lre(),uqe=d3(),fqe=oqe("ftyp");Cre.exports=function(e){if(lqe(e,4,fqe)){var r=p3.unbox(e,0);if(r){var t=p3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=p3.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=p3.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=sqe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=uqe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var Pre=N((_He,Rre)=>{"use strict";var cqe=xt().str2arr,vqe=xt().sliceEq,Dre=xt().readUInt16LE,hqe=cqe("BM");Rre.exports=function(e){if(!(e.length<26)&&vqe(e,0,hqe))return{width:Dre(e,18),height:Dre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Ore=N((wHe,zre)=>{"use strict";var Ire=xt().str2arr,Fre=xt().sliceEq,Nre=xt().readUInt16LE,dqe=Ire("GIF87a"),pqe=Ire("GIF89a");zre.exports=function(e){if(!(e.length<10)&&!(!Fre(e,0,dqe)&&!Fre(e,0,pqe)))return{width:Nre(e,6),height:Nre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Ure=N((THe,Hre)=>{"use strict";var eA=xt().readUInt16LE,yqe=0,mqe=1,Bre=16;Hre.exports=function(e){var r=eA(e,0),t=eA(e,2),a=eA(e,4);if(!(r!==yqe||t!==mqe||!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 Vre=N((AHe,Gre)=>{"use strict";var rA=xt().readUInt16BE,gqe=xt().str2arr,bqe=xt().sliceEq,xqe=d3(),_qe=gqe("Exif\0\0");Gre.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=rA(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&bqe(e,r,_qe)&&(n=xqe.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 Xre=N((MHe,Zre)=>{"use strict";var jre=xt().str2arr,Yre=xt().sliceEq,Wre=xt().readUInt32BE,wqe=jre(`\x89PNG\r  -`),Tqe=jre("IHDR");Zre.exports=function(e){if(!(e.length<24)&&Yre(e,0,wqe)&&Yre(e,12,Tqe))return{width:Wre(e,16),height:Wre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Kre=N((kHe,$re)=>{"use strict";var Aqe=xt().str2arr,Mqe=xt().sliceEq,Jre=xt().readUInt32BE,kqe=Aqe("8BPS\0");$re.exports=function(e){if(!(e.length<22)&&Mqe(e,0,kqe))return{width:Jre(e,18),height:Jre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var rte=N((SHe,ete)=>{"use strict";function Sqe(e){return e===32||e===9||e===13||e===10}function Iv(e){return typeof e=="number"&&isFinite(e)&&e>0}function qqe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,Cqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Eqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Dqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Rqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Qre=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Pqe(e){var r=e.match(Eqe),t=e.match(Dqe),a=e.match(Rqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function al(e){return Qre.test(e)?e.match(Qre)[0]:"px"}ete.exports=function(e){if(qqe(e)){for(var r="",t=0;t{"use strict";var nte=xt().str2arr,tte=xt().sliceEq,Fqe=xt().readUInt16LE,Nqe=xt().readUInt16BE,Iqe=xt().readUInt32LE,zqe=xt().readUInt32BE,Oqe=nte("II*\0"),Bqe=nte("MM\0*");function y3(e,r,t){return t?Nqe(e,r):Fqe(e,r)}function tA(e,r,t){return t?zqe(e,r):Iqe(e,r)}function ate(e,r,t){var a=y3(e,r+2,t),n=tA(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?y3(e,r+8,t):tA(e,r+8,t)}ite.exports=function(e){if(!(e.length<8)&&!(!tte(e,0,Oqe)&&!tte(e,0,Bqe))){var r=e[0]===77,t=tA(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=y3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var ute=xt().str2arr,lte=xt().sliceEq,ste=xt().readUInt16LE,aA=xt().readUInt32LE,Hqe=d3(),Uqe=ute("RIFF"),Gqe=ute("WEBP");function Vqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:ste(e,r+6)&16383,height:ste(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function Yqe(e,r){if(e[r]===47){var t=aA(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function Wqe(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||Vqe(e,r+8):i==="VP8L"&&o>=9?t=t||Yqe(e,r+8):i==="VP8X"&&o>=10?t=t||Wqe(e,r+8):i==="EXIF"&&(a=Hqe.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 hte=N((CHe,vte)=>{"use strict";vte.exports={avif:Ere(),bmp:Pre(),gif:Ore(),ico:Ure(),jpeg:Vre(),png:Xre(),psd:Kre(),svg:rte(),tiff:ote(),webp:cte()}});var dte=N((EHe,iA)=>{"use strict";var nA=hte();function jqe(e){for(var r=Object.keys(nA),t=0;t{"use strict";var Zqe=dte(),Xqe=Tl().IMAGE_URL_PREFIX,Jqe=pv().Buffer;pte.getImageSize=function(e){var r=e.replace(Xqe,""),t=new Jqe(r,"base64");return Zqe(t)}});var bte=N((RHe,gte)=>{"use strict";var mte=Ee(),$qe=uv(),Kqe=Rr(),m3=Ir(),Qqe=Ee().maxRowLength,eLe=yte().getImageSize;gte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=Qqe(t.z);else if(t._hasSource){var i=eLe(t.source);a=i.height,n=i.width}var o=m3.getFromId(r,t.xaxis||"x"),l=m3.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 nLe=Sr(),pf=Ee(),xte=pf.strTranslate,iLe=dl(),oLe=uv(),lLe=s6(),sLe=Tg().STYLE;_te.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&lLe();pf.makeTraceGroups(n,a,"im").each(function(s){var u=nLe.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,q,E;for(E=0;b===void 0&&E0;)w=i.c2p(p+E*T),E--;for(E=0;M===void 0&&E0;)q=o.c2p(y+E*_),E--;if(wH[0];if(X||j){var ee=b+P/2,fe=M+R/2;Y+="transform:"+xte(ee+"px",fe+"px")+"scale("+(X?-1:1)+","+(j?-1:1)+")"+xte(-ee+"px",-fe+"px")+";"}}G.attr("style",Y);var ie=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 we=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var se=c._image;se.onload=function(){we.drawImage(se,0,0),c._canvas={el:K,source:c.source},ue()},se.setAttribute("src",c.source)}}).then(function(){var ue,K;if(c._hasZ)K=B(function(ce,he){var ye=d[he][ce];return pf.isTypedArray(ye)&&(ye=Array.from(ye)),ye}),ue=K.toDataURL("image/png");else if(c._hasSource)if(v)ue=c.source;else{var we=c._canvas.el.getContext("2d",{willReadFrequently:!0}),se=we.getImageData(0,0,m,x).data;K=B(function(ce,he){var ye=4*(he*m+ce);return[se[ye],se[ye+1],se[ye+2],se[ye+3]]}),ue=K.toDataURL("image/png")}G.attr({"xlink:href":ue,height:R,width:P,x:b,y:M})});r._promises.push(ie)})}});var Ate=N((FHe,Tte)=>{"use strict";var uLe=Sr();Tte.exports=function(r){uLe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var qte=N((NHe,Ste)=>{"use strict";var Mte=Pn(),kte=Ee(),g3=kte.isArrayOrTypedArray,fLe=uv();Ste.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Mte.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Mte.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=fLe.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;g3(i.hovertext)&&g3(i.hovertext[u])?b=i.hovertext[u][s]:g3(i.text)&&g3(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,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[kte.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:q,text:b,hovertemplateLabels:{zLabel:q,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 Cte=N((IHe,Lte)=>{"use strict";Lte.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 Dte=N((zHe,Ete)=>{"use strict";Ete.exports={attributes:r7(),supplyDefaults:qX(),calc:bte(),plot:wte(),style:Ate(),hoverPoints:qte(),eventData:Cte(),moduleType:"trace",name:"image",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Pte=N((OHe,Rte)=>{"use strict";Rte.exports=Dte()});var lA=N((BHe,Nte)=>{"use strict";var oA=gn(),cLe=Uc().attributes,vLe=ga(),hLe=ui(),{hovertemplateAttrs:dLe,texttemplateAttrs:pLe,templatefallbackAttrs:Fte}=Yn(),yf=bt().extendFlat,yLe=fi().pattern,b3=vLe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Nte.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:hLe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:yLe,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:yf({},oA.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:dLe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Fte(),texttemplate:pLe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Fte({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:yf({},b3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:yf({},b3,{}),outsidetextfont:yf({},b3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:yf({},oA.showlegend,{arrayOk:!0}),legend:yf({},oA.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:yf({},b3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:cLe({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 Bte=N((HHe,Ote)=>{"use strict";var mLe=Rr(),Ud=Ee(),gLe=lA(),bLe=Uc().defaults,xLe=ju().handleText,_Le=Ee().coercePattern;function Ite(e,r){var t=Ud.isArrayOrTypedArray(e),a=Ud.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 zte(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");_Le(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 wLe(e,r,t,a){function n(T,_){return Ud.coerce(e,r,gLe,T,_)}var i=n("labels"),o=n("values"),l=Ite(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,zte(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Ud.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");xLe(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");bLe(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"),Ud.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Ote.exports={handleLabelsAndValues:Ite,handleMarkerDefaults:zte,supplyDefaults:wLe}});var sA=N((UHe,Hte)=>{"use strict";Hte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Gte=N((GHe,Ute)=>{"use strict";var TLe=Ee(),ALe=sA();Ute.exports=function(r,t){function a(n,i){return TLe.coerce(r,t,ALe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var fA=N((VHe,Wte)=>{"use strict";var MLe=Rr(),uA=Sn(),kLe=Tr(),SLe={};function qLe(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 Vte(e){return function(t,a){return!t||(t=uA(t),!t.isValid())?!1:(t=kLe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function LLe(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=Yte(i,SLe));for(var l=0,s=0;s{"use strict";var CLe=Co().appendArrayMultiPointValues;jte.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]),CLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var yae=N((WHe,pae)=>{"use strict";var Gn=Sr(),ELe=ta(),x3=Pn(),eae=Tr(),zl=Wr(),Wa=Ee(),DLe=Wa.strScale,Xte=Wa.strTranslate,cA=Aa(),rae=N0(),RLe=rae.recordMinTextSize,PLe=rae.clearMinTextSize,tae=m0().TEXTPAD,Ar=K1(),_3=Zte(),Jte=Ee().isValidTextValue;function FLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;PLe("pie",a),iae(r,e),vae(r,n);var i=Wa.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Gn.select(this),s=o[0],u=s.trace;VLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Gn.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){Gn.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,q=Gn.select(this),E=q.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(aae,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,j){var ee=j*(H[0]-V[0]),fe=j*(H[1]-V[1]);return"a"+j*s.r+","+j*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+ee+","+fe}var R=u.hole;if(b.v===s.vTotal){var z="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"+z):E.attr("d",z)}else{var I=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]+I+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}hae(e,b,s);var G=Ar.castOption(u.textposition,b.pts),Y=q.selectAll("g.slicetext").data(b.text&&G!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var V=Wa.ensureSingle(Gn.select(this),"text","",function(K){K.attr("data-notex",1)}),H=Wa.ensureUniformFontSize(e,G==="outside"?ILe(u,b,a.font):nae(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(zl.font,H).call(cA.convertToTspans,e);var X=zl.bBox(V.node()),j;if(G==="outside")j=Qte(X,b);else if(j=oae(X,b,s),G==="auto"&&j.scale<1){var ee=Wa.ensureUniformFontSize(e,u.outsidetextfont);V.call(zl.font,ee),X=zl.bBox(V.node()),j=Qte(X,b)}var fe=j.textPosAngle,ie=fe===void 0?b.pxmid:w3(s.r,fe);if(j.targetX=k+ie[0]*j.rCenter+(j.x||0),j.targetY=M+ie[1]*j.rCenter+(j.y||0),dae(j,X),j.outside){var ue=j.targetY;b.yLabelMin=ue-X.height/2,b.yLabelMid=ue,b.yLabelMax=ue+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}j.fontSize=H.size,RLe(u.type,j,a),o[w].transform=j,Wa.setTransormAndDisplay(V,j)})});var d=Gn.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(Gn.select(this),"text","",function(M){M.attr("data-notex",1)}),w=u.title.text;u._meta&&(w=Wa.templateString(w,u._meta)),b.text(w).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(zl.font,u.title.font).call(cA.convertToTspans,e);var k;u.title.position==="middle center"?k=BLe(s):k=fae(s,n),b.attr("transform",Xte(k.x,k.y)+DLe(Math.min(1,k.scale))+Xte(k.tx,k.ty))}),v&&ULe(c,u),NLe(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;ELe.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=Gn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function NLe(e,r){e.each(function(t){var a=Gn.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],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;Wa.ensureSingle(a,"path","textline").call(eae.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function aae(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=x3.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;Wa.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=[];x3.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:[_3(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:[_3(s,f)],event:Gn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Gn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Gn.event,r.emit("plotly_unhover",{points:[_3(c,f)],event:Gn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(x3.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=[_3(s,f)],x3.click(r,Gn.event))})}function ILe(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 nae(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||eae.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function iae(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=$te(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Kte(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 zLe(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 BLe(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 fae(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=cae(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=HLe(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=vA(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function HLe(e,r){return e/(r===void 0?1:r)}function vA(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 cae(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 ULe(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,q=_.cyFinal+o(_.px0[1],_.px1[1]),E=w-k,D,P,R,z,I,B;if(E*s>0&&(_.labelExtraY=E),!!Wa.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-q)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),I=R.cxFinal+i(R.px0[0],R.px1[0]),B=I+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=OLe(u,r))}function w3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function hae(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);Jte(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:Wa.castOption(n,b.i,"customdata")}}if(i){var x=Wa.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var T=m(r),_=Ar.getFirstFilled(n.text,r.pts);(Jte(_)||_==="")&&(T.text=_),r.text=Wa.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:x})}}}function dae(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}pae.exports={plot:FLe,formatSliceLabel:hae,transformInsideText:oae,determineInsideTextFont:nae,positionTitleOutside:fae,prerenderTitles:iae,layoutAreas:vae,attachFxHandlers:aae,computeTransform:dae}});var bae=N((jHe,gae)=>{"use strict";var mae=Sr(),YLe=Q1(),WLe=N0().resizeText;gae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");WLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=mae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){mae.select(this).call(YLe,l,i,r)})})}});var _ae=N(zv=>{"use strict";var xae=ta();zv.name="pie";zv.plot=function(e,r,t,a){xae.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){xae.cleanBasePlot(zv.name,e,r,t,a)}});var Tae=N((XHe,wae)=>{"use strict";wae.exports={attributes:lA(),supplyDefaults:Bte().supplyDefaults,supplyLayoutDefaults:Gte(),layoutAttributes:sA(),calc:fA().calc,crossTraceCalc:fA().crossTraceCalc,plot:yae().plot,style:bae(),styleOne:Q1(),moduleType:"trace",name:"pie",basePlotModule:_ae(),categories:["pie-like","pie","showLegend"],meta:{}}});var Mae=N((JHe,Aae)=>{"use strict";Aae.exports=Tae()});var Qa=N(($He,Sae)=>{"use strict";var kae=Object.getOwnPropertySymbols,jLe=Object.prototype.hasOwnProperty,ZLe=Object.prototype.propertyIsEnumerable;function XLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JLe(){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}}Sae.exports=JLe()?Object.assign:function(e,r){for(var t,a=XLe(e),n,i=1;i{var A3=Qa();function qae(){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={}}A3(qae.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 hA(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 T3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}A3(hA.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?"-":"")+T3(Math.abs(this.year()),4)+"-"+T3(this.month(),2)+"-"+T3(this.day(),2)}});function dA(){this.shortYearCutoff="+10"}A3(dA.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 hA(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?"-":"")+T3(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=Lae.exports=new qae;Nr.cdate=hA;Nr.baseCalendar=dA;Nr.calendars.gregorian=pA});var Cae=N(()=>{var yA=Qa(),Pa=en();yA(Pa.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"});Pa.local=Pa.regionalOptions[""];yA(Pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});yA(Pa.baseCalendar.prototype,{UNIX_EPOCH:Pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Pa.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 Pa.local.invalidFormat||Pa.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 q=""+w;if(u(b,M))for(;q.length1},T=function(R,z){var I=x(R,z),B=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],G=new RegExp("^-?\\d{1,"+B+"}"),Y=r.substring(q).match(G);if(!Y)throw(Pa.local.missingNumberAt||Pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(q));return q+=R.length,R}return T("m")},w=function(R,z,I,B){for(var G=x(R,B)?I:z,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 Eae=N(()=>{var Bs=en(),$Le=Qa(),mA=Bs.instance();function M3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M3.prototype=new Bs.baseCalendar;$Le(M3.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(QLe);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(eCe);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(rCe);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 Bs.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 Bs.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,Bs.local.invalidyear),n=Us[a-Us[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=mA.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=Hs[e-Hs[0]],a=t>>13,n=a?12:11;if(r>n)throw Bs.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,Bs.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=aCe(e,i,t,n);return mA.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=mA.fromJD(e),t=tCe(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(KLe),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(M3.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 KLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,QLe=/^\d?\d[iI]?/m,eCe=/^闰?十?[一二三四五六七八九]?月/m,rCe=/^闰?十?[一二三四五六七八九]?/m;Bs.calendars.chinese=M3;var Hs=[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],Us=[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 tCe(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=Us[n.year-Us[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Us[i.year-Us[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=Hs[i.year-Hs[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=Hs[o.year-Hs[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 Dae=N(()=>{var mf=en(),nCe=Qa();function gA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gA.prototype=new mf.baseCalendar;nCe(gA.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,mf.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,mf.local.invalidYear||mf.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,mf.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,mf.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)}});mf.calendars.coptic=gA});var Rae=N(()=>{var Ol=en(),iCe=Qa();function bA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bA.prototype=new Ol.baseCalendar;iCe(bA.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:oCe[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 oCe={20:"Fruitbat",21:"Anchovy"};Ol.calendars.discworld=bA});var Pae=N(()=>{var gf=en(),lCe=Qa();function xA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xA.prototype=new gf.baseCalendar;lCe(xA.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,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.ethiopian=xA});var Fae=N(()=>{var Gs=en(),sCe=Qa();function _A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_A.prototype=new Gs.baseCalendar;sCe(_A.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,Gs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,k3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gs.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,Gs.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,Gs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&k3(this.daysInYear(e),10)===5?30:r===9&&k3(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,Gs.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,Gs.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 k3(e,r){return e-r*Math.floor(e/r)}Gs.calendars.hebrew=_A});var Nae=N(()=>{var Gd=en(),uCe=Qa();function wA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wA.prototype=new Gd.baseCalendar;uCe(wA.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,Gd.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,Gd.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,Gd.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)}});Gd.calendars.islamic=wA});var Iae=N(()=>{var Vd=en(),fCe=Qa();function TA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TA.prototype=new Vd.baseCalendar;fCe(TA.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,Vd.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,Vd.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,Vd.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)}});Vd.calendars.julian=TA});var Oae=N(()=>{var Yi=en(),cCe=Qa();function MA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MA.prototype=new Yi.baseCalendar;cCe(MA.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,Yi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yi.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,Yi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Yi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Yi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Yi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Yi.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=AA(e+8+17*20,365);return[Math.floor(r/20)+1,AA(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[zae(e+20,20),zae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Yi.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 AA(e,r){return e-r*Math.floor(e/r)}function zae(e,r){return AA(e-1,r)+1}Yi.calendars.mayan=MA});var Hae=N(()=>{var bf=en(),vCe=Qa();function kA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kA.prototype=new bf.baseCalendar;var Bae=bf.instance("gregorian");vCe(kA.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,bf.local.invalidYear||bf.regionalOptions[""].invalidYear);return Bae.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,bf.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,bf.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)}});bf.calendars.nanakshahi=kA});var Uae=N(()=>{var xf=en(),hCe=Qa();function SA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SA.prototype=new xf.baseCalendar;hCe(SA.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,xf.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,xf.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,xf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=xf.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=xf.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 Ov=en(),dCe=Qa();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function S3(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}q3.prototype=new Ov.baseCalendar;dCe(q3.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,Ov.local.invalidYear);return S3(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,Ov.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,Ov.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,S3(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)}});Ov.calendars.persian=q3;Ov.calendars.jalali=q3});var Vae=N(()=>{var _f=en(),pCe=Qa(),L3=_f.instance();function qA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qA.prototype=new _f.baseCalendar;pCe(qA.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,_f.local.invalidYear),t=this._t2gYear(r.year());return L3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,_f.local.invalidYear),n=this._t2gYear(a.year());return L3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,_f.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,_f.local.invalidDate),n=this._t2gYear(a.year());return L3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=L3.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)}});_f.calendars.taiwan=qA});var Yae=N(()=>{var wf=en(),yCe=Qa(),C3=wf.instance();function LA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LA.prototype=new wf.baseCalendar;yCe(LA.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,wf.local.invalidYear),t=this._t2gYear(r.year());return C3.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 C3.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 C3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=C3.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)}});wf.calendars.thai=LA});var Wae=N(()=>{var Tf=en(),mCe=Qa();function CA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CA.prototype=new Tf.baseCalendar;mCe(CA.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,Tf.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,Tf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Vs[n]-Vs[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,Tf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Vs[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-Vs[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Tf.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=Tf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Tf.calendars.ummalqura=CA;var Vs=[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 Zae=N((LUe,jae)=>{"use strict";jae.exports=en();Cae();Eae();Dae();Rae();Pae();Fae();Nae();Iae();Oae();Hae();Uae();Gae();Vae();Yae();Wae()});var rne=N((CUe,ene)=>{"use strict";var Jae=Zae(),Yd=Ee(),$ae=zt(),gCe=$ae.EPOCHJD,bCe=$ae.ONEDAY,RA={valType:"enumerated",values:Yd.sortObjectKeys(Jae.calendars),editType:"calc",dflt:"gregorian"},Kae=function(e,r,t,a){var n={};return n[t]=RA,Yd.coerce(e,r,n,t,a)},xCe=function(e,r,t,a){for(var n=0;n{"use strict";tne.exports=rne()});var kCe=N((DUe,ine)=>{var nne=QU();nne.register([rV(),UV(),lW(),qW(),UW(),Vj(),nZ(),jZ(),wX(),Pte(),Mae(),ane()]);ine.exports=nne});return kCe();})(); +`),Tqe=jre("IHDR");Zre.exports=function(e){if(!(e.length<24)&&Yre(e,0,wqe)&&Yre(e,12,Tqe))return{width:Wre(e,16),height:Wre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Kre=N((kHe,$re)=>{"use strict";var Aqe=xt().str2arr,Mqe=xt().sliceEq,Jre=xt().readUInt32BE,kqe=Aqe("8BPS\0");$re.exports=function(e){if(!(e.length<22)&&Mqe(e,0,kqe))return{width:Jre(e,18),height:Jre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var rte=N((SHe,ete)=>{"use strict";function Sqe(e){return e===32||e===9||e===13||e===10}function Iv(e){return typeof e=="number"&&isFinite(e)&&e>0}function qqe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,Cqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Eqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Dqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Rqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Qre=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Pqe(e){var r=e.match(Eqe),t=e.match(Dqe),a=e.match(Rqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function al(e){return Qre.test(e)?e.match(Qre)[0]:"px"}ete.exports=function(e){if(qqe(e)){for(var r="",t=0;t{"use strict";var nte=xt().str2arr,tte=xt().sliceEq,Fqe=xt().readUInt16LE,Nqe=xt().readUInt16BE,Iqe=xt().readUInt32LE,zqe=xt().readUInt32BE,Oqe=nte("II*\0"),Bqe=nte("MM\0*");function y3(e,r,t){return t?Nqe(e,r):Fqe(e,r)}function tA(e,r,t){return t?zqe(e,r):Iqe(e,r)}function ate(e,r,t){var a=y3(e,r+2,t),n=tA(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?y3(e,r+8,t):tA(e,r+8,t)}ite.exports=function(e){if(!(e.length<8)&&!(!tte(e,0,Oqe)&&!tte(e,0,Bqe))){var r=e[0]===77,t=tA(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=y3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var ute=xt().str2arr,lte=xt().sliceEq,ste=xt().readUInt16LE,aA=xt().readUInt32LE,Hqe=d3(),Uqe=ute("RIFF"),Gqe=ute("WEBP");function Vqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:ste(e,r+6)&16383,height:ste(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function Yqe(e,r){if(e[r]===47){var t=aA(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function Wqe(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||Vqe(e,r+8):i==="VP8L"&&o>=9?t=t||Yqe(e,r+8):i==="VP8X"&&o>=10?t=t||Wqe(e,r+8):i==="EXIF"&&(a=Hqe.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 hte=N((CHe,vte)=>{"use strict";vte.exports={avif:Ere(),bmp:Pre(),gif:Ore(),ico:Ure(),jpeg:Vre(),png:Xre(),psd:Kre(),svg:rte(),tiff:ote(),webp:cte()}});var dte=N((EHe,iA)=>{"use strict";var nA=hte();function jqe(e){for(var r=Object.keys(nA),t=0;t{"use strict";var Zqe=dte(),Xqe=Tl().IMAGE_URL_PREFIX,Jqe=pv().Buffer;pte.getImageSize=function(e){var r=e.replace(Xqe,""),t=new Jqe(r,"base64");return Zqe(t)}});var bte=N((RHe,gte)=>{"use strict";var mte=Ee(),$qe=uv(),Kqe=Rr(),m3=Ir(),Qqe=Ee().maxRowLength,eLe=yte().getImageSize;gte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=Qqe(t.z);else if(t._hasSource){var i=eLe(t.source);a=i.height,n=i.width}var o=m3.getFromId(r,t.xaxis||"x"),l=m3.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 nLe=Sr(),pf=Ee(),xte=pf.strTranslate,iLe=dl(),oLe=uv(),lLe=s6(),sLe=Tg().STYLE;_te.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&lLe();pf.makeTraceGroups(n,a,"im").each(function(s){var u=nLe.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,q,E;for(E=0;b===void 0&&E0;)w=i.c2p(p+E*T),E--;for(E=0;M===void 0&&E0;)q=o.c2p(y+E*_),E--;if(wH[0];if(X||j){var ee=b+P/2,fe=M+R/2;Y+="transform:"+xte(ee+"px",fe+"px")+"scale("+(X?-1:1)+","+(j?-1:1)+")"+xte(-ee+"px",-fe+"px")+";"}}G.attr("style",Y);var ie=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 we=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var se=c._image;se.onload=function(){we.drawImage(se,0,0),c._canvas={el:K,source:c.source},ue()},se.setAttribute("src",c.source)}}).then(function(){var ue,K;if(c._hasZ)K=B(function(ce,he){var ye=d[he][ce];return pf.isTypedArray(ye)&&(ye=Array.from(ye)),ye}),ue=K.toDataURL("image/png");else if(c._hasSource)if(v)ue=c.source;else{var we=c._canvas.el.getContext("2d",{willReadFrequently:!0}),se=we.getImageData(0,0,m,x).data;K=B(function(ce,he){var ye=4*(he*m+ce);return[se[ye],se[ye+1],se[ye+2],se[ye+3]]}),ue=K.toDataURL("image/png")}G.attr({"xlink:href":ue,height:R,width:P,x:b,y:M})});r._promises.push(ie)})}});var Ate=N((FHe,Tte)=>{"use strict";var uLe=Sr();Tte.exports=function(r){uLe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var qte=N((NHe,Ste)=>{"use strict";var Mte=Pn(),kte=Ee(),g3=kte.isArrayOrTypedArray,fLe=uv();Ste.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Mte.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Mte.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=fLe.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;g3(i.hovertext)&&g3(i.hovertext[u])?b=i.hovertext[u][s]:g3(i.text)&&g3(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,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[kte.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:q,text:b,hovertemplateLabels:{zLabel:q,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 Cte=N((IHe,Lte)=>{"use strict";Lte.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 Dte=N((zHe,Ete)=>{"use strict";Ete.exports={attributes:r7(),supplyDefaults:qX(),calc:bte(),plot:wte(),style:Ate(),hoverPoints:qte(),eventData:Cte(),moduleType:"trace",name:"image",basePlotModule:Ci(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Pte=N((OHe,Rte)=>{"use strict";Rte.exports=Dte()});var lA=N((BHe,Nte)=>{"use strict";var oA=gn(),cLe=Uc().attributes,vLe=ga(),hLe=ui(),{hovertemplateAttrs:dLe,texttemplateAttrs:pLe,templatefallbackAttrs:Fte}=Yn(),yf=bt().extendFlat,yLe=fi().pattern,b3=vLe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Nte.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:hLe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:yLe,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:yf({},oA.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:dLe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Fte(),texttemplate:pLe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Fte({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:yf({},b3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:yf({},b3,{}),outsidetextfont:yf({},b3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:yf({},oA.showlegend,{arrayOk:!0}),legend:yf({},oA.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:yf({},b3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:cLe({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 Bte=N((HHe,Ote)=>{"use strict";var mLe=Rr(),Gd=Ee(),gLe=lA(),bLe=Uc().defaults,xLe=ju().handleText,_Le=Ee().coercePattern;function Ite(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 zte(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");_Le(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 wLe(e,r,t,a){function n(T,_){return Gd.coerce(e,r,gLe,T,_)}var i=n("labels"),o=n("values"),l=Ite(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,zte(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");xLe(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");bLe(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")}Ote.exports={handleLabelsAndValues:Ite,handleMarkerDefaults:zte,supplyDefaults:wLe}});var sA=N((UHe,Hte)=>{"use strict";Hte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Gte=N((GHe,Ute)=>{"use strict";var TLe=Ee(),ALe=sA();Ute.exports=function(r,t){function a(n,i){return TLe.coerce(r,t,ALe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var fA=N((VHe,Wte)=>{"use strict";var MLe=Rr(),uA=Sn(),kLe=Tr(),SLe={};function qLe(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 Vte(e){return function(t,a){return!t||(t=uA(t),!t.isValid())?!1:(t=kLe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function LLe(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=Yte(i,SLe));for(var l=0,s=0;s{"use strict";var CLe=Co().appendArrayMultiPointValues;jte.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]),CLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var yae=N((WHe,pae)=>{"use strict";var Gn=Sr(),ELe=ta(),x3=Pn(),eae=Tr(),zl=Wr(),Wa=Ee(),DLe=Wa.strScale,Xte=Wa.strTranslate,cA=Aa(),rae=I0(),RLe=rae.recordMinTextSize,PLe=rae.clearMinTextSize,tae=g0().TEXTPAD,Ar=Q1(),_3=Zte(),Jte=Ee().isValidTextValue;function FLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;PLe("pie",a),iae(r,e),vae(r,n);var i=Wa.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Gn.select(this),s=o[0],u=s.trace;VLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Gn.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){Gn.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,q=Gn.select(this),E=q.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(aae,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,j){var ee=j*(H[0]-V[0]),fe=j*(H[1]-V[1]);return"a"+j*s.r+","+j*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+ee+","+fe}var R=u.hole;if(b.v===s.vTotal){var z="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"+z):E.attr("d",z)}else{var I=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]+I+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}hae(e,b,s);var G=Ar.castOption(u.textposition,b.pts),Y=q.selectAll("g.slicetext").data(b.text&&G!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var V=Wa.ensureSingle(Gn.select(this),"text","",function(K){K.attr("data-notex",1)}),H=Wa.ensureUniformFontSize(e,G==="outside"?ILe(u,b,a.font):nae(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(zl.font,H).call(cA.convertToTspans,e);var X=zl.bBox(V.node()),j;if(G==="outside")j=Qte(X,b);else if(j=oae(X,b,s),G==="auto"&&j.scale<1){var ee=Wa.ensureUniformFontSize(e,u.outsidetextfont);V.call(zl.font,ee),X=zl.bBox(V.node()),j=Qte(X,b)}var fe=j.textPosAngle,ie=fe===void 0?b.pxmid:w3(s.r,fe);if(j.targetX=k+ie[0]*j.rCenter+(j.x||0),j.targetY=M+ie[1]*j.rCenter+(j.y||0),dae(j,X),j.outside){var ue=j.targetY;b.yLabelMin=ue-X.height/2,b.yLabelMid=ue,b.yLabelMax=ue+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}j.fontSize=H.size,RLe(u.type,j,a),o[w].transform=j,Wa.setTransormAndDisplay(V,j)})});var d=Gn.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(Gn.select(this),"text","",function(M){M.attr("data-notex",1)}),w=u.title.text;u._meta&&(w=Wa.templateString(w,u._meta)),b.text(w).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(zl.font,u.title.font).call(cA.convertToTspans,e);var k;u.title.position==="middle center"?k=BLe(s):k=fae(s,n),b.attr("transform",Xte(k.x,k.y)+DLe(Math.min(1,k.scale))+Xte(k.tx,k.ty))}),v&&ULe(c,u),NLe(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;ELe.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=Gn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function NLe(e,r){e.each(function(t){var a=Gn.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],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;Wa.ensureSingle(a,"path","textline").call(eae.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function aae(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=x3.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;Wa.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=[];x3.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:[_3(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:[_3(s,f)],event:Gn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Gn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Gn.event,r.emit("plotly_unhover",{points:[_3(c,f)],event:Gn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(x3.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=[_3(s,f)],x3.click(r,Gn.event))})}function ILe(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 nae(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||eae.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function iae(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=$te(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Kte(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 zLe(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 BLe(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 fae(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=cae(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=HLe(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=vA(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function HLe(e,r){return e/(r===void 0?1:r)}function vA(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 cae(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 ULe(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,q=_.cyFinal+o(_.px0[1],_.px1[1]),E=w-k,D,P,R,z,I,B;if(E*s>0&&(_.labelExtraY=E),!!Wa.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-q)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),I=R.cxFinal+i(R.px0[0],R.px1[0]),B=I+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=OLe(u,r))}function w3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function hae(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);Jte(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:Wa.castOption(n,b.i,"customdata")}}if(i){var x=Wa.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var T=m(r),_=Ar.getFirstFilled(n.text,r.pts);(Jte(_)||_==="")&&(T.text=_),r.text=Wa.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:x})}}}function dae(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}pae.exports={plot:FLe,formatSliceLabel:hae,transformInsideText:oae,determineInsideTextFont:nae,positionTitleOutside:fae,prerenderTitles:iae,layoutAreas:vae,attachFxHandlers:aae,computeTransform:dae}});var bae=N((jHe,gae)=>{"use strict";var mae=Sr(),YLe=ey(),WLe=I0().resizeText;gae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");WLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=mae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){mae.select(this).call(YLe,l,i,r)})})}});var _ae=N(zv=>{"use strict";var xae=ta();zv.name="pie";zv.plot=function(e,r,t,a){xae.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){xae.cleanBasePlot(zv.name,e,r,t,a)}});var Tae=N((XHe,wae)=>{"use strict";wae.exports={attributes:lA(),supplyDefaults:Bte().supplyDefaults,supplyLayoutDefaults:Gte(),layoutAttributes:sA(),calc:fA().calc,crossTraceCalc:fA().crossTraceCalc,plot:yae().plot,style:bae(),styleOne:ey(),moduleType:"trace",name:"pie",basePlotModule:_ae(),categories:["pie-like","pie","showLegend"],meta:{}}});var Mae=N((JHe,Aae)=>{"use strict";Aae.exports=Tae()});var Qa=N(($He,Sae)=>{"use strict";var kae=Object.getOwnPropertySymbols,jLe=Object.prototype.hasOwnProperty,ZLe=Object.prototype.propertyIsEnumerable;function XLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JLe(){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}}Sae.exports=JLe()?Object.assign:function(e,r){for(var t,a=XLe(e),n,i=1;i{var A3=Qa();function qae(){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={}}A3(qae.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 hA(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 T3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}A3(hA.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?"-":"")+T3(Math.abs(this.year()),4)+"-"+T3(this.month(),2)+"-"+T3(this.day(),2)}});function dA(){this.shortYearCutoff="+10"}A3(dA.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 hA(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?"-":"")+T3(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=Lae.exports=new qae;Nr.cdate=hA;Nr.baseCalendar=dA;Nr.calendars.gregorian=pA});var Cae=N(()=>{var yA=Qa(),Pa=en();yA(Pa.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"});Pa.local=Pa.regionalOptions[""];yA(Pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});yA(Pa.baseCalendar.prototype,{UNIX_EPOCH:Pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Pa.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 Pa.local.invalidFormat||Pa.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 q=""+w;if(u(b,M))for(;q.length1},T=function(R,z){var I=x(R,z),B=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],G=new RegExp("^-?\\d{1,"+B+"}"),Y=r.substring(q).match(G);if(!Y)throw(Pa.local.missingNumberAt||Pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(q));return q+=R.length,R}return T("m")},w=function(R,z,I,B){for(var G=x(R,B)?I:z,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 Eae=N(()=>{var Bs=en(),$Le=Qa(),mA=Bs.instance();function M3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M3.prototype=new Bs.baseCalendar;$Le(M3.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(QLe);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(eCe);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(rCe);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 Bs.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 Bs.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,Bs.local.invalidyear),n=Us[a-Us[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=mA.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=Hs[e-Hs[0]],a=t>>13,n=a?12:11;if(r>n)throw Bs.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,Bs.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=aCe(e,i,t,n);return mA.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=mA.fromJD(e),t=tCe(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(KLe),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(M3.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 KLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,QLe=/^\d?\d[iI]?/m,eCe=/^闰?十?[一二三四五六七八九]?月/m,rCe=/^闰?十?[一二三四五六七八九]?/m;Bs.calendars.chinese=M3;var Hs=[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],Us=[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 tCe(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=Us[n.year-Us[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Us[i.year-Us[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=Hs[i.year-Hs[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=Hs[o.year-Hs[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 Dae=N(()=>{var mf=en(),nCe=Qa();function gA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gA.prototype=new mf.baseCalendar;nCe(gA.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,mf.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,mf.local.invalidYear||mf.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,mf.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,mf.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)}});mf.calendars.coptic=gA});var Rae=N(()=>{var Ol=en(),iCe=Qa();function bA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bA.prototype=new Ol.baseCalendar;iCe(bA.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:oCe[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 oCe={20:"Fruitbat",21:"Anchovy"};Ol.calendars.discworld=bA});var Pae=N(()=>{var gf=en(),lCe=Qa();function xA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xA.prototype=new gf.baseCalendar;lCe(xA.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,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.ethiopian=xA});var Fae=N(()=>{var Gs=en(),sCe=Qa();function _A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_A.prototype=new Gs.baseCalendar;sCe(_A.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,Gs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,k3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gs.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,Gs.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,Gs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&k3(this.daysInYear(e),10)===5?30:r===9&&k3(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,Gs.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,Gs.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 k3(e,r){return e-r*Math.floor(e/r)}Gs.calendars.hebrew=_A});var Nae=N(()=>{var Vd=en(),uCe=Qa();function wA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wA.prototype=new Vd.baseCalendar;uCe(wA.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=wA});var Iae=N(()=>{var Yd=en(),fCe=Qa();function TA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TA.prototype=new Yd.baseCalendar;fCe(TA.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=TA});var Oae=N(()=>{var Yi=en(),cCe=Qa();function MA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MA.prototype=new Yi.baseCalendar;cCe(MA.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,Yi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yi.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,Yi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Yi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Yi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Yi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Yi.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=AA(e+8+17*20,365);return[Math.floor(r/20)+1,AA(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[zae(e+20,20),zae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Yi.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 AA(e,r){return e-r*Math.floor(e/r)}function zae(e,r){return AA(e-1,r)+1}Yi.calendars.mayan=MA});var Hae=N(()=>{var bf=en(),vCe=Qa();function kA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kA.prototype=new bf.baseCalendar;var Bae=bf.instance("gregorian");vCe(kA.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,bf.local.invalidYear||bf.regionalOptions[""].invalidYear);return Bae.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,bf.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,bf.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)}});bf.calendars.nanakshahi=kA});var Uae=N(()=>{var xf=en(),hCe=Qa();function SA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SA.prototype=new xf.baseCalendar;hCe(SA.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,xf.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,xf.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,xf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=xf.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=xf.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 Ov=en(),dCe=Qa();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function S3(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}q3.prototype=new Ov.baseCalendar;dCe(q3.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,Ov.local.invalidYear);return S3(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,Ov.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,Ov.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,S3(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)}});Ov.calendars.persian=q3;Ov.calendars.jalali=q3});var Vae=N(()=>{var _f=en(),pCe=Qa(),L3=_f.instance();function qA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qA.prototype=new _f.baseCalendar;pCe(qA.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,_f.local.invalidYear),t=this._t2gYear(r.year());return L3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,_f.local.invalidYear),n=this._t2gYear(a.year());return L3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,_f.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,_f.local.invalidDate),n=this._t2gYear(a.year());return L3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=L3.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)}});_f.calendars.taiwan=qA});var Yae=N(()=>{var wf=en(),yCe=Qa(),C3=wf.instance();function LA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LA.prototype=new wf.baseCalendar;yCe(LA.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,wf.local.invalidYear),t=this._t2gYear(r.year());return C3.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 C3.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 C3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=C3.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)}});wf.calendars.thai=LA});var Wae=N(()=>{var Tf=en(),mCe=Qa();function CA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CA.prototype=new Tf.baseCalendar;mCe(CA.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,Tf.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,Tf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Vs[n]-Vs[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,Tf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Vs[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-Vs[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Tf.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=Tf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Tf.calendars.ummalqura=CA;var Vs=[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 Zae=N((LUe,jae)=>{"use strict";jae.exports=en();Cae();Eae();Dae();Rae();Pae();Fae();Nae();Iae();Oae();Hae();Uae();Gae();Vae();Yae();Wae()});var rne=N((CUe,ene)=>{"use strict";var Jae=Zae(),Wd=Ee(),$ae=zt(),gCe=$ae.EPOCHJD,bCe=$ae.ONEDAY,RA={valType:"enumerated",values:Wd.sortObjectKeys(Jae.calendars),editType:"calc",dflt:"gregorian"},Kae=function(e,r,t,a){var n={};return n[t]=RA,Wd.coerce(e,r,n,t,a)},xCe=function(e,r,t,a){for(var n=0;n{"use strict";tne.exports=rne()});var kCe=N((DUe,ine)=>{var nne=QU();nne.register([rV(),UV(),lW(),qW(),UW(),Vj(),nZ(),jZ(),wX(),Pte(),Mae(),ane()]);ine.exports=nne});return kCe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index 12e35d3c160..354d54c9da6 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -13773,9 +13773,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35903,7 +35903,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-finance.min.js b/dist/plotly-finance.min.js index 90fd047e13a..c1602c8cb17 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var dd=Object.defineProperty,vX=Object.defineProperties,dX=Object.getOwnPropertyDescriptor,hX=Object.getOwnPropertyDescriptors,pX=Object.getOwnPropertyNames,j4=Object.getOwnPropertySymbols;var r6=Object.prototype.hasOwnProperty,mX=Object.prototype.propertyIsEnumerable;var e6=(e,r,t)=>r in e?dd(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Xo=(e,r)=>{for(var t in r||(r={}))r6.call(r,t)&&e6(e,t,r[t]);if(j4)for(var t of j4(r))mX.call(r,t)&&e6(e,t,r[t]);return e},hd=(e,r)=>vX(e,hX(r));var it=(e,r)=>()=>(e&&(r=e(e=0)),r);var O=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),yX=(e,r)=>{for(var t in r)dd(e,t,{get:r[t],enumerable:!0})},gX=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of pX(r))!r6.call(e,n)&&n!==t&&dd(e,n,{get:()=>r[n],enumerable:!(a=dX(r,n))||a.enumerable});return e};var t6=e=>gX(dd({},"__esModule",{value:!0}),e);var pd=O(a6=>{"use strict";a6.version="3.4.0"});var i6=O((n6,md)=>{(function(r,t,a){t[r]=t[r]||a(),typeof md!="undefined"&&md.exports&&(md.exports=t[r])})("Promise",typeof window!="undefined"?window:n6,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((mme,yd)=>{(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/(I-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,I):q?I.sort(q):I;for(var K=-1,re=I.length,te=g[$++],ye,Ae,ae,ue=new x,ve;++K=g.length)return P;var $=[],K=T[I++];return P.forEach(function(re,te){$.push({key:re,values:z(te,I)})}),K?$.sort(function(re,te){return K(re.key,te.key)}):$}return v.map=function(P,I){return L(I,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 F;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}},_e.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 I=g.apply(this,arguments);I==null?this.removeAttribute(v):this.setAttribute(v,I)}function P(){var I=g.apply(this,arguments);I==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,I)}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," ")}_e.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=ze(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},_e.sort=function(v){v=we.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(I=z[g])&&++g0&&(v=v.slice(0,C));var z=He.get(v);z&&(v=z,L=Ge);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function I(){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?I:P:g?B:$}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(v){"on"+v in a&&He.remove(v)});function Je(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 Ge(v,g){var T=Je(v,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&T.call(C,q)}}var Xe,lr=0;function tr(v){var g=".dragsuppress-"+ ++lr,T="click"+g,q=e.select(i(v)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Xe==null&&(Xe="onselectstart"in v?!1:G(v.style,"userSelect")),Xe){var C=n(v).style,L=C[Xe];C[Xe]="none"}return function(z){if(q.on(g,null),Xe&&(C[Xe]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){ee(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Fe(v,le())};var Ke=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(Ke<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();Ke=!(L.f||L.e),T.remove()}}return Ke?(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 ut(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?Ee:Math.acos(v)}function _t(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function Ht(v){return((v=Math.exp(v))-1/v)/2}function ra(v){return((v=Math.exp(v))+1/v)/2}function Ia(v){return((v=Math.exp(2*v))-1)/(v+1)}function ma(v){return(v=Math.sin(v/2))*v}var ya=Math.SQRT2,vr=2,ft=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],I=L-T,$=z-q,K=I*I+$*$,re,te;if(K0&&(er=er.transition().duration(z)),er.call(ke.event)}function hr(){ue&&ue.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),Te&&Te.domain(ve.range().map(function(er){return(er-v.y)/v.k}).map(ve.invert))}function pr(er){P++||er({type:"zoomstart"})}function Lr(er){hr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function mr(er){--P||(er({type:"zoomend"}),T=null)}function Ar(){var er=this,Dr=Ae.of(er,arguments),Er=0,Qr=e.select(i(er)).on($,wa).on(K,Ba),Ct=pe(e.mouse(er)),Qt=tr(er);ud.call(er),pr(Dr);function wa(){Er=1,ur(e.mouse(er),Ct),Lr(Dr)}function Ba(){Qr.on($,null).on(K,null),Qt(Er),mr(Dr)}}function Kr(){var er=this,Dr=Ae.of(er,arguments),Er={},Qr=0,Ct,Qt=".zoom-"+e.event.changedTouches[0].identifier,wa="touchmove"+Qt,Ba="touchend"+Qt,$a=[],Oa=e.select(er),rn=tr(er);tn(),pr(Dr),Oa.on(I,null).on(te,tn);function Ea(){var ui=e.touches(er);return Ct=v.k,ui.forEach(function(Ta){Ta.identifier in Er&&(Er[Ta.identifier]=pe(Ta))}),ui}function tn(){var ui=e.event.target;e.select(ui).on(wa,Uo).on(Ba,cX),$a.push(ui);for(var Ta=e.event.changedTouches,zn=0,Ii=Ta.length;zn1){var Wo=Nn[0],Hl=Nn[1],vd=Wo[0]-Hl[0],Q4=Wo[1]-Hl[1];Qr=vd*vd+Q4*Q4}}function Uo(){var ui=e.touches(er),Ta,zn,Ii,Nn;ud.call(er);for(var _u=0,Wo=ui.length;_u1?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 Ha(z(v+120),z(v),z(v-120))}e.hcl=ta;function ta(v,g,T){return this instanceof ta?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof ta?new ta(v.h,v.c,v.l):v instanceof Rt?Y0(v.l,v.a,v.b):Y0((v=or((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ta(v,g,T)}var Ni=ta.prototype=new At;Ni.brighter=function(v){return new ta(this.h,this.c,Math.min(100,this.l+qt*(arguments.length?v:1)))},Ni.darker=function(v){return new ta(this.h,this.c,Math.max(0,this.l-qt*(arguments.length?v:1)))},Ni.rgb=function(){return Pn(this.h,this.c,this.l).rgb()};function Pn(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Rt(T,Math.cos(v*=Mr)*g,Math.sin(v)*g)}e.lab=Rt;function Rt(v,g,T){return this instanceof Rt?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof Rt?new Rt(v.l,v.a,v.b):v instanceof ta?Pn(v.h,v.c,v.l):or((v=Ha(v)).r,v.g,v.b):new Rt(v,g,T)}var qt=18,xa=.95047,Ho=1,Bo=1.08883,Fl=Rt.prototype=new At;Fl.brighter=function(v){return new Rt(Math.min(100,this.l+qt*(arguments.length?v:1)),this.a,this.b)},Fl.darker=function(v){return new Rt(Math.max(0,this.l-qt*(arguments.length?v:1)),this.a,this.b)},Fl.rgb=function(){return O0(this.l,this.a,this.b)};function O0(v,g,T){var q=(v+16)/116,C=q+g/500,L=q-T/200;return C=cc(C)*xa,q=cc(q)*Ho,L=cc(L)*Bo,new Ha(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 Y0(v,g,T){return v>0?new ta(Math.atan2(T,g)*Or,Math.sqrt(g*g+T*T),v):new ta(NaN,NaN,v)}function cc(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function vc(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=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):Wr(""+v,Ha,En):new Ha(v,g,T)}function V0(v){return new Ha(v>>16,v>>8&255,v&255)}function du(v){return V0(v)+""}var hu=Ha.prototype=new At;hu.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 Ha(C,C,C):(g&&g>4,q=q>>4|q,C=I&240,C=C>>4|C,L=I&15,L=L<<4|L):v.length===7&&(q=(I&16711680)>>16,C=(I&65280)>>8,L=I&255)),g(q,C,L))}function rt(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),L=C-q,z,P,I=(C+q)/2;return L?(P=I<.5?L/(C+q):L/(2-C-q),v==C?z=(g-T)/L+(g0&&I<1?0:z),new jr(z,P,I)}function or(v,g,T){v=ba(v),g=ba(g),T=ba(T);var q=vc((.4124564*v+.3575761*g+.1804375*T)/xa),C=vc((.2126729*v+.7151522*g+.072175*T)/Ho),L=vc((.0193339*v+.119192*g+.9503041*T)/Bo);return Rt(116*C-16,500*(q-C),200*(C-L))}function ba(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function ct(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var _a=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});_a.forEach(function(v,g){_a.set(v,V0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=oi(Y);function oi(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Oo(g,T,v,q)}}function Oo(v,g,T,q){var C={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,I=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&&dU(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?(I=K,C):I},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),I!=null&&(P.responseType=I),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(vU(q))}function vU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function dU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` +"use strict";var Plotly=(()=>{var dh=Object.defineProperty,vX=Object.defineProperties,hX=Object.getOwnPropertyDescriptor,dX=Object.getOwnPropertyDescriptors,pX=Object.getOwnPropertyNames,j4=Object.getOwnPropertySymbols;var r6=Object.prototype.hasOwnProperty,mX=Object.prototype.propertyIsEnumerable;var e6=(e,r,t)=>r in e?dh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Xo=(e,r)=>{for(var t in r||(r={}))r6.call(r,t)&&e6(e,t,r[t]);if(j4)for(var t of j4(r))mX.call(r,t)&&e6(e,t,r[t]);return e},ph=(e,r)=>vX(e,dX(r));var it=(e,r)=>()=>(e&&(r=e(e=0)),r);var O=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),yX=(e,r)=>{for(var t in r)dh(e,t,{get:r[t],enumerable:!0})},gX=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of pX(r))!r6.call(e,n)&&n!==t&&dh(e,n,{get:()=>r[n],enumerable:!(a=hX(r,n))||a.enumerable});return e};var t6=e=>gX(dh({},"__esModule",{value:!0}),e);var mh=O(a6=>{"use strict";a6.version="3.4.0"});var i6=O((n6,yh)=>{(function(r,t,a){t[r]=t[r]||a(),typeof yh!="undefined"&&yh.exports&&(yh.exports=t[r])})("Promise",typeof window!="undefined"?window:n6,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((mme,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/(I-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,I):q?I.sort(q):I;for(var K=-1,re=I.length,te=g[$++],ye,Ae,ae,ue=new x,ve;++K=g.length)return P;var $=[],K=T[I++];return P.forEach(function(re,te){$.push({key:re,values:z(te,I)})}),K?$.sort(function(re,te){return K(re.key,te.key)}):$}return v.map=function(P,I){return L(I,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 F;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}},_e.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 I=g.apply(this,arguments);I==null?this.removeAttribute(v):this.setAttribute(v,I)}function P(){var I=g.apply(this,arguments);I==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,I)}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," ")}_e.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=ze(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},_e.sort=function(v){v=we.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(I=z[g])&&++g0&&(v=v.slice(0,C));var z=He.get(v);z&&(v=z,L=Ge);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function I(){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?I:P:g?B:$}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(v){"on"+v in a&&He.remove(v)});function Je(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 Ge(v,g){var T=Je(v,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&T.call(C,q)}}var Xe,lr=0;function tr(v){var g=".dragsuppress-"+ ++lr,T="click"+g,q=e.select(i(v)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Xe==null&&(Xe="onselectstart"in v?!1:G(v.style,"userSelect")),Xe){var C=n(v).style,L=C[Xe];C[Xe]="none"}return function(z){if(q.on(g,null),Xe&&(C[Xe]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){ee(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Fe(v,le())};var Ke=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(Ke<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();Ke=!(L.f||L.e),T.remove()}}return Ke?(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 ut(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?Ee:Math.acos(v)}function _t(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function Ht(v){return((v=Math.exp(v))-1/v)/2}function ra(v){return((v=Math.exp(v))+1/v)/2}function Ia(v){return((v=Math.exp(2*v))-1)/(v+1)}function ma(v){return(v=Math.sin(v/2))*v}var ya=Math.SQRT2,vr=2,ft=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],I=L-T,$=z-q,K=I*I+$*$,re,te;if(K0&&(er=er.transition().duration(z)),er.call(ke.event)}function dr(){ue&&ue.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),Te&&Te.domain(ve.range().map(function(er){return(er-v.y)/v.k}).map(ve.invert))}function pr(er){P++||er({type:"zoomstart"})}function Lr(er){dr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function mr(er){--P||(er({type:"zoomend"}),T=null)}function Ar(){var er=this,Dr=Ae.of(er,arguments),Er=0,Qr=e.select(i(er)).on($,wa).on(K,Ba),Ct=pe(e.mouse(er)),Qt=tr(er);fh.call(er),pr(Dr);function wa(){Er=1,ur(e.mouse(er),Ct),Lr(Dr)}function Ba(){Qr.on($,null).on(K,null),Qt(Er),mr(Dr)}}function Kr(){var er=this,Dr=Ae.of(er,arguments),Er={},Qr=0,Ct,Qt=".zoom-"+e.event.changedTouches[0].identifier,wa="touchmove"+Qt,Ba="touchend"+Qt,$a=[],Oa=e.select(er),rn=tr(er);tn(),pr(Dr),Oa.on(I,null).on(te,tn);function Ea(){var ui=e.touches(er);return Ct=v.k,ui.forEach(function(Ta){Ta.identifier in Er&&(Er[Ta.identifier]=pe(Ta))}),ui}function tn(){var ui=e.event.target;e.select(ui).on(wa,Uo).on(Ba,cX),$a.push(ui);for(var Ta=e.event.changedTouches,zn=0,Ii=Ta.length;zn1){var Wo=Nn[0],Hl=Nn[1],hh=Wo[0]-Hl[0],Q4=Wo[1]-Hl[1];Qr=hh*hh+Q4*Q4}}function Uo(){var ui=e.touches(er),Ta,zn,Ii,Nn;fh.call(er);for(var _u=0,Wo=ui.length;_u1?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 Ha(z(v+120),z(v),z(v-120))}e.hcl=ta;function ta(v,g,T){return this instanceof ta?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof ta?new ta(v.h,v.c,v.l):v instanceof Rt?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 ta(v,g,T)}var Ni=ta.prototype=new At;Ni.brighter=function(v){return new ta(this.h,this.c,Math.min(100,this.l+qt*(arguments.length?v:1)))},Ni.darker=function(v){return new ta(this.h,this.c,Math.max(0,this.l-qt*(arguments.length?v:1)))},Ni.rgb=function(){return Pn(this.h,this.c,this.l).rgb()};function Pn(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Rt(T,Math.cos(v*=Mr)*g,Math.sin(v)*g)}e.lab=Rt;function Rt(v,g,T){return this instanceof Rt?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof Rt?new Rt(v.l,v.a,v.b):v instanceof ta?Pn(v.h,v.c,v.l):or((v=Ha(v)).r,v.g,v.b):new Rt(v,g,T)}var qt=18,xa=.95047,Ho=1,Bo=1.08883,Fl=Rt.prototype=new At;Fl.brighter=function(v){return new Rt(Math.min(100,this.l+qt*(arguments.length?v:1)),this.a,this.b)},Fl.darker=function(v){return new Rt(Math.max(0,this.l-qt*(arguments.length?v:1)),this.a,this.b)},Fl.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=cc(C)*xa,q=cc(q)*Ho,L=cc(L)*Bo,new Ha(hc(3.2404542*C-1.5371385*q-.4985314*L),hc(-.969266*C+1.8760108*q+.041556*L),hc(.0556434*C-.2040259*q+1.0572252*L))}function V0(v,g,T){return v>0?new ta(Math.atan2(T,g)*Or,Math.sqrt(g*g+T*T),v):new ta(NaN,NaN,v)}function cc(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function vc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function hc(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):Wr(""+v,Ha,En):new Ha(v,g,T)}function G0(v){return new Ha(v>>16,v>>8&255,v&255)}function hu(v){return G0(v)+""}var du=Ha.prototype=new At;du.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 Ha(C,C,C):(g&&g>4,q=q>>4|q,C=I&240,C=C>>4|C,L=I&15,L=L<<4|L):v.length===7&&(q=(I&16711680)>>16,C=(I&65280)>>8,L=I&255)),g(q,C,L))}function rt(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),L=C-q,z,P,I=(C+q)/2;return L?(P=I<.5?L/(C+q):L/(2-C-q),v==C?z=(g-T)/L+(g0&&I<1?0:z),new jr(z,P,I)}function or(v,g,T){v=ba(v),g=ba(g),T=ba(T);var q=vc((.4124564*v+.3575761*g+.1804375*T)/xa),C=vc((.2126729*v+.7151522*g+.072175*T)/Ho),L=vc((.0193339*v+.119192*g+.9503041*T)/Bo);return Rt(116*C-16,500*(q-C),200*(C-L))}function ba(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function ct(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var _a=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});_a.forEach(function(v,g){_a.set(v,G0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=oi(Y);function oi(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Oo(g,T,v,q)}}function Oo(v,g,T,q){var C={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,I=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&&hU(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?(I=K,C):I},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),I!=null&&(P.responseType=I),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(vU(q))}function vU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function hU(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=Oo($,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={},ve=te.length,Te=0;Te=Ae)return te;if(Te)return Te=!1,re;var Ve=ae;if($.charCodeAt(Ve)===34){for(var nr=Ve;nr++24?(isFinite(g)&&(clearTimeout(X0),X0=setTimeout(ny,g)),W0=0):(W0=1,I_(ny))}e.timer.flush=function(){H_(),B_()};function H_(){for(var v=Date.now(),g=G0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function B_(){for(var v,g=G0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(C[$[re[P]][2]]);for(P=+ye;P1&&ut(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function hU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,J0),v};var J0=e.geom.polygon.prototype=[];J0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],C=0;++vse)P=P.L;else if(z=g-gU(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 I=U_(v);if(yu.insert(q,I),!(!q&&!C)){if(q===C){xu(q),C=U_(q.site),yu.insert(I,C),I.edge=C.edge=mc(q.site,I.site),gu(q),gu(C);return}if(!C){I.edge=mc(q.site,I.site);return}xu(q),xu(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,ve=2*(te*ue-ye*ae),Te=te*te+ye*ye,ke=ae*ae+ue*ue,pe={x:(ue*Te-ye*ke)/ve+K,y:(te*ke-ae*Te)/ve+re};$0(C.edge,$,Ae,pe),I.edge=mc($,v,null,pe),C.edge=mc(v,Ae,null,pe),gu(q),gu(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,I=T.y,$=I-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*$)-I+$/2+C-L/2)))/re+q:(q+P)/2}function gU(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 X_(v){this.site=v,this.edges=[]}X_.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(Z_),v.length};function xU(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],L,z,P,I,$=Yo,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(I-z)>se)&&(ye.splice(te,0,new K0(AU(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=I*I+$*$,ye=K*K+ue*ue,Ae=(ue*te-$*ye)/re,ae=(I*ye-K*te)/re,ue=ae+P,ve=G_.pop()||new bU;ve.arc=v,ve.site=C,ve.x=Ae+z,ve.y=ue+Math.sqrt(Ae*Ae+ae*ae),ve.cy=ue,v.circle=ve;for(var Te=null,ke=pc._;ke;)if(ve.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-I,!(!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:I+re*Ae}),te<1&&(C.b={x:P+te*ye,y:I+te*Ae}),C}}}}}}function wU(v){for(var g=mu,T=_U(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!TU(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-ve)/ue,y:z};else if(q.y>=P)return;T={x:(P-ve)/ue,y:P}}else{if(!q)q={x:(P-ve)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+ve}}else{if(!q)q={x:L,y:ue*L+ve};else if(q.x=K&&ve.x<=te&&ve.y>=re&&ve.y<=ye?[[K,ye],[te,ye],[te,re],[K,re]]:[];Te.point=I[ae]}),$}function P(I){return I.map(function($,K){return{x:Math.round(q($,K)/se)*se,y:Math.round(C($,K)/se)*se,i:K}})}return z.links=function(I){return fy(P(I)).edges.filter(function($){return $.l&&$.r}).map(function($){return{source:I[$.l.i],target:I[$.r.i]}})},z.triangles=function(I){var $=[];return fy(P(I)).cells.forEach(function(K,re){for(var te=K.site,ye=K.edges.sort(Z_),Ae=-1,ae=ye.length,ue,ve,Te=ye[ae-1].edge,ke=Te.l===te?Te.r:Te.l;++Aeke&&(ke=K.x),K.y>pe&&(pe=K.y),ye.push(K.x),Ae.push(K.y);else for(ae=0;aeke&&(ke=Ve),nr>pe&&(pe=nr),ye.push(Ve),Ae.push(nr)}var ur=ke-ve,ir=pe-Te;ur>ir?pe=Te+ur:ke=ve+ir;function hr(mr,Ar,Kr,Bt,at,er,Dr,Er){if(!(isNaN(Kr)||isNaN(Bt)))if(mr.leaf){var Qr=mr.x,Ct=mr.y;if(Qr!=null)if(b(Qr-Kr)+b(Ct-Bt)<.01)pr(mr,Ar,Kr,Bt,at,er,Dr,Er);else{var Qt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Qt,Qr,Ct,at,er,Dr,Er),pr(mr,Ar,Kr,Bt,at,er,Dr,Er)}else mr.x=Kr,mr.y=Bt,mr.point=Ar}else pr(mr,Ar,Kr,Bt,at,er,Dr,Er)}function pr(mr,Ar,Kr,Bt,at,er,Dr,Er){var Qr=(at+Dr)*.5,Ct=(er+Er)*.5,Qt=Kr>=Qr,wa=Bt>=Ct,Ba=wa<<1|Qt;mr.leaf=!1,mr=mr.nodes[Ba]||(mr.nodes[Ba]=K_()),Qt?at=Qr:Dr=Qr,wa?er=Ct:Er=Ct,hr(mr,Ar,Kr,Bt,at,er,Dr,Er)}var Lr=K_();if(Lr.add=function(mr){hr(Lr,mr,+re(mr,++ae),+te(mr,ae),ve,Te,ke,pe)},Lr.visit=function(mr){xc(mr,Lr,ve,Te,ke,pe)},Lr.find=function(mr){return SU(Lr,mr[0],mr[1],ve,Te,ke,pe)},ae=-1,g==null){for(;++aeL||te>z||ye=Ve,ir=T>=nr,hr=ir<<1|ur,pr=hr+4;hrT&&(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,I.push({i:z,x:fl(q,C)})),T=dy.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?_a.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?cy:j_:g instanceof At?cy:Array.isArray(g)?ed:T==="object"&&isNaN(g)?Q_:fl)(v,g)}],e.interpolateArray=ed;function ed(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=LU.get(T)||e4,q=DU.get(q)||Y,EU(q(T.apply(null,r.call(arguments,1))))};function EU(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function r4(v){return function(g){return 1-v(1-g)}}function t4(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function PU(v){return v*v}function RU(v){return v*v*v}function zU(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 NU(v){return function(g){return Math.pow(g,v)}}function FU(v){return 1-Math.cos(v*sr)}function IU(v){return Math.pow(2,10*(v-1))}function HU(v){return 1-Math.sqrt(1-v*v)}function BU(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/ar*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*ar/g)}}function OU(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function YU(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=VU;function VU(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(I){return Pn(T+L*I,q+z*I,C+P*I)+""}}e.interpolateHsl=GU;function GU(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(I){return En(T+L*I,q+z*I,C+P*I)+""}}e.interpolateLab=UU;function UU(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(I){return O0(T+L*I,q+z*I,C+P*I)+""}}e.interpolateRound=a4;function a4(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 n4(q?q.matrix:XU)})(v)};function n4(v){var g=[v.a,v.b],T=[v.c,v.d],q=l4(g),C=i4(g,T),L=l4(WU(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(bu(T)+"rotate(",null,")")-2,x:fl(v,g)})):g&&T.push(bu(T)+"rotate("+g+")")}function $U(v,g,T,q){v!==g?q.push({i:T.push(bu(T)+"skewX(",null,")")-2,x:fl(v,g)}):g&&T.push(bu(T)+"skewX("+g+")")}function KU(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(bu(T)+"scale(",null,",",null,")");q.push({i:C-4,x:fl(v[0],g[0])},{i:C-2,x:fl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(bu(T)+"scale("+g+")")}function o4(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),ZU(v.translate,g.translate,T,q),JU(v.rotate,g.rotate,T,q),$U(v.skew,g.skew,T,q),KU(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=Z0(v.tick)),v):L},v.start=function(){var pe,Ve=ye.length,nr=Ae.length,ur=q[0],ir=q[1],hr,pr;for(pe=0;pe=0;)L.push(K=$[I]),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 Fi(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&&(_c(C,function(L){L.children&&(L.value=0)}),Fi(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 bc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=vW,v}function _c(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 Fi(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 xW(v){return v.reduce(bW,0)}function bW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=wW,q=_W;function C(L,te){for(var P=[],I=L.map(g,this),$=T.call(this,I,te),K=q.call(this,$,I,te),re,te=-1,ye=I.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 c4(z,L)}:Nr(L),C):q},C.frequency=function(L){return arguments.length?(v=!!L,C):v},C};function _W(v,g){return c4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function c4(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 wW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(TW),g=0,T=[1,1],q;function C(L,z){var P=v.call(this,L,z),I=P[0],$=T[0],K=T[1],re=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(I.x=I.y=0,Fi(I,function(ye){ye.r=+re(ye.value)}),Fi(I,h4),g){var te=g*(q?1:Math.max(2*I.r/$,2*I.r/K))/2;Fi(I,function(ye){ye.r+=te}),Fi(I,h4),Fi(I,function(ye){ye.r-=te})}return p4(I,$/2,K/2,q?1:1/Math.max(2*I.r/$,2*I.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},bc(C,v)};function TW(v,g){return v.value-g.value}function my(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function v4(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 h4(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,I,$,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(AW),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(I=g[2],m4(z,P,I),ye(I),my(z,I),z._pack_prev=I,my(I,P),P=z._pack_next,$=3;$ue.x&&(ue=Ve),Ve.depth>ve.depth&&(ve=Ve)});var Te=g(ae,ue)/2-ae.x,ke=T[0]/(ue.x+g(ue,ae)/2+Te),pe=T[1]/(ve.depth||1);_c(ye,function(Ve){Ve.x=(Ve.x+Te)*ke,Ve.y=Ve.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,ve=Ae.length;ue0&&(kW(CW(ae,K,te),K,Ve),ve+=Ve,Te+=Ve),ke+=ae.m,ve+=ye.m,pe+=ue.m,Te+=Ae.m;ae&&!gy(Ae)&&(Ae.t=ae,Ae.m+=ke-Te),ye&&!yy(ue)&&(ue.t=ye,ue.m+=ve-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},bc(C,v)};function y4(v,g){return v.parent==g.parent?1:2}function yy(v){var g=v.children;return g.length?g[0]:v.t}function gy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function kW(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 qW(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 CW(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=y4,T=[1,1],q=!1;function C(L,z){var P=v.call(this,L,z),I=P[0],$,K=0;Fi(I,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=LW(ue),ae.y=SW(ue)):(ae.x=$?K+=g(ae,$):0,ae.y=0,$=ae)});var re=g4(I),te=x4(I),ye=re.x-g(re,te)/2,Ae=te.x+g(te,re)/2;return Fi(I,q?function(ae){ae.x=(ae.x-I.x)*T[0],ae.y=(I.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(Ae-ye)*T[0],ae.y=(1-(I.y?ae.y/I.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},bc(C,v)};function SW(v){return 1+e.max(v,function(g){return g.y})}function LW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function g4(v){var g=v.children;return g&&g.length?g4(g[0]):v}function x4(v){var g=v.children,T;return g&&(T=g.length)?x4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=xy,L=!1,z,P="squarify",I=.5*(1+Math.sqrt(5));function $(ae,ue){for(var ve=-1,Te=ae.length,ke,pe;++ve0;)Te.push(pe=ke[ir-1]),Te.area+=pe.area,P!=="squarify"||(nr=te(Te,ur))<=Ve?(ke.pop(),Ve=nr):(Te.area-=Te.pop().area,ye(Te,ur,ve,!1),ur=Math.min(ve.dx,ve.dy),Te.length=Te.area=0,Ve=1/0);Te.length&&(ye(Te,ur,ve,!0),Te.length=Te.area=0),ue.forEach(K)}}function re(ae){var ue=ae.children;if(ue&&ue.length){var ve=C(ae),Te=ue.slice(),ke,pe=[];for($(Te,ve.dx*ve.dy/ae.value),pe.area=0;ke=Te.pop();)pe.push(ke),pe.area+=ke.area,ke.z!=null&&(ye(pe,ke.z?ve.dx:ve.dy,ve,!Te.length),pe.length=pe.area=0);ue.forEach(re)}}function te(ae,ue){for(var ve=ae.area,Te,ke=0,pe=1/0,Ve=-1,nr=ae.length;++Veke&&(ke=Te));return ve*=ve,ue*=ue,ve?Math.max(ue*ke*I/ve,ve/(ue*pe*I)):1/0}function ye(ae,ue,ve,Te){var ke=-1,pe=ae.length,Ve=ve.x,nr=ve.y,ur=ue?g(ae.area/ue):0,ir;if(ue==ve.dx){for((Te||ur>ve.dy)&&(ur=ve.dy);++keve.dx)&&(ur=ve.dx);++ke1);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?PW:DW,$=q?jU:QU;return C=I(v,g,$,T),L=I(g,v,$,Vo),P}function P(I){return C(I)}return P.invert=function(I){return L(I)},P.domain=function(I){return arguments.length?(v=I.map(Number),z()):v},P.range=function(I){return arguments.length?(g=I,z()):g},P.rangeRound=function(I){return P.range(I).interpolate(a4)},P.clamp=function(I){return arguments.length?(q=I,z()):q},P.interpolate=function(I){return arguments.length?(T=I,z()):T},P.ticks=function(I){return wy(v,I)},P.tickFormat=function(I,$){return d3_scale_linearTickFormat(v,I,$)},P.nice=function(I){return A4(v,I),z()},P.copy=function(){return w4(v,g,T,q)},z()}function T4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function A4(v,g){return by(v,_4(_y(v,g)[2])),by(v,_4(_y(v,g)[2])),v}function _y(v,g){g==null&&(g=10);var T=rd(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 wy(v,g){return e.range.apply(e,_y(v,g))}var RW={s:1,g:1,p:1,r:1,e:1};function M4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function dme(v,g){var T=M4(g[2]);return v in RW?Math.abs(T-M4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return k4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function k4(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=by(q.map(C),T?Math:zW);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=rd(q),I=[],$=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--)I.push(L(re)*Ae);for(re=0;I[re]<$;re++);for(te=I.length;I[te-1]>K;te--);I=I.slice(re,te)}return I},z.copy=function(){return k4(v.copy(),g,T,q)},T4(z,v)}var zW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return q4(e.scale.linear(),1,[0,1])};function q4(v,g,T){var q=ad(g),C=ad(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 wy(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(A4(T,z))},L.exponent=function(z){return arguments.length?(q=ad(g=z),C=ad(1/g),v.domain(T.map(q)),L):g},L.copy=function(){return q4(v.copy(),g,T)},T4(L,v)}function ad(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 C4([],{t:"range",a:[[]]})};function C4(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,I){return e.range(v.length).map(function($){return P+I*$})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var I=-1,$=P.length,K;++I<$;)T.has(K=P[I])||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,I){arguments.length<2&&(I=0);var $=P[0],K=P[1],re=v.length<2?($=($+K)/2,0):(K-$)/(v.length-1+I);return q=z($+re*I/2,re),C=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(P,I){arguments.length<2&&(I=0);var $=P[0],K=P[1],re=v.length<2?($=K=Math.round(($+K)/2),0):(K-$)/(v.length-1+I)|0;return q=z($+Math.round(re*I/2+(K-$-(v.length-1+I)*re)/2),re),C=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(P,I,$){arguments.length<2&&(I=0),arguments.length<3&&($=I);var K=P[1]0?T[L-1]:v[0],Lte?0:1;if(K<$&&(ae=K,K=$,$=ae),ye>=cr)return I(K,Ae)+($?I($,1-Ae):"")+"Z";var ae,ue,ve,Te,ke=0,pe=0,Ve,nr,ur,ir,hr,pr,Lr,mr,Ar=[];if((Te=(+z.apply(this,arguments)||0)/2)&&(ve=q===nd?Math.sqrt($*$+K*K):+q.apply(this,arguments),Ae||(pe*=-1),K&&(pe=_t(ve/K*Math.sin(Te))),$&&(ke=_t(ve/$*Math.sin(Te)))),K){Ve=K*Math.cos(re+pe),nr=K*Math.sin(re+pe),ur=K*Math.cos(te-pe),ir=K*Math.sin(te-pe);var Kr=Math.abs(te-re-2*pe)<=Ee?0:1;if(pe&&id(Ve,nr,ur,ir)===Ae^Kr){var Bt=(re+te)/2;Ve=K*Math.cos(Bt),nr=K*Math.sin(Bt),ur=ir=null}}else Ve=nr=0;if($){hr=$*Math.cos(te-ke),pr=$*Math.sin(te-ke),Lr=$*Math.cos(re+ke),mr=$*Math.sin(re+ke);var at=Math.abs(re-te+2*ke)<=Ee?0:1;if(ke&&id(hr,pr,Lr,mr)===1-Ae^at){var er=(re+te)/2;hr=$*Math.cos(er),pr=$*Math.sin(er),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 ld(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),I=P*z,$=-P*L,K=v[0]+I,re=v[1]+$,te=g[0]+I,ye=g[1]+$,Ae=(K+te)/2,ae=(re+ye)/2,ue=te-K,ve=ye-re,Te=ue*ue+ve*ve,ke=T-q,pe=K*ye-te*re,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,ke*ke*Te-pe*pe)),nr=(pe*ve-ue*Ve)/Te,ur=(-pe*ue-ve*Ve)/Te,ir=(pe*ve+ue*Ve)/Te,hr=(-pe*ue+ve*Ve)/Te,pr=nr-Ae,Lr=ur-ae,mr=ir-Ae,Ar=hr-ae;return pr*pr+Lr*Lr>mr*mr+Ar*Ar&&(nr=ir,ur=hr),[[nr-I,ur-$],[nr*T/ke,ur*T/ke]]}function z4(){return!0}function N4(v){var g=pu,T=hc,q=z4,C=si,L=C.key,z=.7;function P(I){var $=[],K=[],re=-1,te=I.length,ye,Ae=Nr(g),ae=Nr(T);function ue(){$.push("M",C(v(K),z))}for(;++re1?v.join("L"):v+"Z"}function F4(v){return v.join("L")+"Z"}function GW(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 Ay(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],L=v[I],I++,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<=I;)L=(v[Math.min(I,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 jW(v){return v.length<3?si(v):v[0]+od(v,QW(v))}e.svg.line.radial=function(){var v=N4(O4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function O4(v){for(var g,T=-1,q=v.length,C,L;++TEe)+",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 eX(v){return v.radius}e.svg.diagonal=function(){var v=V4,g=G4,T=U4;function q(C,L){var z=v.call(this,C,L),P=g.call(this,C,L),I=(z.y+P.y)/2,$=[z,{x:z.x,y:I},{x:P.x,y:I},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 U4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=U4,T=v.projection;return v.projection=function(q){return arguments.length?T(rX(g=q)):g},v};function rX(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=aX,g=tX;function T(q,C){return(X4.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 tX(){return 64}function aX(){return"circle"}function W4(v){var g=Math.sqrt(v/Ee);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var X4=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*Z4)),T=g*Z4;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/sd),T=g*sd/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/sd),T=g*sd/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=X4.keys();var sd=Math.sqrt(3),Z4=Math.tan(30*Mr);_e.transition=function(v){for(var g=Go||++$4,T=Ly(v),q=[],C,L,z=fd||{time:Date.now(),ease:zU,delay:0,duration:250},P=-1,I=this.length;++P0;)re[--Te].call(v,ve);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,I=Z0(te,0,P),z=L[q]={tween:new x,time:P,timer:I,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=K4,T=6,q=6,C=3,L=[10],z=null,P;function I($){$.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),ve=e.transition(ae.exit()).style("opacity",se).remove(),Te=e.transition(ae.order()).style("opacity",1),ke=Math.max(T,0)+C,pe,Ve=td(te),nr=K.selectAll(".domain").data([0]),ur=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ue.append("line"),ue.append("text");var ir=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,Kr,Bt,at,er;if(g==="bottom"||g==="top"?(pe=lX,Kr="x",at="y",Bt="x2",er="y2",pr.attr("dy",Ar<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ve[0]+","+Ar*q+"V0H"+Ve[1]+"V"+Ar*q)):(pe=oX,Kr="y",at="x",Bt="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",Ar<0?"end":"start"),ur.attr("d","M"+Ar*q+","+Ve[0]+"H0V"+Ve[1]+"H"+Ar*q)),ir.attr(er,Ar*T),Lr.attr(at,Ar*ke),hr.attr(Bt,0).attr(er,Ar*T),mr.attr(Kr,0).attr(at,Ar*ke),te.rangeBand){var Dr=te,Er=Dr.rangeBand()/2;re=te=function(Qr){return Dr(Qr)+Er}}else re.rangeBand?re=te:ve.call(pe,te,re);ue.call(pe,re,te),Te.call(pe,te,te)})}return I.scale=function($){return arguments.length?(v=$,I):v},I.orient=function($){return arguments.length?(g=$ in iX?$+"":K4,I):g},I.ticks=function(){return arguments.length?(L=t(arguments),I):L},I.tickValues=function($){return arguments.length?(z=$,I):z},I.tickFormat=function($){return arguments.length?(P=$,I):P},I.tickSize=function($){var K=arguments.length;return K?(T=+$,q=+arguments[K-1],I):T},I.innerTickSize=function($){return arguments.length?(T=+$,I):T},I.outerTickSize=function($){return arguments.length?(q=+$,I):q},I.tickPadding=function($){return arguments.length?(C=+$,I):C},I.tickSubdivide=function(){return arguments.length&&I},I};var K4="bottom",iX={top:1,right:1,bottom:1,left:1};function lX(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function oX(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,I=!0,$=Dy[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),ve=ue.selectAll(".background").data([0]);ve.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 sX[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 ke=e.transition(ue),pe=e.transition(ve),Ve;g&&(Ve=td(g),pe.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),te(ke)),T&&(Ve=td(T),pe.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),ye(ke)),re(ke)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),ve={x:q,y:C,i:L,j:z},Te=this.__chart__||ve;this.__chart__=ve,Go?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 ke=ed(q,ve.x),pe=ed(C,ve.y);return L=z=null,function(Ve){q=ve.x=ke(Ve),C=ve.y=pe(Ve),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ve.i,z=ve.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),ve=v.of(ae,arguments),Te=e.select(ae),ke=ue.datum(),pe=!/^(n|s)$/.test(ke)&&g,Ve=!/^(e|w)$/.test(ke)&&T,nr=ue.classed("extent"),ur=tr(ae),ir,hr=e.mouse(ae),pr,Lr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Bt);if(e.event.changedTouches?Lr.on("touchmove.brush",at).on("touchend.brush",Dr):Lr.on("mousemove.brush",at).on("mouseup.brush",Dr),Te.interrupt().selectAll("*").interrupt(),nr)hr[0]=q[0]-hr[0],hr[1]=C[0]-hr[1];else if(ke){var mr=+/w$/.test(ke),Ar=+/^n/.test(ke);pr=[q[1-mr]-hr[0],C[1-Ar]-hr[1]],hr[0]=q[mr],hr[1]=C[Ar]}else e.event.altKey&&(ir=hr.slice());Te.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),ve({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(nr||(ir=null,hr[0]-=q[1],hr[1]-=C[1],nr=2),ee())}function Bt(){e.event.keyCode==32&&nr==2&&(hr[0]+=q[1],hr[1]+=C[1],nr=0,ee())}function at(){var Er=e.mouse(ae),Qr=!1;pr&&(Er[0]+=pr[0],Er[1]+=pr[1]),nr||(e.event.altKey?(ir||(ir=[(q[0]+q[1])/2,(C[0]+C[1])/2]),hr[0]=q[+(Er[0]{(function(e,r){typeof gd=="object"&&typeof l6!="undefined"?r(gd):(e=e||self,r(e.d3=e.d3||{}))})(gd,function(e){"use strict";var r=new Date,t=new Date;function a(ie,we,$e,dr){function Ne(Me){return ie(Me=arguments.length===0?new Date:new Date(+Me)),Me}return Ne.floor=function(Me){return ie(Me=new Date(+Me)),Me},Ne.ceil=function(Me){return ie(Me=new Date(Me-1)),we(Me,1),ie(Me),Me},Ne.round=function(Me){var Ce=Ne(Me),He=Ne.ceil(Me);return Me-Ce0))return Je;do Je.push(Ge=new Date(+Me)),we(Me,He),ie(Me);while(Ge=Ce)for(;ie(Ce),!Me(Ce);)Ce.setTime(Ce-1)},function(Ce,He){if(Ce>=Ce)if(He<0)for(;++He<=0;)for(;we(Ce,-1),!Me(Ce););else for(;--He>=0;)for(;we(Ce,1),!Me(Ce););})},$e&&(Ne.count=function(Me,Ce){return r.setTime(+Me),t.setTime(+Ce),ie(r),ie(t),Math.floor($e(r,t))},Ne.every=function(Me){return Me=Math.floor(Me),!isFinite(Me)||!(Me>0)?null:Me>1?Ne.filter(dr?function(Ce){return dr(Ce)%Me===0}:function(Ce){return Ne.count(0,Ce)%Me===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,F=M.range,Y=S.range,U=D.range,G=E.range,V=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=V.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()}),de=fe.range,Q=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=Q.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),ge=ce(1),_e=ce(2),W=ce(3),j=ce(4),Z=ce(5),oe=ce(6),me=be.range,xe=ge.range,De=_e.range,ze=W.range,Se=j.range,Ie=Z.range,Be=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()}),Pe=We.range,Oe=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()});Oe.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 Ue=Oe.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=h,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=N,e.timeMonth=V,e.timeMonths=B,e.timeSaturday=E,e.timeSaturdays=G,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=F,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=X,e.utcDay=Q,e.utcDays=qe,e.utcFriday=Z,e.utcFridays=Ie,e.utcHour=fe,e.utcHours=de,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=le,e.utcMonday=ge,e.utcMondays=xe,e.utcMonth=We,e.utcMonths=Pe,e.utcSaturday=oe,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=be,e.utcSundays=me,e.utcThursday=j,e.utcThursdays=Se,e.utcTuesday=_e,e.utcTuesdays=De,e.utcWednesday=W,e.utcWednesdays=ze,e.utcWeek=be,e.utcWeeks=me,e.utcYear=Oe,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var wu=O((xd,o6)=>{(function(e,r){typeof xd=="object"&&typeof o6!="undefined"?r(xd,Ey()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(xd,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,Ee=ne.time,ar=ne.periods,cr=ne.days,sr=ne.shortDays,Mr=ne.months,Or=ne.shortMonths,et=d(ar),ut=h(ar),kt=d(cr),_t=h(cr),Ht=d(sr),ra=h(sr),Ia=d(Mr),ma=h(Mr),ya=d(Or),vr=h(Or),ft={a:Ho,A:Bo,b:Fl,B:O0,c:null,d:V,e:V,f:le,H:B,I:J,j:X,L:ee,m:fe,M:de,p:Y0,q:cc,Q:Ce,s:He,S:Q,u:qe,U:ce,V:be,w:ge,W:_e,x:null,X:null,y:W,Y:j,Z,"%":Me},$r={a:vc,A:dc,b:Ha,B:V0,c:null,d:oe,e:oe,f:Se,H:me,I:xe,j:De,L:ze,m:Ie,M:Be,p:du,q:hu,Q:Ce,s:He,S:We,u:Pe,U:Oe,V:Ue,w:ie,W:we,x:null,X:null,y:$e,Y:dr,Z:Ne,"%":Me},ht={a:En,A:ta,b:Ni,B:Pn,c:Rt,d:S,e:S,f:F,H:E,I:E,j:D,L:H,m:M,M:R,p:ga,q:k,Q:U,s:G,S:N,u:m,U:y,V:b,w:p,W:_,x:qt,X:xa,y:x,Y:w,Z:A,"%":Y};ft.x=Pt(Le,ft),ft.X=Pt(Ee,ft),ft.c=Pt(se,ft),$r.x=Pt(Le,$r),$r.X=Pt(Ee,$r),$r.c=Pt(se,$r);function Pt(yr,Wr){return function(rt){var or=[],ba=-1,ct=0,_a=yr.length,Nr,oi,Oo;for(rt instanceof Date||(rt=new Date(+rt));++ba<_a;)yr.charCodeAt(ba)===37&&(or.push(yr.slice(ct,ba)),(oi=l[Nr=yr.charAt(++ba)])!=null?Nr=yr.charAt(++ba):oi=Nr==="e"?" ":"0",(Oo=Wr[Nr])&&(Nr=Oo(rt,oi)),or.push(Nr),ct=ba+1);return or.push(yr.slice(ct,ba)),or.join("")}}function At(yr,Wr){return function(rt){var or=n(1900,void 0,1),ba=jr(or,yr,rt+="",0),ct,_a;if(ba!=rt.length)return null;if("Q"in or)return new Date(or.Q);if("s"in or)return new Date(or.s*1e3+("L"in or?or.L:0));if(Wr&&!("Z"in or)&&(or.Z=0),"p"in or&&(or.H=or.H%12+or.p*12),or.m===void 0&&(or.m="q"in or?or.q:0),"V"in or){if(or.V<1||or.V>53)return null;"w"in or||(or.w=1),"Z"in or?(ct=a(n(or.y,0,1)),_a=ct.getUTCDay(),ct=_a>4||_a===0?r.utcMonday.ceil(ct):r.utcMonday(ct),ct=r.utcDay.offset(ct,(or.V-1)*7),or.y=ct.getUTCFullYear(),or.m=ct.getUTCMonth(),or.d=ct.getUTCDate()+(or.w+6)%7):(ct=t(n(or.y,0,1)),_a=ct.getDay(),ct=_a>4||_a===0?r.timeMonday.ceil(ct):r.timeMonday(ct),ct=r.timeDay.offset(ct,(or.V-1)*7),or.y=ct.getFullYear(),or.m=ct.getMonth(),or.d=ct.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),_a="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-(_a+5)%7:or.w+or.U*7-(_a+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function jr(yr,Wr,rt,or){for(var ba=0,ct=Wr.length,_a=rt.length,Nr,oi;ba=_a)return-1;if(Nr=Wr.charCodeAt(ba++),Nr===37){if(Nr=Wr.charAt(ba++),oi=ht[Nr in l?Wr.charAt(ba++):Nr],!oi||(or=oi(yr,rt,or))<0)return-1}else if(Nr!=rt.charCodeAt(or++))return-1}return or}function ga(yr,Wr,rt){var or=et.exec(Wr.slice(rt));return or?(yr.p=ut[or[0].toLowerCase()],rt+or[0].length):-1}function En(yr,Wr,rt){var or=Ht.exec(Wr.slice(rt));return or?(yr.w=ra[or[0].toLowerCase()],rt+or[0].length):-1}function ta(yr,Wr,rt){var or=kt.exec(Wr.slice(rt));return or?(yr.w=_t[or[0].toLowerCase()],rt+or[0].length):-1}function Ni(yr,Wr,rt){var or=ya.exec(Wr.slice(rt));return or?(yr.m=vr[or[0].toLowerCase()],rt+or[0].length):-1}function Pn(yr,Wr,rt){var or=Ia.exec(Wr.slice(rt));return or?(yr.m=ma[or[0].toLowerCase()],rt+or[0].length):-1}function Rt(yr,Wr,rt){return jr(yr,se,Wr,rt)}function qt(yr,Wr,rt){return jr(yr,Le,Wr,rt)}function xa(yr,Wr,rt){return jr(yr,Ee,Wr,rt)}function Ho(yr){return sr[yr.getDay()]}function Bo(yr){return cr[yr.getDay()]}function Fl(yr){return Or[yr.getMonth()]}function O0(yr){return Mr[yr.getMonth()]}function Y0(yr){return ar[+(yr.getHours()>=12)]}function cc(yr){return 1+~~(yr.getMonth()/3)}function vc(yr){return sr[yr.getUTCDay()]}function dc(yr){return cr[yr.getUTCDay()]}function Ha(yr){return Or[yr.getUTCMonth()]}function V0(yr){return Mr[yr.getUTCMonth()]}function du(yr){return ar[+(yr.getUTCHours()>=12)]}function hu(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Wr=Pt(yr+="",ft);return Wr.toString=function(){return yr},Wr},parse:function(yr){var Wr=At(yr+="",!1);return Wr.toString=function(){return yr},Wr},utcFormat:function(yr){var Wr=Pt(yr+="",$r);return Wr.toString=function(){return yr},Wr},utcParse:function(yr){var Wr=At(yr+="",!0);return Wr.toString=function(){return yr},Wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,se,Le){var Ee=ne<0?"-":"",ar=(Ee?-ne:ne)+"",cr=ar.length;return Ee+(cr68?1900:2e3),Le+Ee[0].length):-1}function A(ne,se,Le){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(se.slice(Le,Le+6));return Ee?(ne.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),Le+Ee[0].length):-1}function k(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+1));return Ee?(ne.q=Ee[0]*3-3,Le+Ee[0].length):-1}function M(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.m=Ee[0]-1,Le+Ee[0].length):-1}function S(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.d=+Ee[0],Le+Ee[0].length):-1}function D(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+3));return Ee?(ne.m=0,ne.d=+Ee[0],Le+Ee[0].length):-1}function E(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.H=+Ee[0],Le+Ee[0].length):-1}function R(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.M=+Ee[0],Le+Ee[0].length):-1}function N(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.S=+Ee[0],Le+Ee[0].length):-1}function H(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+3));return Ee?(ne.L=+Ee[0],Le+Ee[0].length):-1}function F(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+6));return Ee?(ne.L=Math.floor(Ee[0]/1e3),Le+Ee[0].length):-1}function Y(ne,se,Le){var Ee=s.exec(se.slice(Le,Le+1));return Ee?Le+Ee[0].length:-1}function U(ne,se,Le){var Ee=o.exec(se.slice(Le));return Ee?(ne.Q=+Ee[0],Le+Ee[0].length):-1}function G(ne,se,Le){var Ee=o.exec(se.slice(Le));return Ee?(ne.s=+Ee[0],Le+Ee[0].length):-1}function V(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 de(ne,se){return f(ne.getMinutes(),se,2)}function Q(ne,se){return f(ne.getSeconds(),se,2)}function qe(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 ge(ne){return ne.getDay()}function _e(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 j(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 De(ne,se){return f(1+r.utcDay.count(r.utcYear(ne),ne),se,3)}function ze(ne,se){return f(ne.getUTCMilliseconds(),se,3)}function Se(ne,se){return ze(ne,se)+"000"}function Ie(ne,se){return f(ne.getUTCMonth()+1,se,2)}function Be(ne,se){return f(ne.getUTCMinutes(),se,2)}function We(ne,se){return f(ne.getUTCSeconds(),se,2)}function Pe(ne){var se=ne.getUTCDay();return se===0?7:se}function Oe(ne,se){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),se,2)}function Ue(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 Me(){return"%"}function Ce(ne){return+ne}function He(ne){return Math.floor(+ne/1e3)}var Je;Ge({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 Ge(ne){return Je=i(ne),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ne){return ne.toISOString()}var tr=Date.prototype.toISOString?lr:e.utcFormat(Xe);function Ke(ne){var se=new Date(ne);return isNaN(se)?null:se}var Fe=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Xe);e.isoFormat=tr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Py=O((bd,s6)=>{(function(e,r){typeof bd=="object"&&typeof s6!="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,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,F=M[0],Y=0;R>0&&F>0&&(Y+F+1>E&&(F=Math.max(1,E-Y)),N.push(D.substring(R-=F,R+F)),!((Y+=F+1)>E));)F=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+"",F=M.minus===void 0?"-":M.minus+"",Y=M.nan===void 0?"NaN":M.nan+"";function U(V){V=o(V);var B=V.fill,J=V.align,X=V.sign,ee=V.symbol,le=V.zero,fe=V.width,de=V.comma,Q=V.precision,qe=V.trim,ce=V.type;ce==="n"?(de=!0,ce="g"):h[ce]||(Q===void 0&&(Q=12),qe=!0,ce="g"),(le||B==="0"&&J==="=")&&(le=!0,B="0",J="=");var be=ee==="$"?D:ee==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",ge=ee==="$"?E:/[%p]/.test(ce)?H:"",_e=h[ce],W=/[defgprs%]/.test(ce);Q=Q===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function j(Z){var oe=be,me=ge,xe,De,ze;if(ce==="c")me=_e(Z)+me,Z="";else{Z=+Z;var Se=Z<0||1/Z<0;if(Z=isNaN(Z)?Y:_e(Math.abs(Z),Q),qe&&(Z=u(Z)),Se&&+Z==0&&X!=="+"&&(Se=!1),oe=(Se?X==="("?X:F:X==="-"||X==="("?"":X)+oe,me=(ce==="s"?y[8+f/3]:"")+me+(Se&&X==="("?")":""),W){for(xe=-1,De=Z.length;++xeze||ze>57){me=(ze===46?R+Z.slice(xe+1):Z.slice(xe))+me,Z=Z.slice(0,xe);break}}}de&&!le&&(Z=S(Z,1/0));var Ie=oe.length+Z.length+me.length,Be=Ie>1)+oe+Z+me+Be.slice(Ie);break;default:Z=Be+oe+Z+me;break}return N(Z)}return j.toString=function(){return V+""},j}function G(V,B){var J=U((V=o(V),V.type="f",V)),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:U,formatPrefix:G}}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 f6=O((yme,u6)=>{"use strict";u6.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((gme,c6)=>{"use strict";var xX=f6();c6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&xX(t))return!1}else if(r!=="number")return!1;return e-e<1}});var wt=O((xme,v6)=>{"use strict";v6.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 Ry=O((_d,d6)=>{(function(e,r){typeof _d=="object"&&typeof d6!="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),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 Bl=O((bme,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 yn=O(fi=>{"use strict";var bX=Ry().decode,_X=Bl(),zy=Array.isArray,wX=ArrayBuffer,TX=DataView;function p6(e){return wX.isView(e)&&!(e instanceof TX)}fi.isTypedArray=p6;function wd(e){return zy(e)||p6(e)}fi.isArrayOrTypedArray=wd;function AX(e){return!wd(e[0])}fi.isArray1D=AX;fi.ensureArray=function(e,r){return zy(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 Ny(e){return e.constructor===ArrayBuffer}fi.isArrayBuffer=Ny;fi.decodeTypedArraySpec=function(e){var r=[],t=MX(e),a=t.dtype,n=da[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Ny(l)||(l=bX(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 y6=zr(),Iy=yn().isArrayOrTypedArray;_6.exports=function(r,t){if(y6(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 Tu=Td(),LX=/^\w*$/,DX=0,w6=1,Ad=2,T6=3,Zo=4;A6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=Tu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Ad,c.set(d,null);if(f){for(i=h;i{"use strict";var EX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,PX=/^[^\.\[\]]+$/;k6.exports=function(e,r){for(;r;){var t=e.match(EX);if(t)e=t[1];else if(e.match(PX))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=O((Mme,C6)=>{"use strict";var RX=zr();C6.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 RX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var D6=O((kme,L6)=>{"use strict";var S6=yn().isArrayOrTypedArray,Tc=Bl();L6.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(S6(n)&&S6(i)&&Tc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function zX(e,r){var t=e%r;return t<0?t+r:t}function NX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}E6.exports={mod:zX,modHalf:NX}});var Fn=O((Cme,kd)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(W,j){if(W=W||"",j=j||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,j);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=j.format||Z.format,this._gradientType=j.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(),j,Z,oe,me,xe,De;return j=W.r/255,Z=W.g/255,oe=W.b/255,j<=.03928?me=j/12.92:me=e.pow((j+.055)/1.055,2.4),Z<=.03928?xe=Z/12.92:xe=e.pow((Z+.055)/1.055,2.4),oe<=.03928?De=oe/12.92:De=e.pow((oe+.055)/1.055,2.4),.2126*me+.7152*xe+.0722*De},setAlpha:function(W){return this._a=V(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),j=n(W.h*360),Z=n(W.s*100),oe=n(W.v*100);return this._a==1?"hsv("+j+", "+Z+"%, "+oe+"%)":"hsva("+j+", "+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),j=n(W.h*360),Z=n(W.s*100),oe=n(W.l*100);return this._a==1?"hsl("+j+", "+Z+"%, "+oe+"%)":"hsla("+j+", "+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 j="#"+b(this._r,this._g,this._b,this._a),Z=j,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="+j+",endColorstr="+Z+")"},toString:function(W){var j=!!W;W=W||this._format;var Z=!1,oe=this._a<1&&this._a>=0,me=!j&&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,j){var Z=W.apply(null,[this].concat([].slice.call(j)));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,j){return W.apply(null,[this].concat([].slice.call(j)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(F,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,j){if(typeof W=="object"){var Z={};for(var oe in W)W.hasOwnProperty(oe)&&(oe==="a"?Z[oe]=W[oe]:Z[oe]=de(W[oe]));W=Z}return s(W,j)};function u(W){var j={r:0,g:0,b:0},Z=1,oe=null,me=null,xe=null,De=!1,ze=!1;return typeof W=="string"&&(W=ge(W)),typeof W=="object"&&(be(W.r)&&be(W.g)&&be(W.b)?(j=f(W.r,W.g,W.b),De=!0,ze=String(W.r).substr(-1)==="%"?"prgb":"rgb"):be(W.h)&&be(W.s)&&be(W.v)?(oe=de(W.s),me=de(W.v),j=p(W.h,oe,me),De=!0,ze="hsv"):be(W.h)&&be(W.s)&&be(W.l)&&(oe=de(W.s),xe=de(W.l),j=d(W.h,oe,xe),De=!0,ze="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=V(Z),{ok:De,format:W.format||ze,r:i(255,l(j.r,0)),g:i(255,l(j.g,0)),b:i(255,l(j.b,0)),a:Z}}function f(W,j,Z){return{r:B(W,255)*255,g:B(j,255)*255,b:B(Z,255)*255}}function c(W,j,Z){W=B(W,255),j=B(j,255),Z=B(Z,255);var oe=l(W,j,Z),me=i(W,j,Z),xe,De,ze=(oe+me)/2;if(oe==me)xe=De=0;else{var Se=oe-me;switch(De=ze>.5?Se/(2-oe-me):Se/(oe+me),oe){case W:xe=(j-Z)/Se+(j1&&(We-=1),We<1/6?Ie+(Be-Ie)*6*We:We<1/2?Be:We<2/3?Ie+(Be-Ie)*(2/3-We)*6:Ie}if(j===0)oe=me=xe=Z;else{var ze=Z<.5?Z*(1+j):Z+j-Z*j,Se=2*Z-ze;oe=De(Se,ze,W+1/3),me=De(Se,ze,W),xe=De(Se,ze,W-1/3)}return{r:oe*255,g:me*255,b:xe*255}}function h(W,j,Z){W=B(W,255),j=B(j,255),Z=B(Z,255);var oe=l(W,j,Z),me=i(W,j,Z),xe,De,ze=oe,Se=oe-me;if(De=oe===0?0:Se/oe,oe==me)xe=0;else{switch(oe){case W:xe=(j-Z)/Se+(j>1)+720)%360;--j;)oe.h=(oe.h+me)%360,xe.push(s(oe));return xe}function F(W,j){j=j||6;for(var Z=s(W).toHsv(),oe=Z.h,me=Z.s,xe=Z.v,De=[],ze=1/j;j--;)De.push(s({h:oe,s:me,v:xe})),xe=(xe+ze)%1;return De}s.mix=function(W,j,Z){Z=Z===0?0:Z||50;var oe=s(W).toRgb(),me=s(j).toRgb(),xe=Z/100,De={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(De)},s.readability=function(W,j){var Z=s(W),oe=s(j);return(e.max(Z.getLuminance(),oe.getLuminance())+.05)/(e.min(Z.getLuminance(),oe.getLuminance())+.05)},s.isReadable=function(W,j,Z){var oe=s.readability(W,j),me,xe;switch(xe=!1,me=_e(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,j,Z){var oe=null,me=0,xe,De,ze,Se;Z=Z||{},De=Z.includeFallbackColors,ze=Z.level,Se=Z.size;for(var Ie=0;Ieme&&(me=xe,oe=s(j[Ie]));return s.isReadable(W,oe,{level:ze,size:Se})||!De?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=G(Y);function G(W){var j={};for(var Z in W)W.hasOwnProperty(Z)&&(j[W[Z]]=Z);return j}function V(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function B(W,j){ee(W)&&(W="100%");var Z=le(W);return W=i(j,l(0,parseFloat(W))),Z&&(W=parseInt(W*j,10)/100),e.abs(W-j)<1e-6?1:W%j/parseFloat(j)}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 de(W){return W<=1&&(W=W*100+"%"),W}function Q(W){return e.round(parseFloat(W)*255).toString(16)}function qe(W){return X(W)/255}var ce=function(){var W="[-\\+]?\\d+%?",j="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+j+")|(?:"+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 ge(W){W=W.replace(r,"").replace(t,"").toLowerCase();var j=!1;if(Y[W])W=Y[W],j=!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:qe(Z[4]),format:j?"name":"hex8"}:(Z=ce.hex6.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),format:j?"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:qe(Z[4]+""+Z[4]),format:j?"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:j?"name":"hex"}:!1}function _e(W){var j,Z;return W=W||{level:"AA",size:"small"},j=(W.level||"AA").toUpperCase(),Z=(W.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:j,size:Z}}typeof kd!="undefined"&&kd.exports?kd.exports=s:window.tinycolor=s})(Math)});var mt=O(kc=>{"use strict";var P6=Bl(),Ac=Array.isArray;function FX(e,r){var t,a;for(t=0;t{"use strict";R6.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 qc=O((Dme,z6)=>{"use strict";z6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Mu=O((Eme,I6)=>{"use strict";var N6=qc(),F6=aa(),Hy=F6({editType:"none"});Hy.family.dflt=N6.HOVERFONT;Hy.size.dflt=N6.HOVERFONTSIZE;I6.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Hy,grouptitlefont:F6({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 Lc=O((Pme,H6)=>{"use strict";var IX=aa(),Cc=Mu().hoverlabel,Sc=mt().extendFlat;H6.exports={hoverlabel:{bgcolor:Sc({},Cc.bgcolor,{arrayOk:!0}),bordercolor:Sc({},Cc.bordercolor,{arrayOk:!0}),font:IX({arrayOk:!0,editType:"none"}),align:Sc({},Cc.align,{arrayOk:!0}),namelength:Sc({},Cc.namelength,{arrayOk:!0}),showarrow:Sc({},Cc.showarrow),editType:"none"}}});var an=O((Rme,B6)=>{"use strict";var HX=aa(),BX=Lc();B6.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:HX({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:BX.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 Jo=O((zme,V6)=>{"use strict";var OX=Fn(),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)"]]},O6=qd.RdBu;function YX(e,r){if(r||(r=O6),!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()),Y6(e)?e:r}function Y6(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";$o.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$o.defaultLine="#444";$o.lightLine="#eee";$o.background="#fff";$o.borderLine="#BEC8D9";$o.lightFraction=100*10/11});var br=O((Fme,G6)=>{"use strict";var nn=Fn(),GX=zr(),UX=yn().isTypedArray,na=G6.exports={},Cd=In();na.defaults=Cd.defaults;var WX=na.defaultLine=Cd.defaultLine;na.lightLine=Cd.lightLine;var Oy=na.background=Cd.background;na.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};na.rgb=function(e){return na.tinyRGB(nn(e))};na.opacity=function(e){return e?nn(e).getAlpha():0};na.addOpacity=function(e,r){var t=nn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};na.combine=function(e,r){var t=nn(e).toRgb();if(t.a===1)return nn(e).toRgbString();var a=nn(r||Oy).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 nn(i).toRgbString()};na.interpolate=function(e,r,t){var a=nn(e).toRgb(),n=nn(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 nn(i).toRgbString()};na.contrast=function(e,r,t){var a=nn(e);a.getAlpha()!==1&&(a=nn(na.combine(e,Oy)));var n=a.isDark()?r?a.lighten(r):Oy:t?a.darken(t):WX;return n.toString()};na.stroke=function(e,r){var t=nn(r);e.style({stroke:na.tinyRGB(t),"stroke-opacity":t.getAlpha()})};na.fill=function(e,r){var t=nn(r);e.style({fill:na.tinyRGB(t),"fill-opacity":t.getAlpha()})};na.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 ku=O((Ime,U6)=>{"use strict";U6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var qu=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 $6=O(ln=>{"use strict";var Yy=zr(),X6=Fn(),Z6=mt().extendFlat,XX=an(),ZX=Jo(),JX=br(),$X=ku().DESELECTDIM,Cu=Td(),J6=qu().counter,KX=Au().modHalf,ci=yn().isArrayOrTypedArray,Ol=yn().isTypedArraySpec,Yl=yn().decodeTypedArraySpec;ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ci(e)?e:Ol(e)?Yl(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){Ol(e)&&(e=Yl(e)),!Yy(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}Ol(e)&&(e=Yl(e)),e%1||!Yy(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){Ol(e)&&(e=Yl(e)),X6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return X6(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(ZX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Ol(e)&&(e=Yl(e)),e==="auto"?r.set("auto"):Yy(e)?r.set(KX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||J6(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&ci(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:!!J6(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 K6={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},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:{}}},Q6={};function j6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),j6(a,r[t]))}}j6(K6,Q6);e7.exports={configAttributes:K6,dfltConfig:Q6}});var Gy=O((Yme,r7)=>{"use strict";var Vy=kr(),QX=zr(),Dc=[];r7.exports=function(e,r){if(Dc.indexOf(e)!==-1)return;Dc.push(e);var t=1e3;QX(r)?t=r:r==="long"&&(t=3e3);var a=Vy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Dc);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Dc.indexOf(o);s!==-1&&Dc.splice(s,1),Vy.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Vy.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var Su=Ko().dfltConfig,Uy=Gy(),Wy=t7.exports={};Wy.log=function(){var e;if(Su.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Wy.warn=function(){var e;if(Su.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Wy.error=function(){var e;if(Su.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Ld=O((Gme,a7)=>{"use strict";a7.exports=function(){}});var Xy=O((Ume,n7)=>{"use strict";n7.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{i7.exports=jX;function jX(){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 s7=O((Xme,o7)=>{o7.exports=eZ;function eZ(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 f7=O((Zme,u7)=>{u7.exports=rZ;function rZ(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=O((Jme,c7)=>{c7.exports=tZ;function tZ(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(($me,v7)=>{v7.exports=aZ;function aZ(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 p7=O((Kme,h7)=>{h7.exports=nZ;function nZ(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,F=_*H-w*N+x*R+A*E-k*D+M*S;return F?(F=1/F,e[0]=(o*H-s*N+u*R)*F,e[1]=(n*N-a*H-i*R)*F,e[2]=(m*M-y*k+b*A)*F,e[3]=(d*k-c*M-h*A)*F,e[4]=(s*E-l*H-u*D)*F,e[5]=(t*H-n*E+i*D)*F,e[6]=(y*x-p*M-b*w)*F,e[7]=(f*M-d*x+h*w)*F,e[8]=(l*N-o*E+u*S)*F,e[9]=(a*E-t*N-i*S)*F,e[10]=(p*k-m*x+b*_)*F,e[11]=(c*x-f*k-h*_)*F,e[12]=(o*D-l*R-s*S)*F,e[13]=(t*R-a*D+n*S)*F,e[14]=(m*w-p*A-y*_)*F,e[15]=(f*A-c*w+d*_)*F,e):null}});var y7=O((Qme,m7)=>{m7.exports=iZ;function iZ(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 x7=O((jme,g7)=>{g7.exports=lZ;function lZ(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 _7=O((eye,b7)=>{b7.exports=oZ;function oZ(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 T7=O((rye,w7)=>{w7.exports=sZ;function sZ(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 M7=O((tye,A7)=>{A7.exports=uZ;function uZ(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 q7=O((aye,k7)=>{k7.exports=fZ;function fZ(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,F,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,F=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*F+w*Y,e[9]=d*H+y*F+x*Y,e[10]=h*H+b*F+A*Y,e[11]=p*H+_*F+k*Y,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var S7=O((nye,C7)=>{C7.exports=cZ;function cZ(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 D7=O((iye,L7)=>{L7.exports=vZ;function vZ(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 P7=O((lye,E7)=>{E7.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[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 z7=O((oye,R7)=>{R7.exports=hZ;function hZ(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 F7=O((sye,N7)=>{N7.exports=pZ;function pZ(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 H7=O((uye,I7)=>{I7.exports=mZ;function mZ(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 O7=O((fye,B7)=>{B7.exports=yZ;function yZ(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 V7=O((cye,Y7)=>{Y7.exports=gZ;function gZ(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 U7=O((vye,G7)=>{G7.exports=xZ;function xZ(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 X7=O((dye,W7)=>{W7.exports=bZ;function bZ(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 J7=O((hye,Z7)=>{Z7.exports=_Z;function _Z(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 K7=O((pye,$7)=>{$7.exports=wZ;function wZ(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 j7=O((mye,Q7)=>{Q7.exports=TZ;function TZ(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 rw=O((yye,ew)=>{ew.exports=AZ;function AZ(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 aw=O((gye,tw)=>{tw.exports=MZ;function MZ(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 iw=O((xye,nw)=>{var kZ=Zy();nw.exports=qZ;function qZ(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?kZ(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 ow=O((bye,lw)=>{lw.exports=CZ;function CZ(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=O((_ye,sw)=>{sw.exports={create:l7(),clone:s7(),copy:f7(),identity:Zy(),transpose:d7(),invert:p7(),adjoint:y7(),determinant:x7(),multiply:_7(),translate:T7(),scale:M7(),rotate:q7(),rotateX:S7(),rotateY:D7(),rotateZ:P7(),fromRotation:z7(),fromRotationTranslation:F7(),fromScaling:H7(),fromTranslation:O7(),fromXRotation:V7(),fromYRotation:U7(),fromZRotation:X7(),fromQuat:J7(),frustum:K7(),perspective:j7(),perspectiveFromFieldOfView:rw(),ortho:aw(),lookAt:iw(),str:ow()}});var Dd=O(Ot=>{"use strict";var SZ=Jy();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var LZ=kr(),uw=Qo(),DZ=Dd(),EZ=Jy();function PZ(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 RZ(e){var r=LZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function fw(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function zZ(e,r){cw("global",e,r)}function cw(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):uw.warn("addStyleRule failed"):uw.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function NZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&fw(t)}function FZ(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 IZ(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=vw(a);if(n){var i=DZ.convertCssMatrix(n);t=EZ.multiply(t,t,i)}}),t}function vw(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=[];HZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function HZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function BZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}hw.exports={getGraphDiv:PZ,isPlotDiv:RZ,removeElement:fw,addStyleRule:zZ,addRelatedStyleRule:cw,deleteRelatedStyleRule:NZ,setStyleOnHover:FZ,getFullTransformMatrix:IZ,getElementTransformMatrix:vw,getElementAndAncestors:dw,equalDomRects:BZ}});var Pc=O((Aye,pw)=>{"use strict";pw.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 vi=O((Mye,ww)=>{"use strict";var yw=mt().extendFlat,OZ=Bl(),gw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},xw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},YZ=gw.flags.slice().concat(["fullReplot"]),VZ=xw.flags.slice().concat("layoutReplot");ww.exports={traces:gw,layout:xw,traceFlags:function(){return mw(YZ)},layoutFlags:function(){return mw(VZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"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=O((qye,Tw)=>{"use strict";Tw.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 gn=O(Lu=>{"use strict";var{DATE_FORMAT_LINK:GZ,FORMAT_LINK:UZ}=Ky(),WZ=["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 XZ({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}".`,UZ,"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}".`,GZ,"for details on the date formatting syntax.",WZ].join(" ")}Lu.templateFormatStringDescription=XZ;Lu.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Xo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lu.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Xo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lu.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Lu.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Rd=O((Lye,Sw)=>{"use strict";function Vl(e,r){return r?r.d2l(e):e}function Aw(e,r){return r?r.l2d(e):e}function ZZ(e){return e.x0}function JZ(e){return e.x1}function $Z(e){return e.y0}function KZ(e){return e.y1}function Mw(e){return e.x0shift||0}function kw(e){return e.x1shift||0}function qw(e){return e.y0shift||0}function Cw(e){return e.y1shift||0}function Ed(e,r){return Vl(e.x1,r)+kw(e)-Vl(e.x0,r)-Mw(e)}function Pd(e,r,t){return Vl(e.y1,t)+Cw(e)-Vl(e.y0,t)-qw(e)}function QZ(e,r){return Math.abs(Ed(e,r))}function jZ(e,r,t){return Math.abs(Pd(e,r,t))}function eJ(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 rJ(e,r){return Aw((Vl(e.x1,r)+kw(e)+Vl(e.x0,r)+Mw(e))/2,r)}function tJ(e,r,t){return Aw((Vl(e.y1,t)+Cw(e)+Vl(e.y0,t)+qw(e))/2,t)}function aJ(e,r,t){return e.type!=="line"?void 0:Pd(e,r,t)/Ed(e,r)}var nJ=["x0","x1","y0","y1","dy","height","ycenter"],iJ=["x0","x1","y0","y1","dx","width","xcenter"];Sw.exports={x0:ZZ,x1:JZ,y0:$Z,y1:KZ,slope:aJ,dx:Ed,dy:Pd,width:QZ,height:jZ,length:eJ,xcenter:rJ,ycenter:tJ,simpleXVariables:nJ,simpleYVariables:iJ}});var Ew=O((Dye,Dw)=>{"use strict";var lJ=vi().overrideAll,jo=an(),Lw=aa(),oJ=di().dash,Gl=mt().extendFlat,{shapeTexttemplateAttrs:sJ,templatefallbackAttrs:uJ}=gn(),fJ=Rd();Dw.exports=lJ({newshape:{visible:Gl({},jo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Gl({},jo.legend,{}),legendgroup:Gl({},jo.legendgroup,{}),legendgrouptitle:{text:Gl({},jo.legendgrouptitle.text,{}),font:Lw({})},legendrank:Gl({},jo.legendrank,{}),legendwidth:Gl({},jo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Gl({},oJ,{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({},jo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:sJ({newshape:!0},{keys:Object.keys(fJ)}),texttemplatefallback:uJ({editType:"arraydraw"}),font:Lw({}),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 Rw=O((Eye,Pw)=>{"use strict";var cJ=di().dash,vJ=mt().extendFlat;Pw.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:vJ({},cJ,{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=O((Pye,zw)=>{"use strict";zw.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 Du=O((Rye,Hw)=>{"use strict";var Qy=aa(),dJ=Pc(),Nd=In(),Nw=Ew(),Fw=Rw(),hJ=zd(),Iw=mt().extendFlat,Fd=Qy({editType:"calc"});Fd.family.dflt='"Open Sans", verdana, arial, sans-serif';Fd.size.dflt=12;Fd.color.dflt=Nd.defaultLine;Hw.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:Iw(hJ({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:Nw.newshape,activeshape:Nw.activeshape,newselection:Fw.newselection,activeselection:Fw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Iw({},dJ.transition,{editType:"none"})}});var Bw=O(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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 Eu=Qo(),Ow=Ld(),Yw=Xy(),pJ=Bl(),mJ=Ec().addStyleRule,Vw=mt(),yJ=an(),gJ=Du(),xJ=Vw.extendFlat,jy=Vw.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 MJ=wu().timeFormat,e8=zr(),eg=Qo(),Wl=Au().mod,zu=wt(),Hn=zu.BADNUM,on=zu.ONEDAY,Rc=zu.ONEHOUR,Ul=zu.ONEMIN,Ru=zu.ONESEC,zc=zu.EPOCHJD,cl=gr(),Zw=wu().utcFormat,kJ=/^\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,qJ=/^\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,Jw=new Date().getFullYear()-70;function vl(e){return e&&cl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Yt.dateTick0=function(e,r){var t=CJ(e,!!r);if(r<2)return t;var a=Yt.dateTime2ms(t,e);return a+=on*(r-1),Yt.ms2DateTime(a,0,e)};function CJ(e,r){return vl(e)?r?cl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:cl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Yt.dfltRange=function(e){return vl(e)?cl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Yt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Hd,Bd;Yt.dateTime2ms=function(e,r){if(Yt.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Ru+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Wl(a-t+n/2,n)}return e=Number(e)-t,e>=Hd&&e<=Bd?e:Hn}if(typeof e!="string"&&typeof e!="number")return Hn;e=String(e);var i=vl(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?qJ:kJ);if(!s)return Hn;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 Hn;u=Number(u);var m;try{var y=cl.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 Hn}return m?(m.toJD()-zc)*on+d*Rc+h*Ul+p*Ru:Hn}u.length===2?u=(Number(u)+2e3-Jw)%100+Jw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,d,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Hn:_.getTime()+p*Ru};Hd=Yt.MIN_MS=Yt.dateTime2ms("-9999");Bd=Yt.MAX_MS=Yt.dateTime2ms("9999-12-31 23:59:59.9999");Yt.isDateTime=function(e,r){return Yt.dateTime2ms(e,r)!==Hn};function Pu(e,r){return String(e+Math.pow(10,r)).slice(1)}var Id=90*on,$w=3*Rc,Kw=5*Ul;Yt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Hd&&e<=Bd))return Hn;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(vl(t)){var c=Math.floor(n/on)+zc,d=Math.floor(Wl(e,on));try{i=cl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=Zw("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=Hd+on&&e<=Bd-on))return Hn;var r=Math.floor(Wl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=MJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return r8(a,n,i,l,o)};function r8(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Pu(r,2)+":"+Pu(t,2),(a||n)&&(e+=":"+Pu(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Pu(n,i)}return e}Yt.cleanDate=function(e,r,t){if(e===Hn)return r;if(Yt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(vl(t))return eg.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Yt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Yt.isDateTime(e,t))return eg.error("unrecognized date",e),r;return e};var SJ=/%\d?f/g,LJ=/%h/g,DJ={1:"1",2:"1",3:"2",4:"2"};function Qw(e,r,t,a){e=e.replace(SJ,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(LJ,function(){return DJ[t("%q")(n)]}),vl(a))try{e=cl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var EJ=[59,59.9,59.99,59.999,59.9999];function PJ(e,r){var t=Wl(e+.05,on),a=Pu(Math.floor(t/Rc),2)+":"+Pu(Wl(Math.floor(t/Ul),60),2);if(r!=="M"){e8(r)||(r=0);var n=Math.min(Wl(e/Ru,60),EJ[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Yt.formatDate=function(e,r,t,a,n,i){if(n=vl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`)};function P($){return $.map(I).join(v)}function I($){return T.test($)?'"'+$.replace(/\"/g,'""')+'"':$}return C},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var U0,W0,X0,Z0,I_=this[G(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){J0.apply(this,arguments)};function J0(v,g,T){var q=arguments.length;q<2&&(g=0),q<3&&(T=Date.now());var C=T+g,L={c:v,t:C,n:null};return W0?W0.n=L:U0=L,W0=L,X0||(Z0=clearTimeout(Z0),X0=1,I_(ny)),L}function ny(){var v=H_(),g=B_()-v;g>24?(isFinite(g)&&(clearTimeout(Z0),Z0=setTimeout(ny,g)),X0=0):(X0=1,I_(ny))}e.timer.flush=function(){H_(),B_()};function H_(){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 B_(){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&&ut(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function dU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(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-gU(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 I=U_(v);if(yu.insert(q,I),!(!q&&!C)){if(q===C){xu(q),C=U_(q.site),yu.insert(I,C),I.edge=C.edge=mc(q.site,I.site),gu(q),gu(C);return}if(!C){I.edge=mc(q.site,I.site);return}xu(q),xu(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,ve=2*(te*ue-ye*ae),Te=te*te+ye*ye,ke=ae*ae+ue*ue,pe={x:(ue*Te-ye*ke)/ve+K,y:(te*ke-ae*Te)/ve+re};K0(C.edge,$,Ae,pe),I.edge=mc($,v,null,pe),C.edge=mc(v,Ae,null,pe),gu(q),gu(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,I=T.y,$=I-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*$)-I+$/2+C-L/2)))/re+q:(q+P)/2}function gU(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 X_(v){this.site=v,this.edges=[]}X_.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(Z_),v.length};function xU(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],L,z,P,I,$=Yo,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(I-z)>se)&&(ye.splice(te,0,new Q0(AU(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=I*I+$*$,ye=K*K+ue*ue,Ae=(ue*te-$*ye)/re,ae=(I*ye-K*te)/re,ue=ae+P,ve=G_.pop()||new bU;ve.arc=v,ve.site=C,ve.x=Ae+z,ve.y=ue+Math.sqrt(Ae*Ae+ae*ae),ve.cy=ue,v.circle=ve;for(var Te=null,ke=pc._;ke;)if(ve.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-I,!(!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:I+re*Ae}),te<1&&(C.b={x:P+te*ye,y:I+te*Ae}),C}}}}}}function wU(v){for(var g=mu,T=_U(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!TU(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-ve)/ue,y:z};else if(q.y>=P)return;T={x:(P-ve)/ue,y:P}}else{if(!q)q={x:(P-ve)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+ve}}else{if(!q)q={x:L,y:ue*L+ve};else if(q.x=K&&ve.x<=te&&ve.y>=re&&ve.y<=ye?[[K,ye],[te,ye],[te,re],[K,re]]:[];Te.point=I[ae]}),$}function P(I){return I.map(function($,K){return{x:Math.round(q($,K)/se)*se,y:Math.round(C($,K)/se)*se,i:K}})}return z.links=function(I){return fy(P(I)).edges.filter(function($){return $.l&&$.r}).map(function($){return{source:I[$.l.i],target:I[$.r.i]}})},z.triangles=function(I){var $=[];return fy(P(I)).cells.forEach(function(K,re){for(var te=K.site,ye=K.edges.sort(Z_),Ae=-1,ae=ye.length,ue,ve,Te=ye[ae-1].edge,ke=Te.l===te?Te.r:Te.l;++Aeke&&(ke=K.x),K.y>pe&&(pe=K.y),ye.push(K.x),Ae.push(K.y);else for(ae=0;aeke&&(ke=Ve),nr>pe&&(pe=nr),ye.push(Ve),Ae.push(nr)}var ur=ke-ve,ir=pe-Te;ur>ir?pe=Te+ur:ke=ve+ir;function dr(mr,Ar,Kr,Bt,at,er,Dr,Er){if(!(isNaN(Kr)||isNaN(Bt)))if(mr.leaf){var Qr=mr.x,Ct=mr.y;if(Qr!=null)if(b(Qr-Kr)+b(Ct-Bt)<.01)pr(mr,Ar,Kr,Bt,at,er,Dr,Er);else{var Qt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Qt,Qr,Ct,at,er,Dr,Er),pr(mr,Ar,Kr,Bt,at,er,Dr,Er)}else mr.x=Kr,mr.y=Bt,mr.point=Ar}else pr(mr,Ar,Kr,Bt,at,er,Dr,Er)}function pr(mr,Ar,Kr,Bt,at,er,Dr,Er){var Qr=(at+Dr)*.5,Ct=(er+Er)*.5,Qt=Kr>=Qr,wa=Bt>=Ct,Ba=wa<<1|Qt;mr.leaf=!1,mr=mr.nodes[Ba]||(mr.nodes[Ba]=K_()),Qt?at=Qr:Dr=Qr,wa?er=Ct:Er=Ct,dr(mr,Ar,Kr,Bt,at,er,Dr,Er)}var Lr=K_();if(Lr.add=function(mr){dr(Lr,mr,+re(mr,++ae),+te(mr,ae),ve,Te,ke,pe)},Lr.visit=function(mr){xc(mr,Lr,ve,Te,ke,pe)},Lr.find=function(mr){return SU(Lr,mr[0],mr[1],ve,Te,ke,pe)},ae=-1,g==null){for(;++aeL||te>z||ye=Ve,ir=T>=nr,dr=ir<<1|ur,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,I.push({i:z,x:fl(q,C)})),T=hy.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?_a.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?cy:j_:g instanceof At?cy:Array.isArray(g)?rh:T==="object"&&isNaN(g)?Q_:fl)(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=LU.get(T)||e4,q=DU.get(q)||Y,EU(q(T.apply(null,r.call(arguments,1))))};function EU(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function r4(v){return function(g){return 1-v(1-g)}}function t4(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function PU(v){return v*v}function RU(v){return v*v*v}function zU(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 NU(v){return function(g){return Math.pow(g,v)}}function FU(v){return 1-Math.cos(v*sr)}function IU(v){return Math.pow(2,10*(v-1))}function HU(v){return 1-Math.sqrt(1-v*v)}function BU(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/ar*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*ar/g)}}function OU(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function YU(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=VU;function VU(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(I){return Pn(T+L*I,q+z*I,C+P*I)+""}}e.interpolateHsl=GU;function GU(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(I){return En(T+L*I,q+z*I,C+P*I)+""}}e.interpolateLab=UU;function UU(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(I){return Y0(T+L*I,q+z*I,C+P*I)+""}}e.interpolateRound=a4;function a4(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 n4(q?q.matrix:XU)})(v)};function n4(v){var g=[v.a,v.b],T=[v.c,v.d],q=l4(g),C=i4(g,T),L=l4(WU(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(bu(T)+"rotate(",null,")")-2,x:fl(v,g)})):g&&T.push(bu(T)+"rotate("+g+")")}function $U(v,g,T,q){v!==g?q.push({i:T.push(bu(T)+"skewX(",null,")")-2,x:fl(v,g)}):g&&T.push(bu(T)+"skewX("+g+")")}function KU(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(bu(T)+"scale(",null,",",null,")");q.push({i:C-4,x:fl(v[0],g[0])},{i:C-2,x:fl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(bu(T)+"scale("+g+")")}function o4(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),ZU(v.translate,g.translate,T,q),JU(v.rotate,g.rotate,T,q),$U(v.skew,g.skew,T,q),KU(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,Ve=ye.length,nr=Ae.length,ur=q[0],ir=q[1],dr,pr;for(pe=0;pe=0;)L.push(K=$[I]),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 Fi(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&&(_c(C,function(L){L.children&&(L.value=0)}),Fi(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 bc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=vW,v}function _c(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 Fi(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 xW(v){return v.reduce(bW,0)}function bW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=wW,q=_W;function C(L,te){for(var P=[],I=L.map(g,this),$=T.call(this,I,te),K=q.call(this,$,I,te),re,te=-1,ye=I.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 c4(z,L)}:Nr(L),C):q},C.frequency=function(L){return arguments.length?(v=!!L,C):v},C};function _W(v,g){return c4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function c4(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 wW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(TW),g=0,T=[1,1],q;function C(L,z){var P=v.call(this,L,z),I=P[0],$=T[0],K=T[1],re=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(I.x=I.y=0,Fi(I,function(ye){ye.r=+re(ye.value)}),Fi(I,d4),g){var te=g*(q?1:Math.max(2*I.r/$,2*I.r/K))/2;Fi(I,function(ye){ye.r+=te}),Fi(I,d4),Fi(I,function(ye){ye.r-=te})}return p4(I,$/2,K/2,q?1:1/Math.max(2*I.r/$,2*I.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},bc(C,v)};function TW(v,g){return v.value-g.value}function my(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function v4(v,g){v._pack_next=g,g._pack_prev=v}function h4(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 d4(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,I,$,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(AW),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(I=g[2],m4(z,P,I),ye(I),my(z,I),z._pack_prev=I,my(I,P),P=z._pack_next,$=3;$ue.x&&(ue=Ve),Ve.depth>ve.depth&&(ve=Ve)});var Te=g(ae,ue)/2-ae.x,ke=T[0]/(ue.x+g(ue,ae)/2+Te),pe=T[1]/(ve.depth||1);_c(ye,function(Ve){Ve.x=(Ve.x+Te)*ke,Ve.y=Ve.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,ve=Ae.length;ue0&&(kW(CW(ae,K,te),K,Ve),ve+=Ve,Te+=Ve),ke+=ae.m,ve+=ye.m,pe+=ue.m,Te+=Ae.m;ae&&!gy(Ae)&&(Ae.t=ae,Ae.m+=ke-Te),ye&&!yy(ue)&&(ue.t=ye,ue.m+=ve-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},bc(C,v)};function y4(v,g){return v.parent==g.parent?1:2}function yy(v){var g=v.children;return g.length?g[0]:v.t}function gy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function kW(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 qW(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 CW(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=y4,T=[1,1],q=!1;function C(L,z){var P=v.call(this,L,z),I=P[0],$,K=0;Fi(I,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=LW(ue),ae.y=SW(ue)):(ae.x=$?K+=g(ae,$):0,ae.y=0,$=ae)});var re=g4(I),te=x4(I),ye=re.x-g(re,te)/2,Ae=te.x+g(te,re)/2;return Fi(I,q?function(ae){ae.x=(ae.x-I.x)*T[0],ae.y=(I.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(Ae-ye)*T[0],ae.y=(1-(I.y?ae.y/I.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},bc(C,v)};function SW(v){return 1+e.max(v,function(g){return g.y})}function LW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function g4(v){var g=v.children;return g&&g.length?g4(g[0]):v}function x4(v){var g=v.children,T;return g&&(T=g.length)?x4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=xy,L=!1,z,P="squarify",I=.5*(1+Math.sqrt(5));function $(ae,ue){for(var ve=-1,Te=ae.length,ke,pe;++ve0;)Te.push(pe=ke[ir-1]),Te.area+=pe.area,P!=="squarify"||(nr=te(Te,ur))<=Ve?(ke.pop(),Ve=nr):(Te.area-=Te.pop().area,ye(Te,ur,ve,!1),ur=Math.min(ve.dx,ve.dy),Te.length=Te.area=0,Ve=1/0);Te.length&&(ye(Te,ur,ve,!0),Te.length=Te.area=0),ue.forEach(K)}}function re(ae){var ue=ae.children;if(ue&&ue.length){var ve=C(ae),Te=ue.slice(),ke,pe=[];for($(Te,ve.dx*ve.dy/ae.value),pe.area=0;ke=Te.pop();)pe.push(ke),pe.area+=ke.area,ke.z!=null&&(ye(pe,ke.z?ve.dx:ve.dy,ve,!Te.length),pe.length=pe.area=0);ue.forEach(re)}}function te(ae,ue){for(var ve=ae.area,Te,ke=0,pe=1/0,Ve=-1,nr=ae.length;++Veke&&(ke=Te));return ve*=ve,ue*=ue,ve?Math.max(ue*ke*I/ve,ve/(ue*pe*I)):1/0}function ye(ae,ue,ve,Te){var ke=-1,pe=ae.length,Ve=ve.x,nr=ve.y,ur=ue?g(ae.area/ue):0,ir;if(ue==ve.dx){for((Te||ur>ve.dy)&&(ur=ve.dy);++keve.dx)&&(ur=ve.dx);++ke1);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?PW:DW,$=q?jU:QU;return C=I(v,g,$,T),L=I(g,v,$,Vo),P}function P(I){return C(I)}return P.invert=function(I){return L(I)},P.domain=function(I){return arguments.length?(v=I.map(Number),z()):v},P.range=function(I){return arguments.length?(g=I,z()):g},P.rangeRound=function(I){return P.range(I).interpolate(a4)},P.clamp=function(I){return arguments.length?(q=I,z()):q},P.interpolate=function(I){return arguments.length?(T=I,z()):T},P.ticks=function(I){return wy(v,I)},P.tickFormat=function(I,$){return d3_scale_linearTickFormat(v,I,$)},P.nice=function(I){return A4(v,I),z()},P.copy=function(){return w4(v,g,T,q)},z()}function T4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function A4(v,g){return by(v,_4(_y(v,g)[2])),by(v,_4(_y(v,g)[2])),v}function _y(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 wy(v,g){return e.range.apply(e,_y(v,g))}var RW={s:1,g:1,p:1,r:1,e:1};function M4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function hme(v,g){var T=M4(g[2]);return v in RW?Math.abs(T-M4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return k4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function k4(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=by(q.map(C),T?Math:zW);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=th(q),I=[],$=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--)I.push(L(re)*Ae);for(re=0;I[re]<$;re++);for(te=I.length;I[te-1]>K;te--);I=I.slice(re,te)}return I},z.copy=function(){return k4(v.copy(),g,T,q)},T4(z,v)}var zW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return q4(e.scale.linear(),1,[0,1])};function q4(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 wy(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(A4(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 q4(v.copy(),g,T)},T4(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 C4([],{t:"range",a:[[]]})};function C4(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,I){return e.range(v.length).map(function($){return P+I*$})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var I=-1,$=P.length,K;++I<$;)T.has(K=P[I])||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,I){arguments.length<2&&(I=0);var $=P[0],K=P[1],re=v.length<2?($=($+K)/2,0):(K-$)/(v.length-1+I);return q=z($+re*I/2,re),C=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(P,I){arguments.length<2&&(I=0);var $=P[0],K=P[1],re=v.length<2?($=K=Math.round(($+K)/2),0):(K-$)/(v.length-1+I)|0;return q=z($+Math.round(re*I/2+(K-$-(v.length-1+I)*re)/2),re),C=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(P,I,$){arguments.length<2&&(I=0),arguments.length<3&&($=I);var K=P[1]0?T[L-1]:v[0],Lte?0:1;if(K<$&&(ae=K,K=$,$=ae),ye>=cr)return I(K,Ae)+($?I($,1-Ae):"")+"Z";var ae,ue,ve,Te,ke=0,pe=0,Ve,nr,ur,ir,dr,pr,Lr,mr,Ar=[];if((Te=(+z.apply(this,arguments)||0)/2)&&(ve=q===ih?Math.sqrt($*$+K*K):+q.apply(this,arguments),Ae||(pe*=-1),K&&(pe=_t(ve/K*Math.sin(Te))),$&&(ke=_t(ve/$*Math.sin(Te)))),K){Ve=K*Math.cos(re+pe),nr=K*Math.sin(re+pe),ur=K*Math.cos(te-pe),ir=K*Math.sin(te-pe);var Kr=Math.abs(te-re-2*pe)<=Ee?0:1;if(pe&&lh(Ve,nr,ur,ir)===Ae^Kr){var Bt=(re+te)/2;Ve=K*Math.cos(Bt),nr=K*Math.sin(Bt),ur=ir=null}}else Ve=nr=0;if($){dr=$*Math.cos(te-ke),pr=$*Math.sin(te-ke),Lr=$*Math.cos(re+ke),mr=$*Math.sin(re+ke);var at=Math.abs(re-te+2*ke)<=Ee?0:1;if(ke&&lh(dr,pr,Lr,mr)===1-Ae^at){var er=(re+te)/2;dr=$*Math.cos(er),pr=$*Math.sin(er),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),I=P*z,$=-P*L,K=v[0]+I,re=v[1]+$,te=g[0]+I,ye=g[1]+$,Ae=(K+te)/2,ae=(re+ye)/2,ue=te-K,ve=ye-re,Te=ue*ue+ve*ve,ke=T-q,pe=K*ye-te*re,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,ke*ke*Te-pe*pe)),nr=(pe*ve-ue*Ve)/Te,ur=(-pe*ue-ve*Ve)/Te,ir=(pe*ve+ue*Ve)/Te,dr=(-pe*ue+ve*Ve)/Te,pr=nr-Ae,Lr=ur-ae,mr=ir-Ae,Ar=dr-ae;return pr*pr+Lr*Lr>mr*mr+Ar*Ar&&(nr=ir,ur=dr),[[nr-I,ur-$],[nr*T/ke,ur*T/ke]]}function z4(){return!0}function N4(v){var g=pu,T=dc,q=z4,C=si,L=C.key,z=.7;function P(I){var $=[],K=[],re=-1,te=I.length,ye,Ae=Nr(g),ae=Nr(T);function ue(){$.push("M",C(v(K),z))}for(;++re1?v.join("L"):v+"Z"}function F4(v){return v.join("L")+"Z"}function GW(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 Ay(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],L=v[I],I++,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<=I;)L=(v[Math.min(I,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 jW(v){return v.length<3?si(v):v[0]+sh(v,QW(v))}e.svg.line.radial=function(){var v=N4(O4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function O4(v){for(var g,T=-1,q=v.length,C,L;++TEe)+",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 eX(v){return v.radius}e.svg.diagonal=function(){var v=V4,g=G4,T=U4;function q(C,L){var z=v.call(this,C,L),P=g.call(this,C,L),I=(z.y+P.y)/2,$=[z,{x:z.x,y:I},{x:P.x,y:I},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 U4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=U4,T=v.projection;return v.projection=function(q){return arguments.length?T(rX(g=q)):g},v};function rX(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=aX,g=tX;function T(q,C){return(X4.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 tX(){return 64}function aX(){return"circle"}function W4(v){var g=Math.sqrt(v/Ee);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var X4=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*Z4)),T=g*Z4;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=X4.keys();var uh=Math.sqrt(3),Z4=Math.tan(30*Mr);_e.transition=function(v){for(var g=Go||++$4,T=Ly(v),q=[],C,L,z=ch||{time:Date.now(),ease:zU,delay:0,duration:250},P=-1,I=this.length;++P0;)re[--Te].call(v,ve);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,I=J0(te,0,P),z=L[q]={tween:new x,time:P,timer:I,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=K4,T=6,q=6,C=3,L=[10],z=null,P;function I($){$.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),ve=e.transition(ae.exit()).style("opacity",se).remove(),Te=e.transition(ae.order()).style("opacity",1),ke=Math.max(T,0)+C,pe,Ve=ah(te),nr=K.selectAll(".domain").data([0]),ur=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ue.append("line"),ue.append("text");var ir=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,Kr,Bt,at,er;if(g==="bottom"||g==="top"?(pe=lX,Kr="x",at="y",Bt="x2",er="y2",pr.attr("dy",Ar<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ve[0]+","+Ar*q+"V0H"+Ve[1]+"V"+Ar*q)):(pe=oX,Kr="y",at="x",Bt="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",Ar<0?"end":"start"),ur.attr("d","M"+Ar*q+","+Ve[0]+"H0V"+Ve[1]+"H"+Ar*q)),ir.attr(er,Ar*T),Lr.attr(at,Ar*ke),dr.attr(Bt,0).attr(er,Ar*T),mr.attr(Kr,0).attr(at,Ar*ke),te.rangeBand){var Dr=te,Er=Dr.rangeBand()/2;re=te=function(Qr){return Dr(Qr)+Er}}else re.rangeBand?re=te:ve.call(pe,te,re);ue.call(pe,re,te),Te.call(pe,te,te)})}return I.scale=function($){return arguments.length?(v=$,I):v},I.orient=function($){return arguments.length?(g=$ in iX?$+"":K4,I):g},I.ticks=function(){return arguments.length?(L=t(arguments),I):L},I.tickValues=function($){return arguments.length?(z=$,I):z},I.tickFormat=function($){return arguments.length?(P=$,I):P},I.tickSize=function($){var K=arguments.length;return K?(T=+$,q=+arguments[K-1],I):T},I.innerTickSize=function($){return arguments.length?(T=+$,I):T},I.outerTickSize=function($){return arguments.length?(q=+$,I):q},I.tickPadding=function($){return arguments.length?(C=+$,I):C},I.tickSubdivide=function(){return arguments.length&&I},I};var K4="bottom",iX={top:1,right:1,bottom:1,left:1};function lX(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function oX(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,I=!0,$=Dy[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),ve=ue.selectAll(".background").data([0]);ve.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 sX[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 ke=e.transition(ue),pe=e.transition(ve),Ve;g&&(Ve=ah(g),pe.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),te(ke)),T&&(Ve=ah(T),pe.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),ye(ke)),re(ke)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),ve={x:q,y:C,i:L,j:z},Te=this.__chart__||ve;this.__chart__=ve,Go?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 ke=rh(q,ve.x),pe=rh(C,ve.y);return L=z=null,function(Ve){q=ve.x=ke(Ve),C=ve.y=pe(Ve),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ve.i,z=ve.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),ve=v.of(ae,arguments),Te=e.select(ae),ke=ue.datum(),pe=!/^(n|s)$/.test(ke)&&g,Ve=!/^(e|w)$/.test(ke)&&T,nr=ue.classed("extent"),ur=tr(ae),ir,dr=e.mouse(ae),pr,Lr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Bt);if(e.event.changedTouches?Lr.on("touchmove.brush",at).on("touchend.brush",Dr):Lr.on("mousemove.brush",at).on("mouseup.brush",Dr),Te.interrupt().selectAll("*").interrupt(),nr)dr[0]=q[0]-dr[0],dr[1]=C[0]-dr[1];else if(ke){var mr=+/w$/.test(ke),Ar=+/^n/.test(ke);pr=[q[1-mr]-dr[0],C[1-Ar]-dr[1]],dr[0]=q[mr],dr[1]=C[Ar]}else e.event.altKey&&(ir=dr.slice());Te.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),ve({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(nr||(ir=null,dr[0]-=q[1],dr[1]-=C[1],nr=2),ee())}function Bt(){e.event.keyCode==32&&nr==2&&(dr[0]+=q[1],dr[1]+=C[1],nr=0,ee())}function at(){var Er=e.mouse(ae),Qr=!1;pr&&(Er[0]+=pr[0],Er[1]+=pr[1]),nr||(e.event.altKey?(ir||(ir=[(q[0]+q[1])/2,(C[0]+C[1])/2]),dr[0]=q[+(Er[0]{(function(e,r){typeof xh=="object"&&typeof l6!="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(Me){return ie(Me=arguments.length===0?new Date:new Date(+Me)),Me}return Ne.floor=function(Me){return ie(Me=new Date(+Me)),Me},Ne.ceil=function(Me){return ie(Me=new Date(Me-1)),we(Me,1),ie(Me),Me},Ne.round=function(Me){var Ce=Ne(Me),He=Ne.ceil(Me);return Me-Ce0))return Je;do Je.push(Ge=new Date(+Me)),we(Me,He),ie(Me);while(Ge=Ce)for(;ie(Ce),!Me(Ce);)Ce.setTime(Ce-1)},function(Ce,He){if(Ce>=Ce)if(He<0)for(;++He<=0;)for(;we(Ce,-1),!Me(Ce););else for(;--He>=0;)for(;we(Ce,1),!Me(Ce););})},$e&&(Ne.count=function(Me,Ce){return r.setTime(+Me),t.setTime(+Ce),ie(r),ie(t),Math.floor($e(r,t))},Ne.every=function(Me){return Me=Math.floor(Me),!isFinite(Me)||!(Me>0)?null:Me>1?Ne.filter(hr?function(Ce){return hr(Ce)%Me===0}:function(Ce){return Ne.count(0,Ce)%Me===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,F=M.range,Y=S.range,U=D.range,G=E.range,V=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=V.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()}),he=fe.range,Q=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=Q.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),ge=ce(1),_e=ce(2),W=ce(3),j=ce(4),Z=ce(5),oe=ce(6),me=be.range,xe=ge.range,De=_e.range,ze=W.range,Se=j.range,Ie=Z.range,Be=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()}),Pe=We.range,Oe=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()});Oe.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 Ue=Oe.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=V,e.timeMonths=B,e.timeSaturday=E,e.timeSaturdays=G,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=F,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=X,e.utcDay=Q,e.utcDays=qe,e.utcFriday=Z,e.utcFridays=Ie,e.utcHour=fe,e.utcHours=he,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=le,e.utcMonday=ge,e.utcMondays=xe,e.utcMonth=We,e.utcMonths=Pe,e.utcSaturday=oe,e.utcSaturdays=Be,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=me,e.utcThursday=j,e.utcThursdays=Se,e.utcTuesday=_e,e.utcTuesdays=De,e.utcWednesday=W,e.utcWednesdays=ze,e.utcWeek=be,e.utcWeeks=me,e.utcYear=Oe,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var wu=O((bh,o6)=>{(function(e,r){typeof bh=="object"&&typeof o6!="undefined"?r(bh,Ey()):(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,Ee=ne.time,ar=ne.periods,cr=ne.days,sr=ne.shortDays,Mr=ne.months,Or=ne.shortMonths,et=h(ar),ut=d(ar),kt=h(cr),_t=d(cr),Ht=h(sr),ra=d(sr),Ia=h(Mr),ma=d(Mr),ya=h(Or),vr=d(Or),ft={a:Ho,A:Bo,b:Fl,B:Y0,c:null,d:V,e:V,f:le,H:B,I:J,j:X,L:ee,m:fe,M:he,p:V0,q:cc,Q:Ce,s:He,S:Q,u:qe,U:ce,V:be,w:ge,W:_e,x:null,X:null,y:W,Y:j,Z,"%":Me},$r={a:vc,A:hc,b:Ha,B:G0,c:null,d:oe,e:oe,f:Se,H:me,I:xe,j:De,L:ze,m:Ie,M:Be,p:hu,q:du,Q:Ce,s:He,S:We,u:Pe,U:Oe,V:Ue,w:ie,W:we,x:null,X:null,y:$e,Y:hr,Z:Ne,"%":Me},dt={a:En,A:ta,b:Ni,B:Pn,c:Rt,d:S,e:S,f:F,H:E,I:E,j:D,L:H,m:M,M:R,p:ga,q:k,Q:U,s:G,S:N,u:m,U:y,V:b,w:p,W:_,x:qt,X:xa,y:x,Y:w,Z:A,"%":Y};ft.x=Pt(Le,ft),ft.X=Pt(Ee,ft),ft.c=Pt(se,ft),$r.x=Pt(Le,$r),$r.X=Pt(Ee,$r),$r.c=Pt(se,$r);function Pt(yr,Wr){return function(rt){var or=[],ba=-1,ct=0,_a=yr.length,Nr,oi,Oo;for(rt instanceof Date||(rt=new Date(+rt));++ba<_a;)yr.charCodeAt(ba)===37&&(or.push(yr.slice(ct,ba)),(oi=l[Nr=yr.charAt(++ba)])!=null?Nr=yr.charAt(++ba):oi=Nr==="e"?" ":"0",(Oo=Wr[Nr])&&(Nr=Oo(rt,oi)),or.push(Nr),ct=ba+1);return or.push(yr.slice(ct,ba)),or.join("")}}function At(yr,Wr){return function(rt){var or=n(1900,void 0,1),ba=jr(or,yr,rt+="",0),ct,_a;if(ba!=rt.length)return null;if("Q"in or)return new Date(or.Q);if("s"in or)return new Date(or.s*1e3+("L"in or?or.L:0));if(Wr&&!("Z"in or)&&(or.Z=0),"p"in or&&(or.H=or.H%12+or.p*12),or.m===void 0&&(or.m="q"in or?or.q:0),"V"in or){if(or.V<1||or.V>53)return null;"w"in or||(or.w=1),"Z"in or?(ct=a(n(or.y,0,1)),_a=ct.getUTCDay(),ct=_a>4||_a===0?r.utcMonday.ceil(ct):r.utcMonday(ct),ct=r.utcDay.offset(ct,(or.V-1)*7),or.y=ct.getUTCFullYear(),or.m=ct.getUTCMonth(),or.d=ct.getUTCDate()+(or.w+6)%7):(ct=t(n(or.y,0,1)),_a=ct.getDay(),ct=_a>4||_a===0?r.timeMonday.ceil(ct):r.timeMonday(ct),ct=r.timeDay.offset(ct,(or.V-1)*7),or.y=ct.getFullYear(),or.m=ct.getMonth(),or.d=ct.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),_a="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-(_a+5)%7:or.w+or.U*7-(_a+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function jr(yr,Wr,rt,or){for(var ba=0,ct=Wr.length,_a=rt.length,Nr,oi;ba=_a)return-1;if(Nr=Wr.charCodeAt(ba++),Nr===37){if(Nr=Wr.charAt(ba++),oi=dt[Nr in l?Wr.charAt(ba++):Nr],!oi||(or=oi(yr,rt,or))<0)return-1}else if(Nr!=rt.charCodeAt(or++))return-1}return or}function ga(yr,Wr,rt){var or=et.exec(Wr.slice(rt));return or?(yr.p=ut[or[0].toLowerCase()],rt+or[0].length):-1}function En(yr,Wr,rt){var or=Ht.exec(Wr.slice(rt));return or?(yr.w=ra[or[0].toLowerCase()],rt+or[0].length):-1}function ta(yr,Wr,rt){var or=kt.exec(Wr.slice(rt));return or?(yr.w=_t[or[0].toLowerCase()],rt+or[0].length):-1}function Ni(yr,Wr,rt){var or=ya.exec(Wr.slice(rt));return or?(yr.m=vr[or[0].toLowerCase()],rt+or[0].length):-1}function Pn(yr,Wr,rt){var or=Ia.exec(Wr.slice(rt));return or?(yr.m=ma[or[0].toLowerCase()],rt+or[0].length):-1}function Rt(yr,Wr,rt){return jr(yr,se,Wr,rt)}function qt(yr,Wr,rt){return jr(yr,Le,Wr,rt)}function xa(yr,Wr,rt){return jr(yr,Ee,Wr,rt)}function Ho(yr){return sr[yr.getDay()]}function Bo(yr){return cr[yr.getDay()]}function Fl(yr){return Or[yr.getMonth()]}function Y0(yr){return Mr[yr.getMonth()]}function V0(yr){return ar[+(yr.getHours()>=12)]}function cc(yr){return 1+~~(yr.getMonth()/3)}function vc(yr){return sr[yr.getUTCDay()]}function hc(yr){return cr[yr.getUTCDay()]}function Ha(yr){return Or[yr.getUTCMonth()]}function G0(yr){return Mr[yr.getUTCMonth()]}function hu(yr){return ar[+(yr.getUTCHours()>=12)]}function du(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Wr=Pt(yr+="",ft);return Wr.toString=function(){return yr},Wr},parse:function(yr){var Wr=At(yr+="",!1);return Wr.toString=function(){return yr},Wr},utcFormat:function(yr){var Wr=Pt(yr+="",$r);return Wr.toString=function(){return yr},Wr},utcParse:function(yr){var Wr=At(yr+="",!0);return Wr.toString=function(){return yr},Wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,se,Le){var Ee=ne<0?"-":"",ar=(Ee?-ne:ne)+"",cr=ar.length;return Ee+(cr68?1900:2e3),Le+Ee[0].length):-1}function A(ne,se,Le){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(se.slice(Le,Le+6));return Ee?(ne.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),Le+Ee[0].length):-1}function k(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+1));return Ee?(ne.q=Ee[0]*3-3,Le+Ee[0].length):-1}function M(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.m=Ee[0]-1,Le+Ee[0].length):-1}function S(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.d=+Ee[0],Le+Ee[0].length):-1}function D(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+3));return Ee?(ne.m=0,ne.d=+Ee[0],Le+Ee[0].length):-1}function E(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.H=+Ee[0],Le+Ee[0].length):-1}function R(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.M=+Ee[0],Le+Ee[0].length):-1}function N(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+2));return Ee?(ne.S=+Ee[0],Le+Ee[0].length):-1}function H(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+3));return Ee?(ne.L=+Ee[0],Le+Ee[0].length):-1}function F(ne,se,Le){var Ee=o.exec(se.slice(Le,Le+6));return Ee?(ne.L=Math.floor(Ee[0]/1e3),Le+Ee[0].length):-1}function Y(ne,se,Le){var Ee=s.exec(se.slice(Le,Le+1));return Ee?Le+Ee[0].length:-1}function U(ne,se,Le){var Ee=o.exec(se.slice(Le));return Ee?(ne.Q=+Ee[0],Le+Ee[0].length):-1}function G(ne,se,Le){var Ee=o.exec(se.slice(Le));return Ee?(ne.s=+Ee[0],Le+Ee[0].length):-1}function V(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 he(ne,se){return f(ne.getMinutes(),se,2)}function Q(ne,se){return f(ne.getSeconds(),se,2)}function qe(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 ge(ne){return ne.getDay()}function _e(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 j(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 De(ne,se){return f(1+r.utcDay.count(r.utcYear(ne),ne),se,3)}function ze(ne,se){return f(ne.getUTCMilliseconds(),se,3)}function Se(ne,se){return ze(ne,se)+"000"}function Ie(ne,se){return f(ne.getUTCMonth()+1,se,2)}function Be(ne,se){return f(ne.getUTCMinutes(),se,2)}function We(ne,se){return f(ne.getUTCSeconds(),se,2)}function Pe(ne){var se=ne.getUTCDay();return se===0?7:se}function Oe(ne,se){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),se,2)}function Ue(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 Me(){return"%"}function Ce(ne){return+ne}function He(ne){return Math.floor(+ne/1e3)}var Je;Ge({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 Ge(ne){return Je=i(ne),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ne){return ne.toISOString()}var tr=Date.prototype.toISOString?lr:e.utcFormat(Xe);function Ke(ne){var se=new Date(ne);return isNaN(se)?null:se}var Fe=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Xe);e.isoFormat=tr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Py=O((_h,s6)=>{(function(e,r){typeof _h=="object"&&typeof s6!="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,F=M[0],Y=0;R>0&&F>0&&(Y+F+1>E&&(F=Math.max(1,E-Y)),N.push(D.substring(R-=F,R+F)),!((Y+=F+1)>E));)F=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+"",F=M.minus===void 0?"-":M.minus+"",Y=M.nan===void 0?"NaN":M.nan+"";function U(V){V=o(V);var B=V.fill,J=V.align,X=V.sign,ee=V.symbol,le=V.zero,fe=V.width,he=V.comma,Q=V.precision,qe=V.trim,ce=V.type;ce==="n"?(he=!0,ce="g"):d[ce]||(Q===void 0&&(Q=12),qe=!0,ce="g"),(le||B==="0"&&J==="=")&&(le=!0,B="0",J="=");var be=ee==="$"?D:ee==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",ge=ee==="$"?E:/[%p]/.test(ce)?H:"",_e=d[ce],W=/[defgprs%]/.test(ce);Q=Q===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function j(Z){var oe=be,me=ge,xe,De,ze;if(ce==="c")me=_e(Z)+me,Z="";else{Z=+Z;var Se=Z<0||1/Z<0;if(Z=isNaN(Z)?Y:_e(Math.abs(Z),Q),qe&&(Z=u(Z)),Se&&+Z==0&&X!=="+"&&(Se=!1),oe=(Se?X==="("?X:F:X==="-"||X==="("?"":X)+oe,me=(ce==="s"?y[8+f/3]:"")+me+(Se&&X==="("?")":""),W){for(xe=-1,De=Z.length;++xeze||ze>57){me=(ze===46?R+Z.slice(xe+1):Z.slice(xe))+me,Z=Z.slice(0,xe);break}}}he&&!le&&(Z=S(Z,1/0));var Ie=oe.length+Z.length+me.length,Be=Ie>1)+oe+Z+me+Be.slice(Ie);break;default:Z=Be+oe+Z+me;break}return N(Z)}return j.toString=function(){return V+""},j}function G(V,B){var J=U((V=o(V),V.type="f",V)),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:U,formatPrefix:G}}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 f6=O((yme,u6)=>{"use strict";u6.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((gme,c6)=>{"use strict";var xX=f6();c6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&xX(t))return!1}else if(r!=="number")return!1;return e-e<1}});var wt=O((xme,v6)=>{"use strict";v6.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 Ry=O((wh,h6)=>{(function(e,r){typeof wh=="object"&&typeof h6!="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 Bl=O((bme,d6)=>{"use strict";d6.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 yn=O(fi=>{"use strict";var bX=Ry().decode,_X=Bl(),zy=Array.isArray,wX=ArrayBuffer,TX=DataView;function p6(e){return wX.isView(e)&&!(e instanceof TX)}fi.isTypedArray=p6;function Th(e){return zy(e)||p6(e)}fi.isArrayOrTypedArray=Th;function AX(e){return!Th(e[0])}fi.isArray1D=AX;fi.ensureArray=function(e,r){return zy(e)||(e=[]),e.length=r,e};var ha={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};ha.uint8c=ha.u1c;ha.uint8=ha.u1;ha.int8=ha.i1;ha.uint16=ha.u2;ha.int16=ha.i2;ha.uint32=ha.u4;ha.int32=ha.i4;ha.float32=ha.f4;ha.float64=ha.f8;function Ny(e){return e.constructor===ArrayBuffer}fi.isArrayBuffer=Ny;fi.decodeTypedArraySpec=function(e){var r=[],t=MX(e),a=t.dtype,n=ha[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Ny(l)||(l=bX(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 y6=zr(),Iy=yn().isArrayOrTypedArray;_6.exports=function(r,t){if(y6(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 Tu=Ah(),LX=/^\w*$/,DX=0,w6=1,Mh=2,T6=3,Zo=4;A6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=Tu(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 EX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,PX=/^[^\.\[\]]+$/;k6.exports=function(e,r){for(;r;){var t=e.match(EX);if(t)e=t[1];else if(e.match(PX))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((Mme,C6)=>{"use strict";var RX=zr();C6.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 RX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var D6=O((kme,L6)=>{"use strict";var S6=yn().isArrayOrTypedArray,Tc=Bl();L6.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(S6(n)&&S6(i)&&Tc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function zX(e,r){var t=e%r;return t<0?t+r:t}function NX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}E6.exports={mod:zX,modHalf:NX}});var Fn=O((Cme,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,j){if(W=W||"",j=j||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,j);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=j.format||Z.format,this._gradientType=j.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(),j,Z,oe,me,xe,De;return j=W.r/255,Z=W.g/255,oe=W.b/255,j<=.03928?me=j/12.92:me=e.pow((j+.055)/1.055,2.4),Z<=.03928?xe=Z/12.92:xe=e.pow((Z+.055)/1.055,2.4),oe<=.03928?De=oe/12.92:De=e.pow((oe+.055)/1.055,2.4),.2126*me+.7152*xe+.0722*De},setAlpha:function(W){return this._a=V(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),j=n(W.h*360),Z=n(W.s*100),oe=n(W.v*100);return this._a==1?"hsv("+j+", "+Z+"%, "+oe+"%)":"hsva("+j+", "+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),j=n(W.h*360),Z=n(W.s*100),oe=n(W.l*100);return this._a==1?"hsl("+j+", "+Z+"%, "+oe+"%)":"hsla("+j+", "+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 j="#"+b(this._r,this._g,this._b,this._a),Z=j,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="+j+",endColorstr="+Z+")"},toString:function(W){var j=!!W;W=W||this._format;var Z=!1,oe=this._a<1&&this._a>=0,me=!j&&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,j){var Z=W.apply(null,[this].concat([].slice.call(j)));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,j){return W.apply(null,[this].concat([].slice.call(j)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(F,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,j){if(typeof W=="object"){var Z={};for(var oe in W)W.hasOwnProperty(oe)&&(oe==="a"?Z[oe]=W[oe]:Z[oe]=he(W[oe]));W=Z}return s(W,j)};function u(W){var j={r:0,g:0,b:0},Z=1,oe=null,me=null,xe=null,De=!1,ze=!1;return typeof W=="string"&&(W=ge(W)),typeof W=="object"&&(be(W.r)&&be(W.g)&&be(W.b)?(j=f(W.r,W.g,W.b),De=!0,ze=String(W.r).substr(-1)==="%"?"prgb":"rgb"):be(W.h)&&be(W.s)&&be(W.v)?(oe=he(W.s),me=he(W.v),j=p(W.h,oe,me),De=!0,ze="hsv"):be(W.h)&&be(W.s)&&be(W.l)&&(oe=he(W.s),xe=he(W.l),j=h(W.h,oe,xe),De=!0,ze="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=V(Z),{ok:De,format:W.format||ze,r:i(255,l(j.r,0)),g:i(255,l(j.g,0)),b:i(255,l(j.b,0)),a:Z}}function f(W,j,Z){return{r:B(W,255)*255,g:B(j,255)*255,b:B(Z,255)*255}}function c(W,j,Z){W=B(W,255),j=B(j,255),Z=B(Z,255);var oe=l(W,j,Z),me=i(W,j,Z),xe,De,ze=(oe+me)/2;if(oe==me)xe=De=0;else{var Se=oe-me;switch(De=ze>.5?Se/(2-oe-me):Se/(oe+me),oe){case W:xe=(j-Z)/Se+(j1&&(We-=1),We<1/6?Ie+(Be-Ie)*6*We:We<1/2?Be:We<2/3?Ie+(Be-Ie)*(2/3-We)*6:Ie}if(j===0)oe=me=xe=Z;else{var ze=Z<.5?Z*(1+j):Z+j-Z*j,Se=2*Z-ze;oe=De(Se,ze,W+1/3),me=De(Se,ze,W),xe=De(Se,ze,W-1/3)}return{r:oe*255,g:me*255,b:xe*255}}function d(W,j,Z){W=B(W,255),j=B(j,255),Z=B(Z,255);var oe=l(W,j,Z),me=i(W,j,Z),xe,De,ze=oe,Se=oe-me;if(De=oe===0?0:Se/oe,oe==me)xe=0;else{switch(oe){case W:xe=(j-Z)/Se+(j>1)+720)%360;--j;)oe.h=(oe.h+me)%360,xe.push(s(oe));return xe}function F(W,j){j=j||6;for(var Z=s(W).toHsv(),oe=Z.h,me=Z.s,xe=Z.v,De=[],ze=1/j;j--;)De.push(s({h:oe,s:me,v:xe})),xe=(xe+ze)%1;return De}s.mix=function(W,j,Z){Z=Z===0?0:Z||50;var oe=s(W).toRgb(),me=s(j).toRgb(),xe=Z/100,De={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(De)},s.readability=function(W,j){var Z=s(W),oe=s(j);return(e.max(Z.getLuminance(),oe.getLuminance())+.05)/(e.min(Z.getLuminance(),oe.getLuminance())+.05)},s.isReadable=function(W,j,Z){var oe=s.readability(W,j),me,xe;switch(xe=!1,me=_e(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,j,Z){var oe=null,me=0,xe,De,ze,Se;Z=Z||{},De=Z.includeFallbackColors,ze=Z.level,Se=Z.size;for(var Ie=0;Ieme&&(me=xe,oe=s(j[Ie]));return s.isReadable(W,oe,{level:ze,size:Se})||!De?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=G(Y);function G(W){var j={};for(var Z in W)W.hasOwnProperty(Z)&&(j[W[Z]]=Z);return j}function V(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function B(W,j){ee(W)&&(W="100%");var Z=le(W);return W=i(j,l(0,parseFloat(W))),Z&&(W=parseInt(W*j,10)/100),e.abs(W-j)<1e-6?1:W%j/parseFloat(j)}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 he(W){return W<=1&&(W=W*100+"%"),W}function Q(W){return e.round(parseFloat(W)*255).toString(16)}function qe(W){return X(W)/255}var ce=function(){var W="[-\\+]?\\d+%?",j="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+j+")|(?:"+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 ge(W){W=W.replace(r,"").replace(t,"").toLowerCase();var j=!1;if(Y[W])W=Y[W],j=!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:qe(Z[4]),format:j?"name":"hex8"}:(Z=ce.hex6.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),format:j?"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:qe(Z[4]+""+Z[4]),format:j?"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:j?"name":"hex"}:!1}function _e(W){var j,Z;return W=W||{level:"AA",size:"small"},j=(W.level||"AA").toUpperCase(),Z=(W.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:j,size:Z}}typeof qh!="undefined"&&qh.exports?qh.exports=s:window.tinycolor=s})(Math)});var mt=O(kc=>{"use strict";var P6=Bl(),Ac=Array.isArray;function FX(e,r){var t,a;for(t=0;t{"use strict";R6.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 qc=O((Dme,z6)=>{"use strict";z6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Mu=O((Eme,I6)=>{"use strict";var N6=qc(),F6=aa(),Hy=F6({editType:"none"});Hy.family.dflt=N6.HOVERFONT;Hy.size.dflt=N6.HOVERFONTSIZE;I6.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Hy,grouptitlefont:F6({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 Lc=O((Pme,H6)=>{"use strict";var IX=aa(),Cc=Mu().hoverlabel,Sc=mt().extendFlat;H6.exports={hoverlabel:{bgcolor:Sc({},Cc.bgcolor,{arrayOk:!0}),bordercolor:Sc({},Cc.bordercolor,{arrayOk:!0}),font:IX({arrayOk:!0,editType:"none"}),align:Sc({},Cc.align,{arrayOk:!0}),namelength:Sc({},Cc.namelength,{arrayOk:!0}),showarrow:Sc({},Cc.showarrow),editType:"none"}}});var an=O((Rme,B6)=>{"use strict";var HX=aa(),BX=Lc();B6.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:HX({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:BX.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 Jo=O((zme,V6)=>{"use strict";var OX=Fn(),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)"]]},O6=Ch.RdBu;function YX(e,r){if(r||(r=O6),!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()),Y6(e)?e:r}function Y6(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";$o.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$o.defaultLine="#444";$o.lightLine="#eee";$o.background="#fff";$o.borderLine="#BEC8D9";$o.lightFraction=100*10/11});var br=O((Fme,G6)=>{"use strict";var nn=Fn(),GX=zr(),UX=yn().isTypedArray,na=G6.exports={},Sh=In();na.defaults=Sh.defaults;var WX=na.defaultLine=Sh.defaultLine;na.lightLine=Sh.lightLine;var Oy=na.background=Sh.background;na.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};na.rgb=function(e){return na.tinyRGB(nn(e))};na.opacity=function(e){return e?nn(e).getAlpha():0};na.addOpacity=function(e,r){var t=nn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};na.combine=function(e,r){var t=nn(e).toRgb();if(t.a===1)return nn(e).toRgbString();var a=nn(r||Oy).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 nn(i).toRgbString()};na.interpolate=function(e,r,t){var a=nn(e).toRgb(),n=nn(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 nn(i).toRgbString()};na.contrast=function(e,r,t){var a=nn(e);a.getAlpha()!==1&&(a=nn(na.combine(e,Oy)));var n=a.isDark()?r?a.lighten(r):Oy:t?a.darken(t):WX;return n.toString()};na.stroke=function(e,r){var t=nn(r);e.style({stroke:na.tinyRGB(t),"stroke-opacity":t.getAlpha()})};na.fill=function(e,r){var t=nn(r);e.style({fill:na.tinyRGB(t),"fill-opacity":t.getAlpha()})};na.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 ku=O((Ime,U6)=>{"use strict";U6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var qu=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 $6=O(ln=>{"use strict";var Yy=zr(),X6=Fn(),Z6=mt().extendFlat,XX=an(),ZX=Jo(),JX=br(),$X=ku().DESELECTDIM,Cu=Ah(),J6=qu().counter,KX=Au().modHalf,ci=yn().isArrayOrTypedArray,Ol=yn().isTypedArraySpec,Yl=yn().decodeTypedArraySpec;ln.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ci(e)?e:Ol(e)?Yl(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){Ol(e)&&(e=Yl(e)),!Yy(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}Ol(e)&&(e=Yl(e)),e%1||!Yy(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){Ol(e)&&(e=Yl(e)),X6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return X6(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(ZX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Ol(e)&&(e=Yl(e)),e==="auto"?r.set("auto"):Yy(e)?r.set(KX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||J6(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&ci(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:!!J6(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 K6={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},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:{}}},Q6={};function j6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),j6(a,r[t]))}}j6(K6,Q6);e7.exports={configAttributes:K6,dfltConfig:Q6}});var Gy=O((Yme,r7)=>{"use strict";var Vy=kr(),QX=zr(),Dc=[];r7.exports=function(e,r){if(Dc.indexOf(e)!==-1)return;Dc.push(e);var t=1e3;QX(r)?t=r:r==="long"&&(t=3e3);var a=Vy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Dc);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Dc.indexOf(o);s!==-1&&Dc.splice(s,1),Vy.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Vy.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var Su=Ko().dfltConfig,Uy=Gy(),Wy=t7.exports={};Wy.log=function(){var e;if(Su.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Wy.warn=function(){var e;if(Su.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Wy.error=function(){var e;if(Su.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Dh=O((Gme,a7)=>{"use strict";a7.exports=function(){}});var Xy=O((Ume,n7)=>{"use strict";n7.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{i7.exports=jX;function jX(){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 s7=O((Xme,o7)=>{o7.exports=eZ;function eZ(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 f7=O((Zme,u7)=>{u7.exports=rZ;function rZ(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=O((Jme,c7)=>{c7.exports=tZ;function tZ(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 h7=O(($me,v7)=>{v7.exports=aZ;function aZ(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 p7=O((Kme,d7)=>{d7.exports=nZ;function nZ(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,F=_*H-w*N+x*R+A*E-k*D+M*S;return F?(F=1/F,e[0]=(o*H-s*N+u*R)*F,e[1]=(n*N-a*H-i*R)*F,e[2]=(m*M-y*k+b*A)*F,e[3]=(h*k-c*M-d*A)*F,e[4]=(s*E-l*H-u*D)*F,e[5]=(t*H-n*E+i*D)*F,e[6]=(y*x-p*M-b*w)*F,e[7]=(f*M-h*x+d*w)*F,e[8]=(l*N-o*E+u*S)*F,e[9]=(a*E-t*N-i*S)*F,e[10]=(p*k-m*x+b*_)*F,e[11]=(c*x-f*k-d*_)*F,e[12]=(o*D-l*R-s*S)*F,e[13]=(t*R-a*D+n*S)*F,e[14]=(m*w-p*A-y*_)*F,e[15]=(f*A-c*w+h*_)*F,e):null}});var y7=O((Qme,m7)=>{m7.exports=iZ;function iZ(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 x7=O((jme,g7)=>{g7.exports=lZ;function lZ(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 _7=O((eye,b7)=>{b7.exports=oZ;function oZ(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 T7=O((rye,w7)=>{w7.exports=sZ;function sZ(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 M7=O((tye,A7)=>{A7.exports=uZ;function uZ(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 q7=O((aye,k7)=>{k7.exports=fZ;function fZ(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,F,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,F=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*F+w*Y,e[9]=h*H+y*F+x*Y,e[10]=d*H+b*F+A*Y,e[11]=p*H+_*F+k*Y,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var S7=O((nye,C7)=>{C7.exports=cZ;function cZ(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 D7=O((iye,L7)=>{L7.exports=vZ;function vZ(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 P7=O((lye,E7)=>{E7.exports=hZ;function hZ(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 z7=O((oye,R7)=>{R7.exports=dZ;function dZ(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 F7=O((sye,N7)=>{N7.exports=pZ;function pZ(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 H7=O((uye,I7)=>{I7.exports=mZ;function mZ(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 O7=O((fye,B7)=>{B7.exports=yZ;function yZ(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 V7=O((cye,Y7)=>{Y7.exports=gZ;function gZ(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 U7=O((vye,G7)=>{G7.exports=xZ;function xZ(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 X7=O((hye,W7)=>{W7.exports=bZ;function bZ(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 J7=O((dye,Z7)=>{Z7.exports=_Z;function _Z(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 K7=O((pye,$7)=>{$7.exports=wZ;function wZ(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 j7=O((mye,Q7)=>{Q7.exports=TZ;function TZ(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 rw=O((yye,ew)=>{ew.exports=AZ;function AZ(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 aw=O((gye,tw)=>{tw.exports=MZ;function MZ(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 iw=O((xye,nw)=>{var kZ=Zy();nw.exports=qZ;function qZ(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?kZ(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 ow=O((bye,lw)=>{lw.exports=CZ;function CZ(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=O((_ye,sw)=>{sw.exports={create:l7(),clone:s7(),copy:f7(),identity:Zy(),transpose:h7(),invert:p7(),adjoint:y7(),determinant:x7(),multiply:_7(),translate:T7(),scale:M7(),rotate:q7(),rotateX:S7(),rotateY:D7(),rotateZ:P7(),fromRotation:z7(),fromRotationTranslation:F7(),fromScaling:H7(),fromTranslation:O7(),fromXRotation:V7(),fromYRotation:U7(),fromZRotation:X7(),fromQuat:J7(),frustum:K7(),perspective:j7(),perspectiveFromFieldOfView:rw(),ortho:aw(),lookAt:iw(),str:ow()}});var Eh=O(Ot=>{"use strict";var SZ=Jy();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var LZ=kr(),uw=Qo(),DZ=Eh(),EZ=Jy();function PZ(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 RZ(e){var r=LZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function fw(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function zZ(e,r){cw("global",e,r)}function cw(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):uw.warn("addStyleRule failed"):uw.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function NZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&fw(t)}function FZ(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 IZ(e){var r=hw(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=vw(a);if(n){var i=DZ.convertCssMatrix(n);t=EZ.multiply(t,t,i)}}),t}function vw(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 hw(e){for(var r=[];HZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function HZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function BZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}dw.exports={getGraphDiv:PZ,isPlotDiv:RZ,removeElement:fw,addStyleRule:zZ,addRelatedStyleRule:cw,deleteRelatedStyleRule:NZ,setStyleOnHover:FZ,getFullTransformMatrix:IZ,getElementTransformMatrix:vw,getElementAndAncestors:hw,equalDomRects:BZ}});var Pc=O((Aye,pw)=>{"use strict";pw.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 vi=O((Mye,ww)=>{"use strict";var yw=mt().extendFlat,OZ=Bl(),gw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},xw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},YZ=gw.flags.slice().concat(["fullReplot"]),VZ=xw.flags.slice().concat("layoutReplot");ww.exports={traces:gw,layout:xw,traceFlags:function(){return mw(YZ)},layoutFlags:function(){return mw(VZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"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=O((qye,Tw)=>{"use strict";Tw.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 gn=O(Lu=>{"use strict";var{DATE_FORMAT_LINK:GZ,FORMAT_LINK:UZ}=Ky(),WZ=["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 XZ({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}".`,UZ,"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}".`,GZ,"for details on the date formatting syntax.",WZ].join(" ")}Lu.templateFormatStringDescription=XZ;Lu.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Xo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lu.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Xo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Lu.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Lu.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zh=O((Lye,Sw)=>{"use strict";function Vl(e,r){return r?r.d2l(e):e}function Aw(e,r){return r?r.l2d(e):e}function ZZ(e){return e.x0}function JZ(e){return e.x1}function $Z(e){return e.y0}function KZ(e){return e.y1}function Mw(e){return e.x0shift||0}function kw(e){return e.x1shift||0}function qw(e){return e.y0shift||0}function Cw(e){return e.y1shift||0}function Ph(e,r){return Vl(e.x1,r)+kw(e)-Vl(e.x0,r)-Mw(e)}function Rh(e,r,t){return Vl(e.y1,t)+Cw(e)-Vl(e.y0,t)-qw(e)}function QZ(e,r){return Math.abs(Ph(e,r))}function jZ(e,r,t){return Math.abs(Rh(e,r,t))}function eJ(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 rJ(e,r){return Aw((Vl(e.x1,r)+kw(e)+Vl(e.x0,r)+Mw(e))/2,r)}function tJ(e,r,t){return Aw((Vl(e.y1,t)+Cw(e)+Vl(e.y0,t)+qw(e))/2,t)}function aJ(e,r,t){return e.type!=="line"?void 0:Rh(e,r,t)/Ph(e,r)}var nJ=["x0","x1","y0","y1","dy","height","ycenter"],iJ=["x0","x1","y0","y1","dx","width","xcenter"];Sw.exports={x0:ZZ,x1:JZ,y0:$Z,y1:KZ,slope:aJ,dx:Ph,dy:Rh,width:QZ,height:jZ,length:eJ,xcenter:rJ,ycenter:tJ,simpleXVariables:nJ,simpleYVariables:iJ}});var Ew=O((Dye,Dw)=>{"use strict";var lJ=vi().overrideAll,jo=an(),Lw=aa(),oJ=hi().dash,Gl=mt().extendFlat,{shapeTexttemplateAttrs:sJ,templatefallbackAttrs:uJ}=gn(),fJ=zh();Dw.exports=lJ({newshape:{visible:Gl({},jo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Gl({},jo.legend,{}),legendgroup:Gl({},jo.legendgroup,{}),legendgrouptitle:{text:Gl({},jo.legendgrouptitle.text,{}),font:Lw({})},legendrank:Gl({},jo.legendrank,{}),legendwidth:Gl({},jo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Gl({},oJ,{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({},jo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:sJ({newshape:!0},{keys:Object.keys(fJ)}),texttemplatefallback:uJ({editType:"arraydraw"}),font:Lw({}),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 Rw=O((Eye,Pw)=>{"use strict";var cJ=hi().dash,vJ=mt().extendFlat;Pw.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:vJ({},cJ,{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((Pye,zw)=>{"use strict";zw.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 Du=O((Rye,Hw)=>{"use strict";var Qy=aa(),hJ=Pc(),Fh=In(),Nw=Ew(),Fw=Rw(),dJ=Nh(),Iw=mt().extendFlat,Ih=Qy({editType:"calc"});Ih.family.dflt='"Open Sans", verdana, arial, sans-serif';Ih.size.dflt=12;Ih.color.dflt=Fh.defaultLine;Hw.exports={font:Ih,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:Iw(dJ({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:Nw.newshape,activeshape:Nw.activeshape,newselection:Fw.newselection,activeselection:Fw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Iw({},hJ.transition,{editType:"none"})}});var Bw=O(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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 Eu=Qo(),Ow=Dh(),Yw=Xy(),pJ=Bl(),mJ=Ec().addStyleRule,Vw=mt(),yJ=an(),gJ=Du(),xJ=Vw.extendFlat,jy=Vw.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 MJ=wu().timeFormat,e8=zr(),eg=Qo(),Wl=Au().mod,zu=wt(),Hn=zu.BADNUM,on=zu.ONEDAY,Rc=zu.ONEHOUR,Ul=zu.ONEMIN,Ru=zu.ONESEC,zc=zu.EPOCHJD,cl=gr(),Zw=wu().utcFormat,kJ=/^\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,qJ=/^\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,Jw=new Date().getFullYear()-70;function vl(e){return e&&cl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Yt.dateTick0=function(e,r){var t=CJ(e,!!r);if(r<2)return t;var a=Yt.dateTime2ms(t,e);return a+=on*(r-1),Yt.ms2DateTime(a,0,e)};function CJ(e,r){return vl(e)?r?cl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:cl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Yt.dfltRange=function(e){return vl(e)?cl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Yt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Bh,Oh;Yt.dateTime2ms=function(e,r){if(Yt.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Ru+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Wl(a-t+n/2,n)}return e=Number(e)-t,e>=Bh&&e<=Oh?e:Hn}if(typeof e!="string"&&typeof e!="number")return Hn;e=String(e);var i=vl(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?qJ:kJ);if(!s)return Hn;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 Hn;u=Number(u);var m;try{var y=cl.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 Hn}return m?(m.toJD()-zc)*on+h*Rc+d*Ul+p*Ru:Hn}u.length===2?u=(Number(u)+2e3-Jw)%100+Jw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Hn:_.getTime()+p*Ru};Bh=Yt.MIN_MS=Yt.dateTime2ms("-9999");Oh=Yt.MAX_MS=Yt.dateTime2ms("9999-12-31 23:59:59.9999");Yt.isDateTime=function(e,r){return Yt.dateTime2ms(e,r)!==Hn};function Pu(e,r){return String(e+Math.pow(10,r)).slice(1)}var Hh=90*on,$w=3*Rc,Kw=5*Ul;Yt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Bh&&e<=Oh))return Hn;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(vl(t)){var c=Math.floor(n/on)+zc,h=Math.floor(Wl(e,on));try{i=cl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Zw("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+on&&e<=Oh-on))return Hn;var r=Math.floor(Wl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=MJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return r8(a,n,i,l,o)};function r8(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Pu(r,2)+":"+Pu(t,2),(a||n)&&(e+=":"+Pu(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Pu(n,i)}return e}Yt.cleanDate=function(e,r,t){if(e===Hn)return r;if(Yt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(vl(t))return eg.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Yt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Yt.isDateTime(e,t))return eg.error("unrecognized date",e),r;return e};var SJ=/%\d?f/g,LJ=/%h/g,DJ={1:"1",2:"1",3:"2",4:"2"};function Qw(e,r,t,a){e=e.replace(SJ,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(LJ,function(){return DJ[t("%q")(n)]}),vl(a))try{e=cl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var EJ=[59,59.9,59.99,59.999,59.9999];function PJ(e,r){var t=Wl(e+.05,on),a=Pu(Math.floor(t/Rc),2)+":"+Pu(Wl(Math.floor(t/Ul),60),2);if(r!=="M"){e8(r)||(r=0);var n=Math.min(Wl(e/Ru,60),EJ[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Yt.formatDate=function(e,r,t,a,n,i){if(n=vl(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 PJ(e,t)+` -`+Qw(i.dayMonthYear,e,a,n);return Qw(r,e,a,n)};var jw=3*on;Yt.incrementMonth=function(e,r,t){t=vl(t)&&t;var a=Wl(e,on);if(e=Math.round(e-a),t)try{var n=Math.round(e/on)+zc,i=cl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-zc)*on+a}catch(s){eg.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+jw);return o.setUTCMonth(o.getUTCMonth()+r)+a-jw};Yt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=vl(r)&&cl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";a8.exports=function(r){return r}});var ag=O(dl=>{"use strict";var RJ=zr(),zJ=Qo(),NJ=rg(),FJ=wt().BADNUM,tg=1e-9;dl.findBin=function(e,r,t){if(RJ(r.start))return t?Math.ceil((e-r.start)/r.size-tg)-1:Math.floor((e-r.start)/r.size+tg);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?IJ:HJ:s=t?OJ:BJ,e+=l*tg*(t?-1:1)*(l>=0?1:-1);a90&&zJ.log("Long binary search..."),a-1};function IJ(e,r){return er}function OJ(e,r){return e>=r}dl.sorterAsc=function(e,r){return e-r};dl.sorterDes=function(e,r){return r-e};dl.distinctVals=function(e){var r=e.slice();r.sort(dl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===FJ;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}};dl.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()};dl.findIndexOfMin=function(e,r){r=r||NJ;for(var t=1/0,a,n=0;n{"use strict";n8.exports=function(r){return Object.keys(r).sort()}});var i8=O(Vt=>{"use strict";var Nc=zr(),YJ=yn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Nc(r)||(r=!1),YJ(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 f8=O((Vye,u8)=>{"use strict";var l8=Au(),ig=l8.mod,VJ=l8.modHalf,Fc=Math.PI,Xl=2*Fc;function GJ(e){return e/180*Fc}function UJ(e){return e/Fc*180}function lg(e){return Math.abs(e[1]-e[0])>Xl-1e-14}function o8(e,r){return VJ(r-e,Xl)}function WJ(e,r){return Math.abs(o8(e,r))}function s8(e,r){if(lg(r))return!0;var t,a;r[0]a&&(a+=Xl);var n=ig(e,Xl),i=n+Xl;return n>=t&&n<=a||i>=t&&i<=a}function XJ(e,r,t,a){if(!s8(r,a))return!1;var n,i;return t[0]=n&&e<=i}function og(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=lg([t,a]),s,u,f,c,d;o?(s=0,u=Fc,f=Xl):t{"use strict";es.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};es.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};es.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};es.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};es.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};es.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var h8=O(rs=>{"use strict";var sg=Au().mod;rs.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,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}}rs.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,d=s-l,h=u*u+f*f,p=c*c+d*d,m=Math.min(Od(u,f,h,i-r,l-t),Od(u,f,h,o-r,s-t),Od(c,d,p,r-i,t-l),Od(c,d,p,a-i,n-l));return Math.sqrt(m)};function Od(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 Yd,ug,v8;rs.getTextLocation=function(r,t,a,n){if((r!==ug||n!==v8)&&(Yd={},ug=r,v8=n),Yd[a])return Yd[a];var i=r.getPointAtLength(sg(a-n/2,t)),l=r.getPointAtLength(sg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(sg(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 Yd[a]=c,c};rs.clearLocationCache=function(){ug=null};rs.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}};rs.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 Vd=O(Ic=>{"use strict";var hl={};Ic.throttle=function(r,t,a){var n=hl[r],i=Date.now();if(!n){for(var l in hl)hl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Ic.done=function(e){var r=hl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ic.clear=function(e){if(e)p8(hl[e]),delete hl[e];else for(var r in hl)Ic.clear(r)};function p8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var y8=O((Xye,m8)=>{"use strict";m8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var g8=O((Zye,Gd)=>{"use strict";Gd.exports=fg;Gd.exports.isMobile=fg;Gd.exports.default=fg;var KJ=/(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,QJ=/CrOS/,jJ=/android|ipad|playbook|silk/i;function fg(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=KJ.test(r)&&!QJ.test(r)||!!e.tablet&&jJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var b8=O((Jye,x8)=>{"use strict";var e$=zr(),r$=g8();x8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=t$(),typeof t!="string")return!0;var a=r$({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(e$(u)&&(u=+u),u>=13)return!0}}}return a};function t$(){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 w8=O(($ye,_8)=>{"use strict";var a$=kr();_8.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]=a$.select(this)}),n}});var A8=O((Kye,T8)=>{"use strict";var n$=gr();T8.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=n$.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var k8=O((Qye,M8)=>{"use strict";M8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";q8.exports=function(r){for(var t=o$(r)?l$:i$,a=[],n=0;n{"use strict";S8.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 E8=O((rge,D8)=>{"use strict";var s$=zr(),u$=wt().BADNUM,f$=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;D8.exports=function(r){return typeof r=="string"&&(r=r.replace(f$,"")),s$(r)?Number(r):u$}});var Re=O((tge,U8)=>{"use strict";var Hc=kr(),c$=wu().utcFormat,v$=Py().format,I8=zr(),H8=wt(),B8=H8.FP_SAFE,d$=-B8,P8=H8.BADNUM,he=U8.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 R8={};he.warnBadFormat=function(e){var r=String(e);R8[r]||(R8[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=v$(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=Td();he.keyedContainer=M6();he.relativeAttr=q6();he.isPlainObject=Bl();he.toLogRange=Md();he.relinkPrivateKeys=D6();var Zl=yn();he.isArrayBuffer=Zl.isArrayBuffer;he.isTypedArray=Zl.isTypedArray;he.isArrayOrTypedArray=Zl.isArrayOrTypedArray;he.isArray1D=Zl.isArray1D;he.ensureArray=Zl.ensureArray;he.concat=Zl.concat;he.maxRowLength=Zl.maxRowLength;he.minRowLength=Zl.minRowLength;var O8=Au();he.mod=O8.mod;he.modHalf=O8.modHalf;var Jl=$6();he.valObjectMeta=Jl.valObjectMeta;he.coerce=Jl.coerce;he.coerce2=Jl.coerce2;he.coerceFont=Jl.coerceFont;he.coercePattern=Jl.coercePattern;he.coerceHoverinfo=Jl.coerceHoverinfo;he.coerceSelectionMarkerOpacity=Jl.coerceSelectionMarkerOpacity;he.validate=Jl.validate;var xn=t8();he.dateTime2ms=xn.dateTime2ms;he.isDateTime=xn.isDateTime;he.ms2DateTime=xn.ms2DateTime;he.ms2DateTimeLocal=xn.ms2DateTimeLocal;he.cleanDate=xn.cleanDate;he.isJSDate=xn.isJSDate;he.formatDate=xn.formatDate;he.incrementMonth=xn.incrementMonth;he.dateTick0=xn.dateTick0;he.dfltRange=xn.dfltRange;he.findExactDates=xn.findExactDates;he.MIN_MS=xn.MIN_MS;he.MAX_MS=xn.MAX_MS;var ts=ag();he.findBin=ts.findBin;he.sorterAsc=ts.sorterAsc;he.sorterDes=ts.sorterDes;he.distinctVals=ts.distinctVals;he.roundUp=ts.roundUp;he.sort=ts.sort;he.findIndexOfMin=ts.findIndexOfMin;he.sortObjectKeys=ng();var pl=i8();he.aggNums=pl.aggNums;he.len=pl.len;he.mean=pl.mean;he.geometricMean=pl.geometricMean;he.median=pl.median;he.midRange=pl.midRange;he.variance=pl.variance;he.stdev=pl.stdev;he.interp=pl.interp;var hi=Dd();he.init2dArray=hi.init2dArray;he.transposeRagged=hi.transposeRagged;he.dot=hi.dot;he.translationMatrix=hi.translationMatrix;he.rotationMatrix=hi.rotationMatrix;he.rotationXYMatrix=hi.rotationXYMatrix;he.apply3DTransform=hi.apply3DTransform;he.apply2DTransform=hi.apply2DTransform;he.apply2DTransform2=hi.apply2DTransform2;he.convertCssMatrix=hi.convertCssMatrix;he.inverseTransformMatrix=hi.inverseTransformMatrix;var Hi=f8();he.deg2rad=Hi.deg2rad;he.rad2deg=Hi.rad2deg;he.angleDelta=Hi.angleDelta;he.angleDist=Hi.angleDist;he.isFullCircle=Hi.isFullCircle;he.isAngleInsideSector=Hi.isAngleInsideSector;he.isPtInsideSector=Hi.isPtInsideSector;he.pathArc=Hi.pathArc;he.pathSector=Hi.pathSector;he.pathAnnulus=Hi.pathAnnulus;var Fu=c8();he.isLeftAnchor=Fu.isLeftAnchor;he.isCenterAnchor=Fu.isCenterAnchor;he.isRightAnchor=Fu.isRightAnchor;he.isTopAnchor=Fu.isTopAnchor;he.isMiddleAnchor=Fu.isMiddleAnchor;he.isBottomAnchor=Fu.isBottomAnchor;var Iu=h8();he.segmentsIntersect=Iu.segmentsIntersect;he.segmentDistance=Iu.segmentDistance;he.getTextLocation=Iu.getTextLocation;he.clearLocationCache=Iu.clearLocationCache;he.getVisibleSegment=Iu.getVisibleSegment;he.findPointOnPath=Iu.findPointOnPath;var Xd=mt();he.extendFlat=Xd.extendFlat;he.extendDeep=Xd.extendDeep;he.extendDeepAll=Xd.extendDeepAll;he.extendDeepNoArrays=Xd.extendDeepNoArrays;var cg=Qo();he.log=cg.log;he.warn=cg.warn;he.error=cg.error;var h$=qu();he.counterRegex=h$.counter;var vg=Vd();he.throttle=vg.throttle;he.throttleDone=vg.done;he.clearThrottle=vg.clear;var pi=Ec();he.getGraphDiv=pi.getGraphDiv;he.isPlotDiv=pi.isPlotDiv;he.removeElement=pi.removeElement;he.addStyleRule=pi.addStyleRule;he.addRelatedStyleRule=pi.addRelatedStyleRule;he.deleteRelatedStyleRule=pi.deleteRelatedStyleRule;he.setStyleOnHover=pi.setStyleOnHover;he.getFullTransformMatrix=pi.getFullTransformMatrix;he.getElementTransformMatrix=pi.getElementTransformMatrix;he.getElementAndAncestors=pi.getElementAndAncestors;he.equalDomRects=pi.equalDomRects;he.clearResponsive=y8();he.preserveDrawingBuffer=b8();he.makeTraceGroups=w8();he._=A8();he.notifier=Gy();he.filterUnique=k8();he.filterVisible=C8();he.pushUnique=Xy();he.increment=L8();he.cleanNumber=E8();he.ensureNumber=function(r){return I8(r)?(r=Number(r),r>B8||r=r?!1:I8(e)&&e>=0&&e%1===0};he.noop=Ld();he.identity=rg();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;ny$.test(window.navigator.userAgent);var g$=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=g$.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 Hc.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 G8=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return G8.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var _$={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>dg(hd(Xo({},e),{opts:_$}));var w$={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>dg(hd(Xo({},e),{opts:w$}));var T$=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function A$(e){var r=e.match(T$);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var M$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>dg(hd(Xo({},e),{opts:M$}));var z8=/^[:|\|]/;function dg({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=A$(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(G8.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<=N8,u=o>=Wd&&o<=N8;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 Nu=2e9;he.seedPseudoRandom=function(){Nu=2e9};he.pseudoRandom=function(){var e=Nu;return Nu=(69069*Nu+1)%4294967296,Math.abs(Nu-e)<429496729?he.pseudoRandom():Nu/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 F8=he.getFirefoxVersion(),k$=F8!==null&&F8<86;he.getPositionFromD3Event=function(){return k$?[Hc.event.layerX,Hc.event.layerY]:[Hc.event.offsetX,Hc.event.offsetY]}});var Z8=O(()=>{"use strict";var q$=Re(),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(hg in W8)X8=hg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),q$.addStyleRule(X8,W8[hg]);var X8,hg});var pg=O((lge,J8)=>{J8.exports=!0});var yg=O((oge,$8)=>{"use strict";var C$=pg(),mg;typeof window.matchMedia=="function"?mg=!window.matchMedia("(hover: none)").matches:mg=C$;$8.exports=mg});var $d=O((sge,gg)=>{"use strict";var Hu=typeof Reflect=="object"?Reflect:null,K8=Hu&&typeof Hu.apply=="function"?Hu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Zd;Hu&&typeof Hu.ownKeys=="function"?Zd=Hu.ownKeys:Object.getOwnPropertySymbols?Zd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Zd=function(r){return Object.getOwnPropertyNames(r)};function S$(e){console&&console.warn&&console.warn(e)}var j8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}gg.exports=yt;gg.exports.once=P$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var Q8=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(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return Q8},set:function(e){if(typeof e!="number"||e<0||j8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Q8=e}});yt.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};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||j8(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 e9(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return e9(this)};yt.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")K8(s,this,t);else for(var u=s.length,f=i9(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,S$(o)}return e}yt.prototype.addListener=function(r,t){return r9(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return r9(this,r,t,!0)};function L$(){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 t9(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=L$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return Jd(t),this.on(r,t9(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return Jd(t),this.prependListener(r,t9(this,r,t)),this};yt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Jd(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():D$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.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 a9(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?E$(n):i9(n,n.length)}yt.prototype.listeners=function(r){return a9(this,r,!0)};yt.prototype.rawListeners=function(r){return a9(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):n9.call(e,r)};yt.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}yt.prototype.eventNames=function(){return this._eventsCount>0?Zd(this._events):[]};function i9(e,r){for(var t=new Array(r),a=0;a{"use strict";var xg=$d().EventEmitter,z$={init:function(e){if(e._ev instanceof xg)return e;var r=new xg,t=new xg;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 s9=Re(),N$=Ko().dfltConfig;function F$(e,r){for(var t=[],a,n=0;nN$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ml.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ml.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ml.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";c9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Yu=O(jt=>{"use strict";var Bn=gr(),Oc=Re(),Qd=an(),_g=Du(),I$=bg(),H$=Pc(),B$=Ko().configAttributes,v9=vi(),mi=Oc.extendDeepAll,Bu=Oc.isPlainObject,O$=Oc.isArrayOrTypedArray,jd=Oc.nestedProperty,Y$=Oc.valObjectMeta,wg="_isSubplotObj",eh="_isLinkedToArray",V$="_arrayAttrRegexps",h9="_deprecated",Tg=[wg,eh,V$,h9];jt.IS_SUBPLOT_OBJ=wg;jt.IS_LINKED_TO_ARRAY=eh;jt.DEPRECATED=h9;jt.UNDERSCORE_ATTRS=Tg;jt.get=function(){var e={};return Bn.allTypes.forEach(function(r){e[r]=U$(r)}),{defs:{valObjects:Y$,metaKeys:Tg.concat(["description","role","editType","impliedEdits"]),editType:{traces:v9.traces,layout:v9.layout},impliedEdits:{}},traces:e,layout:W$(),frames:X$(),animation:Ou(H$),config:Ou(B$)}};jt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Tg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!jt.isValObject(l)&&Bu(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)O$(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(!Kd(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Kd(e){return e===Math.round(e)&&e>=0}function U$(e){var r,t;r=Bn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=mi({},Qd),i=mi({},r.attributes);jt.crawl(i,function(s,u,f,c,d){jd(n,d).set(void 0),s===void 0&&jd(i,d).set(void 0)}),mi(a,n),Bn.traceIs(e,"noOpacity")&&delete a.opacity,Bn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Bn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,mi(a,i),t.attributes&&mi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ou(a)};if(r.layoutAttributes){var o={};mi(o,r.layoutAttributes),l.layoutAttributes=Ou(o)}return r.animatable||jt.crawl(l,function(s){jt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function W$(){var e={},r,t;mi(e,_g);for(r in Bn.subplotsRegistry)if(t=Bn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Vu=Re(),Q$=an(),$l="templateitemname",Ag={name:{valType:"string",editType:"none"}};Ag[$l]={valType:"string",editType:"calc"};as.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Ag.name,r[$l]=Ag[$l],r};as.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=Vu.coerce(i,{},Q$,"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}};as.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Vu.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};as.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[y9(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[$l]=u[$l];if(!m9(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][$l]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?Vu.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)Vu.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var ia=O((hge,g9)=>{"use strict";var Yc=qu().counter;g9.exports={idRegex:{x:Yc("x","( domain)?"),y:Yc("y","( domain)?")},attrRegex:Yc("[xy]axis"),xAxisMatch:Yc("xaxis"),yAxisMatch:Yc("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(sn=>{"use strict";var j$=gr(),Mg=ia();sn.id2name=function(r){if(!(typeof r!="string"||!r.match(Mg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};sn.name2id=function(r){if(r.match(Mg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};sn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Mg.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":"")}};sn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=sn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};sn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function x9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function eK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function rK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}b9.exports={clearOutlineControllers:eK,clearOutline:rK}});var rh=O((yge,_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 kg=O(ah=>{"use strict";var th=gr(),gge=ia().SUBPLOT_PATTERN;ah.getSubplotCalcData=function(e,r,t){var a=th.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var tK=gr(),Gu=Re();ns.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=ns.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){w9(e,l,n.cache),n.check=function(){if(i){var f=w9(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;Gu.isPlainObject(i)?qg(i,r,l,a+1):r(l,n,i)}})}});var zt=O((_ge,H9)=>{"use strict";var E9=kr(),nK=wu().timeFormatLocale,iK=Py().formatLocale,Vc=zr(),lK=Ry(),Xr=gr(),P9=Yu(),oK=lt(),fr=Re(),R9=br(),k9=wt().BADNUM,un=Xt(),sK=Kl().clearOutline,uK=rh(),Cg=Pc(),fK=bg(),cK=kg().getModuleCalcData,q9=fr.relinkPrivateKeys,is=fr._,Qe=H9.exports={};fr.extendFlat(Qe,Xr);Qe.attributes=an();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=aa();Qe.layoutAttributes=Du();var ih=M9();Qe.executeAPICommand=ih.executeAPICommand;Qe.computeAPICommandBindings=ih.computeAPICommandBindings;Qe.manageCommandObserver=ih.manageCommandObserver;Qe.hasSimpleAPICommandBindings=ih.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=fr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xr.getComponentMethod("annotations","draw")(e),Xr.getComponentMethod("legend","draw")(e),Xr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.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||fr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xr.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=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:R9.defaultLine,"pointer-events":"all"}).each(function(){var u=E9.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&&vK(e,i),l.text(i.text()&&o.text()?" - ":"")}};function vK(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=E9.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 dK=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],hK=["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||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:is(e,"Click to enter Plot title"),subtitle:is(e,"Click to enter Plot subtitle"),x:is(e,"Click to enter X axis title"),y:is(e,"Click to enter Y axis title"),colorbar:is(e,"Click to enter Colorscale title"),annotation:is(e,"new text")},n._traceWord=is(e,"trace");var d=C9(e,dK);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var h=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,d);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,_=m&&(y||b);_?Qe.plotAutoSize(e,i,n):m&&Qe.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=yK(d,n.separators),n._extraFormat=C9(e,hK),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=mK(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=pK(l,s),Qe.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(Xr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),F=N,Y=H;F&&!Y?a._bgLayer.remove():Y&&!F&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&sK({_fullLayout:a}),gK(o,n),q9(n,a),Xr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,G={},V;for(V in U)G[V]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,d=Qe.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}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Xr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Xr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(fr.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 Qe.doAutoMargin(e)}};function bK(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=un.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={}),z9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.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"&&Vc(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,F=R.val,Y=R.size,U=t-l.r-l.l,G=a-l.t-l.b;for(var V in d){if(Vc(H)&&d[V].r){var B=d[V].r.val,J=d[V].r.size;if(B>N){var X=(H*B+(J-U)*N)/(B-N),ee=(J*(1-N)+(H-U)*(1-B))/(B-N);X+ee>s+u&&(s=X,u=ee)}}if(Vc(Y)&&d[V].t){var le=d[V].t.val,fe=d[V].t.size;if(le>F){var de=(Y*le+(fe-G)*F)/(le-F),Q=(fe*(1-F)+(Y-G)*(1-le))/(le-F);de+Q>c+f&&(c=de,f=Q)}}}}}var qe=fr.constrain(t-i.l-i.r,N9,p),ce=fr.constrain(a-i.t-i.b,F9,m),be=Math.max(0,t-qe),ge=Math.max(0,a-ce);if(be){var _e=(s+u)/be;_e>1&&(s/=_e,u/=_e)}if(ge){var W=(c+f)/ge;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&&(Qe.didMarginChange(o,n)||bK(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var j=3*(1+Object.keys(h).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 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(fr.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&&!fr.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=fr.isTypedArray(d);if((y||b)&&d.dtype&&d.shape){var _=d.bdata;return u({dtype:d.dtype,shape:d.shape,bdata:fr.isArrayBuffer(_)?lK.encode(_):_},h)}return y?d.map(function(w){return u(w,h)}):b?fr.simpleMap(d,fr.identity):fr.isJSDate(d)?fr.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)};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 Xr.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 Xr.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,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=un.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:k9,y:k9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(L9(t,a,n),o=0;o{"use strict";ls.xmlns="http://www.w3.org/2000/xmlns/";ls.svg="http://www.w3.org/2000/svg";ls.xlink="http://www.w3.org/1999/xlink";ls.svgAttrs={xmlns:ls.svg,"xmlns:xlink":ls.xlink}});var Aa=O((Tge,B9)=>{"use strict";B9.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 la=O(On=>{"use strict";var Zt=kr(),yl=Re(),AK=yl.strTranslate,Sg=os(),MK=Aa().LINE_SPACING,kK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;On.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(kK),i=Zt.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=HK(e.node(),a);s&&e.style("pointer-events","all"),On.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};LK(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]+")"+AK(-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 qK=/(<|<|<)/g,CK=/(>|>|>)/g;function SK(e){return e.replace(qK,"\\lt ").replace(CK,"\\gt ")}var O9=[["$","$"],["\\(","\\)"]];function LK(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,l,o,s=function(){return i=yl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:O9},displayAlign:"left"})},u=function(){i=yl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=O9},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-"+yl.randstr({},64);o=Zt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(SK(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)yl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),A;a===2?A=Zt.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 U9={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"},DK={sub:"0.3em",sup:"-0.6em"},EK={sub:"-0.21em",sup:"0.42em"},Y9="\u200B",V9=["http:","https:","mailto:","",void 0,":"],W9=On.NEWLINES=/(\r\n?|\n)/g,Dg=/(<[^<>]*>)/,Eg=/<(\/?)([^ >]*)(\s+(.*))?>/i,PK=//i;On.BR_TAG_ALL=//gi;var X9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Z9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,J9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,RK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ss(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&lh(a)}var zK=/(^|;)\s*color:/;On.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(Dg),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 NK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},FK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function lh(e){return e.replace(FK,function(r,t){var a;return t.charAt(0)==="#"?a=IK(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=NK[t],a||r})}On.convertEntities=lh;function IK(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 HK(e,r){r=r.replace(W9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Sg.svg,"tspan");Zt.select(k).attr({class:"line",dy:i*MK+"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=PK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Dg),d=0;d{"use strict";var BK=kr(),sh=Fn(),Uc=zr(),oh=Re(),K9=br(),OK=Jo().isValid;function YK(e,r,t){var a=r?oh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(oh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function aT(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 iT=Ky(),GK=iT.FORMAT_LINK,UK=iT.DATE_FORMAT_LINK;function WK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Pg:lT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Pg(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: "+GK+"."].join(" ")}function lT(e,r){return Pg(e,r)+[" And for dates see: "+UK+".","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(" ")}oT.exports={axisHoverFormat:WK,descriptionOnlyNumbers:Pg,descriptionWithDates:lT}});var _n=O((Cge,AT)=>{"use strict";var sT=aa(),Uu=In(),TT=di().dash,zg=mt().extendFlat,uT=lt().templatedArray,qge=gn().templateFormatStringDescription,fT=yi().descriptionWithDates,XK=wt().ONEDAY,Bi=ia(),ZK=Bi.HOUR_PATTERN,JK=Bi.WEEKDAY_PATTERN,Rg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},$K=zg({},Rg,{values:Rg.values.slice().concat(["sync"])});function cT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var vT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},hT={valType:"data_array",editType:"ticks"},pT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function mT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function yT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var gT={valType:"color",dflt:Uu.defaultLine,editType:"ticks"},xT={valType:"color",dflt:Uu.lightLine,editType:"ticks"};function bT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var _T=zg({},TT,{editType:"ticks"}),wT={valType:"boolean",editType:"ticks"};AT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Uu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:sT({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:[Bi.idRegex.x.toString(),Bi.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:[Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"calc"},rangebreaks:uT("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:[JK,ZK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:XK},editType:"calc"}),tickmode:$K,nticks:cT(),tick0:vT,dtick:dT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:hT,ticktext:{valType:"data_array",editType:"ticks"},ticks:pT,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:mT(),tickwidth:yT(),tickcolor:gT,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:zg({},TT,{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:sT({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:fT("tick label")},tickformatstops:uT("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:fT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Uu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:wT,gridcolor:xT,gridwidth:bT(),griddash:_T,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Uu.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:Uu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Rg,nticks:cT("minor"),tick0:vT,dtick:dT,tickvals:hT,ticks:pT,ticklen:mT("minor"),tickwidth:yT("minor"),tickcolor:gT,gridcolor:xT,gridwidth:bT("minor"),griddash:_T,showgrid:wT,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 uh=O((Sge,qT)=>{"use strict";var gt=_n(),MT=aa(),kT=mt().extendFlat,KK=vi().overrideAll;qT.exports=KK({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:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:kT({},gt.ticks,{dflt:""}),ticklabeloverflow:kT({},gt.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:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:MT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:MT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Wc=O((Dge,ST)=>{"use strict";var QK=uh(),jK=qu().counter,eQ=ng(),CT=Jo().scales,Lge=eQ(CT);function fh(e){return"`"+e+"`"}ST.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"?CT[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 "+fh(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=fh(u+h),_=fh(u+p),w=fh(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=QK),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:jK("coloraxis"),dflt:null,editType:"calc"}),M}});var Fg=O((Ege,LT)=>{"use strict";var rQ=mt().extendFlat,tQ=Wc(),Ng=Jo().scales;LT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ng.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ng.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ng.RdBu,editType:"calc"}},coloraxis:rQ({_isSubplotObj:!0,editType:"calc"},tQ("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Ig=O((Pge,DT)=>{"use strict";var aQ=Re();DT.exports=function(r){return aQ.isPlainObject(r.colorbar)}});var Og=O(Bg=>{"use strict";var Hg=zr(),ET=Re(),PT=wt(),nQ=PT.ONEDAY,iQ=PT.ONEWEEK;Bg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?nQ:1;if(!e)return i;if(Hg(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=Hg(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};Bg.tick0=function(e,r,t,a){if(r==="date")return ET.cleanDate(e,ET.dateTick0(t,a%iQ===0?1:0));if(!(a==="D1"||a==="D2"))return Hg(e)?Number(e):0}});var ch=O((zge,zT)=>{"use strict";var RT=Og(),lQ=Re().isArrayOrTypedArray,oQ=yn().isTypedArraySpec,sQ=yn().decodeTypedArraySpec;zT.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 oQ(w)&&(w=sQ(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=lQ(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=RT.dtick(d,n);s.tick0=RT.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 vh=O((Nge,FT)=>{"use strict";var Yg=Re(),NT=_n();FT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?NT.minor:NT,u=i?"minor.":"",f=Yg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Yg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),d=Yg.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 Vg=O((Fge,IT)=>{"use strict";IT.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 Yn=O((Ige,HT)=>{"use strict";var dh=Re(),uQ=lt();HT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=dh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=uQ.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Gg=Re(),fQ=br().contrast,BT=_n(),cQ=Vg(),vQ=Yn();OT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Gg.isPlainObject(l)||delete t.labelalias;var o=cQ(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?fQ(i.bgColor):f&&f!==BT.color.dflt?f:u.color;if(Gg.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");vQ(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:dQ}),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 dQ(e,r){function t(n,i){return Gg.coerce(e,r,BT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var ph=O((Bge,YT)=>{"use strict";var hQ=Vg();YT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=hQ(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Ug=O((Oge,VT)=>{"use strict";var Ql=Re(),pQ=lt(),mQ=ch(),yQ=vh(),gQ=hh(),xQ=ph(),bQ=uh();VT.exports=function(r,t,a){var n=pQ.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Ql.coerce(i,n,bQ,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),Ql.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Ql.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"),Ql.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Ql.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"),mQ(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"),xQ(i,n,l,"linear",S),gQ(i,n,l,"linear",S),yQ(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:M,E=Ql.extendFlat({},M,{family:D.family,size:Ql.bigFont(D.size)});Ql.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Wu=O((Yge,WT)=>{"use strict";var GT=zr(),Xg=Re(),_Q=Ig(),wQ=Ug(),UT=Jo().isValid,TQ=gr().traceIs;function Wg(e,r){var t=r.slice(0,r.length-1);return r?Xg.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=Wg(r,l),f=Wg(t,l),c=Wg(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=TQ(t,"contour")&&Xg.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(d),y[0]!==m&&(y[0]=!1,Xg.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=!UT(A)),k!==void 0&&(M=!UT(k)),n(l+"autocolorscale",M),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=_Q(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),wQ(u,f,a))}}});var $T=O((Vge,JT)=>{"use strict";var XT=Re(),AQ=lt(),ZT=Fg(),MQ=Wu();JT.exports=function(r,t){function a(c,d){return XT.coerce(r,t,ZT,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,d){return XT.coerce(i,l,ZT.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=AQ.newContainer(t,s,"coloraxis"),l._name=s,MQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var kQ=Re(),qQ=bn().hasColorscale,CQ=bn().extractOpts;KT.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?kQ.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=CQ(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 jT=zr(),Zg=Re(),SQ=bn().extractOpts;eA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Zg.nestedProperty(t,l).get():t,s=SQ(o),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return Zg.aggNums(Math.min,null,i)},p=function(){return Zg.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&jT(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&jT(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 Jg=O((Wge,rA)=>{"use strict";var mh=Jo(),Xu=bn();rA.exports={moduleType:"component",name:"colorscale",attributes:Wc(),layoutAttributes:Fg(),supplyLayoutDefaults:$T(),handleDefaults:Wu(),crossTraceDefaults:QT(),calc:Xc(),scales:mh.scales,defaultScale:mh.defaultScale,getScale:mh.get,isValidScale:mh.isValid,hasColorscale:Xu.hasColorscale,extractOpts:Xu.extractOpts,extractScale:Xu.extractScale,flipScale:Xu.flipScale,makeColorScaleFunc:Xu.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xu.makeColorScaleFuncFromTrace}});var wn=O((Xge,aA)=>{"use strict";var tA=Re(),LQ=yn().isTypedArraySpec;aA.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 tA.isPlainObject(r)&&(tA.isArrayOrTypedArray(r.size)||LQ(r.size))}}});var iA=O((Zge,nA)=>{"use strict";var DQ=zr();nA.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 DQ(s)&&s>0?Math.max(s,i):0}}});var Oi=O(Pa=>{"use strict";var yh=Re();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{sA.exports=NQ;var $g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function NQ(e){var r=[];return e.replace(zQ,function(t,a,n){var i=a.toLowerCase();for(n=IQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==$g[i])return n.unshift(a),r.push(n);if(n.length<$g[i])throw new Error("malformed path data");r.push([a].concat(n.splice(0,$g[i])))}}),r}var FQ=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function IQ(e){var r=e.match(FQ);return r?r.map(Number):[]}});var pA=O((Kge,hA)=>{"use strict";var HQ=Kg(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",uA=Math.sqrt(2),jl=Math.sqrt(3),Qg=Math.PI,jg=Math.cos,e2=Math.sin;hA.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Ze(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=Ze(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=Ze(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=Ze(e*.4,2),n=Ze(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=Ze(e*.8/uA,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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*jl/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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*jl/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=Ze(e*.924,2),n=Ze(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=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),c=Ze(a*.809,2),d=Ze(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(Cr(r))return qr;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(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=Ze(e*jl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*jl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*1.1,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(e*.7,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(e/uA,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=Ze(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=Ze(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=Ze(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=Ze(e*1.3,2),n=Ze(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=Ze(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=Ze(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=Ze(e*1.2,2),n=Ze(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=Ze(e/2,2),n=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Qg/2.5,n=2*e*jg(a),i=2*e*e2(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=Qg/4,n=2*e*jg(a),i=2*e*e2(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 fA,cA,vA,dA;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(vA===e&&dA===r&&fA===t)return cA;vA=e,dA=r,fA=t;function a(y,b){var _=jg(y),w=e2(y),x=b[0],A=b[1]+(r||0);return[x*_-A*w,x*w+A*_]}for(var n=e/180*Qg,i=0,l=0,o=HQ(t),s="",u=0;u{"use strict";var oa=kr(),nt=Re(),BQ=nt.numberFormat,vs=zr(),l2=Fn(),xh=gr(),Ma=br(),OQ=Jg(),Jc=nt.strTranslate,bh=la(),YQ=os(),VQ=Aa(),GQ=VQ.LINE_SPACING,MA=ku().DESELECTDIM,UQ=wn(),WQ=iA(),XQ=Oi().appendArrayPointValue,je=zA.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(Ma.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",r2(JQ(f))),s&&e.style("text-shadow",s==="auto"?bh.makeTextShadow(Ma.contrast(i)):r2(s)),u&&e.style("text-decoration-line",r2($Q(u)))};function r2(e){return e==="none"?void 0:e}var ZQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function JQ(e){return ZQ[e]}function $Q(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(vs(n)&&vs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Jc(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=oa.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=xh.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,oa.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!vs(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||"";Ma.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||"";oa.select(this).call(Ma.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 kA(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(SA,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(Ma.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=oa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};kA(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=oa.select(this);a[0].trace&&kA(n,a[0].trace,r,t)})};var mA=pA();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(mA).forEach(function(e){var r=mA[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 KQ=je.symbolNames.length,QQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(vs(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>=KQ||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?QQ:"")}var yA=BQ("~f"),CA={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=CA[a];return SA(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function SA(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=u2(e,t),c=s2(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):nt.isArrayOrTypedArray(o.color)?p=Ma.defaultLine:p=o.color,nt.isArrayOrTypedArray(l.color)&&(h=Ma.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(Ma.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,nt.isArrayOrTypedArray(w)&&(w=w[0],CA[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,F=A(x.size,e.i,8),Y=A(x.solidity,e.i,.3);D=D||e.mcc||nt.isArrayOrTypedArray(x.shape)||nt.isArrayOrTypedArray(x.path)||nt.isArrayOrTypedArray(x.bgcolor)||nt.isArrayOrTypedArray(x.fgcolor)||nt.isArrayOrTypedArray(x.size)||nt.isArrayOrTypedArray(x.solidity);var U=t.uid;D&&(U+="-"+e.i),je.pattern(r,"point",n,U,k,F,Y,e.mcc,x.fillmode,N,R,H)}else nt.isArrayOrTypedArray(h)?Ma.fill(r,h[e.i]):Ma.fill(r,h);m&&Ma.stroke(r,p)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),xh.traceIs(e,"symbols")&&(r.ms2mrc=UQ.isBubble(e)?WQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&nt.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;(nt.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:MA*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 xh.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:Ma.addOpacity(c,MA))},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){Ma.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,u2(l,r),s2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=oa.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=oa.select(this),u=i?nt.extractOption(o,r,"txt","texttemplate"):nt.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={};XQ(d,r,o.i),u=nt.texttemplateString({data:[d,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=DA(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(bh.convertToTspans,t).call(LA,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=oa.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=DA(a,r);Ma.fill(n,i);var s=xh.traceIs(r,"bar-like");LA(n,l,o,a.mrc2||a.mrc,s)})}};var gA=.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=RA;je.makeTester=function(){var e=nt.ensureSingleById(oa.select("body"),"svg","js-plotly-tester",function(t){t.attr(YQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=nt.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 a2=0,rj=1e4;je.bBox=function(e,r,t){t||(t=xA(e));var a;if(t){if(a=je.savedBBoxes[t],a)return nt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=xA(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 nt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),oa.select(u).attr("transform",null).call(bh.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 a2>=rj&&(je.savedBBoxes={},a2=0),t&&(je.savedBBoxes[t]=h),a2++,nt.extendFlat({},h)};function xA(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",o2(r,t))};function o2(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+=Jc(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 tj=/\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(tj,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var aj=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=oa.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(aj);r===1&&t===1?a=[]:a=[Jc(l,o),"scale("+r+","+t+")",Jc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function s2(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=s2;var Zc=Math.atan2,us=Math.cos,Ju=Math.sin;function bA(e,r){var t=r[0],a=r[1];return[t*us(e)-a*Ju(e),t*Ju(e)+a*us(e)]}var _A,wA,TA,AA,n2,i2;function u2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||nt.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=Zc(d[1]-n,d[0]-a),p=Zc(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,_=_A/180*Math.PI,w=wA/180*Math.PI,x=_-y,A=us(w)*Ju(x),k=Ju(w)*us(b)-us(w)*Ju(b)*us(x);m=-Zc(A,k)-Math.PI,_A=u,wA=f}var M=bA(h,[us(m),0]),S=bA(p,[Ju(m),0]);t=Zc(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(i2===r.uid&&e.i===n2+1)&&(t=null)}if(i==="previous"&&!r._geo)if(i2===r.uid&&e.i===n2+1&&vs(a)&&vs(n)){var D=a-TA,E=n-AA,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Zc(E,D)/Math.PI*180+90}else t=null}return TA=a,AA=n,n2=e.i,i2=r.uid,t}je.getMarkerAngle=u2});var $c=O((jge,HA)=>{"use strict";var $u=kr(),nj=zr(),ij=zt(),f2=gr(),ds=Re(),NA=ds.strTranslate,_h=Yr(),wh=br(),Ku=la(),FA=ku(),lj=Aa().OPPOSITE_SIDE,IA=/ [XY][0-9]* /,c2=1.6,v2=1.6;function oj(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:{}},F=(H.text||"").trim(),Y=!1,U=1,G=H.font,V=G.family,B=G.size,J=G.color,X=G.weight,ee=G.style,le=G.variant,fe=G.textcase,de=G.lineposition,Q=G.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ce=e._context.edits[qe];function be(Be,We){return Be===void 0||We===void 0?!1:Be.replace(IA," % ")===We.replace(IA," % ")}p===""?d=0:be(p,l)&&(ce||(p=""),d=.2,m=!0),R&&(F===""?U=0:be(F,N)&&(ce||(F=""),U=.2,Y=!0)),t._meta?p=ds.templateString(p,t._meta):a._meta&&(p=ds.templateString(p,a._meta));var ge=p||F||ce,_e;c||(c=ds.ensureSingle(a._infolayer,"g","g-"+r),_e=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(ge?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var j=null,Z=r+"-subtitle",oe=F||ce;if(R&&(j=c.selectAll("text."+Z).data(oe?[0]:[]),j.enter().append("text"),j.text(F).attr("class",Z),j.exit().remove()),!ge)return c;function me(Be,We){ds.syncOrAsync([xe,De],{title:Be,subtitle:We})}function xe(Be){var We=Be.title,Pe=Be.subtitle,Oe;!f&&_e&&(f={}),f?(Oe="",f.rotate&&(Oe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||_e)&&(Oe+=NA(0,(f.offset||0)-(_e||0)))):Oe=null,We.attr("transform",Oe);function Ue(Me){if(Me){var Ce=$u.select(Me.node().parentNode).select("."+Z);if(!Ce.empty()){var He=Me.node().getBBox();if(He.height){var Je=He.y+He.height+c2*B;Ce.attr("y",Je)}}}}if(We.style("opacity",d*wh.opacity(w)).call(_h.font,{color:wh.rgb(w),size:$u.round(_,2),family:b,weight:x,style:A,variant:k,textcase:M,shadow:D,lineposition:S}).attr(u).call(Ku.convertToTspans,e,Ue),Pe&&!Pe.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+c2*B:we.y+we.height+v2*B,Ne=ds.extendFlat({},u,{y:dr});Pe.attr("transform",Oe),Pe.style("opacity",U*wh.opacity(J)).call(_h.font,{color:wh.rgb(J),size:$u.round(B,2),family:V,weight:X,style:ee,variant:le,textcase:fe,shadow:Q,lineposition:de}).attr(Ne).call(Ku.convertToTspans,e)}return ij.previousPromises(e)}function De(Be){var We=Be.title,Pe=$u.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){Pe.attr("transform",null);var Oe=lj[s.side],Ue=s.side==="left"||s.side==="top"?-1:1,ie=nj(s.pad)?s.pad:2,we=_h.bBox(Pe.node()),$e={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Ne in dr)for(var Me in dr[Ne]){var Ce=dr[Ne][Me];$e[Me]=Math.max($e[Me],Ce)}var He={left:$e.l,top:$e.t,right:a.width-$e.r,bottom:a.height-$e.b},Je=s.maxShift||Ue*(He[s.side]-we[s.side]),Ge=0;if(Je<0)Ge=Je;else{var Xe=s.offsetLeft||0,lr=s.offsetTop||0;we.left-=Xe,we.right-=Xe,we.top-=lr,we.bottom-=lr,s.selection.each(function(){var Ke=_h.bBox(this);ds.bBoxIntersect(we,Ke,ie)&&(Ge=Math.max(Ge,Ue*(Ke[s.side]-we[Oe])+ie))}),Ge=Math.min(Je,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||Je<0){var tr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];Pe.attr("transform",NA(tr[0],tr[1]))}}}W.call(me,j);function ze(Be,We){Be.text(We).on("mouseover.opacity",function(){$u.select(this).transition().duration(FA.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){$u.select(this).transition().duration(FA.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?W.on(".opacity",null):(ze(W,l),m=!0),W.call(Ku.makeEditable,{gd:e}).on("edit",function(Be){o!==void 0?f2.call("_guiRestyle",e,i,Be,o):f2.call("_guiRelayout",e,i,Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Be){this.text(Be||" ").call(Ku.positionText,u.x,u.y)}),R)){if(R&&!p){var Se=W.node().getBBox(),Ie=Se.y+Se.height+v2*B;j.attr("y",Ie)}F?j.on(".opacity",null):(ze(j,N),Y=!0),j.call(Ku.makeEditable,{gd:e}).on("edit",function(Be){f2.call("_guiRelayout",e,"title.subtitle.text",Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Be){this.text(Be||" ").call(Ku.positionText,j.attr("x"),j.attr("y"))})}return W.classed("js-placeholder",m),j&&!j.empty()&&j.classed("js-placeholder",Y),c}HA.exports={draw:oj,SUBTITLE_PADDING_EM:v2,SUBTITLE_PADDING_MATHJAX_EM:c2}});var Lh=O((e2e,GA)=>{"use strict";var sj=kr(),uj=wu().utcFormat,ot=Re(),fj=ot.numberFormat,Yi=zr(),eo=ot.cleanNumber,cj=ot.ms2DateTime,BA=ot.dateTime2ms,Vi=ot.ensureNumber,OA=ot.isArrayOrTypedArray,ro=wt(),Th=ro.FP_SAFE,gi=ro.BADNUM,vj=ro.LOG_CLIP,dj=ro.ONEWEEK,Ah=ro.ONEDAY,Mh=ro.ONEHOUR,YA=ro.ONEMIN,VA=ro.ONESEC,kh=Xt(),Sh=ia(),qh=Sh.HOUR_PATTERN,Ch=Sh.WEEKDAY_PATTERN;function Kc(e){return Math.pow(10,e)}function d2(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*vj*Math.abs(k-M))}else return gi}function l(x,A,k,M){if((M||{}).msUTC&&Yi(x))return+x;var S=BA(x,k||r.calendar);if(S===gi)if(Yi(x)){x=+x;var D=Math.floor(ot.mod(x+.05,1)*10),E=Math.round(x-D/10);S=BA(new Date(E))+D/10}else return gi;return S}function o(x,A,k){return cj(x,A,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(d2(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 gi}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:Vi,r.l2c=r.type==="log"?Kc:Vi,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 Kc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=eo,r.c2d=r.c2r=r.l2d=r.l2r=Vi,r.d2p=r.r2p=function(x){return r.l2p(eo(x))},r.p2d=r.p2r=b,r.cleanPos=Vi):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(eo(x),A)},r.r2d=r.r2c=function(x){return Kc(eo(x))},r.d2c=r.r2l=eo,r.c2d=r.l2r=Vi,r.c2r=i,r.l2d=Kc,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return Kc(b(x))},r.r2p=function(x){return r.l2p(eo(x))},r.p2r=b,r.cleanPos=Vi):r.type==="date"?(r.d2r=r.r2d=ot.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 ot.cleanDate(x,gi,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=Vi,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:Vi(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=Vi,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:Vi(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[kh.id2name(D)];A=A.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(M[D?0:1]=k),M[0]===M[1]){var R=r.l2r(A),N=r.l2r(k);if(A!==void 0){var H=R+1;k!==void 0&&(H=Math.min(H,N)),M[D?1:0]=H}if(k!==void 0){var F=N+1;A!==void 0&&(F=Math.max(F,R)),M[D?0:1]=F}}}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var k=ot.nestedProperty(r,x).get(),M,S;if(r.type==="date"?S=ot.dfltRange(r.calendar):n==="y"?S=Sh.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=A.dfltRange||Sh.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){ot.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=ot.cleanDate(k[0],gi,r.calendar),k[1]=ot.cleanDate(k[1],gi,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!ot.isDateTime(k[M],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=ot.constrain(r.r2l(k[0]),ot.MIN_MS+1e3,ot.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Yi(k[M]))if(!(D||E)&&Yi(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=S;break}if(k[M]<-Th?k[M]=-Th:k[M]>Th&&(k[M]=Th),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=kh.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&&(F=!F),F&&r._rangebreaks.reverse();var Y=F?-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=Q.min&&(eeQ.max&&(Q.max=le),fe=!1)}fe&&E.push({min:ee,max:le})}};for(k=0;k{"use strict";var UA=zr(),h2=Re(),hj=wt().BADNUM,Dh=h2.isArrayOrTypedArray,pj=h2.isDateTime,mj=h2.cleanNumber,WA=Math.round;ZA.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Dh(n)&&!n.length)return"-";if(!i&&_j(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function XA(e){return Math.max(1,(e-1)/1e3)}function bj(e,r){for(var t=e.length,a=XA(t),n=0,i=0,l={},o=0;on*2}function _j(e){return Dh(e[0])&&Dh(e[1])}});var Qc=O((t2e,tM)=>{"use strict";var wj=kr(),QA=zr(),to=Re(),Eh=wt().FP_SAFE,Tj=gr(),Aj=Yr(),jA=Xt(),Mj=jA.getFromId,kj=jA.isLinked;tM.exports={applyAutorangeOptions:rM,getAutoRange:m2,makePadFn:y2,doAutoRange:Cj,findExtremes:Sj,concatExtremes:b2};function m2(e,r){var t,a,n=[],i=e._fullLayout,l=y2(i,r,0),o=y2(i,r,1),s=b2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return to.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(G,V){return Math.max(G,o(V))}if(c===d){var H=c-1,F=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,F)]:n=[H,F]}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-JA(r,k.val,M.val))/(w-l(S)-o(D)),n=[S.val-A*l(S),D.val+A*o(D)];return n=rM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),to.simpleMap(n,r.l2r||Number)}function JA(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-Eh&&(_=d),d>w&&d=R;c--)E(c);return{min:a,max:n,opts:t}}function g2(e,r,t,a){eM(e,r,t,a,Lj)}function x2(e,r,t,a){eM(e,r,t,a,Dj)}function eM(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 KA(e){return QA(e)&&Math.abs(e)=r}function Ej(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Ph(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Ph(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Pj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Ph(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Ph(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Ph(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=Ej(t,r),a=Pj(a,r),[t,a]}});var Zr=O((n2e,MM)=>{"use strict";var Vn=kr(),Jt=zr(),Qu=zt(),ev=gr(),xr=Re(),ju=xr.strTranslate,hs=la(),Rj=$c(),rv=br(),Tn=Yr(),zj=_n(),aM=Og(),a2e=ia(),ka=wt(),Nj=ka.ONEMAXYEAR,Nh=ka.ONEAVGYEAR,Fh=ka.ONEMINYEAR,Fj=ka.ONEMAXQUARTER,A2=ka.ONEAVGQUARTER,Ih=ka.ONEMINQUARTER,Ij=ka.ONEMAXMONTH,ef=ka.ONEAVGMONTH,Hh=ka.ONEMINMONTH,An=ka.ONEWEEK,Ya=ka.ONEDAY,ao=Ya/2,Ui=ka.ONEHOUR,tv=ka.ONEMIN,Bh=ka.ONESEC,Hj=ka.ONEMILLI,Bj=ka.ONEMICROSEC,ps=ka.MINUS_SIGN,Yh=ka.BADNUM,M2={K:"zeroline"},k2={K:"gridline",L:"path"},q2={K:"minor-gridline",L:"path"},hM={K:"tick",L:"path"},nM={K:"tick",L:"text"},iM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Vh=Aa(),jc=Vh.MID_SHIFT,ms=Vh.CAP_SHIFT,av=Vh.LINE_SPACING,Oj=Vh.OPPOSITE_SIDE,Oh=3,Ye=MM.exports={};Ye.setConvert=Lh();var Yj=p2(),Wi=Xt(),Vj=Wi.idSort,Gj=Wi.isLinked;Ye.id2name=Wi.id2name;Ye.name2id=Wi.name2id;Ye.cleanId=Wi.cleanId;Ye.list=Wi.list;Ye.listIds=Wi.listIds;Ye.getFromId=Wi.getFromId;Ye.getFromTrace=Wi.getFromTrace;var pM=Qc();Ye.getAutoRange=pM.getAutoRange;Ye.findExtremes=pM.findExtremes;var Uj=1e-4;function D2(e){var r=(e[1]-e[0])*Uj;return[e[0]-r,e[1]+r]}Ye.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)};Ye.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))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.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=Ye.tickIncrement(e,"M6","reverse")+Ya*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ya*15.5:e-=ao;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Jt(r._tmin),n;if(a){var i=Ye.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,Ye.prepTicks(e,t),a){var o=Jt(r.dtick),s=Jt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?_2(u,f)?u===2*An&&f===2*Ya&&(e.dtick=An):u===2*An&&f===3*Ya?e.dtick=An:u===An&&!(r._input.minor||{}).nticks?e.dtick=Ya:sM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":_2(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"?_2(u,f)||(e.dtick=sM(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function _2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function sM(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,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>=Fh?u>=Fh&&u<=Nj?c=u:c=Nh:t===A2&&f>=Ih?u>=Ih&&u<=Fj?c=u:c=A2:f>=Hh?u>=Hh&&u<=Ij?c=u:c=ef:t===An&&f>=An?c=An:f>=Ya?c=Ya:t===ao&&f>=ao?c=ao:t===Ui&&f>=Ui&&(c=Ui);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;yAn&&(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,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]=(w?0:1);x--){var A=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:xr.extendFlat({},r,r.minor);if(A?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){x?(y=[],p=uM(r,!A)):(b=[],m=uM(r,!A));continue}if(k.tickmode==="sync"){y=[],p=Kj(r);continue}var M=D2(u),S=M[0],D=M[1],E=Jt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=Ye.tickFirst(k,t);if(x){if(r._tmin=N,N=D:F<=D;F=Ye.tickIncrement(F,G,f,n)){if(x&&Y++,k.rangebreaks&&!f){if(F=d)break}if(y.length>h||F===H)break;H=F;var V={value:F};x?(R&&F!==(F|0)&&(V.simpleLabel=!0),i>1&&Y%i&&(V.skipLabel=!0),y.push(V)):(V.minor=!0,b.push(V))}}if(!b||b.length<2)s=!1;else{var B=(b[1].value-b[0].value)*(o?-1:1);wee(B,r.tickformat)||(s=!1)}if(!s)_=y;else{var J=y.concat(b);l&&y.length&&(J=J.slice(1)),J=J.sort(function(Ie,Be){return Ie.value-Be.value}).filter(function(Ie,Be,We){return Be===0||Ie.value!==We[Be-1].value});var X=J.map(function(Ie,Be){return Ie.minor===void 0&&!Ie.skipLabel?Be:null}).filter(function(Ie){return Ie!==null});X.forEach(function(Ie){s.map(function(Be){var We=Ie+Be;We>=0&&We-1;ge--){if(y[ge].drop){y.splice(ge,1);continue}y[ge].value=T2(y[ge].value,r);var Z=r.c2p(y[ge].value);(_e?j>Z-W:jd||Ped&&(We.periodX=d),Pen&&dNh)r/=Nh,a=n(10),e.dtick="M"+12*Gi(r,a,Rh);else if(i>ef)r/=ef,e.dtick="M"+Gi(r,1,fM);else if(i>Ya){if(e.dtick=Gi(r,Ya,e._hasDayOfWeekBreaks?[1,2,7,14]:Qj),!t){var l=Ye.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>Ui?e.dtick=Gi(r,Ui,fM):i>tv?e.dtick=Gi(r,tv,cM):i>Bh?e.dtick=Gi(r,Bh,cM):(a=n(10),e.dtick=Gi(r,a,Rh))}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,Rh)}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))):z2(e)?(e.tick0=0,a=1,e.dtick=Gi(r,a,jj)):(e.tick0=0,a=n(10),e.dtick=Gi(r,a,Rh));if(e.dtick===0&&(e.dtick=1),!Jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function xM(e){var r=e.dtick;if(e._tickexponent=0,!Jt(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>=tv&&n<=16||r>=Ui)e._tickround="M";else if(r>=Bh&&n<=19||r>=tv)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(Jt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Jt(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&&(rf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!E2(s)||rf(e.exponentformat)&&e.exponentformat==="SI extended"&&!P2(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(Jt(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"?gM:yM,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),o,t);return Math.floor(s)+Math.log(Vn.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&&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=iv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function ree(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=nv(Math.pow(10,l),e,n,a);else if(Jt(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"||rf(p)&&p!=="SI extended"&&E2(d)||rf(p)&&p==="SI extended"&&P2(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":ps)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":ps)+h:(r.text=nv(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 tee(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function aee(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 nee(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=nv(r.x,e,n,a)}function iee(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=lee(i);if(l[1]>=100)r.text=nv(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=ps+r.text)}}}else r.text=nv(r.x,e,n,a)}function lee(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 _M=["f","p","n","\u03BC","m","","k","M","G","T"],oee=["q","r","y","z","a",..._M,"P","E","Z","Y","R","Q"],rf=e=>["SI","SI extended","B"].includes(e);function E2(e){return e>14||e<-15}function P2(e){return e>32||e<-30}function see(e,r){return rf(r)?!!(r==="SI extended"&&P2(e)||r!=="SI extended"&&E2(e)):!1}function nv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};xM(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ps);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":rf(l)&&(e+=l==="SI extended"?oee[o/3+10]:_M[o/3+5])}return n?ps+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*ef}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=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&L2(u,u._fullDepth||0,o,!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,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.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),L2(r,p,a,!0),L2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=_ee(r,a));var m=d[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?Pe.bottom-Be:0,We))));var we=0,$e=0;if(r._shiftPusher&&(we=Math.max(We,Pe.height>0?Se==="l"?Be-Pe.left:Pe.right-Be: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){Oe={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"?Oe[Se]=r._depth:(Oe[Se]=r._depth=Math.max(Pe.width>0?Be-Pe.top:0,We),dr.reverse()),Pe.width>0){var Me=Pe.right-(r._offset+r._length);Me>0&&(Oe.xr=1,Oe.r=Me);var Ce=r._offset-Pe.left;Ce>0&&(Oe.xl=0,Oe.l=Ce)}}else if(Se==="l"?(r._depth=Math.max(Pe.height>0?Be-Pe.left:0,We),Oe[Se]=r._depth-Ne):(r._depth=Math.max(Pe.height>0?Pe.right-Be:0,We),Oe[Se]=r._depth+Ne,dr.reverse()),Pe.height>0){var He=Pe.bottom-(r._offset+r._length);He>0&&(Oe.yb=0,Oe.b=He);var Je=r._offset-Pe.top;Je>0&&(Oe.yt=1,Oe.t=Je)}Oe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(Oe[Se]+=dM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[Ie]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[Ie]+=We),r.mirror===!0||r.mirror==="ticks"?Ue[c]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[c]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}ze&&(ie=ev.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(vM(Oe,r.automargin),vM(Ue,r.automargin)),Qu.autoMargin(e,R2(r),Oe),Qu.autoMargin(e,TM(r),Ue),Qu.autoMargin(e,AM(r),ie)}),xr.syncOrAsync(xe)}};function vM(e,r){if(e){var t=Object.keys(iM).reduce(function(a,n){return r.indexOf(n)!==-1&&iM[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 uee(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 ju(n+e._offset+e.l2p(C2(d))+t,i+a)}:function(d){return ju(i+a,n+e._offset+e.l2p(C2(d))+t)}};function C2(e){return e.periodX!==void 0?e.periodX:e.x}function dee(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=Oh,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*ms,d+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,d+=Oh),s&&f==="top"&&(d-=h*(1-ms)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d: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,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};Ye.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+=jc:D===-90&&M==="bottom"?x=ms:D===90&&M==="top"?x=jc:x=.5,k=jc/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,F){if(f){if(o)return"end";if(s)return"start"}return!Jt(F)||F===0||F===180?"middle":F*A<0!==c?"end":"start"},b.heightFn=function(H,F,Y){return F<-60||F>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=ms:x=.5),c){var R=Jt(D)?+D:0;if(R!==0){var N=xr.deg2rad(R);k=Math.abs(Math.sin(N))*ms*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*jc},b.anchorFn=function(H,F){return Jt(F)&&Math.abs(F)===90?"middle":E?"end":"start"},b.heightFn=function(H,F,Y){return e.side==="right"&&(F*=-1),F<-30?-Y:F<30?-.5*Y:0}}return b};function Gh(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(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 rv.stroke(Vn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Tn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Uh(r,[hM]),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(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Ye.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 rv.stroke(Vn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Tn.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)}}Uh(r,[k2,q2])}};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(l,o){return Vj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(rv.stroke,r.zerolinecolor||rv.defaultLine).style("stroke-width",Tn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Uh(r,[M2])};Ye.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=Vn.select(this),X=e._promises.length;J.call(hs.positionText,s.xFn(B),s.yFn(B)).call(Tn.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(hs.convertToTspans,e),e._promises[X]?d.push(e._promises.pop().then(function(){h(J,u)})):h(J,u)}),Uh(r,[nM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(B){Vn.select(this).select("text").call(hs.positionText,s.xFn(B),s.yFn(B))});function h(B,J){B.each(function(X){var ee=Vn.select(this),le=ee.select(".text-math-group"),fe=s.anchorFn(X,J),de=t.transFn.call(ee.node(),X)+(Jt(J)&&+J!=0?" rotate("+J+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),Q=hs.lineCount(ee),qe=av*X.fontSize,ce=s.heightFn(X,Jt(J)?+J:0,(Q-1)*qe);if(ce&&(de+=ju(0,ce)),le.empty()){var be=ee.select("text");be.attr({transform:de,"text-anchor":fe}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=Tn.bBox(le.node()).width,_e=ge*{end:-.5,start:.5}[fe];le.attr("transform",de+ju(_e,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 de=Math.min(ee,le),Q=Math.max(ee,le),qe=r.side,ce=1/0,be=-1/0;c.each(function(j){var Z=Vn.select(this),oe=Z.select(".text-math-group");if(oe.empty()){var me=Tn.bBox(Z.node()),xe=0;X?(me.right>Q||me.leftQ||me.top+(r.tickangle?0:j.fontSize/4)r["_visibleLabelMin_"+fe._id]?Z.style("display","none"):Q.K==="tick"&&!de&&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(Oe){B=Math.max(B,Oe.fontSize);var Ue=r.l2p(Oe.x),ie=S2(this),we=Tn.bBox(ie.node());ee=Math.max(ee,hs.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Ue-we.width/2,right:Ue+we.width/2+2,width:we.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,de=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),Q=le?de/2:de,qe=le?r.ticklen:B*1.25*ee,ce=Math.sqrt(Math.pow(Q,2)+Math.pow(qe,2)),be=Q/ce,ge=r.autotickangles.map(function(Oe){return Oe*Math.PI/180}),_e=ge.find(function(Oe){return Math.abs(Math.cos(Oe))<=be});_e===void 0&&(_e=ge.reduce(function(Oe,Ue){return Math.abs(Math.cos(Oe))U*Y&&(N=Y,D[S]=E[S]=H[S])}var G=Math.abs(N-R);G-A>0?(G-=A,A*=1+A/G):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 V=xr.syncOrAsync(b);return V&&V.then&&e._promises.push(V),V};function hee(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(rv.stroke,r.dividercolor).style("stroke-width",Tn.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 dM(e){var r=e.title.font.size,t=(e.title.text.match(hs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ms+t*av):t?r*(t+1)*av:r}function pee(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(hs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ms:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(jc+o*av));else{var s=iv(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=Ye.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=Tn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Rj.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"}})}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)===Yh)&&(wM(r,0)||!mee(e,r,t,a)||yee(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return wM(e,t.x)})};function wM(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Bj:/%L/.test(r)?e>=Hj:/%[SX]/.test(r)?e>=Bh:/%M/.test(r)?e>=tv:/%[HI]/.test(r)?e>=Ui:/%p/.test(r)?e>=ao:/%[Aadejuwx]/.test(r)?e>=Ya:/%[UVW]/.test(r)?e>=An:/%[Bbm]/.test(r)?e>=Hh:/%[q]/.test(r)?e>=Ih:/%[Yy]/.test(r)?e>=Fh:!0}});var qM=O((i2e,kM)=>{"use strict";kM.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 N2=O((l2e,CM)=>{"use strict";var Tee=qM();CM.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&&(Tee(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var LM=O((o2e,SM)=>{var Aee={left:0,top:0};SM.exports=Mee;function Mee(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=kee(r);return t[0]=a-i.left,t[1]=n-i.top,t}function kee(e){return e===window||e===document||e===document.body?Aee:e.getBoundingClientRect()}});var F2=O((s2e,DM)=>{"use strict";var qee=pg();function Cee(){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}DM.exports=qee&&Cee()});var PM=O((u2e,EM)=>{"use strict";EM.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 NM=O((f2e,zM)=>{"use strict";var RM=Re(),See=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];zM.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=RM.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=RM.constrain(Math.floor(t*3),0,2),See[t][r]}});var IM=O((c2e,FM)=>{"use strict";var Lee=Bc(),Dee=Vd(),Eee=Ec().getGraphDiv,Pee=qc(),I2=FM.exports={};I2.wrapped=function(e,r,t){e=Eee(e),e._fullLayout&&Dee.clear(e._fullLayout._uid+Pee.HOVERID),I2.raw(e,r,t)};I2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Lee.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 xi=O((v2e,YM)=>{"use strict";var Ree=LM(),H2=yg(),zee=F2(),Nee=Re().removeElement,Fee=ia(),ys=YM.exports={};ys.align=PM();ys.getCursor=NM();var BM=IM();ys.unhover=BM.wrapped;ys.unhoverRaw=BM.raw;ys.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,zee?(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 OM(){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}ys.coverSlip=OM;function HM(e){return Ree(e.changedTouches?e.changedTouches[0]:e,document.body)}});var no=O((d2e,VM)=>{"use strict";VM.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((h2e,UM)=>{"use strict";var B2=no(),lv="data-savedcursor",GM="!!";UM.exports=function(r,t){var a=r.attr(lv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var O2=aa(),Iee=In();XM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Iee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:O2({editType:"legend"}),grouptitlefont:O2({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:O2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var sv=O(ov=>{"use strict";ov.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};ov.isVertical=function(r){return r.orientation!=="h"};ov.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};ov.getId=function(r){return r._id||"legend"}});var G2=O((y2e,ZM)=>{"use strict";var Wh=gr(),Mn=Re(),Hee=lt(),Bee=an(),Oee=Y2(),Yee=Du(),V2=sv();function Vee(e,r,t,a,n){var i=r[e]||{},l=Hee.newContainer(t,e);function o(B,J){return Mn.coerce(i,l,Oee,B,J)}var s=Mn.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 Mn.coerce(X,ee,Bee,B,J)},d=t.font||{},h=Mn.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,F,Y,U="left";E?(H=0,Wh.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(F=1.1,Y="bottom"):(F=1,Y="top"):R?(F=-.1,Y="top"):(F=0,Y="bottom")):(F=1,Y="auto",N?H=1.02:(H=1,U="right")),Mn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:H}},"x"),Mn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:F}},"y"),o("traceorder",y),V2.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"),Mn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){o("title.side",E?"left":"top");var V=Mn.extendFlat({},s,{size:Mn.bigFont(s.size)});Mn.coerceFont(o,"title.font",V);let B=n>1;o("titleclick",B?"toggle":!1),o("titledoubleclick",B?"toggleothers":!1)}}}ZM.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var io=gr(),U2=Re(),Gee=U2.pushUnique,Uee=sv(),JM=!0;W2.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"&&JM&&t.data&&t._context.showTips&&(U2.notifier(U2._(t,"Double-click on legend to isolate one trace"),"long"),JM=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,c=(i.shapes||[]).filter(function(ze){return ze.showlegend}),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(ze,Se){var Ie=k.indexOf(ze),Be=A.visible;return Be||(Be=A.visible=[]),k.indexOf(ze)===-1&&(k.push(ze),Ie=k.length-1),Be[Ie]=Se,Ie}var E=(i.shapes||[]).map(function(ze){return ze._input}),R=!1;function N(ze,Se){E[ze].visible=Se,R=!0}function H(ze,Se){if(!(l.groupTitle&&!s)){var Ie=ze._fullInput||ze,Be=Ie._isShape,We=Ie.index;We===void 0&&(We=Ie._index);var Pe=Ie.visible===!1?!1:Se;Be?N(We,Pe):D(We,Pe)}}var F=h.legend,Y=h._fullInput,U=Y&&Y._isShape;if(!U&&io.traceIs(h,"pie-like")){var G=l.label,V=u.indexOf(G);if(n==="toggle")V===-1?u.push(G):u.splice(V,1);else if(n==="toggleothers"){var B=V!==-1,J=[];for(m=0;m{"use strict";$M.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var jM=O((b2e,QM)=>{"use strict";var KM=gr(),J2=sv();QM.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(B,J,X){if(t.visible!==!1&&!(a&&B!==t._id))if(J===""||!J2.isGrouped(t)){var ee="~~i"+c;s.push(ee),o[ee]=[X],c++}else s.indexOf(J)===-1?(s.push(J),u=!0,o[J]=[X]):o[J].push(X)}for(h=0;hN&&(R=N)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var H=function(B,J){return B[0]._groupMinRank-J[0]._groupMinRank||B[0]._preGroupSort-J[0]._preGroupSort},F=function(B,J){return B.trace.legendrank-J.trace.legendrank||B._preSort-J._preSort};for(D.forEach(function(B,J){B[0]._preGroupSort=J}),D.sort(H),h=0;h{"use strict";var Xh=Re();function ek(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}gs.formatPiePercent=function(r,t){var a=ek((r*100).toPrecision(3));return Xh.numSeparate(a,t)+"%"};gs.formatPieValue=function(r,t){var a=ek(r.toPrecision(10));return Xh.numSeparate(a,t)};gs.getFirstFilled=function(r,t){if(Xh.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Wee=Yr(),Xee=br();rk.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Wee.pointStyle(r,a,n,t):Xee.fill(r,t.color)}});var tf=O((T2e,ik)=>{"use strict";var ak=br(),nk=uv().castOption,Zee=tk();ik.exports=function(r,t,a,n){var i=a.marker.line,l=nk(i.color,t.pts)||ak.defaultLine,o=nk(i.width,t.pts)||0;r.call(Zee,t,a,n).style("stroke-width",o).call(ak.stroke,l)}});var j2=O((A2e,ck)=>{"use strict";var Va=kr(),$2=gr(),Ra=Re(),lk=Ra.strTranslate,kn=Yr(),Gn=br(),K2=bn().extractOpts,Zh=wn(),Jee=tf(),$ee=uv().castOption,Kee=Z2(),ok=12,sk=5,xs=2,Qee=10,af=5;ck.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Kee.itemGap*2)/2,s=lk(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=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 F={top:1,bottom:-1}[R],Y=F*(.5*(N-H+3))||0,U=a.indentation;D.attr("transform",lk(U,Y))}var G=D.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var V=D.selectAll("g.legendlines").data([M]);V.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=uk(M),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,H=S.anyFill,F=S.anyLine,Y=M[0],U=Y.trace,G,V,B=K2(U),J=B.colorscale,X=B.reversescale,ee=function(be){if(be.size())if(D)kn.fillGroupStyle(be,t,!0);else{var ge="legendfill-"+U.uid;kn.gradient(be,t,ge,Q2(X),J,"fill")}},le=function(be){if(be.size()){var ge="legendline-"+U.uid;kn.lineGroupStyle(be),kn.gradient(be,t,ge,Q2(X),J,"stroke")}},fe=Zh.hasMarkers(U)||!H?"M5,0":F?"M5,-2":"M5,-3",de=Va.select(this),Q=de.select(".legendfill").selectAll("path").data(D||N?[M]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",fe+"h"+l+"v6h-"+l+"z").call(ee),E||R){var qe=u(void 0,U.line,Qee,sk);V=Ra.minExtend(U,{line:{width:qe}}),G=[Ra.minExtend(Y,{trace:V})]}var ce=de.select(".legendlines").selectAll("path").data(E||R?[G]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?kn.lineGroupStyle:le)}function c(M){var S=uk(M),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,H=M[0],F=H.trace,Y=!N&&!E&&!D&&Zh.hasText(F),U,G;function V(Q,qe,ce,be){var ge=Ra.nestedProperty(F,Q).get(),_e=Ra.isArrayOrTypedArray(ge)&&qe?qe(ge):ge;if(i&&_e&&be!==void 0&&(_e=be),ce){if(_ece[1])return ce[1]}return _e}function B(Q){return H._distinct&&H.index&&Q[H.index]?Q[H.index]:Q[0]}if(N||Y||R){var J={},X={};if(N){J.mc=V("marker.color",B),J.mx=V("marker.symbol",B),J.mo=V("marker.opacity",Ra.mean,[.2,1]),J.mlc=V("marker.line.color",B),J.mlw=V("marker.line.width",Ra.mean,[0,5],xs),J.mld=F._isShape?"solid":V("marker.line.dash",B),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Ra.mean,[2,16],ok);J.ms=ee,X.marker.size=ee}R&&(X.line={width:V("line.width",B,[0,10],sk)}),Y&&(J.tx="Aa",J.tp=V("textposition",B),J.ts=10,J.tc=V("textfont.color",B),J.tf=V("textfont.family",B),J.tw=V("textfont.weight",B),J.ty=V("textfont.style",B),J.tv=V("textfont.variant",B),J.tC=V("textfont.textcase",B),J.tE=V("textfont.lineposition",B),J.tS=V("textfont.shadow",B)),U=[Ra.minExtend(H,J)],G=Ra.minExtend(F,X),G.selectedpoints=null,G.texttemplate=null}var le=Va.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(kn.pointStyle,G,t),N&&(U[0].mrc=3);var de=le.selectAll("g.pointtext").data(Y?U:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),de.exit().remove(),de.selectAll("text").call(kn.textPointStyle,G,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 F=Va.select(this),Y=S[H[0]].marker,U=u(void 0,Y.line,af,xs);F.attr("d",H[1]).style("stroke-width",U+"px").call(Gn.fill,Y.color),U&&F.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",F=D?E.visible&&E.type===D:$2.traceIs(E,"bar"),Y=Va.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(F?[M]:[]);Y.enter().append("path").classed("legend"+D,!0).attr("d",H).attr("transform",s),Y.exit().remove(),Y.each(function(U){var G=Va.select(this),V=U[0],B=u(V.mlw,R.line,af,xs);G.style("stroke-width",B+"px");var J=V.mcc;if(!a._inHover&&"mc"in V){var X=K2(R),ee=X.mid;ee===void 0&&(ee=(X.max+X.min)/2),J=kn.tryColorscale(R,"")(ee)}var le=J||V.mc||R.color,fe=R.pattern,de=kn.getPatternAttr,Q=fe&&(de(fe.shape,0,"")||de(fe.path,0,""));if(Q){var qe=de(fe.bgcolor,0,null),ce=de(fe.fgcolor,0,null),be=fe.fgopacity,ge=fk(fe.size,8,10),_e=fk(fe.solidity,.5,1),W="legend-"+E.uid;G.call(kn.pattern,"legend",t,W,Q,ge,_e,J,fe.fillmode,qe,ce,be)}else G.call(Gn.fill,le);B&&Gn.stroke(G,V.mlc||N.color)})}function y(M){var S=M[0].trace,D=Va.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&$2.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=Ra.minExtend(S,{marker:{size:i?ok:Ra.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(kn.pointStyle,R,t)}else{var N=u(void 0,S.line,af,xs);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"],F=u(void 0,H.line,af,xs);N.style("stroke-width",F+"px").call(Gn.fill,H.fillcolor),F&&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"],F=u(void 0,H.line,af,xs);N.style("fill","none").call(kn.dashLine,H.line.dash,F),F&&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:$2.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 F=R.marker||{},Y=u($ee(F.line.width,E.pts),F.line,af,xs),U="pieLike",G=Ra.minExtend(R,{marker:{line:{width:Y}}},U),V=Ra.minExtend(E,{trace:G},U);Jee(H,V,G,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 F=Va.select(this),Y=K2(S),U=Y.colorscale,G=Y.reversescale,V=function(ee){if(ee.size()){var le="legendfill-"+S.uid;kn.gradient(ee,t,le,Q2(G,D==="radial"),U,"fill")}},B;if(U){if(!D){var X=U.length;B=H===0?U[G?X-1:0][1]:H===1?U[G?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}F.attr("d",N[0]),B?F.call(Gn.fill,B):F.call(V)})}};function Q2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function uk(e){var r=e[0].trace,t=r.contours,a=Zh.hasLines(r),n=Zh.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 fk(e,r,t){return e&&Ra.isArrayOrTypedArray(e)?r:e>t?t:e}});var a3=O((M2e,bk)=>{"use strict";var Ka=kr(),Gt=Re(),r3=zt(),bs=gr(),Kh=Bc(),e3=xi(),Ut=Yr(),fv=br(),_s=la(),vk=X2().handleItemClick,dk=X2().handleTitleClick,$t=Z2(),t3=Aa(),gk=t3.LINE_SPACING,lf=t3.FROM_TL,hk=t3.FROM_BR,pk=jM(),jee=j2(),of=sv(),nf=1,ere=/^legend[0-9]*$/;bk.exports=function(r,t){if(t)mk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ka.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(ere)&&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(),r3.autoMargin(e,n);var m=Gt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=Gt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Gt.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(fv.stroke,t.bordercolor).call(fv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Gt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Gt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Ut.font,w.font).text(w.text),$h(x,_,e,t,nf),!o&&(t.titleclick||t.titledoubleclick)&&nre(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var A=Gt.ensureSingle(m,"rect","scrollbar",function(S){S.attr($t.scrollBarEnterAttrs).call(fv.fill,$t.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Gt.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(F){return F.showlegend});return e._fullData.concat(N).some(function(F){return F.legendgroup===R&&(F.legend||"legend")===n&&F.visible===!0})?1:.5}return bs.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Ka.select(this).call(tre,e,t)}).call(jee,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||Ka.select(this).call(are,e,n)}),Gt.syncOrAsync([r3.previousPromises,function(){return ore(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 De=xe.legend||"legend";var ze=Array.isArray(De)?De.includes(n):De===n;return ze&&xe.visible===!0});x.style("opacity",me?1:.5)}if(!o){var N,H;E?N=S.l+S.w*t.x-lf[Qh(t)]*t._width:N=a.width*t.x-lf[Qh(t)]*t._width,R?H=S.t+S.h*(1-t.y)-lf[jh(t)]*t._effHeight:H=a.height*(1-t.y)-lf[jh(t)]*t._effHeight;var F=sre(e,n,N,H);if(F)return;if(a.margin.autoexpand){var Y=N,U=H;N=E?Gt.constrain(N,0,a.width-t._width):Y,H=R?Gt.constrain(H,0,a.height-t._effHeight):U,N!==Y&&Gt.log("Constrain "+n+".x to make legend fit inside graph"),H!==U&&Gt.log("Constrain "+n+".y to make legend fit inside graph")}Ut.setTranslate(m,N,H)}if(A.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),b.attr({width:t._width-D,height:G-D,x:D/2,y:D/2}),Ut.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:G-2*D,x:D,y:D}),Ut.setClipUrl(_,i,e),Ut.setRect(A,0,0,0,0),delete t._scrollY}else{var V=Math.max($t.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),B=t._effHeight-V-2*$t.scrollBarMargin,J=t._height-t._effHeight,X=B/J,ee=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ee}),Ut.setClipUrl(_,i,e),ge(ee,V,X),m.on("wheel",function(){ee=Gt.constrain(t._scrollY+Ka.event.deltaY/J*B,0,J),ge(ee,V,X),ee!==0&&ee!==J&&Ka.event.preventDefault()});var le,fe,de,Q=function(oe,me,xe){var De=(xe-me)/X+oe;return Gt.constrain(De,0,J)},qe=function(oe,me,xe){var De=(me-xe)/X+oe;return Gt.constrain(De,0,J)},ce=Ka.behavior.drag().on("dragstart",function(){var oe=Ka.event.sourceEvent;oe.type==="touchstart"?le=oe.changedTouches[0].clientY:le=oe.clientY,de=ee}).on("drag",function(){var oe=Ka.event.sourceEvent;oe.buttons===2||oe.ctrlKey||(oe.type==="touchmove"?fe=oe.changedTouches[0].clientY:fe=oe.clientY,ee=Q(de,le,fe),ge(ee,V,X))});A.call(ce);var be=Ka.behavior.drag().on("dragstart",function(){var oe=Ka.event.sourceEvent;oe.type==="touchstart"&&(le=oe.changedTouches[0].clientY,de=ee)}).on("drag",function(){var oe=Ka.event.sourceEvent;oe.type==="touchmove"&&(fe=oe.changedTouches[0].clientY,ee=qe(de,le,fe),ge(ee,V,X))});_.call(be)}function ge(oe,me,xe){t._scrollY=e._fullLayout[n]._scrollY=oe,Ut.setTranslate(_,0,-oe),Ut.setRect(A,t._width,$t.scrollBarMargin+oe*xe,$t.scrollBarWidth,me),y.select("rect").attr("y",D+oe)}if(e._context.edits.legendPosition){var _e,W,j,Z;m.classed("cursor-move",!0),e3.init({element:m.node(),gd:e,prepFn:function(oe){if(oe.target!==A.node()){var me=Ut.getTranslate(m);j=me.x,Z=me.y}},moveFn:function(oe,me){if(j!==void 0&&Z!==void 0){var xe=j+oe,De=Z+me;Ut.setTranslate(m,xe,De),_e=e3.align(xe,t._width,S.l,S.l+S.w,t.xanchor),W=e3.align(De+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(_e!==void 0&&W!==void 0){var oe={};oe[n+".x"]=_e,oe[n+".y"]=W,bs.call("_guiRelayout",e,oe)}},clickFn:function(oe,me){var xe=l.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return me.clientX>=De.left&&me.clientX<=De.right&&me.clientY>=De.top&&me.clientY<=De.bottom});xe.size()>0&&xk(e,t,xe,oe,me)}})}}],e)}}function Jh(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 xk(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),bs.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=Kh.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&vk(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Kh.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&vk(t,e,r,s)}}function tre(e,r,t){var a=of.getId(t),n=e.data()[0][0],i=n.trace,l=bs.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=Gt.templateString(u,i._meta))));var c=Gt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Ut.font,f).text(o?yk(u,s):u);var d=t.indentation+t.itemwidth+$t.itemGap*2;_s.positionText(c,d,0),o?c.call(_s.makeEditable,{gd:r,text:u}).call($h,e,r,t).on("edit",function(h){this.text(yk(h,s)).call($h,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=h,p._isShape?bs.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):bs.call("_guiRestyle",r,m,i.index)}):$h(c,e,r,t)}function yk(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 are(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Gt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(fv.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)),xk(r,o,e,i,Ka.event)}}))}function nre(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&bs.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Gt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(fv.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:Ka.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(Kh.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,Kh.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&dk(r,t,t.titledoubleclick))}))}function $h(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),_s.convertToTspans(e,t,function(){ire(r,t,a,n)})}function ire(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=of.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===nf?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*gk,d,h;if(o){var p=Ut.bBox(o);d=p.height,h=p.width,a===nf?Ut.setTranslate(l,u,u+d*.75):Ut.setTranslate(l,0,d*.25)}else{var m="."+s+(a===nf?"title":"")+"text",y=e.select(m),b=_s.lineCount(y),_=y.node();if(d=c*b,h=_?Ut.bBox(_).width:0,a===nf)t.title.side==="left"&&(h+=$t.itemGap*2),_s.positionText(y,u+$t.titlePad,u+c);else{var w=$t.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=$t.itemGap,h-=t.indentation+t.itemwidth),_s.positionText(y,w,-c*((b-1)/2-.3))}}a===nf?(t._titleWidth=h,t._titleHeight=d):(n.lineHeight=c,n.height=Math.max(d,16)+3,n.width=h)}function lre(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 ore(e,r,t,a,n){var i=e._fullLayout,l=of.getId(a);a||(a=i[l]);var o=i._size,s=of.isVertical(a),u=of.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=$t.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),y=jh(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=lre(a);if(s)t.each(function(oe){var me=oe[0].height;Ut.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){Ut.setTranslate(this,0,me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=Qh(a),H=a.x<0||a.x===0&&N==="right",F=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:F?Y&&N==="right"?o.r+o.w:U:o.w,2*p);var G=0,V=0;t.each(function(oe){var me=Jh(oe,a,p);G=Math.max(G,me),V+=me}),E=null;var B=0;if(u){var J=0,X=0,ee=0;r.each(function(){var oe=0,me=0;Ka.select(this).selectAll("g.traces").each(function(De){var ze=Jh(De,a,p),Se=De[0].height;Ut.setTranslate(this,R[0],R[1]+c+h+Se/2+me),me+=Se,oe=Math.max(oe,ze),x[De[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),Ut.setTranslate(this,X,ee),X+=xe}),a._width=Math.max(B,X)+c,a._height=ee+J+m}else{var le=t.size(),fe=V+d+(le-1)*h=a._maxWidth&&(B=Math.max(B,ce),Q=0,qe+=de,a._height+=de,de=0),Ut.setTranslate(this,R[0]+c+Q,R[1]+c+qe+me/2+h),ce=Q+xe+h,Q+=De,de=Math.max(de,me)}),fe?(a._width=Q+d,a._height=de+m):(a._width=Math.max(B,ce)+d,a._height+=de+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+$t.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+$t.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,ge=be.legendText||be.legendPosition;t.each(function(oe){var me=Ka.select(this).select("."+l+"toggle"),xe=oe[0].height,De=oe[0].trace.legendgroup,ze=Jh(oe,a,p);u&&De!==""&&(ze=x[De]);var Se=ge?p:E||ze;!s&&!f&&(Se+=h/2),Ut.setRect(me,0,-xe/2,Se,xe)});var _e=n.select("."+l+"titletext");_e.node()&&rre(_e,a,c);var W=n.select("."+l+"titletoggle");if(W.size()&&_e.node()){var j=_e.attr("x")||0,Z=$t.titlePad;Ut.setRect(W,j-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function sre(e,r,t,a){var n=e._fullLayout,i=n[r],l=Qh(i),o=jh(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 r3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*lf[l],r:i._width*hk[l],b:i._effHeight*hk[o],t:i._effHeight*lf[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 Qh(e){return Gt.isRightAnchor(e)?"right":Gt.isCenterAnchor(e)?"center":"left"}function jh(e){return Gt.isBottomAnchor(e)?"bottom":Gt.isMiddleAnchor(e)?"middle":"top"}});var o3=O(l3=>{"use strict";var ws=kr(),gl=zr(),_k=Fn(),St=Re(),ure=St.pushUnique,n3=St.strTranslate,fre=St.strRotate,cre=Bc(),Un=la(),vre=WM(),Xi=Yr(),sa=br(),e1=xi(),Zi=Zr(),dre=ia().zindexSeparator,uf=gr(),bi=Oi(),Ts=qc(),hre=G2(),pre=a3(),Sk=Ts.YANGLE,i3=Math.PI*Sk/180,mre=1/Math.sin(i3),yre=Math.cos(i3),gre=Math.sin(i3),xt=Ts.HOVERARROWSIZE,Br=Ts.HOVERTEXTPAD,wk={box:!0,ohlc:!0,violin:!0,candlestick:!0},xre={scatter:!0,scattergl:!0,splom:!0};function Tk(e,r){return e.distance-r.distance}l3.hover=function(r,t,a,n){r=St.getGraphDiv(r);var i=t.target;St.throttle(r._fullLayout._uid+Ts.HOVERID,Ts.HOVERMINTIME,function(){bre(r,t,a,n,i)})};l3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Rk(n),l=zk(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(uf.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},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||sa.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=Dk(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||sa.background,container:ws.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 e1.unhoverRaw(e,r)}if(r.pointerX=j+M[0]._offset,r.pointerY=Z+S[0]._offset,"xval"in r?U=bi.flat(i,r.xval):U=bi.p2c(M,j),"yval"in r?G=bi.flat(i,r.yval):G=bi.p2c(S,Z),!gl(U[0])||!gl(G[0]))return St.warn("Fx.hover failed",r,e),e1.unhoverRaw(e,r)}var xe=1/0;function De(vr,ft){for(B=0;Bce&&(F.splice(0,ce),xe=F[0].distance),c&&H!==0&&F.length===0){qe.distance=H,qe.index=!1;var jr=X._module.hoverPoints(qe,de,Q,"closest",{hoverLayer:o._hoverlayer});if(jr&&(jr=jr.filter(function(Rt){return Rt.spikeDistance<=H})),jr&&jr.length){var ga,En=jr.filter(function(Rt){return Rt.xa.showspikes&&Rt.xa.spikesnap!=="hovered data"});if(En.length){var ta=En[0];gl(ta.x0)&&gl(ta.y0)&&(ga=Se(ta),(!be.vLinePoint||be.vLinePoint.spikeDistance>ga.spikeDistance)&&(be.vLinePoint=ga))}var Ni=jr.filter(function(Rt){return Rt.ya.showspikes&&Rt.ya.spikesnap!=="hovered data"});if(Ni.length){var Pn=Ni[0];gl(Pn.x0)&&gl(Pn.y0)&&(ga=Se(Pn),(!be.hLinePoint||be.hLinePoint.spikeDistance>ga.spikeDistance)&&(be.hLinePoint=ga))}}}}}De();function ze(vr,ft,$r){for(var ht=null,Pt=1/0,At,jr=0;jrvr.trace.index===Me.trace.index):F=[Me];var Ce=F.length,He=Ck("x",Me,o),Je=Ck("y",Me,o);De(He,Je);var Ge=[],Xe={},lr=0,tr=function(vr){var ft=wk[vr.trace.type]?Lk(vr):vr.trace.index;if(!Xe[ft])lr++,Xe[ft]=lr,Ge.push(vr);else{var $r=Xe[ft]-1,ht=Ge[$r];$r>0&&Math.abs(vr.distance)Ce-1;Ke--)tr(F[Ke]);F=Ge,Pe()}var Fe=e._hoverdata,ne=[],se=Rk(e),Le=zk(e);for(let vr of F){var Ee=bi.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var ar=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(ar=vr.cd[vr.index].ht),vr.hovertemplate=ar||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var cr=vr.x0+vr.xa._offset,sr=vr.x1+vr.xa._offset,Mr=vr.y0+vr.ya._offset,Or=vr.y1+vr.ya._offset,et=Math.min(cr,sr),ut=Math.max(cr,sr),kt=Math.min(Mr,Or),_t=Math.max(Mr,Or);Ee.bbox={x0:et+Le,x1:ut+Le,y0:kt+se,y1:_t+se}}vr.eventData=[Ee],ne.push(Ee)}e._hoverdata=ne;var Ht=d==="y"&&(Y.length>1||F.length>1)||d==="closest"&&ge&&F.length>1,ra=sa.combine(o.plot_bgcolor||sa.background,o.paper_bgcolor),Ia=Dk(F,{gd:e,hovermode:d,rotateLabels:Ht,bgColor:ra,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ma=Ia.hoverLabels;if(bi.isUnifiedHover(d)||(wre(ma,Ht,o,Ia.commonLabelBoundingBox),Pk(ma,Ht,o._invScaleX,o._invScaleY)),n&&n.tagName){var ya=uf.getComponentMethod("annotations","hasClickToShow")(e,ne);vre(ws.select(n),ya?"pointer":"")}!n||a||!Mre(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:S,xvals:U,yvals:G}))}function Lk(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 _re=/([\s\S]*)<\/extra>/;function Dk(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||Ts.HOVERFONT,c=r.fontSize||Ts.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),Me.attr("d","M"+(Ke-Le)+",0L"+(Ke-Le+xt)+","+ne+xt+"H"+se+"v"+ne+(Br*2+tr.height)+"H"+-se+"V"+ne+xt+"H"+(Ke-Le-xt)+"Z"),Ke=Le,B.minX=Ke-se,B.maxX=Ke+se,w.side==="top"?(B.minY=Fe-(Br*2+tr.height),B.maxY=Fe-Br):(B.minY=Fe+Br,B.maxY=Fe+(Br*2+tr.height))}else{var Ee,ar,cr;x.side==="right"?(Ee="start",ar=1,cr="",Ke=w._offset+w._length):(Ee="end",ar=-1,cr="-",Ke=w._offset),Fe=x._offset+(_.y0+_.y1)/2,Ce.attr("text-anchor",Ee),Me.attr("d","M0,0L"+cr+xt+","+xt+"V"+(Br+tr.height/2)+"h"+cr+(Br*2+tr.width)+"V-"+(Br+tr.height/2)+"H"+cr+xt+"V-"+xt+"Z"),B.minY=Fe-(Br+tr.height/2),B.maxY=Fe+(Br+tr.height/2),x.side==="right"?(B.minX=Ke+xt,B.maxX=Ke+xt+(Br*2+tr.width)):(B.minX=Ke-xt-(Br*2+tr.width),B.maxX=Ke-xt);var sr=tr.height/2,Mr=E-tr.top-sr,Or="clip"+a._uid+"commonlabel"+x._id,et;if(KeMe.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?St.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,de={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"}},Q={font:X};hre(de,Q,t._fullData);var qe=Q.legend;qe.entries=[];for(var ce=0;ce=0?we=Pe:Oe+me=0?we=Oe:Ue+me=0?$e=Be:We+xe=0?$e=We:ie+xe=0,(Ne.idealAlign==="top"||!_t)&&Ht?(cr-=Mr/2,Ne.anchor="end"):_t?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,_t=ar+sr/2+kt<=R,Ht=ar-sr/2-kt>=0,(Ne.idealAlign==="left"||!_t)&&Ht)ar-=sr/2,Ne.anchor="end";else if(_t)ar+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var ra=kt/2,Ia=ar+ra-R,ma=ar-ra;Ia>0&&(ar-=Ia),ma<0&&(ar+=-ma)}Ne.crossPos=ar}Fe.attr("text-anchor",Ne.anchor),se&&ne.attr("text-anchor",Ne.anchor),Me.attr("transform",n3(ar,cr)+(i?fre(Sk):""))}),{hoverLabels:dr,commonLabelBoundingBox:B}}function Ak(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=St.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=St.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(_re,(p,m)=>(l=qk(m,e.nameLength),""))}return[o,l]}function wre(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(U){return U*t._invScaleX},y=function(U){return U*t._invScaleY};e.each(function(U){var G=U[n],V=U[i],B=G._id.charAt(0)==="x",J=G.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=Ek(U,r),fe=U.anchor,de=fe==="end"?-1:1,Q,qe;if(fe==="middle")Q=U.crossPos+(B?y(le.y-U.by/2):m(U.bx/2+U.tx2width/2)),qe=Q+(B?y(U.by):m(U.bx));else if(B)Q=U.crossPos+y(xt+le.y)-y(U.by/2-xt),qe=Q+y(U.by);else{var ce=m(de*xt+le.x),be=ce+m(de*U.bx);Q=U.crossPos+Math.min(ce,be),qe=U.crossPos+Math.max(ce,be)}B?h!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(Q,h)>1&&(V.side==="left"?(X=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(qe,d)-Math.max(Q,c)>1&&(V.side==="top"?(X=V._mainLinePosition,ee=t.height):ee=V._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(B?mre:1)/2,pmin:X,pmax:ee}]}),u.sort(function(U,G){return U[0].posref-G[0].posref||o*(G[0].traceIndex-U[0].traceIndex)});var b,_,w,x,A,k,M;function S(U){var G=U[0],V=U[U.length-1];if(_=G.pmin-G.pos-G.dp+G.size,w=V.pos+V.dp+V.size-G.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;xG.pmax&&B++;for(x=U.length-1;x>=0&&!(B<=0);x--)k=U[x],k.pos>G.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>G.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 F=H[A],Y=F.datum;Y.offset=F.dp,Y.del=F.del}}}function Ek(e,r){var t=0,a=e.offset;return r&&(a*=-gre,t=e.offset*yre),{x:t,y:a}}function Tre(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(xt+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 Pk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=ws.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Tre(l),d=Ek(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*xt+h)+","+i(xt+p)+"v"+i(l.by/2-xt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*xt+h)+"V"+i(p-xt)+"Z":b="M"+n(f*xt+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(Un.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Un.positionText,n(c.text2ShiftX+c.alignShift*Br+h),i(p+l.ty0-l.by/2+Br)),o.select("rect").call(Xi.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 Are(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(d){return d||gl(d)&&d===0}var o=Array.isArray(t)?function(d,h){var p=St.castOption(n,t,d);return l(p)?p:St.extractOption({},a,"",h)}:function(d,h){return St.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=St.constrain(e.x0,0,e.xa._length),e.x1=St.constrain(e.x1,0,e.xa._length),e.y0=St.constrain(e.y0,0,e.ya._length),e.y1=St.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Zi.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:Zi.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=Zi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Zi.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=Zi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Zi.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 Mk(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=sa.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=_k.readability(d.color,c)<1.5?sa.contrast(c):d.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,x=Zi.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":Xi.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=_k.readability(D.color,c)<1.5?sa.contrast(c):D.color,F=u.spikemode,Y=u.spikethickness,U=u.spikecolor||H,G=Zi.getPxPosition(e,u),V,B;if(F.indexOf("toaxis")!==-1||F.indexOf("across")!==-1){if(F.indexOf("toaxis")!==-1&&(V=G,B=R),F.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)),V=i.t+(1-X)*i.h,B=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:B,"stroke-width":Y,stroke:U,"stroke-dasharray":Xi.dashStyle(u.spikedash,Y)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:B,"stroke-width":Y+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}F.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:G-(u.side!=="top"?Y:-Y),r:Y,fill:U}).classed("spikeline",!0)}}}function Mre(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 kk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qk(e,r){return Un.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function kre(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,zk=e=>e.offsetLeft+e.clientLeft;function sf(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=St.apply3DTransform(t._invTransform)(n,i),u=St.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 r1=O((q2e,Nk)=>{"use strict";var qre=Re(),Cre=br(),Sre=Oi().isUnifiedHover;Nk.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&&Sre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Cre.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),qre.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Ik=O((C2e,Fk)=>{"use strict";var Lre=Re(),Dre=r1(),Ere=Mu();Fk.exports=function(r,t){function a(n,i){return Lre.coerce(r,t,Ere,n,i)}Dre(r,t,a)}});var Ok=O((S2e,Bk)=>{"use strict";var Hk=Re(),Pre=Lc(),Rre=r1();Bk.exports=function(r,t,a,n){function i(o,s){return Hk.coerce(r,t,Pre,o,s)}var l=Hk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Rre(r,t,i,l)}});var s3=O((L2e,Yk)=>{"use strict";var zre=Re(),Nre=Mu();Yk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:zre.coerce(r,t,Nre,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Uk=O((D2e,Gk)=>{"use strict";var Vk=Re(),Fre=Mu(),Ire=s3(),Hre=r1();Gk.exports=function(r,t){function a(f,c){return Vk.coerce(r,t,Fre,f,c)}var n=Ire(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),Hre(r,t,a),Vk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Zk=O((E2e,Xk)=>{"use strict";var u3=Re(),Wk=gr();Xk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return u3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Ore=gr(),Yre=o3().hover;Jk.exports=function(r,t,a){var n=Ore.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&Yre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var _i=O((R2e,jk)=>{"use strict";var Vre=kr(),t1=Re(),Gre=xi(),cv=Oi(),Kk=Mu(),Qk=o3();jk.exports={moduleType:"component",name:"fx",constants:qc(),schema:{layout:Kk},attributes:Lc(),layoutAttributes:Kk,supplyLayoutGlobalDefaults:Ik(),supplyDefaults:Ok(),supplyLayoutDefaults:Uk(),calc:Zk(),getDistanceFunction:cv.getDistanceFunction,getClosest:cv.getClosest,inbox:cv.inbox,quadrature:cv.quadrature,appendArrayPointValue:cv.appendArrayPointValue,castHoverOption:Wre,castHoverinfo:Xre,hover:Qk.hover,unhover:Gre.unhover,loneHover:Qk.loneHover,loneUnhover:Ure,click:$k()};function Ure(e){var r=t1.isD3Selection(e)?e:Vre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Wre(e,r,t){return t1.castOption(e,r,"hoverlabel."+t)}function Xre(e,r,t){function a(n){return t1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return t1.castOption(e,t,"hoverinfo",a)}});var ff=O(xl=>{"use strict";xl.selectMode=function(e){return e==="lasso"||e==="select"};xl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};xl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};xl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};xl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};xl.selectingOrDrawing=function(e){return xl.freeMode(e)||xl.rectMode(e)}});var a1=O((N2e,eq)=>{"use strict";eq.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 n1=O((F2e,rq)=>{"use strict";rq.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 l1=O((I2e,tq)=>{"use strict";var i1=32;tq.exports={CIRCLE_SIDES:i1,i000:0,i090:i1/4,i180:i1/2,i270:i1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var o1=O((H2e,nq)=>{"use strict";var Zre=Re().strTranslate;function aq(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 Jre(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 $re(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return aq(e,t[r])}}function Kre(e){return Zre(e.xaxis._offset,e.yaxis._offset)}nq.exports={p2r:aq,r2p:Jre,axValue:$re,getTransform:Kre}});var lo=O(bl=>{"use strict";var Qre=Kg(),oq=l1(),cf=oq.CIRCLE_SIDES,f3=oq.SQRT2,sq=o1(),iq=sq.p2r,lq=sq.r2p,jre=[0,3,4,5,6,1,2],ete=[0,3,4,1,2];bl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var uq=Xt(),hq=ff(),rte=hq.drawMode,tte=hq.openMode,vf=l1(),fq=vf.i000,cq=vf.i090,vq=vf.i180,dq=vf.i270,ate=vf.cos45,nte=vf.sin45,pq=o1(),u1=pq.p2r,oo=pq.r2p,ite=Kl(),lte=ite.clearOutline,f1=lo(),ote=f1.readPaths,ste=f1.writePaths,ute=f1.ellipseOver,fte=f1.fixDatesForPaths;function cte(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(!rte(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var vte=ff(),dte=vte.selectMode,hte=Kl(),pte=hte.clearOutline,c3=lo(),mte=c3.readPaths,yte=c3.writePaths,gte=c3.fixDatesForPaths;gq.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(!dte(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h{"use strict";xq.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 uo=O(qa=>{"use strict";var Ji=dv(),bq=Re(),so=Zr();qa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};qa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};qa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};qa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};qa.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ji.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ji.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};qa.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=qa.shapePositionToRange(r);l=function(s){var u=_l(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=qa.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};qa.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=qa.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};qa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};qa.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}};qa.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}};qa.getPathString=function(e,r){let t=r.type,a=so.getRefType(r.xref),n=so.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 F;if(E)if(R==="domain")H?F=function(Y){return E._offset+E._length*(1-Y)}:F=function(Y){return E._offset+E._length*Y};else{let Y=qa.shapePositionToRange(E);F=function(U){return E._offset+E.r2p(Y(U,!0))},N==="path"&&E.type==="date"&&(F=qa.decodeDate(F))}else H?F=function(Y){return i.t+i.h*(1-Y)}:F=function(Y){return i.l+i.w*Y};return F}if(a==="array"?(d=[],l=r.xref.map(function(E){return so.getFromId(e,E)}),d=r.xref.map(function(E,R){return _(l[R],so.getRefType(E),t,!1)})):(l=so.getFromId(e,r.xref),d=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(E){return so.getFromId(e,E)}),h=r.yref.map(function(E,R){return _(o[R],so.getRefType(E),t,!0)})):(o=so.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return xte(r,d,h);if(a==="array")s=_l(l[0],r.x0shift),u=_l(l[1],r.x1shift),p=d[0](r.x0)+s,m=d[1](r.x1)+u;else if(s=_l(l,r.x0shift),u=_l(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=_l(o[0],r.y0shift),c=_l(o[1],r.y1shift),y=h[0](r.y0)+f,b=h[1](r.y1)+c;else if(f=_l(o,r.y0shift),c=_l(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 xte(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(Ji.segmentRE,function(d){var h=0,p=d.charAt(0),m=Ji.paramIsX[p],y=Ji.paramIsY[p],b=Ji.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(Ji.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.*/,""),bq.log("Ignoring extra params in segment "+d)),_&&f++,w&&c++,p+k})}function _l(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 h3=O((U2e,Tq)=>{"use strict";var bte=Re(),$i=Zr(),_q=la(),wq=Yr(),_te=lo().readPaths,d3=uo(),wte=d3.getPathString,hv=Rd(),Tte=Aa().FROM_TL;Tq.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=$i.getFromId(r,a.xref),s=$i.getFromId(r,a.yref);let X=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in hv){var f=typeof hv[u]=="function",c=!X||hv.simpleXVariables.includes(u),d=!ee||hv.simpleYVariables.includes(u);if(f&&c&&d){var h=hv[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=bte.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=wte(r,a),S=_te(M,r);w=1/0,A=1/0,x=-1/0,k=-1/0;for(var D=0;D=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Mte(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 kte=Re(),qte=kte.strTranslate,Aq=xi(),qq=ff(),Cte=qq.drawMode,Cq=qq.selectMode,Sq=gr(),Mq=br(),d1=l1(),Ste=d1.i000,Lte=d1.i090,Dte=d1.i180,Ete=d1.i270,Pte=Kl(),Lq=Pte.clearOutlineControllers,m3=lo(),v1=m3.pointsOnRectangle,p3=m3.pointsOnEllipse,Rte=m3.writePaths,zte=c1().newShapes,Nte=c1().createShapeObj,Fte=v3(),Ite=h3();Dq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(p3(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=zte(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Fte(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&Sq.call((G||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Cte(f),d=Cq(f);(c||d)&&(i._fullLayout._outlining=!0),Lq(i),t.attr("d",Rte(r));var h,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Hte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=Nte(t,a,a.dragmode);Ite(i,"label-temp",x,w)}function A(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),h[m][y].moveFn=k}function k(G,V){if(r.length){var B=b[m][y][1],J=b[m][y][2],X=r[m],ee=X.length;if(v1(X)){var le=G,fe=V;if(a.isActiveSelection){var de=kq(X,y);de[1]===X[y][1]?fe=0:le=0}for(var Q=0;Q1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,l(),o())}}function D(G,V){if(G===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var B=r[m];!v1(B)&&!p3(B)&&S()}}function E(G){h=[];for(var V=0;V{"use strict";var Ote=kr(),Nq=gr(),g3=Re(),As=Zr(),Yte=lo().readPaths,Vte=h1(),m1=h3(),Fq=Kl().clearOutlineControllers,y3=br(),y1=Yr(),Gte=lt().arrayEditor,Eq=xi(),Pq=no(),Ms=dv(),fn=uo(),x3=fn.getPathString;Bq.exports={draw:b3,drawOne:Iq,eraseActiveShape:Zte,drawLabel:m1};function b3(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;nAs.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 Wte(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=Ote.select(r.node().parentNode),H=As.getFromId(e,t.xref),F=As.getRefType(t.xref),Y=As.getFromId(e,t.yref),U=As.getRefType(t.yref),G=t.x0shift,V=t.x1shift,B=t.y0shift,J=t.y1shift,X=function(ze,Se){var Ie=fn.getDataToPixel(e,H,Se,!1,F);return Ie(ze)},ee=function(ze,Se){var Ie=fn.getDataToPixel(e,Y,Se,!0,U);return Ie(ze)},le=fn.getPixelToData(e,H,!1,F),fe=fn.getPixelToData(e,Y,!0,U),de=ce(),Q={element:de.node(),gd:e,prepFn:_e,doneFn:W,clickFn:j},qe;Eq.init(Q),de.node().onmousemove=ge;function ce(){return f?be():r}function be(){var ze=10,Se=Math.max(t.line.width,ze),Ie=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ie.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Se,"stroke-opacity":"0"});var Be={"fill-opacity":"0"},We=Math.max(Se/2,ze);return Ie.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,G),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,B),r:We}).style(Be).classed("cursor-grab",!0),Ie.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,J),r:We}).style(Be).classed("cursor-grab",!0),Ie}function ge(ze){if(p1(e)){qe=null;return}if(f)ze.target.tagName==="path"?qe="move":qe=ze.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Se=Q.element.getBoundingClientRect(),Ie=Se.right-Se.left,Be=Se.bottom-Se.top,We=ze.clientX-Se.left,Pe=ze.clientY-Se.top,Oe=!c&&Ie>l&&Be>o&&!ze.shiftKey?Eq.getCursor(We/Ie,1-Pe/Be):"move";Pq(r,Oe),qe=Oe.split("-")[0]}}function _e(ze){p1(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"),ge(ze),me(n,t),De(r,t,e),Q.moveFn=qe==="move"?Z:oe,Q.altKey=ze.altKey)}function W(){p1(e)||(Pq(r),xe(n),Hq(r,e,t),Nq.call("_guiRelayout",e,i.getUpdateObj()))}function j(){p1(e)||xe(n)}function Z(ze,Se){if(t.type==="path"){var Ie=function(Pe){return Pe},Be=Ie,We=Ie;s?d("xanchor",t.xanchor=le(b+ze)):(Be=function(Oe){return le(X(Oe)+ze)},H&&H.type==="date"&&(Be=fn.encodeDate(Be))),u?d("yanchor",t.yanchor=fe(_+Se)):(We=function(Oe){return fe(ee(Oe)+Se)},Y&&Y.type==="date"&&(We=fn.encodeDate(We))),d("path",t.path=Rq(R,Be,We))}else s?d("xanchor",t.xanchor=le(b+ze)):(d("x0",t.x0=le(h+ze)),d("x1",t.x1=le(m+ze))),u?d("yanchor",t.yanchor=fe(_+Se)):(d("y0",t.y0=fe(p+Se)),d("y1",t.y1=fe(y+Se)));r.attr("d",x3(e,t)),me(n,t),m1(e,a,t,N)}function oe(ze,Se){if(c){var Ie=function(Xe){return Xe},Be=Ie,We=Ie;s?d("xanchor",t.xanchor=le(b+ze)):(Be=function(lr){return le(X(lr)+ze)},H&&H.type==="date"&&(Be=fn.encodeDate(Be))),u?d("yanchor",t.yanchor=fe(_+Se)):(We=function(lr){return fe(ee(lr)+Se)},Y&&Y.type==="date"&&(We=fn.encodeDate(We))),d("path",t.path=Rq(R,Be,We))}else if(f){if(qe==="resize-over-start-point"){var Pe=h+ze,Oe=u?p-Se:p+Se;d("x0",t.x0=s?Pe:le(Pe)),d("y0",t.y0=u?Oe:fe(Oe))}else if(qe==="resize-over-end-point"){var Ue=m+ze,ie=u?y-Se:y+Se;d("x1",t.x1=s?Ue:le(Ue)),d("y1",t.y1=u?ie:fe(ie))}}else{var we=function(Xe){return qe.indexOf(Xe)!==-1},$e=we("n"),dr=we("s"),Ne=we("w"),Me=we("e"),Ce=$e?w+Se:w,He=dr?x+Se:x,Je=Ne?A+ze:A,Ge=Me?k+ze:k;u&&($e&&(Ce=w-Se),dr&&(He=x-Se)),(!u&&He-Ce>o||u&&Ce-He>o)&&(d(M,t[M]=u?Ce:fe(Ce)),d(S,t[S]=u?He:fe(He))),Ge-Je>l&&(d(D,t[D]=s?Je:le(Je)),d(E,t[E]=s?Ge:le(Ge)))}r.attr("d",x3(e,t)),me(n,t),m1(e,a,t,N)}function me(ze,Se){(s||u)&&Ie();function Ie(){var Be=Se.type!=="path",We=ze.selectAll(".visual-cue").data([0]),Pe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Oe=X(s?Se.xanchor:g3.midRange(Be?[Se.x0,Se.x1]:fn.extractPathCoords(Se.path,Ms.paramIsX))),Ue=ee(u?Se.yanchor:g3.midRange(Be?[Se.y0,Se.y1]:fn.extractPathCoords(Se.path,Ms.paramIsY)));if(Oe=fn.roundPositionForSharpStrokeRendering(Oe,Pe),Ue=fn.roundPositionForSharpStrokeRendering(Ue,Pe),s&&u){var ie="M"+(Oe-1-Pe)+","+(Ue-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var we="M"+(Oe-1-Pe)+","+(Ue-9-Pe)+"v18 h2 v-18 Z";We.attr("d",we)}else{var $e="M"+(Oe-9-Pe)+","+(Ue-1-Pe)+"h18 v2 h-18 Z";We.attr("d",$e)}}}function xe(ze){ze.selectAll(".visual-cue").remove()}function De(ze,Se,Ie){var Be=Se.xref,We=Se.yref,Pe=As.getFromId(Ie,Be),Oe=As.getFromId(Ie,We),Ue="";Be!=="paper"&&!Pe.autorange&&(Ue+=Be),We!=="paper"&&!Oe.autorange&&(Ue+=We),y1.setClipUrl(ze,Ue?"clip"+Ie._fullLayout._uid+Ue:null,Ie)}}function Rq(e,r,t){return e.replace(Ms.segmentRE,function(a){var n=0,i=a.charAt(0),l=Ms.paramIsX[i],o=Ms.paramIsY[i],s=Ms.numParams[i],u=a.slice(1).replace(Ms.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function Xte(e,r){if(g1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){zq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=zq,b3(e)}}}function zq(e){if(g1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Fq(e),delete e._fullLayout._activeShapeIndex,b3(e))}}function Zte(e){if(g1(e)){Fq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wn=gr(),Oq=zt(),Yq=Xt(),Gr=n1(),Jte=x1().eraseActiveShape,b1=Re(),Ir=b1._,Ur=Jq.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"};b1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wn.call("downloadImage",e,t).then(function(a){b1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){b1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.disk,click:function(e){Oq.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.pencil,click:function(e){Oq.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Ga};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Ga};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Ga};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Ga};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Ga};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Ga};Ur.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Ga};Ur.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Ga};Ur.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Ga};Ur.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Gr.eraseshape,click:Jte};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Ga};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Ga};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Ga};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Ga};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:Ga};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:Ga};function Ga(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Yq.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 $q=T3(),Qte=Object.keys($q),Kq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Qq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Kq),hf=[],jte=function(e){if(Qq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();hf.indexOf(r)===-1&&hf.push(r),hf.indexOf(t)===-1&&hf.push(t)}};Qte.forEach(function(e){jte($q[e])});hf.sort();jq.exports={DRAW_MODES:Kq,backButtons:Qq,foreButtons:hf}});var M3=O((K2e,eC)=>{"use strict";var $2e=A3();eC.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 tC=O((Q2e,rC)=>{"use strict";var eae=Re(),pv=br(),rae=lt(),tae=M3();rC.exports=function(r,t){var a=r.modebar||{},n=rae.newContainer(t,"modebar");function i(o,s){return eae.coerce(a,n,tae,o,s)}i("orientation"),i("bgcolor",pv.addOpacity(t.paper_bgcolor,.5));var l=pv.contrast(pv.rgb(t.modebar.bgcolor));i("color",pv.addOpacity(l,.3)),i("activecolor",pv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var lC=O((j2e,iC)=>{"use strict";var k3=kr(),aae=zr(),w1=Re(),aC=n1(),nae=pd().version,iae=new DOMParser;function nC(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ki=nC.prototype;Ki.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(),w1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ki.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)})};Ki.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ki.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&&k3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||aC.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ki.createIcon=function(e){var r=aae(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=iae.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ki.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=k3.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:w1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ki.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var sae=Xt(),oC=wn(),q3=gr(),uae=Oi().isUnifiedHover,fae=lC(),T1=T3(),cae=A3().DRAW_MODES,vae=Re().extendDeep;sC.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=gae(i):!a.displayModeBar&&a.watermark?l=[]:l=dae(r),n?n.update(r,l):t._modeBar=fae(r,l)};function dae(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,B){if(typeof B=="string"){if(B.toLowerCase()===V.toLowerCase())return!0}else{var J=B.name,X=B._cat||B.name;if(J===V||X===V.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(V){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"]),pae(t)&&N.push("select2d","lasso2d");var H=[],F=function(V){H.indexOf(V)===-1&&E.indexOf(V)!==-1&&H.push(V)};if(Array.isArray(o)){for(var Y=[],U=0;U{"use strict";fC.exports={moduleType:"component",name:"modebar",layoutAttributes:M3(),supplyLayoutDefaults:tC(),manage:uC()}});var S3=O((t3e,cC)=>{"use strict";var xae=Aa().FROM_BL;cC.exports=function(r,t,a){a===void 0&&(a=xae[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 qs=O(mv=>{"use strict";var ks=Re(),L3=Qc(),wi=Xt().id2name,bae=_n(),vC=S3(),_ae=Lh(),wae=wt().ALMOST_EQUAL,Tae=Aa().FROM_BL;mv.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 Mae(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lwae*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 M1=kr(),Ua=gr(),qn=zt(),Xn=Re(),P3=la(),R3=a1(),yv=br(),pf=Yr(),mC=$c(),_C=C3(),gv=Zr(),wl=Aa(),wC=qs(),kae=wC.enforce,qae=wC.clean,yC=Qc().doAutoRange,TC="start",Cae="middle",AC="end",Sae=ia().zindexSeparator;ua.layoutStyles=function(e){return Xn.syncOrAsync([qn.doAutoMargin,Dae],e)};function Lae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Dae(e){var r=e._fullLayout,t=r._size,a=t.p,n=gv.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(pf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ua.drawMainTitle(e),_C.manage(e),!r._has("cartesian"))return qn.previousPromises(e);function c(_e,W,j){var Z=_e._lw/2;if(_e._id.charAt(0)==="x"){if(W){if(j==="top")return W._offset-a-Z}else return t.t+t.h*(1-(_e.position||0))+Z%1;return W._offset+W._length+a+Z}if(W){if(j==="right")return W._offset+W._length+a+Z}else return t.l+t.w*(_e.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){zae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:bC(r.yanchor)}).call(P3.positionText,l,i);var f=(r.text.match(P3.BR_TAG_ALL)||[]).length;if(f){var c=wl.LINE_SPACING*f+wl.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=M1.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=o.node().getBBox(),p=h.y+h.height,m=p+mC.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y:m,"text-anchor":a,dy:bC(r.yanchor)}).call(P3.positionText,l,m)}}}};function Eae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Xn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Xn.isTopAnchor(r)&&t==="t"||Xn.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=Pae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function zae(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"&&Eae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),qn.allowAutoMargin(e,n),qn.autoMargin(e,n,o)}function Nae(e,r){var t=e.title,a=e._size,n=0;switch(r===TC?n=t.pad.l:r===AC&&(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 Fae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===wl.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 bC(e){return e==="top"?wl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":wl.MID_SHIFT+"em"}function Iae(e){var r=e.title,t=Cae;return Xn.isRightAnchor(r)?t=AC:Xn.isLeftAnchor(r)&&(t=TC),t}function Hae(e){var r=e.title,t="0em";return Xn.isTopAnchor(r)?t=wl.CAP_SHIFT+"em":Xn.isMiddleAnchor(r)&&(t=wl.MID_SHIFT+"em"),t}ua.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Bae=lo().readPaths,Oae=h1(),MC=Kl().clearOutlineControllers,z3=br(),kC=Yr(),Yae=lt().arrayEditor,qC=uo(),Vae=qC.getPathString;SC.exports={draw:q1,drawOne:CC,activateLastSelection:Wae};function q1(e){var r=e._fullLayout;MC(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(z3.stroke,c).call(z3.fill,f).call(kC.dashLine,y?"solid":h,y?4+d:d);if(Gae(b,e,a),p){var _=Yae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=Bae(o,e);Oae(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 Uae(e,A)})}}function Gae(e,r,t){var a=t.xref+t.yref;kC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Uae(e,r){if(C1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){N3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=N3,q1(e)}}}function Wae(e){if(C1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=N3,q1(e)}}function N3(e){if(C1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(MC(e),delete e._fullLayout._activeSelectionIndex,q1(e))}}});var DC=O((l3e,LC)=>{function Xae(){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}LC.exports=Xae});var PC=O((o3e,EC)=>{function Zae(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}EC.exports=Zae});var zC=O((s3e,RC)=>{var Jae={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}};RC.exports=Jae});var FC=O((u3e,NC)=>{var xv=zC();function $ae(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=xv.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=xv.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=xv.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=xv.create();function b(Y,U){var G=Y.seg.start,V=Y.seg.end,B=U.seg.start,J=U.seg.end;return r.pointsCollinear(G,B,J)?r.pointsCollinear(V,B,J)||r.pointAboveOrOnLine(V,B,J)?1:-1:r.pointAboveOrOnLine(G,B,J)?1:-1}function _(Y){return y.findTransition(function(U){var G=b(Y,U.ev);return G>0})}function w(Y,U){var G=Y.seg,V=U.seg,B=G.start,J=G.end,X=V.start,ee=V.end;t&&t.checkIntersection(G,V);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),de=r.pointsSame(J,ee);if(fe&&de)return U;var Q=!fe&&r.pointBetween(B,X,ee),qe=!de&&r.pointBetween(J,X,ee);if(fe)return qe?d(U,J):d(Y,ee),U;Q&&(de||(qe?d(U,J):d(Y,ee)),d(U,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(U,B):le.alongA===0?d(U,le.pt):le.alongA===1&&d(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 F=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(xv.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 Kae(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(F,Y,U){return f.index=F,f.matches_head=Y,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function bv(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 Qae={union:function(e,r){return bv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return bv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return bv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return bv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return bv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};BC.exports=Qae});var VC=O((v3e,YC)=>{var jae={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 ene=DC(),rne=PC(),GC=FC(),tne=HC(),_v=OC(),UC=VC(),Zn=!1,wv=rne(),cn;cn={buildLog:function(e){return e===!0?Zn=ene():e===!1&&(Zn=!1),Zn===!1?!1:Zn.list},epsilon:function(e){return wv.epsilon(e)},segments:function(e){var r=GC(!0,wv,Zn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=GC(!1,wv,Zn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:_v.union(e.combined,Zn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:_v.intersect(e.combined,Zn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:_v.difference(e.combined,Zn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:_v.differenceRev(e.combined,Zn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:_v.xor(e.combined,Zn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:tne(e.segments,wv,Zn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return UC.toPolygon(cn,e)},polygonToGeoJSON:function(e){return UC.fromPolygon(cn,wv,e)},union:function(e,r){return Tv(e,r,cn.selectUnion)},intersect:function(e,r){return Tv(e,r,cn.selectIntersect)},difference:function(e,r){return Tv(e,r,cn.selectDifference)},differenceRev:function(e,r){return Tv(e,r,cn.selectDifferenceRev)},xor:function(e,r){return Tv(e,r,cn.selectXor)}};function Tv(e,r,t){var a=cn.segments(e),n=cn.segments(r),i=cn.combine(a,n),l=t(i);return cn.polygon(l)}typeof window=="object"&&(window.PolyBool=cn);WC.exports=cn});var JC=O((h3e,ZC)=>{ZC.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 H3=O((p3e,$C)=>{"use strict";var I3=Dd().dot,S1=wt().BADNUM,L1=$C.exports={};L1.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===S1||bl||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===S1||yn||b===S1||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(I3(c,u))>n)return!0;return!1};L1.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 QC=O((m3e,KC)=>{"use strict";KC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var bS=O((y3e,xS)=>{"use strict";var jC=XC(),ane=JC(),kv=gr(),nne=Yr().dashStyle,Av=br(),ine=_i(),lne=Oi().makeEventData,Dv=ff(),one=Dv.freeMode,sne=Dv.rectMode,qv=Dv.drawMode,V3=Dv.openMode,G3=Dv.selectMode,eS=uo(),rS=dv(),lS=h1(),oS=Kl().clearOutline,sS=lo(),B3=sS.handleEllipse,une=sS.readPaths,fne=c1().newShapes,cne=v3(),vne=F3().activateLastSelection,E1=Re(),dne=E1.sorterAsc,uS=H3(),Mv=Vd(),Jn=Xt().getFromId,hne=a1(),pne=k1().redrawReglTraces,P1=QC(),Qi=P1.MINSELECT,mne=uS.filter,U3=uS.tester,W3=o1(),tS=W3.p2r,yne=W3.axValue,gne=W3.getTransform;function X3(e){return e.subplot!==void 0}function xne(e,r,t,a,n){var i=!X3(a),l=one(n),o=sne(n),s=V3(n),u=qv(n),f=G3(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=gne(w),A=r-_.left,k=t-_.top;m._calcInverseTransform(p);var M=E1.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],F=a.yaxes[0],Y=H._length,U=F._length,G=e.altKey&&!(qv(n)&&s),V,B,J,X,ee,le,fe;cS(e,p,a),l&&(V=mne([[A,k]],P1.BENDPX));var de=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?m.newshape:m.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var qe=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ce=Q.line.color||(i?Av.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":nne(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(Av.stroke,ce).call(Av.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:Av.background,stroke:Av.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var ge=b.select(".label-temp");ge.empty()&&(ge=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var _e=m._uid+P1.SELECTID,W=[],j=R1(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var oe=H._id,me=F._id;mS(p,oe,me,j);for(var xe=(p.layout||{}).selections||[],De=[],ze=!1,Se=0;Se=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=m.clickmode;Mv.done(_e).then(function(){if(Mv.clear(_e),oe===2){for(de.remove(),ee=0;ee-1&&fS(me,p,a.xaxes,a.yaxes,a.subplot,a,de),xe==="event"&&Lv(p,void 0);ine.click(p,me,w.id)}).catch(E1.error)}},a.doneFn=function(){be.remove(),Mv.done(_e).then(function(){Mv.clear(_e),!y&&X&&a.selectionDefs&&(X.subtract=G,a.selectionDefs.push(X),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&Cv(a,y),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Lv(p,fe)}).catch(E1.error)}}function fS(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(Ane(o)){cS(e,r,i),d=R1(r,t,a,n);var k=Mne(o,d),M=k.pointNumbers.length>0;if(M?kne(d,k):qne(d)&&(_=nS(k))){for(l&&l.remove(),A=0;A=0}function Tne(e){return e._fullLayout._activeSelectionIndex>=0}function Cv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;wne(n)&&n._fullLayout._deactivateShape(n),Tne(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=qv(t),s=G3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=fne(u,e)),f&&kv.call("_guiRelayout",n,{shapes:f});var c;s&&!X3(e)&&(c=cne(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,kv.call("_guiRelayout",n,{selections:c}).then(function(){r&&vne(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function aS(e){return e._id}function R1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(aS),l=t.map(aS),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function kne(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 Sv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var oe=iS(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var De=yS(oe),ze=gS([Jn(e,me,"x"),Jn(e,xe,"y")]);ze(W,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Lv(e,W),d._reselect=!1}if(!l&&d._deselect){var Se=d._deselect;o=Se.xref,s=Se.yref,Lne(o,s,f)||mS(e,o,s,a),Z&&(W.points.length?Lv(e,W):$3(e)),d._deselect=!1}return{eventData:W,selectionTesters:t}}function Sne(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";_S.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 Ev=O((x3e,wS)=>{"use strict";wS.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 mf=O((_3e,MS)=>{"use strict";var TS=K3(),AS=aa(),z1=ia(),zne=lt().templatedArray,b3e=Ev();MS.exports=zne("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:AS({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:TS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:TS.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",z1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",z1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",z1.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",z1.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:AS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var N1=O((w3e,kS)=>{"use strict";kS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Q3=O((T3e,qS)=>{"use strict";qS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ti=O((A3e,zS)=>{"use strict";var CS=yi().axisHoverFormat,{hovertemplateAttrs:Nne,texttemplateAttrs:Fne,templatefallbackAttrs:SS}=gn(),LS=Wc(),Ine=aa(),DS=di().dash,Hne=di().pattern,Bne=Yr(),One=N1(),Pv=mt().extendFlat,Yne=Q3();function ES(e){return{valType:"any",dflt:0,editType:"calc"}}function PS(e){return{valType:"any",editType:"calc"}}function RS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}zS.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:ES("x"),yperiod:ES("y"),xperiod0:PS("x0"),yperiod0:PS("y0"),xperiodalignment:RS("x"),yperiodalignment:RS("y"),xhoverformat:CS("x"),yhoverformat:CS("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:Fne(),texttemplatefallback:SS({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:Nne({},{keys:One.eventDataKeys}),hovertemplatefallback:SS(),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:Pv({},DS,{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:Yne(!0),fillgradient:Pv({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:Hne,marker:Pv({symbol:{valType:"enumerated",values:Bne.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:Pv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Pv({},DS,{arrayOk:!0}),editType:"calc"},LS("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"},LS("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:Ine({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var j3=O((k3e,IS)=>{"use strict";var NS=mf(),FS=Ti().line,Vne=di().dash,F1=mt().extendFlat,Gne=vi().overrideAll,Une=lt().templatedArray,M3e=Ev();IS.exports=Gne(Une("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:F1({},NS.xref,{}),yref:F1({},NS.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:FS.color,width:F1({},FS.width,{min:1,dflt:1}),dash:F1({},Vne,{dflt:"dot"})}}),"arraydraw","from-root")});var YS=O((q3e,OS)=>{"use strict";var HS=Re(),I1=Zr(),Wne=Yn(),Xne=j3(),BS=uo();OS.exports=function(r,t){Wne(r,t,{name:"selections",handleItemDefaults:Zne});for(var a=t.selections,n=0;n{"use strict";VS.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 Rv=O((S3e,XS)=>{"use strict";var Jne=gr(),US=Re(),WS=Xt();XS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Jne.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 ZS=F3(),zv=bS();JS.exports={moduleType:"component",name:"selections",layoutAttributes:j3(),supplyLayoutDefaults:YS(),supplyDrawNewSelectionDefaults:GS(),includeBasePlot:Rv()("selections"),draw:ZS.draw,drawOne:ZS.drawOne,reselect:zv.reselect,prepSelect:zv.prepSelect,clearOutline:zv.clearOutline,clearSelectionsCache:zv.clearSelectionsCache,selectOnClick:zv.selectOnClick}});var mL=O((D3e,pL)=>{"use strict";var nx=kr(),$n=Re(),$S=$n.numberFormat,$ne=Fn(),Kne=F2(),H1=gr(),iL=$n.strTranslate,Qne=la(),KS=br(),co=Yr(),jne=_i(),QS=Zr(),eie=no(),rie=xi(),lL=ff(),B1=lL.selectingOrDrawing,tie=lL.freeMode,aie=Aa().FROM_TL,nie=a1(),iie=k1().redrawReglTraces,lie=zt(),rx=Xt().getFromId,oie=yf().prepSelect,sie=yf().clearOutline,uie=yf().selectOnClick,ex=S3(),ix=ia(),jS=ix.MINDRAG,Qa=ix.MINZOOM,eL=!0;function fie(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,F,Y,U,G;t+=r.yaxis._shift;function V(){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 Me=r.overlays,Ce=0;Ce=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(ax(He),Me===2&&!f&&Ue(),u)Je.indexOf("select")>-1&&uie(Ce,He,m,y,r.id,X),Je.indexOf("event")>-1&&jne.click(He,Ce,r.id);else if(Me===1&&f){var Ge=l?d:c,Xe=l==="s"||o==="w"?0:1,lr=Ge._name+".range["+Xe+"]",tr=cie(Ge,Xe),Ke="left",Fe="middle";if(Ge.fixedrange)return;l?(Fe=l==="n"?"top":"bottom",Ge.side==="right"&&(Ke="right")):o==="e"&&(Ke="right"),He._context.showAxisRangeEntryBoxes&&nx.select(J).call(Qne.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(tr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Fe}).on("edit",function(ne){var se=Ge.d2r(ne);se!==void 0&&H1.call("_guiRelayout",He,lr,se)})}}rie.init(X);var fe,de,Q,qe,ce,be,ge,_e,W,j;function Z(Me,Ce,He){var Je=J.getBoundingClientRect();fe=Ce-Je.left,de=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ge=$n.apply3DTransform(e._fullLayout._invTransform)(fe,de);fe=Ge[0],de=Ge[1],Q={l:fe,r:fe,w:0,t:de,b:de,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:$ne(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+w+"V"+x+"H0V0",be=!1,ge="xy",j=!1,_e=uL(s,qe,b,_,ce),W=fL(s,b,_)}function oe(Me,Ce){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(w,U*Me+fe)),Je=Math.max(0,Math.min(x,G*Ce+de)),Ge=Math.abs(He-fe),Xe=Math.abs(Je-de);Q.l=Math.min(fe,He),Q.r=Math.max(fe,He),Q.t=Math.min(de,Je),Q.b=Math.max(de,Je);function lr(){ge="",Q.r=Q.l,Q.t=Q.b,W.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ge>Qa||Xe>Qa?(ge="xy",Ge/w>Xe/x?(Xe=Ge*x/w,de>Je?Q.t=de-Xe:Q.b=de+Xe):(Ge=Xe*w/x,fe>He?Q.l=fe-Ge:Q.r=fe+Ge),W.attr("d",O1(Q))):lr();else if(k.isSubplotConstrained)if(Ge>Qa||Xe>Qa){ge="xy";var tr=Math.min(Q.l/w,(x-Q.b)/x),Ke=Math.max(Q.r/w,(x-Q.t)/x);Q.l=tr*w,Q.r=Ke*w,Q.b=(1-tr)*x,Q.t=(1-Ke)*x,W.attr("d",O1(Q))}else lr();else!S||Xe0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(lr.maxallowed!==void 0&&E===(lr.range[0]1&&(tr.maxallowed!==void 0&&R===(tr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function die(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function uL(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",iL(t,a)).attr("d",n+"Z")}function fL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:KS.background,stroke:KS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",iL(r,t)).attr("d","M0,0Z")}function cL(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"),vL(e,r,n,i)}function vL(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 ax(e){nx.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function dL(e){eL&&e.data&&e._context.showTips&&($n.notifier($n._(e,"Double-click to zoom back out"),"long"),eL=!1)}function hie(e,r){return"M"+(e.l-.5)+","+(r-Qa-.5)+"h-3v"+(2*Qa+1)+"h3ZM"+(e.r+.5)+","+(r-Qa-.5)+"h3v"+(2*Qa+1)+"h-3Z"}function pie(e,r){return"M"+(r-Qa-.5)+","+(e.t-.5)+"v-3h"+(2*Qa+1)+"v3ZM"+(r-Qa-.5)+","+(e.b+.5)+"v3h"+(2*Qa+1)+"v-3Z"}function O1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Qa)/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 aL(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(),Y1=_i(),yie=xi(),gie=no(),Ai=mL().makeDragBox,fa=ia().DRAGGERSIZE;V1.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=Ai(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]&&Y1.hover(r,d,i)},Y1.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,yie.unhover(r,d))},r._context.showAxisDragHandles&&(Ai(r,l,o._offset-fa,s._offset-fa,fa,fa,"n","w"),Ai(r,l,o._offset+o._length,s._offset-fa,fa,fa,"n","e"),Ai(r,l,o._offset-fa,s._offset+s._length,fa,fa,"s","w"),Ai(r,l,o._offset+o._length,s._offset+s._length,fa,fa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=fa),Ai(r,l,o._offset+o._length*.1,f,o._length*.8,fa,"","ew"),Ai(r,l,o._offset,f,o._length*.1,fa,"","w"),Ai(r,l,o._offset+o._length*.9,f,o._length*.1,fa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=fa),Ai(r,l,c,s._offset+s._length*.1,fa,s._length*.8,"ns",""),Ai(r,l,c,s._offset+s._length*.9,fa,s._length*.1,"s",""),Ai(r,l,c,s._offset,fa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Y1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Y1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},V1.updateFx(r)}};V1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";gie(r._draggers,t)}});var xL=O((P3e,gL)=>{"use strict";var yL=gr();gL.exports=function(r){for(var t=yL.layoutArrayContainers,a=yL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var xie=Bl(),ox=Ld(),Nv=Qo(),bie=ag().sorterAsc,sx=gr();Fv.containerArrayMatch=xL();var _ie=Fv.isAddVal=function(r){return r==="add"||xie(r)},bL=Fv.isRemoveVal=function(r){return r===null||r==="remove"};Fv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=sx.getComponentMethod(l,"supplyLayoutDefaults"),s=sx.getComponentMethod(l,"draw"),u=sx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ox||s===ox,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Nv.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(bL(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Nv.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(bie),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)){Nv.warn("index out of range",l,M);continue}if(E!==void 0)D.length>1&&Nv.warn("Insertion & removal are incompatible with edits to the same index.",l,M),bL(E)?_.push(M):R?(E==="add"&&(E={}),y.splice(M,0,E),b&&b.splice(M,0,{})):Nv.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!==ox){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 ML=zr(),kL=gr(),Wa=Re(),Iv=zt(),qL=Xt(),CL=br(),Hv=qL.cleanId,wie=qL.getFromTrace,ux=kL.traceIs,Tie=["x","y","z"];Kn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Wa.log("Clearing previous rejected promises from queue."),e._promises=[]};Kn.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=(Iv.subplotsRegistry.cartesian||{}).attrRegex,n=(Iv.subplotsRegistry.polar||{}).attrRegex,i=(Iv.subplotsRegistry.ternary||{}).attrRegex,l=(Iv.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"),CL.clean(e),e.template&&e.template.layout&&Kn.cleanLayout(e.template.layout),e};function gf(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Hv(a,n,!0))}Kn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Kn.hasParent=function(e,r){for(var t=AL(r);t;){if(t in e)return!0;t=AL(t)}return!1};Kn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Wa.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;aWa.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)?fx(n,i):!1))return!1}return!0}return!1};Kn.collectionsAreEqual=fx});var mx=O(Vr=>{"use strict";var X1=kr(),kie=zr(),qie=yg(),rr=Re(),vt=rr.nestedProperty,dx=Bc(),ja=f9(),Qn=gr(),ep=Yu(),_r=zt(),Xa=Zr(),Cie=N2(),Sie=_n(),cx=Yr(),Lie=br(),Die=lx().initInteractions,Eie=os(),Pie=yf().clearOutline,RL=Ko().dfltConfig,U1=_L(),Wt=SL(),tt=k1(),vo=vi(),Rie=ia().AX_NAME_PATTERN,vx=0,LL=5;function zie(e,r,t,a){var n;if(e=rr.getGraphDiv(e),dx.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=dx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.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)}NL(e,a),t||(t={}),X1.select(e).classed("js-plotly-plot",!0),cx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Wt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(nle(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),cx.initGradients(e),cx.initPatterns(e),s&&Xa.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 FL(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]),J1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&J1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Bie(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,F=S.parts.slice(0,R).join("."),Y=vt(e.layout,F).get(),U=vt(a,F).get(),G=S.get();if(D!==void 0){b[M]=D,_[M]=N==="reverse"?D:Tl(G);var V=ep.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&D!==null)for(var B in V.impliedEdits)w(rr.relativeAttr(M,B),V.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(WL))k(H),vt(a,F+"._inputRange").set(null);else if(H.match(XL)){k(H),vt(a,F+"._inputRange").set(null);var X=vt(a,F).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else H.match(Gie)&&vt(a,F+"._inputDomain").set(null);if(N==="type"){A=Y;var ee=U.type==="linear"&&D==="log",le=U.type==="log"&&D==="linear";if(ee||le){if(!A||!A.range)w(F+".autorange",!0);else if(U.autorange)ee&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var fe=A.range[0],de=A.range[1];ee?(fe<=0&&de<=0&&w(F+".autorange",!0),fe<=0?fe=de/1e6:de<=0&&(de=fe/1e6),w(F+".range[0]",Math.log(fe)/Math.LN10),w(F+".range[1]",Math.log(de)/Math.LN10)):(w(F+".range[0]",Math.pow(10,fe)),w(F+".range[1]",Math.pow(10,de)))}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"],Qn.getComponentMethod("annotations","convertCoords")(e,U,D,w),Qn.getComponentMethod("images","convertCoords")(e,U,D,w)}else w(F+".autorange",!0),w(F+".range",null);vt(a,F+"._inputRange").set(null)}else if(N.match(Rie)){var Q=vt(a,M).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),Qn.getComponentMethod("annotations","convertCoords")(e,Q,qe,w),Qn.getComponentMethod("images","convertCoords")(e,Q,qe,w)}var ce=U1.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var be=ce.property,ge=V||{editType:"calc"};c!==""&&be===""&&(U1.isAddVal(D)?_[M]=null:U1.isRemoveVal(D)?_[M]=(vt(t,f).get()||[])[c]:rr.warn("unrecognized full object value",r)),vo.update(y,ge),u[f]||(u[f]={});var _e=u[f][c];_e||(_e=u[f][c]={}),_e[be]=D,delete r[M]}else N==="reverse"?(Y.range?Y.range.reverse():(w(F+".autorange",!0),Y.range=[1,0]),U.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(D===!1&&G!==!1||D!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(D==="lasso"||D==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:V?vo.update(y,V):y.calc=!0,S.set(D))}}for(f in u){var W=U1.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var j in x){A=Xa.getFromId(e,j);var Z=A&&A._constraintGroup;if(Z){y.calc=!0;for(var oe in Z)x[oe]||(Xa.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=vt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Xie(e,r){for(var t=0;t[F,e._ev.listeners(F)]);i=Vr.newPlot(e,r,t,a).then(()=>{for(let[F,Y]of H)Y.forEach(U=>e.on(F,U));return Vr.react(e,r,t,a)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),Jie(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=Qie(e,s,d,h,p),y=m.newDataRevision,b=Kie(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(tt.doTicksRelayout),_r.doCalcdata(e),tt.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=Qn.getComponentMethod(S,"drawOne");if(E!==rr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Kie(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=vo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=ep.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&&rr.isPlainObject(r);if(M)x.push({type:"object",data:b(rr.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 ele(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.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(rr.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&&vxS.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.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 ja&&ja.add(e,o,u,s,f),_r.modifyFrames(e,i)}function tle(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),dx.purge(e),r._container&&r._container.remove(),delete e._context,e}function ale(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.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 nle(e){var r=X1.select(e),t=e._fullLayout;if(t._calcInverseTransform=ale,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={};X1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Eie.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=jie;Vr.addFrames=ele;Vr.deleteFrames=rle;Vr.addTraces=YL;Vr.deleteTraces=VL;Vr.extendTraces=BL;Vr.moveTraces=hx;Vr.prependTraces=OL;Vr.newPlot=Hie;Vr._doPlot=zie;Vr.purge=tle;Vr.react=$ie;Vr.redraw=Iie;Vr.relayout=Bv;Vr.restyle=$1;Vr.setPlotConfig=Nie;Vr.update=Q1;Vr._guiRelayout=px(Bv);Vr._guiRestyle=px($1);Vr._guiUpdate=px(Q1);Vr._storeDirectGUIEdit=Vie});var Cs=O(ji=>{"use strict";var ile=gr();ji.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};ji.getRedrawFunc=function(e){return function(){ile.getComponentMethod("colorbar","draw")(e)}};ji.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ji.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var $L=window.URL||window.webkitURL;ji.createObjectURL=function(e){return $L.createObjectURL(e)};ji.revokeObjectURL=function(e){return $L.revokeObjectURL(e)};ji.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=lle(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ji.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function lle(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var gx=kr(),I3e=Re(),ole=Yr(),sle=br(),H3e=os(),yx=/"/g,Yv="TOBESTRIPPED",ule=new RegExp('("'+Yv+")|("+Yv+'")',"g");function fle(e){var r=gx.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 cle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}KL.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(ole.setRect,0,0,o,s).call(sle.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var vle=Re(),dle=$d().EventEmitter,Vv=Cs();function hle(e){var r=e.emitter||new dle,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"||vle.isSafari()?b=Vv.encodeSVG(l):(y=Vv.createBlob(l,"svg"),b=Vv.createObjectURL(y)),s.width=d,s.height=h,m.onload=function(){var _;switch(y=null,Vv.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,Vv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},m.src=b});return e.promise?t:r}QL.exports=hle});var bx=O((Y3e,rD)=>{"use strict";var jL=zr(),eD=mx(),ple=zt(),el=Re(),Gv=Cs(),mle=tp(),yle=ap(),gle=pd().version,xx={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,r){r=r||{};var t,a,n,i;el.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=el.getGraphDiv(e),t=el.extendDeep([],e.data),a=el.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||el.validate(r[k],xx[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 "+el.join2(xx.format.values,", "," or ")+".");var o={};function s(k,M){return el.coerce(r,o,xx,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=el.extendFlat({},a);f?y.width=f:r.width===null&&jL(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&jL(i.height)&&(y.height=i.height);var b=el.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=Gv.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Gv.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var S=mle(m,u,d),D=m._fullLayout.width,E=m._fullLayout.height;function R(){eD.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=ple.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=gle,N=JSON.stringify(N),R(),k(p?N:Gv.encodeJSON(N))}if(R(),u==="svg")return k(p?S:Gv.encodeSVG(S));var H=document.createElement("canvas");H.id=el.randstr(),yle({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(Gv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){eD.newPlot(m,t,y,b).then(_).then(w).then(x).then(function(S){k(A(S))}).catch(function(S){M(S)})})}rD.exports=xle});var nD=O((V3e,aD)=>{"use strict";var jn=Re(),ble=zt(),_le=Yu(),wle=Ko().dfltConfig,Mi=jn.isPlainObject,Ls=Array.isArray,_x=jn.isArrayOrTypedArray;aD.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=_le.get(),n=[],i={_context:jn.extendFlat({},wle)},l,o;Ls(r)?(i.data=jn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ca("array","data"))),Mi(t)?(i.layout=jn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ca("object","layout"))),ble.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ca("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(ca("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],jn.validate(k,A)?M!==k&&M!==+k&&a.push(ca("dynamic",n,u.concat(x,w),k,M)):a.push(ca("value",n,u.concat(x,w),k))}else a.push(ca("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var Sle=Re(),ip=Cs();function Lle(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=ip.createBlob(e,t),u=ip.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ip.revokeObjectURL(u),s=null,l(r);if(Sle.isSafari()){var f=t==="svg"?",":";base64,";return ip.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}iD.exports=Lle});var wx=O((W3e,sD)=>{"use strict";var oD=Re(),Dle=bx(),Ele=lD(),U3e=Cs();function Ple(e,r){var t;return oD.isPlainObject(e)||(t=oD.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=Dle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),Ele(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}sD.exports=Ple});var dD=O(Tx=>{"use strict";var vn=Re(),dn=vn.isPlainObject,uD=Yu(),fD=zt(),Rle=an(),cD=lt(),vD=Ko().dfltConfig;Tx.makeTemplate=function(e){e=vn.isPlainObject(e)?e:vn.getGraphDiv(e),e=vn.extendDeep({_context:vD},{data:e.data,layout:e.layout}),fD.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={};Uv(h,p,Nle.bind(null,h));var m=vn.coerce(h,{},Rle,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Uv(t,a.layout,zle.bind(null,t)),delete a.layout.template;var n=t.template;if(dn(n)){var i=n.layout,l,o,s,u,f,c;dn(i)&&lp(i,a.layout);var d=n.data;if(dn(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=ei(w,A,x);dn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:M,templateitemname:k.templateitemname}),_(k,M)):Array.isArray(k)&&Fle(k)&&_(k,M)}}if(_({data:s,layout:o},""),l.length)return l.map(Ile)};function Fle(e){for(var r=0;r{"use strict";var ea=mx();bt._doPlot=ea._doPlot;bt.newPlot=ea.newPlot;bt.restyle=ea.restyle;bt.relayout=ea.relayout;bt.redraw=ea.redraw;bt.update=ea.update;bt._guiRestyle=ea._guiRestyle;bt._guiRelayout=ea._guiRelayout;bt._guiUpdate=ea._guiUpdate;bt._storeDirectGUIEdit=ea._storeDirectGUIEdit;bt.react=ea.react;bt.extendTraces=ea.extendTraces;bt.prependTraces=ea.prependTraces;bt.addTraces=ea.addTraces;bt.deleteTraces=ea.deleteTraces;bt.moveTraces=ea.moveTraces;bt.purge=ea.purge;bt.addFrames=ea.addFrames;bt.deleteFrames=ea.deleteFrames;bt.animate=ea.animate;bt.setPlotConfig=ea.setPlotConfig;var Hle=Ec().getGraphDiv,Ble=x1().eraseActiveShape;bt.deleteActiveShape=function(e){return Ble(Hle(e))};bt.toImage=bx();bt.validate=nD();bt.downloadImage=wx();var hD=dD();bt.makeTemplate=hD.makeTemplate;bt.validateTemplate=hD.validateTemplate});var Wv=O((J3e,mD)=>{"use strict";var Ax=Re(),Ole=gr();mD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=Ole.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ax.minRowLength(i);l?o=Math.min(u,Ax.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ax.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ds=O(($3e,xD)=>{"use strict";var yD=Re().dateTick0,Yle=wt(),Vle=Yle.ONEWEEK;function gD(e,r){return e%Vle===0?yD(r,1):yD(r,0)}xD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",gD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",gD(o,t.ycalendar)),n("yperiodalignment"))}}});var wD=O((K3e,_D)=>{"use strict";var bD=["orientation","groupnorm","stackgaps"];_D.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 TD=br(),AD=bn().hasColorscale,MD=Wu(),Gle=wn();kD.exports=function(r,t,a,n,i,l={}){var o=Gle.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),AD(r,"marker")&&MD(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=TD.background:u=TD.defaultLine,i("marker.line.color",u),AD(r,"marker.line")&&MD(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 SD=O((j3e,CD)=>{"use strict";var Ule=Re().isArrayOrTypedArray,Wle=bn().hasColorscale,Xle=Wu();CD.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),Wle(r,"line"))Xle(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Ule(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var DD=O((exe,LD)=>{"use strict";LD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var PD=O((rxe,ED)=>{"use strict";var Zle=Re();ED.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Zle.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var ND=O((txe,zD)=>{"use strict";var sp=br(),RD=Re().isArrayOrTypedArray;function Jle(e){for(var r=sp.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var FD=Re(),$le=gr(),Kle=Ti(),Qle=N1(),xf=wn(),jle=Wv(),eoe=Ds(),roe=wD(),toe=qD(),aoe=SD(),ID=DD(),noe=PD(),ioe=ND(),loe=Re().coercePattern;HD.exports=function(r,t,a,n){function i(h,p){return FD.coerce(r,t,Kle,h,p)}var l=jle(r,t,n,i);if(l||(t.visible=!1),!!t.visible){eoe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=roe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var ooe=qs().getAxisGroup;OD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=ooe(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 VD=O((ixe,YD)=>{"use strict";var soe=Re(),uoe=bf(),foe=Ti();YD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return soe.coerce(n._input,n,foe,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 UD=O((lxe,GD)=>{"use strict";var coe=Re(),voe=rh();GD.exports=function(e,r){function t(n,i){return coe.coerce(e,r,voe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Es=O((oxe,XD)=>{"use strict";var doe=zr(),WD=Re(),hoe=WD.dateTime2ms,up=WD.incrementMonth,poe=wt(),moe=poe.ONEAVGMONTH;XD.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(doe(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=hoe(d,u)||0,p=[],m=[],y=[],b=n.length,_=0;_w;)k=up(k,-o,u);for(;k<=w;)k=up(k,o,u);A=up(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 $D=O((sxe,JD)=>{"use strict";var Mx=bn().hasColorscale,kx=Xc(),ZD=wn();JD.exports=function(r,t){ZD.hasLines(t)&&Mx(t,"line")&&kx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),ZD.hasMarkers(t)&&(Mx(t,"marker")&&kx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Mx(t,"marker.line")&&kx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var qx=O((uxe,KD)=>{"use strict";var Lt=Re();KD.exports=function(r,t){for(var a=0;a{"use strict";var QD=Re();jD.exports=function(r,t){QD.isArrayOrTypedArray(t.selectedpoints)&&QD.tagSelected(r,t)}});var Ex=O((cxe,lE)=>{"use strict";var eE=zr(),Sx=Re(),Zv=Zr(),rE=Es(),Cx=wt().BADNUM,Lx=wn(),yoe=$D(),goe=qx(),xoe=Xv();function boe(e,r){var t=e._fullLayout,a=r._xA=Zv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Zv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=rE(r,a,"x",i),s=rE(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=Dx(r,t,a,n),m=!1,y,b,_,w,x,A;nE(t,r);var k="x",M="y",S;if(p)Sx.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=aE(r,c);tE(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";oE.exports=fp;var _oe=Re().distinctVals;function fp(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";uE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tf=O((hxe,dE)=>{"use strict";var ri=zr(),{isArrayOrTypedArray:Al}=Re(),{BADNUM:_f}=wt(),woe=gr(),$v=Zr(),{getAxisGroup:Toe}=qs(),cp=sE(),{TEXTPAD:Aoe}=Jv(),{LINE_SPACING:Moe}=Aa(),{BR_TAG_ALL:koe}=la();function qoe(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||!ri(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Moe*t+Aoe;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 Foe(e,r,t,a){for(var n=wf(a),i=0;i{"use strict";var hE=Ex(),pE=Tf().setGroupPositions;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;uD[f]&&f{"use strict";var Ooe=Yr(),_E=wt(),Kv=_E.BADNUM,wE=_E.LOG_CLIP,gE=wE+.5,xE=wE-.5,vp=Re(),Yoe=vp.segmentsIntersect,bE=vp.constrain,Hx=N1();TE.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=[],_=Hx.minTolerance,w=r.length,x=new Array(w),A=0,k,M,S,D,E,R,N,H,F,Y,U,G,V,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===Kv){if(l&&(se=n.c2p(ne.x,!0)),se===Kv)return!1;o&&Le===Kv&&(se*=Math.abs(n._m*u*(n._m>0?gE:xE)/(i._m*s*(i._m>0?gE:xE)))),se*=1e3}if(Le===Kv){if(o&&(Le=i.c2p(ne.y,!0)),Le===Kv)return!1;Le*=1e3}return[se,Le]}function le(Fe,ne,se,Le){var Ee=se-Fe,ar=Le-ne,cr=.5-Fe,sr=.5-ne,Mr=Ee*Ee+ar*ar,Or=Ee*cr+ar*sr;if(Or>0&&Or1||Math.abs(cr.y-se[0][1])>1)&&(cr=[cr.x,cr.y],Le&&qe(cr,Fe)ge||Fe[1]<_e||Fe[1]>W)return[bE(Fe[0],be,ge),bE(Fe[1],_e,W)]}function Be(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===be||Fe[0]===ge)||Fe[1]===ne[1]&&(Fe[1]===_e||Fe[1]===W))return!0}function We(Fe,ne){var se=[],Le=Ie(Fe),Ee=Ie(ne);return Le&&Ee&&Be(Le,Ee)||(Le&&se.push(Le),Ee&&se.push(Ee)),se}function Pe(Fe,ne,se){return function(Le,Ee){var ar=Ie(Le),cr=Ie(Ee),sr=[];if(ar&&cr&&Be(ar,cr))return sr;ar&&sr.push(ar),cr&&sr.push(cr);var Mr=2*vp.constrain((Le[Fe]+Ee[Fe])/2,ne,se)-((ar||Le)[Fe]+(cr||Ee)[Fe]);if(Mr){var Or;ar&&cr?Or=Mr>0==ar[Fe]>cr[Fe]?ar:cr:Or=ar||cr,Or[Fe]+=Mr}return sr}}var Oe;p==="linear"||p==="spline"?Oe=Se:p==="hv"||p==="vh"?Oe=We:p==="hvh"?Oe=Pe(0,be,ge):p==="vhv"&&(Oe=Pe(1,_e,W));function Ue(Fe,ne){var se=ne[0]-Fe[0],Le=(ne[1]-Fe[1])/se,Ee=(Fe[1]*ne[0]-ne[1]*Fe[0])/se;return Ee>0?[Le>0?be:ge,W]:[Le>0?ge:be,_e]}function ie(Fe){var ne=Fe[0],se=Fe[1],Le=ne===x[A-1][0],Ee=se===x[A-1][1];if(!(Le&&Ee))if(A>1){var ar=ne===x[A-2][0],cr=se===x[A-2][1];Le&&(ne===be||ne===ge)&&ar?cr?A--:x[A-1]=Fe:Ee&&(se===_e||se===W)&&cr?ar?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),De=null,me=xe=0}var $e=vp.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,de=Fe[1]/u,Z=Fe[0]ge?ge:0,oe=Fe[1]<_e?_e:Fe[1]>W?W:0,Z||oe){if(!A)x[A++]=[Z||Fe[0],oe||Fe[1]];else if(De){var ne=Oe(De,Fe);ne.length>1&&(we(ne[0]),x[A++]=ne[1])}else ze=Oe(x[A-1],Fe)[0],x[A++]=ze;var se=x[A-1];Z&&oe&&(se[0]!==Z||se[1]!==oe)?(De&&(me!==Z&&xe!==oe?ie(me&&xe?Ue(De,Fe):[me||Z,xe||oe]):me&&xe&&ie([me,xe])),ie([Z,oe])):me-Z&&xe-oe&&ie([Z||me,oe||xe]),De=Fe,me=Z,xe=oe}else De&&we(Oe(De,Fe)[0]),x[A++]=Fe}for(k=0;kQ(R,Ne))break;S=R,V=F[0]*H[0]+F[1]*H[1],V>U?(U=V,D=R,N=!1):V=r.length||!R)break;dr(R),M=R}}De&&ie([me||De[0],xe||De[1]]),b.push(x.slice(0,A))}var Me=p.slice(p.length-1);if(f&&Me!=="h"&&Me!=="v"){for(var Ce=!1,He=-1,Je=[],Ge=0;Ge{"use strict";var ME={tonextx:1,tonexty:1,tonext:1};kE.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 ki=kr(),Voe=gr(),Qv=Re(),Af=Qv.ensureSingle,SE=Qv.identity,Nt=Yr(),Mf=wn(),Goe=AE(),Uoe=qE(),dp=H3().tester;LE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Uoe(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(),Woe(r,o,t),f){l&&(s=l());var d=ki.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){CE(r,p,t,h,c,this,i)})})}else o.each(function(h,p){CE(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Woe(e,r,t){r.each(function(a){var n=Af(ki.select(this),"g","fills");Nt.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,SE);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=Af(ki.select(this),"path","js-fill")})})}function CE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Xoe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,m=ki.select(i),y=Af(m,"g","errorbars"),b=Af(m,"g","lines"),_=Af(m,"g","points"),w=Af(m,"g","text");if(Voe.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 F,Y,U="",G="",V,B,J,X,ee,le,fe=[];h._polygons=[];var de=[],Q=[],qe=Qv.noop;if(x=h._ownFill,Mf.hasLines(h)||h.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Nt.steps(p.shape),B=Nt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=B=function(Pe){var Oe=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Oe[0]&&Pe[0][1]===Oe[1]?Nt.smoothclosed(Pe.slice(1),p.smoothing):Nt.smoothopen(Pe,p.smoothing)}:V=B=function(Pe){return"M"+Pe.join("L")},J=function(Pe){return B(Pe.reverse())},Q=Goe(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}),de=new Array(Q.length);var ce=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;Mf.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";EE.exports={container:"marker",min:"cmin",max:"cmax"}});var RE=O((bxe,PE)=>{"use strict";var pp=Zr();PE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=pp.getFromTrace(i,t,"x"),o=pp.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=pp.tickText(l,l.c2l(s),!0).text,n.yLabel=pp.tickText(o,o.c2l(u),!0).text,n}});var Vx=O((_xe,zE)=>{"use strict";var Bx=kr(),kf=Yr(),Zoe=gr();function Joe(e){var r=Bx.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=Bx.select(this),n=t.trace||t[0].trace;Ox(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Bx.select(this),n=t.trace||t[0].trace;Yx(a,n,e)}),r.selectAll("g.trace path.js-line").call(kf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(kf.fillGroupStyle,e,!1),Zoe.getComponentMethod("errorbars","style")(r)}function Ox(e,r,t){kf.pointStyle(e.selectAll("path.point"),r,t)}function Yx(e,r,t){kf.textPointStyle(e.selectAll("text"),r,t)}function $oe(e,r,t){var a=r[0].trace;a.selectedpoints?(kf.selectedPointStyle(t.selectAll("path.point"),a),kf.selectedTextStyle(t.selectAll("text"),a)):(Ox(t,a,e),Yx(t,a,e))}zE.exports={style:Joe,stylePoints:Ox,styleText:Yx,styleOnSelect:$oe}});var FE=O((wxe,NE)=>{"use strict";var qf=br(),Koe=wn();NE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&qf.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&&qf.opacity(i)?i:l&&qf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?qf.opacity(n)<.3?qf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&qf.opacity(a)&&Koe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var BE=O((Txe,HE)=>{"use strict";var mp=Re(),IE=_i(),Qoe=gr(),joe=FE(),Gx=br(),ese=mp.fillText;HE.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(G){if(p){var V=o.c2p(G.xStart),B=o.c2p(G.xEnd);return u>=Math.min(V,B)&&u<=Math.max(V,B)?0:1/0}var J=Math.max(3,G.mrc||0),X=1-1/J,ee=Math.abs(o.c2p(G.x)-u);return ee=Math.min(V,B)&&f<=Math.max(V,B)?0:1/0}var J=Math.max(3,G.mrc||0),X=1-1/J,ee=Math.abs(s.c2p(G.y)-f);return eefe!=W>=fe&&(be=qe[Q-1][0],ge=qe[Q][0],W-_e&&(ce=be+(ge-be)*(fe-_e)/(W-_e),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(d.indexOf("fills")!==-1&&l._fillElement){var F=N(l._fillElement)&&!N(l._fillExclusionElement);if(F){var Y=H(l._polygons);Y===null&&(Y={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=Gx.defaultLine;return Gx.opacity(l.fillcolor)?U=l.fillcolor:Gx.opacity((l.line||{}).color)&&(U=l.line.color),mp.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&&!mp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var VE=O((Axe,YE)=>{"use strict";var OE=wn();YE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,d=!OE.hasMarkers(o)&&!OE.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";GE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var JE=O((kxe,ZE)=>{"use strict";var jv=gr().traceIs,Ux=p2();ZE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(rse(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function rse(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=tse(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:!jv(i,"cartesian")||jv(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,XE(i,a)){var u=WE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(XE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function WE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function XE(e,r){var t=WE(e),a=jv(e,"box-violin"),n=jv(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var KE=O((qxe,$E)=>{"use strict";var ase=yn().isTypedArraySpec;function nse(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||ase(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=nse(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var eP=O((Cxe,jE)=>{"use strict";var QE=Fn().mix,ise=In(),lse=Re();jE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return lse.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=QE(i,n.bgColor,n.blend||ise.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=QE(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 gp=O((Sxe,lP)=>{"use strict";var rP=zr(),ose=gr(),e0=Re(),sse=lt(),use=Yn(),Wx=_n(),tP=ch(),aP=vh(),fse=hh(),cse=ph(),vse=KE(),dse=eP(),hse=N2(),nP=Lh(),yp=ia().WEEKDAY_PATTERN,pse=ia().HOUR_PATTERN;lP.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=ose.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=e0.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"),nP(t,i),hse(r,t,a,n),vse(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Wx.color.dflt?m:o.color,b=s.label||i._dfltTitle[l];if(cse(r,t,a,c,n),!u)return t;a("title.text",b),e0.coerceFont(a,"title.font",o,{overrideDflt:{size:e0.bigFont(o.size),color:y}}),tP(r,t,a,c);var _=n.hasMinor;if(_&&(sse.newContainer(t,"minor"),tP(r,t,a,c,{isMinor:!0})),fse(r,t,a,c,n),aP(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,aP(r,t,a,n),n.isMinor=w}dse(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Wx}),_&&!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(use(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:mse}),!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=iP(i[o]),s){l=yp;break}}var u=a("pattern",l);if(u===yp)for(o=0;o<2;o++)s=iP(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case yp:if(!rP(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 pse:if(!rP(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 gse=zr(),xp=Re();oP.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||(gse(r.position)?"free":i[0]||"free"),d=d||(o==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var y=xp.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=xp.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=xp.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),xp.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var mP=O((Dxe,pP)=>{"use strict";var Ps=Re(),sP=br(),xse=Oi().isUnifiedHover,bse=s3(),uP=lt(),_se=Du(),fP=_n(),wse=JE(),cP=gp(),Tse=qs(),vP=bp(),Zx=Xt(),rl=Zx.id2name,dP=Zx.name2id,Ase=ia().AX_ID_PATTERN,hP=gr(),_p=hP.traceIs,Xx=hP.getComponentMethod;function wp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}pP.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 Mse=kr(),yP=gr(),Tp=Re(),Cn=Yr(),Ap=Zr();gP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ap.redrawComponents(r);return}function l(y){var b=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Cn.setTranslate,0,0).call(Cn.setScale,1,1),y.plot.call(Cn.setTranslate,b._offset,_._offset).call(Cn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Cn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Cn.setTextPointsScale,1,1),w.call(Cn.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=Tp.simpleMap(y.xr0,w.r2l),R=Tp.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 F=Tp.simpleMap(y.yr0,x.r2l),Y=Tp.simpleMap(y.yr1,x.r2l),U=F[1]-F[0],G=Y[1]-Y[0];D[1]=(F[1]*(1-b)+b*Y[1]-F[1])/(F[0]-F[1])*k,D[3]=k*(1-b+b*G/U),x.range[0]=w.l2r(F[0]*(1-b)+b*Y[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*Y[1])}else D[1]=0,D[3]=k;Ap.drawOne(r,w,{skipTitle:!0}),Ap.drawOne(r,x,{skipTitle:!0}),Ap.redrawComponents(r,[w._id,x._id]);var V=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,de=x._offset-le;_.clipRect.call(Cn.setTranslate,J,X).call(Cn.setScale,1/V,1/B),_.plot.call(Cn.setTranslate,fe,de).call(Cn.setScale,V,B),Cn.setPointGroupScale(_.zoomScalePts,1/V,1/B),Cn.setTextPointsScale(_.zoomScaleTxt,1/V,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 Ml=O(za=>{"use strict";var kp=kr(),bP=gr(),Rs=Re(),kse=zt(),qse=Yr(),_P=kg().getModuleCalcData,ho=Xt(),qi=ia(),Cse=os(),Jr=Rs.ensureSingle;function Mp(e,r,t){return Rs.ensureSingle(e,r,t,function(a){a.datum(t)})}var zs=qi.zindexSeparator;za.name="cartesian";za.attr=["xaxis","yaxis"];za.idRoot=["x","y"];za.idRegex=qi.idRegex;za.attrRegex=qi.attrRegex;za.attributes=UE();za.layoutAttributes=_n();za.supplyLayoutDefaults=mP();za.transitionAxes=xP();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 h=d.id;if(h.indexOf(zs)!==-1)continue;h+=zs+(u+1),d=Rs.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,y=0;y1&&(A+=zs+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 d=Jr(a,"g","layer-subplot");r.shapelayer=Jr(d,"g","shapelayer"),r.imagelayer=Jr(d,"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 h=Jr(a,"g","layer-between");r.shapelayerBetween=Jr(h,"g","shapelayer"),r.imagelayerBetween=Jr(h,"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||(Mp(r.minorGridlayer,"g",r.xaxis._id),Mp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(ho.idSort),Mp(r.gridlayer,"g",r.xaxis._id),Mp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(ho.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function AP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=kp.select(this);f.remove(),MP(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 qp=wn();kP.exports={hasLines:qp.hasLines,hasMarkers:qp.hasMarkers,hasText:qp.hasText,isBubble:qp.isBubble,attributes:Ti(),layoutAttributes:rh(),supplyDefaults:BD(),crossTraceDefaults:VD(),supplyLayoutDefaults:UD(),calc:Ex().calc,crossTraceCalc:yE(),arraysToCalcdata:qx(),plot:DE(),colorbar:hp(),formatLabels:RE(),style:Vx().style,styleOnSelect:Vx().styleOnSelect,hoverPoints:BE(),selectPoints:VE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ml(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var LP=O((zxe,SP)=>{"use strict";var Lse=kr(),Dse=br(),CP=K3(),Jx=Re(),Ese=Jx.strScale,Pse=Jx.strRotate,Rse=Jx.strTranslate;SP.exports=function(r,t,a){var n=r.node(),i=CP[a.arrowhead||0],l=CP[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+_*_)){F();return}if(c){if(c*c>b*b+_*_){F();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+_*_){F();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 DP=kr(),$x=gr(),zse=zt(),mo=Re(),Kx=mo.strTranslate,t0=Zr(),Ns=br(),kl=Yr(),EP=_i(),Qx=la(),jx=no(),r0=xi(),Nse=lt().arrayEditor,Fse=LP();zP.exports={draw:Ise,drawOne:PP,drawRaw:RP};function Ise(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ee="right":Ee="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ee]}for(var _e=!1,W=["x","y"],j=0;j1)&&(me===oe?(Ne=xe.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(_e=!0)):_e=!0),Oe=xe._offset+xe.r2p(r[Z]),we=.5}else{var Me=dr==="domain";Z==="x"?(ie=r[Z],Oe=Me?xe._offset+xe._length*ie:Oe=o.l+o.w*ie):(ie=1-r[Z],Oe=Me?xe._offset+xe._length*ie:Oe=o.t+o.h*ie),we=r.showarrow?.5:ie}if(r.showarrow){Pe.head=Oe;var Ce=r["a"+Z];if($e=ze*ge(.5,r.xanchor)-Se*ge(.5,r.yanchor),me===oe){var He=t0.getRefType(me);He==="domain"?(Z==="y"&&(Ce=1-Ce),Pe.tail=xe._offset+xe._length*Ce):He==="paper"?Z==="y"?(Ce=1-Ce,Pe.tail=o.t+o.h*Ce):Pe.tail=o.l+o.w*Ce:Pe.tail=xe._offset+xe.r2p(Ce),Ue=$e}else Pe.tail=Oe+Ce,Ue=$e+Ce;Pe.text=Pe.tail+$e;var Je=l[Z==="x"?"width":"height"];if(oe==="paper"&&(Pe.head=mo.constrain(Pe.head,1,Je-1)),me==="pixel"){var Ge=-Math.max(Pe.tail-3,Pe.text),Xe=Math.min(Pe.tail+3,Pe.text)-Je;Ge>0?(Pe.tail+=Ge,Pe.text+=Ge):Xe>0&&(Pe.tail-=Xe,Pe.text-=Xe)}Pe.tail+=We,Pe.head+=We}else $e=Ie*ge(we,Be),Ue=$e,Pe.text=Oe+$e;Pe.text+=We,$e+=We,Ue+=We,r["_"+Z+"padplus"]=Ie/2+Ue,r["_"+Z+"padminus"]=Ie/2-Ue,r["_"+Z+"size"]=Ie,r["_"+Z+"shift"]=$e}if(_e){M.remove();return}var lr=0,tr=0;if(r.align!=="left"&&(lr=(Q-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(tr=(qe-de)*(r.valign==="middle"?.5:1)),ee)X.select("svg").attr({x:E+lr-1,y:E+tr}).call(kl.setClipUrl,N?m:null,e);else{var Ke=E+tr-le.top,Fe=E+lr-le.left;U.call(Qx.positionText,Fe,Ke).call(kl.setClipUrl,N?m:null,e)}H.select("rect").call(kl.setRect,E,E,Q,qe),R.call(kl.setRect,S/2,S/2,ce-S,be-S),M.call(kl.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,Ee){_.selectAll(".annotation-arrow-g").remove();var ar=y.x.head,cr=y.y.head,sr=y.x.tail+Le,Mr=y.y.tail+Ee,Or=y.x.text+Le,et=y.y.text+Ee,ut=mo.rotationXYMatrix(b,Or,et),kt=mo.apply2DTransform(ut),_t=mo.apply2DTransform2(ut),Ht=+R.attr("width"),ra=+R.attr("height"),Ia=Or-.5*Ht,ma=Ia+Ht,ya=et-.5*ra,vr=ya+ra,ft=[[Ia,ya,Ia,vr],[Ia,vr,ma,vr],[ma,vr,ma,ya],[ma,ya,Ia,ya]].map(_t);if(!ft.reduce(function(qt,xa){return qt^!!mo.segmentsIntersect(ar,cr,ar+1e6,cr+1e6,xa[0],xa[1],xa[2],xa[3])},!1)){ft.forEach(function(qt){var xa=mo.segmentsIntersect(sr,Mr,ar,cr,qt[0],qt[1],qt[2],qt[3]);xa&&(sr=xa.x,Mr=xa.y)});var $r=r.arrowwidth,ht=r.arrowcolor,Pt=r.arrowside,At=_.append("g").style({opacity:Ns.opacity(ht)}).classed("annotation-arrow-g",!0),jr=At.append("path").attr("d","M"+sr+","+Mr+"L"+ar+","+cr).style("stroke-width",$r+"px").call(Ns.stroke,Ns.rgb(ht));if(Fse(jr,Pt,r),s.annotationPosition&&jr.node().parentNode&&!a){var ga=ar,En=cr;if(r.standoff){var ta=Math.sqrt(Math.pow(ar-sr,2)+Math.pow(cr-Mr,2));ga+=r.standoff*(sr-ar)/ta,En+=r.standoff*(Mr-cr)/ta}var Ni=At.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-ga)+","+(Mr-En),transform:Kx(ga,En)}).style("stroke-width",$r+6+"px").call(Ns.stroke,"rgba(0,0,0,0)").call(Ns.fill,"rgba(0,0,0,0)"),Pn,Rt;r0.init({element:Ni.node(),gd:e,prepFn:function(){var qt=kl.getTranslate(M);Pn=qt.x,Rt=qt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(qt,xa){var Ho=kt(Pn,Rt),Bo=Ho[0]+qt,Fl=Ho[1]+xa;M.call(kl.setTranslate,Bo,Fl),h("x",po(n,qt,"x",o,r)),h("y",po(i,xa,"y",o,r)),r.axref===r.xref&&h("ax",po(n,qt,"ax",o,r)),r.ayref===r.yref&&h("ay",po(i,xa,"ay",o,r)),At.attr("transform",Kx(qt,xa)),w.attr({transform:"rotate("+b+","+Bo+","+Fl+")"})},doneFn:function(){$x.call("_guiRelayout",e,p());var qt=document.querySelector(".js-notes-box-panel");qt&&qt.redraw(qt.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var se;r0.init({element:M.node(),gd:e,prepFn:function(){se=w.attr("transform")},moveFn:function(Le,Ee){var ar="pointer";if(r.showarrow)r.axref===r.xref?h("ax",po(n,Le,"ax",o,r)):h("ax",r.ax+Le),r.ayref===r.yref?h("ay",po(i,Ee,"ay",o.w,r)):h("ay",r.ay+Ee),ne(Le,Ee);else{if(a)return;var cr,sr;if(n)cr=po(n,Le,"x",o,r);else{var Mr=r._xsize/o.w,Or=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=r0.align(Or+Le/o.w,Mr,0,1,r.xanchor)}if(i)sr=po(i,Ee,"y",o,r);else{var et=r._ysize/o.h,ut=r.y-(r._yshift+r.yshift)/o.h-et/2;sr=r0.align(ut-Ee/o.h,et,0,1,r.yanchor)}h("x",cr),h("y",sr),(!n||!i)&&(ar=r0.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:Kx(Le,Ee)+se}),jx(M,ar)},clickFn:function(Le,Ee){r.captureevents&&e.emit("plotly_clickannotation",k(Ee))},doneFn:function(){jx(M),$x.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?U.call(Qx.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(B){r.text=B,this.call(G),h("text",B),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),$x.call("_guiRelayout",e,p())}):U.call(G)}});var OP=O((Fxe,BP)=>{"use strict";var NP=Re(),Hse=gr(),FP=lt().arrayEditor;BP.exports={hasClickToShow:Bse,onClick:Ose};function Bse(e,r){var t=HP(e,r);return t.on.length>0||t.explicitOff.length>0}function Ose(e,r){var t=HP(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 eb=Re(),Cf=br();YP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Cf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),eb.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:Cf.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||(Cf.opacity(i)?Cf.rgb(i):Cf.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Cf.contrast(y)),_=eb.extendFlat({},m.font);_.color||(_.color=b),eb.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var GP=O((Hxe,VP)=>{"use strict";var tb=Re(),Fs=Zr(),Yse=Yn(),Vse=rb(),Gse=mf();VP.exports=function(r,t){Yse(r,t,{name:"annotations",handleItemDefaults:Use})};function Use(e,r,t){function a(w,x){return tb.coerce(e,r,Gse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Vse(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=Fs.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Fs.getFromId(u,d);h._annIndices.push(r._index)}if(Fs.coercePosition(r,u,a,d,c,.5),l){var p="a"+c,m=Fs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==d&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Fs.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(tb.noneOrAll(e,r,["x","y"]),l&&tb.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:Fs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:Fs.cleanPosition(_,u,r.yref)}}}});var XP=O((Bxe,WP)=>{"use strict";var ab=Re(),Is=Zr(),Wse=Cp().draw;WP.exports=function(r){var t=r._fullLayout,a=ab.filterVisible(t.annotations);if(a.length&&r._fullData.length)return ab.syncOrAsync([Wse,Xse],r)};function Xse(e){var r=e._fullLayout;ab.filterVisible(r.annotations).forEach(function(t){var a=Is.getFromId(e,t.xref),n=Is.getFromId(e,t.yref),i=Is.getRefType(t.xref),l=Is.getRefType(t.yref);t._extremes={},i==="range"&&UP(t,a),l==="range"&&UP(t,n)})}function UP(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 _=Is.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),w=Is.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=Is.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,m),ppadminus:Math.max(u,h,y)});e._extremes[t]=b}});var JP=O((Oxe,ZP)=>{"use strict";var Zse=zr(),Jse=Md();ZP.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=Jse(p,t.range):m=Math.pow(10,p),Zse(m)||(m=null),n(f+h,m)}for(var d=0;d{"use strict";var nb=Cp(),$P=OP();KP.exports={moduleType:"component",name:"annotations",layoutAttributes:mf(),supplyLayoutDefaults:GP(),includeBasePlot:Rv()("annotations"),calcAutorange:XP(),draw:nb.draw,drawOne:nb.drawOne,drawRaw:nb.drawRaw,hasClickToShow:$P.hasClickToShow,onClick:$P.onClick,convertCoords:JP()}});var Sp=O((Vxe,jP)=>{"use strict";var dt=mf(),$se=vi().overrideAll,Kse=lt().templatedArray;jP.exports=$se(Kse("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 rR=O((Gxe,eR)=>{"use strict";var ib=Re(),Qse=Zr(),jse=Yn(),eue=rb(),rue=Sp();eR.exports=function(r,t,a){jse(r,t,{name:"annotations",handleItemDefaults:tue,fullLayout:a.fullLayout})};function tue(e,r,t,a){function n(o,s){return ib.coerce(e,r,rue,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Qse.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(eue(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),ib.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),ib.noneOrAll(e,r,["ax","ay"])))}});var iR=O((Uxe,nR)=>{"use strict";var tR=Re(),aR=Zr();nR.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function lb(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 nue(e,r){var t=lb(e.projection,lb(e.view,lb(e.model,[r[0],r[1],r[2],1])));return t}lR.exports=nue});var uR=O((Xxe,sR)=>{"use strict";var iue=Cp().drawRaw,lue=oR(),oue=["x","y","z"];sR.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=lue(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),iue(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var vR=O((Zxe,cR)=>{"use strict";var sue=gr(),fR=Re();cR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sp()}}},layoutAttributes:Sp(),handleDefaults:rR(),includeBasePlot:uue,convert:iR(),draw:uR()};function uue(e,r){var t=sue.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var Jxe=ia(),dR=aa(),hR=Ti().line,fue=di().dash,Ci=mt().extendFlat,cue=lt().templatedArray,$xe=Ev(),Sf=an(),pR=mf(),{shapeTexttemplateAttrs:vue,templatefallbackAttrs:due}=gn(),hue=Rd();mR.exports=cue("shape",{visible:Ci({},Sf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ci({},Sf.legend,{editType:"calc+arraydraw"}),legendgroup:Ci({},Sf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ci({},Sf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:dR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ci({},Sf.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ci({},Sf.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:Ci({},pR.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:Ci({},pR.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:Ci({},hR.color,{editType:"arraydraw"}),width:Ci({},hR.width,{editType:"calc+arraydraw"}),dash:Ci({},fue,{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:vue({},{keys:Object.keys(hue)}),texttemplatefallback:due({editType:"arraydraw"}),font:dR({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 gR=O((Qxe,yR)=>{"use strict";var Lf=Re(),Sn=Zr(),pue=Yn(),mue=ob(),a0=uo();yR.exports=function(r,t){pue(r,t,{name:"shapes",handleItemDefaults:gue})};function yue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function gue(e,r,t){function a(w,x){return Lf.coerce(e,r,mue,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Lf.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=a0.countDefiningCoords(s,l,w);E=Sn.coerceRefArray(e,r,k,w,void 0,"paper",H),r["_"+w+"refArray"]=!0}else E=Sn.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(H){Sn.getRefType(H)==="range"&&(M=Sn.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let F=E[H];Sn.getRefType(F)==="range"?(M=Sn.getFromId(k,F),S=a0.shapePositionToRange(M),D=a0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+H+"shift")):S=D=Lf.identity;let U=w+H,G=e[U];if(e[U]=S(e[U],!0),A==="pixel"?a(U,p[H]):Sn.coercePosition(r,k,a,F,U,h[H]),r[U]=D(r[U]),e[U]=G,H===0&&A==="pixel"){let V=e[x];e[x]=S(e[x],!0),Sn.coercePosition(r,k,a,F,x,.25),r[x]=D(r[x]),e[x]=V}});else{if(Sn.getRefType(E)==="range"?(M=Sn.getFromId(k,E),M._shapeIndices.push(r._index),D=a0.rangeToShapePosition(M),S=a0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Lf.identity,u){let F=w+"0",Y=w+"1",U=e[F],G=e[Y];e[F]=S(e[F],!0),e[Y]=S(e[Y],!0),A==="pixel"?(a(F,p[0]),a(Y,p[1])):(Sn.coercePosition(r,k,a,E,F,h[0]),Sn.coercePosition(r,k,a,E,Y,h[1])),r[F]=D(r[F]),r[Y]=D(r[Y]),e[F]=U,e[Y]=G}if(A==="pixel"){let F=e[x];e[x]=S(e[x],!0),Sn.coercePosition(r,k,a,E,x,.25),r[x]=D(r[x]),e[x]=F}}}),u&&Lf.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",yue(m,_)),a("label.padding"),Lf.coerceFont(a,"label.font",t.font)}}});var _R=O((jxe,bR)=>{"use strict";var xue=br(),xR=Re();function bue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}bR.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"),xR.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",xue.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",bue(l,u)),a("newshape.label.padding"),xR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var CR=O((ebe,qR)=>{"use strict";var sb=Re(),ti=Zr(),tl=dv(),ub=uo();qR.exports=function(r){var t=r._fullLayout,a=sb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=ti.getFromId(r,c),i._extremes[l._id]=ti.findExtremes(l,d,TR(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=ti.getFromId(r,i.xref),o=MR(l,i,tl.paramIsX),o&&(i._extremes[l._id]=ti.findExtremes(l,o,TR(i))));if(u==="array"){let f=wR(r,i,"y");Object.entries(f).forEach(([c,d])=>{l=ti.getFromId(r,c),i._extremes[l._id]=ti.findExtremes(l,d,AR(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=ti.getFromId(r,i.yref),o=MR(l,i,tl.paramIsY),o&&(i._extremes[l._id]=ti.findExtremes(l,o,AR(i))))}};function wR(e,r,t){let a=r[t+"ref"],n=t==="x"?tl.paramIsX:tl.paramIsY;function i(c,d){c==="paper"||ti.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(d))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(tl.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=ti.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=ub.decodeDate(f)),u[d._id]=l[c].map(f)}}return u}function TR(e){return kR(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function AR(e){return kR(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function kR(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?ub.extractPathCoords(n,i?tl.paramIsY:tl.paramIsX):[t,a],u=sb.aggNums(Math.max,null,s),f=sb.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 MR(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(tl.segmentRE),p,m,y,b,_;for(e.type==="date"&&(u=ub.decodeDate(u)),p=0;pd&&(d=_)));if(d>=c)return[c,d]}}});var DR=O((rbe,LR)=>{"use strict";var SR=x1();LR.exports={moduleType:"component",name:"shapes",layoutAttributes:ob(),supplyLayoutDefaults:gR(),supplyDrawNewShapeDefaults:_R(),includeBasePlot:Rv()("shapes"),calcAutorange:CR(),draw:SR.draw,drawOne:SR.drawOne}});var fb=O((abe,PR)=>{"use strict";var ER=ia(),_ue=lt().templatedArray,tbe=Ev();PR.exports=_ue("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",ER.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ER.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var zR=O((nbe,RR)=>{"use strict";var wue=Re(),cb=Zr(),Tue=Yn(),Aue=fb(),Mue="images";RR.exports=function(r,t){var a={name:Mue,handleItemDefaults:kue};Tue(r,t,a)};function kue(e,r,t){function a(d,h){return wue.coerce(e,r,Aue,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=cb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=cb.getFromId(l,f);c._imgIndices.push(r._index)}cb.coercePosition(r,l,a,f,u,0)}return r}});var HR=O((ibe,IR)=>{"use strict";var NR=kr(),que=Yr(),Df=Zr(),FR=Xt(),Cue=os();IR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var BR=zr(),Sue=Md();OR.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";VR.exports={moduleType:"component",name:"images",layoutAttributes:fb(),supplyLayoutDefaults:zR(),includeBasePlot:Rv()("images"),draw:HR(),convertCoords:YR()}});var Lp=O((sbe,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 vb=O((ube,XR)=>{"use strict";var Lue=aa(),Due=In(),Eue=mt().extendFlat,Pue=vi().overrideAll,Rue=zd(),WR=lt().templatedArray,zue=WR("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}});XR.exports=Pue(WR("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:zue,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:Eue(Rue({editType:"arraydraw"}),{}),font:Lue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Due.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var KR=O((fbe,$R)=>{"use strict";var Dp=Re(),ZR=Yn(),JR=vb(),Nue=Lp(),Fue=Nue.name,Iue=JR.buttons;$R.exports=function(r,t){var a={name:Fue,handleItemDefaults:Hue};ZR(r,t,a)};function Hue(e,r,t){function a(l,o){return Dp.coerce(e,r,JR,l,o)}var n=ZR(e,r,{name:"buttons",handleItemDefaults:Bue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Dp.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Dp.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Bue(e,r){function t(n,i){return Dp.coerce(e,r,Iue,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 ez=O((cbe,jR)=>{"use strict";jR.exports=Mt;var Si=kr(),QR=br(),Ef=Yr(),Ep=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(QR.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,F=Mt.barWidth+2*Mt.barPad,Y=Mt.barLength+2*Mt.barPad,U=o+s,G=u;U+F>i&&(U=i-F);var V=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(QR.fill,Mt.barColor),H?(this.vbar=V.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:U,y:G,width:F,height:Y}),this._vbarYMin=G+Y/2,this._vbarTranslateMax=b-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var B=this.id,J=_-.5,X=H?w+F+.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(Ef.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(Ef.setClipUrl,null),delete this._clipRect),M||H){var de=Si.behavior.drag().on("dragstart",function(){Si.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 Q=Si.behavior.drag().on("dragstart",function(){Si.event.sourceEvent.preventDefault(),Si.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Q),H&&this.vbar.on(".drag",null).call(Q)}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(Ef.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-=Si.event.dx),this.vbar&&(t-=Si.event.dy),this.setTranslate(r,t)};Mt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Si.event.deltaY),this.vbar&&(t+=Si.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=Ep.constrain(Si.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=Ep.constrain(Si.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=Ep.constrain(r||0,0,a),t=Ep.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ef.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(Ef.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Ef.setTranslate,r,t+l*this._vbarTranslateMax)}}});var fz=O((vbe,uz)=>{"use strict";var Pf=kr(),n0=zt(),i0=br(),Rf=Yr(),Ln=Re(),Pp=la(),Oue=lt().arrayEditor,tz=Aa().LINE_SPACING,wr=Lp(),Yue=ez();uz.exports=function(r){var t=r._fullLayout,a=Ln.filterVisible(t[wr.name]);function n(d){n0.autoMargin(r,oz(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(){Pf.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,Vue);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Ln.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var $ue=Lp();cz.exports={moduleType:"component",name:$ue.name,layoutAttributes:vb(),supplyLayoutDefaults:KR(),draw:fz()}});var o0=O((hbe,dz)=>{"use strict";dz.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 mb=O((pbe,mz)=>{"use strict";var hz=aa(),Kue=zd(),Que=mt().extendDeepAll,jue=vi().overrideAll,efe=Pc(),pz=lt().templatedArray,Hs=o0(),rfe=pz("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}});mz.exports=jue(pz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:rfe,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:Que(Kue({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:efe.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:hz({})},font:hz({}),activebgcolor:{valType:"color",dflt:Hs.gripBgActiveColor},bgcolor:{valType:"color",dflt:Hs.railBgColor},bordercolor:{valType:"color",dflt:Hs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Hs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Hs.tickLength},tickcolor:{valType:"color",dflt:Hs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Hs.minorTickLength}}),"arraydraw","from-root")});var bz=O((mbe,xz)=>{"use strict";var zf=Re(),yz=Yn(),gz=mb(),tfe=o0(),afe=tfe.name,nfe=gz.steps;xz.exports=function(r,t){yz(r,t,{name:afe,handleItemDefaults:ife})};function ife(e,r,t){function a(c,d){return zf.coerce(e,r,gz,c,d)}for(var n=yz(e,r,{name:"steps",handleItemDefaults:lfe}),i=0,l=0;l{"use strict";var Li=kr(),Rp=zt(),yo=br(),Di=Yr(),Dn=Re(),ofe=Dn.strTranslate,s0=la(),sfe=lt().arrayEditor,Pr=o0(),xb=Aa(),Tz=xb.LINE_SPACING,yb=xb.FROM_TL,gb=xb.FROM_BR;Sz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=ufe(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),Rp.autoMargin(r,Az(f))}if(i.exit().each(function(){Li.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,ffe);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",ofe(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function bb(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function wz(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 yfe(e,r,t){var a=t._dims,n=Dn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(qz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(yo.fill,t.bgcolor).attr("opacity",0),Di.setTranslate(n,0,a.currentValueTotalHeight)}function gfe(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Dn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(yo.stroke,r.bordercolor).call(yo.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Di.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var Ez=O((gbe,Dz)=>{"use strict";var xfe=o0();Dz.exports={moduleType:"component",name:xfe.name,layoutAttributes:mb(),supplyLayoutDefaults:bz(),draw:Lz()}});var Np=O((xbe,Rz)=>{"use strict";var Pz=In();Rz.exports={bgcolor:{valType:"color",dflt:Pz.background,editType:"plot"},bordercolor:{valType:"color",dflt:Pz.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 _b=O((bbe,zz)=>{"use strict";zz.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 Fp=O((_be,Nz)=>{"use strict";Nz.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 Hz=O(Hp=>{"use strict";var bfe=Xt(),_fe=la(),Fz=Fp(),wfe=Aa().LINE_SPACING,Ip=Fz.name;function Iz(e){var r=e&&e[Ip];return r&&r.visible}Hp.isVisible=Iz;Hp.makeData=function(e){for(var r=bfe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Bp=Re(),Bz=lt(),Oz=Xt(),Tfe=Np(),Afe=_b();Yz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Bp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Bz.newContainer(i,"rangeslider");function s(A,k){return Bp.coerce(l,o,Tfe,A,k)}var u,f;function c(A,k){return Bp.coerce(u,f,Afe,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")))===Oz.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=Bp.simpleMap(p,Oz.id2name),y=0;y{"use strict";var Mfe=Xt().list,kfe=Qc().getAutoRange,qfe=Fp();Gz.exports=function(r){for(var t=Mfe(r,"x",!0),a=0;a{"use strict";var Op=kr(),Cfe=gr(),Sfe=zt(),Ft=Re(),Yp=Ft.strTranslate,Xz=Yr(),go=br(),Lfe=$c(),Dfe=Ml(),wb=Xt(),Efe=xi(),Pfe=no(),Hr=Fp();Zz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)U=R[G+1];else if(Y=V.pmax)U=R[G+1];else if(Y0?e.touches[0].clientX:0}function Rfe(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=Op.event,u=s.target,f=Wz(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=Efe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var _=Wz(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 Gfe=Re(),Ufe=Np(),Wfe=_b(),Tb=Hz();$z.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Gfe.extendFlat({},Ufe,{yaxis:Wfe})}}},layoutAttributes:Np(),handleDefaults:Vz(),calcAutorange:Uz(),draw:Jz(),isVisible:Tb.isVisible,makeData:Tb.makeData,autoMarginOpts:Tb.autoMarginOpts}});var Vp=O((qbe,jz)=>{"use strict";var Xfe=aa(),Qz=In(),Zfe=lt().templatedArray,Jfe=Zfe("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"});jz.exports={visible:{valType:"boolean",editType:"plot"},buttons:Jfe,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:Xfe({editType:"plot"}),bgcolor:{valType:"color",dflt:Qz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Qz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Ab=O((Cbe,eN)=>{"use strict";eN.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var aN=O((Sbe,tN)=>{"use strict";var Gp=Re(),$fe=br(),Kfe=lt(),Qfe=Yn(),rN=Vp(),Mb=Ab();tN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Kfe.newContainer(t,"rangeselector");function s(h,p){return Gp.coerce(l,o,rN,h,p)}var u=Qfe(l,o,{name:"buttons",handleItemDefaults:jfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=ece(t,a,n);s("x",c[0]),s("y",c[1]),Gp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Gp.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",$fe.contrast(d,Mb.lightAmount,Mb.darkAmount)),s("bordercolor"),s("borderwidth")}};function jfe(e,r,t,a){var n=a.calendar;function i(s,u){return Gp.coerce(e,r,rN.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 ece(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var rce=Ey(),tce=Re().titleCase;nN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=ace(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function ace(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=rce["utc"+tce(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 dN=O((Dbe,vN)=>{"use strict";var Wp=kr(),nce=gr(),ice=zt(),lN=br(),cN=Yr(),ql=Re(),oN=ql.strTranslate,Up=la(),lce=Xt(),Cb=Aa(),sN=Cb.LINE_SPACING,uN=Cb.FROM_TL,fN=Cb.FROM_BR,qb=Ab(),oce=iN();vN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(sce(r),uce);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(ql.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Wp.select(this),c=oce(l,u);u._isActive=fce(l,u,c),f.call(kb,o,u),f.call(vce,o,u,r),f.on("click",function(){r._dragged||nce.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(kb,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(kb,o,u)})}),hce(r,s,o,l._name,i)})};function sce(e){for(var r=lce.list(e,"x",!0),t=[],a=0;a{"use strict";hN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Vp()}}},layoutAttributes:Vp(),handleDefaults:aN(),draw:dN()}});var xo=O(Sb=>{"use strict";var mN=mt().extendFlat;Sb.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:mN({},t,{}),y:mN({},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};Sb.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 pce=Re(),mce=qu().counter,yce=xo().attributes,yN=ia().idRegex,gce=lt(),Lb={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:[mce("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yN.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:yce({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 Xp(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 xce(e,r){var t=e.grid||{},a=Xp(r,t,"x"),n=Xp(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=gce.newContainer(r,"grid");function d(k,M){return pce.coerce(t,c,Lb,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:gN("x",d,_,x,p),y:gN("y",d,w,A,h,b)}}function gN(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";wN.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 MN=O((Nbe,AN)=>{"use strict";var TN=zr(),_ce=gr(),wce=Re(),Tce=lt(),Ace=Db();AN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Tce.newContainer(r,n),l=e[n]||{};function o(p,m){return wce.coerce(l,i,Ace,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||TN(l.thickness)||TN(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",_ce.traceIs(r,"gl3d")?0:4))}}});var Eb=O((Fbe,qN)=>{"use strict";qN.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=kN(t,r.value),o=kN(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 kN(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 LN=O((Ibe,SN)=>{"use strict";var Pb=zr(),Mce=gr(),Rb=Zr(),kce=Re(),qce=Eb();SN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var DN=kr(),bo=zr(),Cce=Yr(),Sce=wn();EN.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=Sce.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=DN.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),Cce.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=DN.select(this),x=Lce(_,l,o);if(!(m&&!_.vis)){var A,k=w.select("path.yerror");if(h.visible&&bo(x.x)&&bo(x.yh)&&bo(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&&bo(x.y)&&bo(x.xh)&&bo(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 Lce(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),bo(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),bo(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var NN=O((Bbe,zN)=>{"use strict";var Dce=kr(),RN=br();zN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Dce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(RN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(RN.stroke,i.color)})}});var HN=O((Obe,IN)=>{"use strict";var u0=Re(),FN=vi().overrideAll,f0=Db(),Bs={error_x:u0.extendFlat({},f0),error_y:u0.extendFlat({},f0)};delete Bs.error_x.copy_zstyle;delete Bs.error_y.copy_zstyle;delete Bs.error_y.copy_ystyle;var c0={error_x:u0.extendFlat({},f0),error_y:u0.extendFlat({},f0),error_z:u0.extendFlat({},f0)};delete c0.error_x.copy_ystyle;delete c0.error_y.copy_ystyle;delete c0.error_z.copy_ystyle;delete c0.error_z.copy_zstyle;IN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bs,bar:Bs,histogram:Bs,scatter3d:FN(c0,"calc","nested"),scattergl:FN(Bs,"calc","nested")}},supplyDefaults:MN(),calc:LN(),makeComputeError:Eb(),plot:PN(),style:NN(),hoverInfo:Ece};function Ece(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 ON=O((Ybe,BN)=>{"use strict";BN.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 ZN=O((Vbe,XN)=>{"use strict";var _o=kr(),zb=Fn(),Jp=zt(),YN=gr(),Cl=Zr(),Zp=xi(),ai=Re(),Pi=ai.strTranslate,WN=mt().extendFlat,Nb=no(),Ei=Yr(),Fb=br(),Pce=$c(),Rce=la(),zce=bn().flipScale,Nce=gp(),Fce=bp(),Ice=_n(),Ib=Aa(),VN=Ib.LINE_SPACING,GN=Ib.FROM_TL,UN=Ib.FROM_BR,Tt=ON().cn;function Hce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Tt.colorbar).data(Bce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Tt.colorbar,!0),t.each(function(a){var n=_o.select(this);ai.ensureSingle(n,"rect",Tt.cbbg),ai.ensureSingle(n,"g",Tt.cbfills),ai.ensureSingle(n,"g",Tt.cblines),ai.ensureSingle(n,"g",Tt.cbaxis,function(l){l.classed(Tt.crisp,!0)}),ai.ensureSingle(n,"g",Tt.cbtitleunshift,function(l){l.append("g").classed(Tt.cbtitle,!0)}),ai.ensureSingle(n,"rect",Tt.cboutline);var i=Oce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Yce(n,a,e)}),t.exit().each(function(a){Jp.autoMargin(e,a._id)}).remove(),t.order()}function Bce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return WN(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?zce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var j=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));ge*=j*ai.roundUp(W/j,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=ge}ce.domain=a?[Q+p/x.h,Q+B-p/x.h]:[Q+h/x.w,Q+B-h/x.w],ce.setScale(),e.attr("transform",Pi(Math.round(x.l),Math.round(x.t)));var Z=e.select("."+Tt.cbtitleunshift).attr("transform",Pi(-Math.round(x.l),-Math.round(x.t))),oe=ce.ticklabelposition,me=ce.title.font.size,xe=e.select("."+Tt.cbaxis),De,ze=0,Se=0;function Ie(Ue,ie){var we={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Tt.cbtitle)},$e=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+$e+",."+$e+"-math-group").remove(),Pce.draw(t,Ue,WN(we,ie||{}))}function Be(){if(a&&be||!a&&!be){var Ue,ie;S==="top"&&(Ue=h+x.l+J*m,ie=p+x.t+X*(1-Q-B)+3+me*.75),S==="bottom"&&(Ue=h+x.l+J*m,ie=p+x.t+X*(1-Q)-3-me*.25),S==="right"&&(ie=p+x.t+X*y+3+me*.75,Ue=h+x.l+J*Q),Ie(ce._id+"title",{attributes:{x:Ue,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Ue=ce.position||0,ie=ce._offset+ce._length/2,we,$e;if(S==="right")$e=ie,we=x.l+J*Ue+10+me*(ce.showticklabels?1:.5);else if(we=ie,S==="bottom"&&($e=x.t+X*Ue+10+(oe.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),S==="top"){var dr=M.text.split("
").length;$e=x.t+X*Ue+10-U-VN*me*dr}Ie((a?"h":"v")+ce._id+"title",{avoid:{selection:_o.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 Pe(){if(!a&&!be||a&&be){var Ue=e.select("."+Tt.cbtitle),ie=Ue.select("text"),we=[-s/2,s/2],$e=Ue.select(".h"+ce._id+"title-math-group").node(),dr=15.6;ie.node()&&(dr=parseInt(ie.node().style.fontSize,10)*VN);var Ne;if($e?(Ne=Ei.bBox($e),Se=Ne.width,ze=Ne.height,ze>dr&&(we[1]-=(ze-dr)/2)):ie.node()&&!ie.classed(Tt.jsPlaceholder)&&(Ne=Ei.bBox(ie.node()),Se=Ne.width,ze=Ne.height),a){if(ze){if(ze+=5,S==="top")ce.domain[1]-=ze/x.h,we[1]*=-1;else{ce.domain[0]+=ze/x.h;var Me=Rce.lineCount(ie);we[1]+=(1-Me)*dr}Ue.attr("transform",Pi(we[0],we[1])),ce.setScale()}}else Se&&(S==="right"&&(ce.domain[0]+=(Se+me/2)/x.w),Ue.attr("transform",Pi(we[0],we[1])),ce.setScale())}e.selectAll("."+Tt.cbfills+",."+Tt.cblines).attr("transform",a?Pi(0,Math.round(x.h*(1-ce.domain[1]))):Pi(Math.round(x.w*ce.domain[0]),0)),xe.attr("transform",a?Pi(0,Math.round(-x.t)):Pi(Math.round(-x.l),0));var Ce=e.select("."+Tt.cbfills).selectAll("rect."+Tt.cbfill).attr("style","").data(F);Ce.enter().append("rect").classed(Tt.cbfill,!0).attr("style",""),Ce.exit().remove();var He=D.map(ce.c2p).map(Math.round).sort(function(tr,Ke){return tr-Ke});Ce.each(function(tr,Ke){var Fe=[Ke===0?D[0]:(F[Ke]+F[Ke-1])/2,Ke===F.length-1?D[1]:(F[Ke]+F[Ke+1])/2].map(ce.c2p).map(Math.round);a&&(Fe[1]=ai.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,He[0],He[1]));var ne=_o.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",_o.min(Fe)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(_o.max(Fe)-_o.min(Fe),2));if(r._fillgradient)Ei.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var se=R(tr).replace("e-","");ne.attr("fill",zb(se).toHexString())}});var Je=e.select("."+Tt.cblines).selectAll("path."+Tt.cbline).data(k.color&&k.width?Y:[]);Je.enter().append("path").classed(Tt.cbline,!0),Je.exit().remove(),Je.each(function(tr){var Ke=ee,Fe=Math.round(ce.c2p(tr))+k.width/2%1;_o.select(this).attr("d","M"+(a?Ke+","+Fe:Fe+","+Ke)+(a?"h":"v")+U).call(Ei.lineGroupStyle,k.width,E(tr),k.dash)}),xe.selectAll("g."+ce._id+"tick,path").remove();var Ge=ee+U+(s||0)/2-(r.ticks==="outside"?1:0),Xe=Cl.calcTicks(ce),lr=Cl.getTickSigns(ce)[2];return Cl.drawTicks(t,ce,{vals:ce.ticks==="inside"?Cl.clipEnds(ce,Xe):Xe,layer:xe,path:Cl.makeTickPath(ce,Ge,lr),transFn:Cl.makeTransTickFn(ce)}),Cl.drawLabels(t,ce,{vals:Xe,layer:xe,transFn:Cl.makeTransTickLabelFn(ce),labelFns:Cl.makeLabelFns(ce,Ge)})}function Oe(){var Ue,ie=U+s/2;oe.indexOf("inside")===-1&&(Ue=Ei.bBox(xe.node()),ie+=a?Ue.width:Ue.height),De=Z.select("text");var we=0,$e=a&&S==="top",dr=!a&&S==="right",Ne=0;if(De.node()&&!De.classed(Tt.jsPlaceholder)){var Me,Ce=Z.select(".h"+ce._id+"title-math-group").node();Ce&&(a&&be||!a&&!be)?(Ue=Ei.bBox(Ce),we=Ue.width,Me=Ue.height):(Ue=Ei.bBox(Z.node()),we=Ue.right-x.l-(a?ee:qe),Me=Ue.bottom-x.t-(a?qe:ee),!a&&S==="top"&&(ie+=Ue.height,Ne=Ue.height)),dr&&(De.attr("transform",Pi(we/2+me/2,0)),we*=2),ie=Math.max(ie,a?we:Me)}var He=(a?h:p)*2+ie+u+s/2,Je=0;!a&&M.text&&d==="bottom"&&y<=0&&(Je=He/2,He+=Je,Ne+=Je),w._hColorbarMoveTitle=Je,w._hColorbarMoveCBTitle=Ne;var Ge=u+s,Xe=(a?ee:qe)-Ge/2-(a?h:0),lr=(a?qe:ee)-(a?V:p+Ne-Je);e.select("."+Tt.cbbg).attr("x",Xe).attr("y",lr).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(V+Ge,2)).call(Fb.fill,f).call(Fb.stroke,r.bordercolor).style("stroke-width",u);var tr=dr?Math.max(we-10,0):0;e.selectAll("."+Tt.cboutline).attr("x",(a?ee:qe+h)+tr).attr("y",(a?qe+p-V:ee)+($e?ze:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(V-(a?2*p+ze:2*h+tr),2)).call(Fb.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?le*He:0,Fe=a?0:(1-fe)*He-Ne;if(Ke=_?x.l-Ke:-Ke,Fe=b?x.t-Fe:-Fe,e.attr("transform",Pi(Ke,Fe)),!a&&(u||zb(f).getAlpha()&&!zb.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),se=ne[0].length,Le=e.select("."+Tt.cbbg).node(),Ee=Ei.bBox(Le),ar=Ei.getTranslate(e),cr=2;ne.each(function(Ia,ma){var ya=0,vr=se-1;if(ma===ya||ma===vr){var ft=Ei.bBox(this),$r=Ei.getTranslate(this),ht;if(ma===vr){var Pt=ft.right+$r.x,At=Ee.right+ar.x+qe-u-cr+m;ht=At-Pt,ht>0&&(ht=0)}else if(ma===ya){var jr=ft.left+$r.x,ga=Ee.left+ar.x+qe+u+cr;ht=ga-jr,ht<0&&(ht=0)}ht&&(se<3?this.setAttribute("transform","translate("+ht+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=GN[c],Or=UN[c],et=GN[d],ut=UN[d],kt=He-U;a?(i==="pixels"?(sr.y=y,sr.t=V*et,sr.b=V*ut):(sr.t=sr.b=0,sr.yt=y+n*et,sr.yb=y-n*ut),o==="pixels"?(sr.x=m,sr.l=He*Mr,sr.r=He*Or):(sr.l=kt*Mr,sr.r=kt*Or,sr.xl=m-l*Mr,sr.xr=m+l*Or)):(i==="pixels"?(sr.x=m,sr.l=V*Mr,sr.r=V*Or):(sr.l=sr.r=0,sr.xl=m+n*Mr,sr.xr=m-n*Or),o==="pixels"?(sr.y=1-y,sr.t=He*et,sr.b=He*ut):(sr.t=kt*et,sr.b=kt*ut,sr.yt=y-l*et,sr.yb=y+l*ut));var _t=r.y<.5?"b":"t",Ht=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var ra={r:w.width-Xe-Ke,l:Xe+sr.r,b:w.height-lr-Fe,t:lr+sr.b};_&&b?Jp.autoMargin(t,r._id,sr):_?t._fullLayout._reservedMargin[r._id][_t]=ra[_t]:b||a?t._fullLayout._reservedMargin[r._id][Ht]=ra[Ht]:t._fullLayout._reservedMargin[r._id][_t]=ra[_t]}return ai.syncOrAsync([Jp.previousPromises,Be,Pe,We,Jp.previousPromises,Oe],t)}function Yce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Zp.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),Nb(e)},moveFn:function(u,f){e.attr("transform",l+Pi(u,f)),o=Zp.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Zp.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Zp.getCursor(o,s,r.xanchor,r.yanchor);Nb(e,c)},doneFn:function(){if(Nb(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?YN.call("_guiRestyle",t,u,r._traceIndex):YN.call("_guiRelayout",t,u)}}})}function Vce(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:uh(),supplyDefaults:Ug(),draw:ZN().draw,hasColorbar:Ig()}});var QN=O((Ube,KN)=>{"use strict";KN.exports={moduleType:"component",name:"legend",layoutAttributes:Y2(),supplyLayoutDefaults:G2(),draw:a3(),style:j2()}});var eF=O((Wbe,jN)=>{"use strict";jN.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 tF=O((Xbe,rF)=>{"use strict";rF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Bb=O((Zbe,lF)=>{"use strict";var Uce=gr(),iF=Re(),Hb=iF.extendFlat,aF=iF.extendDeep;function nF(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 Wce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}lF.exports=function(r,t){var a,n=r.data,i=r.layout,l=aF([],n),o=aF({},i,nF(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 Xce=$d().EventEmitter,Zce=gr(),Jce=Re(),oF=Cs(),$ce=Bb(),Kce=tp(),Qce=ap();function jce(e,r){var t=new Xce,a=$ce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=oF.getDelay(n._fullLayout);setTimeout(function(){var s=Kce(n),u=document.createElement("canvas");u.id=Jce.randstr(),t=Qce({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=oF.getRedrawFunc(n);return Zce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}sF.exports=jce});var vF=O(($be,cF)=>{"use strict";var fF=Cs(),eve={getDelay:fF.getDelay,getRedrawFunc:fF.getRedrawFunc,clone:Bb(),toSVG:tp(),svgToImg:ap(),toImage:uF(),downloadImage:wx()};cF.exports=eve});var hF=O(Sl=>{"use strict";Sl.version=pd().version;i6();Z8();var rve=gr(),v0=Sl.register=rve.register,Yb=pD(),dF=Object.keys(Yb);for($p=0;$p{"use strict";pF.exports=hF()});var Ll=O((jbe,_F)=>{"use strict";var Dt=Ti(),yF=yi().axisHoverFormat,{hovertemplateAttrs:tve,texttemplateAttrs:ave,templatefallbackAttrs:gF}=gn(),bF=Wc(),nve=aa(),xF=Jv(),ive=di().pattern,Os=mt().extendFlat,Vb=nve({editType:"calc",arrayOk:!0,colorEditType:"style"}),lve=Dt.marker,ove=lve.line,sve=Os({},ove.width,{dflt:0}),uve=Os({width:sve,editType:"calc"},bF("marker.line")),fve=Os({line:uve,editType:"calc"},bF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:ive,cornerradius:{valType:"any",editType:"calc"}});_F.exports={x:Dt.x,x0:Dt.x0,dx:Dt.dx,y:Dt.y,y0:Dt.y0,dy:Dt.dy,xperiod:Dt.xperiod,yperiod:Dt.yperiod,xperiod0:Dt.xperiod0,yperiod0:Dt.yperiod0,xperiodalignment:Dt.xperiodalignment,yperiodalignment:Dt.yperiodalignment,xhoverformat:yF("x"),yhoverformat:yF("y"),text:Dt.text,texttemplate:ave({editType:"plot"},{keys:xF.eventDataKeys}),texttemplatefallback:gF({editType:"plot"}),hovertext:Dt.hovertext,hovertemplate:tve({},{keys:xF.eventDataKeys}),hovertemplatefallback:gF(),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:Os({},Vb,{}),insidetextfont:Os({},Vb,{}),outsidetextfont:Os({},Vb,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Os({},Dt.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:fve,offsetgroup:Dt.offsetgroup,alignmentgroup:Dt.alignmentgroup,selected:{marker:{opacity:Dt.selected.marker.opacity,color:Dt.selected.marker.color,editType:"style"},textfont:Dt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Dt.unselected.marker.opacity,color:Dt.unselected.marker.color,editType:"style"},textfont:Dt.unselected.textfont,editType:"style"},zorder:Dt.zorder}});var Qp=O((e5e,wF)=>{"use strict";wF.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 Gb=O((r5e,MF)=>{"use strict";var cve=br(),TF=bn().hasColorscale,AF=Wu(),vve=Re().coercePattern;MF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=TF(r,"marker");o&&AF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",cve.defaultLine),TF(r,"marker.line")&&AF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),vve(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var al=O((t5e,DF)=>{"use strict";var kF=zr(),Ff=Re(),qF=br(),dve=gr(),hve=Wv(),pve=Ds(),mve=Gb(),yve=bf(),CF=Ll(),jp=Ff.coerceFont;function gve(e,r,t,a){function n(u,f){return Ff.coerce(e,r,CF,u,f)}var i=hve(e,r,a,n);if(!i){r.visible=!1;return}pve(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");LF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),mve(e,r,n,t,a);var o=(r.marker.line||{}).color,s=dve.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||qF.defaultLine,{axis:"y"}),s(e,r,o||qF.defaultLine,{axis:"x",inherit:"y"}),Ff.coerceSelectionMarkerOpacity(r,n)}function xve(e,r){var t,a;function n(o,s){return Ff.coerce(a._input,a,CF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&kF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function LF(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=jp(a,"textfont",t.font),b=Ff.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,jp(a,"insidetextfont",b),d){var x=Ff.extendFlat({},y);w&&delete x.color,jp(a,"pathbar.textfont",x)}m&&jp(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")}DF.exports={supplyDefaults:gve,crossTraceDefaults:xve,handleText:LF,validateCornerradius:SF}});var Ub=O((a5e,EF)=>{"use strict";var bve=gr(),_ve=Zr(),wve=Re(),Tve=Qp(),Ave=al().validateCornerradius;EF.exports=function(e,r,t){function a(m,y){return wve.coerce(e,r,Tve,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=_ve.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=Ave(p)}});var em=O((n5e,PF)=>{"use strict";var If=Re();PF.exports=function(r,t){for(var a=0;a{"use strict";var RF=Zr(),zF=Es(),NF=bn().hasColorscale,FF=Xc(),Mve=em(),kve=Xv();IF.exports=function(r,t){var a=RF.getFromId(r,t.xaxis||"x"),n=RF.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=zF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=zF(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 qve=kr(),Cve=Re();function Sve(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=qve.select(this).select("text");Cve.setTransormAndDisplay(u,s)}})}}function Lve(e,r,t){if(t.uniformtext.mode){var a=BF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Eve=zr(),Pve=Fn(),YF=Re().isArrayOrTypedArray;Ys.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};Ys.coerceNumber=function(e,r,t){if(Eve(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};Ys.coerceColor=function(e,r,t){return Pve(r).isValid()?r:t!==void 0?t:e.dflt};Ys.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ys.getValue=function(e,r){var t;return YF(e)?r{"use strict";var d0=kr(),Rve=br(),h0=Yr(),VF=Re(),GF=gr(),UF=Ri().resizeText,Wb=Ll(),zve=Wb.textfont,Nve=Wb.insidetextfont,Fve=Wb.outsidetextfont,Ca=rm();function Ive(e){var r=d0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");UF(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;WF(i,l,e)}),GF.getComponentMethod("errorbars","style")(r)}function WF(e,r,t){h0.pointStyle(e.selectAll("path"),r,t),XF(e,r,t)}function XF(e,r,t){e.selectAll("text").each(function(a){var n=d0.select(this),i=VF.ensureUniformFontSize(t,ZF(n,a,r,t));h0.font(n,i)})}function Hve(e,r,t){var a=r[0].trace;a.selectedpoints?Bve(t,a,e):(WF(t,a,e),GF.getComponentMethod("errorbars","style")(t))}function Bve(e,r,t){h0.selectedPointStyle(e.selectAll("path"),r),Ove(e.selectAll("text"),r,t)}function Ove(e,r,t){e.each(function(a){var n=d0.select(this),i;if(a.selected){i=VF.ensureUniformFontSize(t,ZF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),h0.font(n,i)}else h0.selectedTextStyle(n,r)})}function ZF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=QF(r,t);i=$F(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=KF(t,r.i,n));return i}function JF(e,r,t){return Xb(zve,e.textfont,r,t)}function $F(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:Rve.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}),Xb(Nve,e.insidetextfont,r,n)}function KF(e,r,t){var a=JF(e,r,t);return Xb(Fve,e.outsidetextfont,r,a)}function Xb(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),d=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,d,a.shadow)}}function QF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}jF.exports={style:Ive,styleTextPoints:XF,styleOnSelect:Hve,getInsideTextFont:$F,getOutsideTextFont:KF,getBarColor:QF,resizeText:UF}});var Bf=O((u5e,oI)=>{"use strict";var tm=kr(),am=zr(),ha=Re(),Yve=la(),Vve=br(),To=Yr(),Gve=gr(),nm=Zr().tickText,eI=Ri(),Uve=eI.recordMinTextSize,Wve=eI.clearMinTextSize,Zb=wo(),Hf=rm(),Xve=Jv(),rI=Ll(),Zve=rI.text,Jve=rI.textposition,$ve=Oi().appendArrayPointValue,Za=Xve.TEXTPAD;function Kve(e){return e.id}function Qve(e){if(e.ids)return Kve}function Jb(e){return(e>0)-(e<0)}function nl(e,r){return e0}function e0e(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},Wve("bar",s));var f=ha.makeTraceGroups(a,t,"trace bars").each(function(c){var d=tm.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=aI(n),M=ha.ensureSingle(d,"g","points"),S=Qve(h),D=M.selectAll("g.point").data(ha.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var H=tm.select(this),F=jve(R,l,o,A),Y=F[0][0],U=F[0][1],G=F[1][0],V=F[1][1],B=(A?U-Y:V-G)===0;B&&w&&Hf.getLineWidth(h,R)&&(B=!1),B||(B=!am(Y)||!am(U)||!am(G)||!am(V)),R.isBlank=B,B&&(A?U=Y:V=G),x&&!B&&(A?(Y-=nl(Y,U)*x,U+=nl(Y,U)*x):(G-=nl(G,V)*x,V+=nl(G,V)*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=Hf.getLineWidth(h,R),X=R.mc||h.marker.color;function le(ie){var we=tm.round(J/2%1,2);return n.gap===0&&n.groupgap===0?tm.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 de=Vve.opacity(X),Q=de<1||J>.01?le:fe;e._context.staticPlot||(Y=Q(Y,U,A),U=Q(U,Y,A),G=Q(G,V,!A),V=Q(V,G,!A));var qe=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?V-G:U-Y),dr=Math.abs(A?U-Y:V-G),Ne=Q(Math.abs(qe(ce,!0)-qe(0,!0))),Me=R.hasB?Math.min($e/2,dr/2):Math.min($e/2,Ne),Ce;if(we==="%"){var He=Math.min(50,ie);Ce=$e*(He/100)}else Ce=ie;return Q(Math.max(Math.min(Ce,Me),0))}var ge=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,_e,W,j="M"+Y+","+G+"V"+V+"H"+U+"V"+G+"Z",Z=0;if(ge&&R.s){var oe=Jb(R.s0)===0||Jb(R.s)===Jb(R.s0)?R.s1:R.s0;if(Z=Q(R.hasB?0:Math.abs(qe(ce,!0)-qe(oe,!0))),Z0?Math.sqrt(Z*(2*ge-Z)):0,Ie=me>0?Math.max:Math.min;_e="M"+Y+","+G+"V"+(V-ze*xe)+"H"+Ie(U-(ge-Z)*me,Y)+"A "+ge+","+ge+" 0 0 "+De+" "+U+","+(V-ge*xe-Se)+"V"+(G+ge*xe+Se)+"A "+ge+","+ge+" 0 0 "+De+" "+Ie(U-(ge-Z)*me,Y)+","+(G+ze*xe)+"Z"}else if(R.hasB)_e="M"+(Y+ge*me)+","+G+"A "+ge+","+ge+" 0 0 "+De+" "+Y+","+(G+ge*xe)+"V"+(V-ge*xe)+"A "+ge+","+ge+" 0 0 "+De+" "+(Y+ge*me)+","+V+"H"+(U-ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+U+","+(V-ge*xe)+"V"+(G+ge*xe)+"A "+ge+","+ge+" 0 0 "+De+" "+(U-ge*me)+","+G+"Z";else{W=Math.abs(V-G)+Z;var Be=W0?Math.sqrt(Z*(2*ge-Z)):0,Pe=xe>0?Math.max:Math.min;_e="M"+(Y+Be*me)+","+G+"V"+Pe(V-(ge-Z)*xe,G)+"A "+ge+","+ge+" 0 0 "+De+" "+(Y+ge*me-We)+","+V+"H"+(U-ge*me+We)+"A "+ge+","+ge+" 0 0 "+De+" "+(U-Be*me)+","+Pe(V-(ge-Z)*xe,G)+"V"+G+"Z"}}else _e=j}else _e=j;var Oe=tI(ha.ensureSingle(H,"path"),s,n,i);if(Oe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-Y)*(V-G))||B&&e._context.staticPlot?"M0,0Z":_e).call(To.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ue=To.makePointStyleFns(h);To.singlePointStyle(R,Oe,h,Ue,e)}r0e(e,r,H,c,N,Y,U,G,V,ge,Z,n,i),r.layerClipId&&To.hideOutsideRangePoint(R,H.select("text"),l,o,h.xcalendar,h.ycalendar)});var E=h.cliponaxis===!1;To.setClipUrl(d,E?null:r.layerClipId,e)});Gve.getComponentMethod("errorbars","plot")(e,f,r,n)}function r0e(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,j,Z){var oe=ha.ensureSingle(W,"text").text(j).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(To.font,Z).call(Yve.convertToTspans,e);return oe}var _=a[0].trace,w=_.orientation==="h",x=n0e(m,a,n,h,p);y=i0e(_,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=Zb.getBarColor(a[n],_),N=Zb.getInsideTextFont(_,n,E,R),H=Zb.getOutsideTextFont(_,n,E),F=_.insidetextanchor||"end",Y=t.datum();w?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&le>0,Q;D?S?Q=Vs(V-2*u,B,ee,le,w)||Vs(V,B-2*u,ee,le,w):w?Q=Vs(V-(u-f),B,ee,le,w)||Vs(V,B-2*(u-f),ee,le,w):Q=Vs(V,B-(u-f),ee,le,w)||Vs(V-2*(u-f),B,ee,le,w):Q=Vs(V,B,ee,le,w),de&&Q?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){fe=ha.ensureUniformFontSize(e,y==="outside"?H:N),J=b(t,x,fe);var qe=J.attr("transform");if(J.attr("transform",""),X=To.bBox(J.node()),ee=X.width,le=X.height,J.attr("transform",qe),ee<=0||le<=0){J.remove();return}}var ce=_.textangle,be,ge;y==="outside"?(ge=_.constraintext==="both"||_.constraintext==="outside",be=a0e(i,l,o,s,X,{isHorizontal:w,constrained:ge,angle:ce})):(ge=_.constraintext==="both"||_.constraintext==="inside",be=lI(i,l,o,s,X,{isHorizontal:w,constrained:ge,angle:ce,anchor:F,hasB:S,r:u,overhead:f})),be.fontSize=fe.size,Uve(_.type==="histogram"?"bar":_.type,be,m),k.transform=be;var _e=tI(J,m,c,d);ha.setTransormAndDisplay(_e,be)}function Vs(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 nI(e){return e==="auto"?0:e}function iI(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 lI(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=nI(s);s==="auto"&&!(_<=x&&w<=A)&&(_>x||w>A)&&(!(_>A||w>x)||_Za){var R=t0e(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,F=(e+Za)*p+(r-Za)*h,Y=(t+a)/2,U=0,G=0;if(c||f){var V=(l?S.x:S.y)/2;y&&(f||m)&&(k+=E);var B=l?nl(e,r):nl(t,a);l?c?(F=e+B*k,U=-B*V):(F=r-B*k,U=B*V):c?(Y=t+B*k,G=-B*V):(Y=a-B*k,G=B*V)}return{textX:N,textY:H,targetX:F,targetY:Y,anchorX:U,anchorY:G,scale:D,rotate:M}}function t0e(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 a0e(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=nI(s),y=iI(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?nl(r,e):nl(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 n0e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=l0e(e,r,t,a,n):i.textinfo?o=o0e(r,t,a,n):o=Hf.getValue(i.text,t),Hf.coerceString(Zve,o)}function i0e(e,r){var t=Hf.getValue(e.textposition,r);return Hf.coerceEnumerated(Jve,t)}function l0e(e,r,t,a,n){var i=r[0].trace,l=ha.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 nm(d,d.c2l(k),!0).text}function y(k){return nm(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=m(b.p);var w=ha.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[h+"Label"]=y(b.s);var x={};$ve(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=ha.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=ha.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=ha.formatPercent(b.sumR));var A=ha.castOption(i,b.i,"customdata");return A&&(_.customdata=A),ha.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function o0e(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 nm(k,A,!0).text}function u(A){var k=i?t:a;return nm(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=ha.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=ha.formatPercent(c.begR),x&&(p+=" of initial"),h.push(p)),m("percent previous")&&(p=ha.formatPercent(c.difR),x&&(p+=" of previous"),h.push(p)),m("percent total")&&(p=ha.formatPercent(c.sumR),x&&(p+=" of total"),h.push(p))}return h.join("
")}oI.exports={plot:e0e,toMoveInsideBar:lI}});var m0=O((f5e,cI)=>{"use strict";var p0=_i(),s0e=gr(),sI=br(),u0e=Re().fillText,f0e=rm().getLineWidth,$b=Zr().hoverLabelText,c0e=wt().BADNUM;function v0e(e,r,t,a,n){var i=uI(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=fI(o,s),s0e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function uI(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(Q){return M(Q,-1)}function k(Q){return M(Q,1)}function M(Q,qe){var ce=Q.w;return Q[p]+qe*ce/2}function S(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?A:w?function(Q){return Q.p-S(Q)/2}:function(Q){return Math.min(A(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+S(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,qe,ce){return n.finiteRange&&(ce=0),p0.inbox(Q-d,qe-d,ce+Math.min(1,Math.abs(qe-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function H(Q){return R(A(Q),k(Q),c)}function F(Q){var qe=Q[m];if(u){var ce=Math.abs(Q.rawS)||0;h>0?qe+=ce:h<0&&(qe-=ce)}return qe}function Y(Q){var qe=h,ce=Q.b,be=F(Q);return p0.inbox(ce-qe,be-qe,f+(be-qe)/(be-ce)-1)}function U(Q){var qe=h,ce=Q.b,be=F(Q);return p0.inbox(ce-qe,be-qe,c+(be-qe)/(be-ce)-1)}var G=e[p+"a"],V=e[m+"a"];_=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function B(Q){return(y(Q)+b(Q))/2}var J=p0.getDistanceFunction(a,y,b,B);if(p0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==c0e){x||(D=function(Q){return Math.min(A(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.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"]=V.c2p(ee[m],!0),e[m+"LabelVal"]=le;var fe=o.extents[o.extents.round(ee.p)];e[p+"0"]=G.c2p(s?D(ee):fe[0],!0),e[p+"1"]=G.c2p(s?E(ee):fe[1],!0);var de=ee.orig_p!==void 0;return e[p+"LabelVal"]=de?ee.orig_p:ee.p,e.labelLabel=$b(G,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=$b(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=$b(V,ee.b,l[m+"hoverformat"]),e.spikeDistance=(U(ee)+H(ee))/2,e[p+"Spike"]=G.c2p(ee.p,!0),u0e(ee,l,e),e.hovertemplate=l.hovertemplate,e}}function fI(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=f0e(e,r);if(sI.opacity(t))return t;if(sI.opacity(a)&&n)return a}cI.exports={hoverPoints:v0e,hoverOnBars:uI,getTraceColor:fI}});var dI=O((c5e,vI)=>{"use strict";vI.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 y0=O((v5e,hI)=>{"use strict";hI.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";pI.exports={attributes:Ll(),layoutAttributes:Qp(),supplyDefaults:al().supplyDefaults,crossTraceDefaults:al().crossTraceDefaults,supplyLayoutDefaults:Ub(),calc:HF(),crossTraceCalc:Tf().crossTraceCalc,colorbar:hp(),arraysToCalcdata:em(),plot:Bf().plot,style:wo().style,styleOnSelect:wo().styleOnSelect,hoverPoints:m0().hoverPoints,eventData:dI(),selectPoints:y0(),moduleType:"trace",name:"bar",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var gI=O((h5e,yI)=>{"use strict";yI.exports=mI()});var bI=O((p5e,xI)=>{"use strict";xI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var wI=O((m5e,_I)=>{"use strict";_I.exports={eventDataKeys:["binNumber"]}});var jb=O((y5e,kI)=>{"use strict";var hn=Ll(),TI=yi().axisHoverFormat,{hovertemplateAttrs:h0e,texttemplateAttrs:p0e,templatefallbackAttrs:AI}=gn(),Kb=aa(),MI=bI(),m0e=wI(),Qb=mt().extendFlat;kI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:TI("x"),yhoverformat:TI("y"),text:Qb({},hn.text,{}),hovertext:Qb({},hn.hovertext,{}),orientation:hn.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:MI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:MI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:h0e({},{keys:m0e.eventDataKeys}),hovertemplatefallback:AI(),texttemplate:p0e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:AI({editType:"plot"}),textposition:Qb({},hn.textposition,{arrayOk:!1}),textfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:hn.insidetextanchor,textangle:hn.textangle,cliponaxis:hn.cliponaxis,constraintext:hn.constraintext,marker:hn.marker,offsetgroup:hn.offsetgroup,alignmentgroup:hn.alignmentgroup,selected:hn.selected,unselected:hn.unselected,zorder:hn.zorder}});var LI=O((g5e,SI)=>{"use strict";var qI=gr(),g0=Re(),CI=br(),y0e=al().handleText,g0e=Gb(),x0e=jb();SI.exports=function(r,t,a,n){function i(_,w){return g0.coerce(r,t,x0e,_,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");y0e(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(g0.minRowLength(l)&&g0.minRowLength(o)):g0.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=qI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[d];m&&i("histfunc"),i("histnorm"),i("autobin"+c),g0e(r,t,i,a,n),g0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=qI.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||CI.defaultLine,{axis:"y"}),b(r,t,y||CI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var RI=O((x5e,PI)=>{"use strict";var x0=Re(),b0e=Xt(),im=gr().traceIs,_0e=bf(),w0e=al().validateCornerradius,DI=x0.nestedProperty,e5=qs().getAxisGroup,EI=[{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"}],T0e=["x","y"];PI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,d,h;function p(Y,U){return x0.coerce(o._input,o,o._module.attributes,Y,U)}function m(Y){return Y.orientation==="v"?"x":"y"}function y(Y,U){var G=b0e.getFromTrace({_fullLayout:t},Y,U);return G.type}function b(Y,U,G){var V=Y.uid+"__"+G;U||(U=V);var B=y(Y,G),J=Y[G+"calendar"]||"",X=a[U],ee=!0;X&&(B===X.axType&&J===X.calendar?(ee=!1,X.traces.push(Y),X.dirs.push(G)):(U=V,B!==X.axType&&x0.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&&x0.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[U]={traces:[Y],dirs:[G],axType:B,calendar:Y[G+"calendar"]||""}),Y["_"+G+"bingroup"]=U}for(c=0;c{"use strict";var Of=zr();zI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Of(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Of(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Of(n))if(n=Number(n),Of(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(Of(n))if(n=Number(n),Of(t[e])){if(t[e]{"use strict";FI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";HI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Yf=wt(),Gs=Yf.ONEAVGYEAR,OI=Yf.ONEAVGMONTH,om=Yf.ONEDAY,YI=Yf.ONEHOUR,VI=Yf.ONEMIN,GI=Yf.ONESEC,UI=Zr().tickIncrement;ZI.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(lm(u+o,u+s,n,i),lm(f+o,f+s,n,i)),d=Math.min(lm(u+l,u+o,n,i),lm(f+l,f+o,n,i)),h,p;if(c>d&&dom){var m=h===Gs?1:6,y=h===Gs?"M12":"M1";return function(b,_){var w=n.c2d(b,Gs,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var A=n.d2c(w,0,i);if(AGI?e>om?e>Gs*1.1?Gs:e>OI*1.1?OI:om:e>YI?YI:e>VI?VI:GI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function A0e(e,r,t,a,n,i){if(a&&e>om){var l=XI(r,n,i),o=XI(t,n,i),s=e===Gs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function XI(e,r,t){var a=r.c2d(e,Gs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var rH=O((A5e,eH)=>{"use strict";var r5=zr(),Ja=Re(),$I=gr(),ni=Zr(),{hasColorscale:KI}=bn(),QI=Xc(),M0e=em(),jI=NI(),k0e=II(),q0e=BI(),C0e=JI();function S0e(e,r){var t=[],a=[],n=r.orientation==="h",i=ni.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=t5(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=jI.count,F=k0e[A],Y=!1,U=function(W){return i.r2c(W,0,s)},G;for(Ja.isArrayOrTypedArray(r[o])&&k!=="count"&&(G=r[o],Y=k==="avg",H=jI[k]),f=U(d.start),D=U(d.end)+(f-ni.tickIncrement(f,d.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){ge=f;break}for(f=be;f<=ge;f++)if(r5(t[f])&&r5(a[f])){var _e={p:t[f],s:a[f],b:0};u.enabled||(_e.pts=w[f],X?_e.ph0=_e.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,_e.ph0=Q(m[f]),_e.ph1=Q(m[f+1],!0))),ce.push(_e)}return ce.length===1&&(ce[0].width1=ni.tickIncrement(ce[0].p,d.size,!1,s)-ce[0].p),KI(r,"marker")&&QI(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),KI(r,"marker.line")&&QI(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),M0e(ce,r),Ja.isArrayOrTypedArray(r.selectedpoints)&&Ja.tagSelected(ce,r,fe),ce}function t5(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(de){return t.r2c(de,0,h)},_=function(de){return t.c2r(de,0,h)},w=t.type==="date"?function(de){return de||de===0?Ja.cleanDate(de,null,h):null}:function(de){return r5(de)?Number(de):null};function x(de,Q,qe){Q[de+"Found"]?(Q[de]=w(Q[de]),Q[de]===null&&(Q[de]=qe[de])):(m[de]=Q[de]=qe[de],Ja.nestedProperty(c[0],i+"."+de).set(qe[de]))}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(G)&&(B=ni.tickIncrement(B,s.size,!0,h)),H.start=t.l2r(B),U||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 L0e(e,r,t,a,n){var i=e._fullLayout,l=D0e(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())}}eH.exports={calc:S0e,calcAllAutoBins:t5}});var aH=O((M5e,tH)=>{"use strict";var P0e=m0().hoverPoints,R0e=Zr().hoverLabelText;tH.exports=function(r,t,a,n,i){var l=P0e(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"]=R0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var iH=O((k5e,nH)=>{"use strict";nH.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";lH.exports={attributes:jb(),layoutAttributes:Qp(),supplyDefaults:LI(),crossTraceDefaults:RI(),supplyLayoutDefaults:Ub(),calc:rH().calc,crossTraceCalc:Tf().crossTraceCalc,plot:Bf().plot,layerName:"barlayer",style:wo().style,styleOnSelect:wo().styleOnSelect,colorbar:hp(),hoverPoints:aH(),selectPoints:y0(),eventData:iH(),moduleType:"trace",name:"histogram",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var uH=O((C5e,sH)=>{"use strict";sH.exports=oH()});var cH=O((S5e,fH)=>{"use strict";fH.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var n5=O((L5e,pH)=>{"use strict";var pt=Ll(),a5=Ti().line,z0e=an(),vH=yi().axisHoverFormat,{hovertemplateAttrs:N0e,texttemplateAttrs:F0e,templatefallbackAttrs:dH}=gn(),hH=cH(),Dl=mt().extendFlat,I0e=br();pH.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:vH("x"),yhoverformat:vH("y"),hovertext:pt.hovertext,hovertemplate:N0e({},{keys:hH.eventDataKeys}),hovertemplatefallback:dH(),hoverinfo:Dl({},z0e.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:F0e({editType:"plot"},{keys:hH.eventDataKeys.concat(["label","value"])}),texttemplatefallback:dH({editType:"plot"}),text:pt.text,textposition:pt.textposition,insidetextanchor:Dl({},pt.insidetextanchor,{dflt:"middle"}),textangle:Dl({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Dl({},pt.orientation,{}),offset:Dl({},pt.offset,{arrayOk:!1}),width:Dl({},pt.width,{arrayOk:!1}),marker:H0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Dl({},a5.color,{dflt:I0e.defaultLine}),width:Dl({},a5.width,{dflt:0,editType:"plot"}),dash:a5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function H0e(){var e=Dl({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var i5=O((D5e,mH)=>{"use strict";mH.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 o5=O((E5e,gH)=>{"use strict";var sm=Re(),B0e=bf(),O0e=al().handleText,Y0e=Wv(),V0e=Ds(),yH=n5(),l5=br();function G0e(e,r,t,a){function n(c,d){return sm.coerce(e,r,yH,c,d)}var i=Y0e(e,r,a,n);if(!i){r.visible=!1;return}V0e(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");O0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",sm.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",l5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",U0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function U0e(e){var r=sm.isArrayOrTypedArray(e)?"#000":e;return l5.addOpacity(r,.5*l5.opacity(r))}function W0e(e,r){var t,a;function n(l){return sm.coerce(a._input,a,yH,l)}for(var i=0;i{"use strict";var X0e=Re(),Z0e=i5();xH.exports=function(e,r,t){var a=!1;function n(o,s){return X0e.coerce(e,r,Z0e,o,s)}for(var i=0;i{"use strict";var Vf=Re();_H.exports=function(r,t){for(var a=0;a{"use strict";var TH=Zr(),AH=Es(),J0e=wH(),$0e=Xv(),b0=wt().BADNUM;MH.exports=function(r,t){var a=TH.getFromId(r,t.xaxis||"x"),n=TH.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=AH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=AH(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 qH=Tf().setGroupPositions;CH.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 um=kr(),Mo=Re(),LH=Yr(),Ao=wt().BADNUM,K0e=Bf(),Q0e=Ri().clearMinTextSize;EH.exports=function(r,t,a,n){var i=r._fullLayout;Q0e("funnel",i),j0e(r,t,a,n),ede(r,t,a,n),K0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function j0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;Mo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=um.select(this),s=l[0].trace,u=Mo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(Mo.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=DH(h,n,i,f),y=m[0],b=m[1],_="";y[0]!==Ao&&b[0]!==Ao&&y[1]!==Ao&&b[1]!==Ao&&y[2]!==Ao&&b[2]!==Ao&&y[3]!==Ao&&b[3]!==Ao&&(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"),Mo.ensureSingle(um.select(this),"path").attr("d",_).call(LH.setClipUrl,r.layerClipId,e)}})})}function ede(e,r,t,a){var n=r.xaxis,i=r.yaxis;Mo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=um.select(this),s=l[0].trace,u=Mo.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(Mo.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=DH(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"),Mo.ensureSingle(um.select(this),"path").attr("d",_).call(LH.setClipUrl,r.layerClipId,e)}})})}function DH(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 NH=O((I5e,zH)=>{"use strict";var _0=kr(),RH=Yr(),u5=br(),rde=ku().DESELECTDIM,tde=wo(),ade=Ri().resizeText,nde=tde.styleTextPoints;function ide(e,r,t){var a=t||_0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");ade(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=_0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;_0.select(this).call(u5.fill,o.mc||s.color).call(u5.stroke,o.mlc||s.line.color).call(RH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?rde:1)}}),nde(i,l,e),i.selectAll(".regions").each(function(){_0.select(this).selectAll("path").style("stroke-width",0).call(u5.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;RH.lineGroupStyle(_0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}zH.exports={style:ide}});var HH=O((H5e,IH)=>{"use strict";var FH=br().opacity,lde=m0().hoverOnBars,f5=Re().formatPercent;IH.exports=function(r,t,a,n,i){var l=lde(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=f5(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=f5(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=f5(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=ode(s,c),[l]}};function ode(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(FH(a))return a;if(FH(n)&&i)return n}});var OH=O((B5e,BH)=>{"use strict";BH.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 VH=O((O5e,YH)=>{"use strict";YH.exports={attributes:n5(),layoutAttributes:i5(),supplyDefaults:o5().supplyDefaults,crossTraceDefaults:o5().crossTraceDefaults,supplyLayoutDefaults:bH(),calc:kH(),crossTraceCalc:SH(),plot:PH(),style:NH().style,hoverPoints:HH(),eventData:OH(),selectPoints:y0(),moduleType:"trace",name:"funnel",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var UH=O((Y5e,GH)=>{"use strict";GH.exports=VH()});var XH=O((V5e,WH)=>{"use strict";WH.exports={eventDataKeys:["initial","delta","final"]}});var d5=O((G5e,KH)=>{"use strict";var st=Ll(),c5=Ti().line,sde=an(),ZH=yi().axisHoverFormat,{hovertemplateAttrs:ude,texttemplateAttrs:fde,templatefallbackAttrs:JH}=gn(),$H=XH(),Gf=mt().extendFlat,cde=br();function v5(e){return{marker:{color:Gf({},st.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Gf({},st.marker.line.color,{arrayOk:!1,editType:"style"}),width:Gf({},st.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}KH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:st.x,x0:st.x0,dx:st.dx,y:st.y,y0:st.y0,dy:st.dy,xperiod:st.xperiod,yperiod:st.yperiod,xperiod0:st.xperiod0,yperiod0:st.yperiod0,xperiodalignment:st.xperiodalignment,yperiodalignment:st.yperiodalignment,xhoverformat:ZH("x"),yhoverformat:ZH("y"),hovertext:st.hovertext,hovertemplate:ude({},{keys:$H.eventDataKeys}),hovertemplatefallback:JH(),hoverinfo:Gf({},sde.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:fde({editType:"plot"},{keys:$H.eventDataKeys.concat(["label"])}),texttemplatefallback:JH({editType:"plot"}),text:st.text,textposition:st.textposition,insidetextanchor:st.insidetextanchor,textangle:st.textangle,textfont:st.textfont,insidetextfont:st.insidetextfont,outsidetextfont:st.outsidetextfont,constraintext:st.constraintext,cliponaxis:st.cliponaxis,orientation:st.orientation,offset:st.offset,width:st.width,increasing:v5("increasing"),decreasing:v5("decreasing"),totals:v5("intermediate sums and total"),connector:{line:{color:Gf({},c5.color,{dflt:cde.defaultLine}),width:Gf({},c5.width,{editType:"plot"}),dash:c5.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:st.offsetgroup,alignmentgroup:st.alignmentgroup,zorder:st.zorder}});var h5=O((U5e,QH)=>{"use strict";QH.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 Uf=O((W5e,jH)=>{"use strict";jH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var m5=O((X5e,aB)=>{"use strict";var eB=Re(),vde=bf(),dde=al().handleText,hde=Wv(),pde=Ds(),rB=d5(),mde=br(),tB=Uf(),yde=tB.INCREASING.COLOR,gde=tB.DECREASING.COLOR,xde="#4499FF";function p5(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",mde.defaultLine),e(r+".marker.line.width")}function bde(e,r,t,a){function n(u,f){return eB.coerce(e,r,rB,u,f)}var i=hde(e,r,a,n);if(!i){r.visible=!1;return}pde(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");dde(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")),p5(n,"increasing",yde),p5(n,"decreasing",gde),p5(n,"totals",xde);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 _de(e,r){var t,a;function n(l){return eB.coerce(a._input,a,rB,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var wde=Re(),Tde=h5();nB.exports=function(e,r,t){var a=!1;function n(o,s){return wde.coerce(e,r,Tde,o,s)}for(var i=0;i{"use strict";var lB=Zr(),oB=Es(),sB=Re().mergeArray,Ade=Xv(),uB=wt().BADNUM;function y5(e){return e==="a"||e==="absolute"}function g5(e){return e==="t"||e==="total"}fB.exports=function(r,t){var a=lB.getFromId(r,t.xaxis||"x"),n=lB.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=oB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=oB(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 vB=Tf().setGroupPositions;dB.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 pB=kr(),fm=Re(),Mde=Yr(),Wf=wt().BADNUM,kde=Bf(),qde=Ri().clearMinTextSize;mB.exports=function(r,t,a,n){var i=r._fullLayout;qde("waterfall",i),kde.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),Cde(r,t,a,n)};function Cde(e,r,t,a){var n=r.xaxis,i=r.yaxis;fm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=pB.select(this),s=l[0].trace,u=fm.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(fm.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=Sde(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 cm=kr(),gB=Yr(),xB=br(),Lde=ku().DESELECTDIM,Dde=wo(),Ede=Ri().resizeText,Pde=Dde.styleTextPoints;function Rde(e,r,t){var a=t||cm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Ede(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=cm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;cm.select(this).call(xB.fill,s.color).call(xB.stroke,s.line.color).call(gB.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?Lde:1)}}),Pde(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;gB.lineGroupStyle(cm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}bB.exports={style:Rde}});var kB=O((j5e,MB)=>{"use strict";var zde=Zr().hoverLabelText,wB=br().opacity,Nde=m0().hoverOnBars,TB=Uf(),AB={increasing:TB.INCREASING.SYMBOL,decreasing:TB.DECREASING.SYMBOL};MB.exports=function(r,t,a,n,i){var l=Nde(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 zde(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+" "+AB.decreasing):_.push(l.deltaLabel+" "+AB.increasing)),A("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=Fde(s,p),[l]};function Fde(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(wB(a))return a;if(wB(n)&&i)return n}});var CB=O((e_e,qB)=>{"use strict";qB.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 LB=O((r_e,SB)=>{"use strict";SB.exports={attributes:d5(),layoutAttributes:h5(),supplyDefaults:m5().supplyDefaults,crossTraceDefaults:m5().crossTraceDefaults,supplyLayoutDefaults:iB(),calc:cB(),crossTraceCalc:hB(),plot:yB(),style:_B().style,hoverPoints:kB(),eventData:CB(),selectPoints:y0(),moduleType:"trace",name:"waterfall",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var EB=O((t_e,DB)=>{"use strict";DB.exports=LB()});var dm=O((a_e,RB)=>{"use strict";var x5=an(),Ide=xo().attributes,Hde=aa(),Bde=In(),{hovertemplateAttrs:Ode,texttemplateAttrs:Yde,templatefallbackAttrs:PB}=gn(),Us=mt().extendFlat,Vde=di().pattern,vm=Hde({editType:"plot",arrayOk:!0,colorEditType:"plot"});RB.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:Bde.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Vde,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:Us({},x5.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ode({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:PB(),texttemplate:Yde({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:PB({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Us({},vm,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Us({},vm,{}),outsidetextfont:Us({},vm,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Us({},x5.showlegend,{arrayOk:!0}),legend:Us({},x5.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Us({},vm,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Ide({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 hm=O((n_e,FB)=>{"use strict";var Gde=zr(),w0=Re(),Ude=dm(),Wde=xo().defaults,Xde=al().handleText,Zde=Re().coercePattern;function zB(e,r){var t=w0.isArrayOrTypedArray(e),a=w0.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 NB(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");Zde(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 Jde(e,r,t,a){function n(_,w){return w0.coerce(e,r,Ude,_,w)}var i=n("labels"),l=n("values"),o=zB(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,NB(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",w0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var d=n("textposition");Xde(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");Wde(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"),w0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}FB.exports={handleLabelsAndValues:zB,handleMarkerDefaults:NB,supplyDefaults:Jde}});var pm=O((i_e,IB)=>{"use strict";IB.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var BB=O((l_e,HB)=>{"use strict";var $de=Re(),Kde=pm();HB.exports=function(r,t){function a(n,i){return $de.coerce(r,t,Kde,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var mm=O((o_e,VB)=>{"use strict";var Qde=zr(),b5=Fn(),jde=br(),ehe={};function rhe(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 OB(e){return function(t,a){return!t||(t=b5(t),!t.isValid())?!1:(t=jde.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function the(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=YB(i,ehe));for(var o=0,s=0;s{"use strict";var ahe=Oi().appendArrayMultiPointValues;GB.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]),ahe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var T5=O((u_e,vO)=>{"use strict";var pn=kr(),nhe=zt(),ym=_i(),KB=br(),El=Yr(),Sa=Re(),ihe=Sa.strScale,WB=Sa.strTranslate,_5=la(),QB=Ri(),lhe=QB.recordMinTextSize,ohe=QB.clearMinTextSize,jB=Jv().TEXTPAD,Tr=uv(),gm=UB(),XB=Re().isValidTextValue;function she(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;ohe("pie",a),tO(r,e),uO(r,n);var i=Sa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=pn.select(this),s=l[0],u=s.trace;yhe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=pn.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){pn.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=pn.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(eO,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(V,B,J,X){var ee=X*(B[0]-V[0]),le=X*(B[1]-V[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 F=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]+F+"Z")}else D.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+F+"Z")}fO(e,x,s);var U=Tr.castOption(u.textposition,x.pts),G=S.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var V=Sa.ensureSingle(pn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),B=Sa.ensureUniformFontSize(e,U==="outside"?fhe(u,x,a.font):rO(u,x,a.font));V.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,B).call(_5.convertToTspans,e);var J=El.bBox(V.node()),X;if(U==="outside")X=$B(J,x);else if(X=aO(J,x,s),U==="auto"&&X.scale<1){var ee=Sa.ensureUniformFontSize(e,u.outsidetextfont);V.call(El.font,ee),J=El.bBox(V.node()),X=$B(J,x)}var le=X.textPosAngle,fe=le===void 0?x.pxmid:xm(s.r,le);if(X.targetX=k+fe[0]*X.rCenter+(X.x||0),X.targetY=M+fe[1]*X.rCenter+(X.y||0),cO(X,J),X.outside){var de=X.targetY;x.yLabelMin=de-J.height/2,x.yLabelMid=de,x.yLabelMax=de+J.height/2,x.labelExtraX=0,x.labelExtraY=0,d=!0}X.fontSize=B.size,lhe(u.type,X,a),l[A].transform=X,Sa.setTransormAndDisplay(V,X)})});var h=pn.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=Sa.ensureSingle(pn.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(El.font,u.title.font).call(_5.convertToTspans,e);var k;u.title.position==="middle center"?k=dhe(s):k=oO(s,n),x.attr("transform",WB(k.x,k.y)+ihe(Math.min(1,k.scale))+WB(k.tx,k.ty))}),d&&phe(c,u),uhe(f,u),d&&u.automargin){var p=El.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;nhe.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=pn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function uhe(e,r){e.each(function(t){var a=pn.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(KB.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function eO(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=ym.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;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=[];ym.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:[gm(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:[gm(s,f)],event:pn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=pn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=pn.event,r.emit("plotly_unhover",{points:[gm(c,f)],event:pn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(ym.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=[gm(s,f)],ym.click(r,pn.event))})}function fhe(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 rO(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||KB.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function tO(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=ZB(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 che(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 dhe(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 oO(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=sO(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=hhe(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=w5(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function hhe(e,r){return e/(r===void 0?1:r)}function w5(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 sO(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 phe(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,F,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)),F=N.cxFinal+i(N.px0[0],N.px1[0]),Y=F+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=vhe(u,r))}function xm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function fO(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);XB(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: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);(XB(w)||w==="")&&(_.text=w),r.text=Sa.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function cO(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}vO.exports={plot:she,formatSliceLabel:fO,transformInsideText:aO,determineInsideTextFont:rO,positionTitleOutside:oO,prerenderTitles:tO,layoutAreas:uO,attachFxHandlers:eO,computeTransform:cO}});var pO=O((f_e,hO)=>{"use strict";var dO=kr(),ghe=tf(),xhe=Ri().resizeText;hO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");xhe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=dO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){dO.select(this).call(ghe,o,i,r)})})}});var yO=O(Xf=>{"use strict";var mO=zt();Xf.name="pie";Xf.plot=function(e,r,t,a){mO.plotBasePlot(Xf.name,e,r,t,a)};Xf.clean=function(e,r,t,a){mO.cleanBasePlot(Xf.name,e,r,t,a)}});var xO=O((v_e,gO)=>{"use strict";gO.exports={attributes:dm(),supplyDefaults:hm().supplyDefaults,supplyLayoutDefaults:BB(),layoutAttributes:pm(),calc:mm().calc,crossTraceCalc:mm().crossTraceCalc,plot:T5().plot,style:pO(),styleOne:tf(),moduleType:"trace",name:"pie",basePlotModule:yO(),categories:["pie-like","pie","showLegend"],meta:{}}});var _O=O((d_e,bO)=>{"use strict";bO.exports=xO()});var TO=O(Zf=>{"use strict";var wO=zt();Zf.name="funnelarea";Zf.plot=function(e,r,t,a){wO.plotBasePlot(Zf.name,e,r,t,a)};Zf.clean=function(e,r,t,a){wO.cleanBasePlot(Zf.name,e,r,t,a)}});var A5=O((p_e,MO)=>{"use strict";var La=dm(),bhe=an(),_he=xo().attributes,{hovertemplateAttrs:whe,texttemplateAttrs:The,templatefallbackAttrs:AO}=gn(),Ws=mt().extendFlat;MO.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:The({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:AO({editType:"plot"}),hoverinfo:Ws({},bhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:whe({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:AO(),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:_he({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 M5=O((m_e,kO)=>{"use strict";var Ahe=pm().hiddenlabels;kO.exports={hiddenlabels:Ahe,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var SO=O((y_e,CO)=>{"use strict";var qO=Re(),Mhe=A5(),khe=xo().defaults,qhe=al().handleText,Che=hm().handleLabelsAndValues,She=hm().handleMarkerDefaults;CO.exports=function(r,t,a,n){function i(m,y){return qO.coerce(r,t,Mhe,m,y)}var l=i("labels"),o=i("values"),s=Che(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,She(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");qhe(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else d==="none"&&i("textposition","none");khe(t,n,i);var p=i("title.text");p&&(i("title.position"),qO.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var DO=O((g_e,LO)=>{"use strict";var Lhe=Re(),Dhe=M5();LO.exports=function(r,t){function a(n,i){return Lhe.coerce(r,t,Dhe,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var k5=O((x_e,PO)=>{"use strict";var EO=mm();function Ehe(e,r){return EO.calc(e,r)}function Phe(e){EO.crossTraceCalc(e,{type:"funnelarea"})}PO.exports={calc:Ehe,crossTraceCalc:Phe}});var IO=O((b_e,FO)=>{"use strict";var Xs=kr(),q5=Yr(),ko=Re(),Rhe=ko.strScale,RO=ko.strTranslate,zO=la(),zhe=Bf(),Nhe=zhe.toMoveInsideBar,NO=Ri(),Fhe=NO.recordMinTextSize,Ihe=NO.clearMinTextSize,Hhe=uv(),Jf=T5(),Bhe=Jf.attachFxHandlers,Ohe=Jf.determineInsideTextFont,Yhe=Jf.layoutAreas,Vhe=Jf.prerenderTitles,Ghe=Jf.positionTitleOutside,Uhe=Jf.formatSliceLabel;FO.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;Ihe("funnelarea",n),Vhe(t,r),Yhe(t,n._size),ko.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Xs.select(this),o=i[0],s=o.trace;Xhe(i),l.each(function(){var u=Xs.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){Xs.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,m=Xs.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(Bhe,r,i);var b="M"+(h+c.TR[0])+","+(p+c.TR[1])+C5(c.TR,c.BR)+C5(c.BR,c.BL)+C5(c.BL,c.TL)+"Z";y.attr("d",b),Uhe(r,c,o);var _=Hhe.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=ko.ensureSingle(Xs.select(this),"text","",function(N){N.attr("data-notex",1)}),A=ko.ensureUniformFontSize(r,Ohe(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(q5.font,A).call(zO.convertToTspans,r);var k=q5.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=Nhe(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),M.fontSize=A.size,Fhe(s.type,M,n),i[d].transform=M,ko.setTransormAndDisplay(x,M)})});var f=Xs.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=ko.ensureSingle(Xs.select(this),"text","",function(p){p.attr("data-notex",1)}),d=s.title.text;s._meta&&(d=ko.templateString(d,s._meta)),c.text(d).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(q5.font,s.title.font).call(zO.convertToTspans,r);var h=Ghe(o,n._size);c.attr("transform",RO(h.x,h.y)+Rhe(Math.min(1,h.scale))+RO(h.tx,h.ty))})})})};function C5(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function Whe(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function Xhe(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=Whe(m.TR,m.BR),S=m.TL,D=m.TR}}});var OO=O((__e,BO)=>{"use strict";var HO=kr(),Zhe=tf(),Jhe=Ri().resizeText;BO.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");Jhe(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=HO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){HO.select(this).call(Zhe,o,i,r)})})}});var VO=O((w_e,YO)=>{"use strict";YO.exports={moduleType:"trace",name:"funnelarea",basePlotModule:TO(),categories:["pie-like","funnelarea","showLegend"],attributes:A5(),layoutAttributes:M5(),supplyDefaults:SO(),supplyLayoutDefaults:DO(),calc:k5().calc,crossTraceCalc:k5().crossTraceCalc,plot:IO(),style:OO(),styleOne:tf(),meta:{}}});var UO=O((T_e,GO)=>{"use strict";GO.exports=VO()});var XO=O($f=>{"use strict";var WO=zt();$f.name="indicator";$f.plot=function(e,r,t,a){WO.plotBasePlot($f.name,e,r,t,a)};$f.clean=function(e,r,t,a){WO.cleanBasePlot($f.name,e,r,t,a)}});var L5=O((M_e,jO)=>{"use strict";var qo=mt().extendFlat,JO=mt().extendDeep,$he=vi().overrideAll,$O=aa(),KO=In(),Khe=xo().attributes,Et=_n(),Qhe=lt().templatedArray,bm=Uf(),ZO=yi().descriptionOnlyNumbers,S5=$O({editType:"plot",colorEditType:"plot"}),T0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:KO.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"},QO={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},jhe=Qhe("step",JO({},T0,{range:QO}));jO.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:Khe({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:qo({},S5,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:ZO("value")},font:qo({},S5,{}),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:ZO("value")},increasing:{symbol:{valType:"string",dflt:bm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:bm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:bm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:bm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:qo({},S5,{}),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({},T0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:KO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:$he({range:QO,visible:qo({},Et.visible,{dflt:!0}),tickmode:Et.minor.tickmode,nticks:Et.nticks,tick0:Et.tick0,dtick:Et.dtick,tickvals:Et.tickvals,ticktext:Et.ticktext,ticks:qo({},Et.ticks,{dflt:"outside"}),ticklen:Et.ticklen,tickwidth:Et.tickwidth,tickcolor:Et.tickcolor,ticklabelstep:Et.ticklabelstep,showticklabels:Et.showticklabels,labelalias:Et.labelalias,tickfont:$O({}),tickangle:Et.tickangle,tickformat:Et.tickformat,tickformatstops:Et.tickformatstops,tickprefix:Et.tickprefix,showtickprefix:Et.showtickprefix,ticksuffix:Et.ticksuffix,showticksuffix:Et.showticksuffix,separatethousands:Et.separatethousands,exponentformat:Et.exponentformat,minexponent:Et.minexponent,showexponent:Et.showexponent,editType:"plot"},"plot"),steps:jhe,threshold:{line:{color:qo({},T0.line.color,{}),width:qo({},T0.line.width,{dflt:1}),editType:"plot"},thickness:qo({},T0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var D5=O((k_e,eY)=>{"use strict";eY.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var aY=O((q_e,tY)=>{"use strict";var il=Re(),wm=L5(),e1e=xo().defaults,rY=lt(),r1e=Yn(),_m=D5(),t1e=ch(),a1e=vh(),n1e=hh(),i1e=ph();function l1e(e,r,t,a){function n(k,M){return il.coerce(e,r,wm,k,M)}e1e(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=il.extendFlat({},a.font);s.size=void 0,il.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=_m.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=il.extendFlat({},a.font);f.size=void 0,il.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||_m.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=il.extendFlat({},a.font);c.size=.25*(o||u||_m.defaultNumberFontSize),il.coerceFont(n,"title.font",c),n("title.text");var d,h,p,m;function y(k,M){return il.coerce(d,h,wm.gauge,k,M)}function b(k,M){return il.coerce(p,m,wm.gauge.axis,k,M)}if(r._hasGauge){d=e.gauge,d||(d={}),h=rY.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=_m.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",x),r1e(d,h,{name:"steps",handleItemDefaults:o1e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},d&&(p=d.axis||{}),m=rY.newContainer(h,"axis"),b("visible"),r._range=b("range",r._range);var A={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};t1e(p,m,b,"linear"),i1e(p,m,b,"linear",A),n1e(p,m,b,"linear",A),a1e(p,m,b,A)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function o1e(e,r){function t(a,n){return il.coerce(e,r,wm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}tY.exports={supplyDefaults:l1e}});var iY=O((C_e,nY)=>{"use strict";function s1e(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}nY.exports={calc:s1e}});function Pl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function Co(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var Tm=it(()=>{});function ol(){}function oY(){return this.rgb().formatHex()}function m1e(){return this.rgb().formatHex8()}function y1e(){return hY(this).formatHsl()}function sY(){return this.rgb().formatRgb()}function Lo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=u1e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?uY(r):t===3?new va(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Am(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Am(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=f1e.exec(e))?new va(r[1],r[2],r[3],1):(r=c1e.exec(e))?new va(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=v1e.exec(e))?Am(r[1],r[2],r[3],r[4]):(r=d1e.exec(e))?Am(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=h1e.exec(e))?vY(r[1],r[2]/100,r[3]/100,1):(r=p1e.exec(e))?vY(r[1],r[2]/100,r[3]/100,r[4]):lY.hasOwnProperty(e)?uY(lY[e]):e==="transparent"?new va(NaN,NaN,NaN,0):null}function uY(e){return new va(e>>16&255,e>>8&255,e&255,1)}function Am(e,r,t,a){return a<=0&&(e=r=t=NaN),new va(e,r,t,a)}function M0(e){return e instanceof ol||(e=Lo(e)),e?(e=e.rgb(),new va(e.r,e.g,e.b,e.opacity)):new va}function Qf(e,r,t,a){return arguments.length===1?M0(e):new va(e,r,t,a==null?1:a)}function va(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function fY(){return`#${Zs(this.r)}${Zs(this.g)}${Zs(this.b)}`}function g1e(){return`#${Zs(this.r)}${Zs(this.g)}${Zs(this.b)}${Zs((isNaN(this.opacity)?1:this.opacity)*255)}`}function cY(){let e=km(this.opacity);return`${e===1?"rgb(":"rgba("}${Js(this.r)}, ${Js(this.g)}, ${Js(this.b)}${e===1?")":`, ${e})`}`}function km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Js(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zs(e){return e=Js(e),(e<16?"0":"")+e.toString(16)}function vY(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new zi(e,r,t,a)}function hY(e){if(e instanceof zi)return new zi(e.h,e.s,e.l,e.opacity);if(e instanceof ol||(e=Lo(e)),!e)return new zi;if(e instanceof zi)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 zi(l,o,s,e.opacity)}function k0(e,r,t,a){return arguments.length===1?hY(e):new zi(e,r,t,a==null?1:a)}function zi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function dY(e){return e=(e||0)%360,e<0?e+360:e}function Mm(e){return Math.max(0,Math.min(1,e||0))}function E5(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 So,$s,Kf,A0,ll,u1e,f1e,c1e,v1e,d1e,h1e,p1e,lY,qm=it(()=>{Tm();So=.7,$s=1/So,Kf="\\s*([+-]?\\d+)\\s*",A0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ll="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u1e=/^#([0-9a-f]{3,8})$/,f1e=new RegExp(`^rgb\\(${Kf},${Kf},${Kf}\\)$`),c1e=new RegExp(`^rgb\\(${ll},${ll},${ll}\\)$`),v1e=new RegExp(`^rgba\\(${Kf},${Kf},${Kf},${A0}\\)$`),d1e=new RegExp(`^rgba\\(${ll},${ll},${ll},${A0}\\)$`),h1e=new RegExp(`^hsl\\(${A0},${ll},${ll}\\)$`),p1e=new RegExp(`^hsla\\(${A0},${ll},${ll},${A0}\\)$`),lY={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};Pl(ol,Lo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oY,formatHex:oY,formatHex8:m1e,formatHsl:y1e,formatRgb:sY,toString:sY});Pl(va,Qf,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new va(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new va(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new va(Js(this.r),Js(this.g),Js(this.b),km(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:fY,formatHex:fY,formatHex8:g1e,formatRgb:cY,toString:cY}));Pl(zi,k0,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new zi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new zi(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 va(E5(e>=240?e-240:e+120,n,a),E5(e,n,a),E5(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new zi(dY(this.h),Mm(this.s),Mm(this.l),km(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=km(this.opacity);return`${e===1?"hsl(":"hsla("}${dY(this.h)}, ${Mm(this.s)*100}%, ${Mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var Cm,Sm,P5=it(()=>{Cm=Math.PI/180,Sm=180/Math.PI});function bY(e){if(e instanceof sl)return new sl(e.l,e.a,e.b,e.opacity);if(e instanceof Rl)return _Y(e);e instanceof va||(e=M0(e));var r=F5(e.r),t=F5(e.g),a=F5(e.b),n=R5((.2225045*r+.7168786*t+.0606169*a)/mY),i,l;return r===t&&t===a?i=l=n:(i=R5((.4360747*r+.3850649*t+.1430804*a)/pY),l=R5((.0139322*r+.0971045*t+.7141733*a)/yY)),new sl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function ec(e,r,t,a){return arguments.length===1?bY(e):new sl(e,r,t,a==null?1:a)}function sl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function R5(e){return e>x1e?Math.pow(e,1/3):e/xY+gY}function z5(e){return e>jf?e*e*e:xY*(e-gY)}function N5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function F5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function b1e(e){if(e instanceof Rl)return new Rl(e.h,e.c,e.l,e.opacity);if(e instanceof sl||(e=bY(e)),e.a===0&&e.b===0)return new Rl(NaN,0{Tm();qm();P5();Lm=18,pY=.96422,mY=1,yY=.82521,gY=4/29,jf=6/29,xY=3*jf*jf,x1e=jf*jf*jf;Pl(sl,ec,Co(ol,{brighter(e){return new sl(this.l+Lm*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new sl(this.l-Lm*(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=pY*z5(r),e=mY*z5(e),t=yY*z5(t),new va(N5(3.1338561*r-1.6168667*e-.4906146*t),N5(-.9787684*r+1.9161415*e+.033454*t),N5(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));Pl(Rl,q0,Co(ol,{brighter(e){return new Rl(this.h,this.c,this.l+Lm*(e==null?1:e),this.opacity)},darker(e){return new Rl(this.h,this.c,this.l-Lm*(e==null?1:e),this.opacity)},rgb(){return _Y(this).rgb()}}))});function _1e(e){if(e instanceof Ks)return new Ks(e.h,e.s,e.l,e.opacity);e instanceof va||(e=M0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(MY*a+TY*r-AY*t)/(MY+TY-AY),i=a-n,l=(C0*(t-n)-H5*i)/Dm,o=Math.sqrt(l*l+i*i)/(C0*n*(1-n)),s=o?Math.atan2(l,i)*Sm-120:NaN;return new Ks(s<0?s+360:s,o,n,e.opacity)}function rc(e,r,t,a){return arguments.length===1?_1e(e):new Ks(e,r,t,a==null?1:a)}function Ks(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var kY,I5,H5,Dm,C0,TY,AY,MY,qY=it(()=>{Tm();qm();P5();kY=-.14861,I5=1.78277,H5=-.29227,Dm=-.90649,C0=1.97294,TY=C0*Dm,AY=C0*I5,MY=I5*H5-Dm*kY;Pl(Ks,rc,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new Ks(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new Ks(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Cm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new va(255*(r+t*(kY*a+I5*n)),255*(r+t*(H5*a+Dm*n)),255*(r+t*(C0*a)),this.opacity)}}))});var Qs=it(()=>{qm();wY();qY()});function B5(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 Em(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 Rm(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 B5((t-a/r)*r,n,i,l,o)}}var O5=it(()=>{Pm()});var tc,Y5=it(()=>{tc=e=>()=>e});function CY(e,r){return function(t){return e+t*r}}function w1e(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 Do(e,r){var t=r-e;return t?CY(e,t>180||t<-180?t-360*Math.round(t/360):t):tc(isNaN(e)?r:e)}function SY(e){return(e=+e)==1?It:function(r,t){return t-r?w1e(r,t,e):tc(isNaN(r)?t:r)}}function It(e,r){var t=r-e;return t?CY(e,t):tc(isNaN(e)?r:e)}var js=it(()=>{Y5()});function LY(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{Qs();Pm();O5();js();S0=function e(r){var t=SY(r);function a(n,i){var l=t((n=Qf(n)).r,(i=Qf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=It(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);DY=LY(Em),EY=LY(Rm)});function ac(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 PY(e,r){return(zm(r)?ac:G5)(e,r)}function G5(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{L0();Nm()});function Fm(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 mn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var D0=it(()=>{});function Im(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]=Eo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var X5=it(()=>{L0()});function T1e(e){return function(){return e}}function A1e(e){return function(r){return e(r)+""}}function Hm(e,r){var t=J5.lastIndex=Z5.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=J5.exec(e))&&(n=Z5.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:mn(a,n)})),t=Z5.lastIndex;return t{D0();J5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Z5=new RegExp(J5.source,"g")});function Eo(e,r){var t=typeof r,a;return r==null||t==="boolean"?tc(r):(t==="number"?mn:t==="string"?(a=Lo(r))?(r=a,S0):Hm:r instanceof Lo?S0:r instanceof Date?Fm:zm(r)?ac:Array.isArray(r)?G5:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Im:mn)(e,r)}var L0=it(()=>{Qs();V5();U5();W5();D0();X5();$5();Y5();Nm()});function RY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var zY=it(()=>{});function NY(e,r){var t=Do(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var FY=it(()=>{js()});function IY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var HY=it(()=>{});function K5(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{BY=180/Math.PI,Bm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function YY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Bm:K5(r.a,r.b,r.c,r.d,r.e,r.f)}function VY(e){return e==null?Bm:(Om||(Om=document.createElementNS("http://www.w3.org/2000/svg","g")),Om.setAttribute("transform",e),(e=Om.transform.baseVal.consolidate())?(e=e.matrix,K5(e.a,e.b,e.c,e.d,e.e,e.f)):Bm)}var Om,GY=it(()=>{OY()});function UY(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:mn(u,c)},{i:m-2,x:mn(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:mn(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:mn(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:mn(u,c)},{i:m-2,x:mn(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{D0();GY();WY=UY(YY,"px, ","px)","deg)"),XY=UY(VY,", ",")",")")});function JY(e){return((e=Math.exp(e))+1/e)/2}function k1e(e){return((e=Math.exp(e))-1/e)/2}function q1e(e){return((e=Math.exp(2*e))-1)/(e+1)}var M1e,$Y,KY=it(()=>{M1e=1e-12;$Y=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{Qs();js();jY=QY(Do),eV=QY(It)});function Q5(e,r){var t=It((e=ec(e)).l,(r=ec(r)).l),a=It(e.a,r.a),n=It(e.b,r.b),i=It(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 tV=it(()=>{Qs();js()});function aV(e){return function(r,t){var a=e((r=q0(r)).h,(t=q0(t)).h),n=It(r.c,t.c),i=It(r.l,t.l),l=It(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 nV,iV,lV=it(()=>{Qs();js();nV=aV(Do),iV=aV(It)});function oV(e){return function r(t){t=+t;function a(n,i){var l=e((n=rc(n)).h,(i=rc(i)).h),o=It(n.s,i.s),s=It(n.l,i.l),u=It(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 sV,uV,fV=it(()=>{Qs();js();sV=oV(Do),uV=oV(It)});function j5(e,r){r===void 0&&(r=e,e=Eo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{L0()});function vV(e,r){for(var t=new Array(r),a=0;a{});var e_={};yX(e_,{interpolate:()=>Eo,interpolateArray:()=>PY,interpolateBasis:()=>Em,interpolateBasisClosed:()=>Rm,interpolateCubehelix:()=>sV,interpolateCubehelixLong:()=>uV,interpolateDate:()=>Fm,interpolateDiscrete:()=>RY,interpolateHcl:()=>nV,interpolateHclLong:()=>iV,interpolateHsl:()=>jY,interpolateHslLong:()=>eV,interpolateHue:()=>NY,interpolateLab:()=>Q5,interpolateNumber:()=>mn,interpolateNumberArray:()=>ac,interpolateObject:()=>Im,interpolateRgb:()=>S0,interpolateRgbBasis:()=>DY,interpolateRgbBasisClosed:()=>EY,interpolateRound:()=>IY,interpolateString:()=>Hm,interpolateTransformCss:()=>WY,interpolateTransformSvg:()=>XY,interpolateZoom:()=>$Y,piecewise:()=>j5,quantize:()=>vV});var r_=it(()=>{L0();U5();Pm();O5();W5();zY();FY();D0();Nm();X5();HY();$5();ZY();KY();V5();rV();tV();lV();fV();cV();dV()});var xV=O((y6e,gV)=>{"use strict";var nu=kr(),C1e=(r_(),t6(e_)).interpolate,hV=(r_(),t6(e_)).interpolateNumber,Po=Re(),S1e=Po.strScale,P0=Po.strTranslate,L1e=Po.rad2deg,D1e=Aa().MID_SHIFT,au=Yr(),eu=D5(),Vm=la(),Da=Zr(),E1e=gp(),P1e=bp(),R1e=_n(),nc=br(),t_={left:"start",center:"middle",right:"end"},ru={left:0,center:.5,right:1},pV=/[yzafpnµmkMGTPEZY]/;function R0(e){return e&&e.duration>0}gV.exports=function(r,t,a,n){var i=r._fullLayout,l;R0(a)&&n&&(l=n()),Po.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=nu.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=eu.innerRadius*_,x,A,k,M=u.align||"center";if(A=b,!c)x=m.l+ru[M]*m.w,k=function(G){return mV(G,m.w,m.h)};else if(d&&(x=y,A=b+_/2,k=function(G){return H1e(G,.9*w)}),h){var S=eu.bulletPadding,D=1-eu.bulletNumberDomainSize+S;x=m.l+(D+(1-D)*ru[M])*m.w,k=function(G){return mV(G,(eu.bulletNumberDomainSize-S)*m.w,m.h)}}F1e(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&&N1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:H,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var F=f.selectAll("g.bullet").data(h?o:[]);F.exit().remove();var Y=f.selectAll("g.bulletaxis").data(h?o:[]);Y.exit().remove(),h&&z1e(r,f,o,{gauge:F,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 h?t_.right:t_[u.title.align]}).text(u.title.text).call(au.font,u.title.font).call(Vm.convertToTspans,r),U.attr("transform",function(){var G=m.l+m.w*ru[u.title.align],V,B=eu.titlePadding,J=au.bBox(U.node());if(c){if(d)if(u.gauge.axis.visible){var X=au.bBox(H.node());V=X.top-B-J.bottom}else V=m.t+m.h/2-_/2-J.bottom-B;h&&(V=A-(J.top+J.bottom)/2,G=m.l-eu.bulletPadding*m.w)}else V=u._numbersTop-B-J.bottom;return P0(G,V)})})};function z1e(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",P0(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-eu.bulletNumberDomainSize:1);h=E0(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[x,A],h.setScale(),p=Da.calcTicks(h),m=Da.makeTransTickFn(h),y=Da.getTickSigns(h)[2],b=u.t+u.h,h.visible&&(Da.drawTicks(e,h,{vals:h.ticks==="inside"?Da.clipEnds(h,p):p,layer:l,path:Da.makeTickPath(h,b,y),transFn:m}),Da.drawLabels(e,h,{vals:p,layer:l,transFn:m,labelFns:Da.makeLabelFns(h,b)}));function k(H){H.attr("width",function(F){return Math.max(0,h.c2p(F.range[1])-h.c2p(F.range[0]))}).attr("x",function(F){return h.c2p(F.range[0])}).attr("y",function(F){return .5*(1-F.thickness)*_}).attr("height",function(F){return F.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(tu),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(tu),R0(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(nc.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(tu),N.exit().remove()}function N1e(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],de=(ee-le)/(fe-le)*Math.PI-m;return de<-m?-m:de>m?m:de}function b(ee){return nu.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",P0(f[0],f[1])),d.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),d.selectAll("g.xangularaxistick,path,text").remove(),w=E0(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=Da.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*D1e)},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 de=M(ee);return-.5*(1+Math.sin(de))*fe};var R=function(ee){return P0(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("+-L1e(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:d,path:"M"+k*H+",0h"+k*w.ticklen,transFn:N}),Da.drawLabels(e,w,{vals:x,layer:d,transFn:A,labelFns:S})}var F=[s].concat(n.gauge.steps),Y=c.selectAll("g.bg-arc").data(F);Y.enter().append("g").classed("bg-arc",!0).append("path"),Y.select("path").call(_).call(tu),Y.exit().remove();var U=b(n.gauge.bar.thickness),G=c.selectAll("g.value-arc").data([n.gauge.bar]);G.enter().append("g").classed("value-arc",!0).append("path");var V=G.select("path");R0(h)?(V.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",I1e(U,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):V.attr("d",typeof t[0].y=="number"?U.endAngle(y(t[0].y)):"M0,0Z"),V.call(tu),G.exit().remove(),F=[];var B=n.gauge.threshold.value;(B||B===0)&&F.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(F);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(tu),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(tu),X.exit().remove()}function F1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=t_[o],u=a.transitionOpts,f=a.onComplete,c=Po.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,F){if(R.match("s")&&H>=0!=F>=0&&!N(H).slice(-1).match(pV)&&!N(F).slice(-1).match(pV)){var Y=R.slice().replace("s","f").replace(/\d+/,function(G){return parseInt(G)-1}),U=E0(e,{tickformat:Y});return function(G){return Math.abs(G)<1?Da.tickText(U,G).text:N(G)}}else return N}function _(){var R=E0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(G){return Da.tickText(R,G).text},H=n.number.suffix,F=n.number.prefix,Y=c.select("text.number");function U(){var G=typeof t[0].y=="number"?F+N(t[0].y)+H:"-";Y.text(G).call(au.font,n.number.font).call(Vm.convertToTspans,e)}return R0(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 G=nu.select(this),V=hV(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){G.text(F+B(V(J))+H)}}):U(),d=yV(F+N(t[0].y)+H,n.number.font,s,e),Y}function w(){var R=E0(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,F=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)+F+X(J)+H},G=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=Y(t[0]));var V=c.select("text.delta");V.call(au.font,n.delta.font).call(nc.fill,G({delta:n._deltaLastValue}));function B(){V.text(U(Y(t[0]),N)).call(nc.fill,G(t[0])).call(Vm.convertToTspans,e)}return R0(u)?V.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=nu.select(this),X=Y(t[0]),ee=n._deltaLastValue,le=b(n.delta.valueformat,N,ee,X),fe=hV(ee,X);return n._deltaLastValue=X,function(de){J.text(U(fe(de),le)),J.call(nc.fill,G({delta:fe(de)}))}}).each("end",function(){B(),f&&f()}).each("interrupt",function(){B(),f&&f()}):B(),h=yV(U(Y(t[0]),N),n.delta.font,s,e),V}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=Ym(n,"deltaPos",0,-1*(d.width*ru[n.align]+h.width*(1-ru[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=Ym(n,"deltaPos",0,d.width*(1-ru[n.align])+h.width*ru[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=Ym(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 F=p[o];o==="center"&&(F=(p.left+p.right)/2);var Y=i-N*F;return Y=Ym(n,"numbersTranslate",0,Y,x,Math.max),P0(Y,H)+S1e(N)})}function tu(e){e.each(function(r){nc.stroke(nu.select(this),r.line.color)}).each(function(r){nc.fill(nu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function I1e(e,r,t){return function(){var a=C1e(r,t);return function(n){return e.endAngle(a(n))()}}}function E0(e,r,t){var a=e._fullLayout,n=Po.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 Po.coerce(n,i,R1e,s,u)}return E1e(n,i,o,l,a),P1e(n,i,o,l),i}function mV(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function H1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function yV(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=nu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Vm.convertToTspans,a).call(au.font,r),au.bBox(i.node())}function Ym(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Po.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var _V=O((g6e,bV)=>{"use strict";bV.exports={moduleType:"trace",name:"indicator",basePlotModule:XO(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:L5(),supplyDefaults:aY().supplyDefaults,calc:iY().calc,plot:xV(),meta:{}}});var TV=O((x6e,wV)=>{"use strict";wV.exports=_V()});var Um=O((b6e,CV)=>{"use strict";var Gm=Re().extendFlat,z0=Ti(),AV=yi().axisHoverFormat,{hovertemplateAttrs:B1e,templatefallbackAttrs:O1e}=gn(),kV=di().dash,Y1e=Lc(),qV=Uf(),V1e=qV.INCREASING.COLOR,G1e=qV.DECREASING.COLOR,a_=z0.line;function MV(e){return{line:{color:Gm({},a_.color,{dflt:e}),width:a_.width,dash:kV,editType:"style"},editType:"style"}}CV.exports={xperiod:z0.xperiod,xperiod0:z0.xperiod0,xperiodalignment:z0.xperiodalignment,xhoverformat:AV("x"),yhoverformat:AV("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:Gm({},a_.width,{}),dash:Gm({},kV,{}),editType:"style"},increasing:MV(V1e),decreasing:MV(G1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:B1e({},{keys:["open","high","low","close"]}),hovertemplatefallback:O1e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Gm({},Y1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:z0.zorder}});var n_=O((_6e,SV)=>{"use strict";var U1e=gr(),W1e=Re();SV.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=U1e.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,W1e.minRowLength(i))),t._length=c,c}}});var EV=O((w6e,DV)=>{"use strict";var X1e=Re(),Z1e=n_(),J1e=Ds(),$1e=Um();DV.exports=function(r,t,a,n){function i(o,s){return X1e.coerce(r,t,$1e,o,s)}var l=Z1e(r,t,i,n);if(!l){t.visible=!1;return}J1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),LV(r,t,i,"increasing"),LV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function LV(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var i_=O((T6e,RV)=>{"use strict";var ic=Re(),Wm=ic._,Xm=Zr(),K1e=Es(),N0=wt().BADNUM;function Q1e(e,r){var t=Xm.getFromId(e,r.xaxis),a=Xm.getFromId(e,r.yaxis),n=epe(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=PV(e,r,l,o,a,j1e);return r._extremes[t._id]=Xm.findExtremes(t,o,{vpad:i/2}),s.length?(ic.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function j1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function PV(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=ic.isArrayOrTypedArray(r.text),c=ic.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]=Xm.findExtremes(n,ic.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Wm(e,"open:")+" ",high:Wm(e,"high:")+" ",low:Wm(e,"low:")+" ",close:Wm(e,"close:")+" "}}),m}function epe(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 rpe=kr(),zV=Re();NV.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;zV.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=rpe.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(zV.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 HV=O((M6e,IV)=>{"use strict";var l_=kr(),tpe=Yr(),ape=br();IV.exports=function(r,t,a){var n=a||l_.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;l_.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;l_.select(this).style("fill","none").call(ape.stroke,s.color).call(tpe.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var s_=O((k6e,GV)=>{"use strict";var o_=Zr(),npe=Re(),Zm=_i(),ipe=br(),lpe=Re().fillText,BV=Uf(),ope={increasing:BV.INCREASING.SYMBOL,decreasing:BV.DECREASING.SYMBOL};function spe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?YV(e,r,t,a):VV(e,r,t,a)}function OV(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 Zm.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||Zm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var A=Zm.getDistanceFunction(a,_,w,x);if(Zm.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 ipe.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 YV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=OV(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]+o_.hoverLabelText(i,y,l.yhoverformat)):(_=npe.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=y,_.yLabel=o.labels[m]+o_.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),h[y]=_)}return s}function VV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=OV(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]+o_.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")+" "+ope[d]]:[];return _&&lpe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}GV.exports={hoverPoints:spe,hoverSplit:YV,hoverOnPoints:VV}});var u_=O((q6e,UV)=>{"use strict";UV.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";WV.exports={moduleType:"trace",name:"ohlc",basePlotModule:Ml(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Um(),supplyDefaults:EV(),calc:i_().calc,plot:FV(),style:HV(),hoverPoints:s_().hoverPoints,selectPoints:u_()}});var JV=O((S6e,ZV)=>{"use strict";ZV.exports=XV()});var eG=O((L6e,jV)=>{"use strict";var upe=Q3(),ii=Ti(),$V=Ll(),fpe=In(),KV=yi().axisHoverFormat,{hovertemplateAttrs:cpe,templatefallbackAttrs:vpe}=gn(),zl=mt().extendFlat,lc=ii.marker,QV=lc.line;jV.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:ii.xperiod,yperiod:ii.yperiod,xperiod0:ii.xperiod0,yperiod0:ii.yperiod0,xperiodalignment:ii.xperiodalignment,yperiodalignment:ii.yperiodalignment,xhoverformat:KV("x"),yhoverformat:KV("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:zl({},lc.symbol,{arrayOk:!1,editType:"plot"}),opacity:zl({},lc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:zl({},lc.angle,{arrayOk:!1,editType:"calc"}),size:zl({},lc.size,{arrayOk:!1,editType:"calc"}),color:zl({},lc.color,{arrayOk:!1,editType:"style"}),line:{color:zl({},QV.color,{arrayOk:!1,dflt:fpe.defaultLine,editType:"style"}),width:zl({},QV.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:upe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:$V.offsetgroup,alignmentgroup:$V.alignmentgroup,selected:{marker:ii.selected.marker,editType:"style"},unselected:{marker:ii.unselected.marker,editType:"style"},text:zl({},ii.text,{}),hovertext:zl({},ii.hovertext,{}),hovertemplate:cpe({}),hovertemplatefallback:vpe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ii.zorder}});var c_=O((D6e,aG)=>{"use strict";var f_=Re().extendFlat,rG=yi().axisHoverFormat,en=Um(),oc=eG();function tG(e){return{line:{color:f_({},oc.line.color,{dflt:e}),width:oc.line.width,editType:"style"},fillcolor:oc.fillcolor,editType:"style"}}aG.exports={xperiod:en.xperiod,xperiod0:en.xperiod0,xperiodalignment:en.xperiodalignment,xhoverformat:rG("x"),yhoverformat:rG("y"),x:en.x,open:en.open,high:en.high,low:en.low,close:en.close,line:{width:f_({},oc.line.width,{}),editType:"style"},increasing:tG(en.increasing.line.color.dflt),decreasing:tG(en.decreasing.line.color.dflt),text:en.text,hovertext:en.hovertext,hovertemplate:en.hovertemplate,hovertemplatefallback:en.hovertemplatefallback,whiskerwidth:f_({},oc.whiskerwidth,{dflt:0}),hoverlabel:en.hoverlabel,zorder:oc.zorder}});var v_=O((E6e,nG)=>{"use strict";nG.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 oG=O((P6e,lG)=>{"use strict";var dpe=gr(),hpe=Re(),ppe=v_();function iG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var sG=Zr(),ype=Re(),gpe=qs().getAxisGroup,uG=["v","h"];function xpe(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"?(V=S*(k?1:.5),X=J,B=X=E):M==="negative"?(V=X=E,B=S*(k?1:.5),ee=J):(V=B=S,X=ee=J),ce){var be=x.pointpos,ge=x.jitter,_e=x.marker.size/2,W=0;be+ge>=0&&(W=J*(be+ge),W>V?(qe=!0,de=_e,le=W):W>X&&(de=_e,le=V)),W<=V&&(le=V);var j=0;be-ge<=0&&(j=-J*(be-ge),j>B?(qe=!0,Q=_e,fe=j):j>ee&&(Q=_e,fe=B)),j<=B&&(fe=B)}else le=V,fe=B;var Z=new Array(f.length);for(u=0;u{"use strict";var bpe=Re(),_pe=br(),wpe=n_(),Tpe=Ds(),Ape=c_();hG.exports=function(r,t,a,n){function i(o,s){return bpe.coerce(r,t,Ape,o,s)}var l=wpe(r,t,i,n);if(!l){t.visible=!1;return}Tpe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),dG(r,t,i,"increasing"),dG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function dG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",_pe.addOpacity(n,.5))}});var xG=O((N6e,gG)=>{"use strict";var mG=Re(),yG=Zr(),Mpe=Es(),kpe=i_().calcCommon;gG.exports=function(e,r){var t=e._fullLayout,a=yG.getFromId(e,r.xaxis),n=yG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Mpe(r,a,"x",i).vals,o=kpe(e,r,i,l,n,qpe);return o.length?(mG.extendFlat(o[0].t,{num:t._numBoxes,dPos:mG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function qpe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var MG=O((F6e,AG)=>{"use strict";var sc=kr(),iu=Re(),Cpe=Yr(),bG=5,Spe=.01;function Lpe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;iu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=sc.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),_G(s,{pos:d,val:h},c,f,n),wG(s,{x:i,y:l},c,f),TG(s,{pos:d,val:h},c,f)})}function _G(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?iu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return sc.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",F=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=iu.constrain(H?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(F,Y)+1,Math.max(F,Y)-1),G=w.lf===void 0||t.boxpoints===!1||H,V=l.c2p(G?w.min:w.lf,!0),B=l.c2p(G?w.max:w.uf,!0),J=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?sc.select(this).attr("d","M"+U+","+R+"V"+N+"M"+F+","+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"+(h?"M"+F+","+M+"H"+V+"M"+Y+","+M+"H"+B+(d===0?"":"M"+V+","+D+"V"+E+"M"+B+","+D+"V"+E):"")):sc.select(this).attr("d","M"+R+","+U+"H"+N+"M"+A+","+F+"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"+(h?"M"+M+","+F+"V"+V+"M"+M+","+Y+"V"+B+(d===0?"":"M"+D+","+V+"H"+E+"M"+D+","+B+"H"+E):""))})}function wG(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;iu.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*Spe,_=[],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(Cpe.translatePoints,n,i)}function TG(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?iu.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"?sc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+m+"L"+x+","+b+"Z":"")):sc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+_+"L"+b+","+x+"Z":""))})}AG.exports={plot:Lpe,plotBoxAndWhiskers:_G,plotPoints:wG,plotBoxMean:TG}});var qG=O((I6e,kG)=>{"use strict";var d_=kr(),h_=br(),p_=Yr();function Dpe(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,d,h,p){c.style("stroke-width",d+"px").call(h_.stroke,h).call(h_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var d=d_.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(h_.stroke,l.line.color);var f=i.selectAll("path.point");p_.pointStyle(f,l,e)}})}function Epe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?p_.selectedPointStyle(n,a):p_.pointStyle(n,a,e)}kG.exports={style:Dpe,styleOnSelect:Epe}});var SG=O((H6e,CG)=>{"use strict";CG.exports={moduleType:"trace",name:"candlestick",basePlotModule:Ml(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:c_(),layoutAttributes:v_(),supplyLayoutDefaults:oG().supplyLayoutDefaults,crossTraceCalc:vG().crossTraceCalc,supplyDefaults:pG(),calc:xG(),plot:MG().plot,layerName:"boxlayer",style:qG().style,hoverPoints:s_().hoverPoints,selectPoints:u_()}});var DG=O((B6e,LG)=>{"use strict";LG.exports=SG()});var Na=O((O6e,PG)=>{"use strict";var EG=Object.getOwnPropertySymbols,Ppe=Object.prototype.hasOwnProperty,Rpe=Object.prototype.propertyIsEnumerable;function zpe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Npe(){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}}PG.exports=Npe()?Object.assign:function(e,r){for(var t,a=zpe(e),n,i=1;i{var $m=Na();function RG(){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={}}$m(RG.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 m_(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 Jm(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}$m(m_.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?"-":"")+Jm(Math.abs(this.year()),4)+"-"+Jm(this.month(),2)+"-"+Jm(this.day(),2)}});function y_(){this.shortYearCutoff="+10"}$m(y_.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 m_(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?"-":"")+Jm(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=zG.exports=new RG;Rr.cdate=m_;Rr.baseCalendar=y_;Rr.calendars.gregorian=g_});var NG=O(()=>{var x_=Na(),pa=Fa();x_(pa.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"});pa.local=pa.regionalOptions[""];x_(pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(pa.baseCalendar.prototype,{UNIX_EPOCH:pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:pa.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 pa.local.invalidFormat||pa.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 F=b(N,H),Y=[2,3,F?4:2,F?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],U=new RegExp("^-?\\d{1,"+Y+"}"),G=r.substring(S).match(U);if(!G)throw(pa.local.missingNumberAt||pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[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,F,Y){for(var U=b(N,Y)?F:H,G=0;G-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 FG=O(()=>{var Ro=Fa(),Fpe=Na(),b_=Ro.instance();function Km(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Km.prototype=new Ro.baseCalendar;Fpe(Km.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(Hpe);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(Bpe);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(Ope);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 Ro.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 Ro.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,Ro.local.invalidyear),n=No[a-No[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=b_.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=zo[e-zo[0]],a=t>>13,n=a?12:11;if(r>n)throw Ro.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,Ro.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=Vpe(e,i,t,n);return b_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=b_.fromJD(e),t=Ype(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(Ipe),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(Km.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 Ipe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Hpe=/^\d?\d[iI]?/m,Bpe=/^闰?十?[一二三四五六七八九]?月/m,Ope=/^闰?十?[一二三四五六七八九]?/m;Ro.calendars.chinese=Km;var zo=[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],No=[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 Ype(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=No[n.year-No[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=No[i.year-No[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=zo[i.year-zo[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=zo[l.year-zo[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 IG=O(()=>{var lu=Fa(),Gpe=Na();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new lu.baseCalendar;Gpe(__.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,lu.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,lu.local.invalidYear||lu.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,lu.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,lu.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)}});lu.calendars.coptic=__});var HG=O(()=>{var Nl=Fa(),Upe=Na();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new Nl.baseCalendar;Upe(w_.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,Nl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nl.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,Nl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Nl.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,Nl.local.invalidDate);return{century:Wpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Nl.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 Wpe={20:"Fruitbat",21:"Anchovy"};Nl.calendars.discworld=w_});var BG=O(()=>{var ou=Fa(),Xpe=Na();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new ou.baseCalendar;Xpe(T_.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,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.ethiopian=T_});var OG=O(()=>{var Fo=Fa(),Zpe=Na();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new Fo.baseCalendar;Zpe(A_.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,Fo.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Qm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fo.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,Fo.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,Fo.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Qm(this.daysInYear(e),10)===5?30:r===9&&Qm(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,Fo.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,Fo.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 Qm(e,r){return e-r*Math.floor(e/r)}Fo.calendars.hebrew=A_});var YG=O(()=>{var F0=Fa(),Jpe=Na();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new F0.baseCalendar;Jpe(M_.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,F0.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,F0.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,F0.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)}});F0.calendars.islamic=M_});var VG=O(()=>{var I0=Fa(),$pe=Na();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new I0.baseCalendar;$pe(k_.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,I0.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,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(e,r,t){var a=this._validate(e,r,t,I0.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)}});I0.calendars.julian=k_});var UG=O(()=>{var li=Fa(),Kpe=Na();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new li.baseCalendar;Kpe(C_.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,li.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,li.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,li.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,li.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,li.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,li.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,li.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,li.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,li.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=q_(e+8+17*20,365);return[Math.floor(r/20)+1,q_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[GG(e+20,20),GG(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,li.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 q_(e,r){return e-r*Math.floor(e/r)}function GG(e,r){return q_(e-1,r)+1}li.calendars.mayan=C_});var XG=O(()=>{var su=Fa(),Qpe=Na();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new su.baseCalendar;var WG=su.instance("gregorian");Qpe(S_.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,su.local.invalidYear||su.regionalOptions[""].invalidYear);return WG.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,su.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,su.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)}});su.calendars.nanakshahi=S_});var ZG=O(()=>{var uu=Fa(),jpe=Na();function L_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L_.prototype=new uu.baseCalendar;jpe(L_.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,uu.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,uu.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,uu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uu.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=uu.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 uc=Fa(),eme=Na();function ey(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function jm(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}ey.prototype=new uc.baseCalendar;eme(ey.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,uc.local.invalidYear);return jm(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,uc.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,uc.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,jm(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)}});uc.calendars.persian=ey;uc.calendars.jalali=ey});var $G=O(()=>{var fu=Fa(),rme=Na(),ry=fu.instance();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new fu.baseCalendar;rme(D_.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,fu.local.invalidYear),t=this._t2gYear(r.year());return ry.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,fu.local.invalidYear),n=this._t2gYear(a.year());return ry.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,fu.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,fu.local.invalidDate),n=this._t2gYear(a.year());return ry.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ry.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)}});fu.calendars.taiwan=D_});var KG=O(()=>{var cu=Fa(),tme=Na(),ty=cu.instance();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new cu.baseCalendar;tme(E_.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,cu.local.invalidYear),t=this._t2gYear(r.year());return ty.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 ty.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 ty.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ty.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)}});cu.calendars.thai=E_});var QG=O(()=>{var vu=Fa(),ame=Na();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new vu.baseCalendar;ame(P_.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,vu.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,vu.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Io[n]-Io[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,vu.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Io[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-Io[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=vu.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=vu.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vu.calendars.ummalqura=P_;var Io=[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 eU=O((x7e,jG)=>{"use strict";jG.exports=Fa();NG();FG();IG();HG();BG();OG();YG();VG();UG();XG();ZG();JG();$G();KG();QG()});var oU=O((b7e,lU)=>{"use strict";var tU=eU(),H0=Re(),aU=wt(),nme=aU.EPOCHJD,ime=aU.ONEDAY,N_={valType:"enumerated",values:H0.sortObjectKeys(tU.calendars),editType:"calc",dflt:"gregorian"},nU=function(e,r,t,a){var n={};return n[t]=N_,H0.coerce(e,r,n,t,a)},lme=function(e,r,t,a){for(var n=0;n{"use strict";sU.exports=oU()});var vme=O((w7e,cU)=>{var fU=mF();fU.register([gI(),uH(),UH(),EB(),_O(),UO(),TV(),JV(),DG(),uU()]);cU.exports=fU});return vme();})(); +`+Qw(i.dayMonthYear,e,a,n);return Qw(r,e,a,n)};var jw=3*on;Yt.incrementMonth=function(e,r,t){t=vl(t)&&t;var a=Wl(e,on);if(e=Math.round(e-a),t)try{var n=Math.round(e/on)+zc,i=cl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-zc)*on+a}catch(s){eg.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+jw);return o.setUTCMonth(o.getUTCMonth()+r)+a-jw};Yt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=vl(r)&&cl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";a8.exports=function(r){return r}});var ag=O(hl=>{"use strict";var RJ=zr(),zJ=Qo(),NJ=rg(),FJ=wt().BADNUM,tg=1e-9;hl.findBin=function(e,r,t){if(RJ(r.start))return t?Math.ceil((e-r.start)/r.size-tg)-1:Math.floor((e-r.start)/r.size+tg);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?IJ:HJ:s=t?OJ:BJ,e+=l*tg*(t?-1:1)*(l>=0?1:-1);a90&&zJ.log("Long binary search..."),a-1};function IJ(e,r){return er}function OJ(e,r){return e>=r}hl.sorterAsc=function(e,r){return e-r};hl.sorterDes=function(e,r){return r-e};hl.distinctVals=function(e){var r=e.slice();r.sort(hl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===FJ;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}};hl.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()};hl.findIndexOfMin=function(e,r){r=r||NJ;for(var t=1/0,a,n=0;n{"use strict";n8.exports=function(r){return Object.keys(r).sort()}});var i8=O(Vt=>{"use strict";var Nc=zr(),YJ=yn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Nc(r)||(r=!1),YJ(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 f8=O((Vye,u8)=>{"use strict";var l8=Au(),ig=l8.mod,VJ=l8.modHalf,Fc=Math.PI,Xl=2*Fc;function GJ(e){return e/180*Fc}function UJ(e){return e/Fc*180}function lg(e){return Math.abs(e[1]-e[0])>Xl-1e-14}function o8(e,r){return VJ(r-e,Xl)}function WJ(e,r){return Math.abs(o8(e,r))}function s8(e,r){if(lg(r))return!0;var t,a;r[0]a&&(a+=Xl);var n=ig(e,Xl),i=n+Xl;return n>=t&&n<=a||i>=t&&i<=a}function XJ(e,r,t,a){if(!s8(r,a))return!1;var n,i;return t[0]=n&&e<=i}function og(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=lg([t,a]),s,u,f,c,h;o?(s=0,u=Fc,f=Xl):t{"use strict";es.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};es.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};es.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};es.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};es.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};es.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var d8=O(rs=>{"use strict";var sg=Au().mod;rs.segmentsIntersect=h8;function h8(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}}rs.segmentDistance=function(r,t,a,n,i,l,o,s){if(h8(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,ug,v8;rs.getTextLocation=function(r,t,a,n){if((r!==ug||n!==v8)&&(Vh={},ug=r,v8=n),Vh[a])return Vh[a];var i=r.getPointAtLength(sg(a-n/2,t)),l=r.getPointAtLength(sg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(sg(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};rs.clearLocationCache=function(){ug=null};rs.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}};rs.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(Ic=>{"use strict";var dl={};Ic.throttle=function(r,t,a){var n=dl[r],i=Date.now();if(!n){for(var l in dl)dl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Ic.done=function(e){var r=dl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ic.clear=function(e){if(e)p8(dl[e]),delete dl[e];else for(var r in dl)Ic.clear(r)};function p8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var y8=O((Xye,m8)=>{"use strict";m8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var g8=O((Zye,Uh)=>{"use strict";Uh.exports=fg;Uh.exports.isMobile=fg;Uh.exports.default=fg;var KJ=/(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,QJ=/CrOS/,jJ=/android|ipad|playbook|silk/i;function fg(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=KJ.test(r)&&!QJ.test(r)||!!e.tablet&&jJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var b8=O((Jye,x8)=>{"use strict";var e$=zr(),r$=g8();x8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=t$(),typeof t!="string")return!0;var a=r$({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(e$(u)&&(u=+u),u>=13)return!0}}}return a};function t$(){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 w8=O(($ye,_8)=>{"use strict";var a$=kr();_8.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]=a$.select(this)}),n}});var A8=O((Kye,T8)=>{"use strict";var n$=gr();T8.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=n$.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var k8=O((Qye,M8)=>{"use strict";M8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";q8.exports=function(r){for(var t=o$(r)?l$:i$,a=[],n=0;n{"use strict";S8.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 E8=O((rge,D8)=>{"use strict";var s$=zr(),u$=wt().BADNUM,f$=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;D8.exports=function(r){return typeof r=="string"&&(r=r.replace(f$,"")),s$(r)?Number(r):u$}});var Re=O((tge,U8)=>{"use strict";var Hc=kr(),c$=wu().utcFormat,v$=Py().format,I8=zr(),H8=wt(),B8=H8.FP_SAFE,h$=-B8,P8=H8.BADNUM,de=U8.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 R8={};de.warnBadFormat=function(e){var r=String(e);R8[r]||(R8[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=v$(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=Ah();de.keyedContainer=M6();de.relativeAttr=q6();de.isPlainObject=Bl();de.toLogRange=kh();de.relinkPrivateKeys=D6();var Zl=yn();de.isArrayBuffer=Zl.isArrayBuffer;de.isTypedArray=Zl.isTypedArray;de.isArrayOrTypedArray=Zl.isArrayOrTypedArray;de.isArray1D=Zl.isArray1D;de.ensureArray=Zl.ensureArray;de.concat=Zl.concat;de.maxRowLength=Zl.maxRowLength;de.minRowLength=Zl.minRowLength;var O8=Au();de.mod=O8.mod;de.modHalf=O8.modHalf;var Jl=$6();de.valObjectMeta=Jl.valObjectMeta;de.coerce=Jl.coerce;de.coerce2=Jl.coerce2;de.coerceFont=Jl.coerceFont;de.coercePattern=Jl.coercePattern;de.coerceHoverinfo=Jl.coerceHoverinfo;de.coerceSelectionMarkerOpacity=Jl.coerceSelectionMarkerOpacity;de.validate=Jl.validate;var xn=t8();de.dateTime2ms=xn.dateTime2ms;de.isDateTime=xn.isDateTime;de.ms2DateTime=xn.ms2DateTime;de.ms2DateTimeLocal=xn.ms2DateTimeLocal;de.cleanDate=xn.cleanDate;de.isJSDate=xn.isJSDate;de.formatDate=xn.formatDate;de.incrementMonth=xn.incrementMonth;de.dateTick0=xn.dateTick0;de.dfltRange=xn.dfltRange;de.findExactDates=xn.findExactDates;de.MIN_MS=xn.MIN_MS;de.MAX_MS=xn.MAX_MS;var ts=ag();de.findBin=ts.findBin;de.sorterAsc=ts.sorterAsc;de.sorterDes=ts.sorterDes;de.distinctVals=ts.distinctVals;de.roundUp=ts.roundUp;de.sort=ts.sort;de.findIndexOfMin=ts.findIndexOfMin;de.sortObjectKeys=ng();var pl=i8();de.aggNums=pl.aggNums;de.len=pl.len;de.mean=pl.mean;de.geometricMean=pl.geometricMean;de.median=pl.median;de.midRange=pl.midRange;de.variance=pl.variance;de.stdev=pl.stdev;de.interp=pl.interp;var di=Eh();de.init2dArray=di.init2dArray;de.transposeRagged=di.transposeRagged;de.dot=di.dot;de.translationMatrix=di.translationMatrix;de.rotationMatrix=di.rotationMatrix;de.rotationXYMatrix=di.rotationXYMatrix;de.apply3DTransform=di.apply3DTransform;de.apply2DTransform=di.apply2DTransform;de.apply2DTransform2=di.apply2DTransform2;de.convertCssMatrix=di.convertCssMatrix;de.inverseTransformMatrix=di.inverseTransformMatrix;var Hi=f8();de.deg2rad=Hi.deg2rad;de.rad2deg=Hi.rad2deg;de.angleDelta=Hi.angleDelta;de.angleDist=Hi.angleDist;de.isFullCircle=Hi.isFullCircle;de.isAngleInsideSector=Hi.isAngleInsideSector;de.isPtInsideSector=Hi.isPtInsideSector;de.pathArc=Hi.pathArc;de.pathSector=Hi.pathSector;de.pathAnnulus=Hi.pathAnnulus;var Fu=c8();de.isLeftAnchor=Fu.isLeftAnchor;de.isCenterAnchor=Fu.isCenterAnchor;de.isRightAnchor=Fu.isRightAnchor;de.isTopAnchor=Fu.isTopAnchor;de.isMiddleAnchor=Fu.isMiddleAnchor;de.isBottomAnchor=Fu.isBottomAnchor;var Iu=d8();de.segmentsIntersect=Iu.segmentsIntersect;de.segmentDistance=Iu.segmentDistance;de.getTextLocation=Iu.getTextLocation;de.clearLocationCache=Iu.clearLocationCache;de.getVisibleSegment=Iu.getVisibleSegment;de.findPointOnPath=Iu.findPointOnPath;var Zh=mt();de.extendFlat=Zh.extendFlat;de.extendDeep=Zh.extendDeep;de.extendDeepAll=Zh.extendDeepAll;de.extendDeepNoArrays=Zh.extendDeepNoArrays;var cg=Qo();de.log=cg.log;de.warn=cg.warn;de.error=cg.error;var d$=qu();de.counterRegex=d$.counter;var vg=Gh();de.throttle=vg.throttle;de.throttleDone=vg.done;de.clearThrottle=vg.clear;var pi=Ec();de.getGraphDiv=pi.getGraphDiv;de.isPlotDiv=pi.isPlotDiv;de.removeElement=pi.removeElement;de.addStyleRule=pi.addStyleRule;de.addRelatedStyleRule=pi.addRelatedStyleRule;de.deleteRelatedStyleRule=pi.deleteRelatedStyleRule;de.setStyleOnHover=pi.setStyleOnHover;de.getFullTransformMatrix=pi.getFullTransformMatrix;de.getElementTransformMatrix=pi.getElementTransformMatrix;de.getElementAndAncestors=pi.getElementAndAncestors;de.equalDomRects=pi.equalDomRects;de.clearResponsive=y8();de.preserveDrawingBuffer=b8();de.makeTraceGroups=w8();de._=A8();de.notifier=Gy();de.filterUnique=k8();de.filterVisible=C8();de.pushUnique=Xy();de.increment=L8();de.cleanNumber=E8();de.ensureNumber=function(r){return I8(r)?(r=Number(r),r>B8||r=r?!1:I8(e)&&e>=0&&e%1===0};de.noop=Dh();de.identity=rg();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;ny$.test(window.navigator.userAgent);var g$=/Firefox\/(\d+)\.\d+/;de.getFirefoxVersion=function(){var e=g$.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 Hc.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 G8=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return G8.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var _$={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=e=>hg(ph(Xo({},e),{opts:_$}));var w$={max:10,count:0,name:"texttemplate"};de.texttemplateString=e=>hg(ph(Xo({},e),{opts:w$}));var T$=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function A$(e){var r=e.match(T$);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var M$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=e=>hg(ph(Xo({},e),{opts:M$}));var z8=/^[:|\|]/;function hg({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=A$(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(G8.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=Xh&&l<=N8,u=o>=Xh&&o<=N8;if(s&&(a=10*a+l-Xh),u&&(n=10*n+o-Xh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Nu=2e9;de.seedPseudoRandom=function(){Nu=2e9};de.pseudoRandom=function(){var e=Nu;return Nu=(69069*Nu+1)%4294967296,Math.abs(Nu-e)<429496729?de.pseudoRandom():Nu/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 F8=de.getFirefoxVersion(),k$=F8!==null&&F8<86;de.getPositionFromD3Event=function(){return k$?[Hc.event.layerX,Hc.event.layerY]:[Hc.event.offsetX,Hc.event.offsetY]}});var Z8=O(()=>{"use strict";var q$=Re(),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(dg in W8)X8=dg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),q$.addStyleRule(X8,W8[dg]);var X8,dg});var pg=O((lge,J8)=>{J8.exports=!0});var yg=O((oge,$8)=>{"use strict";var C$=pg(),mg;typeof window.matchMedia=="function"?mg=!window.matchMedia("(hover: none)").matches:mg=C$;$8.exports=mg});var Kh=O((sge,gg)=>{"use strict";var Hu=typeof Reflect=="object"?Reflect:null,K8=Hu&&typeof Hu.apply=="function"?Hu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Jh;Hu&&typeof Hu.ownKeys=="function"?Jh=Hu.ownKeys:Object.getOwnPropertySymbols?Jh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Jh=function(r){return Object.getOwnPropertyNames(r)};function S$(e){console&&console.warn&&console.warn(e)}var j8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}gg.exports=yt;gg.exports.once=P$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var Q8=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(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return Q8},set:function(e){if(typeof e!="number"||e<0||j8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Q8=e}});yt.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};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||j8(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 e9(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return e9(this)};yt.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")K8(s,this,t);else for(var u=s.length,f=i9(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,S$(o)}return e}yt.prototype.addListener=function(r,t){return r9(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return r9(this,r,t,!0)};function L$(){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 t9(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=L$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return $h(t),this.on(r,t9(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return $h(t),this.prependListener(r,t9(this,r,t)),this};yt.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():D$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.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 a9(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?E$(n):i9(n,n.length)}yt.prototype.listeners=function(r){return a9(this,r,!0)};yt.prototype.rawListeners=function(r){return a9(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):n9.call(e,r)};yt.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}yt.prototype.eventNames=function(){return this._eventsCount>0?Jh(this._events):[]};function i9(e,r){for(var t=new Array(r),a=0;a{"use strict";var xg=Kh().EventEmitter,z$={init:function(e){if(e._ev instanceof xg)return e;var r=new xg,t=new xg;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 s9=Re(),N$=Ko().dfltConfig;function F$(e,r){for(var t=[],a,n=0;nN$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ml.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ml.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ml.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";c9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Yu=O(jt=>{"use strict";var Bn=gr(),Oc=Re(),jh=an(),_g=Du(),I$=bg(),H$=Pc(),B$=Ko().configAttributes,v9=vi(),mi=Oc.extendDeepAll,Bu=Oc.isPlainObject,O$=Oc.isArrayOrTypedArray,ed=Oc.nestedProperty,Y$=Oc.valObjectMeta,wg="_isSubplotObj",rd="_isLinkedToArray",V$="_arrayAttrRegexps",d9="_deprecated",Tg=[wg,rd,V$,d9];jt.IS_SUBPLOT_OBJ=wg;jt.IS_LINKED_TO_ARRAY=rd;jt.DEPRECATED=d9;jt.UNDERSCORE_ATTRS=Tg;jt.get=function(){var e={};return Bn.allTypes.forEach(function(r){e[r]=U$(r)}),{defs:{valObjects:Y$,metaKeys:Tg.concat(["description","role","editType","impliedEdits"]),editType:{traces:v9.traces,layout:v9.layout},impliedEdits:{}},traces:e,layout:W$(),frames:X$(),animation:Ou(H$),config:Ou(B$)}};jt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Tg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!jt.isValObject(l)&&Bu(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 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)O$(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 U$(e){var r,t;r=Bn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=mi({},jh),i=mi({},r.attributes);jt.crawl(i,function(s,u,f,c,h){ed(n,h).set(void 0),s===void 0&&ed(i,h).set(void 0)}),mi(a,n),Bn.traceIs(e,"noOpacity")&&delete a.opacity,Bn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Bn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,mi(a,i),t.attributes&&mi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ou(a)};if(r.layoutAttributes){var o={};mi(o,r.layoutAttributes),l.layoutAttributes=Ou(o)}return r.animatable||jt.crawl(l,function(s){jt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function W$(){var e={},r,t;mi(e,_g);for(r in Bn.subplotsRegistry)if(t=Bn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Vu=Re(),Q$=an(),$l="templateitemname",Ag={name:{valType:"string",editType:"none"}};Ag[$l]={valType:"string",editType:"calc"};as.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Ag.name,r[$l]=Ag[$l],r};as.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=Vu.coerce(i,{},Q$,"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}};as.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Vu.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};as.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[y9(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[$l]=u[$l];if(!m9(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][$l]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Vu.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)Vu.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var ia=O((dge,g9)=>{"use strict";var Yc=qu().counter;g9.exports={idRegex:{x:Yc("x","( domain)?"),y:Yc("y","( domain)?")},attrRegex:Yc("[xy]axis"),xAxisMatch:Yc("xaxis"),yAxisMatch:Yc("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(sn=>{"use strict";var j$=gr(),Mg=ia();sn.id2name=function(r){if(!(typeof r!="string"||!r.match(Mg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};sn.name2id=function(r){if(r.match(Mg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};sn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Mg.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":"")}};sn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=sn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};sn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function x9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function eK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function rK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}b9.exports={clearOutlineControllers:eK,clearOutline:rK}});var td=O((yge,_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 kg=O(nd=>{"use strict";var ad=gr(),gge=ia().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 tK=gr(),Gu=Re();ns.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=ns.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){w9(e,l,n.cache),n.check=function(){if(i){var f=w9(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;Gu.isPlainObject(i)?qg(i,r,l,a+1):r(l,n,i)}})}});var zt=O((_ge,H9)=>{"use strict";var E9=kr(),nK=wu().timeFormatLocale,iK=Py().formatLocale,Vc=zr(),lK=Ry(),Xr=gr(),P9=Yu(),oK=lt(),fr=Re(),R9=br(),k9=wt().BADNUM,un=Xt(),sK=Kl().clearOutline,uK=td(),Cg=Pc(),fK=bg(),cK=kg().getModuleCalcData,q9=fr.relinkPrivateKeys,is=fr._,Qe=H9.exports={};fr.extendFlat(Qe,Xr);Qe.attributes=an();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=aa();Qe.layoutAttributes=Du();var ld=M9();Qe.executeAPICommand=ld.executeAPICommand;Qe.computeAPICommandBindings=ld.computeAPICommandBindings;Qe.manageCommandObserver=ld.manageCommandObserver;Qe.hasSimpleAPICommandBindings=ld.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=fr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xr.getComponentMethod("annotations","draw")(e),Xr.getComponentMethod("legend","draw")(e),Xr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.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||fr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xr.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=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:R9.defaultLine,"pointer-events":"all"}).each(function(){var u=E9.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&&vK(e,i),l.text(i.text()&&o.text()?" - ":"")}};function vK(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=E9.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 hK=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],dK=["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||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:is(e,"Click to enter Plot title"),subtitle:is(e,"Click to enter Plot subtitle"),x:is(e,"Click to enter X axis title"),y:is(e,"Click to enter Y axis title"),colorbar:is(e,"Click to enter Colorscale title"),annotation:is(e,"new text")},n._traceWord=is(e,"trace");var h=C9(e,hK);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,_=m&&(y||b);_?Qe.plotAutoSize(e,i,n):m&&Qe.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=yK(h,n.separators),n._extraFormat=C9(e,dK),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=mK(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=pK(l,s),Qe.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(Xr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),F=N,Y=H;F&&!Y?a._bgLayer.remove():Y&&!F&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&sK({_fullLayout:a}),gK(o,n),q9(n,a),Xr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,G={},V;for(V in U)G[V]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,h=Qe.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}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Xr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Xr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(fr.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 Qe.doAutoMargin(e)}};function bK(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=un.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={}),z9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.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"&&Vc(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,F=R.val,Y=R.size,U=t-l.r-l.l,G=a-l.t-l.b;for(var V in h){if(Vc(H)&&h[V].r){var B=h[V].r.val,J=h[V].r.size;if(B>N){var X=(H*B+(J-U)*N)/(B-N),ee=(J*(1-N)+(H-U)*(1-B))/(B-N);X+ee>s+u&&(s=X,u=ee)}}if(Vc(Y)&&h[V].t){var le=h[V].t.val,fe=h[V].t.size;if(le>F){var he=(Y*le+(fe-G)*F)/(le-F),Q=(fe*(1-F)+(Y-G)*(1-le))/(le-F);he+Q>c+f&&(c=he,f=Q)}}}}}var qe=fr.constrain(t-i.l-i.r,N9,p),ce=fr.constrain(a-i.t-i.b,F9,m),be=Math.max(0,t-qe),ge=Math.max(0,a-ce);if(be){var _e=(s+u)/be;_e>1&&(s/=_e,u/=_e)}if(ge){var W=(c+f)/ge;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&&(Qe.didMarginChange(o,n)||bK(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var j=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 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(fr.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&&!fr.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=fr.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(_)?lK.encode(_):_},d)}return y?h.map(function(w){return u(w,d)}):b?fr.simpleMap(h,fr.identity):fr.isJSDate(h)?fr.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)};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 Xr.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 Xr.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,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=un.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:k9,y:k9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(L9(t,a,n),o=0;o{"use strict";ls.xmlns="http://www.w3.org/2000/xmlns/";ls.svg="http://www.w3.org/2000/svg";ls.xlink="http://www.w3.org/1999/xlink";ls.svgAttrs={xmlns:ls.svg,"xmlns:xlink":ls.xlink}});var Aa=O((Tge,B9)=>{"use strict";B9.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 la=O(On=>{"use strict";var Zt=kr(),yl=Re(),AK=yl.strTranslate,Sg=os(),MK=Aa().LINE_SPACING,kK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;On.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(kK),i=Zt.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=HK(e.node(),a);s&&e.style("pointer-events","all"),On.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};LK(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]+")"+AK(-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 qK=/(<|<|<)/g,CK=/(>|>|>)/g;function SK(e){return e.replace(qK,"\\lt ").replace(CK,"\\gt ")}var O9=[["$","$"],["\\(","\\)"]];function LK(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,l,o,s=function(){return i=yl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:O9},displayAlign:"left"})},u=function(){i=yl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=O9},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-"+yl.randstr({},64);o=Zt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(SK(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)yl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),A;a===2?A=Zt.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 U9={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"},DK={sub:"0.3em",sup:"-0.6em"},EK={sub:"-0.21em",sup:"0.42em"},Y9="\u200B",V9=["http:","https:","mailto:","",void 0,":"],W9=On.NEWLINES=/(\r\n?|\n)/g,Dg=/(<[^<>]*>)/,Eg=/<(\/?)([^ >]*)(\s+(.*))?>/i,PK=//i;On.BR_TAG_ALL=//gi;var X9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Z9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,J9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,RK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ss(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&od(a)}var zK=/(^|;)\s*color:/;On.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(Dg),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 NK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},FK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function od(e){return e.replace(FK,function(r,t){var a;return t.charAt(0)==="#"?a=IK(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=NK[t],a||r})}On.convertEntities=od;function IK(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 HK(e,r){r=r.replace(W9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Sg.svg,"tspan");Zt.select(k).attr({class:"line",dy:i*MK+"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=PK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Dg),h=0;h{"use strict";var BK=kr(),ud=Fn(),Uc=zr(),sd=Re(),K9=br(),OK=Jo().isValid;function YK(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 aT(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 iT=Ky(),GK=iT.FORMAT_LINK,UK=iT.DATE_FORMAT_LINK;function WK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Pg:lT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Pg(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: "+GK+"."].join(" ")}function lT(e,r){return Pg(e,r)+[" And for dates see: "+UK+".","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(" ")}oT.exports={axisHoverFormat:WK,descriptionOnlyNumbers:Pg,descriptionWithDates:lT}});var _n=O((Cge,AT)=>{"use strict";var sT=aa(),Uu=In(),TT=hi().dash,zg=mt().extendFlat,uT=lt().templatedArray,qge=gn().templateFormatStringDescription,fT=yi().descriptionWithDates,XK=wt().ONEDAY,Bi=ia(),ZK=Bi.HOUR_PATTERN,JK=Bi.WEEKDAY_PATTERN,Rg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},$K=zg({},Rg,{values:Rg.values.slice().concat(["sync"])});function cT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var vT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},hT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dT={valType:"data_array",editType:"ticks"},pT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function mT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function yT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var gT={valType:"color",dflt:Uu.defaultLine,editType:"ticks"},xT={valType:"color",dflt:Uu.lightLine,editType:"ticks"};function bT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var _T=zg({},TT,{editType:"ticks"}),wT={valType:"boolean",editType:"ticks"};AT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Uu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:sT({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:[Bi.idRegex.x.toString(),Bi.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:[Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"calc"},rangebreaks:uT("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:[JK,ZK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:XK},editType:"calc"}),tickmode:$K,nticks:cT(),tick0:vT,dtick:hT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:dT,ticktext:{valType:"data_array",editType:"ticks"},ticks:pT,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:mT(),tickwidth:yT(),tickcolor:gT,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:zg({},TT,{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:sT({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:fT("tick label")},tickformatstops:uT("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:fT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Uu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:wT,gridcolor:xT,gridwidth:bT(),griddash:_T,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Uu.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:Uu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Bi.idRegex.x.toString(),Bi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Rg,nticks:cT("minor"),tick0:vT,dtick:hT,tickvals:dT,ticks:pT,ticklen:mT("minor"),tickwidth:yT("minor"),tickcolor:gT,gridcolor:xT,gridwidth:bT("minor"),griddash:_T,showgrid:wT,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((Sge,qT)=>{"use strict";var gt=_n(),MT=aa(),kT=mt().extendFlat,KK=vi().overrideAll;qT.exports=KK({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:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:kT({},gt.ticks,{dflt:""}),ticklabeloverflow:kT({},gt.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:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:MT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:MT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Wc=O((Dge,ST)=>{"use strict";var QK=fd(),jK=qu().counter,eQ=ng(),CT=Jo().scales,Lge=eQ(CT);function cd(e){return"`"+e+"`"}ST.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"?CT[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=QK),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:jK("coloraxis"),dflt:null,editType:"calc"}),M}});var Fg=O((Ege,LT)=>{"use strict";var rQ=mt().extendFlat,tQ=Wc(),Ng=Jo().scales;LT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ng.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ng.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ng.RdBu,editType:"calc"}},coloraxis:rQ({_isSubplotObj:!0,editType:"calc"},tQ("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Ig=O((Pge,DT)=>{"use strict";var aQ=Re();DT.exports=function(r){return aQ.isPlainObject(r.colorbar)}});var Og=O(Bg=>{"use strict";var Hg=zr(),ET=Re(),PT=wt(),nQ=PT.ONEDAY,iQ=PT.ONEWEEK;Bg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?nQ:1;if(!e)return i;if(Hg(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=Hg(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};Bg.tick0=function(e,r,t,a){if(r==="date")return ET.cleanDate(e,ET.dateTick0(t,a%iQ===0?1:0));if(!(a==="D1"||a==="D2"))return Hg(e)?Number(e):0}});var vd=O((zge,zT)=>{"use strict";var RT=Og(),lQ=Re().isArrayOrTypedArray,oQ=yn().isTypedArraySpec,sQ=yn().decodeTypedArraySpec;zT.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 oQ(w)&&(w=sQ(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=lQ(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=RT.dtick(h,n);s.tick0=RT.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((Nge,FT)=>{"use strict";var Yg=Re(),NT=_n();FT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?NT.minor:NT,u=i?"minor.":"",f=Yg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Yg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=Yg.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 Vg=O((Fge,IT)=>{"use strict";IT.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 Yn=O((Ige,HT)=>{"use strict";var dd=Re(),uQ=lt();HT.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=uQ.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Gg=Re(),fQ=br().contrast,BT=_n(),cQ=Vg(),vQ=Yn();OT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Gg.isPlainObject(l)||delete t.labelalias;var o=cQ(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?fQ(i.bgColor):f&&f!==BT.color.dflt?f:u.color;if(Gg.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");vQ(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:hQ}),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 hQ(e,r){function t(n,i){return Gg.coerce(e,r,BT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var md=O((Bge,YT)=>{"use strict";var dQ=Vg();YT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=dQ(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Ug=O((Oge,VT)=>{"use strict";var Ql=Re(),pQ=lt(),mQ=vd(),yQ=hd(),gQ=pd(),xQ=md(),bQ=fd();VT.exports=function(r,t,a){var n=pQ.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Ql.coerce(i,n,bQ,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),Ql.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Ql.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"),Ql.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Ql.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"),mQ(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"),xQ(i,n,l,"linear",S),gQ(i,n,l,"linear",S),yQ(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:M,E=Ql.extendFlat({},M,{family:D.family,size:Ql.bigFont(D.size)});Ql.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Wu=O((Yge,WT)=>{"use strict";var GT=zr(),Xg=Re(),_Q=Ig(),wQ=Ug(),UT=Jo().isValid,TQ=gr().traceIs;function Wg(e,r){var t=r.slice(0,r.length-1);return r?Xg.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=Wg(r,l),f=Wg(t,l),c=Wg(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=TQ(t,"contour")&&Xg.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(h),y[0]!==m&&(y[0]=!1,Xg.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=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=!UT(A)),k!==void 0&&(M=!UT(k)),n(l+"autocolorscale",M),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=_Q(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),wQ(u,f,a))}}});var $T=O((Vge,JT)=>{"use strict";var XT=Re(),AQ=lt(),ZT=Fg(),MQ=Wu();JT.exports=function(r,t){function a(c,h){return XT.coerce(r,t,ZT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return XT.coerce(i,l,ZT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=AQ.newContainer(t,s,"coloraxis"),l._name=s,MQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var kQ=Re(),qQ=bn().hasColorscale,CQ=bn().extractOpts;KT.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?kQ.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=CQ(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 jT=zr(),Zg=Re(),SQ=bn().extractOpts;eA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Zg.nestedProperty(t,l).get():t,s=SQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return Zg.aggNums(Math.min,null,i)},p=function(){return Zg.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&jT(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&jT(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 Jg=O((Wge,rA)=>{"use strict";var yd=Jo(),Xu=bn();rA.exports={moduleType:"component",name:"colorscale",attributes:Wc(),layoutAttributes:Fg(),supplyLayoutDefaults:$T(),handleDefaults:Wu(),crossTraceDefaults:QT(),calc:Xc(),scales:yd.scales,defaultScale:yd.defaultScale,getScale:yd.get,isValidScale:yd.isValid,hasColorscale:Xu.hasColorscale,extractOpts:Xu.extractOpts,extractScale:Xu.extractScale,flipScale:Xu.flipScale,makeColorScaleFunc:Xu.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xu.makeColorScaleFuncFromTrace}});var wn=O((Xge,aA)=>{"use strict";var tA=Re(),LQ=yn().isTypedArraySpec;aA.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 tA.isPlainObject(r)&&(tA.isArrayOrTypedArray(r.size)||LQ(r.size))}}});var iA=O((Zge,nA)=>{"use strict";var DQ=zr();nA.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 DQ(s)&&s>0?Math.max(s,i):0}}});var Oi=O(Pa=>{"use strict";var gd=Re();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{sA.exports=NQ;var $g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function NQ(e){var r=[];return e.replace(zQ,function(t,a,n){var i=a.toLowerCase();for(n=IQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==$g[i])return n.unshift(a),r.push(n);if(n.length<$g[i])throw new Error("malformed path data");r.push([a].concat(n.splice(0,$g[i])))}}),r}var FQ=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function IQ(e){var r=e.match(FQ);return r?r.map(Number):[]}});var pA=O((Kge,dA)=>{"use strict";var HQ=Kg(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",uA=Math.sqrt(2),jl=Math.sqrt(3),Qg=Math.PI,jg=Math.cos,e2=Math.sin;dA.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Ze(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=Ze(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=Ze(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=Ze(e*.4,2),n=Ze(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=Ze(e*.8/uA,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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*2/jl,2),n=Ze(e/2,2),i=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.6,2),n=Ze(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=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*jl/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=Ze(e,2),n=Ze(e/2,2),i=Ze(e*jl/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=Ze(e*.924,2),n=Ze(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=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),c=Ze(a*.809,2),h=Ze(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=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(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=Ze(e*jl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*jl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(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=Ze(e*1.1,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(e*.7,2),n=Ze(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=Ze(e*1.4,2),n=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(e/uA,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=Ze(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=Ze(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=Ze(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=Ze(e*1.3,2),n=Ze(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=Ze(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=Ze(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=Ze(e*1.2,2),n=Ze(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=Ze(e/2,2),n=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(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=Ze(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=Ze(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=Ze(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=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Ze(e*2,2),n=Ze(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=Qg/2.5,n=2*e*jg(a),i=2*e*e2(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=Qg/4,n=2*e*jg(a),i=2*e*e2(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 fA,cA,vA,hA;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(vA===e&&hA===r&&fA===t)return cA;vA=e,hA=r,fA=t;function a(y,b){var _=jg(y),w=e2(y),x=b[0],A=b[1]+(r||0);return[x*_-A*w,x*w+A*_]}for(var n=e/180*Qg,i=0,l=0,o=HQ(t),s="",u=0;u{"use strict";var oa=kr(),nt=Re(),BQ=nt.numberFormat,vs=zr(),l2=Fn(),bd=gr(),Ma=br(),OQ=Jg(),Jc=nt.strTranslate,_d=la(),YQ=os(),VQ=Aa(),GQ=VQ.LINE_SPACING,MA=ku().DESELECTDIM,UQ=wn(),WQ=iA(),XQ=Oi().appendArrayPointValue,je=zA.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(Ma.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",r2(JQ(f))),s&&e.style("text-shadow",s==="auto"?_d.makeTextShadow(Ma.contrast(i)):r2(s)),u&&e.style("text-decoration-line",r2($Q(u)))};function r2(e){return e==="none"?void 0:e}var ZQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function JQ(e){return ZQ[e]}function $Q(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(vs(n)&&vs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Jc(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=oa.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,oa.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!vs(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||"";Ma.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||"";oa.select(this).call(Ma.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 kA(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(SA,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(Ma.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=oa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};kA(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=oa.select(this);a[0].trace&&kA(n,a[0].trace,r,t)})};var mA=pA();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(mA).forEach(function(e){var r=mA[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 KQ=je.symbolNames.length,QQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(vs(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>=KQ||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?QQ:"")}var yA=BQ("~f"),CA={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=CA[a];return SA(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function SA(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=u2(e,t),c=s2(e,t);r.attr("d",qA(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):nt.isArrayOrTypedArray(o.color)?p=Ma.defaultLine:p=o.color,nt.isArrayOrTypedArray(l.color)&&(d=Ma.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(Ma.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,nt.isArrayOrTypedArray(w)&&(w=w[0],CA[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,F=A(x.size,e.i,8),Y=A(x.solidity,e.i,.3);D=D||e.mcc||nt.isArrayOrTypedArray(x.shape)||nt.isArrayOrTypedArray(x.path)||nt.isArrayOrTypedArray(x.bgcolor)||nt.isArrayOrTypedArray(x.fgcolor)||nt.isArrayOrTypedArray(x.size)||nt.isArrayOrTypedArray(x.solidity);var U=t.uid;D&&(U+="-"+e.i),je.pattern(r,"point",n,U,k,F,Y,e.mcc,x.fillmode,N,R,H)}else nt.isArrayOrTypedArray(d)?Ma.fill(r,d[e.i]):Ma.fill(r,d);m&&Ma.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=UQ.isBubble(e)?WQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&nt.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;(nt.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:MA*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:Ma.addOpacity(c,MA))},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){Ma.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,u2(l,r),s2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=oa.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=oa.select(this),u=i?nt.extractOption(o,r,"txt","texttemplate"):nt.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={};XQ(h,r,o.i),u=nt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,p=DA(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(LA,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=oa.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=DA(a,r);Ma.fill(n,i);var s=bd.traceIs(r,"bar-like");LA(n,l,o,a.mrc2||a.mrc,s)})}};var gA=.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=RA;je.makeTester=function(){var e=nt.ensureSingleById(oa.select("body"),"svg","js-plotly-tester",function(t){t.attr(YQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=nt.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 a2=0,rj=1e4;je.bBox=function(e,r,t){t||(t=xA(e));var a;if(t){if(a=je.savedBBoxes[t],a)return nt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=xA(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 nt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),oa.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 a2>=rj&&(je.savedBBoxes={},a2=0),t&&(je.savedBBoxes[t]=d),a2++,nt.extendFlat({},d)};function xA(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",o2(r,t))};function o2(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+=Jc(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 tj=/\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(tj,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var aj=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=oa.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(aj);r===1&&t===1?a=[]:a=[Jc(l,o),"scale("+r+","+t+")",Jc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function s2(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=s2;var Zc=Math.atan2,us=Math.cos,Ju=Math.sin;function bA(e,r){var t=r[0],a=r[1];return[t*us(e)-a*Ju(e),t*Ju(e)+a*us(e)]}var _A,wA,TA,AA,n2,i2;function u2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||nt.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=Zc(h[1]-n,h[0]-a),p=Zc(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,_=_A/180*Math.PI,w=wA/180*Math.PI,x=_-y,A=us(w)*Ju(x),k=Ju(w)*us(b)-us(w)*Ju(b)*us(x);m=-Zc(A,k)-Math.PI,_A=u,wA=f}var M=bA(d,[us(m),0]),S=bA(p,[Ju(m),0]);t=Zc(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(i2===r.uid&&e.i===n2+1)&&(t=null)}if(i==="previous"&&!r._geo)if(i2===r.uid&&e.i===n2+1&&vs(a)&&vs(n)){var D=a-TA,E=n-AA,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Zc(E,D)/Math.PI*180+90}else t=null}return TA=a,AA=n,n2=e.i,i2=r.uid,t}je.getMarkerAngle=u2});var $c=O((jge,HA)=>{"use strict";var $u=kr(),nj=zr(),ij=zt(),f2=gr(),hs=Re(),NA=hs.strTranslate,wd=Yr(),Td=br(),Ku=la(),FA=ku(),lj=Aa().OPPOSITE_SIDE,IA=/ [XY][0-9]* /,c2=1.6,v2=1.6;function oj(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:{}},F=(H.text||"").trim(),Y=!1,U=1,G=H.font,V=G.family,B=G.size,J=G.color,X=G.weight,ee=G.style,le=G.variant,fe=G.textcase,he=G.lineposition,Q=G.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ce=e._context.edits[qe];function be(Be,We){return Be===void 0||We===void 0?!1:Be.replace(IA," % ")===We.replace(IA," % ")}p===""?h=0:be(p,l)&&(ce||(p=""),h=.2,m=!0),R&&(F===""?U=0:be(F,N)&&(ce||(F=""),U=.2,Y=!0)),t._meta?p=hs.templateString(p,t._meta):a._meta&&(p=hs.templateString(p,a._meta));var ge=p||F||ce,_e;c||(c=hs.ensureSingle(a._infolayer,"g","g-"+r),_e=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(ge?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var j=null,Z=r+"-subtitle",oe=F||ce;if(R&&(j=c.selectAll("text."+Z).data(oe?[0]:[]),j.enter().append("text"),j.text(F).attr("class",Z),j.exit().remove()),!ge)return c;function me(Be,We){hs.syncOrAsync([xe,De],{title:Be,subtitle:We})}function xe(Be){var We=Be.title,Pe=Be.subtitle,Oe;!f&&_e&&(f={}),f?(Oe="",f.rotate&&(Oe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||_e)&&(Oe+=NA(0,(f.offset||0)-(_e||0)))):Oe=null,We.attr("transform",Oe);function Ue(Me){if(Me){var Ce=$u.select(Me.node().parentNode).select("."+Z);if(!Ce.empty()){var He=Me.node().getBBox();if(He.height){var Je=He.y+He.height+c2*B;Ce.attr("y",Je)}}}}if(We.style("opacity",h*Td.opacity(w)).call(wd.font,{color:Td.rgb(w),size:$u.round(_,2),family:b,weight:x,style:A,variant:k,textcase:M,shadow:D,lineposition:S}).attr(u).call(Ku.convertToTspans,e,Ue),Pe&&!Pe.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+c2*B:we.y+we.height+v2*B,Ne=hs.extendFlat({},u,{y:hr});Pe.attr("transform",Oe),Pe.style("opacity",U*Td.opacity(J)).call(wd.font,{color:Td.rgb(J),size:$u.round(B,2),family:V,weight:X,style:ee,variant:le,textcase:fe,shadow:Q,lineposition:he}).attr(Ne).call(Ku.convertToTspans,e)}return ij.previousPromises(e)}function De(Be){var We=Be.title,Pe=$u.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){Pe.attr("transform",null);var Oe=lj[s.side],Ue=s.side==="left"||s.side==="top"?-1:1,ie=nj(s.pad)?s.pad:2,we=wd.bBox(Pe.node()),$e={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var Ne in hr)for(var Me in hr[Ne]){var Ce=hr[Ne][Me];$e[Me]=Math.max($e[Me],Ce)}var He={left:$e.l,top:$e.t,right:a.width-$e.r,bottom:a.height-$e.b},Je=s.maxShift||Ue*(He[s.side]-we[s.side]),Ge=0;if(Je<0)Ge=Je;else{var Xe=s.offsetLeft||0,lr=s.offsetTop||0;we.left-=Xe,we.right-=Xe,we.top-=lr,we.bottom-=lr,s.selection.each(function(){var Ke=wd.bBox(this);hs.bBoxIntersect(we,Ke,ie)&&(Ge=Math.max(Ge,Ue*(Ke[s.side]-we[Oe])+ie))}),Ge=Math.min(Je,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||Je<0){var tr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];Pe.attr("transform",NA(tr[0],tr[1]))}}}W.call(me,j);function ze(Be,We){Be.text(We).on("mouseover.opacity",function(){$u.select(this).transition().duration(FA.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){$u.select(this).transition().duration(FA.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?W.on(".opacity",null):(ze(W,l),m=!0),W.call(Ku.makeEditable,{gd:e}).on("edit",function(Be){o!==void 0?f2.call("_guiRestyle",e,i,Be,o):f2.call("_guiRelayout",e,i,Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Be){this.text(Be||" ").call(Ku.positionText,u.x,u.y)}),R)){if(R&&!p){var Se=W.node().getBBox(),Ie=Se.y+Se.height+v2*B;j.attr("y",Ie)}F?j.on(".opacity",null):(ze(j,N),Y=!0),j.call(Ku.makeEditable,{gd:e}).on("edit",function(Be){f2.call("_guiRelayout",e,"title.subtitle.text",Be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Be){this.text(Be||" ").call(Ku.positionText,j.attr("x"),j.attr("y"))})}return W.classed("js-placeholder",m),j&&!j.empty()&&j.classed("js-placeholder",Y),c}HA.exports={draw:oj,SUBTITLE_PADDING_EM:v2,SUBTITLE_PADDING_MATHJAX_EM:c2}});var Dd=O((e2e,GA)=>{"use strict";var sj=kr(),uj=wu().utcFormat,ot=Re(),fj=ot.numberFormat,Yi=zr(),eo=ot.cleanNumber,cj=ot.ms2DateTime,BA=ot.dateTime2ms,Vi=ot.ensureNumber,OA=ot.isArrayOrTypedArray,ro=wt(),Ad=ro.FP_SAFE,gi=ro.BADNUM,vj=ro.LOG_CLIP,hj=ro.ONEWEEK,Md=ro.ONEDAY,kd=ro.ONEHOUR,YA=ro.ONEMIN,VA=ro.ONESEC,qd=Xt(),Ld=ia(),Cd=Ld.HOUR_PATTERN,Sd=Ld.WEEKDAY_PATTERN;function Kc(e){return Math.pow(10,e)}function h2(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*vj*Math.abs(k-M))}else return gi}function l(x,A,k,M){if((M||{}).msUTC&&Yi(x))return+x;var S=BA(x,k||r.calendar);if(S===gi)if(Yi(x)){x=+x;var D=Math.floor(ot.mod(x+.05,1)*10),E=Math.round(x-D/10);S=BA(new Date(E))+D/10}else return gi;return S}function o(x,A,k){return cj(x,A,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(h2(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 gi}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:Vi,r.l2c=r.type==="log"?Kc:Vi,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 Kc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=eo,r.c2d=r.c2r=r.l2d=r.l2r=Vi,r.d2p=r.r2p=function(x){return r.l2p(eo(x))},r.p2d=r.p2r=b,r.cleanPos=Vi):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(eo(x),A)},r.r2d=r.r2c=function(x){return Kc(eo(x))},r.d2c=r.r2l=eo,r.c2d=r.l2r=Vi,r.c2r=i,r.l2d=Kc,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return Kc(b(x))},r.r2p=function(x){return r.l2p(eo(x))},r.p2r=b,r.cleanPos=Vi):r.type==="date"?(r.d2r=r.r2d=ot.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 ot.cleanDate(x,gi,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=Vi,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:Vi(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=Vi,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:Vi(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),M[0]===M[1]){var R=r.l2r(A),N=r.l2r(k);if(A!==void 0){var H=R+1;k!==void 0&&(H=Math.min(H,N)),M[D?1:0]=H}if(k!==void 0){var F=N+1;A!==void 0&&(F=Math.max(F,R)),M[D?0:1]=F}}}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var k=ot.nestedProperty(r,x).get(),M,S;if(r.type==="date"?S=ot.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){ot.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=ot.cleanDate(k[0],gi,r.calendar),k[1]=ot.cleanDate(k[1],gi,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!ot.isDateTime(k[M],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=ot.constrain(r.r2l(k[0]),ot.MIN_MS+1e3,ot.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Yi(k[M]))if(!(D||E)&&Yi(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&&(F=!F),F&&r._rangebreaks.reverse();var Y=F?-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=Q.min&&(eeQ.max&&(Q.max=le),fe=!1)}fe&&E.push({min:ee,max:le})}};for(k=0;k{"use strict";var UA=zr(),d2=Re(),dj=wt().BADNUM,Ed=d2.isArrayOrTypedArray,pj=d2.isDateTime,mj=d2.cleanNumber,WA=Math.round;ZA.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Ed(n)&&!n.length)return"-";if(!i&&_j(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function XA(e){return Math.max(1,(e-1)/1e3)}function bj(e,r){for(var t=e.length,a=XA(t),n=0,i=0,l={},o=0;on*2}function _j(e){return Ed(e[0])&&Ed(e[1])}});var Qc=O((t2e,tM)=>{"use strict";var wj=kr(),QA=zr(),to=Re(),Pd=wt().FP_SAFE,Tj=gr(),Aj=Yr(),jA=Xt(),Mj=jA.getFromId,kj=jA.isLinked;tM.exports={applyAutorangeOptions:rM,getAutoRange:m2,makePadFn:y2,doAutoRange:Cj,findExtremes:Sj,concatExtremes:b2};function m2(e,r){var t,a,n=[],i=e._fullLayout,l=y2(i,r,0),o=y2(i,r,1),s=b2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return to.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(G,V){return Math.max(G,o(V))}if(c===h){var H=c-1,F=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,F)]:n=[H,F]}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-JA(r,k.val,M.val))/(w-l(S)-o(D)),n=[S.val-A*l(S),D.val+A*o(D)];return n=rM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),to.simpleMap(n,r.l2r||Number)}function JA(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 g2(e,r,t,a){eM(e,r,t,a,Lj)}function x2(e,r,t,a){eM(e,r,t,a,Dj)}function eM(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 KA(e){return QA(e)&&Math.abs(e)=r}function Ej(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 Pj(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=Ej(t,r),a=Pj(a,r),[t,a]}});var Zr=O((n2e,MM)=>{"use strict";var Vn=kr(),Jt=zr(),Qu=zt(),ev=gr(),xr=Re(),ju=xr.strTranslate,ds=la(),Rj=$c(),rv=br(),Tn=Yr(),zj=_n(),aM=Og(),a2e=ia(),ka=wt(),Nj=ka.ONEMAXYEAR,Fd=ka.ONEAVGYEAR,Id=ka.ONEMINYEAR,Fj=ka.ONEMAXQUARTER,A2=ka.ONEAVGQUARTER,Hd=ka.ONEMINQUARTER,Ij=ka.ONEMAXMONTH,ef=ka.ONEAVGMONTH,Bd=ka.ONEMINMONTH,An=ka.ONEWEEK,Ya=ka.ONEDAY,ao=Ya/2,Ui=ka.ONEHOUR,tv=ka.ONEMIN,Od=ka.ONESEC,Hj=ka.ONEMILLI,Bj=ka.ONEMICROSEC,ps=ka.MINUS_SIGN,Vd=ka.BADNUM,M2={K:"zeroline"},k2={K:"gridline",L:"path"},q2={K:"minor-gridline",L:"path"},dM={K:"tick",L:"path"},nM={K:"tick",L:"text"},iM={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=Aa(),jc=Gd.MID_SHIFT,ms=Gd.CAP_SHIFT,av=Gd.LINE_SPACING,Oj=Gd.OPPOSITE_SIDE,Yd=3,Ye=MM.exports={};Ye.setConvert=Dd();var Yj=p2(),Wi=Xt(),Vj=Wi.idSort,Gj=Wi.isLinked;Ye.id2name=Wi.id2name;Ye.name2id=Wi.name2id;Ye.cleanId=Wi.cleanId;Ye.list=Wi.list;Ye.listIds=Wi.listIds;Ye.getFromId=Wi.getFromId;Ye.getFromTrace=Wi.getFromTrace;var pM=Qc();Ye.getAutoRange=pM.getAutoRange;Ye.findExtremes=pM.findExtremes;var Uj=1e-4;function D2(e){var r=(e[1]-e[0])*Uj;return[e[0]-r,e[1]+r]}Ye.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)};Ye.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))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.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=Ye.tickIncrement(e,"M6","reverse")+Ya*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ya*15.5:e-=ao;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Jt(r._tmin),n;if(a){var i=Ye.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,Ye.prepTicks(e,t),a){var o=Jt(r.dtick),s=Jt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?_2(u,f)?u===2*An&&f===2*Ya&&(e.dtick=An):u===2*An&&f===3*Ya?e.dtick=An:u===An&&!(r._input.minor||{}).nticks?e.dtick=Ya:sM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":_2(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"?_2(u,f)||(e.dtick=sM(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function _2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function sM(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,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<=Nj?c=u:c=Fd:t===A2&&f>=Hd?u>=Hd&&u<=Fj?c=u:c=A2:f>=Bd?u>=Bd&&u<=Ij?c=u:c=ef:t===An&&f>=An?c=An:f>=Ya?c=Ya:t===ao&&f>=ao?c=ao:t===Ui&&f>=Ui&&(c=Ui);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;yAn&&(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,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]=(w?0:1);x--){var A=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:xr.extendFlat({},r,r.minor);if(A?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){x?(y=[],p=uM(r,!A)):(b=[],m=uM(r,!A));continue}if(k.tickmode==="sync"){y=[],p=Kj(r);continue}var M=D2(u),S=M[0],D=M[1],E=Jt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=Ye.tickFirst(k,t);if(x){if(r._tmin=N,N=D:F<=D;F=Ye.tickIncrement(F,G,f,n)){if(x&&Y++,k.rangebreaks&&!f){if(F=h)break}if(y.length>d||F===H)break;H=F;var V={value:F};x?(R&&F!==(F|0)&&(V.simpleLabel=!0),i>1&&Y%i&&(V.skipLabel=!0),y.push(V)):(V.minor=!0,b.push(V))}}if(!b||b.length<2)s=!1;else{var B=(b[1].value-b[0].value)*(o?-1:1);wee(B,r.tickformat)||(s=!1)}if(!s)_=y;else{var J=y.concat(b);l&&y.length&&(J=J.slice(1)),J=J.sort(function(Ie,Be){return Ie.value-Be.value}).filter(function(Ie,Be,We){return Be===0||Ie.value!==We[Be-1].value});var X=J.map(function(Ie,Be){return Ie.minor===void 0&&!Ie.skipLabel?Be:null}).filter(function(Ie){return Ie!==null});X.forEach(function(Ie){s.map(function(Be){var We=Ie+Be;We>=0&&We-1;ge--){if(y[ge].drop){y.splice(ge,1);continue}y[ge].value=T2(y[ge].value,r);var Z=r.c2p(y[ge].value);(_e?j>Z-W:jh||Peh&&(We.periodX=h),Pen&&hFd)r/=Fd,a=n(10),e.dtick="M"+12*Gi(r,a,zd);else if(i>ef)r/=ef,e.dtick="M"+Gi(r,1,fM);else if(i>Ya){if(e.dtick=Gi(r,Ya,e._hasDayOfWeekBreaks?[1,2,7,14]:Qj),!t){var l=Ye.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>Ui?e.dtick=Gi(r,Ui,fM):i>tv?e.dtick=Gi(r,tv,cM):i>Od?e.dtick=Gi(r,Od,cM):(a=n(10),e.dtick=Gi(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"+Gi(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))):z2(e)?(e.tick0=0,a=1,e.dtick=Gi(r,a,jj)):(e.tick0=0,a=n(10),e.dtick=Gi(r,a,zd));if(e.dtick===0&&(e.dtick=1),!Jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function xM(e){var r=e.dtick;if(e._tickexponent=0,!Jt(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>=tv&&n<=16||r>=Ui)e._tickround="M";else if(r>=Od&&n<=19||r>=tv)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(Jt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Jt(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&&(rf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!E2(s)||rf(e.exponentformat)&&e.exponentformat==="SI extended"&&!P2(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(Jt(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"?gM:yM,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),o,t);return Math.floor(s)+Math.log(Vn.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&&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=iv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function ree(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=nv(Math.pow(10,l),e,n,a);else if(Jt(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"||rf(p)&&p!=="SI extended"&&E2(h)||rf(p)&&p==="SI extended"&&P2(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":ps)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":ps)+d:(r.text=nv(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 tee(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function aee(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 nee(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=nv(r.x,e,n,a)}function iee(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=lee(i);if(l[1]>=100)r.text=nv(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=ps+r.text)}}}else r.text=nv(r.x,e,n,a)}function lee(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 _M=["f","p","n","\u03BC","m","","k","M","G","T"],oee=["q","r","y","z","a",..._M,"P","E","Z","Y","R","Q"],rf=e=>["SI","SI extended","B"].includes(e);function E2(e){return e>14||e<-15}function P2(e){return e>32||e<-30}function see(e,r){return rf(r)?!!(r==="SI extended"&&P2(e)||r!=="SI extended"&&E2(e)):!1}function nv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};xM(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ps);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":rf(l)&&(e+=l==="SI extended"?oee[o/3+10]:_M[o/3+5])}return n?ps+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*ef}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=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&L2(u,u._fullDepth||0,o,!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,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.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),L2(r,p,a,!0),L2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=_ee(r,a));var m=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?Pe.bottom-Be:0,We))));var we=0,$e=0;if(r._shiftPusher&&(we=Math.max(We,Pe.height>0?Se==="l"?Be-Pe.left:Pe.right-Be: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){Oe={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"?Oe[Se]=r._depth:(Oe[Se]=r._depth=Math.max(Pe.width>0?Be-Pe.top:0,We),hr.reverse()),Pe.width>0){var Me=Pe.right-(r._offset+r._length);Me>0&&(Oe.xr=1,Oe.r=Me);var Ce=r._offset-Pe.left;Ce>0&&(Oe.xl=0,Oe.l=Ce)}}else if(Se==="l"?(r._depth=Math.max(Pe.height>0?Be-Pe.left:0,We),Oe[Se]=r._depth-Ne):(r._depth=Math.max(Pe.height>0?Pe.right-Be:0,We),Oe[Se]=r._depth+Ne,hr.reverse()),Pe.height>0){var He=Pe.bottom-(r._offset+r._length);He>0&&(Oe.yb=0,Oe.b=He);var Je=r._offset-Pe.top;Je>0&&(Oe.yt=1,Oe.t=Je)}Oe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Oe[Se]+=hM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[Ie]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[Ie]+=We),r.mirror===!0||r.mirror==="ticks"?Ue[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}ze&&(ie=ev.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(vM(Oe,r.automargin),vM(Ue,r.automargin)),Qu.autoMargin(e,R2(r),Oe),Qu.autoMargin(e,TM(r),Ue),Qu.autoMargin(e,AM(r),ie)}),xr.syncOrAsync(xe)}};function vM(e,r){if(e){var t=Object.keys(iM).reduce(function(a,n){return r.indexOf(n)!==-1&&iM[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 uee(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 ju(n+e._offset+e.l2p(C2(h))+t,i+a)}:function(h){return ju(i+a,n+e._offset+e.l2p(C2(h))+t)}};function C2(e){return e.periodX!==void 0?e.periodX:e.x}function hee(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*ms,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=Yd),s&&f==="top"&&(h-=d*(1-ms)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h: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,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};Ye.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+=jc:D===-90&&M==="bottom"?x=ms:D===90&&M==="top"?x=jc:x=.5,k=jc/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,F){if(f){if(o)return"end";if(s)return"start"}return!Jt(F)||F===0||F===180?"middle":F*A<0!==c?"end":"start"},b.heightFn=function(H,F,Y){return F<-60||F>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=ms:x=.5),c){var R=Jt(D)?+D:0;if(R!==0){var N=xr.deg2rad(R);k=Math.abs(Math.sin(N))*ms*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*jc},b.anchorFn=function(H,F){return Jt(F)&&Math.abs(F)===90?"middle":E?"end":"start"},b.heightFn=function(H,F,Y){return e.side==="right"&&(F*=-1),F<-30?-Y:F<30?-.5*Y:0}}return b};function Ud(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(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 rv.stroke(Vn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Tn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Wd(r,[dM]),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(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Ye.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 rv.stroke(Vn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Tn.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)}}Wd(r,[k2,q2])}};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(l,o){return Vj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(rv.stroke,r.zerolinecolor||rv.defaultLine).style("stroke-width",Tn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Wd(r,[M2])};Ye.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=Vn.select(this),X=e._promises.length;J.call(ds.positionText,s.xFn(B),s.yFn(B)).call(Tn.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(ds.convertToTspans,e),e._promises[X]?h.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),Wd(r,[nM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(B){Vn.select(this).select("text").call(ds.positionText,s.xFn(B),s.yFn(B))});function d(B,J){B.each(function(X){var ee=Vn.select(this),le=ee.select(".text-math-group"),fe=s.anchorFn(X,J),he=t.transFn.call(ee.node(),X)+(Jt(J)&&+J!=0?" rotate("+J+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),Q=ds.lineCount(ee),qe=av*X.fontSize,ce=s.heightFn(X,Jt(J)?+J:0,(Q-1)*qe);if(ce&&(he+=ju(0,ce)),le.empty()){var be=ee.select("text");be.attr({transform:he,"text-anchor":fe}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=Tn.bBox(le.node()).width,_e=ge*{end:-.5,start:.5}[fe];le.attr("transform",he+ju(_e,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 he=Math.min(ee,le),Q=Math.max(ee,le),qe=r.side,ce=1/0,be=-1/0;c.each(function(j){var Z=Vn.select(this),oe=Z.select(".text-math-group");if(oe.empty()){var me=Tn.bBox(Z.node()),xe=0;X?(me.right>Q||me.leftQ||me.top+(r.tickangle?0:j.fontSize/4)r["_visibleLabelMin_"+fe._id]?Z.style("display","none"):Q.K==="tick"&&!he&&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,ee=1;c.each(function(Oe){B=Math.max(B,Oe.fontSize);var Ue=r.l2p(Oe.x),ie=S2(this),we=Tn.bBox(ie.node());ee=Math.max(ee,ds.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Ue-we.width/2,right:Ue+we.width/2+2,width:we.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,he=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),Q=le?he/2:he,qe=le?r.ticklen:B*1.25*ee,ce=Math.sqrt(Math.pow(Q,2)+Math.pow(qe,2)),be=Q/ce,ge=r.autotickangles.map(function(Oe){return Oe*Math.PI/180}),_e=ge.find(function(Oe){return Math.abs(Math.cos(Oe))<=be});_e===void 0&&(_e=ge.reduce(function(Oe,Ue){return Math.abs(Math.cos(Oe))U*Y&&(N=Y,D[S]=E[S]=H[S])}var G=Math.abs(N-R);G-A>0?(G-=A,A*=1+A/G):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 V=xr.syncOrAsync(b);return V&&V.then&&e._promises.push(V),V};function dee(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(rv.stroke,r.dividercolor).style("stroke-width",Tn.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 hM(e){var r=e.title.font.size,t=(e.title.text.match(ds.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ms+t*av):t?r*(t+1)*av:r}function pee(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(ds.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ms:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(jc+o*av));else{var s=iv(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=Ye.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=Tn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Rj.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"}})}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)===Vd)&&(wM(r,0)||!mee(e,r,t,a)||yee(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return wM(e,t.x)})};function wM(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Bj:/%L/.test(r)?e>=Hj:/%[SX]/.test(r)?e>=Od:/%M/.test(r)?e>=tv:/%[HI]/.test(r)?e>=Ui:/%p/.test(r)?e>=ao:/%[Aadejuwx]/.test(r)?e>=Ya:/%[UVW]/.test(r)?e>=An:/%[Bbm]/.test(r)?e>=Bd:/%[q]/.test(r)?e>=Hd:/%[Yy]/.test(r)?e>=Id:!0}});var qM=O((i2e,kM)=>{"use strict";kM.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 N2=O((l2e,CM)=>{"use strict";var Tee=qM();CM.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&&(Tee(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var LM=O((o2e,SM)=>{var Aee={left:0,top:0};SM.exports=Mee;function Mee(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=kee(r);return t[0]=a-i.left,t[1]=n-i.top,t}function kee(e){return e===window||e===document||e===document.body?Aee:e.getBoundingClientRect()}});var F2=O((s2e,DM)=>{"use strict";var qee=pg();function Cee(){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}DM.exports=qee&&Cee()});var PM=O((u2e,EM)=>{"use strict";EM.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 NM=O((f2e,zM)=>{"use strict";var RM=Re(),See=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];zM.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=RM.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=RM.constrain(Math.floor(t*3),0,2),See[t][r]}});var IM=O((c2e,FM)=>{"use strict";var Lee=Bc(),Dee=Gh(),Eee=Ec().getGraphDiv,Pee=qc(),I2=FM.exports={};I2.wrapped=function(e,r,t){e=Eee(e),e._fullLayout&&Dee.clear(e._fullLayout._uid+Pee.HOVERID),I2.raw(e,r,t)};I2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Lee.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 xi=O((v2e,YM)=>{"use strict";var Ree=LM(),H2=yg(),zee=F2(),Nee=Re().removeElement,Fee=ia(),ys=YM.exports={};ys.align=PM();ys.getCursor=NM();var BM=IM();ys.unhover=BM.wrapped;ys.unhoverRaw=BM.raw;ys.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,zee?(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 OM(){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}ys.coverSlip=OM;function HM(e){return Ree(e.changedTouches?e.changedTouches[0]:e,document.body)}});var no=O((h2e,VM)=>{"use strict";VM.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((d2e,UM)=>{"use strict";var B2=no(),lv="data-savedcursor",GM="!!";UM.exports=function(r,t){var a=r.attr(lv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var O2=aa(),Iee=In();XM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Iee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:O2({editType:"legend"}),grouptitlefont:O2({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:O2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var sv=O(ov=>{"use strict";ov.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};ov.isVertical=function(r){return r.orientation!=="h"};ov.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};ov.getId=function(r){return r._id||"legend"}});var G2=O((y2e,ZM)=>{"use strict";var Xd=gr(),Mn=Re(),Hee=lt(),Bee=an(),Oee=Y2(),Yee=Du(),V2=sv();function Vee(e,r,t,a,n){var i=r[e]||{},l=Hee.newContainer(t,e);function o(B,J){return Mn.coerce(i,l,Oee,B,J)}var s=Mn.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 Mn.coerce(X,ee,Bee,B,J)},h=t.font||{},d=Mn.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 Xd.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,F,Y,U="left";E?(H=0,Xd.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(F=1.1,Y="bottom"):(F=1,Y="top"):R?(F=-.1,Y="top"):(F=0,Y="bottom")):(F=1,Y="auto",N?H=1.02:(H=1,U="right")),Mn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:H}},"x"),Mn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:F}},"y"),o("traceorder",y),V2.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"),Mn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){o("title.side",E?"left":"top");var V=Mn.extendFlat({},s,{size:Mn.bigFont(s.size)});Mn.coerceFont(o,"title.font",V);let B=n>1;o("titleclick",B?"toggle":!1),o("titledoubleclick",B?"toggleothers":!1)}}}ZM.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var io=gr(),U2=Re(),Gee=U2.pushUnique,Uee=sv(),JM=!0;W2.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"&&JM&&t.data&&t._context.showTips&&(U2.notifier(U2._(t,"Double-click on legend to isolate one trace"),"long"),JM=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,c=(i.shapes||[]).filter(function(ze){return ze.showlegend}),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(ze,Se){var Ie=k.indexOf(ze),Be=A.visible;return Be||(Be=A.visible=[]),k.indexOf(ze)===-1&&(k.push(ze),Ie=k.length-1),Be[Ie]=Se,Ie}var E=(i.shapes||[]).map(function(ze){return ze._input}),R=!1;function N(ze,Se){E[ze].visible=Se,R=!0}function H(ze,Se){if(!(l.groupTitle&&!s)){var Ie=ze._fullInput||ze,Be=Ie._isShape,We=Ie.index;We===void 0&&(We=Ie._index);var Pe=Ie.visible===!1?!1:Se;Be?N(We,Pe):D(We,Pe)}}var F=d.legend,Y=d._fullInput,U=Y&&Y._isShape;if(!U&&io.traceIs(d,"pie-like")){var G=l.label,V=u.indexOf(G);if(n==="toggle")V===-1?u.push(G):u.splice(V,1);else if(n==="toggleothers"){var B=V!==-1,J=[];for(m=0;m{"use strict";$M.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var jM=O((b2e,QM)=>{"use strict";var KM=gr(),J2=sv();QM.exports=function(r,t,a){var n=t._inHover,i=J2.isGrouped(t),l=J2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function m(B,J,X){if(t.visible!==!1&&!(a&&B!==t._id))if(J===""||!J2.isGrouped(t)){var ee="~~i"+c;s.push(ee),o[ee]=[X],c++}else s.indexOf(J)===-1?(s.push(J),u=!0,o[J]=[X]):o[J].push(X)}for(d=0;dN&&(R=N)}D[d][0]._groupMinRank=R,D[d][0]._preGroupSort=d}var H=function(B,J){return B[0]._groupMinRank-J[0]._groupMinRank||B[0]._preGroupSort-J[0]._preGroupSort},F=function(B,J){return B.trace.legendrank-J.trace.legendrank||B._preSort-J._preSort};for(D.forEach(function(B,J){B[0]._preGroupSort=J}),D.sort(H),d=0;d{"use strict";var Zd=Re();function ek(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}gs.formatPiePercent=function(r,t){var a=ek((r*100).toPrecision(3));return Zd.numSeparate(a,t)+"%"};gs.formatPieValue=function(r,t){var a=ek(r.toPrecision(10));return Zd.numSeparate(a,t)};gs.getFirstFilled=function(r,t){if(Zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Wee=Yr(),Xee=br();rk.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Wee.pointStyle(r,a,n,t):Xee.fill(r,t.color)}});var tf=O((T2e,ik)=>{"use strict";var ak=br(),nk=uv().castOption,Zee=tk();ik.exports=function(r,t,a,n){var i=a.marker.line,l=nk(i.color,t.pts)||ak.defaultLine,o=nk(i.width,t.pts)||0;r.call(Zee,t,a,n).style("stroke-width",o).call(ak.stroke,l)}});var j2=O((A2e,ck)=>{"use strict";var Va=kr(),$2=gr(),Ra=Re(),lk=Ra.strTranslate,kn=Yr(),Gn=br(),K2=bn().extractOpts,Jd=wn(),Jee=tf(),$ee=uv().castOption,Kee=Z2(),ok=12,sk=5,xs=2,Qee=10,af=5;ck.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Kee.itemGap*2)/2,s=lk(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=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 F={top:1,bottom:-1}[R],Y=F*(.5*(N-H+3))||0,U=a.indentation;D.attr("transform",lk(U,Y))}var G=D.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var V=D.selectAll("g.legendlines").data([M]);V.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=uk(M),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,H=S.anyFill,F=S.anyLine,Y=M[0],U=Y.trace,G,V,B=K2(U),J=B.colorscale,X=B.reversescale,ee=function(be){if(be.size())if(D)kn.fillGroupStyle(be,t,!0);else{var ge="legendfill-"+U.uid;kn.gradient(be,t,ge,Q2(X),J,"fill")}},le=function(be){if(be.size()){var ge="legendline-"+U.uid;kn.lineGroupStyle(be),kn.gradient(be,t,ge,Q2(X),J,"stroke")}},fe=Jd.hasMarkers(U)||!H?"M5,0":F?"M5,-2":"M5,-3",he=Va.select(this),Q=he.select(".legendfill").selectAll("path").data(D||N?[M]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",fe+"h"+l+"v6h-"+l+"z").call(ee),E||R){var qe=u(void 0,U.line,Qee,sk);V=Ra.minExtend(U,{line:{width:qe}}),G=[Ra.minExtend(Y,{trace:V})]}var ce=he.select(".legendlines").selectAll("path").data(E||R?[G]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?kn.lineGroupStyle:le)}function c(M){var S=uk(M),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,H=M[0],F=H.trace,Y=!N&&!E&&!D&&Jd.hasText(F),U,G;function V(Q,qe,ce,be){var ge=Ra.nestedProperty(F,Q).get(),_e=Ra.isArrayOrTypedArray(ge)&&qe?qe(ge):ge;if(i&&_e&&be!==void 0&&(_e=be),ce){if(_ece[1])return ce[1]}return _e}function B(Q){return H._distinct&&H.index&&Q[H.index]?Q[H.index]:Q[0]}if(N||Y||R){var J={},X={};if(N){J.mc=V("marker.color",B),J.mx=V("marker.symbol",B),J.mo=V("marker.opacity",Ra.mean,[.2,1]),J.mlc=V("marker.line.color",B),J.mlw=V("marker.line.width",Ra.mean,[0,5],xs),J.mld=F._isShape?"solid":V("marker.line.dash",B),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Ra.mean,[2,16],ok);J.ms=ee,X.marker.size=ee}R&&(X.line={width:V("line.width",B,[0,10],sk)}),Y&&(J.tx="Aa",J.tp=V("textposition",B),J.ts=10,J.tc=V("textfont.color",B),J.tf=V("textfont.family",B),J.tw=V("textfont.weight",B),J.ty=V("textfont.style",B),J.tv=V("textfont.variant",B),J.tC=V("textfont.textcase",B),J.tE=V("textfont.lineposition",B),J.tS=V("textfont.shadow",B)),U=[Ra.minExtend(H,J)],G=Ra.minExtend(F,X),G.selectedpoints=null,G.texttemplate=null}var le=Va.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(kn.pointStyle,G,t),N&&(U[0].mrc=3);var he=le.selectAll("g.pointtext").data(Y?U:[]);he.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),he.exit().remove(),he.selectAll("text").call(kn.textPointStyle,G,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=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 F=Va.select(this),Y=S[H[0]].marker,U=u(void 0,Y.line,af,xs);F.attr("d",H[1]).style("stroke-width",U+"px").call(Gn.fill,Y.color),U&&F.call(Gn.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",F=D?E.visible&&E.type===D:$2.traceIs(E,"bar"),Y=Va.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(F?[M]:[]);Y.enter().append("path").classed("legend"+D,!0).attr("d",H).attr("transform",s),Y.exit().remove(),Y.each(function(U){var G=Va.select(this),V=U[0],B=u(V.mlw,R.line,af,xs);G.style("stroke-width",B+"px");var J=V.mcc;if(!a._inHover&&"mc"in V){var X=K2(R),ee=X.mid;ee===void 0&&(ee=(X.max+X.min)/2),J=kn.tryColorscale(R,"")(ee)}var le=J||V.mc||R.color,fe=R.pattern,he=kn.getPatternAttr,Q=fe&&(he(fe.shape,0,"")||he(fe.path,0,""));if(Q){var qe=he(fe.bgcolor,0,null),ce=he(fe.fgcolor,0,null),be=fe.fgopacity,ge=fk(fe.size,8,10),_e=fk(fe.solidity,.5,1),W="legend-"+E.uid;G.call(kn.pattern,"legend",t,W,Q,ge,_e,J,fe.fillmode,qe,ce,be)}else G.call(Gn.fill,le);B&&Gn.stroke(G,V.mlc||N.color)})}function y(M){var S=M[0].trace,D=Va.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&$2.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=Ra.minExtend(S,{marker:{size:i?ok:Ra.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(kn.pointStyle,R,t)}else{var N=u(void 0,S.line,af,xs);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"],F=u(void 0,H.line,af,xs);N.style("stroke-width",F+"px").call(Gn.fill,H.fillcolor),F&&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"],F=u(void 0,H.line,af,xs);N.style("fill","none").call(kn.dashLine,H.line.dash,F),F&&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:$2.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 F=R.marker||{},Y=u($ee(F.line.width,E.pts),F.line,af,xs),U="pieLike",G=Ra.minExtend(R,{marker:{line:{width:Y}}},U),V=Ra.minExtend(E,{trace:G},U);Jee(H,V,G,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 F=Va.select(this),Y=K2(S),U=Y.colorscale,G=Y.reversescale,V=function(ee){if(ee.size()){var le="legendfill-"+S.uid;kn.gradient(ee,t,le,Q2(G,D==="radial"),U,"fill")}},B;if(U){if(!D){var X=U.length;B=H===0?U[G?X-1:0][1]:H===1?U[G?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}F.attr("d",N[0]),B?F.call(Gn.fill,B):F.call(V)})}};function Q2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function uk(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 fk(e,r,t){return e&&Ra.isArrayOrTypedArray(e)?r:e>t?t:e}});var a3=O((M2e,bk)=>{"use strict";var Ka=kr(),Gt=Re(),r3=zt(),bs=gr(),Qd=Bc(),e3=xi(),Ut=Yr(),fv=br(),_s=la(),vk=X2().handleItemClick,hk=X2().handleTitleClick,$t=Z2(),t3=Aa(),gk=t3.LINE_SPACING,lf=t3.FROM_TL,dk=t3.FROM_BR,pk=jM(),jee=j2(),of=sv(),nf=1,ere=/^legend[0-9]*$/;bk.exports=function(r,t){if(t)mk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ka.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(ere)&&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(),r3.autoMargin(e,n);var m=Gt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=Gt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Gt.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(fv.stroke,t.bordercolor).call(fv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Gt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Gt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Ut.font,w.font).text(w.text),Kd(x,_,e,t,nf),!o&&(t.titleclick||t.titledoubleclick)&&nre(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var A=Gt.ensureSingle(m,"rect","scrollbar",function(S){S.attr($t.scrollBarEnterAttrs).call(fv.fill,$t.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Gt.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(F){return F.showlegend});return e._fullData.concat(N).some(function(F){return F.legendgroup===R&&(F.legend||"legend")===n&&F.visible===!0})?1:.5}return bs.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Ka.select(this).call(tre,e,t)}).call(jee,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||Ka.select(this).call(are,e,n)}),Gt.syncOrAsync([r3.previousPromises,function(){return ore(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 De=xe.legend||"legend";var ze=Array.isArray(De)?De.includes(n):De===n;return ze&&xe.visible===!0});x.style("opacity",me?1:.5)}if(!o){var N,H;E?N=S.l+S.w*t.x-lf[jd(t)]*t._width:N=a.width*t.x-lf[jd(t)]*t._width,R?H=S.t+S.h*(1-t.y)-lf[e1(t)]*t._effHeight:H=a.height*(1-t.y)-lf[e1(t)]*t._effHeight;var F=sre(e,n,N,H);if(F)return;if(a.margin.autoexpand){var Y=N,U=H;N=E?Gt.constrain(N,0,a.width-t._width):Y,H=R?Gt.constrain(H,0,a.height-t._effHeight):U,N!==Y&&Gt.log("Constrain "+n+".x to make legend fit inside graph"),H!==U&&Gt.log("Constrain "+n+".y to make legend fit inside graph")}Ut.setTranslate(m,N,H)}if(A.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),b.attr({width:t._width-D,height:G-D,x:D/2,y:D/2}),Ut.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:G-2*D,x:D,y:D}),Ut.setClipUrl(_,i,e),Ut.setRect(A,0,0,0,0),delete t._scrollY}else{var V=Math.max($t.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),B=t._effHeight-V-2*$t.scrollBarMargin,J=t._height-t._effHeight,X=B/J,ee=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ee}),Ut.setClipUrl(_,i,e),ge(ee,V,X),m.on("wheel",function(){ee=Gt.constrain(t._scrollY+Ka.event.deltaY/J*B,0,J),ge(ee,V,X),ee!==0&&ee!==J&&Ka.event.preventDefault()});var le,fe,he,Q=function(oe,me,xe){var De=(xe-me)/X+oe;return Gt.constrain(De,0,J)},qe=function(oe,me,xe){var De=(me-xe)/X+oe;return Gt.constrain(De,0,J)},ce=Ka.behavior.drag().on("dragstart",function(){var oe=Ka.event.sourceEvent;oe.type==="touchstart"?le=oe.changedTouches[0].clientY:le=oe.clientY,he=ee}).on("drag",function(){var oe=Ka.event.sourceEvent;oe.buttons===2||oe.ctrlKey||(oe.type==="touchmove"?fe=oe.changedTouches[0].clientY:fe=oe.clientY,ee=Q(he,le,fe),ge(ee,V,X))});A.call(ce);var be=Ka.behavior.drag().on("dragstart",function(){var oe=Ka.event.sourceEvent;oe.type==="touchstart"&&(le=oe.changedTouches[0].clientY,he=ee)}).on("drag",function(){var oe=Ka.event.sourceEvent;oe.type==="touchmove"&&(fe=oe.changedTouches[0].clientY,ee=qe(he,le,fe),ge(ee,V,X))});_.call(be)}function ge(oe,me,xe){t._scrollY=e._fullLayout[n]._scrollY=oe,Ut.setTranslate(_,0,-oe),Ut.setRect(A,t._width,$t.scrollBarMargin+oe*xe,$t.scrollBarWidth,me),y.select("rect").attr("y",D+oe)}if(e._context.edits.legendPosition){var _e,W,j,Z;m.classed("cursor-move",!0),e3.init({element:m.node(),gd:e,prepFn:function(oe){if(oe.target!==A.node()){var me=Ut.getTranslate(m);j=me.x,Z=me.y}},moveFn:function(oe,me){if(j!==void 0&&Z!==void 0){var xe=j+oe,De=Z+me;Ut.setTranslate(m,xe,De),_e=e3.align(xe,t._width,S.l,S.l+S.w,t.xanchor),W=e3.align(De+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(_e!==void 0&&W!==void 0){var oe={};oe[n+".x"]=_e,oe[n+".y"]=W,bs.call("_guiRelayout",e,oe)}},clickFn:function(oe,me){var xe=l.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return me.clientX>=De.left&&me.clientX<=De.right&&me.clientY>=De.top&&me.clientY<=De.bottom});xe.size()>0&&xk(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 xk(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),bs.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&&vk(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&&vk(t,e,r,s)}}function tre(e,r,t){var a=of.getId(t),n=e.data()[0][0],i=n.trace,l=bs.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=Gt.templateString(u,i._meta))));var c=Gt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Ut.font,f).text(o?yk(u,s):u);var h=t.indentation+t.itemwidth+$t.itemGap*2;_s.positionText(c,h,0),o?c.call(_s.makeEditable,{gd:r,text:u}).call(Kd,e,r,t).on("edit",function(d){this.text(yk(d,s)).call(Kd,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?bs.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):bs.call("_guiRestyle",r,m,i.index)}):Kd(c,e,r,t)}function yk(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 are(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Gt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(fv.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)),xk(r,o,e,i,Ka.event)}}))}function nre(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&bs.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Gt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(fv.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:Ka.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&&hk(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&&hk(r,t,t.titledoubleclick))}))}function Kd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),_s.convertToTspans(e,t,function(){ire(r,t,a,n)})}function ire(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=of.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===nf?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*gk,h,d;if(o){var p=Ut.bBox(o);h=p.height,d=p.width,a===nf?Ut.setTranslate(l,u,u+h*.75):Ut.setTranslate(l,0,h*.25)}else{var m="."+s+(a===nf?"title":"")+"text",y=e.select(m),b=_s.lineCount(y),_=y.node();if(h=c*b,d=_?Ut.bBox(_).width:0,a===nf)t.title.side==="left"&&(d+=$t.itemGap*2),_s.positionText(y,u+$t.titlePad,u+c);else{var w=$t.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=$t.itemGap,d-=t.indentation+t.itemwidth),_s.positionText(y,w,-c*((b-1)/2-.3))}}a===nf?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function lre(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 ore(e,r,t,a,n){var i=e._fullLayout,l=of.getId(a);a||(a=i[l]);var o=i._size,s=of.isVertical(a),u=of.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=$t.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=lre(a);if(s)t.each(function(oe){var me=oe[0].height;Ut.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){Ut.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",F=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:F?Y&&N==="right"?o.r+o.w:U:o.w,2*p);var G=0,V=0;t.each(function(oe){var me=$d(oe,a,p);G=Math.max(G,me),V+=me}),E=null;var B=0;if(u){var J=0,X=0,ee=0;r.each(function(){var oe=0,me=0;Ka.select(this).selectAll("g.traces").each(function(De){var ze=$d(De,a,p),Se=De[0].height;Ut.setTranslate(this,R[0],R[1]+c+d+Se/2+me),me+=Se,oe=Math.max(oe,ze),x[De[0].trace.legendgroup]=oe});var xe=oe+d;X>0&&xe+c+X>a._maxWidth?(B=Math.max(B,X),X=0,ee+=J+w,J=me):J=Math.max(J,me),Ut.setTranslate(this,X,ee),X+=xe}),a._width=Math.max(B,X)+c,a._height=ee+J+m}else{var le=t.size(),fe=V+h+(le-1)*d=a._maxWidth&&(B=Math.max(B,ce),Q=0,qe+=he,a._height+=he,he=0),Ut.setTranslate(this,R[0]+c+Q,R[1]+c+qe+me/2+d),ce=Q+xe+d,Q+=De,he=Math.max(he,me)}),fe?(a._width=Q+h,a._height=he+m):(a._width=Math.max(B,ce)+h,a._height+=he+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+$t.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+$t.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,ge=be.legendText||be.legendPosition;t.each(function(oe){var me=Ka.select(this).select("."+l+"toggle"),xe=oe[0].height,De=oe[0].trace.legendgroup,ze=$d(oe,a,p);u&&De!==""&&(ze=x[De]);var Se=ge?p:E||ze;!s&&!f&&(Se+=d/2),Ut.setRect(me,0,-xe/2,Se,xe)});var _e=n.select("."+l+"titletext");_e.node()&&rre(_e,a,c);var W=n.select("."+l+"titletoggle");if(W.size()&&_e.node()){var j=_e.attr("x")||0,Z=$t.titlePad;Ut.setRect(W,j-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function sre(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 r3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*lf[l],r:i._width*dk[l],b:i._effHeight*dk[o],t:i._effHeight*lf[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 Gt.isRightAnchor(e)?"right":Gt.isCenterAnchor(e)?"center":"left"}function e1(e){return Gt.isBottomAnchor(e)?"bottom":Gt.isMiddleAnchor(e)?"middle":"top"}});var o3=O(l3=>{"use strict";var ws=kr(),gl=zr(),_k=Fn(),St=Re(),ure=St.pushUnique,n3=St.strTranslate,fre=St.strRotate,cre=Bc(),Un=la(),vre=WM(),Xi=Yr(),sa=br(),r1=xi(),Zi=Zr(),hre=ia().zindexSeparator,uf=gr(),bi=Oi(),Ts=qc(),dre=G2(),pre=a3(),Sk=Ts.YANGLE,i3=Math.PI*Sk/180,mre=1/Math.sin(i3),yre=Math.cos(i3),gre=Math.sin(i3),xt=Ts.HOVERARROWSIZE,Br=Ts.HOVERTEXTPAD,wk={box:!0,ohlc:!0,violin:!0,candlestick:!0},xre={scatter:!0,scattergl:!0,splom:!0};function Tk(e,r){return e.distance-r.distance}l3.hover=function(r,t,a,n){r=St.getGraphDiv(r);var i=t.target;St.throttle(r._fullLayout._uid+Ts.HOVERID,Ts.HOVERMINTIME,function(){bre(r,t,a,n,i)})};l3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Rk(n),l=zk(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(uf.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},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||sa.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=Dk(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||sa.background,container:ws.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=j+M[0]._offset,r.pointerY=Z+S[0]._offset,"xval"in r?U=bi.flat(i,r.xval):U=bi.p2c(M,j),"yval"in r?G=bi.flat(i,r.yval):G=bi.p2c(S,Z),!gl(U[0])||!gl(G[0]))return St.warn("Fx.hover failed",r,e),r1.unhoverRaw(e,r)}var xe=1/0;function De(vr,ft){for(B=0;Bce&&(F.splice(0,ce),xe=F[0].distance),c&&H!==0&&F.length===0){qe.distance=H,qe.index=!1;var jr=X._module.hoverPoints(qe,he,Q,"closest",{hoverLayer:o._hoverlayer});if(jr&&(jr=jr.filter(function(Rt){return Rt.spikeDistance<=H})),jr&&jr.length){var ga,En=jr.filter(function(Rt){return Rt.xa.showspikes&&Rt.xa.spikesnap!=="hovered data"});if(En.length){var ta=En[0];gl(ta.x0)&&gl(ta.y0)&&(ga=Se(ta),(!be.vLinePoint||be.vLinePoint.spikeDistance>ga.spikeDistance)&&(be.vLinePoint=ga))}var Ni=jr.filter(function(Rt){return Rt.ya.showspikes&&Rt.ya.spikesnap!=="hovered data"});if(Ni.length){var Pn=Ni[0];gl(Pn.x0)&&gl(Pn.y0)&&(ga=Se(Pn),(!be.hLinePoint||be.hLinePoint.spikeDistance>ga.spikeDistance)&&(be.hLinePoint=ga))}}}}}De();function ze(vr,ft,$r){for(var dt=null,Pt=1/0,At,jr=0;jrvr.trace.index===Me.trace.index):F=[Me];var Ce=F.length,He=Ck("x",Me,o),Je=Ck("y",Me,o);De(He,Je);var Ge=[],Xe={},lr=0,tr=function(vr){var ft=wk[vr.trace.type]?Lk(vr):vr.trace.index;if(!Xe[ft])lr++,Xe[ft]=lr,Ge.push(vr);else{var $r=Xe[ft]-1,dt=Ge[$r];$r>0&&Math.abs(vr.distance)Ce-1;Ke--)tr(F[Ke]);F=Ge,Pe()}var Fe=e._hoverdata,ne=[],se=Rk(e),Le=zk(e);for(let vr of F){var Ee=bi.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var ar=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(ar=vr.cd[vr.index].ht),vr.hovertemplate=ar||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var cr=vr.x0+vr.xa._offset,sr=vr.x1+vr.xa._offset,Mr=vr.y0+vr.ya._offset,Or=vr.y1+vr.ya._offset,et=Math.min(cr,sr),ut=Math.max(cr,sr),kt=Math.min(Mr,Or),_t=Math.max(Mr,Or);Ee.bbox={x0:et+Le,x1:ut+Le,y0:kt+se,y1:_t+se}}vr.eventData=[Ee],ne.push(Ee)}e._hoverdata=ne;var Ht=h==="y"&&(Y.length>1||F.length>1)||h==="closest"&&ge&&F.length>1,ra=sa.combine(o.plot_bgcolor||sa.background,o.paper_bgcolor),Ia=Dk(F,{gd:e,hovermode:h,rotateLabels:Ht,bgColor:ra,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ma=Ia.hoverLabels;if(bi.isUnifiedHover(h)||(wre(ma,Ht,o,Ia.commonLabelBoundingBox),Pk(ma,Ht,o._invScaleX,o._invScaleY)),n&&n.tagName){var ya=uf.getComponentMethod("annotations","hasClickToShow")(e,ne);vre(ws.select(n),ya?"pointer":"")}!n||a||!Mre(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:S,xvals:U,yvals:G}))}function Lk(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 _re=/([\s\S]*)<\/extra>/;function Dk(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||Ts.HOVERFONT,c=r.fontSize||Ts.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),Me.attr("d","M"+(Ke-Le)+",0L"+(Ke-Le+xt)+","+ne+xt+"H"+se+"v"+ne+(Br*2+tr.height)+"H"+-se+"V"+ne+xt+"H"+(Ke-Le-xt)+"Z"),Ke=Le,B.minX=Ke-se,B.maxX=Ke+se,w.side==="top"?(B.minY=Fe-(Br*2+tr.height),B.maxY=Fe-Br):(B.minY=Fe+Br,B.maxY=Fe+(Br*2+tr.height))}else{var Ee,ar,cr;x.side==="right"?(Ee="start",ar=1,cr="",Ke=w._offset+w._length):(Ee="end",ar=-1,cr="-",Ke=w._offset),Fe=x._offset+(_.y0+_.y1)/2,Ce.attr("text-anchor",Ee),Me.attr("d","M0,0L"+cr+xt+","+xt+"V"+(Br+tr.height/2)+"h"+cr+(Br*2+tr.width)+"V-"+(Br+tr.height/2)+"H"+cr+xt+"V-"+xt+"Z"),B.minY=Fe-(Br+tr.height/2),B.maxY=Fe+(Br+tr.height/2),x.side==="right"?(B.minX=Ke+xt,B.maxX=Ke+xt+(Br*2+tr.width)):(B.minX=Ke-xt-(Br*2+tr.width),B.maxX=Ke-xt);var sr=tr.height/2,Mr=E-tr.top-sr,Or="clip"+a._uid+"commonlabel"+x._id,et;if(KeMe.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?St.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,he={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"}},Q={font:X};dre(he,Q,t._fullData);var qe=Q.legend;qe.entries=[];for(var ce=0;ce=0?we=Pe:Oe+me=0?we=Oe:Ue+me=0?$e=Be:We+xe=0?$e=We:ie+xe=0,(Ne.idealAlign==="top"||!_t)&&Ht?(cr-=Mr/2,Ne.anchor="end"):_t?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,_t=ar+sr/2+kt<=R,Ht=ar-sr/2-kt>=0,(Ne.idealAlign==="left"||!_t)&&Ht)ar-=sr/2,Ne.anchor="end";else if(_t)ar+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var ra=kt/2,Ia=ar+ra-R,ma=ar-ra;Ia>0&&(ar-=Ia),ma<0&&(ar+=-ma)}Ne.crossPos=ar}Fe.attr("text-anchor",Ne.anchor),se&&ne.attr("text-anchor",Ne.anchor),Me.attr("transform",n3(ar,cr)+(i?fre(Sk):""))}),{hoverLabels:hr,commonLabelBoundingBox:B}}function Ak(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=St.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),(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=St.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(_re,(p,m)=>(l=qk(m,e.nameLength),""))}return[o,l]}function wre(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 G=U[n],V=U[i],B=G._id.charAt(0)==="x",J=G.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=Ek(U,r),fe=U.anchor,he=fe==="end"?-1:1,Q,qe;if(fe==="middle")Q=U.crossPos+(B?y(le.y-U.by/2):m(U.bx/2+U.tx2width/2)),qe=Q+(B?y(U.by):m(U.bx));else if(B)Q=U.crossPos+y(xt+le.y)-y(U.by/2-xt),qe=Q+y(U.by);else{var ce=m(he*xt+le.x),be=ce+m(he*U.bx);Q=U.crossPos+Math.min(ce,be),qe=U.crossPos+Math.max(ce,be)}B?d!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(Q,d)>1&&(V.side==="left"?(X=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(qe,h)-Math.max(Q,c)>1&&(V.side==="top"?(X=V._mainLinePosition,ee=t.height):ee=V._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(B?mre:1)/2,pmin:X,pmax:ee}]}),u.sort(function(U,G){return U[0].posref-G[0].posref||o*(G[0].traceIndex-U[0].traceIndex)});var b,_,w,x,A,k,M;function S(U){var G=U[0],V=U[U.length-1];if(_=G.pmin-G.pos-G.dp+G.size,w=V.pos+V.dp+V.size-G.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;xG.pmax&&B++;for(x=U.length-1;x>=0&&!(B<=0);x--)k=U[x],k.pos>G.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>G.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 F=H[A],Y=F.datum;Y.offset=F.dp,Y.del=F.del}}}function Ek(e,r){var t=0,a=e.offset;return r&&(a*=-gre,t=e.offset*yre),{x:t,y:a}}function Tre(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(xt+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 Pk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=ws.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Tre(l),h=Ek(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*xt+d)+","+i(xt+p)+"v"+i(l.by/2-xt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*xt+d)+"V"+i(p-xt)+"Z":b="M"+n(f*xt+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+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(Un.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Un.positionText,n(c.text2ShiftX+c.alignShift*Br+d),i(p+l.ty0-l.by/2+Br)),o.select("rect").call(Xi.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 Are(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||gl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=St.castOption(n,t,h);return l(p)?p:St.extractOption({},a,"",d)}:function(h,d){return St.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=St.constrain(e.x0,0,e.xa._length),e.x1=St.constrain(e.x1,0,e.xa._length),e.y0=St.constrain(e.y0,0,e.ya._length),e.y1=St.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Zi.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:Zi.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=Zi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Zi.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=Zi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Zi.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 Mk(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=sa.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=_k.readability(h.color,c)<1.5?sa.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,x=Zi.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":Xi.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=_k.readability(D.color,c)<1.5?sa.contrast(c):D.color,F=u.spikemode,Y=u.spikethickness,U=u.spikecolor||H,G=Zi.getPxPosition(e,u),V,B;if(F.indexOf("toaxis")!==-1||F.indexOf("across")!==-1){if(F.indexOf("toaxis")!==-1&&(V=G,B=R),F.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)),V=i.t+(1-X)*i.h,B=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:B,"stroke-width":Y,stroke:U,"stroke-dasharray":Xi.dashStyle(u.spikedash,Y)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:B,"stroke-width":Y+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}F.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:G-(u.side!=="top"?Y:-Y),r:Y,fill:U}).classed("spikeline",!0)}}}function Mre(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 kk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qk(e,r){return Un.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function kre(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,zk=e=>e.offsetLeft+e.clientLeft;function sf(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=St.apply3DTransform(t._invTransform)(n,i),u=St.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((q2e,Nk)=>{"use strict";var qre=Re(),Cre=br(),Sre=Oi().isUnifiedHover;Nk.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&&Sre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Cre.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),qre.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Ik=O((C2e,Fk)=>{"use strict";var Lre=Re(),Dre=t1(),Ere=Mu();Fk.exports=function(r,t){function a(n,i){return Lre.coerce(r,t,Ere,n,i)}Dre(r,t,a)}});var Ok=O((S2e,Bk)=>{"use strict";var Hk=Re(),Pre=Lc(),Rre=t1();Bk.exports=function(r,t,a,n){function i(o,s){return Hk.coerce(r,t,Pre,o,s)}var l=Hk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Rre(r,t,i,l)}});var s3=O((L2e,Yk)=>{"use strict";var zre=Re(),Nre=Mu();Yk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:zre.coerce(r,t,Nre,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var Uk=O((D2e,Gk)=>{"use strict";var Vk=Re(),Fre=Mu(),Ire=s3(),Hre=t1();Gk.exports=function(r,t){function a(f,c){return Vk.coerce(r,t,Fre,f,c)}var n=Ire(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),Hre(r,t,a),Vk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Zk=O((E2e,Xk)=>{"use strict";var u3=Re(),Wk=gr();Xk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return u3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Ore=gr(),Yre=o3().hover;Jk.exports=function(r,t,a){var n=Ore.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&Yre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var _i=O((R2e,jk)=>{"use strict";var Vre=kr(),a1=Re(),Gre=xi(),cv=Oi(),Kk=Mu(),Qk=o3();jk.exports={moduleType:"component",name:"fx",constants:qc(),schema:{layout:Kk},attributes:Lc(),layoutAttributes:Kk,supplyLayoutGlobalDefaults:Ik(),supplyDefaults:Ok(),supplyLayoutDefaults:Uk(),calc:Zk(),getDistanceFunction:cv.getDistanceFunction,getClosest:cv.getClosest,inbox:cv.inbox,quadrature:cv.quadrature,appendArrayPointValue:cv.appendArrayPointValue,castHoverOption:Wre,castHoverinfo:Xre,hover:Qk.hover,unhover:Gre.unhover,loneHover:Qk.loneHover,loneUnhover:Ure,click:$k()};function Ure(e){var r=a1.isD3Selection(e)?e:Vre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Wre(e,r,t){return a1.castOption(e,r,"hoverlabel."+t)}function Xre(e,r,t){function a(n){return a1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return a1.castOption(e,t,"hoverinfo",a)}});var ff=O(xl=>{"use strict";xl.selectMode=function(e){return e==="lasso"||e==="select"};xl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};xl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};xl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};xl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};xl.selectingOrDrawing=function(e){return xl.freeMode(e)||xl.rectMode(e)}});var n1=O((N2e,eq)=>{"use strict";eq.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((F2e,rq)=>{"use strict";rq.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((I2e,tq)=>{"use strict";var l1=32;tq.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((H2e,nq)=>{"use strict";var Zre=Re().strTranslate;function aq(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 Jre(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 $re(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return aq(e,t[r])}}function Kre(e){return Zre(e.xaxis._offset,e.yaxis._offset)}nq.exports={p2r:aq,r2p:Jre,axValue:$re,getTransform:Kre}});var lo=O(bl=>{"use strict";var Qre=Kg(),oq=o1(),cf=oq.CIRCLE_SIDES,f3=oq.SQRT2,sq=s1(),iq=sq.p2r,lq=sq.r2p,jre=[0,3,4,5,6,1,2],ete=[0,3,4,1,2];bl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var uq=Xt(),dq=ff(),rte=dq.drawMode,tte=dq.openMode,vf=o1(),fq=vf.i000,cq=vf.i090,vq=vf.i180,hq=vf.i270,ate=vf.cos45,nte=vf.sin45,pq=s1(),f1=pq.p2r,oo=pq.r2p,ite=Kl(),lte=ite.clearOutline,c1=lo(),ote=c1.readPaths,ste=c1.writePaths,ute=c1.ellipseOver,fte=c1.fixDatesForPaths;function cte(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(!rte(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var vte=ff(),hte=vte.selectMode,dte=Kl(),pte=dte.clearOutline,c3=lo(),mte=c3.readPaths,yte=c3.writePaths,gte=c3.fixDatesForPaths;gq.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(!hte(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";xq.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 uo=O(qa=>{"use strict";var Ji=hv(),bq=Re(),so=Zr();qa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};qa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};qa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};qa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};qa.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ji.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ji.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};qa.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=qa.shapePositionToRange(r);l=function(s){var u=_l(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=qa.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};qa.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=qa.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};qa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};qa.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}};qa.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}};qa.getPathString=function(e,r){let t=r.type,a=so.getRefType(r.xref),n=so.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 F;if(E)if(R==="domain")H?F=function(Y){return E._offset+E._length*(1-Y)}:F=function(Y){return E._offset+E._length*Y};else{let Y=qa.shapePositionToRange(E);F=function(U){return E._offset+E.r2p(Y(U,!0))},N==="path"&&E.type==="date"&&(F=qa.decodeDate(F))}else H?F=function(Y){return i.t+i.h*(1-Y)}:F=function(Y){return i.l+i.w*Y};return F}if(a==="array"?(h=[],l=r.xref.map(function(E){return so.getFromId(e,E)}),h=r.xref.map(function(E,R){return _(l[R],so.getRefType(E),t,!1)})):(l=so.getFromId(e,r.xref),h=_(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(E){return so.getFromId(e,E)}),d=r.yref.map(function(E,R){return _(o[R],so.getRefType(E),t,!0)})):(o=so.getFromId(e,r.yref),d=_(o,n,t,!0)),t==="path")return xte(r,h,d);if(a==="array")s=_l(l[0],r.x0shift),u=_l(l[1],r.x1shift),p=h[0](r.x0)+s,m=h[1](r.x1)+u;else if(s=_l(l,r.x0shift),u=_l(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=_l(o[0],r.y0shift),c=_l(o[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=_l(o,r.y0shift),c=_l(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 xte(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(Ji.segmentRE,function(h){var d=0,p=h.charAt(0),m=Ji.paramIsX[p],y=Ji.paramIsY[p],b=Ji.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(Ji.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.*/,""),bq.log("Ignoring extra params in segment "+h)),_&&f++,w&&c++,p+k})}function _l(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 d3=O((U2e,Tq)=>{"use strict";var bte=Re(),$i=Zr(),_q=la(),wq=Yr(),_te=lo().readPaths,h3=uo(),wte=h3.getPathString,dv=zh(),Tte=Aa().FROM_TL;Tq.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=$i.getFromId(r,a.xref),s=$i.getFromId(r,a.yref);let X=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in dv){var f=typeof dv[u]=="function",c=!X||dv.simpleXVariables.includes(u),h=!ee||dv.simpleYVariables.includes(u);if(f&&c&&h){var d=dv[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=bte.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=wte(r,a),S=_te(M,r);w=1/0,A=1/0,x=-1/0,k=-1/0;for(var D=0;D=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Mte(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 kte=Re(),qte=kte.strTranslate,Aq=xi(),qq=ff(),Cte=qq.drawMode,Cq=qq.selectMode,Sq=gr(),Mq=br(),h1=o1(),Ste=h1.i000,Lte=h1.i090,Dte=h1.i180,Ete=h1.i270,Pte=Kl(),Lq=Pte.clearOutlineControllers,m3=lo(),pv=m3.pointsOnRectangle,p3=m3.pointsOnEllipse,Rte=m3.writePaths,zte=v1().newShapes,Nte=v1().createShapeObj,Fte=v3(),Ite=d3();Dq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(p3(r[0])||pv(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=zte(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Fte(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&Sq.call((G||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Cte(f),h=Cq(f);(c||h)&&(i._fullLayout._outlining=!0),Lq(i),t.attr("d",Rte(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Hte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=Nte(t,a,a.dragmode);Ite(i,"label-temp",x,w)}function A(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,V){if(r.length){var B=b[m][y][1],J=b[m][y][2],X=r[m],ee=X.length;if(pv(X)){var le=G,fe=V;if(a.isActiveSelection){var he=kq(X,y);he[1]===X[y][1]?fe=0:le=0}for(var Q=0;Q1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,l(),o())}}function D(G,V){if(G===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var B=r[m];!pv(B)&&!p3(B)&&S()}}function E(G){d=[];for(var V=0;V{"use strict";var Ote=kr(),Nq=gr(),g3=Re(),As=Zr(),Yte=lo().readPaths,Vte=d1(),m1=d3(),Fq=Kl().clearOutlineControllers,y3=br(),y1=Yr(),Gte=lt().arrayEditor,Eq=xi(),Pq=no(),Ms=hv(),fn=uo(),x3=fn.getPathString;Bq.exports={draw:b3,drawOne:Iq,eraseActiveShape:Zte,drawLabel:m1};function b3(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;nAs.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 Wte(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=Ote.select(r.node().parentNode),H=As.getFromId(e,t.xref),F=As.getRefType(t.xref),Y=As.getFromId(e,t.yref),U=As.getRefType(t.yref),G=t.x0shift,V=t.x1shift,B=t.y0shift,J=t.y1shift,X=function(ze,Se){var Ie=fn.getDataToPixel(e,H,Se,!1,F);return Ie(ze)},ee=function(ze,Se){var Ie=fn.getDataToPixel(e,Y,Se,!0,U);return Ie(ze)},le=fn.getPixelToData(e,H,!1,F),fe=fn.getPixelToData(e,Y,!0,U),he=ce(),Q={element:he.node(),gd:e,prepFn:_e,doneFn:W,clickFn:j},qe;Eq.init(Q),he.node().onmousemove=ge;function ce(){return f?be():r}function be(){var ze=10,Se=Math.max(t.line.width,ze),Ie=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ie.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Se,"stroke-opacity":"0"});var Be={"fill-opacity":"0"},We=Math.max(Se/2,ze);return Ie.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,G),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,B),r:We}).style(Be).classed("cursor-grab",!0),Ie.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,J),r:We}).style(Be).classed("cursor-grab",!0),Ie}function ge(ze){if(p1(e)){qe=null;return}if(f)ze.target.tagName==="path"?qe="move":qe=ze.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Se=Q.element.getBoundingClientRect(),Ie=Se.right-Se.left,Be=Se.bottom-Se.top,We=ze.clientX-Se.left,Pe=ze.clientY-Se.top,Oe=!c&&Ie>l&&Be>o&&!ze.shiftKey?Eq.getCursor(We/Ie,1-Pe/Be):"move";Pq(r,Oe),qe=Oe.split("-")[0]}}function _e(ze){p1(e)||(s&&(b=X(t.xanchor)),u&&(_=ee(t.yanchor)),t.type==="path"?R=t.path:(d=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)),dy?(w=p,M="y0",x=y,S="y1"):(w=y,M="y1",x=p,S="y0"),ge(ze),me(n,t),De(r,t,e),Q.moveFn=qe==="move"?Z:oe,Q.altKey=ze.altKey)}function W(){p1(e)||(Pq(r),xe(n),Hq(r,e,t),Nq.call("_guiRelayout",e,i.getUpdateObj()))}function j(){p1(e)||xe(n)}function Z(ze,Se){if(t.type==="path"){var Ie=function(Pe){return Pe},Be=Ie,We=Ie;s?h("xanchor",t.xanchor=le(b+ze)):(Be=function(Oe){return le(X(Oe)+ze)},H&&H.type==="date"&&(Be=fn.encodeDate(Be))),u?h("yanchor",t.yanchor=fe(_+Se)):(We=function(Oe){return fe(ee(Oe)+Se)},Y&&Y.type==="date"&&(We=fn.encodeDate(We))),h("path",t.path=Rq(R,Be,We))}else s?h("xanchor",t.xanchor=le(b+ze)):(h("x0",t.x0=le(d+ze)),h("x1",t.x1=le(m+ze))),u?h("yanchor",t.yanchor=fe(_+Se)):(h("y0",t.y0=fe(p+Se)),h("y1",t.y1=fe(y+Se)));r.attr("d",x3(e,t)),me(n,t),m1(e,a,t,N)}function oe(ze,Se){if(c){var Ie=function(Xe){return Xe},Be=Ie,We=Ie;s?h("xanchor",t.xanchor=le(b+ze)):(Be=function(lr){return le(X(lr)+ze)},H&&H.type==="date"&&(Be=fn.encodeDate(Be))),u?h("yanchor",t.yanchor=fe(_+Se)):(We=function(lr){return fe(ee(lr)+Se)},Y&&Y.type==="date"&&(We=fn.encodeDate(We))),h("path",t.path=Rq(R,Be,We))}else if(f){if(qe==="resize-over-start-point"){var Pe=d+ze,Oe=u?p-Se:p+Se;h("x0",t.x0=s?Pe:le(Pe)),h("y0",t.y0=u?Oe:fe(Oe))}else if(qe==="resize-over-end-point"){var Ue=m+ze,ie=u?y-Se:y+Se;h("x1",t.x1=s?Ue:le(Ue)),h("y1",t.y1=u?ie:fe(ie))}}else{var we=function(Xe){return qe.indexOf(Xe)!==-1},$e=we("n"),hr=we("s"),Ne=we("w"),Me=we("e"),Ce=$e?w+Se:w,He=hr?x+Se:x,Je=Ne?A+ze:A,Ge=Me?k+ze:k;u&&($e&&(Ce=w-Se),hr&&(He=x-Se)),(!u&&He-Ce>o||u&&Ce-He>o)&&(h(M,t[M]=u?Ce:fe(Ce)),h(S,t[S]=u?He:fe(He))),Ge-Je>l&&(h(D,t[D]=s?Je:le(Je)),h(E,t[E]=s?Ge:le(Ge)))}r.attr("d",x3(e,t)),me(n,t),m1(e,a,t,N)}function me(ze,Se){(s||u)&&Ie();function Ie(){var Be=Se.type!=="path",We=ze.selectAll(".visual-cue").data([0]),Pe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Oe=X(s?Se.xanchor:g3.midRange(Be?[Se.x0,Se.x1]:fn.extractPathCoords(Se.path,Ms.paramIsX))),Ue=ee(u?Se.yanchor:g3.midRange(Be?[Se.y0,Se.y1]:fn.extractPathCoords(Se.path,Ms.paramIsY)));if(Oe=fn.roundPositionForSharpStrokeRendering(Oe,Pe),Ue=fn.roundPositionForSharpStrokeRendering(Ue,Pe),s&&u){var ie="M"+(Oe-1-Pe)+","+(Ue-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var we="M"+(Oe-1-Pe)+","+(Ue-9-Pe)+"v18 h2 v-18 Z";We.attr("d",we)}else{var $e="M"+(Oe-9-Pe)+","+(Ue-1-Pe)+"h18 v2 h-18 Z";We.attr("d",$e)}}}function xe(ze){ze.selectAll(".visual-cue").remove()}function De(ze,Se,Ie){var Be=Se.xref,We=Se.yref,Pe=As.getFromId(Ie,Be),Oe=As.getFromId(Ie,We),Ue="";Be!=="paper"&&!Pe.autorange&&(Ue+=Be),We!=="paper"&&!Oe.autorange&&(Ue+=We),y1.setClipUrl(ze,Ue?"clip"+Ie._fullLayout._uid+Ue:null,Ie)}}function Rq(e,r,t){return e.replace(Ms.segmentRE,function(a){var n=0,i=a.charAt(0),l=Ms.paramIsX[i],o=Ms.paramIsY[i],s=Ms.numParams[i],u=a.slice(1).replace(Ms.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function Xte(e,r){if(g1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){zq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=zq,b3(e)}}}function zq(e){if(g1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Fq(e),delete e._fullLayout._activeShapeIndex,b3(e))}}function Zte(e){if(g1(e)){Fq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wn=gr(),Oq=zt(),Yq=Xt(),Gr=i1(),Jte=x1().eraseActiveShape,b1=Re(),Ir=b1._,Ur=Jq.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"};b1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wn.call("downloadImage",e,t).then(function(a){b1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){b1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.disk,click:function(e){Oq.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.pencil,click:function(e){Oq.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Ga};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Ga};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Ga};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Ga};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Ga};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Ga};Ur.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Ga};Ur.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Ga};Ur.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Ga};Ur.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Gr.eraseshape,click:Jte};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Ga};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Ga};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Ga};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Ga};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:Ga};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:Ga};function Ga(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Yq.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 $q=T3(),Qte=Object.keys($q),Kq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Qq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Kq),df=[],jte=function(e){if(Qq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();df.indexOf(r)===-1&&df.push(r),df.indexOf(t)===-1&&df.push(t)}};Qte.forEach(function(e){jte($q[e])});df.sort();jq.exports={DRAW_MODES:Kq,backButtons:Qq,foreButtons:df}});var M3=O((K2e,eC)=>{"use strict";var $2e=A3();eC.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 tC=O((Q2e,rC)=>{"use strict";var eae=Re(),mv=br(),rae=lt(),tae=M3();rC.exports=function(r,t){var a=r.modebar||{},n=rae.newContainer(t,"modebar");function i(o,s){return eae.coerce(a,n,tae,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 lC=O((j2e,iC)=>{"use strict";var k3=kr(),aae=zr(),w1=Re(),aC=i1(),nae=mh().version,iae=new DOMParser;function nC(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ki=nC.prototype;Ki.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(),w1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ki.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)})};Ki.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ki.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&&k3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||aC.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ki.createIcon=function(e){var r=aae(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=iae.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ki.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=k3.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:w1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ki.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var sae=Xt(),oC=wn(),q3=gr(),uae=Oi().isUnifiedHover,fae=lC(),T1=T3(),cae=A3().DRAW_MODES,vae=Re().extendDeep;sC.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=gae(i):!a.displayModeBar&&a.watermark?l=[]:l=hae(r),n?n.update(r,l):t._modeBar=fae(r,l)};function hae(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,B){if(typeof B=="string"){if(B.toLowerCase()===V.toLowerCase())return!0}else{var J=B.name,X=B._cat||B.name;if(J===V||X===V.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(V){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"),(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"]),pae(t)&&N.push("select2d","lasso2d");var H=[],F=function(V){H.indexOf(V)===-1&&E.indexOf(V)!==-1&&H.push(V)};if(Array.isArray(o)){for(var Y=[],U=0;U{"use strict";fC.exports={moduleType:"component",name:"modebar",layoutAttributes:M3(),supplyLayoutDefaults:tC(),manage:uC()}});var S3=O((t3e,cC)=>{"use strict";var xae=Aa().FROM_BL;cC.exports=function(r,t,a){a===void 0&&(a=xae[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 qs=O(yv=>{"use strict";var ks=Re(),L3=Qc(),wi=Xt().id2name,bae=_n(),vC=S3(),_ae=Dd(),wae=wt().ALMOST_EQUAL,Tae=Aa().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 Mae(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lwae*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 M1=kr(),Ua=gr(),qn=zt(),Xn=Re(),P3=la(),R3=n1(),gv=br(),pf=Yr(),mC=$c(),_C=C3(),xv=Zr(),wl=Aa(),wC=qs(),kae=wC.enforce,qae=wC.clean,yC=Qc().doAutoRange,TC="start",Cae="middle",AC="end",Sae=ia().zindexSeparator;ua.layoutStyles=function(e){return Xn.syncOrAsync([qn.doAutoMargin,Dae],e)};function Lae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Dae(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(pf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ua.drawMainTitle(e),_C.manage(e),!r._has("cartesian"))return qn.previousPromises(e);function c(_e,W,j){var Z=_e._lw/2;if(_e._id.charAt(0)==="x"){if(W){if(j==="top")return W._offset-a-Z}else return t.t+t.h*(1-(_e.position||0))+Z%1;return W._offset+W._length+a+Z}if(W){if(j==="right")return W._offset+W._length+a+Z}else return t.l+t.w*(_e.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){zae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:bC(r.yanchor)}).call(P3.positionText,l,i);var f=(r.text.match(P3.BR_TAG_ALL)||[]).length;if(f){var c=wl.LINE_SPACING*f+wl.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=M1.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,m=p+mC.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:m,"text-anchor":a,dy:bC(r.yanchor)}).call(P3.positionText,l,m)}}}};function Eae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Xn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Xn.isTopAnchor(r)&&t==="t"||Xn.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=Pae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function zae(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"&&Eae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),qn.allowAutoMargin(e,n),qn.autoMargin(e,n,o)}function Nae(e,r){var t=e.title,a=e._size,n=0;switch(r===TC?n=t.pad.l:r===AC&&(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 Fae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===wl.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 bC(e){return e==="top"?wl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":wl.MID_SHIFT+"em"}function Iae(e){var r=e.title,t=Cae;return Xn.isRightAnchor(r)?t=AC:Xn.isLeftAnchor(r)&&(t=TC),t}function Hae(e){var r=e.title,t="0em";return Xn.isTopAnchor(r)?t=wl.CAP_SHIFT+"em":Xn.isMiddleAnchor(r)&&(t=wl.MID_SHIFT+"em"),t}ua.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Bae=lo().readPaths,Oae=d1(),MC=Kl().clearOutlineControllers,z3=br(),kC=Yr(),Yae=lt().arrayEditor,qC=uo(),Vae=qC.getPathString;SC.exports={draw:q1,drawOne:CC,activateLastSelection:Wae};function q1(e){var r=e._fullLayout;MC(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(z3.stroke,c).call(z3.fill,f).call(kC.dashLine,y?"solid":d,y?4+h:h);if(Gae(b,e,a),p){var _=Yae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=Bae(o,e);Oae(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 Uae(e,A)})}}function Gae(e,r,t){var a=t.xref+t.yref;kC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Uae(e,r){if(C1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){N3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=N3,q1(e)}}}function Wae(e){if(C1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=N3,q1(e)}}function N3(e){if(C1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(MC(e),delete e._fullLayout._activeSelectionIndex,q1(e))}}});var DC=O((l3e,LC)=>{function Xae(){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}LC.exports=Xae});var PC=O((o3e,EC)=>{function Zae(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}EC.exports=Zae});var zC=O((s3e,RC)=>{var Jae={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}};RC.exports=Jae});var FC=O((u3e,NC)=>{var bv=zC();function $ae(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 G=Y.seg.start,V=Y.seg.end,B=U.seg.start,J=U.seg.end;return r.pointsCollinear(G,B,J)?r.pointsCollinear(V,B,J)||r.pointAboveOrOnLine(V,B,J)?1:-1:r.pointAboveOrOnLine(G,B,J)?1:-1}function _(Y){return y.findTransition(function(U){var G=b(Y,U.ev);return G>0})}function w(Y,U){var G=Y.seg,V=U.seg,B=G.start,J=G.end,X=V.start,ee=V.end;t&&t.checkIntersection(G,V);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),he=r.pointsSame(J,ee);if(fe&&he)return U;var Q=!fe&&r.pointBetween(B,X,ee),qe=!he&&r.pointBetween(J,X,ee);if(fe)return qe?h(U,J):h(Y,ee),U;Q&&(he||(qe?h(U,J):h(Y,ee)),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,ee)),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 F=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 Kae(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(F,Y,U){return f.index=F,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 Qae={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)}};BC.exports=Qae});var VC=O((v3e,YC)=>{var jae={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 ene=DC(),rne=PC(),GC=FC(),tne=HC(),wv=OC(),UC=VC(),Zn=!1,Tv=rne(),cn;cn={buildLog:function(e){return e===!0?Zn=ene():e===!1&&(Zn=!1),Zn===!1?!1:Zn.list},epsilon:function(e){return Tv.epsilon(e)},segments:function(e){var r=GC(!0,Tv,Zn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=GC(!1,Tv,Zn);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,Zn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:wv.intersect(e.combined,Zn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:wv.difference(e.combined,Zn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:wv.differenceRev(e.combined,Zn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:wv.xor(e.combined,Zn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:tne(e.segments,Tv,Zn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return UC.toPolygon(cn,e)},polygonToGeoJSON:function(e){return UC.fromPolygon(cn,Tv,e)},union:function(e,r){return Av(e,r,cn.selectUnion)},intersect:function(e,r){return Av(e,r,cn.selectIntersect)},difference:function(e,r){return Av(e,r,cn.selectDifference)},differenceRev:function(e,r){return Av(e,r,cn.selectDifferenceRev)},xor:function(e,r){return Av(e,r,cn.selectXor)}};function Av(e,r,t){var a=cn.segments(e),n=cn.segments(r),i=cn.combine(a,n),l=t(i);return cn.polygon(l)}typeof window=="object"&&(window.PolyBool=cn);WC.exports=cn});var JC=O((d3e,ZC)=>{ZC.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 H3=O((p3e,$C)=>{"use strict";var I3=Eh().dot,S1=wt().BADNUM,L1=$C.exports={};L1.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===S1||bl||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===S1||yn||b===S1||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(I3(c,u))>n)return!0;return!1};L1.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 QC=O((m3e,KC)=>{"use strict";KC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var bS=O((y3e,xS)=>{"use strict";var jC=XC(),ane=JC(),qv=gr(),nne=Yr().dashStyle,Mv=br(),ine=_i(),lne=Oi().makeEventData,Ev=ff(),one=Ev.freeMode,sne=Ev.rectMode,Cv=Ev.drawMode,V3=Ev.openMode,G3=Ev.selectMode,eS=uo(),rS=hv(),lS=d1(),oS=Kl().clearOutline,sS=lo(),B3=sS.handleEllipse,une=sS.readPaths,fne=v1().newShapes,cne=v3(),vne=F3().activateLastSelection,E1=Re(),hne=E1.sorterAsc,uS=H3(),kv=Gh(),Jn=Xt().getFromId,dne=n1(),pne=k1().redrawReglTraces,P1=QC(),Qi=P1.MINSELECT,mne=uS.filter,U3=uS.tester,W3=s1(),tS=W3.p2r,yne=W3.axValue,gne=W3.getTransform;function X3(e){return e.subplot!==void 0}function xne(e,r,t,a,n){var i=!X3(a),l=one(n),o=sne(n),s=V3(n),u=Cv(n),f=G3(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=gne(w),A=r-_.left,k=t-_.top;m._calcInverseTransform(p);var M=E1.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],F=a.yaxes[0],Y=H._length,U=F._length,G=e.altKey&&!(Cv(n)&&s),V,B,J,X,ee,le,fe;cS(e,p,a),l&&(V=mne([[A,k]],P1.BENDPX));var he=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?m.newshape:m.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var qe=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ce=Q.line.color||(i?Mv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":nne(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(Mv.stroke,ce).call(Mv.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:Mv.background,stroke:Mv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var ge=b.select(".label-temp");ge.empty()&&(ge=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var _e=m._uid+P1.SELECTID,W=[],j=R1(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var oe=H._id,me=F._id;mS(p,oe,me,j);for(var xe=(p.layout||{}).selections||[],De=[],ze=!1,Se=0;Se=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=m.clickmode;kv.done(_e).then(function(){if(kv.clear(_e),oe===2){for(he.remove(),ee=0;ee-1&&fS(me,p,a.xaxes,a.yaxes,a.subplot,a,he),xe==="event"&&Dv(p,void 0);ine.click(p,me,w.id)}).catch(E1.error)}},a.doneFn=function(){be.remove(),kv.done(_e).then(function(){kv.clear(_e),!y&&X&&a.selectionDefs&&(X.subtract=G,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(E1.error)}}function fS(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(Ane(o)){cS(e,r,i),h=R1(r,t,a,n);var k=Mne(o,h),M=k.pointNumbers.length>0;if(M?kne(h,k):qne(h)&&(_=nS(k))){for(l&&l.remove(),A=0;A=0}function Tne(e){return e._fullLayout._activeSelectionIndex>=0}function Sv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;wne(n)&&n._fullLayout._deactivateShape(n),Tne(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Cv(t),s=G3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=fne(u,e)),f&&qv.call("_guiRelayout",n,{shapes:f});var c;s&&!X3(e)&&(c=cne(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,qv.call("_guiRelayout",n,{selections:c}).then(function(){r&&vne(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function aS(e){return e._id}function R1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(aS),l=t.map(aS),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function kne(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=iS(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var De=yS(oe),ze=gS([Jn(e,me,"x"),Jn(e,xe,"y")]);ze(W,De)}}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,Lne(o,s,f)||mS(e,o,s,a),Z&&(W.points.length?Dv(e,W):$3(e)),h._deselect=!1}return{eventData:W,selectionTesters:t}}function Sne(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";_S.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((x3e,wS)=>{"use strict";wS.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 mf=O((_3e,MS)=>{"use strict";var TS=K3(),AS=aa(),z1=ia(),zne=lt().templatedArray,b3e=Pv();MS.exports=zne("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:AS({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:TS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:TS.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",z1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",z1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",z1.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",z1.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:AS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var N1=O((w3e,kS)=>{"use strict";kS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Q3=O((T3e,qS)=>{"use strict";qS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ti=O((A3e,zS)=>{"use strict";var CS=yi().axisHoverFormat,{hovertemplateAttrs:Nne,texttemplateAttrs:Fne,templatefallbackAttrs:SS}=gn(),LS=Wc(),Ine=aa(),DS=hi().dash,Hne=hi().pattern,Bne=Yr(),One=N1(),Rv=mt().extendFlat,Yne=Q3();function ES(e){return{valType:"any",dflt:0,editType:"calc"}}function PS(e){return{valType:"any",editType:"calc"}}function RS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}zS.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:ES("x"),yperiod:ES("y"),xperiod0:PS("x0"),yperiod0:PS("y0"),xperiodalignment:RS("x"),yperiodalignment:RS("y"),xhoverformat:CS("x"),yhoverformat:CS("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:Fne(),texttemplatefallback:SS({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:Nne({},{keys:One.eventDataKeys}),hovertemplatefallback:SS(),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({},DS,{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:Yne(!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:Hne,marker:Rv({symbol:{valType:"enumerated",values:Bne.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({},DS,{arrayOk:!0}),editType:"calc"},LS("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"},LS("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:Ine({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var j3=O((k3e,IS)=>{"use strict";var NS=mf(),FS=Ti().line,Vne=hi().dash,F1=mt().extendFlat,Gne=vi().overrideAll,Une=lt().templatedArray,M3e=Pv();IS.exports=Gne(Une("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:F1({},NS.xref,{}),yref:F1({},NS.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:FS.color,width:F1({},FS.width,{min:1,dflt:1}),dash:F1({},Vne,{dflt:"dot"})}}),"arraydraw","from-root")});var YS=O((q3e,OS)=>{"use strict";var HS=Re(),I1=Zr(),Wne=Yn(),Xne=j3(),BS=uo();OS.exports=function(r,t){Wne(r,t,{name:"selections",handleItemDefaults:Zne});for(var a=t.selections,n=0;n{"use strict";VS.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((S3e,XS)=>{"use strict";var Jne=gr(),US=Re(),WS=Xt();XS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Jne.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 ZS=F3(),Nv=bS();JS.exports={moduleType:"component",name:"selections",layoutAttributes:j3(),supplyLayoutDefaults:YS(),supplyDrawNewSelectionDefaults:GS(),includeBasePlot:zv()("selections"),draw:ZS.draw,drawOne:ZS.drawOne,reselect:Nv.reselect,prepSelect:Nv.prepSelect,clearOutline:Nv.clearOutline,clearSelectionsCache:Nv.clearSelectionsCache,selectOnClick:Nv.selectOnClick}});var mL=O((D3e,pL)=>{"use strict";var nx=kr(),$n=Re(),$S=$n.numberFormat,$ne=Fn(),Kne=F2(),H1=gr(),iL=$n.strTranslate,Qne=la(),KS=br(),co=Yr(),jne=_i(),QS=Zr(),eie=no(),rie=xi(),lL=ff(),B1=lL.selectingOrDrawing,tie=lL.freeMode,aie=Aa().FROM_TL,nie=n1(),iie=k1().redrawReglTraces,lie=zt(),rx=Xt().getFromId,oie=yf().prepSelect,sie=yf().clearOutline,uie=yf().selectOnClick,ex=S3(),ix=ia(),jS=ix.MINDRAG,Qa=ix.MINZOOM,eL=!0;function fie(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,F,Y,U,G;t+=r.yaxis._shift;function V(){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 Me=r.overlays,Ce=0;Ce=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(ax(He),Me===2&&!f&&Ue(),u)Je.indexOf("select")>-1&&uie(Ce,He,m,y,r.id,X),Je.indexOf("event")>-1&&jne.click(He,Ce,r.id);else if(Me===1&&f){var Ge=l?h:c,Xe=l==="s"||o==="w"?0:1,lr=Ge._name+".range["+Xe+"]",tr=cie(Ge,Xe),Ke="left",Fe="middle";if(Ge.fixedrange)return;l?(Fe=l==="n"?"top":"bottom",Ge.side==="right"&&(Ke="right")):o==="e"&&(Ke="right"),He._context.showAxisRangeEntryBoxes&&nx.select(J).call(Qne.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(tr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Fe}).on("edit",function(ne){var se=Ge.d2r(ne);se!==void 0&&H1.call("_guiRelayout",He,lr,se)})}}rie.init(X);var fe,he,Q,qe,ce,be,ge,_e,W,j;function Z(Me,Ce,He){var Je=J.getBoundingClientRect();fe=Ce-Je.left,he=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ge=$n.apply3DTransform(e._fullLayout._invTransform)(fe,he);fe=Ge[0],he=Ge[1],Q={l:fe,r:fe,w:0,t:he,b:he,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:$ne(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+w+"V"+x+"H0V0",be=!1,ge="xy",j=!1,_e=uL(s,qe,b,_,ce),W=fL(s,b,_)}function oe(Me,Ce){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(w,U*Me+fe)),Je=Math.max(0,Math.min(x,G*Ce+he)),Ge=Math.abs(He-fe),Xe=Math.abs(Je-he);Q.l=Math.min(fe,He),Q.r=Math.max(fe,He),Q.t=Math.min(he,Je),Q.b=Math.max(he,Je);function lr(){ge="",Q.r=Q.l,Q.t=Q.b,W.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ge>Qa||Xe>Qa?(ge="xy",Ge/w>Xe/x?(Xe=Ge*x/w,he>Je?Q.t=he-Xe:Q.b=he+Xe):(Ge=Xe*w/x,fe>He?Q.l=fe-Ge:Q.r=fe+Ge),W.attr("d",O1(Q))):lr();else if(k.isSubplotConstrained)if(Ge>Qa||Xe>Qa){ge="xy";var tr=Math.min(Q.l/w,(x-Q.b)/x),Ke=Math.max(Q.r/w,(x-Q.t)/x);Q.l=tr*w,Q.r=Ke*w,Q.b=(1-tr)*x,Q.t=(1-Ke)*x,W.attr("d",O1(Q))}else lr();else!S||Xe0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(lr.maxallowed!==void 0&&E===(lr.range[0]1&&(tr.maxallowed!==void 0&&R===(tr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function hie(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function uL(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",iL(t,a)).attr("d",n+"Z")}function fL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:KS.background,stroke:KS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",iL(r,t)).attr("d","M0,0Z")}function cL(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"),vL(e,r,n,i)}function vL(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 ax(e){nx.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function hL(e){eL&&e.data&&e._context.showTips&&($n.notifier($n._(e,"Double-click to zoom back out"),"long"),eL=!1)}function die(e,r){return"M"+(e.l-.5)+","+(r-Qa-.5)+"h-3v"+(2*Qa+1)+"h3ZM"+(e.r+.5)+","+(r-Qa-.5)+"h3v"+(2*Qa+1)+"h-3Z"}function pie(e,r){return"M"+(r-Qa-.5)+","+(e.t-.5)+"v-3h"+(2*Qa+1)+"v3ZM"+(r-Qa-.5)+","+(e.b+.5)+"v3h"+(2*Qa+1)+"v-3Z"}function O1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Qa)/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 aL(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 mie=kr(),Y1=_i(),yie=xi(),gie=no(),Ai=mL().makeDragBox,fa=ia().DRAGGERSIZE;V1.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=Ai(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]&&Y1.hover(r,h,i)},Y1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,yie.unhover(r,h))},r._context.showAxisDragHandles&&(Ai(r,l,o._offset-fa,s._offset-fa,fa,fa,"n","w"),Ai(r,l,o._offset+o._length,s._offset-fa,fa,fa,"n","e"),Ai(r,l,o._offset-fa,s._offset+s._length,fa,fa,"s","w"),Ai(r,l,o._offset+o._length,s._offset+s._length,fa,fa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=fa),Ai(r,l,o._offset+o._length*.1,f,o._length*.8,fa,"","ew"),Ai(r,l,o._offset,f,o._length*.1,fa,"","w"),Ai(r,l,o._offset+o._length*.9,f,o._length*.1,fa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=fa),Ai(r,l,c,s._offset+s._length*.1,fa,s._length*.8,"ns",""),Ai(r,l,c,s._offset+s._length*.9,fa,s._length*.1,"s",""),Ai(r,l,c,s._offset,fa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Y1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Y1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},V1.updateFx(r)}};V1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";gie(r._draggers,t)}});var xL=O((P3e,gL)=>{"use strict";var yL=gr();gL.exports=function(r){for(var t=yL.layoutArrayContainers,a=yL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var xie=Bl(),ox=Dh(),Fv=Qo(),bie=ag().sorterAsc,sx=gr();Iv.containerArrayMatch=xL();var _ie=Iv.isAddVal=function(r){return r==="add"||xie(r)},bL=Iv.isRemoveVal=function(r){return r===null||r==="remove"};Iv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=sx.getComponentMethod(l,"supplyLayoutDefaults"),s=sx.getComponentMethod(l,"draw"),u=sx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ox||s===ox,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(bL(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(bie),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),bL(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!==ox){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 ML=zr(),kL=gr(),Wa=Re(),Hv=zt(),qL=Xt(),CL=br(),Bv=qL.cleanId,wie=qL.getFromTrace,ux=kL.traceIs,Tie=["x","y","z"];Kn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Wa.log("Clearing previous rejected promises from queue."),e._promises=[]};Kn.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"),CL.clean(e),e.template&&e.template.layout&&Kn.cleanLayout(e.template.layout),e};function gf(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))}Kn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Kn.hasParent=function(e,r){for(var t=AL(r);t;){if(t in e)return!0;t=AL(t)}return!1};Kn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Wa.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;aWa.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)?fx(n,i):!1))return!1}return!0}return!1};Kn.collectionsAreEqual=fx});var mx=O(Vr=>{"use strict";var X1=kr(),kie=zr(),qie=yg(),rr=Re(),vt=rr.nestedProperty,hx=Bc(),ja=f9(),Qn=gr(),ep=Yu(),_r=zt(),Xa=Zr(),Cie=N2(),Sie=_n(),cx=Yr(),Lie=br(),Die=lx().initInteractions,Eie=os(),Pie=yf().clearOutline,RL=Ko().dfltConfig,U1=_L(),Wt=SL(),tt=k1(),vo=vi(),Rie=ia().AX_NAME_PATTERN,vx=0,LL=5;function zie(e,r,t,a){var n;if(e=rr.getGraphDiv(e),hx.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=hx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.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)}NL(e,a),t||(t={}),X1.select(e).classed("js-plotly-plot",!0),cx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Wt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(nle(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),cx.initGradients(e),cx.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 FL(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]),J1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&J1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Bie(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,F=S.parts.slice(0,R).join("."),Y=vt(e.layout,F).get(),U=vt(a,F).get(),G=S.get();if(D!==void 0){b[M]=D,_[M]=N==="reverse"?D:Tl(G);var V=ep.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&D!==null)for(var B in V.impliedEdits)w(rr.relativeAttr(M,B),V.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(WL))k(H),vt(a,F+"._inputRange").set(null);else if(H.match(XL)){k(H),vt(a,F+"._inputRange").set(null);var X=vt(a,F).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else H.match(Gie)&&vt(a,F+"._inputDomain").set(null);if(N==="type"){A=Y;var ee=U.type==="linear"&&D==="log",le=U.type==="log"&&D==="linear";if(ee||le){if(!A||!A.range)w(F+".autorange",!0);else if(U.autorange)ee&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var fe=A.range[0],he=A.range[1];ee?(fe<=0&&he<=0&&w(F+".autorange",!0),fe<=0?fe=he/1e6:he<=0&&(he=fe/1e6),w(F+".range[0]",Math.log(fe)/Math.LN10),w(F+".range[1]",Math.log(he)/Math.LN10)):(w(F+".range[0]",Math.pow(10,fe)),w(F+".range[1]",Math.pow(10,he)))}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"],Qn.getComponentMethod("annotations","convertCoords")(e,U,D,w),Qn.getComponentMethod("images","convertCoords")(e,U,D,w)}else w(F+".autorange",!0),w(F+".range",null);vt(a,F+"._inputRange").set(null)}else if(N.match(Rie)){var Q=vt(a,M).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),Qn.getComponentMethod("annotations","convertCoords")(e,Q,qe,w),Qn.getComponentMethod("images","convertCoords")(e,Q,qe,w)}var ce=U1.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var be=ce.property,ge=V||{editType:"calc"};c!==""&&be===""&&(U1.isAddVal(D)?_[M]=null:U1.isRemoveVal(D)?_[M]=(vt(t,f).get()||[])[c]:rr.warn("unrecognized full object value",r)),vo.update(y,ge),u[f]||(u[f]={});var _e=u[f][c];_e||(_e=u[f][c]={}),_e[be]=D,delete r[M]}else N==="reverse"?(Y.range?Y.range.reverse():(w(F+".autorange",!0),Y.range=[1,0]),U.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(D===!1&&G!==!1||D!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(D==="lasso"||D==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:V?vo.update(y,V):y.calc=!0,S.set(D))}}for(f in u){var W=U1.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var j in x){A=Xa.getFromId(e,j);var Z=A&&A._constraintGroup;if(Z){y.calc=!0;for(var oe in Z)x[oe]||(Xa.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=vt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Xie(e,r){for(var t=0;t[F,e._ev.listeners(F)]);i=Vr.newPlot(e,r,t,a).then(()=>{for(let[F,Y]of H)Y.forEach(U=>e.on(F,U));return Vr.react(e,r,t,a)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),Jie(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=Qie(e,s,h,d,p),y=m.newDataRevision,b=Kie(e,o,c,d,p,y);if(JL(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(tt.doTicksRelayout),_r.doCalcdata(e),tt.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=Qn.getComponentMethod(S,"drawOne");if(E!==rr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Kie(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=vo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var p=ep.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&&rr.isPlainObject(r);if(M)x.push({type:"object",data:b(rr.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 ele(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.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(rr.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&&vxS.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.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 ja&&ja.add(e,o,u,s,f),_r.modifyFrames(e,i)}function tle(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),hx.purge(e),r._container&&r._container.remove(),delete e._context,e}function ale(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.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 nle(e){var r=X1.select(e),t=e._fullLayout;if(t._calcInverseTransform=ale,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={};X1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Eie.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=jie;Vr.addFrames=ele;Vr.deleteFrames=rle;Vr.addTraces=YL;Vr.deleteTraces=VL;Vr.extendTraces=BL;Vr.moveTraces=dx;Vr.prependTraces=OL;Vr.newPlot=Hie;Vr._doPlot=zie;Vr.purge=tle;Vr.react=$ie;Vr.redraw=Iie;Vr.relayout=Ov;Vr.restyle=$1;Vr.setPlotConfig=Nie;Vr.update=Q1;Vr._guiRelayout=px(Ov);Vr._guiRestyle=px($1);Vr._guiUpdate=px(Q1);Vr._storeDirectGUIEdit=Vie});var Cs=O(ji=>{"use strict";var ile=gr();ji.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};ji.getRedrawFunc=function(e){return function(){ile.getComponentMethod("colorbar","draw")(e)}};ji.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ji.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var $L=window.URL||window.webkitURL;ji.createObjectURL=function(e){return $L.createObjectURL(e)};ji.revokeObjectURL=function(e){return $L.revokeObjectURL(e)};ji.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=lle(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ji.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function lle(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var gx=kr(),I3e=Re(),ole=Yr(),sle=br(),H3e=os(),yx=/"/g,Vv="TOBESTRIPPED",ule=new RegExp('("'+Vv+")|("+Vv+'")',"g");function fle(e){var r=gx.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 cle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}KL.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(ole.setRect,0,0,o,s).call(sle.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var vle=Re(),hle=Kh().EventEmitter,Gv=Cs();function dle(e){var r=e.emitter||new hle,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"||vle.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}QL.exports=dle});var bx=O((Y3e,rD)=>{"use strict";var jL=zr(),eD=mx(),ple=zt(),el=Re(),Uv=Cs(),mle=tp(),yle=ap(),gle=mh().version,xx={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,r){r=r||{};var t,a,n,i;el.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=el.getGraphDiv(e),t=el.extendDeep([],e.data),a=el.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||el.validate(r[k],xx[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 "+el.join2(xx.format.values,", "," or ")+".");var o={};function s(k,M){return el.coerce(r,o,xx,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=el.extendFlat({},a);f?y.width=f:r.width===null&&jL(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&jL(i.height)&&(y.height=i.height);var b=el.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=mle(m,u,h),D=m._fullLayout.width,E=m._fullLayout.height;function R(){eD.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=ple.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=gle,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=el.randstr(),yle({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){eD.newPlot(m,t,y,b).then(_).then(w).then(x).then(function(S){k(A(S))}).catch(function(S){M(S)})})}rD.exports=xle});var nD=O((V3e,aD)=>{"use strict";var jn=Re(),ble=zt(),_le=Yu(),wle=Ko().dfltConfig,Mi=jn.isPlainObject,Ls=Array.isArray,_x=jn.isArrayOrTypedArray;aD.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=_le.get(),n=[],i={_context:jn.extendFlat({},wle)},l,o;Ls(r)?(i.data=jn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ca("array","data"))),Mi(t)?(i.layout=jn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ca("object","layout"))),ble.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ca("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(ca("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],jn.validate(k,A)?M!==k&&M!==+k&&a.push(ca("dynamic",n,u.concat(x,w),k,M)):a.push(ca("value",n,u.concat(x,w),k))}else a.push(ca("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var Sle=Re(),ip=Cs();function Lle(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=ip.createBlob(e,t),u=ip.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ip.revokeObjectURL(u),s=null,l(r);if(Sle.isSafari()){var f=t==="svg"?",":";base64,";return ip.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}iD.exports=Lle});var wx=O((W3e,sD)=>{"use strict";var oD=Re(),Dle=bx(),Ele=lD(),U3e=Cs();function Ple(e,r){var t;return oD.isPlainObject(e)||(t=oD.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=Dle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),Ele(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}sD.exports=Ple});var hD=O(Tx=>{"use strict";var vn=Re(),hn=vn.isPlainObject,uD=Yu(),fD=zt(),Rle=an(),cD=lt(),vD=Ko().dfltConfig;Tx.makeTemplate=function(e){e=vn.isPlainObject(e)?e:vn.getGraphDiv(e),e=vn.extendDeep({_context:vD},{data:e.data,layout:e.layout}),fD.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={};Wv(d,p,Nle.bind(null,d));var m=vn.coerce(d,{},Rle,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Wv(t,a.layout,zle.bind(null,t)),delete a.layout.template;var n=t.template;if(hn(n)){var i=n.layout,l,o,s,u,f,c;hn(i)&&lp(i,a.layout);var h=n.data;if(hn(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=ei(w,A,x);hn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:M,templateitemname:k.templateitemname}),_(k,M)):Array.isArray(k)&&Fle(k)&&_(k,M)}}if(_({data:s,layout:o},""),l.length)return l.map(Ile)};function Fle(e){for(var r=0;r{"use strict";var ea=mx();bt._doPlot=ea._doPlot;bt.newPlot=ea.newPlot;bt.restyle=ea.restyle;bt.relayout=ea.relayout;bt.redraw=ea.redraw;bt.update=ea.update;bt._guiRestyle=ea._guiRestyle;bt._guiRelayout=ea._guiRelayout;bt._guiUpdate=ea._guiUpdate;bt._storeDirectGUIEdit=ea._storeDirectGUIEdit;bt.react=ea.react;bt.extendTraces=ea.extendTraces;bt.prependTraces=ea.prependTraces;bt.addTraces=ea.addTraces;bt.deleteTraces=ea.deleteTraces;bt.moveTraces=ea.moveTraces;bt.purge=ea.purge;bt.addFrames=ea.addFrames;bt.deleteFrames=ea.deleteFrames;bt.animate=ea.animate;bt.setPlotConfig=ea.setPlotConfig;var Hle=Ec().getGraphDiv,Ble=x1().eraseActiveShape;bt.deleteActiveShape=function(e){return Ble(Hle(e))};bt.toImage=bx();bt.validate=nD();bt.downloadImage=wx();var dD=hD();bt.makeTemplate=dD.makeTemplate;bt.validateTemplate=dD.validateTemplate});var Xv=O((J3e,mD)=>{"use strict";var Ax=Re(),Ole=gr();mD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=Ole.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ax.minRowLength(i);l?o=Math.min(u,Ax.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ax.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ds=O(($3e,xD)=>{"use strict";var yD=Re().dateTick0,Yle=wt(),Vle=Yle.ONEWEEK;function gD(e,r){return e%Vle===0?yD(r,1):yD(r,0)}xD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",gD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",gD(o,t.ycalendar)),n("yperiodalignment"))}}});var wD=O((K3e,_D)=>{"use strict";var bD=["orientation","groupnorm","stackgaps"];_D.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 TD=br(),AD=bn().hasColorscale,MD=Wu(),Gle=wn();kD.exports=function(r,t,a,n,i,l={}){var o=Gle.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),AD(r,"marker")&&MD(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=TD.background:u=TD.defaultLine,i("marker.line.color",u),AD(r,"marker.line")&&MD(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 SD=O((j3e,CD)=>{"use strict";var Ule=Re().isArrayOrTypedArray,Wle=bn().hasColorscale,Xle=Wu();CD.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),Wle(r,"line"))Xle(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Ule(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var DD=O((exe,LD)=>{"use strict";LD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var PD=O((rxe,ED)=>{"use strict";var Zle=Re();ED.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Zle.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var ND=O((txe,zD)=>{"use strict";var sp=br(),RD=Re().isArrayOrTypedArray;function Jle(e){for(var r=sp.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var FD=Re(),$le=gr(),Kle=Ti(),Qle=N1(),xf=wn(),jle=Xv(),eoe=Ds(),roe=wD(),toe=qD(),aoe=SD(),ID=DD(),noe=PD(),ioe=ND(),loe=Re().coercePattern;HD.exports=function(r,t,a,n){function i(d,p){return FD.coerce(r,t,Kle,d,p)}var l=jle(r,t,n,i);if(l||(t.visible=!1),!!t.visible){eoe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=roe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var ooe=qs().getAxisGroup;OD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=ooe(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 VD=O((ixe,YD)=>{"use strict";var soe=Re(),uoe=bf(),foe=Ti();YD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return soe.coerce(n._input,n,foe,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 UD=O((lxe,GD)=>{"use strict";var coe=Re(),voe=td();GD.exports=function(e,r){function t(n,i){return coe.coerce(e,r,voe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Es=O((oxe,XD)=>{"use strict";var hoe=zr(),WD=Re(),doe=WD.dateTime2ms,up=WD.incrementMonth,poe=wt(),moe=poe.ONEAVGMONTH;XD.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(hoe(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=doe(h,u)||0,p=[],m=[],y=[],b=n.length,_=0;_w;)k=up(k,-o,u);for(;k<=w;)k=up(k,o,u);A=up(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 $D=O((sxe,JD)=>{"use strict";var Mx=bn().hasColorscale,kx=Xc(),ZD=wn();JD.exports=function(r,t){ZD.hasLines(t)&&Mx(t,"line")&&kx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),ZD.hasMarkers(t)&&(Mx(t,"marker")&&kx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Mx(t,"marker.line")&&kx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var qx=O((uxe,KD)=>{"use strict";var Lt=Re();KD.exports=function(r,t){for(var a=0;a{"use strict";var QD=Re();jD.exports=function(r,t){QD.isArrayOrTypedArray(t.selectedpoints)&&QD.tagSelected(r,t)}});var Ex=O((cxe,lE)=>{"use strict";var eE=zr(),Sx=Re(),Jv=Zr(),rE=Es(),Cx=wt().BADNUM,Lx=wn(),yoe=$D(),goe=qx(),xoe=Zv();function boe(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=rE(r,a,"x",i),s=rE(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Dx(r,t,a,n),m=!1,y,b,_,w,x,A;nE(t,r);var k="x",M="y",S;if(p)Sx.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=aE(r,c);tE(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";oE.exports=fp;var _oe=Re().distinctVals;function fp(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";uE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tf=O((dxe,hE)=>{"use strict";var ri=zr(),{isArrayOrTypedArray:Al}=Re(),{BADNUM:_f}=wt(),woe=gr(),Kv=Zr(),{getAxisGroup:Toe}=qs(),cp=sE(),{TEXTPAD:Aoe}=$v(),{LINE_SPACING:Moe}=Aa(),{BR_TAG_ALL:koe}=la();function qoe(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||!ri(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Moe*t+Aoe;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 Foe(e,r,t,a){for(var n=wf(a),i=0;i{"use strict";var dE=Ex(),pE=Tf().setGroupPositions;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;uD[f]&&f{"use strict";var Ooe=Yr(),_E=wt(),Qv=_E.BADNUM,wE=_E.LOG_CLIP,gE=wE+.5,xE=wE-.5,vp=Re(),Yoe=vp.segmentsIntersect,bE=vp.constrain,Hx=N1();TE.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=[],_=Hx.minTolerance,w=r.length,x=new Array(w),A=0,k,M,S,D,E,R,N,H,F,Y,U,G,V,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===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?gE:xE)/(i._m*s*(i._m>0?gE:xE)))),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 Ee=se-Fe,ar=Le-ne,cr=.5-Fe,sr=.5-ne,Mr=Ee*Ee+ar*ar,Or=Ee*cr+ar*sr;if(Or>0&&Or1||Math.abs(cr.y-se[0][1])>1)&&(cr=[cr.x,cr.y],Le&&qe(cr,Fe)ge||Fe[1]<_e||Fe[1]>W)return[bE(Fe[0],be,ge),bE(Fe[1],_e,W)]}function Be(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===be||Fe[0]===ge)||Fe[1]===ne[1]&&(Fe[1]===_e||Fe[1]===W))return!0}function We(Fe,ne){var se=[],Le=Ie(Fe),Ee=Ie(ne);return Le&&Ee&&Be(Le,Ee)||(Le&&se.push(Le),Ee&&se.push(Ee)),se}function Pe(Fe,ne,se){return function(Le,Ee){var ar=Ie(Le),cr=Ie(Ee),sr=[];if(ar&&cr&&Be(ar,cr))return sr;ar&&sr.push(ar),cr&&sr.push(cr);var Mr=2*vp.constrain((Le[Fe]+Ee[Fe])/2,ne,se)-((ar||Le)[Fe]+(cr||Ee)[Fe]);if(Mr){var Or;ar&&cr?Or=Mr>0==ar[Fe]>cr[Fe]?ar:cr:Or=ar||cr,Or[Fe]+=Mr}return sr}}var Oe;p==="linear"||p==="spline"?Oe=Se:p==="hv"||p==="vh"?Oe=We:p==="hvh"?Oe=Pe(0,be,ge):p==="vhv"&&(Oe=Pe(1,_e,W));function Ue(Fe,ne){var se=ne[0]-Fe[0],Le=(ne[1]-Fe[1])/se,Ee=(Fe[1]*ne[0]-ne[1]*Fe[0])/se;return Ee>0?[Le>0?be:ge,W]:[Le>0?ge:be,_e]}function ie(Fe){var ne=Fe[0],se=Fe[1],Le=ne===x[A-1][0],Ee=se===x[A-1][1];if(!(Le&&Ee))if(A>1){var ar=ne===x[A-2][0],cr=se===x[A-2][1];Le&&(ne===be||ne===ge)&&ar?cr?A--:x[A-1]=Fe:Ee&&(se===_e||se===W)&&cr?ar?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),De=null,me=xe=0}var $e=vp.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,he=Fe[1]/u,Z=Fe[0]ge?ge:0,oe=Fe[1]<_e?_e:Fe[1]>W?W:0,Z||oe){if(!A)x[A++]=[Z||Fe[0],oe||Fe[1]];else if(De){var ne=Oe(De,Fe);ne.length>1&&(we(ne[0]),x[A++]=ne[1])}else ze=Oe(x[A-1],Fe)[0],x[A++]=ze;var se=x[A-1];Z&&oe&&(se[0]!==Z||se[1]!==oe)?(De&&(me!==Z&&xe!==oe?ie(me&&xe?Ue(De,Fe):[me||Z,xe||oe]):me&&xe&&ie([me,xe])),ie([Z,oe])):me-Z&&xe-oe&&ie([Z||me,oe||xe]),De=Fe,me=Z,xe=oe}else De&&we(Oe(De,Fe)[0]),x[A++]=Fe}for(k=0;kQ(R,Ne))break;S=R,V=F[0]*H[0]+F[1]*H[1],V>U?(U=V,D=R,N=!1):V=r.length||!R)break;hr(R),M=R}}De&&ie([me||De[0],xe||De[1]]),b.push(x.slice(0,A))}var Me=p.slice(p.length-1);if(f&&Me!=="h"&&Me!=="v"){for(var Ce=!1,He=-1,Je=[],Ge=0;Ge{"use strict";var ME={tonextx:1,tonexty:1,tonext:1};kE.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 ki=kr(),Voe=gr(),jv=Re(),Af=jv.ensureSingle,SE=jv.identity,Nt=Yr(),Mf=wn(),Goe=AE(),Uoe=qE(),hp=H3().tester;LE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Uoe(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(),Woe(r,o,t),f){l&&(s=l());var h=ki.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){CE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){CE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Woe(e,r,t){r.each(function(a){var n=Af(ki.select(this),"g","fills");Nt.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,SE);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=Af(ki.select(this),"path","js-fill")})})}function CE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Xoe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,m=ki.select(i),y=Af(m,"g","errorbars"),b=Af(m,"g","lines"),_=Af(m,"g","points"),w=Af(m,"g","text");if(Voe.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 F,Y,U="",G="",V,B,J,X,ee,le,fe=[];d._polygons=[];var he=[],Q=[],qe=jv.noop;if(x=d._ownFill,Mf.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Nt.steps(p.shape),B=Nt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=B=function(Pe){var Oe=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Oe[0]&&Pe[0][1]===Oe[1]?Nt.smoothclosed(Pe.slice(1),p.smoothing):Nt.smoothopen(Pe,p.smoothing)}:V=B=function(Pe){return"M"+Pe.join("L")},J=function(Pe){return B(Pe.reverse())},Q=Goe(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}),he=new Array(Q.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;Mf.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";EE.exports={container:"marker",min:"cmin",max:"cmax"}});var RE=O((bxe,PE)=>{"use strict";var pp=Zr();PE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=pp.getFromTrace(i,t,"x"),o=pp.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=pp.tickText(l,l.c2l(s),!0).text,n.yLabel=pp.tickText(o,o.c2l(u),!0).text,n}});var Vx=O((_xe,zE)=>{"use strict";var Bx=kr(),kf=Yr(),Zoe=gr();function Joe(e){var r=Bx.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=Bx.select(this),n=t.trace||t[0].trace;Ox(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Bx.select(this),n=t.trace||t[0].trace;Yx(a,n,e)}),r.selectAll("g.trace path.js-line").call(kf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(kf.fillGroupStyle,e,!1),Zoe.getComponentMethod("errorbars","style")(r)}function Ox(e,r,t){kf.pointStyle(e.selectAll("path.point"),r,t)}function Yx(e,r,t){kf.textPointStyle(e.selectAll("text"),r,t)}function $oe(e,r,t){var a=r[0].trace;a.selectedpoints?(kf.selectedPointStyle(t.selectAll("path.point"),a),kf.selectedTextStyle(t.selectAll("text"),a)):(Ox(t,a,e),Yx(t,a,e))}zE.exports={style:Joe,stylePoints:Ox,styleText:Yx,styleOnSelect:$oe}});var FE=O((wxe,NE)=>{"use strict";var qf=br(),Koe=wn();NE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&qf.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&&qf.opacity(i)?i:l&&qf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?qf.opacity(n)<.3?qf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&qf.opacity(a)&&Koe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var BE=O((Txe,HE)=>{"use strict";var mp=Re(),IE=_i(),Qoe=gr(),joe=FE(),Gx=br(),ese=mp.fillText;HE.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(G){if(p){var V=o.c2p(G.xStart),B=o.c2p(G.xEnd);return u>=Math.min(V,B)&&u<=Math.max(V,B)?0:1/0}var J=Math.max(3,G.mrc||0),X=1-1/J,ee=Math.abs(o.c2p(G.x)-u);return ee=Math.min(V,B)&&f<=Math.max(V,B)?0:1/0}var J=Math.max(3,G.mrc||0),X=1-1/J,ee=Math.abs(s.c2p(G.y)-f);return eefe!=W>=fe&&(be=qe[Q-1][0],ge=qe[Q][0],W-_e&&(ce=be+(ge-be)*(fe-_e)/(W-_e),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 F=N(l._fillElement)&&!N(l._fillExclusionElement);if(F){var Y=H(l._polygons);Y===null&&(Y={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=Gx.defaultLine;return Gx.opacity(l.fillcolor)?U=l.fillcolor:Gx.opacity((l.line||{}).color)&&(U=l.line.color),mp.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&&!mp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var VE=O((Axe,YE)=>{"use strict";var OE=wn();YE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!OE.hasMarkers(o)&&!OE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";GE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var JE=O((kxe,ZE)=>{"use strict";var e0=gr().traceIs,Ux=p2();ZE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(rse(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function rse(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=tse(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,XE(i,a)){var u=WE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(XE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function WE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function XE(e,r){var t=WE(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 KE=O((qxe,$E)=>{"use strict";var ase=yn().isTypedArraySpec;function nse(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||ase(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=nse(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var eP=O((Cxe,jE)=>{"use strict";var QE=Fn().mix,ise=In(),lse=Re();jE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return lse.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=QE(i,n.bgColor,n.blend||ise.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=QE(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 gp=O((Sxe,lP)=>{"use strict";var rP=zr(),ose=gr(),r0=Re(),sse=lt(),use=Yn(),Wx=_n(),tP=vd(),aP=hd(),fse=pd(),cse=md(),vse=KE(),hse=eP(),dse=N2(),nP=Dd(),yp=ia().WEEKDAY_PATTERN,pse=ia().HOUR_PATTERN;lP.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=ose.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"),nP(t,i),dse(r,t,a,n),vse(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Wx.color.dflt?m:o.color,b=s.label||i._dfltTitle[l];if(cse(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}}),tP(r,t,a,c);var _=n.hasMinor;if(_&&(sse.newContainer(t,"minor"),tP(r,t,a,c,{isMinor:!0})),fse(r,t,a,c,n),aP(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,aP(r,t,a,n),n.isMinor=w}hse(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Wx}),_&&!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(use(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:mse}),!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=iP(i[o]),s){l=yp;break}}var u=a("pattern",l);if(u===yp)for(o=0;o<2;o++)s=iP(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case yp:if(!rP(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 pse:if(!rP(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 gse=zr(),xp=Re();oP.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||(gse(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=xp.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=xp.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=xp.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),xp.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var mP=O((Dxe,pP)=>{"use strict";var Ps=Re(),sP=br(),xse=Oi().isUnifiedHover,bse=s3(),uP=lt(),_se=Du(),fP=_n(),wse=JE(),cP=gp(),Tse=qs(),vP=bp(),Zx=Xt(),rl=Zx.id2name,hP=Zx.name2id,Ase=ia().AX_ID_PATTERN,dP=gr(),_p=dP.traceIs,Xx=dP.getComponentMethod;function wp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}pP.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 Mse=kr(),yP=gr(),Tp=Re(),Cn=Yr(),Ap=Zr();gP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ap.redrawComponents(r);return}function l(y){var b=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Cn.setTranslate,0,0).call(Cn.setScale,1,1),y.plot.call(Cn.setTranslate,b._offset,_._offset).call(Cn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Cn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Cn.setTextPointsScale,1,1),w.call(Cn.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=Tp.simpleMap(y.xr0,w.r2l),R=Tp.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 F=Tp.simpleMap(y.yr0,x.r2l),Y=Tp.simpleMap(y.yr1,x.r2l),U=F[1]-F[0],G=Y[1]-Y[0];D[1]=(F[1]*(1-b)+b*Y[1]-F[1])/(F[0]-F[1])*k,D[3]=k*(1-b+b*G/U),x.range[0]=w.l2r(F[0]*(1-b)+b*Y[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*Y[1])}else D[1]=0,D[3]=k;Ap.drawOne(r,w,{skipTitle:!0}),Ap.drawOne(r,x,{skipTitle:!0}),Ap.redrawComponents(r,[w._id,x._id]);var V=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,he=x._offset-le;_.clipRect.call(Cn.setTranslate,J,X).call(Cn.setScale,1/V,1/B),_.plot.call(Cn.setTranslate,fe,he).call(Cn.setScale,V,B),Cn.setPointGroupScale(_.zoomScalePts,1/V,1/B),Cn.setTextPointsScale(_.zoomScaleTxt,1/V,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 Ml=O(za=>{"use strict";var kp=kr(),bP=gr(),Rs=Re(),kse=zt(),qse=Yr(),_P=kg().getModuleCalcData,ho=Xt(),qi=ia(),Cse=os(),Jr=Rs.ensureSingle;function Mp(e,r,t){return Rs.ensureSingle(e,r,t,function(a){a.datum(t)})}var zs=qi.zindexSeparator;za.name="cartesian";za.attr=["xaxis","yaxis"];za.idRoot=["x","y"];za.idRegex=qi.idRegex;za.attrRegex=qi.attrRegex;za.attributes=UE();za.layoutAttributes=_n();za.supplyLayoutDefaults=mP();za.transitionAxes=xP();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(zs)!==-1)continue;d+=zs+(u+1),h=Rs.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(A+=zs+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||(Mp(r.minorGridlayer,"g",r.xaxis._id),Mp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(ho.idSort),Mp(r.gridlayer,"g",r.xaxis._id),Mp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(ho.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function AP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=kp.select(this);f.remove(),MP(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 qp=wn();kP.exports={hasLines:qp.hasLines,hasMarkers:qp.hasMarkers,hasText:qp.hasText,isBubble:qp.isBubble,attributes:Ti(),layoutAttributes:td(),supplyDefaults:BD(),crossTraceDefaults:VD(),supplyLayoutDefaults:UD(),calc:Ex().calc,crossTraceCalc:yE(),arraysToCalcdata:qx(),plot:DE(),colorbar:dp(),formatLabels:RE(),style:Vx().style,styleOnSelect:Vx().styleOnSelect,hoverPoints:BE(),selectPoints:VE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ml(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var LP=O((zxe,SP)=>{"use strict";var Lse=kr(),Dse=br(),CP=K3(),Jx=Re(),Ese=Jx.strScale,Pse=Jx.strRotate,Rse=Jx.strTranslate;SP.exports=function(r,t,a){var n=r.node(),i=CP[a.arrowhead||0],l=CP[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+_*_)){F();return}if(c){if(c*c>b*b+_*_){F();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+_*_){F();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 DP=kr(),$x=gr(),zse=zt(),mo=Re(),Kx=mo.strTranslate,a0=Zr(),Ns=br(),kl=Yr(),EP=_i(),Qx=la(),jx=no(),t0=xi(),Nse=lt().arrayEditor,Fse=LP();zP.exports={draw:Ise,drawOne:PP,drawRaw:RP};function Ise(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ee="right":Ee="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ee]}for(var _e=!1,W=["x","y"],j=0;j1)&&(me===oe?(Ne=xe.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(_e=!0)):_e=!0),Oe=xe._offset+xe.r2p(r[Z]),we=.5}else{var Me=hr==="domain";Z==="x"?(ie=r[Z],Oe=Me?xe._offset+xe._length*ie:Oe=o.l+o.w*ie):(ie=1-r[Z],Oe=Me?xe._offset+xe._length*ie:Oe=o.t+o.h*ie),we=r.showarrow?.5:ie}if(r.showarrow){Pe.head=Oe;var Ce=r["a"+Z];if($e=ze*ge(.5,r.xanchor)-Se*ge(.5,r.yanchor),me===oe){var He=a0.getRefType(me);He==="domain"?(Z==="y"&&(Ce=1-Ce),Pe.tail=xe._offset+xe._length*Ce):He==="paper"?Z==="y"?(Ce=1-Ce,Pe.tail=o.t+o.h*Ce):Pe.tail=o.l+o.w*Ce:Pe.tail=xe._offset+xe.r2p(Ce),Ue=$e}else Pe.tail=Oe+Ce,Ue=$e+Ce;Pe.text=Pe.tail+$e;var Je=l[Z==="x"?"width":"height"];if(oe==="paper"&&(Pe.head=mo.constrain(Pe.head,1,Je-1)),me==="pixel"){var Ge=-Math.max(Pe.tail-3,Pe.text),Xe=Math.min(Pe.tail+3,Pe.text)-Je;Ge>0?(Pe.tail+=Ge,Pe.text+=Ge):Xe>0&&(Pe.tail-=Xe,Pe.text-=Xe)}Pe.tail+=We,Pe.head+=We}else $e=Ie*ge(we,Be),Ue=$e,Pe.text=Oe+$e;Pe.text+=We,$e+=We,Ue+=We,r["_"+Z+"padplus"]=Ie/2+Ue,r["_"+Z+"padminus"]=Ie/2-Ue,r["_"+Z+"size"]=Ie,r["_"+Z+"shift"]=$e}if(_e){M.remove();return}var lr=0,tr=0;if(r.align!=="left"&&(lr=(Q-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(tr=(qe-he)*(r.valign==="middle"?.5:1)),ee)X.select("svg").attr({x:E+lr-1,y:E+tr}).call(kl.setClipUrl,N?m:null,e);else{var Ke=E+tr-le.top,Fe=E+lr-le.left;U.call(Qx.positionText,Fe,Ke).call(kl.setClipUrl,N?m:null,e)}H.select("rect").call(kl.setRect,E,E,Q,qe),R.call(kl.setRect,S/2,S/2,ce-S,be-S),M.call(kl.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,Ee){_.selectAll(".annotation-arrow-g").remove();var ar=y.x.head,cr=y.y.head,sr=y.x.tail+Le,Mr=y.y.tail+Ee,Or=y.x.text+Le,et=y.y.text+Ee,ut=mo.rotationXYMatrix(b,Or,et),kt=mo.apply2DTransform(ut),_t=mo.apply2DTransform2(ut),Ht=+R.attr("width"),ra=+R.attr("height"),Ia=Or-.5*Ht,ma=Ia+Ht,ya=et-.5*ra,vr=ya+ra,ft=[[Ia,ya,Ia,vr],[Ia,vr,ma,vr],[ma,vr,ma,ya],[ma,ya,Ia,ya]].map(_t);if(!ft.reduce(function(qt,xa){return qt^!!mo.segmentsIntersect(ar,cr,ar+1e6,cr+1e6,xa[0],xa[1],xa[2],xa[3])},!1)){ft.forEach(function(qt){var xa=mo.segmentsIntersect(sr,Mr,ar,cr,qt[0],qt[1],qt[2],qt[3]);xa&&(sr=xa.x,Mr=xa.y)});var $r=r.arrowwidth,dt=r.arrowcolor,Pt=r.arrowside,At=_.append("g").style({opacity:Ns.opacity(dt)}).classed("annotation-arrow-g",!0),jr=At.append("path").attr("d","M"+sr+","+Mr+"L"+ar+","+cr).style("stroke-width",$r+"px").call(Ns.stroke,Ns.rgb(dt));if(Fse(jr,Pt,r),s.annotationPosition&&jr.node().parentNode&&!a){var ga=ar,En=cr;if(r.standoff){var ta=Math.sqrt(Math.pow(ar-sr,2)+Math.pow(cr-Mr,2));ga+=r.standoff*(sr-ar)/ta,En+=r.standoff*(Mr-cr)/ta}var Ni=At.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-ga)+","+(Mr-En),transform:Kx(ga,En)}).style("stroke-width",$r+6+"px").call(Ns.stroke,"rgba(0,0,0,0)").call(Ns.fill,"rgba(0,0,0,0)"),Pn,Rt;t0.init({element:Ni.node(),gd:e,prepFn:function(){var qt=kl.getTranslate(M);Pn=qt.x,Rt=qt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(qt,xa){var Ho=kt(Pn,Rt),Bo=Ho[0]+qt,Fl=Ho[1]+xa;M.call(kl.setTranslate,Bo,Fl),d("x",po(n,qt,"x",o,r)),d("y",po(i,xa,"y",o,r)),r.axref===r.xref&&d("ax",po(n,qt,"ax",o,r)),r.ayref===r.yref&&d("ay",po(i,xa,"ay",o,r)),At.attr("transform",Kx(qt,xa)),w.attr({transform:"rotate("+b+","+Bo+","+Fl+")"})},doneFn:function(){$x.call("_guiRelayout",e,p());var qt=document.querySelector(".js-notes-box-panel");qt&&qt.redraw(qt.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,Ee){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",po(n,Le,"ax",o,r)):d("ax",r.ax+Le),r.ayref===r.yref?d("ay",po(i,Ee,"ay",o.w,r)):d("ay",r.ay+Ee),ne(Le,Ee);else{if(a)return;var cr,sr;if(n)cr=po(n,Le,"x",o,r);else{var Mr=r._xsize/o.w,Or=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=t0.align(Or+Le/o.w,Mr,0,1,r.xanchor)}if(i)sr=po(i,Ee,"y",o,r);else{var et=r._ysize/o.h,ut=r.y-(r._yshift+r.yshift)/o.h-et/2;sr=t0.align(ut-Ee/o.h,et,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&(ar=t0.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:Kx(Le,Ee)+se}),jx(M,ar)},clickFn:function(Le,Ee){r.captureevents&&e.emit("plotly_clickannotation",k(Ee))},doneFn:function(){jx(M),$x.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?U.call(Qx.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(B){r.text=B,this.call(G),d("text",B),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),$x.call("_guiRelayout",e,p())}):U.call(G)}});var OP=O((Fxe,BP)=>{"use strict";var NP=Re(),Hse=gr(),FP=lt().arrayEditor;BP.exports={hasClickToShow:Bse,onClick:Ose};function Bse(e,r){var t=HP(e,r);return t.on.length>0||t.explicitOff.length>0}function Ose(e,r){var t=HP(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 eb=Re(),Cf=br();YP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Cf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),eb.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:Cf.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||(Cf.opacity(i)?Cf.rgb(i):Cf.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Cf.contrast(y)),_=eb.extendFlat({},m.font);_.color||(_.color=b),eb.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var GP=O((Hxe,VP)=>{"use strict";var tb=Re(),Fs=Zr(),Yse=Yn(),Vse=rb(),Gse=mf();VP.exports=function(r,t){Yse(r,t,{name:"annotations",handleItemDefaults:Use})};function Use(e,r,t){function a(w,x){return tb.coerce(e,r,Gse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Vse(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=Fs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=Fs.getFromId(u,h);d._annIndices.push(r._index)}if(Fs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,m=Fs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Fs.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(tb.noneOrAll(e,r,["x","y"]),l&&tb.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:Fs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:Fs.cleanPosition(_,u,r.yref)}}}});var XP=O((Bxe,WP)=>{"use strict";var ab=Re(),Is=Zr(),Wse=Cp().draw;WP.exports=function(r){var t=r._fullLayout,a=ab.filterVisible(t.annotations);if(a.length&&r._fullData.length)return ab.syncOrAsync([Wse,Xse],r)};function Xse(e){var r=e._fullLayout;ab.filterVisible(r.annotations).forEach(function(t){var a=Is.getFromId(e,t.xref),n=Is.getFromId(e,t.yref),i=Is.getRefType(t.xref),l=Is.getRefType(t.yref);t._extremes={},i==="range"&&UP(t,a),l==="range"&&UP(t,n)})}function UP(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 _=Is.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Is.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=Is.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var JP=O((Oxe,ZP)=>{"use strict";var Zse=zr(),Jse=kh();ZP.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=Jse(p,t.range):m=Math.pow(10,p),Zse(m)||(m=null),n(f+d,m)}for(var h=0;h{"use strict";var nb=Cp(),$P=OP();KP.exports={moduleType:"component",name:"annotations",layoutAttributes:mf(),supplyLayoutDefaults:GP(),includeBasePlot:zv()("annotations"),calcAutorange:XP(),draw:nb.draw,drawOne:nb.drawOne,drawRaw:nb.drawRaw,hasClickToShow:$P.hasClickToShow,onClick:$P.onClick,convertCoords:JP()}});var Sp=O((Vxe,jP)=>{"use strict";var ht=mf(),$se=vi().overrideAll,Kse=lt().templatedArray;jP.exports=$se(Kse("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 rR=O((Gxe,eR)=>{"use strict";var ib=Re(),Qse=Zr(),jse=Yn(),eue=rb(),rue=Sp();eR.exports=function(r,t,a){jse(r,t,{name:"annotations",handleItemDefaults:tue,fullLayout:a.fullLayout})};function tue(e,r,t,a){function n(o,s){return ib.coerce(e,r,rue,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Qse.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(eue(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),ib.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),ib.noneOrAll(e,r,["ax","ay"])))}});var iR=O((Uxe,nR)=>{"use strict";var tR=Re(),aR=Zr();nR.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function lb(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 nue(e,r){var t=lb(e.projection,lb(e.view,lb(e.model,[r[0],r[1],r[2],1])));return t}lR.exports=nue});var uR=O((Xxe,sR)=>{"use strict";var iue=Cp().drawRaw,lue=oR(),oue=["x","y","z"];sR.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=lue(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),iue(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var vR=O((Zxe,cR)=>{"use strict";var sue=gr(),fR=Re();cR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sp()}}},layoutAttributes:Sp(),handleDefaults:rR(),includeBasePlot:uue,convert:iR(),draw:uR()};function uue(e,r){var t=sue.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var Jxe=ia(),hR=aa(),dR=Ti().line,fue=hi().dash,Ci=mt().extendFlat,cue=lt().templatedArray,$xe=Pv(),Sf=an(),pR=mf(),{shapeTexttemplateAttrs:vue,templatefallbackAttrs:hue}=gn(),due=zh();mR.exports=cue("shape",{visible:Ci({},Sf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ci({},Sf.legend,{editType:"calc+arraydraw"}),legendgroup:Ci({},Sf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ci({},Sf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:hR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ci({},Sf.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ci({},Sf.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:Ci({},pR.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:Ci({},pR.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:Ci({},dR.color,{editType:"arraydraw"}),width:Ci({},dR.width,{editType:"calc+arraydraw"}),dash:Ci({},fue,{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:vue({},{keys:Object.keys(due)}),texttemplatefallback:hue({editType:"arraydraw"}),font:hR({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 gR=O((Qxe,yR)=>{"use strict";var Lf=Re(),Sn=Zr(),pue=Yn(),mue=ob(),n0=uo();yR.exports=function(r,t){pue(r,t,{name:"shapes",handleItemDefaults:gue})};function yue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function gue(e,r,t){function a(w,x){return Lf.coerce(e,r,mue,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Lf.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=Sn.coerceRefArray(e,r,k,w,void 0,"paper",H),r["_"+w+"refArray"]=!0}else E=Sn.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(H){Sn.getRefType(H)==="range"&&(M=Sn.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let F=E[H];Sn.getRefType(F)==="range"?(M=Sn.getFromId(k,F),S=n0.shapePositionToRange(M),D=n0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+H+"shift")):S=D=Lf.identity;let U=w+H,G=e[U];if(e[U]=S(e[U],!0),A==="pixel"?a(U,p[H]):Sn.coercePosition(r,k,a,F,U,d[H]),r[U]=D(r[U]),e[U]=G,H===0&&A==="pixel"){let V=e[x];e[x]=S(e[x],!0),Sn.coercePosition(r,k,a,F,x,.25),r[x]=D(r[x]),e[x]=V}});else{if(Sn.getRefType(E)==="range"?(M=Sn.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=Lf.identity,u){let F=w+"0",Y=w+"1",U=e[F],G=e[Y];e[F]=S(e[F],!0),e[Y]=S(e[Y],!0),A==="pixel"?(a(F,p[0]),a(Y,p[1])):(Sn.coercePosition(r,k,a,E,F,d[0]),Sn.coercePosition(r,k,a,E,Y,d[1])),r[F]=D(r[F]),r[Y]=D(r[Y]),e[F]=U,e[Y]=G}if(A==="pixel"){let F=e[x];e[x]=S(e[x],!0),Sn.coercePosition(r,k,a,E,x,.25),r[x]=D(r[x]),e[x]=F}}}),u&&Lf.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",yue(m,_)),a("label.padding"),Lf.coerceFont(a,"label.font",t.font)}}});var _R=O((jxe,bR)=>{"use strict";var xue=br(),xR=Re();function bue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}bR.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"),xR.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",xue.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",bue(l,u)),a("newshape.label.padding"),xR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var CR=O((ebe,qR)=>{"use strict";var sb=Re(),ti=Zr(),tl=hv(),ub=uo();qR.exports=function(r){var t=r._fullLayout,a=sb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=ti.getFromId(r,c),i._extremes[l._id]=ti.findExtremes(l,h,TR(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=ti.getFromId(r,i.xref),o=MR(l,i,tl.paramIsX),o&&(i._extremes[l._id]=ti.findExtremes(l,o,TR(i))));if(u==="array"){let f=wR(r,i,"y");Object.entries(f).forEach(([c,h])=>{l=ti.getFromId(r,c),i._extremes[l._id]=ti.findExtremes(l,h,AR(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=ti.getFromId(r,i.yref),o=MR(l,i,tl.paramIsY),o&&(i._extremes[l._id]=ti.findExtremes(l,o,AR(i))))}};function wR(e,r,t){let a=r[t+"ref"],n=t==="x"?tl.paramIsX:tl.paramIsY;function i(c,h){c==="paper"||ti.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(h))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(tl.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=ti.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=ub.decodeDate(f)),u[h._id]=l[c].map(f)}}return u}function TR(e){return kR(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function AR(e){return kR(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function kR(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?ub.extractPathCoords(n,i?tl.paramIsY:tl.paramIsX):[t,a],u=sb.aggNums(Math.max,null,s),f=sb.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 MR(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(tl.segmentRE),p,m,y,b,_;for(e.type==="date"&&(u=ub.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var DR=O((rbe,LR)=>{"use strict";var SR=x1();LR.exports={moduleType:"component",name:"shapes",layoutAttributes:ob(),supplyLayoutDefaults:gR(),supplyDrawNewShapeDefaults:_R(),includeBasePlot:zv()("shapes"),calcAutorange:CR(),draw:SR.draw,drawOne:SR.drawOne}});var fb=O((abe,PR)=>{"use strict";var ER=ia(),_ue=lt().templatedArray,tbe=Pv();PR.exports=_ue("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",ER.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ER.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var zR=O((nbe,RR)=>{"use strict";var wue=Re(),cb=Zr(),Tue=Yn(),Aue=fb(),Mue="images";RR.exports=function(r,t){var a={name:Mue,handleItemDefaults:kue};Tue(r,t,a)};function kue(e,r,t){function a(h,d){return wue.coerce(e,r,Aue,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=cb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=cb.getFromId(l,f);c._imgIndices.push(r._index)}cb.coercePosition(r,l,a,f,u,0)}return r}});var HR=O((ibe,IR)=>{"use strict";var NR=kr(),que=Yr(),Df=Zr(),FR=Xt(),Cue=os();IR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var BR=zr(),Sue=kh();OR.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";VR.exports={moduleType:"component",name:"images",layoutAttributes:fb(),supplyLayoutDefaults:zR(),includeBasePlot:zv()("images"),draw:HR(),convertCoords:YR()}});var Lp=O((sbe,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 vb=O((ube,XR)=>{"use strict";var Lue=aa(),Due=In(),Eue=mt().extendFlat,Pue=vi().overrideAll,Rue=Nh(),WR=lt().templatedArray,zue=WR("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}});XR.exports=Pue(WR("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:zue,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:Eue(Rue({editType:"arraydraw"}),{}),font:Lue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Due.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var KR=O((fbe,$R)=>{"use strict";var Dp=Re(),ZR=Yn(),JR=vb(),Nue=Lp(),Fue=Nue.name,Iue=JR.buttons;$R.exports=function(r,t){var a={name:Fue,handleItemDefaults:Hue};ZR(r,t,a)};function Hue(e,r,t){function a(l,o){return Dp.coerce(e,r,JR,l,o)}var n=ZR(e,r,{name:"buttons",handleItemDefaults:Bue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Dp.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Dp.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Bue(e,r){function t(n,i){return Dp.coerce(e,r,Iue,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 ez=O((cbe,jR)=>{"use strict";jR.exports=Mt;var Si=kr(),QR=br(),Ef=Yr(),Ep=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,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(QR.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,F=Mt.barWidth+2*Mt.barPad,Y=Mt.barLength+2*Mt.barPad,U=o+s,G=u;U+F>i&&(U=i-F);var V=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(QR.fill,Mt.barColor),H?(this.vbar=V.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:U,y:G,width:F,height:Y}),this._vbarYMin=G+Y/2,this._vbarTranslateMax=b-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var B=this.id,J=_-.5,X=H?w+F+.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(Ef.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(Ef.setClipUrl,null),delete this._clipRect),M||H){var he=Si.behavior.drag().on("dragstart",function(){Si.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(he);var Q=Si.behavior.drag().on("dragstart",function(){Si.event.sourceEvent.preventDefault(),Si.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Q),H&&this.vbar.on(".drag",null).call(Q)}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(Ef.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-=Si.event.dx),this.vbar&&(t-=Si.event.dy),this.setTranslate(r,t)};Mt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Si.event.deltaY),this.vbar&&(t+=Si.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=Ep.constrain(Si.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=Ep.constrain(Si.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=Ep.constrain(r||0,0,a),t=Ep.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ef.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(Ef.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Ef.setTranslate,r,t+l*this._vbarTranslateMax)}}});var fz=O((vbe,uz)=>{"use strict";var Pf=kr(),i0=zt(),l0=br(),Rf=Yr(),Ln=Re(),Pp=la(),Oue=lt().arrayEditor,tz=Aa().LINE_SPACING,wr=Lp(),Yue=ez();uz.exports=function(r){var t=r._fullLayout,a=Ln.filterVisible(t[wr.name]);function n(h){i0.autoMargin(r,oz(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(){Pf.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,Vue);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Ln.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var $ue=Lp();cz.exports={moduleType:"component",name:$ue.name,layoutAttributes:vb(),supplyLayoutDefaults:KR(),draw:fz()}});var s0=O((dbe,hz)=>{"use strict";hz.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 mb=O((pbe,mz)=>{"use strict";var dz=aa(),Kue=Nh(),Que=mt().extendDeepAll,jue=vi().overrideAll,efe=Pc(),pz=lt().templatedArray,Hs=s0(),rfe=pz("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}});mz.exports=jue(pz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:rfe,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:Que(Kue({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:efe.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:dz({})},font:dz({}),activebgcolor:{valType:"color",dflt:Hs.gripBgActiveColor},bgcolor:{valType:"color",dflt:Hs.railBgColor},bordercolor:{valType:"color",dflt:Hs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Hs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Hs.tickLength},tickcolor:{valType:"color",dflt:Hs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Hs.minorTickLength}}),"arraydraw","from-root")});var bz=O((mbe,xz)=>{"use strict";var zf=Re(),yz=Yn(),gz=mb(),tfe=s0(),afe=tfe.name,nfe=gz.steps;xz.exports=function(r,t){yz(r,t,{name:afe,handleItemDefaults:ife})};function ife(e,r,t){function a(c,h){return zf.coerce(e,r,gz,c,h)}for(var n=yz(e,r,{name:"steps",handleItemDefaults:lfe}),i=0,l=0;l{"use strict";var Li=kr(),Rp=zt(),yo=br(),Di=Yr(),Dn=Re(),ofe=Dn.strTranslate,u0=la(),sfe=lt().arrayEditor,Pr=s0(),xb=Aa(),Tz=xb.LINE_SPACING,yb=xb.FROM_TL,gb=xb.FROM_BR;Sz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=ufe(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),Rp.autoMargin(r,Az(f))}if(i.exit().each(function(){Li.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,ffe);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",ofe(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function bb(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function wz(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 yfe(e,r,t){var a=t._dims,n=Dn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(qz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(yo.fill,t.bgcolor).attr("opacity",0),Di.setTranslate(n,0,a.currentValueTotalHeight)}function gfe(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Dn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(yo.stroke,r.bordercolor).call(yo.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Di.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var Ez=O((gbe,Dz)=>{"use strict";var xfe=s0();Dz.exports={moduleType:"component",name:xfe.name,layoutAttributes:mb(),supplyLayoutDefaults:bz(),draw:Lz()}});var Np=O((xbe,Rz)=>{"use strict";var Pz=In();Rz.exports={bgcolor:{valType:"color",dflt:Pz.background,editType:"plot"},bordercolor:{valType:"color",dflt:Pz.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 _b=O((bbe,zz)=>{"use strict";zz.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 Fp=O((_be,Nz)=>{"use strict";Nz.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 Hz=O(Hp=>{"use strict";var bfe=Xt(),_fe=la(),Fz=Fp(),wfe=Aa().LINE_SPACING,Ip=Fz.name;function Iz(e){var r=e&&e[Ip];return r&&r.visible}Hp.isVisible=Iz;Hp.makeData=function(e){for(var r=bfe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Bp=Re(),Bz=lt(),Oz=Xt(),Tfe=Np(),Afe=_b();Yz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Bp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Bz.newContainer(i,"rangeslider");function s(A,k){return Bp.coerce(l,o,Tfe,A,k)}var u,f;function c(A,k){return Bp.coerce(u,f,Afe,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")))===Oz.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=Bp.simpleMap(p,Oz.id2name),y=0;y{"use strict";var Mfe=Xt().list,kfe=Qc().getAutoRange,qfe=Fp();Gz.exports=function(r){for(var t=Mfe(r,"x",!0),a=0;a{"use strict";var Op=kr(),Cfe=gr(),Sfe=zt(),Ft=Re(),Yp=Ft.strTranslate,Xz=Yr(),go=br(),Lfe=$c(),Dfe=Ml(),wb=Xt(),Efe=xi(),Pfe=no(),Hr=Fp();Zz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)U=R[G+1];else if(Y=V.pmax)U=R[G+1];else if(Y0?e.touches[0].clientX:0}function Rfe(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=Op.event,u=s.target,f=Wz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Efe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var _=Wz(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 Gfe=Re(),Ufe=Np(),Wfe=_b(),Tb=Hz();$z.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Gfe.extendFlat({},Ufe,{yaxis:Wfe})}}},layoutAttributes:Np(),handleDefaults:Vz(),calcAutorange:Uz(),draw:Jz(),isVisible:Tb.isVisible,makeData:Tb.makeData,autoMarginOpts:Tb.autoMarginOpts}});var Vp=O((qbe,jz)=>{"use strict";var Xfe=aa(),Qz=In(),Zfe=lt().templatedArray,Jfe=Zfe("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"});jz.exports={visible:{valType:"boolean",editType:"plot"},buttons:Jfe,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:Xfe({editType:"plot"}),bgcolor:{valType:"color",dflt:Qz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Qz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Ab=O((Cbe,eN)=>{"use strict";eN.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var aN=O((Sbe,tN)=>{"use strict";var Gp=Re(),$fe=br(),Kfe=lt(),Qfe=Yn(),rN=Vp(),Mb=Ab();tN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Kfe.newContainer(t,"rangeselector");function s(d,p){return Gp.coerce(l,o,rN,d,p)}var u=Qfe(l,o,{name:"buttons",handleItemDefaults:jfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=ece(t,a,n);s("x",c[0]),s("y",c[1]),Gp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Gp.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",$fe.contrast(h,Mb.lightAmount,Mb.darkAmount)),s("bordercolor"),s("borderwidth")}};function jfe(e,r,t,a){var n=a.calendar;function i(s,u){return Gp.coerce(e,r,rN.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 ece(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var rce=Ey(),tce=Re().titleCase;nN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=ace(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function ace(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=rce["utc"+tce(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 hN=O((Dbe,vN)=>{"use strict";var Wp=kr(),nce=gr(),ice=zt(),lN=br(),cN=Yr(),ql=Re(),oN=ql.strTranslate,Up=la(),lce=Xt(),Cb=Aa(),sN=Cb.LINE_SPACING,uN=Cb.FROM_TL,fN=Cb.FROM_BR,qb=Ab(),oce=iN();vN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(sce(r),uce);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(ql.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Wp.select(this),c=oce(l,u);u._isActive=fce(l,u,c),f.call(kb,o,u),f.call(vce,o,u,r),f.on("click",function(){r._dragged||nce.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(kb,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(kb,o,u)})}),dce(r,s,o,l._name,i)})};function sce(e){for(var r=lce.list(e,"x",!0),t=[],a=0;a{"use strict";dN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Vp()}}},layoutAttributes:Vp(),handleDefaults:aN(),draw:hN()}});var xo=O(Sb=>{"use strict";var mN=mt().extendFlat;Sb.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:mN({},t,{}),y:mN({},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};Sb.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 pce=Re(),mce=qu().counter,yce=xo().attributes,yN=ia().idRegex,gce=lt(),Lb={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:[mce("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[yN.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:yce({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 Xp(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 xce(e,r){var t=e.grid||{},a=Xp(r,t,"x"),n=Xp(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=gce.newContainer(r,"grid");function h(k,M){return pce.coerce(t,c,Lb,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:gN("x",h,_,x,p),y:gN("y",h,w,A,d,b)}}function gN(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";wN.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 MN=O((Nbe,AN)=>{"use strict";var TN=zr(),_ce=gr(),wce=Re(),Tce=lt(),Ace=Db();AN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Tce.newContainer(r,n),l=e[n]||{};function o(p,m){return wce.coerce(l,i,Ace,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||TN(l.thickness)||TN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",_ce.traceIs(r,"gl3d")?0:4))}}});var Eb=O((Fbe,qN)=>{"use strict";qN.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=kN(t,r.value),o=kN(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 kN(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 LN=O((Ibe,SN)=>{"use strict";var Pb=zr(),Mce=gr(),Rb=Zr(),kce=Re(),qce=Eb();SN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var DN=kr(),bo=zr(),Cce=Yr(),Sce=wn();EN.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=Sce.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=DN.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),Cce.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=DN.select(this),x=Lce(_,l,o);if(!(m&&!_.vis)){var A,k=w.select("path.yerror");if(d.visible&&bo(x.x)&&bo(x.yh)&&bo(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&&bo(x.y)&&bo(x.xh)&&bo(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 Lce(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),bo(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),bo(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var NN=O((Bbe,zN)=>{"use strict";var Dce=kr(),RN=br();zN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Dce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(RN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(RN.stroke,i.color)})}});var HN=O((Obe,IN)=>{"use strict";var f0=Re(),FN=vi().overrideAll,c0=Db(),Bs={error_x:f0.extendFlat({},c0),error_y:f0.extendFlat({},c0)};delete Bs.error_x.copy_zstyle;delete Bs.error_y.copy_zstyle;delete Bs.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;IN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bs,bar:Bs,histogram:Bs,scatter3d:FN(v0,"calc","nested"),scattergl:FN(Bs,"calc","nested")}},supplyDefaults:MN(),calc:LN(),makeComputeError:Eb(),plot:PN(),style:NN(),hoverInfo:Ece};function Ece(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 ON=O((Ybe,BN)=>{"use strict";BN.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 ZN=O((Vbe,XN)=>{"use strict";var _o=kr(),zb=Fn(),Jp=zt(),YN=gr(),Cl=Zr(),Zp=xi(),ai=Re(),Pi=ai.strTranslate,WN=mt().extendFlat,Nb=no(),Ei=Yr(),Fb=br(),Pce=$c(),Rce=la(),zce=bn().flipScale,Nce=gp(),Fce=bp(),Ice=_n(),Ib=Aa(),VN=Ib.LINE_SPACING,GN=Ib.FROM_TL,UN=Ib.FROM_BR,Tt=ON().cn;function Hce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Tt.colorbar).data(Bce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Tt.colorbar,!0),t.each(function(a){var n=_o.select(this);ai.ensureSingle(n,"rect",Tt.cbbg),ai.ensureSingle(n,"g",Tt.cbfills),ai.ensureSingle(n,"g",Tt.cblines),ai.ensureSingle(n,"g",Tt.cbaxis,function(l){l.classed(Tt.crisp,!0)}),ai.ensureSingle(n,"g",Tt.cbtitleunshift,function(l){l.append("g").classed(Tt.cbtitle,!0)}),ai.ensureSingle(n,"rect",Tt.cboutline);var i=Oce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Yce(n,a,e)}),t.exit().each(function(a){Jp.autoMargin(e,a._id)}).remove(),t.order()}function Bce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return WN(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?zce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var j=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));ge*=j*ai.roundUp(W/j,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=ge}ce.domain=a?[Q+p/x.h,Q+B-p/x.h]:[Q+d/x.w,Q+B-d/x.w],ce.setScale(),e.attr("transform",Pi(Math.round(x.l),Math.round(x.t)));var Z=e.select("."+Tt.cbtitleunshift).attr("transform",Pi(-Math.round(x.l),-Math.round(x.t))),oe=ce.ticklabelposition,me=ce.title.font.size,xe=e.select("."+Tt.cbaxis),De,ze=0,Se=0;function Ie(Ue,ie){var we={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Tt.cbtitle)},$e=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+$e+",."+$e+"-math-group").remove(),Pce.draw(t,Ue,WN(we,ie||{}))}function Be(){if(a&&be||!a&&!be){var Ue,ie;S==="top"&&(Ue=d+x.l+J*m,ie=p+x.t+X*(1-Q-B)+3+me*.75),S==="bottom"&&(Ue=d+x.l+J*m,ie=p+x.t+X*(1-Q)-3-me*.25),S==="right"&&(ie=p+x.t+X*y+3+me*.75,Ue=d+x.l+J*Q),Ie(ce._id+"title",{attributes:{x:Ue,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Ue=ce.position||0,ie=ce._offset+ce._length/2,we,$e;if(S==="right")$e=ie,we=x.l+J*Ue+10+me*(ce.showticklabels?1:.5);else if(we=ie,S==="bottom"&&($e=x.t+X*Ue+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*Ue+10-U-VN*me*hr}Ie((a?"h":"v")+ce._id+"title",{avoid:{selection:_o.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 Pe(){if(!a&&!be||a&&be){var Ue=e.select("."+Tt.cbtitle),ie=Ue.select("text"),we=[-s/2,s/2],$e=Ue.select(".h"+ce._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*VN);var Ne;if($e?(Ne=Ei.bBox($e),Se=Ne.width,ze=Ne.height,ze>hr&&(we[1]-=(ze-hr)/2)):ie.node()&&!ie.classed(Tt.jsPlaceholder)&&(Ne=Ei.bBox(ie.node()),Se=Ne.width,ze=Ne.height),a){if(ze){if(ze+=5,S==="top")ce.domain[1]-=ze/x.h,we[1]*=-1;else{ce.domain[0]+=ze/x.h;var Me=Rce.lineCount(ie);we[1]+=(1-Me)*hr}Ue.attr("transform",Pi(we[0],we[1])),ce.setScale()}}else Se&&(S==="right"&&(ce.domain[0]+=(Se+me/2)/x.w),Ue.attr("transform",Pi(we[0],we[1])),ce.setScale())}e.selectAll("."+Tt.cbfills+",."+Tt.cblines).attr("transform",a?Pi(0,Math.round(x.h*(1-ce.domain[1]))):Pi(Math.round(x.w*ce.domain[0]),0)),xe.attr("transform",a?Pi(0,Math.round(-x.t)):Pi(Math.round(-x.l),0));var Ce=e.select("."+Tt.cbfills).selectAll("rect."+Tt.cbfill).attr("style","").data(F);Ce.enter().append("rect").classed(Tt.cbfill,!0).attr("style",""),Ce.exit().remove();var He=D.map(ce.c2p).map(Math.round).sort(function(tr,Ke){return tr-Ke});Ce.each(function(tr,Ke){var Fe=[Ke===0?D[0]:(F[Ke]+F[Ke-1])/2,Ke===F.length-1?D[1]:(F[Ke]+F[Ke+1])/2].map(ce.c2p).map(Math.round);a&&(Fe[1]=ai.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,He[0],He[1]));var ne=_o.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",_o.min(Fe)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(_o.max(Fe)-_o.min(Fe),2));if(r._fillgradient)Ei.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var se=R(tr).replace("e-","");ne.attr("fill",zb(se).toHexString())}});var Je=e.select("."+Tt.cblines).selectAll("path."+Tt.cbline).data(k.color&&k.width?Y:[]);Je.enter().append("path").classed(Tt.cbline,!0),Je.exit().remove(),Je.each(function(tr){var Ke=ee,Fe=Math.round(ce.c2p(tr))+k.width/2%1;_o.select(this).attr("d","M"+(a?Ke+","+Fe:Fe+","+Ke)+(a?"h":"v")+U).call(Ei.lineGroupStyle,k.width,E(tr),k.dash)}),xe.selectAll("g."+ce._id+"tick,path").remove();var Ge=ee+U+(s||0)/2-(r.ticks==="outside"?1:0),Xe=Cl.calcTicks(ce),lr=Cl.getTickSigns(ce)[2];return Cl.drawTicks(t,ce,{vals:ce.ticks==="inside"?Cl.clipEnds(ce,Xe):Xe,layer:xe,path:Cl.makeTickPath(ce,Ge,lr),transFn:Cl.makeTransTickFn(ce)}),Cl.drawLabels(t,ce,{vals:Xe,layer:xe,transFn:Cl.makeTransTickLabelFn(ce),labelFns:Cl.makeLabelFns(ce,Ge)})}function Oe(){var Ue,ie=U+s/2;oe.indexOf("inside")===-1&&(Ue=Ei.bBox(xe.node()),ie+=a?Ue.width:Ue.height),De=Z.select("text");var we=0,$e=a&&S==="top",hr=!a&&S==="right",Ne=0;if(De.node()&&!De.classed(Tt.jsPlaceholder)){var Me,Ce=Z.select(".h"+ce._id+"title-math-group").node();Ce&&(a&&be||!a&&!be)?(Ue=Ei.bBox(Ce),we=Ue.width,Me=Ue.height):(Ue=Ei.bBox(Z.node()),we=Ue.right-x.l-(a?ee:qe),Me=Ue.bottom-x.t-(a?qe:ee),!a&&S==="top"&&(ie+=Ue.height,Ne=Ue.height)),hr&&(De.attr("transform",Pi(we/2+me/2,0)),we*=2),ie=Math.max(ie,a?we:Me)}var He=(a?d:p)*2+ie+u+s/2,Je=0;!a&&M.text&&h==="bottom"&&y<=0&&(Je=He/2,He+=Je,Ne+=Je),w._hColorbarMoveTitle=Je,w._hColorbarMoveCBTitle=Ne;var Ge=u+s,Xe=(a?ee:qe)-Ge/2-(a?d:0),lr=(a?qe:ee)-(a?V:p+Ne-Je);e.select("."+Tt.cbbg).attr("x",Xe).attr("y",lr).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(V+Ge,2)).call(Fb.fill,f).call(Fb.stroke,r.bordercolor).style("stroke-width",u);var tr=hr?Math.max(we-10,0):0;e.selectAll("."+Tt.cboutline).attr("x",(a?ee:qe+d)+tr).attr("y",(a?qe+p-V:ee)+($e?ze:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(V-(a?2*p+ze:2*d+tr),2)).call(Fb.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?le*He:0,Fe=a?0:(1-fe)*He-Ne;if(Ke=_?x.l-Ke:-Ke,Fe=b?x.t-Fe:-Fe,e.attr("transform",Pi(Ke,Fe)),!a&&(u||zb(f).getAlpha()&&!zb.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),se=ne[0].length,Le=e.select("."+Tt.cbbg).node(),Ee=Ei.bBox(Le),ar=Ei.getTranslate(e),cr=2;ne.each(function(Ia,ma){var ya=0,vr=se-1;if(ma===ya||ma===vr){var ft=Ei.bBox(this),$r=Ei.getTranslate(this),dt;if(ma===vr){var Pt=ft.right+$r.x,At=Ee.right+ar.x+qe-u-cr+m;dt=At-Pt,dt>0&&(dt=0)}else if(ma===ya){var jr=ft.left+$r.x,ga=Ee.left+ar.x+qe+u+cr;dt=ga-jr,dt<0&&(dt=0)}dt&&(se<3?this.setAttribute("transform","translate("+dt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=GN[c],Or=UN[c],et=GN[h],ut=UN[h],kt=He-U;a?(i==="pixels"?(sr.y=y,sr.t=V*et,sr.b=V*ut):(sr.t=sr.b=0,sr.yt=y+n*et,sr.yb=y-n*ut),o==="pixels"?(sr.x=m,sr.l=He*Mr,sr.r=He*Or):(sr.l=kt*Mr,sr.r=kt*Or,sr.xl=m-l*Mr,sr.xr=m+l*Or)):(i==="pixels"?(sr.x=m,sr.l=V*Mr,sr.r=V*Or):(sr.l=sr.r=0,sr.xl=m+n*Mr,sr.xr=m-n*Or),o==="pixels"?(sr.y=1-y,sr.t=He*et,sr.b=He*ut):(sr.t=kt*et,sr.b=kt*ut,sr.yt=y-l*et,sr.yb=y+l*ut));var _t=r.y<.5?"b":"t",Ht=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var ra={r:w.width-Xe-Ke,l:Xe+sr.r,b:w.height-lr-Fe,t:lr+sr.b};_&&b?Jp.autoMargin(t,r._id,sr):_?t._fullLayout._reservedMargin[r._id][_t]=ra[_t]:b||a?t._fullLayout._reservedMargin[r._id][Ht]=ra[Ht]:t._fullLayout._reservedMargin[r._id][_t]=ra[_t]}return ai.syncOrAsync([Jp.previousPromises,Be,Pe,We,Jp.previousPromises,Oe],t)}function Yce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Zp.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),Nb(e)},moveFn:function(u,f){e.attr("transform",l+Pi(u,f)),o=Zp.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Zp.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Zp.getCursor(o,s,r.xanchor,r.yanchor);Nb(e,c)},doneFn:function(){if(Nb(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?YN.call("_guiRestyle",t,u,r._traceIndex):YN.call("_guiRelayout",t,u)}}})}function Vce(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:fd(),supplyDefaults:Ug(),draw:ZN().draw,hasColorbar:Ig()}});var QN=O((Ube,KN)=>{"use strict";KN.exports={moduleType:"component",name:"legend",layoutAttributes:Y2(),supplyLayoutDefaults:G2(),draw:a3(),style:j2()}});var eF=O((Wbe,jN)=>{"use strict";jN.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 tF=O((Xbe,rF)=>{"use strict";rF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Bb=O((Zbe,lF)=>{"use strict";var Uce=gr(),iF=Re(),Hb=iF.extendFlat,aF=iF.extendDeep;function nF(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 Wce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}lF.exports=function(r,t){var a,n=r.data,i=r.layout,l=aF([],n),o=aF({},i,nF(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 Xce=Kh().EventEmitter,Zce=gr(),Jce=Re(),oF=Cs(),$ce=Bb(),Kce=tp(),Qce=ap();function jce(e,r){var t=new Xce,a=$ce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=oF.getDelay(n._fullLayout);setTimeout(function(){var s=Kce(n),u=document.createElement("canvas");u.id=Jce.randstr(),t=Qce({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=oF.getRedrawFunc(n);return Zce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}sF.exports=jce});var vF=O(($be,cF)=>{"use strict";var fF=Cs(),eve={getDelay:fF.getDelay,getRedrawFunc:fF.getRedrawFunc,clone:Bb(),toSVG:tp(),svgToImg:ap(),toImage:uF(),downloadImage:wx()};cF.exports=eve});var dF=O(Sl=>{"use strict";Sl.version=mh().version;i6();Z8();var rve=gr(),h0=Sl.register=rve.register,Yb=pD(),hF=Object.keys(Yb);for($p=0;$p{"use strict";pF.exports=dF()});var Ll=O((jbe,_F)=>{"use strict";var Dt=Ti(),yF=yi().axisHoverFormat,{hovertemplateAttrs:tve,texttemplateAttrs:ave,templatefallbackAttrs:gF}=gn(),bF=Wc(),nve=aa(),xF=$v(),ive=hi().pattern,Os=mt().extendFlat,Vb=nve({editType:"calc",arrayOk:!0,colorEditType:"style"}),lve=Dt.marker,ove=lve.line,sve=Os({},ove.width,{dflt:0}),uve=Os({width:sve,editType:"calc"},bF("marker.line")),fve=Os({line:uve,editType:"calc"},bF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:ive,cornerradius:{valType:"any",editType:"calc"}});_F.exports={x:Dt.x,x0:Dt.x0,dx:Dt.dx,y:Dt.y,y0:Dt.y0,dy:Dt.dy,xperiod:Dt.xperiod,yperiod:Dt.yperiod,xperiod0:Dt.xperiod0,yperiod0:Dt.yperiod0,xperiodalignment:Dt.xperiodalignment,yperiodalignment:Dt.yperiodalignment,xhoverformat:yF("x"),yhoverformat:yF("y"),text:Dt.text,texttemplate:ave({editType:"plot"},{keys:xF.eventDataKeys}),texttemplatefallback:gF({editType:"plot"}),hovertext:Dt.hovertext,hovertemplate:tve({},{keys:xF.eventDataKeys}),hovertemplatefallback:gF(),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:Os({},Vb,{}),insidetextfont:Os({},Vb,{}),outsidetextfont:Os({},Vb,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Os({},Dt.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:fve,offsetgroup:Dt.offsetgroup,alignmentgroup:Dt.alignmentgroup,selected:{marker:{opacity:Dt.selected.marker.opacity,color:Dt.selected.marker.color,editType:"style"},textfont:Dt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Dt.unselected.marker.opacity,color:Dt.unselected.marker.color,editType:"style"},textfont:Dt.unselected.textfont,editType:"style"},zorder:Dt.zorder}});var Qp=O((e5e,wF)=>{"use strict";wF.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 Gb=O((r5e,MF)=>{"use strict";var cve=br(),TF=bn().hasColorscale,AF=Wu(),vve=Re().coercePattern;MF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=TF(r,"marker");o&&AF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",cve.defaultLine),TF(r,"marker.line")&&AF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),vve(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var al=O((t5e,DF)=>{"use strict";var kF=zr(),Ff=Re(),qF=br(),hve=gr(),dve=Xv(),pve=Ds(),mve=Gb(),yve=bf(),CF=Ll(),jp=Ff.coerceFont;function gve(e,r,t,a){function n(u,f){return Ff.coerce(e,r,CF,u,f)}var i=dve(e,r,a,n);if(!i){r.visible=!1;return}pve(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");LF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),mve(e,r,n,t,a);var o=(r.marker.line||{}).color,s=hve.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||qF.defaultLine,{axis:"y"}),s(e,r,o||qF.defaultLine,{axis:"x",inherit:"y"}),Ff.coerceSelectionMarkerOpacity(r,n)}function xve(e,r){var t,a;function n(o,s){return Ff.coerce(a._input,a,CF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&kF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function LF(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=jp(a,"textfont",t.font),b=Ff.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,jp(a,"insidetextfont",b),h){var x=Ff.extendFlat({},y);w&&delete x.color,jp(a,"pathbar.textfont",x)}m&&jp(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")}DF.exports={supplyDefaults:gve,crossTraceDefaults:xve,handleText:LF,validateCornerradius:SF}});var Ub=O((a5e,EF)=>{"use strict";var bve=gr(),_ve=Zr(),wve=Re(),Tve=Qp(),Ave=al().validateCornerradius;EF.exports=function(e,r,t){function a(m,y){return wve.coerce(e,r,Tve,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=_ve.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=Ave(p)}});var em=O((n5e,PF)=>{"use strict";var If=Re();PF.exports=function(r,t){for(var a=0;a{"use strict";var RF=Zr(),zF=Es(),NF=bn().hasColorscale,FF=Xc(),Mve=em(),kve=Zv();IF.exports=function(r,t){var a=RF.getFromId(r,t.xaxis||"x"),n=RF.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=zF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=zF(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 qve=kr(),Cve=Re();function Sve(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=qve.select(this).select("text");Cve.setTransormAndDisplay(u,s)}})}}function Lve(e,r,t){if(t.uniformtext.mode){var a=BF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Eve=zr(),Pve=Fn(),YF=Re().isArrayOrTypedArray;Ys.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};Ys.coerceNumber=function(e,r,t){if(Eve(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};Ys.coerceColor=function(e,r,t){return Pve(r).isValid()?r:t!==void 0?t:e.dflt};Ys.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ys.getValue=function(e,r){var t;return YF(e)?r{"use strict";var d0=kr(),Rve=br(),p0=Yr(),VF=Re(),GF=gr(),UF=Ri().resizeText,Wb=Ll(),zve=Wb.textfont,Nve=Wb.insidetextfont,Fve=Wb.outsidetextfont,Ca=rm();function Ive(e){var r=d0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");UF(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;WF(i,l,e)}),GF.getComponentMethod("errorbars","style")(r)}function WF(e,r,t){p0.pointStyle(e.selectAll("path"),r,t),XF(e,r,t)}function XF(e,r,t){e.selectAll("text").each(function(a){var n=d0.select(this),i=VF.ensureUniformFontSize(t,ZF(n,a,r,t));p0.font(n,i)})}function Hve(e,r,t){var a=r[0].trace;a.selectedpoints?Bve(t,a,e):(WF(t,a,e),GF.getComponentMethod("errorbars","style")(t))}function Bve(e,r,t){p0.selectedPointStyle(e.selectAll("path"),r),Ove(e.selectAll("text"),r,t)}function Ove(e,r,t){e.each(function(a){var n=d0.select(this),i;if(a.selected){i=VF.ensureUniformFontSize(t,ZF(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 ZF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=QF(r,t);i=$F(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=KF(t,r.i,n));return i}function JF(e,r,t){return Xb(zve,e.textfont,r,t)}function $F(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:Rve.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}),Xb(Nve,e.insidetextfont,r,n)}function KF(e,r,t){var a=JF(e,r,t);return Xb(Fve,e.outsidetextfont,r,a)}function Xb(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 QF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}jF.exports={style:Ive,styleTextPoints:XF,styleOnSelect:Hve,getInsideTextFont:$F,getOutsideTextFont:KF,getBarColor:QF,resizeText:UF}});var Bf=O((u5e,oI)=>{"use strict";var tm=kr(),am=zr(),da=Re(),Yve=la(),Vve=br(),To=Yr(),Gve=gr(),nm=Zr().tickText,eI=Ri(),Uve=eI.recordMinTextSize,Wve=eI.clearMinTextSize,Zb=wo(),Hf=rm(),Xve=$v(),rI=Ll(),Zve=rI.text,Jve=rI.textposition,$ve=Oi().appendArrayPointValue,Za=Xve.TEXTPAD;function Kve(e){return e.id}function Qve(e){if(e.ids)return Kve}function Jb(e){return(e>0)-(e<0)}function nl(e,r){return e0}function e0e(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},Wve("bar",s));var f=da.makeTraceGroups(a,t,"trace bars").each(function(c){var h=tm.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=aI(n),M=da.ensureSingle(h,"g","points"),S=Qve(d),D=M.selectAll("g.point").data(da.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var H=tm.select(this),F=jve(R,l,o,A),Y=F[0][0],U=F[0][1],G=F[1][0],V=F[1][1],B=(A?U-Y:V-G)===0;B&&w&&Hf.getLineWidth(d,R)&&(B=!1),B||(B=!am(Y)||!am(U)||!am(G)||!am(V)),R.isBlank=B,B&&(A?U=Y:V=G),x&&!B&&(A?(Y-=nl(Y,U)*x,U+=nl(Y,U)*x):(G-=nl(G,V)*x,V+=nl(G,V)*x));var J,X;if(d.type==="waterfall"){if(!B){var ee=d[R.dir].marker;J=ee.line.width,X=ee.color}}else J=Hf.getLineWidth(d,R),X=R.mc||d.marker.color;function le(ie){var we=tm.round(J/2%1,2);return n.gap===0&&n.groupgap===0?tm.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 he=Vve.opacity(X),Q=he<1||J>.01?le:fe;e._context.staticPlot||(Y=Q(Y,U,A),U=Q(U,Y,A),G=Q(G,V,!A),V=Q(V,G,!A));var qe=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?V-G:U-Y),hr=Math.abs(A?U-Y:V-G),Ne=Q(Math.abs(qe(ce,!0)-qe(0,!0))),Me=R.hasB?Math.min($e/2,hr/2):Math.min($e/2,Ne),Ce;if(we==="%"){var He=Math.min(50,ie);Ce=$e*(He/100)}else Ce=ie;return Q(Math.max(Math.min(Ce,Me),0))}var ge=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,_e,W,j="M"+Y+","+G+"V"+V+"H"+U+"V"+G+"Z",Z=0;if(ge&&R.s){var oe=Jb(R.s0)===0||Jb(R.s)===Jb(R.s0)?R.s1:R.s0;if(Z=Q(R.hasB?0:Math.abs(qe(ce,!0)-qe(oe,!0))),Z0?Math.sqrt(Z*(2*ge-Z)):0,Ie=me>0?Math.max:Math.min;_e="M"+Y+","+G+"V"+(V-ze*xe)+"H"+Ie(U-(ge-Z)*me,Y)+"A "+ge+","+ge+" 0 0 "+De+" "+U+","+(V-ge*xe-Se)+"V"+(G+ge*xe+Se)+"A "+ge+","+ge+" 0 0 "+De+" "+Ie(U-(ge-Z)*me,Y)+","+(G+ze*xe)+"Z"}else if(R.hasB)_e="M"+(Y+ge*me)+","+G+"A "+ge+","+ge+" 0 0 "+De+" "+Y+","+(G+ge*xe)+"V"+(V-ge*xe)+"A "+ge+","+ge+" 0 0 "+De+" "+(Y+ge*me)+","+V+"H"+(U-ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+U+","+(V-ge*xe)+"V"+(G+ge*xe)+"A "+ge+","+ge+" 0 0 "+De+" "+(U-ge*me)+","+G+"Z";else{W=Math.abs(V-G)+Z;var Be=W0?Math.sqrt(Z*(2*ge-Z)):0,Pe=xe>0?Math.max:Math.min;_e="M"+(Y+Be*me)+","+G+"V"+Pe(V-(ge-Z)*xe,G)+"A "+ge+","+ge+" 0 0 "+De+" "+(Y+ge*me-We)+","+V+"H"+(U-ge*me+We)+"A "+ge+","+ge+" 0 0 "+De+" "+(U-Be*me)+","+Pe(V-(ge-Z)*xe,G)+"V"+G+"Z"}}else _e=j}else _e=j;var Oe=tI(da.ensureSingle(H,"path"),s,n,i);if(Oe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-Y)*(V-G))||B&&e._context.staticPlot?"M0,0Z":_e).call(To.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ue=To.makePointStyleFns(d);To.singlePointStyle(R,Oe,d,Ue,e)}r0e(e,r,H,c,N,Y,U,G,V,ge,Z,n,i),r.layerClipId&&To.hideOutsideRangePoint(R,H.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;To.setClipUrl(h,E?null:r.layerClipId,e)});Gve.getComponentMethod("errorbars","plot")(e,f,r,n)}function r0e(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,j,Z){var oe=da.ensureSingle(W,"text").text(j).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(To.font,Z).call(Yve.convertToTspans,e);return oe}var _=a[0].trace,w=_.orientation==="h",x=n0e(m,a,n,d,p);y=i0e(_,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=Zb.getBarColor(a[n],_),N=Zb.getInsideTextFont(_,n,E,R),H=Zb.getOutsideTextFont(_,n,E),F=_.insidetextanchor||"end",Y=t.datum();w?d.type==="log"&&Y.s0<=0&&(d.range[0]0&&le>0,Q;D?S?Q=Vs(V-2*u,B,ee,le,w)||Vs(V,B-2*u,ee,le,w):w?Q=Vs(V-(u-f),B,ee,le,w)||Vs(V,B-2*(u-f),ee,le,w):Q=Vs(V,B-(u-f),ee,le,w)||Vs(V-2*(u-f),B,ee,le,w):Q=Vs(V,B,ee,le,w),he&&Q?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){fe=da.ensureUniformFontSize(e,y==="outside"?H:N),J=b(t,x,fe);var qe=J.attr("transform");if(J.attr("transform",""),X=To.bBox(J.node()),ee=X.width,le=X.height,J.attr("transform",qe),ee<=0||le<=0){J.remove();return}}var ce=_.textangle,be,ge;y==="outside"?(ge=_.constraintext==="both"||_.constraintext==="outside",be=a0e(i,l,o,s,X,{isHorizontal:w,constrained:ge,angle:ce})):(ge=_.constraintext==="both"||_.constraintext==="inside",be=lI(i,l,o,s,X,{isHorizontal:w,constrained:ge,angle:ce,anchor:F,hasB:S,r:u,overhead:f})),be.fontSize=fe.size,Uve(_.type==="histogram"?"bar":_.type,be,m),k.transform=be;var _e=tI(J,m,c,h);da.setTransormAndDisplay(_e,be)}function Vs(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 nI(e){return e==="auto"?0:e}function iI(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 lI(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*Za&&A>2*Za?Za:0;x-=2*k,A-=2*k;var M=nI(s);s==="auto"&&!(_<=x&&w<=A)&&(_>x||w>A)&&(!(_>A||w>x)||_Za){var R=t0e(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,F=(e+Za)*p+(r-Za)*d,Y=(t+a)/2,U=0,G=0;if(c||f){var V=(l?S.x:S.y)/2;y&&(f||m)&&(k+=E);var B=l?nl(e,r):nl(t,a);l?c?(F=e+B*k,U=-B*V):(F=r-B*k,U=B*V):c?(Y=t+B*k,G=-B*V):(Y=a-B*k,G=B*V)}return{textX:N,textY:H,targetX:F,targetY:Y,anchorX:U,anchorY:G,scale:D,rotate:M}}function t0e(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,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 a0e(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*Za?Za:0:d=c>2*Za?Za:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var m=nI(s),y=iI(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?nl(r,e):nl(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 n0e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=l0e(e,r,t,a,n):i.textinfo?o=o0e(r,t,a,n):o=Hf.getValue(i.text,t),Hf.coerceString(Zve,o)}function i0e(e,r){var t=Hf.getValue(e.textposition,r);return Hf.coerceEnumerated(Jve,t)}function l0e(e,r,t,a,n){var i=r[0].trace,l=da.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 nm(h,h.c2l(k),!0).text}function y(k){return nm(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=m(b.p);var w=da.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=y(b.s);var x={};$ve(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=da.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=da.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=da.formatPercent(b.sumR));var A=da.castOption(i,b.i,"customdata");return A&&(_.customdata=A),da.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function o0e(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 nm(k,A,!0).text}function u(A){var k=i?t:a;return nm(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=da.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=da.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=da.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=da.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}oI.exports={plot:e0e,toMoveInsideBar:lI}});var y0=O((f5e,cI)=>{"use strict";var m0=_i(),s0e=gr(),sI=br(),u0e=Re().fillText,f0e=rm().getLineWidth,$b=Zr().hoverLabelText,c0e=wt().BADNUM;function v0e(e,r,t,a,n){var i=uI(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=fI(o,s),s0e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function uI(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(Q){return M(Q,-1)}function k(Q){return M(Q,1)}function M(Q,qe){var ce=Q.w;return Q[p]+qe*ce/2}function S(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?A:w?function(Q){return Q.p-S(Q)/2}:function(Q){return Math.min(A(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+S(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,qe,ce){return n.finiteRange&&(ce=0),m0.inbox(Q-h,qe-h,ce+Math.min(1,Math.abs(qe-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function H(Q){return R(A(Q),k(Q),c)}function F(Q){var qe=Q[m];if(u){var ce=Math.abs(Q.rawS)||0;d>0?qe+=ce:d<0&&(qe-=ce)}return qe}function Y(Q){var qe=d,ce=Q.b,be=F(Q);return m0.inbox(ce-qe,be-qe,f+(be-qe)/(be-ce)-1)}function U(Q){var qe=d,ce=Q.b,be=F(Q);return m0.inbox(ce-qe,be-qe,c+(be-qe)/(be-ce)-1)}var G=e[p+"a"],V=e[m+"a"];_=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function B(Q){return(y(Q)+b(Q))/2}var J=m0.getDistanceFunction(a,y,b,B);if(m0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==c0e){x||(D=function(Q){return Math.min(A(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.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"]=V.c2p(ee[m],!0),e[m+"LabelVal"]=le;var fe=o.extents[o.extents.round(ee.p)];e[p+"0"]=G.c2p(s?D(ee):fe[0],!0),e[p+"1"]=G.c2p(s?E(ee):fe[1],!0);var he=ee.orig_p!==void 0;return e[p+"LabelVal"]=he?ee.orig_p:ee.p,e.labelLabel=$b(G,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=$b(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=$b(V,ee.b,l[m+"hoverformat"]),e.spikeDistance=(U(ee)+H(ee))/2,e[p+"Spike"]=G.c2p(ee.p,!0),u0e(ee,l,e),e.hovertemplate=l.hovertemplate,e}}function fI(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=f0e(e,r);if(sI.opacity(t))return t;if(sI.opacity(a)&&n)return a}cI.exports={hoverPoints:v0e,hoverOnBars:uI,getTraceColor:fI}});var hI=O((c5e,vI)=>{"use strict";vI.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((v5e,dI)=>{"use strict";dI.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";pI.exports={attributes:Ll(),layoutAttributes:Qp(),supplyDefaults:al().supplyDefaults,crossTraceDefaults:al().crossTraceDefaults,supplyLayoutDefaults:Ub(),calc:HF(),crossTraceCalc:Tf().crossTraceCalc,colorbar:dp(),arraysToCalcdata:em(),plot:Bf().plot,style:wo().style,styleOnSelect:wo().styleOnSelect,hoverPoints:y0().hoverPoints,eventData:hI(),selectPoints:g0(),moduleType:"trace",name:"bar",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var gI=O((d5e,yI)=>{"use strict";yI.exports=mI()});var bI=O((p5e,xI)=>{"use strict";xI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var wI=O((m5e,_I)=>{"use strict";_I.exports={eventDataKeys:["binNumber"]}});var jb=O((y5e,kI)=>{"use strict";var dn=Ll(),TI=yi().axisHoverFormat,{hovertemplateAttrs:d0e,texttemplateAttrs:p0e,templatefallbackAttrs:AI}=gn(),Kb=aa(),MI=bI(),m0e=wI(),Qb=mt().extendFlat;kI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:TI("x"),yhoverformat:TI("y"),text:Qb({},dn.text,{}),hovertext:Qb({},dn.hovertext,{}),orientation:dn.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:MI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:MI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:d0e({},{keys:m0e.eventDataKeys}),hovertemplatefallback:AI(),texttemplate:p0e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:AI({editType:"plot"}),textposition:Qb({},dn.textposition,{arrayOk:!1}),textfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:Kb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:dn.insidetextanchor,textangle:dn.textangle,cliponaxis:dn.cliponaxis,constraintext:dn.constraintext,marker:dn.marker,offsetgroup:dn.offsetgroup,alignmentgroup:dn.alignmentgroup,selected:dn.selected,unselected:dn.unselected,zorder:dn.zorder}});var LI=O((g5e,SI)=>{"use strict";var qI=gr(),x0=Re(),CI=br(),y0e=al().handleText,g0e=Gb(),x0e=jb();SI.exports=function(r,t,a,n){function i(_,w){return x0.coerce(r,t,x0e,_,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");y0e(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=qI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[h];m&&i("histfunc"),i("histnorm"),i("autobin"+c),g0e(r,t,i,a,n),x0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=qI.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||CI.defaultLine,{axis:"y"}),b(r,t,y||CI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var RI=O((x5e,PI)=>{"use strict";var b0=Re(),b0e=Xt(),im=gr().traceIs,_0e=bf(),w0e=al().validateCornerradius,DI=b0.nestedProperty,e5=qs().getAxisGroup,EI=[{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"}],T0e=["x","y"];PI.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 G=b0e.getFromTrace({_fullLayout:t},Y,U);return G.type}function b(Y,U,G){var V=Y.uid+"__"+G;U||(U=V);var B=y(Y,G),J=Y[G+"calendar"]||"",X=a[U],ee=!0;X&&(B===X.axType&&J===X.calendar?(ee=!1,X.traces.push(Y),X.dirs.push(G)):(U=V,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(" ")))),ee&&(a[U]={traces:[Y],dirs:[G],axType:B,calendar:Y[G+"calendar"]||""}),Y["_"+G+"bingroup"]=U}for(c=0;c{"use strict";var Of=zr();zI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Of(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Of(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Of(n))if(n=Number(n),Of(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(Of(n))if(n=Number(n),Of(t[e])){if(t[e]{"use strict";FI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";HI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Yf=wt(),Gs=Yf.ONEAVGYEAR,OI=Yf.ONEAVGMONTH,om=Yf.ONEDAY,YI=Yf.ONEHOUR,VI=Yf.ONEMIN,GI=Yf.ONESEC,UI=Zr().tickIncrement;ZI.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(lm(u+o,u+s,n,i),lm(f+o,f+s,n,i)),h=Math.min(lm(u+l,u+o,n,i),lm(f+l,f+o,n,i)),d,p;if(c>h&&hom){var m=d===Gs?1:6,y=d===Gs?"M12":"M1";return function(b,_){var w=n.c2d(b,Gs,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var A=n.d2c(w,0,i);if(AGI?e>om?e>Gs*1.1?Gs:e>OI*1.1?OI:om:e>YI?YI:e>VI?VI:GI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function A0e(e,r,t,a,n,i){if(a&&e>om){var l=XI(r,n,i),o=XI(t,n,i),s=e===Gs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function XI(e,r,t){var a=r.c2d(e,Gs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var rH=O((A5e,eH)=>{"use strict";var r5=zr(),Ja=Re(),$I=gr(),ni=Zr(),{hasColorscale:KI}=bn(),QI=Xc(),M0e=em(),jI=NI(),k0e=II(),q0e=BI(),C0e=JI();function S0e(e,r){var t=[],a=[],n=r.orientation==="h",i=ni.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=t5(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=jI.count,F=k0e[A],Y=!1,U=function(W){return i.r2c(W,0,s)},G;for(Ja.isArrayOrTypedArray(r[o])&&k!=="count"&&(G=r[o],Y=k==="avg",H=jI[k]),f=U(h.start),D=U(h.end)+(f-ni.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){ge=f;break}for(f=be;f<=ge;f++)if(r5(t[f])&&r5(a[f])){var _e={p:t[f],s:a[f],b:0};u.enabled||(_e.pts=w[f],X?_e.ph0=_e.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,_e.ph0=Q(m[f]),_e.ph1=Q(m[f+1],!0))),ce.push(_e)}return ce.length===1&&(ce[0].width1=ni.tickIncrement(ce[0].p,h.size,!1,s)-ce[0].p),KI(r,"marker")&&QI(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),KI(r,"marker.line")&&QI(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),M0e(ce,r),Ja.isArrayOrTypedArray(r.selectedpoints)&&Ja.tagSelected(ce,r,fe),ce}function t5(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(he){return t.r2c(he,0,d)},_=function(he){return t.c2r(he,0,d)},w=t.type==="date"?function(he){return he||he===0?Ja.cleanDate(he,null,d):null}:function(he){return r5(he)?Number(he):null};function x(he,Q,qe){Q[he+"Found"]?(Q[he]=w(Q[he]),Q[he]===null&&(Q[he]=qe[he])):(m[he]=Q[he]=qe[he],Ja.nestedProperty(c[0],i+"."+he).set(qe[he]))}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(G)&&(B=ni.tickIncrement(B,s.size,!0,d)),H.start=t.l2r(B),U||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 L0e(e,r,t,a,n){var i=e._fullLayout,l=D0e(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())}}eH.exports={calc:S0e,calcAllAutoBins:t5}});var aH=O((M5e,tH)=>{"use strict";var P0e=y0().hoverPoints,R0e=Zr().hoverLabelText;tH.exports=function(r,t,a,n,i){var l=P0e(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"]=R0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var iH=O((k5e,nH)=>{"use strict";nH.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";lH.exports={attributes:jb(),layoutAttributes:Qp(),supplyDefaults:LI(),crossTraceDefaults:RI(),supplyLayoutDefaults:Ub(),calc:rH().calc,crossTraceCalc:Tf().crossTraceCalc,plot:Bf().plot,layerName:"barlayer",style:wo().style,styleOnSelect:wo().styleOnSelect,colorbar:dp(),hoverPoints:aH(),selectPoints:g0(),eventData:iH(),moduleType:"trace",name:"histogram",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var uH=O((C5e,sH)=>{"use strict";sH.exports=oH()});var cH=O((S5e,fH)=>{"use strict";fH.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var n5=O((L5e,pH)=>{"use strict";var pt=Ll(),a5=Ti().line,z0e=an(),vH=yi().axisHoverFormat,{hovertemplateAttrs:N0e,texttemplateAttrs:F0e,templatefallbackAttrs:hH}=gn(),dH=cH(),Dl=mt().extendFlat,I0e=br();pH.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:vH("x"),yhoverformat:vH("y"),hovertext:pt.hovertext,hovertemplate:N0e({},{keys:dH.eventDataKeys}),hovertemplatefallback:hH(),hoverinfo:Dl({},z0e.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:F0e({editType:"plot"},{keys:dH.eventDataKeys.concat(["label","value"])}),texttemplatefallback:hH({editType:"plot"}),text:pt.text,textposition:pt.textposition,insidetextanchor:Dl({},pt.insidetextanchor,{dflt:"middle"}),textangle:Dl({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Dl({},pt.orientation,{}),offset:Dl({},pt.offset,{arrayOk:!1}),width:Dl({},pt.width,{arrayOk:!1}),marker:H0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Dl({},a5.color,{dflt:I0e.defaultLine}),width:Dl({},a5.width,{dflt:0,editType:"plot"}),dash:a5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function H0e(){var e=Dl({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var i5=O((D5e,mH)=>{"use strict";mH.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 o5=O((E5e,gH)=>{"use strict";var sm=Re(),B0e=bf(),O0e=al().handleText,Y0e=Xv(),V0e=Ds(),yH=n5(),l5=br();function G0e(e,r,t,a){function n(c,h){return sm.coerce(e,r,yH,c,h)}var i=Y0e(e,r,a,n);if(!i){r.visible=!1;return}V0e(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");O0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",sm.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",l5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",U0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function U0e(e){var r=sm.isArrayOrTypedArray(e)?"#000":e;return l5.addOpacity(r,.5*l5.opacity(r))}function W0e(e,r){var t,a;function n(l){return sm.coerce(a._input,a,yH,l)}for(var i=0;i{"use strict";var X0e=Re(),Z0e=i5();xH.exports=function(e,r,t){var a=!1;function n(o,s){return X0e.coerce(e,r,Z0e,o,s)}for(var i=0;i{"use strict";var Vf=Re();_H.exports=function(r,t){for(var a=0;a{"use strict";var TH=Zr(),AH=Es(),J0e=wH(),$0e=Zv(),_0=wt().BADNUM;MH.exports=function(r,t){var a=TH.getFromId(r,t.xaxis||"x"),n=TH.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=AH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=AH(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 qH=Tf().setGroupPositions;CH.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 um=kr(),Mo=Re(),LH=Yr(),Ao=wt().BADNUM,K0e=Bf(),Q0e=Ri().clearMinTextSize;EH.exports=function(r,t,a,n){var i=r._fullLayout;Q0e("funnel",i),j0e(r,t,a,n),ehe(r,t,a,n),K0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function j0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;Mo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=um.select(this),s=l[0].trace,u=Mo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(Mo.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=DH(d,n,i,f),y=m[0],b=m[1],_="";y[0]!==Ao&&b[0]!==Ao&&y[1]!==Ao&&b[1]!==Ao&&y[2]!==Ao&&b[2]!==Ao&&y[3]!==Ao&&b[3]!==Ao&&(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"),Mo.ensureSingle(um.select(this),"path").attr("d",_).call(LH.setClipUrl,r.layerClipId,e)}})})}function ehe(e,r,t,a){var n=r.xaxis,i=r.yaxis;Mo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=um.select(this),s=l[0].trace,u=Mo.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(Mo.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=DH(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"),Mo.ensureSingle(um.select(this),"path").attr("d",_).call(LH.setClipUrl,r.layerClipId,e)}})})}function DH(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 NH=O((I5e,zH)=>{"use strict";var w0=kr(),RH=Yr(),u5=br(),rhe=ku().DESELECTDIM,the=wo(),ahe=Ri().resizeText,nhe=the.styleTextPoints;function ihe(e,r,t){var a=t||w0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");ahe(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(u5.fill,o.mc||s.color).call(u5.stroke,o.mlc||s.line.color).call(RH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?rhe:1)}}),nhe(i,l,e),i.selectAll(".regions").each(function(){w0.select(this).selectAll("path").style("stroke-width",0).call(u5.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;RH.lineGroupStyle(w0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}zH.exports={style:ihe}});var HH=O((H5e,IH)=>{"use strict";var FH=br().opacity,lhe=y0().hoverOnBars,f5=Re().formatPercent;IH.exports=function(r,t,a,n,i){var l=lhe(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=f5(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=f5(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=f5(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=ohe(s,c),[l]}};function ohe(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(FH(a))return a;if(FH(n)&&i)return n}});var OH=O((B5e,BH)=>{"use strict";BH.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 VH=O((O5e,YH)=>{"use strict";YH.exports={attributes:n5(),layoutAttributes:i5(),supplyDefaults:o5().supplyDefaults,crossTraceDefaults:o5().crossTraceDefaults,supplyLayoutDefaults:bH(),calc:kH(),crossTraceCalc:SH(),plot:PH(),style:NH().style,hoverPoints:HH(),eventData:OH(),selectPoints:g0(),moduleType:"trace",name:"funnel",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var UH=O((Y5e,GH)=>{"use strict";GH.exports=VH()});var XH=O((V5e,WH)=>{"use strict";WH.exports={eventDataKeys:["initial","delta","final"]}});var h5=O((G5e,KH)=>{"use strict";var st=Ll(),c5=Ti().line,she=an(),ZH=yi().axisHoverFormat,{hovertemplateAttrs:uhe,texttemplateAttrs:fhe,templatefallbackAttrs:JH}=gn(),$H=XH(),Gf=mt().extendFlat,che=br();function v5(e){return{marker:{color:Gf({},st.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Gf({},st.marker.line.color,{arrayOk:!1,editType:"style"}),width:Gf({},st.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}KH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:st.x,x0:st.x0,dx:st.dx,y:st.y,y0:st.y0,dy:st.dy,xperiod:st.xperiod,yperiod:st.yperiod,xperiod0:st.xperiod0,yperiod0:st.yperiod0,xperiodalignment:st.xperiodalignment,yperiodalignment:st.yperiodalignment,xhoverformat:ZH("x"),yhoverformat:ZH("y"),hovertext:st.hovertext,hovertemplate:uhe({},{keys:$H.eventDataKeys}),hovertemplatefallback:JH(),hoverinfo:Gf({},she.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:fhe({editType:"plot"},{keys:$H.eventDataKeys.concat(["label"])}),texttemplatefallback:JH({editType:"plot"}),text:st.text,textposition:st.textposition,insidetextanchor:st.insidetextanchor,textangle:st.textangle,textfont:st.textfont,insidetextfont:st.insidetextfont,outsidetextfont:st.outsidetextfont,constraintext:st.constraintext,cliponaxis:st.cliponaxis,orientation:st.orientation,offset:st.offset,width:st.width,increasing:v5("increasing"),decreasing:v5("decreasing"),totals:v5("intermediate sums and total"),connector:{line:{color:Gf({},c5.color,{dflt:che.defaultLine}),width:Gf({},c5.width,{editType:"plot"}),dash:c5.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:st.offsetgroup,alignmentgroup:st.alignmentgroup,zorder:st.zorder}});var d5=O((U5e,QH)=>{"use strict";QH.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 Uf=O((W5e,jH)=>{"use strict";jH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var m5=O((X5e,aB)=>{"use strict";var eB=Re(),vhe=bf(),hhe=al().handleText,dhe=Xv(),phe=Ds(),rB=h5(),mhe=br(),tB=Uf(),yhe=tB.INCREASING.COLOR,ghe=tB.DECREASING.COLOR,xhe="#4499FF";function p5(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",mhe.defaultLine),e(r+".marker.line.width")}function bhe(e,r,t,a){function n(u,f){return eB.coerce(e,r,rB,u,f)}var i=dhe(e,r,a,n);if(!i){r.visible=!1;return}phe(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");hhe(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")),p5(n,"increasing",yhe),p5(n,"decreasing",ghe),p5(n,"totals",xhe);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 _he(e,r){var t,a;function n(l){return eB.coerce(a._input,a,rB,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var whe=Re(),The=d5();nB.exports=function(e,r,t){var a=!1;function n(o,s){return whe.coerce(e,r,The,o,s)}for(var i=0;i{"use strict";var lB=Zr(),oB=Es(),sB=Re().mergeArray,Ahe=Zv(),uB=wt().BADNUM;function y5(e){return e==="a"||e==="absolute"}function g5(e){return e==="t"||e==="total"}fB.exports=function(r,t){var a=lB.getFromId(r,t.xaxis||"x"),n=lB.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=oB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=oB(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 vB=Tf().setGroupPositions;hB.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 pB=kr(),fm=Re(),Mhe=Yr(),Wf=wt().BADNUM,khe=Bf(),qhe=Ri().clearMinTextSize;mB.exports=function(r,t,a,n){var i=r._fullLayout;qhe("waterfall",i),khe.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),Che(r,t,a,n)};function Che(e,r,t,a){var n=r.xaxis,i=r.yaxis;fm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=pB.select(this),s=l[0].trace,u=fm.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(fm.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=She(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 cm=kr(),gB=Yr(),xB=br(),Lhe=ku().DESELECTDIM,Dhe=wo(),Ehe=Ri().resizeText,Phe=Dhe.styleTextPoints;function Rhe(e,r,t){var a=t||cm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Ehe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=cm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;cm.select(this).call(xB.fill,s.color).call(xB.stroke,s.line.color).call(gB.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?Lhe:1)}}),Phe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;gB.lineGroupStyle(cm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}bB.exports={style:Rhe}});var kB=O((j5e,MB)=>{"use strict";var zhe=Zr().hoverLabelText,wB=br().opacity,Nhe=y0().hoverOnBars,TB=Uf(),AB={increasing:TB.INCREASING.SYMBOL,decreasing:TB.DECREASING.SYMBOL};MB.exports=function(r,t,a,n,i){var l=Nhe(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 zhe(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+" "+AB.decreasing):_.push(l.deltaLabel+" "+AB.increasing)),A("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=Fhe(s,p),[l]};function Fhe(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(wB(a))return a;if(wB(n)&&i)return n}});var CB=O((e_e,qB)=>{"use strict";qB.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 LB=O((r_e,SB)=>{"use strict";SB.exports={attributes:h5(),layoutAttributes:d5(),supplyDefaults:m5().supplyDefaults,crossTraceDefaults:m5().crossTraceDefaults,supplyLayoutDefaults:iB(),calc:cB(),crossTraceCalc:dB(),plot:yB(),style:_B().style,hoverPoints:kB(),eventData:CB(),selectPoints:g0(),moduleType:"trace",name:"waterfall",basePlotModule:Ml(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var EB=O((t_e,DB)=>{"use strict";DB.exports=LB()});var hm=O((a_e,RB)=>{"use strict";var x5=an(),Ihe=xo().attributes,Hhe=aa(),Bhe=In(),{hovertemplateAttrs:Ohe,texttemplateAttrs:Yhe,templatefallbackAttrs:PB}=gn(),Us=mt().extendFlat,Vhe=hi().pattern,vm=Hhe({editType:"plot",arrayOk:!0,colorEditType:"plot"});RB.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:Bhe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Vhe,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:Us({},x5.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ohe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:PB(),texttemplate:Yhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:PB({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Us({},vm,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Us({},vm,{}),outsidetextfont:Us({},vm,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Us({},x5.showlegend,{arrayOk:!0}),legend:Us({},x5.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Us({},vm,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Ihe({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 dm=O((n_e,FB)=>{"use strict";var Ghe=zr(),T0=Re(),Uhe=hm(),Whe=xo().defaults,Xhe=al().handleText,Zhe=Re().coercePattern;function zB(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 NB(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");Zhe(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 Jhe(e,r,t,a){function n(_,w){return T0.coerce(e,r,Uhe,_,w)}var i=n("labels"),l=n("values"),o=zB(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,NB(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");Xhe(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");Whe(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")}FB.exports={handleLabelsAndValues:zB,handleMarkerDefaults:NB,supplyDefaults:Jhe}});var pm=O((i_e,IB)=>{"use strict";IB.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var BB=O((l_e,HB)=>{"use strict";var $he=Re(),Khe=pm();HB.exports=function(r,t){function a(n,i){return $he.coerce(r,t,Khe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var mm=O((o_e,VB)=>{"use strict";var Qhe=zr(),b5=Fn(),jhe=br(),ede={};function rde(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 OB(e){return function(t,a){return!t||(t=b5(t),!t.isValid())?!1:(t=jhe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function tde(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=YB(i,ede));for(var o=0,s=0;s{"use strict";var ade=Oi().appendArrayMultiPointValues;GB.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]),ade(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var T5=O((u_e,vO)=>{"use strict";var pn=kr(),nde=zt(),ym=_i(),KB=br(),El=Yr(),Sa=Re(),ide=Sa.strScale,WB=Sa.strTranslate,_5=la(),QB=Ri(),lde=QB.recordMinTextSize,ode=QB.clearMinTextSize,jB=$v().TEXTPAD,Tr=uv(),gm=UB(),XB=Re().isValidTextValue;function sde(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;ode("pie",a),tO(r,e),uO(r,n);var i=Sa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=pn.select(this),s=l[0],u=s.trace;yde(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=pn.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){pn.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=pn.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(eO,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(V,B,J,X){var ee=X*(B[0]-V[0]),le=X*(B[1]-V[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 F=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]+F+"Z")}else D.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+F+"Z")}fO(e,x,s);var U=Tr.castOption(u.textposition,x.pts),G=S.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var V=Sa.ensureSingle(pn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),B=Sa.ensureUniformFontSize(e,U==="outside"?fde(u,x,a.font):rO(u,x,a.font));V.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,B).call(_5.convertToTspans,e);var J=El.bBox(V.node()),X;if(U==="outside")X=$B(J,x);else if(X=aO(J,x,s),U==="auto"&&X.scale<1){var ee=Sa.ensureUniformFontSize(e,u.outsidetextfont);V.call(El.font,ee),J=El.bBox(V.node()),X=$B(J,x)}var le=X.textPosAngle,fe=le===void 0?x.pxmid:xm(s.r,le);if(X.targetX=k+fe[0]*X.rCenter+(X.x||0),X.targetY=M+fe[1]*X.rCenter+(X.y||0),cO(X,J),X.outside){var he=X.targetY;x.yLabelMin=he-J.height/2,x.yLabelMid=he,x.yLabelMax=he+J.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}X.fontSize=B.size,lde(u.type,X,a),l[A].transform=X,Sa.setTransormAndDisplay(V,X)})});var d=pn.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(pn.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(El.font,u.title.font).call(_5.convertToTspans,e);var k;u.title.position==="middle center"?k=hde(s):k=oO(s,n),x.attr("transform",WB(k.x,k.y)+ide(Math.min(1,k.scale))+WB(k.tx,k.ty))}),h&&pde(c,u),ude(f,u),h&&u.automargin){var p=El.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;nde.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=pn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function ude(e,r){e.each(function(t){var a=pn.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(KB.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function eO(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=ym.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=[];ym.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:[gm(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:[gm(s,f)],event:pn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=pn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=pn.event,r.emit("plotly_unhover",{points:[gm(c,f)],event:pn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(ym.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=[gm(s,f)],ym.click(r,pn.event))})}function fde(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 rO(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||KB.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function tO(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=ZB(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||h)&&(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 cde(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 hde(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 oO(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=sO(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=dde(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=w5(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function dde(e,r){return e/(r===void 0?1:r)}function w5(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 sO(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 pde(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,F,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)),F=N.cxFinal+i(N.px0[0],N.px1[0]),Y=F+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=vde(u,r))}function xm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function fO(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);XB(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);(XB(w)||w==="")&&(_.text=w),r.text=Sa.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function cO(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}vO.exports={plot:sde,formatSliceLabel:fO,transformInsideText:aO,determineInsideTextFont:rO,positionTitleOutside:oO,prerenderTitles:tO,layoutAreas:uO,attachFxHandlers:eO,computeTransform:cO}});var pO=O((f_e,dO)=>{"use strict";var hO=kr(),gde=tf(),xde=Ri().resizeText;dO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");xde(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=hO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){hO.select(this).call(gde,o,i,r)})})}});var yO=O(Xf=>{"use strict";var mO=zt();Xf.name="pie";Xf.plot=function(e,r,t,a){mO.plotBasePlot(Xf.name,e,r,t,a)};Xf.clean=function(e,r,t,a){mO.cleanBasePlot(Xf.name,e,r,t,a)}});var xO=O((v_e,gO)=>{"use strict";gO.exports={attributes:hm(),supplyDefaults:dm().supplyDefaults,supplyLayoutDefaults:BB(),layoutAttributes:pm(),calc:mm().calc,crossTraceCalc:mm().crossTraceCalc,plot:T5().plot,style:pO(),styleOne:tf(),moduleType:"trace",name:"pie",basePlotModule:yO(),categories:["pie-like","pie","showLegend"],meta:{}}});var _O=O((h_e,bO)=>{"use strict";bO.exports=xO()});var TO=O(Zf=>{"use strict";var wO=zt();Zf.name="funnelarea";Zf.plot=function(e,r,t,a){wO.plotBasePlot(Zf.name,e,r,t,a)};Zf.clean=function(e,r,t,a){wO.cleanBasePlot(Zf.name,e,r,t,a)}});var A5=O((p_e,MO)=>{"use strict";var La=hm(),bde=an(),_de=xo().attributes,{hovertemplateAttrs:wde,texttemplateAttrs:Tde,templatefallbackAttrs:AO}=gn(),Ws=mt().extendFlat;MO.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:Tde({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:AO({editType:"plot"}),hoverinfo:Ws({},bde.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:wde({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:AO(),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:_de({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 M5=O((m_e,kO)=>{"use strict";var Ade=pm().hiddenlabels;kO.exports={hiddenlabels:Ade,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var SO=O((y_e,CO)=>{"use strict";var qO=Re(),Mde=A5(),kde=xo().defaults,qde=al().handleText,Cde=dm().handleLabelsAndValues,Sde=dm().handleMarkerDefaults;CO.exports=function(r,t,a,n){function i(m,y){return qO.coerce(r,t,Mde,m,y)}var l=i("labels"),o=i("values"),s=Cde(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,Sde(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");qde(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");kde(t,n,i);var p=i("title.text");p&&(i("title.position"),qO.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var DO=O((g_e,LO)=>{"use strict";var Lde=Re(),Dde=M5();LO.exports=function(r,t){function a(n,i){return Lde.coerce(r,t,Dde,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var k5=O((x_e,PO)=>{"use strict";var EO=mm();function Ede(e,r){return EO.calc(e,r)}function Pde(e){EO.crossTraceCalc(e,{type:"funnelarea"})}PO.exports={calc:Ede,crossTraceCalc:Pde}});var IO=O((b_e,FO)=>{"use strict";var Xs=kr(),q5=Yr(),ko=Re(),Rde=ko.strScale,RO=ko.strTranslate,zO=la(),zde=Bf(),Nde=zde.toMoveInsideBar,NO=Ri(),Fde=NO.recordMinTextSize,Ide=NO.clearMinTextSize,Hde=uv(),Jf=T5(),Bde=Jf.attachFxHandlers,Ode=Jf.determineInsideTextFont,Yde=Jf.layoutAreas,Vde=Jf.prerenderTitles,Gde=Jf.positionTitleOutside,Ude=Jf.formatSliceLabel;FO.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;Ide("funnelarea",n),Vde(t,r),Yde(t,n._size),ko.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Xs.select(this),o=i[0],s=o.trace;Xde(i),l.each(function(){var u=Xs.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){Xs.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,m=Xs.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(Bde,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+C5(c.TR,c.BR)+C5(c.BR,c.BL)+C5(c.BL,c.TL)+"Z";y.attr("d",b),Ude(r,c,o);var _=Hde.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=ko.ensureSingle(Xs.select(this),"text","",function(N){N.attr("data-notex",1)}),A=ko.ensureUniformFontSize(r,Ode(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(q5.font,A).call(zO.convertToTspans,r);var k=q5.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=Nde(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),M.fontSize=A.size,Fde(s.type,M,n),i[h].transform=M,ko.setTransormAndDisplay(x,M)})});var f=Xs.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=ko.ensureSingle(Xs.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=ko.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(q5.font,s.title.font).call(zO.convertToTspans,r);var d=Gde(o,n._size);c.attr("transform",RO(d.x,d.y)+Rde(Math.min(1,d.scale))+RO(d.tx,d.ty))})})})};function C5(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function Wde(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function Xde(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=Wde(m.TR,m.BR),S=m.TL,D=m.TR}}});var OO=O((__e,BO)=>{"use strict";var HO=kr(),Zde=tf(),Jde=Ri().resizeText;BO.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");Jde(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=HO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){HO.select(this).call(Zde,o,i,r)})})}});var VO=O((w_e,YO)=>{"use strict";YO.exports={moduleType:"trace",name:"funnelarea",basePlotModule:TO(),categories:["pie-like","funnelarea","showLegend"],attributes:A5(),layoutAttributes:M5(),supplyDefaults:SO(),supplyLayoutDefaults:DO(),calc:k5().calc,crossTraceCalc:k5().crossTraceCalc,plot:IO(),style:OO(),styleOne:tf(),meta:{}}});var UO=O((T_e,GO)=>{"use strict";GO.exports=VO()});var XO=O($f=>{"use strict";var WO=zt();$f.name="indicator";$f.plot=function(e,r,t,a){WO.plotBasePlot($f.name,e,r,t,a)};$f.clean=function(e,r,t,a){WO.cleanBasePlot($f.name,e,r,t,a)}});var L5=O((M_e,jO)=>{"use strict";var qo=mt().extendFlat,JO=mt().extendDeep,$de=vi().overrideAll,$O=aa(),KO=In(),Kde=xo().attributes,Et=_n(),Qde=lt().templatedArray,bm=Uf(),ZO=yi().descriptionOnlyNumbers,S5=$O({editType:"plot",colorEditType:"plot"}),A0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:KO.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"},QO={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},jde=Qde("step",JO({},A0,{range:QO}));jO.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:Kde({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:qo({},S5,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:ZO("value")},font:qo({},S5,{}),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:ZO("value")},increasing:{symbol:{valType:"string",dflt:bm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:bm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:bm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:bm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:qo({},S5,{}),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({},A0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:KO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:$de({range:QO,visible:qo({},Et.visible,{dflt:!0}),tickmode:Et.minor.tickmode,nticks:Et.nticks,tick0:Et.tick0,dtick:Et.dtick,tickvals:Et.tickvals,ticktext:Et.ticktext,ticks:qo({},Et.ticks,{dflt:"outside"}),ticklen:Et.ticklen,tickwidth:Et.tickwidth,tickcolor:Et.tickcolor,ticklabelstep:Et.ticklabelstep,showticklabels:Et.showticklabels,labelalias:Et.labelalias,tickfont:$O({}),tickangle:Et.tickangle,tickformat:Et.tickformat,tickformatstops:Et.tickformatstops,tickprefix:Et.tickprefix,showtickprefix:Et.showtickprefix,ticksuffix:Et.ticksuffix,showticksuffix:Et.showticksuffix,separatethousands:Et.separatethousands,exponentformat:Et.exponentformat,minexponent:Et.minexponent,showexponent:Et.showexponent,editType:"plot"},"plot"),steps:jde,threshold:{line:{color:qo({},A0.line.color,{}),width:qo({},A0.line.width,{dflt:1}),editType:"plot"},thickness:qo({},A0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var D5=O((k_e,eY)=>{"use strict";eY.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var aY=O((q_e,tY)=>{"use strict";var il=Re(),wm=L5(),e1e=xo().defaults,rY=lt(),r1e=Yn(),_m=D5(),t1e=vd(),a1e=hd(),n1e=pd(),i1e=md();function l1e(e,r,t,a){function n(k,M){return il.coerce(e,r,wm,k,M)}e1e(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=il.extendFlat({},a.font);s.size=void 0,il.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=_m.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=il.extendFlat({},a.font);f.size=void 0,il.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||_m.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=il.extendFlat({},a.font);c.size=.25*(o||u||_m.defaultNumberFontSize),il.coerceFont(n,"title.font",c),n("title.text");var h,d,p,m;function y(k,M){return il.coerce(h,d,wm.gauge,k,M)}function b(k,M){return il.coerce(p,m,wm.gauge.axis,k,M)}if(r._hasGauge){h=e.gauge,h||(h={}),d=rY.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=_m.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",x),r1e(h,d,{name:"steps",handleItemDefaults:o1e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),m=rY.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var A={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};t1e(p,m,b,"linear"),i1e(p,m,b,"linear",A),n1e(p,m,b,"linear",A),a1e(p,m,b,A)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function o1e(e,r){function t(a,n){return il.coerce(e,r,wm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}tY.exports={supplyDefaults:l1e}});var iY=O((C_e,nY)=>{"use strict";function s1e(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}nY.exports={calc:s1e}});function Pl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function Co(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var Tm=it(()=>{});function ol(){}function oY(){return this.rgb().formatHex()}function m1e(){return this.rgb().formatHex8()}function y1e(){return dY(this).formatHsl()}function sY(){return this.rgb().formatRgb()}function Lo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=u1e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?uY(r):t===3?new va(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Am(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Am(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=f1e.exec(e))?new va(r[1],r[2],r[3],1):(r=c1e.exec(e))?new va(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=v1e.exec(e))?Am(r[1],r[2],r[3],r[4]):(r=h1e.exec(e))?Am(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=d1e.exec(e))?vY(r[1],r[2]/100,r[3]/100,1):(r=p1e.exec(e))?vY(r[1],r[2]/100,r[3]/100,r[4]):lY.hasOwnProperty(e)?uY(lY[e]):e==="transparent"?new va(NaN,NaN,NaN,0):null}function uY(e){return new va(e>>16&255,e>>8&255,e&255,1)}function Am(e,r,t,a){return a<=0&&(e=r=t=NaN),new va(e,r,t,a)}function k0(e){return e instanceof ol||(e=Lo(e)),e?(e=e.rgb(),new va(e.r,e.g,e.b,e.opacity)):new va}function Qf(e,r,t,a){return arguments.length===1?k0(e):new va(e,r,t,a==null?1:a)}function va(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function fY(){return`#${Zs(this.r)}${Zs(this.g)}${Zs(this.b)}`}function g1e(){return`#${Zs(this.r)}${Zs(this.g)}${Zs(this.b)}${Zs((isNaN(this.opacity)?1:this.opacity)*255)}`}function cY(){let e=km(this.opacity);return`${e===1?"rgb(":"rgba("}${Js(this.r)}, ${Js(this.g)}, ${Js(this.b)}${e===1?")":`, ${e})`}`}function km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Js(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zs(e){return e=Js(e),(e<16?"0":"")+e.toString(16)}function vY(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new zi(e,r,t,a)}function dY(e){if(e instanceof zi)return new zi(e.h,e.s,e.l,e.opacity);if(e instanceof ol||(e=Lo(e)),!e)return new zi;if(e instanceof zi)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 zi(l,o,s,e.opacity)}function q0(e,r,t,a){return arguments.length===1?dY(e):new zi(e,r,t,a==null?1:a)}function zi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function hY(e){return e=(e||0)%360,e<0?e+360:e}function Mm(e){return Math.max(0,Math.min(1,e||0))}function E5(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 So,$s,Kf,M0,ll,u1e,f1e,c1e,v1e,h1e,d1e,p1e,lY,qm=it(()=>{Tm();So=.7,$s=1/So,Kf="\\s*([+-]?\\d+)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ll="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u1e=/^#([0-9a-f]{3,8})$/,f1e=new RegExp(`^rgb\\(${Kf},${Kf},${Kf}\\)$`),c1e=new RegExp(`^rgb\\(${ll},${ll},${ll}\\)$`),v1e=new RegExp(`^rgba\\(${Kf},${Kf},${Kf},${M0}\\)$`),h1e=new RegExp(`^rgba\\(${ll},${ll},${ll},${M0}\\)$`),d1e=new RegExp(`^hsl\\(${M0},${ll},${ll}\\)$`),p1e=new RegExp(`^hsla\\(${M0},${ll},${ll},${M0}\\)$`),lY={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};Pl(ol,Lo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oY,formatHex:oY,formatHex8:m1e,formatHsl:y1e,formatRgb:sY,toString:sY});Pl(va,Qf,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new va(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new va(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new va(Js(this.r),Js(this.g),Js(this.b),km(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:fY,formatHex:fY,formatHex8:g1e,formatRgb:cY,toString:cY}));Pl(zi,q0,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new zi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new zi(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 va(E5(e>=240?e-240:e+120,n,a),E5(e,n,a),E5(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new zi(hY(this.h),Mm(this.s),Mm(this.l),km(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=km(this.opacity);return`${e===1?"hsl(":"hsla("}${hY(this.h)}, ${Mm(this.s)*100}%, ${Mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var Cm,Sm,P5=it(()=>{Cm=Math.PI/180,Sm=180/Math.PI});function bY(e){if(e instanceof sl)return new sl(e.l,e.a,e.b,e.opacity);if(e instanceof Rl)return _Y(e);e instanceof va||(e=k0(e));var r=F5(e.r),t=F5(e.g),a=F5(e.b),n=R5((.2225045*r+.7168786*t+.0606169*a)/mY),i,l;return r===t&&t===a?i=l=n:(i=R5((.4360747*r+.3850649*t+.1430804*a)/pY),l=R5((.0139322*r+.0971045*t+.7141733*a)/yY)),new sl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function ec(e,r,t,a){return arguments.length===1?bY(e):new sl(e,r,t,a==null?1:a)}function sl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function R5(e){return e>x1e?Math.pow(e,1/3):e/xY+gY}function z5(e){return e>jf?e*e*e:xY*(e-gY)}function N5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function F5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function b1e(e){if(e instanceof Rl)return new Rl(e.h,e.c,e.l,e.opacity);if(e instanceof sl||(e=bY(e)),e.a===0&&e.b===0)return new Rl(NaN,0{Tm();qm();P5();Lm=18,pY=.96422,mY=1,yY=.82521,gY=4/29,jf=6/29,xY=3*jf*jf,x1e=jf*jf*jf;Pl(sl,ec,Co(ol,{brighter(e){return new sl(this.l+Lm*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new sl(this.l-Lm*(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=pY*z5(r),e=mY*z5(e),t=yY*z5(t),new va(N5(3.1338561*r-1.6168667*e-.4906146*t),N5(-.9787684*r+1.9161415*e+.033454*t),N5(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));Pl(Rl,C0,Co(ol,{brighter(e){return new Rl(this.h,this.c,this.l+Lm*(e==null?1:e),this.opacity)},darker(e){return new Rl(this.h,this.c,this.l-Lm*(e==null?1:e),this.opacity)},rgb(){return _Y(this).rgb()}}))});function _1e(e){if(e instanceof Ks)return new Ks(e.h,e.s,e.l,e.opacity);e instanceof va||(e=k0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(MY*a+TY*r-AY*t)/(MY+TY-AY),i=a-n,l=(S0*(t-n)-H5*i)/Dm,o=Math.sqrt(l*l+i*i)/(S0*n*(1-n)),s=o?Math.atan2(l,i)*Sm-120:NaN;return new Ks(s<0?s+360:s,o,n,e.opacity)}function rc(e,r,t,a){return arguments.length===1?_1e(e):new Ks(e,r,t,a==null?1:a)}function Ks(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var kY,I5,H5,Dm,S0,TY,AY,MY,qY=it(()=>{Tm();qm();P5();kY=-.14861,I5=1.78277,H5=-.29227,Dm=-.90649,S0=1.97294,TY=S0*Dm,AY=S0*I5,MY=I5*H5-Dm*kY;Pl(Ks,rc,Co(ol,{brighter(e){return e=e==null?$s:Math.pow($s,e),new Ks(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?So:Math.pow(So,e),new Ks(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Cm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new va(255*(r+t*(kY*a+I5*n)),255*(r+t*(H5*a+Dm*n)),255*(r+t*(S0*a)),this.opacity)}}))});var Qs=it(()=>{qm();wY();qY()});function B5(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 Em(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 Rm(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 B5((t-a/r)*r,n,i,l,o)}}var O5=it(()=>{Pm()});var tc,Y5=it(()=>{tc=e=>()=>e});function CY(e,r){return function(t){return e+t*r}}function w1e(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 Do(e,r){var t=r-e;return t?CY(e,t>180||t<-180?t-360*Math.round(t/360):t):tc(isNaN(e)?r:e)}function SY(e){return(e=+e)==1?It:function(r,t){return t-r?w1e(r,t,e):tc(isNaN(r)?t:r)}}function It(e,r){var t=r-e;return t?CY(e,t):tc(isNaN(e)?r:e)}var js=it(()=>{Y5()});function LY(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{Qs();Pm();O5();js();L0=function e(r){var t=SY(r);function a(n,i){var l=t((n=Qf(n)).r,(i=Qf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=It(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);DY=LY(Em),EY=LY(Rm)});function ac(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 PY(e,r){return(zm(r)?ac:G5)(e,r)}function G5(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();Nm()});function Fm(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 mn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var E0=it(()=>{});function Im(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]=Eo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var X5=it(()=>{D0()});function T1e(e){return function(){return e}}function A1e(e){return function(r){return e(r)+""}}function Hm(e,r){var t=J5.lastIndex=Z5.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=J5.exec(e))&&(n=Z5.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:mn(a,n)})),t=Z5.lastIndex;return t{E0();J5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Z5=new RegExp(J5.source,"g")});function Eo(e,r){var t=typeof r,a;return r==null||t==="boolean"?tc(r):(t==="number"?mn:t==="string"?(a=Lo(r))?(r=a,L0):Hm:r instanceof Lo?L0:r instanceof Date?Fm:zm(r)?ac:Array.isArray(r)?G5:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Im:mn)(e,r)}var D0=it(()=>{Qs();V5();U5();W5();E0();X5();$5();Y5();Nm()});function RY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var zY=it(()=>{});function NY(e,r){var t=Do(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var FY=it(()=>{js()});function IY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var HY=it(()=>{});function K5(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{BY=180/Math.PI,Bm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function YY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Bm:K5(r.a,r.b,r.c,r.d,r.e,r.f)}function VY(e){return e==null?Bm:(Om||(Om=document.createElementNS("http://www.w3.org/2000/svg","g")),Om.setAttribute("transform",e),(e=Om.transform.baseVal.consolidate())?(e=e.matrix,K5(e.a,e.b,e.c,e.d,e.e,e.f)):Bm)}var Om,GY=it(()=>{OY()});function UY(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:mn(u,c)},{i:m-2,x:mn(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:mn(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:mn(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:mn(u,c)},{i:m-2,x:mn(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();GY();WY=UY(YY,"px, ","px)","deg)"),XY=UY(VY,", ",")",")")});function JY(e){return((e=Math.exp(e))+1/e)/2}function k1e(e){return((e=Math.exp(e))-1/e)/2}function q1e(e){return((e=Math.exp(2*e))-1)/(e+1)}var M1e,$Y,KY=it(()=>{M1e=1e-12;$Y=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{Qs();js();jY=QY(Do),eV=QY(It)});function Q5(e,r){var t=It((e=ec(e)).l,(r=ec(r)).l),a=It(e.a,r.a),n=It(e.b,r.b),i=It(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 tV=it(()=>{Qs();js()});function aV(e){return function(r,t){var a=e((r=C0(r)).h,(t=C0(t)).h),n=It(r.c,t.c),i=It(r.l,t.l),l=It(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 nV,iV,lV=it(()=>{Qs();js();nV=aV(Do),iV=aV(It)});function oV(e){return function r(t){t=+t;function a(n,i){var l=e((n=rc(n)).h,(i=rc(i)).h),o=It(n.s,i.s),s=It(n.l,i.l),u=It(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 sV,uV,fV=it(()=>{Qs();js();sV=oV(Do),uV=oV(It)});function j5(e,r){r===void 0&&(r=e,e=Eo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{D0()});function vV(e,r){for(var t=new Array(r),a=0;a{});var e_={};yX(e_,{interpolate:()=>Eo,interpolateArray:()=>PY,interpolateBasis:()=>Em,interpolateBasisClosed:()=>Rm,interpolateCubehelix:()=>sV,interpolateCubehelixLong:()=>uV,interpolateDate:()=>Fm,interpolateDiscrete:()=>RY,interpolateHcl:()=>nV,interpolateHclLong:()=>iV,interpolateHsl:()=>jY,interpolateHslLong:()=>eV,interpolateHue:()=>NY,interpolateLab:()=>Q5,interpolateNumber:()=>mn,interpolateNumberArray:()=>ac,interpolateObject:()=>Im,interpolateRgb:()=>L0,interpolateRgbBasis:()=>DY,interpolateRgbBasisClosed:()=>EY,interpolateRound:()=>IY,interpolateString:()=>Hm,interpolateTransformCss:()=>WY,interpolateTransformSvg:()=>XY,interpolateZoom:()=>$Y,piecewise:()=>j5,quantize:()=>vV});var r_=it(()=>{D0();U5();Pm();O5();W5();zY();FY();E0();Nm();X5();HY();$5();ZY();KY();V5();rV();tV();lV();fV();cV();hV()});var xV=O((y6e,gV)=>{"use strict";var nu=kr(),C1e=(r_(),t6(e_)).interpolate,dV=(r_(),t6(e_)).interpolateNumber,Po=Re(),S1e=Po.strScale,R0=Po.strTranslate,L1e=Po.rad2deg,D1e=Aa().MID_SHIFT,au=Yr(),eu=D5(),Vm=la(),Da=Zr(),E1e=gp(),P1e=bp(),R1e=_n(),nc=br(),t_={left:"start",center:"middle",right:"end"},ru={left:0,center:.5,right:1},pV=/[yzafpnµmkMGTPEZY]/;function z0(e){return e&&e.duration>0}gV.exports=function(r,t,a,n){var i=r._fullLayout,l;z0(a)&&n&&(l=n()),Po.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=nu.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=eu.innerRadius*_,x,A,k,M=u.align||"center";if(A=b,!c)x=m.l+ru[M]*m.w,k=function(G){return mV(G,m.w,m.h)};else if(h&&(x=y,A=b+_/2,k=function(G){return H1e(G,.9*w)}),d){var S=eu.bulletPadding,D=1-eu.bulletNumberDomainSize+S;x=m.l+(D+(1-D)*ru[M])*m.w,k=function(G){return mV(G,(eu.bulletNumberDomainSize-S)*m.w,m.h)}}F1e(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&&N1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:H,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var F=f.selectAll("g.bullet").data(d?o:[]);F.exit().remove();var Y=f.selectAll("g.bulletaxis").data(d?o:[]);Y.exit().remove(),d&&z1e(r,f,o,{gauge:F,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?t_.right:t_[u.title.align]}).text(u.title.text).call(au.font,u.title.font).call(Vm.convertToTspans,r),U.attr("transform",function(){var G=m.l+m.w*ru[u.title.align],V,B=eu.titlePadding,J=au.bBox(U.node());if(c){if(h)if(u.gauge.axis.visible){var X=au.bBox(H.node());V=X.top-B-J.bottom}else V=m.t+m.h/2-_/2-J.bottom-B;d&&(V=A-(J.top+J.bottom)/2,G=m.l-eu.bulletPadding*m.w)}else V=u._numbersTop-B-J.bottom;return R0(G,V)})})};function z1e(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-eu.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(F){return Math.max(0,d.c2p(F.range[1])-d.c2p(F.range[0]))}).attr("x",function(F){return d.c2p(F.range[0])}).attr("y",function(F){return .5*(1-F.thickness)*_}).attr("height",function(F){return F.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(tu),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(tu),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(nc.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(tu),N.exit().remove()}function N1e(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(ee){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],he=(ee-le)/(fe-le)*Math.PI-m;return he<-m?-m:he>m?m:he}function b(ee){return nu.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",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(ee){return(w.range[0]-ee.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Da.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*D1e)},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 he=M(ee);return-.5*(1+Math.sin(he))*fe};var R=function(ee){return R0(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("+-L1e(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 F=[s].concat(n.gauge.steps),Y=c.selectAll("g.bg-arc").data(F);Y.enter().append("g").classed("bg-arc",!0).append("path"),Y.select("path").call(_).call(tu),Y.exit().remove();var U=b(n.gauge.bar.thickness),G=c.selectAll("g.value-arc").data([n.gauge.bar]);G.enter().append("g").classed("value-arc",!0).append("path");var V=G.select("path");z0(d)?(V.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",I1e(U,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):V.attr("d",typeof t[0].y=="number"?U.endAngle(y(t[0].y)):"M0,0Z"),V.call(tu),G.exit().remove(),F=[];var B=n.gauge.threshold.value;(B||B===0)&&F.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(F);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(tu),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(tu),X.exit().remove()}function F1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=t_[o],u=a.transitionOpts,f=a.onComplete,c=Po.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,F){if(R.match("s")&&H>=0!=F>=0&&!N(H).slice(-1).match(pV)&&!N(F).slice(-1).match(pV)){var Y=R.slice().replace("s","f").replace(/\d+/,function(G){return parseInt(G)-1}),U=P0(e,{tickformat:Y});return function(G){return Math.abs(G)<1?Da.tickText(U,G).text:N(G)}}else return N}function _(){var R=P0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(G){return Da.tickText(R,G).text},H=n.number.suffix,F=n.number.prefix,Y=c.select("text.number");function U(){var G=typeof t[0].y=="number"?F+N(t[0].y)+H:"-";Y.text(G).call(au.font,n.number.font).call(Vm.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 G=nu.select(this),V=dV(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){G.text(F+B(V(J))+H)}}):U(),h=yV(F+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,F=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)+F+X(J)+H},G=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=Y(t[0]));var V=c.select("text.delta");V.call(au.font,n.delta.font).call(nc.fill,G({delta:n._deltaLastValue}));function B(){V.text(U(Y(t[0]),N)).call(nc.fill,G(t[0])).call(Vm.convertToTspans,e)}return z0(u)?V.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=nu.select(this),X=Y(t[0]),ee=n._deltaLastValue,le=b(n.delta.valueformat,N,ee,X),fe=dV(ee,X);return n._deltaLastValue=X,function(he){J.text(U(fe(he),le)),J.call(nc.fill,G({delta:fe(he)}))}}).each("end",function(){B(),f&&f()}).each("interrupt",function(){B(),f&&f()}):B(),d=yV(U(Y(t[0]),N),n.delta.font,s,e),V}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=Ym(n,"deltaPos",0,-1*(h.width*ru[n.align]+d.width*(1-ru[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=Ym(n,"deltaPos",0,h.width*(1-ru[n.align])+d.width*ru[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=Ym(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 F=p[o];o==="center"&&(F=(p.left+p.right)/2);var Y=i-N*F;return Y=Ym(n,"numbersTranslate",0,Y,x,Math.max),R0(Y,H)+S1e(N)})}function tu(e){e.each(function(r){nc.stroke(nu.select(this),r.line.color)}).each(function(r){nc.fill(nu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function I1e(e,r,t){return function(){var a=C1e(r,t);return function(n){return e.endAngle(a(n))()}}}function P0(e,r,t){var a=e._fullLayout,n=Po.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 Po.coerce(n,i,R1e,s,u)}return E1e(n,i,o,l,a),P1e(n,i,o,l),i}function mV(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function H1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function yV(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=nu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Vm.convertToTspans,a).call(au.font,r),au.bBox(i.node())}function Ym(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Po.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var _V=O((g6e,bV)=>{"use strict";bV.exports={moduleType:"trace",name:"indicator",basePlotModule:XO(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:L5(),supplyDefaults:aY().supplyDefaults,calc:iY().calc,plot:xV(),meta:{}}});var TV=O((x6e,wV)=>{"use strict";wV.exports=_V()});var Um=O((b6e,CV)=>{"use strict";var Gm=Re().extendFlat,N0=Ti(),AV=yi().axisHoverFormat,{hovertemplateAttrs:B1e,templatefallbackAttrs:O1e}=gn(),kV=hi().dash,Y1e=Lc(),qV=Uf(),V1e=qV.INCREASING.COLOR,G1e=qV.DECREASING.COLOR,a_=N0.line;function MV(e){return{line:{color:Gm({},a_.color,{dflt:e}),width:a_.width,dash:kV,editType:"style"},editType:"style"}}CV.exports={xperiod:N0.xperiod,xperiod0:N0.xperiod0,xperiodalignment:N0.xperiodalignment,xhoverformat:AV("x"),yhoverformat:AV("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:Gm({},a_.width,{}),dash:Gm({},kV,{}),editType:"style"},increasing:MV(V1e),decreasing:MV(G1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:B1e({},{keys:["open","high","low","close"]}),hovertemplatefallback:O1e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Gm({},Y1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:N0.zorder}});var n_=O((_6e,SV)=>{"use strict";var U1e=gr(),W1e=Re();SV.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=U1e.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,W1e.minRowLength(i))),t._length=c,c}}});var EV=O((w6e,DV)=>{"use strict";var X1e=Re(),Z1e=n_(),J1e=Ds(),$1e=Um();DV.exports=function(r,t,a,n){function i(o,s){return X1e.coerce(r,t,$1e,o,s)}var l=Z1e(r,t,i,n);if(!l){t.visible=!1;return}J1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),LV(r,t,i,"increasing"),LV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function LV(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var i_=O((T6e,RV)=>{"use strict";var ic=Re(),Wm=ic._,Xm=Zr(),K1e=Es(),F0=wt().BADNUM;function Q1e(e,r){var t=Xm.getFromId(e,r.xaxis),a=Xm.getFromId(e,r.yaxis),n=epe(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=PV(e,r,l,o,a,j1e);return r._extremes[t._id]=Xm.findExtremes(t,o,{vpad:i/2}),s.length?(ic.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function j1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function PV(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=ic.isArrayOrTypedArray(r.text),c=ic.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]=Xm.findExtremes(n,ic.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Wm(e,"open:")+" ",high:Wm(e,"high:")+" ",low:Wm(e,"low:")+" ",close:Wm(e,"close:")+" "}}),m}function epe(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 rpe=kr(),zV=Re();NV.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;zV.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=rpe.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(zV.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 HV=O((M6e,IV)=>{"use strict";var l_=kr(),tpe=Yr(),ape=br();IV.exports=function(r,t,a){var n=a||l_.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;l_.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;l_.select(this).style("fill","none").call(ape.stroke,s.color).call(tpe.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var s_=O((k6e,GV)=>{"use strict";var o_=Zr(),npe=Re(),Zm=_i(),ipe=br(),lpe=Re().fillText,BV=Uf(),ope={increasing:BV.INCREASING.SYMBOL,decreasing:BV.DECREASING.SYMBOL};function spe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?YV(e,r,t,a):VV(e,r,t,a)}function OV(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 Zm.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||Zm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var A=Zm.getDistanceFunction(a,_,w,x);if(Zm.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 ipe.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 YV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=OV(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]+o_.hoverLabelText(i,y,l.yhoverformat)):(_=npe.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=y,_.yLabel=o.labels[m]+o_.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),d[y]=_)}return s}function VV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=OV(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]+o_.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")+" "+ope[h]]:[];return _&&lpe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}GV.exports={hoverPoints:spe,hoverSplit:YV,hoverOnPoints:VV}});var u_=O((q6e,UV)=>{"use strict";UV.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";WV.exports={moduleType:"trace",name:"ohlc",basePlotModule:Ml(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Um(),supplyDefaults:EV(),calc:i_().calc,plot:FV(),style:HV(),hoverPoints:s_().hoverPoints,selectPoints:u_()}});var JV=O((S6e,ZV)=>{"use strict";ZV.exports=XV()});var eG=O((L6e,jV)=>{"use strict";var upe=Q3(),ii=Ti(),$V=Ll(),fpe=In(),KV=yi().axisHoverFormat,{hovertemplateAttrs:cpe,templatefallbackAttrs:vpe}=gn(),zl=mt().extendFlat,lc=ii.marker,QV=lc.line;jV.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:ii.xperiod,yperiod:ii.yperiod,xperiod0:ii.xperiod0,yperiod0:ii.yperiod0,xperiodalignment:ii.xperiodalignment,yperiodalignment:ii.yperiodalignment,xhoverformat:KV("x"),yhoverformat:KV("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:zl({},lc.symbol,{arrayOk:!1,editType:"plot"}),opacity:zl({},lc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:zl({},lc.angle,{arrayOk:!1,editType:"calc"}),size:zl({},lc.size,{arrayOk:!1,editType:"calc"}),color:zl({},lc.color,{arrayOk:!1,editType:"style"}),line:{color:zl({},QV.color,{arrayOk:!1,dflt:fpe.defaultLine,editType:"style"}),width:zl({},QV.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:upe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:$V.offsetgroup,alignmentgroup:$V.alignmentgroup,selected:{marker:ii.selected.marker,editType:"style"},unselected:{marker:ii.unselected.marker,editType:"style"},text:zl({},ii.text,{}),hovertext:zl({},ii.hovertext,{}),hovertemplate:cpe({}),hovertemplatefallback:vpe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ii.zorder}});var c_=O((D6e,aG)=>{"use strict";var f_=Re().extendFlat,rG=yi().axisHoverFormat,en=Um(),oc=eG();function tG(e){return{line:{color:f_({},oc.line.color,{dflt:e}),width:oc.line.width,editType:"style"},fillcolor:oc.fillcolor,editType:"style"}}aG.exports={xperiod:en.xperiod,xperiod0:en.xperiod0,xperiodalignment:en.xperiodalignment,xhoverformat:rG("x"),yhoverformat:rG("y"),x:en.x,open:en.open,high:en.high,low:en.low,close:en.close,line:{width:f_({},oc.line.width,{}),editType:"style"},increasing:tG(en.increasing.line.color.dflt),decreasing:tG(en.decreasing.line.color.dflt),text:en.text,hovertext:en.hovertext,hovertemplate:en.hovertemplate,hovertemplatefallback:en.hovertemplatefallback,whiskerwidth:f_({},oc.whiskerwidth,{dflt:0}),hoverlabel:en.hoverlabel,zorder:oc.zorder}});var v_=O((E6e,nG)=>{"use strict";nG.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 oG=O((P6e,lG)=>{"use strict";var hpe=gr(),dpe=Re(),ppe=v_();function iG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var sG=Zr(),ype=Re(),gpe=qs().getAxisGroup,uG=["v","h"];function xpe(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"?(V=S*(k?1:.5),X=J,B=X=E):M==="negative"?(V=X=E,B=S*(k?1:.5),ee=J):(V=B=S,X=ee=J),ce){var be=x.pointpos,ge=x.jitter,_e=x.marker.size/2,W=0;be+ge>=0&&(W=J*(be+ge),W>V?(qe=!0,he=_e,le=W):W>X&&(he=_e,le=V)),W<=V&&(le=V);var j=0;be-ge<=0&&(j=-J*(be-ge),j>B?(qe=!0,Q=_e,fe=j):j>ee&&(Q=_e,fe=B)),j<=B&&(fe=B)}else le=V,fe=B;var Z=new Array(f.length);for(u=0;u{"use strict";var bpe=Re(),_pe=br(),wpe=n_(),Tpe=Ds(),Ape=c_();dG.exports=function(r,t,a,n){function i(o,s){return bpe.coerce(r,t,Ape,o,s)}var l=wpe(r,t,i,n);if(!l){t.visible=!1;return}Tpe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),hG(r,t,i,"increasing"),hG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function hG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",_pe.addOpacity(n,.5))}});var xG=O((N6e,gG)=>{"use strict";var mG=Re(),yG=Zr(),Mpe=Es(),kpe=i_().calcCommon;gG.exports=function(e,r){var t=e._fullLayout,a=yG.getFromId(e,r.xaxis),n=yG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Mpe(r,a,"x",i).vals,o=kpe(e,r,i,l,n,qpe);return o.length?(mG.extendFlat(o[0].t,{num:t._numBoxes,dPos:mG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function qpe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var MG=O((F6e,AG)=>{"use strict";var sc=kr(),iu=Re(),Cpe=Yr(),bG=5,Spe=.01;function Lpe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;iu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=sc.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),_G(s,{pos:h,val:d},c,f,n),wG(s,{x:i,y:l},c,f),TG(s,{pos:h,val:d},c,f)})}function _G(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?iu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return sc.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",F=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=iu.constrain(H?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(F,Y)+1,Math.max(F,Y)-1),G=w.lf===void 0||t.boxpoints===!1||H,V=l.c2p(G?w.min:w.lf,!0),B=l.c2p(G?w.max:w.uf,!0),J=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?sc.select(this).attr("d","M"+U+","+R+"V"+N+"M"+F+","+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"+F+","+M+"H"+V+"M"+Y+","+M+"H"+B+(h===0?"":"M"+V+","+D+"V"+E+"M"+B+","+D+"V"+E):"")):sc.select(this).attr("d","M"+R+","+U+"H"+N+"M"+A+","+F+"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+","+F+"V"+V+"M"+M+","+Y+"V"+B+(h===0?"":"M"+D+","+V+"H"+E+"M"+D+","+B+"H"+E):""))})}function wG(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;iu.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*Spe,_=[],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(Cpe.translatePoints,n,i)}function TG(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?iu.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"?sc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+m+"L"+x+","+b+"Z":"")):sc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+_+"L"+b+","+x+"Z":""))})}AG.exports={plot:Lpe,plotBoxAndWhiskers:_G,plotPoints:wG,plotBoxMean:TG}});var qG=O((I6e,kG)=>{"use strict";var h_=kr(),d_=br(),p_=Yr();function Dpe(e,r,t){var a=t||h_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=h_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(d_.stroke,d).call(d_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=h_.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(d_.stroke,l.line.color);var f=i.selectAll("path.point");p_.pointStyle(f,l,e)}})}function Epe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?p_.selectedPointStyle(n,a):p_.pointStyle(n,a,e)}kG.exports={style:Dpe,styleOnSelect:Epe}});var SG=O((H6e,CG)=>{"use strict";CG.exports={moduleType:"trace",name:"candlestick",basePlotModule:Ml(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:c_(),layoutAttributes:v_(),supplyLayoutDefaults:oG().supplyLayoutDefaults,crossTraceCalc:vG().crossTraceCalc,supplyDefaults:pG(),calc:xG(),plot:MG().plot,layerName:"boxlayer",style:qG().style,hoverPoints:s_().hoverPoints,selectPoints:u_()}});var DG=O((B6e,LG)=>{"use strict";LG.exports=SG()});var Na=O((O6e,PG)=>{"use strict";var EG=Object.getOwnPropertySymbols,Ppe=Object.prototype.hasOwnProperty,Rpe=Object.prototype.propertyIsEnumerable;function zpe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Npe(){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}}PG.exports=Npe()?Object.assign:function(e,r){for(var t,a=zpe(e),n,i=1;i{var $m=Na();function RG(){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={}}$m(RG.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 m_(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 Jm(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}$m(m_.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?"-":"")+Jm(Math.abs(this.year()),4)+"-"+Jm(this.month(),2)+"-"+Jm(this.day(),2)}});function y_(){this.shortYearCutoff="+10"}$m(y_.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 m_(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?"-":"")+Jm(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=zG.exports=new RG;Rr.cdate=m_;Rr.baseCalendar=y_;Rr.calendars.gregorian=g_});var NG=O(()=>{var x_=Na(),pa=Fa();x_(pa.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"});pa.local=pa.regionalOptions[""];x_(pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(pa.baseCalendar.prototype,{UNIX_EPOCH:pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:pa.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 pa.local.invalidFormat||pa.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 F=b(N,H),Y=[2,3,F?4:2,F?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],U=new RegExp("^-?\\d{1,"+Y+"}"),G=r.substring(S).match(U);if(!G)throw(pa.local.missingNumberAt||pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[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,F,Y){for(var U=b(N,Y)?F:H,G=0;G-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 FG=O(()=>{var Ro=Fa(),Fpe=Na(),b_=Ro.instance();function Km(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Km.prototype=new Ro.baseCalendar;Fpe(Km.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(Hpe);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(Bpe);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(Ope);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 Ro.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 Ro.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,Ro.local.invalidyear),n=No[a-No[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=b_.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=zo[e-zo[0]],a=t>>13,n=a?12:11;if(r>n)throw Ro.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,Ro.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=Vpe(e,i,t,n);return b_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=b_.fromJD(e),t=Ype(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(Ipe),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(Km.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 Ipe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Hpe=/^\d?\d[iI]?/m,Bpe=/^闰?十?[一二三四五六七八九]?月/m,Ope=/^闰?十?[一二三四五六七八九]?/m;Ro.calendars.chinese=Km;var zo=[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],No=[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 Ype(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=No[n.year-No[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=No[i.year-No[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=zo[i.year-zo[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=zo[l.year-zo[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 IG=O(()=>{var lu=Fa(),Gpe=Na();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new lu.baseCalendar;Gpe(__.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,lu.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,lu.local.invalidYear||lu.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,lu.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,lu.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)}});lu.calendars.coptic=__});var HG=O(()=>{var Nl=Fa(),Upe=Na();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new Nl.baseCalendar;Upe(w_.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,Nl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nl.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,Nl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Nl.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,Nl.local.invalidDate);return{century:Wpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Nl.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 Wpe={20:"Fruitbat",21:"Anchovy"};Nl.calendars.discworld=w_});var BG=O(()=>{var ou=Fa(),Xpe=Na();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new ou.baseCalendar;Xpe(T_.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,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.ethiopian=T_});var OG=O(()=>{var Fo=Fa(),Zpe=Na();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new Fo.baseCalendar;Zpe(A_.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,Fo.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Qm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fo.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,Fo.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,Fo.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Qm(this.daysInYear(e),10)===5?30:r===9&&Qm(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,Fo.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,Fo.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 Qm(e,r){return e-r*Math.floor(e/r)}Fo.calendars.hebrew=A_});var YG=O(()=>{var I0=Fa(),Jpe=Na();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new I0.baseCalendar;Jpe(M_.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=M_});var VG=O(()=>{var H0=Fa(),$pe=Na();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new H0.baseCalendar;$pe(k_.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=k_});var UG=O(()=>{var li=Fa(),Kpe=Na();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new li.baseCalendar;Kpe(C_.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,li.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,li.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,li.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,li.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,li.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,li.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,li.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,li.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,li.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=q_(e+8+17*20,365);return[Math.floor(r/20)+1,q_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[GG(e+20,20),GG(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,li.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 q_(e,r){return e-r*Math.floor(e/r)}function GG(e,r){return q_(e-1,r)+1}li.calendars.mayan=C_});var XG=O(()=>{var su=Fa(),Qpe=Na();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new su.baseCalendar;var WG=su.instance("gregorian");Qpe(S_.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,su.local.invalidYear||su.regionalOptions[""].invalidYear);return WG.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,su.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,su.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)}});su.calendars.nanakshahi=S_});var ZG=O(()=>{var uu=Fa(),jpe=Na();function L_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L_.prototype=new uu.baseCalendar;jpe(L_.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,uu.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,uu.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,uu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uu.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=uu.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 uc=Fa(),eme=Na();function ey(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function jm(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}ey.prototype=new uc.baseCalendar;eme(ey.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,uc.local.invalidYear);return jm(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,uc.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,uc.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,jm(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)}});uc.calendars.persian=ey;uc.calendars.jalali=ey});var $G=O(()=>{var fu=Fa(),rme=Na(),ry=fu.instance();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new fu.baseCalendar;rme(D_.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,fu.local.invalidYear),t=this._t2gYear(r.year());return ry.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,fu.local.invalidYear),n=this._t2gYear(a.year());return ry.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,fu.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,fu.local.invalidDate),n=this._t2gYear(a.year());return ry.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ry.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)}});fu.calendars.taiwan=D_});var KG=O(()=>{var cu=Fa(),tme=Na(),ty=cu.instance();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new cu.baseCalendar;tme(E_.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,cu.local.invalidYear),t=this._t2gYear(r.year());return ty.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 ty.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 ty.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ty.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)}});cu.calendars.thai=E_});var QG=O(()=>{var vu=Fa(),ame=Na();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new vu.baseCalendar;ame(P_.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,vu.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,vu.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Io[n]-Io[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,vu.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Io[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-Io[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=vu.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=vu.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vu.calendars.ummalqura=P_;var Io=[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 eU=O((x7e,jG)=>{"use strict";jG.exports=Fa();NG();FG();IG();HG();BG();OG();YG();VG();UG();XG();ZG();JG();$G();KG();QG()});var oU=O((b7e,lU)=>{"use strict";var tU=eU(),B0=Re(),aU=wt(),nme=aU.EPOCHJD,ime=aU.ONEDAY,N_={valType:"enumerated",values:B0.sortObjectKeys(tU.calendars),editType:"calc",dflt:"gregorian"},nU=function(e,r,t,a){var n={};return n[t]=N_,B0.coerce(e,r,n,t,a)},lme=function(e,r,t,a){for(var n=0;n{"use strict";sU.exports=oU()});var vme=O((w7e,cU)=>{var fU=mF();fU.register([gI(),uH(),UH(),EB(),_O(),UO(),TV(),JV(),DG(),uU()]);cU.exports=fU});return vme();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index 7c8eaedc658..c79b704406d 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -13756,9 +13756,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35886,7 +35886,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-geo.min.js b/dist/plotly-geo.min.js index 786dbb28743..59888116028 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var QI=Object.defineProperty,eH=Object.defineProperties;var rH=Object.getOwnPropertyDescriptors;var J_=Object.getOwnPropertySymbols;var tH=Object.prototype.hasOwnProperty,nH=Object.prototype.propertyIsEnumerable;var $_=(e,r,t)=>r in e?QI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tc=(e,r)=>{for(var t in r||(r={}))tH.call(r,t)&&$_(e,t,r[t]);if(J_)for(var t of J_(r))nH.call(r,t)&&$_(e,t,r[t]);return e},fd=(e,r)=>eH(e,rH(r));var te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var cd=te(K_=>{"use strict";K_.version="3.4.0"});var e6=te((Q_,vd)=>{(function(r,t,n){t[r]=t[r]||n(),typeof vd!="undefined"&&vd.exports&&(vd.exports=t[r])})("Promise",typeof window!="undefined"?window:Q_,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,W;if(arguments.length===1){for(;++w=E){q=W=E;break}for(;++wE&&(q=E),W=E){q=W=E;break}for(;++wE&&(q=E),W1)return W/(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(W=c[g],w=W.length;--w>=0;)E[--q]=W[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,W;if(c*=q,g*=q,w*=q,w<0)for(;(W=c+w*++E)>g;)S.push(W/q);else for(;(W=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ae=-1,ge=j.length,ye=g[ne++],ze,Ve,be,ke=new b,Ee;++ae=g.length)return F;var ne=[],ae=w[j++];return F.forEach(function(ge,ye){ne.push({key:ge,values:W(ye,j)})}),ae?ne.sort(function(ge,ye){return ae(ge.key,ye.key)}):ne}return c.map=function(F,j){return E(j,F,0)},c.entries=function(F){return W(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 V;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 ce(c){var g=[],w=new b;function S(){for(var q=g,E=-1,W=q.length,F;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),_e.hasOwnProperty(w)?{space:_e[w],local:c}:c}},pe.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(De(g,c[g]));return this}return this.each(De(c,g))};function De(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 W(){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:W:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=ar(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},pe.sort=function(c){c=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=W[g])&&++g0&&(c=c.slice(0,q));var W=pr.get(c);W&&(c=W,E=yr);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)+"$"),ge;for(var ye in this)if(ge=ye.match(ae)){var ze=this[ye];this.removeEventListener(ge[1],ze,ze.$),delete this[ye]}}return q?g?j:F:g?K:ne}var pr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&pr.forEach(function(c){"on"+c in n&&pr.remove(c)});function Tr(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 yr(c,g){var w=Tr(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var wr,Hr=0;function Sr(c){var g=".dragsuppress-"+ ++Hr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,Se).on("dragstart"+g,Se).on("selectstart"+g,Se);if(wr==null&&(wr="onselectstart"in c?!1:ie(c.style,"userSelect")),wr){var q=a(c).style,E=q[wr];q[wr]="none"}return function(W){if(S.on(g,null),wr&&(q[wr]=E),W){var F=function(){S.on(w,null)};S.on(w,function(){Se(),F()},!0),setTimeout(F,0)}}}e.mouse=function(c){return ur(c,Fe())};var Dr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ur(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Dr<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();Dr=!(E.f||E.e),w.remove()}}return Dr?(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 W=c.getBoundingClientRect();return[g.clientX-W.left-c.clientLeft,g.clientY-W.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Fe().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function Kt(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function cn(c){return c>1?0:c<-1?rr:Math.acos(c)}function pn(c){return c>1?Fr:c<-1?-Fr:Math.asin(c)}function Mn(c){return((c=Math.exp(c))-1/c)/2}function Xt(c){return((c=Math.exp(c))+1/c)/2}function Qt(c){return((c=Math.exp(2*c))-1)/(c+1)}function en(c){return(c=Math.sin(c/2))*c}var an=Math.SQRT2,jr=2,Ut=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],W=g[1],F=g[2],j=E-w,ne=W-S,ae=j*j+ne*ne,ge,ye;if(ae<$e)ye=Math.log(F/q)/an,ge=function(Ge){return[w+Ge*j,S+Ge*ne,q*Math.exp(an*Ge*ye)]};else{var ze=Math.sqrt(ae),Ve=(F*F-q*q+Ut*ae)/(2*q*jr*ze),be=(F*F-q*q-Ut*ae)/(2*F*jr*ze),ke=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Ee=Math.log(Math.sqrt(be*be+1)-be);ye=(Ee-ke)/an,ge=function(Ge){var We=Ge*ye,Re=Xt(ke),xr=q/(jr*ze)*(Re*Qt(an*We+ke)-Mn(ke));return[w+xr*j,S+xr*ne,q*Re/Xt(an*We+ke)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],E=Nt,W=250,F=0,j="mousedown.zoom",ne="mousemove.zoom",ae="mouseup.zoom",ge,ye="touchstart.zoom",ze,Ve=He(We,"zoomstart","zoom","zoomend"),be,ke,Ee,Ge;Tn||(Tn="onwheel"in n?(rn=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(rn=function(){return e.event.wheelDelta},"mousewheel"):(rn=function(){return-e.event.detail},"MozMousePixelScroll"));function We(zr){zr.on(j,ht).on(Tn+".zoom",jn).on("dblclick.zoom",sn).on(ye,Jt)}We.event=function(zr){zr.each(function(){var _t=Ve.of(this,arguments),wt=c;ga?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},Kr(_t)}).tween("zoom:zoom",function(){var $t=q[0],In=q[1],sa=w?w[0]:$t/2,qa=w?w[1]:In/2,Ja=e.interpolateZoom([(sa-c.x)/c.k,(qa-c.y)/c.k,$t/c.k],[(sa-wt.x)/wt.k,(qa-wt.y)/wt.k,$t/wt.k]);return function(vi){var $a=Ja(vi),Ci=$t/$a[2];this.__chart__=c={x:sa-$a[0]*Ci,y:qa-$a[1]*Ci,k:Ci},bt(_t)}}).each("interrupt.zoom",function(){et(_t)}).each("end.zoom",function(){et(_t)}):(this.__chart__=c,Kr(_t),bt(_t),et(_t))})},We.translate=function(zr){return arguments.length?(c={x:+zr[0],y:+zr[1],k:c.k},$r(),We):[c.x,c.y]},We.scale=function(zr){return arguments.length?(c={x:c.x,y:c.y,k:null},Or(+zr),$r(),We):c.k},We.scaleExtent=function(zr){return arguments.length?(E=zr==null?Nt:[+zr[0],+zr[1]],We):E},We.center=function(zr){return arguments.length?(S=zr&&[+zr[0],+zr[1]],We):S},We.size=function(zr){return arguments.length?(q=zr&&[+zr[0],+zr[1]],We):q},We.duration=function(zr){return arguments.length?(W=+zr,We):W},We.x=function(zr){return arguments.length?(ke=zr,be=zr.copy(),c={x:0,y:0,k:1},We):ke},We.y=function(zr){return arguments.length?(Ge=zr,Ee=zr.copy(),c={x:0,y:0,k:1},We):Ge};function Re(zr){return[(zr[0]-c.x)/c.k,(zr[1]-c.y)/c.k]}function xr(zr){return[zr[0]*c.k+c.x,zr[1]*c.k+c.y]}function Or(zr){c.k=Math.max(E[0],Math.min(E[1],zr))}function Wr(zr,_t){_t=xr(_t),c.x+=zr[0]-_t[0],c.y+=zr[1]-_t[1]}function Vr(zr,_t,wt,$t){zr.__chart__={x:c.x,y:c.y,k:c.k},Or(Math.pow(2,$t)),Wr(w=_t,wt),zr=e.select(zr),W>0&&(zr=zr.transition().duration(W)),zr.call(We.event)}function $r(){ke&&ke.domain(be.range().map(function(zr){return(zr-c.x)/c.k}).map(be.invert)),Ge&&Ge.domain(Ee.range().map(function(zr){return(zr-c.y)/c.k}).map(Ee.invert))}function Kr(zr){F++||zr({type:"zoomstart"})}function bt(zr){$r(),zr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function et(zr){--F||(zr({type:"zoomend"}),w=null)}function ht(){var zr=this,_t=Ve.of(zr,arguments),wt=0,$t=e.select(i(zr)).on(ne,qa).on(ae,Ja),In=Re(e.mouse(zr)),sa=Sr(zr);vt.call(zr),Kr(_t);function qa(){wt=1,Wr(e.mouse(zr),In),bt(_t)}function Ja(){$t.on(ne,null).on(ae,null),sa(wt),et(_t)}}function Jt(){var zr=this,_t=Ve.of(zr,arguments),wt={},$t=0,In,sa=".zoom-"+e.event.changedTouches[0].identifier,qa="touchmove"+sa,Ja="touchend"+sa,vi=[],$a=e.select(zr),Ci=Sr(zr);Li(),Kr(_t),$a.on(j,null).on(ye,Li);function Fa(){var vl=e.touches(zr);return In=c.k,vl.forEach(function(Da){Da.identifier in wt&&(wt[Da.identifier]=Re(Da))}),vl}function Li(){var vl=e.event.target;e.select(vl).on(qa,ec).on(Ja,KI),vi.push(vl);for(var Da=e.event.changedTouches,yo=0,Kl=Da.length;yo1){var rc=bo[0],Fu=bo[1],ud=rc[0]-Fu[0],j_=rc[1]-Fu[1];$t=ud*ud+j_*j_}}function ec(){var vl=e.touches(zr),Da,yo,Kl,bo;vt.call(zr);for(var k0=0,rc=vl.length;k01?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 W(F){return Math.round(E(F)*255)}return new Yn(W(c+120),W(c),W(c-120))}e.hcl=kn;function kn(c,g,w){return this instanceof kn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof kn?new kn(c.h,c.c,c.l):c instanceof hn?zl(c.l,c.a,c.b):zl((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new kn(c,g,w)}var Wa=kn.prototype=new vn;Wa.brighter=function(c){return new kn(this.h,this.c,Math.min(100,this.l+dn*(arguments.length?c:1)))},Wa.darker=function(c){return new kn(this.h,this.c,Math.max(0,this.l-dn*(arguments.length?c:1)))},Wa.rgb=function(){return oa(this.h,this.c,this.l).rgb()};function oa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new hn(w,Math.cos(c*=st)*g,Math.sin(c)*g)}e.lab=hn;function hn(c,g,w){return this instanceof hn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof hn?new hn(c.l,c.a,c.b):c instanceof kn?oa(c.h,c.c,c.l):Br((c=Yn(c)).r,c.g,c.b):new hn(c,g,w)}var dn=18,Un=.95047,mi=1,oo=1.08883,yi=hn.prototype=new vn;yi.brighter=function(c){return new hn(Math.min(100,this.l+dn*(arguments.length?c:1)),this.a,this.b)},yi.darker=function(c){return new hn(Math.max(0,this.l-dn*(arguments.length?c:1)),this.a,this.b)},yi.rgb=function(){return Ms(this.l,this.a,this.b)};function Ms(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Yo(q)*Un,S=Yo(S)*mi,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 zl(c,g,w){return c>0?new kn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new kn(NaN,NaN,c)}function Yo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function As(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):St(""+c,Yn,Va):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 vn;_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 It(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,W,F,j=(q+S)/2;return E?(F=j<.5?E/(q+S):E/(2-q-S),c==q?W=(g-w)/E+(g0&&j<1?0:W),new Yt(W,F,j)}function Br(c,g,w){c=Zn(c),g=Zn(g),w=Zn(w);var S=As((.4124564*c+.3575761*g+.1804375*w)/Un),q=As((.2126729*c+.7151522*g+.072175*w)/mi),E=As((.0193339*c+.119192*g+.9503041*w)/oo);return hn(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 on(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=Za(U);function Za(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"),W={},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,ge;if(!ae&&yu(F)||ae>=200&&ae<300||ae===304){try{ge=w.call(q,F)}catch(ye){E.error.call(q,ye);return}E.load.call(q,ge)}else E.error.call(q,F)}return F.onprogress=function(ae){var ge=e.event;e.event=ae;try{E.progress.call(q,F)}finally{e.event=ge}},q.header=function(ae,ge){return ae=(ae+"").toLowerCase(),arguments.length<2?W[ae]:(ge==null?delete W[ae]:W[ae]=ge+"",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,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),F.open(ae,c,!0),g!=null&&!("accept"in W)&&(W.accept=g+",*/*"),F.setRequestHeader)for(var ze in W)F.setRequestHeader(ze,W[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(ge==null?null:ge),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+` +"use strict";var Plotly=(()=>{var QI=Object.defineProperty,eH=Object.defineProperties;var rH=Object.getOwnPropertyDescriptors;var J_=Object.getOwnPropertySymbols;var tH=Object.prototype.hasOwnProperty,nH=Object.prototype.propertyIsEnumerable;var $_=(e,r,t)=>r in e?QI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tc=(e,r)=>{for(var t in r||(r={}))tH.call(r,t)&&$_(e,t,r[t]);if(J_)for(var t of J_(r))nH.call(r,t)&&$_(e,t,r[t]);return e},cd=(e,r)=>eH(e,rH(r));var te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var vd=te(K_=>{"use strict";K_.version="3.4.0"});var e6=te((Q_,hd)=>{(function(r,t,n){t[r]=t[r]||n(),typeof hd!="undefined"&&hd.exports&&(hd.exports=t[r])})("Promise",typeof window!="undefined"?window:Q_,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,W;if(arguments.length===1){for(;++w=E){q=W=E;break}for(;++wE&&(q=E),W=E){q=W=E;break}for(;++wE&&(q=E),W1)return W/(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(W=c[g],w=W.length;--w>=0;)E[--q]=W[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,W;if(c*=q,g*=q,w*=q,w<0)for(;(W=c+w*++E)>g;)S.push(W/q);else for(;(W=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ae=-1,ge=j.length,ye=g[ne++],ze,Ve,be,ke=new b,Ee;++ae=g.length)return F;var ne=[],ae=w[j++];return F.forEach(function(ge,ye){ne.push({key:ge,values:W(ye,j)})}),ae?ne.sort(function(ge,ye){return ae(ge.key,ye.key)}):ne}return c.map=function(F,j){return E(j,F,0)},c.entries=function(F){return W(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 V;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 ce(c){var g=[],w=new b;function S(){for(var q=g,E=-1,W=q.length,F;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),_e.hasOwnProperty(w)?{space:_e[w],local:c}:c}},pe.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(De(g,c[g]));return this}return this.each(De(c,g))};function De(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 W(){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:W:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=ar(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},pe.sort=function(c){c=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=W[g])&&++g0&&(c=c.slice(0,q));var W=pr.get(c);W&&(c=W,E=yr);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)+"$"),ge;for(var ye in this)if(ge=ye.match(ae)){var ze=this[ye];this.removeEventListener(ge[1],ze,ze.$),delete this[ye]}}return q?g?j:F:g?K:ne}var pr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&pr.forEach(function(c){"on"+c in n&&pr.remove(c)});function Tr(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 yr(c,g){var w=Tr(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var wr,Hr=0;function Sr(c){var g=".dragsuppress-"+ ++Hr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,Se).on("dragstart"+g,Se).on("selectstart"+g,Se);if(wr==null&&(wr="onselectstart"in c?!1:ie(c.style,"userSelect")),wr){var q=a(c).style,E=q[wr];q[wr]="none"}return function(W){if(S.on(g,null),wr&&(q[wr]=E),W){var F=function(){S.on(w,null)};S.on(w,function(){Se(),F()},!0),setTimeout(F,0)}}}e.mouse=function(c){return ur(c,Fe())};var Dr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ur(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Dr<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();Dr=!(E.f||E.e),w.remove()}}return Dr?(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 W=c.getBoundingClientRect();return[g.clientX-W.left-c.clientLeft,g.clientY-W.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Fe().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function Kt(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function cn(c){return c>1?0:c<-1?rr:Math.acos(c)}function pn(c){return c>1?Fr:c<-1?-Fr:Math.asin(c)}function Mn(c){return((c=Math.exp(c))-1/c)/2}function Xt(c){return((c=Math.exp(c))+1/c)/2}function Qt(c){return((c=Math.exp(2*c))-1)/(c+1)}function en(c){return(c=Math.sin(c/2))*c}var an=Math.SQRT2,jr=2,Ut=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],W=g[1],F=g[2],j=E-w,ne=W-S,ae=j*j+ne*ne,ge,ye;if(ae<$e)ye=Math.log(F/q)/an,ge=function(Ge){return[w+Ge*j,S+Ge*ne,q*Math.exp(an*Ge*ye)]};else{var ze=Math.sqrt(ae),Ve=(F*F-q*q+Ut*ae)/(2*q*jr*ze),be=(F*F-q*q-Ut*ae)/(2*F*jr*ze),ke=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Ee=Math.log(Math.sqrt(be*be+1)-be);ye=(Ee-ke)/an,ge=function(Ge){var We=Ge*ye,Re=Xt(ke),xr=q/(jr*ze)*(Re*Qt(an*We+ke)-Mn(ke));return[w+xr*j,S+xr*ne,q*Re/Xt(an*We+ke)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],E=Nt,W=250,F=0,j="mousedown.zoom",ne="mousemove.zoom",ae="mouseup.zoom",ge,ye="touchstart.zoom",ze,Ve=He(We,"zoomstart","zoom","zoomend"),be,ke,Ee,Ge;Tn||(Tn="onwheel"in n?(rn=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(rn=function(){return e.event.wheelDelta},"mousewheel"):(rn=function(){return-e.event.detail},"MozMousePixelScroll"));function We(zr){zr.on(j,ht).on(Tn+".zoom",jn).on("dblclick.zoom",sn).on(ye,Jt)}We.event=function(zr){zr.each(function(){var _t=Ve.of(this,arguments),wt=c;ga?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},Kr(_t)}).tween("zoom:zoom",function(){var $t=q[0],In=q[1],sa=w?w[0]:$t/2,qa=w?w[1]:In/2,Ja=e.interpolateZoom([(sa-c.x)/c.k,(qa-c.y)/c.k,$t/c.k],[(sa-wt.x)/wt.k,(qa-wt.y)/wt.k,$t/wt.k]);return function(vi){var $a=Ja(vi),Ci=$t/$a[2];this.__chart__=c={x:sa-$a[0]*Ci,y:qa-$a[1]*Ci,k:Ci},bt(_t)}}).each("interrupt.zoom",function(){et(_t)}).each("end.zoom",function(){et(_t)}):(this.__chart__=c,Kr(_t),bt(_t),et(_t))})},We.translate=function(zr){return arguments.length?(c={x:+zr[0],y:+zr[1],k:c.k},$r(),We):[c.x,c.y]},We.scale=function(zr){return arguments.length?(c={x:c.x,y:c.y,k:null},Or(+zr),$r(),We):c.k},We.scaleExtent=function(zr){return arguments.length?(E=zr==null?Nt:[+zr[0],+zr[1]],We):E},We.center=function(zr){return arguments.length?(S=zr&&[+zr[0],+zr[1]],We):S},We.size=function(zr){return arguments.length?(q=zr&&[+zr[0],+zr[1]],We):q},We.duration=function(zr){return arguments.length?(W=+zr,We):W},We.x=function(zr){return arguments.length?(ke=zr,be=zr.copy(),c={x:0,y:0,k:1},We):ke},We.y=function(zr){return arguments.length?(Ge=zr,Ee=zr.copy(),c={x:0,y:0,k:1},We):Ge};function Re(zr){return[(zr[0]-c.x)/c.k,(zr[1]-c.y)/c.k]}function xr(zr){return[zr[0]*c.k+c.x,zr[1]*c.k+c.y]}function Or(zr){c.k=Math.max(E[0],Math.min(E[1],zr))}function Wr(zr,_t){_t=xr(_t),c.x+=zr[0]-_t[0],c.y+=zr[1]-_t[1]}function Vr(zr,_t,wt,$t){zr.__chart__={x:c.x,y:c.y,k:c.k},Or(Math.pow(2,$t)),Wr(w=_t,wt),zr=e.select(zr),W>0&&(zr=zr.transition().duration(W)),zr.call(We.event)}function $r(){ke&&ke.domain(be.range().map(function(zr){return(zr-c.x)/c.k}).map(be.invert)),Ge&&Ge.domain(Ee.range().map(function(zr){return(zr-c.y)/c.k}).map(Ee.invert))}function Kr(zr){F++||zr({type:"zoomstart"})}function bt(zr){$r(),zr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function et(zr){--F||(zr({type:"zoomend"}),w=null)}function ht(){var zr=this,_t=Ve.of(zr,arguments),wt=0,$t=e.select(i(zr)).on(ne,qa).on(ae,Ja),In=Re(e.mouse(zr)),sa=Sr(zr);vt.call(zr),Kr(_t);function qa(){wt=1,Wr(e.mouse(zr),In),bt(_t)}function Ja(){$t.on(ne,null).on(ae,null),sa(wt),et(_t)}}function Jt(){var zr=this,_t=Ve.of(zr,arguments),wt={},$t=0,In,sa=".zoom-"+e.event.changedTouches[0].identifier,qa="touchmove"+sa,Ja="touchend"+sa,vi=[],$a=e.select(zr),Ci=Sr(zr);Li(),Kr(_t),$a.on(j,null).on(ye,Li);function Fa(){var vl=e.touches(zr);return In=c.k,vl.forEach(function(Da){Da.identifier in wt&&(wt[Da.identifier]=Re(Da))}),vl}function Li(){var vl=e.event.target;e.select(vl).on(qa,ec).on(Ja,KI),vi.push(vl);for(var Da=e.event.changedTouches,yo=0,Kl=Da.length;yo1){var rc=bo[0],Fu=bo[1],fd=rc[0]-Fu[0],j_=rc[1]-Fu[1];$t=fd*fd+j_*j_}}function ec(){var vl=e.touches(zr),Da,yo,Kl,bo;vt.call(zr);for(var k0=0,rc=vl.length;k01?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 W(F){return Math.round(E(F)*255)}return new Yn(W(c+120),W(c),W(c-120))}e.hcl=kn;function kn(c,g,w){return this instanceof kn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof kn?new kn(c.h,c.c,c.l):c instanceof hn?zl(c.l,c.a,c.b):zl((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new kn(c,g,w)}var Wa=kn.prototype=new vn;Wa.brighter=function(c){return new kn(this.h,this.c,Math.min(100,this.l+dn*(arguments.length?c:1)))},Wa.darker=function(c){return new kn(this.h,this.c,Math.max(0,this.l-dn*(arguments.length?c:1)))},Wa.rgb=function(){return oa(this.h,this.c,this.l).rgb()};function oa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new hn(w,Math.cos(c*=st)*g,Math.sin(c)*g)}e.lab=hn;function hn(c,g,w){return this instanceof hn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof hn?new hn(c.l,c.a,c.b):c instanceof kn?oa(c.h,c.c,c.l):Br((c=Yn(c)).r,c.g,c.b):new hn(c,g,w)}var dn=18,Un=.95047,mi=1,oo=1.08883,yi=hn.prototype=new vn;yi.brighter=function(c){return new hn(Math.min(100,this.l+dn*(arguments.length?c:1)),this.a,this.b)},yi.darker=function(c){return new hn(Math.max(0,this.l-dn*(arguments.length?c:1)),this.a,this.b)},yi.rgb=function(){return Ms(this.l,this.a,this.b)};function Ms(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Yo(q)*Un,S=Yo(S)*mi,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 zl(c,g,w){return c>0?new kn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new kn(NaN,NaN,c)}function Yo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function As(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):St(""+c,Yn,Va):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 vn;_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 It(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,W,F,j=(q+S)/2;return E?(F=j<.5?E/(q+S):E/(2-q-S),c==q?W=(g-w)/E+(g0&&j<1?0:W),new Yt(W,F,j)}function Br(c,g,w){c=Zn(c),g=Zn(g),w=Zn(w);var S=As((.4124564*c+.3575761*g+.1804375*w)/Un),q=As((.2126729*c+.7151522*g+.072175*w)/mi),E=As((.0193339*c+.119192*g+.9503041*w)/oo);return hn(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 on(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=Za(U);function Za(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"),W={},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,ge;if(!ae&&yu(F)||ae>=200&&ae<300||ae===304){try{ge=w.call(q,F)}catch(ye){E.error.call(q,ye);return}E.load.call(q,ge)}else E.error.call(q,F)}return F.onprogress=function(ae){var ge=e.event;e.event=ae;try{E.progress.call(q,F)}finally{e.event=ge}},q.header=function(ae,ge){return ae=(ae+"").toLowerCase(),arguments.length<2?W[ae]:(ge==null?delete W[ae]:W[ae]=ge+"",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,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),F.open(ae,c,!0),g!=null&&!("accept"in W)&&(W.accept=g+",*/*"),F.setRequestHeader)for(var ze in W)F.setRequestHeader(ze,W[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(ge==null?null:ge),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,ge){arguments.length<3&&(ge=ae,ae=null);var ye=Wo(ne,g,ae==null?E:W(ae),ge);return ye.row=function(ze){return arguments.length?ye.response((ae=ze)==null?E:W(ze)):ae},ye}function E(ne){return q.parse(ne.responseText)}function W(ne){return function(ae){return q.parse(ae.responseText,ne)}}q.parse=function(ne,ae){var ge;return q.parseRows(ne,function(ye,ze){if(ge)return ge(ye,ze-1);var Ve=function(be){for(var ke={},Ee=ye.length,Ge=0;Ge=Ve)return ye;if(Ge)return Ge=!1,ge;var xr=be;if(ne.charCodeAt(xr)===34){for(var Or=xr;Or++24?(isFinite(g)&&(clearTimeout(bu),bu=setTimeout(xi,g)),Xo=0):(Xo=1,Nl(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)be.push(q[ne[ge[F]][2]]);for(F=+ze;F1&&Kt(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function n0(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Le(c,ks),c};var ks=e.geom.polygon.prototype=[];ks.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cAe)F=F.L;else if(W=g-Gv(F,w),W>Ae){if(!F.R){S=F;break}F=F.R}else{E>-Ae?(S=F.P,q=F):W>-Ae?(S=F,q=F.N):S=q=F;break}var j=Ls(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){vo(S),q=Ls(S.site),Bi.insert(j,q),j.edge=q.edge=Ol(S.site,j.site),co(S),co(q);return}if(!q){j.edge=Ol(S.site,j.site);return}vo(S),vo(q);var ne=S.site,ae=ne.x,ge=ne.y,ye=c.x-ae,ze=c.y-ge,Ve=q.site,be=Ve.x-ae,ke=Ve.y-ge,Ee=2*(ye*ke-ze*be),Ge=ye*ye+ze*ze,We=be*be+ke*ke,Re={x:(ke*Ge-ze*We)/Ee+ae,y:(ye*We-be*Ge)/Ee+ge};Yi(q.edge,ne,Ve,Re),j.edge=Ol(ne,c,null,Re),q.edge=Ol(c,Ve,null,Re),co(S),co(q)}}function Ds(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var W=c.P;if(!W)return-1/0;w=W.site;var F=w.x,j=w.y,ne=j-g;if(!ne)return F;var ae=F-S,ge=1/E-1/ne,ye=ae/ne;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ae*ae/(-2*ne)-j+ne/2+q-E/2)))/ge+S:(S+F)/2}function Gv(c,g){var w=c.N;if(w)return Ds(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(Bl),c.length};function Pf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,W,F,j,ne=fo,ae=ne.length,ge,ye,ze,Ve,be,ke;ae--;)if(ge=ne[ae],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,ye=0;yeAe||_(j-W)>Ae)&&(ze.splice(ye,0,new Ko(Wv(ge.site,ke,_(F-g)Ae?{x:g,y:_(E-g)Ae?{x:_(W-q)Ae?{x:w,y:_(E-w)Ae?{x:_(W-S)=-$e)){var ye=j*j+ne*ne,ze=ae*ae+ke*ke,Ve=(ke*ye-ne*ze)/ge,be=(j*ze-ae*ye)/ge,ke=be+F,Ee=Ef.pop()||new o0;Ee.arc=c,Ee.site=q,Ee.x=Ve+W,Ee.y=ke+Math.sqrt(Ve*Ve+be*be),Ee.cy=ke,c.circle=Ee;for(var Ge=null,We=Hl._;We;)if(Ee.y0)){if(be/=ze,ze<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-F,!(!ze&&be<0)){if(be/=ze,ze<0){if(be>ye)return;be>ge&&(ge=be)}else if(ze>0){if(be0)){if(be/=Ve,Ve<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=S-j,!(!Ve&&be<0)){if(be/=Ve,Ve<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ve>0){if(be0&&(q.a={x:F+ge*ze,y:j+ge*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],(!Vv(q,c)||!w(q)||_(q.a.x-q.b.x)=E)return;if(ae>ye){if(!S)S={x:Ve,y:W};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:(W-Ee)/ke,y:W};else if(S.y>=F)return;w={x:(F-Ee)/ke,y:F}}else{if(!S)S={x:(F-Ee)/ke,y:F};else if(S.y=E)return;w={x:E,y:ke*E+Ee}}else{if(!S)S={x:E,y:ke*E+Ee};else if(S.x=ae&&Ee.x<=ye&&Ee.y>=ge&&Ee.y<=ze?[[ae,ze],[ye,ze],[ye,ge],[ae,ge]]:[];Ge.point=j[be]}),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 W.links=function(j){return Ps(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]}})},W.triangles=function(j){var ne=[];return Ps(F(j)).cells.forEach(function(ae,ge){for(var ye=ae.site,ze=ae.edges.sort(Bl),Ve=-1,be=ze.length,ke,Ee,Ge=ze[be-1].edge,We=Ge.l===ye?Ge.r:Ge.l;++VeWe&&(We=ae.x),ae.y>Re&&(Re=ae.y),ze.push(ae.x),Ve.push(ae.y);else for(be=0;beWe&&(We=xr),Or>Re&&(Re=Or),ze.push(xr),Ve.push(Or)}var Wr=We-Ee,Vr=Re-Ge;Wr>Vr?Re=Ge+Wr:We=Ee+Vr;function $r(et,ht,Jt,jn,sn,zr,_t,wt){if(!(isNaN(Jt)||isNaN(jn)))if(et.leaf){var $t=et.x,In=et.y;if($t!=null)if(_($t-Jt)+_(In-jn)<.01)Kr(et,ht,Jt,jn,sn,zr,_t,wt);else{var sa=et.point;et.x=et.y=et.point=null,Kr(et,sa,$t,In,sn,zr,_t,wt),Kr(et,ht,Jt,jn,sn,zr,_t,wt)}else et.x=Jt,et.y=jn,et.point=ht}else Kr(et,ht,Jt,jn,sn,zr,_t,wt)}function Kr(et,ht,Jt,jn,sn,zr,_t,wt){var $t=(sn+_t)*.5,In=(zr+wt)*.5,sa=Jt>=$t,qa=jn>=In,Ja=qa<<1|sa;et.leaf=!1,et=et.nodes[Ja]||(et.nodes[Ja]=Mu()),sa?sn=$t:_t=$t,qa?zr=In:wt=In,$r(et,ht,Jt,jn,sn,zr,_t,wt)}var bt=Mu();if(bt.add=function(et){$r(bt,et,+ge(et,++be),+ye(et,be),Ee,Ge,We,Re)},bt.visit=function(et){si(et,bt,Ee,Ge,We,Re)},bt.find=function(et){return Au(bt,et[0],et[1],Ee,Ge,We,Re)},be=-1,g==null){for(;++beE||ye>W||ze=xr,Vr=w>=Or,$r=Vr<<1|Wr,Kr=$r+4;$rw&&(E=g.slice(w,E),F[W]?F[W]+=E:F[++W]=E),(S=S[0])===(q=q[0])?F[W]?F[W]+=q:F[++W]=q:(F[++W]=null,j.push({i:W,x:ta(S,q)})),w=zs.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:Aa:g instanceof vn?Tu:Array.isArray(g)?Gl:w==="object"&&isNaN(g)?za:ta)(c,g)}],e.interpolateArray=Gl;function Gl(c,g){var w=[],S=[],q=c.length,E=g.length,W=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=l0.get(w)||zf,S=Zv.get(S)||U,Xv(S(w.apply(null,r.call(arguments,1))))};function Xv(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 s0(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 u0(c){return function(g){return Math.pow(g,c)}}function Ns(c){return 1-Math.cos(c*Fr)}function Fs(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/Lr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*Lr/g)}}function Is(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=f0;function f0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,W=g.c-S,F=g.l-q;return isNaN(W)&&(W=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 oa(w+E*j,S+W*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,W=g.s-S,F=g.l-q;return isNaN(W)&&(W=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 Va(w+E*j,S+W*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,W=g.a-S,F=g.b-q;return function(j){return Ms(w+E*j,S+W*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=Hs(g),q=Vl(g,w),E=Hs(Bs(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:ta(c,g)})):g&&w.push(go(w)+"rotate("+g+")")}function v0(c,g,w,S){c!==g?S.push({i:w.push(go(w)+"skewX(",null,")")-2,x:ta(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:ta(c[0],g[0])},{i:q-2,x:ta(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),c0(c.translate,g.translate,w,S),Uf(c.rotate,g.rotate,w,S),v0(c.skew,g.skew,w,S),Yf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,W=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=Fl(c.tick)),c):E},c.start=function(){var Re,xr=ze.length,Or=Ve.length,Wr=S[0],Vr=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 Na(q,function(ge){var ye,ze;c&&(ye=ge.children)&&ye.sort(c),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),W}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)}),Na(q,function(E){var W;E.children||(E.value=+w.call(S,E,E.depth)||0),(W=E.parent)&&(W.value+=E.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Xa,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 Na(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(W=c.children)&&(E=W.length))for(var q=-1,E,W;++qq&&(q=F),S.push(F)}for(W=0;WS&&(w=g,S=q);return w}function Gs(c){return c.reduce(al,0)}function al(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Xl,S=Vs;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),ge,ye=-1,ze=j.length,Ve=ae.length-1,be=c?1:1/ze,ke;++ye0)for(ye=-1;++ye=ne[0]&&ke<=ne[1]&&(ge=F[e.bisect(ae,ke,1,Ve)-1],ge.y+=be,ge.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(W){return il(W,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Vs(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 Xl(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,W){var F=c.call(this,E,W),j=F[0],ne=w[0],ae=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Na(j,function(ze){ze.r=+ge(ze.value)}),Na(j,_0),g){var ye=g*(S?1:Math.max(2*j.r/ne,2*j.r/ae))/2;Na(j,function(ze){ze.r+=ye}),Na(j,_0),Na(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},Vi(q,c)};function Eu(c,g){return c.value-g.value}function Ws(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function b0(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 _0(c){if(!(g=c.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,W,F,j,ne,ae,ge,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(x0),W=g[0],W.x=-W.r,W.y=0,ze(W),ye>1&&(F=g[1],F.x=F.r,F.y=0,ze(F),ye>2))for(j=g[2],Xn(W,F,j),ze(j),Ws(W,j),W._pack_prev=j,Ws(j,F),F=W._pack_next,ne=3;neke.x&&(ke=xr),xr.depth>Ee.depth&&(Ee=xr)});var Ge=g(be,ke)/2-be.x,We=w[0]/(ke.x+g(ke,be)/2+Ge),Re=w[1]/(Ee.depth||1);Ti(ze,function(xr){xr.x=(xr.x+Ge)*We,xr.y=xr.depth*Re})}return ye}function E(ae){for(var ge={A:null,children:[ae]},ye=[ge],ze;(ze=ye.pop())!=null;)for(var Ve=ze.children,be,ke=0,Ee=Ve.length;ke0&&(Zs(B(be,ae,ye),ae,xr),Ee+=xr,Ge+=xr),We+=be.m,Ee+=ze.m,Re+=ke.m,Ge+=Ve.m;be&&!zu(Ve)&&(Ve.t=be,Ve.m+=We-Ge),ze&&!jl(ke)&&(ke.t=ze,ke.m+=Ee-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},Vi(q,c)};function ui(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 Zs(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=ui,w=[1,1],S=!1;function q(E,W){var F=c.call(this,E,W),j=F[0],ne,ae=0;Na(j,function(be){var ke=be.children;ke&&ke.length?(be.x=ve(ke),be.y=J(ke)):(be.x=ne?ae+=g(be,ne):0,be.y=0,ne=be)});var ge=oe(j),ye=Me(j),ze=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return Na(j,S?function(be){be.x=(be.x-j.x)*w[0],be.y=(j.y-be.y)*w[1]}:function(be){be.x=(be.x-ze)/(Ve-ze)*w[0],be.y=(1-(j.y?be.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},Vi(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,W,F="squarify",j=.5*(1+Math.sqrt(5));function ne(be,ke){for(var Ee=-1,Ge=be.length,We,Re;++Ee0;)Ge.push(Re=We[Vr-1]),Ge.area+=Re.area,F!=="squarify"||(Or=ye(Ge,Wr))<=xr?(We.pop(),xr=Or):(Ge.area-=Ge.pop().area,ze(Ge,Wr,Ee,!1),Wr=Math.min(Ee.dx,Ee.dy),Ge.length=Ge.area=0,xr=1/0);Ge.length&&(ze(Ge,Wr,Ee,!0),Ge.length=Ge.area=0),ke.forEach(ae)}}function ge(be){var ke=be.children;if(ke&&ke.length){var Ee=q(be),Ge=ke.slice(),We,Re=[];for(ne(Ge,Ee.dx*Ee.dy/be.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?Ee.dx:Ee.dy,Ee,!Ge.length),Re.length=Re.area=0);ke.forEach(ge)}}function ye(be,ke){for(var Ee=be.area,Ge,We=0,Re=1/0,xr=-1,Or=be.length;++xrWe&&(We=Ge));return Ee*=Ee,ke*=ke,Ee?Math.max(ke*We*j/Ee,Ee/(ke*Re*j)):1/0}function ze(be,ke,Ee,Ge){var We=-1,Re=be.length,xr=Ee.x,Or=Ee.y,Wr=ke?g(be.area/ke):0,Vr;if(ke==Ee.dx){for((Ge||Wr>Ee.dy)&&(Wr=Ee.dy);++WeEe.dx)&&(Wr=Ee.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:br,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),W()):c},F.range=function(j){return arguments.length?(g=j,W()):g},F.rangeRound=function(j){return F.range(j).interpolate(po)},F.clamp=function(j){return arguments.length?(S=j,W()):S},F.interpolate=function(j){return arguments.length?(w=j,W()):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),W()},F.copy=function(){return qr(c,g,w,S)},W()}function rt(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function Jr(c,g){return Je(c,vr(tt(c,g)[2])),Je(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 Er={s:1,g:1,p:1,r:1,e:1};function Ir(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Ir(g[2]);return c in Er?Math.abs(w-Ir(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 W(F){return c(q(F))}return W.invert=function(F){return E(c.invert(F))},W.domain=function(F){return arguments.length?(w=F[0]>=0,c.domain((S=F.map(Number)).map(q)),W):S},W.base=function(F){return arguments.length?(g=+F,c.domain(S.map(q)),W):g},W.nice=function(){var F=Je(S.map(q),w?Math:Gt);return c.domain(F),S=F.map(E),W},W.ticks=function(){var F=ir(S),j=[],ne=F[0],ae=F[1],ge=Math.floor(q(ne)),ye=Math.ceil(q(ae)),ze=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge0;Ve--)j.push(E(ge)*Ve);for(ge=0;j[ge]ae;ye--);j=j.slice(ge,ye)}return j},W.copy=function(){return pt(c.copy(),g,w,S)},rt(W,c)}var Gt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return tn(e.scale.linear(),1,[0,1])};function tn(c,g,w){var S=Wt(g),q=Wt(1/g);function E(W){return c(S(W))}return E.invert=function(W){return q(c.invert(W))},E.domain=function(W){return arguments.length?(c.domain((w=W.map(Number)).map(S)),E):w},E.ticks=function(W){return nt(w,W)},E.tickFormat=function(W,F){return d3_scale_linearTickFormat(w,W,F)},E.nice=function(W){return E.domain(Jr(w,W))},E.exponent=function(W){return arguments.length?(S=Wt(g=W),q=Wt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return tn(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 mn([],{t:"range",a:[[]]})};function mn(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 W(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 be,ke,Ee,Ge,We=0,Re=0,xr,Or,Wr,Vr,$r,Kr,bt,et,ht=[];if((Ge=(+W.apply(this,arguments)||0)/2)&&(Ee=S===Wi?Math.sqrt(ne*ne+ae*ae):+S.apply(this,arguments),Ve||(Re*=-1),ae&&(Re=pn(Ee/ae*Math.sin(Ge))),ne&&(We=pn(Ee/ne*Math.sin(Ge)))),ae){xr=ae*Math.cos(ge+Re),Or=ae*Math.sin(ge+Re),Wr=ae*Math.cos(ye-Re),Vr=ae*Math.sin(ye-Re);var Jt=Math.abs(ye-ge-2*Re)<=rr?0:1;if(Re&&Nu(xr,Or,Wr,Vr)===Ve^Jt){var jn=(ge+ye)/2;xr=ae*Math.cos(jn),Or=ae*Math.sin(jn),Wr=Vr=null}}else xr=Or=0;if(ne){$r=ne*Math.cos(ye-We),Kr=ne*Math.sin(ye-We),bt=ne*Math.cos(ge+We),et=ne*Math.sin(ge+We);var sn=Math.abs(ge-ye+2*We)<=rr?0:1;if(We&&Nu($r,Kr,bt,et)===1-Ve^sn){var zr=(ge+ye)/2;$r=ne*Math.cos(zr),Kr=ne*Math.sin(zr),bt=et=null}}else $r=Kr=0;if(ze>Ae&&(be=Math.min(Math.abs(ae-ne)/2,+w.apply(this,arguments)))>.001){ke=ne0?0:1}function w0(c,g,w,S,q){var E=c[0]-g[0],W=c[1]-g[1],F=(q?S:-S)/Math.sqrt(E*E+W*W),j=F*W,ne=-F*E,ae=c[0]+j,ge=c[1]+ne,ye=g[0]+j,ze=g[1]+ne,Ve=(ae+ye)/2,be=(ge+ze)/2,ke=ye-ae,Ee=ze-ge,Ge=ke*ke+Ee*Ee,We=w-S,Re=ae*ze-ye*ge,xr=(Ee<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Or=(Re*Ee-ke*xr)/Ge,Wr=(-Re*ke-Ee*xr)/Ge,Vr=(Re*Ee+ke*xr)/Ge,$r=(-Re*ke+Ee*xr)/Ge,Kr=Or-Ve,bt=Wr-be,et=Vr-Ve,ht=$r-be;return Kr*Kr+bt*bt>et*et+ht*ht&&(Or=Vr,Wr=$r),[[Or-j,Wr-ne],[Or*w/We,Wr*w/We]]}function M0(){return!0}function td(c){var g=Il,w=Ts,S=M0,q=Zi,E=q.key,W=.7;function F(j){var ne=[],ae=[],ge=-1,ye=j.length,ze,Ve=At(g),be=At(w);function ke(){ne.push("M",q(c(ae),W))}for(;++ge1?c.join("L"):c+"Z"}function nd(c){return c.join("L")+"Z"}function ad(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 A0(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]+W[0])+","+(q[1]+W[1])+","+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1];for(var ne=2;ne9&&(E=w*3/Math.sqrt(E),W[F]=E*S,W[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+W[F]*W[F])),g.push([E||0,W[F]*E||0]);return g}function ue(c){return c.length<3?Zi(c):c[0]+T0(c,X(c))}e.svg.line.radial=function(){var c=td(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;++wrr)+",1 "+ge}function ne(ae,ge,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 qe(c){return c.radius}e.svg.diagonal=function(){var c=de,g=we,w=Ne;function S(q,E){var W=c.call(this,q,E),F=g.call(this,q,E),j=(W.y+F.y)/2,ne=[W,{x:W.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 Ne(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=Ne,w=c.projection;return c.projection=function(S){return arguments.length?w(er(g=S)):g},c};function er(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Fr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Ar,g=cr;function w(S,q){return(at.get(c.call(this,S,q))||Xr)(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 cr(){return 64}function Ar(){return"circle"}function Xr(c){var g=Math.sqrt(c/rr);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:Xr,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);pe.transition=function(c){for(var g=ga||++Fn,w=Ca(c),S=[],q,E,W=ci||{time:Date.now(),ease:s0,delay:0,duration:250},F=-1,j=this.length;++F0;)ge[--Ge].call(c,Ee);if(ke>=1)return W.event&&W.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}W||(F=q.time,j=Fl(ye,0,F),W=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=Xi,w=6,S=6,q=3,E=[10],W=null,F;function j(ne){ne.each(function(){var ae=e.select(this),ge=this.__chart__||c,ye=this.__chart__=c.copy(),ze=W==null?ye.ticks?ye.ticks.apply(ye,E):ye.domain():W,Ve=F==null?ye.tickFormat?ye.tickFormat.apply(ye,E):U:F,be=ae.selectAll(".tick").data(ze,ye),ke=be.enter().insert("g",".domain").attr("class","tick").style("opacity",Ae),Ee=e.transition(be.exit()).style("opacity",Ae).remove(),Ge=e.transition(be.order()).style("opacity",1),We=Math.max(w,0)+q,Re,xr=sr(ye),Or=ae.selectAll(".domain").data([0]),Wr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));ke.append("line"),ke.append("text");var Vr=ke.select("line"),$r=Ge.select("line"),Kr=be.select("text").text(Ve),bt=ke.select("text"),et=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,Jt,jn,sn,zr;if(g==="bottom"||g==="top"?(Re=fl,Jt="x",sn="y",jn="x2",zr="y2",Kr.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+xr[0]+","+ht*S+"V0H"+xr[1]+"V"+ht*S)):(Re=cl,Jt="y",sn="x",jn="y2",zr="x2",Kr.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+xr[0]+"H0V"+xr[1]+"H"+ht*S)),Vr.attr(zr,ht*w),bt.attr(sn,ht*We),$r.attr(jn,0).attr(zr,ht*w),et.attr(Jt,0).attr(sn,ht*We),ye.rangeBand){var _t=ye,wt=_t.rangeBand()/2;ge=ye=function($t){return _t($t)+wt}}else ge.rangeBand?ge=ye:Ee.call(Re,ye,ge);ke.call(Re,ge,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+"":Xi,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ne){return arguments.length?(W=ne,j):W},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 Xi="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,W,F=!0,j=!0,ne=mo[0];function ae(be){be.each(function(){var ke=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),Ee=ke.selectAll(".background").data([0]);Ee.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ke.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=ke.selectAll(".resize").data(ne,U);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return $l[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(ke),Re=e.transition(Ee),xr;g&&(xr=sr(g),Re.attr("x",xr[0]).attr("width",xr[1]-xr[0]),ye(We)),w&&(xr=sr(w),Re.attr("y",xr[0]).attr("height",xr[1]-xr[0]),ze(We)),ge(We)})}ae.event=function(be){be.each(function(){var ke=c.of(this,arguments),Ee={x:S,y:q,i:E,j:W},Ge=this.__chart__||Ee;this.__chart__=Ee,ga?e.select(this).transition().each("start.brush",function(){E=Ge.i,W=Ge.j,S=Ge.x,q=Ge.y,ke({type:"brushstart"})}).tween("brush:brush",function(){var We=Gl(S,Ee.x),Re=Gl(q,Ee.y);return E=W=null,function(xr){S=Ee.x=We(xr),q=Ee.y=Re(xr),ke({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=Ee.i,W=Ee.j,ke({type:"brush",mode:"resize"}),ke({type:"brushend"})}):(ke({type:"brushstart"}),ke({type:"brush",mode:"resize"}),ke({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(ke){return"translate("+S[+/e$/.test(ke)]+","+q[+/^s/.test(ke)]+")"})}function ye(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(be){be.select(".extent").attr("y",q[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var be=this,ke=e.select(e.event.target),Ee=c.of(be,arguments),Ge=e.select(be),We=ke.datum(),Re=!/^(n|s)$/.test(We)&&g,xr=!/^(e|w)$/.test(We)&&w,Or=ke.classed("extent"),Wr=Sr(be),Vr,$r=e.mouse(be),Kr,bt=e.select(i(be)).on("keydown.brush",Jt).on("keyup.brush",jn);if(e.event.changedTouches?bt.on("touchmove.brush",sn).on("touchend.brush",_t):bt.on("mousemove.brush",sn).on("mouseup.brush",_t),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&&(Vr=$r.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ke.style("cursor")),Ee({type:"brushstart"}),sn();function Jt(){e.event.keyCode==32&&(Or||(Vr=null,$r[0]-=S[1],$r[1]-=q[1],Or=2),Se())}function jn(){e.event.keyCode==32&&Or==2&&($r[0]+=S[1],$r[1]+=q[1],Or=0,Se())}function sn(){var wt=e.mouse(be),$t=!1;Kr&&(wt[0]+=Kr[0],wt[1]+=Kr[1]),Or||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),$r[0]=S[+(wt[0]{(function(e,r){typeof dd=="object"&&typeof r6!="undefined"?r(dd):(e=e||self,r(e.d3=e.d3||{}))})(dd,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),pr=tr.ceil(Ye);return Ye-Ze0))return Tr;do Tr.push(yr=new Date(+Ye)),Ue(Ye,pr),Te(Ye);while(yr=Ze)for(;Te(Ze),!Ye(Ze);)Ze.setTime(Ze-1)},function(Ze,pr){if(Ze>=Ze)if(pr<0)for(;++pr<=0;)for(;Ue(Ze,-1),!Ye(Ze););else for(;--pr>=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,Z=A.range,H=k.range,V=M.range,U=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,se=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()});se.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 ce=se.range,Se=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()}),Fe=Se.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,Le=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}),Qe=Le.range;function fe(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 me=fe(0),Ce=fe(1),pe=fe(2),G=fe(3),Q=fe(4),$=fe(5),_e=fe(6),De=me.range,Ie=Ce.range,nr=pe.range,ar=G.range,Be=Q.range,or=$.range,lr=_e.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()}),Ke=hr.range,gr=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()});gr.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 mr=gr.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=Z,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=U,e.timeTuesday=k,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=b,e.timeWeeks=I,e.timeYear=se,e.timeYears=ce,e.utcDay=Le,e.utcDays=Qe,e.utcFriday=$,e.utcFridays=or,e.utcHour=He,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=Se,e.utcMinutes=Fe,e.utcMonday=Ce,e.utcMondays=Ie,e.utcMonth=hr,e.utcMonths=Ke,e.utcSaturday=_e,e.utcSaturdays=lr,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=me,e.utcSundays=De,e.utcThursday=Q,e.utcThursdays=Be,e.utcTuesday=pe,e.utcTuesdays=nr,e.utcWednesday=G,e.utcWednesdays=ar,e.utcWeek=me,e.utcWeeks=De,e.utcYear=gr,e.utcYears=mr,Object.defineProperty(e,"__esModule",{value:!0})})});var S0=te((pd,t6)=>{(function(e,r){typeof pd=="object"&&typeof t6!="undefined"?r(pd,qy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(pd,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,$e){return{y:xe,m:Ae,d:$e,H:0,M:0,S:0,L:0}}function i(xe){var Ae=xe.dateTime,$e=xe.date,rr=xe.time,Lr=xe.periods,Yr=xe.days,Fr=xe.shortDays,st=xe.months,xt=xe.shortMonths,Rt=h(Lr),Kt=d(Lr),cn=h(Yr),pn=d(Yr),Mn=h(Fr),Xt=d(Fr),Qt=h(st),en=d(st),an=h(xt),jr=d(xt),Ut={a:mi,A:oo,b:yi,B:Ms,c:null,d:re,e:re,f:Fe,H:K,I:se,j:ce,L:Se,m:He,M:Xe,p:zl,q:Yo,Q:Ze,s:pr,S:Le,u:Qe,U:fe,V:me,w:Ce,W:pe,x:null,X:null,y:G,Y:Q,Z:$,"%":Ye},Nt={a:As,A:Go,b:Yn,B:bi,c:null,d:_e,e:_e,f:Be,H:De,I:Ie,j:nr,L:ar,m:or,M:lr,p:Vo,q:_i,Q:Ze,s:pr,S:hr,u:Ke,U:gr,V:mr,w:Te,W:Ue,x:null,X:null,y:kr,Y:Ur,Z:tr,"%":Ye},rn={a:Va,A:kn,b:Wa,B:oa,c:hn,d:D,e:D,f:V,H:N,I:N,j:R,L:H,m:M,M:I,p:On,q:k,Q:ee,s:ie,S:Z,u:p,U:y,V:_,w:m,W:C,x:dn,X:Un,y:b,Y:x,Z:A,"%":U};Ut.x=Tn($e,Ut),Ut.X=Tn(rr,Ut),Ut.c=Tn(Ae,Ut),Nt.x=Tn($e,Nt),Nt.X=Tn(rr,Nt),Nt.c=Tn(Ae,Nt);function Tn(Qr,St){return function(It){var Br=[],Zn=-1,on=0,Pn=Qr.length,At,Za,Wo;for(It instanceof Date||(It=new Date(+It));++Zn53)return null;"w"in Br||(Br.w=1),"Z"in Br?(on=n(a(Br.y,0,1)),Pn=on.getUTCDay(),on=Pn>4||Pn===0?r.utcMonday.ceil(on):r.utcMonday(on),on=r.utcDay.offset(on,(Br.V-1)*7),Br.y=on.getUTCFullYear(),Br.m=on.getUTCMonth(),Br.d=on.getUTCDate()+(Br.w+6)%7):(on=t(a(Br.y,0,1)),Pn=on.getDay(),on=Pn>4||Pn===0?r.timeMonday.ceil(on):r.timeMonday(on),on=r.timeDay.offset(on,(Br.V-1)*7),Br.y=on.getFullYear(),Br.m=on.getMonth(),Br.d=on.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 Yt(Qr,St,It,Br){for(var Zn=0,on=St.length,Pn=It.length,At,Za;Zn=Pn)return-1;if(At=St.charCodeAt(Zn++),At===37){if(At=St.charAt(Zn++),Za=rn[At in o?St.charAt(Zn++):At],!Za||(Br=Za(Qr,It,Br))<0)return-1}else if(At!=It.charCodeAt(Br++))return-1}return Br}function On(Qr,St,It){var Br=Rt.exec(St.slice(It));return Br?(Qr.p=Kt[Br[0].toLowerCase()],It+Br[0].length):-1}function Va(Qr,St,It){var Br=Mn.exec(St.slice(It));return Br?(Qr.w=Xt[Br[0].toLowerCase()],It+Br[0].length):-1}function kn(Qr,St,It){var Br=cn.exec(St.slice(It));return Br?(Qr.w=pn[Br[0].toLowerCase()],It+Br[0].length):-1}function Wa(Qr,St,It){var Br=an.exec(St.slice(It));return Br?(Qr.m=jr[Br[0].toLowerCase()],It+Br[0].length):-1}function oa(Qr,St,It){var Br=Qt.exec(St.slice(It));return Br?(Qr.m=en[Br[0].toLowerCase()],It+Br[0].length):-1}function hn(Qr,St,It){return Yt(Qr,Ae,St,It)}function dn(Qr,St,It){return Yt(Qr,$e,St,It)}function Un(Qr,St,It){return Yt(Qr,rr,St,It)}function mi(Qr){return Fr[Qr.getDay()]}function oo(Qr){return Yr[Qr.getDay()]}function yi(Qr){return xt[Qr.getMonth()]}function Ms(Qr){return st[Qr.getMonth()]}function zl(Qr){return Lr[+(Qr.getHours()>=12)]}function Yo(Qr){return 1+~~(Qr.getMonth()/3)}function As(Qr){return Fr[Qr.getUTCDay()]}function Go(Qr){return Yr[Qr.getUTCDay()]}function Yn(Qr){return xt[Qr.getUTCMonth()]}function bi(Qr){return st[Qr.getUTCMonth()]}function Vo(Qr){return Lr[+(Qr.getUTCHours()>=12)]}function _i(Qr){return 1+~~(Qr.getUTCMonth()/3)}return{format:function(Qr){var St=Tn(Qr+="",Ut);return St.toString=function(){return Qr},St},parse:function(Qr){var St=vn(Qr+="",!1);return St.toString=function(){return Qr},St},utcFormat:function(Qr){var St=Tn(Qr+="",Nt);return St.toString=function(){return Qr},St},utcParse:function(Qr){var St=vn(Qr+="",!0);return St.toString=function(){return Qr},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(xe,Ae,$e){var rr=xe<0?"-":"",Lr=(rr?-xe:xe)+"",Yr=Lr.length;return rr+(Yr<$e?new Array($e-Yr+1).join(Ae)+Lr:Lr)}function v(xe){return xe.replace(u,"\\$&")}function h(xe){return new RegExp("^(?:"+xe.map(v).join("|")+")","i")}function d(xe){for(var Ae={},$e=-1,rr=xe.length;++$e68?1900:2e3),$e+rr[0].length):-1}function A(xe,Ae,$e){var rr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ae.slice($e,$e+6));return rr?(xe.Z=rr[1]?0:-(rr[2]+(rr[3]||"00")),$e+rr[0].length):-1}function k(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+1));return rr?(xe.q=rr[0]*3-3,$e+rr[0].length):-1}function M(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.m=rr[0]-1,$e+rr[0].length):-1}function D(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.d=+rr[0],$e+rr[0].length):-1}function R(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+3));return rr?(xe.m=0,xe.d=+rr[0],$e+rr[0].length):-1}function N(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.H=+rr[0],$e+rr[0].length):-1}function I(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.M=+rr[0],$e+rr[0].length):-1}function Z(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.S=+rr[0],$e+rr[0].length):-1}function H(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+3));return rr?(xe.L=+rr[0],$e+rr[0].length):-1}function V(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+6));return rr?(xe.L=Math.floor(rr[0]/1e3),$e+rr[0].length):-1}function U(xe,Ae,$e){var rr=s.exec(Ae.slice($e,$e+1));return rr?$e+rr[0].length:-1}function ee(xe,Ae,$e){var rr=l.exec(Ae.slice($e));return rr?(xe.Q=+rr[0],$e+rr[0].length):-1}function ie(xe,Ae,$e){var rr=l.exec(Ae.slice($e));return rr?(xe.s=+rr[0],$e+rr[0].length):-1}function re(xe,Ae){return f(xe.getDate(),Ae,2)}function K(xe,Ae){return f(xe.getHours(),Ae,2)}function se(xe,Ae){return f(xe.getHours()%12||12,Ae,2)}function ce(xe,Ae){return f(1+r.timeDay.count(r.timeYear(xe),xe),Ae,3)}function Se(xe,Ae){return f(xe.getMilliseconds(),Ae,3)}function Fe(xe,Ae){return Se(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 Le(xe,Ae){return f(xe.getSeconds(),Ae,2)}function Qe(xe){var Ae=xe.getDay();return Ae===0?7:Ae}function fe(xe,Ae){return f(r.timeSunday.count(r.timeYear(xe)-1,xe),Ae,2)}function me(xe,Ae){var $e=xe.getDay();return xe=$e>=4||$e===0?r.timeThursday(xe):r.timeThursday.ceil(xe),f(r.timeThursday.count(r.timeYear(xe),xe)+(r.timeYear(xe).getDay()===4),Ae,2)}function Ce(xe){return xe.getDay()}function pe(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 _e(xe,Ae){return f(xe.getUTCDate(),Ae,2)}function De(xe,Ae){return f(xe.getUTCHours(),Ae,2)}function Ie(xe,Ae){return f(xe.getUTCHours()%12||12,Ae,2)}function nr(xe,Ae){return f(1+r.utcDay.count(r.utcYear(xe),xe),Ae,3)}function ar(xe,Ae){return f(xe.getUTCMilliseconds(),Ae,3)}function Be(xe,Ae){return ar(xe,Ae)+"000"}function or(xe,Ae){return f(xe.getUTCMonth()+1,Ae,2)}function lr(xe,Ae){return f(xe.getUTCMinutes(),Ae,2)}function hr(xe,Ae){return f(xe.getUTCSeconds(),Ae,2)}function Ke(xe){var Ae=xe.getUTCDay();return Ae===0?7:Ae}function gr(xe,Ae){return f(r.utcSunday.count(r.utcYear(xe)-1,xe),Ae,2)}function mr(xe,Ae){var $e=xe.getUTCDay();return xe=$e>=4||$e===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 pr(xe){return Math.floor(+xe/1e3)}var Tr;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(xe){return Tr=i(xe),e.timeFormat=Tr.format,e.timeParse=Tr.parse,e.utcFormat=Tr.utcFormat,e.utcParse=Tr.utcParse,Tr}var wr="%Y-%m-%dT%H:%M:%S.%LZ";function Hr(xe){return xe.toISOString()}var Sr=Date.prototype.toISOString?Hr:e.utcFormat(wr);function Dr(xe){var Ae=new Date(xe);return isNaN(Ae)?null:Ae}var ur=+new Date("2000-01-01T00:00:00.000Z")?Dr:e.utcParse(wr);e.isoFormat=Sr,e.isoParse=ur,e.timeFormatDefaultLocale=yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Dy=te((gd,n6)=>{(function(e,r){typeof gd=="object"&&typeof n6!="undefined"?r(gd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(gd,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,Z=[],H=0,V=M[0],U=0;I>0&&V>0&&(U+V+1>N&&(V=Math.max(1,N-U)),Z.push(R.substring(I-=V,I+V)),!((U+=V+1)>N));)V=M[H=(H+1)%M.length];return Z.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],Z=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=N.length;return Z===H?N:Z>H?N+new Array(Z-H+1).join("0"):Z>0?N.slice(0,Z)+"."+N.slice(Z):"0."+new Array(1-Z).join("0")+t(M,Math.max(0,D+Z-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+"",Z=M.numerals===void 0?m:i(p.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",V=M.minus===void 0?"-":M.minus+"",U=M.nan===void 0?"NaN":M.nan+"";function ee(re){re=l(re);var K=re.fill,se=re.align,ce=re.sign,Se=re.symbol,Fe=re.zero,He=re.width,Xe=re.comma,Le=re.precision,Qe=re.trim,fe=re.type;fe==="n"?(Xe=!0,fe="g"):d[fe]||(Le===void 0&&(Le=12),Qe=!0,fe="g"),(Fe||K==="0"&&se==="=")&&(Fe=!0,K="0",se="=");var me=Se==="$"?R:Se==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",Ce=Se==="$"?N:/[%p]/.test(fe)?H:"",pe=d[fe],G=/[defgprs%]/.test(fe);Le=Le===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,Le)):Math.max(0,Math.min(20,Le));function Q($){var _e=me,De=Ce,Ie,nr,ar;if(fe==="c")De=pe($)+De,$="";else{$=+$;var Be=$<0||1/$<0;if($=isNaN($)?U:pe(Math.abs($),Le),Qe&&($=u($)),Be&&+$==0&&ce!=="+"&&(Be=!1),_e=(Be?ce==="("?ce:V:ce==="-"||ce==="("?"":ce)+_e,De=(fe==="s"?y[8+f/3]:"")+De+(Be&&ce==="("?")":""),G){for(Ie=-1,nr=$.length;++Iear||ar>57){De=(ar===46?I+$.slice(Ie+1):$.slice(Ie))+De,$=$.slice(0,Ie);break}}}Xe&&!Fe&&($=D($,1/0));var or=_e.length+$.length+De.length,lr=or>1)+_e+$+De+lr.slice(or);break;default:$=lr+_e+$+De;break}return Z($)}return Q.toString=function(){return re+""},Q}function ie(re,K){var se=ee((re=l(re),re.type="f",re)),ce=Math.max(-8,Math.min(8,Math.floor(n(K)/3)))*3,Se=Math.pow(10,-ce),Fe=y[8+ce/3];return function(He){return se(Se*He)+Fe}}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 i6=te((ple,a6)=>{"use strict";a6.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((gle,o6)=>{"use strict";var aH=i6();o6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&aH(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=te((mle,l6)=>{"use strict";l6.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 Ey=te((md,s6)=>{(function(e,r){typeof md=="object"&&typeof s6!="undefined"?r(md):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(md,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 Js=te((yle,u6)=>{"use strict";u6.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 ji=te(hl=>{"use strict";var iH=Ey().decode,oH=Js(),Py=Array.isArray,lH=ArrayBuffer,sH=DataView;function f6(e){return lH.isView(e)&&!(e instanceof sH)}hl.isTypedArray=f6;function yd(e){return Py(e)||f6(e)}hl.isArrayOrTypedArray=yd;function uH(e){return!yd(e[0])}hl.isArray1D=uH;hl.ensureArray=function(e,r){return Py(e)||(e=[]),e.length=r,e};var Ta={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};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function Ry(e){return e.constructor===ArrayBuffer}hl.isArrayBuffer=Ry;hl.decodeTypedArraySpec=function(e){var r=[],t=fH(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Ry(o)||(o=iH(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 v6=Ht(),Ny=ji().isArrayOrTypedArray;g6.exports=function(r,t){if(v6(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 C0=a1(),pH=/^\w*$/,gH=0,m6=1,bd=2,y6=3,nc=4;b6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=C0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|bd,v.set(h,null);if(f){for(i=d;i{"use strict";var mH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yH=/^[^\.\[\]]+$/;x6.exports=function(e,r){for(;r;){var t=e.match(mH);if(t)e=t[1];else if(e.match(yH))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 _d=te((Mle,M6)=>{"use strict";var bH=Ht();M6.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 bH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var k6=te((Ale,T6)=>{"use strict";var A6=ji().isArrayOrTypedArray,i1=Js();T6.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(A6(a)&&A6(i)&&i1(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function _H(e,r){var t=e%r;return t<0?t+r:t}function xH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}S6.exports={mod:_H,modHalf:xH}});var Ql=te((kle,xd)=>{(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,$,_e,De,Ie,nr;return Q=G.r/255,$=G.g/255,_e=G.b/255,Q<=.03928?De=Q/12.92:De=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),_e<=.03928?nr=_e/12.92:nr=e.pow((_e+.055)/1.055,2.4),.2126*De+.7152*Ie+.0722*nr},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),_e=a(G.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+_e+"%)":"hsva("+Q+", "+$+"%, "+_e+"%, "+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),_e=a(G.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+_e+"%)":"hsla("+Q+", "+$+"%, "+_e+"%, "+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,_e=this._gradientType?"GradientType = 1, ":"";if(G){var De=s(G);$="#"+_(De._r,De._g,De._b,De._a)}return"progid:DXImageTransform.Microsoft.gradient("+_e+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(G){var Q=!!G;G=G||this._format;var $=!1,_e=this._a<1&&this._a>=0,De=!Q&&_e&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return De?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(H,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(Z,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 _e in G)G.hasOwnProperty(_e)&&(_e==="a"?$[_e]=G[_e]:$[_e]=Xe(G[_e]));G=$}return s(G,Q)};function u(G){var Q={r:0,g:0,b:0},$=1,_e=null,De=null,Ie=null,nr=!1,ar=!1;return typeof G=="string"&&(G=Ce(G)),typeof G=="object"&&(me(G.r)&&me(G.g)&&me(G.b)?(Q=f(G.r,G.g,G.b),nr=!0,ar=String(G.r).substr(-1)==="%"?"prgb":"rgb"):me(G.h)&&me(G.s)&&me(G.v)?(_e=Xe(G.s),De=Xe(G.v),Q=m(G.h,_e,De),nr=!0,ar="hsv"):me(G.h)&&me(G.s)&&me(G.l)&&(_e=Xe(G.s),Ie=Xe(G.l),Q=h(G.h,_e,Ie),nr=!0,ar="hsl"),G.hasOwnProperty("a")&&($=G.a)),$=re($),{ok:nr,format:G.format||ar,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 _e=o(G,Q,$),De=i(G,Q,$),Ie,nr,ar=(_e+De)/2;if(_e==De)Ie=nr=0;else{var Be=_e-De;switch(nr=ar>.5?Be/(2-_e-De):Be/(_e+De),_e){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:nr,l:ar}}function h(G,Q,$){var _e,De,Ie;G=K(G,360),Q=K(Q,100),$=K($,100);function nr(or,lr,hr){return hr<0&&(hr+=1),hr>1&&(hr-=1),hr<1/6?or+(lr-or)*6*hr:hr<1/2?lr:hr<2/3?or+(lr-or)*(2/3-hr)*6:or}if(Q===0)_e=De=Ie=$;else{var ar=$<.5?$*(1+Q):$+Q-$*Q,Be=2*$-ar;_e=nr(Be,ar,G+1/3),De=nr(Be,ar,G),Ie=nr(Be,ar,G-1/3)}return{r:_e*255,g:De*255,b:Ie*255}}function d(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var _e=o(G,Q,$),De=i(G,Q,$),Ie,nr,ar=_e,Be=_e-De;if(nr=_e===0?0:Be/_e,_e==De)Ie=0;else{switch(_e){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:nr,v:ar}}function m(G,Q,$){G=K(G,360)*6,Q=K(Q,100),$=K($,100);var _e=e.floor(G),De=G-_e,Ie=$*(1-Q),nr=$*(1-De*Q),ar=$*(1-(1-De)*Q),Be=_e%6,or=[$,nr,Ie,Ie,ar,$][Be],lr=[ar,$,$,nr,Ie,Ie][Be],hr=[Ie,Ie,ar,$,$,nr][Be];return{r:or*255,g:lr*255,b:hr*255}}function p(G,Q,$,_e){var De=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return _e&&De[0].charAt(0)==De[0].charAt(1)&&De[1].charAt(0)==De[1].charAt(1)&&De[2].charAt(0)==De[2].charAt(1)?De[0].charAt(0)+De[1].charAt(0)+De[2].charAt(0):De.join("")}function y(G,Q,$,_e,De){var Ie=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16)),He(Le(_e))];return De&&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,$,_e){var De=[He(Le(_e)),He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return De.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=se($.s),s($)}function x(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s+=Q/100,$.s=se($.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=se($.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=se($.l),s($)}function D(G,Q){var $=s(G).toHsl(),_e=($.h+Q)%360;return $.h=_e<0?360+_e:_e,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 Z(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 H(G,Q,$){Q=Q||6,$=$||30;var _e=s(G).toHsl(),De=360/$,Ie=[s(G)];for(_e.h=(_e.h-(De*Q>>1)+720)%360;--Q;)_e.h=(_e.h+De)%360,Ie.push(s(_e));return Ie}function V(G,Q){Q=Q||6;for(var $=s(G).toHsv(),_e=$.h,De=$.s,Ie=$.v,nr=[],ar=1/Q;Q--;)nr.push(s({h:_e,s:De,v:Ie})),Ie=(Ie+ar)%1;return nr}s.mix=function(G,Q,$){$=$===0?0:$||50;var _e=s(G).toRgb(),De=s(Q).toRgb(),Ie=$/100,nr={r:(De.r-_e.r)*Ie+_e.r,g:(De.g-_e.g)*Ie+_e.g,b:(De.b-_e.b)*Ie+_e.b,a:(De.a-_e.a)*Ie+_e.a};return s(nr)},s.readability=function(G,Q){var $=s(G),_e=s(Q);return(e.max($.getLuminance(),_e.getLuminance())+.05)/(e.min($.getLuminance(),_e.getLuminance())+.05)},s.isReadable=function(G,Q,$){var _e=s.readability(G,Q),De,Ie;switch(Ie=!1,De=pe($),De.level+De.size){case"AAsmall":case"AAAlarge":Ie=_e>=4.5;break;case"AAlarge":Ie=_e>=3;break;case"AAAsmall":Ie=_e>=7;break}return Ie},s.mostReadable=function(G,Q,$){var _e=null,De=0,Ie,nr,ar,Be;$=$||{},nr=$.includeFallbackColors,ar=$.level,Be=$.size;for(var or=0;orDe&&(De=Ie,_e=s(Q[or]));return s.isReadable(G,_e,{level:ar,size:Be})||!nr?_e:($.includeFallbackColors=!1,s.mostReadable(G,["#fff","#000"],$))};var U=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(U);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){Se(G)&&(G="100%");var $=Fe(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 se(G){return i(1,o(0,G))}function ce(G){return parseInt(G,16)}function Se(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function Fe(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 Le(G){return e.round(parseFloat(G)*255).toString(16)}function Qe(G){return ce(G)/255}var fe=function(){var G="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+G+")",_e="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",De="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+_e),rgba:new RegExp("rgba"+De),hsl:new RegExp("hsl"+_e),hsla:new RegExp("hsla"+De),hsv:new RegExp("hsv"+_e),hsva:new RegExp("hsva"+De),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 me(G){return!!fe.CSS_UNIT.exec(G)}function Ce(G){G=G.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(U[G])G=U[G],Q=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=fe.rgb.exec(G))?{r:$[1],g:$[2],b:$[3]}:($=fe.rgba.exec(G))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=fe.hsl.exec(G))?{h:$[1],s:$[2],l:$[3]}:($=fe.hsla.exec(G))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=fe.hsv.exec(G))?{h:$[1],s:$[2],v:$[3]}:($=fe.hsva.exec(G))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=fe.hex8.exec(G))?{r:ce($[1]),g:ce($[2]),b:ce($[3]),a:Qe($[4]),format:Q?"name":"hex8"}:($=fe.hex6.exec(G))?{r:ce($[1]),g:ce($[2]),b:ce($[3]),format:Q?"name":"hex"}:($=fe.hex4.exec(G))?{r:ce($[1]+""+$[1]),g:ce($[2]+""+$[2]),b:ce($[3]+""+$[3]),a:Qe($[4]+""+$[4]),format:Q?"name":"hex8"}:($=fe.hex3.exec(G))?{r:ce($[1]+""+$[1]),g:ce($[2]+""+$[2]),b:ce($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(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 xd!="undefined"&&xd.exports?xd.exports=s:window.tinycolor=s})(Math)});var ua=te(s1=>{"use strict";var C6=Js(),o1=Array.isArray;function wH(e,r){var t,n;for(t=0;t{"use strict";L6.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 u1=te((Lle,q6)=>{"use strict";q6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var q0=te((qle,P6)=>{"use strict";var D6=u1(),E6=Ka(),Fy=E6({editType:"none"});Fy.family.dflt=D6.HOVERFONT;Fy.size.dflt=D6.HOVERFONTSIZE;P6.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Fy,grouptitlefont:E6({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 wd=te((Dle,R6)=>{"use strict";var MH=Ka(),f1=q0().hoverlabel,c1=ua().extendFlat;R6.exports={hoverlabel:{bgcolor:c1({},f1.bgcolor,{arrayOk:!0}),bordercolor:c1({},f1.bordercolor,{arrayOk:!0}),font:MH({arrayOk:!0,editType:"none"}),align:c1({},f1.align,{arrayOk:!0}),namelength:c1({},f1.namelength,{arrayOk:!0}),showarrow:c1({},f1.showarrow),editType:"none"}}});var _o=te((Ele,z6)=>{"use strict";var AH=Ka(),TH=wd();z6.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:AH({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:TH.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((Ple,I6)=>{"use strict";var kH=Ql(),Md={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)"]]},N6=Md.RdBu;function SH(e,r){if(r||(r=N6),!e)return r;function t(){try{e=Md[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),F6(e)?e:r}function F6(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 Et=te((zle,H6)=>{"use strict";var qi=Ql(),LH=Ht(),qH=ji().isTypedArray,ma=H6.exports={},Ad=dl();ma.defaults=Ad.defaults;var DH=ma.defaultLine=Ad.defaultLine;ma.lightLine=Ad.lightLine;var Hy=ma.background=Ad.background;ma.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ma.rgb=function(e){return ma.tinyRGB(qi(e))};ma.opacity=function(e){return e?qi(e).getAlpha():0};ma.addOpacity=function(e,r){var t=qi(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ma.combine=function(e,r){var t=qi(e).toRgb();if(t.a===1)return qi(e).toRgbString();var n=qi(r||Hy).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 qi(i).toRgbString()};ma.interpolate=function(e,r,t){var n=qi(e).toRgb(),a=qi(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 qi(i).toRgbString()};ma.contrast=function(e,r,t){var n=qi(e);n.getAlpha()!==1&&(n=qi(ma.combine(e,Hy)));var a=n.isDark()?r?n.lighten(r):Hy:t?n.darken(t):DH;return a.toString()};ma.stroke=function(e,r){var t=qi(r);e.style({stroke:ma.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ma.fill=function(e,r){var t=qi(r);e.style({fill:ma.tinyRGB(t),"fill-opacity":t.getAlpha()})};ma.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 Td=te((Nle,B6)=>{"use strict";B6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var D0=te(O6=>{"use strict";O6.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 V6=te(Di=>{"use strict";var By=Ht(),U6=Ql(),Y6=ua().extendFlat,EH=_o(),PH=ac(),RH=Et(),zH=Td().DESELECTDIM,E0=a1(),G6=D0().counter,NH=L0().modHalf,pl=ji().isArrayOrTypedArray,Iu=ji().isTypedArraySpec,Hu=ji().decodeTypedArraySpec;Di.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)),!By(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||!By(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)),U6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return U6(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(PH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),e==="auto"?r.set("auto"):By(e)?r.set(NH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||G6(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:!!G6(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 W6={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},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:{}}},Z6={};function X6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),X6(n,r[t]))}}X6(W6,Z6);j6.exports={configAttributes:W6,dfltConfig:Z6}});var Uy=te((Ble,J6)=>{"use strict";var Oy=kt(),FH=Ht(),v1=[];J6.exports=function(e,r){if(v1.indexOf(e)!==-1)return;v1.push(e);var t=1e3;FH(r)?t=r:r==="long"&&(t=3e3);var n=Oy.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(v1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=v1.indexOf(l);s!==-1&&v1.splice(s,1),Oy.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Oy.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var P0=oc().dfltConfig,Yy=Uy(),Gy=$6.exports={};Gy.log=function(){var e;if(P0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Gy.warn=function(){var e;if(P0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Gy.error=function(){var e;if(P0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Sd=te((Ule,K6)=>{"use strict";K6.exports=function(){}});var Vy=te((Yle,Q6)=>{"use strict";Q6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{ex.exports=IH;function IH(){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 nx=te((Vle,tx)=>{tx.exports=HH;function HH(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 ix=te((Wle,ax)=>{ax.exports=BH;function BH(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 Wy=te((Zle,ox)=>{ox.exports=OH;function OH(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 sx=te((Xle,lx)=>{lx.exports=UH;function UH(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 fx=te((jle,ux)=>{ux.exports=YH;function YH(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,Z=v*_-d*p,H=h*_-d*y,V=C*H-x*Z+b*I+A*N-k*R+M*D;return V?(V=1/V,e[0]=(l*H-s*Z+u*I)*V,e[1]=(a*Z-n*H-i*I)*V,e[2]=(p*M-y*k+_*A)*V,e[3]=(h*k-v*M-d*A)*V,e[4]=(s*N-o*H-u*R)*V,e[5]=(t*H-a*N+i*R)*V,e[6]=(y*b-m*M-_*x)*V,e[7]=(f*M-h*b+d*x)*V,e[8]=(o*Z-l*N+u*D)*V,e[9]=(n*N-t*Z-i*D)*V,e[10]=(m*k-p*b+_*C)*V,e[11]=(v*b-f*k-d*C)*V,e[12]=(l*R-o*I-s*D)*V,e[13]=(t*I-n*R+a*D)*V,e[14]=(p*x-m*A-y*C)*V,e[15]=(f*A-v*x+h*C)*V,e):null}});var vx=te((Jle,cx)=>{cx.exports=GH;function GH(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 dx=te(($le,hx)=>{hx.exports=VH;function VH(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,Z=v*y-h*p;return _*Z-C*I+x*N+b*R-A*D+k*M}});var gx=te((Kle,px)=>{px.exports=WH;function WH(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 yx=te((Qle,mx)=>{mx.exports=ZH;function ZH(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 _x=te((ese,bx)=>{bx.exports=XH;function XH(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 wx=te((rse,xx)=>{xx.exports=jH;function jH(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,Z,H,V,U;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,Z=o*i*f+a*s,H=a*o*f+i*s,V=i*o*f-a*s,U=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*Z,e[5]=h*N+y*I+b*Z,e[6]=d*N+_*I+A*Z,e[7]=m*N+C*I+k*Z,e[8]=v*H+p*V+x*U,e[9]=h*H+y*V+b*U,e[10]=d*H+_*V+A*U,e[11]=m*H+C*V+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ax=te((tse,Mx)=>{Mx.exports=JH;function JH(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 kx=te((nse,Tx)=>{Tx.exports=$H;function $H(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 Cx=te((ase,Sx)=>{Sx.exports=KH;function KH(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 qx=te((ise,Lx)=>{Lx.exports=QH;function QH(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 Ex=te((ose,Dx)=>{Dx.exports=eB;function eB(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 Rx=te((lse,Px)=>{Px.exports=rB;function rB(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 Nx=te((sse,zx)=>{zx.exports=tB;function tB(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 Ix=te((use,Fx)=>{Fx.exports=nB;function nB(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 Bx=te((fse,Hx)=>{Hx.exports=aB;function aB(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 Ux=te((cse,Ox)=>{Ox.exports=iB;function iB(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 Gx=te((vse,Yx)=>{Yx.exports=oB;function oB(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 Wx=te((hse,Vx)=>{Vx.exports=lB;function lB(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 Xx=te((dse,Zx)=>{Zx.exports=sB;function sB(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 Jx=te((pse,jx)=>{jx.exports=uB;function uB(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 Kx=te((gse,$x)=>{$x.exports=fB;function fB(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 e7=te((mse,Qx)=>{var cB=Wy();Qx.exports=vB;function vB(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?cB(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 t7=te((yse,r7)=>{r7.exports=hB;function hB(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 Zy=te((bse,n7)=>{n7.exports={create:rx(),clone:nx(),copy:ix(),identity:Wy(),transpose:sx(),invert:fx(),adjoint:vx(),determinant:dx(),multiply:gx(),translate:yx(),scale:_x(),rotate:wx(),rotateX:Ax(),rotateY:kx(),rotateZ:Cx(),fromRotation:qx(),fromRotationTranslation:Ex(),fromScaling:Rx(),fromTranslation:Nx(),fromXRotation:Ix(),fromYRotation:Bx(),fromZRotation:Ux(),fromQuat:Gx(),frustum:Wx(),perspective:Xx(),perspectiveFromFieldOfView:Jx(),ortho:Kx(),lookAt:e7(),str:t7()}});var Cd=te(Jn=>{"use strict";var dB=Zy();Jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var pB=kt(),a7=Bu(),gB=Cd(),mB=Zy();function yB(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 bB(e){var r=pB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function i7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function _B(e,r){o7("global",e,r)}function o7(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):a7.warn("addStyleRule failed"):a7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function xB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&i7(t)}function wB(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 MB(e){var r=s7(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=l7(n);if(a){var i=gB.convertCssMatrix(a);t=mB.multiply(t,t,i)}}),t}function l7(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 s7(e){for(var r=[];AB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function AB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function TB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}u7.exports={getGraphDiv:yB,isPlotDiv:bB,removeElement:i7,addStyleRule:_B,addRelatedStyleRule:o7,deleteRelatedStyleRule:xB,setStyleOnHover:wB,getFullTransformMatrix:MB,getElementTransformMatrix:l7,getElementAndAncestors:s7,equalDomRects:TB}});var d1=te((wse,f7)=>{"use strict";f7.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((Mse,m7)=>{"use strict";var v7=ua().extendFlat,kB=Js(),h7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},d7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},SB=h7.flags.slice().concat(["fullReplot"]),CB=d7.flags.slice().concat("layoutReplot");m7.exports={traces:h7,layout:d7,traceFlags:function(){return c7(SB)},layoutFlags:function(){return c7(CB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Xy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Xy.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((Tse,y7)=>{"use strict";y7.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(R0=>{"use strict";var{DATE_FORMAT_LINK:LB,FORMAT_LINK:qB}=jy(),DB=["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 EB({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}".`,qB,"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}".`,LB,"for details on the date formatting syntax.",DB].join(" ")}R0.templateFormatStringDescription=EB;R0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});R0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});R0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});R0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Dd=te((Cse,A7)=>{"use strict";function Ou(e,r){return r?r.d2l(e):e}function b7(e,r){return r?r.l2d(e):e}function PB(e){return e.x0}function RB(e){return e.x1}function zB(e){return e.y0}function NB(e){return e.y1}function _7(e){return e.x0shift||0}function x7(e){return e.x1shift||0}function w7(e){return e.y0shift||0}function M7(e){return e.y1shift||0}function Ld(e,r){return Ou(e.x1,r)+x7(e)-Ou(e.x0,r)-_7(e)}function qd(e,r,t){return Ou(e.y1,t)+M7(e)-Ou(e.y0,t)-w7(e)}function FB(e,r){return Math.abs(Ld(e,r))}function IB(e,r,t){return Math.abs(qd(e,r,t))}function HB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ld(e,r),2)+Math.pow(qd(e,r,t),2))}function BB(e,r){return b7((Ou(e.x1,r)+x7(e)+Ou(e.x0,r)+_7(e))/2,r)}function OB(e,r,t){return b7((Ou(e.y1,t)+M7(e)+Ou(e.y0,t)+w7(e))/2,t)}function UB(e,r,t){return e.type!=="line"?void 0:qd(e,r,t)/Ld(e,r)}var YB=["x0","x1","y0","y1","dy","height","ycenter"],GB=["x0","x1","y0","y1","dx","width","xcenter"];A7.exports={x0:PB,x1:RB,y0:zB,y1:NB,slope:UB,dx:Ld,dy:qd,width:FB,height:IB,length:HB,xcenter:BB,ycenter:OB,simpleXVariables:YB,simpleYVariables:GB}});var S7=te((Lse,k7)=>{"use strict";var VB=xo().overrideAll,sc=_o(),T7=Ka(),WB=es().dash,Uu=ua().extendFlat,{shapeTexttemplateAttrs:ZB,templatefallbackAttrs:XB}=lc(),jB=Dd();k7.exports=VB({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:T7({})},legendrank:Uu({},sc.legendrank,{}),legendwidth:Uu({},sc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Uu({},WB,{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:ZB({newshape:!0},{keys:Object.keys(jB)}),texttemplatefallback:XB({editType:"arraydraw"}),font:T7({}),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 L7=te((qse,C7)=>{"use strict";var JB=es().dash,$B=ua().extendFlat;C7.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:$B({},JB,{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 Ed=te((Dse,q7)=>{"use strict";q7.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 z0=te((Ese,R7)=>{"use strict";var Jy=Ka(),KB=d1(),Pd=dl(),D7=S7(),E7=L7(),QB=Ed(),P7=ua().extendFlat,Rd=Jy({editType:"calc"});Rd.family.dflt='"Open Sans", verdana, arial, sans-serif';Rd.size.dflt=12;Rd.color.dflt=Pd.defaultLine;R7.exports={font:Rd,title:{text:{valType:"string",editType:"layoutstyle"},font:Jy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Jy({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:P7(QB({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:Pd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Pd.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:Pd.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:D7.newshape,activeshape:D7.activeshape,newselection:E7.newselection,activeselection:E7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:P7({},KB.transition,{editType:"none"})}});var z7=te(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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(Lt=>{"use strict";var N0=Bu(),N7=Sd(),F7=Vy(),eO=Js(),rO=h1().addStyleRule,I7=ua(),tO=_o(),nO=z0(),aO=I7.extendFlat,$y=I7.extendDeepAll;Lt.modules={};Lt.allCategories={};Lt.allTypes=[];Lt.subplotsRegistry={};Lt.componentsRegistry={};Lt.layoutArrayContainers=[];Lt.layoutArrayRegexes=[];Lt.traceLayoutAttributes={};Lt.localeRegistry={};Lt.apiMethodRegistry={};Lt.collectableSubplotTypes=null;Lt.register=function(r){if(Lt.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 fO=S0().timeFormat,j7=Ht(),Ky=Bu(),Gu=L0().mod,H0=Rn(),wo=H0.BADNUM,Ei=H0.ONEDAY,p1=H0.ONEHOUR,Yu=H0.ONEMIN,I0=H0.ONESEC,g1=H0.EPOCHJD,$s=dt(),Y7=S0().utcFormat,cO=/^\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,vO=/^\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,G7=new Date().getFullYear()-70;function Ks(e){return e&&$s.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}$n.dateTick0=function(e,r){var t=hO(e,!!r);if(r<2)return t;var n=$n.dateTime2ms(t,e);return n+=Ei*(r-1),$n.ms2DateTime(n,0,e)};function hO(e,r){return Ks(e)?r?$s.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:$s.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}$n.dfltRange=function(e){return Ks(e)?$s.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 Nd,Fd;$n.dateTime2ms=function(e,r){if($n.isJSDate(e)){var t=e.getTimezoneOffset()*Yu,n=(e.getUTCMinutes()-e.getMinutes())*Yu+(e.getUTCSeconds()-e.getSeconds())*I0+(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>=Nd&&e<=Fd?e:wo}if(typeof e!="string"&&typeof e!="number")return wo;e=String(e);var i=Ks(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?vO:cO);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=$s.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()-g1)*Ei+h*p1+d*Yu+m*I0:wo}u.length===2?u=(Number(u)+2e3-G7)%100+G7: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*I0};Nd=$n.MIN_MS=$n.dateTime2ms("-9999");Fd=$n.MAX_MS=$n.dateTime2ms("9999-12-31 23:59:59.9999");$n.isDateTime=function(e,r){return $n.dateTime2ms(e,r)!==wo};function F0(e,r){return String(e+Math.pow(10,r)).slice(1)}var zd=90*Ei,V7=3*p1,W7=5*Yu;$n.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Nd&&e<=Fd))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(Ks(t)){var v=Math.floor(a/Ei)+g1,h=Math.floor(Gu(e,Ei));try{i=$s.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=Y7("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=Nd+Ei&&e<=Fd-Ei))return wo;var r=Math.floor(Gu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=fO("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return J7(n,a,i,o,l)};function J7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+F0(r,2)+":"+F0(t,2),(n||a)&&(e+=":"+F0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+F0(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(Ks(t))return Ky.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 Ky.error("unrecognized date",e),r;return e};var dO=/%\d?f/g,pO=/%h/g,gO={1:"1",2:"1",3:"2",4:"2"};function Z7(e,r,t,n){e=e.replace(dO,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(pO,function(){return gO[t("%q")(a)]}),Ks(n))try{e=$s.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var mO=[59,59.9,59.99,59.999,59.9999];function yO(e,r){var t=Gu(e+.05,Ei),n=F0(Math.floor(t/p1),2)+":"+F0(Gu(Math.floor(t/Yu),60),2);if(r!=="M"){j7(r)||(r=0);var a=Math.min(Gu(e/I0,60),mO[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=Ks(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`)};function F(ne){return ne.map(j).join(c)}function j(ne){return w.test(ne)?'"'+ne.replace(/\"/g,'""')+'"':ne}return q},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var lo,Zo,Xo,bu,Nl=this[ie(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Fl.apply(this,arguments)};function Fl(c,g,w){var S=arguments.length;S<2&&(g=0),S<3&&(w=Date.now());var q=w+g,E={c,t:q,n:null};return Zo?Zo.n=E:lo=E,Zo=E,Xo||(bu=clearTimeout(bu),Xo=1,Nl(xi)),E}function xi(){var c=so(),g=jo()-c;g>24?(isFinite(g)&&(clearTimeout(bu),bu=setTimeout(xi,g)),Xo=0):(Xo=1,Nl(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)be.push(q[ne[ge[F]][2]]);for(F=+ze;F1&&Kt(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function n0(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Le(c,ks),c};var ks=e.geom.polygon.prototype=[];ks.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cAe)F=F.L;else if(W=g-Gv(F,w),W>Ae){if(!F.R){S=F;break}F=F.R}else{E>-Ae?(S=F.P,q=F):W>-Ae?(S=F,q=F.N):S=q=F;break}var j=Ls(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){vo(S),q=Ls(S.site),Bi.insert(j,q),j.edge=q.edge=Ol(S.site,j.site),co(S),co(q);return}if(!q){j.edge=Ol(S.site,j.site);return}vo(S),vo(q);var ne=S.site,ae=ne.x,ge=ne.y,ye=c.x-ae,ze=c.y-ge,Ve=q.site,be=Ve.x-ae,ke=Ve.y-ge,Ee=2*(ye*ke-ze*be),Ge=ye*ye+ze*ze,We=be*be+ke*ke,Re={x:(ke*Ge-ze*We)/Ee+ae,y:(ye*We-be*Ge)/Ee+ge};Yi(q.edge,ne,Ve,Re),j.edge=Ol(ne,c,null,Re),q.edge=Ol(c,Ve,null,Re),co(S),co(q)}}function Ds(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var W=c.P;if(!W)return-1/0;w=W.site;var F=w.x,j=w.y,ne=j-g;if(!ne)return F;var ae=F-S,ge=1/E-1/ne,ye=ae/ne;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ae*ae/(-2*ne)-j+ne/2+q-E/2)))/ge+S:(S+F)/2}function Gv(c,g){var w=c.N;if(w)return Ds(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(Bl),c.length};function Pf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,W,F,j,ne=fo,ae=ne.length,ge,ye,ze,Ve,be,ke;ae--;)if(ge=ne[ae],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,ye=0;yeAe||_(j-W)>Ae)&&(ze.splice(ye,0,new Ko(Wv(ge.site,ke,_(F-g)Ae?{x:g,y:_(E-g)Ae?{x:_(W-q)Ae?{x:w,y:_(E-w)Ae?{x:_(W-S)=-$e)){var ye=j*j+ne*ne,ze=ae*ae+ke*ke,Ve=(ke*ye-ne*ze)/ge,be=(j*ze-ae*ye)/ge,ke=be+F,Ee=Ef.pop()||new o0;Ee.arc=c,Ee.site=q,Ee.x=Ve+W,Ee.y=ke+Math.sqrt(Ve*Ve+be*be),Ee.cy=ke,c.circle=Ee;for(var Ge=null,We=Hl._;We;)if(Ee.y0)){if(be/=ze,ze<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-F,!(!ze&&be<0)){if(be/=ze,ze<0){if(be>ye)return;be>ge&&(ge=be)}else if(ze>0){if(be0)){if(be/=Ve,Ve<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=S-j,!(!Ve&&be<0)){if(be/=Ve,Ve<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ve>0){if(be0&&(q.a={x:F+ge*ze,y:j+ge*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],(!Vv(q,c)||!w(q)||_(q.a.x-q.b.x)=E)return;if(ae>ye){if(!S)S={x:Ve,y:W};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:(W-Ee)/ke,y:W};else if(S.y>=F)return;w={x:(F-Ee)/ke,y:F}}else{if(!S)S={x:(F-Ee)/ke,y:F};else if(S.y=E)return;w={x:E,y:ke*E+Ee}}else{if(!S)S={x:E,y:ke*E+Ee};else if(S.x=ae&&Ee.x<=ye&&Ee.y>=ge&&Ee.y<=ze?[[ae,ze],[ye,ze],[ye,ge],[ae,ge]]:[];Ge.point=j[be]}),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 W.links=function(j){return Ps(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]}})},W.triangles=function(j){var ne=[];return Ps(F(j)).cells.forEach(function(ae,ge){for(var ye=ae.site,ze=ae.edges.sort(Bl),Ve=-1,be=ze.length,ke,Ee,Ge=ze[be-1].edge,We=Ge.l===ye?Ge.r:Ge.l;++VeWe&&(We=ae.x),ae.y>Re&&(Re=ae.y),ze.push(ae.x),Ve.push(ae.y);else for(be=0;beWe&&(We=xr),Or>Re&&(Re=Or),ze.push(xr),Ve.push(Or)}var Wr=We-Ee,Vr=Re-Ge;Wr>Vr?Re=Ge+Wr:We=Ee+Vr;function $r(et,ht,Jt,jn,sn,zr,_t,wt){if(!(isNaN(Jt)||isNaN(jn)))if(et.leaf){var $t=et.x,In=et.y;if($t!=null)if(_($t-Jt)+_(In-jn)<.01)Kr(et,ht,Jt,jn,sn,zr,_t,wt);else{var sa=et.point;et.x=et.y=et.point=null,Kr(et,sa,$t,In,sn,zr,_t,wt),Kr(et,ht,Jt,jn,sn,zr,_t,wt)}else et.x=Jt,et.y=jn,et.point=ht}else Kr(et,ht,Jt,jn,sn,zr,_t,wt)}function Kr(et,ht,Jt,jn,sn,zr,_t,wt){var $t=(sn+_t)*.5,In=(zr+wt)*.5,sa=Jt>=$t,qa=jn>=In,Ja=qa<<1|sa;et.leaf=!1,et=et.nodes[Ja]||(et.nodes[Ja]=Mu()),sa?sn=$t:_t=$t,qa?zr=In:wt=In,$r(et,ht,Jt,jn,sn,zr,_t,wt)}var bt=Mu();if(bt.add=function(et){$r(bt,et,+ge(et,++be),+ye(et,be),Ee,Ge,We,Re)},bt.visit=function(et){si(et,bt,Ee,Ge,We,Re)},bt.find=function(et){return Au(bt,et[0],et[1],Ee,Ge,We,Re)},be=-1,g==null){for(;++beE||ye>W||ze=xr,Vr=w>=Or,$r=Vr<<1|Wr,Kr=$r+4;$rw&&(E=g.slice(w,E),F[W]?F[W]+=E:F[++W]=E),(S=S[0])===(q=q[0])?F[W]?F[W]+=q:F[++W]=q:(F[++W]=null,j.push({i:W,x:ta(S,q)})),w=zs.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:Aa:g instanceof vn?Tu:Array.isArray(g)?Gl:w==="object"&&isNaN(g)?za:ta)(c,g)}],e.interpolateArray=Gl;function Gl(c,g){var w=[],S=[],q=c.length,E=g.length,W=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=l0.get(w)||zf,S=Zv.get(S)||U,Xv(S(w.apply(null,r.call(arguments,1))))};function Xv(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 s0(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 u0(c){return function(g){return Math.pow(g,c)}}function Ns(c){return 1-Math.cos(c*Fr)}function Fs(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/Lr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*Lr/g)}}function Is(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=f0;function f0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,W=g.c-S,F=g.l-q;return isNaN(W)&&(W=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 oa(w+E*j,S+W*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,W=g.s-S,F=g.l-q;return isNaN(W)&&(W=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 Va(w+E*j,S+W*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,W=g.a-S,F=g.b-q;return function(j){return Ms(w+E*j,S+W*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=Hs(g),q=Vl(g,w),E=Hs(Bs(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:ta(c,g)})):g&&w.push(go(w)+"rotate("+g+")")}function v0(c,g,w,S){c!==g?S.push({i:w.push(go(w)+"skewX(",null,")")-2,x:ta(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:ta(c[0],g[0])},{i:q-2,x:ta(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),c0(c.translate,g.translate,w,S),Uf(c.rotate,g.rotate,w,S),v0(c.skew,g.skew,w,S),Yf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,W=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=Fl(c.tick)),c):E},c.start=function(){var Re,xr=ze.length,Or=Ve.length,Wr=S[0],Vr=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 Na(q,function(ge){var ye,ze;c&&(ye=ge.children)&&ye.sort(c),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),W}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)}),Na(q,function(E){var W;E.children||(E.value=+w.call(S,E,E.depth)||0),(W=E.parent)&&(W.value+=E.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Xa,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 Na(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(W=c.children)&&(E=W.length))for(var q=-1,E,W;++qq&&(q=F),S.push(F)}for(W=0;WS&&(w=g,S=q);return w}function Gs(c){return c.reduce(al,0)}function al(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Xl,S=Vs;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),ge,ye=-1,ze=j.length,Ve=ae.length-1,be=c?1:1/ze,ke;++ye0)for(ye=-1;++ye=ne[0]&&ke<=ne[1]&&(ge=F[e.bisect(ae,ke,1,Ve)-1],ge.y+=be,ge.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(W){return il(W,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Vs(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 Xl(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,W){var F=c.call(this,E,W),j=F[0],ne=w[0],ae=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Na(j,function(ze){ze.r=+ge(ze.value)}),Na(j,_0),g){var ye=g*(S?1:Math.max(2*j.r/ne,2*j.r/ae))/2;Na(j,function(ze){ze.r+=ye}),Na(j,_0),Na(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},Vi(q,c)};function Eu(c,g){return c.value-g.value}function Ws(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function b0(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 _0(c){if(!(g=c.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,W,F,j,ne,ae,ge,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(x0),W=g[0],W.x=-W.r,W.y=0,ze(W),ye>1&&(F=g[1],F.x=F.r,F.y=0,ze(F),ye>2))for(j=g[2],Xn(W,F,j),ze(j),Ws(W,j),W._pack_prev=j,Ws(j,F),F=W._pack_next,ne=3;neke.x&&(ke=xr),xr.depth>Ee.depth&&(Ee=xr)});var Ge=g(be,ke)/2-be.x,We=w[0]/(ke.x+g(ke,be)/2+Ge),Re=w[1]/(Ee.depth||1);Ti(ze,function(xr){xr.x=(xr.x+Ge)*We,xr.y=xr.depth*Re})}return ye}function E(ae){for(var ge={A:null,children:[ae]},ye=[ge],ze;(ze=ye.pop())!=null;)for(var Ve=ze.children,be,ke=0,Ee=Ve.length;ke0&&(Zs(B(be,ae,ye),ae,xr),Ee+=xr,Ge+=xr),We+=be.m,Ee+=ze.m,Re+=ke.m,Ge+=Ve.m;be&&!zu(Ve)&&(Ve.t=be,Ve.m+=We-Ge),ze&&!jl(ke)&&(ke.t=ze,ke.m+=Ee-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},Vi(q,c)};function ui(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 Zs(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=ui,w=[1,1],S=!1;function q(E,W){var F=c.call(this,E,W),j=F[0],ne,ae=0;Na(j,function(be){var ke=be.children;ke&&ke.length?(be.x=ve(ke),be.y=J(ke)):(be.x=ne?ae+=g(be,ne):0,be.y=0,ne=be)});var ge=oe(j),ye=Me(j),ze=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return Na(j,S?function(be){be.x=(be.x-j.x)*w[0],be.y=(j.y-be.y)*w[1]}:function(be){be.x=(be.x-ze)/(Ve-ze)*w[0],be.y=(1-(j.y?be.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},Vi(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,W,F="squarify",j=.5*(1+Math.sqrt(5));function ne(be,ke){for(var Ee=-1,Ge=be.length,We,Re;++Ee0;)Ge.push(Re=We[Vr-1]),Ge.area+=Re.area,F!=="squarify"||(Or=ye(Ge,Wr))<=xr?(We.pop(),xr=Or):(Ge.area-=Ge.pop().area,ze(Ge,Wr,Ee,!1),Wr=Math.min(Ee.dx,Ee.dy),Ge.length=Ge.area=0,xr=1/0);Ge.length&&(ze(Ge,Wr,Ee,!0),Ge.length=Ge.area=0),ke.forEach(ae)}}function ge(be){var ke=be.children;if(ke&&ke.length){var Ee=q(be),Ge=ke.slice(),We,Re=[];for(ne(Ge,Ee.dx*Ee.dy/be.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?Ee.dx:Ee.dy,Ee,!Ge.length),Re.length=Re.area=0);ke.forEach(ge)}}function ye(be,ke){for(var Ee=be.area,Ge,We=0,Re=1/0,xr=-1,Or=be.length;++xrWe&&(We=Ge));return Ee*=Ee,ke*=ke,Ee?Math.max(ke*We*j/Ee,Ee/(ke*Re*j)):1/0}function ze(be,ke,Ee,Ge){var We=-1,Re=be.length,xr=Ee.x,Or=Ee.y,Wr=ke?g(be.area/ke):0,Vr;if(ke==Ee.dx){for((Ge||Wr>Ee.dy)&&(Wr=Ee.dy);++WeEe.dx)&&(Wr=Ee.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:br,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),W()):c},F.range=function(j){return arguments.length?(g=j,W()):g},F.rangeRound=function(j){return F.range(j).interpolate(po)},F.clamp=function(j){return arguments.length?(S=j,W()):S},F.interpolate=function(j){return arguments.length?(w=j,W()):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),W()},F.copy=function(){return qr(c,g,w,S)},W()}function rt(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function Jr(c,g){return Je(c,vr(tt(c,g)[2])),Je(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 Er={s:1,g:1,p:1,r:1,e:1};function Ir(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Ir(g[2]);return c in Er?Math.abs(w-Ir(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 W(F){return c(q(F))}return W.invert=function(F){return E(c.invert(F))},W.domain=function(F){return arguments.length?(w=F[0]>=0,c.domain((S=F.map(Number)).map(q)),W):S},W.base=function(F){return arguments.length?(g=+F,c.domain(S.map(q)),W):g},W.nice=function(){var F=Je(S.map(q),w?Math:Gt);return c.domain(F),S=F.map(E),W},W.ticks=function(){var F=ir(S),j=[],ne=F[0],ae=F[1],ge=Math.floor(q(ne)),ye=Math.ceil(q(ae)),ze=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge0;Ve--)j.push(E(ge)*Ve);for(ge=0;j[ge]ae;ye--);j=j.slice(ge,ye)}return j},W.copy=function(){return pt(c.copy(),g,w,S)},rt(W,c)}var Gt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return tn(e.scale.linear(),1,[0,1])};function tn(c,g,w){var S=Wt(g),q=Wt(1/g);function E(W){return c(S(W))}return E.invert=function(W){return q(c.invert(W))},E.domain=function(W){return arguments.length?(c.domain((w=W.map(Number)).map(S)),E):w},E.ticks=function(W){return nt(w,W)},E.tickFormat=function(W,F){return d3_scale_linearTickFormat(w,W,F)},E.nice=function(W){return E.domain(Jr(w,W))},E.exponent=function(W){return arguments.length?(S=Wt(g=W),q=Wt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return tn(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 mn([],{t:"range",a:[[]]})};function mn(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 W(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 be,ke,Ee,Ge,We=0,Re=0,xr,Or,Wr,Vr,$r,Kr,bt,et,ht=[];if((Ge=(+W.apply(this,arguments)||0)/2)&&(Ee=S===Wi?Math.sqrt(ne*ne+ae*ae):+S.apply(this,arguments),Ve||(Re*=-1),ae&&(Re=pn(Ee/ae*Math.sin(Ge))),ne&&(We=pn(Ee/ne*Math.sin(Ge)))),ae){xr=ae*Math.cos(ge+Re),Or=ae*Math.sin(ge+Re),Wr=ae*Math.cos(ye-Re),Vr=ae*Math.sin(ye-Re);var Jt=Math.abs(ye-ge-2*Re)<=rr?0:1;if(Re&&Nu(xr,Or,Wr,Vr)===Ve^Jt){var jn=(ge+ye)/2;xr=ae*Math.cos(jn),Or=ae*Math.sin(jn),Wr=Vr=null}}else xr=Or=0;if(ne){$r=ne*Math.cos(ye-We),Kr=ne*Math.sin(ye-We),bt=ne*Math.cos(ge+We),et=ne*Math.sin(ge+We);var sn=Math.abs(ge-ye+2*We)<=rr?0:1;if(We&&Nu($r,Kr,bt,et)===1-Ve^sn){var zr=(ge+ye)/2;$r=ne*Math.cos(zr),Kr=ne*Math.sin(zr),bt=et=null}}else $r=Kr=0;if(ze>Ae&&(be=Math.min(Math.abs(ae-ne)/2,+w.apply(this,arguments)))>.001){ke=ne0?0:1}function w0(c,g,w,S,q){var E=c[0]-g[0],W=c[1]-g[1],F=(q?S:-S)/Math.sqrt(E*E+W*W),j=F*W,ne=-F*E,ae=c[0]+j,ge=c[1]+ne,ye=g[0]+j,ze=g[1]+ne,Ve=(ae+ye)/2,be=(ge+ze)/2,ke=ye-ae,Ee=ze-ge,Ge=ke*ke+Ee*Ee,We=w-S,Re=ae*ze-ye*ge,xr=(Ee<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Or=(Re*Ee-ke*xr)/Ge,Wr=(-Re*ke-Ee*xr)/Ge,Vr=(Re*Ee+ke*xr)/Ge,$r=(-Re*ke+Ee*xr)/Ge,Kr=Or-Ve,bt=Wr-be,et=Vr-Ve,ht=$r-be;return Kr*Kr+bt*bt>et*et+ht*ht&&(Or=Vr,Wr=$r),[[Or-j,Wr-ne],[Or*w/We,Wr*w/We]]}function M0(){return!0}function nd(c){var g=Il,w=Ts,S=M0,q=Zi,E=q.key,W=.7;function F(j){var ne=[],ae=[],ge=-1,ye=j.length,ze,Ve=At(g),be=At(w);function ke(){ne.push("M",q(c(ae),W))}for(;++ge1?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 A0(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]+W[0])+","+(q[1]+W[1])+","+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1];for(var ne=2;ne9&&(E=w*3/Math.sqrt(E),W[F]=E*S,W[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+W[F]*W[F])),g.push([E||0,W[F]*E||0]);return g}function ue(c){return c.length<3?Zi(c):c[0]+T0(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;++wrr)+",1 "+ge}function ne(ae,ge,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 qe(c){return c.radius}e.svg.diagonal=function(){var c=de,g=we,w=Ne;function S(q,E){var W=c.call(this,q,E),F=g.call(this,q,E),j=(W.y+F.y)/2,ne=[W,{x:W.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 Ne(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=Ne,w=c.projection;return c.projection=function(S){return arguments.length?w(er(g=S)):g},c};function er(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Fr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Ar,g=cr;function w(S,q){return(at.get(c.call(this,S,q))||Xr)(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 cr(){return 64}function Ar(){return"circle"}function Xr(c){var g=Math.sqrt(c/rr);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:Xr,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);pe.transition=function(c){for(var g=ga||++Fn,w=Ca(c),S=[],q,E,W=ci||{time:Date.now(),ease:s0,delay:0,duration:250},F=-1,j=this.length;++F0;)ge[--Ge].call(c,Ee);if(ke>=1)return W.event&&W.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}W||(F=q.time,j=Fl(ye,0,F),W=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=Xi,w=6,S=6,q=3,E=[10],W=null,F;function j(ne){ne.each(function(){var ae=e.select(this),ge=this.__chart__||c,ye=this.__chart__=c.copy(),ze=W==null?ye.ticks?ye.ticks.apply(ye,E):ye.domain():W,Ve=F==null?ye.tickFormat?ye.tickFormat.apply(ye,E):U:F,be=ae.selectAll(".tick").data(ze,ye),ke=be.enter().insert("g",".domain").attr("class","tick").style("opacity",Ae),Ee=e.transition(be.exit()).style("opacity",Ae).remove(),Ge=e.transition(be.order()).style("opacity",1),We=Math.max(w,0)+q,Re,xr=sr(ye),Or=ae.selectAll(".domain").data([0]),Wr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));ke.append("line"),ke.append("text");var Vr=ke.select("line"),$r=Ge.select("line"),Kr=be.select("text").text(Ve),bt=ke.select("text"),et=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,Jt,jn,sn,zr;if(g==="bottom"||g==="top"?(Re=fl,Jt="x",sn="y",jn="x2",zr="y2",Kr.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+xr[0]+","+ht*S+"V0H"+xr[1]+"V"+ht*S)):(Re=cl,Jt="y",sn="x",jn="y2",zr="x2",Kr.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+xr[0]+"H0V"+xr[1]+"H"+ht*S)),Vr.attr(zr,ht*w),bt.attr(sn,ht*We),$r.attr(jn,0).attr(zr,ht*w),et.attr(Jt,0).attr(sn,ht*We),ye.rangeBand){var _t=ye,wt=_t.rangeBand()/2;ge=ye=function($t){return _t($t)+wt}}else ge.rangeBand?ge=ye:Ee.call(Re,ye,ge);ke.call(Re,ge,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+"":Xi,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ne){return arguments.length?(W=ne,j):W},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 Xi="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,W,F=!0,j=!0,ne=mo[0];function ae(be){be.each(function(){var ke=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),Ee=ke.selectAll(".background").data([0]);Ee.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ke.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=ke.selectAll(".resize").data(ne,U);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return $l[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(ke),Re=e.transition(Ee),xr;g&&(xr=sr(g),Re.attr("x",xr[0]).attr("width",xr[1]-xr[0]),ye(We)),w&&(xr=sr(w),Re.attr("y",xr[0]).attr("height",xr[1]-xr[0]),ze(We)),ge(We)})}ae.event=function(be){be.each(function(){var ke=c.of(this,arguments),Ee={x:S,y:q,i:E,j:W},Ge=this.__chart__||Ee;this.__chart__=Ee,ga?e.select(this).transition().each("start.brush",function(){E=Ge.i,W=Ge.j,S=Ge.x,q=Ge.y,ke({type:"brushstart"})}).tween("brush:brush",function(){var We=Gl(S,Ee.x),Re=Gl(q,Ee.y);return E=W=null,function(xr){S=Ee.x=We(xr),q=Ee.y=Re(xr),ke({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=Ee.i,W=Ee.j,ke({type:"brush",mode:"resize"}),ke({type:"brushend"})}):(ke({type:"brushstart"}),ke({type:"brush",mode:"resize"}),ke({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(ke){return"translate("+S[+/e$/.test(ke)]+","+q[+/^s/.test(ke)]+")"})}function ye(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(be){be.select(".extent").attr("y",q[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var be=this,ke=e.select(e.event.target),Ee=c.of(be,arguments),Ge=e.select(be),We=ke.datum(),Re=!/^(n|s)$/.test(We)&&g,xr=!/^(e|w)$/.test(We)&&w,Or=ke.classed("extent"),Wr=Sr(be),Vr,$r=e.mouse(be),Kr,bt=e.select(i(be)).on("keydown.brush",Jt).on("keyup.brush",jn);if(e.event.changedTouches?bt.on("touchmove.brush",sn).on("touchend.brush",_t):bt.on("mousemove.brush",sn).on("mouseup.brush",_t),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&&(Vr=$r.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ke.style("cursor")),Ee({type:"brushstart"}),sn();function Jt(){e.event.keyCode==32&&(Or||(Vr=null,$r[0]-=S[1],$r[1]-=q[1],Or=2),Se())}function jn(){e.event.keyCode==32&&Or==2&&($r[0]+=S[1],$r[1]+=q[1],Or=0,Se())}function sn(){var wt=e.mouse(be),$t=!1;Kr&&(wt[0]+=Kr[0],wt[1]+=Kr[1]),Or||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),$r[0]=S[+(wt[0]{(function(e,r){typeof pd=="object"&&typeof r6!="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),pr=tr.ceil(Ye);return Ye-Ze0))return Tr;do Tr.push(yr=new Date(+Ye)),Ue(Ye,pr),Te(Ye);while(yr=Ze)for(;Te(Ze),!Ye(Ze);)Ze.setTime(Ze-1)},function(Ze,pr){if(Ze>=Ze)if(pr<0)for(;++pr<=0;)for(;Ue(Ze,-1),!Ye(Ze););else for(;--pr>=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,Z=A.range,H=k.range,V=M.range,U=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,se=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()});se.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 ce=se.range,Se=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()}),Fe=Se.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,Le=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}),Qe=Le.range;function fe(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 me=fe(0),Ce=fe(1),pe=fe(2),G=fe(3),Q=fe(4),$=fe(5),_e=fe(6),De=me.range,Ie=Ce.range,nr=pe.range,ar=G.range,Be=Q.range,or=$.range,lr=_e.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()}),Ke=hr.range,gr=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()});gr.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 mr=gr.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=Z,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=U,e.timeTuesday=k,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=b,e.timeWeeks=I,e.timeYear=se,e.timeYears=ce,e.utcDay=Le,e.utcDays=Qe,e.utcFriday=$,e.utcFridays=or,e.utcHour=He,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=Se,e.utcMinutes=Fe,e.utcMonday=Ce,e.utcMondays=Ie,e.utcMonth=hr,e.utcMonths=Ke,e.utcSaturday=_e,e.utcSaturdays=lr,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=me,e.utcSundays=De,e.utcThursday=Q,e.utcThursdays=Be,e.utcTuesday=pe,e.utcTuesdays=nr,e.utcWednesday=G,e.utcWednesdays=ar,e.utcWeek=me,e.utcWeeks=De,e.utcYear=gr,e.utcYears=mr,Object.defineProperty(e,"__esModule",{value:!0})})});var S0=te((gd,t6)=>{(function(e,r){typeof gd=="object"&&typeof t6!="undefined"?r(gd,qy()):(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,$e){return{y:xe,m:Ae,d:$e,H:0,M:0,S:0,L:0}}function i(xe){var Ae=xe.dateTime,$e=xe.date,rr=xe.time,Lr=xe.periods,Yr=xe.days,Fr=xe.shortDays,st=xe.months,xt=xe.shortMonths,Rt=h(Lr),Kt=d(Lr),cn=h(Yr),pn=d(Yr),Mn=h(Fr),Xt=d(Fr),Qt=h(st),en=d(st),an=h(xt),jr=d(xt),Ut={a:mi,A:oo,b:yi,B:Ms,c:null,d:re,e:re,f:Fe,H:K,I:se,j:ce,L:Se,m:He,M:Xe,p:zl,q:Yo,Q:Ze,s:pr,S:Le,u:Qe,U:fe,V:me,w:Ce,W:pe,x:null,X:null,y:G,Y:Q,Z:$,"%":Ye},Nt={a:As,A:Go,b:Yn,B:bi,c:null,d:_e,e:_e,f:Be,H:De,I:Ie,j:nr,L:ar,m:or,M:lr,p:Vo,q:_i,Q:Ze,s:pr,S:hr,u:Ke,U:gr,V:mr,w:Te,W:Ue,x:null,X:null,y:kr,Y:Ur,Z:tr,"%":Ye},rn={a:Va,A:kn,b:Wa,B:oa,c:hn,d:D,e:D,f:V,H:N,I:N,j:R,L:H,m:M,M:I,p:On,q:k,Q:ee,s:ie,S:Z,u:p,U:y,V:_,w:m,W:C,x:dn,X:Un,y:b,Y:x,Z:A,"%":U};Ut.x=Tn($e,Ut),Ut.X=Tn(rr,Ut),Ut.c=Tn(Ae,Ut),Nt.x=Tn($e,Nt),Nt.X=Tn(rr,Nt),Nt.c=Tn(Ae,Nt);function Tn(Qr,St){return function(It){var Br=[],Zn=-1,on=0,Pn=Qr.length,At,Za,Wo;for(It instanceof Date||(It=new Date(+It));++Zn53)return null;"w"in Br||(Br.w=1),"Z"in Br?(on=n(a(Br.y,0,1)),Pn=on.getUTCDay(),on=Pn>4||Pn===0?r.utcMonday.ceil(on):r.utcMonday(on),on=r.utcDay.offset(on,(Br.V-1)*7),Br.y=on.getUTCFullYear(),Br.m=on.getUTCMonth(),Br.d=on.getUTCDate()+(Br.w+6)%7):(on=t(a(Br.y,0,1)),Pn=on.getDay(),on=Pn>4||Pn===0?r.timeMonday.ceil(on):r.timeMonday(on),on=r.timeDay.offset(on,(Br.V-1)*7),Br.y=on.getFullYear(),Br.m=on.getMonth(),Br.d=on.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 Yt(Qr,St,It,Br){for(var Zn=0,on=St.length,Pn=It.length,At,Za;Zn=Pn)return-1;if(At=St.charCodeAt(Zn++),At===37){if(At=St.charAt(Zn++),Za=rn[At in o?St.charAt(Zn++):At],!Za||(Br=Za(Qr,It,Br))<0)return-1}else if(At!=It.charCodeAt(Br++))return-1}return Br}function On(Qr,St,It){var Br=Rt.exec(St.slice(It));return Br?(Qr.p=Kt[Br[0].toLowerCase()],It+Br[0].length):-1}function Va(Qr,St,It){var Br=Mn.exec(St.slice(It));return Br?(Qr.w=Xt[Br[0].toLowerCase()],It+Br[0].length):-1}function kn(Qr,St,It){var Br=cn.exec(St.slice(It));return Br?(Qr.w=pn[Br[0].toLowerCase()],It+Br[0].length):-1}function Wa(Qr,St,It){var Br=an.exec(St.slice(It));return Br?(Qr.m=jr[Br[0].toLowerCase()],It+Br[0].length):-1}function oa(Qr,St,It){var Br=Qt.exec(St.slice(It));return Br?(Qr.m=en[Br[0].toLowerCase()],It+Br[0].length):-1}function hn(Qr,St,It){return Yt(Qr,Ae,St,It)}function dn(Qr,St,It){return Yt(Qr,$e,St,It)}function Un(Qr,St,It){return Yt(Qr,rr,St,It)}function mi(Qr){return Fr[Qr.getDay()]}function oo(Qr){return Yr[Qr.getDay()]}function yi(Qr){return xt[Qr.getMonth()]}function Ms(Qr){return st[Qr.getMonth()]}function zl(Qr){return Lr[+(Qr.getHours()>=12)]}function Yo(Qr){return 1+~~(Qr.getMonth()/3)}function As(Qr){return Fr[Qr.getUTCDay()]}function Go(Qr){return Yr[Qr.getUTCDay()]}function Yn(Qr){return xt[Qr.getUTCMonth()]}function bi(Qr){return st[Qr.getUTCMonth()]}function Vo(Qr){return Lr[+(Qr.getUTCHours()>=12)]}function _i(Qr){return 1+~~(Qr.getUTCMonth()/3)}return{format:function(Qr){var St=Tn(Qr+="",Ut);return St.toString=function(){return Qr},St},parse:function(Qr){var St=vn(Qr+="",!1);return St.toString=function(){return Qr},St},utcFormat:function(Qr){var St=Tn(Qr+="",Nt);return St.toString=function(){return Qr},St},utcParse:function(Qr){var St=vn(Qr+="",!0);return St.toString=function(){return Qr},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(xe,Ae,$e){var rr=xe<0?"-":"",Lr=(rr?-xe:xe)+"",Yr=Lr.length;return rr+(Yr<$e?new Array($e-Yr+1).join(Ae)+Lr:Lr)}function v(xe){return xe.replace(u,"\\$&")}function h(xe){return new RegExp("^(?:"+xe.map(v).join("|")+")","i")}function d(xe){for(var Ae={},$e=-1,rr=xe.length;++$e68?1900:2e3),$e+rr[0].length):-1}function A(xe,Ae,$e){var rr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ae.slice($e,$e+6));return rr?(xe.Z=rr[1]?0:-(rr[2]+(rr[3]||"00")),$e+rr[0].length):-1}function k(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+1));return rr?(xe.q=rr[0]*3-3,$e+rr[0].length):-1}function M(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.m=rr[0]-1,$e+rr[0].length):-1}function D(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.d=+rr[0],$e+rr[0].length):-1}function R(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+3));return rr?(xe.m=0,xe.d=+rr[0],$e+rr[0].length):-1}function N(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.H=+rr[0],$e+rr[0].length):-1}function I(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.M=+rr[0],$e+rr[0].length):-1}function Z(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+2));return rr?(xe.S=+rr[0],$e+rr[0].length):-1}function H(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+3));return rr?(xe.L=+rr[0],$e+rr[0].length):-1}function V(xe,Ae,$e){var rr=l.exec(Ae.slice($e,$e+6));return rr?(xe.L=Math.floor(rr[0]/1e3),$e+rr[0].length):-1}function U(xe,Ae,$e){var rr=s.exec(Ae.slice($e,$e+1));return rr?$e+rr[0].length:-1}function ee(xe,Ae,$e){var rr=l.exec(Ae.slice($e));return rr?(xe.Q=+rr[0],$e+rr[0].length):-1}function ie(xe,Ae,$e){var rr=l.exec(Ae.slice($e));return rr?(xe.s=+rr[0],$e+rr[0].length):-1}function re(xe,Ae){return f(xe.getDate(),Ae,2)}function K(xe,Ae){return f(xe.getHours(),Ae,2)}function se(xe,Ae){return f(xe.getHours()%12||12,Ae,2)}function ce(xe,Ae){return f(1+r.timeDay.count(r.timeYear(xe),xe),Ae,3)}function Se(xe,Ae){return f(xe.getMilliseconds(),Ae,3)}function Fe(xe,Ae){return Se(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 Le(xe,Ae){return f(xe.getSeconds(),Ae,2)}function Qe(xe){var Ae=xe.getDay();return Ae===0?7:Ae}function fe(xe,Ae){return f(r.timeSunday.count(r.timeYear(xe)-1,xe),Ae,2)}function me(xe,Ae){var $e=xe.getDay();return xe=$e>=4||$e===0?r.timeThursday(xe):r.timeThursday.ceil(xe),f(r.timeThursday.count(r.timeYear(xe),xe)+(r.timeYear(xe).getDay()===4),Ae,2)}function Ce(xe){return xe.getDay()}function pe(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 _e(xe,Ae){return f(xe.getUTCDate(),Ae,2)}function De(xe,Ae){return f(xe.getUTCHours(),Ae,2)}function Ie(xe,Ae){return f(xe.getUTCHours()%12||12,Ae,2)}function nr(xe,Ae){return f(1+r.utcDay.count(r.utcYear(xe),xe),Ae,3)}function ar(xe,Ae){return f(xe.getUTCMilliseconds(),Ae,3)}function Be(xe,Ae){return ar(xe,Ae)+"000"}function or(xe,Ae){return f(xe.getUTCMonth()+1,Ae,2)}function lr(xe,Ae){return f(xe.getUTCMinutes(),Ae,2)}function hr(xe,Ae){return f(xe.getUTCSeconds(),Ae,2)}function Ke(xe){var Ae=xe.getUTCDay();return Ae===0?7:Ae}function gr(xe,Ae){return f(r.utcSunday.count(r.utcYear(xe)-1,xe),Ae,2)}function mr(xe,Ae){var $e=xe.getUTCDay();return xe=$e>=4||$e===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 pr(xe){return Math.floor(+xe/1e3)}var Tr;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(xe){return Tr=i(xe),e.timeFormat=Tr.format,e.timeParse=Tr.parse,e.utcFormat=Tr.utcFormat,e.utcParse=Tr.utcParse,Tr}var wr="%Y-%m-%dT%H:%M:%S.%LZ";function Hr(xe){return xe.toISOString()}var Sr=Date.prototype.toISOString?Hr:e.utcFormat(wr);function Dr(xe){var Ae=new Date(xe);return isNaN(Ae)?null:Ae}var ur=+new Date("2000-01-01T00:00:00.000Z")?Dr:e.utcParse(wr);e.isoFormat=Sr,e.isoParse=ur,e.timeFormatDefaultLocale=yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Dy=te((md,n6)=>{(function(e,r){typeof md=="object"&&typeof n6!="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,Z=[],H=0,V=M[0],U=0;I>0&&V>0&&(U+V+1>N&&(V=Math.max(1,N-U)),Z.push(R.substring(I-=V,I+V)),!((U+=V+1)>N));)V=M[H=(H+1)%M.length];return Z.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],Z=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=N.length;return Z===H?N:Z>H?N+new Array(Z-H+1).join("0"):Z>0?N.slice(0,Z)+"."+N.slice(Z):"0."+new Array(1-Z).join("0")+t(M,Math.max(0,D+Z-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+"",Z=M.numerals===void 0?m:i(p.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",V=M.minus===void 0?"-":M.minus+"",U=M.nan===void 0?"NaN":M.nan+"";function ee(re){re=l(re);var K=re.fill,se=re.align,ce=re.sign,Se=re.symbol,Fe=re.zero,He=re.width,Xe=re.comma,Le=re.precision,Qe=re.trim,fe=re.type;fe==="n"?(Xe=!0,fe="g"):d[fe]||(Le===void 0&&(Le=12),Qe=!0,fe="g"),(Fe||K==="0"&&se==="=")&&(Fe=!0,K="0",se="=");var me=Se==="$"?R:Se==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",Ce=Se==="$"?N:/[%p]/.test(fe)?H:"",pe=d[fe],G=/[defgprs%]/.test(fe);Le=Le===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,Le)):Math.max(0,Math.min(20,Le));function Q($){var _e=me,De=Ce,Ie,nr,ar;if(fe==="c")De=pe($)+De,$="";else{$=+$;var Be=$<0||1/$<0;if($=isNaN($)?U:pe(Math.abs($),Le),Qe&&($=u($)),Be&&+$==0&&ce!=="+"&&(Be=!1),_e=(Be?ce==="("?ce:V:ce==="-"||ce==="("?"":ce)+_e,De=(fe==="s"?y[8+f/3]:"")+De+(Be&&ce==="("?")":""),G){for(Ie=-1,nr=$.length;++Iear||ar>57){De=(ar===46?I+$.slice(Ie+1):$.slice(Ie))+De,$=$.slice(0,Ie);break}}}Xe&&!Fe&&($=D($,1/0));var or=_e.length+$.length+De.length,lr=or>1)+_e+$+De+lr.slice(or);break;default:$=lr+_e+$+De;break}return Z($)}return Q.toString=function(){return re+""},Q}function ie(re,K){var se=ee((re=l(re),re.type="f",re)),ce=Math.max(-8,Math.min(8,Math.floor(n(K)/3)))*3,Se=Math.pow(10,-ce),Fe=y[8+ce/3];return function(He){return se(Se*He)+Fe}}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 i6=te((ple,a6)=>{"use strict";a6.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((gle,o6)=>{"use strict";var aH=i6();o6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&aH(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=te((mle,l6)=>{"use strict";l6.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 Ey=te((yd,s6)=>{(function(e,r){typeof yd=="object"&&typeof s6!="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 Js=te((yle,u6)=>{"use strict";u6.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 ji=te(hl=>{"use strict";var iH=Ey().decode,oH=Js(),Py=Array.isArray,lH=ArrayBuffer,sH=DataView;function f6(e){return lH.isView(e)&&!(e instanceof sH)}hl.isTypedArray=f6;function bd(e){return Py(e)||f6(e)}hl.isArrayOrTypedArray=bd;function uH(e){return!bd(e[0])}hl.isArray1D=uH;hl.ensureArray=function(e,r){return Py(e)||(e=[]),e.length=r,e};var Ta={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};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function Ry(e){return e.constructor===ArrayBuffer}hl.isArrayBuffer=Ry;hl.decodeTypedArraySpec=function(e){var r=[],t=fH(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Ry(o)||(o=iH(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 v6=Ht(),Ny=ji().isArrayOrTypedArray;g6.exports=function(r,t){if(v6(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 C0=a1(),pH=/^\w*$/,gH=0,m6=1,_d=2,y6=3,nc=4;b6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=C0(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 mH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yH=/^[^\.\[\]]+$/;x6.exports=function(e,r){for(;r;){var t=e.match(mH);if(t)e=t[1];else if(e.match(yH))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((Mle,M6)=>{"use strict";var bH=Ht();M6.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 bH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var k6=te((Ale,T6)=>{"use strict";var A6=ji().isArrayOrTypedArray,i1=Js();T6.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(A6(a)&&A6(i)&&i1(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function _H(e,r){var t=e%r;return t<0?t+r:t}function xH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}S6.exports={mod:_H,modHalf:xH}});var Ql=te((kle,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,$,_e,De,Ie,nr;return Q=G.r/255,$=G.g/255,_e=G.b/255,Q<=.03928?De=Q/12.92:De=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),_e<=.03928?nr=_e/12.92:nr=e.pow((_e+.055)/1.055,2.4),.2126*De+.7152*Ie+.0722*nr},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),_e=a(G.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+_e+"%)":"hsva("+Q+", "+$+"%, "+_e+"%, "+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),_e=a(G.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+_e+"%)":"hsla("+Q+", "+$+"%, "+_e+"%, "+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,_e=this._gradientType?"GradientType = 1, ":"";if(G){var De=s(G);$="#"+_(De._r,De._g,De._b,De._a)}return"progid:DXImageTransform.Microsoft.gradient("+_e+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(G){var Q=!!G;G=G||this._format;var $=!1,_e=this._a<1&&this._a>=0,De=!Q&&_e&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return De?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(H,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(Z,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 _e in G)G.hasOwnProperty(_e)&&(_e==="a"?$[_e]=G[_e]:$[_e]=Xe(G[_e]));G=$}return s(G,Q)};function u(G){var Q={r:0,g:0,b:0},$=1,_e=null,De=null,Ie=null,nr=!1,ar=!1;return typeof G=="string"&&(G=Ce(G)),typeof G=="object"&&(me(G.r)&&me(G.g)&&me(G.b)?(Q=f(G.r,G.g,G.b),nr=!0,ar=String(G.r).substr(-1)==="%"?"prgb":"rgb"):me(G.h)&&me(G.s)&&me(G.v)?(_e=Xe(G.s),De=Xe(G.v),Q=m(G.h,_e,De),nr=!0,ar="hsv"):me(G.h)&&me(G.s)&&me(G.l)&&(_e=Xe(G.s),Ie=Xe(G.l),Q=h(G.h,_e,Ie),nr=!0,ar="hsl"),G.hasOwnProperty("a")&&($=G.a)),$=re($),{ok:nr,format:G.format||ar,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 _e=o(G,Q,$),De=i(G,Q,$),Ie,nr,ar=(_e+De)/2;if(_e==De)Ie=nr=0;else{var Be=_e-De;switch(nr=ar>.5?Be/(2-_e-De):Be/(_e+De),_e){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:nr,l:ar}}function h(G,Q,$){var _e,De,Ie;G=K(G,360),Q=K(Q,100),$=K($,100);function nr(or,lr,hr){return hr<0&&(hr+=1),hr>1&&(hr-=1),hr<1/6?or+(lr-or)*6*hr:hr<1/2?lr:hr<2/3?or+(lr-or)*(2/3-hr)*6:or}if(Q===0)_e=De=Ie=$;else{var ar=$<.5?$*(1+Q):$+Q-$*Q,Be=2*$-ar;_e=nr(Be,ar,G+1/3),De=nr(Be,ar,G),Ie=nr(Be,ar,G-1/3)}return{r:_e*255,g:De*255,b:Ie*255}}function d(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var _e=o(G,Q,$),De=i(G,Q,$),Ie,nr,ar=_e,Be=_e-De;if(nr=_e===0?0:Be/_e,_e==De)Ie=0;else{switch(_e){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:nr,v:ar}}function m(G,Q,$){G=K(G,360)*6,Q=K(Q,100),$=K($,100);var _e=e.floor(G),De=G-_e,Ie=$*(1-Q),nr=$*(1-De*Q),ar=$*(1-(1-De)*Q),Be=_e%6,or=[$,nr,Ie,Ie,ar,$][Be],lr=[ar,$,$,nr,Ie,Ie][Be],hr=[Ie,Ie,ar,$,$,nr][Be];return{r:or*255,g:lr*255,b:hr*255}}function p(G,Q,$,_e){var De=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return _e&&De[0].charAt(0)==De[0].charAt(1)&&De[1].charAt(0)==De[1].charAt(1)&&De[2].charAt(0)==De[2].charAt(1)?De[0].charAt(0)+De[1].charAt(0)+De[2].charAt(0):De.join("")}function y(G,Q,$,_e,De){var Ie=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16)),He(Le(_e))];return De&&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,$,_e){var De=[He(Le(_e)),He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return De.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=se($.s),s($)}function x(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s+=Q/100,$.s=se($.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=se($.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=se($.l),s($)}function D(G,Q){var $=s(G).toHsl(),_e=($.h+Q)%360;return $.h=_e<0?360+_e:_e,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 Z(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 H(G,Q,$){Q=Q||6,$=$||30;var _e=s(G).toHsl(),De=360/$,Ie=[s(G)];for(_e.h=(_e.h-(De*Q>>1)+720)%360;--Q;)_e.h=(_e.h+De)%360,Ie.push(s(_e));return Ie}function V(G,Q){Q=Q||6;for(var $=s(G).toHsv(),_e=$.h,De=$.s,Ie=$.v,nr=[],ar=1/Q;Q--;)nr.push(s({h:_e,s:De,v:Ie})),Ie=(Ie+ar)%1;return nr}s.mix=function(G,Q,$){$=$===0?0:$||50;var _e=s(G).toRgb(),De=s(Q).toRgb(),Ie=$/100,nr={r:(De.r-_e.r)*Ie+_e.r,g:(De.g-_e.g)*Ie+_e.g,b:(De.b-_e.b)*Ie+_e.b,a:(De.a-_e.a)*Ie+_e.a};return s(nr)},s.readability=function(G,Q){var $=s(G),_e=s(Q);return(e.max($.getLuminance(),_e.getLuminance())+.05)/(e.min($.getLuminance(),_e.getLuminance())+.05)},s.isReadable=function(G,Q,$){var _e=s.readability(G,Q),De,Ie;switch(Ie=!1,De=pe($),De.level+De.size){case"AAsmall":case"AAAlarge":Ie=_e>=4.5;break;case"AAlarge":Ie=_e>=3;break;case"AAAsmall":Ie=_e>=7;break}return Ie},s.mostReadable=function(G,Q,$){var _e=null,De=0,Ie,nr,ar,Be;$=$||{},nr=$.includeFallbackColors,ar=$.level,Be=$.size;for(var or=0;orDe&&(De=Ie,_e=s(Q[or]));return s.isReadable(G,_e,{level:ar,size:Be})||!nr?_e:($.includeFallbackColors=!1,s.mostReadable(G,["#fff","#000"],$))};var U=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(U);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){Se(G)&&(G="100%");var $=Fe(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 se(G){return i(1,o(0,G))}function ce(G){return parseInt(G,16)}function Se(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function Fe(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 Le(G){return e.round(parseFloat(G)*255).toString(16)}function Qe(G){return ce(G)/255}var fe=function(){var G="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+G+")",_e="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",De="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+_e),rgba:new RegExp("rgba"+De),hsl:new RegExp("hsl"+_e),hsla:new RegExp("hsla"+De),hsv:new RegExp("hsv"+_e),hsva:new RegExp("hsva"+De),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 me(G){return!!fe.CSS_UNIT.exec(G)}function Ce(G){G=G.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(U[G])G=U[G],Q=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=fe.rgb.exec(G))?{r:$[1],g:$[2],b:$[3]}:($=fe.rgba.exec(G))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=fe.hsl.exec(G))?{h:$[1],s:$[2],l:$[3]}:($=fe.hsla.exec(G))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=fe.hsv.exec(G))?{h:$[1],s:$[2],v:$[3]}:($=fe.hsva.exec(G))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=fe.hex8.exec(G))?{r:ce($[1]),g:ce($[2]),b:ce($[3]),a:Qe($[4]),format:Q?"name":"hex8"}:($=fe.hex6.exec(G))?{r:ce($[1]),g:ce($[2]),b:ce($[3]),format:Q?"name":"hex"}:($=fe.hex4.exec(G))?{r:ce($[1]+""+$[1]),g:ce($[2]+""+$[2]),b:ce($[3]+""+$[3]),a:Qe($[4]+""+$[4]),format:Q?"name":"hex8"}:($=fe.hex3.exec(G))?{r:ce($[1]+""+$[1]),g:ce($[2]+""+$[2]),b:ce($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(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 ua=te(s1=>{"use strict";var C6=Js(),o1=Array.isArray;function wH(e,r){var t,n;for(t=0;t{"use strict";L6.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 u1=te((Lle,q6)=>{"use strict";q6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var q0=te((qle,P6)=>{"use strict";var D6=u1(),E6=Ka(),Fy=E6({editType:"none"});Fy.family.dflt=D6.HOVERFONT;Fy.size.dflt=D6.HOVERFONTSIZE;P6.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Fy,grouptitlefont:E6({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((Dle,R6)=>{"use strict";var MH=Ka(),f1=q0().hoverlabel,c1=ua().extendFlat;R6.exports={hoverlabel:{bgcolor:c1({},f1.bgcolor,{arrayOk:!0}),bordercolor:c1({},f1.bordercolor,{arrayOk:!0}),font:MH({arrayOk:!0,editType:"none"}),align:c1({},f1.align,{arrayOk:!0}),namelength:c1({},f1.namelength,{arrayOk:!0}),showarrow:c1({},f1.showarrow),editType:"none"}}});var _o=te((Ele,z6)=>{"use strict";var AH=Ka(),TH=Md();z6.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:AH({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:TH.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((Ple,I6)=>{"use strict";var kH=Ql(),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)"]]},N6=Ad.RdBu;function SH(e,r){if(r||(r=N6),!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()),F6(e)?e:r}function F6(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 Et=te((zle,H6)=>{"use strict";var qi=Ql(),LH=Ht(),qH=ji().isTypedArray,ma=H6.exports={},Td=dl();ma.defaults=Td.defaults;var DH=ma.defaultLine=Td.defaultLine;ma.lightLine=Td.lightLine;var Hy=ma.background=Td.background;ma.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ma.rgb=function(e){return ma.tinyRGB(qi(e))};ma.opacity=function(e){return e?qi(e).getAlpha():0};ma.addOpacity=function(e,r){var t=qi(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ma.combine=function(e,r){var t=qi(e).toRgb();if(t.a===1)return qi(e).toRgbString();var n=qi(r||Hy).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 qi(i).toRgbString()};ma.interpolate=function(e,r,t){var n=qi(e).toRgb(),a=qi(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 qi(i).toRgbString()};ma.contrast=function(e,r,t){var n=qi(e);n.getAlpha()!==1&&(n=qi(ma.combine(e,Hy)));var a=n.isDark()?r?n.lighten(r):Hy:t?n.darken(t):DH;return a.toString()};ma.stroke=function(e,r){var t=qi(r);e.style({stroke:ma.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ma.fill=function(e,r){var t=qi(r);e.style({fill:ma.tinyRGB(t),"fill-opacity":t.getAlpha()})};ma.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((Nle,B6)=>{"use strict";B6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var D0=te(O6=>{"use strict";O6.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 V6=te(Di=>{"use strict";var By=Ht(),U6=Ql(),Y6=ua().extendFlat,EH=_o(),PH=ac(),RH=Et(),zH=kd().DESELECTDIM,E0=a1(),G6=D0().counter,NH=L0().modHalf,pl=ji().isArrayOrTypedArray,Iu=ji().isTypedArraySpec,Hu=ji().decodeTypedArraySpec;Di.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)),!By(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||!By(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)),U6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return U6(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(PH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),e==="auto"?r.set("auto"):By(e)?r.set(NH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||G6(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:!!G6(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 W6={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},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:{}}},Z6={};function X6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),X6(n,r[t]))}}X6(W6,Z6);j6.exports={configAttributes:W6,dfltConfig:Z6}});var Uy=te((Ble,J6)=>{"use strict";var Oy=kt(),FH=Ht(),v1=[];J6.exports=function(e,r){if(v1.indexOf(e)!==-1)return;v1.push(e);var t=1e3;FH(r)?t=r:r==="long"&&(t=3e3);var n=Oy.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(v1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=v1.indexOf(l);s!==-1&&v1.splice(s,1),Oy.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Oy.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var P0=oc().dfltConfig,Yy=Uy(),Gy=$6.exports={};Gy.log=function(){var e;if(P0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Gy.warn=function(){var e;if(P0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Gy.error=function(){var e;if(P0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Cd=te((Ule,K6)=>{"use strict";K6.exports=function(){}});var Vy=te((Yle,Q6)=>{"use strict";Q6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{ex.exports=IH;function IH(){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 nx=te((Vle,tx)=>{tx.exports=HH;function HH(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 ix=te((Wle,ax)=>{ax.exports=BH;function BH(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 Wy=te((Zle,ox)=>{ox.exports=OH;function OH(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 sx=te((Xle,lx)=>{lx.exports=UH;function UH(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 fx=te((jle,ux)=>{ux.exports=YH;function YH(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,Z=v*_-d*p,H=h*_-d*y,V=C*H-x*Z+b*I+A*N-k*R+M*D;return V?(V=1/V,e[0]=(l*H-s*Z+u*I)*V,e[1]=(a*Z-n*H-i*I)*V,e[2]=(p*M-y*k+_*A)*V,e[3]=(h*k-v*M-d*A)*V,e[4]=(s*N-o*H-u*R)*V,e[5]=(t*H-a*N+i*R)*V,e[6]=(y*b-m*M-_*x)*V,e[7]=(f*M-h*b+d*x)*V,e[8]=(o*Z-l*N+u*D)*V,e[9]=(n*N-t*Z-i*D)*V,e[10]=(m*k-p*b+_*C)*V,e[11]=(v*b-f*k-d*C)*V,e[12]=(l*R-o*I-s*D)*V,e[13]=(t*I-n*R+a*D)*V,e[14]=(p*x-m*A-y*C)*V,e[15]=(f*A-v*x+h*C)*V,e):null}});var vx=te((Jle,cx)=>{cx.exports=GH;function GH(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 dx=te(($le,hx)=>{hx.exports=VH;function VH(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,Z=v*y-h*p;return _*Z-C*I+x*N+b*R-A*D+k*M}});var gx=te((Kle,px)=>{px.exports=WH;function WH(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 yx=te((Qle,mx)=>{mx.exports=ZH;function ZH(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 _x=te((ese,bx)=>{bx.exports=XH;function XH(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 wx=te((rse,xx)=>{xx.exports=jH;function jH(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,Z,H,V,U;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,Z=o*i*f+a*s,H=a*o*f+i*s,V=i*o*f-a*s,U=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*Z,e[5]=h*N+y*I+b*Z,e[6]=d*N+_*I+A*Z,e[7]=m*N+C*I+k*Z,e[8]=v*H+p*V+x*U,e[9]=h*H+y*V+b*U,e[10]=d*H+_*V+A*U,e[11]=m*H+C*V+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ax=te((tse,Mx)=>{Mx.exports=JH;function JH(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 kx=te((nse,Tx)=>{Tx.exports=$H;function $H(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 Cx=te((ase,Sx)=>{Sx.exports=KH;function KH(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 qx=te((ise,Lx)=>{Lx.exports=QH;function QH(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 Ex=te((ose,Dx)=>{Dx.exports=eB;function eB(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 Rx=te((lse,Px)=>{Px.exports=rB;function rB(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 Nx=te((sse,zx)=>{zx.exports=tB;function tB(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 Ix=te((use,Fx)=>{Fx.exports=nB;function nB(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 Bx=te((fse,Hx)=>{Hx.exports=aB;function aB(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 Ux=te((cse,Ox)=>{Ox.exports=iB;function iB(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 Gx=te((vse,Yx)=>{Yx.exports=oB;function oB(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 Wx=te((hse,Vx)=>{Vx.exports=lB;function lB(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 Xx=te((dse,Zx)=>{Zx.exports=sB;function sB(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 Jx=te((pse,jx)=>{jx.exports=uB;function uB(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 Kx=te((gse,$x)=>{$x.exports=fB;function fB(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 e7=te((mse,Qx)=>{var cB=Wy();Qx.exports=vB;function vB(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?cB(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 t7=te((yse,r7)=>{r7.exports=hB;function hB(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 Zy=te((bse,n7)=>{n7.exports={create:rx(),clone:nx(),copy:ix(),identity:Wy(),transpose:sx(),invert:fx(),adjoint:vx(),determinant:dx(),multiply:gx(),translate:yx(),scale:_x(),rotate:wx(),rotateX:Ax(),rotateY:kx(),rotateZ:Cx(),fromRotation:qx(),fromRotationTranslation:Ex(),fromScaling:Rx(),fromTranslation:Nx(),fromXRotation:Ix(),fromYRotation:Bx(),fromZRotation:Ux(),fromQuat:Gx(),frustum:Wx(),perspective:Xx(),perspectiveFromFieldOfView:Jx(),ortho:Kx(),lookAt:e7(),str:t7()}});var Ld=te(Jn=>{"use strict";var dB=Zy();Jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var pB=kt(),a7=Bu(),gB=Ld(),mB=Zy();function yB(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 bB(e){var r=pB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function i7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function _B(e,r){o7("global",e,r)}function o7(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):a7.warn("addStyleRule failed"):a7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function xB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&i7(t)}function wB(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 MB(e){var r=s7(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=l7(n);if(a){var i=gB.convertCssMatrix(a);t=mB.multiply(t,t,i)}}),t}function l7(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 s7(e){for(var r=[];AB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function AB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function TB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}u7.exports={getGraphDiv:yB,isPlotDiv:bB,removeElement:i7,addStyleRule:_B,addRelatedStyleRule:o7,deleteRelatedStyleRule:xB,setStyleOnHover:wB,getFullTransformMatrix:MB,getElementTransformMatrix:l7,getElementAndAncestors:s7,equalDomRects:TB}});var d1=te((wse,f7)=>{"use strict";f7.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((Mse,m7)=>{"use strict";var v7=ua().extendFlat,kB=Js(),h7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},d7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},SB=h7.flags.slice().concat(["fullReplot"]),CB=d7.flags.slice().concat("layoutReplot");m7.exports={traces:h7,layout:d7,traceFlags:function(){return c7(SB)},layoutFlags:function(){return c7(CB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Xy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Xy.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((Tse,y7)=>{"use strict";y7.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(R0=>{"use strict";var{DATE_FORMAT_LINK:LB,FORMAT_LINK:qB}=jy(),DB=["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 EB({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}".`,qB,"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}".`,LB,"for details on the date formatting syntax.",DB].join(" ")}R0.templateFormatStringDescription=EB;R0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});R0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});R0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});R0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Ed=te((Cse,A7)=>{"use strict";function Ou(e,r){return r?r.d2l(e):e}function b7(e,r){return r?r.l2d(e):e}function PB(e){return e.x0}function RB(e){return e.x1}function zB(e){return e.y0}function NB(e){return e.y1}function _7(e){return e.x0shift||0}function x7(e){return e.x1shift||0}function w7(e){return e.y0shift||0}function M7(e){return e.y1shift||0}function qd(e,r){return Ou(e.x1,r)+x7(e)-Ou(e.x0,r)-_7(e)}function Dd(e,r,t){return Ou(e.y1,t)+M7(e)-Ou(e.y0,t)-w7(e)}function FB(e,r){return Math.abs(qd(e,r))}function IB(e,r,t){return Math.abs(Dd(e,r,t))}function HB(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 BB(e,r){return b7((Ou(e.x1,r)+x7(e)+Ou(e.x0,r)+_7(e))/2,r)}function OB(e,r,t){return b7((Ou(e.y1,t)+M7(e)+Ou(e.y0,t)+w7(e))/2,t)}function UB(e,r,t){return e.type!=="line"?void 0:Dd(e,r,t)/qd(e,r)}var YB=["x0","x1","y0","y1","dy","height","ycenter"],GB=["x0","x1","y0","y1","dx","width","xcenter"];A7.exports={x0:PB,x1:RB,y0:zB,y1:NB,slope:UB,dx:qd,dy:Dd,width:FB,height:IB,length:HB,xcenter:BB,ycenter:OB,simpleXVariables:YB,simpleYVariables:GB}});var S7=te((Lse,k7)=>{"use strict";var VB=xo().overrideAll,sc=_o(),T7=Ka(),WB=es().dash,Uu=ua().extendFlat,{shapeTexttemplateAttrs:ZB,templatefallbackAttrs:XB}=lc(),jB=Ed();k7.exports=VB({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:T7({})},legendrank:Uu({},sc.legendrank,{}),legendwidth:Uu({},sc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Uu({},WB,{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:ZB({newshape:!0},{keys:Object.keys(jB)}),texttemplatefallback:XB({editType:"arraydraw"}),font:T7({}),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 L7=te((qse,C7)=>{"use strict";var JB=es().dash,$B=ua().extendFlat;C7.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:$B({},JB,{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((Dse,q7)=>{"use strict";q7.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 z0=te((Ese,R7)=>{"use strict";var Jy=Ka(),KB=d1(),Rd=dl(),D7=S7(),E7=L7(),QB=Pd(),P7=ua().extendFlat,zd=Jy({editType:"calc"});zd.family.dflt='"Open Sans", verdana, arial, sans-serif';zd.size.dflt=12;zd.color.dflt=Rd.defaultLine;R7.exports={font:zd,title:{text:{valType:"string",editType:"layoutstyle"},font:Jy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Jy({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:P7(QB({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:D7.newshape,activeshape:D7.activeshape,newselection:E7.newselection,activeselection:E7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:P7({},KB.transition,{editType:"none"})}});var z7=te(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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(Lt=>{"use strict";var N0=Bu(),N7=Cd(),F7=Vy(),eO=Js(),rO=h1().addStyleRule,I7=ua(),tO=_o(),nO=z0(),aO=I7.extendFlat,$y=I7.extendDeepAll;Lt.modules={};Lt.allCategories={};Lt.allTypes=[];Lt.subplotsRegistry={};Lt.componentsRegistry={};Lt.layoutArrayContainers=[];Lt.layoutArrayRegexes=[];Lt.traceLayoutAttributes={};Lt.localeRegistry={};Lt.apiMethodRegistry={};Lt.collectableSubplotTypes=null;Lt.register=function(r){if(Lt.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 fO=S0().timeFormat,j7=Ht(),Ky=Bu(),Gu=L0().mod,H0=Rn(),wo=H0.BADNUM,Ei=H0.ONEDAY,p1=H0.ONEHOUR,Yu=H0.ONEMIN,I0=H0.ONESEC,g1=H0.EPOCHJD,$s=dt(),Y7=S0().utcFormat,cO=/^\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,vO=/^\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,G7=new Date().getFullYear()-70;function Ks(e){return e&&$s.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}$n.dateTick0=function(e,r){var t=hO(e,!!r);if(r<2)return t;var n=$n.dateTime2ms(t,e);return n+=Ei*(r-1),$n.ms2DateTime(n,0,e)};function hO(e,r){return Ks(e)?r?$s.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:$s.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}$n.dfltRange=function(e){return Ks(e)?$s.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())*I0+(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=Ks(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?vO:cO);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=$s.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()-g1)*Ei+h*p1+d*Yu+m*I0:wo}u.length===2?u=(Number(u)+2e3-G7)%100+G7: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*I0};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 F0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Nd=90*Ei,V7=3*p1,W7=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(Ks(t)){var v=Math.floor(a/Ei)+g1,h=Math.floor(Gu(e,Ei));try{i=$s.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=Y7("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+Ei&&e<=Id-Ei))return wo;var r=Math.floor(Gu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=fO("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return J7(n,a,i,o,l)};function J7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+F0(r,2)+":"+F0(t,2),(n||a)&&(e+=":"+F0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+F0(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(Ks(t))return Ky.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 Ky.error("unrecognized date",e),r;return e};var dO=/%\d?f/g,pO=/%h/g,gO={1:"1",2:"1",3:"2",4:"2"};function Z7(e,r,t,n){e=e.replace(dO,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(pO,function(){return gO[t("%q")(a)]}),Ks(n))try{e=$s.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var mO=[59,59.9,59.99,59.999,59.9999];function yO(e,r){var t=Gu(e+.05,Ei),n=F0(Math.floor(t/p1),2)+":"+F0(Gu(Math.floor(t/Yu),60),2);if(r!=="M"){j7(r)||(r=0);var a=Math.min(Gu(e/I0,60),mO[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=Ks(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 yO(e,t)+` -`+Z7(i.dayMonthYear,e,n,a);return Z7(r,e,n,a)};var X7=3*Ei;$n.incrementMonth=function(e,r,t){t=Ks(t)&&t;var n=Gu(e,Ei);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ei)+g1,i=$s.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-g1)*Ei+n}catch(s){Ky.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+X7);return l.setUTCMonth(l.getUTCMonth()+r)+n-X7};$n.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Ks(r)&&$s.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";K7.exports=function(r){return r}});var e2=te(Qs=>{"use strict";var bO=Ht(),_O=Bu(),xO=Id(),wO=Rn().BADNUM,Qy=1e-9;Qs.findBin=function(e,r,t){if(bO(r.start))return t?Math.ceil((e-r.start)/r.size-Qy)-1:Math.floor((e-r.start)/r.size+Qy);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?MO:AO:s=t?kO:TO,e+=o*Qy*(t?-1:1)*(o>=0?1:-1);n90&&_O.log("Long binary search..."),n-1};function MO(e,r){return er}function kO(e,r){return e>=r}Qs.sorterAsc=function(e,r){return e-r};Qs.sorterDes=function(e,r){return r-e};Qs.distinctVals=function(e){var r=e.slice();r.sort(Qs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===wO;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}};Qs.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()};Qs.findIndexOfMin=function(e,r){r=r||xO;for(var t=1/0,n,a=0;a{"use strict";Q7.exports=function(r){return Object.keys(r).sort()}});var ew=te(Kn=>{"use strict";var m1=Ht(),SO=ji().isArrayOrTypedArray;Kn.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),m1(r)||(r=!1),SO(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 iw=te((Ose,aw)=>{"use strict";var rw=L0(),r2=rw.mod,CO=rw.modHalf,y1=Math.PI,Vu=2*y1;function LO(e){return e/180*y1}function qO(e){return e/y1*180}function t2(e){return Math.abs(e[1]-e[0])>Vu-1e-14}function tw(e,r){return CO(r-e,Vu)}function DO(e,r){return Math.abs(tw(e,r))}function nw(e,r){if(t2(r))return!0;var t,n;r[0]n&&(n+=Vu);var a=r2(e,Vu),i=a+Vu;return a>=t&&a<=n||i>=t&&i<=n}function EO(e,r,t,n){if(!nw(r,n))return!1;var a,i;return t[0]=a&&e<=i}function n2(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=t2([t,n]),s,u,f,v,h;l?(s=0,u=y1,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 uw=te(fc=>{"use strict";var a2=L0().mod;fc.segmentsIntersect=sw;function sw(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(sw(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(Bd(u,f,d,i-r,o-t),Bd(u,f,d,l-r,s-t),Bd(v,h,m,r-i,t-o),Bd(v,h,m,n-i,a-o));return Math.sqrt(p)};function Bd(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 Od,i2,lw;fc.getTextLocation=function(r,t,n,a){if((r!==i2||a!==lw)&&(Od={},i2=r,lw=a),Od[n])return Od[n];var i=r.getPointAtLength(a2(n-a/2,t)),o=r.getPointAtLength(a2(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(a2(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 Od[n]=v,v};fc.clearLocationCache=function(){i2=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 Ud=te(b1=>{"use strict";var eu={};b1.throttle=function(r,t,n){var a=eu[r],i=Date.now();if(!a){for(var o in eu)eu[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};b1.done=function(e){var r=eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};b1.clear=function(e){if(e)fw(eu[e]),delete eu[e];else for(var r in eu)b1.clear(r)};function fw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var vw=te((Vse,cw)=>{"use strict";cw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var hw=te((Wse,Yd)=>{"use strict";Yd.exports=o2;Yd.exports.isMobile=o2;Yd.exports.default=o2;var NO=/(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,FO=/CrOS/,IO=/android|ipad|playbook|silk/i;function o2(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=NO.test(r)&&!FO.test(r)||!!e.tablet&&IO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var pw=te((Zse,dw)=>{"use strict";var HO=Ht(),BO=hw();dw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=OO(),typeof t!="string")return!0;var n=BO({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(HO(u)&&(u=+u),u>=13)return!0}}}return n};function OO(){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 mw=te((Xse,gw)=>{"use strict";var UO=kt();gw.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]=UO.select(this)}),a}});var bw=te((jse,yw)=>{"use strict";var YO=dt();yw.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=YO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var xw=te((Jse,_w)=>{"use strict";_w.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";ww.exports=function(r){for(var t=WO(r)?VO:GO,n=[],a=0;a{"use strict";Aw.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 Sw=te((Qse,kw)=>{"use strict";var ZO=Ht(),XO=Rn().BADNUM,jO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;kw.exports=function(r){return typeof r=="string"&&(r=r.replace(jO,"")),ZO(r)?Number(r):XO}});var dr=te((eue,Bw)=>{"use strict";var _1=kt(),JO=S0().utcFormat,$O=Dy().format,Pw=Ht(),Rw=Rn(),zw=Rw.FP_SAFE,KO=-zw,Cw=Rw.BADNUM,Pe=Bw.exports={};Pe.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 Lw={};Pe.warnBadFormat=function(e){var r=String(e);Lw[r]||(Lw[r]=1,Pe.warn('encountered bad format: "'+r+'"'))};Pe.noFormat=function(e){return String(e)};Pe.numberFormat=function(e){var r;try{r=$O(Pe.adjustFormat(e))}catch(t){return Pe.warnBadFormat(e),Pe.noFormat}return r};Pe.nestedProperty=a1();Pe.keyedContainer=_6();Pe.relativeAttr=w6();Pe.isPlainObject=Js();Pe.toLogRange=_d();Pe.relinkPrivateKeys=k6();var Wu=ji();Pe.isArrayBuffer=Wu.isArrayBuffer;Pe.isTypedArray=Wu.isTypedArray;Pe.isArrayOrTypedArray=Wu.isArrayOrTypedArray;Pe.isArray1D=Wu.isArray1D;Pe.ensureArray=Wu.ensureArray;Pe.concat=Wu.concat;Pe.maxRowLength=Wu.maxRowLength;Pe.minRowLength=Wu.minRowLength;var Nw=L0();Pe.mod=Nw.mod;Pe.modHalf=Nw.modHalf;var Zu=V6();Pe.valObjectMeta=Zu.valObjectMeta;Pe.coerce=Zu.coerce;Pe.coerce2=Zu.coerce2;Pe.coerceFont=Zu.coerceFont;Pe.coercePattern=Zu.coercePattern;Pe.coerceHoverinfo=Zu.coerceHoverinfo;Pe.coerceSelectionMarkerOpacity=Zu.coerceSelectionMarkerOpacity;Pe.validate=Zu.validate;var Ji=$7();Pe.dateTime2ms=Ji.dateTime2ms;Pe.isDateTime=Ji.isDateTime;Pe.ms2DateTime=Ji.ms2DateTime;Pe.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Pe.cleanDate=Ji.cleanDate;Pe.isJSDate=Ji.isJSDate;Pe.formatDate=Ji.formatDate;Pe.incrementMonth=Ji.incrementMonth;Pe.dateTick0=Ji.dateTick0;Pe.dfltRange=Ji.dfltRange;Pe.findExactDates=Ji.findExactDates;Pe.MIN_MS=Ji.MIN_MS;Pe.MAX_MS=Ji.MAX_MS;var cc=e2();Pe.findBin=cc.findBin;Pe.sorterAsc=cc.sorterAsc;Pe.sorterDes=cc.sorterDes;Pe.distinctVals=cc.distinctVals;Pe.roundUp=cc.roundUp;Pe.sort=cc.sort;Pe.findIndexOfMin=cc.findIndexOfMin;Pe.sortObjectKeys=Hd();var ru=ew();Pe.aggNums=ru.aggNums;Pe.len=ru.len;Pe.mean=ru.mean;Pe.geometricMean=ru.geometricMean;Pe.median=ru.median;Pe.midRange=ru.midRange;Pe.variance=ru.variance;Pe.stdev=ru.stdev;Pe.interp=ru.interp;var gl=Cd();Pe.init2dArray=gl.init2dArray;Pe.transposeRagged=gl.transposeRagged;Pe.dot=gl.dot;Pe.translationMatrix=gl.translationMatrix;Pe.rotationMatrix=gl.rotationMatrix;Pe.rotationXYMatrix=gl.rotationXYMatrix;Pe.apply3DTransform=gl.apply3DTransform;Pe.apply2DTransform=gl.apply2DTransform;Pe.apply2DTransform2=gl.apply2DTransform2;Pe.convertCssMatrix=gl.convertCssMatrix;Pe.inverseTransformMatrix=gl.inverseTransformMatrix;var rs=iw();Pe.deg2rad=rs.deg2rad;Pe.rad2deg=rs.rad2deg;Pe.angleDelta=rs.angleDelta;Pe.angleDist=rs.angleDist;Pe.isFullCircle=rs.isFullCircle;Pe.isAngleInsideSector=rs.isAngleInsideSector;Pe.isPtInsideSector=rs.isPtInsideSector;Pe.pathArc=rs.pathArc;Pe.pathSector=rs.pathSector;Pe.pathAnnulus=rs.pathAnnulus;var O0=ow();Pe.isLeftAnchor=O0.isLeftAnchor;Pe.isCenterAnchor=O0.isCenterAnchor;Pe.isRightAnchor=O0.isRightAnchor;Pe.isTopAnchor=O0.isTopAnchor;Pe.isMiddleAnchor=O0.isMiddleAnchor;Pe.isBottomAnchor=O0.isBottomAnchor;var U0=uw();Pe.segmentsIntersect=U0.segmentsIntersect;Pe.segmentDistance=U0.segmentDistance;Pe.getTextLocation=U0.getTextLocation;Pe.clearLocationCache=U0.clearLocationCache;Pe.getVisibleSegment=U0.getVisibleSegment;Pe.findPointOnPath=U0.findPointOnPath;var Wd=ua();Pe.extendFlat=Wd.extendFlat;Pe.extendDeep=Wd.extendDeep;Pe.extendDeepAll=Wd.extendDeepAll;Pe.extendDeepNoArrays=Wd.extendDeepNoArrays;var l2=Bu();Pe.log=l2.log;Pe.warn=l2.warn;Pe.error=l2.error;var QO=D0();Pe.counterRegex=QO.counter;var s2=Ud();Pe.throttle=s2.throttle;Pe.throttleDone=s2.done;Pe.clearThrottle=s2.clear;var ml=h1();Pe.getGraphDiv=ml.getGraphDiv;Pe.isPlotDiv=ml.isPlotDiv;Pe.removeElement=ml.removeElement;Pe.addStyleRule=ml.addStyleRule;Pe.addRelatedStyleRule=ml.addRelatedStyleRule;Pe.deleteRelatedStyleRule=ml.deleteRelatedStyleRule;Pe.setStyleOnHover=ml.setStyleOnHover;Pe.getFullTransformMatrix=ml.getFullTransformMatrix;Pe.getElementTransformMatrix=ml.getElementTransformMatrix;Pe.getElementAndAncestors=ml.getElementAndAncestors;Pe.equalDomRects=ml.equalDomRects;Pe.clearResponsive=vw();Pe.preserveDrawingBuffer=pw();Pe.makeTraceGroups=mw();Pe._=bw();Pe.notifier=Uy();Pe.filterUnique=xw();Pe.filterVisible=Mw();Pe.pushUnique=Vy();Pe.increment=Tw();Pe.cleanNumber=Sw();Pe.ensureNumber=function(r){return Pw(r)?(r=Number(r),r>zw||r=r?!1:Pw(e)&&e>=0&&e%1===0};Pe.noop=Sd();Pe.identity=Id();Pe.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))};Pe.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};Pe.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?(Pe.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Pe.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};Pe.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};Pe.syncOrAsync=function(e,r,t){var n,a;function i(){return Pe.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)};Pe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Pe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Pe.fillArray=function(e,r,t,n){if(n=n||Pe.identity,Pe.isArrayOrTypedArray(e))for(var a=0;atU.test(window.navigator.userAgent);var nU=/Firefox\/(\d+)\.\d+/;Pe.getFirefoxVersion=function(){var e=nU.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Pe.isD3Selection=function(e){return e instanceof _1.selection};Pe.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};Pe.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};Pe.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};Pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Hw=/^\w*$/;Pe.templateString=function(e,r){var t={};return e.replace(Pe.TEMPLATE_STRING_REGEX,function(n,a){var i;return Hw.test(a)?i=r[a]:(t[a]=t[a]||Pe.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var oU={max:10,count:0,name:"hovertemplate"};Pe.hovertemplateString=e=>u2(fd(tc({},e),{opts:oU}));var lU={max:10,count:0,name:"texttemplate"};Pe.texttemplateString=e=>u2(fd(tc({},e),{opts:lU}));var sU=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function uU(e){var r=e.match(sU);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var fU={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Pe.texttemplateStringForShapes=e=>u2(fd(tc({},e),{opts:fU}));var qw=/^[:|\|]/;function u2({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:i}){return i.replace(Pe.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=uU(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(Hw.test(l)||(_=Pe.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=Vd&&o<=Dw,u=l>=Vd&&l<=Dw;if(s&&(n=10*n+o-Vd),u&&(a=10*a+l-Vd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var B0=2e9;Pe.seedPseudoRandom=function(){B0=2e9};Pe.pseudoRandom=function(){var e=B0;return B0=(69069*B0+1)%4294967296,Math.abs(B0-e)<429496729?Pe.pseudoRandom():B0/4294967296};Pe.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Pe.extractOption(e,r,"htx","hovertext");if(Pe.isValidTextValue(a))return n(a);var i=Pe.extractOption(e,r,"tx","text");if(Pe.isValidTextValue(i))return n(i)};Pe.isValidTextValue=function(e){return e||e===0};Pe.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,Pe.strTranslate(a-u*(t+o),i-u*(n+l))+Pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Pe.setTransormAndDisplay=function(e,r){e.attr("transform",Pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Pe.ensureUniformFontSize=function(e,r){var t=Pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Pe.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)};Pe.bigFont=function(e){return Math.round(1.2*e)};var Ew=Pe.getFirefoxVersion(),cU=Ew!==null&&Ew<86;Pe.getPositionFromD3Event=function(){return cU?[_1.event.layerX,_1.event.layerY]:[_1.event.offsetX,_1.event.offsetY]}});var Yw=te(()=>{"use strict";var vU=dr(),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(f2 in Ow)Uw=f2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),vU.addStyleRule(Uw,Ow[f2]);var Uw,f2});var c2=te((aue,Gw)=>{Gw.exports=!0});var h2=te((iue,Vw)=>{"use strict";var hU=c2(),v2;typeof window.matchMedia=="function"?v2=!window.matchMedia("(hover: none)").matches:v2=hU;Vw.exports=v2});var jd=te((oue,d2)=>{"use strict";var Y0=typeof Reflect=="object"?Reflect:null,Ww=Y0&&typeof Y0.apply=="function"?Y0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Zd;Y0&&typeof Y0.ownKeys=="function"?Zd=Y0.ownKeys:Object.getOwnPropertySymbols?Zd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Zd=function(r){return Object.getOwnPropertyNames(r)};function dU(e){console&&console.warn&&console.warn(e)}var Xw=Number.isNaN||function(r){return r!==r};function Sn(){Sn.init.call(this)}d2.exports=Sn;d2.exports.once=yU;Sn.EventEmitter=Sn;Sn.prototype._events=void 0;Sn.prototype._eventsCount=0;Sn.prototype._maxListeners=void 0;var Zw=10;function Xd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Sn,"defaultMaxListeners",{enumerable:!0,get:function(){return Zw},set:function(e){if(typeof e!="number"||e<0||Xw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Zw=e}});Sn.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};Sn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Xw(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?Sn.defaultMaxListeners:e._maxListeners}Sn.prototype.getMaxListeners=function(){return jw(this)};Sn.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")Ww(s,this,t);else for(var u=s.length,f=e9(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,dU(l)}return e}Sn.prototype.addListener=function(r,t){return Jw(this,r,t,!1)};Sn.prototype.on=Sn.prototype.addListener;Sn.prototype.prependListener=function(r,t){return Jw(this,r,t,!0)};function pU(){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 $w(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=pU.bind(n);return a.listener=t,n.wrapFn=a,a}Sn.prototype.once=function(r,t){return Xd(t),this.on(r,$w(this,r,t)),this};Sn.prototype.prependOnceListener=function(r,t){return Xd(t),this.prependListener(r,$w(this,r,t)),this};Sn.prototype.removeListener=function(r,t){var n,a,i,o,l;if(Xd(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():gU(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Sn.prototype.off=Sn.prototype.removeListener;Sn.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 Kw(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?mU(a):e9(a,a.length)}Sn.prototype.listeners=function(r){return Kw(this,r,!0)};Sn.prototype.rawListeners=function(r){return Kw(this,r,!1)};Sn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Qw.call(e,r)};Sn.prototype.listenerCount=Qw;function Qw(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}Sn.prototype.eventNames=function(){return this._eventsCount>0?Zd(this._events):[]};function e9(e,r){for(var t=new Array(r),n=0;n{"use strict";var p2=jd().EventEmitter,_U={init:function(e){if(e._ev instanceof p2)return e;var r=new p2,t=new p2;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 n9=dr(),xU=oc().dfltConfig;function wU(e,r){for(var t=[],n,a=0;axU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};tu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};tu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};tu.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";o9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var W0=te(fa=>{"use strict";var Mo=dt(),w1=dr(),$d=_o(),m2=z0(),MU=g2(),AU=d1(),TU=oc().configAttributes,l9=xo(),yl=w1.extendDeepAll,G0=w1.isPlainObject,kU=w1.isArrayOrTypedArray,Kd=w1.nestedProperty,SU=w1.valObjectMeta,y2="_isSubplotObj",Qd="_isLinkedToArray",CU="_arrayAttrRegexps",u9="_deprecated",b2=[y2,Qd,CU,u9];fa.IS_SUBPLOT_OBJ=y2;fa.IS_LINKED_TO_ARRAY=Qd;fa.DEPRECATED=u9;fa.UNDERSCORE_ATTRS=b2;fa.get=function(){var e={};return Mo.allTypes.forEach(function(r){e[r]=qU(r)}),{defs:{valObjects:SU,metaKeys:b2.concat(["description","role","editType","impliedEdits"]),editType:{traces:l9.traces,layout:l9.layout},impliedEdits:{}},traces:e,layout:DU(),frames:EU(),animation:V0(AU),config:V0(TU)}};fa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(b2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!fa.isValObject(o)&&G0(o)&&i!=="impliedEdits"&&fa.crawl(o,r,a+1,l)}})};fa.isValObject=function(e){return e&&e.valType!==void 0};fa.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)kU(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(!Jd(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Jd(e){return e===Math.round(e)&&e>=0}function qU(e){var r,t;r=Mo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=yl({},$d),i=yl({},r.attributes);fa.crawl(i,function(s,u,f,v,h){Kd(a,h).set(void 0),s===void 0&&Kd(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:V0(n)};if(r.layoutAttributes){var l={};yl(l,r.layoutAttributes),o.layoutAttributes=V0(l)}return r.animatable||fa.crawl(o,function(s){fa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function DU(){var e={},r,t;yl(e,m2);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 Z0=dr(),FU=_o(),Xu="templateitemname",_2={name:{valType:"string",editType:"none"}};_2[Xu]={valType:"string",editType:"calc"};vc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=_2.name,r[Xu]=_2[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=Z0.coerce(i,{},FU,"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]);Z0.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[v9(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(!c9(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?Z0.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)Z0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var ya=te((vue,h9)=>{"use strict";var M1=D0().counter;h9.exports={idRegex:{x:M1("x","( domain)?"),y:M1("y","( domain)?")},attrRegex:M1("[xy]axis"),xAxisMatch:M1("xaxis"),yAxisMatch:M1("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=te(Pi=>{"use strict";var IU=dt(),x2=ya();Pi.id2name=function(r){if(!(typeof r!="string"||!r.match(x2.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Pi.name2id=function(r){if(r.match(x2.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Pi.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(x2.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":"")}};Pi.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Pi.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Pi.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function d9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function HU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function BU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}p9.exports={clearOutlineControllers:HU,clearOutline:BU}});var ep=te((pue,g9)=>{"use strict";g9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var A1=te(tp=>{"use strict";var rp=dt(),gue=ya().SUBPLOT_PATTERN;tp.getSubplotCalcData=function(e,r,t){var n=rp.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var OU=dt(),X0=dr();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){m9(e,o,a.cache),a.check=function(){if(i){var f=m9(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;X0.isPlainObject(i)?w2(i,r,o,n+1):r(o,a,i)}})}});var va=te((bue,R9)=>{"use strict";var S9=kt(),YU=S0().timeFormatLocale,GU=Dy().formatLocale,T1=Ht(),VU=Ey(),Zt=dt(),C9=W0(),WU=_n(),Zr=dr(),L9=Et(),x9=Rn().BADNUM,Ri=ca(),ZU=ju().clearOutline,XU=ep(),M2=d1(),jU=g2(),JU=A1().getModuleCalcData,w9=Zr.relinkPrivateKeys,dc=Zr._,Pr=R9.exports={};Zr.extendFlat(Pr,Zt);Pr.attributes=_o();Pr.attributes.type.values=Pr.allTypes;Pr.fontAttrs=Ka();Pr.layoutAttributes=z0();var ap=_9();Pr.executeAPICommand=ap.executeAPICommand;Pr.computeAPICommandBindings=ap.computeAPICommandBindings;Pr.manageCommandObserver=ap.manageCommandObserver;Pr.hasSimpleAPICommandBindings=ap.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:L9.defaultLine,"pointer-events":"all"}).each(function(){var u=S9.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&&$U(e,i),o.text(i.text()&&l.text()?" - ":"")}};function $U(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=S9.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 KU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],QU=["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=M9(e,KU);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=tY(h,a.separators),a._extraFormat=M9(e,QU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=rY(),b=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=eY(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 Z=!!(n._has&&n._has("cartesian")),H=!!(a._has&&a._has("cartesian")),V=Z,U=H;V&&!U?n._bgLayer.remove():U&&!V&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&ZU({_fullLayout:n}),nY(l,a),w9(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 iY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ri.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={}),q9(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"&&T1(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||{},Z=N.val,H=N.size,V=I.val,U=I.size,ee=t-o.r-o.l,ie=n-o.t-o.b;for(var re in h){if(T1(H)&&h[re].r){var K=h[re].r.val,se=h[re].r.size;if(K>Z){var ce=(H*K+(se-ee)*Z)/(K-Z),Se=(se*(1-Z)+(H-ee)*(1-K))/(K-Z);ce+Se>s+u&&(s=ce,u=Se)}}if(T1(U)&&h[re].t){var Fe=h[re].t.val,He=h[re].t.size;if(Fe>V){var Xe=(U*Fe+(He-ie)*V)/(Fe-V),Le=(He*(1-V)+(U-ie)*(1-Fe))/(Fe-V);Xe+Le>v+f&&(v=Xe,f=Le)}}}}}var Qe=Zr.constrain(t-i.l-i.r,D9,m),fe=Zr.constrain(n-i.t-i.b,E9,p),me=Math.max(0,t-Qe),Ce=Math.max(0,n-fe);if(me){var pe=(s+u)/me;pe>1&&(s/=pe,u/=pe)}if(Ce){var G=(v+f)/Ce;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)||iY(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)?VU.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=Ri.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:x9,y:x9}]),b[0].t||(b[0].t={}),b[0].trace=i,u[C]=b}}for(T9(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 Ia=te((xue,z9)=>{"use strict";z9.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 Qa=te(Ao=>{"use strict";var na=kt(),nu=dr(),uY=nu.strTranslate,A2=gc(),fY=Ia().LINE_SPACING,cY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ao.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(cY),i=na.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=AY(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};pY(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]+")"+uY(-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 vY=/(<|<|<)/g,hY=/(>|>|>)/g;function dY(e){return e.replace(vY,"\\lt ").replace(hY,"\\gt ")}var N9=[["$","$"],["\\(","\\)"]];function pY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){nu.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=nu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:N9},displayAlign:"left"})},u=function(){i=nu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=N9},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-"+nu.randstr({},64);l=na.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(dY(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)nu.log("There was an error in the tex syntax.",e),t();else{var b=x.getBoundingClientRect(),A;n===2?A=na.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 B9={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"},gY={sub:"0.3em",sup:"-0.6em"},mY={sub:"-0.21em",sup:"0.42em"},F9="\u200B",I9=["http:","https:","mailto:","",void 0,":"],O9=Ao.NEWLINES=/(\r\n?|\n)/g,k2=/(<[^<>]*>)/,S2=/<(\/?)([^ >]*)(\s+(.*))?>/i,yY=//i;Ao.BR_TAG_ALL=//gi;var U9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Y9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,G9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,bY=/(^|[\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&&ip(n)}var _Y=/(^|;)\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(k2),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 xY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},wY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function ip(e){return e.replace(wY,function(r,t){var n;return t.charAt(0)==="#"?n=MY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=xY[t],n||r})}Ao.convertEntities=ip;function MY(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 AY(e,r){r=r.replace(O9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(A2.svg,"tspan");na.select(k).attr({class:"line",dy:i*fY+"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&&nu.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=yY.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(k2),h=0;h{"use strict";var TY=kt(),lp=Ql(),S1=Ht(),op=dr(),W9=Et(),kY=ac().isValid;function SY(e,r,t){var n=r?op.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(op.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function K9(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 e8=jy(),LY=e8.FORMAT_LINK,qY=e8.DATE_FORMAT_LINK;function DY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?C2:r8)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function C2(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: "+LY+"."].join(" ")}function r8(e,r){return C2(e,r)+[" And for dates see: "+qY+".","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(" ")}t8.exports={axisHoverFormat:DY,descriptionOnlyNumbers:C2,descriptionWithDates:r8}});var bl=te((kue,b8)=>{"use strict";var n8=Ka(),j0=dl(),y8=es().dash,D2=ua().extendFlat,a8=_n().templatedArray,Tue=lc().templateFormatStringDescription,i8=L2().descriptionWithDates,EY=Rn().ONEDAY,ns=ya(),PY=ns.HOUR_PATTERN,RY=ns.WEEKDAY_PATTERN,q2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},zY=D2({},q2,{values:q2.values.slice().concat(["sync"])});function o8(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var l8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},s8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},u8={valType:"data_array",editType:"ticks"},f8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function c8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function v8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var h8={valType:"color",dflt:j0.defaultLine,editType:"ticks"},d8={valType:"color",dflt:j0.lightLine,editType:"ticks"};function p8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var g8=D2({},y8,{editType:"ticks"}),m8={valType:"boolean",editType:"ticks"};b8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:j0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:n8({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:[ns.idRegex.x.toString(),ns.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:[ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"calc"},rangebreaks:a8("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:[RY,PY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:EY},editType:"calc"}),tickmode:zY,nticks:o8(),tick0:l8,dtick:s8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:u8,ticktext:{valType:"data_array",editType:"ticks"},ticks:f8,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:c8(),tickwidth:v8(),tickcolor:h8,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:D2({},y8,{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:n8({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:i8("tick label")},tickformatstops:a8("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:i8("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:j0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:m8,gridcolor:d8,gridwidth:p8(),griddash:g8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:j0.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:j0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"plot"},minor:{tickmode:q2,nticks:o8("minor"),tick0:l8,dtick:s8,tickvals:u8,ticks:f8,ticklen:c8("minor"),tickwidth:v8("minor"),tickcolor:h8,gridcolor:d8,gridwidth:p8("minor"),griddash:g8,showgrid:m8,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 sp=te((Sue,w8)=>{"use strict";var Cn=bl(),_8=Ka(),x8=ua().extendFlat,NY=xo().overrideAll;w8.exports=NY({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:Cn.linecolor,outlinewidth:Cn.linewidth,bordercolor:Cn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Cn.minor.tickmode,nticks:Cn.nticks,tick0:Cn.tick0,dtick:Cn.dtick,tickvals:Cn.tickvals,ticktext:Cn.ticktext,ticks:x8({},Cn.ticks,{dflt:""}),ticklabeloverflow:x8({},Cn.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:Cn.ticklen,tickwidth:Cn.tickwidth,tickcolor:Cn.tickcolor,ticklabelstep:Cn.ticklabelstep,showticklabels:Cn.showticklabels,labelalias:Cn.labelalias,tickfont:_8({}),tickangle:Cn.tickangle,tickformat:Cn.tickformat,tickformatstops:Cn.tickformatstops,tickprefix:Cn.tickprefix,showtickprefix:Cn.showtickprefix,ticksuffix:Cn.ticksuffix,showticksuffix:Cn.showticksuffix,separatethousands:Cn.separatethousands,exponentformat:Cn.exponentformat,minexponent:Cn.minexponent,showexponent:Cn.showexponent,title:{text:{valType:"string"},font:_8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var J0=te((Lue,A8)=>{"use strict";var FY=sp(),IY=D0().counter,HY=Hd(),M8=ac().scales,Cue=HY(M8);function up(e){return"`"+e+"`"}A8.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"?M8[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 "+up(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",_=up(u+d),C=up(u+m),x=up(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=FY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:IY("coloraxis"),dflt:null,editType:"calc"}),M}});var P2=te((que,T8)=>{"use strict";var BY=ua().extendFlat,OY=J0(),E2=ac().scales;T8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:E2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:E2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:E2.RdBu,editType:"calc"}},coloraxis:BY({_isSubplotObj:!0,editType:"calc"},OY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var R2=te((Due,k8)=>{"use strict";var UY=dr();k8.exports=function(r){return UY.isPlainObject(r.colorbar)}});var F2=te(N2=>{"use strict";var z2=Ht(),S8=dr(),C8=Rn(),YY=C8.ONEDAY,GY=C8.ONEWEEK;N2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?YY:1;if(!e)return i;if(z2(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=z2(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};N2.tick0=function(e,r,t,n){if(r==="date")return S8.cleanDate(e,S8.dateTick0(t,n%GY===0?1:0));if(!(n==="D1"||n==="D2"))return z2(e)?Number(e):0}});var I2=te((Pue,q8)=>{"use strict";var L8=F2(),VY=dr().isArrayOrTypedArray,WY=ji().isTypedArraySpec,ZY=ji().decodeTypedArraySpec;q8.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 WY(x)&&(x=ZY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=VY(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=L8.dtick(h,a);s.tick0=L8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var _=n(u+"tickvals");_===void 0?s.tickmode="auto":o||n("ticktext")}}});var B2=te((Rue,E8)=>{"use strict";var H2=dr(),D8=bl();E8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?D8.minor:D8,u=i?"minor.":"",f=H2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=H2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=H2.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 O2=te((zue,P8)=>{"use strict";P8.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((Nue,R8)=>{"use strict";var fp=dr(),XY=_n();R8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=fp.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=XY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var U2=dr(),jY=Et().contrast,z8=bl(),JY=O2(),$Y=_l();N8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");U2.isPlainObject(o)||delete t.labelalias;var l=JY(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?jY(i.bgColor):f&&f!==z8.color.dflt?f:u.color;if(U2.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");$Y(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:KY}),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 KY(e,r){function t(a,i){return U2.coerce(e,r,z8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var G2=te((Iue,F8)=>{"use strict";var QY=O2();F8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=QY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var V2=te((Hue,I8)=>{"use strict";var Ju=dr(),eG=_n(),rG=I2(),tG=B2(),nG=Y2(),aG=G2(),iG=sp();I8.exports=function(r,t,n){var a=eG.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,Z){return Ju.coerce(i,a,iG,I,Z)}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"),rG(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"),aG(i,a,o,"linear",D),nG(i,a,o,"linear",D),tG(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 $0=te((Bue,O8)=>{"use strict";var H8=Ht(),Z2=dr(),oG=R2(),lG=V2(),B8=ac().isValid,sG=dt().traceIs;function W2(e,r){var t=r.slice(0,r.length-1);return r?Z2.nestedProperty(e,t).get()||{}:e}O8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=W2(r,o),f=W2(t,o),v=W2(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=sG(t,"contour")&&Z2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,Z2.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=H8(_)&&H8(C)&&_{"use strict";var U8=dr(),uG=_n(),Y8=P2(),fG=$0();G8.exports=function(r,t){function n(v,h){return U8.coerce(r,t,Y8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return U8.coerce(i,o,Y8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=uG.newContainer(t,s,"coloraxis"),o._name=s,fG(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var cG=dr(),vG=ts().hasColorscale,hG=ts().extractOpts;W8.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?cG.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=hG(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 X8=Ht(),X2=dr(),dG=ts().extractOpts;j8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?X2.nestedProperty(t,o).get():t,s=dG(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return X2.aggNums(Math.min,null,i)},m=function(){return X2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&X8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&X8(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 hp=te((Gue,J8)=>{"use strict";var vp=ac(),K0=ts();J8.exports={moduleType:"component",name:"colorscale",attributes:J0(),layoutAttributes:P2(),supplyLayoutDefaults:V8(),handleDefaults:$0(),crossTraceDefaults:Z8(),calc:cp(),scales:vp.scales,defaultScale:vp.defaultScale,getScale:vp.get,isValidScale:vp.isValid,hasColorscale:K0.hasColorscale,extractOpts:K0.extractOpts,extractScale:K0.extractScale,flipScale:K0.flipScale,makeColorScaleFunc:K0.makeColorScaleFunc,makeColorScaleFuncFromTrace:K0.makeColorScaleFuncFromTrace}});var ei=te((Vue,K8)=>{"use strict";var $8=dr(),pG=ji().isTypedArraySpec;K8.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 $8.isPlainObject(r)&&($8.isArrayOrTypedArray(r.size)||pG(r.size))}}});var eM=te((Wue,Q8)=>{"use strict";var gG=Ht();Q8.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 gG(s)&&s>0?Math.max(s,i):0}}});var $u=te(Ha=>{"use strict";var dp=dr();Ha.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ha.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{nM.exports=xG;var j2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_G=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function xG(e){var r=[];return e.replace(_G,function(t,n,a){var i=n.toLowerCase();for(a=MG(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 AG=J2(),Cr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",aM=Math.sqrt(2),Ku=Math.sqrt(3),$2=Math.PI,K2=Math.cos,Q2=Math.sin;uM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=Cr(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=Cr(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=Cr(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=Cr(e*.4,2),a=Cr(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=Cr(e*.8/aM,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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.951,2),a=Cr(e*.588,2),i=Cr(-e,2),o=Cr(e*-.309,2),l=Cr(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=Cr(e,2),a=Cr(e/2,2),i=Cr(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=Cr(e,2),a=Cr(e/2,2),i=Cr(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=Cr(e*.924,2),a=Cr(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=Cr(n*.225,2),i=Cr(n*.951,2),o=Cr(n*.363,2),l=Cr(n*.588,2),s=Cr(-n,2),u=Cr(n*-.309,2),f=Cr(n*.118,2),v=Cr(n*.809,2),h=Cr(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=Cr(e*.66,2),a=Cr(e*.38,2),i=Cr(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=Cr(e*Ku*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(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=Cr(e*Ku*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(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=Cr(e*1.1,2),a=Cr(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=Cr(e*1.4,2),a=Cr(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=Cr(e*.7,2),a=Cr(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=Cr(e*1.4,2),a=Cr(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=Cr(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=Cr(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=Cr(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=Cr(e,2),a=Cr(e/aM,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=Cr(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=Cr(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=Cr(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=Cr(e*1.3,2),a=Cr(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=Cr(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=Cr(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=Cr(e*1.2,2),a=Cr(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=Cr(e/2,2),a=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(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=Cr(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=Cr(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=Cr(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=Cr(e,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e*2,2),a=Cr(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=$2/2.5,a=2*e*K2(n),i=2*e*Q2(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=$2/4,a=2*e*K2(n),i=2*e*Q2(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 iM,oM,lM,sM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(lM===e&&sM===r&&iM===t)return oM;lM=e,sM=r,iM=t;function n(y,_){var C=K2(y),x=Q2(y),b=_[0],A=_[1]+(r||0);return[b*C-A*x,b*x+A*C]}for(var a=e/180*$2,i=0,o=0,l=AG(t),s="",u=0;u{"use strict";var ba=kt(),un=dr(),TG=un.numberFormat,xc=Ht(),i3=Ql(),gp=dt(),Ea=Et(),kG=hp(),L1=un.strTranslate,mp=Qa(),SG=gc(),CG=Ia(),LG=CG.LINE_SPACING,_M=Td().DESELECTDIM,qG=ei(),DG=eM(),EG=$u().appendArrayPointValue,Rr=qM.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(Ea.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",e3(RG(f))),s&&e.style("text-shadow",s==="auto"?mp.makeTextShadow(Ea.contrast(i)):e3(s)),u&&e.style("text-decoration-line",e3(zG(u)))};function e3(e){return e==="none"?void 0:e}var PG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function RG(e){return PG[e]}function zG(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",L1(a,i));else return!1;return!0};Rr.translatePoints=function(e,r,t){e.each(function(n){var a=ba.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=gp.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Rr.hideOutsideRangePoint(u,ba.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||"";Ea.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||"";ba.select(this).call(Ea.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 xM(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(AM,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(Ea.fill,r.fillcolor)}Rr.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};xM(e,a,r,!1)};Rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&xM(a,n[0].trace,r,t)})};var cM=fM();Rr.symbolNames=[];Rr.symbolFuncs=[];Rr.symbolBackOffs=[];Rr.symbolNeedLines={};Rr.symbolNoDot={};Rr.symbolNoFill={};Rr.symbolList=[];Object.keys(cM).forEach(function(e){var r=cM[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 NG=Rr.symbolNames.length,FG="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>=NG||e>=400?0:Math.floor(Math.max(e,0))};function wM(e,r,t,n){var a=e%100;return Rr.symbolFuncs[a](r,t,n)+(e>=200?FG:"")}var vM=TG("~f"),MM={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=MM[n];return AM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function AM(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=s3(e,t),v=l3(e,t);r.attr("d",wM(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):un.isArrayOrTypedArray(l.color)?m=Ea.defaultLine:m=l.color,un.isArrayOrTypedArray(o.color)&&(d=Ea.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(Ea.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,un.isArrayOrTypedArray(x)&&(x=x[0],MM[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),Z=A(b.bgcolor,e.i,null),H=b.fgopacity,V=A(b.size,e.i,8),U=A(b.solidity,e.i,.3);R=R||e.mcc||un.isArrayOrTypedArray(b.shape)||un.isArrayOrTypedArray(b.path)||un.isArrayOrTypedArray(b.bgcolor)||un.isArrayOrTypedArray(b.fgcolor)||un.isArrayOrTypedArray(b.size)||un.isArrayOrTypedArray(b.solidity);var ee=t.uid;R&&(ee+="-"+e.i),Rr.pattern(r,"point",a,ee,k,V,U,e.mcc,b.fillmode,Z,I,H)}else un.isArrayOrTypedArray(d)?Ea.fill(r,d[e.i]):Ea.fill(r,d);p&&Ea.stroke(r,m)}};Rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Rr.tryColorscale(t,""),r.lineScale=Rr.tryColorscale(t,"line"),gp.traceIs(e,"symbols")&&(r.ms2mrc=qG.isBubble(e)?DG(e):function(){return(t.size||6)/2}),e.selectedpoints&&un.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;(un.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:_M*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 gp.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:Ea.addOpacity(v,_M))},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){Ea.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",wM(Rr.symbolNumber(l),s,s3(o,r),l3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.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=ba.select(this),u=i?un.extractOption(l,r,"txt","texttemplate"):un.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={};EG(h,r,l.i),u=un.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:v,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=kM(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(mp.convertToTspans,t).call(TM,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=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=kM(n,r);Ea.fill(a,i);var s=gp.traceIs(r,"bar-like");TM(a,o,l,n.mrc2||n.mrc,s)})}};var hM=.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=LM;Rr.makeTester=function(){var e=un.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(SG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=un.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 t3=0,BG=1e4;Rr.bBox=function(e,r,t){t||(t=dM(e));var n;if(t){if(n=Rr.savedBBoxes[t],n)return un.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=dM(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 un.extendFlat({},n)}}var u,f;r?u=e:(f=Rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.select(u).attr("transform",null).call(mp.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 t3>=BG&&(Rr.savedBBoxes={},t3=0),t&&(Rr.savedBBoxes[t]=d),t3++,un.extendFlat({},d)};function dM(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",o3(r,t))};function o3(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+=L1(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 OG=/\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(OG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var UG=/translate\([^)]*\)\s*$/;Rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.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(UG);r===1&&t===1?n=[]:n=[L1(o,l),"scale("+r+","+t+")",L1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function l3(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=l3;var C1=Math.atan2,yc=Math.cos,ev=Math.sin;function pM(e,r){var t=r[0],n=r[1];return[t*yc(e)-n*ev(e),t*ev(e)+n*yc(e)]}var gM,mM,yM,bM,n3,a3;function s3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||un.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=C1(h[1]-a,h[0]-n),m=C1(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=gM/180*Math.PI,x=mM/180*Math.PI,b=C-y,A=yc(x)*ev(b),k=ev(x)*yc(_)-yc(x)*ev(_)*yc(b);p=-C1(A,k)-Math.PI,gM=u,mM=f}var M=pM(d,[yc(p),0]),D=pM(m,[ev(p),0]);t=C1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!(a3===r.uid&&e.i===n3+1)&&(t=null)}if(i==="previous"&&!r._geo)if(a3===r.uid&&e.i===n3+1&&xc(n)&&xc(a)){var R=n-yM,N=a-bM,I=r.line&&r.line.shape||"",Z=I.slice(I.length-1);Z==="h"&&(N=0),Z==="v"&&(R=0),t+=C1(N,R)/Math.PI*180+90}else t=null}return yM=n,bM=a,n3=e.i,a3=r.uid,t}Rr.getMarkerAngle=s3});var q1=te(($ue,RM)=>{"use strict";var rv=kt(),YG=Ht(),GG=va(),u3=dt(),wc=dr(),DM=wc.strTranslate,yp=fn(),bp=Et(),tv=Qa(),EM=Td(),VG=Ia().OPPOSITE_SIDE,PM=/ [XY][0-9]* /,f3=1.6,c3=1.6;function WG(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,Z=t.subtitlePlaceholder,H=(a.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),U=!1,ee=1,ie=H.font,re=ie.family,K=ie.size,se=ie.color,ce=ie.weight,Se=ie.style,Fe=ie.variant,He=ie.textcase,Xe=ie.lineposition,Le=ie.shadow,Qe;i==="title.text"?Qe="titleText":i.indexOf("axis")!==-1?Qe="axisTitleText":i.indexOf("colorbar")!==-1&&(Qe="colorbarTitleText");var fe=e._context.edits[Qe];function me(lr,hr){return lr===void 0||hr===void 0?!1:lr.replace(PM," % ")===hr.replace(PM," % ")}m===""?h=0:me(m,o)&&(fe||(m=""),h=.2,p=!0),I&&(V===""?ee=0:me(V,Z)&&(fe||(V=""),ee=.2,U=!0)),t._meta?m=wc.templateString(m,t._meta):n._meta&&(m=wc.templateString(m,n._meta));var Ce=m||V||fe,pe;v||(v=wc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var G=v.selectAll("text."+r).data(Ce?[0]:[]);G.enter().append("text"),G.text(m).attr("class",r),G.exit().remove();var Q=null,$=r+"-subtitle",_e=V||fe;if(I&&(Q=v.selectAll("text."+$).data(_e?[0]:[]),Q.enter().append("text"),Q.text(V).attr("class",$),Q.exit().remove()),!Ce)return v;function De(lr,hr){wc.syncOrAsync([Ie,nr],{title:lr,subtitle:hr})}function Ie(lr){var hr=lr.title,Ke=lr.subtitle,gr;!f&&pe&&(f={}),f?(gr="",f.rotate&&(gr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(gr+=DM(0,(f.offset||0)-(pe||0)))):gr=null,hr.attr("transform",gr);function mr(Ye){if(Ye){var Ze=rv.select(Ye.node().parentNode).select("."+$);if(!Ze.empty()){var pr=Ye.node().getBBox();if(pr.height){var Tr=pr.y+pr.height+f3*K;Ze.attr("y",Tr)}}}}if(hr.style("opacity",h*bp.opacity(x)).call(yp.font,{color:bp.rgb(x),size:rv.round(C,2),family:_,weight:b,style:A,variant:k,textcase:M,shadow:R,lineposition:D}).attr(u).call(tv.convertToTspans,e,mr),Ke&&!Ke.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+f3*K:Ue.y+Ue.height+c3*K,tr=wc.extendFlat({},u,{y:Ur});Ke.attr("transform",gr),Ke.style("opacity",ee*bp.opacity(se)).call(yp.font,{color:bp.rgb(se),size:rv.round(K,2),family:re,weight:ce,style:Se,variant:Fe,textcase:He,shadow:Le,lineposition:Xe}).attr(tr).call(tv.convertToTspans,e)}return GG.previousPromises(e)}function nr(lr){var hr=lr.title,Ke=rv.select(hr.node().parentNode);if(s&&s.selection&&s.side&&m){Ke.attr("transform",null);var gr=VG[s.side],mr=s.side==="left"||s.side==="top"?-1:1,Te=YG(s.pad)?s.pad:2,Ue=yp.bBox(Ke.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 pr={left:kr.l,top:kr.t,right:n.width-kr.r,bottom:n.height-kr.b},Tr=s.maxShift||mr*(pr[s.side]-Ue[s.side]),yr=0;if(Tr<0)yr=Tr;else{var wr=s.offsetLeft||0,Hr=s.offsetTop||0;Ue.left-=wr,Ue.right-=wr,Ue.top-=Hr,Ue.bottom-=Hr,s.selection.each(function(){var Dr=yp.bBox(this);wc.bBoxIntersect(Ue,Dr,Te)&&(yr=Math.max(yr,mr*(Dr[s.side]-Ue[gr])+Te))}),yr=Math.min(Tr,yr),a._titleScoot=Math.abs(yr)}if(yr>0||Tr<0){var Sr={left:[-yr,0],right:[yr,0],top:[0,-yr],bottom:[0,yr]}[s.side];Ke.attr("transform",DM(Sr[0],Sr[1]))}}}G.call(De,Q);function ar(lr,hr){lr.text(hr).on("mouseover.opacity",function(){rv.select(this).transition().duration(EM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){rv.select(this).transition().duration(EM.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(m?G.on(".opacity",null):(ar(G,o),p=!0),G.call(tv.makeEditable,{gd:e}).on("edit",function(lr){l!==void 0?u3.call("_guiRestyle",e,i,lr,l):u3.call("_guiRelayout",e,i,lr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(lr){this.text(lr||" ").call(tv.positionText,u.x,u.y)}),I)){if(I&&!m){var Be=G.node().getBBox(),or=Be.y+Be.height+c3*K;Q.attr("y",or)}V?Q.on(".opacity",null):(ar(Q,Z),U=!0),Q.call(tv.makeEditable,{gd:e}).on("edit",function(lr){u3.call("_guiRelayout",e,"title.subtitle.text",lr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(lr){this.text(lr||" ").call(tv.positionText,Q.attr("x"),Q.attr("y"))})}return G.classed("js-placeholder",p),Q&&!Q.empty()&&Q.classed("js-placeholder",U),v}RM.exports={draw:WG,SUBTITLE_PADDING_EM:c3,SUBTITLE_PADDING_MATHJAX_EM:f3}});var Sp=te((Kue,HM)=>{"use strict";var ZG=kt(),XG=S0().utcFormat,bn=dr(),jG=bn.numberFormat,as=Ht(),Qu=bn.cleanNumber,JG=bn.ms2DateTime,zM=bn.dateTime2ms,is=bn.ensureNumber,NM=bn.isArrayOrTypedArray,ef=Rn(),_p=ef.FP_SAFE,xl=ef.BADNUM,$G=ef.LOG_CLIP,KG=ef.ONEWEEK,xp=ef.ONEDAY,wp=ef.ONEHOUR,FM=ef.ONEMIN,IM=ef.ONESEC,Mp=ca(),kp=ya(),Ap=kp.HOUR_PATTERN,Tp=kp.WEEKDAY_PATTERN;function D1(e){return Math.pow(10,e)}function v3(e){return e!=null}HM.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*$G*Math.abs(k-M))}else return xl}function o(b,A,k,M){if((M||{}).msUTC&&as(b))return+b;var D=zM(b,k||r.calendar);if(D===xl)if(as(b)){b=+b;var R=Math.floor(bn.mod(b+.05,1)*10),N=Math.round(b-R/10);D=zM(new Date(N))+R/10}else return xl;return D}function l(b,A,k){return JG(b,A,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(v3(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;NZ)R=N+1;else{R=D<(I+Z)/2?N:N+1;break}}var H=r._B[R]||0;return isFinite(H)?m(b,r._m2,H):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:is,r.l2c=r.type==="log"?D1:is,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 D1(_(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=is,r.d2p=r.r2p=function(b){return r.l2p(Qu(b))},r.p2d=r.p2r=_,r.cleanPos=is):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(Qu(b),A)},r.r2d=r.r2c=function(b){return D1(Qu(b))},r.d2c=r.r2l=Qu,r.c2d=r.l2r=is,r.c2r=i,r.l2d=D1,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return D1(_(b))},r.r2p=function(b){return r.l2p(Qu(b))},r.p2r=_,r.cleanPos=is):r.type==="date"?(r.d2r=r.r2d=bn.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 bn.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=is,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:is(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=is,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:is(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[Mp.id2name(R)];A=A.concat(N._traceIndices)}}var I=[[0,{}],[0,{}]],Z=[];for(k=0;kN[1]&&(M[R?0:1]=k),M[0]===M[1]){var I=r.l2r(A),Z=r.l2r(k);if(A!==void 0){var H=I+1;k!==void 0&&(H=Math.min(H,Z)),M[R?1:0]=H}if(k!==void 0){var V=Z+1;A!==void 0&&(V=Math.max(V,I)),M[R?0:1]=V}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var k=bn.nestedProperty(r,b).get(),M,D;if(r.type==="date"?D=bn.dfltRange(r.calendar):a==="y"?D=kp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||kp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){bn.nestedProperty(r,b).set(D);return}var R=k[0]===null,N=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=bn.cleanDate(k[0],xl,r.calendar),k[1]=bn.cleanDate(k[1],xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!bn.isDateTime(k[M],r.calendar)){r[b]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=bn.constrain(r.r2l(k[0]),bn.MIN_MS+1e3,bn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!as(k[M]))if(!(R||N)&&as(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=D;break}if(k[M]<-_p?k[M]=-_p:k[M]>_p&&(k[M]=_p),k[0]===k[1]){var Z=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=Z,k[1]+=Z}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var k=Mp.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 Z,H;if(r._rangebreaks=r.locateBreaks(Math.min(R,N),Math.max(R,N)),r._rangebreaks.length){for(Z=0;ZN&&(V=!V),V&&r._rangebreaks.reverse();var U=V?-1:1;for(r._m2=U*r._length/(Math.abs(N-R)-r._lBreaks),r._B.push(-r._m2*(I?N:R)),Z=0;ZD&&(D+=7,RD&&(D+=24,R=M&&R=M&&b=Le.min&&(SeLe.max&&(Le.max=Fe),He=!1)}He&&N.push({min:Se,max:Fe})}};for(k=0;k{"use strict";var BM=Ht(),h3=dr(),QG=Rn().BADNUM,Cp=h3.isArrayOrTypedArray,eV=h3.isDateTime,rV=h3.cleanNumber,OM=Math.round;YM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(Cp(a)&&!a.length)return"-";if(!i&&oV(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function UM(e){return Math.max(1,(e-1)/1e3)}function iV(e,r){for(var t=e.length,n=UM(t),a=0,i=0,o={},l=0;la*2}function oV(e){return Cp(e[0])&&Cp(e[1])}});var tf=te((efe,$M)=>{"use strict";var lV=kt(),ZM=Ht(),rf=dr(),Lp=Rn().FP_SAFE,sV=dt(),uV=fn(),XM=ca(),fV=XM.getFromId,cV=XM.isLinked;$M.exports={applyAutorangeOptions:JM,getAutoRange:p3,makePadFn:g3,doAutoRange:hV,findExtremes:dV,concatExtremes:b3};function p3(e,r){var t,n,a=[],i=e._fullLayout,o=g3(i,r,0),l=g3(i,r,1),s=b3(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 Z(ie,re){return Math.max(ie,l(re))}if(v===h){var H=v-1,V=v+1;if(_)if(v===0)a=[0,1];else{var U=(v>0?f:u).reduce(Z,0),ee=v/(1-Math.min(.5,U/x));a=v>0?[0,ee]:[ee,0]}else C?a=[Math.max(0,H),Math.max(1,V)]:a=[H,V]}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-GM(r,k.val,M.val))/(x-o(D)-l(R)),a=[D.val-A*o(D),R.val+A*l(R)];return a=JM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),rf.simpleMap(a,r.l2r||Number)}function GM(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-Lp&&(C=h),h>x&&h=I;v--)N(v);return{min:n,max:a,opts:t}}function m3(e,r,t,n){jM(e,r,t,n,pV)}function y3(e,r,t,n){jM(e,r,t,n,gV)}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 WM(e){return ZM(e)&&Math.abs(e)=r}function mV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&qp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&qp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function yV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&qp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&qp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function qp(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=mV(t,r),n=yV(n,r),[t,n]}});var Dn=te((tfe,_A)=>{"use strict";var To=kt(),aa=Ht(),nv=va(),P1=dt(),lt=dr(),av=lt.strTranslate,Mc=Qa(),bV=q1(),R1=Et(),$i=fn(),_V=bl(),KM=F2(),rfe=ya(),Pa=Rn(),xV=Pa.ONEMAXYEAR,Pp=Pa.ONEAVGYEAR,Rp=Pa.ONEMINYEAR,wV=Pa.ONEMAXQUARTER,M3=Pa.ONEAVGQUARTER,zp=Pa.ONEMINQUARTER,MV=Pa.ONEMAXMONTH,iv=Pa.ONEAVGMONTH,Np=Pa.ONEMINMONTH,Ki=Pa.ONEWEEK,ri=Pa.ONEDAY,nf=ri/2,ls=Pa.ONEHOUR,z1=Pa.ONEMIN,Fp=Pa.ONESEC,AV=Pa.ONEMILLI,TV=Pa.ONEMICROSEC,Ac=Pa.MINUS_SIGN,Hp=Pa.BADNUM,A3={K:"zeroline"},T3={K:"gridline",L:"path"},k3={K:"minor-gridline",L:"path"},uA={K:"tick",L:"path"},QM={K:"tick",L:"text"},eA={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Bp=Ia(),E1=Bp.MID_SHIFT,Tc=Bp.CAP_SHIFT,N1=Bp.LINE_SPACING,kV=Bp.OPPOSITE_SIDE,Ip=3,_r=_A.exports={};_r.setConvert=Sp();var SV=d3(),ss=ca(),CV=ss.idSort,LV=ss.isLinked;_r.id2name=ss.id2name;_r.name2id=ss.name2id;_r.cleanId=ss.cleanId;_r.list=ss.list;_r.listIds=ss.listIds;_r.getFromId=ss.getFromId;_r.getFromTrace=ss.getFromTrace;var fA=tf();_r.getAutoRange=fA.getAutoRange;_r.findExtremes=fA.findExtremes;var qV=1e-4;function q3(e){var r=(e[1]-e[0])*qV;return[e[0]-r,e[1]+r]}_r.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)};_r.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))};_r.saveRangeInitial=function(e,r){for(var t=_r.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=_r.tickIncrement(e,"M6","reverse")+ri*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+ri*15.5:e-=nf;var s=_r.tickIncrement(e,t);if(s<=n)return s}return e}_r.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&aa(r._tmin),a;if(n){var i=_r.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,_r.prepTicks(e,t),n){var l=aa(r.dtick),s=aa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?_3(u,f)?u===2*Ki&&f===2*ri&&(e.dtick=Ki):u===2*Ki&&f===3*ri?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ri:nA(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":_3(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"?_3(u,f)||(e.dtick=nA(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function _3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function nA(e,r){return Math.abs(e/r-1)<.001}_r.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,_r.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>=Rp?u>=Rp&&u<=xV?v=u:v=Pp:t===M3&&f>=zp?u>=zp&&u<=wV?v=u:v=M3:f>=Np?u>=Np&&u<=MV?v=u:v=iv:t===Ki&&f>=Ki?v=Ki:f>=ri?v=ri:t===nf&&f>=nf?v=nf:t===ls&&f>=ls&&(v=ls);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)}}_r.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]=(x?0:1);b--){var A=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:lt.extendFlat({},r,r.minor);if(A?_r.prepMinorTicks(k,r,t):_r.prepTicks(k,t),k.tickmode==="array"){b?(y=[],m=aA(r,!A)):(_=[],p=aA(r,!A));continue}if(k.tickmode==="sync"){y=[],m=NV(r);continue}var M=q3(u),D=M[0],R=M[1],N=aa(k.dtick),I=n==="log"&&!(N||k.dtick.charAt(0)==="L"),Z=_r.tickFirst(k,t);if(b){if(r._tmin=Z,Z=R:V<=R;V=_r.tickIncrement(V,ie,f,a)){if(b&&U++,k.rangebreaks&&!f){if(V=h)break}if(y.length>d||V===H)break;H=V;var re={value:V};b?(I&&V!==(V|0)&&(re.simpleLabel=!0),i>1&&U%i&&(re.skipLabel=!0),y.push(re)):(re.minor=!0,_.push(re))}}if(!_||_.length<2)s=!1;else{var K=(_[1].value-_[0].value)*(l?-1:1);lW(K,r.tickformat)||(s=!1)}if(!s)C=y;else{var se=y.concat(_);o&&y.length&&(se=se.slice(1)),se=se.sort(function(or,lr){return or.value-lr.value}).filter(function(or,lr,hr){return lr===0||or.value!==hr[lr-1].value});var ce=se.map(function(or,lr){return or.minor===void 0&&!or.skipLabel?lr:null}).filter(function(or){return or!==null});ce.forEach(function(or){s.map(function(lr){var hr=or+lr;hr>=0&&hr-1;Ce--){if(y[Ce].drop){y.splice(Ce,1);continue}y[Ce].value=w3(y[Ce].value,r);var $=r.c2p(y[Ce].value);(pe?Q>$-G:Q<$+G)?y.splice(f?Ce+1:Ce,1):Q=$}}R3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var _e,De=function(or){or.text="",r._prevDateHead=_e};y=y.concat(_);function Ie(or,lr){var hr=_r.tickText(or,lr.value,!1,lr.simpleLabel),Ke=lr.periodX;return Ke!==void 0&&(hr.periodX=Ke,(Ke>h||Keh&&(hr.periodX=h),Kea&&hPp)r/=Pp,n=a(10),e.dtick="M"+12*os(r,n,Dp);else if(i>iv)r/=iv,e.dtick="M"+os(r,1,iA);else if(i>ri){if(e.dtick=os(r,ri,e._hasDayOfWeekBreaks?[1,2,7,14]:FV),!t){var o=_r.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>ls?e.dtick=os(r,ls,iA):i>z1?e.dtick=os(r,z1,oA):i>Fp?e.dtick=os(r,Fp,oA):(n=a(10),e.dtick=os(r,n,Dp))}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"+os(r,n,Dp)}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))):R3(e)?(e.tick0=0,n=1,e.dtick=os(r,n,IV)):(e.tick0=0,n=a(10),e.dtick=os(r,n,Dp));if(e.dtick===0&&(e.dtick=1),!aa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function dA(e){var r=e.dtick;if(e._tickexponent=0,!aa(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>=ri&&a<=10||r>=ri*15)e._tickround="d";else if(r>=z1&&a<=16||r>=ls)e._tickround="M";else if(r>=Fp&&a<=19||r>=z1)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(aa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);aa(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&&(ov(e.exponentformat)&&e.exponentformat!=="SI extended"&&!D3(s)||ov(e.exponentformat)&&e.exponentformat==="SI extended"&&!E3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(aa(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"?hA:vA,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)};_r.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=I1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function BV(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=F1(Math.pow(10,o),e,a,n);else if(aa(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"||ov(m)&&m!=="SI extended"&&D3(h)||ov(m)&&m==="SI extended"&&E3(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=F1(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 OV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function UV(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 YV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=F1(r.x,e,a,n)}function GV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=VV(i);if(o[1]>=100)r.text=F1(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=F1(r.x,e,a,n)}function VV(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 gA=["f","p","n","\u03BC","m","","k","M","G","T"],WV=["q","r","y","z","a",...gA,"P","E","Z","Y","R","Q"],ov=e=>["SI","SI extended","B"].includes(e);function D3(e){return e>14||e<-15}function E3(e){return e>32||e<-30}function ZV(e,r){return ov(r)?!!(r==="SI extended"&&E3(e)||r!=="SI extended"&&D3(e)):!1}function F1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:aa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};dA(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":ov(o)&&(e+=o==="SI extended"?WV[l/3+10]:gA[l/3+5])}return a?Ac+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*iv}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=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&L3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=lt.simpleMap(u._r,u.r2l),f}}}))};_r.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=_r.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),L3(r,m,n,!0),L3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=oW(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),b=[r.mirror,_,C].join("_");for(i=0;i0?Ke.bottom-lr:0,hr))));var Ue=0,kr=0;if(r._shiftPusher&&(Ue=Math.max(hr,Ke.height>0?Be==="l"?lr-Ke.left:Ke.right-lr:0),r.title.text!==s._dfltTitle[f]&&(kr=(r._titleStandoff||0)+(r._titleScoot||0),Be==="l"&&(kr+=sA(r))),r._fullDepth=Math.max(Ue,kr)),r.automargin){gr={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"?gr[Be]=r._depth:(gr[Be]=r._depth=Math.max(Ke.width>0?lr-Ke.top:0,hr),Ur.reverse()),Ke.width>0){var Ye=Ke.right-(r._offset+r._length);Ye>0&&(gr.xr=1,gr.r=Ye);var Ze=r._offset-Ke.left;Ze>0&&(gr.xl=0,gr.l=Ze)}}else if(Be==="l"?(r._depth=Math.max(Ke.height>0?lr-Ke.left:0,hr),gr[Be]=r._depth-tr):(r._depth=Math.max(Ke.height>0?Ke.right-lr:0,hr),gr[Be]=r._depth+tr,Ur.reverse()),Ke.height>0){var pr=Ke.bottom-(r._offset+r._length);pr>0&&(gr.yb=0,gr.b=pr);var Tr=r._offset-Ke.top;Tr>0&&(gr.yt=1,gr.t=Tr)}gr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Ur[0]],r.title.text!==s._dfltTitle[f]&&(gr[Be]+=sA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(mr={x:0,y:0,r:0,l:0,t:0,b:0},mr[or]=r.linewidth,r.mirror&&r.mirror!==!0&&(mr[or]+=hr),r.mirror===!0||r.mirror==="ticks"?mr[v]=r._anchorAxis.domain[Ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(mr[v]=[r._counterDomainMin,r._counterDomainMax][Ur[1]]))}ar&&(Te=P1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(lA(gr,r.automargin),lA(mr,r.automargin)),nv.autoMargin(e,P3(r),gr),nv.autoMargin(e,yA(r),mr),nv.autoMargin(e,bA(r),Te)}),lt.syncOrAsync(Ie)}};function lA(e,r){if(e){var t=Object.keys(eA).reduce(function(n,a){return r.indexOf(a)!==-1&&eA[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 XV(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 av(a+e._offset+e.l2p(S3(h))+t,i+n)}:function(h){return av(i+n,a+e._offset+e.l2p(S3(h))+t)}};function S3(e){return e.periodX!==void 0?e.periodX:e.x}function KV(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=Ip,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+=Ip),s&&f==="top"&&(h-=d*(1-Tc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}_r.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};_r.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(H){return n.indexOf(H)!==-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+=E1:R===-90&&M==="bottom"?b=Tc:R===90&&M==="top"?b=E1:b=.5,k=E1/2*(R/90)),_.xFn=function(H){return H.dx+C+k*H.fontSize},_.yFn=function(H){return H.dy+x+H.fontSize*b},_.anchorFn=function(H,V){if(f){if(l)return"end";if(s)return"start"}return!aa(V)||V===0||V===180?"middle":V*A<0!==v?"end":"start"},_.heightFn=function(H,V,U){return V<-60||V>60?-.5*U:e.side==="top"!==v?-U: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=aa(R)?+R:0;if(I!==0){var Z=lt.deg2rad(I);k=Math.abs(Math.sin(Z))*Tc*A,b=0}}_.xFn=function(H){return H.dx+r-(C+H.fontSize*b)*A+k*H.fontSize},_.yFn=function(H){return H.dy+x+H.fontSize*E1},_.anchorFn=function(H,V){return aa(V)&&Math.abs(V)===90?"middle":N?"end":"start"},_.heightFn=function(H,V,U){return e.side==="right"&&(V*=-1),V<-30?-U:V<30?-.5*U:0}}return _};function Op(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.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,Op);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return R1.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),Up(r,[uA]),i.attr("transform",t.transFn)};_r.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&&_r.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,Op);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 R1.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)}}Up(r,[T3,k3])}};_r.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=_r.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 CV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(R1.stroke,r.zerolinecolor||R1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Up(r,[A3])};_r.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:[],Op),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(K){var se=To.select(this),ce=e._promises.length;se.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[ce]?h.push(e._promises.pop().then(function(){d(se,u)})):d(se,u)}),Up(r,[QM]),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,se){K.each(function(ce){var Se=To.select(this),Fe=Se.select(".text-math-group"),He=s.anchorFn(ce,se),Xe=t.transFn.call(Se.node(),ce)+(aa(se)&&+se!=0?" rotate("+se+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),Le=Mc.lineCount(Se),Qe=N1*ce.fontSize,fe=s.heightFn(ce,aa(se)?+se:0,(Le-1)*Qe);if(fe&&(Xe+=av(0,fe)),Fe.empty()){var me=Se.select("text");me.attr({transform:Xe,"text-anchor":He}),me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ce=$i.bBox(Fe.node()).width,pe=Ce*{end:-.5,start:.5}[He];Fe.attr("transform",Xe+av(pe,0))}})}r._adjustTickLabelsOverflow=function(){var K=r.ticklabeloverflow;if(!(!K||K==="allow")){var se=K.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",Se=0,Fe=ce?e._fullLayout.width:e._fullLayout.height;if(K.indexOf("domain")!==-1){var He=lt.simpleMap(r.range,r.r2l);Se=r.l2p(He[0])+r._offset,Fe=r.l2p(He[1])+r._offset}var Xe=Math.min(Se,Fe),Le=Math.max(Se,Fe),Qe=r.side,fe=1/0,me=-1/0;v.each(function(Q){var $=To.select(this),_e=$.select(".text-math-group");if(_e.empty()){var De=$i.bBox($.node()),Ie=0;ce?(De.right>Le||De.leftLe||De.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+He._id]?$.style("display","none"):Le.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,se=[],ce,Se=1;v.each(function(gr){K=Math.max(K,gr.fontSize);var mr=r.l2p(gr.x),Te=C3(this),Ue=$i.bBox(Te.node());Se=Math.max(Se,Mc.lineCount(Te)),se.push({top:0,bottom:10,height:10,left:mr-Ue.width/2,right:mr+Ue.width/2+2,width:Ue.width+2})});var Fe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,He=l.length,Xe=Math.abs((l[He-1].x-l[0].x)*r._m)/(He-1),Le=Fe?Xe/2:Xe,Qe=Fe?r.ticklen:K*1.25*Se,fe=Math.sqrt(Math.pow(Le,2)+Math.pow(Qe,2)),me=Le/fe,Ce=r.autotickangles.map(function(gr){return gr*Math.PI/180}),pe=Ce.find(function(gr){return Math.abs(Math.cos(gr))<=me});pe===void 0&&(pe=Ce.reduce(function(gr,mr){return Math.abs(Math.cos(gr))ee*U&&(Z=U,R[D]=N[D]=H[D])}var ie=Math.abs(Z-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 QV(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,Op);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(R1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.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 sA(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*N1):t?r*(t+1)*N1:r}function eW(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*(E1+l*N1));else{var s=I1(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=_r.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,bV.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"}})}_r.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)===Hp)&&(mA(r,0)||!rW(e,r,t,n)||tW(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return mA(e,t.x)})};function mA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=TV:/%L/.test(r)?e>=AV:/%[SX]/.test(r)?e>=Fp:/%M/.test(r)?e>=z1:/%[HI]/.test(r)?e>=ls:/%p/.test(r)?e>=nf:/%[Aadejuwx]/.test(r)?e>=ri:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Np:/%[q]/.test(r)?e>=zp:/%[Yy]/.test(r)?e>=Rp:!0}});var wA=te((nfe,xA)=>{"use strict";xA.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 z3=te((afe,MA)=>{"use strict";var sW=wA();MA.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&&(sW(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var TA=te((ife,AA)=>{var uW={left:0,top:0};AA.exports=fW;function fW(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=cW(r);return t[0]=n-i.left,t[1]=a-i.top,t}function cW(e){return e===window||e===document||e===document.body?uW:e.getBoundingClientRect()}});var N3=te((ofe,kA)=>{"use strict";var vW=c2();function hW(){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}kA.exports=vW&&hW()});var CA=te((lfe,SA)=>{"use strict";SA.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 DA=te((sfe,qA)=>{"use strict";var LA=dr(),dW=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];qA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=LA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=LA.constrain(Math.floor(t*3),0,2),dW[t][r]}});var PA=te((ufe,EA)=>{"use strict";var pW=x1(),gW=Ud(),mW=h1().getGraphDiv,yW=u1(),F3=EA.exports={};F3.wrapped=function(e,r,t){e=mW(e),e._fullLayout&&gW.clear(e._fullLayout._uid+yW.HOVERID),F3.raw(e,r,t)};F3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&pW.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,FA)=>{"use strict";var bW=TA(),I3=h2(),_W=N3(),xW=dr().removeElement,wW=ya(),kc=FA.exports={};kc.align=CA();kc.getCursor=DA();var zA=PA();kc.unhover=zA.wrapped;kc.unhoverRaw=zA.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,_W?(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 NA(){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=NA;function RA(e){return bW(e.changedTouches?e.changedTouches[0]:e,document.body)}});var af=te((cfe,IA)=>{"use strict";IA.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 OA=te((vfe,BA)=>{"use strict";var H3=af(),H1="data-savedcursor",HA="!!";BA.exports=function(r,t){var n=r.attr(H1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var B3=Ka(),MW=dl();UA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:MW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:B3({editType:"legend"}),grouptitlefont:B3({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:B3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=te(B1=>{"use strict";B1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};B1.isVertical=function(r){return r.orientation!=="h"};B1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};B1.getId=function(r){return r._id||"legend"}});var Y3=te((pfe,YA)=>{"use strict";var Yp=dt(),Qi=dr(),AW=_n(),TW=_o(),kW=O3(),SW=z0(),U3=O1();function CW(e,r,t,n,a){var i=r[e]||{},o=AW.newContainer(t,e);function l(K,se){return Qi.coerce(i,o,kW,K,se)}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,se){var ce=f._input,Se=f;return Qi.coerce(ce,Se,TW,K,se)},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 Yp.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 se=0;seK.legend.length)for(var Se=K.legend.length;Se(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",Z=R==="paper",H,V,U,ee="left";N?(H=0,Yp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(V=1.1,U="bottom"):(V=1,U="top"):I?(V=-.1,U="top"):(V=0,U="bottom")):(V=1,U="auto",Z?H=1.02:(H=1,ee="right")),Qi.coerce(i,o,{x:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:H}},"x"),Qi.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:V}},"y"),l("traceorder",y),U3.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",U),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)}}}YA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var of=dt(),G3=dr(),LW=G3.pushUnique,qW=O1(),GA=!0;V3.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"&&GA&&t.data&&t._context.showTips&&(G3.notifier(G3._(t,"Double-click on legend to isolate one trace"),"long"),GA=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,v=(i.shapes||[]).filter(function(ar){return ar.showlegend}),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(ar,Be){var or=k.indexOf(ar),lr=A.visible;return lr||(lr=A.visible=[]),k.indexOf(ar)===-1&&(k.push(ar),or=k.length-1),lr[or]=Be,or}var N=(i.shapes||[]).map(function(ar){return ar._input}),I=!1;function Z(ar,Be){N[ar].visible=Be,I=!0}function H(ar,Be){if(!(o.groupTitle&&!s)){var or=ar._fullInput||ar,lr=or._isShape,hr=or.index;hr===void 0&&(hr=or._index);var Ke=or.visible===!1?!1:Be;lr?Z(hr,Ke):R(hr,Ke)}}var V=d.legend,U=d._fullInput,ee=U&&U._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,se=[];for(p=0;p{"use strict";VA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var XA=te((yfe,ZA)=>{"use strict";var WA=dt(),X3=O1();ZA.exports=function(r,t,n){var a=t._inHover,i=X3.isGrouped(t),o=X3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(K,se,ce){if(t.visible!==!1&&!(n&&K!==t._id))if(se===""||!X3.isGrouped(t)){var Se="~~i"+v;s.push(Se),l[Se]=[ce],v++}else s.indexOf(se)===-1?(s.push(se),u=!0,l[se]=[ce]):l[se].push(ce)}for(d=0;dZ&&(I=Z)}R[d][0]._groupMinRank=I,R[d][0]._preGroupSort=d}var H=function(K,se){return K[0]._groupMinRank-se[0]._groupMinRank||K[0]._preGroupSort-se[0]._preGroupSort},V=function(K,se){return K.trace.legendrank-se.trace.legendrank||K._preSort-se._preSort};for(R.forEach(function(K,se){K[0]._preGroupSort=se}),R.sort(H),d=0;d{"use strict";var Gp=dr();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 Gp.numSeparate(n,t)+"%"};Sc.formatPieValue=function(r,t){var n=jA(r.toPrecision(10));return Gp.numSeparate(n,t)};Sc.getFirstFilled=function(r,t){if(Gp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var DW=fn(),EW=Et();JA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?DW.pointStyle(r,n,a,t):EW.fill(r,t.color)}});var rT=te((xfe,eT)=>{"use strict";var KA=Et(),QA=j3().castOption,PW=$A();eT.exports=function(r,t,n,a){var i=n.marker.line,o=QA(i.color,t.pts)||KA.defaultLine,l=QA(i.width,t.pts)||0;r.call(PW,t,n,a).style("stroke-width",l).call(KA.stroke,o)}});var Q3=te((wfe,lT)=>{"use strict";var ti=kt(),J3=dt(),Ba=dr(),tT=Ba.strTranslate,eo=fn(),So=Et(),$3=ts().extractOpts,Vp=ei(),RW=rT(),zW=j3().castOption,NW=Z3(),nT=12,aT=5,Cc=2,FW=10,lv=5;lT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+NW.itemGap*2)/2,s=tT(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=ti.select(this),R=Ba.ensureSingle(D,"g","layers");R.style("opacity",M[0].trace.opacity);var N=n.indentation,I=n.valign,Z=M[0].lineHeight,H=M[0].height;if(I==="middle"&&N===0||!Z||!H)R.attr("transform",null);else{var V={top:1,bottom:-1}[I],U=V*(.5*(Z-H+3))||0,ee=n.indentation;R.attr("transform",tT(ee,U))}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=iT(M),R=D.showFill,N=D.showLine,I=D.showGradientLine,Z=D.showGradientFill,H=D.anyFill,V=D.anyLine,U=M[0],ee=U.trace,ie,re,K=$3(ee),se=K.colorscale,ce=K.reversescale,Se=function(me){if(me.size())if(R)eo.fillGroupStyle(me,t,!0);else{var Ce="legendfill-"+ee.uid;eo.gradient(me,t,Ce,K3(ce),se,"fill")}},Fe=function(me){if(me.size()){var Ce="legendline-"+ee.uid;eo.lineGroupStyle(me),eo.gradient(me,t,Ce,K3(ce),se,"stroke")}},He=Vp.hasMarkers(ee)||!H?"M5,0":V?"M5,-2":"M5,-3",Xe=ti.select(this),Le=Xe.select(".legendfill").selectAll("path").data(R||Z?[M]:[]);if(Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",He+"h"+o+"v6h-"+o+"z").call(Se),N||I){var Qe=u(void 0,ee.line,FW,aT);re=Ba.minExtend(ee,{line:{width:Qe}}),ie=[Ba.minExtend(U,{trace:re})]}var fe=Xe.select(".legendlines").selectAll("path").data(N||I?[ie]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",He+(I?"l"+o+",0.0001":"h"+o)).call(N?eo.lineGroupStyle:Fe)}function v(M){var D=iT(M),R=D.anyFill,N=D.anyLine,I=D.showLine,Z=D.showMarker,H=M[0],V=H.trace,U=!Z&&!N&&!R&&Vp.hasText(V),ee,ie;function re(Le,Qe,fe,me){var Ce=Ba.nestedProperty(V,Le).get(),pe=Ba.isArrayOrTypedArray(Ce)&&Qe?Qe(Ce):Ce;if(i&&pe&&me!==void 0&&(pe=me),fe){if(pefe[1])return fe[1]}return pe}function K(Le){return H._distinct&&H.index&&Le[H.index]?Le[H.index]:Le[0]}if(Z||U||I){var se={},ce={};if(Z){se.mc=re("marker.color",K),se.mx=re("marker.symbol",K),se.mo=re("marker.opacity",Ba.mean,[.2,1]),se.mlc=re("marker.line.color",K),se.mlw=re("marker.line.width",Ba.mean,[0,5],Cc),se.mld=V._isShape?"solid":re("marker.line.dash",K),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Se=re("marker.size",Ba.mean,[2,16],nT);se.ms=Se,ce.marker.size=Se}I&&(ce.line={width:re("line.width",K,[0,10],aT)}),U&&(se.tx="Aa",se.tp=re("textposition",K),se.ts=10,se.tc=re("textfont.color",K),se.tf=re("textfont.family",K),se.tw=re("textfont.weight",K),se.ty=re("textfont.style",K),se.tv=re("textfont.variant",K),se.tC=re("textfont.textcase",K),se.tE=re("textfont.lineposition",K),se.tS=re("textfont.shadow",K)),ee=[Ba.minExtend(H,se)],ie=Ba.minExtend(V,ce),ie.selectedpoints=null,ie.texttemplate=null}var Fe=ti.select(this).select("g.legendpoints"),He=Fe.selectAll("path.scatterpts").data(Z?ee:[]);He.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),He.exit().remove(),He.call(eo.pointStyle,ie,t),Z&&(ee[0].mrc=3);var Xe=Fe.selectAll("g.pointtext").data(U?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 Z=ti.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);Z.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),Z.exit().remove(),Z.each(function(H){var V=ti.select(this),U=D[H[0]].marker,ee=u(void 0,U.line,lv,Cc);V.attr("d",H[1]).style("stroke-width",ee+"px").call(So.fill,U.color),ee&&V.call(So.stroke,U.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||{},Z=I.line||{},H=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",V=R?N.visible&&N.type===R:J3.traceIs(N,"bar"),U=ti.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(V?[M]:[]);U.enter().append("path").classed("legend"+R,!0).attr("d",H).attr("transform",s),U.exit().remove(),U.each(function(ee){var ie=ti.select(this),re=ee[0],K=u(re.mlw,I.line,lv,Cc);ie.style("stroke-width",K+"px");var se=re.mcc;if(!n._inHover&&"mc"in re){var ce=$3(I),Se=ce.mid;Se===void 0&&(Se=(ce.max+ce.min)/2),se=eo.tryColorscale(I,"")(Se)}var Fe=se||re.mc||I.color,He=I.pattern,Xe=eo.getPatternAttr,Le=He&&(Xe(He.shape,0,"")||Xe(He.path,0,""));if(Le){var Qe=Xe(He.bgcolor,0,null),fe=Xe(He.fgcolor,0,null),me=He.fgopacity,Ce=oT(He.size,8,10),pe=oT(He.solidity,.5,1),G="legend-"+N.uid;ie.call(eo.pattern,"legend",t,G,Le,Ce,pe,se,He.fillmode,Qe,fe,me)}else ie.call(So.fill,Fe);K&&So.stroke(ie,re.mlc||Z.color)})}function y(M){var D=M[0].trace,R=ti.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&J3.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=ti.select(this);if((D.boxpoints==="all"||D.points==="all")&&So.opacity(D.fillcolor)===0&&So.opacity((D.line||{}).color)===0){var I=Ba.minExtend(D,{marker:{size:i?nT:Ba.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(eo.pointStyle,I,t)}else{var Z=u(void 0,D.line,lv,Cc);N.style("stroke-width",Z+"px").call(So.fill,D.fillcolor),Z&&So.stroke(N,D.line.color)}})}function _(M){var D=M[0].trace,R=ti.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 Z=ti.select(this),H=D[I?"increasing":"decreasing"],V=u(void 0,H.line,lv,Cc);Z.style("stroke-width",V+"px").call(So.fill,H.fillcolor),V&&So.stroke(Z,H.line.color)})}function C(M){var D=M[0].trace,R=ti.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 Z=ti.select(this),H=D[I?"increasing":"decreasing"],V=u(void 0,H.line,lv,Cc);Z.style("fill","none").call(eo.dashLine,H.line.dash,V),V&&So.stroke(Z,H.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,Z=R?I.visible&&I.type===R:J3.traceIs(I,R),H=ti.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(Z?[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 V=I.marker||{},U=u(zW(V.line.width,N.pts),V.line,lv,Cc),ee="pieLike",ie=Ba.minExtend(I,{marker:{line:{width:U}}},ee),re=Ba.minExtend(N,{trace:ie},ee);RW(H,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=ti.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(Z,H){var V=ti.select(this),U=$3(D),ee=U.colorscale,ie=U.reversescale,re=function(Se){if(Se.size()){var Fe="legendfill-"+D.uid;eo.gradient(Se,t,Fe,K3(ie,R==="radial"),ee,"fill")}},K;if(ee){if(!R){var ce=ee.length;K=H===0?ee[ie?ce-1:0][1]:H===1?ee[ie?0:ce-1][1]:ee[Math.floor((ce-1)/2)][1]}}else{var se=D.vertexcolor||D.facecolor||D.color;K=Ba.isArrayOrTypedArray(se)?se[H]||se[0]:se}V.attr("d",Z[0]),K?V.call(So.fill,K):V.call(re)})}};function K3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function iT(e){var r=e[0].trace,t=r.contours,n=Vp.hasLines(r),a=Vp.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 oT(e,r,t){return e&&Ba.isArrayOrTypedArray(e)?r:e>t?t:e}});var n5=te((Mfe,gT)=>{"use strict";var hi=kt(),Qn=dr(),r5=va(),Lc=dt(),Xp=x1(),e5=ko(),ea=fn(),U1=Et(),qc=Qa(),sT=W3().handleItemClick,uT=W3().handleTitleClick,ia=Z3(),t5=Ia(),dT=t5.LINE_SPACING,uv=t5.FROM_TL,fT=t5.FROM_BR,cT=XA(),IW=Q3(),fv=O1(),sv=1,HW=/^legend[0-9]*$/;gT.exports=function(r,t){if(t)vT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=hi.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(HW)&&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(),r5.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(U1.stroke,t.bordercolor).call(U1.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),Zp(b,C,e,t,sv),!l&&(t.titleclick||t.titledoubleclick)&&YW(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(ia.scrollBarEnterAttrs).call(U1.fill,ia.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,Z=(n.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(Z).some(function(V){return V.legendgroup===I&&(V.legend||"legend")===a&&V.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(){hi.select(this).call(OW,e,t)}).call(IW,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||hi.select(this).call(UW,e,a)}),Qn.syncOrAsync([r5.previousPromises,function(){return WW(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 _e=(n.shapes||[]).filter(function(Ie){return Ie.showlegend}),De=e._fullData.concat(_e).some(function(Ie){let nr=Ie.legend||"legend";var ar=Array.isArray(nr)?nr.includes(a):nr===a;return ar&&Ie.visible===!0});b.style("opacity",De?1:.5)}if(!l){var Z,H;N?Z=D.l+D.w*t.x-uv[jp(t)]*t._width:Z=n.width*t.x-uv[jp(t)]*t._width,I?H=D.t+D.h*(1-t.y)-uv[Jp(t)]*t._effHeight:H=n.height*(1-t.y)-uv[Jp(t)]*t._effHeight;var V=ZW(e,a,Z,H);if(V)return;if(n.margin.autoexpand){var U=Z,ee=H;Z=N?Qn.constrain(Z,0,n.width-t._width):U,H=I?Qn.constrain(H,0,n.height-t._effHeight):ee,Z!==U&&Qn.log("Constrain "+a+".x to make legend fit inside graph"),H!==ee&&Qn.log("Constrain "+a+".y to make legend fit inside graph")}ea.setTranslate(p,Z,H)}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(ia.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),K=t._effHeight-re-2*ia.scrollBarMargin,se=t._height-t._effHeight,ce=K/se,Se=Math.min(t._scrollY||0,se);_.attr({width:t._width-2*R+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-R,x:R/2,y:R/2}),y.select("rect").attr({width:t._width-2*R+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-2*R,x:R,y:R+Se}),ea.setClipUrl(C,i,e),Ce(Se,re,ce),p.on("wheel",function(){Se=Qn.constrain(t._scrollY+hi.event.deltaY/se*K,0,se),Ce(Se,re,ce),Se!==0&&Se!==se&&hi.event.preventDefault()});var Fe,He,Xe,Le=function(_e,De,Ie){var nr=(Ie-De)/ce+_e;return Qn.constrain(nr,0,se)},Qe=function(_e,De,Ie){var nr=(De-Ie)/ce+_e;return Qn.constrain(nr,0,se)},fe=hi.behavior.drag().on("dragstart",function(){var _e=hi.event.sourceEvent;_e.type==="touchstart"?Fe=_e.changedTouches[0].clientY:Fe=_e.clientY,Xe=Se}).on("drag",function(){var _e=hi.event.sourceEvent;_e.buttons===2||_e.ctrlKey||(_e.type==="touchmove"?He=_e.changedTouches[0].clientY:He=_e.clientY,Se=Le(Xe,Fe,He),Ce(Se,re,ce))});A.call(fe);var me=hi.behavior.drag().on("dragstart",function(){var _e=hi.event.sourceEvent;_e.type==="touchstart"&&(Fe=_e.changedTouches[0].clientY,Xe=Se)}).on("drag",function(){var _e=hi.event.sourceEvent;_e.type==="touchmove"&&(He=_e.changedTouches[0].clientY,Se=Qe(Xe,Fe,He),Ce(Se,re,ce))});C.call(me)}function Ce(_e,De,Ie){t._scrollY=e._fullLayout[a]._scrollY=_e,ea.setTranslate(C,0,-_e),ea.setRect(A,t._width,ia.scrollBarMargin+_e*Ie,ia.scrollBarWidth,De),y.select("rect").attr("y",R+_e)}if(e._context.edits.legendPosition){var pe,G,Q,$;p.classed("cursor-move",!0),e5.init({element:p.node(),gd:e,prepFn:function(_e){if(_e.target!==A.node()){var De=ea.getTranslate(p);Q=De.x,$=De.y}},moveFn:function(_e,De){if(Q!==void 0&&$!==void 0){var Ie=Q+_e,nr=$+De;ea.setTranslate(p,Ie,nr),pe=e5.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),G=e5.align(nr+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&G!==void 0){var _e={};_e[a+".x"]=pe,_e[a+".y"]=G,Lc.call("_guiRelayout",e,_e)}},clickFn:function(_e,De){var Ie=o.selectAll("g.traces").filter(function(){var nr=this.getBoundingClientRect();return De.clientX>=nr.left&&De.clientX<=nr.right&&De.clientY>=nr.top&&De.clientY<=nr.bottom});Ie.size()>0&&pT(e,t,Ie,_e,De)}})}}],e)}}function Wp(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 pT(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=Xp.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&sT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=Xp.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&sT(t,e,r,s)}}function OW(e,r,t){var n=fv.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?hT(u,s):u);var h=t.indentation+t.itemwidth+ia.itemGap*2;qc.positionText(v,h,0),l?v.call(qc.makeEditable,{gd:r,text:u}).call(Zp,e,r,t).on("edit",function(d){this.text(hT(d,s)).call(Zp,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)}):Zp(v,e,r,t)}function hT(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 UW(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(U1.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)),pT(r,l,e,i,hi.event)}}))}function YW(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(U1.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:hi.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Xp.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&uT(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Xp.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&uT(r,t,t.titledoubleclick))}))}function Zp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),qc.convertToTspans(e,t,function(){GW(r,t,n,a)})}function GW(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=fv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;n===sv?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var v=f.size*dT,h,d;if(l){var m=ea.bBox(l);h=m.height,d=m.width,n===sv?ea.setTranslate(o,u,u+h*.75):ea.setTranslate(o,0,h*.25)}else{var p="."+s+(n===sv?"title":"")+"text",y=e.select(p),_=qc.lineCount(y),C=y.node();if(h=v*_,d=C?ea.bBox(C).width:0,n===sv)t.title.side==="left"&&(d+=ia.itemGap*2),qc.positionText(y,u+ia.titlePad,u+v);else{var x=ia.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(x=ia.itemGap,d-=t.indentation+t.itemwidth),qc.positionText(y,x,-v*((_-1)/2-.3))}}n===sv?(t._titleWidth=d,t._titleHeight=h):(a.lineHeight=v,a.height=Math.max(h,16)+3,a.width=d)}function VW(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 WW(e,r,t,n,a){var i=e._fullLayout,o=fv.getId(n);n||(n=i[o]);var l=i._size,s=fv.isVertical(n),u=fv.isGrouped(n),f=n.entrywidthmode==="fraction",v=n.borderwidth,h=2*v,d=ia.itemGap,m=n.indentation+n.itemwidth+d*2,p=2*(v+d),y=Jp(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=VW(n);if(s)t.each(function(_e){var De=_e[0].height;ea.setTranslate(this,v+I[0],v+I[1]+n._height+De/2+d),n._height+=De,n._width=Math.max(n._width,_e[0].width)}),N=m+n._width,n._width+=d+m+h,n._height+=p,u&&(r.each(function(_e,De){ea.setTranslate(this,0,De*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var Z=jp(n),H=n.x<0||n.x===0&&Z==="right",V=n.x>1||n.x===1&&Z==="left",U=C||_,ee=i.width/2;n._maxWidth=Math.max(H?U&&Z==="left"?l.l+l.w:ee:V?U&&Z==="right"?l.r+l.w:ee:l.w,2*m);var ie=0,re=0;t.each(function(_e){var De=Wp(_e,n,m);ie=Math.max(ie,De),re+=De}),N=null;var K=0;if(u){var se=0,ce=0,Se=0;r.each(function(){var _e=0,De=0;hi.select(this).selectAll("g.traces").each(function(nr){var ar=Wp(nr,n,m),Be=nr[0].height;ea.setTranslate(this,I[0],I[1]+v+d+Be/2+De),De+=Be,_e=Math.max(_e,ar),b[nr[0].trace.legendgroup]=_e});var Ie=_e+d;ce>0&&Ie+v+ce>n._maxWidth?(K=Math.max(K,ce),ce=0,Se+=se+x,se=De):se=Math.max(se,De),ea.setTranslate(this,ce,Se),ce+=Ie}),n._width=Math.max(K,ce)+v,n._height=Se+se+p}else{var Fe=t.size(),He=re+h+(Fe-1)*d=n._maxWidth&&(K=Math.max(K,fe),Le=0,Qe+=Xe,n._height+=Xe,Xe=0),ea.setTranslate(this,I[0]+v+Le,I[1]+v+Qe+De/2+d),fe=Le+Ie+d,Le+=nr,Xe=Math.max(Xe,De)}),He?(n._width=Le+h,n._height=Xe+p):(n._width=Math.max(K,fe)+h,n._height+=Xe+p)}}n._width=Math.ceil(Math.max(n._width+I[0],n._titleWidth+2*(v+ia.titlePad))),n._height=Math.ceil(Math.max(n._height+I[1],n._titleHeight+2*(v+ia.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var me=e._context.edits,Ce=me.legendText||me.legendPosition;t.each(function(_e){var De=hi.select(this).select("."+o+"toggle"),Ie=_e[0].height,nr=_e[0].trace.legendgroup,ar=Wp(_e,n,m);u&&nr!==""&&(ar=b[nr]);var Be=Ce?m:N||ar;!s&&!f&&(Be+=d/2),ea.setRect(De,0,-Ie/2,Be,Ie)});var pe=a.select("."+o+"titletext");pe.node()&&BW(pe,n,v);var G=a.select("."+o+"titletoggle");if(G.size()&&pe.node()){var Q=pe.attr("x")||0,$=ia.titlePad;ea.setRect(G,Q-$,v,n._titleWidth+2*$,n._titleHeight+2*$)}}function ZW(e,r,t,n){var a=e._fullLayout,i=a[r],o=jp(i),l=Jp(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 r5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*uv[o],r:i._width*fT[o],b:i._effHeight*fT[l],t:i._effHeight*uv[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 Jp(e){return Qn.isBottomAnchor(e)?"bottom":Qn.isMiddleAnchor(e)?"middle":"top"}});var l5=te(o5=>{"use strict";var Dc=kt(),au=Ht(),mT=Ql(),Hn=dr(),XW=Hn.pushUnique,a5=Hn.strTranslate,jW=Hn.strRotate,JW=x1(),Co=Qa(),$W=OA(),us=fn(),_a=Et(),$p=ko(),fs=Dn(),KW=ya().zindexSeparator,vv=dt(),wl=$u(),Ec=u1(),QW=Y3(),eZ=n5(),TT=Ec.YANGLE,i5=Math.PI*TT/180,rZ=1/Math.sin(i5),tZ=Math.cos(i5),nZ=Math.sin(i5),Ln=Ec.HOVERARROWSIZE,Pt=Ec.HOVERTEXTPAD,yT={box:!0,ohlc:!0,violin:!0,candlestick:!0},aZ={scatter:!0,scattergl:!0,splom:!0};function bT(e,r){return e.distance-r.distance}o5.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+Ec.HOVERID,Ec.HOVERMINTIME,function(){iZ(r,t,n,a,i)})};o5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=qT(a),o=DT(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(vv.traceIs(N,"gl3d")){var I=a._fullLayout[N.scene]._scene.container,Z=I.offsetLeft,H=I.offsetTop;k+=Z,M+=Z,D+=H,R+=H}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:R+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.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=ST(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.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 $p.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,$),!au(ee[0])||!au(ie[0]))return Hn.warn("Fx.hover failed",r,e),$p.unhoverRaw(e,r)}var Ie=1/0;function nr(jr,Ut){for(K=0;Kfe&&(V.splice(0,fe),Ie=V[0].distance),v&&H!==0&&V.length===0){Qe.distance=H,Qe.index=!1;var Yt=ce._module.hoverPoints(Qe,Xe,Le,"closest",{hoverLayer:l._hoverlayer});if(Yt&&(Yt=Yt.filter(function(hn){return hn.spikeDistance<=H})),Yt&&Yt.length){var On,Va=Yt.filter(function(hn){return hn.xa.showspikes&&hn.xa.spikesnap!=="hovered data"});if(Va.length){var kn=Va[0];au(kn.x0)&&au(kn.y0)&&(On=Be(kn),(!me.vLinePoint||me.vLinePoint.spikeDistance>On.spikeDistance)&&(me.vLinePoint=On))}var Wa=Yt.filter(function(hn){return hn.ya.showspikes&&hn.ya.spikesnap!=="hovered data"});if(Wa.length){var oa=Wa[0];au(oa.x0)&&au(oa.y0)&&(On=Be(oa),(!me.hLinePoint||me.hLinePoint.spikeDistance>On.spikeDistance)&&(me.hLinePoint=On))}}}}}nr();function ar(jr,Ut,Nt){for(var rn=null,Tn=1/0,vn,Yt=0;Ytjr.trace.index===Ye.trace.index):V=[Ye];var Ze=V.length,pr=AT("x",Ye,l),Tr=AT("y",Ye,l);nr(pr,Tr);var yr=[],wr={},Hr=0,Sr=function(jr){var Ut=yT[jr.trace.type]?kT(jr):jr.trace.index;if(!wr[Ut])Hr++,wr[Ut]=Hr,yr.push(jr);else{var Nt=wr[Ut]-1,rn=yr[Nt];Nt>0&&Math.abs(jr.distance)Ze-1;Dr--)Sr(V[Dr]);V=yr,Ke()}var ur=e._hoverdata,xe=[],Ae=qT(e),$e=DT(e);for(let jr of V){var rr=wl.makeEventData(jr,jr.trace,jr.cd);if(jr.hovertemplate!==!1){var Lr=!1;jr.cd[jr.index]&&jr.cd[jr.index].ht&&(Lr=jr.cd[jr.index].ht),jr.hovertemplate=Lr||jr.trace.hovertemplate||!1}if(jr.xa&&jr.ya){var Yr=jr.x0+jr.xa._offset,Fr=jr.x1+jr.xa._offset,st=jr.y0+jr.ya._offset,xt=jr.y1+jr.ya._offset,Rt=Math.min(Yr,Fr),Kt=Math.max(Yr,Fr),cn=Math.min(st,xt),pn=Math.max(st,xt);rr.bbox={x0:Rt+$e,x1:Kt+$e,y0:cn+Ae,y1:pn+Ae}}jr.eventData=[rr],xe.push(rr)}e._hoverdata=xe;var Mn=h==="y"&&(U.length>1||V.length>1)||h==="closest"&&Ce&&V.length>1,Xt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),Qt=ST(V,{gd:e,hovermode:h,rotateLabels:Mn,bgColor:Xt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),en=Qt.hoverLabels;if(wl.isUnifiedHover(h)||(lZ(en,Mn,l,Qt.commonLabelBoundingBox),LT(en,Mn,l._invScaleX,l._invScaleY)),a&&a.tagName){var an=vv.getComponentMethod("annotations","hasClickToShow")(e,xe);$W(Dc.select(a),an?"pointer":"")}!a||n||!fZ(e,r,ur)||(ur&&e.emit("plotly_unhover",{event:r,points:ur}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:D,xvals:ee,yvals:ie}))}function kT(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 oZ=/([\s\S]*)<\/extra>/;function ST(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&&($e=n.width-Ae),Ye.attr("d","M"+(Dr-$e)+",0L"+(Dr-$e+Ln)+","+xe+Ln+"H"+Ae+"v"+xe+(Pt*2+Sr.height)+"H"+-Ae+"V"+xe+Ln+"H"+(Dr-$e-Ln)+"Z"),Dr=$e,K.minX=Dr-Ae,K.maxX=Dr+Ae,x.side==="top"?(K.minY=ur-(Pt*2+Sr.height),K.maxY=ur-Pt):(K.minY=ur+Pt,K.maxY=ur+(Pt*2+Sr.height))}else{var rr,Lr,Yr;b.side==="right"?(rr="start",Lr=1,Yr="",Dr=x._offset+x._length):(rr="end",Lr=-1,Yr="-",Dr=x._offset),ur=b._offset+(C.y0+C.y1)/2,Ze.attr("text-anchor",rr),Ye.attr("d","M0,0L"+Yr+Ln+","+Ln+"V"+(Pt+Sr.height/2)+"h"+Yr+(Pt*2+Sr.width)+"V-"+(Pt+Sr.height/2)+"H"+Yr+Ln+"V-"+Ln+"Z"),K.minY=ur-(Pt+Sr.height/2),K.maxY=ur+(Pt+Sr.height/2),b.side==="right"?(K.minX=Dr+Ln,K.maxX=Dr+Ln+(Pt*2+Sr.width)):(K.minX=Dr-Ln-(Pt*2+Sr.width),K.maxX=Dr-Ln);var Fr=Sr.height/2,st=N-Sr.top-Fr,xt="clip"+n._uid+"commonlabel"+b._id,Rt;if(DrYe.hoverinfo!=="none");if(tr.length===0)return[];var se=n.hoverlabel,ce=se.font,Se=tr[0],Fe=((a==="x unified"?Se.xa:Se.ya).unifiedhovertitle||{}).text,He=Fe?Hn.hovertemplateString({data:a==="x unified"?[{xa:Se.xa,x:Se.xVal}]:[{ya:Se.ya,y:Se.yVal}],fallback:Se.trace.hovertemplatefallback,locale:n._d3locale,template:Fe}):M,Xe={showlegend:!0,legend:{title:{text:He,font:ce},font:ce,bgcolor:se.bgcolor,bordercolor:se.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Le={font:ce};QW(Xe,Le,t._fullData);var Qe=Le.legend;Qe.entries=[];for(var fe=0;fe=0?Ue=Ke:gr+De=0?Ue=gr:mr+De=0?kr=lr:hr+Ie=0?kr=hr:Te+Ie=0,(tr.idealAlign==="top"||!pn)&&Mn?(Yr-=st/2,tr.anchor="end"):pn?(Yr+=st/2,tr.anchor="start"):tr.anchor="middle",tr.crossPos=Yr;else{if(tr.pos=Yr,pn=Lr+Fr/2+cn<=I,Mn=Lr-Fr/2-cn>=0,(tr.idealAlign==="left"||!pn)&&Mn)Lr-=Fr/2,tr.anchor="end";else if(pn)Lr+=Fr/2,tr.anchor="start";else{tr.anchor="middle";var Xt=cn/2,Qt=Lr+Xt-I,en=Lr-Xt;Qt>0&&(Lr-=Qt),en<0&&(Lr+=-en)}tr.crossPos=Lr}ur.attr("text-anchor",tr.anchor),Ae&&xe.attr("text-anchor",tr.anchor),Ye.attr("transform",a5(Lr,Yr)+(i?jW(TT):""))}),{hoverLabels:Ur,commonLabelBoundingBox:K}}function _T(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=MT(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(oZ,(m,p)=>(o=MT(p,e.nameLength),""))}return[l,o]}function lZ(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",se=ie.range;f===0&&se&&se[0]>se[1]!==K&&(l=-1);var ce=0,Se=K?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Fe=CT(ee,r),He=ee.anchor,Xe=He==="end"?-1:1,Le,Qe;if(He==="middle")Le=ee.crossPos+(K?y(Fe.y-ee.by/2):p(ee.bx/2+ee.tx2width/2)),Qe=Le+(K?y(ee.by):p(ee.bx));else if(K)Le=ee.crossPos+y(Ln+Fe.y)-y(ee.by/2-Ln),Qe=Le+y(ee.by);else{var fe=p(Xe*Ln+Fe.x),me=fe+p(Xe*ee.bx);Le=ee.crossPos+Math.min(fe,me),Qe=ee.crossPos+Math.max(fe,me)}K?d!==void 0&&m!==void 0&&Math.min(Qe,m)-Math.max(Le,d)>1&&(re.side==="left"?(ce=re._mainLinePosition,Se=t.width):Se=re._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Qe,h)-Math.max(Le,v)>1&&(re.side==="top"?(ce=re._mainLinePosition,Se=t.height):Se=re._mainLinePosition)}u[f++]=[{datum:ee,traceIndex:ee.trace.index,dp:0,pos:ee.pos,posref:ee.posref,size:ee.by*(K?rZ:1)/2,pmin:ce,pmax:Se}]}),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 H=u[b];for(A=H.length-1;A>=0;A--){var V=H[A],U=V.datum;U.offset=V.dp,U.del=V.del}}}function CT(e,r){var t=0,n=e.offset;return r&&(n*=-nZ,t=e.offset*tZ),{x:t,y:n}}function sZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ln+Pt),n=t+r*(e.txwidth+Pt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Pt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function LT(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=sZ(o),h=CT(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*Ln+d)+","+i(Ln+m)+"v"+i(o.by/2-Ln)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Ln+d)+"V"+i(m-Ln)+"Z":_="M"+a(f*Ln+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+Pt,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Pt:-o.bx-Pt):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Pt:o.bx+Pt)),s.call(Co.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(Co.positionText,a(v.text2ShiftX+v.alignShift*Pt+d),i(m+o.ty0-o.by/2+Pt)),l.select("rect").call(us.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 uZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||au(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:fs.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:fs.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=fs.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+fs.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=fs.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+fs.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 xT(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=_a.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=mT.readability(h.color,v)<1.5?_a.contrast(v):h.color,_=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,b=fs.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":us.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 Z=u.spikesnap;Z==="cursor"?(N=o.pointerX,I=o.pointerY):(N=u._offset+R.x,I=f._offset+R.y);var H=mT.readability(R.color,v)<1.5?_a.contrast(v):R.color,V=u.spikemode,U=u.spikethickness,ee=u.spikecolor||H,ie=fs.getPxPosition(e,u),re,K;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(re=ie,K=I),V.indexOf("across")!==-1){var se=u._counterDomainMin,ce=u._counterDomainMax;u.anchor==="free"&&(se=Math.min(se,u.position),ce=Math.max(ce,u.position)),re=i.t+(1-ce)*i.h,K=i.t+(1-se)*i.h}n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":U,stroke:ee,"stroke-dasharray":us.dashStyle(u.spikedash,U)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":U+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:N,cy:ie-(u.side!=="top"?U:-U),r:U,fill:ee}).classed("spikeline",!0)}}}function fZ(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 wT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function MT(e,r){return Co.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function cZ(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;oe.offsetTop+e.clientTop,DT=e=>e.offsetLeft+e.clientLeft;function cv(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 Kp=te((Tfe,ET)=>{"use strict";var vZ=dr(),hZ=Et(),dZ=$u().isUnifiedHover;ET.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&&dZ(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=hZ.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),vZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var RT=te((kfe,PT)=>{"use strict";var pZ=dr(),gZ=Kp(),mZ=q0();PT.exports=function(r,t){function n(a,i){return pZ.coerce(r,t,mZ,a,i)}gZ(r,t,n)}});var FT=te((Sfe,NT)=>{"use strict";var zT=dr(),yZ=wd(),bZ=Kp();NT.exports=function(r,t,n,a){function i(l,s){return zT.coerce(r,t,yZ,l,s)}var o=zT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),bZ(r,t,i,o)}});var s5=te((Cfe,IT)=>{"use strict";var _Z=dr(),xZ=q0();IT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:_Z.coerce(r,t,xZ,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var OT=te((Lfe,BT)=>{"use strict";var HT=dr(),wZ=q0(),MZ=s5(),AZ=Kp();BT.exports=function(r,t){function n(f,v){return HT.coerce(r,t,wZ,f,v)}var a=MZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));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"),AZ(r,t,n),HT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var GT=te((qfe,YT)=>{"use strict";var u5=dr(),UT=dt();YT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return u5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var kZ=dt(),SZ=l5().hover;VT.exports=function(r,t,n){var a=kZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&SZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var cs=te((Efe,jT)=>{"use strict";var CZ=kt(),Qp=dr(),LZ=ko(),Y1=$u(),ZT=q0(),XT=l5();jT.exports={moduleType:"component",name:"fx",constants:u1(),schema:{layout:ZT},attributes:wd(),layoutAttributes:ZT,supplyLayoutGlobalDefaults:RT(),supplyDefaults:FT(),supplyLayoutDefaults:OT(),calc:GT(),getDistanceFunction:Y1.getDistanceFunction,getClosest:Y1.getClosest,inbox:Y1.inbox,quadrature:Y1.quadrature,appendArrayPointValue:Y1.appendArrayPointValue,castHoverOption:DZ,castHoverinfo:EZ,hover:XT.hover,unhover:LZ.unhover,loneHover:XT.loneHover,loneUnhover:qZ,click:WT()};function qZ(e){var r=Qp.isD3Selection(e)?e:CZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function DZ(e,r,t){return Qp.castOption(e,r,"hoverlabel."+t)}function EZ(e,r,t){function n(a){return Qp.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return Qp.castOption(e,t,"hoverinfo",n)}});var hv=te(iu=>{"use strict";iu.selectMode=function(e){return e==="lasso"||e==="select"};iu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};iu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};iu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};iu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};iu.selectingOrDrawing=function(e){return iu.freeMode(e)||iu.rectMode(e)}});var eg=te((Rfe,JT)=>{"use strict";JT.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 rg=te((zfe,$T)=>{"use strict";$T.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 ng=te((Nfe,KT)=>{"use strict";var tg=32;KT.exports={CIRCLE_SIDES:tg,i000:0,i090:tg/4,i180:tg/2,i270:tg/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ag=te((Ffe,ek)=>{"use strict";var PZ=dr().strTranslate;function QT(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 RZ(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 zZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return QT(e,t[r])}}function NZ(e){return PZ(e.xaxis._offset,e.yaxis._offset)}ek.exports={p2r:QT,r2p:RZ,axValue:zZ,getTransform:NZ}});var lf=te(ou=>{"use strict";var FZ=J2(),nk=ng(),dv=nk.CIRCLE_SIDES,f5=nk.SQRT2,ak=ag(),rk=ak.p2r,tk=ak.r2p,IZ=[0,3,4,5,6,1,2],HZ=[0,3,4,1,2];ou.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var ik=ca(),fk=hv(),BZ=fk.drawMode,OZ=fk.openMode,pv=ng(),ok=pv.i000,lk=pv.i090,sk=pv.i180,uk=pv.i270,UZ=pv.cos45,YZ=pv.sin45,ck=ag(),og=ck.p2r,sf=ck.r2p,GZ=ju(),VZ=GZ.clearOutline,lg=lf(),WZ=lg.readPaths,ZZ=lg.writePaths,XZ=lg.ellipseOver,jZ=lg.fixDatesForPaths;function JZ(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(!BZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var $Z=hv(),KZ=$Z.selectMode,QZ=ju(),eX=QZ.clearOutline,c5=lf(),rX=c5.readPaths,tX=c5.writePaths,nX=c5.fixDatesForPaths;dk.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(!KZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";pk.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(Ra=>{"use strict";var vs=V1(),gk=dr(),uf=Dn();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 n=[],a=e.match(vs.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(vs.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=a[l].drawn!==void 0;return i+(s?1:0)},0)};Ra.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=Ra.shapePositionToRange(r);o=function(s){var u=lu(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ra.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};Ra.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=Ra.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};Ra.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Ra.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}};Ra.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}};Ra.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,Z,H){var V;if(N)if(I==="domain")H?V=function(U){return N._offset+N._length*(1-U)}:V=function(U){return N._offset+N._length*U};else{let U=Ra.shapePositionToRange(N);V=function(ee){return N._offset+N.r2p(U(ee,!0))},Z==="path"&&N.type==="date"&&(V=Ra.decodeDate(V))}else H?V=function(U){return i.t+i.h*(1-U)}:V=function(U){return i.l+i.w*U};return V}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 aX(r,h,d);if(n==="array")s=lu(o[0],r.x0shift),u=lu(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=lu(o,r.x0shift),u=lu(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=lu(l[0],r.y0shift),v=lu(l[1],r.y1shift),y=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=lu(l,r.y0shift),v=lu(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 aX(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(vs.segmentRE,function(h){var d=0,m=h.charAt(0),p=vs.paramIsX[m],y=vs.paramIsY[m],_=vs.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(vs.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.*/,""),gk.log("Ignoring extra params in segment "+h)),C&&f++,x&&v++,m+k})}function lu(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 d5=te((Yfe,bk)=>{"use strict";var iX=dr(),hs=Dn(),mk=Qa(),yk=fn(),oX=lf().readPaths,h5=ff(),lX=h5.getPathString,W1=Dd(),sX=Ia().FROM_TL;bk.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=hs.getFromId(r,n.xref),s=hs.getFromId(r,n.yref);let ce=Array.isArray(n.xref),Se=Array.isArray(n.yref);for(var u in W1){var f=typeof W1[u]=="function",v=!ce||W1.simpleXVariables.includes(u),h=!Se||W1.simpleYVariables.includes(u);if(f&&v&&h){var d=W1[u](n,l,s);d!==void 0&&(o[u]=d)}}}i=iX.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=lX(r,n),D=oX(M,r);x=1/0,A=1/0,b=-1/0,k=-1/0;for(var R=0;R=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function fX(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 cX=dr(),vX=cX.strTranslate,_k=ko(),Mk=hv(),hX=Mk.drawMode,Ak=Mk.selectMode,Tk=dt(),xk=Et(),fg=ng(),dX=fg.i000,pX=fg.i090,gX=fg.i180,mX=fg.i270,yX=ju(),kk=yX.clearOutlineControllers,g5=lf(),ug=g5.pointsOnRectangle,p5=g5.pointsOnEllipse,bX=g5.writePaths,_X=sg().newShapes,xX=sg().createShapeObj,wX=v5(),MX=d5();Sk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(p5(r[0])||n.hasText)&&l({redrawing:!0})}function l(ie){var re={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,re=_X(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,re=wX(t,n),i._fullLayout._reselect=!0),Object.keys(re).length&&Tk.call((ie||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=hX(f),h=Ak(f);(v||h)&&(i._fullLayout._outlining=!0),kk(i),t.attr("d",bX(r));var d,m,p,y,_;if(!a&&(n.isActiveShape||n.isActiveSelection)){_=AX([],r);var C=u.append("g").attr("class","outline-controllers");N(C),ee()}if(v&&n.hasText){var x=u.select(".label-temp"),b=xX(t,n,n.dragmode);MX(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],se=_[p][y][2],ce=r[p],Se=ce.length;if(ug(ce)){var Fe=ie,He=re;if(n.isActiveSelection){var Xe=wk(ce,y);Xe[1]===ce[y][1]?He=0:Fe=0}for(var Le=0;Le1&&!(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];!ug(K)&&!p5(K)&&D()}}function N(ie){d=[];for(var re=0;re{"use strict";var kX=kt(),Ek=dt(),y5=dr(),Pc=Dn(),SX=lf().readPaths,CX=cg(),hg=d5(),Pk=ju().clearOutlineControllers,m5=Et(),dg=fn(),LX=_n().arrayEditor,Ck=ko(),Lk=af(),Rc=V1(),zi=ff(),b5=zi.getPathString;Nk.exports={draw:_5,drawOne:Rk,eraseActiveShape:PX,drawLabel:hg};function _5(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;aPc.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 DX(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,Z=kX.select(r.node().parentNode),H=Pc.getFromId(e,t.xref),V=Pc.getRefType(t.xref),U=Pc.getFromId(e,t.yref),ee=Pc.getRefType(t.yref),ie=t.x0shift,re=t.x1shift,K=t.y0shift,se=t.y1shift,ce=function(ar,Be){var or=zi.getDataToPixel(e,H,Be,!1,V);return or(ar)},Se=function(ar,Be){var or=zi.getDataToPixel(e,U,Be,!0,ee);return or(ar)},Fe=zi.getPixelToData(e,H,!1,V),He=zi.getPixelToData(e,U,!0,ee),Xe=fe(),Le={element:Xe.node(),gd:e,prepFn:pe,doneFn:G,clickFn:Q},Qe;Ck.init(Le),Xe.node().onmousemove=Ce;function fe(){return f?me():r}function me(){var ar=10,Be=Math.max(t.line.width,ar),or=a.append("g").attr("data-index",n).attr("drag-helper",!0);or.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Be,"stroke-opacity":"0"});var lr={"fill-opacity":"0"},hr=Math.max(Be/2,ar);return or.append("circle").attr({"data-line-point":"start-point",cx:s?ce(t.xanchor)+t.x0:ce(t.x0,ie),cy:u?Se(t.yanchor)-t.y0:Se(t.y0,K),r:hr}).style(lr).classed("cursor-grab",!0),or.append("circle").attr({"data-line-point":"end-point",cx:s?ce(t.xanchor)+t.x1:ce(t.x1,re),cy:u?Se(t.yanchor)-t.y1:Se(t.y1,se),r:hr}).style(lr).classed("cursor-grab",!0),or}function Ce(ar){if(vg(e)){Qe=null;return}if(f)ar.target.tagName==="path"?Qe="move":Qe=ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Be=Le.element.getBoundingClientRect(),or=Be.right-Be.left,lr=Be.bottom-Be.top,hr=ar.clientX-Be.left,Ke=ar.clientY-Be.top,gr=!v&&or>o&&lr>l&&!ar.shiftKey?Ck.getCursor(hr/or,1-Ke/lr):"move";Lk(r,gr),Qe=gr.split("-")[0]}}function pe(ar){vg(e)||(s&&(_=ce(t.xanchor)),u&&(C=Se(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:ce(t.x0),m=u?t.y0:Se(t.y0),p=s?t.x1:ce(t.x1),y=u?t.y1:Se(t.y1)),dy?(x=m,M="y0",b=y,D="y1"):(x=y,M="y1",b=m,D="y0"),Ce(ar),De(a,t),nr(r,t,e),Le.moveFn=Qe==="move"?$:_e,Le.altKey=ar.altKey)}function G(){vg(e)||(Lk(r),Ie(a),zk(r,e,t),Ek.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vg(e)||Ie(a)}function $(ar,Be){if(t.type==="path"){var or=function(Ke){return Ke},lr=or,hr=or;s?h("xanchor",t.xanchor=Fe(_+ar)):(lr=function(gr){return Fe(ce(gr)+ar)},H&&H.type==="date"&&(lr=zi.encodeDate(lr))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(gr){return He(Se(gr)+Be)},U&&U.type==="date"&&(hr=zi.encodeDate(hr))),h("path",t.path=qk(I,lr,hr))}else s?h("xanchor",t.xanchor=Fe(_+ar)):(h("x0",t.x0=Fe(d+ar)),h("x1",t.x1=Fe(p+ar))),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",b5(e,t)),De(a,t),hg(e,n,t,Z)}function _e(ar,Be){if(v){var or=function(wr){return wr},lr=or,hr=or;s?h("xanchor",t.xanchor=Fe(_+ar)):(lr=function(Hr){return Fe(ce(Hr)+ar)},H&&H.type==="date"&&(lr=zi.encodeDate(lr))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(Hr){return He(Se(Hr)+Be)},U&&U.type==="date"&&(hr=zi.encodeDate(hr))),h("path",t.path=qk(I,lr,hr))}else if(f){if(Qe==="resize-over-start-point"){var Ke=d+ar,gr=u?m-Be:m+Be;h("x0",t.x0=s?Ke:Fe(Ke)),h("y0",t.y0=u?gr:He(gr))}else if(Qe==="resize-over-end-point"){var mr=p+ar,Te=u?y-Be:y+Be;h("x1",t.x1=s?mr:Fe(mr)),h("y1",t.y1=u?Te:He(Te))}}else{var Ue=function(wr){return Qe.indexOf(wr)!==-1},kr=Ue("n"),Ur=Ue("s"),tr=Ue("w"),Ye=Ue("e"),Ze=kr?x+Be:x,pr=Ur?b+Be:b,Tr=tr?A+ar:A,yr=Ye?k+ar:k;u&&(kr&&(Ze=x-Be),Ur&&(pr=b-Be)),(!u&&pr-Ze>l||u&&Ze-pr>l)&&(h(M,t[M]=u?Ze:He(Ze)),h(D,t[D]=u?pr:He(pr))),yr-Tr>o&&(h(R,t[R]=s?Tr:Fe(Tr)),h(N,t[N]=s?yr:Fe(yr)))}r.attr("d",b5(e,t)),De(a,t),hg(e,n,t,Z)}function De(ar,Be){(s||u)&&or();function or(){var lr=Be.type!=="path",hr=ar.selectAll(".visual-cue").data([0]),Ke=1;hr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ke}).classed("visual-cue",!0);var gr=ce(s?Be.xanchor:y5.midRange(lr?[Be.x0,Be.x1]:zi.extractPathCoords(Be.path,Rc.paramIsX))),mr=Se(u?Be.yanchor:y5.midRange(lr?[Be.y0,Be.y1]:zi.extractPathCoords(Be.path,Rc.paramIsY)));if(gr=zi.roundPositionForSharpStrokeRendering(gr,Ke),mr=zi.roundPositionForSharpStrokeRendering(mr,Ke),s&&u){var Te="M"+(gr-1-Ke)+","+(mr-1-Ke)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";hr.attr("d",Te)}else if(s){var Ue="M"+(gr-1-Ke)+","+(mr-9-Ke)+"v18 h2 v-18 Z";hr.attr("d",Ue)}else{var kr="M"+(gr-9-Ke)+","+(mr-1-Ke)+"h18 v2 h-18 Z";hr.attr("d",kr)}}}function Ie(ar){ar.selectAll(".visual-cue").remove()}function nr(ar,Be,or){var lr=Be.xref,hr=Be.yref,Ke=Pc.getFromId(or,lr),gr=Pc.getFromId(or,hr),mr="";lr!=="paper"&&!Ke.autorange&&(mr+=lr),hr!=="paper"&&!gr.autorange&&(mr+=hr),dg.setClipUrl(ar,mr?"clip"+or._fullLayout._uid+mr:null,or)}}function qk(e,r,t){return e.replace(Rc.segmentRE,function(n){var a=0,i=n.charAt(0),o=Rc.paramIsX[i],l=Rc.paramIsY[i],s=Rc.numParams[i],u=n.slice(1).replace(Rc.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function EX(e,r){if(pg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Dk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Dk,_5(e)}}}function Dk(e){if(pg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Pk(e),delete e._fullLayout._activeShapeIndex,_5(e))}}function PX(e){if(pg(e)){Pk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Lo=dt(),Fk=va(),Ik=ca(),Bt=rg(),RX=gg().eraseActiveShape,mg=dr(),qt=mg._,Ot=Vk.exports={};Ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?qt(e,"Download plot as a PNG"):qt(e,"Download plot")},icon:Bt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};mg.notifier(qt(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Lo.call("downloadImage",e,t).then(function(n){mg.notifier(qt(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){mg.notifier(qt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ot.sendDataToCloud={name:"sendDataToCloud",title:function(e){return qt(e,"Edit in Chart Studio")},icon:Bt.disk,click:function(e){Fk.sendDataToCloud(e)}};Ot.editInChartStudio={name:"editInChartStudio",title:function(e){return qt(e,"Edit in Chart Studio")},icon:Bt.pencil,click:function(e){Fk.sendDataToCloud(e)}};Ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return qt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bt.zoombox,click:ni};Ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return qt(e,"Pan")},attr:"dragmode",val:"pan",icon:Bt.pan,click:ni};Ot.select2d={name:"select2d",_cat:"select",title:function(e){return qt(e,"Box Select")},attr:"dragmode",val:"select",icon:Bt.selectbox,click:ni};Ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return qt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bt.lasso,click:ni};Ot.drawclosedpath={name:"drawclosedpath",title:function(e){return qt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bt.drawclosedpath,click:ni};Ot.drawopenpath={name:"drawopenpath",title:function(e){return qt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bt.drawopenpath,click:ni};Ot.drawline={name:"drawline",title:function(e){return qt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bt.drawline,click:ni};Ot.drawrect={name:"drawrect",title:function(e){return qt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bt.drawrect,click:ni};Ot.drawcircle={name:"drawcircle",title:function(e){return qt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bt.drawcircle,click:ni};Ot.eraseshape={name:"eraseshape",title:function(e){return qt(e,"Erase active shape")},icon:Bt.eraseshape,click:RX};Ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return qt(e,"Zoom in")},attr:"zoom",val:"in",icon:Bt.zoom_plus,click:ni};Ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return qt(e,"Zoom out")},attr:"zoom",val:"out",icon:Bt.zoom_minus,click:ni};Ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return qt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bt.autoscale,click:ni};Ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return qt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bt.home,click:ni};Ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return qt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bt.tooltip_basic,gravity:"ne",click:ni};Ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return qt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Bt.tooltip_compare,gravity:"ne",click:ni};function ni(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Ik.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 Wk=M5(),FX=Object.keys(Wk),Zk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Xk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Zk),mv=[],IX=function(e){if(Xk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();mv.indexOf(r)===-1&&mv.push(r),mv.indexOf(t)===-1&&mv.push(t)}};FX.forEach(function(e){IX(Wk[e])});mv.sort();jk.exports={DRAW_MODES:Zk,backButtons:Xk,foreButtons:mv}});var T5=te((jfe,Jk)=>{"use strict";var Xfe=A5();Jk.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 Kk=te((Jfe,$k)=>{"use strict";var HX=dr(),Z1=Et(),BX=_n(),OX=T5();$k.exports=function(r,t){var n=r.modebar||{},a=BX.newContainer(t,"modebar");function i(l,s){return HX.coerce(n,a,OX,l,s)}i("orientation"),i("bgcolor",Z1.addOpacity(t.paper_bgcolor,.5));var o=Z1.contrast(Z1.rgb(t.modebar.bgcolor));i("color",Z1.addOpacity(o,.3)),i("activecolor",Z1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var tS=te(($fe,rS)=>{"use strict";var k5=kt(),UX=Ht(),bg=dr(),Qk=rg(),YX=cd().version,GX=new DOMParser;function eS(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ds=eS.prototype;ds.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(),bg.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ds.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)})};ds.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ds.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&&k5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Qk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ds.createIcon=function(e){var r=UX(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=GX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ds.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=k5.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:bg.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};ds.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var ZX=ca(),nS=ei(),S5=dt(),XX=$u().isUnifiedHover,jX=tS(),_g=M5(),JX=A5().DRAW_MODES,$X=dr().extendDeep;aS.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=nj(i):!n.displayModeBar&&n.watermark?o=[]:o=KX(r),a?a.update(r,o):t._modeBar=jX(r,o)};function KX(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 se=K.name,ce=K._cat||K.name;if(se===re||ce===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"),(rj(t)||A)&&(N=[]),u&&!b&&(R=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?Z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?Z=["zoom2d","pan2d"]:p||y||v?Z=["pan2d"]:_&&(Z=["zoom2d"]),ej(t)&&Z.push("select2d","lasso2d");var H=[],V=function(re){H.indexOf(re)===-1&&N.indexOf(re)!==-1&&H.push(re)};if(Array.isArray(l)){for(var U=[],ee=0;ee{"use strict";oS.exports={moduleType:"component",name:"modebar",layoutAttributes:T5(),supplyLayoutDefaults:Kk(),manage:iS()}});var L5=te((ece,lS)=>{"use strict";var aj=Ia().FROM_BL;lS.exports=function(r,t,n){n===void 0&&(n=aj[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(X1=>{"use strict";var zc=dr(),q5=tf(),Ml=ca().id2name,ij=bl(),sS=L5(),oj=Sp(),lj=Rn().ALMOST_EQUAL,sj=Ia().FROM_BL;X1.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 fj(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;olj*m&&!C)){for(i=0;iZ&&seN&&(N=se);var Se=(N-R)/(2*I);v/=Se,R=s.l2r(R),N=s.l2r(N),s.range=s._input.range=k{"use strict";var wg=kt(),ai=dt(),ro=va(),qo=dr(),P5=Qa(),R5=eg(),J1=Et(),yv=fn(),vS=q1(),mS=C5(),$1=Dn(),su=Ia(),yS=j1(),cj=yS.enforce,vj=yS.clean,hS=tf().doAutoRange,bS="start",hj="middle",_S="end",dj=ya().zindexSeparator;xa.layoutStyles=function(e){return qo.syncOrAsync([ro.doAutoMargin,gj],e)};function pj(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function gj(e){var r=e._fullLayout,t=r._size,n=t.p,a=$1.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(yv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),mS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,G,Q){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(G){if(Q==="top")return G._offset-n-$}else return t.t+t.h*(1-(pe.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*(pe.position||0)+$%1;return G._offset-n-$}for(i=0;i0){_j(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:gS(r.yanchor)}).call(P5.positionText,o,i);var f=(r.text.match(P5.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=wg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+vS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:gS(r.yanchor)}).call(P5.positionText,o,p)}}}};function mj(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=yj(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function _j(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"&&mj(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 xj(e,r){var t=e.title,n=e._size,a=0;switch(r===bS?a=t.pad.l:r===_S&&(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 wj(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 gS(e){return e==="top"?su.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":su.MID_SHIFT+"em"}function Mj(e){var r=e.title,t=hj;return qo.isRightAnchor(r)?t=_S:qo.isLeftAnchor(r)&&(t=bS),t}function Aj(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}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var Tj=lf().readPaths,kj=cg(),xS=ju().clearOutlineControllers,z5=Et(),wS=fn(),Sj=_n().arrayEditor,MS=ff(),Cj=MS.getPathString;TS.exports={draw:Ag,drawOne:AS,activateLastSelection:Dj};function Ag(e){var r=e._fullLayout;xS(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(z5.stroke,v).call(z5.fill,f).call(wS.dashLine,y?"solid":d,y?4+h:h);if(Lj(_,e,n),m){var C=Sj(e.layout,"selections",n);_.style({cursor:"move"});var x={element:_.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},b=Tj(l,e);kj(b,_,x)}else _.style("pointer-events",y?"all":"none");p[y]=_}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return qj(e,A)})}}function Lj(e,r,t){var n=t.xref+t.yref;wS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function qj(e,r){if(Tg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){N5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=N5,Ag(e)}}}function Dj(e){if(Tg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=N5,Ag(e)}}function N5(e){if(Tg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(xS(e),delete e._fullLayout._activeSelectionIndex,Ag(e))}}});var SS=te((ace,kS)=>{function Ej(){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}kS.exports=Ej});var LS=te((ice,CS)=>{function Pj(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}CS.exports=Pj});var DS=te((oce,qS)=>{var Rj={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}};qS.exports=Rj});var PS=te((lce,ES)=>{var K1=DS();function zj(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=K1.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=K1.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 _=K1.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=K1.create();function _(U,ee){var ie=U.seg.start,re=U.seg.end,K=ee.seg.start,se=ee.seg.end;return r.pointsCollinear(ie,K,se)?r.pointsCollinear(re,K,se)||r.pointAboveOrOnLine(re,K,se)?1:-1:r.pointAboveOrOnLine(ie,K,se)?1:-1}function C(U){return y.findTransition(function(ee){var ie=_(U,ee.ev);return ie>0})}function x(U,ee){var ie=U.seg,re=ee.seg,K=ie.start,se=ie.end,ce=re.start,Se=re.end;t&&t.checkIntersection(ie,re);var Fe=r.linesIntersect(K,se,ce,Se);if(Fe===!1){if(!r.pointsCollinear(K,se,ce)||r.pointsSame(K,Se)||r.pointsSame(se,ce))return!1;var He=r.pointsSame(K,ce),Xe=r.pointsSame(se,Se);if(He&&Xe)return ee;var Le=!He&&r.pointBetween(K,ce,Se),Qe=!Xe&&r.pointBetween(se,ce,Se);if(He)return Qe?h(ee,se):h(U,Se),ee;Le&&(Xe||(Qe?h(ee,se):h(U,Se)),h(ee,K))}else Fe.alongA===0&&(Fe.alongB===-1?h(U,ce):Fe.alongB===0?h(U,Fe.pt):Fe.alongB===1&&h(U,Se)),Fe.alongB===0&&(Fe.alongA===-1?h(ee,K):Fe.alongA===0?h(ee,Fe.pt):Fe.alongA===1&&h(ee,se));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let U=function(){if(M){var ee=x(A,M);if(ee)return ee}return D?x(A,D):!1};var V=U;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=U();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(K1.node({ev:A}))}else{var Z=A.status;if(Z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(Z.prev)&&y.exists(Z.next)&&x(Z.prev.ev,Z.next.ev),t&&t.statusRemove(Z.ev.seg),Z.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}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 Nj(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(V,U,ee){return f.index=V,f.matches_head=U,f.matches_pt1=ee,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Q1(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 Fj={union:function(e,r){return Q1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Q1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Q1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Q1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Q1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};NS.exports=Fj});var HS=te((fce,IS)=>{var Ij={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 Hj=SS(),Bj=LS(),BS=PS(),Oj=zS(),eh=FS(),OS=HS(),Do=!1,rh=Bj(),Ni;Ni={buildLog:function(e){return e===!0?Do=Hj():e===!1&&(Do=!1),Do===!1?!1:Do.list},epsilon:function(e){return rh.epsilon(e)},segments:function(e){var r=BS(!0,rh,Do);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=BS(!1,rh,Do);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:eh.union(e.combined,Do),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:eh.intersect(e.combined,Do),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:eh.difference(e.combined,Do),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:eh.differenceRev(e.combined,Do),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:eh.xor(e.combined,Do),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Oj(e.segments,rh,Do),inverted:e.inverted}},polygonFromGeoJSON:function(e){return OS.toPolygon(Ni,e)},polygonToGeoJSON:function(e){return OS.fromPolygon(Ni,rh,e)},union:function(e,r){return th(e,r,Ni.selectUnion)},intersect:function(e,r){return th(e,r,Ni.selectIntersect)},difference:function(e,r){return th(e,r,Ni.selectDifference)},differenceRev:function(e,r){return th(e,r,Ni.selectDifferenceRev)},xor:function(e,r){return th(e,r,Ni.selectXor)}};function th(e,r,t){var n=Ni.segments(e),a=Ni.segments(r),i=Ni.combine(n,a),o=t(i);return Ni.polygon(o)}typeof window=="object"&&(window.PolyBool=Ni);US.exports=Ni});var VS=te((vce,GS)=>{GS.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 Cg=te((hce,WS)=>{"use strict";var I5=Cd().dot,kg=Rn().BADNUM,Sg=WS.exports={};Sg.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||_===kg||_o||p&&u(m))}function v(m,p){var y=m[0],_=m[1];if(y===kg||ya||_===kg||_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(I5(v,u))>a)return!0;return!1};Sg.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 XS=te((dce,ZS)=>{"use strict";ZS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var gC=te((pce,pC)=>{"use strict";var jS=YS(),Uj=VS(),ih=dt(),Yj=fn().dashStyle,nh=Et(),Gj=cs(),Vj=$u().makeEventData,fh=hv(),Wj=fh.freeMode,Zj=fh.rectMode,oh=fh.drawMode,U5=fh.openMode,Y5=fh.selectMode,JS=ff(),$S=V1(),tC=cg(),nC=ju().clearOutline,aC=lf(),H5=aC.handleEllipse,Xj=aC.readPaths,jj=sg().newShapes,Jj=v5(),$j=F5().activateLastSelection,qg=dr(),Kj=qg.sorterAsc,iC=Cg(),ah=Ud(),Eo=ca().getFromId,Qj=eg(),eJ=Mg().redrawReglTraces,Dg=XS(),ps=Dg.MINSELECT,rJ=iC.filter,G5=iC.tester,V5=ag(),KS=V5.p2r,tJ=V5.axValue,nJ=V5.getTransform;function W5(e){return e.subplot!==void 0}function aJ(e,r,t,n,a){var i=!W5(n),o=Wj(a),l=Zj(a),s=U5(a),u=oh(a),f=Y5(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=nJ(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=qg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,R=p._invScaleY,N=A,I=k,Z="M"+A+","+k,H=n.xaxes[0],V=n.yaxes[0],U=H._length,ee=V._length,ie=e.altKey&&!(oh(a)&&s),re,K,se,ce,Se,Fe,He;lC(e,m,n),o&&(re=rJ([[A,k]],Dg.BENDPX));var Xe=_.selectAll("path.select-outline-"+x.id).data([1]),Le=u?p.newshape:p.newselection;u&&(n.hasText=Le.label.text||Le.label.texttemplate);var Qe=u&&!s?Le.fillcolor:"rgba(0,0,0,0)",fe=Le.line.color||(i?nh.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Xe.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Le.opacity/2:1,"stroke-dasharray":Yj(Le.line.dash,Le.line.width),"stroke-width":Le.line.width+"px","shape-rendering":"crispEdges"}).call(nh.stroke,fe).call(nh.fill,Qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",Z+"Z");var me=_.append("path").attr("class","zoombox-corners").style({fill:nh.background,stroke:nh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&n.hasText){var Ce=_.select(".label-temp");Ce.empty()&&(Ce=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+Dg.SELECTID,G=[],Q=Eg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var _e=H._id,De=V._id;vC(m,_e,De,Q);for(var Ie=(m.layout||{}).selections||[],nr=[],ar=!1,Be=0;Be=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;ah.done(pe).then(function(){if(ah.clear(pe),_e===2){for(Xe.remove(),Se=0;Se-1&&oC(De,m,n.xaxes,n.yaxes,n.subplot,n,Xe),Ie==="event"&&uh(m,void 0);Gj.click(m,De,x.id)}).catch(qg.error)}},n.doneFn=function(){me.remove(),ah.done(pe).then(function(){ah.clear(pe),!y&&ce&&n.selectionDefs&&(ce.subtract=ie,n.selectionDefs.push(ce),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,se)),(y||u)&&lh(n,y),n.doneFnCompleted&&n.doneFnCompleted(G),f&&uh(m,He)}).catch(qg.error)}}function oC(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(uJ(l)){lC(e,r,i),h=Eg(r,t,n,a);var k=fJ(l,h),M=k.pointNumbers.length>0;if(M?cJ(h,k):vJ(h)&&(C=eC(k))){for(o&&o.remove(),A=0;A=0}function sJ(e){return e._fullLayout._activeSelectionIndex>=0}function lh(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;lJ(a)&&a._fullLayout._deactivateShape(a),sJ(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=oh(t),s=Y5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=jj(u,e)),f&&ih.call("_guiRelayout",a,{shapes:f});var v;s&&!W5(e)&&(v=Jj(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,ih.call("_guiRelayout",a,{selections:v}).then(function(){r&&$j(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function QS(e){return e._id}function Eg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(QS),o=t.map(QS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function cJ(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 sh(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var _e=rC(e,!0);if(_e.length){var De=_e[0].xref,Ie=_e[0].yref;if(De&&Ie){var nr=hC(_e),ar=dC([Eo(e,De,"x"),Eo(e,Ie,"y")]);ar(G,nr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&uh(e,G),h._reselect=!1}if(!o&&h._deselect){var Be=h._deselect;l=Be.xref,s=Be.yref,pJ(l,s,f)||vC(e,l,s,n),$&&(G.points.length?uh(e,G):j5(e)),h._deselect=!1}return{eventData:G,selectionTesters:t}}function dJ(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 ch=te((mce,yC)=>{"use strict";yC.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 bv=te((bce,xC)=>{"use strict";var bC=J5(),_C=Ka(),Pg=ya(),_J=_n().templatedArray,yce=ch();xC.exports=_J("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:_C({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:bC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:bC.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",Pg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Pg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Pg.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",Pg.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:_C({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Rg=te((_ce,wC)=>{"use strict";wC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var $5=te((xce,MC)=>{"use strict";MC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nc=te((wce,DC)=>{"use strict";var AC=L2().axisHoverFormat,{hovertemplateAttrs:xJ,texttemplateAttrs:wJ,templatefallbackAttrs:TC}=lc(),kC=J0(),MJ=Ka(),SC=es().dash,AJ=es().pattern,TJ=fn(),kJ=Rg(),vh=ua().extendFlat,SJ=$5();function CC(e){return{valType:"any",dflt:0,editType:"calc"}}function LC(e){return{valType:"any",editType:"calc"}}function qC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}DC.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:CC("x"),yperiod:CC("y"),xperiod0:LC("x0"),yperiod0:LC("y0"),xperiodalignment:qC("x"),yperiodalignment:qC("y"),xhoverformat:AC("x"),yhoverformat:AC("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:wJ(),texttemplatefallback:TC({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:xJ({},{keys:kJ.eventDataKeys}),hovertemplatefallback:TC(),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:vh({},SC,{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:SJ(!0),fillgradient:vh({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:AJ,marker:vh({symbol:{valType:"enumerated",values:TJ.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:vh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:vh({},SC,{arrayOk:!0}),editType:"calc"},kC("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"},kC("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:MJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var K5=te((Ace,RC)=>{"use strict";var EC=bv(),PC=Nc().line,CJ=es().dash,zg=ua().extendFlat,LJ=xo().overrideAll,qJ=_n().templatedArray,Mce=ch();RC.exports=LJ(qJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:zg({},EC.xref,{}),yref:zg({},EC.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:PC.color,width:zg({},PC.width,{min:1,dflt:1}),dash:zg({},CJ,{dflt:"dot"})}}),"arraydraw","from-root")});var IC=te((Tce,FC)=>{"use strict";var zC=dr(),Ng=Dn(),DJ=_l(),EJ=K5(),NC=ff();FC.exports=function(r,t){DJ(r,t,{name:"selections",handleItemDefaults:PJ});for(var n=t.selections,a=0;a{"use strict";HC.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 hh=te((Sce,YC)=>{"use strict";var RJ=dt(),OC=dr(),UC=ca();YC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=RJ.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 GC=F5(),dh=gC();VC.exports={moduleType:"component",name:"selections",layoutAttributes:K5(),supplyLayoutDefaults:IC(),supplyDrawNewSelectionDefaults:BC(),includeBasePlot:hh()("selections"),draw:GC.draw,drawOne:GC.drawOne,reselect:dh.reselect,prepSelect:dh.prepSelect,clearOutline:dh.clearOutline,clearSelectionsCache:dh.clearSelectionsCache,selectOnClick:dh.selectOnClick}});var vL=te((Lce,cL)=>{"use strict";var nb=kt(),Po=dr(),WC=Po.numberFormat,zJ=Ql(),NJ=N3(),Fg=dt(),rL=Po.strTranslate,FJ=Qa(),ZC=Et(),vf=fn(),IJ=cs(),XC=Dn(),HJ=af(),BJ=ko(),tL=hv(),Ig=tL.selectingOrDrawing,OJ=tL.freeMode,UJ=Ia().FROM_TL,YJ=eg(),GJ=Mg().redrawReglTraces,VJ=va(),eb=ca().getFromId,WJ=uu().prepSelect,ZJ=uu().clearOutline,XJ=uu().selectOnClick,Q5=L5(),ab=ya(),jC=ab.MINDRAG,di=ab.MINZOOM,JC=!0;function jJ(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,Z,H,V,U,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){pr._fullLayout._deactivateShape(pr);return}var Tr=pr._fullLayout.clickmode;if(tb(pr),Ye===2&&!f&&mr(),u)Tr.indexOf("select")>-1&&XJ(Ze,pr,p,y,r.id,ce),Tr.indexOf("event")>-1&&IJ.click(pr,Ze,r.id);else if(Ye===1&&f){var yr=o?h:v,wr=o==="s"||l==="w"?0:1,Hr=yr._name+".range["+wr+"]",Sr=JJ(yr,wr),Dr="left",ur="middle";if(yr.fixedrange)return;o?(ur=o==="n"?"top":"bottom",yr.side==="right"&&(Dr="right")):l==="e"&&(Dr="right"),pr._context.showAxisRangeEntryBoxes&&nb.select(se).call(FJ.makeEditable,{gd:pr,immediate:!0,background:pr._fullLayout.paper_bgcolor,text:String(Sr),fill:yr.tickfont?yr.tickfont.color:"#444",horizontalAlign:Dr,verticalAlign:ur}).on("edit",function(xe){var Ae=yr.d2r(xe);Ae!==void 0&&Fg.call("_guiRelayout",pr,Hr,Ae)})}}BJ.init(ce);var He,Xe,Le,Qe,fe,me,Ce,pe,G,Q;function $(Ye,Ze,pr){var Tr=se.getBoundingClientRect();He=Ze-Tr.left,Xe=pr-Tr.top,e._fullLayout._calcInverseTransform(e);var yr=Po.apply3DTransform(e._fullLayout._invTransform)(He,Xe);He=yr[0],Xe=yr[1],Le={l:He,r:He,w:0,t:Xe,b:Xe,h:0},Qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:zJ(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+x+"V"+b+"H0V0",me=!1,Ce="xy",Q=!1,pe=iL(s,Qe,_,C,fe),G=oL(s,_,C)}function _e(Ye,Ze){if(e._transitioningWithDuration)return!1;var pr=Math.max(0,Math.min(x,ee*Ye+He)),Tr=Math.max(0,Math.min(b,ie*Ze+Xe)),yr=Math.abs(pr-He),wr=Math.abs(Tr-Xe);Le.l=Math.min(He,pr),Le.r=Math.max(He,pr),Le.t=Math.min(Xe,Tr),Le.b=Math.max(Xe,Tr);function Hr(){Ce="",Le.r=Le.l,Le.t=Le.b,G.attr("d","M0,0Z")}if(A.isSubplotConstrained)yr>di||wr>di?(Ce="xy",yr/x>wr/b?(wr=yr*b/x,Xe>Tr?Le.t=Xe-wr:Le.b=Xe+wr):(yr=wr*x/b,He>pr?Le.l=He-yr:Le.r=He+yr),G.attr("d",Hg(Le))):Hr();else if(k.isSubplotConstrained)if(yr>di||wr>di){Ce="xy";var Sr=Math.min(Le.l/x,(b-Le.b)/b),Dr=Math.max(Le.r/x,(b-Le.t)/b);Le.l=Sr*x,Le.r=Dr*x,Le.b=(1-Sr)*b,Le.t=(1-Dr)*b,G.attr("d",Hg(Le))}else Hr();else!D||wr0){var xe;if(k.isSubplotConstrained||!M&&D.length===1){for(xe=0;xe1&&(Hr.maxallowed!==void 0&&N===(Hr.range[0]1&&(Sr.maxallowed!==void 0&&I===(Sr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function KJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function iL(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",rL(t,n)).attr("d",a+"Z")}function oL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:ZC.background,stroke:ZC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",rL(r,t)).attr("d","M0,0Z")}function lL(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"),sL(e,r,a,i)}function sL(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 tb(e){nb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function uL(e){JC&&e.data&&e._context.showTips&&(Po.notifier(Po._(e,"Double-click to zoom back out"),"long"),JC=!1)}function QJ(e,r){return"M"+(e.l-.5)+","+(r-di-.5)+"h-3v"+(2*di+1)+"h3ZM"+(e.r+.5)+","+(r-di-.5)+"h3v"+(2*di+1)+"h-3Z"}function e$(e,r){return"M"+(r-di-.5)+","+(e.t-.5)+"v-3h"+(2*di+1)+"v3ZM"+(r-di-.5)+","+(e.b+.5)+"v3h"+(2*di+1)+"v-3Z"}function Hg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,di)/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 QC(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 r$=kt(),Bg=cs(),t$=ko(),n$=af(),Al=vL().makeDragBox,wa=ya().DRAGGERSIZE;Og.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){r$.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=Al(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]&&Bg.hover(r,h,i)},Bg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,t$.unhover(r,h))},r._context.showAxisDragHandles&&(Al(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),Al(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),Al(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),Al(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),Al(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),Al(r,o,l._offset,f,l._length*.1,wa,"","w"),Al(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),Al(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),Al(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),Al(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Bg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Bg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Og.updateFx(r)}};Og.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";n$(r._draggers,t)}});var pL=te((Dce,dL)=>{"use strict";var hL=dt();dL.exports=function(r){for(var t=hL.layoutArrayContainers,n=hL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var a$=Js(),ob=Sd(),ph=Bu(),i$=e2().sorterAsc,lb=dt();gh.containerArrayMatch=pL();var o$=gh.isAddVal=function(r){return r==="add"||a$(r)},gL=gh.isRemoveVal=function(r){return r===null||r==="remove"};gh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=lb.getComponentMethod(o,"supplyLayoutDefaults"),s=lb.getComponentMethod(o,"draw"),u=lb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===ob||s===ob,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&ph.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(gL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return ph.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(i$),p=t.get(),y=p||[],_=i(h,o).get(),C=[],x=-1,b=y.length,A,k,M,D,R,N,I,Z;for(A=0;Ay.length-(I?0:1)){ph.warn("index out of range",o,M);continue}if(N!==void 0)R.length>1&&ph.warn("Insertion & removal are incompatible with edits to the same index.",o,M),gL(N)?C.push(M):I?(N==="add"&&(N={}),y.splice(M,0,N),_&&_.splice(M,0,{})):ph.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!==ob){var H;if(x===-1)H=m;else{for(b=Math.max(y.length,b),H=[],A=0;A=x));A++)H.push(M);for(A=x;A{"use strict";var xL=Ht(),wL=dt(),ii=dr(),mh=va(),ML=ca(),AL=Et(),yh=ML.cleanId,l$=ML.getFromTrace,sb=wL.traceIs,s$=["x","y","z"];Ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ii.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=(mh.subplotsRegistry.cartesian||{}).attrRegex,a=(mh.subplotsRegistry.polar||{}).attrRegex,i=(mh.subplotsRegistry.ternary||{}).attrRegex,o=(mh.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"),AL.clean(e),e.template&&e.template.layout&&Ro.cleanLayout(e.template.layout),e};function _v(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=yh(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=_L(r);t;){if(t in e)return!0;t=_L(t)}return!1};Ro.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>ii.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;nii.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)?ub(a,i):!1))return!1}return!0}return!1};Ro.collectionsAreEqual=ub});var pb=te(Ft=>{"use strict";var Vg=kt(),c$=Ht(),v$=h2(),Nr=dr(),xn=Nr.nestedProperty,vb=x1(),pi=i9(),zo=dt(),Kg=W0(),ft=va(),oi=Dn(),h$=z3(),d$=bl(),fb=fn(),p$=Et(),g$=ib().initInteractions,m$=gc(),y$=uu().clearOutline,qL=oc().dfltConfig,Yg=mL(),ra=TL(),nn=Mg(),hf=xo(),b$=ya().AX_NAME_PATTERN,cb=0,kL=5;function _$(e,r,t,n){var a;if(e=Nr.getGraphDiv(e),vb.init(e),Nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=vb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Nr.isPlotDiv(e)&&Nr.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)}EL(e,n),t||(t={}),Vg.select(e).classed("js-plotly-plot",!0),fb.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)&&(Y$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),fb.initGradients(e),fb.initPatterns(e),s&&oi.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 PL(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]),Zg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Zg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function T$(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 Z=D.parts[I],H=D.parts[I-1]+"."+Z,V=D.parts.slice(0,I).join("."),U=xn(e.layout,V).get(),ee=xn(n,V).get(),ie=D.get();if(R!==void 0){_[M]=R,C[M]=Z==="reverse"?R:fu(ie);var re=Kg.getLayoutValObject(n,D.parts);if(re&&re.impliedEdits&&R!==null)for(var K in re.impliedEdits)x(Nr.relativeAttr(M,K),re.impliedEdits[K]);if(["width","height"].indexOf(M)!==-1)if(R){x("autosize",null);var se=M==="height"?"width":"height";x(se,n[se])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",R?null:n.width),x("height",R?null:n.height);else if(H.match(UL))k(H),xn(n,V+"._inputRange").set(null);else if(H.match(YL)){k(H),xn(n,V+"._inputRange").set(null);var ce=xn(n,V).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else H.match(L$)&&xn(n,V+"._inputDomain").set(null);if(Z==="type"){A=U;var Se=ee.type==="linear"&&R==="log",Fe=ee.type==="log"&&R==="linear";if(Se||Fe){if(!A||!A.range)x(V+".autorange",!0);else if(ee.autorange)Se&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var He=A.range[0],Xe=A.range[1];Se?(He<=0&&Xe<=0&&x(V+".autorange",!0),He<=0?He=Xe/1e6:Xe<=0&&(Xe=He/1e6),x(V+".range[0]",Math.log(He)/Math.LN10),x(V+".range[1]",Math.log(Xe)/Math.LN10)):(x(V+".range[0]",Math.pow(10,He)),x(V+".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(V+".autorange",!0),x(V+".range",null);xn(n,V+"._inputRange").set(null)}else if(Z.match(b$)){var Le=xn(n,M).get(),Qe=(R||{}).type;(!Qe||Qe==="-")&&(Qe="linear"),zo.getComponentMethod("annotations","convertCoords")(e,Le,Qe,x),zo.getComponentMethod("images","convertCoords")(e,Le,Qe,x)}var fe=Yg.containerArrayMatch(M);if(fe){f=fe.array,v=fe.index;var me=fe.property,Ce=re||{editType:"calc"};v!==""&&me===""&&(Yg.isAddVal(R)?C[M]=null:Yg.isRemoveVal(R)?C[M]=(xn(t,f).get()||[])[v]:Nr.warn("unrecognized full object value",r)),hf.update(y,Ce),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[me]=R,delete r[M]}else Z==="reverse"?(U.range?U.range.reverse():(x(V+".autorange",!0),U.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=Yg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);G||(y.plot=!0)}for(var Q in b){A=oi.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var _e in $)b[_e]||(oi.getFromId(e,_e)._constraintShrinkable=!0)}}(VL(e)||r.height||r.width)&&(y.plot=!0);var De=n.shapes;for(v=0;v1;)if(n.pop(),t=xn(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function E$(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=Ft.newPlot(e,r,t,n).then(()=>{for(let[V,U]of H)U.forEach(ee=>e.on(V,ee));return Ft.react(e,r,t,n)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),R$(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=F$(e,s,h,d,m),y=p.newDataRevision,_=N$(e,l,v,d,m,y);if(VL(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 N$(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=Kg.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 Z=n._frameQueue.pop();Z.onInterrupt&&Z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(Z){if(Z.length!==0){for(var H=0;Hn._timeToNext&&m()};Z()}var y=0;function _(Z){return Array.isArray(a)?y>=a.length?Z.transitionOpts=a[y]:Z.transitionOpts=a[0]:Z.transitionOpts=a,y++,Z}var C,x,b=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Nr.isPlainObject(r);if(M)b.push({type:"object",data:_(Nr.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 H$(e,r,t){if(e=Nr.getGraphDiv(e),r==null)return Promise.resolve();if(!Nr.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(Nr.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&&cbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Nr.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 pi&&pi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function O$(e){e=Nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),vb.purge(e),r._container&&r._container.remove(),delete e._context,e}function U$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Nr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Nr.inverseTransformMatrix(Nr.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 Y$(e){var r=Vg.select(e),t=e._fullLayout;if(t._calcInverseTransform=U$,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={};Vg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Nr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(m$.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=I$;Ft.addFrames=H$;Ft.deleteFrames=B$;Ft.addTraces=IL;Ft.deleteTraces=HL;Ft.extendTraces=NL;Ft.moveTraces=hb;Ft.prependTraces=FL;Ft.newPlot=A$;Ft._doPlot=_$;Ft.purge=O$;Ft.react=z$;Ft.redraw=M$;Ft.relayout=bh;Ft.restyle=Xg;Ft.setPlotConfig=x$;Ft.update=Jg;Ft._guiRelayout=db(bh);Ft._guiRestyle=db(Xg);Ft._guiUpdate=db(Jg);Ft._storeDirectGUIEdit=C$});var Fc=te(gs=>{"use strict";var G$=dt();gs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};gs.getRedrawFunc=function(e){return function(){G$.getComponentMethod("colorbar","draw")(e)}};gs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};gs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var WL=window.URL||window.webkitURL;gs.createObjectURL=function(e){return WL.createObjectURL(e)};gs.revokeObjectURL=function(e){return WL.revokeObjectURL(e)};gs.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=V$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};gs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function V$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var mb=kt(),Nce=dr(),W$=fn(),Z$=Et(),Fce=gc(),gb=/"/g,xh="TOBESTRIPPED",X$=new RegExp('("'+xh+")|("+xh+'")',"g");function j$(e){var r=mb.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 J$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ZL.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(W$.setRect,0,0,l,s).call(Z$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var $$=dr(),K$=jd().EventEmitter,wh=Fc();function Q$(e){var r=e.emitter||new K$,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"||$$.isSafari()?_=wh.encodeSVG(o):(y=wh.createBlob(o,"svg"),_=wh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,wh.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,wh.revokeObjectURL(_),a(C),!e.promise)return r.emit("error",C)},p.src=_});return e.promise?t:r}XL.exports=Q$});var bb=te((Bce,$L)=>{"use strict";var jL=Ht(),JL=pb(),eK=va(),ms=dr(),Mh=Fc(),rK=em(),tK=rm(),nK=cd().version,yb={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 aK(e,r){r=r||{};var t,n,a,i;ms.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=ms.getGraphDiv(e),t=ms.extendDeep([],e.data),n=ms.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||ms.validate(r[k],yb[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 "+ms.join2(yb.format.values,", "," or ")+".");var l={};function s(k,M){return ms.coerce(r,l,yb,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=ms.extendFlat({},n);f?y.width=f:r.width===null&&jL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&jL(i.height)&&(y.height=i.height);var _=ms.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Mh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,Mh.getDelay(p._fullLayout))})}function b(){return new Promise(function(k,M){var D=rK(p,u,h),R=p._fullLayout.width,N=p._fullLayout.height;function I(){JL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var Z=eK.graphJson(p,!1,"keepdata","object",!0,!0);return Z.version=nK,Z=JSON.stringify(Z),I(),k(m?Z:Mh.encodeJSON(Z))}if(I(),u==="svg")return k(m?D:Mh.encodeSVG(D));var H=document.createElement("canvas");H.id=ms.randstr(),tK({format:u,width:R,height:N,scale:h,canvas:H,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(Mh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){JL.newPlot(p,t,y,_).then(C).then(x).then(b).then(function(D){k(A(D))}).catch(function(D){M(D)})})}$L.exports=aK});var eq=te((Oce,QL)=>{"use strict";var No=dr(),iK=va(),oK=W0(),lK=oc().dfltConfig,Tl=No.isPlainObject,Hc=Array.isArray,_b=No.isArrayOrTypedArray;QL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=oK.get(),a=[],i={_context:No.extendFlat({},lK)},o,l;Hc(r)?(i.data=No.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),Tl(t)?(i.layout=No.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),iK.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("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(Hc(f[b])){f[b].length>v[b].length&&n.push(Ma("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(Ma("dynamic",a,u.concat(b,x),k,M)):n.push(Ma("value",a,u.concat(b,x),k))}else n.push(Ma("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(Ma("dynamic",a,u.concat(b),k,M)):n.push(Ma("value",a,u.concat(b),k))}else if(h.items&&!m&&Hc(f)){var R=y[Object.keys(y)[0]],N=[],I,Z;for(I=0;I{"use strict";var dK=dr(),nm=Fc();function pK(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=nm.createBlob(e,t),u=nm.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),nm.revokeObjectURL(u),s=null,o(r);if(dK.isSafari()){var f=t==="svg"?",":";base64,";return nm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}rq.exports=pK});var xb=te((Gce,aq)=>{"use strict";var nq=dr(),gK=bb(),mK=tq(),Yce=Fc();function yK(e,r){var t;return nq.isPlainObject(e)||(t=nq.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=gK(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),mK(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}aq.exports=yK});var uq=te(wb=>{"use strict";var Fi=dr(),Ii=Fi.isPlainObject,iq=W0(),oq=va(),bK=_o(),lq=_n(),sq=oc().dfltConfig;wb.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:sq},{data:e.data,layout:e.layout}),oq.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={};Ah(d,m,xK.bind(null,d));var p=Fi.coerce(d,{},bK,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),Ah(t,n.layout,_K.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&am(i,n.layout);var h=a.data;if(Ii(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);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&wK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(MK)};function wK(e){for(var r=0;r{"use strict";var ha=pb();qn._doPlot=ha._doPlot;qn.newPlot=ha.newPlot;qn.restyle=ha.restyle;qn.relayout=ha.relayout;qn.redraw=ha.redraw;qn.update=ha.update;qn._guiRestyle=ha._guiRestyle;qn._guiRelayout=ha._guiRelayout;qn._guiUpdate=ha._guiUpdate;qn._storeDirectGUIEdit=ha._storeDirectGUIEdit;qn.react=ha.react;qn.extendTraces=ha.extendTraces;qn.prependTraces=ha.prependTraces;qn.addTraces=ha.addTraces;qn.deleteTraces=ha.deleteTraces;qn.moveTraces=ha.moveTraces;qn.purge=ha.purge;qn.addFrames=ha.addFrames;qn.deleteFrames=ha.deleteFrames;qn.animate=ha.animate;qn.setPlotConfig=ha.setPlotConfig;var AK=h1().getGraphDiv,TK=gg().eraseActiveShape;qn.deleteActiveShape=function(e){return TK(AK(e))};qn.toImage=bb();qn.validate=eq();qn.downloadImage=xb();var fq=uq();qn.makeTemplate=fq.makeTemplate;qn.validateTemplate=fq.validateTemplate});var hq=te((Zce,vq)=>{"use strict";var Mb=dr(),kK=dt();vq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=kK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=Mb.minRowLength(i);o?l=Math.min(u,Mb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=Mb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var mq=te((Xce,gq)=>{"use strict";var dq=dr().dateTick0,SK=Rn(),CK=SK.ONEWEEK;function pq(e,r){return e%CK===0?dq(r,1):dq(r,0)}gq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",pq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",pq(l,t.ycalendar)),a("yperiodalignment"))}}});var _q=te((jce,bq)=>{"use strict";var yq=["orientation","groupnorm","stackgaps"];bq.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 xq=Et(),wq=ts().hasColorscale,Mq=$0(),LK=ei();Aq.exports=function(r,t,n,a,i,o={}){var l=LK.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),wq(r,"marker")&&Mq(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=xq.background:u=xq.defaultLine,i("marker.line.color",u),wq(r,"marker.line")&&Mq(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 Tb=te(($ce,Tq)=>{"use strict";var qK=dr().isArrayOrTypedArray,DK=ts().hasColorscale,EK=$0();Tq.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),DK(r,"line"))EK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(qK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Sq=te((Kce,kq)=>{"use strict";kq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var kb=te((Qce,Cq)=>{"use strict";var PK=dr();Cq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),PK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Sb=te((e0e,qq)=>{"use strict";var om=Et(),Lq=dr().isArrayOrTypedArray;function RK(e){for(var r=om.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Dq=dr(),zK=dt(),NK=Nc(),FK=Rg(),xv=ei(),IK=hq(),HK=mq(),BK=_q(),OK=Ab(),UK=Tb(),Eq=Sq(),YK=kb(),GK=Sb(),VK=dr().coercePattern;Pq.exports=function(r,t,n,a){function i(d,m){return Dq.coerce(r,t,NK,d,m)}var o=IK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){HK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=BK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var WK=j1().getAxisGroup;zq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=WK(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 Iq=te((n0e,Fq)=>{"use strict";var ZK=dr(),XK=Nq(),jK=Nc();Fq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return ZK.coerce(a._input,a,jK,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 Bq=te((a0e,Hq)=>{"use strict";var JK=dr(),$K=ep();Hq.exports=function(e,r){function t(a,i){return JK.coerce(e,r,$K,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Yq=te((i0e,Uq)=>{"use strict";var KK=Ht(),Oq=dr(),QK=Oq.dateTime2ms,lm=Oq.incrementMonth,eQ=Rn(),rQ=eQ.ONEAVGMONTH;Uq.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(KK(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=QK(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*rQ)),k=lm(d,l*b,u);k>x;)k=lm(k,-l,u);for(;k<=x;)k=lm(k,l,u);A=lm(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 qb=te((o0e,Vq)=>{"use strict";var Cb=ts().hasColorscale,Lb=cp(),Gq=ei();Vq.exports=function(r,t){Gq.hasLines(t)&&Cb(t,"line")&&Lb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Gq.hasMarkers(t)&&(Cb(t,"marker")&&Lb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Cb(t,"marker.line")&&Lb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Th=te((l0e,Wq)=>{"use strict";var Bn=dr();Wq.exports=function(r,t){for(var n=0;n{"use strict";var Zq=dr();Xq.exports=function(r,t){Zq.isArrayOrTypedArray(t.selectedpoints)&&Zq.tagSelected(r,t)}});var um=te((u0e,rD)=>{"use strict";var jq=Ht(),Eb=dr(),kh=Dn(),Jq=Yq(),Db=Rn().BADNUM,Pb=ei(),tQ=qb(),nQ=Th(),aQ=sm();function iQ(e,r){var t=e._fullLayout,n=r._xA=kh.getFromId(e,r.xaxis||"x","x"),a=r._yA=kh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Jq(r,n,"x",i),s=Jq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Rb(r,t,n,a),p=!1,y,_,C,x,b,A;Qq(t,r);var k="x",M="y",D;if(m)Eb.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=Kq(r,v);$q(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";tD.exports=fm;var oQ=dr().distinctVals;function fm(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";aD.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var fD=te((v0e,uD)=>{"use strict";var Io=Ht(),{isArrayOrTypedArray:cu}=dr(),{BADNUM:wv}=Rn(),lQ=dt(),Sh=Dn(),{getAxisGroup:sQ}=j1(),cm=nD(),{TEXTPAD:uQ}=iD(),{LINE_SPACING:fQ}=Ia(),{BR_TAG_ALL:cQ}=Qa();function vQ(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*fQ*t+uQ;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 wQ(e,r,t,n){for(var a=Mv(n),i=0;i{"use strict";var cD=um(),vD=fD().setGroupPositions;function AQ(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 kQ=fn(),yD=Rn(),Ch=yD.BADNUM,bD=yD.LOG_CLIP,pD=bD+.5,gD=bD-.5,vm=dr(),SQ=vm.segmentsIntersect,mD=vm.constrain,Ob=Rg();_D.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=Ob.minTolerance,x=r.length,b=new Array(x),A=0,k,M,D,R,N,I,Z,H,V,U,ee,ie,re,K,se,ce;function Se(ur){var xe=r[ur];if(!xe)return!1;var Ae=t.linearized?a.l2p(xe.x):a.c2p(xe.x),$e=t.linearized?i.l2p(xe.y):i.c2p(xe.y);if(Ae===Ch){if(o&&(Ae=a.c2p(xe.x,!0)),Ae===Ch)return!1;l&&$e===Ch&&(Ae*=Math.abs(a._m*u*(a._m>0?pD:gD)/(i._m*s*(i._m>0?pD:gD)))),Ae*=1e3}if($e===Ch){if(l&&($e=i.c2p(xe.y,!0)),$e===Ch)return!1;$e*=1e3}return[Ae,$e]}function Fe(ur,xe,Ae,$e){var rr=Ae-ur,Lr=$e-xe,Yr=.5-ur,Fr=.5-xe,st=rr*rr+Lr*Lr,xt=rr*Yr+Lr*Fr;if(xt>0&&xt1||Math.abs(Yr.y-Ae[0][1])>1)&&(Yr=[Yr.x,Yr.y],$e&&Qe(Yr,ur)Ce||ur[1]G)return[mD(ur[0],me,Ce),mD(ur[1],pe,G)]}function lr(ur,xe){if(ur[0]===xe[0]&&(ur[0]===me||ur[0]===Ce)||ur[1]===xe[1]&&(ur[1]===pe||ur[1]===G))return!0}function hr(ur,xe){var Ae=[],$e=or(ur),rr=or(xe);return $e&&rr&&lr($e,rr)||($e&&Ae.push($e),rr&&Ae.push(rr)),Ae}function Ke(ur,xe,Ae){return function($e,rr){var Lr=or($e),Yr=or(rr),Fr=[];if(Lr&&Yr&&lr(Lr,Yr))return Fr;Lr&&Fr.push(Lr),Yr&&Fr.push(Yr);var st=2*vm.constrain(($e[ur]+rr[ur])/2,xe,Ae)-((Lr||$e)[ur]+(Yr||rr)[ur]);if(st){var xt;Lr&&Yr?xt=st>0==Lr[ur]>Yr[ur]?Lr:Yr:xt=Lr||Yr,xt[ur]+=st}return Fr}}var gr;m==="linear"||m==="spline"?gr=Be:m==="hv"||m==="vh"?gr=hr:m==="hvh"?gr=Ke(0,me,Ce):m==="vhv"&&(gr=Ke(1,pe,G));function mr(ur,xe){var Ae=xe[0]-ur[0],$e=(xe[1]-ur[1])/Ae,rr=(ur[1]*xe[0]-xe[1]*ur[0])/Ae;return rr>0?[$e>0?me:Ce,G]:[$e>0?Ce:me,pe]}function Te(ur){var xe=ur[0],Ae=ur[1],$e=xe===b[A-1][0],rr=Ae===b[A-1][1];if(!($e&&rr))if(A>1){var Lr=xe===b[A-2][0],Yr=Ae===b[A-2][1];$e&&(xe===me||xe===Ce)&&Lr?Yr?A--:b[A-1]=ur:rr&&(Ae===pe||Ae===G)&&Yr?Lr?A--:b[A-1]=ur:b[A++]=ur}else b[A++]=ur}function Ue(ur){b[A-1][0]!==ur[0]&&b[A-1][1]!==ur[1]&&Te([De,Ie]),Te(ur),nr=null,De=Ie=0}var kr=vm.isArrayOrTypedArray(v);function Ur(ur){if(ur&&f&&(ur.i=k,ur.d=r,ur.trace=n,ur.marker=kr?v[ur.i]:v,ur.backoff=f),He=ur[0]/s,Xe=ur[1]/u,$=ur[0]Ce?Ce:0,_e=ur[1]G?G:0,$||_e){if(!A)b[A++]=[$||ur[0],_e||ur[1]];else if(nr){var xe=gr(nr,ur);xe.length>1&&(Ue(xe[0]),b[A++]=xe[1])}else ar=gr(b[A-1],ur)[0],b[A++]=ar;var Ae=b[A-1];$&&_e&&(Ae[0]!==$||Ae[1]!==_e)?(nr&&(De!==$&&Ie!==_e?Te(De&&Ie?mr(nr,ur):[De||$,Ie||_e]):De&&Ie&&Te([De,Ie])),Te([$,_e])):De-$&&Ie-_e&&Te([$||De,_e||Ie]),nr=ur,De=$,Ie=_e}else nr&&Ue(gr(nr,ur)[0]),b[A++]=ur}for(k=0;kLe(I,tr))break;D=I,re=V[0]*H[0]+V[1]*H[1],re>ee?(ee=re,R=I,Z=!1):re=r.length||!I)break;Ur(I),M=I}}nr&&Te([De||nr[0],Ie||nr[1]]),_.push(b.slice(0,A))}var Ye=m.slice(m.length-1);if(f&&Ye!=="h"&&Ye!=="v"){for(var Ze=!1,pr=-1,Tr=[],yr=0;yr<_.length;yr++)for(var wr=0;wr<_[yr].length-1;wr++){var Hr=_[yr][wr],Sr=_[yr][wr+1],Dr=kQ.applyBackoff(Sr,Hr);(Dr[0]!==Sr[0]||Dr[1]!==Sr[1])&&(Ze=!0),Tr[pr+1]||(pr++,Tr[pr]=[Hr,[Dr[0],Dr[1]]])}return Ze?Tr:_}return _}});var AD=te((p0e,MD)=>{"use strict";var wD={tonextx:1,tonexty:1,tonext:1};MD.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 kl=kt(),CQ=dt(),Lh=dr(),Av=Lh.ensureSingle,kD=Lh.identity,Vn=fn(),Tv=ei(),LQ=xD(),qQ=AD(),hm=Cg().tester;SD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=qQ(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(),DQ(r,l,t),f){o&&(s=o());var h=kl.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){TD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){TD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function DQ(e,r,t){r.each(function(n){var a=Av(kl.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,kD);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Av(kl.select(this),"path","js-fill")})})}function TD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;EQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Ke){return u?Ke.transition():Ke}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=kl.select(i),y=Av(p,"g","errorbars"),_=Av(p,"g","lines"),C=Av(p,"g","points"),x=Av(p,"g","text");if(CQ.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,Z=null,H=null;I&&(R=I._prevRevpath||"",A=I._nextFill,N=I._ownPolygons,Z=I._fillsegments,H=I._fillElement);var V,U,ee="",ie="",re,K,se,ce,Se,Fe,He=[];d._polygons=[];var Xe=[],Le=[],Qe=Lh.noop;if(b=d._ownFill,Tv.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(Ke){var gr=Ke[Ke.length-1];return Ke.length>1&&Ke[0][0]===gr[0]&&Ke[0][1]===gr[1]?Vn.smoothclosed(Ke.slice(1),m.smoothing):Vn.smoothopen(Ke,m.smoothing)}:re=K=function(Ke){return"M"+Ke.join("L")},se=function(Ke){return K(Ke.reverse())},Le=LQ(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(Le.length);var fe=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;Tv.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";LD.exports={container:"marker",min:"cmin",max:"cmax"}});var DD=te((y0e,qD)=>{"use strict";var dm=Dn();qD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=dm.getFromTrace(i,t,"x"),l=dm.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=dm.tickText(o,o.c2l(s),!0).text,a.yLabel=dm.tickText(l,l.c2l(u),!0).text,a}});var qh=te((b0e,ED)=>{"use strict";var Yb=kt(),kv=fn(),PQ=dt();function RQ(e){var r=Yb.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=Yb.select(this),a=t.trace||t[0].trace;Gb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Yb.select(this),a=t.trace||t[0].trace;Vb(n,a,e)}),r.selectAll("g.trace path.js-line").call(kv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(kv.fillGroupStyle,e,!1),PQ.getComponentMethod("errorbars","style")(r)}function Gb(e,r,t){kv.pointStyle(e.selectAll("path.point"),r,t)}function Vb(e,r,t){kv.textPointStyle(e.selectAll("text"),r,t)}function zQ(e,r,t){var n=r[0].trace;n.selectedpoints?(kv.selectedPointStyle(t.selectAll("path.point"),n),kv.selectedTextStyle(t.selectAll("text"),n)):(Gb(t,n,e),Vb(t,n,e))}ED.exports={style:RQ,stylePoints:Gb,styleText:Vb,styleOnSelect:zQ}});var Wb=te((_0e,PD)=>{"use strict";var Sv=Et(),NQ=ei();PD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Sv.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&&Sv.opacity(i)?i:o&&Sv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?Sv.opacity(a)<.3?Sv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Sv.opacity(n)&&NQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var ND=te((x0e,zD)=>{"use strict";var pm=dr(),RD=cs(),FQ=dt(),IQ=Wb(),Zb=Et(),HQ=pm.fillText;zD.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 se=Math.max(3,ie.mrc||0),ce=1-1/se,Se=Math.abs(l.c2p(ie.x)-u);return Se=Math.min(re,K)&&f<=Math.max(re,K)?0:1/0}var se=Math.max(3,ie.mrc||0),ce=1-1/se,Se=Math.abs(s.c2p(ie.y)-f);return SeHe!=G>=He&&(me=Qe[Le-1][0],Ce=Qe[Le][0],G-pe&&(fe=me+(Ce-me)*(He-pe)/(G-pe),se=Math.min(se,fe),ce=Math.max(ce,fe)));return se=Math.max(se,0),ce=Math.min(ce,l._length),{x0:se,x1:ce,y0:He,y1:He}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=Z(o._fillElement)&&!Z(o._fillExclusionElement);if(V){var U=H(o._polygons);U===null&&(U={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var ee=Zb.defaultLine;return Zb.opacity(o.fillcolor)?ee=o.fillcolor:Zb.opacity((o.line||{}).color)&&(ee=o.line.color),pm.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:ee,hovertemplate:!1}),delete r.index,o.text&&!pm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var HD=te((w0e,ID)=>{"use strict";var FD=ei();ID.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!FD.hasMarkers(l)&&!FD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";BD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var VD=te((A0e,GD)=>{"use strict";var Dh=dt().traceIs,Xb=d3();GD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(BQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function BQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=OQ(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:!Dh(i,"cartesian")||Dh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,YD(i,n)){var u=UD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(YD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function UD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function YD(e,r){var t=UD(e),n=Dh(e,"box-violin"),a=Dh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var ZD=te((T0e,WD)=>{"use strict";var UQ=ji().isTypedArraySpec;function YQ(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||UQ(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=YQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var JD=te((k0e,jD)=>{"use strict";var XD=Ql().mix,GQ=dl(),VQ=dr();jD.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,R){return VQ.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=XD(i,a.bgColor,a.blend||GQ.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=XD(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 Jb=te((S0e,tE)=>{"use strict";var $D=Ht(),WQ=dt(),Eh=dr(),ZQ=_n(),XQ=_l(),jb=bl(),KD=I2(),QD=B2(),jQ=Y2(),JQ=G2(),$Q=ZD(),KQ=JD(),QQ=z3(),eE=Sp(),gm=ya().WEEKDAY_PATTERN,eee=ya().HOUR_PATTERN;tE.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=WQ.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=Eh.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"),eE(t,i),QQ(r,t,n,a),$Q(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(JQ(r,t,n,v,a),!u)return t;n("title.text",_),Eh.coerceFont(n,"title.font",l,{overrideDflt:{size:Eh.bigFont(l.size),color:y}}),KD(r,t,n,v);var C=a.hasMinor;if(C&&(ZQ.newContainer(t,"minor"),KD(r,t,n,v,{isMinor:!0})),jQ(r,t,n,v,a),QD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,QD(r,t,n,a),a.isMinor=x}KQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:jb}),C&&!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(XQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ree}),!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=rE(i[l]),s){o=gm;break}}var u=n("pattern",o);if(u===gm)for(l=0;l<2;l++)s=rE(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case gm:if(!$D(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 eee:if(!$D(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 nee=Ht(),mm=dr();nE.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||(nee(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=mm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=mm.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=mm.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),mm.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var vE=te((L0e,cE)=>{"use strict";var Bc=dr(),aE=Et(),aee=$u().isUnifiedHover,iee=s5(),iE=_n(),oee=z0(),oE=bl(),lee=VD(),lE=Jb(),see=j1(),sE=$b(),Qb=ca(),ys=Qb.id2name,uE=Qb.name2id,uee=ya().AX_ID_PATTERN,fE=dt(),ym=fE.traceIs,Kb=fE.getComponentMethod;function bm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}cE.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 fee=kt(),hE=dt(),_m=dr(),to=fn(),xm=Dn();dE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){xm.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=_m.simpleMap(y.xr0,x.r2l),I=_m.simpleMap(y.xr1,x.r2l),Z=N[1]-N[0],H=I[1]-I[0];R[0]=(N[0]*(1-_)+_*I[0]-N[0])/(N[1]-N[0])*A,R[2]=A*(1-_+_*H/Z),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 V=_m.simpleMap(y.yr0,b.r2l),U=_m.simpleMap(y.yr1,b.r2l),ee=V[1]-V[0],ie=U[1]-U[0];R[1]=(V[1]*(1-_)+_*U[1]-V[1])/(V[0]-V[1])*k,R[3]=k*(1-_+_*ie/ee),b.range[0]=x.l2r(V[0]*(1-_)+_*U[0]),b.range[1]=b.l2r(V[1]*(1-_)+_*U[1])}else R[1]=0,R[3]=k;xm.drawOne(r,x,{skipTitle:!0}),xm.drawOne(r,b,{skipTitle:!0}),xm.redrawComponents(r,[x._id,b._id]);var re=M?A/R[2]:1,K=D?k/R[3]:1,se=M?R[0]:0,ce=D?R[1]:0,Se=M?R[0]/R[2]*A:0,Fe=D?R[1]/R[3]*k:0,He=x._offset-Se,Xe=b._offset-Fe;C.clipRect.call(to.setTranslate,se,ce).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 e4=te(Oa=>{"use strict";var Mm=kt(),gE=dt(),Oc=dr(),cee=va(),vee=fn(),mE=A1().getModuleCalcData,df=ca(),Sl=ya(),hee=gc(),jt=Oc.ensureSingle;function wm(e,r,t){return Oc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Uc=Sl.zindexSeparator;Oa.name="cartesian";Oa.attr=["xaxis","yaxis"];Oa.idRoot=["x","y"];Oa.idRegex=Sl.idRegex;Oa.attrRegex=Sl.attrRegex;Oa.attributes=OD();Oa.layoutAttributes=bl();Oa.supplyLayoutDefaults=vE();Oa.transitionAxes=pE();Oa.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(Uc)!==-1)continue;d+=Uc+(u+1),h=Oc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Uc+b),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=jt(n,"path","xlines-above"),r.ylines=jt(n,"path","ylines-above"),r.xaxislayer=jt(n,"g","xaxislayer-above"),r.yaxislayer=jt(n,"g","yaxislayer-above");else{if(!o){var h=jt(n,"g","layer-subplot");r.shapelayer=jt(h,"g","shapelayer"),r.imagelayer=jt(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=jt(n,"g","minor-gridlayer"),r.gridlayer=jt(n,"g","gridlayer"),r.zerolinelayer=jt(n,"g","zerolinelayer"));var d=jt(n,"g","layer-between");r.shapelayerBetween=jt(d,"g","shapelayer"),r.imagelayerBetween=jt(d,"g","imagelayer"),jt(n,"path","xlines-below"),jt(n,"path","ylines-below"),r.overlinesBelow=jt(n,"g","overlines-below"),jt(n,"g","xaxislayer-below"),jt(n,"g","yaxislayer-below"),r.overaxesBelow=jt(n,"g","overaxes-below")}r.overplot=jt(n,"g","overplot"),r.plot=jt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=jt(n,"g","zerolinelayer-above"),o||(r.xlines=jt(n,"path","xlines-above"),r.ylines=jt(n,"path","ylines-above"),r.overlinesAbove=jt(n,"g","overlines-above"),jt(n,"g","xaxislayer-above"),jt(n,"g","yaxislayer-above"),r.overaxesAbove=jt(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,jt(v.overlinesBelow,"path",p),jt(v.overlinesBelow,"path",y),jt(v.overaxesBelow,"g",p),jt(v.overaxesBelow,"g",y),r.plot=jt(v.overplot,"g",a),jt(v.overlinesAbove,"path",p),jt(v.overlinesAbove,"path",y),jt(v.overaxesAbove,"g",p),jt(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||(wm(r.minorGridlayer,"g",r.xaxis._id),wm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort),wm(r.gridlayer,"g",r.xaxis._id),wm(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 _E(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Mm.select(this);f.remove(),xE(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 Am=ei();wE.exports={hasLines:Am.hasLines,hasMarkers:Am.hasMarkers,hasText:Am.hasText,isBubble:Am.isBubble,attributes:Nc(),layoutAttributes:ep(),supplyDefaults:Rq(),crossTraceDefaults:Iq(),supplyLayoutDefaults:Bq(),calc:um().calc,crossTraceCalc:dD(),arraysToCalcdata:Th(),plot:CD(),colorbar:Ub(),formatLabels:DD(),style:qh().style,styleOnSelect:qh().styleOnSelect,hoverPoints:ND(),selectPoints:HD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e4(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var kE=te((P0e,TE)=>{"use strict";var pee=kt(),gee=Et(),AE=J5(),r4=dr(),mee=r4.strScale,yee=r4.strRotate,bee=r4.strTranslate;TE.exports=function(r,t,n){var a=r.node(),i=AE[n.arrowhead||0],o=AE[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)){V();return}if(v){if(v*v>_*_+C*C){V();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){V();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 SE=kt(),t4=dt(),_ee=va(),gf=dr(),n4=gf.strTranslate,Rh=Dn(),Yc=Et(),vu=fn(),CE=cs(),a4=Qa(),i4=af(),Ph=ko(),xee=_n().arrayEditor,wee=kE();DE.exports={draw:Mee,drawOne:LE,drawRaw:qE};function Mee(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?rr="right":rr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[rr]}for(var pe=!1,G=["x","y"],Q=0;Q1)&&(De===_e?(tr=Ie.r2fraction(r["a"+$]),(tr<0||tr>1)&&(pe=!0)):pe=!0),gr=Ie._offset+Ie.r2p(r[$]),Ue=.5}else{var Ye=Ur==="domain";$==="x"?(Te=r[$],gr=Ye?Ie._offset+Ie._length*Te:gr=l.l+l.w*Te):(Te=1-r[$],gr=Ye?Ie._offset+Ie._length*Te:gr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Ke.head=gr;var Ze=r["a"+$];if(kr=ar*Ce(.5,r.xanchor)-Be*Ce(.5,r.yanchor),De===_e){var pr=Rh.getRefType(De);pr==="domain"?($==="y"&&(Ze=1-Ze),Ke.tail=Ie._offset+Ie._length*Ze):pr==="paper"?$==="y"?(Ze=1-Ze,Ke.tail=l.t+l.h*Ze):Ke.tail=l.l+l.w*Ze:Ke.tail=Ie._offset+Ie.r2p(Ze),mr=kr}else Ke.tail=gr+Ze,mr=kr+Ze;Ke.text=Ke.tail+kr;var Tr=o[$==="x"?"width":"height"];if(_e==="paper"&&(Ke.head=gf.constrain(Ke.head,1,Tr-1)),De==="pixel"){var yr=-Math.max(Ke.tail-3,Ke.text),wr=Math.min(Ke.tail+3,Ke.text)-Tr;yr>0?(Ke.tail+=yr,Ke.text+=yr):wr>0&&(Ke.tail-=wr,Ke.text-=wr)}Ke.tail+=hr,Ke.head+=hr}else kr=or*Ce(Ue,lr),mr=kr,Ke.text=gr+kr;Ke.text+=hr,kr+=hr,mr+=hr,r["_"+$+"padplus"]=or/2+mr,r["_"+$+"padminus"]=or/2-mr,r["_"+$+"size"]=or,r["_"+$+"shift"]=kr}if(pe){M.remove();return}var Hr=0,Sr=0;if(r.align!=="left"&&(Hr=(Le-He)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Sr=(Qe-Xe)*(r.valign==="middle"?.5:1)),Se)ce.select("svg").attr({x:N+Hr-1,y:N+Sr}).call(vu.setClipUrl,Z?p:null,e);else{var Dr=N+Sr-Fe.top,ur=N+Hr-Fe.left;ee.call(a4.positionText,ur,Dr).call(vu.setClipUrl,Z?p:null,e)}H.select("rect").call(vu.setRect,N,N,Le,Qe),I.call(vu.setRect,D/2,D/2,fe-D,me-D),M.call(vu.setTranslate,Math.round(y.x.text-fe/2),Math.round(y.y.text-me/2)),x.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var xe=function($e,rr){C.selectAll(".annotation-arrow-g").remove();var Lr=y.x.head,Yr=y.y.head,Fr=y.x.tail+$e,st=y.y.tail+rr,xt=y.x.text+$e,Rt=y.y.text+rr,Kt=gf.rotationXYMatrix(_,xt,Rt),cn=gf.apply2DTransform(Kt),pn=gf.apply2DTransform2(Kt),Mn=+I.attr("width"),Xt=+I.attr("height"),Qt=xt-.5*Mn,en=Qt+Mn,an=Rt-.5*Xt,jr=an+Xt,Ut=[[Qt,an,Qt,jr],[Qt,jr,en,jr],[en,jr,en,an],[en,an,Qt,an]].map(pn);if(!Ut.reduce(function(dn,Un){return dn^!!gf.segmentsIntersect(Lr,Yr,Lr+1e6,Yr+1e6,Un[0],Un[1],Un[2],Un[3])},!1)){Ut.forEach(function(dn){var Un=gf.segmentsIntersect(Fr,st,Lr,Yr,dn[0],dn[1],dn[2],dn[3]);Un&&(Fr=Un.x,st=Un.y)});var Nt=r.arrowwidth,rn=r.arrowcolor,Tn=r.arrowside,vn=C.append("g").style({opacity:Yc.opacity(rn)}).classed("annotation-arrow-g",!0),Yt=vn.append("path").attr("d","M"+Fr+","+st+"L"+Lr+","+Yr).style("stroke-width",Nt+"px").call(Yc.stroke,Yc.rgb(rn));if(wee(Yt,Tn,r),s.annotationPosition&&Yt.node().parentNode&&!n){var On=Lr,Va=Yr;if(r.standoff){var kn=Math.sqrt(Math.pow(Lr-Fr,2)+Math.pow(Yr-st,2));On+=r.standoff*(Fr-Lr)/kn,Va+=r.standoff*(st-Yr)/kn}var Wa=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Fr-On)+","+(st-Va),transform:n4(On,Va)}).style("stroke-width",Nt+6+"px").call(Yc.stroke,"rgba(0,0,0,0)").call(Yc.fill,"rgba(0,0,0,0)"),oa,hn;Ph.init({element:Wa.node(),gd:e,prepFn:function(){var dn=vu.getTranslate(M);oa=dn.x,hn=dn.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(dn,Un){var mi=cn(oa,hn),oo=mi[0]+dn,yi=mi[1]+Un;M.call(vu.setTranslate,oo,yi),d("x",pf(a,dn,"x",l,r)),d("y",pf(i,Un,"y",l,r)),r.axref===r.xref&&d("ax",pf(a,dn,"ax",l,r)),r.ayref===r.yref&&d("ay",pf(i,Un,"ay",l,r)),vn.attr("transform",n4(dn,Un)),x.attr({transform:"rotate("+_+","+oo+","+yi+")"})},doneFn:function(){t4.call("_guiRelayout",e,m());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};if(r.showarrow&&xe(0,0),b){var Ae;Ph.init({element:M.node(),gd:e,prepFn:function(){Ae=x.attr("transform")},moveFn:function($e,rr){var Lr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",pf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",pf(i,rr,"ay",l.w,r)):d("ay",r.ay+rr),xe($e,rr);else{if(n)return;var Yr,Fr;if(a)Yr=pf(a,$e,"x",l,r);else{var st=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-st/2;Yr=Ph.align(xt+$e/l.w,st,0,1,r.xanchor)}if(i)Fr=pf(i,rr,"y",l,r);else{var Rt=r._ysize/l.h,Kt=r.y-(r._yshift+r.yshift)/l.h-Rt/2;Fr=Ph.align(Kt-rr/l.h,Rt,0,1,r.yanchor)}d("x",Yr),d("y",Fr),(!a||!i)&&(Lr=Ph.getCursor(a?.5:Yr,i?.5:Fr,r.xanchor,r.yanchor))}x.attr({transform:n4($e,rr)+Ae}),i4(M,Lr)},clickFn:function($e,rr){r.captureevents&&e.emit("plotly_clickannotation",k(rr))},doneFn:function(){i4(M),t4.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?ee.call(a4.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),t4.call("_guiRelayout",e,m())}):ee.call(ie)}});var FE=te((z0e,NE)=>{"use strict";var EE=dr(),Aee=dt(),PE=_n().arrayEditor;NE.exports={hasClickToShow:Tee,onClick:kee};function Tee(e,r){var t=zE(e,r);return t.on.length>0||t.explicitOff.length>0}function kee(e,r){var t=zE(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 o4=dr(),Cv=Et();IE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=Cv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),o4.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:Cv.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||(Cv.opacity(i)?Cv.rgb(i):Cv.defaultLine)),_=a("hoverlabel.bordercolor",p.bordercolor||Cv.contrast(y)),C=o4.extendFlat({},p.font);C.color||(C.color=_),o4.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var BE=te((F0e,HE)=>{"use strict";var s4=dr(),Gc=Dn(),See=_l(),Cee=l4(),Lee=bv();HE.exports=function(r,t){See(r,t,{name:"annotations",handleItemDefaults:qee})};function qee(e,r,t){function n(x,b){return s4.coerce(e,r,Lee,x,b)}var a=n("visible"),i=n("clicktoshow");if(a||i){Cee(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=Gc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Gc.getFromId(u,h);d._annIndices.push(r._index)}if(Gc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Gc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Gc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(s4.noneOrAll(e,r,["x","y"]),o&&s4.noneOrAll(e,r,["ax","ay"]),i){var _=n("xclick"),C=n("yclick");r._xclick=_===void 0?r.x:Gc.cleanPosition(_,u,r.xref),r._yclick=C===void 0?r.y:Gc.cleanPosition(C,u,r.yref)}}}});var YE=te((I0e,UE)=>{"use strict";var u4=dr(),Vc=Dn(),Dee=Tm().draw;UE.exports=function(r){var t=r._fullLayout,n=u4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return u4.syncOrAsync([Dee,Eee],r)};function Eee(e){var r=e._fullLayout;u4.filterVisible(r.annotations).forEach(function(t){var n=Vc.getFromId(e,t.xref),a=Vc.getFromId(e,t.yref),i=Vc.getRefType(t.xref),o=Vc.getRefType(t.yref);t._extremes={},i==="range"&&OE(t,n),o==="range"&&OE(t,a)})}function OE(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=Vc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=Vc.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,_=Vc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var VE=te((H0e,GE)=>{"use strict";var Pee=Ht(),Ree=_d();GE.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=Ree(m,t.range):p=Math.pow(10,m),Pee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var f4=Tm(),WE=FE();ZE.exports={moduleType:"component",name:"annotations",layoutAttributes:bv(),supplyLayoutDefaults:BE(),includeBasePlot:hh()("annotations"),calcAutorange:YE(),draw:f4.draw,drawOne:f4.drawOne,drawRaw:f4.drawRaw,hasClickToShow:WE.hasClickToShow,onClick:WE.onClick,convertCoords:VE()}});var km=te((O0e,jE)=>{"use strict";var wn=bv(),zee=xo().overrideAll,Nee=_n().templatedArray;jE.exports=zee(Nee("annotation",{visible:wn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wn.xanchor,xshift:wn.xshift,yanchor:wn.yanchor,yshift:wn.yshift,text:wn.text,textangle:wn.textangle,font:wn.font,width:wn.width,height:wn.height,opacity:wn.opacity,align:wn.align,valign:wn.valign,bgcolor:wn.bgcolor,bordercolor:wn.bordercolor,borderpad:wn.borderpad,borderwidth:wn.borderwidth,showarrow:wn.showarrow,arrowcolor:wn.arrowcolor,arrowhead:wn.arrowhead,startarrowhead:wn.startarrowhead,arrowside:wn.arrowside,arrowsize:wn.arrowsize,startarrowsize:wn.startarrowsize,arrowwidth:wn.arrowwidth,standoff:wn.standoff,startstandoff:wn.startstandoff,hovertext:wn.hovertext,hoverlabel:wn.hoverlabel,captureevents:wn.captureevents}),"calc","from-root")});var $E=te((U0e,JE)=>{"use strict";var c4=dr(),Fee=Dn(),Iee=_l(),Hee=l4(),Bee=km();JE.exports=function(r,t,n){Iee(r,t,{name:"annotations",handleItemDefaults:Oee,fullLayout:n.fullLayout})};function Oee(e,r,t,n){function a(l,s){return c4.coerce(e,r,Bee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Fee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(Hee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),c4.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),c4.noneOrAll(e,r,["ax","ay"])))}});var rP=te((Y0e,eP)=>{"use strict";var KE=dr(),QE=Dn();eP.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function v4(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 Yee(e,r){var t=v4(e.projection,v4(e.view,v4(e.model,[r[0],r[1],r[2],1])));return t}tP.exports=Yee});var iP=te((V0e,aP)=>{"use strict";var Gee=Tm().drawRaw,Vee=nP(),Wee=["x","y","z"];aP.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=Vee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),Gee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var sP=te((W0e,lP)=>{"use strict";var Zee=dt(),oP=dr();lP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:km()}}},layoutAttributes:km(),handleDefaults:$E(),includeBasePlot:Xee,convert:rP(),draw:iP()};function Xee(e,r){var t=Zee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var Z0e=ya(),uP=Ka(),fP=Nc().line,jee=es().dash,Cl=ua().extendFlat,Jee=_n().templatedArray,X0e=ch(),Lv=_o(),cP=bv(),{shapeTexttemplateAttrs:$ee,templatefallbackAttrs:Kee}=lc(),Qee=Dd();vP.exports=Jee("shape",{visible:Cl({},Lv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Cl({},Lv.legend,{editType:"calc+arraydraw"}),legendgroup:Cl({},Lv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Cl({},Lv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:uP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Cl({},Lv.legendrank,{editType:"calc+arraydraw"}),legendwidth:Cl({},Lv.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:Cl({},cP.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:Cl({},cP.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:Cl({},fP.color,{editType:"arraydraw"}),width:Cl({},fP.width,{editType:"calc+arraydraw"}),dash:Cl({},jee,{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:$ee({},{keys:Object.keys(Qee)}),texttemplatefallback:Kee({editType:"arraydraw"}),font:uP({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 dP=te((J0e,hP)=>{"use strict";var qv=dr(),no=Dn(),ere=_l(),rre=h4(),zh=ff();hP.exports=function(r,t){ere(r,t,{name:"shapes",handleItemDefaults:nre})};function tre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function nre(e,r,t){function n(x,b){return qv.coerce(e,r,rre,x,b)}r._isShape=!0;var a=n("visible");if(!a)return;var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),qv.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",Z=e[I];if(Array.isArray(Z)&&Z.length>0){let H=zh.countDefiningCoords(s,o,x);N=no.coerceRefArray(e,r,k,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else N=no.coerceRef(e,r,k,x,void 0,"paper");if(Array.isArray(N))N.forEach(function(H){no.getRefType(H)==="range"&&(M=no.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let V=N[H];no.getRefType(V)==="range"?(M=no.getFromId(k,V),D=zh.shapePositionToRange(M),R=zh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&n(x+H+"shift")):D=R=qv.identity;let ee=x+H,ie=e[ee];if(e[ee]=D(e[ee],!0),A==="pixel"?n(ee,m[H]):no.coercePosition(r,k,n,V,ee,d[H]),r[ee]=R(r[ee]),e[ee]=ie,H===0&&A==="pixel"){let re=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,V,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=zh.rangeToShapePosition(M),D=zh.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):D=R=qv.identity,u){let V=x+"0",U=x+"1",ee=e[V],ie=e[U];e[V]=D(e[V],!0),e[U]=D(e[U],!0),A==="pixel"?(n(V,m[0]),n(U,m[1])):(no.coercePosition(r,k,n,N,V,d[0]),no.coercePosition(r,k,n,N,U,d[1])),r[V]=R(r[V]),r[U]=R(r[U]),e[V]=ee,e[U]=ie}if(A==="pixel"){let V=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,N,b,.25),r[b]=R(r[b]),e[b]=V}}}),u&&qv.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",tre(p,C)),n("label.padding"),qv.coerceFont(n,"label.font",t.font)}}});var mP=te(($0e,gP)=>{"use strict";var are=Et(),pP=dr();function ire(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}gP.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"),pP.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",are.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",ire(o,u)),n("newshape.label.padding"),pP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var AP=te((K0e,MP)=>{"use strict";var d4=dr(),Ho=Dn(),bs=V1(),p4=ff();MP.exports=function(r){var t=r._fullLayout,n=d4.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,bP(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ho.getFromId(r,i.xref),l=xP(o,i,bs.paramIsX),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,bP(i))));if(u==="array"){let f=yP(r,i,"y");Object.entries(f).forEach(([v,h])=>{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,_P(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ho.getFromId(r,i.yref),l=xP(o,i,bs.paramIsY),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,_P(i))))}};function yP(e,r,t){let n=r[t+"ref"],a=t==="x"?bs.paramIsX:bs.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(bs.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=p4.decodeDate(f)),u[h._id]=o[v].map(f)}}return u}function bP(e){return wP(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function _P(e){return wP(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function wP(e,r,t,n,a,i){var o=e/2,l=i;if(r==="pixel"){var s=a?p4.extractPathCoords(a,i?bs.paramIsY:bs.paramIsX):[t,n],u=d4.aggNums(Math.max,null,s),f=d4.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 xP(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(bs.segmentRE),m,p,y,_,C;for(e.type==="date"&&(u=p4.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var SP=te((Q0e,kP)=>{"use strict";var TP=gg();kP.exports={moduleType:"component",name:"shapes",layoutAttributes:h4(),supplyLayoutDefaults:dP(),supplyDrawNewShapeDefaults:mP(),includeBasePlot:hh()("shapes"),calcAutorange:AP(),draw:TP.draw,drawOne:TP.drawOne}});var g4=te((rve,LP)=>{"use strict";var CP=ya(),ore=_n().templatedArray,eve=ch();LP.exports=ore("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",CP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",CP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var DP=te((tve,qP)=>{"use strict";var lre=dr(),m4=Dn(),sre=_l(),ure=g4(),fre="images";qP.exports=function(r,t){var n={name:fre,handleItemDefaults:cre};sre(r,t,n)};function cre(e,r,t){function n(h,d){return lre.coerce(e,r,ure,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=m4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=m4.getFromId(o,f);v._imgIndices.push(r._index)}m4.coercePosition(r,o,n,f,u,0)}return r}});var zP=te((nve,RP)=>{"use strict";var EP=kt(),vre=fn(),Dv=Dn(),PP=ca(),hre=gc();RP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var NP=Ht(),dre=_d();FP.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";HP.exports={moduleType:"component",name:"images",layoutAttributes:g4(),supplyLayoutDefaults:DP(),includeBasePlot:hh()("images"),draw:zP(),convertCoords:IP()}});var Sm=te((ove,OP)=>{"use strict";OP.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 y4=te((lve,YP)=>{"use strict";var pre=Ka(),gre=dl(),mre=ua().extendFlat,yre=xo().overrideAll,bre=Ed(),UP=_n().templatedArray,_re=UP("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}});YP.exports=yre(UP("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:_re,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:mre(bre({editType:"arraydraw"}),{}),font:pre({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:gre.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ZP=te((sve,WP)=>{"use strict";var Cm=dr(),GP=_l(),VP=y4(),xre=Sm(),wre=xre.name,Mre=VP.buttons;WP.exports=function(r,t){var n={name:wre,handleItemDefaults:Are};GP(r,t,n)};function Are(e,r,t){function n(o,l){return Cm.coerce(e,r,VP,o,l)}var a=GP(e,r,{name:"buttons",handleItemDefaults:Tre}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Cm.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Cm.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Tre(e,r){function t(a,i){return Cm.coerce(e,r,Mre,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 JP=te((uve,jP)=>{"use strict";jP.exports=zn;var Ll=kt(),XP=Et(),Ev=fn(),Lm=dr();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 Z=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-horizontal",!0).call(XP.fill,zn.barColor),M?(this.hbar=Z.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 H=f>_,V=zn.barWidth+2*zn.barPad,U=zn.barLength+2*zn.barPad,ee=l+s,ie=u;ee+V>i&&(ee=i-V);var re=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(XP.fill,zn.barColor),H?(this.vbar=re.attr({rx:zn.barRadius,ry:zn.barRadius,x:ee,y:ie,width:V,height:U}),this._vbarYMin=ie+U/2,this._vbarTranslateMax=_-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var K=this.id,se=C-.5,ce=H?x+V+.5:x+.5,Se=b-.5,Fe=M?A+R+.5:A+.5,He=a._topdefs.selectAll("#"+K).data(M||H?[0]:[]);if(He.exit().remove(),He.enter().append("clipPath").attr("id",K).append("rect"),M||H?(this._clipRect=He.select("rect").attr({x:Math.floor(se),y:Math.floor(Se),width:Math.ceil(ce)-Math.floor(se),height:Math.ceil(Fe)-Math.floor(Se)}),this.container.call(Ev.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(Ev.setClipUrl,null),delete this._clipRect),M||H){var Xe=Ll.behavior.drag().on("dragstart",function(){Ll.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 Le=Ll.behavior.drag().on("dragstart",function(){Ll.event.sourceEvent.preventDefault(),Ll.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Le),H&&this.vbar.on(".drag",null).call(Le)}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(Ev.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-=Ll.event.dx),this.vbar&&(t-=Ll.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ll.event.deltaY),this.vbar&&(t+=Ll.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=Lm.constrain(Ll.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=Lm.constrain(Ll.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=Lm.constrain(r||0,0,n),t=Lm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Ev.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(Ev.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Ev.setTranslate,r,t+o*this._vbarTranslateMax)}}});var oR=te((fve,iR)=>{"use strict";var Pv=kt(),Nh=va(),Fh=Et(),Rv=fn(),ao=dr(),qm=Qa(),kre=_n().arrayEditor,KP=Ia().LINE_SPACING,ct=Sm(),Sre=JP();iR.exports=function(r){var t=r._fullLayout,n=ao.filterVisible(t[ct.name]);function a(h){Nh.autoMargin(r,nR(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(){Pv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,Cre);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 zre=Sm();lR.exports={moduleType:"component",name:zre.name,layoutAttributes:y4(),supplyLayoutDefaults:ZP(),draw:oR()}});var Hh=te((vve,uR)=>{"use strict";uR.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 w4=te((hve,vR)=>{"use strict";var fR=Ka(),Nre=Ed(),Fre=ua().extendDeepAll,Ire=xo().overrideAll,Hre=d1(),cR=_n().templatedArray,Wc=Hh(),Bre=cR("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}});vR.exports=Ire(cR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Bre,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:Fre(Nre({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:Hre.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:Wc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Wc.railBgColor},bordercolor:{valType:"color",dflt:Wc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Wc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Wc.tickLength},tickcolor:{valType:"color",dflt:Wc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Wc.minorTickLength}}),"arraydraw","from-root")});var gR=te((dve,pR)=>{"use strict";var zv=dr(),hR=_l(),dR=w4(),Ore=Hh(),Ure=Ore.name,Yre=dR.steps;pR.exports=function(r,t){hR(r,t,{name:Ure,handleItemDefaults:Gre})};function Gre(e,r,t){function n(v,h){return zv.coerce(e,r,dR,v,h)}for(var a=hR(e,r,{name:"steps",handleItemDefaults:Vre}),i=0,o=0;o{"use strict";var ql=kt(),Dm=va(),mf=Et(),Dl=fn(),io=dr(),Wre=io.strTranslate,Bh=Qa(),Zre=_n().arrayEditor,Mt=Hh(),T4=Ia(),bR=T4.LINE_SPACING,M4=T4.FROM_TL,A4=T4.FROM_BR;TR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Xre(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),Dm.autoMargin(r,_R(f))}if(i.exit().each(function(){ql.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,jre);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",Wre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function k4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function yR(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 tte(e,r,t){var n=t._dims,a=io.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(MR,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),Dl.setTranslate(a,0,n.currentValueTotalHeight)}function nte(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"),Dl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var CR=te((gve,SR)=>{"use strict";var ate=Hh();SR.exports={moduleType:"component",name:ate.name,layoutAttributes:w4(),supplyLayoutDefaults:gR(),draw:kR()}});var Pm=te((mve,qR)=>{"use strict";var LR=dl();qR.exports={bgcolor:{valType:"color",dflt:LR.background,editType:"plot"},bordercolor:{valType:"color",dflt:LR.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 S4=te((yve,DR)=>{"use strict";DR.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 Rm=te((bve,ER)=>{"use strict";ER.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 zR=te(Nm=>{"use strict";var ite=ca(),ote=Qa(),PR=Rm(),lte=Ia().LINE_SPACING,zm=PR.name;function RR(e){var r=e&&e[zm];return r&&r.visible}Nm.isVisible=RR;Nm.makeData=function(e){for(var r=ite.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Fm=dr(),NR=_n(),FR=ca(),ste=Pm(),ute=S4();IR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Fm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=NR.newContainer(i,"rangeslider");function s(A,k){return Fm.coerce(o,l,ste,A,k)}var u,f;function v(A,k){return Fm.coerce(u,f,ute,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")))===FR.name2id(n)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),p=Fm.simpleMap(m,FR.id2name),y=0;y{"use strict";var fte=ca().list,cte=tf().getAutoRange,vte=Rm();BR.exports=function(r){for(var t=fte(r,"x",!0),n=0;n{"use strict";var Im=kt(),hte=dt(),dte=va(),Wn=dr(),Hm=Wn.strTranslate,YR=fn(),yf=Et(),pte=q1(),gte=e4(),C4=ca(),mte=ko(),yte=af(),Dt=Rm();GR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=re.max)ee=I[ie+1];else if(U=re.pmax)ee=I[ie+1];else if(U0?e.touches[0].clientX:0}function bte(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Dt.slideBoxClassName).node(),i=e.select("rect."+Dt.grabAreaMinClassName).node(),o=e.select("rect."+Dt.grabAreaMaxClassName).node();function l(){var s=Im.event,u=s.target,f=UR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=mte.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(_){var C=UR(_),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 Lte=dr(),qte=Pm(),Dte=S4(),L4=zR();WR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Lte.extendFlat({},qte,{yaxis:Dte})}}},layoutAttributes:Pm(),handleDefaults:HR(),calcAutorange:OR(),draw:VR(),isVisible:L4.isVisible,makeData:L4.makeData,autoMarginOpts:L4.autoMarginOpts}});var Bm=te((Tve,jR)=>{"use strict";var Ete=Ka(),XR=dl(),Pte=_n().templatedArray,Rte=Pte("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"});jR.exports={visible:{valType:"boolean",editType:"plot"},buttons:Rte,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:Ete({editType:"plot"}),bgcolor:{valType:"color",dflt:XR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:XR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var q4=te((kve,JR)=>{"use strict";JR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var QR=te((Sve,KR)=>{"use strict";var Om=dr(),zte=Et(),Nte=_n(),Fte=_l(),$R=Bm(),D4=q4();KR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=Nte.newContainer(t,"rangeselector");function s(d,m){return Om.coerce(o,l,$R,d,m)}var u=Fte(o,l,{name:"buttons",handleItemDefaults:Ite,calendar:i}),f=s("visible",u.length>0);if(f){var v=Hte(t,n,a);s("x",v[0]),s("y",v[1]),Om.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Om.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",zte.contrast(h,D4.lightAmount,D4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ite(e,r,t,n){var a=n.calendar;function i(s,u){return Om.coerce(e,r,$R.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 Hte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var Bte=qy(),Ote=dr().titleCase;ez.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=Ute(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function Ute(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=Bte["utc"+Ote(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 uz=te((Lve,sz)=>{"use strict";var Ym=kt(),Yte=dt(),Gte=va(),tz=Et(),lz=fn(),hu=dr(),nz=hu.strTranslate,Um=Qa(),Vte=ca(),R4=Ia(),az=R4.LINE_SPACING,iz=R4.FROM_TL,oz=R4.FROM_BR,P4=q4(),Wte=rz();sz.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Zte(r),Xte);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Ym.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=Ym.select(this),v=Wte(o,u);u._isActive=jte(o,u,v),f.call(E4,l,u),f.call($te,l,u,r),f.on("click",function(){r._dragged||Yte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(E4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(E4,l,u)})}),Qte(r,s,l,o._name,i)})};function Zte(e){for(var r=Vte.list(e,"x",!0),t=[],n=0;n{"use strict";fz.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Bm()}}},layoutAttributes:Bm(),handleDefaults:QR(),draw:uz()}});var Gm=te(z4=>{"use strict";var vz=ua().extendFlat;z4.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:vz({},t,{}),y:vz({},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};z4.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 ene=dr(),rne=D0().counter,tne=Gm().attributes,hz=ya().idRegex,nne=_n(),N4={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:[rne("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hz.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:tne({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 Vm(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 ane(e,r){var t=e.grid||{},n=Vm(r,t,"x"),a=Vm(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=nne.newContainer(r,"grid");function h(k,M){return ene.coerce(t,v,N4,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:dz("x",h,C,b,m),y:dz("y",h,x,A,d,_)}}function dz(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";yz.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 xz=te((Rve,_z)=>{"use strict";var bz=Ht(),one=dt(),lne=dr(),sne=_n(),une=F4();_z.exports=function(e,r,t,n){var a="error_"+n.axis,i=sne.newContainer(r,a),o=e[a]||{};function l(m,p){return lne.coerce(o,i,une,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||bz(o.thickness)||bz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",one.traceIs(r,"gl3d")?0:4))}}});var I4=te((zve,Mz)=>{"use strict";Mz.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=wz(t,r.value),l=wz(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 wz(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 kz=te((Nve,Tz)=>{"use strict";var H4=Ht(),fne=dt(),B4=Dn(),cne=dr(),vne=I4();Tz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var Sz=kt(),bf=Ht(),hne=fn(),dne=ei();Cz.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=Sz.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),hne.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=Sz.select(this),b=pne(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 pne(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 Ez=te((Ive,Dz)=>{"use strict";var gne=kt(),qz=Et();Dz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=gne.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(qz.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(qz.stroke,i.color)})}});var zz=te((Hve,Rz)=>{"use strict";var Oh=dr(),Pz=xo().overrideAll,Uh=F4(),Zc={error_x:Oh.extendFlat({},Uh),error_y:Oh.extendFlat({},Uh)};delete Zc.error_x.copy_zstyle;delete Zc.error_y.copy_zstyle;delete Zc.error_y.copy_ystyle;var Yh={error_x:Oh.extendFlat({},Uh),error_y:Oh.extendFlat({},Uh),error_z:Oh.extendFlat({},Uh)};delete Yh.error_x.copy_ystyle;delete Yh.error_y.copy_ystyle;delete Yh.error_z.copy_ystyle;delete Yh.error_z.copy_zstyle;Rz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Zc,bar:Zc,histogram:Zc,scatter3d:Pz(Yh,"calc","nested"),scattergl:Pz(Zc,"calc","nested")}},supplyDefaults:xz(),calc:kz(),makeComputeError:I4(),plot:Lz(),style:Ez(),hoverInfo:mne};function mne(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 Fz=te((Bve,Nz)=>{"use strict";Nz.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 Gz=te((Ove,Yz)=>{"use strict";var _f=kt(),O4=Ql(),Zm=va(),Iz=dt(),du=Dn(),Wm=ko(),Bo=dr(),Pl=Bo.strTranslate,Uz=ua().extendFlat,U4=af(),El=fn(),Y4=Et(),yne=q1(),bne=Qa(),_ne=ts().flipScale,xne=Jb(),wne=$b(),Mne=bl(),G4=Ia(),Hz=G4.LINE_SPACING,Bz=G4.FROM_TL,Oz=G4.FROM_BR,En=Fz().cn;function Ane(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data(Tne(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=kne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Sne(a,n,e)}),t.exit().each(function(n){Zm.autoMargin(e,n._id)}).remove(),t.order()}function Tne(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Uz(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?_ne(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));Ce*=Q*Bo.roundUp(G/Q,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=Ce}fe.domain=n?[Le+m/b.h,Le+K-m/b.h]:[Le+d/b.w,Le+K-d/b.w],fe.setScale(),e.attr("transform",Pl(Math.round(b.l),Math.round(b.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",Pl(-Math.round(b.l),-Math.round(b.t))),_e=fe.ticklabelposition,De=fe.title.font.size,Ie=e.select("."+En.cbaxis),nr,ar=0,Be=0;function or(mr,Te){var Ue={propContainer:fe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},kr=mr.charAt(0)==="h"?mr.slice(1):"h"+mr;e.selectAll("."+kr+",."+kr+"-math-group").remove(),yne.draw(t,mr,Uz(Ue,Te||{}))}function lr(){if(n&&me||!n&&!me){var mr,Te;D==="top"&&(mr=d+b.l+se*p,Te=m+b.t+ce*(1-Le-K)+3+De*.75),D==="bottom"&&(mr=d+b.l+se*p,Te=m+b.t+ce*(1-Le)-3-De*.25),D==="right"&&(Te=m+b.t+ce*y+3+De*.75,mr=d+b.l+se*Le),or(fe._id+"title",{attributes:{x:mr,y:Te,"text-anchor":n?"start":"middle"}})}}function hr(){if(n&&!me||!n&&me){var mr=fe.position||0,Te=fe._offset+fe._length/2,Ue,kr;if(D==="right")kr=Te,Ue=b.l+se*mr+10+De*(fe.showticklabels?1:.5);else if(Ue=Te,D==="bottom"&&(kr=b.t+ce*mr+10+(_e.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Ur=M.text.split("
").length;kr=b.t+ce*mr+10-ee-Hz*De*Ur}or((n?"h":"v")+fe._id+"title",{avoid:{selection:_f.select(t).selectAll("g."+fe._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 Ke(){if(!n&&!me||n&&me){var mr=e.select("."+En.cbtitle),Te=mr.select("text"),Ue=[-s/2,s/2],kr=mr.select(".h"+fe._id+"title-math-group").node(),Ur=15.6;Te.node()&&(Ur=parseInt(Te.node().style.fontSize,10)*Hz);var tr;if(kr?(tr=El.bBox(kr),Be=tr.width,ar=tr.height,ar>Ur&&(Ue[1]-=(ar-Ur)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(tr=El.bBox(Te.node()),Be=tr.width,ar=tr.height),n){if(ar){if(ar+=5,D==="top")fe.domain[1]-=ar/b.h,Ue[1]*=-1;else{fe.domain[0]+=ar/b.h;var Ye=bne.lineCount(Te);Ue[1]+=(1-Ye)*Ur}mr.attr("transform",Pl(Ue[0],Ue[1])),fe.setScale()}}else Be&&(D==="right"&&(fe.domain[0]+=(Be+De/2)/b.w),mr.attr("transform",Pl(Ue[0],Ue[1])),fe.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?Pl(0,Math.round(b.h*(1-fe.domain[1]))):Pl(Math.round(b.w*fe.domain[0]),0)),Ie.attr("transform",n?Pl(0,Math.round(-b.t)):Pl(Math.round(-b.l),0));var Ze=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(V);Ze.enter().append("rect").classed(En.cbfill,!0).attr("style",""),Ze.exit().remove();var pr=R.map(fe.c2p).map(Math.round).sort(function(Sr,Dr){return Sr-Dr});Ze.each(function(Sr,Dr){var ur=[Dr===0?R[0]:(V[Dr]+V[Dr-1])/2,Dr===V.length-1?R[1]:(V[Dr]+V[Dr+1])/2].map(fe.c2p).map(Math.round);n&&(ur[1]=Bo.constrain(ur[1]+(ur[1]>ur[0])?1:-1,pr[0],pr[1]));var xe=_f.select(this).attr(n?"x":"y",Se).attr(n?"y":"x",_f.min(ur)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(_f.max(ur)-_f.min(ur),2));if(r._fillgradient)El.gradient(xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ae=I(Sr).replace("e-","");xe.attr("fill",O4(Ae).toHexString())}});var Tr=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?U:[]);Tr.enter().append("path").classed(En.cbline,!0),Tr.exit().remove(),Tr.each(function(Sr){var Dr=Se,ur=Math.round(fe.c2p(Sr))+k.width/2%1;_f.select(this).attr("d","M"+(n?Dr+","+ur:ur+","+Dr)+(n?"h":"v")+ee).call(El.lineGroupStyle,k.width,N(Sr),k.dash)}),Ie.selectAll("g."+fe._id+"tick,path").remove();var yr=Se+ee+(s||0)/2-(r.ticks==="outside"?1:0),wr=du.calcTicks(fe),Hr=du.getTickSigns(fe)[2];return du.drawTicks(t,fe,{vals:fe.ticks==="inside"?du.clipEnds(fe,wr):wr,layer:Ie,path:du.makeTickPath(fe,yr,Hr),transFn:du.makeTransTickFn(fe)}),du.drawLabels(t,fe,{vals:wr,layer:Ie,transFn:du.makeTransTickLabelFn(fe),labelFns:du.makeLabelFns(fe,yr)})}function gr(){var mr,Te=ee+s/2;_e.indexOf("inside")===-1&&(mr=El.bBox(Ie.node()),Te+=n?mr.width:mr.height),nr=$.select("text");var Ue=0,kr=n&&D==="top",Ur=!n&&D==="right",tr=0;if(nr.node()&&!nr.classed(En.jsPlaceholder)){var Ye,Ze=$.select(".h"+fe._id+"title-math-group").node();Ze&&(n&&me||!n&&!me)?(mr=El.bBox(Ze),Ue=mr.width,Ye=mr.height):(mr=El.bBox($.node()),Ue=mr.right-b.l-(n?Se:Qe),Ye=mr.bottom-b.t-(n?Qe:Se),!n&&D==="top"&&(Te+=mr.height,tr=mr.height)),Ur&&(nr.attr("transform",Pl(Ue/2+De/2,0)),Ue*=2),Te=Math.max(Te,n?Ue:Ye)}var pr=(n?d:m)*2+Te+u+s/2,Tr=0;!n&&M.text&&h==="bottom"&&y<=0&&(Tr=pr/2,pr+=Tr,tr+=Tr),x._hColorbarMoveTitle=Tr,x._hColorbarMoveCBTitle=tr;var yr=u+s,wr=(n?Se:Qe)-yr/2-(n?d:0),Hr=(n?Qe:Se)-(n?re:m+tr-Tr);e.select("."+En.cbbg).attr("x",wr).attr("y",Hr).attr(n?"width":"height",Math.max(pr-Tr,2)).attr(n?"height":"width",Math.max(re+yr,2)).call(Y4.fill,f).call(Y4.stroke,r.bordercolor).style("stroke-width",u);var Sr=Ur?Math.max(Ue-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?Se:Qe+d)+Sr).attr("y",(n?Qe+m-re:Se)+(kr?ar:0)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(re-(n?2*m+ar:2*d+Sr),2)).call(Y4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Dr=n?Fe*pr:0,ur=n?0:(1-He)*pr-tr;if(Dr=C?b.l-Dr:-Dr,ur=_?b.t-ur:-ur,e.attr("transform",Pl(Dr,ur)),!n&&(u||O4(f).getAlpha()&&!O4.equals(x.paper_bgcolor,f))){var xe=Ie.selectAll("text"),Ae=xe[0].length,$e=e.select("."+En.cbbg).node(),rr=El.bBox($e),Lr=El.getTranslate(e),Yr=2;xe.each(function(Qt,en){var an=0,jr=Ae-1;if(en===an||en===jr){var Ut=El.bBox(this),Nt=El.getTranslate(this),rn;if(en===jr){var Tn=Ut.right+Nt.x,vn=rr.right+Lr.x+Qe-u-Yr+p;rn=vn-Tn,rn>0&&(rn=0)}else if(en===an){var Yt=Ut.left+Nt.x,On=rr.left+Lr.x+Qe+u+Yr;rn=On-Yt,rn<0&&(rn=0)}rn&&(Ae<3?this.setAttribute("transform","translate("+rn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Fr={},st=Bz[v],xt=Oz[v],Rt=Bz[h],Kt=Oz[h],cn=pr-ee;n?(i==="pixels"?(Fr.y=y,Fr.t=re*Rt,Fr.b=re*Kt):(Fr.t=Fr.b=0,Fr.yt=y+a*Rt,Fr.yb=y-a*Kt),l==="pixels"?(Fr.x=p,Fr.l=pr*st,Fr.r=pr*xt):(Fr.l=cn*st,Fr.r=cn*xt,Fr.xl=p-o*st,Fr.xr=p+o*xt)):(i==="pixels"?(Fr.x=p,Fr.l=re*st,Fr.r=re*xt):(Fr.l=Fr.r=0,Fr.xl=p+a*st,Fr.xr=p-a*xt),l==="pixels"?(Fr.y=1-y,Fr.t=pr*Rt,Fr.b=pr*Kt):(Fr.t=cn*Rt,Fr.b=cn*Kt,Fr.yt=y-o*Rt,Fr.yb=y+o*Kt));var pn=r.y<.5?"b":"t",Mn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Xt={r:x.width-wr-Dr,l:wr+Fr.r,b:x.height-Hr-ur,t:Hr+Fr.b};C&&_?Zm.autoMargin(t,r._id,Fr):C?t._fullLayout._reservedMargin[r._id][pn]=Xt[pn]:_||n?t._fullLayout._reservedMargin[r._id][Mn]=Xt[Mn]:t._fullLayout._reservedMargin[r._id][pn]=Xt[pn]}return Bo.syncOrAsync([Zm.previousPromises,lr,Ke,hr,Zm.previousPromises,gr],t)}function Sne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Wm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),U4(e)},moveFn:function(u,f){e.attr("transform",o+Pl(u,f)),l=Wm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Wm.getCursor(l,s,r.xanchor,r.yanchor);U4(e,v)},doneFn:function(){if(U4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Iz.call("_guiRestyle",t,u,r._traceIndex):Iz.call("_guiRelayout",t,u)}}})}function Cne(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";Vz.exports={moduleType:"component",name:"colorbar",attributes:sp(),supplyDefaults:V2(),draw:Gz().draw,hasColorbar:R2()}});var Xz=te((Yve,Zz)=>{"use strict";Zz.exports={moduleType:"component",name:"legend",layoutAttributes:O3(),supplyLayoutDefaults:Y3(),draw:n5(),style:Q3()}});var Jz=te((Gve,jz)=>{"use strict";jz.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 Kz=te((Vve,$z)=>{"use strict";$z.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var W4=te((Wve,tN)=>{"use strict";var qne=dt(),rN=dr(),V4=rN.extendFlat,Qz=rN.extendDeep;function eN(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 Dne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}tN.exports=function(r,t){var n,a=r.data,i=r.layout,o=Qz([],a),l=Qz({},i,eN(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 Ene=jd().EventEmitter,Pne=dt(),Rne=dr(),nN=Fc(),zne=W4(),Nne=em(),Fne=rm();function Ine(e,r){var t=new Ene,n=zne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=nN.getDelay(a._fullLayout);setTimeout(function(){var s=Nne(a),u=document.createElement("canvas");u.id=Rne.randstr(),t=Fne({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=nN.getRedrawFunc(a);return Pne.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}aN.exports=Ine});var sN=te((Xve,lN)=>{"use strict";var oN=Fc(),Hne={getDelay:oN.getDelay,getRedrawFunc:oN.getRedrawFunc,clone:W4(),toSVG:em(),svgToImg:rm(),toImage:iN(),downloadImage:xb()};lN.exports=Hne});var fN=te(pu=>{"use strict";pu.version=cd().version;e6();Yw();var Bne=dt(),Gh=pu.register=Bne.register,X4=cq(),uN=Object.keys(X4);for(Xm=0;Xm{"use strict";cN.exports=fN()});var Vh=te((Kve,mN)=>{"use strict";var{hovertemplateAttrs:One,texttemplateAttrs:Une,templatefallbackAttrs:hN}=lc(),Yne=$5(),_s=Nc(),Gne=_o(),dN=J0(),Vne=es().dash,Xc=ua().extendFlat,Wne=xo().overrideAll,Oo=_s.marker,pN=_s.line,gN=Oo.line,$ve=["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=Wne({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:Xc({},_s.mode,{dflt:"markers"}),text:Xc({},_s.text,{}),texttemplate:Une({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:hN({editType:"plot"}),hovertext:Xc({},_s.hovertext,{}),textfont:_s.textfont,textposition:_s.textposition,line:{color:pN.color,width:pN.width,dash:Vne},connectgaps:_s.connectgaps,marker:Xc({symbol:Oo.symbol,opacity:Oo.opacity,angle:Oo.angle,angleref:Xc({},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:Xc({width:gN.width,dash:gN.dash},dN("marker.line")),gradient:Oo.gradient},dN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Yne(),selected:_s.selected,unselected:_s.unselected,hoverinfo:Xc({},Gne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:One(),hovertemplatefallback:hN()},"calc","nested")});var bN=te((Qve,yN)=>{"use strict";var Jm=dr(),j4=ei(),Zne=Ab(),Xne=Tb(),jne=kb(),Jne=Sb(),$ne=Vh(),Kne=["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(" ");yN.exports=function(r,t,n,a){function i(d,m){return Jm.coerce(r,t,$ne,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||Jm.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Jm.warn(Kne),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)&&Zne(r,t,n,a,i,{gradient:!0}),j4.hasLines(t)&&(Xne(r,t,n,a,i),i("connectgaps")),j4.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),jne(r,t,a,i)),i("fill"),t.fill!=="none"&&Jne(r,t,n,i),Jm.coerceSelectionMarkerOpacity(t,i)}});var wN=te((e1e,xN)=>{"use strict";var _N=Dn();xN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=_N.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=_N.tickText(o,o.c2l(l[1]),!0).text,a}});var SN=te((r1e,kN)=>{"use strict";var J4=Ht(),MN=Rn().BADNUM,Qne=qb(),eae=Th(),rae=sm(),tae=dr().isArrayOrTypedArray,AN=dr()._;function TN(e){return e&&typeof e=="string"}kN.exports=function(r,t){var n=tae(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return TN(h)||J4(h)}:o=TN;for(var l=0;l{"use strict";Ua.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"};Ua.axesNames=["lonaxis","lataxis"];Ua.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ua.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ua.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]}};Ua.clipPad=.001;Ua.precision=.1;Ua.landColor="#F0DC82";Ua.waterColor="#3399FF";Ua.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ua.sphereSVG={type:"Sphere"};Ua.fillLayers={ocean:1,land:1,lakes:1};Ua.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ua.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ua.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ua.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var $4=te(($m,CN)=>{(function(e,r){typeof $m=="object"&&typeof CN!="undefined"?r($m):(e=e||self,r(e.topojson=e.topojson||{}))})($m,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 Z=2,H=N.length,V=new Array(H);for(V[0]=(b+=N[0])*k+D,V[1]=(A+=N[1])*M+R;ZD&&(D=Z[0]),Z[1]R&&(R=Z[1])}function I(Z){switch(Z.type){case"GeometryCollection":Z.geometries.forEach(I);break;case"Point":N(Z.coordinates);break;case"MultiPoint":Z.coordinates.forEach(N);break}}x.arcs.forEach(function(Z){for(var H=-1,V=Z.length,U;++HD&&(D=U[0]),U[1]R&&(R=U[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(H,V){V.length&&V.pop();for(var U=k[H<0?~H:H],ee=0,ie=U.length;ee1)k=v(x,b,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var V=1,U=N(Z[0]),ee,ie;VU&&(ie=Z[0],Z[0]=Z[V],Z[V]=ie,U=ee);return Z}).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,Z,H=x.objects,V={};function U(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:U(re.coordinates)};break;case"MultiPoint":K={type:"MultiPoint",coordinates:re.coordinates.map(U)};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,se=1,ce=re.length,Se,Fe=new Array(ce);for(Fe[0]=N(re[0],0);++K{"use strict";var K4=LN.exports={},nae=Wh().locationmodeToLayer,aae=$4().feature;K4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};K4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};K4.getTopojsonFeatures=function(e,r){var t=nae[e.locationmode],n=r.objects[t];return aae(r,n).features}});var qN=te(Zh=>{"use strict";var iae=Rn().BADNUM;Zh.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};Zh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Zh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{DN.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 ry=te(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var Hi=63710088e-1,e_={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},Q4={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 oae(e,r,t={}){switch(e){case"Point":return r_(r).geometry;case"LineString":return n_(r).geometry;case"Polygon":return t_(r).geometry;case"MultiPoint":return RN(r).geometry;case"MultiLineString":return PN(r).geometry;case"MultiPolygon":return zN(r).geometry;default:throw new Error(e+" is invalid")}}function r_(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(!Qm(e[0])||!Qm(e[1]))throw new Error("coordinates must contain numbers");return xf({type:"Point",coordinates:e},r,t)}function lae(e,r,t={}){return ey(e.map(n=>r_(n,r)),t)}function t_(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;it_(n,r)),t)}function n_(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 uae(e,r,t={}){return ey(e.map(n=>n_(n,r)),t)}function ey(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function PN(e,r,t={}){return xf({type:"MultiLineString",coordinates:e},r,t)}function RN(e,r,t={}){return xf({type:"MultiPoint",coordinates:e},r,t)}function zN(e,r,t={}){return xf({type:"MultiPolygon",coordinates:e},r,t)}function fae(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 NN(e,r="kilometers"){let t=e_[r];if(!t)throw new Error(r+" units is invalid");return e*t}function a_(e,r="kilometers"){let t=e_[r];if(!t)throw new Error(r+" units is invalid");return e/t}function vae(e,r){return FN(a_(e,r))}function hae(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 FN(e){return e%(2*Math.PI)*180/Math.PI}function pae(e){return e%360*Math.PI/180}function gae(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return NN(a_(e,r),t)}function mae(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=Q4[r];if(!n)throw new Error("invalid original units");let a=Q4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Qm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function yae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bae(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(!Qm(r))throw new Error("bbox must only contain numbers")})}function _ae(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")}gn.areaFactors=Q4;gn.azimuthToBearing=dae;gn.bearingToAzimuth=hae;gn.convertArea=mae;gn.convertLength=gae;gn.degreesToRadians=pae;gn.earthRadius=Hi;gn.factors=e_;gn.feature=xf;gn.featureCollection=ey;gn.geometry=oae;gn.geometryCollection=fae;gn.isNumber=Qm;gn.isObject=yae;gn.lengthToDegrees=vae;gn.lengthToRadians=a_;gn.lineString=n_;gn.lineStrings=uae;gn.multiLineString=PN;gn.multiPoint=RN;gn.multiPolygon=zN;gn.point=r_;gn.points=lae;gn.polygon=t_;gn.polygons=sae;gn.radiansToDegrees=FN;gn.radiansToLength=NN;gn.round=cae;gn.validateBBox=bae;gn.validateId=_ae});var ny=te(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var li=ry();function Xh(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=li.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 Sae(e,r,t){var n=t,a=!1;return BN(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 ON(e,r){if(!e)throw new Error("geojson is required");ty(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(ay,"__esModule",{value:!0});var UN=ry(),Dae=ny();function VN(e){return Dae.geomReduce.call(void 0,e,(r,t)=>r+Eae(t),0)}function Eae(e){let r=0,t;switch(e.type){case"Polygon":return YN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(GN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*o_,s=i[1]*o_,u=o[0]*o_;t+=(u-l)*Math.sin(s),n++}return t*Pae}var Rae=VN;ay.area=VN;ay.default=Rae});var XN=te(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var zae=ry(),Nae=ny();function ZN(e,r={}){let t=0,n=0,a=0;return Nae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),zae.point.call(void 0,[t/a,n/a],r.properties)}var Fae=ZN;iy.centroid=ZN;iy.default=Fae});var JN=te(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var Iae=ny();function jN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return Iae.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 Bae=kt(),QN=EN(),{area:Oae}=WN(),{centroid:Uae}=XN(),{bbox:Yae}=JN(),$N=Id(),Fv=Bu(),Gae=Js(),Vae=a1(),ly=Cg(),KN=Object.keys(QN),Wae={"ISO-3":$N,"USA-states":$N,"country names":Zae};function Zae(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=ly.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push(ly.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=$ae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else Fv.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 Uae(t).geometry.coordinates}function Kae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){Bae.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 eie=kt(),rie=fn(),tF=Et(),nF=qh(),tie=nF.stylePoints,nie=nF.styleText;aF.exports=function(r,t){t&&aie(r,t)};function aie(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),tie(n,t,e),nie(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=eie.select(this),o=a.trace,l=o.line||{};i.call(tF.stroke,l.color).call(rie.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(tF.fill,o.fillcolor)})}});var c_=te((h1e,lF)=>{"use strict";var iF=kt(),fy=dr(),iie=Km().getTopojsonFeatures,s_=qN(),uy=sy(),oF=tf().findExtremes,f_=Rn().BADNUM,oie=um().calcMarkerSize,u_=ei(),lie=l_();function sie(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=fy.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===f_&&iF.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=iF.select(this),s=o[0].trace;if(u_.hasLines(s)||s.fill!=="none"){var u=s_.calcTraceToLineCoords(o),f=s.fill!=="none"?s_.makePolygon(u):s_.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}u_.hasMarkers(s)&&l.selectAll("path.point").data(fy.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),u_.hasText(s)&&l.selectAll("g").data(fy.identity).enter().append("g").append("text").each(function(v){i(v,this)}),lie(e,o)})}function uie(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(fy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?uy.extractTraceFeature(e):iie(t,a.topojson);for(o=0;o{"use strict";var fie=cs(),cie=Rn().BADNUM,vie=Wb(),hie=dr().fillText,die=Vh();sF.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]===cie||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(fie.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=vie(i,h),r.extraText=pie(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function pie(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?die.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&&hie(r,e,f),f.join("
")}});var cF=te((p1e,fF)=>{"use strict";fF.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 dF=te((g1e,hF)=>{"use strict";var vF=ei(),gie=Rn().BADNUM;hF.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=!vF.hasMarkers(l)&&!vF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof cy=="object"&&typeof pF!="undefined"?cy:e.d3=e.d3||{})})(cy,function(e){"use strict";function r(fe,me){return feme?1:fe>=me?0:NaN}function t(fe){return fe.length===1&&(fe=n(fe)),{left:function(me,Ce,pe,G){for(pe==null&&(pe=0),G==null&&(G=me.length);pe>>1;fe(me[Q],Ce)<0?pe=Q+1:G=Q}return pe},right:function(me,Ce,pe,G){for(pe==null&&(pe=0),G==null&&(G=me.length);pe>>1;fe(me[Q],Ce)>0?G=Q:pe=Q+1}return pe}}}function n(fe){return function(me,Ce){return r(fe(me),Ce)}}var a=t(r),i=a.right,o=a.left;function l(fe,me){me==null&&(me=s);for(var Ce=0,pe=fe.length-1,G=fe[0],Q=new Array(pe<0?0:pe);Cefe?1:me>=fe?0:NaN}function v(fe){return fe===null?NaN:+fe}function h(fe,me){var Ce=fe.length,pe=0,G=-1,Q=0,$,_e,De=0;if(me==null)for(;++G1)return De/(pe-1)}function d(fe,me){var Ce=h(fe,me);return Ce&&Math.sqrt(Ce)}function m(fe,me){var Ce=fe.length,pe=-1,G,Q,$;if(me==null){for(;++pe=G)for(Q=$=G;++peG&&(Q=G),$=G)for(Q=$=G;++peG&&(Q=G),$0)return[fe];if((pe=me0)for(fe=Math.ceil(fe/_e),me=Math.floor(me/_e),$=new Array(Q=Math.ceil(me-fe+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(fe,me,Ce){var pe=Math.abs(me-fe)/Math.max(0,Ce),G=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),Q=pe/G;return Q>=A?G*=10:Q>=k?G*=5:Q>=M&&(G*=2),mear;)Be.pop(),--or;var lr=new Array(or+1),hr;for(Q=0;Q<=or;++Q)hr=lr[Q]=[],hr.x0=Q>0?Be[Q-1]:nr,hr.x1=Q=1)return+Ce(fe[pe-1],pe-1,fe);var pe,G=(pe-1)*me,Q=Math.floor(G),$=+Ce(fe[Q],Q,fe),_e=+Ce(fe[Q+1],Q+1,fe);return $+(_e-$)*(G-Q)}}function V(fe,me,Ce){return fe=_.call(fe,v).sort(r),Math.ceil((Ce-me)/(2*(H(fe,.75)-H(fe,.25))*Math.pow(fe.length,-1/3)))}function U(fe,me,Ce){return Math.ceil((Ce-me)/(3.5*d(fe)*Math.pow(fe.length,-1/3)))}function ee(fe,me){var Ce=fe.length,pe=-1,G,Q;if(me==null){for(;++pe=G)for(Q=G;++peQ&&(Q=G)}else for(;++pe=G)for(Q=G;++peQ&&(Q=G);return Q}function ie(fe,me){var Ce=fe.length,pe=Ce,G=-1,Q,$=0;if(me==null)for(;++G=0;)for($=fe[me],Ce=$.length;--Ce>=0;)Q[--G]=$[Ce];return Q}function se(fe,me){var Ce=fe.length,pe=-1,G,Q;if(me==null){for(;++pe=G)for(Q=G;++peG&&(Q=G)}else for(;++pe=G)for(Q=G;++peG&&(Q=G);return Q}function ce(fe,me){for(var Ce=me.length,pe=new Array(Ce);Ce--;)pe[Ce]=fe[me[Ce]];return pe}function Se(fe,me){if(Ce=fe.length){var Ce,pe=0,G=0,Q,$=fe[G];for(me==null&&(me=r);++pe{(function(e,r){typeof vy=="object"&&typeof gF!="undefined"?r(vy,v_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(vy,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 Z(B){return(B=k(B/2))*B}function H(){}function V(B,J){B&&ee.hasOwnProperty(B.type)&&ee[B.type](B,J)}var U={Feature:function(B,J){V(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=Le*je,sr=Xe*Oe+ir*_(Me),br=ir*oe*k(Me);se.add(y(br,sr)),He=B,Xe=Oe,Le=je}function G(B){return ce.reset(),K(B,Qe),ce*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 _e(B,J){return B[0]*J[0]+B[1]*J[1]+B[2]*J[2]}function De(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 nr(B,J){return[B[0]*J,B[1]*J,B[2]*J]}function ar(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,or,lr,hr,Ke,gr,mr,Te,Ue=t(),kr,Ur,tr={point:Ye,lineStart:pr,lineEnd:Tr,polygonStart:function(){tr.point=yr,tr.lineStart=wr,tr.lineEnd=Hr,Ue.reset(),Qe.polygonStart()},polygonEnd:function(){Qe.polygonEnd(),tr.point=Ye,tr.lineStart=pr,tr.lineEnd=Tr,se<0?(Be=-(lr=180),or=-(hr=90)):Ue>o?hr=90:Ue<-o&&(or=-90),Ur[0]=Be,Ur[1]=lr},sphere:function(){Be=-(lr=180),or=-(hr=90)}};function Ye(B,J){kr.push(Ur=[Be=B,lr=B]),Jhr&&(hr=J)}function Ze(B,J){var ve=$([B*d,J*d]);if(Te){var oe=De(Te,ve),Me=[oe[1],-oe[0],0],Oe=De(Me,oe);ar(Oe),Oe=Q(Oe);var je=B-Ke,ir=je>0?1:-1,sr=Oe[0]*h*ir,br,Je=m(je)>180;Je^(ir*Kehr&&(hr=br)):(sr=(sr+360)%360-180,Je^(ir*Kehr&&(hr=J))),Je?BSr(Be,lr)&&(lr=B):Sr(B,lr)>Sr(Be,lr)&&(Be=B):lr>=Be?(Blr&&(lr=B)):B>Ke?Sr(Be,B)>Sr(Be,lr)&&(lr=B):Sr(B,lr)>Sr(Be,lr)&&(Be=B)}else kr.push(Ur=[Be=B,lr=B]);Jhr&&(hr=J),Te=ve,Ke=B}function pr(){tr.point=Ze}function Tr(){Ur[0]=Be,Ur[1]=lr,tr.point=Ye,Te=null}function yr(B,J){if(Te){var ve=B-Ke;Ue.add(m(ve)>180?ve+(ve>0?360:-360):ve)}else gr=B,mr=J;Qe.point(B,J),Ze(B,J)}function wr(){Qe.lineStart()}function Hr(){yr(gr,mr),Qe.lineEnd(),m(Ue)>o&&(Be=-(lr=180)),Ur[0]=Be,Ur[1]=lr,Te=null}function Sr(B,J){return(J-=B)<0?J+360:J}function Dr(B,J){return B[0]-J[0]}function ur(B,J){return B[0]<=B[1]?B[0]<=J&&J<=B[1]:JSr(oe[0],oe[1])&&(oe[1]=Me[1]),Sr(Me[0],oe[1])>Sr(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=Sr(oe[1],Me[0]))>je&&(je=ir,Be=Me[0],lr=oe[1])}return kr=Ur=null,Be===1/0||or===1/0?[[NaN,NaN],[NaN,NaN]]:[[Be,or],[lr,hr]]}var Ae,$e,rr,Lr,Yr,Fr,st,xt,Rt,Kt,cn,pn,Mn,Xt,Qt,en,an={sphere:H,point:jr,lineStart:Nt,lineEnd:vn,polygonStart:function(){an.lineStart=Yt,an.lineEnd=On},polygonEnd:function(){an.lineStart=Nt,an.lineEnd=vn}};function jr(B,J){B*=d,J*=d;var ve=_(J);Ut(ve*_(B),ve*k(B),k(J))}function Ut(B,J,ve){++Ae,rr+=(B-rr)/Ae,Lr+=(J-Lr)/Ae,Yr+=(ve-Yr)/Ae}function Nt(){an.point=rn}function rn(B,J){B*=d,J*=d;var ve=_(J);Xt=ve*_(B),Qt=ve*k(B),en=k(J),an.point=Tn,Ut(Xt,Qt,en)}function Tn(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=y(D((je=Qt*Oe-en*Me)*je+(je=en*oe-Xt*Oe)*je+(je=Xt*Me-Qt*oe)*je),Xt*oe+Qt*Me+en*Oe);$e+=je,Fr+=je*(Xt+(Xt=oe)),st+=je*(Qt+(Qt=Me)),xt+=je*(en+(en=Oe)),Ut(Xt,Qt,en)}function vn(){an.point=jr}function Yt(){an.point=Va}function On(){kn(pn,Mn),an.point=jr}function Va(B,J){pn=B,Mn=J,B*=d,J*=d,an.point=kn;var ve=_(J);Xt=ve*_(B),Qt=ve*k(B),en=k(J),Ut(Xt,Qt,en)}function kn(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=Qt*Oe-en*Me,ir=en*oe-Xt*Oe,sr=Xt*Me-Qt*oe,br=D(je*je+ir*ir+sr*sr),Je=I(br),vr=br&&-Je/br;Rt+=vr*je,Kt+=vr*ir,cn+=vr*sr,$e+=Je,Fr+=Je*(Xt+(Xt=oe)),st+=Je*(Qt+(Qt=Me)),xt+=Je*(en+(en=Oe)),Ut(Xt,Qt,en)}function Wa(B){Ae=$e=rr=Lr=Yr=Fr=st=xt=Rt=Kt=cn=0,K(B,an);var J=Rt,ve=Kt,oe=cn,Me=J*J+ve*ve+oe*oe;return Mes?B+Math.round(-B/v)*v:B,J]}dn.invert=dn;function Un(B,J,ve){return(B%=v)?J||ve?hn(oo(B),yi(J,ve)):oo(B):J||ve?yi(J,ve):dn}function mi(B){return function(J,ve){return J+=B,[J>s?J-v:J<-s?J+v:J,ve]}}function oo(B){var J=mi(B);return J.invert=mi(-B),J}function yi(B,J){var ve=_(B),oe=k(B),Me=_(J),Oe=k(J);function je(ir,sr){var br=_(sr),Je=_(ir)*br,vr=k(ir)*br,fr=k(sr),Mr=fr*ve+Je*oe;return[y(vr*Me-Mr*Oe,Je*ve-fr*oe),I(Mr*Me+vr*Oe)]}return je.invert=function(ir,sr){var br=_(sr),Je=_(ir)*br,vr=k(ir)*br,fr=k(sr),Mr=fr*Me-vr*Oe;return[y(vr*Me+fr*Oe,Je*ve+Mr*oe),I(Mr*ve-Je*oe)]},je}function Ms(B){B=Un(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 zl(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 br,Je=Me;oe>0?Je>Oe:Je1&&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=Je[ir])[0],vr[1]);else oe(fr.x,fr.p.x,-1,Me);fr=fr.p}fr=fr.o,Je=fr.z,Mr=!Mr}while(!fr.v);Me.lineEnd()}}}function _i(B){if(J=B.length){for(var J,ve=0,oe=B[0],Me;++ve=0?1:-1,Wt=tn*Gt,mn=Wt>s,Ct=rt*it;if(Qr.add(y(Ct*tn*k(Wt),Jr*pt+Ct*_(Wt))),je+=mn?Gt+tn*v:Gt,mn^Mr>=ve^Er>=ve){var la=De($(fr),$(nt));ar(la);var Nn=De(Oe,la);ar(Nn);var yn=(mn^Gt>=0?-1:1)*I(Nn[2]);(oe>yn||oe===yn&&(la[0]||la[1]))&&(ir+=mn^Gt>=0?1:-1)}}return(je<-o||je0){for(sr||(Me.polygonStart(),sr=!0),Me.lineStart(),pt=0;pt1&&Ir&2&&it.push(it.pop().concat(it.shift())),Je.push(it.filter(Zn))}}return fr}}function Zn(B){return B.length>1}function on(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(Je,vr,fr,Mr){zl(Mr,B,ve,fr,Je,vr)}function je(Je,vr){return _(Je)*_(vr)>J}function ir(Je){var vr,fr,Mr,qr,rt;return{lineStart:function(){qr=Mr=!1,rt=1},point:function(Jr,tt){var nt=[Jr,tt],Er,Ir=je(Jr,tt),it=oe?Ir?0:br(Jr,tt):Ir?br(Jr+(Jr<0?s:-s),tt):0;if(!vr&&(qr=Mr=Ir)&&Je.lineStart(),Ir!==Mr&&(Er=sr(vr,nt),(!Er||Yn(vr,Er)||Yn(nt,Er))&&(nt[2]=1)),Ir!==Mr)rt=0,Ir?(Je.lineStart(),Er=sr(nt,vr),Je.point(Er[0],Er[1])):(Er=sr(vr,nt),Je.point(Er[0],Er[1],2),Je.lineEnd()),vr=Er;else if(Me&&vr&&oe^Ir){var pt;!(it&fr)&&(pt=sr(nt,vr,!0))&&(rt=0,oe?(Je.lineStart(),Je.point(pt[0][0],pt[0][1]),Je.point(pt[1][0],pt[1][1]),Je.lineEnd()):(Je.point(pt[1][0],pt[1][1]),Je.lineEnd(),Je.lineStart(),Je.point(pt[0][0],pt[0][1],3)))}Ir&&(!vr||!Yn(vr,nt))&&Je.point(nt[0],nt[1]),vr=nt,Mr=Ir,fr=it},lineEnd:function(){Mr&&Je.lineEnd(),vr=null},clean:function(){return rt|(qr&&Mr)<<1}}}function sr(Je,vr,fr){var Mr=$(Je),qr=$(vr),rt=[1,0,0],Jr=De(Mr,qr),tt=_e(Jr,Jr),nt=Jr[0],Er=tt-nt*nt;if(!Er)return!fr&&Je;var Ir=J*tt/Er,it=-J*nt/Er,pt=De(rt,Jr),Gt=nr(rt,Ir),tn=nr(Jr,it);Ie(Gt,tn);var Wt=pt,mn=_e(Gt,Wt),Ct=_e(Wt,Wt),la=mn*mn-Ct*(_e(Gt,Gt)-1);if(!(la<0)){var Nn=D(la),yn=nr(Wt,(-mn-Nn)/Ct);if(Ie(yn,Gt),yn=Q(yn),!fr)return yn;var Gr=Je[0],Vt=vr[0],Gn=Je[1],pa=vr[1],ja;Vt0^yn[1]<(m(yn[0]-Gr)s^(Gr<=yn[0]&&yn[0]<=Vt)){var fi=nr(Wt,(-mn+Nn)/Ct);return Ie(fi,Gt),[yn,Q(fi)]}}}function br(Je,vr){var fr=oe?B:s-B,Mr=0;return Je<-fr?Mr|=1:Je>fr&&(Mr|=2),vr<-fr?Mr|=4:vr>fr&&(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],br=J[1],Je=0,vr=1,fr=sr-je,Mr=br-ir,qr;if(qr=ve-je,!(!fr&&qr>0)){if(qr/=fr,fr<0){if(qr0){if(qr>vr)return;qr>Je&&(Je=qr)}if(qr=Me-je,!(!fr&&qr<0)){if(qr/=fr,fr<0){if(qr>vr)return;qr>Je&&(Je=qr)}else if(fr>0){if(qr0)){if(qr/=Mr,Mr<0){if(qr0){if(qr>vr)return;qr>Je&&(Je=qr)}if(qr=Oe-ir,!(!Mr&&qr<0)){if(qr/=Mr,Mr<0){if(qr>vr)return;qr>Je&&(Je=qr)}else if(Mr>0){if(qr0&&(B[0]=je+Je*fr,B[1]=ir+Je*Mr),vr<1&&(J[0]=je+vr*fr,J[1]=ir+vr*Mr),!0}}}}}var lo=1e9,Zo=-lo;function Xo(B,J,ve,oe){function Me(br,Je){return B<=br&&br<=ve&&J<=Je&&Je<=oe}function Oe(br,Je,vr,fr){var Mr=0,qr=0;if(br==null||(Mr=je(br,vr))!==(qr=je(Je,vr))||sr(br,Je)<0^vr>0)do fr.point(Mr===0||Mr===3?B:ve,Mr>1?oe:J);while((Mr=(Mr+vr+4)%4)!==qr);else fr.point(Je[0],Je[1])}function je(br,Je){return m(br[0]-B)0?0:3:m(br[0]-ve)0?2:1:m(br[1]-J)0?1:0:Je>0?3:2}function ir(br,Je){return sr(br.x,Je.x)}function sr(br,Je){var vr=je(br,1),fr=je(Je,1);return vr!==fr?vr-fr:vr===0?Je[1]-br[1]:vr===1?br[0]-Je[0]:vr===2?br[1]-Je[1]:Je[0]-br[0]}return function(br){var Je=br,vr=Go(),fr,Mr,qr,rt,Jr,tt,nt,Er,Ir,it,pt,Gt={point:tn,lineStart:la,lineEnd:Nn,polygonStart:mn,polygonEnd:Ct};function tn(Gr,Vt){Me(Gr,Vt)&&Je.point(Gr,Vt)}function Wt(){for(var Gr=0,Vt=0,Gn=Mr.length;Vtoe&&(ll-ol)*(oe-fi)>(Jl-fi)*(B-ol)&&++Gr:Jl<=oe&&(ll-ol)*(oe-fi)<(Jl-fi)*(B-ol)&&--Gr;return Gr}function mn(){Je=vr,fr=[],Mr=[],pt=!0}function Ct(){var Gr=Wt(),Vt=pt&&Gr,Gn=(fr=r.merge(fr)).length;(Vt||Gn)&&(br.polygonStart(),Vt&&(br.lineStart(),Oe(null,null,1,br),br.lineEnd()),Gn&&Vo(fr,ir,Gr,Oe,br),br.polygonEnd()),Je=br,fr=Mr=qr=null}function la(){Gt.point=yn,Mr&&Mr.push(qr=[]),it=!0,Ir=!1,nt=Er=NaN}function Nn(){fr&&(yn(rt,Jr),tt&&Ir&&vr.rejoin(),fr.push(vr.result())),Gt.point=tn,Ir&&Je.lineEnd()}function yn(Gr,Vt){var Gn=Me(Gr,Vt);if(Mr&&qr.push([Gr,Vt]),it)rt=Gr,Jr=Vt,tt=Gn,it=!1,Gn&&(Je.lineStart(),Je.point(Gr,Vt));else if(Gn&&Ir)Je.point(Gr,Vt);else{var pa=[nt=Math.max(Zo,Math.min(lo,nt)),Er=Math.max(Zo,Math.min(lo,Er))],ja=[Gr=Math.max(Zo,Math.min(lo,Gr)),Vt=Math.max(Zo,Math.min(lo,Vt))];yu(pa,ja,B,J,ve,oe)?(Ir||(Je.lineStart(),Je.point(pa[0],pa[1])),Je.point(ja[0],ja[1]),Gn||Je.lineEnd(),pt=!1):Gn&&(Je.lineStart(),Je.point(Gr,Vt),pt=!1)}nt=Gr,Er=Vt,Ir=Gn}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 Nl=t(),Fl,xi,so,jo={sphere:H,point:H,lineStart:Il,lineEnd:H,polygonStart:H,polygonEnd:H};function Il(){jo.point=qf,jo.lineEnd=Ts}function Ts(){jo.point=jo.lineEnd=H}function qf(B,J){B*=d,J*=d,Fl=B,xi=k(J),so=_(J),jo.point=n0}function n0(B,J){B*=d,J*=d;var ve=k(J),oe=_(J),Me=m(B-Fl),Oe=_(Me),je=k(Me),ir=oe*je,sr=so*ve-xi*oe*Oe,br=xi*ve+so*oe*Oe;Nl.add(y(D(ir*ir+sr*sr),br)),Fl=B,xi=ve,so=oe}function ks(B){return Nl.reset(),K(B,jo),+Nl}var Ss=[null,null],Cs={type:"LineString",coordinates:Ss};function Jo(B,J){return Ss[0]=B,Ss[1]=J,ks(Cs)}var uo={Feature:function(B,J){return Bi(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(fr)).concat(r.range(C(Oe/br)*br,Me,br).filter(function(Er){return m(Er%vr)>o}).map(Mr))}return tt.lines=function(){return nt().map(function(Er){return{type:"LineString",coordinates:Er}})},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(Er){return arguments.length?tt.extentMajor(Er).extentMinor(Er):tt.extentMinor()},tt.extentMajor=function(Er){return arguments.length?(oe=+Er[0][0],ve=+Er[1][0],ir=+Er[0][1],je=+Er[1][1],oe>ve&&(Er=oe,oe=ve,ve=Er),ir>je&&(Er=ir,ir=je,je=Er),tt.precision(Jr)):[[oe,ir],[ve,je]]},tt.extentMinor=function(Er){return arguments.length?(J=+Er[0][0],B=+Er[1][0],Oe=+Er[0][1],Me=+Er[1][1],J>B&&(Er=J,J=B,B=Er),Oe>Me&&(Er=Oe,Oe=Me,Me=Er),tt.precision(Jr)):[[J,Oe],[B,Me]]},tt.step=function(Er){return arguments.length?tt.stepMajor(Er).stepMinor(Er):tt.stepMinor()},tt.stepMajor=function(Er){return arguments.length?(Je=+Er[0],vr=+Er[1],tt):[Je,vr]},tt.stepMinor=function(Er){return arguments.length?(sr=+Er[0],br=+Er[1],tt):[sr,br]},tt.precision=function(Er){return arguments.length?(Jr=+Er,fr=Oi(Oe,Me,90),Mr=qs(J,B,Jr),qr=Oi(ir,je,90),rt=qs(oe,ve,Jr),tt):Jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ds(){return i0()()}function Gv(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),br=k(Oe),Je=je*_(ve),vr=je*k(ve),fr=sr*_(Me),Mr=sr*k(Me),qr=2*I(D(Z(Oe-oe)+je*sr*Z(Me-ve))),rt=k(qr),Jr=qr?function(tt){var nt=k(tt*=qr)/rt,Er=k(qr-tt)/rt,Ir=Er*Je+nt*fr,it=Er*vr+nt*Mr,pt=Er*ir+nt*br;return[y(it,Ir)*h,y(pt,D(Ir*Ir+it*it))*h]}:function(){return[ve*h,oe*h]};return Jr.distance=qr,Jr}function $o(B){return B}var Pf=t(),Bl=t(),o0,co,vo,Rf,wi={point:H,lineStart:H,lineEnd:H,polygonStart:function(){wi.lineStart=Vv,wi.lineEnd=Wv},polygonEnd:function(){wi.lineStart=wi.lineEnd=wi.point=H,Pf.add(m(Bl)),Bl.reset()},result:function(){var B=Pf/2;return Pf.reset(),B}};function Vv(){wi.point=Ui}function Ui(B,J){wi.point=Ol,o0=vo=B,co=Rf=J}function Ol(B,J){Bl.add(Rf*B-vo*J),vo=B,Rf=J}function Wv(){Ol(o0,co)}var Yi=1/0,Ko=Yi,Qo=-Yi,el=Qo,ho={point:Es,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var B=[[Yi,Ko],[Qo,el]];return Qo=el=-(Ko=Yi=1/0),B}};function Es(B,J){BQo&&(Qo=B),Jel&&(el=J)}var xu=0,Ps=0,Rs=0,rl=0,Ul=0,Yl=0,wu=0,Mu=0,si=0,Au,Tu,za,ta,Aa={point:Gi,lineStart:zs,lineEnd:zf,polygonStart:function(){Aa.lineStart=l0,Aa.lineEnd=Zv},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=zs,Aa.lineEnd=zf},result:function(){var B=si?[wu/si,Mu/si]:Yl?[rl/Yl,Ul/Yl]:Rs?[xu/Rs,Ps/Rs]:[NaN,NaN];return xu=Ps=Rs=rl=Ul=Yl=wu=Mu=si=0,B}};function Gi(B,J){xu+=B,Ps+=J,++Rs}function zs(){Aa.point=tl}function tl(B,J){Aa.point=Gl,Gi(za=B,ta=J)}function Gl(B,J){var ve=B-za,oe=J-ta,Me=D(ve*ve+oe*oe);rl+=Me*(za+B)/2,Ul+=Me*(ta+J)/2,Yl+=Me,Gi(za=B,ta=J)}function zf(){Aa.point=Gi}function l0(){Aa.point=Xv}function Zv(){Nf(Au,Tu)}function Xv(B,J){Aa.point=Nf,Gi(Au=za=B,Tu=ta=J)}function Nf(B,J){var ve=B-za,oe=J-ta,Me=D(ve*ve+oe*oe);rl+=Me*(za+B)/2,Ul+=Me*(ta+J)/2,Yl+=Me,Me=ta*B-za*J,wu+=Me*(za+B),Mu+=Me*(ta+J),si+=Me*3,Gi(za=B,ta=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:H};var If=t(),Hf,s0,u0,Ns,Fs,Mi={point:H,lineStart:function(){Mi.point=ku},lineEnd:function(){Hf&&Is(s0,u0),Mi.point=H},polygonStart:function(){Hf=!0},polygonEnd:function(){Hf=null},result:function(){var B=+If;return If.reset(),B}};function ku(B,J){Mi.point=Is,s0=Ns=B,u0=Fs=J}function Is(B,J){Ns-=B,Fs-=J,If.add(D(Ns*Ns+Fs*Fs)),Ns=B,Fs=J}function Su(){this._string=[]}Su.prototype={_radius:4.5,_circle:f0(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=f0(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 f0(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(Aa)),Aa.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 Vl(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 Hs(B,J,ve){return Vl(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 Bs(B,J,ve){return Hs(B,[[0,0],J],ve)}function Of(B,J,ve){return Vl(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 Vl(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 c0=16,Uf=_(30*d);function v0(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,br,Je,vr,fr,Mr,qr,rt,Jr){var tt=br-oe,nt=Je-Me,Er=tt*tt+nt*nt;if(Er>4*J&&rt--){var Ir=je+fr,it=ir+Mr,pt=sr+qr,Gt=D(Ir*Ir+it*it+pt*pt),tn=I(pt/=Gt),Wt=m(m(pt)-1)J||m((tt*Nn+nt*yn)/Er-.5)>.3||je*fr+ir*Mr+sr*qr2?Gr[2]%360*d:0,Nn()):[ir*h,sr*h,br*h]},Ct.angle=function(Gr){return arguments.length?(vr=Gr%360*d,Nn()):vr*h},Ct.reflectX=function(Gr){return arguments.length?(fr=Gr?-1:1,Nn()):fr<0},Ct.reflectY=function(Gr){return arguments.length?(Mr=Gr?-1:1,Nn()):Mr<0},Ct.precision=function(Gr){return arguments.length?(pt=v0(Gt,it=Gr*Gr),yn()):D(it)},Ct.fitExtent=function(Gr,Vt){return Hs(Ct,Gr,Vt)},Ct.fitSize=function(Gr,Vt){return Bs(Ct,Gr,Vt)},Ct.fitWidth=function(Gr,Vt){return Of(Ct,Gr,Vt)},Ct.fitHeight=function(Gr,Vt){return go(Ct,Gr,Vt)};function Nn(){var Gr=Wf(ve,0,0,fr,Mr,vr).apply(null,J(Oe,je)),Vt=(vr?Wf:Jv)(ve,oe-Gr[0],Me-Gr[1],fr,Mr,vr);return Je=Un(ir,sr,br),Gt=hn(J,Vt),tn=hn(Je,Gt),pt=v0(Gt,it),yn()}function yn(){return Wt=mn=null,Ct}return function(){return J=B.apply(this,arguments),Ct.invert=J.invert&&la,Nn()}}function Wl(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 h0(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(fr)},Je.stream=function(fr){return B&&J===fr?B:B=$v([ve.stream(J=fr),Me.stream(fr),je.stream(fr)])},Je.precision=function(fr){return arguments.length?(ve.precision(fr),Me.precision(fr),je.precision(fr),vr()):ve.precision()},Je.scale=function(fr){return arguments.length?(ve.scale(fr),Me.scale(fr*.35),je.scale(fr),Je.translate(ve.translate())):ve.scale()},Je.translate=function(fr){if(!arguments.length)return ve.translate();var Mr=ve.scale(),qr=+fr[0],rt=+fr[1];return oe=ve.translate(fr).clipExtent([[qr-.455*Mr,rt-.238*Mr],[qr+.455*Mr,rt+.238*Mr]]).stream(br),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(br),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(br),vr()},Je.fitExtent=function(fr,Mr){return Hs(Je,fr,Mr)},Je.fitSize=function(fr,Mr){return Bs(Je,fr,Mr)},Je.fitWidth=function(fr,Mr){return Of(Je,fr,Mr)},Je.fitHeight=function(fr,Mr){return go(Je,fr,Mr)};function vr(){return B=J=null,Je}return Je.scale(1070)}function Vi(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 Na=Vi(function(B){return D(2/(1+B))});Na.invert=Ti(function(B){return 2*I(B/2)});function Qv(){return Ai(Na).scale(124.75).clipAngle(180-.001)}var Zl=Vi(function(B){return(B=N(B))&&B/k(B)});Zl.invert=Ti(function(B){return B});function p0(){return Ai(Zl).scale(79.4188).clipAngle(180-.001)}function Xa(B,J){return[B,b(R((u+J)/2))]}Xa.invert=function(B,J){return[B,2*p(x(J))-u]};function g0(){return m0(Xa).scale(961/v)}function m0(B){var J=Ai(B),ve=J.center,oe=J.scale,Me=J.translate,Oe=J.clipExtent,je=null,ir,sr,br;J.scale=function(vr){return arguments.length?(oe(vr),Je()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),Je()):Me()},J.center=function(vr){return arguments.length?(ve(vr),Je()):ve()},J.clipExtent=function(vr){return arguments.length?(vr==null?je=ir=sr=br=null:(je=+vr[0][0],ir=+vr[0][1],sr=+vr[1][0],br=+vr[1][1]),Je()):je==null?null:[[je,ir],[sr,br]]};function Je(){var vr=s*oe(),fr=J(Ms(J.rotate()).invert([0,0]));return Oe(je==null?[[fr[0]-vr,fr[1]-vr],[fr[0]+vr,fr[1]+vr]]:B===Xa?[[Math.max(fr[0]-vr,je),ir],[Math.min(fr[0]+vr,sr),br]]:[[je,Math.max(fr[1]-vr,ir)],[sr,Math.min(fr[1]+vr,br)]])}return Je()}function Os(B){return R((u+B)/2)}function y0(B,J){var ve=_(B),oe=B===J?k(B):b(ve/_(J))/b(Os(J)/Os(B)),Me=ve*A(Os(B),oe)/oe;if(!oe)return Xa;function Oe(je,ir){Me>0?ir<-u+o&&(ir=-u+o):ir>u-o&&(ir=u-o);var sr=Me/A(Os(ir),oe);return[sr*k(oe*je),Me-sr*_(oe*je)]}return Oe.invert=function(je,ir){var sr=Me-ir,br=M(oe)*D(je*je+sr*sr),Je=y(je,m(sr))*M(sr);return sr*oe<0&&(Je-=s*M(je)*M(sr)),[Je/oe,2*p(A(Me/br,1/oe))-u]},Oe}function qu(){return Wl(y0).scale(109.5).parallels([30,30])}function Us(B,J){return[B,J]}Us.invert=Us;function Du(){return Ai(Us).scale(152.63)}function Ys(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 ui(){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 Zs(B,J){return[b(R((u+J)/2)),-B]}Zs.invert=function(B,J){return[-J,2*p(x(B))-u]};function Jf(){var B=m0(Zs),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=d0,e.geoAlbersUsa=Kv,e.geoArea=G,e.geoAzimuthalEqualArea=Qv,e.geoAzimuthalEqualAreaRaw=Na,e.geoAzimuthalEquidistant=p0,e.geoAzimuthalEquidistantRaw=Zl,e.geoBounds=xe,e.geoCentroid=Wa,e.geoCircle=As,e.geoClipAntimeridian=Pn,e.geoClipCircle=Lf,e.geoClipExtent=bu,e.geoClipRectangle=Xo,e.geoConicConformal=qu,e.geoConicConformalRaw=y0,e.geoConicEqualArea=nl,e.geoConicEqualAreaRaw=h0,e.geoConicEquidistant=e1,e.geoConicEquidistantRaw=Ys,e.geoContains=Ls,e.geoDistance=Jo,e.geoEqualEarth=b0,e.geoEqualEarthRaw=Ws,e.geoEquirectangular=Du,e.geoEquirectangularRaw=Us,e.geoGnomonic=_0,e.geoGnomonicRaw=Pu,e.geoGraticule=i0,e.geoGraticule10=Ds,e.geoIdentity=x0,e.geoInterpolate=Gv,e.geoLength=ks,e.geoMercator=g0,e.geoMercatorRaw=Xa,e.geoNaturalEarth1=Ru,e.geoNaturalEarth1Raw=jf,e.geoOrthographic=ui,e.geoOrthographicRaw=Xn,e.geoPath=Bf,e.geoProjection=Ai,e.geoProjectionMutator=Zf,e.geoRotation=Ms,e.geoStereographic=zu,e.geoStereographicRaw=jl,e.geoStream=K,e.geoTransform=jv,e.geoTransverseMercator=Jf,e.geoTransverseMercatorRaw=Zs,Object.defineProperty(e,"__esModule",{value:!0})})});var yF=te((hy,mF)=>{(function(e,r){typeof hy=="object"&&typeof mF!="undefined"?r(hy,h_(),v_()):r(e.d3=e.d3||{},e.d3,e.d3)})(hy,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=U(2),D=U(x),R=x*2,N=180/x,I=x/180;function Z(T){return T?T/Math.sin(T):1}function H(T){return T>1?b:T<-1?-b:Math.asin(T)}function V(T){return T>1?0:T<-1?x:Math.acos(T)}function U(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+U(T*T+1))}function se(T){return u(T+U(T*T-1))}function ce(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function z(Y,O){var X=o(Y),ue=o(O),he=p(O),le=ue*X,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*ue*p(Y),de*he]}return z.invert=function(Y,O){var X=U(Y*Y+O*O),ue=-T/2,he=50,le;if(!X)return[0,0];do{var de=ue/2,we=o(de),qe=p(de),Ne=qe/we,er=-u(n(we));ue-=le=(2/Ne*er-P*Ne-X)/(-er/(qe*qe)+1-P/(2*we*we))*(we<0?.7:1)}while(n(le)>_&&--he>0);var cr=p(ue);return[i(Y*cr,X*o(ue)),H(O*cr/X)]},z}function Se(){var T=b,L=r.geoProjectionMutator(ce),P=L(T);return P.radius=function(z){return arguments.length?L(T=z*I):T*N},P.scale(179.976).clipAngle(147)}function Fe(T,L){var P=o(L),z=Z(V(P*o(T/=2)));return[2*P*p(T)*z,p(L)*z]}Fe.invert=function(T,L){if(!(T*T+4*L*L>x*x+_)){var P=T,z=L,Y=25;do{var O=p(P),X=p(P/2),ue=o(P/2),he=p(z),le=o(z),de=p(2*z),we=he*he,qe=le*le,Ne=X*X,er=1-qe*ue*ue,cr=er?V(le*ue)*U(Ar=1/er):Ar=0,Ar,Xr=2*cr*le*X-T,at=cr*he-L,ot=Ar*(qe*Ne+cr*le*ue*we),ut=Ar*(.5*O*de-cr*2*he*X),vt=Ar*.25*(de*X-cr*he*qe*O),ln=Ar*(we*ue+cr*Ne*le),An=ut*vt-ln*ot;if(!An)break;var zt=(at*ut-Xr*ln)/An,Fn=(Xr*vt-at*ot)/An;P-=zt,z-=Fn}while((n(zt)>_||n(Fn)>_)&&--Y>0);return[P,z]}};function He(){return r.geoProjection(Fe).scale(152.63)}function Xe(T){var L=p(T),P=o(T),z=T>=0?1:-1,Y=y(z*T),O=(1+L-P)/2;function X(ue,he){var le=o(he),de=o(ue/=2);return[(1+le)*p(ue),(z*he>-i(de,Y)-.001?0:-z*10)+O+p(he)*P-(1+le)*L*de]}return X.invert=function(ue,he){var le=0,de=0,we=50;do{var qe=o(le),Ne=p(le),er=o(de),cr=p(de),Ar=1+er,Xr=Ar*Ne-ue,at=O+cr*P-Ar*L*qe-he,ot=Ar*qe/2,ut=-Ne*cr,vt=L*Ar*Ne/2,ln=P*er+L*qe*cr,An=ut*vt-ln*ot,zt=(at*ut-Xr*ln)/An/2,Fn=(Xr*vt-at*ot)/An;n(Fn)>2&&(Fn/=2),le-=zt,de-=Fn}while((n(zt)>_||n(Fn)>_)&&--we>0);return z*de>-i(o(le),Y)-.001?[le*2,de]:null},X}function Le(){var T=20*I,L=T>=0?1:-1,P=y(L*T),z=r.geoProjectionMutator(Xe),Y=z(T),O=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=O(X),le=(Y.rotate([0,0]),O(X)),de=Y.precision();return Y.rotate(ue),he.sphere=function(){le.polygonStart(),le.lineStart();for(var we=L*-180;L*we<180;we+=L*90)le.point(we,L*90);if(T)for(;L*(we-=3*L*de)>=-180;)le.point(we,L*-i(o(we*I/2),P)*N);le.lineEnd(),le.polygonEnd()},he},Y.scale(218.695).center([0,28.0974])}function Qe(T,L){var P=y(L/2),z=U(1-P*P),Y=1+z*o(T/=2),O=p(T)*z/Y,X=P/Y,ue=O*O,he=X*X;return[4/3*O*(3+ue-3*he),4/3*X*(3+3*ue-he)]}Qe.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,O=U((Y-U(Y*Y-4*L*L))/2),X=H(O)/3,ue=O?se(n(L/O))/3:K(n(T))/3,he=o(X),le=re(ue),de=le*le-he*he;return[m(T)*2*i(ie(ue)*he,.25-de),m(L)*2*i(le*p(X),.25+de)]};function fe(){return r.geoProjection(Qe).scale(66.1603)}var me=U(8),Ce=u(1+M);function pe(T,L){var P=n(L);return PC&&--z>0);return[T/(o(P)*(me-1/p(P))),m(L)*P]};function G(){return r.geoProjection(pe).scale(112.314)}function Q(T){var L=2*x/T;function P(z,Y){var O=r.geoAzimuthalEquidistantRaw(z,Y);if(n(z)>b){var X=i(O[1],O[0]),ue=U(O[0]*O[0]+O[1]*O[1]),he=L*d((X-b)/L)+b,le=i(p(X-=he),2-o(X));X=he+H(x/ue*p(le))-le,O[0]=ue*o(X),O[1]=ue*p(X)}return O}return P.invert=function(z,Y){var O=U(z*z+Y*Y);if(O>b){var X=i(Y,z),ue=L*d((X-b)/L)+b,he=X>ue?-1:1,le=O*o(ue-X),de=1/y(he*V((le-x)/U(x*(x-2*le)+O*O)));X=ue+2*a((de+he*U(de*de-3))/3),z=O*o(X),Y=O*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,O=-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(),le=z(ue),de=(P.rotate([0,0]),z(ue));return P.rotate(he),le.sphere=function(){de.polygonStart(),de.lineStart();for(var we=0,qe=360/T,Ne=2*x/T,er=90-180/T,cr=b;we0&&n(Y)>_);return z<0?NaN:P}function ar(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(z,Y,O,X){var ue,he,le;O=O===void 0?0:+O,X=X===void 0?0:+X;for(var de=0;deue){O-=he/=2,X-=le/=2;continue}ue=er;var cr=(O>0?-1:1)*P,Ar=(X>0?-1:1)*P,Xr=T(O+cr,X),at=T(O,X+Ar),ot=(Xr[0]-we[0])/cr,ut=(Xr[1]-we[1])/cr,vt=(at[0]-we[0])/Ar,ln=(at[1]-we[1])/Ar,An=ln*ot-ut*vt,zt=(n(An)<.5?.5:1)/An;if(he=(Ne*vt-qe*ln)*zt,le=(qe*ut-Ne*ot)*zt,O+=he,X+=le,n(he)0&&(ue[1]*=1+he/1.5*ue[0]*ue[0]),ue}return z.invert=ar(z),z}function or(){return r.geoProjection(Be()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function lr(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,O){return[T*Y*o(O=lr(P,O)),L*p(O)]}return z.invert=function(Y,O){return O=H(O/L),[Y/(T*o(O)),H((2*O+p(2*O))/P)]},z}var Ke=hr(M/b,M,x);function gr(){return r.geoProjection(Ke).scale(169.529)}var mr=2.00276,Te=1.11072;function Ue(T,L){var P=lr(x,L);return[mr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/mr]}Ue.invert=function(T,L){var P=mr*L,z=L<0?-A:A,Y=25,O,X;do X=P-M*p(z),z-=O=(p(2*z)+2*z-x*p(X))/(2*o(2*z)+2+x*o(X)*M*o(z));while(n(O)>_&&--Y>0);return X=P-M*p(z),[T*(1/o(X)+Te/o(z))/mr,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 O=L+T-Y,X=O&&z*o(Y)/O;return[O*p(X),L-O*o(X)]}return P.invert=function(z,Y){var O=U(z*z+(Y=L-Y)*Y),X=L+T-O;return[O/o(X)*i(z,Y),X]},P}function pr(){return Ur(Ze).scale(123.082).center([0,26.1441]).parallel(45)}function Tr(T){function L(P,z){var Y=b-z,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,b-Y*o(O)]}return L.invert=function(P,z){var Y=P*T,O=b-z,X=U(Y*Y+O*O),ue=i(Y,O);return[(X?X/p(X):1)*ue/T,b-X]},L}function yr(){var T=.5,L=r.geoProjectionMutator(Tr),P=L(T);return P.fraction=function(z){return arguments.length?L(T=+z):T},P.scale(158.837)}var wr=hr(1,4/x,x);function Hr(){return r.geoProjection(wr).scale(152.63)}function Sr(T,L,P,z,Y,O){var X=o(O),ue;if(n(T)>1||n(O)>1)ue=V(P*Y+L*z*X);else{var he=p(T/2),le=p(O/2);ue=2*H(U(he*he+L*z*le*le))}return n(ue)>_?[ue,i(z*p(O),L*Y-P*z*X)]:[0,0]}function Dr(T,L,P){return V((T*T+L*L-P*P)/(2*T*L))}function ur(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],O,X=0;X<3;++X,Y=O)O=z[X],Y.v=Sr(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var ue=Dr(z[0].v[0],z[2].v[0],z[1].v[0]),he=Dr(z[0].v[0],z[1].v[0],z[2].v[0]),le=x-ue;z[2].point[1]=0,z[0].point[0]=-(z[1].point[0]=z[0].v[0]/2);var de=[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(qe,Ne){var er=p(Ne),cr=o(Ne),Ar=new Array(3),Xr;for(Xr=0;Xr<3;++Xr){var at=z[Xr];if(Ar[Xr]=Sr(Ne-at[1],at[3],at[2],cr,er,qe-at[0]),!Ar[Xr][0])return at.point;Ar[Xr][1]=ur(Ar[Xr][1]-at.v[1])}var ot=de.slice();for(Xr=0;Xr<3;++Xr){var ut=Xr==2?0:Xr+1,vt=Dr(z[Xr].v[0],Ar[Xr][0],Ar[ut][0]);Ar[Xr][1]<0&&(vt=-vt),Xr?Xr==1?(vt=he-vt,ot[0]-=Ar[Xr][0]*o(vt),ot[1]-=Ar[Xr][0]*p(vt)):(vt=le-vt,ot[0]+=Ar[Xr][0]*o(vt),ot[1]+=Ar[Xr][0]*p(vt)):(ot[0]+=Ar[Xr][0]*o(vt),ot[1]-=Ar[Xr][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 $e(){return rr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function rr(T,L,P){var z=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-z[0],-z[1]],O=r.geoRotation(Y),X=xe(Ae(O(T)),Ae(O(L)),Ae(O(P)));X.invert=ar(X);var ue=r.geoProjection(X).rotate(Y),he=ue.center;return delete ue.rotate,ue.center=function(le){return arguments.length?he(O(le)):O.invert(he())},ue.clipAngle(90)}function Lr(T,L){var P=U(1-p(L));return[2/D*T*P,D*(1-P)]}Lr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*U(x/P)/2:0,H(1-P)]};function Yr(){return r.geoProjection(Lr).scale(95.6464).center([0,30])}function Fr(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 O=o(z);return[z,2*i(U(O*O+L*L-Y*Y)-O,L-Y)]}:function(z,Y){return[z,H(z?Y*y(z)/z:Y)]},P}function st(){return Ur(Fr).scale(249.828).clipAngle(90)}var xt=U(3);function Rt(T,L){return[xt*T*(2*o(2*L/3)-1)/D,xt*D*p(L/3)]}Rt.invert=function(T,L){var P=3*H(L/(xt*D));return[D*T/(xt*(2*o(2*P/3)-1)),P]};function Kt(){return r.geoProjection(Rt).scale(156.19)}function cn(T){var L=o(T);function P(z,Y){return[z*L,p(Y)/L]}return P.invert=function(z,Y){return[z/L,H(Y*L)]},P}function pn(){return Ur(cn).parallel(38.58).scale(195.044)}function Mn(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 Xt(){return Ur(Mn).scale(124.75)}function Qt(T,L){var P=U(8/(3*x));return[P*T*(1-n(L)/x),P*L]}Qt.invert=function(T,L){var P=U(8/(3*x)),z=L/P;return[T/(P*(1-n(z)/x)),z]};function en(){return r.geoProjection(Qt).scale(165.664)}function an(T,L){var P=U(4-3*p(n(L)));return[2/U(6*x)*T*P,m(L)*U(2*x/3)*(2-P)]}an.invert=function(T,L){var P=2-n(L)/U(2*x/3);return[T*U(6*x)/(2*P),m(L)*H((4-P*P)/3)]};function jr(){return r.geoProjection(an).scale(165.664)}function Ut(T,L){var P=U(x*(4+x));return[2/P*T*(1+U(1-4*L*L/(x*x))),4/P*L]}Ut.invert=function(T,L){var P=U(x*(4+x))/2;return[T*P/(1+U(1-L*L*(4+x)/(4*x))),L*P/2]};function Nt(){return r.geoProjection(Ut).scale(180.739)}function rn(T,L){var P=(2+b)*p(L);L/=2;for(var z=0,Y=1/0;z<10&&n(Y)>_;z++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/U(x*(4+x))*T*(1+o(L)),2*U(x/(4+x))*p(L)]}rn.invert=function(T,L){var P=L*U((4+x)/x)/2,z=H(P),Y=o(z);return[T/(2/U(x*(4+x))*(1+Y)),H((z+P*(Y+2))/(2+b))]};function Tn(){return r.geoProjection(rn).scale(180.739)}function vn(T,L){return[T*(1+o(L))/U(2+x),2*L/U(2+x)]}vn.invert=function(T,L){var P=U(2+x),z=L*P/2;return[P*T/(1+o(z)),z]};function Yt(){return r.geoProjection(vn).scale(173.044)}function On(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=U(2+x),[T*(1+o(L))/P,2*L/P]}On.invert=function(T,L){var P=1+b,z=U(P/2);return[T*2*z/(1+o(L*=z)),H((L+p(L))/P)]};function Va(){return r.geoProjection(On).scale(173.044)}var kn=3+2*M;function Wa(T,L){var P=p(T/=2),z=o(T),Y=U(o(L)),O=o(L/=2),X=p(L)/(O+M*z*Y),ue=U(2/(1+X*X)),he=U((M*O+(z+P)*Y)/(M*O+(z-P)*Y));return[kn*(ue*(he-1/he)-2*u(he)),kn*(ue*X*(he+1/he)-2*a(X))]}Wa.invert=function(T,L){if(!(O=Qe.invert(T/1.2,L*1.065)))return null;var P=O[0],z=O[1],Y=20,O;T/=kn,L/=kn;do{var X=P/2,ue=z/2,he=p(X),le=o(X),de=p(ue),we=o(ue),qe=o(z),Ne=U(qe),er=de/(we+M*le*Ne),cr=er*er,Ar=U(2/(1+cr)),Xr=M*we+(le+he)*Ne,at=M*we+(le-he)*Ne,ot=Xr/at,ut=U(ot),vt=ut-1/ut,ln=ut+1/ut,An=Ar*vt-2*u(ut)-T,zt=Ar*er*ln-2*a(er)-L,Fn=de&&k*Ne*he*cr/de,ga=(M*le*we+Ne)/(2*(we+M*le*Ne)*(we+M*le*Ne)*Ne),ci=-.5*er*Ar*Ar*Ar,sl=ci*Fn,Xs=ci*ga,Ca=(Ca=2*we+M*Ne*(le-he))*Ca*ut,La=(M*le*we*Ne+qe)/Ca,Xi=-(M*he*de)/(Ne*Ca),ul=vt*sl-2*La/ut+Ar*(La+La/ot),fl=vt*Xs-2*Xi/ut+Ar*(Xi+Xi/ot),cl=er*ln*sl-2*Fn/(1+cr)+Ar*ln*Fn+Ar*er*(La-La/ot),$l=er*ln*Xs-2*ga/(1+cr)+Ar*ln*ga+Ar*er*(Xi-Xi/ot),mo=fl*cl-$l*ul;if(!mo)break;var js=(zt*fl-An*$l)/mo,Qf=(An*cl-zt*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 oa(){return r.geoProjection(Wa).scale(62.5271)}var hn=o(35*I);function dn(T,L){var P=y(L/2);return[T*hn*U(1-P*P),(1+hn)*P]}dn.invert=function(T,L){var P=L/(1+hn);return[T&&T/(hn*U(1-P*P)),2*a(P)]};function Un(){return r.geoProjection(dn).scale(137.152)}function mi(T,L){var P=L/2,z=o(P);return[2*T/D*o(L)*z*z,D*y(P)]}mi.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(mi).scale(135.264)}function yi(T){var L=1-T,P=O(x,0)[0]-O(-x,0)[0],z=O(0,b)[1]-O(0,-b)[1],Y=U(2*z/P);function O(he,le){var de=o(le),we=p(le);return[de/(L+T*de)*he,L*le+T*we]}function X(he,le){var de=O(he,le);return[de[0]*Y,de[1]/Y]}function ue(he){return X(0,he)[1]}return X.invert=function(he,le){var de=nr(ue,le),we=he/Y*(T+L/o(de));return[we,de]},X}function Ms(){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 zl(T){return[T[0]/2,H(y(T[1]/2*I))*N]}function Yo(T){return[T[0]*2,2*a(p(T[1]*I))*N]}function As(T){T==null&&(T=r.geoOrthographic);var L=T(),P=r.geoEquirectangular().scale(N).precision(0).clipAngle(null).translate([0,0]);function z(O){return L(zl(O))}L.invert&&(z.invert=function(O){return Yo(L.invert(O))}),z.stream=function(O){var X=L.stream(O),ue=P.stream({point:function(he,le){X.point(he/2,H(y(-le/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(O){z[O]=function(){return arguments.length?(L[O].apply(L,arguments),z):L[O]()}}return z.rotate=function(O){return arguments.length?(P.rotate(O),z):P.rotate()},z.center=function(O){return arguments.length?(L.center(zl(O)),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(O,X){var ue=r.geoAzimuthalEquidistantRaw(O,X),he=ue[0],le=ue[1],de=he*he+le*le;if(de>z){var we=U(de),qe=i(le,he),Ne=P*d(qe/P),er=qe-Ne,cr=T*o(er),Ar=(T*p(er)-er*p(cr))/(b-cr),Xr=Yn(er,Ar),at=(x-T)/bi(Xr,cr,x);he=we;var ot=50,ut;do he-=ut=(T+bi(Xr,cr,he)*at-we)/(Xr(he)*at);while(n(ut)>_&&--ot>0);le=er*p(he),hez){var he=U(ue),le=i(X,O),de=P*d(le/P),we=le-de;O=he*o(we),X=he*p(we);for(var qe=O-b,Ne=p(O),er=X/Ne,cr=O_||n(er)>_)&&--cr>0);return[we,qe]},he}var Qr=_i(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function St(){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 on(){return r.geoProjection(Zn).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,O;do{var X=z*z;z-=O=(z*(1+X/12)-L)/(1+X/4)}while(n(O)>_&&--Y>0);Y=50,T/=1-.162388*X;do{var ue=(ue=P*P)*ue;P-=O=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(O)>_&&--Y>0);return[P,z]};function At(){return r.geoProjection(Pn).scale(131.747)}var Za=_i(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Wo(){return r.geoProjection(Za).scale(131.087)}function Lf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var O=z>0?-.5:.5,X=T(z+O*x,Y);return X[0]-=O*L,X}return T.invert&&(P.invert=function(z,Y){var O=z>0?-.5:.5,X=T.invert(z+O*L,Y),ue=X[0]-O*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),O=o(T)*Y,X=p(T)*Y,ue=p(z*L);T=n(i(X,ue)),L=H(O),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,O=-z*L,X=O/Y<1,ue=Zo(X?O:Y,X?Y:O),he=ue[0],le=ue[1],de=o(le);return X&&(he=-b-he),[P*(i(p(he)*de,-p(le))+x),z*H(o(he)*de)]};function lo(T,L){if(L===b)return[0,0];var P=p(L),z=P*P,Y=z*z,O=1+Y,X=1+3*Y,ue=1-Y,he=H(1/U(O)),le=ue+z*O*he,de=(1-P)/le,we=U(de),qe=de*O,Ne=U(qe),er=we*ue,cr,Ar;if(T===0)return[0,-(er+z*Ne)];var Xr=o(L),at=1/Xr,ot=2*P*Xr,ut=(-3*z+he*X)*ot,vt=(-le*Xr-(1-P)*ut)/(le*le),ln=.5*vt/we,An=ue*ln-2*z*we*ot,zt=z*O*vt+de*X*ot,Fn=-at*ot,ga=-at*zt,ci=-2*at*An,sl=4*T/x,Xs;if(T>.222*x||L.175*x){if(cr=(er+z*U(qe*(1+Y)-er*er))/(1+Y),T>x/4)return[cr,cr];var Ca=cr,La=.5*cr;cr=.5*(La+Ca),Ar=50;do{var Xi=U(qe-cr*cr),ul=cr*(ci+Fn*Xi)+ga*H(cr/Ne)-sl;if(!ul)break;ul<0?La=cr:Ca=cr,cr=.5*(La+Ca)}while(n(Ca-La)>_&&--Ar>0)}else{cr=_,Ar=25;do{var fl=cr*cr,cl=U(qe-fl),$l=ci+Fn*cl,mo=cr*$l+ga*H(cr/Ne)-sl,js=$l+(ga-Fn*fl)/cl;cr-=Xs=cl?mo/js:0}while(n(Xs)>_&&--Ar>0)}return[cr,-er-z*U(qe-cr*cr)]}function Zo(T,L){for(var P=0,z=1,Y=.5,O=50;;){var X=Y*Y,ue=U(Y),he=H(1/U(1+X)),le=1-X+Y*(1+X)*he,de=(1-ue)/le,we=U(de),qe=de*(1+X),Ne=we*(1-X),er=qe-T*T,cr=U(er),Ar=L+Ne+Y*cr;if(n(z-P)0?P=Y:z=Y,Y=.5*(P+z)}if(!O)return null;var Xr=H(ue),at=o(Xr),ot=1/at,ut=2*ue*at,vt=(-3*Y+he*(1+3*X))*ut,ln=(-le*at-(1-ue)*vt)/(le*le),An=.5*ln/we,zt=(1-X)*An-2*Y*we*ut,Fn=-2*ot*zt,ga=-ot*ut,ci=-ot*(Y*(1+X)*ln+de*(1+3*X)*ut);return[x/4*(T*(Fn+ga*cr)+ci*H(T/U(qe))),Xr]}function Xo(){return r.geoProjection(Lf(yu)).scale(239.75)}function bu(T,L,P){var z,Y,O;return T?(z=Nl(T,P),L?(Y=Nl(L,1-P),O=Y[1]*Y[1]+P*z[0]*z[0]*Y[0]*Y[0],[[z[0]*Y[2]/O,z[1]*z[2]*Y[0]*Y[1]/O],[z[1]*Y[1]/O,-z[0]*z[2]*Y[0]*Y[2]/O],[z[2]*Y[1]*Y[2]/O,-P*z[0]*z[1]*Y[0]/O]]):[[z[0],0],[z[1],0],[z[2],0]]):(Y=Nl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Nl(T,L){var P,z,Y,O,X;if(L<_)return O=p(T),z=o(T),P=L*(T-O*z)/4,[O-P*z,z+P*O,1-L*O*O/2,T-P];if(L>=1-_)return P=(1-L)/4,z=re(T),O=ee(T),Y=1/z,X=z*ie(T),[O+P*(X-T)/(z*z),Y-P*O*Y*(X-T),Y+P*O*Y*(X+T),2*a(l(T))-b+P*(X-T)/z];var ue=[1,0,0,0,0,0,0,0,0],he=[U(L),0,0,0,0,0,0,0,0],le=0;for(z=U(1-L),X=1;n(he[le]/ue[le])>_&&le<8;)P=ue[le++],he[le]=(P-z)/2,ue[le]=(P+z)/2,z=U(P*z),X*=2;Y=X*ue[le]*T;do O=he[le]*p(z=Y)/ue[le],Y=(H(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-z),Y]}function Fl(T,L,P){var z=n(T),Y=n(L),O=ie(Y);if(z){var X=1/p(z),ue=1/(y(z)*y(z)),he=-(ue+P*(O*O*X*X)-1+P),le=(P-1)*ue,de=(-he+U(he*he-4*le))/2;return[xi(a(1/U(de)),P)*m(T),xi(a(U((de/ue-1)/P)),1-P)*m(L)]}return[0,xi(a(O),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=U(1-L),Y=U(L),O=0;n(Y)>_;O++){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=U(P*z),Y=((P=Y)-z)/2}return T/(h(2,O)*P)}function so(T,L){var P=(M-1)/(M+1),z=U(1-P*P),Y=xi(b,z*z),O=-1,X=u(y(x/4+n(L)/2)),ue=l(O*X)/U(P),he=jo(ue*o(O*T),ue*p(O*T)),le=Fl(he[0],he[1],z*z);return[-le[1],(L>=0?1:-1)*(.5*Y-le[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 Il(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=U(1-P*P),Y=xi(b,z*z),O=-1,X=bu(.5*Y-L,-T,z*z),ue=Il(X[0],X[1]),he=i(ue[1],ue[0])/O;return[he,2*a(l(.5/O*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-b]};function Ts(){return r.geoProjection(Lf(so)).scale(151.496)}function qf(T){var L=p(T),P=o(T),z=n0(T);z.invert=n0(-T);function Y(O,X){var ue=z(O,X);O=ue[0],X=ue[1];var he=p(X),le=o(X),de=o(O),we=V(L*he+P*le*de),qe=p(we),Ne=n(qe)>_?we/qe:1;return[Ne*P*p(O),(n(O)>b?Ne:-Ne)*(L*le-P*he*de)]}return Y.invert=function(O,X){var ue=U(O*O+X*X),he=-p(ue),le=o(ue),de=ue*le,we=-X*he,qe=ue*L,Ne=U(de*de+we*we-qe*qe),er=i(de*qe+we*Ne,we*qe-de*Ne),cr=(ue>b?-1:1)*i(O*he,ue*o(er)*le+X*p(er)*he);return z.invert(cr,er)},Y}function n0(T){var L=p(T),P=o(T);return function(z,Y){var O=o(Y),X=o(z)*O,ue=p(z)*O,he=p(Y);return[i(ue,X*P-he*L),H(he*P+X*L)]}}function ks(){var T=0,L=r.geoProjectionMutator(qf),P=L(T),z=P.rotate,Y=P.stream,O=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]),O.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=O.radius(90-ue)().coordinates[0],le=he.length-1,de=-1,we;for(X.lineStart();++de=0;)X.point((we=he[de])[0],we[1]);X.lineEnd(),X.polygonEnd()},X},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ss=3,Cs=H(1-1/Ss)*N,Jo=cn(0);function uo(T){var L=Cs*I,P=Lr(x,L)[0]-Lr(-x,L)[0],z=Jo(0,L)[1],Y=Lr(0,L)[1],O=D-Y,X=R/T,ue=4/R,he=z+O*O*4/R;function le(de,we){var qe,Ne=n(we);if(Ne>L){var er=v(T-1,f(0,s((de+x)/X)));de+=x*(T-1)/T-er*X,qe=Lr(de,Ne),qe[0]=qe[0]*R/P-R*(T-1)/(2*T)+er*R/T,qe[1]=z+(qe[1]-Y)*4*O/R,we<0&&(qe[1]=-qe[1])}else qe=Jo(de,we);return qe[0]*=ue,qe[1]/=he,qe}return le.invert=function(de,we){de/=ue,we*=he;var qe=n(we);if(qe>z){var Ne=v(T-1,f(0,s((de+x)/X)));de=(de+x*(T-1)/T-Ne*X)*P/R;var er=Lr.invert(de,.25*(qe-z)*R/O+Y);return er[0]-=x*(T-1)/T-Ne*X,we<0&&(er[1]=-er[1]),er}return Jo.invert(de,we)},le}function fo(T,L){return[T,L&1?90-_:Cs]}function Bi(T,L){return[T,L&1?-90+_:-Cs]}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(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Df):L]}}function Hl(){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 O=P.rotate(),X=z(Y),ue=(P.rotate([0,0]),z(Y));return P.rotate(O),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=H(P),Y=2*U(x/(O=x+4*z*L)),O,X=.5*Y*(L+U(T*(2+T))),ue=T*T,he=L*L;function le(de,we){var qe=1-p(we),Ne,er;if(qe&&qe<2){var cr=b-we,Ar=25,Xr;do{var at=p(cr),ot=o(cr),ut=z+i(at,L-ot),vt=1+he-2*L*ot;cr-=Xr=(cr-ue*z-L*at+vt*ut-.5*qe*O)/(2*L*at*ut)}while(n(Xr)>C&&--Ar>0);Ne=Y*U(vt),er=de*ut/x}else Ne=Y*(T+qe),er=de*z/x;return[Ne*p(er),X-Ne*o(er)]}return le.invert=function(de,we){var qe=de*de+(we-=X)*we,Ne=(1+he-qe/(Y*Y))/(2*L),er=V(Ne),cr=p(er),Ar=z+i(cr,L-Ne);return[H(de/U(qe))*x/Ar,H(1-2*(er-ue*z-L*cr+(1+he-2*L*Ne)*Ar)/O)]},le}function a0(){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 Ls=.7109889596207567,Oi=.0528035274542;function qs(T,L){return L>-Ls?(T=Ke(T,L),T[1]+=Oi,T):tr(T,L)}qs.invert=function(T,L){return L>-Ls?Ke.invert(T,L-Oi):tr.invert(T,L)};function i0(){return r.geoProjection(qs).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ds(T,L){return n(L)>Ls?(T=Ke(T,L),T[1]-=L>0?Oi:-Oi,T):tr(T,L)}Ds.invert=function(T,L){return n(L)>Ls?Ke.invert(T,L+(L>0?Oi:-Oi)):tr.invert(T,L)};function Gv(){return r.geoProjection(Ds).scale(152.63)}function $o(T,L,P,z){var Y=U(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=U(z*p(P)*U((1+T*o(2*P)+L*o(4*P))/(1+T+L))),X=P*he(1);function ue(we){return U(1+T*o(2*we)+L*o(4*we))}function he(we){var qe=we*P;return(2*qe+(1+T-L/2)*p(2*qe)+(T+L)/2*p(4*qe)+L/2*p(6*qe))/P}function le(we){return ue(we)*p(we)}var de=function(we,qe){var Ne=P*nr(he,X*p(qe)/P,qe/x);isNaN(Ne)&&(Ne=P*m(qe));var er=Y*ue(Ne);return[er*O*we/x*o(Ne),er/O*p(Ne)]};return de.invert=function(we,qe){var Ne=nr(le,qe*O/Y);return[we*x/(o(Ne)*Y*O*ue(Ne)),H(P*he(Ne/P)/X)]},P===0&&(Y=U(z/x),de=function(we,qe){return[we*Y,p(qe)/Y]},de.invert=function(we,qe){return[we/Y,H(qe*Y)]}),de}function Pf(){var T=1,L=0,P=45*I,z=2,Y=r.geoProjectionMutator($o),O=Y(T,L,P,z);return O.a=function(X){return arguments.length?Y(T=+X,L,P,z):T},O.b=function(X){return arguments.length?Y(T,L=+X,P,z):L},O.psiMax=function(X){return arguments.length?Y(T,L,P=+X*I,z):P*N},O.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},O.scale(180.739)}function Bl(T,L,P,z,Y,O,X,ue,he,le,de){if(de.nanEncountered)return NaN;var we,qe,Ne,er,cr,Ar,Xr,at,ot,ut;if(we=P-L,qe=T(L+we*.25),Ne=T(P-we*.25),isNaN(qe)){de.nanEncountered=!0;return}if(isNaN(Ne)){de.nanEncountered=!0;return}return er=we*(z+4*qe+Y)/12,cr=we*(Y+4*Ne+O)/12,Ar=er+cr,ut=(Ar-X)/15,le>he?(de.maxDepthCount++,Ar+ut):Math.abs(ut)>1;do he[Ar]>Ne?cr=Ar:er=Ar,Ar=er+cr>>1;while(Ar>er);var Xr=he[Ar+1]-he[Ar];return Xr&&(Xr=(Ne-he[Ar+1])/Xr),(Ar+1+Xr)/X}var we=2*de(1)/x*O/P,qe=function(Ne,er){var cr=de(n(p(er))),Ar=z(cr)*Ne;return cr/=we,[Ar,er>=0?cr:-cr]};return qe.invert=function(Ne,er){var cr;return er*=we,n(er)<1&&(cr=m(er)*H(Y(n(er))*O)),[Ne/z(n(er)),cr]},qe}function vo(){var T=0,L=2.5,P=1.183136,z=r.geoProjectionMutator(co),Y=z(T,L,P);return Y.alpha=function(O){return arguments.length?z(T=+O,L,P):T},Y.k=function(O){return arguments.length?z(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?z(T,L,P=+O):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],O,X,ue,he=[];++P=0;--he)P=T[1][he],z=P[0][0],Y=P[0][1],O=P[1][1],X=P[2][0],ue=P[2][1],L.push(wi([[X-_,ue-_],[X-_,O+_],[z+_,O+_],[z+_,Y-_]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var z,Y;function O(he,le){for(var de=le<0?-1:1,we=L[+(le<0)],qe=0,Ne=we.length-1;qewe[qe][2][0];++qe);var er=T(he-we[qe][1][0],le);return er[0]+=T(we[qe][1][0],de*le>de*we[qe][0][1]?we[qe][0][1]:le)[0],er}P?O.invert=P(O):T.invert&&(O.invert=function(he,le){for(var de=Y[+(le<0)],we=L[+(le<0)],qe=0,Ne=de.length;qeer&&(cr=Ne,Ne=er,er=cr),[[we,Ne],[qe,er]]})}),X):L.map(function(le){return le.map(function(de){return[[de[0][0]*N,de[0][1]*N],[de[1][0]*N,de[1][1]*N],[de[2][0]*N,de[2][1]*N]]})})},L!=null&&X.lobes(L),X}var Ol=[[[[-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 Wv(){return Ui(Ue,Ol).scale(160.857)}var Yi=[[[[-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 Ui(Ds,Yi).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 Ui(Ke,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 Es(){return Ui(Ke,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 Ps(){return Ui(qs,xu,ar).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Rs=[[[[-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 Ui(tr,Rs).scale(152.63).rotate([-20,0])}function Ul(T,L){return[3/R*T*U(x*x/3-L*L),L]}Ul.invert=function(T,L){return[R/3*T/U(x*x/3-L*L),L]};function Yl(){return r.geoProjection(Ul).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),O=h((1+Y)/(1-Y),T/2),X=.5*(O+1/O)+o(P*=T);return[2*p(P)/X,(O-1/O)/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 O=P*P,X=z*z,ue=2*z/(1+O+X);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-O-X)/T,H((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 si=x/M;function Au(T,L){return[T*(1+U(o(L)))/2,L/(o(L/2)*o(T/6))]}Au.invert=function(T,L){var P=n(T),z=n(L),Y=_,O=b;z_||n(Ar)>_)&&--Y>0);return Y&&[P,z]};function ta(){return r.geoProjection(za).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,z=L*L,Y=z+1,O=P+Y,X=T?k*U((O-U(O*O-4*P))/P):1/U(Y);return[H(T*X),m(L)*V(X)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function zs(T){var L=o(T),P=y(A+T/2);function z(Y,O){var X=O-T,ue=n(X)<_?Y*L:n(ue=A+O/2)<_||n(n(ue)-b)<_?0:Y*X/u(y(ue)/P);return[ue,X]}return z.invert=function(Y,O){var X,ue=O+T;return[n(O)<_?Y/L:n(X=A+ue/2)<_||n(n(X)-b)<_?0:Y*u(y(X)/P)/O,ue]},z}function tl(){return Ur(zs).parallel(40).scale(158.837)}function Gl(T,L){return[T,1.25*u(y(A+.4*L))]}Gl.invert=function(T,L){return[T,2.5*a(l(.8*L))-.625*x]};function zf(){return r.geoProjection(Gl).scale(108.318)}function l0(T){var L=T.length-1;function P(z,Y){for(var O=o(Y),X=2/(1+O*o(z)),ue=X*O*p(z),he=X*p(Y),le=L,de=T[le],we=de[0],qe=de[1],Ne;--le>=0;)de=T[le],we=de[0]+ue*(Ne=we)-he*qe,qe=de[1]+ue*qe+he*Ne;return we=ue*(Ne=we)-he*qe,qe=ue*qe+he*Ne,[we,qe]}return P.invert=function(z,Y){var O=20,X=z,ue=Y;do{for(var he=L,le=T[he],de=le[0],we=le[1],qe=0,Ne=0,er;--he>=0;)le=T[he],qe=de+X*(er=qe)-ue*Ne,Ne=we+X*Ne+ue*er,de=le[0]+X*(er=de)-ue*we,we=le[1]+X*we+ue*er;qe=de+X*(er=qe)-ue*Ne,Ne=we+X*Ne+ue*er,de=X*(er=de)-ue*we-z,we=X*we+ue*er-Y;var cr=qe*qe+Ne*Ne,Ar,Xr;X-=Ar=(de*qe+we*Ne)/cr,ue-=Xr=(we*qe-de*Ne)/cr}while(n(Ar)+n(Xr)>_*_&&--O>0);if(O){var at=U(X*X+ue*ue),ot=2*a(at*.5),ut=p(ot);return[i(X*ut,at*o(ot)),at?H(ue*ut/at):0]}},P}var Zv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Xv=[[.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(Zv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function s0(){return Mi(Xv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function u0(){return Mi(Nf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ns(){return Mi(Ff,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Fs(){return Mi(If,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Mi(T,L){var P=r.geoProjection(l0(T)).rotate(L).clipAngle(90),z=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(z(O)):z.invert(Y())},P}var ku=U(6),Is=U(7);function Su(T,L){var P=H(7*p(L)/(3*ku));return[ku*T*(2*o(2*P/3)-1)/Is,9*p(P/3)/Is]}Su.invert=function(T,L){var P=3*H(L*Is/9);return[T*Is/(ku*(2*o(2*P/3)-1)),H(p(P)*3*ku/7)]};function f0(){return r.geoProjection(Su).scale(164.859)}function Bf(T,L){for(var P=(1+k)*p(L),z=L,Y=0,O;Y<25&&(z-=O=(p(z/2)+p(z)-P)/(.5*o(z/2)+o(z)),!(n(O)<_));Y++);return[T*(1+2*o(z)/o(z/2))/(3*M),2*U(3)*p(z/2)/U(2+M)]}Bf.invert=function(T,L){var P=L*U(2+M)/(2*U(3)),z=2*H(P);return[3*M*T/(1+2*o(z)/o(z/2)),H((P+p(z))/(1+k))]};function jv(){return r.geoProjection(Bf).scale(188.209)}function po(T,L){for(var P=U(6/(4+x)),z=(1+x/4)*p(L),Y=L/2,O=0,X;O<25&&(Y-=X=(Y/2+p(Y)-z)/(.5+o(Y)),!(n(X)<_));O++);return[P*(.5+o(Y))*T/1.5,P*Y]}po.invert=function(T,L){var P=U(6/(4+x)),z=L/P;return n(n(z)-b)<_&&(z=z<0?-b:b),[1.5*T/(P*(.5+o(z))),H((z/2+p(z))/(1+x/4))]};function Cu(){return r.geoProjection(po).scale(166.518)}function Vl(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))]}Vl.invert=function(T,L){var P=L,z=25,Y,O,X,ue;do O=P*P,X=O*O,P-=Y=(P*(1.01183+X*X*(-.02625+.01926*O-.00396*X))-L)/(1.01183+X*X*(9*-.02625+11*.01926*O+13*-.00396*X));while(n(Y)>C&&--z>0);return O=P*P,X=O*O,ue=O*X,[T/(.84719-.13063*O+ue*ue*(-.04515+.05494*O-.02326*X+.00331*ue)),P]};function Hs(){return r.geoProjection(Vl).scale(175.295)}function Bs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Bs.invert=function(T,L){for(var P=L/2,z=0,Y=1/0;z<10&&n(Y)>_;++z){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Of(){return r.geoProjection(Bs).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 c0(){return Ui(_e(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 O=x/(2*T)-2*T/x,X=2*L/x,ue=(1-X*X)/(P-X),he=O*O,le=ue*ue,de=1+he/le,we=1+le/he,qe=(O*P/ue-O/2)/de,Ne=(le*P/he+ue/2)/we,er=qe*qe+z*z/de,cr=Ne*Ne-(le*P*P/he+ue*P-1)/we;return[b*(qe+U(er)*Y),b*(Ne+U(cr<0?0:cr)*m(-L*O)*Y)]}Uf.invert=function(T,L){T/=b,L/=b;var P=T*T,z=L*L,Y=P+z,O=x*x;return[T?(Y-1+U((1-Y)*(1-Y)+4*P))/(2*T)*b:0,nr(function(X){return Y*(x*p(X)-2*X)*x+4*X*X*(L-p(X))+2*x*X-O*L},0)]};function v0(){return r.geoProjection(Uf).scale(127.267)}var Yf=1.0148,Lu=.23185,Gf=-.14499,Vf=.02406,Jv=Yf,Wf=5*Lu,Ai=7*Gf,Zf=9*Vf,Wl=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>Wl?L=Wl:L<-Wl&&(L=-Wl);var P=L,z;do{var Y=P*P;P-=z=(P*(Yf+Y*Y*(Lu+Y*(Gf+Vf*Y)))-L)/(Jv+Y*Y*(Wf+Y*(Ai+Zf*Y)))}while(n(z)>_);return[T,P]};function h0(){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,O;do{var X=y(z),ue=1/o(z),he=P-2*L*z+z*z;z-=O=(X*he+2*(z-L))/(2+he*ue*ue+2*(z-L)*X)}while(n(O)>_&&--Y>0);return X=y(z),[(n(L)=0;)if(z=L[ue],P[0]===z[0]&&P[1]===z[1]){if(O)return[O,P];O=P}}}function m0(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])}),Zl(L[0],function(P,z){return L[P<-x/2?z<0?6:4:P<0?z<0?2:0:Pz^Ne>z&&P<(qe-le)*(z-de)/(Ne-de)+le&&(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=x0;break;case"FeatureCollection":z=_0;break;default:z=Ru;break}return z(T,P)}function _0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return x0(P,L)})}}function x0(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=Zs;break;case"MultiPolygon":P=Zs;break;case"Sphere":P=Zs;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Xn=[],ui=[],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&&(ui.push(Xn),Xn=[])},result:function(){var T=ui.length?ui.length<2?{type:"LineString",coordinates:ui[0]}:{type:"MultiLineString",coordinates:ui}:null;return ui=[],T}},Zs={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);ui.push(Xn),Xn=[]}},polygonEnd:Eu,result:function(){if(!ui.length)return null;var T=[],L=[];return ui.forEach(function(P){Ws(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var z=P[0];T.some(function(Y){if(b0(Y[0],z))return Y.push(P),!0})||T.push([P])}),ui=[],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 O=n(z)0?z-x:z+x,Y),ue=(X[0]-X[1])*k,he=(X[0]+X[1])*k;if(O)return[ue,he];var le=L*k,de=ue>0^he>0?-1:1;return[de*ue-m(he)*le,de*he-m(ue)*le]}return T.invert&&(P.invert=function(z,Y){var O=(z+Y)*k,X=(Y-z)*k,ue=n(O)<.5*L&&n(X)<.5*L;if(!ue){var he=L*k,le=O>0^X>0?-1:1,de=-le*z+(X>0?1:-1)*he,we=-le*Y+(O>0?1:-1)*he;O=(-de-we)*k,X=(de-we)*k}var qe=T.invert(O,X);return ue||(qe[0]+=O>0?x:-x),qe}),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(le){var de=le.length,we=2,qe=new Array(de);for(qe[0]=+le[0].toFixed(L),qe[1]=+le[1].toFixed(L);we2||Ne[0]!=de[0]||Ne[1]!=de[1])&&(we.push(Ne),de=Ne)}return we.length===1&&le.length>1&&we.push(P(le[le.length-1])),we}function O(le){return le.map(Y)}function X(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(X)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:z(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function ue(le){var de={type:"Feature",properties:le.properties,geometry:X(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}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 O=L?y(z*L/2)/L:z/2;if(!Y)return[2*O,-T];var X=2*a(O*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 O=z*z+Y*Y,X=0,ue=10,he;do{var le=y(X),de=1/o(X),we=O-2*Y*X+X*X;X-=he=(le*we+2*(X-Y))/(2+we*de*de+2*(X-Y)*le)}while(n(he)>_&&--ue>0);var qe=z*(le=y(X)),Ne=y(n(Y)0?b:-b)*(he+Y*(de-X)/2+Y*Y*(de-2*he+X)/2)]}je.invert=function(T,L){var P=L/b,z=P*90,Y=v(18,n(z/5)),O=f(0,s(Y));do{var X=Oe[O][1],ue=Oe[O+1][1],he=Oe[v(19,O+2)][1],le=he-X,de=he-2*ue+X,we=2*(n(P)-ue)/le,qe=de/le,Ne=we*(1-qe*we*(1-2*qe*we));if(Ne>=0||O===1){z=(L>=0?5:-5)*(Ne+Y);var er=50,cr;do Y=v(18,n(z)/5),O=s(Y),Ne=Y-O,X=Oe[O][1],ue=Oe[O+1][1],he=Oe[v(19,O+2)][1],z-=(cr=(L>=0?b:-b)*(ue+Ne*(he-X)/2+Ne*Ne*(he-2*ue+X)/2)-L)*N;while(n(cr)>C&&--er>0);break}}while(--O>=0);var Ar=Oe[O][0],Xr=Oe[O+1][0],at=Oe[v(19,O+2)][0];return[T/(Xr+Ne*(at-Ar)/2+Ne*Ne*(at-2*Xr+Ar)/2),z*I]};function ir(){return r.geoProjection(je).scale(152.63)}function sr(T){function L(P,z){var Y=o(z),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(z)]}return L.invert=function(P,z){var Y=P*P+z*z,O=U(Y),X=(T-U(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*X,O*U(1-X*X)),O?H(z*X/O):0]},L}function br(T,L){var P=sr(T);if(!L)return P;var z=o(L),Y=p(L);function O(X,ue){var he=P(X,ue),le=he[1],de=le*Y/(T-1)+z;return[he[0]*z/de,le/de]}return O.invert=function(X,ue){var he=(T-1)/(T-1-ue*Y);return P.invert(he*X,he*ue*z)},O}function Je(){var T=2,L=0,P=r.geoProjectionMutator(br),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(V(1/T)*N-1e-6)}var vr=1e-4,fr=1e4,Mr=-180,qr=Mr+vr,rt=180,Jr=rt-vr,tt=-90,nt=tt+vr,Er=90,Ir=Er-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*fr)/fr}function Gt(T){return T===tt||T===Er?[0,T]:[Mr,pt(T)]}function tn(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>=Ir&&(P=Er,z=!0),z?[L,P]:T}function Wt(T){return T.map(tn)}function mn(T,L,P){for(var z=0,Y=T.length;z=Jr||de<=nt||de>=Ir){O[X]=tn(he);for(var we=X+1;weqr&&Nent&&er=ue)break;P.push({index:-1,polygon:L,ring:O=O.slice(we-1)}),O[0]=Gt(O[0][1]),X=-1,ue=O.length}}}}function Ct(T){var L,P=T.length,z={},Y={},O,X,ue,he,le;for(L=0;L0?x-ue:ue)*N],le=r.geoProjection(T(X)).rotate(he),de=r.geoRotation(he),we=le.center;return delete le.rotate,le.center=function(qe){return arguments.length?we(de(qe)):de.invert(we())},le.clipAngle(90)}function pa(T){var L=o(T);function P(z,Y){var O=r.geoGnomonicRaw(z,Y);return O[0]*=L,O}return P.invert=function(z,Y){return r.geoGnomonicRaw.invert(z/L,Y)},P}function ja(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Gn(pa,T,L)}function ki(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,z=T*T,Y=y(P),O=.5/p(P);function X(ue,he){var le=V(o(he)*o(ue-L)),de=V(o(he)*o(ue-P)),we=he<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),we*U(4*z*de-(z-le+de)*(z-le+de))/(2*T)]}return X.invert=function(ue,he){var le=he*he,de=o(U(le+(qe=ue+L)*qe)),we=o(U(le+(qe=ue+P)*qe)),qe,Ne;return[i(Ne=de-we,qe=(de+we)*Y),(he<0?-1:1)*V(U(qe*qe+Ne*Ne)*O)]},X}function ol(){return fi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function fi(T,L){return Gn(ki,T,L)}function ll(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),O=n(x/T-T/x)/2,X=O*O,ue=Y/(P+Y-1),he=ue*(2/P-1),le=he*he,de=le+X,we=ue-le,qe=X+ue;return[m(T)*x*(O*we+U(X*we*we-de*(ue*ue-le)))/de,m(L)*x*(he*qe-O*U((X+1)*de-qe*qe))/de]}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,O=Y*Y,X=-n(L)*(1+Y),ue=X-2*z+P,he=-2*X+1+2*z+O,le=z/he+(2*ue*ue*ue/(he*he*he)-9*X*ue/(he*he))/27,de=(X-ue*ue/(3*he))/he,we=2*U(-de/3),qe=V(3*le/(de*we))/3;return[x*(Y-1+U(1+2*(P-z)+O))/(2*T),m(L)*x*(-we*o(qe+x/3)-ue/(3*he))]};function Jl(){return r.geoProjection(ll).scale(79.4183)}function Nu(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),O=n(x/T-T/x)/2,X=O*O,ue=Y*(U(1+X)-O*Y)/(1+X*P*P);return[m(T)*x*ue,m(L)*x*U(1-ue*(2*O+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,O=U(Y+1);return[m(T)*x*(O-z),m(L)*b*p(2*i(U((1-2*z*P)*(z+O)-P),U(O+z+P)))]};function w0(){return r.geoProjection(Nu).scale(79.4183)}function M0(T,L){if(n(L)<_)return[T,0];var P=L/b,z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,x*y(z/2)];var Y=(x/T-T/x)/2,O=P/(1+o(z));return[x*(m(T)*U(Y*Y+1-O*O)-Y),x*O]}M0.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)*U(z*z+1)-z):0,b*p(2*a(P))]};function td(){return r.geoProjection(M0).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,O=(8*z-Y*(Y+2)-5)/(2*Y*(z-1)),X=O*O,ue=z*O,he=Y+X+2*ue,le=z+3*O,de=T/b,we=de+1/de,qe=m(n(T)-b)*U(we*we-4),Ne=qe*qe,er=he*(Y+X*Ne-1)+(1-Y)*(Y*(le*le+4*X)+12*ue*X+4*X*X),cr=(qe*(he+X-1)+2*U(er))/(4*he+Ne);return[m(T)*b*cr,m(L)*b*U(1+qe*n(cr)-cr*cr)]}$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),O=Y*Y,X=2*L,ue=50;do{var he=X*X,le=(8*X-he*(he+2)-5)/(2*he*(X-1)),de=(3*X-he*X-10)/(2*he*X),we=le*le,qe=X*le,Ne=X+le,er=Ne*Ne,cr=X+3*le,Ar=er*(he+we*O-1)+(1-he)*(he*(cr*cr+4*we)+we*(12*qe+4*we)),Xr=-2*Ne*(4*qe*we+(1-4*he+3*he*he)*(1+de)+we*(-6+14*he-O+(-8+8*he-2*O)*de)+qe*(-8+12*he+(-10+10*he-O)*de)),at=U(Ar),ot=Y*(er+we-1)+2*at-z*(4*er+O),ut=Y*(2*le*de+2*Ne*(1+de))+Xr/at-8*Ne*(Y*(-1+we+er)+2*at)*(1+de)/(O+4*er);X-=P=ot/ut}while(P>_&&--ue>0);return[m(T)*(U(Y*Y+4)+Y)*x/4,b*X]};function Zi(){return r.geoProjection($f).scale(127.16)}function nd(T,L,P,z,Y){function O(X,ue){var he=P*p(z*ue),le=U(1-he*he),de=U(2/(1+le*o(X*=Y)));return[T*le*de*p(X),L*he*de]}return O.invert=function(X,ue){var he=X/T,le=ue/L,de=U(he*he+le*le),we=2*H(de/2);return[i(X*y(we),T*de)/Y,de&&H(ue*p(we)/(L*P*de))/z]},O}function ad(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 O=P/100+1,X=z/100,ue=V(O*o(Y))/Y,he=p(T)/p(ue*b),le=L/x,de=U(X*p(T/2)/p(L/2)),we=de/U(le*he*ue),qe=1/(de*U(le*he*ue));return nd(we,qe,he,ue,le)}function A0(){var T=65*I,L=60*I,P=20,z=200,Y=r.geoProjectionMutator(ad),O=Y(T,L,P,z);return O.poleline=function(X){return arguments.length?Y(T=+X*I,L,P,z):T*N},O.parallels=function(X){return arguments.length?Y(T,L=+X*I,P,z):L*N},O.inflation=function(X){return arguments.length?Y(T,L,P=+X,z):P},O.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},O.scale(163.775)}function r1(){return A0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var id=4*x+3*U(3),od=2*U(2*x*U(3)/id),ld=hr(od*U(3)/x,od,id/6);function T0(){return r.geoProjection(ld).scale(176.84)}function Kf(T,L){return[T*U(1-3*L*L/(x*x)),L]}Kf.invert=function(T,L){return[T/U(1-3*L*L/(x*x)),L]};function sd(){return r.geoProjection(Kf).scale(152.63)}function t1(T,L){var P=o(L),z=o(T)*P,Y=1-z,O=o(T=i(p(T)*P,-p(L))),X=p(T);return P=U(1-z*z),[X*P-O*Y,-O*P-X*Y]}t1.invert=function(T,L){var P=(T*T+L*L)/-2,z=U(-P*(2+P)),Y=L*P+T*z,O=T*P-L*z,X=U(O*O+Y*Y);return[i(z*Y,X*(1+P)),X?-H(z*O/X):0]};function Ly(){return r.geoProjection(t1).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function n1(T,L){var P=Fe(T,L);return[(P[0]+T/b)/2,(P[1]+L)/2]}n1.invert=function(T,L){var P=T,z=L,Y=25;do{var O=o(z),X=p(z),ue=p(2*z),he=X*X,le=O*O,de=p(P),we=o(P/2),qe=p(P/2),Ne=qe*qe,er=1-le*we*we,cr=er?V(O*we)*U(Ar=1/er):Ar=0,Ar,Xr=.5*(2*cr*O*qe+P/b)-T,at=.5*(cr*X+z)-L,ot=.5*Ar*(le*Ne+cr*O*we*he)+.5/b,ut=Ar*(de*ue/4-cr*X*qe),vt=.125*Ar*(ue*qe-cr*X*le*de),ln=.5*Ar*(he*we+cr*Ne*O)+.5,An=ut*vt-ln*ot,zt=(at*ut-Xr*ln)/An,Fn=(Xr*vt-at*ot)/An;P-=zt,z-=Fn}while((n(zt)>_||n(Fn)>_)&&--Y>0);return[P,z]};function Si(){return r.geoProjection(n1).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Se,e.geoAiryRaw=ce,e.geoAitoff=He,e.geoAitoffRaw=Fe,e.geoArmadillo=Le,e.geoArmadilloRaw=Xe,e.geoAugust=fe,e.geoAugustRaw=Qe,e.geoBaker=G,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=or,e.geoBertin1953Raw=Be,e.geoBoggs=kr,e.geoBoggsRaw=Ue,e.geoBonne=pr,e.geoBonneRaw=Ze,e.geoBottomley=yr,e.geoBottomleyRaw=Tr,e.geoBromley=Hr,e.geoBromleyRaw=wr,e.geoChamberlin=rr,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=$e,e.geoCollignon=Yr,e.geoCollignonRaw=Lr,e.geoCraig=st,e.geoCraigRaw=Fr,e.geoCraster=Kt,e.geoCrasterRaw=Rt,e.geoCylindricalEqualArea=pn,e.geoCylindricalEqualAreaRaw=cn,e.geoCylindricalStereographic=Xt,e.geoCylindricalStereographicRaw=Mn,e.geoEckert1=en,e.geoEckert1Raw=Qt,e.geoEckert2=jr,e.geoEckert2Raw=an,e.geoEckert3=Nt,e.geoEckert3Raw=Ut,e.geoEckert4=Tn,e.geoEckert4Raw=rn,e.geoEckert5=Yt,e.geoEckert5Raw=vn,e.geoEckert6=Va,e.geoEckert6Raw=On,e.geoEisenlohr=oa,e.geoEisenlohrRaw=Wa,e.geoFahey=Un,e.geoFaheyRaw=dn,e.geoFoucaut=oo,e.geoFoucautRaw=mi,e.geoFoucautSinusoidal=Ms,e.geoFoucautSinusoidalRaw=yi,e.geoGilbert=As,e.geoGingery=Vo,e.geoGingeryRaw=Go,e.geoGinzburg4=St,e.geoGinzburg4Raw=Qr,e.geoGinzburg5=Br,e.geoGinzburg5Raw=It,e.geoGinzburg6=on,e.geoGinzburg6Raw=Zn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Wo,e.geoGinzburg9Raw=Za,e.geoGringorten=Xo,e.geoGringortenRaw=yu,e.geoGuyou=Ts,e.geoGuyouRaw=so,e.geoHammer=Ie,e.geoHammerRaw=_e,e.geoHammerRetroazimuthal=ks,e.geoHammerRetroazimuthalRaw=qf,e.geoHealpix=Hl,e.geoHealpixRaw=uo,e.geoHill=a0,e.geoHillRaw=Ef,e.geoHomolosine=Gv,e.geoHomolosineRaw=Ds,e.geoHufnagel=Pf,e.geoHufnagelRaw=$o,e.geoHyperelliptical=vo,e.geoHyperellipticalRaw=co,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Wv,e.geoInterruptedHomolosine=Ko,e.geoInterruptedMollweide=el,e.geoInterruptedMollweideHemispheres=Es,e.geoInterruptedSinuMollweide=Ps,e.geoInterruptedSinusoidal=rl,e.geoKavrayskiy7=Yl,e.geoKavrayskiy7Raw=Ul,e.geoLagrange=Mu,e.geoLagrangeRaw=wu,e.geoLarrivee=Tu,e.geoLarriveeRaw=Au,e.geoLaskowski=ta,e.geoLaskowskiRaw=za,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=tl,e.geoLoximuthalRaw=zs,e.geoMiller=zf,e.geoMillerRaw=Gl,e.geoModifiedStereographic=Mi,e.geoModifiedStereographicRaw=l0,e.geoModifiedStereographicAlaska=Hf,e.geoModifiedStereographicGs48=s0,e.geoModifiedStereographicGs50=u0,e.geoModifiedStereographicMiller=Ns,e.geoModifiedStereographicLee=Fs,e.geoMollweide=gr,e.geoMollweideRaw=Ke,e.geoMtFlatPolarParabolic=f0,e.geoMtFlatPolarParabolicRaw=Su,e.geoMtFlatPolarQuartic=jv,e.geoMtFlatPolarQuarticRaw=Bf,e.geoMtFlatPolarSinusoidal=Cu,e.geoMtFlatPolarSinusoidalRaw=po,e.geoNaturalEarth2=Hs,e.geoNaturalEarth2Raw=Vl,e.geoNellHammer=Of,e.geoNellHammerRaw=Bs,e.geoInterruptedQuarticAuthalic=c0,e.geoNicolosi=v0,e.geoNicolosiRaw=Uf,e.geoPatterson=h0,e.geoPattersonRaw=Xf,e.geoPolyconic=d0,e.geoPolyconicRaw=nl,e.geoPolyhedral=Zl,e.geoPolyhedralButterfly=Us,e.geoPolyhedralCollignon=e1,e.geoPolyhedralWaterman=Gs,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=Je,e.geoSatelliteRaw=br,e.geoSinuMollweide=i0,e.geoSinuMollweideRaw=qs,e.geoSinusoidal=Ye,e.geoSinusoidalRaw=tr,e.geoStitch=yn,e.geoTimes=Vt,e.geoTimesRaw=Gr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=pa,e.geoTwoPointAzimuthalUsa=ja,e.geoTwoPointEquidistant=fi,e.geoTwoPointEquidistantRaw=ki,e.geoTwoPointEquidistantUsa=ol,e.geoVanDerGrinten=Jl,e.geoVanDerGrintenRaw=ll,e.geoVanDerGrinten2=w0,e.geoVanDerGrinten2Raw=Nu,e.geoVanDerGrinten3=td,e.geoVanDerGrinten3Raw=M0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=$f,e.geoWagner=A0,e.geoWagner7=r1,e.geoWagnerRaw=ad,e.geoWagner4=T0,e.geoWagner4Raw=ld,e.geoWagner6=sd,e.geoWagner6Raw=Kf,e.geoWiechel=Ly,e.geoWiechelRaw=t1,e.geoWinkel3=Si,e.geoWinkel3Raw=n1,Object.defineProperty(e,"__esModule",{value:!0})})});var MF=te((m1e,wF)=>{"use strict";var da=kt(),d_=dr(),mie=dt(),Iv=Math.PI/180,jc=180/Math.PI,g_={cursor:"pointer"},m_={cursor:"auto"};function yie(e,r){var t=e.projection,n;return r._isScoped?n=bie:r._isClipped?n=xie:n=_ie,n(e,t)}wF.exports=yie;function y_(e,r){return da.behavior.zoom().translate(r.translate()).scale(r.scale())}function b_(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]=d_.nestedProperty(o,h).get(),mie.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=d_.nestedProperty(s,h);m.get()!==d&&(m.set(d),d_.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 bie(e,r){var t=y_(e,r);function n(){da.select(this).style(g_)}function a(){r.scale(da.event.scale).translate(da.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(){da.select(this).style(m_),b_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function _ie(e,r){var t=y_(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(){da.select(this).style(g_),a=da.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=da.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(da.event.scale),r.translate([o[0],da.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 _(){da.select(this).style(m_),h&&b_(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 xie(e,r){var t={r:r.rotate(),k:r.scale()},n=y_(e,r),a=Lie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){da.select(this).style(g_);var h=da.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=wie(d);l=dy(r,h),o.call(n,"zoom",function(){var _=da.mouse(this);if(r.scale(t.k=da.event.scale),!l)h=_,l=dy(r,h);else if(dy(r,_)){r.rotate(d).translate(p);var C=dy(r,_),x=Aie(l,C),b=kie(Mie(y,x)),A=t.r=Tie(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(){da.select(this).style(m_),o.call(n,"zoom",null),f(a.of(this,arguments)),b_(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 da.rebind(n,a,"on")}function dy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&Sie(t)}function wie(e){var r=.5*e[0]*Iv,t=.5*e[1]*Iv,n=.5*e[2]*Iv,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 Mie(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 Aie(e,r){if(!(!e||!r)){var t=Cie(e,r),n=Math.sqrt(xF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,xF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function Tie(e,r,t){var n=p_(r,2,e[0]);n=p_(n,1,e[1]),n=p_(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)*jc,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)*jc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*jc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*jc,_=bF(t[0],t[1],d,p),C=bF(t[0],t[1],m,y);return _<=C?[d,p,t[2]]:[m,y,t[2]]}function bF(e,r,t,n){var a=_F(t-e),i=_F(n-r);return Math.sqrt(a*a+i*i)}function _F(e){return(e%360+540)%360-180}function p_(e,r,t){var n=t*Iv,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 kie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*jc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*jc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*jc]}function Sie(e){var r=e[0]*Iv,t=e[1]*Iv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function xF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var gu=kt(),w_=h_(),qie=w_.geoPath,Die=w_.geoDistance,Eie=yF(),Pie=dt(),Jh=dr(),Rie=Jh.strTranslate,py=Et(),jh=fn(),AF=cs(),zie=va(),x_=Dn(),TF=tf().getAutoRange,__=ko(),Nie=uu().prepSelect,Fie=uu().clearOutline,Iie=uu().selectOnClick,Hie=MF(),gi=Wh(),Bie=sy(),SF=Km(),Oie=$4().feature;function CF(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 Rl=CF.prototype;LF.exports=function(r){return new CF(r)};Rl.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 gi.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),zie.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()};Rl.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=Uie(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=TF(t,u),f.range=TF(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=gi.lonaxisSpan[x]/2||180,A=gi.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=kF(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(kF(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):Jh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*D);var Z=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([R[0]+(Z[0]-R[0]),R[1]+(Z[1]-R[1])]).clipExtent(M),n._isAlbersUsa){var H=v([d.lon,d.lat]),V=v.translate();v.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}};Rl.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!!gi.lineLayers[h]}function s(h){return!!gi.fillLayers[h]}var u=this.hasChoropleth?gi.layersForChoropleth:gi.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=gi.layerNameToAdjective[h];h==="frame"?d.datum(gi.sphereSVG):l(h)||s(h)?d.datum(Oie(n,n.objects[h])):o(h)&&d.datum(Yie(h,r,e)).call(py.stroke,r[h].gridcolor).call(jh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(py.stroke,r[m+"color"]).call(jh.dashLine,"",r[m+"width"]):s(h)&&d.call(py.fill,r[m+"color"])})};Rl.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(py.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Rl.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];Pie.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&&Fie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(Hie(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){Nie(v,h,d,f,i)},__.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Jh.getPositionFromD3Event());if(!v)return __.unhover(n,gu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},AF.hover(n,gu.event,t.id)}),a.on("mouseout",function(){n._dragging||__.unhover(n,gu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&Iie(gu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&AF.click(n,gu.event))})};Rl.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"},x_.setConvert(e.mockAxis,t)};Rl.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},Jh.extendFlat(this.viewInitial,a)};Rl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Rl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?Rie(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 Uie(e){var r=e.projection,t=r.type,n=gi.projNames[t];n="geo"+Jh.titleCase(n);for(var a=w_[n]||Eie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?gi.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 qie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(gi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-gi.clipPad),i}function Yie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=gi.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};x_.setConvert(f,t);var v=x_.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 M_=te((b1e,PF)=>{"use strict";var Bv=dl(),Gie=Gm().attributes,Vie=es().dash,Hv=Wh(),Wie=xo().overrideAll,DF=Hd(),EF={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:Bv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:Vie},Zie=PF.exports=Wie({domain:Gie({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:DF(Hv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:DF(Hv.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:Bv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Hv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Hv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Hv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Hv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Bv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Bv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Bv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Bv.background},lonaxis:EF,lataxis:EF},"plot","from-root");Zie.uirevision={valType:"any",editType:"none"}});var zF=te((_1e,RF)=>{"use strict";var Xie=dr(),jie=_n(),Jie=Gm().defaults;RF.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 Xie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var gy=dr(),$ie=zF(),Kie=A1().getSubplotData,my=Wh(),Qie=M_(),NF=my.axesNames;FF.exports=function(r,t,n){$ie(r,t,n,{type:"geo",attributes:Qie,handleDefaults:eoe,fullData:n,partition:"y"})};function eoe(e,r,t,n){var a=Kie(n.fullData,"geo",n.id),i=a.map(function(ce){return ce.index}),o=t("resolution"),l=t("scope"),s=my.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=!!my.lonaxisSpan[u];if(e.visible===!1){var p=gy.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&&H<0&&(H+=360);var V=(Z+H)/2,U;if(!f){var ee=v?s.projRotate:[V,0,0];U=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?V:U,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 se=t("fitbounds");se&&(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 A_=te((w1e,OF)=>{"use strict";var roe=A1().getSubplotCalcData,toe=dr().counterRegex,noe=qF(),xs="geo",HF=toe(xs),BF={};BF[xs]={valType:"subplotid",dflt:xs,editType:"calc"};function aoe(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[xs],a=0;a{"use strict";UF.exports={attributes:Vh(),supplyDefaults:bN(),colorbar:Ub(),formatLabels:wN(),calc:SN(),calcGeoJSON:c_().calcGeoJSON,plot:c_().plot,style:l_(),styleOnSelect:qh().styleOnSelect,hoverPoints:uF(),eventData:cF(),selectPoints:dF(),moduleType:"trace",name:"scattergeo",basePlotModule:A_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var VF=te((A1e,GF)=>{"use strict";GF.exports=YF()});var yy=te((T1e,XF)=>{"use strict";var{hovertemplateAttrs:loe,templatefallbackAttrs:soe}=lc(),Mf=Vh(),uoe=J0(),WF=_o(),foe=dl().defaultLine,wf=ua().extendFlat,ZF=Mf.marker.line;XF.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({},ZF.color,{dflt:foe}),width:wf({},ZF.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({},WF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:loe(),hovertemplatefallback:soe(),showlegend:wf({},WF.showlegend,{dflt:!1})},uoe("",{cLetter:"z",editTypeOverride:"calc"}))});var JF=te((k1e,jF)=>{"use strict";var $h=dr(),coe=$0(),voe=yy(),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(" ");jF.exports=function(r,t,n,a){function i(h,d){return $h.coerce(r,t,voe,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&$h.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!==""||$h.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&$h.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"),coe(r,t,a,i,{prefix:"",cLetter:"z"}),$h.coerceSelectionMarkerOpacity(t,i)}});var KF=te((S1e,$F)=>{"use strict";$F.exports={min:"zmin",max:"zmax"}});var tI=te((C1e,rI)=>{"use strict";var QF=Ht(),doe=Rn().BADNUM,poe=cp(),goe=Th(),moe=sm();function eI(e){return e&&typeof e=="string"}rI.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return eI(f)||QF(f)}:i=eI;for(var o=0;o{"use strict";var yoe=kt(),boe=Et(),T_=fn(),_oe=hp();function xoe(e,r){r&&nI(e,r)}function nI(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=_oe.makeColorScaleFuncFromTrace(t);a.each(function(s){yoe.select(this).attr("fill",l(s.z)).call(boe.stroke,s.mlc||o.color).call(T_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),T_.selectedPointStyle(a,t)}function woe(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?T_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):nI(e,r)}aI.exports={style:xoe,styleOnSelect:woe}});var k_=te((q1e,lI)=>{"use strict";var Moe=kt(),iI=dr(),Ov=sy(),Aoe=Km().getTopojsonFeatures,oI=tf().findExtremes,Toe=by().style;function koe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");iI.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=Moe.select(this),o=i.selectAll("path.choroplethlocation").data(iI.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Toe(e,a)})}function Soe(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"?Ov.extractTraceFeature(e):Aoe(t,a.topojson),s=[],u=[],f=0;f{"use strict";var Coe=Dn(),Loe=yy(),qoe=dr().fillText;sI.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 cI=te((E1e,fI)=>{"use strict";fI.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 hI=te((P1e,vI)=>{"use strict";vI.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";dI.exports={attributes:yy(),supplyDefaults:JF(),colorbar:KF(),calc:tI(),calcGeoJSON:k_().calcGeoJSON,plot:k_().plot,style:by().style,styleOnSelect:by().styleOnSelect,hoverPoints:uI(),eventData:cI(),selectPoints:hI(),moduleType:"trace",name:"choropleth",basePlotModule:A_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var mI=te((z1e,gI)=>{"use strict";gI.exports=pI()});var Ya=te((N1e,bI)=>{"use strict";var yI=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Poe=Object.prototype.propertyIsEnumerable;function Roe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function zoe(){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}}bI.exports=zoe()?Object.assign:function(e,r){for(var t,n=Roe(e),a,i=1;i{var xy=Ya();function _I(){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={}}xy(_I.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 S_(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 _y(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}xy(S_.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?"-":"")+_y(Math.abs(this.year()),4)+"-"+_y(this.month(),2)+"-"+_y(this.day(),2)}});function C_(){this.shortYearCutoff="+10"}xy(C_.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 S_(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?"-":"")+_y(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=xI.exports=new _I;Tt.cdate=S_;Tt.baseCalendar=C_;Tt.calendars.gregorian=L_});var wI=te(()=>{var q_=Ya(),Sa=Ga();q_(Sa.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"});Sa.local=Sa.regionalOptions[""];q_(Sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});q_(Sa.baseCalendar.prototype,{UNIX_EPOCH:Sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Sa.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 Sa.local.invalidFormat||Sa.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(Z,H){var V=_(Z,H),U=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(Z)+1],ee=new RegExp("^-?\\d{1,"+U+"}"),ie=r.substring(D).match(ee);if(!ie)throw(Sa.local.missingNumberAt||Sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ie[0].length,parseInt(ie[0],10)},x=this,b=function(){if(typeof l=="function"){_("m");var Z=l.call(x,r.substring(D));return D+=Z.length,Z}return C("m")},A=function(Z,H,V,U){for(var ee=_(Z,U)?V:H,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 MI=te(()=>{var Af=Ga(),Noe=Ya(),D_=Af.instance();function wy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wy.prototype=new Af.baseCalendar;Noe(wy.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(Ioe);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(Hoe);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(Boe);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=D_.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=Uoe(e,i,t,a);return D_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=D_.fromJD(e),t=Ooe(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(Foe),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(wy.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 Foe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ioe=/^\d?\d[iI]?/m,Hoe=/^闰?十?[一二三四五六七八九]?月/m,Boe=/^闰?十?[一二三四五六七八九]?/m;Af.calendars.chinese=wy;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 Ooe(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 AI=te(()=>{var Jc=Ga(),Yoe=Ya();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Jc.baseCalendar;Yoe(E_.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,Jc.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,Jc.local.invalidYear||Jc.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,Jc.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,Jc.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)}});Jc.calendars.coptic=E_});var TI=te(()=>{var mu=Ga(),Goe=Ya();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new mu.baseCalendar;Goe(P_.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:Voe[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 Voe={20:"Fruitbat",21:"Anchovy"};mu.calendars.discworld=P_});var kI=te(()=>{var $c=Ga(),Woe=Ya();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new $c.baseCalendar;Woe(R_.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,$c.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,$c.local.invalidYear||$c.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,$c.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,$c.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)}});$c.calendars.ethiopian=R_});var SI=te(()=>{var Sf=Ga(),Zoe=Ya();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Sf.baseCalendar;Zoe(z_.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,My(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&&My(this.daysInYear(e),10)===5?30:r===9&&My(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 My(e,r){return e-r*Math.floor(e/r)}Sf.calendars.hebrew=z_});var CI=te(()=>{var Kh=Ga(),Xoe=Ya();function N_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N_.prototype=new Kh.baseCalendar;Xoe(N_.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,Kh.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,Kh.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,Kh.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)}});Kh.calendars.islamic=N_});var LI=te(()=>{var Qh=Ga(),joe=Ya();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new Qh.baseCalendar;joe(F_.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,Qh.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,Qh.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,Qh.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)}});Qh.calendars.julian=F_});var DI=te(()=>{var Uo=Ga(),Joe=Ya();function H_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H_.prototype=new Uo.baseCalendar;Joe(H_.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=I_(e+8+17*20,365);return[Math.floor(r/20)+1,I_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[qI(e+20,20),qI(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 I_(e,r){return e-r*Math.floor(e/r)}function qI(e,r){return I_(e-1,r)+1}Uo.calendars.mayan=H_});var PI=te(()=>{var Kc=Ga(),$oe=Ya();function B_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B_.prototype=new Kc.baseCalendar;var EI=Kc.instance("gregorian");$oe(B_.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,Kc.local.invalidYear||Kc.regionalOptions[""].invalidYear);return EI.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,Kc.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,Kc.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)}});Kc.calendars.nanakshahi=B_});var RI=te(()=>{var Qc=Ga(),Koe=Ya();function O_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O_.prototype=new Qc.baseCalendar;Koe(O_.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,Qc.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,Qc.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,Qc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Qc.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=Qc.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 Uv=Ga(),Qoe=Ya();function Ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ay(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}Ty.prototype=new Uv.baseCalendar;Qoe(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,Uv.local.invalidYear);return Ay(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,Uv.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,Uv.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,Ay(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)}});Uv.calendars.persian=Ty;Uv.calendars.jalali=Ty});var NI=te(()=>{var e0=Ga(),ele=Ya(),ky=e0.instance();function U_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U_.prototype=new e0.baseCalendar;ele(U_.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,e0.local.invalidYear),t=this._t2gYear(r.year());return ky.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,e0.local.invalidYear),a=this._t2gYear(n.year());return ky.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,e0.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,e0.local.invalidDate),a=this._t2gYear(n.year());return ky.toJD(a,n.month(),n.day())},fromJD:function(e){var r=ky.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)}});e0.calendars.taiwan=U_});var FI=te(()=>{var r0=Ga(),rle=Ya(),Sy=r0.instance();function Y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y_.prototype=new r0.baseCalendar;rle(Y_.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,r0.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,r0.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,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(a,r,t){var n=this._validate(a,r,t,r0.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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});r0.calendars.thai=Y_});var II=te(()=>{var t0=Ga(),tle=Ya();function G_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G_.prototype=new t0.baseCalendar;tle(G_.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,t0.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,t0.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,t0.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=t0.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=t0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});t0.calendars.ummalqura=G_;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 BI=te((dhe,HI)=>{"use strict";HI.exports=Ga();wI();MI();AI();TI();kI();SI();CI();LI();DI();PI();RI();zI();NI();FI();II()});var ZI=te((phe,WI)=>{"use strict";var UI=BI(),ed=dr(),YI=Rn(),nle=YI.EPOCHJD,ale=YI.ONEDAY,Z_={valType:"enumerated",values:ed.sortObjectKeys(UI.calendars),editType:"calc",dflt:"gregorian"},GI=function(e,r,t,n){var a={};return a[t]=Z_,ed.coerce(e,r,a,t,n)},ile=function(e,r,t,n){for(var a=0;a{"use strict";XI.exports=ZI()});var cle=te((mhe,$I)=>{var JI=vN();JI.register([VF(),mI(),jI()]);$I.exports=JI});return cle();})(); +`+Z7(i.dayMonthYear,e,n,a);return Z7(r,e,n,a)};var X7=3*Ei;$n.incrementMonth=function(e,r,t){t=Ks(t)&&t;var n=Gu(e,Ei);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ei)+g1,i=$s.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-g1)*Ei+n}catch(s){Ky.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+X7);return l.setUTCMonth(l.getUTCMonth()+r)+n-X7};$n.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Ks(r)&&$s.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";K7.exports=function(r){return r}});var e2=te(Qs=>{"use strict";var bO=Ht(),_O=Bu(),xO=Hd(),wO=Rn().BADNUM,Qy=1e-9;Qs.findBin=function(e,r,t){if(bO(r.start))return t?Math.ceil((e-r.start)/r.size-Qy)-1:Math.floor((e-r.start)/r.size+Qy);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?MO:AO:s=t?kO:TO,e+=o*Qy*(t?-1:1)*(o>=0?1:-1);n90&&_O.log("Long binary search..."),n-1};function MO(e,r){return er}function kO(e,r){return e>=r}Qs.sorterAsc=function(e,r){return e-r};Qs.sorterDes=function(e,r){return r-e};Qs.distinctVals=function(e){var r=e.slice();r.sort(Qs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===wO;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}};Qs.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()};Qs.findIndexOfMin=function(e,r){r=r||xO;for(var t=1/0,n,a=0;a{"use strict";Q7.exports=function(r){return Object.keys(r).sort()}});var ew=te(Kn=>{"use strict";var m1=Ht(),SO=ji().isArrayOrTypedArray;Kn.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),m1(r)||(r=!1),SO(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 iw=te((Ose,aw)=>{"use strict";var rw=L0(),r2=rw.mod,CO=rw.modHalf,y1=Math.PI,Vu=2*y1;function LO(e){return e/180*y1}function qO(e){return e/y1*180}function t2(e){return Math.abs(e[1]-e[0])>Vu-1e-14}function tw(e,r){return CO(r-e,Vu)}function DO(e,r){return Math.abs(tw(e,r))}function nw(e,r){if(t2(r))return!0;var t,n;r[0]n&&(n+=Vu);var a=r2(e,Vu),i=a+Vu;return a>=t&&a<=n||i>=t&&i<=n}function EO(e,r,t,n){if(!nw(r,n))return!1;var a,i;return t[0]=a&&e<=i}function n2(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=t2([t,n]),s,u,f,v,h;l?(s=0,u=y1,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 uw=te(fc=>{"use strict";var a2=L0().mod;fc.segmentsIntersect=sw;function sw(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(sw(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,i2,lw;fc.getTextLocation=function(r,t,n,a){if((r!==i2||a!==lw)&&(Ud={},i2=r,lw=a),Ud[n])return Ud[n];var i=r.getPointAtLength(a2(n-a/2,t)),o=r.getPointAtLength(a2(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(a2(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(){i2=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(b1=>{"use strict";var eu={};b1.throttle=function(r,t,n){var a=eu[r],i=Date.now();if(!a){for(var o in eu)eu[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};b1.done=function(e){var r=eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};b1.clear=function(e){if(e)fw(eu[e]),delete eu[e];else for(var r in eu)b1.clear(r)};function fw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var vw=te((Vse,cw)=>{"use strict";cw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var hw=te((Wse,Gd)=>{"use strict";Gd.exports=o2;Gd.exports.isMobile=o2;Gd.exports.default=o2;var NO=/(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,FO=/CrOS/,IO=/android|ipad|playbook|silk/i;function o2(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=NO.test(r)&&!FO.test(r)||!!e.tablet&&IO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var pw=te((Zse,dw)=>{"use strict";var HO=Ht(),BO=hw();dw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=OO(),typeof t!="string")return!0;var n=BO({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(HO(u)&&(u=+u),u>=13)return!0}}}return n};function OO(){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 mw=te((Xse,gw)=>{"use strict";var UO=kt();gw.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]=UO.select(this)}),a}});var bw=te((jse,yw)=>{"use strict";var YO=dt();yw.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=YO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var xw=te((Jse,_w)=>{"use strict";_w.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";ww.exports=function(r){for(var t=WO(r)?VO:GO,n=[],a=0;a{"use strict";Aw.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 Sw=te((Qse,kw)=>{"use strict";var ZO=Ht(),XO=Rn().BADNUM,jO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;kw.exports=function(r){return typeof r=="string"&&(r=r.replace(jO,"")),ZO(r)?Number(r):XO}});var dr=te((eue,Bw)=>{"use strict";var _1=kt(),JO=S0().utcFormat,$O=Dy().format,Pw=Ht(),Rw=Rn(),zw=Rw.FP_SAFE,KO=-zw,Cw=Rw.BADNUM,Pe=Bw.exports={};Pe.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 Lw={};Pe.warnBadFormat=function(e){var r=String(e);Lw[r]||(Lw[r]=1,Pe.warn('encountered bad format: "'+r+'"'))};Pe.noFormat=function(e){return String(e)};Pe.numberFormat=function(e){var r;try{r=$O(Pe.adjustFormat(e))}catch(t){return Pe.warnBadFormat(e),Pe.noFormat}return r};Pe.nestedProperty=a1();Pe.keyedContainer=_6();Pe.relativeAttr=w6();Pe.isPlainObject=Js();Pe.toLogRange=xd();Pe.relinkPrivateKeys=k6();var Wu=ji();Pe.isArrayBuffer=Wu.isArrayBuffer;Pe.isTypedArray=Wu.isTypedArray;Pe.isArrayOrTypedArray=Wu.isArrayOrTypedArray;Pe.isArray1D=Wu.isArray1D;Pe.ensureArray=Wu.ensureArray;Pe.concat=Wu.concat;Pe.maxRowLength=Wu.maxRowLength;Pe.minRowLength=Wu.minRowLength;var Nw=L0();Pe.mod=Nw.mod;Pe.modHalf=Nw.modHalf;var Zu=V6();Pe.valObjectMeta=Zu.valObjectMeta;Pe.coerce=Zu.coerce;Pe.coerce2=Zu.coerce2;Pe.coerceFont=Zu.coerceFont;Pe.coercePattern=Zu.coercePattern;Pe.coerceHoverinfo=Zu.coerceHoverinfo;Pe.coerceSelectionMarkerOpacity=Zu.coerceSelectionMarkerOpacity;Pe.validate=Zu.validate;var Ji=$7();Pe.dateTime2ms=Ji.dateTime2ms;Pe.isDateTime=Ji.isDateTime;Pe.ms2DateTime=Ji.ms2DateTime;Pe.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Pe.cleanDate=Ji.cleanDate;Pe.isJSDate=Ji.isJSDate;Pe.formatDate=Ji.formatDate;Pe.incrementMonth=Ji.incrementMonth;Pe.dateTick0=Ji.dateTick0;Pe.dfltRange=Ji.dfltRange;Pe.findExactDates=Ji.findExactDates;Pe.MIN_MS=Ji.MIN_MS;Pe.MAX_MS=Ji.MAX_MS;var cc=e2();Pe.findBin=cc.findBin;Pe.sorterAsc=cc.sorterAsc;Pe.sorterDes=cc.sorterDes;Pe.distinctVals=cc.distinctVals;Pe.roundUp=cc.roundUp;Pe.sort=cc.sort;Pe.findIndexOfMin=cc.findIndexOfMin;Pe.sortObjectKeys=Bd();var ru=ew();Pe.aggNums=ru.aggNums;Pe.len=ru.len;Pe.mean=ru.mean;Pe.geometricMean=ru.geometricMean;Pe.median=ru.median;Pe.midRange=ru.midRange;Pe.variance=ru.variance;Pe.stdev=ru.stdev;Pe.interp=ru.interp;var gl=Ld();Pe.init2dArray=gl.init2dArray;Pe.transposeRagged=gl.transposeRagged;Pe.dot=gl.dot;Pe.translationMatrix=gl.translationMatrix;Pe.rotationMatrix=gl.rotationMatrix;Pe.rotationXYMatrix=gl.rotationXYMatrix;Pe.apply3DTransform=gl.apply3DTransform;Pe.apply2DTransform=gl.apply2DTransform;Pe.apply2DTransform2=gl.apply2DTransform2;Pe.convertCssMatrix=gl.convertCssMatrix;Pe.inverseTransformMatrix=gl.inverseTransformMatrix;var rs=iw();Pe.deg2rad=rs.deg2rad;Pe.rad2deg=rs.rad2deg;Pe.angleDelta=rs.angleDelta;Pe.angleDist=rs.angleDist;Pe.isFullCircle=rs.isFullCircle;Pe.isAngleInsideSector=rs.isAngleInsideSector;Pe.isPtInsideSector=rs.isPtInsideSector;Pe.pathArc=rs.pathArc;Pe.pathSector=rs.pathSector;Pe.pathAnnulus=rs.pathAnnulus;var O0=ow();Pe.isLeftAnchor=O0.isLeftAnchor;Pe.isCenterAnchor=O0.isCenterAnchor;Pe.isRightAnchor=O0.isRightAnchor;Pe.isTopAnchor=O0.isTopAnchor;Pe.isMiddleAnchor=O0.isMiddleAnchor;Pe.isBottomAnchor=O0.isBottomAnchor;var U0=uw();Pe.segmentsIntersect=U0.segmentsIntersect;Pe.segmentDistance=U0.segmentDistance;Pe.getTextLocation=U0.getTextLocation;Pe.clearLocationCache=U0.clearLocationCache;Pe.getVisibleSegment=U0.getVisibleSegment;Pe.findPointOnPath=U0.findPointOnPath;var Zd=ua();Pe.extendFlat=Zd.extendFlat;Pe.extendDeep=Zd.extendDeep;Pe.extendDeepAll=Zd.extendDeepAll;Pe.extendDeepNoArrays=Zd.extendDeepNoArrays;var l2=Bu();Pe.log=l2.log;Pe.warn=l2.warn;Pe.error=l2.error;var QO=D0();Pe.counterRegex=QO.counter;var s2=Yd();Pe.throttle=s2.throttle;Pe.throttleDone=s2.done;Pe.clearThrottle=s2.clear;var ml=h1();Pe.getGraphDiv=ml.getGraphDiv;Pe.isPlotDiv=ml.isPlotDiv;Pe.removeElement=ml.removeElement;Pe.addStyleRule=ml.addStyleRule;Pe.addRelatedStyleRule=ml.addRelatedStyleRule;Pe.deleteRelatedStyleRule=ml.deleteRelatedStyleRule;Pe.setStyleOnHover=ml.setStyleOnHover;Pe.getFullTransformMatrix=ml.getFullTransformMatrix;Pe.getElementTransformMatrix=ml.getElementTransformMatrix;Pe.getElementAndAncestors=ml.getElementAndAncestors;Pe.equalDomRects=ml.equalDomRects;Pe.clearResponsive=vw();Pe.preserveDrawingBuffer=pw();Pe.makeTraceGroups=mw();Pe._=bw();Pe.notifier=Uy();Pe.filterUnique=xw();Pe.filterVisible=Mw();Pe.pushUnique=Vy();Pe.increment=Tw();Pe.cleanNumber=Sw();Pe.ensureNumber=function(r){return Pw(r)?(r=Number(r),r>zw||r=r?!1:Pw(e)&&e>=0&&e%1===0};Pe.noop=Cd();Pe.identity=Hd();Pe.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))};Pe.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};Pe.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?(Pe.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Pe.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};Pe.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};Pe.syncOrAsync=function(e,r,t){var n,a;function i(){return Pe.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)};Pe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Pe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Pe.fillArray=function(e,r,t,n){if(n=n||Pe.identity,Pe.isArrayOrTypedArray(e))for(var a=0;atU.test(window.navigator.userAgent);var nU=/Firefox\/(\d+)\.\d+/;Pe.getFirefoxVersion=function(){var e=nU.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Pe.isD3Selection=function(e){return e instanceof _1.selection};Pe.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};Pe.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};Pe.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};Pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Hw=/^\w*$/;Pe.templateString=function(e,r){var t={};return e.replace(Pe.TEMPLATE_STRING_REGEX,function(n,a){var i;return Hw.test(a)?i=r[a]:(t[a]=t[a]||Pe.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var oU={max:10,count:0,name:"hovertemplate"};Pe.hovertemplateString=e=>u2(cd(tc({},e),{opts:oU}));var lU={max:10,count:0,name:"texttemplate"};Pe.texttemplateString=e=>u2(cd(tc({},e),{opts:lU}));var sU=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function uU(e){var r=e.match(sU);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var fU={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Pe.texttemplateStringForShapes=e=>u2(cd(tc({},e),{opts:fU}));var qw=/^[:|\|]/;function u2({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:i}){return i.replace(Pe.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=uU(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(Hw.test(l)||(_=Pe.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<=Dw,u=l>=Wd&&l<=Dw;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 B0=2e9;Pe.seedPseudoRandom=function(){B0=2e9};Pe.pseudoRandom=function(){var e=B0;return B0=(69069*B0+1)%4294967296,Math.abs(B0-e)<429496729?Pe.pseudoRandom():B0/4294967296};Pe.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Pe.extractOption(e,r,"htx","hovertext");if(Pe.isValidTextValue(a))return n(a);var i=Pe.extractOption(e,r,"tx","text");if(Pe.isValidTextValue(i))return n(i)};Pe.isValidTextValue=function(e){return e||e===0};Pe.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,Pe.strTranslate(a-u*(t+o),i-u*(n+l))+Pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Pe.setTransormAndDisplay=function(e,r){e.attr("transform",Pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Pe.ensureUniformFontSize=function(e,r){var t=Pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Pe.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)};Pe.bigFont=function(e){return Math.round(1.2*e)};var Ew=Pe.getFirefoxVersion(),cU=Ew!==null&&Ew<86;Pe.getPositionFromD3Event=function(){return cU?[_1.event.layerX,_1.event.layerY]:[_1.event.offsetX,_1.event.offsetY]}});var Yw=te(()=>{"use strict";var vU=dr(),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(f2 in Ow)Uw=f2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),vU.addStyleRule(Uw,Ow[f2]);var Uw,f2});var c2=te((aue,Gw)=>{Gw.exports=!0});var h2=te((iue,Vw)=>{"use strict";var hU=c2(),v2;typeof window.matchMedia=="function"?v2=!window.matchMedia("(hover: none)").matches:v2=hU;Vw.exports=v2});var Jd=te((oue,d2)=>{"use strict";var Y0=typeof Reflect=="object"?Reflect:null,Ww=Y0&&typeof Y0.apply=="function"?Y0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Xd;Y0&&typeof Y0.ownKeys=="function"?Xd=Y0.ownKeys:Object.getOwnPropertySymbols?Xd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Xd=function(r){return Object.getOwnPropertyNames(r)};function dU(e){console&&console.warn&&console.warn(e)}var Xw=Number.isNaN||function(r){return r!==r};function Sn(){Sn.init.call(this)}d2.exports=Sn;d2.exports.once=yU;Sn.EventEmitter=Sn;Sn.prototype._events=void 0;Sn.prototype._eventsCount=0;Sn.prototype._maxListeners=void 0;var Zw=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(Sn,"defaultMaxListeners",{enumerable:!0,get:function(){return Zw},set:function(e){if(typeof e!="number"||e<0||Xw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Zw=e}});Sn.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};Sn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Xw(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?Sn.defaultMaxListeners:e._maxListeners}Sn.prototype.getMaxListeners=function(){return jw(this)};Sn.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")Ww(s,this,t);else for(var u=s.length,f=e9(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,dU(l)}return e}Sn.prototype.addListener=function(r,t){return Jw(this,r,t,!1)};Sn.prototype.on=Sn.prototype.addListener;Sn.prototype.prependListener=function(r,t){return Jw(this,r,t,!0)};function pU(){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 $w(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=pU.bind(n);return a.listener=t,n.wrapFn=a,a}Sn.prototype.once=function(r,t){return jd(t),this.on(r,$w(this,r,t)),this};Sn.prototype.prependOnceListener=function(r,t){return jd(t),this.prependListener(r,$w(this,r,t)),this};Sn.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():gU(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Sn.prototype.off=Sn.prototype.removeListener;Sn.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 Kw(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?mU(a):e9(a,a.length)}Sn.prototype.listeners=function(r){return Kw(this,r,!0)};Sn.prototype.rawListeners=function(r){return Kw(this,r,!1)};Sn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Qw.call(e,r)};Sn.prototype.listenerCount=Qw;function Qw(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}Sn.prototype.eventNames=function(){return this._eventsCount>0?Xd(this._events):[]};function e9(e,r){for(var t=new Array(r),n=0;n{"use strict";var p2=Jd().EventEmitter,_U={init:function(e){if(e._ev instanceof p2)return e;var r=new p2,t=new p2;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 n9=dr(),xU=oc().dfltConfig;function wU(e,r){for(var t=[],n,a=0;axU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};tu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};tu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};tu.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";o9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var W0=te(fa=>{"use strict";var Mo=dt(),w1=dr(),Kd=_o(),m2=z0(),MU=g2(),AU=d1(),TU=oc().configAttributes,l9=xo(),yl=w1.extendDeepAll,G0=w1.isPlainObject,kU=w1.isArrayOrTypedArray,Qd=w1.nestedProperty,SU=w1.valObjectMeta,y2="_isSubplotObj",ep="_isLinkedToArray",CU="_arrayAttrRegexps",u9="_deprecated",b2=[y2,ep,CU,u9];fa.IS_SUBPLOT_OBJ=y2;fa.IS_LINKED_TO_ARRAY=ep;fa.DEPRECATED=u9;fa.UNDERSCORE_ATTRS=b2;fa.get=function(){var e={};return Mo.allTypes.forEach(function(r){e[r]=qU(r)}),{defs:{valObjects:SU,metaKeys:b2.concat(["description","role","editType","impliedEdits"]),editType:{traces:l9.traces,layout:l9.layout},impliedEdits:{}},traces:e,layout:DU(),frames:EU(),animation:V0(AU),config:V0(TU)}};fa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(b2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!fa.isValObject(o)&&G0(o)&&i!=="impliedEdits"&&fa.crawl(o,r,a+1,l)}})};fa.isValObject=function(e){return e&&e.valType!==void 0};fa.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)kU(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 qU(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);fa.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:V0(n)};if(r.layoutAttributes){var l={};yl(l,r.layoutAttributes),o.layoutAttributes=V0(l)}return r.animatable||fa.crawl(o,function(s){fa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function DU(){var e={},r,t;yl(e,m2);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 Z0=dr(),FU=_o(),Xu="templateitemname",_2={name:{valType:"string",editType:"none"}};_2[Xu]={valType:"string",editType:"calc"};vc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=_2.name,r[Xu]=_2[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=Z0.coerce(i,{},FU,"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]);Z0.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[v9(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(!c9(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?Z0.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)Z0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var ya=te((vue,h9)=>{"use strict";var M1=D0().counter;h9.exports={idRegex:{x:M1("x","( domain)?"),y:M1("y","( domain)?")},attrRegex:M1("[xy]axis"),xAxisMatch:M1("xaxis"),yAxisMatch:M1("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=te(Pi=>{"use strict";var IU=dt(),x2=ya();Pi.id2name=function(r){if(!(typeof r!="string"||!r.match(x2.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Pi.name2id=function(r){if(r.match(x2.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Pi.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(x2.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":"")}};Pi.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Pi.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Pi.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function d9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function HU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function BU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}p9.exports={clearOutlineControllers:HU,clearOutline:BU}});var rp=te((pue,g9)=>{"use strict";g9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var A1=te(np=>{"use strict";var tp=dt(),gue=ya().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 OU=dt(),X0=dr();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){m9(e,o,a.cache),a.check=function(){if(i){var f=m9(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;X0.isPlainObject(i)?w2(i,r,o,n+1):r(o,a,i)}})}});var va=te((bue,R9)=>{"use strict";var S9=kt(),YU=S0().timeFormatLocale,GU=Dy().formatLocale,T1=Ht(),VU=Ey(),Zt=dt(),C9=W0(),WU=_n(),Zr=dr(),L9=Et(),x9=Rn().BADNUM,Ri=ca(),ZU=ju().clearOutline,XU=rp(),M2=d1(),jU=g2(),JU=A1().getModuleCalcData,w9=Zr.relinkPrivateKeys,dc=Zr._,Pr=R9.exports={};Zr.extendFlat(Pr,Zt);Pr.attributes=_o();Pr.attributes.type.values=Pr.allTypes;Pr.fontAttrs=Ka();Pr.layoutAttributes=z0();var ip=_9();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:L9.defaultLine,"pointer-events":"all"}).each(function(){var u=S9.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&&$U(e,i),o.text(i.text()&&l.text()?" - ":"")}};function $U(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=S9.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 KU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],QU=["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=M9(e,KU);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=tY(h,a.separators),a._extraFormat=M9(e,QU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=rY(),b=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=eY(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 Z=!!(n._has&&n._has("cartesian")),H=!!(a._has&&a._has("cartesian")),V=Z,U=H;V&&!U?n._bgLayer.remove():U&&!V&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&ZU({_fullLayout:n}),nY(l,a),w9(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 iY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ri.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={}),q9(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"&&T1(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||{},Z=N.val,H=N.size,V=I.val,U=I.size,ee=t-o.r-o.l,ie=n-o.t-o.b;for(var re in h){if(T1(H)&&h[re].r){var K=h[re].r.val,se=h[re].r.size;if(K>Z){var ce=(H*K+(se-ee)*Z)/(K-Z),Se=(se*(1-Z)+(H-ee)*(1-K))/(K-Z);ce+Se>s+u&&(s=ce,u=Se)}}if(T1(U)&&h[re].t){var Fe=h[re].t.val,He=h[re].t.size;if(Fe>V){var Xe=(U*Fe+(He-ie)*V)/(Fe-V),Le=(He*(1-V)+(U-ie)*(1-Fe))/(Fe-V);Xe+Le>v+f&&(v=Xe,f=Le)}}}}}var Qe=Zr.constrain(t-i.l-i.r,D9,m),fe=Zr.constrain(n-i.t-i.b,E9,p),me=Math.max(0,t-Qe),Ce=Math.max(0,n-fe);if(me){var pe=(s+u)/me;pe>1&&(s/=pe,u/=pe)}if(Ce){var G=(v+f)/Ce;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)||iY(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)?VU.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=Ri.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:x9,y:x9}]),b[0].t||(b[0].t={}),b[0].trace=i,u[C]=b}}for(T9(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 Ia=te((xue,z9)=>{"use strict";z9.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 Qa=te(Ao=>{"use strict";var na=kt(),nu=dr(),uY=nu.strTranslate,A2=gc(),fY=Ia().LINE_SPACING,cY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ao.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(cY),i=na.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=AY(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};pY(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]+")"+uY(-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 vY=/(<|<|<)/g,hY=/(>|>|>)/g;function dY(e){return e.replace(vY,"\\lt ").replace(hY,"\\gt ")}var N9=[["$","$"],["\\(","\\)"]];function pY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){nu.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=nu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:N9},displayAlign:"left"})},u=function(){i=nu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=N9},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-"+nu.randstr({},64);l=na.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(dY(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)nu.log("There was an error in the tex syntax.",e),t();else{var b=x.getBoundingClientRect(),A;n===2?A=na.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 B9={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"},gY={sub:"0.3em",sup:"-0.6em"},mY={sub:"-0.21em",sup:"0.42em"},F9="\u200B",I9=["http:","https:","mailto:","",void 0,":"],O9=Ao.NEWLINES=/(\r\n?|\n)/g,k2=/(<[^<>]*>)/,S2=/<(\/?)([^ >]*)(\s+(.*))?>/i,yY=//i;Ao.BR_TAG_ALL=//gi;var U9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Y9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,G9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,bY=/(^|[\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 _Y=/(^|;)\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(k2),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 xY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},wY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function op(e){return e.replace(wY,function(r,t){var n;return t.charAt(0)==="#"?n=MY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=xY[t],n||r})}Ao.convertEntities=op;function MY(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 AY(e,r){r=r.replace(O9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(A2.svg,"tspan");na.select(k).attr({class:"line",dy:i*fY+"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&&nu.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=yY.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(k2),h=0;h{"use strict";var TY=kt(),sp=Ql(),S1=Ht(),lp=dr(),W9=Et(),kY=ac().isValid;function SY(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 K9(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 e8=jy(),LY=e8.FORMAT_LINK,qY=e8.DATE_FORMAT_LINK;function DY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?C2:r8)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function C2(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: "+LY+"."].join(" ")}function r8(e,r){return C2(e,r)+[" And for dates see: "+qY+".","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(" ")}t8.exports={axisHoverFormat:DY,descriptionOnlyNumbers:C2,descriptionWithDates:r8}});var bl=te((kue,b8)=>{"use strict";var n8=Ka(),j0=dl(),y8=es().dash,D2=ua().extendFlat,a8=_n().templatedArray,Tue=lc().templateFormatStringDescription,i8=L2().descriptionWithDates,EY=Rn().ONEDAY,ns=ya(),PY=ns.HOUR_PATTERN,RY=ns.WEEKDAY_PATTERN,q2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},zY=D2({},q2,{values:q2.values.slice().concat(["sync"])});function o8(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var l8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},s8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},u8={valType:"data_array",editType:"ticks"},f8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function c8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function v8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var h8={valType:"color",dflt:j0.defaultLine,editType:"ticks"},d8={valType:"color",dflt:j0.lightLine,editType:"ticks"};function p8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var g8=D2({},y8,{editType:"ticks"}),m8={valType:"boolean",editType:"ticks"};b8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:j0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:n8({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:[ns.idRegex.x.toString(),ns.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:[ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"calc"},rangebreaks:a8("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:[RY,PY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:EY},editType:"calc"}),tickmode:zY,nticks:o8(),tick0:l8,dtick:s8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:u8,ticktext:{valType:"data_array",editType:"ticks"},ticks:f8,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:c8(),tickwidth:v8(),tickcolor:h8,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:D2({},y8,{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:n8({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:i8("tick label")},tickformatstops:a8("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:i8("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:j0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:m8,gridcolor:d8,gridwidth:p8(),griddash:g8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:j0.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:j0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ns.idRegex.x.toString(),ns.idRegex.y.toString()],editType:"plot"},minor:{tickmode:q2,nticks:o8("minor"),tick0:l8,dtick:s8,tickvals:u8,ticks:f8,ticklen:c8("minor"),tickwidth:v8("minor"),tickcolor:h8,gridcolor:d8,gridwidth:p8("minor"),griddash:g8,showgrid:m8,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((Sue,w8)=>{"use strict";var Cn=bl(),_8=Ka(),x8=ua().extendFlat,NY=xo().overrideAll;w8.exports=NY({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:Cn.linecolor,outlinewidth:Cn.linewidth,bordercolor:Cn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Cn.minor.tickmode,nticks:Cn.nticks,tick0:Cn.tick0,dtick:Cn.dtick,tickvals:Cn.tickvals,ticktext:Cn.ticktext,ticks:x8({},Cn.ticks,{dflt:""}),ticklabeloverflow:x8({},Cn.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:Cn.ticklen,tickwidth:Cn.tickwidth,tickcolor:Cn.tickcolor,ticklabelstep:Cn.ticklabelstep,showticklabels:Cn.showticklabels,labelalias:Cn.labelalias,tickfont:_8({}),tickangle:Cn.tickangle,tickformat:Cn.tickformat,tickformatstops:Cn.tickformatstops,tickprefix:Cn.tickprefix,showtickprefix:Cn.showtickprefix,ticksuffix:Cn.ticksuffix,showticksuffix:Cn.showticksuffix,separatethousands:Cn.separatethousands,exponentformat:Cn.exponentformat,minexponent:Cn.minexponent,showexponent:Cn.showexponent,title:{text:{valType:"string"},font:_8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var J0=te((Lue,A8)=>{"use strict";var FY=up(),IY=D0().counter,HY=Bd(),M8=ac().scales,Cue=HY(M8);function fp(e){return"`"+e+"`"}A8.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"?M8[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=FY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:IY("coloraxis"),dflt:null,editType:"calc"}),M}});var P2=te((que,T8)=>{"use strict";var BY=ua().extendFlat,OY=J0(),E2=ac().scales;T8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:E2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:E2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:E2.RdBu,editType:"calc"}},coloraxis:BY({_isSubplotObj:!0,editType:"calc"},OY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var R2=te((Due,k8)=>{"use strict";var UY=dr();k8.exports=function(r){return UY.isPlainObject(r.colorbar)}});var F2=te(N2=>{"use strict";var z2=Ht(),S8=dr(),C8=Rn(),YY=C8.ONEDAY,GY=C8.ONEWEEK;N2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?YY:1;if(!e)return i;if(z2(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=z2(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};N2.tick0=function(e,r,t,n){if(r==="date")return S8.cleanDate(e,S8.dateTick0(t,n%GY===0?1:0));if(!(n==="D1"||n==="D2"))return z2(e)?Number(e):0}});var I2=te((Pue,q8)=>{"use strict";var L8=F2(),VY=dr().isArrayOrTypedArray,WY=ji().isTypedArraySpec,ZY=ji().decodeTypedArraySpec;q8.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 WY(x)&&(x=ZY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=VY(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=L8.dtick(h,a);s.tick0=L8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var _=n(u+"tickvals");_===void 0?s.tickmode="auto":o||n("ticktext")}}});var B2=te((Rue,E8)=>{"use strict";var H2=dr(),D8=bl();E8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?D8.minor:D8,u=i?"minor.":"",f=H2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=H2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=H2.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 O2=te((zue,P8)=>{"use strict";P8.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((Nue,R8)=>{"use strict";var cp=dr(),XY=_n();R8.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=XY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var U2=dr(),jY=Et().contrast,z8=bl(),JY=O2(),$Y=_l();N8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");U2.isPlainObject(o)||delete t.labelalias;var l=JY(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?jY(i.bgColor):f&&f!==z8.color.dflt?f:u.color;if(U2.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");$Y(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:KY}),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 KY(e,r){function t(a,i){return U2.coerce(e,r,z8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var G2=te((Iue,F8)=>{"use strict";var QY=O2();F8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=QY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var V2=te((Hue,I8)=>{"use strict";var Ju=dr(),eG=_n(),rG=I2(),tG=B2(),nG=Y2(),aG=G2(),iG=up();I8.exports=function(r,t,n){var a=eG.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,Z){return Ju.coerce(i,a,iG,I,Z)}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"),rG(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"),aG(i,a,o,"linear",D),nG(i,a,o,"linear",D),tG(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 $0=te((Bue,O8)=>{"use strict";var H8=Ht(),Z2=dr(),oG=R2(),lG=V2(),B8=ac().isValid,sG=dt().traceIs;function W2(e,r){var t=r.slice(0,r.length-1);return r?Z2.nestedProperty(e,t).get()||{}:e}O8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=W2(r,o),f=W2(t,o),v=W2(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=sG(t,"contour")&&Z2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,Z2.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=H8(_)&&H8(C)&&_{"use strict";var U8=dr(),uG=_n(),Y8=P2(),fG=$0();G8.exports=function(r,t){function n(v,h){return U8.coerce(r,t,Y8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return U8.coerce(i,o,Y8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=uG.newContainer(t,s,"coloraxis"),o._name=s,fG(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var cG=dr(),vG=ts().hasColorscale,hG=ts().extractOpts;W8.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?cG.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=hG(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 X8=Ht(),X2=dr(),dG=ts().extractOpts;j8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?X2.nestedProperty(t,o).get():t,s=dG(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return X2.aggNums(Math.min,null,i)},m=function(){return X2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&X8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&X8(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((Gue,J8)=>{"use strict";var hp=ac(),K0=ts();J8.exports={moduleType:"component",name:"colorscale",attributes:J0(),layoutAttributes:P2(),supplyLayoutDefaults:V8(),handleDefaults:$0(),crossTraceDefaults:Z8(),calc:vp(),scales:hp.scales,defaultScale:hp.defaultScale,getScale:hp.get,isValidScale:hp.isValid,hasColorscale:K0.hasColorscale,extractOpts:K0.extractOpts,extractScale:K0.extractScale,flipScale:K0.flipScale,makeColorScaleFunc:K0.makeColorScaleFunc,makeColorScaleFuncFromTrace:K0.makeColorScaleFuncFromTrace}});var ei=te((Vue,K8)=>{"use strict";var $8=dr(),pG=ji().isTypedArraySpec;K8.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 $8.isPlainObject(r)&&($8.isArrayOrTypedArray(r.size)||pG(r.size))}}});var eM=te((Wue,Q8)=>{"use strict";var gG=Ht();Q8.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 gG(s)&&s>0?Math.max(s,i):0}}});var $u=te(Ha=>{"use strict";var pp=dr();Ha.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ha.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{nM.exports=xG;var j2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_G=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function xG(e){var r=[];return e.replace(_G,function(t,n,a){var i=n.toLowerCase();for(a=MG(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 AG=J2(),Cr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",aM=Math.sqrt(2),Ku=Math.sqrt(3),$2=Math.PI,K2=Math.cos,Q2=Math.sin;uM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=Cr(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=Cr(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=Cr(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=Cr(e*.4,2),a=Cr(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=Cr(e*.8/aM,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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*2/Ku,2),a=Cr(e/2,2),i=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.6,2),a=Cr(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=Cr(e*.951,2),a=Cr(e*.588,2),i=Cr(-e,2),o=Cr(e*-.309,2),l=Cr(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=Cr(e,2),a=Cr(e/2,2),i=Cr(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=Cr(e,2),a=Cr(e/2,2),i=Cr(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=Cr(e*.924,2),a=Cr(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=Cr(n*.225,2),i=Cr(n*.951,2),o=Cr(n*.363,2),l=Cr(n*.588,2),s=Cr(-n,2),u=Cr(n*-.309,2),f=Cr(n*.118,2),v=Cr(n*.809,2),h=Cr(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=Cr(e*.66,2),a=Cr(e*.38,2),i=Cr(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=Cr(e*Ku*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(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=Cr(e*Ku*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(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=Cr(e*1.1,2),a=Cr(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=Cr(e*1.4,2),a=Cr(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=Cr(e*.7,2),a=Cr(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=Cr(e*1.4,2),a=Cr(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=Cr(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=Cr(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=Cr(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=Cr(e,2),a=Cr(e/aM,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=Cr(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=Cr(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=Cr(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=Cr(e*1.3,2),a=Cr(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=Cr(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=Cr(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=Cr(e*1.2,2),a=Cr(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=Cr(e/2,2),a=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(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=Cr(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=Cr(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=Cr(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=Cr(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=Cr(e,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e,2),a=Cr(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=Cr(e*2,2),a=Cr(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=Cr(e*2,2),a=Cr(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=$2/2.5,a=2*e*K2(n),i=2*e*Q2(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=$2/4,a=2*e*K2(n),i=2*e*Q2(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 iM,oM,lM,sM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(lM===e&&sM===r&&iM===t)return oM;lM=e,sM=r,iM=t;function n(y,_){var C=K2(y),x=Q2(y),b=_[0],A=_[1]+(r||0);return[b*C-A*x,b*x+A*C]}for(var a=e/180*$2,i=0,o=0,l=AG(t),s="",u=0;u{"use strict";var ba=kt(),un=dr(),TG=un.numberFormat,xc=Ht(),i3=Ql(),mp=dt(),Ea=Et(),kG=dp(),L1=un.strTranslate,yp=Qa(),SG=gc(),CG=Ia(),LG=CG.LINE_SPACING,_M=kd().DESELECTDIM,qG=ei(),DG=eM(),EG=$u().appendArrayPointValue,Rr=qM.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(Ea.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",e3(RG(f))),s&&e.style("text-shadow",s==="auto"?yp.makeTextShadow(Ea.contrast(i)):e3(s)),u&&e.style("text-decoration-line",e3(zG(u)))};function e3(e){return e==="none"?void 0:e}var PG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function RG(e){return PG[e]}function zG(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",L1(a,i));else return!1;return!0};Rr.translatePoints=function(e,r,t){e.each(function(n){var a=ba.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,ba.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||"";Ea.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||"";ba.select(this).call(Ea.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 xM(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(AM,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(Ea.fill,r.fillcolor)}Rr.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};xM(e,a,r,!1)};Rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&xM(a,n[0].trace,r,t)})};var cM=fM();Rr.symbolNames=[];Rr.symbolFuncs=[];Rr.symbolBackOffs=[];Rr.symbolNeedLines={};Rr.symbolNoDot={};Rr.symbolNoFill={};Rr.symbolList=[];Object.keys(cM).forEach(function(e){var r=cM[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 NG=Rr.symbolNames.length,FG="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>=NG||e>=400?0:Math.floor(Math.max(e,0))};function wM(e,r,t,n){var a=e%100;return Rr.symbolFuncs[a](r,t,n)+(e>=200?FG:"")}var vM=TG("~f"),MM={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=MM[n];return AM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function AM(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=s3(e,t),v=l3(e,t);r.attr("d",wM(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):un.isArrayOrTypedArray(l.color)?m=Ea.defaultLine:m=l.color,un.isArrayOrTypedArray(o.color)&&(d=Ea.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(Ea.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,un.isArrayOrTypedArray(x)&&(x=x[0],MM[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),Z=A(b.bgcolor,e.i,null),H=b.fgopacity,V=A(b.size,e.i,8),U=A(b.solidity,e.i,.3);R=R||e.mcc||un.isArrayOrTypedArray(b.shape)||un.isArrayOrTypedArray(b.path)||un.isArrayOrTypedArray(b.bgcolor)||un.isArrayOrTypedArray(b.fgcolor)||un.isArrayOrTypedArray(b.size)||un.isArrayOrTypedArray(b.solidity);var ee=t.uid;R&&(ee+="-"+e.i),Rr.pattern(r,"point",a,ee,k,V,U,e.mcc,b.fillmode,Z,I,H)}else un.isArrayOrTypedArray(d)?Ea.fill(r,d[e.i]):Ea.fill(r,d);p&&Ea.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=qG.isBubble(e)?DG(e):function(){return(t.size||6)/2}),e.selectedpoints&&un.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;(un.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:_M*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:Ea.addOpacity(v,_M))},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){Ea.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",wM(Rr.symbolNumber(l),s,s3(o,r),l3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.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=ba.select(this),u=i?un.extractOption(l,r,"txt","texttemplate"):un.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={};EG(h,r,l.i),u=un.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:v,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=kM(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(TM,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=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=kM(n,r);Ea.fill(a,i);var s=mp.traceIs(r,"bar-like");TM(a,o,l,n.mrc2||n.mrc,s)})}};var hM=.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=LM;Rr.makeTester=function(){var e=un.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(SG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=un.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 t3=0,BG=1e4;Rr.bBox=function(e,r,t){t||(t=dM(e));var n;if(t){if(n=Rr.savedBBoxes[t],n)return un.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=dM(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 un.extendFlat({},n)}}var u,f;r?u=e:(f=Rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.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 t3>=BG&&(Rr.savedBBoxes={},t3=0),t&&(Rr.savedBBoxes[t]=d),t3++,un.extendFlat({},d)};function dM(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",o3(r,t))};function o3(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+=L1(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 OG=/\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(OG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var UG=/translate\([^)]*\)\s*$/;Rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.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(UG);r===1&&t===1?n=[]:n=[L1(o,l),"scale("+r+","+t+")",L1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function l3(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=l3;var C1=Math.atan2,yc=Math.cos,ev=Math.sin;function pM(e,r){var t=r[0],n=r[1];return[t*yc(e)-n*ev(e),t*ev(e)+n*yc(e)]}var gM,mM,yM,bM,n3,a3;function s3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||un.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=C1(h[1]-a,h[0]-n),m=C1(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=gM/180*Math.PI,x=mM/180*Math.PI,b=C-y,A=yc(x)*ev(b),k=ev(x)*yc(_)-yc(x)*ev(_)*yc(b);p=-C1(A,k)-Math.PI,gM=u,mM=f}var M=pM(d,[yc(p),0]),D=pM(m,[ev(p),0]);t=C1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!(a3===r.uid&&e.i===n3+1)&&(t=null)}if(i==="previous"&&!r._geo)if(a3===r.uid&&e.i===n3+1&&xc(n)&&xc(a)){var R=n-yM,N=a-bM,I=r.line&&r.line.shape||"",Z=I.slice(I.length-1);Z==="h"&&(N=0),Z==="v"&&(R=0),t+=C1(N,R)/Math.PI*180+90}else t=null}return yM=n,bM=a,n3=e.i,a3=r.uid,t}Rr.getMarkerAngle=s3});var q1=te(($ue,RM)=>{"use strict";var rv=kt(),YG=Ht(),GG=va(),u3=dt(),wc=dr(),DM=wc.strTranslate,bp=fn(),_p=Et(),tv=Qa(),EM=kd(),VG=Ia().OPPOSITE_SIDE,PM=/ [XY][0-9]* /,f3=1.6,c3=1.6;function WG(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,Z=t.subtitlePlaceholder,H=(a.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),U=!1,ee=1,ie=H.font,re=ie.family,K=ie.size,se=ie.color,ce=ie.weight,Se=ie.style,Fe=ie.variant,He=ie.textcase,Xe=ie.lineposition,Le=ie.shadow,Qe;i==="title.text"?Qe="titleText":i.indexOf("axis")!==-1?Qe="axisTitleText":i.indexOf("colorbar")!==-1&&(Qe="colorbarTitleText");var fe=e._context.edits[Qe];function me(lr,hr){return lr===void 0||hr===void 0?!1:lr.replace(PM," % ")===hr.replace(PM," % ")}m===""?h=0:me(m,o)&&(fe||(m=""),h=.2,p=!0),I&&(V===""?ee=0:me(V,Z)&&(fe||(V=""),ee=.2,U=!0)),t._meta?m=wc.templateString(m,t._meta):n._meta&&(m=wc.templateString(m,n._meta));var Ce=m||V||fe,pe;v||(v=wc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var G=v.selectAll("text."+r).data(Ce?[0]:[]);G.enter().append("text"),G.text(m).attr("class",r),G.exit().remove();var Q=null,$=r+"-subtitle",_e=V||fe;if(I&&(Q=v.selectAll("text."+$).data(_e?[0]:[]),Q.enter().append("text"),Q.text(V).attr("class",$),Q.exit().remove()),!Ce)return v;function De(lr,hr){wc.syncOrAsync([Ie,nr],{title:lr,subtitle:hr})}function Ie(lr){var hr=lr.title,Ke=lr.subtitle,gr;!f&&pe&&(f={}),f?(gr="",f.rotate&&(gr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(gr+=DM(0,(f.offset||0)-(pe||0)))):gr=null,hr.attr("transform",gr);function mr(Ye){if(Ye){var Ze=rv.select(Ye.node().parentNode).select("."+$);if(!Ze.empty()){var pr=Ye.node().getBBox();if(pr.height){var Tr=pr.y+pr.height+f3*K;Ze.attr("y",Tr)}}}}if(hr.style("opacity",h*_p.opacity(x)).call(bp.font,{color:_p.rgb(x),size:rv.round(C,2),family:_,weight:b,style:A,variant:k,textcase:M,shadow:R,lineposition:D}).attr(u).call(tv.convertToTspans,e,mr),Ke&&!Ke.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+f3*K:Ue.y+Ue.height+c3*K,tr=wc.extendFlat({},u,{y:Ur});Ke.attr("transform",gr),Ke.style("opacity",ee*_p.opacity(se)).call(bp.font,{color:_p.rgb(se),size:rv.round(K,2),family:re,weight:ce,style:Se,variant:Fe,textcase:He,shadow:Le,lineposition:Xe}).attr(tr).call(tv.convertToTspans,e)}return GG.previousPromises(e)}function nr(lr){var hr=lr.title,Ke=rv.select(hr.node().parentNode);if(s&&s.selection&&s.side&&m){Ke.attr("transform",null);var gr=VG[s.side],mr=s.side==="left"||s.side==="top"?-1:1,Te=YG(s.pad)?s.pad:2,Ue=bp.bBox(Ke.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 pr={left:kr.l,top:kr.t,right:n.width-kr.r,bottom:n.height-kr.b},Tr=s.maxShift||mr*(pr[s.side]-Ue[s.side]),yr=0;if(Tr<0)yr=Tr;else{var wr=s.offsetLeft||0,Hr=s.offsetTop||0;Ue.left-=wr,Ue.right-=wr,Ue.top-=Hr,Ue.bottom-=Hr,s.selection.each(function(){var Dr=bp.bBox(this);wc.bBoxIntersect(Ue,Dr,Te)&&(yr=Math.max(yr,mr*(Dr[s.side]-Ue[gr])+Te))}),yr=Math.min(Tr,yr),a._titleScoot=Math.abs(yr)}if(yr>0||Tr<0){var Sr={left:[-yr,0],right:[yr,0],top:[0,-yr],bottom:[0,yr]}[s.side];Ke.attr("transform",DM(Sr[0],Sr[1]))}}}G.call(De,Q);function ar(lr,hr){lr.text(hr).on("mouseover.opacity",function(){rv.select(this).transition().duration(EM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){rv.select(this).transition().duration(EM.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(m?G.on(".opacity",null):(ar(G,o),p=!0),G.call(tv.makeEditable,{gd:e}).on("edit",function(lr){l!==void 0?u3.call("_guiRestyle",e,i,lr,l):u3.call("_guiRelayout",e,i,lr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(lr){this.text(lr||" ").call(tv.positionText,u.x,u.y)}),I)){if(I&&!m){var Be=G.node().getBBox(),or=Be.y+Be.height+c3*K;Q.attr("y",or)}V?Q.on(".opacity",null):(ar(Q,Z),U=!0),Q.call(tv.makeEditable,{gd:e}).on("edit",function(lr){u3.call("_guiRelayout",e,"title.subtitle.text",lr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(lr){this.text(lr||" ").call(tv.positionText,Q.attr("x"),Q.attr("y"))})}return G.classed("js-placeholder",p),Q&&!Q.empty()&&Q.classed("js-placeholder",U),v}RM.exports={draw:WG,SUBTITLE_PADDING_EM:c3,SUBTITLE_PADDING_MATHJAX_EM:f3}});var Cp=te((Kue,HM)=>{"use strict";var ZG=kt(),XG=S0().utcFormat,bn=dr(),jG=bn.numberFormat,as=Ht(),Qu=bn.cleanNumber,JG=bn.ms2DateTime,zM=bn.dateTime2ms,is=bn.ensureNumber,NM=bn.isArrayOrTypedArray,ef=Rn(),xp=ef.FP_SAFE,xl=ef.BADNUM,$G=ef.LOG_CLIP,KG=ef.ONEWEEK,wp=ef.ONEDAY,Mp=ef.ONEHOUR,FM=ef.ONEMIN,IM=ef.ONESEC,Ap=ca(),Sp=ya(),Tp=Sp.HOUR_PATTERN,kp=Sp.WEEKDAY_PATTERN;function D1(e){return Math.pow(10,e)}function v3(e){return e!=null}HM.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*$G*Math.abs(k-M))}else return xl}function o(b,A,k,M){if((M||{}).msUTC&&as(b))return+b;var D=zM(b,k||r.calendar);if(D===xl)if(as(b)){b=+b;var R=Math.floor(bn.mod(b+.05,1)*10),N=Math.round(b-R/10);D=zM(new Date(N))+R/10}else return xl;return D}function l(b,A,k){return JG(b,A,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(v3(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;NZ)R=N+1;else{R=D<(I+Z)/2?N:N+1;break}}var H=r._B[R]||0;return isFinite(H)?m(b,r._m2,H):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:is,r.l2c=r.type==="log"?D1:is,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 D1(_(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=is,r.d2p=r.r2p=function(b){return r.l2p(Qu(b))},r.p2d=r.p2r=_,r.cleanPos=is):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(Qu(b),A)},r.r2d=r.r2c=function(b){return D1(Qu(b))},r.d2c=r.r2l=Qu,r.c2d=r.l2r=is,r.c2r=i,r.l2d=D1,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return D1(_(b))},r.r2p=function(b){return r.l2p(Qu(b))},r.p2r=_,r.cleanPos=is):r.type==="date"?(r.d2r=r.r2d=bn.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 bn.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=is,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:is(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=is,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:is(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,{}]],Z=[];for(k=0;kN[1]&&(M[R?0:1]=k),M[0]===M[1]){var I=r.l2r(A),Z=r.l2r(k);if(A!==void 0){var H=I+1;k!==void 0&&(H=Math.min(H,Z)),M[R?1:0]=H}if(k!==void 0){var V=Z+1;A!==void 0&&(V=Math.max(V,I)),M[R?0:1]=V}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var k=bn.nestedProperty(r,b).get(),M,D;if(r.type==="date"?D=bn.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){bn.nestedProperty(r,b).set(D);return}var R=k[0]===null,N=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=bn.cleanDate(k[0],xl,r.calendar),k[1]=bn.cleanDate(k[1],xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!bn.isDateTime(k[M],r.calendar)){r[b]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=bn.constrain(r.r2l(k[0]),bn.MIN_MS+1e3,bn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!as(k[M]))if(!(R||N)&&as(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 Z=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=Z,k[1]+=Z}}},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 Z,H;if(r._rangebreaks=r.locateBreaks(Math.min(R,N),Math.max(R,N)),r._rangebreaks.length){for(Z=0;ZN&&(V=!V),V&&r._rangebreaks.reverse();var U=V?-1:1;for(r._m2=U*r._length/(Math.abs(N-R)-r._lBreaks),r._B.push(-r._m2*(I?N:R)),Z=0;ZD&&(D+=7,RD&&(D+=24,R=M&&R=M&&b=Le.min&&(SeLe.max&&(Le.max=Fe),He=!1)}He&&N.push({min:Se,max:Fe})}};for(k=0;k{"use strict";var BM=Ht(),h3=dr(),QG=Rn().BADNUM,Lp=h3.isArrayOrTypedArray,eV=h3.isDateTime,rV=h3.cleanNumber,OM=Math.round;YM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(Lp(a)&&!a.length)return"-";if(!i&&oV(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function UM(e){return Math.max(1,(e-1)/1e3)}function iV(e,r){for(var t=e.length,n=UM(t),a=0,i=0,o={},l=0;la*2}function oV(e){return Lp(e[0])&&Lp(e[1])}});var tf=te((efe,$M)=>{"use strict";var lV=kt(),ZM=Ht(),rf=dr(),qp=Rn().FP_SAFE,sV=dt(),uV=fn(),XM=ca(),fV=XM.getFromId,cV=XM.isLinked;$M.exports={applyAutorangeOptions:JM,getAutoRange:p3,makePadFn:g3,doAutoRange:hV,findExtremes:dV,concatExtremes:b3};function p3(e,r){var t,n,a=[],i=e._fullLayout,o=g3(i,r,0),l=g3(i,r,1),s=b3(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 Z(ie,re){return Math.max(ie,l(re))}if(v===h){var H=v-1,V=v+1;if(_)if(v===0)a=[0,1];else{var U=(v>0?f:u).reduce(Z,0),ee=v/(1-Math.min(.5,U/x));a=v>0?[0,ee]:[ee,0]}else C?a=[Math.max(0,H),Math.max(1,V)]:a=[H,V]}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-GM(r,k.val,M.val))/(x-o(D)-l(R)),a=[D.val-A*o(D),R.val+A*l(R)];return a=JM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),rf.simpleMap(a,r.l2r||Number)}function GM(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 m3(e,r,t,n){jM(e,r,t,n,pV)}function y3(e,r,t,n){jM(e,r,t,n,gV)}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 WM(e){return ZM(e)&&Math.abs(e)=r}function mV(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 yV(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=mV(t,r),n=yV(n,r),[t,n]}});var Dn=te((tfe,_A)=>{"use strict";var To=kt(),aa=Ht(),nv=va(),P1=dt(),lt=dr(),av=lt.strTranslate,Mc=Qa(),bV=q1(),R1=Et(),$i=fn(),_V=bl(),KM=F2(),rfe=ya(),Pa=Rn(),xV=Pa.ONEMAXYEAR,Rp=Pa.ONEAVGYEAR,zp=Pa.ONEMINYEAR,wV=Pa.ONEMAXQUARTER,M3=Pa.ONEAVGQUARTER,Np=Pa.ONEMINQUARTER,MV=Pa.ONEMAXMONTH,iv=Pa.ONEAVGMONTH,Fp=Pa.ONEMINMONTH,Ki=Pa.ONEWEEK,ri=Pa.ONEDAY,nf=ri/2,ls=Pa.ONEHOUR,z1=Pa.ONEMIN,Ip=Pa.ONESEC,AV=Pa.ONEMILLI,TV=Pa.ONEMICROSEC,Ac=Pa.MINUS_SIGN,Bp=Pa.BADNUM,A3={K:"zeroline"},T3={K:"gridline",L:"path"},k3={K:"minor-gridline",L:"path"},uA={K:"tick",L:"path"},QM={K:"tick",L:"text"},eA={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=Ia(),E1=Op.MID_SHIFT,Tc=Op.CAP_SHIFT,N1=Op.LINE_SPACING,kV=Op.OPPOSITE_SIDE,Hp=3,_r=_A.exports={};_r.setConvert=Cp();var SV=d3(),ss=ca(),CV=ss.idSort,LV=ss.isLinked;_r.id2name=ss.id2name;_r.name2id=ss.name2id;_r.cleanId=ss.cleanId;_r.list=ss.list;_r.listIds=ss.listIds;_r.getFromId=ss.getFromId;_r.getFromTrace=ss.getFromTrace;var fA=tf();_r.getAutoRange=fA.getAutoRange;_r.findExtremes=fA.findExtremes;var qV=1e-4;function q3(e){var r=(e[1]-e[0])*qV;return[e[0]-r,e[1]+r]}_r.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)};_r.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))};_r.saveRangeInitial=function(e,r){for(var t=_r.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=_r.tickIncrement(e,"M6","reverse")+ri*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+ri*15.5:e-=nf;var s=_r.tickIncrement(e,t);if(s<=n)return s}return e}_r.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&aa(r._tmin),a;if(n){var i=_r.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,_r.prepTicks(e,t),n){var l=aa(r.dtick),s=aa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?_3(u,f)?u===2*Ki&&f===2*ri&&(e.dtick=Ki):u===2*Ki&&f===3*ri?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ri:nA(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":_3(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"?_3(u,f)||(e.dtick=nA(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function _3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function nA(e,r){return Math.abs(e/r-1)<.001}_r.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,_r.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<=xV?v=u:v=Rp:t===M3&&f>=Np?u>=Np&&u<=wV?v=u:v=M3:f>=Fp?u>=Fp&&u<=MV?v=u:v=iv:t===Ki&&f>=Ki?v=Ki:f>=ri?v=ri:t===nf&&f>=nf?v=nf:t===ls&&f>=ls&&(v=ls);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)}}_r.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]=(x?0:1);b--){var A=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:lt.extendFlat({},r,r.minor);if(A?_r.prepMinorTicks(k,r,t):_r.prepTicks(k,t),k.tickmode==="array"){b?(y=[],m=aA(r,!A)):(_=[],p=aA(r,!A));continue}if(k.tickmode==="sync"){y=[],m=NV(r);continue}var M=q3(u),D=M[0],R=M[1],N=aa(k.dtick),I=n==="log"&&!(N||k.dtick.charAt(0)==="L"),Z=_r.tickFirst(k,t);if(b){if(r._tmin=Z,Z=R:V<=R;V=_r.tickIncrement(V,ie,f,a)){if(b&&U++,k.rangebreaks&&!f){if(V=h)break}if(y.length>d||V===H)break;H=V;var re={value:V};b?(I&&V!==(V|0)&&(re.simpleLabel=!0),i>1&&U%i&&(re.skipLabel=!0),y.push(re)):(re.minor=!0,_.push(re))}}if(!_||_.length<2)s=!1;else{var K=(_[1].value-_[0].value)*(l?-1:1);lW(K,r.tickformat)||(s=!1)}if(!s)C=y;else{var se=y.concat(_);o&&y.length&&(se=se.slice(1)),se=se.sort(function(or,lr){return or.value-lr.value}).filter(function(or,lr,hr){return lr===0||or.value!==hr[lr-1].value});var ce=se.map(function(or,lr){return or.minor===void 0&&!or.skipLabel?lr:null}).filter(function(or){return or!==null});ce.forEach(function(or){s.map(function(lr){var hr=or+lr;hr>=0&&hr-1;Ce--){if(y[Ce].drop){y.splice(Ce,1);continue}y[Ce].value=w3(y[Ce].value,r);var $=r.c2p(y[Ce].value);(pe?Q>$-G:Q<$+G)?y.splice(f?Ce+1:Ce,1):Q=$}}R3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var _e,De=function(or){or.text="",r._prevDateHead=_e};y=y.concat(_);function Ie(or,lr){var hr=_r.tickText(or,lr.value,!1,lr.simpleLabel),Ke=lr.periodX;return Ke!==void 0&&(hr.periodX=Ke,(Ke>h||Keh&&(hr.periodX=h),Kea&&hRp)r/=Rp,n=a(10),e.dtick="M"+12*os(r,n,Ep);else if(i>iv)r/=iv,e.dtick="M"+os(r,1,iA);else if(i>ri){if(e.dtick=os(r,ri,e._hasDayOfWeekBreaks?[1,2,7,14]:FV),!t){var o=_r.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>ls?e.dtick=os(r,ls,iA):i>z1?e.dtick=os(r,z1,oA):i>Ip?e.dtick=os(r,Ip,oA):(n=a(10),e.dtick=os(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"+os(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))):R3(e)?(e.tick0=0,n=1,e.dtick=os(r,n,IV)):(e.tick0=0,n=a(10),e.dtick=os(r,n,Ep));if(e.dtick===0&&(e.dtick=1),!aa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function dA(e){var r=e.dtick;if(e._tickexponent=0,!aa(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>=ri&&a<=10||r>=ri*15)e._tickround="d";else if(r>=z1&&a<=16||r>=ls)e._tickround="M";else if(r>=Ip&&a<=19||r>=z1)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(aa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);aa(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&&(ov(e.exponentformat)&&e.exponentformat!=="SI extended"&&!D3(s)||ov(e.exponentformat)&&e.exponentformat==="SI extended"&&!E3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(aa(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"?hA:vA,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)};_r.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=I1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function BV(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=F1(Math.pow(10,o),e,a,n);else if(aa(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"||ov(m)&&m!=="SI extended"&&D3(h)||ov(m)&&m==="SI extended"&&E3(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=F1(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 OV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function UV(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 YV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=F1(r.x,e,a,n)}function GV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=VV(i);if(o[1]>=100)r.text=F1(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=F1(r.x,e,a,n)}function VV(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 gA=["f","p","n","\u03BC","m","","k","M","G","T"],WV=["q","r","y","z","a",...gA,"P","E","Z","Y","R","Q"],ov=e=>["SI","SI extended","B"].includes(e);function D3(e){return e>14||e<-15}function E3(e){return e>32||e<-30}function ZV(e,r){return ov(r)?!!(r==="SI extended"&&E3(e)||r!=="SI extended"&&D3(e)):!1}function F1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:aa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};dA(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":ov(o)&&(e+=o==="SI extended"?WV[l/3+10]:gA[l/3+5])}return a?Ac+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*iv}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=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&L3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=lt.simpleMap(u._r,u.r2l),f}}}))};_r.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=_r.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),L3(r,m,n,!0),L3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=oW(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),b=[r.mirror,_,C].join("_");for(i=0;i0?Ke.bottom-lr:0,hr))));var Ue=0,kr=0;if(r._shiftPusher&&(Ue=Math.max(hr,Ke.height>0?Be==="l"?lr-Ke.left:Ke.right-lr:0),r.title.text!==s._dfltTitle[f]&&(kr=(r._titleStandoff||0)+(r._titleScoot||0),Be==="l"&&(kr+=sA(r))),r._fullDepth=Math.max(Ue,kr)),r.automargin){gr={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"?gr[Be]=r._depth:(gr[Be]=r._depth=Math.max(Ke.width>0?lr-Ke.top:0,hr),Ur.reverse()),Ke.width>0){var Ye=Ke.right-(r._offset+r._length);Ye>0&&(gr.xr=1,gr.r=Ye);var Ze=r._offset-Ke.left;Ze>0&&(gr.xl=0,gr.l=Ze)}}else if(Be==="l"?(r._depth=Math.max(Ke.height>0?lr-Ke.left:0,hr),gr[Be]=r._depth-tr):(r._depth=Math.max(Ke.height>0?Ke.right-lr:0,hr),gr[Be]=r._depth+tr,Ur.reverse()),Ke.height>0){var pr=Ke.bottom-(r._offset+r._length);pr>0&&(gr.yb=0,gr.b=pr);var Tr=r._offset-Ke.top;Tr>0&&(gr.yt=1,gr.t=Tr)}gr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Ur[0]],r.title.text!==s._dfltTitle[f]&&(gr[Be]+=sA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(mr={x:0,y:0,r:0,l:0,t:0,b:0},mr[or]=r.linewidth,r.mirror&&r.mirror!==!0&&(mr[or]+=hr),r.mirror===!0||r.mirror==="ticks"?mr[v]=r._anchorAxis.domain[Ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(mr[v]=[r._counterDomainMin,r._counterDomainMax][Ur[1]]))}ar&&(Te=P1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(lA(gr,r.automargin),lA(mr,r.automargin)),nv.autoMargin(e,P3(r),gr),nv.autoMargin(e,yA(r),mr),nv.autoMargin(e,bA(r),Te)}),lt.syncOrAsync(Ie)}};function lA(e,r){if(e){var t=Object.keys(eA).reduce(function(n,a){return r.indexOf(a)!==-1&&eA[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 XV(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 av(a+e._offset+e.l2p(S3(h))+t,i+n)}:function(h){return av(i+n,a+e._offset+e.l2p(S3(h))+t)}};function S3(e){return e.periodX!==void 0?e.periodX:e.x}function KV(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]}_r.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};_r.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(H){return n.indexOf(H)!==-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+=E1:R===-90&&M==="bottom"?b=Tc:R===90&&M==="top"?b=E1:b=.5,k=E1/2*(R/90)),_.xFn=function(H){return H.dx+C+k*H.fontSize},_.yFn=function(H){return H.dy+x+H.fontSize*b},_.anchorFn=function(H,V){if(f){if(l)return"end";if(s)return"start"}return!aa(V)||V===0||V===180?"middle":V*A<0!==v?"end":"start"},_.heightFn=function(H,V,U){return V<-60||V>60?-.5*U:e.side==="top"!==v?-U: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=aa(R)?+R:0;if(I!==0){var Z=lt.deg2rad(I);k=Math.abs(Math.sin(Z))*Tc*A,b=0}}_.xFn=function(H){return H.dx+r-(C+H.fontSize*b)*A+k*H.fontSize},_.yFn=function(H){return H.dy+x+H.fontSize*E1},_.anchorFn=function(H,V){return aa(V)&&Math.abs(V)===90?"middle":N?"end":"start"},_.heightFn=function(H,V,U){return e.side==="right"&&(V*=-1),V<-30?-U:V<30?-.5*U:0}}return _};function Up(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.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 R1.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,[uA]),i.attr("transform",t.transFn)};_r.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&&_r.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 R1.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,[T3,k3])}};_r.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=_r.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 CV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(R1.stroke,r.zerolinecolor||R1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Yp(r,[A3])};_r.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 se=To.select(this),ce=e._promises.length;se.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[ce]?h.push(e._promises.pop().then(function(){d(se,u)})):d(se,u)}),Yp(r,[QM]),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,se){K.each(function(ce){var Se=To.select(this),Fe=Se.select(".text-math-group"),He=s.anchorFn(ce,se),Xe=t.transFn.call(Se.node(),ce)+(aa(se)&&+se!=0?" rotate("+se+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),Le=Mc.lineCount(Se),Qe=N1*ce.fontSize,fe=s.heightFn(ce,aa(se)?+se:0,(Le-1)*Qe);if(fe&&(Xe+=av(0,fe)),Fe.empty()){var me=Se.select("text");me.attr({transform:Xe,"text-anchor":He}),me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ce=$i.bBox(Fe.node()).width,pe=Ce*{end:-.5,start:.5}[He];Fe.attr("transform",Xe+av(pe,0))}})}r._adjustTickLabelsOverflow=function(){var K=r.ticklabeloverflow;if(!(!K||K==="allow")){var se=K.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",Se=0,Fe=ce?e._fullLayout.width:e._fullLayout.height;if(K.indexOf("domain")!==-1){var He=lt.simpleMap(r.range,r.r2l);Se=r.l2p(He[0])+r._offset,Fe=r.l2p(He[1])+r._offset}var Xe=Math.min(Se,Fe),Le=Math.max(Se,Fe),Qe=r.side,fe=1/0,me=-1/0;v.each(function(Q){var $=To.select(this),_e=$.select(".text-math-group");if(_e.empty()){var De=$i.bBox($.node()),Ie=0;ce?(De.right>Le||De.leftLe||De.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+He._id]?$.style("display","none"):Le.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,se=[],ce,Se=1;v.each(function(gr){K=Math.max(K,gr.fontSize);var mr=r.l2p(gr.x),Te=C3(this),Ue=$i.bBox(Te.node());Se=Math.max(Se,Mc.lineCount(Te)),se.push({top:0,bottom:10,height:10,left:mr-Ue.width/2,right:mr+Ue.width/2+2,width:Ue.width+2})});var Fe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,He=l.length,Xe=Math.abs((l[He-1].x-l[0].x)*r._m)/(He-1),Le=Fe?Xe/2:Xe,Qe=Fe?r.ticklen:K*1.25*Se,fe=Math.sqrt(Math.pow(Le,2)+Math.pow(Qe,2)),me=Le/fe,Ce=r.autotickangles.map(function(gr){return gr*Math.PI/180}),pe=Ce.find(function(gr){return Math.abs(Math.cos(gr))<=me});pe===void 0&&(pe=Ce.reduce(function(gr,mr){return Math.abs(Math.cos(gr))ee*U&&(Z=U,R[D]=N[D]=H[D])}var ie=Math.abs(Z-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 QV(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(R1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.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 sA(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*N1):t?r*(t+1)*N1:r}function eW(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*(E1+l*N1));else{var s=I1(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=_r.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,bV.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"}})}_r.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)&&(mA(r,0)||!rW(e,r,t,n)||tW(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return mA(e,t.x)})};function mA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=TV:/%L/.test(r)?e>=AV:/%[SX]/.test(r)?e>=Ip:/%M/.test(r)?e>=z1:/%[HI]/.test(r)?e>=ls:/%p/.test(r)?e>=nf:/%[Aadejuwx]/.test(r)?e>=ri:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Fp:/%[q]/.test(r)?e>=Np:/%[Yy]/.test(r)?e>=zp:!0}});var wA=te((nfe,xA)=>{"use strict";xA.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 z3=te((afe,MA)=>{"use strict";var sW=wA();MA.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&&(sW(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var TA=te((ife,AA)=>{var uW={left:0,top:0};AA.exports=fW;function fW(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=cW(r);return t[0]=n-i.left,t[1]=a-i.top,t}function cW(e){return e===window||e===document||e===document.body?uW:e.getBoundingClientRect()}});var N3=te((ofe,kA)=>{"use strict";var vW=c2();function hW(){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}kA.exports=vW&&hW()});var CA=te((lfe,SA)=>{"use strict";SA.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 DA=te((sfe,qA)=>{"use strict";var LA=dr(),dW=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];qA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=LA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=LA.constrain(Math.floor(t*3),0,2),dW[t][r]}});var PA=te((ufe,EA)=>{"use strict";var pW=x1(),gW=Yd(),mW=h1().getGraphDiv,yW=u1(),F3=EA.exports={};F3.wrapped=function(e,r,t){e=mW(e),e._fullLayout&&gW.clear(e._fullLayout._uid+yW.HOVERID),F3.raw(e,r,t)};F3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&pW.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,FA)=>{"use strict";var bW=TA(),I3=h2(),_W=N3(),xW=dr().removeElement,wW=ya(),kc=FA.exports={};kc.align=CA();kc.getCursor=DA();var zA=PA();kc.unhover=zA.wrapped;kc.unhoverRaw=zA.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,_W?(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 NA(){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=NA;function RA(e){return bW(e.changedTouches?e.changedTouches[0]:e,document.body)}});var af=te((cfe,IA)=>{"use strict";IA.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 OA=te((vfe,BA)=>{"use strict";var H3=af(),H1="data-savedcursor",HA="!!";BA.exports=function(r,t){var n=r.attr(H1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var B3=Ka(),MW=dl();UA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:MW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:B3({editType:"legend"}),grouptitlefont:B3({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:B3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=te(B1=>{"use strict";B1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};B1.isVertical=function(r){return r.orientation!=="h"};B1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};B1.getId=function(r){return r._id||"legend"}});var Y3=te((pfe,YA)=>{"use strict";var Gp=dt(),Qi=dr(),AW=_n(),TW=_o(),kW=O3(),SW=z0(),U3=O1();function CW(e,r,t,n,a){var i=r[e]||{},o=AW.newContainer(t,e);function l(K,se){return Qi.coerce(i,o,kW,K,se)}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,se){var ce=f._input,Se=f;return Qi.coerce(ce,Se,TW,K,se)},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 se=0;seK.legend.length)for(var Se=K.legend.length;Se(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",Z=R==="paper",H,V,U,ee="left";N?(H=0,Gp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(V=1.1,U="bottom"):(V=1,U="top"):I?(V=-.1,U="top"):(V=0,U="bottom")):(V=1,U="auto",Z?H=1.02:(H=1,ee="right")),Qi.coerce(i,o,{x:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:H}},"x"),Qi.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:V}},"y"),l("traceorder",y),U3.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",U),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)}}}YA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var of=dt(),G3=dr(),LW=G3.pushUnique,qW=O1(),GA=!0;V3.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"&&GA&&t.data&&t._context.showTips&&(G3.notifier(G3._(t,"Double-click on legend to isolate one trace"),"long"),GA=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,v=(i.shapes||[]).filter(function(ar){return ar.showlegend}),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(ar,Be){var or=k.indexOf(ar),lr=A.visible;return lr||(lr=A.visible=[]),k.indexOf(ar)===-1&&(k.push(ar),or=k.length-1),lr[or]=Be,or}var N=(i.shapes||[]).map(function(ar){return ar._input}),I=!1;function Z(ar,Be){N[ar].visible=Be,I=!0}function H(ar,Be){if(!(o.groupTitle&&!s)){var or=ar._fullInput||ar,lr=or._isShape,hr=or.index;hr===void 0&&(hr=or._index);var Ke=or.visible===!1?!1:Be;lr?Z(hr,Ke):R(hr,Ke)}}var V=d.legend,U=d._fullInput,ee=U&&U._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,se=[];for(p=0;p{"use strict";VA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var XA=te((yfe,ZA)=>{"use strict";var WA=dt(),X3=O1();ZA.exports=function(r,t,n){var a=t._inHover,i=X3.isGrouped(t),o=X3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(K,se,ce){if(t.visible!==!1&&!(n&&K!==t._id))if(se===""||!X3.isGrouped(t)){var Se="~~i"+v;s.push(Se),l[Se]=[ce],v++}else s.indexOf(se)===-1?(s.push(se),u=!0,l[se]=[ce]):l[se].push(ce)}for(d=0;dZ&&(I=Z)}R[d][0]._groupMinRank=I,R[d][0]._preGroupSort=d}var H=function(K,se){return K[0]._groupMinRank-se[0]._groupMinRank||K[0]._preGroupSort-se[0]._preGroupSort},V=function(K,se){return K.trace.legendrank-se.trace.legendrank||K._preSort-se._preSort};for(R.forEach(function(K,se){K[0]._preGroupSort=se}),R.sort(H),d=0;d{"use strict";var Vp=dr();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 DW=fn(),EW=Et();JA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?DW.pointStyle(r,n,a,t):EW.fill(r,t.color)}});var rT=te((xfe,eT)=>{"use strict";var KA=Et(),QA=j3().castOption,PW=$A();eT.exports=function(r,t,n,a){var i=n.marker.line,o=QA(i.color,t.pts)||KA.defaultLine,l=QA(i.width,t.pts)||0;r.call(PW,t,n,a).style("stroke-width",l).call(KA.stroke,o)}});var Q3=te((wfe,lT)=>{"use strict";var ti=kt(),J3=dt(),Ba=dr(),tT=Ba.strTranslate,eo=fn(),So=Et(),$3=ts().extractOpts,Wp=ei(),RW=rT(),zW=j3().castOption,NW=Z3(),nT=12,aT=5,Cc=2,FW=10,lv=5;lT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+NW.itemGap*2)/2,s=tT(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=ti.select(this),R=Ba.ensureSingle(D,"g","layers");R.style("opacity",M[0].trace.opacity);var N=n.indentation,I=n.valign,Z=M[0].lineHeight,H=M[0].height;if(I==="middle"&&N===0||!Z||!H)R.attr("transform",null);else{var V={top:1,bottom:-1}[I],U=V*(.5*(Z-H+3))||0,ee=n.indentation;R.attr("transform",tT(ee,U))}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=iT(M),R=D.showFill,N=D.showLine,I=D.showGradientLine,Z=D.showGradientFill,H=D.anyFill,V=D.anyLine,U=M[0],ee=U.trace,ie,re,K=$3(ee),se=K.colorscale,ce=K.reversescale,Se=function(me){if(me.size())if(R)eo.fillGroupStyle(me,t,!0);else{var Ce="legendfill-"+ee.uid;eo.gradient(me,t,Ce,K3(ce),se,"fill")}},Fe=function(me){if(me.size()){var Ce="legendline-"+ee.uid;eo.lineGroupStyle(me),eo.gradient(me,t,Ce,K3(ce),se,"stroke")}},He=Wp.hasMarkers(ee)||!H?"M5,0":V?"M5,-2":"M5,-3",Xe=ti.select(this),Le=Xe.select(".legendfill").selectAll("path").data(R||Z?[M]:[]);if(Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",He+"h"+o+"v6h-"+o+"z").call(Se),N||I){var Qe=u(void 0,ee.line,FW,aT);re=Ba.minExtend(ee,{line:{width:Qe}}),ie=[Ba.minExtend(U,{trace:re})]}var fe=Xe.select(".legendlines").selectAll("path").data(N||I?[ie]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",He+(I?"l"+o+",0.0001":"h"+o)).call(N?eo.lineGroupStyle:Fe)}function v(M){var D=iT(M),R=D.anyFill,N=D.anyLine,I=D.showLine,Z=D.showMarker,H=M[0],V=H.trace,U=!Z&&!N&&!R&&Wp.hasText(V),ee,ie;function re(Le,Qe,fe,me){var Ce=Ba.nestedProperty(V,Le).get(),pe=Ba.isArrayOrTypedArray(Ce)&&Qe?Qe(Ce):Ce;if(i&&pe&&me!==void 0&&(pe=me),fe){if(pefe[1])return fe[1]}return pe}function K(Le){return H._distinct&&H.index&&Le[H.index]?Le[H.index]:Le[0]}if(Z||U||I){var se={},ce={};if(Z){se.mc=re("marker.color",K),se.mx=re("marker.symbol",K),se.mo=re("marker.opacity",Ba.mean,[.2,1]),se.mlc=re("marker.line.color",K),se.mlw=re("marker.line.width",Ba.mean,[0,5],Cc),se.mld=V._isShape?"solid":re("marker.line.dash",K),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Se=re("marker.size",Ba.mean,[2,16],nT);se.ms=Se,ce.marker.size=Se}I&&(ce.line={width:re("line.width",K,[0,10],aT)}),U&&(se.tx="Aa",se.tp=re("textposition",K),se.ts=10,se.tc=re("textfont.color",K),se.tf=re("textfont.family",K),se.tw=re("textfont.weight",K),se.ty=re("textfont.style",K),se.tv=re("textfont.variant",K),se.tC=re("textfont.textcase",K),se.tE=re("textfont.lineposition",K),se.tS=re("textfont.shadow",K)),ee=[Ba.minExtend(H,se)],ie=Ba.minExtend(V,ce),ie.selectedpoints=null,ie.texttemplate=null}var Fe=ti.select(this).select("g.legendpoints"),He=Fe.selectAll("path.scatterpts").data(Z?ee:[]);He.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),He.exit().remove(),He.call(eo.pointStyle,ie,t),Z&&(ee[0].mrc=3);var Xe=Fe.selectAll("g.pointtext").data(U?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 Z=ti.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);Z.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),Z.exit().remove(),Z.each(function(H){var V=ti.select(this),U=D[H[0]].marker,ee=u(void 0,U.line,lv,Cc);V.attr("d",H[1]).style("stroke-width",ee+"px").call(So.fill,U.color),ee&&V.call(So.stroke,U.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||{},Z=I.line||{},H=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",V=R?N.visible&&N.type===R:J3.traceIs(N,"bar"),U=ti.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(V?[M]:[]);U.enter().append("path").classed("legend"+R,!0).attr("d",H).attr("transform",s),U.exit().remove(),U.each(function(ee){var ie=ti.select(this),re=ee[0],K=u(re.mlw,I.line,lv,Cc);ie.style("stroke-width",K+"px");var se=re.mcc;if(!n._inHover&&"mc"in re){var ce=$3(I),Se=ce.mid;Se===void 0&&(Se=(ce.max+ce.min)/2),se=eo.tryColorscale(I,"")(Se)}var Fe=se||re.mc||I.color,He=I.pattern,Xe=eo.getPatternAttr,Le=He&&(Xe(He.shape,0,"")||Xe(He.path,0,""));if(Le){var Qe=Xe(He.bgcolor,0,null),fe=Xe(He.fgcolor,0,null),me=He.fgopacity,Ce=oT(He.size,8,10),pe=oT(He.solidity,.5,1),G="legend-"+N.uid;ie.call(eo.pattern,"legend",t,G,Le,Ce,pe,se,He.fillmode,Qe,fe,me)}else ie.call(So.fill,Fe);K&&So.stroke(ie,re.mlc||Z.color)})}function y(M){var D=M[0].trace,R=ti.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&J3.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=ti.select(this);if((D.boxpoints==="all"||D.points==="all")&&So.opacity(D.fillcolor)===0&&So.opacity((D.line||{}).color)===0){var I=Ba.minExtend(D,{marker:{size:i?nT:Ba.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(eo.pointStyle,I,t)}else{var Z=u(void 0,D.line,lv,Cc);N.style("stroke-width",Z+"px").call(So.fill,D.fillcolor),Z&&So.stroke(N,D.line.color)}})}function _(M){var D=M[0].trace,R=ti.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 Z=ti.select(this),H=D[I?"increasing":"decreasing"],V=u(void 0,H.line,lv,Cc);Z.style("stroke-width",V+"px").call(So.fill,H.fillcolor),V&&So.stroke(Z,H.line.color)})}function C(M){var D=M[0].trace,R=ti.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 Z=ti.select(this),H=D[I?"increasing":"decreasing"],V=u(void 0,H.line,lv,Cc);Z.style("fill","none").call(eo.dashLine,H.line.dash,V),V&&So.stroke(Z,H.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,Z=R?I.visible&&I.type===R:J3.traceIs(I,R),H=ti.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(Z?[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 V=I.marker||{},U=u(zW(V.line.width,N.pts),V.line,lv,Cc),ee="pieLike",ie=Ba.minExtend(I,{marker:{line:{width:U}}},ee),re=Ba.minExtend(N,{trace:ie},ee);RW(H,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=ti.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(Z,H){var V=ti.select(this),U=$3(D),ee=U.colorscale,ie=U.reversescale,re=function(Se){if(Se.size()){var Fe="legendfill-"+D.uid;eo.gradient(Se,t,Fe,K3(ie,R==="radial"),ee,"fill")}},K;if(ee){if(!R){var ce=ee.length;K=H===0?ee[ie?ce-1:0][1]:H===1?ee[ie?0:ce-1][1]:ee[Math.floor((ce-1)/2)][1]}}else{var se=D.vertexcolor||D.facecolor||D.color;K=Ba.isArrayOrTypedArray(se)?se[H]||se[0]:se}V.attr("d",Z[0]),K?V.call(So.fill,K):V.call(re)})}};function K3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function iT(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 oT(e,r,t){return e&&Ba.isArrayOrTypedArray(e)?r:e>t?t:e}});var n5=te((Mfe,gT)=>{"use strict";var hi=kt(),Qn=dr(),r5=va(),Lc=dt(),jp=x1(),e5=ko(),ea=fn(),U1=Et(),qc=Qa(),sT=W3().handleItemClick,uT=W3().handleTitleClick,ia=Z3(),t5=Ia(),dT=t5.LINE_SPACING,uv=t5.FROM_TL,fT=t5.FROM_BR,cT=XA(),IW=Q3(),fv=O1(),sv=1,HW=/^legend[0-9]*$/;gT.exports=function(r,t){if(t)vT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=hi.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(HW)&&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(),r5.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(U1.stroke,t.bordercolor).call(U1.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,sv),!l&&(t.titleclick||t.titledoubleclick)&&YW(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(ia.scrollBarEnterAttrs).call(U1.fill,ia.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,Z=(n.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(Z).some(function(V){return V.legendgroup===I&&(V.legend||"legend")===a&&V.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(){hi.select(this).call(OW,e,t)}).call(IW,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||hi.select(this).call(UW,e,a)}),Qn.syncOrAsync([r5.previousPromises,function(){return WW(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 _e=(n.shapes||[]).filter(function(Ie){return Ie.showlegend}),De=e._fullData.concat(_e).some(function(Ie){let nr=Ie.legend||"legend";var ar=Array.isArray(nr)?nr.includes(a):nr===a;return ar&&Ie.visible===!0});b.style("opacity",De?1:.5)}if(!l){var Z,H;N?Z=D.l+D.w*t.x-uv[Jp(t)]*t._width:Z=n.width*t.x-uv[Jp(t)]*t._width,I?H=D.t+D.h*(1-t.y)-uv[$p(t)]*t._effHeight:H=n.height*(1-t.y)-uv[$p(t)]*t._effHeight;var V=ZW(e,a,Z,H);if(V)return;if(n.margin.autoexpand){var U=Z,ee=H;Z=N?Qn.constrain(Z,0,n.width-t._width):U,H=I?Qn.constrain(H,0,n.height-t._effHeight):ee,Z!==U&&Qn.log("Constrain "+a+".x to make legend fit inside graph"),H!==ee&&Qn.log("Constrain "+a+".y to make legend fit inside graph")}ea.setTranslate(p,Z,H)}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(ia.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),K=t._effHeight-re-2*ia.scrollBarMargin,se=t._height-t._effHeight,ce=K/se,Se=Math.min(t._scrollY||0,se);_.attr({width:t._width-2*R+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-R,x:R/2,y:R/2}),y.select("rect").attr({width:t._width-2*R+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-2*R,x:R,y:R+Se}),ea.setClipUrl(C,i,e),Ce(Se,re,ce),p.on("wheel",function(){Se=Qn.constrain(t._scrollY+hi.event.deltaY/se*K,0,se),Ce(Se,re,ce),Se!==0&&Se!==se&&hi.event.preventDefault()});var Fe,He,Xe,Le=function(_e,De,Ie){var nr=(Ie-De)/ce+_e;return Qn.constrain(nr,0,se)},Qe=function(_e,De,Ie){var nr=(De-Ie)/ce+_e;return Qn.constrain(nr,0,se)},fe=hi.behavior.drag().on("dragstart",function(){var _e=hi.event.sourceEvent;_e.type==="touchstart"?Fe=_e.changedTouches[0].clientY:Fe=_e.clientY,Xe=Se}).on("drag",function(){var _e=hi.event.sourceEvent;_e.buttons===2||_e.ctrlKey||(_e.type==="touchmove"?He=_e.changedTouches[0].clientY:He=_e.clientY,Se=Le(Xe,Fe,He),Ce(Se,re,ce))});A.call(fe);var me=hi.behavior.drag().on("dragstart",function(){var _e=hi.event.sourceEvent;_e.type==="touchstart"&&(Fe=_e.changedTouches[0].clientY,Xe=Se)}).on("drag",function(){var _e=hi.event.sourceEvent;_e.type==="touchmove"&&(He=_e.changedTouches[0].clientY,Se=Qe(Xe,Fe,He),Ce(Se,re,ce))});C.call(me)}function Ce(_e,De,Ie){t._scrollY=e._fullLayout[a]._scrollY=_e,ea.setTranslate(C,0,-_e),ea.setRect(A,t._width,ia.scrollBarMargin+_e*Ie,ia.scrollBarWidth,De),y.select("rect").attr("y",R+_e)}if(e._context.edits.legendPosition){var pe,G,Q,$;p.classed("cursor-move",!0),e5.init({element:p.node(),gd:e,prepFn:function(_e){if(_e.target!==A.node()){var De=ea.getTranslate(p);Q=De.x,$=De.y}},moveFn:function(_e,De){if(Q!==void 0&&$!==void 0){var Ie=Q+_e,nr=$+De;ea.setTranslate(p,Ie,nr),pe=e5.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),G=e5.align(nr+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&G!==void 0){var _e={};_e[a+".x"]=pe,_e[a+".y"]=G,Lc.call("_guiRelayout",e,_e)}},clickFn:function(_e,De){var Ie=o.selectAll("g.traces").filter(function(){var nr=this.getBoundingClientRect();return De.clientX>=nr.left&&De.clientX<=nr.right&&De.clientY>=nr.top&&De.clientY<=nr.bottom});Ie.size()>0&&pT(e,t,Ie,_e,De)}})}}],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 pT(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&&sT(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&&sT(t,e,r,s)}}function OW(e,r,t){var n=fv.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?hT(u,s):u);var h=t.indentation+t.itemwidth+ia.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(hT(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 hT(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 UW(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(U1.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)),pT(r,l,e,i,hi.event)}}))}function YW(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(U1.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:hi.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&&uT(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&&uT(r,t,t.titledoubleclick))}))}function Xp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),qc.convertToTspans(e,t,function(){GW(r,t,n,a)})}function GW(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=fv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;n===sv?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var v=f.size*dT,h,d;if(l){var m=ea.bBox(l);h=m.height,d=m.width,n===sv?ea.setTranslate(o,u,u+h*.75):ea.setTranslate(o,0,h*.25)}else{var p="."+s+(n===sv?"title":"")+"text",y=e.select(p),_=qc.lineCount(y),C=y.node();if(h=v*_,d=C?ea.bBox(C).width:0,n===sv)t.title.side==="left"&&(d+=ia.itemGap*2),qc.positionText(y,u+ia.titlePad,u+v);else{var x=ia.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(x=ia.itemGap,d-=t.indentation+t.itemwidth),qc.positionText(y,x,-v*((_-1)/2-.3))}}n===sv?(t._titleWidth=d,t._titleHeight=h):(a.lineHeight=v,a.height=Math.max(h,16)+3,a.width=d)}function VW(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 WW(e,r,t,n,a){var i=e._fullLayout,o=fv.getId(n);n||(n=i[o]);var l=i._size,s=fv.isVertical(n),u=fv.isGrouped(n),f=n.entrywidthmode==="fraction",v=n.borderwidth,h=2*v,d=ia.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=VW(n);if(s)t.each(function(_e){var De=_e[0].height;ea.setTranslate(this,v+I[0],v+I[1]+n._height+De/2+d),n._height+=De,n._width=Math.max(n._width,_e[0].width)}),N=m+n._width,n._width+=d+m+h,n._height+=p,u&&(r.each(function(_e,De){ea.setTranslate(this,0,De*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var Z=Jp(n),H=n.x<0||n.x===0&&Z==="right",V=n.x>1||n.x===1&&Z==="left",U=C||_,ee=i.width/2;n._maxWidth=Math.max(H?U&&Z==="left"?l.l+l.w:ee:V?U&&Z==="right"?l.r+l.w:ee:l.w,2*m);var ie=0,re=0;t.each(function(_e){var De=Zp(_e,n,m);ie=Math.max(ie,De),re+=De}),N=null;var K=0;if(u){var se=0,ce=0,Se=0;r.each(function(){var _e=0,De=0;hi.select(this).selectAll("g.traces").each(function(nr){var ar=Zp(nr,n,m),Be=nr[0].height;ea.setTranslate(this,I[0],I[1]+v+d+Be/2+De),De+=Be,_e=Math.max(_e,ar),b[nr[0].trace.legendgroup]=_e});var Ie=_e+d;ce>0&&Ie+v+ce>n._maxWidth?(K=Math.max(K,ce),ce=0,Se+=se+x,se=De):se=Math.max(se,De),ea.setTranslate(this,ce,Se),ce+=Ie}),n._width=Math.max(K,ce)+v,n._height=Se+se+p}else{var Fe=t.size(),He=re+h+(Fe-1)*d=n._maxWidth&&(K=Math.max(K,fe),Le=0,Qe+=Xe,n._height+=Xe,Xe=0),ea.setTranslate(this,I[0]+v+Le,I[1]+v+Qe+De/2+d),fe=Le+Ie+d,Le+=nr,Xe=Math.max(Xe,De)}),He?(n._width=Le+h,n._height=Xe+p):(n._width=Math.max(K,fe)+h,n._height+=Xe+p)}}n._width=Math.ceil(Math.max(n._width+I[0],n._titleWidth+2*(v+ia.titlePad))),n._height=Math.ceil(Math.max(n._height+I[1],n._titleHeight+2*(v+ia.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var me=e._context.edits,Ce=me.legendText||me.legendPosition;t.each(function(_e){var De=hi.select(this).select("."+o+"toggle"),Ie=_e[0].height,nr=_e[0].trace.legendgroup,ar=Zp(_e,n,m);u&&nr!==""&&(ar=b[nr]);var Be=Ce?m:N||ar;!s&&!f&&(Be+=d/2),ea.setRect(De,0,-Ie/2,Be,Ie)});var pe=a.select("."+o+"titletext");pe.node()&&BW(pe,n,v);var G=a.select("."+o+"titletoggle");if(G.size()&&pe.node()){var Q=pe.attr("x")||0,$=ia.titlePad;ea.setRect(G,Q-$,v,n._titleWidth+2*$,n._titleHeight+2*$)}}function ZW(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 r5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*uv[o],r:i._width*fT[o],b:i._effHeight*fT[l],t:i._effHeight*uv[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 l5=te(o5=>{"use strict";var Dc=kt(),au=Ht(),mT=Ql(),Hn=dr(),XW=Hn.pushUnique,a5=Hn.strTranslate,jW=Hn.strRotate,JW=x1(),Co=Qa(),$W=OA(),us=fn(),_a=Et(),Kp=ko(),fs=Dn(),KW=ya().zindexSeparator,vv=dt(),wl=$u(),Ec=u1(),QW=Y3(),eZ=n5(),TT=Ec.YANGLE,i5=Math.PI*TT/180,rZ=1/Math.sin(i5),tZ=Math.cos(i5),nZ=Math.sin(i5),Ln=Ec.HOVERARROWSIZE,Pt=Ec.HOVERTEXTPAD,yT={box:!0,ohlc:!0,violin:!0,candlestick:!0},aZ={scatter:!0,scattergl:!0,splom:!0};function bT(e,r){return e.distance-r.distance}o5.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+Ec.HOVERID,Ec.HOVERMINTIME,function(){iZ(r,t,n,a,i)})};o5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=qT(a),o=DT(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(vv.traceIs(N,"gl3d")){var I=a._fullLayout[N.scene]._scene.container,Z=I.offsetLeft,H=I.offsetTop;k+=Z,M+=Z,D+=H,R+=H}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:R+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.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=ST(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.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,$),!au(ee[0])||!au(ie[0]))return Hn.warn("Fx.hover failed",r,e),Kp.unhoverRaw(e,r)}var Ie=1/0;function nr(jr,Ut){for(K=0;Kfe&&(V.splice(0,fe),Ie=V[0].distance),v&&H!==0&&V.length===0){Qe.distance=H,Qe.index=!1;var Yt=ce._module.hoverPoints(Qe,Xe,Le,"closest",{hoverLayer:l._hoverlayer});if(Yt&&(Yt=Yt.filter(function(hn){return hn.spikeDistance<=H})),Yt&&Yt.length){var On,Va=Yt.filter(function(hn){return hn.xa.showspikes&&hn.xa.spikesnap!=="hovered data"});if(Va.length){var kn=Va[0];au(kn.x0)&&au(kn.y0)&&(On=Be(kn),(!me.vLinePoint||me.vLinePoint.spikeDistance>On.spikeDistance)&&(me.vLinePoint=On))}var Wa=Yt.filter(function(hn){return hn.ya.showspikes&&hn.ya.spikesnap!=="hovered data"});if(Wa.length){var oa=Wa[0];au(oa.x0)&&au(oa.y0)&&(On=Be(oa),(!me.hLinePoint||me.hLinePoint.spikeDistance>On.spikeDistance)&&(me.hLinePoint=On))}}}}}nr();function ar(jr,Ut,Nt){for(var rn=null,Tn=1/0,vn,Yt=0;Ytjr.trace.index===Ye.trace.index):V=[Ye];var Ze=V.length,pr=AT("x",Ye,l),Tr=AT("y",Ye,l);nr(pr,Tr);var yr=[],wr={},Hr=0,Sr=function(jr){var Ut=yT[jr.trace.type]?kT(jr):jr.trace.index;if(!wr[Ut])Hr++,wr[Ut]=Hr,yr.push(jr);else{var Nt=wr[Ut]-1,rn=yr[Nt];Nt>0&&Math.abs(jr.distance)Ze-1;Dr--)Sr(V[Dr]);V=yr,Ke()}var ur=e._hoverdata,xe=[],Ae=qT(e),$e=DT(e);for(let jr of V){var rr=wl.makeEventData(jr,jr.trace,jr.cd);if(jr.hovertemplate!==!1){var Lr=!1;jr.cd[jr.index]&&jr.cd[jr.index].ht&&(Lr=jr.cd[jr.index].ht),jr.hovertemplate=Lr||jr.trace.hovertemplate||!1}if(jr.xa&&jr.ya){var Yr=jr.x0+jr.xa._offset,Fr=jr.x1+jr.xa._offset,st=jr.y0+jr.ya._offset,xt=jr.y1+jr.ya._offset,Rt=Math.min(Yr,Fr),Kt=Math.max(Yr,Fr),cn=Math.min(st,xt),pn=Math.max(st,xt);rr.bbox={x0:Rt+$e,x1:Kt+$e,y0:cn+Ae,y1:pn+Ae}}jr.eventData=[rr],xe.push(rr)}e._hoverdata=xe;var Mn=h==="y"&&(U.length>1||V.length>1)||h==="closest"&&Ce&&V.length>1,Xt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),Qt=ST(V,{gd:e,hovermode:h,rotateLabels:Mn,bgColor:Xt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),en=Qt.hoverLabels;if(wl.isUnifiedHover(h)||(lZ(en,Mn,l,Qt.commonLabelBoundingBox),LT(en,Mn,l._invScaleX,l._invScaleY)),a&&a.tagName){var an=vv.getComponentMethod("annotations","hasClickToShow")(e,xe);$W(Dc.select(a),an?"pointer":"")}!a||n||!fZ(e,r,ur)||(ur&&e.emit("plotly_unhover",{event:r,points:ur}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:D,xvals:ee,yvals:ie}))}function kT(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 oZ=/([\s\S]*)<\/extra>/;function ST(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&&($e=n.width-Ae),Ye.attr("d","M"+(Dr-$e)+",0L"+(Dr-$e+Ln)+","+xe+Ln+"H"+Ae+"v"+xe+(Pt*2+Sr.height)+"H"+-Ae+"V"+xe+Ln+"H"+(Dr-$e-Ln)+"Z"),Dr=$e,K.minX=Dr-Ae,K.maxX=Dr+Ae,x.side==="top"?(K.minY=ur-(Pt*2+Sr.height),K.maxY=ur-Pt):(K.minY=ur+Pt,K.maxY=ur+(Pt*2+Sr.height))}else{var rr,Lr,Yr;b.side==="right"?(rr="start",Lr=1,Yr="",Dr=x._offset+x._length):(rr="end",Lr=-1,Yr="-",Dr=x._offset),ur=b._offset+(C.y0+C.y1)/2,Ze.attr("text-anchor",rr),Ye.attr("d","M0,0L"+Yr+Ln+","+Ln+"V"+(Pt+Sr.height/2)+"h"+Yr+(Pt*2+Sr.width)+"V-"+(Pt+Sr.height/2)+"H"+Yr+Ln+"V-"+Ln+"Z"),K.minY=ur-(Pt+Sr.height/2),K.maxY=ur+(Pt+Sr.height/2),b.side==="right"?(K.minX=Dr+Ln,K.maxX=Dr+Ln+(Pt*2+Sr.width)):(K.minX=Dr-Ln-(Pt*2+Sr.width),K.maxX=Dr-Ln);var Fr=Sr.height/2,st=N-Sr.top-Fr,xt="clip"+n._uid+"commonlabel"+b._id,Rt;if(DrYe.hoverinfo!=="none");if(tr.length===0)return[];var se=n.hoverlabel,ce=se.font,Se=tr[0],Fe=((a==="x unified"?Se.xa:Se.ya).unifiedhovertitle||{}).text,He=Fe?Hn.hovertemplateString({data:a==="x unified"?[{xa:Se.xa,x:Se.xVal}]:[{ya:Se.ya,y:Se.yVal}],fallback:Se.trace.hovertemplatefallback,locale:n._d3locale,template:Fe}):M,Xe={showlegend:!0,legend:{title:{text:He,font:ce},font:ce,bgcolor:se.bgcolor,bordercolor:se.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Le={font:ce};QW(Xe,Le,t._fullData);var Qe=Le.legend;Qe.entries=[];for(var fe=0;fe=0?Ue=Ke:gr+De=0?Ue=gr:mr+De=0?kr=lr:hr+Ie=0?kr=hr:Te+Ie=0,(tr.idealAlign==="top"||!pn)&&Mn?(Yr-=st/2,tr.anchor="end"):pn?(Yr+=st/2,tr.anchor="start"):tr.anchor="middle",tr.crossPos=Yr;else{if(tr.pos=Yr,pn=Lr+Fr/2+cn<=I,Mn=Lr-Fr/2-cn>=0,(tr.idealAlign==="left"||!pn)&&Mn)Lr-=Fr/2,tr.anchor="end";else if(pn)Lr+=Fr/2,tr.anchor="start";else{tr.anchor="middle";var Xt=cn/2,Qt=Lr+Xt-I,en=Lr-Xt;Qt>0&&(Lr-=Qt),en<0&&(Lr+=-en)}tr.crossPos=Lr}ur.attr("text-anchor",tr.anchor),Ae&&xe.attr("text-anchor",tr.anchor),Ye.attr("transform",a5(Lr,Yr)+(i?jW(TT):""))}),{hoverLabels:Ur,commonLabelBoundingBox:K}}function _T(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=MT(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(oZ,(m,p)=>(o=MT(p,e.nameLength),""))}return[l,o]}function lZ(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",se=ie.range;f===0&&se&&se[0]>se[1]!==K&&(l=-1);var ce=0,Se=K?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Fe=CT(ee,r),He=ee.anchor,Xe=He==="end"?-1:1,Le,Qe;if(He==="middle")Le=ee.crossPos+(K?y(Fe.y-ee.by/2):p(ee.bx/2+ee.tx2width/2)),Qe=Le+(K?y(ee.by):p(ee.bx));else if(K)Le=ee.crossPos+y(Ln+Fe.y)-y(ee.by/2-Ln),Qe=Le+y(ee.by);else{var fe=p(Xe*Ln+Fe.x),me=fe+p(Xe*ee.bx);Le=ee.crossPos+Math.min(fe,me),Qe=ee.crossPos+Math.max(fe,me)}K?d!==void 0&&m!==void 0&&Math.min(Qe,m)-Math.max(Le,d)>1&&(re.side==="left"?(ce=re._mainLinePosition,Se=t.width):Se=re._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Qe,h)-Math.max(Le,v)>1&&(re.side==="top"?(ce=re._mainLinePosition,Se=t.height):Se=re._mainLinePosition)}u[f++]=[{datum:ee,traceIndex:ee.trace.index,dp:0,pos:ee.pos,posref:ee.posref,size:ee.by*(K?rZ:1)/2,pmin:ce,pmax:Se}]}),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 H=u[b];for(A=H.length-1;A>=0;A--){var V=H[A],U=V.datum;U.offset=V.dp,U.del=V.del}}}function CT(e,r){var t=0,n=e.offset;return r&&(n*=-nZ,t=e.offset*tZ),{x:t,y:n}}function sZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ln+Pt),n=t+r*(e.txwidth+Pt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Pt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function LT(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=sZ(o),h=CT(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*Ln+d)+","+i(Ln+m)+"v"+i(o.by/2-Ln)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Ln+d)+"V"+i(m-Ln)+"Z":_="M"+a(f*Ln+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+Pt,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Pt:-o.bx-Pt):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Pt:o.bx+Pt)),s.call(Co.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(Co.positionText,a(v.text2ShiftX+v.alignShift*Pt+d),i(m+o.ty0-o.by/2+Pt)),l.select("rect").call(us.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 uZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||au(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:fs.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:fs.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=fs.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+fs.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=fs.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+fs.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 xT(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=_a.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=mT.readability(h.color,v)<1.5?_a.contrast(v):h.color,_=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,b=fs.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":us.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 Z=u.spikesnap;Z==="cursor"?(N=o.pointerX,I=o.pointerY):(N=u._offset+R.x,I=f._offset+R.y);var H=mT.readability(R.color,v)<1.5?_a.contrast(v):R.color,V=u.spikemode,U=u.spikethickness,ee=u.spikecolor||H,ie=fs.getPxPosition(e,u),re,K;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(re=ie,K=I),V.indexOf("across")!==-1){var se=u._counterDomainMin,ce=u._counterDomainMax;u.anchor==="free"&&(se=Math.min(se,u.position),ce=Math.max(ce,u.position)),re=i.t+(1-ce)*i.h,K=i.t+(1-se)*i.h}n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":U,stroke:ee,"stroke-dasharray":us.dashStyle(u.spikedash,U)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":U+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:N,cy:ie-(u.side!=="top"?U:-U),r:U,fill:ee}).classed("spikeline",!0)}}}function fZ(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 wT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function MT(e,r){return Co.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function cZ(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;oe.offsetTop+e.clientTop,DT=e=>e.offsetLeft+e.clientLeft;function cv(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((Tfe,ET)=>{"use strict";var vZ=dr(),hZ=Et(),dZ=$u().isUnifiedHover;ET.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&&dZ(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=hZ.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),vZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var RT=te((kfe,PT)=>{"use strict";var pZ=dr(),gZ=Qp(),mZ=q0();PT.exports=function(r,t){function n(a,i){return pZ.coerce(r,t,mZ,a,i)}gZ(r,t,n)}});var FT=te((Sfe,NT)=>{"use strict";var zT=dr(),yZ=Md(),bZ=Qp();NT.exports=function(r,t,n,a){function i(l,s){return zT.coerce(r,t,yZ,l,s)}var o=zT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),bZ(r,t,i,o)}});var s5=te((Cfe,IT)=>{"use strict";var _Z=dr(),xZ=q0();IT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:_Z.coerce(r,t,xZ,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var OT=te((Lfe,BT)=>{"use strict";var HT=dr(),wZ=q0(),MZ=s5(),AZ=Qp();BT.exports=function(r,t){function n(f,v){return HT.coerce(r,t,wZ,f,v)}var a=MZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));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"),AZ(r,t,n),HT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var GT=te((qfe,YT)=>{"use strict";var u5=dr(),UT=dt();YT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return u5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var kZ=dt(),SZ=l5().hover;VT.exports=function(r,t,n){var a=kZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&SZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var cs=te((Efe,jT)=>{"use strict";var CZ=kt(),eg=dr(),LZ=ko(),Y1=$u(),ZT=q0(),XT=l5();jT.exports={moduleType:"component",name:"fx",constants:u1(),schema:{layout:ZT},attributes:Md(),layoutAttributes:ZT,supplyLayoutGlobalDefaults:RT(),supplyDefaults:FT(),supplyLayoutDefaults:OT(),calc:GT(),getDistanceFunction:Y1.getDistanceFunction,getClosest:Y1.getClosest,inbox:Y1.inbox,quadrature:Y1.quadrature,appendArrayPointValue:Y1.appendArrayPointValue,castHoverOption:DZ,castHoverinfo:EZ,hover:XT.hover,unhover:LZ.unhover,loneHover:XT.loneHover,loneUnhover:qZ,click:WT()};function qZ(e){var r=eg.isD3Selection(e)?e:CZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function DZ(e,r,t){return eg.castOption(e,r,"hoverlabel."+t)}function EZ(e,r,t){function n(a){return eg.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return eg.castOption(e,t,"hoverinfo",n)}});var hv=te(iu=>{"use strict";iu.selectMode=function(e){return e==="lasso"||e==="select"};iu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};iu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};iu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};iu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};iu.selectingOrDrawing=function(e){return iu.freeMode(e)||iu.rectMode(e)}});var rg=te((Rfe,JT)=>{"use strict";JT.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((zfe,$T)=>{"use strict";$T.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((Nfe,KT)=>{"use strict";var ng=32;KT.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((Ffe,ek)=>{"use strict";var PZ=dr().strTranslate;function QT(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 RZ(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 zZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return QT(e,t[r])}}function NZ(e){return PZ(e.xaxis._offset,e.yaxis._offset)}ek.exports={p2r:QT,r2p:RZ,axValue:zZ,getTransform:NZ}});var lf=te(ou=>{"use strict";var FZ=J2(),nk=ag(),dv=nk.CIRCLE_SIDES,f5=nk.SQRT2,ak=ig(),rk=ak.p2r,tk=ak.r2p,IZ=[0,3,4,5,6,1,2],HZ=[0,3,4,1,2];ou.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var ik=ca(),fk=hv(),BZ=fk.drawMode,OZ=fk.openMode,pv=ag(),ok=pv.i000,lk=pv.i090,sk=pv.i180,uk=pv.i270,UZ=pv.cos45,YZ=pv.sin45,ck=ig(),lg=ck.p2r,sf=ck.r2p,GZ=ju(),VZ=GZ.clearOutline,sg=lf(),WZ=sg.readPaths,ZZ=sg.writePaths,XZ=sg.ellipseOver,jZ=sg.fixDatesForPaths;function JZ(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(!BZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var $Z=hv(),KZ=$Z.selectMode,QZ=ju(),eX=QZ.clearOutline,c5=lf(),rX=c5.readPaths,tX=c5.writePaths,nX=c5.fixDatesForPaths;dk.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(!KZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";pk.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(Ra=>{"use strict";var vs=V1(),gk=dr(),uf=Dn();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 n=[],a=e.match(vs.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(vs.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=a[l].drawn!==void 0;return i+(s?1:0)},0)};Ra.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=Ra.shapePositionToRange(r);o=function(s){var u=lu(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ra.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};Ra.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=Ra.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};Ra.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Ra.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}};Ra.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}};Ra.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,Z,H){var V;if(N)if(I==="domain")H?V=function(U){return N._offset+N._length*(1-U)}:V=function(U){return N._offset+N._length*U};else{let U=Ra.shapePositionToRange(N);V=function(ee){return N._offset+N.r2p(U(ee,!0))},Z==="path"&&N.type==="date"&&(V=Ra.decodeDate(V))}else H?V=function(U){return i.t+i.h*(1-U)}:V=function(U){return i.l+i.w*U};return V}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 aX(r,h,d);if(n==="array")s=lu(o[0],r.x0shift),u=lu(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=lu(o,r.x0shift),u=lu(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=lu(l[0],r.y0shift),v=lu(l[1],r.y1shift),y=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=lu(l,r.y0shift),v=lu(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 aX(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(vs.segmentRE,function(h){var d=0,m=h.charAt(0),p=vs.paramIsX[m],y=vs.paramIsY[m],_=vs.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(vs.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.*/,""),gk.log("Ignoring extra params in segment "+h)),C&&f++,x&&v++,m+k})}function lu(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 d5=te((Yfe,bk)=>{"use strict";var iX=dr(),hs=Dn(),mk=Qa(),yk=fn(),oX=lf().readPaths,h5=ff(),lX=h5.getPathString,W1=Ed(),sX=Ia().FROM_TL;bk.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=hs.getFromId(r,n.xref),s=hs.getFromId(r,n.yref);let ce=Array.isArray(n.xref),Se=Array.isArray(n.yref);for(var u in W1){var f=typeof W1[u]=="function",v=!ce||W1.simpleXVariables.includes(u),h=!Se||W1.simpleYVariables.includes(u);if(f&&v&&h){var d=W1[u](n,l,s);d!==void 0&&(o[u]=d)}}}i=iX.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=lX(r,n),D=oX(M,r);x=1/0,A=1/0,b=-1/0,k=-1/0;for(var R=0;R=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function fX(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 cX=dr(),vX=cX.strTranslate,_k=ko(),Mk=hv(),hX=Mk.drawMode,Ak=Mk.selectMode,Tk=dt(),xk=Et(),fg=ag(),dX=fg.i000,pX=fg.i090,gX=fg.i180,mX=fg.i270,yX=ju(),kk=yX.clearOutlineControllers,g5=lf(),Z1=g5.pointsOnRectangle,p5=g5.pointsOnEllipse,bX=g5.writePaths,_X=ug().newShapes,xX=ug().createShapeObj,wX=v5(),MX=d5();Sk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(p5(r[0])||Z1(r[0])||n.hasText)&&l({redrawing:!0})}function l(ie){var re={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,re=_X(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,re=wX(t,n),i._fullLayout._reselect=!0),Object.keys(re).length&&Tk.call((ie||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=hX(f),h=Ak(f);(v||h)&&(i._fullLayout._outlining=!0),kk(i),t.attr("d",bX(r));var d,m,p,y,_;if(!a&&(n.isActiveShape||n.isActiveSelection)){_=AX([],r);var C=u.append("g").attr("class","outline-controllers");N(C),ee()}if(v&&n.hasText){var x=u.select(".label-temp"),b=xX(t,n,n.dragmode);MX(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],se=_[p][y][2],ce=r[p],Se=ce.length;if(Z1(ce)){var Fe=ie,He=re;if(n.isActiveSelection){var Xe=wk(ce,y);Xe[1]===ce[y][1]?He=0:Fe=0}for(var Le=0;Le1&&!(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];!Z1(K)&&!p5(K)&&D()}}function N(ie){d=[];for(var re=0;re{"use strict";var kX=kt(),Ek=dt(),y5=dr(),Pc=Dn(),SX=lf().readPaths,CX=cg(),hg=d5(),Pk=ju().clearOutlineControllers,m5=Et(),dg=fn(),LX=_n().arrayEditor,Ck=ko(),Lk=af(),Rc=V1(),zi=ff(),b5=zi.getPathString;Nk.exports={draw:_5,drawOne:Rk,eraseActiveShape:PX,drawLabel:hg};function _5(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;aPc.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 DX(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,Z=kX.select(r.node().parentNode),H=Pc.getFromId(e,t.xref),V=Pc.getRefType(t.xref),U=Pc.getFromId(e,t.yref),ee=Pc.getRefType(t.yref),ie=t.x0shift,re=t.x1shift,K=t.y0shift,se=t.y1shift,ce=function(ar,Be){var or=zi.getDataToPixel(e,H,Be,!1,V);return or(ar)},Se=function(ar,Be){var or=zi.getDataToPixel(e,U,Be,!0,ee);return or(ar)},Fe=zi.getPixelToData(e,H,!1,V),He=zi.getPixelToData(e,U,!0,ee),Xe=fe(),Le={element:Xe.node(),gd:e,prepFn:pe,doneFn:G,clickFn:Q},Qe;Ck.init(Le),Xe.node().onmousemove=Ce;function fe(){return f?me():r}function me(){var ar=10,Be=Math.max(t.line.width,ar),or=a.append("g").attr("data-index",n).attr("drag-helper",!0);or.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Be,"stroke-opacity":"0"});var lr={"fill-opacity":"0"},hr=Math.max(Be/2,ar);return or.append("circle").attr({"data-line-point":"start-point",cx:s?ce(t.xanchor)+t.x0:ce(t.x0,ie),cy:u?Se(t.yanchor)-t.y0:Se(t.y0,K),r:hr}).style(lr).classed("cursor-grab",!0),or.append("circle").attr({"data-line-point":"end-point",cx:s?ce(t.xanchor)+t.x1:ce(t.x1,re),cy:u?Se(t.yanchor)-t.y1:Se(t.y1,se),r:hr}).style(lr).classed("cursor-grab",!0),or}function Ce(ar){if(vg(e)){Qe=null;return}if(f)ar.target.tagName==="path"?Qe="move":Qe=ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Be=Le.element.getBoundingClientRect(),or=Be.right-Be.left,lr=Be.bottom-Be.top,hr=ar.clientX-Be.left,Ke=ar.clientY-Be.top,gr=!v&&or>o&&lr>l&&!ar.shiftKey?Ck.getCursor(hr/or,1-Ke/lr):"move";Lk(r,gr),Qe=gr.split("-")[0]}}function pe(ar){vg(e)||(s&&(_=ce(t.xanchor)),u&&(C=Se(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:ce(t.x0),m=u?t.y0:Se(t.y0),p=s?t.x1:ce(t.x1),y=u?t.y1:Se(t.y1)),dy?(x=m,M="y0",b=y,D="y1"):(x=y,M="y1",b=m,D="y0"),Ce(ar),De(a,t),nr(r,t,e),Le.moveFn=Qe==="move"?$:_e,Le.altKey=ar.altKey)}function G(){vg(e)||(Lk(r),Ie(a),zk(r,e,t),Ek.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vg(e)||Ie(a)}function $(ar,Be){if(t.type==="path"){var or=function(Ke){return Ke},lr=or,hr=or;s?h("xanchor",t.xanchor=Fe(_+ar)):(lr=function(gr){return Fe(ce(gr)+ar)},H&&H.type==="date"&&(lr=zi.encodeDate(lr))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(gr){return He(Se(gr)+Be)},U&&U.type==="date"&&(hr=zi.encodeDate(hr))),h("path",t.path=qk(I,lr,hr))}else s?h("xanchor",t.xanchor=Fe(_+ar)):(h("x0",t.x0=Fe(d+ar)),h("x1",t.x1=Fe(p+ar))),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",b5(e,t)),De(a,t),hg(e,n,t,Z)}function _e(ar,Be){if(v){var or=function(wr){return wr},lr=or,hr=or;s?h("xanchor",t.xanchor=Fe(_+ar)):(lr=function(Hr){return Fe(ce(Hr)+ar)},H&&H.type==="date"&&(lr=zi.encodeDate(lr))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(Hr){return He(Se(Hr)+Be)},U&&U.type==="date"&&(hr=zi.encodeDate(hr))),h("path",t.path=qk(I,lr,hr))}else if(f){if(Qe==="resize-over-start-point"){var Ke=d+ar,gr=u?m-Be:m+Be;h("x0",t.x0=s?Ke:Fe(Ke)),h("y0",t.y0=u?gr:He(gr))}else if(Qe==="resize-over-end-point"){var mr=p+ar,Te=u?y-Be:y+Be;h("x1",t.x1=s?mr:Fe(mr)),h("y1",t.y1=u?Te:He(Te))}}else{var Ue=function(wr){return Qe.indexOf(wr)!==-1},kr=Ue("n"),Ur=Ue("s"),tr=Ue("w"),Ye=Ue("e"),Ze=kr?x+Be:x,pr=Ur?b+Be:b,Tr=tr?A+ar:A,yr=Ye?k+ar:k;u&&(kr&&(Ze=x-Be),Ur&&(pr=b-Be)),(!u&&pr-Ze>l||u&&Ze-pr>l)&&(h(M,t[M]=u?Ze:He(Ze)),h(D,t[D]=u?pr:He(pr))),yr-Tr>o&&(h(R,t[R]=s?Tr:Fe(Tr)),h(N,t[N]=s?yr:Fe(yr)))}r.attr("d",b5(e,t)),De(a,t),hg(e,n,t,Z)}function De(ar,Be){(s||u)&&or();function or(){var lr=Be.type!=="path",hr=ar.selectAll(".visual-cue").data([0]),Ke=1;hr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ke}).classed("visual-cue",!0);var gr=ce(s?Be.xanchor:y5.midRange(lr?[Be.x0,Be.x1]:zi.extractPathCoords(Be.path,Rc.paramIsX))),mr=Se(u?Be.yanchor:y5.midRange(lr?[Be.y0,Be.y1]:zi.extractPathCoords(Be.path,Rc.paramIsY)));if(gr=zi.roundPositionForSharpStrokeRendering(gr,Ke),mr=zi.roundPositionForSharpStrokeRendering(mr,Ke),s&&u){var Te="M"+(gr-1-Ke)+","+(mr-1-Ke)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";hr.attr("d",Te)}else if(s){var Ue="M"+(gr-1-Ke)+","+(mr-9-Ke)+"v18 h2 v-18 Z";hr.attr("d",Ue)}else{var kr="M"+(gr-9-Ke)+","+(mr-1-Ke)+"h18 v2 h-18 Z";hr.attr("d",kr)}}}function Ie(ar){ar.selectAll(".visual-cue").remove()}function nr(ar,Be,or){var lr=Be.xref,hr=Be.yref,Ke=Pc.getFromId(or,lr),gr=Pc.getFromId(or,hr),mr="";lr!=="paper"&&!Ke.autorange&&(mr+=lr),hr!=="paper"&&!gr.autorange&&(mr+=hr),dg.setClipUrl(ar,mr?"clip"+or._fullLayout._uid+mr:null,or)}}function qk(e,r,t){return e.replace(Rc.segmentRE,function(n){var a=0,i=n.charAt(0),o=Rc.paramIsX[i],l=Rc.paramIsY[i],s=Rc.numParams[i],u=n.slice(1).replace(Rc.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function EX(e,r){if(pg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Dk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Dk,_5(e)}}}function Dk(e){if(pg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Pk(e),delete e._fullLayout._activeShapeIndex,_5(e))}}function PX(e){if(pg(e)){Pk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Lo=dt(),Fk=va(),Ik=ca(),Bt=tg(),RX=gg().eraseActiveShape,mg=dr(),qt=mg._,Ot=Vk.exports={};Ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?qt(e,"Download plot as a PNG"):qt(e,"Download plot")},icon:Bt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};mg.notifier(qt(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Lo.call("downloadImage",e,t).then(function(n){mg.notifier(qt(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){mg.notifier(qt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ot.sendDataToCloud={name:"sendDataToCloud",title:function(e){return qt(e,"Edit in Chart Studio")},icon:Bt.disk,click:function(e){Fk.sendDataToCloud(e)}};Ot.editInChartStudio={name:"editInChartStudio",title:function(e){return qt(e,"Edit in Chart Studio")},icon:Bt.pencil,click:function(e){Fk.sendDataToCloud(e)}};Ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return qt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bt.zoombox,click:ni};Ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return qt(e,"Pan")},attr:"dragmode",val:"pan",icon:Bt.pan,click:ni};Ot.select2d={name:"select2d",_cat:"select",title:function(e){return qt(e,"Box Select")},attr:"dragmode",val:"select",icon:Bt.selectbox,click:ni};Ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return qt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bt.lasso,click:ni};Ot.drawclosedpath={name:"drawclosedpath",title:function(e){return qt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bt.drawclosedpath,click:ni};Ot.drawopenpath={name:"drawopenpath",title:function(e){return qt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bt.drawopenpath,click:ni};Ot.drawline={name:"drawline",title:function(e){return qt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bt.drawline,click:ni};Ot.drawrect={name:"drawrect",title:function(e){return qt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bt.drawrect,click:ni};Ot.drawcircle={name:"drawcircle",title:function(e){return qt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bt.drawcircle,click:ni};Ot.eraseshape={name:"eraseshape",title:function(e){return qt(e,"Erase active shape")},icon:Bt.eraseshape,click:RX};Ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return qt(e,"Zoom in")},attr:"zoom",val:"in",icon:Bt.zoom_plus,click:ni};Ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return qt(e,"Zoom out")},attr:"zoom",val:"out",icon:Bt.zoom_minus,click:ni};Ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return qt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bt.autoscale,click:ni};Ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return qt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bt.home,click:ni};Ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return qt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bt.tooltip_basic,gravity:"ne",click:ni};Ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return qt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Bt.tooltip_compare,gravity:"ne",click:ni};function ni(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Ik.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 Wk=M5(),FX=Object.keys(Wk),Zk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Xk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Zk),mv=[],IX=function(e){if(Xk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();mv.indexOf(r)===-1&&mv.push(r),mv.indexOf(t)===-1&&mv.push(t)}};FX.forEach(function(e){IX(Wk[e])});mv.sort();jk.exports={DRAW_MODES:Zk,backButtons:Xk,foreButtons:mv}});var T5=te((jfe,Jk)=>{"use strict";var Xfe=A5();Jk.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 Kk=te((Jfe,$k)=>{"use strict";var HX=dr(),X1=Et(),BX=_n(),OX=T5();$k.exports=function(r,t){var n=r.modebar||{},a=BX.newContainer(t,"modebar");function i(l,s){return HX.coerce(n,a,OX,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 tS=te(($fe,rS)=>{"use strict";var k5=kt(),UX=Ht(),bg=dr(),Qk=tg(),YX=vd().version,GX=new DOMParser;function eS(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ds=eS.prototype;ds.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(),bg.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ds.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)})};ds.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ds.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&&k5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Qk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ds.createIcon=function(e){var r=UX(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=GX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ds.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=k5.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:bg.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};ds.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var ZX=ca(),nS=ei(),S5=dt(),XX=$u().isUnifiedHover,jX=tS(),_g=M5(),JX=A5().DRAW_MODES,$X=dr().extendDeep;aS.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=nj(i):!n.displayModeBar&&n.watermark?o=[]:o=KX(r),a?a.update(r,o):t._modeBar=jX(r,o)};function KX(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 se=K.name,ce=K._cat||K.name;if(se===re||ce===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"),(rj(t)||A)&&(N=[]),u&&!b&&(R=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?Z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?Z=["zoom2d","pan2d"]:p||y||v?Z=["pan2d"]:_&&(Z=["zoom2d"]),ej(t)&&Z.push("select2d","lasso2d");var H=[],V=function(re){H.indexOf(re)===-1&&N.indexOf(re)!==-1&&H.push(re)};if(Array.isArray(l)){for(var U=[],ee=0;ee{"use strict";oS.exports={moduleType:"component",name:"modebar",layoutAttributes:T5(),supplyLayoutDefaults:Kk(),manage:iS()}});var L5=te((ece,lS)=>{"use strict";var aj=Ia().FROM_BL;lS.exports=function(r,t,n){n===void 0&&(n=aj[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 zc=dr(),q5=tf(),Ml=ca().id2name,ij=bl(),sS=L5(),oj=Cp(),lj=Rn().ALMOST_EQUAL,sj=Ia().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 fj(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;olj*m&&!C)){for(i=0;iZ&&seN&&(N=se);var Se=(N-R)/(2*I);v/=Se,R=s.l2r(R),N=s.l2r(N),s.range=s._input.range=k{"use strict";var wg=kt(),ai=dt(),ro=va(),qo=dr(),P5=Qa(),R5=rg(),$1=Et(),yv=fn(),vS=q1(),mS=C5(),K1=Dn(),su=Ia(),yS=J1(),cj=yS.enforce,vj=yS.clean,hS=tf().doAutoRange,bS="start",hj="middle",_S="end",dj=ya().zindexSeparator;xa.layoutStyles=function(e){return qo.syncOrAsync([ro.doAutoMargin,gj],e)};function pj(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function gj(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(yv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),mS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,G,Q){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(G){if(Q==="top")return G._offset-n-$}else return t.t+t.h*(1-(pe.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*(pe.position||0)+$%1;return G._offset-n-$}for(i=0;i0){_j(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:gS(r.yanchor)}).call(P5.positionText,o,i);var f=(r.text.match(P5.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=wg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+vS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:gS(r.yanchor)}).call(P5.positionText,o,p)}}}};function mj(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=yj(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function _j(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"&&mj(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 xj(e,r){var t=e.title,n=e._size,a=0;switch(r===bS?a=t.pad.l:r===_S&&(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 wj(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 gS(e){return e==="top"?su.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":su.MID_SHIFT+"em"}function Mj(e){var r=e.title,t=hj;return qo.isRightAnchor(r)?t=_S:qo.isLeftAnchor(r)&&(t=bS),t}function Aj(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}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var Tj=lf().readPaths,kj=cg(),xS=ju().clearOutlineControllers,z5=Et(),wS=fn(),Sj=_n().arrayEditor,MS=ff(),Cj=MS.getPathString;TS.exports={draw:Ag,drawOne:AS,activateLastSelection:Dj};function Ag(e){var r=e._fullLayout;xS(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(z5.stroke,v).call(z5.fill,f).call(wS.dashLine,y?"solid":d,y?4+h:h);if(Lj(_,e,n),m){var C=Sj(e.layout,"selections",n);_.style({cursor:"move"});var x={element:_.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},b=Tj(l,e);kj(b,_,x)}else _.style("pointer-events",y?"all":"none");p[y]=_}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return qj(e,A)})}}function Lj(e,r,t){var n=t.xref+t.yref;wS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function qj(e,r){if(Tg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){N5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=N5,Ag(e)}}}function Dj(e){if(Tg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=N5,Ag(e)}}function N5(e){if(Tg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(xS(e),delete e._fullLayout._activeSelectionIndex,Ag(e))}}});var SS=te((ace,kS)=>{function Ej(){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}kS.exports=Ej});var LS=te((ice,CS)=>{function Pj(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}CS.exports=Pj});var DS=te((oce,qS)=>{var Rj={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}};qS.exports=Rj});var PS=te((lce,ES)=>{var Q1=DS();function zj(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 _(U,ee){var ie=U.seg.start,re=U.seg.end,K=ee.seg.start,se=ee.seg.end;return r.pointsCollinear(ie,K,se)?r.pointsCollinear(re,K,se)||r.pointAboveOrOnLine(re,K,se)?1:-1:r.pointAboveOrOnLine(ie,K,se)?1:-1}function C(U){return y.findTransition(function(ee){var ie=_(U,ee.ev);return ie>0})}function x(U,ee){var ie=U.seg,re=ee.seg,K=ie.start,se=ie.end,ce=re.start,Se=re.end;t&&t.checkIntersection(ie,re);var Fe=r.linesIntersect(K,se,ce,Se);if(Fe===!1){if(!r.pointsCollinear(K,se,ce)||r.pointsSame(K,Se)||r.pointsSame(se,ce))return!1;var He=r.pointsSame(K,ce),Xe=r.pointsSame(se,Se);if(He&&Xe)return ee;var Le=!He&&r.pointBetween(K,ce,Se),Qe=!Xe&&r.pointBetween(se,ce,Se);if(He)return Qe?h(ee,se):h(U,Se),ee;Le&&(Xe||(Qe?h(ee,se):h(U,Se)),h(ee,K))}else Fe.alongA===0&&(Fe.alongB===-1?h(U,ce):Fe.alongB===0?h(U,Fe.pt):Fe.alongB===1&&h(U,Se)),Fe.alongB===0&&(Fe.alongA===-1?h(ee,K):Fe.alongA===0?h(ee,Fe.pt):Fe.alongA===1&&h(ee,se));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let U=function(){if(M){var ee=x(A,M);if(ee)return ee}return D?x(A,D):!1};var V=U;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=U();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 Z=A.status;if(Z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(Z.prev)&&y.exists(Z.next)&&x(Z.prev.ev,Z.next.ev),t&&t.statusRemove(Z.ev.seg),Z.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}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 Nj(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(V,U,ee){return f.index=V,f.matches_head=U,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 Fj={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)}};NS.exports=Fj});var HS=te((fce,IS)=>{var Ij={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 Hj=SS(),Bj=LS(),BS=PS(),Oj=zS(),rh=FS(),OS=HS(),Do=!1,th=Bj(),Ni;Ni={buildLog:function(e){return e===!0?Do=Hj():e===!1&&(Do=!1),Do===!1?!1:Do.list},epsilon:function(e){return th.epsilon(e)},segments:function(e){var r=BS(!0,th,Do);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=BS(!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:Oj(e.segments,th,Do),inverted:e.inverted}},polygonFromGeoJSON:function(e){return OS.toPolygon(Ni,e)},polygonToGeoJSON:function(e){return OS.fromPolygon(Ni,th,e)},union:function(e,r){return nh(e,r,Ni.selectUnion)},intersect:function(e,r){return nh(e,r,Ni.selectIntersect)},difference:function(e,r){return nh(e,r,Ni.selectDifference)},differenceRev:function(e,r){return nh(e,r,Ni.selectDifferenceRev)},xor:function(e,r){return nh(e,r,Ni.selectXor)}};function nh(e,r,t){var n=Ni.segments(e),a=Ni.segments(r),i=Ni.combine(n,a),o=t(i);return Ni.polygon(o)}typeof window=="object"&&(window.PolyBool=Ni);US.exports=Ni});var VS=te((vce,GS)=>{GS.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 Cg=te((hce,WS)=>{"use strict";var I5=Ld().dot,kg=Rn().BADNUM,Sg=WS.exports={};Sg.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||_===kg||_o||p&&u(m))}function v(m,p){var y=m[0],_=m[1];if(y===kg||ya||_===kg||_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(I5(v,u))>a)return!0;return!1};Sg.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 XS=te((dce,ZS)=>{"use strict";ZS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var gC=te((pce,pC)=>{"use strict";var jS=YS(),Uj=VS(),oh=dt(),Yj=fn().dashStyle,ah=Et(),Gj=cs(),Vj=$u().makeEventData,ch=hv(),Wj=ch.freeMode,Zj=ch.rectMode,lh=ch.drawMode,U5=ch.openMode,Y5=ch.selectMode,JS=ff(),$S=V1(),tC=cg(),nC=ju().clearOutline,aC=lf(),H5=aC.handleEllipse,Xj=aC.readPaths,jj=ug().newShapes,Jj=v5(),$j=F5().activateLastSelection,qg=dr(),Kj=qg.sorterAsc,iC=Cg(),ih=Yd(),Eo=ca().getFromId,Qj=rg(),eJ=Mg().redrawReglTraces,Dg=XS(),ps=Dg.MINSELECT,rJ=iC.filter,G5=iC.tester,V5=ig(),KS=V5.p2r,tJ=V5.axValue,nJ=V5.getTransform;function W5(e){return e.subplot!==void 0}function aJ(e,r,t,n,a){var i=!W5(n),o=Wj(a),l=Zj(a),s=U5(a),u=lh(a),f=Y5(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=nJ(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=qg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,R=p._invScaleY,N=A,I=k,Z="M"+A+","+k,H=n.xaxes[0],V=n.yaxes[0],U=H._length,ee=V._length,ie=e.altKey&&!(lh(a)&&s),re,K,se,ce,Se,Fe,He;lC(e,m,n),o&&(re=rJ([[A,k]],Dg.BENDPX));var Xe=_.selectAll("path.select-outline-"+x.id).data([1]),Le=u?p.newshape:p.newselection;u&&(n.hasText=Le.label.text||Le.label.texttemplate);var Qe=u&&!s?Le.fillcolor:"rgba(0,0,0,0)",fe=Le.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?Le.opacity/2:1,"stroke-dasharray":Yj(Le.line.dash,Le.line.width),"stroke-width":Le.line.width+"px","shape-rendering":"crispEdges"}).call(ah.stroke,fe).call(ah.fill,Qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",Z+"Z");var me=_.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 Ce=_.select(".label-temp");Ce.empty()&&(Ce=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+Dg.SELECTID,G=[],Q=Eg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var _e=H._id,De=V._id;vC(m,_e,De,Q);for(var Ie=(m.layout||{}).selections||[],nr=[],ar=!1,Be=0;Be=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;ih.done(pe).then(function(){if(ih.clear(pe),_e===2){for(Xe.remove(),Se=0;Se-1&&oC(De,m,n.xaxes,n.yaxes,n.subplot,n,Xe),Ie==="event"&&fh(m,void 0);Gj.click(m,De,x.id)}).catch(qg.error)}},n.doneFn=function(){me.remove(),ih.done(pe).then(function(){ih.clear(pe),!y&&ce&&n.selectionDefs&&(ce.subtract=ie,n.selectionDefs.push(ce),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,se)),(y||u)&&sh(n,y),n.doneFnCompleted&&n.doneFnCompleted(G),f&&fh(m,He)}).catch(qg.error)}}function oC(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(uJ(l)){lC(e,r,i),h=Eg(r,t,n,a);var k=fJ(l,h),M=k.pointNumbers.length>0;if(M?cJ(h,k):vJ(h)&&(C=eC(k))){for(o&&o.remove(),A=0;A=0}function sJ(e){return e._fullLayout._activeSelectionIndex>=0}function sh(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;lJ(a)&&a._fullLayout._deactivateShape(a),sJ(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=lh(t),s=Y5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=jj(u,e)),f&&oh.call("_guiRelayout",a,{shapes:f});var v;s&&!W5(e)&&(v=Jj(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,oh.call("_guiRelayout",a,{selections:v}).then(function(){r&&$j(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function QS(e){return e._id}function Eg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(QS),o=t.map(QS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function cJ(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 _e=rC(e,!0);if(_e.length){var De=_e[0].xref,Ie=_e[0].yref;if(De&&Ie){var nr=hC(_e),ar=dC([Eo(e,De,"x"),Eo(e,Ie,"y")]);ar(G,nr)}}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,pJ(l,s,f)||vC(e,l,s,n),$&&(G.points.length?fh(e,G):j5(e)),h._deselect=!1}return{eventData:G,selectionTesters:t}}function dJ(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 vh=te((mce,yC)=>{"use strict";yC.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 bv=te((bce,xC)=>{"use strict";var bC=J5(),_C=Ka(),Pg=ya(),_J=_n().templatedArray,yce=vh();xC.exports=_J("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:_C({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:bC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:bC.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",Pg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Pg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Pg.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",Pg.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:_C({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Rg=te((_ce,wC)=>{"use strict";wC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var $5=te((xce,MC)=>{"use strict";MC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nc=te((wce,DC)=>{"use strict";var AC=L2().axisHoverFormat,{hovertemplateAttrs:xJ,texttemplateAttrs:wJ,templatefallbackAttrs:TC}=lc(),kC=J0(),MJ=Ka(),SC=es().dash,AJ=es().pattern,TJ=fn(),kJ=Rg(),hh=ua().extendFlat,SJ=$5();function CC(e){return{valType:"any",dflt:0,editType:"calc"}}function LC(e){return{valType:"any",editType:"calc"}}function qC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}DC.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:CC("x"),yperiod:CC("y"),xperiod0:LC("x0"),yperiod0:LC("y0"),xperiodalignment:qC("x"),yperiodalignment:qC("y"),xhoverformat:AC("x"),yhoverformat:AC("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:wJ(),texttemplatefallback:TC({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:xJ({},{keys:kJ.eventDataKeys}),hovertemplatefallback:TC(),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({},SC,{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:SJ(!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:AJ,marker:hh({symbol:{valType:"enumerated",values:TJ.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({},SC,{arrayOk:!0}),editType:"calc"},kC("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"},kC("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:MJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var K5=te((Ace,RC)=>{"use strict";var EC=bv(),PC=Nc().line,CJ=es().dash,zg=ua().extendFlat,LJ=xo().overrideAll,qJ=_n().templatedArray,Mce=vh();RC.exports=LJ(qJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:zg({},EC.xref,{}),yref:zg({},EC.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:PC.color,width:zg({},PC.width,{min:1,dflt:1}),dash:zg({},CJ,{dflt:"dot"})}}),"arraydraw","from-root")});var IC=te((Tce,FC)=>{"use strict";var zC=dr(),Ng=Dn(),DJ=_l(),EJ=K5(),NC=ff();FC.exports=function(r,t){DJ(r,t,{name:"selections",handleItemDefaults:PJ});for(var n=t.selections,a=0;a{"use strict";HC.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((Sce,YC)=>{"use strict";var RJ=dt(),OC=dr(),UC=ca();YC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=RJ.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 GC=F5(),ph=gC();VC.exports={moduleType:"component",name:"selections",layoutAttributes:K5(),supplyLayoutDefaults:IC(),supplyDrawNewSelectionDefaults:BC(),includeBasePlot:dh()("selections"),draw:GC.draw,drawOne:GC.drawOne,reselect:ph.reselect,prepSelect:ph.prepSelect,clearOutline:ph.clearOutline,clearSelectionsCache:ph.clearSelectionsCache,selectOnClick:ph.selectOnClick}});var vL=te((Lce,cL)=>{"use strict";var nb=kt(),Po=dr(),WC=Po.numberFormat,zJ=Ql(),NJ=N3(),Fg=dt(),rL=Po.strTranslate,FJ=Qa(),ZC=Et(),vf=fn(),IJ=cs(),XC=Dn(),HJ=af(),BJ=ko(),tL=hv(),Ig=tL.selectingOrDrawing,OJ=tL.freeMode,UJ=Ia().FROM_TL,YJ=rg(),GJ=Mg().redrawReglTraces,VJ=va(),eb=ca().getFromId,WJ=uu().prepSelect,ZJ=uu().clearOutline,XJ=uu().selectOnClick,Q5=L5(),ab=ya(),jC=ab.MINDRAG,di=ab.MINZOOM,JC=!0;function jJ(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,Z,H,V,U,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){pr._fullLayout._deactivateShape(pr);return}var Tr=pr._fullLayout.clickmode;if(tb(pr),Ye===2&&!f&&mr(),u)Tr.indexOf("select")>-1&&XJ(Ze,pr,p,y,r.id,ce),Tr.indexOf("event")>-1&&IJ.click(pr,Ze,r.id);else if(Ye===1&&f){var yr=o?h:v,wr=o==="s"||l==="w"?0:1,Hr=yr._name+".range["+wr+"]",Sr=JJ(yr,wr),Dr="left",ur="middle";if(yr.fixedrange)return;o?(ur=o==="n"?"top":"bottom",yr.side==="right"&&(Dr="right")):l==="e"&&(Dr="right"),pr._context.showAxisRangeEntryBoxes&&nb.select(se).call(FJ.makeEditable,{gd:pr,immediate:!0,background:pr._fullLayout.paper_bgcolor,text:String(Sr),fill:yr.tickfont?yr.tickfont.color:"#444",horizontalAlign:Dr,verticalAlign:ur}).on("edit",function(xe){var Ae=yr.d2r(xe);Ae!==void 0&&Fg.call("_guiRelayout",pr,Hr,Ae)})}}BJ.init(ce);var He,Xe,Le,Qe,fe,me,Ce,pe,G,Q;function $(Ye,Ze,pr){var Tr=se.getBoundingClientRect();He=Ze-Tr.left,Xe=pr-Tr.top,e._fullLayout._calcInverseTransform(e);var yr=Po.apply3DTransform(e._fullLayout._invTransform)(He,Xe);He=yr[0],Xe=yr[1],Le={l:He,r:He,w:0,t:Xe,b:Xe,h:0},Qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:zJ(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+x+"V"+b+"H0V0",me=!1,Ce="xy",Q=!1,pe=iL(s,Qe,_,C,fe),G=oL(s,_,C)}function _e(Ye,Ze){if(e._transitioningWithDuration)return!1;var pr=Math.max(0,Math.min(x,ee*Ye+He)),Tr=Math.max(0,Math.min(b,ie*Ze+Xe)),yr=Math.abs(pr-He),wr=Math.abs(Tr-Xe);Le.l=Math.min(He,pr),Le.r=Math.max(He,pr),Le.t=Math.min(Xe,Tr),Le.b=Math.max(Xe,Tr);function Hr(){Ce="",Le.r=Le.l,Le.t=Le.b,G.attr("d","M0,0Z")}if(A.isSubplotConstrained)yr>di||wr>di?(Ce="xy",yr/x>wr/b?(wr=yr*b/x,Xe>Tr?Le.t=Xe-wr:Le.b=Xe+wr):(yr=wr*x/b,He>pr?Le.l=He-yr:Le.r=He+yr),G.attr("d",Hg(Le))):Hr();else if(k.isSubplotConstrained)if(yr>di||wr>di){Ce="xy";var Sr=Math.min(Le.l/x,(b-Le.b)/b),Dr=Math.max(Le.r/x,(b-Le.t)/b);Le.l=Sr*x,Le.r=Dr*x,Le.b=(1-Sr)*b,Le.t=(1-Dr)*b,G.attr("d",Hg(Le))}else Hr();else!D||wr0){var xe;if(k.isSubplotConstrained||!M&&D.length===1){for(xe=0;xe1&&(Hr.maxallowed!==void 0&&N===(Hr.range[0]1&&(Sr.maxallowed!==void 0&&I===(Sr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function KJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function iL(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",rL(t,n)).attr("d",a+"Z")}function oL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:ZC.background,stroke:ZC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",rL(r,t)).attr("d","M0,0Z")}function lL(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"),sL(e,r,a,i)}function sL(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 tb(e){nb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function uL(e){JC&&e.data&&e._context.showTips&&(Po.notifier(Po._(e,"Double-click to zoom back out"),"long"),JC=!1)}function QJ(e,r){return"M"+(e.l-.5)+","+(r-di-.5)+"h-3v"+(2*di+1)+"h3ZM"+(e.r+.5)+","+(r-di-.5)+"h3v"+(2*di+1)+"h-3Z"}function e$(e,r){return"M"+(r-di-.5)+","+(e.t-.5)+"v-3h"+(2*di+1)+"v3ZM"+(r-di-.5)+","+(e.b+.5)+"v3h"+(2*di+1)+"v-3Z"}function Hg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,di)/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 QC(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 r$=kt(),Bg=cs(),t$=ko(),n$=af(),Al=vL().makeDragBox,wa=ya().DRAGGERSIZE;Og.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){r$.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=Al(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]&&Bg.hover(r,h,i)},Bg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,t$.unhover(r,h))},r._context.showAxisDragHandles&&(Al(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),Al(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),Al(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),Al(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),Al(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),Al(r,o,l._offset,f,l._length*.1,wa,"","w"),Al(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),Al(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),Al(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),Al(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Bg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Bg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Og.updateFx(r)}};Og.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";n$(r._draggers,t)}});var pL=te((Dce,dL)=>{"use strict";var hL=dt();dL.exports=function(r){for(var t=hL.layoutArrayContainers,n=hL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var a$=Js(),ob=Cd(),gh=Bu(),i$=e2().sorterAsc,lb=dt();mh.containerArrayMatch=pL();var o$=mh.isAddVal=function(r){return r==="add"||a$(r)},gL=mh.isRemoveVal=function(r){return r===null||r==="remove"};mh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=lb.getComponentMethod(o,"supplyLayoutDefaults"),s=lb.getComponentMethod(o,"draw"),u=lb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===ob||s===ob,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(gL(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(i$),p=t.get(),y=p||[],_=i(h,o).get(),C=[],x=-1,b=y.length,A,k,M,D,R,N,I,Z;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),gL(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!==ob){var H;if(x===-1)H=m;else{for(b=Math.max(y.length,b),H=[],A=0;A=x));A++)H.push(M);for(A=x;A{"use strict";var xL=Ht(),wL=dt(),ii=dr(),yh=va(),ML=ca(),AL=Et(),bh=ML.cleanId,l$=ML.getFromTrace,sb=wL.traceIs,s$=["x","y","z"];Ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ii.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"),AL.clean(e),e.template&&e.template.layout&&Ro.cleanLayout(e.template.layout),e};function _v(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=_L(r);t;){if(t in e)return!0;t=_L(t)}return!1};Ro.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>ii.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;nii.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)?ub(a,i):!1))return!1}return!0}return!1};Ro.collectionsAreEqual=ub});var pb=te(Ft=>{"use strict";var Vg=kt(),c$=Ht(),v$=h2(),Nr=dr(),xn=Nr.nestedProperty,vb=x1(),pi=i9(),zo=dt(),Kg=W0(),ft=va(),oi=Dn(),h$=z3(),d$=bl(),fb=fn(),p$=Et(),g$=ib().initInteractions,m$=gc(),y$=uu().clearOutline,qL=oc().dfltConfig,Yg=mL(),ra=TL(),nn=Mg(),hf=xo(),b$=ya().AX_NAME_PATTERN,cb=0,kL=5;function _$(e,r,t,n){var a;if(e=Nr.getGraphDiv(e),vb.init(e),Nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=vb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Nr.isPlotDiv(e)&&Nr.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)}EL(e,n),t||(t={}),Vg.select(e).classed("js-plotly-plot",!0),fb.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)&&(Y$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),fb.initGradients(e),fb.initPatterns(e),s&&oi.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 PL(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]),Zg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Zg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function T$(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 Z=D.parts[I],H=D.parts[I-1]+"."+Z,V=D.parts.slice(0,I).join("."),U=xn(e.layout,V).get(),ee=xn(n,V).get(),ie=D.get();if(R!==void 0){_[M]=R,C[M]=Z==="reverse"?R:fu(ie);var re=Kg.getLayoutValObject(n,D.parts);if(re&&re.impliedEdits&&R!==null)for(var K in re.impliedEdits)x(Nr.relativeAttr(M,K),re.impliedEdits[K]);if(["width","height"].indexOf(M)!==-1)if(R){x("autosize",null);var se=M==="height"?"width":"height";x(se,n[se])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",R?null:n.width),x("height",R?null:n.height);else if(H.match(UL))k(H),xn(n,V+"._inputRange").set(null);else if(H.match(YL)){k(H),xn(n,V+"._inputRange").set(null);var ce=xn(n,V).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else H.match(L$)&&xn(n,V+"._inputDomain").set(null);if(Z==="type"){A=U;var Se=ee.type==="linear"&&R==="log",Fe=ee.type==="log"&&R==="linear";if(Se||Fe){if(!A||!A.range)x(V+".autorange",!0);else if(ee.autorange)Se&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var He=A.range[0],Xe=A.range[1];Se?(He<=0&&Xe<=0&&x(V+".autorange",!0),He<=0?He=Xe/1e6:Xe<=0&&(Xe=He/1e6),x(V+".range[0]",Math.log(He)/Math.LN10),x(V+".range[1]",Math.log(Xe)/Math.LN10)):(x(V+".range[0]",Math.pow(10,He)),x(V+".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(V+".autorange",!0),x(V+".range",null);xn(n,V+"._inputRange").set(null)}else if(Z.match(b$)){var Le=xn(n,M).get(),Qe=(R||{}).type;(!Qe||Qe==="-")&&(Qe="linear"),zo.getComponentMethod("annotations","convertCoords")(e,Le,Qe,x),zo.getComponentMethod("images","convertCoords")(e,Le,Qe,x)}var fe=Yg.containerArrayMatch(M);if(fe){f=fe.array,v=fe.index;var me=fe.property,Ce=re||{editType:"calc"};v!==""&&me===""&&(Yg.isAddVal(R)?C[M]=null:Yg.isRemoveVal(R)?C[M]=(xn(t,f).get()||[])[v]:Nr.warn("unrecognized full object value",r)),hf.update(y,Ce),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[me]=R,delete r[M]}else Z==="reverse"?(U.range?U.range.reverse():(x(V+".autorange",!0),U.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=Yg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);G||(y.plot=!0)}for(var Q in b){A=oi.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var _e in $)b[_e]||(oi.getFromId(e,_e)._constraintShrinkable=!0)}}(VL(e)||r.height||r.width)&&(y.plot=!0);var De=n.shapes;for(v=0;v1;)if(n.pop(),t=xn(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function E$(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=Ft.newPlot(e,r,t,n).then(()=>{for(let[V,U]of H)U.forEach(ee=>e.on(V,ee));return Ft.react(e,r,t,n)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),R$(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=F$(e,s,h,d,m),y=p.newDataRevision,_=N$(e,l,v,d,m,y);if(VL(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 N$(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=Kg.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 Z=n._frameQueue.pop();Z.onInterrupt&&Z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(Z){if(Z.length!==0){for(var H=0;Hn._timeToNext&&m()};Z()}var y=0;function _(Z){return Array.isArray(a)?y>=a.length?Z.transitionOpts=a[y]:Z.transitionOpts=a[0]:Z.transitionOpts=a,y++,Z}var C,x,b=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Nr.isPlainObject(r);if(M)b.push({type:"object",data:_(Nr.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 H$(e,r,t){if(e=Nr.getGraphDiv(e),r==null)return Promise.resolve();if(!Nr.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(Nr.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&&cbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Nr.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 pi&&pi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function O$(e){e=Nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),vb.purge(e),r._container&&r._container.remove(),delete e._context,e}function U$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Nr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Nr.inverseTransformMatrix(Nr.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 Y$(e){var r=Vg.select(e),t=e._fullLayout;if(t._calcInverseTransform=U$,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={};Vg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Nr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(m$.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=I$;Ft.addFrames=H$;Ft.deleteFrames=B$;Ft.addTraces=IL;Ft.deleteTraces=HL;Ft.extendTraces=NL;Ft.moveTraces=hb;Ft.prependTraces=FL;Ft.newPlot=A$;Ft._doPlot=_$;Ft.purge=O$;Ft.react=z$;Ft.redraw=M$;Ft.relayout=_h;Ft.restyle=Xg;Ft.setPlotConfig=x$;Ft.update=Jg;Ft._guiRelayout=db(_h);Ft._guiRestyle=db(Xg);Ft._guiUpdate=db(Jg);Ft._storeDirectGUIEdit=C$});var Fc=te(gs=>{"use strict";var G$=dt();gs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};gs.getRedrawFunc=function(e){return function(){G$.getComponentMethod("colorbar","draw")(e)}};gs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};gs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var WL=window.URL||window.webkitURL;gs.createObjectURL=function(e){return WL.createObjectURL(e)};gs.revokeObjectURL=function(e){return WL.revokeObjectURL(e)};gs.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=V$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};gs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function V$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var mb=kt(),Nce=dr(),W$=fn(),Z$=Et(),Fce=gc(),gb=/"/g,wh="TOBESTRIPPED",X$=new RegExp('("'+wh+")|("+wh+'")',"g");function j$(e){var r=mb.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 J$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ZL.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(W$.setRect,0,0,l,s).call(Z$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var $$=dr(),K$=Jd().EventEmitter,Mh=Fc();function Q$(e){var r=e.emitter||new K$,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"||$$.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}XL.exports=Q$});var bb=te((Bce,$L)=>{"use strict";var jL=Ht(),JL=pb(),eK=va(),ms=dr(),Ah=Fc(),rK=em(),tK=rm(),nK=vd().version,yb={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 aK(e,r){r=r||{};var t,n,a,i;ms.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=ms.getGraphDiv(e),t=ms.extendDeep([],e.data),n=ms.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||ms.validate(r[k],yb[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 "+ms.join2(yb.format.values,", "," or ")+".");var l={};function s(k,M){return ms.coerce(r,l,yb,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=ms.extendFlat({},n);f?y.width=f:r.width===null&&jL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&jL(i.height)&&(y.height=i.height);var _=ms.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=rK(p,u,h),R=p._fullLayout.width,N=p._fullLayout.height;function I(){JL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var Z=eK.graphJson(p,!1,"keepdata","object",!0,!0);return Z.version=nK,Z=JSON.stringify(Z),I(),k(m?Z:Ah.encodeJSON(Z))}if(I(),u==="svg")return k(m?D:Ah.encodeSVG(D));var H=document.createElement("canvas");H.id=ms.randstr(),tK({format:u,width:R,height:N,scale:h,canvas:H,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){JL.newPlot(p,t,y,_).then(C).then(x).then(b).then(function(D){k(A(D))}).catch(function(D){M(D)})})}$L.exports=aK});var eq=te((Oce,QL)=>{"use strict";var No=dr(),iK=va(),oK=W0(),lK=oc().dfltConfig,Tl=No.isPlainObject,Hc=Array.isArray,_b=No.isArrayOrTypedArray;QL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=oK.get(),a=[],i={_context:No.extendFlat({},lK)},o,l;Hc(r)?(i.data=No.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),Tl(t)?(i.layout=No.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),iK.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("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(Hc(f[b])){f[b].length>v[b].length&&n.push(Ma("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(Ma("dynamic",a,u.concat(b,x),k,M)):n.push(Ma("value",a,u.concat(b,x),k))}else n.push(Ma("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(Ma("dynamic",a,u.concat(b),k,M)):n.push(Ma("value",a,u.concat(b),k))}else if(h.items&&!m&&Hc(f)){var R=y[Object.keys(y)[0]],N=[],I,Z;for(I=0;I{"use strict";var dK=dr(),nm=Fc();function pK(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=nm.createBlob(e,t),u=nm.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),nm.revokeObjectURL(u),s=null,o(r);if(dK.isSafari()){var f=t==="svg"?",":";base64,";return nm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}rq.exports=pK});var xb=te((Gce,aq)=>{"use strict";var nq=dr(),gK=bb(),mK=tq(),Yce=Fc();function yK(e,r){var t;return nq.isPlainObject(e)||(t=nq.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=gK(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),mK(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}aq.exports=yK});var uq=te(wb=>{"use strict";var Fi=dr(),Ii=Fi.isPlainObject,iq=W0(),oq=va(),bK=_o(),lq=_n(),sq=oc().dfltConfig;wb.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:sq},{data:e.data,layout:e.layout}),oq.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,xK.bind(null,d));var p=Fi.coerce(d,{},bK,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),Th(t,n.layout,_K.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&am(i,n.layout);var h=a.data;if(Ii(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);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&wK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(MK)};function wK(e){for(var r=0;r{"use strict";var ha=pb();qn._doPlot=ha._doPlot;qn.newPlot=ha.newPlot;qn.restyle=ha.restyle;qn.relayout=ha.relayout;qn.redraw=ha.redraw;qn.update=ha.update;qn._guiRestyle=ha._guiRestyle;qn._guiRelayout=ha._guiRelayout;qn._guiUpdate=ha._guiUpdate;qn._storeDirectGUIEdit=ha._storeDirectGUIEdit;qn.react=ha.react;qn.extendTraces=ha.extendTraces;qn.prependTraces=ha.prependTraces;qn.addTraces=ha.addTraces;qn.deleteTraces=ha.deleteTraces;qn.moveTraces=ha.moveTraces;qn.purge=ha.purge;qn.addFrames=ha.addFrames;qn.deleteFrames=ha.deleteFrames;qn.animate=ha.animate;qn.setPlotConfig=ha.setPlotConfig;var AK=h1().getGraphDiv,TK=gg().eraseActiveShape;qn.deleteActiveShape=function(e){return TK(AK(e))};qn.toImage=bb();qn.validate=eq();qn.downloadImage=xb();var fq=uq();qn.makeTemplate=fq.makeTemplate;qn.validateTemplate=fq.validateTemplate});var hq=te((Zce,vq)=>{"use strict";var Mb=dr(),kK=dt();vq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=kK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=Mb.minRowLength(i);o?l=Math.min(u,Mb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=Mb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var mq=te((Xce,gq)=>{"use strict";var dq=dr().dateTick0,SK=Rn(),CK=SK.ONEWEEK;function pq(e,r){return e%CK===0?dq(r,1):dq(r,0)}gq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",pq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",pq(l,t.ycalendar)),a("yperiodalignment"))}}});var _q=te((jce,bq)=>{"use strict";var yq=["orientation","groupnorm","stackgaps"];bq.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 xq=Et(),wq=ts().hasColorscale,Mq=$0(),LK=ei();Aq.exports=function(r,t,n,a,i,o={}){var l=LK.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),wq(r,"marker")&&Mq(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=xq.background:u=xq.defaultLine,i("marker.line.color",u),wq(r,"marker.line")&&Mq(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 Tb=te(($ce,Tq)=>{"use strict";var qK=dr().isArrayOrTypedArray,DK=ts().hasColorscale,EK=$0();Tq.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),DK(r,"line"))EK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(qK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Sq=te((Kce,kq)=>{"use strict";kq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var kb=te((Qce,Cq)=>{"use strict";var PK=dr();Cq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),PK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Sb=te((e0e,qq)=>{"use strict";var om=Et(),Lq=dr().isArrayOrTypedArray;function RK(e){for(var r=om.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Dq=dr(),zK=dt(),NK=Nc(),FK=Rg(),xv=ei(),IK=hq(),HK=mq(),BK=_q(),OK=Ab(),UK=Tb(),Eq=Sq(),YK=kb(),GK=Sb(),VK=dr().coercePattern;Pq.exports=function(r,t,n,a){function i(d,m){return Dq.coerce(r,t,NK,d,m)}var o=IK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){HK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=BK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var WK=J1().getAxisGroup;zq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=WK(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 Iq=te((n0e,Fq)=>{"use strict";var ZK=dr(),XK=Nq(),jK=Nc();Fq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return ZK.coerce(a._input,a,jK,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 Bq=te((a0e,Hq)=>{"use strict";var JK=dr(),$K=rp();Hq.exports=function(e,r){function t(a,i){return JK.coerce(e,r,$K,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Yq=te((i0e,Uq)=>{"use strict";var KK=Ht(),Oq=dr(),QK=Oq.dateTime2ms,lm=Oq.incrementMonth,eQ=Rn(),rQ=eQ.ONEAVGMONTH;Uq.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(KK(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=QK(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*rQ)),k=lm(d,l*b,u);k>x;)k=lm(k,-l,u);for(;k<=x;)k=lm(k,l,u);A=lm(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 qb=te((o0e,Vq)=>{"use strict";var Cb=ts().hasColorscale,Lb=vp(),Gq=ei();Vq.exports=function(r,t){Gq.hasLines(t)&&Cb(t,"line")&&Lb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Gq.hasMarkers(t)&&(Cb(t,"marker")&&Lb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Cb(t,"marker.line")&&Lb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var kh=te((l0e,Wq)=>{"use strict";var Bn=dr();Wq.exports=function(r,t){for(var n=0;n{"use strict";var Zq=dr();Xq.exports=function(r,t){Zq.isArrayOrTypedArray(t.selectedpoints)&&Zq.tagSelected(r,t)}});var um=te((u0e,rD)=>{"use strict";var jq=Ht(),Eb=dr(),Sh=Dn(),Jq=Yq(),Db=Rn().BADNUM,Pb=ei(),tQ=qb(),nQ=kh(),aQ=sm();function iQ(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=Jq(r,n,"x",i),s=Jq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Rb(r,t,n,a),p=!1,y,_,C,x,b,A;Qq(t,r);var k="x",M="y",D;if(m)Eb.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=Kq(r,v);$q(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";tD.exports=fm;var oQ=dr().distinctVals;function fm(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";aD.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var fD=te((v0e,uD)=>{"use strict";var Io=Ht(),{isArrayOrTypedArray:cu}=dr(),{BADNUM:wv}=Rn(),lQ=dt(),Ch=Dn(),{getAxisGroup:sQ}=J1(),cm=nD(),{TEXTPAD:uQ}=iD(),{LINE_SPACING:fQ}=Ia(),{BR_TAG_ALL:cQ}=Qa();function vQ(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*fQ*t+uQ;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 wQ(e,r,t,n){for(var a=Mv(n),i=0;i{"use strict";var cD=um(),vD=fD().setGroupPositions;function AQ(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 kQ=fn(),yD=Rn(),Lh=yD.BADNUM,bD=yD.LOG_CLIP,pD=bD+.5,gD=bD-.5,vm=dr(),SQ=vm.segmentsIntersect,mD=vm.constrain,Ob=Rg();_D.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=Ob.minTolerance,x=r.length,b=new Array(x),A=0,k,M,D,R,N,I,Z,H,V,U,ee,ie,re,K,se,ce;function Se(ur){var xe=r[ur];if(!xe)return!1;var Ae=t.linearized?a.l2p(xe.x):a.c2p(xe.x),$e=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&&$e===Lh&&(Ae*=Math.abs(a._m*u*(a._m>0?pD:gD)/(i._m*s*(i._m>0?pD:gD)))),Ae*=1e3}if($e===Lh){if(l&&($e=i.c2p(xe.y,!0)),$e===Lh)return!1;$e*=1e3}return[Ae,$e]}function Fe(ur,xe,Ae,$e){var rr=Ae-ur,Lr=$e-xe,Yr=.5-ur,Fr=.5-xe,st=rr*rr+Lr*Lr,xt=rr*Yr+Lr*Fr;if(xt>0&&xt1||Math.abs(Yr.y-Ae[0][1])>1)&&(Yr=[Yr.x,Yr.y],$e&&Qe(Yr,ur)Ce||ur[1]G)return[mD(ur[0],me,Ce),mD(ur[1],pe,G)]}function lr(ur,xe){if(ur[0]===xe[0]&&(ur[0]===me||ur[0]===Ce)||ur[1]===xe[1]&&(ur[1]===pe||ur[1]===G))return!0}function hr(ur,xe){var Ae=[],$e=or(ur),rr=or(xe);return $e&&rr&&lr($e,rr)||($e&&Ae.push($e),rr&&Ae.push(rr)),Ae}function Ke(ur,xe,Ae){return function($e,rr){var Lr=or($e),Yr=or(rr),Fr=[];if(Lr&&Yr&&lr(Lr,Yr))return Fr;Lr&&Fr.push(Lr),Yr&&Fr.push(Yr);var st=2*vm.constrain(($e[ur]+rr[ur])/2,xe,Ae)-((Lr||$e)[ur]+(Yr||rr)[ur]);if(st){var xt;Lr&&Yr?xt=st>0==Lr[ur]>Yr[ur]?Lr:Yr:xt=Lr||Yr,xt[ur]+=st}return Fr}}var gr;m==="linear"||m==="spline"?gr=Be:m==="hv"||m==="vh"?gr=hr:m==="hvh"?gr=Ke(0,me,Ce):m==="vhv"&&(gr=Ke(1,pe,G));function mr(ur,xe){var Ae=xe[0]-ur[0],$e=(xe[1]-ur[1])/Ae,rr=(ur[1]*xe[0]-xe[1]*ur[0])/Ae;return rr>0?[$e>0?me:Ce,G]:[$e>0?Ce:me,pe]}function Te(ur){var xe=ur[0],Ae=ur[1],$e=xe===b[A-1][0],rr=Ae===b[A-1][1];if(!($e&&rr))if(A>1){var Lr=xe===b[A-2][0],Yr=Ae===b[A-2][1];$e&&(xe===me||xe===Ce)&&Lr?Yr?A--:b[A-1]=ur:rr&&(Ae===pe||Ae===G)&&Yr?Lr?A--:b[A-1]=ur:b[A++]=ur}else b[A++]=ur}function Ue(ur){b[A-1][0]!==ur[0]&&b[A-1][1]!==ur[1]&&Te([De,Ie]),Te(ur),nr=null,De=Ie=0}var kr=vm.isArrayOrTypedArray(v);function Ur(ur){if(ur&&f&&(ur.i=k,ur.d=r,ur.trace=n,ur.marker=kr?v[ur.i]:v,ur.backoff=f),He=ur[0]/s,Xe=ur[1]/u,$=ur[0]Ce?Ce:0,_e=ur[1]G?G:0,$||_e){if(!A)b[A++]=[$||ur[0],_e||ur[1]];else if(nr){var xe=gr(nr,ur);xe.length>1&&(Ue(xe[0]),b[A++]=xe[1])}else ar=gr(b[A-1],ur)[0],b[A++]=ar;var Ae=b[A-1];$&&_e&&(Ae[0]!==$||Ae[1]!==_e)?(nr&&(De!==$&&Ie!==_e?Te(De&&Ie?mr(nr,ur):[De||$,Ie||_e]):De&&Ie&&Te([De,Ie])),Te([$,_e])):De-$&&Ie-_e&&Te([$||De,_e||Ie]),nr=ur,De=$,Ie=_e}else nr&&Ue(gr(nr,ur)[0]),b[A++]=ur}for(k=0;kLe(I,tr))break;D=I,re=V[0]*H[0]+V[1]*H[1],re>ee?(ee=re,R=I,Z=!1):re=r.length||!I)break;Ur(I),M=I}}nr&&Te([De||nr[0],Ie||nr[1]]),_.push(b.slice(0,A))}var Ye=m.slice(m.length-1);if(f&&Ye!=="h"&&Ye!=="v"){for(var Ze=!1,pr=-1,Tr=[],yr=0;yr<_.length;yr++)for(var wr=0;wr<_[yr].length-1;wr++){var Hr=_[yr][wr],Sr=_[yr][wr+1],Dr=kQ.applyBackoff(Sr,Hr);(Dr[0]!==Sr[0]||Dr[1]!==Sr[1])&&(Ze=!0),Tr[pr+1]||(pr++,Tr[pr]=[Hr,[Dr[0],Dr[1]]])}return Ze?Tr:_}return _}});var AD=te((p0e,MD)=>{"use strict";var wD={tonextx:1,tonexty:1,tonext:1};MD.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 kl=kt(),CQ=dt(),qh=dr(),Av=qh.ensureSingle,kD=qh.identity,Vn=fn(),Tv=ei(),LQ=xD(),qQ=AD(),hm=Cg().tester;SD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=qQ(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(),DQ(r,l,t),f){o&&(s=o());var h=kl.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){TD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){TD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function DQ(e,r,t){r.each(function(n){var a=Av(kl.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,kD);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Av(kl.select(this),"path","js-fill")})})}function TD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;EQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Ke){return u?Ke.transition():Ke}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=kl.select(i),y=Av(p,"g","errorbars"),_=Av(p,"g","lines"),C=Av(p,"g","points"),x=Av(p,"g","text");if(CQ.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,Z=null,H=null;I&&(R=I._prevRevpath||"",A=I._nextFill,N=I._ownPolygons,Z=I._fillsegments,H=I._fillElement);var V,U,ee="",ie="",re,K,se,ce,Se,Fe,He=[];d._polygons=[];var Xe=[],Le=[],Qe=qh.noop;if(b=d._ownFill,Tv.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(Ke){var gr=Ke[Ke.length-1];return Ke.length>1&&Ke[0][0]===gr[0]&&Ke[0][1]===gr[1]?Vn.smoothclosed(Ke.slice(1),m.smoothing):Vn.smoothopen(Ke,m.smoothing)}:re=K=function(Ke){return"M"+Ke.join("L")},se=function(Ke){return K(Ke.reverse())},Le=LQ(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(Le.length);var fe=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;Tv.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";LD.exports={container:"marker",min:"cmin",max:"cmax"}});var DD=te((y0e,qD)=>{"use strict";var dm=Dn();qD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=dm.getFromTrace(i,t,"x"),l=dm.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=dm.tickText(o,o.c2l(s),!0).text,a.yLabel=dm.tickText(l,l.c2l(u),!0).text,a}});var Dh=te((b0e,ED)=>{"use strict";var Yb=kt(),kv=fn(),PQ=dt();function RQ(e){var r=Yb.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=Yb.select(this),a=t.trace||t[0].trace;Gb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Yb.select(this),a=t.trace||t[0].trace;Vb(n,a,e)}),r.selectAll("g.trace path.js-line").call(kv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(kv.fillGroupStyle,e,!1),PQ.getComponentMethod("errorbars","style")(r)}function Gb(e,r,t){kv.pointStyle(e.selectAll("path.point"),r,t)}function Vb(e,r,t){kv.textPointStyle(e.selectAll("text"),r,t)}function zQ(e,r,t){var n=r[0].trace;n.selectedpoints?(kv.selectedPointStyle(t.selectAll("path.point"),n),kv.selectedTextStyle(t.selectAll("text"),n)):(Gb(t,n,e),Vb(t,n,e))}ED.exports={style:RQ,stylePoints:Gb,styleText:Vb,styleOnSelect:zQ}});var Wb=te((_0e,PD)=>{"use strict";var Sv=Et(),NQ=ei();PD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Sv.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&&Sv.opacity(i)?i:o&&Sv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?Sv.opacity(a)<.3?Sv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Sv.opacity(n)&&NQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var ND=te((x0e,zD)=>{"use strict";var pm=dr(),RD=cs(),FQ=dt(),IQ=Wb(),Zb=Et(),HQ=pm.fillText;zD.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 se=Math.max(3,ie.mrc||0),ce=1-1/se,Se=Math.abs(l.c2p(ie.x)-u);return Se=Math.min(re,K)&&f<=Math.max(re,K)?0:1/0}var se=Math.max(3,ie.mrc||0),ce=1-1/se,Se=Math.abs(s.c2p(ie.y)-f);return SeHe!=G>=He&&(me=Qe[Le-1][0],Ce=Qe[Le][0],G-pe&&(fe=me+(Ce-me)*(He-pe)/(G-pe),se=Math.min(se,fe),ce=Math.max(ce,fe)));return se=Math.max(se,0),ce=Math.min(ce,l._length),{x0:se,x1:ce,y0:He,y1:He}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=Z(o._fillElement)&&!Z(o._fillExclusionElement);if(V){var U=H(o._polygons);U===null&&(U={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var ee=Zb.defaultLine;return Zb.opacity(o.fillcolor)?ee=o.fillcolor:Zb.opacity((o.line||{}).color)&&(ee=o.line.color),pm.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:ee,hovertemplate:!1}),delete r.index,o.text&&!pm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var HD=te((w0e,ID)=>{"use strict";var FD=ei();ID.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!FD.hasMarkers(l)&&!FD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";BD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var VD=te((A0e,GD)=>{"use strict";var Eh=dt().traceIs,Xb=d3();GD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(BQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function BQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=OQ(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,YD(i,n)){var u=UD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(YD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function UD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function YD(e,r){var t=UD(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 ZD=te((T0e,WD)=>{"use strict";var UQ=ji().isTypedArraySpec;function YQ(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||UQ(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=YQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var JD=te((k0e,jD)=>{"use strict";var XD=Ql().mix,GQ=dl(),VQ=dr();jD.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,R){return VQ.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=XD(i,a.bgColor,a.blend||GQ.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=XD(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 Jb=te((S0e,tE)=>{"use strict";var $D=Ht(),WQ=dt(),Ph=dr(),ZQ=_n(),XQ=_l(),jb=bl(),KD=I2(),QD=B2(),jQ=Y2(),JQ=G2(),$Q=ZD(),KQ=JD(),QQ=z3(),eE=Cp(),gm=ya().WEEKDAY_PATTERN,eee=ya().HOUR_PATTERN;tE.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=WQ.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"),eE(t,i),QQ(r,t,n,a),$Q(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(JQ(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}}),KD(r,t,n,v);var C=a.hasMinor;if(C&&(ZQ.newContainer(t,"minor"),KD(r,t,n,v,{isMinor:!0})),jQ(r,t,n,v,a),QD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,QD(r,t,n,a),a.isMinor=x}KQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:jb}),C&&!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(XQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ree}),!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=rE(i[l]),s){o=gm;break}}var u=n("pattern",o);if(u===gm)for(l=0;l<2;l++)s=rE(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case gm:if(!$D(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 eee:if(!$D(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 nee=Ht(),mm=dr();nE.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||(nee(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=mm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=mm.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=mm.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),mm.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var vE=te((L0e,cE)=>{"use strict";var Bc=dr(),aE=Et(),aee=$u().isUnifiedHover,iee=s5(),iE=_n(),oee=z0(),oE=bl(),lee=VD(),lE=Jb(),see=J1(),sE=$b(),Qb=ca(),ys=Qb.id2name,uE=Qb.name2id,uee=ya().AX_ID_PATTERN,fE=dt(),ym=fE.traceIs,Kb=fE.getComponentMethod;function bm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}cE.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 fee=kt(),hE=dt(),_m=dr(),to=fn(),xm=Dn();dE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){xm.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=_m.simpleMap(y.xr0,x.r2l),I=_m.simpleMap(y.xr1,x.r2l),Z=N[1]-N[0],H=I[1]-I[0];R[0]=(N[0]*(1-_)+_*I[0]-N[0])/(N[1]-N[0])*A,R[2]=A*(1-_+_*H/Z),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 V=_m.simpleMap(y.yr0,b.r2l),U=_m.simpleMap(y.yr1,b.r2l),ee=V[1]-V[0],ie=U[1]-U[0];R[1]=(V[1]*(1-_)+_*U[1]-V[1])/(V[0]-V[1])*k,R[3]=k*(1-_+_*ie/ee),b.range[0]=x.l2r(V[0]*(1-_)+_*U[0]),b.range[1]=b.l2r(V[1]*(1-_)+_*U[1])}else R[1]=0,R[3]=k;xm.drawOne(r,x,{skipTitle:!0}),xm.drawOne(r,b,{skipTitle:!0}),xm.redrawComponents(r,[x._id,b._id]);var re=M?A/R[2]:1,K=D?k/R[3]:1,se=M?R[0]:0,ce=D?R[1]:0,Se=M?R[0]/R[2]*A:0,Fe=D?R[1]/R[3]*k:0,He=x._offset-Se,Xe=b._offset-Fe;C.clipRect.call(to.setTranslate,se,ce).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 e4=te(Oa=>{"use strict";var Mm=kt(),gE=dt(),Oc=dr(),cee=va(),vee=fn(),mE=A1().getModuleCalcData,df=ca(),Sl=ya(),hee=gc(),jt=Oc.ensureSingle;function wm(e,r,t){return Oc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Uc=Sl.zindexSeparator;Oa.name="cartesian";Oa.attr=["xaxis","yaxis"];Oa.idRoot=["x","y"];Oa.idRegex=Sl.idRegex;Oa.attrRegex=Sl.attrRegex;Oa.attributes=OD();Oa.layoutAttributes=bl();Oa.supplyLayoutDefaults=vE();Oa.transitionAxes=pE();Oa.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(Uc)!==-1)continue;d+=Uc+(u+1),h=Oc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Uc+b),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=jt(n,"path","xlines-above"),r.ylines=jt(n,"path","ylines-above"),r.xaxislayer=jt(n,"g","xaxislayer-above"),r.yaxislayer=jt(n,"g","yaxislayer-above");else{if(!o){var h=jt(n,"g","layer-subplot");r.shapelayer=jt(h,"g","shapelayer"),r.imagelayer=jt(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=jt(n,"g","minor-gridlayer"),r.gridlayer=jt(n,"g","gridlayer"),r.zerolinelayer=jt(n,"g","zerolinelayer"));var d=jt(n,"g","layer-between");r.shapelayerBetween=jt(d,"g","shapelayer"),r.imagelayerBetween=jt(d,"g","imagelayer"),jt(n,"path","xlines-below"),jt(n,"path","ylines-below"),r.overlinesBelow=jt(n,"g","overlines-below"),jt(n,"g","xaxislayer-below"),jt(n,"g","yaxislayer-below"),r.overaxesBelow=jt(n,"g","overaxes-below")}r.overplot=jt(n,"g","overplot"),r.plot=jt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=jt(n,"g","zerolinelayer-above"),o||(r.xlines=jt(n,"path","xlines-above"),r.ylines=jt(n,"path","ylines-above"),r.overlinesAbove=jt(n,"g","overlines-above"),jt(n,"g","xaxislayer-above"),jt(n,"g","yaxislayer-above"),r.overaxesAbove=jt(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,jt(v.overlinesBelow,"path",p),jt(v.overlinesBelow,"path",y),jt(v.overaxesBelow,"g",p),jt(v.overaxesBelow,"g",y),r.plot=jt(v.overplot,"g",a),jt(v.overlinesAbove,"path",p),jt(v.overlinesAbove,"path",y),jt(v.overaxesAbove,"g",p),jt(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||(wm(r.minorGridlayer,"g",r.xaxis._id),wm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort),wm(r.gridlayer,"g",r.xaxis._id),wm(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 _E(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Mm.select(this);f.remove(),xE(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 Am=ei();wE.exports={hasLines:Am.hasLines,hasMarkers:Am.hasMarkers,hasText:Am.hasText,isBubble:Am.isBubble,attributes:Nc(),layoutAttributes:rp(),supplyDefaults:Rq(),crossTraceDefaults:Iq(),supplyLayoutDefaults:Bq(),calc:um().calc,crossTraceCalc:dD(),arraysToCalcdata:kh(),plot:CD(),colorbar:Ub(),formatLabels:DD(),style:Dh().style,styleOnSelect:Dh().styleOnSelect,hoverPoints:ND(),selectPoints:HD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e4(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var kE=te((P0e,TE)=>{"use strict";var pee=kt(),gee=Et(),AE=J5(),r4=dr(),mee=r4.strScale,yee=r4.strRotate,bee=r4.strTranslate;TE.exports=function(r,t,n){var a=r.node(),i=AE[n.arrowhead||0],o=AE[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)){V();return}if(v){if(v*v>_*_+C*C){V();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){V();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 SE=kt(),t4=dt(),_ee=va(),gf=dr(),n4=gf.strTranslate,zh=Dn(),Yc=Et(),vu=fn(),CE=cs(),a4=Qa(),i4=af(),Rh=ko(),xee=_n().arrayEditor,wee=kE();DE.exports={draw:Mee,drawOne:LE,drawRaw:qE};function Mee(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?rr="right":rr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[rr]}for(var pe=!1,G=["x","y"],Q=0;Q1)&&(De===_e?(tr=Ie.r2fraction(r["a"+$]),(tr<0||tr>1)&&(pe=!0)):pe=!0),gr=Ie._offset+Ie.r2p(r[$]),Ue=.5}else{var Ye=Ur==="domain";$==="x"?(Te=r[$],gr=Ye?Ie._offset+Ie._length*Te:gr=l.l+l.w*Te):(Te=1-r[$],gr=Ye?Ie._offset+Ie._length*Te:gr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Ke.head=gr;var Ze=r["a"+$];if(kr=ar*Ce(.5,r.xanchor)-Be*Ce(.5,r.yanchor),De===_e){var pr=zh.getRefType(De);pr==="domain"?($==="y"&&(Ze=1-Ze),Ke.tail=Ie._offset+Ie._length*Ze):pr==="paper"?$==="y"?(Ze=1-Ze,Ke.tail=l.t+l.h*Ze):Ke.tail=l.l+l.w*Ze:Ke.tail=Ie._offset+Ie.r2p(Ze),mr=kr}else Ke.tail=gr+Ze,mr=kr+Ze;Ke.text=Ke.tail+kr;var Tr=o[$==="x"?"width":"height"];if(_e==="paper"&&(Ke.head=gf.constrain(Ke.head,1,Tr-1)),De==="pixel"){var yr=-Math.max(Ke.tail-3,Ke.text),wr=Math.min(Ke.tail+3,Ke.text)-Tr;yr>0?(Ke.tail+=yr,Ke.text+=yr):wr>0&&(Ke.tail-=wr,Ke.text-=wr)}Ke.tail+=hr,Ke.head+=hr}else kr=or*Ce(Ue,lr),mr=kr,Ke.text=gr+kr;Ke.text+=hr,kr+=hr,mr+=hr,r["_"+$+"padplus"]=or/2+mr,r["_"+$+"padminus"]=or/2-mr,r["_"+$+"size"]=or,r["_"+$+"shift"]=kr}if(pe){M.remove();return}var Hr=0,Sr=0;if(r.align!=="left"&&(Hr=(Le-He)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Sr=(Qe-Xe)*(r.valign==="middle"?.5:1)),Se)ce.select("svg").attr({x:N+Hr-1,y:N+Sr}).call(vu.setClipUrl,Z?p:null,e);else{var Dr=N+Sr-Fe.top,ur=N+Hr-Fe.left;ee.call(a4.positionText,ur,Dr).call(vu.setClipUrl,Z?p:null,e)}H.select("rect").call(vu.setRect,N,N,Le,Qe),I.call(vu.setRect,D/2,D/2,fe-D,me-D),M.call(vu.setTranslate,Math.round(y.x.text-fe/2),Math.round(y.y.text-me/2)),x.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var xe=function($e,rr){C.selectAll(".annotation-arrow-g").remove();var Lr=y.x.head,Yr=y.y.head,Fr=y.x.tail+$e,st=y.y.tail+rr,xt=y.x.text+$e,Rt=y.y.text+rr,Kt=gf.rotationXYMatrix(_,xt,Rt),cn=gf.apply2DTransform(Kt),pn=gf.apply2DTransform2(Kt),Mn=+I.attr("width"),Xt=+I.attr("height"),Qt=xt-.5*Mn,en=Qt+Mn,an=Rt-.5*Xt,jr=an+Xt,Ut=[[Qt,an,Qt,jr],[Qt,jr,en,jr],[en,jr,en,an],[en,an,Qt,an]].map(pn);if(!Ut.reduce(function(dn,Un){return dn^!!gf.segmentsIntersect(Lr,Yr,Lr+1e6,Yr+1e6,Un[0],Un[1],Un[2],Un[3])},!1)){Ut.forEach(function(dn){var Un=gf.segmentsIntersect(Fr,st,Lr,Yr,dn[0],dn[1],dn[2],dn[3]);Un&&(Fr=Un.x,st=Un.y)});var Nt=r.arrowwidth,rn=r.arrowcolor,Tn=r.arrowside,vn=C.append("g").style({opacity:Yc.opacity(rn)}).classed("annotation-arrow-g",!0),Yt=vn.append("path").attr("d","M"+Fr+","+st+"L"+Lr+","+Yr).style("stroke-width",Nt+"px").call(Yc.stroke,Yc.rgb(rn));if(wee(Yt,Tn,r),s.annotationPosition&&Yt.node().parentNode&&!n){var On=Lr,Va=Yr;if(r.standoff){var kn=Math.sqrt(Math.pow(Lr-Fr,2)+Math.pow(Yr-st,2));On+=r.standoff*(Fr-Lr)/kn,Va+=r.standoff*(st-Yr)/kn}var Wa=vn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Fr-On)+","+(st-Va),transform:n4(On,Va)}).style("stroke-width",Nt+6+"px").call(Yc.stroke,"rgba(0,0,0,0)").call(Yc.fill,"rgba(0,0,0,0)"),oa,hn;Rh.init({element:Wa.node(),gd:e,prepFn:function(){var dn=vu.getTranslate(M);oa=dn.x,hn=dn.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(dn,Un){var mi=cn(oa,hn),oo=mi[0]+dn,yi=mi[1]+Un;M.call(vu.setTranslate,oo,yi),d("x",pf(a,dn,"x",l,r)),d("y",pf(i,Un,"y",l,r)),r.axref===r.xref&&d("ax",pf(a,dn,"ax",l,r)),r.ayref===r.yref&&d("ay",pf(i,Un,"ay",l,r)),vn.attr("transform",n4(dn,Un)),x.attr({transform:"rotate("+_+","+oo+","+yi+")"})},doneFn:function(){t4.call("_guiRelayout",e,m());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.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($e,rr){var Lr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",pf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",pf(i,rr,"ay",l.w,r)):d("ay",r.ay+rr),xe($e,rr);else{if(n)return;var Yr,Fr;if(a)Yr=pf(a,$e,"x",l,r);else{var st=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-st/2;Yr=Rh.align(xt+$e/l.w,st,0,1,r.xanchor)}if(i)Fr=pf(i,rr,"y",l,r);else{var Rt=r._ysize/l.h,Kt=r.y-(r._yshift+r.yshift)/l.h-Rt/2;Fr=Rh.align(Kt-rr/l.h,Rt,0,1,r.yanchor)}d("x",Yr),d("y",Fr),(!a||!i)&&(Lr=Rh.getCursor(a?.5:Yr,i?.5:Fr,r.xanchor,r.yanchor))}x.attr({transform:n4($e,rr)+Ae}),i4(M,Lr)},clickFn:function($e,rr){r.captureevents&&e.emit("plotly_clickannotation",k(rr))},doneFn:function(){i4(M),t4.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?ee.call(a4.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),t4.call("_guiRelayout",e,m())}):ee.call(ie)}});var FE=te((z0e,NE)=>{"use strict";var EE=dr(),Aee=dt(),PE=_n().arrayEditor;NE.exports={hasClickToShow:Tee,onClick:kee};function Tee(e,r){var t=zE(e,r);return t.on.length>0||t.explicitOff.length>0}function kee(e,r){var t=zE(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 o4=dr(),Cv=Et();IE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=Cv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),o4.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:Cv.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||(Cv.opacity(i)?Cv.rgb(i):Cv.defaultLine)),_=a("hoverlabel.bordercolor",p.bordercolor||Cv.contrast(y)),C=o4.extendFlat({},p.font);C.color||(C.color=_),o4.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var BE=te((F0e,HE)=>{"use strict";var s4=dr(),Gc=Dn(),See=_l(),Cee=l4(),Lee=bv();HE.exports=function(r,t){See(r,t,{name:"annotations",handleItemDefaults:qee})};function qee(e,r,t){function n(x,b){return s4.coerce(e,r,Lee,x,b)}var a=n("visible"),i=n("clicktoshow");if(a||i){Cee(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=Gc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Gc.getFromId(u,h);d._annIndices.push(r._index)}if(Gc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Gc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Gc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(s4.noneOrAll(e,r,["x","y"]),o&&s4.noneOrAll(e,r,["ax","ay"]),i){var _=n("xclick"),C=n("yclick");r._xclick=_===void 0?r.x:Gc.cleanPosition(_,u,r.xref),r._yclick=C===void 0?r.y:Gc.cleanPosition(C,u,r.yref)}}}});var YE=te((I0e,UE)=>{"use strict";var u4=dr(),Vc=Dn(),Dee=Tm().draw;UE.exports=function(r){var t=r._fullLayout,n=u4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return u4.syncOrAsync([Dee,Eee],r)};function Eee(e){var r=e._fullLayout;u4.filterVisible(r.annotations).forEach(function(t){var n=Vc.getFromId(e,t.xref),a=Vc.getFromId(e,t.yref),i=Vc.getRefType(t.xref),o=Vc.getRefType(t.yref);t._extremes={},i==="range"&&OE(t,n),o==="range"&&OE(t,a)})}function OE(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=Vc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=Vc.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,_=Vc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var VE=te((H0e,GE)=>{"use strict";var Pee=Ht(),Ree=xd();GE.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=Ree(m,t.range):p=Math.pow(10,m),Pee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var f4=Tm(),WE=FE();ZE.exports={moduleType:"component",name:"annotations",layoutAttributes:bv(),supplyLayoutDefaults:BE(),includeBasePlot:dh()("annotations"),calcAutorange:YE(),draw:f4.draw,drawOne:f4.drawOne,drawRaw:f4.drawRaw,hasClickToShow:WE.hasClickToShow,onClick:WE.onClick,convertCoords:VE()}});var km=te((O0e,jE)=>{"use strict";var wn=bv(),zee=xo().overrideAll,Nee=_n().templatedArray;jE.exports=zee(Nee("annotation",{visible:wn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wn.xanchor,xshift:wn.xshift,yanchor:wn.yanchor,yshift:wn.yshift,text:wn.text,textangle:wn.textangle,font:wn.font,width:wn.width,height:wn.height,opacity:wn.opacity,align:wn.align,valign:wn.valign,bgcolor:wn.bgcolor,bordercolor:wn.bordercolor,borderpad:wn.borderpad,borderwidth:wn.borderwidth,showarrow:wn.showarrow,arrowcolor:wn.arrowcolor,arrowhead:wn.arrowhead,startarrowhead:wn.startarrowhead,arrowside:wn.arrowside,arrowsize:wn.arrowsize,startarrowsize:wn.startarrowsize,arrowwidth:wn.arrowwidth,standoff:wn.standoff,startstandoff:wn.startstandoff,hovertext:wn.hovertext,hoverlabel:wn.hoverlabel,captureevents:wn.captureevents}),"calc","from-root")});var $E=te((U0e,JE)=>{"use strict";var c4=dr(),Fee=Dn(),Iee=_l(),Hee=l4(),Bee=km();JE.exports=function(r,t,n){Iee(r,t,{name:"annotations",handleItemDefaults:Oee,fullLayout:n.fullLayout})};function Oee(e,r,t,n){function a(l,s){return c4.coerce(e,r,Bee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Fee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(Hee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),c4.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),c4.noneOrAll(e,r,["ax","ay"])))}});var rP=te((Y0e,eP)=>{"use strict";var KE=dr(),QE=Dn();eP.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function v4(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 Yee(e,r){var t=v4(e.projection,v4(e.view,v4(e.model,[r[0],r[1],r[2],1])));return t}tP.exports=Yee});var iP=te((V0e,aP)=>{"use strict";var Gee=Tm().drawRaw,Vee=nP(),Wee=["x","y","z"];aP.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=Vee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),Gee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var sP=te((W0e,lP)=>{"use strict";var Zee=dt(),oP=dr();lP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:km()}}},layoutAttributes:km(),handleDefaults:$E(),includeBasePlot:Xee,convert:rP(),draw:iP()};function Xee(e,r){var t=Zee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var Z0e=ya(),uP=Ka(),fP=Nc().line,jee=es().dash,Cl=ua().extendFlat,Jee=_n().templatedArray,X0e=vh(),Lv=_o(),cP=bv(),{shapeTexttemplateAttrs:$ee,templatefallbackAttrs:Kee}=lc(),Qee=Ed();vP.exports=Jee("shape",{visible:Cl({},Lv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Cl({},Lv.legend,{editType:"calc+arraydraw"}),legendgroup:Cl({},Lv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Cl({},Lv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:uP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Cl({},Lv.legendrank,{editType:"calc+arraydraw"}),legendwidth:Cl({},Lv.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:Cl({},cP.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:Cl({},cP.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:Cl({},fP.color,{editType:"arraydraw"}),width:Cl({},fP.width,{editType:"calc+arraydraw"}),dash:Cl({},jee,{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:$ee({},{keys:Object.keys(Qee)}),texttemplatefallback:Kee({editType:"arraydraw"}),font:uP({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 dP=te((J0e,hP)=>{"use strict";var qv=dr(),no=Dn(),ere=_l(),rre=h4(),Nh=ff();hP.exports=function(r,t){ere(r,t,{name:"shapes",handleItemDefaults:nre})};function tre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function nre(e,r,t){function n(x,b){return qv.coerce(e,r,rre,x,b)}r._isShape=!0;var a=n("visible");if(!a)return;var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),qv.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",Z=e[I];if(Array.isArray(Z)&&Z.length>0){let H=Nh.countDefiningCoords(s,o,x);N=no.coerceRefArray(e,r,k,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else N=no.coerceRef(e,r,k,x,void 0,"paper");if(Array.isArray(N))N.forEach(function(H){no.getRefType(H)==="range"&&(M=no.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let V=N[H];no.getRefType(V)==="range"?(M=no.getFromId(k,V),D=Nh.shapePositionToRange(M),R=Nh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&n(x+H+"shift")):D=R=qv.identity;let ee=x+H,ie=e[ee];if(e[ee]=D(e[ee],!0),A==="pixel"?n(ee,m[H]):no.coercePosition(r,k,n,V,ee,d[H]),r[ee]=R(r[ee]),e[ee]=ie,H===0&&A==="pixel"){let re=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,V,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=qv.identity,u){let V=x+"0",U=x+"1",ee=e[V],ie=e[U];e[V]=D(e[V],!0),e[U]=D(e[U],!0),A==="pixel"?(n(V,m[0]),n(U,m[1])):(no.coercePosition(r,k,n,N,V,d[0]),no.coercePosition(r,k,n,N,U,d[1])),r[V]=R(r[V]),r[U]=R(r[U]),e[V]=ee,e[U]=ie}if(A==="pixel"){let V=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,N,b,.25),r[b]=R(r[b]),e[b]=V}}}),u&&qv.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",tre(p,C)),n("label.padding"),qv.coerceFont(n,"label.font",t.font)}}});var mP=te(($0e,gP)=>{"use strict";var are=Et(),pP=dr();function ire(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}gP.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"),pP.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",are.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",ire(o,u)),n("newshape.label.padding"),pP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var AP=te((K0e,MP)=>{"use strict";var d4=dr(),Ho=Dn(),bs=V1(),p4=ff();MP.exports=function(r){var t=r._fullLayout,n=d4.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,bP(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ho.getFromId(r,i.xref),l=xP(o,i,bs.paramIsX),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,bP(i))));if(u==="array"){let f=yP(r,i,"y");Object.entries(f).forEach(([v,h])=>{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,_P(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ho.getFromId(r,i.yref),l=xP(o,i,bs.paramIsY),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,_P(i))))}};function yP(e,r,t){let n=r[t+"ref"],a=t==="x"?bs.paramIsX:bs.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(bs.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=p4.decodeDate(f)),u[h._id]=o[v].map(f)}}return u}function bP(e){return wP(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function _P(e){return wP(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function wP(e,r,t,n,a,i){var o=e/2,l=i;if(r==="pixel"){var s=a?p4.extractPathCoords(a,i?bs.paramIsY:bs.paramIsX):[t,n],u=d4.aggNums(Math.max,null,s),f=d4.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 xP(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(bs.segmentRE),m,p,y,_,C;for(e.type==="date"&&(u=p4.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var SP=te((Q0e,kP)=>{"use strict";var TP=gg();kP.exports={moduleType:"component",name:"shapes",layoutAttributes:h4(),supplyLayoutDefaults:dP(),supplyDrawNewShapeDefaults:mP(),includeBasePlot:dh()("shapes"),calcAutorange:AP(),draw:TP.draw,drawOne:TP.drawOne}});var g4=te((rve,LP)=>{"use strict";var CP=ya(),ore=_n().templatedArray,eve=vh();LP.exports=ore("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",CP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",CP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var DP=te((tve,qP)=>{"use strict";var lre=dr(),m4=Dn(),sre=_l(),ure=g4(),fre="images";qP.exports=function(r,t){var n={name:fre,handleItemDefaults:cre};sre(r,t,n)};function cre(e,r,t){function n(h,d){return lre.coerce(e,r,ure,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=m4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=m4.getFromId(o,f);v._imgIndices.push(r._index)}m4.coercePosition(r,o,n,f,u,0)}return r}});var zP=te((nve,RP)=>{"use strict";var EP=kt(),vre=fn(),Dv=Dn(),PP=ca(),hre=gc();RP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var NP=Ht(),dre=xd();FP.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";HP.exports={moduleType:"component",name:"images",layoutAttributes:g4(),supplyLayoutDefaults:DP(),includeBasePlot:dh()("images"),draw:zP(),convertCoords:IP()}});var Sm=te((ove,OP)=>{"use strict";OP.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 y4=te((lve,YP)=>{"use strict";var pre=Ka(),gre=dl(),mre=ua().extendFlat,yre=xo().overrideAll,bre=Pd(),UP=_n().templatedArray,_re=UP("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}});YP.exports=yre(UP("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:_re,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:mre(bre({editType:"arraydraw"}),{}),font:pre({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:gre.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ZP=te((sve,WP)=>{"use strict";var Cm=dr(),GP=_l(),VP=y4(),xre=Sm(),wre=xre.name,Mre=VP.buttons;WP.exports=function(r,t){var n={name:wre,handleItemDefaults:Are};GP(r,t,n)};function Are(e,r,t){function n(o,l){return Cm.coerce(e,r,VP,o,l)}var a=GP(e,r,{name:"buttons",handleItemDefaults:Tre}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Cm.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Cm.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Tre(e,r){function t(a,i){return Cm.coerce(e,r,Mre,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 JP=te((uve,jP)=>{"use strict";jP.exports=zn;var Ll=kt(),XP=Et(),Ev=fn(),Lm=dr();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 Z=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-horizontal",!0).call(XP.fill,zn.barColor),M?(this.hbar=Z.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 H=f>_,V=zn.barWidth+2*zn.barPad,U=zn.barLength+2*zn.barPad,ee=l+s,ie=u;ee+V>i&&(ee=i-V);var re=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(XP.fill,zn.barColor),H?(this.vbar=re.attr({rx:zn.barRadius,ry:zn.barRadius,x:ee,y:ie,width:V,height:U}),this._vbarYMin=ie+U/2,this._vbarTranslateMax=_-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var K=this.id,se=C-.5,ce=H?x+V+.5:x+.5,Se=b-.5,Fe=M?A+R+.5:A+.5,He=a._topdefs.selectAll("#"+K).data(M||H?[0]:[]);if(He.exit().remove(),He.enter().append("clipPath").attr("id",K).append("rect"),M||H?(this._clipRect=He.select("rect").attr({x:Math.floor(se),y:Math.floor(Se),width:Math.ceil(ce)-Math.floor(se),height:Math.ceil(Fe)-Math.floor(Se)}),this.container.call(Ev.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(Ev.setClipUrl,null),delete this._clipRect),M||H){var Xe=Ll.behavior.drag().on("dragstart",function(){Ll.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 Le=Ll.behavior.drag().on("dragstart",function(){Ll.event.sourceEvent.preventDefault(),Ll.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Le),H&&this.vbar.on(".drag",null).call(Le)}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(Ev.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-=Ll.event.dx),this.vbar&&(t-=Ll.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ll.event.deltaY),this.vbar&&(t+=Ll.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=Lm.constrain(Ll.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=Lm.constrain(Ll.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=Lm.constrain(r||0,0,n),t=Lm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Ev.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(Ev.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Ev.setTranslate,r,t+o*this._vbarTranslateMax)}}});var oR=te((fve,iR)=>{"use strict";var Pv=kt(),Fh=va(),Ih=Et(),Rv=fn(),ao=dr(),qm=Qa(),kre=_n().arrayEditor,KP=Ia().LINE_SPACING,ct=Sm(),Sre=JP();iR.exports=function(r){var t=r._fullLayout,n=ao.filterVisible(t[ct.name]);function a(h){Fh.autoMargin(r,nR(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(){Pv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,Cre);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 zre=Sm();lR.exports={moduleType:"component",name:zre.name,layoutAttributes:y4(),supplyLayoutDefaults:ZP(),draw:oR()}});var Bh=te((vve,uR)=>{"use strict";uR.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 w4=te((hve,vR)=>{"use strict";var fR=Ka(),Nre=Pd(),Fre=ua().extendDeepAll,Ire=xo().overrideAll,Hre=d1(),cR=_n().templatedArray,Wc=Bh(),Bre=cR("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}});vR.exports=Ire(cR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Bre,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:Fre(Nre({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:Hre.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:Wc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Wc.railBgColor},bordercolor:{valType:"color",dflt:Wc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Wc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Wc.tickLength},tickcolor:{valType:"color",dflt:Wc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Wc.minorTickLength}}),"arraydraw","from-root")});var gR=te((dve,pR)=>{"use strict";var zv=dr(),hR=_l(),dR=w4(),Ore=Bh(),Ure=Ore.name,Yre=dR.steps;pR.exports=function(r,t){hR(r,t,{name:Ure,handleItemDefaults:Gre})};function Gre(e,r,t){function n(v,h){return zv.coerce(e,r,dR,v,h)}for(var a=hR(e,r,{name:"steps",handleItemDefaults:Vre}),i=0,o=0;o{"use strict";var ql=kt(),Dm=va(),mf=Et(),Dl=fn(),io=dr(),Wre=io.strTranslate,Oh=Qa(),Zre=_n().arrayEditor,Mt=Bh(),T4=Ia(),bR=T4.LINE_SPACING,M4=T4.FROM_TL,A4=T4.FROM_BR;TR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Xre(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),Dm.autoMargin(r,_R(f))}if(i.exit().each(function(){ql.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,jre);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",Wre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function k4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function yR(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 tte(e,r,t){var n=t._dims,a=io.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(MR,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),Dl.setTranslate(a,0,n.currentValueTotalHeight)}function nte(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"),Dl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var CR=te((gve,SR)=>{"use strict";var ate=Bh();SR.exports={moduleType:"component",name:ate.name,layoutAttributes:w4(),supplyLayoutDefaults:gR(),draw:kR()}});var Pm=te((mve,qR)=>{"use strict";var LR=dl();qR.exports={bgcolor:{valType:"color",dflt:LR.background,editType:"plot"},bordercolor:{valType:"color",dflt:LR.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 S4=te((yve,DR)=>{"use strict";DR.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 Rm=te((bve,ER)=>{"use strict";ER.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 zR=te(Nm=>{"use strict";var ite=ca(),ote=Qa(),PR=Rm(),lte=Ia().LINE_SPACING,zm=PR.name;function RR(e){var r=e&&e[zm];return r&&r.visible}Nm.isVisible=RR;Nm.makeData=function(e){for(var r=ite.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Fm=dr(),NR=_n(),FR=ca(),ste=Pm(),ute=S4();IR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Fm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=NR.newContainer(i,"rangeslider");function s(A,k){return Fm.coerce(o,l,ste,A,k)}var u,f;function v(A,k){return Fm.coerce(u,f,ute,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")))===FR.name2id(n)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),p=Fm.simpleMap(m,FR.id2name),y=0;y{"use strict";var fte=ca().list,cte=tf().getAutoRange,vte=Rm();BR.exports=function(r){for(var t=fte(r,"x",!0),n=0;n{"use strict";var Im=kt(),hte=dt(),dte=va(),Wn=dr(),Hm=Wn.strTranslate,YR=fn(),yf=Et(),pte=q1(),gte=e4(),C4=ca(),mte=ko(),yte=af(),Dt=Rm();GR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=re.max)ee=I[ie+1];else if(U=re.pmax)ee=I[ie+1];else if(U0?e.touches[0].clientX:0}function bte(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Dt.slideBoxClassName).node(),i=e.select("rect."+Dt.grabAreaMinClassName).node(),o=e.select("rect."+Dt.grabAreaMaxClassName).node();function l(){var s=Im.event,u=s.target,f=UR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=mte.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(_){var C=UR(_),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 Lte=dr(),qte=Pm(),Dte=S4(),L4=zR();WR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Lte.extendFlat({},qte,{yaxis:Dte})}}},layoutAttributes:Pm(),handleDefaults:HR(),calcAutorange:OR(),draw:VR(),isVisible:L4.isVisible,makeData:L4.makeData,autoMarginOpts:L4.autoMarginOpts}});var Bm=te((Tve,jR)=>{"use strict";var Ete=Ka(),XR=dl(),Pte=_n().templatedArray,Rte=Pte("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"});jR.exports={visible:{valType:"boolean",editType:"plot"},buttons:Rte,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:Ete({editType:"plot"}),bgcolor:{valType:"color",dflt:XR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:XR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var q4=te((kve,JR)=>{"use strict";JR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var QR=te((Sve,KR)=>{"use strict";var Om=dr(),zte=Et(),Nte=_n(),Fte=_l(),$R=Bm(),D4=q4();KR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=Nte.newContainer(t,"rangeselector");function s(d,m){return Om.coerce(o,l,$R,d,m)}var u=Fte(o,l,{name:"buttons",handleItemDefaults:Ite,calendar:i}),f=s("visible",u.length>0);if(f){var v=Hte(t,n,a);s("x",v[0]),s("y",v[1]),Om.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Om.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",zte.contrast(h,D4.lightAmount,D4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ite(e,r,t,n){var a=n.calendar;function i(s,u){return Om.coerce(e,r,$R.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 Hte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var Bte=qy(),Ote=dr().titleCase;ez.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=Ute(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function Ute(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=Bte["utc"+Ote(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 uz=te((Lve,sz)=>{"use strict";var Ym=kt(),Yte=dt(),Gte=va(),tz=Et(),lz=fn(),hu=dr(),nz=hu.strTranslate,Um=Qa(),Vte=ca(),R4=Ia(),az=R4.LINE_SPACING,iz=R4.FROM_TL,oz=R4.FROM_BR,P4=q4(),Wte=rz();sz.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Zte(r),Xte);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Ym.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=Ym.select(this),v=Wte(o,u);u._isActive=jte(o,u,v),f.call(E4,l,u),f.call($te,l,u,r),f.on("click",function(){r._dragged||Yte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(E4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(E4,l,u)})}),Qte(r,s,l,o._name,i)})};function Zte(e){for(var r=Vte.list(e,"x",!0),t=[],n=0;n{"use strict";fz.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Bm()}}},layoutAttributes:Bm(),handleDefaults:QR(),draw:uz()}});var Gm=te(z4=>{"use strict";var vz=ua().extendFlat;z4.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:vz({},t,{}),y:vz({},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};z4.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 ene=dr(),rne=D0().counter,tne=Gm().attributes,hz=ya().idRegex,nne=_n(),N4={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:[rne("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hz.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:tne({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 Vm(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 ane(e,r){var t=e.grid||{},n=Vm(r,t,"x"),a=Vm(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=nne.newContainer(r,"grid");function h(k,M){return ene.coerce(t,v,N4,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:dz("x",h,C,b,m),y:dz("y",h,x,A,d,_)}}function dz(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";yz.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 xz=te((Rve,_z)=>{"use strict";var bz=Ht(),one=dt(),lne=dr(),sne=_n(),une=F4();_z.exports=function(e,r,t,n){var a="error_"+n.axis,i=sne.newContainer(r,a),o=e[a]||{};function l(m,p){return lne.coerce(o,i,une,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||bz(o.thickness)||bz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",one.traceIs(r,"gl3d")?0:4))}}});var I4=te((zve,Mz)=>{"use strict";Mz.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=wz(t,r.value),l=wz(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 wz(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 kz=te((Nve,Tz)=>{"use strict";var H4=Ht(),fne=dt(),B4=Dn(),cne=dr(),vne=I4();Tz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var Sz=kt(),bf=Ht(),hne=fn(),dne=ei();Cz.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=Sz.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),hne.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=Sz.select(this),b=pne(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 pne(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 Ez=te((Ive,Dz)=>{"use strict";var gne=kt(),qz=Et();Dz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=gne.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(qz.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(qz.stroke,i.color)})}});var zz=te((Hve,Rz)=>{"use strict";var Uh=dr(),Pz=xo().overrideAll,Yh=F4(),Zc={error_x:Uh.extendFlat({},Yh),error_y:Uh.extendFlat({},Yh)};delete Zc.error_x.copy_zstyle;delete Zc.error_y.copy_zstyle;delete Zc.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;Rz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Zc,bar:Zc,histogram:Zc,scatter3d:Pz(Gh,"calc","nested"),scattergl:Pz(Zc,"calc","nested")}},supplyDefaults:xz(),calc:kz(),makeComputeError:I4(),plot:Lz(),style:Ez(),hoverInfo:mne};function mne(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 Fz=te((Bve,Nz)=>{"use strict";Nz.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 Gz=te((Ove,Yz)=>{"use strict";var _f=kt(),O4=Ql(),Zm=va(),Iz=dt(),du=Dn(),Wm=ko(),Bo=dr(),Pl=Bo.strTranslate,Uz=ua().extendFlat,U4=af(),El=fn(),Y4=Et(),yne=q1(),bne=Qa(),_ne=ts().flipScale,xne=Jb(),wne=$b(),Mne=bl(),G4=Ia(),Hz=G4.LINE_SPACING,Bz=G4.FROM_TL,Oz=G4.FROM_BR,En=Fz().cn;function Ane(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data(Tne(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=kne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Sne(a,n,e)}),t.exit().each(function(n){Zm.autoMargin(e,n._id)}).remove(),t.order()}function Tne(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Uz(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?_ne(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));Ce*=Q*Bo.roundUp(G/Q,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=Ce}fe.domain=n?[Le+m/b.h,Le+K-m/b.h]:[Le+d/b.w,Le+K-d/b.w],fe.setScale(),e.attr("transform",Pl(Math.round(b.l),Math.round(b.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",Pl(-Math.round(b.l),-Math.round(b.t))),_e=fe.ticklabelposition,De=fe.title.font.size,Ie=e.select("."+En.cbaxis),nr,ar=0,Be=0;function or(mr,Te){var Ue={propContainer:fe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},kr=mr.charAt(0)==="h"?mr.slice(1):"h"+mr;e.selectAll("."+kr+",."+kr+"-math-group").remove(),yne.draw(t,mr,Uz(Ue,Te||{}))}function lr(){if(n&&me||!n&&!me){var mr,Te;D==="top"&&(mr=d+b.l+se*p,Te=m+b.t+ce*(1-Le-K)+3+De*.75),D==="bottom"&&(mr=d+b.l+se*p,Te=m+b.t+ce*(1-Le)-3-De*.25),D==="right"&&(Te=m+b.t+ce*y+3+De*.75,mr=d+b.l+se*Le),or(fe._id+"title",{attributes:{x:mr,y:Te,"text-anchor":n?"start":"middle"}})}}function hr(){if(n&&!me||!n&&me){var mr=fe.position||0,Te=fe._offset+fe._length/2,Ue,kr;if(D==="right")kr=Te,Ue=b.l+se*mr+10+De*(fe.showticklabels?1:.5);else if(Ue=Te,D==="bottom"&&(kr=b.t+ce*mr+10+(_e.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Ur=M.text.split("
").length;kr=b.t+ce*mr+10-ee-Hz*De*Ur}or((n?"h":"v")+fe._id+"title",{avoid:{selection:_f.select(t).selectAll("g."+fe._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 Ke(){if(!n&&!me||n&&me){var mr=e.select("."+En.cbtitle),Te=mr.select("text"),Ue=[-s/2,s/2],kr=mr.select(".h"+fe._id+"title-math-group").node(),Ur=15.6;Te.node()&&(Ur=parseInt(Te.node().style.fontSize,10)*Hz);var tr;if(kr?(tr=El.bBox(kr),Be=tr.width,ar=tr.height,ar>Ur&&(Ue[1]-=(ar-Ur)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(tr=El.bBox(Te.node()),Be=tr.width,ar=tr.height),n){if(ar){if(ar+=5,D==="top")fe.domain[1]-=ar/b.h,Ue[1]*=-1;else{fe.domain[0]+=ar/b.h;var Ye=bne.lineCount(Te);Ue[1]+=(1-Ye)*Ur}mr.attr("transform",Pl(Ue[0],Ue[1])),fe.setScale()}}else Be&&(D==="right"&&(fe.domain[0]+=(Be+De/2)/b.w),mr.attr("transform",Pl(Ue[0],Ue[1])),fe.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?Pl(0,Math.round(b.h*(1-fe.domain[1]))):Pl(Math.round(b.w*fe.domain[0]),0)),Ie.attr("transform",n?Pl(0,Math.round(-b.t)):Pl(Math.round(-b.l),0));var Ze=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(V);Ze.enter().append("rect").classed(En.cbfill,!0).attr("style",""),Ze.exit().remove();var pr=R.map(fe.c2p).map(Math.round).sort(function(Sr,Dr){return Sr-Dr});Ze.each(function(Sr,Dr){var ur=[Dr===0?R[0]:(V[Dr]+V[Dr-1])/2,Dr===V.length-1?R[1]:(V[Dr]+V[Dr+1])/2].map(fe.c2p).map(Math.round);n&&(ur[1]=Bo.constrain(ur[1]+(ur[1]>ur[0])?1:-1,pr[0],pr[1]));var xe=_f.select(this).attr(n?"x":"y",Se).attr(n?"y":"x",_f.min(ur)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(_f.max(ur)-_f.min(ur),2));if(r._fillgradient)El.gradient(xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ae=I(Sr).replace("e-","");xe.attr("fill",O4(Ae).toHexString())}});var Tr=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?U:[]);Tr.enter().append("path").classed(En.cbline,!0),Tr.exit().remove(),Tr.each(function(Sr){var Dr=Se,ur=Math.round(fe.c2p(Sr))+k.width/2%1;_f.select(this).attr("d","M"+(n?Dr+","+ur:ur+","+Dr)+(n?"h":"v")+ee).call(El.lineGroupStyle,k.width,N(Sr),k.dash)}),Ie.selectAll("g."+fe._id+"tick,path").remove();var yr=Se+ee+(s||0)/2-(r.ticks==="outside"?1:0),wr=du.calcTicks(fe),Hr=du.getTickSigns(fe)[2];return du.drawTicks(t,fe,{vals:fe.ticks==="inside"?du.clipEnds(fe,wr):wr,layer:Ie,path:du.makeTickPath(fe,yr,Hr),transFn:du.makeTransTickFn(fe)}),du.drawLabels(t,fe,{vals:wr,layer:Ie,transFn:du.makeTransTickLabelFn(fe),labelFns:du.makeLabelFns(fe,yr)})}function gr(){var mr,Te=ee+s/2;_e.indexOf("inside")===-1&&(mr=El.bBox(Ie.node()),Te+=n?mr.width:mr.height),nr=$.select("text");var Ue=0,kr=n&&D==="top",Ur=!n&&D==="right",tr=0;if(nr.node()&&!nr.classed(En.jsPlaceholder)){var Ye,Ze=$.select(".h"+fe._id+"title-math-group").node();Ze&&(n&&me||!n&&!me)?(mr=El.bBox(Ze),Ue=mr.width,Ye=mr.height):(mr=El.bBox($.node()),Ue=mr.right-b.l-(n?Se:Qe),Ye=mr.bottom-b.t-(n?Qe:Se),!n&&D==="top"&&(Te+=mr.height,tr=mr.height)),Ur&&(nr.attr("transform",Pl(Ue/2+De/2,0)),Ue*=2),Te=Math.max(Te,n?Ue:Ye)}var pr=(n?d:m)*2+Te+u+s/2,Tr=0;!n&&M.text&&h==="bottom"&&y<=0&&(Tr=pr/2,pr+=Tr,tr+=Tr),x._hColorbarMoveTitle=Tr,x._hColorbarMoveCBTitle=tr;var yr=u+s,wr=(n?Se:Qe)-yr/2-(n?d:0),Hr=(n?Qe:Se)-(n?re:m+tr-Tr);e.select("."+En.cbbg).attr("x",wr).attr("y",Hr).attr(n?"width":"height",Math.max(pr-Tr,2)).attr(n?"height":"width",Math.max(re+yr,2)).call(Y4.fill,f).call(Y4.stroke,r.bordercolor).style("stroke-width",u);var Sr=Ur?Math.max(Ue-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?Se:Qe+d)+Sr).attr("y",(n?Qe+m-re:Se)+(kr?ar:0)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(re-(n?2*m+ar:2*d+Sr),2)).call(Y4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Dr=n?Fe*pr:0,ur=n?0:(1-He)*pr-tr;if(Dr=C?b.l-Dr:-Dr,ur=_?b.t-ur:-ur,e.attr("transform",Pl(Dr,ur)),!n&&(u||O4(f).getAlpha()&&!O4.equals(x.paper_bgcolor,f))){var xe=Ie.selectAll("text"),Ae=xe[0].length,$e=e.select("."+En.cbbg).node(),rr=El.bBox($e),Lr=El.getTranslate(e),Yr=2;xe.each(function(Qt,en){var an=0,jr=Ae-1;if(en===an||en===jr){var Ut=El.bBox(this),Nt=El.getTranslate(this),rn;if(en===jr){var Tn=Ut.right+Nt.x,vn=rr.right+Lr.x+Qe-u-Yr+p;rn=vn-Tn,rn>0&&(rn=0)}else if(en===an){var Yt=Ut.left+Nt.x,On=rr.left+Lr.x+Qe+u+Yr;rn=On-Yt,rn<0&&(rn=0)}rn&&(Ae<3?this.setAttribute("transform","translate("+rn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Fr={},st=Bz[v],xt=Oz[v],Rt=Bz[h],Kt=Oz[h],cn=pr-ee;n?(i==="pixels"?(Fr.y=y,Fr.t=re*Rt,Fr.b=re*Kt):(Fr.t=Fr.b=0,Fr.yt=y+a*Rt,Fr.yb=y-a*Kt),l==="pixels"?(Fr.x=p,Fr.l=pr*st,Fr.r=pr*xt):(Fr.l=cn*st,Fr.r=cn*xt,Fr.xl=p-o*st,Fr.xr=p+o*xt)):(i==="pixels"?(Fr.x=p,Fr.l=re*st,Fr.r=re*xt):(Fr.l=Fr.r=0,Fr.xl=p+a*st,Fr.xr=p-a*xt),l==="pixels"?(Fr.y=1-y,Fr.t=pr*Rt,Fr.b=pr*Kt):(Fr.t=cn*Rt,Fr.b=cn*Kt,Fr.yt=y-o*Rt,Fr.yb=y+o*Kt));var pn=r.y<.5?"b":"t",Mn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Xt={r:x.width-wr-Dr,l:wr+Fr.r,b:x.height-Hr-ur,t:Hr+Fr.b};C&&_?Zm.autoMargin(t,r._id,Fr):C?t._fullLayout._reservedMargin[r._id][pn]=Xt[pn]:_||n?t._fullLayout._reservedMargin[r._id][Mn]=Xt[Mn]:t._fullLayout._reservedMargin[r._id][pn]=Xt[pn]}return Bo.syncOrAsync([Zm.previousPromises,lr,Ke,hr,Zm.previousPromises,gr],t)}function Sne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Wm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),U4(e)},moveFn:function(u,f){e.attr("transform",o+Pl(u,f)),l=Wm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Wm.getCursor(l,s,r.xanchor,r.yanchor);U4(e,v)},doneFn:function(){if(U4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Iz.call("_guiRestyle",t,u,r._traceIndex):Iz.call("_guiRelayout",t,u)}}})}function Cne(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";Vz.exports={moduleType:"component",name:"colorbar",attributes:up(),supplyDefaults:V2(),draw:Gz().draw,hasColorbar:R2()}});var Xz=te((Yve,Zz)=>{"use strict";Zz.exports={moduleType:"component",name:"legend",layoutAttributes:O3(),supplyLayoutDefaults:Y3(),draw:n5(),style:Q3()}});var Jz=te((Gve,jz)=>{"use strict";jz.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 Kz=te((Vve,$z)=>{"use strict";$z.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var W4=te((Wve,tN)=>{"use strict";var qne=dt(),rN=dr(),V4=rN.extendFlat,Qz=rN.extendDeep;function eN(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 Dne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}tN.exports=function(r,t){var n,a=r.data,i=r.layout,o=Qz([],a),l=Qz({},i,eN(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 Ene=Jd().EventEmitter,Pne=dt(),Rne=dr(),nN=Fc(),zne=W4(),Nne=em(),Fne=rm();function Ine(e,r){var t=new Ene,n=zne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=nN.getDelay(a._fullLayout);setTimeout(function(){var s=Nne(a),u=document.createElement("canvas");u.id=Rne.randstr(),t=Fne({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=nN.getRedrawFunc(a);return Pne.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}aN.exports=Ine});var sN=te((Xve,lN)=>{"use strict";var oN=Fc(),Hne={getDelay:oN.getDelay,getRedrawFunc:oN.getRedrawFunc,clone:W4(),toSVG:em(),svgToImg:rm(),toImage:iN(),downloadImage:xb()};lN.exports=Hne});var fN=te(pu=>{"use strict";pu.version=vd().version;e6();Yw();var Bne=dt(),Vh=pu.register=Bne.register,X4=cq(),uN=Object.keys(X4);for(Xm=0;Xm{"use strict";cN.exports=fN()});var Wh=te((Kve,mN)=>{"use strict";var{hovertemplateAttrs:One,texttemplateAttrs:Une,templatefallbackAttrs:hN}=lc(),Yne=$5(),_s=Nc(),Gne=_o(),dN=J0(),Vne=es().dash,Xc=ua().extendFlat,Wne=xo().overrideAll,Oo=_s.marker,pN=_s.line,gN=Oo.line,$ve=["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=Wne({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:Xc({},_s.mode,{dflt:"markers"}),text:Xc({},_s.text,{}),texttemplate:Une({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:hN({editType:"plot"}),hovertext:Xc({},_s.hovertext,{}),textfont:_s.textfont,textposition:_s.textposition,line:{color:pN.color,width:pN.width,dash:Vne},connectgaps:_s.connectgaps,marker:Xc({symbol:Oo.symbol,opacity:Oo.opacity,angle:Oo.angle,angleref:Xc({},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:Xc({width:gN.width,dash:gN.dash},dN("marker.line")),gradient:Oo.gradient},dN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Yne(),selected:_s.selected,unselected:_s.unselected,hoverinfo:Xc({},Gne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:One(),hovertemplatefallback:hN()},"calc","nested")});var bN=te((Qve,yN)=>{"use strict";var Jm=dr(),j4=ei(),Zne=Ab(),Xne=Tb(),jne=kb(),Jne=Sb(),$ne=Wh(),Kne=["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(" ");yN.exports=function(r,t,n,a){function i(d,m){return Jm.coerce(r,t,$ne,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||Jm.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Jm.warn(Kne),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)&&Zne(r,t,n,a,i,{gradient:!0}),j4.hasLines(t)&&(Xne(r,t,n,a,i),i("connectgaps")),j4.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),jne(r,t,a,i)),i("fill"),t.fill!=="none"&&Jne(r,t,n,i),Jm.coerceSelectionMarkerOpacity(t,i)}});var wN=te((e1e,xN)=>{"use strict";var _N=Dn();xN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=_N.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=_N.tickText(o,o.c2l(l[1]),!0).text,a}});var SN=te((r1e,kN)=>{"use strict";var J4=Ht(),MN=Rn().BADNUM,Qne=qb(),eae=kh(),rae=sm(),tae=dr().isArrayOrTypedArray,AN=dr()._;function TN(e){return e&&typeof e=="string"}kN.exports=function(r,t){var n=tae(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return TN(h)||J4(h)}:o=TN;for(var l=0;l{"use strict";Ua.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"};Ua.axesNames=["lonaxis","lataxis"];Ua.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ua.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ua.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]}};Ua.clipPad=.001;Ua.precision=.1;Ua.landColor="#F0DC82";Ua.waterColor="#3399FF";Ua.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ua.sphereSVG={type:"Sphere"};Ua.fillLayers={ocean:1,land:1,lakes:1};Ua.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ua.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ua.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ua.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var $4=te(($m,CN)=>{(function(e,r){typeof $m=="object"&&typeof CN!="undefined"?r($m):(e=e||self,r(e.topojson=e.topojson||{}))})($m,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 Z=2,H=N.length,V=new Array(H);for(V[0]=(b+=N[0])*k+D,V[1]=(A+=N[1])*M+R;ZD&&(D=Z[0]),Z[1]R&&(R=Z[1])}function I(Z){switch(Z.type){case"GeometryCollection":Z.geometries.forEach(I);break;case"Point":N(Z.coordinates);break;case"MultiPoint":Z.coordinates.forEach(N);break}}x.arcs.forEach(function(Z){for(var H=-1,V=Z.length,U;++HD&&(D=U[0]),U[1]R&&(R=U[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(H,V){V.length&&V.pop();for(var U=k[H<0?~H:H],ee=0,ie=U.length;ee1)k=v(x,b,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var V=1,U=N(Z[0]),ee,ie;VU&&(ie=Z[0],Z[0]=Z[V],Z[V]=ie,U=ee);return Z}).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,Z,H=x.objects,V={};function U(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:U(re.coordinates)};break;case"MultiPoint":K={type:"MultiPoint",coordinates:re.coordinates.map(U)};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,se=1,ce=re.length,Se,Fe=new Array(ce);for(Fe[0]=N(re[0],0);++K{"use strict";var K4=LN.exports={},nae=Zh().locationmodeToLayer,aae=$4().feature;K4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};K4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};K4.getTopojsonFeatures=function(e,r){var t=nae[e.locationmode],n=r.objects[t];return aae(r,n).features}});var qN=te(Xh=>{"use strict";var iae=Rn().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{DN.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 ry=te(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var Hi=63710088e-1,e_={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},Q4={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 oae(e,r,t={}){switch(e){case"Point":return r_(r).geometry;case"LineString":return n_(r).geometry;case"Polygon":return t_(r).geometry;case"MultiPoint":return RN(r).geometry;case"MultiLineString":return PN(r).geometry;case"MultiPolygon":return zN(r).geometry;default:throw new Error(e+" is invalid")}}function r_(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(!Qm(e[0])||!Qm(e[1]))throw new Error("coordinates must contain numbers");return xf({type:"Point",coordinates:e},r,t)}function lae(e,r,t={}){return ey(e.map(n=>r_(n,r)),t)}function t_(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;it_(n,r)),t)}function n_(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 uae(e,r,t={}){return ey(e.map(n=>n_(n,r)),t)}function ey(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function PN(e,r,t={}){return xf({type:"MultiLineString",coordinates:e},r,t)}function RN(e,r,t={}){return xf({type:"MultiPoint",coordinates:e},r,t)}function zN(e,r,t={}){return xf({type:"MultiPolygon",coordinates:e},r,t)}function fae(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 NN(e,r="kilometers"){let t=e_[r];if(!t)throw new Error(r+" units is invalid");return e*t}function a_(e,r="kilometers"){let t=e_[r];if(!t)throw new Error(r+" units is invalid");return e/t}function vae(e,r){return FN(a_(e,r))}function hae(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 FN(e){return e%(2*Math.PI)*180/Math.PI}function pae(e){return e%360*Math.PI/180}function gae(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return NN(a_(e,r),t)}function mae(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=Q4[r];if(!n)throw new Error("invalid original units");let a=Q4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Qm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function yae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bae(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(!Qm(r))throw new Error("bbox must only contain numbers")})}function _ae(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")}gn.areaFactors=Q4;gn.azimuthToBearing=dae;gn.bearingToAzimuth=hae;gn.convertArea=mae;gn.convertLength=gae;gn.degreesToRadians=pae;gn.earthRadius=Hi;gn.factors=e_;gn.feature=xf;gn.featureCollection=ey;gn.geometry=oae;gn.geometryCollection=fae;gn.isNumber=Qm;gn.isObject=yae;gn.lengthToDegrees=vae;gn.lengthToRadians=a_;gn.lineString=n_;gn.lineStrings=uae;gn.multiLineString=PN;gn.multiPoint=RN;gn.multiPolygon=zN;gn.point=r_;gn.points=lae;gn.polygon=t_;gn.polygons=sae;gn.radiansToDegrees=FN;gn.radiansToLength=NN;gn.round=cae;gn.validateBBox=bae;gn.validateId=_ae});var ny=te(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var li=ry();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=li.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 Sae(e,r,t){var n=t,a=!1;return BN(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 ON(e,r){if(!e)throw new Error("geojson is required");ty(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(ay,"__esModule",{value:!0});var UN=ry(),Dae=ny();function VN(e){return Dae.geomReduce.call(void 0,e,(r,t)=>r+Eae(t),0)}function Eae(e){let r=0,t;switch(e.type){case"Polygon":return YN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(GN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*o_,s=i[1]*o_,u=o[0]*o_;t+=(u-l)*Math.sin(s),n++}return t*Pae}var Rae=VN;ay.area=VN;ay.default=Rae});var XN=te(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var zae=ry(),Nae=ny();function ZN(e,r={}){let t=0,n=0,a=0;return Nae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),zae.point.call(void 0,[t/a,n/a],r.properties)}var Fae=ZN;iy.centroid=ZN;iy.default=Fae});var JN=te(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var Iae=ny();function jN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return Iae.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 Bae=kt(),QN=EN(),{area:Oae}=WN(),{centroid:Uae}=XN(),{bbox:Yae}=JN(),$N=Hd(),Fv=Bu(),Gae=Js(),Vae=a1(),ly=Cg(),KN=Object.keys(QN),Wae={"ISO-3":$N,"USA-states":$N,"country names":Zae};function Zae(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=ly.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push(ly.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=$ae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else Fv.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 Uae(t).geometry.coordinates}function Kae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){Bae.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 eie=kt(),rie=fn(),tF=Et(),nF=Dh(),tie=nF.stylePoints,nie=nF.styleText;aF.exports=function(r,t){t&&aie(r,t)};function aie(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),tie(n,t,e),nie(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=eie.select(this),o=a.trace,l=o.line||{};i.call(tF.stroke,l.color).call(rie.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(tF.fill,o.fillcolor)})}});var c_=te((h1e,lF)=>{"use strict";var iF=kt(),fy=dr(),iie=Km().getTopojsonFeatures,s_=qN(),uy=sy(),oF=tf().findExtremes,f_=Rn().BADNUM,oie=um().calcMarkerSize,u_=ei(),lie=l_();function sie(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=fy.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===f_&&iF.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=iF.select(this),s=o[0].trace;if(u_.hasLines(s)||s.fill!=="none"){var u=s_.calcTraceToLineCoords(o),f=s.fill!=="none"?s_.makePolygon(u):s_.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}u_.hasMarkers(s)&&l.selectAll("path.point").data(fy.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),u_.hasText(s)&&l.selectAll("g").data(fy.identity).enter().append("g").append("text").each(function(v){i(v,this)}),lie(e,o)})}function uie(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(fy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?uy.extractTraceFeature(e):iie(t,a.topojson);for(o=0;o{"use strict";var fie=cs(),cie=Rn().BADNUM,vie=Wb(),hie=dr().fillText,die=Wh();sF.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]===cie||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(fie.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=vie(i,h),r.extraText=pie(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function pie(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?die.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&&hie(r,e,f),f.join("
")}});var cF=te((p1e,fF)=>{"use strict";fF.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 dF=te((g1e,hF)=>{"use strict";var vF=ei(),gie=Rn().BADNUM;hF.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=!vF.hasMarkers(l)&&!vF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof cy=="object"&&typeof pF!="undefined"?cy:e.d3=e.d3||{})})(cy,function(e){"use strict";function r(fe,me){return feme?1:fe>=me?0:NaN}function t(fe){return fe.length===1&&(fe=n(fe)),{left:function(me,Ce,pe,G){for(pe==null&&(pe=0),G==null&&(G=me.length);pe>>1;fe(me[Q],Ce)<0?pe=Q+1:G=Q}return pe},right:function(me,Ce,pe,G){for(pe==null&&(pe=0),G==null&&(G=me.length);pe>>1;fe(me[Q],Ce)>0?G=Q:pe=Q+1}return pe}}}function n(fe){return function(me,Ce){return r(fe(me),Ce)}}var a=t(r),i=a.right,o=a.left;function l(fe,me){me==null&&(me=s);for(var Ce=0,pe=fe.length-1,G=fe[0],Q=new Array(pe<0?0:pe);Cefe?1:me>=fe?0:NaN}function v(fe){return fe===null?NaN:+fe}function h(fe,me){var Ce=fe.length,pe=0,G=-1,Q=0,$,_e,De=0;if(me==null)for(;++G1)return De/(pe-1)}function d(fe,me){var Ce=h(fe,me);return Ce&&Math.sqrt(Ce)}function m(fe,me){var Ce=fe.length,pe=-1,G,Q,$;if(me==null){for(;++pe=G)for(Q=$=G;++peG&&(Q=G),$=G)for(Q=$=G;++peG&&(Q=G),$0)return[fe];if((pe=me0)for(fe=Math.ceil(fe/_e),me=Math.floor(me/_e),$=new Array(Q=Math.ceil(me-fe+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(fe,me,Ce){var pe=Math.abs(me-fe)/Math.max(0,Ce),G=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),Q=pe/G;return Q>=A?G*=10:Q>=k?G*=5:Q>=M&&(G*=2),mear;)Be.pop(),--or;var lr=new Array(or+1),hr;for(Q=0;Q<=or;++Q)hr=lr[Q]=[],hr.x0=Q>0?Be[Q-1]:nr,hr.x1=Q=1)return+Ce(fe[pe-1],pe-1,fe);var pe,G=(pe-1)*me,Q=Math.floor(G),$=+Ce(fe[Q],Q,fe),_e=+Ce(fe[Q+1],Q+1,fe);return $+(_e-$)*(G-Q)}}function V(fe,me,Ce){return fe=_.call(fe,v).sort(r),Math.ceil((Ce-me)/(2*(H(fe,.75)-H(fe,.25))*Math.pow(fe.length,-1/3)))}function U(fe,me,Ce){return Math.ceil((Ce-me)/(3.5*d(fe)*Math.pow(fe.length,-1/3)))}function ee(fe,me){var Ce=fe.length,pe=-1,G,Q;if(me==null){for(;++pe=G)for(Q=G;++peQ&&(Q=G)}else for(;++pe=G)for(Q=G;++peQ&&(Q=G);return Q}function ie(fe,me){var Ce=fe.length,pe=Ce,G=-1,Q,$=0;if(me==null)for(;++G=0;)for($=fe[me],Ce=$.length;--Ce>=0;)Q[--G]=$[Ce];return Q}function se(fe,me){var Ce=fe.length,pe=-1,G,Q;if(me==null){for(;++pe=G)for(Q=G;++peG&&(Q=G)}else for(;++pe=G)for(Q=G;++peG&&(Q=G);return Q}function ce(fe,me){for(var Ce=me.length,pe=new Array(Ce);Ce--;)pe[Ce]=fe[me[Ce]];return pe}function Se(fe,me){if(Ce=fe.length){var Ce,pe=0,G=0,Q,$=fe[G];for(me==null&&(me=r);++pe{(function(e,r){typeof vy=="object"&&typeof gF!="undefined"?r(vy,v_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(vy,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 Z(B){return(B=k(B/2))*B}function H(){}function V(B,J){B&&ee.hasOwnProperty(B.type)&&ee[B.type](B,J)}var U={Feature:function(B,J){V(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=Le*je,sr=Xe*Oe+ir*_(Me),br=ir*oe*k(Me);se.add(y(br,sr)),He=B,Xe=Oe,Le=je}function G(B){return ce.reset(),K(B,Qe),ce*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 _e(B,J){return B[0]*J[0]+B[1]*J[1]+B[2]*J[2]}function De(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 nr(B,J){return[B[0]*J,B[1]*J,B[2]*J]}function ar(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,or,lr,hr,Ke,gr,mr,Te,Ue=t(),kr,Ur,tr={point:Ye,lineStart:pr,lineEnd:Tr,polygonStart:function(){tr.point=yr,tr.lineStart=wr,tr.lineEnd=Hr,Ue.reset(),Qe.polygonStart()},polygonEnd:function(){Qe.polygonEnd(),tr.point=Ye,tr.lineStart=pr,tr.lineEnd=Tr,se<0?(Be=-(lr=180),or=-(hr=90)):Ue>o?hr=90:Ue<-o&&(or=-90),Ur[0]=Be,Ur[1]=lr},sphere:function(){Be=-(lr=180),or=-(hr=90)}};function Ye(B,J){kr.push(Ur=[Be=B,lr=B]),Jhr&&(hr=J)}function Ze(B,J){var ve=$([B*d,J*d]);if(Te){var oe=De(Te,ve),Me=[oe[1],-oe[0],0],Oe=De(Me,oe);ar(Oe),Oe=Q(Oe);var je=B-Ke,ir=je>0?1:-1,sr=Oe[0]*h*ir,br,Je=m(je)>180;Je^(ir*Kehr&&(hr=br)):(sr=(sr+360)%360-180,Je^(ir*Kehr&&(hr=J))),Je?BSr(Be,lr)&&(lr=B):Sr(B,lr)>Sr(Be,lr)&&(Be=B):lr>=Be?(Blr&&(lr=B)):B>Ke?Sr(Be,B)>Sr(Be,lr)&&(lr=B):Sr(B,lr)>Sr(Be,lr)&&(Be=B)}else kr.push(Ur=[Be=B,lr=B]);Jhr&&(hr=J),Te=ve,Ke=B}function pr(){tr.point=Ze}function Tr(){Ur[0]=Be,Ur[1]=lr,tr.point=Ye,Te=null}function yr(B,J){if(Te){var ve=B-Ke;Ue.add(m(ve)>180?ve+(ve>0?360:-360):ve)}else gr=B,mr=J;Qe.point(B,J),Ze(B,J)}function wr(){Qe.lineStart()}function Hr(){yr(gr,mr),Qe.lineEnd(),m(Ue)>o&&(Be=-(lr=180)),Ur[0]=Be,Ur[1]=lr,Te=null}function Sr(B,J){return(J-=B)<0?J+360:J}function Dr(B,J){return B[0]-J[0]}function ur(B,J){return B[0]<=B[1]?B[0]<=J&&J<=B[1]:JSr(oe[0],oe[1])&&(oe[1]=Me[1]),Sr(Me[0],oe[1])>Sr(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=Sr(oe[1],Me[0]))>je&&(je=ir,Be=Me[0],lr=oe[1])}return kr=Ur=null,Be===1/0||or===1/0?[[NaN,NaN],[NaN,NaN]]:[[Be,or],[lr,hr]]}var Ae,$e,rr,Lr,Yr,Fr,st,xt,Rt,Kt,cn,pn,Mn,Xt,Qt,en,an={sphere:H,point:jr,lineStart:Nt,lineEnd:vn,polygonStart:function(){an.lineStart=Yt,an.lineEnd=On},polygonEnd:function(){an.lineStart=Nt,an.lineEnd=vn}};function jr(B,J){B*=d,J*=d;var ve=_(J);Ut(ve*_(B),ve*k(B),k(J))}function Ut(B,J,ve){++Ae,rr+=(B-rr)/Ae,Lr+=(J-Lr)/Ae,Yr+=(ve-Yr)/Ae}function Nt(){an.point=rn}function rn(B,J){B*=d,J*=d;var ve=_(J);Xt=ve*_(B),Qt=ve*k(B),en=k(J),an.point=Tn,Ut(Xt,Qt,en)}function Tn(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=y(D((je=Qt*Oe-en*Me)*je+(je=en*oe-Xt*Oe)*je+(je=Xt*Me-Qt*oe)*je),Xt*oe+Qt*Me+en*Oe);$e+=je,Fr+=je*(Xt+(Xt=oe)),st+=je*(Qt+(Qt=Me)),xt+=je*(en+(en=Oe)),Ut(Xt,Qt,en)}function vn(){an.point=jr}function Yt(){an.point=Va}function On(){kn(pn,Mn),an.point=jr}function Va(B,J){pn=B,Mn=J,B*=d,J*=d,an.point=kn;var ve=_(J);Xt=ve*_(B),Qt=ve*k(B),en=k(J),Ut(Xt,Qt,en)}function kn(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=Qt*Oe-en*Me,ir=en*oe-Xt*Oe,sr=Xt*Me-Qt*oe,br=D(je*je+ir*ir+sr*sr),Je=I(br),vr=br&&-Je/br;Rt+=vr*je,Kt+=vr*ir,cn+=vr*sr,$e+=Je,Fr+=Je*(Xt+(Xt=oe)),st+=Je*(Qt+(Qt=Me)),xt+=Je*(en+(en=Oe)),Ut(Xt,Qt,en)}function Wa(B){Ae=$e=rr=Lr=Yr=Fr=st=xt=Rt=Kt=cn=0,K(B,an);var J=Rt,ve=Kt,oe=cn,Me=J*J+ve*ve+oe*oe;return Mes?B+Math.round(-B/v)*v:B,J]}dn.invert=dn;function Un(B,J,ve){return(B%=v)?J||ve?hn(oo(B),yi(J,ve)):oo(B):J||ve?yi(J,ve):dn}function mi(B){return function(J,ve){return J+=B,[J>s?J-v:J<-s?J+v:J,ve]}}function oo(B){var J=mi(B);return J.invert=mi(-B),J}function yi(B,J){var ve=_(B),oe=k(B),Me=_(J),Oe=k(J);function je(ir,sr){var br=_(sr),Je=_(ir)*br,vr=k(ir)*br,fr=k(sr),Mr=fr*ve+Je*oe;return[y(vr*Me-Mr*Oe,Je*ve-fr*oe),I(Mr*Me+vr*Oe)]}return je.invert=function(ir,sr){var br=_(sr),Je=_(ir)*br,vr=k(ir)*br,fr=k(sr),Mr=fr*Me-vr*Oe;return[y(vr*Me+fr*Oe,Je*ve+Mr*oe),I(Mr*ve-Je*oe)]},je}function Ms(B){B=Un(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 zl(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 br,Je=Me;oe>0?Je>Oe:Je1&&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=Je[ir])[0],vr[1]);else oe(fr.x,fr.p.x,-1,Me);fr=fr.p}fr=fr.o,Je=fr.z,Mr=!Mr}while(!fr.v);Me.lineEnd()}}}function _i(B){if(J=B.length){for(var J,ve=0,oe=B[0],Me;++ve=0?1:-1,Wt=tn*Gt,mn=Wt>s,Ct=rt*it;if(Qr.add(y(Ct*tn*k(Wt),Jr*pt+Ct*_(Wt))),je+=mn?Gt+tn*v:Gt,mn^Mr>=ve^Er>=ve){var la=De($(fr),$(nt));ar(la);var Nn=De(Oe,la);ar(Nn);var yn=(mn^Gt>=0?-1:1)*I(Nn[2]);(oe>yn||oe===yn&&(la[0]||la[1]))&&(ir+=mn^Gt>=0?1:-1)}}return(je<-o||je0){for(sr||(Me.polygonStart(),sr=!0),Me.lineStart(),pt=0;pt1&&Ir&2&&it.push(it.pop().concat(it.shift())),Je.push(it.filter(Zn))}}return fr}}function Zn(B){return B.length>1}function on(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(Je,vr,fr,Mr){zl(Mr,B,ve,fr,Je,vr)}function je(Je,vr){return _(Je)*_(vr)>J}function ir(Je){var vr,fr,Mr,qr,rt;return{lineStart:function(){qr=Mr=!1,rt=1},point:function(Jr,tt){var nt=[Jr,tt],Er,Ir=je(Jr,tt),it=oe?Ir?0:br(Jr,tt):Ir?br(Jr+(Jr<0?s:-s),tt):0;if(!vr&&(qr=Mr=Ir)&&Je.lineStart(),Ir!==Mr&&(Er=sr(vr,nt),(!Er||Yn(vr,Er)||Yn(nt,Er))&&(nt[2]=1)),Ir!==Mr)rt=0,Ir?(Je.lineStart(),Er=sr(nt,vr),Je.point(Er[0],Er[1])):(Er=sr(vr,nt),Je.point(Er[0],Er[1],2),Je.lineEnd()),vr=Er;else if(Me&&vr&&oe^Ir){var pt;!(it&fr)&&(pt=sr(nt,vr,!0))&&(rt=0,oe?(Je.lineStart(),Je.point(pt[0][0],pt[0][1]),Je.point(pt[1][0],pt[1][1]),Je.lineEnd()):(Je.point(pt[1][0],pt[1][1]),Je.lineEnd(),Je.lineStart(),Je.point(pt[0][0],pt[0][1],3)))}Ir&&(!vr||!Yn(vr,nt))&&Je.point(nt[0],nt[1]),vr=nt,Mr=Ir,fr=it},lineEnd:function(){Mr&&Je.lineEnd(),vr=null},clean:function(){return rt|(qr&&Mr)<<1}}}function sr(Je,vr,fr){var Mr=$(Je),qr=$(vr),rt=[1,0,0],Jr=De(Mr,qr),tt=_e(Jr,Jr),nt=Jr[0],Er=tt-nt*nt;if(!Er)return!fr&&Je;var Ir=J*tt/Er,it=-J*nt/Er,pt=De(rt,Jr),Gt=nr(rt,Ir),tn=nr(Jr,it);Ie(Gt,tn);var Wt=pt,mn=_e(Gt,Wt),Ct=_e(Wt,Wt),la=mn*mn-Ct*(_e(Gt,Gt)-1);if(!(la<0)){var Nn=D(la),yn=nr(Wt,(-mn-Nn)/Ct);if(Ie(yn,Gt),yn=Q(yn),!fr)return yn;var Gr=Je[0],Vt=vr[0],Gn=Je[1],pa=vr[1],ja;Vt0^yn[1]<(m(yn[0]-Gr)s^(Gr<=yn[0]&&yn[0]<=Vt)){var fi=nr(Wt,(-mn+Nn)/Ct);return Ie(fi,Gt),[yn,Q(fi)]}}}function br(Je,vr){var fr=oe?B:s-B,Mr=0;return Je<-fr?Mr|=1:Je>fr&&(Mr|=2),vr<-fr?Mr|=4:vr>fr&&(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],br=J[1],Je=0,vr=1,fr=sr-je,Mr=br-ir,qr;if(qr=ve-je,!(!fr&&qr>0)){if(qr/=fr,fr<0){if(qr0){if(qr>vr)return;qr>Je&&(Je=qr)}if(qr=Me-je,!(!fr&&qr<0)){if(qr/=fr,fr<0){if(qr>vr)return;qr>Je&&(Je=qr)}else if(fr>0){if(qr0)){if(qr/=Mr,Mr<0){if(qr0){if(qr>vr)return;qr>Je&&(Je=qr)}if(qr=Oe-ir,!(!Mr&&qr<0)){if(qr/=Mr,Mr<0){if(qr>vr)return;qr>Je&&(Je=qr)}else if(Mr>0){if(qr0&&(B[0]=je+Je*fr,B[1]=ir+Je*Mr),vr<1&&(J[0]=je+vr*fr,J[1]=ir+vr*Mr),!0}}}}}var lo=1e9,Zo=-lo;function Xo(B,J,ve,oe){function Me(br,Je){return B<=br&&br<=ve&&J<=Je&&Je<=oe}function Oe(br,Je,vr,fr){var Mr=0,qr=0;if(br==null||(Mr=je(br,vr))!==(qr=je(Je,vr))||sr(br,Je)<0^vr>0)do fr.point(Mr===0||Mr===3?B:ve,Mr>1?oe:J);while((Mr=(Mr+vr+4)%4)!==qr);else fr.point(Je[0],Je[1])}function je(br,Je){return m(br[0]-B)0?0:3:m(br[0]-ve)0?2:1:m(br[1]-J)0?1:0:Je>0?3:2}function ir(br,Je){return sr(br.x,Je.x)}function sr(br,Je){var vr=je(br,1),fr=je(Je,1);return vr!==fr?vr-fr:vr===0?Je[1]-br[1]:vr===1?br[0]-Je[0]:vr===2?br[1]-Je[1]:Je[0]-br[0]}return function(br){var Je=br,vr=Go(),fr,Mr,qr,rt,Jr,tt,nt,Er,Ir,it,pt,Gt={point:tn,lineStart:la,lineEnd:Nn,polygonStart:mn,polygonEnd:Ct};function tn(Gr,Vt){Me(Gr,Vt)&&Je.point(Gr,Vt)}function Wt(){for(var Gr=0,Vt=0,Gn=Mr.length;Vtoe&&(ll-ol)*(oe-fi)>(Jl-fi)*(B-ol)&&++Gr:Jl<=oe&&(ll-ol)*(oe-fi)<(Jl-fi)*(B-ol)&&--Gr;return Gr}function mn(){Je=vr,fr=[],Mr=[],pt=!0}function Ct(){var Gr=Wt(),Vt=pt&&Gr,Gn=(fr=r.merge(fr)).length;(Vt||Gn)&&(br.polygonStart(),Vt&&(br.lineStart(),Oe(null,null,1,br),br.lineEnd()),Gn&&Vo(fr,ir,Gr,Oe,br),br.polygonEnd()),Je=br,fr=Mr=qr=null}function la(){Gt.point=yn,Mr&&Mr.push(qr=[]),it=!0,Ir=!1,nt=Er=NaN}function Nn(){fr&&(yn(rt,Jr),tt&&Ir&&vr.rejoin(),fr.push(vr.result())),Gt.point=tn,Ir&&Je.lineEnd()}function yn(Gr,Vt){var Gn=Me(Gr,Vt);if(Mr&&qr.push([Gr,Vt]),it)rt=Gr,Jr=Vt,tt=Gn,it=!1,Gn&&(Je.lineStart(),Je.point(Gr,Vt));else if(Gn&&Ir)Je.point(Gr,Vt);else{var pa=[nt=Math.max(Zo,Math.min(lo,nt)),Er=Math.max(Zo,Math.min(lo,Er))],ja=[Gr=Math.max(Zo,Math.min(lo,Gr)),Vt=Math.max(Zo,Math.min(lo,Vt))];yu(pa,ja,B,J,ve,oe)?(Ir||(Je.lineStart(),Je.point(pa[0],pa[1])),Je.point(ja[0],ja[1]),Gn||Je.lineEnd(),pt=!1):Gn&&(Je.lineStart(),Je.point(Gr,Vt),pt=!1)}nt=Gr,Er=Vt,Ir=Gn}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 Nl=t(),Fl,xi,so,jo={sphere:H,point:H,lineStart:Il,lineEnd:H,polygonStart:H,polygonEnd:H};function Il(){jo.point=qf,jo.lineEnd=Ts}function Ts(){jo.point=jo.lineEnd=H}function qf(B,J){B*=d,J*=d,Fl=B,xi=k(J),so=_(J),jo.point=n0}function n0(B,J){B*=d,J*=d;var ve=k(J),oe=_(J),Me=m(B-Fl),Oe=_(Me),je=k(Me),ir=oe*je,sr=so*ve-xi*oe*Oe,br=xi*ve+so*oe*Oe;Nl.add(y(D(ir*ir+sr*sr),br)),Fl=B,xi=ve,so=oe}function ks(B){return Nl.reset(),K(B,jo),+Nl}var Ss=[null,null],Cs={type:"LineString",coordinates:Ss};function Jo(B,J){return Ss[0]=B,Ss[1]=J,ks(Cs)}var uo={Feature:function(B,J){return Bi(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(fr)).concat(r.range(C(Oe/br)*br,Me,br).filter(function(Er){return m(Er%vr)>o}).map(Mr))}return tt.lines=function(){return nt().map(function(Er){return{type:"LineString",coordinates:Er}})},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(Er){return arguments.length?tt.extentMajor(Er).extentMinor(Er):tt.extentMinor()},tt.extentMajor=function(Er){return arguments.length?(oe=+Er[0][0],ve=+Er[1][0],ir=+Er[0][1],je=+Er[1][1],oe>ve&&(Er=oe,oe=ve,ve=Er),ir>je&&(Er=ir,ir=je,je=Er),tt.precision(Jr)):[[oe,ir],[ve,je]]},tt.extentMinor=function(Er){return arguments.length?(J=+Er[0][0],B=+Er[1][0],Oe=+Er[0][1],Me=+Er[1][1],J>B&&(Er=J,J=B,B=Er),Oe>Me&&(Er=Oe,Oe=Me,Me=Er),tt.precision(Jr)):[[J,Oe],[B,Me]]},tt.step=function(Er){return arguments.length?tt.stepMajor(Er).stepMinor(Er):tt.stepMinor()},tt.stepMajor=function(Er){return arguments.length?(Je=+Er[0],vr=+Er[1],tt):[Je,vr]},tt.stepMinor=function(Er){return arguments.length?(sr=+Er[0],br=+Er[1],tt):[sr,br]},tt.precision=function(Er){return arguments.length?(Jr=+Er,fr=Oi(Oe,Me,90),Mr=qs(J,B,Jr),qr=Oi(ir,je,90),rt=qs(oe,ve,Jr),tt):Jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ds(){return i0()()}function Gv(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),br=k(Oe),Je=je*_(ve),vr=je*k(ve),fr=sr*_(Me),Mr=sr*k(Me),qr=2*I(D(Z(Oe-oe)+je*sr*Z(Me-ve))),rt=k(qr),Jr=qr?function(tt){var nt=k(tt*=qr)/rt,Er=k(qr-tt)/rt,Ir=Er*Je+nt*fr,it=Er*vr+nt*Mr,pt=Er*ir+nt*br;return[y(it,Ir)*h,y(pt,D(Ir*Ir+it*it))*h]}:function(){return[ve*h,oe*h]};return Jr.distance=qr,Jr}function $o(B){return B}var Pf=t(),Bl=t(),o0,co,vo,Rf,wi={point:H,lineStart:H,lineEnd:H,polygonStart:function(){wi.lineStart=Vv,wi.lineEnd=Wv},polygonEnd:function(){wi.lineStart=wi.lineEnd=wi.point=H,Pf.add(m(Bl)),Bl.reset()},result:function(){var B=Pf/2;return Pf.reset(),B}};function Vv(){wi.point=Ui}function Ui(B,J){wi.point=Ol,o0=vo=B,co=Rf=J}function Ol(B,J){Bl.add(Rf*B-vo*J),vo=B,Rf=J}function Wv(){Ol(o0,co)}var Yi=1/0,Ko=Yi,Qo=-Yi,el=Qo,ho={point:Es,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var B=[[Yi,Ko],[Qo,el]];return Qo=el=-(Ko=Yi=1/0),B}};function Es(B,J){BQo&&(Qo=B),Jel&&(el=J)}var xu=0,Ps=0,Rs=0,rl=0,Ul=0,Yl=0,wu=0,Mu=0,si=0,Au,Tu,za,ta,Aa={point:Gi,lineStart:zs,lineEnd:zf,polygonStart:function(){Aa.lineStart=l0,Aa.lineEnd=Zv},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=zs,Aa.lineEnd=zf},result:function(){var B=si?[wu/si,Mu/si]:Yl?[rl/Yl,Ul/Yl]:Rs?[xu/Rs,Ps/Rs]:[NaN,NaN];return xu=Ps=Rs=rl=Ul=Yl=wu=Mu=si=0,B}};function Gi(B,J){xu+=B,Ps+=J,++Rs}function zs(){Aa.point=tl}function tl(B,J){Aa.point=Gl,Gi(za=B,ta=J)}function Gl(B,J){var ve=B-za,oe=J-ta,Me=D(ve*ve+oe*oe);rl+=Me*(za+B)/2,Ul+=Me*(ta+J)/2,Yl+=Me,Gi(za=B,ta=J)}function zf(){Aa.point=Gi}function l0(){Aa.point=Xv}function Zv(){Nf(Au,Tu)}function Xv(B,J){Aa.point=Nf,Gi(Au=za=B,Tu=ta=J)}function Nf(B,J){var ve=B-za,oe=J-ta,Me=D(ve*ve+oe*oe);rl+=Me*(za+B)/2,Ul+=Me*(ta+J)/2,Yl+=Me,Me=ta*B-za*J,wu+=Me*(za+B),Mu+=Me*(ta+J),si+=Me*3,Gi(za=B,ta=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:H};var If=t(),Hf,s0,u0,Ns,Fs,Mi={point:H,lineStart:function(){Mi.point=ku},lineEnd:function(){Hf&&Is(s0,u0),Mi.point=H},polygonStart:function(){Hf=!0},polygonEnd:function(){Hf=null},result:function(){var B=+If;return If.reset(),B}};function ku(B,J){Mi.point=Is,s0=Ns=B,u0=Fs=J}function Is(B,J){Ns-=B,Fs-=J,If.add(D(Ns*Ns+Fs*Fs)),Ns=B,Fs=J}function Su(){this._string=[]}Su.prototype={_radius:4.5,_circle:f0(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=f0(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 f0(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(Aa)),Aa.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 Vl(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 Hs(B,J,ve){return Vl(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 Bs(B,J,ve){return Hs(B,[[0,0],J],ve)}function Of(B,J,ve){return Vl(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 Vl(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 c0=16,Uf=_(30*d);function v0(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,br,Je,vr,fr,Mr,qr,rt,Jr){var tt=br-oe,nt=Je-Me,Er=tt*tt+nt*nt;if(Er>4*J&&rt--){var Ir=je+fr,it=ir+Mr,pt=sr+qr,Gt=D(Ir*Ir+it*it+pt*pt),tn=I(pt/=Gt),Wt=m(m(pt)-1)J||m((tt*Nn+nt*yn)/Er-.5)>.3||je*fr+ir*Mr+sr*qr2?Gr[2]%360*d:0,Nn()):[ir*h,sr*h,br*h]},Ct.angle=function(Gr){return arguments.length?(vr=Gr%360*d,Nn()):vr*h},Ct.reflectX=function(Gr){return arguments.length?(fr=Gr?-1:1,Nn()):fr<0},Ct.reflectY=function(Gr){return arguments.length?(Mr=Gr?-1:1,Nn()):Mr<0},Ct.precision=function(Gr){return arguments.length?(pt=v0(Gt,it=Gr*Gr),yn()):D(it)},Ct.fitExtent=function(Gr,Vt){return Hs(Ct,Gr,Vt)},Ct.fitSize=function(Gr,Vt){return Bs(Ct,Gr,Vt)},Ct.fitWidth=function(Gr,Vt){return Of(Ct,Gr,Vt)},Ct.fitHeight=function(Gr,Vt){return go(Ct,Gr,Vt)};function Nn(){var Gr=Wf(ve,0,0,fr,Mr,vr).apply(null,J(Oe,je)),Vt=(vr?Wf:Jv)(ve,oe-Gr[0],Me-Gr[1],fr,Mr,vr);return Je=Un(ir,sr,br),Gt=hn(J,Vt),tn=hn(Je,Gt),pt=v0(Gt,it),yn()}function yn(){return Wt=mn=null,Ct}return function(){return J=B.apply(this,arguments),Ct.invert=J.invert&&la,Nn()}}function Wl(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 h0(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(fr)},Je.stream=function(fr){return B&&J===fr?B:B=$v([ve.stream(J=fr),Me.stream(fr),je.stream(fr)])},Je.precision=function(fr){return arguments.length?(ve.precision(fr),Me.precision(fr),je.precision(fr),vr()):ve.precision()},Je.scale=function(fr){return arguments.length?(ve.scale(fr),Me.scale(fr*.35),je.scale(fr),Je.translate(ve.translate())):ve.scale()},Je.translate=function(fr){if(!arguments.length)return ve.translate();var Mr=ve.scale(),qr=+fr[0],rt=+fr[1];return oe=ve.translate(fr).clipExtent([[qr-.455*Mr,rt-.238*Mr],[qr+.455*Mr,rt+.238*Mr]]).stream(br),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(br),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(br),vr()},Je.fitExtent=function(fr,Mr){return Hs(Je,fr,Mr)},Je.fitSize=function(fr,Mr){return Bs(Je,fr,Mr)},Je.fitWidth=function(fr,Mr){return Of(Je,fr,Mr)},Je.fitHeight=function(fr,Mr){return go(Je,fr,Mr)};function vr(){return B=J=null,Je}return Je.scale(1070)}function Vi(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 Na=Vi(function(B){return D(2/(1+B))});Na.invert=Ti(function(B){return 2*I(B/2)});function Qv(){return Ai(Na).scale(124.75).clipAngle(180-.001)}var Zl=Vi(function(B){return(B=N(B))&&B/k(B)});Zl.invert=Ti(function(B){return B});function p0(){return Ai(Zl).scale(79.4188).clipAngle(180-.001)}function Xa(B,J){return[B,b(R((u+J)/2))]}Xa.invert=function(B,J){return[B,2*p(x(J))-u]};function g0(){return m0(Xa).scale(961/v)}function m0(B){var J=Ai(B),ve=J.center,oe=J.scale,Me=J.translate,Oe=J.clipExtent,je=null,ir,sr,br;J.scale=function(vr){return arguments.length?(oe(vr),Je()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),Je()):Me()},J.center=function(vr){return arguments.length?(ve(vr),Je()):ve()},J.clipExtent=function(vr){return arguments.length?(vr==null?je=ir=sr=br=null:(je=+vr[0][0],ir=+vr[0][1],sr=+vr[1][0],br=+vr[1][1]),Je()):je==null?null:[[je,ir],[sr,br]]};function Je(){var vr=s*oe(),fr=J(Ms(J.rotate()).invert([0,0]));return Oe(je==null?[[fr[0]-vr,fr[1]-vr],[fr[0]+vr,fr[1]+vr]]:B===Xa?[[Math.max(fr[0]-vr,je),ir],[Math.min(fr[0]+vr,sr),br]]:[[je,Math.max(fr[1]-vr,ir)],[sr,Math.min(fr[1]+vr,br)]])}return Je()}function Os(B){return R((u+B)/2)}function y0(B,J){var ve=_(B),oe=B===J?k(B):b(ve/_(J))/b(Os(J)/Os(B)),Me=ve*A(Os(B),oe)/oe;if(!oe)return Xa;function Oe(je,ir){Me>0?ir<-u+o&&(ir=-u+o):ir>u-o&&(ir=u-o);var sr=Me/A(Os(ir),oe);return[sr*k(oe*je),Me-sr*_(oe*je)]}return Oe.invert=function(je,ir){var sr=Me-ir,br=M(oe)*D(je*je+sr*sr),Je=y(je,m(sr))*M(sr);return sr*oe<0&&(Je-=s*M(je)*M(sr)),[Je/oe,2*p(A(Me/br,1/oe))-u]},Oe}function qu(){return Wl(y0).scale(109.5).parallels([30,30])}function Us(B,J){return[B,J]}Us.invert=Us;function Du(){return Ai(Us).scale(152.63)}function Ys(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 ui(){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 Zs(B,J){return[b(R((u+J)/2)),-B]}Zs.invert=function(B,J){return[-J,2*p(x(B))-u]};function Jf(){var B=m0(Zs),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=d0,e.geoAlbersUsa=Kv,e.geoArea=G,e.geoAzimuthalEqualArea=Qv,e.geoAzimuthalEqualAreaRaw=Na,e.geoAzimuthalEquidistant=p0,e.geoAzimuthalEquidistantRaw=Zl,e.geoBounds=xe,e.geoCentroid=Wa,e.geoCircle=As,e.geoClipAntimeridian=Pn,e.geoClipCircle=Lf,e.geoClipExtent=bu,e.geoClipRectangle=Xo,e.geoConicConformal=qu,e.geoConicConformalRaw=y0,e.geoConicEqualArea=nl,e.geoConicEqualAreaRaw=h0,e.geoConicEquidistant=e1,e.geoConicEquidistantRaw=Ys,e.geoContains=Ls,e.geoDistance=Jo,e.geoEqualEarth=b0,e.geoEqualEarthRaw=Ws,e.geoEquirectangular=Du,e.geoEquirectangularRaw=Us,e.geoGnomonic=_0,e.geoGnomonicRaw=Pu,e.geoGraticule=i0,e.geoGraticule10=Ds,e.geoIdentity=x0,e.geoInterpolate=Gv,e.geoLength=ks,e.geoMercator=g0,e.geoMercatorRaw=Xa,e.geoNaturalEarth1=Ru,e.geoNaturalEarth1Raw=jf,e.geoOrthographic=ui,e.geoOrthographicRaw=Xn,e.geoPath=Bf,e.geoProjection=Ai,e.geoProjectionMutator=Zf,e.geoRotation=Ms,e.geoStereographic=zu,e.geoStereographicRaw=jl,e.geoStream=K,e.geoTransform=jv,e.geoTransverseMercator=Jf,e.geoTransverseMercatorRaw=Zs,Object.defineProperty(e,"__esModule",{value:!0})})});var yF=te((hy,mF)=>{(function(e,r){typeof hy=="object"&&typeof mF!="undefined"?r(hy,h_(),v_()):r(e.d3=e.d3||{},e.d3,e.d3)})(hy,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=U(2),D=U(x),R=x*2,N=180/x,I=x/180;function Z(T){return T?T/Math.sin(T):1}function H(T){return T>1?b:T<-1?-b:Math.asin(T)}function V(T){return T>1?0:T<-1?x:Math.acos(T)}function U(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+U(T*T+1))}function se(T){return u(T+U(T*T-1))}function ce(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function z(Y,O){var X=o(Y),ue=o(O),he=p(O),le=ue*X,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*ue*p(Y),de*he]}return z.invert=function(Y,O){var X=U(Y*Y+O*O),ue=-T/2,he=50,le;if(!X)return[0,0];do{var de=ue/2,we=o(de),qe=p(de),Ne=qe/we,er=-u(n(we));ue-=le=(2/Ne*er-P*Ne-X)/(-er/(qe*qe)+1-P/(2*we*we))*(we<0?.7:1)}while(n(le)>_&&--he>0);var cr=p(ue);return[i(Y*cr,X*o(ue)),H(O*cr/X)]},z}function Se(){var T=b,L=r.geoProjectionMutator(ce),P=L(T);return P.radius=function(z){return arguments.length?L(T=z*I):T*N},P.scale(179.976).clipAngle(147)}function Fe(T,L){var P=o(L),z=Z(V(P*o(T/=2)));return[2*P*p(T)*z,p(L)*z]}Fe.invert=function(T,L){if(!(T*T+4*L*L>x*x+_)){var P=T,z=L,Y=25;do{var O=p(P),X=p(P/2),ue=o(P/2),he=p(z),le=o(z),de=p(2*z),we=he*he,qe=le*le,Ne=X*X,er=1-qe*ue*ue,cr=er?V(le*ue)*U(Ar=1/er):Ar=0,Ar,Xr=2*cr*le*X-T,at=cr*he-L,ot=Ar*(qe*Ne+cr*le*ue*we),ut=Ar*(.5*O*de-cr*2*he*X),vt=Ar*.25*(de*X-cr*he*qe*O),ln=Ar*(we*ue+cr*Ne*le),An=ut*vt-ln*ot;if(!An)break;var zt=(at*ut-Xr*ln)/An,Fn=(Xr*vt-at*ot)/An;P-=zt,z-=Fn}while((n(zt)>_||n(Fn)>_)&&--Y>0);return[P,z]}};function He(){return r.geoProjection(Fe).scale(152.63)}function Xe(T){var L=p(T),P=o(T),z=T>=0?1:-1,Y=y(z*T),O=(1+L-P)/2;function X(ue,he){var le=o(he),de=o(ue/=2);return[(1+le)*p(ue),(z*he>-i(de,Y)-.001?0:-z*10)+O+p(he)*P-(1+le)*L*de]}return X.invert=function(ue,he){var le=0,de=0,we=50;do{var qe=o(le),Ne=p(le),er=o(de),cr=p(de),Ar=1+er,Xr=Ar*Ne-ue,at=O+cr*P-Ar*L*qe-he,ot=Ar*qe/2,ut=-Ne*cr,vt=L*Ar*Ne/2,ln=P*er+L*qe*cr,An=ut*vt-ln*ot,zt=(at*ut-Xr*ln)/An/2,Fn=(Xr*vt-at*ot)/An;n(Fn)>2&&(Fn/=2),le-=zt,de-=Fn}while((n(zt)>_||n(Fn)>_)&&--we>0);return z*de>-i(o(le),Y)-.001?[le*2,de]:null},X}function Le(){var T=20*I,L=T>=0?1:-1,P=y(L*T),z=r.geoProjectionMutator(Xe),Y=z(T),O=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=O(X),le=(Y.rotate([0,0]),O(X)),de=Y.precision();return Y.rotate(ue),he.sphere=function(){le.polygonStart(),le.lineStart();for(var we=L*-180;L*we<180;we+=L*90)le.point(we,L*90);if(T)for(;L*(we-=3*L*de)>=-180;)le.point(we,L*-i(o(we*I/2),P)*N);le.lineEnd(),le.polygonEnd()},he},Y.scale(218.695).center([0,28.0974])}function Qe(T,L){var P=y(L/2),z=U(1-P*P),Y=1+z*o(T/=2),O=p(T)*z/Y,X=P/Y,ue=O*O,he=X*X;return[4/3*O*(3+ue-3*he),4/3*X*(3+3*ue-he)]}Qe.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,O=U((Y-U(Y*Y-4*L*L))/2),X=H(O)/3,ue=O?se(n(L/O))/3:K(n(T))/3,he=o(X),le=re(ue),de=le*le-he*he;return[m(T)*2*i(ie(ue)*he,.25-de),m(L)*2*i(le*p(X),.25+de)]};function fe(){return r.geoProjection(Qe).scale(66.1603)}var me=U(8),Ce=u(1+M);function pe(T,L){var P=n(L);return PC&&--z>0);return[T/(o(P)*(me-1/p(P))),m(L)*P]};function G(){return r.geoProjection(pe).scale(112.314)}function Q(T){var L=2*x/T;function P(z,Y){var O=r.geoAzimuthalEquidistantRaw(z,Y);if(n(z)>b){var X=i(O[1],O[0]),ue=U(O[0]*O[0]+O[1]*O[1]),he=L*d((X-b)/L)+b,le=i(p(X-=he),2-o(X));X=he+H(x/ue*p(le))-le,O[0]=ue*o(X),O[1]=ue*p(X)}return O}return P.invert=function(z,Y){var O=U(z*z+Y*Y);if(O>b){var X=i(Y,z),ue=L*d((X-b)/L)+b,he=X>ue?-1:1,le=O*o(ue-X),de=1/y(he*V((le-x)/U(x*(x-2*le)+O*O)));X=ue+2*a((de+he*U(de*de-3))/3),z=O*o(X),Y=O*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,O=-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(),le=z(ue),de=(P.rotate([0,0]),z(ue));return P.rotate(he),le.sphere=function(){de.polygonStart(),de.lineStart();for(var we=0,qe=360/T,Ne=2*x/T,er=90-180/T,cr=b;we0&&n(Y)>_);return z<0?NaN:P}function ar(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(z,Y,O,X){var ue,he,le;O=O===void 0?0:+O,X=X===void 0?0:+X;for(var de=0;deue){O-=he/=2,X-=le/=2;continue}ue=er;var cr=(O>0?-1:1)*P,Ar=(X>0?-1:1)*P,Xr=T(O+cr,X),at=T(O,X+Ar),ot=(Xr[0]-we[0])/cr,ut=(Xr[1]-we[1])/cr,vt=(at[0]-we[0])/Ar,ln=(at[1]-we[1])/Ar,An=ln*ot-ut*vt,zt=(n(An)<.5?.5:1)/An;if(he=(Ne*vt-qe*ln)*zt,le=(qe*ut-Ne*ot)*zt,O+=he,X+=le,n(he)0&&(ue[1]*=1+he/1.5*ue[0]*ue[0]),ue}return z.invert=ar(z),z}function or(){return r.geoProjection(Be()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function lr(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,O){return[T*Y*o(O=lr(P,O)),L*p(O)]}return z.invert=function(Y,O){return O=H(O/L),[Y/(T*o(O)),H((2*O+p(2*O))/P)]},z}var Ke=hr(M/b,M,x);function gr(){return r.geoProjection(Ke).scale(169.529)}var mr=2.00276,Te=1.11072;function Ue(T,L){var P=lr(x,L);return[mr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/mr]}Ue.invert=function(T,L){var P=mr*L,z=L<0?-A:A,Y=25,O,X;do X=P-M*p(z),z-=O=(p(2*z)+2*z-x*p(X))/(2*o(2*z)+2+x*o(X)*M*o(z));while(n(O)>_&&--Y>0);return X=P-M*p(z),[T*(1/o(X)+Te/o(z))/mr,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 O=L+T-Y,X=O&&z*o(Y)/O;return[O*p(X),L-O*o(X)]}return P.invert=function(z,Y){var O=U(z*z+(Y=L-Y)*Y),X=L+T-O;return[O/o(X)*i(z,Y),X]},P}function pr(){return Ur(Ze).scale(123.082).center([0,26.1441]).parallel(45)}function Tr(T){function L(P,z){var Y=b-z,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,b-Y*o(O)]}return L.invert=function(P,z){var Y=P*T,O=b-z,X=U(Y*Y+O*O),ue=i(Y,O);return[(X?X/p(X):1)*ue/T,b-X]},L}function yr(){var T=.5,L=r.geoProjectionMutator(Tr),P=L(T);return P.fraction=function(z){return arguments.length?L(T=+z):T},P.scale(158.837)}var wr=hr(1,4/x,x);function Hr(){return r.geoProjection(wr).scale(152.63)}function Sr(T,L,P,z,Y,O){var X=o(O),ue;if(n(T)>1||n(O)>1)ue=V(P*Y+L*z*X);else{var he=p(T/2),le=p(O/2);ue=2*H(U(he*he+L*z*le*le))}return n(ue)>_?[ue,i(z*p(O),L*Y-P*z*X)]:[0,0]}function Dr(T,L,P){return V((T*T+L*L-P*P)/(2*T*L))}function ur(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],O,X=0;X<3;++X,Y=O)O=z[X],Y.v=Sr(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var ue=Dr(z[0].v[0],z[2].v[0],z[1].v[0]),he=Dr(z[0].v[0],z[1].v[0],z[2].v[0]),le=x-ue;z[2].point[1]=0,z[0].point[0]=-(z[1].point[0]=z[0].v[0]/2);var de=[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(qe,Ne){var er=p(Ne),cr=o(Ne),Ar=new Array(3),Xr;for(Xr=0;Xr<3;++Xr){var at=z[Xr];if(Ar[Xr]=Sr(Ne-at[1],at[3],at[2],cr,er,qe-at[0]),!Ar[Xr][0])return at.point;Ar[Xr][1]=ur(Ar[Xr][1]-at.v[1])}var ot=de.slice();for(Xr=0;Xr<3;++Xr){var ut=Xr==2?0:Xr+1,vt=Dr(z[Xr].v[0],Ar[Xr][0],Ar[ut][0]);Ar[Xr][1]<0&&(vt=-vt),Xr?Xr==1?(vt=he-vt,ot[0]-=Ar[Xr][0]*o(vt),ot[1]-=Ar[Xr][0]*p(vt)):(vt=le-vt,ot[0]+=Ar[Xr][0]*o(vt),ot[1]+=Ar[Xr][0]*p(vt)):(ot[0]+=Ar[Xr][0]*o(vt),ot[1]-=Ar[Xr][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 $e(){return rr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function rr(T,L,P){var z=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-z[0],-z[1]],O=r.geoRotation(Y),X=xe(Ae(O(T)),Ae(O(L)),Ae(O(P)));X.invert=ar(X);var ue=r.geoProjection(X).rotate(Y),he=ue.center;return delete ue.rotate,ue.center=function(le){return arguments.length?he(O(le)):O.invert(he())},ue.clipAngle(90)}function Lr(T,L){var P=U(1-p(L));return[2/D*T*P,D*(1-P)]}Lr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*U(x/P)/2:0,H(1-P)]};function Yr(){return r.geoProjection(Lr).scale(95.6464).center([0,30])}function Fr(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 O=o(z);return[z,2*i(U(O*O+L*L-Y*Y)-O,L-Y)]}:function(z,Y){return[z,H(z?Y*y(z)/z:Y)]},P}function st(){return Ur(Fr).scale(249.828).clipAngle(90)}var xt=U(3);function Rt(T,L){return[xt*T*(2*o(2*L/3)-1)/D,xt*D*p(L/3)]}Rt.invert=function(T,L){var P=3*H(L/(xt*D));return[D*T/(xt*(2*o(2*P/3)-1)),P]};function Kt(){return r.geoProjection(Rt).scale(156.19)}function cn(T){var L=o(T);function P(z,Y){return[z*L,p(Y)/L]}return P.invert=function(z,Y){return[z/L,H(Y*L)]},P}function pn(){return Ur(cn).parallel(38.58).scale(195.044)}function Mn(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 Xt(){return Ur(Mn).scale(124.75)}function Qt(T,L){var P=U(8/(3*x));return[P*T*(1-n(L)/x),P*L]}Qt.invert=function(T,L){var P=U(8/(3*x)),z=L/P;return[T/(P*(1-n(z)/x)),z]};function en(){return r.geoProjection(Qt).scale(165.664)}function an(T,L){var P=U(4-3*p(n(L)));return[2/U(6*x)*T*P,m(L)*U(2*x/3)*(2-P)]}an.invert=function(T,L){var P=2-n(L)/U(2*x/3);return[T*U(6*x)/(2*P),m(L)*H((4-P*P)/3)]};function jr(){return r.geoProjection(an).scale(165.664)}function Ut(T,L){var P=U(x*(4+x));return[2/P*T*(1+U(1-4*L*L/(x*x))),4/P*L]}Ut.invert=function(T,L){var P=U(x*(4+x))/2;return[T*P/(1+U(1-L*L*(4+x)/(4*x))),L*P/2]};function Nt(){return r.geoProjection(Ut).scale(180.739)}function rn(T,L){var P=(2+b)*p(L);L/=2;for(var z=0,Y=1/0;z<10&&n(Y)>_;z++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/U(x*(4+x))*T*(1+o(L)),2*U(x/(4+x))*p(L)]}rn.invert=function(T,L){var P=L*U((4+x)/x)/2,z=H(P),Y=o(z);return[T/(2/U(x*(4+x))*(1+Y)),H((z+P*(Y+2))/(2+b))]};function Tn(){return r.geoProjection(rn).scale(180.739)}function vn(T,L){return[T*(1+o(L))/U(2+x),2*L/U(2+x)]}vn.invert=function(T,L){var P=U(2+x),z=L*P/2;return[P*T/(1+o(z)),z]};function Yt(){return r.geoProjection(vn).scale(173.044)}function On(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=U(2+x),[T*(1+o(L))/P,2*L/P]}On.invert=function(T,L){var P=1+b,z=U(P/2);return[T*2*z/(1+o(L*=z)),H((L+p(L))/P)]};function Va(){return r.geoProjection(On).scale(173.044)}var kn=3+2*M;function Wa(T,L){var P=p(T/=2),z=o(T),Y=U(o(L)),O=o(L/=2),X=p(L)/(O+M*z*Y),ue=U(2/(1+X*X)),he=U((M*O+(z+P)*Y)/(M*O+(z-P)*Y));return[kn*(ue*(he-1/he)-2*u(he)),kn*(ue*X*(he+1/he)-2*a(X))]}Wa.invert=function(T,L){if(!(O=Qe.invert(T/1.2,L*1.065)))return null;var P=O[0],z=O[1],Y=20,O;T/=kn,L/=kn;do{var X=P/2,ue=z/2,he=p(X),le=o(X),de=p(ue),we=o(ue),qe=o(z),Ne=U(qe),er=de/(we+M*le*Ne),cr=er*er,Ar=U(2/(1+cr)),Xr=M*we+(le+he)*Ne,at=M*we+(le-he)*Ne,ot=Xr/at,ut=U(ot),vt=ut-1/ut,ln=ut+1/ut,An=Ar*vt-2*u(ut)-T,zt=Ar*er*ln-2*a(er)-L,Fn=de&&k*Ne*he*cr/de,ga=(M*le*we+Ne)/(2*(we+M*le*Ne)*(we+M*le*Ne)*Ne),ci=-.5*er*Ar*Ar*Ar,sl=ci*Fn,Xs=ci*ga,Ca=(Ca=2*we+M*Ne*(le-he))*Ca*ut,La=(M*le*we*Ne+qe)/Ca,Xi=-(M*he*de)/(Ne*Ca),ul=vt*sl-2*La/ut+Ar*(La+La/ot),fl=vt*Xs-2*Xi/ut+Ar*(Xi+Xi/ot),cl=er*ln*sl-2*Fn/(1+cr)+Ar*ln*Fn+Ar*er*(La-La/ot),$l=er*ln*Xs-2*ga/(1+cr)+Ar*ln*ga+Ar*er*(Xi-Xi/ot),mo=fl*cl-$l*ul;if(!mo)break;var js=(zt*fl-An*$l)/mo,Qf=(An*cl-zt*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 oa(){return r.geoProjection(Wa).scale(62.5271)}var hn=o(35*I);function dn(T,L){var P=y(L/2);return[T*hn*U(1-P*P),(1+hn)*P]}dn.invert=function(T,L){var P=L/(1+hn);return[T&&T/(hn*U(1-P*P)),2*a(P)]};function Un(){return r.geoProjection(dn).scale(137.152)}function mi(T,L){var P=L/2,z=o(P);return[2*T/D*o(L)*z*z,D*y(P)]}mi.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(mi).scale(135.264)}function yi(T){var L=1-T,P=O(x,0)[0]-O(-x,0)[0],z=O(0,b)[1]-O(0,-b)[1],Y=U(2*z/P);function O(he,le){var de=o(le),we=p(le);return[de/(L+T*de)*he,L*le+T*we]}function X(he,le){var de=O(he,le);return[de[0]*Y,de[1]/Y]}function ue(he){return X(0,he)[1]}return X.invert=function(he,le){var de=nr(ue,le),we=he/Y*(T+L/o(de));return[we,de]},X}function Ms(){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 zl(T){return[T[0]/2,H(y(T[1]/2*I))*N]}function Yo(T){return[T[0]*2,2*a(p(T[1]*I))*N]}function As(T){T==null&&(T=r.geoOrthographic);var L=T(),P=r.geoEquirectangular().scale(N).precision(0).clipAngle(null).translate([0,0]);function z(O){return L(zl(O))}L.invert&&(z.invert=function(O){return Yo(L.invert(O))}),z.stream=function(O){var X=L.stream(O),ue=P.stream({point:function(he,le){X.point(he/2,H(y(-le/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(O){z[O]=function(){return arguments.length?(L[O].apply(L,arguments),z):L[O]()}}return z.rotate=function(O){return arguments.length?(P.rotate(O),z):P.rotate()},z.center=function(O){return arguments.length?(L.center(zl(O)),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(O,X){var ue=r.geoAzimuthalEquidistantRaw(O,X),he=ue[0],le=ue[1],de=he*he+le*le;if(de>z){var we=U(de),qe=i(le,he),Ne=P*d(qe/P),er=qe-Ne,cr=T*o(er),Ar=(T*p(er)-er*p(cr))/(b-cr),Xr=Yn(er,Ar),at=(x-T)/bi(Xr,cr,x);he=we;var ot=50,ut;do he-=ut=(T+bi(Xr,cr,he)*at-we)/(Xr(he)*at);while(n(ut)>_&&--ot>0);le=er*p(he),hez){var he=U(ue),le=i(X,O),de=P*d(le/P),we=le-de;O=he*o(we),X=he*p(we);for(var qe=O-b,Ne=p(O),er=X/Ne,cr=O_||n(er)>_)&&--cr>0);return[we,qe]},he}var Qr=_i(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function St(){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 on(){return r.geoProjection(Zn).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,O;do{var X=z*z;z-=O=(z*(1+X/12)-L)/(1+X/4)}while(n(O)>_&&--Y>0);Y=50,T/=1-.162388*X;do{var ue=(ue=P*P)*ue;P-=O=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(O)>_&&--Y>0);return[P,z]};function At(){return r.geoProjection(Pn).scale(131.747)}var Za=_i(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Wo(){return r.geoProjection(Za).scale(131.087)}function Lf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var O=z>0?-.5:.5,X=T(z+O*x,Y);return X[0]-=O*L,X}return T.invert&&(P.invert=function(z,Y){var O=z>0?-.5:.5,X=T.invert(z+O*L,Y),ue=X[0]-O*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),O=o(T)*Y,X=p(T)*Y,ue=p(z*L);T=n(i(X,ue)),L=H(O),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,O=-z*L,X=O/Y<1,ue=Zo(X?O:Y,X?Y:O),he=ue[0],le=ue[1],de=o(le);return X&&(he=-b-he),[P*(i(p(he)*de,-p(le))+x),z*H(o(he)*de)]};function lo(T,L){if(L===b)return[0,0];var P=p(L),z=P*P,Y=z*z,O=1+Y,X=1+3*Y,ue=1-Y,he=H(1/U(O)),le=ue+z*O*he,de=(1-P)/le,we=U(de),qe=de*O,Ne=U(qe),er=we*ue,cr,Ar;if(T===0)return[0,-(er+z*Ne)];var Xr=o(L),at=1/Xr,ot=2*P*Xr,ut=(-3*z+he*X)*ot,vt=(-le*Xr-(1-P)*ut)/(le*le),ln=.5*vt/we,An=ue*ln-2*z*we*ot,zt=z*O*vt+de*X*ot,Fn=-at*ot,ga=-at*zt,ci=-2*at*An,sl=4*T/x,Xs;if(T>.222*x||L.175*x){if(cr=(er+z*U(qe*(1+Y)-er*er))/(1+Y),T>x/4)return[cr,cr];var Ca=cr,La=.5*cr;cr=.5*(La+Ca),Ar=50;do{var Xi=U(qe-cr*cr),ul=cr*(ci+Fn*Xi)+ga*H(cr/Ne)-sl;if(!ul)break;ul<0?La=cr:Ca=cr,cr=.5*(La+Ca)}while(n(Ca-La)>_&&--Ar>0)}else{cr=_,Ar=25;do{var fl=cr*cr,cl=U(qe-fl),$l=ci+Fn*cl,mo=cr*$l+ga*H(cr/Ne)-sl,js=$l+(ga-Fn*fl)/cl;cr-=Xs=cl?mo/js:0}while(n(Xs)>_&&--Ar>0)}return[cr,-er-z*U(qe-cr*cr)]}function Zo(T,L){for(var P=0,z=1,Y=.5,O=50;;){var X=Y*Y,ue=U(Y),he=H(1/U(1+X)),le=1-X+Y*(1+X)*he,de=(1-ue)/le,we=U(de),qe=de*(1+X),Ne=we*(1-X),er=qe-T*T,cr=U(er),Ar=L+Ne+Y*cr;if(n(z-P)0?P=Y:z=Y,Y=.5*(P+z)}if(!O)return null;var Xr=H(ue),at=o(Xr),ot=1/at,ut=2*ue*at,vt=(-3*Y+he*(1+3*X))*ut,ln=(-le*at-(1-ue)*vt)/(le*le),An=.5*ln/we,zt=(1-X)*An-2*Y*we*ut,Fn=-2*ot*zt,ga=-ot*ut,ci=-ot*(Y*(1+X)*ln+de*(1+3*X)*ut);return[x/4*(T*(Fn+ga*cr)+ci*H(T/U(qe))),Xr]}function Xo(){return r.geoProjection(Lf(yu)).scale(239.75)}function bu(T,L,P){var z,Y,O;return T?(z=Nl(T,P),L?(Y=Nl(L,1-P),O=Y[1]*Y[1]+P*z[0]*z[0]*Y[0]*Y[0],[[z[0]*Y[2]/O,z[1]*z[2]*Y[0]*Y[1]/O],[z[1]*Y[1]/O,-z[0]*z[2]*Y[0]*Y[2]/O],[z[2]*Y[1]*Y[2]/O,-P*z[0]*z[1]*Y[0]/O]]):[[z[0],0],[z[1],0],[z[2],0]]):(Y=Nl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Nl(T,L){var P,z,Y,O,X;if(L<_)return O=p(T),z=o(T),P=L*(T-O*z)/4,[O-P*z,z+P*O,1-L*O*O/2,T-P];if(L>=1-_)return P=(1-L)/4,z=re(T),O=ee(T),Y=1/z,X=z*ie(T),[O+P*(X-T)/(z*z),Y-P*O*Y*(X-T),Y+P*O*Y*(X+T),2*a(l(T))-b+P*(X-T)/z];var ue=[1,0,0,0,0,0,0,0,0],he=[U(L),0,0,0,0,0,0,0,0],le=0;for(z=U(1-L),X=1;n(he[le]/ue[le])>_&&le<8;)P=ue[le++],he[le]=(P-z)/2,ue[le]=(P+z)/2,z=U(P*z),X*=2;Y=X*ue[le]*T;do O=he[le]*p(z=Y)/ue[le],Y=(H(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-z),Y]}function Fl(T,L,P){var z=n(T),Y=n(L),O=ie(Y);if(z){var X=1/p(z),ue=1/(y(z)*y(z)),he=-(ue+P*(O*O*X*X)-1+P),le=(P-1)*ue,de=(-he+U(he*he-4*le))/2;return[xi(a(1/U(de)),P)*m(T),xi(a(U((de/ue-1)/P)),1-P)*m(L)]}return[0,xi(a(O),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=U(1-L),Y=U(L),O=0;n(Y)>_;O++){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=U(P*z),Y=((P=Y)-z)/2}return T/(h(2,O)*P)}function so(T,L){var P=(M-1)/(M+1),z=U(1-P*P),Y=xi(b,z*z),O=-1,X=u(y(x/4+n(L)/2)),ue=l(O*X)/U(P),he=jo(ue*o(O*T),ue*p(O*T)),le=Fl(he[0],he[1],z*z);return[-le[1],(L>=0?1:-1)*(.5*Y-le[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 Il(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=U(1-P*P),Y=xi(b,z*z),O=-1,X=bu(.5*Y-L,-T,z*z),ue=Il(X[0],X[1]),he=i(ue[1],ue[0])/O;return[he,2*a(l(.5/O*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-b]};function Ts(){return r.geoProjection(Lf(so)).scale(151.496)}function qf(T){var L=p(T),P=o(T),z=n0(T);z.invert=n0(-T);function Y(O,X){var ue=z(O,X);O=ue[0],X=ue[1];var he=p(X),le=o(X),de=o(O),we=V(L*he+P*le*de),qe=p(we),Ne=n(qe)>_?we/qe:1;return[Ne*P*p(O),(n(O)>b?Ne:-Ne)*(L*le-P*he*de)]}return Y.invert=function(O,X){var ue=U(O*O+X*X),he=-p(ue),le=o(ue),de=ue*le,we=-X*he,qe=ue*L,Ne=U(de*de+we*we-qe*qe),er=i(de*qe+we*Ne,we*qe-de*Ne),cr=(ue>b?-1:1)*i(O*he,ue*o(er)*le+X*p(er)*he);return z.invert(cr,er)},Y}function n0(T){var L=p(T),P=o(T);return function(z,Y){var O=o(Y),X=o(z)*O,ue=p(z)*O,he=p(Y);return[i(ue,X*P-he*L),H(he*P+X*L)]}}function ks(){var T=0,L=r.geoProjectionMutator(qf),P=L(T),z=P.rotate,Y=P.stream,O=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]),O.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=O.radius(90-ue)().coordinates[0],le=he.length-1,de=-1,we;for(X.lineStart();++de=0;)X.point((we=he[de])[0],we[1]);X.lineEnd(),X.polygonEnd()},X},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ss=3,Cs=H(1-1/Ss)*N,Jo=cn(0);function uo(T){var L=Cs*I,P=Lr(x,L)[0]-Lr(-x,L)[0],z=Jo(0,L)[1],Y=Lr(0,L)[1],O=D-Y,X=R/T,ue=4/R,he=z+O*O*4/R;function le(de,we){var qe,Ne=n(we);if(Ne>L){var er=v(T-1,f(0,s((de+x)/X)));de+=x*(T-1)/T-er*X,qe=Lr(de,Ne),qe[0]=qe[0]*R/P-R*(T-1)/(2*T)+er*R/T,qe[1]=z+(qe[1]-Y)*4*O/R,we<0&&(qe[1]=-qe[1])}else qe=Jo(de,we);return qe[0]*=ue,qe[1]/=he,qe}return le.invert=function(de,we){de/=ue,we*=he;var qe=n(we);if(qe>z){var Ne=v(T-1,f(0,s((de+x)/X)));de=(de+x*(T-1)/T-Ne*X)*P/R;var er=Lr.invert(de,.25*(qe-z)*R/O+Y);return er[0]-=x*(T-1)/T-Ne*X,we<0&&(er[1]=-er[1]),er}return Jo.invert(de,we)},le}function fo(T,L){return[T,L&1?90-_:Cs]}function Bi(T,L){return[T,L&1?-90+_:-Cs]}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(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Df):L]}}function Hl(){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 O=P.rotate(),X=z(Y),ue=(P.rotate([0,0]),z(Y));return P.rotate(O),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=H(P),Y=2*U(x/(O=x+4*z*L)),O,X=.5*Y*(L+U(T*(2+T))),ue=T*T,he=L*L;function le(de,we){var qe=1-p(we),Ne,er;if(qe&&qe<2){var cr=b-we,Ar=25,Xr;do{var at=p(cr),ot=o(cr),ut=z+i(at,L-ot),vt=1+he-2*L*ot;cr-=Xr=(cr-ue*z-L*at+vt*ut-.5*qe*O)/(2*L*at*ut)}while(n(Xr)>C&&--Ar>0);Ne=Y*U(vt),er=de*ut/x}else Ne=Y*(T+qe),er=de*z/x;return[Ne*p(er),X-Ne*o(er)]}return le.invert=function(de,we){var qe=de*de+(we-=X)*we,Ne=(1+he-qe/(Y*Y))/(2*L),er=V(Ne),cr=p(er),Ar=z+i(cr,L-Ne);return[H(de/U(qe))*x/Ar,H(1-2*(er-ue*z-L*cr+(1+he-2*L*Ne)*Ar)/O)]},le}function a0(){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 Ls=.7109889596207567,Oi=.0528035274542;function qs(T,L){return L>-Ls?(T=Ke(T,L),T[1]+=Oi,T):tr(T,L)}qs.invert=function(T,L){return L>-Ls?Ke.invert(T,L-Oi):tr.invert(T,L)};function i0(){return r.geoProjection(qs).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ds(T,L){return n(L)>Ls?(T=Ke(T,L),T[1]-=L>0?Oi:-Oi,T):tr(T,L)}Ds.invert=function(T,L){return n(L)>Ls?Ke.invert(T,L+(L>0?Oi:-Oi)):tr.invert(T,L)};function Gv(){return r.geoProjection(Ds).scale(152.63)}function $o(T,L,P,z){var Y=U(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=U(z*p(P)*U((1+T*o(2*P)+L*o(4*P))/(1+T+L))),X=P*he(1);function ue(we){return U(1+T*o(2*we)+L*o(4*we))}function he(we){var qe=we*P;return(2*qe+(1+T-L/2)*p(2*qe)+(T+L)/2*p(4*qe)+L/2*p(6*qe))/P}function le(we){return ue(we)*p(we)}var de=function(we,qe){var Ne=P*nr(he,X*p(qe)/P,qe/x);isNaN(Ne)&&(Ne=P*m(qe));var er=Y*ue(Ne);return[er*O*we/x*o(Ne),er/O*p(Ne)]};return de.invert=function(we,qe){var Ne=nr(le,qe*O/Y);return[we*x/(o(Ne)*Y*O*ue(Ne)),H(P*he(Ne/P)/X)]},P===0&&(Y=U(z/x),de=function(we,qe){return[we*Y,p(qe)/Y]},de.invert=function(we,qe){return[we/Y,H(qe*Y)]}),de}function Pf(){var T=1,L=0,P=45*I,z=2,Y=r.geoProjectionMutator($o),O=Y(T,L,P,z);return O.a=function(X){return arguments.length?Y(T=+X,L,P,z):T},O.b=function(X){return arguments.length?Y(T,L=+X,P,z):L},O.psiMax=function(X){return arguments.length?Y(T,L,P=+X*I,z):P*N},O.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},O.scale(180.739)}function Bl(T,L,P,z,Y,O,X,ue,he,le,de){if(de.nanEncountered)return NaN;var we,qe,Ne,er,cr,Ar,Xr,at,ot,ut;if(we=P-L,qe=T(L+we*.25),Ne=T(P-we*.25),isNaN(qe)){de.nanEncountered=!0;return}if(isNaN(Ne)){de.nanEncountered=!0;return}return er=we*(z+4*qe+Y)/12,cr=we*(Y+4*Ne+O)/12,Ar=er+cr,ut=(Ar-X)/15,le>he?(de.maxDepthCount++,Ar+ut):Math.abs(ut)>1;do he[Ar]>Ne?cr=Ar:er=Ar,Ar=er+cr>>1;while(Ar>er);var Xr=he[Ar+1]-he[Ar];return Xr&&(Xr=(Ne-he[Ar+1])/Xr),(Ar+1+Xr)/X}var we=2*de(1)/x*O/P,qe=function(Ne,er){var cr=de(n(p(er))),Ar=z(cr)*Ne;return cr/=we,[Ar,er>=0?cr:-cr]};return qe.invert=function(Ne,er){var cr;return er*=we,n(er)<1&&(cr=m(er)*H(Y(n(er))*O)),[Ne/z(n(er)),cr]},qe}function vo(){var T=0,L=2.5,P=1.183136,z=r.geoProjectionMutator(co),Y=z(T,L,P);return Y.alpha=function(O){return arguments.length?z(T=+O,L,P):T},Y.k=function(O){return arguments.length?z(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?z(T,L,P=+O):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],O,X,ue,he=[];++P=0;--he)P=T[1][he],z=P[0][0],Y=P[0][1],O=P[1][1],X=P[2][0],ue=P[2][1],L.push(wi([[X-_,ue-_],[X-_,O+_],[z+_,O+_],[z+_,Y-_]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var z,Y;function O(he,le){for(var de=le<0?-1:1,we=L[+(le<0)],qe=0,Ne=we.length-1;qewe[qe][2][0];++qe);var er=T(he-we[qe][1][0],le);return er[0]+=T(we[qe][1][0],de*le>de*we[qe][0][1]?we[qe][0][1]:le)[0],er}P?O.invert=P(O):T.invert&&(O.invert=function(he,le){for(var de=Y[+(le<0)],we=L[+(le<0)],qe=0,Ne=de.length;qeer&&(cr=Ne,Ne=er,er=cr),[[we,Ne],[qe,er]]})}),X):L.map(function(le){return le.map(function(de){return[[de[0][0]*N,de[0][1]*N],[de[1][0]*N,de[1][1]*N],[de[2][0]*N,de[2][1]*N]]})})},L!=null&&X.lobes(L),X}var Ol=[[[[-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 Wv(){return Ui(Ue,Ol).scale(160.857)}var Yi=[[[[-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 Ui(Ds,Yi).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 Ui(Ke,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 Es(){return Ui(Ke,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 Ps(){return Ui(qs,xu,ar).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Rs=[[[[-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 Ui(tr,Rs).scale(152.63).rotate([-20,0])}function Ul(T,L){return[3/R*T*U(x*x/3-L*L),L]}Ul.invert=function(T,L){return[R/3*T/U(x*x/3-L*L),L]};function Yl(){return r.geoProjection(Ul).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),O=h((1+Y)/(1-Y),T/2),X=.5*(O+1/O)+o(P*=T);return[2*p(P)/X,(O-1/O)/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 O=P*P,X=z*z,ue=2*z/(1+O+X);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-O-X)/T,H((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 si=x/M;function Au(T,L){return[T*(1+U(o(L)))/2,L/(o(L/2)*o(T/6))]}Au.invert=function(T,L){var P=n(T),z=n(L),Y=_,O=b;z_||n(Ar)>_)&&--Y>0);return Y&&[P,z]};function ta(){return r.geoProjection(za).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,z=L*L,Y=z+1,O=P+Y,X=T?k*U((O-U(O*O-4*P))/P):1/U(Y);return[H(T*X),m(L)*V(X)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function zs(T){var L=o(T),P=y(A+T/2);function z(Y,O){var X=O-T,ue=n(X)<_?Y*L:n(ue=A+O/2)<_||n(n(ue)-b)<_?0:Y*X/u(y(ue)/P);return[ue,X]}return z.invert=function(Y,O){var X,ue=O+T;return[n(O)<_?Y/L:n(X=A+ue/2)<_||n(n(X)-b)<_?0:Y*u(y(X)/P)/O,ue]},z}function tl(){return Ur(zs).parallel(40).scale(158.837)}function Gl(T,L){return[T,1.25*u(y(A+.4*L))]}Gl.invert=function(T,L){return[T,2.5*a(l(.8*L))-.625*x]};function zf(){return r.geoProjection(Gl).scale(108.318)}function l0(T){var L=T.length-1;function P(z,Y){for(var O=o(Y),X=2/(1+O*o(z)),ue=X*O*p(z),he=X*p(Y),le=L,de=T[le],we=de[0],qe=de[1],Ne;--le>=0;)de=T[le],we=de[0]+ue*(Ne=we)-he*qe,qe=de[1]+ue*qe+he*Ne;return we=ue*(Ne=we)-he*qe,qe=ue*qe+he*Ne,[we,qe]}return P.invert=function(z,Y){var O=20,X=z,ue=Y;do{for(var he=L,le=T[he],de=le[0],we=le[1],qe=0,Ne=0,er;--he>=0;)le=T[he],qe=de+X*(er=qe)-ue*Ne,Ne=we+X*Ne+ue*er,de=le[0]+X*(er=de)-ue*we,we=le[1]+X*we+ue*er;qe=de+X*(er=qe)-ue*Ne,Ne=we+X*Ne+ue*er,de=X*(er=de)-ue*we-z,we=X*we+ue*er-Y;var cr=qe*qe+Ne*Ne,Ar,Xr;X-=Ar=(de*qe+we*Ne)/cr,ue-=Xr=(we*qe-de*Ne)/cr}while(n(Ar)+n(Xr)>_*_&&--O>0);if(O){var at=U(X*X+ue*ue),ot=2*a(at*.5),ut=p(ot);return[i(X*ut,at*o(ot)),at?H(ue*ut/at):0]}},P}var Zv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Xv=[[.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(Zv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function s0(){return Mi(Xv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function u0(){return Mi(Nf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ns(){return Mi(Ff,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Fs(){return Mi(If,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Mi(T,L){var P=r.geoProjection(l0(T)).rotate(L).clipAngle(90),z=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(z(O)):z.invert(Y())},P}var ku=U(6),Is=U(7);function Su(T,L){var P=H(7*p(L)/(3*ku));return[ku*T*(2*o(2*P/3)-1)/Is,9*p(P/3)/Is]}Su.invert=function(T,L){var P=3*H(L*Is/9);return[T*Is/(ku*(2*o(2*P/3)-1)),H(p(P)*3*ku/7)]};function f0(){return r.geoProjection(Su).scale(164.859)}function Bf(T,L){for(var P=(1+k)*p(L),z=L,Y=0,O;Y<25&&(z-=O=(p(z/2)+p(z)-P)/(.5*o(z/2)+o(z)),!(n(O)<_));Y++);return[T*(1+2*o(z)/o(z/2))/(3*M),2*U(3)*p(z/2)/U(2+M)]}Bf.invert=function(T,L){var P=L*U(2+M)/(2*U(3)),z=2*H(P);return[3*M*T/(1+2*o(z)/o(z/2)),H((P+p(z))/(1+k))]};function jv(){return r.geoProjection(Bf).scale(188.209)}function po(T,L){for(var P=U(6/(4+x)),z=(1+x/4)*p(L),Y=L/2,O=0,X;O<25&&(Y-=X=(Y/2+p(Y)-z)/(.5+o(Y)),!(n(X)<_));O++);return[P*(.5+o(Y))*T/1.5,P*Y]}po.invert=function(T,L){var P=U(6/(4+x)),z=L/P;return n(n(z)-b)<_&&(z=z<0?-b:b),[1.5*T/(P*(.5+o(z))),H((z/2+p(z))/(1+x/4))]};function Cu(){return r.geoProjection(po).scale(166.518)}function Vl(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))]}Vl.invert=function(T,L){var P=L,z=25,Y,O,X,ue;do O=P*P,X=O*O,P-=Y=(P*(1.01183+X*X*(-.02625+.01926*O-.00396*X))-L)/(1.01183+X*X*(9*-.02625+11*.01926*O+13*-.00396*X));while(n(Y)>C&&--z>0);return O=P*P,X=O*O,ue=O*X,[T/(.84719-.13063*O+ue*ue*(-.04515+.05494*O-.02326*X+.00331*ue)),P]};function Hs(){return r.geoProjection(Vl).scale(175.295)}function Bs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Bs.invert=function(T,L){for(var P=L/2,z=0,Y=1/0;z<10&&n(Y)>_;++z){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Of(){return r.geoProjection(Bs).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 c0(){return Ui(_e(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 O=x/(2*T)-2*T/x,X=2*L/x,ue=(1-X*X)/(P-X),he=O*O,le=ue*ue,de=1+he/le,we=1+le/he,qe=(O*P/ue-O/2)/de,Ne=(le*P/he+ue/2)/we,er=qe*qe+z*z/de,cr=Ne*Ne-(le*P*P/he+ue*P-1)/we;return[b*(qe+U(er)*Y),b*(Ne+U(cr<0?0:cr)*m(-L*O)*Y)]}Uf.invert=function(T,L){T/=b,L/=b;var P=T*T,z=L*L,Y=P+z,O=x*x;return[T?(Y-1+U((1-Y)*(1-Y)+4*P))/(2*T)*b:0,nr(function(X){return Y*(x*p(X)-2*X)*x+4*X*X*(L-p(X))+2*x*X-O*L},0)]};function v0(){return r.geoProjection(Uf).scale(127.267)}var Yf=1.0148,Lu=.23185,Gf=-.14499,Vf=.02406,Jv=Yf,Wf=5*Lu,Ai=7*Gf,Zf=9*Vf,Wl=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>Wl?L=Wl:L<-Wl&&(L=-Wl);var P=L,z;do{var Y=P*P;P-=z=(P*(Yf+Y*Y*(Lu+Y*(Gf+Vf*Y)))-L)/(Jv+Y*Y*(Wf+Y*(Ai+Zf*Y)))}while(n(z)>_);return[T,P]};function h0(){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,O;do{var X=y(z),ue=1/o(z),he=P-2*L*z+z*z;z-=O=(X*he+2*(z-L))/(2+he*ue*ue+2*(z-L)*X)}while(n(O)>_&&--Y>0);return X=y(z),[(n(L)=0;)if(z=L[ue],P[0]===z[0]&&P[1]===z[1]){if(O)return[O,P];O=P}}}function m0(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])}),Zl(L[0],function(P,z){return L[P<-x/2?z<0?6:4:P<0?z<0?2:0:Pz^Ne>z&&P<(qe-le)*(z-de)/(Ne-de)+le&&(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=x0;break;case"FeatureCollection":z=_0;break;default:z=Ru;break}return z(T,P)}function _0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return x0(P,L)})}}function x0(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=Zs;break;case"MultiPolygon":P=Zs;break;case"Sphere":P=Zs;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Xn=[],ui=[],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&&(ui.push(Xn),Xn=[])},result:function(){var T=ui.length?ui.length<2?{type:"LineString",coordinates:ui[0]}:{type:"MultiLineString",coordinates:ui}:null;return ui=[],T}},Zs={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);ui.push(Xn),Xn=[]}},polygonEnd:Eu,result:function(){if(!ui.length)return null;var T=[],L=[];return ui.forEach(function(P){Ws(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var z=P[0];T.some(function(Y){if(b0(Y[0],z))return Y.push(P),!0})||T.push([P])}),ui=[],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 O=n(z)0?z-x:z+x,Y),ue=(X[0]-X[1])*k,he=(X[0]+X[1])*k;if(O)return[ue,he];var le=L*k,de=ue>0^he>0?-1:1;return[de*ue-m(he)*le,de*he-m(ue)*le]}return T.invert&&(P.invert=function(z,Y){var O=(z+Y)*k,X=(Y-z)*k,ue=n(O)<.5*L&&n(X)<.5*L;if(!ue){var he=L*k,le=O>0^X>0?-1:1,de=-le*z+(X>0?1:-1)*he,we=-le*Y+(O>0?1:-1)*he;O=(-de-we)*k,X=(de-we)*k}var qe=T.invert(O,X);return ue||(qe[0]+=O>0?x:-x),qe}),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(le){var de=le.length,we=2,qe=new Array(de);for(qe[0]=+le[0].toFixed(L),qe[1]=+le[1].toFixed(L);we2||Ne[0]!=de[0]||Ne[1]!=de[1])&&(we.push(Ne),de=Ne)}return we.length===1&&le.length>1&&we.push(P(le[le.length-1])),we}function O(le){return le.map(Y)}function X(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(X)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:z(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function ue(le){var de={type:"Feature",properties:le.properties,geometry:X(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}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 O=L?y(z*L/2)/L:z/2;if(!Y)return[2*O,-T];var X=2*a(O*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 O=z*z+Y*Y,X=0,ue=10,he;do{var le=y(X),de=1/o(X),we=O-2*Y*X+X*X;X-=he=(le*we+2*(X-Y))/(2+we*de*de+2*(X-Y)*le)}while(n(he)>_&&--ue>0);var qe=z*(le=y(X)),Ne=y(n(Y)0?b:-b)*(he+Y*(de-X)/2+Y*Y*(de-2*he+X)/2)]}je.invert=function(T,L){var P=L/b,z=P*90,Y=v(18,n(z/5)),O=f(0,s(Y));do{var X=Oe[O][1],ue=Oe[O+1][1],he=Oe[v(19,O+2)][1],le=he-X,de=he-2*ue+X,we=2*(n(P)-ue)/le,qe=de/le,Ne=we*(1-qe*we*(1-2*qe*we));if(Ne>=0||O===1){z=(L>=0?5:-5)*(Ne+Y);var er=50,cr;do Y=v(18,n(z)/5),O=s(Y),Ne=Y-O,X=Oe[O][1],ue=Oe[O+1][1],he=Oe[v(19,O+2)][1],z-=(cr=(L>=0?b:-b)*(ue+Ne*(he-X)/2+Ne*Ne*(he-2*ue+X)/2)-L)*N;while(n(cr)>C&&--er>0);break}}while(--O>=0);var Ar=Oe[O][0],Xr=Oe[O+1][0],at=Oe[v(19,O+2)][0];return[T/(Xr+Ne*(at-Ar)/2+Ne*Ne*(at-2*Xr+Ar)/2),z*I]};function ir(){return r.geoProjection(je).scale(152.63)}function sr(T){function L(P,z){var Y=o(z),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(z)]}return L.invert=function(P,z){var Y=P*P+z*z,O=U(Y),X=(T-U(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*X,O*U(1-X*X)),O?H(z*X/O):0]},L}function br(T,L){var P=sr(T);if(!L)return P;var z=o(L),Y=p(L);function O(X,ue){var he=P(X,ue),le=he[1],de=le*Y/(T-1)+z;return[he[0]*z/de,le/de]}return O.invert=function(X,ue){var he=(T-1)/(T-1-ue*Y);return P.invert(he*X,he*ue*z)},O}function Je(){var T=2,L=0,P=r.geoProjectionMutator(br),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(V(1/T)*N-1e-6)}var vr=1e-4,fr=1e4,Mr=-180,qr=Mr+vr,rt=180,Jr=rt-vr,tt=-90,nt=tt+vr,Er=90,Ir=Er-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*fr)/fr}function Gt(T){return T===tt||T===Er?[0,T]:[Mr,pt(T)]}function tn(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>=Ir&&(P=Er,z=!0),z?[L,P]:T}function Wt(T){return T.map(tn)}function mn(T,L,P){for(var z=0,Y=T.length;z=Jr||de<=nt||de>=Ir){O[X]=tn(he);for(var we=X+1;weqr&&Nent&&er=ue)break;P.push({index:-1,polygon:L,ring:O=O.slice(we-1)}),O[0]=Gt(O[0][1]),X=-1,ue=O.length}}}}function Ct(T){var L,P=T.length,z={},Y={},O,X,ue,he,le;for(L=0;L0?x-ue:ue)*N],le=r.geoProjection(T(X)).rotate(he),de=r.geoRotation(he),we=le.center;return delete le.rotate,le.center=function(qe){return arguments.length?we(de(qe)):de.invert(we())},le.clipAngle(90)}function pa(T){var L=o(T);function P(z,Y){var O=r.geoGnomonicRaw(z,Y);return O[0]*=L,O}return P.invert=function(z,Y){return r.geoGnomonicRaw.invert(z/L,Y)},P}function ja(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Gn(pa,T,L)}function ki(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,z=T*T,Y=y(P),O=.5/p(P);function X(ue,he){var le=V(o(he)*o(ue-L)),de=V(o(he)*o(ue-P)),we=he<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),we*U(4*z*de-(z-le+de)*(z-le+de))/(2*T)]}return X.invert=function(ue,he){var le=he*he,de=o(U(le+(qe=ue+L)*qe)),we=o(U(le+(qe=ue+P)*qe)),qe,Ne;return[i(Ne=de-we,qe=(de+we)*Y),(he<0?-1:1)*V(U(qe*qe+Ne*Ne)*O)]},X}function ol(){return fi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function fi(T,L){return Gn(ki,T,L)}function ll(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),O=n(x/T-T/x)/2,X=O*O,ue=Y/(P+Y-1),he=ue*(2/P-1),le=he*he,de=le+X,we=ue-le,qe=X+ue;return[m(T)*x*(O*we+U(X*we*we-de*(ue*ue-le)))/de,m(L)*x*(he*qe-O*U((X+1)*de-qe*qe))/de]}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,O=Y*Y,X=-n(L)*(1+Y),ue=X-2*z+P,he=-2*X+1+2*z+O,le=z/he+(2*ue*ue*ue/(he*he*he)-9*X*ue/(he*he))/27,de=(X-ue*ue/(3*he))/he,we=2*U(-de/3),qe=V(3*le/(de*we))/3;return[x*(Y-1+U(1+2*(P-z)+O))/(2*T),m(L)*x*(-we*o(qe+x/3)-ue/(3*he))]};function Jl(){return r.geoProjection(ll).scale(79.4183)}function Nu(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),O=n(x/T-T/x)/2,X=O*O,ue=Y*(U(1+X)-O*Y)/(1+X*P*P);return[m(T)*x*ue,m(L)*x*U(1-ue*(2*O+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,O=U(Y+1);return[m(T)*x*(O-z),m(L)*b*p(2*i(U((1-2*z*P)*(z+O)-P),U(O+z+P)))]};function w0(){return r.geoProjection(Nu).scale(79.4183)}function M0(T,L){if(n(L)<_)return[T,0];var P=L/b,z=H(P);if(n(T)<_||n(n(L)-b)<_)return[0,x*y(z/2)];var Y=(x/T-T/x)/2,O=P/(1+o(z));return[x*(m(T)*U(Y*Y+1-O*O)-Y),x*O]}M0.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)*U(z*z+1)-z):0,b*p(2*a(P))]};function nd(){return r.geoProjection(M0).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,O=(8*z-Y*(Y+2)-5)/(2*Y*(z-1)),X=O*O,ue=z*O,he=Y+X+2*ue,le=z+3*O,de=T/b,we=de+1/de,qe=m(n(T)-b)*U(we*we-4),Ne=qe*qe,er=he*(Y+X*Ne-1)+(1-Y)*(Y*(le*le+4*X)+12*ue*X+4*X*X),cr=(qe*(he+X-1)+2*U(er))/(4*he+Ne);return[m(T)*b*cr,m(L)*b*U(1+qe*n(cr)-cr*cr)]}$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),O=Y*Y,X=2*L,ue=50;do{var he=X*X,le=(8*X-he*(he+2)-5)/(2*he*(X-1)),de=(3*X-he*X-10)/(2*he*X),we=le*le,qe=X*le,Ne=X+le,er=Ne*Ne,cr=X+3*le,Ar=er*(he+we*O-1)+(1-he)*(he*(cr*cr+4*we)+we*(12*qe+4*we)),Xr=-2*Ne*(4*qe*we+(1-4*he+3*he*he)*(1+de)+we*(-6+14*he-O+(-8+8*he-2*O)*de)+qe*(-8+12*he+(-10+10*he-O)*de)),at=U(Ar),ot=Y*(er+we-1)+2*at-z*(4*er+O),ut=Y*(2*le*de+2*Ne*(1+de))+Xr/at-8*Ne*(Y*(-1+we+er)+2*at)*(1+de)/(O+4*er);X-=P=ot/ut}while(P>_&&--ue>0);return[m(T)*(U(Y*Y+4)+Y)*x/4,b*X]};function Zi(){return r.geoProjection($f).scale(127.16)}function ad(T,L,P,z,Y){function O(X,ue){var he=P*p(z*ue),le=U(1-he*he),de=U(2/(1+le*o(X*=Y)));return[T*le*de*p(X),L*he*de]}return O.invert=function(X,ue){var he=X/T,le=ue/L,de=U(he*he+le*le),we=2*H(de/2);return[i(X*y(we),T*de)/Y,de&&H(ue*p(we)/(L*P*de))/z]},O}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 O=P/100+1,X=z/100,ue=V(O*o(Y))/Y,he=p(T)/p(ue*b),le=L/x,de=U(X*p(T/2)/p(L/2)),we=de/U(le*he*ue),qe=1/(de*U(le*he*ue));return ad(we,qe,he,ue,le)}function A0(){var T=65*I,L=60*I,P=20,z=200,Y=r.geoProjectionMutator(id),O=Y(T,L,P,z);return O.poleline=function(X){return arguments.length?Y(T=+X*I,L,P,z):T*N},O.parallels=function(X){return arguments.length?Y(T,L=+X*I,P,z):L*N},O.inflation=function(X){return arguments.length?Y(T,L,P=+X,z):P},O.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},O.scale(163.775)}function r1(){return A0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var od=4*x+3*U(3),ld=2*U(2*x*U(3)/od),sd=hr(ld*U(3)/x,ld,od/6);function T0(){return r.geoProjection(sd).scale(176.84)}function Kf(T,L){return[T*U(1-3*L*L/(x*x)),L]}Kf.invert=function(T,L){return[T/U(1-3*L*L/(x*x)),L]};function ud(){return r.geoProjection(Kf).scale(152.63)}function t1(T,L){var P=o(L),z=o(T)*P,Y=1-z,O=o(T=i(p(T)*P,-p(L))),X=p(T);return P=U(1-z*z),[X*P-O*Y,-O*P-X*Y]}t1.invert=function(T,L){var P=(T*T+L*L)/-2,z=U(-P*(2+P)),Y=L*P+T*z,O=T*P-L*z,X=U(O*O+Y*Y);return[i(z*Y,X*(1+P)),X?-H(z*O/X):0]};function Ly(){return r.geoProjection(t1).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function n1(T,L){var P=Fe(T,L);return[(P[0]+T/b)/2,(P[1]+L)/2]}n1.invert=function(T,L){var P=T,z=L,Y=25;do{var O=o(z),X=p(z),ue=p(2*z),he=X*X,le=O*O,de=p(P),we=o(P/2),qe=p(P/2),Ne=qe*qe,er=1-le*we*we,cr=er?V(O*we)*U(Ar=1/er):Ar=0,Ar,Xr=.5*(2*cr*O*qe+P/b)-T,at=.5*(cr*X+z)-L,ot=.5*Ar*(le*Ne+cr*O*we*he)+.5/b,ut=Ar*(de*ue/4-cr*X*qe),vt=.125*Ar*(ue*qe-cr*X*le*de),ln=.5*Ar*(he*we+cr*Ne*O)+.5,An=ut*vt-ln*ot,zt=(at*ut-Xr*ln)/An,Fn=(Xr*vt-at*ot)/An;P-=zt,z-=Fn}while((n(zt)>_||n(Fn)>_)&&--Y>0);return[P,z]};function Si(){return r.geoProjection(n1).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Se,e.geoAiryRaw=ce,e.geoAitoff=He,e.geoAitoffRaw=Fe,e.geoArmadillo=Le,e.geoArmadilloRaw=Xe,e.geoAugust=fe,e.geoAugustRaw=Qe,e.geoBaker=G,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=or,e.geoBertin1953Raw=Be,e.geoBoggs=kr,e.geoBoggsRaw=Ue,e.geoBonne=pr,e.geoBonneRaw=Ze,e.geoBottomley=yr,e.geoBottomleyRaw=Tr,e.geoBromley=Hr,e.geoBromleyRaw=wr,e.geoChamberlin=rr,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=$e,e.geoCollignon=Yr,e.geoCollignonRaw=Lr,e.geoCraig=st,e.geoCraigRaw=Fr,e.geoCraster=Kt,e.geoCrasterRaw=Rt,e.geoCylindricalEqualArea=pn,e.geoCylindricalEqualAreaRaw=cn,e.geoCylindricalStereographic=Xt,e.geoCylindricalStereographicRaw=Mn,e.geoEckert1=en,e.geoEckert1Raw=Qt,e.geoEckert2=jr,e.geoEckert2Raw=an,e.geoEckert3=Nt,e.geoEckert3Raw=Ut,e.geoEckert4=Tn,e.geoEckert4Raw=rn,e.geoEckert5=Yt,e.geoEckert5Raw=vn,e.geoEckert6=Va,e.geoEckert6Raw=On,e.geoEisenlohr=oa,e.geoEisenlohrRaw=Wa,e.geoFahey=Un,e.geoFaheyRaw=dn,e.geoFoucaut=oo,e.geoFoucautRaw=mi,e.geoFoucautSinusoidal=Ms,e.geoFoucautSinusoidalRaw=yi,e.geoGilbert=As,e.geoGingery=Vo,e.geoGingeryRaw=Go,e.geoGinzburg4=St,e.geoGinzburg4Raw=Qr,e.geoGinzburg5=Br,e.geoGinzburg5Raw=It,e.geoGinzburg6=on,e.geoGinzburg6Raw=Zn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Wo,e.geoGinzburg9Raw=Za,e.geoGringorten=Xo,e.geoGringortenRaw=yu,e.geoGuyou=Ts,e.geoGuyouRaw=so,e.geoHammer=Ie,e.geoHammerRaw=_e,e.geoHammerRetroazimuthal=ks,e.geoHammerRetroazimuthalRaw=qf,e.geoHealpix=Hl,e.geoHealpixRaw=uo,e.geoHill=a0,e.geoHillRaw=Ef,e.geoHomolosine=Gv,e.geoHomolosineRaw=Ds,e.geoHufnagel=Pf,e.geoHufnagelRaw=$o,e.geoHyperelliptical=vo,e.geoHyperellipticalRaw=co,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Wv,e.geoInterruptedHomolosine=Ko,e.geoInterruptedMollweide=el,e.geoInterruptedMollweideHemispheres=Es,e.geoInterruptedSinuMollweide=Ps,e.geoInterruptedSinusoidal=rl,e.geoKavrayskiy7=Yl,e.geoKavrayskiy7Raw=Ul,e.geoLagrange=Mu,e.geoLagrangeRaw=wu,e.geoLarrivee=Tu,e.geoLarriveeRaw=Au,e.geoLaskowski=ta,e.geoLaskowskiRaw=za,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=tl,e.geoLoximuthalRaw=zs,e.geoMiller=zf,e.geoMillerRaw=Gl,e.geoModifiedStereographic=Mi,e.geoModifiedStereographicRaw=l0,e.geoModifiedStereographicAlaska=Hf,e.geoModifiedStereographicGs48=s0,e.geoModifiedStereographicGs50=u0,e.geoModifiedStereographicMiller=Ns,e.geoModifiedStereographicLee=Fs,e.geoMollweide=gr,e.geoMollweideRaw=Ke,e.geoMtFlatPolarParabolic=f0,e.geoMtFlatPolarParabolicRaw=Su,e.geoMtFlatPolarQuartic=jv,e.geoMtFlatPolarQuarticRaw=Bf,e.geoMtFlatPolarSinusoidal=Cu,e.geoMtFlatPolarSinusoidalRaw=po,e.geoNaturalEarth2=Hs,e.geoNaturalEarth2Raw=Vl,e.geoNellHammer=Of,e.geoNellHammerRaw=Bs,e.geoInterruptedQuarticAuthalic=c0,e.geoNicolosi=v0,e.geoNicolosiRaw=Uf,e.geoPatterson=h0,e.geoPattersonRaw=Xf,e.geoPolyconic=d0,e.geoPolyconicRaw=nl,e.geoPolyhedral=Zl,e.geoPolyhedralButterfly=Us,e.geoPolyhedralCollignon=e1,e.geoPolyhedralWaterman=Gs,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=Je,e.geoSatelliteRaw=br,e.geoSinuMollweide=i0,e.geoSinuMollweideRaw=qs,e.geoSinusoidal=Ye,e.geoSinusoidalRaw=tr,e.geoStitch=yn,e.geoTimes=Vt,e.geoTimesRaw=Gr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=pa,e.geoTwoPointAzimuthalUsa=ja,e.geoTwoPointEquidistant=fi,e.geoTwoPointEquidistantRaw=ki,e.geoTwoPointEquidistantUsa=ol,e.geoVanDerGrinten=Jl,e.geoVanDerGrintenRaw=ll,e.geoVanDerGrinten2=w0,e.geoVanDerGrinten2Raw=Nu,e.geoVanDerGrinten3=nd,e.geoVanDerGrinten3Raw=M0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=$f,e.geoWagner=A0,e.geoWagner7=r1,e.geoWagnerRaw=id,e.geoWagner4=T0,e.geoWagner4Raw=sd,e.geoWagner6=ud,e.geoWagner6Raw=Kf,e.geoWiechel=Ly,e.geoWiechelRaw=t1,e.geoWinkel3=Si,e.geoWinkel3Raw=n1,Object.defineProperty(e,"__esModule",{value:!0})})});var MF=te((m1e,wF)=>{"use strict";var da=kt(),d_=dr(),mie=dt(),Iv=Math.PI/180,jc=180/Math.PI,g_={cursor:"pointer"},m_={cursor:"auto"};function yie(e,r){var t=e.projection,n;return r._isScoped?n=bie:r._isClipped?n=xie:n=_ie,n(e,t)}wF.exports=yie;function y_(e,r){return da.behavior.zoom().translate(r.translate()).scale(r.scale())}function b_(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]=d_.nestedProperty(o,h).get(),mie.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=d_.nestedProperty(s,h);m.get()!==d&&(m.set(d),d_.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 bie(e,r){var t=y_(e,r);function n(){da.select(this).style(g_)}function a(){r.scale(da.event.scale).translate(da.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(){da.select(this).style(m_),b_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function _ie(e,r){var t=y_(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(){da.select(this).style(g_),a=da.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=da.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(da.event.scale),r.translate([o[0],da.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 _(){da.select(this).style(m_),h&&b_(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 xie(e,r){var t={r:r.rotate(),k:r.scale()},n=y_(e,r),a=Lie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){da.select(this).style(g_);var h=da.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=wie(d);l=dy(r,h),o.call(n,"zoom",function(){var _=da.mouse(this);if(r.scale(t.k=da.event.scale),!l)h=_,l=dy(r,h);else if(dy(r,_)){r.rotate(d).translate(p);var C=dy(r,_),x=Aie(l,C),b=kie(Mie(y,x)),A=t.r=Tie(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(){da.select(this).style(m_),o.call(n,"zoom",null),f(a.of(this,arguments)),b_(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 da.rebind(n,a,"on")}function dy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&Sie(t)}function wie(e){var r=.5*e[0]*Iv,t=.5*e[1]*Iv,n=.5*e[2]*Iv,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 Mie(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 Aie(e,r){if(!(!e||!r)){var t=Cie(e,r),n=Math.sqrt(xF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,xF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function Tie(e,r,t){var n=p_(r,2,e[0]);n=p_(n,1,e[1]),n=p_(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)*jc,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)*jc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*jc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*jc,_=bF(t[0],t[1],d,p),C=bF(t[0],t[1],m,y);return _<=C?[d,p,t[2]]:[m,y,t[2]]}function bF(e,r,t,n){var a=_F(t-e),i=_F(n-r);return Math.sqrt(a*a+i*i)}function _F(e){return(e%360+540)%360-180}function p_(e,r,t){var n=t*Iv,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 kie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*jc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*jc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*jc]}function Sie(e){var r=e[0]*Iv,t=e[1]*Iv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function xF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var gu=kt(),w_=h_(),qie=w_.geoPath,Die=w_.geoDistance,Eie=yF(),Pie=dt(),$h=dr(),Rie=$h.strTranslate,py=Et(),Jh=fn(),AF=cs(),zie=va(),x_=Dn(),TF=tf().getAutoRange,__=ko(),Nie=uu().prepSelect,Fie=uu().clearOutline,Iie=uu().selectOnClick,Hie=MF(),gi=Zh(),Bie=sy(),SF=Km(),Oie=$4().feature;function CF(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 Rl=CF.prototype;LF.exports=function(r){return new CF(r)};Rl.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 gi.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),zie.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()};Rl.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=Uie(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=TF(t,u),f.range=TF(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=gi.lonaxisSpan[x]/2||180,A=gi.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=kF(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(kF(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 Z=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([R[0]+(Z[0]-R[0]),R[1]+(Z[1]-R[1])]).clipExtent(M),n._isAlbersUsa){var H=v([d.lon,d.lat]),V=v.translate();v.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}};Rl.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!!gi.lineLayers[h]}function s(h){return!!gi.fillLayers[h]}var u=this.hasChoropleth?gi.layersForChoropleth:gi.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=gi.layerNameToAdjective[h];h==="frame"?d.datum(gi.sphereSVG):l(h)||s(h)?d.datum(Oie(n,n.objects[h])):o(h)&&d.datum(Yie(h,r,e)).call(py.stroke,r[h].gridcolor).call(Jh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(py.stroke,r[m+"color"]).call(Jh.dashLine,"",r[m+"width"]):s(h)&&d.call(py.fill,r[m+"color"])})};Rl.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(py.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Rl.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];Pie.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&&Fie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(Hie(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){Nie(v,h,d,f,i)},__.init(f)),a.on("mousemove",function(){var v=t.projection.invert($h.getPositionFromD3Event());if(!v)return __.unhover(n,gu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},AF.hover(n,gu.event,t.id)}),a.on("mouseout",function(){n._dragging||__.unhover(n,gu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&Iie(gu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&AF.click(n,gu.event))})};Rl.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"},x_.setConvert(e.mockAxis,t)};Rl.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)};Rl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Rl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?Rie(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 Uie(e){var r=e.projection,t=r.type,n=gi.projNames[t];n="geo"+$h.titleCase(n);for(var a=w_[n]||Eie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?gi.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 qie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(gi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-gi.clipPad),i}function Yie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=gi.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};x_.setConvert(f,t);var v=x_.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 M_=te((b1e,PF)=>{"use strict";var Bv=dl(),Gie=Gm().attributes,Vie=es().dash,Hv=Zh(),Wie=xo().overrideAll,DF=Bd(),EF={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:Bv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:Vie},Zie=PF.exports=Wie({domain:Gie({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:DF(Hv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:DF(Hv.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:Bv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Hv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Hv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Hv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Hv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Bv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Bv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Bv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Bv.background},lonaxis:EF,lataxis:EF},"plot","from-root");Zie.uirevision={valType:"any",editType:"none"}});var zF=te((_1e,RF)=>{"use strict";var Xie=dr(),jie=_n(),Jie=Gm().defaults;RF.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 Xie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var gy=dr(),$ie=zF(),Kie=A1().getSubplotData,my=Zh(),Qie=M_(),NF=my.axesNames;FF.exports=function(r,t,n){$ie(r,t,n,{type:"geo",attributes:Qie,handleDefaults:eoe,fullData:n,partition:"y"})};function eoe(e,r,t,n){var a=Kie(n.fullData,"geo",n.id),i=a.map(function(ce){return ce.index}),o=t("resolution"),l=t("scope"),s=my.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=!!my.lonaxisSpan[u];if(e.visible===!1){var p=gy.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&&H<0&&(H+=360);var V=(Z+H)/2,U;if(!f){var ee=v?s.projRotate:[V,0,0];U=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?V:U,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 se=t("fitbounds");se&&(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 A_=te((w1e,OF)=>{"use strict";var roe=A1().getSubplotCalcData,toe=dr().counterRegex,noe=qF(),xs="geo",HF=toe(xs),BF={};BF[xs]={valType:"subplotid",dflt:xs,editType:"calc"};function aoe(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[xs],a=0;a{"use strict";UF.exports={attributes:Wh(),supplyDefaults:bN(),colorbar:Ub(),formatLabels:wN(),calc:SN(),calcGeoJSON:c_().calcGeoJSON,plot:c_().plot,style:l_(),styleOnSelect:Dh().styleOnSelect,hoverPoints:uF(),eventData:cF(),selectPoints:dF(),moduleType:"trace",name:"scattergeo",basePlotModule:A_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var VF=te((A1e,GF)=>{"use strict";GF.exports=YF()});var yy=te((T1e,XF)=>{"use strict";var{hovertemplateAttrs:loe,templatefallbackAttrs:soe}=lc(),Mf=Wh(),uoe=J0(),WF=_o(),foe=dl().defaultLine,wf=ua().extendFlat,ZF=Mf.marker.line;XF.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({},ZF.color,{dflt:foe}),width:wf({},ZF.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({},WF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:loe(),hovertemplatefallback:soe(),showlegend:wf({},WF.showlegend,{dflt:!1})},uoe("",{cLetter:"z",editTypeOverride:"calc"}))});var JF=te((k1e,jF)=>{"use strict";var Kh=dr(),coe=$0(),voe=yy(),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(" ");jF.exports=function(r,t,n,a){function i(h,d){return Kh.coerce(r,t,voe,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(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"),coe(r,t,a,i,{prefix:"",cLetter:"z"}),Kh.coerceSelectionMarkerOpacity(t,i)}});var KF=te((S1e,$F)=>{"use strict";$F.exports={min:"zmin",max:"zmax"}});var tI=te((C1e,rI)=>{"use strict";var QF=Ht(),doe=Rn().BADNUM,poe=vp(),goe=kh(),moe=sm();function eI(e){return e&&typeof e=="string"}rI.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return eI(f)||QF(f)}:i=eI;for(var o=0;o{"use strict";var yoe=kt(),boe=Et(),T_=fn(),_oe=dp();function xoe(e,r){r&&nI(e,r)}function nI(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=_oe.makeColorScaleFuncFromTrace(t);a.each(function(s){yoe.select(this).attr("fill",l(s.z)).call(boe.stroke,s.mlc||o.color).call(T_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),T_.selectedPointStyle(a,t)}function woe(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?T_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):nI(e,r)}aI.exports={style:xoe,styleOnSelect:woe}});var k_=te((q1e,lI)=>{"use strict";var Moe=kt(),iI=dr(),Ov=sy(),Aoe=Km().getTopojsonFeatures,oI=tf().findExtremes,Toe=by().style;function koe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");iI.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=Moe.select(this),o=i.selectAll("path.choroplethlocation").data(iI.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Toe(e,a)})}function Soe(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"?Ov.extractTraceFeature(e):Aoe(t,a.topojson),s=[],u=[],f=0;f{"use strict";var Coe=Dn(),Loe=yy(),qoe=dr().fillText;sI.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 cI=te((E1e,fI)=>{"use strict";fI.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 hI=te((P1e,vI)=>{"use strict";vI.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";dI.exports={attributes:yy(),supplyDefaults:JF(),colorbar:KF(),calc:tI(),calcGeoJSON:k_().calcGeoJSON,plot:k_().plot,style:by().style,styleOnSelect:by().styleOnSelect,hoverPoints:uI(),eventData:cI(),selectPoints:hI(),moduleType:"trace",name:"choropleth",basePlotModule:A_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var mI=te((z1e,gI)=>{"use strict";gI.exports=pI()});var Ya=te((N1e,bI)=>{"use strict";var yI=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Poe=Object.prototype.propertyIsEnumerable;function Roe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function zoe(){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}}bI.exports=zoe()?Object.assign:function(e,r){for(var t,n=Roe(e),a,i=1;i{var xy=Ya();function _I(){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={}}xy(_I.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 S_(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 _y(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}xy(S_.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?"-":"")+_y(Math.abs(this.year()),4)+"-"+_y(this.month(),2)+"-"+_y(this.day(),2)}});function C_(){this.shortYearCutoff="+10"}xy(C_.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 S_(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?"-":"")+_y(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=xI.exports=new _I;Tt.cdate=S_;Tt.baseCalendar=C_;Tt.calendars.gregorian=L_});var wI=te(()=>{var q_=Ya(),Sa=Ga();q_(Sa.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"});Sa.local=Sa.regionalOptions[""];q_(Sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});q_(Sa.baseCalendar.prototype,{UNIX_EPOCH:Sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Sa.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 Sa.local.invalidFormat||Sa.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(Z,H){var V=_(Z,H),U=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(Z)+1],ee=new RegExp("^-?\\d{1,"+U+"}"),ie=r.substring(D).match(ee);if(!ie)throw(Sa.local.missingNumberAt||Sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ie[0].length,parseInt(ie[0],10)},x=this,b=function(){if(typeof l=="function"){_("m");var Z=l.call(x,r.substring(D));return D+=Z.length,Z}return C("m")},A=function(Z,H,V,U){for(var ee=_(Z,U)?V:H,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 MI=te(()=>{var Af=Ga(),Noe=Ya(),D_=Af.instance();function wy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wy.prototype=new Af.baseCalendar;Noe(wy.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(Ioe);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(Hoe);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(Boe);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=D_.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=Uoe(e,i,t,a);return D_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=D_.fromJD(e),t=Ooe(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(Foe),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(wy.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 Foe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ioe=/^\d?\d[iI]?/m,Hoe=/^闰?十?[一二三四五六七八九]?月/m,Boe=/^闰?十?[一二三四五六七八九]?/m;Af.calendars.chinese=wy;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 Ooe(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 AI=te(()=>{var Jc=Ga(),Yoe=Ya();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Jc.baseCalendar;Yoe(E_.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,Jc.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,Jc.local.invalidYear||Jc.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,Jc.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,Jc.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)}});Jc.calendars.coptic=E_});var TI=te(()=>{var mu=Ga(),Goe=Ya();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new mu.baseCalendar;Goe(P_.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:Voe[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 Voe={20:"Fruitbat",21:"Anchovy"};mu.calendars.discworld=P_});var kI=te(()=>{var $c=Ga(),Woe=Ya();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new $c.baseCalendar;Woe(R_.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,$c.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,$c.local.invalidYear||$c.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,$c.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,$c.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)}});$c.calendars.ethiopian=R_});var SI=te(()=>{var Sf=Ga(),Zoe=Ya();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Sf.baseCalendar;Zoe(z_.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,My(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&&My(this.daysInYear(e),10)===5?30:r===9&&My(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 My(e,r){return e-r*Math.floor(e/r)}Sf.calendars.hebrew=z_});var CI=te(()=>{var Qh=Ga(),Xoe=Ya();function N_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N_.prototype=new Qh.baseCalendar;Xoe(N_.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=N_});var LI=te(()=>{var ed=Ga(),joe=Ya();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new ed.baseCalendar;joe(F_.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=F_});var DI=te(()=>{var Uo=Ga(),Joe=Ya();function H_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H_.prototype=new Uo.baseCalendar;Joe(H_.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=I_(e+8+17*20,365);return[Math.floor(r/20)+1,I_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[qI(e+20,20),qI(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 I_(e,r){return e-r*Math.floor(e/r)}function qI(e,r){return I_(e-1,r)+1}Uo.calendars.mayan=H_});var PI=te(()=>{var Kc=Ga(),$oe=Ya();function B_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B_.prototype=new Kc.baseCalendar;var EI=Kc.instance("gregorian");$oe(B_.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,Kc.local.invalidYear||Kc.regionalOptions[""].invalidYear);return EI.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,Kc.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,Kc.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)}});Kc.calendars.nanakshahi=B_});var RI=te(()=>{var Qc=Ga(),Koe=Ya();function O_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O_.prototype=new Qc.baseCalendar;Koe(O_.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,Qc.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,Qc.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,Qc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Qc.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=Qc.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 Uv=Ga(),Qoe=Ya();function Ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ay(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}Ty.prototype=new Uv.baseCalendar;Qoe(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,Uv.local.invalidYear);return Ay(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,Uv.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,Uv.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,Ay(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)}});Uv.calendars.persian=Ty;Uv.calendars.jalali=Ty});var NI=te(()=>{var e0=Ga(),ele=Ya(),ky=e0.instance();function U_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U_.prototype=new e0.baseCalendar;ele(U_.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,e0.local.invalidYear),t=this._t2gYear(r.year());return ky.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,e0.local.invalidYear),a=this._t2gYear(n.year());return ky.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,e0.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,e0.local.invalidDate),a=this._t2gYear(n.year());return ky.toJD(a,n.month(),n.day())},fromJD:function(e){var r=ky.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)}});e0.calendars.taiwan=U_});var FI=te(()=>{var r0=Ga(),rle=Ya(),Sy=r0.instance();function Y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y_.prototype=new r0.baseCalendar;rle(Y_.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,r0.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,r0.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,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(a,r,t){var n=this._validate(a,r,t,r0.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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});r0.calendars.thai=Y_});var II=te(()=>{var t0=Ga(),tle=Ya();function G_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G_.prototype=new t0.baseCalendar;tle(G_.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,t0.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,t0.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,t0.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=t0.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=t0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});t0.calendars.ummalqura=G_;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 BI=te((dhe,HI)=>{"use strict";HI.exports=Ga();wI();MI();AI();TI();kI();SI();CI();LI();DI();PI();RI();zI();NI();FI();II()});var ZI=te((phe,WI)=>{"use strict";var UI=BI(),rd=dr(),YI=Rn(),nle=YI.EPOCHJD,ale=YI.ONEDAY,Z_={valType:"enumerated",values:rd.sortObjectKeys(UI.calendars),editType:"calc",dflt:"gregorian"},GI=function(e,r,t,n){var a={};return a[t]=Z_,rd.coerce(e,r,a,t,n)},ile=function(e,r,t,n){for(var a=0;a{"use strict";XI.exports=ZI()});var cle=te((mhe,$I)=>{var JI=vN();JI.register([VF(),mI(),jI()]);$I.exports=JI});return cle();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 4d9c26aaa57..67d44c4053a 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -13783,9 +13783,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35913,7 +35913,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-gl2d.min.js b/dist/plotly-gl2d.min.js index a6831eac391..08873941bb4 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var jne=Object.create;var B1=Object.defineProperty,Xne=Object.defineProperties,Zne=Object.getOwnPropertyDescriptor,Jne=Object.getOwnPropertyDescriptors,$ne=Object.getOwnPropertyNames,TM=Object.getOwnPropertySymbols,Qne=Object.getPrototypeOf,SM=Object.prototype.hasOwnProperty,Kne=Object.prototype.propertyIsEnumerable;var MM=(e,r,t)=>r in e?B1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_h=(e,r)=>{for(var t in r||(r={}))SM.call(r,t)&&MM(e,t,r[t]);if(TM)for(var t of TM(r))Kne.call(r,t)&&MM(e,t,r[t]);return e},Rg=(e,r)=>Xne(e,Jne(r));var qg=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),eie=(e,r)=>{for(var t in r)B1(e,t,{get:r[t],enumerable:!0})},EM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of $ne(r))!SM.call(e,n)&&n!==t&&B1(e,n,{get:()=>r[n],enumerable:!(a=Zne(r,n))||a.enumerable});return e};var rie=(e,r,t)=>(t=e!=null?jne(Qne(e)):{},EM(r||!e||!e.__esModule?B1(t,"default",{value:e,enumerable:!0}):t,e)),tie=e=>EM(B1({},"__esModule",{value:!0}),e);var Pg=N(kM=>{"use strict";kM.version="3.4.0"});var LM=N((CM,Ng)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Ng!="undefined"&&Ng.exports&&(Ng.exports=t[r])})("Promise",typeof window!="undefined"?window:CM,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 le=-1,ye=Z.length,ge=g[ie++],je,Qe,Me,Fe=new x,Ge;++le=g.length)return q;var ie=[],le=w[Z++];return q.forEach(function(ye,ge){ie.push({key:ye,values:G(ge,Z)})}),le?ie.sort(function(ye,ge){return le(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 V;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 se(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)),qe.hasOwnProperty(w)?{space:qe[w],local:h}:h}},$e.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," ")}$e.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Er(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},$e.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=Hr.get(h);G&&(h=G,D=Wr);function q(){var le=this[C];le&&(this.removeEventListener(h,le,le.$),delete this[C])}function Z(){var le=D(g,t(arguments));q.call(this),this.addEventListener(h,this[C]=le,le.$=w),le._=g}function ie(){var le=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ye;for(var ge in this)if(ye=ge.match(le)){var je=this[ge];this.removeEventListener(ye[1],je,je.$),delete this[ge]}}return L?g?Z:q:g?j:ie}var Hr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Hr.forEach(function(h){"on"+h in a&&Hr.remove(h)});function ot(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 Wr(h,g){var w=ot(h,g);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var tt,xt=0;function jr(h){var g=".dragsuppress-"+ ++xt,w="click"+g,C=e.select(i(h)).on("touchmove"+g,Le).on("dragstart"+g,Le).on("selectstart"+g,Le);if(tt==null&&(tt="onselectstart"in h?!1:Q(h.style,"userSelect")),tt){var L=n(h).style,D=L[tt];L[tt]="none"}return function(G){if(C.on(g,null),tt&&(L[tt]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){Le(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return gr(h,Ue())};var at=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function gr(h,g){g.changedTouches&&(g=g.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(at<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();at=!(D.f||D.e),w.remove()}}return at?(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=Ue().changedTouches),g){for(var C=0,L=g.length,D;C0?1:h<0?-1:0}function Ba(h,g,w){return(g[0]-h[0])*(w[1]-h[1])-(g[1]-h[1])*(w[0]-h[0])}function an(h){return h>1?0:h<-1?_r:Math.acos(h)}function Va(h){return h>1?wt:h<-1?-wt:Math.asin(h)}function xn(h){return((h=Math.exp(h))-1/h)/2}function Pn(h){return((h=Math.exp(h))+1/h)/2}function di(h){return((h=Math.exp(2*h))-1)/(h+1)}function hn(h){return(h=Math.sin(h/2))*h}var Jn=Math.SQRT2,Et=2,Pa=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,le=Z*Z+ie*ie,ye,ge;if(le0&&(dt=dt.transition().duration(G)),dt.call(tr.event)}function Ct(){Fe&&Fe.domain(Me.range().map(function(dt){return(dt-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ge.range().map(function(dt){return(dt-h.y)/h.k}).map(Ge.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 Nt(){var dt=this,Yt=Qe.of(dt,arguments),jt=0,va=e.select(i(dt)).on(ie,Kn).on(le,ei),Ya=De(e.mouse(dt)),Dn=jr(dt);Lc.call(dt),Lt(Yt);function Kn(){jt=1,it(e.mouse(dt),Ya),Vt(Yt)}function ei(){va.on(ie,null).on(le,null),Dn(jt),Rt(Yt)}}function ma(){var dt=this,Yt=Qe.of(dt,arguments),jt={},va=0,Ya,Dn=".zoom-"+e.event.changedTouches[0].identifier,Kn="touchmove"+Dn,ei="touchend"+Dn,Di=[],S=e.select(dt),B=jr(dt);he(),Lt(Yt),S.on(Z,null).on(ge,he);function Y(){var _e=e.touches(dt);return Ya=h.k,_e.forEach(function(Ye){Ye.identifier in jt&&(jt[Ye.identifier]=De(Ye))}),_e}function he(){var _e=e.event.target;e.select(_e).on(Kn,xe).on(ei,Ae),Di.push(_e);for(var Ye=e.event.changedTouches,ir=0,nr=Ye.length;ir1){var Rr=lr[0],yr=lr[1],Ne=Rr[0]-yr[0],ue=Rr[1]-yr[1];va=Ne*Ne+ue*ue}}function xe(){var _e=e.touches(dt),Ye,ir,nr,lr;Lc.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 pi(G(h+120),G(h),G(h-120))}e.hcl=en;function en(h,g,w){return this instanceof en?(this.h=+h,this.c=+g,void(this.l=+w)):arguments.length<2?h instanceof en?new en(h.h,h.c,h.l):h instanceof dn?Bo(h.l,h.a,h.b):Bo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new en(h,g,w)}var fo=en.prototype=new Qa;fo.brighter=function(h){return new en(this.h,this.c,Math.min(100,this.l+nn*(arguments.length?h:1)))},fo.darker=function(h){return new en(this.h,this.c,Math.max(0,this.l-nn*(arguments.length?h:1)))},fo.rgb=function(){return Ii(this.h,this.c,this.l).rgb()};function Ii(h,g,w){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new dn(w,Math.cos(h*=Ot)*g,Math.sin(h)*g)}e.lab=dn;function dn(h,g,w){return this instanceof dn?(this.l=+h,this.a=+g,void(this.b=+w)):arguments.length<2?h instanceof dn?new dn(h.l,h.a,h.b):h instanceof en?Ii(h.h,h.c,h.l):_t((h=pi(h)).r,h.g,h.b):new dn(h,g,w)}var nn=18,$n=.95047,cs=1,vs=1.08883,Cl=dn.prototype=new Qa;Cl.brighter=function(h){return new dn(Math.min(100,this.l+nn*(arguments.length?h:1)),this.a,this.b)},Cl.darker=function(h){return new dn(Math.max(0,this.l-nn*(arguments.length?h:1)),this.a,this.b)},Cl.rgb=function(){return tc(this.l,this.a,this.b)};function tc(h,g,w){var C=(h+16)/116,L=C+g/500,D=C-w/200;return L=$f(L)*$n,C=$f(C)*cs,D=$f(D)*vs,new pi(ji(3.2404542*L-1.5371385*C-.4985314*D),ji(-.969266*L+1.8760108*C+.041556*D),ji(.0556434*L-.2040259*C+1.0572252*D))}function Bo(h,g,w){return h>0?new en(Math.atan2(w,g)*ta,Math.sqrt(g*g+w*w),h):new en(NaN,NaN,h)}function $f(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Qf(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=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):$t(""+h,pi,Ka):new pi(h,g,w)}function Oi(h){return new pi(h>>16,h>>8&255,h&255)}function Ll(h){return Oi(h)+""}var mi=pi.prototype=new Qa;mi.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 ca(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 fa(G,q,Z)}function _t(h,g,w){h=Qn(h),g=Qn(g),w=Qn(w);var C=Qf((.4124564*h+.3575761*g+.1804375*w)/$n),L=Qf((.2126729*h+.7151522*g+.072175*w)/cs),D=Qf((.0193339*h+.119192*g+.9503041*w)/vs);return dn(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 za(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,Oi(g))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=Ao(ae);function Ao(h){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ol(g,w,h,C)}}function ol(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 le=q.status,ye;if(!le&&t1(q)||le>=200&&le<300||le===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(le){var ye=e.event;e.event=le;try{D.progress.call(L,q)}finally{e.event=ye}},L.header=function(le,ye){return le=(le+"").toLowerCase(),arguments.length<2?G[le]:(ye==null?delete G[le]:G[le]=ye+"",L)},L.mimeType=function(le){return arguments.length?(g=le==null?null:le+"",L):g},L.responseType=function(le){return arguments.length?(Z=le,L):Z},L.response=function(le){return w=le,L},["get","post"].forEach(function(le){L[le]=function(){return L.send.apply(L,[le].concat(t(arguments)))}}),L.send=function(le,ye,ge){if(arguments.length===2&&typeof ye=="function"&&(ge=ye,ye=null),q.open(le,h,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),q.setRequestHeader)for(var je in G)q.setRequestHeader(je,G[je]);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(Ei(C))}function Ei(h){return h.length===1?function(g,w){h(g==null?w:null)}:h}function t1(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var w=new RegExp('["'+h+` +"use strict";var Plotly=(()=>{var jne=Object.create;var B1=Object.defineProperty,Xne=Object.defineProperties,Zne=Object.getOwnPropertyDescriptor,Jne=Object.getOwnPropertyDescriptors,$ne=Object.getOwnPropertyNames,TM=Object.getOwnPropertySymbols,Qne=Object.getPrototypeOf,SM=Object.prototype.hasOwnProperty,Kne=Object.prototype.propertyIsEnumerable;var MM=(e,r,t)=>r in e?B1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_h=(e,r)=>{for(var t in r||(r={}))SM.call(r,t)&&MM(e,t,r[t]);if(TM)for(var t of TM(r))Kne.call(r,t)&&MM(e,t,r[t]);return e},qg=(e,r)=>Xne(e,Jne(r));var Pg=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),eie=(e,r)=>{for(var t in r)B1(e,t,{get:r[t],enumerable:!0})},EM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of $ne(r))!SM.call(e,n)&&n!==t&&B1(e,n,{get:()=>r[n],enumerable:!(a=Zne(r,n))||a.enumerable});return e};var rie=(e,r,t)=>(t=e!=null?jne(Qne(e)):{},EM(r||!e||!e.__esModule?B1(t,"default",{value:e,enumerable:!0}):t,e)),tie=e=>EM(B1({},"__esModule",{value:!0}),e);var Ng=N(kM=>{"use strict";kM.version="3.4.0"});var LM=N((CM,Ig)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Ig!="undefined"&&Ig.exports&&(Ig.exports=t[r])})("Promise",typeof window!="undefined"?window:CM,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 le=-1,ye=Z.length,ge=g[ie++],je,Qe,Me,Fe=new x,Ge;++le=g.length)return q;var ie=[],le=w[Z++];return q.forEach(function(ye,ge){ie.push({key:ye,values:G(ge,Z)})}),le?ie.sort(function(ye,ge){return le(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 V;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 se(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)),qe.hasOwnProperty(w)?{space:qe[w],local:h}:h}},$e.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," ")}$e.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Er(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},$e.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=Hr.get(h);G&&(h=G,D=Wr);function q(){var le=this[C];le&&(this.removeEventListener(h,le,le.$),delete this[C])}function Z(){var le=D(g,t(arguments));q.call(this),this.addEventListener(h,this[C]=le,le.$=w),le._=g}function ie(){var le=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ye;for(var ge in this)if(ye=ge.match(le)){var je=this[ge];this.removeEventListener(ye[1],je,je.$),delete this[ge]}}return L?g?Z:q:g?j:ie}var Hr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Hr.forEach(function(h){"on"+h in a&&Hr.remove(h)});function ot(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 Wr(h,g){var w=ot(h,g);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var tt,xt=0;function jr(h){var g=".dragsuppress-"+ ++xt,w="click"+g,C=e.select(i(h)).on("touchmove"+g,Le).on("dragstart"+g,Le).on("selectstart"+g,Le);if(tt==null&&(tt="onselectstart"in h?!1:Q(h.style,"userSelect")),tt){var L=n(h).style,D=L[tt];L[tt]="none"}return function(G){if(C.on(g,null),tt&&(L[tt]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){Le(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return gr(h,Ue())};var at=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function gr(h,g){g.changedTouches&&(g=g.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(at<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();at=!(D.f||D.e),w.remove()}}return at?(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=Ue().changedTouches),g){for(var C=0,L=g.length,D;C0?1:h<0?-1:0}function Ba(h,g,w){return(g[0]-h[0])*(w[1]-h[1])-(g[1]-h[1])*(w[0]-h[0])}function an(h){return h>1?0:h<-1?_r:Math.acos(h)}function Va(h){return h>1?wt:h<-1?-wt:Math.asin(h)}function xn(h){return((h=Math.exp(h))-1/h)/2}function Pn(h){return((h=Math.exp(h))+1/h)/2}function di(h){return((h=Math.exp(2*h))-1)/(h+1)}function hn(h){return(h=Math.sin(h/2))*h}var Jn=Math.SQRT2,Et=2,Pa=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,le=Z*Z+ie*ie,ye,ge;if(le0&&(dt=dt.transition().duration(G)),dt.call(tr.event)}function Ct(){Fe&&Fe.domain(Me.range().map(function(dt){return(dt-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ge.range().map(function(dt){return(dt-h.y)/h.k}).map(Ge.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 Nt(){var dt=this,Yt=Qe.of(dt,arguments),jt=0,va=e.select(i(dt)).on(ie,Kn).on(le,ei),Ya=De(e.mouse(dt)),Dn=jr(dt);Lc.call(dt),Lt(Yt);function Kn(){jt=1,it(e.mouse(dt),Ya),Vt(Yt)}function ei(){va.on(ie,null).on(le,null),Dn(jt),Rt(Yt)}}function ma(){var dt=this,Yt=Qe.of(dt,arguments),jt={},va=0,Ya,Dn=".zoom-"+e.event.changedTouches[0].identifier,Kn="touchmove"+Dn,ei="touchend"+Dn,Di=[],S=e.select(dt),B=jr(dt);he(),Lt(Yt),S.on(Z,null).on(ge,he);function Y(){var _e=e.touches(dt);return Ya=h.k,_e.forEach(function(Ye){Ye.identifier in jt&&(jt[Ye.identifier]=De(Ye))}),_e}function he(){var _e=e.event.target;e.select(_e).on(Kn,xe).on(ei,Ae),Di.push(_e);for(var Ye=e.event.changedTouches,ir=0,nr=Ye.length;ir1){var Rr=lr[0],yr=lr[1],Ne=Rr[0]-yr[0],ue=Rr[1]-yr[1];va=Ne*Ne+ue*ue}}function xe(){var _e=e.touches(dt),Ye,ir,nr,lr;Lc.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 pi(G(h+120),G(h),G(h-120))}e.hcl=en;function en(h,g,w){return this instanceof en?(this.h=+h,this.c=+g,void(this.l=+w)):arguments.length<2?h instanceof en?new en(h.h,h.c,h.l):h instanceof dn?Bo(h.l,h.a,h.b):Bo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new en(h,g,w)}var fo=en.prototype=new Qa;fo.brighter=function(h){return new en(this.h,this.c,Math.min(100,this.l+nn*(arguments.length?h:1)))},fo.darker=function(h){return new en(this.h,this.c,Math.max(0,this.l-nn*(arguments.length?h:1)))},fo.rgb=function(){return Ii(this.h,this.c,this.l).rgb()};function Ii(h,g,w){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new dn(w,Math.cos(h*=Ot)*g,Math.sin(h)*g)}e.lab=dn;function dn(h,g,w){return this instanceof dn?(this.l=+h,this.a=+g,void(this.b=+w)):arguments.length<2?h instanceof dn?new dn(h.l,h.a,h.b):h instanceof en?Ii(h.h,h.c,h.l):_t((h=pi(h)).r,h.g,h.b):new dn(h,g,w)}var nn=18,$n=.95047,cs=1,vs=1.08883,Cl=dn.prototype=new Qa;Cl.brighter=function(h){return new dn(Math.min(100,this.l+nn*(arguments.length?h:1)),this.a,this.b)},Cl.darker=function(h){return new dn(Math.max(0,this.l-nn*(arguments.length?h:1)),this.a,this.b)},Cl.rgb=function(){return tc(this.l,this.a,this.b)};function tc(h,g,w){var C=(h+16)/116,L=C+g/500,D=C-w/200;return L=$f(L)*$n,C=$f(C)*cs,D=$f(D)*vs,new pi(ji(3.2404542*L-1.5371385*C-.4985314*D),ji(-.969266*L+1.8760108*C+.041556*D),ji(.0556434*L-.2040259*C+1.0572252*D))}function Bo(h,g,w){return h>0?new en(Math.atan2(w,g)*ta,Math.sqrt(g*g+w*w),h):new en(NaN,NaN,h)}function $f(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Qf(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=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):$t(""+h,pi,Ka):new pi(h,g,w)}function Oi(h){return new pi(h>>16,h>>8&255,h&255)}function Ll(h){return Oi(h)+""}var mi=pi.prototype=new Qa;mi.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 ca(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 fa(G,q,Z)}function _t(h,g,w){h=Qn(h),g=Qn(g),w=Qn(w);var C=Qf((.4124564*h+.3575761*g+.1804375*w)/$n),L=Qf((.2126729*h+.7151522*g+.072175*w)/cs),D=Qf((.0193339*h+.119192*g+.9503041*w)/vs);return dn(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 za(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,Oi(g))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=Ao(ae);function Ao(h){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ol(g,w,h,C)}}function ol(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 le=q.status,ye;if(!le&&t1(q)||le>=200&&le<300||le===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(le){var ye=e.event;e.event=le;try{D.progress.call(L,q)}finally{e.event=ye}},L.header=function(le,ye){return le=(le+"").toLowerCase(),arguments.length<2?G[le]:(ye==null?delete G[le]:G[le]=ye+"",L)},L.mimeType=function(le){return arguments.length?(g=le==null?null:le+"",L):g},L.responseType=function(le){return arguments.length?(Z=le,L):Z},L.response=function(le){return w=le,L},["get","post"].forEach(function(le){L[le]=function(){return L.send.apply(L,[le].concat(t(arguments)))}}),L.send=function(le,ye,ge){if(arguments.length===2&&typeof ye=="function"&&(ge=ye,ye=null),q.open(le,h,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),q.setRequestHeader)for(var je in G)q.setRequestHeader(je,G[je]);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(Ei(C))}function Ei(h){return h.length===1?function(g,w){h(g==null?w:null)}:h}function t1(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,le,ye){arguments.length<3&&(ye=le,le=null);var ge=ol(ie,g,le==null?D:G(le),ye);return ge.row=function(je){return arguments.length?ge.response((le=je)==null?D:G(je)):le},ge}function D(ie){return L.parse(ie.responseText)}function G(ie){return function(le){return L.parse(le.responseText,ie)}}L.parse=function(ie,le){var ye;return L.parseRows(ie,function(ge,je){if(ye)return ye(ge,je-1);var Qe=function(Me){for(var Fe={},Ge=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++24?(isFinite(g)&&(clearTimeout(yi),yi=setTimeout(To,g)),zo=0):(zo=1,nf(To))}e.timer.flush=function(){Fl(),ac()};function Fl(){for(var h=Date.now(),g=Mn;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function ac(){for(var h,g=Mn,w=1/0;g;)g.c?(g.t=0;--q)Me.push(L[ie[ye[q]][2]]);for(q=+je;q1&&Ba(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function a1(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return we(h,nc),h};var nc=e.geom.polygon.prototype=[];nc.area=function(){for(var h=-1,g=this.length,w,C=this[g-1],L=0;++hOe)q=q.L;else if(G=g-Hv(q,w),G>Oe){if(!q.R){C=q;break}q=q.R}else{D>-Oe?(C=q.P,L=q):G>-Oe?(C=q,L=q.N):C=L=q;break}var Z=ic(h);if(gi.insert(C,Z),!(!C&&!L)){if(C===L){ff(C),L=ic(C.site),gi.insert(Z,L),Z.edge=L.edge=tu(C.site,Z.site),Bi(C),Bi(L);return}if(!L){Z.edge=tu(C.site,Z.site);return}ff(C),ff(L);var ie=C.site,le=ie.x,ye=ie.y,ge=h.x-le,je=h.y-ye,Qe=L.site,Me=Qe.x-le,Fe=Qe.y-ye,Ge=2*(ge*Fe-je*Me),er=ge*ge+je*je,tr=Me*Me+Fe*Fe,De={x:(Fe*er-je*tr)/Ge+le,y:(ge*tr-Me*er)/Ge+ye};ql(L.edge,ie,Qe,De),Z.edge=tu(ie,h,null,De),L.edge=tu(h,Qe,null,De),Bi(C),Bi(L)}}function oc(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 le=q-C,ye=1/D-1/ie,ge=le/ie;return ye?(-ge+Math.sqrt(ge*ge-2*ye*(le*le/(-2*ie)-Z+ie/2+L-D/2)))/ye+C:(C+q)/2}function Hv(h,g){var w=h.N;if(w)return oc(w,g);var C=h.site;return C.y===g?C.x:1/0}function lc(h){this.site=h,this.edges=[]}lc.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 So(h){for(var g=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,Z,ie=Mo,le=ie.length,ye,ge,je,Qe,Me,Fe;le--;)if(ye=ie[le],!(!ye||!ye.prepare()))for(je=ye.edges,Qe=je.length,ge=0;geOe||b(Z-G)>Oe)&&(je.splice(ge,0,new sc(o1(ye.site,Fe,b(q-g)Oe?{x:g,y:b(D-g)Oe?{x:b(G-L)Oe?{x:w,y:b(D-w)Oe?{x:b(G-C)=-pr)){var ge=Z*Z+ie*ie,je=le*le+Fe*Fe,Qe=(Fe*ge-ie*je)/ye,Me=(Z*je-le*ge)/ye,Fe=Me+q,Ge=lf.pop()||new eu;Ge.arc=h,Ge.site=L,Ge.x=Qe+G,Ge.y=Fe+Math.sqrt(Qe*Qe+Me*Me),Ge.cy=Fe,h.circle=Ge;for(var er=null,tr=ll._;tr;)if(Ge.y0)){if(Me/=je,je<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=w-q,!(!je&&Me<0)){if(Me/=je,je<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(je>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*je,y:Z+ye*Qe}),ge<1&&(L.b={x:q+ge*je,y:Z+ge*Qe}),L}}}}}}function i1(h){for(var g=Ho,w=n1(h[0][0],h[0][1],h[1][0],h[1][1]),C=g.length,L;C--;)L=g[C],(!ru(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(le>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(le>ge){if(!C)C={x:(G-Ge)/Fe,y:G};else if(C.y>=q)return;w={x:(q-Ge)/Fe,y:q}}else{if(!C)C={x:(q-Ge)/Fe,y:q};else if(C.y=D)return;w={x:D,y:Fe*D+Ge}}else{if(!C)C={x:D,y:Fe*D+Ge};else if(C.x=le&&Ge.x<=ge&&Ge.y>=ye&&Ge.y<=je?[[le,je],[ge,je],[ge,ye],[le,ye]]:[];er.point=Z[Me]}),ie}function q(Z){return Z.map(function(ie,le){return{x:Math.round(C(ie,le)/Oe)*Oe,y:Math.round(L(ie,le)/Oe)*Oe,i:le}})}return G.links=function(Z){return fl(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 fl(q(Z)).cells.forEach(function(le,ye){for(var ge=le.site,je=le.edges.sort(sf),Qe=-1,Me=je.length,Fe,Ge,er=je[Me-1].edge,tr=er.l===ge?er.r:er.l;++Qetr&&(tr=le.x),le.y>De&&(De=le.y),je.push(le.x),Qe.push(le.y);else for(Me=0;Metr&&(tr=Fr),Br>De&&(De=Br),je.push(Fr),Qe.push(Br)}var it=tr-Ge,yt=De-er;it>yt?De=er+it:tr=Ge+yt;function Ct(Rt,Nt,ma,_n,Ca,dt,Yt,jt){if(!(isNaN(ma)||isNaN(_n)))if(Rt.leaf){var va=Rt.x,Ya=Rt.y;if(va!=null)if(b(va-ma)+b(Ya-_n)<.01)Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt);else{var Dn=Rt.point;Rt.x=Rt.y=Rt.point=null,Lt(Rt,Dn,va,Ya,Ca,dt,Yt,jt),Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}else Rt.x=ma,Rt.y=_n,Rt.point=Nt}else Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}function Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt){var va=(Ca+Yt)*.5,Ya=(dt+jt)*.5,Dn=ma>=va,Kn=_n>=Ya,ei=Kn<<1|Dn;Rt.leaf=!1,Rt=Rt.nodes[ei]||(Rt.nodes[ei]=O0()),Dn?Ca=va:Yt=va,Kn?dt=Ya:jt=Ya,Ct(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}var Vt=O0();if(Vt.add=function(Rt){Ct(Vt,Rt,+ye(Rt,++Me),+ge(Rt,Me),Ge,er,tr,De)},Vt.visit=function(Rt){au(Rt,Vt,Ge,er,tr,De)},Vt.find=function(Rt){return Vv(Vt,Rt[0],Rt[1],Ge,er,tr,De)},Me=-1,g==null){for(;++MeD||ge>G||je=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:ki(C,L)})),w=nu.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)?Eo:Sn:g instanceof Qa?Eo:Array.isArray(g)?cf:w==="object"&&isNaN(g)?B0:ki)(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)||uc,C=Wv.get(C)||ae,c1(C(w.apply(null,r.call(arguments,1))))};function c1(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function uo(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 Zi(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 v1(h){return Math.pow(2,10*(h-1))}function h1(h){return 1-Math.sqrt(1-h*h)}function d1(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 p1(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function iu(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 Ii(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateHsl=m1;function m1(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 Ka(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 tc(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateRound=cc;function cc(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 z0(C?C.matrix:gs)})(h)};function z0(h){var g=[h.a,h.b],w=[h.c,h.d],C=G0(g),L=Pl(g,w),D=G0(Ci(w,g,-L))||0;g[0]*w[1]180?g+=360:g-h>180&&(h+=360),C.push({i:w.push(Nl(w)+"rotate(",null,")")-2,x:ki(h,g)})):g&&w.push(Nl(w)+"rotate("+g+")")}function rh(h,g,w,C){h!==g?C.push({i:w.push(Nl(w)+"skewX(",null,")")-2,x:ki(h,g)}):g&&w.push(Nl(w)+"skewX("+g+")")}function th(h,g,w,C){if(h[0]!==g[0]||h[1]!==g[1]){var L=w.push(Nl(w)+"scale(",null,",",null,")");C.push({i:L-4,x:ki(h[0],g[0])},{i:L-2,x:ki(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Nl(w)+"scale("+g+")")}function vc(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=Go(h.tick)),h):D},h.start=function(){var De,Fr=je.length,Br=Qe.length,it=C[0],yt=C[1],Ct,Lt;for(De=0;De=0;)D.push(le=ie[Z]),le.parent=q,le.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 Vo(L,function(ye){var ge,je;h&&(ge=ye.children)&&ge.sort(h),w&&(je=ye.parent)&&(je.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&&(lu(L,function(D){D.children&&(D.value=0)}),Vo(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=_1,h}function lu(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 Vo(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 T1(h){return h.reduce(M1,0)}function M1(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,w=E1,C=S1;function L(D,ge){for(var q=[],Z=D.map(g,this),ie=w.call(this,Z,ge),le=C.call(this,ie,Z,ge),ye,ge=-1,je=Z.length,Qe=le.length-1,Me=h?1:1/je,Fe;++ge0)for(ge=-1;++ge=ie[0]&&Fe<=ie[1]&&(ye=q[e.bisect(le,Fe,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 U0(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function S1(h,g){return U0(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function U0(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 E1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(su),g=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie=w[0],le=w[1],ye=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(Z.x=Z.y=0,Vo(Z,function(je){je.r=+ye(je.value)}),Vo(Z,V0),g){var ge=g*(C?1:Math.max(2*Z.r/ie,2*Z.r/le))/2;Vo(Z,function(je){je.r+=ge}),Vo(Z,V0),Vo(Z,function(je){je.r-=ge})}return Y0(Z,ie/2,le/2,C?1:1/Math.max(2*Z.r/ie,2*Z.r/le)),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 su(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 dc(h,g){h._pack_next=g,g._pack_prev=h}function H0(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 V0(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,le,ye,ge;function je(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(k1),G=g[0],G.x=-G.r,G.y=0,je(G),ge>1&&(q=g[1],q.x=q.r,q.y=0,je(q),ge>2))for(Z=g[2],Fg(G,q,Z),je(Z),hh(G,Z),G._pack_prev=Z,hh(Z,q),q=G._pack_next,ie=3;ieFe.x&&(Fe=Fr),Fr.depth>Ge.depth&&(Ge=Fr)});var er=g(Me,Fe)/2-Me.x,tr=w[0]/(Fe.x+g(Fe,Me)/2+er),De=w[1]/(Ge.depth||1);lu(je,function(Fr){Fr.x=(Fr.x+er)*tr,Fr.y=Fr.depth*De})}return ge}function D(le){for(var ye={A:null,children:[le]},ge=[ye],je;(je=ge.pop())!=null;)for(var Qe=je.children,Me,Fe=0,Ge=Qe.length;Fe0&&(F1(dh(Me,le,ge),le,Fr),Ge+=Fr,er+=Fr),tr+=Me.m,Ge+=je.m,De+=Fe.m,er+=Qe.m;Me&&!D1(Qe)&&(Qe.t=Me,Qe.m+=tr-er),je&&!L1(Fe)&&(Fe.t=je,Fe.m+=Ge-De,ge=le)}return ge}function ie(le){le.x*=w[0],le.y=le.depth*w[1]}return L.separation=function(le){return arguments.length?(g=le,L):g},L.size=function(le){return arguments.length?(C=(w=le)==null?ie:null,L):C?null:w},L.nodeSize=function(le){return arguments.length?(C=(w=le)==null?null:ie,L):C?w:null},bs(L,h)};function W0(h,g){return h.parent==g.parent?1:2}function L1(h){var g=h.children;return g.length?g[0]:h.t}function D1(h){var g=h.children,w;return(w=g.length)?g[w-1]:h.t}function F1(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 fu(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=W0,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie,le=0;Vo(Z,function(Me){var Fe=Me.children;Fe&&Fe.length?(Me.x=ph(Fe),Me.y=Bn(Fe)):(Me.x=ie?le+=g(Me,ie):0,Me.y=0,ie=Me)});var ye=j0(Z),ge=X0(Z),je=ye.x-g(ye,ge)/2,Qe=ge.x+g(ge,ye)/2;return Vo(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-je)/(Qe-je)*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 Bn(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 j0(h){var g=h.children;return g&&g.length?j0(g[0]):h}function X0(h){var g=h.children,w;return g&&(w=g.length)?X0(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,Fe){for(var Ge=-1,er=Me.length,tr,De;++Ge0;)er.push(De=tr[yt-1]),er.area+=De.area,q!=="squarify"||(Br=ge(er,it))<=Fr?(tr.pop(),Fr=Br):(er.area-=er.pop().area,je(er,it,Ge,!1),it=Math.min(Ge.dx,Ge.dy),er.length=er.area=0,Fr=1/0);er.length&&(je(er,it,Ge,!0),er.length=er.area=0),Fe.forEach(le)}}function ye(Me){var Fe=Me.children;if(Fe&&Fe.length){var Ge=L(Me),er=Fe.slice(),tr,De=[];for(ie(er,Ge.dx*Ge.dy/Me.value),De.area=0;tr=er.pop();)De.push(tr),De.area+=tr.area,tr.z!=null&&(je(De,tr.z?Ge.dx:Ge.dy,Ge,!er.length),De.length=De.area=0);Fe.forEach(ye)}}function ge(Me,Fe){for(var Ge=Me.area,er,tr=0,De=1/0,Fr=-1,Br=Me.length;++Frtr&&(tr=er));return Ge*=Ge,Fe*=Fe,Ge?Math.max(Fe*tr*Z/Ge,Ge/(Fe*De*Z)):1/0}function je(Me,Fe,Ge,er){var tr=-1,De=Me.length,Fr=Ge.x,Br=Ge.y,it=Fe?g(Me.area/Fe):0,yt;if(Fe==Ge.dx){for((er||it>Ge.dy)&&(it=Ge.dy);++trGe.dx)&&(it=Ge.dx);++tr1);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?Lo:R1,ie=C?nh:ah;return L=Z(h,g,ie,w),D=Z(g,h,ie,ul),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(cc)},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 yc(h,Z),G()},q.copy=function(){return J0(h,g,w,C)},G()}function co(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function yc(h,g){return cl(h,Ta(Ji(h,g)[2])),cl(h,Ta(Ji(h,g)[2])),h}function Ji(h,g){g==null&&(g=10);var w=pc(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,Ji(h,g))}var uu={s:1,g:1,p:1,r:1,e:1};function hf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function gc(h,g){var w=hf(g[2]);return h in uu?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=cl(C.map(L),w?Math:Ts);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=pc(C),Z=[],ie=q[0],le=q[1],ye=Math.floor(L(ie)),ge=Math.ceil(L(le)),je=g%1?2:g;if(isFinite(ge-ye)){if(w){for(;ye0;Qe--)Z.push(D(ye)*Qe);for(ye=0;Z[ye]le;ge--);Z=Z.slice(ye,ge)}return Z},G.copy=function(){return df(h.copy(),g,w,C)},co(G,h)}var Ts={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return bc(e.scale.linear(),1,[0,1])};function bc(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(yc(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 bc(h.copy(),g,w)},co(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 xc([],{t:"range",a:[[]]})};function xc(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,le;++Z0?w[D-1]:h[0],Dge?0:1;if(le=Tt)return Z(le,Qe)+(ie?Z(ie,1-Qe):"")+"Z";var Me,Fe,Ge,er,tr=0,De=0,Fr,Br,it,yt,Ct,Lt,Vt,Rt,Nt=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ge=C===mf?Math.sqrt(ie*ie+le*le):+C.apply(this,arguments),Qe||(De*=-1),le&&(De=Va(Ge/le*Math.sin(er))),ie&&(tr=Va(Ge/ie*Math.sin(er)))),le){Fr=le*Math.cos(ye+De),Br=le*Math.sin(ye+De),it=le*Math.cos(ge-De),yt=le*Math.sin(ge-De);var ma=Math.abs(ge-ye-2*De)<=_r?0:1;if(De&&gf(Fr,Br,it,yt)===Qe^ma){var _n=(ye+ge)/2;Fr=le*Math.cos(_n),Br=le*Math.sin(_n),it=yt=null}}else Fr=Br=0;if(ie){Ct=ie*Math.cos(ge-tr),Lt=ie*Math.sin(ge-tr),Vt=ie*Math.cos(ye+tr),Rt=ie*Math.sin(ye+tr);var Ca=Math.abs(ye-ge+2*tr)<=_r?0:1;if(tr&&gf(Ct,Lt,Vt,Rt)===1-Qe^Ca){var dt=(ye+ge)/2;Ct=ie*Math.cos(dt),Lt=ie*Math.sin(dt),Vt=Rt=null}}else Ct=Lt=0;if(je>Oe&&(Me=Math.min(Math.abs(le-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,le=h[0]+Z,ye=h[1]+ie,ge=g[0]+Z,je=g[1]+ie,Qe=(le+ge)/2,Me=(ye+je)/2,Fe=ge-le,Ge=je-ye,er=Fe*Fe+Ge*Ge,tr=w-C,De=le*je-ge*ye,Fr=(Ge<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-De*De)),Br=(De*Ge-Fe*Fr)/er,it=(-De*Fe-Ge*Fr)/er,yt=(De*Ge+Fe*Fr)/er,Ct=(-De*Fe+Ge*Fr)/er,Lt=Br-Qe,Vt=it-Me,Rt=yt-Qe,Nt=Ct-Me;return Lt*Lt+Vt*Vt>Rt*Rt+Nt*Nt&&(Br=yt,it=Ct),[[Br-Z,it-ie],[Br*w/tr,it*w/tr]]}function xf(){return!0}function Sc(h){var g=Uo,w=hs,C=xf,L=Li,D=L.key,G=.7;function q(Z){var ie=[],le=[],ye=-1,ge=Z.length,je,Qe=ra(g),Me=ra(w);function Fe(){ie.push("M",L(h(le),G))}for(;++ye1?h.join("L"):h+"Z"}function _f(h){return h.join("L")+"Z"}function vl(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 yu(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?Li(h):h[0]+Yo(h,P1(h))}e.svg.line.radial=function(){var h=Sc(Ec);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Ec(h){for(var g,w=-1,C=h.length,L,D;++w_r)+",1 "+ye}function ie(le,ye,ge,je){return"Q 0,0 "+je}return D.radius=function(le){return arguments.length?(w=ra(le),D):w},D.source=function(le){return arguments.length?(h=ra(le),D):h},D.target=function(le){return arguments.length?(g=ra(le),D):g},D.startAngle=function(le){return arguments.length?(C=ra(le),D):C},D.endAngle=function(le){return arguments.length?(L=ra(le),D):L},D};function bu(h){return h.radius}e.svg.diagonal=function(){var h=$0,g=po,w=Q0;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 Q0(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Q0,w=h.projection;return h.projection=function(C){return arguments.length?w(N1(g=C)):g},h};function N1(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=O1,g=I1;function w(C,L){return(ed.get(h.call(this,C,L))||K0)(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 I1(){return 64}function O1(){return"circle"}function K0(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 ed=e.map({circle:K0,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*rd)),w=g*rd;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/Cc),w=g*Cc/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/Cc),w=g*Cc/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ed.keys();var Cc=Math.sqrt(3),rd=Math.tan(30*Ot);$e.transition=function(h){for(var g=ml||++Af,w=_u(h),C=[],L,D,G=Ol||{time:Date.now(),ease:Zi,delay:0,duration:250},q=-1,Z=this.length;++q0;)ye[--er].call(h,Ge);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=Go(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 le=e.select(this),ye=this.__chart__||h,ge=this.__chart__=h.copy(),je=G==null?ge.ticks?ge.ticks.apply(ge,D):ge.domain():G,Qe=q==null?ge.tickFormat?ge.tickFormat.apply(ge,D):ae:q,Me=le.selectAll(".tick").data(je,ge),Fe=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Ge=e.transition(Me.exit()).style("opacity",Oe).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,De,Fr=mc(ge),Br=le.selectAll(".domain").data([0]),it=(Br.enter().append("path").attr("class","domain"),e.transition(Br));Fe.append("line"),Fe.append("text");var yt=Fe.select("line"),Ct=er.select("line"),Lt=Me.select("text").text(Qe),Vt=Fe.select("text"),Rt=er.select("text"),Nt=g==="top"||g==="left"?-1:1,ma,_n,Ca,dt;if(g==="bottom"||g==="top"?(De=Au,ma="x",Ca="y",_n="x2",dt="y2",Lt.attr("dy",Nt<0?"0em":".71em").style("text-anchor","middle"),it.attr("d","M"+Fr[0]+","+Nt*C+"V0H"+Fr[1]+"V"+Nt*C)):(De=Tu,ma="y",Ca="x",_n="y2",dt="x2",Lt.attr("dy",".32em").style("text-anchor",Nt<0?"end":"start"),it.attr("d","M"+Nt*C+","+Fr[0]+"H0V"+Fr[1]+"H"+Nt*C)),yt.attr(dt,Nt*w),Vt.attr(Ca,Nt*tr),Ct.attr(_n,0).attr(dt,Nt*w),Rt.attr(ma,0).attr(Ca,Nt*tr),ge.rangeBand){var Yt=ge,jt=Yt.rangeBand()/2;ye=ge=function(va){return Yt(va)+jt}}else ye.rangeBand?ye=ge:Ge.call(De,ge,ye);Fe.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 wu?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 le=arguments.length;return le?(w=+ie,C=+arguments[le-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",wu={top:1,right:1,bottom:1,left:1};function Au(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function Tu(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=Ee(le,"brushstart","brush","brushend"),g=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,Z=!0,ie=Es[0];function le(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),Ge=Fe.selectAll(".background").data([0]);Ge.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,ae);er.exit().remove(),er.enter().append("g").attr("class",function(Br){return"resize "+Br}).style("cursor",function(Br){return Mu[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",le.empty()?"none":null);var tr=e.transition(Fe),De=e.transition(Ge),Fr;g&&(Fr=mc(g),De.attr("x",Fr[0]).attr("width",Fr[1]-Fr[0]),ge(tr)),w&&(Fr=mc(w),De.attr("y",Fr[0]).attr("height",Fr[1]-Fr[0]),je(tr)),ye(tr)})}le.event=function(Me){Me.each(function(){var Fe=h.of(this,arguments),Ge={x:C,y:L,i:D,j:G},er=this.__chart__||Ge;this.__chart__=Ge,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 tr=cf(C,Ge.x),De=cf(L,Ge.y);return D=G=null,function(Fr){C=Ge.x=tr(Fr),L=Ge.y=De(Fr),Fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ge.i,G=Ge.j,Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"})}):(Fe({type:"brushstart"}),Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"}))})};function ye(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 je(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),Ge=h.of(Me,arguments),er=e.select(Me),tr=Fe.datum(),De=!/^(n|s)$/.test(tr)&&g,Fr=!/^(e|w)$/.test(tr)&&w,Br=Fe.classed("extent"),it=jr(Me),yt,Ct=e.mouse(Me),Lt,Vt=e.select(i(Me)).on("keydown.brush",ma).on("keyup.brush",_n);if(e.event.changedTouches?Vt.on("touchmove.brush",Ca).on("touchend.brush",Yt):Vt.on("mousemove.brush",Ca).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),Br)Ct[0]=C[0]-Ct[0],Ct[1]=L[0]-Ct[1];else if(tr){var Rt=+/w$/.test(tr),Nt=+/^n/.test(tr);Lt=[C[1-Rt]-Ct[0],L[1-Nt]-Ct[1]],Ct[0]=C[Rt],Ct[1]=L[Nt]}else e.event.altKey&&(yt=Ct.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Fe.style("cursor")),Ge({type:"brushstart"}),Ca();function ma(){e.event.keyCode==32&&(Br||(yt=null,Ct[0]-=C[1],Ct[1]-=L[1],Br=2),Le())}function _n(){e.event.keyCode==32&&Br==2&&(Ct[0]+=C[1],Ct[1]+=L[1],Br=0,Le())}function Ca(){var jt=e.mouse(Me),va=!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 Og=="object"&&typeof DM!="undefined"?r(Og):(e=e||self,r(e.d3=e.d3||{}))})(Og,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,or,st,kt){function Ar(rr){return Pe(rr=arguments.length===0?new Date:new Date(+rr)),rr}return Ar.floor=function(rr){return Pe(rr=new Date(+rr)),rr},Ar.ceil=function(rr){return Pe(rr=new Date(rr-1)),or(rr,1),Pe(rr),rr},Ar.round=function(rr){var ur=Ar(rr),Hr=Ar.ceil(rr);return rr-ur0))return ot;do ot.push(Wr=new Date(+rr)),or(rr,Hr),Pe(rr);while(Wr=ur)for(;Pe(ur),!rr(ur);)ur.setTime(ur-1)},function(ur,Hr){if(ur>=ur)if(Hr<0)for(;++Hr<=0;)for(;or(ur,-1),!rr(ur););else for(;--Hr>=0;)for(;or(ur,1),!rr(ur););})},st&&(Ar.count=function(rr,ur){return r.setTime(+rr),t.setTime(+ur),Pe(r),Pe(t),Math.floor(st(r,t))},Ar.every=function(rr){return rr=Math.floor(rr),!isFinite(rr)||!(rr>0)?null:rr>1?Ar.filter(kt?function(ur){return kt(ur)%rr===0}:function(ur){return Ar.count(0,ur)%rr===0}):Ar}),Ar}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,V=M.range,ae=k.range,re=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,oe=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()});oe.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 se=oe.range,Le=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()}),Ue=Le.range,Ee=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=Ee.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}),fr=we.range;function Ie(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=Ie(0),vr=Ie(1),$e=Ie(2),ee=Ie(3),de=Ie(4),ne=Ie(5),qe=Ie(6),Je=He.range,Ke=vr.range,Sr=$e.range,Er=ee.range,br=de.range,zr=ne.range,Vr=qe.range,nt=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=nt.range,Yr=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()});Yr.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 et=Yr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=F,e.timeFridays=re,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=ae,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=x,e.timeWeeks=O,e.timeYear=oe,e.timeYears=se,e.utcDay=we,e.utcDays=fr,e.utcFriday=ne,e.utcFridays=zr,e.utcHour=Ee,e.utcHours=Ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Le,e.utcMinutes=Ue,e.utcMonday=vr,e.utcMondays=Ke,e.utcMonth=nt,e.utcMonths=wr,e.utcSaturday=qe,e.utcSaturdays=Vr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=He,e.utcSundays=Je,e.utcThursday=de,e.utcThursdays=br,e.utcTuesday=$e,e.utcTuesdays=Sr,e.utcWednesday=ee,e.utcWednesdays=Er,e.utcWeek=He,e.utcWeeks=Je,e.utcYear=Yr,e.utcYears=et,Object.defineProperty(e,"__esModule",{value:!0})})});var td=N((Bg,FM)=>{(function(e,r){typeof Bg=="object"&&typeof FM!="undefined"?r(Bg,M5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Bg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Oe=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Oe.setFullYear(Se.y),Oe}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 Oe=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Oe.setUTCFullYear(Se.y),Oe}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Oe,pr){return{y:Se,m:Oe,d:pr,H:0,M:0,S:0,L:0}}function i(Se){var Oe=Se.dateTime,pr=Se.date,_r=Se.time,ht=Se.periods,Tt=Se.days,wt=Se.shortDays,Ot=Se.months,ta=Se.shortMonths,Ma=v(ht),Ba=d(ht),an=v(Tt),Va=d(Tt),xn=v(wt),Pn=d(wt),di=v(Ot),hn=d(Ot),Jn=v(ta),Et=d(ta),Pa={a:cs,A:vs,b:Cl,B:tc,c:null,d:J,e:J,f:Ue,H:j,I:oe,j:se,L:Le,m:Ee,M:Ve,p:Bo,q:$f,Q:ur,s:Hr,S:we,u:fr,U:Ie,V:He,w:vr,W:$e,x:null,X:null,y:ee,Y:de,Z:ne,"%":rr},ia={a:Qf,A:ji,b:pi,B:Oi,c:null,d:qe,e:qe,f:br,H:Je,I:Ke,j:Sr,L:Er,m:zr,M:Vr,p:Ll,q:mi,Q:ur,s:Hr,S:nt,u:wr,U:Yr,V:et,w:Pe,W:or,x:null,X:null,y:st,Y:kt,Z:Ar,"%":rr},Ia={a:Ka,A:en,b:fo,B:Ii,c:dn,d:k,e:k,f:V,H:P,I:P,j:F,L:H,m:M,M:O,p:Tn,q:E,Q:re,s:Q,S:R,u:y,U:m,V:b,w:p,W:T,x:nn,X:$n,y:x,Y:_,Z:A,"%":ae};Pa.x=$a(pr,Pa),Pa.X=$a(_r,Pa),Pa.c=$a(Oe,Pa),ia.x=$a(pr,ia),ia.X=$a(_r,ia),ia.c=$a(Oe,ia);function $a(Pt,$t){return function(ca){var _t=[],Qn=-1,za=0,Nn=Pt.length,ra,Ao,ol;for(ca instanceof Date||(ca=new Date(+ca));++Qn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(za=a(n(_t.y,0,1)),Nn=za.getUTCDay(),za=Nn>4||Nn===0?r.utcMonday.ceil(za):r.utcMonday(za),za=r.utcDay.offset(za,(_t.V-1)*7),_t.y=za.getUTCFullYear(),_t.m=za.getUTCMonth(),_t.d=za.getUTCDate()+(_t.w+6)%7):(za=t(n(_t.y,0,1)),Nn=za.getDay(),za=Nn>4||Nn===0?r.timeMonday.ceil(za):r.timeMonday(za),za=r.timeDay.offset(za,(_t.V-1)*7),_t.y=za.getFullYear(),_t.m=za.getMonth(),_t.d=za.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 fa(Pt,$t,ca,_t){for(var Qn=0,za=$t.length,Nn=ca.length,ra,Ao;Qn=Nn)return-1;if(ra=$t.charCodeAt(Qn++),ra===37){if(ra=$t.charAt(Qn++),Ao=Ia[ra in o?$t.charAt(Qn++):ra],!Ao||(_t=Ao(Pt,ca,_t))<0)return-1}else if(ra!=ca.charCodeAt(_t++))return-1}return _t}function Tn(Pt,$t,ca){var _t=Ma.exec($t.slice(ca));return _t?(Pt.p=Ba[_t[0].toLowerCase()],ca+_t[0].length):-1}function Ka(Pt,$t,ca){var _t=xn.exec($t.slice(ca));return _t?(Pt.w=Pn[_t[0].toLowerCase()],ca+_t[0].length):-1}function en(Pt,$t,ca){var _t=an.exec($t.slice(ca));return _t?(Pt.w=Va[_t[0].toLowerCase()],ca+_t[0].length):-1}function fo(Pt,$t,ca){var _t=Jn.exec($t.slice(ca));return _t?(Pt.m=Et[_t[0].toLowerCase()],ca+_t[0].length):-1}function Ii(Pt,$t,ca){var _t=di.exec($t.slice(ca));return _t?(Pt.m=hn[_t[0].toLowerCase()],ca+_t[0].length):-1}function dn(Pt,$t,ca){return fa(Pt,Oe,$t,ca)}function nn(Pt,$t,ca){return fa(Pt,pr,$t,ca)}function $n(Pt,$t,ca){return fa(Pt,_r,$t,ca)}function cs(Pt){return wt[Pt.getDay()]}function vs(Pt){return Tt[Pt.getDay()]}function Cl(Pt){return ta[Pt.getMonth()]}function tc(Pt){return Ot[Pt.getMonth()]}function Bo(Pt){return ht[+(Pt.getHours()>=12)]}function $f(Pt){return 1+~~(Pt.getMonth()/3)}function Qf(Pt){return wt[Pt.getUTCDay()]}function ji(Pt){return Tt[Pt.getUTCDay()]}function pi(Pt){return ta[Pt.getUTCMonth()]}function Oi(Pt){return Ot[Pt.getUTCMonth()]}function Ll(Pt){return ht[+(Pt.getUTCHours()>=12)]}function mi(Pt){return 1+~~(Pt.getUTCMonth()/3)}return{format:function(Pt){var $t=$a(Pt+="",Pa);return $t.toString=function(){return Pt},$t},parse:function(Pt){var $t=Qa(Pt+="",!1);return $t.toString=function(){return Pt},$t},utcFormat:function(Pt){var $t=$a(Pt+="",ia);return $t.toString=function(){return Pt},$t},utcParse:function(Pt){var $t=Qa(Pt+="",!0);return $t.toString=function(){return Pt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Oe,pr){var _r=Se<0?"-":"",ht=(_r?-Se:Se)+"",Tt=ht.length;return _r+(Tt68?1900:2e3),pr+_r[0].length):-1}function A(Se,Oe,pr){var _r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(pr,pr+6));return _r?(Se.Z=_r[1]?0:-(_r[2]+(_r[3]||"00")),pr+_r[0].length):-1}function E(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+1));return _r?(Se.q=_r[0]*3-3,pr+_r[0].length):-1}function M(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.m=_r[0]-1,pr+_r[0].length):-1}function k(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.d=+_r[0],pr+_r[0].length):-1}function F(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+3));return _r?(Se.m=0,Se.d=+_r[0],pr+_r[0].length):-1}function P(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.H=+_r[0],pr+_r[0].length):-1}function O(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.M=+_r[0],pr+_r[0].length):-1}function R(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.S=+_r[0],pr+_r[0].length):-1}function H(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+3));return _r?(Se.L=+_r[0],pr+_r[0].length):-1}function V(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+6));return _r?(Se.L=Math.floor(_r[0]/1e3),pr+_r[0].length):-1}function ae(Se,Oe,pr){var _r=s.exec(Oe.slice(pr,pr+1));return _r?pr+_r[0].length:-1}function re(Se,Oe,pr){var _r=l.exec(Oe.slice(pr));return _r?(Se.Q=+_r[0],pr+_r[0].length):-1}function Q(Se,Oe,pr){var _r=l.exec(Oe.slice(pr));return _r?(Se.s=+_r[0],pr+_r[0].length):-1}function J(Se,Oe){return u(Se.getDate(),Oe,2)}function j(Se,Oe){return u(Se.getHours(),Oe,2)}function oe(Se,Oe){return u(Se.getHours()%12||12,Oe,2)}function se(Se,Oe){return u(1+r.timeDay.count(r.timeYear(Se),Se),Oe,3)}function Le(Se,Oe){return u(Se.getMilliseconds(),Oe,3)}function Ue(Se,Oe){return Le(Se,Oe)+"000"}function Ee(Se,Oe){return u(Se.getMonth()+1,Oe,2)}function Ve(Se,Oe){return u(Se.getMinutes(),Oe,2)}function we(Se,Oe){return u(Se.getSeconds(),Oe,2)}function fr(Se){var Oe=Se.getDay();return Oe===0?7:Oe}function Ie(Se,Oe){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Oe,2)}function He(Se,Oe){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),Oe,2)}function vr(Se){return Se.getDay()}function $e(Se,Oe){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Oe,2)}function ee(Se,Oe){return u(Se.getFullYear()%100,Oe,2)}function de(Se,Oe){return u(Se.getFullYear()%1e4,Oe,4)}function ne(Se){var Oe=Se.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+u(Oe/60|0,"0",2)+u(Oe%60,"0",2)}function qe(Se,Oe){return u(Se.getUTCDate(),Oe,2)}function Je(Se,Oe){return u(Se.getUTCHours(),Oe,2)}function Ke(Se,Oe){return u(Se.getUTCHours()%12||12,Oe,2)}function Sr(Se,Oe){return u(1+r.utcDay.count(r.utcYear(Se),Se),Oe,3)}function Er(Se,Oe){return u(Se.getUTCMilliseconds(),Oe,3)}function br(Se,Oe){return Er(Se,Oe)+"000"}function zr(Se,Oe){return u(Se.getUTCMonth()+1,Oe,2)}function Vr(Se,Oe){return u(Se.getUTCMinutes(),Oe,2)}function nt(Se,Oe){return u(Se.getUTCSeconds(),Oe,2)}function wr(Se){var Oe=Se.getUTCDay();return Oe===0?7:Oe}function Yr(Se,Oe){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Oe,2)}function et(Se,Oe){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),Oe,2)}function Pe(Se){return Se.getUTCDay()}function or(Se,Oe){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Oe,2)}function st(Se,Oe){return u(Se.getUTCFullYear()%100,Oe,2)}function kt(Se,Oe){return u(Se.getUTCFullYear()%1e4,Oe,4)}function Ar(){return"+0000"}function rr(){return"%"}function ur(Se){return+Se}function Hr(Se){return Math.floor(+Se/1e3)}var ot;Wr({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 Wr(Se){return ot=i(Se),e.timeFormat=ot.format,e.timeParse=ot.parse,e.utcFormat=ot.utcFormat,e.utcParse=ot.utcParse,ot}var tt="%Y-%m-%dT%H:%M:%S.%LZ";function xt(Se){return Se.toISOString()}var jr=Date.prototype.toISOString?xt:e.utcFormat(tt);function at(Se){var Oe=new Date(Se);return isNaN(Oe)?null:Oe}var gr=+new Date("2000-01-01T00:00:00.000Z")?at:e.utcParse(tt);e.isoFormat=jr,e.isoParse=gr,e.timeFormatDefaultLocale=Wr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var S5=N((zg,RM)=>{(function(e,r){typeof zg=="object"&&typeof RM!="undefined"?r(zg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(zg,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,V=M[0],ae=0;O>0&&V>0&&(ae+V+1>P&&(V=Math.max(1,P-ae)),R.push(F.substring(O-=V,O+V)),!((ae+=V+1)>P));)V=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+"",V=M.minus===void 0?"-":M.minus+"",ae=M.nan===void 0?"NaN":M.nan+"";function re(J){J=l(J);var j=J.fill,oe=J.align,se=J.sign,Le=J.symbol,Ue=J.zero,Ee=J.width,Ve=J.comma,we=J.precision,fr=J.trim,Ie=J.type;Ie==="n"?(Ve=!0,Ie="g"):d[Ie]||(we===void 0&&(we=12),fr=!0,Ie="g"),(Ue||j==="0"&&oe==="=")&&(Ue=!0,j="0",oe="=");var He=Le==="$"?F:Le==="#"&&/[boxX]/.test(Ie)?"0"+Ie.toLowerCase():"",vr=Le==="$"?P:/[%p]/.test(Ie)?H:"",$e=d[Ie],ee=/[defgprs%]/.test(Ie);we=we===void 0?6:/[gprs]/.test(Ie)?Math.max(1,Math.min(21,we)):Math.max(0,Math.min(20,we));function de(ne){var qe=He,Je=vr,Ke,Sr,Er;if(Ie==="c")Je=$e(ne)+Je,ne="";else{ne=+ne;var br=ne<0||1/ne<0;if(ne=isNaN(ne)?ae:$e(Math.abs(ne),we),fr&&(ne=f(ne)),br&&+ne==0&&se!=="+"&&(br=!1),qe=(br?se==="("?se:V:se==="-"||se==="("?"":se)+qe,Je=(Ie==="s"?m[8+u/3]:"")+Je+(br&&se==="("?")":""),ee){for(Ke=-1,Sr=ne.length;++KeEr||Er>57){Je=(Er===46?O+ne.slice(Ke+1):ne.slice(Ke))+Je,ne=ne.slice(0,Ke);break}}}Ve&&!Ue&&(ne=k(ne,1/0));var zr=qe.length+ne.length+Je.length,Vr=zr>1)+qe+ne+Je+Vr.slice(zr);break;default:ne=Vr+qe+ne+Je;break}return R(ne)}return de.toString=function(){return J+""},de}function Q(J,j){var oe=re((J=l(J),J.type="f",J)),se=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,Le=Math.pow(10,-se),Ue=m[8+se/3];return function(Ee){return oe(Le*Ee)+Ue}}return{format:re,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 PM=N((DEe,qM)=>{"use strict";qM.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 ba=N((FEe,NM)=>{"use strict";var aie=PM();NM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&aie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri=N((REe,IM)=>{"use strict";IM.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 E5=N((Gg,OM)=>{(function(e,r){typeof Gg=="object"&&typeof OM!="undefined"?r(Gg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Gg,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 Fc=N((qEe,BM)=>{"use strict";BM.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 Wo=N(Cs=>{"use strict";var nie=E5().decode,iie=Fc(),k5=Array.isArray,oie=ArrayBuffer,lie=DataView;function zM(e){return oie.isView(e)&&!(e instanceof lie)}Cs.isTypedArray=zM;function Ug(e){return k5(e)||zM(e)}Cs.isArrayOrTypedArray=Ug;function sie(e){return!Ug(e[0])}Cs.isArray1D=sie;Cs.ensureArray=function(e,r){return k5(e)||(e=[]),e.length=r,e};var Ri={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};Ri.uint8c=Ri.u1c;Ri.uint8=Ri.u1;Ri.int8=Ri.i1;Ri.uint16=Ri.u2;Ri.int16=Ri.i2;Ri.uint32=Ri.u4;Ri.int32=Ri.i4;Ri.float32=Ri.f4;Ri.float64=Ri.f8;function C5(e){return e.constructor===ArrayBuffer}Cs.isArrayBuffer=C5;Cs.decodeTypedArraySpec=function(e){var r=[],t=fie(e),a=t.dtype,n=Ri[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;C5(o)||(o=nie(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 UM=ba(),D5=Wo().isArrayOrTypedArray;WM.exports=function(r,t){if(UM(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 ad=Hg(),die=/^\w*$/,pie=0,jM=1,Vg=2,XM=3,wh=4;ZM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=ad(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Vg,c.set(v,null);if(u){for(i=d;i{"use strict";var mie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yie=/^[^\.\[\]]+$/;$M.exports=function(e,r){for(;r;){var t=e.match(mie);if(t)e=t[1];else if(e.match(yie))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 Yg=N((BEe,KM)=>{"use strict";var gie=ba();KM.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 gie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var tS=N((zEe,rS)=>{"use strict";var eS=Wo().isArrayOrTypedArray,z1=Fc();rS.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(eS(n)&&eS(i)&&z1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function bie(e,r){var t=e%r;return t<0?t+r:t}function xie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}aS.exports={mod:bie,modHalf:xie}});var Ls=N((UEe,Wg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,de){if(ee=ee||"",de=de||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,de);var ne=f(ee);this._originalInput=ee,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 ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),de,ne,qe,Je,Ke,Sr;return de=ee.r/255,ne=ee.g/255,qe=ee.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),qe<=.03928?Sr=qe/12.92:Sr=e.pow((qe+.055)/1.055,2.4),.2126*Je+.7152*Ke+.0722*Sr},setAlpha:function(ee){return this._a=J(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),de=n(ee.h*360),ne=n(ee.s*100),qe=n(ee.v*100);return this._a==1?"hsv("+de+", "+ne+"%, "+qe+"%)":"hsva("+de+", "+ne+"%, "+qe+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),de=n(ee.h*360),ne=n(ee.s*100),qe=n(ee.l*100);return this._a==1?"hsl("+de+", "+ne+"%, "+qe+"%)":"hsla("+de+", "+ne+"%, "+qe+"%, "+this._roundA+")"},toHex:function(ee){return y(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},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:re[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var de="#"+b(this._r,this._g,this._b,this._a),ne=de,qe=this._gradientType?"GradientType = 1, ":"";if(ee){var Je=s(ee);ne="#"+b(Je._r,Je._g,Je._b,Je._a)}return"progid:DXImageTransform.Microsoft.gradient("+qe+"startColorstr="+de+",endColorstr="+ne+")"},toString:function(ee){var de=!!ee;ee=ee||this._format;var ne=!1,qe=this._a<1&&this._a>=0,Je=!de&&qe&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return Je?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(ne=this.toRgbString()),ee==="prgb"&&(ne=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(ne=this.toHexString()),ee==="hex3"&&(ne=this.toHexString(!0)),ee==="hex4"&&(ne=this.toHex8String(!0)),ee==="hex8"&&(ne=this.toHex8String()),ee==="name"&&(ne=this.toName()),ee==="hsl"&&(ne=this.toHslString()),ee==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,de){var ne=ee.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(ee,de){return ee.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(V,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(ee,de){if(typeof ee=="object"){var ne={};for(var qe in ee)ee.hasOwnProperty(qe)&&(qe==="a"?ne[qe]=ee[qe]:ne[qe]=Ve(ee[qe]));ee=ne}return s(ee,de)};function f(ee){var de={r:0,g:0,b:0},ne=1,qe=null,Je=null,Ke=null,Sr=!1,Er=!1;return typeof ee=="string"&&(ee=vr(ee)),typeof ee=="object"&&(He(ee.r)&&He(ee.g)&&He(ee.b)?(de=u(ee.r,ee.g,ee.b),Sr=!0,Er=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):He(ee.h)&&He(ee.s)&&He(ee.v)?(qe=Ve(ee.s),Je=Ve(ee.v),de=p(ee.h,qe,Je),Sr=!0,Er="hsv"):He(ee.h)&&He(ee.s)&&He(ee.l)&&(qe=Ve(ee.s),Ke=Ve(ee.l),de=v(ee.h,qe,Ke),Sr=!0,Er="hsl"),ee.hasOwnProperty("a")&&(ne=ee.a)),ne=J(ne),{ok:Sr,format:ee.format||Er,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(ee,de,ne){return{r:j(ee,255)*255,g:j(de,255)*255,b:j(ne,255)*255}}function c(ee,de,ne){ee=j(ee,255),de=j(de,255),ne=j(ne,255);var qe=o(ee,de,ne),Je=i(ee,de,ne),Ke,Sr,Er=(qe+Je)/2;if(qe==Je)Ke=Sr=0;else{var br=qe-Je;switch(Sr=Er>.5?br/(2-qe-Je):br/(qe+Je),qe){case ee:Ke=(de-ne)/br+(de1&&(nt-=1),nt<1/6?zr+(Vr-zr)*6*nt:nt<1/2?Vr:nt<2/3?zr+(Vr-zr)*(2/3-nt)*6:zr}if(de===0)qe=Je=Ke=ne;else{var Er=ne<.5?ne*(1+de):ne+de-ne*de,br=2*ne-Er;qe=Sr(br,Er,ee+1/3),Je=Sr(br,Er,ee),Ke=Sr(br,Er,ee-1/3)}return{r:qe*255,g:Je*255,b:Ke*255}}function d(ee,de,ne){ee=j(ee,255),de=j(de,255),ne=j(ne,255);var qe=o(ee,de,ne),Je=i(ee,de,ne),Ke,Sr,Er=qe,br=qe-Je;if(Sr=qe===0?0:br/qe,qe==Je)Ke=0;else{switch(qe){case ee:Ke=(de-ne)/br+(de>1)+720)%360;--de;)qe.h=(qe.h+Je)%360,Ke.push(s(qe));return Ke}function V(ee,de){de=de||6;for(var ne=s(ee).toHsv(),qe=ne.h,Je=ne.s,Ke=ne.v,Sr=[],Er=1/de;de--;)Sr.push(s({h:qe,s:Je,v:Ke})),Ke=(Ke+Er)%1;return Sr}s.mix=function(ee,de,ne){ne=ne===0?0:ne||50;var qe=s(ee).toRgb(),Je=s(de).toRgb(),Ke=ne/100,Sr={r:(Je.r-qe.r)*Ke+qe.r,g:(Je.g-qe.g)*Ke+qe.g,b:(Je.b-qe.b)*Ke+qe.b,a:(Je.a-qe.a)*Ke+qe.a};return s(Sr)},s.readability=function(ee,de){var ne=s(ee),qe=s(de);return(e.max(ne.getLuminance(),qe.getLuminance())+.05)/(e.min(ne.getLuminance(),qe.getLuminance())+.05)},s.isReadable=function(ee,de,ne){var qe=s.readability(ee,de),Je,Ke;switch(Ke=!1,Je=$e(ne),Je.level+Je.size){case"AAsmall":case"AAAlarge":Ke=qe>=4.5;break;case"AAlarge":Ke=qe>=3;break;case"AAAsmall":Ke=qe>=7;break}return Ke},s.mostReadable=function(ee,de,ne){var qe=null,Je=0,Ke,Sr,Er,br;ne=ne||{},Sr=ne.includeFallbackColors,Er=ne.level,br=ne.size;for(var zr=0;zrJe&&(Je=Ke,qe=s(de[zr]));return s.isReadable(ee,qe,{level:Er,size:br})||!Sr?qe:(ne.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],ne))};var ae=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"},re=s.hexNames=Q(ae);function Q(ee){var de={};for(var ne in ee)ee.hasOwnProperty(ne)&&(de[ee[ne]]=ne);return de}function J(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function j(ee,de){Le(ee)&&(ee="100%");var ne=Ue(ee);return ee=i(de,o(0,parseFloat(ee))),ne&&(ee=parseInt(ee*de,10)/100),e.abs(ee-de)<1e-6?1:ee%de/parseFloat(de)}function oe(ee){return i(1,o(0,ee))}function se(ee){return parseInt(ee,16)}function Le(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Ue(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Ve(ee){return ee<=1&&(ee=ee*100+"%"),ee}function we(ee){return e.round(parseFloat(ee)*255).toString(16)}function fr(ee){return se(ee)/255}var Ie=function(){var ee="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",ne="(?:"+de+")|(?:"+ee+")",qe="[\\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"+qe),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+qe),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+qe),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(ee){return!!Ie.CSS_UNIT.exec(ee)}function vr(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var de=!1;if(ae[ee])ee=ae[ee],de=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ne;return(ne=Ie.rgb.exec(ee))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=Ie.rgba.exec(ee))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=Ie.hsl.exec(ee))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=Ie.hsla.exec(ee))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=Ie.hsv.exec(ee))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=Ie.hsva.exec(ee))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=Ie.hex8.exec(ee))?{r:se(ne[1]),g:se(ne[2]),b:se(ne[3]),a:fr(ne[4]),format:de?"name":"hex8"}:(ne=Ie.hex6.exec(ee))?{r:se(ne[1]),g:se(ne[2]),b:se(ne[3]),format:de?"name":"hex"}:(ne=Ie.hex4.exec(ee))?{r:se(ne[1]+""+ne[1]),g:se(ne[2]+""+ne[2]),b:se(ne[3]+""+ne[3]),a:fr(ne[4]+""+ne[4]),format:de?"name":"hex8"}:(ne=Ie.hex3.exec(ee))?{r:se(ne[1]+""+ne[1]),g:se(ne[2]+""+ne[2]),b:se(ne[3]+""+ne[3]),format:de?"name":"hex"}:!1}function $e(ee){var de,ne;return ee=ee||{level:"AA",size:"small"},de=(ee.level||"AA").toUpperCase(),ne=(ee.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),ne!=="small"&&ne!=="large"&&(ne="small"),{level:de,size:ne}}typeof Wg!="undefined"&&Wg.exports?Wg.exports=s:window.tinycolor=s})(Math)});var zn=N(H1=>{"use strict";var nS=Fc(),G1=Array.isArray;function _ie(e,r){var t,a;for(t=0;t{"use strict";iS.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 V1=N((YEe,oS)=>{"use strict";oS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var id=N((WEe,fS)=>{"use strict";var lS=V1(),sS=zi(),F5=sS({editType:"none"});F5.family.dflt=lS.HOVERFONT;F5.size.dflt=lS.HOVERFONTSIZE;fS.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:F5,grouptitlefont:sS({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 jg=N((jEe,uS)=>{"use strict";var wie=zi(),Y1=id().hoverlabel,W1=zn().extendFlat;uS.exports={hoverlabel:{bgcolor:W1({},Y1.bgcolor,{arrayOk:!0}),bordercolor:W1({},Y1.bordercolor,{arrayOk:!0}),font:wie({arrayOk:!0,editType:"none"}),align:W1({},Y1.align,{arrayOk:!0}),namelength:W1({},Y1.namelength,{arrayOk:!0}),showarrow:W1({},Y1.showarrow),editType:"none"}}});var Ds=N((XEe,cS)=>{"use strict";var Aie=zi(),Tie=jg();cS.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:Aie({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:Tie.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((ZEe,dS)=>{"use strict";var Mie=Ls(),Xg={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)"]]},vS=Xg.RdBu;function Sie(e,r){if(r||(r=vS),!e)return r;function t(){try{e=Xg[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),hS(e)?e:r}function hS(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 ha=N(($Ee,pS)=>{"use strict";var jo=Ls(),kie=ba(),Cie=Wo().isTypedArray,xi=pS.exports={},Zg=Mf();xi.defaults=Zg.defaults;var Lie=xi.defaultLine=Zg.defaultLine;xi.lightLine=Zg.lightLine;var q5=xi.background=Zg.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(jo(e))};xi.opacity=function(e){return e?jo(e).getAlpha():0};xi.addOpacity=function(e,r){var t=jo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};xi.combine=function(e,r){var t=jo(e).toRgb();if(t.a===1)return jo(e).toRgbString();var a=jo(r||q5).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 jo(i).toRgbString()};xi.interpolate=function(e,r,t){var a=jo(e).toRgb(),n=jo(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 jo(i).toRgbString()};xi.contrast=function(e,r,t){var a=jo(e);a.getAlpha()!==1&&(a=jo(xi.combine(e,q5)));var n=a.isDark()?r?a.lighten(r):q5:t?a.darken(t):Lie;return n.toString()};xi.stroke=function(e,r){var t=jo(r);e.style({stroke:xi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};xi.fill=function(e,r){var t=jo(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 od=N((QEe,mS)=>{"use strict";mS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var ld=N(yS=>{"use strict";yS.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 _S=N(Xo=>{"use strict";var P5=ba(),gS=Ls(),bS=zn().extendFlat,Die=Ds(),Fie=Ah(),Rie=ha(),qie=od().DESELECTDIM,sd=Hg(),xS=ld().counter,Pie=nd().modHalf,Fs=Wo().isArrayOrTypedArray,Rc=Wo().isTypedArraySpec,qc=Wo().decodeTypedArraySpec;Xo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Fs(e)?e:Rc(e)?qc(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){Rc(e)&&(e=qc(e)),!P5(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}Rc(e)&&(e=qc(e)),e%1||!P5(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){Rc(e)&&(e=qc(e)),gS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return gS(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(Fie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rc(e)&&(e=qc(e)),e==="auto"?r.set("auto"):P5(e)?r.set(Pie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||xS(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:!!xS(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 wS={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},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:{}}},AS={};function TS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),TS(a,r[t]))}}TS(wS,AS);MS.exports={configAttributes:wS,dfltConfig:AS}});var I5=N((tke,SS)=>{"use strict";var N5=da(),Nie=ba(),j1=[];SS.exports=function(e,r){if(j1.indexOf(e)!==-1)return;j1.push(e);var t=1e3;Nie(r)?t=r:r==="long"&&(t=3e3);var a=N5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(j1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=j1.indexOf(l);s!==-1&&j1.splice(s,1),N5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=N5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var fd=Mh().dfltConfig,O5=I5(),B5=ES.exports={};B5.log=function(){var e;if(fd.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};B5.warn=function(){var e;if(fd.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};B5.error=function(){var e;if(fd.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var $g=N((nke,kS)=>{"use strict";kS.exports=function(){}});var z5=N((ike,CS)=>{"use strict";CS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{LS.exports=Iie;function Iie(){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 RS=N((lke,FS)=>{FS.exports=Oie;function Oie(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 PS=N((ske,qS)=>{qS.exports=Bie;function Bie(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 G5=N((fke,NS)=>{NS.exports=zie;function zie(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 OS=N((uke,IS)=>{IS.exports=Gie;function Gie(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 zS=N((cke,BS)=>{BS.exports=Uie;function Uie(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,V=T*H-_*R+x*O+A*P-E*F+M*k;return V?(V=1/V,e[0]=(l*H-s*R+f*O)*V,e[1]=(n*R-a*H-i*O)*V,e[2]=(y*M-m*E+b*A)*V,e[3]=(v*E-c*M-d*A)*V,e[4]=(s*P-o*H-f*F)*V,e[5]=(t*H-n*P+i*F)*V,e[6]=(m*x-p*M-b*_)*V,e[7]=(u*M-v*x+d*_)*V,e[8]=(o*R-l*P+f*k)*V,e[9]=(a*P-t*R-i*k)*V,e[10]=(p*E-y*x+b*T)*V,e[11]=(c*x-u*E-d*T)*V,e[12]=(l*F-o*O-s*k)*V,e[13]=(t*O-a*F+n*k)*V,e[14]=(y*_-p*A-m*T)*V,e[15]=(u*A-c*_+v*T)*V,e):null}});var US=N((vke,GS)=>{GS.exports=Hie;function Hie(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 VS=N((hke,HS)=>{HS.exports=Vie;function Vie(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 WS=N((dke,YS)=>{YS.exports=Yie;function Yie(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 XS=N((pke,jS)=>{jS.exports=Wie;function Wie(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 JS=N((mke,ZS)=>{ZS.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 QS=N((yke,$S)=>{$S.exports=Xie;function Xie(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,V,ae;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,V=i*o*u-n*s,ae=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*V+_*ae,e[9]=v*H+m*V+x*ae,e[10]=d*H+b*V+A*ae,e[11]=p*H+T*V+E*ae,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var eE=N((gke,KS)=>{KS.exports=Zie;function Zie(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 tE=N((bke,rE)=>{rE.exports=Jie;function Jie(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 nE=N((xke,aE)=>{aE.exports=$ie;function $ie(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 oE=N((_ke,iE)=>{iE.exports=Qie;function Qie(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 sE=N((wke,lE)=>{lE.exports=Kie;function Kie(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 uE=N((Ake,fE)=>{fE.exports=eoe;function eoe(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 vE=N((Tke,cE)=>{cE.exports=roe;function roe(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 dE=N((Mke,hE)=>{hE.exports=toe;function toe(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 mE=N((Ske,pE)=>{pE.exports=aoe;function aoe(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 gE=N((Eke,yE)=>{yE.exports=noe;function noe(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 xE=N((kke,bE)=>{bE.exports=ioe;function ioe(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 wE=N((Cke,_E)=>{_E.exports=ooe;function ooe(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 TE=N((Lke,AE)=>{AE.exports=loe;function loe(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 SE=N((Dke,ME)=>{ME.exports=soe;function soe(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 kE=N((Fke,EE)=>{EE.exports=foe;function foe(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 LE=N((Rke,CE)=>{var uoe=G5();CE.exports=coe;function coe(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?uoe(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 FE=N((qke,DE)=>{DE.exports=voe;function voe(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 U5=N((Pke,RE)=>{RE.exports={create:DS(),clone:RS(),copy:PS(),identity:G5(),transpose:OS(),invert:zS(),adjoint:US(),determinant:VS(),multiply:WS(),translate:XS(),scale:JS(),rotate:QS(),rotateX:eE(),rotateY:tE(),rotateZ:nE(),fromRotation:oE(),fromRotationTranslation:sE(),fromScaling:uE(),fromTranslation:vE(),fromXRotation:dE(),fromYRotation:mE(),fromZRotation:gE(),fromQuat:xE(),frustum:wE(),perspective:TE(),perspectiveFromFieldOfView:SE(),ortho:kE(),lookAt:LE(),str:FE()}});var Qg=N(Gn=>{"use strict";var hoe=U5();Gn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var doe=da(),qE=Sh(),poe=Qg(),moe=U5();function yoe(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 goe(e){var r=doe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function PE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function boe(e,r){NE("global",e,r)}function NE(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):qE.warn("addStyleRule failed"):qE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function xoe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&PE(t)}function _oe(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 woe(e){var r=OE(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=IE(a);if(n){var i=poe.convertCssMatrix(n);t=moe.multiply(t,t,i)}}),t}function IE(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 OE(e){for(var r=[];Aoe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Aoe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Toe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}BE.exports={getGraphDiv:yoe,isPlotDiv:goe,removeElement:PE,addStyleRule:boe,addRelatedStyleRule:NE,deleteRelatedStyleRule:xoe,setStyleOnHover:_oe,getFullTransformMatrix:woe,getElementTransformMatrix:IE,getElementAndAncestors:OE,equalDomRects:Toe}});var Z1=N((Oke,zE)=>{"use strict";zE.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((Bke,jE)=>{"use strict";var UE=zn().extendFlat,Moe=Fc(),HE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},VE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Soe=HE.flags.slice().concat(["fullReplot"]),Eoe=VE.flags.slice().concat("layoutReplot");jE.exports={traces:HE,layout:VE,traceFlags:function(){return GE(Soe)},layoutFlags:function(){return GE(Eoe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";H5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};H5.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 V5=N((Gke,XE)=>{"use strict";XE.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 cd=N(ud=>{"use strict";var{DATE_FORMAT_LINK:koe,FORMAT_LINK:Coe}=V5(),Loe=["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 Doe({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}".`,Coe,"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}".`,koe,"for details on the date formatting syntax.",Loe].join(" ")}ud.templateFormatStringDescription=Doe;ud.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ud.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ud.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});ud.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var r2=N((Vke,ek)=>{"use strict";function Nc(e,r){return r?r.d2l(e):e}function ZE(e,r){return r?r.l2d(e):e}function Foe(e){return e.x0}function Roe(e){return e.x1}function qoe(e){return e.y0}function Poe(e){return e.y1}function JE(e){return e.x0shift||0}function $E(e){return e.x1shift||0}function QE(e){return e.y0shift||0}function KE(e){return e.y1shift||0}function Kg(e,r){return Nc(e.x1,r)+$E(e)-Nc(e.x0,r)-JE(e)}function e2(e,r,t){return Nc(e.y1,t)+KE(e)-Nc(e.y0,t)-QE(e)}function Noe(e,r){return Math.abs(Kg(e,r))}function Ioe(e,r,t){return Math.abs(e2(e,r,t))}function Ooe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Kg(e,r),2)+Math.pow(e2(e,r,t),2))}function Boe(e,r){return ZE((Nc(e.x1,r)+$E(e)+Nc(e.x0,r)+JE(e))/2,r)}function zoe(e,r,t){return ZE((Nc(e.y1,t)+KE(e)+Nc(e.y0,t)+QE(e))/2,t)}function Goe(e,r,t){return e.type!=="line"?void 0:e2(e,r,t)/Kg(e,r)}var Uoe=["x0","x1","y0","y1","dy","height","ycenter"],Hoe=["x0","x1","y0","y1","dx","width","xcenter"];ek.exports={x0:Foe,x1:Roe,y0:qoe,y1:Poe,slope:Goe,dx:Kg,dy:e2,width:Noe,height:Ioe,length:Ooe,xcenter:Boe,ycenter:zoe,simpleXVariables:Uoe,simpleYVariables:Hoe}});var ak=N((Yke,tk)=>{"use strict";var Voe=Rs().overrideAll,Eh=Ds(),rk=zi(),Yoe=Pc().dash,Ic=zn().extendFlat,{shapeTexttemplateAttrs:Woe,templatefallbackAttrs:joe}=cd(),Xoe=r2();tk.exports=Voe({newshape:{visible:Ic({},Eh.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ic({},Eh.legend,{}),legendgroup:Ic({},Eh.legendgroup,{}),legendgrouptitle:{text:Ic({},Eh.legendgrouptitle.text,{}),font:rk({})},legendrank:Ic({},Eh.legendrank,{}),legendwidth:Ic({},Eh.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ic({},Yoe,{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:Ic({},Eh.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Woe({newshape:!0},{keys:Object.keys(Xoe)}),texttemplatefallback:joe({editType:"arraydraw"}),font:rk({}),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 ik=N((Wke,nk)=>{"use strict";var Zoe=Pc().dash,Joe=zn().extendFlat;nk.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:Joe({},Zoe,{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 t2=N((jke,ok)=>{"use strict";ok.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 vd=N((Xke,uk)=>{"use strict";var Y5=zi(),$oe=Z1(),a2=Mf(),lk=ak(),sk=ik(),Qoe=t2(),fk=zn().extendFlat,n2=Y5({editType:"calc"});n2.family.dflt='"Open Sans", verdana, arial, sans-serif';n2.size.dflt=12;n2.color.dflt=a2.defaultLine;uk.exports={font:n2,title:{text:{valType:"string",editType:"layoutstyle"},font:Y5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Y5({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(Qoe({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:a2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:a2.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:a2.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:lk.newshape,activeshape:lk.activeshape,newselection:sk.newselection,activeselection:sk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:fk({},$oe.transition,{editType:"none"})}});var ck=N(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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(oa=>{"use strict";var hd=Sh(),vk=$g(),hk=z5(),Koe=Fc(),ele=X1().addStyleRule,dk=zn(),rle=Ds(),tle=vd(),ale=dk.extendFlat,W5=dk.extendDeepAll;oa.modules={};oa.allCategories={};oa.allTypes=[];oa.subplotsRegistry={};oa.componentsRegistry={};oa.layoutArrayContainers=[];oa.layoutArrayRegexes=[];oa.traceLayoutAttributes={};oa.localeRegistry={};oa.apiMethodRegistry={};oa.collectableSubplotTypes=null;oa.register=function(r){if(oa.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 fle=td().timeFormat,Mk=ba(),j5=Sh(),Bc=nd().mod,md=ri(),zl=md.BADNUM,Zo=md.ONEDAY,J1=md.ONEHOUR,Oc=md.ONEMIN,pd=md.ONESEC,$1=md.EPOCHJD,ku=Bt(),bk=td().utcFormat,ule=/^\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,cle=/^\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,xk=new Date().getFullYear()-70;function Cu(e){return e&&ku.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Un.dateTick0=function(e,r){var t=vle(e,!!r);if(r<2)return t;var a=Un.dateTime2ms(t,e);return a+=Zo*(r-1),Un.ms2DateTime(a,0,e)};function vle(e,r){return Cu(e)?r?ku.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ku.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Un.dfltRange=function(e){return Cu(e)?ku.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Un.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var o2,l2;Un.dateTime2ms=function(e,r){if(Un.isJSDate(e)){var t=e.getTimezoneOffset()*Oc,a=(e.getUTCMinutes()-e.getMinutes())*Oc+(e.getUTCSeconds()-e.getSeconds())*pd+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Oc;t=t-n/2+Bc(a-t+n/2,n)}return e=Number(e)-t,e>=o2&&e<=l2?e:zl}if(typeof e!="string"&&typeof e!="number")return zl;e=String(e);var i=Cu(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?cle:ule);if(!s)return zl;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 zl;f=Number(f);var y;try{var m=ku.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 zl}return y?(y.toJD()-$1)*Zo+v*J1+d*Oc+p*pd:zl}f.length===2?f=(Number(f)+2e3-xk)%100+xk: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?zl:T.getTime()+p*pd};o2=Un.MIN_MS=Un.dateTime2ms("-9999");l2=Un.MAX_MS=Un.dateTime2ms("9999-12-31 23:59:59.9999");Un.isDateTime=function(e,r){return Un.dateTime2ms(e,r)!==zl};function dd(e,r){return String(e+Math.pow(10,r)).slice(1)}var i2=90*Zo,_k=3*J1,wk=5*Oc;Un.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=o2&&e<=l2))return zl;r||(r=0);var a=Math.floor(Bc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Cu(t)){var c=Math.floor(n/Zo)+$1,v=Math.floor(Bc(e,Zo));try{i=ku.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=bk("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=o2+Zo&&e<=l2-Zo))return zl;var r=Math.floor(Bc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=fle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Sk(a,n,i,o,l)};function Sk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+dd(r,2)+":"+dd(t,2),(a||n)&&(e+=":"+dd(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+dd(n,i)}return e}Un.cleanDate=function(e,r,t){if(e===zl)return r;if(Un.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Cu(t))return j5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Un.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Un.isDateTime(e,t))return j5.error("unrecognized date",e),r;return e};var hle=/%\d?f/g,dle=/%h/g,ple={1:"1",2:"1",3:"2",4:"2"};function Ak(e,r,t,a){e=e.replace(hle,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(dle,function(){return ple[t("%q")(n)]}),Cu(a))try{e=ku.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var mle=[59,59.9,59.99,59.999,59.9999];function yle(e,r){var t=Bc(e+.05,Zo),a=dd(Math.floor(t/J1),2)+":"+dd(Bc(Math.floor(t/Oc),60),2);if(r!=="M"){Mk(r)||(r=0);var n=Math.min(Bc(e/pd,60),mle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Un.formatDate=function(e,r,t,a,n,i){if(n=Cu(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`)};function q(ie){return ie.map(Z).join(h)}function Z(ie){return w.test(ie)?'"'+ie.replace(/\"/g,'""')+'"':ie}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Mn,Dl,zo,yi,nf=this[Q(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){Go.apply(this,arguments)};function Go(h,g,w){var C=arguments.length;C<2&&(g=0),C<3&&(w=Date.now());var L=w+g,D={c:h,t:L,n:null};return Dl?Dl.n=D:Mn=D,Dl=D,zo||(yi=clearTimeout(yi),zo=1,nf(To)),D}function To(){var h=Fl(),g=ac()-h;g>24?(isFinite(g)&&(clearTimeout(yi),yi=setTimeout(To,g)),zo=0):(zo=1,nf(To))}e.timer.flush=function(){Fl(),ac()};function Fl(){for(var h=Date.now(),g=Mn;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function ac(){for(var h,g=Mn,w=1/0;g;)g.c?(g.t=0;--q)Me.push(L[ie[ye[q]][2]]);for(q=+je;q1&&Ba(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function a1(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return we(h,nc),h};var nc=e.geom.polygon.prototype=[];nc.area=function(){for(var h=-1,g=this.length,w,C=this[g-1],L=0;++hOe)q=q.L;else if(G=g-Hv(q,w),G>Oe){if(!q.R){C=q;break}q=q.R}else{D>-Oe?(C=q.P,L=q):G>-Oe?(C=q,L=q.N):C=L=q;break}var Z=ic(h);if(gi.insert(C,Z),!(!C&&!L)){if(C===L){ff(C),L=ic(C.site),gi.insert(Z,L),Z.edge=L.edge=tu(C.site,Z.site),Bi(C),Bi(L);return}if(!L){Z.edge=tu(C.site,Z.site);return}ff(C),ff(L);var ie=C.site,le=ie.x,ye=ie.y,ge=h.x-le,je=h.y-ye,Qe=L.site,Me=Qe.x-le,Fe=Qe.y-ye,Ge=2*(ge*Fe-je*Me),er=ge*ge+je*je,tr=Me*Me+Fe*Fe,De={x:(Fe*er-je*tr)/Ge+le,y:(ge*tr-Me*er)/Ge+ye};ql(L.edge,ie,Qe,De),Z.edge=tu(ie,h,null,De),L.edge=tu(h,Qe,null,De),Bi(C),Bi(L)}}function oc(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 le=q-C,ye=1/D-1/ie,ge=le/ie;return ye?(-ge+Math.sqrt(ge*ge-2*ye*(le*le/(-2*ie)-Z+ie/2+L-D/2)))/ye+C:(C+q)/2}function Hv(h,g){var w=h.N;if(w)return oc(w,g);var C=h.site;return C.y===g?C.x:1/0}function lc(h){this.site=h,this.edges=[]}lc.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 So(h){for(var g=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,Z,ie=Mo,le=ie.length,ye,ge,je,Qe,Me,Fe;le--;)if(ye=ie[le],!(!ye||!ye.prepare()))for(je=ye.edges,Qe=je.length,ge=0;geOe||b(Z-G)>Oe)&&(je.splice(ge,0,new sc(o1(ye.site,Fe,b(q-g)Oe?{x:g,y:b(D-g)Oe?{x:b(G-L)Oe?{x:w,y:b(D-w)Oe?{x:b(G-C)=-pr)){var ge=Z*Z+ie*ie,je=le*le+Fe*Fe,Qe=(Fe*ge-ie*je)/ye,Me=(Z*je-le*ge)/ye,Fe=Me+q,Ge=lf.pop()||new eu;Ge.arc=h,Ge.site=L,Ge.x=Qe+G,Ge.y=Fe+Math.sqrt(Qe*Qe+Me*Me),Ge.cy=Fe,h.circle=Ge;for(var er=null,tr=ll._;tr;)if(Ge.y0)){if(Me/=je,je<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=w-q,!(!je&&Me<0)){if(Me/=je,je<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(je>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*je,y:Z+ye*Qe}),ge<1&&(L.b={x:q+ge*je,y:Z+ge*Qe}),L}}}}}}function i1(h){for(var g=Ho,w=n1(h[0][0],h[0][1],h[1][0],h[1][1]),C=g.length,L;C--;)L=g[C],(!ru(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(le>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(le>ge){if(!C)C={x:(G-Ge)/Fe,y:G};else if(C.y>=q)return;w={x:(q-Ge)/Fe,y:q}}else{if(!C)C={x:(q-Ge)/Fe,y:q};else if(C.y=D)return;w={x:D,y:Fe*D+Ge}}else{if(!C)C={x:D,y:Fe*D+Ge};else if(C.x=le&&Ge.x<=ge&&Ge.y>=ye&&Ge.y<=je?[[le,je],[ge,je],[ge,ye],[le,ye]]:[];er.point=Z[Me]}),ie}function q(Z){return Z.map(function(ie,le){return{x:Math.round(C(ie,le)/Oe)*Oe,y:Math.round(L(ie,le)/Oe)*Oe,i:le}})}return G.links=function(Z){return fl(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 fl(q(Z)).cells.forEach(function(le,ye){for(var ge=le.site,je=le.edges.sort(sf),Qe=-1,Me=je.length,Fe,Ge,er=je[Me-1].edge,tr=er.l===ge?er.r:er.l;++Qetr&&(tr=le.x),le.y>De&&(De=le.y),je.push(le.x),Qe.push(le.y);else for(Me=0;Metr&&(tr=Fr),Br>De&&(De=Br),je.push(Fr),Qe.push(Br)}var it=tr-Ge,yt=De-er;it>yt?De=er+it:tr=Ge+yt;function Ct(Rt,Nt,ma,_n,Ca,dt,Yt,jt){if(!(isNaN(ma)||isNaN(_n)))if(Rt.leaf){var va=Rt.x,Ya=Rt.y;if(va!=null)if(b(va-ma)+b(Ya-_n)<.01)Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt);else{var Dn=Rt.point;Rt.x=Rt.y=Rt.point=null,Lt(Rt,Dn,va,Ya,Ca,dt,Yt,jt),Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}else Rt.x=ma,Rt.y=_n,Rt.point=Nt}else Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}function Lt(Rt,Nt,ma,_n,Ca,dt,Yt,jt){var va=(Ca+Yt)*.5,Ya=(dt+jt)*.5,Dn=ma>=va,Kn=_n>=Ya,ei=Kn<<1|Dn;Rt.leaf=!1,Rt=Rt.nodes[ei]||(Rt.nodes[ei]=O0()),Dn?Ca=va:Yt=va,Kn?dt=Ya:jt=Ya,Ct(Rt,Nt,ma,_n,Ca,dt,Yt,jt)}var Vt=O0();if(Vt.add=function(Rt){Ct(Vt,Rt,+ye(Rt,++Me),+ge(Rt,Me),Ge,er,tr,De)},Vt.visit=function(Rt){au(Rt,Vt,Ge,er,tr,De)},Vt.find=function(Rt){return Vv(Vt,Rt[0],Rt[1],Ge,er,tr,De)},Me=-1,g==null){for(;++MeD||ge>G||je=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:ki(C,L)})),w=nu.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)?Eo:Sn:g instanceof Qa?Eo:Array.isArray(g)?cf:w==="object"&&isNaN(g)?B0:ki)(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)||uc,C=Wv.get(C)||ae,c1(C(w.apply(null,r.call(arguments,1))))};function c1(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function uo(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 Zi(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 v1(h){return Math.pow(2,10*(h-1))}function h1(h){return 1-Math.sqrt(1-h*h)}function d1(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 p1(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function iu(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 Ii(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateHsl=m1;function m1(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 Ka(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 tc(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateRound=cc;function cc(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 z0(C?C.matrix:gs)})(h)};function z0(h){var g=[h.a,h.b],w=[h.c,h.d],C=G0(g),L=Pl(g,w),D=G0(Ci(w,g,-L))||0;g[0]*w[1]180?g+=360:g-h>180&&(h+=360),C.push({i:w.push(Nl(w)+"rotate(",null,")")-2,x:ki(h,g)})):g&&w.push(Nl(w)+"rotate("+g+")")}function rh(h,g,w,C){h!==g?C.push({i:w.push(Nl(w)+"skewX(",null,")")-2,x:ki(h,g)}):g&&w.push(Nl(w)+"skewX("+g+")")}function th(h,g,w,C){if(h[0]!==g[0]||h[1]!==g[1]){var L=w.push(Nl(w)+"scale(",null,",",null,")");C.push({i:L-4,x:ki(h[0],g[0])},{i:L-2,x:ki(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Nl(w)+"scale("+g+")")}function vc(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=Go(h.tick)),h):D},h.start=function(){var De,Fr=je.length,Br=Qe.length,it=C[0],yt=C[1],Ct,Lt;for(De=0;De=0;)D.push(le=ie[Z]),le.parent=q,le.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 Vo(L,function(ye){var ge,je;h&&(ge=ye.children)&&ge.sort(h),w&&(je=ye.parent)&&(je.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&&(lu(L,function(D){D.children&&(D.value=0)}),Vo(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=_1,h}function lu(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 Vo(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 T1(h){return h.reduce(M1,0)}function M1(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,w=E1,C=S1;function L(D,ge){for(var q=[],Z=D.map(g,this),ie=w.call(this,Z,ge),le=C.call(this,ie,Z,ge),ye,ge=-1,je=Z.length,Qe=le.length-1,Me=h?1:1/je,Fe;++ge0)for(ge=-1;++ge=ie[0]&&Fe<=ie[1]&&(ye=q[e.bisect(le,Fe,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 U0(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function S1(h,g){return U0(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function U0(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 E1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(su),g=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie=w[0],le=w[1],ye=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(Z.x=Z.y=0,Vo(Z,function(je){je.r=+ye(je.value)}),Vo(Z,V0),g){var ge=g*(C?1:Math.max(2*Z.r/ie,2*Z.r/le))/2;Vo(Z,function(je){je.r+=ge}),Vo(Z,V0),Vo(Z,function(je){je.r-=ge})}return Y0(Z,ie/2,le/2,C?1:1/Math.max(2*Z.r/ie,2*Z.r/le)),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 su(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 dc(h,g){h._pack_next=g,g._pack_prev=h}function H0(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 V0(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,le,ye,ge;function je(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(k1),G=g[0],G.x=-G.r,G.y=0,je(G),ge>1&&(q=g[1],q.x=q.r,q.y=0,je(q),ge>2))for(Z=g[2],Rg(G,q,Z),je(Z),hh(G,Z),G._pack_prev=Z,hh(Z,q),q=G._pack_next,ie=3;ieFe.x&&(Fe=Fr),Fr.depth>Ge.depth&&(Ge=Fr)});var er=g(Me,Fe)/2-Me.x,tr=w[0]/(Fe.x+g(Fe,Me)/2+er),De=w[1]/(Ge.depth||1);lu(je,function(Fr){Fr.x=(Fr.x+er)*tr,Fr.y=Fr.depth*De})}return ge}function D(le){for(var ye={A:null,children:[le]},ge=[ye],je;(je=ge.pop())!=null;)for(var Qe=je.children,Me,Fe=0,Ge=Qe.length;Fe0&&(F1(dh(Me,le,ge),le,Fr),Ge+=Fr,er+=Fr),tr+=Me.m,Ge+=je.m,De+=Fe.m,er+=Qe.m;Me&&!D1(Qe)&&(Qe.t=Me,Qe.m+=tr-er),je&&!L1(Fe)&&(Fe.t=je,Fe.m+=Ge-De,ge=le)}return ge}function ie(le){le.x*=w[0],le.y=le.depth*w[1]}return L.separation=function(le){return arguments.length?(g=le,L):g},L.size=function(le){return arguments.length?(C=(w=le)==null?ie:null,L):C?null:w},L.nodeSize=function(le){return arguments.length?(C=(w=le)==null?null:ie,L):C?w:null},bs(L,h)};function W0(h,g){return h.parent==g.parent?1:2}function L1(h){var g=h.children;return g.length?g[0]:h.t}function D1(h){var g=h.children,w;return(w=g.length)?g[w-1]:h.t}function F1(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 fu(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=W0,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie,le=0;Vo(Z,function(Me){var Fe=Me.children;Fe&&Fe.length?(Me.x=ph(Fe),Me.y=Bn(Fe)):(Me.x=ie?le+=g(Me,ie):0,Me.y=0,ie=Me)});var ye=j0(Z),ge=X0(Z),je=ye.x-g(ye,ge)/2,Qe=ge.x+g(ge,ye)/2;return Vo(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-je)/(Qe-je)*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 Bn(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 j0(h){var g=h.children;return g&&g.length?j0(g[0]):h}function X0(h){var g=h.children,w;return g&&(w=g.length)?X0(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,Fe){for(var Ge=-1,er=Me.length,tr,De;++Ge0;)er.push(De=tr[yt-1]),er.area+=De.area,q!=="squarify"||(Br=ge(er,it))<=Fr?(tr.pop(),Fr=Br):(er.area-=er.pop().area,je(er,it,Ge,!1),it=Math.min(Ge.dx,Ge.dy),er.length=er.area=0,Fr=1/0);er.length&&(je(er,it,Ge,!0),er.length=er.area=0),Fe.forEach(le)}}function ye(Me){var Fe=Me.children;if(Fe&&Fe.length){var Ge=L(Me),er=Fe.slice(),tr,De=[];for(ie(er,Ge.dx*Ge.dy/Me.value),De.area=0;tr=er.pop();)De.push(tr),De.area+=tr.area,tr.z!=null&&(je(De,tr.z?Ge.dx:Ge.dy,Ge,!er.length),De.length=De.area=0);Fe.forEach(ye)}}function ge(Me,Fe){for(var Ge=Me.area,er,tr=0,De=1/0,Fr=-1,Br=Me.length;++Frtr&&(tr=er));return Ge*=Ge,Fe*=Fe,Ge?Math.max(Fe*tr*Z/Ge,Ge/(Fe*De*Z)):1/0}function je(Me,Fe,Ge,er){var tr=-1,De=Me.length,Fr=Ge.x,Br=Ge.y,it=Fe?g(Me.area/Fe):0,yt;if(Fe==Ge.dx){for((er||it>Ge.dy)&&(it=Ge.dy);++trGe.dx)&&(it=Ge.dx);++tr1);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?Lo:R1,ie=C?nh:ah;return L=Z(h,g,ie,w),D=Z(g,h,ie,ul),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(cc)},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 yc(h,Z),G()},q.copy=function(){return J0(h,g,w,C)},G()}function co(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function yc(h,g){return cl(h,Ta(Ji(h,g)[2])),cl(h,Ta(Ji(h,g)[2])),h}function Ji(h,g){g==null&&(g=10);var w=pc(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,Ji(h,g))}var uu={s:1,g:1,p:1,r:1,e:1};function hf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function gc(h,g){var w=hf(g[2]);return h in uu?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=cl(C.map(L),w?Math:Ts);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=pc(C),Z=[],ie=q[0],le=q[1],ye=Math.floor(L(ie)),ge=Math.ceil(L(le)),je=g%1?2:g;if(isFinite(ge-ye)){if(w){for(;ye0;Qe--)Z.push(D(ye)*Qe);for(ye=0;Z[ye]le;ge--);Z=Z.slice(ye,ge)}return Z},G.copy=function(){return df(h.copy(),g,w,C)},co(G,h)}var Ts={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return bc(e.scale.linear(),1,[0,1])};function bc(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(yc(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 bc(h.copy(),g,w)},co(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 xc([],{t:"range",a:[[]]})};function xc(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,le;++Z0?w[D-1]:h[0],Dge?0:1;if(le=Tt)return Z(le,Qe)+(ie?Z(ie,1-Qe):"")+"Z";var Me,Fe,Ge,er,tr=0,De=0,Fr,Br,it,yt,Ct,Lt,Vt,Rt,Nt=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ge=C===mf?Math.sqrt(ie*ie+le*le):+C.apply(this,arguments),Qe||(De*=-1),le&&(De=Va(Ge/le*Math.sin(er))),ie&&(tr=Va(Ge/ie*Math.sin(er)))),le){Fr=le*Math.cos(ye+De),Br=le*Math.sin(ye+De),it=le*Math.cos(ge-De),yt=le*Math.sin(ge-De);var ma=Math.abs(ge-ye-2*De)<=_r?0:1;if(De&&gf(Fr,Br,it,yt)===Qe^ma){var _n=(ye+ge)/2;Fr=le*Math.cos(_n),Br=le*Math.sin(_n),it=yt=null}}else Fr=Br=0;if(ie){Ct=ie*Math.cos(ge-tr),Lt=ie*Math.sin(ge-tr),Vt=ie*Math.cos(ye+tr),Rt=ie*Math.sin(ye+tr);var Ca=Math.abs(ye-ge+2*tr)<=_r?0:1;if(tr&&gf(Ct,Lt,Vt,Rt)===1-Qe^Ca){var dt=(ye+ge)/2;Ct=ie*Math.cos(dt),Lt=ie*Math.sin(dt),Vt=Rt=null}}else Ct=Lt=0;if(je>Oe&&(Me=Math.min(Math.abs(le-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,le=h[0]+Z,ye=h[1]+ie,ge=g[0]+Z,je=g[1]+ie,Qe=(le+ge)/2,Me=(ye+je)/2,Fe=ge-le,Ge=je-ye,er=Fe*Fe+Ge*Ge,tr=w-C,De=le*je-ge*ye,Fr=(Ge<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-De*De)),Br=(De*Ge-Fe*Fr)/er,it=(-De*Fe-Ge*Fr)/er,yt=(De*Ge+Fe*Fr)/er,Ct=(-De*Fe+Ge*Fr)/er,Lt=Br-Qe,Vt=it-Me,Rt=yt-Qe,Nt=Ct-Me;return Lt*Lt+Vt*Vt>Rt*Rt+Nt*Nt&&(Br=yt,it=Ct),[[Br-Z,it-ie],[Br*w/tr,it*w/tr]]}function xf(){return!0}function Sc(h){var g=Uo,w=hs,C=xf,L=Li,D=L.key,G=.7;function q(Z){var ie=[],le=[],ye=-1,ge=Z.length,je,Qe=ra(g),Me=ra(w);function Fe(){ie.push("M",L(h(le),G))}for(;++ye1?h.join("L"):h+"Z"}function _f(h){return h.join("L")+"Z"}function vl(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 yu(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?Li(h):h[0]+Yo(h,P1(h))}e.svg.line.radial=function(){var h=Sc(Ec);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Ec(h){for(var g,w=-1,C=h.length,L,D;++w_r)+",1 "+ye}function ie(le,ye,ge,je){return"Q 0,0 "+je}return D.radius=function(le){return arguments.length?(w=ra(le),D):w},D.source=function(le){return arguments.length?(h=ra(le),D):h},D.target=function(le){return arguments.length?(g=ra(le),D):g},D.startAngle=function(le){return arguments.length?(C=ra(le),D):C},D.endAngle=function(le){return arguments.length?(L=ra(le),D):L},D};function bu(h){return h.radius}e.svg.diagonal=function(){var h=$0,g=po,w=Q0;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 Q0(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Q0,w=h.projection;return h.projection=function(C){return arguments.length?w(N1(g=C)):g},h};function N1(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=O1,g=I1;function w(C,L){return(ed.get(h.call(this,C,L))||K0)(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 I1(){return 64}function O1(){return"circle"}function K0(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 ed=e.map({circle:K0,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*rd)),w=g*rd;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/Cc),w=g*Cc/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/Cc),w=g*Cc/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ed.keys();var Cc=Math.sqrt(3),rd=Math.tan(30*Ot);$e.transition=function(h){for(var g=ml||++Af,w=_u(h),C=[],L,D,G=Ol||{time:Date.now(),ease:Zi,delay:0,duration:250},q=-1,Z=this.length;++q0;)ye[--er].call(h,Ge);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=Go(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 le=e.select(this),ye=this.__chart__||h,ge=this.__chart__=h.copy(),je=G==null?ge.ticks?ge.ticks.apply(ge,D):ge.domain():G,Qe=q==null?ge.tickFormat?ge.tickFormat.apply(ge,D):ae:q,Me=le.selectAll(".tick").data(je,ge),Fe=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Ge=e.transition(Me.exit()).style("opacity",Oe).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,De,Fr=mc(ge),Br=le.selectAll(".domain").data([0]),it=(Br.enter().append("path").attr("class","domain"),e.transition(Br));Fe.append("line"),Fe.append("text");var yt=Fe.select("line"),Ct=er.select("line"),Lt=Me.select("text").text(Qe),Vt=Fe.select("text"),Rt=er.select("text"),Nt=g==="top"||g==="left"?-1:1,ma,_n,Ca,dt;if(g==="bottom"||g==="top"?(De=Au,ma="x",Ca="y",_n="x2",dt="y2",Lt.attr("dy",Nt<0?"0em":".71em").style("text-anchor","middle"),it.attr("d","M"+Fr[0]+","+Nt*C+"V0H"+Fr[1]+"V"+Nt*C)):(De=Tu,ma="y",Ca="x",_n="y2",dt="x2",Lt.attr("dy",".32em").style("text-anchor",Nt<0?"end":"start"),it.attr("d","M"+Nt*C+","+Fr[0]+"H0V"+Fr[1]+"H"+Nt*C)),yt.attr(dt,Nt*w),Vt.attr(Ca,Nt*tr),Ct.attr(_n,0).attr(dt,Nt*w),Rt.attr(ma,0).attr(Ca,Nt*tr),ge.rangeBand){var Yt=ge,jt=Yt.rangeBand()/2;ye=ge=function(va){return Yt(va)+jt}}else ye.rangeBand?ye=ge:Ge.call(De,ge,ye);Fe.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 wu?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 le=arguments.length;return le?(w=+ie,C=+arguments[le-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",wu={top:1,right:1,bottom:1,left:1};function Au(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function Tu(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=Ee(le,"brushstart","brush","brushend"),g=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,Z=!0,ie=Es[0];function le(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),Ge=Fe.selectAll(".background").data([0]);Ge.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,ae);er.exit().remove(),er.enter().append("g").attr("class",function(Br){return"resize "+Br}).style("cursor",function(Br){return Mu[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",le.empty()?"none":null);var tr=e.transition(Fe),De=e.transition(Ge),Fr;g&&(Fr=mc(g),De.attr("x",Fr[0]).attr("width",Fr[1]-Fr[0]),ge(tr)),w&&(Fr=mc(w),De.attr("y",Fr[0]).attr("height",Fr[1]-Fr[0]),je(tr)),ye(tr)})}le.event=function(Me){Me.each(function(){var Fe=h.of(this,arguments),Ge={x:C,y:L,i:D,j:G},er=this.__chart__||Ge;this.__chart__=Ge,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 tr=cf(C,Ge.x),De=cf(L,Ge.y);return D=G=null,function(Fr){C=Ge.x=tr(Fr),L=Ge.y=De(Fr),Fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ge.i,G=Ge.j,Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"})}):(Fe({type:"brushstart"}),Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"}))})};function ye(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 je(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),Ge=h.of(Me,arguments),er=e.select(Me),tr=Fe.datum(),De=!/^(n|s)$/.test(tr)&&g,Fr=!/^(e|w)$/.test(tr)&&w,Br=Fe.classed("extent"),it=jr(Me),yt,Ct=e.mouse(Me),Lt,Vt=e.select(i(Me)).on("keydown.brush",ma).on("keyup.brush",_n);if(e.event.changedTouches?Vt.on("touchmove.brush",Ca).on("touchend.brush",Yt):Vt.on("mousemove.brush",Ca).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),Br)Ct[0]=C[0]-Ct[0],Ct[1]=L[0]-Ct[1];else if(tr){var Rt=+/w$/.test(tr),Nt=+/^n/.test(tr);Lt=[C[1-Rt]-Ct[0],L[1-Nt]-Ct[1]],Ct[0]=C[Rt],Ct[1]=L[Nt]}else e.event.altKey&&(yt=Ct.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Fe.style("cursor")),Ge({type:"brushstart"}),Ca();function ma(){e.event.keyCode==32&&(Br||(yt=null,Ct[0]-=C[1],Ct[1]-=L[1],Br=2),Le())}function _n(){e.event.keyCode==32&&Br==2&&(Ct[0]+=C[1],Ct[1]+=L[1],Br=0,Le())}function Ca(){var jt=e.mouse(Me),va=!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 DM!="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 Ar(rr){return Pe(rr=arguments.length===0?new Date:new Date(+rr)),rr}return Ar.floor=function(rr){return Pe(rr=new Date(+rr)),rr},Ar.ceil=function(rr){return Pe(rr=new Date(rr-1)),or(rr,1),Pe(rr),rr},Ar.round=function(rr){var ur=Ar(rr),Hr=Ar.ceil(rr);return rr-ur0))return ot;do ot.push(Wr=new Date(+rr)),or(rr,Hr),Pe(rr);while(Wr=ur)for(;Pe(ur),!rr(ur);)ur.setTime(ur-1)},function(ur,Hr){if(ur>=ur)if(Hr<0)for(;++Hr<=0;)for(;or(ur,-1),!rr(ur););else for(;--Hr>=0;)for(;or(ur,1),!rr(ur););})},st&&(Ar.count=function(rr,ur){return r.setTime(+rr),t.setTime(+ur),Pe(r),Pe(t),Math.floor(st(r,t))},Ar.every=function(rr){return rr=Math.floor(rr),!isFinite(rr)||!(rr>0)?null:rr>1?Ar.filter(kt?function(ur){return kt(ur)%rr===0}:function(ur){return Ar.count(0,ur)%rr===0}):Ar}),Ar}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,V=M.range,ae=k.range,re=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,oe=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()});oe.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 se=oe.range,Le=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()}),Ue=Le.range,Ee=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=Ee.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}),fr=we.range;function Ie(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=Ie(0),vr=Ie(1),$e=Ie(2),ee=Ie(3),de=Ie(4),ne=Ie(5),qe=Ie(6),Je=He.range,Ke=vr.range,Sr=$e.range,Er=ee.range,br=de.range,zr=ne.range,Vr=qe.range,nt=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=nt.range,Yr=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()});Yr.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 et=Yr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=F,e.timeFridays=re,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=ae,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=x,e.timeWeeks=O,e.timeYear=oe,e.timeYears=se,e.utcDay=we,e.utcDays=fr,e.utcFriday=ne,e.utcFridays=zr,e.utcHour=Ee,e.utcHours=Ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Le,e.utcMinutes=Ue,e.utcMonday=vr,e.utcMondays=Ke,e.utcMonth=nt,e.utcMonths=wr,e.utcSaturday=qe,e.utcSaturdays=Vr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=He,e.utcSundays=Je,e.utcThursday=de,e.utcThursdays=br,e.utcTuesday=$e,e.utcTuesdays=Sr,e.utcWednesday=ee,e.utcWednesdays=Er,e.utcWeek=He,e.utcWeeks=Je,e.utcYear=Yr,e.utcYears=et,Object.defineProperty(e,"__esModule",{value:!0})})});var td=N((zg,FM)=>{(function(e,r){typeof zg=="object"&&typeof FM!="undefined"?r(zg,M5()):(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 Oe=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Oe.setFullYear(Se.y),Oe}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 Oe=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Oe.setUTCFullYear(Se.y),Oe}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Oe,pr){return{y:Se,m:Oe,d:pr,H:0,M:0,S:0,L:0}}function i(Se){var Oe=Se.dateTime,pr=Se.date,_r=Se.time,ht=Se.periods,Tt=Se.days,wt=Se.shortDays,Ot=Se.months,ta=Se.shortMonths,Ma=v(ht),Ba=d(ht),an=v(Tt),Va=d(Tt),xn=v(wt),Pn=d(wt),di=v(Ot),hn=d(Ot),Jn=v(ta),Et=d(ta),Pa={a:cs,A:vs,b:Cl,B:tc,c:null,d:J,e:J,f:Ue,H:j,I:oe,j:se,L:Le,m:Ee,M:Ve,p:Bo,q:$f,Q:ur,s:Hr,S:we,u:fr,U:Ie,V:He,w:vr,W:$e,x:null,X:null,y:ee,Y:de,Z:ne,"%":rr},ia={a:Qf,A:ji,b:pi,B:Oi,c:null,d:qe,e:qe,f:br,H:Je,I:Ke,j:Sr,L:Er,m:zr,M:Vr,p:Ll,q:mi,Q:ur,s:Hr,S:nt,u:wr,U:Yr,V:et,w:Pe,W:or,x:null,X:null,y:st,Y:kt,Z:Ar,"%":rr},Ia={a:Ka,A:en,b:fo,B:Ii,c:dn,d:k,e:k,f:V,H:P,I:P,j:F,L:H,m:M,M:O,p:Tn,q:E,Q:re,s:Q,S:R,u:y,U:m,V:b,w:p,W:T,x:nn,X:$n,y:x,Y:_,Z:A,"%":ae};Pa.x=$a(pr,Pa),Pa.X=$a(_r,Pa),Pa.c=$a(Oe,Pa),ia.x=$a(pr,ia),ia.X=$a(_r,ia),ia.c=$a(Oe,ia);function $a(Pt,$t){return function(ca){var _t=[],Qn=-1,za=0,Nn=Pt.length,ra,Ao,ol;for(ca instanceof Date||(ca=new Date(+ca));++Qn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(za=a(n(_t.y,0,1)),Nn=za.getUTCDay(),za=Nn>4||Nn===0?r.utcMonday.ceil(za):r.utcMonday(za),za=r.utcDay.offset(za,(_t.V-1)*7),_t.y=za.getUTCFullYear(),_t.m=za.getUTCMonth(),_t.d=za.getUTCDate()+(_t.w+6)%7):(za=t(n(_t.y,0,1)),Nn=za.getDay(),za=Nn>4||Nn===0?r.timeMonday.ceil(za):r.timeMonday(za),za=r.timeDay.offset(za,(_t.V-1)*7),_t.y=za.getFullYear(),_t.m=za.getMonth(),_t.d=za.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 fa(Pt,$t,ca,_t){for(var Qn=0,za=$t.length,Nn=ca.length,ra,Ao;Qn=Nn)return-1;if(ra=$t.charCodeAt(Qn++),ra===37){if(ra=$t.charAt(Qn++),Ao=Ia[ra in o?$t.charAt(Qn++):ra],!Ao||(_t=Ao(Pt,ca,_t))<0)return-1}else if(ra!=ca.charCodeAt(_t++))return-1}return _t}function Tn(Pt,$t,ca){var _t=Ma.exec($t.slice(ca));return _t?(Pt.p=Ba[_t[0].toLowerCase()],ca+_t[0].length):-1}function Ka(Pt,$t,ca){var _t=xn.exec($t.slice(ca));return _t?(Pt.w=Pn[_t[0].toLowerCase()],ca+_t[0].length):-1}function en(Pt,$t,ca){var _t=an.exec($t.slice(ca));return _t?(Pt.w=Va[_t[0].toLowerCase()],ca+_t[0].length):-1}function fo(Pt,$t,ca){var _t=Jn.exec($t.slice(ca));return _t?(Pt.m=Et[_t[0].toLowerCase()],ca+_t[0].length):-1}function Ii(Pt,$t,ca){var _t=di.exec($t.slice(ca));return _t?(Pt.m=hn[_t[0].toLowerCase()],ca+_t[0].length):-1}function dn(Pt,$t,ca){return fa(Pt,Oe,$t,ca)}function nn(Pt,$t,ca){return fa(Pt,pr,$t,ca)}function $n(Pt,$t,ca){return fa(Pt,_r,$t,ca)}function cs(Pt){return wt[Pt.getDay()]}function vs(Pt){return Tt[Pt.getDay()]}function Cl(Pt){return ta[Pt.getMonth()]}function tc(Pt){return Ot[Pt.getMonth()]}function Bo(Pt){return ht[+(Pt.getHours()>=12)]}function $f(Pt){return 1+~~(Pt.getMonth()/3)}function Qf(Pt){return wt[Pt.getUTCDay()]}function ji(Pt){return Tt[Pt.getUTCDay()]}function pi(Pt){return ta[Pt.getUTCMonth()]}function Oi(Pt){return Ot[Pt.getUTCMonth()]}function Ll(Pt){return ht[+(Pt.getUTCHours()>=12)]}function mi(Pt){return 1+~~(Pt.getUTCMonth()/3)}return{format:function(Pt){var $t=$a(Pt+="",Pa);return $t.toString=function(){return Pt},$t},parse:function(Pt){var $t=Qa(Pt+="",!1);return $t.toString=function(){return Pt},$t},utcFormat:function(Pt){var $t=$a(Pt+="",ia);return $t.toString=function(){return Pt},$t},utcParse:function(Pt){var $t=Qa(Pt+="",!0);return $t.toString=function(){return Pt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Oe,pr){var _r=Se<0?"-":"",ht=(_r?-Se:Se)+"",Tt=ht.length;return _r+(Tt68?1900:2e3),pr+_r[0].length):-1}function A(Se,Oe,pr){var _r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(pr,pr+6));return _r?(Se.Z=_r[1]?0:-(_r[2]+(_r[3]||"00")),pr+_r[0].length):-1}function E(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+1));return _r?(Se.q=_r[0]*3-3,pr+_r[0].length):-1}function M(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.m=_r[0]-1,pr+_r[0].length):-1}function k(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.d=+_r[0],pr+_r[0].length):-1}function F(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+3));return _r?(Se.m=0,Se.d=+_r[0],pr+_r[0].length):-1}function P(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.H=+_r[0],pr+_r[0].length):-1}function O(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.M=+_r[0],pr+_r[0].length):-1}function R(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+2));return _r?(Se.S=+_r[0],pr+_r[0].length):-1}function H(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+3));return _r?(Se.L=+_r[0],pr+_r[0].length):-1}function V(Se,Oe,pr){var _r=l.exec(Oe.slice(pr,pr+6));return _r?(Se.L=Math.floor(_r[0]/1e3),pr+_r[0].length):-1}function ae(Se,Oe,pr){var _r=s.exec(Oe.slice(pr,pr+1));return _r?pr+_r[0].length:-1}function re(Se,Oe,pr){var _r=l.exec(Oe.slice(pr));return _r?(Se.Q=+_r[0],pr+_r[0].length):-1}function Q(Se,Oe,pr){var _r=l.exec(Oe.slice(pr));return _r?(Se.s=+_r[0],pr+_r[0].length):-1}function J(Se,Oe){return u(Se.getDate(),Oe,2)}function j(Se,Oe){return u(Se.getHours(),Oe,2)}function oe(Se,Oe){return u(Se.getHours()%12||12,Oe,2)}function se(Se,Oe){return u(1+r.timeDay.count(r.timeYear(Se),Se),Oe,3)}function Le(Se,Oe){return u(Se.getMilliseconds(),Oe,3)}function Ue(Se,Oe){return Le(Se,Oe)+"000"}function Ee(Se,Oe){return u(Se.getMonth()+1,Oe,2)}function Ve(Se,Oe){return u(Se.getMinutes(),Oe,2)}function we(Se,Oe){return u(Se.getSeconds(),Oe,2)}function fr(Se){var Oe=Se.getDay();return Oe===0?7:Oe}function Ie(Se,Oe){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Oe,2)}function He(Se,Oe){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),Oe,2)}function vr(Se){return Se.getDay()}function $e(Se,Oe){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Oe,2)}function ee(Se,Oe){return u(Se.getFullYear()%100,Oe,2)}function de(Se,Oe){return u(Se.getFullYear()%1e4,Oe,4)}function ne(Se){var Oe=Se.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+u(Oe/60|0,"0",2)+u(Oe%60,"0",2)}function qe(Se,Oe){return u(Se.getUTCDate(),Oe,2)}function Je(Se,Oe){return u(Se.getUTCHours(),Oe,2)}function Ke(Se,Oe){return u(Se.getUTCHours()%12||12,Oe,2)}function Sr(Se,Oe){return u(1+r.utcDay.count(r.utcYear(Se),Se),Oe,3)}function Er(Se,Oe){return u(Se.getUTCMilliseconds(),Oe,3)}function br(Se,Oe){return Er(Se,Oe)+"000"}function zr(Se,Oe){return u(Se.getUTCMonth()+1,Oe,2)}function Vr(Se,Oe){return u(Se.getUTCMinutes(),Oe,2)}function nt(Se,Oe){return u(Se.getUTCSeconds(),Oe,2)}function wr(Se){var Oe=Se.getUTCDay();return Oe===0?7:Oe}function Yr(Se,Oe){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Oe,2)}function et(Se,Oe){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),Oe,2)}function Pe(Se){return Se.getUTCDay()}function or(Se,Oe){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Oe,2)}function st(Se,Oe){return u(Se.getUTCFullYear()%100,Oe,2)}function kt(Se,Oe){return u(Se.getUTCFullYear()%1e4,Oe,4)}function Ar(){return"+0000"}function rr(){return"%"}function ur(Se){return+Se}function Hr(Se){return Math.floor(+Se/1e3)}var ot;Wr({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 Wr(Se){return ot=i(Se),e.timeFormat=ot.format,e.timeParse=ot.parse,e.utcFormat=ot.utcFormat,e.utcParse=ot.utcParse,ot}var tt="%Y-%m-%dT%H:%M:%S.%LZ";function xt(Se){return Se.toISOString()}var jr=Date.prototype.toISOString?xt:e.utcFormat(tt);function at(Se){var Oe=new Date(Se);return isNaN(Oe)?null:Oe}var gr=+new Date("2000-01-01T00:00:00.000Z")?at:e.utcParse(tt);e.isoFormat=jr,e.isoParse=gr,e.timeFormatDefaultLocale=Wr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var S5=N((Gg,RM)=>{(function(e,r){typeof Gg=="object"&&typeof RM!="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,V=M[0],ae=0;O>0&&V>0&&(ae+V+1>P&&(V=Math.max(1,P-ae)),R.push(F.substring(O-=V,O+V)),!((ae+=V+1)>P));)V=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+"",V=M.minus===void 0?"-":M.minus+"",ae=M.nan===void 0?"NaN":M.nan+"";function re(J){J=l(J);var j=J.fill,oe=J.align,se=J.sign,Le=J.symbol,Ue=J.zero,Ee=J.width,Ve=J.comma,we=J.precision,fr=J.trim,Ie=J.type;Ie==="n"?(Ve=!0,Ie="g"):d[Ie]||(we===void 0&&(we=12),fr=!0,Ie="g"),(Ue||j==="0"&&oe==="=")&&(Ue=!0,j="0",oe="=");var He=Le==="$"?F:Le==="#"&&/[boxX]/.test(Ie)?"0"+Ie.toLowerCase():"",vr=Le==="$"?P:/[%p]/.test(Ie)?H:"",$e=d[Ie],ee=/[defgprs%]/.test(Ie);we=we===void 0?6:/[gprs]/.test(Ie)?Math.max(1,Math.min(21,we)):Math.max(0,Math.min(20,we));function de(ne){var qe=He,Je=vr,Ke,Sr,Er;if(Ie==="c")Je=$e(ne)+Je,ne="";else{ne=+ne;var br=ne<0||1/ne<0;if(ne=isNaN(ne)?ae:$e(Math.abs(ne),we),fr&&(ne=f(ne)),br&&+ne==0&&se!=="+"&&(br=!1),qe=(br?se==="("?se:V:se==="-"||se==="("?"":se)+qe,Je=(Ie==="s"?m[8+u/3]:"")+Je+(br&&se==="("?")":""),ee){for(Ke=-1,Sr=ne.length;++KeEr||Er>57){Je=(Er===46?O+ne.slice(Ke+1):ne.slice(Ke))+Je,ne=ne.slice(0,Ke);break}}}Ve&&!Ue&&(ne=k(ne,1/0));var zr=qe.length+ne.length+Je.length,Vr=zr>1)+qe+ne+Je+Vr.slice(zr);break;default:ne=Vr+qe+ne+Je;break}return R(ne)}return de.toString=function(){return J+""},de}function Q(J,j){var oe=re((J=l(J),J.type="f",J)),se=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,Le=Math.pow(10,-se),Ue=m[8+se/3];return function(Ee){return oe(Le*Ee)+Ue}}return{format:re,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 PM=N((DEe,qM)=>{"use strict";qM.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 ba=N((FEe,NM)=>{"use strict";var aie=PM();NM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&aie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri=N((REe,IM)=>{"use strict";IM.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 E5=N((Ug,OM)=>{(function(e,r){typeof Ug=="object"&&typeof OM!="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 Fc=N((qEe,BM)=>{"use strict";BM.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 Wo=N(Cs=>{"use strict";var nie=E5().decode,iie=Fc(),k5=Array.isArray,oie=ArrayBuffer,lie=DataView;function zM(e){return oie.isView(e)&&!(e instanceof lie)}Cs.isTypedArray=zM;function Hg(e){return k5(e)||zM(e)}Cs.isArrayOrTypedArray=Hg;function sie(e){return!Hg(e[0])}Cs.isArray1D=sie;Cs.ensureArray=function(e,r){return k5(e)||(e=[]),e.length=r,e};var Ri={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};Ri.uint8c=Ri.u1c;Ri.uint8=Ri.u1;Ri.int8=Ri.i1;Ri.uint16=Ri.u2;Ri.int16=Ri.i2;Ri.uint32=Ri.u4;Ri.int32=Ri.i4;Ri.float32=Ri.f4;Ri.float64=Ri.f8;function C5(e){return e.constructor===ArrayBuffer}Cs.isArrayBuffer=C5;Cs.decodeTypedArraySpec=function(e){var r=[],t=fie(e),a=t.dtype,n=Ri[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;C5(o)||(o=nie(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 UM=ba(),D5=Wo().isArrayOrTypedArray;WM.exports=function(r,t){if(UM(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 ad=Vg(),die=/^\w*$/,pie=0,jM=1,Yg=2,XM=3,wh=4;ZM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=ad(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 mie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yie=/^[^\.\[\]]+$/;$M.exports=function(e,r){for(;r;){var t=e.match(mie);if(t)e=t[1];else if(e.match(yie))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((BEe,KM)=>{"use strict";var gie=ba();KM.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 gie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var tS=N((zEe,rS)=>{"use strict";var eS=Wo().isArrayOrTypedArray,z1=Fc();rS.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(eS(n)&&eS(i)&&z1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function bie(e,r){var t=e%r;return t<0?t+r:t}function xie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}aS.exports={mod:bie,modHalf:xie}});var Ls=N((UEe,jg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,de){if(ee=ee||"",de=de||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,de);var ne=f(ee);this._originalInput=ee,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 ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),de,ne,qe,Je,Ke,Sr;return de=ee.r/255,ne=ee.g/255,qe=ee.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),qe<=.03928?Sr=qe/12.92:Sr=e.pow((qe+.055)/1.055,2.4),.2126*Je+.7152*Ke+.0722*Sr},setAlpha:function(ee){return this._a=J(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),de=n(ee.h*360),ne=n(ee.s*100),qe=n(ee.v*100);return this._a==1?"hsv("+de+", "+ne+"%, "+qe+"%)":"hsva("+de+", "+ne+"%, "+qe+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),de=n(ee.h*360),ne=n(ee.s*100),qe=n(ee.l*100);return this._a==1?"hsl("+de+", "+ne+"%, "+qe+"%)":"hsla("+de+", "+ne+"%, "+qe+"%, "+this._roundA+")"},toHex:function(ee){return y(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},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:re[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var de="#"+b(this._r,this._g,this._b,this._a),ne=de,qe=this._gradientType?"GradientType = 1, ":"";if(ee){var Je=s(ee);ne="#"+b(Je._r,Je._g,Je._b,Je._a)}return"progid:DXImageTransform.Microsoft.gradient("+qe+"startColorstr="+de+",endColorstr="+ne+")"},toString:function(ee){var de=!!ee;ee=ee||this._format;var ne=!1,qe=this._a<1&&this._a>=0,Je=!de&&qe&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return Je?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(ne=this.toRgbString()),ee==="prgb"&&(ne=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(ne=this.toHexString()),ee==="hex3"&&(ne=this.toHexString(!0)),ee==="hex4"&&(ne=this.toHex8String(!0)),ee==="hex8"&&(ne=this.toHex8String()),ee==="name"&&(ne=this.toName()),ee==="hsl"&&(ne=this.toHslString()),ee==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,de){var ne=ee.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(ee,de){return ee.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(V,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(ee,de){if(typeof ee=="object"){var ne={};for(var qe in ee)ee.hasOwnProperty(qe)&&(qe==="a"?ne[qe]=ee[qe]:ne[qe]=Ve(ee[qe]));ee=ne}return s(ee,de)};function f(ee){var de={r:0,g:0,b:0},ne=1,qe=null,Je=null,Ke=null,Sr=!1,Er=!1;return typeof ee=="string"&&(ee=vr(ee)),typeof ee=="object"&&(He(ee.r)&&He(ee.g)&&He(ee.b)?(de=u(ee.r,ee.g,ee.b),Sr=!0,Er=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):He(ee.h)&&He(ee.s)&&He(ee.v)?(qe=Ve(ee.s),Je=Ve(ee.v),de=p(ee.h,qe,Je),Sr=!0,Er="hsv"):He(ee.h)&&He(ee.s)&&He(ee.l)&&(qe=Ve(ee.s),Ke=Ve(ee.l),de=v(ee.h,qe,Ke),Sr=!0,Er="hsl"),ee.hasOwnProperty("a")&&(ne=ee.a)),ne=J(ne),{ok:Sr,format:ee.format||Er,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(ee,de,ne){return{r:j(ee,255)*255,g:j(de,255)*255,b:j(ne,255)*255}}function c(ee,de,ne){ee=j(ee,255),de=j(de,255),ne=j(ne,255);var qe=o(ee,de,ne),Je=i(ee,de,ne),Ke,Sr,Er=(qe+Je)/2;if(qe==Je)Ke=Sr=0;else{var br=qe-Je;switch(Sr=Er>.5?br/(2-qe-Je):br/(qe+Je),qe){case ee:Ke=(de-ne)/br+(de1&&(nt-=1),nt<1/6?zr+(Vr-zr)*6*nt:nt<1/2?Vr:nt<2/3?zr+(Vr-zr)*(2/3-nt)*6:zr}if(de===0)qe=Je=Ke=ne;else{var Er=ne<.5?ne*(1+de):ne+de-ne*de,br=2*ne-Er;qe=Sr(br,Er,ee+1/3),Je=Sr(br,Er,ee),Ke=Sr(br,Er,ee-1/3)}return{r:qe*255,g:Je*255,b:Ke*255}}function d(ee,de,ne){ee=j(ee,255),de=j(de,255),ne=j(ne,255);var qe=o(ee,de,ne),Je=i(ee,de,ne),Ke,Sr,Er=qe,br=qe-Je;if(Sr=qe===0?0:br/qe,qe==Je)Ke=0;else{switch(qe){case ee:Ke=(de-ne)/br+(de>1)+720)%360;--de;)qe.h=(qe.h+Je)%360,Ke.push(s(qe));return Ke}function V(ee,de){de=de||6;for(var ne=s(ee).toHsv(),qe=ne.h,Je=ne.s,Ke=ne.v,Sr=[],Er=1/de;de--;)Sr.push(s({h:qe,s:Je,v:Ke})),Ke=(Ke+Er)%1;return Sr}s.mix=function(ee,de,ne){ne=ne===0?0:ne||50;var qe=s(ee).toRgb(),Je=s(de).toRgb(),Ke=ne/100,Sr={r:(Je.r-qe.r)*Ke+qe.r,g:(Je.g-qe.g)*Ke+qe.g,b:(Je.b-qe.b)*Ke+qe.b,a:(Je.a-qe.a)*Ke+qe.a};return s(Sr)},s.readability=function(ee,de){var ne=s(ee),qe=s(de);return(e.max(ne.getLuminance(),qe.getLuminance())+.05)/(e.min(ne.getLuminance(),qe.getLuminance())+.05)},s.isReadable=function(ee,de,ne){var qe=s.readability(ee,de),Je,Ke;switch(Ke=!1,Je=$e(ne),Je.level+Je.size){case"AAsmall":case"AAAlarge":Ke=qe>=4.5;break;case"AAlarge":Ke=qe>=3;break;case"AAAsmall":Ke=qe>=7;break}return Ke},s.mostReadable=function(ee,de,ne){var qe=null,Je=0,Ke,Sr,Er,br;ne=ne||{},Sr=ne.includeFallbackColors,Er=ne.level,br=ne.size;for(var zr=0;zrJe&&(Je=Ke,qe=s(de[zr]));return s.isReadable(ee,qe,{level:Er,size:br})||!Sr?qe:(ne.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],ne))};var ae=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"},re=s.hexNames=Q(ae);function Q(ee){var de={};for(var ne in ee)ee.hasOwnProperty(ne)&&(de[ee[ne]]=ne);return de}function J(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function j(ee,de){Le(ee)&&(ee="100%");var ne=Ue(ee);return ee=i(de,o(0,parseFloat(ee))),ne&&(ee=parseInt(ee*de,10)/100),e.abs(ee-de)<1e-6?1:ee%de/parseFloat(de)}function oe(ee){return i(1,o(0,ee))}function se(ee){return parseInt(ee,16)}function Le(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Ue(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Ve(ee){return ee<=1&&(ee=ee*100+"%"),ee}function we(ee){return e.round(parseFloat(ee)*255).toString(16)}function fr(ee){return se(ee)/255}var Ie=function(){var ee="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",ne="(?:"+de+")|(?:"+ee+")",qe="[\\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"+qe),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+qe),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+qe),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(ee){return!!Ie.CSS_UNIT.exec(ee)}function vr(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var de=!1;if(ae[ee])ee=ae[ee],de=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ne;return(ne=Ie.rgb.exec(ee))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=Ie.rgba.exec(ee))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=Ie.hsl.exec(ee))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=Ie.hsla.exec(ee))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=Ie.hsv.exec(ee))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=Ie.hsva.exec(ee))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=Ie.hex8.exec(ee))?{r:se(ne[1]),g:se(ne[2]),b:se(ne[3]),a:fr(ne[4]),format:de?"name":"hex8"}:(ne=Ie.hex6.exec(ee))?{r:se(ne[1]),g:se(ne[2]),b:se(ne[3]),format:de?"name":"hex"}:(ne=Ie.hex4.exec(ee))?{r:se(ne[1]+""+ne[1]),g:se(ne[2]+""+ne[2]),b:se(ne[3]+""+ne[3]),a:fr(ne[4]+""+ne[4]),format:de?"name":"hex8"}:(ne=Ie.hex3.exec(ee))?{r:se(ne[1]+""+ne[1]),g:se(ne[2]+""+ne[2]),b:se(ne[3]+""+ne[3]),format:de?"name":"hex"}:!1}function $e(ee){var de,ne;return ee=ee||{level:"AA",size:"small"},de=(ee.level||"AA").toUpperCase(),ne=(ee.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 zn=N(H1=>{"use strict";var nS=Fc(),G1=Array.isArray;function _ie(e,r){var t,a;for(t=0;t{"use strict";iS.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 V1=N((YEe,oS)=>{"use strict";oS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var id=N((WEe,fS)=>{"use strict";var lS=V1(),sS=zi(),F5=sS({editType:"none"});F5.family.dflt=lS.HOVERFONT;F5.size.dflt=lS.HOVERFONTSIZE;fS.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:F5,grouptitlefont:sS({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,uS)=>{"use strict";var wie=zi(),Y1=id().hoverlabel,W1=zn().extendFlat;uS.exports={hoverlabel:{bgcolor:W1({},Y1.bgcolor,{arrayOk:!0}),bordercolor:W1({},Y1.bordercolor,{arrayOk:!0}),font:wie({arrayOk:!0,editType:"none"}),align:W1({},Y1.align,{arrayOk:!0}),namelength:W1({},Y1.namelength,{arrayOk:!0}),showarrow:W1({},Y1.showarrow),editType:"none"}}});var Ds=N((XEe,cS)=>{"use strict";var Aie=zi(),Tie=Xg();cS.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:Aie({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:Tie.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((ZEe,dS)=>{"use strict";var Mie=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)"]]},vS=Zg.RdBu;function Sie(e,r){if(r||(r=vS),!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()),hS(e)?e:r}function hS(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 ha=N(($Ee,pS)=>{"use strict";var jo=Ls(),kie=ba(),Cie=Wo().isTypedArray,xi=pS.exports={},Jg=Mf();xi.defaults=Jg.defaults;var Lie=xi.defaultLine=Jg.defaultLine;xi.lightLine=Jg.lightLine;var q5=xi.background=Jg.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(jo(e))};xi.opacity=function(e){return e?jo(e).getAlpha():0};xi.addOpacity=function(e,r){var t=jo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};xi.combine=function(e,r){var t=jo(e).toRgb();if(t.a===1)return jo(e).toRgbString();var a=jo(r||q5).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 jo(i).toRgbString()};xi.interpolate=function(e,r,t){var a=jo(e).toRgb(),n=jo(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 jo(i).toRgbString()};xi.contrast=function(e,r,t){var a=jo(e);a.getAlpha()!==1&&(a=jo(xi.combine(e,q5)));var n=a.isDark()?r?a.lighten(r):q5:t?a.darken(t):Lie;return n.toString()};xi.stroke=function(e,r){var t=jo(r);e.style({stroke:xi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};xi.fill=function(e,r){var t=jo(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 od=N((QEe,mS)=>{"use strict";mS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var ld=N(yS=>{"use strict";yS.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 _S=N(Xo=>{"use strict";var P5=ba(),gS=Ls(),bS=zn().extendFlat,Die=Ds(),Fie=Ah(),Rie=ha(),qie=od().DESELECTDIM,sd=Vg(),xS=ld().counter,Pie=nd().modHalf,Fs=Wo().isArrayOrTypedArray,Rc=Wo().isTypedArraySpec,qc=Wo().decodeTypedArraySpec;Xo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Fs(e)?e:Rc(e)?qc(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){Rc(e)&&(e=qc(e)),!P5(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}Rc(e)&&(e=qc(e)),e%1||!P5(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){Rc(e)&&(e=qc(e)),gS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return gS(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(Fie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rc(e)&&(e=qc(e)),e==="auto"?r.set("auto"):P5(e)?r.set(Pie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||xS(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:!!xS(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 wS={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},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:{}}},AS={};function TS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),TS(a,r[t]))}}TS(wS,AS);MS.exports={configAttributes:wS,dfltConfig:AS}});var I5=N((tke,SS)=>{"use strict";var N5=da(),Nie=ba(),j1=[];SS.exports=function(e,r){if(j1.indexOf(e)!==-1)return;j1.push(e);var t=1e3;Nie(r)?t=r:r==="long"&&(t=3e3);var a=N5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(j1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=j1.indexOf(l);s!==-1&&j1.splice(s,1),N5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=N5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var fd=Mh().dfltConfig,O5=I5(),B5=ES.exports={};B5.log=function(){var e;if(fd.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};B5.warn=function(){var e;if(fd.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};B5.error=function(){var e;if(fd.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Qg=N((nke,kS)=>{"use strict";kS.exports=function(){}});var z5=N((ike,CS)=>{"use strict";CS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{LS.exports=Iie;function Iie(){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 RS=N((lke,FS)=>{FS.exports=Oie;function Oie(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 PS=N((ske,qS)=>{qS.exports=Bie;function Bie(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 G5=N((fke,NS)=>{NS.exports=zie;function zie(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 OS=N((uke,IS)=>{IS.exports=Gie;function Gie(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 zS=N((cke,BS)=>{BS.exports=Uie;function Uie(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,V=T*H-_*R+x*O+A*P-E*F+M*k;return V?(V=1/V,e[0]=(l*H-s*R+f*O)*V,e[1]=(n*R-a*H-i*O)*V,e[2]=(y*M-m*E+b*A)*V,e[3]=(v*E-c*M-d*A)*V,e[4]=(s*P-o*H-f*F)*V,e[5]=(t*H-n*P+i*F)*V,e[6]=(m*x-p*M-b*_)*V,e[7]=(u*M-v*x+d*_)*V,e[8]=(o*R-l*P+f*k)*V,e[9]=(a*P-t*R-i*k)*V,e[10]=(p*E-y*x+b*T)*V,e[11]=(c*x-u*E-d*T)*V,e[12]=(l*F-o*O-s*k)*V,e[13]=(t*O-a*F+n*k)*V,e[14]=(y*_-p*A-m*T)*V,e[15]=(u*A-c*_+v*T)*V,e):null}});var US=N((vke,GS)=>{GS.exports=Hie;function Hie(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 VS=N((hke,HS)=>{HS.exports=Vie;function Vie(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 WS=N((dke,YS)=>{YS.exports=Yie;function Yie(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 XS=N((pke,jS)=>{jS.exports=Wie;function Wie(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 JS=N((mke,ZS)=>{ZS.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 QS=N((yke,$S)=>{$S.exports=Xie;function Xie(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,V,ae;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,V=i*o*u-n*s,ae=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*V+_*ae,e[9]=v*H+m*V+x*ae,e[10]=d*H+b*V+A*ae,e[11]=p*H+T*V+E*ae,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var eE=N((gke,KS)=>{KS.exports=Zie;function Zie(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 tE=N((bke,rE)=>{rE.exports=Jie;function Jie(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 nE=N((xke,aE)=>{aE.exports=$ie;function $ie(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 oE=N((_ke,iE)=>{iE.exports=Qie;function Qie(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 sE=N((wke,lE)=>{lE.exports=Kie;function Kie(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 uE=N((Ake,fE)=>{fE.exports=eoe;function eoe(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 vE=N((Tke,cE)=>{cE.exports=roe;function roe(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 dE=N((Mke,hE)=>{hE.exports=toe;function toe(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 mE=N((Ske,pE)=>{pE.exports=aoe;function aoe(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 gE=N((Eke,yE)=>{yE.exports=noe;function noe(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 xE=N((kke,bE)=>{bE.exports=ioe;function ioe(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 wE=N((Cke,_E)=>{_E.exports=ooe;function ooe(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 TE=N((Lke,AE)=>{AE.exports=loe;function loe(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 SE=N((Dke,ME)=>{ME.exports=soe;function soe(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 kE=N((Fke,EE)=>{EE.exports=foe;function foe(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 LE=N((Rke,CE)=>{var uoe=G5();CE.exports=coe;function coe(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?uoe(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 FE=N((qke,DE)=>{DE.exports=voe;function voe(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 U5=N((Pke,RE)=>{RE.exports={create:DS(),clone:RS(),copy:PS(),identity:G5(),transpose:OS(),invert:zS(),adjoint:US(),determinant:VS(),multiply:WS(),translate:XS(),scale:JS(),rotate:QS(),rotateX:eE(),rotateY:tE(),rotateZ:nE(),fromRotation:oE(),fromRotationTranslation:sE(),fromScaling:uE(),fromTranslation:vE(),fromXRotation:dE(),fromYRotation:mE(),fromZRotation:gE(),fromQuat:xE(),frustum:wE(),perspective:TE(),perspectiveFromFieldOfView:SE(),ortho:kE(),lookAt:LE(),str:FE()}});var Kg=N(Gn=>{"use strict";var hoe=U5();Gn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var doe=da(),qE=Sh(),poe=Kg(),moe=U5();function yoe(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 goe(e){var r=doe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function PE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function boe(e,r){NE("global",e,r)}function NE(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):qE.warn("addStyleRule failed"):qE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function xoe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&PE(t)}function _oe(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 woe(e){var r=OE(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=IE(a);if(n){var i=poe.convertCssMatrix(n);t=moe.multiply(t,t,i)}}),t}function IE(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 OE(e){for(var r=[];Aoe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Aoe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Toe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}BE.exports={getGraphDiv:yoe,isPlotDiv:goe,removeElement:PE,addStyleRule:boe,addRelatedStyleRule:NE,deleteRelatedStyleRule:xoe,setStyleOnHover:_oe,getFullTransformMatrix:woe,getElementTransformMatrix:IE,getElementAndAncestors:OE,equalDomRects:Toe}});var Z1=N((Oke,zE)=>{"use strict";zE.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((Bke,jE)=>{"use strict";var UE=zn().extendFlat,Moe=Fc(),HE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},VE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Soe=HE.flags.slice().concat(["fullReplot"]),Eoe=VE.flags.slice().concat("layoutReplot");jE.exports={traces:HE,layout:VE,traceFlags:function(){return GE(Soe)},layoutFlags:function(){return GE(Eoe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";H5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};H5.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 V5=N((Gke,XE)=>{"use strict";XE.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 cd=N(ud=>{"use strict";var{DATE_FORMAT_LINK:koe,FORMAT_LINK:Coe}=V5(),Loe=["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 Doe({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}".`,Coe,"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}".`,koe,"for details on the date formatting syntax.",Loe].join(" ")}ud.templateFormatStringDescription=Doe;ud.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ud.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ud.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});ud.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var t2=N((Vke,ek)=>{"use strict";function Nc(e,r){return r?r.d2l(e):e}function ZE(e,r){return r?r.l2d(e):e}function Foe(e){return e.x0}function Roe(e){return e.x1}function qoe(e){return e.y0}function Poe(e){return e.y1}function JE(e){return e.x0shift||0}function $E(e){return e.x1shift||0}function QE(e){return e.y0shift||0}function KE(e){return e.y1shift||0}function e2(e,r){return Nc(e.x1,r)+$E(e)-Nc(e.x0,r)-JE(e)}function r2(e,r,t){return Nc(e.y1,t)+KE(e)-Nc(e.y0,t)-QE(e)}function Noe(e,r){return Math.abs(e2(e,r))}function Ioe(e,r,t){return Math.abs(r2(e,r,t))}function Ooe(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 Boe(e,r){return ZE((Nc(e.x1,r)+$E(e)+Nc(e.x0,r)+JE(e))/2,r)}function zoe(e,r,t){return ZE((Nc(e.y1,t)+KE(e)+Nc(e.y0,t)+QE(e))/2,t)}function Goe(e,r,t){return e.type!=="line"?void 0:r2(e,r,t)/e2(e,r)}var Uoe=["x0","x1","y0","y1","dy","height","ycenter"],Hoe=["x0","x1","y0","y1","dx","width","xcenter"];ek.exports={x0:Foe,x1:Roe,y0:qoe,y1:Poe,slope:Goe,dx:e2,dy:r2,width:Noe,height:Ioe,length:Ooe,xcenter:Boe,ycenter:zoe,simpleXVariables:Uoe,simpleYVariables:Hoe}});var ak=N((Yke,tk)=>{"use strict";var Voe=Rs().overrideAll,Eh=Ds(),rk=zi(),Yoe=Pc().dash,Ic=zn().extendFlat,{shapeTexttemplateAttrs:Woe,templatefallbackAttrs:joe}=cd(),Xoe=t2();tk.exports=Voe({newshape:{visible:Ic({},Eh.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ic({},Eh.legend,{}),legendgroup:Ic({},Eh.legendgroup,{}),legendgrouptitle:{text:Ic({},Eh.legendgrouptitle.text,{}),font:rk({})},legendrank:Ic({},Eh.legendrank,{}),legendwidth:Ic({},Eh.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ic({},Yoe,{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:Ic({},Eh.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Woe({newshape:!0},{keys:Object.keys(Xoe)}),texttemplatefallback:joe({editType:"arraydraw"}),font:rk({}),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 ik=N((Wke,nk)=>{"use strict";var Zoe=Pc().dash,Joe=zn().extendFlat;nk.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:Joe({},Zoe,{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,ok)=>{"use strict";ok.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 vd=N((Xke,uk)=>{"use strict";var Y5=zi(),$oe=Z1(),n2=Mf(),lk=ak(),sk=ik(),Qoe=a2(),fk=zn().extendFlat,i2=Y5({editType:"calc"});i2.family.dflt='"Open Sans", verdana, arial, sans-serif';i2.size.dflt=12;i2.color.dflt=n2.defaultLine;uk.exports={font:i2,title:{text:{valType:"string",editType:"layoutstyle"},font:Y5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Y5({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(Qoe({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:lk.newshape,activeshape:lk.activeshape,newselection:sk.newselection,activeselection:sk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:fk({},$oe.transition,{editType:"none"})}});var ck=N(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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(oa=>{"use strict";var hd=Sh(),vk=Qg(),hk=z5(),Koe=Fc(),ele=X1().addStyleRule,dk=zn(),rle=Ds(),tle=vd(),ale=dk.extendFlat,W5=dk.extendDeepAll;oa.modules={};oa.allCategories={};oa.allTypes=[];oa.subplotsRegistry={};oa.componentsRegistry={};oa.layoutArrayContainers=[];oa.layoutArrayRegexes=[];oa.traceLayoutAttributes={};oa.localeRegistry={};oa.apiMethodRegistry={};oa.collectableSubplotTypes=null;oa.register=function(r){if(oa.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 fle=td().timeFormat,Mk=ba(),j5=Sh(),Bc=nd().mod,md=ri(),zl=md.BADNUM,Zo=md.ONEDAY,J1=md.ONEHOUR,Oc=md.ONEMIN,pd=md.ONESEC,$1=md.EPOCHJD,ku=Bt(),bk=td().utcFormat,ule=/^\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,cle=/^\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,xk=new Date().getFullYear()-70;function Cu(e){return e&&ku.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Un.dateTick0=function(e,r){var t=vle(e,!!r);if(r<2)return t;var a=Un.dateTime2ms(t,e);return a+=Zo*(r-1),Un.ms2DateTime(a,0,e)};function vle(e,r){return Cu(e)?r?ku.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ku.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Un.dfltRange=function(e){return Cu(e)?ku.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Un.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var l2,s2;Un.dateTime2ms=function(e,r){if(Un.isJSDate(e)){var t=e.getTimezoneOffset()*Oc,a=(e.getUTCMinutes()-e.getMinutes())*Oc+(e.getUTCSeconds()-e.getSeconds())*pd+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Oc;t=t-n/2+Bc(a-t+n/2,n)}return e=Number(e)-t,e>=l2&&e<=s2?e:zl}if(typeof e!="string"&&typeof e!="number")return zl;e=String(e);var i=Cu(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?cle:ule);if(!s)return zl;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 zl;f=Number(f);var y;try{var m=ku.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 zl}return y?(y.toJD()-$1)*Zo+v*J1+d*Oc+p*pd:zl}f.length===2?f=(Number(f)+2e3-xk)%100+xk: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?zl:T.getTime()+p*pd};l2=Un.MIN_MS=Un.dateTime2ms("-9999");s2=Un.MAX_MS=Un.dateTime2ms("9999-12-31 23:59:59.9999");Un.isDateTime=function(e,r){return Un.dateTime2ms(e,r)!==zl};function dd(e,r){return String(e+Math.pow(10,r)).slice(1)}var o2=90*Zo,_k=3*J1,wk=5*Oc;Un.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=l2&&e<=s2))return zl;r||(r=0);var a=Math.floor(Bc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Cu(t)){var c=Math.floor(n/Zo)+$1,v=Math.floor(Bc(e,Zo));try{i=ku.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=bk("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+Zo&&e<=s2-Zo))return zl;var r=Math.floor(Bc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=fle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Sk(a,n,i,o,l)};function Sk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+dd(r,2)+":"+dd(t,2),(a||n)&&(e+=":"+dd(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+dd(n,i)}return e}Un.cleanDate=function(e,r,t){if(e===zl)return r;if(Un.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Cu(t))return j5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Un.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Un.isDateTime(e,t))return j5.error("unrecognized date",e),r;return e};var hle=/%\d?f/g,dle=/%h/g,ple={1:"1",2:"1",3:"2",4:"2"};function Ak(e,r,t,a){e=e.replace(hle,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(dle,function(){return ple[t("%q")(n)]}),Cu(a))try{e=ku.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var mle=[59,59.9,59.99,59.999,59.9999];function yle(e,r){var t=Bc(e+.05,Zo),a=dd(Math.floor(t/J1),2)+":"+dd(Bc(Math.floor(t/Oc),60),2);if(r!=="M"){Mk(r)||(r=0);var n=Math.min(Bc(e/pd,60),mle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Un.formatDate=function(e,r,t,a,n,i){if(n=Cu(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 yle(e,t)+` -`+Ak(i.dayMonthYear,e,a,n);return Ak(r,e,a,n)};var Tk=3*Zo;Un.incrementMonth=function(e,r,t){t=Cu(t)&&t;var a=Bc(e,Zo);if(e=Math.round(e-a),t)try{var n=Math.round(e/Zo)+$1,i=ku.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-$1)*Zo+a}catch(s){j5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Tk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Tk};Un.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Cu(r)&&ku.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";kk.exports=function(r){return r}});var Z5=N(Lu=>{"use strict";var gle=ba(),ble=Sh(),xle=s2(),_le=ri().BADNUM,X5=1e-9;Lu.findBin=function(e,r,t){if(gle(r.start))return t?Math.ceil((e-r.start)/r.size-X5)-1:Math.floor((e-r.start)/r.size+X5);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?wle:Ale:s=t?Mle:Tle,e+=o*X5*(t?-1:1)*(o>=0?1:-1);a90&&ble.log("Long binary search..."),a-1};function wle(e,r){return er}function Mle(e,r){return e>=r}Lu.sorterAsc=function(e,r){return e-r};Lu.sorterDes=function(e,r){return r-e};Lu.distinctVals=function(e){var r=e.slice();r.sort(Lu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===_le;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}};Lu.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()};Lu.findIndexOfMin=function(e,r){r=r||xle;for(var t=1/0,a,n=0;n{"use strict";Ck.exports=function(r){return Object.keys(r).sort()}});var Lk=N(Hn=>{"use strict";var Q1=ba(),Sle=Wo().isArrayOrTypedArray;Hn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Q1(r)||(r=!1),Sle(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 Pk=N((aCe,qk)=>{"use strict";var Dk=nd(),J5=Dk.mod,Ele=Dk.modHalf,K1=Math.PI,zc=2*K1;function kle(e){return e/180*K1}function Cle(e){return e/K1*180}function $5(e){return Math.abs(e[1]-e[0])>zc-1e-14}function Fk(e,r){return Ele(r-e,zc)}function Lle(e,r){return Math.abs(Fk(e,r))}function Rk(e,r){if($5(r))return!0;var t,a;r[0]a&&(a+=zc);var n=J5(e,zc),i=n+zc;return n>=t&&n<=a||i>=t&&i<=a}function Dle(e,r,t,a){if(!Rk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Q5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=$5([t,a]),s,f,u,c,v;l?(s=0,f=K1,u=zc):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 Bk=N(Ch=>{"use strict";var K5=nd().mod;Ch.segmentsIntersect=Ok;function Ok(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(Ok(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(u2(f,u,d,i-r,o-t),u2(f,u,d,l-r,s-t),u2(c,v,p,r-i,t-o),u2(c,v,p,a-i,n-o));return Math.sqrt(y)};function u2(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 c2,e4,Ik;Ch.getTextLocation=function(r,t,a,n){if((r!==e4||n!==Ik)&&(c2={},e4=r,Ik=n),c2[a])return c2[a];var i=r.getPointAtLength(K5(a-n/2,t)),o=r.getPointAtLength(K5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(K5(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 c2[a]=c,c};Ch.clearLocationCache=function(){e4=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 v2=N(em=>{"use strict";var Du={};em.throttle=function(r,t,a){var n=Du[r],i=Date.now();if(!n){for(var o in Du)Du[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};em.done=function(e){var r=Du[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};em.clear=function(e){if(e)zk(Du[e]),delete Du[e];else for(var r in Du)em.clear(r)};function zk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Uk=N((lCe,Gk)=>{"use strict";Gk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Hk=N((sCe,h2)=>{"use strict";h2.exports=r4;h2.exports.isMobile=r4;h2.exports.default=r4;var Ple=/(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,Nle=/CrOS/,Ile=/android|ipad|playbook|silk/i;function r4(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=Ple.test(r)&&!Nle.test(r)||!!e.tablet&&Ile.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Yk=N((fCe,Vk)=>{"use strict";var Ole=ba(),Ble=Hk();Vk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=zle(),typeof t!="string")return!0;var a=Ble({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(Ole(f)&&(f=+f),f>=13)return!0}}}return a};function zle(){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 jk=N((uCe,Wk)=>{"use strict";var Gle=da();Wk.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]=Gle.select(this)}),n}});var Zk=N((cCe,Xk)=>{"use strict";var Ule=Bt();Xk.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=Ule.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var $k=N((vCe,Jk)=>{"use strict";Jk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Qk.exports=function(r){for(var t=Yle(r)?Vle:Hle,a=[],n=0;n{"use strict";eC.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 aC=N((pCe,tC)=>{"use strict";var Wle=ba(),jle=ri().BADNUM,Xle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;tC.exports=function(r){return typeof r=="string"&&(r=r.replace(Xle,"")),Wle(r)?Number(r):jle}});var Ur=N((mCe,mC)=>{"use strict";var rm=da(),Zle=td().utcFormat,Jle=S5().format,fC=ba(),uC=ri(),cC=uC.FP_SAFE,$le=-cC,nC=uC.BADNUM,We=mC.exports={};We.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 iC={};We.warnBadFormat=function(e){var r=String(e);iC[r]||(iC[r]=1,We.warn('encountered bad format: "'+r+'"'))};We.noFormat=function(e){return String(e)};We.numberFormat=function(e){var r;try{r=Jle(We.adjustFormat(e))}catch(t){return We.warnBadFormat(e),We.noFormat}return r};We.nestedProperty=Hg();We.keyedContainer=JM();We.relativeAttr=QM();We.isPlainObject=Fc();We.toLogRange=Yg();We.relinkPrivateKeys=tS();var Gc=Wo();We.isArrayBuffer=Gc.isArrayBuffer;We.isTypedArray=Gc.isTypedArray;We.isArrayOrTypedArray=Gc.isArrayOrTypedArray;We.isArray1D=Gc.isArray1D;We.ensureArray=Gc.ensureArray;We.concat=Gc.concat;We.maxRowLength=Gc.maxRowLength;We.minRowLength=Gc.minRowLength;var vC=nd();We.mod=vC.mod;We.modHalf=vC.modHalf;var Uc=_S();We.valObjectMeta=Uc.valObjectMeta;We.coerce=Uc.coerce;We.coerce2=Uc.coerce2;We.coerceFont=Uc.coerceFont;We.coercePattern=Uc.coercePattern;We.coerceHoverinfo=Uc.coerceHoverinfo;We.coerceSelectionMarkerOpacity=Uc.coerceSelectionMarkerOpacity;We.validate=Uc.validate;var yl=Ek();We.dateTime2ms=yl.dateTime2ms;We.isDateTime=yl.isDateTime;We.ms2DateTime=yl.ms2DateTime;We.ms2DateTimeLocal=yl.ms2DateTimeLocal;We.cleanDate=yl.cleanDate;We.isJSDate=yl.isJSDate;We.formatDate=yl.formatDate;We.incrementMonth=yl.incrementMonth;We.dateTick0=yl.dateTick0;We.dfltRange=yl.dfltRange;We.findExactDates=yl.findExactDates;We.MIN_MS=yl.MIN_MS;We.MAX_MS=yl.MAX_MS;var Lh=Z5();We.findBin=Lh.findBin;We.sorterAsc=Lh.sorterAsc;We.sorterDes=Lh.sorterDes;We.distinctVals=Lh.distinctVals;We.roundUp=Lh.roundUp;We.sort=Lh.sort;We.findIndexOfMin=Lh.findIndexOfMin;We.sortObjectKeys=f2();var Fu=Lk();We.aggNums=Fu.aggNums;We.len=Fu.len;We.mean=Fu.mean;We.geometricMean=Fu.geometricMean;We.median=Fu.median;We.midRange=Fu.midRange;We.variance=Fu.variance;We.stdev=Fu.stdev;We.interp=Fu.interp;var qs=Qg();We.init2dArray=qs.init2dArray;We.transposeRagged=qs.transposeRagged;We.dot=qs.dot;We.translationMatrix=qs.translationMatrix;We.rotationMatrix=qs.rotationMatrix;We.rotationXYMatrix=qs.rotationXYMatrix;We.apply3DTransform=qs.apply3DTransform;We.apply2DTransform=qs.apply2DTransform;We.apply2DTransform2=qs.apply2DTransform2;We.convertCssMatrix=qs.convertCssMatrix;We.inverseTransformMatrix=qs.inverseTransformMatrix;var Sf=Pk();We.deg2rad=Sf.deg2rad;We.rad2deg=Sf.rad2deg;We.angleDelta=Sf.angleDelta;We.angleDist=Sf.angleDist;We.isFullCircle=Sf.isFullCircle;We.isAngleInsideSector=Sf.isAngleInsideSector;We.isPtInsideSector=Sf.isPtInsideSector;We.pathArc=Sf.pathArc;We.pathSector=Sf.pathSector;We.pathAnnulus=Sf.pathAnnulus;var gd=Nk();We.isLeftAnchor=gd.isLeftAnchor;We.isCenterAnchor=gd.isCenterAnchor;We.isRightAnchor=gd.isRightAnchor;We.isTopAnchor=gd.isTopAnchor;We.isMiddleAnchor=gd.isMiddleAnchor;We.isBottomAnchor=gd.isBottomAnchor;var bd=Bk();We.segmentsIntersect=bd.segmentsIntersect;We.segmentDistance=bd.segmentDistance;We.getTextLocation=bd.getTextLocation;We.clearLocationCache=bd.clearLocationCache;We.getVisibleSegment=bd.getVisibleSegment;We.findPointOnPath=bd.findPointOnPath;var m2=zn();We.extendFlat=m2.extendFlat;We.extendDeep=m2.extendDeep;We.extendDeepAll=m2.extendDeepAll;We.extendDeepNoArrays=m2.extendDeepNoArrays;var t4=Sh();We.log=t4.log;We.warn=t4.warn;We.error=t4.error;var Qle=ld();We.counterRegex=Qle.counter;var a4=v2();We.throttle=a4.throttle;We.throttleDone=a4.done;We.clearThrottle=a4.clear;var Ps=X1();We.getGraphDiv=Ps.getGraphDiv;We.isPlotDiv=Ps.isPlotDiv;We.removeElement=Ps.removeElement;We.addStyleRule=Ps.addStyleRule;We.addRelatedStyleRule=Ps.addRelatedStyleRule;We.deleteRelatedStyleRule=Ps.deleteRelatedStyleRule;We.setStyleOnHover=Ps.setStyleOnHover;We.getFullTransformMatrix=Ps.getFullTransformMatrix;We.getElementTransformMatrix=Ps.getElementTransformMatrix;We.getElementAndAncestors=Ps.getElementAndAncestors;We.equalDomRects=Ps.equalDomRects;We.clearResponsive=Uk();We.preserveDrawingBuffer=Yk();We.makeTraceGroups=jk();We._=Zk();We.notifier=I5();We.filterUnique=$k();We.filterVisible=Kk();We.pushUnique=z5();We.increment=rC();We.cleanNumber=aC();We.ensureNumber=function(r){return fC(r)?(r=Number(r),r>cC||r<$le?nC:r):nC};We.isIndex=function(e,r){return r!==void 0&&e>=r?!1:fC(e)&&e>=0&&e%1===0};We.noop=$g();We.identity=s2();We.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))};We.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};We.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?(We.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};We.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};We.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};We.syncOrAsync=function(e,r,t){var a,n;function i(){return We.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)};We.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};We.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};We.fillArray=function(e,r,t,a){if(a=a||We.identity,We.isArrayOrTypedArray(e))for(var n=0;nrse.test(window.navigator.userAgent);var tse=/Firefox\/(\d+)\.\d+/;We.getFirefoxVersion=function(){var e=tse.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};We.isD3Selection=function(e){return e instanceof rm.selection};We.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};We.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};We.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};We.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var pC=/^\w*$/;We.templateString=function(e,r){var t={};return e.replace(We.TEMPLATE_STRING_REGEX,function(a,n){var i;return pC.test(n)?i=r[n]:(t[n]=t[n]||We.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var ise={max:10,count:0,name:"hovertemplate"};We.hovertemplateString=e=>n4(Rg(_h({},e),{opts:ise}));var ose={max:10,count:0,name:"texttemplate"};We.texttemplateString=e=>n4(Rg(_h({},e),{opts:ose}));var lse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function sse(e){var r=e.match(lse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var fse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};We.texttemplateStringForShapes=e=>n4(Rg(_h({},e),{opts:fse}));var oC=/^[:|\|]/;function n4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(We.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=sse(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(pC.test(l)||(b=We.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=p2&&o<=lC,f=l>=p2&&l<=lC;if(s&&(a=10*a+o-p2),f&&(n=10*n+l-p2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var yd=2e9;We.seedPseudoRandom=function(){yd=2e9};We.pseudoRandom=function(){var e=yd;return yd=(69069*yd+1)%4294967296,Math.abs(yd-e)<429496729?We.pseudoRandom():yd/4294967296};We.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=We.extractOption(e,r,"htx","hovertext");if(We.isValidTextValue(n))return a(n);var i=We.extractOption(e,r,"tx","text");if(We.isValidTextValue(i))return a(i)};We.isValidTextValue=function(e){return e||e===0};We.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,We.strTranslate(n-f*(t+o),i-f*(a+l))+We.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};We.setTransormAndDisplay=function(e,r){e.attr("transform",We.getTextTransform(r)),e.style("display",r.scale?null:"none")};We.ensureUniformFontSize=function(e,r){var t=We.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};We.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)};We.bigFont=function(e){return Math.round(1.2*e)};var sC=We.getFirefoxVersion(),use=sC!==null&&sC<86;We.getPositionFromD3Event=function(){return use?[rm.event.layerX,rm.event.layerY]:[rm.event.offsetX,rm.event.offsetY]}});var bC=N(()=>{"use strict";var cse=Ur(),yC={"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(i4 in yC)gC=i4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),cse.addStyleRule(gC,yC[i4]);var gC,i4});var o4=N((xCe,xC)=>{xC.exports=!0});var s4=N((_Ce,_C)=>{"use strict";var vse=o4(),l4;typeof window.matchMedia=="function"?l4=!window.matchMedia("(hover: none)").matches:l4=vse;_C.exports=l4});var b2=N((wCe,f4)=>{"use strict";var xd=typeof Reflect=="object"?Reflect:null,wC=xd&&typeof xd.apply=="function"?xd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},y2;xd&&typeof xd.ownKeys=="function"?y2=xd.ownKeys:Object.getOwnPropertySymbols?y2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:y2=function(r){return Object.getOwnPropertyNames(r)};function hse(e){console&&console.warn&&console.warn(e)}var TC=Number.isNaN||function(r){return r!==r};function pn(){pn.init.call(this)}f4.exports=pn;f4.exports.once=yse;pn.EventEmitter=pn;pn.prototype._events=void 0;pn.prototype._eventsCount=0;pn.prototype._maxListeners=void 0;var AC=10;function g2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(pn,"defaultMaxListeners",{enumerable:!0,get:function(){return AC},set:function(e){if(typeof e!="number"||e<0||TC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");AC=e}});pn.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};pn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||TC(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 MC(e){return e._maxListeners===void 0?pn.defaultMaxListeners:e._maxListeners}pn.prototype.getMaxListeners=function(){return MC(this)};pn.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")wC(s,this,t);else for(var f=s.length,u=LC(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,hse(l)}return e}pn.prototype.addListener=function(r,t){return SC(this,r,t,!1)};pn.prototype.on=pn.prototype.addListener;pn.prototype.prependListener=function(r,t){return SC(this,r,t,!0)};function dse(){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 EC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=dse.bind(a);return n.listener=t,a.wrapFn=n,n}pn.prototype.once=function(r,t){return g2(t),this.on(r,EC(this,r,t)),this};pn.prototype.prependOnceListener=function(r,t){return g2(t),this.prependListener(r,EC(this,r,t)),this};pn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(g2(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():pse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};pn.prototype.off=pn.prototype.removeListener;pn.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 kC(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?mse(n):LC(n,n.length)}pn.prototype.listeners=function(r){return kC(this,r,!0)};pn.prototype.rawListeners=function(r){return kC(this,r,!1)};pn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):CC.call(e,r)};pn.prototype.listenerCount=CC;function CC(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}pn.prototype.eventNames=function(){return this._eventsCount>0?y2(this._events):[]};function LC(e,r){for(var t=new Array(r),a=0;a{"use strict";var u4=b2().EventEmitter,bse={init:function(e){if(e._ev instanceof u4)return e;var r=new u4,t=new u4;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 RC=Ur(),xse=Mh().dfltConfig;function _se(e,r){for(var t=[],a,n=0;nxse.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ru.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ru.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ru.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";NC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Ad=N(ui=>{"use strict";var Gl=Bt(),am=Ur(),_2=Ds(),v4=vd(),wse=c4(),Ase=Z1(),Tse=Mh().configAttributes,IC=Rs(),Ns=am.extendDeepAll,_d=am.isPlainObject,Mse=am.isArrayOrTypedArray,w2=am.nestedProperty,Sse=am.valObjectMeta,h4="_isSubplotObj",A2="_isLinkedToArray",Ese="_arrayAttrRegexps",BC="_deprecated",d4=[h4,A2,Ese,BC];ui.IS_SUBPLOT_OBJ=h4;ui.IS_LINKED_TO_ARRAY=A2;ui.DEPRECATED=BC;ui.UNDERSCORE_ATTRS=d4;ui.get=function(){var e={};return Gl.allTypes.forEach(function(r){e[r]=Cse(r)}),{defs:{valObjects:Sse,metaKeys:d4.concat(["description","role","editType","impliedEdits"]),editType:{traces:IC.traces,layout:IC.layout},impliedEdits:{}},traces:e,layout:Lse(),frames:Dse(),animation:wd(Ase),config:wd(Tse)}};ui.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(d4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ui.isValObject(o)&&_d(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)Mse(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(!x2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function x2(e){return e===Math.round(e)&&e>=0}function Cse(e){var r,t;r=Gl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ns({},_2),i=Ns({},r.attributes);ui.crawl(i,function(s,f,u,c,v){w2(n,v).set(void 0),s===void 0&&w2(i,v).set(void 0)}),Ns(a,n),Gl.traceIs(e,"noOpacity")&&delete a.opacity,Gl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Gl.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:wd(a)};if(r.layoutAttributes){var l={};Ns(l,r.layoutAttributes),o.layoutAttributes=wd(l)}return r.animatable||ui.crawl(o,function(s){ui.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Lse(){var e={},r,t;Ns(e,v4);for(r in Gl.subplotsRegistry)if(t=Gl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Td=Ur(),Nse=Ds(),Hc="templateitemname",p4={name:{valType:"string",editType:"none"}};p4[Hc]={valType:"string",editType:"calc"};Dh.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=p4.name,r[Hc]=p4[Hc],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=Td.coerce(i,{},Nse,"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]);Td.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[UC(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[Hc]=f[Hc];if(!GC(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][Hc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?Td.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)Td.nestedProperty(e,m).set(y[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var ci=N((kCe,HC)=>{"use strict";var nm=ld().counter;HC.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 kn=N(Jo=>{"use strict";var Ise=Bt(),m4=ci();Jo.id2name=function(r){if(!(typeof r!="string"||!r.match(m4.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(m4.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(m4.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 VC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Ose(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Bse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}YC.exports={clearOutlineControllers:Ose,clearOutline:Bse}});var T2=N((DCe,WC)=>{"use strict";WC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var im=N(S2=>{"use strict";var M2=Bt(),FCe=ci().SUBPLOT_PATTERN;S2.getSubplotCalcData=function(e,r,t){var a=M2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var zse=Bt(),Md=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){jC(e,o,n.cache),n.check=function(){if(i){var u=jC(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;Md.isPlainObject(i)?y4(i,r,o,a+1):r(o,n,i)}})}});var _i=N((PCe,uL)=>{"use strict";var aL=da(),Use=td().timeFormatLocale,Hse=S5().formatLocale,om=ba(),Vse=E5(),ka=Bt(),nL=Ad(),Yse=Xa(),Mt=Ur(),iL=ha(),$C=ri().BADNUM,$o=kn(),Wse=Vc().clearOutline,jse=T2(),g4=Z1(),Xse=c4(),Zse=im().getModuleCalcData,QC=Mt.relinkPrivateKeys,Rh=Mt._,mt=uL.exports={};Mt.extendFlat(mt,ka);mt.attributes=Ds();mt.attributes.type.values=mt.allTypes;mt.fontAttrs=zi();mt.layoutAttributes=vd();var k2=JC();mt.executeAPICommand=k2.executeAPICommand;mt.computeAPICommandBindings=k2.computeAPICommandBindings;mt.manageCommandObserver=k2.manageCommandObserver;mt.hasSimpleAPICommandBindings=k2.hasSimpleAPICommandBindings;mt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ka.getComponentMethod("annotations","draw")(e),ka.getComponentMethod("legend","draw")(e),ka.getComponentMethod("colorbar","draw")(e),r(mt.previousPromises(e)))},300)})};mt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.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||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ka.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};mt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:iL.defaultLine,"pointer-events":"all"}).each(function(){var f=aL.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&&Jse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Jse(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(){mt.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})}}mt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=aL.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=mt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var $se=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qse=["year","month","dayMonth","dayMonthYear"];mt.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||mt.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=KC(e,$se);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;mt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),mt.sanitizeMargins(n)}else{mt.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=u.autosizable,T=y&&(m||b);T?mt.plotAutoSize(e,i,n):y&&mt.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=rfe(v,n.separators),n._extraFormat=KC(e,Qse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=efe(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Kse(o,s),mt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(ka.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,mt.linkSubplots(l,n,o,a),mt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=R,ae=H;V&&!ae?a._bgLayer.remove():ae&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Wse({_fullLayout:a}),tfe(l,n),QC(n,a),ka.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var re=n._tracePreGUI,Q={},J;for(J in re)Q[J]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=mt.layoutAttributes.width.min,v=mt.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}),mt.sanitizeMargins(a)};mt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ka.componentsRegistry,i=r._basePlotModules,o,l,s,f=ka.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(ka.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.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 mt.doAutoMargin(e)}};function nfe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=$o.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}mt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),oL(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.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"&&om(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,V=O.val,ae=O.size,re=t-o.r-o.l,Q=a-o.t-o.b;for(var J in v){if(om(H)&&v[J].r){var j=v[J].r.val,oe=v[J].r.size;if(j>R){var se=(H*j+(oe-re)*R)/(j-R),Le=(oe*(1-R)+(H-re)*(1-j))/(j-R);se+Le>s+f&&(s=se,f=Le)}}if(om(ae)&&v[J].t){var Ue=v[J].t.val,Ee=v[J].t.size;if(Ue>V){var Ve=(ae*Ue+(Ee-Q)*V)/(Ue-V),we=(Ee*(1-V)+(ae-Q)*(1-Ue))/(Ue-V);Ve+we>c+u&&(c=Ve,u=we)}}}}}var fr=Mt.constrain(t-i.l-i.r,lL,p),Ie=Mt.constrain(a-i.t-i.b,sL,y),He=Math.max(0,t-fr),vr=Math.max(0,a-Ie);if(He){var $e=(s+f)/He;$e>1&&(s/=$e,f/=$e)}if(vr){var ee=(c+u)/vr;ee>1&&(c/=ee,u/=ee)}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&&(mt.didMarginChange(l,n)||nfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var de=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};mt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&mt.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(Mt.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&&!Mt.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=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var T=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(T)?Vse.encode(T):T},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.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)};mt.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 ka.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 ka.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=[mt.previousPromises,s,t.prepareFn,mt.rehover,mt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}mt.doCalcdata=function(e,r){var t=$o.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:$C,y:$C}]),x[0].t||(x[0].t={}),x[0].trace=i,f[T]=x}}for(rL(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 ro=N((ICe,cL)=>{"use strict";cL.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 to=N(Ul=>{"use strict";var ti=da(),qu=Ur(),sfe=qu.strTranslate,b4=Yc(),ffe=ro().LINE_SPACING,ufe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ul.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(ufe),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=Afe(e.node(),a);s&&e.style("pointer-events","all"),Ul.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};dfe(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]+")"+sfe(-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 cfe=/(<|<|<)/g,vfe=/(>|>|>)/g;function hfe(e){return e.replace(cfe,"\\lt ").replace(vfe,"\\gt ")}var vL=[["$","$"],["\\(","\\)"]];function dfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){qu.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=qu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:vL},displayAlign:"left"})},f=function(){i=qu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=vL},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-"+qu.randstr({},64);l=ti.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(hfe(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(!_)qu.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)},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 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"},pfe={sub:"0.3em",sup:"-0.6em"},mfe={sub:"-0.21em",sup:"0.42em"},hL="\u200B",dL=["http:","https:","mailto:","",void 0,":"],yL=Ul.NEWLINES=/(\r\n?|\n)/g,_4=/(<[^<>]*>)/,w4=/<(\/?)([^ >]*)(\s+(.*))?>/i,yfe=//i;Ul.BR_TAG_ALL=//gi;var gL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,bL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,xL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,gfe=/(^|[\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&&C2(a)}var bfe=/(^|;)\s*color:/;Ul.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(_4),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 xfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},_fe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function C2(e){return e.replace(_fe,function(r,t){var a;return t.charAt(0)==="#"?a=wfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=xfe[t],a||r})}Ul.convertEntities=C2;function wfe(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 Afe(e,r){r=r.replace(yL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(b4.svg,"tspan");ti.select(E).attr({class:"line",dy:i*ffe+"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&&qu.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=yfe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(_4),v=0;v{"use strict";var Tfe=da(),D2=Ls(),sm=ba(),L2=Ur(),wL=ha(),Mfe=Ah().isValid;function Sfe(e,r,t){var a=r?L2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(L2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function kL(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 LL=V5(),kfe=LL.FORMAT_LINK,Cfe=LL.DATE_FORMAT_LINK;function Lfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?A4:DL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function A4(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: "+kfe+"."].join(" ")}function DL(e,r){return A4(e,r)+[" And for dates see: "+Cfe+".","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:Lfe,descriptionOnlyNumbers:A4,descriptionWithDates:DL}});var Hl=N((UCe,ZL)=>{"use strict";var RL=zi(),Sd=Mf(),XL=Pc().dash,M4=zn().extendFlat,qL=Xa().templatedArray,GCe=cd().templateFormatStringDescription,PL=fm().descriptionWithDates,Dfe=ri().ONEDAY,Ef=ci(),Ffe=Ef.HOUR_PATTERN,Rfe=Ef.WEEKDAY_PATTERN,T4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},qfe=M4({},T4,{values:T4.values.slice().concat(["sync"])});function NL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var IL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},OL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BL={valType:"data_array",editType:"ticks"},zL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function GL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function UL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var HL={valType:"color",dflt:Sd.defaultLine,editType:"ticks"},VL={valType:"color",dflt:Sd.lightLine,editType:"ticks"};function YL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var WL=M4({},XL,{editType:"ticks"}),jL={valType:"boolean",editType:"ticks"};ZL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Sd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:RL({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:qL("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:[Rfe,Ffe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Dfe},editType:"calc"}),tickmode:qfe,nticks:NL(),tick0:IL,dtick:OL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:BL,ticktext:{valType:"data_array",editType:"ticks"},ticks:zL,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:GL(),tickwidth:UL(),tickcolor:HL,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:M4({},XL,{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:RL({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:PL("tick label")},tickformatstops:qL("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:PL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Sd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:jL,gridcolor:VL,gridwidth:YL(),griddash:WL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Sd.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:Sd.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:T4,nticks:NL("minor"),tick0:IL,dtick:OL,tickvals:BL,ticks:zL,ticklen:GL("minor"),tickwidth:UL("minor"),tickcolor:HL,gridcolor:VL,gridwidth:YL("minor"),griddash:WL,showgrid:jL,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((HCe,QL)=>{"use strict";var mn=Hl(),JL=zi(),$L=zn().extendFlat,Pfe=Rs().overrideAll;QL.exports=Pfe({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:mn.linecolor,outlinewidth:mn.linewidth,bordercolor:mn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:mn.minor.tickmode,nticks:mn.nticks,tick0:mn.tick0,dtick:mn.dtick,tickvals:mn.tickvals,ticktext:mn.ticktext,ticks:$L({},mn.ticks,{dflt:""}),ticklabeloverflow:$L({},mn.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:mn.ticklen,tickwidth:mn.tickwidth,tickcolor:mn.tickcolor,ticklabelstep:mn.ticklabelstep,showticklabels:mn.showticklabels,labelalias:mn.labelalias,tickfont:JL({}),tickangle:mn.tickangle,tickformat:mn.tickformat,tickformatstops:mn.tickformatstops,tickprefix:mn.tickprefix,showtickprefix:mn.showtickprefix,ticksuffix:mn.ticksuffix,showticksuffix:mn.showticksuffix,separatethousands:mn.separatethousands,exponentformat:mn.exponentformat,minexponent:mn.minexponent,showexponent:mn.showexponent,title:{text:{valType:"string"},font:JL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Nh=N((YCe,eD)=>{"use strict";var Nfe=F2(),Ife=ld().counter,Ofe=f2(),KL=Ah().scales,VCe=Ofe(KL);function R2(e){return"`"+e+"`"}eD.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"?KL[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 "+R2(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=R2(f+d),T=R2(f+p),_=R2(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=Nfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Ife("coloraxis"),dflt:null,editType:"calc"}),M}});var E4=N((WCe,rD)=>{"use strict";var Bfe=zn().extendFlat,zfe=Nh(),S4=Ah().scales;rD.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:S4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:S4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:S4.RdBu,editType:"calc"}},coloraxis:Bfe({_isSubplotObj:!0,editType:"calc"},zfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var k4=N((jCe,tD)=>{"use strict";var Gfe=Ur();tD.exports=function(r){return Gfe.isPlainObject(r.colorbar)}});var D4=N(L4=>{"use strict";var C4=ba(),aD=Ur(),nD=ri(),Ufe=nD.ONEDAY,Hfe=nD.ONEWEEK;L4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Ufe:1;if(!e)return i;if(C4(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=C4(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};L4.tick0=function(e,r,t,a){if(r==="date")return aD.cleanDate(e,aD.dateTick0(t,a%Hfe===0?1:0));if(!(a==="D1"||a==="D2"))return C4(e)?Number(e):0}});var F4=N((ZCe,oD)=>{"use strict";var iD=D4(),Vfe=Ur().isArrayOrTypedArray,Yfe=Wo().isTypedArraySpec,Wfe=Wo().decodeTypedArraySpec;oD.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 Yfe(_)&&(_=Wfe(_)),_!==void 0?_:(s._template||{})[T]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Vfe(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=iD.dtick(v,n);s.tick0=iD.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 q4=N((JCe,sD)=>{"use strict";var R4=Ur(),lD=Hl();sD.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?lD.minor:lD,f=i?"minor.":"",u=R4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=R4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=R4.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 P4=N(($Ce,fD)=>{"use strict";fD.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 gl=N((QCe,uD)=>{"use strict";var q2=Ur(),jfe=Xa();uD.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=q2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=jfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var N4=Ur(),Xfe=ha().contrast,cD=Hl(),Zfe=P4(),Jfe=gl();vD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");N4.isPlainObject(o)||delete t.labelalias;var l=Zfe(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?Xfe(i.bgColor):u&&u!==cD.color.dflt?u:f.color;if(N4.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");Jfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:$fe}),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 $fe(e,r){function t(n,i){return N4.coerce(e,r,cD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var O4=N((eLe,hD)=>{"use strict";var Qfe=P4();hD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Qfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var B4=N((rLe,dD)=>{"use strict";var Wc=Ur(),Kfe=Xa(),eue=F4(),rue=q4(),tue=I4(),aue=O4(),nue=F2();dD.exports=function(r,t,a){var n=Kfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(O,R){return Wc.coerce(i,n,nue,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),Wc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),Wc.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"),Wc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Wc.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"),eue(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"),aue(i,n,o,"linear",k),tue(i,n,o,"linear",k),rue(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:M,P=Wc.extendFlat({},M,{family:F.family,size:Wc.bigFont(F.size)});Wc.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var Ed=N((tLe,yD)=>{"use strict";var pD=ba(),G4=Ur(),iue=k4(),oue=B4(),mD=Ah().isValid,lue=Bt().traceIs;function z4(e,r){var t=r.slice(0,r.length-1);return r?G4.nestedProperty(e,t).get()||{}:e}yD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=z4(r,o),u=z4(t,o),c=z4(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=lue(t,"contour")&&G4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,G4.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"],_=pD(b)&&pD(T)&&b{"use strict";var gD=Ur(),sue=Xa(),bD=E4(),fue=Ed();xD.exports=function(r,t){function a(c,v){return gD.coerce(r,t,bD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return gD.coerce(i,o,bD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=sue.newContainer(t,s,"coloraxis"),o._name=s,fue(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var uue=Ur(),cue=Is().hasColorscale,vue=Is().extractOpts;wD.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?uue.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=vue(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 TD=ba(),U4=Ur(),hue=Is().extractOpts;MD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?U4.nestedProperty(t,o).get():t,s=hue(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return U4.aggNums(Math.min,null,i)},p=function(){return U4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&TD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&TD(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 Cd=N((oLe,SD)=>{"use strict";var P2=Ah(),kd=Is();SD.exports={moduleType:"component",name:"colorscale",attributes:Nh(),layoutAttributes:E4(),supplyLayoutDefaults:_D(),handleDefaults:Ed(),crossTraceDefaults:AD(),calc:H4(),scales:P2.scales,defaultScale:P2.defaultScale,getScale:P2.get,isValidScale:P2.isValid,hasColorscale:kd.hasColorscale,extractOpts:kd.extractOpts,extractScale:kd.extractScale,flipScale:kd.flipScale,makeColorScaleFunc:kd.makeColorScaleFunc,makeColorScaleFuncFromTrace:kd.makeColorScaleFuncFromTrace}});var qi=N((lLe,kD)=>{"use strict";var ED=Ur(),due=Wo().isTypedArraySpec;kD.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 ED.isPlainObject(r)&&(ED.isArrayOrTypedArray(r.size)||due(r.size))}}});var V4=N((sLe,CD)=>{"use strict";var pue=ba();CD.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 pue(s)&&s>0?Math.max(s,i):0}}});var Pu=N(ao=>{"use strict";var N2=Ur();ao.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ao.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{FD.exports=xue;var Y4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},bue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function xue(e){var r=[];return e.replace(bue,function(t,a,n){var i=a.toLowerCase();for(n=wue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Y4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Aue=um(),lt=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",RD=Math.sqrt(2),jc=Math.sqrt(3),W4=Math.PI,j4=Math.cos,X4=Math.sin;OD.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/RD,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/jc,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/jc,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/jc,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/jc,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*jc/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*jc/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*jc*.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*jc*.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/RD,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=W4/2.5,n=2*e*j4(a),i=2*e*X4(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=W4/4,n=2*e*j4(a),i=2*e*X4(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 qD,PD,ND,ID;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ND===e&&ID===r&&qD===t)return PD;ND=e,ID=r,qD=t;function a(m,b){var T=j4(m),_=X4(m),x=b[0],A=b[1]+(r||0);return[x*T-A*_,x*_+A*T]}for(var n=e/180*W4,i=0,o=0,l=Aue(t),s="",f=0;f{"use strict";var wi=da(),Ga=Ur(),Tue=Ga.numberFormat,zh=ba(),ew=Ls(),O2=Bt(),Gi=ha(),Mue=Cd(),vm=Ga.strTranslate,B2=to(),Sue=Yc(),Eue=ro(),kue=Eue.LINE_SPACING,ZD=od().DESELECTDIM,Cue=qi(),Lue=V4(),Due=Pu().appendArrayPointValue,gt=iF.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(Gi.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",Z4(Rue(u))),s&&e.style("text-shadow",s==="auto"?B2.makeTextShadow(Gi.contrast(i)):Z4(s)),f&&e.style("text-decoration-line",Z4(que(f)))};function Z4(e){return e==="none"?void 0:e}var Fue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Rue(e){return Fue[e]}function que(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",vm(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=O2.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||"";Gi.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(Gi.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,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(KD,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(Gi.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 zD=BD();gt.symbolNames=[];gt.symbolFuncs=[];gt.symbolBackOffs=[];gt.symbolNeedLines={};gt.symbolNoDot={};gt.symbolNoFill={};gt.symbolList=[];Object.keys(zD).forEach(function(e){var r=zD[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 Pue=gt.symbolNames.length,Nue="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>=Pue||e>=400?0:Math.floor(Math.max(e,0))};function $D(e,r,t,a){var n=e%100;return gt.symbolFuncs[n](r,t,a)+(e>=200?Nue:"")}var GD=Tue("~f"),QD={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=QD[a];return KD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function KD(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=aw(e,t),c=tw(e,t);r.attr("d",$D(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):Ga.isArrayOrTypedArray(l.color)?p=Gi.defaultLine:p=l.color,Ga.isArrayOrTypedArray(o.color)&&(d=Gi.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(Gi.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,Ga.isArrayOrTypedArray(_)&&(_=_[0],QD[_]||(_=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,V=A(x.size,e.i,8),ae=A(x.solidity,e.i,.3);F=F||e.mcc||Ga.isArrayOrTypedArray(x.shape)||Ga.isArrayOrTypedArray(x.path)||Ga.isArrayOrTypedArray(x.bgcolor)||Ga.isArrayOrTypedArray(x.fgcolor)||Ga.isArrayOrTypedArray(x.size)||Ga.isArrayOrTypedArray(x.solidity);var re=t.uid;F&&(re+="-"+e.i),gt.pattern(r,"point",n,re,E,V,ae,e.mcc,x.fillmode,R,O,H)}else Ga.isArrayOrTypedArray(d)?Gi.fill(r,d[e.i]):Gi.fill(r,d);y&&Gi.stroke(r,p)}};gt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=gt.tryColorscale(t,""),r.lineScale=gt.tryColorscale(t,"line"),O2.traceIs(e,"symbols")&&(r.ms2mrc=Cue.isBubble(e)?Lue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ga.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;(Ga.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:ZD*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 O2.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:Gi.addOpacity(c,ZD))},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){Gi.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",$D(gt.symbolNumber(l),s,aw(o,r),tw(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?Ga.extractOption(l,r,"txt","texttemplate"):Ga.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={};Due(v,r,l.i),f=Ga.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:f})}var d=l.tp||r.textposition,p=rF(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(B2.convertToTspans,t).call(eF,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=rF(a,r);Gi.fill(n,i);var s=O2.traceIs(r,"bar-like");eF(n,o,l,a.mrc2||a.mrc,s)})}};var UD=.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=nF;gt.makeTester=function(){var e=Ga.ensureSingleById(wi.select("body"),"svg","js-plotly-tester",function(t){t.attr(Sue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ga.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 $4=0,Bue=1e4;gt.bBox=function(e,r,t){t||(t=HD(e));var a;if(t){if(a=gt.savedBBoxes[t],a)return Ga.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=HD(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 Ga.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(B2.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 $4>=Bue&&(gt.savedBBoxes={},$4=0),t&&(gt.savedBBoxes[t]=d),$4++,Ga.extendFlat({},d)};function HD(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",rw(r,t))};function rw(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+=vm(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 zue=/\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(zue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Gue=/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(Gue);r===1&&t===1?a=[]:a=[vm(o,l),"scale("+r+","+t+")",vm(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function tw(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=tw;var cm=Math.atan2,Ih=Math.cos,Dd=Math.sin;function VD(e,r){var t=r[0],a=r[1];return[t*Ih(e)-a*Dd(e),t*Dd(e)+a*Ih(e)]}var YD,WD,jD,XD,Q4,K4;function aw(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ga.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=cm(v[1]-n,v[0]-a),p=cm(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=YD/180*Math.PI,_=WD/180*Math.PI,x=T-m,A=Ih(_)*Dd(x),E=Dd(_)*Ih(b)-Ih(_)*Dd(b)*Ih(x);y=-cm(A,E)-Math.PI,YD=f,WD=u}var M=VD(d,[Ih(y),0]),k=VD(p,[Dd(y),0]);t=cm(M[1]+k[1],M[0]+k[0])/Math.PI*180,i==="previous"&&!(K4===r.uid&&e.i===Q4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(K4===r.uid&&e.i===Q4+1&&zh(a)&&zh(n)){var F=a-jD,P=n-XD,O=r.line&&r.line.shape||"",R=O.slice(O.length-1);R==="h"&&(P=0),R==="v"&&(F=0),t+=cm(P,F)/Math.PI*180+90}else t=null}return jD=a,XD=n,Q4=e.i,K4=r.uid,t}gt.getMarkerAngle=aw});var hm=N((hLe,fF)=>{"use strict";var Fd=da(),Uue=ba(),Hue=_i(),nw=Bt(),Gh=Ur(),oF=Gh.strTranslate,z2=Ha(),G2=ha(),Rd=to(),lF=od(),Vue=ro().OPPOSITE_SIDE,sF=/ [XY][0-9]* /,iw=1.6,ow=1.6;function Yue(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:{}},V=(H.text||"").trim(),ae=!1,re=1,Q=H.font,J=Q.family,j=Q.size,oe=Q.color,se=Q.weight,Le=Q.style,Ue=Q.variant,Ee=Q.textcase,Ve=Q.lineposition,we=Q.shadow,fr;i==="title.text"?fr="titleText":i.indexOf("axis")!==-1?fr="axisTitleText":i.indexOf("colorbar")!==-1&&(fr="colorbarTitleText");var Ie=e._context.edits[fr];function He(Vr,nt){return Vr===void 0||nt===void 0?!1:Vr.replace(sF," % ")===nt.replace(sF," % ")}p===""?v=0:He(p,o)&&(Ie||(p=""),v=.2,y=!0),O&&(V===""?re=0:He(V,R)&&(Ie||(V=""),re=.2,ae=!0)),t._meta?p=Gh.templateString(p,t._meta):a._meta&&(p=Gh.templateString(p,a._meta));var vr=p||V||Ie,$e;c||(c=Gh.ensureSingle(a._infolayer,"g","g-"+r),$e=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data(vr?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var de=null,ne=r+"-subtitle",qe=V||Ie;if(O&&(de=c.selectAll("text."+ne).data(qe?[0]:[]),de.enter().append("text"),de.text(V).attr("class",ne),de.exit().remove()),!vr)return c;function Je(Vr,nt){Gh.syncOrAsync([Ke,Sr],{title:Vr,subtitle:nt})}function Ke(Vr){var nt=Vr.title,wr=Vr.subtitle,Yr;!u&&$e&&(u={}),u?(Yr="",u.rotate&&(Yr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||$e)&&(Yr+=oF(0,(u.offset||0)-($e||0)))):Yr=null,nt.attr("transform",Yr);function et(rr){if(rr){var ur=Fd.select(rr.node().parentNode).select("."+ne);if(!ur.empty()){var Hr=rr.node().getBBox();if(Hr.height){var ot=Hr.y+Hr.height+iw*j;ur.attr("y",ot)}}}}if(nt.style("opacity",v*G2.opacity(_)).call(z2.font,{color:G2.rgb(_),size:Fd.round(T,2),family:b,weight:x,style:A,variant:E,textcase:M,shadow:F,lineposition:k}).attr(f).call(Rd.convertToTspans,e,et),wr&&!wr.empty()){var Pe=c.select("."+r+"-math-group"),or=nt.node().getBBox(),st=Pe.node()?Pe.node().getBBox():void 0,kt=st?st.y+st.height+iw*j:or.y+or.height+ow*j,Ar=Gh.extendFlat({},f,{y:kt});wr.attr("transform",Yr),wr.style("opacity",re*G2.opacity(oe)).call(z2.font,{color:G2.rgb(oe),size:Fd.round(j,2),family:J,weight:se,style:Le,variant:Ue,textcase:Ee,shadow:we,lineposition:Ve}).attr(Ar).call(Rd.convertToTspans,e)}return Hue.previousPromises(e)}function Sr(Vr){var nt=Vr.title,wr=Fd.select(nt.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Yr=Vue[s.side],et=s.side==="left"||s.side==="top"?-1:1,Pe=Uue(s.pad)?s.pad:2,or=z2.bBox(wr.node()),st={t:0,b:0,l:0,r:0},kt=e._fullLayout._reservedMargin;for(var Ar in kt)for(var rr in kt[Ar]){var ur=kt[Ar][rr];st[rr]=Math.max(st[rr],ur)}var Hr={left:st.l,top:st.t,right:a.width-st.r,bottom:a.height-st.b},ot=s.maxShift||et*(Hr[s.side]-or[s.side]),Wr=0;if(ot<0)Wr=ot;else{var tt=s.offsetLeft||0,xt=s.offsetTop||0;or.left-=tt,or.right-=tt,or.top-=xt,or.bottom-=xt,s.selection.each(function(){var at=z2.bBox(this);Gh.bBoxIntersect(or,at,Pe)&&(Wr=Math.max(Wr,et*(at[s.side]-or[Yr])+Pe))}),Wr=Math.min(ot,Wr),n._titleScoot=Math.abs(Wr)}if(Wr>0||ot<0){var jr={left:[-Wr,0],right:[Wr,0],top:[0,-Wr],bottom:[0,Wr]}[s.side];wr.attr("transform",oF(jr[0],jr[1]))}}}ee.call(Je,de);function Er(Vr,nt){Vr.text(nt).on("mouseover.opacity",function(){Fd.select(this).transition().duration(lF.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Fd.select(this).transition().duration(lF.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ie&&(p?ee.on(".opacity",null):(Er(ee,o),y=!0),ee.call(Rd.makeEditable,{gd:e}).on("edit",function(Vr){l!==void 0?nw.call("_guiRestyle",e,i,Vr,l):nw.call("_guiRelayout",e,i,Vr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Vr){this.text(Vr||" ").call(Rd.positionText,f.x,f.y)}),O)){if(O&&!p){var br=ee.node().getBBox(),zr=br.y+br.height+ow*j;de.attr("y",zr)}V?de.on(".opacity",null):(Er(de,R),ae=!0),de.call(Rd.makeEditable,{gd:e}).on("edit",function(Vr){nw.call("_guiRelayout",e,"title.subtitle.text",Vr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Vr){this.text(Vr||" ").call(Rd.positionText,de.attr("x"),de.attr("y"))})}return ee.classed("js-placeholder",y),de&&!de.empty()&&de.classed("js-placeholder",ae),c}fF.exports={draw:Yue,SUBTITLE_PADDING_EM:ow,SUBTITLE_PADDING_MATHJAX_EM:iw}});var Z2=N((dLe,dF)=>{"use strict";var Wue=da(),jue=td().utcFormat,Za=Ur(),Xue=Za.numberFormat,kf=ba(),Xc=Za.cleanNumber,Zue=Za.ms2DateTime,uF=Za.dateTime2ms,Cf=Za.ensureNumber,cF=Za.isArrayOrTypedArray,Zc=ri(),U2=Zc.FP_SAFE,Os=Zc.BADNUM,Jue=Zc.LOG_CLIP,$ue=Zc.ONEWEEK,H2=Zc.ONEDAY,V2=Zc.ONEHOUR,vF=Zc.ONEMIN,hF=Zc.ONESEC,Y2=kn(),X2=ci(),W2=X2.HOUR_PATTERN,j2=X2.WEEKDAY_PATTERN;function dm(e){return Math.pow(10,e)}function lw(e){return e!=null}dF.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*Jue*Math.abs(E-M))}else return Os}function o(x,A,E,M){if((M||{}).msUTC&&kf(x))return+x;var k=uF(x,E||r.calendar);if(k===Os)if(kf(x)){x=+x;var F=Math.floor(Za.mod(x+.05,1)*10),P=Math.round(x-F/10);k=uF(new Date(P))+F/10}else return Os;return k}function l(x,A,E){return Zue(x,A,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(lw(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"?dm: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 dm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xc,r.c2d=r.c2r=r.l2d=r.l2r=Cf,r.d2p=r.r2p=function(x){return r.l2p(Xc(x))},r.p2d=r.p2r=b,r.cleanPos=Cf):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(Xc(x),A)},r.r2d=r.r2c=function(x){return dm(Xc(x))},r.d2c=r.r2l=Xc,r.c2d=r.l2r=Cf,r.c2r=i,r.l2d=dm,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return dm(b(x))},r.r2p=function(x){return r.l2p(Xc(x))},r.p2r=b,r.cleanPos=Cf):r.type==="date"?(r.d2r=r.r2d=Za.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 Za.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[Y2.id2name(F)];A=A.concat(P._traceIndices)}}var O=[[0,{}],[0,{}]],R=[];for(E=0;EP[1]&&(M[F?0:1]=E),M[0]===M[1]){var O=r.l2r(A),R=r.l2r(E);if(A!==void 0){var H=O+1;E!==void 0&&(H=Math.min(H,R)),M[F?1:0]=H}if(E!==void 0){var V=R+1;A!==void 0&&(V=Math.max(V,O)),M[F?0:1]=V}}}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var E=Za.nestedProperty(r,x).get(),M,k;if(r.type==="date"?k=Za.dfltRange(r.calendar):n==="y"?k=X2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=A.dfltRange||X2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){Za.nestedProperty(r,x).set(k);return}var F=E[0]===null,P=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Za.cleanDate(E[0],Os,r.calendar),E[1]=Za.cleanDate(E[1],Os,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Za.isDateTime(E[M],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var O=Za.constrain(r.r2l(E[0]),Za.MIN_MS+1e3,Za.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]<-U2?E[M]=-U2:E[M]>U2&&(E[M]=U2),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=Y2.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&&(V=!V),V&&r._rangebreaks.reverse();var ae=V?-1:1;for(r._m2=ae*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&&(Lewe.max&&(we.max=Ue),Ee=!1)}Ee&&P.push({min:Le,max:Ue})}};for(E=0;E{"use strict";var pF=ba(),sw=Ur(),Que=ri().BADNUM,J2=sw.isArrayOrTypedArray,Kue=sw.isDateTime,ece=sw.cleanNumber,mF=Math.round;gF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(J2(n)&&!n.length)return"-";if(!i&&ice(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function yF(e){return Math.max(1,(e-1)/1e3)}function nce(e,r){for(var t=e.length,a=yF(t),n=0,i=0,o={},l=0;ln*2}function ice(e){return J2(e[0])&&J2(e[1])}});var qd=N((mLe,SF)=>{"use strict";var oce=da(),wF=ba(),Jc=Ur(),$2=ri().FP_SAFE,lce=Bt(),sce=Ha(),AF=kn(),fce=AF.getFromId,uce=AF.isLinked;SF.exports={applyAutorangeOptions:MF,getAutoRange:uw,makePadFn:cw,doAutoRange:vce,findExtremes:hce,concatExtremes:dw};function uw(e,r){var t,a,n=[],i=e._fullLayout,o=cw(i,r,0),l=cw(i,r,1),s=dw(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,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,V=c+1;if(b)if(c===0)n=[0,1];else{var ae=(c>0?u:f).reduce(R,0),re=c/(1-Math.min(.5,ae/_));n=c>0?[0,re]:[re,0]}else T?n=[Math.max(0,H),Math.max(1,V)]:n=[H,V]}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-bF(r,E.val,M.val))/(_-o(k)-l(F)),n=[k.val-A*o(k),F.val+A*l(F)];return n=MF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jc.simpleMap(n,r.l2r||Number)}function bF(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<$2&&(_=v);else for(c=0;c-$2&&(T=v),v>_&&v<$2&&(_=v);r=[T,_],i=2}var F={tozero:l,extrapad:o};function P(R){d=r[R],wF(d)&&(m=A(R),b=E(R),u?(p=e.c2l(d)-k(R),y=e.c2l(d)+M(R)):(T=d-k(R),_=d+M(R),s&&T<_/10&&(T=_/10),p=e.c2l(T),y=e.c2l(_)),l&&(p=Math.min(0,p),y=Math.max(0,y)),_F(p)&&vw(a,p,b,F),_F(y)&&hw(n,y,m,F))}var O=Math.min(6,i);for(c=0;c=O;c--)P(c);return{min:a,max:n,opts:t}}function vw(e,r,t,a){TF(e,r,t,a,dce)}function hw(e,r,t,a){TF(e,r,t,a,pce)}function TF(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 _F(e){return wF(e)&&Math.abs(e)<$2}function dce(e,r){return e<=r}function pce(e,r){return e>=r}function mce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Q2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Q2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function yce(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Q2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Q2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Q2(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=mce(t,r),a=yce(a,r),[t,a]}});var yn=N((gLe,ZF)=>{"use strict";var Vl=da(),ai=ba(),Pd=_i(),mm=Bt(),It=Ur(),Nd=It.strTranslate,Uh=to(),gce=hm(),ym=ha(),bl=Ha(),bce=Hl(),EF=D4(),yLe=ci(),Ui=ri(),xce=Ui.ONEMAXYEAR,r3=Ui.ONEAVGYEAR,t3=Ui.ONEMINYEAR,_ce=Ui.ONEMAXQUARTER,gw=Ui.ONEAVGQUARTER,a3=Ui.ONEMINQUARTER,wce=Ui.ONEMAXMONTH,Id=Ui.ONEAVGMONTH,n3=Ui.ONEMINMONTH,xl=Ui.ONEWEEK,mo=Ui.ONEDAY,$c=mo/2,Df=Ui.ONEHOUR,gm=Ui.ONEMIN,i3=Ui.ONESEC,Ace=Ui.ONEMILLI,Tce=Ui.ONEMICROSEC,Hh=Ui.MINUS_SIGN,l3=Ui.BADNUM,bw={K:"zeroline"},xw={K:"gridline",L:"path"},_w={K:"minor-gridline",L:"path"},OF={K:"tick",L:"path"},kF={K:"tick",L:"text"},CF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},s3=ro(),pm=s3.MID_SHIFT,Vh=s3.CAP_SHIFT,bm=s3.LINE_SPACING,Mce=s3.OPPOSITE_SIDE,o3=3,Qr=ZF.exports={};Qr.setConvert=Z2();var Sce=fw(),Ff=kn(),Ece=Ff.idSort,kce=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 BF=qd();Qr.getAutoRange=BF.getAutoRange;Qr.findExtremes=BF.findExtremes;var Cce=1e-4;function Mw(e){var r=(e[1]-e[0])*Cce;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},It.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?(It.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-=$c;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){if(!r.minor.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=It.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=It.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?pw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:FF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":pw(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"?pw(f,u)||(e.dtick=FF(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function pw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function FF(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=It.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?It.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=It.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>=t3?f>=t3&&f<=xce?c=f:c=r3:t===gw&&u>=a3?f>=a3&&f<=_ce?c=f:c=gw:u>=n3?f>=n3&&f<=wce?c=f:c=Id:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===$c&&u>=$c?c=$c: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;mxl&&(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||It.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=It.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var A=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:It.extendFlat({},r,r.minor);if(A?Qr.prepMinorTicks(E,r,t):Qr.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=RF(r,!A)):(b=[],y=RF(r,!A));continue}if(E.tickmode==="sync"){m=[],p=Pce(r);continue}var M=Mw(f),k=M[0],F=M[1],P=ai(E.dtick),O=a==="log"&&!(P||E.dtick.charAt(0)==="L"),R=Qr.tickFirst(E,t);if(x){if(r._tmin=R,R=F:V<=F;V=Qr.tickIncrement(V,Q,u,n)){if(x&&ae++,E.rangebreaks&&!u){if(V=v)break}if(m.length>d||V===H)break;H=V;var J={value:V};x?(O&&V!==(V|0)&&(J.simpleLabel=!0),i>1&&ae%i&&(J.skipLabel=!0),m.push(J)):(J.minor=!0,b.push(J))}}if(!b||b.length<2)s=!1;else{var j=(b[1].value-b[0].value)*(l?-1:1);ove(j,r.tickformat)||(s=!1)}if(!s)T=m;else{var oe=m.concat(b);o&&m.length&&(oe=oe.slice(1)),oe=oe.sort(function(zr,Vr){return zr.value-Vr.value}).filter(function(zr,Vr,nt){return Vr===0||zr.value!==nt[Vr-1].value});var se=oe.map(function(zr,Vr){return zr.minor===void 0&&!zr.skipLabel?Vr:null}).filter(function(zr){return zr!==null});se.forEach(function(zr){s.map(function(Vr){var nt=zr+Vr;nt>=0&&nt-1;vr--){if(m[vr].drop){m.splice(vr,1);continue}m[vr].value=yw(m[vr].value,r);var ne=r.c2p(m[vr].value);($e?de>ne-ee:dev||wrv&&(nt.periodX=v),wrn&&vr3)r/=r3,a=n(10),e.dtick="M"+12*Lf(r,a,K2);else if(i>Id)r/=Id,e.dtick="M"+Lf(r,1,qF);else if(i>mo){if(e.dtick=Lf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:Nce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=It.dateTick0(e.calendar,2):e.tick0=It.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Df?e.dtick=Lf(r,Df,qF):i>gm?e.dtick=Lf(r,gm,PF):i>i3?e.dtick=Lf(r,i3,PF):(a=n(10),e.dtick=Lf(r,a,K2))}else if(e.type==="log"){e.tick0=0;var s=It.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,K2)}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))):Cw(e)?(e.tick0=0,a=1,e.dtick=Lf(r,a,Ice)):(e.tick0=0,a=n(10),e.dtick=Lf(r,a,K2));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 HF(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>=gm&&n<=16||r>=Df)e._tickround="M";else if(r>=i3&&n<=19||r>=gm)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&&(Od(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Sw(s)||Od(e.exponentformat)&&e.exponentformat==="SI extended"&&!Ew(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 It.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return It.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?UF:GF,s=e+n*.01,f=It.roundUp(It.mod(s,1),l,t);return Math.floor(s)+Math.log(Vl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=It.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&It.isArrayOrTypedArray(e.ticktext)){var c=It.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=_m(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function Bce(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=xm(Math.pow(10,o),e,n,a);else if(ai(i)||s==="D"&&(e.minorloglabels==="complete"||It.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(It.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"||Od(p)&&p!=="SI extended"&&Sw(v)||Od(p)&&p==="SI extended"&&Ew(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=xm(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,It.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 zce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Gce(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 Uce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=xm(r.x,e,n,a)}function Hce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Vce(i);if(o[1]>=100)r.text=xm(It.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=xm(r.x,e,n,a)}function Vce(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 YF=["f","p","n","\u03BC","m","","k","M","G","T"],Yce=["q","r","y","z","a",...YF,"P","E","Z","Y","R","Q"],Od=e=>["SI","SI extended","B"].includes(e);function Sw(e){return e>14||e<-15}function Ew(e){return e>32||e<-30}function Wce(e,r){return Od(r)?!!(r==="SI extended"&&Ew(e)||r!=="SI extended"&&Sw(e)):!1}function xm(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]};HF(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":Od(o)&&(e+=o==="SI extended"?Yce[l/3+10]:YF[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",""))*Id}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 It.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&&Tw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=It.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),Tw(r,p,a,!0),Tw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=ive(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(br){var zr=f+(br||"tick");return A[zr]||(A[zr]=Jce(r,zr,b)),A[zr]}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=jce(r,_);P=Qr.clipEnds(r,H),F=O?P:H}else P=Qr.clipEnds(r,_),F=O&&r.ticklabelmode!=="period"?P:_;var V=r._gridVals=P,ae=Zce(r,_);if(!s._hasOnlyLargeSploms){var re=r._subplotsWith,Q={};for(i=0;i0?wr.bottom-Vr:0,nt))));var or=0,st=0;if(r._shiftPusher&&(or=Math.max(nt,wr.height>0?br==="l"?Vr-wr.left:wr.right-Vr:0),r.title.text!==s._dfltTitle[u]&&(st=(r._titleStandoff||0)+(r._titleScoot||0),br==="l"&&(st+=IF(r))),r._fullDepth=Math.max(or,st)),r.automargin){Yr={x:0,y:0,r:0,l:0,t:0,b:0};var kt=[0,1],Ar=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(br==="b"?Yr[br]=r._depth:(Yr[br]=r._depth=Math.max(wr.width>0?Vr-wr.top:0,nt),kt.reverse()),wr.width>0){var rr=wr.right-(r._offset+r._length);rr>0&&(Yr.xr=1,Yr.r=rr);var ur=r._offset-wr.left;ur>0&&(Yr.xl=0,Yr.l=ur)}}else if(br==="l"?(r._depth=Math.max(wr.height>0?Vr-wr.left:0,nt),Yr[br]=r._depth-Ar):(r._depth=Math.max(wr.height>0?wr.right-Vr:0,nt),Yr[br]=r._depth+Ar,kt.reverse()),wr.height>0){var Hr=wr.bottom-(r._offset+r._length);Hr>0&&(Yr.yb=0,Yr.b=Hr);var ot=r._offset-wr.top;ot>0&&(Yr.yt=1,Yr.t=ot)}Yr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[kt[0]],r.title.text!==s._dfltTitle[u]&&(Yr[br]+=IF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(et={x:0,y:0,r:0,l:0,t:0,b:0},et[zr]=r.linewidth,r.mirror&&r.mirror!==!0&&(et[zr]+=nt),r.mirror===!0||r.mirror==="ticks"?et[c]=r._anchorAxis.domain[kt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(et[c]=[r._counterDomainMin,r._counterDomainMax][kt[1]]))}Er&&(Pe=mm.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(NF(Yr,r.automargin),NF(et,r.automargin)),Pd.autoMargin(e,kw(r),Yr),Pd.autoMargin(e,jF(r),et),Pd.autoMargin(e,XF(r),Pe)}),It.syncOrAsync(Ke)}};function NF(e,r){if(e){var t=Object.keys(CF).reduce(function(a,n){return r.indexOf(n)!==-1&&CF[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 jce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(It.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 Nd(n+e._offset+e.l2p(ww(v))+t,i+a)}:function(v){return Nd(i+a,n+e._offset+e.l2p(ww(v))+t)}};function ww(e){return e.periodX!==void 0?e.periodX:e.x}function $ce(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=o3,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+=o3),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=It.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+=pm:F===-90&&M==="bottom"?x=Vh:F===90&&M==="top"?x=pm:x=.5,E=pm/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,V){if(u){if(l)return"end";if(s)return"start"}return!ai(V)||V===0||V===180?"middle":V*A<0!==c?"end":"start"},b.heightFn=function(H,V,ae){return V<-60||V>60?-.5*ae:e.side==="top"!==c?-ae: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=ai(F)?+F:0;if(O!==0){var R=It.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*pm},b.anchorFn=function(H,V){return ai(V)&&Math.abs(V)===90?"middle":P?"end":"start"},b.heightFn=function(H,V,ae){return e.side==="right"&&(V*=-1),V<-30?-ae:V<30?-.5*ae:0}}return b};function f3(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,f3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return ym.stroke(Vl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),u3(r,[OF]),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,f3);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 ym.stroke(Vl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.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)}}u3(r,[xw,_w])}};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 Ece(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(ym.stroke,r.zerolinecolor||ym.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),u3(r,[bw])};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:[],f3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var oe=Vl.select(this),se=e._promises.length;oe.call(Uh.positionText,s.xFn(j),s.yFn(j)).call(bl.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[se]?v.push(e._promises.pop().then(function(){d(oe,f)})):d(oe,f)}),u3(r,[kF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Vl.select(this).select("text").call(Uh.positionText,s.xFn(j),s.yFn(j))});function d(j,oe){j.each(function(se){var Le=Vl.select(this),Ue=Le.select(".text-math-group"),Ee=s.anchorFn(se,oe),Ve=t.transFn.call(Le.node(),se)+(ai(oe)&&+oe!=0?" rotate("+oe+","+s.xFn(se)+","+(s.yFn(se)-se.fontSize/2)+")":""),we=Uh.lineCount(Le),fr=bm*se.fontSize,Ie=s.heightFn(se,ai(oe)?+oe:0,(we-1)*fr);if(Ie&&(Ve+=Nd(0,Ie)),Ue.empty()){var He=Le.select("text");He.attr({transform:Ve,"text-anchor":Ee}),He.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var vr=bl.bBox(Ue.node()).width,$e=vr*{end:-.5,start:.5}[Ee];Ue.attr("transform",Ve+Nd($e,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var oe=j.indexOf("hide")!==-1,se=r._id.charAt(0)==="x",Le=0,Ue=se?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var Ee=It.simpleMap(r.range,r.r2l);Le=r.l2p(Ee[0])+r._offset,Ue=r.l2p(Ee[1])+r._offset}var Ve=Math.min(Le,Ue),we=Math.max(Le,Ue),fr=r.side,Ie=1/0,He=-1/0;c.each(function(de){var ne=Vl.select(this),qe=ne.select(".text-math-group");if(qe.empty()){var Je=bl.bBox(ne.node()),Ke=0;se?(Je.right>we||Je.leftwe||Je.top+(r.tickangle?0:de.fontSize/4)r["_visibleLabelMin_"+Ee._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,oe=[],se,Le=1;c.each(function(Yr){j=Math.max(j,Yr.fontSize);var et=r.l2p(Yr.x),Pe=Aw(this),or=bl.bBox(Pe.node());Le=Math.max(Le,Uh.lineCount(Pe)),oe.push({top:0,bottom:10,height:10,left:et-or.width/2,right:et+or.width/2+2,width:or.width+2})});var Ue=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Ve=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),we=Ue?Ve/2:Ve,fr=Ue?r.ticklen:j*1.25*Le,Ie=Math.sqrt(Math.pow(we,2)+Math.pow(fr,2)),He=we/Ie,vr=r.autotickangles.map(function(Yr){return Yr*Math.PI/180}),$e=vr.find(function(Yr){return Math.abs(Math.cos(Yr))<=He});$e===void 0&&($e=vr.reduce(function(Yr,et){return Math.abs(Math.cos(Yr))re*ae&&(R=ae,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=It.syncOrAsync(b);return J&&J.then&&e._promises.push(J),J};function Qce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,f3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(ym.stroke,r.dividercolor).style("stroke-width",bl.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 IF(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*bm):t?r*(t+1)*bm:r}function Kce(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*(pm+l*bm));else{var s=_m(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=bl.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,gce.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=It.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===l3)&&(WF(r,0)||!eve(e,r,t,a)||rve(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return WF(e,t.x)})};function WF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Tce:/%L/.test(r)?e>=Ace:/%[SX]/.test(r)?e>=i3:/%M/.test(r)?e>=gm:/%[HI]/.test(r)?e>=Df:/%p/.test(r)?e>=$c:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=n3:/%[q]/.test(r)?e>=a3:/%[Yy]/.test(r)?e>=t3:!0}});var $F=N((bLe,JF)=>{"use strict";JF.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 Lw=N((xLe,QF)=>{"use strict";var lve=$F();QF.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&&(lve(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var eR=N((_Le,KF)=>{var sve={left:0,top:0};KF.exports=fve;function fve(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=uve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function uve(e){return e===window||e===document||e===document.body?sve:e.getBoundingClientRect()}});var Dw=N((wLe,rR)=>{"use strict";var cve=o4();function vve(){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}rR.exports=cve&&vve()});var aR=N((ALe,tR)=>{"use strict";tR.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 oR=N((TLe,iR)=>{"use strict";var nR=Ur(),hve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];iR.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=nR.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=nR.constrain(Math.floor(t*3),0,2),hve[t][r]}});var sR=N((MLe,lR)=>{"use strict";var dve=tm(),pve=v2(),mve=X1().getGraphDiv,yve=V1(),Fw=lR.exports={};Fw.wrapped=function(e,r,t){e=mve(e),e._fullLayout&&pve.clear(e._fullLayout._uid+yve.HOVERID),Fw.raw(e,r,t)};Fw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&dve.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((SLe,vR)=>{"use strict";var gve=eR(),Rw=s4(),bve=Dw(),xve=Ur().removeElement,_ve=ci(),Yh=vR.exports={};Yh.align=aR();Yh.getCursor=oR();var uR=sR();Yh.unhover=uR.wrapped;Yh.unhoverRaw=uR.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,bve?(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 cR(){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=cR;function fR(e){return gve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Qc=N((ELe,hR)=>{"use strict";hR.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 mR=N((kLe,pR)=>{"use strict";var qw=Qc(),wm="data-savedcursor",dR="!!";pR.exports=function(r,t){var a=r.attr(wm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Pw=zi(),wve=Mf();yR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:wve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Pw({editType:"legend"}),grouptitlefont:Pw({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:Pw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Tm=N(Am=>{"use strict";Am.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Am.isVertical=function(r){return r.orientation!=="h"};Am.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Am.getId=function(r){return r._id||"legend"}});var Ow=N((DLe,gR)=>{"use strict";var c3=Bt(),_l=Ur(),Ave=Xa(),Tve=Ds(),Mve=Nw(),Sve=vd(),Iw=Tm();function Eve(e,r,t,a,n){var i=r[e]||{},o=Ave.newContainer(t,e);function l(j,oe){return _l.coerce(i,o,Mve,j,oe)}var s=_l.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var f=l("visible");if(!f)return;var u,c=function(j,oe){var se=u._input,Le=u;return _l.coerce(se,Le,Tve,j,oe)},v=t.font||{},d=_l.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 c3.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 oe=0;oej.legend.length)for(var Le=j.legend.length;Le(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,V,ae,re="left";P?(H=0,c3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(V=1.1,ae="bottom"):(V=1,ae="top"):O?(V=-.1,ae="top"):(V=0,ae="bottom")):(V=1,ae="auto",R?H=1.02:(H=1,re="right")),_l.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:H}},"x"),_l.coerce(i,o,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:V}},"y"),l("traceorder",m),Iw.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",re),l("yanchor",ae),l("maxheight"),l("valign"),_l.noneOrAll(i,o,["x","y"]);var Q=l("title.text");if(Q){l("title.side",P?"left":"top");var J=_l.extendFlat({},s,{size:_l.bigFont(s.size)});_l.coerceFont(l,"title.font",J);let j=n>1;l("titleclick",j?"toggle":!1),l("titledoubleclick",j?"toggleothers":!1)}}}gR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Kc=Bt(),Bw=Ur(),kve=Bw.pushUnique,Cve=Tm(),bR=!0;zw.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"&&bR&&t.data&&t._context.showTips&&(Bw.notifier(Bw._(t,"Double-click on legend to isolate one trace"),"long"),bR=!1);var s=l==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],u=t._fullData,c=(i.shapes||[]).filter(function(Er){return Er.showlegend}),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(Er,br){var zr=E.indexOf(Er),Vr=A.visible;return Vr||(Vr=A.visible=[]),E.indexOf(Er)===-1&&(E.push(Er),zr=E.length-1),Vr[zr]=br,zr}var P=(i.shapes||[]).map(function(Er){return Er._input}),O=!1;function R(Er,br){P[Er].visible=br,O=!0}function H(Er,br){if(!(o.groupTitle&&!s)){var zr=Er._fullInput||Er,Vr=zr._isShape,nt=zr.index;nt===void 0&&(nt=zr._index);var wr=zr.visible===!1?!1:br;Vr?R(nt,wr):F(nt,wr)}}var V=d.legend,ae=d._fullInput,re=ae&&ae._isShape;if(!re&&Kc.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,oe=[];for(y=0;y{"use strict";xR.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var AR=N((qLe,wR)=>{"use strict";var _R=Bt(),Hw=Tm();wR.exports=function(r,t,a){var n=t._inHover,i=Hw.isGrouped(t),o=Hw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function y(j,oe,se){if(t.visible!==!1&&!(a&&j!==t._id))if(oe===""||!Hw.isGrouped(t)){var Le="~~i"+c;s.push(Le),l[Le]=[se],c++}else s.indexOf(oe)===-1?(s.push(oe),f=!0,l[oe]=[se]):l[oe].push(se)}for(d=0;dR&&(O=R)}F[d][0]._groupMinRank=O,F[d][0]._preGroupSort=d}var H=function(j,oe){return j[0]._groupMinRank-oe[0]._groupMinRank||j[0]._preGroupSort-oe[0]._preGroupSort},V=function(j,oe){return j.trace.legendrank-oe.trace.legendrank||j._preSort-oe._preSort};for(F.forEach(function(j,oe){j[0]._preGroupSort=oe}),F.sort(H),d=0;d{"use strict";var v3=Ur();function TR(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=TR((r*100).toPrecision(3));return v3.numSeparate(a,t)+"%"};Wh.formatPieValue=function(r,t){var a=TR(r.toPrecision(10));return v3.numSeparate(a,t)};Wh.getFirstFilled=function(r,t){if(v3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Lve=Ha(),Dve=ha();MR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Lve.pointStyle(r,a,n,t):Dve.fill(r,t.color)}});var LR=N((ILe,CR)=>{"use strict";var ER=ha(),kR=Vw().castOption,Fve=SR();CR.exports=function(r,t,a,n){var i=a.marker.line,o=kR(i.color,t.pts)||ER.defaultLine,l=kR(i.width,t.pts)||0;r.call(Fve,t,a,n).style("stroke-width",l).call(ER.stroke,o)}});var Xw=N((OLe,NR)=>{"use strict";var yo=da(),Yw=Bt(),no=Ur(),DR=no.strTranslate,wl=Ha(),Yl=ha(),Ww=Is().extractOpts,h3=qi(),Rve=LR(),qve=Vw().castOption,Pve=Uw(),FR=12,RR=5,jh=2,Nve=10,Bd=5;NR.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Pve.itemGap*2)/2,s=DR(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=yo.select(this),F=no.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 V={top:1,bottom:-1}[O],ae=V*(.5*(R-H+3))||0,re=a.indentation;F.attr("transform",DR(re,ae))}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=qR(M),F=k.showFill,P=k.showLine,O=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,V=k.anyLine,ae=M[0],re=ae.trace,Q,J,j=Ww(re),oe=j.colorscale,se=j.reversescale,Le=function(He){if(He.size())if(F)wl.fillGroupStyle(He,t,!0);else{var vr="legendfill-"+re.uid;wl.gradient(He,t,vr,jw(se),oe,"fill")}},Ue=function(He){if(He.size()){var vr="legendline-"+re.uid;wl.lineGroupStyle(He),wl.gradient(He,t,vr,jw(se),oe,"stroke")}},Ee=h3.hasMarkers(re)||!H?"M5,0":V?"M5,-2":"M5,-3",Ve=yo.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",Ee+"h"+o+"v6h-"+o+"z").call(Le),P||O){var fr=f(void 0,re.line,Nve,RR);J=no.minExtend(re,{line:{width:fr}}),Q=[no.minExtend(ae,{trace:J})]}var Ie=Ve.select(".legendlines").selectAll("path").data(P||O?[Q]:[]);Ie.enter().append("path").classed("js-line",!0),Ie.exit().remove(),Ie.attr("d",Ee+(O?"l"+o+",0.0001":"h"+o)).call(P?wl.lineGroupStyle:Ue)}function c(M){var k=qR(M),F=k.anyFill,P=k.anyLine,O=k.showLine,R=k.showMarker,H=M[0],V=H.trace,ae=!R&&!P&&!F&&h3.hasText(V),re,Q;function J(we,fr,Ie,He){var vr=no.nestedProperty(V,we).get(),$e=no.isArrayOrTypedArray(vr)&&fr?fr(vr):vr;if(i&&$e&&He!==void 0&&($e=He),Ie){if($eIe[1])return Ie[1]}return $e}function j(we){return H._distinct&&H.index&&we[H.index]?we[H.index]:we[0]}if(R||ae||O){var oe={},se={};if(R){oe.mc=J("marker.color",j),oe.mx=J("marker.symbol",j),oe.mo=J("marker.opacity",no.mean,[.2,1]),oe.mlc=J("marker.line.color",j),oe.mlw=J("marker.line.width",no.mean,[0,5],jh),oe.mld=V._isShape?"solid":J("marker.line.dash",j),se.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Le=J("marker.size",no.mean,[2,16],FR);oe.ms=Le,se.marker.size=Le}O&&(se.line={width:J("line.width",j,[0,10],RR)}),ae&&(oe.tx="Aa",oe.tp=J("textposition",j),oe.ts=10,oe.tc=J("textfont.color",j),oe.tf=J("textfont.family",j),oe.tw=J("textfont.weight",j),oe.ty=J("textfont.style",j),oe.tv=J("textfont.variant",j),oe.tC=J("textfont.textcase",j),oe.tE=J("textfont.lineposition",j),oe.tS=J("textfont.shadow",j)),re=[no.minExtend(H,oe)],Q=no.minExtend(V,se),Q.selectedpoints=null,Q.texttemplate=null}var Ue=yo.select(this).select("g.legendpoints"),Ee=Ue.selectAll("path.scatterpts").data(R?re:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,Q,t),R&&(re[0].mrc=3);var Ve=Ue.selectAll("g.pointtext").data(ae?re:[]);Ve.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ve.exit().remove(),Ve.selectAll("text").call(wl.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=yo.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 V=yo.select(this),ae=k[H[0]].marker,re=f(void 0,ae.line,Bd,jh);V.attr("d",H[1]).style("stroke-width",re+"px").call(Yl.fill,ae.color),re&&V.call(Yl.stroke,ae.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",V=F?P.visible&&P.type===F:Yw.traceIs(P,"bar"),ae=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(V?[M]:[]);ae.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),ae.exit().remove(),ae.each(function(re){var Q=yo.select(this),J=re[0],j=f(J.mlw,O.line,Bd,jh);Q.style("stroke-width",j+"px");var oe=J.mcc;if(!a._inHover&&"mc"in J){var se=Ww(O),Le=se.mid;Le===void 0&&(Le=(se.max+se.min)/2),oe=wl.tryColorscale(O,"")(Le)}var Ue=oe||J.mc||O.color,Ee=O.pattern,Ve=wl.getPatternAttr,we=Ee&&(Ve(Ee.shape,0,"")||Ve(Ee.path,0,""));if(we){var fr=Ve(Ee.bgcolor,0,null),Ie=Ve(Ee.fgcolor,0,null),He=Ee.fgopacity,vr=PR(Ee.size,8,10),$e=PR(Ee.solidity,.5,1),ee="legend-"+P.uid;Q.call(wl.pattern,"legend",t,ee,we,vr,$e,oe,Ee.fillmode,fr,Ie,He)}else Q.call(Yl.fill,Ue);j&&Yl.stroke(Q,J.mlc||R.color)})}function m(M){var k=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Yw.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=yo.select(this);if((k.boxpoints==="all"||k.points==="all")&&Yl.opacity(k.fillcolor)===0&&Yl.opacity((k.line||{}).color)===0){var O=no.minExtend(k,{marker:{size:i?FR:no.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,O,t)}else{var R=f(void 0,k.line,Bd,jh);P.style("stroke-width",R+"px").call(Yl.fill,k.fillcolor),R&&Yl.stroke(P,k.line.color)}})}function b(M){var k=M[0].trace,F=yo.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=yo.select(this),H=k[O?"increasing":"decreasing"],V=f(void 0,H.line,Bd,jh);R.style("stroke-width",V+"px").call(Yl.fill,H.fillcolor),V&&Yl.stroke(R,H.line.color)})}function T(M){var k=M[0].trace,F=yo.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=yo.select(this),H=k[O?"increasing":"decreasing"],V=f(void 0,H.line,Bd,jh);R.style("fill","none").call(wl.dashLine,H.line.dash,V),V&&Yl.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:Yw.traceIs(O,F),H=yo.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 V=O.marker||{},ae=f(qve(V.line.width,P.pts),V.line,Bd,jh),re="pieLike",Q=no.minExtend(O,{marker:{line:{width:ae}}},re),J=no.minExtend(P,{trace:Q},re);Rve(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=yo.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 V=yo.select(this),ae=Ww(k),re=ae.colorscale,Q=ae.reversescale,J=function(Le){if(Le.size()){var Ue="legendfill-"+k.uid;wl.gradient(Le,t,Ue,jw(Q,F==="radial"),re,"fill")}},j;if(re){if(!F){var se=re.length;j=H===0?re[Q?se-1:0][1]:H===1?re[Q?0:se-1][1]:re[Math.floor((se-1)/2)][1]}}else{var oe=k.vertexcolor||k.facecolor||k.color;j=no.isArrayOrTypedArray(oe)?oe[H]||oe[0]:oe}V.attr("d",R[0]),j?V.call(Yl.fill,j):V.call(J)})}};function jw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function qR(e){var r=e[0].trace,t=r.contours,a=h3.hasLines(r),n=h3.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 PR(e,r,t){return e&&no.isArrayOrTypedArray(e)?r:e>t?t:e}});var Qw=N((BLe,YR)=>{"use strict";var qo=da(),Vn=Ur(),Jw=_i(),Xh=Bt(),m3=tm(),Zw=Bs(),Yn=Ha(),Mm=ha(),Zh=to(),IR=Gw().handleItemClick,OR=Gw().handleTitleClick,ni=Uw(),$w=ro(),HR=$w.LINE_SPACING,Gd=$w.FROM_TL,BR=$w.FROM_BR,zR=AR(),Ive=Xw(),Ud=Tm(),zd=1,Ove=/^legend[0-9]*$/;YR.exports=function(r,t){if(t)GR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=qo.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(Ove)&&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(),Jw.autoMargin(e,n);var y=Vn.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=Vn.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=Vn.ensureSingle(y,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(Mm.stroke,t.bordercolor).call(Mm.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Vn.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Vn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Yn.font,_.font).text(_.text),p3(x,T,e,t,zd),!l&&(t.titleclick||t.titledoubleclick)&&Uve(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var A=Vn.ensureSingle(y,"rect","scrollbar",function(k){k.attr(ni.scrollBarEnterAttrs).call(Mm.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(Vn.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(V){return V.showlegend});return e._fullData.concat(R).some(function(V){return V.legendgroup===O&&(V.legend||"legend")===n&&V.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(){qo.select(this).call(zve,e,t)}).call(Ive,e,t).each(function(k){l||k[0].groupTitle&&t.groupclick==="toggleitem"||qo.select(this).call(Gve,e,n)}),Vn.syncOrAsync([Jw.previousPromises,function(){return Yve(e,E,M,t,T)},function(){var k=a._size,F=t.borderwidth,P=t.xref==="paper",O=t.yref==="paper";if(_.text){let qe=(a.shapes||[]).filter(function(Ke){return Ke.showlegend}),Je=e._fullData.concat(qe).some(function(Ke){let Sr=Ke.legend||"legend";var Er=Array.isArray(Sr)?Sr.includes(n):Sr===n;return Er&&Ke.visible===!0});x.style("opacity",Je?1:.5)}if(!l){var R,H;P?R=k.l+k.w*t.x-Gd[y3(t)]*t._width:R=a.width*t.x-Gd[y3(t)]*t._width,O?H=k.t+k.h*(1-t.y)-Gd[g3(t)]*t._effHeight:H=a.height*(1-t.y)-Gd[g3(t)]*t._effHeight;var V=Wve(e,n,R,H);if(V)return;if(a.margin.autoexpand){var ae=R,re=H;R=P?Vn.constrain(R,0,a.width-t._width):ae,H=O?Vn.constrain(H,0,a.height-t._effHeight):re,R!==ae&&Vn.log("Constrain "+n+".x to make legend fit inside graph"),H!==re&&Vn.log("Constrain "+n+".y to make legend fit inside graph")}Yn.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}),Yn.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*F,height:Q-2*F,x:F,y:F}),Yn.setClipUrl(T,i,e),Yn.setRect(A,0,0,0,0),delete t._scrollY}else{var J=Math.max(ni.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-J-2*ni.scrollBarMargin,oe=t._height-t._effHeight,se=j/oe,Le=Math.min(t._scrollY||0,oe);b.attr({width:t._width-2*F+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+Le}),Yn.setClipUrl(T,i,e),vr(Le,J,se),y.on("wheel",function(){Le=Vn.constrain(t._scrollY+qo.event.deltaY/oe*j,0,oe),vr(Le,J,se),Le!==0&&Le!==oe&&qo.event.preventDefault()});var Ue,Ee,Ve,we=function(qe,Je,Ke){var Sr=(Ke-Je)/se+qe;return Vn.constrain(Sr,0,oe)},fr=function(qe,Je,Ke){var Sr=(Je-Ke)/se+qe;return Vn.constrain(Sr,0,oe)},Ie=qo.behavior.drag().on("dragstart",function(){var qe=qo.event.sourceEvent;qe.type==="touchstart"?Ue=qe.changedTouches[0].clientY:Ue=qe.clientY,Ve=Le}).on("drag",function(){var qe=qo.event.sourceEvent;qe.buttons===2||qe.ctrlKey||(qe.type==="touchmove"?Ee=qe.changedTouches[0].clientY:Ee=qe.clientY,Le=we(Ve,Ue,Ee),vr(Le,J,se))});A.call(Ie);var He=qo.behavior.drag().on("dragstart",function(){var qe=qo.event.sourceEvent;qe.type==="touchstart"&&(Ue=qe.changedTouches[0].clientY,Ve=Le)}).on("drag",function(){var qe=qo.event.sourceEvent;qe.type==="touchmove"&&(Ee=qe.changedTouches[0].clientY,Le=fr(Ve,Ue,Ee),vr(Le,J,se))});T.call(He)}function vr(qe,Je,Ke){t._scrollY=e._fullLayout[n]._scrollY=qe,Yn.setTranslate(T,0,-qe),Yn.setRect(A,t._width,ni.scrollBarMargin+qe*Ke,ni.scrollBarWidth,Je),m.select("rect").attr("y",F+qe)}if(e._context.edits.legendPosition){var $e,ee,de,ne;y.classed("cursor-move",!0),Zw.init({element:y.node(),gd:e,prepFn:function(qe){if(qe.target!==A.node()){var Je=Yn.getTranslate(y);de=Je.x,ne=Je.y}},moveFn:function(qe,Je){if(de!==void 0&&ne!==void 0){var Ke=de+qe,Sr=ne+Je;Yn.setTranslate(y,Ke,Sr),$e=Zw.align(Ke,t._width,k.l,k.l+k.w,t.xanchor),ee=Zw.align(Sr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if($e!==void 0&&ee!==void 0){var qe={};qe[n+".x"]=$e,qe[n+".y"]=ee,Xh.call("_guiRelayout",e,qe)}},clickFn:function(qe,Je){var Ke=o.selectAll("g.traces").filter(function(){var Sr=this.getBoundingClientRect();return Je.clientX>=Sr.left&&Je.clientX<=Sr.right&&Je.clientY>=Sr.top&&Je.clientY<=Sr.bottom});Ke.size()>0&&VR(e,t,Ke,qe,Je)}})}}],e)}}function d3(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 VR(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&&IR(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&&IR(t,e,r,s)}}function zve(e,r,t){var a=Ud.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=Vn.templateString(f,i._meta))));var c=Vn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Yn.font,u).text(l?UR(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(p3,e,r,t).on("edit",function(d){this.text(UR(d,s)).call(p3,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)}):p3(c,e,r,t)}function UR(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 Gve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Vn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Mm.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)),VR(r,l,e,i,qo.event)}}))}function Uve(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=Vn.ensureSingle(e,"rect",a+"titletoggle",function(f){r._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(Mm.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:qo.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&&OR(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&&OR(r,t,t.titledoubleclick))}))}function p3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Zh.convertToTspans(e,t,function(){Hve(r,t,a,n)})}function Hve(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=Ud.getId(t);t||(t=r._fullLayout[s]);var f=t.borderwidth,u;a===zd?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var c=u.size*HR,v,d;if(l){var p=Yn.bBox(l);v=p.height,d=p.width,a===zd?Yn.setTranslate(o,f,f+v*.75):Yn.setTranslate(o,0,v*.25)}else{var y="."+s+(a===zd?"title":"")+"text",m=e.select(y),b=Zh.lineCount(m),T=m.node();if(v=c*b,d=T?Yn.bBox(T).width:0,a===zd)t.title.side==="left"&&(d+=ni.itemGap*2),Zh.positionText(m,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(m,_,-c*((b-1)/2-.3))}}a===zd?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function Vve(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 Yve(e,r,t,a,n){var i=e._fullLayout,o=Ud.getId(a);a||(a=i[o]);var l=i._size,s=Ud.isVertical(a),f=Ud.isGrouped(a),u=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=ni.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=g3(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=Vve(a);if(s)t.each(function(qe){var Je=qe[0].height;Yn.setTranslate(this,c+O[0],c+O[1]+a._height+Je/2+d),a._height+=Je,a._width=Math.max(a._width,qe[0].width)}),P=p+a._width,a._width+=d+p+v,a._height+=y,f&&(r.each(function(qe,Je){Yn.setTranslate(this,0,Je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=y3(a),H=a.x<0||a.x===0&&R==="right",V=a.x>1||a.x===1&&R==="left",ae=T||b,re=i.width/2;a._maxWidth=Math.max(H?ae&&R==="left"?l.l+l.w:re:V?ae&&R==="right"?l.r+l.w:re:l.w,2*p);var Q=0,J=0;t.each(function(qe){var Je=d3(qe,a,p);Q=Math.max(Q,Je),J+=Je}),P=null;var j=0;if(f){var oe=0,se=0,Le=0;r.each(function(){var qe=0,Je=0;qo.select(this).selectAll("g.traces").each(function(Sr){var Er=d3(Sr,a,p),br=Sr[0].height;Yn.setTranslate(this,O[0],O[1]+c+d+br/2+Je),Je+=br,qe=Math.max(qe,Er),x[Sr[0].trace.legendgroup]=qe});var Ke=qe+d;se>0&&Ke+c+se>a._maxWidth?(j=Math.max(j,se),se=0,Le+=oe+_,oe=Je):oe=Math.max(oe,Je),Yn.setTranslate(this,se,Le),se+=Ke}),a._width=Math.max(j,se)+c,a._height=Le+oe+y}else{var Ue=t.size(),Ee=J+v+(Ue-1)*d=a._maxWidth&&(j=Math.max(j,Ie),we=0,fr+=Ve,a._height+=Ve,Ve=0),Yn.setTranslate(this,O[0]+c+we,O[1]+c+fr+Je/2+d),Ie=we+Ke+d,we+=Sr,Ve=Math.max(Ve,Je)}),Ee?(a._width=we+v,a._height=Ve+y):(a._width=Math.max(j,Ie)+v,a._height+=Ve+y)}}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,vr=He.legendText||He.legendPosition;t.each(function(qe){var Je=qo.select(this).select("."+o+"toggle"),Ke=qe[0].height,Sr=qe[0].trace.legendgroup,Er=d3(qe,a,p);f&&Sr!==""&&(Er=x[Sr]);var br=vr?p:P||Er;!s&&!u&&(br+=d/2),Yn.setRect(Je,0,-Ke/2,br,Ke)});var $e=n.select("."+o+"titletext");$e.node()&&Bve($e,a,c);var ee=n.select("."+o+"titletoggle");if(ee.size()&&$e.node()){var de=$e.attr("x")||0,ne=ni.titlePad;Yn.setRect(ee,de-ne,c,a._titleWidth+2*ne,a._titleHeight+2*ne)}}function Wve(e,r,t,a){var n=e._fullLayout,i=n[r],o=y3(i),l=g3(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 Jw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Gd[o],r:i._width*BR[o],b:i._effHeight*BR[l],t:i._effHeight*Gd[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 y3(e){return Vn.isRightAnchor(e)?"right":Vn.isCenterAnchor(e)?"center":"left"}function g3(e){return Vn.isBottomAnchor(e)?"bottom":Vn.isMiddleAnchor(e)?"middle":"top"}});var tA=N(rA=>{"use strict";var Jh=da(),Nu=ba(),WR=Ls(),Rn=Ur(),jve=Rn.pushUnique,Kw=Rn.strTranslate,Xve=Rn.strRotate,Zve=tm(),Wl=to(),Jve=mR(),Rf=Ha(),Ai=ha(),b3=Bs(),qf=yn(),$ve=ci().zindexSeparator,Vd=Bt(),zs=Pu(),$h=V1(),Qve=Ow(),Kve=Qw(),eq=$h.YANGLE,eA=Math.PI*eq/180,ehe=1/Math.sin(eA),rhe=Math.cos(eA),the=Math.sin(eA),gn=$h.HOVERARROWSIZE,ua=$h.HOVERTEXTPAD,jR={box:!0,ohlc:!0,violin:!0,candlestick:!0},ahe={scatter:!0,scattergl:!0,splom:!0};function XR(e,r){return e.distance-r.distance}rA.hover=function(r,t,a,n){r=Rn.getGraphDiv(r);var i=t.target;Rn.throttle(r._fullLayout._uid+$h.HOVERID,$h.HOVERMINTIME,function(){nhe(r,t,a,n,i)})};rA.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=iq(n),o=oq(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(Vd.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},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:m.color||Ai.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=tq(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ai.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 b3.unhoverRaw(e,r)}if(r.pointerX=de+M[0]._offset,r.pointerY=ne+k[0]._offset,"xval"in r?re=zs.flat(i,r.xval):re=zs.p2c(M,de),"yval"in r?Q=zs.flat(i,r.yval):Q=zs.p2c(k,ne),!Nu(re[0])||!Nu(Q[0]))return Rn.warn("Fx.hover failed",r,e),b3.unhoverRaw(e,r)}var Ke=1/0;function Sr(Et,Pa){for(j=0;jIe&&(V.splice(0,Ie),Ke=V[0].distance),c&&H!==0&&V.length===0){fr.distance=H,fr.index=!1;var fa=se._module.hoverPoints(fr,Ve,we,"closest",{hoverLayer:l._hoverlayer});if(fa&&(fa=fa.filter(function(dn){return dn.spikeDistance<=H})),fa&&fa.length){var Tn,Ka=fa.filter(function(dn){return dn.xa.showspikes&&dn.xa.spikesnap!=="hovered data"});if(Ka.length){var en=Ka[0];Nu(en.x0)&&Nu(en.y0)&&(Tn=br(en),(!He.vLinePoint||He.vLinePoint.spikeDistance>Tn.spikeDistance)&&(He.vLinePoint=Tn))}var fo=fa.filter(function(dn){return dn.ya.showspikes&&dn.ya.spikesnap!=="hovered data"});if(fo.length){var Ii=fo[0];Nu(Ii.x0)&&Nu(Ii.y0)&&(Tn=br(Ii),(!He.hLinePoint||He.hLinePoint.spikeDistance>Tn.spikeDistance)&&(He.hLinePoint=Tn))}}}}}Sr();function Er(Et,Pa,ia){for(var Ia=null,$a=1/0,Qa,fa=0;faEt.trace.index===rr.trace.index):V=[rr];var ur=V.length,Hr=KR("x",rr,l),ot=KR("y",rr,l);Sr(Hr,ot);var Wr=[],tt={},xt=0,jr=function(Et){var Pa=jR[Et.trace.type]?rq(Et):Et.trace.index;if(!tt[Pa])xt++,tt[Pa]=xt,Wr.push(Et);else{var ia=tt[Pa]-1,Ia=Wr[ia];ia>0&&Math.abs(Et.distance)ur-1;at--)jr(V[at]);V=Wr,wr()}var gr=e._hoverdata,Se=[],Oe=iq(e),pr=oq(e);for(let Et of V){var _r=zs.makeEventData(Et,Et.trace,Et.cd);if(Et.hovertemplate!==!1){var ht=!1;Et.cd[Et.index]&&Et.cd[Et.index].ht&&(ht=Et.cd[Et.index].ht),Et.hovertemplate=ht||Et.trace.hovertemplate||!1}if(Et.xa&&Et.ya){var Tt=Et.x0+Et.xa._offset,wt=Et.x1+Et.xa._offset,Ot=Et.y0+Et.ya._offset,ta=Et.y1+Et.ya._offset,Ma=Math.min(Tt,wt),Ba=Math.max(Tt,wt),an=Math.min(Ot,ta),Va=Math.max(Ot,ta);_r.bbox={x0:Ma+pr,x1:Ba+pr,y0:an+Oe,y1:Va+Oe}}Et.eventData=[_r],Se.push(_r)}e._hoverdata=Se;var xn=v==="y"&&(ae.length>1||V.length>1)||v==="closest"&&vr&&V.length>1,Pn=Ai.combine(l.plot_bgcolor||Ai.background,l.paper_bgcolor),di=tq(V,{gd:e,hovermode:v,rotateLabels:xn,bgColor:Pn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),hn=di.hoverLabels;if(zs.isUnifiedHover(v)||(ohe(hn,xn,l,di.commonLabelBoundingBox),nq(hn,xn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Jn=Vd.getComponentMethod("annotations","hasClickToShow")(e,Se);Jve(Jh.select(n),Jn?"pointer":"")}!n||a||!fhe(e,r,gr)||(gr&&e.emit("plotly_unhover",{event:r,points:gr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:k,xvals:re,yvals:Q}))}function rq(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 ihe=/([\s\S]*)<\/extra>/;function tq(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-Oe&&(pr=a.width-Oe),rr.attr("d","M"+(at-pr)+",0L"+(at-pr+gn)+","+Se+gn+"H"+Oe+"v"+Se+(ua*2+jr.height)+"H"+-Oe+"V"+Se+gn+"H"+(at-pr-gn)+"Z"),at=pr,j.minX=at-Oe,j.maxX=at+Oe,_.side==="top"?(j.minY=gr-(ua*2+jr.height),j.maxY=gr-ua):(j.minY=gr+ua,j.maxY=gr+(ua*2+jr.height))}else{var _r,ht,Tt;x.side==="right"?(_r="start",ht=1,Tt="",at=_._offset+_._length):(_r="end",ht=-1,Tt="-",at=_._offset),gr=x._offset+(T.y0+T.y1)/2,ur.attr("text-anchor",_r),rr.attr("d","M0,0L"+Tt+gn+","+gn+"V"+(ua+jr.height/2)+"h"+Tt+(ua*2+jr.width)+"V-"+(ua+jr.height/2)+"H"+Tt+gn+"V-"+gn+"Z"),j.minY=gr-(ua+jr.height/2),j.maxY=gr+(ua+jr.height/2),x.side==="right"?(j.minX=at+gn,j.maxX=at+gn+(ua*2+jr.width)):(j.minX=at-gn-(ua*2+jr.width),j.maxX=at-gn);var wt=jr.height/2,Ot=P-jr.top-wt,ta="clip"+a._uid+"commonlabel"+x._id,Ma;if(atrr.hoverinfo!=="none");if(Ar.length===0)return[];var oe=a.hoverlabel,se=oe.font,Le=Ar[0],Ue=((n==="x unified"?Le.xa:Le.ya).unifiedhovertitle||{}).text,Ee=Ue?Rn.hovertemplateString({data:n==="x unified"?[{xa:Le.xa,x:Le.xVal}]:[{ya:Le.ya,y:Le.yVal}],fallback:Le.trace.hovertemplatefallback,locale:a._d3locale,template:Ue}):M,Ve={showlegend:!0,legend:{title:{text:Ee,font:se},font:se,bgcolor:oe.bgcolor,bordercolor:oe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},we={font:se};Qve(Ve,we,t._fullData);var fr=we.legend;fr.entries=[];for(var Ie=0;Ie=0?or=wr:Yr+Je=0?or=Yr:et+Je=0?st=Vr:nt+Ke=0?st=nt:Pe+Ke=0,(Ar.idealAlign==="top"||!Va)&&xn?(Tt-=Ot/2,Ar.anchor="end"):Va?(Tt+=Ot/2,Ar.anchor="start"):Ar.anchor="middle",Ar.crossPos=Tt;else{if(Ar.pos=Tt,Va=ht+wt/2+an<=O,xn=ht-wt/2-an>=0,(Ar.idealAlign==="left"||!Va)&&xn)ht-=wt/2,Ar.anchor="end";else if(Va)ht+=wt/2,Ar.anchor="start";else{Ar.anchor="middle";var Pn=an/2,di=ht+Pn-O,hn=ht-Pn;di>0&&(ht-=di),hn<0&&(ht+=-hn)}Ar.crossPos=ht}gr.attr("text-anchor",Ar.anchor),Oe&&Se.attr("text-anchor",Ar.anchor),rr.attr("transform",Kw(ht,Tt)+(i?Xve(eq):""))}),{hoverLabels:kt,commonLabelBoundingBox:j}}function ZR(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=QR(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(ihe,(p,y)=>(o=QR(y,e.nameLength),""))}return[l,o]}function ohe(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(re){return re*t._invScaleX},m=function(re){return re*t._invScaleY};e.each(function(re){var Q=re[n],J=re[i],j=Q._id.charAt(0)==="x",oe=Q.range;u===0&&oe&&oe[0]>oe[1]!==j&&(l=-1);var se=0,Le=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ue=aq(re,r),Ee=re.anchor,Ve=Ee==="end"?-1:1,we,fr;if(Ee==="middle")we=re.crossPos+(j?m(Ue.y-re.by/2):y(re.bx/2+re.tx2width/2)),fr=we+(j?m(re.by):y(re.bx));else if(j)we=re.crossPos+m(gn+Ue.y)-m(re.by/2-gn),fr=we+m(re.by);else{var Ie=y(Ve*gn+Ue.x),He=Ie+y(Ve*re.bx);we=re.crossPos+Math.min(Ie,He),fr=re.crossPos+Math.max(Ie,He)}j?d!==void 0&&p!==void 0&&Math.min(fr,p)-Math.max(we,d)>1&&(J.side==="left"?(se=J._mainLinePosition,Le=t.width):Le=J._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fr,v)-Math.max(we,c)>1&&(J.side==="top"?(se=J._mainLinePosition,Le=t.height):Le=J._mainLinePosition)}f[u++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(j?ehe:1)/2,pmin:se,pmax:Le}]}),f.sort(function(re,Q){return re[0].posref-Q[0].posref||l*(Q[0].traceIndex-re[0].traceIndex)});var b,T,_,x,A,E,M;function k(re){var Q=re[0],J=re[re.length-1];if(T=Q.pmin-Q.pos-Q.dp+Q.size,_=J.pos+J.dp+J.size-Q.pmax,T>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=_;b=!1}if(b){var j=0;for(x=0;xQ.pmax&&j++;for(x=re.length-1;x>=0&&!(j<=0);x--)E=re[x],E.pos>Q.pmax-1&&(E.del=!0,j--);for(x=0;x=0;A--)re[A].dp-=_;for(x=re.length-1;x>=0&&!(j<=0);x--)E=re[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 V=H[A],ae=V.datum;ae.offset=V.dp,ae.del=V.del}}}function aq(e,r){var t=0,a=e.offset;return r&&(a*=-the,t=e.offset*rhe),{x:t,y:a}}function lhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(gn+ua),a=t+r*(e.txwidth+ua),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+ua),{alignShift:r,textShiftX:t,text2ShiftX:a}}function nq(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=lhe(o),v=aq(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*gn+d)+","+i(gn+p)+"v"+i(o.by/2-gn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*gn+d)+"V"+i(p-gn)+"Z":b="M"+n(u*gn+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+ua,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+ua:-o.bx-ua):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-ua:o.bx+ua)),s.call(Wl.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(Wl.positionText,n(c.text2ShiftX+c.alignShift*ua+d),i(p+o.ty0-o.by/2+ua)),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 she(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Nu(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 JR(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 y=u.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=WR.readability(v.color,c)<1.5?Ai.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=WR.readability(F.color,c)<1.5?Ai.contrast(c):F.color,V=f.spikemode,ae=f.spikethickness,re=f.spikecolor||H,Q=qf.getPxPosition(e,f),J,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(J=Q,j=O),V.indexOf("across")!==-1){var oe=f._counterDomainMin,se=f._counterDomainMax;f.anchor==="free"&&(oe=Math.min(oe,f.position),se=Math.max(se,f.position)),J=i.t+(1-se)*i.h,j=i.t+(1-oe)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ae,stroke:re,"stroke-dasharray":Rf.dashStyle(f.spikedash,ae)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ae+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:Q-(f.side!=="top"?ae:-ae),r:ae,fill:re}).classed("spikeline",!0)}}}function fhe(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 $R(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function QR(e,r){return Wl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function uhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,oq=e=>e.offsetLeft+e.clientLeft;function Hd(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 x3=N((GLe,lq)=>{"use strict";var che=Ur(),vhe=ha(),hhe=Pu().isUnifiedHover;lq.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&&hhe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=vhe.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),che.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var fq=N((ULe,sq)=>{"use strict";var dhe=Ur(),phe=x3(),mhe=id();sq.exports=function(r,t){function a(n,i){return dhe.coerce(r,t,mhe,n,i)}phe(r,t,a)}});var vq=N((HLe,cq)=>{"use strict";var uq=Ur(),yhe=jg(),ghe=x3();cq.exports=function(r,t,a,n){function i(l,s){return uq.coerce(r,t,yhe,l,s)}var o=uq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),ghe(r,t,i,o)}});var aA=N((VLe,hq)=>{"use strict";var bhe=Ur(),xhe=id();hq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:bhe.coerce(r,t,xhe,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var mq=N((YLe,pq)=>{"use strict";var dq=Ur(),_he=id(),whe=aA(),Ahe=x3();pq.exports=function(r,t){function a(u,c){return dq.coerce(r,t,_he,u,c)}var n=whe(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),Ahe(r,t,a),dq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var bq=N((WLe,gq)=>{"use strict";var nA=Ur(),yq=Bt();gq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return nA.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var Mhe=Bt(),She=tA().hover;xq.exports=function(r,t,a){var n=Mhe.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&She(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ev=N((XLe,Tq)=>{"use strict";var Ehe=da(),_3=Ur(),khe=Bs(),Sm=Pu(),wq=id(),Aq=tA();Tq.exports={moduleType:"component",name:"fx",constants:V1(),schema:{layout:wq},attributes:jg(),layoutAttributes:wq,supplyLayoutGlobalDefaults:fq(),supplyDefaults:vq(),supplyLayoutDefaults:mq(),calc:bq(),getDistanceFunction:Sm.getDistanceFunction,getClosest:Sm.getClosest,inbox:Sm.inbox,quadrature:Sm.quadrature,appendArrayPointValue:Sm.appendArrayPointValue,castHoverOption:Lhe,castHoverinfo:Dhe,hover:Aq.hover,unhover:khe.unhover,loneHover:Aq.loneHover,loneUnhover:Che,click:_q()};function Che(e){var r=_3.isD3Selection(e)?e:Ehe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Lhe(e,r,t){return _3.castOption(e,r,"hoverlabel."+t)}function Dhe(e,r,t){function a(n){return _3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return _3.castOption(e,t,"hoverinfo",a)}});var rv=N(Iu=>{"use strict";Iu.selectMode=function(e){return e==="lasso"||e==="select"};Iu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Iu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Iu.selectingOrDrawing=function(e){return Iu.freeMode(e)||Iu.rectMode(e)}});var w3=N((JLe,Mq)=>{"use strict";Mq.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 A3=N(($Le,Sq)=>{"use strict";Sq.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 M3=N((QLe,Eq)=>{"use strict";var T3=32;Eq.exports={CIRCLE_SIDES:T3,i000:0,i090:T3/4,i180:T3/2,i270:T3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var S3=N((KLe,Cq)=>{"use strict";var Fhe=Ur().strTranslate;function kq(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 Rhe(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 qhe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return kq(e,t[r])}}function Phe(e){return Fhe(e.xaxis._offset,e.yaxis._offset)}Cq.exports={p2r:kq,r2p:Rhe,axValue:qhe,getTransform:Phe}});var tv=N(Ou=>{"use strict";var Nhe=um(),Fq=M3(),Yd=Fq.CIRCLE_SIDES,iA=Fq.SQRT2,Rq=S3(),Lq=Rq.p2r,Dq=Rq.r2p,Ihe=[0,3,4,5,6,1,2],Ohe=[0,3,4,1,2];Ou.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var qq=kn(),Bq=rv(),Bhe=Bq.drawMode,zhe=Bq.openMode,Wd=M3(),Pq=Wd.i000,Nq=Wd.i090,Iq=Wd.i180,Oq=Wd.i270,Ghe=Wd.cos45,Uhe=Wd.sin45,zq=S3(),k3=zq.p2r,av=zq.r2p,Hhe=Vc(),Vhe=Hhe.clearOutline,C3=tv(),Yhe=C3.readPaths,Whe=C3.writePaths,jhe=C3.ellipseOver,Xhe=C3.fixDatesForPaths;function Zhe(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(!Bhe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var Jhe=rv(),$he=Jhe.selectMode,Qhe=Vc(),Khe=Qhe.clearOutline,oA=tv(),e0e=oA.readPaths,r0e=oA.writePaths,t0e=oA.fixDatesForPaths;Hq.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(!$he(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Vq.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(Hi=>{"use strict";var Pf=km(),Yq=Ur(),nv=yn();Hi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Hi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Hi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Hi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Hi.extractPathCoords=function(e,r,t){var a=[],n=e.match(Pf.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Pf.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Hi.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=Hi.shapePositionToRange(r);o=function(s){var f=Bu(r,t);return r._offset+r.r2p(l(s,!0))+f},r.type==="date"&&(o=Hi.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};Hi.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=Hi.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};Hi.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Hi.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}};Hi.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}};Hi.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 V;if(P)if(O==="domain")H?V=function(ae){return P._offset+P._length*(1-ae)}:V=function(ae){return P._offset+P._length*ae};else{let ae=Hi.shapePositionToRange(P);V=function(re){return P._offset+P.r2p(ae(re,!0))},R==="path"&&P.type==="date"&&(V=Hi.decodeDate(V))}else H?V=function(ae){return i.t+i.h*(1-ae)}:V=function(ae){return i.l+i.w*ae};return V}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 a0e(r,v,d);if(a==="array")s=Bu(o[0],r.x0shift),f=Bu(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+f;else if(s=Bu(o,r.x0shift),f=Bu(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=Bu(l[0],r.y0shift),c=Bu(l[1],r.y1shift),m=d[0](r.y0)+u,b=d[1](r.y1)+c;else if(u=Bu(l,r.y0shift),c=Bu(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 a0e(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(Pf.segmentRE,function(v){var d=0,p=v.charAt(0),y=Pf.paramIsX[p],m=Pf.paramIsY[p],b=Pf.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(Pf.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.*/,""),Yq.log("Ignoring extra params in segment "+v)),T&&u++,_&&c++,p+E})}function Bu(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 fA=N((iDe,Xq)=>{"use strict";var n0e=Ur(),Nf=yn(),Wq=to(),jq=Ha(),i0e=tv().readPaths,sA=iv(),o0e=sA.getPathString,Cm=r2(),l0e=ro().FROM_TL;Xq.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=Nf.getFromId(r,a.xref),s=Nf.getFromId(r,a.yref);let se=Array.isArray(a.xref),Le=Array.isArray(a.yref);for(var f in Cm){var u=typeof Cm[f]=="function",c=!se||Cm.simpleXVariables.includes(f),v=!Le||Cm.simpleYVariables.includes(f);if(u&&c&&v){var d=Cm[f](a,l,s);d!==void 0&&(o[f]=d)}}}i=n0e.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=o0e(r,a),k=i0e(M,r);_=1/0,A=1/0,x=-1/0,E=-1/0;for(var F=0;F=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function f0e(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 u0e=Ur(),c0e=u0e.strTranslate,Zq=Bs(),Qq=rv(),v0e=Qq.drawMode,Kq=Qq.selectMode,eP=Bt(),Jq=ha(),F3=M3(),h0e=F3.i000,d0e=F3.i090,p0e=F3.i180,m0e=F3.i270,y0e=Vc(),rP=y0e.clearOutlineControllers,cA=tv(),D3=cA.pointsOnRectangle,uA=cA.pointsOnEllipse,g0e=cA.writePaths,b0e=L3().newShapes,x0e=L3().createShapeObj,_0e=lA(),w0e=fA();tP.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(uA(r[0])||a.hasText)&&l({redrawing:!0})}function l(Q){var J={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,J=b0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,J=_0e(t,a),i._fullLayout._reselect=!0),Object.keys(J).length&&eP.call((Q||{}).redrawing?"relayout":"_guiRelayout",i,J)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=v0e(u),v=Kq(u);(c||v)&&(i._fullLayout._outlining=!0),rP(i),t.attr("d",g0e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=A0e([],r);var T=f.append("g").attr("class","outline-controllers");P(T),re()}if(c&&a.hasText){var _=f.select(".label-temp"),x=x0e(t,a,a.dragmode);w0e(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],oe=b[y][m][2],se=r[y],Le=se.length;if(D3(se)){var Ue=Q,Ee=J;if(a.isActiveSelection){var Ve=$q(se,m);Ve[1]===se[m][1]?Ee=0:Ue=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];!D3(j)&&!uA(j)&&k()}}function P(Q){d=[];for(var J=0;J{"use strict";var M0e=da(),lP=Bt(),hA=Ur(),Qh=yn(),S0e=tv().readPaths,E0e=R3(),P3=fA(),sP=Vc().clearOutlineControllers,vA=ha(),N3=Ha(),k0e=Xa().arrayEditor,aP=Bs(),nP=Qc(),Kh=km(),Qo=iv(),dA=Qo.getPathString;cP.exports={draw:pA,drawOne:fP,eraseActiveShape:F0e,drawLabel:P3};function pA(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;nQh.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 L0e(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=M0e.select(r.node().parentNode),H=Qh.getFromId(e,t.xref),V=Qh.getRefType(t.xref),ae=Qh.getFromId(e,t.yref),re=Qh.getRefType(t.yref),Q=t.x0shift,J=t.x1shift,j=t.y0shift,oe=t.y1shift,se=function(Er,br){var zr=Qo.getDataToPixel(e,H,br,!1,V);return zr(Er)},Le=function(Er,br){var zr=Qo.getDataToPixel(e,ae,br,!0,re);return zr(Er)},Ue=Qo.getPixelToData(e,H,!1,V),Ee=Qo.getPixelToData(e,ae,!0,re),Ve=Ie(),we={element:Ve.node(),gd:e,prepFn:$e,doneFn:ee,clickFn:de},fr;aP.init(we),Ve.node().onmousemove=vr;function Ie(){return u?He():r}function He(){var Er=10,br=Math.max(t.line.width,Er),zr=n.append("g").attr("data-index",a).attr("drag-helper",!0);zr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":br,"stroke-opacity":"0"});var Vr={"fill-opacity":"0"},nt=Math.max(br/2,Er);return zr.append("circle").attr({"data-line-point":"start-point",cx:s?se(t.xanchor)+t.x0:se(t.x0,Q),cy:f?Le(t.yanchor)-t.y0:Le(t.y0,j),r:nt}).style(Vr).classed("cursor-grab",!0),zr.append("circle").attr({"data-line-point":"end-point",cx:s?se(t.xanchor)+t.x1:se(t.x1,J),cy:f?Le(t.yanchor)-t.y1:Le(t.y1,oe),r:nt}).style(Vr).classed("cursor-grab",!0),zr}function vr(Er){if(q3(e)){fr=null;return}if(u)Er.target.tagName==="path"?fr="move":fr=Er.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var br=we.element.getBoundingClientRect(),zr=br.right-br.left,Vr=br.bottom-br.top,nt=Er.clientX-br.left,wr=Er.clientY-br.top,Yr=!c&&zr>o&&Vr>l&&!Er.shiftKey?aP.getCursor(nt/zr,1-wr/Vr):"move";nP(r,Yr),fr=Yr.split("-")[0]}}function $e(Er){q3(e)||(s&&(b=se(t.xanchor)),f&&(T=Le(t.yanchor)),t.type==="path"?O=t.path:(d=s?t.x0:se(t.x0),p=f?t.y0:Le(t.y0),y=s?t.x1:se(t.x1),m=f?t.y1:Le(t.y1)),dm?(_=p,M="y0",x=m,k="y1"):(_=m,M="y1",x=p,k="y0"),vr(Er),Je(n,t),Sr(r,t,e),we.moveFn=fr==="move"?ne:qe,we.altKey=Er.altKey)}function ee(){q3(e)||(nP(r),Ke(n),uP(r,e,t),lP.call("_guiRelayout",e,i.getUpdateObj()))}function de(){q3(e)||Ke(n)}function ne(Er,br){if(t.type==="path"){var zr=function(wr){return wr},Vr=zr,nt=zr;s?v("xanchor",t.xanchor=Ue(b+Er)):(Vr=function(Yr){return Ue(se(Yr)+Er)},H&&H.type==="date"&&(Vr=Qo.encodeDate(Vr))),f?v("yanchor",t.yanchor=Ee(T+br)):(nt=function(Yr){return Ee(Le(Yr)+br)},ae&&ae.type==="date"&&(nt=Qo.encodeDate(nt))),v("path",t.path=iP(O,Vr,nt))}else s?v("xanchor",t.xanchor=Ue(b+Er)):(v("x0",t.x0=Ue(d+Er)),v("x1",t.x1=Ue(y+Er))),f?v("yanchor",t.yanchor=Ee(T+br)):(v("y0",t.y0=Ee(p+br)),v("y1",t.y1=Ee(m+br)));r.attr("d",dA(e,t)),Je(n,t),P3(e,a,t,R)}function qe(Er,br){if(c){var zr=function(tt){return tt},Vr=zr,nt=zr;s?v("xanchor",t.xanchor=Ue(b+Er)):(Vr=function(xt){return Ue(se(xt)+Er)},H&&H.type==="date"&&(Vr=Qo.encodeDate(Vr))),f?v("yanchor",t.yanchor=Ee(T+br)):(nt=function(xt){return Ee(Le(xt)+br)},ae&&ae.type==="date"&&(nt=Qo.encodeDate(nt))),v("path",t.path=iP(O,Vr,nt))}else if(u){if(fr==="resize-over-start-point"){var wr=d+Er,Yr=f?p-br:p+br;v("x0",t.x0=s?wr:Ue(wr)),v("y0",t.y0=f?Yr:Ee(Yr))}else if(fr==="resize-over-end-point"){var et=y+Er,Pe=f?m-br:m+br;v("x1",t.x1=s?et:Ue(et)),v("y1",t.y1=f?Pe:Ee(Pe))}}else{var or=function(tt){return fr.indexOf(tt)!==-1},st=or("n"),kt=or("s"),Ar=or("w"),rr=or("e"),ur=st?_+br:_,Hr=kt?x+br:x,ot=Ar?A+Er:A,Wr=rr?E+Er:E;f&&(st&&(ur=_-br),kt&&(Hr=x-br)),(!f&&Hr-ur>l||f&&ur-Hr>l)&&(v(M,t[M]=f?ur:Ee(ur)),v(k,t[k]=f?Hr:Ee(Hr))),Wr-ot>o&&(v(F,t[F]=s?ot:Ue(ot)),v(P,t[P]=s?Wr:Ue(Wr)))}r.attr("d",dA(e,t)),Je(n,t),P3(e,a,t,R)}function Je(Er,br){(s||f)&&zr();function zr(){var Vr=br.type!=="path",nt=Er.selectAll(".visual-cue").data([0]),wr=1;nt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Yr=se(s?br.xanchor:hA.midRange(Vr?[br.x0,br.x1]:Qo.extractPathCoords(br.path,Kh.paramIsX))),et=Le(f?br.yanchor:hA.midRange(Vr?[br.y0,br.y1]:Qo.extractPathCoords(br.path,Kh.paramIsY)));if(Yr=Qo.roundPositionForSharpStrokeRendering(Yr,wr),et=Qo.roundPositionForSharpStrokeRendering(et,wr),s&&f){var Pe="M"+(Yr-1-wr)+","+(et-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";nt.attr("d",Pe)}else if(s){var or="M"+(Yr-1-wr)+","+(et-9-wr)+"v18 h2 v-18 Z";nt.attr("d",or)}else{var st="M"+(Yr-9-wr)+","+(et-1-wr)+"h18 v2 h-18 Z";nt.attr("d",st)}}}function Ke(Er){Er.selectAll(".visual-cue").remove()}function Sr(Er,br,zr){var Vr=br.xref,nt=br.yref,wr=Qh.getFromId(zr,Vr),Yr=Qh.getFromId(zr,nt),et="";Vr!=="paper"&&!wr.autorange&&(et+=Vr),nt!=="paper"&&!Yr.autorange&&(et+=nt),N3.setClipUrl(Er,et?"clip"+zr._fullLayout._uid+et:null,zr)}}function iP(e,r,t){return e.replace(Kh.segmentRE,function(a){var n=0,i=a.charAt(0),o=Kh.paramIsX[i],l=Kh.paramIsY[i],s=Kh.numParams[i],f=a.slice(1).replace(Kh.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function D0e(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){oP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=oP,pA(e)}}}function oP(e){if(I3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(sP(e),delete e._fullLayout._activeShapeIndex,pA(e))}}function F0e(e){if(I3(e)){sP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var jl=Bt(),vP=_i(),hP=kn(),xa=A3(),R0e=O3().eraseActiveShape,B3=Ur(),la=B3._,_a=xP.exports={};_a.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:xa.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};B3.notifier(la(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),jl.call("downloadImage",e,t).then(function(a){B3.notifier(la(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){B3.notifier(la(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};_a.sendDataToCloud={name:"sendDataToCloud",title:function(e){return la(e,"Edit in Chart Studio")},icon:xa.disk,click:function(e){vP.sendDataToCloud(e)}};_a.editInChartStudio={name:"editInChartStudio",title:function(e){return la(e,"Edit in Chart Studio")},icon:xa.pencil,click:function(e){vP.sendDataToCloud(e)}};_a.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:xa.zoombox,click:go};_a.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:xa.pan,click:go};_a.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:xa.selectbox,click:go};_a.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:xa.lasso,click:go};_a.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:xa.drawclosedpath,click:go};_a.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:xa.drawopenpath,click:go};_a.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:xa.drawline,click:go};_a.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:xa.drawrect,click:go};_a.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:xa.drawcircle,click:go};_a.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:xa.eraseshape,click:R0e};_a.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:xa.zoom_plus,click:go};_a.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:xa.zoom_minus,click:go};_a.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:xa.autoscale,click:go};_a.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:xa.home,click:go};_a.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:xa.tooltip_basic,gravity:"ne",click:go};_a.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:xa.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=hP.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 _P=gA(),N0e=Object.keys(_P),wP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],AP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(wP),Xd=[],I0e=function(e){if(AP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Xd.indexOf(r)===-1&&Xd.push(r),Xd.indexOf(t)===-1&&Xd.push(t)}};N0e.forEach(function(e){I0e(_P[e])});Xd.sort();TP.exports={DRAW_MODES:wP,backButtons:AP,foreButtons:Xd}});var xA=N((cDe,MP)=>{"use strict";var uDe=bA();MP.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 EP=N((vDe,SP)=>{"use strict";var O0e=Ur(),Lm=ha(),B0e=Xa(),z0e=xA();SP.exports=function(r,t){var a=r.modebar||{},n=B0e.newContainer(t,"modebar");function i(l,s){return O0e.coerce(a,n,z0e,l,s)}i("orientation"),i("bgcolor",Lm.addOpacity(t.paper_bgcolor,.5));var o=Lm.contrast(Lm.rgb(t.modebar.bgcolor));i("color",Lm.addOpacity(o,.3)),i("activecolor",Lm.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var DP=N((hDe,LP)=>{"use strict";var _A=da(),G0e=ba(),G3=Ur(),kP=A3(),U0e=Pg().version,H0e=new DOMParser;function CP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var If=CP.prototype;If.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(),G3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};If.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)})};If.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};If.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&&_A.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||kP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};If.createIcon=function(e){var r=G0e(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=H0e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};If.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=_A.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:G3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};If.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var W0e=kn(),FP=qi(),wA=Bt(),j0e=Pu().isUnifiedHover,X0e=DP(),U3=gA(),Z0e=bA().DRAW_MODES,J0e=Ur().extendDeep;RP.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=tde(i):!a.displayModeBar&&a.watermark?o=[]:o=$0e(r),n?n.update(r,o):t._modeBar=X0e(r,o)};function $0e(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 oe=j.name,se=j._cat||j.name;if(oe===J||se===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"),(ede(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"]),K0e(t)&&R.push("select2d","lasso2d");var H=[],V=function(J){H.indexOf(J)===-1&&P.indexOf(J)!==-1&&H.push(J)};if(Array.isArray(l)){for(var ae=[],re=0;re{"use strict";PP.exports={moduleType:"component",name:"modebar",layoutAttributes:xA(),supplyLayoutDefaults:EP(),manage:qP()}});var TA=N((mDe,NP)=>{"use strict";var ade=ro().FROM_BL;NP.exports=function(r,t,a){a===void 0&&(a=ade[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 Fm=N(Dm=>{"use strict";var e0=Ur(),MA=qd(),Gs=kn().id2name,nde=Hl(),IP=TA(),ide=Z2(),ode=ri().ALMOST_EQUAL,lde=ro().FROM_BL;Dm.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 fde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oode*p&&!T)){for(i=0;iR&&oeP&&(P=oe);var Le=(P-F)/(2*O);c/=Le,F=s.l2r(F),P=s.l2r(P),s.range=s._input.range=E{"use strict";var V3=da(),bo=Bt(),Al=_i(),Xl=Ur(),kA=to(),CA=w3(),Rm=ha(),Zd=Ha(),GP=hm(),WP=AA(),qm=yn(),zu=ro(),jP=Fm(),ude=jP.enforce,cde=jP.clean,UP=qd().doAutoRange,XP="start",vde="middle",ZP="end",hde=ci().zindexSeparator;Ti.layoutStyles=function(e){return Xl.syncOrAsync([Al.doAutoMargin,pde],e)};function dde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function pde(e){var r=e._fullLayout,t=r._size,a=t.p,n=qm.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(Zd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ti.drawMainTitle(e),WP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c($e,ee,de){var ne=$e._lw/2;if($e._id.charAt(0)==="x"){if(ee){if(de==="top")return ee._offset-a-ne}else return t.t+t.h*(1-($e.position||0))+ne%1;return ee._offset+ee._length+a+ne}if(ee){if(de==="right")return ee._offset+ee._length+a+ne}else return t.l+t.w*($e.position||0)+ne%1;return ee._offset-a-ne}for(i=0;i0){bde(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:YP(r.yanchor)}).call(kA.positionText,o,i);var u=(r.text.match(kA.BR_TAG_ALL)||[]).length;if(u){var c=zu.LINE_SPACING*u+zu.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=V3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+GP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:YP(r.yanchor)}).call(kA.positionText,o,y)}}}};function mde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Xl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Xl.isTopAnchor(r)&&t==="t"||Xl.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=yde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function bde(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),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function xde(e,r){var t=e.title,a=e._size,n=0;switch(r===XP?n=t.pad.l:r===ZP&&(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 _de(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===zu.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 YP(e){return e==="top"?zu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":zu.MID_SHIFT+"em"}function wde(e){var r=e.title,t=vde;return Xl.isRightAnchor(r)?t=ZP:Xl.isLeftAnchor(r)&&(t=XP),t}function Ade(e){var r=e.title,t="0em";return Xl.isTopAnchor(r)?t=zu.CAP_SHIFT+"em":Xl.isMiddleAnchor(r)&&(t=zu.MID_SHIFT+"em"),t}Ti.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Tde=tv().readPaths,Mde=R3(),JP=Vc().clearOutlineControllers,LA=ha(),$P=Ha(),Sde=Xa().arrayEditor,QP=iv(),Ede=QP.getPathString;eN.exports={draw:W3,drawOne:KP,activateLastSelection:Lde};function W3(e){var r=e._fullLayout;JP(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(LA.stroke,c).call(LA.fill,u).call($P.dashLine,m?"solid":d,m?4+v:v);if(kde(b,e,a),p){var T=Sde(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=Tde(l,e);Mde(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 Cde(e,A)})}}function kde(e,r,t){var a=t.xref+t.yref;$P.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Cde(e,r){if(j3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){DA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=DA,W3(e)}}}function Lde(e){if(j3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=DA,W3(e)}}function DA(e){if(j3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(JP(e),delete e._fullLayout._activeSelectionIndex,W3(e))}}});var tN=N((xDe,rN)=>{function Dde(){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}rN.exports=Dde});var nN=N((_De,aN)=>{function Fde(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}aN.exports=Fde});var oN=N((wDe,iN)=>{var Rde={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}};iN.exports=Rde});var sN=N((ADe,lN)=>{var Pm=oN();function qde(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=Pm.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=Pm.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=Pm.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=Pm.create();function b(ae,re){var Q=ae.seg.start,J=ae.seg.end,j=re.seg.start,oe=re.seg.end;return r.pointsCollinear(Q,j,oe)?r.pointsCollinear(J,j,oe)||r.pointAboveOrOnLine(J,j,oe)?1:-1:r.pointAboveOrOnLine(Q,j,oe)?1:-1}function T(ae){return m.findTransition(function(re){var Q=b(ae,re.ev);return Q>0})}function _(ae,re){var Q=ae.seg,J=re.seg,j=Q.start,oe=Q.end,se=J.start,Le=J.end;t&&t.checkIntersection(Q,J);var Ue=r.linesIntersect(j,oe,se,Le);if(Ue===!1){if(!r.pointsCollinear(j,oe,se)||r.pointsSame(j,Le)||r.pointsSame(oe,se))return!1;var Ee=r.pointsSame(j,se),Ve=r.pointsSame(oe,Le);if(Ee&&Ve)return re;var we=!Ee&&r.pointBetween(j,se,Le),fr=!Ve&&r.pointBetween(oe,se,Le);if(Ee)return fr?v(re,oe):v(ae,Le),re;we&&(Ve||(fr?v(re,oe):v(ae,Le)),v(re,j))}else Ue.alongA===0&&(Ue.alongB===-1?v(ae,se):Ue.alongB===0?v(ae,Ue.pt):Ue.alongB===1&&v(ae,Le)),Ue.alongB===0&&(Ue.alongA===-1?v(re,j):Ue.alongA===0?v(re,Ue.pt):Ue.alongA===1&&v(re,oe));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let ae=function(){if(M){var re=_(A,M);if(re)return re}return k?_(A,k):!1};var V=ae;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=ae();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(Pm.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 Pde(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(V,ae,re){return u.index=V,u.matches_head=ae,u.matches_pt1=re,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Nm(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 Nde={union:function(e,r){return Nm(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Nm(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Nm(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Nm(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Nm(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};cN.exports=Nde});var dN=N((SDe,hN)=>{var Ide={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 Ode=tN(),Bde=nN(),pN=sN(),zde=uN(),Im=vN(),mN=dN(),Zl=!1,Om=Bde(),Ko;Ko={buildLog:function(e){return e===!0?Zl=Ode():e===!1&&(Zl=!1),Zl===!1?!1:Zl.list},epsilon:function(e){return Om.epsilon(e)},segments:function(e){var r=pN(!0,Om,Zl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=pN(!1,Om,Zl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Im.union(e.combined,Zl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Im.intersect(e.combined,Zl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Im.difference(e.combined,Zl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Im.differenceRev(e.combined,Zl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Im.xor(e.combined,Zl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zde(e.segments,Om,Zl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mN.toPolygon(Ko,e)},polygonToGeoJSON:function(e){return mN.fromPolygon(Ko,Om,e)},union:function(e,r){return Bm(e,r,Ko.selectUnion)},intersect:function(e,r){return Bm(e,r,Ko.selectIntersect)},difference:function(e,r){return Bm(e,r,Ko.selectDifference)},differenceRev:function(e,r){return Bm(e,r,Ko.selectDifferenceRev)},xor:function(e,r){return Bm(e,r,Ko.selectXor)}};function Bm(e,r,t){var a=Ko.segments(e),n=Ko.segments(r),i=Ko.combine(a,n),o=t(i);return Ko.polygon(o)}typeof window=="object"&&(window.PolyBool=Ko);yN.exports=Ko});var xN=N((kDe,bN)=>{bN.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 qA=N((CDe,_N)=>{"use strict";var RA=Qg().dot,X3=ri().BADNUM,Z3=_N.exports={};Z3.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===X3||bo||y&&f(p))}function c(p,y){var m=p[0],b=p[1];if(m===X3||mn||b===X3||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(RA(c,f))>n)return!0;return!1};Z3.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 AN=N((LDe,wN)=>{"use strict";wN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var YN=N((DDe,VN)=>{"use strict";var TN=gN(),Gde=xN(),Um=Bt(),Ude=Ha().dashStyle,zm=ha(),Hde=ev(),Vde=Pu().makeEventData,jm=rv(),Yde=jm.freeMode,Wde=jm.rectMode,Hm=jm.drawMode,OA=jm.openMode,BA=jm.selectMode,MN=iv(),SN=km(),DN=R3(),FN=Vc().clearOutline,RN=tv(),PA=RN.handleEllipse,jde=RN.readPaths,Xde=L3().newShapes,Zde=lA(),Jde=FA().activateLastSelection,$3=Ur(),$de=$3.sorterAsc,qN=qA(),Gm=v2(),Jl=kn().getFromId,Qde=w3(),Kde=Y3().redrawReglTraces,Q3=AN(),Of=Q3.MINSELECT,epe=qN.filter,zA=qN.tester,GA=S3(),EN=GA.p2r,rpe=GA.axValue,tpe=GA.getTransform;function UA(e){return e.subplot!==void 0}function ape(e,r,t,a,n){var i=!UA(a),o=Yde(n),l=Wde(n),s=OA(n),f=Hm(n),u=BA(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=tpe(_),A=r-T.left,E=t-T.top;y._calcInverseTransform(p);var M=$3.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],V=a.yaxes[0],ae=H._length,re=V._length,Q=e.altKey&&!(Hm(n)&&s),J,j,oe,se,Le,Ue,Ee;NN(e,p,a),o&&(J=epe([[A,E]],Q3.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 fr=f&&!s?we.fillcolor:"rgba(0,0,0,0)",Ie=we.line.color||(i?zm.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":Ude(we.line.dash,we.line.width),"stroke-width":we.line.width+"px","shape-rendering":"crispEdges"}).call(zm.stroke,Ie).call(zm.fill,fr).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var He=b.append("path").attr("class","zoombox-corners").style({fill:zm.background,stroke:zm.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var vr=b.select(".label-temp");vr.empty()&&(vr=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var $e=y._uid+Q3.SELECTID,ee=[],de=K3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var qe=H._id,Je=V._id;GN(p,qe,Je,de);for(var Ke=(p.layout||{}).selections||[],Sr=[],Er=!1,br=0;br=0){p._fullLayout._deactivateShape(p);return}if(!f){var Ke=y.clickmode;Gm.done($e).then(function(){if(Gm.clear($e),qe===2){for(Ve.remove(),Le=0;Le-1&&PN(Je,p,a.xaxes,a.yaxes,a.subplot,a,Ve),Ke==="event"&&Wm(p,void 0);Hde.click(p,Je,_.id)}).catch($3.error)}},a.doneFn=function(){He.remove(),Gm.done($e).then(function(){Gm.clear($e),!m&&se&&a.selectionDefs&&(se.subtract=Q,a.selectionDefs.push(se),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,oe)),(m||f)&&Vm(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&Wm(p,Ee)}).catch($3.error)}}function PN(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(spe(l)){NN(e,r,i),v=K3(r,t,a,n);var E=fpe(l,v),M=E.pointNumbers.length>0;if(M?upe(v,E):cpe(v)&&(T=CN(E))){for(o&&o.remove(),A=0;A=0}function lpe(e){return e._fullLayout._activeSelectionIndex>=0}function Vm(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;ope(n)&&n._fullLayout._deactivateShape(n),lpe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Hm(t),s=BA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=Xde(f,e)),u&&Um.call("_guiRelayout",n,{shapes:u});var c;s&&!UA(e)&&(c=Zde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Um.call("_guiRelayout",n,{selections:c}).then(function(){r&&Jde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function kN(e){return e._id}function K3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(kN),o=t.map(kN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function upe(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 Ym(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var qe=LN(e,!0);if(qe.length){var Je=qe[0].xref,Ke=qe[0].yref;if(Je&&Ke){var Sr=UN(qe),Er=HN([Jl(e,Je,"x"),Jl(e,Ke,"y")]);Er(ee,Sr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ne&&Wm(e,ee),v._reselect=!1}if(!o&&v._deselect){var br=v._deselect;l=br.xref,s=br.yref,dpe(l,s,u)||GN(e,l,s,a),ne&&(ee.points.length?Wm(e,ee):YA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function hpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";WN.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 Xm=N((RDe,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 Jd=N((PDe,JN)=>{"use strict";var XN=WA(),ZN=zi(),eb=ci(),bpe=Xa().templatedArray,qDe=Xm();JN.exports=bpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:ZN({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:XN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:XN.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",eb.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",eb.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",eb.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",eb.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:ZN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Zm=N((NDe,$N)=>{"use strict";$N.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var jA=N((IDe,QN)=>{"use strict";QN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var lv=N((ODe,oI)=>{"use strict";var KN=fm().axisHoverFormat,{hovertemplateAttrs:xpe,texttemplateAttrs:_pe,templatefallbackAttrs:eI}=cd(),rI=Nh(),wpe=zi(),tI=Pc().dash,Ape=Pc().pattern,Tpe=Ha(),Mpe=Zm(),Jm=zn().extendFlat,Spe=jA();function aI(e){return{valType:"any",dflt:0,editType:"calc"}}function nI(e){return{valType:"any",editType:"calc"}}function iI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}oI.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:aI("x"),yperiod:aI("y"),xperiod0:nI("x0"),yperiod0:nI("y0"),xperiodalignment:iI("x"),yperiodalignment:iI("y"),xhoverformat:KN("x"),yhoverformat:KN("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:_pe(),texttemplatefallback:eI({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:xpe({},{keys:Mpe.eventDataKeys}),hovertemplatefallback:eI(),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:Jm({},tI,{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:Spe(!0),fillgradient:Jm({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:Ape,marker:Jm({symbol:{valType:"enumerated",values:Tpe.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:Jm({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Jm({},tI,{arrayOk:!0}),editType:"calc"},rI("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"},rI("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:wpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var XA=N((zDe,fI)=>{"use strict";var lI=Jd(),sI=lv().line,Epe=Pc().dash,rb=zn().extendFlat,kpe=Rs().overrideAll,Cpe=Xa().templatedArray,BDe=Xm();fI.exports=kpe(Cpe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:rb({},lI.xref,{}),yref:rb({},lI.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:sI.color,width:rb({},sI.width,{min:1,dflt:1}),dash:rb({},Epe,{dflt:"dot"})}}),"arraydraw","from-root")});var hI=N((GDe,vI)=>{"use strict";var uI=Ur(),tb=yn(),Lpe=gl(),Dpe=XA(),cI=iv();vI.exports=function(r,t){Lpe(r,t,{name:"selections",handleItemDefaults:Fpe});for(var a=t.selections,n=0;n{"use strict";dI.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 $m=N((HDe,gI)=>{"use strict";var Rpe=Bt(),mI=Ur(),yI=kn();gI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Rpe.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 bI=FA(),Qm=YN();xI.exports={moduleType:"component",name:"selections",layoutAttributes:XA(),supplyLayoutDefaults:hI(),supplyDrawNewSelectionDefaults:pI(),includeBasePlot:$m()("selections"),draw:bI.draw,drawOne:bI.drawOne,reselect:Qm.reselect,prepSelect:Qm.prepSelect,clearOutline:Qm.clearOutline,clearSelectionsCache:Qm.clearSelectionsCache,selectOnClick:Qm.selectOnClick}});var GI=N((YDe,zI)=>{"use strict";var KA=da(),$l=Ur(),_I=$l.numberFormat,qpe=Ls(),Ppe=Dw(),ab=Bt(),LI=$l.strTranslate,Npe=to(),wI=ha(),sv=Ha(),Ipe=ev(),AI=yn(),Ope=Qc(),Bpe=Bs(),DI=rv(),nb=DI.selectingOrDrawing,zpe=DI.freeMode,Gpe=ro().FROM_TL,Upe=w3(),Hpe=Y3().redrawReglTraces,Vpe=_i(),JA=kn().getFromId,Ype=$d().prepSelect,Wpe=$d().clearOutline,jpe=$d().selectOnClick,ZA=TA(),e6=ci(),TI=e6.MINDRAG,Po=e6.MINZOOM,MI=!0;function Xpe(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,V,ae,re,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 rr=r.overlays,ur=0;ur=0){Hr._fullLayout._deactivateShape(Hr);return}var ot=Hr._fullLayout.clickmode;if(QA(Hr),rr===2&&!u&&et(),f)ot.indexOf("select")>-1&&jpe(ur,Hr,y,m,r.id,se),ot.indexOf("event")>-1&&Ipe.click(Hr,ur,r.id);else if(rr===1&&u){var Wr=o?v:c,tt=o==="s"||l==="w"?0:1,xt=Wr._name+".range["+tt+"]",jr=Zpe(Wr,tt),at="left",gr="middle";if(Wr.fixedrange)return;o?(gr=o==="n"?"top":"bottom",Wr.side==="right"&&(at="right")):l==="e"&&(at="right"),Hr._context.showAxisRangeEntryBoxes&&KA.select(oe).call(Npe.makeEditable,{gd:Hr,immediate:!0,background:Hr._fullLayout.paper_bgcolor,text:String(jr),fill:Wr.tickfont?Wr.tickfont.color:"#444",horizontalAlign:at,verticalAlign:gr}).on("edit",function(Se){var Oe=Wr.d2r(Se);Oe!==void 0&&ab.call("_guiRelayout",Hr,xt,Oe)})}}Bpe.init(se);var Ee,Ve,we,fr,Ie,He,vr,$e,ee,de;function ne(rr,ur,Hr){var ot=oe.getBoundingClientRect();Ee=ur-ot.left,Ve=Hr-ot.top,e._fullLayout._calcInverseTransform(e);var Wr=$l.apply3DTransform(e._fullLayout._invTransform)(Ee,Ve);Ee=Wr[0],Ve=Wr[1],we={l:Ee,r:Ee,w:0,t:Ve,b:Ve,h:0},fr=e._hmpixcount?e._hmlumcount/e._hmpixcount:qpe(e._fullLayout.plot_bgcolor).getLuminance(),Ie="M0,0H"+_+"V"+x+"H0V0",He=!1,vr="xy",de=!1,$e=qI(s,fr,b,T,Ie),ee=PI(s,b,T)}function qe(rr,ur){if(e._transitioningWithDuration)return!1;var Hr=Math.max(0,Math.min(_,re*rr+Ee)),ot=Math.max(0,Math.min(x,Q*ur+Ve)),Wr=Math.abs(Hr-Ee),tt=Math.abs(ot-Ve);we.l=Math.min(Ee,Hr),we.r=Math.max(Ee,Hr),we.t=Math.min(Ve,ot),we.b=Math.max(Ve,ot);function xt(){vr="",we.r=we.l,we.t=we.b,ee.attr("d","M0,0Z")}if(A.isSubplotConstrained)Wr>Po||tt>Po?(vr="xy",Wr/_>tt/x?(tt=Wr*x/_,Ve>ot?we.t=Ve-tt:we.b=Ve+tt):(Wr=tt*_/x,Ee>Hr?we.l=Ee-Wr:we.r=Ee+Wr),ee.attr("d",ib(we))):xt();else if(E.isSubplotConstrained)if(Wr>Po||tt>Po){vr="xy";var jr=Math.min(we.l/_,(x-we.b)/x),at=Math.max(we.r/_,(x-we.t)/x);we.l=jr*_,we.r=at*_,we.b=(1-jr)*x,we.t=(1-at)*x,ee.attr("d",ib(we))}else xt();else!k||tt0){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 $pe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function qI(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",LI(t,a)).attr("d",n+"Z")}function PI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:wI.background,stroke:wI.defaultLine,"stroke-width":1,opacity:0}).attr("transform",LI(r,t)).attr("d","M0,0Z")}function NI(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"),II(e,r,n,i)}function II(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 QA(e){KA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function OI(e){MI&&e.data&&e._context.showTips&&($l.notifier($l._(e,"Double-click to zoom back out"),"long"),MI=!1)}function Qpe(e,r){return"M"+(e.l-.5)+","+(r-Po-.5)+"h-3v"+(2*Po+1)+"h3ZM"+(e.r+.5)+","+(r-Po-.5)+"h3v"+(2*Po+1)+"h-3Z"}function Kpe(e,r){return"M"+(r-Po-.5)+","+(e.t-.5)+"v-3h"+(2*Po+1)+"v3ZM"+(r-Po-.5)+","+(e.b+.5)+"v3h"+(2*Po+1)+"v-3Z"}function ib(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Po)/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 kI(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 e1e=da(),ob=ev(),r1e=Bs(),t1e=Qc(),Us=GI().makeDragBox,Mi=ci().DRAGGERSIZE;lb.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){e1e.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]&&ob.hover(r,v,i)},ob.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,r1e.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,ob.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,ob.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},lb.updateFx(r)}};lb.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";t1e(r._draggers,t)}});var VI=N((jDe,HI)=>{"use strict";var UI=Bt();HI.exports=function(r){for(var t=UI.layoutArrayContainers,a=UI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var a1e=Fc(),t6=$g(),Km=Sh(),n1e=Z5().sorterAsc,a6=Bt();ey.containerArrayMatch=VI();var i1e=ey.isAddVal=function(r){return r==="add"||a1e(r)},YI=ey.isRemoveVal=function(r){return r===null||r==="remove"};ey.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=a6.getComponentMethod(o,"supplyLayoutDefaults"),s=a6.getComponentMethod(o,"draw"),f=a6.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===t6||s===t6,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Km.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(YI(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Km.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(n1e),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)){Km.warn("index out of range",o,M);continue}if(P!==void 0)F.length>1&&Km.warn("Insertion & removal are incompatible with edits to the same index.",o,M),YI(P)?T.push(M):O?(P==="add"&&(P={}),m.splice(M,0,P),b&&b.splice(M,0,{})):Km.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!==t6){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 JI=ba(),$I=Bt(),xo=Ur(),ry=_i(),QI=kn(),KI=ha(),ty=QI.cleanId,o1e=QI.getFromTrace,n6=$I.traceIs,l1e=["x","y","z"];Ql.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&xo.log("Clearing previous rejected promises from queue."),e._promises=[]};Ql.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=(ry.subplotsRegistry.cartesian||{}).attrRegex,n=(ry.subplotsRegistry.polar||{}).attrRegex,i=(ry.subplotsRegistry.ternary||{}).attrRegex,o=(ry.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"),KI.clean(e),e.template&&e.template.layout&&Ql.cleanLayout(e.template.layout),e};function Qd(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=ty(a,n,!0))}Ql.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ql.hasParent=function(e,r){for(var t=ZI(r);t;){if(t in e)return!0;t=ZI(t)}return!1};Ql.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>xo.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;axo.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)?i6(n,i):!1))return!1}return!0}return!1};Ql.collectionsAreEqual=i6});var c6=N(pa=>{"use strict";var cb=da(),u1e=ba(),c1e=s4(),bt=Ur(),rn=bt.nestedProperty,s6=tm(),No=PC(),Kl=Bt(),gb=Ad(),zt=_i(),_o=yn(),v1e=Lw(),h1e=Hl(),o6=Ha(),d1e=ha(),p1e=r6().initInteractions,m1e=Yc(),y1e=$d().clearOutline,iO=Mh().dfltConfig,fb=WI(),Wn=eO(),Oa=Y3(),fv=Rs(),g1e=ci().AX_NAME_PATTERN,l6=0,rO=5;function b1e(e,r,t,a){var n;if(e=bt.getGraphDiv(e),s6.init(e),bt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=s6.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 pa.addFrames(e,n)}lO(e,a),t||(t={}),cb.select(e).classed("js-plotly-plot",!0),o6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Wn.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(U1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),o6.initGradients(e),o6.initPatterns(e),s&&_o.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 sO(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]),hb(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&hb(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function T1e(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,V=k.parts.slice(0,O).join("."),ae=rn(e.layout,V).get(),re=rn(a,V).get(),Q=k.get();if(F!==void 0){b[M]=F,T[M]=R==="reverse"?F:Gu(Q);var J=gb.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 oe=M==="height"?"width":"height";_(oe,a[oe])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(yO))E(H),rn(a,V+"._inputRange").set(null);else if(H.match(gO)){E(H),rn(a,V+"._inputRange").set(null);var se=rn(a,V).get();se._inputDomain&&(se._input.domain=se._inputDomain.slice())}else H.match(k1e)&&rn(a,V+"._inputDomain").set(null);if(R==="type"){A=ae;var Le=re.type==="linear"&&F==="log",Ue=re.type==="log"&&F==="linear";if(Le||Ue){if(!A||!A.range)_(V+".autorange",!0);else if(re.autorange)Le&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ee=A.range[0],Ve=A.range[1];Le?(Ee<=0&&Ve<=0&&_(V+".autorange",!0),Ee<=0?Ee=Ve/1e6:Ve<=0&&(Ve=Ee/1e6),_(V+".range[0]",Math.log(Ee)/Math.LN10),_(V+".range[1]",Math.log(Ve)/Math.LN10)):(_(V+".range[0]",Math.pow(10,Ee)),_(V+".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"],Kl.getComponentMethod("annotations","convertCoords")(e,re,F,_),Kl.getComponentMethod("images","convertCoords")(e,re,F,_)}else _(V+".autorange",!0),_(V+".range",null);rn(a,V+"._inputRange").set(null)}else if(R.match(g1e)){var we=rn(a,M).get(),fr=(F||{}).type;(!fr||fr==="-")&&(fr="linear"),Kl.getComponentMethod("annotations","convertCoords")(e,we,fr,_),Kl.getComponentMethod("images","convertCoords")(e,we,fr,_)}var Ie=fb.containerArrayMatch(M);if(Ie){u=Ie.array,c=Ie.index;var He=Ie.property,vr=J||{editType:"calc"};c!==""&&He===""&&(fb.isAddVal(F)?T[M]=null:fb.isRemoveVal(F)?T[M]=(rn(t,u).get()||[])[c]:bt.warn("unrecognized full object value",r)),fv.update(m,vr),f[u]||(f[u]={});var $e=f[u][c];$e||($e=f[u][c]={}),$e[He]=F,delete r[M]}else R==="reverse"?(ae.range?ae.range.reverse():(_(V+".autorange",!0),ae.range=[1,0]),re.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 ee=fb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var de in x){A=_o.getFromId(e,de);var ne=A&&A._constraintGroup;if(ne){m.calc=!0;for(var qe in ne)x[qe]||(_o.getFromId(e,qe)._constraintShrinkable=!0)}}(xO(e)||r.height||r.width)&&(m.plot=!0);var Je=a.shapes;for(c=0;c1;)if(a.pop(),t=rn(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function D1e(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=pa.newPlot(e,r,t,a).then(()=>{for(let[V,ae]of H)ae.forEach(re=>e.on(V,re));return pa.react(e,r,t,a)})}else{e.data=r||[],Wn.cleanData(e.data),e.layout=t||{},Wn.cleanLayout(e.layout),R1e(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=N1e(e,s,v,d,p),m=y.newDataRevision,b=P1e(e,l,c,d,p,m);if(xO(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 P1e(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=gb.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 O1e(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&&l6k.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 No&&No.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),s6.purge(e),r._container&&r._container.remove(),delete e._context,e}function G1e(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 U1e(e){var r=cb.select(e),t=e._fullLayout;if(t._calcInverseTransform=G1e,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={};cb.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")}pa.animate=I1e;pa.addFrames=O1e;pa.deleteFrames=B1e;pa.addTraces=hO;pa.deleteTraces=dO;pa.extendTraces=cO;pa.moveTraces=f6;pa.prependTraces=vO;pa.newPlot=A1e;pa._doPlot=b1e;pa.purge=z1e;pa.react=q1e;pa.redraw=w1e;pa.relayout=ay;pa.restyle=db;pa.setPlotConfig=x1e;pa.update=mb;pa._guiRelayout=u6(ay);pa._guiRestyle=u6(db);pa._guiUpdate=u6(mb);pa._storeDirectGUIEdit=E1e});var r0=N(Bf=>{"use strict";var H1e=Bt();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){H1e.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _O=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return _O.createObjectURL(e)};Bf.revokeObjectURL=function(e){return _O.revokeObjectURL(e)};Bf.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=V1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function V1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var h6=da(),QDe=Ur(),Y1e=Ha(),W1e=ha(),KDe=Yc(),v6=/"/g,iy="TOBESTRIPPED",j1e=new RegExp('("'+iy+")|("+iy+'")',"g");function X1e(e){var r=h6.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 Z1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}wO.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(Y1e.setRect,0,0,l,s).call(W1e.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var J1e=Ur(),$1e=b2().EventEmitter,oy=r0();function Q1e(e){var r=e.emitter||new $1e,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"||J1e.isSafari()?b=oy.encodeSVG(o):(m=oy.createBlob(o,"svg"),b=oy.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,oy.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,oy.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},y.src=b});return e.promise?t:r}AO.exports=Q1e});var p6=N((tFe,SO)=>{"use strict";var TO=ba(),MO=c6(),K1e=_i(),zf=Ur(),ly=r0(),eme=xb(),rme=_b(),tme=Pg().version,d6={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 ame(e,r){r=r||{};var t,a,n,i;zf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=zf.getGraphDiv(e),t=zf.extendDeep([],e.data),a=zf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||zf.validate(r[E],d6[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 "+zf.join2(d6.format.values,", "," or ")+".");var l={};function s(E,M){return zf.coerce(r,l,d6,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=zf.extendFlat({},a);u?m.width=u:r.width===null&&TO(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&TO(i.height)&&(m.height=i.height);var b=zf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=ly.getRedrawFunc(y);function _(){return new Promise(function(E){setTimeout(E,ly.getDelay(y._fullLayout))})}function x(){return new Promise(function(E,M){var k=eme(y,f,v),F=y._fullLayout.width,P=y._fullLayout.height;function O(){MO.purge(y),document.body.removeChild(y)}if(f==="full-json"){var R=K1e.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=tme,R=JSON.stringify(R),O(),E(p?R:ly.encodeJSON(R))}if(O(),f==="svg")return E(p?k:ly.encodeSVG(k));var H=document.createElement("canvas");H.id=zf.randstr(),rme({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(ly.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,M){MO.newPlot(y,t,m,b).then(T).then(_).then(x).then(function(k){E(A(k))}).catch(function(k){M(k)})})}SO.exports=ame});var CO=N((aFe,kO)=>{"use strict";var es=Ur(),nme=_i(),ime=Ad(),ome=Mh().dfltConfig,Hs=es.isPlainObject,a0=Array.isArray,m6=es.isArrayOrTypedArray;kO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=ime.get(),n=[],i={_context:es.extendFlat({},ome)},o,l;a0(r)?(i.data=es.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Si("array","data"))),Hs(t)?(i.layout=es.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Si("object","layout"))),nme.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(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(Si("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][_],es.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 hme=Ur(),Ab=r0();function dme(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=Ab.createBlob(e,t),f=Ab.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Ab.revokeObjectURL(f),s=null,o(r);if(hme.isSafari()){var u=t==="svg"?",":";base64,";return Ab.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}LO.exports=dme});var y6=N((oFe,RO)=>{"use strict";var FO=Ur(),pme=p6(),mme=DO(),iFe=r0();function yme(e,r){var t;return FO.isPlainObject(e)||(t=FO.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=pme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),mme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}RO.exports=yme});var OO=N(g6=>{"use strict";var el=Ur(),rl=el.isPlainObject,qO=Ad(),PO=_i(),gme=Ds(),NO=Xa(),IO=Mh().dfltConfig;g6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:IO},{data:e.data,layout:e.layout}),PO.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={};sy(d,p,xme.bind(null,d));var y=el.coerce(d,{},gme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),sy(t,a.layout,bme.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&Tb(i,a.layout);var v=n.data;if(rl(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=rs(_,A,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),T(E,M)):Array.isArray(E)&&_me(E)&&T(E,M)}}if(T({data:s,layout:l},""),o.length)return o.map(wme)};function _me(e){for(var r=0;r{"use strict";var vi=c6();bn._doPlot=vi._doPlot;bn.newPlot=vi.newPlot;bn.restyle=vi.restyle;bn.relayout=vi.relayout;bn.redraw=vi.redraw;bn.update=vi.update;bn._guiRestyle=vi._guiRestyle;bn._guiRelayout=vi._guiRelayout;bn._guiUpdate=vi._guiUpdate;bn._storeDirectGUIEdit=vi._storeDirectGUIEdit;bn.react=vi.react;bn.extendTraces=vi.extendTraces;bn.prependTraces=vi.prependTraces;bn.addTraces=vi.addTraces;bn.deleteTraces=vi.deleteTraces;bn.moveTraces=vi.moveTraces;bn.purge=vi.purge;bn.addFrames=vi.addFrames;bn.deleteFrames=vi.deleteFrames;bn.animate=vi.animate;bn.setPlotConfig=vi.setPlotConfig;var Ame=X1().getGraphDiv,Tme=O3().eraseActiveShape;bn.deleteActiveShape=function(e){return Tme(Ame(e))};bn.toImage=p6();bn.validate=CO();bn.downloadImage=y6();var BO=OO();bn.makeTemplate=BO.makeTemplate;bn.validateTemplate=BO.validateTemplate});var x6=N((fFe,GO)=>{"use strict";var b6=Ur(),Mme=Bt();GO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Mme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=b6.minRowLength(i);o?l=Math.min(f,b6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=b6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var _6=N((uFe,VO)=>{"use strict";var UO=Ur().dateTick0,Sme=ri(),Eme=Sme.ONEWEEK;function HO(e,r){return e%Eme===0?UO(r,1):UO(r,0)}VO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",HO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",HO(l,t.ycalendar)),n("yperiodalignment"))}}});var jO=N((cFe,WO)=>{"use strict";var YO=["orientation","groupnorm","stackgaps"];WO.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 XO=ha(),ZO=Is().hasColorscale,JO=Ed(),kme=qi();$O.exports=function(r,t,a,n,i,o={}){var l=kme.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),ZO(r,"marker")&&JO(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=XO.background:f=XO.defaultLine,i("marker.line.color",f),ZO(r,"marker.line")&&JO(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 w6=N((hFe,QO)=>{"use strict";var Cme=Ur().isArrayOrTypedArray,Lme=Is().hasColorscale,Dme=Ed();QO.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),Lme(r,"line"))Dme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Cme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var eB=N((dFe,KO)=>{"use strict";KO.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var A6=N((pFe,rB)=>{"use strict";var Fme=Ur();rB.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Fme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var T6=N((mFe,aB)=>{"use strict";var Eb=ha(),tB=Ur().isArrayOrTypedArray;function Rme(e){for(var r=Eb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var nB=Ur(),qme=Bt(),Pme=lv(),Nme=Zm(),Kd=qi(),Ime=x6(),Ome=_6(),Bme=jO(),zme=Sb(),Gme=w6(),iB=eB(),Ume=A6(),Hme=T6(),Vme=Ur().coercePattern;oB.exports=function(r,t,a,n){function i(d,p){return nB.coerce(r,t,Pme,d,p)}var o=Ime(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Ome(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Bme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Yme=Fm().getAxisGroup;sB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Yme(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 M6=N((bFe,uB)=>{"use strict";var Wme=Ur(),jme=fB(),Xme=lv();uB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Wme.coerce(n._input,n,Xme,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 vB=N((xFe,cB)=>{"use strict";var Zme=Ur(),Jme=T2();cB.exports=function(e,r){function t(n,i){return Zme.coerce(e,r,Jme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var S6=N((_Fe,dB)=>{"use strict";var $me=ba(),hB=Ur(),Qme=hB.dateTime2ms,kb=hB.incrementMonth,Kme=ri(),eye=Kme.ONEAVGMONTH;dB.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($me(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=Qme(v,f)||0,p=[],y=[],m=[],b=n.length,T=0;T_;)E=kb(E,-l,f);for(;E<=_;)E=kb(E,l,f);A=kb(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 fy=N((wFe,mB)=>{"use strict";var E6=Is().hasColorscale,k6=H4(),pB=qi();mB.exports=function(r,t){pB.hasLines(t)&&E6(t,"line")&&k6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),pB.hasMarkers(t)&&(E6(t,"marker")&&k6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),E6(t,"marker.line")&&k6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var C6=N((AFe,yB)=>{"use strict";var qn=Ur();yB.exports=function(r,t){for(var a=0;a{"use strict";var gB=Ur();bB.exports=function(r,t){gB.isArrayOrTypedArray(t.selectedpoints)&&gB.tagSelected(r,t)}});var ep=N((MFe,EB)=>{"use strict";var _B=ba(),D6=Ur(),uy=yn(),wB=S6(),L6=ri().BADNUM,F6=qi(),rye=fy(),tye=C6(),aye=xB();function nye(e,r){var t=e._fullLayout,a=r._xA=uy.getFromId(e,r.xaxis||"x","x"),n=r._yA=uy.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=wB(r,a,"x",i),s=wB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=R6(r,t,a,n),y=!1,m,b,T,_,x,A;MB(t,r);var E="x",M="y",k;if(p)D6.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=TB(r,c);AB(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 ae=v[b-1][k],re=v[b-1].s,Q=(v[T].s-re)/(v[T][k]-ae);b{"use strict";kB.exports=Cb;var iye=Ur().distinctVals;function Cb(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";LB.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var NB=N((kFe,PB)=>{"use strict";var ts=ba(),{isArrayOrTypedArray:Uu}=Ur(),{BADNUM:rp}=ri(),oye=Bt(),cy=yn(),{getAxisGroup:lye}=Fm(),Lb=CB(),{TEXTPAD:sye}=DB(),{LINE_SPACING:fye}=ro(),{BR_TAG_ALL:uye}=to();function cye(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||!ts(l))}for(var u=0;ua(i))):a(e.text);let n=e.outsidetextfont.size*fye*t+sye;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 _ye(e,r,t,a){for(var n=tp(a),i=0;i{"use strict";var IB=ep(),OB=NB().setGroupPositions;function Aye(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 Mye=Ha(),VB=ri(),vy=VB.BADNUM,YB=VB.LOG_CLIP,GB=YB+.5,UB=YB-.5,Db=Ur(),Sye=Db.segmentsIntersect,HB=Db.constrain,z6=Zm();WB.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=z6.minTolerance,_=r.length,x=new Array(_),A=0,E,M,k,F,P,O,R,H,V,ae,re,Q,J,j,oe,se;function Le(gr){var Se=r[gr];if(!Se)return!1;var Oe=t.linearized?n.l2p(Se.x):n.c2p(Se.x),pr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Oe===vy){if(o&&(Oe=n.c2p(Se.x,!0)),Oe===vy)return!1;l&&pr===vy&&(Oe*=Math.abs(n._m*f*(n._m>0?GB:UB)/(i._m*s*(i._m>0?GB:UB)))),Oe*=1e3}if(pr===vy){if(l&&(pr=i.c2p(Se.y,!0)),pr===vy)return!1;pr*=1e3}return[Oe,pr]}function Ue(gr,Se,Oe,pr){var _r=Oe-gr,ht=pr-Se,Tt=.5-gr,wt=.5-Se,Ot=_r*_r+ht*ht,ta=_r*Tt+ht*wt;if(ta>0&&ta1||Math.abs(Tt.y-Oe[0][1])>1)&&(Tt=[Tt.x,Tt.y],pr&&fr(Tt,gr)vr||gr[1]<$e||gr[1]>ee)return[HB(gr[0],He,vr),HB(gr[1],$e,ee)]}function Vr(gr,Se){if(gr[0]===Se[0]&&(gr[0]===He||gr[0]===vr)||gr[1]===Se[1]&&(gr[1]===$e||gr[1]===ee))return!0}function nt(gr,Se){var Oe=[],pr=zr(gr),_r=zr(Se);return pr&&_r&&Vr(pr,_r)||(pr&&Oe.push(pr),_r&&Oe.push(_r)),Oe}function wr(gr,Se,Oe){return function(pr,_r){var ht=zr(pr),Tt=zr(_r),wt=[];if(ht&&Tt&&Vr(ht,Tt))return wt;ht&&wt.push(ht),Tt&&wt.push(Tt);var Ot=2*Db.constrain((pr[gr]+_r[gr])/2,Se,Oe)-((ht||pr)[gr]+(Tt||_r)[gr]);if(Ot){var ta;ht&&Tt?ta=Ot>0==ht[gr]>Tt[gr]?ht:Tt:ta=ht||Tt,ta[gr]+=Ot}return wt}}var Yr;p==="linear"||p==="spline"?Yr=br:p==="hv"||p==="vh"?Yr=nt:p==="hvh"?Yr=wr(0,He,vr):p==="vhv"&&(Yr=wr(1,$e,ee));function et(gr,Se){var Oe=Se[0]-gr[0],pr=(Se[1]-gr[1])/Oe,_r=(gr[1]*Se[0]-Se[1]*gr[0])/Oe;return _r>0?[pr>0?He:vr,ee]:[pr>0?vr:He,$e]}function Pe(gr){var Se=gr[0],Oe=gr[1],pr=Se===x[A-1][0],_r=Oe===x[A-1][1];if(!(pr&&_r))if(A>1){var ht=Se===x[A-2][0],Tt=Oe===x[A-2][1];pr&&(Se===He||Se===vr)&&ht?Tt?A--:x[A-1]=gr:_r&&(Oe===$e||Oe===ee)&&Tt?ht?A--:x[A-1]=gr:x[A++]=gr}else x[A++]=gr}function or(gr){x[A-1][0]!==gr[0]&&x[A-1][1]!==gr[1]&&Pe([Je,Ke]),Pe(gr),Sr=null,Je=Ke=0}var st=Db.isArrayOrTypedArray(c);function kt(gr){if(gr&&u&&(gr.i=E,gr.d=r,gr.trace=a,gr.marker=st?c[gr.i]:c,gr.backoff=u),Ee=gr[0]/s,Ve=gr[1]/f,ne=gr[0]vr?vr:0,qe=gr[1]<$e?$e:gr[1]>ee?ee:0,ne||qe){if(!A)x[A++]=[ne||gr[0],qe||gr[1]];else if(Sr){var Se=Yr(Sr,gr);Se.length>1&&(or(Se[0]),x[A++]=Se[1])}else Er=Yr(x[A-1],gr)[0],x[A++]=Er;var Oe=x[A-1];ne&&qe&&(Oe[0]!==ne||Oe[1]!==qe)?(Sr&&(Je!==ne&&Ke!==qe?Pe(Je&&Ke?et(Sr,gr):[Je||ne,Ke||qe]):Je&&Ke&&Pe([Je,Ke])),Pe([ne,qe])):Je-ne&&Ke-qe&&Pe([ne||Je,qe||Ke]),Sr=gr,Je=ne,Ke=qe}else Sr&&or(Yr(Sr,gr)[0]),x[A++]=gr}for(E=0;E<_;E++)if(M=Le(E),!!M){for(A=0,Sr=null,kt(M),E++;E<_;E++){if(F=Le(E),!F){if(v)continue;break}if(!y||!t.simplify){kt(F);continue}var Ar=Le(E+1);if(ae=fr(F,M),!(!(m&&(A===0||A===_-1))&&aewe(O,Ar))break;k=O,J=V[0]*H[0]+V[1]*H[1],J>re?(re=J,F=O,R=!1):J=r.length||!O)break;kt(O),M=O}}Sr&&Pe([Je||Sr[0],Ke||Sr[1]]),b.push(x.slice(0,A))}var rr=p.slice(p.length-1);if(u&&rr!=="h"&&rr!=="v"){for(var ur=!1,Hr=-1,ot=[],Wr=0;Wr{"use strict";var XB={tonextx:1,tonexty:1,tonext:1};ZB.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=da(),Eye=Bt(),hy=Ur(),ap=hy.ensureSingle,$B=hy.identity,In=Ha(),np=qi(),kye=jB(),Cye=G6(),Fb=qA().tester;QB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=Cye(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(),Lye(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){JB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){JB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Lye(e,r,t){r.each(function(a){var n=ap(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,$B);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=ap(Vs.select(this),"path","js-fill")})})}function JB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Dye(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=ap(y,"g","errorbars"),b=ap(y,"g","lines"),T=ap(y,"g","points"),_=ap(y,"g","text");if(Eye.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 V,ae,re="",Q="",J,j,oe,se,Le,Ue,Ee=[];d._polygons=[];var Ve=[],we=[],fr=hy.noop;if(x=d._ownFill,np.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 Yr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Yr[0]&&wr[0][1]===Yr[1]?In.smoothclosed(wr.slice(1),p.smoothing):In.smoothopen(wr,p.smoothing)}:J=j=function(wr){return"M"+wr.join("L")},oe=function(wr){return j(wr.reverse())},we=kye(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 Ie=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;np.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";ez.exports={container:"marker",min:"cmin",max:"cmax"}});var U6=N((qFe,rz)=>{"use strict";var qb=yn();rz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=qb.getFromTrace(i,t,"x"),l=qb.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=qb.tickText(o,o.c2l(s),!0).text,n.yLabel=qb.tickText(l,l.c2l(f),!0).text,n}});var W6=N((PFe,tz)=>{"use strict";var H6=da(),ip=Ha(),Fye=Bt();function Rye(e){var r=H6.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=H6.select(this),n=t.trace||t[0].trace;V6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=H6.select(this),n=t.trace||t[0].trace;Y6(a,n,e)}),r.selectAll("g.trace path.js-line").call(ip.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ip.fillGroupStyle,e,!1),Fye.getComponentMethod("errorbars","style")(r)}function V6(e,r,t){ip.pointStyle(e.selectAll("path.point"),r,t)}function Y6(e,r,t){ip.textPointStyle(e.selectAll("text"),r,t)}function qye(e,r,t){var a=r[0].trace;a.selectedpoints?(ip.selectedPointStyle(t.selectAll("path.point"),a),ip.selectedTextStyle(t.selectAll("text"),a)):(V6(t,a,e),Y6(t,a,e))}tz.exports={style:Rye,stylePoints:V6,styleText:Y6,styleOnSelect:qye}});var j6=N((NFe,az)=>{"use strict";var op=ha(),Pye=qi();az.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&op.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&&op.opacity(i)?i:o&&op.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?op.opacity(n)<.3?op.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&op.opacity(a)&&Pye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var oz=N((IFe,iz)=>{"use strict";var Pb=Ur(),nz=ev(),Nye=Bt(),Iye=j6(),X6=ha(),Oye=Pb.fillText;iz.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 oe=Math.max(3,Q.mrc||0),se=1-1/oe,Le=Math.abs(l.c2p(Q.x)-f);return Le=Math.min(J,j)&&u<=Math.max(J,j)?0:1/0}var oe=Math.max(3,Q.mrc||0),se=1-1/oe,Le=Math.abs(s.c2p(Q.y)-u);return LeEe!=ee>=Ee&&(He=fr[we-1][0],vr=fr[we][0],ee-$e&&(Ie=He+(vr-He)*(Ee-$e)/(ee-$e),oe=Math.min(oe,Ie),se=Math.max(se,Ie)));return oe=Math.max(oe,0),se=Math.min(se,l._length),{x0:oe,x1:se,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var V=R(o._fillElement)&&!R(o._fillExclusionElement);if(V){var ae=H(o._polygons);ae===null&&(ae={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var re=X6.defaultLine;return X6.opacity(o.fillcolor)?re=o.fillcolor:X6.opacity((o.line||{}).color)&&(re=o.line.color),Pb.extendFlat(r,{distance:r.maxHoverDistance,x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!Pb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var fz=N((OFe,sz)=>{"use strict";var lz=qi();sz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!lz.hasMarkers(l)&&!lz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";uz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var pz=N((zFe,dz)=>{"use strict";var dy=Bt().traceIs,Z6=fw();dz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Bye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Bye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=zye(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:!dy(i,"cartesian")||dy(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,hz(i,a)){var f=vz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(hz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function vz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function hz(e,r){var t=vz(e),a=dy(e,"box-violin"),n=dy(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var yz=N((GFe,mz)=>{"use strict";var Gye=Wo().isTypedArraySpec;function Uye(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||Gye(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=Uye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var xz=N((UFe,bz)=>{"use strict";var gz=Ls().mix,Hye=Mf(),Vye=Ur();bz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return Vye.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=gz(i,n.bgColor,n.blend||Hye.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=gz(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 $6=N((HFe,Sz)=>{"use strict";var _z=ba(),Yye=Bt(),py=Ur(),Wye=Xa(),jye=gl(),J6=Hl(),wz=F4(),Az=q4(),Xye=I4(),Zye=O4(),Jye=yz(),$ye=xz(),Qye=Lw(),Tz=Z2(),Nb=ci().WEEKDAY_PATTERN,Kye=ci().HOUR_PATTERN;Sz.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=Yye.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=py.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"),Tz(t,i),Qye(r,t,a,n),Jye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==J6.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(Zye(r,t,a,c,n),!f)return t;a("title.text",b),py.coerceFont(a,"title.font",l,{overrideDflt:{size:py.bigFont(l.size),color:m}}),wz(r,t,a,c);var T=n.hasMinor;if(T&&(Wye.newContainer(t,"minor"),wz(r,t,a,c,{isMinor:!0})),Xye(r,t,a,c,n),Az(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Az(r,t,a,n),n.isMinor=_}$ye(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:J6}),T&&!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:ege}),!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=Mz(i[l]),s){o=Nb;break}}var f=a("pattern",o);if(f===Nb)for(l=0;l<2;l++)s=Mz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case Nb:if(!_z(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 Kye:if(!_z(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 tge=ba(),Ib=Ur();Ez.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||(tge(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Ib.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Ib.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&&(_=Ib.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),Ib.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Nz=N((YFe,Pz)=>{"use strict";var n0=Ur(),kz=ha(),age=Pu().isUnifiedHover,nge=aA(),Cz=Xa(),ige=vd(),Lz=Hl(),oge=pz(),Dz=$6(),lge=Fm(),Fz=Q6(),eT=kn(),Gf=eT.id2name,Rz=eT.name2id,sge=ci().AX_ID_PATTERN,qz=Bt(),Ob=qz.traceIs,K6=qz.getComponentMethod;function Bb(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Pz.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 fge=da(),Iz=Bt(),zb=Ur(),Tl=Ha(),Gb=yn();Oz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Gb.redrawComponents(r);return}function o(m){var b=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,T._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.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=zb.simpleMap(m.xr0,_.r2l),O=zb.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 V=zb.simpleMap(m.yr0,x.r2l),ae=zb.simpleMap(m.yr1,x.r2l),re=V[1]-V[0],Q=ae[1]-ae[0];F[1]=(V[1]*(1-b)+b*ae[1]-V[1])/(V[0]-V[1])*E,F[3]=E*(1-b+b*Q/re),x.range[0]=_.l2r(V[0]*(1-b)+b*ae[0]),x.range[1]=x.l2r(V[1]*(1-b)+b*ae[1])}else F[1]=0,F[3]=E;Gb.drawOne(r,_,{skipTitle:!0}),Gb.drawOne(r,x,{skipTitle:!0}),Gb.redrawComponents(r,[_._id,x._id]);var J=M?A/F[2]:1,j=k?E/F[3]:1,oe=M?F[0]:0,se=k?F[1]:0,Le=M?F[0]/F[2]*A:0,Ue=k?F[1]/F[3]*E:0,Ee=_._offset-Le,Ve=x._offset-Ue;T.clipRect.call(Tl.setTranslate,oe,se).call(Tl.setScale,1/J,1/j),T.plot.call(Tl.setTranslate,Ee,Ve).call(Tl.setScale,J,j),Tl.setPointGroupScale(T.zoomScalePts,1/J,1/j),Tl.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 my=N(io=>{"use strict";var Hb=da(),zz=Bt(),i0=Ur(),uge=_i(),cge=Ha(),Gz=im().getModuleCalcData,uv=kn(),Ys=ci(),vge=Yc(),La=i0.ensureSingle;function Ub(e,r,t){return i0.ensureSingle(e,r,t,function(a){a.datum(t)})}var o0=Ys.zindexSeparator;io.name="cartesian";io.attr=["xaxis","yaxis"];io.idRoot=["x","y"];io.idRegex=Ys.idRegex;io.attrRegex=Ys.attrRegex;io.attributes=cz();io.layoutAttributes=Hl();io.supplyLayoutDefaults=Nz();io.transitionAxes=Bz();io.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(o0)!==-1)continue;d+=o0+(f+1),v=i0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(A+=o0+x),_.push(l+A),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=La(a,"path","xlines-above"),r.ylines=La(a,"path","ylines-above"),r.xaxislayer=La(a,"g","xaxislayer-above"),r.yaxislayer=La(a,"g","yaxislayer-above");else{if(!o){var v=La(a,"g","layer-subplot");r.shapelayer=La(v,"g","shapelayer"),r.imagelayer=La(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=La(a,"g","minor-gridlayer"),r.gridlayer=La(a,"g","gridlayer"),r.zerolinelayer=La(a,"g","zerolinelayer"));var d=La(a,"g","layer-between");r.shapelayerBetween=La(d,"g","shapelayer"),r.imagelayerBetween=La(d,"g","imagelayer"),La(a,"path","xlines-below"),La(a,"path","ylines-below"),r.overlinesBelow=La(a,"g","overlines-below"),La(a,"g","xaxislayer-below"),La(a,"g","yaxislayer-below"),r.overaxesBelow=La(a,"g","overaxes-below")}r.overplot=La(a,"g","overplot"),r.plot=La(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=La(a,"g","zerolinelayer-above"),o||(r.xlines=La(a,"path","xlines-above"),r.ylines=La(a,"path","ylines-above"),r.overlinesAbove=La(a,"g","overlines-above"),La(a,"g","xaxislayer-above"),La(a,"g","yaxislayer-above"),r.overaxesAbove=La(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,La(c.overlinesBelow,"path",y),La(c.overlinesBelow,"path",m),La(c.overaxesBelow,"g",y),La(c.overaxesBelow,"g",m),r.plot=La(c.overplot,"g",n),La(c.overlinesAbove,"path",y),La(c.overlinesAbove,"path",m),La(c.overaxesAbove,"g",y),La(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||(Ub(r.minorGridlayer,"g",r.xaxis._id),Ub(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort),Ub(r.gridlayer,"g",r.xaxis._id),Ub(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 Vz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Hb.select(this);u.remove(),Yz(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 Vb=qi();Wz.exports={hasLines:Vb.hasLines,hasMarkers:Vb.hasMarkers,hasText:Vb.hasText,isBubble:Vb.isBubble,attributes:lv(),layoutAttributes:T2(),supplyDefaults:lB(),crossTraceDefaults:M6(),supplyLayoutDefaults:vB(),calc:ep().calc,crossTraceCalc:zB(),arraysToCalcdata:C6(),plot:KB(),colorbar:Rb(),formatLabels:U6(),style:W6().style,styleOnSelect:W6().styleOnSelect,hoverPoints:oz(),selectPoints:fz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:my(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Jz=N((ZFe,Zz)=>{"use strict";var dge=da(),pge=ha(),Xz=WA(),rT=Ur(),mge=rT.strScale,yge=rT.strRotate,gge=rT.strTranslate;Zz.exports=function(r,t,a){var n=r.node(),i=Xz[a.arrowhead||0],o=Xz[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)){V();return}if(c){if(c*c>b*b+T*T){V();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){V();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 $z=da(),tT=Bt(),bge=_i(),vv=Ur(),aT=vv.strTranslate,gy=yn(),l0=ha(),Hu=Ha(),Qz=ev(),nT=to(),iT=Qc(),yy=Bs(),xge=Xa().arrayEditor,_ge=Jz();rG.exports={draw:wge,drawOne:Kz,drawRaw:eG};function wge(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 $e=!1,ee=["x","y"],de=0;de1)&&(Je===qe?(Ar=Ke.r2fraction(r["a"+ne]),(Ar<0||Ar>1)&&($e=!0)):$e=!0),Yr=Ke._offset+Ke.r2p(r[ne]),or=.5}else{var rr=kt==="domain";ne==="x"?(Pe=r[ne],Yr=rr?Ke._offset+Ke._length*Pe:Yr=l.l+l.w*Pe):(Pe=1-r[ne],Yr=rr?Ke._offset+Ke._length*Pe:Yr=l.t+l.h*Pe),or=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Yr;var ur=r["a"+ne];if(st=Er*vr(.5,r.xanchor)-br*vr(.5,r.yanchor),Je===qe){var Hr=gy.getRefType(Je);Hr==="domain"?(ne==="y"&&(ur=1-ur),wr.tail=Ke._offset+Ke._length*ur):Hr==="paper"?ne==="y"?(ur=1-ur,wr.tail=l.t+l.h*ur):wr.tail=l.l+l.w*ur:wr.tail=Ke._offset+Ke.r2p(ur),et=st}else wr.tail=Yr+ur,et=st+ur;wr.text=wr.tail+st;var ot=o[ne==="x"?"width":"height"];if(qe==="paper"&&(wr.head=vv.constrain(wr.head,1,ot-1)),Je==="pixel"){var Wr=-Math.max(wr.tail-3,wr.text),tt=Math.min(wr.tail+3,wr.text)-ot;Wr>0?(wr.tail+=Wr,wr.text+=Wr):tt>0&&(wr.tail-=tt,wr.text-=tt)}wr.tail+=nt,wr.head+=nt}else st=zr*vr(or,Vr),et=st,wr.text=Yr+st;wr.text+=nt,st+=nt,et+=nt,r["_"+ne+"padplus"]=zr/2+et,r["_"+ne+"padminus"]=zr/2-et,r["_"+ne+"size"]=zr,r["_"+ne+"shift"]=st}if($e){M.remove();return}var xt=0,jr=0;if(r.align!=="left"&&(xt=(we-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(fr-Ve)*(r.valign==="middle"?.5:1)),Le)se.select("svg").attr({x:P+xt-1,y:P+jr}).call(Hu.setClipUrl,R?y:null,e);else{var at=P+jr-Ue.top,gr=P+xt-Ue.left;re.call(nT.positionText,gr,at).call(Hu.setClipUrl,R?y:null,e)}H.select("rect").call(Hu.setRect,P,P,we,fr),O.call(Hu.setRect,k/2,k/2,Ie-k,He-k),M.call(Hu.setTranslate,Math.round(m.x.text-Ie/2),Math.round(m.y.text-He/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,Tt=m.y.head,wt=m.x.tail+pr,Ot=m.y.tail+_r,ta=m.x.text+pr,Ma=m.y.text+_r,Ba=vv.rotationXYMatrix(b,ta,Ma),an=vv.apply2DTransform(Ba),Va=vv.apply2DTransform2(Ba),xn=+O.attr("width"),Pn=+O.attr("height"),di=ta-.5*xn,hn=di+xn,Jn=Ma-.5*Pn,Et=Jn+Pn,Pa=[[di,Jn,di,Et],[di,Et,hn,Et],[hn,Et,hn,Jn],[hn,Jn,di,Jn]].map(Va);if(!Pa.reduce(function(nn,$n){return nn^!!vv.segmentsIntersect(ht,Tt,ht+1e6,Tt+1e6,$n[0],$n[1],$n[2],$n[3])},!1)){Pa.forEach(function(nn){var $n=vv.segmentsIntersect(wt,Ot,ht,Tt,nn[0],nn[1],nn[2],nn[3]);$n&&(wt=$n.x,Ot=$n.y)});var ia=r.arrowwidth,Ia=r.arrowcolor,$a=r.arrowside,Qa=T.append("g").style({opacity:l0.opacity(Ia)}).classed("annotation-arrow-g",!0),fa=Qa.append("path").attr("d","M"+wt+","+Ot+"L"+ht+","+Tt).style("stroke-width",ia+"px").call(l0.stroke,l0.rgb(Ia));if(_ge(fa,$a,r),s.annotationPosition&&fa.node().parentNode&&!a){var Tn=ht,Ka=Tt;if(r.standoff){var en=Math.sqrt(Math.pow(ht-wt,2)+Math.pow(Tt-Ot,2));Tn+=r.standoff*(wt-ht)/en,Ka+=r.standoff*(Ot-Tt)/en}var fo=Qa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wt-Tn)+","+(Ot-Ka),transform:aT(Tn,Ka)}).style("stroke-width",ia+6+"px").call(l0.stroke,"rgba(0,0,0,0)").call(l0.fill,"rgba(0,0,0,0)"),Ii,dn;yy.init({element:fo.node(),gd:e,prepFn:function(){var nn=Hu.getTranslate(M);Ii=nn.x,dn=nn.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(nn,$n){var cs=an(Ii,dn),vs=cs[0]+nn,Cl=cs[1]+$n;M.call(Hu.setTranslate,vs,Cl),d("x",cv(n,nn,"x",l,r)),d("y",cv(i,$n,"y",l,r)),r.axref===r.xref&&d("ax",cv(n,nn,"ax",l,r)),r.ayref===r.yref&&d("ay",cv(i,$n,"ay",l,r)),Qa.attr("transform",aT(nn,$n)),_.attr({transform:"rotate("+b+","+vs+","+Cl+")"})},doneFn:function(){tT.call("_guiRelayout",e,p());var nn=document.querySelector(".js-notes-box-panel");nn&&nn.redraw(nn.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Oe;yy.init({element:M.node(),gd:e,prepFn:function(){Oe=_.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 Tt,wt;if(n)Tt=cv(n,pr,"x",l,r);else{var Ot=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Ot/2;Tt=yy.align(ta+pr/l.w,Ot,0,1,r.xanchor)}if(i)wt=cv(i,_r,"y",l,r);else{var Ma=r._ysize/l.h,Ba=r.y-(r._yshift+r.yshift)/l.h-Ma/2;wt=yy.align(Ba-_r/l.h,Ma,0,1,r.yanchor)}d("x",Tt),d("y",wt),(!n||!i)&&(ht=yy.getCursor(n?.5:Tt,i?.5:wt,r.xanchor,r.yanchor))}_.attr({transform:aT(pr,_r)+Oe}),iT(M,ht)},clickFn:function(pr,_r){r.captureevents&&e.emit("plotly_clickannotation",E(_r))},doneFn:function(){iT(M),tT.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?re.call(nT.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),tT.call("_guiRelayout",e,p())}):re.call(Q)}});var lG=N(($Fe,oG)=>{"use strict";var tG=Ur(),Age=Bt(),aG=Xa().arrayEditor;oG.exports={hasClickToShow:Tge,onClick:Mge};function Tge(e,r){var t=iG(e,r);return t.on.length>0||t.explicitOff.length>0}function Mge(e,r){var t=iG(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 oT=Ur(),lp=ha();sG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=lp.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),oT.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:lp.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||(lp.opacity(i)?lp.rgb(i):lp.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||lp.contrast(m)),T=oT.extendFlat({},y.font);T.color||(T.color=b),oT.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var uG=N((KFe,fG)=>{"use strict";var sT=Ur(),s0=yn(),Sge=gl(),Ege=lT(),kge=Jd();fG.exports=function(r,t){Sge(r,t,{name:"annotations",handleItemDefaults:Cge})};function Cge(e,r,t){function a(_,x){return sT.coerce(e,r,kge,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Ege(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=s0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=s0.getFromId(f,v);d._annIndices.push(r._index)}if(s0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,y=s0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[u]:.4;s0.coercePosition(r,f,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(sT.noneOrAll(e,r,["x","y"]),o&&sT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:s0.cleanPosition(b,f,r.xref),r._yclick=T===void 0?r.y:s0.cleanPosition(T,f,r.yref)}}}});var hG=N((eRe,vG)=>{"use strict";var fT=Ur(),f0=yn(),Lge=Yb().draw;vG.exports=function(r){var t=r._fullLayout,a=fT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return fT.syncOrAsync([Lge,Dge],r)};function Dge(e){var r=e._fullLayout;fT.filterVisible(r.annotations).forEach(function(t){var a=f0.getFromId(e,t.xref),n=f0.getFromId(e,t.yref),i=f0.getRefType(t.xref),o=f0.getRefType(t.yref);t._extremes={},i==="range"&&cG(t,a),o==="range"&&cG(t,n)})}function cG(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=f0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=f0.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=f0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var pG=N((rRe,dG)=>{"use strict";var Fge=ba(),Rge=Yg();dG.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=Rge(p,t.range):y=Math.pow(10,p),Fge(y)||(y=null),n(u+d,y)}for(var v=0;v{"use strict";var uT=Yb(),mG=lG();yG.exports={moduleType:"component",name:"annotations",layoutAttributes:Jd(),supplyLayoutDefaults:uG(),includeBasePlot:$m()("annotations"),calcAutorange:hG(),draw:uT.draw,drawOne:uT.drawOne,drawRaw:uT.drawRaw,hasClickToShow:mG.hasClickToShow,onClick:mG.onClick,convertCoords:pG()}});var Wb=N((aRe,bG)=>{"use strict";var tn=Jd(),qge=Rs().overrideAll,Pge=Xa().templatedArray;bG.exports=qge(Pge("annotation",{visible:tn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:tn.xanchor,xshift:tn.xshift,yanchor:tn.yanchor,yshift:tn.yshift,text:tn.text,textangle:tn.textangle,font:tn.font,width:tn.width,height:tn.height,opacity:tn.opacity,align:tn.align,valign:tn.valign,bgcolor:tn.bgcolor,bordercolor:tn.bordercolor,borderpad:tn.borderpad,borderwidth:tn.borderwidth,showarrow:tn.showarrow,arrowcolor:tn.arrowcolor,arrowhead:tn.arrowhead,startarrowhead:tn.startarrowhead,arrowside:tn.arrowside,arrowsize:tn.arrowsize,startarrowsize:tn.startarrowsize,arrowwidth:tn.arrowwidth,standoff:tn.standoff,startstandoff:tn.startstandoff,hovertext:tn.hovertext,hoverlabel:tn.hoverlabel,captureevents:tn.captureevents}),"calc","from-root")});var _G=N((nRe,xG)=>{"use strict";var cT=Ur(),Nge=yn(),Ige=gl(),Oge=lT(),Bge=Wb();xG.exports=function(r,t,a){Ige(r,t,{name:"annotations",handleItemDefaults:zge,fullLayout:a.fullLayout})};function zge(e,r,t,a){function n(l,s){return cT.coerce(e,r,Bge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],Nge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(Oge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),cT.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),cT.noneOrAll(e,r,["ax","ay"])))}});var MG=N((iRe,TG)=>{"use strict";var wG=Ur(),AG=yn();TG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function vT(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 Uge(e,r){var t=vT(e.projection,vT(e.view,vT(e.model,[r[0],r[1],r[2],1])));return t}SG.exports=Uge});var CG=N((lRe,kG)=>{"use strict";var Hge=Yb().drawRaw,Vge=EG(),Yge=["x","y","z"];kG.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=Vge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Hge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var FG=N((sRe,DG)=>{"use strict";var Wge=Bt(),LG=Ur();DG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Wb()}}},layoutAttributes:Wb(),handleDefaults:_G(),includeBasePlot:jge,convert:MG(),draw:CG()};function jge(e,r){var t=Wge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var fRe=ci(),RG=zi(),qG=lv().line,Xge=Pc().dash,Ws=zn().extendFlat,Zge=Xa().templatedArray,uRe=Xm(),sp=Ds(),PG=Jd(),{shapeTexttemplateAttrs:Jge,templatefallbackAttrs:$ge}=cd(),Qge=r2();NG.exports=Zge("shape",{visible:Ws({},sp.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ws({},sp.legend,{editType:"calc+arraydraw"}),legendgroup:Ws({},sp.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ws({},sp.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:RG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ws({},sp.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ws({},sp.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({},PG.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({},PG.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({},qG.color,{editType:"arraydraw"}),width:Ws({},qG.width,{editType:"calc+arraydraw"}),dash:Ws({},Xge,{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:Jge({},{keys:Object.keys(Qge)}),texttemplatefallback:$ge({editType:"arraydraw"}),font:RG({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 OG=N((vRe,IG)=>{"use strict";var fp=Ur(),Ml=yn(),Kge=gl(),e2e=hT(),by=iv();IG.exports=function(r,t){Kge(r,t,{name:"shapes",handleItemDefaults:t2e})};function r2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function t2e(e,r,t){function a(_,x){return fp.coerce(e,r,e2e,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),fp.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=by.countDefiningCoords(s,o,_);P=Ml.coerceRefArray(e,r,E,_,void 0,"paper",H),r["_"+_+"refArray"]=!0}else P=Ml.coerceRef(e,r,E,_,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Ml.getRefType(H)==="range"&&(M=Ml.getFromId(E,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),f&&[0,1].forEach(function(H){let V=P[H];Ml.getRefType(V)==="range"?(M=Ml.getFromId(E,V),k=by.shapePositionToRange(M),F=by.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+H+"shift")):k=F=fp.identity;let re=_+H,Q=e[re];if(e[re]=k(e[re],!0),A==="pixel"?a(re,p[H]):Ml.coercePosition(r,E,a,V,re,d[H]),r[re]=F(r[re]),e[re]=Q,H===0&&A==="pixel"){let J=e[x];e[x]=k(e[x],!0),Ml.coercePosition(r,E,a,V,x,.25),r[x]=F(r[x]),e[x]=J}});else{if(Ml.getRefType(P)==="range"?(M=Ml.getFromId(E,P),M._shapeIndices.push(r._index),F=by.rangeToShapePosition(M),k=by.shapePositionToRange(M),f&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):k=F=fp.identity,f){let V=_+"0",ae=_+"1",re=e[V],Q=e[ae];e[V]=k(e[V],!0),e[ae]=k(e[ae],!0),A==="pixel"?(a(V,p[0]),a(ae,p[1])):(Ml.coercePosition(r,E,a,P,V,d[0]),Ml.coercePosition(r,E,a,P,ae,d[1])),r[V]=F(r[V]),r[ae]=F(r[ae]),e[V]=re,e[ae]=Q}if(A==="pixel"){let V=e[x];e[x]=k(e[x],!0),Ml.coercePosition(r,E,a,P,x,.25),r[x]=F(r[x]),e[x]=V}}}),f&&fp.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",r2e(y,T)),a("label.padding"),fp.coerceFont(a,"label.font",t.font)}}});var GG=N((hRe,zG)=>{"use strict";var a2e=ha(),BG=Ur();function n2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}zG.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"),BG.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",a2e.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",n2e(o,f)),a("newshape.label.padding"),BG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var XG=N((dRe,jG)=>{"use strict";var dT=Ur(),as=yn(),Uf=km(),pT=iv();jG.exports=function(r){var t=r._fullLayout,a=dT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=as.getFromId(r,c),i._extremes[o._id]=as.findExtremes(o,v,HG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=as.getFromId(r,i.xref),l=YG(o,i,Uf.paramIsX),l&&(i._extremes[o._id]=as.findExtremes(o,l,HG(i))));if(f==="array"){let u=UG(r,i,"y");Object.entries(u).forEach(([c,v])=>{o=as.getFromId(r,c),i._extremes[o._id]=as.findExtremes(o,v,VG(i))})}else i.yref!=="paper"&&f!=="domain"&&(o=as.getFromId(r,i.yref),l=YG(o,i,Uf.paramIsY),l&&(i._extremes[o._id]=as.findExtremes(o,l,VG(i))))}};function UG(e,r,t){let a=r[t+"ref"],n=t==="x"?Uf.paramIsX:Uf.paramIsY;function i(c,v){c==="paper"||as.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Uf.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=as.getFromId(e,c);if(v){var u=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(u=pT.decodeDate(u)),f[v._id]=o[c].map(u)}}return f}function HG(e){return WG(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function VG(e){return WG(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function WG(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?pT.extractPathCoords(n,i?Uf.paramIsY:Uf.paramIsX):[t,a],f=dT.aggNums(Math.max,null,s),u=dT.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 YG(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(Uf.segmentRE),p,y,m,b,T;for(e.type==="date"&&(f=pT.decodeDate(f)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var $G=N((pRe,JG)=>{"use strict";var ZG=O3();JG.exports={moduleType:"component",name:"shapes",layoutAttributes:hT(),supplyLayoutDefaults:OG(),supplyDrawNewShapeDefaults:GG(),includeBasePlot:$m()("shapes"),calcAutorange:XG(),draw:ZG.draw,drawOne:ZG.drawOne}});var mT=N((yRe,KG)=>{"use strict";var QG=ci(),i2e=Xa().templatedArray,mRe=Xm();KG.exports=i2e("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",QG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",QG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rU=N((gRe,eU)=>{"use strict";var o2e=Ur(),yT=yn(),l2e=gl(),s2e=mT(),f2e="images";eU.exports=function(r,t){var a={name:f2e,handleItemDefaults:u2e};l2e(r,t,a)};function u2e(e,r,t){function a(v,d){return o2e.coerce(e,r,s2e,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=yT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=yT.getFromId(o,u);c._imgIndices.push(r._index)}yT.coercePosition(r,o,a,u,f,0)}return r}});var iU=N((bRe,nU)=>{"use strict";var tU=da(),c2e=Ha(),up=yn(),aU=kn(),v2e=Yc();nU.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var oU=ba(),h2e=Yg();lU.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";fU.exports={moduleType:"component",name:"images",layoutAttributes:mT(),supplyLayoutDefaults:rU(),includeBasePlot:$m()("images"),draw:iU(),convertCoords:sU()}});var jb=N((wRe,cU)=>{"use strict";cU.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 gT=N((ARe,hU)=>{"use strict";var d2e=zi(),p2e=Mf(),m2e=zn().extendFlat,y2e=Rs().overrideAll,g2e=t2(),vU=Xa().templatedArray,b2e=vU("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}});hU.exports=y2e(vU("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:b2e,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:m2e(g2e({editType:"arraydraw"}),{}),font:d2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:p2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var yU=N((TRe,mU)=>{"use strict";var Xb=Ur(),dU=gl(),pU=gT(),x2e=jb(),_2e=x2e.name,w2e=pU.buttons;mU.exports=function(r,t){var a={name:_2e,handleItemDefaults:A2e};dU(r,t,a)};function A2e(e,r,t){function a(o,l){return Xb.coerce(e,r,pU,o,l)}var n=dU(e,r,{name:"buttons",handleItemDefaults:T2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Xb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Xb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function T2e(e,r){function t(n,i){return Xb.coerce(e,r,w2e,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 xU=N((MRe,bU)=>{"use strict";bU.exports=Cn;var js=da(),gU=ha(),cp=Ha(),Zb=Ur();function Cn(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})}Cn.barWidth=2;Cn.barLength=20;Cn.barRadius=2;Cn.barPad=1;Cn.barColor="#808BA4";Cn.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=Cn.barLength+2*Cn.barPad,F=Cn.barWidth+2*Cn.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(gU.fill,Cn.barColor),M?(this.hbar=R.attr({rx:Cn.barRadius,ry:Cn.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,V=Cn.barWidth+2*Cn.barPad,ae=Cn.barLength+2*Cn.barPad,re=l+s,Q=f;re+V>i&&(re=i-V);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(gU.fill,Cn.barColor),H?(this.vbar=J.attr({rx:Cn.barRadius,ry:Cn.barRadius,x:re,y:Q,width:V,height:ae}),this._vbarYMin=Q+ae/2,this._vbarTranslateMax=b-ae):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,oe=T-.5,se=H?_+V+.5:_+.5,Le=x-.5,Ue=M?A+F+.5:A+.5,Ee=n._topdefs.selectAll("#"+j).data(M||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",j).append("rect"),M||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(oe),y:Math.floor(Le),width:Math.ceil(se)-Math.floor(oe),height:Math.ceil(Ue)-Math.floor(Le)}),this.container.call(cp.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(cp.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)};Cn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(cp.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)};Cn.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)};Cn.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)};Cn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Zb.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=Zb.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)};Cn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Zb.constrain(r||0,0,a),t=Zb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(cp.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(cp.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(cp.setTranslate,r,t+o*this._vbarTranslateMax)}}});var LU=N((SRe,CU)=>{"use strict";var vp=da(),xy=_i(),_y=ha(),hp=Ha(),Sl=Ur(),Jb=to(),M2e=Xa().arrayEditor,wU=ro().LINE_SPACING,Gt=jb(),S2e=xU();CU.exports=function(r){var t=r._fullLayout,a=Sl.filterVisible(t[Gt.name]);function n(v){xy.autoMargin(r,EU(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(){vp.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,E2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Sl.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var q2e=jb();DU.exports={moduleType:"component",name:q2e.name,layoutAttributes:gT(),supplyLayoutDefaults:yU(),draw:LU()}});var Ay=N((kRe,RU)=>{"use strict";RU.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 wT=N((CRe,NU)=>{"use strict";var qU=zi(),P2e=t2(),N2e=zn().extendDeepAll,I2e=Rs().overrideAll,O2e=Z1(),PU=Xa().templatedArray,u0=Ay(),B2e=PU("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}});NU.exports=I2e(PU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:B2e,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:N2e(P2e({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:O2e.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:qU({})},font:qU({}),activebgcolor:{valType:"color",dflt:u0.gripBgActiveColor},bgcolor:{valType:"color",dflt:u0.railBgColor},bordercolor:{valType:"color",dflt:u0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:u0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:u0.tickLength},tickcolor:{valType:"color",dflt:u0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:u0.minorTickLength}}),"arraydraw","from-root")});var zU=N((LRe,BU)=>{"use strict";var dp=Ur(),IU=gl(),OU=wT(),z2e=Ay(),G2e=z2e.name,U2e=OU.steps;BU.exports=function(r,t){IU(r,t,{name:G2e,handleItemDefaults:H2e})};function H2e(e,r,t){function a(c,v){return dp.coerce(e,r,OU,c,v)}for(var n=IU(e,r,{name:"steps",handleItemDefaults:V2e}),i=0,o=0;o{"use strict";var Xs=da(),$b=_i(),hv=ha(),Zs=Ha(),El=Ur(),Y2e=El.strTranslate,Ty=to(),W2e=Xa().arrayEditor,ea=Ay(),MT=ro(),HU=MT.LINE_SPACING,AT=MT.FROM_TL,TT=MT.FROM_BR;ZU.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),$b.autoMargin(r,VU(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,X2e);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",Y2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function ST(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function UU(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 r3e(e,r,t){var a=t._dims,n=El.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 t3e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=El.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 QU=N((FRe,$U)=>{"use strict";var a3e=Ay();$U.exports={moduleType:"component",name:a3e.name,layoutAttributes:wT(),supplyLayoutDefaults:zU(),draw:JU()}});var Kb=N((RRe,eH)=>{"use strict";var KU=Mf();eH.exports={bgcolor:{valType:"color",dflt:KU.background,editType:"plot"},bordercolor:{valType:"color",dflt:KU.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 ET=N((qRe,rH)=>{"use strict";rH.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 ex=N((PRe,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 iH=N(tx=>{"use strict";var n3e=kn(),i3e=to(),aH=ex(),o3e=ro().LINE_SPACING,rx=aH.name;function nH(e){var r=e&&e[rx];return r&&r.visible}tx.isVisible=nH;tx.makeData=function(e){for(var r=n3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ax=Ur(),oH=Xa(),lH=kn(),l3e=Kb(),s3e=ET();sH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ax.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=oH.newContainer(i,"rangeslider");function s(A,E){return ax.coerce(o,l,l3e,A,E)}var f,u;function c(A,E){return ax.coerce(f,u,s3e,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")))===lH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),y=ax.simpleMap(p,lH.id2name),m=0;m{"use strict";var f3e=kn().list,u3e=qd().getAutoRange,c3e=ex();uH.exports=function(r){for(var t=f3e(r,"x",!0),a=0;a{"use strict";var nx=da(),v3e=Bt(),h3e=_i(),On=Ur(),ix=On.strTranslate,hH=Ha(),dv=ha(),d3e=hm(),p3e=my(),kT=kn(),m3e=Bs(),y3e=Qc(),sa=ex();dH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=J.max)re=O[Q+1];else if(ae=J.pmax)re=O[Q+1];else if(ae0?e.touches[0].clientX:0}function g3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+sa.slideBoxClassName).node(),i=e.select("rect."+sa.grabAreaMinClassName).node(),o=e.select("rect."+sa.grabAreaMaxClassName).node();function l(){var s=nx.event,f=s.target,u=vH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=m3e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var T=vH(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 k3e=Ur(),C3e=Kb(),L3e=ET(),CT=iH();mH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:k3e.extendFlat({},C3e,{yaxis:L3e})}}},layoutAttributes:Kb(),handleDefaults:fH(),calcAutorange:cH(),draw:pH(),isVisible:CT.isVisible,makeData:CT.makeData,autoMarginOpts:CT.autoMarginOpts}});var ox=N((GRe,bH)=>{"use strict";var D3e=zi(),gH=Mf(),F3e=Xa().templatedArray,R3e=F3e("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:R3e,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:D3e({editType:"plot"}),bgcolor:{valType:"color",dflt:gH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:gH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var LT=N((URe,xH)=>{"use strict";xH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var AH=N((HRe,wH)=>{"use strict";var lx=Ur(),q3e=ha(),P3e=Xa(),N3e=gl(),_H=ox(),DT=LT();wH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=P3e.newContainer(t,"rangeselector");function s(d,p){return lx.coerce(o,l,_H,d,p)}var f=N3e(o,l,{name:"buttons",handleItemDefaults:I3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=O3e(t,a,n);s("x",c[0]),s("y",c[1]),lx.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),lx.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",q3e.contrast(v,DT.lightAmount,DT.darkAmount)),s("bordercolor"),s("borderwidth")}};function I3e(e,r,t,a){var n=a.calendar;function i(s,f){return lx.coerce(e,r,_H.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 O3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var B3e=M5(),z3e=Ur().titleCase;TH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=G3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function G3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=B3e["utc"+z3e(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 RH=N((YRe,FH)=>{"use strict";var fx=da(),U3e=Bt(),H3e=_i(),SH=ha(),DH=Ha(),Vu=Ur(),EH=Vu.strTranslate,sx=to(),V3e=kn(),qT=ro(),kH=qT.LINE_SPACING,CH=qT.FROM_TL,LH=qT.FROM_BR,RT=LT(),Y3e=MH();FH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(W3e(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=fx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Vu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=fx.select(this),c=Y3e(o,f);f._isActive=X3e(o,f,c),u.call(FT,l,f),u.call(J3e,l,f,r),u.on("click",function(){r._dragged||U3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(FT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(FT,l,f)})}),Q3e(r,s,l,o._name,i)})};function W3e(e){for(var r=V3e.list(e,"x",!0),t=[],a=0;a{"use strict";qH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:ox()}}},layoutAttributes:ox(),handleDefaults:AH(),draw:RH()}});var ux=N(PT=>{"use strict";var NH=zn().extendFlat;PT.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:NH({},t,{}),y:NH({},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};PT.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 K3e=Ur(),ebe=ld().counter,rbe=ux().attributes,IH=ci().idRegex,tbe=Xa(),NT={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:[ebe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IH.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:rbe({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 cx(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 abe(e,r){var t=e.grid||{},a=cx(r,t,"x"),n=cx(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=tbe.newContainer(r,"grid");function v(E,M){return K3e.coerce(t,c,NT,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:OH("x",v,T,x,p),y:OH("y",v,_,A,d,b)}}function OH(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";GH.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 VH=N((JRe,HH)=>{"use strict";var UH=ba(),ibe=Bt(),obe=Ur(),lbe=Xa(),sbe=OT();HH.exports=function(e,r,t,a){var n="error_"+a.axis,i=lbe.newContainer(r,n),o=e[n]||{};function l(p,y){return obe.coerce(o,i,sbe,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||UH(o.thickness)||UH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",ibe.traceIs(r,"gl3d")?0:4))}}});var BT=N(($Re,WH)=>{"use strict";WH.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=YH(t,r.value),l=YH(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 YH(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 ZH=N((QRe,XH)=>{"use strict";var zT=ba(),fbe=Bt(),GT=yn(),ube=Ur(),cbe=BT();XH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var JH=da(),pv=ba(),vbe=Ha(),hbe=qi();$H.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=hbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=JH.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),vbe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=JH.select(this),x=dbe(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 dbe(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 rV=N((eqe,eV)=>{"use strict";var pbe=da(),KH=ha();eV.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=pbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(KH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(KH.stroke,i.color)})}});var nV=N((rqe,aV)=>{"use strict";var My=Ur(),tV=Rs().overrideAll,Sy=OT(),c0={error_x:My.extendFlat({},Sy),error_y:My.extendFlat({},Sy)};delete c0.error_x.copy_zstyle;delete c0.error_y.copy_zstyle;delete c0.error_y.copy_ystyle;var Ey={error_x:My.extendFlat({},Sy),error_y:My.extendFlat({},Sy),error_z:My.extendFlat({},Sy)};delete Ey.error_x.copy_ystyle;delete Ey.error_y.copy_ystyle;delete Ey.error_z.copy_ystyle;delete Ey.error_z.copy_zstyle;aV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:c0,bar:c0,histogram:c0,scatter3d:tV(Ey,"calc","nested"),scattergl:tV(c0,"calc","nested")}},supplyDefaults:VH(),calc:ZH(),makeComputeError:BT(),plot:QH(),style:rV(),hoverInfo:mbe};function mbe(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 oV=N((tqe,iV)=>{"use strict";iV.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 hV=N((aqe,vV)=>{"use strict";var mv=da(),UT=Ls(),hx=_i(),lV=Bt(),Yu=yn(),vx=Bs(),ns=Ur(),$s=ns.strTranslate,cV=zn().extendFlat,HT=Qc(),Js=Ha(),VT=ha(),ybe=hm(),gbe=to(),bbe=Is().flipScale,xbe=$6(),_be=Q6(),wbe=Hl(),YT=ro(),sV=YT.LINE_SPACING,fV=YT.FROM_TL,uV=YT.FROM_BR,wn=oV().cn;function Abe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+wn.colorbar).data(Tbe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(wn.colorbar,!0),t.each(function(a){var n=mv.select(this);ns.ensureSingle(n,"rect",wn.cbbg),ns.ensureSingle(n,"g",wn.cbfills),ns.ensureSingle(n,"g",wn.cblines),ns.ensureSingle(n,"g",wn.cbaxis,function(o){o.classed(wn.crisp,!0)}),ns.ensureSingle(n,"g",wn.cbtitleunshift,function(o){o.append("g").classed(wn.cbtitle,!0)}),ns.ensureSingle(n,"rect",wn.cboutline);var i=Mbe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Sbe(n,a,e)}),t.exit().each(function(a){hx.autoMargin(e,a._id)}).remove(),t.order()}function Tbe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return cV(_,{_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?bbe(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(ee)/Math.LN10));vr*=de*ns.roundUp(ee/de,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(Ie.tick0=0)}Ie.dtick=vr}Ie.domain=a?[we+p/x.h,we+j-p/x.h]:[we+d/x.w,we+j-d/x.w],Ie.setScale(),e.attr("transform",$s(Math.round(x.l),Math.round(x.t)));var ne=e.select("."+wn.cbtitleunshift).attr("transform",$s(-Math.round(x.l),-Math.round(x.t))),qe=Ie.ticklabelposition,Je=Ie.title.font.size,Ke=e.select("."+wn.cbaxis),Sr,Er=0,br=0;function zr(et,Pe){var or={propContainer:Ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+wn.cbtitle)},st=et.charAt(0)==="h"?et.slice(1):"h"+et;e.selectAll("."+st+",."+st+"-math-group").remove(),ybe.draw(t,et,cV(or,Pe||{}))}function Vr(){if(a&&He||!a&&!He){var et,Pe;k==="top"&&(et=d+x.l+oe*y,Pe=p+x.t+se*(1-we-j)+3+Je*.75),k==="bottom"&&(et=d+x.l+oe*y,Pe=p+x.t+se*(1-we)-3-Je*.25),k==="right"&&(Pe=p+x.t+se*m+3+Je*.75,et=d+x.l+oe*we),zr(Ie._id+"title",{attributes:{x:et,y:Pe,"text-anchor":a?"start":"middle"}})}}function nt(){if(a&&!He||!a&&He){var et=Ie.position||0,Pe=Ie._offset+Ie._length/2,or,st;if(k==="right")st=Pe,or=x.l+oe*et+10+Je*(Ie.showticklabels?1:.5);else if(or=Pe,k==="bottom"&&(st=x.t+se*et+10+(qe.indexOf("inside")===-1?Ie.tickfont.size:0)+(Ie.ticks!=="inside"&&r.ticklen||0)),k==="top"){var kt=M.text.split("
").length;st=x.t+se*et+10-re-sV*Je*kt}zr((a?"h":"v")+Ie._id+"title",{avoid:{selection:mv.select(t).selectAll("g."+Ie._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 et=e.select("."+wn.cbtitle),Pe=et.select("text"),or=[-s/2,s/2],st=et.select(".h"+Ie._id+"title-math-group").node(),kt=15.6;Pe.node()&&(kt=parseInt(Pe.node().style.fontSize,10)*sV);var Ar;if(st?(Ar=Js.bBox(st),br=Ar.width,Er=Ar.height,Er>kt&&(or[1]-=(Er-kt)/2)):Pe.node()&&!Pe.classed(wn.jsPlaceholder)&&(Ar=Js.bBox(Pe.node()),br=Ar.width,Er=Ar.height),a){if(Er){if(Er+=5,k==="top")Ie.domain[1]-=Er/x.h,or[1]*=-1;else{Ie.domain[0]+=Er/x.h;var rr=gbe.lineCount(Pe);or[1]+=(1-rr)*kt}et.attr("transform",$s(or[0],or[1])),Ie.setScale()}}else br&&(k==="right"&&(Ie.domain[0]+=(br+Je/2)/x.w),et.attr("transform",$s(or[0],or[1])),Ie.setScale())}e.selectAll("."+wn.cbfills+",."+wn.cblines).attr("transform",a?$s(0,Math.round(x.h*(1-Ie.domain[1]))):$s(Math.round(x.w*Ie.domain[0]),0)),Ke.attr("transform",a?$s(0,Math.round(-x.t)):$s(Math.round(-x.l),0));var ur=e.select("."+wn.cbfills).selectAll("rect."+wn.cbfill).attr("style","").data(V);ur.enter().append("rect").classed(wn.cbfill,!0).attr("style",""),ur.exit().remove();var Hr=F.map(Ie.c2p).map(Math.round).sort(function(jr,at){return jr-at});ur.each(function(jr,at){var gr=[at===0?F[0]:(V[at]+V[at-1])/2,at===V.length-1?F[1]:(V[at]+V[at+1])/2].map(Ie.c2p).map(Math.round);a&&(gr[1]=ns.constrain(gr[1]+(gr[1]>gr[0])?1:-1,Hr[0],Hr[1]));var Se=mv.select(this).attr(a?"x":"y",Le).attr(a?"y":"x",mv.min(gr)).attr(a?"width":"height",Math.max(re,2)).attr(a?"height":"width",Math.max(mv.max(gr)-mv.min(gr),2));if(r._fillgradient)Js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Oe=O(jr).replace("e-","");Se.attr("fill",UT(Oe).toHexString())}});var ot=e.select("."+wn.cblines).selectAll("path."+wn.cbline).data(E.color&&E.width?ae:[]);ot.enter().append("path").classed(wn.cbline,!0),ot.exit().remove(),ot.each(function(jr){var at=Le,gr=Math.round(Ie.c2p(jr))+E.width/2%1;mv.select(this).attr("d","M"+(a?at+","+gr:gr+","+at)+(a?"h":"v")+re).call(Js.lineGroupStyle,E.width,P(jr),E.dash)}),Ke.selectAll("g."+Ie._id+"tick,path").remove();var Wr=Le+re+(s||0)/2-(r.ticks==="outside"?1:0),tt=Yu.calcTicks(Ie),xt=Yu.getTickSigns(Ie)[2];return Yu.drawTicks(t,Ie,{vals:Ie.ticks==="inside"?Yu.clipEnds(Ie,tt):tt,layer:Ke,path:Yu.makeTickPath(Ie,Wr,xt),transFn:Yu.makeTransTickFn(Ie)}),Yu.drawLabels(t,Ie,{vals:tt,layer:Ke,transFn:Yu.makeTransTickLabelFn(Ie),labelFns:Yu.makeLabelFns(Ie,Wr)})}function Yr(){var et,Pe=re+s/2;qe.indexOf("inside")===-1&&(et=Js.bBox(Ke.node()),Pe+=a?et.width:et.height),Sr=ne.select("text");var or=0,st=a&&k==="top",kt=!a&&k==="right",Ar=0;if(Sr.node()&&!Sr.classed(wn.jsPlaceholder)){var rr,ur=ne.select(".h"+Ie._id+"title-math-group").node();ur&&(a&&He||!a&&!He)?(et=Js.bBox(ur),or=et.width,rr=et.height):(et=Js.bBox(ne.node()),or=et.right-x.l-(a?Le:fr),rr=et.bottom-x.t-(a?fr:Le),!a&&k==="top"&&(Pe+=et.height,Ar=et.height)),kt&&(Sr.attr("transform",$s(or/2+Je/2,0)),or*=2),Pe=Math.max(Pe,a?or:rr)}var Hr=(a?d:p)*2+Pe+f+s/2,ot=0;!a&&M.text&&v==="bottom"&&m<=0&&(ot=Hr/2,Hr+=ot,Ar+=ot),_._hColorbarMoveTitle=ot,_._hColorbarMoveCBTitle=Ar;var Wr=f+s,tt=(a?Le:fr)-Wr/2-(a?d:0),xt=(a?fr:Le)-(a?J:p+Ar-ot);e.select("."+wn.cbbg).attr("x",tt).attr("y",xt).attr(a?"width":"height",Math.max(Hr-ot,2)).attr(a?"height":"width",Math.max(J+Wr,2)).call(VT.fill,u).call(VT.stroke,r.bordercolor).style("stroke-width",f);var jr=kt?Math.max(or-10,0):0;e.selectAll("."+wn.cboutline).attr("x",(a?Le:fr+d)+jr).attr("y",(a?fr+p-J:Le)+(st?Er:0)).attr(a?"width":"height",Math.max(re,2)).attr(a?"height":"width",Math.max(J-(a?2*p+Er:2*d+jr),2)).call(VT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var at=a?Ue*Hr:0,gr=a?0:(1-Ee)*Hr-Ar;if(at=T?x.l-at:-at,gr=b?x.t-gr:-gr,e.attr("transform",$s(at,gr)),!a&&(f||UT(u).getAlpha()&&!UT.equals(_.paper_bgcolor,u))){var Se=Ke.selectAll("text"),Oe=Se[0].length,pr=e.select("."+wn.cbbg).node(),_r=Js.bBox(pr),ht=Js.getTranslate(e),Tt=2;Se.each(function(di,hn){var Jn=0,Et=Oe-1;if(hn===Jn||hn===Et){var Pa=Js.bBox(this),ia=Js.getTranslate(this),Ia;if(hn===Et){var $a=Pa.right+ia.x,Qa=_r.right+ht.x+fr-f-Tt+y;Ia=Qa-$a,Ia>0&&(Ia=0)}else if(hn===Jn){var fa=Pa.left+ia.x,Tn=_r.left+ht.x+fr+f+Tt;Ia=Tn-fa,Ia<0&&(Ia=0)}Ia&&(Oe<3?this.setAttribute("transform","translate("+Ia+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var wt={},Ot=fV[c],ta=uV[c],Ma=fV[v],Ba=uV[v],an=Hr-re;a?(i==="pixels"?(wt.y=m,wt.t=J*Ma,wt.b=J*Ba):(wt.t=wt.b=0,wt.yt=m+n*Ma,wt.yb=m-n*Ba),l==="pixels"?(wt.x=y,wt.l=Hr*Ot,wt.r=Hr*ta):(wt.l=an*Ot,wt.r=an*ta,wt.xl=y-o*Ot,wt.xr=y+o*ta)):(i==="pixels"?(wt.x=y,wt.l=J*Ot,wt.r=J*ta):(wt.l=wt.r=0,wt.xl=y+n*Ot,wt.xr=y-n*ta),l==="pixels"?(wt.y=1-m,wt.t=Hr*Ma,wt.b=Hr*Ba):(wt.t=an*Ma,wt.b=an*Ba,wt.yt=m-o*Ma,wt.yb=m+o*Ba));var Va=r.y<.5?"b":"t",xn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Pn={r:_.width-tt-at,l:tt+wt.r,b:_.height-xt-gr,t:xt+wt.b};T&&b?hx.autoMargin(t,r._id,wt):T?t._fullLayout._reservedMargin[r._id][Va]=Pn[Va]:b||a?t._fullLayout._reservedMargin[r._id][xn]=Pn[xn]:t._fullLayout._reservedMargin[r._id][Va]=Pn[Va]}return ns.syncOrAsync([hx.previousPromises,Vr,wr,nt,hx.previousPromises,Yr],t)}function Sbe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;vx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),HT(e)},moveFn:function(f,u){e.attr("transform",o+$s(f,u)),l=vx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=vx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=vx.getCursor(l,s,r.xanchor,r.yanchor);HT(e,c)},doneFn:function(){if(HT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?lV.call("_guiRestyle",t,f,r._traceIndex):lV.call("_guiRelayout",t,f)}}})}function Ebe(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";dV.exports={moduleType:"component",name:"colorbar",attributes:F2(),supplyDefaults:B4(),draw:hV().draw,hasColorbar:k4()}});var yV=N((iqe,mV)=>{"use strict";mV.exports={moduleType:"component",name:"legend",layoutAttributes:Nw(),supplyLayoutDefaults:Ow(),draw:Qw(),style:Xw()}});var bV=N((oqe,gV)=>{"use strict";gV.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 _V=N((lqe,xV)=>{"use strict";xV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var jT=N((sqe,MV)=>{"use strict";var Cbe=Bt(),TV=Ur(),WT=TV.extendFlat,wV=TV.extendDeep;function AV(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 Lbe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}MV.exports=function(r,t){var a,n=r.data,i=r.layout,o=wV([],n),l=wV({},i,AV(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 Dbe=b2().EventEmitter,Fbe=Bt(),Rbe=Ur(),SV=r0(),qbe=jT(),Pbe=xb(),Nbe=_b();function Ibe(e,r){var t=new Dbe,a=qbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=SV.getDelay(n._fullLayout);setTimeout(function(){var s=Pbe(n),f=document.createElement("canvas");f.id=Rbe.randstr(),t=Nbe({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=SV.getRedrawFunc(n);return Fbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}EV.exports=Ibe});var DV=N((uqe,LV)=>{"use strict";var CV=r0(),Obe={getDelay:CV.getDelay,getRedrawFunc:CV.getRedrawFunc,clone:jT(),toSVG:xb(),svgToImg:_b(),toImage:kV(),downloadImage:y6()};LV.exports=Obe});var RV=N(Wu=>{"use strict";Wu.version=Pg().version;LM();bC();var Bbe=Bt(),ky=Wu.register=Bbe.register,ZT=zO(),FV=Object.keys(ZT);for(dx=0;dx{"use strict";qV.exports=RV()});var JT=N((hqe,IV)=>{"use strict";var zbe=Bt(),kl=Ur(),Gbe=j6();function Ube(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,V=!!o.yperiodalignment;for(M=0;M=Math.min(ae,re)&&c<=Math.max(ae,re)?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 OV=20;BV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:OV,SYMBOL_STROKE:OV/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 mx=N((pqe,HV)=>{"use strict";var Hbe=Ds(),Vbe=zi(),Ybe=jA(),An=lv(),zV=fm().axisHoverFormat,GV=Nh(),Wbe=f2(),$T=zn().extendFlat,jbe=Rs().overrideAll,Xbe=mp().DASHES,UV=An.line,ju=An.marker,Zbe=ju.line,yv=HV.exports=jbe({x:An.x,x0:An.x0,dx:An.dx,y:An.y,y0:An.y0,dy:An.dy,xperiod:An.xperiod,yperiod:An.yperiod,xperiod0:An.xperiod0,yperiod0:An.yperiod0,xperiodalignment:An.xperiodalignment,yperiodalignment:An.yperiodalignment,xhoverformat:zV("x"),yhoverformat:zV("y"),text:An.text,hovertext:An.hovertext,textposition:An.textposition,textfont:Vbe({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:UV.color,width:UV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Wbe(Xbe),dflt:"solid"}},marker:$T({},GV("marker"),{symbol:ju.symbol,angle:ju.angle,size:ju.size,sizeref:ju.sizeref,sizemin:ju.sizemin,sizemode:ju.sizemode,opacity:ju.opacity,colorbar:ju.colorbar,line:$T({},GV("marker.line"),{width:Zbe.width})}),connectgaps:An.connectgaps,fill:$T({},An.fill,{dflt:"none"}),fillcolor:Ybe(),selected:{marker:An.selected.marker,textfont:An.selected.textfont},unselected:{marker:An.unselected.marker,textfont:An.unselected.textfont},opacity:Hbe.opacity},"calc","nested");yv.x.editType=yv.y.editType=yv.x0.editType=yv.y0.editType="calc+clearAxisTypes";yv.hovertemplate=An.hovertemplate;yv.hovertemplatefallback=An.hovertemplatefallback;yv.texttemplate=An.texttemplate;yv.texttemplatefallback=An.texttemplatefallback});var yx=N(QT=>{"use strict";var VV=mp();QT.isOpenSymbol=function(e){return typeof e=="string"?VV.OPEN_RE.test(e):e%200>100};QT.isDotSymbol=function(e){return typeof e=="string"?VV.DOT_RE.test(e):e>200}});var jV=N((yqe,WV)=>{"use strict";var YV=Ur(),Jbe=Bt(),$be=yx(),Qbe=mx(),Kbe=Zm(),gx=qi(),exe=x6(),rxe=_6(),txe=Sb(),axe=w6(),nxe=T6(),ixe=A6();WV.exports=function(r,t,a,n){function i(d,p){return YV.coerce(r,t,Qbe,d,p)}var o=r.marker?$be.isOpenSymbol(r.marker.symbol):!1,l=gx.isBubble(r),s=exe(r,t,n,i);if(!s){t.visible=!1;return}rxe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var oxe=U6();XV.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]),oxe(r,t,a)}});var $V=N((bqe,JV)=>{"use strict";function lxe(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 sxe(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 fxe(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 uxe(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 cxe(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 Cy(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)}JV.exports={ge:function(e,r,t,a,n){return Cy(e,r,t,a,n,lxe)},gt:function(e,r,t,a,n){return Cy(e,r,t,a,n,sxe)},lt:function(e,r,t,a,n){return Cy(e,r,t,a,n,fxe)},le:function(e,r,t,a,n){return Cy(e,r,t,a,n,uxe)},eq:function(e,r,t,a,n){return Cy(e,r,t,a,n,cxe)}}});var Ly=N((xqe,QV)=>{QV.exports=vxe;function vxe(e,r,t){return rt?t:e:er?r:e}});var Hf=N((_qe,eY)=>{"use strict";eY.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=KV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var hxe=Hf();rY.exports=dxe;function dxe(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=hxe(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 v0=N((Aqe,tY)=>{"use strict";tY.exports=pxe;function pxe(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]{aY.exports=function(){for(var e=0;e{iY.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 h0=N((Sqe,lY)=>{var oY=bx();lY.exports=mxe;function mxe(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(oY(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";sY.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var cY=N((kqe,uY)=>{"use strict";uY.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var gY=N((Cqe,yY)=>{"use strict";var vY=$V(),hY=Ly(),yxe=yp(),gxe=v0(),dY=Hf(),e8=nY(),bxe=h0(),xxe=fY(),_xe=bx(),pY=cY(),wxe=1073741824;yY.exports=function(r,t){t||(t={}),r=bxe(r,"float64"),t=dY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=e8(t.maxDepth,255),n=e8(t.bounds,gxe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=mY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(_xe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>wxe){for(let J=0;JLe||F>Ue||P=R||oe===se)return;let Ee=s[j];se===void 0&&(se=Ee.length);for(let de=oe;de=x&&qe<=E&&Je>=A&&Je<=M&&H.push(ne)}let Ve=f[j],we=Ve[oe*4+0],fr=Ve[oe*4+1],Ie=Ve[oe*4+2],He=Ve[oe*4+3],vr=ae(Ve,oe+1),$e=J*.5,ee=j+1;V(re,Q,$e,ee,we,fr||Ie||He||vr),V(re,Q+$e,$e,ee,fr,Ie||He||vr),V(re+$e,Q,$e,ee,Ie,He||vr),V(re+$e,Q+$e,$e,ee,He,vr)}function ae(re,Q){let J=null,j=0;for(;J===null;)if(J=re[Q*4+j],j++,j>re.length)return null;return J}return H}function y(b,T,_,x,A){let E=[];for(let M=0;M{"use strict";bY.exports=gY()});var t8=N((Dqe,xY)=>{xY.exports=Axe;function Axe(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(xx,"__esModule",{value:!0});var Txe=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")}}(),Dy=Math.PI*2,a8=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}},Mxe=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}]},_Y=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)},Sxe=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=_Y(1,0,E,M),O=_Y(E,M,k,F);return s===0&&O>0&&(O-=Dy),s===1&&O<0&&(O+=Dy),[x,A,P,O]},Exe=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*Dy/360),m=Math.cos(f*Dy/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=Sxe(t,a,n,i,o,l,c,d,y,m,b,T),A=Txe(x,4),E=A[0],M=A[1],k=A[2],F=A[3],P=Math.abs(F)/(Dy/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";MY.exports=Cxe;var kxe=AY();function Cxe(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 _x(e,r,t,a){return["C",e,r,t,a,t,a]}function TY(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 n8=N((Rqe,EY)=>{"use strict";EY.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 wx=N((qqe,kY)=>{"use strict";kY.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 Fy=N((Pqe,CY)=>{"use strict";var Lxe=wx();CY.exports=function(){return Lxe()&&!!Symbol.toStringTag}});var i8=N((Nqe,LY)=>{"use strict";LY.exports=Object});var FY=N((Iqe,DY)=>{"use strict";DY.exports=Error});var qY=N((Oqe,RY)=>{"use strict";RY.exports=EvalError});var NY=N((Bqe,PY)=>{"use strict";PY.exports=RangeError});var OY=N((zqe,IY)=>{"use strict";IY.exports=ReferenceError});var o8=N((Gqe,BY)=>{"use strict";BY.exports=SyntaxError});var gp=N((Uqe,zY)=>{"use strict";zY.exports=TypeError});var UY=N((Hqe,GY)=>{"use strict";GY.exports=URIError});var VY=N((Vqe,HY)=>{"use strict";HY.exports=Math.abs});var WY=N((Yqe,YY)=>{"use strict";YY.exports=Math.floor});var XY=N((Wqe,jY)=>{"use strict";jY.exports=Math.max});var JY=N((jqe,ZY)=>{"use strict";ZY.exports=Math.min});var QY=N((Xqe,$Y)=>{"use strict";$Y.exports=Math.pow});var eW=N((Zqe,KY)=>{"use strict";KY.exports=Math.round});var tW=N((Jqe,rW)=>{"use strict";rW.exports=Number.isNaN||function(r){return r!==r}});var nW=N(($qe,aW)=>{"use strict";var Dxe=tW();aW.exports=function(r){return Dxe(r)||r===0?r:r<0?-1:1}});var oW=N((Qqe,iW)=>{"use strict";iW.exports=Object.getOwnPropertyDescriptor});var d0=N((Kqe,lW)=>{"use strict";var Ax=oW();if(Ax)try{Ax([],"length")}catch(e){Ax=null}lW.exports=Ax});var Ry=N((ePe,sW)=>{"use strict";var Tx=Object.defineProperty||!1;if(Tx)try{Tx({},"a",{value:1})}catch(e){Tx=!1}sW.exports=Tx});var cW=N((rPe,uW)=>{"use strict";var fW=typeof Symbol!="undefined"&&Symbol,Fxe=wx();uW.exports=function(){return typeof fW!="function"||typeof Symbol!="function"||typeof fW("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Fxe()}});var l8=N((tPe,vW)=>{"use strict";vW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var s8=N((aPe,hW)=>{"use strict";var Rxe=i8();hW.exports=Rxe.getPrototypeOf||null});var mW=N((nPe,pW)=>{"use strict";var qxe="Function.prototype.bind called on incompatible ",Pxe=Object.prototype.toString,Nxe=Math.max,Ixe="[object Function]",dW=function(r,t){for(var a=[],n=0;n{"use strict";var zxe=mW();yW.exports=Function.prototype.bind||zxe});var Mx=N((oPe,gW)=>{"use strict";gW.exports=Function.prototype.call});var f8=N((lPe,bW)=>{"use strict";bW.exports=Function.prototype.apply});var _W=N((sPe,xW)=>{"use strict";xW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var AW=N((fPe,wW)=>{"use strict";var Gxe=bp(),Uxe=f8(),Hxe=Mx(),Vxe=_W();wW.exports=Vxe||Gxe.call(Hxe,Uxe)});var MW=N((uPe,TW)=>{"use strict";var Yxe=bp(),Wxe=gp(),jxe=Mx(),Xxe=AW();TW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Wxe("a function is required");return Xxe(Yxe,jxe,r)}});var DW=N((cPe,LW)=>{"use strict";var Zxe=MW(),SW=d0(),kW;try{kW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var u8=!!kW&&SW&&SW(Object.prototype,"__proto__"),CW=Object,EW=CW.getPrototypeOf;LW.exports=u8&&typeof u8.get=="function"?Zxe([u8.get]):typeof EW=="function"?function(r){return EW(r==null?r:CW(r))}:!1});var NW=N((vPe,PW)=>{"use strict";var FW=l8(),RW=s8(),qW=DW();PW.exports=FW?function(r){return FW(r)}:RW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return RW(r)}:qW?function(r){return qW(r)}:null});var OW=N((hPe,IW)=>{"use strict";var Jxe=Function.prototype.call,$xe=Object.prototype.hasOwnProperty,Qxe=bp();IW.exports=Qxe.call(Jxe,$xe)});var kx=N((dPe,VW)=>{"use strict";var Fa,Kxe=i8(),e_e=FY(),r_e=qY(),t_e=NY(),a_e=OY(),Ap=o8(),wp=gp(),n_e=UY(),i_e=VY(),o_e=WY(),l_e=XY(),s_e=JY(),f_e=QY(),u_e=eW(),c_e=nW(),UW=Function,c8=function(e){try{return UW('"use strict"; return ('+e+").constructor;")()}catch(r){}},qy=d0(),v_e=Ry(),v8=function(){throw new wp},h_e=qy?function(){try{return arguments.callee,v8}catch(e){try{return qy(arguments,"callee").get}catch(r){return v8}}}():v8,xp=cW()(),Vi=NW(),d_e=s8(),p_e=l8(),HW=f8(),Py=Mx(),_p={},m_e=typeof Uint8Array=="undefined"||!Vi?Fa:Vi(Uint8Array),p0={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Fa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Fa:ArrayBuffer,"%ArrayIteratorPrototype%":xp&&Vi?Vi([][Symbol.iterator]()):Fa,"%AsyncFromSyncIteratorPrototype%":Fa,"%AsyncFunction%":_p,"%AsyncGenerator%":_p,"%AsyncGeneratorFunction%":_p,"%AsyncIteratorPrototype%":_p,"%Atomics%":typeof Atomics=="undefined"?Fa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Fa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Fa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Fa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Fa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e_e,"%eval%":eval,"%EvalError%":r_e,"%Float16Array%":typeof Float16Array=="undefined"?Fa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Fa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Fa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Fa:FinalizationRegistry,"%Function%":UW,"%GeneratorFunction%":_p,"%Int8Array%":typeof Int8Array=="undefined"?Fa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Fa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Fa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xp&&Vi?Vi(Vi([][Symbol.iterator]())):Fa,"%JSON%":typeof JSON=="object"?JSON:Fa,"%Map%":typeof Map=="undefined"?Fa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!xp||!Vi?Fa:Vi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Kxe,"%Object.getOwnPropertyDescriptor%":qy,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Fa:Promise,"%Proxy%":typeof Proxy=="undefined"?Fa:Proxy,"%RangeError%":t_e,"%ReferenceError%":a_e,"%Reflect%":typeof Reflect=="undefined"?Fa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Fa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!xp||!Vi?Fa:Vi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Fa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xp&&Vi?Vi(""[Symbol.iterator]()):Fa,"%Symbol%":xp?Symbol:Fa,"%SyntaxError%":Ap,"%ThrowTypeError%":h_e,"%TypedArray%":m_e,"%TypeError%":wp,"%Uint8Array%":typeof Uint8Array=="undefined"?Fa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Fa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Fa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Fa:Uint32Array,"%URIError%":n_e,"%WeakMap%":typeof WeakMap=="undefined"?Fa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Fa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Fa:WeakSet,"%Function.prototype.call%":Py,"%Function.prototype.apply%":HW,"%Object.defineProperty%":v_e,"%Object.getPrototypeOf%":d_e,"%Math.abs%":i_e,"%Math.floor%":o_e,"%Math.max%":l_e,"%Math.min%":s_e,"%Math.pow%":f_e,"%Math.round%":u_e,"%Math.sign%":c_e,"%Reflect.getPrototypeOf%":p_e};if(Vi)try{null.error}catch(e){BW=Vi(Vi(e)),p0["%Error.prototype%"]=BW}var BW,y_e=function e(r){var t;if(r==="%AsyncFunction%")t=c8("async function () {}");else if(r==="%GeneratorFunction%")t=c8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=c8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Vi&&(t=Vi(n.prototype))}return p0[r]=t,t},zW={__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"]},Ny=bp(),Sx=OW(),g_e=Ny.call(Py,Array.prototype.concat),b_e=Ny.call(HW,Array.prototype.splice),GW=Ny.call(Py,String.prototype.replace),Ex=Ny.call(Py,String.prototype.slice),x_e=Ny.call(Py,RegExp.prototype.exec),__e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w_e=/\\(\\)?/g,A_e=function(r){var t=Ex(r,0,1),a=Ex(r,-1);if(t==="%"&&a!=="%")throw new Ap("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new Ap("invalid intrinsic syntax, expected opening `%`");var n=[];return GW(r,__e,function(i,o,l,s){n[n.length]=l?GW(s,w_e,"$1"):o||i}),n},T_e=function(r,t){var a=r,n;if(Sx(zW,a)&&(n=zW[a],a="%"+n[0]+"%"),Sx(p0,a)){var i=p0[a];if(i===_p&&(i=y_e(a)),typeof i=="undefined"&&!t)throw new wp("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new Ap("intrinsic "+r+" does not exist!")};VW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new wp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new wp('"allowMissing" argument must be a boolean');if(x_e(/^%?[^%]*%?$/,r)===null)throw new Ap("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=A_e(r),n=a.length>0?a[0]:"",i=T_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],b_e(a,g_e([0,1],f)));for(var u=1,c=!0;u=a.length){var y=qy(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Sx(l,v),l=l[v];c&&!s&&(p0[o]=l)}}return l}});var XW=N((pPe,jW)=>{"use strict";var YW=Ry(),M_e=o8(),Tp=gp(),WW=d0();jW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Tp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Tp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tp("`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=!!WW&&WW(r,t);if(YW)YW(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 M_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var d8=N((mPe,JW)=>{"use strict";var h8=Ry(),ZW=function(){return!!h8};ZW.hasArrayLengthDefineBug=function(){if(!h8)return null;try{return h8([],"length",{value:1}).length!==1}catch(r){return!0}};JW.exports=ZW});var rj=N((yPe,ej)=>{"use strict";var S_e=kx(),$W=XW(),E_e=d8()(),QW=d0(),KW=gp(),k_e=S_e("%Math.floor%");ej.exports=function(r,t){if(typeof r!="function")throw new KW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||k_e(t)!==t)throw new KW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&QW){var o=QW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(E_e?$W(r,"length",t,!0,!0):$W(r,"length",t)),r}});var Iy=N((gPe,Cx)=>{"use strict";var p8=bp(),Lx=kx(),C_e=rj(),L_e=gp(),nj=Lx("%Function.prototype.apply%"),ij=Lx("%Function.prototype.call%"),oj=Lx("%Reflect.apply%",!0)||p8.call(ij,nj),tj=Ry(),D_e=Lx("%Math.max%");Cx.exports=function(r){if(typeof r!="function")throw new L_e("a function is required");var t=oj(p8,ij,arguments);return C_e(t,1+D_e(0,r.length-(arguments.length-1)),!0)};var aj=function(){return oj(p8,nj,arguments)};tj?tj(Cx.exports,"apply",{value:aj}):Cx.exports.apply=aj});var Mp=N((bPe,fj)=>{"use strict";var lj=kx(),sj=Iy(),F_e=sj(lj("String.prototype.indexOf"));fj.exports=function(r,t){var a=lj(r,!!t);return typeof a=="function"&&F_e(r,".prototype.")>-1?sj(a):a}});var vj=N((xPe,cj)=>{"use strict";var R_e=Fy()(),q_e=Mp(),m8=q_e("Object.prototype.toString"),Dx=function(r){return R_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:m8(r)==="[object Arguments]"},uj=function(r){return Dx(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&m8(r)!=="[object Array]"&&m8(r.callee)==="[object Function]"},P_e=function(){return Dx(arguments)}();Dx.isLegacyArguments=uj;cj.exports=P_e?Dx:uj});var pj=N((_Pe,dj)=>{"use strict";var N_e=Object.prototype.toString,I_e=Function.prototype.toString,O_e=/^\s*(?:function)?\*/,hj=Fy()(),y8=Object.getPrototypeOf,B_e=function(){if(!hj)return!1;try{return Function("return function*() {}")()}catch(e){}},g8;dj.exports=function(r){if(typeof r!="function")return!1;if(O_e.test(I_e.call(r)))return!0;if(!hj){var t=N_e.call(r);return t==="[object GeneratorFunction]"}if(!y8)return!1;if(typeof g8=="undefined"){var a=B_e();g8=a?y8(a):!1}return y8(r)===g8}});var bj=N((wPe,gj)=>{"use strict";var yj=Function.prototype.toString,Sp=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x8,Fx;if(typeof Sp=="function"&&typeof Object.defineProperty=="function")try{x8=Object.defineProperty({},"length",{get:function(){throw Fx}}),Fx={},Sp(function(){throw 42},null,x8)}catch(e){e!==Fx&&(Sp=null)}else Sp=null;var z_e=/^\s*class\b/,_8=function(r){try{var t=yj.call(r);return z_e.test(t)}catch(a){return!1}},b8=function(r){try{return _8(r)?!1:(yj.call(r),!0)}catch(t){return!1}},Rx=Object.prototype.toString,G_e="[object Object]",U_e="[object Function]",H_e="[object GeneratorFunction]",V_e="[object HTMLAllCollection]",Y_e="[object HTML document.all class]",W_e="[object HTMLCollection]",j_e=typeof Symbol=="function"&&!!Symbol.toStringTag,X_e=!(0 in[,]),w8=function(){return!1};typeof document=="object"&&(mj=document.all,Rx.call(mj)===Rx.call(document.all)&&(w8=function(r){if((X_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Rx.call(r);return(t===V_e||t===Y_e||t===W_e||t===G_e)&&r("")==null}catch(a){}return!1}));var mj;gj.exports=Sp?function(r){if(w8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Sp(r,null,x8)}catch(t){if(t!==Fx)return!1}return!_8(r)&&b8(r)}:function(r){if(w8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(j_e)return b8(r);if(_8(r))return!1;var t=Rx.call(r);return t!==U_e&&t!==H_e&&!/^\[object HTML/.test(t)?!1:b8(r)}});var A8=N((APe,_j)=>{"use strict";var Z_e=bj(),J_e=Object.prototype.toString,xj=Object.prototype.hasOwnProperty,$_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),J_e.call(r)==="[object Array]"?$_e(r,t,n):typeof r=="string"?Q_e(r,t,n):K_e(r,t,n)};_j.exports=e5e});var M8=N((TPe,wj)=>{"use strict";var T8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r5e=typeof globalThis=="undefined"?window:globalThis;wj.exports=function(){for(var r=[],t=0;t{"use strict";var Px=A8(),t5e=M8(),Aj=Iy(),k8=Mp(),qx=d0(),a5e=k8("Object.prototype.toString"),Mj=Fy()(),Tj=typeof globalThis=="undefined"?window:globalThis,E8=t5e(),C8=k8("String.prototype.slice"),S8=Object.getPrototypeOf,n5e=k8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:o5e(r)}return qx?i5e(r):null}});var Rj=N((SPe,Fj)=>{"use strict";var kj=A8(),l5e=M8(),D8=Mp(),s5e=D8("Object.prototype.toString"),Cj=Fy()(),Ix=d0(),f5e=typeof globalThis=="undefined"?window:globalThis,Lj=l5e(),u5e=D8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Ix?v5e(r):!1}});var jj=N(Ra=>{"use strict";var h5e=vj(),d5e=pj(),Qs=Ej(),qj=Rj();function Ep(e){return e.call.bind(e)}var Pj=typeof BigInt!="undefined",Nj=typeof Symbol!="undefined",is=Ep(Object.prototype.toString),p5e=Ep(Number.prototype.valueOf),m5e=Ep(String.prototype.valueOf),y5e=Ep(Boolean.prototype.valueOf);Pj&&(Ij=Ep(BigInt.prototype.valueOf));var Ij;Nj&&(Oj=Ep(Symbol.prototype.valueOf));var Oj;function By(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Ra.isArgumentsObject=h5e;Ra.isGeneratorFunction=d5e;Ra.isTypedArray=qj;function g5e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ra.isPromise=g5e;function b5e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):qj(e)||zj(e)}Ra.isArrayBufferView=b5e;function x5e(e){return Qs(e)==="Uint8Array"}Ra.isUint8Array=x5e;function _5e(e){return Qs(e)==="Uint8ClampedArray"}Ra.isUint8ClampedArray=_5e;function w5e(e){return Qs(e)==="Uint16Array"}Ra.isUint16Array=w5e;function A5e(e){return Qs(e)==="Uint32Array"}Ra.isUint32Array=A5e;function T5e(e){return Qs(e)==="Int8Array"}Ra.isInt8Array=T5e;function M5e(e){return Qs(e)==="Int16Array"}Ra.isInt16Array=M5e;function S5e(e){return Qs(e)==="Int32Array"}Ra.isInt32Array=S5e;function E5e(e){return Qs(e)==="Float32Array"}Ra.isFloat32Array=E5e;function k5e(e){return Qs(e)==="Float64Array"}Ra.isFloat64Array=k5e;function C5e(e){return Qs(e)==="BigInt64Array"}Ra.isBigInt64Array=C5e;function L5e(e){return Qs(e)==="BigUint64Array"}Ra.isBigUint64Array=L5e;function Ox(e){return is(e)==="[object Map]"}Ox.working=typeof Map!="undefined"&&Ox(new Map);function D5e(e){return typeof Map=="undefined"?!1:Ox.working?Ox(e):e instanceof Map}Ra.isMap=D5e;function Bx(e){return is(e)==="[object Set]"}Bx.working=typeof Set!="undefined"&&Bx(new Set);function F5e(e){return typeof Set=="undefined"?!1:Bx.working?Bx(e):e instanceof Set}Ra.isSet=F5e;function zx(e){return is(e)==="[object WeakMap]"}zx.working=typeof WeakMap!="undefined"&&zx(new WeakMap);function R5e(e){return typeof WeakMap=="undefined"?!1:zx.working?zx(e):e instanceof WeakMap}Ra.isWeakMap=R5e;function R8(e){return is(e)==="[object WeakSet]"}R8.working=typeof WeakSet!="undefined"&&R8(new WeakSet);function q5e(e){return R8(e)}Ra.isWeakSet=q5e;function Gx(e){return is(e)==="[object ArrayBuffer]"}Gx.working=typeof ArrayBuffer!="undefined"&&Gx(new ArrayBuffer);function Bj(e){return typeof ArrayBuffer=="undefined"?!1:Gx.working?Gx(e):e instanceof ArrayBuffer}Ra.isArrayBuffer=Bj;function Ux(e){return is(e)==="[object DataView]"}Ux.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ux(new DataView(new ArrayBuffer(1),0,1));function zj(e){return typeof DataView=="undefined"?!1:Ux.working?Ux(e):e instanceof DataView}Ra.isDataView=zj;var F8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Oy(e){return is(e)==="[object SharedArrayBuffer]"}function Gj(e){return typeof F8=="undefined"?!1:(typeof Oy.working=="undefined"&&(Oy.working=Oy(new F8)),Oy.working?Oy(e):e instanceof F8)}Ra.isSharedArrayBuffer=Gj;function P5e(e){return is(e)==="[object AsyncFunction]"}Ra.isAsyncFunction=P5e;function N5e(e){return is(e)==="[object Map Iterator]"}Ra.isMapIterator=N5e;function I5e(e){return is(e)==="[object Set Iterator]"}Ra.isSetIterator=I5e;function O5e(e){return is(e)==="[object Generator]"}Ra.isGeneratorObject=O5e;function B5e(e){return is(e)==="[object WebAssembly.Module]"}Ra.isWebAssemblyCompiledModule=B5e;function Uj(e){return By(e,p5e)}Ra.isNumberObject=Uj;function Hj(e){return By(e,m5e)}Ra.isStringObject=Hj;function Vj(e){return By(e,y5e)}Ra.isBooleanObject=Vj;function Yj(e){return Pj&&By(e,Ij)}Ra.isBigIntObject=Yj;function Wj(e){return Nj&&By(e,Oj)}Ra.isSymbolObject=Wj;function z5e(e){return Uj(e)||Hj(e)||Vj(e)||Yj(e)||Wj(e)}Ra.isBoxedPrimitive=z5e;function G5e(e){return typeof Uint8Array!="undefined"&&(Bj(e)||Gj(e))}Ra.isAnyArrayBuffer=G5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ra,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Zj=N((kPe,Xj)=>{Xj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Jj=N((CPe,q8)=>{typeof Object.create=="function"?q8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:q8.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 Cp=N(qa=>{var $j=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]),O8(r)?t.showHidden=r:r&&qa._extend(t,r),y0(t.showHidden)&&(t.showHidden=!1),y0(t.depth)&&(t.depth=2),y0(t.colors)&&(t.colors=!1),y0(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=H5e),Wx(t,e,t.depth)}qa.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 H5e(e,r){var t=gv.styles[r];return t?"\x1B["+gv.colors[t][0]+"m"+e+"\x1B["+gv.colors[t][1]+"m":e}function V5e(e,r){return e}function Y5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Wx(e,r,t){if(e.customInspect&&r&&Yx(r.inspect)&&r.inspect!==qa.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Zx(a)||(a=Wx(e,a,t)),a}var n=W5e(e,r);if(n)return n;var i=Object.keys(r),o=Y5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Gy(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P8(r);if(i.length===0){if(Yx(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(zy(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(jx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Gy(r))return P8(r)}var s="",f=!1,u=["{","}"];if(Kj(r)&&(f=!0,u=["[","]"]),Yx(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(zy(r)&&(s=" "+RegExp.prototype.toString.call(r)),jx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Gy(r)&&(s=" "+P8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return zy(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 I8(e,r,t,o,d,f)}),e.seen.pop(),X5e(v,s,u)}function W5e(e,r){if(y0(r))return e.stylize("undefined","undefined");if(Zx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(eX(r))return e.stylize(""+r,"number");if(O8(r))return e.stylize(""+r,"boolean");if(Xx(r))return e.stylize("null","null")}function P8(e){return"["+Error.prototype.toString.call(e)+"]"}function j5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";kk.exports=function(r){return r}});var Z5=N(Lu=>{"use strict";var gle=ba(),ble=Sh(),xle=f2(),_le=ri().BADNUM,X5=1e-9;Lu.findBin=function(e,r,t){if(gle(r.start))return t?Math.ceil((e-r.start)/r.size-X5)-1:Math.floor((e-r.start)/r.size+X5);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?wle:Ale:s=t?Mle:Tle,e+=o*X5*(t?-1:1)*(o>=0?1:-1);a90&&ble.log("Long binary search..."),a-1};function wle(e,r){return er}function Mle(e,r){return e>=r}Lu.sorterAsc=function(e,r){return e-r};Lu.sorterDes=function(e,r){return r-e};Lu.distinctVals=function(e){var r=e.slice();r.sort(Lu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===_le;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}};Lu.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()};Lu.findIndexOfMin=function(e,r){r=r||xle;for(var t=1/0,a,n=0;n{"use strict";Ck.exports=function(r){return Object.keys(r).sort()}});var Lk=N(Hn=>{"use strict";var Q1=ba(),Sle=Wo().isArrayOrTypedArray;Hn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Q1(r)||(r=!1),Sle(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 Pk=N((aCe,qk)=>{"use strict";var Dk=nd(),J5=Dk.mod,Ele=Dk.modHalf,K1=Math.PI,zc=2*K1;function kle(e){return e/180*K1}function Cle(e){return e/K1*180}function $5(e){return Math.abs(e[1]-e[0])>zc-1e-14}function Fk(e,r){return Ele(r-e,zc)}function Lle(e,r){return Math.abs(Fk(e,r))}function Rk(e,r){if($5(r))return!0;var t,a;r[0]a&&(a+=zc);var n=J5(e,zc),i=n+zc;return n>=t&&n<=a||i>=t&&i<=a}function Dle(e,r,t,a){if(!Rk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Q5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=$5([t,a]),s,f,u,c,v;l?(s=0,f=K1,u=zc):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 Bk=N(Ch=>{"use strict";var K5=nd().mod;Ch.segmentsIntersect=Ok;function Ok(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(Ok(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,e4,Ik;Ch.getTextLocation=function(r,t,a,n){if((r!==e4||n!==Ik)&&(v2={},e4=r,Ik=n),v2[a])return v2[a];var i=r.getPointAtLength(K5(a-n/2,t)),o=r.getPointAtLength(K5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(K5(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(){e4=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(em=>{"use strict";var Du={};em.throttle=function(r,t,a){var n=Du[r],i=Date.now();if(!n){for(var o in Du)Du[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};em.done=function(e){var r=Du[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};em.clear=function(e){if(e)zk(Du[e]),delete Du[e];else for(var r in Du)em.clear(r)};function zk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Uk=N((lCe,Gk)=>{"use strict";Gk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Hk=N((sCe,d2)=>{"use strict";d2.exports=r4;d2.exports.isMobile=r4;d2.exports.default=r4;var Ple=/(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,Nle=/CrOS/,Ile=/android|ipad|playbook|silk/i;function r4(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=Ple.test(r)&&!Nle.test(r)||!!e.tablet&&Ile.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Yk=N((fCe,Vk)=>{"use strict";var Ole=ba(),Ble=Hk();Vk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=zle(),typeof t!="string")return!0;var a=Ble({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(Ole(f)&&(f=+f),f>=13)return!0}}}return a};function zle(){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 jk=N((uCe,Wk)=>{"use strict";var Gle=da();Wk.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]=Gle.select(this)}),n}});var Zk=N((cCe,Xk)=>{"use strict";var Ule=Bt();Xk.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=Ule.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var $k=N((vCe,Jk)=>{"use strict";Jk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Qk.exports=function(r){for(var t=Yle(r)?Vle:Hle,a=[],n=0;n{"use strict";eC.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 aC=N((pCe,tC)=>{"use strict";var Wle=ba(),jle=ri().BADNUM,Xle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;tC.exports=function(r){return typeof r=="string"&&(r=r.replace(Xle,"")),Wle(r)?Number(r):jle}});var Ur=N((mCe,mC)=>{"use strict";var rm=da(),Zle=td().utcFormat,Jle=S5().format,fC=ba(),uC=ri(),cC=uC.FP_SAFE,$le=-cC,nC=uC.BADNUM,We=mC.exports={};We.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 iC={};We.warnBadFormat=function(e){var r=String(e);iC[r]||(iC[r]=1,We.warn('encountered bad format: "'+r+'"'))};We.noFormat=function(e){return String(e)};We.numberFormat=function(e){var r;try{r=Jle(We.adjustFormat(e))}catch(t){return We.warnBadFormat(e),We.noFormat}return r};We.nestedProperty=Vg();We.keyedContainer=JM();We.relativeAttr=QM();We.isPlainObject=Fc();We.toLogRange=Wg();We.relinkPrivateKeys=tS();var Gc=Wo();We.isArrayBuffer=Gc.isArrayBuffer;We.isTypedArray=Gc.isTypedArray;We.isArrayOrTypedArray=Gc.isArrayOrTypedArray;We.isArray1D=Gc.isArray1D;We.ensureArray=Gc.ensureArray;We.concat=Gc.concat;We.maxRowLength=Gc.maxRowLength;We.minRowLength=Gc.minRowLength;var vC=nd();We.mod=vC.mod;We.modHalf=vC.modHalf;var Uc=_S();We.valObjectMeta=Uc.valObjectMeta;We.coerce=Uc.coerce;We.coerce2=Uc.coerce2;We.coerceFont=Uc.coerceFont;We.coercePattern=Uc.coercePattern;We.coerceHoverinfo=Uc.coerceHoverinfo;We.coerceSelectionMarkerOpacity=Uc.coerceSelectionMarkerOpacity;We.validate=Uc.validate;var yl=Ek();We.dateTime2ms=yl.dateTime2ms;We.isDateTime=yl.isDateTime;We.ms2DateTime=yl.ms2DateTime;We.ms2DateTimeLocal=yl.ms2DateTimeLocal;We.cleanDate=yl.cleanDate;We.isJSDate=yl.isJSDate;We.formatDate=yl.formatDate;We.incrementMonth=yl.incrementMonth;We.dateTick0=yl.dateTick0;We.dfltRange=yl.dfltRange;We.findExactDates=yl.findExactDates;We.MIN_MS=yl.MIN_MS;We.MAX_MS=yl.MAX_MS;var Lh=Z5();We.findBin=Lh.findBin;We.sorterAsc=Lh.sorterAsc;We.sorterDes=Lh.sorterDes;We.distinctVals=Lh.distinctVals;We.roundUp=Lh.roundUp;We.sort=Lh.sort;We.findIndexOfMin=Lh.findIndexOfMin;We.sortObjectKeys=u2();var Fu=Lk();We.aggNums=Fu.aggNums;We.len=Fu.len;We.mean=Fu.mean;We.geometricMean=Fu.geometricMean;We.median=Fu.median;We.midRange=Fu.midRange;We.variance=Fu.variance;We.stdev=Fu.stdev;We.interp=Fu.interp;var qs=Kg();We.init2dArray=qs.init2dArray;We.transposeRagged=qs.transposeRagged;We.dot=qs.dot;We.translationMatrix=qs.translationMatrix;We.rotationMatrix=qs.rotationMatrix;We.rotationXYMatrix=qs.rotationXYMatrix;We.apply3DTransform=qs.apply3DTransform;We.apply2DTransform=qs.apply2DTransform;We.apply2DTransform2=qs.apply2DTransform2;We.convertCssMatrix=qs.convertCssMatrix;We.inverseTransformMatrix=qs.inverseTransformMatrix;var Sf=Pk();We.deg2rad=Sf.deg2rad;We.rad2deg=Sf.rad2deg;We.angleDelta=Sf.angleDelta;We.angleDist=Sf.angleDist;We.isFullCircle=Sf.isFullCircle;We.isAngleInsideSector=Sf.isAngleInsideSector;We.isPtInsideSector=Sf.isPtInsideSector;We.pathArc=Sf.pathArc;We.pathSector=Sf.pathSector;We.pathAnnulus=Sf.pathAnnulus;var gd=Nk();We.isLeftAnchor=gd.isLeftAnchor;We.isCenterAnchor=gd.isCenterAnchor;We.isRightAnchor=gd.isRightAnchor;We.isTopAnchor=gd.isTopAnchor;We.isMiddleAnchor=gd.isMiddleAnchor;We.isBottomAnchor=gd.isBottomAnchor;var bd=Bk();We.segmentsIntersect=bd.segmentsIntersect;We.segmentDistance=bd.segmentDistance;We.getTextLocation=bd.getTextLocation;We.clearLocationCache=bd.clearLocationCache;We.getVisibleSegment=bd.getVisibleSegment;We.findPointOnPath=bd.findPointOnPath;var y2=zn();We.extendFlat=y2.extendFlat;We.extendDeep=y2.extendDeep;We.extendDeepAll=y2.extendDeepAll;We.extendDeepNoArrays=y2.extendDeepNoArrays;var t4=Sh();We.log=t4.log;We.warn=t4.warn;We.error=t4.error;var Qle=ld();We.counterRegex=Qle.counter;var a4=h2();We.throttle=a4.throttle;We.throttleDone=a4.done;We.clearThrottle=a4.clear;var Ps=X1();We.getGraphDiv=Ps.getGraphDiv;We.isPlotDiv=Ps.isPlotDiv;We.removeElement=Ps.removeElement;We.addStyleRule=Ps.addStyleRule;We.addRelatedStyleRule=Ps.addRelatedStyleRule;We.deleteRelatedStyleRule=Ps.deleteRelatedStyleRule;We.setStyleOnHover=Ps.setStyleOnHover;We.getFullTransformMatrix=Ps.getFullTransformMatrix;We.getElementTransformMatrix=Ps.getElementTransformMatrix;We.getElementAndAncestors=Ps.getElementAndAncestors;We.equalDomRects=Ps.equalDomRects;We.clearResponsive=Uk();We.preserveDrawingBuffer=Yk();We.makeTraceGroups=jk();We._=Zk();We.notifier=I5();We.filterUnique=$k();We.filterVisible=Kk();We.pushUnique=z5();We.increment=rC();We.cleanNumber=aC();We.ensureNumber=function(r){return fC(r)?(r=Number(r),r>cC||r<$le?nC:r):nC};We.isIndex=function(e,r){return r!==void 0&&e>=r?!1:fC(e)&&e>=0&&e%1===0};We.noop=Qg();We.identity=f2();We.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))};We.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};We.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?(We.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};We.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};We.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};We.syncOrAsync=function(e,r,t){var a,n;function i(){return We.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)};We.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};We.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};We.fillArray=function(e,r,t,a){if(a=a||We.identity,We.isArrayOrTypedArray(e))for(var n=0;nrse.test(window.navigator.userAgent);var tse=/Firefox\/(\d+)\.\d+/;We.getFirefoxVersion=function(){var e=tse.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};We.isD3Selection=function(e){return e instanceof rm.selection};We.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};We.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};We.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};We.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var pC=/^\w*$/;We.templateString=function(e,r){var t={};return e.replace(We.TEMPLATE_STRING_REGEX,function(a,n){var i;return pC.test(n)?i=r[n]:(t[n]=t[n]||We.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var ise={max:10,count:0,name:"hovertemplate"};We.hovertemplateString=e=>n4(qg(_h({},e),{opts:ise}));var ose={max:10,count:0,name:"texttemplate"};We.texttemplateString=e=>n4(qg(_h({},e),{opts:ose}));var lse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function sse(e){var r=e.match(lse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var fse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};We.texttemplateStringForShapes=e=>n4(qg(_h({},e),{opts:fse}));var oC=/^[:|\|]/;function n4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(We.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=sse(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(pC.test(l)||(b=We.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<=lC,f=l>=m2&&l<=lC;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 yd=2e9;We.seedPseudoRandom=function(){yd=2e9};We.pseudoRandom=function(){var e=yd;return yd=(69069*yd+1)%4294967296,Math.abs(yd-e)<429496729?We.pseudoRandom():yd/4294967296};We.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=We.extractOption(e,r,"htx","hovertext");if(We.isValidTextValue(n))return a(n);var i=We.extractOption(e,r,"tx","text");if(We.isValidTextValue(i))return a(i)};We.isValidTextValue=function(e){return e||e===0};We.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,We.strTranslate(n-f*(t+o),i-f*(a+l))+We.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};We.setTransormAndDisplay=function(e,r){e.attr("transform",We.getTextTransform(r)),e.style("display",r.scale?null:"none")};We.ensureUniformFontSize=function(e,r){var t=We.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};We.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)};We.bigFont=function(e){return Math.round(1.2*e)};var sC=We.getFirefoxVersion(),use=sC!==null&&sC<86;We.getPositionFromD3Event=function(){return use?[rm.event.layerX,rm.event.layerY]:[rm.event.offsetX,rm.event.offsetY]}});var bC=N(()=>{"use strict";var cse=Ur(),yC={"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(i4 in yC)gC=i4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),cse.addStyleRule(gC,yC[i4]);var gC,i4});var o4=N((xCe,xC)=>{xC.exports=!0});var s4=N((_Ce,_C)=>{"use strict";var vse=o4(),l4;typeof window.matchMedia=="function"?l4=!window.matchMedia("(hover: none)").matches:l4=vse;_C.exports=l4});var x2=N((wCe,f4)=>{"use strict";var xd=typeof Reflect=="object"?Reflect:null,wC=xd&&typeof xd.apply=="function"?xd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},g2;xd&&typeof xd.ownKeys=="function"?g2=xd.ownKeys:Object.getOwnPropertySymbols?g2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:g2=function(r){return Object.getOwnPropertyNames(r)};function hse(e){console&&console.warn&&console.warn(e)}var TC=Number.isNaN||function(r){return r!==r};function pn(){pn.init.call(this)}f4.exports=pn;f4.exports.once=yse;pn.EventEmitter=pn;pn.prototype._events=void 0;pn.prototype._eventsCount=0;pn.prototype._maxListeners=void 0;var AC=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(pn,"defaultMaxListeners",{enumerable:!0,get:function(){return AC},set:function(e){if(typeof e!="number"||e<0||TC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");AC=e}});pn.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};pn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||TC(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 MC(e){return e._maxListeners===void 0?pn.defaultMaxListeners:e._maxListeners}pn.prototype.getMaxListeners=function(){return MC(this)};pn.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")wC(s,this,t);else for(var f=s.length,u=LC(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,hse(l)}return e}pn.prototype.addListener=function(r,t){return SC(this,r,t,!1)};pn.prototype.on=pn.prototype.addListener;pn.prototype.prependListener=function(r,t){return SC(this,r,t,!0)};function dse(){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 EC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=dse.bind(a);return n.listener=t,a.wrapFn=n,n}pn.prototype.once=function(r,t){return b2(t),this.on(r,EC(this,r,t)),this};pn.prototype.prependOnceListener=function(r,t){return b2(t),this.prependListener(r,EC(this,r,t)),this};pn.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():pse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};pn.prototype.off=pn.prototype.removeListener;pn.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 kC(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?mse(n):LC(n,n.length)}pn.prototype.listeners=function(r){return kC(this,r,!0)};pn.prototype.rawListeners=function(r){return kC(this,r,!1)};pn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):CC.call(e,r)};pn.prototype.listenerCount=CC;function CC(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}pn.prototype.eventNames=function(){return this._eventsCount>0?g2(this._events):[]};function LC(e,r){for(var t=new Array(r),a=0;a{"use strict";var u4=x2().EventEmitter,bse={init:function(e){if(e._ev instanceof u4)return e;var r=new u4,t=new u4;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 RC=Ur(),xse=Mh().dfltConfig;function _se(e,r){for(var t=[],a,n=0;nxse.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ru.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ru.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ru.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";NC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Ad=N(ui=>{"use strict";var Gl=Bt(),am=Ur(),w2=Ds(),v4=vd(),wse=c4(),Ase=Z1(),Tse=Mh().configAttributes,IC=Rs(),Ns=am.extendDeepAll,_d=am.isPlainObject,Mse=am.isArrayOrTypedArray,A2=am.nestedProperty,Sse=am.valObjectMeta,h4="_isSubplotObj",T2="_isLinkedToArray",Ese="_arrayAttrRegexps",BC="_deprecated",d4=[h4,T2,Ese,BC];ui.IS_SUBPLOT_OBJ=h4;ui.IS_LINKED_TO_ARRAY=T2;ui.DEPRECATED=BC;ui.UNDERSCORE_ATTRS=d4;ui.get=function(){var e={};return Gl.allTypes.forEach(function(r){e[r]=Cse(r)}),{defs:{valObjects:Sse,metaKeys:d4.concat(["description","role","editType","impliedEdits"]),editType:{traces:IC.traces,layout:IC.layout},impliedEdits:{}},traces:e,layout:Lse(),frames:Dse(),animation:wd(Ase),config:wd(Tse)}};ui.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(d4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ui.isValObject(o)&&_d(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)Mse(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 Cse(e){var r,t;r=Gl.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),Gl.traceIs(e,"noOpacity")&&delete a.opacity,Gl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Gl.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:wd(a)};if(r.layoutAttributes){var l={};Ns(l,r.layoutAttributes),o.layoutAttributes=wd(l)}return r.animatable||ui.crawl(o,function(s){ui.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Lse(){var e={},r,t;Ns(e,v4);for(r in Gl.subplotsRegistry)if(t=Gl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Td=Ur(),Nse=Ds(),Hc="templateitemname",p4={name:{valType:"string",editType:"none"}};p4[Hc]={valType:"string",editType:"calc"};Dh.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=p4.name,r[Hc]=p4[Hc],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=Td.coerce(i,{},Nse,"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]);Td.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[UC(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[Hc]=f[Hc];if(!GC(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][Hc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?Td.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)Td.nestedProperty(e,m).set(y[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var ci=N((kCe,HC)=>{"use strict";var nm=ld().counter;HC.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 kn=N(Jo=>{"use strict";var Ise=Bt(),m4=ci();Jo.id2name=function(r){if(!(typeof r!="string"||!r.match(m4.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(m4.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(m4.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 VC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Ose(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Bse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}YC.exports={clearOutlineControllers:Ose,clearOutline:Bse}});var M2=N((DCe,WC)=>{"use strict";WC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var im=N(E2=>{"use strict";var S2=Bt(),FCe=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 zse=Bt(),Md=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){jC(e,o,n.cache),n.check=function(){if(i){var u=jC(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;Md.isPlainObject(i)?y4(i,r,o,a+1):r(o,n,i)}})}});var _i=N((PCe,uL)=>{"use strict";var aL=da(),Use=td().timeFormatLocale,Hse=S5().formatLocale,om=ba(),Vse=E5(),ka=Bt(),nL=Ad(),Yse=Xa(),Mt=Ur(),iL=ha(),$C=ri().BADNUM,$o=kn(),Wse=Vc().clearOutline,jse=M2(),g4=Z1(),Xse=c4(),Zse=im().getModuleCalcData,QC=Mt.relinkPrivateKeys,Rh=Mt._,mt=uL.exports={};Mt.extendFlat(mt,ka);mt.attributes=Ds();mt.attributes.type.values=mt.allTypes;mt.fontAttrs=zi();mt.layoutAttributes=vd();var C2=JC();mt.executeAPICommand=C2.executeAPICommand;mt.computeAPICommandBindings=C2.computeAPICommandBindings;mt.manageCommandObserver=C2.manageCommandObserver;mt.hasSimpleAPICommandBindings=C2.hasSimpleAPICommandBindings;mt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ka.getComponentMethod("annotations","draw")(e),ka.getComponentMethod("legend","draw")(e),ka.getComponentMethod("colorbar","draw")(e),r(mt.previousPromises(e)))},300)})};mt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.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||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ka.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};mt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:iL.defaultLine,"pointer-events":"all"}).each(function(){var f=aL.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&&Jse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Jse(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(){mt.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})}}mt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=aL.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=mt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var $se=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Qse=["year","month","dayMonth","dayMonthYear"];mt.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||mt.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=KC(e,$se);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;mt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),mt.sanitizeMargins(n)}else{mt.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=u.autosizable,T=y&&(m||b);T?mt.plotAutoSize(e,i,n):y&&mt.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=rfe(v,n.separators),n._extraFormat=KC(e,Qse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=efe(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Kse(o,s),mt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(ka.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,mt.linkSubplots(l,n,o,a),mt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=R,ae=H;V&&!ae?a._bgLayer.remove():ae&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Wse({_fullLayout:a}),tfe(l,n),QC(n,a),ka.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var re=n._tracePreGUI,Q={},J;for(J in re)Q[J]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=mt.layoutAttributes.width.min,v=mt.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}),mt.sanitizeMargins(a)};mt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ka.componentsRegistry,i=r._basePlotModules,o,l,s,f=ka.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(ka.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.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 mt.doAutoMargin(e)}};function nfe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=$o.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}mt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),oL(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.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"&&om(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,V=O.val,ae=O.size,re=t-o.r-o.l,Q=a-o.t-o.b;for(var J in v){if(om(H)&&v[J].r){var j=v[J].r.val,oe=v[J].r.size;if(j>R){var se=(H*j+(oe-re)*R)/(j-R),Le=(oe*(1-R)+(H-re)*(1-j))/(j-R);se+Le>s+f&&(s=se,f=Le)}}if(om(ae)&&v[J].t){var Ue=v[J].t.val,Ee=v[J].t.size;if(Ue>V){var Ve=(ae*Ue+(Ee-Q)*V)/(Ue-V),we=(Ee*(1-V)+(ae-Q)*(1-Ue))/(Ue-V);Ve+we>c+u&&(c=Ve,u=we)}}}}}var fr=Mt.constrain(t-i.l-i.r,lL,p),Ie=Mt.constrain(a-i.t-i.b,sL,y),He=Math.max(0,t-fr),vr=Math.max(0,a-Ie);if(He){var $e=(s+f)/He;$e>1&&(s/=$e,f/=$e)}if(vr){var ee=(c+u)/vr;ee>1&&(c/=ee,u/=ee)}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&&(mt.didMarginChange(l,n)||nfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var de=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};mt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&mt.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(Mt.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&&!Mt.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=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var T=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(T)?Vse.encode(T):T},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.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)};mt.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 ka.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 ka.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=[mt.previousPromises,s,t.prepareFn,mt.rehover,mt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}mt.doCalcdata=function(e,r){var t=$o.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:$C,y:$C}]),x[0].t||(x[0].t={}),x[0].trace=i,f[T]=x}}for(rL(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 ro=N((ICe,cL)=>{"use strict";cL.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 to=N(Ul=>{"use strict";var ti=da(),qu=Ur(),sfe=qu.strTranslate,b4=Yc(),ffe=ro().LINE_SPACING,ufe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ul.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(ufe),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=Afe(e.node(),a);s&&e.style("pointer-events","all"),Ul.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};dfe(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]+")"+sfe(-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 cfe=/(<|<|<)/g,vfe=/(>|>|>)/g;function hfe(e){return e.replace(cfe,"\\lt ").replace(vfe,"\\gt ")}var vL=[["$","$"],["\\(","\\)"]];function dfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){qu.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=qu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:vL},displayAlign:"left"})},f=function(){i=qu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=vL},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-"+qu.randstr({},64);l=ti.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(hfe(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(!_)qu.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)},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 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"},pfe={sub:"0.3em",sup:"-0.6em"},mfe={sub:"-0.21em",sup:"0.42em"},hL="\u200B",dL=["http:","https:","mailto:","",void 0,":"],yL=Ul.NEWLINES=/(\r\n?|\n)/g,_4=/(<[^<>]*>)/,w4=/<(\/?)([^ >]*)(\s+(.*))?>/i,yfe=//i;Ul.BR_TAG_ALL=//gi;var gL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,bL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,xL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,gfe=/(^|[\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 bfe=/(^|;)\s*color:/;Ul.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(_4),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 xfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},_fe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L2(e){return e.replace(_fe,function(r,t){var a;return t.charAt(0)==="#"?a=wfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=xfe[t],a||r})}Ul.convertEntities=L2;function wfe(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 Afe(e,r){r=r.replace(yL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(b4.svg,"tspan");ti.select(E).attr({class:"line",dy:i*ffe+"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&&qu.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=yfe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(_4),v=0;v{"use strict";var Tfe=da(),F2=Ls(),sm=ba(),D2=Ur(),wL=ha(),Mfe=Ah().isValid;function Sfe(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 kL(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 LL=V5(),kfe=LL.FORMAT_LINK,Cfe=LL.DATE_FORMAT_LINK;function Lfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?A4:DL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function A4(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: "+kfe+"."].join(" ")}function DL(e,r){return A4(e,r)+[" And for dates see: "+Cfe+".","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:Lfe,descriptionOnlyNumbers:A4,descriptionWithDates:DL}});var Hl=N((UCe,ZL)=>{"use strict";var RL=zi(),Sd=Mf(),XL=Pc().dash,M4=zn().extendFlat,qL=Xa().templatedArray,GCe=cd().templateFormatStringDescription,PL=fm().descriptionWithDates,Dfe=ri().ONEDAY,Ef=ci(),Ffe=Ef.HOUR_PATTERN,Rfe=Ef.WEEKDAY_PATTERN,T4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},qfe=M4({},T4,{values:T4.values.slice().concat(["sync"])});function NL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var IL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},OL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BL={valType:"data_array",editType:"ticks"},zL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function GL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function UL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var HL={valType:"color",dflt:Sd.defaultLine,editType:"ticks"},VL={valType:"color",dflt:Sd.lightLine,editType:"ticks"};function YL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var WL=M4({},XL,{editType:"ticks"}),jL={valType:"boolean",editType:"ticks"};ZL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Sd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:RL({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:qL("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:[Rfe,Ffe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Dfe},editType:"calc"}),tickmode:qfe,nticks:NL(),tick0:IL,dtick:OL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:BL,ticktext:{valType:"data_array",editType:"ticks"},ticks:zL,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:GL(),tickwidth:UL(),tickcolor:HL,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:M4({},XL,{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:RL({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:PL("tick label")},tickformatstops:qL("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:PL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Sd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:jL,gridcolor:VL,gridwidth:YL(),griddash:WL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Sd.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:Sd.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:T4,nticks:NL("minor"),tick0:IL,dtick:OL,tickvals:BL,ticks:zL,ticklen:GL("minor"),tickwidth:UL("minor"),tickcolor:HL,gridcolor:VL,gridwidth:YL("minor"),griddash:WL,showgrid:jL,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((HCe,QL)=>{"use strict";var mn=Hl(),JL=zi(),$L=zn().extendFlat,Pfe=Rs().overrideAll;QL.exports=Pfe({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:mn.linecolor,outlinewidth:mn.linewidth,bordercolor:mn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:mn.minor.tickmode,nticks:mn.nticks,tick0:mn.tick0,dtick:mn.dtick,tickvals:mn.tickvals,ticktext:mn.ticktext,ticks:$L({},mn.ticks,{dflt:""}),ticklabeloverflow:$L({},mn.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:mn.ticklen,tickwidth:mn.tickwidth,tickcolor:mn.tickcolor,ticklabelstep:mn.ticklabelstep,showticklabels:mn.showticklabels,labelalias:mn.labelalias,tickfont:JL({}),tickangle:mn.tickangle,tickformat:mn.tickformat,tickformatstops:mn.tickformatstops,tickprefix:mn.tickprefix,showtickprefix:mn.showtickprefix,ticksuffix:mn.ticksuffix,showticksuffix:mn.showticksuffix,separatethousands:mn.separatethousands,exponentformat:mn.exponentformat,minexponent:mn.minexponent,showexponent:mn.showexponent,title:{text:{valType:"string"},font:JL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Nh=N((YCe,eD)=>{"use strict";var Nfe=R2(),Ife=ld().counter,Ofe=u2(),KL=Ah().scales,VCe=Ofe(KL);function q2(e){return"`"+e+"`"}eD.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"?KL[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=Nfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Ife("coloraxis"),dflt:null,editType:"calc"}),M}});var E4=N((WCe,rD)=>{"use strict";var Bfe=zn().extendFlat,zfe=Nh(),S4=Ah().scales;rD.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:S4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:S4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:S4.RdBu,editType:"calc"}},coloraxis:Bfe({_isSubplotObj:!0,editType:"calc"},zfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var k4=N((jCe,tD)=>{"use strict";var Gfe=Ur();tD.exports=function(r){return Gfe.isPlainObject(r.colorbar)}});var D4=N(L4=>{"use strict";var C4=ba(),aD=Ur(),nD=ri(),Ufe=nD.ONEDAY,Hfe=nD.ONEWEEK;L4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Ufe:1;if(!e)return i;if(C4(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=C4(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};L4.tick0=function(e,r,t,a){if(r==="date")return aD.cleanDate(e,aD.dateTick0(t,a%Hfe===0?1:0));if(!(a==="D1"||a==="D2"))return C4(e)?Number(e):0}});var F4=N((ZCe,oD)=>{"use strict";var iD=D4(),Vfe=Ur().isArrayOrTypedArray,Yfe=Wo().isTypedArraySpec,Wfe=Wo().decodeTypedArraySpec;oD.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 Yfe(_)&&(_=Wfe(_)),_!==void 0?_:(s._template||{})[T]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Vfe(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=iD.dtick(v,n);s.tick0=iD.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 q4=N((JCe,sD)=>{"use strict";var R4=Ur(),lD=Hl();sD.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?lD.minor:lD,f=i?"minor.":"",u=R4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=R4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=R4.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 P4=N(($Ce,fD)=>{"use strict";fD.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 gl=N((QCe,uD)=>{"use strict";var P2=Ur(),jfe=Xa();uD.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=jfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var N4=Ur(),Xfe=ha().contrast,cD=Hl(),Zfe=P4(),Jfe=gl();vD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");N4.isPlainObject(o)||delete t.labelalias;var l=Zfe(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?Xfe(i.bgColor):u&&u!==cD.color.dflt?u:f.color;if(N4.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");Jfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:$fe}),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 $fe(e,r){function t(n,i){return N4.coerce(e,r,cD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var O4=N((eLe,hD)=>{"use strict";var Qfe=P4();hD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Qfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var B4=N((rLe,dD)=>{"use strict";var Wc=Ur(),Kfe=Xa(),eue=F4(),rue=q4(),tue=I4(),aue=O4(),nue=R2();dD.exports=function(r,t,a){var n=Kfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(O,R){return Wc.coerce(i,n,nue,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),Wc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),Wc.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"),Wc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Wc.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"),eue(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"),aue(i,n,o,"linear",k),tue(i,n,o,"linear",k),rue(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:M,P=Wc.extendFlat({},M,{family:F.family,size:Wc.bigFont(F.size)});Wc.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var Ed=N((tLe,yD)=>{"use strict";var pD=ba(),G4=Ur(),iue=k4(),oue=B4(),mD=Ah().isValid,lue=Bt().traceIs;function z4(e,r){var t=r.slice(0,r.length-1);return r?G4.nestedProperty(e,t).get()||{}:e}yD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=z4(r,o),u=z4(t,o),c=z4(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=lue(t,"contour")&&G4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,G4.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"],_=pD(b)&&pD(T)&&b{"use strict";var gD=Ur(),sue=Xa(),bD=E4(),fue=Ed();xD.exports=function(r,t){function a(c,v){return gD.coerce(r,t,bD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return gD.coerce(i,o,bD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=sue.newContainer(t,s,"coloraxis"),o._name=s,fue(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var uue=Ur(),cue=Is().hasColorscale,vue=Is().extractOpts;wD.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?uue.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=vue(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 TD=ba(),U4=Ur(),hue=Is().extractOpts;MD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?U4.nestedProperty(t,o).get():t,s=hue(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return U4.aggNums(Math.min,null,i)},p=function(){return U4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&TD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&TD(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 Cd=N((oLe,SD)=>{"use strict";var N2=Ah(),kd=Is();SD.exports={moduleType:"component",name:"colorscale",attributes:Nh(),layoutAttributes:E4(),supplyLayoutDefaults:_D(),handleDefaults:Ed(),crossTraceDefaults:AD(),calc:H4(),scales:N2.scales,defaultScale:N2.defaultScale,getScale:N2.get,isValidScale:N2.isValid,hasColorscale:kd.hasColorscale,extractOpts:kd.extractOpts,extractScale:kd.extractScale,flipScale:kd.flipScale,makeColorScaleFunc:kd.makeColorScaleFunc,makeColorScaleFuncFromTrace:kd.makeColorScaleFuncFromTrace}});var qi=N((lLe,kD)=>{"use strict";var ED=Ur(),due=Wo().isTypedArraySpec;kD.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 ED.isPlainObject(r)&&(ED.isArrayOrTypedArray(r.size)||due(r.size))}}});var V4=N((sLe,CD)=>{"use strict";var pue=ba();CD.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 pue(s)&&s>0?Math.max(s,i):0}}});var Pu=N(ao=>{"use strict";var I2=Ur();ao.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ao.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{FD.exports=xue;var Y4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},bue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function xue(e){var r=[];return e.replace(bue,function(t,a,n){var i=a.toLowerCase();for(n=wue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Y4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Aue=um(),lt=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",RD=Math.sqrt(2),jc=Math.sqrt(3),W4=Math.PI,j4=Math.cos,X4=Math.sin;OD.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/RD,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/jc,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/jc,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/jc,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/jc,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*jc/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*jc/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*jc*.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*jc*.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/RD,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=W4/2.5,n=2*e*j4(a),i=2*e*X4(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=W4/4,n=2*e*j4(a),i=2*e*X4(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 qD,PD,ND,ID;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ND===e&&ID===r&&qD===t)return PD;ND=e,ID=r,qD=t;function a(m,b){var T=j4(m),_=X4(m),x=b[0],A=b[1]+(r||0);return[x*T-A*_,x*_+A*T]}for(var n=e/180*W4,i=0,o=0,l=Aue(t),s="",f=0;f{"use strict";var wi=da(),Ga=Ur(),Tue=Ga.numberFormat,zh=ba(),ew=Ls(),B2=Bt(),Gi=ha(),Mue=Cd(),vm=Ga.strTranslate,z2=to(),Sue=Yc(),Eue=ro(),kue=Eue.LINE_SPACING,ZD=od().DESELECTDIM,Cue=qi(),Lue=V4(),Due=Pu().appendArrayPointValue,gt=iF.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(Gi.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",Z4(Rue(u))),s&&e.style("text-shadow",s==="auto"?z2.makeTextShadow(Gi.contrast(i)):Z4(s)),f&&e.style("text-decoration-line",Z4(que(f)))};function Z4(e){return e==="none"?void 0:e}var Fue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Rue(e){return Fue[e]}function que(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",vm(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||"";Gi.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(Gi.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,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(KD,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(Gi.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 zD=BD();gt.symbolNames=[];gt.symbolFuncs=[];gt.symbolBackOffs=[];gt.symbolNeedLines={};gt.symbolNoDot={};gt.symbolNoFill={};gt.symbolList=[];Object.keys(zD).forEach(function(e){var r=zD[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 Pue=gt.symbolNames.length,Nue="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>=Pue||e>=400?0:Math.floor(Math.max(e,0))};function $D(e,r,t,a){var n=e%100;return gt.symbolFuncs[n](r,t,a)+(e>=200?Nue:"")}var GD=Tue("~f"),QD={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=QD[a];return KD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function KD(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=aw(e,t),c=tw(e,t);r.attr("d",$D(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):Ga.isArrayOrTypedArray(l.color)?p=Gi.defaultLine:p=l.color,Ga.isArrayOrTypedArray(o.color)&&(d=Gi.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(Gi.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,Ga.isArrayOrTypedArray(_)&&(_=_[0],QD[_]||(_=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,V=A(x.size,e.i,8),ae=A(x.solidity,e.i,.3);F=F||e.mcc||Ga.isArrayOrTypedArray(x.shape)||Ga.isArrayOrTypedArray(x.path)||Ga.isArrayOrTypedArray(x.bgcolor)||Ga.isArrayOrTypedArray(x.fgcolor)||Ga.isArrayOrTypedArray(x.size)||Ga.isArrayOrTypedArray(x.solidity);var re=t.uid;F&&(re+="-"+e.i),gt.pattern(r,"point",n,re,E,V,ae,e.mcc,x.fillmode,R,O,H)}else Ga.isArrayOrTypedArray(d)?Gi.fill(r,d[e.i]):Gi.fill(r,d);y&&Gi.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=Cue.isBubble(e)?Lue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ga.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;(Ga.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:ZD*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:Gi.addOpacity(c,ZD))},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){Gi.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",$D(gt.symbolNumber(l),s,aw(o,r),tw(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?Ga.extractOption(l,r,"txt","texttemplate"):Ga.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={};Due(v,r,l.i),f=Ga.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:f})}var d=l.tp||r.textposition,p=rF(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(eF,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=rF(a,r);Gi.fill(n,i);var s=B2.traceIs(r,"bar-like");eF(n,o,l,a.mrc2||a.mrc,s)})}};var UD=.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=nF;gt.makeTester=function(){var e=Ga.ensureSingleById(wi.select("body"),"svg","js-plotly-tester",function(t){t.attr(Sue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ga.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 $4=0,Bue=1e4;gt.bBox=function(e,r,t){t||(t=HD(e));var a;if(t){if(a=gt.savedBBoxes[t],a)return Ga.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=HD(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 Ga.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 $4>=Bue&&(gt.savedBBoxes={},$4=0),t&&(gt.savedBBoxes[t]=d),$4++,Ga.extendFlat({},d)};function HD(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",rw(r,t))};function rw(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+=vm(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 zue=/\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(zue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Gue=/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(Gue);r===1&&t===1?a=[]:a=[vm(o,l),"scale("+r+","+t+")",vm(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function tw(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=tw;var cm=Math.atan2,Ih=Math.cos,Dd=Math.sin;function VD(e,r){var t=r[0],a=r[1];return[t*Ih(e)-a*Dd(e),t*Dd(e)+a*Ih(e)]}var YD,WD,jD,XD,Q4,K4;function aw(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ga.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=cm(v[1]-n,v[0]-a),p=cm(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=YD/180*Math.PI,_=WD/180*Math.PI,x=T-m,A=Ih(_)*Dd(x),E=Dd(_)*Ih(b)-Ih(_)*Dd(b)*Ih(x);y=-cm(A,E)-Math.PI,YD=f,WD=u}var M=VD(d,[Ih(y),0]),k=VD(p,[Dd(y),0]);t=cm(M[1]+k[1],M[0]+k[0])/Math.PI*180,i==="previous"&&!(K4===r.uid&&e.i===Q4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(K4===r.uid&&e.i===Q4+1&&zh(a)&&zh(n)){var F=a-jD,P=n-XD,O=r.line&&r.line.shape||"",R=O.slice(O.length-1);R==="h"&&(P=0),R==="v"&&(F=0),t+=cm(P,F)/Math.PI*180+90}else t=null}return jD=a,XD=n,Q4=e.i,K4=r.uid,t}gt.getMarkerAngle=aw});var hm=N((hLe,fF)=>{"use strict";var Fd=da(),Uue=ba(),Hue=_i(),nw=Bt(),Gh=Ur(),oF=Gh.strTranslate,G2=Ha(),U2=ha(),Rd=to(),lF=od(),Vue=ro().OPPOSITE_SIDE,sF=/ [XY][0-9]* /,iw=1.6,ow=1.6;function Yue(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:{}},V=(H.text||"").trim(),ae=!1,re=1,Q=H.font,J=Q.family,j=Q.size,oe=Q.color,se=Q.weight,Le=Q.style,Ue=Q.variant,Ee=Q.textcase,Ve=Q.lineposition,we=Q.shadow,fr;i==="title.text"?fr="titleText":i.indexOf("axis")!==-1?fr="axisTitleText":i.indexOf("colorbar")!==-1&&(fr="colorbarTitleText");var Ie=e._context.edits[fr];function He(Vr,nt){return Vr===void 0||nt===void 0?!1:Vr.replace(sF," % ")===nt.replace(sF," % ")}p===""?v=0:He(p,o)&&(Ie||(p=""),v=.2,y=!0),O&&(V===""?re=0:He(V,R)&&(Ie||(V=""),re=.2,ae=!0)),t._meta?p=Gh.templateString(p,t._meta):a._meta&&(p=Gh.templateString(p,a._meta));var vr=p||V||Ie,$e;c||(c=Gh.ensureSingle(a._infolayer,"g","g-"+r),$e=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data(vr?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var de=null,ne=r+"-subtitle",qe=V||Ie;if(O&&(de=c.selectAll("text."+ne).data(qe?[0]:[]),de.enter().append("text"),de.text(V).attr("class",ne),de.exit().remove()),!vr)return c;function Je(Vr,nt){Gh.syncOrAsync([Ke,Sr],{title:Vr,subtitle:nt})}function Ke(Vr){var nt=Vr.title,wr=Vr.subtitle,Yr;!u&&$e&&(u={}),u?(Yr="",u.rotate&&(Yr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||$e)&&(Yr+=oF(0,(u.offset||0)-($e||0)))):Yr=null,nt.attr("transform",Yr);function et(rr){if(rr){var ur=Fd.select(rr.node().parentNode).select("."+ne);if(!ur.empty()){var Hr=rr.node().getBBox();if(Hr.height){var ot=Hr.y+Hr.height+iw*j;ur.attr("y",ot)}}}}if(nt.style("opacity",v*U2.opacity(_)).call(G2.font,{color:U2.rgb(_),size:Fd.round(T,2),family:b,weight:x,style:A,variant:E,textcase:M,shadow:F,lineposition:k}).attr(f).call(Rd.convertToTspans,e,et),wr&&!wr.empty()){var Pe=c.select("."+r+"-math-group"),or=nt.node().getBBox(),st=Pe.node()?Pe.node().getBBox():void 0,kt=st?st.y+st.height+iw*j:or.y+or.height+ow*j,Ar=Gh.extendFlat({},f,{y:kt});wr.attr("transform",Yr),wr.style("opacity",re*U2.opacity(oe)).call(G2.font,{color:U2.rgb(oe),size:Fd.round(j,2),family:J,weight:se,style:Le,variant:Ue,textcase:Ee,shadow:we,lineposition:Ve}).attr(Ar).call(Rd.convertToTspans,e)}return Hue.previousPromises(e)}function Sr(Vr){var nt=Vr.title,wr=Fd.select(nt.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Yr=Vue[s.side],et=s.side==="left"||s.side==="top"?-1:1,Pe=Uue(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 Ar in kt)for(var rr in kt[Ar]){var ur=kt[Ar][rr];st[rr]=Math.max(st[rr],ur)}var Hr={left:st.l,top:st.t,right:a.width-st.r,bottom:a.height-st.b},ot=s.maxShift||et*(Hr[s.side]-or[s.side]),Wr=0;if(ot<0)Wr=ot;else{var tt=s.offsetLeft||0,xt=s.offsetTop||0;or.left-=tt,or.right-=tt,or.top-=xt,or.bottom-=xt,s.selection.each(function(){var at=G2.bBox(this);Gh.bBoxIntersect(or,at,Pe)&&(Wr=Math.max(Wr,et*(at[s.side]-or[Yr])+Pe))}),Wr=Math.min(ot,Wr),n._titleScoot=Math.abs(Wr)}if(Wr>0||ot<0){var jr={left:[-Wr,0],right:[Wr,0],top:[0,-Wr],bottom:[0,Wr]}[s.side];wr.attr("transform",oF(jr[0],jr[1]))}}}ee.call(Je,de);function Er(Vr,nt){Vr.text(nt).on("mouseover.opacity",function(){Fd.select(this).transition().duration(lF.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Fd.select(this).transition().duration(lF.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ie&&(p?ee.on(".opacity",null):(Er(ee,o),y=!0),ee.call(Rd.makeEditable,{gd:e}).on("edit",function(Vr){l!==void 0?nw.call("_guiRestyle",e,i,Vr,l):nw.call("_guiRelayout",e,i,Vr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Vr){this.text(Vr||" ").call(Rd.positionText,f.x,f.y)}),O)){if(O&&!p){var br=ee.node().getBBox(),zr=br.y+br.height+ow*j;de.attr("y",zr)}V?de.on(".opacity",null):(Er(de,R),ae=!0),de.call(Rd.makeEditable,{gd:e}).on("edit",function(Vr){nw.call("_guiRelayout",e,"title.subtitle.text",Vr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Vr){this.text(Vr||" ").call(Rd.positionText,de.attr("x"),de.attr("y"))})}return ee.classed("js-placeholder",y),de&&!de.empty()&&de.classed("js-placeholder",ae),c}fF.exports={draw:Yue,SUBTITLE_PADDING_EM:ow,SUBTITLE_PADDING_MATHJAX_EM:iw}});var J2=N((dLe,dF)=>{"use strict";var Wue=da(),jue=td().utcFormat,Za=Ur(),Xue=Za.numberFormat,kf=ba(),Xc=Za.cleanNumber,Zue=Za.ms2DateTime,uF=Za.dateTime2ms,Cf=Za.ensureNumber,cF=Za.isArrayOrTypedArray,Zc=ri(),H2=Zc.FP_SAFE,Os=Zc.BADNUM,Jue=Zc.LOG_CLIP,$ue=Zc.ONEWEEK,V2=Zc.ONEDAY,Y2=Zc.ONEHOUR,vF=Zc.ONEMIN,hF=Zc.ONESEC,W2=kn(),Z2=ci(),j2=Z2.HOUR_PATTERN,X2=Z2.WEEKDAY_PATTERN;function dm(e){return Math.pow(10,e)}function lw(e){return e!=null}dF.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*Jue*Math.abs(E-M))}else return Os}function o(x,A,E,M){if((M||{}).msUTC&&kf(x))return+x;var k=uF(x,E||r.calendar);if(k===Os)if(kf(x)){x=+x;var F=Math.floor(Za.mod(x+.05,1)*10),P=Math.round(x-F/10);k=uF(new Date(P))+F/10}else return Os;return k}function l(x,A,E){return Zue(x,A,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(lw(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"?dm: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 dm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xc,r.c2d=r.c2r=r.l2d=r.l2r=Cf,r.d2p=r.r2p=function(x){return r.l2p(Xc(x))},r.p2d=r.p2r=b,r.cleanPos=Cf):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(Xc(x),A)},r.r2d=r.r2c=function(x){return dm(Xc(x))},r.d2c=r.r2l=Xc,r.c2d=r.l2r=Cf,r.c2r=i,r.l2d=dm,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return dm(b(x))},r.r2p=function(x){return r.l2p(Xc(x))},r.p2r=b,r.cleanPos=Cf):r.type==="date"?(r.d2r=r.r2d=Za.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 Za.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),M[0]===M[1]){var O=r.l2r(A),R=r.l2r(E);if(A!==void 0){var H=O+1;E!==void 0&&(H=Math.min(H,R)),M[F?1:0]=H}if(E!==void 0){var V=R+1;A!==void 0&&(V=Math.max(V,O)),M[F?0:1]=V}}}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var E=Za.nestedProperty(r,x).get(),M,k;if(r.type==="date"?k=Za.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){Za.nestedProperty(r,x).set(k);return}var F=E[0]===null,P=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Za.cleanDate(E[0],Os,r.calendar),E[1]=Za.cleanDate(E[1],Os,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Za.isDateTime(E[M],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var O=Za.constrain(r.r2l(E[0]),Za.MIN_MS+1e3,Za.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&&(V=!V),V&&r._rangebreaks.reverse();var ae=V?-1:1;for(r._m2=ae*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&&(Lewe.max&&(we.max=Ue),Ee=!1)}Ee&&P.push({min:Le,max:Ue})}};for(E=0;E{"use strict";var pF=ba(),sw=Ur(),Que=ri().BADNUM,$2=sw.isArrayOrTypedArray,Kue=sw.isDateTime,ece=sw.cleanNumber,mF=Math.round;gF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if($2(n)&&!n.length)return"-";if(!i&&ice(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function yF(e){return Math.max(1,(e-1)/1e3)}function nce(e,r){for(var t=e.length,a=yF(t),n=0,i=0,o={},l=0;ln*2}function ice(e){return $2(e[0])&&$2(e[1])}});var qd=N((mLe,SF)=>{"use strict";var oce=da(),wF=ba(),Jc=Ur(),Q2=ri().FP_SAFE,lce=Bt(),sce=Ha(),AF=kn(),fce=AF.getFromId,uce=AF.isLinked;SF.exports={applyAutorangeOptions:MF,getAutoRange:uw,makePadFn:cw,doAutoRange:vce,findExtremes:hce,concatExtremes:dw};function uw(e,r){var t,a,n=[],i=e._fullLayout,o=cw(i,r,0),l=cw(i,r,1),s=dw(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,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,V=c+1;if(b)if(c===0)n=[0,1];else{var ae=(c>0?u:f).reduce(R,0),re=c/(1-Math.min(.5,ae/_));n=c>0?[0,re]:[re,0]}else T?n=[Math.max(0,H),Math.max(1,V)]:n=[H,V]}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-bF(r,E.val,M.val))/(_-o(k)-l(F)),n=[k.val-A*o(k),F.val+A*l(F)];return n=MF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jc.simpleMap(n,r.l2r||Number)}function bF(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 vw(e,r,t,a){TF(e,r,t,a,dce)}function hw(e,r,t,a){TF(e,r,t,a,pce)}function TF(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 _F(e){return wF(e)&&Math.abs(e)=r}function mce(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 yce(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=mce(t,r),a=yce(a,r),[t,a]}});var yn=N((gLe,ZF)=>{"use strict";var Vl=da(),ai=ba(),Pd=_i(),mm=Bt(),It=Ur(),Nd=It.strTranslate,Uh=to(),gce=hm(),ym=ha(),bl=Ha(),bce=Hl(),EF=D4(),yLe=ci(),Ui=ri(),xce=Ui.ONEMAXYEAR,t3=Ui.ONEAVGYEAR,a3=Ui.ONEMINYEAR,_ce=Ui.ONEMAXQUARTER,gw=Ui.ONEAVGQUARTER,n3=Ui.ONEMINQUARTER,wce=Ui.ONEMAXMONTH,Id=Ui.ONEAVGMONTH,i3=Ui.ONEMINMONTH,xl=Ui.ONEWEEK,mo=Ui.ONEDAY,$c=mo/2,Df=Ui.ONEHOUR,gm=Ui.ONEMIN,o3=Ui.ONESEC,Ace=Ui.ONEMILLI,Tce=Ui.ONEMICROSEC,Hh=Ui.MINUS_SIGN,s3=Ui.BADNUM,bw={K:"zeroline"},xw={K:"gridline",L:"path"},_w={K:"minor-gridline",L:"path"},OF={K:"tick",L:"path"},kF={K:"tick",L:"text"},CF={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=ro(),pm=f3.MID_SHIFT,Vh=f3.CAP_SHIFT,bm=f3.LINE_SPACING,Mce=f3.OPPOSITE_SIDE,l3=3,Qr=ZF.exports={};Qr.setConvert=J2();var Sce=fw(),Ff=kn(),Ece=Ff.idSort,kce=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 BF=qd();Qr.getAutoRange=BF.getAutoRange;Qr.findExtremes=BF.findExtremes;var Cce=1e-4;function Mw(e){var r=(e[1]-e[0])*Cce;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},It.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?(It.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-=$c;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){if(!r.minor.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=It.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=It.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?pw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:FF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":pw(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"?pw(f,u)||(e.dtick=FF(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function pw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function FF(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=It.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?It.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=It.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<=xce?c=f:c=t3:t===gw&&u>=n3?f>=n3&&f<=_ce?c=f:c=gw:u>=i3?f>=i3&&f<=wce?c=f:c=Id:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===$c&&u>=$c?c=$c: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;mxl&&(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||It.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=It.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var A=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:It.extendFlat({},r,r.minor);if(A?Qr.prepMinorTicks(E,r,t):Qr.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=RF(r,!A)):(b=[],y=RF(r,!A));continue}if(E.tickmode==="sync"){m=[],p=Pce(r);continue}var M=Mw(f),k=M[0],F=M[1],P=ai(E.dtick),O=a==="log"&&!(P||E.dtick.charAt(0)==="L"),R=Qr.tickFirst(E,t);if(x){if(r._tmin=R,R=F:V<=F;V=Qr.tickIncrement(V,Q,u,n)){if(x&&ae++,E.rangebreaks&&!u){if(V=v)break}if(m.length>d||V===H)break;H=V;var J={value:V};x?(O&&V!==(V|0)&&(J.simpleLabel=!0),i>1&&ae%i&&(J.skipLabel=!0),m.push(J)):(J.minor=!0,b.push(J))}}if(!b||b.length<2)s=!1;else{var j=(b[1].value-b[0].value)*(l?-1:1);ove(j,r.tickformat)||(s=!1)}if(!s)T=m;else{var oe=m.concat(b);o&&m.length&&(oe=oe.slice(1)),oe=oe.sort(function(zr,Vr){return zr.value-Vr.value}).filter(function(zr,Vr,nt){return Vr===0||zr.value!==nt[Vr-1].value});var se=oe.map(function(zr,Vr){return zr.minor===void 0&&!zr.skipLabel?Vr:null}).filter(function(zr){return zr!==null});se.forEach(function(zr){s.map(function(Vr){var nt=zr+Vr;nt>=0&&nt-1;vr--){if(m[vr].drop){m.splice(vr,1);continue}m[vr].value=yw(m[vr].value,r);var ne=r.c2p(m[vr].value);($e?de>ne-ee:dev||wrv&&(nt.periodX=v),wrn&&vt3)r/=t3,a=n(10),e.dtick="M"+12*Lf(r,a,e3);else if(i>Id)r/=Id,e.dtick="M"+Lf(r,1,qF);else if(i>mo){if(e.dtick=Lf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:Nce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=It.dateTick0(e.calendar,2):e.tick0=It.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Df?e.dtick=Lf(r,Df,qF):i>gm?e.dtick=Lf(r,gm,PF):i>o3?e.dtick=Lf(r,o3,PF):(a=n(10),e.dtick=Lf(r,a,e3))}else if(e.type==="log"){e.tick0=0;var s=It.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))):Cw(e)?(e.tick0=0,a=1,e.dtick=Lf(r,a,Ice)):(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 HF(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>=gm&&n<=16||r>=Df)e._tickround="M";else if(r>=o3&&n<=19||r>=gm)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&&(Od(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Sw(s)||Od(e.exponentformat)&&e.exponentformat==="SI extended"&&!Ew(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 It.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return It.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?UF:GF,s=e+n*.01,f=It.roundUp(It.mod(s,1),l,t);return Math.floor(s)+Math.log(Vl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=It.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&It.isArrayOrTypedArray(e.ticktext)){var c=It.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=_m(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function Bce(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=xm(Math.pow(10,o),e,n,a);else if(ai(i)||s==="D"&&(e.minorloglabels==="complete"||It.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(It.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"||Od(p)&&p!=="SI extended"&&Sw(v)||Od(p)&&p==="SI extended"&&Ew(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=xm(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,It.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 zce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Gce(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 Uce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=xm(r.x,e,n,a)}function Hce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Vce(i);if(o[1]>=100)r.text=xm(It.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=xm(r.x,e,n,a)}function Vce(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 YF=["f","p","n","\u03BC","m","","k","M","G","T"],Yce=["q","r","y","z","a",...YF,"P","E","Z","Y","R","Q"],Od=e=>["SI","SI extended","B"].includes(e);function Sw(e){return e>14||e<-15}function Ew(e){return e>32||e<-30}function Wce(e,r){return Od(r)?!!(r==="SI extended"&&Ew(e)||r!=="SI extended"&&Sw(e)):!1}function xm(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]};HF(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":Od(o)&&(e+=o==="SI extended"?Yce[l/3+10]:YF[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",""))*Id}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 It.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&&Tw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=It.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),Tw(r,p,a,!0),Tw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=ive(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(br){var zr=f+(br||"tick");return A[zr]||(A[zr]=Jce(r,zr,b)),A[zr]}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=jce(r,_);P=Qr.clipEnds(r,H),F=O?P:H}else P=Qr.clipEnds(r,_),F=O&&r.ticklabelmode!=="period"?P:_;var V=r._gridVals=P,ae=Zce(r,_);if(!s._hasOnlyLargeSploms){var re=r._subplotsWith,Q={};for(i=0;i0?wr.bottom-Vr:0,nt))));var or=0,st=0;if(r._shiftPusher&&(or=Math.max(nt,wr.height>0?br==="l"?Vr-wr.left:wr.right-Vr:0),r.title.text!==s._dfltTitle[u]&&(st=(r._titleStandoff||0)+(r._titleScoot||0),br==="l"&&(st+=IF(r))),r._fullDepth=Math.max(or,st)),r.automargin){Yr={x:0,y:0,r:0,l:0,t:0,b:0};var kt=[0,1],Ar=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(br==="b"?Yr[br]=r._depth:(Yr[br]=r._depth=Math.max(wr.width>0?Vr-wr.top:0,nt),kt.reverse()),wr.width>0){var rr=wr.right-(r._offset+r._length);rr>0&&(Yr.xr=1,Yr.r=rr);var ur=r._offset-wr.left;ur>0&&(Yr.xl=0,Yr.l=ur)}}else if(br==="l"?(r._depth=Math.max(wr.height>0?Vr-wr.left:0,nt),Yr[br]=r._depth-Ar):(r._depth=Math.max(wr.height>0?wr.right-Vr:0,nt),Yr[br]=r._depth+Ar,kt.reverse()),wr.height>0){var Hr=wr.bottom-(r._offset+r._length);Hr>0&&(Yr.yb=0,Yr.b=Hr);var ot=r._offset-wr.top;ot>0&&(Yr.yt=1,Yr.t=ot)}Yr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[kt[0]],r.title.text!==s._dfltTitle[u]&&(Yr[br]+=IF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(et={x:0,y:0,r:0,l:0,t:0,b:0},et[zr]=r.linewidth,r.mirror&&r.mirror!==!0&&(et[zr]+=nt),r.mirror===!0||r.mirror==="ticks"?et[c]=r._anchorAxis.domain[kt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(et[c]=[r._counterDomainMin,r._counterDomainMax][kt[1]]))}Er&&(Pe=mm.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(NF(Yr,r.automargin),NF(et,r.automargin)),Pd.autoMargin(e,kw(r),Yr),Pd.autoMargin(e,jF(r),et),Pd.autoMargin(e,XF(r),Pe)}),It.syncOrAsync(Ke)}};function NF(e,r){if(e){var t=Object.keys(CF).reduce(function(a,n){return r.indexOf(n)!==-1&&CF[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 jce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(It.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 Nd(n+e._offset+e.l2p(ww(v))+t,i+a)}:function(v){return Nd(i+a,n+e._offset+e.l2p(ww(v))+t)}};function ww(e){return e.periodX!==void 0?e.periodX:e.x}function $ce(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=It.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+=pm:F===-90&&M==="bottom"?x=Vh:F===90&&M==="top"?x=pm:x=.5,E=pm/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,V){if(u){if(l)return"end";if(s)return"start"}return!ai(V)||V===0||V===180?"middle":V*A<0!==c?"end":"start"},b.heightFn=function(H,V,ae){return V<-60||V>60?-.5*ae:e.side==="top"!==c?-ae: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=ai(F)?+F:0;if(O!==0){var R=It.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*pm},b.anchorFn=function(H,V){return ai(V)&&Math.abs(V)===90?"middle":P?"end":"start"},b.heightFn=function(H,V,ae){return e.side==="right"&&(V*=-1),V<-30?-ae:V<30?-.5*ae: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 ym.stroke(Vl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),c3(r,[OF]),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 ym.stroke(Vl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.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,[xw,_w])}};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 Ece(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(ym.stroke,r.zerolinecolor||ym.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),c3(r,[bw])};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 oe=Vl.select(this),se=e._promises.length;oe.call(Uh.positionText,s.xFn(j),s.yFn(j)).call(bl.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[se]?v.push(e._promises.pop().then(function(){d(oe,f)})):d(oe,f)}),c3(r,[kF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Vl.select(this).select("text").call(Uh.positionText,s.xFn(j),s.yFn(j))});function d(j,oe){j.each(function(se){var Le=Vl.select(this),Ue=Le.select(".text-math-group"),Ee=s.anchorFn(se,oe),Ve=t.transFn.call(Le.node(),se)+(ai(oe)&&+oe!=0?" rotate("+oe+","+s.xFn(se)+","+(s.yFn(se)-se.fontSize/2)+")":""),we=Uh.lineCount(Le),fr=bm*se.fontSize,Ie=s.heightFn(se,ai(oe)?+oe:0,(we-1)*fr);if(Ie&&(Ve+=Nd(0,Ie)),Ue.empty()){var He=Le.select("text");He.attr({transform:Ve,"text-anchor":Ee}),He.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var vr=bl.bBox(Ue.node()).width,$e=vr*{end:-.5,start:.5}[Ee];Ue.attr("transform",Ve+Nd($e,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var oe=j.indexOf("hide")!==-1,se=r._id.charAt(0)==="x",Le=0,Ue=se?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var Ee=It.simpleMap(r.range,r.r2l);Le=r.l2p(Ee[0])+r._offset,Ue=r.l2p(Ee[1])+r._offset}var Ve=Math.min(Le,Ue),we=Math.max(Le,Ue),fr=r.side,Ie=1/0,He=-1/0;c.each(function(de){var ne=Vl.select(this),qe=ne.select(".text-math-group");if(qe.empty()){var Je=bl.bBox(ne.node()),Ke=0;se?(Je.right>we||Je.leftwe||Je.top+(r.tickangle?0:de.fontSize/4)r["_visibleLabelMin_"+Ee._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,oe=[],se,Le=1;c.each(function(Yr){j=Math.max(j,Yr.fontSize);var et=r.l2p(Yr.x),Pe=Aw(this),or=bl.bBox(Pe.node());Le=Math.max(Le,Uh.lineCount(Pe)),oe.push({top:0,bottom:10,height:10,left:et-or.width/2,right:et+or.width/2+2,width:or.width+2})});var Ue=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Ve=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),we=Ue?Ve/2:Ve,fr=Ue?r.ticklen:j*1.25*Le,Ie=Math.sqrt(Math.pow(we,2)+Math.pow(fr,2)),He=we/Ie,vr=r.autotickangles.map(function(Yr){return Yr*Math.PI/180}),$e=vr.find(function(Yr){return Math.abs(Math.cos(Yr))<=He});$e===void 0&&($e=vr.reduce(function(Yr,et){return Math.abs(Math.cos(Yr))re*ae&&(R=ae,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=It.syncOrAsync(b);return J&&J.then&&e._promises.push(J),J};function Qce(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(ym.stroke,r.dividercolor).style("stroke-width",bl.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 IF(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*bm):t?r*(t+1)*bm:r}function Kce(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*(pm+l*bm));else{var s=_m(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=bl.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,gce.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=It.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===s3)&&(WF(r,0)||!eve(e,r,t,a)||rve(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return WF(e,t.x)})};function WF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Tce:/%L/.test(r)?e>=Ace:/%[SX]/.test(r)?e>=o3:/%M/.test(r)?e>=gm:/%[HI]/.test(r)?e>=Df:/%p/.test(r)?e>=$c:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=i3:/%[q]/.test(r)?e>=n3:/%[Yy]/.test(r)?e>=a3:!0}});var $F=N((bLe,JF)=>{"use strict";JF.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 Lw=N((xLe,QF)=>{"use strict";var lve=$F();QF.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&&(lve(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var eR=N((_Le,KF)=>{var sve={left:0,top:0};KF.exports=fve;function fve(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=uve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function uve(e){return e===window||e===document||e===document.body?sve:e.getBoundingClientRect()}});var Dw=N((wLe,rR)=>{"use strict";var cve=o4();function vve(){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}rR.exports=cve&&vve()});var aR=N((ALe,tR)=>{"use strict";tR.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 oR=N((TLe,iR)=>{"use strict";var nR=Ur(),hve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];iR.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=nR.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=nR.constrain(Math.floor(t*3),0,2),hve[t][r]}});var sR=N((MLe,lR)=>{"use strict";var dve=tm(),pve=h2(),mve=X1().getGraphDiv,yve=V1(),Fw=lR.exports={};Fw.wrapped=function(e,r,t){e=mve(e),e._fullLayout&&pve.clear(e._fullLayout._uid+yve.HOVERID),Fw.raw(e,r,t)};Fw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&dve.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((SLe,vR)=>{"use strict";var gve=eR(),Rw=s4(),bve=Dw(),xve=Ur().removeElement,_ve=ci(),Yh=vR.exports={};Yh.align=aR();Yh.getCursor=oR();var uR=sR();Yh.unhover=uR.wrapped;Yh.unhoverRaw=uR.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,bve?(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 cR(){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=cR;function fR(e){return gve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Qc=N((ELe,hR)=>{"use strict";hR.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 mR=N((kLe,pR)=>{"use strict";var qw=Qc(),wm="data-savedcursor",dR="!!";pR.exports=function(r,t){var a=r.attr(wm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Pw=zi(),wve=Mf();yR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:wve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Pw({editType:"legend"}),grouptitlefont:Pw({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:Pw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Tm=N(Am=>{"use strict";Am.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Am.isVertical=function(r){return r.orientation!=="h"};Am.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Am.getId=function(r){return r._id||"legend"}});var Ow=N((DLe,gR)=>{"use strict";var v3=Bt(),_l=Ur(),Ave=Xa(),Tve=Ds(),Mve=Nw(),Sve=vd(),Iw=Tm();function Eve(e,r,t,a,n){var i=r[e]||{},o=Ave.newContainer(t,e);function l(j,oe){return _l.coerce(i,o,Mve,j,oe)}var s=_l.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var f=l("visible");if(!f)return;var u,c=function(j,oe){var se=u._input,Le=u;return _l.coerce(se,Le,Tve,j,oe)},v=t.font||{},d=_l.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 oe=0;oej.legend.length)for(var Le=j.legend.length;Le(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,V,ae,re="left";P?(H=0,v3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(V=1.1,ae="bottom"):(V=1,ae="top"):O?(V=-.1,ae="top"):(V=0,ae="bottom")):(V=1,ae="auto",R?H=1.02:(H=1,re="right")),_l.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:H}},"x"),_l.coerce(i,o,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:V}},"y"),l("traceorder",m),Iw.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",re),l("yanchor",ae),l("maxheight"),l("valign"),_l.noneOrAll(i,o,["x","y"]);var Q=l("title.text");if(Q){l("title.side",P?"left":"top");var J=_l.extendFlat({},s,{size:_l.bigFont(s.size)});_l.coerceFont(l,"title.font",J);let j=n>1;l("titleclick",j?"toggle":!1),l("titledoubleclick",j?"toggleothers":!1)}}}gR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Kc=Bt(),Bw=Ur(),kve=Bw.pushUnique,Cve=Tm(),bR=!0;zw.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"&&bR&&t.data&&t._context.showTips&&(Bw.notifier(Bw._(t,"Double-click on legend to isolate one trace"),"long"),bR=!1);var s=l==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],u=t._fullData,c=(i.shapes||[]).filter(function(Er){return Er.showlegend}),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(Er,br){var zr=E.indexOf(Er),Vr=A.visible;return Vr||(Vr=A.visible=[]),E.indexOf(Er)===-1&&(E.push(Er),zr=E.length-1),Vr[zr]=br,zr}var P=(i.shapes||[]).map(function(Er){return Er._input}),O=!1;function R(Er,br){P[Er].visible=br,O=!0}function H(Er,br){if(!(o.groupTitle&&!s)){var zr=Er._fullInput||Er,Vr=zr._isShape,nt=zr.index;nt===void 0&&(nt=zr._index);var wr=zr.visible===!1?!1:br;Vr?R(nt,wr):F(nt,wr)}}var V=d.legend,ae=d._fullInput,re=ae&&ae._isShape;if(!re&&Kc.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,oe=[];for(y=0;y{"use strict";xR.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var AR=N((qLe,wR)=>{"use strict";var _R=Bt(),Hw=Tm();wR.exports=function(r,t,a){var n=t._inHover,i=Hw.isGrouped(t),o=Hw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function y(j,oe,se){if(t.visible!==!1&&!(a&&j!==t._id))if(oe===""||!Hw.isGrouped(t)){var Le="~~i"+c;s.push(Le),l[Le]=[se],c++}else s.indexOf(oe)===-1?(s.push(oe),f=!0,l[oe]=[se]):l[oe].push(se)}for(d=0;dR&&(O=R)}F[d][0]._groupMinRank=O,F[d][0]._preGroupSort=d}var H=function(j,oe){return j[0]._groupMinRank-oe[0]._groupMinRank||j[0]._preGroupSort-oe[0]._preGroupSort},V=function(j,oe){return j.trace.legendrank-oe.trace.legendrank||j._preSort-oe._preSort};for(F.forEach(function(j,oe){j[0]._preGroupSort=oe}),F.sort(H),d=0;d{"use strict";var h3=Ur();function TR(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=TR((r*100).toPrecision(3));return h3.numSeparate(a,t)+"%"};Wh.formatPieValue=function(r,t){var a=TR(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 Lve=Ha(),Dve=ha();MR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Lve.pointStyle(r,a,n,t):Dve.fill(r,t.color)}});var LR=N((ILe,CR)=>{"use strict";var ER=ha(),kR=Vw().castOption,Fve=SR();CR.exports=function(r,t,a,n){var i=a.marker.line,o=kR(i.color,t.pts)||ER.defaultLine,l=kR(i.width,t.pts)||0;r.call(Fve,t,a,n).style("stroke-width",l).call(ER.stroke,o)}});var Xw=N((OLe,NR)=>{"use strict";var yo=da(),Yw=Bt(),no=Ur(),DR=no.strTranslate,wl=Ha(),Yl=ha(),Ww=Is().extractOpts,d3=qi(),Rve=LR(),qve=Vw().castOption,Pve=Uw(),FR=12,RR=5,jh=2,Nve=10,Bd=5;NR.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Pve.itemGap*2)/2,s=DR(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=yo.select(this),F=no.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 V={top:1,bottom:-1}[O],ae=V*(.5*(R-H+3))||0,re=a.indentation;F.attr("transform",DR(re,ae))}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=qR(M),F=k.showFill,P=k.showLine,O=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,V=k.anyLine,ae=M[0],re=ae.trace,Q,J,j=Ww(re),oe=j.colorscale,se=j.reversescale,Le=function(He){if(He.size())if(F)wl.fillGroupStyle(He,t,!0);else{var vr="legendfill-"+re.uid;wl.gradient(He,t,vr,jw(se),oe,"fill")}},Ue=function(He){if(He.size()){var vr="legendline-"+re.uid;wl.lineGroupStyle(He),wl.gradient(He,t,vr,jw(se),oe,"stroke")}},Ee=d3.hasMarkers(re)||!H?"M5,0":V?"M5,-2":"M5,-3",Ve=yo.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",Ee+"h"+o+"v6h-"+o+"z").call(Le),P||O){var fr=f(void 0,re.line,Nve,RR);J=no.minExtend(re,{line:{width:fr}}),Q=[no.minExtend(ae,{trace:J})]}var Ie=Ve.select(".legendlines").selectAll("path").data(P||O?[Q]:[]);Ie.enter().append("path").classed("js-line",!0),Ie.exit().remove(),Ie.attr("d",Ee+(O?"l"+o+",0.0001":"h"+o)).call(P?wl.lineGroupStyle:Ue)}function c(M){var k=qR(M),F=k.anyFill,P=k.anyLine,O=k.showLine,R=k.showMarker,H=M[0],V=H.trace,ae=!R&&!P&&!F&&d3.hasText(V),re,Q;function J(we,fr,Ie,He){var vr=no.nestedProperty(V,we).get(),$e=no.isArrayOrTypedArray(vr)&&fr?fr(vr):vr;if(i&&$e&&He!==void 0&&($e=He),Ie){if($eIe[1])return Ie[1]}return $e}function j(we){return H._distinct&&H.index&&we[H.index]?we[H.index]:we[0]}if(R||ae||O){var oe={},se={};if(R){oe.mc=J("marker.color",j),oe.mx=J("marker.symbol",j),oe.mo=J("marker.opacity",no.mean,[.2,1]),oe.mlc=J("marker.line.color",j),oe.mlw=J("marker.line.width",no.mean,[0,5],jh),oe.mld=V._isShape?"solid":J("marker.line.dash",j),se.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Le=J("marker.size",no.mean,[2,16],FR);oe.ms=Le,se.marker.size=Le}O&&(se.line={width:J("line.width",j,[0,10],RR)}),ae&&(oe.tx="Aa",oe.tp=J("textposition",j),oe.ts=10,oe.tc=J("textfont.color",j),oe.tf=J("textfont.family",j),oe.tw=J("textfont.weight",j),oe.ty=J("textfont.style",j),oe.tv=J("textfont.variant",j),oe.tC=J("textfont.textcase",j),oe.tE=J("textfont.lineposition",j),oe.tS=J("textfont.shadow",j)),re=[no.minExtend(H,oe)],Q=no.minExtend(V,se),Q.selectedpoints=null,Q.texttemplate=null}var Ue=yo.select(this).select("g.legendpoints"),Ee=Ue.selectAll("path.scatterpts").data(R?re:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,Q,t),R&&(re[0].mrc=3);var Ve=Ue.selectAll("g.pointtext").data(ae?re:[]);Ve.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ve.exit().remove(),Ve.selectAll("text").call(wl.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=yo.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 V=yo.select(this),ae=k[H[0]].marker,re=f(void 0,ae.line,Bd,jh);V.attr("d",H[1]).style("stroke-width",re+"px").call(Yl.fill,ae.color),re&&V.call(Yl.stroke,ae.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",V=F?P.visible&&P.type===F:Yw.traceIs(P,"bar"),ae=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(V?[M]:[]);ae.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),ae.exit().remove(),ae.each(function(re){var Q=yo.select(this),J=re[0],j=f(J.mlw,O.line,Bd,jh);Q.style("stroke-width",j+"px");var oe=J.mcc;if(!a._inHover&&"mc"in J){var se=Ww(O),Le=se.mid;Le===void 0&&(Le=(se.max+se.min)/2),oe=wl.tryColorscale(O,"")(Le)}var Ue=oe||J.mc||O.color,Ee=O.pattern,Ve=wl.getPatternAttr,we=Ee&&(Ve(Ee.shape,0,"")||Ve(Ee.path,0,""));if(we){var fr=Ve(Ee.bgcolor,0,null),Ie=Ve(Ee.fgcolor,0,null),He=Ee.fgopacity,vr=PR(Ee.size,8,10),$e=PR(Ee.solidity,.5,1),ee="legend-"+P.uid;Q.call(wl.pattern,"legend",t,ee,we,vr,$e,oe,Ee.fillmode,fr,Ie,He)}else Q.call(Yl.fill,Ue);j&&Yl.stroke(Q,J.mlc||R.color)})}function m(M){var k=M[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Yw.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=yo.select(this);if((k.boxpoints==="all"||k.points==="all")&&Yl.opacity(k.fillcolor)===0&&Yl.opacity((k.line||{}).color)===0){var O=no.minExtend(k,{marker:{size:i?FR:no.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,O,t)}else{var R=f(void 0,k.line,Bd,jh);P.style("stroke-width",R+"px").call(Yl.fill,k.fillcolor),R&&Yl.stroke(P,k.line.color)}})}function b(M){var k=M[0].trace,F=yo.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=yo.select(this),H=k[O?"increasing":"decreasing"],V=f(void 0,H.line,Bd,jh);R.style("stroke-width",V+"px").call(Yl.fill,H.fillcolor),V&&Yl.stroke(R,H.line.color)})}function T(M){var k=M[0].trace,F=yo.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=yo.select(this),H=k[O?"increasing":"decreasing"],V=f(void 0,H.line,Bd,jh);R.style("fill","none").call(wl.dashLine,H.line.dash,V),V&&Yl.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:Yw.traceIs(O,F),H=yo.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 V=O.marker||{},ae=f(qve(V.line.width,P.pts),V.line,Bd,jh),re="pieLike",Q=no.minExtend(O,{marker:{line:{width:ae}}},re),J=no.minExtend(P,{trace:Q},re);Rve(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=yo.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 V=yo.select(this),ae=Ww(k),re=ae.colorscale,Q=ae.reversescale,J=function(Le){if(Le.size()){var Ue="legendfill-"+k.uid;wl.gradient(Le,t,Ue,jw(Q,F==="radial"),re,"fill")}},j;if(re){if(!F){var se=re.length;j=H===0?re[Q?se-1:0][1]:H===1?re[Q?0:se-1][1]:re[Math.floor((se-1)/2)][1]}}else{var oe=k.vertexcolor||k.facecolor||k.color;j=no.isArrayOrTypedArray(oe)?oe[H]||oe[0]:oe}V.attr("d",R[0]),j?V.call(Yl.fill,j):V.call(J)})}};function jw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function qR(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 PR(e,r,t){return e&&no.isArrayOrTypedArray(e)?r:e>t?t:e}});var Qw=N((BLe,YR)=>{"use strict";var qo=da(),Vn=Ur(),Jw=_i(),Xh=Bt(),y3=tm(),Zw=Bs(),Yn=Ha(),Mm=ha(),Zh=to(),IR=Gw().handleItemClick,OR=Gw().handleTitleClick,ni=Uw(),$w=ro(),HR=$w.LINE_SPACING,Gd=$w.FROM_TL,BR=$w.FROM_BR,zR=AR(),Ive=Xw(),Ud=Tm(),zd=1,Ove=/^legend[0-9]*$/;YR.exports=function(r,t){if(t)GR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=qo.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(Ove)&&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(),Jw.autoMargin(e,n);var y=Vn.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=Vn.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=Vn.ensureSingle(y,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(Mm.stroke,t.bordercolor).call(Mm.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Vn.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Vn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Yn.font,_.font).text(_.text),m3(x,T,e,t,zd),!l&&(t.titleclick||t.titledoubleclick)&&Uve(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var A=Vn.ensureSingle(y,"rect","scrollbar",function(k){k.attr(ni.scrollBarEnterAttrs).call(Mm.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(Vn.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(V){return V.showlegend});return e._fullData.concat(R).some(function(V){return V.legendgroup===O&&(V.legend||"legend")===n&&V.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(){qo.select(this).call(zve,e,t)}).call(Ive,e,t).each(function(k){l||k[0].groupTitle&&t.groupclick==="toggleitem"||qo.select(this).call(Gve,e,n)}),Vn.syncOrAsync([Jw.previousPromises,function(){return Yve(e,E,M,t,T)},function(){var k=a._size,F=t.borderwidth,P=t.xref==="paper",O=t.yref==="paper";if(_.text){let qe=(a.shapes||[]).filter(function(Ke){return Ke.showlegend}),Je=e._fullData.concat(qe).some(function(Ke){let Sr=Ke.legend||"legend";var Er=Array.isArray(Sr)?Sr.includes(n):Sr===n;return Er&&Ke.visible===!0});x.style("opacity",Je?1:.5)}if(!l){var R,H;P?R=k.l+k.w*t.x-Gd[g3(t)]*t._width:R=a.width*t.x-Gd[g3(t)]*t._width,O?H=k.t+k.h*(1-t.y)-Gd[b3(t)]*t._effHeight:H=a.height*(1-t.y)-Gd[b3(t)]*t._effHeight;var V=Wve(e,n,R,H);if(V)return;if(a.margin.autoexpand){var ae=R,re=H;R=P?Vn.constrain(R,0,a.width-t._width):ae,H=O?Vn.constrain(H,0,a.height-t._effHeight):re,R!==ae&&Vn.log("Constrain "+n+".x to make legend fit inside graph"),H!==re&&Vn.log("Constrain "+n+".y to make legend fit inside graph")}Yn.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}),Yn.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*F,height:Q-2*F,x:F,y:F}),Yn.setClipUrl(T,i,e),Yn.setRect(A,0,0,0,0),delete t._scrollY}else{var J=Math.max(ni.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-J-2*ni.scrollBarMargin,oe=t._height-t._effHeight,se=j/oe,Le=Math.min(t._scrollY||0,oe);b.attr({width:t._width-2*F+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+Le}),Yn.setClipUrl(T,i,e),vr(Le,J,se),y.on("wheel",function(){Le=Vn.constrain(t._scrollY+qo.event.deltaY/oe*j,0,oe),vr(Le,J,se),Le!==0&&Le!==oe&&qo.event.preventDefault()});var Ue,Ee,Ve,we=function(qe,Je,Ke){var Sr=(Ke-Je)/se+qe;return Vn.constrain(Sr,0,oe)},fr=function(qe,Je,Ke){var Sr=(Je-Ke)/se+qe;return Vn.constrain(Sr,0,oe)},Ie=qo.behavior.drag().on("dragstart",function(){var qe=qo.event.sourceEvent;qe.type==="touchstart"?Ue=qe.changedTouches[0].clientY:Ue=qe.clientY,Ve=Le}).on("drag",function(){var qe=qo.event.sourceEvent;qe.buttons===2||qe.ctrlKey||(qe.type==="touchmove"?Ee=qe.changedTouches[0].clientY:Ee=qe.clientY,Le=we(Ve,Ue,Ee),vr(Le,J,se))});A.call(Ie);var He=qo.behavior.drag().on("dragstart",function(){var qe=qo.event.sourceEvent;qe.type==="touchstart"&&(Ue=qe.changedTouches[0].clientY,Ve=Le)}).on("drag",function(){var qe=qo.event.sourceEvent;qe.type==="touchmove"&&(Ee=qe.changedTouches[0].clientY,Le=fr(Ve,Ue,Ee),vr(Le,J,se))});T.call(He)}function vr(qe,Je,Ke){t._scrollY=e._fullLayout[n]._scrollY=qe,Yn.setTranslate(T,0,-qe),Yn.setRect(A,t._width,ni.scrollBarMargin+qe*Ke,ni.scrollBarWidth,Je),m.select("rect").attr("y",F+qe)}if(e._context.edits.legendPosition){var $e,ee,de,ne;y.classed("cursor-move",!0),Zw.init({element:y.node(),gd:e,prepFn:function(qe){if(qe.target!==A.node()){var Je=Yn.getTranslate(y);de=Je.x,ne=Je.y}},moveFn:function(qe,Je){if(de!==void 0&&ne!==void 0){var Ke=de+qe,Sr=ne+Je;Yn.setTranslate(y,Ke,Sr),$e=Zw.align(Ke,t._width,k.l,k.l+k.w,t.xanchor),ee=Zw.align(Sr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if($e!==void 0&&ee!==void 0){var qe={};qe[n+".x"]=$e,qe[n+".y"]=ee,Xh.call("_guiRelayout",e,qe)}},clickFn:function(qe,Je){var Ke=o.selectAll("g.traces").filter(function(){var Sr=this.getBoundingClientRect();return Je.clientX>=Sr.left&&Je.clientX<=Sr.right&&Je.clientY>=Sr.top&&Je.clientY<=Sr.bottom});Ke.size()>0&&VR(e,t,Ke,qe,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 VR(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&&IR(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&&IR(t,e,r,s)}}function zve(e,r,t){var a=Ud.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=Vn.templateString(f,i._meta))));var c=Vn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Yn.font,u).text(l?UR(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(m3,e,r,t).on("edit",function(d){this.text(UR(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 UR(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 Gve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Vn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Mm.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)),VR(r,l,e,i,qo.event)}}))}function Uve(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=Vn.ensureSingle(e,"rect",a+"titletoggle",function(f){r._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(Mm.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:qo.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&&OR(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&&OR(r,t,t.titledoubleclick))}))}function m3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Zh.convertToTspans(e,t,function(){Hve(r,t,a,n)})}function Hve(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=Ud.getId(t);t||(t=r._fullLayout[s]);var f=t.borderwidth,u;a===zd?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var c=u.size*HR,v,d;if(l){var p=Yn.bBox(l);v=p.height,d=p.width,a===zd?Yn.setTranslate(o,f,f+v*.75):Yn.setTranslate(o,0,v*.25)}else{var y="."+s+(a===zd?"title":"")+"text",m=e.select(y),b=Zh.lineCount(m),T=m.node();if(v=c*b,d=T?Yn.bBox(T).width:0,a===zd)t.title.side==="left"&&(d+=ni.itemGap*2),Zh.positionText(m,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(m,_,-c*((b-1)/2-.3))}}a===zd?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function Vve(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 Yve(e,r,t,a,n){var i=e._fullLayout,o=Ud.getId(a);a||(a=i[o]);var l=i._size,s=Ud.isVertical(a),f=Ud.isGrouped(a),u=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=ni.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=Vve(a);if(s)t.each(function(qe){var Je=qe[0].height;Yn.setTranslate(this,c+O[0],c+O[1]+a._height+Je/2+d),a._height+=Je,a._width=Math.max(a._width,qe[0].width)}),P=p+a._width,a._width+=d+p+v,a._height+=y,f&&(r.each(function(qe,Je){Yn.setTranslate(this,0,Je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=g3(a),H=a.x<0||a.x===0&&R==="right",V=a.x>1||a.x===1&&R==="left",ae=T||b,re=i.width/2;a._maxWidth=Math.max(H?ae&&R==="left"?l.l+l.w:re:V?ae&&R==="right"?l.r+l.w:re:l.w,2*p);var Q=0,J=0;t.each(function(qe){var Je=p3(qe,a,p);Q=Math.max(Q,Je),J+=Je}),P=null;var j=0;if(f){var oe=0,se=0,Le=0;r.each(function(){var qe=0,Je=0;qo.select(this).selectAll("g.traces").each(function(Sr){var Er=p3(Sr,a,p),br=Sr[0].height;Yn.setTranslate(this,O[0],O[1]+c+d+br/2+Je),Je+=br,qe=Math.max(qe,Er),x[Sr[0].trace.legendgroup]=qe});var Ke=qe+d;se>0&&Ke+c+se>a._maxWidth?(j=Math.max(j,se),se=0,Le+=oe+_,oe=Je):oe=Math.max(oe,Je),Yn.setTranslate(this,se,Le),se+=Ke}),a._width=Math.max(j,se)+c,a._height=Le+oe+y}else{var Ue=t.size(),Ee=J+v+(Ue-1)*d=a._maxWidth&&(j=Math.max(j,Ie),we=0,fr+=Ve,a._height+=Ve,Ve=0),Yn.setTranslate(this,O[0]+c+we,O[1]+c+fr+Je/2+d),Ie=we+Ke+d,we+=Sr,Ve=Math.max(Ve,Je)}),Ee?(a._width=we+v,a._height=Ve+y):(a._width=Math.max(j,Ie)+v,a._height+=Ve+y)}}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,vr=He.legendText||He.legendPosition;t.each(function(qe){var Je=qo.select(this).select("."+o+"toggle"),Ke=qe[0].height,Sr=qe[0].trace.legendgroup,Er=p3(qe,a,p);f&&Sr!==""&&(Er=x[Sr]);var br=vr?p:P||Er;!s&&!u&&(br+=d/2),Yn.setRect(Je,0,-Ke/2,br,Ke)});var $e=n.select("."+o+"titletext");$e.node()&&Bve($e,a,c);var ee=n.select("."+o+"titletoggle");if(ee.size()&&$e.node()){var de=$e.attr("x")||0,ne=ni.titlePad;Yn.setRect(ee,de-ne,c,a._titleWidth+2*ne,a._titleHeight+2*ne)}}function Wve(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 Jw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Gd[o],r:i._width*BR[o],b:i._effHeight*BR[l],t:i._effHeight*Gd[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 Vn.isRightAnchor(e)?"right":Vn.isCenterAnchor(e)?"center":"left"}function b3(e){return Vn.isBottomAnchor(e)?"bottom":Vn.isMiddleAnchor(e)?"middle":"top"}});var tA=N(rA=>{"use strict";var Jh=da(),Nu=ba(),WR=Ls(),Rn=Ur(),jve=Rn.pushUnique,Kw=Rn.strTranslate,Xve=Rn.strRotate,Zve=tm(),Wl=to(),Jve=mR(),Rf=Ha(),Ai=ha(),x3=Bs(),qf=yn(),$ve=ci().zindexSeparator,Vd=Bt(),zs=Pu(),$h=V1(),Qve=Ow(),Kve=Qw(),eq=$h.YANGLE,eA=Math.PI*eq/180,ehe=1/Math.sin(eA),rhe=Math.cos(eA),the=Math.sin(eA),gn=$h.HOVERARROWSIZE,ua=$h.HOVERTEXTPAD,jR={box:!0,ohlc:!0,violin:!0,candlestick:!0},ahe={scatter:!0,scattergl:!0,splom:!0};function XR(e,r){return e.distance-r.distance}rA.hover=function(r,t,a,n){r=Rn.getGraphDiv(r);var i=t.target;Rn.throttle(r._fullLayout._uid+$h.HOVERID,$h.HOVERMINTIME,function(){nhe(r,t,a,n,i)})};rA.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=iq(n),o=oq(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(Vd.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},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:m.color||Ai.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=tq(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ai.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?re=zs.flat(i,r.xval):re=zs.p2c(M,de),"yval"in r?Q=zs.flat(i,r.yval):Q=zs.p2c(k,ne),!Nu(re[0])||!Nu(Q[0]))return Rn.warn("Fx.hover failed",r,e),x3.unhoverRaw(e,r)}var Ke=1/0;function Sr(Et,Pa){for(j=0;jIe&&(V.splice(0,Ie),Ke=V[0].distance),c&&H!==0&&V.length===0){fr.distance=H,fr.index=!1;var fa=se._module.hoverPoints(fr,Ve,we,"closest",{hoverLayer:l._hoverlayer});if(fa&&(fa=fa.filter(function(dn){return dn.spikeDistance<=H})),fa&&fa.length){var Tn,Ka=fa.filter(function(dn){return dn.xa.showspikes&&dn.xa.spikesnap!=="hovered data"});if(Ka.length){var en=Ka[0];Nu(en.x0)&&Nu(en.y0)&&(Tn=br(en),(!He.vLinePoint||He.vLinePoint.spikeDistance>Tn.spikeDistance)&&(He.vLinePoint=Tn))}var fo=fa.filter(function(dn){return dn.ya.showspikes&&dn.ya.spikesnap!=="hovered data"});if(fo.length){var Ii=fo[0];Nu(Ii.x0)&&Nu(Ii.y0)&&(Tn=br(Ii),(!He.hLinePoint||He.hLinePoint.spikeDistance>Tn.spikeDistance)&&(He.hLinePoint=Tn))}}}}}Sr();function Er(Et,Pa,ia){for(var Ia=null,$a=1/0,Qa,fa=0;faEt.trace.index===rr.trace.index):V=[rr];var ur=V.length,Hr=KR("x",rr,l),ot=KR("y",rr,l);Sr(Hr,ot);var Wr=[],tt={},xt=0,jr=function(Et){var Pa=jR[Et.trace.type]?rq(Et):Et.trace.index;if(!tt[Pa])xt++,tt[Pa]=xt,Wr.push(Et);else{var ia=tt[Pa]-1,Ia=Wr[ia];ia>0&&Math.abs(Et.distance)ur-1;at--)jr(V[at]);V=Wr,wr()}var gr=e._hoverdata,Se=[],Oe=iq(e),pr=oq(e);for(let Et of V){var _r=zs.makeEventData(Et,Et.trace,Et.cd);if(Et.hovertemplate!==!1){var ht=!1;Et.cd[Et.index]&&Et.cd[Et.index].ht&&(ht=Et.cd[Et.index].ht),Et.hovertemplate=ht||Et.trace.hovertemplate||!1}if(Et.xa&&Et.ya){var Tt=Et.x0+Et.xa._offset,wt=Et.x1+Et.xa._offset,Ot=Et.y0+Et.ya._offset,ta=Et.y1+Et.ya._offset,Ma=Math.min(Tt,wt),Ba=Math.max(Tt,wt),an=Math.min(Ot,ta),Va=Math.max(Ot,ta);_r.bbox={x0:Ma+pr,x1:Ba+pr,y0:an+Oe,y1:Va+Oe}}Et.eventData=[_r],Se.push(_r)}e._hoverdata=Se;var xn=v==="y"&&(ae.length>1||V.length>1)||v==="closest"&&vr&&V.length>1,Pn=Ai.combine(l.plot_bgcolor||Ai.background,l.paper_bgcolor),di=tq(V,{gd:e,hovermode:v,rotateLabels:xn,bgColor:Pn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),hn=di.hoverLabels;if(zs.isUnifiedHover(v)||(ohe(hn,xn,l,di.commonLabelBoundingBox),nq(hn,xn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Jn=Vd.getComponentMethod("annotations","hasClickToShow")(e,Se);Jve(Jh.select(n),Jn?"pointer":"")}!n||a||!fhe(e,r,gr)||(gr&&e.emit("plotly_unhover",{event:r,points:gr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:k,xvals:re,yvals:Q}))}function rq(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 ihe=/([\s\S]*)<\/extra>/;function tq(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-Oe&&(pr=a.width-Oe),rr.attr("d","M"+(at-pr)+",0L"+(at-pr+gn)+","+Se+gn+"H"+Oe+"v"+Se+(ua*2+jr.height)+"H"+-Oe+"V"+Se+gn+"H"+(at-pr-gn)+"Z"),at=pr,j.minX=at-Oe,j.maxX=at+Oe,_.side==="top"?(j.minY=gr-(ua*2+jr.height),j.maxY=gr-ua):(j.minY=gr+ua,j.maxY=gr+(ua*2+jr.height))}else{var _r,ht,Tt;x.side==="right"?(_r="start",ht=1,Tt="",at=_._offset+_._length):(_r="end",ht=-1,Tt="-",at=_._offset),gr=x._offset+(T.y0+T.y1)/2,ur.attr("text-anchor",_r),rr.attr("d","M0,0L"+Tt+gn+","+gn+"V"+(ua+jr.height/2)+"h"+Tt+(ua*2+jr.width)+"V-"+(ua+jr.height/2)+"H"+Tt+gn+"V-"+gn+"Z"),j.minY=gr-(ua+jr.height/2),j.maxY=gr+(ua+jr.height/2),x.side==="right"?(j.minX=at+gn,j.maxX=at+gn+(ua*2+jr.width)):(j.minX=at-gn-(ua*2+jr.width),j.maxX=at-gn);var wt=jr.height/2,Ot=P-jr.top-wt,ta="clip"+a._uid+"commonlabel"+x._id,Ma;if(atrr.hoverinfo!=="none");if(Ar.length===0)return[];var oe=a.hoverlabel,se=oe.font,Le=Ar[0],Ue=((n==="x unified"?Le.xa:Le.ya).unifiedhovertitle||{}).text,Ee=Ue?Rn.hovertemplateString({data:n==="x unified"?[{xa:Le.xa,x:Le.xVal}]:[{ya:Le.ya,y:Le.yVal}],fallback:Le.trace.hovertemplatefallback,locale:a._d3locale,template:Ue}):M,Ve={showlegend:!0,legend:{title:{text:Ee,font:se},font:se,bgcolor:oe.bgcolor,bordercolor:oe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},we={font:se};Qve(Ve,we,t._fullData);var fr=we.legend;fr.entries=[];for(var Ie=0;Ie=0?or=wr:Yr+Je=0?or=Yr:et+Je=0?st=Vr:nt+Ke=0?st=nt:Pe+Ke=0,(Ar.idealAlign==="top"||!Va)&&xn?(Tt-=Ot/2,Ar.anchor="end"):Va?(Tt+=Ot/2,Ar.anchor="start"):Ar.anchor="middle",Ar.crossPos=Tt;else{if(Ar.pos=Tt,Va=ht+wt/2+an<=O,xn=ht-wt/2-an>=0,(Ar.idealAlign==="left"||!Va)&&xn)ht-=wt/2,Ar.anchor="end";else if(Va)ht+=wt/2,Ar.anchor="start";else{Ar.anchor="middle";var Pn=an/2,di=ht+Pn-O,hn=ht-Pn;di>0&&(ht-=di),hn<0&&(ht+=-hn)}Ar.crossPos=ht}gr.attr("text-anchor",Ar.anchor),Oe&&Se.attr("text-anchor",Ar.anchor),rr.attr("transform",Kw(ht,Tt)+(i?Xve(eq):""))}),{hoverLabels:kt,commonLabelBoundingBox:j}}function ZR(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=QR(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(ihe,(p,y)=>(o=QR(y,e.nameLength),""))}return[l,o]}function ohe(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(re){return re*t._invScaleX},m=function(re){return re*t._invScaleY};e.each(function(re){var Q=re[n],J=re[i],j=Q._id.charAt(0)==="x",oe=Q.range;u===0&&oe&&oe[0]>oe[1]!==j&&(l=-1);var se=0,Le=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ue=aq(re,r),Ee=re.anchor,Ve=Ee==="end"?-1:1,we,fr;if(Ee==="middle")we=re.crossPos+(j?m(Ue.y-re.by/2):y(re.bx/2+re.tx2width/2)),fr=we+(j?m(re.by):y(re.bx));else if(j)we=re.crossPos+m(gn+Ue.y)-m(re.by/2-gn),fr=we+m(re.by);else{var Ie=y(Ve*gn+Ue.x),He=Ie+y(Ve*re.bx);we=re.crossPos+Math.min(Ie,He),fr=re.crossPos+Math.max(Ie,He)}j?d!==void 0&&p!==void 0&&Math.min(fr,p)-Math.max(we,d)>1&&(J.side==="left"?(se=J._mainLinePosition,Le=t.width):Le=J._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fr,v)-Math.max(we,c)>1&&(J.side==="top"?(se=J._mainLinePosition,Le=t.height):Le=J._mainLinePosition)}f[u++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(j?ehe:1)/2,pmin:se,pmax:Le}]}),f.sort(function(re,Q){return re[0].posref-Q[0].posref||l*(Q[0].traceIndex-re[0].traceIndex)});var b,T,_,x,A,E,M;function k(re){var Q=re[0],J=re[re.length-1];if(T=Q.pmin-Q.pos-Q.dp+Q.size,_=J.pos+J.dp+J.size-Q.pmax,T>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=_;b=!1}if(b){var j=0;for(x=0;xQ.pmax&&j++;for(x=re.length-1;x>=0&&!(j<=0);x--)E=re[x],E.pos>Q.pmax-1&&(E.del=!0,j--);for(x=0;x=0;A--)re[A].dp-=_;for(x=re.length-1;x>=0&&!(j<=0);x--)E=re[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 V=H[A],ae=V.datum;ae.offset=V.dp,ae.del=V.del}}}function aq(e,r){var t=0,a=e.offset;return r&&(a*=-the,t=e.offset*rhe),{x:t,y:a}}function lhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(gn+ua),a=t+r*(e.txwidth+ua),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+ua),{alignShift:r,textShiftX:t,text2ShiftX:a}}function nq(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=lhe(o),v=aq(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*gn+d)+","+i(gn+p)+"v"+i(o.by/2-gn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*gn+d)+"V"+i(p-gn)+"Z":b="M"+n(u*gn+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+ua,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+ua:-o.bx-ua):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-ua:o.bx+ua)),s.call(Wl.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(Wl.positionText,n(c.text2ShiftX+c.alignShift*ua+d),i(p+o.ty0-o.by/2+ua)),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 she(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Nu(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 JR(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 y=u.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=WR.readability(v.color,c)<1.5?Ai.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=WR.readability(F.color,c)<1.5?Ai.contrast(c):F.color,V=f.spikemode,ae=f.spikethickness,re=f.spikecolor||H,Q=qf.getPxPosition(e,f),J,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(J=Q,j=O),V.indexOf("across")!==-1){var oe=f._counterDomainMin,se=f._counterDomainMax;f.anchor==="free"&&(oe=Math.min(oe,f.position),se=Math.max(se,f.position)),J=i.t+(1-se)*i.h,j=i.t+(1-oe)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ae,stroke:re,"stroke-dasharray":Rf.dashStyle(f.spikedash,ae)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ae+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:Q-(f.side!=="top"?ae:-ae),r:ae,fill:re}).classed("spikeline",!0)}}}function fhe(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 $R(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function QR(e,r){return Wl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function uhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,oq=e=>e.offsetLeft+e.clientLeft;function Hd(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((GLe,lq)=>{"use strict";var che=Ur(),vhe=ha(),hhe=Pu().isUnifiedHover;lq.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&&hhe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=vhe.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),che.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var fq=N((ULe,sq)=>{"use strict";var dhe=Ur(),phe=_3(),mhe=id();sq.exports=function(r,t){function a(n,i){return dhe.coerce(r,t,mhe,n,i)}phe(r,t,a)}});var vq=N((HLe,cq)=>{"use strict";var uq=Ur(),yhe=Xg(),ghe=_3();cq.exports=function(r,t,a,n){function i(l,s){return uq.coerce(r,t,yhe,l,s)}var o=uq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),ghe(r,t,i,o)}});var aA=N((VLe,hq)=>{"use strict";var bhe=Ur(),xhe=id();hq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:bhe.coerce(r,t,xhe,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var mq=N((YLe,pq)=>{"use strict";var dq=Ur(),_he=id(),whe=aA(),Ahe=_3();pq.exports=function(r,t){function a(u,c){return dq.coerce(r,t,_he,u,c)}var n=whe(r,t);n&&(a("hoverdistance"),a("spikedistance"));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"),Ahe(r,t,a),dq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var bq=N((WLe,gq)=>{"use strict";var nA=Ur(),yq=Bt();gq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return nA.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var Mhe=Bt(),She=tA().hover;xq.exports=function(r,t,a){var n=Mhe.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&She(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ev=N((XLe,Tq)=>{"use strict";var Ehe=da(),w3=Ur(),khe=Bs(),Sm=Pu(),wq=id(),Aq=tA();Tq.exports={moduleType:"component",name:"fx",constants:V1(),schema:{layout:wq},attributes:Xg(),layoutAttributes:wq,supplyLayoutGlobalDefaults:fq(),supplyDefaults:vq(),supplyLayoutDefaults:mq(),calc:bq(),getDistanceFunction:Sm.getDistanceFunction,getClosest:Sm.getClosest,inbox:Sm.inbox,quadrature:Sm.quadrature,appendArrayPointValue:Sm.appendArrayPointValue,castHoverOption:Lhe,castHoverinfo:Dhe,hover:Aq.hover,unhover:khe.unhover,loneHover:Aq.loneHover,loneUnhover:Che,click:_q()};function Che(e){var r=w3.isD3Selection(e)?e:Ehe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Lhe(e,r,t){return w3.castOption(e,r,"hoverlabel."+t)}function Dhe(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(Iu=>{"use strict";Iu.selectMode=function(e){return e==="lasso"||e==="select"};Iu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Iu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Iu.selectingOrDrawing=function(e){return Iu.freeMode(e)||Iu.rectMode(e)}});var A3=N((JLe,Mq)=>{"use strict";Mq.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(($Le,Sq)=>{"use strict";Sq.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((QLe,Eq)=>{"use strict";var M3=32;Eq.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((KLe,Cq)=>{"use strict";var Fhe=Ur().strTranslate;function kq(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 Rhe(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 qhe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return kq(e,t[r])}}function Phe(e){return Fhe(e.xaxis._offset,e.yaxis._offset)}Cq.exports={p2r:kq,r2p:Rhe,axValue:qhe,getTransform:Phe}});var tv=N(Ou=>{"use strict";var Nhe=um(),Fq=S3(),Yd=Fq.CIRCLE_SIDES,iA=Fq.SQRT2,Rq=E3(),Lq=Rq.p2r,Dq=Rq.r2p,Ihe=[0,3,4,5,6,1,2],Ohe=[0,3,4,1,2];Ou.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var qq=kn(),Bq=rv(),Bhe=Bq.drawMode,zhe=Bq.openMode,Wd=S3(),Pq=Wd.i000,Nq=Wd.i090,Iq=Wd.i180,Oq=Wd.i270,Ghe=Wd.cos45,Uhe=Wd.sin45,zq=E3(),C3=zq.p2r,av=zq.r2p,Hhe=Vc(),Vhe=Hhe.clearOutline,L3=tv(),Yhe=L3.readPaths,Whe=L3.writePaths,jhe=L3.ellipseOver,Xhe=L3.fixDatesForPaths;function Zhe(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(!Bhe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var Jhe=rv(),$he=Jhe.selectMode,Qhe=Vc(),Khe=Qhe.clearOutline,oA=tv(),e0e=oA.readPaths,r0e=oA.writePaths,t0e=oA.fixDatesForPaths;Hq.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(!$he(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Vq.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(Hi=>{"use strict";var Pf=km(),Yq=Ur(),nv=yn();Hi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Hi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Hi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Hi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Hi.extractPathCoords=function(e,r,t){var a=[],n=e.match(Pf.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Pf.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Hi.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=Hi.shapePositionToRange(r);o=function(s){var f=Bu(r,t);return r._offset+r.r2p(l(s,!0))+f},r.type==="date"&&(o=Hi.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};Hi.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=Hi.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};Hi.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Hi.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}};Hi.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}};Hi.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 V;if(P)if(O==="domain")H?V=function(ae){return P._offset+P._length*(1-ae)}:V=function(ae){return P._offset+P._length*ae};else{let ae=Hi.shapePositionToRange(P);V=function(re){return P._offset+P.r2p(ae(re,!0))},R==="path"&&P.type==="date"&&(V=Hi.decodeDate(V))}else H?V=function(ae){return i.t+i.h*(1-ae)}:V=function(ae){return i.l+i.w*ae};return V}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 a0e(r,v,d);if(a==="array")s=Bu(o[0],r.x0shift),f=Bu(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+f;else if(s=Bu(o,r.x0shift),f=Bu(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=Bu(l[0],r.y0shift),c=Bu(l[1],r.y1shift),m=d[0](r.y0)+u,b=d[1](r.y1)+c;else if(u=Bu(l,r.y0shift),c=Bu(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 a0e(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(Pf.segmentRE,function(v){var d=0,p=v.charAt(0),y=Pf.paramIsX[p],m=Pf.paramIsY[p],b=Pf.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(Pf.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.*/,""),Yq.log("Ignoring extra params in segment "+v)),T&&u++,_&&c++,p+E})}function Bu(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 fA=N((iDe,Xq)=>{"use strict";var n0e=Ur(),Nf=yn(),Wq=to(),jq=Ha(),i0e=tv().readPaths,sA=iv(),o0e=sA.getPathString,Cm=t2(),l0e=ro().FROM_TL;Xq.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=Nf.getFromId(r,a.xref),s=Nf.getFromId(r,a.yref);let se=Array.isArray(a.xref),Le=Array.isArray(a.yref);for(var f in Cm){var u=typeof Cm[f]=="function",c=!se||Cm.simpleXVariables.includes(f),v=!Le||Cm.simpleYVariables.includes(f);if(u&&c&&v){var d=Cm[f](a,l,s);d!==void 0&&(o[f]=d)}}}i=n0e.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=o0e(r,a),k=i0e(M,r);_=1/0,A=1/0,x=-1/0,E=-1/0;for(var F=0;F=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function f0e(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 u0e=Ur(),c0e=u0e.strTranslate,Zq=Bs(),Qq=rv(),v0e=Qq.drawMode,Kq=Qq.selectMode,eP=Bt(),Jq=ha(),F3=S3(),h0e=F3.i000,d0e=F3.i090,p0e=F3.i180,m0e=F3.i270,y0e=Vc(),rP=y0e.clearOutlineControllers,cA=tv(),Lm=cA.pointsOnRectangle,uA=cA.pointsOnEllipse,g0e=cA.writePaths,b0e=D3().newShapes,x0e=D3().createShapeObj,_0e=lA(),w0e=fA();tP.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(uA(r[0])||Lm(r[0])||a.hasText)&&l({redrawing:!0})}function l(Q){var J={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,J=b0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,J=_0e(t,a),i._fullLayout._reselect=!0),Object.keys(J).length&&eP.call((Q||{}).redrawing?"relayout":"_guiRelayout",i,J)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=v0e(u),v=Kq(u);(c||v)&&(i._fullLayout._outlining=!0),rP(i),t.attr("d",g0e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=A0e([],r);var T=f.append("g").attr("class","outline-controllers");P(T),re()}if(c&&a.hasText){var _=f.select(".label-temp"),x=x0e(t,a,a.dragmode);w0e(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],oe=b[y][m][2],se=r[y],Le=se.length;if(Lm(se)){var Ue=Q,Ee=J;if(a.isActiveSelection){var Ve=$q(se,m);Ve[1]===se[m][1]?Ee=0:Ue=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];!Lm(j)&&!uA(j)&&k()}}function P(Q){d=[];for(var J=0;J{"use strict";var M0e=da(),lP=Bt(),hA=Ur(),Qh=yn(),S0e=tv().readPaths,E0e=R3(),P3=fA(),sP=Vc().clearOutlineControllers,vA=ha(),N3=Ha(),k0e=Xa().arrayEditor,aP=Bs(),nP=Qc(),Kh=km(),Qo=iv(),dA=Qo.getPathString;cP.exports={draw:pA,drawOne:fP,eraseActiveShape:F0e,drawLabel:P3};function pA(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;nQh.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 L0e(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=M0e.select(r.node().parentNode),H=Qh.getFromId(e,t.xref),V=Qh.getRefType(t.xref),ae=Qh.getFromId(e,t.yref),re=Qh.getRefType(t.yref),Q=t.x0shift,J=t.x1shift,j=t.y0shift,oe=t.y1shift,se=function(Er,br){var zr=Qo.getDataToPixel(e,H,br,!1,V);return zr(Er)},Le=function(Er,br){var zr=Qo.getDataToPixel(e,ae,br,!0,re);return zr(Er)},Ue=Qo.getPixelToData(e,H,!1,V),Ee=Qo.getPixelToData(e,ae,!0,re),Ve=Ie(),we={element:Ve.node(),gd:e,prepFn:$e,doneFn:ee,clickFn:de},fr;aP.init(we),Ve.node().onmousemove=vr;function Ie(){return u?He():r}function He(){var Er=10,br=Math.max(t.line.width,Er),zr=n.append("g").attr("data-index",a).attr("drag-helper",!0);zr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":br,"stroke-opacity":"0"});var Vr={"fill-opacity":"0"},nt=Math.max(br/2,Er);return zr.append("circle").attr({"data-line-point":"start-point",cx:s?se(t.xanchor)+t.x0:se(t.x0,Q),cy:f?Le(t.yanchor)-t.y0:Le(t.y0,j),r:nt}).style(Vr).classed("cursor-grab",!0),zr.append("circle").attr({"data-line-point":"end-point",cx:s?se(t.xanchor)+t.x1:se(t.x1,J),cy:f?Le(t.yanchor)-t.y1:Le(t.y1,oe),r:nt}).style(Vr).classed("cursor-grab",!0),zr}function vr(Er){if(q3(e)){fr=null;return}if(u)Er.target.tagName==="path"?fr="move":fr=Er.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var br=we.element.getBoundingClientRect(),zr=br.right-br.left,Vr=br.bottom-br.top,nt=Er.clientX-br.left,wr=Er.clientY-br.top,Yr=!c&&zr>o&&Vr>l&&!Er.shiftKey?aP.getCursor(nt/zr,1-wr/Vr):"move";nP(r,Yr),fr=Yr.split("-")[0]}}function $e(Er){q3(e)||(s&&(b=se(t.xanchor)),f&&(T=Le(t.yanchor)),t.type==="path"?O=t.path:(d=s?t.x0:se(t.x0),p=f?t.y0:Le(t.y0),y=s?t.x1:se(t.x1),m=f?t.y1:Le(t.y1)),dm?(_=p,M="y0",x=m,k="y1"):(_=m,M="y1",x=p,k="y0"),vr(Er),Je(n,t),Sr(r,t,e),we.moveFn=fr==="move"?ne:qe,we.altKey=Er.altKey)}function ee(){q3(e)||(nP(r),Ke(n),uP(r,e,t),lP.call("_guiRelayout",e,i.getUpdateObj()))}function de(){q3(e)||Ke(n)}function ne(Er,br){if(t.type==="path"){var zr=function(wr){return wr},Vr=zr,nt=zr;s?v("xanchor",t.xanchor=Ue(b+Er)):(Vr=function(Yr){return Ue(se(Yr)+Er)},H&&H.type==="date"&&(Vr=Qo.encodeDate(Vr))),f?v("yanchor",t.yanchor=Ee(T+br)):(nt=function(Yr){return Ee(Le(Yr)+br)},ae&&ae.type==="date"&&(nt=Qo.encodeDate(nt))),v("path",t.path=iP(O,Vr,nt))}else s?v("xanchor",t.xanchor=Ue(b+Er)):(v("x0",t.x0=Ue(d+Er)),v("x1",t.x1=Ue(y+Er))),f?v("yanchor",t.yanchor=Ee(T+br)):(v("y0",t.y0=Ee(p+br)),v("y1",t.y1=Ee(m+br)));r.attr("d",dA(e,t)),Je(n,t),P3(e,a,t,R)}function qe(Er,br){if(c){var zr=function(tt){return tt},Vr=zr,nt=zr;s?v("xanchor",t.xanchor=Ue(b+Er)):(Vr=function(xt){return Ue(se(xt)+Er)},H&&H.type==="date"&&(Vr=Qo.encodeDate(Vr))),f?v("yanchor",t.yanchor=Ee(T+br)):(nt=function(xt){return Ee(Le(xt)+br)},ae&&ae.type==="date"&&(nt=Qo.encodeDate(nt))),v("path",t.path=iP(O,Vr,nt))}else if(u){if(fr==="resize-over-start-point"){var wr=d+Er,Yr=f?p-br:p+br;v("x0",t.x0=s?wr:Ue(wr)),v("y0",t.y0=f?Yr:Ee(Yr))}else if(fr==="resize-over-end-point"){var et=y+Er,Pe=f?m-br:m+br;v("x1",t.x1=s?et:Ue(et)),v("y1",t.y1=f?Pe:Ee(Pe))}}else{var or=function(tt){return fr.indexOf(tt)!==-1},st=or("n"),kt=or("s"),Ar=or("w"),rr=or("e"),ur=st?_+br:_,Hr=kt?x+br:x,ot=Ar?A+Er:A,Wr=rr?E+Er:E;f&&(st&&(ur=_-br),kt&&(Hr=x-br)),(!f&&Hr-ur>l||f&&ur-Hr>l)&&(v(M,t[M]=f?ur:Ee(ur)),v(k,t[k]=f?Hr:Ee(Hr))),Wr-ot>o&&(v(F,t[F]=s?ot:Ue(ot)),v(P,t[P]=s?Wr:Ue(Wr)))}r.attr("d",dA(e,t)),Je(n,t),P3(e,a,t,R)}function Je(Er,br){(s||f)&&zr();function zr(){var Vr=br.type!=="path",nt=Er.selectAll(".visual-cue").data([0]),wr=1;nt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Yr=se(s?br.xanchor:hA.midRange(Vr?[br.x0,br.x1]:Qo.extractPathCoords(br.path,Kh.paramIsX))),et=Le(f?br.yanchor:hA.midRange(Vr?[br.y0,br.y1]:Qo.extractPathCoords(br.path,Kh.paramIsY)));if(Yr=Qo.roundPositionForSharpStrokeRendering(Yr,wr),et=Qo.roundPositionForSharpStrokeRendering(et,wr),s&&f){var Pe="M"+(Yr-1-wr)+","+(et-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";nt.attr("d",Pe)}else if(s){var or="M"+(Yr-1-wr)+","+(et-9-wr)+"v18 h2 v-18 Z";nt.attr("d",or)}else{var st="M"+(Yr-9-wr)+","+(et-1-wr)+"h18 v2 h-18 Z";nt.attr("d",st)}}}function Ke(Er){Er.selectAll(".visual-cue").remove()}function Sr(Er,br,zr){var Vr=br.xref,nt=br.yref,wr=Qh.getFromId(zr,Vr),Yr=Qh.getFromId(zr,nt),et="";Vr!=="paper"&&!wr.autorange&&(et+=Vr),nt!=="paper"&&!Yr.autorange&&(et+=nt),N3.setClipUrl(Er,et?"clip"+zr._fullLayout._uid+et:null,zr)}}function iP(e,r,t){return e.replace(Kh.segmentRE,function(a){var n=0,i=a.charAt(0),o=Kh.paramIsX[i],l=Kh.paramIsY[i],s=Kh.numParams[i],f=a.slice(1).replace(Kh.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function D0e(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){oP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=oP,pA(e)}}}function oP(e){if(I3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(sP(e),delete e._fullLayout._activeShapeIndex,pA(e))}}function F0e(e){if(I3(e)){sP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var jl=Bt(),vP=_i(),hP=kn(),xa=T3(),R0e=O3().eraseActiveShape,B3=Ur(),la=B3._,_a=xP.exports={};_a.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:xa.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};B3.notifier(la(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),jl.call("downloadImage",e,t).then(function(a){B3.notifier(la(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){B3.notifier(la(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};_a.sendDataToCloud={name:"sendDataToCloud",title:function(e){return la(e,"Edit in Chart Studio")},icon:xa.disk,click:function(e){vP.sendDataToCloud(e)}};_a.editInChartStudio={name:"editInChartStudio",title:function(e){return la(e,"Edit in Chart Studio")},icon:xa.pencil,click:function(e){vP.sendDataToCloud(e)}};_a.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:xa.zoombox,click:go};_a.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:xa.pan,click:go};_a.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:xa.selectbox,click:go};_a.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:xa.lasso,click:go};_a.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:xa.drawclosedpath,click:go};_a.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:xa.drawopenpath,click:go};_a.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:xa.drawline,click:go};_a.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:xa.drawrect,click:go};_a.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:xa.drawcircle,click:go};_a.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:xa.eraseshape,click:R0e};_a.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:xa.zoom_plus,click:go};_a.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:xa.zoom_minus,click:go};_a.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:xa.autoscale,click:go};_a.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:xa.home,click:go};_a.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:xa.tooltip_basic,gravity:"ne",click:go};_a.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:xa.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=hP.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 _P=gA(),N0e=Object.keys(_P),wP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],AP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(wP),Xd=[],I0e=function(e){if(AP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Xd.indexOf(r)===-1&&Xd.push(r),Xd.indexOf(t)===-1&&Xd.push(t)}};N0e.forEach(function(e){I0e(_P[e])});Xd.sort();TP.exports={DRAW_MODES:wP,backButtons:AP,foreButtons:Xd}});var xA=N((cDe,MP)=>{"use strict";var uDe=bA();MP.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 EP=N((vDe,SP)=>{"use strict";var O0e=Ur(),Dm=ha(),B0e=Xa(),z0e=xA();SP.exports=function(r,t){var a=r.modebar||{},n=B0e.newContainer(t,"modebar");function i(l,s){return O0e.coerce(a,n,z0e,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 DP=N((hDe,LP)=>{"use strict";var _A=da(),G0e=ba(),G3=Ur(),kP=T3(),U0e=Ng().version,H0e=new DOMParser;function CP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var If=CP.prototype;If.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(),G3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};If.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)})};If.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};If.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&&_A.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||kP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};If.createIcon=function(e){var r=G0e(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=H0e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};If.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=_A.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:G3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};If.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var W0e=kn(),FP=qi(),wA=Bt(),j0e=Pu().isUnifiedHover,X0e=DP(),U3=gA(),Z0e=bA().DRAW_MODES,J0e=Ur().extendDeep;RP.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=tde(i):!a.displayModeBar&&a.watermark?o=[]:o=$0e(r),n?n.update(r,o):t._modeBar=X0e(r,o)};function $0e(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 oe=j.name,se=j._cat||j.name;if(oe===J||se===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"),(ede(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"]),K0e(t)&&R.push("select2d","lasso2d");var H=[],V=function(J){H.indexOf(J)===-1&&P.indexOf(J)!==-1&&H.push(J)};if(Array.isArray(l)){for(var ae=[],re=0;re{"use strict";PP.exports={moduleType:"component",name:"modebar",layoutAttributes:xA(),supplyLayoutDefaults:EP(),manage:qP()}});var TA=N((mDe,NP)=>{"use strict";var ade=ro().FROM_BL;NP.exports=function(r,t,a){a===void 0&&(a=ade[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 e0=Ur(),MA=qd(),Gs=kn().id2name,nde=Hl(),IP=TA(),ide=J2(),ode=ri().ALMOST_EQUAL,lde=ro().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 fde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oode*p&&!T)){for(i=0;iR&&oeP&&(P=oe);var Le=(P-F)/(2*O);c/=Le,F=s.l2r(F),P=s.l2r(P),s.range=s._input.range=E{"use strict";var V3=da(),bo=Bt(),Al=_i(),Xl=Ur(),kA=to(),CA=A3(),qm=ha(),Zd=Ha(),GP=hm(),WP=AA(),Pm=yn(),zu=ro(),jP=Rm(),ude=jP.enforce,cde=jP.clean,UP=qd().doAutoRange,XP="start",vde="middle",ZP="end",hde=ci().zindexSeparator;Ti.layoutStyles=function(e){return Xl.syncOrAsync([Al.doAutoMargin,pde],e)};function dde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function pde(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(Zd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ti.drawMainTitle(e),WP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c($e,ee,de){var ne=$e._lw/2;if($e._id.charAt(0)==="x"){if(ee){if(de==="top")return ee._offset-a-ne}else return t.t+t.h*(1-($e.position||0))+ne%1;return ee._offset+ee._length+a+ne}if(ee){if(de==="right")return ee._offset+ee._length+a+ne}else return t.l+t.w*($e.position||0)+ne%1;return ee._offset-a-ne}for(i=0;i0){bde(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:YP(r.yanchor)}).call(kA.positionText,o,i);var u=(r.text.match(kA.BR_TAG_ALL)||[]).length;if(u){var c=zu.LINE_SPACING*u+zu.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=V3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+GP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:YP(r.yanchor)}).call(kA.positionText,o,y)}}}};function mde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Xl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Xl.isTopAnchor(r)&&t==="t"||Xl.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=yde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function bde(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),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function xde(e,r){var t=e.title,a=e._size,n=0;switch(r===XP?n=t.pad.l:r===ZP&&(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 _de(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===zu.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 YP(e){return e==="top"?zu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":zu.MID_SHIFT+"em"}function wde(e){var r=e.title,t=vde;return Xl.isRightAnchor(r)?t=ZP:Xl.isLeftAnchor(r)&&(t=XP),t}function Ade(e){var r=e.title,t="0em";return Xl.isTopAnchor(r)?t=zu.CAP_SHIFT+"em":Xl.isMiddleAnchor(r)&&(t=zu.MID_SHIFT+"em"),t}Ti.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Tde=tv().readPaths,Mde=R3(),JP=Vc().clearOutlineControllers,LA=ha(),$P=Ha(),Sde=Xa().arrayEditor,QP=iv(),Ede=QP.getPathString;eN.exports={draw:W3,drawOne:KP,activateLastSelection:Lde};function W3(e){var r=e._fullLayout;JP(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(LA.stroke,c).call(LA.fill,u).call($P.dashLine,m?"solid":d,m?4+v:v);if(kde(b,e,a),p){var T=Sde(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=Tde(l,e);Mde(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 Cde(e,A)})}}function kde(e,r,t){var a=t.xref+t.yref;$P.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Cde(e,r){if(j3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){DA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=DA,W3(e)}}}function Lde(e){if(j3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=DA,W3(e)}}function DA(e){if(j3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(JP(e),delete e._fullLayout._activeSelectionIndex,W3(e))}}});var tN=N((xDe,rN)=>{function Dde(){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}rN.exports=Dde});var nN=N((_De,aN)=>{function Fde(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}aN.exports=Fde});var oN=N((wDe,iN)=>{var Rde={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}};iN.exports=Rde});var sN=N((ADe,lN)=>{var Nm=oN();function qde(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(ae,re){var Q=ae.seg.start,J=ae.seg.end,j=re.seg.start,oe=re.seg.end;return r.pointsCollinear(Q,j,oe)?r.pointsCollinear(J,j,oe)||r.pointAboveOrOnLine(J,j,oe)?1:-1:r.pointAboveOrOnLine(Q,j,oe)?1:-1}function T(ae){return m.findTransition(function(re){var Q=b(ae,re.ev);return Q>0})}function _(ae,re){var Q=ae.seg,J=re.seg,j=Q.start,oe=Q.end,se=J.start,Le=J.end;t&&t.checkIntersection(Q,J);var Ue=r.linesIntersect(j,oe,se,Le);if(Ue===!1){if(!r.pointsCollinear(j,oe,se)||r.pointsSame(j,Le)||r.pointsSame(oe,se))return!1;var Ee=r.pointsSame(j,se),Ve=r.pointsSame(oe,Le);if(Ee&&Ve)return re;var we=!Ee&&r.pointBetween(j,se,Le),fr=!Ve&&r.pointBetween(oe,se,Le);if(Ee)return fr?v(re,oe):v(ae,Le),re;we&&(Ve||(fr?v(re,oe):v(ae,Le)),v(re,j))}else Ue.alongA===0&&(Ue.alongB===-1?v(ae,se):Ue.alongB===0?v(ae,Ue.pt):Ue.alongB===1&&v(ae,Le)),Ue.alongB===0&&(Ue.alongA===-1?v(re,j):Ue.alongA===0?v(re,Ue.pt):Ue.alongA===1&&v(re,oe));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let ae=function(){if(M){var re=_(A,M);if(re)return re}return k?_(A,k):!1};var V=ae;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=ae();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 Pde(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(V,ae,re){return u.index=V,u.matches_head=ae,u.matches_pt1=re,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 Nde={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)}};cN.exports=Nde});var dN=N((SDe,hN)=>{var Ide={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 Ode=tN(),Bde=nN(),pN=sN(),zde=uN(),Om=vN(),mN=dN(),Zl=!1,Bm=Bde(),Ko;Ko={buildLog:function(e){return e===!0?Zl=Ode():e===!1&&(Zl=!1),Zl===!1?!1:Zl.list},epsilon:function(e){return Bm.epsilon(e)},segments:function(e){var r=pN(!0,Bm,Zl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=pN(!1,Bm,Zl);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,Zl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Om.intersect(e.combined,Zl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Om.difference(e.combined,Zl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Om.differenceRev(e.combined,Zl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Om.xor(e.combined,Zl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zde(e.segments,Bm,Zl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mN.toPolygon(Ko,e)},polygonToGeoJSON:function(e){return mN.fromPolygon(Ko,Bm,e)},union:function(e,r){return zm(e,r,Ko.selectUnion)},intersect:function(e,r){return zm(e,r,Ko.selectIntersect)},difference:function(e,r){return zm(e,r,Ko.selectDifference)},differenceRev:function(e,r){return zm(e,r,Ko.selectDifferenceRev)},xor:function(e,r){return zm(e,r,Ko.selectXor)}};function zm(e,r,t){var a=Ko.segments(e),n=Ko.segments(r),i=Ko.combine(a,n),o=t(i);return Ko.polygon(o)}typeof window=="object"&&(window.PolyBool=Ko);yN.exports=Ko});var xN=N((kDe,bN)=>{bN.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 qA=N((CDe,_N)=>{"use strict";var RA=Kg().dot,X3=ri().BADNUM,Z3=_N.exports={};Z3.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===X3||bo||y&&f(p))}function c(p,y){var m=p[0],b=p[1];if(m===X3||mn||b===X3||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(RA(c,f))>n)return!0;return!1};Z3.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 AN=N((LDe,wN)=>{"use strict";wN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var YN=N((DDe,VN)=>{"use strict";var TN=gN(),Gde=xN(),Hm=Bt(),Ude=Ha().dashStyle,Gm=ha(),Hde=ev(),Vde=Pu().makeEventData,Xm=rv(),Yde=Xm.freeMode,Wde=Xm.rectMode,Vm=Xm.drawMode,OA=Xm.openMode,BA=Xm.selectMode,MN=iv(),SN=km(),DN=R3(),FN=Vc().clearOutline,RN=tv(),PA=RN.handleEllipse,jde=RN.readPaths,Xde=D3().newShapes,Zde=lA(),Jde=FA().activateLastSelection,$3=Ur(),$de=$3.sorterAsc,qN=qA(),Um=h2(),Jl=kn().getFromId,Qde=A3(),Kde=Y3().redrawReglTraces,Q3=AN(),Of=Q3.MINSELECT,epe=qN.filter,zA=qN.tester,GA=E3(),EN=GA.p2r,rpe=GA.axValue,tpe=GA.getTransform;function UA(e){return e.subplot!==void 0}function ape(e,r,t,a,n){var i=!UA(a),o=Yde(n),l=Wde(n),s=OA(n),f=Vm(n),u=BA(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=tpe(_),A=r-T.left,E=t-T.top;y._calcInverseTransform(p);var M=$3.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],V=a.yaxes[0],ae=H._length,re=V._length,Q=e.altKey&&!(Vm(n)&&s),J,j,oe,se,Le,Ue,Ee;NN(e,p,a),o&&(J=epe([[A,E]],Q3.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 fr=f&&!s?we.fillcolor:"rgba(0,0,0,0)",Ie=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":Ude(we.line.dash,we.line.width),"stroke-width":we.line.width+"px","shape-rendering":"crispEdges"}).call(Gm.stroke,Ie).call(Gm.fill,fr).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var He=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 vr=b.select(".label-temp");vr.empty()&&(vr=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var $e=y._uid+Q3.SELECTID,ee=[],de=K3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var qe=H._id,Je=V._id;GN(p,qe,Je,de);for(var Ke=(p.layout||{}).selections||[],Sr=[],Er=!1,br=0;br=0){p._fullLayout._deactivateShape(p);return}if(!f){var Ke=y.clickmode;Um.done($e).then(function(){if(Um.clear($e),qe===2){for(Ve.remove(),Le=0;Le-1&&PN(Je,p,a.xaxes,a.yaxes,a.subplot,a,Ve),Ke==="event"&&jm(p,void 0);Hde.click(p,Je,_.id)}).catch($3.error)}},a.doneFn=function(){He.remove(),Um.done($e).then(function(){Um.clear($e),!m&&se&&a.selectionDefs&&(se.subtract=Q,a.selectionDefs.push(se),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,oe)),(m||f)&&Ym(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&jm(p,Ee)}).catch($3.error)}}function PN(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(spe(l)){NN(e,r,i),v=K3(r,t,a,n);var E=fpe(l,v),M=E.pointNumbers.length>0;if(M?upe(v,E):cpe(v)&&(T=CN(E))){for(o&&o.remove(),A=0;A=0}function lpe(e){return e._fullLayout._activeSelectionIndex>=0}function Ym(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;ope(n)&&n._fullLayout._deactivateShape(n),lpe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Vm(t),s=BA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=Xde(f,e)),u&&Hm.call("_guiRelayout",n,{shapes:u});var c;s&&!UA(e)&&(c=Zde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Hm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Jde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function kN(e){return e._id}function K3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(kN),o=t.map(kN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function upe(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 qe=LN(e,!0);if(qe.length){var Je=qe[0].xref,Ke=qe[0].yref;if(Je&&Ke){var Sr=UN(qe),Er=HN([Jl(e,Je,"x"),Jl(e,Ke,"y")]);Er(ee,Sr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ne&&jm(e,ee),v._reselect=!1}if(!o&&v._deselect){var br=v._deselect;l=br.xref,s=br.yref,dpe(l,s,u)||GN(e,l,s,a),ne&&(ee.points.length?jm(e,ee):YA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function hpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";WN.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((RDe,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 Jd=N((PDe,JN)=>{"use strict";var XN=WA(),ZN=zi(),eb=ci(),bpe=Xa().templatedArray,qDe=Zm();JN.exports=bpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:ZN({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:XN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:XN.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",eb.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",eb.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",eb.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",eb.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:ZN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Jm=N((NDe,$N)=>{"use strict";$N.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var jA=N((IDe,QN)=>{"use strict";QN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var lv=N((ODe,oI)=>{"use strict";var KN=fm().axisHoverFormat,{hovertemplateAttrs:xpe,texttemplateAttrs:_pe,templatefallbackAttrs:eI}=cd(),rI=Nh(),wpe=zi(),tI=Pc().dash,Ape=Pc().pattern,Tpe=Ha(),Mpe=Jm(),$m=zn().extendFlat,Spe=jA();function aI(e){return{valType:"any",dflt:0,editType:"calc"}}function nI(e){return{valType:"any",editType:"calc"}}function iI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}oI.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:aI("x"),yperiod:aI("y"),xperiod0:nI("x0"),yperiod0:nI("y0"),xperiodalignment:iI("x"),yperiodalignment:iI("y"),xhoverformat:KN("x"),yhoverformat:KN("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:_pe(),texttemplatefallback:eI({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:xpe({},{keys:Mpe.eventDataKeys}),hovertemplatefallback:eI(),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({},tI,{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:Spe(!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:Ape,marker:$m({symbol:{valType:"enumerated",values:Tpe.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({},tI,{arrayOk:!0}),editType:"calc"},rI("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"},rI("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:wpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var XA=N((zDe,fI)=>{"use strict";var lI=Jd(),sI=lv().line,Epe=Pc().dash,rb=zn().extendFlat,kpe=Rs().overrideAll,Cpe=Xa().templatedArray,BDe=Zm();fI.exports=kpe(Cpe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:rb({},lI.xref,{}),yref:rb({},lI.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:sI.color,width:rb({},sI.width,{min:1,dflt:1}),dash:rb({},Epe,{dflt:"dot"})}}),"arraydraw","from-root")});var hI=N((GDe,vI)=>{"use strict";var uI=Ur(),tb=yn(),Lpe=gl(),Dpe=XA(),cI=iv();vI.exports=function(r,t){Lpe(r,t,{name:"selections",handleItemDefaults:Fpe});for(var a=t.selections,n=0;n{"use strict";dI.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((HDe,gI)=>{"use strict";var Rpe=Bt(),mI=Ur(),yI=kn();gI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Rpe.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 bI=FA(),Km=YN();xI.exports={moduleType:"component",name:"selections",layoutAttributes:XA(),supplyLayoutDefaults:hI(),supplyDrawNewSelectionDefaults:pI(),includeBasePlot:Qm()("selections"),draw:bI.draw,drawOne:bI.drawOne,reselect:Km.reselect,prepSelect:Km.prepSelect,clearOutline:Km.clearOutline,clearSelectionsCache:Km.clearSelectionsCache,selectOnClick:Km.selectOnClick}});var GI=N((YDe,zI)=>{"use strict";var KA=da(),$l=Ur(),_I=$l.numberFormat,qpe=Ls(),Ppe=Dw(),ab=Bt(),LI=$l.strTranslate,Npe=to(),wI=ha(),sv=Ha(),Ipe=ev(),AI=yn(),Ope=Qc(),Bpe=Bs(),DI=rv(),nb=DI.selectingOrDrawing,zpe=DI.freeMode,Gpe=ro().FROM_TL,Upe=A3(),Hpe=Y3().redrawReglTraces,Vpe=_i(),JA=kn().getFromId,Ype=$d().prepSelect,Wpe=$d().clearOutline,jpe=$d().selectOnClick,ZA=TA(),e6=ci(),TI=e6.MINDRAG,Po=e6.MINZOOM,MI=!0;function Xpe(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,V,ae,re,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 rr=r.overlays,ur=0;ur=0){Hr._fullLayout._deactivateShape(Hr);return}var ot=Hr._fullLayout.clickmode;if(QA(Hr),rr===2&&!u&&et(),f)ot.indexOf("select")>-1&&jpe(ur,Hr,y,m,r.id,se),ot.indexOf("event")>-1&&Ipe.click(Hr,ur,r.id);else if(rr===1&&u){var Wr=o?v:c,tt=o==="s"||l==="w"?0:1,xt=Wr._name+".range["+tt+"]",jr=Zpe(Wr,tt),at="left",gr="middle";if(Wr.fixedrange)return;o?(gr=o==="n"?"top":"bottom",Wr.side==="right"&&(at="right")):l==="e"&&(at="right"),Hr._context.showAxisRangeEntryBoxes&&KA.select(oe).call(Npe.makeEditable,{gd:Hr,immediate:!0,background:Hr._fullLayout.paper_bgcolor,text:String(jr),fill:Wr.tickfont?Wr.tickfont.color:"#444",horizontalAlign:at,verticalAlign:gr}).on("edit",function(Se){var Oe=Wr.d2r(Se);Oe!==void 0&&ab.call("_guiRelayout",Hr,xt,Oe)})}}Bpe.init(se);var Ee,Ve,we,fr,Ie,He,vr,$e,ee,de;function ne(rr,ur,Hr){var ot=oe.getBoundingClientRect();Ee=ur-ot.left,Ve=Hr-ot.top,e._fullLayout._calcInverseTransform(e);var Wr=$l.apply3DTransform(e._fullLayout._invTransform)(Ee,Ve);Ee=Wr[0],Ve=Wr[1],we={l:Ee,r:Ee,w:0,t:Ve,b:Ve,h:0},fr=e._hmpixcount?e._hmlumcount/e._hmpixcount:qpe(e._fullLayout.plot_bgcolor).getLuminance(),Ie="M0,0H"+_+"V"+x+"H0V0",He=!1,vr="xy",de=!1,$e=qI(s,fr,b,T,Ie),ee=PI(s,b,T)}function qe(rr,ur){if(e._transitioningWithDuration)return!1;var Hr=Math.max(0,Math.min(_,re*rr+Ee)),ot=Math.max(0,Math.min(x,Q*ur+Ve)),Wr=Math.abs(Hr-Ee),tt=Math.abs(ot-Ve);we.l=Math.min(Ee,Hr),we.r=Math.max(Ee,Hr),we.t=Math.min(Ve,ot),we.b=Math.max(Ve,ot);function xt(){vr="",we.r=we.l,we.t=we.b,ee.attr("d","M0,0Z")}if(A.isSubplotConstrained)Wr>Po||tt>Po?(vr="xy",Wr/_>tt/x?(tt=Wr*x/_,Ve>ot?we.t=Ve-tt:we.b=Ve+tt):(Wr=tt*_/x,Ee>Hr?we.l=Ee-Wr:we.r=Ee+Wr),ee.attr("d",ib(we))):xt();else if(E.isSubplotConstrained)if(Wr>Po||tt>Po){vr="xy";var jr=Math.min(we.l/_,(x-we.b)/x),at=Math.max(we.r/_,(x-we.t)/x);we.l=jr*_,we.r=at*_,we.b=(1-jr)*x,we.t=(1-at)*x,ee.attr("d",ib(we))}else xt();else!k||tt0){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 $pe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function qI(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",LI(t,a)).attr("d",n+"Z")}function PI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:wI.background,stroke:wI.defaultLine,"stroke-width":1,opacity:0}).attr("transform",LI(r,t)).attr("d","M0,0Z")}function NI(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"),II(e,r,n,i)}function II(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 QA(e){KA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function OI(e){MI&&e.data&&e._context.showTips&&($l.notifier($l._(e,"Double-click to zoom back out"),"long"),MI=!1)}function Qpe(e,r){return"M"+(e.l-.5)+","+(r-Po-.5)+"h-3v"+(2*Po+1)+"h3ZM"+(e.r+.5)+","+(r-Po-.5)+"h3v"+(2*Po+1)+"h-3Z"}function Kpe(e,r){return"M"+(r-Po-.5)+","+(e.t-.5)+"v-3h"+(2*Po+1)+"v3ZM"+(r-Po-.5)+","+(e.b+.5)+"v3h"+(2*Po+1)+"v-3Z"}function ib(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Po)/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 kI(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 e1e=da(),ob=ev(),r1e=Bs(),t1e=Qc(),Us=GI().makeDragBox,Mi=ci().DRAGGERSIZE;lb.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){e1e.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]&&ob.hover(r,v,i)},ob.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,r1e.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,ob.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,ob.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},lb.updateFx(r)}};lb.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";t1e(r._draggers,t)}});var VI=N((jDe,HI)=>{"use strict";var UI=Bt();HI.exports=function(r){for(var t=UI.layoutArrayContainers,a=UI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var a1e=Fc(),t6=Qg(),ey=Sh(),n1e=Z5().sorterAsc,a6=Bt();ry.containerArrayMatch=VI();var i1e=ry.isAddVal=function(r){return r==="add"||a1e(r)},YI=ry.isRemoveVal=function(r){return r===null||r==="remove"};ry.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=a6.getComponentMethod(o,"supplyLayoutDefaults"),s=a6.getComponentMethod(o,"draw"),f=a6.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===t6||s===t6,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(YI(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(n1e),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),YI(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!==t6){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 JI=ba(),$I=Bt(),xo=Ur(),ty=_i(),QI=kn(),KI=ha(),ay=QI.cleanId,o1e=QI.getFromTrace,n6=$I.traceIs,l1e=["x","y","z"];Ql.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&xo.log("Clearing previous rejected promises from queue."),e._promises=[]};Ql.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"),KI.clean(e),e.template&&e.template.layout&&Ql.cleanLayout(e.template.layout),e};function Qd(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))}Ql.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ql.hasParent=function(e,r){for(var t=ZI(r);t;){if(t in e)return!0;t=ZI(t)}return!1};Ql.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>xo.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;axo.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)?i6(n,i):!1))return!1}return!0}return!1};Ql.collectionsAreEqual=i6});var c6=N(pa=>{"use strict";var cb=da(),u1e=ba(),c1e=s4(),bt=Ur(),rn=bt.nestedProperty,s6=tm(),No=PC(),Kl=Bt(),gb=Ad(),zt=_i(),_o=yn(),v1e=Lw(),h1e=Hl(),o6=Ha(),d1e=ha(),p1e=r6().initInteractions,m1e=Yc(),y1e=$d().clearOutline,iO=Mh().dfltConfig,fb=WI(),Wn=eO(),Oa=Y3(),fv=Rs(),g1e=ci().AX_NAME_PATTERN,l6=0,rO=5;function b1e(e,r,t,a){var n;if(e=bt.getGraphDiv(e),s6.init(e),bt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=s6.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 pa.addFrames(e,n)}lO(e,a),t||(t={}),cb.select(e).classed("js-plotly-plot",!0),o6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Wn.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(U1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),o6.initGradients(e),o6.initPatterns(e),s&&_o.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 sO(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]),hb(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&hb(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function T1e(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,V=k.parts.slice(0,O).join("."),ae=rn(e.layout,V).get(),re=rn(a,V).get(),Q=k.get();if(F!==void 0){b[M]=F,T[M]=R==="reverse"?F:Gu(Q);var J=gb.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 oe=M==="height"?"width":"height";_(oe,a[oe])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(yO))E(H),rn(a,V+"._inputRange").set(null);else if(H.match(gO)){E(H),rn(a,V+"._inputRange").set(null);var se=rn(a,V).get();se._inputDomain&&(se._input.domain=se._inputDomain.slice())}else H.match(k1e)&&rn(a,V+"._inputDomain").set(null);if(R==="type"){A=ae;var Le=re.type==="linear"&&F==="log",Ue=re.type==="log"&&F==="linear";if(Le||Ue){if(!A||!A.range)_(V+".autorange",!0);else if(re.autorange)Le&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ee=A.range[0],Ve=A.range[1];Le?(Ee<=0&&Ve<=0&&_(V+".autorange",!0),Ee<=0?Ee=Ve/1e6:Ve<=0&&(Ve=Ee/1e6),_(V+".range[0]",Math.log(Ee)/Math.LN10),_(V+".range[1]",Math.log(Ve)/Math.LN10)):(_(V+".range[0]",Math.pow(10,Ee)),_(V+".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"],Kl.getComponentMethod("annotations","convertCoords")(e,re,F,_),Kl.getComponentMethod("images","convertCoords")(e,re,F,_)}else _(V+".autorange",!0),_(V+".range",null);rn(a,V+"._inputRange").set(null)}else if(R.match(g1e)){var we=rn(a,M).get(),fr=(F||{}).type;(!fr||fr==="-")&&(fr="linear"),Kl.getComponentMethod("annotations","convertCoords")(e,we,fr,_),Kl.getComponentMethod("images","convertCoords")(e,we,fr,_)}var Ie=fb.containerArrayMatch(M);if(Ie){u=Ie.array,c=Ie.index;var He=Ie.property,vr=J||{editType:"calc"};c!==""&&He===""&&(fb.isAddVal(F)?T[M]=null:fb.isRemoveVal(F)?T[M]=(rn(t,u).get()||[])[c]:bt.warn("unrecognized full object value",r)),fv.update(m,vr),f[u]||(f[u]={});var $e=f[u][c];$e||($e=f[u][c]={}),$e[He]=F,delete r[M]}else R==="reverse"?(ae.range?ae.range.reverse():(_(V+".autorange",!0),ae.range=[1,0]),re.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 ee=fb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var de in x){A=_o.getFromId(e,de);var ne=A&&A._constraintGroup;if(ne){m.calc=!0;for(var qe in ne)x[qe]||(_o.getFromId(e,qe)._constraintShrinkable=!0)}}(xO(e)||r.height||r.width)&&(m.plot=!0);var Je=a.shapes;for(c=0;c1;)if(a.pop(),t=rn(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function D1e(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=pa.newPlot(e,r,t,a).then(()=>{for(let[V,ae]of H)ae.forEach(re=>e.on(V,re));return pa.react(e,r,t,a)})}else{e.data=r||[],Wn.cleanData(e.data),e.layout=t||{},Wn.cleanLayout(e.layout),R1e(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=N1e(e,s,v,d,p),m=y.newDataRevision,b=P1e(e,l,c,d,p,m);if(xO(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 P1e(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=gb.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 O1e(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&&l6k.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 No&&No.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),s6.purge(e),r._container&&r._container.remove(),delete e._context,e}function G1e(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 U1e(e){var r=cb.select(e),t=e._fullLayout;if(t._calcInverseTransform=G1e,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={};cb.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")}pa.animate=I1e;pa.addFrames=O1e;pa.deleteFrames=B1e;pa.addTraces=hO;pa.deleteTraces=dO;pa.extendTraces=cO;pa.moveTraces=f6;pa.prependTraces=vO;pa.newPlot=A1e;pa._doPlot=b1e;pa.purge=z1e;pa.react=q1e;pa.redraw=w1e;pa.relayout=ny;pa.restyle=db;pa.setPlotConfig=x1e;pa.update=mb;pa._guiRelayout=u6(ny);pa._guiRestyle=u6(db);pa._guiUpdate=u6(mb);pa._storeDirectGUIEdit=E1e});var r0=N(Bf=>{"use strict";var H1e=Bt();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){H1e.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _O=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return _O.createObjectURL(e)};Bf.revokeObjectURL=function(e){return _O.revokeObjectURL(e)};Bf.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=V1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function V1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var h6=da(),QDe=Ur(),Y1e=Ha(),W1e=ha(),KDe=Yc(),v6=/"/g,oy="TOBESTRIPPED",j1e=new RegExp('("'+oy+")|("+oy+'")',"g");function X1e(e){var r=h6.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 Z1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}wO.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(Y1e.setRect,0,0,l,s).call(W1e.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var J1e=Ur(),$1e=x2().EventEmitter,ly=r0();function Q1e(e){var r=e.emitter||new $1e,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"||J1e.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}AO.exports=Q1e});var p6=N((tFe,SO)=>{"use strict";var TO=ba(),MO=c6(),K1e=_i(),zf=Ur(),sy=r0(),eme=xb(),rme=_b(),tme=Ng().version,d6={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 ame(e,r){r=r||{};var t,a,n,i;zf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=zf.getGraphDiv(e),t=zf.extendDeep([],e.data),a=zf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||zf.validate(r[E],d6[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 "+zf.join2(d6.format.values,", "," or ")+".");var l={};function s(E,M){return zf.coerce(r,l,d6,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=zf.extendFlat({},a);u?m.width=u:r.width===null&&TO(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&TO(i.height)&&(m.height=i.height);var b=zf.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=eme(y,f,v),F=y._fullLayout.width,P=y._fullLayout.height;function O(){MO.purge(y),document.body.removeChild(y)}if(f==="full-json"){var R=K1e.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=tme,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=zf.randstr(),rme({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){MO.newPlot(y,t,m,b).then(T).then(_).then(x).then(function(k){E(A(k))}).catch(function(k){M(k)})})}SO.exports=ame});var CO=N((aFe,kO)=>{"use strict";var es=Ur(),nme=_i(),ime=Ad(),ome=Mh().dfltConfig,Hs=es.isPlainObject,a0=Array.isArray,m6=es.isArrayOrTypedArray;kO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=ime.get(),n=[],i={_context:es.extendFlat({},ome)},o,l;a0(r)?(i.data=es.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Si("array","data"))),Hs(t)?(i.layout=es.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Si("object","layout"))),nme.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(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(Si("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][_],es.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 hme=Ur(),Ab=r0();function dme(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=Ab.createBlob(e,t),f=Ab.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Ab.revokeObjectURL(f),s=null,o(r);if(hme.isSafari()){var u=t==="svg"?",":";base64,";return Ab.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}LO.exports=dme});var y6=N((oFe,RO)=>{"use strict";var FO=Ur(),pme=p6(),mme=DO(),iFe=r0();function yme(e,r){var t;return FO.isPlainObject(e)||(t=FO.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=pme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),mme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}RO.exports=yme});var OO=N(g6=>{"use strict";var el=Ur(),rl=el.isPlainObject,qO=Ad(),PO=_i(),gme=Ds(),NO=Xa(),IO=Mh().dfltConfig;g6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:IO},{data:e.data,layout:e.layout}),PO.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,xme.bind(null,d));var y=el.coerce(d,{},gme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),fy(t,a.layout,bme.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&Tb(i,a.layout);var v=n.data;if(rl(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=rs(_,A,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),T(E,M)):Array.isArray(E)&&_me(E)&&T(E,M)}}if(T({data:s,layout:l},""),o.length)return o.map(wme)};function _me(e){for(var r=0;r{"use strict";var vi=c6();bn._doPlot=vi._doPlot;bn.newPlot=vi.newPlot;bn.restyle=vi.restyle;bn.relayout=vi.relayout;bn.redraw=vi.redraw;bn.update=vi.update;bn._guiRestyle=vi._guiRestyle;bn._guiRelayout=vi._guiRelayout;bn._guiUpdate=vi._guiUpdate;bn._storeDirectGUIEdit=vi._storeDirectGUIEdit;bn.react=vi.react;bn.extendTraces=vi.extendTraces;bn.prependTraces=vi.prependTraces;bn.addTraces=vi.addTraces;bn.deleteTraces=vi.deleteTraces;bn.moveTraces=vi.moveTraces;bn.purge=vi.purge;bn.addFrames=vi.addFrames;bn.deleteFrames=vi.deleteFrames;bn.animate=vi.animate;bn.setPlotConfig=vi.setPlotConfig;var Ame=X1().getGraphDiv,Tme=O3().eraseActiveShape;bn.deleteActiveShape=function(e){return Tme(Ame(e))};bn.toImage=p6();bn.validate=CO();bn.downloadImage=y6();var BO=OO();bn.makeTemplate=BO.makeTemplate;bn.validateTemplate=BO.validateTemplate});var x6=N((fFe,GO)=>{"use strict";var b6=Ur(),Mme=Bt();GO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Mme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=b6.minRowLength(i);o?l=Math.min(f,b6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=b6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var _6=N((uFe,VO)=>{"use strict";var UO=Ur().dateTick0,Sme=ri(),Eme=Sme.ONEWEEK;function HO(e,r){return e%Eme===0?UO(r,1):UO(r,0)}VO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",HO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",HO(l,t.ycalendar)),n("yperiodalignment"))}}});var jO=N((cFe,WO)=>{"use strict";var YO=["orientation","groupnorm","stackgaps"];WO.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 XO=ha(),ZO=Is().hasColorscale,JO=Ed(),kme=qi();$O.exports=function(r,t,a,n,i,o={}){var l=kme.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),ZO(r,"marker")&&JO(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=XO.background:f=XO.defaultLine,i("marker.line.color",f),ZO(r,"marker.line")&&JO(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 w6=N((hFe,QO)=>{"use strict";var Cme=Ur().isArrayOrTypedArray,Lme=Is().hasColorscale,Dme=Ed();QO.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),Lme(r,"line"))Dme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Cme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var eB=N((dFe,KO)=>{"use strict";KO.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var A6=N((pFe,rB)=>{"use strict";var Fme=Ur();rB.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Fme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var T6=N((mFe,aB)=>{"use strict";var Eb=ha(),tB=Ur().isArrayOrTypedArray;function Rme(e){for(var r=Eb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var nB=Ur(),qme=Bt(),Pme=lv(),Nme=Jm(),Kd=qi(),Ime=x6(),Ome=_6(),Bme=jO(),zme=Sb(),Gme=w6(),iB=eB(),Ume=A6(),Hme=T6(),Vme=Ur().coercePattern;oB.exports=function(r,t,a,n){function i(d,p){return nB.coerce(r,t,Pme,d,p)}var o=Ime(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Ome(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Bme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Yme=Rm().getAxisGroup;sB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Yme(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 M6=N((bFe,uB)=>{"use strict";var Wme=Ur(),jme=fB(),Xme=lv();uB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Wme.coerce(n._input,n,Xme,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 vB=N((xFe,cB)=>{"use strict";var Zme=Ur(),Jme=M2();cB.exports=function(e,r){function t(n,i){return Zme.coerce(e,r,Jme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var S6=N((_Fe,dB)=>{"use strict";var $me=ba(),hB=Ur(),Qme=hB.dateTime2ms,kb=hB.incrementMonth,Kme=ri(),eye=Kme.ONEAVGMONTH;dB.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($me(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=Qme(v,f)||0,p=[],y=[],m=[],b=n.length,T=0;T_;)E=kb(E,-l,f);for(;E<=_;)E=kb(E,l,f);A=kb(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((wFe,mB)=>{"use strict";var E6=Is().hasColorscale,k6=H4(),pB=qi();mB.exports=function(r,t){pB.hasLines(t)&&E6(t,"line")&&k6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),pB.hasMarkers(t)&&(E6(t,"marker")&&k6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),E6(t,"marker.line")&&k6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var C6=N((AFe,yB)=>{"use strict";var qn=Ur();yB.exports=function(r,t){for(var a=0;a{"use strict";var gB=Ur();bB.exports=function(r,t){gB.isArrayOrTypedArray(t.selectedpoints)&&gB.tagSelected(r,t)}});var ep=N((MFe,EB)=>{"use strict";var _B=ba(),D6=Ur(),cy=yn(),wB=S6(),L6=ri().BADNUM,F6=qi(),rye=uy(),tye=C6(),aye=xB();function nye(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=wB(r,a,"x",i),s=wB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=R6(r,t,a,n),y=!1,m,b,T,_,x,A;MB(t,r);var E="x",M="y",k;if(p)D6.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=TB(r,c);AB(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 ae=v[b-1][k],re=v[b-1].s,Q=(v[T].s-re)/(v[T][k]-ae);b{"use strict";kB.exports=Cb;var iye=Ur().distinctVals;function Cb(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";LB.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var NB=N((kFe,PB)=>{"use strict";var ts=ba(),{isArrayOrTypedArray:Uu}=Ur(),{BADNUM:rp}=ri(),oye=Bt(),vy=yn(),{getAxisGroup:lye}=Rm(),Lb=CB(),{TEXTPAD:sye}=DB(),{LINE_SPACING:fye}=ro(),{BR_TAG_ALL:uye}=to();function cye(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||!ts(l))}for(var u=0;ua(i))):a(e.text);let n=e.outsidetextfont.size*fye*t+sye;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 _ye(e,r,t,a){for(var n=tp(a),i=0;i{"use strict";var IB=ep(),OB=NB().setGroupPositions;function Aye(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 Mye=Ha(),VB=ri(),hy=VB.BADNUM,YB=VB.LOG_CLIP,GB=YB+.5,UB=YB-.5,Db=Ur(),Sye=Db.segmentsIntersect,HB=Db.constrain,z6=Jm();WB.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=z6.minTolerance,_=r.length,x=new Array(_),A=0,E,M,k,F,P,O,R,H,V,ae,re,Q,J,j,oe,se;function Le(gr){var Se=r[gr];if(!Se)return!1;var Oe=t.linearized?n.l2p(Se.x):n.c2p(Se.x),pr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Oe===hy){if(o&&(Oe=n.c2p(Se.x,!0)),Oe===hy)return!1;l&&pr===hy&&(Oe*=Math.abs(n._m*f*(n._m>0?GB:UB)/(i._m*s*(i._m>0?GB:UB)))),Oe*=1e3}if(pr===hy){if(l&&(pr=i.c2p(Se.y,!0)),pr===hy)return!1;pr*=1e3}return[Oe,pr]}function Ue(gr,Se,Oe,pr){var _r=Oe-gr,ht=pr-Se,Tt=.5-gr,wt=.5-Se,Ot=_r*_r+ht*ht,ta=_r*Tt+ht*wt;if(ta>0&&ta1||Math.abs(Tt.y-Oe[0][1])>1)&&(Tt=[Tt.x,Tt.y],pr&&fr(Tt,gr)vr||gr[1]<$e||gr[1]>ee)return[HB(gr[0],He,vr),HB(gr[1],$e,ee)]}function Vr(gr,Se){if(gr[0]===Se[0]&&(gr[0]===He||gr[0]===vr)||gr[1]===Se[1]&&(gr[1]===$e||gr[1]===ee))return!0}function nt(gr,Se){var Oe=[],pr=zr(gr),_r=zr(Se);return pr&&_r&&Vr(pr,_r)||(pr&&Oe.push(pr),_r&&Oe.push(_r)),Oe}function wr(gr,Se,Oe){return function(pr,_r){var ht=zr(pr),Tt=zr(_r),wt=[];if(ht&&Tt&&Vr(ht,Tt))return wt;ht&&wt.push(ht),Tt&&wt.push(Tt);var Ot=2*Db.constrain((pr[gr]+_r[gr])/2,Se,Oe)-((ht||pr)[gr]+(Tt||_r)[gr]);if(Ot){var ta;ht&&Tt?ta=Ot>0==ht[gr]>Tt[gr]?ht:Tt:ta=ht||Tt,ta[gr]+=Ot}return wt}}var Yr;p==="linear"||p==="spline"?Yr=br:p==="hv"||p==="vh"?Yr=nt:p==="hvh"?Yr=wr(0,He,vr):p==="vhv"&&(Yr=wr(1,$e,ee));function et(gr,Se){var Oe=Se[0]-gr[0],pr=(Se[1]-gr[1])/Oe,_r=(gr[1]*Se[0]-Se[1]*gr[0])/Oe;return _r>0?[pr>0?He:vr,ee]:[pr>0?vr:He,$e]}function Pe(gr){var Se=gr[0],Oe=gr[1],pr=Se===x[A-1][0],_r=Oe===x[A-1][1];if(!(pr&&_r))if(A>1){var ht=Se===x[A-2][0],Tt=Oe===x[A-2][1];pr&&(Se===He||Se===vr)&&ht?Tt?A--:x[A-1]=gr:_r&&(Oe===$e||Oe===ee)&&Tt?ht?A--:x[A-1]=gr:x[A++]=gr}else x[A++]=gr}function or(gr){x[A-1][0]!==gr[0]&&x[A-1][1]!==gr[1]&&Pe([Je,Ke]),Pe(gr),Sr=null,Je=Ke=0}var st=Db.isArrayOrTypedArray(c);function kt(gr){if(gr&&u&&(gr.i=E,gr.d=r,gr.trace=a,gr.marker=st?c[gr.i]:c,gr.backoff=u),Ee=gr[0]/s,Ve=gr[1]/f,ne=gr[0]vr?vr:0,qe=gr[1]<$e?$e:gr[1]>ee?ee:0,ne||qe){if(!A)x[A++]=[ne||gr[0],qe||gr[1]];else if(Sr){var Se=Yr(Sr,gr);Se.length>1&&(or(Se[0]),x[A++]=Se[1])}else Er=Yr(x[A-1],gr)[0],x[A++]=Er;var Oe=x[A-1];ne&&qe&&(Oe[0]!==ne||Oe[1]!==qe)?(Sr&&(Je!==ne&&Ke!==qe?Pe(Je&&Ke?et(Sr,gr):[Je||ne,Ke||qe]):Je&&Ke&&Pe([Je,Ke])),Pe([ne,qe])):Je-ne&&Ke-qe&&Pe([ne||Je,qe||Ke]),Sr=gr,Je=ne,Ke=qe}else Sr&&or(Yr(Sr,gr)[0]),x[A++]=gr}for(E=0;E<_;E++)if(M=Le(E),!!M){for(A=0,Sr=null,kt(M),E++;E<_;E++){if(F=Le(E),!F){if(v)continue;break}if(!y||!t.simplify){kt(F);continue}var Ar=Le(E+1);if(ae=fr(F,M),!(!(m&&(A===0||A===_-1))&&aewe(O,Ar))break;k=O,J=V[0]*H[0]+V[1]*H[1],J>re?(re=J,F=O,R=!1):J=r.length||!O)break;kt(O),M=O}}Sr&&Pe([Je||Sr[0],Ke||Sr[1]]),b.push(x.slice(0,A))}var rr=p.slice(p.length-1);if(u&&rr!=="h"&&rr!=="v"){for(var ur=!1,Hr=-1,ot=[],Wr=0;Wr{"use strict";var XB={tonextx:1,tonexty:1,tonext:1};ZB.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=da(),Eye=Bt(),dy=Ur(),ap=dy.ensureSingle,$B=dy.identity,In=Ha(),np=qi(),kye=jB(),Cye=G6(),Fb=qA().tester;QB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=Cye(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(),Lye(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){JB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){JB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Lye(e,r,t){r.each(function(a){var n=ap(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,$B);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=ap(Vs.select(this),"path","js-fill")})})}function JB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Dye(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=ap(y,"g","errorbars"),b=ap(y,"g","lines"),T=ap(y,"g","points"),_=ap(y,"g","text");if(Eye.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 V,ae,re="",Q="",J,j,oe,se,Le,Ue,Ee=[];d._polygons=[];var Ve=[],we=[],fr=dy.noop;if(x=d._ownFill,np.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 Yr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Yr[0]&&wr[0][1]===Yr[1]?In.smoothclosed(wr.slice(1),p.smoothing):In.smoothopen(wr,p.smoothing)}:J=j=function(wr){return"M"+wr.join("L")},oe=function(wr){return j(wr.reverse())},we=kye(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 Ie=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;np.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";ez.exports={container:"marker",min:"cmin",max:"cmax"}});var U6=N((qFe,rz)=>{"use strict";var qb=yn();rz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=qb.getFromTrace(i,t,"x"),l=qb.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=qb.tickText(o,o.c2l(s),!0).text,n.yLabel=qb.tickText(l,l.c2l(f),!0).text,n}});var W6=N((PFe,tz)=>{"use strict";var H6=da(),ip=Ha(),Fye=Bt();function Rye(e){var r=H6.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=H6.select(this),n=t.trace||t[0].trace;V6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=H6.select(this),n=t.trace||t[0].trace;Y6(a,n,e)}),r.selectAll("g.trace path.js-line").call(ip.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ip.fillGroupStyle,e,!1),Fye.getComponentMethod("errorbars","style")(r)}function V6(e,r,t){ip.pointStyle(e.selectAll("path.point"),r,t)}function Y6(e,r,t){ip.textPointStyle(e.selectAll("text"),r,t)}function qye(e,r,t){var a=r[0].trace;a.selectedpoints?(ip.selectedPointStyle(t.selectAll("path.point"),a),ip.selectedTextStyle(t.selectAll("text"),a)):(V6(t,a,e),Y6(t,a,e))}tz.exports={style:Rye,stylePoints:V6,styleText:Y6,styleOnSelect:qye}});var j6=N((NFe,az)=>{"use strict";var op=ha(),Pye=qi();az.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&op.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&&op.opacity(i)?i:o&&op.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?op.opacity(n)<.3?op.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&op.opacity(a)&&Pye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var oz=N((IFe,iz)=>{"use strict";var Pb=Ur(),nz=ev(),Nye=Bt(),Iye=j6(),X6=ha(),Oye=Pb.fillText;iz.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 oe=Math.max(3,Q.mrc||0),se=1-1/oe,Le=Math.abs(l.c2p(Q.x)-f);return Le=Math.min(J,j)&&u<=Math.max(J,j)?0:1/0}var oe=Math.max(3,Q.mrc||0),se=1-1/oe,Le=Math.abs(s.c2p(Q.y)-u);return LeEe!=ee>=Ee&&(He=fr[we-1][0],vr=fr[we][0],ee-$e&&(Ie=He+(vr-He)*(Ee-$e)/(ee-$e),oe=Math.min(oe,Ie),se=Math.max(se,Ie)));return oe=Math.max(oe,0),se=Math.min(se,l._length),{x0:oe,x1:se,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var V=R(o._fillElement)&&!R(o._fillExclusionElement);if(V){var ae=H(o._polygons);ae===null&&(ae={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var re=X6.defaultLine;return X6.opacity(o.fillcolor)?re=o.fillcolor:X6.opacity((o.line||{}).color)&&(re=o.line.color),Pb.extendFlat(r,{distance:r.maxHoverDistance,x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!Pb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var fz=N((OFe,sz)=>{"use strict";var lz=qi();sz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!lz.hasMarkers(l)&&!lz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";uz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var pz=N((zFe,dz)=>{"use strict";var py=Bt().traceIs,Z6=fw();dz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Bye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Bye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=zye(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,hz(i,a)){var f=vz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(hz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function vz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function hz(e,r){var t=vz(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 yz=N((GFe,mz)=>{"use strict";var Gye=Wo().isTypedArraySpec;function Uye(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||Gye(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=Uye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var xz=N((UFe,bz)=>{"use strict";var gz=Ls().mix,Hye=Mf(),Vye=Ur();bz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return Vye.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=gz(i,n.bgColor,n.blend||Hye.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=gz(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 $6=N((HFe,Sz)=>{"use strict";var _z=ba(),Yye=Bt(),my=Ur(),Wye=Xa(),jye=gl(),J6=Hl(),wz=F4(),Az=q4(),Xye=I4(),Zye=O4(),Jye=yz(),$ye=xz(),Qye=Lw(),Tz=J2(),Nb=ci().WEEKDAY_PATTERN,Kye=ci().HOUR_PATTERN;Sz.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=Yye.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"),Tz(t,i),Qye(r,t,a,n),Jye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==J6.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(Zye(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}}),wz(r,t,a,c);var T=n.hasMinor;if(T&&(Wye.newContainer(t,"minor"),wz(r,t,a,c,{isMinor:!0})),Xye(r,t,a,c,n),Az(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Az(r,t,a,n),n.isMinor=_}$ye(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:J6}),T&&!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:ege}),!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=Mz(i[l]),s){o=Nb;break}}var f=a("pattern",o);if(f===Nb)for(l=0;l<2;l++)s=Mz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case Nb:if(!_z(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 Kye:if(!_z(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 tge=ba(),Ib=Ur();Ez.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||(tge(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Ib.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Ib.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&&(_=Ib.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),Ib.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Nz=N((YFe,Pz)=>{"use strict";var n0=Ur(),kz=ha(),age=Pu().isUnifiedHover,nge=aA(),Cz=Xa(),ige=vd(),Lz=Hl(),oge=pz(),Dz=$6(),lge=Rm(),Fz=Q6(),eT=kn(),Gf=eT.id2name,Rz=eT.name2id,sge=ci().AX_ID_PATTERN,qz=Bt(),Ob=qz.traceIs,K6=qz.getComponentMethod;function Bb(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Pz.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 fge=da(),Iz=Bt(),zb=Ur(),Tl=Ha(),Gb=yn();Oz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Gb.redrawComponents(r);return}function o(m){var b=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,T._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.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=zb.simpleMap(m.xr0,_.r2l),O=zb.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 V=zb.simpleMap(m.yr0,x.r2l),ae=zb.simpleMap(m.yr1,x.r2l),re=V[1]-V[0],Q=ae[1]-ae[0];F[1]=(V[1]*(1-b)+b*ae[1]-V[1])/(V[0]-V[1])*E,F[3]=E*(1-b+b*Q/re),x.range[0]=_.l2r(V[0]*(1-b)+b*ae[0]),x.range[1]=x.l2r(V[1]*(1-b)+b*ae[1])}else F[1]=0,F[3]=E;Gb.drawOne(r,_,{skipTitle:!0}),Gb.drawOne(r,x,{skipTitle:!0}),Gb.redrawComponents(r,[_._id,x._id]);var J=M?A/F[2]:1,j=k?E/F[3]:1,oe=M?F[0]:0,se=k?F[1]:0,Le=M?F[0]/F[2]*A:0,Ue=k?F[1]/F[3]*E:0,Ee=_._offset-Le,Ve=x._offset-Ue;T.clipRect.call(Tl.setTranslate,oe,se).call(Tl.setScale,1/J,1/j),T.plot.call(Tl.setTranslate,Ee,Ve).call(Tl.setScale,J,j),Tl.setPointGroupScale(T.zoomScalePts,1/J,1/j),Tl.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(io=>{"use strict";var Hb=da(),zz=Bt(),i0=Ur(),uge=_i(),cge=Ha(),Gz=im().getModuleCalcData,uv=kn(),Ys=ci(),vge=Yc(),La=i0.ensureSingle;function Ub(e,r,t){return i0.ensureSingle(e,r,t,function(a){a.datum(t)})}var o0=Ys.zindexSeparator;io.name="cartesian";io.attr=["xaxis","yaxis"];io.idRoot=["x","y"];io.idRegex=Ys.idRegex;io.attrRegex=Ys.attrRegex;io.attributes=cz();io.layoutAttributes=Hl();io.supplyLayoutDefaults=Nz();io.transitionAxes=Bz();io.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(o0)!==-1)continue;d+=o0+(f+1),v=i0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(A+=o0+x),_.push(l+A),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=La(a,"path","xlines-above"),r.ylines=La(a,"path","ylines-above"),r.xaxislayer=La(a,"g","xaxislayer-above"),r.yaxislayer=La(a,"g","yaxislayer-above");else{if(!o){var v=La(a,"g","layer-subplot");r.shapelayer=La(v,"g","shapelayer"),r.imagelayer=La(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=La(a,"g","minor-gridlayer"),r.gridlayer=La(a,"g","gridlayer"),r.zerolinelayer=La(a,"g","zerolinelayer"));var d=La(a,"g","layer-between");r.shapelayerBetween=La(d,"g","shapelayer"),r.imagelayerBetween=La(d,"g","imagelayer"),La(a,"path","xlines-below"),La(a,"path","ylines-below"),r.overlinesBelow=La(a,"g","overlines-below"),La(a,"g","xaxislayer-below"),La(a,"g","yaxislayer-below"),r.overaxesBelow=La(a,"g","overaxes-below")}r.overplot=La(a,"g","overplot"),r.plot=La(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=La(a,"g","zerolinelayer-above"),o||(r.xlines=La(a,"path","xlines-above"),r.ylines=La(a,"path","ylines-above"),r.overlinesAbove=La(a,"g","overlines-above"),La(a,"g","xaxislayer-above"),La(a,"g","yaxislayer-above"),r.overaxesAbove=La(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,La(c.overlinesBelow,"path",y),La(c.overlinesBelow,"path",m),La(c.overaxesBelow,"g",y),La(c.overaxesBelow,"g",m),r.plot=La(c.overplot,"g",n),La(c.overlinesAbove,"path",y),La(c.overlinesAbove,"path",m),La(c.overaxesAbove,"g",y),La(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||(Ub(r.minorGridlayer,"g",r.xaxis._id),Ub(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort),Ub(r.gridlayer,"g",r.xaxis._id),Ub(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 Vz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Hb.select(this);u.remove(),Yz(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 Vb=qi();Wz.exports={hasLines:Vb.hasLines,hasMarkers:Vb.hasMarkers,hasText:Vb.hasText,isBubble:Vb.isBubble,attributes:lv(),layoutAttributes:M2(),supplyDefaults:lB(),crossTraceDefaults:M6(),supplyLayoutDefaults:vB(),calc:ep().calc,crossTraceCalc:zB(),arraysToCalcdata:C6(),plot:KB(),colorbar:Rb(),formatLabels:U6(),style:W6().style,styleOnSelect:W6().styleOnSelect,hoverPoints:oz(),selectPoints:fz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:yy(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Jz=N((ZFe,Zz)=>{"use strict";var dge=da(),pge=ha(),Xz=WA(),rT=Ur(),mge=rT.strScale,yge=rT.strRotate,gge=rT.strTranslate;Zz.exports=function(r,t,a){var n=r.node(),i=Xz[a.arrowhead||0],o=Xz[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)){V();return}if(c){if(c*c>b*b+T*T){V();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){V();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 $z=da(),tT=Bt(),bge=_i(),vv=Ur(),aT=vv.strTranslate,by=yn(),l0=ha(),Hu=Ha(),Qz=ev(),nT=to(),iT=Qc(),gy=Bs(),xge=Xa().arrayEditor,_ge=Jz();rG.exports={draw:wge,drawOne:Kz,drawRaw:eG};function wge(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 $e=!1,ee=["x","y"],de=0;de1)&&(Je===qe?(Ar=Ke.r2fraction(r["a"+ne]),(Ar<0||Ar>1)&&($e=!0)):$e=!0),Yr=Ke._offset+Ke.r2p(r[ne]),or=.5}else{var rr=kt==="domain";ne==="x"?(Pe=r[ne],Yr=rr?Ke._offset+Ke._length*Pe:Yr=l.l+l.w*Pe):(Pe=1-r[ne],Yr=rr?Ke._offset+Ke._length*Pe:Yr=l.t+l.h*Pe),or=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Yr;var ur=r["a"+ne];if(st=Er*vr(.5,r.xanchor)-br*vr(.5,r.yanchor),Je===qe){var Hr=by.getRefType(Je);Hr==="domain"?(ne==="y"&&(ur=1-ur),wr.tail=Ke._offset+Ke._length*ur):Hr==="paper"?ne==="y"?(ur=1-ur,wr.tail=l.t+l.h*ur):wr.tail=l.l+l.w*ur:wr.tail=Ke._offset+Ke.r2p(ur),et=st}else wr.tail=Yr+ur,et=st+ur;wr.text=wr.tail+st;var ot=o[ne==="x"?"width":"height"];if(qe==="paper"&&(wr.head=vv.constrain(wr.head,1,ot-1)),Je==="pixel"){var Wr=-Math.max(wr.tail-3,wr.text),tt=Math.min(wr.tail+3,wr.text)-ot;Wr>0?(wr.tail+=Wr,wr.text+=Wr):tt>0&&(wr.tail-=tt,wr.text-=tt)}wr.tail+=nt,wr.head+=nt}else st=zr*vr(or,Vr),et=st,wr.text=Yr+st;wr.text+=nt,st+=nt,et+=nt,r["_"+ne+"padplus"]=zr/2+et,r["_"+ne+"padminus"]=zr/2-et,r["_"+ne+"size"]=zr,r["_"+ne+"shift"]=st}if($e){M.remove();return}var xt=0,jr=0;if(r.align!=="left"&&(xt=(we-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(fr-Ve)*(r.valign==="middle"?.5:1)),Le)se.select("svg").attr({x:P+xt-1,y:P+jr}).call(Hu.setClipUrl,R?y:null,e);else{var at=P+jr-Ue.top,gr=P+xt-Ue.left;re.call(nT.positionText,gr,at).call(Hu.setClipUrl,R?y:null,e)}H.select("rect").call(Hu.setRect,P,P,we,fr),O.call(Hu.setRect,k/2,k/2,Ie-k,He-k),M.call(Hu.setTranslate,Math.round(m.x.text-Ie/2),Math.round(m.y.text-He/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,Tt=m.y.head,wt=m.x.tail+pr,Ot=m.y.tail+_r,ta=m.x.text+pr,Ma=m.y.text+_r,Ba=vv.rotationXYMatrix(b,ta,Ma),an=vv.apply2DTransform(Ba),Va=vv.apply2DTransform2(Ba),xn=+O.attr("width"),Pn=+O.attr("height"),di=ta-.5*xn,hn=di+xn,Jn=Ma-.5*Pn,Et=Jn+Pn,Pa=[[di,Jn,di,Et],[di,Et,hn,Et],[hn,Et,hn,Jn],[hn,Jn,di,Jn]].map(Va);if(!Pa.reduce(function(nn,$n){return nn^!!vv.segmentsIntersect(ht,Tt,ht+1e6,Tt+1e6,$n[0],$n[1],$n[2],$n[3])},!1)){Pa.forEach(function(nn){var $n=vv.segmentsIntersect(wt,Ot,ht,Tt,nn[0],nn[1],nn[2],nn[3]);$n&&(wt=$n.x,Ot=$n.y)});var ia=r.arrowwidth,Ia=r.arrowcolor,$a=r.arrowside,Qa=T.append("g").style({opacity:l0.opacity(Ia)}).classed("annotation-arrow-g",!0),fa=Qa.append("path").attr("d","M"+wt+","+Ot+"L"+ht+","+Tt).style("stroke-width",ia+"px").call(l0.stroke,l0.rgb(Ia));if(_ge(fa,$a,r),s.annotationPosition&&fa.node().parentNode&&!a){var Tn=ht,Ka=Tt;if(r.standoff){var en=Math.sqrt(Math.pow(ht-wt,2)+Math.pow(Tt-Ot,2));Tn+=r.standoff*(wt-ht)/en,Ka+=r.standoff*(Ot-Tt)/en}var fo=Qa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wt-Tn)+","+(Ot-Ka),transform:aT(Tn,Ka)}).style("stroke-width",ia+6+"px").call(l0.stroke,"rgba(0,0,0,0)").call(l0.fill,"rgba(0,0,0,0)"),Ii,dn;gy.init({element:fo.node(),gd:e,prepFn:function(){var nn=Hu.getTranslate(M);Ii=nn.x,dn=nn.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(nn,$n){var cs=an(Ii,dn),vs=cs[0]+nn,Cl=cs[1]+$n;M.call(Hu.setTranslate,vs,Cl),d("x",cv(n,nn,"x",l,r)),d("y",cv(i,$n,"y",l,r)),r.axref===r.xref&&d("ax",cv(n,nn,"ax",l,r)),r.ayref===r.yref&&d("ay",cv(i,$n,"ay",l,r)),Qa.attr("transform",aT(nn,$n)),_.attr({transform:"rotate("+b+","+vs+","+Cl+")"})},doneFn:function(){tT.call("_guiRelayout",e,p());var nn=document.querySelector(".js-notes-box-panel");nn&&nn.redraw(nn.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Oe;gy.init({element:M.node(),gd:e,prepFn:function(){Oe=_.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 Tt,wt;if(n)Tt=cv(n,pr,"x",l,r);else{var Ot=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Ot/2;Tt=gy.align(ta+pr/l.w,Ot,0,1,r.xanchor)}if(i)wt=cv(i,_r,"y",l,r);else{var Ma=r._ysize/l.h,Ba=r.y-(r._yshift+r.yshift)/l.h-Ma/2;wt=gy.align(Ba-_r/l.h,Ma,0,1,r.yanchor)}d("x",Tt),d("y",wt),(!n||!i)&&(ht=gy.getCursor(n?.5:Tt,i?.5:wt,r.xanchor,r.yanchor))}_.attr({transform:aT(pr,_r)+Oe}),iT(M,ht)},clickFn:function(pr,_r){r.captureevents&&e.emit("plotly_clickannotation",E(_r))},doneFn:function(){iT(M),tT.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?re.call(nT.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),tT.call("_guiRelayout",e,p())}):re.call(Q)}});var lG=N(($Fe,oG)=>{"use strict";var tG=Ur(),Age=Bt(),aG=Xa().arrayEditor;oG.exports={hasClickToShow:Tge,onClick:Mge};function Tge(e,r){var t=iG(e,r);return t.on.length>0||t.explicitOff.length>0}function Mge(e,r){var t=iG(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 oT=Ur(),lp=ha();sG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=lp.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),oT.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:lp.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||(lp.opacity(i)?lp.rgb(i):lp.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||lp.contrast(m)),T=oT.extendFlat({},y.font);T.color||(T.color=b),oT.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var uG=N((KFe,fG)=>{"use strict";var sT=Ur(),s0=yn(),Sge=gl(),Ege=lT(),kge=Jd();fG.exports=function(r,t){Sge(r,t,{name:"annotations",handleItemDefaults:Cge})};function Cge(e,r,t){function a(_,x){return sT.coerce(e,r,kge,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Ege(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=s0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=s0.getFromId(f,v);d._annIndices.push(r._index)}if(s0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,y=s0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[u]:.4;s0.coercePosition(r,f,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(sT.noneOrAll(e,r,["x","y"]),o&&sT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:s0.cleanPosition(b,f,r.xref),r._yclick=T===void 0?r.y:s0.cleanPosition(T,f,r.yref)}}}});var hG=N((eRe,vG)=>{"use strict";var fT=Ur(),f0=yn(),Lge=Yb().draw;vG.exports=function(r){var t=r._fullLayout,a=fT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return fT.syncOrAsync([Lge,Dge],r)};function Dge(e){var r=e._fullLayout;fT.filterVisible(r.annotations).forEach(function(t){var a=f0.getFromId(e,t.xref),n=f0.getFromId(e,t.yref),i=f0.getRefType(t.xref),o=f0.getRefType(t.yref);t._extremes={},i==="range"&&cG(t,a),o==="range"&&cG(t,n)})}function cG(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=f0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=f0.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=f0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var pG=N((rRe,dG)=>{"use strict";var Fge=ba(),Rge=Wg();dG.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=Rge(p,t.range):y=Math.pow(10,p),Fge(y)||(y=null),n(u+d,y)}for(var v=0;v{"use strict";var uT=Yb(),mG=lG();yG.exports={moduleType:"component",name:"annotations",layoutAttributes:Jd(),supplyLayoutDefaults:uG(),includeBasePlot:Qm()("annotations"),calcAutorange:hG(),draw:uT.draw,drawOne:uT.drawOne,drawRaw:uT.drawRaw,hasClickToShow:mG.hasClickToShow,onClick:mG.onClick,convertCoords:pG()}});var Wb=N((aRe,bG)=>{"use strict";var tn=Jd(),qge=Rs().overrideAll,Pge=Xa().templatedArray;bG.exports=qge(Pge("annotation",{visible:tn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:tn.xanchor,xshift:tn.xshift,yanchor:tn.yanchor,yshift:tn.yshift,text:tn.text,textangle:tn.textangle,font:tn.font,width:tn.width,height:tn.height,opacity:tn.opacity,align:tn.align,valign:tn.valign,bgcolor:tn.bgcolor,bordercolor:tn.bordercolor,borderpad:tn.borderpad,borderwidth:tn.borderwidth,showarrow:tn.showarrow,arrowcolor:tn.arrowcolor,arrowhead:tn.arrowhead,startarrowhead:tn.startarrowhead,arrowside:tn.arrowside,arrowsize:tn.arrowsize,startarrowsize:tn.startarrowsize,arrowwidth:tn.arrowwidth,standoff:tn.standoff,startstandoff:tn.startstandoff,hovertext:tn.hovertext,hoverlabel:tn.hoverlabel,captureevents:tn.captureevents}),"calc","from-root")});var _G=N((nRe,xG)=>{"use strict";var cT=Ur(),Nge=yn(),Ige=gl(),Oge=lT(),Bge=Wb();xG.exports=function(r,t,a){Ige(r,t,{name:"annotations",handleItemDefaults:zge,fullLayout:a.fullLayout})};function zge(e,r,t,a){function n(l,s){return cT.coerce(e,r,Bge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],Nge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(Oge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),cT.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),cT.noneOrAll(e,r,["ax","ay"])))}});var MG=N((iRe,TG)=>{"use strict";var wG=Ur(),AG=yn();TG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function vT(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 Uge(e,r){var t=vT(e.projection,vT(e.view,vT(e.model,[r[0],r[1],r[2],1])));return t}SG.exports=Uge});var CG=N((lRe,kG)=>{"use strict";var Hge=Yb().drawRaw,Vge=EG(),Yge=["x","y","z"];kG.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=Vge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Hge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var FG=N((sRe,DG)=>{"use strict";var Wge=Bt(),LG=Ur();DG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Wb()}}},layoutAttributes:Wb(),handleDefaults:_G(),includeBasePlot:jge,convert:MG(),draw:CG()};function jge(e,r){var t=Wge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var fRe=ci(),RG=zi(),qG=lv().line,Xge=Pc().dash,Ws=zn().extendFlat,Zge=Xa().templatedArray,uRe=Zm(),sp=Ds(),PG=Jd(),{shapeTexttemplateAttrs:Jge,templatefallbackAttrs:$ge}=cd(),Qge=t2();NG.exports=Zge("shape",{visible:Ws({},sp.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ws({},sp.legend,{editType:"calc+arraydraw"}),legendgroup:Ws({},sp.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ws({},sp.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:RG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ws({},sp.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ws({},sp.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({},PG.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({},PG.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({},qG.color,{editType:"arraydraw"}),width:Ws({},qG.width,{editType:"calc+arraydraw"}),dash:Ws({},Xge,{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:Jge({},{keys:Object.keys(Qge)}),texttemplatefallback:$ge({editType:"arraydraw"}),font:RG({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 OG=N((vRe,IG)=>{"use strict";var fp=Ur(),Ml=yn(),Kge=gl(),e2e=hT(),xy=iv();IG.exports=function(r,t){Kge(r,t,{name:"shapes",handleItemDefaults:t2e})};function r2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function t2e(e,r,t){function a(_,x){return fp.coerce(e,r,e2e,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),fp.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=Ml.coerceRefArray(e,r,E,_,void 0,"paper",H),r["_"+_+"refArray"]=!0}else P=Ml.coerceRef(e,r,E,_,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Ml.getRefType(H)==="range"&&(M=Ml.getFromId(E,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),f&&[0,1].forEach(function(H){let V=P[H];Ml.getRefType(V)==="range"?(M=Ml.getFromId(E,V),k=xy.shapePositionToRange(M),F=xy.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+H+"shift")):k=F=fp.identity;let re=_+H,Q=e[re];if(e[re]=k(e[re],!0),A==="pixel"?a(re,p[H]):Ml.coercePosition(r,E,a,V,re,d[H]),r[re]=F(r[re]),e[re]=Q,H===0&&A==="pixel"){let J=e[x];e[x]=k(e[x],!0),Ml.coercePosition(r,E,a,V,x,.25),r[x]=F(r[x]),e[x]=J}});else{if(Ml.getRefType(P)==="range"?(M=Ml.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=fp.identity,f){let V=_+"0",ae=_+"1",re=e[V],Q=e[ae];e[V]=k(e[V],!0),e[ae]=k(e[ae],!0),A==="pixel"?(a(V,p[0]),a(ae,p[1])):(Ml.coercePosition(r,E,a,P,V,d[0]),Ml.coercePosition(r,E,a,P,ae,d[1])),r[V]=F(r[V]),r[ae]=F(r[ae]),e[V]=re,e[ae]=Q}if(A==="pixel"){let V=e[x];e[x]=k(e[x],!0),Ml.coercePosition(r,E,a,P,x,.25),r[x]=F(r[x]),e[x]=V}}}),f&&fp.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",r2e(y,T)),a("label.padding"),fp.coerceFont(a,"label.font",t.font)}}});var GG=N((hRe,zG)=>{"use strict";var a2e=ha(),BG=Ur();function n2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}zG.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"),BG.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",a2e.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",n2e(o,f)),a("newshape.label.padding"),BG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var XG=N((dRe,jG)=>{"use strict";var dT=Ur(),as=yn(),Uf=km(),pT=iv();jG.exports=function(r){var t=r._fullLayout,a=dT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=as.getFromId(r,c),i._extremes[o._id]=as.findExtremes(o,v,HG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=as.getFromId(r,i.xref),l=YG(o,i,Uf.paramIsX),l&&(i._extremes[o._id]=as.findExtremes(o,l,HG(i))));if(f==="array"){let u=UG(r,i,"y");Object.entries(u).forEach(([c,v])=>{o=as.getFromId(r,c),i._extremes[o._id]=as.findExtremes(o,v,VG(i))})}else i.yref!=="paper"&&f!=="domain"&&(o=as.getFromId(r,i.yref),l=YG(o,i,Uf.paramIsY),l&&(i._extremes[o._id]=as.findExtremes(o,l,VG(i))))}};function UG(e,r,t){let a=r[t+"ref"],n=t==="x"?Uf.paramIsX:Uf.paramIsY;function i(c,v){c==="paper"||as.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Uf.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=as.getFromId(e,c);if(v){var u=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(u=pT.decodeDate(u)),f[v._id]=o[c].map(u)}}return f}function HG(e){return WG(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function VG(e){return WG(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function WG(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?pT.extractPathCoords(n,i?Uf.paramIsY:Uf.paramIsX):[t,a],f=dT.aggNums(Math.max,null,s),u=dT.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 YG(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(Uf.segmentRE),p,y,m,b,T;for(e.type==="date"&&(f=pT.decodeDate(f)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var $G=N((pRe,JG)=>{"use strict";var ZG=O3();JG.exports={moduleType:"component",name:"shapes",layoutAttributes:hT(),supplyLayoutDefaults:OG(),supplyDrawNewShapeDefaults:GG(),includeBasePlot:Qm()("shapes"),calcAutorange:XG(),draw:ZG.draw,drawOne:ZG.drawOne}});var mT=N((yRe,KG)=>{"use strict";var QG=ci(),i2e=Xa().templatedArray,mRe=Zm();KG.exports=i2e("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",QG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",QG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rU=N((gRe,eU)=>{"use strict";var o2e=Ur(),yT=yn(),l2e=gl(),s2e=mT(),f2e="images";eU.exports=function(r,t){var a={name:f2e,handleItemDefaults:u2e};l2e(r,t,a)};function u2e(e,r,t){function a(v,d){return o2e.coerce(e,r,s2e,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=yT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=yT.getFromId(o,u);c._imgIndices.push(r._index)}yT.coercePosition(r,o,a,u,f,0)}return r}});var iU=N((bRe,nU)=>{"use strict";var tU=da(),c2e=Ha(),up=yn(),aU=kn(),v2e=Yc();nU.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var oU=ba(),h2e=Wg();lU.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";fU.exports={moduleType:"component",name:"images",layoutAttributes:mT(),supplyLayoutDefaults:rU(),includeBasePlot:Qm()("images"),draw:iU(),convertCoords:sU()}});var jb=N((wRe,cU)=>{"use strict";cU.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 gT=N((ARe,hU)=>{"use strict";var d2e=zi(),p2e=Mf(),m2e=zn().extendFlat,y2e=Rs().overrideAll,g2e=a2(),vU=Xa().templatedArray,b2e=vU("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}});hU.exports=y2e(vU("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:b2e,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:m2e(g2e({editType:"arraydraw"}),{}),font:d2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:p2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var yU=N((TRe,mU)=>{"use strict";var Xb=Ur(),dU=gl(),pU=gT(),x2e=jb(),_2e=x2e.name,w2e=pU.buttons;mU.exports=function(r,t){var a={name:_2e,handleItemDefaults:A2e};dU(r,t,a)};function A2e(e,r,t){function a(o,l){return Xb.coerce(e,r,pU,o,l)}var n=dU(e,r,{name:"buttons",handleItemDefaults:T2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Xb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Xb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function T2e(e,r){function t(n,i){return Xb.coerce(e,r,w2e,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 xU=N((MRe,bU)=>{"use strict";bU.exports=Cn;var js=da(),gU=ha(),cp=Ha(),Zb=Ur();function Cn(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})}Cn.barWidth=2;Cn.barLength=20;Cn.barRadius=2;Cn.barPad=1;Cn.barColor="#808BA4";Cn.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=Cn.barLength+2*Cn.barPad,F=Cn.barWidth+2*Cn.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(gU.fill,Cn.barColor),M?(this.hbar=R.attr({rx:Cn.barRadius,ry:Cn.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,V=Cn.barWidth+2*Cn.barPad,ae=Cn.barLength+2*Cn.barPad,re=l+s,Q=f;re+V>i&&(re=i-V);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(gU.fill,Cn.barColor),H?(this.vbar=J.attr({rx:Cn.barRadius,ry:Cn.barRadius,x:re,y:Q,width:V,height:ae}),this._vbarYMin=Q+ae/2,this._vbarTranslateMax=b-ae):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,oe=T-.5,se=H?_+V+.5:_+.5,Le=x-.5,Ue=M?A+F+.5:A+.5,Ee=n._topdefs.selectAll("#"+j).data(M||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",j).append("rect"),M||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(oe),y:Math.floor(Le),width:Math.ceil(se)-Math.floor(oe),height:Math.ceil(Ue)-Math.floor(Le)}),this.container.call(cp.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(cp.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)};Cn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(cp.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)};Cn.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)};Cn.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)};Cn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Zb.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=Zb.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)};Cn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Zb.constrain(r||0,0,a),t=Zb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(cp.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(cp.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(cp.setTranslate,r,t+o*this._vbarTranslateMax)}}});var LU=N((SRe,CU)=>{"use strict";var vp=da(),_y=_i(),wy=ha(),hp=Ha(),Sl=Ur(),Jb=to(),M2e=Xa().arrayEditor,wU=ro().LINE_SPACING,Gt=jb(),S2e=xU();CU.exports=function(r){var t=r._fullLayout,a=Sl.filterVisible(t[Gt.name]);function n(v){_y.autoMargin(r,EU(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(){vp.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,E2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Sl.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var q2e=jb();DU.exports={moduleType:"component",name:q2e.name,layoutAttributes:gT(),supplyLayoutDefaults:yU(),draw:LU()}});var Ty=N((kRe,RU)=>{"use strict";RU.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 wT=N((CRe,NU)=>{"use strict";var qU=zi(),P2e=a2(),N2e=zn().extendDeepAll,I2e=Rs().overrideAll,O2e=Z1(),PU=Xa().templatedArray,u0=Ty(),B2e=PU("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}});NU.exports=I2e(PU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:B2e,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:N2e(P2e({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:O2e.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:qU({})},font:qU({}),activebgcolor:{valType:"color",dflt:u0.gripBgActiveColor},bgcolor:{valType:"color",dflt:u0.railBgColor},bordercolor:{valType:"color",dflt:u0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:u0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:u0.tickLength},tickcolor:{valType:"color",dflt:u0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:u0.minorTickLength}}),"arraydraw","from-root")});var zU=N((LRe,BU)=>{"use strict";var dp=Ur(),IU=gl(),OU=wT(),z2e=Ty(),G2e=z2e.name,U2e=OU.steps;BU.exports=function(r,t){IU(r,t,{name:G2e,handleItemDefaults:H2e})};function H2e(e,r,t){function a(c,v){return dp.coerce(e,r,OU,c,v)}for(var n=IU(e,r,{name:"steps",handleItemDefaults:V2e}),i=0,o=0;o{"use strict";var Xs=da(),$b=_i(),hv=ha(),Zs=Ha(),El=Ur(),Y2e=El.strTranslate,My=to(),W2e=Xa().arrayEditor,ea=Ty(),MT=ro(),HU=MT.LINE_SPACING,AT=MT.FROM_TL,TT=MT.FROM_BR;ZU.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),$b.autoMargin(r,VU(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,X2e);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",Y2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function ST(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function UU(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 r3e(e,r,t){var a=t._dims,n=El.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 t3e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=El.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 QU=N((FRe,$U)=>{"use strict";var a3e=Ty();$U.exports={moduleType:"component",name:a3e.name,layoutAttributes:wT(),supplyLayoutDefaults:zU(),draw:JU()}});var Kb=N((RRe,eH)=>{"use strict";var KU=Mf();eH.exports={bgcolor:{valType:"color",dflt:KU.background,editType:"plot"},bordercolor:{valType:"color",dflt:KU.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 ET=N((qRe,rH)=>{"use strict";rH.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 ex=N((PRe,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 iH=N(tx=>{"use strict";var n3e=kn(),i3e=to(),aH=ex(),o3e=ro().LINE_SPACING,rx=aH.name;function nH(e){var r=e&&e[rx];return r&&r.visible}tx.isVisible=nH;tx.makeData=function(e){for(var r=n3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ax=Ur(),oH=Xa(),lH=kn(),l3e=Kb(),s3e=ET();sH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ax.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=oH.newContainer(i,"rangeslider");function s(A,E){return ax.coerce(o,l,l3e,A,E)}var f,u;function c(A,E){return ax.coerce(f,u,s3e,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")))===lH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),y=ax.simpleMap(p,lH.id2name),m=0;m{"use strict";var f3e=kn().list,u3e=qd().getAutoRange,c3e=ex();uH.exports=function(r){for(var t=f3e(r,"x",!0),a=0;a{"use strict";var nx=da(),v3e=Bt(),h3e=_i(),On=Ur(),ix=On.strTranslate,hH=Ha(),dv=ha(),d3e=hm(),p3e=yy(),kT=kn(),m3e=Bs(),y3e=Qc(),sa=ex();dH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=J.max)re=O[Q+1];else if(ae=J.pmax)re=O[Q+1];else if(ae0?e.touches[0].clientX:0}function g3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+sa.slideBoxClassName).node(),i=e.select("rect."+sa.grabAreaMinClassName).node(),o=e.select("rect."+sa.grabAreaMaxClassName).node();function l(){var s=nx.event,f=s.target,u=vH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=m3e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var T=vH(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 k3e=Ur(),C3e=Kb(),L3e=ET(),CT=iH();mH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:k3e.extendFlat({},C3e,{yaxis:L3e})}}},layoutAttributes:Kb(),handleDefaults:fH(),calcAutorange:cH(),draw:pH(),isVisible:CT.isVisible,makeData:CT.makeData,autoMarginOpts:CT.autoMarginOpts}});var ox=N((GRe,bH)=>{"use strict";var D3e=zi(),gH=Mf(),F3e=Xa().templatedArray,R3e=F3e("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:R3e,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:D3e({editType:"plot"}),bgcolor:{valType:"color",dflt:gH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:gH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var LT=N((URe,xH)=>{"use strict";xH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var AH=N((HRe,wH)=>{"use strict";var lx=Ur(),q3e=ha(),P3e=Xa(),N3e=gl(),_H=ox(),DT=LT();wH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=P3e.newContainer(t,"rangeselector");function s(d,p){return lx.coerce(o,l,_H,d,p)}var f=N3e(o,l,{name:"buttons",handleItemDefaults:I3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=O3e(t,a,n);s("x",c[0]),s("y",c[1]),lx.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),lx.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",q3e.contrast(v,DT.lightAmount,DT.darkAmount)),s("bordercolor"),s("borderwidth")}};function I3e(e,r,t,a){var n=a.calendar;function i(s,f){return lx.coerce(e,r,_H.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 O3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var B3e=M5(),z3e=Ur().titleCase;TH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=G3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function G3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=B3e["utc"+z3e(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 RH=N((YRe,FH)=>{"use strict";var fx=da(),U3e=Bt(),H3e=_i(),SH=ha(),DH=Ha(),Vu=Ur(),EH=Vu.strTranslate,sx=to(),V3e=kn(),qT=ro(),kH=qT.LINE_SPACING,CH=qT.FROM_TL,LH=qT.FROM_BR,RT=LT(),Y3e=MH();FH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(W3e(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=fx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Vu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=fx.select(this),c=Y3e(o,f);f._isActive=X3e(o,f,c),u.call(FT,l,f),u.call(J3e,l,f,r),u.on("click",function(){r._dragged||U3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(FT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(FT,l,f)})}),Q3e(r,s,l,o._name,i)})};function W3e(e){for(var r=V3e.list(e,"x",!0),t=[],a=0;a{"use strict";qH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:ox()}}},layoutAttributes:ox(),handleDefaults:AH(),draw:RH()}});var ux=N(PT=>{"use strict";var NH=zn().extendFlat;PT.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:NH({},t,{}),y:NH({},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};PT.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 K3e=Ur(),ebe=ld().counter,rbe=ux().attributes,IH=ci().idRegex,tbe=Xa(),NT={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:[ebe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IH.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:rbe({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 cx(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 abe(e,r){var t=e.grid||{},a=cx(r,t,"x"),n=cx(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=tbe.newContainer(r,"grid");function v(E,M){return K3e.coerce(t,c,NT,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:OH("x",v,T,x,p),y:OH("y",v,_,A,d,b)}}function OH(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";GH.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 VH=N((JRe,HH)=>{"use strict";var UH=ba(),ibe=Bt(),obe=Ur(),lbe=Xa(),sbe=OT();HH.exports=function(e,r,t,a){var n="error_"+a.axis,i=lbe.newContainer(r,n),o=e[n]||{};function l(p,y){return obe.coerce(o,i,sbe,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||UH(o.thickness)||UH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",ibe.traceIs(r,"gl3d")?0:4))}}});var BT=N(($Re,WH)=>{"use strict";WH.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=YH(t,r.value),l=YH(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 YH(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 ZH=N((QRe,XH)=>{"use strict";var zT=ba(),fbe=Bt(),GT=yn(),ube=Ur(),cbe=BT();XH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var JH=da(),pv=ba(),vbe=Ha(),hbe=qi();$H.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=hbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=JH.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),vbe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=JH.select(this),x=dbe(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 dbe(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 rV=N((eqe,eV)=>{"use strict";var pbe=da(),KH=ha();eV.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=pbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(KH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(KH.stroke,i.color)})}});var nV=N((rqe,aV)=>{"use strict";var Sy=Ur(),tV=Rs().overrideAll,Ey=OT(),c0={error_x:Sy.extendFlat({},Ey),error_y:Sy.extendFlat({},Ey)};delete c0.error_x.copy_zstyle;delete c0.error_y.copy_zstyle;delete c0.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;aV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:c0,bar:c0,histogram:c0,scatter3d:tV(ky,"calc","nested"),scattergl:tV(c0,"calc","nested")}},supplyDefaults:VH(),calc:ZH(),makeComputeError:BT(),plot:QH(),style:rV(),hoverInfo:mbe};function mbe(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 oV=N((tqe,iV)=>{"use strict";iV.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 hV=N((aqe,vV)=>{"use strict";var mv=da(),UT=Ls(),hx=_i(),lV=Bt(),Yu=yn(),vx=Bs(),ns=Ur(),$s=ns.strTranslate,cV=zn().extendFlat,HT=Qc(),Js=Ha(),VT=ha(),ybe=hm(),gbe=to(),bbe=Is().flipScale,xbe=$6(),_be=Q6(),wbe=Hl(),YT=ro(),sV=YT.LINE_SPACING,fV=YT.FROM_TL,uV=YT.FROM_BR,wn=oV().cn;function Abe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+wn.colorbar).data(Tbe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(wn.colorbar,!0),t.each(function(a){var n=mv.select(this);ns.ensureSingle(n,"rect",wn.cbbg),ns.ensureSingle(n,"g",wn.cbfills),ns.ensureSingle(n,"g",wn.cblines),ns.ensureSingle(n,"g",wn.cbaxis,function(o){o.classed(wn.crisp,!0)}),ns.ensureSingle(n,"g",wn.cbtitleunshift,function(o){o.append("g").classed(wn.cbtitle,!0)}),ns.ensureSingle(n,"rect",wn.cboutline);var i=Mbe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Sbe(n,a,e)}),t.exit().each(function(a){hx.autoMargin(e,a._id)}).remove(),t.order()}function Tbe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return cV(_,{_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?bbe(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(ee)/Math.LN10));vr*=de*ns.roundUp(ee/de,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(Ie.tick0=0)}Ie.dtick=vr}Ie.domain=a?[we+p/x.h,we+j-p/x.h]:[we+d/x.w,we+j-d/x.w],Ie.setScale(),e.attr("transform",$s(Math.round(x.l),Math.round(x.t)));var ne=e.select("."+wn.cbtitleunshift).attr("transform",$s(-Math.round(x.l),-Math.round(x.t))),qe=Ie.ticklabelposition,Je=Ie.title.font.size,Ke=e.select("."+wn.cbaxis),Sr,Er=0,br=0;function zr(et,Pe){var or={propContainer:Ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+wn.cbtitle)},st=et.charAt(0)==="h"?et.slice(1):"h"+et;e.selectAll("."+st+",."+st+"-math-group").remove(),ybe.draw(t,et,cV(or,Pe||{}))}function Vr(){if(a&&He||!a&&!He){var et,Pe;k==="top"&&(et=d+x.l+oe*y,Pe=p+x.t+se*(1-we-j)+3+Je*.75),k==="bottom"&&(et=d+x.l+oe*y,Pe=p+x.t+se*(1-we)-3-Je*.25),k==="right"&&(Pe=p+x.t+se*m+3+Je*.75,et=d+x.l+oe*we),zr(Ie._id+"title",{attributes:{x:et,y:Pe,"text-anchor":a?"start":"middle"}})}}function nt(){if(a&&!He||!a&&He){var et=Ie.position||0,Pe=Ie._offset+Ie._length/2,or,st;if(k==="right")st=Pe,or=x.l+oe*et+10+Je*(Ie.showticklabels?1:.5);else if(or=Pe,k==="bottom"&&(st=x.t+se*et+10+(qe.indexOf("inside")===-1?Ie.tickfont.size:0)+(Ie.ticks!=="inside"&&r.ticklen||0)),k==="top"){var kt=M.text.split("
").length;st=x.t+se*et+10-re-sV*Je*kt}zr((a?"h":"v")+Ie._id+"title",{avoid:{selection:mv.select(t).selectAll("g."+Ie._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 et=e.select("."+wn.cbtitle),Pe=et.select("text"),or=[-s/2,s/2],st=et.select(".h"+Ie._id+"title-math-group").node(),kt=15.6;Pe.node()&&(kt=parseInt(Pe.node().style.fontSize,10)*sV);var Ar;if(st?(Ar=Js.bBox(st),br=Ar.width,Er=Ar.height,Er>kt&&(or[1]-=(Er-kt)/2)):Pe.node()&&!Pe.classed(wn.jsPlaceholder)&&(Ar=Js.bBox(Pe.node()),br=Ar.width,Er=Ar.height),a){if(Er){if(Er+=5,k==="top")Ie.domain[1]-=Er/x.h,or[1]*=-1;else{Ie.domain[0]+=Er/x.h;var rr=gbe.lineCount(Pe);or[1]+=(1-rr)*kt}et.attr("transform",$s(or[0],or[1])),Ie.setScale()}}else br&&(k==="right"&&(Ie.domain[0]+=(br+Je/2)/x.w),et.attr("transform",$s(or[0],or[1])),Ie.setScale())}e.selectAll("."+wn.cbfills+",."+wn.cblines).attr("transform",a?$s(0,Math.round(x.h*(1-Ie.domain[1]))):$s(Math.round(x.w*Ie.domain[0]),0)),Ke.attr("transform",a?$s(0,Math.round(-x.t)):$s(Math.round(-x.l),0));var ur=e.select("."+wn.cbfills).selectAll("rect."+wn.cbfill).attr("style","").data(V);ur.enter().append("rect").classed(wn.cbfill,!0).attr("style",""),ur.exit().remove();var Hr=F.map(Ie.c2p).map(Math.round).sort(function(jr,at){return jr-at});ur.each(function(jr,at){var gr=[at===0?F[0]:(V[at]+V[at-1])/2,at===V.length-1?F[1]:(V[at]+V[at+1])/2].map(Ie.c2p).map(Math.round);a&&(gr[1]=ns.constrain(gr[1]+(gr[1]>gr[0])?1:-1,Hr[0],Hr[1]));var Se=mv.select(this).attr(a?"x":"y",Le).attr(a?"y":"x",mv.min(gr)).attr(a?"width":"height",Math.max(re,2)).attr(a?"height":"width",Math.max(mv.max(gr)-mv.min(gr),2));if(r._fillgradient)Js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Oe=O(jr).replace("e-","");Se.attr("fill",UT(Oe).toHexString())}});var ot=e.select("."+wn.cblines).selectAll("path."+wn.cbline).data(E.color&&E.width?ae:[]);ot.enter().append("path").classed(wn.cbline,!0),ot.exit().remove(),ot.each(function(jr){var at=Le,gr=Math.round(Ie.c2p(jr))+E.width/2%1;mv.select(this).attr("d","M"+(a?at+","+gr:gr+","+at)+(a?"h":"v")+re).call(Js.lineGroupStyle,E.width,P(jr),E.dash)}),Ke.selectAll("g."+Ie._id+"tick,path").remove();var Wr=Le+re+(s||0)/2-(r.ticks==="outside"?1:0),tt=Yu.calcTicks(Ie),xt=Yu.getTickSigns(Ie)[2];return Yu.drawTicks(t,Ie,{vals:Ie.ticks==="inside"?Yu.clipEnds(Ie,tt):tt,layer:Ke,path:Yu.makeTickPath(Ie,Wr,xt),transFn:Yu.makeTransTickFn(Ie)}),Yu.drawLabels(t,Ie,{vals:tt,layer:Ke,transFn:Yu.makeTransTickLabelFn(Ie),labelFns:Yu.makeLabelFns(Ie,Wr)})}function Yr(){var et,Pe=re+s/2;qe.indexOf("inside")===-1&&(et=Js.bBox(Ke.node()),Pe+=a?et.width:et.height),Sr=ne.select("text");var or=0,st=a&&k==="top",kt=!a&&k==="right",Ar=0;if(Sr.node()&&!Sr.classed(wn.jsPlaceholder)){var rr,ur=ne.select(".h"+Ie._id+"title-math-group").node();ur&&(a&&He||!a&&!He)?(et=Js.bBox(ur),or=et.width,rr=et.height):(et=Js.bBox(ne.node()),or=et.right-x.l-(a?Le:fr),rr=et.bottom-x.t-(a?fr:Le),!a&&k==="top"&&(Pe+=et.height,Ar=et.height)),kt&&(Sr.attr("transform",$s(or/2+Je/2,0)),or*=2),Pe=Math.max(Pe,a?or:rr)}var Hr=(a?d:p)*2+Pe+f+s/2,ot=0;!a&&M.text&&v==="bottom"&&m<=0&&(ot=Hr/2,Hr+=ot,Ar+=ot),_._hColorbarMoveTitle=ot,_._hColorbarMoveCBTitle=Ar;var Wr=f+s,tt=(a?Le:fr)-Wr/2-(a?d:0),xt=(a?fr:Le)-(a?J:p+Ar-ot);e.select("."+wn.cbbg).attr("x",tt).attr("y",xt).attr(a?"width":"height",Math.max(Hr-ot,2)).attr(a?"height":"width",Math.max(J+Wr,2)).call(VT.fill,u).call(VT.stroke,r.bordercolor).style("stroke-width",f);var jr=kt?Math.max(or-10,0):0;e.selectAll("."+wn.cboutline).attr("x",(a?Le:fr+d)+jr).attr("y",(a?fr+p-J:Le)+(st?Er:0)).attr(a?"width":"height",Math.max(re,2)).attr(a?"height":"width",Math.max(J-(a?2*p+Er:2*d+jr),2)).call(VT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var at=a?Ue*Hr:0,gr=a?0:(1-Ee)*Hr-Ar;if(at=T?x.l-at:-at,gr=b?x.t-gr:-gr,e.attr("transform",$s(at,gr)),!a&&(f||UT(u).getAlpha()&&!UT.equals(_.paper_bgcolor,u))){var Se=Ke.selectAll("text"),Oe=Se[0].length,pr=e.select("."+wn.cbbg).node(),_r=Js.bBox(pr),ht=Js.getTranslate(e),Tt=2;Se.each(function(di,hn){var Jn=0,Et=Oe-1;if(hn===Jn||hn===Et){var Pa=Js.bBox(this),ia=Js.getTranslate(this),Ia;if(hn===Et){var $a=Pa.right+ia.x,Qa=_r.right+ht.x+fr-f-Tt+y;Ia=Qa-$a,Ia>0&&(Ia=0)}else if(hn===Jn){var fa=Pa.left+ia.x,Tn=_r.left+ht.x+fr+f+Tt;Ia=Tn-fa,Ia<0&&(Ia=0)}Ia&&(Oe<3?this.setAttribute("transform","translate("+Ia+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var wt={},Ot=fV[c],ta=uV[c],Ma=fV[v],Ba=uV[v],an=Hr-re;a?(i==="pixels"?(wt.y=m,wt.t=J*Ma,wt.b=J*Ba):(wt.t=wt.b=0,wt.yt=m+n*Ma,wt.yb=m-n*Ba),l==="pixels"?(wt.x=y,wt.l=Hr*Ot,wt.r=Hr*ta):(wt.l=an*Ot,wt.r=an*ta,wt.xl=y-o*Ot,wt.xr=y+o*ta)):(i==="pixels"?(wt.x=y,wt.l=J*Ot,wt.r=J*ta):(wt.l=wt.r=0,wt.xl=y+n*Ot,wt.xr=y-n*ta),l==="pixels"?(wt.y=1-m,wt.t=Hr*Ma,wt.b=Hr*Ba):(wt.t=an*Ma,wt.b=an*Ba,wt.yt=m-o*Ma,wt.yb=m+o*Ba));var Va=r.y<.5?"b":"t",xn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Pn={r:_.width-tt-at,l:tt+wt.r,b:_.height-xt-gr,t:xt+wt.b};T&&b?hx.autoMargin(t,r._id,wt):T?t._fullLayout._reservedMargin[r._id][Va]=Pn[Va]:b||a?t._fullLayout._reservedMargin[r._id][xn]=Pn[xn]:t._fullLayout._reservedMargin[r._id][Va]=Pn[Va]}return ns.syncOrAsync([hx.previousPromises,Vr,wr,nt,hx.previousPromises,Yr],t)}function Sbe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;vx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),HT(e)},moveFn:function(f,u){e.attr("transform",o+$s(f,u)),l=vx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=vx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=vx.getCursor(l,s,r.xanchor,r.yanchor);HT(e,c)},doneFn:function(){if(HT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?lV.call("_guiRestyle",t,f,r._traceIndex):lV.call("_guiRelayout",t,f)}}})}function Ebe(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";dV.exports={moduleType:"component",name:"colorbar",attributes:R2(),supplyDefaults:B4(),draw:hV().draw,hasColorbar:k4()}});var yV=N((iqe,mV)=>{"use strict";mV.exports={moduleType:"component",name:"legend",layoutAttributes:Nw(),supplyLayoutDefaults:Ow(),draw:Qw(),style:Xw()}});var bV=N((oqe,gV)=>{"use strict";gV.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 _V=N((lqe,xV)=>{"use strict";xV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var jT=N((sqe,MV)=>{"use strict";var Cbe=Bt(),TV=Ur(),WT=TV.extendFlat,wV=TV.extendDeep;function AV(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 Lbe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}MV.exports=function(r,t){var a,n=r.data,i=r.layout,o=wV([],n),l=wV({},i,AV(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 Dbe=x2().EventEmitter,Fbe=Bt(),Rbe=Ur(),SV=r0(),qbe=jT(),Pbe=xb(),Nbe=_b();function Ibe(e,r){var t=new Dbe,a=qbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=SV.getDelay(n._fullLayout);setTimeout(function(){var s=Pbe(n),f=document.createElement("canvas");f.id=Rbe.randstr(),t=Nbe({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=SV.getRedrawFunc(n);return Fbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}EV.exports=Ibe});var DV=N((uqe,LV)=>{"use strict";var CV=r0(),Obe={getDelay:CV.getDelay,getRedrawFunc:CV.getRedrawFunc,clone:jT(),toSVG:xb(),svgToImg:_b(),toImage:kV(),downloadImage:y6()};LV.exports=Obe});var RV=N(Wu=>{"use strict";Wu.version=Ng().version;LM();bC();var Bbe=Bt(),Cy=Wu.register=Bbe.register,ZT=zO(),FV=Object.keys(ZT);for(dx=0;dx{"use strict";qV.exports=RV()});var JT=N((hqe,IV)=>{"use strict";var zbe=Bt(),kl=Ur(),Gbe=j6();function Ube(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,V=!!o.yperiodalignment;for(M=0;M=Math.min(ae,re)&&c<=Math.max(ae,re)?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 OV=20;BV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:OV,SYMBOL_STROKE:OV/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 mx=N((pqe,HV)=>{"use strict";var Hbe=Ds(),Vbe=zi(),Ybe=jA(),An=lv(),zV=fm().axisHoverFormat,GV=Nh(),Wbe=u2(),$T=zn().extendFlat,jbe=Rs().overrideAll,Xbe=mp().DASHES,UV=An.line,ju=An.marker,Zbe=ju.line,yv=HV.exports=jbe({x:An.x,x0:An.x0,dx:An.dx,y:An.y,y0:An.y0,dy:An.dy,xperiod:An.xperiod,yperiod:An.yperiod,xperiod0:An.xperiod0,yperiod0:An.yperiod0,xperiodalignment:An.xperiodalignment,yperiodalignment:An.yperiodalignment,xhoverformat:zV("x"),yhoverformat:zV("y"),text:An.text,hovertext:An.hovertext,textposition:An.textposition,textfont:Vbe({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:UV.color,width:UV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Wbe(Xbe),dflt:"solid"}},marker:$T({},GV("marker"),{symbol:ju.symbol,angle:ju.angle,size:ju.size,sizeref:ju.sizeref,sizemin:ju.sizemin,sizemode:ju.sizemode,opacity:ju.opacity,colorbar:ju.colorbar,line:$T({},GV("marker.line"),{width:Zbe.width})}),connectgaps:An.connectgaps,fill:$T({},An.fill,{dflt:"none"}),fillcolor:Ybe(),selected:{marker:An.selected.marker,textfont:An.selected.textfont},unselected:{marker:An.unselected.marker,textfont:An.unselected.textfont},opacity:Hbe.opacity},"calc","nested");yv.x.editType=yv.y.editType=yv.x0.editType=yv.y0.editType="calc+clearAxisTypes";yv.hovertemplate=An.hovertemplate;yv.hovertemplatefallback=An.hovertemplatefallback;yv.texttemplate=An.texttemplate;yv.texttemplatefallback=An.texttemplatefallback});var yx=N(QT=>{"use strict";var VV=mp();QT.isOpenSymbol=function(e){return typeof e=="string"?VV.OPEN_RE.test(e):e%200>100};QT.isDotSymbol=function(e){return typeof e=="string"?VV.DOT_RE.test(e):e>200}});var jV=N((yqe,WV)=>{"use strict";var YV=Ur(),Jbe=Bt(),$be=yx(),Qbe=mx(),Kbe=Jm(),gx=qi(),exe=x6(),rxe=_6(),txe=Sb(),axe=w6(),nxe=T6(),ixe=A6();WV.exports=function(r,t,a,n){function i(d,p){return YV.coerce(r,t,Qbe,d,p)}var o=r.marker?$be.isOpenSymbol(r.marker.symbol):!1,l=gx.isBubble(r),s=exe(r,t,n,i);if(!s){t.visible=!1;return}rxe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var oxe=U6();XV.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]),oxe(r,t,a)}});var $V=N((bqe,JV)=>{"use strict";function lxe(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 sxe(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 fxe(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 uxe(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 cxe(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)}JV.exports={ge:function(e,r,t,a,n){return Ly(e,r,t,a,n,lxe)},gt:function(e,r,t,a,n){return Ly(e,r,t,a,n,sxe)},lt:function(e,r,t,a,n){return Ly(e,r,t,a,n,fxe)},le:function(e,r,t,a,n){return Ly(e,r,t,a,n,uxe)},eq:function(e,r,t,a,n){return Ly(e,r,t,a,n,cxe)}}});var Dy=N((xqe,QV)=>{QV.exports=vxe;function vxe(e,r,t){return rt?t:e:er?r:e}});var Hf=N((_qe,eY)=>{"use strict";eY.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=KV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var hxe=Hf();rY.exports=dxe;function dxe(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=hxe(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 v0=N((Aqe,tY)=>{"use strict";tY.exports=pxe;function pxe(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]{aY.exports=function(){for(var e=0;e{iY.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 h0=N((Sqe,lY)=>{var oY=bx();lY.exports=mxe;function mxe(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(oY(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";sY.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var cY=N((kqe,uY)=>{"use strict";uY.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var gY=N((Cqe,yY)=>{"use strict";var vY=$V(),hY=Dy(),yxe=yp(),gxe=v0(),dY=Hf(),e8=nY(),bxe=h0(),xxe=fY(),_xe=bx(),pY=cY(),wxe=1073741824;yY.exports=function(r,t){t||(t={}),r=bxe(r,"float64"),t=dY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=e8(t.maxDepth,255),n=e8(t.bounds,gxe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=mY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(_xe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>wxe){for(let J=0;JLe||F>Ue||P=R||oe===se)return;let Ee=s[j];se===void 0&&(se=Ee.length);for(let de=oe;de=x&&qe<=E&&Je>=A&&Je<=M&&H.push(ne)}let Ve=f[j],we=Ve[oe*4+0],fr=Ve[oe*4+1],Ie=Ve[oe*4+2],He=Ve[oe*4+3],vr=ae(Ve,oe+1),$e=J*.5,ee=j+1;V(re,Q,$e,ee,we,fr||Ie||He||vr),V(re,Q+$e,$e,ee,fr,Ie||He||vr),V(re+$e,Q,$e,ee,Ie,He||vr),V(re+$e,Q+$e,$e,ee,He,vr)}function ae(re,Q){let J=null,j=0;for(;J===null;)if(J=re[Q*4+j],j++,j>re.length)return null;return J}return H}function y(b,T,_,x,A){let E=[];for(let M=0;M{"use strict";bY.exports=gY()});var t8=N((Dqe,xY)=>{xY.exports=Axe;function Axe(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(xx,"__esModule",{value:!0});var Txe=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,a8=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}},Mxe=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}]},_Y=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)},Sxe=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=_Y(1,0,E,M),O=_Y(E,M,k,F);return s===0&&O>0&&(O-=Fy),s===1&&O<0&&(O+=Fy),[x,A,P,O]},Exe=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=Sxe(t,a,n,i,o,l,c,d,y,m,b,T),A=Txe(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";MY.exports=Cxe;var kxe=AY();function Cxe(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 _x(e,r,t,a){return["C",e,r,t,a,t,a]}function TY(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 n8=N((Rqe,EY)=>{"use strict";EY.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 wx=N((qqe,kY)=>{"use strict";kY.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((Pqe,CY)=>{"use strict";var Lxe=wx();CY.exports=function(){return Lxe()&&!!Symbol.toStringTag}});var i8=N((Nqe,LY)=>{"use strict";LY.exports=Object});var FY=N((Iqe,DY)=>{"use strict";DY.exports=Error});var qY=N((Oqe,RY)=>{"use strict";RY.exports=EvalError});var NY=N((Bqe,PY)=>{"use strict";PY.exports=RangeError});var OY=N((zqe,IY)=>{"use strict";IY.exports=ReferenceError});var o8=N((Gqe,BY)=>{"use strict";BY.exports=SyntaxError});var gp=N((Uqe,zY)=>{"use strict";zY.exports=TypeError});var UY=N((Hqe,GY)=>{"use strict";GY.exports=URIError});var VY=N((Vqe,HY)=>{"use strict";HY.exports=Math.abs});var WY=N((Yqe,YY)=>{"use strict";YY.exports=Math.floor});var XY=N((Wqe,jY)=>{"use strict";jY.exports=Math.max});var JY=N((jqe,ZY)=>{"use strict";ZY.exports=Math.min});var QY=N((Xqe,$Y)=>{"use strict";$Y.exports=Math.pow});var eW=N((Zqe,KY)=>{"use strict";KY.exports=Math.round});var tW=N((Jqe,rW)=>{"use strict";rW.exports=Number.isNaN||function(r){return r!==r}});var nW=N(($qe,aW)=>{"use strict";var Dxe=tW();aW.exports=function(r){return Dxe(r)||r===0?r:r<0?-1:1}});var oW=N((Qqe,iW)=>{"use strict";iW.exports=Object.getOwnPropertyDescriptor});var d0=N((Kqe,lW)=>{"use strict";var Ax=oW();if(Ax)try{Ax([],"length")}catch(e){Ax=null}lW.exports=Ax});var qy=N((ePe,sW)=>{"use strict";var Tx=Object.defineProperty||!1;if(Tx)try{Tx({},"a",{value:1})}catch(e){Tx=!1}sW.exports=Tx});var cW=N((rPe,uW)=>{"use strict";var fW=typeof Symbol!="undefined"&&Symbol,Fxe=wx();uW.exports=function(){return typeof fW!="function"||typeof Symbol!="function"||typeof fW("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Fxe()}});var l8=N((tPe,vW)=>{"use strict";vW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var s8=N((aPe,hW)=>{"use strict";var Rxe=i8();hW.exports=Rxe.getPrototypeOf||null});var mW=N((nPe,pW)=>{"use strict";var qxe="Function.prototype.bind called on incompatible ",Pxe=Object.prototype.toString,Nxe=Math.max,Ixe="[object Function]",dW=function(r,t){for(var a=[],n=0;n{"use strict";var zxe=mW();yW.exports=Function.prototype.bind||zxe});var Mx=N((oPe,gW)=>{"use strict";gW.exports=Function.prototype.call});var f8=N((lPe,bW)=>{"use strict";bW.exports=Function.prototype.apply});var _W=N((sPe,xW)=>{"use strict";xW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var AW=N((fPe,wW)=>{"use strict";var Gxe=bp(),Uxe=f8(),Hxe=Mx(),Vxe=_W();wW.exports=Vxe||Gxe.call(Hxe,Uxe)});var MW=N((uPe,TW)=>{"use strict";var Yxe=bp(),Wxe=gp(),jxe=Mx(),Xxe=AW();TW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Wxe("a function is required");return Xxe(Yxe,jxe,r)}});var DW=N((cPe,LW)=>{"use strict";var Zxe=MW(),SW=d0(),kW;try{kW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var u8=!!kW&&SW&&SW(Object.prototype,"__proto__"),CW=Object,EW=CW.getPrototypeOf;LW.exports=u8&&typeof u8.get=="function"?Zxe([u8.get]):typeof EW=="function"?function(r){return EW(r==null?r:CW(r))}:!1});var NW=N((vPe,PW)=>{"use strict";var FW=l8(),RW=s8(),qW=DW();PW.exports=FW?function(r){return FW(r)}:RW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return RW(r)}:qW?function(r){return qW(r)}:null});var OW=N((hPe,IW)=>{"use strict";var Jxe=Function.prototype.call,$xe=Object.prototype.hasOwnProperty,Qxe=bp();IW.exports=Qxe.call(Jxe,$xe)});var kx=N((dPe,VW)=>{"use strict";var Fa,Kxe=i8(),e_e=FY(),r_e=qY(),t_e=NY(),a_e=OY(),Ap=o8(),wp=gp(),n_e=UY(),i_e=VY(),o_e=WY(),l_e=XY(),s_e=JY(),f_e=QY(),u_e=eW(),c_e=nW(),UW=Function,c8=function(e){try{return UW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Py=d0(),v_e=qy(),v8=function(){throw new wp},h_e=Py?function(){try{return arguments.callee,v8}catch(e){try{return Py(arguments,"callee").get}catch(r){return v8}}}():v8,xp=cW()(),Vi=NW(),d_e=s8(),p_e=l8(),HW=f8(),Ny=Mx(),_p={},m_e=typeof Uint8Array=="undefined"||!Vi?Fa:Vi(Uint8Array),p0={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Fa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Fa:ArrayBuffer,"%ArrayIteratorPrototype%":xp&&Vi?Vi([][Symbol.iterator]()):Fa,"%AsyncFromSyncIteratorPrototype%":Fa,"%AsyncFunction%":_p,"%AsyncGenerator%":_p,"%AsyncGeneratorFunction%":_p,"%AsyncIteratorPrototype%":_p,"%Atomics%":typeof Atomics=="undefined"?Fa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Fa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Fa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Fa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Fa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e_e,"%eval%":eval,"%EvalError%":r_e,"%Float16Array%":typeof Float16Array=="undefined"?Fa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Fa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Fa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Fa:FinalizationRegistry,"%Function%":UW,"%GeneratorFunction%":_p,"%Int8Array%":typeof Int8Array=="undefined"?Fa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Fa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Fa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xp&&Vi?Vi(Vi([][Symbol.iterator]())):Fa,"%JSON%":typeof JSON=="object"?JSON:Fa,"%Map%":typeof Map=="undefined"?Fa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!xp||!Vi?Fa:Vi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Kxe,"%Object.getOwnPropertyDescriptor%":Py,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Fa:Promise,"%Proxy%":typeof Proxy=="undefined"?Fa:Proxy,"%RangeError%":t_e,"%ReferenceError%":a_e,"%Reflect%":typeof Reflect=="undefined"?Fa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Fa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!xp||!Vi?Fa:Vi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Fa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xp&&Vi?Vi(""[Symbol.iterator]()):Fa,"%Symbol%":xp?Symbol:Fa,"%SyntaxError%":Ap,"%ThrowTypeError%":h_e,"%TypedArray%":m_e,"%TypeError%":wp,"%Uint8Array%":typeof Uint8Array=="undefined"?Fa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Fa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Fa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Fa:Uint32Array,"%URIError%":n_e,"%WeakMap%":typeof WeakMap=="undefined"?Fa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Fa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Fa:WeakSet,"%Function.prototype.call%":Ny,"%Function.prototype.apply%":HW,"%Object.defineProperty%":v_e,"%Object.getPrototypeOf%":d_e,"%Math.abs%":i_e,"%Math.floor%":o_e,"%Math.max%":l_e,"%Math.min%":s_e,"%Math.pow%":f_e,"%Math.round%":u_e,"%Math.sign%":c_e,"%Reflect.getPrototypeOf%":p_e};if(Vi)try{null.error}catch(e){BW=Vi(Vi(e)),p0["%Error.prototype%"]=BW}var BW,y_e=function e(r){var t;if(r==="%AsyncFunction%")t=c8("async function () {}");else if(r==="%GeneratorFunction%")t=c8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=c8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Vi&&(t=Vi(n.prototype))}return p0[r]=t,t},zW={__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=bp(),Sx=OW(),g_e=Iy.call(Ny,Array.prototype.concat),b_e=Iy.call(HW,Array.prototype.splice),GW=Iy.call(Ny,String.prototype.replace),Ex=Iy.call(Ny,String.prototype.slice),x_e=Iy.call(Ny,RegExp.prototype.exec),__e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w_e=/\\(\\)?/g,A_e=function(r){var t=Ex(r,0,1),a=Ex(r,-1);if(t==="%"&&a!=="%")throw new Ap("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new Ap("invalid intrinsic syntax, expected opening `%`");var n=[];return GW(r,__e,function(i,o,l,s){n[n.length]=l?GW(s,w_e,"$1"):o||i}),n},T_e=function(r,t){var a=r,n;if(Sx(zW,a)&&(n=zW[a],a="%"+n[0]+"%"),Sx(p0,a)){var i=p0[a];if(i===_p&&(i=y_e(a)),typeof i=="undefined"&&!t)throw new wp("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new Ap("intrinsic "+r+" does not exist!")};VW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new wp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new wp('"allowMissing" argument must be a boolean');if(x_e(/^%?[^%]*%?$/,r)===null)throw new Ap("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=A_e(r),n=a.length>0?a[0]:"",i=T_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],b_e(a,g_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=Sx(l,v),l=l[v];c&&!s&&(p0[o]=l)}}return l}});var XW=N((pPe,jW)=>{"use strict";var YW=qy(),M_e=o8(),Tp=gp(),WW=d0();jW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Tp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Tp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tp("`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=!!WW&&WW(r,t);if(YW)YW(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 M_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var d8=N((mPe,JW)=>{"use strict";var h8=qy(),ZW=function(){return!!h8};ZW.hasArrayLengthDefineBug=function(){if(!h8)return null;try{return h8([],"length",{value:1}).length!==1}catch(r){return!0}};JW.exports=ZW});var rj=N((yPe,ej)=>{"use strict";var S_e=kx(),$W=XW(),E_e=d8()(),QW=d0(),KW=gp(),k_e=S_e("%Math.floor%");ej.exports=function(r,t){if(typeof r!="function")throw new KW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||k_e(t)!==t)throw new KW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&QW){var o=QW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(E_e?$W(r,"length",t,!0,!0):$W(r,"length",t)),r}});var Oy=N((gPe,Cx)=>{"use strict";var p8=bp(),Lx=kx(),C_e=rj(),L_e=gp(),nj=Lx("%Function.prototype.apply%"),ij=Lx("%Function.prototype.call%"),oj=Lx("%Reflect.apply%",!0)||p8.call(ij,nj),tj=qy(),D_e=Lx("%Math.max%");Cx.exports=function(r){if(typeof r!="function")throw new L_e("a function is required");var t=oj(p8,ij,arguments);return C_e(t,1+D_e(0,r.length-(arguments.length-1)),!0)};var aj=function(){return oj(p8,nj,arguments)};tj?tj(Cx.exports,"apply",{value:aj}):Cx.exports.apply=aj});var Mp=N((bPe,fj)=>{"use strict";var lj=kx(),sj=Oy(),F_e=sj(lj("String.prototype.indexOf"));fj.exports=function(r,t){var a=lj(r,!!t);return typeof a=="function"&&F_e(r,".prototype.")>-1?sj(a):a}});var vj=N((xPe,cj)=>{"use strict";var R_e=Ry()(),q_e=Mp(),m8=q_e("Object.prototype.toString"),Dx=function(r){return R_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:m8(r)==="[object Arguments]"},uj=function(r){return Dx(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&m8(r)!=="[object Array]"&&m8(r.callee)==="[object Function]"},P_e=function(){return Dx(arguments)}();Dx.isLegacyArguments=uj;cj.exports=P_e?Dx:uj});var pj=N((_Pe,dj)=>{"use strict";var N_e=Object.prototype.toString,I_e=Function.prototype.toString,O_e=/^\s*(?:function)?\*/,hj=Ry()(),y8=Object.getPrototypeOf,B_e=function(){if(!hj)return!1;try{return Function("return function*() {}")()}catch(e){}},g8;dj.exports=function(r){if(typeof r!="function")return!1;if(O_e.test(I_e.call(r)))return!0;if(!hj){var t=N_e.call(r);return t==="[object GeneratorFunction]"}if(!y8)return!1;if(typeof g8=="undefined"){var a=B_e();g8=a?y8(a):!1}return y8(r)===g8}});var bj=N((wPe,gj)=>{"use strict";var yj=Function.prototype.toString,Sp=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x8,Fx;if(typeof Sp=="function"&&typeof Object.defineProperty=="function")try{x8=Object.defineProperty({},"length",{get:function(){throw Fx}}),Fx={},Sp(function(){throw 42},null,x8)}catch(e){e!==Fx&&(Sp=null)}else Sp=null;var z_e=/^\s*class\b/,_8=function(r){try{var t=yj.call(r);return z_e.test(t)}catch(a){return!1}},b8=function(r){try{return _8(r)?!1:(yj.call(r),!0)}catch(t){return!1}},Rx=Object.prototype.toString,G_e="[object Object]",U_e="[object Function]",H_e="[object GeneratorFunction]",V_e="[object HTMLAllCollection]",Y_e="[object HTML document.all class]",W_e="[object HTMLCollection]",j_e=typeof Symbol=="function"&&!!Symbol.toStringTag,X_e=!(0 in[,]),w8=function(){return!1};typeof document=="object"&&(mj=document.all,Rx.call(mj)===Rx.call(document.all)&&(w8=function(r){if((X_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Rx.call(r);return(t===V_e||t===Y_e||t===W_e||t===G_e)&&r("")==null}catch(a){}return!1}));var mj;gj.exports=Sp?function(r){if(w8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Sp(r,null,x8)}catch(t){if(t!==Fx)return!1}return!_8(r)&&b8(r)}:function(r){if(w8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(j_e)return b8(r);if(_8(r))return!1;var t=Rx.call(r);return t!==U_e&&t!==H_e&&!/^\[object HTML/.test(t)?!1:b8(r)}});var A8=N((APe,_j)=>{"use strict";var Z_e=bj(),J_e=Object.prototype.toString,xj=Object.prototype.hasOwnProperty,$_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),J_e.call(r)==="[object Array]"?$_e(r,t,n):typeof r=="string"?Q_e(r,t,n):K_e(r,t,n)};_j.exports=e5e});var M8=N((TPe,wj)=>{"use strict";var T8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r5e=typeof globalThis=="undefined"?window:globalThis;wj.exports=function(){for(var r=[],t=0;t{"use strict";var Px=A8(),t5e=M8(),Aj=Oy(),k8=Mp(),qx=d0(),a5e=k8("Object.prototype.toString"),Mj=Ry()(),Tj=typeof globalThis=="undefined"?window:globalThis,E8=t5e(),C8=k8("String.prototype.slice"),S8=Object.getPrototypeOf,n5e=k8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:o5e(r)}return qx?i5e(r):null}});var Rj=N((SPe,Fj)=>{"use strict";var kj=A8(),l5e=M8(),D8=Mp(),s5e=D8("Object.prototype.toString"),Cj=Ry()(),Ix=d0(),f5e=typeof globalThis=="undefined"?window:globalThis,Lj=l5e(),u5e=D8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Ix?v5e(r):!1}});var jj=N(Ra=>{"use strict";var h5e=vj(),d5e=pj(),Qs=Ej(),qj=Rj();function Ep(e){return e.call.bind(e)}var Pj=typeof BigInt!="undefined",Nj=typeof Symbol!="undefined",is=Ep(Object.prototype.toString),p5e=Ep(Number.prototype.valueOf),m5e=Ep(String.prototype.valueOf),y5e=Ep(Boolean.prototype.valueOf);Pj&&(Ij=Ep(BigInt.prototype.valueOf));var Ij;Nj&&(Oj=Ep(Symbol.prototype.valueOf));var Oj;function zy(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Ra.isArgumentsObject=h5e;Ra.isGeneratorFunction=d5e;Ra.isTypedArray=qj;function g5e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Ra.isPromise=g5e;function b5e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):qj(e)||zj(e)}Ra.isArrayBufferView=b5e;function x5e(e){return Qs(e)==="Uint8Array"}Ra.isUint8Array=x5e;function _5e(e){return Qs(e)==="Uint8ClampedArray"}Ra.isUint8ClampedArray=_5e;function w5e(e){return Qs(e)==="Uint16Array"}Ra.isUint16Array=w5e;function A5e(e){return Qs(e)==="Uint32Array"}Ra.isUint32Array=A5e;function T5e(e){return Qs(e)==="Int8Array"}Ra.isInt8Array=T5e;function M5e(e){return Qs(e)==="Int16Array"}Ra.isInt16Array=M5e;function S5e(e){return Qs(e)==="Int32Array"}Ra.isInt32Array=S5e;function E5e(e){return Qs(e)==="Float32Array"}Ra.isFloat32Array=E5e;function k5e(e){return Qs(e)==="Float64Array"}Ra.isFloat64Array=k5e;function C5e(e){return Qs(e)==="BigInt64Array"}Ra.isBigInt64Array=C5e;function L5e(e){return Qs(e)==="BigUint64Array"}Ra.isBigUint64Array=L5e;function Ox(e){return is(e)==="[object Map]"}Ox.working=typeof Map!="undefined"&&Ox(new Map);function D5e(e){return typeof Map=="undefined"?!1:Ox.working?Ox(e):e instanceof Map}Ra.isMap=D5e;function Bx(e){return is(e)==="[object Set]"}Bx.working=typeof Set!="undefined"&&Bx(new Set);function F5e(e){return typeof Set=="undefined"?!1:Bx.working?Bx(e):e instanceof Set}Ra.isSet=F5e;function zx(e){return is(e)==="[object WeakMap]"}zx.working=typeof WeakMap!="undefined"&&zx(new WeakMap);function R5e(e){return typeof WeakMap=="undefined"?!1:zx.working?zx(e):e instanceof WeakMap}Ra.isWeakMap=R5e;function R8(e){return is(e)==="[object WeakSet]"}R8.working=typeof WeakSet!="undefined"&&R8(new WeakSet);function q5e(e){return R8(e)}Ra.isWeakSet=q5e;function Gx(e){return is(e)==="[object ArrayBuffer]"}Gx.working=typeof ArrayBuffer!="undefined"&&Gx(new ArrayBuffer);function Bj(e){return typeof ArrayBuffer=="undefined"?!1:Gx.working?Gx(e):e instanceof ArrayBuffer}Ra.isArrayBuffer=Bj;function Ux(e){return is(e)==="[object DataView]"}Ux.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ux(new DataView(new ArrayBuffer(1),0,1));function zj(e){return typeof DataView=="undefined"?!1:Ux.working?Ux(e):e instanceof DataView}Ra.isDataView=zj;var F8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function By(e){return is(e)==="[object SharedArrayBuffer]"}function Gj(e){return typeof F8=="undefined"?!1:(typeof By.working=="undefined"&&(By.working=By(new F8)),By.working?By(e):e instanceof F8)}Ra.isSharedArrayBuffer=Gj;function P5e(e){return is(e)==="[object AsyncFunction]"}Ra.isAsyncFunction=P5e;function N5e(e){return is(e)==="[object Map Iterator]"}Ra.isMapIterator=N5e;function I5e(e){return is(e)==="[object Set Iterator]"}Ra.isSetIterator=I5e;function O5e(e){return is(e)==="[object Generator]"}Ra.isGeneratorObject=O5e;function B5e(e){return is(e)==="[object WebAssembly.Module]"}Ra.isWebAssemblyCompiledModule=B5e;function Uj(e){return zy(e,p5e)}Ra.isNumberObject=Uj;function Hj(e){return zy(e,m5e)}Ra.isStringObject=Hj;function Vj(e){return zy(e,y5e)}Ra.isBooleanObject=Vj;function Yj(e){return Pj&&zy(e,Ij)}Ra.isBigIntObject=Yj;function Wj(e){return Nj&&zy(e,Oj)}Ra.isSymbolObject=Wj;function z5e(e){return Uj(e)||Hj(e)||Vj(e)||Yj(e)||Wj(e)}Ra.isBoxedPrimitive=z5e;function G5e(e){return typeof Uint8Array!="undefined"&&(Bj(e)||Gj(e))}Ra.isAnyArrayBuffer=G5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ra,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Zj=N((kPe,Xj)=>{Xj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Jj=N((CPe,q8)=>{typeof Object.create=="function"?q8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:q8.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 Cp=N(qa=>{var $j=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]),O8(r)?t.showHidden=r:r&&qa._extend(t,r),y0(t.showHidden)&&(t.showHidden=!1),y0(t.depth)&&(t.depth=2),y0(t.colors)&&(t.colors=!1),y0(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=H5e),Wx(t,e,t.depth)}qa.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 H5e(e,r){var t=gv.styles[r];return t?"\x1B["+gv.colors[t][0]+"m"+e+"\x1B["+gv.colors[t][1]+"m":e}function V5e(e,r){return e}function Y5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Wx(e,r,t){if(e.customInspect&&r&&Yx(r.inspect)&&r.inspect!==qa.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Zx(a)||(a=Wx(e,a,t)),a}var n=W5e(e,r);if(n)return n;var i=Object.keys(r),o=Y5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Uy(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P8(r);if(i.length===0){if(Yx(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(jx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Uy(r))return P8(r)}var s="",f=!1,u=["{","}"];if(Kj(r)&&(f=!0,u=["[","]"]),Yx(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Gy(r)&&(s=" "+RegExp.prototype.toString.call(r)),jx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Uy(r)&&(s=" "+P8(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 I8(e,r,t,o,d,f)}),e.seen.pop(),X5e(v,s,u)}function W5e(e,r){if(y0(r))return e.stylize("undefined","undefined");if(Zx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(eX(r))return e.stylize(""+r,"number");if(O8(r))return e.stylize(""+r,"boolean");if(Xx(r))return e.stylize("null","null")}function P8(e){return"["+Error.prototype.toString.call(e)+"]"}function j5e(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=` @@ -27,8 +27,8 @@ `))):l=e.stylize("[Circular]","special")),y0(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 X5e(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]}qa.types=jj();function Kj(e){return Array.isArray(e)}qa.isArray=Kj;function O8(e){return typeof e=="boolean"}qa.isBoolean=O8;function Xx(e){return e===null}qa.isNull=Xx;function Z5e(e){return e==null}qa.isNullOrUndefined=Z5e;function eX(e){return typeof e=="number"}qa.isNumber=eX;function Zx(e){return typeof e=="string"}qa.isString=Zx;function J5e(e){return typeof e=="symbol"}qa.isSymbol=J5e;function y0(e){return e===void 0}qa.isUndefined=y0;function zy(e){return kp(e)&&B8(e)==="[object RegExp]"}qa.isRegExp=zy;qa.types.isRegExp=zy;function kp(e){return typeof e=="object"&&e!==null}qa.isObject=kp;function jx(e){return kp(e)&&B8(e)==="[object Date]"}qa.isDate=jx;qa.types.isDate=jx;function Gy(e){return kp(e)&&(B8(e)==="[object Error]"||e instanceof Error)}qa.isError=Gy;qa.types.isNativeError=Gy;function Yx(e){return typeof e=="function"}qa.isFunction=Yx;function $5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}qa.isPrimitive=$5e;qa.isBuffer=Zj();function B8(e){return Object.prototype.toString.call(e)}function N8(e){return e<10?"0"+e.toString(10):e.toString(10)}var Q5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K5e(){var e=new Date,r=[N8(e.getHours()),N8(e.getMinutes()),N8(e.getSeconds())].join(":");return[e.getDate(),Q5e[e.getMonth()],r].join(" ")}qa.log=function(){console.log("%s - %s",K5e(),qa.format.apply(qa,arguments))};qa.inherits=Jj();qa._extend=function(e,r){if(!r||!kp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function rX(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var m0=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;qa.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(m0&&r[m0]){var t=r[m0];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,m0,{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 tX(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 c4e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function v4e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function h4e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Uy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Uy("ERR_INVALID_ARG_TYPE",function(e,r,t){Lp===void 0&&(Lp=$x()),Lp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&c4e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(v4e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(aX(r,"type"));else{var i=h4e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(aX(r,"type"))}return n+=". Received type ".concat(bv(t)),n},TypeError);Uy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";z8===void 0&&(z8=Cp());var a=z8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Uy("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);Uy("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);iX.exports.codes=nX});var pX=N((FPe,dX)=>{"use strict";function oX(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 lX(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function T4e(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="",Hy="",Vy="",oo="",g0={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:"},M4e=10;function uX(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 Yy(e){return Y8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=Yy(e),f=s.split(` -`),u=Yy(r).split(` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}qa.types=jj();function Kj(e){return Array.isArray(e)}qa.isArray=Kj;function O8(e){return typeof e=="boolean"}qa.isBoolean=O8;function Xx(e){return e===null}qa.isNull=Xx;function Z5e(e){return e==null}qa.isNullOrUndefined=Z5e;function eX(e){return typeof e=="number"}qa.isNumber=eX;function Zx(e){return typeof e=="string"}qa.isString=Zx;function J5e(e){return typeof e=="symbol"}qa.isSymbol=J5e;function y0(e){return e===void 0}qa.isUndefined=y0;function Gy(e){return kp(e)&&B8(e)==="[object RegExp]"}qa.isRegExp=Gy;qa.types.isRegExp=Gy;function kp(e){return typeof e=="object"&&e!==null}qa.isObject=kp;function jx(e){return kp(e)&&B8(e)==="[object Date]"}qa.isDate=jx;qa.types.isDate=jx;function Uy(e){return kp(e)&&(B8(e)==="[object Error]"||e instanceof Error)}qa.isError=Uy;qa.types.isNativeError=Uy;function Yx(e){return typeof e=="function"}qa.isFunction=Yx;function $5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}qa.isPrimitive=$5e;qa.isBuffer=Zj();function B8(e){return Object.prototype.toString.call(e)}function N8(e){return e<10?"0"+e.toString(10):e.toString(10)}var Q5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K5e(){var e=new Date,r=[N8(e.getHours()),N8(e.getMinutes()),N8(e.getSeconds())].join(":");return[e.getDate(),Q5e[e.getMonth()],r].join(" ")}qa.log=function(){console.log("%s - %s",K5e(),qa.format.apply(qa,arguments))};qa.inherits=Jj();qa._extend=function(e,r){if(!r||!kp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function rX(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var m0=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;qa.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(m0&&r[m0]){var t=r[m0];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,m0,{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 tX(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 c4e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function v4e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function h4e(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){Lp===void 0&&(Lp=$x()),Lp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&c4e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(v4e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(aX(r,"type"));else{var i=h4e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(aX(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";z8===void 0&&(z8=Cp());var a=z8.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);iX.exports.codes=nX});var pX=N((FPe,dX)=>{"use strict";function oX(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 lX(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function T4e(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="",oo="",g0={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:"},M4e=10;function uX(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 Y8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S4e(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"&&tl(e)==="object"&&tl(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<=M4e){if((tl(e)!=="object"||e===null)&&(tl(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(g0[t],` `)+"".concat(f[0]," !== ").concat(u[0],` @@ -42,39 +42,39 @@ `)}c>3&&(o=` `.concat(Ks,"...").concat(oo).concat(o),l=!0),a!==""&&(o=` `.concat(a).concat(o),a="");var _=0,x=g0[t]+` -`.concat(Hy,"+ actual").concat(oo," ").concat(Vy,"- expected").concat(oo),A=" ".concat(Ks,"...").concat(oo," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` +`.concat(Vy,"+ actual").concat(oo," ").concat(Yy,"- expected").concat(oo),A=" ".concat(Ks,"...").concat(oo," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(oo),l=!0):E>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,a+=` -`.concat(Vy,"-").concat(oo," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` +`.concat(Yy,"-").concat(oo," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(oo),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Hy,"+").concat(oo," ").concat(f[c]),_++;else{var M=u[c],k=f[c],F=k!==M&&(!fX(k,",")||k.slice(0,-1)!==M);F&&fX(M,",")&&M.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` +`.concat(Vy,"+").concat(oo," ").concat(f[c]),_++;else{var M=u[c],k=f[c],F=k!==M&&(!fX(k,",")||k.slice(0,-1)!==M);F&&fX(M,",")&&M.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(oo),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Hy,"+").concat(oo," ").concat(k),a+=` -`.concat(Vy,"-").concat(oo," ").concat(M),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` +`.concat(Vy,"+").concat(oo," ").concat(k),a+=` +`.concat(Yy,"-").concat(oo," ").concat(M),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` `.concat(k),_++))}if(_>20&&c30)for(d[26]="".concat(Ks,"...").concat(oo);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=Yy(f),y="",m=g0[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(g0[l],` +`))}else{var p=Wy(f),y="",m=g0[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(g0[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(Yy(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),"..."))):(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,` should equal -`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(H8(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(H8(i),s),i.stack,i.name="AssertionError",vX(i)}return m4e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return Y8(this,lX(lX({},o),{},{customInspect:!1,depth:0}))}}]),a}(V8(Error),Y8.custom);dX.exports=E4e});var W8=N((RPe,yX)=>{"use strict";var mX=Object.prototype.toString;yX.exports=function(r){var t=mX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&mX.call(r.callee)==="[object Function]"),a}});var SX=N((qPe,MX)=>{"use strict";var TX;Object.keys||(Xy=Object.prototype.hasOwnProperty,j8=Object.prototype.toString,gX=W8(),X8=Object.prototype.propertyIsEnumerable,bX=!X8.call({toString:null},"toString"),xX=X8.call(function(){},"prototype"),Zy=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Kx=function(e){var r=e.constructor;return r&&r.prototype===e},_X={$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},wX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!_X["$"+e]&&Xy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Kx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),AX=function(e){if(typeof window=="undefined"||!wX)return Kx(e);try{return Kx(e)}catch(r){return!1}},TX=function(r){var t=r!==null&&typeof r=="object",a=j8.call(r)==="[object Function]",n=gX(r),i=t&&j8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=xX&&a;if(i&&r.length>0&&!Xy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var k4e=Array.prototype.slice,C4e=W8(),EX=Object.keys,e_=EX?function(r){return EX(r)}:SX(),kX=Object.keys;e_.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 C4e(a)?kX(k4e.call(a)):kX(a)})}else Object.keys=e_;return Object.keys||e_};CX.exports=e_});var PX=N((NPe,qX)=>{"use strict";var L4e=Z8(),FX=wx()(),RX=Mp(),LX=Object,D4e=RX("Array.prototype.push"),DX=RX("Object.prototype.propertyIsEnumerable"),F4e=FX?Object.getOwnPropertySymbols:null;qX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=LX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var J8=PX(),R4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var OX=function(e){return e!==e};BX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||OX(r)&&OX(t))}});var r_=N((BPe,zX)=>{"use strict";var P4e=$8();zX.exports=function(){return typeof Object.is=="function"?Object.is:P4e}});var Jy=N((zPe,VX)=>{"use strict";var N4e=Z8(),I4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",O4e=Object.prototype.toString,B4e=Array.prototype.concat,GX=Object.defineProperty,z4e=function(e){return typeof e=="function"&&O4e.call(e)==="[object Function]"},G4e=d8()(),UX=GX&&G4e,U4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!z4e(a)||!a())return}UX?GX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},HX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=N4e(r);I4e&&(a=B4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var H4e=r_(),V4e=Jy();YX.exports=function(){var r=H4e();return V4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var JX=N((UPe,ZX)=>{"use strict";var Y4e=Jy(),W4e=Iy(),j4e=$8(),jX=r_(),X4e=WX(),XX=W4e(jX(),Object);Y4e(XX,{getPolyfill:jX,implementation:j4e,shim:X4e});ZX.exports=XX});var Q8=N((HPe,$X)=>{"use strict";$X.exports=function(r){return r!==r}});var K8=N((VPe,QX)=>{"use strict";var Z4e=Q8();QX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Z4e}});var eZ=N((YPe,KX)=>{"use strict";var J4e=Jy(),$4e=K8();KX.exports=function(){var r=$4e();return J4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var nZ=N((WPe,aZ)=>{"use strict";var Q4e=Iy(),K4e=Jy(),ewe=Q8(),rZ=K8(),rwe=eZ(),tZ=Q4e(rZ(),Number);K4e(tZ,{getPolyfill:rZ,implementation:ewe,shim:rwe});aZ.exports=tZ});var TZ=N((jPe,AZ)=>{"use strict";function iZ(e,r){return iwe(e)||nwe(e,r)||awe(e,r)||twe()}function twe(){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 awe(e,r){if(e){if(typeof e=="string")return oZ(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 oZ(e,r)}}function oZ(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 n_(e){return Object.keys(e).filter(dwe).concat(o_(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function bZ(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 MZ(e,r){for(var t=0;t{"use strict";var mX=Object.prototype.toString;yX.exports=function(r){var t=mX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&mX.call(r.callee)==="[object Function]"),a}});var SX=N((qPe,MX)=>{"use strict";var TX;Object.keys||(Zy=Object.prototype.hasOwnProperty,j8=Object.prototype.toString,gX=W8(),X8=Object.prototype.propertyIsEnumerable,bX=!X8.call({toString:null},"toString"),xX=X8.call(function(){},"prototype"),Jy=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Kx=function(e){var r=e.constructor;return r&&r.prototype===e},_X={$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},wX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!_X["$"+e]&&Zy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Kx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),AX=function(e){if(typeof window=="undefined"||!wX)return Kx(e);try{return Kx(e)}catch(r){return!1}},TX=function(r){var t=r!==null&&typeof r=="object",a=j8.call(r)==="[object Function]",n=gX(r),i=t&&j8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=xX&&a;if(i&&r.length>0&&!Zy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var k4e=Array.prototype.slice,C4e=W8(),EX=Object.keys,e_=EX?function(r){return EX(r)}:SX(),kX=Object.keys;e_.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 C4e(a)?kX(k4e.call(a)):kX(a)})}else Object.keys=e_;return Object.keys||e_};CX.exports=e_});var PX=N((NPe,qX)=>{"use strict";var L4e=Z8(),FX=wx()(),RX=Mp(),LX=Object,D4e=RX("Array.prototype.push"),DX=RX("Object.prototype.propertyIsEnumerable"),F4e=FX?Object.getOwnPropertySymbols:null;qX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=LX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var J8=PX(),R4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var OX=function(e){return e!==e};BX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||OX(r)&&OX(t))}});var r_=N((BPe,zX)=>{"use strict";var P4e=$8();zX.exports=function(){return typeof Object.is=="function"?Object.is:P4e}});var $y=N((zPe,VX)=>{"use strict";var N4e=Z8(),I4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",O4e=Object.prototype.toString,B4e=Array.prototype.concat,GX=Object.defineProperty,z4e=function(e){return typeof e=="function"&&O4e.call(e)==="[object Function]"},G4e=d8()(),UX=GX&&G4e,U4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!z4e(a)||!a())return}UX?GX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},HX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=N4e(r);I4e&&(a=B4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var H4e=r_(),V4e=$y();YX.exports=function(){var r=H4e();return V4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var JX=N((UPe,ZX)=>{"use strict";var Y4e=$y(),W4e=Oy(),j4e=$8(),jX=r_(),X4e=WX(),XX=W4e(jX(),Object);Y4e(XX,{getPolyfill:jX,implementation:j4e,shim:X4e});ZX.exports=XX});var Q8=N((HPe,$X)=>{"use strict";$X.exports=function(r){return r!==r}});var K8=N((VPe,QX)=>{"use strict";var Z4e=Q8();QX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Z4e}});var eZ=N((YPe,KX)=>{"use strict";var J4e=$y(),$4e=K8();KX.exports=function(){var r=$4e();return J4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var nZ=N((WPe,aZ)=>{"use strict";var Q4e=Oy(),K4e=$y(),ewe=Q8(),rZ=K8(),rwe=eZ(),tZ=Q4e(rZ(),Number);K4e(tZ,{getPolyfill:rZ,implementation:ewe,shim:rwe});aZ.exports=tZ});var TZ=N((jPe,AZ)=>{"use strict";function iZ(e,r){return iwe(e)||nwe(e,r)||awe(e,r)||twe()}function twe(){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 awe(e,r){if(e){if(typeof e=="string")return oZ(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 oZ(e,r)}}function oZ(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 n_(e){return Object.keys(e).filter(dwe).concat(o_(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function bZ(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 MZ(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 zwe=um(),Gwe=t8(),Uwe=SY(),Hwe=n8(),HZ=$x();VZ.exports=Vwe;function Vwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(HZ(Hwe(e),"String is not an SVG path."),e=zwe(e)),HZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Gwe(e),e=Uwe(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 $Z=N((JPe,JZ)=>{var b0=Math.PI,WZ=ZZ(120);JZ.exports=Ywe;function Ywe(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=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=d_(f,u,d[1],d[2]);break;case"H":d=d_(f,u,d[1],u);break;case"V":d=d_(f,u,f,d[1]);break;case"Z":d=d_(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 d_(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 XZ(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=i7(e,r,-n);e=u.x,r=u.y,u=i7(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&&(_=_-b0*2),!o&&x>_&&(x=x-b0*2)}if(Math.abs(x-_)>WZ){var A=x,E=l,M=s;x=_+WZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=T+a*Math.sin(x);var k=XZ(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 Wwe=t8(),jwe=$Z(),Xwe={M:"moveTo",C:"bezierCurveTo"};QZ.exports=function(e,r){e.beginPath(),jwe(Wwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[Xwe[a]].apply(e,n)}),e.closePath()}});var aJ=N((QPe,tJ)=>{"use strict";var Zwe=Ly();tJ.exports=Jwe;var rg=1e20;function Jwe(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 $we=YZ(),Qwe=um(),Kwe=KZ(),eAe=n8(),rAe=aJ(),o7=document.createElement("canvas"),Oo=o7.getContext("2d");nJ.exports=tAe;function tAe(e,r){if(!eAe(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=o7.width=r.w||r.width||200,a=o7.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||$we(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Oo.fillStyle="black",Oo.fillRect(0,0,t,a),Oo.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?Oo.strokeStyle="white":Oo.strokeStyle="black",Oo.lineWidth=Math.abs(i)),Oo.translate(t*.5,a*.5),Oo.scale(s,s),aAe()){var f=new Path2D(e);Oo.fill(f),i&&Oo.stroke(f)}else{var u=Qwe(e);Kwe(Oo,u),Oo.fill(),i&&Oo.stroke()}Oo.setTransform(1,0,0,1,0,0);var c=rAe(Oo,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var p_;function aAe(){if(p_!=null)return p_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return p_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return p_=t&&t.data&&t.data[3]===255}});var l7=N((eNe,oJ)=>{"use strict";oJ.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 uJ=N((rNe,fJ)=>{"use strict";var lJ=l7();fJ.exports=nAe;var sJ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function nAe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),lJ[e])t=lJ[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(sJ[v]!==void 0)return sJ[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 vJ=N((tNe,cJ)=>{"use strict";var iAe=uJ();cJ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=iAe(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=oAe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function oAe(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 x0=N((aNe,hJ)=>{"use strict";var lAe=vJ(),m_=Ly(),sAe=bx();hJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=sAe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=lAe(r),r[0]/=255,r[1]/=255,r[2]/=255),fAe(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]=m_(Math.floor(r[0]*255),0,255),n[1]=m_(Math.floor(r[1]*255),0,255),n[2]=m_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:m_(Math.floor(r[3]*255),0,255)),n)};function fAe(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 _J=N((nNe,xJ)=>{"use strict";var gJ=ba(),uAe=Ls(),y_=x0(),g_=Cd(),cAe=Mf().defaultLine,dJ=Wo().isArrayOrTypedArray,s7=y_(cAe),bJ=1;function pJ(e,r){var t=e;return t[3]*=r,t}function mJ(e){if(gJ(e))return s7;var r=y_(e);return r.length?r:s7}function yJ(e){return gJ(e)?e:bJ}function vAe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=dJ(a),i=dJ(r),o=g_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=g_.makeColorScaleFuncFromTrace(e):s=mJ,n?f=function(p,y){return p[y]===void 0?s7:y_(s(p[y]))}:f=mJ,i?u=function(p,y){return p[y]===void 0?bJ:yJ(p[y])}:u=yJ,n||i)for(var d=0;d{"use strict";var x_=ba(),dAe=iJ(),b_=x0(),pAe=Bt(),qp=Ur(),jn=qp.isArrayOrTypedArray,Fp=Ha(),wJ=kn(),AJ=_J().formatColor,Rp=qi(),mAe=V4(),u7=yx(),tg=mp(),yAe=od().DESELECTDIM,TJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},gAe=Pu().appendArrayPointValue;function bAe(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(Rp.hasText(r)&&(a.text=DJ(e,r),a.textSel=SJ(e,r,r.selected),a.textUnsel=SJ(e,r,r.unselected)),Rp.hasMarkers(r)&&(a.marker=v7(e,r),a.markerSel=c7(e,r,r.selected),a.markerUnsel=c7(e,r,r.unselected),!r.unselected&&jn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function v7(e,r){var t=r._length,a=r.marker,n={},i,o=jn(a.symbol),l=jn(a.angle),s=jn(a.color),f=jn(a.line.color),u=jn(a.opacity),c=jn(a.size),v=jn(a.line.width),d;if(o||(d=u7.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=AJ(a,a.opacity,t),b=AJ(a.line,a.opacity,t);if(!jn(b[0])){var T=b;for(b=Array(t),i=0;itg.TOO_MANY_POINTS||Rp.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=jn(f)?f.length>1?f[o]:f[0]:f,p=TJ[v],y=TJ[d],m=u?u/.8+1:0,b=-y*m-y*.5;i.offset[o]=[p*m/c,b/c]}}return i}FJ.exports={style:bAe,markerStyle:v7,markerSelection:c7,linePositions:_Ae,errorBarPositions:wAe,textPosition:AAe}});var qJ=N((oNe,RJ)=>{"use strict";var __=Ur();RJ.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(){__.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=__.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 TAe=r8(),Pp=Ur(),PJ=kn(),MAe=qd().findExtremes,NJ=S6(),h7=ep(),SAe=h7.calcMarkerSize,EAe=h7.calcAxisExpansion,kAe=h7.setFirstScatter,CAe=fy(),Np=ag(),LAe=qJ(),IJ=ri().BADNUM,DAe=mp().TOO_MANY_POINTS;BJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=PJ.getFromId(r,t.xaxis,"x"),i=t._yA=PJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=DAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=NJ(t,n,"x",v),y=NJ(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&&Pp.extendFlat(o.line,Np.linePositions(e,t,a)),o.errorX||o.errorY){var l=Np.errorBarPositions(e,t,a,n,i);o.errorX&&Pp.extendFlat(o.errorX,l.x),o.errorY&&Pp.extendFlat(o.errorY,l.y)}return o.text&&(Pp.extendFlat(o.text,{positions:a},Np.textPosition(e,t,o.text,o.marker)),Pp.extendFlat(o.textSel,{positions:a},Np.textPosition(e,t,o.text,o.markerSel)),Pp.extendFlat(o.textUnsel,{positions:a},Np.textPosition(e,t,o.text,o.markerUnsel))),o}});var d7=N((sNe,UJ)=>{"use strict";var GJ=Ur(),RAe=ha(),qAe=od().DESELECTDIM;function PAe(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=GJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,y=u.color,m=s.color,b=GJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var HJ=qi(),NAe=d7().styleTextSelection;VJ.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=HJ.hasText(l),y=HJ.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 IAe=JT();WJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:my(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mx(),supplyDefaults:jV(),crossTraceDefaults:M6(),colorbar:Rb(),formatLabels:ZV(),calc:zJ(),hoverPoints:IAe.hoverPoints,selectPoints:YJ(),meta:{}}});var ZJ=N((cNe,A_)=>{"use strict";var w_=Ly();A_.exports=XJ;A_.exports.to=XJ;A_.exports.from=OAe;function XJ(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=w_(t,0,255)&255,a=w_(a,0,255)&255,n=w_(n,0,255)&255,i=w_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function OAe(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((vNe,$J)=>{"use strict";var JJ=Object.getOwnPropertySymbols,BAe=Object.prototype.hasOwnProperty,zAe=Object.prototype.propertyIsEnumerable;function GAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function UAe(){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}}$J.exports=UAe()?Object.assign:function(e,r){for(var t,a=GAe(e),n,i=1;i{QJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";e$.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";r$.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var T_=N((mNe,Ip)=>{"use strict";Ip.exports=ng;Ip.exports.float32=Ip.exports.float=ng;Ip.exports.fract32=Ip.exports.fract=HAe;var a$=new Float32Array(1);function HAe(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=ng(e));for(var t=0,a=r.length;t{"use strict";function VAe(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 YAe(e,r){return XAe(e)||VAe(e,r)||i$(e,r)||$Ae()}function WAe(e){return jAe(e)||ZAe(e)||i$(e)||JAe()}function jAe(e){if(Array.isArray(e))return m7(e)}function XAe(e){if(Array.isArray(e))return e}function ZAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i$(e,r){if(e){if(typeof e=="string")return m7(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 m7(e,r)}}function m7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t{"use strict";var zwe=um(),Gwe=t8(),Uwe=SY(),Hwe=n8(),HZ=$x();VZ.exports=Vwe;function Vwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(HZ(Hwe(e),"String is not an SVG path."),e=zwe(e)),HZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Gwe(e),e=Uwe(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 $Z=N((JPe,JZ)=>{var b0=Math.PI,WZ=ZZ(120);JZ.exports=Ywe;function Ywe(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=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=d_(f,u,d[1],d[2]);break;case"H":d=d_(f,u,d[1],u);break;case"V":d=d_(f,u,f,d[1]);break;case"Z":d=d_(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 d_(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 XZ(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=i7(e,r,-n);e=u.x,r=u.y,u=i7(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&&(_=_-b0*2),!o&&x>_&&(x=x-b0*2)}if(Math.abs(x-_)>WZ){var A=x,E=l,M=s;x=_+WZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=T+a*Math.sin(x);var k=XZ(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 Wwe=t8(),jwe=$Z(),Xwe={M:"moveTo",C:"bezierCurveTo"};QZ.exports=function(e,r){e.beginPath(),jwe(Wwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[Xwe[a]].apply(e,n)}),e.closePath()}});var aJ=N((QPe,tJ)=>{"use strict";var Zwe=Dy();tJ.exports=Jwe;var tg=1e20;function Jwe(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 $we=YZ(),Qwe=um(),Kwe=KZ(),eAe=n8(),rAe=aJ(),o7=document.createElement("canvas"),Oo=o7.getContext("2d");nJ.exports=tAe;function tAe(e,r){if(!eAe(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=o7.width=r.w||r.width||200,a=o7.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||$we(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Oo.fillStyle="black",Oo.fillRect(0,0,t,a),Oo.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?Oo.strokeStyle="white":Oo.strokeStyle="black",Oo.lineWidth=Math.abs(i)),Oo.translate(t*.5,a*.5),Oo.scale(s,s),aAe()){var f=new Path2D(e);Oo.fill(f),i&&Oo.stroke(f)}else{var u=Qwe(e);Kwe(Oo,u),Oo.fill(),i&&Oo.stroke()}Oo.setTransform(1,0,0,1,0,0);var c=rAe(Oo,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var p_;function aAe(){if(p_!=null)return p_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return p_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return p_=t&&t.data&&t.data[3]===255}});var l7=N((eNe,oJ)=>{"use strict";oJ.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 uJ=N((rNe,fJ)=>{"use strict";var lJ=l7();fJ.exports=nAe;var sJ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function nAe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),lJ[e])t=lJ[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(sJ[v]!==void 0)return sJ[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 vJ=N((tNe,cJ)=>{"use strict";var iAe=uJ();cJ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=iAe(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=oAe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function oAe(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 x0=N((aNe,hJ)=>{"use strict";var lAe=vJ(),m_=Dy(),sAe=bx();hJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=sAe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=lAe(r),r[0]/=255,r[1]/=255,r[2]/=255),fAe(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]=m_(Math.floor(r[0]*255),0,255),n[1]=m_(Math.floor(r[1]*255),0,255),n[2]=m_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:m_(Math.floor(r[3]*255),0,255)),n)};function fAe(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 _J=N((nNe,xJ)=>{"use strict";var gJ=ba(),uAe=Ls(),y_=x0(),g_=Cd(),cAe=Mf().defaultLine,dJ=Wo().isArrayOrTypedArray,s7=y_(cAe),bJ=1;function pJ(e,r){var t=e;return t[3]*=r,t}function mJ(e){if(gJ(e))return s7;var r=y_(e);return r.length?r:s7}function yJ(e){return gJ(e)?e:bJ}function vAe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=dJ(a),i=dJ(r),o=g_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=g_.makeColorScaleFuncFromTrace(e):s=mJ,n?f=function(p,y){return p[y]===void 0?s7:y_(s(p[y]))}:f=mJ,i?u=function(p,y){return p[y]===void 0?bJ:yJ(p[y])}:u=yJ,n||i)for(var d=0;d{"use strict";var x_=ba(),dAe=iJ(),b_=x0(),pAe=Bt(),qp=Ur(),jn=qp.isArrayOrTypedArray,Fp=Ha(),wJ=kn(),AJ=_J().formatColor,Rp=qi(),mAe=V4(),u7=yx(),ag=mp(),yAe=od().DESELECTDIM,TJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},gAe=Pu().appendArrayPointValue;function bAe(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(Rp.hasText(r)&&(a.text=DJ(e,r),a.textSel=SJ(e,r,r.selected),a.textUnsel=SJ(e,r,r.unselected)),Rp.hasMarkers(r)&&(a.marker=v7(e,r),a.markerSel=c7(e,r,r.selected),a.markerUnsel=c7(e,r,r.unselected),!r.unselected&&jn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function v7(e,r){var t=r._length,a=r.marker,n={},i,o=jn(a.symbol),l=jn(a.angle),s=jn(a.color),f=jn(a.line.color),u=jn(a.opacity),c=jn(a.size),v=jn(a.line.width),d;if(o||(d=u7.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=AJ(a,a.opacity,t),b=AJ(a.line,a.opacity,t);if(!jn(b[0])){var T=b;for(b=Array(t),i=0;iag.TOO_MANY_POINTS||Rp.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=jn(f)?f.length>1?f[o]:f[0]:f,p=TJ[v],y=TJ[d],m=u?u/.8+1:0,b=-y*m-y*.5;i.offset[o]=[p*m/c,b/c]}}return i}FJ.exports={style:bAe,markerStyle:v7,markerSelection:c7,linePositions:_Ae,errorBarPositions:wAe,textPosition:AAe}});var qJ=N((oNe,RJ)=>{"use strict";var __=Ur();RJ.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(){__.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=__.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 TAe=r8(),Pp=Ur(),PJ=kn(),MAe=qd().findExtremes,NJ=S6(),h7=ep(),SAe=h7.calcMarkerSize,EAe=h7.calcAxisExpansion,kAe=h7.setFirstScatter,CAe=uy(),Np=ng(),LAe=qJ(),IJ=ri().BADNUM,DAe=mp().TOO_MANY_POINTS;BJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=PJ.getFromId(r,t.xaxis,"x"),i=t._yA=PJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=DAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=NJ(t,n,"x",v),y=NJ(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&&Pp.extendFlat(o.line,Np.linePositions(e,t,a)),o.errorX||o.errorY){var l=Np.errorBarPositions(e,t,a,n,i);o.errorX&&Pp.extendFlat(o.errorX,l.x),o.errorY&&Pp.extendFlat(o.errorY,l.y)}return o.text&&(Pp.extendFlat(o.text,{positions:a},Np.textPosition(e,t,o.text,o.marker)),Pp.extendFlat(o.textSel,{positions:a},Np.textPosition(e,t,o.text,o.markerSel)),Pp.extendFlat(o.textUnsel,{positions:a},Np.textPosition(e,t,o.text,o.markerUnsel))),o}});var d7=N((sNe,UJ)=>{"use strict";var GJ=Ur(),RAe=ha(),qAe=od().DESELECTDIM;function PAe(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=GJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,y=u.color,m=s.color,b=GJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var HJ=qi(),NAe=d7().styleTextSelection;VJ.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=HJ.hasText(l),y=HJ.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 IAe=JT();WJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:yy(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mx(),supplyDefaults:jV(),crossTraceDefaults:M6(),colorbar:Rb(),formatLabels:ZV(),calc:zJ(),hoverPoints:IAe.hoverPoints,selectPoints:YJ(),meta:{}}});var ZJ=N((cNe,A_)=>{"use strict";var w_=Dy();A_.exports=XJ;A_.exports.to=XJ;A_.exports.from=OAe;function XJ(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=w_(t,0,255)&255,a=w_(a,0,255)&255,n=w_(n,0,255)&255,i=w_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function OAe(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((vNe,$J)=>{"use strict";var JJ=Object.getOwnPropertySymbols,BAe=Object.prototype.hasOwnProperty,zAe=Object.prototype.propertyIsEnumerable;function GAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function UAe(){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}}$J.exports=UAe()?Object.assign:function(e,r){for(var t,a=GAe(e),n,i=1;i{QJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";e$.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";r$.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var T_=N((mNe,Ip)=>{"use strict";Ip.exports=ig;Ip.exports.float32=Ip.exports.float=ig;Ip.exports.fract32=Ip.exports.fract=HAe;var a$=new Float32Array(1);function HAe(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 VAe(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 YAe(e,r){return XAe(e)||VAe(e,r)||i$(e,r)||$Ae()}function WAe(e){return jAe(e)||ZAe(e)||i$(e)||JAe()}function jAe(e){if(Array.isArray(e))return m7(e)}function XAe(e){if(Array.isArray(e))return e}function ZAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i$(e,r){if(e){if(typeof e=="string")return m7(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 m7(e,r)}}function m7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);toe)?J.tree=r6e(Q,{bounds:Ve}):oe&&oe.length&&(J.tree=oe),J.tree){var we={primitive:"points",usage:"static",data:J.tree,type:"uint32"};J.elements?J.elements(we):J.elements=o.elements(we)}var fr=S_.float32(Q);se({data:fr,usage:"dynamic"});var Ie=S_.fract32(Q,fr);return Le({data:Ie,usage:"dynamic"}),Ue({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),Q}},{marker:function(Q,J,j){var oe=J.activation;if(oe.forEach(function(Ie){return Ie&&Ie.destroy&&Ie.destroy()}),oe.length=0,!Q||typeof Q[0]=="number"){var se=e.addMarker(Q);oe[se]=!0}else{for(var Le=[],Ue=0,Ee=Math.min(Q.length,J.count);Ue=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};Yi.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";_7.exports=C_;_7.exports.default=C_;function C_(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=s$(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=h6e(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 ig(i,o,t,l,s,d,0),o}function s$(e,r,t,a,n){var i,o;if(n===x7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=l$(i,e[i],e[i+1],o);return o&&L_(o,o.next)&&(lg(o),o=o.next),o}function A0(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(L_(t,t.next)||Xn(t.prev,t,t.next)===0)){if(lg(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function ig(e,r,t,a,n,i,o){if(e){!o&&i&&g6e(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?u6e(e,a,n,i):f6e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),lg(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=c6e(A0(e),r,t),ig(e,r,t,a,n,i,2)):o===2&&v6e(e,r,t,a,n,i):ig(A0(e),r,t,a,n,i,1);break}}}}function f6e(e){var r=e.prev,t=e,a=e.next;if(Xn(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&&Op(n,l,i,s,o,f,p.x,p.y)&&Xn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function u6e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Xn(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=g7(d,p,r,t,a),T=g7(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&&Op(l,u,s,c,f,v,_.x,_.y)&&Xn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Op(l,u,s,c,f,v,x.x,x.y)&&Xn(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&&Op(l,u,s,c,f,v,_.x,_.y)&&Xn(_.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&&Op(l,u,s,c,f,v,x.x,x.y)&&Xn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function c6e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!L_(n,i)&&f$(n,a,a.next,i)&&og(n,i)&&og(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),lg(a),lg(a.next),a=e=i),a=a.next}while(a!==e);return A0(a)}function v6e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&_6e(o,l)){var s=u$(o,l);o=A0(o,o.next),s=A0(s,s.next),ig(o,r,t,a,n,i,0),ig(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function h6e(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&&Op(no.x||t.x===o.x&&y6e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function y6e(e,r){return Xn(e.prev,e,r.prev)<0&&Xn(r.next,e,e.next)<0}function g6e(e,r,t,a){var n=e;do n.z===0&&(n.z=g7(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,b6e(n)}function b6e(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 g7(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 x6e(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 _6e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!w6e(e,r)&&(og(e,r)&&og(r,e)&&A6e(e,r)&&(Xn(e.prev,e,r.prev)||Xn(e,r.prev,r))||L_(e,r)&&Xn(e.prev,e,e.next)>0&&Xn(r.prev,r,r.next)>0)}function Xn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function L_(e,r){return e.x===r.x&&e.y===r.y}function f$(e,r,t,a){var n=k_(Xn(e,r,t)),i=k_(Xn(e,r,a)),o=k_(Xn(t,a,e)),l=k_(Xn(t,a,r));return!!(n!==i&&o!==l||n===0&&E_(e,t,r)||i===0&&E_(e,a,r)||o===0&&E_(t,e,a)||l===0&&E_(t,r,a))}function E_(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 k_(e){return e>0?1:e<0?-1:0}function w6e(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&&f$(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function og(e,r){return Xn(e.prev,e,e.next)<0?Xn(e,r,e.next)>=0&&Xn(e,e.prev,r)>=0:Xn(e,r,e.prev)<0||Xn(e,e.next,r)<0}function A6e(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 u$(e,r){var t=new b7(e.i,e.x,e.y),a=new b7(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 l$(e,r,t,a){var n=new b7(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 lg(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 b7(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}C_.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(x7(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 h$=N((bNe,v$)=>{"use strict";var T6e=v0();v$.exports=M6e;function M6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=T6e(e,r));for(var a=0;a{"use strict";d$.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 y$=N((_Ne,m$)=>{"use strict";m$.exports=function(){}});var Av=N((wNe,g$)=>{"use strict";var S6e=y$()();g$.exports=function(e){return e!==S6e&&e!==null}});var w7=N((ANe,x$)=>{"use strict";var E6e=Object.create,k6e=Object.getPrototypeOf,b$={};x$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||E6e;return typeof e!="function"?!1:k6e(e(r(null),b$))===b$}});var A7=N((TNe,_$)=>{"use strict";var C6e=Av(),L6e={function:!0,object:!0};_$.exports=function(e){return C6e(e)&&L6e[typeof e]||!1}});var Xu=N((MNe,w$)=>{"use strict";var D6e=Av();w$.exports=function(e){if(!D6e(e))throw new TypeError("Cannot use null or undefined");return e}});var T$=N((SNe,A$)=>{"use strict";var T7=Object.create,D_;w7()()||(D_=M7());A$.exports=function(){var e,r,t;return!D_||D_.level!==1?T7:(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(D_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return T7(a===null?e:a,n)})}()});var M7=N((ENe,M$)=>{"use strict";var F6e=A7(),R6e=Xu(),q6e=Object.prototype.isPrototypeOf,P6e=Object.defineProperty,N6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},F_;F_=function(e,r){if(R6e(e),r===null||F6e(r))return e;throw new TypeError("Prototype must be null or an object")};M$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(F_(a,n),n),a}):r=function(a,n){return F_(a,n).__proto__=n,a}:r=function a(n,i){var o;return F_(n,i),o=q6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&P6e(a.nullPolyfill,"__proto__",N6e),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)}());T$()});var R_=N((kNe,S$)=>{"use strict";S$.exports=w7()()?Object.setPrototypeOf:M7()});var k$=N((CNe,E$)=>{"use strict";var I6e=A7();E$.exports=function(e){if(!I6e(e))throw new TypeError(e+" is not an Object");return e}});var L$=N((LNe,C$)=>{"use strict";var O6e=Object.create(null),B6e=Math.random;C$.exports=function(){var e;do e=B6e().toString(36).slice(2);while(O6e[e]);return e}});var T0=N((DNe,D$)=>{"use strict";var z6e=void 0;D$.exports=function(e){return e!==z6e&&e!==null}});var q_=N((FNe,F$)=>{"use strict";var G6e=T0(),U6e={object:!0,function:!0,undefined:!0};F$.exports=function(e){return G6e(e)?hasOwnProperty.call(U6e,typeof e):!1}});var q$=N((RNe,R$)=>{"use strict";var H6e=q_();R$.exports=function(e){if(!H6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var N$=N((qNe,P$)=>{"use strict";var V6e=q$();P$.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!V6e(e)}});var S7=N((PNe,I$)=>{"use strict";var Y6e=N$(),W6e=/^\s*class[\s{/}]/,j6e=Function.prototype.toString;I$.exports=function(e){return!(!Y6e(e)||W6e.test(j6e.call(e)))}});var B$=N((NNe,O$)=>{"use strict";O$.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 G$=N((INe,z$)=>{"use strict";z$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var H$=N((ONe,U$)=>{"use strict";var X6e=Av(),Z6e=Object.keys;U$.exports=function(e){return Z6e(X6e(e)?Object(e):e)}});var Y$=N((BNe,V$)=>{"use strict";V$.exports=G$()()?Object.keys:H$()});var j$=N((zNe,W$)=>{"use strict";var J6e=Y$(),$6e=Xu(),Q6e=Math.max;W$.exports=function(e,r){var t,a,n=Q6e(arguments.length,2),i;for(e=Object($6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";X$.exports=B$()()?Object.assign:j$()});var E7=N((UNe,Z$)=>{"use strict";var K6e=Av(),eTe=Array.prototype.forEach,rTe=Object.create,tTe=function(e,r){var t;for(t in e)r[t]=e[t]};Z$.exports=function(e){var r=rTe(null);return eTe.call(arguments,function(t){K6e(t)&&tTe(Object(t),r)}),r}});var $$=N((HNe,J$)=>{"use strict";var k7="razdwatrzy";J$.exports=function(){return typeof k7.contains!="function"?!1:k7.contains("dwa")===!0&&k7.contains("foo")===!1}});var K$=N((VNe,Q$)=>{"use strict";var aTe=String.prototype.indexOf;Q$.exports=function(e){return aTe.call(this,e,arguments[1])>-1}});var C7=N((YNe,eQ)=>{"use strict";eQ.exports=$$()()?String.prototype.contains:K$()});var Zu=N((WNe,nQ)=>{"use strict";var N_=T0(),rQ=S7(),tQ=P_(),aQ=E7(),sg=C7(),nTe=nQ.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],N_(e)?(t=sg.call(e,"c"),a=sg.call(e,"e"),n=sg.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?tQ(aQ(i),o):o};nTe.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],N_(r)?rQ(r)?N_(t)?rQ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,N_(e)?(a=sg.call(e,"c"),n=sg.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?tQ(aQ(i),o):o}});var fg=N((jNe,oQ)=>{"use strict";var iQ=Object.prototype.toString,iTe=iQ.call(function(){return arguments}());oQ.exports=function(e){return iQ.call(e)===iTe}});var ug=N((XNe,sQ)=>{"use strict";var lQ=Object.prototype.toString,oTe=lQ.call("");sQ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||lQ.call(e)===oTe)||!1}});var uQ=N((ZNe,fQ)=>{"use strict";fQ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var hQ=N((JNe,vQ)=>{var cQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};vQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return cQ()}try{return __global__||cQ()}finally{delete Object.prototype.__global__}}()});var cg=N(($Ne,dQ)=>{"use strict";dQ.exports=uQ()()?globalThis:hQ()});var mQ=N((QNe,pQ)=>{"use strict";var lTe=cg(),L7={object:!0,symbol:!0};pQ.exports=function(){var e=lTe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!L7[typeof e.iterator]||!L7[typeof e.toPrimitive]||!L7[typeof e.toStringTag])}});var gQ=N((KNe,yQ)=>{"use strict";yQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var D7=N((eIe,bQ)=>{"use strict";var sTe=gQ();bQ.exports=function(e){if(!sTe(e))throw new TypeError(e+" is not a symbol");return e}});var TQ=N((rIe,AQ)=>{"use strict";var xQ=Zu(),fTe=Object.create,_Q=Object.defineProperty,uTe=Object.prototype,wQ=fTe(null);AQ.exports=function(e){for(var r=0,t,a;wQ[e+(r||"")];)++r;return e+=r||"",wQ[e]=!0,t="@@"+e,_Q(uTe,t,xQ.gs(null,function(n){a||(a=!0,_Q(this,t,xQ(n)),a=!1)})),t}});var SQ=N((tIe,MQ)=>{"use strict";var tf=Zu(),oi=cg().Symbol;MQ.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 CQ=N((aIe,kQ)=>{"use strict";var EQ=Zu(),cTe=D7(),vg=Object.create(null);kQ.exports=function(e){return Object.defineProperties(e,{for:EQ(function(r){return vg[r]?vg[r]:vg[r]=e(String(r))}),keyFor:EQ(function(r){var t;cTe(r);for(t in vg)if(vg[t]===r)return t})})}});var FQ=N((nIe,DQ)=>{"use strict";var Vf=Zu(),F7=D7(),I_=cg().Symbol,vTe=TQ(),hTe=SQ(),dTe=CQ(),pTe=Object.create,R7=Object.defineProperties,O_=Object.defineProperty,wo,Bp,LQ;if(typeof I_=="function")try{String(I_()),LQ=!0}catch(e){}else I_=null;Bp=function(r){if(this instanceof Bp)throw new TypeError("Symbol is not a constructor");return wo(r)};DQ.exports=wo=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return LQ?I_(r):(t=pTe(Bp.prototype),r=r===void 0?"":String(r),R7(t,{__description__:Vf("",r),__name__:Vf("",vTe(r))}))};hTe(wo);dTe(wo);R7(Bp.prototype,{constructor:Vf(wo),toString:Vf("",function(){return this.__name__})});R7(wo.prototype,{toString:Vf(function(){return"Symbol ("+F7(this).__description__+")"}),valueOf:Vf(function(){return F7(this)})});O_(wo.prototype,wo.toPrimitive,Vf("",function(){var e=F7(this);return typeof e=="symbol"?e:e.toString()}));O_(wo.prototype,wo.toStringTag,Vf("c","Symbol"));O_(Bp.prototype,wo.toStringTag,Vf("c",wo.prototype[wo.toStringTag]));O_(Bp.prototype,wo.toPrimitive,Vf("c",wo.prototype[wo.toPrimitive]))});var Tv=N((iIe,RQ)=>{"use strict";RQ.exports=mQ()()?cg().Symbol:FQ()});var PQ=N((oIe,qQ)=>{"use strict";var mTe=Xu();qQ.exports=function(){return mTe(this).length=0,this}});var zp=N((lIe,NQ)=>{"use strict";NQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var OQ=N((sIe,IQ)=>{"use strict";var yTe=T0(),gTe=q_(),bTe=Object.prototype.toString;IQ.exports=function(e){if(!yTe(e))return null;if(gTe(e)){var r=e.toString;if(typeof r!="function"||r===bTe)return null}try{return""+e}catch(t){return null}}});var zQ=N((fIe,BQ)=>{"use strict";BQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var UQ=N((uIe,GQ)=>{"use strict";var xTe=zQ(),_Te=/[\n\r\u2028\u2029]/g;GQ.exports=function(e){var r=xTe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(_Te,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 q7=N((cIe,YQ)=>{"use strict";var HQ=T0(),wTe=q_(),ATe=OQ(),TTe=UQ(),VQ=function(e,r){return e.replace("%v",TTe(r))};YQ.exports=function(e,r,t){if(!wTe(t))throw new TypeError(VQ(r,e));if(!HQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=ATe(t.errorMessage);throw HQ(a)||(a=r),new TypeError(VQ(a,e))}});var jQ=N((vIe,WQ)=>{"use strict";var MTe=q7(),STe=T0();WQ.exports=function(e){return STe(e)?e:MTe(e,"Cannot use %v",arguments[1])}});var ZQ=N((hIe,XQ)=>{"use strict";var ETe=q7(),kTe=S7();XQ.exports=function(e){return kTe(e)?e:ETe(e,"%v is not a plain function",arguments[1])}});var $Q=N((dIe,JQ)=>{"use strict";JQ.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 KQ=N((pIe,QQ)=>{"use strict";var CTe=Object.prototype.toString,LTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);QQ.exports=function(e){return typeof e=="function"&<e(CTe.call(e))}});var rK=N((mIe,eK)=>{"use strict";eK.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var aK=N((yIe,tK)=>{"use strict";tK.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var iK=N((gIe,nK)=>{"use strict";nK.exports=rK()()?Math.sign:aK()});var lK=N((bIe,oK)=>{"use strict";var DTe=iK(),FTe=Math.abs,RTe=Math.floor;oK.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:DTe(e)*RTe(FTe(e)))}});var fK=N((xIe,sK)=>{"use strict";var qTe=lK(),PTe=Math.max;sK.exports=function(e){return PTe(0,qTe(e))}});var hK=N((_Ie,vK)=>{"use strict";var NTe=Tv().iterator,ITe=fg(),OTe=KQ(),BTe=fK(),uK=zp(),zTe=Xu(),GTe=Av(),UTe=ug(),cK=Array.isArray,P7=Function.prototype.call,M0={configurable:!0,enumerable:!0,writable:!0,value:null},N7=Object.defineProperty;vK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(zTe(e)),GTe(r)&&uK(r),!this||this===Array||!OTe(this)){if(!r){if(ITe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(cK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?P7.call(r,t,v,i):v,a?(M0.value=v,N7(o,i,M0)):o[i]=v,++i;l=i}}if(l===void 0)for(l=BTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";dK.exports=$Q()()?Array.from:hK()});var yK=N((AIe,mK)=>{"use strict";var HTe=pK(),VTe=P_(),YTe=Xu();mK.exports=function(e){var r=Object(YTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?HTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):VTe(n,e),n}});var xK=N((TIe,bK)=>{"use strict";var WTe=zp(),jTe=Xu(),XTe=Function.prototype.bind,gK=Function.prototype.call,ZTe=Object.keys,JTe=Object.prototype.propertyIsEnumerable;bK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(jTe(t)),WTe(a),n=ZTe(t),o&&n.sort(typeof o=="function"?XTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),gK.call(e,n,function(l,s){return JTe.call(t,l)?gK.call(a,i,t[l],l,t,s):r})}}});var wK=N((MIe,_K)=>{"use strict";_K.exports=xK()("forEach")});var TK=N((SIe,AK)=>{"use strict";var $Te=zp(),QTe=wK(),KTe=Function.prototype.call;AK.exports=function(e,r){var t={},a=arguments[2];return $Te(r),QTe(e,function(n,i,o,l){t[i]=KTe.call(r,a,n,i,o,l)}),t}});var kK=N((EIe,EK)=>{"use strict";var e8e=T0(),r8e=jQ(),MK=ZQ(),t8e=yK(),a8e=E7(),n8e=TK(),i8e=Function.prototype.bind,o8e=Object.defineProperty,l8e=Object.prototype.hasOwnProperty,SK;SK=function(e,r,t){var a=r8e(r)&&MK(r.value),n;return n=t8e(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&l8e.call(this,e)?a:(r.value=i8e.call(a,t.resolveContext?t.resolveContext(this):this),o8e(this,e,r),this[e])},n};EK.exports=function(e){var r=a8e(arguments[1]);return e8e(r.resolveContext)&&MK(r.resolveContext),n8e(e,function(t,a){return SK(a,t,r)})}});var I7=N((kIe,FK)=>{"use strict";var s8e=PQ(),f8e=P_(),u8e=zp(),c8e=Xu(),al=Zu(),v8e=kK(),CK=Tv(),LK=Object.defineProperty,DK=Object.defineProperties,hg;FK.exports=hg=function(e,r){if(!(this instanceof hg))throw new TypeError("Constructor requires 'new'");DK(this,{__list__:al("w",c8e(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(u8e(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete hg.prototype.constructor;DK(hg.prototype,f8e({_next:al(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__){LK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(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:al(function(){this.__redo__&&s8e.call(this.__redo__),this.__nextIndex__=0})})));LK(hg.prototype,CK.iterator,al(function(){return this}))});var IK=N((CIe,NK)=>{"use strict";var RK=R_(),qK=C7(),O7=Zu(),h8e=Tv(),B7=I7(),PK=Object.defineProperty,Gp;Gp=NK.exports=function(e,r){if(!(this instanceof Gp))throw new TypeError("Constructor requires 'new'");B7.call(this,e),r?qK.call(r,"key+value")?r="key+value":qK.call(r,"key")?r="key":r="value":r="value",PK(this,"__kind__",O7("",r))};RK&&RK(Gp,B7);delete Gp.prototype.constructor;Gp.prototype=Object.create(B7.prototype,{_resolve:O7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});PK(Gp.prototype,h8e.toStringTag,O7("c","Array Iterator"))});var GK=N((LIe,zK)=>{"use strict";var OK=R_(),B_=Zu(),d8e=Tv(),z7=I7(),BK=Object.defineProperty,Up;Up=zK.exports=function(e){if(!(this instanceof Up))throw new TypeError("Constructor requires 'new'");e=String(e),z7.call(this,e),BK(this,"__length__",B_("",e.length))};OK&&OK(Up,z7);delete Up.prototype.constructor;Up.prototype=Object.create(z7.prototype,{_next:B_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});BK(Up.prototype,d8e.toStringTag,B_("c","String Iterator"))});var HK=N((DIe,UK)=>{"use strict";var p8e=fg(),m8e=Av(),y8e=ug(),g8e=Tv().iterator,b8e=Array.isArray;UK.exports=function(e){return m8e(e)?b8e(e)||y8e(e)||p8e(e)?!0:typeof e[g8e]=="function":!1}});var YK=N((FIe,VK)=>{"use strict";var x8e=HK();VK.exports=function(e){if(!x8e(e))throw new TypeError(e+" is not iterable");return e}});var G7=N((RIe,XK)=>{"use strict";var _8e=fg(),w8e=ug(),WK=IK(),A8e=GK(),T8e=YK(),jK=Tv().iterator;XK.exports=function(e){return typeof T8e(e)[jK]=="function"?e[jK]():_8e(e)?new WK(e):w8e(e)?new A8e(e):new WK(e)}});var JK=N((qIe,ZK)=>{"use strict";var M8e=fg(),S8e=zp(),E8e=ug(),k8e=G7(),C8e=Array.isArray,U7=Function.prototype.call,L8e=Array.prototype.some;ZK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(C8e(e)||M8e(e)?t="array":E8e(e)?t="string":e=k8e(e),S8e(r),i=function(){o=!0},t==="array"){L8e.call(e,function(c){return U7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),U7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(U7.call(r,a,n.value,i),o)return;n=e.next()}}});var QK=N((PIe,$K)=>{"use strict";$K.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var ree=N((NIe,eee)=>{"use strict";var D8e=Av(),G_=R_(),z_=k$(),F8e=Xu(),R8e=L$(),Ju=Zu(),q8e=G7(),P8e=JK(),N8e=Tv().toStringTag,KK=QK(),I8e=Array.isArray,V7=Object.defineProperty,H7=Object.prototype.hasOwnProperty,O8e=Object.getPrototypeOf,Mv;eee.exports=Mv=function(){var e=arguments[0],r;if(!(this instanceof Mv))throw new TypeError("Constructor requires 'new'");return r=KK&&G_&&WeakMap!==Mv?G_(new WeakMap,O8e(this)):this,D8e(e)&&(I8e(e)||(e=q8e(e))),V7(r,"__weakMapData__",Ju("c","$weakMap$"+R8e())),e&&P8e(e,function(t){F8e(t),r.set(t[0],t[1])}),r};KK&&(G_&&G_(Mv,WeakMap),Mv.prototype=Object.create(WeakMap.prototype,{constructor:Ju(Mv)}));Object.defineProperties(Mv.prototype,{delete:Ju(function(e){return H7.call(z_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Ju(function(e){if(H7.call(z_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Ju(function(e){return H7.call(z_(e),this.__weakMapData__)}),set:Ju(function(e,r){return V7(z_(e),this.__weakMapData__,Ju("c",r)),this}),toString:Ju(function(){return"[object WeakMap]"})});V7(Mv.prototype,N8e,Ju("c","WeakMap"))});var Y7=N((IIe,tee)=>{"use strict";tee.exports=p$()()?WeakMap:ree()});var nee=N((OIe,aee)=>{"use strict";aee.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 U_=x0(),B8e=v0(),j7=ii(),z8e=Hf(),G8e=h0(),iee=c$(),U8e=h$(),{float32:H8e,fract32:W7}=T_(),V8e=Y7(),oee=yp(),Y8e=nee(),W8e=` +`]),n$&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}Yi.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};Yi.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};Yi.prototype.draw=function(){for(var e=this,r=arguments.length,t=new Array(r),a=0;aoe)?J.tree=r6e(Q,{bounds:Ve}):oe&&oe.length&&(J.tree=oe),J.tree){var we={primitive:"points",usage:"static",data:J.tree,type:"uint32"};J.elements?J.elements(we):J.elements=o.elements(we)}var fr=S_.float32(Q);se({data:fr,usage:"dynamic"});var Ie=S_.fract32(Q,fr);return Le({data:Ie,usage:"dynamic"}),Ue({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),Q}},{marker:function(Q,J,j){var oe=J.activation;if(oe.forEach(function(Ie){return Ie&&Ie.destroy&&Ie.destroy()}),oe.length=0,!Q||typeof Q[0]=="number"){var se=e.addMarker(Q);oe[se]=!0}else{for(var Le=[],Ue=0,Ee=Math.min(Q.length,J.count);Ue=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};Yi.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";_7.exports=C_;_7.exports.default=C_;function C_(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=s$(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=h6e(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 s$(e,r,t,a,n){var i,o;if(n===x7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=l$(i,e[i],e[i+1],o);return o&&L_(o,o.next)&&(sg(o),o=o.next),o}function A0(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(L_(t,t.next)||Xn(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&&g6e(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?u6e(e,a,n,i):f6e(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=c6e(A0(e),r,t),og(e,r,t,a,n,i,2)):o===2&&v6e(e,r,t,a,n,i):og(A0(e),r,t,a,n,i,1);break}}}}function f6e(e){var r=e.prev,t=e,a=e.next;if(Xn(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&&Op(n,l,i,s,o,f,p.x,p.y)&&Xn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function u6e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Xn(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=g7(d,p,r,t,a),T=g7(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&&Op(l,u,s,c,f,v,_.x,_.y)&&Xn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Op(l,u,s,c,f,v,x.x,x.y)&&Xn(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&&Op(l,u,s,c,f,v,_.x,_.y)&&Xn(_.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&&Op(l,u,s,c,f,v,x.x,x.y)&&Xn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function c6e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!L_(n,i)&&f$(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 A0(a)}function v6e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&_6e(o,l)){var s=u$(o,l);o=A0(o,o.next),s=A0(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 h6e(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&&Op(no.x||t.x===o.x&&y6e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function y6e(e,r){return Xn(e.prev,e,r.prev)<0&&Xn(r.next,e,e.next)<0}function g6e(e,r,t,a){var n=e;do n.z===0&&(n.z=g7(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,b6e(n)}function b6e(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 g7(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 x6e(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 _6e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!w6e(e,r)&&(lg(e,r)&&lg(r,e)&&A6e(e,r)&&(Xn(e.prev,e,r.prev)||Xn(e,r.prev,r))||L_(e,r)&&Xn(e.prev,e,e.next)>0&&Xn(r.prev,r,r.next)>0)}function Xn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function L_(e,r){return e.x===r.x&&e.y===r.y}function f$(e,r,t,a){var n=k_(Xn(e,r,t)),i=k_(Xn(e,r,a)),o=k_(Xn(t,a,e)),l=k_(Xn(t,a,r));return!!(n!==i&&o!==l||n===0&&E_(e,t,r)||i===0&&E_(e,a,r)||o===0&&E_(t,e,a)||l===0&&E_(t,r,a))}function E_(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 k_(e){return e>0?1:e<0?-1:0}function w6e(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&&f$(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function lg(e,r){return Xn(e.prev,e,e.next)<0?Xn(e,r,e.next)>=0&&Xn(e,e.prev,r)>=0:Xn(e,r,e.prev)<0||Xn(e,e.next,r)<0}function A6e(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 u$(e,r){var t=new b7(e.i,e.x,e.y),a=new b7(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 l$(e,r,t,a){var n=new b7(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 b7(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}C_.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(x7(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 h$=N((bNe,v$)=>{"use strict";var T6e=v0();v$.exports=M6e;function M6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=T6e(e,r));for(var a=0;a{"use strict";d$.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 y$=N((_Ne,m$)=>{"use strict";m$.exports=function(){}});var Av=N((wNe,g$)=>{"use strict";var S6e=y$()();g$.exports=function(e){return e!==S6e&&e!==null}});var w7=N((ANe,x$)=>{"use strict";var E6e=Object.create,k6e=Object.getPrototypeOf,b$={};x$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||E6e;return typeof e!="function"?!1:k6e(e(r(null),b$))===b$}});var A7=N((TNe,_$)=>{"use strict";var C6e=Av(),L6e={function:!0,object:!0};_$.exports=function(e){return C6e(e)&&L6e[typeof e]||!1}});var Xu=N((MNe,w$)=>{"use strict";var D6e=Av();w$.exports=function(e){if(!D6e(e))throw new TypeError("Cannot use null or undefined");return e}});var T$=N((SNe,A$)=>{"use strict";var T7=Object.create,D_;w7()()||(D_=M7());A$.exports=function(){var e,r,t;return!D_||D_.level!==1?T7:(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(D_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return T7(a===null?e:a,n)})}()});var M7=N((ENe,M$)=>{"use strict";var F6e=A7(),R6e=Xu(),q6e=Object.prototype.isPrototypeOf,P6e=Object.defineProperty,N6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},F_;F_=function(e,r){if(R6e(e),r===null||F6e(r))return e;throw new TypeError("Prototype must be null or an object")};M$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(F_(a,n),n),a}):r=function(a,n){return F_(a,n).__proto__=n,a}:r=function a(n,i){var o;return F_(n,i),o=q6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&P6e(a.nullPolyfill,"__proto__",N6e),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)}());T$()});var R_=N((kNe,S$)=>{"use strict";S$.exports=w7()()?Object.setPrototypeOf:M7()});var k$=N((CNe,E$)=>{"use strict";var I6e=A7();E$.exports=function(e){if(!I6e(e))throw new TypeError(e+" is not an Object");return e}});var L$=N((LNe,C$)=>{"use strict";var O6e=Object.create(null),B6e=Math.random;C$.exports=function(){var e;do e=B6e().toString(36).slice(2);while(O6e[e]);return e}});var T0=N((DNe,D$)=>{"use strict";var z6e=void 0;D$.exports=function(e){return e!==z6e&&e!==null}});var q_=N((FNe,F$)=>{"use strict";var G6e=T0(),U6e={object:!0,function:!0,undefined:!0};F$.exports=function(e){return G6e(e)?hasOwnProperty.call(U6e,typeof e):!1}});var q$=N((RNe,R$)=>{"use strict";var H6e=q_();R$.exports=function(e){if(!H6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var N$=N((qNe,P$)=>{"use strict";var V6e=q$();P$.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!V6e(e)}});var S7=N((PNe,I$)=>{"use strict";var Y6e=N$(),W6e=/^\s*class[\s{/}]/,j6e=Function.prototype.toString;I$.exports=function(e){return!(!Y6e(e)||W6e.test(j6e.call(e)))}});var B$=N((NNe,O$)=>{"use strict";O$.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 G$=N((INe,z$)=>{"use strict";z$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var H$=N((ONe,U$)=>{"use strict";var X6e=Av(),Z6e=Object.keys;U$.exports=function(e){return Z6e(X6e(e)?Object(e):e)}});var Y$=N((BNe,V$)=>{"use strict";V$.exports=G$()()?Object.keys:H$()});var j$=N((zNe,W$)=>{"use strict";var J6e=Y$(),$6e=Xu(),Q6e=Math.max;W$.exports=function(e,r){var t,a,n=Q6e(arguments.length,2),i;for(e=Object($6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";X$.exports=B$()()?Object.assign:j$()});var E7=N((UNe,Z$)=>{"use strict";var K6e=Av(),eTe=Array.prototype.forEach,rTe=Object.create,tTe=function(e,r){var t;for(t in e)r[t]=e[t]};Z$.exports=function(e){var r=rTe(null);return eTe.call(arguments,function(t){K6e(t)&&tTe(Object(t),r)}),r}});var $$=N((HNe,J$)=>{"use strict";var k7="razdwatrzy";J$.exports=function(){return typeof k7.contains!="function"?!1:k7.contains("dwa")===!0&&k7.contains("foo")===!1}});var K$=N((VNe,Q$)=>{"use strict";var aTe=String.prototype.indexOf;Q$.exports=function(e){return aTe.call(this,e,arguments[1])>-1}});var C7=N((YNe,eQ)=>{"use strict";eQ.exports=$$()()?String.prototype.contains:K$()});var Zu=N((WNe,nQ)=>{"use strict";var N_=T0(),rQ=S7(),tQ=P_(),aQ=E7(),fg=C7(),nTe=nQ.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],N_(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?tQ(aQ(i),o):o};nTe.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],N_(r)?rQ(r)?N_(t)?rQ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,N_(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?tQ(aQ(i),o):o}});var ug=N((jNe,oQ)=>{"use strict";var iQ=Object.prototype.toString,iTe=iQ.call(function(){return arguments}());oQ.exports=function(e){return iQ.call(e)===iTe}});var cg=N((XNe,sQ)=>{"use strict";var lQ=Object.prototype.toString,oTe=lQ.call("");sQ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||lQ.call(e)===oTe)||!1}});var uQ=N((ZNe,fQ)=>{"use strict";fQ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var hQ=N((JNe,vQ)=>{var cQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};vQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return cQ()}try{return __global__||cQ()}finally{delete Object.prototype.__global__}}()});var vg=N(($Ne,dQ)=>{"use strict";dQ.exports=uQ()()?globalThis:hQ()});var mQ=N((QNe,pQ)=>{"use strict";var lTe=vg(),L7={object:!0,symbol:!0};pQ.exports=function(){var e=lTe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!L7[typeof e.iterator]||!L7[typeof e.toPrimitive]||!L7[typeof e.toStringTag])}});var gQ=N((KNe,yQ)=>{"use strict";yQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var D7=N((eIe,bQ)=>{"use strict";var sTe=gQ();bQ.exports=function(e){if(!sTe(e))throw new TypeError(e+" is not a symbol");return e}});var TQ=N((rIe,AQ)=>{"use strict";var xQ=Zu(),fTe=Object.create,_Q=Object.defineProperty,uTe=Object.prototype,wQ=fTe(null);AQ.exports=function(e){for(var r=0,t,a;wQ[e+(r||"")];)++r;return e+=r||"",wQ[e]=!0,t="@@"+e,_Q(uTe,t,xQ.gs(null,function(n){a||(a=!0,_Q(this,t,xQ(n)),a=!1)})),t}});var SQ=N((tIe,MQ)=>{"use strict";var tf=Zu(),oi=vg().Symbol;MQ.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 CQ=N((aIe,kQ)=>{"use strict";var EQ=Zu(),cTe=D7(),hg=Object.create(null);kQ.exports=function(e){return Object.defineProperties(e,{for:EQ(function(r){return hg[r]?hg[r]:hg[r]=e(String(r))}),keyFor:EQ(function(r){var t;cTe(r);for(t in hg)if(hg[t]===r)return t})})}});var FQ=N((nIe,DQ)=>{"use strict";var Vf=Zu(),F7=D7(),I_=vg().Symbol,vTe=TQ(),hTe=SQ(),dTe=CQ(),pTe=Object.create,R7=Object.defineProperties,O_=Object.defineProperty,wo,Bp,LQ;if(typeof I_=="function")try{String(I_()),LQ=!0}catch(e){}else I_=null;Bp=function(r){if(this instanceof Bp)throw new TypeError("Symbol is not a constructor");return wo(r)};DQ.exports=wo=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return LQ?I_(r):(t=pTe(Bp.prototype),r=r===void 0?"":String(r),R7(t,{__description__:Vf("",r),__name__:Vf("",vTe(r))}))};hTe(wo);dTe(wo);R7(Bp.prototype,{constructor:Vf(wo),toString:Vf("",function(){return this.__name__})});R7(wo.prototype,{toString:Vf(function(){return"Symbol ("+F7(this).__description__+")"}),valueOf:Vf(function(){return F7(this)})});O_(wo.prototype,wo.toPrimitive,Vf("",function(){var e=F7(this);return typeof e=="symbol"?e:e.toString()}));O_(wo.prototype,wo.toStringTag,Vf("c","Symbol"));O_(Bp.prototype,wo.toStringTag,Vf("c",wo.prototype[wo.toStringTag]));O_(Bp.prototype,wo.toPrimitive,Vf("c",wo.prototype[wo.toPrimitive]))});var Tv=N((iIe,RQ)=>{"use strict";RQ.exports=mQ()()?vg().Symbol:FQ()});var PQ=N((oIe,qQ)=>{"use strict";var mTe=Xu();qQ.exports=function(){return mTe(this).length=0,this}});var zp=N((lIe,NQ)=>{"use strict";NQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var OQ=N((sIe,IQ)=>{"use strict";var yTe=T0(),gTe=q_(),bTe=Object.prototype.toString;IQ.exports=function(e){if(!yTe(e))return null;if(gTe(e)){var r=e.toString;if(typeof r!="function"||r===bTe)return null}try{return""+e}catch(t){return null}}});var zQ=N((fIe,BQ)=>{"use strict";BQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var UQ=N((uIe,GQ)=>{"use strict";var xTe=zQ(),_Te=/[\n\r\u2028\u2029]/g;GQ.exports=function(e){var r=xTe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(_Te,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 q7=N((cIe,YQ)=>{"use strict";var HQ=T0(),wTe=q_(),ATe=OQ(),TTe=UQ(),VQ=function(e,r){return e.replace("%v",TTe(r))};YQ.exports=function(e,r,t){if(!wTe(t))throw new TypeError(VQ(r,e));if(!HQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=ATe(t.errorMessage);throw HQ(a)||(a=r),new TypeError(VQ(a,e))}});var jQ=N((vIe,WQ)=>{"use strict";var MTe=q7(),STe=T0();WQ.exports=function(e){return STe(e)?e:MTe(e,"Cannot use %v",arguments[1])}});var ZQ=N((hIe,XQ)=>{"use strict";var ETe=q7(),kTe=S7();XQ.exports=function(e){return kTe(e)?e:ETe(e,"%v is not a plain function",arguments[1])}});var $Q=N((dIe,JQ)=>{"use strict";JQ.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 KQ=N((pIe,QQ)=>{"use strict";var CTe=Object.prototype.toString,LTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);QQ.exports=function(e){return typeof e=="function"&<e(CTe.call(e))}});var rK=N((mIe,eK)=>{"use strict";eK.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var aK=N((yIe,tK)=>{"use strict";tK.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var iK=N((gIe,nK)=>{"use strict";nK.exports=rK()()?Math.sign:aK()});var lK=N((bIe,oK)=>{"use strict";var DTe=iK(),FTe=Math.abs,RTe=Math.floor;oK.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:DTe(e)*RTe(FTe(e)))}});var fK=N((xIe,sK)=>{"use strict";var qTe=lK(),PTe=Math.max;sK.exports=function(e){return PTe(0,qTe(e))}});var hK=N((_Ie,vK)=>{"use strict";var NTe=Tv().iterator,ITe=ug(),OTe=KQ(),BTe=fK(),uK=zp(),zTe=Xu(),GTe=Av(),UTe=cg(),cK=Array.isArray,P7=Function.prototype.call,M0={configurable:!0,enumerable:!0,writable:!0,value:null},N7=Object.defineProperty;vK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(zTe(e)),GTe(r)&&uK(r),!this||this===Array||!OTe(this)){if(!r){if(ITe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(cK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?P7.call(r,t,v,i):v,a?(M0.value=v,N7(o,i,M0)):o[i]=v,++i;l=i}}if(l===void 0)for(l=BTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";dK.exports=$Q()()?Array.from:hK()});var yK=N((AIe,mK)=>{"use strict";var HTe=pK(),VTe=P_(),YTe=Xu();mK.exports=function(e){var r=Object(YTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?HTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):VTe(n,e),n}});var xK=N((TIe,bK)=>{"use strict";var WTe=zp(),jTe=Xu(),XTe=Function.prototype.bind,gK=Function.prototype.call,ZTe=Object.keys,JTe=Object.prototype.propertyIsEnumerable;bK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(jTe(t)),WTe(a),n=ZTe(t),o&&n.sort(typeof o=="function"?XTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),gK.call(e,n,function(l,s){return JTe.call(t,l)?gK.call(a,i,t[l],l,t,s):r})}}});var wK=N((MIe,_K)=>{"use strict";_K.exports=xK()("forEach")});var TK=N((SIe,AK)=>{"use strict";var $Te=zp(),QTe=wK(),KTe=Function.prototype.call;AK.exports=function(e,r){var t={},a=arguments[2];return $Te(r),QTe(e,function(n,i,o,l){t[i]=KTe.call(r,a,n,i,o,l)}),t}});var kK=N((EIe,EK)=>{"use strict";var e8e=T0(),r8e=jQ(),MK=ZQ(),t8e=yK(),a8e=E7(),n8e=TK(),i8e=Function.prototype.bind,o8e=Object.defineProperty,l8e=Object.prototype.hasOwnProperty,SK;SK=function(e,r,t){var a=r8e(r)&&MK(r.value),n;return n=t8e(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&l8e.call(this,e)?a:(r.value=i8e.call(a,t.resolveContext?t.resolveContext(this):this),o8e(this,e,r),this[e])},n};EK.exports=function(e){var r=a8e(arguments[1]);return e8e(r.resolveContext)&&MK(r.resolveContext),n8e(e,function(t,a){return SK(a,t,r)})}});var I7=N((kIe,FK)=>{"use strict";var s8e=PQ(),f8e=P_(),u8e=zp(),c8e=Xu(),al=Zu(),v8e=kK(),CK=Tv(),LK=Object.defineProperty,DK=Object.defineProperties,dg;FK.exports=dg=function(e,r){if(!(this instanceof dg))throw new TypeError("Constructor requires 'new'");DK(this,{__list__:al("w",c8e(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(u8e(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete dg.prototype.constructor;DK(dg.prototype,f8e({_next:al(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__){LK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(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:al(function(){this.__redo__&&s8e.call(this.__redo__),this.__nextIndex__=0})})));LK(dg.prototype,CK.iterator,al(function(){return this}))});var IK=N((CIe,NK)=>{"use strict";var RK=R_(),qK=C7(),O7=Zu(),h8e=Tv(),B7=I7(),PK=Object.defineProperty,Gp;Gp=NK.exports=function(e,r){if(!(this instanceof Gp))throw new TypeError("Constructor requires 'new'");B7.call(this,e),r?qK.call(r,"key+value")?r="key+value":qK.call(r,"key")?r="key":r="value":r="value",PK(this,"__kind__",O7("",r))};RK&&RK(Gp,B7);delete Gp.prototype.constructor;Gp.prototype=Object.create(B7.prototype,{_resolve:O7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});PK(Gp.prototype,h8e.toStringTag,O7("c","Array Iterator"))});var GK=N((LIe,zK)=>{"use strict";var OK=R_(),B_=Zu(),d8e=Tv(),z7=I7(),BK=Object.defineProperty,Up;Up=zK.exports=function(e){if(!(this instanceof Up))throw new TypeError("Constructor requires 'new'");e=String(e),z7.call(this,e),BK(this,"__length__",B_("",e.length))};OK&&OK(Up,z7);delete Up.prototype.constructor;Up.prototype=Object.create(z7.prototype,{_next:B_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});BK(Up.prototype,d8e.toStringTag,B_("c","String Iterator"))});var HK=N((DIe,UK)=>{"use strict";var p8e=ug(),m8e=Av(),y8e=cg(),g8e=Tv().iterator,b8e=Array.isArray;UK.exports=function(e){return m8e(e)?b8e(e)||y8e(e)||p8e(e)?!0:typeof e[g8e]=="function":!1}});var YK=N((FIe,VK)=>{"use strict";var x8e=HK();VK.exports=function(e){if(!x8e(e))throw new TypeError(e+" is not iterable");return e}});var G7=N((RIe,XK)=>{"use strict";var _8e=ug(),w8e=cg(),WK=IK(),A8e=GK(),T8e=YK(),jK=Tv().iterator;XK.exports=function(e){return typeof T8e(e)[jK]=="function"?e[jK]():_8e(e)?new WK(e):w8e(e)?new A8e(e):new WK(e)}});var JK=N((qIe,ZK)=>{"use strict";var M8e=ug(),S8e=zp(),E8e=cg(),k8e=G7(),C8e=Array.isArray,U7=Function.prototype.call,L8e=Array.prototype.some;ZK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(C8e(e)||M8e(e)?t="array":E8e(e)?t="string":e=k8e(e),S8e(r),i=function(){o=!0},t==="array"){L8e.call(e,function(c){return U7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),U7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(U7.call(r,a,n.value,i),o)return;n=e.next()}}});var QK=N((PIe,$K)=>{"use strict";$K.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var ree=N((NIe,eee)=>{"use strict";var D8e=Av(),G_=R_(),z_=k$(),F8e=Xu(),R8e=L$(),Ju=Zu(),q8e=G7(),P8e=JK(),N8e=Tv().toStringTag,KK=QK(),I8e=Array.isArray,V7=Object.defineProperty,H7=Object.prototype.hasOwnProperty,O8e=Object.getPrototypeOf,Mv;eee.exports=Mv=function(){var e=arguments[0],r;if(!(this instanceof Mv))throw new TypeError("Constructor requires 'new'");return r=KK&&G_&&WeakMap!==Mv?G_(new WeakMap,O8e(this)):this,D8e(e)&&(I8e(e)||(e=q8e(e))),V7(r,"__weakMapData__",Ju("c","$weakMap$"+R8e())),e&&P8e(e,function(t){F8e(t),r.set(t[0],t[1])}),r};KK&&(G_&&G_(Mv,WeakMap),Mv.prototype=Object.create(WeakMap.prototype,{constructor:Ju(Mv)}));Object.defineProperties(Mv.prototype,{delete:Ju(function(e){return H7.call(z_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Ju(function(e){if(H7.call(z_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Ju(function(e){return H7.call(z_(e),this.__weakMapData__)}),set:Ju(function(e,r){return V7(z_(e),this.__weakMapData__,Ju("c",r)),this}),toString:Ju(function(){return"[object WeakMap]"})});V7(Mv.prototype,N8e,Ju("c","WeakMap"))});var Y7=N((IIe,tee)=>{"use strict";tee.exports=p$()()?WeakMap:ree()});var nee=N((OIe,aee)=>{"use strict";aee.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 U_=x0(),B8e=v0(),j7=ii(),z8e=Hf(),G8e=h0(),iee=c$(),U8e=h$(),{float32:H8e,fract32:W7}=T_(),V8e=Y7(),oee=yp(),Y8e=nee(),W8e=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -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:uee.length}),see(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=r7e(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=see({},f,A)),e7e(M,A,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=fee(k),T+=k.length,k),positions:(k,F)=>(k=fee(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=Q8e(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=Z7(F.scale),F.translateFract=Z7(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:V,errors:ae}=F;R&&(M.set(V,H*4),k.set(ae,H*4),E.set(O,H*2))});var _=t7e(E);n(_);var x=Z7(E,_);i(x),o(M),l(k)}}function y(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var pee=N((GIe,dee)=>{var hee=/[\'\"]/;dee.exports=function(r){return r?(hee.test(r.charAt(0))&&(r=r.substr(1)),hee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var J7=N((UIe,n7e)=>{n7e.exports=["inherit","initial","unset"]});var $7=N((HIe,i7e)=>{i7e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Q7=N((VIe,o7e)=>{o7e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var K7=N((YIe,l7e)=>{l7e.exports=["normal","italic","oblique"]});var e9=N((WIe,s7e)=>{s7e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var bee=N((jIe,gee)=>{"use strict";function mee(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 yee(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 r9(e,r){return Array.isArray(e)?yee(e,r):mee(e,r)}r9.parse=mee;r9.stringify=yee;gee.exports=r9});var wee=N((XIe,_ee)=>{"use strict";var xee=bee();_ee.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=xee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{f7e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var t9=N((JIe,Tee)=>{"use strict";var u7e=Aee();Tee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||u7e.indexOf(r)!==-1}}});var kee=N(($Ie,Eee)=>{"use strict";var c7e=pee(),v7e=J7(),h7e=$7(),d7e=Q7(),p7e=K7(),m7e=e9(),a9=wee(),y7e=t9().isSize;Eee.exports=See;var dg=See.cache={};function See(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(dg[e])return dg[e];if(e==="")throw new Error("Cannot parse an empty string.");if(h7e.indexOf(e)!==-1)return dg[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=a9(e,/\s+/),a;a=t.shift();){if(v7e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),dg[e]=r;if(p7e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(m7e.indexOf(a)!==-1){r.stretch=a;continue}if(d7e.indexOf(a)!==-1){r.weight=a;continue}if(y7e(a)){var n=a9(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=Mee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=Mee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=a9(t.join(" "),/\s*,\s*/).map(c7e),dg[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function Mee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var i9=N((QIe,Cee)=>{"use strict";var g7e=Hf(),b7e=t9().isSize,x7e=mg(J7()),_7e=mg($7()),w7e=mg(Q7()),A7e=mg(K7()),T7e=mg(e9()),M7e={normal:1,"small-caps":1},S7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},n9={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Cee.exports=function(r){if(r=g7e(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&&pg(r.system,_7e),r.system;if(pg(r.style,A7e),pg(r.variant,M7e),pg(r.weight,w7e),pg(r.stretch,T7e),r.size==null&&(r.size=n9.size),typeof r.size=="number"&&(r.size+="px"),!b7e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=n9.family),Array.isArray(r.family)&&(r.family.length||(r.family=[n9.family]),r.family=r.family.map(function(a){return S7e[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 pg(e,r){if(e&&!r[e]&&!x7e[e])throw Error("Unknown keyword `"+e+"`");return e}function mg(e){for(var r={},t=0;t{"use strict";Lee.exports={parse:kee(),stringify:i9()}});var Fee=N((o9,l9)=>{(function(e,r){typeof o9=="object"&&typeof l9!="undefined"?l9.exports=r():e.createREGL=r()})(o9,function(){"use strict";var e=function(S,B){for(var Y=Object.keys(B),he=0;he1&&B===Y&&(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,Y=(S>255)<<3,S>>>=Y,B|=Y,Y=(S>15)<<2,S>>>=Y,B|=Y,Y=(S>3)<<1,S>>>=Y,B|=Y,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=re(Ae),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Y(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var Ye=null;switch(Ae){case F:Ye=new Int8Array(B(_e),0,_e);break;case P:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case R:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case V:Ye=new Uint32Array(B(4*_e),0,_e);break;case ae:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(Ae){Y(Ae.buffer)}return{alloc:B,free:Y,allocType:he,freeType:xe}}var j=J();j.zero=J();var oe=3408,se=3410,Le=3411,Ue=3412,Ee=3413,Ve=3414,we=3415,fr=33901,Ie=33902,He=3379,vr=3386,$e=34921,ee=36347,de=36348,ne=35661,qe=35660,Je=34930,Ke=36349,Sr=34076,Er=34024,br=7936,zr=7937,Vr=7938,nt=35724,wr=34047,Yr=36063,et=34852,Pe=3553,or=34067,st=34069,kt=33984,Ar=6408,rr=5126,ur=5121,Hr=36160,ot=36053,Wr=36064,tt=16384,xt=function(S,B){var Y=1;B.ext_texture_filter_anisotropic&&(Y=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(et),xe=S.getParameter(Yr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Ar,1,1,0,Ar,rr,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Hr,Ye),S.framebufferTexture2D(Hr,Wr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Hr)!==ot)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(tt);var ir=j.allocType(rr,4);S.readPixels(0,0,1,1,Ar,rr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(Ye),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(ur,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Ar,3,3,0,Ar,ur,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(se),S.getParameter(Le),S.getParameter(Ue),S.getParameter(Ee)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(oe),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:Y,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(fr),lineWidthDims:S.getParameter(Ie),maxViewportDims:S.getParameter(vr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Sr),maxRenderbufferSize:S.getParameter(Er),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter($e),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(qe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(nt),renderer:S.getParameter(zr),vendor:S.getParameter(br),version:S.getParameter(Vr),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 at(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 gr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Tt};function Oe(S,B,Y){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){dr=Ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var sr=j.allocType(ze.dtype,Be.length);fo(sr,Be),dr(sr,kr),j.freeType(sr)}else if(Array.isArray(Be[0])||jr(Be[0])){hr=Ia(Be);var cr=ia(Be,hr,ze.dtype);dr(cr,kr),j.freeType(cr)}}}else if(at(Be)){hr=Be.shape;var Cr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;hr.length===1?(Zr=hr[0],ct=1,mr=Cr[0],Dr=0):hr.length===2&&(Zr=hr[0],ct=hr[1],mr=Cr[0],Dr=Cr[1]);var ft=Array.isArray(Be.data)?ze.dtype:en(Be.data),ut=j.allocType(ft,Zr*ct);Ii(ut,Be.data,Zr,ct,mr,Dr,Be.offset),dr(ut,kr),j.freeType(ut)}return xr}return Xe||xr(ue),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Xr,Y.profile&&(xr.stats=ze.stats),xr.destroy=function(){Rr(ze)},xr}function Ne(){gr(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 Y.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(){gr(Ae).forEach(Rr),Ye.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var nn=0,$n=0,cs=1,vs=1,Cl=4,tc=4,Bo={points:nn,point:$n,lines:cs,line:vs,triangles:Cl,triangle:tc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$f=0,Qf=1,ji=4,pi=5120,Oi=5121,Ll=5122,mi=5123,Pt=5124,$t=5125,ca=34963,_t=35040,Qn=35044;function za(S,B,Y,he){var xe={},Ae=0,_e={uint8:Oi,uint16:mi};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=ji,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new Ye(Y.create(null,ca,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Xe,ar,ze,xr){Ne.buffer.bind();var dr;if(ue){var Xr=xr;!xr&&(!jr(ue)||at(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:mi),Y._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(ca,ze,ke),Ne.buffer.dtype=dr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(dr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case pi:dr=Oi;break;case mi:case Ll:dr=mi;break;case $t:case Pt:dr=$t;break;default:}Ne.buffer.dtype=dr}Ne.type=dr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,dr===mi?Be>>=1:dr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Xe;if(Xe<0){Re=ji;var kr=Ne.buffer.dimension;kr===1&&(Re=$f),kr===2&&(Re=Qf),kr===3&&(Re=ji)}Ne.primType=Re}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=Y.create(null,ca,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=ji,Xe.vertCount=0,Xe.type=Oi;else if(typeof ze=="number")ke(ze),Xe.primType=ji,Xe.vertCount=ze|0,Xe.type=Oi;else{var xr=null,dr=Qn,Xr=-1,Be=-1,Re=0,kr=0;Array.isArray(ze)||jr(ze)||at(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(dr=Pa[ze.usage]),"primitive"in ze&&(Xr=Bo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(kr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,kr===mi||kr===Ll?Re*=2:(kr===$t||kr===Pt)&&(Re*=4))),$r(Xe,xr,dr,Xr,Be,Re,kr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Rr(Xe)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){gr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),Ao=5123;function ol(S){for(var B=j.allocType(Ao,S.length),Y=0;Y>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[Y]=xe;else if(Ae<-14){var Ye=-14-Ae;B[Y]=xe+(_e+1024>>Ye)}else Ae>15?B[Y]=xe+31744:B[Y]=xe+(Ae+15<<10)+_e}return B}function Ei(S){return Array.isArray(S)||jr(S)}var t1=34467,Mn=3553,Dl=34067,zo=34069,yi=6408,nf=6406,Go=6407,To=6409,Fl=6410,ac=32854,Uo=32855,hs=36194,P0=32819,a1=32820,nc=33635,Bv=34042,ds=6402,Rl=34041,Ho=35904,Mo=35906,gi=36193,of=33776,ps=33777,ll=33778,lf=33779,zv=35986,ic=35987,Kf=34798,Gv=35840,Uv=35841,oc=35842,Hv=35843,lc=36196,So=5121,sf=5123,eu=5125,Bi=5126,ff=10242,n1=10243,i1=10497,ru=33071,N0=33648,tu=10240,o1=10241,ql=9728,sc=9729,ms=9984,uf=9985,ys=9986,sl=9987,I0=33170,fl=4352,l1=4353,fc=4354,s1=34046,f1=3317,u1=37440,O0=37441,au=37443,Vv=37444,Eo=33984,B0=[ms,ys,uf,sl],ki=[0,To,Fl,Go,yi],Sn={};Sn[To]=Sn[nf]=Sn[ds]=1,Sn[Rl]=Sn[Fl]=2,Sn[Go]=Sn[Ho]=3,Sn[yi]=Sn[Mo]=4;function Xi(S){return"[object "+S+"]"}var nu=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),cf=Xi("CanvasRenderingContext2D"),uc=Xi("ImageBitmap"),Yv=Xi("HTMLImageElement"),Wv=Xi("HTMLVideoElement"),c1=Object.keys(Ot).concat([nu,ul,cf,uc,Yv,Wv]),uo=[];uo[So]=1,uo[Bi]=4,uo[gi]=2,uo[sf]=2,uo[eu]=4;var Aa=[];Aa[ac]=2,Aa[Uo]=2,Aa[hs]=2,Aa[Rl]=4,Aa[of]=.5,Aa[ps]=.5,Aa[ll]=1,Aa[lf]=1,Aa[zv]=.5,Aa[ic]=1,Aa[Kf]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[oc]=.5,Aa[Hv]=.25,Aa[lc]=.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||!Ei(S[0]))}function Zi(S){return Object.prototype.toString.call(S)}function Zv(S){return Zi(S)===nu}function Jv(S){return Zi(S)===ul}function v1(S){return Zi(S)===cf}function h1(S){return Zi(S)===uc}function d1(S){return Zi(S)===Yv}function p1(S){return Zi(S)===Wv}function iu(S){if(!S)return!1;var B=Zi(S);return c1.indexOf(B)>=0?!0:jv(S)||Xv(S)||at(S)}function $v(S){return Ot[Object.prototype.toString.call(S)]|0}function m1(S,B){var Y=B.length;switch(S.type){case So:case sf:case eu:case Bi:var he=j.allocType(S.type,Y);he.set(B),S.data=he;break;case gi:S.data=ol(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Bi:S.type,B)}function cc(S,B){S.type===gi?(S.data=ol(B),j.freeType(B)):S.data=B}function z0(S,B,Y,he,xe,Ae){for(var _e=S.width,Ye=S.height,ir=S.channels,nr=_e*Ye*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)Ye+=_e*ir*ir,ir/=2;return Ye}else return _e*Y*he}function G0(S,B,Y,he,xe,Ae,_e){var Ye={"don't care":fl,"dont care":fl,nice:fc,fast:l1},ir={repeat:i1,clamp:ru,mirror:N0},nr={nearest:ql,linear:sc},lr=e({mipmap:sl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":sl},nr),$r={none:0,browser:Vv},Rr={uint8:So,rgba4:P0,rgb565:nc,"rgb5 a1":a1},yr={alpha:nf,luminance:To,"luminance alpha":Fl,rgb:Go,rgba:yi,rgba4:ac,"rgb5 a1":Uo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Ho,yr.srgba=Mo),B.oes_texture_float&&(Rr.float32=Rr.float=Bi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=gi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":Rl}),e(Rr,{uint16:sf,uint32:eu,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":ic,"rgba atc interpolated alpha":Kf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":oc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=lc);var ue=Array.prototype.slice.call(S.getParameter(t1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);Y.textureFormats=ke;var Xe=[];Object.keys(yr).forEach(function(z){var me=yr[z];Xe[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 xr=[];Object.keys(lr).forEach(function(z){var me=lr[z];xr[me]=z});var dr=[];Object.keys(ir).forEach(function(z){var me=ir[z];dr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===To||be===nf||be===To||be===Fl||be===ds||be===Rl||B.ext_srgb&&(be===Ho||be===Mo)?z[be]=be:be===Uo||me.indexOf("rgba")>=0?z[be]=yi:z[be]=Go,z},{});function Be(){this.internalformat=yi,this.format=yi,this.type=So,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 Re(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 kr(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=Sn[z.format]:qr&&!I&&z.channels!==ki[z.format]&&(z.format=z.internalformat=ki[z.channels])}}function hr(z){S.pixelStorei(u1,z.flipY),S.pixelStorei(O0,z.premultiplyAlpha),S.pixelStorei(au,z.colorSpace),S.pixelStorei(f1,z.unpackAlignment)}function sr(){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(iu(me)?be=me:me&&(kr(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),iu(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===So&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,m1(z,be),z.alignment=1,z.needsFree=!0;else if(at(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(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=ki[pe],z.needsFree=!0,z0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||v1(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(h1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(p1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var te=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ei(be[0][0])?K=K||be[0][0].length:K=K||1;for(var W=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=Ye[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 Wa(z,me){S.texParameteri(me,o1,z.minFilter),S.texParameteri(me,tu,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,n1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,s1,z.anisotropic),z.genMipmaps&&(S.hint(I0,z.mipmapHint),S.generateMipmap(me))}var sn=0,ya={},ga=Y.maxTextureUnits,Ea=Array(ga).map(function(){return null});function At(z){Be.call(this),this.mipmask=0,this.internalformat=yi,this.id=sn++,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 Da(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Mn,null)}function ja(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Ea[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ya[z.id],Ae.textureCount--}e(At.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}Ea[be]=z,me=be;break}me>=ga,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Da(be),Zr(fe,Mn,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=$,Da(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(Mn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Pl(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 un(z,me,be,Nr,Ft,Ht){var qr=new At(Dl);ya[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,te,X,K){var W,ve=qr.texInfo;for(Ut.call(ve),W=0;W<6;++W)I[W]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(W=0;W<6;++W)ut(I[W],Ce,Ce)}else if(typeof Te=="object")if(ce)St(I[0],Te),St(I[1],ce),St(I[2],fe),St(I[3],te),St(I[4],X),St(I[5],K);else if(Ua(ve,Te),kr(qr,Te),"faces"in Te){var Ze=Te.faces;for(W=0;W<6;++W)Re(I[W],qr),St(I[W],Ze[W])}else for(W=0;W<6;++W)St(I[W],Te);for(Re(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,Da(qr),W=0;W<6;++W)aa(I[W],zo+W);for(Wa(ve,Dl),Wt(),_e.profile&&(qr.stats.size=Pl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=dr[ve.wrapS],U.wrapT=dr[ve.wrapT],W=0;W<6;++W)ln(I[W]);return U}function $(Te,ce,fe,te,X){var K=fe|0,W=te|0,ve=X|0,Ce=mr();return Re(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)-W,Da(qr),Zr(Ce,zo+Te,K,W,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,Da(qr);for(var fe=0;fe<6;++fe)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(zo+fe,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Pl(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 pt(){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(zo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Wa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?ln=!0:ir.indexOf(Ut)>=0&&(ln=!1))),("depthTexture"in At||"depthStencilTexture"in At)&&(Ea=!!(At.depthTexture||At.depthStencilTexture)),"depth"in At&&(typeof At.depth=="boolean"?aa=At.depth:(sn=At.depth,Sa=!1)),"stencil"in At&&(typeof At.stencil=="boolean"?Sa=At.stencil:(ya=At.stencil,aa=!1)),"depthStencil"in At&&(typeof At.depthStencil=="boolean"?aa=Sa=At.depthStencil:(ga=At.depthStencil,aa=!1,Sa=!1))}var Wt=null,ja=null,fn=null,un=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Wa),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]=Re(Dr)}return e(Cr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===Cr.width)return Cr;var ft=Cr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),Re.buffers[ct]=null)),Re.buffers[ct]||(ut=Re.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,Cr[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=hn[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 St=0;St1)for(var hr=0;hrue&&(ue=ke.stats.uniformsCount)}),ue},Y.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&&(Y=cl(Y,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=Y[Ae]^909522486,xe[Ae]=Y[Ae]^1549556828;var _e=cl(he.concat(fu(B)),512+B.length*8);return dh(cl(xe.concat(_e),768))}function W0(S){for(var B=V0?"0123456789ABCDEF":"0123456789abcdef",Y="",he,xe=0;xe>>4&15)+B.charAt(he&15);return Y}function L1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="",he=S.length,xe=0;xeS.length*8?Y+=k1:Y+=B.charAt(Ae>>>6*(3-_e)&63);return Y}function D1(S,B){var Y=B.length,he=Array(),xe,Ae,_e,Ye,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||Ae>0)&&(Ye[Ye.length]=Ae);he[he.length]=_e,ir=Ye}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 fu(S){for(var B=Array(S.length>>2),Y=0;Y>5]|=(S.charCodeAt(Y/8)&255)<<24-Y%32;return B}function dh(S){for(var B="",Y=0;Y>5]>>>24-Y%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function j0(S,B,Y){return S&B^~S&Y}function X0(S,B,Y){return S&B^S&Y^B&Y}function mh(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Z0(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function pc(S){return Bn(S,7)^Bn(S,18)^ph(S,3)}function mc(S){return Bn(S,17)^Bn(S,19)^ph(S,10)}var R1=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 cl(S,B){var Y=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,Ye,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)+(Y>>16);return he<<16|Y&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function J0(S){var B=S&&S.cache,Y=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(ue,{def:Xe,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function ir(){var Ne=Ye(),ue=Ye(),ke=Ne.toString,Xe=ue.toString;function ar(ze,xr){ue(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,xr,dr){ar(ze,xr),Ne(ze,xr,"=",dr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Lo(arguments),ue=ir(),ke=ir(),Xe=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),$r={};function Rr(Ne,ue){var ke=[];function Xe(){var Xr="a"+ke.length;return ke.push(Xr),Xr}ue=ue||0;for(var ar=0;ar[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:uee.length}),see(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=r7e(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=see({},f,A)),e7e(M,A,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=fee(k),T+=k.length,k),positions:(k,F)=>(k=fee(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=Q8e(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=Z7(F.scale),F.translateFract=Z7(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:V,errors:ae}=F;R&&(M.set(V,H*4),k.set(ae,H*4),E.set(O,H*2))});var _=t7e(E);n(_);var x=Z7(E,_);i(x),o(M),l(k)}}function y(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var pee=N((GIe,dee)=>{var hee=/[\'\"]/;dee.exports=function(r){return r?(hee.test(r.charAt(0))&&(r=r.substr(1)),hee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var J7=N((UIe,n7e)=>{n7e.exports=["inherit","initial","unset"]});var $7=N((HIe,i7e)=>{i7e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Q7=N((VIe,o7e)=>{o7e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var K7=N((YIe,l7e)=>{l7e.exports=["normal","italic","oblique"]});var e9=N((WIe,s7e)=>{s7e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var bee=N((jIe,gee)=>{"use strict";function mee(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 yee(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 r9(e,r){return Array.isArray(e)?yee(e,r):mee(e,r)}r9.parse=mee;r9.stringify=yee;gee.exports=r9});var wee=N((XIe,_ee)=>{"use strict";var xee=bee();_ee.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=xee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{f7e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var t9=N((JIe,Tee)=>{"use strict";var u7e=Aee();Tee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||u7e.indexOf(r)!==-1}}});var kee=N(($Ie,Eee)=>{"use strict";var c7e=pee(),v7e=J7(),h7e=$7(),d7e=Q7(),p7e=K7(),m7e=e9(),a9=wee(),y7e=t9().isSize;Eee.exports=See;var pg=See.cache={};function See(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(h7e.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=a9(e,/\s+/),a;a=t.shift();){if(v7e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),pg[e]=r;if(p7e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(m7e.indexOf(a)!==-1){r.stretch=a;continue}if(d7e.indexOf(a)!==-1){r.weight=a;continue}if(y7e(a)){var n=a9(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=Mee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=Mee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=a9(t.join(" "),/\s*,\s*/).map(c7e),pg[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function Mee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var i9=N((QIe,Cee)=>{"use strict";var g7e=Hf(),b7e=t9().isSize,x7e=yg(J7()),_7e=yg($7()),w7e=yg(Q7()),A7e=yg(K7()),T7e=yg(e9()),M7e={normal:1,"small-caps":1},S7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},n9={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Cee.exports=function(r){if(r=g7e(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,_7e),r.system;if(mg(r.style,A7e),mg(r.variant,M7e),mg(r.weight,w7e),mg(r.stretch,T7e),r.size==null&&(r.size=n9.size),typeof r.size=="number"&&(r.size+="px"),!b7e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=n9.family),Array.isArray(r.family)&&(r.family.length||(r.family=[n9.family]),r.family=r.family.map(function(a){return S7e[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]&&!x7e[e])throw Error("Unknown keyword `"+e+"`");return e}function yg(e){for(var r={},t=0;t{"use strict";Lee.exports={parse:kee(),stringify:i9()}});var Fee=N((o9,l9)=>{(function(e,r){typeof o9=="object"&&typeof l9!="undefined"?l9.exports=r():e.createREGL=r()})(o9,function(){"use strict";var e=function(S,B){for(var Y=Object.keys(B),he=0;he1&&B===Y&&(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,Y=(S>255)<<3,S>>>=Y,B|=Y,Y=(S>15)<<2,S>>>=Y,B|=Y,Y=(S>3)<<1,S>>>=Y,B|=Y,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=re(Ae),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Y(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var Ye=null;switch(Ae){case F:Ye=new Int8Array(B(_e),0,_e);break;case P:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case R:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case V:Ye=new Uint32Array(B(4*_e),0,_e);break;case ae:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(Ae){Y(Ae.buffer)}return{alloc:B,free:Y,allocType:he,freeType:xe}}var j=J();j.zero=J();var oe=3408,se=3410,Le=3411,Ue=3412,Ee=3413,Ve=3414,we=3415,fr=33901,Ie=33902,He=3379,vr=3386,$e=34921,ee=36347,de=36348,ne=35661,qe=35660,Je=34930,Ke=36349,Sr=34076,Er=34024,br=7936,zr=7937,Vr=7938,nt=35724,wr=34047,Yr=36063,et=34852,Pe=3553,or=34067,st=34069,kt=33984,Ar=6408,rr=5126,ur=5121,Hr=36160,ot=36053,Wr=36064,tt=16384,xt=function(S,B){var Y=1;B.ext_texture_filter_anisotropic&&(Y=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(et),xe=S.getParameter(Yr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Ar,1,1,0,Ar,rr,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Hr,Ye),S.framebufferTexture2D(Hr,Wr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Hr)!==ot)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(tt);var ir=j.allocType(rr,4);S.readPixels(0,0,1,1,Ar,rr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(Ye),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(ur,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Ar,3,3,0,Ar,ur,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(se),S.getParameter(Le),S.getParameter(Ue),S.getParameter(Ee)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(oe),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:Y,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(fr),lineWidthDims:S.getParameter(Ie),maxViewportDims:S.getParameter(vr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Sr),maxRenderbufferSize:S.getParameter(Er),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter($e),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(qe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(nt),renderer:S.getParameter(zr),vendor:S.getParameter(br),version:S.getParameter(Vr),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 at(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 gr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Tt};function Oe(S,B,Y){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){dr=Ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var sr=j.allocType(ze.dtype,Be.length);fo(sr,Be),dr(sr,kr),j.freeType(sr)}else if(Array.isArray(Be[0])||jr(Be[0])){hr=Ia(Be);var cr=ia(Be,hr,ze.dtype);dr(cr,kr),j.freeType(cr)}}}else if(at(Be)){hr=Be.shape;var Cr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;hr.length===1?(Zr=hr[0],ct=1,mr=Cr[0],Dr=0):hr.length===2&&(Zr=hr[0],ct=hr[1],mr=Cr[0],Dr=Cr[1]);var ft=Array.isArray(Be.data)?ze.dtype:en(Be.data),ut=j.allocType(ft,Zr*ct);Ii(ut,Be.data,Zr,ct,mr,Dr,Be.offset),dr(ut,kr),j.freeType(ut)}return xr}return Xe||xr(ue),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Xr,Y.profile&&(xr.stats=ze.stats),xr.destroy=function(){Rr(ze)},xr}function Ne(){gr(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 Y.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(){gr(Ae).forEach(Rr),Ye.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var nn=0,$n=0,cs=1,vs=1,Cl=4,tc=4,Bo={points:nn,point:$n,lines:cs,line:vs,triangles:Cl,triangle:tc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$f=0,Qf=1,ji=4,pi=5120,Oi=5121,Ll=5122,mi=5123,Pt=5124,$t=5125,ca=34963,_t=35040,Qn=35044;function za(S,B,Y,he){var xe={},Ae=0,_e={uint8:Oi,uint16:mi};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=ji,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new Ye(Y.create(null,ca,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Xe,ar,ze,xr){Ne.buffer.bind();var dr;if(ue){var Xr=xr;!xr&&(!jr(ue)||at(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:mi),Y._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(ca,ze,ke),Ne.buffer.dtype=dr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(dr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case pi:dr=Oi;break;case mi:case Ll:dr=mi;break;case $t:case Pt:dr=$t;break;default:}Ne.buffer.dtype=dr}Ne.type=dr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,dr===mi?Be>>=1:dr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Xe;if(Xe<0){Re=ji;var kr=Ne.buffer.dimension;kr===1&&(Re=$f),kr===2&&(Re=Qf),kr===3&&(Re=ji)}Ne.primType=Re}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=Y.create(null,ca,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=ji,Xe.vertCount=0,Xe.type=Oi;else if(typeof ze=="number")ke(ze),Xe.primType=ji,Xe.vertCount=ze|0,Xe.type=Oi;else{var xr=null,dr=Qn,Xr=-1,Be=-1,Re=0,kr=0;Array.isArray(ze)||jr(ze)||at(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(dr=Pa[ze.usage]),"primitive"in ze&&(Xr=Bo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(kr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,kr===mi||kr===Ll?Re*=2:(kr===$t||kr===Pt)&&(Re*=4))),$r(Xe,xr,dr,Xr,Be,Re,kr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Rr(Xe)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){gr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),Ao=5123;function ol(S){for(var B=j.allocType(Ao,S.length),Y=0;Y>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[Y]=xe;else if(Ae<-14){var Ye=-14-Ae;B[Y]=xe+(_e+1024>>Ye)}else Ae>15?B[Y]=xe+31744:B[Y]=xe+(Ae+15<<10)+_e}return B}function Ei(S){return Array.isArray(S)||jr(S)}var t1=34467,Mn=3553,Dl=34067,zo=34069,yi=6408,nf=6406,Go=6407,To=6409,Fl=6410,ac=32854,Uo=32855,hs=36194,P0=32819,a1=32820,nc=33635,Bv=34042,ds=6402,Rl=34041,Ho=35904,Mo=35906,gi=36193,of=33776,ps=33777,ll=33778,lf=33779,zv=35986,ic=35987,Kf=34798,Gv=35840,Uv=35841,oc=35842,Hv=35843,lc=36196,So=5121,sf=5123,eu=5125,Bi=5126,ff=10242,n1=10243,i1=10497,ru=33071,N0=33648,tu=10240,o1=10241,ql=9728,sc=9729,ms=9984,uf=9985,ys=9986,sl=9987,I0=33170,fl=4352,l1=4353,fc=4354,s1=34046,f1=3317,u1=37440,O0=37441,au=37443,Vv=37444,Eo=33984,B0=[ms,ys,uf,sl],ki=[0,To,Fl,Go,yi],Sn={};Sn[To]=Sn[nf]=Sn[ds]=1,Sn[Rl]=Sn[Fl]=2,Sn[Go]=Sn[Ho]=3,Sn[yi]=Sn[Mo]=4;function Xi(S){return"[object "+S+"]"}var nu=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),cf=Xi("CanvasRenderingContext2D"),uc=Xi("ImageBitmap"),Yv=Xi("HTMLImageElement"),Wv=Xi("HTMLVideoElement"),c1=Object.keys(Ot).concat([nu,ul,cf,uc,Yv,Wv]),uo=[];uo[So]=1,uo[Bi]=4,uo[gi]=2,uo[sf]=2,uo[eu]=4;var Aa=[];Aa[ac]=2,Aa[Uo]=2,Aa[hs]=2,Aa[Rl]=4,Aa[of]=.5,Aa[ps]=.5,Aa[ll]=1,Aa[lf]=1,Aa[zv]=.5,Aa[ic]=1,Aa[Kf]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[oc]=.5,Aa[Hv]=.25,Aa[lc]=.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||!Ei(S[0]))}function Zi(S){return Object.prototype.toString.call(S)}function Zv(S){return Zi(S)===nu}function Jv(S){return Zi(S)===ul}function v1(S){return Zi(S)===cf}function h1(S){return Zi(S)===uc}function d1(S){return Zi(S)===Yv}function p1(S){return Zi(S)===Wv}function iu(S){if(!S)return!1;var B=Zi(S);return c1.indexOf(B)>=0?!0:jv(S)||Xv(S)||at(S)}function $v(S){return Ot[Object.prototype.toString.call(S)]|0}function m1(S,B){var Y=B.length;switch(S.type){case So:case sf:case eu:case Bi:var he=j.allocType(S.type,Y);he.set(B),S.data=he;break;case gi:S.data=ol(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Bi:S.type,B)}function cc(S,B){S.type===gi?(S.data=ol(B),j.freeType(B)):S.data=B}function z0(S,B,Y,he,xe,Ae){for(var _e=S.width,Ye=S.height,ir=S.channels,nr=_e*Ye*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)Ye+=_e*ir*ir,ir/=2;return Ye}else return _e*Y*he}function G0(S,B,Y,he,xe,Ae,_e){var Ye={"don't care":fl,"dont care":fl,nice:fc,fast:l1},ir={repeat:i1,clamp:ru,mirror:N0},nr={nearest:ql,linear:sc},lr=e({mipmap:sl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":sl},nr),$r={none:0,browser:Vv},Rr={uint8:So,rgba4:P0,rgb565:nc,"rgb5 a1":a1},yr={alpha:nf,luminance:To,"luminance alpha":Fl,rgb:Go,rgba:yi,rgba4:ac,"rgb5 a1":Uo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Ho,yr.srgba=Mo),B.oes_texture_float&&(Rr.float32=Rr.float=Bi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=gi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":Rl}),e(Rr,{uint16:sf,uint32:eu,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":ic,"rgba atc interpolated alpha":Kf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":oc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=lc);var ue=Array.prototype.slice.call(S.getParameter(t1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);Y.textureFormats=ke;var Xe=[];Object.keys(yr).forEach(function(z){var me=yr[z];Xe[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 xr=[];Object.keys(lr).forEach(function(z){var me=lr[z];xr[me]=z});var dr=[];Object.keys(ir).forEach(function(z){var me=ir[z];dr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===To||be===nf||be===To||be===Fl||be===ds||be===Rl||B.ext_srgb&&(be===Ho||be===Mo)?z[be]=be:be===Uo||me.indexOf("rgba")>=0?z[be]=yi:z[be]=Go,z},{});function Be(){this.internalformat=yi,this.format=yi,this.type=So,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 Re(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 kr(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=Sn[z.format]:qr&&!I&&z.channels!==ki[z.format]&&(z.format=z.internalformat=ki[z.channels])}}function hr(z){S.pixelStorei(u1,z.flipY),S.pixelStorei(O0,z.premultiplyAlpha),S.pixelStorei(au,z.colorSpace),S.pixelStorei(f1,z.unpackAlignment)}function sr(){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(iu(me)?be=me:me&&(kr(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),iu(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===So&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,m1(z,be),z.alignment=1,z.needsFree=!0;else if(at(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(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=ki[pe],z.needsFree=!0,z0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||v1(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(h1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(p1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var te=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ei(be[0][0])?K=K||be[0][0].length:K=K||1;for(var W=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=Ye[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 Wa(z,me){S.texParameteri(me,o1,z.minFilter),S.texParameteri(me,tu,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,n1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,s1,z.anisotropic),z.genMipmaps&&(S.hint(I0,z.mipmapHint),S.generateMipmap(me))}var sn=0,ya={},ga=Y.maxTextureUnits,Ea=Array(ga).map(function(){return null});function At(z){Be.call(this),this.mipmask=0,this.internalformat=yi,this.id=sn++,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 Da(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Mn,null)}function ja(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Ea[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ya[z.id],Ae.textureCount--}e(At.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}Ea[be]=z,me=be;break}me>=ga,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Da(be),Zr(fe,Mn,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=$,Da(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(Mn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Pl(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 un(z,me,be,Nr,Ft,Ht){var qr=new At(Dl);ya[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,te,X,K){var W,ve=qr.texInfo;for(Ut.call(ve),W=0;W<6;++W)I[W]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(W=0;W<6;++W)ut(I[W],Ce,Ce)}else if(typeof Te=="object")if(ce)St(I[0],Te),St(I[1],ce),St(I[2],fe),St(I[3],te),St(I[4],X),St(I[5],K);else if(Ua(ve,Te),kr(qr,Te),"faces"in Te){var Ze=Te.faces;for(W=0;W<6;++W)Re(I[W],qr),St(I[W],Ze[W])}else for(W=0;W<6;++W)St(I[W],Te);for(Re(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,Da(qr),W=0;W<6;++W)aa(I[W],zo+W);for(Wa(ve,Dl),Wt(),_e.profile&&(qr.stats.size=Pl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=dr[ve.wrapS],U.wrapT=dr[ve.wrapT],W=0;W<6;++W)ln(I[W]);return U}function $(Te,ce,fe,te,X){var K=fe|0,W=te|0,ve=X|0,Ce=mr();return Re(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)-W,Da(qr),Zr(Ce,zo+Te,K,W,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,Da(qr);for(var fe=0;fe<6;++fe)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(zo+fe,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Pl(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 pt(){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(zo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Wa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?ln=!0:ir.indexOf(Ut)>=0&&(ln=!1))),("depthTexture"in At||"depthStencilTexture"in At)&&(Ea=!!(At.depthTexture||At.depthStencilTexture)),"depth"in At&&(typeof At.depth=="boolean"?aa=At.depth:(sn=At.depth,Sa=!1)),"stencil"in At&&(typeof At.stencil=="boolean"?Sa=At.stencil:(ya=At.stencil,aa=!1)),"depthStencil"in At&&(typeof At.depthStencil=="boolean"?aa=Sa=At.depthStencil:(ga=At.depthStencil,aa=!1,Sa=!1))}var Wt=null,ja=null,fn=null,un=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Wa),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]=Re(Dr)}return e(Cr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===Cr.width)return Cr;var ft=Cr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),Re.buffers[ct]=null)),Re.buffers[ct]||(ut=Re.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,Cr[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=hn[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 St=0;St1)for(var hr=0;hrue&&(ue=ke.stats.uniformsCount)}),ue},Y.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&&(Y=cl(Y,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=Y[Ae]^909522486,xe[Ae]=Y[Ae]^1549556828;var _e=cl(he.concat(fu(B)),512+B.length*8);return dh(cl(xe.concat(_e),768))}function W0(S){for(var B=V0?"0123456789ABCDEF":"0123456789abcdef",Y="",he,xe=0;xe>>4&15)+B.charAt(he&15);return Y}function L1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="",he=S.length,xe=0;xeS.length*8?Y+=k1:Y+=B.charAt(Ae>>>6*(3-_e)&63);return Y}function D1(S,B){var Y=B.length,he=Array(),xe,Ae,_e,Ye,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||Ae>0)&&(Ye[Ye.length]=Ae);he[he.length]=_e,ir=Ye}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 fu(S){for(var B=Array(S.length>>2),Y=0;Y>5]|=(S.charCodeAt(Y/8)&255)<<24-Y%32;return B}function dh(S){for(var B="",Y=0;Y>5]>>>24-Y%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function j0(S,B,Y){return S&B^~S&Y}function X0(S,B,Y){return S&B^S&Y^B&Y}function mh(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Z0(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function pc(S){return Bn(S,7)^Bn(S,18)^ph(S,3)}function mc(S){return Bn(S,17)^Bn(S,19)^ph(S,10)}var R1=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 cl(S,B){var Y=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,Ye,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)+(Y>>16);return he<<16|Y&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function J0(S){var B=S&&S.cache,Y=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(ue,{def:Xe,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function ir(){var Ne=Ye(),ue=Ye(),ke=Ne.toString,Xe=ue.toString;function ar(ze,xr){ue(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,xr,dr){ar(ze,xr),Ne(ze,xr,"=",dr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Lo(arguments),ue=ir(),ke=ir(),Xe=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),$r={};function Rr(Ne,ue){var ke=[];function Xe(){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},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ge={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||at(S)}function tr(S){return S.sort(function(B,Y){return B===fi?-1:Y===fi?1:B=1,he>=2,B)}else if(Y===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(Y===bc)return new De(!1,!1,!1,B);if(Y===pf){for(var Ae=!1,_e=!1,Ye=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new De(Ae,_e,Ye,B)}else return new De(Y===df,Y===gc,Y===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,Y,he,xe,Ae,_e,Ye,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};Y.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=Y.angle_instanced_arrays,ze=Y.webgl_draw_buffers,xr=Y.oes_vertex_array_object,dr={dirty:!0,profile:ue.profile},Xr={},Be=[],Re={},kr={};function hr(I){return I.replace(".","_")}function sr(I,U,$){var pe=hr(I);Be.push(I),Xr[pe]=dr[pe]=!!$,Re[pe]=U}function cr(I,U,$){var pe=hr(I);Be.push(I),Array.isArray($)?(dr[pe]=$.slice(),Xr[pe]=$.slice()):dr[pe]=Xr[pe]=$,kr[pe]=U}function Cr(I){return!!isNaN(I)}sr(xc,I1),sr(yh,N1),cr(gh,"blendColor",[0,0,0,0]),cr(cu,"blendEquationSeparate",[le,le]),cr(vu,"blendFuncSeparate",[ie,Z,ie,Z]),sr(_c,K0,!0),cr(wc,"depthFunc",ye),cr(Ac,"depthRange",[0,1]),cr(Tc,"depthMask",!0),cr(hu,hu,[!0,!0,!0,!0]),sr(mf,Q0),cr(bh,"cullFace",g),cr(du,du,C),cr(yf,yf,1),sr(Mc,Cc),cr(pu,"polygonOffset",[0,0]),sr(gf,rd),sr(bf,Lc),cr(xf,"sampleCoverage",[1,!1]),sr(Sc,O1),cr(mu,"stencilMask",-1),cr(Li,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[g,q,q,q]),sr(yu,ed),cr(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:dr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:Y,timer:yr,isBufferArgs:er},ct={primTypes:Bo,compareFuncs:Me,blendFuncs:Qe,blendEquations:Xe,stencilOps:Fe,glTypes:hn,orientationType:Ge};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return je+U})}));var mr=0;function Dr(){var I=J0({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(kr).forEach(function(K){Array.isArray(dr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var te=I.constants={};Object.keys(ct).forEach(function(K){te[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,W){switch(W.type){case uu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(W.data),".call(",ve.slice(0,Math.max(W.data.length+1,4)),")");case hf:return K.def(Te.props,W.data);case gc:return K.def(Te.context,W.data);case df:return K.def("this",W.data);case Ts:return W.data.append(I,K),W.data.ref;case bc:return W.data.toString();case pf:return W.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var W=B.id(K);if(W in X)return X[W];var ve=nr.scope[W];ve||(ve=nr.scope[W]=new ke);var Ce=X[W]=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,te){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,te){return fe.invoke(te,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),Br(function(fe,te){var X=fe.link(Te),K=fe.shared;te.set(K.framebuffer,".next",X);var W=K.context;return te.set(W,"."+$i,X+".width"),te.set(W,"."+Qi,X+".height"),X})):Br(function(fe,te){var X=fe.shared;te.set(X.framebuffer,".next","null");var K=X.context;return te.set(K,"."+$i,K+"."+Ec),te.set(K,"."+Qi,K+"."+kc),"null"})}else if(Do in pe){var ce=pe[Do];return it(ce,function(fe,te){var X=fe.invoke(te,ce),K=fe.shared,W=K.framebuffer,ve=te.def(W,".getFramebuffer(",X,")");te.set(W,".next",ve);var Ce=K.context;return te.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+Ec),te.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+kc),ve})}else return null}function St(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],W=!0,ve=K.x|0,Ce=K.y|0,Ze,Kr;return"width"in K?Ze=K.width|0:W=!1,"height"in K?Kr=K.height|0:W=!1,new De(!W&&U&&U.thisDep,!W&&U&&U.contextDep,!W&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Mr=Ze;"width"in K||(Mr=Gr.def(Or,".",$i,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",Qi,"-",Ce)),[ve,Ce,Mr,Pr]})}else if(X in Te){var Lr=Te[X],Tr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Mr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Mr,".",$i,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Mr,".",Qi,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Tr.thisDep=Tr.thisDep||U.thisDep,Tr.contextDep=Tr.contextDep||U.contextDep,Tr.propDep=Tr.propDep||U.propDep),Tr}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,".",$i),Gr.def(Or,".",Qi)]}):null}var fe=ce(fi);if(fe){var te=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var W=te.append(X,K),ve=X.shared.context;return K.set(ve,"."+q1,W[2]),K.set(ve,"."+P1,W[3]),W})}return{viewport:fe,scissor_box:ce(hl)}}function aa(I,U){var $=I.static,pe=typeof $[dl]=="string"&&typeof $[Yo]=="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=[],te=0;te"+Pr+"?"+W+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Ze,"(",W,".buffer)){",Jr,"=",Kr,".createStream(",po,",",W,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",W,".buffer);","}",Gr,'="type" in ',W,"?",Ce.glTypes,"[",W,".type]:",Jr,".dtype;",Lr.normalized,"=!!",W,".normalized;");function Or(Mr){K(Lr[Mr],"=",W,".",Mr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,te)}),Te}function Wa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,te){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,te){return fe.invoke(te,ce)})}),pe}function sn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,te=aa(I,U),X=ut(I,Te),K=St(I,X,Te),W=Dt(I,Te),ve=ln(I,Te),Ce=Sa(I,Te,te);function Ze(Or){var Mr=K[Or];Mr&&(ve[Or]=Mr)}Ze(fi),Ze(hr(hl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:W,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=W.vao,!Lr.drawVAO&&Ce.program&&!te&&Y.angle_instanced_arrays&&W.static.elements){var Tr=!0,Jr=Ce.program.attributes.map(function(Or){var Mr=U.static[Or];return Tr=Tr&&!!Mr,Mr});if(Tr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:W.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Mr){return Or.link(Gr)}),Lr.useVAO=!0}}return te?Lr.useVAO=!0:Lr.attributes=Ua(U,Te),Lr.context=Wa(pe,Te),Lr}function ya(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var te=$[fe],X=te.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ga(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,W=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(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",W,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function Ea(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,te=pe.current,X=pe.next,K=I.cond(te,".dirty");Be.forEach(function(W){var ve=hr(W);if(!(ve in $.state)){var Ce,Ze;if(ve in fe){Ce=fe[ve],Ze=ce[ve];var Kr=k(dr[ve].length,function(Tr){return K.def(Ce,"[",Tr,"]")});K(I.cond(Kr.map(function(Tr,Jr){return Tr+"!=="+Ze+"["+Jr+"]"}).join("||")).then(Te,".",kr[ve],"(",Kr,");",Kr.map(function(Tr,Jr){return Ze+"["+Jr+"]="+Tr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",te,".",ve);K(Lr),ve in Re?Lr(I.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Lr(Te,".",kr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function At(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,te=Te.gl,X;tr(Object.keys($)).forEach(function(K){var W=$[K];if(!(pe&&!pe(W))){var ve=W.append(I,U);if(Re[K]){var Ce=Re[K];Fr(W)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ei(ve)){var Ze=ce[K];U(te,".",kr[K],"(",ve,");",ve.map(function(Kr,Lr){return Ze+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(W)?(X=I.link(ve,{stable:!0}),U(te,".",kr[K],"(",X,");",fe,".",K,"=",X,";")):U(te,".",kr[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Da(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,te=ce.current,X=ce.timer,K=$.profile;function W(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Ze(Or){ve=U.def(),Or(ve,"=",W(),";"),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+=",W(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Mr=U.def(te,".profile");U(te,".profile=",Or,";"),U.exit(te,".profile=",Mr,";")}var Tr;if(K){if(Fr(K)){K.enable?(Ze(U),Kr(U.exit),Lr("true")):Lr("false");return}Tr=K.append(I,U),Lr(Tr)}else Tr=U.def(te,".profile");var Jr=I.block();Ze(Jr),U("if(",Tr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Tr,"){",Gr,"}")}function ja(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case pl:case Ol:case Bl:return 2;case on:case Ss:case Tf:return 3;case Af:case xu:case wu:return 4;default:return 1}}function te(X,K,W){var ve=ce.gl,Ce=U.def(X,".location"),Ze=U.def(ce.attributes,"[",Ce,"]"),Kr=W.state,Lr=W.buffer,Tr=[W.x,W.y,W.z,W.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Ze,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Mr=W.type,Pr;if(W.size?Pr=U.def(W.size,"||",K):Pr=K,U("if(",Ze,".type!==",Mr,"||",Ze,".size!==",Pr,"||",Jr.map(function(vt){return Ze+"."+vt+"!=="+W[vt]}).join("||"),"){",ve,".bindBuffer(",po,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Mr,W.normalized,W.stride,W.offset],");",Ze,".type=",Mr,";",Ze,".size=",Pr,";",Jr.map(function(vt){return Ze+"."+vt+"="+W[vt]+";"}).join(""),"}"),ar){var Ir=W.divisor;U("if(",Ze,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Ze,".divisor=",Ir,";}")}}function Or(){U("if(",Ze,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Ze,".buffer=null;","}if(",co.map(function(Mr,Pr){return Ze+"."+Mr+"!=="+Tr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Tr,");",co.map(function(Mr,Pr){return Ze+"."+Mr+"="+Tr[Pr]+";"}).join(""),"}")}Kr===Ji?Gr():Kr===As?Or():(U("if(",Kr,"===",Ji,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,W=$.attributes[K],ve;if(W){if(!Te(W))return;ve=W.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Ze){ve[Ze]=U.def(Ce,".",Ze)})}te(I.link(X),fe(X.info.type),ve)})}function fn(I,U,$,pe,Te,ce){for(var fe=I.shared,te=fe.gl,X,K=0;K1){for(var cn=[],Fi=[],Ki=0;Ki>1)",Lr],");")}function Ir(){$(Tr,".drawArraysInstancedANGLE(",[Ce,Ze,Kr,Lr],");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Mr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Ze+"<<(("+Jr+"-"+yc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Ze,Kr]+");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Mr(),$("}")):Or():Mr()}function pt(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){Da(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);"),ja(I,U,$,pe.attributes,function(){return!0})),fn(I,U,$,pe.uniforms,function(){return!0},!1),un(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Da(I,$),ya(I,$,U.context),ga(I,$,U.framebuffer),Ea(I,$,U),At(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(te){return pt(qt,I,U,te,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",Da(I,U);function Te(){return!0}ja(I,U,$,pe.attributes,Te),fn(I,U,$,pe.uniforms,Te,!1),un(I,U,U,$)}function me(I,U,$,pe){Da(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",te="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),W=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",X,"=",fe,"[",ce,"];",W,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ya(I,W,$.context),$.needsFramebuffer&&ga(I,W,$.framebuffer),At(I,W,$.state,ve),$.profile&&ve($.profile)&&Wt(I,W,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?W(I.shared.vao,".setVAO(",$.drawVAO.append(I,W),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),ja(I,K,$,pe.attributes,Ce),ja(I,W,$,pe.attributes,ve)),fn(I,K,$,pe.uniforms,Ce,!1),fn(I,W,$,pe.uniforms,ve,!0),un(I,K,W,$);else{var Ze=I.global.def("{}"),Kr=$.shader.progVar.append(I,W),Lr=W.def(Kr,".id"),Tr=W.def(Ze,"[",Lr,"]");W(I.shared.gl,".useProgram(",Kr,".program);","if(!",Tr,"){",Tr,"=",Ze,"[",Lr,"]=",I.link(function(Jr){return pt(z,I,$,Jr,2)}),"(",Kr,");}",Tr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Da(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Ze){pe=pe||U.context[Ze].propDep}),pe||(ya(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ga(I,$,ce)):ga(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function te(Ze){return Ze.contextDep&&pe||Ze.propDep}Ea(I,$,U),At(I,$,U.state,function(Ze){return!te(Ze)}),(!U.profile||!te(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 W=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(W,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",W,"[",ve,"]=",I.link(function(Ze){return pt(me,I,U,Ze,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(ya(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),tr(Object.keys(U.state)).forEach(function(te){var X=U.state[te],K=X.append(I,$);Ei(K)?K.forEach(function(W,ve){Cr(W)?$.set(I.next[te],"["+ve+"]",W):$.set(I.next[te],"["+ve+"]",I.link(W,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+te,I.link(K,{stable:!0})):$.set(pe.next,"."+te,K)}),Wt(I,$,U,!0,!0),[vo,gu,Ro,bi,Fo].forEach(function(te){var X=U.draw[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.draw,"."+te,K):$.set(pe.draw,"."+te,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var X=U.uniforms[te].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return Cr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(te),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(te){var X=U.attributes[te].append(I,$),K=I.scopeAttrib(te);Object.keys(new ke).forEach(function(W){$.set(K,"."+W,X[W])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);Cr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(te){var X=U.shader[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.shader,"."+te,K):$.set(pe.shader,"."+te,I.link(K,{stable:!0}))}}fe(Yo),fe(dl),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"||Ei(I))){for(var U=Object.keys(I),$=0;$=0;--pt){var qt=Zr[pt];qt&&qt(Ne,null,0)}Y.flush(),lr&&lr.update()}function St(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Sa(pt){pt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(pt){Y.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),Re.restore(),kr.restore(),xr.restore(),lr&&lr.restore(),hr.procs.refresh(),St(),mr.forEach(function(qt){qt()})}Cr&&(Cr.addEventListener(jt,Sa,!1),Cr.addEventListener(va,Dt,!1));function ln(){Zr.length=0,aa(),Cr&&(Cr.removeEventListener(jt,Sa),Cr.removeEventListener(va,Dt)),Xr.clear(),kr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(pt){pt()})}function Ut(pt){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 te(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(W){fe[X+"."+W]=K[W]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var te={},X={};return Object.keys(ce).forEach(function(K){var W=ce[K];if(v.isDynamic(W)){X[K]=v.unbox(W,K);return}else if(fe&&Array.isArray(W)){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 Ua=kr.setFBO=Ut({framebuffer:v.define.call(null,Ya,"framebuffer")});function Wa(pt,qt){var Qt=0;hr.procs.poll();var z=qt.color;z&&(Y.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=_n),"depth"in qt&&(Y.clearDepth(+qt.depth),Qt|=Ca),"stencil"in qt&&(Y.clearStencil(qt.stencil|0),Qt|=dt),Y.clear(Qt)}function sn(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ua(e({framebuffer:pt.framebuffer.faces[qt]},pt),Wa);else Ua(pt,Wa);else Wa(null,pt)}function ya(pt){Zr.push(pt);function qt(){var Qt=ei(Zr,pt);function z(){var me=ei(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return St(),{cancel:qt}}function ga(){var pt=cr.viewport,qt=cr.scissor_box;pt[0]=pt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=qt[2]=Y.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=qt[3]=Y.drawingBufferHeight}function Ea(){Ne.tick+=1,Ne.time=Da(),ga(),hr.procs.poll()}function At(){Be.refresh(),ga(),hr.procs.refresh(),lr&&lr.update()}function Da(){return(p()-$r)/1e3}At();function Wt(pt,qt){var Qt;switch(pt){case"frame":return ya(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:sr,destroy:ln,_gl:Y,_refresh:At,poll:function(){Ea(),lr&&lr.update()},now:Da,stats:Ye,getCachedCode:ja,preloadCachedCode:fn});return B.onDone(null,un),un}return Di})});var Iee=N((eOe,Nee)=>{"use strict";var E7e=Hf();Nee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},qee(r)?r={container:r}:k7e(r)?r={container:r}:C7e(r)?r={gl:r}:r=E7e(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}qee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Pee(),r.container.appendChild(r.canvas),Ree(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Pee(),r.container.appendChild(r.canvas),Ree(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 Ree(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 qee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function k7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function C7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Pee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Bee=N((rOe,Oee)=>{"use strict";var L7e=i9(),D7e=[32,126];Oee.exports=F7e;function F7e(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||D7e;if(a&&typeof a!="string"&&(a=L7e(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 f9=N(li=>{"use strict";"use restrict";var s9=32;li.INT_BITS=s9;li.INT_MAX=2147483647;li.INT_MIN=-1<0)-(e<0)};li.abs=function(e){var r=e>>s9-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 zee(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=zee;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 yg=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|yg[e>>>16&255]<<8|yg[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>>>zee(e)+1}});var Hee=N((aOe,Uee)=>{"use strict";function Gee(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 R7e(e|0,r);break;case"object":if(typeof e.length=="number")return Gee(e,r,0);break}return[]}Uee.exports=q7e});var Wee=N(H_=>{"use strict";H_.byteLength=N7e;H_.toByteArray=O7e;H_.fromByteArray=G7e;var Yf=[],ss=[],P7e=typeof Uint8Array!="undefined"?Uint8Array:Array,u9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S0=0,Vee=u9.length;S00)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 N7e(e){var r=Yee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function I7e(e,r,t){return(r+t)*3/4-t}function O7e(e){var r,t=Yee(e),a=t[0],n=t[1],i=new P7e(I7e(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=ss[e.charCodeAt(s)]<<2|ss[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=ss[e.charCodeAt(s)]<<10|ss[e.charCodeAt(s+1)]<<4|ss[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function B7e(e){return Yf[e>>18&63]+Yf[e>>12&63]+Yf[e>>6&63]+Yf[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(Yf[r>>2]+Yf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Yf[r>>10]+Yf[r>>4&63]+Yf[r<<2&63]+"=")),n.join("")}});var jee=N(c9=>{c9.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)};c9.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 ure=N(Wp=>{"use strict";var v9=Wee(),Vp=jee(),Xee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wp.Buffer=rt;Wp.SlowBuffer=j7e;Wp.INSPECT_MAX_BYTES=50;var V_=2147483647;Wp.kMaxLength=V_;rt.TYPED_ARRAY_SUPPORT=U7e();!rt.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 U7e(){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(rt.prototype,"parent",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.buffer}});Object.defineProperty(rt.prototype,"offset",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.byteOffset}});function $u(e){if(e>V_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,rt.prototype),r}function rt(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 m9(e)}return Qee(e,r,t)}rt.poolSize=8192;function Qee(e,r,t){if(typeof e=="string")return V7e(e,r);if(ArrayBuffer.isView(e))return Y7e(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(Wf(e,ArrayBuffer)||e&&Wf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Wf(e,SharedArrayBuffer)||e&&Wf(e.buffer,SharedArrayBuffer)))return d9(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 rt.from(a,r,t);let n=W7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return rt.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)}rt.from=function(e,r,t){return Qee(e,r,t)};Object.setPrototypeOf(rt.prototype,Uint8Array.prototype);Object.setPrototypeOf(rt,Uint8Array);function Kee(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 Kee(e),e<=0?$u(e):r!==void 0?typeof t=="string"?$u(e).fill(r,t):$u(e).fill(r):$u(e)}rt.alloc=function(e,r,t){return H7e(e,r,t)};function m9(e){return Kee(e),$u(e<0?0:y9(e)|0)}rt.allocUnsafe=function(e){return m9(e)};rt.allocUnsafeSlow=function(e){return m9(e)};function V7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!rt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=ere(e,r)|0,a=$u(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function h9(e){let r=e.length<0?0:y9(e.length)|0,t=$u(r);for(let a=0;a=V_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V_.toString(16)+" bytes");return e|0}function j7e(e){return+e!=e&&(e=0),rt.alloc(+e)}rt.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==rt.prototype};rt.compare=function(r,t){if(Wf(r,Uint8Array)&&(r=rt.from(r,r.offset,r.byteLength)),Wf(t,Uint8Array)&&(t=rt.from(t,t.offset,t.byteLength)),!rt.isBuffer(r)||!rt.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?(rt.isBuffer(o)||(o=rt.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(rt.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ere(e,r){if(rt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wf(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 p9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return fre(e).length;default:if(n)return a?-1:p9(e).length;r=(""+r).toLowerCase(),n=!0}}rt.byteLength=ere;function X7e(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 n9e(this,r,t);case"utf8":case"utf-8":return tre(this,r,t);case"ascii":return t9e(this,r,t);case"latin1":case"binary":return a9e(this,r,t);case"base64":return e9e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i9e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}rt.prototype._isBuffer=!0;function E0(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}rt.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+=" ... "),""};Xee&&(rt.prototype[Xee]=rt.prototype.inspect);rt.prototype.compare=function(r,t,a,n,i){if(Wf(r,Uint8Array)&&(r=rt.from(r,r.offset,r.byteLength)),!rt.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,b9(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=rt.from(r,a)),rt.isBuffer(r))return r.length===0?-1:Zee(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):Zee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Zee(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 Z7e(this,r,t,a);case"utf8":case"utf-8":return J7e(this,r,t,a);case"ascii":case"latin1":case"binary":return $7e(this,r,t,a);case"base64":return Q7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function e9e(e,r,t){return r===0&&t===e.length?v9.fromByteArray(e):v9.fromByteArray(e.slice(r,t))}function tre(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 r9e(a)}var Jee=4096;function r9e(e){let r=e.length;if(r<=Jee)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")}rt.prototype.readUintLE=rt.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Wi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};rt.prototype.readUint8=rt.prototype.readUInt8=function(r,t){return r=r>>>0,t||Wi(r,1,this.length),this[r]};rt.prototype.readUint16LE=rt.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Wi(r,2,this.length),this[r]|this[r+1]<<8};rt.prototype.readUint16BE=rt.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Wi(r,2,this.length),this[r]<<8|this[r+1]};rt.prototype.readUint32LE=rt.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};rt.prototype.readUint32BE=rt.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};rt.prototype.readBigUInt64LE=Sv(function(r){r=r>>>0,Yp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&gg(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,Yp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&gg(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||Wi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};rt.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wi(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};rt.prototype.readInt8=function(r,t){return r=r>>>0,t||Wi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};rt.prototype.readInt16LE=function(r,t){r=r>>>0,t||Wi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};rt.prototype.readInt16BE=function(r,t){r=r>>>0,t||Wi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};rt.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};rt.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};rt.prototype.readBigInt64LE=Sv(function(r){r=r>>>0,Yp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&gg(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,Yp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&gg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Wi(r,4,this.length),Vp.read(this,r,!0,23,4)};rt.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),Vp.read(this,r,!1,23,4)};rt.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Wi(r,8,this.length),Vp.read(this,r,!0,52,8)};rt.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Wi(r,8,this.length),Vp.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!rt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}rt.prototype.writeUintLE=rt.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;nl(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;nl(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};rt.prototype.writeUint8=rt.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};rt.prototype.writeUint16LE=rt.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};rt.prototype.writeUint16BE=rt.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};rt.prototype.writeUint32LE=rt.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeUint32BE=rt.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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 are(e,r,t,a,n){sre(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 nre(e,r,t,a,n){sre(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}rt.prototype.writeBigUInt64LE=Sv(function(r,t=0){return are(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});rt.prototype.writeBigUInt64BE=Sv(function(r,t=0){return nre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});rt.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(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};rt.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(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};rt.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};rt.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};rt.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};rt.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeBigInt64LE=Sv(function(r,t=0){return are(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});rt.prototype.writeBigInt64BE=Sv(function(r,t=0){return nre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ire(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 ore(e,r,t,a,n){return r=+r,t=t>>>0,n||ire(e,r,t,4,34028234663852886e22,-34028234663852886e22),Vp.write(e,r,t,a,23,4),t+4}rt.prototype.writeFloatLE=function(r,t,a){return ore(this,r,t,!0,a)};rt.prototype.writeFloatBE=function(r,t,a){return ore(this,r,t,!1,a)};function lre(e,r,t,a,n){return r=+r,t=t>>>0,n||ire(e,r,t,8,17976931348623157e292,-17976931348623157e292),Vp.write(e,r,t,a,52,8),t+8}rt.prototype.writeDoubleLE=function(r,t,a){return lre(this,r,t,!0,a)};rt.prototype.writeDoubleBE=function(r,t,a){return lre(this,r,t,!1,a)};rt.prototype.copy=function(r,t,a,n){if(!rt.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=$ee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=$ee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function $ee(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 o9e(e,r,t){Yp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&gg(r,e.length-(t+1))}function sre(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 Hp.ERR_OUT_OF_RANGE("value",l,e)}o9e(a,n,i)}function Yp(e,r){if(typeof e!="number")throw new Hp.ERR_INVALID_ARG_TYPE(r,"number",e)}function gg(e,r,t){throw Math.floor(e)!==e?(Yp(e,t),new Hp.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Hp.ERR_BUFFER_OUT_OF_BOUNDS:new Hp.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var l9e=/[^+/0-9A-Za-z-_]/g;function s9e(e){if(e=e.split("=")[0],e=e.trim().replace(l9e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function p9(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 f9e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function fre(e){return v9.toByteArray(s9e(e))}function Y_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Wf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function b9(e){return e!==e}var c9e=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"?v9e:e}function v9e(){throw new Error("BigInt not supported")}});var Mre=N(Na=>{"use strict";var Ev=f9(),lo=Hee(),cre=ure().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:lo([32,0]),UINT16:lo([32,0]),UINT32:lo([32,0]),BIGUINT64:lo([32,0]),INT8:lo([32,0]),INT16:lo([32,0]),INT32:lo([32,0]),BIGINT64:lo([32,0]),FLOAT:lo([32,0]),DOUBLE:lo([32,0]),DATA:lo([32,0]),UINT8C:lo([32,0]),BUFFER:lo([32,0])});var h9e=typeof Uint8ClampedArray!="undefined",d9e=typeof BigUint64Array!="undefined",p9e=typeof BigInt64Array!="undefined",hi=window.__TYPEDARRAY_POOL;hi.UINT8C||(hi.UINT8C=lo([32,0]));hi.BIGUINT64||(hi.BIGUINT64=lo([32,0]));hi.BIGINT64||(hi.BIGINT64=lo([32,0]));hi.BUFFER||(hi.BUFFER=lo([32,0]));var W_=hi.DATA,j_=hi.BUFFER;Na.free=function(r){if(cre.isBuffer(r))j_[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;W_[a].push(r)}};function vre(e){if(e){var r=e.length||e.byteLength,t=Ev.log2(r);W_[t].push(e)}}function m9e(e){vre(e.buffer)}Na.freeUint8=Na.freeUint16=Na.freeUint32=Na.freeBigUint64=Na.freeInt8=Na.freeInt16=Na.freeInt32=Na.freeBigInt64=Na.freeFloat32=Na.freeFloat=Na.freeFloat64=Na.freeDouble=Na.freeUint8Clamped=Na.freeDataView=m9e;Na.freeArrayBuffer=vre;Na.freeBuffer=function(r){j_[Ev.log2(r.length)].push(r)};Na.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return x9(r);case"uint16":return hre(r);case"uint32":return dre(r);case"int8":return pre(r);case"int16":return mre(r);case"int32":return yre(r);case"float":case"float32":return gre(r);case"double":case"float64":return bre(r);case"uint8_clamped":return xre(r);case"bigint64":return wre(r);case"biguint64":return _re(r);case"buffer":return Tre(r);case"data":case"dataview":return Are(r);default:return null}return null};function il(r){var r=Ev.nextPow2(r),t=Ev.log2(r),a=W_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Na.mallocArrayBuffer=il;function x9(e){return new Uint8Array(il(e),0,e)}Na.mallocUint8=x9;function hre(e){return new Uint16Array(il(2*e),0,e)}Na.mallocUint16=hre;function dre(e){return new Uint32Array(il(4*e),0,e)}Na.mallocUint32=dre;function pre(e){return new Int8Array(il(e),0,e)}Na.mallocInt8=pre;function mre(e){return new Int16Array(il(2*e),0,e)}Na.mallocInt16=mre;function yre(e){return new Int32Array(il(4*e),0,e)}Na.mallocInt32=yre;function gre(e){return new Float32Array(il(4*e),0,e)}Na.mallocFloat32=Na.mallocFloat=gre;function bre(e){return new Float64Array(il(8*e),0,e)}Na.mallocFloat64=Na.mallocDouble=bre;function xre(e){return h9e?new Uint8ClampedArray(il(e),0,e):x9(e)}Na.mallocUint8Clamped=xre;function _re(e){return d9e?new BigUint64Array(il(8*e),0,e):null}Na.mallocBigUint64=_re;function wre(e){return p9e?new BigInt64Array(il(8*e),0,e):null}Na.mallocBigInt64=wre;function Are(e){return new DataView(il(e),0,e)}Na.mallocDataView=Are;function Tre(e){e=Ev.nextPow2(e);var r=Ev.log2(e),t=j_[r];return t.length>0?t.pop():new cre(e)}Na.mallocBuffer=Tre;Na.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,W_[r].length=0,j_[r].length=0}});var Ere=N((fOe,Sre)=>{"use strict";var y9e=Object.prototype.toString;Sre.exports=function(e){var r;return y9e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var _9=N((uOe,kre)=>{kre.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 Dre=N((cOe,Lre)=>{"use strict";var g9e=_9();Lre.exports=Cre;var bg=96;function w9(e,r){var t=g9e(getComputedStyle(e).getPropertyValue(r));return t[0]*Cre(t[1],e)}function b9e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=w9(t,"font-size")/128;return r.removeChild(t),a}function Cre(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 b9e(e,r);case"em":return w9(r,"font-size");case"rem":return w9(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 bg;case"cm":return bg/2.54;case"mm":return bg/25.4;case"pt":return bg/72;case"pc":return bg/6}return 1}});var qre=N((vOe,Rre)=>{"use strict";Rre.exports=J_;var x9e=J_.canvas=document.createElement("canvas"),X_=x9e.getContext("2d"),Fre=Z_([32,126]);J_.createPairs=Z_;J_.ascii=Fre;function J_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=Z_(r):Array.isArray(r)?a=r:(r.o?a=Z_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=Fre),X_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function Z_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Ire.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 Pre(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=jf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var y=jf(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=jf(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=jf(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 _=jf(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=jf(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=jf(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=jf(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=jf(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=jf(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=Nre(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=Nre(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,Pre(d,l)}function Pre(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 jf(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 Ure=N((dOe,Gre)=>{"use strict";var jp=Dee(),_9e=Hf(),w9e=Fee(),A9e=Iee(),T9e=Y7(),A9=x0(),M9e=Bee(),Cv=Mre(),S9e=yp(),E9e=Ere(),k9e=_9(),C9e=Dre(),L9e=qre(),D9e=ii(),F9e=Ore(),R9e=h0(),q9e=f9(),Bre=q9e.nextPow2,zre=new T9e,Q_=!1;document.body&&($_=document.body.appendChild(document.createElement("div")),$_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle($_).fontStretch&&(Q_=!0),document.body.removeChild($_));var $_,Ja=function(r){P9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=A9e(r),this.shader=zre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||w9e({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(),zre.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(E9e(r)?r:{})};Ja.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=C1(ue),B[ke]))return B[ke].apply(null,xe);var Xe=Function.apply(null,he.concat(ue));return B&&(B[ke]=Xe),Xe.apply(null,xe)}return{global:lr,link:_e,block:Ye,proc:Rr,scope:ir,cond:nr,compile:yr}}var co="xyzw".split(""),yc=5121,Ji=1,As=2,uu=0,hf=1,gc=2,df=3,Ts=4,bc=5,pf=6,xc="dither",yh="blend.enable",gh="blend.color",cu="blend.equation",vu="blend.func",_c="depth.enable",wc="depth.func",Ac="depth.range",Tc="depth.mask",hu="colorMask",mf="cull.enable",bh="cull.face",du="frontFace",yf="lineWidth",Mc="polygonOffset.enable",pu="polygonOffset.offset",gf="sample.alpha",bf="sample.enable",xf="sample.coverage",Sc="stencil.enable",mu="stencil.mask",Li="stencil.func",_f="stencil.opFront",vl="stencil.opBack",yu="scissor.enable",hl="scissor.box",fi="viewport",Ms="profile",Do="framebuffer",Yo="vert",dl="frag",vo="elements",Fo="primitive",Ro="count",gu="offset",bi="instances",Il="vao",wf="Width",ho="Height",$i=Do+wf,Qi=Do+ho,q1=fi+wf,P1=fi+ho,xh="drawingBuffer",Ec=xh+wf,kc=xh+ho,$0=[vu,cu,Li,_f,vl,xf,fi,hl,pu],po=34962,bu=34963,Q0=2884,N1=3042,I1=3024,O1=2960,K0=2929,ed=3089,Cc=32823,rd=32926,Lc=32928,Dc=5126,pl=35664,on=35665,Af=35666,ml=5124,Ol=35667,Ss=35668,xu=35669,_u=35670,Bl=35671,Tf=35672,wu=35673,Au=35674,Tu=35675,Mu=35676,Es=35678,Su=35680,Eu=4,h=1028,g=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,Z=0,ie=1,le=32774,ye=513,ge=36160,je=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},Ge={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||at(S)}function tr(S){return S.sort(function(B,Y){return B===fi?-1:Y===fi?1:B=1,he>=2,B)}else if(Y===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(Y===bc)return new De(!1,!1,!1,B);if(Y===pf){for(var Ae=!1,_e=!1,Ye=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new De(Ae,_e,Ye,B)}else return new De(Y===df,Y===gc,Y===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,Y,he,xe,Ae,_e,Ye,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};Y.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=Y.angle_instanced_arrays,ze=Y.webgl_draw_buffers,xr=Y.oes_vertex_array_object,dr={dirty:!0,profile:ue.profile},Xr={},Be=[],Re={},kr={};function hr(I){return I.replace(".","_")}function sr(I,U,$){var pe=hr(I);Be.push(I),Xr[pe]=dr[pe]=!!$,Re[pe]=U}function cr(I,U,$){var pe=hr(I);Be.push(I),Array.isArray($)?(dr[pe]=$.slice(),Xr[pe]=$.slice()):dr[pe]=Xr[pe]=$,kr[pe]=U}function Cr(I){return!!isNaN(I)}sr(xc,I1),sr(yh,N1),cr(gh,"blendColor",[0,0,0,0]),cr(cu,"blendEquationSeparate",[le,le]),cr(vu,"blendFuncSeparate",[ie,Z,ie,Z]),sr(_c,K0,!0),cr(wc,"depthFunc",ye),cr(Ac,"depthRange",[0,1]),cr(Tc,"depthMask",!0),cr(hu,hu,[!0,!0,!0,!0]),sr(mf,Q0),cr(bh,"cullFace",g),cr(du,du,C),cr(yf,yf,1),sr(Mc,Cc),cr(pu,"polygonOffset",[0,0]),sr(gf,rd),sr(bf,Lc),cr(xf,"sampleCoverage",[1,!1]),sr(Sc,O1),cr(mu,"stencilMask",-1),cr(Li,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[g,q,q,q]),sr(yu,ed),cr(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:dr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:Y,timer:yr,isBufferArgs:er},ct={primTypes:Bo,compareFuncs:Me,blendFuncs:Qe,blendEquations:Xe,stencilOps:Fe,glTypes:hn,orientationType:Ge};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return je+U})}));var mr=0;function Dr(){var I=J0({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(kr).forEach(function(K){Array.isArray(dr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var te=I.constants={};Object.keys(ct).forEach(function(K){te[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,W){switch(W.type){case uu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(W.data),".call(",ve.slice(0,Math.max(W.data.length+1,4)),")");case hf:return K.def(Te.props,W.data);case gc:return K.def(Te.context,W.data);case df:return K.def("this",W.data);case Ts:return W.data.append(I,K),W.data.ref;case bc:return W.data.toString();case pf:return W.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var W=B.id(K);if(W in X)return X[W];var ve=nr.scope[W];ve||(ve=nr.scope[W]=new ke);var Ce=X[W]=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,te){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,te){return fe.invoke(te,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),Br(function(fe,te){var X=fe.link(Te),K=fe.shared;te.set(K.framebuffer,".next",X);var W=K.context;return te.set(W,"."+$i,X+".width"),te.set(W,"."+Qi,X+".height"),X})):Br(function(fe,te){var X=fe.shared;te.set(X.framebuffer,".next","null");var K=X.context;return te.set(K,"."+$i,K+"."+Ec),te.set(K,"."+Qi,K+"."+kc),"null"})}else if(Do in pe){var ce=pe[Do];return it(ce,function(fe,te){var X=fe.invoke(te,ce),K=fe.shared,W=K.framebuffer,ve=te.def(W,".getFramebuffer(",X,")");te.set(W,".next",ve);var Ce=K.context;return te.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+Ec),te.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+kc),ve})}else return null}function St(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],W=!0,ve=K.x|0,Ce=K.y|0,Ze,Kr;return"width"in K?Ze=K.width|0:W=!1,"height"in K?Kr=K.height|0:W=!1,new De(!W&&U&&U.thisDep,!W&&U&&U.contextDep,!W&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Mr=Ze;"width"in K||(Mr=Gr.def(Or,".",$i,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",Qi,"-",Ce)),[ve,Ce,Mr,Pr]})}else if(X in Te){var Lr=Te[X],Tr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Mr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Mr,".",$i,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Mr,".",Qi,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Tr.thisDep=Tr.thisDep||U.thisDep,Tr.contextDep=Tr.contextDep||U.contextDep,Tr.propDep=Tr.propDep||U.propDep),Tr}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,".",$i),Gr.def(Or,".",Qi)]}):null}var fe=ce(fi);if(fe){var te=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var W=te.append(X,K),ve=X.shared.context;return K.set(ve,"."+q1,W[2]),K.set(ve,"."+P1,W[3]),W})}return{viewport:fe,scissor_box:ce(hl)}}function aa(I,U){var $=I.static,pe=typeof $[dl]=="string"&&typeof $[Yo]=="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=[],te=0;te"+Pr+"?"+W+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Ze,"(",W,".buffer)){",Jr,"=",Kr,".createStream(",po,",",W,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",W,".buffer);","}",Gr,'="type" in ',W,"?",Ce.glTypes,"[",W,".type]:",Jr,".dtype;",Lr.normalized,"=!!",W,".normalized;");function Or(Mr){K(Lr[Mr],"=",W,".",Mr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,te)}),Te}function Wa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,te){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,te){return fe.invoke(te,ce)})}),pe}function sn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,te=aa(I,U),X=ut(I,Te),K=St(I,X,Te),W=Dt(I,Te),ve=ln(I,Te),Ce=Sa(I,Te,te);function Ze(Or){var Mr=K[Or];Mr&&(ve[Or]=Mr)}Ze(fi),Ze(hr(hl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:W,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=W.vao,!Lr.drawVAO&&Ce.program&&!te&&Y.angle_instanced_arrays&&W.static.elements){var Tr=!0,Jr=Ce.program.attributes.map(function(Or){var Mr=U.static[Or];return Tr=Tr&&!!Mr,Mr});if(Tr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:W.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Mr){return Or.link(Gr)}),Lr.useVAO=!0}}return te?Lr.useVAO=!0:Lr.attributes=Ua(U,Te),Lr.context=Wa(pe,Te),Lr}function ya(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var te=$[fe],X=te.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ga(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,W=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(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",W,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function Ea(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,te=pe.current,X=pe.next,K=I.cond(te,".dirty");Be.forEach(function(W){var ve=hr(W);if(!(ve in $.state)){var Ce,Ze;if(ve in fe){Ce=fe[ve],Ze=ce[ve];var Kr=k(dr[ve].length,function(Tr){return K.def(Ce,"[",Tr,"]")});K(I.cond(Kr.map(function(Tr,Jr){return Tr+"!=="+Ze+"["+Jr+"]"}).join("||")).then(Te,".",kr[ve],"(",Kr,");",Kr.map(function(Tr,Jr){return Ze+"["+Jr+"]="+Tr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",te,".",ve);K(Lr),ve in Re?Lr(I.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Lr(Te,".",kr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function At(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,te=Te.gl,X;tr(Object.keys($)).forEach(function(K){var W=$[K];if(!(pe&&!pe(W))){var ve=W.append(I,U);if(Re[K]){var Ce=Re[K];Fr(W)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ei(ve)){var Ze=ce[K];U(te,".",kr[K],"(",ve,");",ve.map(function(Kr,Lr){return Ze+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(W)?(X=I.link(ve,{stable:!0}),U(te,".",kr[K],"(",X,");",fe,".",K,"=",X,";")):U(te,".",kr[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Da(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,te=ce.current,X=ce.timer,K=$.profile;function W(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Ze(Or){ve=U.def(),Or(ve,"=",W(),";"),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+=",W(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Mr=U.def(te,".profile");U(te,".profile=",Or,";"),U.exit(te,".profile=",Mr,";")}var Tr;if(K){if(Fr(K)){K.enable?(Ze(U),Kr(U.exit),Lr("true")):Lr("false");return}Tr=K.append(I,U),Lr(Tr)}else Tr=U.def(te,".profile");var Jr=I.block();Ze(Jr),U("if(",Tr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Tr,"){",Gr,"}")}function ja(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case pl:case Ol:case Bl:return 2;case on:case Ss:case Tf:return 3;case Af:case xu:case wu:return 4;default:return 1}}function te(X,K,W){var ve=ce.gl,Ce=U.def(X,".location"),Ze=U.def(ce.attributes,"[",Ce,"]"),Kr=W.state,Lr=W.buffer,Tr=[W.x,W.y,W.z,W.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Ze,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Mr=W.type,Pr;if(W.size?Pr=U.def(W.size,"||",K):Pr=K,U("if(",Ze,".type!==",Mr,"||",Ze,".size!==",Pr,"||",Jr.map(function(vt){return Ze+"."+vt+"!=="+W[vt]}).join("||"),"){",ve,".bindBuffer(",po,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Mr,W.normalized,W.stride,W.offset],");",Ze,".type=",Mr,";",Ze,".size=",Pr,";",Jr.map(function(vt){return Ze+"."+vt+"="+W[vt]+";"}).join(""),"}"),ar){var Ir=W.divisor;U("if(",Ze,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Ze,".divisor=",Ir,";}")}}function Or(){U("if(",Ze,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Ze,".buffer=null;","}if(",co.map(function(Mr,Pr){return Ze+"."+Mr+"!=="+Tr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Tr,");",co.map(function(Mr,Pr){return Ze+"."+Mr+"="+Tr[Pr]+";"}).join(""),"}")}Kr===Ji?Gr():Kr===As?Or():(U("if(",Kr,"===",Ji,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,W=$.attributes[K],ve;if(W){if(!Te(W))return;ve=W.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Ze){ve[Ze]=U.def(Ce,".",Ze)})}te(I.link(X),fe(X.info.type),ve)})}function fn(I,U,$,pe,Te,ce){for(var fe=I.shared,te=fe.gl,X,K=0;K1){for(var cn=[],Fi=[],Ki=0;Ki>1)",Lr],");")}function Ir(){$(Tr,".drawArraysInstancedANGLE(",[Ce,Ze,Kr,Lr],");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Mr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Ze+"<<(("+Jr+"-"+yc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Ze,Kr]+");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Mr(),$("}")):Or():Mr()}function pt(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){Da(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);"),ja(I,U,$,pe.attributes,function(){return!0})),fn(I,U,$,pe.uniforms,function(){return!0},!1),un(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Da(I,$),ya(I,$,U.context),ga(I,$,U.framebuffer),Ea(I,$,U),At(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(te){return pt(qt,I,U,te,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",Da(I,U);function Te(){return!0}ja(I,U,$,pe.attributes,Te),fn(I,U,$,pe.uniforms,Te,!1),un(I,U,U,$)}function me(I,U,$,pe){Da(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",te="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),W=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",X,"=",fe,"[",ce,"];",W,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ya(I,W,$.context),$.needsFramebuffer&&ga(I,W,$.framebuffer),At(I,W,$.state,ve),$.profile&&ve($.profile)&&Wt(I,W,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?W(I.shared.vao,".setVAO(",$.drawVAO.append(I,W),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),ja(I,K,$,pe.attributes,Ce),ja(I,W,$,pe.attributes,ve)),fn(I,K,$,pe.uniforms,Ce,!1),fn(I,W,$,pe.uniforms,ve,!0),un(I,K,W,$);else{var Ze=I.global.def("{}"),Kr=$.shader.progVar.append(I,W),Lr=W.def(Kr,".id"),Tr=W.def(Ze,"[",Lr,"]");W(I.shared.gl,".useProgram(",Kr,".program);","if(!",Tr,"){",Tr,"=",Ze,"[",Lr,"]=",I.link(function(Jr){return pt(z,I,$,Jr,2)}),"(",Kr,");}",Tr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Da(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Ze){pe=pe||U.context[Ze].propDep}),pe||(ya(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ga(I,$,ce)):ga(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function te(Ze){return Ze.contextDep&&pe||Ze.propDep}Ea(I,$,U),At(I,$,U.state,function(Ze){return!te(Ze)}),(!U.profile||!te(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 W=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(W,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",W,"[",ve,"]=",I.link(function(Ze){return pt(me,I,U,Ze,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(ya(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),tr(Object.keys(U.state)).forEach(function(te){var X=U.state[te],K=X.append(I,$);Ei(K)?K.forEach(function(W,ve){Cr(W)?$.set(I.next[te],"["+ve+"]",W):$.set(I.next[te],"["+ve+"]",I.link(W,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+te,I.link(K,{stable:!0})):$.set(pe.next,"."+te,K)}),Wt(I,$,U,!0,!0),[vo,gu,Ro,bi,Fo].forEach(function(te){var X=U.draw[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.draw,"."+te,K):$.set(pe.draw,"."+te,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var X=U.uniforms[te].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return Cr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(te),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(te){var X=U.attributes[te].append(I,$),K=I.scopeAttrib(te);Object.keys(new ke).forEach(function(W){$.set(K,"."+W,X[W])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);Cr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(te){var X=U.shader[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.shader,"."+te,K):$.set(pe.shader,"."+te,I.link(K,{stable:!0}))}}fe(Yo),fe(dl),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"||Ei(I))){for(var U=Object.keys(I),$=0;$=0;--pt){var qt=Zr[pt];qt&&qt(Ne,null,0)}Y.flush(),lr&&lr.update()}function St(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Sa(pt){pt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(pt){Y.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),Re.restore(),kr.restore(),xr.restore(),lr&&lr.restore(),hr.procs.refresh(),St(),mr.forEach(function(qt){qt()})}Cr&&(Cr.addEventListener(jt,Sa,!1),Cr.addEventListener(va,Dt,!1));function ln(){Zr.length=0,aa(),Cr&&(Cr.removeEventListener(jt,Sa),Cr.removeEventListener(va,Dt)),Xr.clear(),kr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(pt){pt()})}function Ut(pt){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 te(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(W){fe[X+"."+W]=K[W]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var te={},X={};return Object.keys(ce).forEach(function(K){var W=ce[K];if(v.isDynamic(W)){X[K]=v.unbox(W,K);return}else if(fe&&Array.isArray(W)){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 Ua=kr.setFBO=Ut({framebuffer:v.define.call(null,Ya,"framebuffer")});function Wa(pt,qt){var Qt=0;hr.procs.poll();var z=qt.color;z&&(Y.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=_n),"depth"in qt&&(Y.clearDepth(+qt.depth),Qt|=Ca),"stencil"in qt&&(Y.clearStencil(qt.stencil|0),Qt|=dt),Y.clear(Qt)}function sn(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ua(e({framebuffer:pt.framebuffer.faces[qt]},pt),Wa);else Ua(pt,Wa);else Wa(null,pt)}function ya(pt){Zr.push(pt);function qt(){var Qt=ei(Zr,pt);function z(){var me=ei(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return St(),{cancel:qt}}function ga(){var pt=cr.viewport,qt=cr.scissor_box;pt[0]=pt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=qt[2]=Y.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=qt[3]=Y.drawingBufferHeight}function Ea(){Ne.tick+=1,Ne.time=Da(),ga(),hr.procs.poll()}function At(){Be.refresh(),ga(),hr.procs.refresh(),lr&&lr.update()}function Da(){return(p()-$r)/1e3}At();function Wt(pt,qt){var Qt;switch(pt){case"frame":return ya(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:sr,destroy:ln,_gl:Y,_refresh:At,poll:function(){Ea(),lr&&lr.update()},now:Da,stats:Ye,getCachedCode:ja,preloadCachedCode:fn});return B.onDone(null,un),un}return Di})});var Iee=N((eOe,Nee)=>{"use strict";var E7e=Hf();Nee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},qee(r)?r={container:r}:k7e(r)?r={container:r}:C7e(r)?r={gl:r}:r=E7e(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}qee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Pee(),r.container.appendChild(r.canvas),Ree(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Pee(),r.container.appendChild(r.canvas),Ree(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 Ree(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 qee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function k7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function C7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Pee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Bee=N((rOe,Oee)=>{"use strict";var L7e=i9(),D7e=[32,126];Oee.exports=F7e;function F7e(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||D7e;if(a&&typeof a!="string"&&(a=L7e(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 f9=N(li=>{"use strict";"use restrict";var s9=32;li.INT_BITS=s9;li.INT_MAX=2147483647;li.INT_MIN=-1<0)-(e<0)};li.abs=function(e){var r=e>>s9-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 zee(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=zee;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 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]};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>>>zee(e)+1}});var Hee=N((aOe,Uee)=>{"use strict";function Gee(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 R7e(e|0,r);break;case"object":if(typeof e.length=="number")return Gee(e,r,0);break}return[]}Uee.exports=q7e});var Wee=N(H_=>{"use strict";H_.byteLength=N7e;H_.toByteArray=O7e;H_.fromByteArray=G7e;var Yf=[],ss=[],P7e=typeof Uint8Array!="undefined"?Uint8Array:Array,u9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S0=0,Vee=u9.length;S00)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 N7e(e){var r=Yee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function I7e(e,r,t){return(r+t)*3/4-t}function O7e(e){var r,t=Yee(e),a=t[0],n=t[1],i=new P7e(I7e(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=ss[e.charCodeAt(s)]<<2|ss[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=ss[e.charCodeAt(s)]<<10|ss[e.charCodeAt(s+1)]<<4|ss[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function B7e(e){return Yf[e>>18&63]+Yf[e>>12&63]+Yf[e>>6&63]+Yf[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(Yf[r>>2]+Yf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Yf[r>>10]+Yf[r>>4&63]+Yf[r<<2&63]+"=")),n.join("")}});var jee=N(c9=>{c9.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)};c9.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 ure=N(Wp=>{"use strict";var v9=Wee(),Vp=jee(),Xee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wp.Buffer=rt;Wp.SlowBuffer=j7e;Wp.INSPECT_MAX_BYTES=50;var V_=2147483647;Wp.kMaxLength=V_;rt.TYPED_ARRAY_SUPPORT=U7e();!rt.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 U7e(){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(rt.prototype,"parent",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.buffer}});Object.defineProperty(rt.prototype,"offset",{enumerable:!0,get:function(){if(rt.isBuffer(this))return this.byteOffset}});function $u(e){if(e>V_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,rt.prototype),r}function rt(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 m9(e)}return Qee(e,r,t)}rt.poolSize=8192;function Qee(e,r,t){if(typeof e=="string")return V7e(e,r);if(ArrayBuffer.isView(e))return Y7e(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(Wf(e,ArrayBuffer)||e&&Wf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Wf(e,SharedArrayBuffer)||e&&Wf(e.buffer,SharedArrayBuffer)))return d9(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 rt.from(a,r,t);let n=W7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return rt.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)}rt.from=function(e,r,t){return Qee(e,r,t)};Object.setPrototypeOf(rt.prototype,Uint8Array.prototype);Object.setPrototypeOf(rt,Uint8Array);function Kee(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 Kee(e),e<=0?$u(e):r!==void 0?typeof t=="string"?$u(e).fill(r,t):$u(e).fill(r):$u(e)}rt.alloc=function(e,r,t){return H7e(e,r,t)};function m9(e){return Kee(e),$u(e<0?0:y9(e)|0)}rt.allocUnsafe=function(e){return m9(e)};rt.allocUnsafeSlow=function(e){return m9(e)};function V7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!rt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=ere(e,r)|0,a=$u(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function h9(e){let r=e.length<0?0:y9(e.length)|0,t=$u(r);for(let a=0;a=V_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+V_.toString(16)+" bytes");return e|0}function j7e(e){return+e!=e&&(e=0),rt.alloc(+e)}rt.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==rt.prototype};rt.compare=function(r,t){if(Wf(r,Uint8Array)&&(r=rt.from(r,r.offset,r.byteLength)),Wf(t,Uint8Array)&&(t=rt.from(t,t.offset,t.byteLength)),!rt.isBuffer(r)||!rt.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?(rt.isBuffer(o)||(o=rt.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(rt.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ere(e,r){if(rt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wf(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 p9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return fre(e).length;default:if(n)return a?-1:p9(e).length;r=(""+r).toLowerCase(),n=!0}}rt.byteLength=ere;function X7e(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 n9e(this,r,t);case"utf8":case"utf-8":return tre(this,r,t);case"ascii":return t9e(this,r,t);case"latin1":case"binary":return a9e(this,r,t);case"base64":return e9e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i9e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}rt.prototype._isBuffer=!0;function E0(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}rt.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+=" ... "),""};Xee&&(rt.prototype[Xee]=rt.prototype.inspect);rt.prototype.compare=function(r,t,a,n,i){if(Wf(r,Uint8Array)&&(r=rt.from(r,r.offset,r.byteLength)),!rt.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,b9(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=rt.from(r,a)),rt.isBuffer(r))return r.length===0?-1:Zee(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):Zee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Zee(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 Z7e(this,r,t,a);case"utf8":case"utf-8":return J7e(this,r,t,a);case"ascii":case"latin1":case"binary":return $7e(this,r,t,a);case"base64":return Q7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function e9e(e,r,t){return r===0&&t===e.length?v9.fromByteArray(e):v9.fromByteArray(e.slice(r,t))}function tre(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 r9e(a)}var Jee=4096;function r9e(e){let r=e.length;if(r<=Jee)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")}rt.prototype.readUintLE=rt.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Wi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};rt.prototype.readUint8=rt.prototype.readUInt8=function(r,t){return r=r>>>0,t||Wi(r,1,this.length),this[r]};rt.prototype.readUint16LE=rt.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Wi(r,2,this.length),this[r]|this[r+1]<<8};rt.prototype.readUint16BE=rt.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Wi(r,2,this.length),this[r]<<8|this[r+1]};rt.prototype.readUint32LE=rt.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};rt.prototype.readUint32BE=rt.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};rt.prototype.readBigUInt64LE=Sv(function(r){r=r>>>0,Yp(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,Yp(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||Wi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};rt.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wi(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};rt.prototype.readInt8=function(r,t){return r=r>>>0,t||Wi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};rt.prototype.readInt16LE=function(r,t){r=r>>>0,t||Wi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};rt.prototype.readInt16BE=function(r,t){r=r>>>0,t||Wi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};rt.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};rt.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};rt.prototype.readBigInt64LE=Sv(function(r){r=r>>>0,Yp(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,Yp(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||Wi(r,4,this.length),Vp.read(this,r,!0,23,4)};rt.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Wi(r,4,this.length),Vp.read(this,r,!1,23,4)};rt.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Wi(r,8,this.length),Vp.read(this,r,!0,52,8)};rt.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Wi(r,8,this.length),Vp.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!rt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}rt.prototype.writeUintLE=rt.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;nl(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;nl(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};rt.prototype.writeUint8=rt.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};rt.prototype.writeUint16LE=rt.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};rt.prototype.writeUint16BE=rt.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};rt.prototype.writeUint32LE=rt.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeUint32BE=rt.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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 are(e,r,t,a,n){sre(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 nre(e,r,t,a,n){sre(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}rt.prototype.writeBigUInt64LE=Sv(function(r,t=0){return are(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});rt.prototype.writeBigUInt64BE=Sv(function(r,t=0){return nre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});rt.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(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};rt.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(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};rt.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};rt.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};rt.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};rt.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(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};rt.prototype.writeBigInt64LE=Sv(function(r,t=0){return are(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});rt.prototype.writeBigInt64BE=Sv(function(r,t=0){return nre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ire(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 ore(e,r,t,a,n){return r=+r,t=t>>>0,n||ire(e,r,t,4,34028234663852886e22,-34028234663852886e22),Vp.write(e,r,t,a,23,4),t+4}rt.prototype.writeFloatLE=function(r,t,a){return ore(this,r,t,!0,a)};rt.prototype.writeFloatBE=function(r,t,a){return ore(this,r,t,!1,a)};function lre(e,r,t,a,n){return r=+r,t=t>>>0,n||ire(e,r,t,8,17976931348623157e292,-17976931348623157e292),Vp.write(e,r,t,a,52,8),t+8}rt.prototype.writeDoubleLE=function(r,t,a){return lre(this,r,t,!0,a)};rt.prototype.writeDoubleBE=function(r,t,a){return lre(this,r,t,!1,a)};rt.prototype.copy=function(r,t,a,n){if(!rt.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=$ee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=$ee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function $ee(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 o9e(e,r,t){Yp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&bg(r,e.length-(t+1))}function sre(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 Hp.ERR_OUT_OF_RANGE("value",l,e)}o9e(a,n,i)}function Yp(e,r){if(typeof e!="number")throw new Hp.ERR_INVALID_ARG_TYPE(r,"number",e)}function bg(e,r,t){throw Math.floor(e)!==e?(Yp(e,t),new Hp.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Hp.ERR_BUFFER_OUT_OF_BOUNDS:new Hp.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var l9e=/[^+/0-9A-Za-z-_]/g;function s9e(e){if(e=e.split("=")[0],e=e.trim().replace(l9e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function p9(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 f9e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function fre(e){return v9.toByteArray(s9e(e))}function Y_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Wf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function b9(e){return e!==e}var c9e=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"?v9e:e}function v9e(){throw new Error("BigInt not supported")}});var Mre=N(Na=>{"use strict";var Ev=f9(),lo=Hee(),cre=ure().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:lo([32,0]),UINT16:lo([32,0]),UINT32:lo([32,0]),BIGUINT64:lo([32,0]),INT8:lo([32,0]),INT16:lo([32,0]),INT32:lo([32,0]),BIGINT64:lo([32,0]),FLOAT:lo([32,0]),DOUBLE:lo([32,0]),DATA:lo([32,0]),UINT8C:lo([32,0]),BUFFER:lo([32,0])});var h9e=typeof Uint8ClampedArray!="undefined",d9e=typeof BigUint64Array!="undefined",p9e=typeof BigInt64Array!="undefined",hi=window.__TYPEDARRAY_POOL;hi.UINT8C||(hi.UINT8C=lo([32,0]));hi.BIGUINT64||(hi.BIGUINT64=lo([32,0]));hi.BIGINT64||(hi.BIGINT64=lo([32,0]));hi.BUFFER||(hi.BUFFER=lo([32,0]));var W_=hi.DATA,j_=hi.BUFFER;Na.free=function(r){if(cre.isBuffer(r))j_[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;W_[a].push(r)}};function vre(e){if(e){var r=e.length||e.byteLength,t=Ev.log2(r);W_[t].push(e)}}function m9e(e){vre(e.buffer)}Na.freeUint8=Na.freeUint16=Na.freeUint32=Na.freeBigUint64=Na.freeInt8=Na.freeInt16=Na.freeInt32=Na.freeBigInt64=Na.freeFloat32=Na.freeFloat=Na.freeFloat64=Na.freeDouble=Na.freeUint8Clamped=Na.freeDataView=m9e;Na.freeArrayBuffer=vre;Na.freeBuffer=function(r){j_[Ev.log2(r.length)].push(r)};Na.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return x9(r);case"uint16":return hre(r);case"uint32":return dre(r);case"int8":return pre(r);case"int16":return mre(r);case"int32":return yre(r);case"float":case"float32":return gre(r);case"double":case"float64":return bre(r);case"uint8_clamped":return xre(r);case"bigint64":return wre(r);case"biguint64":return _re(r);case"buffer":return Tre(r);case"data":case"dataview":return Are(r);default:return null}return null};function il(r){var r=Ev.nextPow2(r),t=Ev.log2(r),a=W_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Na.mallocArrayBuffer=il;function x9(e){return new Uint8Array(il(e),0,e)}Na.mallocUint8=x9;function hre(e){return new Uint16Array(il(2*e),0,e)}Na.mallocUint16=hre;function dre(e){return new Uint32Array(il(4*e),0,e)}Na.mallocUint32=dre;function pre(e){return new Int8Array(il(e),0,e)}Na.mallocInt8=pre;function mre(e){return new Int16Array(il(2*e),0,e)}Na.mallocInt16=mre;function yre(e){return new Int32Array(il(4*e),0,e)}Na.mallocInt32=yre;function gre(e){return new Float32Array(il(4*e),0,e)}Na.mallocFloat32=Na.mallocFloat=gre;function bre(e){return new Float64Array(il(8*e),0,e)}Na.mallocFloat64=Na.mallocDouble=bre;function xre(e){return h9e?new Uint8ClampedArray(il(e),0,e):x9(e)}Na.mallocUint8Clamped=xre;function _re(e){return d9e?new BigUint64Array(il(8*e),0,e):null}Na.mallocBigUint64=_re;function wre(e){return p9e?new BigInt64Array(il(8*e),0,e):null}Na.mallocBigInt64=wre;function Are(e){return new DataView(il(e),0,e)}Na.mallocDataView=Are;function Tre(e){e=Ev.nextPow2(e);var r=Ev.log2(e),t=j_[r];return t.length>0?t.pop():new cre(e)}Na.mallocBuffer=Tre;Na.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,W_[r].length=0,j_[r].length=0}});var Ere=N((fOe,Sre)=>{"use strict";var y9e=Object.prototype.toString;Sre.exports=function(e){var r;return y9e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var _9=N((uOe,kre)=>{kre.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 Dre=N((cOe,Lre)=>{"use strict";var g9e=_9();Lre.exports=Cre;var xg=96;function w9(e,r){var t=g9e(getComputedStyle(e).getPropertyValue(r));return t[0]*Cre(t[1],e)}function b9e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=w9(t,"font-size")/128;return r.removeChild(t),a}function Cre(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 b9e(e,r);case"em":return w9(r,"font-size");case"rem":return w9(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 qre=N((vOe,Rre)=>{"use strict";Rre.exports=J_;var x9e=J_.canvas=document.createElement("canvas"),X_=x9e.getContext("2d"),Fre=Z_([32,126]);J_.createPairs=Z_;J_.ascii=Fre;function J_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=Z_(r):Array.isArray(r)?a=r:(r.o?a=Z_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=Fre),X_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function Z_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Ire.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 Pre(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=jf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var y=jf(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=jf(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=jf(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 _=jf(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=jf(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=jf(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=jf(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=jf(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=jf(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=Nre(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=Nre(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,Pre(d,l)}function Pre(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 jf(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 Ure=N((dOe,Gre)=>{"use strict";var jp=Dee(),_9e=Hf(),w9e=Fee(),A9e=Iee(),T9e=Y7(),A9=x0(),M9e=Bee(),Cv=Mre(),S9e=yp(),E9e=Ere(),k9e=_9(),C9e=Dre(),L9e=qre(),D9e=ii(),F9e=Ore(),R9e=h0(),q9e=f9(),Bre=q9e.nextPow2,zre=new T9e,Q_=!1;document.body&&($_=document.body.appendChild(document.createElement("div")),$_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle($_).fontStretch&&(Q_=!0),document.body.removeChild($_));var $_,Ja=function(r){P9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=A9e(r),this.shader=zre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||w9e({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(),zre.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(E9e(r)?r:{})};Ja.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}};Ja.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=_9e(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(Ee){return parseFloat(Ee)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=S9e(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=R9e(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=Ja.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(Ee,Ve){if(typeof Ee=="string")try{Ee=jp.parse(Ee)}catch(qe){Ee=jp.parse(Ja.baseFontSize+"px "+Ee)}else{var we=Ee.style,fr=Ee.weight,Ie=Ee.stretch,He=Ee.variant;Ee=jp.parse(jp.stringify(Ee)),we&&(Ee.style=we),fr&&(Ee.weight=fr),Ie&&(Ee.stretch=Ie),He&&(Ee.variant=He)}var vr=jp.stringify({size:Ja.baseFontSize,family:Ee.family,stretch:Q_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style}),$e=k9e(Ee.size),ee=Math.round($e[0]*C9e($e[1]));if(ee!==t.fontSize[Ve]&&(n=!0,t.fontSize[Ve]=ee),(!t.font[Ve]||vr!=t.font[Ve].baseString)&&(a=!0,t.font[Ve]=Ja.fonts[vr],!t.font[Ve])){var de=Ee.family.join(", "),ne=[Ee.style];Ee.style!=Ee.variant&&ne.push(Ee.variant),Ee.variant!=Ee.weight&&ne.push(Ee.weight),Q_&&Ee.weight!=Ee.stretch&&ne.push(Ee.stretch),t.font[Ve]={baseString:vr,family:de,weight:Ee.weight,stretch:Ee.stretch,style:Ee.style,variant:Ee.variant,width:{},kerning:{},metrics:F9e(de,{origin:"top",fontSize:Ja.baseFontSize,fontStyle:ne.join(" ")})},Ja.fonts[vr]=t.font[Ve]}}),(a||n)&&this.font.forEach(function(Ee,Ve){var we=jp.stringify({size:t.fontSize[Ve],family:Ee.family,stretch:Q_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style});if(t.fontAtlas[Ve]=t.shader.atlas[we],!t.fontAtlas[Ve]){var fr=Ee.metrics;t.shader.atlas[we]=t.fontAtlas[Ve]={fontString:we,step:Math.ceil(t.fontSize[Ve]*fr.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-Ee;case"center":case"centre":case"middle":return-Ee*.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(Ee,Ve){var we=(t.font[Ve]||t.font[0]).metrics,fr=0;return fr+=we.bottom*.5,typeof Ee=="number"?fr+=Ee-we.baseline:fr+=-we[Ee],fr*=-1,fr})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=A9(r.color,"uint8");else{var ae;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var re=r.color.length;ae=Cv.mallocUint8(re);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(se){var Le=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(Le);for(var Ue=0;Ue1?this.counts[Ue]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ue]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ue*4,Ue*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ue]:this.opacity,baseline:this.baselineOffset[Ue]!=null?this.baselineOffset[Ue]:this.baselineOffset[0],align:this.align?this.alignOffset[Ue]!=null?this.alignOffset[Ue]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ue]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ue*2,Ue*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=[]}};Ja.prototype.destroy=function(){};Ja.prototype.kerning=!0;Ja.prototype.position={constant:new Float32Array(2)};Ja.prototype.translate=null;Ja.prototype.scale=null;Ja.prototype.font=null;Ja.prototype.text="";Ja.prototype.positionOffset=[0,0];Ja.prototype.opacity=1;Ja.prototype.color=new Uint8Array([0,0,0,255]);Ja.prototype.alignOffset=[0,0];Ja.maxAtlasSize=1024;Ja.atlasCanvas=document.createElement("canvas");Ja.atlasContext=Ja.atlasCanvas.getContext("2d",{alpha:!1});Ja.baseFontSize=64;Ja.fonts={};function P9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Gre.exports=Ja});var Yre=N((pOe,Vre)=>{"use strict";var Hre=ha(),N9e=function(){};Vre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=N9e);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=Hre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Hre.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 Wre=N((T9,M9)=>{(function(e,r){typeof T9=="object"&&typeof M9!="undefined"?M9.exports=r():e.createREGL=r()})(T9,function(){"use strict";var e=function(S,B){for(var Y=Object.keys(B),he=0;he1&&B===Y&&(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,Y=(S>255)<<3,S>>>=Y,B|=Y,Y=(S>15)<<2,S>>>=Y,B|=Y,Y=(S>3)<<1,S>>>=Y,B|=Y,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=re(Ae),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Y(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var Ye=null;switch(Ae){case F:Ye=new Int8Array(B(_e),0,_e);break;case P:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case R:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case V:Ye=new Uint32Array(B(4*_e),0,_e);break;case ae:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(Ae){Y(Ae.buffer)}return{alloc:B,free:Y,allocType:he,freeType:xe}}var j=J();j.zero=J();var oe=3408,se=3410,Le=3411,Ue=3412,Ee=3413,Ve=3414,we=3415,fr=33901,Ie=33902,He=3379,vr=3386,$e=34921,ee=36347,de=36348,ne=35661,qe=35660,Je=34930,Ke=36349,Sr=34076,Er=34024,br=7936,zr=7937,Vr=7938,nt=35724,wr=34047,Yr=36063,et=34852,Pe=3553,or=34067,st=34069,kt=33984,Ar=6408,rr=5126,ur=5121,Hr=36160,ot=36053,Wr=36064,tt=16384,xt=function(S,B){var Y=1;B.ext_texture_filter_anisotropic&&(Y=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(et),xe=S.getParameter(Yr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Ar,1,1,0,Ar,rr,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Hr,Ye),S.framebufferTexture2D(Hr,Wr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Hr)!==ot)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(tt);var ir=j.allocType(rr,4);S.readPixels(0,0,1,1,Ar,rr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(Ye),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(ur,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Ar,3,3,0,Ar,ur,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(se),S.getParameter(Le),S.getParameter(Ue),S.getParameter(Ee)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(oe),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:Y,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(fr),lineWidthDims:S.getParameter(Ie),maxViewportDims:S.getParameter(vr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Sr),maxRenderbufferSize:S.getParameter(Er),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter($e),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(qe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(nt),renderer:S.getParameter(zr),vendor:S.getParameter(br),version:S.getParameter(Vr),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 at(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 gr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Tt};function Oe(S,B,Y){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){dr=Ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var sr=j.allocType(ze.dtype,Be.length);fo(sr,Be),dr(sr,kr),j.freeType(sr)}else if(Array.isArray(Be[0])||jr(Be[0])){hr=Ia(Be);var cr=ia(Be,hr,ze.dtype);dr(cr,kr),j.freeType(cr)}}}else if(at(Be)){hr=Be.shape;var Cr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;hr.length===1?(Zr=hr[0],ct=1,mr=Cr[0],Dr=0):hr.length===2&&(Zr=hr[0],ct=hr[1],mr=Cr[0],Dr=Cr[1]);var ft=Array.isArray(Be.data)?ze.dtype:en(Be.data),ut=j.allocType(ft,Zr*ct);Ii(ut,Be.data,Zr,ct,mr,Dr,Be.offset),dr(ut,kr),j.freeType(ut)}return xr}return Xe||xr(ue),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Xr,Y.profile&&(xr.stats=ze.stats),xr.destroy=function(){Rr(ze)},xr}function Ne(){gr(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 Y.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(){gr(Ae).forEach(Rr),Ye.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var nn=0,$n=0,cs=1,vs=1,Cl=4,tc=4,Bo={points:nn,point:$n,lines:cs,line:vs,triangles:Cl,triangle:tc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$f=0,Qf=1,ji=4,pi=5120,Oi=5121,Ll=5122,mi=5123,Pt=5124,$t=5125,ca=34963,_t=35040,Qn=35044;function za(S,B,Y,he){var xe={},Ae=0,_e={uint8:Oi,uint16:mi};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=ji,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new Ye(Y.create(null,ca,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Xe,ar,ze,xr){Ne.buffer.bind();var dr;if(ue){var Xr=xr;!xr&&(!jr(ue)||at(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:mi),Y._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(ca,ze,ke),Ne.buffer.dtype=dr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(dr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case pi:dr=Oi;break;case mi:case Ll:dr=mi;break;case $t:case Pt:dr=$t;break;default:}Ne.buffer.dtype=dr}Ne.type=dr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,dr===mi?Be>>=1:dr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Xe;if(Xe<0){Re=ji;var kr=Ne.buffer.dimension;kr===1&&(Re=$f),kr===2&&(Re=Qf),kr===3&&(Re=ji)}Ne.primType=Re}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=Y.create(null,ca,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=ji,Xe.vertCount=0,Xe.type=Oi;else if(typeof ze=="number")ke(ze),Xe.primType=ji,Xe.vertCount=ze|0,Xe.type=Oi;else{var xr=null,dr=Qn,Xr=-1,Be=-1,Re=0,kr=0;Array.isArray(ze)||jr(ze)||at(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(dr=Pa[ze.usage]),"primitive"in ze&&(Xr=Bo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(kr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,kr===mi||kr===Ll?Re*=2:(kr===$t||kr===Pt)&&(Re*=4))),$r(Xe,xr,dr,Xr,Be,Re,kr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Rr(Xe)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){gr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),Ao=5123;function ol(S){for(var B=j.allocType(Ao,S.length),Y=0;Y>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[Y]=xe;else if(Ae<-14){var Ye=-14-Ae;B[Y]=xe+(_e+1024>>Ye)}else Ae>15?B[Y]=xe+31744:B[Y]=xe+(Ae+15<<10)+_e}return B}function Ei(S){return Array.isArray(S)||jr(S)}var t1=34467,Mn=3553,Dl=34067,zo=34069,yi=6408,nf=6406,Go=6407,To=6409,Fl=6410,ac=32854,Uo=32855,hs=36194,P0=32819,a1=32820,nc=33635,Bv=34042,ds=6402,Rl=34041,Ho=35904,Mo=35906,gi=36193,of=33776,ps=33777,ll=33778,lf=33779,zv=35986,ic=35987,Kf=34798,Gv=35840,Uv=35841,oc=35842,Hv=35843,lc=36196,So=5121,sf=5123,eu=5125,Bi=5126,ff=10242,n1=10243,i1=10497,ru=33071,N0=33648,tu=10240,o1=10241,ql=9728,sc=9729,ms=9984,uf=9985,ys=9986,sl=9987,I0=33170,fl=4352,l1=4353,fc=4354,s1=34046,f1=3317,u1=37440,O0=37441,au=37443,Vv=37444,Eo=33984,B0=[ms,ys,uf,sl],ki=[0,To,Fl,Go,yi],Sn={};Sn[To]=Sn[nf]=Sn[ds]=1,Sn[Rl]=Sn[Fl]=2,Sn[Go]=Sn[Ho]=3,Sn[yi]=Sn[Mo]=4;function Xi(S){return"[object "+S+"]"}var nu=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),cf=Xi("CanvasRenderingContext2D"),uc=Xi("ImageBitmap"),Yv=Xi("HTMLImageElement"),Wv=Xi("HTMLVideoElement"),c1=Object.keys(Ot).concat([nu,ul,cf,uc,Yv,Wv]),uo=[];uo[So]=1,uo[Bi]=4,uo[gi]=2,uo[sf]=2,uo[eu]=4;var Aa=[];Aa[ac]=2,Aa[Uo]=2,Aa[hs]=2,Aa[Rl]=4,Aa[of]=.5,Aa[ps]=.5,Aa[ll]=1,Aa[lf]=1,Aa[zv]=.5,Aa[ic]=1,Aa[Kf]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[oc]=.5,Aa[Hv]=.25,Aa[lc]=.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||!Ei(S[0]))}function Zi(S){return Object.prototype.toString.call(S)}function Zv(S){return Zi(S)===nu}function Jv(S){return Zi(S)===ul}function v1(S){return Zi(S)===cf}function h1(S){return Zi(S)===uc}function d1(S){return Zi(S)===Yv}function p1(S){return Zi(S)===Wv}function iu(S){if(!S)return!1;var B=Zi(S);return c1.indexOf(B)>=0?!0:jv(S)||Xv(S)||at(S)}function $v(S){return Ot[Object.prototype.toString.call(S)]|0}function m1(S,B){var Y=B.length;switch(S.type){case So:case sf:case eu:case Bi:var he=j.allocType(S.type,Y);he.set(B),S.data=he;break;case gi:S.data=ol(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Bi:S.type,B)}function cc(S,B){S.type===gi?(S.data=ol(B),j.freeType(B)):S.data=B}function z0(S,B,Y,he,xe,Ae){for(var _e=S.width,Ye=S.height,ir=S.channels,nr=_e*Ye*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)Ye+=_e*ir*ir,ir/=2;return Ye}else return _e*Y*he}function G0(S,B,Y,he,xe,Ae,_e){var Ye={"don't care":fl,"dont care":fl,nice:fc,fast:l1},ir={repeat:i1,clamp:ru,mirror:N0},nr={nearest:ql,linear:sc},lr=e({mipmap:sl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":sl},nr),$r={none:0,browser:Vv},Rr={uint8:So,rgba4:P0,rgb565:nc,"rgb5 a1":a1},yr={alpha:nf,luminance:To,"luminance alpha":Fl,rgb:Go,rgba:yi,rgba4:ac,"rgb5 a1":Uo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Ho,yr.srgba=Mo),B.oes_texture_float&&(Rr.float32=Rr.float=Bi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=gi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":Rl}),e(Rr,{uint16:sf,uint32:eu,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":ic,"rgba atc interpolated alpha":Kf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":oc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=lc);var ue=Array.prototype.slice.call(S.getParameter(t1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);Y.textureFormats=ke;var Xe=[];Object.keys(yr).forEach(function(z){var me=yr[z];Xe[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 xr=[];Object.keys(lr).forEach(function(z){var me=lr[z];xr[me]=z});var dr=[];Object.keys(ir).forEach(function(z){var me=ir[z];dr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===To||be===nf||be===To||be===Fl||be===ds||be===Rl||B.ext_srgb&&(be===Ho||be===Mo)?z[be]=be:be===Uo||me.indexOf("rgba")>=0?z[be]=yi:z[be]=Go,z},{});function Be(){this.internalformat=yi,this.format=yi,this.type=So,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 Re(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 kr(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=Sn[z.format]:qr&&!I&&z.channels!==ki[z.format]&&(z.format=z.internalformat=ki[z.channels])}}function hr(z){S.pixelStorei(u1,z.flipY),S.pixelStorei(O0,z.premultiplyAlpha),S.pixelStorei(au,z.colorSpace),S.pixelStorei(f1,z.unpackAlignment)}function sr(){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(iu(me)?be=me:me&&(kr(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),iu(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===So&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,m1(z,be),z.alignment=1,z.needsFree=!0;else if(at(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(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=ki[pe],z.needsFree=!0,z0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||v1(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(h1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(p1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var te=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ei(be[0][0])?K=K||be[0][0].length:K=K||1;for(var W=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=Ye[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 Wa(z,me){S.texParameteri(me,o1,z.minFilter),S.texParameteri(me,tu,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,n1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,s1,z.anisotropic),z.genMipmaps&&(S.hint(I0,z.mipmapHint),S.generateMipmap(me))}var sn=0,ya={},ga=Y.maxTextureUnits,Ea=Array(ga).map(function(){return null});function At(z){Be.call(this),this.mipmask=0,this.internalformat=yi,this.id=sn++,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 Da(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Mn,null)}function ja(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Ea[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ya[z.id],Ae.textureCount--}e(At.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}Ea[be]=z,me=be;break}me>=ga,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Da(be),Zr(fe,Mn,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=$,Da(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(Mn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Pl(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 un(z,me,be,Nr,Ft,Ht){var qr=new At(Dl);ya[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,te,X,K){var W,ve=qr.texInfo;for(Ut.call(ve),W=0;W<6;++W)I[W]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(W=0;W<6;++W)ut(I[W],Ce,Ce)}else if(typeof Te=="object")if(ce)St(I[0],Te),St(I[1],ce),St(I[2],fe),St(I[3],te),St(I[4],X),St(I[5],K);else if(Ua(ve,Te),kr(qr,Te),"faces"in Te){var Ze=Te.faces;for(W=0;W<6;++W)Re(I[W],qr),St(I[W],Ze[W])}else for(W=0;W<6;++W)St(I[W],Te);for(Re(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,Da(qr),W=0;W<6;++W)aa(I[W],zo+W);for(Wa(ve,Dl),Wt(),_e.profile&&(qr.stats.size=Pl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=dr[ve.wrapS],U.wrapT=dr[ve.wrapT],W=0;W<6;++W)ln(I[W]);return U}function $(Te,ce,fe,te,X){var K=fe|0,W=te|0,ve=X|0,Ce=mr();return Re(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)-W,Da(qr),Zr(Ce,zo+Te,K,W,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,Da(qr);for(var fe=0;fe<6;++fe)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(zo+fe,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Pl(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 pt(){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(zo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Wa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?ln=!0:ir.indexOf(Ut)>=0&&(ln=!1))),("depthTexture"in At||"depthStencilTexture"in At)&&(Ea=!!(At.depthTexture||At.depthStencilTexture)),"depth"in At&&(typeof At.depth=="boolean"?aa=At.depth:(sn=At.depth,Sa=!1)),"stencil"in At&&(typeof At.stencil=="boolean"?Sa=At.stencil:(ya=At.stencil,aa=!1)),"depthStencil"in At&&(typeof At.depthStencil=="boolean"?aa=Sa=At.depthStencil:(ga=At.depthStencil,aa=!1,Sa=!1))}var Wt=null,ja=null,fn=null,un=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Wa),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]=Re(Dr)}return e(Cr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===Cr.width)return Cr;var ft=Cr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),Re.buffers[ct]=null)),Re.buffers[ct]||(ut=Re.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,Cr[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=hn[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 St=0;St1)for(var hr=0;hrue&&(ue=ke.stats.uniformsCount)}),ue},Y.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&&(Y=cl(Y,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=Y[Ae]^909522486,xe[Ae]=Y[Ae]^1549556828;var _e=cl(he.concat(fu(B)),512+B.length*8);return dh(cl(xe.concat(_e),768))}function W0(S){for(var B=V0?"0123456789ABCDEF":"0123456789abcdef",Y="",he,xe=0;xe>>4&15)+B.charAt(he&15);return Y}function L1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="",he=S.length,xe=0;xeS.length*8?Y+=k1:Y+=B.charAt(Ae>>>6*(3-_e)&63);return Y}function D1(S,B){var Y=B.length,he=Array(),xe,Ae,_e,Ye,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||Ae>0)&&(Ye[Ye.length]=Ae);he[he.length]=_e,ir=Ye}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 fu(S){for(var B=Array(S.length>>2),Y=0;Y>5]|=(S.charCodeAt(Y/8)&255)<<24-Y%32;return B}function dh(S){for(var B="",Y=0;Y>5]>>>24-Y%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function j0(S,B,Y){return S&B^~S&Y}function X0(S,B,Y){return S&B^S&Y^B&Y}function mh(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Z0(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function pc(S){return Bn(S,7)^Bn(S,18)^ph(S,3)}function mc(S){return Bn(S,17)^Bn(S,19)^ph(S,10)}var R1=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 cl(S,B){var Y=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,Ye,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)+(Y>>16);return he<<16|Y&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function J0(S){var B=S&&S.cache,Y=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(ue,{def:Xe,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function ir(){var Ne=Ye(),ue=Ye(),ke=Ne.toString,Xe=ue.toString;function ar(ze,xr){ue(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,xr,dr){ar(ze,xr),Ne(ze,xr,"=",dr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Lo(arguments),ue=ir(),ke=ir(),Xe=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),$r={};function Rr(Ne,ue){var ke=[];function Xe(){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[Ve]:t.align[0]:t.align;if(typeof we=="number")return we;switch(we){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.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(Ee,Ve){var we=(t.font[Ve]||t.font[0]).metrics,fr=0;return fr+=we.bottom*.5,typeof Ee=="number"?fr+=Ee-we.baseline:fr+=-we[Ee],fr*=-1,fr})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=A9(r.color,"uint8");else{var ae;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var re=r.color.length;ae=Cv.mallocUint8(re);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(se){var Le=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(Le);for(var Ue=0;Ue1?this.counts[Ue]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ue]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ue*4,Ue*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ue]:this.opacity,baseline:this.baselineOffset[Ue]!=null?this.baselineOffset[Ue]:this.baselineOffset[0],align:this.align?this.alignOffset[Ue]!=null?this.alignOffset[Ue]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ue]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ue*2,Ue*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=[]}};Ja.prototype.destroy=function(){};Ja.prototype.kerning=!0;Ja.prototype.position={constant:new Float32Array(2)};Ja.prototype.translate=null;Ja.prototype.scale=null;Ja.prototype.font=null;Ja.prototype.text="";Ja.prototype.positionOffset=[0,0];Ja.prototype.opacity=1;Ja.prototype.color=new Uint8Array([0,0,0,255]);Ja.prototype.alignOffset=[0,0];Ja.maxAtlasSize=1024;Ja.atlasCanvas=document.createElement("canvas");Ja.atlasContext=Ja.atlasCanvas.getContext("2d",{alpha:!1});Ja.baseFontSize=64;Ja.fonts={};function P9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Gre.exports=Ja});var Yre=N((pOe,Vre)=>{"use strict";var Hre=ha(),N9e=function(){};Vre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=N9e);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=Hre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Hre.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 Wre=N((T9,M9)=>{(function(e,r){typeof T9=="object"&&typeof M9!="undefined"?M9.exports=r():e.createREGL=r()})(T9,function(){"use strict";var e=function(S,B){for(var Y=Object.keys(B),he=0;he1&&B===Y&&(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,Y=(S>255)<<3,S>>>=Y,B|=Y,Y=(S>15)<<2,S>>>=Y,B|=Y,Y=(S>3)<<1,S>>>=Y,B|=Y,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=re(Ae),Ye=S[Q(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Y(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var Ye=null;switch(Ae){case F:Ye=new Int8Array(B(_e),0,_e);break;case P:Ye=new Uint8Array(B(_e),0,_e);break;case O:Ye=new Int16Array(B(2*_e),0,_e);break;case R:Ye=new Uint16Array(B(2*_e),0,_e);break;case H:Ye=new Int32Array(B(4*_e),0,_e);break;case V:Ye=new Uint32Array(B(4*_e),0,_e);break;case ae:Ye=new Float32Array(B(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function xe(Ae){Y(Ae.buffer)}return{alloc:B,free:Y,allocType:he,freeType:xe}}var j=J();j.zero=J();var oe=3408,se=3410,Le=3411,Ue=3412,Ee=3413,Ve=3414,we=3415,fr=33901,Ie=33902,He=3379,vr=3386,$e=34921,ee=36347,de=36348,ne=35661,qe=35660,Je=34930,Ke=36349,Sr=34076,Er=34024,br=7936,zr=7937,Vr=7938,nt=35724,wr=34047,Yr=36063,et=34852,Pe=3553,or=34067,st=34069,kt=33984,Ar=6408,rr=5126,ur=5121,Hr=36160,ot=36053,Wr=36064,tt=16384,xt=function(S,B){var Y=1;B.ext_texture_filter_anisotropic&&(Y=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(et),xe=S.getParameter(Yr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Ar,1,1,0,Ar,rr,null);var Ye=S.createFramebuffer();if(S.bindFramebuffer(Hr,Ye),S.framebufferTexture2D(Hr,Wr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Hr)!==ot)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(tt);var ir=j.allocType(rr,4);S.readPixels(0,0,1,1,Ar,rr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(Ye),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(ur,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Ar,3,3,0,Ar,ur,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(se),S.getParameter(Le),S.getParameter(Ue),S.getParameter(Ee)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(oe),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:Y,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(fr),lineWidthDims:S.getParameter(Ie),maxViewportDims:S.getParameter(vr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Sr),maxRenderbufferSize:S.getParameter(Er),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter($e),maxVertexUniforms:S.getParameter(ee),maxVertexTextureUnits:S.getParameter(qe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(nt),renderer:S.getParameter(zr),vendor:S.getParameter(br),version:S.getParameter(Vr),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 at(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 gr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Tt};function Oe(S,B,Y){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){dr=Ia(ke);for(var Be=1,Re=1;Re0){if(typeof Be[0]=="number"){var sr=j.allocType(ze.dtype,Be.length);fo(sr,Be),dr(sr,kr),j.freeType(sr)}else if(Array.isArray(Be[0])||jr(Be[0])){hr=Ia(Be);var cr=ia(Be,hr,ze.dtype);dr(cr,kr),j.freeType(cr)}}}else if(at(Be)){hr=Be.shape;var Cr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;hr.length===1?(Zr=hr[0],ct=1,mr=Cr[0],Dr=0):hr.length===2&&(Zr=hr[0],ct=hr[1],mr=Cr[0],Dr=Cr[1]);var ft=Array.isArray(Be.data)?ze.dtype:en(Be.data),ut=j.allocType(ft,Zr*ct);Ii(ut,Be.data,Zr,ct,mr,Dr,Be.offset),dr(ut,kr),j.freeType(ut)}return xr}return Xe||xr(ue),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Xr,Y.profile&&(xr.stats=ze.stats),xr.destroy=function(){Rr(ze)},xr}function Ne(){gr(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 Y.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(){gr(Ae).forEach(Rr),Ye.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var nn=0,$n=0,cs=1,vs=1,Cl=4,tc=4,Bo={points:nn,point:$n,lines:cs,line:vs,triangles:Cl,triangle:tc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$f=0,Qf=1,ji=4,pi=5120,Oi=5121,Ll=5122,mi=5123,Pt=5124,$t=5125,ca=34963,_t=35040,Qn=35044;function za(S,B,Y,he){var xe={},Ae=0,_e={uint8:Oi,uint16:mi};B.oes_element_index_uint&&(_e.uint32=$t);function Ye(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=ji,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new Ye(Y.create(null,ca,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Xe,ar,ze,xr){Ne.buffer.bind();var dr;if(ue){var Xr=xr;!xr&&(!jr(ue)||at(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:mi),Y._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(ca,ze,ke),Ne.buffer.dtype=dr||Oi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(dr=xr,!xr){switch(Ne.buffer.dtype){case Oi:case pi:dr=Oi;break;case mi:case Ll:dr=mi;break;case $t:case Pt:dr=$t;break;default:}Ne.buffer.dtype=dr}Ne.type=dr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,dr===mi?Be>>=1:dr===$t&&(Be>>=2)),Ne.vertCount=Be;var Re=Xe;if(Xe<0){Re=ji;var kr=Ne.buffer.dimension;kr===1&&(Re=$f),kr===2&&(Re=Qf),kr===3&&(Re=ji)}Ne.primType=Re}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=Y.create(null,ca,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=ji,Xe.vertCount=0,Xe.type=Oi;else if(typeof ze=="number")ke(ze),Xe.primType=ji,Xe.vertCount=ze|0,Xe.type=Oi;else{var xr=null,dr=Qn,Xr=-1,Be=-1,Re=0,kr=0;Array.isArray(ze)||jr(ze)||at(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(dr=Pa[ze.usage]),"primitive"in ze&&(Xr=Bo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(kr=_e[ze.type]),"length"in ze?Re=ze.length|0:(Re=Be,kr===mi||kr===Ll?Re*=2:(kr===$t||kr===Pt)&&(Re*=4))),$r(Xe,xr,dr,Xr,Be,Re,kr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Rr(Xe)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){gr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),Ao=5123;function ol(S){for(var B=j.allocType(Ao,S.length),Y=0;Y>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[Y]=xe;else if(Ae<-14){var Ye=-14-Ae;B[Y]=xe+(_e+1024>>Ye)}else Ae>15?B[Y]=xe+31744:B[Y]=xe+(Ae+15<<10)+_e}return B}function Ei(S){return Array.isArray(S)||jr(S)}var t1=34467,Mn=3553,Dl=34067,zo=34069,yi=6408,nf=6406,Go=6407,To=6409,Fl=6410,ac=32854,Uo=32855,hs=36194,P0=32819,a1=32820,nc=33635,Bv=34042,ds=6402,Rl=34041,Ho=35904,Mo=35906,gi=36193,of=33776,ps=33777,ll=33778,lf=33779,zv=35986,ic=35987,Kf=34798,Gv=35840,Uv=35841,oc=35842,Hv=35843,lc=36196,So=5121,sf=5123,eu=5125,Bi=5126,ff=10242,n1=10243,i1=10497,ru=33071,N0=33648,tu=10240,o1=10241,ql=9728,sc=9729,ms=9984,uf=9985,ys=9986,sl=9987,I0=33170,fl=4352,l1=4353,fc=4354,s1=34046,f1=3317,u1=37440,O0=37441,au=37443,Vv=37444,Eo=33984,B0=[ms,ys,uf,sl],ki=[0,To,Fl,Go,yi],Sn={};Sn[To]=Sn[nf]=Sn[ds]=1,Sn[Rl]=Sn[Fl]=2,Sn[Go]=Sn[Ho]=3,Sn[yi]=Sn[Mo]=4;function Xi(S){return"[object "+S+"]"}var nu=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),cf=Xi("CanvasRenderingContext2D"),uc=Xi("ImageBitmap"),Yv=Xi("HTMLImageElement"),Wv=Xi("HTMLVideoElement"),c1=Object.keys(Ot).concat([nu,ul,cf,uc,Yv,Wv]),uo=[];uo[So]=1,uo[Bi]=4,uo[gi]=2,uo[sf]=2,uo[eu]=4;var Aa=[];Aa[ac]=2,Aa[Uo]=2,Aa[hs]=2,Aa[Rl]=4,Aa[of]=.5,Aa[ps]=.5,Aa[ll]=1,Aa[lf]=1,Aa[zv]=.5,Aa[ic]=1,Aa[Kf]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[oc]=.5,Aa[Hv]=.25,Aa[lc]=.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||!Ei(S[0]))}function Zi(S){return Object.prototype.toString.call(S)}function Zv(S){return Zi(S)===nu}function Jv(S){return Zi(S)===ul}function v1(S){return Zi(S)===cf}function h1(S){return Zi(S)===uc}function d1(S){return Zi(S)===Yv}function p1(S){return Zi(S)===Wv}function iu(S){if(!S)return!1;var B=Zi(S);return c1.indexOf(B)>=0?!0:jv(S)||Xv(S)||at(S)}function $v(S){return Ot[Object.prototype.toString.call(S)]|0}function m1(S,B){var Y=B.length;switch(S.type){case So:case sf:case eu:case Bi:var he=j.allocType(S.type,Y);he.set(B),S.data=he;break;case gi:S.data=ol(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Bi:S.type,B)}function cc(S,B){S.type===gi?(S.data=ol(B),j.freeType(B)):S.data=B}function z0(S,B,Y,he,xe,Ae){for(var _e=S.width,Ye=S.height,ir=S.channels,nr=_e*Ye*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)Ye+=_e*ir*ir,ir/=2;return Ye}else return _e*Y*he}function G0(S,B,Y,he,xe,Ae,_e){var Ye={"don't care":fl,"dont care":fl,nice:fc,fast:l1},ir={repeat:i1,clamp:ru,mirror:N0},nr={nearest:ql,linear:sc},lr=e({mipmap:sl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":sl},nr),$r={none:0,browser:Vv},Rr={uint8:So,rgba4:P0,rgb565:nc,"rgb5 a1":a1},yr={alpha:nf,luminance:To,"luminance alpha":Fl,rgb:Go,rgba:yi,rgba4:ac,"rgb5 a1":Uo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Ho,yr.srgba=Mo),B.oes_texture_float&&(Rr.float32=Rr.float=Bi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=gi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":Rl}),e(Rr,{uint16:sf,uint32:eu,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":ic,"rgba atc interpolated alpha":Kf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":oc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=lc);var ue=Array.prototype.slice.call(S.getParameter(t1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);Y.textureFormats=ke;var Xe=[];Object.keys(yr).forEach(function(z){var me=yr[z];Xe[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 xr=[];Object.keys(lr).forEach(function(z){var me=lr[z];xr[me]=z});var dr=[];Object.keys(ir).forEach(function(z){var me=ir[z];dr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===To||be===nf||be===To||be===Fl||be===ds||be===Rl||B.ext_srgb&&(be===Ho||be===Mo)?z[be]=be:be===Uo||me.indexOf("rgba")>=0?z[be]=yi:z[be]=Go,z},{});function Be(){this.internalformat=yi,this.format=yi,this.type=So,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 Re(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 kr(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=Sn[z.format]:qr&&!I&&z.channels!==ki[z.format]&&(z.format=z.internalformat=ki[z.channels])}}function hr(z){S.pixelStorei(u1,z.flipY),S.pixelStorei(O0,z.premultiplyAlpha),S.pixelStorei(au,z.colorSpace),S.pixelStorei(f1,z.unpackAlignment)}function sr(){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(iu(me)?be=me:me&&(kr(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),iu(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===So&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,m1(z,be),z.alignment=1,z.needsFree=!0;else if(at(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===So&&(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=ki[pe],z.needsFree=!0,z0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||v1(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(h1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(p1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var te=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ei(be[0][0])?K=K||be[0][0].length:K=K||1;for(var W=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=Ye[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 Wa(z,me){S.texParameteri(me,o1,z.minFilter),S.texParameteri(me,tu,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,n1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,s1,z.anisotropic),z.genMipmaps&&(S.hint(I0,z.mipmapHint),S.generateMipmap(me))}var sn=0,ya={},ga=Y.maxTextureUnits,Ea=Array(ga).map(function(){return null});function At(z){Be.call(this),this.mipmask=0,this.internalformat=yi,this.id=sn++,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 Da(z){S.activeTexture(Eo),S.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Mn,null)}function ja(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(Eo+be),S.bindTexture(Nr,null),Ea[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ya[z.id],Ae.textureCount--}e(At.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}Ea[be]=z,me=be;break}me>=ga,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Da(be),Zr(fe,Mn,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=$,Da(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(Mn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Pl(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 un(z,me,be,Nr,Ft,Ht){var qr=new At(Dl);ya[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,te,X,K){var W,ve=qr.texInfo;for(Ut.call(ve),W=0;W<6;++W)I[W]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(W=0;W<6;++W)ut(I[W],Ce,Ce)}else if(typeof Te=="object")if(ce)St(I[0],Te),St(I[1],ce),St(I[2],fe),St(I[3],te),St(I[4],X),St(I[5],K);else if(Ua(ve,Te),kr(qr,Te),"faces"in Te){var Ze=Te.faces;for(W=0;W<6;++W)Re(I[W],qr),St(I[W],Ze[W])}else for(W=0;W<6;++W)St(I[W],Te);for(Re(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,Da(qr),W=0;W<6;++W)aa(I[W],zo+W);for(Wa(ve,Dl),Wt(),_e.profile&&(qr.stats.size=Pl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=dr[ve.wrapS],U.wrapT=dr[ve.wrapT],W=0;W<6;++W)ln(I[W]);return U}function $(Te,ce,fe,te,X){var K=fe|0,W=te|0,ve=X|0,Ce=mr();return Re(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)-W,Da(qr),Zr(Ce,zo+Te,K,W,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,Da(qr);for(var fe=0;fe<6;++fe)for(var te=0;qr.mipmask>>te;++te)S.texImage2D(zo+fe,te,qr.format,ce>>te,ce>>te,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Pl(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 pt(){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(zo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Wa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?ln=!0:ir.indexOf(Ut)>=0&&(ln=!1))),("depthTexture"in At||"depthStencilTexture"in At)&&(Ea=!!(At.depthTexture||At.depthStencilTexture)),"depth"in At&&(typeof At.depth=="boolean"?aa=At.depth:(sn=At.depth,Sa=!1)),"stencil"in At&&(typeof At.stencil=="boolean"?Sa=At.stencil:(ya=At.stencil,aa=!1)),"depthStencil"in At&&(typeof At.depthStencil=="boolean"?aa=Sa=At.depthStencil:(ga=At.depthStencil,aa=!1,Sa=!1))}var Wt=null,ja=null,fn=null,un=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Wa),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]=Re(Dr)}return e(Cr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===Cr.width)return Cr;var ft=Cr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),Re.buffers[ct]=null)),Re.buffers[ct]||(ut=Re.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,Cr[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=hn[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 St=0;St1)for(var hr=0;hrue&&(ue=ke.stats.uniformsCount)}),ue},Y.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&&(Y=cl(Y,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=Y[Ae]^909522486,xe[Ae]=Y[Ae]^1549556828;var _e=cl(he.concat(fu(B)),512+B.length*8);return dh(cl(xe.concat(_e),768))}function W0(S){for(var B=V0?"0123456789ABCDEF":"0123456789abcdef",Y="",he,xe=0;xe>>4&15)+B.charAt(he&15);return Y}function L1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y="",he=S.length,xe=0;xeS.length*8?Y+=k1:Y+=B.charAt(Ae>>>6*(3-_e)&63);return Y}function D1(S,B){var Y=B.length,he=Array(),xe,Ae,_e,Ye,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(Ye=Array(),_e=0,xe=0;xe0||Ae>0)&&(Ye[Ye.length]=Ae);he[he.length]=_e,ir=Ye}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 fu(S){for(var B=Array(S.length>>2),Y=0;Y>5]|=(S.charCodeAt(Y/8)&255)<<24-Y%32;return B}function dh(S){for(var B="",Y=0;Y>5]>>>24-Y%32&255);return B}function Bn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function j0(S,B,Y){return S&B^~S&Y}function X0(S,B,Y){return S&B^S&Y^B&Y}function mh(S){return Bn(S,2)^Bn(S,13)^Bn(S,22)}function Z0(S){return Bn(S,6)^Bn(S,11)^Bn(S,25)}function pc(S){return Bn(S,7)^Bn(S,18)^ph(S,3)}function mc(S){return Bn(S,17)^Bn(S,19)^ph(S,10)}var R1=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 cl(S,B){var Y=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,Ye,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)+(Y>>16);return he<<16|Y&65535}function Co(S){return Array.prototype.slice.call(S)}function Lo(S){return Co(S).join("")}function J0(S){var B=S&&S.cache,Y=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Co(arguments)),Ne.push(";")),ar}return e(ue,{def:Xe,toString:function(){return Lo([ke.length>0?"var "+ke.join(",")+";":"",Lo(Ne)])}})}function ir(){var Ne=Ye(),ue=Ye(),ke=Ne.toString,Xe=ue.toString;function ar(ze,xr){ue(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,Co(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,xr,dr){ar(ze,xr),Ne(ze,xr,"=",dr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Lo(arguments),ue=ir(),ke=ir(),Xe=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Co(arguments)),this},else:function(){return ke.apply(ke,Co(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Lo(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),$r={};function Rr(Ne,ue){var ke=[];function Xe(){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},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ge={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||at(S)}function tr(S){return S.sort(function(B,Y){return B===fi?-1:Y===fi?1:B=1,he>=2,B)}else if(Y===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(Y===bc)return new De(!1,!1,!1,B);if(Y===pf){for(var Ae=!1,_e=!1,Ye=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new De(Ae,_e,Ye,B)}else return new De(Y===df,Y===gc,Y===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,Y,he,xe,Ae,_e,Ye,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};Y.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=Y.angle_instanced_arrays,ze=Y.webgl_draw_buffers,xr=Y.oes_vertex_array_object,dr={dirty:!0,profile:ue.profile},Xr={},Be=[],Re={},kr={};function hr(I){return I.replace(".","_")}function sr(I,U,$){var pe=hr(I);Be.push(I),Xr[pe]=dr[pe]=!!$,Re[pe]=U}function cr(I,U,$){var pe=hr(I);Be.push(I),Array.isArray($)?(dr[pe]=$.slice(),Xr[pe]=$.slice()):dr[pe]=Xr[pe]=$,kr[pe]=U}function Cr(I){return!!isNaN(I)}sr(xc,I1),sr(yh,N1),cr(gh,"blendColor",[0,0,0,0]),cr(cu,"blendEquationSeparate",[le,le]),cr(vu,"blendFuncSeparate",[ie,Z,ie,Z]),sr(_c,K0,!0),cr(wc,"depthFunc",ye),cr(Ac,"depthRange",[0,1]),cr(Tc,"depthMask",!0),cr(hu,hu,[!0,!0,!0,!0]),sr(mf,Q0),cr(bh,"cullFace",g),cr(du,du,C),cr(yf,yf,1),sr(Mc,Cc),cr(pu,"polygonOffset",[0,0]),sr(gf,rd),sr(bf,Lc),cr(xf,"sampleCoverage",[1,!1]),sr(Sc,O1),cr(mu,"stencilMask",-1),cr(Li,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[g,q,q,q]),sr(yu,ed),cr(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:dr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:Y,timer:yr,isBufferArgs:er},ct={primTypes:Bo,compareFuncs:Me,blendFuncs:Qe,blendEquations:Xe,stencilOps:Fe,glTypes:hn,orientationType:Ge};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return je+U})}));var mr=0;function Dr(){var I=J0({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(kr).forEach(function(K){Array.isArray(dr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var te=I.constants={};Object.keys(ct).forEach(function(K){te[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,W){switch(W.type){case uu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(W.data),".call(",ve.slice(0,Math.max(W.data.length+1,4)),")");case hf:return K.def(Te.props,W.data);case gc:return K.def(Te.context,W.data);case df:return K.def("this",W.data);case Ts:return W.data.append(I,K),W.data.ref;case bc:return W.data.toString();case pf:return W.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var W=B.id(K);if(W in X)return X[W];var ve=nr.scope[W];ve||(ve=nr.scope[W]=new ke);var Ce=X[W]=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,te){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,te){return fe.invoke(te,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),Br(function(fe,te){var X=fe.link(Te),K=fe.shared;te.set(K.framebuffer,".next",X);var W=K.context;return te.set(W,"."+$i,X+".width"),te.set(W,"."+Qi,X+".height"),X})):Br(function(fe,te){var X=fe.shared;te.set(X.framebuffer,".next","null");var K=X.context;return te.set(K,"."+$i,K+"."+Ec),te.set(K,"."+Qi,K+"."+kc),"null"})}else if(Do in pe){var ce=pe[Do];return it(ce,function(fe,te){var X=fe.invoke(te,ce),K=fe.shared,W=K.framebuffer,ve=te.def(W,".getFramebuffer(",X,")");te.set(W,".next",ve);var Ce=K.context;return te.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+Ec),te.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+kc),ve})}else return null}function St(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],W=!0,ve=K.x|0,Ce=K.y|0,Ze,Kr;return"width"in K?Ze=K.width|0:W=!1,"height"in K?Kr=K.height|0:W=!1,new De(!W&&U&&U.thisDep,!W&&U&&U.contextDep,!W&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Mr=Ze;"width"in K||(Mr=Gr.def(Or,".",$i,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",Qi,"-",Ce)),[ve,Ce,Mr,Pr]})}else if(X in Te){var Lr=Te[X],Tr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Mr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Mr,".",$i,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Mr,".",Qi,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Tr.thisDep=Tr.thisDep||U.thisDep,Tr.contextDep=Tr.contextDep||U.contextDep,Tr.propDep=Tr.propDep||U.propDep),Tr}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,".",$i),Gr.def(Or,".",Qi)]}):null}var fe=ce(fi);if(fe){var te=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var W=te.append(X,K),ve=X.shared.context;return K.set(ve,"."+q1,W[2]),K.set(ve,"."+P1,W[3]),W})}return{viewport:fe,scissor_box:ce(hl)}}function aa(I,U){var $=I.static,pe=typeof $[dl]=="string"&&typeof $[Yo]=="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=[],te=0;te"+Pr+"?"+W+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Ze,"(",W,".buffer)){",Jr,"=",Kr,".createStream(",po,",",W,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",W,".buffer);","}",Gr,'="type" in ',W,"?",Ce.glTypes,"[",W,".type]:",Jr,".dtype;",Lr.normalized,"=!!",W,".normalized;");function Or(Mr){K(Lr[Mr],"=",W,".",Mr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,te)}),Te}function Wa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,te){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,te){return fe.invoke(te,ce)})}),pe}function sn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,te=aa(I,U),X=ut(I,Te),K=St(I,X,Te),W=Dt(I,Te),ve=ln(I,Te),Ce=Sa(I,Te,te);function Ze(Or){var Mr=K[Or];Mr&&(ve[Or]=Mr)}Ze(fi),Ze(hr(hl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:W,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=W.vao,!Lr.drawVAO&&Ce.program&&!te&&Y.angle_instanced_arrays&&W.static.elements){var Tr=!0,Jr=Ce.program.attributes.map(function(Or){var Mr=U.static[Or];return Tr=Tr&&!!Mr,Mr});if(Tr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:W.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Mr){return Or.link(Gr)}),Lr.useVAO=!0}}return te?Lr.useVAO=!0:Lr.attributes=Ua(U,Te),Lr.context=Wa(pe,Te),Lr}function ya(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var te=$[fe],X=te.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ga(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,W=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(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",W,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function Ea(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,te=pe.current,X=pe.next,K=I.cond(te,".dirty");Be.forEach(function(W){var ve=hr(W);if(!(ve in $.state)){var Ce,Ze;if(ve in fe){Ce=fe[ve],Ze=ce[ve];var Kr=k(dr[ve].length,function(Tr){return K.def(Ce,"[",Tr,"]")});K(I.cond(Kr.map(function(Tr,Jr){return Tr+"!=="+Ze+"["+Jr+"]"}).join("||")).then(Te,".",kr[ve],"(",Kr,");",Kr.map(function(Tr,Jr){return Ze+"["+Jr+"]="+Tr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",te,".",ve);K(Lr),ve in Re?Lr(I.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Lr(Te,".",kr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function At(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,te=Te.gl,X;tr(Object.keys($)).forEach(function(K){var W=$[K];if(!(pe&&!pe(W))){var ve=W.append(I,U);if(Re[K]){var Ce=Re[K];Fr(W)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ei(ve)){var Ze=ce[K];U(te,".",kr[K],"(",ve,");",ve.map(function(Kr,Lr){return Ze+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(W)?(X=I.link(ve,{stable:!0}),U(te,".",kr[K],"(",X,");",fe,".",K,"=",X,";")):U(te,".",kr[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Da(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,te=ce.current,X=ce.timer,K=$.profile;function W(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Ze(Or){ve=U.def(),Or(ve,"=",W(),";"),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+=",W(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Mr=U.def(te,".profile");U(te,".profile=",Or,";"),U.exit(te,".profile=",Mr,";")}var Tr;if(K){if(Fr(K)){K.enable?(Ze(U),Kr(U.exit),Lr("true")):Lr("false");return}Tr=K.append(I,U),Lr(Tr)}else Tr=U.def(te,".profile");var Jr=I.block();Ze(Jr),U("if(",Tr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Tr,"){",Gr,"}")}function ja(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case pl:case Ol:case Bl:return 2;case on:case Ss:case Tf:return 3;case Af:case xu:case wu:return 4;default:return 1}}function te(X,K,W){var ve=ce.gl,Ce=U.def(X,".location"),Ze=U.def(ce.attributes,"[",Ce,"]"),Kr=W.state,Lr=W.buffer,Tr=[W.x,W.y,W.z,W.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Ze,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Mr=W.type,Pr;if(W.size?Pr=U.def(W.size,"||",K):Pr=K,U("if(",Ze,".type!==",Mr,"||",Ze,".size!==",Pr,"||",Jr.map(function(vt){return Ze+"."+vt+"!=="+W[vt]}).join("||"),"){",ve,".bindBuffer(",po,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Mr,W.normalized,W.stride,W.offset],");",Ze,".type=",Mr,";",Ze,".size=",Pr,";",Jr.map(function(vt){return Ze+"."+vt+"="+W[vt]+";"}).join(""),"}"),ar){var Ir=W.divisor;U("if(",Ze,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Ze,".divisor=",Ir,";}")}}function Or(){U("if(",Ze,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Ze,".buffer=null;","}if(",co.map(function(Mr,Pr){return Ze+"."+Mr+"!=="+Tr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Tr,");",co.map(function(Mr,Pr){return Ze+"."+Mr+"="+Tr[Pr]+";"}).join(""),"}")}Kr===Ji?Gr():Kr===As?Or():(U("if(",Kr,"===",Ji,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,W=$.attributes[K],ve;if(W){if(!Te(W))return;ve=W.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Ze){ve[Ze]=U.def(Ce,".",Ze)})}te(I.link(X),fe(X.info.type),ve)})}function fn(I,U,$,pe,Te,ce){for(var fe=I.shared,te=fe.gl,X,K=0;K1){for(var cn=[],Fi=[],Ki=0;Ki>1)",Lr],");")}function Ir(){$(Tr,".drawArraysInstancedANGLE(",[Ce,Ze,Kr,Lr],");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Mr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Ze+"<<(("+Jr+"-"+yc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Ze,Kr]+");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Mr(),$("}")):Or():Mr()}function pt(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){Da(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);"),ja(I,U,$,pe.attributes,function(){return!0})),fn(I,U,$,pe.uniforms,function(){return!0},!1),un(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Da(I,$),ya(I,$,U.context),ga(I,$,U.framebuffer),Ea(I,$,U),At(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(te){return pt(qt,I,U,te,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",Da(I,U);function Te(){return!0}ja(I,U,$,pe.attributes,Te),fn(I,U,$,pe.uniforms,Te,!1),un(I,U,U,$)}function me(I,U,$,pe){Da(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",te="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),W=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",X,"=",fe,"[",ce,"];",W,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ya(I,W,$.context),$.needsFramebuffer&&ga(I,W,$.framebuffer),At(I,W,$.state,ve),$.profile&&ve($.profile)&&Wt(I,W,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?W(I.shared.vao,".setVAO(",$.drawVAO.append(I,W),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),ja(I,K,$,pe.attributes,Ce),ja(I,W,$,pe.attributes,ve)),fn(I,K,$,pe.uniforms,Ce,!1),fn(I,W,$,pe.uniforms,ve,!0),un(I,K,W,$);else{var Ze=I.global.def("{}"),Kr=$.shader.progVar.append(I,W),Lr=W.def(Kr,".id"),Tr=W.def(Ze,"[",Lr,"]");W(I.shared.gl,".useProgram(",Kr,".program);","if(!",Tr,"){",Tr,"=",Ze,"[",Lr,"]=",I.link(function(Jr){return pt(z,I,$,Jr,2)}),"(",Kr,");}",Tr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Da(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Ze){pe=pe||U.context[Ze].propDep}),pe||(ya(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ga(I,$,ce)):ga(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function te(Ze){return Ze.contextDep&&pe||Ze.propDep}Ea(I,$,U),At(I,$,U.state,function(Ze){return!te(Ze)}),(!U.profile||!te(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 W=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(W,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",W,"[",ve,"]=",I.link(function(Ze){return pt(me,I,U,Ze,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(ya(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),tr(Object.keys(U.state)).forEach(function(te){var X=U.state[te],K=X.append(I,$);Ei(K)?K.forEach(function(W,ve){Cr(W)?$.set(I.next[te],"["+ve+"]",W):$.set(I.next[te],"["+ve+"]",I.link(W,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+te,I.link(K,{stable:!0})):$.set(pe.next,"."+te,K)}),Wt(I,$,U,!0,!0),[vo,gu,Ro,bi,Fo].forEach(function(te){var X=U.draw[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.draw,"."+te,K):$.set(pe.draw,"."+te,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var X=U.uniforms[te].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return Cr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(te),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(te){var X=U.attributes[te].append(I,$),K=I.scopeAttrib(te);Object.keys(new ke).forEach(function(W){$.set(K,"."+W,X[W])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);Cr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(te){var X=U.shader[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.shader,"."+te,K):$.set(pe.shader,"."+te,I.link(K,{stable:!0}))}}fe(Yo),fe(dl),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"||Ei(I))){for(var U=Object.keys(I),$=0;$=0;--pt){var qt=Zr[pt];qt&&qt(Ne,null,0)}Y.flush(),lr&&lr.update()}function St(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Sa(pt){pt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(pt){Y.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),Re.restore(),kr.restore(),xr.restore(),lr&&lr.restore(),hr.procs.refresh(),St(),mr.forEach(function(qt){qt()})}Cr&&(Cr.addEventListener(jt,Sa,!1),Cr.addEventListener(va,Dt,!1));function ln(){Zr.length=0,aa(),Cr&&(Cr.removeEventListener(jt,Sa),Cr.removeEventListener(va,Dt)),Xr.clear(),kr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(pt){pt()})}function Ut(pt){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 te(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(W){fe[X+"."+W]=K[W]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var te={},X={};return Object.keys(ce).forEach(function(K){var W=ce[K];if(v.isDynamic(W)){X[K]=v.unbox(W,K);return}else if(fe&&Array.isArray(W)){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 Ua=kr.setFBO=Ut({framebuffer:v.define.call(null,Ya,"framebuffer")});function Wa(pt,qt){var Qt=0;hr.procs.poll();var z=qt.color;z&&(Y.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=_n),"depth"in qt&&(Y.clearDepth(+qt.depth),Qt|=Ca),"stencil"in qt&&(Y.clearStencil(qt.stencil|0),Qt|=dt),Y.clear(Qt)}function sn(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ua(e({framebuffer:pt.framebuffer.faces[qt]},pt),Wa);else Ua(pt,Wa);else Wa(null,pt)}function ya(pt){Zr.push(pt);function qt(){var Qt=ei(Zr,pt);function z(){var me=ei(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return St(),{cancel:qt}}function ga(){var pt=cr.viewport,qt=cr.scissor_box;pt[0]=pt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=qt[2]=Y.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=qt[3]=Y.drawingBufferHeight}function Ea(){Ne.tick+=1,Ne.time=Da(),ga(),hr.procs.poll()}function At(){Be.refresh(),ga(),hr.procs.refresh(),lr&&lr.update()}function Da(){return(p()-$r)/1e3}At();function Wt(pt,qt){var Qt;switch(pt){case"frame":return ya(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:sr,destroy:ln,_gl:Y,_refresh:At,poll:function(){Ea(),lr&&lr.update()},now:Da,stats:Ye,getCachedCode:ja,preloadCachedCode:fn});return B.onDone(null,un),un}return Di})});var K_=N((mOe,jre)=>{"use strict";var I9e=Yre(),O9e=Wre();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=O9e({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||I9e({container:n._glcontainer.node()}),i}});var Kre=N((E9,Qre)=>{"use strict";var Xre=y7(),Zre=X7(),B9e=vee(),Jre=Ure(),S9=Ur(),z9e=rv().selectMode,G9e=K_(),U9e=qi(),H9e=G6(),V9e=d7().styleTextSelection,$re={};function Y9e(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 E9=Qre.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=G9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],$re);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(H9e(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=B9e(v)),i.line2d===!0&&(i.line2d=Zre(v)),i.scatter2d===!0&&(i.scatter2d=Xre(v)),i.fill2d===!0&&(i.fill2d=Zre(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;soe&&(isNaN(j[se])||isNaN(j[se+1]));)se-=2;J.positions=j.slice(oe,se+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=S9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,j){var oe=a[j];if(!(!J||!oe||!oe[0]||!oe[0].trace)){var se=oe[0],Le=se.trace,Ue=se.t,Ee=i.lineOptions[j],Ve,we,fr=[];Le._ownfill&&fr.push(j),Le._nexttrace&&fr.push(j+1),fr.length&&(i.fillOrder[j]=fr);var Ie=[],He=Ee&&Ee.positions||Ue.positions,vr,$e;if(Le.fill==="tozeroy"){for(vr=0;vrvr&&isNaN(He[$e+1]);)$e-=2;He[vr+1]!==0&&(Ie=[He[vr],0]),Ie=Ie.concat(He.slice(vr,$e+2)),He[$e+1]!==0&&(Ie=Ie.concat([He[$e],0]))}else if(Le.fill==="tozerox"){for(vr=0;vrvr&&isNaN(He[$e]);)$e-=2;He[vr]!==0&&(Ie=[0,He[vr+1]]),Ie=Ie.concat(He.slice(vr,$e+2)),He[$e]!==0&&(Ie=Ie.concat([0,He[$e+1]]))}else if(Le.fill==="toself"||Le.fill==="tonext"){for(Ie=[],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]=S9.selIndices2selPoints(x),O={};for(f=0;f{"use strict";var ete=jJ();ete.plot=Kre();rte.exports=ete});var nte=N((gOe,ate)=>{"use strict";ate.exports=tte()});var k9=N((bOe,ste)=>{"use strict";var W9e=lv(),lte=Nh(),ite=fm().axisHoverFormat,{hovertemplateAttrs:j9e,templatefallbackAttrs:X9e}=cd(),xg=mx(),Z9e=ci().idRegex,J9e=Xa().templatedArray,Xp=zn().extendFlat,Qu=W9e.marker,$9e=Qu.line,Q9e=Xp(lte("marker.line",{editTypeOverride:"calc"}),{width:Xp({},$9e.width,{editType:"calc"}),editType:"calc"}),e5=Xp(lte("marker"),{symbol:Qu.symbol,angle:Qu.angle,size:Xp({},Qu.size,{editType:"markerSize"}),sizeref:Qu.sizeref,sizemin:Qu.sizemin,sizemode:Qu.sizemode,opacity:Qu.opacity,colorbar:Qu.colorbar,line:Q9e,editType:"calc"});e5.color.editType=e5.cmin.editType=e5.cmax.editType="style";function ote(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:Z9e[e],editType:"plot"}}}ste.exports={dimensions:J9e("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:Xp({},xg.text,{}),hovertext:Xp({},xg.hovertext,{}),hovertemplate:j9e(),hovertemplatefallback:X9e(),xhoverformat:ite("x"),yhoverformat:ite("y"),marker:e5,xaxes:ote("x"),yaxes:ote("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:xg.selected.marker,editType:"calc"},unselected:{marker:xg.unselected.marker,editType:"calc"},opacity:xg.opacity}});var C9=N((xOe,fte)=>{"use strict";fte.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var L9=Ur(),K9e=gl(),ute=k9(),eMe=qi(),rMe=Sb(),tMe=C9(),aMe=yx().isOpenSymbol;cte.exports=function(r,t,a,n){function i(d,p){return L9.coerce(r,t,ute,d,p)}var o=K9e(r,t,{name:"dimensions",handleItemDefaults:nMe}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=tMe(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),rMe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=aMe(t.marker.symbol),v=eMe.isBubble(t);i("marker.line.width",c||v?1:0),iMe(r,t,n,i),L9.coerceSelectionMarkerOpacity(t,i)};function nMe(e,r){function t(n,i){return L9.coerce(e,r,ute.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function iMe(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 hte=Ur();dte.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]=hte.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||hte.extendFlat(s,o),s}});var gte=N((AOe,yte)=>{"use strict";var D9=Ur(),r5=kn(),oMe=ep().calcMarkerSize,lMe=ep().calcAxisExpansion,sMe=fy(),mte=ag().markerSelection,fMe=ag().markerStyle,uMe=pte(),cMe=ri().BADNUM,vMe=mp().TOO_MANY_POINTS;yte.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;EvMe,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=oMe(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?_g.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(_g.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?(_g.exports=function(){return Date.now()-t},t=Date.now()):(_g.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(bte)});var wte=N((TOe,n5)=>{var hMe=xte(),Ku=window,t5=["moz","webkit"],Jp="AnimationFrame",$p=Ku["request"+Jp],wg=Ku["cancel"+Jp]||Ku["cancelRequest"+Jp];for(Zp=0;!$p&&Zp{Ate.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 dMe=y7(),pMe=Hf(),mMe=v0(),Mte=wte(),yMe=Tte(),R9=yp(),gMe=h0();Ete.exports=Dv;function Dv(e,r){if(!(this instanceof Dv))return new Dv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=dMe(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=Mte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,Mte(()=>{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 bMe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function i5(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 Ste(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=R9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var Lte=N((EOe,Cte)=>{"use strict";var xMe=kte(),q9=Ur(),o5=kn(),_Me=rv().selectMode;Cte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,O=_Me(u)||!!n.selectedpoints||P,R=!0;if(O){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var V=n.selectedpoints,ae={};for(d=0;d{"use strict";Dte.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 Fte=P9(),AMe=JT().calcHover,Rte=yn().getFromId,TMe=zn().extendFlat;function MMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=qte(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=TMe({},e),c=0;c{"use strict";var zte=Ur(),Ite=zte.pushUnique,Ote=qi(),Bte=P9();Gte.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=!Ote.hasMarkers(n)&&!Ote.hasText(n);if(n.visible!==!0||c)return u;var v=Bte.getDimIndex(n,s),d=Bte.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 Hte=Ur(),SMe=fy(),EMe=ag().markerStyle;Vte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){SMe(r,a),Hte.extendFlat(n.matrixOptions,EMe(r,a));var i=Hte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var jte=N((FOe,Wte)=>{"use strict";var kMe=Bt(),CMe=IT();Wte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:k9(),supplyDefaults:vte(),colorbar:Rb(),calc:gte(),plot:Lte(),hoverPoints:Nte().hoverPoints,selectPoints:Ute(),editStyle:Yte(),meta:{}};kMe.register(CMe)});var Kte=N((ROe,Qte)=>{"use strict";var LMe=X7(),DMe=Bt(),FMe=K_(),RMe=im().getModuleCalcData,Fv=my(),Xte=kn().getFromId,Zte=yn().shouldShowZeroLine,Jte="splom",$te={};function qMe(e){var r=e._fullLayout,t=DMe.getModule(Jte),a=RMe(e.calcdata,t)[0],n=FMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],$te);n&&(r._hasOnlyLargeSploms&&N9(e),t.plot(e,{},a))}function PMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&N9(e);for(var a=0;a{"use strict";var eae=jte();eae.basePlotModule=Kte(),rae.exports=eae});var nae=N((POe,aae)=>{"use strict";aae.exports=tae()});var B9=N((NOe,iae)=>{"use strict";var BMe=Nh(),I9=Hl(),O9=zi(),zMe=ux().attributes,l5=zn().extendFlat,GMe=Xa().templatedArray;iae.exports={domain:zMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:O9({editType:"plot"}),tickfont:O9({autoShadowDflt:!0,editType:"plot"}),rangefont:O9({editType:"plot"}),dimensions:GMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:l5({},I9.tickvals,{editType:"plot"}),ticktext:l5({},I9.ticktext,{editType:"plot"}),tickformat:l5({},I9.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:l5({editType:"calc"},BMe("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 Ag=N((IOe,oae)=>{"use strict";oae.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 Tg=N((OOe,sae)=>{"use strict";var UMe=s2();function lae(e){return[e]}sae.exports={keyFun:function(e){return e.key},repeat:lae,descend:UMe,wrap:lae,unwrap:function(e){return e[0]}}});var U9=N((BOe,bae)=>{"use strict";var Zn=Ag(),af=da(),HMe=Tg().keyFun,s5=Tg().repeat,Qp=Ur().sorterAsc,VMe=Ur().strTranslate,fae=Zn.bar.snapRatio;function uae(e,r){return e*(1-fae)+r*fae}var cae=Zn.bar.snapClose;function YMe(e,r){return e*(1-cae)+r*cae}function u5(e,r,t,a){if(WMe(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",-Zn.bar.captureWidth/2).attr("width",Zn.bar.captureWidth)}function XMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function ZMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=vae(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 hae(){af.select(document.body).style("cursor",null)}function G9(e){e.attr("stroke-dasharray",ZMe)}function f5(e,r){var t=af.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Zn.bar.snapDuration).each("end",r):t;G9(a)}function dae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=vae(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 $Me(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Zn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=dae(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]-Zn.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 pae(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Zn.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(Qp),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),f5(e.parentNode)}function QMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(mae(e,r),pae(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,hae(),!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&&z9(t)):z9(t),n.brushCallback(r),f5(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||z9(t),n.brushCallback(r),f?f5(e.parentNode,l):(l(),f5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function mae(e,r){var t=r.height-af.mouse(e)[1]-2*Zn.verticalPadding,a=dae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),af.select(document.body).style("cursor",n)}function KMe(e){e.on("mousemove",function(r){af.event.preventDefault(),r.parent.inBrushDrag||mae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||hae()}).call(af.behavior.drag().on("dragstart",function(r){$Me(this,r)}).on("drag",function(r){pae(this,r)}).on("dragend",function(r){QMe(this,r)}))}function yae(e,r){return e[0]-r[0]}function eSe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(s5);n.enter().append("rect").classed("background",!0).call(jMe).call(XMe).style("pointer-events",a?"none":"auto").attr("transform",VMe(0,Zn.verticalPadding)),n.call(KMe).attr("height",function(l){return l.height-Zn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(s5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Zn.bar.width/2).attr("stroke-width",Zn.bar.width+Zn.bar.strokeWidth).attr("stroke",r).attr("opacity",Zn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(G9);var o=e.selectAll(".highlight").data(s5);o.enter().append("line").classed("highlight",!0).attr("x",-Zn.bar.width/2).attr("stroke-width",Zn.bar.width-Zn.bar.strokeWidth).attr("stroke",Zn.bar.fillColor).attr("opacity",Zn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(G9)}function rSe(e,r,t){var a=e.selectAll("."+Zn.cn.axisBrush).data(s5,HMe);a.enter().append("g").classed(Zn.cn.axisBrush,!0),eSe(a,r,t)}function tSe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function z9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function aSe(e){return function(t){var a=t.brush,n=tSe(a),i=n.slice();a.filter.set(i),e()}}function gae(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 nSe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Qp)}).sort(yae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=gae(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 iSe(e,r,t,a,n,i){var o=nSe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:aSe(n),brushEndCallback:i}}}function oSe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Qp)}),r.multiselect?e=gae(e.sort(yae)):e=[e[0]]):e=[e.sort(Qp)],r.tickvals){var t=r.tickvals.slice().sort(Qp);if(e=e.map(function(a){var n=[u5(0,t,a[0],[]),u5(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]}bae.exports={makeBrush:iSe,ensureAxisBrush:rSe,cleanRanges:oSe}});var wae=N((zOe,_ae)=>{"use strict";var Rv=Ur(),lSe=Is().hasColorscale,sSe=Ed(),fSe=ux().defaults,uSe=gl(),cSe=yn(),xae=B9(),vSe=U9(),H9=Ag().maxDimensionCount,hSe=C9();function dSe(e,r,t,a,n){var i=n("line.color",t);if(lSe(e,"line")&&Rv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),sSe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function pSe(e,r,t,a){function n(f,u){return Rv.coerce(e,r,xae.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},cSe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=vSe.cleanRanges(s,r))}}_ae.exports=function(r,t,a,n){function i(u,c){return Rv.coerce(r,t,xae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>H9&&(Rv.log("parcoords traces support up to "+H9+" dimensions at the moment"),o.splice(H9));var l=uSe(r,t,{name:"dimensions",layout:n,handleItemDefaults:pSe}),s=dSe(r,t,a,n,i);fSe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),hSe(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 Tae=N((GOe,Aae)=>{"use strict";var mSe=Ur().isArrayOrTypedArray,V9=Cd(),ySe=Tg().wrap;Aae.exports=function(r,t){var a,n;return V9.hasColorscale(t,"line")&&mSe(t.line.color)?(a=t.line.color,n=V9.extractOpts(t.line).colorscale,V9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=gSe(t._length),n=[[0,t.line.color],[1,t.line.color]]),ySe({lineColor:a,cscale:n})};function gSe(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(),Y9.default[e])t=Y9.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(Mae[v]!==void 0)return Mae[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 Y9,Sae,Mae,Eae=qg(()=>{Y9=rie(l7(),1),Sae=bSe,Mae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Mg,W9=qg(()=>{Mg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var c5,kae=qg(()=>{W9();c5={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}};Mg.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 Lae={};eie(Lae,{default:()=>Cae});function Cae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=Sae(e);if(!n.space)return[];let i=n.space[0]==="h"?c5.min:Mg.min,o=n.space[0]==="h"?c5.max:Mg.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=c5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var Dae=qg(()=>{Eae();W9();kae()});var j9=N(v5=>{"use strict";var xSe=Ur().isTypedArray;v5.convertTypedArray=function(e){return xSe(e)?Array.prototype.slice.call(e):e};v5.isOrdinal=function(e){return!!e.tickvals};v5.isVisible=function(e){return e.visible||!("visible"in e)}});var Gae=N((JOe,zae)=>{"use strict";var _Se=["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(` +`),ke;if(B&&(ke=C1(ue),B[ke]))return B[ke].apply(null,xe);var Xe=Function.apply(null,he.concat(ue));return B&&(B[ke]=Xe),Xe.apply(null,xe)}return{global:lr,link:_e,block:Ye,proc:Rr,scope:ir,cond:nr,compile:yr}}var co="xyzw".split(""),yc=5121,Ji=1,As=2,uu=0,hf=1,gc=2,df=3,Ts=4,bc=5,pf=6,xc="dither",yh="blend.enable",gh="blend.color",cu="blend.equation",vu="blend.func",_c="depth.enable",wc="depth.func",Ac="depth.range",Tc="depth.mask",hu="colorMask",mf="cull.enable",bh="cull.face",du="frontFace",yf="lineWidth",Mc="polygonOffset.enable",pu="polygonOffset.offset",gf="sample.alpha",bf="sample.enable",xf="sample.coverage",Sc="stencil.enable",mu="stencil.mask",Li="stencil.func",_f="stencil.opFront",vl="stencil.opBack",yu="scissor.enable",hl="scissor.box",fi="viewport",Ms="profile",Do="framebuffer",Yo="vert",dl="frag",vo="elements",Fo="primitive",Ro="count",gu="offset",bi="instances",Il="vao",wf="Width",ho="Height",$i=Do+wf,Qi=Do+ho,q1=fi+wf,P1=fi+ho,xh="drawingBuffer",Ec=xh+wf,kc=xh+ho,$0=[vu,cu,Li,_f,vl,xf,fi,hl,pu],po=34962,bu=34963,Q0=2884,N1=3042,I1=3024,O1=2960,K0=2929,ed=3089,Cc=32823,rd=32926,Lc=32928,Dc=5126,pl=35664,on=35665,Af=35666,ml=5124,Ol=35667,Ss=35668,xu=35669,_u=35670,Bl=35671,Tf=35672,wu=35673,Au=35674,Tu=35675,Mu=35676,Es=35678,Su=35680,Eu=4,h=1028,g=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,Z=0,ie=1,le=32774,ye=513,ge=36160,je=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},Ge={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||at(S)}function tr(S){return S.sort(function(B,Y){return B===fi?-1:Y===fi?1:B=1,he>=2,B)}else if(Y===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(Y===bc)return new De(!1,!1,!1,B);if(Y===pf){for(var Ae=!1,_e=!1,Ye=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(Ye=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new De(Ae,_e,Ye,B)}else return new De(Y===df,Y===gc,Y===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,Y,he,xe,Ae,_e,Ye,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};Y.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=Y.angle_instanced_arrays,ze=Y.webgl_draw_buffers,xr=Y.oes_vertex_array_object,dr={dirty:!0,profile:ue.profile},Xr={},Be=[],Re={},kr={};function hr(I){return I.replace(".","_")}function sr(I,U,$){var pe=hr(I);Be.push(I),Xr[pe]=dr[pe]=!!$,Re[pe]=U}function cr(I,U,$){var pe=hr(I);Be.push(I),Array.isArray($)?(dr[pe]=$.slice(),Xr[pe]=$.slice()):dr[pe]=Xr[pe]=$,kr[pe]=U}function Cr(I){return!!isNaN(I)}sr(xc,I1),sr(yh,N1),cr(gh,"blendColor",[0,0,0,0]),cr(cu,"blendEquationSeparate",[le,le]),cr(vu,"blendFuncSeparate",[ie,Z,ie,Z]),sr(_c,K0,!0),cr(wc,"depthFunc",ye),cr(Ac,"depthRange",[0,1]),cr(Tc,"depthMask",!0),cr(hu,hu,[!0,!0,!0,!0]),sr(mf,Q0),cr(bh,"cullFace",g),cr(du,du,C),cr(yf,yf,1),sr(Mc,Cc),cr(pu,"polygonOffset",[0,0]),sr(gf,rd),sr(bf,Lc),cr(xf,"sampleCoverage",[1,!1]),sr(Sc,O1),cr(mu,"stencilMask",-1),cr(Li,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[g,q,q,q]),sr(yu,ed),cr(hl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:dr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:Y,timer:yr,isBufferArgs:er},ct={primTypes:Bo,compareFuncs:Me,blendFuncs:Qe,blendEquations:Xe,stencilOps:Fe,glTypes:hn,orientationType:Ge};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return je+U})}));var mr=0;function Dr(){var I=J0({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(kr).forEach(function(K){Array.isArray(dr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var te=I.constants={};Object.keys(ct).forEach(function(K){te[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,W){switch(W.type){case uu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(W.data),".call(",ve.slice(0,Math.max(W.data.length+1,4)),")");case hf:return K.def(Te.props,W.data);case gc:return K.def(Te.context,W.data);case df:return K.def("this",W.data);case Ts:return W.data.append(I,K),W.data.ref;case bc:return W.data.toString();case pf:return W.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var W=B.id(K);if(W in X)return X[W];var ve=nr.scope[W];ve||(ve=nr.scope[W]=new ke);var Ce=X[W]=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,te){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,te){return fe.invoke(te,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Do in $){var Te=$[Do];return Te?(Te=Ye.getFramebuffer(Te),Br(function(fe,te){var X=fe.link(Te),K=fe.shared;te.set(K.framebuffer,".next",X);var W=K.context;return te.set(W,"."+$i,X+".width"),te.set(W,"."+Qi,X+".height"),X})):Br(function(fe,te){var X=fe.shared;te.set(X.framebuffer,".next","null");var K=X.context;return te.set(K,"."+$i,K+"."+Ec),te.set(K,"."+Qi,K+"."+kc),"null"})}else if(Do in pe){var ce=pe[Do];return it(ce,function(fe,te){var X=fe.invoke(te,ce),K=fe.shared,W=K.framebuffer,ve=te.def(W,".getFramebuffer(",X,")");te.set(W,".next",ve);var Ce=K.context;return te.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+Ec),te.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+kc),ve})}else return null}function St(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],W=!0,ve=K.x|0,Ce=K.y|0,Ze,Kr;return"width"in K?Ze=K.width|0:W=!1,"height"in K?Kr=K.height|0:W=!1,new De(!W&&U&&U.thisDep,!W&&U&&U.contextDep,!W&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Mr=Ze;"width"in K||(Mr=Gr.def(Or,".",$i,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",Qi,"-",Ce)),[ve,Ce,Mr,Pr]})}else if(X in Te){var Lr=Te[X],Tr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Mr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Mr,".",$i,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Mr,".",Qi,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Tr.thisDep=Tr.thisDep||U.thisDep,Tr.contextDep=Tr.contextDep||U.contextDep,Tr.propDep=Tr.propDep||U.propDep),Tr}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,".",$i),Gr.def(Or,".",Qi)]}):null}var fe=ce(fi);if(fe){var te=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var W=te.append(X,K),ve=X.shared.context;return K.set(ve,"."+q1,W[2]),K.set(ve,"."+P1,W[3]),W})}return{viewport:fe,scissor_box:ce(hl)}}function aa(I,U){var $=I.static,pe=typeof $[dl]=="string"&&typeof $[Yo]=="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=[],te=0;te"+Pr+"?"+W+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Ze,"(",W,".buffer)){",Jr,"=",Kr,".createStream(",po,",",W,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",W,".buffer);","}",Gr,'="type" in ',W,"?",Ce.glTypes,"[",W,".type]:",Jr,".dtype;",Lr.normalized,"=!!",W,".normalized;");function Or(Mr){K(Lr[Mr],"=",W,".",Mr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,te)}),Te}function Wa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,te){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,te){return fe.invoke(te,ce)})}),pe}function sn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,te=aa(I,U),X=ut(I,Te),K=St(I,X,Te),W=Dt(I,Te),ve=ln(I,Te),Ce=Sa(I,Te,te);function Ze(Or){var Mr=K[Or];Mr&&(ve[Or]=Mr)}Ze(fi),Ze(hr(hl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:W,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=W.vao,!Lr.drawVAO&&Ce.program&&!te&&Y.angle_instanced_arrays&&W.static.elements){var Tr=!0,Jr=Ce.program.attributes.map(function(Or){var Mr=U.static[Or];return Tr=Tr&&!!Mr,Mr});if(Tr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:W.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Mr){return Or.link(Gr)}),Lr.useVAO=!0}}return te?Lr.useVAO=!0:Lr.attributes=Ua(U,Te),Lr.context=Wa(pe,Te),Lr}function ya(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var te=$[fe],X=te.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ga(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,W=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(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(te,".drawBuffersWEBGL(",W,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function Ea(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,te=pe.current,X=pe.next,K=I.cond(te,".dirty");Be.forEach(function(W){var ve=hr(W);if(!(ve in $.state)){var Ce,Ze;if(ve in fe){Ce=fe[ve],Ze=ce[ve];var Kr=k(dr[ve].length,function(Tr){return K.def(Ce,"[",Tr,"]")});K(I.cond(Kr.map(function(Tr,Jr){return Tr+"!=="+Ze+"["+Jr+"]"}).join("||")).then(Te,".",kr[ve],"(",Kr,");",Kr.map(function(Tr,Jr){return Ze+"["+Jr+"]="+Tr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",te,".",ve);K(Lr),ve in Re?Lr(I.cond(Ce).then(Te,".enable(",Re[ve],");").else(Te,".disable(",Re[ve],");"),te,".",ve,"=",Ce,";"):Lr(Te,".",kr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(te,".dirty=false;"),U(K)}function At(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,te=Te.gl,X;tr(Object.keys($)).forEach(function(K){var W=$[K];if(!(pe&&!pe(W))){var ve=W.append(I,U);if(Re[K]){var Ce=Re[K];Fr(W)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ei(ve)){var Ze=ce[K];U(te,".",kr[K],"(",ve,");",ve.map(function(Kr,Lr){return Ze+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(W)?(X=I.link(ve,{stable:!0}),U(te,".",kr[K],"(",X,");",fe,".",K,"=",X,";")):U(te,".",kr[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Da(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,te=ce.current,X=ce.timer,K=$.profile;function W(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Ze(Or){ve=U.def(),Or(ve,"=",W(),";"),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+=",W(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Mr=U.def(te,".profile");U(te,".profile=",Or,";"),U.exit(te,".profile=",Mr,";")}var Tr;if(K){if(Fr(K)){K.enable?(Ze(U),Kr(U.exit),Lr("true")):Lr("false");return}Tr=K.append(I,U),Lr(Tr)}else Tr=U.def(te,".profile");var Jr=I.block();Ze(Jr),U("if(",Tr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Tr,"){",Gr,"}")}function ja(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case pl:case Ol:case Bl:return 2;case on:case Ss:case Tf:return 3;case Af:case xu:case wu:return 4;default:return 1}}function te(X,K,W){var ve=ce.gl,Ce=U.def(X,".location"),Ze=U.def(ce.attributes,"[",Ce,"]"),Kr=W.state,Lr=W.buffer,Tr=[W.x,W.y,W.z,W.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Ze,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Mr=W.type,Pr;if(W.size?Pr=U.def(W.size,"||",K):Pr=K,U("if(",Ze,".type!==",Mr,"||",Ze,".size!==",Pr,"||",Jr.map(function(vt){return Ze+"."+vt+"!=="+W[vt]}).join("||"),"){",ve,".bindBuffer(",po,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Mr,W.normalized,W.stride,W.offset],");",Ze,".type=",Mr,";",Ze,".size=",Pr,";",Jr.map(function(vt){return Ze+"."+vt+"="+W[vt]+";"}).join(""),"}"),ar){var Ir=W.divisor;U("if(",Ze,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Ze,".divisor=",Ir,";}")}}function Or(){U("if(",Ze,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Ze,".buffer=null;","}if(",co.map(function(Mr,Pr){return Ze+"."+Mr+"!=="+Tr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Tr,");",co.map(function(Mr,Pr){return Ze+"."+Mr+"="+Tr[Pr]+";"}).join(""),"}")}Kr===Ji?Gr():Kr===As?Or():(U("if(",Kr,"===",Ji,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,W=$.attributes[K],ve;if(W){if(!Te(W))return;ve=W.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Ze){ve[Ze]=U.def(Ce,".",Ze)})}te(I.link(X),fe(X.info.type),ve)})}function fn(I,U,$,pe,Te,ce){for(var fe=I.shared,te=fe.gl,X,K=0;K1){for(var cn=[],Fi=[],Ki=0;Ki>1)",Lr],");")}function Ir(){$(Tr,".drawArraysInstancedANGLE(",[Ce,Ze,Kr,Lr],");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Mr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Ze+"<<(("+Jr+"-"+yc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Ze,Kr]+");")}W&&W!=="null"?Gr?Pr():($("if(",W,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Mr(),$("}")):Or():Mr()}function pt(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){Da(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);"),ja(I,U,$,pe.attributes,function(){return!0})),fn(I,U,$,pe.uniforms,function(){return!0},!1),un(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Da(I,$),ya(I,$,U.context),ga(I,$,U.framebuffer),Ea(I,$,U),At(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(te){return pt(qt,I,U,te,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",Da(I,U);function Te(){return!0}ja(I,U,$,pe.attributes,Te),fn(I,U,$,pe.uniforms,Te,!1),un(I,U,U,$)}function me(I,U,$,pe){Da(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",te="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),W=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",te,";++",ce,"){",X,"=",fe,"[",ce,"];",W,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ya(I,W,$.context),$.needsFramebuffer&&ga(I,W,$.framebuffer),At(I,W,$.state,ve),$.profile&&ve($.profile)&&Wt(I,W,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?W(I.shared.vao,".setVAO(",$.drawVAO.append(I,W),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),ja(I,K,$,pe.attributes,Ce),ja(I,W,$,pe.attributes,ve)),fn(I,K,$,pe.uniforms,Ce,!1),fn(I,W,$,pe.uniforms,ve,!0),un(I,K,W,$);else{var Ze=I.global.def("{}"),Kr=$.shader.progVar.append(I,W),Lr=W.def(Kr,".id"),Tr=W.def(Ze,"[",Lr,"]");W(I.shared.gl,".useProgram(",Kr,".program);","if(!",Tr,"){",Tr,"=",Ze,"[",Lr,"]=",I.link(function(Jr){return pt(z,I,$,Jr,2)}),"(",Kr,");}",Tr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Da(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Ze){pe=pe||U.context[Ze].propDep}),pe||(ya(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ga(I,$,ce)):ga(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function te(Ze){return Ze.contextDep&&pe||Ze.propDep}Ea(I,$,U),At(I,$,U.state,function(Ze){return!te(Ze)}),(!U.profile||!te(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 W=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(W,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",W,"[",ve,"]=",I.link(function(Ze){return pt(me,I,U,Ze,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(ya(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),tr(Object.keys(U.state)).forEach(function(te){var X=U.state[te],K=X.append(I,$);Ei(K)?K.forEach(function(W,ve){Cr(W)?$.set(I.next[te],"["+ve+"]",W):$.set(I.next[te],"["+ve+"]",I.link(W,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+te,I.link(K,{stable:!0})):$.set(pe.next,"."+te,K)}),Wt(I,$,U,!0,!0),[vo,gu,Ro,bi,Fo].forEach(function(te){var X=U.draw[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.draw,"."+te,K):$.set(pe.draw,"."+te,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var X=U.uniforms[te].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return Cr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(te),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(te){var X=U.attributes[te].append(I,$),K=I.scopeAttrib(te);Object.keys(new ke).forEach(function(W){$.set(K,"."+W,X[W])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);Cr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(te){var X=U.shader[te];if(X){var K=X.append(I,$);Cr(K)?$.set(pe.shader,"."+te,K):$.set(pe.shader,"."+te,I.link(K,{stable:!0}))}}fe(Yo),fe(dl),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"||Ei(I))){for(var U=Object.keys(I),$=0;$=0;--pt){var qt=Zr[pt];qt&&qt(Ne,null,0)}Y.flush(),lr&&lr.update()}function St(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Sa(pt){pt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(pt){Y.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),Re.restore(),kr.restore(),xr.restore(),lr&&lr.restore(),hr.procs.refresh(),St(),mr.forEach(function(qt){qt()})}Cr&&(Cr.addEventListener(jt,Sa,!1),Cr.addEventListener(va,Dt,!1));function ln(){Zr.length=0,aa(),Cr&&(Cr.removeEventListener(jt,Sa),Cr.removeEventListener(va,Dt)),Xr.clear(),kr.clear(),Re.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(pt){pt()})}function Ut(pt){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 te(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(W){fe[X+"."+W]=K[W]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var te={},X={};return Object.keys(ce).forEach(function(K){var W=ce[K];if(v.isDynamic(W)){X[K]=v.unbox(W,K);return}else if(fe&&Array.isArray(W)){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 Ua=kr.setFBO=Ut({framebuffer:v.define.call(null,Ya,"framebuffer")});function Wa(pt,qt){var Qt=0;hr.procs.poll();var z=qt.color;z&&(Y.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=_n),"depth"in qt&&(Y.clearDepth(+qt.depth),Qt|=Ca),"stencil"in qt&&(Y.clearStencil(qt.stencil|0),Qt|=dt),Y.clear(Qt)}function sn(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ua(e({framebuffer:pt.framebuffer.faces[qt]},pt),Wa);else Ua(pt,Wa);else Wa(null,pt)}function ya(pt){Zr.push(pt);function qt(){var Qt=ei(Zr,pt);function z(){var me=ei(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return St(),{cancel:qt}}function ga(){var pt=cr.viewport,qt=cr.scissor_box;pt[0]=pt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=qt[2]=Y.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=qt[3]=Y.drawingBufferHeight}function Ea(){Ne.tick+=1,Ne.time=Da(),ga(),hr.procs.poll()}function At(){Be.refresh(),ga(),hr.procs.refresh(),lr&&lr.update()}function Da(){return(p()-$r)/1e3}At();function Wt(pt,qt){var Qt;switch(pt){case"frame":return ya(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:sr,destroy:ln,_gl:Y,_refresh:At,poll:function(){Ea(),lr&&lr.update()},now:Da,stats:Ye,getCachedCode:ja,preloadCachedCode:fn});return B.onDone(null,un),un}return Di})});var K_=N((mOe,jre)=>{"use strict";var I9e=Yre(),O9e=Wre();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=O9e({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||I9e({container:n._glcontainer.node()}),i}});var Kre=N((E9,Qre)=>{"use strict";var Xre=y7(),Zre=X7(),B9e=vee(),Jre=Ure(),S9=Ur(),z9e=rv().selectMode,G9e=K_(),U9e=qi(),H9e=G6(),V9e=d7().styleTextSelection,$re={};function Y9e(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 E9=Qre.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=G9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],$re);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(H9e(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=B9e(v)),i.line2d===!0&&(i.line2d=Zre(v)),i.scatter2d===!0&&(i.scatter2d=Xre(v)),i.fill2d===!0&&(i.fill2d=Zre(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;soe&&(isNaN(j[se])||isNaN(j[se+1]));)se-=2;J.positions=j.slice(oe,se+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=S9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,j){var oe=a[j];if(!(!J||!oe||!oe[0]||!oe[0].trace)){var se=oe[0],Le=se.trace,Ue=se.t,Ee=i.lineOptions[j],Ve,we,fr=[];Le._ownfill&&fr.push(j),Le._nexttrace&&fr.push(j+1),fr.length&&(i.fillOrder[j]=fr);var Ie=[],He=Ee&&Ee.positions||Ue.positions,vr,$e;if(Le.fill==="tozeroy"){for(vr=0;vrvr&&isNaN(He[$e+1]);)$e-=2;He[vr+1]!==0&&(Ie=[He[vr],0]),Ie=Ie.concat(He.slice(vr,$e+2)),He[$e+1]!==0&&(Ie=Ie.concat([He[$e],0]))}else if(Le.fill==="tozerox"){for(vr=0;vrvr&&isNaN(He[$e]);)$e-=2;He[vr]!==0&&(Ie=[0,He[vr+1]]),Ie=Ie.concat(He.slice(vr,$e+2)),He[$e]!==0&&(Ie=Ie.concat([0,He[$e+1]]))}else if(Le.fill==="toself"||Le.fill==="tonext"){for(Ie=[],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]=S9.selIndices2selPoints(x),O={};for(f=0;f{"use strict";var ete=jJ();ete.plot=Kre();rte.exports=ete});var nte=N((gOe,ate)=>{"use strict";ate.exports=tte()});var k9=N((bOe,ste)=>{"use strict";var W9e=lv(),lte=Nh(),ite=fm().axisHoverFormat,{hovertemplateAttrs:j9e,templatefallbackAttrs:X9e}=cd(),_g=mx(),Z9e=ci().idRegex,J9e=Xa().templatedArray,Xp=zn().extendFlat,Qu=W9e.marker,$9e=Qu.line,Q9e=Xp(lte("marker.line",{editTypeOverride:"calc"}),{width:Xp({},$9e.width,{editType:"calc"}),editType:"calc"}),e5=Xp(lte("marker"),{symbol:Qu.symbol,angle:Qu.angle,size:Xp({},Qu.size,{editType:"markerSize"}),sizeref:Qu.sizeref,sizemin:Qu.sizemin,sizemode:Qu.sizemode,opacity:Qu.opacity,colorbar:Qu.colorbar,line:Q9e,editType:"calc"});e5.color.editType=e5.cmin.editType=e5.cmax.editType="style";function ote(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:Z9e[e],editType:"plot"}}}ste.exports={dimensions:J9e("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:Xp({},_g.text,{}),hovertext:Xp({},_g.hovertext,{}),hovertemplate:j9e(),hovertemplatefallback:X9e(),xhoverformat:ite("x"),yhoverformat:ite("y"),marker:e5,xaxes:ote("x"),yaxes:ote("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 C9=N((xOe,fte)=>{"use strict";fte.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var L9=Ur(),K9e=gl(),ute=k9(),eMe=qi(),rMe=Sb(),tMe=C9(),aMe=yx().isOpenSymbol;cte.exports=function(r,t,a,n){function i(d,p){return L9.coerce(r,t,ute,d,p)}var o=K9e(r,t,{name:"dimensions",handleItemDefaults:nMe}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=tMe(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),rMe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=aMe(t.marker.symbol),v=eMe.isBubble(t);i("marker.line.width",c||v?1:0),iMe(r,t,n,i),L9.coerceSelectionMarkerOpacity(t,i)};function nMe(e,r){function t(n,i){return L9.coerce(e,r,ute.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function iMe(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 hte=Ur();dte.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]=hte.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||hte.extendFlat(s,o),s}});var gte=N((AOe,yte)=>{"use strict";var D9=Ur(),r5=kn(),oMe=ep().calcMarkerSize,lMe=ep().calcAxisExpansion,sMe=uy(),mte=ng().markerSelection,fMe=ng().markerStyle,uMe=pte(),cMe=ri().BADNUM,vMe=mp().TOO_MANY_POINTS;yte.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;EvMe,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=oMe(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(bte)});var wte=N((TOe,n5)=>{var hMe=xte(),Ku=window,t5=["moz","webkit"],Jp="AnimationFrame",$p=Ku["request"+Jp],Ag=Ku["cancel"+Jp]||Ku["cancelRequest"+Jp];for(Zp=0;!$p&&Zp{Ate.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 dMe=y7(),pMe=Hf(),mMe=v0(),Mte=wte(),yMe=Tte(),R9=yp(),gMe=h0();Ete.exports=Dv;function Dv(e,r){if(!(this instanceof Dv))return new Dv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=dMe(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=Mte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,Mte(()=>{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 bMe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function i5(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 Ste(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=R9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var Lte=N((EOe,Cte)=>{"use strict";var xMe=kte(),q9=Ur(),o5=kn(),_Me=rv().selectMode;Cte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,O=_Me(u)||!!n.selectedpoints||P,R=!0;if(O){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var V=n.selectedpoints,ae={};for(d=0;d{"use strict";Dte.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 Fte=P9(),AMe=JT().calcHover,Rte=yn().getFromId,TMe=zn().extendFlat;function MMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=qte(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=TMe({},e),c=0;c{"use strict";var zte=Ur(),Ite=zte.pushUnique,Ote=qi(),Bte=P9();Gte.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=!Ote.hasMarkers(n)&&!Ote.hasText(n);if(n.visible!==!0||c)return u;var v=Bte.getDimIndex(n,s),d=Bte.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 Hte=Ur(),SMe=uy(),EMe=ng().markerStyle;Vte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){SMe(r,a),Hte.extendFlat(n.matrixOptions,EMe(r,a));var i=Hte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var jte=N((FOe,Wte)=>{"use strict";var kMe=Bt(),CMe=IT();Wte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:k9(),supplyDefaults:vte(),colorbar:Rb(),calc:gte(),plot:Lte(),hoverPoints:Nte().hoverPoints,selectPoints:Ute(),editStyle:Yte(),meta:{}};kMe.register(CMe)});var Kte=N((ROe,Qte)=>{"use strict";var LMe=X7(),DMe=Bt(),FMe=K_(),RMe=im().getModuleCalcData,Fv=yy(),Xte=kn().getFromId,Zte=yn().shouldShowZeroLine,Jte="splom",$te={};function qMe(e){var r=e._fullLayout,t=DMe.getModule(Jte),a=RMe(e.calcdata,t)[0],n=FMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],$te);n&&(r._hasOnlyLargeSploms&&N9(e),t.plot(e,{},a))}function PMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&N9(e);for(var a=0;a{"use strict";var eae=jte();eae.basePlotModule=Kte(),rae.exports=eae});var nae=N((POe,aae)=>{"use strict";aae.exports=tae()});var B9=N((NOe,iae)=>{"use strict";var BMe=Nh(),I9=Hl(),O9=zi(),zMe=ux().attributes,l5=zn().extendFlat,GMe=Xa().templatedArray;iae.exports={domain:zMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:O9({editType:"plot"}),tickfont:O9({autoShadowDflt:!0,editType:"plot"}),rangefont:O9({editType:"plot"}),dimensions:GMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:l5({},I9.tickvals,{editType:"plot"}),ticktext:l5({},I9.ticktext,{editType:"plot"}),tickformat:l5({},I9.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:l5({editType:"calc"},BMe("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((IOe,oae)=>{"use strict";oae.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((OOe,sae)=>{"use strict";var UMe=f2();function lae(e){return[e]}sae.exports={keyFun:function(e){return e.key},repeat:lae,descend:UMe,wrap:lae,unwrap:function(e){return e[0]}}});var U9=N((BOe,bae)=>{"use strict";var Zn=Tg(),af=da(),HMe=Mg().keyFun,s5=Mg().repeat,Qp=Ur().sorterAsc,VMe=Ur().strTranslate,fae=Zn.bar.snapRatio;function uae(e,r){return e*(1-fae)+r*fae}var cae=Zn.bar.snapClose;function YMe(e,r){return e*(1-cae)+r*cae}function u5(e,r,t,a){if(WMe(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",-Zn.bar.captureWidth/2).attr("width",Zn.bar.captureWidth)}function XMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function ZMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=vae(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 hae(){af.select(document.body).style("cursor",null)}function G9(e){e.attr("stroke-dasharray",ZMe)}function f5(e,r){var t=af.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Zn.bar.snapDuration).each("end",r):t;G9(a)}function dae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=vae(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 $Me(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Zn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=dae(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]-Zn.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 pae(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Zn.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(Qp),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),f5(e.parentNode)}function QMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(mae(e,r),pae(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,hae(),!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&&z9(t)):z9(t),n.brushCallback(r),f5(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||z9(t),n.brushCallback(r),f?f5(e.parentNode,l):(l(),f5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function mae(e,r){var t=r.height-af.mouse(e)[1]-2*Zn.verticalPadding,a=dae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),af.select(document.body).style("cursor",n)}function KMe(e){e.on("mousemove",function(r){af.event.preventDefault(),r.parent.inBrushDrag||mae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||hae()}).call(af.behavior.drag().on("dragstart",function(r){$Me(this,r)}).on("drag",function(r){pae(this,r)}).on("dragend",function(r){QMe(this,r)}))}function yae(e,r){return e[0]-r[0]}function eSe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(s5);n.enter().append("rect").classed("background",!0).call(jMe).call(XMe).style("pointer-events",a?"none":"auto").attr("transform",VMe(0,Zn.verticalPadding)),n.call(KMe).attr("height",function(l){return l.height-Zn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(s5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Zn.bar.width/2).attr("stroke-width",Zn.bar.width+Zn.bar.strokeWidth).attr("stroke",r).attr("opacity",Zn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(G9);var o=e.selectAll(".highlight").data(s5);o.enter().append("line").classed("highlight",!0).attr("x",-Zn.bar.width/2).attr("stroke-width",Zn.bar.width-Zn.bar.strokeWidth).attr("stroke",Zn.bar.fillColor).attr("opacity",Zn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(G9)}function rSe(e,r,t){var a=e.selectAll("."+Zn.cn.axisBrush).data(s5,HMe);a.enter().append("g").classed(Zn.cn.axisBrush,!0),eSe(a,r,t)}function tSe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function z9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function aSe(e){return function(t){var a=t.brush,n=tSe(a),i=n.slice();a.filter.set(i),e()}}function gae(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 nSe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Qp)}).sort(yae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=gae(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 iSe(e,r,t,a,n,i){var o=nSe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:aSe(n),brushEndCallback:i}}}function oSe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Qp)}),r.multiselect?e=gae(e.sort(yae)):e=[e[0]]):e=[e.sort(Qp)],r.tickvals){var t=r.tickvals.slice().sort(Qp);if(e=e.map(function(a){var n=[u5(0,t,a[0],[]),u5(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]}bae.exports={makeBrush:iSe,ensureAxisBrush:rSe,cleanRanges:oSe}});var wae=N((zOe,_ae)=>{"use strict";var Rv=Ur(),lSe=Is().hasColorscale,sSe=Ed(),fSe=ux().defaults,uSe=gl(),cSe=yn(),xae=B9(),vSe=U9(),H9=Tg().maxDimensionCount,hSe=C9();function dSe(e,r,t,a,n){var i=n("line.color",t);if(lSe(e,"line")&&Rv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),sSe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function pSe(e,r,t,a){function n(f,u){return Rv.coerce(e,r,xae.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},cSe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=vSe.cleanRanges(s,r))}}_ae.exports=function(r,t,a,n){function i(u,c){return Rv.coerce(r,t,xae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>H9&&(Rv.log("parcoords traces support up to "+H9+" dimensions at the moment"),o.splice(H9));var l=uSe(r,t,{name:"dimensions",layout:n,handleItemDefaults:pSe}),s=dSe(r,t,a,n,i);fSe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),hSe(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 Tae=N((GOe,Aae)=>{"use strict";var mSe=Ur().isArrayOrTypedArray,V9=Cd(),ySe=Mg().wrap;Aae.exports=function(r,t){var a,n;return V9.hasColorscale(t,"line")&&mSe(t.line.color)?(a=t.line.color,n=V9.extractOpts(t.line).colorscale,V9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=gSe(t._length),n=[[0,t.line.color],[1,t.line.color]]),ySe({lineColor:a,cscale:n})};function gSe(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(),Y9.default[e])t=Y9.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(Mae[v]!==void 0)return Mae[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 Y9,Sae,Mae,Eae=Pg(()=>{Y9=rie(l7(),1),Sae=bSe,Mae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Sg,W9=Pg(()=>{Sg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var c5,kae=Pg(()=>{W9();c5={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 Lae={};eie(Lae,{default:()=>Cae});function Cae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=Sae(e);if(!n.space)return[];let i=n.space[0]==="h"?c5.min:Sg.min,o=n.space[0]==="h"?c5.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=c5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var Dae=Pg(()=>{Eae();W9();kae()});var j9=N(v5=>{"use strict";var xSe=Ur().isTypedArray;v5.convertTypedArray=function(e){return xSe(e)?Array.prototype.slice.call(e):e};v5.isOrdinal=function(e){return!!e.tickvals};v5.isVisible=function(e){return e.visible||!("visible"in e)}});var Gae=N((JOe,zae)=>{"use strict";var _Se=["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(` `),wSe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Sg=Ag().maxDimensionCount,Iae=Ur(),Fae=1e-6,h5=2048,ASe=new Uint8Array(4),Rae=new Uint8Array(4),qae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function TSe(e){e.read({x:0,y:0,width:1,height:1,data:ASe})}function Oae(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 MSe(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],Oae(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 kSe(e,r,t){for(var a=new Array(e*(Sg+4)),n=0,i=0;ire&&(re=k[R].dim1.canvasX,V=R);O===0&&Oae(n,0,0,f.canvasWidth,f.canvasHeight);var Q=_(t);for(R=0;R{"use strict";var Pi=da(),ec=Ur(),Z9=ec.isArrayOrTypedArray,jae=ec.numberFormat,Xae=(Dae(),tie(Lae)).default,Zae=yn(),RSe=ec.strRotate,Xf=ec.strTranslate,qSe=to(),d5=Ha(),Uae=Cd(),Q9=Tg(),fs=Q9.keyFun,Zf=Q9.repeat,Jae=Q9.unwrap,Kp=j9(),wa=Ag(),$ae=U9(),PSe=Gae();function Hae(e,r,t){return ec.aggNums(e,null,r,t)}function Qae(e,r){return K9(Hae(Math.min,e,r),Hae(Math.max,e,r))}function p5(e){var r=e.range;return r?K9(r[0],r[1]):Qae(e.values,e._length)}function K9(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 NSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function ISe(e,r,t,a,n){var i=p5(t);return a?Pi.scale.ordinal().domain(a.map(NSe(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)})):Pi.scale.linear().domain(i).range([e-r,r])}function OSe(e,r){return Pi.scale.linear().range([r,e-r])}function BSe(e,r){return Pi.scale.linear().domain(p5(e)).range([r,1-r])}function zSe(e){if(e.tickvals){var r=p5(e);return Pi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function GSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Xae(i[1]);return Pi.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Pi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function $9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function USe(e,r,t){var a=Jae(r),n=a.trace,i=Kp.convertTypedArray(a.lineColor),o=n.line,l={color:Xae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Uae.extractOpts(o),f=s.reversescale?Uae.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=ec.extendDeepNoArrays({},o,{color:i.map(Pi.scale.linear().domain(p5({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(Kp.isVisible).length,dimensions:c,tickDistance:wa.tickDistance,unitToColor:GSe(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*wa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*wa.canvasPixelRatio,width:E,height:M,canvasPixelRatio:wa.canvasPixelRatio}}function HSe(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=OSe(n,wa.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(Kp.isVisible).map(function(v,d){var p=BSe(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&&!Z9(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 V=$9(H);!e.contextShown()&&V?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(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,V){return{val:H,text:M[V]}}function F(H,V){return H.val-V.val}if(Z9(E)&&E.length){ec.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!Z9(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=V||J>=ae)return;var j=R.lineLayer.readPixel(Q,ae-1-J),oe=j[3]!==0,se=oe?j[2]+256*(j[1]+256*j[0]):null,Le={x:Q,y:J,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:se};se!==p&&(oe?n.hover(Le):n.unhover&&n.unhover(Le),p=se)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+wa.cn.parcoords).data(v,fs);m.exit().remove(),m.enter().append("g").classed(wa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Xf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+wa.cn.parcoordsControlView).data(Zf,fs);b.enter().append("g").classed(wa.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Xf(R.model.pad.l,R.model.pad.t)});var T=b.selectAll("."+wa.cn.yAxis).data(function(R){return R.dimensions},fs);T.enter().append("g").classed(wa.cn.yAxis,!0),b.each(function(R){J9(T,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=PSe(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 Xf(R.xScale(R.xIndex),0)}),T.call(Pi.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-wa.overdrag,Math.min(R.model.width+wa.overdrag,Pi.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,T.sort(function(V,ae){return V.x-ae.x}).each(function(V,ae){V.xIndex=ae,V.x=R===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),J9(T,H,f),T.filter(function(V){return Math.abs(R.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Xf(V.xScale(V.xIndex),0)}),Pi.select(this).attr("transform",Xf(R.x,0)),T.each(function(V,ae,re){re===R.parent.key&&(H.dimensions[ae]=V)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!$9(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,J9(T,H,f),Pi.select(this).attr("transform",function(V){return Xf(V.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!$9(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(V){return V.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+wa.cn.axisOverlays).data(Zf,fs);_.enter().append("g").classed(wa.cn.axisOverlays,!0),_.selectAll("."+wa.cn.axis).remove();var x=_.selectAll("."+wa.cn.axis).data(Zf,fs);x.enter().append("g").classed(wa.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,V=R.domainScale,ae=V.domain();Pi.select(this).call(Pi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?ae:null).tickFormat(function(re){return Kp.isOrdinal(R)?re:Kae(R.model.dimensions[R.visibleIndex],re)}).scale(V)),d5.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("."+wa.cn.axisHeading).data(Zf,fs);A.enter().append("g").classed(wa.cn.axisHeading,!0);var E=A.selectAll("."+wa.cn.axisTitle).data(Zf,fs);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(R){return R.label}).each(function(R){var H=Pi.select(this);d5.font(H,R.model.labelFont),qSe.convertToTspans(H,r)}).attr("transform",function(R){var H=Yae(R.model.labelAngle,R.model.labelSide),V=wa.axisTitleOffset;return(H.dir>0?"":Xf(0,2*V+R.model.height))+RSe(H.degrees)+Xf(-V*H.dx,-V*H.dy)}).attr("text-anchor",function(R){var H=Yae(R.model.labelAngle,R.model.labelSide),V=Math.abs(H.dx),ae=Math.abs(H.dy);return 2*V>ae?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+wa.cn.axisExtent).data(Zf,fs);M.enter().append("g").classed(wa.cn.axisExtent,!0);var k=M.selectAll("."+wa.cn.axisExtentTop).data(Zf,fs);k.enter().append("g").classed(wa.cn.axisExtentTop,!0),k.attr("transform",Xf(0,-wa.axisExtentOffset));var F=k.selectAll("."+wa.cn.axisExtentTopText).data(Zf,fs);F.enter().append("text").classed(wa.cn.axisExtentTopText,!0).call(Vae),F.text(function(R){return Wae(R,!0)}).each(function(R){d5.font(Pi.select(this),R.model.rangeFont)});var P=M.selectAll("."+wa.cn.axisExtentBottom).data(Zf,fs);P.enter().append("g").classed(wa.cn.axisExtentBottom,!0),P.attr("transform",function(R){return Xf(0,R.model.height+wa.axisExtentOffset)});var O=P.selectAll("."+wa.cn.axisExtentBottomText).data(Zf,fs);O.enter().append("text").classed(wa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Vae),O.text(function(R){return Wae(R,!1)}).each(function(R){d5.font(Pi.select(this),R.model.rangeFont)}),$ae.ensureAxisBrush(_,u,r)}});var rM=N((eM,ine)=>{"use strict";var WSe=rne(),jSe=K_(),tne=j9().isVisible,nne={};function ane(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function XSe(e,r){return function(a,n){return ane(e,r,a)-ane(e,r,n)}}var eM=ine.exports=function(r,t){var a=r._fullLayout,n=jSe(r,[],nne);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=XSe(y,o[p].filter(tne));i[p].sort(m),o[p].filter(function(b){return!tne(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]]])};WSe(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})}};eM.reglPrecompiled=nne});var lne=N(Eg=>{"use strict";var one=da(),ZSe=im().getModuleCalcData,JSe=rM(),$Se=Yc();Eg.name="parcoords";Eg.plot=function(e){var r=ZSe(e.calcdata,"parcoords")[0];r.length&&JSe(e,r)};Eg.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())};Eg.toSVG=function(e){var r=e._fullLayout._glimages,t=one.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:$Se.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){one.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var fne=N((KOe,sne)=>{"use strict";sne.exports={attributes:B9(),supplyDefaults:wae(),calc:Tae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:lne(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var vne=N((eBe,cne)=>{"use strict";var une=fne();une.plot=rM();cne.exports=une});var dne=N((rBe,hne)=>{"use strict";hne.exports=vne()});var so=N((tBe,mne)=>{var y5=ii();function pne(){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={}}y5(pne.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 tM(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 m5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y5(tM.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?"-":"")+m5(Math.abs(this.year()),4)+"-"+m5(this.month(),2)+"-"+m5(this.day(),2)}});function aM(){this.shortYearCutoff="+10"}y5(aM.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 tM(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?"-":"")+m5(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=mne.exports=new pne;na.cdate=tM;na.baseCalendar=aM;na.calendars.gregorian=nM});var yne=N(()=>{var iM=ii(),Ni=so();iM(Ni.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"});Ni.local=Ni.regionalOptions[""];iM(Ni.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});iM(Ni.baseCalendar.prototype,{UNIX_EPOCH:Ni.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ni.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 Ni.local.invalidFormat||Ni.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 V=b(R,H),ae=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],re=new RegExp("^-?\\d{1,"+ae+"}"),Q=r.substring(k).match(re);if(!Q)throw(Ni.local.missingNumberAt||Ni.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,V,ae){for(var re=b(R,ae)?V: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 gne=N(()=>{var qv=so(),QSe=ii(),oM=qv.instance();function g5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g5.prototype=new qv.baseCalendar;QSe(g5.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(eEe);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(rEe);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(tEe);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=oM.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=nEe(e,i,t,n);return oM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=oM.fromJD(e),t=aEe(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(KSe),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(g5.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 KSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,eEe=/^\d?\d[iI]?/m,rEe=/^闰?十?[一二三四五六七八九]?月/m,tEe=/^闰?十?[一二三四五六七八九]?/m;qv.calendars.chinese=g5;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 aEe(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 bne=N(()=>{var k0=so(),iEe=ii();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new k0.baseCalendar;iEe(lM.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,k0.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,k0.local.invalidYear||k0.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,k0.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,k0.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)}});k0.calendars.coptic=lM});var xne=N(()=>{var rc=so(),oEe=ii();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new rc.baseCalendar;oEe(sM.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,rc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rc.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,rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,rc.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,rc.local.invalidDate);return{century:lEe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,rc.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 lEe={20:"Fruitbat",21:"Anchovy"};rc.calendars.discworld=sM});var _ne=N(()=>{var C0=so(),sEe=ii();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new C0.baseCalendar;sEe(fM.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,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.ethiopian=fM});var wne=N(()=>{var Iv=so(),fEe=ii();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Iv.baseCalendar;fEe(uM.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,b5(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&&b5(this.daysInYear(e),10)===5?30:r===9&&b5(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 b5(e,r){return e-r*Math.floor(e/r)}Iv.calendars.hebrew=uM});var Ane=N(()=>{var kg=so(),uEe=ii();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new kg.baseCalendar;uEe(cM.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,kg.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,kg.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,kg.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)}});kg.calendars.islamic=cM});var Tne=N(()=>{var Cg=so(),cEe=ii();function vM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vM.prototype=new Cg.baseCalendar;cEe(vM.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,Cg.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,Cg.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,Cg.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)}});Cg.calendars.julian=vM});var Sne=N(()=>{var us=so(),vEe=ii();function dM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dM.prototype=new us.baseCalendar;vEe(dM.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,us.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,us.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,us.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,us.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,us.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,us.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,us.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,us.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,us.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=hM(e+8+17*20,365);return[Math.floor(r/20)+1,hM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Mne(e+20,20),Mne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,us.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 hM(e,r){return e-r*Math.floor(e/r)}function Mne(e,r){return hM(e-1,r)+1}us.calendars.mayan=dM});var kne=N(()=>{var L0=so(),hEe=ii();function pM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pM.prototype=new L0.baseCalendar;var Ene=L0.instance("gregorian");hEe(pM.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,L0.local.invalidYear||L0.regionalOptions[""].invalidYear);return Ene.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,L0.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,L0.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)}});L0.calendars.nanakshahi=pM});var Cne=N(()=>{var D0=so(),dEe=ii();function mM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mM.prototype=new D0.baseCalendar;dEe(mM.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,D0.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,D0.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,D0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=D0.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=D0.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 e1=so(),pEe=ii();function _5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function x5(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}_5.prototype=new e1.baseCalendar;pEe(_5.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,e1.local.invalidYear);return x5(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,e1.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,e1.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,x5(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)}});e1.calendars.persian=_5;e1.calendars.jalali=_5});var Dne=N(()=>{var F0=so(),mEe=ii(),w5=F0.instance();function yM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yM.prototype=new F0.baseCalendar;mEe(yM.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,F0.local.invalidYear),t=this._t2gYear(r.year());return w5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,F0.local.invalidYear),n=this._t2gYear(a.year());return w5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,F0.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,F0.local.invalidDate),n=this._t2gYear(a.year());return w5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w5.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)}});F0.calendars.taiwan=yM});var Fne=N(()=>{var R0=so(),yEe=ii(),A5=R0.instance();function gM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gM.prototype=new R0.baseCalendar;yEe(gM.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,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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});R0.calendars.thai=gM});var Rne=N(()=>{var q0=so(),gEe=ii();function bM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bM.prototype=new q0.baseCalendar;gEe(bM.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,q0.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,q0.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,q0.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=q0.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=q0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});q0.calendars.ummalqura=bM;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 Pne=N((RBe,qne)=>{"use strict";qne.exports=so();yne();gne();bne();xne();_ne();wne();Ane();Tne();Sne();kne();Cne();Lne();Dne();Fne();Rne()});var Une=N((qBe,Gne)=>{"use strict";var Ine=Pne(),Lg=Ur(),One=ri(),bEe=One.EPOCHJD,xEe=One.ONEDAY,wM={valType:"enumerated",values:Lg.sortObjectKeys(Ine.calendars),editType:"calc",dflt:"gregorian"},Bne=function(e,r,t,a){var n={};return n[t]=wM,Lg.coerce(e,r,n,t,a)},_Ee=function(e,r,t,a){for(var n=0;n{"use strict";Hne.exports=Une()});var EEe=N((NBe,Wne)=>{var Yne=PV();Yne.register([nte(),nae(),dne(),Vne()]);Wne.exports=Yne});return EEe();})(); +`),Eg=Tg().maxDimensionCount,Iae=Ur(),Fae=1e-6,h5=2048,ASe=new Uint8Array(4),Rae=new Uint8Array(4),qae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function TSe(e){e.read({x:0,y:0,width:1,height:1,data:ASe})}function Oae(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 MSe(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],Oae(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 kSe(e,r,t){for(var a=new Array(e*(Eg+4)),n=0,i=0;ire&&(re=k[R].dim1.canvasX,V=R);O===0&&Oae(n,0,0,f.canvasWidth,f.canvasHeight);var Q=_(t);for(R=0;R{"use strict";var Pi=da(),ec=Ur(),Z9=ec.isArrayOrTypedArray,jae=ec.numberFormat,Xae=(Dae(),tie(Lae)).default,Zae=yn(),RSe=ec.strRotate,Xf=ec.strTranslate,qSe=to(),d5=Ha(),Uae=Cd(),Q9=Mg(),fs=Q9.keyFun,Zf=Q9.repeat,Jae=Q9.unwrap,Kp=j9(),wa=Tg(),$ae=U9(),PSe=Gae();function Hae(e,r,t){return ec.aggNums(e,null,r,t)}function Qae(e,r){return K9(Hae(Math.min,e,r),Hae(Math.max,e,r))}function p5(e){var r=e.range;return r?K9(r[0],r[1]):Qae(e.values,e._length)}function K9(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 NSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function ISe(e,r,t,a,n){var i=p5(t);return a?Pi.scale.ordinal().domain(a.map(NSe(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)})):Pi.scale.linear().domain(i).range([e-r,r])}function OSe(e,r){return Pi.scale.linear().range([r,e-r])}function BSe(e,r){return Pi.scale.linear().domain(p5(e)).range([r,1-r])}function zSe(e){if(e.tickvals){var r=p5(e);return Pi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function GSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Xae(i[1]);return Pi.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Pi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function $9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function USe(e,r,t){var a=Jae(r),n=a.trace,i=Kp.convertTypedArray(a.lineColor),o=n.line,l={color:Xae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Uae.extractOpts(o),f=s.reversescale?Uae.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=ec.extendDeepNoArrays({},o,{color:i.map(Pi.scale.linear().domain(p5({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(Kp.isVisible).length,dimensions:c,tickDistance:wa.tickDistance,unitToColor:GSe(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*wa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*wa.canvasPixelRatio,width:E,height:M,canvasPixelRatio:wa.canvasPixelRatio}}function HSe(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=OSe(n,wa.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(Kp.isVisible).map(function(v,d){var p=BSe(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&&!Z9(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 V=$9(H);!e.contextShown()&&V?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(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,V){return{val:H,text:M[V]}}function F(H,V){return H.val-V.val}if(Z9(E)&&E.length){ec.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!Z9(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=V||J>=ae)return;var j=R.lineLayer.readPixel(Q,ae-1-J),oe=j[3]!==0,se=oe?j[2]+256*(j[1]+256*j[0]):null,Le={x:Q,y:J,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:se};se!==p&&(oe?n.hover(Le):n.unhover&&n.unhover(Le),p=se)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+wa.cn.parcoords).data(v,fs);m.exit().remove(),m.enter().append("g").classed(wa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Xf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+wa.cn.parcoordsControlView).data(Zf,fs);b.enter().append("g").classed(wa.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Xf(R.model.pad.l,R.model.pad.t)});var T=b.selectAll("."+wa.cn.yAxis).data(function(R){return R.dimensions},fs);T.enter().append("g").classed(wa.cn.yAxis,!0),b.each(function(R){J9(T,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=PSe(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 Xf(R.xScale(R.xIndex),0)}),T.call(Pi.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-wa.overdrag,Math.min(R.model.width+wa.overdrag,Pi.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,T.sort(function(V,ae){return V.x-ae.x}).each(function(V,ae){V.xIndex=ae,V.x=R===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),J9(T,H,f),T.filter(function(V){return Math.abs(R.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Xf(V.xScale(V.xIndex),0)}),Pi.select(this).attr("transform",Xf(R.x,0)),T.each(function(V,ae,re){re===R.parent.key&&(H.dimensions[ae]=V)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!$9(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,J9(T,H,f),Pi.select(this).attr("transform",function(V){return Xf(V.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!$9(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(V){return V.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+wa.cn.axisOverlays).data(Zf,fs);_.enter().append("g").classed(wa.cn.axisOverlays,!0),_.selectAll("."+wa.cn.axis).remove();var x=_.selectAll("."+wa.cn.axis).data(Zf,fs);x.enter().append("g").classed(wa.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,V=R.domainScale,ae=V.domain();Pi.select(this).call(Pi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?ae:null).tickFormat(function(re){return Kp.isOrdinal(R)?re:Kae(R.model.dimensions[R.visibleIndex],re)}).scale(V)),d5.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("."+wa.cn.axisHeading).data(Zf,fs);A.enter().append("g").classed(wa.cn.axisHeading,!0);var E=A.selectAll("."+wa.cn.axisTitle).data(Zf,fs);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(R){return R.label}).each(function(R){var H=Pi.select(this);d5.font(H,R.model.labelFont),qSe.convertToTspans(H,r)}).attr("transform",function(R){var H=Yae(R.model.labelAngle,R.model.labelSide),V=wa.axisTitleOffset;return(H.dir>0?"":Xf(0,2*V+R.model.height))+RSe(H.degrees)+Xf(-V*H.dx,-V*H.dy)}).attr("text-anchor",function(R){var H=Yae(R.model.labelAngle,R.model.labelSide),V=Math.abs(H.dx),ae=Math.abs(H.dy);return 2*V>ae?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+wa.cn.axisExtent).data(Zf,fs);M.enter().append("g").classed(wa.cn.axisExtent,!0);var k=M.selectAll("."+wa.cn.axisExtentTop).data(Zf,fs);k.enter().append("g").classed(wa.cn.axisExtentTop,!0),k.attr("transform",Xf(0,-wa.axisExtentOffset));var F=k.selectAll("."+wa.cn.axisExtentTopText).data(Zf,fs);F.enter().append("text").classed(wa.cn.axisExtentTopText,!0).call(Vae),F.text(function(R){return Wae(R,!0)}).each(function(R){d5.font(Pi.select(this),R.model.rangeFont)});var P=M.selectAll("."+wa.cn.axisExtentBottom).data(Zf,fs);P.enter().append("g").classed(wa.cn.axisExtentBottom,!0),P.attr("transform",function(R){return Xf(0,R.model.height+wa.axisExtentOffset)});var O=P.selectAll("."+wa.cn.axisExtentBottomText).data(Zf,fs);O.enter().append("text").classed(wa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Vae),O.text(function(R){return Wae(R,!1)}).each(function(R){d5.font(Pi.select(this),R.model.rangeFont)}),$ae.ensureAxisBrush(_,u,r)}});var rM=N((eM,ine)=>{"use strict";var WSe=rne(),jSe=K_(),tne=j9().isVisible,nne={};function ane(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function XSe(e,r){return function(a,n){return ane(e,r,a)-ane(e,r,n)}}var eM=ine.exports=function(r,t){var a=r._fullLayout,n=jSe(r,[],nne);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=XSe(y,o[p].filter(tne));i[p].sort(m),o[p].filter(function(b){return!tne(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]]])};WSe(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})}};eM.reglPrecompiled=nne});var lne=N(kg=>{"use strict";var one=da(),ZSe=im().getModuleCalcData,JSe=rM(),$Se=Yc();kg.name="parcoords";kg.plot=function(e){var r=ZSe(e.calcdata,"parcoords")[0];r.length&&JSe(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=one.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:$Se.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){one.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var fne=N((KOe,sne)=>{"use strict";sne.exports={attributes:B9(),supplyDefaults:wae(),calc:Tae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:lne(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var vne=N((eBe,cne)=>{"use strict";var une=fne();une.plot=rM();cne.exports=une});var dne=N((rBe,hne)=>{"use strict";hne.exports=vne()});var so=N((tBe,mne)=>{var y5=ii();function pne(){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={}}y5(pne.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 tM(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 m5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y5(tM.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?"-":"")+m5(Math.abs(this.year()),4)+"-"+m5(this.month(),2)+"-"+m5(this.day(),2)}});function aM(){this.shortYearCutoff="+10"}y5(aM.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 tM(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?"-":"")+m5(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=mne.exports=new pne;na.cdate=tM;na.baseCalendar=aM;na.calendars.gregorian=nM});var yne=N(()=>{var iM=ii(),Ni=so();iM(Ni.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"});Ni.local=Ni.regionalOptions[""];iM(Ni.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});iM(Ni.baseCalendar.prototype,{UNIX_EPOCH:Ni.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ni.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 Ni.local.invalidFormat||Ni.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 V=b(R,H),ae=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],re=new RegExp("^-?\\d{1,"+ae+"}"),Q=r.substring(k).match(re);if(!Q)throw(Ni.local.missingNumberAt||Ni.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,V,ae){for(var re=b(R,ae)?V: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 gne=N(()=>{var qv=so(),QSe=ii(),oM=qv.instance();function g5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g5.prototype=new qv.baseCalendar;QSe(g5.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(eEe);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(rEe);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(tEe);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=oM.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=nEe(e,i,t,n);return oM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=oM.fromJD(e),t=aEe(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(KSe),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(g5.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 KSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,eEe=/^\d?\d[iI]?/m,rEe=/^闰?十?[一二三四五六七八九]?月/m,tEe=/^闰?十?[一二三四五六七八九]?/m;qv.calendars.chinese=g5;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 aEe(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 bne=N(()=>{var k0=so(),iEe=ii();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new k0.baseCalendar;iEe(lM.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,k0.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,k0.local.invalidYear||k0.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,k0.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,k0.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)}});k0.calendars.coptic=lM});var xne=N(()=>{var rc=so(),oEe=ii();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new rc.baseCalendar;oEe(sM.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,rc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rc.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,rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,rc.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,rc.local.invalidDate);return{century:lEe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,rc.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 lEe={20:"Fruitbat",21:"Anchovy"};rc.calendars.discworld=sM});var _ne=N(()=>{var C0=so(),sEe=ii();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new C0.baseCalendar;sEe(fM.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,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.ethiopian=fM});var wne=N(()=>{var Iv=so(),fEe=ii();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Iv.baseCalendar;fEe(uM.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,b5(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&&b5(this.daysInYear(e),10)===5?30:r===9&&b5(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 b5(e,r){return e-r*Math.floor(e/r)}Iv.calendars.hebrew=uM});var Ane=N(()=>{var Cg=so(),uEe=ii();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new Cg.baseCalendar;uEe(cM.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=cM});var Tne=N(()=>{var Lg=so(),cEe=ii();function vM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vM.prototype=new Lg.baseCalendar;cEe(vM.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=vM});var Sne=N(()=>{var us=so(),vEe=ii();function dM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dM.prototype=new us.baseCalendar;vEe(dM.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,us.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,us.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,us.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,us.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,us.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,us.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,us.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,us.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,us.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=hM(e+8+17*20,365);return[Math.floor(r/20)+1,hM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Mne(e+20,20),Mne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,us.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 hM(e,r){return e-r*Math.floor(e/r)}function Mne(e,r){return hM(e-1,r)+1}us.calendars.mayan=dM});var kne=N(()=>{var L0=so(),hEe=ii();function pM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pM.prototype=new L0.baseCalendar;var Ene=L0.instance("gregorian");hEe(pM.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,L0.local.invalidYear||L0.regionalOptions[""].invalidYear);return Ene.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,L0.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,L0.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)}});L0.calendars.nanakshahi=pM});var Cne=N(()=>{var D0=so(),dEe=ii();function mM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mM.prototype=new D0.baseCalendar;dEe(mM.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,D0.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,D0.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,D0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=D0.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=D0.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 e1=so(),pEe=ii();function _5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function x5(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}_5.prototype=new e1.baseCalendar;pEe(_5.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,e1.local.invalidYear);return x5(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,e1.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,e1.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,x5(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)}});e1.calendars.persian=_5;e1.calendars.jalali=_5});var Dne=N(()=>{var F0=so(),mEe=ii(),w5=F0.instance();function yM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yM.prototype=new F0.baseCalendar;mEe(yM.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,F0.local.invalidYear),t=this._t2gYear(r.year());return w5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,F0.local.invalidYear),n=this._t2gYear(a.year());return w5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,F0.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,F0.local.invalidDate),n=this._t2gYear(a.year());return w5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w5.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)}});F0.calendars.taiwan=yM});var Fne=N(()=>{var R0=so(),yEe=ii(),A5=R0.instance();function gM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gM.prototype=new R0.baseCalendar;yEe(gM.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,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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});R0.calendars.thai=gM});var Rne=N(()=>{var q0=so(),gEe=ii();function bM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bM.prototype=new q0.baseCalendar;gEe(bM.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,q0.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,q0.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,q0.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=q0.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=q0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});q0.calendars.ummalqura=bM;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 Pne=N((RBe,qne)=>{"use strict";qne.exports=so();yne();gne();bne();xne();_ne();wne();Ane();Tne();Sne();kne();Cne();Lne();Dne();Fne();Rne()});var Une=N((qBe,Gne)=>{"use strict";var Ine=Pne(),Dg=Ur(),One=ri(),bEe=One.EPOCHJD,xEe=One.ONEDAY,wM={valType:"enumerated",values:Dg.sortObjectKeys(Ine.calendars),editType:"calc",dflt:"gregorian"},Bne=function(e,r,t,a){var n={};return n[t]=wM,Dg.coerce(e,r,n,t,a)},_Ee=function(e,r,t,a){for(var n=0;n{"use strict";Hne.exports=Une()});var EEe=N((NBe,Wne)=>{var Yne=PV();Yne.register([nte(),nae(),dne(),Vne()]);Wne.exports=Yne});return EEe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index eacf642c4f3..cd642fe010b 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -13756,9 +13756,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35886,7 +35886,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index 7159b398188..6feb2c7bbab 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var NB=Object.defineProperty,zB=Object.defineProperties;var qB=Object.getOwnPropertyDescriptors;var db=Object.getOwnPropertySymbols;var OB=Object.prototype.hasOwnProperty,BB=Object.prototype.propertyIsEnumerable;var pb=(e,r,t)=>r in e?NB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Cl=(e,r)=>{for(var t in r||(r={}))OB.call(r,t)&&pb(e,t,r[t]);if(db)for(var t of db(r))BB.call(r,t)&&pb(e,t,r[t]);return e},C0=(e,r)=>zB(e,qB(r));var de=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var E0=de(gb=>{"use strict";gb.version="3.4.0"});var mb=de((yb,L0)=>{(function(r,t,n){t[r]=t[r]||n(),typeof L0!="undefined"&&L0.exports&&(L0.exports=t[r])})("Promise",typeof window!="undefined"?window:yb,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(d,_){this.fn=d,this.self=_,this.next=void 0}return{add:function(_,g){x=new M(_,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.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 b(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 B=z.length,G=new Array(B);B--;)G[B]=z[B];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,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",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 B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,se;if(arguments.length===1){for(;++B=Z){W=se=Z;break}for(;++BZ&&(W=Z),se=Z){W=se=Z;break}for(;++BZ&&(W=Z),se1)return se/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function y(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=y(h);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return y(C.length===1?function(z,B){return h(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(se=C[z],B=se.length;--B>=0;)Z[--W]=se[B];return Z};var m=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(m(B)),Z=-1,se;if(C*=W,z*=W,B*=W,B<0)for(;(se=C+B*++Z)>z;)G.push(se/W);else for(;(se=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var _e=-1,Pe=fe.length,Ie=z[be++],Je,rr,Oe,Ge=new x,We;++_e=z.length)return ie;var be=[],_e=B[fe++];return ie.forEach(function(Pe,Ie){be.push({key:Pe,values:se(Ie,fe)})}),_e?be.sort(function(Pe,Ie){return _e(Pe.key,Ie.key)}):be}return C.map=function(ie,fe){return Z(fe,ie,0)},C.entries=function(ie){return se(Z(e.map,ie,0),0)},C.key=function(ie){return z.push(ie),C},C.sortKeys=function(ie){return B[z.length-1]=ie,C},C.sortValues=function(ie){return G=ie,C},C.rollup=function(ie){return W=ie,C},C},e.set=function(C){var z=new R;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),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 U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,se=W.length,ie;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},re.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(le(z,C[z]));return this}return this.each(le(C,z))};function le(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function se(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ie(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?ie:se:C.local?Z:W}function ve(C){return C.trim().replace(/\s+/g," ")}re.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=we(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},re.sort=function(C){C=Me.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=se[z])&&++z0&&(C=C.slice(0,W));var se=xe.get(C);se&&(C=se,Z=qe);function ie(){var _e=this[G];_e&&(this.removeEventListener(C,_e,_e.$),delete this[G])}function fe(){var _e=Z(z,t(arguments));ie.call(this),this.addEventListener(C,this[G]=_e,_e.$=B),_e._=z}function be(){var _e=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Pe;for(var Ie in this)if(Pe=Ie.match(_e)){var Je=this[Ie];this.removeEventListener(Pe[1],Je,Je.$),delete this[Ie]}}return W?z?fe:ie:z?P:be}var xe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&xe.forEach(function(C){"on"+C in n&&xe.remove(C)});function Le(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function qe(C,z){var B=Le(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var Ne,$e=0;function Ve(C){var z=".dragsuppress-"+ ++$e,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(Ne==null&&(Ne="onselectstart"in C?!1:I(C.style,"userSelect")),Ne){var W=a(C).style,Z=W[Ne];W[Ne]="none"}return function(se){if(G.on(z,null),Ne&&(W[Ne]=Z),se){var ie=function(){G.on(B,null)};G.on(B,function(){X(),ie()},!0),setTimeout(ie,0)}}}e.mouse=function(C){return Ye(C,$())};var Be=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ye(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Be<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Be=!(Z.f||Z.e),B.remove()}}return Be?(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 se=C.getBoundingClientRect();return[z.clientX-se.left-C.clientLeft,z.clientY-se.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function er(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ke:Math.acos(C)}function fr(C){return C>1?J:C<-1?-J:Math.asin(C)}function br(C){return((C=Math.exp(C))-1/C)/2}function Sr(C){return((C=Math.exp(C))+1/C)/2}function Mr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var ft=Math.SQRT2,sr=2,Pr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],se=z[1],ie=z[2],fe=Z-B,be=se-G,_e=fe*fe+be*be,Pe,Ie;if(_e0&&(vr=vr.transition().duration(se)),vr.call(tr.event)}function _r(){Ge&&Ge.domain(Oe.range().map(function(vr){return(vr-C.x)/C.k}).map(Oe.invert)),je&&je.domain(We.range().map(function(vr){return(vr-C.y)/C.k}).map(We.invert))}function wr(vr){ie++||vr({type:"zoomstart"})}function Or(vr){_r(),vr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Tr(vr){--ie||(vr({type:"zoomend"}),B=null)}function Ir(){var vr=this,Br=rr.of(vr,arguments),Hr=0,ut=e.select(o(vr)).on(be,xn).on(_e,Nn),Pt=Ze(e.mouse(vr)),$t=Ve(vr);T0.call(vr),wr(Br);function xn(){Hr=1,mr(e.mouse(vr),Pt),Or(Br)}function Nn(){ut.on(be,null).on(_e,null),$t(Hr),Tr(Br)}}function st(){var vr=this,Br=rr.of(vr,arguments),Hr={},ut=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,xn="touchmove"+$t,Nn="touchend"+$t,Wn=[],zn=e.select(vr),jn=Ve(vr);ea(),wr(Br),zn.on(fe,null).on(Ie,ea);function An(){var Ka=e.touches(vr);return Pt=C.k,Ka.forEach(function(bn){bn.identifier in Hr&&(Hr[bn.identifier]=Ze(bn))}),Ka}function ea(){var Ka=e.event.target;e.select(Ka).on(xn,kl).on(Nn,FB),Wn.push(Ka);for(var bn=e.event.changedTouches,Aa=0,ki=bn.length;Aa1){var Sl=ka[0],Co=ka[1],S0=Sl[0]-Co[0],vb=Sl[1]-Co[1];ut=S0*S0+vb*vb}}function kl(){var Ka=e.touches(vr),bn,Aa,ki,ka;T0.call(vr);for(var Fs=0,Sl=Ka.length;Fs1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(ie){return ie>360?ie-=360:ie<0&&(ie+=360),ie<60?G+(W-G)*ie/60:ie<180?W:ie<240?G+(W-G)*(240-ie)/60:G}function se(ie){return Math.round(Z(ie)*255)}return new tn(se(C+120),se(C),se(C-120))}e.hcl=Et;function Et(C,z,B){return this instanceof Et?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Et?new Et(C.h,C.c,C.l):C instanceof bt?wi(C.l,C.a,C.b):wi((C=yr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Et(C,z,B)}var Tn=Et.prototype=new pt;Tn.brighter=function(C){return new Et(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?C:1)))},Tn.darker=function(C){return new Et(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?C:1)))},Tn.rgb=function(){return Ot(this.h,this.c,this.l).rgb()};function Ot(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new bt(B,Math.cos(C*=ne)*z,Math.sin(C)*z)}e.lab=bt;function bt(C,z,B){return this instanceof bt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof bt?new bt(C.l,C.a,C.b):C instanceof Et?Ot(C.h,C.c,C.l):yr((C=tn(C)).r,C.g,C.b):new bt(C,z,B)}var gt=18,Nt=.95047,ha=1,$n=1.08883,Fn=bt.prototype=new pt;Fn.brighter=function(C){return new bt(Math.min(100,this.l+gt*(arguments.length?C:1)),this.a,this.b)},Fn.darker=function(C){return new bt(Math.max(0,this.l-gt*(arguments.length?C:1)),this.a,this.b)},Fn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Ki(W)*Nt,G=Ki(G)*ha,Z=Ki(Z)*$n,new tn($i(3.2404542*W-1.5371385*G-.4985314*Z),$i(-.969266*W+1.8760108*G+.041556*Z),$i(.0556434*W-.2040259*G+1.0572252*Z))}function wi(C,z,B){return C>0?new Et(Math.atan2(B,z)*De,Math.sqrt(z*z+B*B),C):new Et(NaN,NaN,C)}function Ki(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Qi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function $i(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=tn;function tn(C,z,B){return this instanceof tn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof tn?new tn(C.r,C.g,C.b):at(""+C,tn,vn):new tn(C,z,B)}function ko(C){return new tn(C>>16,C>>8&255,C&255)}function Mi(C){return ko(C)+""}var Ti=tn.prototype=new pt;Ti.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new tn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function ct(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,se,ie,fe=(W+G)/2;return Z?(ie=fe<.5?Z/(W+G):Z/(2-W-G),C==W?se=(z-B)/Z+(z0&&fe<1?0:se),new Rr(se,ie,fe)}function yr(C,z,B){C=yn(C),z=yn(z),B=yn(B);var G=Qi((.4124564*C+.3575761*z+.1804375*B)/Nt),W=Qi((.2126729*C+.7151522*z+.072175*B)/ha),Z=Qi((.0193339*C+.119192*z+.9503041*B)/$n);return bt(116*W-16,500*(G-W),200*(W-Z))}function yn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function _t(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var mn=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});mn.forEach(function(C,z){mn.set(C,ko(z))});function Wr(C){return typeof C=="function"?C:function(){return C}}e.functor=Wr,e.xhr=Za(N);function Za(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),wl(z,B,C,G)}}function wl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),se={},ie=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ie)&&/^(http(s)?:)?\/\//.test(C)&&(ie=new XDomainRequest),"onload"in ie?ie.onload=ie.onerror=be:ie.onreadystatechange=function(){ie.readyState>3&&be()};function be(){var _e=ie.status,Pe;if(!_e&&zq(ie)||_e>=200&&_e<300||_e===304){try{Pe=B.call(W,ie)}catch(Ie){Z.error.call(W,Ie);return}Z.load.call(W,Pe)}else Z.error.call(W,ie)}return ie.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(W,ie)}finally{e.event=Pe}},W.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?se[_e]:(Pe==null?delete se[_e]:se[_e]=Pe+"",W)},W.mimeType=function(_e){return arguments.length?(z=_e==null?null:_e+"",W):z},W.responseType=function(_e){return arguments.length?(fe=_e,W):fe},W.response=function(_e){return B=_e,W},["get","post"].forEach(function(_e){W[_e]=function(){return W.send.apply(W,[_e].concat(t(arguments)))}}),W.send=function(_e,Pe,Ie){if(arguments.length===2&&typeof Pe=="function"&&(Ie=Pe,Pe=null),ie.open(_e,C,!0),z!=null&&!("accept"in se)&&(se.accept=z+",*/*"),ie.setRequestHeader)for(var Je in se)ie.setRequestHeader(Je,se[Je]);return z!=null&&ie.overrideMimeType&&ie.overrideMimeType(z),fe!=null&&(ie.responseType=fe),Ie!=null&&W.on("error",Ie).on("load",function(rr){Ie(null,rr)}),Z.beforesend.call(W,ie),ie.send(Pe==null?null:Pe),W},W.abort=function(){return ie.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(Nq(G))}function Nq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function zq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` +"use strict";var Plotly=(()=>{var NB=Object.defineProperty,zB=Object.defineProperties;var qB=Object.getOwnPropertyDescriptors;var db=Object.getOwnPropertySymbols;var OB=Object.prototype.hasOwnProperty,BB=Object.prototype.propertyIsEnumerable;var pb=(e,r,t)=>r in e?NB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Cl=(e,r)=>{for(var t in r||(r={}))OB.call(r,t)&&pb(e,t,r[t]);if(db)for(var t of db(r))BB.call(r,t)&&pb(e,t,r[t]);return e},E0=(e,r)=>zB(e,qB(r));var de=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var L0=de(gb=>{"use strict";gb.version="3.4.0"});var mb=de((yb,D0)=>{(function(r,t,n){t[r]=t[r]||n(),typeof D0!="undefined"&&D0.exports&&(D0.exports=t[r])})("Promise",typeof window!="undefined"?window:yb,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(d,_){this.fn=d,this.self=_,this.next=void 0}return{add:function(_,g){x=new M(_,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.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 b(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 B=z.length,G=new Array(B);B--;)G[B]=z[B];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,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",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 B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,se;if(arguments.length===1){for(;++B=Z){W=se=Z;break}for(;++BZ&&(W=Z),se=Z){W=se=Z;break}for(;++BZ&&(W=Z),se1)return se/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function y(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=y(h);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return y(C.length===1?function(z,B){return h(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(se=C[z],B=se.length;--B>=0;)Z[--W]=se[B];return Z};var m=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(m(B)),Z=-1,se;if(C*=W,z*=W,B*=W,B<0)for(;(se=C+B*++Z)>z;)G.push(se/W);else for(;(se=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var _e=-1,Pe=fe.length,Ie=z[be++],Je,rr,Oe,Ge=new x,We;++_e=z.length)return ie;var be=[],_e=B[fe++];return ie.forEach(function(Pe,Ie){be.push({key:Pe,values:se(Ie,fe)})}),_e?be.sort(function(Pe,Ie){return _e(Pe.key,Ie.key)}):be}return C.map=function(ie,fe){return Z(fe,ie,0)},C.entries=function(ie){return se(Z(e.map,ie,0),0)},C.key=function(ie){return z.push(ie),C},C.sortKeys=function(ie){return B[z.length-1]=ie,C},C.sortValues=function(ie){return G=ie,C},C.rollup=function(ie){return W=ie,C},C},e.set=function(C){var z=new R;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),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 U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,se=W.length,ie;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},re.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(le(z,C[z]));return this}return this.each(le(C,z))};function le(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function se(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ie(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?ie:se:C.local?Z:W}function ve(C){return C.trim().replace(/\s+/g," ")}re.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=we(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},re.sort=function(C){C=Me.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=se[z])&&++z0&&(C=C.slice(0,W));var se=xe.get(C);se&&(C=se,Z=qe);function ie(){var _e=this[G];_e&&(this.removeEventListener(C,_e,_e.$),delete this[G])}function fe(){var _e=Z(z,t(arguments));ie.call(this),this.addEventListener(C,this[G]=_e,_e.$=B),_e._=z}function be(){var _e=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Pe;for(var Ie in this)if(Pe=Ie.match(_e)){var Je=this[Ie];this.removeEventListener(Pe[1],Je,Je.$),delete this[Ie]}}return W?z?fe:ie:z?P:be}var xe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&xe.forEach(function(C){"on"+C in n&&xe.remove(C)});function Le(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function qe(C,z){var B=Le(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var Ne,$e=0;function Ve(C){var z=".dragsuppress-"+ ++$e,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(Ne==null&&(Ne="onselectstart"in C?!1:I(C.style,"userSelect")),Ne){var W=a(C).style,Z=W[Ne];W[Ne]="none"}return function(se){if(G.on(z,null),Ne&&(W[Ne]=Z),se){var ie=function(){G.on(B,null)};G.on(B,function(){X(),ie()},!0),setTimeout(ie,0)}}}e.mouse=function(C){return Ye(C,$())};var Be=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ye(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Be<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Be=!(Z.f||Z.e),B.remove()}}return Be?(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 se=C.getBoundingClientRect();return[z.clientX-se.left-C.clientLeft,z.clientY-se.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function er(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ke:Math.acos(C)}function fr(C){return C>1?J:C<-1?-J:Math.asin(C)}function br(C){return((C=Math.exp(C))-1/C)/2}function Sr(C){return((C=Math.exp(C))+1/C)/2}function Mr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var ft=Math.SQRT2,sr=2,Pr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],se=z[1],ie=z[2],fe=Z-B,be=se-G,_e=fe*fe+be*be,Pe,Ie;if(_e0&&(vr=vr.transition().duration(se)),vr.call(tr.event)}function _r(){Ge&&Ge.domain(Oe.range().map(function(vr){return(vr-C.x)/C.k}).map(Oe.invert)),je&&je.domain(We.range().map(function(vr){return(vr-C.y)/C.k}).map(We.invert))}function wr(vr){ie++||vr({type:"zoomstart"})}function Or(vr){_r(),vr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Tr(vr){--ie||(vr({type:"zoomend"}),B=null)}function Ir(){var vr=this,Br=rr.of(vr,arguments),Hr=0,ut=e.select(o(vr)).on(be,xn).on(_e,Nn),Pt=Ze(e.mouse(vr)),$t=Ve(vr);A0.call(vr),wr(Br);function xn(){Hr=1,mr(e.mouse(vr),Pt),Or(Br)}function Nn(){ut.on(be,null).on(_e,null),$t(Hr),Tr(Br)}}function st(){var vr=this,Br=rr.of(vr,arguments),Hr={},ut=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,xn="touchmove"+$t,Nn="touchend"+$t,Wn=[],zn=e.select(vr),jn=Ve(vr);ea(),wr(Br),zn.on(fe,null).on(Ie,ea);function An(){var Ka=e.touches(vr);return Pt=C.k,Ka.forEach(function(bn){bn.identifier in Hr&&(Hr[bn.identifier]=Ze(bn))}),Ka}function ea(){var Ka=e.event.target;e.select(Ka).on(xn,kl).on(Nn,FB),Wn.push(Ka);for(var bn=e.event.changedTouches,Aa=0,ki=bn.length;Aa1){var Sl=ka[0],Co=ka[1],C0=Sl[0]-Co[0],vb=Sl[1]-Co[1];ut=C0*C0+vb*vb}}function kl(){var Ka=e.touches(vr),bn,Aa,ki,ka;A0.call(vr);for(var Fs=0,Sl=Ka.length;Fs1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(ie){return ie>360?ie-=360:ie<0&&(ie+=360),ie<60?G+(W-G)*ie/60:ie<180?W:ie<240?G+(W-G)*(240-ie)/60:G}function se(ie){return Math.round(Z(ie)*255)}return new tn(se(C+120),se(C),se(C-120))}e.hcl=Et;function Et(C,z,B){return this instanceof Et?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Et?new Et(C.h,C.c,C.l):C instanceof bt?wi(C.l,C.a,C.b):wi((C=yr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Et(C,z,B)}var Tn=Et.prototype=new pt;Tn.brighter=function(C){return new Et(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?C:1)))},Tn.darker=function(C){return new Et(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?C:1)))},Tn.rgb=function(){return Ot(this.h,this.c,this.l).rgb()};function Ot(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new bt(B,Math.cos(C*=ne)*z,Math.sin(C)*z)}e.lab=bt;function bt(C,z,B){return this instanceof bt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof bt?new bt(C.l,C.a,C.b):C instanceof Et?Ot(C.h,C.c,C.l):yr((C=tn(C)).r,C.g,C.b):new bt(C,z,B)}var gt=18,Nt=.95047,ha=1,$n=1.08883,Fn=bt.prototype=new pt;Fn.brighter=function(C){return new bt(Math.min(100,this.l+gt*(arguments.length?C:1)),this.a,this.b)},Fn.darker=function(C){return new bt(Math.max(0,this.l-gt*(arguments.length?C:1)),this.a,this.b)},Fn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Ki(W)*Nt,G=Ki(G)*ha,Z=Ki(Z)*$n,new tn($i(3.2404542*W-1.5371385*G-.4985314*Z),$i(-.969266*W+1.8760108*G+.041556*Z),$i(.0556434*W-.2040259*G+1.0572252*Z))}function wi(C,z,B){return C>0?new Et(Math.atan2(B,z)*De,Math.sqrt(z*z+B*B),C):new Et(NaN,NaN,C)}function Ki(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Qi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function $i(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=tn;function tn(C,z,B){return this instanceof tn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof tn?new tn(C.r,C.g,C.b):at(""+C,tn,vn):new tn(C,z,B)}function ko(C){return new tn(C>>16,C>>8&255,C&255)}function Mi(C){return ko(C)+""}var Ti=tn.prototype=new pt;Ti.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new tn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function ct(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,se,ie,fe=(W+G)/2;return Z?(ie=fe<.5?Z/(W+G):Z/(2-W-G),C==W?se=(z-B)/Z+(z0&&fe<1?0:se),new Rr(se,ie,fe)}function yr(C,z,B){C=yn(C),z=yn(z),B=yn(B);var G=Qi((.4124564*C+.3575761*z+.1804375*B)/Nt),W=Qi((.2126729*C+.7151522*z+.072175*B)/ha),Z=Qi((.0193339*C+.119192*z+.9503041*B)/$n);return bt(116*W-16,500*(G-W),200*(W-Z))}function yn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function _t(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var mn=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});mn.forEach(function(C,z){mn.set(C,ko(z))});function Wr(C){return typeof C=="function"?C:function(){return C}}e.functor=Wr,e.xhr=Za(N);function Za(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),wl(z,B,C,G)}}function wl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),se={},ie=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ie)&&/^(http(s)?:)?\/\//.test(C)&&(ie=new XDomainRequest),"onload"in ie?ie.onload=ie.onerror=be:ie.onreadystatechange=function(){ie.readyState>3&&be()};function be(){var _e=ie.status,Pe;if(!_e&&zq(ie)||_e>=200&&_e<300||_e===304){try{Pe=B.call(W,ie)}catch(Ie){Z.error.call(W,Ie);return}Z.load.call(W,Pe)}else Z.error.call(W,ie)}return ie.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(W,ie)}finally{e.event=Pe}},W.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?se[_e]:(Pe==null?delete se[_e]:se[_e]=Pe+"",W)},W.mimeType=function(_e){return arguments.length?(z=_e==null?null:_e+"",W):z},W.responseType=function(_e){return arguments.length?(fe=_e,W):fe},W.response=function(_e){return B=_e,W},["get","post"].forEach(function(_e){W[_e]=function(){return W.send.apply(W,[_e].concat(t(arguments)))}}),W.send=function(_e,Pe,Ie){if(arguments.length===2&&typeof Pe=="function"&&(Ie=Pe,Pe=null),ie.open(_e,C,!0),z!=null&&!("accept"in se)&&(se.accept=z+",*/*"),ie.setRequestHeader)for(var Je in se)ie.setRequestHeader(Je,se[Je]);return z!=null&&ie.overrideMimeType&&ie.overrideMimeType(z),fe!=null&&(ie.responseType=fe),Ie!=null&&W.on("error",Ie).on("load",function(rr){Ie(null,rr)}),Z.beforesend.call(W,ie),ie.send(Pe==null?null:Pe),W},W.abort=function(){return ie.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(Nq(G))}function Nq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function zq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` ]`),G=C.charCodeAt(0);function W(be,_e,Pe){arguments.length<3&&(Pe=_e,_e=null);var Ie=wl(be,z,_e==null?Z:se(_e),Pe);return Ie.row=function(Je){return arguments.length?Ie.response((_e=Je)==null?Z:se(Je)):_e},Ie}function Z(be){return W.parse(be.responseText)}function se(be){return function(_e){return W.parse(_e.responseText,be)}}W.parse=function(be,_e){var Pe;return W.parseRows(be,function(Ie,Je){if(Pe)return Pe(Ie,Je-1);var rr=function(Oe){for(var Ge={},We=Ie.length,je=0;je=rr)return Ie;if(je)return je=!1,Pe;var lr=Oe;if(be.charCodeAt(lr)===34){for(var pr=lr;pr++24?(isFinite(z)&&(clearTimeout(s0),s0=setTimeout(Od,z)),l0=0):(l0=1,j5(Od))}e.timer.flush=function(){ex(),rx()};function ex(){for(var C=Date.now(),z=i0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function rx(){for(var C,z=i0,B=1/0;z;)z.c?(z.t=0;--ie)Oe.push(W[be[Pe[ie]][2]]);for(ie=+Je;ie1&&er(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function qq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,f0),C};var f0=e.geom.polygon.prototype=[];f0.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CRe)ie=ie.L;else if(se=z-Hq(ie,B),se>Re){if(!ie.R){G=ie;break}ie=ie.R}else{Z>-Re?(G=ie.P,W=ie):se>-Re?(G=ie,W=ie.N):G=W=ie;break}var fe=ox(C);if(Ds.insert(G,fe),!(!G&&!W)){if(G===W){Ps(G),W=ox(G.site),Ds.insert(fe,W),fe.edge=W.edge=nf(G.site,fe.site),Rs(G),Rs(W);return}if(!W){fe.edge=nf(G.site,fe.site);return}Ps(G),Ps(W);var be=G.site,_e=be.x,Pe=be.y,Ie=C.x-_e,Je=C.y-Pe,rr=W.site,Oe=rr.x-_e,Ge=rr.y-Pe,We=2*(Ie*Ge-Je*Oe),je=Ie*Ie+Je*Je,tr=Oe*Oe+Ge*Ge,Ze={x:(Ge*je-Je*tr)/We+_e,y:(Ie*tr-Oe*je)/We+Pe};c0(W.edge,be,rr,Ze),fe.edge=nf(be,C,null,Ze),W.edge=nf(C,rr,null,Ze),Rs(G),Rs(W)}}function lx(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var se=C.P;if(!se)return-1/0;B=se.site;var ie=B.x,fe=B.y,be=fe-z;if(!be)return ie;var _e=ie-G,Pe=1/Z-1/be,Ie=_e/be;return Pe?(-Ie+Math.sqrt(Ie*Ie-2*Pe*(_e*_e/(-2*be)-fe+be/2+W-Z/2)))/Pe+G:(G+ie)/2}function Hq(C,z){var B=C.N;if(B)return lx(B,z);var G=C.site;return G.y===z?G.x:1/0}function sx(C){this.site=C,this.edges=[]}sx.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ux),C.length};function Vq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,se,ie,fe,be=Ml,_e=be.length,Pe,Ie,Je,rr,Oe,Ge;_e--;)if(Pe=be[_e],!(!Pe||!Pe.prepare()))for(Je=Pe.edges,rr=Je.length,Ie=0;IeRe||m(fe-se)>Re)&&(Je.splice(Ie,0,new h0(Zq(Pe.site,Ge,m(ie-z)Re?{x:z,y:m(Z-z)Re?{x:m(se-W)Re?{x:B,y:m(Z-B)Re?{x:m(se-G)=-Qe)){var Ie=fe*fe+be*be,Je=_e*_e+Ge*Ge,rr=(Ge*Ie-be*Je)/Pe,Oe=(fe*Je-_e*Ie)/Pe,Ge=Oe+ie,We=ix.pop()||new Gq;We.arc=C,We.site=W,We.x=rr+se,We.y=Ge+Math.sqrt(rr*rr+Oe*Oe),We.cy=Ge,C.circle=We;for(var je=null,tr=tf._;tr;)if(We.y0)){if(Oe/=Je,Je<0){if(Oe0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}if(Oe=B-ie,!(!Je&&Oe<0)){if(Oe/=Je,Je<0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}else if(Je>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}else if(rr>0){if(Oe0&&(W.a={x:ie+Pe*Je,y:fe+Pe*rr}),Ie<1&&(W.b={x:ie+Ie*Je,y:fe+Ie*rr}),W}}}}}}function Wq(C){for(var z=Ls,B=Yq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Xq(W,C)||!B(W)||m(W.a.x-W.b.x)=Z)return;if(_e>Ie){if(!G)G={x:rr,y:se};else if(G.y>=ie)return;B={x:rr,y:ie}}else{if(!G)G={x:rr,y:ie};else if(G.y1)if(_e>Ie){if(!G)G={x:(se-We)/Ge,y:se};else if(G.y>=ie)return;B={x:(ie-We)/Ge,y:ie}}else{if(!G)G={x:(ie-We)/Ge,y:ie};else if(G.y=Z)return;B={x:Z,y:Ge*Z+We}}else{if(!G)G={x:Z,y:Ge*Z+We};else if(G.x=_e&&We.x<=Ie&&We.y>=Pe&&We.y<=Je?[[_e,Je],[Ie,Je],[Ie,Pe],[_e,Pe]]:[];je.point=fe[Oe]}),be}function ie(fe){return fe.map(function(be,_e){return{x:Math.round(G(be,_e)/Re)*Re,y:Math.round(W(be,_e)/Re)*Re,i:_e}})}return se.links=function(fe){return Yd(ie(fe)).edges.filter(function(be){return be.l&&be.r}).map(function(be){return{source:fe[be.l.i],target:fe[be.r.i]}})},se.triangles=function(fe){var be=[];return Yd(ie(fe)).cells.forEach(function(_e,Pe){for(var Ie=_e.site,Je=_e.edges.sort(ux),rr=-1,Oe=Je.length,Ge,We,je=Je[Oe-1].edge,tr=je.l===Ie?je.r:je.l;++rrtr&&(tr=_e.x),_e.y>Ze&&(Ze=_e.y),Je.push(_e.x),rr.push(_e.y);else for(Oe=0;Oetr&&(tr=lr),pr>Ze&&(Ze=pr),Je.push(lr),rr.push(pr)}var mr=tr-We,gr=Ze-je;mr>gr?Ze=je+mr:tr=We+gr;function _r(Tr,Ir,st,Bt,vt,vr,Br,Hr){if(!(isNaN(st)||isNaN(Bt)))if(Tr.leaf){var ut=Tr.x,Pt=Tr.y;if(ut!=null)if(m(ut-st)+m(Pt-Bt)<.01)wr(Tr,Ir,st,Bt,vt,vr,Br,Hr);else{var $t=Tr.point;Tr.x=Tr.y=Tr.point=null,wr(Tr,$t,ut,Pt,vt,vr,Br,Hr),wr(Tr,Ir,st,Bt,vt,vr,Br,Hr)}else Tr.x=st,Tr.y=Bt,Tr.point=Ir}else wr(Tr,Ir,st,Bt,vt,vr,Br,Hr)}function wr(Tr,Ir,st,Bt,vt,vr,Br,Hr){var ut=(vt+Br)*.5,Pt=(vr+Hr)*.5,$t=st>=ut,xn=Bt>=Pt,Nn=xn<<1|$t;Tr.leaf=!1,Tr=Tr.nodes[Nn]||(Tr.nodes[Nn]=hx()),$t?vt=ut:Br=ut,xn?vr=Pt:Hr=Pt,_r(Tr,Ir,st,Bt,vt,vr,Br,Hr)}var Or=hx();if(Or.add=function(Tr){_r(Or,Tr,+Pe(Tr,++Oe),+Ie(Tr,Oe),We,je,tr,Ze)},Or.visit=function(Tr){lf(Tr,Or,We,je,tr,Ze)},Or.find=function(Tr){return jq(Or,Tr[0],Tr[1],We,je,tr,Ze)},Oe=-1,z==null){for(;++OeZ||Ie>se||Je=lr,gr=B>=pr,_r=gr<<1|mr,wr=_r+4;_rB&&(Z=z.slice(B,Z),ie[se]?ie[se]+=Z:ie[++se]=Z),(G=G[0])===(W=W[0])?ie[se]?ie[se]+=W:ie[++se]=W:(ie[++se]=null,fe.push({i:se,x:ji(G,W)})),B=Zd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?mn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?Wd:dx:z instanceof pt?Wd:Array.isArray(z)?p0:B==="object"&&isNaN(z)?vx:ji)(C,z)}],e.interpolateArray=p0;function p0(C,z){var B=[],G=[],W=C.length,Z=z.length,se=Math.min(C.length,z.length),ie;for(ie=0;ie=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=eO.get(B)||px,G=rO.get(G)||N,tO(G(B.apply(null,r.call(arguments,1))))};function tO(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function gx(C){return function(z){return 1-C(1-z)}}function yx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function nO(C){return C*C}function aO(C){return C*C*C}function iO(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function oO(C){return function(z){return Math.pow(z,C)}}function lO(C){return 1-Math.cos(C*J)}function sO(C){return Math.pow(2,10*(C-1))}function uO(C){return 1-Math.sqrt(1-C*C)}function fO(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function cO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function hO(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=vO;function vO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,se=z.c-G,ie=z.l-W;return isNaN(se)&&(se=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateHsl=dO;function dO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,se=z.s-G,ie=z.l-W;return isNaN(se)&&(se=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return vn(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateLab=pO;function pO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,se=z.a-G,ie=z.b-W;return function(fe){return Ma(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateRound=mx;function mx(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new xx(G?G.matrix:yO)})(C)};function xx(C){var z=[C.a,C.b],B=[C.c,C.d],G=_x(z),W=bx(z,B),Z=_x(gO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Is(B)+"rotate(",null,")")-2,x:ji(C,z)})):z&&B.push(Is(B)+"rotate("+z+")")}function bO(C,z,B,G){C!==z?G.push({i:B.push(Is(B)+"skewX(",null,")")-2,x:ji(C,z)}):z&&B.push(Is(B)+"skewX("+z+")")}function _O(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Is(B)+"scale(",null,",",null,")");G.push({i:W-4,x:ji(C[0],z[0])},{i:W-2,x:ji(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Is(B)+"scale("+z+")")}function wx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),mO(C.translate,z.translate,B,G),xO(C.rotate,z.rotate,B,G),bO(C.skew,z.skew,B,G),_O(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,se=G.length,ie;++Z0?Z=Ze:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Ze>0&&(z.start({type:"start",alpha:Z=Ze}),B=u0(C.tick)),C):Z},C.start=function(){var Ze,lr=Je.length,pr=rr.length,mr=G[0],gr=G[1],_r,wr;for(Ze=0;Ze=0;)Z.push(_e=be[fe]),_e.parent=ie,_e.depth=ie.depth+1;B&&(ie.value=0),ie.children=be}else B&&(ie.value=+B.call(G,ie,ie.depth)||0),delete ie.children;return Ai(W,function(Pe){var Ie,Je;C&&(Ie=Pe.children)&&Ie.sort(C),B&&(Je=Pe.parent)&&(Je.value+=Pe.value)}),se}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?(B=W,G):B},G.revalue=function(W){return B&&(uf(W,function(Z){Z.children&&(Z.value=0)}),Ai(W,function(Z){var se;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(se=Z.parent)&&(se.value+=Z.value)})),W},G};function sf(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=NO,C}function uf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function Ai(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(se=C.children)&&(Z=se.length))for(var W=-1,Z,se;++WW&&(W=ie),G.push(ie)}for(se=0;seG&&(B=z,G=W);return B}function VO(C){return C.reduce(GO,0)}function GO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=WO,G=YO;function W(Z,Ie){for(var ie=[],fe=Z.map(z,this),be=B.call(this,fe,Ie),_e=G.call(this,be,fe,Ie),Pe,Ie=-1,Je=fe.length,rr=_e.length-1,Oe=C?1:1/Je,Ge;++Ie0)for(Ie=-1;++Ie=be[0]&&Ge<=be[1]&&(Pe=ie[e.bisect(_e,Ge,1,rr)-1],Pe.y+=Oe,Pe.push(Z[Ie]));return ie}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Wr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(se){return kx(se,Z)}:Wr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function YO(C,z){return kx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function kx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function WO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(XO),z=0,B=[1,1],G;function W(Z,se){var ie=C.call(this,Z,se),fe=ie[0],be=B[0],_e=B[1],Pe=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,Ai(fe,function(Je){Je.r=+Pe(Je.value)}),Ai(fe,Ex),z){var Ie=z*(G?1:Math.max(2*fe.r/be,2*fe.r/_e))/2;Ai(fe,function(Je){Je.r+=Ie}),Ai(fe,Ex),Ai(fe,function(Je){Je.r-=Ie})}return Lx(fe,be/2,_e/2,G?1:1/Math.max(2*fe.r/be,2*fe.r/_e)),ie}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},sf(W,C)};function XO(C,z){return C.value-z.value}function Qd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function Sx(C,z){C._pack_next=z,z._pack_prev=C}function Cx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function Ex(C){if(!(z=C.children)||!(Ie=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,se,ie,fe,be,_e,Pe,Ie;function Je(Ze){B=Math.min(Ze.x-Ze.r,B),G=Math.max(Ze.x+Ze.r,G),W=Math.min(Ze.y-Ze.r,W),Z=Math.max(Ze.y+Ze.r,Z)}if(z.forEach(ZO),se=z[0],se.x=-se.r,se.y=0,Je(se),Ie>1&&(ie=z[1],ie.x=ie.r,ie.y=0,Je(ie),Ie>2))for(fe=z[2],Dx(se,ie,fe),Je(fe),Qd(se,fe),se._pack_prev=fe,Qd(fe,ie),ie=se._pack_next,be=3;beGe.x&&(Ge=lr),lr.depth>We.depth&&(We=lr)});var je=z(Oe,Ge)/2-Oe.x,tr=B[0]/(Ge.x+z(Ge,Oe)/2+je),Ze=B[1]/(We.depth||1);uf(Je,function(lr){lr.x=(lr.x+je)*tr,lr.y=lr.depth*Ze})}return Ie}function Z(_e){for(var Pe={A:null,children:[_e]},Ie=[Pe],Je;(Je=Ie.pop())!=null;)for(var rr=Je.children,Oe,Ge=0,We=rr.length;Ge0&&(KO($O(Oe,_e,Ie),_e,lr),We+=lr,je+=lr),tr+=Oe.m,We+=Je.m,Ze+=Ge.m,je+=rr.m;Oe&&!jd(rr)&&(rr.t=Oe,rr.m+=tr-je),Je&&!$d(Ge)&&(Ge.t=Je,Ge.m+=We-Ze,Ie=_e)}return Ie}function be(_e){_e.x*=B[0],_e.y=_e.depth*B[1]}return W.separation=function(_e){return arguments.length?(z=_e,W):z},W.size=function(_e){return arguments.length?(G=(B=_e)==null?be:null,W):G?null:B},W.nodeSize=function(_e){return arguments.length?(G=(B=_e)==null?null:be,W):G?B:null},sf(W,C)};function Rx(C,z){return C.parent==z.parent?1:2}function $d(C){var z=C.children;return z.length?z[0]:C.t}function jd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function KO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function QO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function $O(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Rx,B=[1,1],G=!1;function W(Z,se){var ie=C.call(this,Z,se),fe=ie[0],be,_e=0;Ai(fe,function(Oe){var Ge=Oe.children;Ge&&Ge.length?(Oe.x=eB(Ge),Oe.y=jO(Ge)):(Oe.x=be?_e+=z(Oe,be):0,Oe.y=0,be=Oe)});var Pe=Px(fe),Ie=Ix(fe),Je=Pe.x-z(Pe,Ie)/2,rr=Ie.x+z(Ie,Pe)/2;return Ai(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-Je)/(rr-Je)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),ie}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},sf(W,C)};function jO(C){return 1+e.max(C,function(z){return z.y})}function eB(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Px(C){var z=C.children;return z&&z.length?Px(z[0]):C}function Ix(C){var z=C.children,B;return z&&(B=z.length)?Ix(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=ep,Z=!1,se,ie="squarify",fe=.5*(1+Math.sqrt(5));function be(Oe,Ge){for(var We=-1,je=Oe.length,tr,Ze;++We0;)je.push(Ze=tr[gr-1]),je.area+=Ze.area,ie!=="squarify"||(pr=Ie(je,mr))<=lr?(tr.pop(),lr=pr):(je.area-=je.pop().area,Je(je,mr,We,!1),mr=Math.min(We.dx,We.dy),je.length=je.area=0,lr=1/0);je.length&&(Je(je,mr,We,!0),je.length=je.area=0),Ge.forEach(_e)}}function Pe(Oe){var Ge=Oe.children;if(Ge&&Ge.length){var We=W(Oe),je=Ge.slice(),tr,Ze=[];for(be(je,We.dx*We.dy/Oe.value),Ze.area=0;tr=je.pop();)Ze.push(tr),Ze.area+=tr.area,tr.z!=null&&(Je(Ze,tr.z?We.dx:We.dy,We,!je.length),Ze.length=Ze.area=0);Ge.forEach(Pe)}}function Ie(Oe,Ge){for(var We=Oe.area,je,tr=0,Ze=1/0,lr=-1,pr=Oe.length;++lrtr&&(tr=je));return We*=We,Ge*=Ge,We?Math.max(Ge*tr*fe/We,We/(Ge*Ze*fe)):1/0}function Je(Oe,Ge,We,je){var tr=-1,Ze=Oe.length,lr=We.x,pr=We.y,mr=Ge?z(Oe.area/Ge):0,gr;if(Ge==We.dx){for((je||mr>We.dy)&&(mr=We.dy);++trWe.dx)&&(mr=We.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},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,B=0;B2?nB:rB,be=G?MO:wO;return W=fe(C,z,be,B),Z=fe(z,C,be,Tl),ie}function ie(fe){return W(fe)}return ie.invert=function(fe){return Z(fe)},ie.domain=function(fe){return arguments.length?(C=fe.map(Number),se()):C},ie.range=function(fe){return arguments.length?(z=fe,se()):z},ie.rangeRound=function(fe){return ie.range(fe).interpolate(mx)},ie.clamp=function(fe){return arguments.length?(G=fe,se()):G},ie.interpolate=function(fe){return arguments.length?(B=fe,se()):B},ie.ticks=function(fe){return np(C,fe)},ie.tickFormat=function(fe,be){return d3_scale_linearTickFormat(C,fe,be)},ie.nice=function(fe){return Ox(C,fe),se()},ie.copy=function(){return zx(C,z,B,G)},se()}function qx(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Ox(C,z){return rp(C,Nx(tp(C,z)[2])),rp(C,Nx(tp(C,z)[2])),C}function tp(C,z){z==null&&(z=10);var B=g0(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function np(C,z){return e.range.apply(e,tp(C,z))}var aB={s:1,g:1,p:1,r:1,e:1};function Bx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function lfe(C,z){var B=Bx(z[2]);return C in aB?Math.abs(B-Bx(Math.max(m(z[0]),m(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Ux(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Ux(C,z,B,G){function W(ie){return(B?Math.log(ie<0?0:ie):-Math.log(ie>0?0:-ie))/Math.log(z)}function Z(ie){return B?Math.pow(z,ie):-Math.pow(z,-ie)}function se(ie){return C(W(ie))}return se.invert=function(ie){return Z(C.invert(ie))},se.domain=function(ie){return arguments.length?(B=ie[0]>=0,C.domain((G=ie.map(Number)).map(W)),se):G},se.base=function(ie){return arguments.length?(z=+ie,C.domain(G.map(W)),se):z},se.nice=function(){var ie=rp(G.map(W),B?Math:iB);return C.domain(ie),G=ie.map(Z),se},se.ticks=function(){var ie=g0(G),fe=[],be=ie[0],_e=ie[1],Pe=Math.floor(W(be)),Ie=Math.ceil(W(_e)),Je=z%1?2:z;if(isFinite(Ie-Pe)){if(B){for(;Pe0;rr--)fe.push(Z(Pe)*rr);for(Pe=0;fe[Pe]_e;Ie--);fe=fe.slice(Pe,Ie)}return fe},se.copy=function(){return Ux(C.copy(),z,B,G)},qx(se,C)}var iB={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Hx(e.scale.linear(),1,[0,1])};function Hx(C,z,B){var G=m0(z),W=m0(1/z);function Z(se){return C(G(se))}return Z.invert=function(se){return W(C.invert(se))},Z.domain=function(se){return arguments.length?(C.domain((B=se.map(Number)).map(G)),Z):B},Z.ticks=function(se){return np(B,se)},Z.tickFormat=function(se,ie){return d3_scale_linearTickFormat(B,se,ie)},Z.nice=function(se){return Z.domain(Ox(B,se))},Z.exponent=function(se){return arguments.length?(G=m0(z=se),W=m0(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Hx(C.copy(),z,B)},qx(Z,C)}function m0(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 Vx([],{t:"range",a:[[]]})};function Vx(C,z){var B,G,W;function Z(ie){return G[((B.get(ie)||(z.t==="range"?B.set(ie,C.push(ie)):NaN))-1)%G.length]}function se(ie,fe){return e.range(C.length).map(function(be){return ie+fe*be})}return Z.domain=function(ie){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,be=ie.length,_e;++fe0?B[Z-1]:C[0],ZIe?0:1;if(_e=ue)return fe(_e,rr)+(be?fe(be,1-rr):"")+"Z";var Oe,Ge,We,je,tr=0,Ze=0,lr,pr,mr,gr,_r,wr,Or,Tr,Ir=[];if((je=(+se.apply(this,arguments)||0)/2)&&(We=G===x0?Math.sqrt(be*be+_e*_e):+G.apply(this,arguments),rr||(Ze*=-1),_e&&(Ze=fr(We/_e*Math.sin(je))),be&&(tr=fr(We/be*Math.sin(je)))),_e){lr=_e*Math.cos(Pe+Ze),pr=_e*Math.sin(Pe+Ze),mr=_e*Math.cos(Ie-Ze),gr=_e*Math.sin(Ie-Ze);var st=Math.abs(Ie-Pe-2*Ze)<=Ke?0:1;if(Ze&&b0(lr,pr,mr,gr)===rr^st){var Bt=(Pe+Ie)/2;lr=_e*Math.cos(Bt),pr=_e*Math.sin(Bt),mr=gr=null}}else lr=pr=0;if(be){_r=be*Math.cos(Ie-tr),wr=be*Math.sin(Ie-tr),Or=be*Math.cos(Pe+tr),Tr=be*Math.sin(Pe+tr);var vt=Math.abs(Pe-Ie+2*tr)<=Ke?0:1;if(tr&&b0(_r,wr,Or,Tr)===1-rr^vt){var vr=(Pe+Ie)/2;_r=be*Math.cos(vr),wr=be*Math.sin(vr),Or=Tr=null}}else _r=wr=0;if(Je>Re&&(Oe=Math.min(Math.abs(_e-be)/2,+B.apply(this,arguments)))>.001){Ge=be<_e^rr?0:1;var Br=Oe,Hr=Oe;if(Je0?0:1}function _0(C,z,B,G,W){var Z=C[0]-z[0],se=C[1]-z[1],ie=(W?G:-G)/Math.sqrt(Z*Z+se*se),fe=ie*se,be=-ie*Z,_e=C[0]+fe,Pe=C[1]+be,Ie=z[0]+fe,Je=z[1]+be,rr=(_e+Ie)/2,Oe=(Pe+Je)/2,Ge=Ie-_e,We=Je-Pe,je=Ge*Ge+We*We,tr=B-G,Ze=_e*Je-Ie*Pe,lr=(We<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*je-Ze*Ze)),pr=(Ze*We-Ge*lr)/je,mr=(-Ze*Ge-We*lr)/je,gr=(Ze*We+Ge*lr)/je,_r=(-Ze*Ge+We*lr)/je,wr=pr-rr,Or=mr-Oe,Tr=gr-rr,Ir=_r-Oe;return wr*wr+Or*Or>Tr*Tr+Ir*Ir&&(pr=gr,mr=_r),[[pr-fe,mr-be],[pr*B/tr,mr*B/tr]]}function Kx(){return!0}function Qx(C){var z=Es,B=rf,G=Kx,W=Ja,Z=W.key,se=.7;function ie(fe){var be=[],_e=[],Pe=-1,Ie=fe.length,Je,rr=Wr(z),Oe=Wr(B);function Ge(){be.push("M",W(C(_e),se))}for(;++Pe1?C.join("L"):C+"Z"}function $x(C){return C.join("L")+"Z"}function dB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function ip(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){ie=z[1],Z=C[fe],fe++,G+="C"+(W[0]+se[0])+","+(W[1]+se[1])+","+(Z[0]-ie[0])+","+(Z[1]-ie[1])+","+Z[0]+","+Z[1];for(var be=2;be9&&(Z=B*3/Math.sqrt(Z),se[ie]=Z*G,se[ie+1]=Z*W));for(ie=-1;++ie<=fe;)Z=(C[Math.min(fe,ie+1)][0]-C[Math.max(0,ie-1)][0])/(6*(1+se[ie]*se[ie])),z.push([Z||0,se[ie]*Z||0]);return z}function MB(C){return C.length<3?Ja(C):C[0]+w0(C,wB(C))}e.svg.line.radial=function(){var C=Qx(tb);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function tb(C){for(var z,B=-1,G=C.length,W,Z;++BKe)+",1 "+Pe}function be(_e,Pe,Ie,Je){return"Q 0,0 "+Je}return Z.radius=function(_e){return arguments.length?(B=Wr(_e),Z):B},Z.source=function(_e){return arguments.length?(C=Wr(_e),Z):C},Z.target=function(_e){return arguments.length?(z=Wr(_e),Z):z},Z.startAngle=function(_e){return arguments.length?(G=Wr(_e),Z):G},Z.endAngle=function(_e){return arguments.length?(W=Wr(_e),Z):W},Z};function TB(C){return C.radius}e.svg.diagonal=function(){var C=ab,z=ib,B=ob;function G(W,Z){var se=C.call(this,W,Z),ie=z.call(this,W,Z),fe=(se.y+ie.y)/2,be=[se,{x:se.x,y:fe},{x:ie.x,y:fe},ie];return be=be.map(B),"M"+be[0]+"C"+be[1]+" "+be[2]+" "+be[3]}return G.source=function(W){return arguments.length?(C=Wr(W),G):C},G.target=function(W){return arguments.length?(z=Wr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function ob(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=ob,B=C.projection;return C.projection=function(G){return arguments.length?B(AB(z=G)):z},C};function AB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-J;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=SB,z=kB;function B(G,W){return(sb.get(C.call(this,G,W))||lb)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Wr(G),B):C},B.size=function(G){return arguments.length?(z=Wr(G),B):z},B};function kB(){return 64}function SB(){return"circle"}function lb(C){var z=Math.sqrt(C/Ke);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var sb=e.map({circle:lb,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*ub)),B=z*ub;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",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/M0),B=z*M0/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/M0),B=z*M0/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=sb.keys();var M0=Math.sqrt(3),ub=Math.tan(30*ne);re.transition=function(C){for(var z=Al||++cb,B=cp(C),G=[],W,Z,se=A0||{time:Date.now(),ease:iO,delay:0,duration:250},ie=-1,fe=this.length;++ie0;)Pe[--je].call(C,We);if(Ge>=1)return se.event&&se.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}se||(ie=W.time,fe=u0(Ie,0,ie),se=Z[G]={tween:new x,time:ie,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=hb,B=6,G=6,W=3,Z=[10],se=null,ie;function fe(be){be.each(function(){var _e=e.select(this),Pe=this.__chart__||C,Ie=this.__chart__=C.copy(),Je=se==null?Ie.ticks?Ie.ticks.apply(Ie,Z):Ie.domain():se,rr=ie==null?Ie.tickFormat?Ie.tickFormat.apply(Ie,Z):N:ie,Oe=_e.selectAll(".tick").data(Je,Ie),Ge=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",Re),We=e.transition(Oe.exit()).style("opacity",Re).remove(),je=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Ze,lr=y0(Ie),pr=_e.selectAll(".domain").data([0]),mr=(pr.enter().append("path").attr("class","domain"),e.transition(pr));Ge.append("line"),Ge.append("text");var gr=Ge.select("line"),_r=je.select("line"),wr=Oe.select("text").text(rr),Or=Ge.select("text"),Tr=je.select("text"),Ir=z==="top"||z==="left"?-1:1,st,Bt,vt,vr;if(z==="bottom"||z==="top"?(Ze=LB,st="x",vt="y",Bt="x2",vr="y2",wr.attr("dy",Ir<0?"0em":".71em").style("text-anchor","middle"),mr.attr("d","M"+lr[0]+","+Ir*G+"V0H"+lr[1]+"V"+Ir*G)):(Ze=DB,st="y",vt="x",Bt="y2",vr="x2",wr.attr("dy",".32em").style("text-anchor",Ir<0?"end":"start"),mr.attr("d","M"+Ir*G+","+lr[0]+"H0V"+lr[1]+"H"+Ir*G)),gr.attr(vr,Ir*B),Or.attr(vt,Ir*tr),_r.attr(Bt,0).attr(vr,Ir*B),Tr.attr(st,0).attr(vt,Ir*tr),Ie.rangeBand){var Br=Ie,Hr=Br.rangeBand()/2;Pe=Ie=function(ut){return Br(ut)+Hr}}else Pe.rangeBand?Pe=Ie:We.call(Ze,Ie,Pe);Ge.call(Ze,Pe,Ie),je.call(Ze,Ie,Ie)})}return fe.scale=function(be){return arguments.length?(C=be,fe):C},fe.orient=function(be){return arguments.length?(z=be in EB?be+"":hb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(be){return arguments.length?(se=be,fe):se},fe.tickFormat=function(be){return arguments.length?(ie=be,fe):ie},fe.tickSize=function(be){var _e=arguments.length;return _e?(B=+be,G=+arguments[_e-1],fe):B},fe.innerTickSize=function(be){return arguments.length?(B=+be,fe):B},fe.outerTickSize=function(be){return arguments.length?(G=+be,fe):G},fe.tickPadding=function(be){return arguments.length?(W=+be,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var hb="bottom",EB={top:1,right:1,bottom:1,left:1};function LB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function DB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(_e,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,se,ie=!0,fe=!0,be=hp[0];function _e(Oe){Oe.each(function(){var Ge=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),We=Ge.selectAll(".background").data([0]);We.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ge.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var je=Ge.selectAll(".resize").data(be,N);je.exit().remove(),je.enter().append("g").attr("class",function(pr){return"resize "+pr}).style("cursor",function(pr){return RB[pr]}).append("rect").attr("x",function(pr){return/[ew]$/.test(pr)?-3:null}).attr("y",function(pr){return/^[ns]/.test(pr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),je.style("display",_e.empty()?"none":null);var tr=e.transition(Ge),Ze=e.transition(We),lr;z&&(lr=y0(z),Ze.attr("x",lr[0]).attr("width",lr[1]-lr[0]),Ie(tr)),B&&(lr=y0(B),Ze.attr("y",lr[0]).attr("height",lr[1]-lr[0]),Je(tr)),Pe(tr)})}_e.event=function(Oe){Oe.each(function(){var Ge=C.of(this,arguments),We={x:G,y:W,i:Z,j:se},je=this.__chart__||We;this.__chart__=We,Al?e.select(this).transition().each("start.brush",function(){Z=je.i,se=je.j,G=je.x,W=je.y,Ge({type:"brushstart"})}).tween("brush:brush",function(){var tr=p0(G,We.x),Ze=p0(W,We.y);return Z=se=null,function(lr){G=We.x=tr(lr),W=We.y=Ze(lr),Ge({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=We.i,se=We.j,Ge({type:"brush",mode:"resize"}),Ge({type:"brushend"})}):(Ge({type:"brushstart"}),Ge({type:"brush",mode:"resize"}),Ge({type:"brushend"}))})};function Pe(Oe){Oe.selectAll(".resize").attr("transform",function(Ge){return"translate("+G[+/e$/.test(Ge)]+","+W[+/^s/.test(Ge)]+")"})}function Ie(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Je(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,Ge=e.select(e.event.target),We=C.of(Oe,arguments),je=e.select(Oe),tr=Ge.datum(),Ze=!/^(n|s)$/.test(tr)&&z,lr=!/^(e|w)$/.test(tr)&&B,pr=Ge.classed("extent"),mr=Ve(Oe),gr,_r=e.mouse(Oe),wr,Or=e.select(o(Oe)).on("keydown.brush",st).on("keyup.brush",Bt);if(e.event.changedTouches?Or.on("touchmove.brush",vt).on("touchend.brush",Br):Or.on("mousemove.brush",vt).on("mouseup.brush",Br),je.interrupt().selectAll("*").interrupt(),pr)_r[0]=G[0]-_r[0],_r[1]=W[0]-_r[1];else if(tr){var Tr=+/w$/.test(tr),Ir=+/^n/.test(tr);wr=[G[1-Tr]-_r[0],W[1-Ir]-_r[1]],_r[0]=G[Tr],_r[1]=W[Ir]}else e.event.altKey&&(gr=_r.slice());je.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ge.style("cursor")),We({type:"brushstart"}),vt();function st(){e.event.keyCode==32&&(pr||(gr=null,_r[0]-=G[1],_r[1]-=W[1],pr=2),X())}function Bt(){e.event.keyCode==32&&pr==2&&(_r[0]+=G[1],_r[1]+=W[1],pr=0,X())}function vt(){var Hr=e.mouse(Oe),ut=!1;wr&&(Hr[0]+=wr[0],Hr[1]+=wr[1]),pr||(e.event.altKey?(gr||(gr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),_r[0]=G[+(Hr[0]{(function(e,r){typeof R0=="object"&&typeof xb!="undefined"?r(R0):(e=e||self,r(e.d3=e.d3||{}))})(R0,function(e){"use strict";var r=new Date,t=new Date;function n(ge,Me,ke,me){function ye(pe){return ge(pe=arguments.length===0?new Date:new Date(+pe)),pe}return ye.floor=function(pe){return ge(pe=new Date(+pe)),pe},ye.ceil=function(pe){return ge(pe=new Date(pe-1)),Me(pe,1),ge(pe),pe},ye.round=function(pe){var he=ye(pe),xe=ye.ceil(pe);return pe-he0))return Le;do Le.push(qe=new Date(+pe)),Me(pe,xe),ge(pe);while(qe=he)for(;ge(he),!pe(he);)he.setTime(he-1)},function(he,xe){if(he>=he)if(xe<0)for(;++xe<=0;)for(;Me(he,-1),!pe(he););else for(;--xe>=0;)for(;Me(he,1),!pe(he););})},ke&&(ye.count=function(pe,he){return r.setTime(+pe),t.setTime(+he),ge(r),ge(t),Math.floor(ke(r,t))},ye.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?ye.filter(me?function(he){return me(he)%pe===0}:function(he){return ye.count(0,he)%pe===0}):ye}),ye}var a=n(function(){},function(ge,Me){ge.setTime(+ge+Me)},function(ge,Me){return Me-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(Me){Me.setTime(Math.floor(Me/ge)*ge)},function(Me,ke){Me.setTime(+Me+ke*ge)},function(Me,ke){return(ke-Me)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,h=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,Me){ge.setTime(+ge+Me*i)},function(ge,Me){return(Me-ge)/i},function(ge){return ge.getUTCSeconds()}),p=h.range,b=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getMinutes()}),y=b.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getHours()}),T=w.range,m=n(function(ge){ge.setHours(0,0,0,0)},function(ge,Me){ge.setDate(ge.getDate()+Me)},function(ge,Me){return(Me-ge-(Me.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=m.range;function S(ge){return n(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ge)%7),Me.setHours(0,0,0,0)},function(Me,ke){Me.setDate(Me.getDate()+ke*7)},function(Me,ke){return(ke-Me-(ke.getTimezoneOffset()-Me.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),d=S(2),_=S(3),g=S(4),c=S(5),A=S(6),v=x.range,D=M.range,E=d.range,R=_.range,N=g.range,F=c.range,I=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setMonth(ge.getMonth()+Me)},function(ge,Me){return Me.getMonth()-ge.getMonth()+(Me.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setFullYear(ge.getFullYear()+Me)},function(ge,Me){return Me.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ge)*ge),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,ke){Me.setFullYear(Me.getFullYear()+ke*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCDate(ge.getUTCDate()+Me)},function(ge,Me){return(Me-ge)/s},function(ge){return ge.getUTCDate()-1}),Q=q.range;function ae(ge){return n(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ge)%7),Me.setUTCHours(0,0,0,0)},function(Me,ke){Me.setUTCDate(Me.getUTCDate()+ke*7)},function(Me,ke){return(ke-Me)/f})}var K=ae(0),oe=ae(1),re=ae(2),V=ae(3),ee=ae(4),H=ae(5),te=ae(6),le=K.range,ve=oe.range,Ae=re.range,we=V.range,ce=ee.range,Se=H.range,Ce=te.range,Fe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCMonth(ge.getUTCMonth()+Me)},function(ge,Me){return Me.getUTCMonth()-ge.getUTCMonth()+(Me.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Ee=Fe.range,ze=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCFullYear(ge.getUTCFullYear()+Me)},function(ge,Me){return Me.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});ze.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ge)*ge),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,ke){Me.setUTCFullYear(Me.getUTCFullYear()+ke*ge)})};var Ue=ze.range;e.timeDay=m,e.timeDays=k,e.timeFriday=c,e.timeFridays=F,e.timeHour=w,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=y,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=I,e.timeSecond=h,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=v,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=R,e.timeWeek=x,e.timeWeeks=v,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=Q,e.utcFriday=H,e.utcFridays=Se,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=oe,e.utcMondays=ve,e.utcMonth=Fe,e.utcMonths=Ee,e.utcSaturday=te,e.utcSaturdays=Ce,e.utcSecond=h,e.utcSeconds=p,e.utcSunday=K,e.utcSundays=le,e.utcThursday=ee,e.utcThursdays=ce,e.utcTuesday=re,e.utcTuesdays=Ae,e.utcWednesday=V,e.utcWednesdays=we,e.utcWeek=K,e.utcWeeks=le,e.utcYear=ze,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var Ns=de((P0,bb)=>{(function(e,r){typeof P0=="object"&&typeof bb!="undefined"?r(P0,vp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(P0,function(e,r){"use strict";function t(Te){if(0<=Te.y&&Te.y<100){var Re=new Date(-1,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L);return Re.setFullYear(Te.y),Re}return new Date(Te.y,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L)}function n(Te){if(0<=Te.y&&Te.y<100){var Re=new Date(Date.UTC(-1,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L));return Re.setUTCFullYear(Te.y),Re}return new Date(Date.UTC(Te.y,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L))}function a(Te,Re,Qe){return{y:Te,m:Re,d:Qe,H:0,M:0,S:0,L:0}}function o(Te){var Re=Te.dateTime,Qe=Te.date,Ke=Te.time,ar=Te.periods,ue=Te.days,J=Te.shortDays,ne=Te.months,De=Te.shortMonths,He=p(ar),er=b(ar),nr=p(ue),fr=b(ue),br=p(J),Sr=b(J),Mr=p(ne),Ar=b(ne),ft=p(De),sr=b(De),Pr={a:ha,A:$n,b:Fn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:wi,q:Ki,Q:he,s:xe,S:q,u:Q,U:ae,V:K,w:oe,W:re,x:null,X:null,y:V,Y:ee,Z:H,"%":pe},$r={a:Qi,A:$i,b:tn,B:ko,c:null,d:te,e:te,f:ce,H:le,I:ve,j:Ae,L:we,m:Se,M:Ce,p:Mi,q:Ti,Q:he,s:xe,S:Fe,u:Ee,U:ze,V:Ue,w:ge,W:Me,x:null,X:null,y:ke,Y:me,Z:ye,"%":pe},Fr={a:vn,A:Et,b:Tn,B:Ot,c:bt,d:g,e:g,f:R,H:A,I:A,j:c,L:E,m:_,M:v,p:jr,q:d,Q:F,s:I,S:D,u:w,U:T,V:m,w:y,W:k,x:gt,X:Nt,y:x,Y:S,Z:M,"%":N};Pr.x=Gr(Qe,Pr),Pr.X=Gr(Ke,Pr),Pr.c=Gr(Re,Pr),$r.x=Gr(Qe,$r),$r.X=Gr(Ke,$r),$r.c=Gr(Re,$r);function Gr(kr,at){return function(ct){var yr=[],yn=-1,_t=0,mn=kr.length,Wr,Za,wl;for(ct instanceof Date||(ct=new Date(+ct));++yn53)return null;"w"in yr||(yr.w=1),"Z"in yr?(_t=n(a(yr.y,0,1)),mn=_t.getUTCDay(),_t=mn>4||mn===0?r.utcMonday.ceil(_t):r.utcMonday(_t),_t=r.utcDay.offset(_t,(yr.V-1)*7),yr.y=_t.getUTCFullYear(),yr.m=_t.getUTCMonth(),yr.d=_t.getUTCDate()+(yr.w+6)%7):(_t=t(a(yr.y,0,1)),mn=_t.getDay(),_t=mn>4||mn===0?r.timeMonday.ceil(_t):r.timeMonday(_t),_t=r.timeDay.offset(_t,(yr.V-1)*7),yr.y=_t.getFullYear(),yr.m=_t.getMonth(),yr.d=_t.getDate()+(yr.w+6)%7)}else("W"in yr||"U"in yr)&&("w"in yr||(yr.w="u"in yr?yr.u%7:"W"in yr?1:0),mn="Z"in yr?n(a(yr.y,0,1)).getUTCDay():t(a(yr.y,0,1)).getDay(),yr.m=0,yr.d="W"in yr?(yr.w+6)%7+yr.W*7-(mn+5)%7:yr.w+yr.U*7-(mn+6)%7);return"Z"in yr?(yr.H+=yr.Z/100|0,yr.M+=yr.Z%100,n(yr)):t(yr)}}function Rr(kr,at,ct,yr){for(var yn=0,_t=at.length,mn=ct.length,Wr,Za;yn<_t;){if(yr>=mn)return-1;if(Wr=at.charCodeAt(yn++),Wr===37){if(Wr=at.charAt(yn++),Za=Fr[Wr in i?at.charAt(yn++):Wr],!Za||(yr=Za(kr,ct,yr))<0)return-1}else if(Wr!=ct.charCodeAt(yr++))return-1}return yr}function jr(kr,at,ct){var yr=He.exec(at.slice(ct));return yr?(kr.p=er[yr[0].toLowerCase()],ct+yr[0].length):-1}function vn(kr,at,ct){var yr=br.exec(at.slice(ct));return yr?(kr.w=Sr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Et(kr,at,ct){var yr=nr.exec(at.slice(ct));return yr?(kr.w=fr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Tn(kr,at,ct){var yr=ft.exec(at.slice(ct));return yr?(kr.m=sr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Ot(kr,at,ct){var yr=Mr.exec(at.slice(ct));return yr?(kr.m=Ar[yr[0].toLowerCase()],ct+yr[0].length):-1}function bt(kr,at,ct){return Rr(kr,Re,at,ct)}function gt(kr,at,ct){return Rr(kr,Qe,at,ct)}function Nt(kr,at,ct){return Rr(kr,Ke,at,ct)}function ha(kr){return J[kr.getDay()]}function $n(kr){return ue[kr.getDay()]}function Fn(kr){return De[kr.getMonth()]}function Ma(kr){return ne[kr.getMonth()]}function wi(kr){return ar[+(kr.getHours()>=12)]}function Ki(kr){return 1+~~(kr.getMonth()/3)}function Qi(kr){return J[kr.getUTCDay()]}function $i(kr){return ue[kr.getUTCDay()]}function tn(kr){return De[kr.getUTCMonth()]}function ko(kr){return ne[kr.getUTCMonth()]}function Mi(kr){return ar[+(kr.getUTCHours()>=12)]}function Ti(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var at=Gr(kr+="",Pr);return at.toString=function(){return kr},at},parse:function(kr){var at=pt(kr+="",!1);return at.toString=function(){return kr},at},utcFormat:function(kr){var at=Gr(kr+="",$r);return at.toString=function(){return kr},at},utcParse:function(kr){var at=pt(kr+="",!0);return at.toString=function(){return kr},at}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Te,Re,Qe){var Ke=Te<0?"-":"",ar=(Ke?-Te:Te)+"",ue=ar.length;return Ke+(ue68?1900:2e3),Qe+Ke[0].length):-1}function M(Te,Re,Qe){var Ke=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Re.slice(Qe,Qe+6));return Ke?(Te.Z=Ke[1]?0:-(Ke[2]+(Ke[3]||"00")),Qe+Ke[0].length):-1}function d(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+1));return Ke?(Te.q=Ke[0]*3-3,Qe+Ke[0].length):-1}function _(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.m=Ke[0]-1,Qe+Ke[0].length):-1}function g(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.d=+Ke[0],Qe+Ke[0].length):-1}function c(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+3));return Ke?(Te.m=0,Te.d=+Ke[0],Qe+Ke[0].length):-1}function A(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.H=+Ke[0],Qe+Ke[0].length):-1}function v(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.M=+Ke[0],Qe+Ke[0].length):-1}function D(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.S=+Ke[0],Qe+Ke[0].length):-1}function E(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+3));return Ke?(Te.L=+Ke[0],Qe+Ke[0].length):-1}function R(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+6));return Ke?(Te.L=Math.floor(Ke[0]/1e3),Qe+Ke[0].length):-1}function N(Te,Re,Qe){var Ke=u.exec(Re.slice(Qe,Qe+1));return Ke?Qe+Ke[0].length:-1}function F(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe));return Ke?(Te.Q=+Ke[0],Qe+Ke[0].length):-1}function I(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe));return Ke?(Te.s=+Ke[0],Qe+Ke[0].length):-1}function L(Te,Re){return f(Te.getDate(),Re,2)}function P(Te,Re){return f(Te.getHours(),Re,2)}function O(Te,Re){return f(Te.getHours()%12||12,Re,2)}function U(Te,Re){return f(1+r.timeDay.count(r.timeYear(Te),Te),Re,3)}function X(Te,Re){return f(Te.getMilliseconds(),Re,3)}function $(Te,Re){return X(Te,Re)+"000"}function j(Te,Re){return f(Te.getMonth()+1,Re,2)}function Y(Te,Re){return f(Te.getMinutes(),Re,2)}function q(Te,Re){return f(Te.getSeconds(),Re,2)}function Q(Te){var Re=Te.getDay();return Re===0?7:Re}function ae(Te,Re){return f(r.timeSunday.count(r.timeYear(Te)-1,Te),Re,2)}function K(Te,Re){var Qe=Te.getDay();return Te=Qe>=4||Qe===0?r.timeThursday(Te):r.timeThursday.ceil(Te),f(r.timeThursday.count(r.timeYear(Te),Te)+(r.timeYear(Te).getDay()===4),Re,2)}function oe(Te){return Te.getDay()}function re(Te,Re){return f(r.timeMonday.count(r.timeYear(Te)-1,Te),Re,2)}function V(Te,Re){return f(Te.getFullYear()%100,Re,2)}function ee(Te,Re){return f(Te.getFullYear()%1e4,Re,4)}function H(Te){var Re=Te.getTimezoneOffset();return(Re>0?"-":(Re*=-1,"+"))+f(Re/60|0,"0",2)+f(Re%60,"0",2)}function te(Te,Re){return f(Te.getUTCDate(),Re,2)}function le(Te,Re){return f(Te.getUTCHours(),Re,2)}function ve(Te,Re){return f(Te.getUTCHours()%12||12,Re,2)}function Ae(Te,Re){return f(1+r.utcDay.count(r.utcYear(Te),Te),Re,3)}function we(Te,Re){return f(Te.getUTCMilliseconds(),Re,3)}function ce(Te,Re){return we(Te,Re)+"000"}function Se(Te,Re){return f(Te.getUTCMonth()+1,Re,2)}function Ce(Te,Re){return f(Te.getUTCMinutes(),Re,2)}function Fe(Te,Re){return f(Te.getUTCSeconds(),Re,2)}function Ee(Te){var Re=Te.getUTCDay();return Re===0?7:Re}function ze(Te,Re){return f(r.utcSunday.count(r.utcYear(Te)-1,Te),Re,2)}function Ue(Te,Re){var Qe=Te.getUTCDay();return Te=Qe>=4||Qe===0?r.utcThursday(Te):r.utcThursday.ceil(Te),f(r.utcThursday.count(r.utcYear(Te),Te)+(r.utcYear(Te).getUTCDay()===4),Re,2)}function ge(Te){return Te.getUTCDay()}function Me(Te,Re){return f(r.utcMonday.count(r.utcYear(Te)-1,Te),Re,2)}function ke(Te,Re){return f(Te.getUTCFullYear()%100,Re,2)}function me(Te,Re){return f(Te.getUTCFullYear()%1e4,Re,4)}function ye(){return"+0000"}function pe(){return"%"}function he(Te){return+Te}function xe(Te){return Math.floor(+Te/1e3)}var Le;qe({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 qe(Te){return Le=o(Te),e.timeFormat=Le.format,e.timeParse=Le.parse,e.utcFormat=Le.utcFormat,e.utcParse=Le.utcParse,Le}var Ne="%Y-%m-%dT%H:%M:%S.%LZ";function $e(Te){return Te.toISOString()}var Ve=Date.prototype.toISOString?$e:e.utcFormat(Ne);function Be(Te){var Re=new Date(Te);return isNaN(Re)?null:Re}var Ye=+new Date("2000-01-01T00:00:00.000Z")?Be:e.utcParse(Ne);e.isoFormat=Ve,e.isoParse=Ye,e.timeFormatDefaultLocale=qe,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var dp=de((I0,_b)=>{(function(e,r){typeof I0=="object"&&typeof _b!="undefined"?r(I0):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(I0,function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,g){if((c=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var c,A=_.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+_.slice(c+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,g){return function(c,A){for(var v=c.length,D=[],E=0,R=_[0],N=0;v>0&&R>0&&(N+R+1>A&&(R=Math.max(1,A-N)),D.push(c.substring(v-=R,v+R)),!((N+=R+1)>A));)R=_[E=(E+1)%_.length];return D.reverse().join(g)}}function o(_){return function(g){return g.replace(/[0-9]/g,function(c){return _[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(g=i.exec(_)))throw new Error("invalid format: "+_);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(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.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(_){e:for(var g=_.length,c=1,A=-1,v;c0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(v+1):_}var f;function h(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],v=c[1],D=v-(f=Math.max(-8,Math.min(8,Math.floor(v/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(_,Math.max(0,g+D-1))[0]}function p(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],v=c[1];return v<0?"0."+new Array(-v).join("0")+A:A.length>v+1?A.slice(0,v+1)+"."+A.slice(v+1):A+new Array(v-A.length+2).join("0")}var b={"%":function(_,g){return(_*100).toFixed(g)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,g){return _.toExponential(g)},f:function(_,g){return _.toFixed(g)},g:function(_,g){return _.toPrecision(g)},o:function(_){return Math.round(_).toString(8)},p:function(_,g){return p(_*100,g)},r:p,s:h,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function y(_){return _}var w=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(_){var g=_.grouping===void 0||_.thousands===void 0?y:a(w.call(_.grouping,Number),_.thousands+""),c=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",v=_.decimal===void 0?".":_.decimal+"",D=_.numerals===void 0?y:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",R=_.minus===void 0?"-":_.minus+"",N=_.nan===void 0?"NaN":_.nan+"";function F(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,Q=L.trim,ae=L.type;ae==="n"?(Y=!0,ae="g"):b[ae]||(q===void 0&&(q=12),Q=!0,ae="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var K=X==="$"?c:X==="#"&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",oe=X==="$"?A:/[%p]/.test(ae)?E:"",re=b[ae],V=/[defgprs%]/.test(ae);q=q===void 0?6:/[gprs]/.test(ae)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ee(H){var te=K,le=oe,ve,Ae,we;if(ae==="c")le=re(H)+le,H="";else{H=+H;var ce=H<0||1/H<0;if(H=isNaN(H)?N:re(Math.abs(H),q),Q&&(H=s(H)),ce&&+H==0&&U!=="+"&&(ce=!1),te=(ce?U==="("?U:R:U==="-"||U==="("?"":U)+te,le=(ae==="s"?T[8+f/3]:"")+le+(ce&&U==="("?")":""),V){for(ve=-1,Ae=H.length;++vewe||we>57){le=(we===46?v+H.slice(ve+1):H.slice(ve))+le,H=H.slice(0,ve);break}}}Y&&!$&&(H=g(H,1/0));var Se=te.length+H.length+le.length,Ce=Se>1)+te+H+le+Ce.slice(Se);break;default:H=Ce+te+H+le;break}return D(H)}return ee.toString=function(){return L+""},ee}function I(L,P){var O=F((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=T[8+U/3];return function(j){return O(X*j)+$}}return{format:F,formatPrefix:I}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=m(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(_){return Math.max(0,-n(Math.abs(_)))}function M(_,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(_)))}function d(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,n(g)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var Mb=de((cfe,wb)=>{"use strict";wb.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=de((hfe,Tb)=>{"use strict";var UB=Mb();Tb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&UB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn=de((vfe,Ab)=>{"use strict";Ab.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 pp=de((F0,kb)=>{(function(e,r){typeof F0=="object"&&typeof kb!="undefined"?r(F0):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(F0,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,b,y;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),T=new Uint8Array(w);for(s=0;s>4,T[f++]=(p&15)<<4|b>>2,T[f++]=(b&3)<<6|y&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Eo=de((dfe,Sb)=>{"use strict";Sb.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 ra=de(Qa=>{"use strict";var HB=pp().decode,VB=Eo(),gp=Array.isArray,GB=ArrayBuffer,YB=DataView;function Cb(e){return GB.isView(e)&&!(e instanceof YB)}Qa.isTypedArray=Cb;function N0(e){return gp(e)||Cb(e)}Qa.isArrayOrTypedArray=N0;function WB(e){return!N0(e[0])}Qa.isArray1D=WB;Qa.ensureArray=function(e,r){return gp(e)||(e=[]),e.length=r,e};var dn={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};dn.uint8c=dn.u1c;dn.uint8=dn.u1;dn.int8=dn.i1;dn.uint16=dn.u2;dn.int16=dn.i2;dn.uint32=dn.u4;dn.int32=dn.i4;dn.float32=dn.f4;dn.float64=dn.f8;function yp(e){return e.constructor===ArrayBuffer}Qa.isArrayBuffer=yp;Qa.decodeTypedArraySpec=function(e){var r=[],t=XB(e),n=t.dtype,a=dn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;yp(i)||(i=HB(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,b=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var Lb=nt(),xp=ra().isArrayOrTypedArray;Ib.exports=function(r,t){if(Lb(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 zs=z0(),$B=/^\w*$/,jB=0,Fb=1,q0=2,Nb=3,El=4;zb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=zs(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[b]=u[b]|q0,h.set(p,null);if(f){for(o=b;o{"use strict";var eU=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,rU=/^[^\.\[\]]+$/;Ob.exports=function(e,r){for(;r;){var t=e.match(eU);if(t)e=t[1];else if(e.match(rU))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 O0=de((xfe,Ub)=>{"use strict";var tU=nt();Ub.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 tU(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Gb=de((bfe,Vb)=>{"use strict";var Hb=ra().isArrayOrTypedArray,cf=Eo();Vb.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(Hb(a)&&Hb(o)&&cf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function nU(e,r){var t=e%r;return t<0?t+r:t}function aU(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Yb.exports={mod:nU,modHalf:aU}});var Sa=de((wfe,B0)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,ee){if(V=V||"",ee=ee||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,ee);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=ee.format||H.format,this._gradientType=ee.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(),ee,H,te,le,ve,Ae;return ee=V.r/255,H=V.g/255,te=V.b/255,ee<=.03928?le=ee/12.92:le=e.pow((ee+.055)/1.055,2.4),H<=.03928?ve=H/12.92:ve=e.pow((H+.055)/1.055,2.4),te<=.03928?Ae=te/12.92:Ae=e.pow((te+.055)/1.055,2.4),.2126*le+.7152*ve+.0722*Ae},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=b(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=b(this._r,this._g,this._b),ee=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+ee+", "+H+"%, "+te+"%)":"hsva("+ee+", "+H+"%, "+te+"%, "+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),ee=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+ee+", "+H+"%, "+te+"%)":"hsla("+ee+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(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:F[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var ee="#"+m(this._r,this._g,this._b,this._a),H=ee,te=this._gradientType?"GradientType = 1, ":"";if(V){var le=u(V);H="#"+m(le._r,le._g,le._b,le._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+ee+",endColorstr="+H+")"},toString:function(V){var ee=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,le=!ee&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return le?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,ee){var H=V.apply(null,[this].concat([].slice.call(ee)));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(d,arguments)},darken:function(){return this._applyModification(_,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,ee){return V.apply(null,[this].concat([].slice.call(ee)))},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(v,arguments)}},u.fromRatio=function(V,ee){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,ee)};function s(V){var ee={r:0,g:0,b:0},H=1,te=null,le=null,ve=null,Ae=!1,we=!1;return typeof V=="string"&&(V=oe(V)),typeof V=="object"&&(K(V.r)&&K(V.g)&&K(V.b)?(ee=f(V.r,V.g,V.b),Ae=!0,we=String(V.r).substr(-1)==="%"?"prgb":"rgb"):K(V.h)&&K(V.s)&&K(V.v)?(te=Y(V.s),le=Y(V.v),ee=y(V.h,te,le),Ae=!0,we="hsv"):K(V.h)&&K(V.s)&&K(V.l)&&(te=Y(V.s),ve=Y(V.l),ee=p(V.h,te,ve),Ae=!0,we="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:Ae,format:V.format||we,r:o(255,i(ee.r,0)),g:o(255,i(ee.g,0)),b:o(255,i(ee.b,0)),a:H}}function f(V,ee,H){return{r:P(V,255)*255,g:P(ee,255)*255,b:P(H,255)*255}}function h(V,ee,H){V=P(V,255),ee=P(ee,255),H=P(H,255);var te=i(V,ee,H),le=o(V,ee,H),ve,Ae,we=(te+le)/2;if(te==le)ve=Ae=0;else{var ce=te-le;switch(Ae=we>.5?ce/(2-te-le):ce/(te+le),te){case V:ve=(ee-H)/ce+(ee1&&(Fe-=1),Fe<1/6?Se+(Ce-Se)*6*Fe:Fe<1/2?Ce:Fe<2/3?Se+(Ce-Se)*(2/3-Fe)*6:Se}if(ee===0)te=le=ve=H;else{var we=H<.5?H*(1+ee):H+ee-H*ee,ce=2*H-we;te=Ae(ce,we,V+1/3),le=Ae(ce,we,V),ve=Ae(ce,we,V-1/3)}return{r:te*255,g:le*255,b:ve*255}}function b(V,ee,H){V=P(V,255),ee=P(ee,255),H=P(H,255);var te=i(V,ee,H),le=o(V,ee,H),ve,Ae,we=te,ce=te-le;if(Ae=te===0?0:ce/te,te==le)ve=0;else{switch(te){case V:ve=(ee-H)/ce+(ee>1)+720)%360;--ee;)te.h=(te.h+le)%360,ve.push(u(te));return ve}function R(V,ee){ee=ee||6;for(var H=u(V).toHsv(),te=H.h,le=H.s,ve=H.v,Ae=[],we=1/ee;ee--;)Ae.push(u({h:te,s:le,v:ve})),ve=(ve+we)%1;return Ae}u.mix=function(V,ee,H){H=H===0?0:H||50;var te=u(V).toRgb(),le=u(ee).toRgb(),ve=H/100,Ae={r:(le.r-te.r)*ve+te.r,g:(le.g-te.g)*ve+te.g,b:(le.b-te.b)*ve+te.b,a:(le.a-te.a)*ve+te.a};return u(Ae)},u.readability=function(V,ee){var H=u(V),te=u(ee);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,ee,H){var te=u.readability(V,ee),le,ve;switch(ve=!1,le=re(H),le.level+le.size){case"AAsmall":case"AAAlarge":ve=te>=4.5;break;case"AAlarge":ve=te>=3;break;case"AAAsmall":ve=te>=7;break}return ve},u.mostReadable=function(V,ee,H){var te=null,le=0,ve,Ae,we,ce;H=H||{},Ae=H.includeFallbackColors,we=H.level,ce=H.size;for(var Se=0;Sele&&(le=ve,te=u(ee[Se]));return u.isReadable(V,te,{level:we,size:ce})||!Ae?te:(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"},F=u.hexNames=I(N);function I(V){var ee={};for(var H in V)V.hasOwnProperty(H)&&(ee[V[H]]=H);return ee}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,ee){X(V)&&(V="100%");var H=$(V);return V=o(ee,i(0,parseFloat(V))),H&&(V=parseInt(V*ee,10)/100),e.abs(V-ee)<1e-6?1:V%ee/parseFloat(ee)}function O(V){return o(1,i(0,V))}function U(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 j(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 U(V)/255}var ae=function(){var V="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",H="(?:"+ee+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",le="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+le),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 K(V){return!!ae.CSS_UNIT.exec(V)}function oe(V){V=V.replace(r,"").replace(t,"").toLowerCase();var ee=!1;if(N[V])V=N[V],ee=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ae.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ae.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ae.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ae.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ae.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ae.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ae.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:Q(H[4]),format:ee?"name":"hex8"}:(H=ae.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:ee?"name":"hex"}:(H=ae.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:Q(H[4]+""+H[4]),format:ee?"name":"hex8"}:(H=ae.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:ee?"name":"hex"}:!1}function re(V){var ee,H;return V=V||{level:"AA",size:"small"},ee=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:ee,size:H}}typeof B0!="undefined"&&B0.exports?B0.exports=u:window.tinycolor=u})(Math)});var Tt=de(df=>{"use strict";var Wb=Eo(),hf=Array.isArray;function iU(e,r){var t,n;for(t=0;t{"use strict";Xb.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 pf=de((Afe,Zb)=>{"use strict";Zb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ll=de((kfe,Qb)=>{"use strict";var Jb=pf(),Kb=kn(),bp=Kb({editType:"none"});bp.family.dflt=Jb.HOVERFONT;bp.size.dflt=Jb.HOVERFONTSIZE;Qb.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:bp,grouptitlefont:Kb({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 U0=de((Sfe,$b)=>{"use strict";var oU=kn(),gf=Ll().hoverlabel,yf=Tt().extendFlat;$b.exports={hoverlabel:{bgcolor:yf({},gf.bgcolor,{arrayOk:!0}),bordercolor:yf({},gf.bordercolor,{arrayOk:!0}),font:oU({arrayOk:!0,editType:"none"}),align:yf({},gf.align,{arrayOk:!0}),namelength:yf({},gf.namelength,{arrayOk:!0}),showarrow:yf({},gf.showarrow),editType:"none"}}});var Sn=de((Cfe,jb)=>{"use strict";var lU=kn(),sU=U0();jb.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:lU({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:sU.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=de((Efe,t4)=>{"use strict";var uU=Sa(),H0={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)"]]},e4=H0.RdBu;function fU(e,r){if(r||(r=e4),!e)return r;function t(){try{e=H0[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),r4(e)?e:r}function r4(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 Xr=de((Dfe,n4)=>{"use strict";var ta=Sa(),hU=nt(),vU=ra().isTypedArray,an=n4.exports={},V0=Si();an.defaults=V0.defaults;var dU=an.defaultLine=V0.defaultLine;an.lightLine=V0.lightLine;var wp=an.background=V0.background;an.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};an.rgb=function(e){return an.tinyRGB(ta(e))};an.opacity=function(e){return e?ta(e).getAlpha():0};an.addOpacity=function(e,r){var t=ta(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};an.combine=function(e,r){var t=ta(e).toRgb();if(t.a===1)return ta(e).toRgbString();var n=ta(r||wp).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 ta(o).toRgbString()};an.interpolate=function(e,r,t){var n=ta(e).toRgb(),a=ta(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 ta(o).toRgbString()};an.contrast=function(e,r,t){var n=ta(e);n.getAlpha()!==1&&(n=ta(an.combine(e,wp)));var a=n.isDark()?r?n.lighten(r):wp:t?n.darken(t):dU;return a.toString()};an.stroke=function(e,r){var t=ta(r);e.style({stroke:an.tinyRGB(t),"stroke-opacity":t.getAlpha()})};an.fill=function(e,r){var t=ta(r);e.style({fill:an.tinyRGB(t),"fill-opacity":t.getAlpha()})};an.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 G0=de((Rfe,a4)=>{"use strict";a4.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Os=de(i4=>{"use strict";i4.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 u4=de(na=>{"use strict";var Mp=nt(),o4=Sa(),l4=Tt().extendFlat,pU=Sn(),gU=Dl(),yU=Xr(),mU=G0().DESELECTDIM,Bs=z0(),s4=Os().counter,xU=qs().modHalf,$a=ra().isArrayOrTypedArray,Lo=ra().isTypedArraySpec,Do=ra().decodeTypedArraySpec;na.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)),!Mp(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||!Mp(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)),o4(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return o4(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(gU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),e==="auto"?r.set("auto"):Mp(e)?r.set(xU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||s4(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:!!s4(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 f4={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},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:{}}},c4={};function h4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),h4(n,r[t]))}}h4(f4,c4);v4.exports={configAttributes:f4,dfltConfig:c4}});var Ap=de((Nfe,d4)=>{"use strict";var Tp=it(),bU=nt(),mf=[];d4.exports=function(e,r){if(mf.indexOf(e)!==-1)return;mf.push(e);var t=1e3;bU(r)?t=r:r==="long"&&(t=3e3);var n=Tp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(mf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=mf.indexOf(l);u!==-1&&mf.splice(u,1),Tp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=Tp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Us=Pl().dfltConfig,kp=Ap(),Sp=p4.exports={};Sp.log=function(){var e;if(Us.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Sp.warn=function(){var e;if(Us.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Sp.error=function(){var e;if(Us.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var W0=de((qfe,g4)=>{"use strict";g4.exports=function(){}});var Cp=de((Ofe,y4)=>{"use strict";y4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{m4.exports=_U;function _U(){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 _4=de((Ufe,b4)=>{b4.exports=wU;function wU(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 M4=de((Hfe,w4)=>{w4.exports=MU;function MU(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 Ep=de((Vfe,T4)=>{T4.exports=TU;function TU(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 k4=de((Gfe,A4)=>{A4.exports=AU;function AU(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 C4=de((Yfe,S4)=>{S4.exports=kU;function kU(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],b=r[11],y=r[12],w=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,d=n*s-o*l,_=a*s-o*u,g=f*w-h*y,c=f*T-p*y,A=f*m-b*y,v=h*T-p*w,D=h*m-b*w,E=p*m-b*T,R=k*E-S*D+x*v+M*A-d*c+_*g;return R?(R=1/R,e[0]=(l*E-u*D+s*v)*R,e[1]=(a*D-n*E-o*v)*R,e[2]=(w*_-T*d+m*M)*R,e[3]=(p*d-h*_-b*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*_-m*S)*R,e[7]=(f*_-p*x+b*S)*R,e[8]=(i*D-l*A+s*g)*R,e[9]=(n*A-t*D-o*g)*R,e[10]=(y*d-w*x+m*k)*R,e[11]=(h*x-f*d-b*k)*R,e[12]=(l*c-i*v-u*g)*R,e[13]=(t*v-n*c+a*g)*R,e[14]=(w*S-y*M-T*k)*R,e[15]=(f*M-h*S+p*k)*R,e):null}});var L4=de((Wfe,E4)=>{E4.exports=SU;function SU(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],b=r[11],y=r[12],w=r[13],T=r[14],m=r[15];return e[0]=l*(p*m-b*T)-h*(u*m-s*T)+w*(u*b-s*p),e[1]=-(n*(p*m-b*T)-h*(a*m-o*T)+w*(a*b-o*p)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+w*(a*s-o*u),e[3]=-(n*(u*b-s*p)-l*(a*b-o*p)+h*(a*s-o*u)),e[4]=-(i*(p*m-b*T)-f*(u*m-s*T)+y*(u*b-s*p)),e[5]=t*(p*m-b*T)-f*(a*m-o*T)+y*(a*b-o*p),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+y*(a*s-o*u)),e[7]=t*(u*b-s*p)-i*(a*b-o*p)+f*(a*s-o*u),e[8]=i*(h*m-b*w)-f*(l*m-s*w)+y*(l*b-s*h),e[9]=-(t*(h*m-b*w)-f*(n*m-o*w)+y*(n*b-o*h)),e[10]=t*(l*m-s*w)-i*(n*m-o*w)+y*(n*s-o*l),e[11]=-(t*(l*b-s*h)-i*(n*b-o*h)+f*(n*s-o*l)),e[12]=-(i*(h*T-p*w)-f*(l*T-u*w)+y*(l*p-u*h)),e[13]=t*(h*T-p*w)-f*(n*T-a*w)+y*(n*p-a*h),e[14]=-(t*(l*T-u*w)-i*(n*T-a*w)+y*(n*u-a*l)),e[15]=t*(l*p-u*h)-i*(n*p-a*h)+f*(n*u-a*l),e}});var R4=de((Xfe,D4)=>{D4.exports=CU;function CU(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],b=e[12],y=e[13],w=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,d=n*u-a*l,_=s*y-f*b,g=s*w-h*b,c=s*T-p*b,A=f*w-h*y,v=f*T-p*y,D=h*T-p*w;return m*D-k*v+S*A+x*c-M*g+d*_}});var I4=de((Zfe,P4)=>{P4.exports=EU;function EU(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],b=r[10],y=r[11],w=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],d=t[3];return e[0]=S*n+x*l+M*h+d*w,e[1]=S*a+x*u+M*p+d*T,e[2]=S*o+x*s+M*b+d*m,e[3]=S*i+x*f+M*y+d*k,S=t[4],x=t[5],M=t[6],d=t[7],e[4]=S*n+x*l+M*h+d*w,e[5]=S*a+x*u+M*p+d*T,e[6]=S*o+x*s+M*b+d*m,e[7]=S*i+x*f+M*y+d*k,S=t[8],x=t[9],M=t[10],d=t[11],e[8]=S*n+x*l+M*h+d*w,e[9]=S*a+x*u+M*p+d*T,e[10]=S*o+x*s+M*b+d*m,e[11]=S*i+x*f+M*y+d*k,S=t[12],x=t[13],M=t[14],d=t[15],e[12]=S*n+x*l+M*h+d*w,e[13]=S*a+x*u+M*p+d*T,e[14]=S*o+x*s+M*b+d*m,e[15]=S*i+x*f+M*y+d*k,e}});var N4=de((Jfe,F4)=>{F4.exports=LU;function LU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,h,p,b,y,w,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],b=r[7],y=r[8],w=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]=b,e[8]=y,e[9]=w,e[10]=T,e[11]=m,e[12]=i*n+f*a+y*o+r[12],e[13]=l*n+h*a+w*o+r[13],e[14]=u*n+p*a+T*o+r[14],e[15]=s*n+b*a+m*o+r[15]),e}});var q4=de((Kfe,z4)=>{z4.exports=DU;function DU(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 B4=de((Qfe,O4)=>{O4.exports=RU;function RU(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,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,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],b=r[2],y=r[3],w=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],d=r[11],_=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,v=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*g+S*c,e[1]=p*_+T*g+x*c,e[2]=b*_+m*g+M*c,e[3]=y*_+k*g+d*c,e[4]=h*A+w*v+S*D,e[5]=p*A+T*v+x*D,e[6]=b*A+m*v+M*D,e[7]=y*A+k*v+d*D,e[8]=h*E+w*R+S*N,e[9]=p*E+T*R+x*N,e[10]=b*E+m*R+M*N,e[11]=y*E+k*R+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var H4=de(($fe,U4)=>{U4.exports=PU;function PU(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 G4=de((jfe,V4)=>{V4.exports=IU;function IU(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 W4=de((ece,Y4)=>{Y4.exports=FU;function FU(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 Z4=de((rce,X4)=>{X4.exports=NU;function NU(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 K4=de((tce,J4)=>{J4.exports=zU;function zU(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,b=a*u,y=a*s,w=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(b+w),e[1]=h+k,e[2]=p-m,e[3]=0,e[4]=h-k,e[5]=1-(f+w),e[6]=y+T,e[7]=0,e[8]=p+m,e[9]=y-T,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var $4=de((nce,Q4)=>{Q4.exports=qU;function qU(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 e_=de((ace,j4)=>{j4.exports=OU;function OU(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 t_=de((ice,r_)=>{r_.exports=BU;function BU(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 a_=de((oce,n_)=>{n_.exports=UU;function UU(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 o_=de((lce,i_)=>{i_.exports=HU;function HU(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 s_=de((sce,l_)=>{l_.exports=VU;function VU(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,b=a*l,y=a*u,w=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+w,e[7]=0,e[8]=p+T,e[9]=b-w,e[10]=1-s-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f_=de((uce,u_)=>{u_.exports=GU;function GU(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 h_=de((fce,c_)=>{c_.exports=YU;function YU(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 d_=de((cce,v_)=>{v_.exports=WU;function WU(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 g_=de((hce,p_)=>{p_.exports=XU;function XU(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 m_=de((vce,y_)=>{var ZU=Ep();y_.exports=JU;function JU(e,r,t,n){var a,o,i,l,u,s,f,h,p,b,y=r[0],w=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],d=t[2];return Math.abs(y-x)<1e-6&&Math.abs(w-M)<1e-6&&Math.abs(T-d)<1e-6?ZU(e):(f=y-x,h=w-M,p=T-d,b=1/Math.sqrt(f*f+h*h+p*p),f*=b,h*=b,p*=b,a=k*p-S*h,o=S*f-m*p,i=m*h-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=h*i-p*o,u=p*a-f*i,s=f*o-h*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(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*w+i*T),e[13]=-(l*y+u*w+s*T),e[14]=-(f*y+h*w+p*T),e[15]=1,e)}});var b_=de((dce,x_)=>{x_.exports=KU;function KU(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 Lp=de((pce,__)=>{__.exports={create:x4(),clone:_4(),copy:M4(),identity:Ep(),transpose:k4(),invert:C4(),adjoint:L4(),determinant:R4(),multiply:I4(),translate:N4(),scale:q4(),rotate:B4(),rotateX:H4(),rotateY:G4(),rotateZ:W4(),fromRotation:Z4(),fromRotationTranslation:K4(),fromScaling:$4(),fromTranslation:e_(),fromXRotation:t_(),fromYRotation:a_(),fromZRotation:o_(),fromQuat:s_(),frustum:f_(),perspective:h_(),perspectiveFromFieldOfView:d_(),ortho:g_(),lookAt:m_(),str:b_()}});var X0=de(Ut=>{"use strict";var QU=Lp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var $U=it(),w_=Il(),jU=X0(),eH=Lp();function rH(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 tH(e){var r=$U.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function M_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function nH(e,r){T_("global",e,r)}function T_(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):w_.warn("addStyleRule failed"):w_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function aH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&M_(t)}function iH(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 oH(e){var r=k_(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=A_(n);if(a){var o=jU.convertCssMatrix(a);t=eH.multiply(t,t,o)}}),t}function A_(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 k_(e){for(var r=[];lH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function lH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function sH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}S_.exports={getGraphDiv:rH,isPlotDiv:tH,removeElement:M_,addStyleRule:nH,addRelatedStyleRule:T_,deleteRelatedStyleRule:aH,setStyleOnHover:iH,getFullTransformMatrix:oH,getElementTransformMatrix:A_,getElementAndAncestors:k_,equalDomRects:sH}});var bf=de((mce,C_)=>{"use strict";C_.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 qn=de((xce,F_)=>{"use strict";var L_=Tt().extendFlat,uH=Eo(),D_={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"]},fH=D_.flags.slice().concat(["fullReplot"]),cH=R_.flags.slice().concat("layoutReplot");F_.exports={traces:D_,layout:R_,traceFlags:function(){return E_(fH)},layoutFlags:function(){return E_(cH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"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 Rp=de((_ce,N_)=>{"use strict";N_.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=de(Hs=>{"use strict";var{DATE_FORMAT_LINK:hH,FORMAT_LINK:vH}=Rp(),dH=["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 pH({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}".`,vH,"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}".`,hH,"for details on the date formatting syntax.",dH].join(" ")}Hs.templateFormatStringDescription=pH;Hs.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Hs.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Hs.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Hs.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var K0=de((Tce,H_)=>{"use strict";function Po(e,r){return r?r.d2l(e):e}function z_(e,r){return r?r.l2d(e):e}function gH(e){return e.x0}function yH(e){return e.x1}function mH(e){return e.y0}function xH(e){return e.y1}function q_(e){return e.x0shift||0}function O_(e){return e.x1shift||0}function B_(e){return e.y0shift||0}function U_(e){return e.y1shift||0}function Z0(e,r){return Po(e.x1,r)+O_(e)-Po(e.x0,r)-q_(e)}function J0(e,r,t){return Po(e.y1,t)+U_(e)-Po(e.y0,t)-B_(e)}function bH(e,r){return Math.abs(Z0(e,r))}function _H(e,r,t){return Math.abs(J0(e,r,t))}function wH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Z0(e,r),2)+Math.pow(J0(e,r,t),2))}function MH(e,r){return z_((Po(e.x1,r)+O_(e)+Po(e.x0,r)+q_(e))/2,r)}function TH(e,r,t){return z_((Po(e.y1,t)+U_(e)+Po(e.y0,t)+B_(e))/2,t)}function AH(e,r,t){return e.type!=="line"?void 0:J0(e,r,t)/Z0(e,r)}var kH=["x0","x1","y0","y1","dy","height","ycenter"],SH=["x0","x1","y0","y1","dx","width","xcenter"];H_.exports={x0:gH,x1:yH,y0:mH,y1:xH,slope:AH,dx:Z0,dy:J0,width:bH,height:_H,length:wH,xcenter:MH,ycenter:TH,simpleXVariables:kH,simpleYVariables:SH}});var Y_=de((Ace,G_)=>{"use strict";var CH=qn().overrideAll,Fl=Sn(),V_=kn(),EH=Ro().dash,Io=Tt().extendFlat,{shapeTexttemplateAttrs:LH,templatefallbackAttrs:DH}=ja(),RH=K0();G_.exports=CH({newshape:{visible:Io({},Fl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Io({},Fl.legend,{}),legendgroup:Io({},Fl.legendgroup,{}),legendgrouptitle:{text:Io({},Fl.legendgrouptitle.text,{}),font:V_({})},legendrank:Io({},Fl.legendrank,{}),legendwidth:Io({},Fl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Io({},EH,{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:Io({},Fl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:LH({newshape:!0},{keys:Object.keys(RH)}),texttemplatefallback:DH({editType:"arraydraw"}),font:V_({}),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 X_=de((kce,W_)=>{"use strict";var PH=Ro().dash,IH=Tt().extendFlat;W_.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:IH({},PH,{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 Q0=de((Sce,Z_)=>{"use strict";Z_.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 Vs=de((Cce,$_)=>{"use strict";var Pp=kn(),FH=bf(),$0=Si(),J_=Y_(),K_=X_(),NH=Q0(),Q_=Tt().extendFlat,j0=Pp({editType:"calc"});j0.family.dflt='"Open Sans", verdana, arial, sans-serif';j0.size.dflt=12;j0.color.dflt=$0.defaultLine;$_.exports={font:j0,title:{text:{valType:"string",editType:"layoutstyle"},font:Pp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Pp({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:Q_(NH({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:$0.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:$0.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:$0.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:J_.newshape,activeshape:J_.activeshape,newselection:K_.newselection,activeselection:K_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Q_({},FH.transition,{editType:"none"})}});var j_=de(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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 Er=de(Zr=>{"use strict";var Gs=Il(),e6=W0(),r6=Cp(),zH=Eo(),qH=xf().addStyleRule,t6=Tt(),OH=Sn(),BH=Vs(),UH=t6.extendFlat,Ip=t6.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 XH=Ns().timeFormat,v6=nt(),Fp=Il(),No=qs().mod,Xs=nn(),Ca=Xs.BADNUM,aa=Xs.ONEDAY,_f=Xs.ONEHOUR,Fo=Xs.ONEMIN,Ws=Xs.ONESEC,wf=Xs.EPOCHJD,eo=Er(),l6=Ns().utcFormat,ZH=/^\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,s6=new Date().getFullYear()-70;function ro(e){return e&&eo.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=KH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=aa*(r-1),Ht.ms2DateTime(n,0,e)};function KH(e,r){return ro(e)?r?eo.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:eo.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return ro(e)?eo.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 rh,th;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Fo,n=(e.getUTCMinutes()-e.getMinutes())*Fo+(e.getUTCSeconds()-e.getSeconds())*Ws+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fo;t=t-a/2+No(n-t+a/2,a)}return e=Number(e)-t,e>=rh&&e<=th?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=ro(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:ZH);if(!u)return Ca;var s=u[1],f=u[3]||"1",h=Number(u[5]||1),p=Number(u[7]||0),b=Number(u[9]||0),y=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var T=eo.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=T.newDate(s,T.toMonthIndex(s,f,m),h)}else w=T.newDate(s,Number(f),h)}catch(S){return Ca}return w?(w.toJD()-wf)*aa+p*_f+b*Fo+y*Ws:Ca}s.length===2?s=(Number(s)+2e3-s6)%100+s6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,h,p,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==h?Ca:k.getTime()+y*Ws};rh=Ht.MIN_MS=Ht.dateTime2ms("-9999");th=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Ys(e,r){return String(e+Math.pow(10,r)).slice(1)}var eh=90*aa,u6=3*_f,f6=5*Fo;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=rh&&e<=th))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(ro(t)){var h=Math.floor(a/aa)+wf,p=Math.floor(No(e,aa));try{o=eo.getComponentMethod("calendars","getCal")(t).fromJD(h).formatDate("yyyy-mm-dd")}catch(b){o=l6("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=rh+aa&&e<=th-aa))return Ca;var r=Math.floor(No(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=XH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return d6(n,a,o,i,l)};function d6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Ys(r,2)+":"+Ys(t,2),(n||a)&&(e+=":"+Ys(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Ys(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(ro(t))return Fp.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 Fp.error("unrecognized date",e),r;return e};var QH=/%\d?f/g,$H=/%h/g,jH={1:"1",2:"1",3:"2",4:"2"};function c6(e,r,t,n){e=e.replace(QH,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($H,function(){return jH[t("%q")(a)]}),ro(n))try{e=eo.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var eV=[59,59.9,59.99,59.999,59.9999];function rV(e,r){var t=No(e+.05,aa),n=Ys(Math.floor(t/_f),2)+":"+Ys(No(Math.floor(t/Fo),60),2);if(r!=="M"){v6(r)||(r=0);var a=Math.min(No(e/Ws,60),eV[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=ro(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` +`)};function ie(be){return be.map(fe).join(C)}function fe(be){return B.test(be)?'"'+be.replace(/\"/g,'""')+'"':be}return W},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var o0,l0,s0,u0,j5=this[I(this,"requestAnimationFrame")]||function(C){setTimeout(C,17)};e.timer=function(){f0.apply(this,arguments)};function f0(C,z,B){var G=arguments.length;G<2&&(z=0),G<3&&(B=Date.now());var W=B+z,Z={c:C,t:W,n:null};return l0?l0.n=Z:o0=Z,l0=Z,s0||(u0=clearTimeout(u0),s0=1,j5(Od)),Z}function Od(){var C=ex(),z=rx()-C;z>24?(isFinite(z)&&(clearTimeout(u0),u0=setTimeout(Od,z)),s0=0):(s0=1,j5(Od))}e.timer.flush=function(){ex(),rx()};function ex(){for(var C=Date.now(),z=o0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function rx(){for(var C,z=o0,B=1/0;z;)z.c?(z.t=0;--ie)Oe.push(W[be[Pe[ie]][2]]);for(ie=+Je;ie1&&er(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function qq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,c0),C};var c0=e.geom.polygon.prototype=[];c0.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CRe)ie=ie.L;else if(se=z-Hq(ie,B),se>Re){if(!ie.R){G=ie;break}ie=ie.R}else{Z>-Re?(G=ie.P,W=ie):se>-Re?(G=ie,W=ie.N):G=W=ie;break}var fe=ox(C);if(Ds.insert(G,fe),!(!G&&!W)){if(G===W){Ps(G),W=ox(G.site),Ds.insert(fe,W),fe.edge=W.edge=nf(G.site,fe.site),Rs(G),Rs(W);return}if(!W){fe.edge=nf(G.site,fe.site);return}Ps(G),Ps(W);var be=G.site,_e=be.x,Pe=be.y,Ie=C.x-_e,Je=C.y-Pe,rr=W.site,Oe=rr.x-_e,Ge=rr.y-Pe,We=2*(Ie*Ge-Je*Oe),je=Ie*Ie+Je*Je,tr=Oe*Oe+Ge*Ge,Ze={x:(Ge*je-Je*tr)/We+_e,y:(Ie*tr-Oe*je)/We+Pe};h0(W.edge,be,rr,Ze),fe.edge=nf(be,C,null,Ze),W.edge=nf(C,rr,null,Ze),Rs(G),Rs(W)}}function lx(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var se=C.P;if(!se)return-1/0;B=se.site;var ie=B.x,fe=B.y,be=fe-z;if(!be)return ie;var _e=ie-G,Pe=1/Z-1/be,Ie=_e/be;return Pe?(-Ie+Math.sqrt(Ie*Ie-2*Pe*(_e*_e/(-2*be)-fe+be/2+W-Z/2)))/Pe+G:(G+ie)/2}function Hq(C,z){var B=C.N;if(B)return lx(B,z);var G=C.site;return G.y===z?G.x:1/0}function sx(C){this.site=C,this.edges=[]}sx.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ux),C.length};function Vq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,se,ie,fe,be=Ml,_e=be.length,Pe,Ie,Je,rr,Oe,Ge;_e--;)if(Pe=be[_e],!(!Pe||!Pe.prepare()))for(Je=Pe.edges,rr=Je.length,Ie=0;IeRe||m(fe-se)>Re)&&(Je.splice(Ie,0,new v0(Zq(Pe.site,Ge,m(ie-z)Re?{x:z,y:m(Z-z)Re?{x:m(se-W)Re?{x:B,y:m(Z-B)Re?{x:m(se-G)=-Qe)){var Ie=fe*fe+be*be,Je=_e*_e+Ge*Ge,rr=(Ge*Ie-be*Je)/Pe,Oe=(fe*Je-_e*Ie)/Pe,Ge=Oe+ie,We=ix.pop()||new Gq;We.arc=C,We.site=W,We.x=rr+se,We.y=Ge+Math.sqrt(rr*rr+Oe*Oe),We.cy=Ge,C.circle=We;for(var je=null,tr=tf._;tr;)if(We.y0)){if(Oe/=Je,Je<0){if(Oe0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}if(Oe=B-ie,!(!Je&&Oe<0)){if(Oe/=Je,Je<0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}else if(Je>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Ie)return;Oe>Pe&&(Pe=Oe)}else if(rr>0){if(Oe0&&(W.a={x:ie+Pe*Je,y:fe+Pe*rr}),Ie<1&&(W.b={x:ie+Ie*Je,y:fe+Ie*rr}),W}}}}}}function Wq(C){for(var z=Ls,B=Yq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Xq(W,C)||!B(W)||m(W.a.x-W.b.x)=Z)return;if(_e>Ie){if(!G)G={x:rr,y:se};else if(G.y>=ie)return;B={x:rr,y:ie}}else{if(!G)G={x:rr,y:ie};else if(G.y1)if(_e>Ie){if(!G)G={x:(se-We)/Ge,y:se};else if(G.y>=ie)return;B={x:(ie-We)/Ge,y:ie}}else{if(!G)G={x:(ie-We)/Ge,y:ie};else if(G.y=Z)return;B={x:Z,y:Ge*Z+We}}else{if(!G)G={x:Z,y:Ge*Z+We};else if(G.x=_e&&We.x<=Ie&&We.y>=Pe&&We.y<=Je?[[_e,Je],[Ie,Je],[Ie,Pe],[_e,Pe]]:[];je.point=fe[Oe]}),be}function ie(fe){return fe.map(function(be,_e){return{x:Math.round(G(be,_e)/Re)*Re,y:Math.round(W(be,_e)/Re)*Re,i:_e}})}return se.links=function(fe){return Yd(ie(fe)).edges.filter(function(be){return be.l&&be.r}).map(function(be){return{source:fe[be.l.i],target:fe[be.r.i]}})},se.triangles=function(fe){var be=[];return Yd(ie(fe)).cells.forEach(function(_e,Pe){for(var Ie=_e.site,Je=_e.edges.sort(ux),rr=-1,Oe=Je.length,Ge,We,je=Je[Oe-1].edge,tr=je.l===Ie?je.r:je.l;++rrtr&&(tr=_e.x),_e.y>Ze&&(Ze=_e.y),Je.push(_e.x),rr.push(_e.y);else for(Oe=0;Oetr&&(tr=lr),pr>Ze&&(Ze=pr),Je.push(lr),rr.push(pr)}var mr=tr-We,gr=Ze-je;mr>gr?Ze=je+mr:tr=We+gr;function _r(Tr,Ir,st,Bt,vt,vr,Br,Hr){if(!(isNaN(st)||isNaN(Bt)))if(Tr.leaf){var ut=Tr.x,Pt=Tr.y;if(ut!=null)if(m(ut-st)+m(Pt-Bt)<.01)wr(Tr,Ir,st,Bt,vt,vr,Br,Hr);else{var $t=Tr.point;Tr.x=Tr.y=Tr.point=null,wr(Tr,$t,ut,Pt,vt,vr,Br,Hr),wr(Tr,Ir,st,Bt,vt,vr,Br,Hr)}else Tr.x=st,Tr.y=Bt,Tr.point=Ir}else wr(Tr,Ir,st,Bt,vt,vr,Br,Hr)}function wr(Tr,Ir,st,Bt,vt,vr,Br,Hr){var ut=(vt+Br)*.5,Pt=(vr+Hr)*.5,$t=st>=ut,xn=Bt>=Pt,Nn=xn<<1|$t;Tr.leaf=!1,Tr=Tr.nodes[Nn]||(Tr.nodes[Nn]=hx()),$t?vt=ut:Br=ut,xn?vr=Pt:Hr=Pt,_r(Tr,Ir,st,Bt,vt,vr,Br,Hr)}var Or=hx();if(Or.add=function(Tr){_r(Or,Tr,+Pe(Tr,++Oe),+Ie(Tr,Oe),We,je,tr,Ze)},Or.visit=function(Tr){lf(Tr,Or,We,je,tr,Ze)},Or.find=function(Tr){return jq(Or,Tr[0],Tr[1],We,je,tr,Ze)},Oe=-1,z==null){for(;++OeZ||Ie>se||Je=lr,gr=B>=pr,_r=gr<<1|mr,wr=_r+4;_rB&&(Z=z.slice(B,Z),ie[se]?ie[se]+=Z:ie[++se]=Z),(G=G[0])===(W=W[0])?ie[se]?ie[se]+=W:ie[++se]=W:(ie[++se]=null,fe.push({i:se,x:ji(G,W)})),B=Zd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?mn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?Wd:dx:z instanceof pt?Wd:Array.isArray(z)?g0:B==="object"&&isNaN(z)?vx:ji)(C,z)}],e.interpolateArray=g0;function g0(C,z){var B=[],G=[],W=C.length,Z=z.length,se=Math.min(C.length,z.length),ie;for(ie=0;ie=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=eO.get(B)||px,G=rO.get(G)||N,tO(G(B.apply(null,r.call(arguments,1))))};function tO(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function gx(C){return function(z){return 1-C(1-z)}}function yx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function nO(C){return C*C}function aO(C){return C*C*C}function iO(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function oO(C){return function(z){return Math.pow(z,C)}}function lO(C){return 1-Math.cos(C*J)}function sO(C){return Math.pow(2,10*(C-1))}function uO(C){return 1-Math.sqrt(1-C*C)}function fO(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function cO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function hO(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=vO;function vO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,se=z.c-G,ie=z.l-W;return isNaN(se)&&(se=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateHsl=dO;function dO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,se=z.s-G,ie=z.l-W;return isNaN(se)&&(se=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return vn(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateLab=pO;function pO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,se=z.a-G,ie=z.b-W;return function(fe){return Ma(B+Z*fe,G+se*fe,W+ie*fe)+""}}e.interpolateRound=mx;function mx(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new xx(G?G.matrix:yO)})(C)};function xx(C){var z=[C.a,C.b],B=[C.c,C.d],G=_x(z),W=bx(z,B),Z=_x(gO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Is(B)+"rotate(",null,")")-2,x:ji(C,z)})):z&&B.push(Is(B)+"rotate("+z+")")}function bO(C,z,B,G){C!==z?G.push({i:B.push(Is(B)+"skewX(",null,")")-2,x:ji(C,z)}):z&&B.push(Is(B)+"skewX("+z+")")}function _O(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Is(B)+"scale(",null,",",null,")");G.push({i:W-4,x:ji(C[0],z[0])},{i:W-2,x:ji(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Is(B)+"scale("+z+")")}function wx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),mO(C.translate,z.translate,B,G),xO(C.rotate,z.rotate,B,G),bO(C.skew,z.skew,B,G),_O(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,se=G.length,ie;++Z0?Z=Ze:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Ze>0&&(z.start({type:"start",alpha:Z=Ze}),B=f0(C.tick)),C):Z},C.start=function(){var Ze,lr=Je.length,pr=rr.length,mr=G[0],gr=G[1],_r,wr;for(Ze=0;Ze=0;)Z.push(_e=be[fe]),_e.parent=ie,_e.depth=ie.depth+1;B&&(ie.value=0),ie.children=be}else B&&(ie.value=+B.call(G,ie,ie.depth)||0),delete ie.children;return Ai(W,function(Pe){var Ie,Je;C&&(Ie=Pe.children)&&Ie.sort(C),B&&(Je=Pe.parent)&&(Je.value+=Pe.value)}),se}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?(B=W,G):B},G.revalue=function(W){return B&&(uf(W,function(Z){Z.children&&(Z.value=0)}),Ai(W,function(Z){var se;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(se=Z.parent)&&(se.value+=Z.value)})),W},G};function sf(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=NO,C}function uf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function Ai(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(se=C.children)&&(Z=se.length))for(var W=-1,Z,se;++WW&&(W=ie),G.push(ie)}for(se=0;seG&&(B=z,G=W);return B}function VO(C){return C.reduce(GO,0)}function GO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=WO,G=YO;function W(Z,Ie){for(var ie=[],fe=Z.map(z,this),be=B.call(this,fe,Ie),_e=G.call(this,be,fe,Ie),Pe,Ie=-1,Je=fe.length,rr=_e.length-1,Oe=C?1:1/Je,Ge;++Ie0)for(Ie=-1;++Ie=be[0]&&Ge<=be[1]&&(Pe=ie[e.bisect(_e,Ge,1,rr)-1],Pe.y+=Oe,Pe.push(Z[Ie]));return ie}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Wr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(se){return kx(se,Z)}:Wr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function YO(C,z){return kx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function kx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function WO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(XO),z=0,B=[1,1],G;function W(Z,se){var ie=C.call(this,Z,se),fe=ie[0],be=B[0],_e=B[1],Pe=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,Ai(fe,function(Je){Je.r=+Pe(Je.value)}),Ai(fe,Ex),z){var Ie=z*(G?1:Math.max(2*fe.r/be,2*fe.r/_e))/2;Ai(fe,function(Je){Je.r+=Ie}),Ai(fe,Ex),Ai(fe,function(Je){Je.r-=Ie})}return Lx(fe,be/2,_e/2,G?1:1/Math.max(2*fe.r/be,2*fe.r/_e)),ie}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},sf(W,C)};function XO(C,z){return C.value-z.value}function Qd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function Sx(C,z){C._pack_next=z,z._pack_prev=C}function Cx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function Ex(C){if(!(z=C.children)||!(Ie=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,se,ie,fe,be,_e,Pe,Ie;function Je(Ze){B=Math.min(Ze.x-Ze.r,B),G=Math.max(Ze.x+Ze.r,G),W=Math.min(Ze.y-Ze.r,W),Z=Math.max(Ze.y+Ze.r,Z)}if(z.forEach(ZO),se=z[0],se.x=-se.r,se.y=0,Je(se),Ie>1&&(ie=z[1],ie.x=ie.r,ie.y=0,Je(ie),Ie>2))for(fe=z[2],Dx(se,ie,fe),Je(fe),Qd(se,fe),se._pack_prev=fe,Qd(fe,ie),ie=se._pack_next,be=3;beGe.x&&(Ge=lr),lr.depth>We.depth&&(We=lr)});var je=z(Oe,Ge)/2-Oe.x,tr=B[0]/(Ge.x+z(Ge,Oe)/2+je),Ze=B[1]/(We.depth||1);uf(Je,function(lr){lr.x=(lr.x+je)*tr,lr.y=lr.depth*Ze})}return Ie}function Z(_e){for(var Pe={A:null,children:[_e]},Ie=[Pe],Je;(Je=Ie.pop())!=null;)for(var rr=Je.children,Oe,Ge=0,We=rr.length;Ge0&&(KO($O(Oe,_e,Ie),_e,lr),We+=lr,je+=lr),tr+=Oe.m,We+=Je.m,Ze+=Ge.m,je+=rr.m;Oe&&!jd(rr)&&(rr.t=Oe,rr.m+=tr-je),Je&&!$d(Ge)&&(Ge.t=Je,Ge.m+=We-Ze,Ie=_e)}return Ie}function be(_e){_e.x*=B[0],_e.y=_e.depth*B[1]}return W.separation=function(_e){return arguments.length?(z=_e,W):z},W.size=function(_e){return arguments.length?(G=(B=_e)==null?be:null,W):G?null:B},W.nodeSize=function(_e){return arguments.length?(G=(B=_e)==null?null:be,W):G?B:null},sf(W,C)};function Rx(C,z){return C.parent==z.parent?1:2}function $d(C){var z=C.children;return z.length?z[0]:C.t}function jd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function KO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function QO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function $O(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Rx,B=[1,1],G=!1;function W(Z,se){var ie=C.call(this,Z,se),fe=ie[0],be,_e=0;Ai(fe,function(Oe){var Ge=Oe.children;Ge&&Ge.length?(Oe.x=eB(Ge),Oe.y=jO(Ge)):(Oe.x=be?_e+=z(Oe,be):0,Oe.y=0,be=Oe)});var Pe=Px(fe),Ie=Ix(fe),Je=Pe.x-z(Pe,Ie)/2,rr=Ie.x+z(Ie,Pe)/2;return Ai(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-Je)/(rr-Je)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),ie}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},sf(W,C)};function jO(C){return 1+e.max(C,function(z){return z.y})}function eB(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Px(C){var z=C.children;return z&&z.length?Px(z[0]):C}function Ix(C){var z=C.children,B;return z&&(B=z.length)?Ix(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=ep,Z=!1,se,ie="squarify",fe=.5*(1+Math.sqrt(5));function be(Oe,Ge){for(var We=-1,je=Oe.length,tr,Ze;++We0;)je.push(Ze=tr[gr-1]),je.area+=Ze.area,ie!=="squarify"||(pr=Ie(je,mr))<=lr?(tr.pop(),lr=pr):(je.area-=je.pop().area,Je(je,mr,We,!1),mr=Math.min(We.dx,We.dy),je.length=je.area=0,lr=1/0);je.length&&(Je(je,mr,We,!0),je.length=je.area=0),Ge.forEach(_e)}}function Pe(Oe){var Ge=Oe.children;if(Ge&&Ge.length){var We=W(Oe),je=Ge.slice(),tr,Ze=[];for(be(je,We.dx*We.dy/Oe.value),Ze.area=0;tr=je.pop();)Ze.push(tr),Ze.area+=tr.area,tr.z!=null&&(Je(Ze,tr.z?We.dx:We.dy,We,!je.length),Ze.length=Ze.area=0);Ge.forEach(Pe)}}function Ie(Oe,Ge){for(var We=Oe.area,je,tr=0,Ze=1/0,lr=-1,pr=Oe.length;++lrtr&&(tr=je));return We*=We,Ge*=Ge,We?Math.max(Ge*tr*fe/We,We/(Ge*Ze*fe)):1/0}function Je(Oe,Ge,We,je){var tr=-1,Ze=Oe.length,lr=We.x,pr=We.y,mr=Ge?z(Oe.area/Ge):0,gr;if(Ge==We.dx){for((je||mr>We.dy)&&(mr=We.dy);++trWe.dx)&&(mr=We.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},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,B=0;B2?nB:rB,be=G?MO:wO;return W=fe(C,z,be,B),Z=fe(z,C,be,Tl),ie}function ie(fe){return W(fe)}return ie.invert=function(fe){return Z(fe)},ie.domain=function(fe){return arguments.length?(C=fe.map(Number),se()):C},ie.range=function(fe){return arguments.length?(z=fe,se()):z},ie.rangeRound=function(fe){return ie.range(fe).interpolate(mx)},ie.clamp=function(fe){return arguments.length?(G=fe,se()):G},ie.interpolate=function(fe){return arguments.length?(B=fe,se()):B},ie.ticks=function(fe){return np(C,fe)},ie.tickFormat=function(fe,be){return d3_scale_linearTickFormat(C,fe,be)},ie.nice=function(fe){return Ox(C,fe),se()},ie.copy=function(){return zx(C,z,B,G)},se()}function qx(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Ox(C,z){return rp(C,Nx(tp(C,z)[2])),rp(C,Nx(tp(C,z)[2])),C}function tp(C,z){z==null&&(z=10);var B=y0(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function np(C,z){return e.range.apply(e,tp(C,z))}var aB={s:1,g:1,p:1,r:1,e:1};function Bx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function lfe(C,z){var B=Bx(z[2]);return C in aB?Math.abs(B-Bx(Math.max(m(z[0]),m(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Ux(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Ux(C,z,B,G){function W(ie){return(B?Math.log(ie<0?0:ie):-Math.log(ie>0?0:-ie))/Math.log(z)}function Z(ie){return B?Math.pow(z,ie):-Math.pow(z,-ie)}function se(ie){return C(W(ie))}return se.invert=function(ie){return Z(C.invert(ie))},se.domain=function(ie){return arguments.length?(B=ie[0]>=0,C.domain((G=ie.map(Number)).map(W)),se):G},se.base=function(ie){return arguments.length?(z=+ie,C.domain(G.map(W)),se):z},se.nice=function(){var ie=rp(G.map(W),B?Math:iB);return C.domain(ie),G=ie.map(Z),se},se.ticks=function(){var ie=y0(G),fe=[],be=ie[0],_e=ie[1],Pe=Math.floor(W(be)),Ie=Math.ceil(W(_e)),Je=z%1?2:z;if(isFinite(Ie-Pe)){if(B){for(;Pe0;rr--)fe.push(Z(Pe)*rr);for(Pe=0;fe[Pe]_e;Ie--);fe=fe.slice(Pe,Ie)}return fe},se.copy=function(){return Ux(C.copy(),z,B,G)},qx(se,C)}var iB={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Hx(e.scale.linear(),1,[0,1])};function Hx(C,z,B){var G=x0(z),W=x0(1/z);function Z(se){return C(G(se))}return Z.invert=function(se){return W(C.invert(se))},Z.domain=function(se){return arguments.length?(C.domain((B=se.map(Number)).map(G)),Z):B},Z.ticks=function(se){return np(B,se)},Z.tickFormat=function(se,ie){return d3_scale_linearTickFormat(B,se,ie)},Z.nice=function(se){return Z.domain(Ox(B,se))},Z.exponent=function(se){return arguments.length?(G=x0(z=se),W=x0(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Hx(C.copy(),z,B)},qx(Z,C)}function x0(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 Vx([],{t:"range",a:[[]]})};function Vx(C,z){var B,G,W;function Z(ie){return G[((B.get(ie)||(z.t==="range"?B.set(ie,C.push(ie)):NaN))-1)%G.length]}function se(ie,fe){return e.range(C.length).map(function(be){return ie+fe*be})}return Z.domain=function(ie){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,be=ie.length,_e;++fe0?B[Z-1]:C[0],ZIe?0:1;if(_e=ue)return fe(_e,rr)+(be?fe(be,1-rr):"")+"Z";var Oe,Ge,We,je,tr=0,Ze=0,lr,pr,mr,gr,_r,wr,Or,Tr,Ir=[];if((je=(+se.apply(this,arguments)||0)/2)&&(We=G===b0?Math.sqrt(be*be+_e*_e):+G.apply(this,arguments),rr||(Ze*=-1),_e&&(Ze=fr(We/_e*Math.sin(je))),be&&(tr=fr(We/be*Math.sin(je)))),_e){lr=_e*Math.cos(Pe+Ze),pr=_e*Math.sin(Pe+Ze),mr=_e*Math.cos(Ie-Ze),gr=_e*Math.sin(Ie-Ze);var st=Math.abs(Ie-Pe-2*Ze)<=Ke?0:1;if(Ze&&_0(lr,pr,mr,gr)===rr^st){var Bt=(Pe+Ie)/2;lr=_e*Math.cos(Bt),pr=_e*Math.sin(Bt),mr=gr=null}}else lr=pr=0;if(be){_r=be*Math.cos(Ie-tr),wr=be*Math.sin(Ie-tr),Or=be*Math.cos(Pe+tr),Tr=be*Math.sin(Pe+tr);var vt=Math.abs(Pe-Ie+2*tr)<=Ke?0:1;if(tr&&_0(_r,wr,Or,Tr)===1-rr^vt){var vr=(Pe+Ie)/2;_r=be*Math.cos(vr),wr=be*Math.sin(vr),Or=Tr=null}}else _r=wr=0;if(Je>Re&&(Oe=Math.min(Math.abs(_e-be)/2,+B.apply(this,arguments)))>.001){Ge=be<_e^rr?0:1;var Br=Oe,Hr=Oe;if(Je0?0:1}function w0(C,z,B,G,W){var Z=C[0]-z[0],se=C[1]-z[1],ie=(W?G:-G)/Math.sqrt(Z*Z+se*se),fe=ie*se,be=-ie*Z,_e=C[0]+fe,Pe=C[1]+be,Ie=z[0]+fe,Je=z[1]+be,rr=(_e+Ie)/2,Oe=(Pe+Je)/2,Ge=Ie-_e,We=Je-Pe,je=Ge*Ge+We*We,tr=B-G,Ze=_e*Je-Ie*Pe,lr=(We<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*je-Ze*Ze)),pr=(Ze*We-Ge*lr)/je,mr=(-Ze*Ge-We*lr)/je,gr=(Ze*We+Ge*lr)/je,_r=(-Ze*Ge+We*lr)/je,wr=pr-rr,Or=mr-Oe,Tr=gr-rr,Ir=_r-Oe;return wr*wr+Or*Or>Tr*Tr+Ir*Ir&&(pr=gr,mr=_r),[[pr-fe,mr-be],[pr*B/tr,mr*B/tr]]}function Kx(){return!0}function Qx(C){var z=Es,B=rf,G=Kx,W=Ja,Z=W.key,se=.7;function ie(fe){var be=[],_e=[],Pe=-1,Ie=fe.length,Je,rr=Wr(z),Oe=Wr(B);function Ge(){be.push("M",W(C(_e),se))}for(;++Pe1?C.join("L"):C+"Z"}function $x(C){return C.join("L")+"Z"}function dB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function ip(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){ie=z[1],Z=C[fe],fe++,G+="C"+(W[0]+se[0])+","+(W[1]+se[1])+","+(Z[0]-ie[0])+","+(Z[1]-ie[1])+","+Z[0]+","+Z[1];for(var be=2;be9&&(Z=B*3/Math.sqrt(Z),se[ie]=Z*G,se[ie+1]=Z*W));for(ie=-1;++ie<=fe;)Z=(C[Math.min(fe,ie+1)][0]-C[Math.max(0,ie-1)][0])/(6*(1+se[ie]*se[ie])),z.push([Z||0,se[ie]*Z||0]);return z}function MB(C){return C.length<3?Ja(C):C[0]+M0(C,wB(C))}e.svg.line.radial=function(){var C=Qx(tb);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function tb(C){for(var z,B=-1,G=C.length,W,Z;++BKe)+",1 "+Pe}function be(_e,Pe,Ie,Je){return"Q 0,0 "+Je}return Z.radius=function(_e){return arguments.length?(B=Wr(_e),Z):B},Z.source=function(_e){return arguments.length?(C=Wr(_e),Z):C},Z.target=function(_e){return arguments.length?(z=Wr(_e),Z):z},Z.startAngle=function(_e){return arguments.length?(G=Wr(_e),Z):G},Z.endAngle=function(_e){return arguments.length?(W=Wr(_e),Z):W},Z};function TB(C){return C.radius}e.svg.diagonal=function(){var C=ab,z=ib,B=ob;function G(W,Z){var se=C.call(this,W,Z),ie=z.call(this,W,Z),fe=(se.y+ie.y)/2,be=[se,{x:se.x,y:fe},{x:ie.x,y:fe},ie];return be=be.map(B),"M"+be[0]+"C"+be[1]+" "+be[2]+" "+be[3]}return G.source=function(W){return arguments.length?(C=Wr(W),G):C},G.target=function(W){return arguments.length?(z=Wr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function ob(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=ob,B=C.projection;return C.projection=function(G){return arguments.length?B(AB(z=G)):z},C};function AB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-J;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=SB,z=kB;function B(G,W){return(sb.get(C.call(this,G,W))||lb)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Wr(G),B):C},B.size=function(G){return arguments.length?(z=Wr(G),B):z},B};function kB(){return 64}function SB(){return"circle"}function lb(C){var z=Math.sqrt(C/Ke);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var sb=e.map({circle:lb,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*ub)),B=z*ub;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",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/T0),B=z*T0/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/T0),B=z*T0/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=sb.keys();var T0=Math.sqrt(3),ub=Math.tan(30*ne);re.transition=function(C){for(var z=Al||++cb,B=cp(C),G=[],W,Z,se=k0||{time:Date.now(),ease:iO,delay:0,duration:250},ie=-1,fe=this.length;++ie0;)Pe[--je].call(C,We);if(Ge>=1)return se.event&&se.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}se||(ie=W.time,fe=f0(Ie,0,ie),se=Z[G]={tween:new x,time:ie,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=hb,B=6,G=6,W=3,Z=[10],se=null,ie;function fe(be){be.each(function(){var _e=e.select(this),Pe=this.__chart__||C,Ie=this.__chart__=C.copy(),Je=se==null?Ie.ticks?Ie.ticks.apply(Ie,Z):Ie.domain():se,rr=ie==null?Ie.tickFormat?Ie.tickFormat.apply(Ie,Z):N:ie,Oe=_e.selectAll(".tick").data(Je,Ie),Ge=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",Re),We=e.transition(Oe.exit()).style("opacity",Re).remove(),je=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Ze,lr=m0(Ie),pr=_e.selectAll(".domain").data([0]),mr=(pr.enter().append("path").attr("class","domain"),e.transition(pr));Ge.append("line"),Ge.append("text");var gr=Ge.select("line"),_r=je.select("line"),wr=Oe.select("text").text(rr),Or=Ge.select("text"),Tr=je.select("text"),Ir=z==="top"||z==="left"?-1:1,st,Bt,vt,vr;if(z==="bottom"||z==="top"?(Ze=LB,st="x",vt="y",Bt="x2",vr="y2",wr.attr("dy",Ir<0?"0em":".71em").style("text-anchor","middle"),mr.attr("d","M"+lr[0]+","+Ir*G+"V0H"+lr[1]+"V"+Ir*G)):(Ze=DB,st="y",vt="x",Bt="y2",vr="x2",wr.attr("dy",".32em").style("text-anchor",Ir<0?"end":"start"),mr.attr("d","M"+Ir*G+","+lr[0]+"H0V"+lr[1]+"H"+Ir*G)),gr.attr(vr,Ir*B),Or.attr(vt,Ir*tr),_r.attr(Bt,0).attr(vr,Ir*B),Tr.attr(st,0).attr(vt,Ir*tr),Ie.rangeBand){var Br=Ie,Hr=Br.rangeBand()/2;Pe=Ie=function(ut){return Br(ut)+Hr}}else Pe.rangeBand?Pe=Ie:We.call(Ze,Ie,Pe);Ge.call(Ze,Pe,Ie),je.call(Ze,Ie,Ie)})}return fe.scale=function(be){return arguments.length?(C=be,fe):C},fe.orient=function(be){return arguments.length?(z=be in EB?be+"":hb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(be){return arguments.length?(se=be,fe):se},fe.tickFormat=function(be){return arguments.length?(ie=be,fe):ie},fe.tickSize=function(be){var _e=arguments.length;return _e?(B=+be,G=+arguments[_e-1],fe):B},fe.innerTickSize=function(be){return arguments.length?(B=+be,fe):B},fe.outerTickSize=function(be){return arguments.length?(G=+be,fe):G},fe.tickPadding=function(be){return arguments.length?(W=+be,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var hb="bottom",EB={top:1,right:1,bottom:1,left:1};function LB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function DB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(_e,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,se,ie=!0,fe=!0,be=hp[0];function _e(Oe){Oe.each(function(){var Ge=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),We=Ge.selectAll(".background").data([0]);We.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ge.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var je=Ge.selectAll(".resize").data(be,N);je.exit().remove(),je.enter().append("g").attr("class",function(pr){return"resize "+pr}).style("cursor",function(pr){return RB[pr]}).append("rect").attr("x",function(pr){return/[ew]$/.test(pr)?-3:null}).attr("y",function(pr){return/^[ns]/.test(pr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),je.style("display",_e.empty()?"none":null);var tr=e.transition(Ge),Ze=e.transition(We),lr;z&&(lr=m0(z),Ze.attr("x",lr[0]).attr("width",lr[1]-lr[0]),Ie(tr)),B&&(lr=m0(B),Ze.attr("y",lr[0]).attr("height",lr[1]-lr[0]),Je(tr)),Pe(tr)})}_e.event=function(Oe){Oe.each(function(){var Ge=C.of(this,arguments),We={x:G,y:W,i:Z,j:se},je=this.__chart__||We;this.__chart__=We,Al?e.select(this).transition().each("start.brush",function(){Z=je.i,se=je.j,G=je.x,W=je.y,Ge({type:"brushstart"})}).tween("brush:brush",function(){var tr=g0(G,We.x),Ze=g0(W,We.y);return Z=se=null,function(lr){G=We.x=tr(lr),W=We.y=Ze(lr),Ge({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=We.i,se=We.j,Ge({type:"brush",mode:"resize"}),Ge({type:"brushend"})}):(Ge({type:"brushstart"}),Ge({type:"brush",mode:"resize"}),Ge({type:"brushend"}))})};function Pe(Oe){Oe.selectAll(".resize").attr("transform",function(Ge){return"translate("+G[+/e$/.test(Ge)]+","+W[+/^s/.test(Ge)]+")"})}function Ie(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Je(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,Ge=e.select(e.event.target),We=C.of(Oe,arguments),je=e.select(Oe),tr=Ge.datum(),Ze=!/^(n|s)$/.test(tr)&&z,lr=!/^(e|w)$/.test(tr)&&B,pr=Ge.classed("extent"),mr=Ve(Oe),gr,_r=e.mouse(Oe),wr,Or=e.select(o(Oe)).on("keydown.brush",st).on("keyup.brush",Bt);if(e.event.changedTouches?Or.on("touchmove.brush",vt).on("touchend.brush",Br):Or.on("mousemove.brush",vt).on("mouseup.brush",Br),je.interrupt().selectAll("*").interrupt(),pr)_r[0]=G[0]-_r[0],_r[1]=W[0]-_r[1];else if(tr){var Tr=+/w$/.test(tr),Ir=+/^n/.test(tr);wr=[G[1-Tr]-_r[0],W[1-Ir]-_r[1]],_r[0]=G[Tr],_r[1]=W[Ir]}else e.event.altKey&&(gr=_r.slice());je.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ge.style("cursor")),We({type:"brushstart"}),vt();function st(){e.event.keyCode==32&&(pr||(gr=null,_r[0]-=G[1],_r[1]-=W[1],pr=2),X())}function Bt(){e.event.keyCode==32&&pr==2&&(_r[0]+=G[1],_r[1]+=W[1],pr=0,X())}function vt(){var Hr=e.mouse(Oe),ut=!1;wr&&(Hr[0]+=wr[0],Hr[1]+=wr[1]),pr||(e.event.altKey?(gr||(gr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),_r[0]=G[+(Hr[0]{(function(e,r){typeof P0=="object"&&typeof xb!="undefined"?r(P0):(e=e||self,r(e.d3=e.d3||{}))})(P0,function(e){"use strict";var r=new Date,t=new Date;function n(ge,Me,ke,me){function ye(pe){return ge(pe=arguments.length===0?new Date:new Date(+pe)),pe}return ye.floor=function(pe){return ge(pe=new Date(+pe)),pe},ye.ceil=function(pe){return ge(pe=new Date(pe-1)),Me(pe,1),ge(pe),pe},ye.round=function(pe){var he=ye(pe),xe=ye.ceil(pe);return pe-he0))return Le;do Le.push(qe=new Date(+pe)),Me(pe,xe),ge(pe);while(qe=he)for(;ge(he),!pe(he);)he.setTime(he-1)},function(he,xe){if(he>=he)if(xe<0)for(;++xe<=0;)for(;Me(he,-1),!pe(he););else for(;--xe>=0;)for(;Me(he,1),!pe(he););})},ke&&(ye.count=function(pe,he){return r.setTime(+pe),t.setTime(+he),ge(r),ge(t),Math.floor(ke(r,t))},ye.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?ye.filter(me?function(he){return me(he)%pe===0}:function(he){return ye.count(0,he)%pe===0}):ye}),ye}var a=n(function(){},function(ge,Me){ge.setTime(+ge+Me)},function(ge,Me){return Me-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(Me){Me.setTime(Math.floor(Me/ge)*ge)},function(Me,ke){Me.setTime(+Me+ke*ge)},function(Me,ke){return(ke-Me)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,h=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,Me){ge.setTime(+ge+Me*i)},function(ge,Me){return(Me-ge)/i},function(ge){return ge.getUTCSeconds()}),p=h.range,b=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getMinutes()}),y=b.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getHours()}),T=w.range,m=n(function(ge){ge.setHours(0,0,0,0)},function(ge,Me){ge.setDate(ge.getDate()+Me)},function(ge,Me){return(Me-ge-(Me.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=m.range;function S(ge){return n(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ge)%7),Me.setHours(0,0,0,0)},function(Me,ke){Me.setDate(Me.getDate()+ke*7)},function(Me,ke){return(ke-Me-(ke.getTimezoneOffset()-Me.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),d=S(2),_=S(3),g=S(4),c=S(5),A=S(6),v=x.range,D=M.range,E=d.range,R=_.range,N=g.range,F=c.range,I=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setMonth(ge.getMonth()+Me)},function(ge,Me){return Me.getMonth()-ge.getMonth()+(Me.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setFullYear(ge.getFullYear()+Me)},function(ge,Me){return Me.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ge)*ge),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,ke){Me.setFullYear(Me.getFullYear()+ke*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCDate(ge.getUTCDate()+Me)},function(ge,Me){return(Me-ge)/s},function(ge){return ge.getUTCDate()-1}),Q=q.range;function ae(ge){return n(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ge)%7),Me.setUTCHours(0,0,0,0)},function(Me,ke){Me.setUTCDate(Me.getUTCDate()+ke*7)},function(Me,ke){return(ke-Me)/f})}var K=ae(0),oe=ae(1),re=ae(2),V=ae(3),ee=ae(4),H=ae(5),te=ae(6),le=K.range,ve=oe.range,Ae=re.range,we=V.range,ce=ee.range,Se=H.range,Ce=te.range,Fe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCMonth(ge.getUTCMonth()+Me)},function(ge,Me){return Me.getUTCMonth()-ge.getUTCMonth()+(Me.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Ee=Fe.range,ze=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCFullYear(ge.getUTCFullYear()+Me)},function(ge,Me){return Me.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});ze.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ge)*ge),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,ke){Me.setUTCFullYear(Me.getUTCFullYear()+ke*ge)})};var Ue=ze.range;e.timeDay=m,e.timeDays=k,e.timeFriday=c,e.timeFridays=F,e.timeHour=w,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=y,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=I,e.timeSecond=h,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=v,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=R,e.timeWeek=x,e.timeWeeks=v,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=Q,e.utcFriday=H,e.utcFridays=Se,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=oe,e.utcMondays=ve,e.utcMonth=Fe,e.utcMonths=Ee,e.utcSaturday=te,e.utcSaturdays=Ce,e.utcSecond=h,e.utcSeconds=p,e.utcSunday=K,e.utcSundays=le,e.utcThursday=ee,e.utcThursdays=ce,e.utcTuesday=re,e.utcTuesdays=Ae,e.utcWednesday=V,e.utcWednesdays=we,e.utcWeek=K,e.utcWeeks=le,e.utcYear=ze,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var Ns=de((I0,bb)=>{(function(e,r){typeof I0=="object"&&typeof bb!="undefined"?r(I0,vp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(I0,function(e,r){"use strict";function t(Te){if(0<=Te.y&&Te.y<100){var Re=new Date(-1,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L);return Re.setFullYear(Te.y),Re}return new Date(Te.y,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L)}function n(Te){if(0<=Te.y&&Te.y<100){var Re=new Date(Date.UTC(-1,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L));return Re.setUTCFullYear(Te.y),Re}return new Date(Date.UTC(Te.y,Te.m,Te.d,Te.H,Te.M,Te.S,Te.L))}function a(Te,Re,Qe){return{y:Te,m:Re,d:Qe,H:0,M:0,S:0,L:0}}function o(Te){var Re=Te.dateTime,Qe=Te.date,Ke=Te.time,ar=Te.periods,ue=Te.days,J=Te.shortDays,ne=Te.months,De=Te.shortMonths,He=p(ar),er=b(ar),nr=p(ue),fr=b(ue),br=p(J),Sr=b(J),Mr=p(ne),Ar=b(ne),ft=p(De),sr=b(De),Pr={a:ha,A:$n,b:Fn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:wi,q:Ki,Q:he,s:xe,S:q,u:Q,U:ae,V:K,w:oe,W:re,x:null,X:null,y:V,Y:ee,Z:H,"%":pe},$r={a:Qi,A:$i,b:tn,B:ko,c:null,d:te,e:te,f:ce,H:le,I:ve,j:Ae,L:we,m:Se,M:Ce,p:Mi,q:Ti,Q:he,s:xe,S:Fe,u:Ee,U:ze,V:Ue,w:ge,W:Me,x:null,X:null,y:ke,Y:me,Z:ye,"%":pe},Fr={a:vn,A:Et,b:Tn,B:Ot,c:bt,d:g,e:g,f:R,H:A,I:A,j:c,L:E,m:_,M:v,p:jr,q:d,Q:F,s:I,S:D,u:w,U:T,V:m,w:y,W:k,x:gt,X:Nt,y:x,Y:S,Z:M,"%":N};Pr.x=Gr(Qe,Pr),Pr.X=Gr(Ke,Pr),Pr.c=Gr(Re,Pr),$r.x=Gr(Qe,$r),$r.X=Gr(Ke,$r),$r.c=Gr(Re,$r);function Gr(kr,at){return function(ct){var yr=[],yn=-1,_t=0,mn=kr.length,Wr,Za,wl;for(ct instanceof Date||(ct=new Date(+ct));++yn53)return null;"w"in yr||(yr.w=1),"Z"in yr?(_t=n(a(yr.y,0,1)),mn=_t.getUTCDay(),_t=mn>4||mn===0?r.utcMonday.ceil(_t):r.utcMonday(_t),_t=r.utcDay.offset(_t,(yr.V-1)*7),yr.y=_t.getUTCFullYear(),yr.m=_t.getUTCMonth(),yr.d=_t.getUTCDate()+(yr.w+6)%7):(_t=t(a(yr.y,0,1)),mn=_t.getDay(),_t=mn>4||mn===0?r.timeMonday.ceil(_t):r.timeMonday(_t),_t=r.timeDay.offset(_t,(yr.V-1)*7),yr.y=_t.getFullYear(),yr.m=_t.getMonth(),yr.d=_t.getDate()+(yr.w+6)%7)}else("W"in yr||"U"in yr)&&("w"in yr||(yr.w="u"in yr?yr.u%7:"W"in yr?1:0),mn="Z"in yr?n(a(yr.y,0,1)).getUTCDay():t(a(yr.y,0,1)).getDay(),yr.m=0,yr.d="W"in yr?(yr.w+6)%7+yr.W*7-(mn+5)%7:yr.w+yr.U*7-(mn+6)%7);return"Z"in yr?(yr.H+=yr.Z/100|0,yr.M+=yr.Z%100,n(yr)):t(yr)}}function Rr(kr,at,ct,yr){for(var yn=0,_t=at.length,mn=ct.length,Wr,Za;yn<_t;){if(yr>=mn)return-1;if(Wr=at.charCodeAt(yn++),Wr===37){if(Wr=at.charAt(yn++),Za=Fr[Wr in i?at.charAt(yn++):Wr],!Za||(yr=Za(kr,ct,yr))<0)return-1}else if(Wr!=ct.charCodeAt(yr++))return-1}return yr}function jr(kr,at,ct){var yr=He.exec(at.slice(ct));return yr?(kr.p=er[yr[0].toLowerCase()],ct+yr[0].length):-1}function vn(kr,at,ct){var yr=br.exec(at.slice(ct));return yr?(kr.w=Sr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Et(kr,at,ct){var yr=nr.exec(at.slice(ct));return yr?(kr.w=fr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Tn(kr,at,ct){var yr=ft.exec(at.slice(ct));return yr?(kr.m=sr[yr[0].toLowerCase()],ct+yr[0].length):-1}function Ot(kr,at,ct){var yr=Mr.exec(at.slice(ct));return yr?(kr.m=Ar[yr[0].toLowerCase()],ct+yr[0].length):-1}function bt(kr,at,ct){return Rr(kr,Re,at,ct)}function gt(kr,at,ct){return Rr(kr,Qe,at,ct)}function Nt(kr,at,ct){return Rr(kr,Ke,at,ct)}function ha(kr){return J[kr.getDay()]}function $n(kr){return ue[kr.getDay()]}function Fn(kr){return De[kr.getMonth()]}function Ma(kr){return ne[kr.getMonth()]}function wi(kr){return ar[+(kr.getHours()>=12)]}function Ki(kr){return 1+~~(kr.getMonth()/3)}function Qi(kr){return J[kr.getUTCDay()]}function $i(kr){return ue[kr.getUTCDay()]}function tn(kr){return De[kr.getUTCMonth()]}function ko(kr){return ne[kr.getUTCMonth()]}function Mi(kr){return ar[+(kr.getUTCHours()>=12)]}function Ti(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var at=Gr(kr+="",Pr);return at.toString=function(){return kr},at},parse:function(kr){var at=pt(kr+="",!1);return at.toString=function(){return kr},at},utcFormat:function(kr){var at=Gr(kr+="",$r);return at.toString=function(){return kr},at},utcParse:function(kr){var at=pt(kr+="",!0);return at.toString=function(){return kr},at}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Te,Re,Qe){var Ke=Te<0?"-":"",ar=(Ke?-Te:Te)+"",ue=ar.length;return Ke+(ue68?1900:2e3),Qe+Ke[0].length):-1}function M(Te,Re,Qe){var Ke=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Re.slice(Qe,Qe+6));return Ke?(Te.Z=Ke[1]?0:-(Ke[2]+(Ke[3]||"00")),Qe+Ke[0].length):-1}function d(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+1));return Ke?(Te.q=Ke[0]*3-3,Qe+Ke[0].length):-1}function _(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.m=Ke[0]-1,Qe+Ke[0].length):-1}function g(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.d=+Ke[0],Qe+Ke[0].length):-1}function c(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+3));return Ke?(Te.m=0,Te.d=+Ke[0],Qe+Ke[0].length):-1}function A(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.H=+Ke[0],Qe+Ke[0].length):-1}function v(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.M=+Ke[0],Qe+Ke[0].length):-1}function D(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+2));return Ke?(Te.S=+Ke[0],Qe+Ke[0].length):-1}function E(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+3));return Ke?(Te.L=+Ke[0],Qe+Ke[0].length):-1}function R(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe,Qe+6));return Ke?(Te.L=Math.floor(Ke[0]/1e3),Qe+Ke[0].length):-1}function N(Te,Re,Qe){var Ke=u.exec(Re.slice(Qe,Qe+1));return Ke?Qe+Ke[0].length:-1}function F(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe));return Ke?(Te.Q=+Ke[0],Qe+Ke[0].length):-1}function I(Te,Re,Qe){var Ke=l.exec(Re.slice(Qe));return Ke?(Te.s=+Ke[0],Qe+Ke[0].length):-1}function L(Te,Re){return f(Te.getDate(),Re,2)}function P(Te,Re){return f(Te.getHours(),Re,2)}function O(Te,Re){return f(Te.getHours()%12||12,Re,2)}function U(Te,Re){return f(1+r.timeDay.count(r.timeYear(Te),Te),Re,3)}function X(Te,Re){return f(Te.getMilliseconds(),Re,3)}function $(Te,Re){return X(Te,Re)+"000"}function j(Te,Re){return f(Te.getMonth()+1,Re,2)}function Y(Te,Re){return f(Te.getMinutes(),Re,2)}function q(Te,Re){return f(Te.getSeconds(),Re,2)}function Q(Te){var Re=Te.getDay();return Re===0?7:Re}function ae(Te,Re){return f(r.timeSunday.count(r.timeYear(Te)-1,Te),Re,2)}function K(Te,Re){var Qe=Te.getDay();return Te=Qe>=4||Qe===0?r.timeThursday(Te):r.timeThursday.ceil(Te),f(r.timeThursday.count(r.timeYear(Te),Te)+(r.timeYear(Te).getDay()===4),Re,2)}function oe(Te){return Te.getDay()}function re(Te,Re){return f(r.timeMonday.count(r.timeYear(Te)-1,Te),Re,2)}function V(Te,Re){return f(Te.getFullYear()%100,Re,2)}function ee(Te,Re){return f(Te.getFullYear()%1e4,Re,4)}function H(Te){var Re=Te.getTimezoneOffset();return(Re>0?"-":(Re*=-1,"+"))+f(Re/60|0,"0",2)+f(Re%60,"0",2)}function te(Te,Re){return f(Te.getUTCDate(),Re,2)}function le(Te,Re){return f(Te.getUTCHours(),Re,2)}function ve(Te,Re){return f(Te.getUTCHours()%12||12,Re,2)}function Ae(Te,Re){return f(1+r.utcDay.count(r.utcYear(Te),Te),Re,3)}function we(Te,Re){return f(Te.getUTCMilliseconds(),Re,3)}function ce(Te,Re){return we(Te,Re)+"000"}function Se(Te,Re){return f(Te.getUTCMonth()+1,Re,2)}function Ce(Te,Re){return f(Te.getUTCMinutes(),Re,2)}function Fe(Te,Re){return f(Te.getUTCSeconds(),Re,2)}function Ee(Te){var Re=Te.getUTCDay();return Re===0?7:Re}function ze(Te,Re){return f(r.utcSunday.count(r.utcYear(Te)-1,Te),Re,2)}function Ue(Te,Re){var Qe=Te.getUTCDay();return Te=Qe>=4||Qe===0?r.utcThursday(Te):r.utcThursday.ceil(Te),f(r.utcThursday.count(r.utcYear(Te),Te)+(r.utcYear(Te).getUTCDay()===4),Re,2)}function ge(Te){return Te.getUTCDay()}function Me(Te,Re){return f(r.utcMonday.count(r.utcYear(Te)-1,Te),Re,2)}function ke(Te,Re){return f(Te.getUTCFullYear()%100,Re,2)}function me(Te,Re){return f(Te.getUTCFullYear()%1e4,Re,4)}function ye(){return"+0000"}function pe(){return"%"}function he(Te){return+Te}function xe(Te){return Math.floor(+Te/1e3)}var Le;qe({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 qe(Te){return Le=o(Te),e.timeFormat=Le.format,e.timeParse=Le.parse,e.utcFormat=Le.utcFormat,e.utcParse=Le.utcParse,Le}var Ne="%Y-%m-%dT%H:%M:%S.%LZ";function $e(Te){return Te.toISOString()}var Ve=Date.prototype.toISOString?$e:e.utcFormat(Ne);function Be(Te){var Re=new Date(Te);return isNaN(Re)?null:Re}var Ye=+new Date("2000-01-01T00:00:00.000Z")?Be:e.utcParse(Ne);e.isoFormat=Ve,e.isoParse=Ye,e.timeFormatDefaultLocale=qe,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var dp=de((F0,_b)=>{(function(e,r){typeof F0=="object"&&typeof _b!="undefined"?r(F0):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(F0,function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,g){if((c=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var c,A=_.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+_.slice(c+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,g){return function(c,A){for(var v=c.length,D=[],E=0,R=_[0],N=0;v>0&&R>0&&(N+R+1>A&&(R=Math.max(1,A-N)),D.push(c.substring(v-=R,v+R)),!((N+=R+1)>A));)R=_[E=(E+1)%_.length];return D.reverse().join(g)}}function o(_){return function(g){return g.replace(/[0-9]/g,function(c){return _[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(g=i.exec(_)))throw new Error("invalid format: "+_);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(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.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(_){e:for(var g=_.length,c=1,A=-1,v;c0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(v+1):_}var f;function h(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],v=c[1],D=v-(f=Math.max(-8,Math.min(8,Math.floor(v/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(_,Math.max(0,g+D-1))[0]}function p(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],v=c[1];return v<0?"0."+new Array(-v).join("0")+A:A.length>v+1?A.slice(0,v+1)+"."+A.slice(v+1):A+new Array(v-A.length+2).join("0")}var b={"%":function(_,g){return(_*100).toFixed(g)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,g){return _.toExponential(g)},f:function(_,g){return _.toFixed(g)},g:function(_,g){return _.toPrecision(g)},o:function(_){return Math.round(_).toString(8)},p:function(_,g){return p(_*100,g)},r:p,s:h,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function y(_){return _}var w=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(_){var g=_.grouping===void 0||_.thousands===void 0?y:a(w.call(_.grouping,Number),_.thousands+""),c=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",v=_.decimal===void 0?".":_.decimal+"",D=_.numerals===void 0?y:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",R=_.minus===void 0?"-":_.minus+"",N=_.nan===void 0?"NaN":_.nan+"";function F(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,Q=L.trim,ae=L.type;ae==="n"?(Y=!0,ae="g"):b[ae]||(q===void 0&&(q=12),Q=!0,ae="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var K=X==="$"?c:X==="#"&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",oe=X==="$"?A:/[%p]/.test(ae)?E:"",re=b[ae],V=/[defgprs%]/.test(ae);q=q===void 0?6:/[gprs]/.test(ae)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ee(H){var te=K,le=oe,ve,Ae,we;if(ae==="c")le=re(H)+le,H="";else{H=+H;var ce=H<0||1/H<0;if(H=isNaN(H)?N:re(Math.abs(H),q),Q&&(H=s(H)),ce&&+H==0&&U!=="+"&&(ce=!1),te=(ce?U==="("?U:R:U==="-"||U==="("?"":U)+te,le=(ae==="s"?T[8+f/3]:"")+le+(ce&&U==="("?")":""),V){for(ve=-1,Ae=H.length;++vewe||we>57){le=(we===46?v+H.slice(ve+1):H.slice(ve))+le,H=H.slice(0,ve);break}}}Y&&!$&&(H=g(H,1/0));var Se=te.length+H.length+le.length,Ce=Se>1)+te+H+le+Ce.slice(Se);break;default:H=Ce+te+H+le;break}return D(H)}return ee.toString=function(){return L+""},ee}function I(L,P){var O=F((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=T[8+U/3];return function(j){return O(X*j)+$}}return{format:F,formatPrefix:I}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=m(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(_){return Math.max(0,-n(Math.abs(_)))}function M(_,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(_)))}function d(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,n(g)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var Mb=de((cfe,wb)=>{"use strict";wb.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=de((hfe,Tb)=>{"use strict";var UB=Mb();Tb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&UB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn=de((vfe,Ab)=>{"use strict";Ab.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 pp=de((N0,kb)=>{(function(e,r){typeof N0=="object"&&typeof kb!="undefined"?r(N0):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(N0,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,b,y;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),T=new Uint8Array(w);for(s=0;s>4,T[f++]=(p&15)<<4|b>>2,T[f++]=(b&3)<<6|y&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Eo=de((dfe,Sb)=>{"use strict";Sb.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 ra=de(Qa=>{"use strict";var HB=pp().decode,VB=Eo(),gp=Array.isArray,GB=ArrayBuffer,YB=DataView;function Cb(e){return GB.isView(e)&&!(e instanceof YB)}Qa.isTypedArray=Cb;function z0(e){return gp(e)||Cb(e)}Qa.isArrayOrTypedArray=z0;function WB(e){return!z0(e[0])}Qa.isArray1D=WB;Qa.ensureArray=function(e,r){return gp(e)||(e=[]),e.length=r,e};var dn={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};dn.uint8c=dn.u1c;dn.uint8=dn.u1;dn.int8=dn.i1;dn.uint16=dn.u2;dn.int16=dn.i2;dn.uint32=dn.u4;dn.int32=dn.i4;dn.float32=dn.f4;dn.float64=dn.f8;function yp(e){return e.constructor===ArrayBuffer}Qa.isArrayBuffer=yp;Qa.decodeTypedArraySpec=function(e){var r=[],t=XB(e),n=t.dtype,a=dn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;yp(i)||(i=HB(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,b=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var Lb=nt(),xp=ra().isArrayOrTypedArray;Ib.exports=function(r,t){if(Lb(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 zs=q0(),$B=/^\w*$/,jB=0,Fb=1,O0=2,Nb=3,El=4;zb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=zs(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[b]=u[b]|O0,h.set(p,null);if(f){for(o=b;o{"use strict";var eU=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,rU=/^[^\.\[\]]+$/;Ob.exports=function(e,r){for(;r;){var t=e.match(eU);if(t)e=t[1];else if(e.match(rU))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 B0=de((xfe,Ub)=>{"use strict";var tU=nt();Ub.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 tU(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Gb=de((bfe,Vb)=>{"use strict";var Hb=ra().isArrayOrTypedArray,cf=Eo();Vb.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(Hb(a)&&Hb(o)&&cf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function nU(e,r){var t=e%r;return t<0?t+r:t}function aU(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Yb.exports={mod:nU,modHalf:aU}});var Sa=de((wfe,U0)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,ee){if(V=V||"",ee=ee||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,ee);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=ee.format||H.format,this._gradientType=ee.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(),ee,H,te,le,ve,Ae;return ee=V.r/255,H=V.g/255,te=V.b/255,ee<=.03928?le=ee/12.92:le=e.pow((ee+.055)/1.055,2.4),H<=.03928?ve=H/12.92:ve=e.pow((H+.055)/1.055,2.4),te<=.03928?Ae=te/12.92:Ae=e.pow((te+.055)/1.055,2.4),.2126*le+.7152*ve+.0722*Ae},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=b(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=b(this._r,this._g,this._b),ee=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+ee+", "+H+"%, "+te+"%)":"hsva("+ee+", "+H+"%, "+te+"%, "+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),ee=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+ee+", "+H+"%, "+te+"%)":"hsla("+ee+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(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:F[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var ee="#"+m(this._r,this._g,this._b,this._a),H=ee,te=this._gradientType?"GradientType = 1, ":"";if(V){var le=u(V);H="#"+m(le._r,le._g,le._b,le._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+ee+",endColorstr="+H+")"},toString:function(V){var ee=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,le=!ee&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return le?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,ee){var H=V.apply(null,[this].concat([].slice.call(ee)));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(d,arguments)},darken:function(){return this._applyModification(_,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,ee){return V.apply(null,[this].concat([].slice.call(ee)))},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(v,arguments)}},u.fromRatio=function(V,ee){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,ee)};function s(V){var ee={r:0,g:0,b:0},H=1,te=null,le=null,ve=null,Ae=!1,we=!1;return typeof V=="string"&&(V=oe(V)),typeof V=="object"&&(K(V.r)&&K(V.g)&&K(V.b)?(ee=f(V.r,V.g,V.b),Ae=!0,we=String(V.r).substr(-1)==="%"?"prgb":"rgb"):K(V.h)&&K(V.s)&&K(V.v)?(te=Y(V.s),le=Y(V.v),ee=y(V.h,te,le),Ae=!0,we="hsv"):K(V.h)&&K(V.s)&&K(V.l)&&(te=Y(V.s),ve=Y(V.l),ee=p(V.h,te,ve),Ae=!0,we="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:Ae,format:V.format||we,r:o(255,i(ee.r,0)),g:o(255,i(ee.g,0)),b:o(255,i(ee.b,0)),a:H}}function f(V,ee,H){return{r:P(V,255)*255,g:P(ee,255)*255,b:P(H,255)*255}}function h(V,ee,H){V=P(V,255),ee=P(ee,255),H=P(H,255);var te=i(V,ee,H),le=o(V,ee,H),ve,Ae,we=(te+le)/2;if(te==le)ve=Ae=0;else{var ce=te-le;switch(Ae=we>.5?ce/(2-te-le):ce/(te+le),te){case V:ve=(ee-H)/ce+(ee1&&(Fe-=1),Fe<1/6?Se+(Ce-Se)*6*Fe:Fe<1/2?Ce:Fe<2/3?Se+(Ce-Se)*(2/3-Fe)*6:Se}if(ee===0)te=le=ve=H;else{var we=H<.5?H*(1+ee):H+ee-H*ee,ce=2*H-we;te=Ae(ce,we,V+1/3),le=Ae(ce,we,V),ve=Ae(ce,we,V-1/3)}return{r:te*255,g:le*255,b:ve*255}}function b(V,ee,H){V=P(V,255),ee=P(ee,255),H=P(H,255);var te=i(V,ee,H),le=o(V,ee,H),ve,Ae,we=te,ce=te-le;if(Ae=te===0?0:ce/te,te==le)ve=0;else{switch(te){case V:ve=(ee-H)/ce+(ee>1)+720)%360;--ee;)te.h=(te.h+le)%360,ve.push(u(te));return ve}function R(V,ee){ee=ee||6;for(var H=u(V).toHsv(),te=H.h,le=H.s,ve=H.v,Ae=[],we=1/ee;ee--;)Ae.push(u({h:te,s:le,v:ve})),ve=(ve+we)%1;return Ae}u.mix=function(V,ee,H){H=H===0?0:H||50;var te=u(V).toRgb(),le=u(ee).toRgb(),ve=H/100,Ae={r:(le.r-te.r)*ve+te.r,g:(le.g-te.g)*ve+te.g,b:(le.b-te.b)*ve+te.b,a:(le.a-te.a)*ve+te.a};return u(Ae)},u.readability=function(V,ee){var H=u(V),te=u(ee);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,ee,H){var te=u.readability(V,ee),le,ve;switch(ve=!1,le=re(H),le.level+le.size){case"AAsmall":case"AAAlarge":ve=te>=4.5;break;case"AAlarge":ve=te>=3;break;case"AAAsmall":ve=te>=7;break}return ve},u.mostReadable=function(V,ee,H){var te=null,le=0,ve,Ae,we,ce;H=H||{},Ae=H.includeFallbackColors,we=H.level,ce=H.size;for(var Se=0;Sele&&(le=ve,te=u(ee[Se]));return u.isReadable(V,te,{level:we,size:ce})||!Ae?te:(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"},F=u.hexNames=I(N);function I(V){var ee={};for(var H in V)V.hasOwnProperty(H)&&(ee[V[H]]=H);return ee}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,ee){X(V)&&(V="100%");var H=$(V);return V=o(ee,i(0,parseFloat(V))),H&&(V=parseInt(V*ee,10)/100),e.abs(V-ee)<1e-6?1:V%ee/parseFloat(ee)}function O(V){return o(1,i(0,V))}function U(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 j(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 U(V)/255}var ae=function(){var V="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",H="(?:"+ee+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",le="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+le),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 K(V){return!!ae.CSS_UNIT.exec(V)}function oe(V){V=V.replace(r,"").replace(t,"").toLowerCase();var ee=!1;if(N[V])V=N[V],ee=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ae.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ae.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ae.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ae.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ae.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ae.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ae.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:Q(H[4]),format:ee?"name":"hex8"}:(H=ae.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:ee?"name":"hex"}:(H=ae.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:Q(H[4]+""+H[4]),format:ee?"name":"hex8"}:(H=ae.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:ee?"name":"hex"}:!1}function re(V){var ee,H;return V=V||{level:"AA",size:"small"},ee=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:ee,size:H}}typeof U0!="undefined"&&U0.exports?U0.exports=u:window.tinycolor=u})(Math)});var Tt=de(df=>{"use strict";var Wb=Eo(),hf=Array.isArray;function iU(e,r){var t,n;for(t=0;t{"use strict";Xb.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 pf=de((Afe,Zb)=>{"use strict";Zb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ll=de((kfe,Qb)=>{"use strict";var Jb=pf(),Kb=kn(),bp=Kb({editType:"none"});bp.family.dflt=Jb.HOVERFONT;bp.size.dflt=Jb.HOVERFONTSIZE;Qb.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:bp,grouptitlefont:Kb({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 H0=de((Sfe,$b)=>{"use strict";var oU=kn(),gf=Ll().hoverlabel,yf=Tt().extendFlat;$b.exports={hoverlabel:{bgcolor:yf({},gf.bgcolor,{arrayOk:!0}),bordercolor:yf({},gf.bordercolor,{arrayOk:!0}),font:oU({arrayOk:!0,editType:"none"}),align:yf({},gf.align,{arrayOk:!0}),namelength:yf({},gf.namelength,{arrayOk:!0}),showarrow:yf({},gf.showarrow),editType:"none"}}});var Sn=de((Cfe,jb)=>{"use strict";var lU=kn(),sU=H0();jb.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:lU({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:sU.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=de((Efe,t4)=>{"use strict";var uU=Sa(),V0={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)"]]},e4=V0.RdBu;function fU(e,r){if(r||(r=e4),!e)return r;function t(){try{e=V0[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),r4(e)?e:r}function r4(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 Xr=de((Dfe,n4)=>{"use strict";var ta=Sa(),hU=nt(),vU=ra().isTypedArray,an=n4.exports={},G0=Si();an.defaults=G0.defaults;var dU=an.defaultLine=G0.defaultLine;an.lightLine=G0.lightLine;var wp=an.background=G0.background;an.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};an.rgb=function(e){return an.tinyRGB(ta(e))};an.opacity=function(e){return e?ta(e).getAlpha():0};an.addOpacity=function(e,r){var t=ta(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};an.combine=function(e,r){var t=ta(e).toRgb();if(t.a===1)return ta(e).toRgbString();var n=ta(r||wp).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 ta(o).toRgbString()};an.interpolate=function(e,r,t){var n=ta(e).toRgb(),a=ta(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 ta(o).toRgbString()};an.contrast=function(e,r,t){var n=ta(e);n.getAlpha()!==1&&(n=ta(an.combine(e,wp)));var a=n.isDark()?r?n.lighten(r):wp:t?n.darken(t):dU;return a.toString()};an.stroke=function(e,r){var t=ta(r);e.style({stroke:an.tinyRGB(t),"stroke-opacity":t.getAlpha()})};an.fill=function(e,r){var t=ta(r);e.style({fill:an.tinyRGB(t),"fill-opacity":t.getAlpha()})};an.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 Y0=de((Rfe,a4)=>{"use strict";a4.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Os=de(i4=>{"use strict";i4.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 u4=de(na=>{"use strict";var Mp=nt(),o4=Sa(),l4=Tt().extendFlat,pU=Sn(),gU=Dl(),yU=Xr(),mU=Y0().DESELECTDIM,Bs=q0(),s4=Os().counter,xU=qs().modHalf,$a=ra().isArrayOrTypedArray,Lo=ra().isTypedArraySpec,Do=ra().decodeTypedArraySpec;na.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)),!Mp(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||!Mp(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)),o4(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return o4(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(gU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),e==="auto"?r.set("auto"):Mp(e)?r.set(xU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||s4(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:!!s4(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 f4={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},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:{}}},c4={};function h4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),h4(n,r[t]))}}h4(f4,c4);v4.exports={configAttributes:f4,dfltConfig:c4}});var Ap=de((Nfe,d4)=>{"use strict";var Tp=it(),bU=nt(),mf=[];d4.exports=function(e,r){if(mf.indexOf(e)!==-1)return;mf.push(e);var t=1e3;bU(r)?t=r:r==="long"&&(t=3e3);var n=Tp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(mf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=mf.indexOf(l);u!==-1&&mf.splice(u,1),Tp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=Tp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Us=Pl().dfltConfig,kp=Ap(),Sp=p4.exports={};Sp.log=function(){var e;if(Us.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Sp.warn=function(){var e;if(Us.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Sp.error=function(){var e;if(Us.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var X0=de((qfe,g4)=>{"use strict";g4.exports=function(){}});var Cp=de((Ofe,y4)=>{"use strict";y4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{m4.exports=_U;function _U(){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 _4=de((Ufe,b4)=>{b4.exports=wU;function wU(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 M4=de((Hfe,w4)=>{w4.exports=MU;function MU(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 Ep=de((Vfe,T4)=>{T4.exports=TU;function TU(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 k4=de((Gfe,A4)=>{A4.exports=AU;function AU(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 C4=de((Yfe,S4)=>{S4.exports=kU;function kU(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],b=r[11],y=r[12],w=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,d=n*s-o*l,_=a*s-o*u,g=f*w-h*y,c=f*T-p*y,A=f*m-b*y,v=h*T-p*w,D=h*m-b*w,E=p*m-b*T,R=k*E-S*D+x*v+M*A-d*c+_*g;return R?(R=1/R,e[0]=(l*E-u*D+s*v)*R,e[1]=(a*D-n*E-o*v)*R,e[2]=(w*_-T*d+m*M)*R,e[3]=(p*d-h*_-b*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*_-m*S)*R,e[7]=(f*_-p*x+b*S)*R,e[8]=(i*D-l*A+s*g)*R,e[9]=(n*A-t*D-o*g)*R,e[10]=(y*d-w*x+m*k)*R,e[11]=(h*x-f*d-b*k)*R,e[12]=(l*c-i*v-u*g)*R,e[13]=(t*v-n*c+a*g)*R,e[14]=(w*S-y*M-T*k)*R,e[15]=(f*M-h*S+p*k)*R,e):null}});var L4=de((Wfe,E4)=>{E4.exports=SU;function SU(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],b=r[11],y=r[12],w=r[13],T=r[14],m=r[15];return e[0]=l*(p*m-b*T)-h*(u*m-s*T)+w*(u*b-s*p),e[1]=-(n*(p*m-b*T)-h*(a*m-o*T)+w*(a*b-o*p)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+w*(a*s-o*u),e[3]=-(n*(u*b-s*p)-l*(a*b-o*p)+h*(a*s-o*u)),e[4]=-(i*(p*m-b*T)-f*(u*m-s*T)+y*(u*b-s*p)),e[5]=t*(p*m-b*T)-f*(a*m-o*T)+y*(a*b-o*p),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+y*(a*s-o*u)),e[7]=t*(u*b-s*p)-i*(a*b-o*p)+f*(a*s-o*u),e[8]=i*(h*m-b*w)-f*(l*m-s*w)+y*(l*b-s*h),e[9]=-(t*(h*m-b*w)-f*(n*m-o*w)+y*(n*b-o*h)),e[10]=t*(l*m-s*w)-i*(n*m-o*w)+y*(n*s-o*l),e[11]=-(t*(l*b-s*h)-i*(n*b-o*h)+f*(n*s-o*l)),e[12]=-(i*(h*T-p*w)-f*(l*T-u*w)+y*(l*p-u*h)),e[13]=t*(h*T-p*w)-f*(n*T-a*w)+y*(n*p-a*h),e[14]=-(t*(l*T-u*w)-i*(n*T-a*w)+y*(n*u-a*l)),e[15]=t*(l*p-u*h)-i*(n*p-a*h)+f*(n*u-a*l),e}});var R4=de((Xfe,D4)=>{D4.exports=CU;function CU(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],b=e[12],y=e[13],w=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,d=n*u-a*l,_=s*y-f*b,g=s*w-h*b,c=s*T-p*b,A=f*w-h*y,v=f*T-p*y,D=h*T-p*w;return m*D-k*v+S*A+x*c-M*g+d*_}});var I4=de((Zfe,P4)=>{P4.exports=EU;function EU(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],b=r[10],y=r[11],w=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],d=t[3];return e[0]=S*n+x*l+M*h+d*w,e[1]=S*a+x*u+M*p+d*T,e[2]=S*o+x*s+M*b+d*m,e[3]=S*i+x*f+M*y+d*k,S=t[4],x=t[5],M=t[6],d=t[7],e[4]=S*n+x*l+M*h+d*w,e[5]=S*a+x*u+M*p+d*T,e[6]=S*o+x*s+M*b+d*m,e[7]=S*i+x*f+M*y+d*k,S=t[8],x=t[9],M=t[10],d=t[11],e[8]=S*n+x*l+M*h+d*w,e[9]=S*a+x*u+M*p+d*T,e[10]=S*o+x*s+M*b+d*m,e[11]=S*i+x*f+M*y+d*k,S=t[12],x=t[13],M=t[14],d=t[15],e[12]=S*n+x*l+M*h+d*w,e[13]=S*a+x*u+M*p+d*T,e[14]=S*o+x*s+M*b+d*m,e[15]=S*i+x*f+M*y+d*k,e}});var N4=de((Jfe,F4)=>{F4.exports=LU;function LU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,h,p,b,y,w,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],b=r[7],y=r[8],w=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]=b,e[8]=y,e[9]=w,e[10]=T,e[11]=m,e[12]=i*n+f*a+y*o+r[12],e[13]=l*n+h*a+w*o+r[13],e[14]=u*n+p*a+T*o+r[14],e[15]=s*n+b*a+m*o+r[15]),e}});var q4=de((Kfe,z4)=>{z4.exports=DU;function DU(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 B4=de((Qfe,O4)=>{O4.exports=RU;function RU(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,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,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],b=r[2],y=r[3],w=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],d=r[11],_=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,v=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*g+S*c,e[1]=p*_+T*g+x*c,e[2]=b*_+m*g+M*c,e[3]=y*_+k*g+d*c,e[4]=h*A+w*v+S*D,e[5]=p*A+T*v+x*D,e[6]=b*A+m*v+M*D,e[7]=y*A+k*v+d*D,e[8]=h*E+w*R+S*N,e[9]=p*E+T*R+x*N,e[10]=b*E+m*R+M*N,e[11]=y*E+k*R+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var H4=de(($fe,U4)=>{U4.exports=PU;function PU(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 G4=de((jfe,V4)=>{V4.exports=IU;function IU(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 W4=de((ece,Y4)=>{Y4.exports=FU;function FU(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 Z4=de((rce,X4)=>{X4.exports=NU;function NU(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 K4=de((tce,J4)=>{J4.exports=zU;function zU(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,b=a*u,y=a*s,w=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(b+w),e[1]=h+k,e[2]=p-m,e[3]=0,e[4]=h-k,e[5]=1-(f+w),e[6]=y+T,e[7]=0,e[8]=p+m,e[9]=y-T,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var $4=de((nce,Q4)=>{Q4.exports=qU;function qU(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 e_=de((ace,j4)=>{j4.exports=OU;function OU(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 t_=de((ice,r_)=>{r_.exports=BU;function BU(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 a_=de((oce,n_)=>{n_.exports=UU;function UU(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 o_=de((lce,i_)=>{i_.exports=HU;function HU(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 s_=de((sce,l_)=>{l_.exports=VU;function VU(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,b=a*l,y=a*u,w=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+w,e[7]=0,e[8]=p+T,e[9]=b-w,e[10]=1-s-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f_=de((uce,u_)=>{u_.exports=GU;function GU(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 h_=de((fce,c_)=>{c_.exports=YU;function YU(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 d_=de((cce,v_)=>{v_.exports=WU;function WU(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 g_=de((hce,p_)=>{p_.exports=XU;function XU(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 m_=de((vce,y_)=>{var ZU=Ep();y_.exports=JU;function JU(e,r,t,n){var a,o,i,l,u,s,f,h,p,b,y=r[0],w=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],d=t[2];return Math.abs(y-x)<1e-6&&Math.abs(w-M)<1e-6&&Math.abs(T-d)<1e-6?ZU(e):(f=y-x,h=w-M,p=T-d,b=1/Math.sqrt(f*f+h*h+p*p),f*=b,h*=b,p*=b,a=k*p-S*h,o=S*f-m*p,i=m*h-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=h*i-p*o,u=p*a-f*i,s=f*o-h*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(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*w+i*T),e[13]=-(l*y+u*w+s*T),e[14]=-(f*y+h*w+p*T),e[15]=1,e)}});var b_=de((dce,x_)=>{x_.exports=KU;function KU(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 Lp=de((pce,__)=>{__.exports={create:x4(),clone:_4(),copy:M4(),identity:Ep(),transpose:k4(),invert:C4(),adjoint:L4(),determinant:R4(),multiply:I4(),translate:N4(),scale:q4(),rotate:B4(),rotateX:H4(),rotateY:G4(),rotateZ:W4(),fromRotation:Z4(),fromRotationTranslation:K4(),fromScaling:$4(),fromTranslation:e_(),fromXRotation:t_(),fromYRotation:a_(),fromZRotation:o_(),fromQuat:s_(),frustum:f_(),perspective:h_(),perspectiveFromFieldOfView:d_(),ortho:g_(),lookAt:m_(),str:b_()}});var Z0=de(Ut=>{"use strict";var QU=Lp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var $U=it(),w_=Il(),jU=Z0(),eH=Lp();function rH(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 tH(e){var r=$U.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function M_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function nH(e,r){T_("global",e,r)}function T_(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):w_.warn("addStyleRule failed"):w_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function aH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&M_(t)}function iH(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 oH(e){var r=k_(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=A_(n);if(a){var o=jU.convertCssMatrix(a);t=eH.multiply(t,t,o)}}),t}function A_(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 k_(e){for(var r=[];lH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function lH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function sH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}S_.exports={getGraphDiv:rH,isPlotDiv:tH,removeElement:M_,addStyleRule:nH,addRelatedStyleRule:T_,deleteRelatedStyleRule:aH,setStyleOnHover:iH,getFullTransformMatrix:oH,getElementTransformMatrix:A_,getElementAndAncestors:k_,equalDomRects:sH}});var bf=de((mce,C_)=>{"use strict";C_.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 qn=de((xce,F_)=>{"use strict";var L_=Tt().extendFlat,uH=Eo(),D_={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"]},fH=D_.flags.slice().concat(["fullReplot"]),cH=R_.flags.slice().concat("layoutReplot");F_.exports={traces:D_,layout:R_,traceFlags:function(){return E_(fH)},layoutFlags:function(){return E_(cH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"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 Rp=de((_ce,N_)=>{"use strict";N_.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=de(Hs=>{"use strict";var{DATE_FORMAT_LINK:hH,FORMAT_LINK:vH}=Rp(),dH=["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 pH({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}".`,vH,"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}".`,hH,"for details on the date formatting syntax.",dH].join(" ")}Hs.templateFormatStringDescription=pH;Hs.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Hs.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Hs.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Hs.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Q0=de((Tce,H_)=>{"use strict";function Po(e,r){return r?r.d2l(e):e}function z_(e,r){return r?r.l2d(e):e}function gH(e){return e.x0}function yH(e){return e.x1}function mH(e){return e.y0}function xH(e){return e.y1}function q_(e){return e.x0shift||0}function O_(e){return e.x1shift||0}function B_(e){return e.y0shift||0}function U_(e){return e.y1shift||0}function J0(e,r){return Po(e.x1,r)+O_(e)-Po(e.x0,r)-q_(e)}function K0(e,r,t){return Po(e.y1,t)+U_(e)-Po(e.y0,t)-B_(e)}function bH(e,r){return Math.abs(J0(e,r))}function _H(e,r,t){return Math.abs(K0(e,r,t))}function wH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(J0(e,r),2)+Math.pow(K0(e,r,t),2))}function MH(e,r){return z_((Po(e.x1,r)+O_(e)+Po(e.x0,r)+q_(e))/2,r)}function TH(e,r,t){return z_((Po(e.y1,t)+U_(e)+Po(e.y0,t)+B_(e))/2,t)}function AH(e,r,t){return e.type!=="line"?void 0:K0(e,r,t)/J0(e,r)}var kH=["x0","x1","y0","y1","dy","height","ycenter"],SH=["x0","x1","y0","y1","dx","width","xcenter"];H_.exports={x0:gH,x1:yH,y0:mH,y1:xH,slope:AH,dx:J0,dy:K0,width:bH,height:_H,length:wH,xcenter:MH,ycenter:TH,simpleXVariables:kH,simpleYVariables:SH}});var Y_=de((Ace,G_)=>{"use strict";var CH=qn().overrideAll,Fl=Sn(),V_=kn(),EH=Ro().dash,Io=Tt().extendFlat,{shapeTexttemplateAttrs:LH,templatefallbackAttrs:DH}=ja(),RH=Q0();G_.exports=CH({newshape:{visible:Io({},Fl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Io({},Fl.legend,{}),legendgroup:Io({},Fl.legendgroup,{}),legendgrouptitle:{text:Io({},Fl.legendgrouptitle.text,{}),font:V_({})},legendrank:Io({},Fl.legendrank,{}),legendwidth:Io({},Fl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Io({},EH,{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:Io({},Fl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:LH({newshape:!0},{keys:Object.keys(RH)}),texttemplatefallback:DH({editType:"arraydraw"}),font:V_({}),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 X_=de((kce,W_)=>{"use strict";var PH=Ro().dash,IH=Tt().extendFlat;W_.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:IH({},PH,{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 $0=de((Sce,Z_)=>{"use strict";Z_.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 Vs=de((Cce,$_)=>{"use strict";var Pp=kn(),FH=bf(),j0=Si(),J_=Y_(),K_=X_(),NH=$0(),Q_=Tt().extendFlat,eh=Pp({editType:"calc"});eh.family.dflt='"Open Sans", verdana, arial, sans-serif';eh.size.dflt=12;eh.color.dflt=j0.defaultLine;$_.exports={font:eh,title:{text:{valType:"string",editType:"layoutstyle"},font:Pp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Pp({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:Q_(NH({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:j0.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:j0.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:j0.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:J_.newshape,activeshape:J_.activeshape,newselection:K_.newselection,activeselection:K_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Q_({},FH.transition,{editType:"none"})}});var j_=de(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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 Er=de(Zr=>{"use strict";var Gs=Il(),e6=X0(),r6=Cp(),zH=Eo(),qH=xf().addStyleRule,t6=Tt(),OH=Sn(),BH=Vs(),UH=t6.extendFlat,Ip=t6.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 XH=Ns().timeFormat,v6=nt(),Fp=Il(),No=qs().mod,Xs=nn(),Ca=Xs.BADNUM,aa=Xs.ONEDAY,_f=Xs.ONEHOUR,Fo=Xs.ONEMIN,Ws=Xs.ONESEC,wf=Xs.EPOCHJD,eo=Er(),l6=Ns().utcFormat,ZH=/^\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,s6=new Date().getFullYear()-70;function ro(e){return e&&eo.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=KH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=aa*(r-1),Ht.ms2DateTime(n,0,e)};function KH(e,r){return ro(e)?r?eo.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:eo.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return ro(e)?eo.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()*Fo,n=(e.getUTCMinutes()-e.getMinutes())*Fo+(e.getUTCSeconds()-e.getSeconds())*Ws+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fo;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=ro(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:ZH);if(!u)return Ca;var s=u[1],f=u[3]||"1",h=Number(u[5]||1),p=Number(u[7]||0),b=Number(u[9]||0),y=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var T=eo.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=T.newDate(s,T.toMonthIndex(s,f,m),h)}else w=T.newDate(s,Number(f),h)}catch(S){return Ca}return w?(w.toJD()-wf)*aa+p*_f+b*Fo+y*Ws:Ca}s.length===2?s=(Number(s)+2e3-s6)%100+s6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,h,p,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==h?Ca:k.getTime()+y*Ws};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 Ys(e,r){return String(e+Math.pow(10,r)).slice(1)}var rh=90*aa,u6=3*_f,f6=5*Fo;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(ro(t)){var h=Math.floor(a/aa)+wf,p=Math.floor(No(e,aa));try{o=eo.getComponentMethod("calendars","getCal")(t).fromJD(h).formatDate("yyyy-mm-dd")}catch(b){o=l6("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+aa&&e<=nh-aa))return Ca;var r=Math.floor(No(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=XH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return d6(n,a,o,i,l)};function d6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Ys(r,2)+":"+Ys(t,2),(n||a)&&(e+=":"+Ys(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Ys(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(ro(t))return Fp.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 Fp.error("unrecognized date",e),r;return e};var QH=/%\d?f/g,$H=/%h/g,jH={1:"1",2:"1",3:"2",4:"2"};function c6(e,r,t,n){e=e.replace(QH,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($H,function(){return jH[t("%q")(a)]}),ro(n))try{e=eo.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var eV=[59,59.9,59.99,59.999,59.9999];function rV(e,r){var t=No(e+.05,aa),n=Ys(Math.floor(t/_f),2)+":"+Ys(No(Math.floor(t/Fo),60),2);if(r!=="M"){v6(r)||(r=0);var a=Math.min(No(e/Ws,60),eV[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=ro(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 rV(e,t)+` -`+c6(o.dayMonthYear,e,n,a);return c6(r,e,n,a)};var h6=3*aa;Ht.incrementMonth=function(e,r,t){t=ro(t)&&t;var n=No(e,aa);if(e=Math.round(e-n),t)try{var a=Math.round(e/aa)+wf,o=eo.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-wf)*aa+n}catch(u){Fp.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+h6);return l.setUTCMonth(l.getUTCMonth()+r)+n-h6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=ro(r)&&eo.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";g6.exports=function(r){return r}});var qp=de(to=>{"use strict";var tV=nt(),nV=Il(),aV=Np(),iV=nn().BADNUM,zp=1e-9;to.findBin=function(e,r,t){if(tV(r.start))return t?Math.ceil((e-r.start)/r.size-zp)-1:Math.floor((e-r.start)/r.size+zp);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?oV:lV:u=t?uV:sV,e+=i*zp*(t?-1:1)*(i>=0?1:-1);n90&&nV.log("Long binary search..."),n-1};function oV(e,r){return er}function uV(e,r){return e>=r}to.sorterAsc=function(e,r){return e-r};to.sorterDes=function(e,r){return r-e};to.distinctVals=function(e){var r=e.slice();r.sort(to.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===iV;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}};to.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()};to.findIndexOfMin=function(e,r){r=r||aV;for(var t=1/0,n,a=0;a{"use strict";y6.exports=function(r){return Object.keys(r).sort()}});var m6=de(Vt=>{"use strict";var Mf=nt(),fV=ra().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),Mf(r)||(r=!1),fV(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 M6=de((zce,w6)=>{"use strict";var x6=qs(),Op=x6.mod,cV=x6.modHalf,Tf=Math.PI,zo=2*Tf;function hV(e){return e/180*Tf}function vV(e){return e/Tf*180}function Bp(e){return Math.abs(e[1]-e[0])>zo-1e-14}function b6(e,r){return cV(r-e,zo)}function dV(e,r){return Math.abs(b6(e,r))}function _6(e,r){if(Bp(r))return!0;var t,n;r[0]n&&(n+=zo);var a=Op(e,zo),o=a+zo;return a>=t&&a<=n||o>=t&&o<=n}function pV(e,r,t,n){if(!_6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Up(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Bp([t,n]),u,s,f,h,p;l?(u=0,s=Tf,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 S6=de(zl=>{"use strict";var Hp=qs().mod;zl.segmentsIntersect=k6;function k6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,h=n-r,p=o-r,b=l-o,y=u*b-f*h;if(y===0)return null;var w=(s*b-f*p)/y,T=(s*h-u*p)/y;return T<0||T>1||w<0||w>1?null:{x:e+u*w,y:r+h*w}}zl.segmentDistance=function(r,t,n,a,o,i,l,u){if(k6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,h=l-o,p=u-i,b=s*s+f*f,y=h*h+p*p,w=Math.min(ah(s,f,b,o-r,i-t),ah(s,f,b,l-r,u-t),ah(h,p,y,r-o,t-i),ah(h,p,y,n-o,a-i));return Math.sqrt(w)};function ah(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 ih,Vp,A6;zl.getTextLocation=function(r,t,n,a){if((r!==Vp||a!==A6)&&(ih={},Vp=r,A6=a),ih[n])return ih[n];var o=r.getPointAtLength(Hp(n-a/2,t)),i=r.getPointAtLength(Hp(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Hp(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 ih[n]=h,h};zl.clearLocationCache=function(){Vp=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(w){var T=r.getPointAtLength(w);w===0?h=T:w===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=b(u);y;){if(u+=y+n,u>f)return;y=b(u)}for(y=b(f);y;){if(f-=y+n,u>f)return;y=b(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,b,y;s0?h=p:f=p,s++}return b}});var oh=de(Af=>{"use strict";var no={};Af.throttle=function(r,t,n){var a=no[r],o=Date.now();if(!a){for(var i in no)no[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};Af.done=function(e){var r=no[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Af.clear=function(e){if(e)C6(no[e]),delete no[e];else for(var r in no)Af.clear(r)};function C6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var L6=de((Uce,E6)=>{"use strict";E6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var D6=de((Hce,lh)=>{"use strict";lh.exports=Gp;lh.exports.isMobile=Gp;lh.exports.default=Gp;var xV=/(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,bV=/CrOS/,_V=/android|ipad|playbook|silk/i;function Gp(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=xV.test(r)&&!bV.test(r)||!!e.tablet&&_V.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var P6=de((Vce,R6)=>{"use strict";var wV=nt(),MV=D6();R6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=TV(),typeof t!="string")return!0;var n=MV({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(wV(s)&&(s=+s),s>=13)return!0}}}return n};function TV(){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 F6=de((Gce,I6)=>{"use strict";var AV=it();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]=AV.select(this)}),a}});var z6=de((Yce,N6)=>{"use strict";var kV=Er();N6.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=kV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var O6=de((Wce,q6)=>{"use strict";q6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";B6.exports=function(r){for(var t=EV(r)?CV:SV,n=[],a=0;a{"use strict";H6.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 Y6=de((Jce,G6)=>{"use strict";var LV=nt(),DV=nn().BADNUM,RV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G6.exports=function(r){return typeof r=="string"&&(r=r.replace(RV,"")),LV(r)?Number(r):DV}});var ir=de((Kce,aw)=>{"use strict";var kf=it(),PV=Ns().utcFormat,IV=dp().format,Q6=nt(),$6=nn(),j6=$6.FP_SAFE,FV=-j6,W6=$6.BADNUM,Xe=aw.exports={};Xe.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 X6={};Xe.warnBadFormat=function(e){var r=String(e);X6[r]||(X6[r]=1,Xe.warn('encountered bad format: "'+r+'"'))};Xe.noFormat=function(e){return String(e)};Xe.numberFormat=function(e){var r;try{r=IV(Xe.adjustFormat(e))}catch(t){return Xe.warnBadFormat(e),Xe.noFormat}return r};Xe.nestedProperty=z0();Xe.keyedContainer=qb();Xe.relativeAttr=Bb();Xe.isPlainObject=Eo();Xe.toLogRange=O0();Xe.relinkPrivateKeys=Gb();var qo=ra();Xe.isArrayBuffer=qo.isArrayBuffer;Xe.isTypedArray=qo.isTypedArray;Xe.isArrayOrTypedArray=qo.isArrayOrTypedArray;Xe.isArray1D=qo.isArray1D;Xe.ensureArray=qo.ensureArray;Xe.concat=qo.concat;Xe.maxRowLength=qo.maxRowLength;Xe.minRowLength=qo.minRowLength;var ew=qs();Xe.mod=ew.mod;Xe.modHalf=ew.modHalf;var Oo=u4();Xe.valObjectMeta=Oo.valObjectMeta;Xe.coerce=Oo.coerce;Xe.coerce2=Oo.coerce2;Xe.coerceFont=Oo.coerceFont;Xe.coercePattern=Oo.coercePattern;Xe.coerceHoverinfo=Oo.coerceHoverinfo;Xe.coerceSelectionMarkerOpacity=Oo.coerceSelectionMarkerOpacity;Xe.validate=Oo.validate;var va=p6();Xe.dateTime2ms=va.dateTime2ms;Xe.isDateTime=va.isDateTime;Xe.ms2DateTime=va.ms2DateTime;Xe.ms2DateTimeLocal=va.ms2DateTimeLocal;Xe.cleanDate=va.cleanDate;Xe.isJSDate=va.isJSDate;Xe.formatDate=va.formatDate;Xe.incrementMonth=va.incrementMonth;Xe.dateTick0=va.dateTick0;Xe.dfltRange=va.dfltRange;Xe.findExactDates=va.findExactDates;Xe.MIN_MS=va.MIN_MS;Xe.MAX_MS=va.MAX_MS;var ql=qp();Xe.findBin=ql.findBin;Xe.sorterAsc=ql.sorterAsc;Xe.sorterDes=ql.sorterDes;Xe.distinctVals=ql.distinctVals;Xe.roundUp=ql.roundUp;Xe.sort=ql.sort;Xe.findIndexOfMin=ql.findIndexOfMin;Xe.sortObjectKeys=nh();var ao=m6();Xe.aggNums=ao.aggNums;Xe.len=ao.len;Xe.mean=ao.mean;Xe.geometricMean=ao.geometricMean;Xe.median=ao.median;Xe.midRange=ao.midRange;Xe.variance=ao.variance;Xe.stdev=ao.stdev;Xe.interp=ao.interp;var ei=X0();Xe.init2dArray=ei.init2dArray;Xe.transposeRagged=ei.transposeRagged;Xe.dot=ei.dot;Xe.translationMatrix=ei.translationMatrix;Xe.rotationMatrix=ei.rotationMatrix;Xe.rotationXYMatrix=ei.rotationXYMatrix;Xe.apply3DTransform=ei.apply3DTransform;Xe.apply2DTransform=ei.apply2DTransform;Xe.apply2DTransform2=ei.apply2DTransform2;Xe.convertCssMatrix=ei.convertCssMatrix;Xe.inverseTransformMatrix=ei.inverseTransformMatrix;var Ci=M6();Xe.deg2rad=Ci.deg2rad;Xe.rad2deg=Ci.rad2deg;Xe.angleDelta=Ci.angleDelta;Xe.angleDist=Ci.angleDist;Xe.isFullCircle=Ci.isFullCircle;Xe.isAngleInsideSector=Ci.isAngleInsideSector;Xe.isPtInsideSector=Ci.isPtInsideSector;Xe.pathArc=Ci.pathArc;Xe.pathSector=Ci.pathSector;Xe.pathAnnulus=Ci.pathAnnulus;var Js=T6();Xe.isLeftAnchor=Js.isLeftAnchor;Xe.isCenterAnchor=Js.isCenterAnchor;Xe.isRightAnchor=Js.isRightAnchor;Xe.isTopAnchor=Js.isTopAnchor;Xe.isMiddleAnchor=Js.isMiddleAnchor;Xe.isBottomAnchor=Js.isBottomAnchor;var Ks=S6();Xe.segmentsIntersect=Ks.segmentsIntersect;Xe.segmentDistance=Ks.segmentDistance;Xe.getTextLocation=Ks.getTextLocation;Xe.clearLocationCache=Ks.clearLocationCache;Xe.getVisibleSegment=Ks.getVisibleSegment;Xe.findPointOnPath=Ks.findPointOnPath;var fh=Tt();Xe.extendFlat=fh.extendFlat;Xe.extendDeep=fh.extendDeep;Xe.extendDeepAll=fh.extendDeepAll;Xe.extendDeepNoArrays=fh.extendDeepNoArrays;var Yp=Il();Xe.log=Yp.log;Xe.warn=Yp.warn;Xe.error=Yp.error;var NV=Os();Xe.counterRegex=NV.counter;var Wp=oh();Xe.throttle=Wp.throttle;Xe.throttleDone=Wp.done;Xe.clearThrottle=Wp.clear;var ri=xf();Xe.getGraphDiv=ri.getGraphDiv;Xe.isPlotDiv=ri.isPlotDiv;Xe.removeElement=ri.removeElement;Xe.addStyleRule=ri.addStyleRule;Xe.addRelatedStyleRule=ri.addRelatedStyleRule;Xe.deleteRelatedStyleRule=ri.deleteRelatedStyleRule;Xe.setStyleOnHover=ri.setStyleOnHover;Xe.getFullTransformMatrix=ri.getFullTransformMatrix;Xe.getElementTransformMatrix=ri.getElementTransformMatrix;Xe.getElementAndAncestors=ri.getElementAndAncestors;Xe.equalDomRects=ri.equalDomRects;Xe.clearResponsive=L6();Xe.preserveDrawingBuffer=P6();Xe.makeTraceGroups=F6();Xe._=z6();Xe.notifier=Ap();Xe.filterUnique=O6();Xe.filterVisible=U6();Xe.pushUnique=Cp();Xe.increment=V6();Xe.cleanNumber=Y6();Xe.ensureNumber=function(r){return Q6(r)?(r=Number(r),r>j6||r=r?!1:Q6(e)&&e>=0&&e%1===0};Xe.noop=W0();Xe.identity=Np();Xe.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))};Xe.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};Xe.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?(Xe.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Xe.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};Xe.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};Xe.syncOrAsync=function(e,r,t){var n,a;function o(){return Xe.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)};Xe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Xe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Xe.fillArray=function(e,r,t,n){if(n=n||Xe.identity,Xe.isArrayOrTypedArray(e))for(var a=0;aOV.test(window.navigator.userAgent);var BV=/Firefox\/(\d+)\.\d+/;Xe.getFirefoxVersion=function(){var e=BV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Xe.isD3Selection=function(e){return e instanceof kf.selection};Xe.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};Xe.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};Xe.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};Xe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var nw=/^\w*$/;Xe.templateString=function(e,r){var t={};return e.replace(Xe.TEMPLATE_STRING_REGEX,function(n,a){var o;return nw.test(a)?o=r[a]:(t[a]=t[a]||Xe.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var VV={max:10,count:0,name:"hovertemplate"};Xe.hovertemplateString=e=>Xp(C0(Cl({},e),{opts:VV}));var GV={max:10,count:0,name:"texttemplate"};Xe.texttemplateString=e=>Xp(C0(Cl({},e),{opts:GV}));var YV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function WV(e){var r=e.match(YV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var XV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Xe.texttemplateStringForShapes=e=>Xp(C0(Cl({},e),{opts:XV}));var Z6=/^[:|\|]/;function Xp({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Xe.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),b=s||f||p||h;(f||h)&&(l=l.substring(1)),(p||h)&&(l=l.substring(0,l.length-1));let y=null,w=null;if(a.parseMultDiv){var T=WV(l);l=T.key,y=T.op,w=T.number}let m;if(b){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(nw.test(l)||(m=Xe.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:d,name:_}=a,g=t===!1?i:t;return M=uh&&i<=J6,s=l>=uh&&l<=J6;if(u&&(n=10*n+i-uh),s&&(a=10*a+l-uh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var Zs=2e9;Xe.seedPseudoRandom=function(){Zs=2e9};Xe.pseudoRandom=function(){var e=Zs;return Zs=(69069*Zs+1)%4294967296,Math.abs(Zs-e)<429496729?Xe.pseudoRandom():Zs/4294967296};Xe.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Xe.extractOption(e,r,"htx","hovertext");if(Xe.isValidTextValue(a))return n(a);var o=Xe.extractOption(e,r,"tx","text");if(Xe.isValidTextValue(o))return n(o)};Xe.isValidTextValue=function(e){return e||e===0};Xe.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,Xe.strTranslate(a-s*(t+i),o-s*(n+l))+Xe.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Xe.setTransormAndDisplay=function(e,r){e.attr("transform",Xe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Xe.ensureUniformFontSize=function(e,r){var t=Xe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Xe.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)};Xe.bigFont=function(e){return Math.round(1.2*e)};var K6=Xe.getFirefoxVersion(),ZV=K6!==null&&K6<86;Xe.getPositionFromD3Event=function(){return ZV?[kf.event.layerX,kf.event.layerY]:[kf.event.offsetX,kf.event.offsetY]}});var lw=de(()=>{"use strict";var JV=ir(),iw={"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(Zp in iw)ow=Zp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),JV.addStyleRule(ow,iw[Zp]);var ow,Zp});var Jp=de((e0e,sw)=>{sw.exports=!0});var Qp=de((r0e,uw)=>{"use strict";var KV=Jp(),Kp;typeof window.matchMedia=="function"?Kp=!window.matchMedia("(hover: none)").matches:Kp=KV;uw.exports=Kp});var vh=de((t0e,$p)=>{"use strict";var Qs=typeof Reflect=="object"?Reflect:null,fw=Qs&&typeof Qs.apply=="function"?Qs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},ch;Qs&&typeof Qs.ownKeys=="function"?ch=Qs.ownKeys:Object.getOwnPropertySymbols?ch=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:ch=function(r){return Object.getOwnPropertyNames(r)};function QV(e){console&&console.warn&&console.warn(e)}var hw=Number.isNaN||function(r){return r!==r};function At(){At.init.call(this)}$p.exports=At;$p.exports.once=rG;At.EventEmitter=At;At.prototype._events=void 0;At.prototype._eventsCount=0;At.prototype._maxListeners=void 0;var cw=10;function hh(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 cw},set:function(e){if(typeof e!="number"||e<0||hw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");cw=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||hw(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 vw(e){return e._maxListeners===void 0?At.defaultMaxListeners:e._maxListeners}At.prototype.getMaxListeners=function(){return vw(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")fw(u,this,t);else for(var s=u.length,f=mw(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,QV(l)}return e}At.prototype.addListener=function(r,t){return dw(this,r,t,!1)};At.prototype.on=At.prototype.addListener;At.prototype.prependListener=function(r,t){return dw(this,r,t,!0)};function $V(){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 pw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=$V.bind(n);return a.listener=t,n.wrapFn=a,a}At.prototype.once=function(r,t){return hh(t),this.on(r,pw(this,r,t)),this};At.prototype.prependOnceListener=function(r,t){return hh(t),this.prependListener(r,pw(this,r,t)),this};At.prototype.removeListener=function(r,t){var n,a,o,i,l;if(hh(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():jV(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 gw(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?eG(a):mw(a,a.length)}At.prototype.listeners=function(r){return gw(this,r,!0)};At.prototype.rawListeners=function(r){return gw(this,r,!1)};At.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):yw.call(e,r)};At.prototype.listenerCount=yw;function yw(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?ch(this._events):[]};function mw(e,r){for(var t=new Array(r),n=0;n{"use strict";var jp=vh().EventEmitter,nG={init:function(e){if(e._ev instanceof jp)return e;var r=new jp,t=new jp;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 _w=ir(),aG=Pl().dfltConfig;function iG(e,r){for(var t=[],n,a=0;aaG.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};io.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};io.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};io.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";Tw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var eu=de(jt=>{"use strict";var Ea=Er(),Cf=ir(),ph=Sn(),rg=Vs(),oG=eg(),lG=bf(),sG=Pl().configAttributes,Aw=qn(),ti=Cf.extendDeepAll,$s=Cf.isPlainObject,uG=Cf.isArrayOrTypedArray,gh=Cf.nestedProperty,fG=Cf.valObjectMeta,tg="_isSubplotObj",yh="_isLinkedToArray",cG="_arrayAttrRegexps",Sw="_deprecated",ng=[tg,yh,cG,Sw];jt.IS_SUBPLOT_OBJ=tg;jt.IS_LINKED_TO_ARRAY=yh;jt.DEPRECATED=Sw;jt.UNDERSCORE_ATTRS=ng;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=vG(r)}),{defs:{valObjects:fG,metaKeys:ng.concat(["description","role","editType","impliedEdits"]),editType:{traces:Aw.traces,layout:Aw.layout},impliedEdits:{}},traces:e,layout:dG(),frames:pG(),animation:js(lG),config:js(sG)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(ng.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&$s(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.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)uG(h)&&r.push(o+p);else if(n[s]){if(Array.isArray(h))for(var b=0;b=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!dh(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function dh(e){return e===Math.round(e)&&e>=0}function vG(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=ti({},ph),o=ti({},r.attributes);jt.crawl(o,function(u,s,f,h,p){gh(a,p).set(void 0),u===void 0&&gh(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:js(n)};if(r.layoutAttributes){var l={};ti(l,r.layoutAttributes),i.layoutAttributes=js(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function dG(){var e={},r,t;ti(e,rg);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 ru=ir(),bG=Sn(),Bo="templateitemname",ag={name:{valType:"string",editType:"none"}};ag[Bo]={valType:"string",editType:"calc"};Ol.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=ag.name,r[Bo]=ag[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=ru.coerce(o,{},bG,"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]);ru.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[Lw(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(!Ew(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(b,y){l[b]=y}function f(b,y){o?ru.nestedProperty(l[i],b).set(y):l[i+"."+b]=y}function h(){var b=l;return u(),b}function p(b,y){b&&f(b,y);var w=h();for(var T in w)ru.nestedProperty(e,T).set(w[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:h,applyUpdate:p}}});var on=de((s0e,Dw)=>{"use strict";var Ef=Os().counter;Dw.exports={idRegex:{x:Ef("x","( domain)?"),y:Ef("y","( domain)?")},attrRegex:Ef("[xy]axis"),xAxisMatch:Ef("xaxis"),yAxisMatch:Ef("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=de(ia=>{"use strict";var _G=Er(),ig=on();ia.id2name=function(r){if(!(typeof r!="string"||!r.match(ig.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};ia.name2id=function(r){if(r.match(ig.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};ia.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(ig.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":"")}};ia.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=ia.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};ia.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Rw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function wG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function MG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Pw.exports={clearOutlineControllers:wG,clearOutline:MG}});var mh=de((c0e,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 Lf=de(bh=>{"use strict";var xh=Er(),h0e=on().SUBPLOT_PATTERN;bh.getSubplotCalcData=function(e,r,t){var n=xh.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var TG=Er(),tu=ir();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){Fw(e,i,a.cache),a.check=function(){if(o){var f=Fw(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;tu.isPlainObject(o)?og(o,r,i,n+1):r(i,a,o)}})}});var ln=de((p0e,$w)=>{"use strict";var Yw=it(),kG=Ns().timeFormatLocale,SG=dp().formatLocale,Df=nt(),CG=pp(),ot=Er(),Ww=eu(),EG=yt(),xr=ir(),Xw=Xr(),Ow=nn().BADNUM,oa=en(),LG=Uo().clearOutline,DG=mh(),lg=bf(),RG=eg(),PG=Lf().getModuleCalcData,Bw=xr.relinkPrivateKeys,Ul=xr._,cr=$w.exports={};xr.extendFlat(cr,ot);cr.attributes=Sn();cr.attributes.type.values=cr.allTypes;cr.fontAttrs=kn();cr.layoutAttributes=Vs();var wh=qw();cr.executeAPICommand=wh.executeAPICommand;cr.computeAPICommandBindings=wh.computeAPICommandBindings;cr.manageCommandObserver=wh.manageCommandObserver;cr.hasSimpleAPICommandBindings=wh.hasSimpleAPICommandBindings;cr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ot.getComponentMethod("annotations","draw")(e),ot.getComponentMethod("legend","draw")(e),ot.getComponentMethod("colorbar","draw")(e),r(cr.previousPromises(e)))},300)})};cr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.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||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ot.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};cr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};cr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Xw.defaultLine,"pointer-events":"all"}).each(function(){var s=Yw.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&&IG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function IG(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(){cr.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})}}cr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Yw.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=cr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var FG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],NG=["year","month","dayMonth","dayMonthYear"];cr.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||cr.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=Uw(e,FG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var b=n.width,y=n.height;cr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=b),o.height||(a.height=y),cr.sanitizeMargins(a)}else{cr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=w&&(T||m);k?cr.plotAutoSize(e,o,a):w&&cr.sanitizeMargins(a),!T&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=OG(p,a.separators),a._extraFormat=Uw(e,NG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=qG(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=zG(i,u),cr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),_=Object.keys(x.y);if(d.length>1&&_.length>1){for(ot.getComponentMethod("grid","sizeDefaults")(o,a),h=0;h15&&_.length>15&&a.shapes.length===0&&a.images.length===0,cr.linkSubplots(l,a,i,n),cr.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&&LG({_fullLayout:n}),BG(l,a),Bw(a,n),ot.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var F=a._tracePreGUI,I={},L;for(L in F)I[L]="old";for(h=0;h0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var h=cr.layoutAttributes.width.min,p=cr.layoutAttributes.height.min;i1,y=!t.height&&Math.abs(n.height-l)>1;(y||b)&&(b&&(n.width=i),y&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),cr.sanitizeMargins(n)};cr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ot.componentsRegistry,o=r._basePlotModules,i,l,u,s=ot.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ot.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.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;b[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:M,size:t.b+w},t:{val:x,size:t.t+w}},y[r]=1}if(!n._replotting)return cr.doAutoMargin(e)}};function HG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=oa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}cr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Zw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,h=o.b,p=r._pushmargin,b=r._pushmarginIds,y=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var T in p)b[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 d=0;for(var _ in p)_!=="base"&&Df(p[_][M].size)&&(d=p[_][M].size>d?p[_][M].size:d);var g=Math.max(0,o[M]-d);i[M]=Math.max(0,i[M]-g)}for(var c in p){var A=p[c].l||{},v=p[c].b||{},D=A.val,E=A.size,R=v.val,N=v.size,F=t-i.r-i.l,I=n-i.t-i.b;for(var L in p){if(Df(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>D){var U=(E*P+(O-F)*D)/(P-D),X=(O*(1-D)+(E-F)*(1-P))/(P-D);U+X>u+s&&(u=U,s=X)}}if(Df(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>R){var Y=(N*$+(j-I)*R)/($-R),q=(j*(1-R)+(N-I)*(1-$))/($-R);Y+q>h+f&&(h=Y,f=q)}}}}}var Q=xr.constrain(t-o.l-o.r,Jw,y),ae=xr.constrain(n-o.t-o.b,Kw,w),K=Math.max(0,t-Q),oe=Math.max(0,n-ae);if(K){var re=(u+s)/K;re>1&&(u/=re,s/=re)}if(oe){var V=(h+f)/oe;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&&(cr.didMarginChange(l,a)||HG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ee=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};cr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&cr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,b){if(typeof p=="function")return b?"_function_":null;if(xr.isPlainObject(p)){var y={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){b&&(y[S]="_function");return}if(t==="keepdata"){if(S.slice(-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;y[S]=s(p[S],b)}}),y}var T=Array.isArray(p),m=xr.isTypedArray(p);if((T||m)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?CG.encode(k):k},b)}return T?p.map(function(S){return s(S,b)}):m?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var b=s(p);return r&&delete b.fit,b})};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)};cr.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 ot.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,b=0;function y(){return p++,function(){b++,!n&&b===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 ot.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=[cr.previousPromises,u,t.prepareFn,cr.rehover,cr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}cr.doCalcdata=function(e,r){var t=oa.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:Ow,y:Ow}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Vw(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 Cn=de((y0e,jw)=>{"use strict";jw.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 On=de(La=>{"use strict";var Zt=it(),oo=ir(),WG=oo.strTranslate,sg=Ho(),XG=Cn().LINE_SPACING,ZG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(ZG),o=Zt.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=lY(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};$G(a[2],f,function(h,p,b){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 w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(y.node()),p&&p.node()&&y.node().insertBefore(p.node().cloneNode(!0),y.node().firstChild);var T=b.width,m=b.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,d=x.height;(M>T||d>m)&&(y.style("overflow","hidden"),x=y.node().getBoundingClientRect(),M=x.width,d=x.height);var _=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,_,g]+")"+WG(-M/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)_=0,g=A;else{var v=e.attr("text-anchor");_=_-M*(v==="middle"?.5:v==="end"?1:0),g=g+A-d/2}y.attr({x:_,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var JG=/(<|<|<)/g,KG=/(>|>|>)/g;function QG(e){return e.replace(JG,"\\lt ").replace(KG,"\\gt ")}var e7=[["$","$"],["\\(","\\)"]];function $G(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){oo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=oo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:e7},displayAlign:"left"})},s=function(){o=oo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=e7},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-"+oo.randstr({},64);l=Zt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(QG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},b=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)oo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),M;n===2?M=Zt.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)},w=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,b,y,T):n===3&&(s(),h(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),b(),w(),m()}))}var a7={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"},jG={sub:"0.3em",sup:"-0.6em"},eY={sub:"-0.21em",sup:"0.42em"},r7="\u200B",t7=["http:","https:","mailto:","",void 0,":"],i7=La.NEWLINES=/(\r\n?|\n)/g,fg=/(<[^<>]*>)/,cg=/<(\/?)([^ >]*)(\s+(.*))?>/i,rY=//i;La.BR_TAG_ALL=//gi;var o7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,l7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,s7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,tY=/(^|[\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&&Mh(n)}var nY=/(^|;)\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(fg),l=[],u="",s=0,f=0;fo?l.push(h.slice(0,Math.max(0,w-o))+a):l.push(h.slice(0,w));break}u=""}}return l.join("")};var aY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},iY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Mh(e){return e.replace(iY,function(r,t){var n;return t.charAt(0)==="#"?n=oY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=aY[t],n||r})}La.convertEntities=Mh;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 lY(e,r){r=r.replace(i7," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(sg.svg,"tspan");Zt.select(d).attr({class:"line",dy:o*XG+"em"}),e.appendChild(d),a=d;var _=n;if(n=[{node:d}],_.length>1)for(var g=1;g<_.length;g++)l(_[g])}function l(d){var _=d.type,g={},c;if(_==="a"){c="a";var A=d.target,v=d.href,D=d.popup;v&&(g={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":v},D&&(g.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+D+'");return false;'))}else c="tspan";d.style&&(g.style=d.style);var E=document.createElementNS(sg.svg,c);if(_==="sup"||_==="sub"){u(a,r7),a.appendChild(E);var R=document.createElementNS(sg.svg,"tspan");u(R,r7),Zt.select(R).attr("dy",eY[_]),g.dy=jG[_],a.appendChild(E),a.appendChild(R)}else a.appendChild(E);Zt.select(E).attr(g),a=d.node=E,n.push(d)}function u(d,_){d.appendChild(document.createTextNode(_))}function s(d){if(n.length===1){oo.log("Ignoring unexpected end tag .",r);return}var _=n.pop();d!==_.type&&oo.log("Start tag <"+_.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=rY.test(r);f?i():(a=e,n=[{node:e}]);for(var h=r.split(fg),p=0;p{"use strict";var sY=it(),Ah=Sa(),Pf=nt(),Th=ir(),f7=Xr(),uY=Dl().isValid;function fY(e,r,t){var n=r?Th.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(Th.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function g7(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 m7=Rp(),hY=m7.FORMAT_LINK,vY=m7.DATE_FORMAT_LINK;function dY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?hg:x7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function hg(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: "+hY+"."].join(" ")}function x7(e,r){return hg(e,r)+[" And for dates see: "+vY+".","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(" ")}b7.exports={axisHoverFormat:dY,descriptionOnlyNumbers:hg,descriptionWithDates:x7}});var Da=de((w0e,z7)=>{"use strict";var _7=kn(),nu=Si(),N7=Ro().dash,dg=Tt().extendFlat,w7=yt().templatedArray,_0e=ja().templateFormatStringDescription,M7=lo().descriptionWithDates,pY=nn().ONEDAY,Li=on(),gY=Li.HOUR_PATTERN,yY=Li.WEEKDAY_PATTERN,vg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},mY=dg({},vg,{values:vg.values.slice().concat(["sync"])});function T7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var A7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},k7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"data_array",editType:"ticks"},C7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function E7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function L7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var D7={valType:"color",dflt:nu.defaultLine,editType:"ticks"},R7={valType:"color",dflt:nu.lightLine,editType:"ticks"};function P7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var I7=dg({},N7,{editType:"ticks"}),F7={valType:"boolean",editType:"ticks"};z7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:nu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:_7({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:w7("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:[yY,gY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:pY},editType:"calc"}),tickmode:mY,nticks:T7(),tick0:A7,dtick:k7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:S7,ticktext:{valType:"data_array",editType:"ticks"},ticks:C7,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:E7(),tickwidth:L7(),tickcolor:D7,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:dg({},N7,{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:_7({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:M7("tick label")},tickformatstops:w7("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:M7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:nu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:F7,gridcolor:R7,gridwidth:P7(),griddash:I7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:nu.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:nu.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:vg,nticks:T7("minor"),tick0:A7,dtick:k7,tickvals:S7,ticks:C7,ticklen:E7("minor"),tickwidth:L7("minor"),tickcolor:D7,gridcolor:R7,gridwidth:P7("minor"),griddash:I7,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 kh=de((M0e,B7)=>{"use strict";var kt=Da(),q7=kn(),O7=Tt().extendFlat,xY=qn().overrideAll;B7.exports=xY({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:O7({},kt.ticks,{dflt:""}),ticklabeloverflow:O7({},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:q7({}),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:q7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ni=de((A0e,H7)=>{"use strict";var bY=kh(),_Y=Os().counter,wY=nh(),U7=Dl().scales,T0e=wY(U7);function Sh(e){return"`"+e+"`"}H7.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"?U7[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 "+Sh(s+f));var p=a?" Has an effect only if "+h+" is set to a numerical array.":"",b=n+"auto",y=n+"min",w=n+"max",T=n+"mid",m=Sh(s+b),k=Sh(s+y),S=Sh(s+w),x=k+" and "+S,M={};M[y]=M[w]=void 0;var d={};d[b]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},_[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=bY),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:_Y("coloraxis"),dflt:null,editType:"calc"}),_}});var gg=de((k0e,V7)=>{"use strict";var MY=Tt().extendFlat,TY=ni(),pg=Dl().scales;V7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:pg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:pg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:pg.RdBu,editType:"calc"}},coloraxis:MY({_isSubplotObj:!0,editType:"calc"},TY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var yg=de((S0e,G7)=>{"use strict";var AY=ir();G7.exports=function(r){return AY.isPlainObject(r.colorbar)}});var bg=de(xg=>{"use strict";var mg=nt(),Y7=ir(),W7=nn(),kY=W7.ONEDAY,SY=W7.ONEWEEK;xg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?kY:1;if(!e)return o;if(mg(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=mg(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};xg.tick0=function(e,r,t,n){if(r==="date")return Y7.cleanDate(e,Y7.dateTick0(t,n%SY===0?1:0));if(!(n==="D1"||n==="D2"))return mg(e)?Number(e):0}});var _g=de((E0e,Z7)=>{"use strict";var X7=bg(),CY=ir().isArrayOrTypedArray,EY=ra().isTypedArraySpec,LY=ra().decodeTypedArraySpec;Z7.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 EY(S)&&(S=LY(S)),S!==void 0?S:(u._template||{})[k]}var h=f("tick0"),p=f("dtick"),b=f("tickvals"),y=CY(b)?"array":p?"linear":"auto",w=n(s+"tickmode",y);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var T=u.dtick=X7.dtick(p,a);u.tick0=X7.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 Mg=de((L0e,K7)=>{"use strict";var wg=ir(),J7=Da();K7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?J7.minor:J7,s=o?"minor.":"",f=wg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),h=wg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=wg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||h||p?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Tg=de((D0e,Q7)=>{"use strict";Q7.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=de((R0e,$7)=>{"use strict";var Ch=ir(),DY=yt();$7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=Ch.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=DY.arrayTemplater(t,a,o),f,h;for(f=0;f{"use strict";var Ag=ir(),RY=Xr().contrast,j7=Da(),PY=Tg(),IY=ai();e8.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Ag.isPlainObject(i)||delete t.labelalias;var l=PY(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?RY(o.bgColor):f&&f!==j7.color.dflt?f:s.color;if(Ag.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var y=n("tickformat");IY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:FY}),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 FY(e,r){function t(a,o){return Ag.coerce(e,r,j7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Sg=de((I0e,r8)=>{"use strict";var NY=Tg();r8.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=NY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Cg=de((F0e,t8)=>{"use strict";var Vo=ir(),zY=yt(),qY=_g(),OY=Mg(),BY=kg(),UY=Sg(),HY=kh();t8.exports=function(r,t,n){var a=zY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(v,D){return Vo.coerce(o,a,HY,v,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 b=i("lenmode");i("len",b==="fraction"?1:h?s:u);var y=i("yref"),w=i("xref"),T=y==="paper",m=w==="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 d=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",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),qY(o,a,i,"linear");var _=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};d.indexOf("inside")!==-1&&(g.bgColor="black"),UY(o,a,i,"linear",g),BY(o,a,i,"linear",g),OY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:_,A=Vo.extendFlat({},_,{family:c.family,size:Vo.bigFont(c.size)});Vo.coerceFont(i,"title.font",A),i("title.side",h?"top":"right")}});var Di=de((N0e,i8)=>{"use strict";var n8=nt(),Lg=ir(),VY=yg(),GY=Cg(),a8=Dl().isValid,YY=Er().traceIs;function Eg(e,r){var t=r.slice(0,r.length-1);return r?Lg.nestedProperty(e,t).get()||{}:e}i8.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Eg(r,i),f=Eg(t,i),h=Eg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},y=a(i+"coloraxis");if(y){var w=YY(t,"contour")&&Lg.nestedProperty(t,"contours.coloring").get()||"heatmap",T=b[y];T?(T[2].push(p),T[0]!==w&&(T[0]=!1,Lg.warn(["Ignoring coloraxis:",y,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[y]=[w,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=n8(m)&&n8(k)&&m{"use strict";var o8=ir(),WY=yt(),l8=gg(),XY=Di();s8.exports=function(r,t){function n(h,p){return o8.coerce(r,t,l8,h,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(h,p){return o8.coerce(o,i,l8.coloraxis,h,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=WY.newContainer(t,u,"coloraxis"),i._name=u,XY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var ZY=ir(),JY=Ei().hasColorscale,KY=Ei().extractOpts;f8.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?ZY.nestedProperty(f,h.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var b=KY(p),y=b.auto;(y||b.min===void 0)&&n(p,h.min),(y||b.max===void 0)&&n(p,h.max),b.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var h8=nt(),Dg=ir(),QY=Ei().extractOpts;v8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Dg.nestedProperty(t,i).get():t,u=QY(l),s=u.auto!==!1,f=u.min,h=u.max,p=u.mid,b=function(){return Dg.aggNums(Math.min,null,o)},y=function(){return Dg.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&h8(f)?f=Math.min(f,b()):f=b()),h===void 0?h=y():s&&(l._colorAx&&h8(h)?h=Math.max(h,y()):h=y()),s&&p!==void 0&&(h-p>p-f?f=p-(h-p):h-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Ri=de((B0e,d8)=>{"use strict";var Eh=Dl(),au=Ei();d8.exports={moduleType:"component",name:"colorscale",attributes:ni(),layoutAttributes:gg(),supplyLayoutDefaults:u8(),handleDefaults:Di(),crossTraceDefaults:c8(),calc:Go(),scales:Eh.scales,defaultScale:Eh.defaultScale,getScale:Eh.get,isValidScale:Eh.isValid,hasColorscale:au.hasColorscale,extractOpts:au.extractOpts,extractScale:au.extractScale,flipScale:au.flipScale,makeColorScaleFunc:au.makeColorScaleFunc,makeColorScaleFuncFromTrace:au.makeColorScaleFuncFromTrace}});var la=de((U0e,g8)=>{"use strict";var p8=ir(),$Y=ra().isTypedArraySpec;g8.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 p8.isPlainObject(r)&&(p8.isArrayOrTypedArray(r.size)||$Y(r.size))}}});var Rg=de((H0e,y8)=>{"use strict";var jY=nt();y8.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 jY(u)&&u>0?Math.max(u,o):0}}});var so=de(En=>{"use strict";var Lh=ir();En.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};En.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{b8.exports=aW;var Pg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},nW=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function aW(e){var r=[];return e.replace(nW,function(t,n,a){var o=n.toLowerCase();for(a=oW(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Pg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var lW=Ig(),ur=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Nr="M0,0Z",_8=Math.sqrt(2),Yo=Math.sqrt(3),Fg=Math.PI,Ng=Math.cos,zg=Math.sin;k8.exports={circle:{n:0,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?qr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.3,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.4,2),a=ur(e*1.2,2);return qr(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(zr(r))return Nr;var n=ur(e*.8/_8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return qr(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(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.951,2),a=ur(e*.588,2),o=ur(-e,2),i=ur(e*-.309,2),l=ur(e*.809,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/2,2),o=ur(e*Yo/2,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/2,2),o=ur(e*Yo/2,2);return qr(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(zr(r))return Nr;var n=ur(e*.924,2),a=ur(e*.383,2);return qr(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(zr(r))return Nr;var n=e*1.4,a=ur(n*.225,2),o=ur(n*.951,2),i=ur(n*.363,2),l=ur(n*.588,2),u=ur(-n,2),s=ur(n*-.309,2),f=ur(n*.118,2),h=ur(n*.809,2),p=ur(n*.382,2);return qr(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(zr(r))return Nr;var n=ur(e*.66,2),a=ur(e*.38,2),o=ur(e*.76,2);return qr(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(zr(r))return Nr;var n=ur(e*Yo*.8,2),a=ur(e*.8,2),o=ur(e*1.6,2),i=ur(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*Yo*.8,2),a=ur(e*.8,2),o=ur(e*1.6,2),i=ur(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*1.1,2),a=ur(e*2,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*1.4,2),a=ur(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*.7,2),a=ur(e*1.4,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.4,2),a=ur(e*.7,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/_8,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.3,2);return qr(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(zr(r))return Nr;var n=ur(e*1.3,2),a=ur(e*.65,2);return qr(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(zr(r))return Nr;var n=ur(e*1.4,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*.85,2);return qr(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(zr(r))return Nr;var n=ur(e/2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.4,2);return qr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.4,2);return qr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(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(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=Fg/2.5,a=2*e*Ng(n),o=2*e*zg(n);return qr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(zr(r))return Nr;var n=Fg/4,a=2*e*Ng(n),o=2*e*zg(n);return qr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function zr(e){return e===null}var w8,M8,T8,A8;function qr(e,r,t){if((!e||e%360===0)&&!r)return t;if(T8===e&&A8===r&&w8===t)return M8;T8=e,A8=r,w8=t;function n(T,m){var k=Ng(T),S=zg(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*Fg,o=0,i=0,l=lW(t),u="",s=0;s{"use strict";var sn=it(),dt=ir(),sW=dt.numberFormat,Xl=nt(),Vg=Sa(),Rh=Er(),_n=Xr(),uW=Ri(),Ff=dt.strTranslate,Ph=On(),fW=Ho(),cW=Cn(),hW=cW.LINE_SPACING,z8=G0().DESELECTDIM,vW=la(),dW=Rg(),pW=so().appendArrayPointValue,hr=X8.exports={};hr.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(_n.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",qg(yW(f))),u&&e.style("text-shadow",u==="auto"?Ph.makeTextShadow(_n.contrast(o)):qg(u)),s&&e.style("text-decoration-line",qg(mW(s)))};function qg(e){return e==="none"?void 0:e}var gW={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function yW(e){return gW[e]}function mW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};hr.setRect=function(e,r,t,n,a){e.call(hr.setPosition,r,t).call(hr.setSize,n,a)};hr.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",Ff(a,o));else return!1;return!0};hr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);hr.translatePoint(n,a,r,t)})};hr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};hr.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=Rh.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){hr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};hr.crispRound=function(e,r,t){return!r||!Xl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};hr.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||"";_n.stroke(r,n||o.color),hr.dashLine(r,l,i)};hr.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||"";sn.select(this).call(_n.stroke,t||o.color).call(hr.dashLine,l,i)})};hr.dashLine=function(e,r,t){t=+t||0,r=hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};hr.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 q8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=hr.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),b=r.uid;hr.pattern(e,"point",t,b,l,h,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var y=o.type,w="scatterfill-"+r.uid;if(n&&(w="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(U8,t,w,"linear",o.colorscale,"fill",T,m,!0,!1)}else y==="horizontal"&&(y=y+"reversed"),e.call(hr.gradient,t,w,y,o.colorscale,"fill")}else r.fillcolor&&e.call(_n.fill,r.fillcolor)}hr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};q8(e,a,r,!1)};hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&q8(a,n[0].trace,r,t)})};var C8=S8();hr.symbolNames=[];hr.symbolFuncs=[];hr.symbolBackOffs=[];hr.symbolNeedLines={};hr.symbolNoDot={};hr.symbolNoFill={};hr.symbolList=[];Object.keys(C8).forEach(function(e){var r=C8[e],t=r.n;hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),hr.symbolNames[t]=e,hr.symbolFuncs[t]=r.f,hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(hr.symbolNeedLines[t]=!0),r.noDot?hr.symbolNoDot[t]=!0:hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(hr.symbolNoFill[t]=!0)});var xW=hr.symbolNames.length,bW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";hr.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=hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=xW||e>=400?0:Math.floor(Math.max(e,0))};function O8(e,r,t,n){var a=e%100;return hr.symbolFuncs[a](r,t,n)+(e>=200?bW:"")}var E8=sW("~f"),B8={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}};hr.gradient=function(e,r,t,n,a,o){var i=B8[n];return U8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function U8(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),b=0;b=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=hr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Wg(e,t),h=Yg(e,t);r.attr("d",O8(s,u,f,h))}var p=!1,b,y,w;if(e.so)w=l.outlierwidth,y=l.outliercolor,b=i.outliercolor;else{var T=(l||{}).width;w=(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):dt.isArrayOrTypedArray(l.color)?y=_n.defaultLine:y=l.color,dt.isArrayOrTypedArray(i.color)&&(b=_n.defaultLine,p=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&hr.dashLine(r,m,w),e.om)r.call(_n.stroke,b).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,dt.isArrayOrTypedArray(S)&&(S=S[0],B8[S]||(S=0));var x=i.pattern,M=hr.getPatternAttr,d=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(S&&S!=="none"){var _=e.mgc;_?p=!0:_=k.color;var g=t.uid;p&&(g+="-"+e.i),hr.gradient(r,a,g,S,[[0,_],[1,b]],"fill")}else if(d){var c=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,c=!0);var v=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||dt.isArrayOrTypedArray(x.shape)||dt.isArrayOrTypedArray(x.path)||dt.isArrayOrTypedArray(x.bgcolor)||dt.isArrayOrTypedArray(x.fgcolor)||dt.isArrayOrTypedArray(x.size)||dt.isArrayOrTypedArray(x.solidity);var F=t.uid;c&&(F+="-"+e.i),hr.pattern(r,"point",a,F,d,R,N,e.mcc,x.fillmode,D,v,E)}else dt.isArrayOrTypedArray(b)?_n.fill(r,b[e.i]):_n.fill(r,b);w&&_n.stroke(r,y)}};hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=hr.tryColorscale(t,""),r.lineScale=hr.tryColorscale(t,"line"),Rh.traceIs(e,"symbols")&&(r.ms2mrc=vW.isBubble(e)?dW(e):function(){return(t.size||6)/2}),e.selectedpoints&&dt.extendFlat(r,hr.makeSelectedPointStyleFns(e)),r};hr.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;(dt.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:z8*M});var p=a.color,b=o.color,y=i.color;(b||y)&&(r.selectedColorFn=function(x){var M=x.mcc||p;return x.selected?b||M:y||M});var w=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return Rh.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var M=x.mrc||w/2;return x.selected?k?T/2:M:S?m/2:M}),r};hr.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:_n.addOpacity(h,z8))},r};hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.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){_n.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",O8(hr.symbolNumber(l),u,Wg(i,r),Yg(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}hr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=hr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?dt.extractOption(l,r,"txt","texttemplate"):dt.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={};pW(p,r,l.i),s=dt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:h,locale:i._d3locale,template:s})}var b=l.tp||r.textposition,y=V8(l,r),w=n?n(l):l.tc||r.textfont.color;u.call(hr.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:w}).text(s).call(Ph.convertToTspans,t).call(H8,b,y,l.mrc)})}};hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=V8(n,r);_n.fill(a,o);var u=Rh.traceIs(r,"bar-like");H8(a,i,l,n.mrc2||n.mrc,u)})}};var L8=.5;hr.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}hr.applyBackoff=W8;hr.makeTester=function(){var e=dt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(fW.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=dt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});hr.tester=e,hr.testref=r};hr.savedBBoxes={};var Bg=0,MW=1e4;hr.bBox=function(e,r,t){t||(t=D8(e));var n;if(t){if(n=hr.savedBBoxes[t],n)return dt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=D8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=hr.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=hr.savedBBoxes[t],n)return dt.extendFlat({},n)}}var s,f;r?s=e:(f=hr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(Ph.positionText,0,0);var h=s.getBoundingClientRect(),p=hr.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={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 Bg>=MW&&(hr.savedBBoxes={},Bg=0),t&&(hr.savedBBoxes[t]=b),Bg++,dt.extendFlat({},b)};function D8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}hr.setClipUrl=function(e,r,t){e.attr("clip-path",Gg(r,t))};function Gg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}hr.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}};hr.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+=Ff(r,t),i=i.trim(),e[o]("transform",i),i};hr.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}};hr.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 TW=/\s*sc.*/;hr.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(TW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var AW=/translate\([^)]*\)\s*$/;hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.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(AW);r===1&&t===1?n=[]:n=[Ff(i,l),"scale("+r+","+t+")",Ff(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Yg(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}hr.getMarkerStandoff=Yg;var If=Math.atan2,Gl=Math.cos,ou=Math.sin;function R8(e,r){var t=r[0],n=r[1];return[t*Gl(e)-n*ou(e),t*ou(e)+n*Gl(e)]}var P8,I8,F8,N8,Ug,Hg;function Wg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||dt.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]),b=If(p[1]-a,p[0]-n),y=If(h[1]-a,h[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=P8/180*Math.PI,S=I8/180*Math.PI,x=k-T,M=Gl(S)*ou(x),d=ou(S)*Gl(m)-Gl(S)*ou(m)*Gl(x);w=-If(M,d)-Math.PI,P8=s,I8=f}var _=R8(b,[Gl(w),0]),g=R8(y,[ou(w),0]);t=If(_[1]+g[1],_[0]+g[0])/Math.PI*180,o==="previous"&&!(Hg===r.uid&&e.i===Ug+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Hg===r.uid&&e.i===Ug+1&&Xl(n)&&Xl(a)){var c=n-F8,A=a-N8,v=r.line&&r.line.shape||"",D=v.slice(v.length-1);D==="h"&&(A=0),D==="v"&&(c=0),t+=If(A,c)/Math.PI*180+90}else t=null}return F8=n,N8=a,Ug=e.i,Hg=r.uid,t}hr.getMarkerAngle=Wg});var Nf=de((X0e,Q8)=>{"use strict";var lu=it(),kW=nt(),SW=ln(),Xg=Er(),Zl=ir(),Z8=Zl.strTranslate,Ih=mt(),Fh=Xr(),su=On(),J8=G0(),CW=Cn().OPPOSITE_SIDE,K8=/ [XY][0-9]* /,Zg=1.6,Jg=1.6;function EW(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,b=a.title,y=(b&&b.text?b.text:"").trim(),w=!1,T=b&&b.font?b.font:{},m=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,d=T.variant,_=T.textcase,g=T.lineposition,c=T.shadow,A=t.subtitlePropName,v=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),N=!1,F=1,I=E.font,L=I.family,P=I.size,O=I.color,U=I.weight,X=I.style,$=I.variant,j=I.textcase,Y=I.lineposition,q=I.shadow,Q;o==="title.text"?Q="titleText":o.indexOf("axis")!==-1?Q="axisTitleText":o.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var ae=e._context.edits[Q];function K(Ce,Fe){return Ce===void 0||Fe===void 0?!1:Ce.replace(K8," % ")===Fe.replace(K8," % ")}y===""?p=0:K(y,i)&&(ae||(y=""),p=.2,w=!0),v&&(R===""?F=0:K(R,D)&&(ae||(R=""),F=.2,N=!0)),t._meta?y=Zl.templateString(y,t._meta):n._meta&&(y=Zl.templateString(y,n._meta));var oe=y||R||ae,re;h||(h=Zl.ensureSingle(n._infolayer,"g","g-"+r),re=n._hColorbarMoveTitle);var V=h.selectAll("text."+r).data(oe?[0]:[]);V.enter().append("text"),V.text(y).attr("class",r),V.exit().remove();var ee=null,H=r+"-subtitle",te=R||ae;if(v&&(ee=h.selectAll("text."+H).data(te?[0]:[]),ee.enter().append("text"),ee.text(R).attr("class",H),ee.exit().remove()),!oe)return h;function le(Ce,Fe){Zl.syncOrAsync([ve,Ae],{title:Ce,subtitle:Fe})}function ve(Ce){var Fe=Ce.title,Ee=Ce.subtitle,ze;!f&&re&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||re)&&(ze+=Z8(0,(f.offset||0)-(re||0)))):ze=null,Fe.attr("transform",ze);function Ue(pe){if(pe){var he=lu.select(pe.node().parentNode).select("."+H);if(!he.empty()){var xe=pe.node().getBBox();if(xe.height){var Le=xe.y+xe.height+Zg*P;he.attr("y",Le)}}}}if(Fe.style("opacity",p*Fh.opacity(S)).call(Ih.font,{color:Fh.rgb(S),size:lu.round(k,2),family:m,weight:x,style:M,variant:d,textcase:_,shadow:c,lineposition:g}).attr(s).call(su.convertToTspans,e,Ue),Ee&&!Ee.empty()){var ge=h.select("."+r+"-math-group"),Me=Fe.node().getBBox(),ke=ge.node()?ge.node().getBBox():void 0,me=ke?ke.y+ke.height+Zg*P:Me.y+Me.height+Jg*P,ye=Zl.extendFlat({},s,{y:me});Ee.attr("transform",ze),Ee.style("opacity",F*Fh.opacity(O)).call(Ih.font,{color:Fh.rgb(O),size:lu.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(ye).call(su.convertToTspans,e)}return SW.previousPromises(e)}function Ae(Ce){var Fe=Ce.title,Ee=lu.select(Fe.node().parentNode);if(u&&u.selection&&u.side&&y){Ee.attr("transform",null);var ze=CW[u.side],Ue=u.side==="left"||u.side==="top"?-1:1,ge=kW(u.pad)?u.pad:2,Me=Ih.bBox(Ee.node()),ke={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var ye in me)for(var pe in me[ye]){var he=me[ye][pe];ke[pe]=Math.max(ke[pe],he)}var xe={left:ke.l,top:ke.t,right:n.width-ke.r,bottom:n.height-ke.b},Le=u.maxShift||Ue*(xe[u.side]-Me[u.side]),qe=0;if(Le<0)qe=Le;else{var Ne=u.offsetLeft||0,$e=u.offsetTop||0;Me.left-=Ne,Me.right-=Ne,Me.top-=$e,Me.bottom-=$e,u.selection.each(function(){var Be=Ih.bBox(this);Zl.bBoxIntersect(Me,Be,ge)&&(qe=Math.max(qe,Ue*(Be[u.side]-Me[ze])+ge))}),qe=Math.min(Le,qe),a._titleScoot=Math.abs(qe)}if(qe>0||Le<0){var Ve={left:[-qe,0],right:[qe,0],top:[0,-qe],bottom:[0,qe]}[u.side];Ee.attr("transform",Z8(Ve[0],Ve[1]))}}}V.call(le,ee);function we(Ce,Fe){Ce.text(Fe).on("mouseover.opacity",function(){lu.select(this).transition().duration(J8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){lu.select(this).transition().duration(J8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ae&&(y?V.on(".opacity",null):(we(V,i),w=!0),V.call(su.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?Xg.call("_guiRestyle",e,o,Ce,l):Xg.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(le)}).on("input",function(Ce){this.text(Ce||" ").call(su.positionText,s.x,s.y)}),v)){if(v&&!y){var ce=V.node().getBBox(),Se=ce.y+ce.height+Jg*P;ee.attr("y",Se)}R?ee.on(".opacity",null):(we(ee,D),N=!0),ee.call(su.makeEditable,{gd:e}).on("edit",function(Ce){Xg.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(le)}).on("input",function(Ce){this.text(Ce||" ").call(su.positionText,ee.attr("x"),ee.attr("y"))})}return V.classed("js-placeholder",w),ee&&!ee.empty()&&ee.classed("js-placeholder",N),h}Q8.exports={draw:EW,SUBTITLE_PADDING_EM:Jg,SUBTITLE_PADDING_MATHJAX_EM:Zg}});var Vh=de((Z0e,tM)=>{"use strict";var LW=it(),DW=Ns().utcFormat,xt=ir(),RW=xt.numberFormat,Pi=nt(),Wo=xt.cleanNumber,PW=xt.ms2DateTime,$8=xt.dateTime2ms,Ii=xt.ensureNumber,j8=xt.isArrayOrTypedArray,Xo=nn(),Nh=Xo.FP_SAFE,ii=Xo.BADNUM,IW=Xo.LOG_CLIP,FW=Xo.ONEWEEK,zh=Xo.ONEDAY,qh=Xo.ONEHOUR,eM=Xo.ONEMIN,rM=Xo.ONESEC,Oh=en(),Hh=on(),Bh=Hh.HOUR_PATTERN,Uh=Hh.WEEKDAY_PATTERN;function zf(e){return Math.pow(10,e)}function Kg(e){return e!=null}tM.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 d=r.range[0],_=r.range[1];return .5*(d+_-2*IW*Math.abs(d-_))}else return ii}function i(x,M,d,_){if((_||{}).msUTC&&Pi(x))return+x;var g=$8(x,d||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=$8(new Date(A))+c/10}else return ii;return g}function l(x,M,d){return PW(x,M,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Kg(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 d=new Array(M),_=0;_r.range[1]&&(d=!d);for(var _=d?-1:1,g=_*x,c=0,A=0;AD)c=A+1;else{c=g<(v+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 w(x,r._m,r._b);for(var d=0,_=0;_r._rangebreaks[_].pmax&&(d=_+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Ii,r.l2c=r.type==="log"?zf:Ii,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 zf(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=Ii,r.d2p=r.r2p=function(x){return r.l2p(Wo(x))},r.p2d=r.p2r=m,r.cleanPos=Ii):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Wo(x),M)},r.r2d=r.r2c=function(x){return zf(Wo(x))},r.d2c=r.r2l=Wo,r.c2d=r.l2r=Ii,r.c2r=o,r.l2d=zf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return zf(m(x))},r.r2p=function(x){return r.l2p(Wo(x))},r.p2r=m,r.cleanPos=Ii):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,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,M,d){return l(m(x),M,d)},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=b(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ii,r.r2l=b,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:Ii(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=Ii,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:Ii(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,d,_,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Oh.id2name(c)];M=M.concat(A._traceIndices)}}var v=[[0,{}],[0,{}]],D=[];for(d=0;dA[1]&&(_[c?0:1]=d),_[0]===_[1]){var v=r.l2r(M),D=r.l2r(d);if(M!==void 0){var E=v+1;d!==void 0&&(E=Math.min(E,D)),_[c?1:0]=E}if(d!==void 0){var R=D+1;M!==void 0&&(R=Math.max(R,v)),_[c?0:1]=R}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var d=xt.nestedProperty(r,x).get(),_,g;if(r.type==="date"?g=xt.dfltRange(r.calendar):a==="y"?g=Hh.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=M.dfltRange||Hh.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!d||d.length!==2){xt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=xt.cleanDate(d[0],ii,r.calendar),d[1]=xt.cleanDate(d[1],ii,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!xt.isDateTime(d[_],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var v=xt.constrain(r.r2l(d[0]),xt.MIN_MS+1e3,xt.MAX_MS-1e3);d[0]=r.l2r(v-1e3),d[1]=r.l2r(v+1e3);break}}else{if(!Pi(d[_]))if(!(c||A)&&Pi(d[1-_]))d[_]=d[1-_]*(_?10:.1);else{r[x]=g;break}if(d[_]<-Nh?d[_]=-Nh:d[_]>Nh&&(d[_]=Nh),d[0]===d[1]){var D=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=D,d[1]+=D}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var d=Oh.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var _=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(_);var c=r.r2l(r[_][0],g),A=r.r2l(r[_][1],g),v=a==="y";if(v?(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*(v?A:c)),D=0;Dg&&(g+=7,c<_&&(c+=7));break;case Bh:A=new Date(x);var R=A.getUTCHours(),N=A.getUTCMinutes(),F=A.getUTCSeconds(),I=A.getUTCMilliseconds();c=R+(N/60+F/3600+I/36e5),_>g&&(g+=24,c<_&&(c+=24));break;case"":c=x;break}if(c>=_&&c=_&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var nM=nt(),Qg=ir(),NW=nn().BADNUM,Gh=Qg.isArrayOrTypedArray,zW=Qg.isDateTime,qW=Qg.cleanNumber,aM=Math.round;oM.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Gh(a)&&!a.length)return"-";if(!o&&VW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function iM(e){return Math.max(1,(e-1)/1e3)}function HW(e,r){for(var t=e.length,n=iM(t),a=0,o=0,i={},l=0;la*2}function VW(e){return Gh(e[0])&&Gh(e[1])}});var uu=de((K0e,dM)=>{"use strict";var GW=it(),fM=nt(),Zo=ir(),Yh=nn().FP_SAFE,YW=Er(),WW=mt(),cM=en(),XW=cM.getFromId,ZW=cM.isLinked;dM.exports={applyAutorangeOptions:vM,getAutoRange:jg,makePadFn:e2,doAutoRange:KW,findExtremes:QW,concatExtremes:n2};function jg(e,r){var t,n,a=[],o=e._fullLayout,i=e2(o,r,0),l=e2(o,r,1),u=n2(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(d)-l(_),A>x?v/A>M&&(g=d,c=_,M=v/A):v/S>M&&(g={val:d.val,nopad:1},c={val:_.val,nopad:1},M=v/S));function D(I,L){return Math.max(I,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),F=h/(1-Math.min(.5,N/S));a=h>0?[0,F]:[F,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-lM(r,d.val,_.val))/(S-i(g)-l(c)),a=[g.val-M*i(g),c.val+M*l(c)];return a=vM(a,r),r.limitRange&&r.limitRange(),y&&a.reverse(),Zo.simpleMap(a,r.l2r||Number)}function lM(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),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=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-Yh&&(k=p),p>S&&p=v;h--)A(h);return{min:n,max:a,opts:t}}function r2(e,r,t,n){hM(e,r,t,n,$W)}function t2(e,r,t,n){hM(e,r,t,n,jW)}function hM(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 uM(e){return fM(e)&&Math.abs(e)=r}function eX(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Wh(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Wh(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function rX(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Wh(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Wh(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Wh(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=eX(t,r),n=rX(n,r),[t,n]}});var Lt=de(($0e,zM)=>{"use strict";var Ra=it(),Jt=nt(),fu=ln(),Of=Er(),Cr=ir(),cu=Cr.strTranslate,Jl=On(),tX=Nf(),Bf=Xr(),da=mt(),nX=Da(),pM=bg(),Q0e=on(),wn=nn(),aX=wn.ONEMAXYEAR,Jh=wn.ONEAVGYEAR,Kh=wn.ONEMINYEAR,iX=wn.ONEMAXQUARTER,l2=wn.ONEAVGQUARTER,Qh=wn.ONEMINQUARTER,oX=wn.ONEMAXMONTH,hu=wn.ONEAVGMONTH,$h=wn.ONEMINMONTH,pa=wn.ONEWEEK,Bn=wn.ONEDAY,Jo=Bn/2,Ni=wn.ONEHOUR,Uf=wn.ONEMIN,jh=wn.ONESEC,lX=wn.ONEMILLI,sX=wn.ONEMICROSEC,Kl=wn.MINUS_SIGN,rv=wn.BADNUM,s2={K:"zeroline"},u2={K:"gridline",L:"path"},f2={K:"minor-gridline",L:"path"},kM={K:"tick",L:"path"},gM={K:"tick",L:"text"},yM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},tv=Cn(),qf=tv.MID_SHIFT,Ql=tv.CAP_SHIFT,Hf=tv.LINE_SPACING,uX=tv.OPPOSITE_SIDE,ev=3,or=zM.exports={};or.setConvert=Vh();var fX=$g(),zi=en(),cX=zi.idSort,hX=zi.isLinked;or.id2name=zi.id2name;or.name2id=zi.name2id;or.cleanId=zi.cleanId;or.list=zi.list;or.listIds=zi.listIds;or.getFromId=zi.getFromId;or.getFromTrace=zi.getFromTrace;var SM=uu();or.getAutoRange=SM.getAutoRange;or.findExtremes=SM.findExtremes;var vX=1e-4;function d2(e){var r=(e[1]-e[0])*vX;return[e[0]-r,e[1]+r]}or.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},Cr.coerce(e,r,s,u)};or.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?(Cr.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))};or.saveRangeInitial=function(e,r){for(var t=or.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=or.tickIncrement(e,"M6","reverse")+Bn*1.5:o.exactMonths>i?e=or.tickIncrement(e,"M1","reverse")+Bn*15.5:e-=Jo;var u=or.tickIncrement(e,t);if(u<=n)return u}return e}or.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Jt(r._tmin),a;if(n){var o=or.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Cr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Cr.simpleMap(a,r.l2r),e._isMinor=!0,or.prepTicks(e,t),n){var l=Jt(r.dtick),u=Jt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?a2(s,f)?s===2*pa&&f===2*Bn&&(e.dtick=pa):s===2*pa&&f===3*Bn?e.dtick=pa:s===pa&&!(r._input.minor||{}).nticks?e.dtick=Bn:bM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":a2(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"?a2(s,f)||(e.dtick=bM(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function a2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function bM(e,r){return Math.abs(e/r-1)<.001}or.prepTicks=function(e,r){var t=Cr.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?Cr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Cr.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,or.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>=Kh?s>=Kh&&s<=aX?h=s:h=Jh:t===l2&&f>=Qh?s>=Qh&&s<=iX?h=s:h=l2:f>=$h?s>=$h&&s<=oX?h=s:h=hu:t===pa&&f>=pa?h=pa:f>=Bn?h=Bn:t===Jo&&f>=Jo?h=Jo:t===Ni&&f>=Ni&&(h=Ni);var p;h>=s&&(h=s,p=!0);var b=a+h;if(r.rangebreaks&&h>0){for(var y=84,w=0,T=0;Tpa&&(h=s)}(h>0||n===0)&&(e[n].periodX=a+h/2)}}or.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||Cr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Cr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Cr.extendFlat({},r,r.minor);if(M?or.prepMinorTicks(d,r,t):or.prepTicks(d,t),d.tickmode==="array"){x?(T=[],y=_M(r,!M)):(m=[],w=_M(r,!M));continue}if(d.tickmode==="sync"){T=[],y=xX(r);continue}var _=d2(s),g=_[0],c=_[1],A=Jt(d.dtick),v=n==="log"&&!(A||d.dtick.charAt(0)==="L"),D=or.tickFirst(d,t);if(x){if(r._tmin=D,D=c:R<=c;R=or.tickIncrement(R,I,f,a)){if(x&&N++,d.rangebreaks&&!f){if(R=p)break}if(T.length>b||R===E)break;E=R;var L={value:R};x?(v&&R!==(R|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),T.push(L)):(L.minor=!0,m.push(L))}}if(!m||m.length<2)u=!1;else{var P=(m[1].value-m[0].value)*(l?-1:1);GX(P,r.tickformat)||(u=!1)}if(!u)k=T;else{var O=T.concat(m);i&&T.length&&(O=O.slice(1)),O=O.sort(function(Se,Ce){return Se.value-Ce.value}).filter(function(Se,Ce,Fe){return Ce===0||Se.value!==Fe[Ce-1].value});var U=O.map(function(Se,Ce){return Se.minor===void 0&&!Se.skipLabel?Ce:null}).filter(function(Se){return Se!==null});U.forEach(function(Se){u.map(function(Ce){var Fe=Se+Ce;Fe>=0&&Fe-1;oe--){if(T[oe].drop){T.splice(oe,1);continue}T[oe].value=o2(T[oe].value,r);var H=r.c2p(T[oe].value);(re?ee>H-V:eep||Eep&&(Fe.periodX=p),Eea&&pJh)r/=Jh,n=a(10),e.dtick="M"+12*Fi(r,n,Xh);else if(o>hu)r/=hu,e.dtick="M"+Fi(r,1,wM);else if(o>Bn){if(e.dtick=Fi(r,Bn,e._hasDayOfWeekBreaks?[1,2,7,14]:bX),!t){var i=or.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Cr.dateTick0(e.calendar,2):e.tick0=Cr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Ni?e.dtick=Fi(r,Ni,wM):o>Uf?e.dtick=Fi(r,Uf,MM):o>jh?e.dtick=Fi(r,jh,MM):(n=a(10),e.dtick=Fi(r,n,Xh))}else if(e.type==="log"){e.tick0=0;var u=Cr.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"+Fi(r,n,Xh)}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))):m2(e)?(e.tick0=0,n=1,e.dtick=Fi(r,n,_X)):(e.tick0=0,n=a(10),e.dtick=Fi(r,n,Xh));if(e.dtick===0&&(e.dtick=1),!Jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function DM(e){var r=e.dtick;if(e._tickexponent=0,!Jt(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>=Bn&&a<=10||r>=Bn*15)e._tickround="d";else if(r>=Uf&&a<=16||r>=Ni)e._tickround="M";else if(r>=jh&&a<=19||r>=Uf)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(Jt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Jt(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&&(vu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!p2(u)||vu(e.exponentformat)&&e.exponentformat==="SI extended"&&!g2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}or.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Jt(r))return Cr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Cr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?LM:EM,u=e+a*.01,s=Cr.roundUp(Cr.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)};or.tickFirst=function(e,r){var t=e.r2l||Number,n=Cr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&m<=e._length?T:null};if(o&&Cr.isArrayOrTypedArray(e.ticktext)){var h=Cr.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=Gf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function MX(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=Vf(Math.pow(10,i),e,a,n);else if(Jt(o)||u==="D"&&(e.minorloglabels==="complete"||Cr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Cr.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],b=Math.abs(p),y=e.exponentformat;y==="power"||vu(y)&&y!=="SI extended"&&p2(p)||vu(y)&&y==="SI extended"&&g2(p)?(r.text=h[0],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Kl)+b+""),r.fontSize*=1.25):(y==="e"||y==="E")&&b>2?r.text=h[0]+y+(p>0?"+":Kl)+b:(r.text=Vf(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,Cr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="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 TX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function AX(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 kX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=Vf(r.x,e,a,n)}function SX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=CX(o);if(i[1]>=100)r.text=Vf(Cr.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=Vf(r.x,e,a,n)}function CX(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 PM=["f","p","n","\u03BC","m","","k","M","G","T"],EX=["q","r","y","z","a",...PM,"P","E","Z","Y","R","Q"],vu=e=>["SI","SI extended","B"].includes(e);function p2(e){return e>14||e<-15}function g2(e){return e>32||e<-30}function LX(e,r){return vu(r)?!!(r==="SI extended"&&g2(e)||r!=="SI extended"&&p2(e)):!1}function Vf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=or.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};DM(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":vu(i)&&(e+=i==="SI extended"?EX[l/3+10]:PM[l/3+5])}return a?Kl+e:e}or.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*hu}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],b=s[1];return(!p&&typeof p!="number"||h(p)<=h(u))&&(!b&&typeof b!="number"||h(b)>=h(u))}function o(u,s){var f=s[0]===null,h=s[1]===null,p=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||p)&&(h||b)}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 Cr.syncOrAsync(a.map(function(u){return function(){if(u){var s=or.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=or.drawOne(e,s,t);return s._shiftPusher&&v2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Cr.simpleMap(s._r,s.r2l),f}}}))};or.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=or.counterLetter(s),p=u._plots[r._mainSubplot],b=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),v2(r,y,n,!0),v2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=VX(r,n));var w=p[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=or.calcTicks(r),x=[r.mirror,m,k].join("_");for(o=0;o0?Ee.bottom-Ce:0,Fe))));var Me=0,ke=0;if(r._shiftPusher&&(Me=Math.max(Fe,Ee.height>0?ce==="l"?Ce-Ee.left:Ee.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(ke=(r._titleStandoff||0)+(r._titleScoot||0),ce==="l"&&(ke+=AM(r))),r._fullDepth=Math.max(Me,ke)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],ye=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?Ce-Ee.top:0,Fe),me.reverse()),Ee.width>0){var pe=Ee.right-(r._offset+r._length);pe>0&&(ze.xr=1,ze.r=pe);var he=r._offset-Ee.left;he>0&&(ze.xl=0,ze.l=he)}}else if(ce==="l"?(r._depth=Math.max(Ee.height>0?Ce-Ee.left:0,Fe),ze[ce]=r._depth-ye):(r._depth=Math.max(Ee.height>0?Ee.right-Ce:0,Fe),ze[ce]=r._depth+ye,me.reverse()),Ee.height>0){var xe=Ee.bottom-(r._offset+r._length);xe>0&&(ze.yb=0,ze.b=xe);var Le=r._offset-Ee.top;Le>0&&(ze.yt=1,ze.t=Le)}ze[h]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(ze[ce]+=AM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[Se]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[Se]+=Fe),r.mirror===!0||r.mirror==="ticks"?Ue[h]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[h]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}we&&(ge=Of.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(TM(ze,r.automargin),TM(Ue,r.automargin)),fu.autoMargin(e,y2(r),ze),fu.autoMargin(e,FM(r),Ue),fu.autoMargin(e,NM(r),ge)}),Cr.syncOrAsync(ve)}};function TM(e,r){if(e){var t=Object.keys(yM).reduce(function(n,a){return r.indexOf(a)!==-1&&yM[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 DX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Cr.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 cu(a+e._offset+e.l2p(c2(p))+t,o+n)}:function(p){return cu(o+n,a+e._offset+e.l2p(c2(p))+t)}};function c2(e){return e.periodX!==void 0?e.periodX:e.x}function FX(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=ev,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(h+=b*Ql,p+=(e.linewidth||0)/2),(o||i)&&(h+=(e.linewidth||0)/2,p+=ev),u&&f==="top"&&(p-=b*(1-Ql)),(o||a)&&(h=-h),(f==="bottom"||f==="right")&&(p=-p),[s?h:0,u?p:0]}or.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};or.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",b=0,y=0,w=p?e.ticklen:0;if(h?w*=-1:f&&(w=0),p&&(b+=w,t)){var T=Cr.deg2rad(t);b=w*Math.cos(T)+1,y=w*Math.sin(T)}e.showticklabels&&(p||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(h?-1:1);var m={labelStandoff:b,labelShift:y},k,S,x,M,d=0,_=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!h&&_==="bottom"||h&&_==="top",M=A?1:-1,h&&(M*=-1),k=y*M,S=r+b*M,x=A?1:-.2,Math.abs(c)===90&&(h?x+=qf:c===-90&&_==="bottom"?x=Ql:c===90&&_==="top"?x=qf:x=.5,d=qf/2*(c/90)),m.xFn=function(E){return E.dx+k+d*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!Jt(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&&_==="left"||h&&_==="right",M=A?1:-1,h&&(M*=-1),k=b,S=y*M,x=0,!h&&Math.abs(c)===90&&(c===-90&&_==="left"||c===90&&_==="right"?x=Ql:x=.5),h){var v=Jt(c)?+c:0;if(v!==0){var D=Cr.deg2rad(v);d=Math.abs(Math.sin(D))*Ql*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*qf},m.anchorFn=function(E,R){return Jt(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 nv(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}or.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,nv);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Bf.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),av(r,[kM]),o.attr("transform",t.transFn)};or.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&&or.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;y--){var w=y?p:b;if(w){var T=w.selectAll("path."+n).data(y?i:o,nv);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 Bf.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)}}av(r,[u2,f2])}};or.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=or.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 cX(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Bf.stroke,r.zerolinecolor||Bf.defaultLine).style("stroke-width",da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),av(r,[s2])};or.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:[],nv),p=[];h.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Ra.select(this),U=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[U]?p.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),av(r,[gM]),h.exit().remove(),t.repositionOnUpdate&&h.each(function(P){Ra.select(this).select("text").call(Jl.positionText,u.xFn(P),u.yFn(P))});function b(P,O){P.each(function(U){var X=Ra.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Jt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Jl.lineCount(X),Q=Hf*U.fontSize,ae=u.heightFn(U,Jt(O)?+O:0,(q-1)*Q);if(ae&&(Y+=cu(0,ae)),$.empty()){var K=X.select("text");K.attr({transform:Y,"text-anchor":j}),K.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var oe=da.bBox($.node()).width,re=oe*{end:-.5,start:.5}[j];$.attr("transform",Y+cu(re,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Cr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),Q=r.side,ae=1/0,K=-1/0;h.each(function(ee){var H=Ra.select(this),te=H.select(".text-math-group");if(te.empty()){var le=da.bBox(H.node()),ve=0;U?(le.right>q||le.leftq||le.top+(r.tickangle?0:ee.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},b(h,f+1?f:s);function y(){return p.length&&Promise.all(p)}var w=null;function T(){if(b(h,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;h.each(function(ze){P=Math.max(P,ze.fontSize);var Ue=r.l2p(ze.x),ge=h2(this),Me=da.bBox(ge.node());X=Math.max(X,Jl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Ue-Me.width/2,right:Ue+Me.width/2+2,width:Me.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,Q=$?r.ticklen:P*1.25*X,ae=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),K=q/ae,oe=r.autotickangles.map(function(ze){return ze*Math.PI/180}),re=oe.find(function(ze){return Math.abs(Math.cos(ze))<=K});re===void 0&&(re=oe.reduce(function(ze,Ue){return Math.abs(Math.cos(ze))F*N&&(D=N,c[g]=A[g]=E[g])}var I=Math.abs(D-v);I-M>0?(I-=M,M*=1+M/I):M=0,r._id.charAt(0)!=="y"&&(M=-M),c[_]=S.p2r(S.r2p(A[_])+d*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=Cr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function NX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,nv);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Bf.stroke,r.dividercolor).style("stroke-width",da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}or.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 AM(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*Hf):t?r*(t+1)*Hf:r}function zX(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*(qf+l*Hf));else{var u=Gf(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=or.getPxPosition(e,r),h,p,b;a==="x"?(p=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=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 w=r._selections[r._id+"tick"];if(y={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var T=da.getTranslate(w.node().parentNode);y.offsetLeft=T.x,y.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(y.pad=0)}return r._titleStandoff=i,tX.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:y,transform:h,attributes:{x:p,y:b,"text-anchor":"middle"}})}or.shouldShowZeroLine=function(e,r,t){var n=Cr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===rv)&&(IM(r,0)||!qX(e,r,t,n)||OX(e,r))};or.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=sX:/%L/.test(r)?e>=lX:/%[SX]/.test(r)?e>=jh:/%M/.test(r)?e>=Uf:/%[HI]/.test(r)?e>=Ni:/%p/.test(r)?e>=Jo:/%[Aadejuwx]/.test(r)?e>=Bn:/%[UVW]/.test(r)?e>=pa:/%[Bbm]/.test(r)?e>=$h:/%[q]/.test(r)?e>=Qh:/%[Yy]/.test(r)?e>=Kh:!0}});var OM=de((j0e,qM)=>{"use strict";qM.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 x2=de((ehe,BM)=>{"use strict";var YX=OM();BM.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&&(YX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var HM=de((rhe,UM)=>{var WX={left:0,top:0};UM.exports=XX;function XX(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=ZX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function ZX(e){return e===window||e===document||e===document.body?WX:e.getBoundingClientRect()}});var iv=de((the,VM)=>{"use strict";var JX=Jp();function KX(){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}VM.exports=JX&&KX()});var YM=de((nhe,GM)=>{"use strict";GM.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 ZM=de((ahe,XM)=>{"use strict";var WM=ir(),QX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];XM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=WM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=WM.constrain(Math.floor(t*3),0,2),QX[t][r]}});var KM=de((ihe,JM)=>{"use strict";var $X=Sf(),jX=oh(),eZ=xf().getGraphDiv,rZ=pf(),b2=JM.exports={};b2.wrapped=function(e,r,t){e=eZ(e),e._fullLayout&&jX.clear(e._fullLayout._uid+rZ.HOVERID),b2.raw(e,r,t)};b2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&$X.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=de((ohe,eT)=>{"use strict";var tZ=HM(),_2=Qp(),nZ=iv(),aZ=ir().removeElement,iZ=on(),$l=eT.exports={};$l.align=YM();$l.getCursor=ZM();var $M=KM();$l.unhover=$M.wrapped;$l.unhoverRaw=$M.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,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,nZ?(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 d=h[M];!x[M]&&typeof d!="function"&&(x[M]=d)})),r.clickFn&&r.clickFn(n,x),b||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function jM(){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=jM;function QM(e){return tZ(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ko=de((lhe,rT)=>{"use strict";rT.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 aT=de((she,nT)=>{"use strict";var w2=Ko(),Yf="data-savedcursor",tT="!!";nT.exports=function(r,t){var n=r.attr(Yf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var M2=kn(),oZ=Si();iT.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:oZ.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:M2({editType:"legend"}),grouptitlefont:M2({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:M2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Xf=de(Wf=>{"use strict";Wf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Wf.isVertical=function(r){return r.orientation!=="h"};Wf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Wf.getId=function(r){return r._id||"legend"}});var k2=de((che,oT)=>{"use strict";var ov=Er(),ga=ir(),lZ=yt(),sZ=Sn(),uZ=T2(),fZ=Vs(),A2=Xf();function cZ(e,r,t,n,a){var o=r[e]||{},i=lZ.newContainer(t,e);function l(P,O){return ga.coerce(o,i,uZ,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 U=f._input,X=f;return ga.coerce(U,X,sZ,P,O)},p=t.font||{},b=ga.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),y=0,w=!1,T="normal",m=(t.shapes||[]).filter(function(P){return P.showlegend});function k(P){return ov.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(d===!1&&(t[e]=void 0),!(d===!1&&!o.uirevision)&&(l("uirevision",t.uirevision),d!==!1)){l("borderwidth");var _=l("orientation"),g=l("yref"),c=l("xref"),A=_==="h",v=g==="paper",D=c==="paper",E,R,N,F="left";A?(E=0,ov.getComponentMethod("rangeslider","isVisible")(r.xaxis)?v?(R=1.1,N="bottom"):(R=1,N="top"):v?(R=-.1,N="top"):(R=0,N="bottom")):(R=1,N="auto",D?E=1.02:(E=1,F="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:v?-2:0,max:v?3:1,dflt:R}},"y"),l("traceorder",T),A2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",F),l("yanchor",N),l("maxheight"),l("valign"),ga.noneOrAll(o,i,["x","y"]);var I=l("title.text");if(I){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)}}}oT.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Qo=Er(),S2=ir(),hZ=S2.pushUnique,vZ=Xf(),lT=!0;C2.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"&&lT&&t.data&&t._context.showTips&&(S2.notifier(S2._(t,"Double-click on legend to isolate one trace"),"long"),lT=!1);var u=l==="togglegroup",s=o.hiddenlabels?o.hiddenlabels.slice():[],f=t._fullData,h=(o.shapes||[]).filter(function(we){return we.showlegend}),p=f.concat(h),b=i.trace;b._isShape&&(b=b._fullInput);var y=b.legendgroup,w,T,m,k,S,x,M={},d=[],_=[],g=[];function c(we,ce){var Se=d.indexOf(we),Ce=M.visible;return Ce||(Ce=M.visible=[]),d.indexOf(we)===-1&&(d.push(we),Se=d.length-1),Ce[Se]=ce,Se}var A=(o.shapes||[]).map(function(we){return we._input}),v=!1;function D(we,ce){A[we].visible=ce,v=!0}function E(we,ce){if(!(i.groupTitle&&!u)){var Se=we._fullInput||we,Ce=Se._isShape,Fe=Se.index;Fe===void 0&&(Fe=Se._index);var Ee=Se.visible===!1?!1:ce;Ce?D(Fe,Ee):c(Fe,Ee)}}var R=b.legend,N=b._fullInput,F=N&&N._isShape;if(!F&&Qo.traceIs(b,"pie-like")){var I=i.label,L=s.indexOf(I);if(a==="toggle")L===-1?s.push(I):s.splice(L,1);else if(a==="toggleothers"){var P=L!==-1,O=[];for(w=0;w{"use strict";sT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var cT=de((dhe,fT)=>{"use strict";var uT=Er(),D2=Xf();fT.exports=function(r,t,n){var a=t._inHover,o=D2.isGrouped(t),i=D2.isReversed(t),l={},u=[],s=!1,f={},h=0,p=0,b,y;function w(P,O,U){if(t.visible!==!1&&!(n&&P!==t._id))if(O===""||!D2.isGrouped(t)){var X="~~i"+h;u.push(X),l[X]=[U],h++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[U]):l[O].push(U)}for(b=0;bD&&(v=D)}c[b][0]._groupMinRank=v,c[b][0]._preGroupSort=b}var E=function(P,O){return P[0]._groupMinRank-O[0]._groupMinRank||P[0]._preGroupSort-O[0]._preGroupSort},R=function(P,O){return P.trace.legendrank-O.trace.legendrank||P._preSort-O._preSort};for(c.forEach(function(P,O){P[0]._preGroupSort=O}),c.sort(E),b=0;b{"use strict";var lv=ir();function hT(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=hT((r*100).toPrecision(3));return lv.numSeparate(n,t)+"%"};jl.formatPieValue=function(r,t){var n=hT(r.toPrecision(10));return lv.numSeparate(n,t)};jl.getFirstFilled=function(r,t){if(lv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var dZ=mt(),pZ=Xr();vT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?dZ.pointStyle(r,n,a,t):pZ.fill(r,t.color)}});var mT=de((yhe,yT)=>{"use strict";var pT=Xr(),gT=R2().castOption,gZ=dT();yT.exports=function(r,t,n,a){var o=n.marker.line,i=gT(o.color,t.pts)||pT.defaultLine,l=gT(o.width,t.pts)||0;r.call(gZ,t,n,a).style("stroke-width",l).call(pT.stroke,i)}});var N2=de((mhe,TT)=>{"use strict";var Un=it(),P2=Er(),Ln=ir(),xT=Ln.strTranslate,ya=mt(),Pa=Xr(),I2=Ei().extractOpts,sv=la(),yZ=mT(),mZ=R2().castOption,xZ=L2(),bT=12,_T=5,es=2,bZ=10,du=5;TT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+xZ.itemGap*2)/2,u=xT(l,0),s=function(_,g,c,A){var v;if(_+1)v=_;else if(g&&g.width>0)v=g.width;else return 0;return o?A:Math.min(v,c)};r.each(function(_){var g=Un.select(this),c=Ln.ensureSingle(g,"g","layers");c.style("opacity",_[0].trace.opacity);var A=n.indentation,v=n.valign,D=_[0].lineHeight,E=_[0].height;if(v==="middle"&&A===0||!D||!E)c.attr("transform",null);else{var R={top:1,bottom:-1}[v],N=R*(.5*(D-E+3))||0,F=n.indentation;c.attr("transform",xT(F,N))}var I=c.selectAll("g.legendfill").data([_]);I.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(y).each(b).each(T).each(x).each(S).each(f).each(h).each(m).each(k);function f(_){var g=wT(_),c=g.showFill,A=g.showLine,v=g.showGradientLine,D=g.showGradientFill,E=g.anyFill,R=g.anyLine,N=_[0],F=N.trace,I,L,P=I2(F),O=P.colorscale,U=P.reversescale,X=function(K){if(K.size())if(c)ya.fillGroupStyle(K,t,!0);else{var oe="legendfill-"+F.uid;ya.gradient(K,t,oe,F2(U),O,"fill")}},$=function(K){if(K.size()){var oe="legendline-"+F.uid;ya.lineGroupStyle(K),ya.gradient(K,t,oe,F2(U),O,"stroke")}},j=sv.hasMarkers(F)||!E?"M5,0":R?"M5,-2":"M5,-3",Y=Un.select(this),q=Y.select(".legendfill").selectAll("path").data(c||D?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||v){var Q=s(void 0,F.line,bZ,_T);L=Ln.minExtend(F,{line:{width:Q}}),I=[Ln.minExtend(N,{trace:L})]}var ae=Y.select(".legendlines").selectAll("path").data(A||v?[I]:[]);ae.enter().append("path").classed("js-line",!0),ae.exit().remove(),ae.attr("d",j+(v?"l"+i+",0.0001":"h"+i)).call(A?ya.lineGroupStyle:$)}function h(_){var g=wT(_),c=g.anyFill,A=g.anyLine,v=g.showLine,D=g.showMarker,E=_[0],R=E.trace,N=!D&&!A&&!c&&sv.hasText(R),F,I;function L(q,Q,ae,K){var oe=Ln.nestedProperty(R,q).get(),re=Ln.isArrayOrTypedArray(oe)&&Q?Q(oe):oe;if(o&&re&&K!==void 0&&(re=K),ae){if(reae[1])return ae[1]}return re}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(D||N||v){var O={},U={};if(D){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",Ln.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",Ln.mean,[0,5],es),O.mld=R._isShape?"solid":L("marker.line.dash",P),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",Ln.mean,[2,16],bT);O.ms=X,U.marker.size=X}v&&(U.line={width:L("line.width",P,[0,10],_T)}),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)),F=[Ln.minExtend(E,O)],I=Ln.minExtend(R,U),I.selectedpoints=null,I.texttemplate=null}var $=Un.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(D?F:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ya.pointStyle,I,t),D&&(F[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?F:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ya.textPointStyle,I,t)}function p(_){var g=_[0].trace,c=g.type==="waterfall";if(_[0]._distinct&&c){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var v=[];g.visible&&c&&(v=_[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=Un.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(v);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=Un.select(this),N=g[E[0]].marker,F=s(void 0,N.line,du,es);R.attr("d",E[1]).style("stroke-width",F+"px").call(Pa.fill,N.color),F&&R.call(Pa.stroke,N.line.color)})}function b(_){w(_,this)}function y(_){w(_,this,"funnel")}function w(_,g,c){var A=_[0].trace,v=A.marker||{},D=v.line||{},E=v.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:P2.traceIs(A,"bar"),N=Un.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[_]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(F){var I=Un.select(this),L=F[0],P=s(L.mlw,v.line,du,es);I.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=I2(v),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ya.tryColorscale(v,"")(X)}var $=O||L.mc||v.color,j=v.pattern,Y=ya.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var Q=Y(j.bgcolor,0,null),ae=Y(j.fgcolor,0,null),K=j.fgopacity,oe=MT(j.size,8,10),re=MT(j.solidity,.5,1),V="legend-"+A.uid;I.call(ya.pattern,"legend",t,V,q,oe,re,O,j.fillmode,Q,ae,K)}else I.call(Pa.fill,$);P&&Pa.stroke(I,L.mlc||D.color)})}function T(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&P2.traceIs(g,"box-violin")?[_]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Un.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var v=Ln.minExtend(g,{marker:{size:o?bT:Ln.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ya.pointStyle,v,t)}else{var D=s(void 0,g.line,du,es);A.style("stroke-width",D+"px").call(Pa.fill,g.fillcolor),D&&Pa.stroke(A,g.line.color)}})}function m(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[_,_]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,v){return v?"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,v){var D=Un.select(this),E=g[v?"increasing":"decreasing"],R=s(void 0,E.line,du,es);D.style("stroke-width",R+"px").call(Pa.fill,E.fillcolor),R&&Pa.stroke(D,E.line.color)})}function k(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[_,_]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,v){return v?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,v){var D=Un.select(this),E=g[v?"increasing":"decreasing"],R=s(void 0,E.line,du,es);D.style("fill","none").call(ya.dashLine,E.line.dash,R),R&&Pa.stroke(D,E.line.color)})}function S(_){M(_,this,"pie")}function x(_){M(_,this,"funnelarea")}function M(_,g,c){var A=_[0],v=A.trace,D=c?v.visible&&v.type===c:P2.traceIs(v,c),E=Un.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[_]:[]);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=v.marker||{},N=s(mZ(R.line.width,A.pts),R.line,du,es),F="pieLike",I=Ln.minExtend(v,{marker:{line:{width:N}}},F),L=Ln.minExtend(A,{trace:I},F);yZ(E,L,I,t)}}function d(_){var g=_[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 v=Un.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);v.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(D,E){var R=Un.select(this),N=I2(g),F=N.colorscale,I=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ya.gradient(X,t,$,F2(I,c==="radial"),F,"fill")}},P;if(F){if(!c){var U=F.length;P=E===0?F[I?U-1:0][1]:E===1?F[I?0:U-1][1]:F[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=Ln.isArrayOrTypedArray(O)?O[E]||O[0]:O}R.attr("d",D[0]),P?R.call(Pa.fill,P):R.call(L)})}};function F2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function wT(e){var r=e[0].trace,t=r.contours,n=sv.hasLines(r),a=sv.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 MT(e,r,t){return e&&Ln.isArrayOrTypedArray(e)?r:e>t?t:e}});var B2=de((xhe,PT)=>{"use strict";var Xn=it(),Gt=ir(),q2=ln(),rs=Er(),cv=Sf(),z2=oi(),Yt=mt(),Zf=Xr(),ts=On(),AT=E2().handleItemClick,kT=E2().handleTitleClick,Kt=L2(),O2=Cn(),DT=O2.LINE_SPACING,gu=O2.FROM_TL,ST=O2.FROM_BR,CT=cT(),_Z=N2(),yu=Xf(),pu=1,wZ=/^legend[0-9]*$/;PT.exports=function(r,t){if(t)ET(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=Xn.select(this),f=s.attr("class"),h=f.split(" ")[0];h.match(wZ)&&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(),q2.autoMargin(e,a);var w=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(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});m.call(Zf.stroke,t.bordercolor).call(Zf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Gt.ensureSingle(w,"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),fv(x,k,e,t,pu),!l&&(t.titleclick||t.titledoubleclick)&&kZ(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=Gt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(Kt.scrollBarEnterAttrs).call(Zf.fill,Kt.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var _=d.selectAll("g.traces").data(Gt.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(g){let c=g[0],A=c.trace;if(c.groupTitle){let v=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===v&&(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(){Xn.select(this).call(TZ,e,t)}).call(_Z,e,t).each(function(g){l||g[0].groupTitle&&t.groupclick==="toggleitem"||Xn.select(this).call(AZ,e,a)}),Gt.syncOrAsync([q2.previousPromises,function(){return EZ(e,d,_,t,k)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",v=t.yref==="paper";if(S.text){let te=(n.shapes||[]).filter(function(ve){return ve.showlegend}),le=e._fullData.concat(te).some(function(ve){let Ae=ve.legend||"legend";var we=Array.isArray(Ae)?Ae.includes(a):Ae===a;return we&&ve.visible===!0});x.style("opacity",le?1:.5)}if(!l){var D,E;A?D=g.l+g.w*t.x-gu[hv(t)]*t._width:D=n.width*t.x-gu[hv(t)]*t._width,v?E=g.t+g.h*(1-t.y)-gu[vv(t)]*t._effHeight:E=n.height*(1-t.y)-gu[vv(t)]*t._effHeight;var R=LZ(e,a,D,E);if(R)return;if(n.margin.autoexpand){var N=D,F=E;D=A?Gt.constrain(D,0,n.width-t._width):N,E=v?Gt.constrain(E,0,n.height-t._effHeight):F,D!==N&&Gt.log("Constrain "+a+".x to make legend fit inside graph"),E!==F&&Gt.log("Constrain "+a+".y to make legend fit inside graph")}Yt.setTranslate(w,D,E)}if(M.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var I=t._effHeight;l&&(I=t._height),m.attr({width:t._width-c,height:I-c,x:c/2,y:c/2}),Yt.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*c,height:I-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(Kt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*Kt.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);m.attr({width:t._width-2*c+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),T.select("rect").attr({width:t._width-2*c+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Yt.setClipUrl(k,o,e),oe(X,L,U),w.on("wheel",function(){X=Gt.constrain(t._scrollY+Xn.event.deltaY/O*P,0,O),oe(X,L,U),X!==0&&X!==O&&Xn.event.preventDefault()});var $,j,Y,q=function(te,le,ve){var Ae=(ve-le)/U+te;return Gt.constrain(Ae,0,O)},Q=function(te,le,ve){var Ae=(le-ve)/U+te;return Gt.constrain(Ae,0,O)},ae=Xn.behavior.drag().on("dragstart",function(){var te=Xn.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=Xn.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),oe(X,L,U))});M.call(ae);var K=Xn.behavior.drag().on("dragstart",function(){var te=Xn.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=Xn.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=Q(Y,$,j),oe(X,L,U))});k.call(K)}function oe(te,le,ve){t._scrollY=e._fullLayout[a]._scrollY=te,Yt.setTranslate(k,0,-te),Yt.setRect(M,t._width,Kt.scrollBarMargin+te*ve,Kt.scrollBarWidth,le),T.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var re,V,ee,H;w.classed("cursor-move",!0),z2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==M.node()){var le=Yt.getTranslate(w);ee=le.x,H=le.y}},moveFn:function(te,le){if(ee!==void 0&&H!==void 0){var ve=ee+te,Ae=H+le;Yt.setTranslate(w,ve,Ae),re=z2.align(ve,t._width,g.l,g.l+g.w,t.xanchor),V=z2.align(Ae+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(re!==void 0&&V!==void 0){var te={};te[a+".x"]=re,te[a+".y"]=V,rs.call("_guiRelayout",e,te)}},clickFn:function(te,le){var ve=i.selectAll("g.traces").filter(function(){var Ae=this.getBoundingClientRect();return le.clientX>=Ae.left&&le.clientX<=Ae.right&&le.clientY>=Ae.top&&le.clientY<=Ae.bottom});ve.size()>0&&RT(e,t,ve,te,le)}})}}],e)}}function uv(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 RT(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=cv.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&AT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var h=cv.triggerHandler(e,"plotly_legenddoubleclick",s);h!==!1&&f!==!1&&u&&AT(t,e,r,u)}}function TZ(e,r,t){var n=yu.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?LT(s,u):s);var p=t.indentation+t.itemwidth+Kt.itemGap*2;ts.positionText(h,p,0),l?h.call(ts.makeEditable,{gd:r,text:s}).call(fv,e,r,t).on("edit",function(b){this.text(LT(b,u)).call(fv,e,r,t);var y=a.trace._fullInput||{},w={};return w.name=b,y._isShape?rs.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):rs.call("_guiRestyle",r,w,o.index)}):fv(h,e,r,t)}function LT(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 AZ(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(Zf.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)),RT(r,l,e,o,Xn.event)}}))}function kZ(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(Zf.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:Xn.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(cv.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&kT(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,cv.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&kT(r,t,t.titledoubleclick))}))}function fv(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),ts.convertToTspans(e,t,function(){SZ(r,t,n,a)})}function SZ(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=yu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===pu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var h=f.size*DT,p,b;if(l){var y=Yt.bBox(l);p=y.height,b=y.width,n===pu?Yt.setTranslate(i,s,s+p*.75):Yt.setTranslate(i,0,p*.25)}else{var w="."+u+(n===pu?"title":"")+"text",T=e.select(w),m=ts.lineCount(T),k=T.node();if(p=h*m,b=k?Yt.bBox(k).width:0,n===pu)t.title.side==="left"&&(b+=Kt.itemGap*2),ts.positionText(T,s+Kt.titlePad,s+h);else{var S=Kt.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=Kt.itemGap,b-=t.indentation+t.itemwidth),ts.positionText(T,S,-h*((m-1)/2-.3))}}n===pu?(t._titleWidth=b,t._titleHeight=p):(a.lineHeight=h,a.height=Math.max(p,16)+3,a.width=b)}function CZ(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 EZ(e,r,t,n,a){var o=e._fullLayout,i=yu.getId(n);n||(n=o[i]);var l=o._size,u=yu.isVertical(n),s=yu.isGrouped(n),f=n.entrywidthmode==="fraction",h=n.borderwidth,p=2*h,b=Kt.itemGap,y=n.indentation+n.itemwidth+b*2,w=2*(h+b),T=vv(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:d}=n,{maxheight:_}=n,g=m||k||M!=="v"||d!=="paper";_||(_=g?.5:1);let c=g?o.height:l.h;n._maxHeight=Math.max(_>1?_:_*c,30);var A=0;n._width=0,n._height=0;var v=CZ(n);if(u)t.each(function(te){var le=te[0].height;Yt.setTranslate(this,h+v[0],h+v[1]+n._height+le/2+b),n._height+=le,n._width=Math.max(n._width,te[0].width)}),A=y+n._width,n._width+=b+y+p,n._height+=w,s&&(r.each(function(te,le){Yt.setTranslate(this,0,le*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=hv(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",N=k||m,F=o.width/2;n._maxWidth=Math.max(E?N&&D==="left"?l.l+l.w:F:R?N&&D==="right"?l.r+l.w:F:l.w,2*y);var I=0,L=0;t.each(function(te){var le=uv(te,n,y);I=Math.max(I,le),L+=le}),A=null;var P=0;if(s){var O=0,U=0,X=0;r.each(function(){var te=0,le=0;Xn.select(this).selectAll("g.traces").each(function(Ae){var we=uv(Ae,n,y),ce=Ae[0].height;Yt.setTranslate(this,v[0],v[1]+h+b+ce/2+le),le+=ce,te=Math.max(te,we),x[Ae[0].trace.legendgroup]=te});var ve=te+b;U>0&&ve+h+U>n._maxWidth?(P=Math.max(P,U),U=0,X+=O+S,O=le):O=Math.max(O,le),Yt.setTranslate(this,U,X),U+=ve}),n._width=Math.max(P,U)+h,n._height=X+O+w}else{var $=t.size(),j=L+p+($-1)*b=n._maxWidth&&(P=Math.max(P,ae),q=0,Q+=Y,n._height+=Y,Y=0),Yt.setTranslate(this,v[0]+h+q,v[1]+h+Q+le/2+b),ae=q+ve+b,q+=Ae,Y=Math.max(Y,le)}),j?(n._width=q+p,n._height=Y+w):(n._width=Math.max(P,ae)+p,n._height+=Y+w)}}n._width=Math.ceil(Math.max(n._width+v[0],n._titleWidth+2*(h+Kt.titlePad))),n._height=Math.ceil(Math.max(n._height+v[1],n._titleHeight+2*(h+Kt.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var K=e._context.edits,oe=K.legendText||K.legendPosition;t.each(function(te){var le=Xn.select(this).select("."+i+"toggle"),ve=te[0].height,Ae=te[0].trace.legendgroup,we=uv(te,n,y);s&&Ae!==""&&(we=x[Ae]);var ce=oe?y:A||we;!u&&!f&&(ce+=b/2),Yt.setRect(le,0,-ve/2,ce,ve)});var re=a.select("."+i+"titletext");re.node()&&MZ(re,n,h);var V=a.select("."+i+"titletoggle");if(V.size()&&re.node()){var ee=re.attr("x")||0,H=Kt.titlePad;Yt.setRect(V,ee-H,h,n._titleWidth+2*H,n._titleHeight+2*H)}}function LZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=hv(o),l=vv(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 q2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*gu[i],r:o._width*ST[i],b:o._effHeight*ST[l],t:o._effHeight*gu[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 hv(e){return Gt.isRightAnchor(e)?"right":Gt.isCenterAnchor(e)?"center":"left"}function vv(e){return Gt.isBottomAnchor(e)?"bottom":Gt.isMiddleAnchor(e)?"middle":"top"}});var G2=de(V2=>{"use strict";var ns=it(),uo=nt(),IT=Sa(),It=ir(),DZ=It.pushUnique,U2=It.strTranslate,RZ=It.strRotate,PZ=Sf(),Ia=On(),IZ=aT(),qi=mt(),un=Xr(),dv=oi(),Oi=Lt(),FZ=on().zindexSeparator,xu=Er(),li=so(),as=pf(),NZ=k2(),zZ=B2(),HT=as.YANGLE,H2=Math.PI*HT/180,qZ=1/Math.sin(H2),OZ=Math.cos(H2),BZ=Math.sin(H2),St=as.HOVERARROWSIZE,Qr=as.HOVERTEXTPAD,FT={box:!0,ohlc:!0,violin:!0,candlestick:!0},UZ={scatter:!0,scattergl:!0,splom:!0};function NT(e,r){return e.distance-r.distance}V2.hover=function(r,t,n,a){r=It.getGraphDiv(r);var o=t.target;It.throttle(r._fullLayout._uid+as.HOVERID,as.HOVERMINTIME,function(){HZ(r,t,n,a,o)})};V2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=XT(a),i=ZT(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 d=Math.min(m,k),_=Math.max(m,k),g=Math.min(S,x),c=Math.max(S,x),A=T.trace;if(xu.traceIs(A,"gl3d")){var v=a._fullLayout[A.scene]._scene.container,D=v.offsetLeft,E=v.offsetTop;d+=D,_+=D,g+=E,c+=E}M.bbox={x0:d+i,x1:_+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||un.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=GT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:ns.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,h=5,p=0,b=0;f.sort(function(T,m){return T.y0-m.y0}).each(function(T,m){var k=T.y0-T.by/2;k-h_[0]._length||H<0||H>g[0]._length)return dv.unhoverRaw(e,r)}if(r.pointerX=ee+_[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?F=li.flat(o,r.xval):F=li.p2c(_,ee),"yval"in r?I=li.flat(o,r.yval):I=li.p2c(g,H),!uo(F[0])||!uo(I[0]))return It.warn("Fx.hover failed",r,e),dv.unhoverRaw(e,r)}var ve=1/0;function Ae(sr,Pr){for(P=0;Pae&&(R.splice(0,ae),ve=R[0].distance),h&&E!==0&&R.length===0){Q.distance=E,Q.index=!1;var Rr=U._module.hoverPoints(Q,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Rr&&(Rr=Rr.filter(function(bt){return bt.spikeDistance<=E})),Rr&&Rr.length){var jr,vn=Rr.filter(function(bt){return bt.xa.showspikes&&bt.xa.spikesnap!=="hovered data"});if(vn.length){var Et=vn[0];uo(Et.x0)&&uo(Et.y0)&&(jr=ce(Et),(!K.vLinePoint||K.vLinePoint.spikeDistance>jr.spikeDistance)&&(K.vLinePoint=jr))}var Tn=Rr.filter(function(bt){return bt.ya.showspikes&&bt.ya.spikesnap!=="hovered data"});if(Tn.length){var Ot=Tn[0];uo(Ot.x0)&&uo(Ot.y0)&&(jr=ce(Ot),(!K.hLinePoint||K.hLinePoint.spikeDistance>jr.spikeDistance)&&(K.hLinePoint=jr))}}}}}Ae();function we(sr,Pr,$r){for(var Fr=null,Gr=1/0,pt,Rr=0;Rrsr.trace.index===pe.trace.index):R=[pe];var he=R.length,xe=UT("x",pe,l),Le=UT("y",pe,l);Ae(xe,Le);var qe=[],Ne={},$e=0,Ve=function(sr){var Pr=FT[sr.trace.type]?VT(sr):sr.trace.index;if(!Ne[Pr])$e++,Ne[Pr]=$e,qe.push(sr);else{var $r=Ne[Pr]-1,Fr=qe[$r];$r>0&&Math.abs(sr.distance)he-1;Be--)Ve(R[Be]);R=qe,Ee()}var Ye=e._hoverdata,Te=[],Re=XT(e),Qe=ZT(e);for(let sr of R){var Ke=li.makeEventData(sr,sr.trace,sr.cd);if(sr.hovertemplate!==!1){var ar=!1;sr.cd[sr.index]&&sr.cd[sr.index].ht&&(ar=sr.cd[sr.index].ht),sr.hovertemplate=ar||sr.trace.hovertemplate||!1}if(sr.xa&&sr.ya){var ue=sr.x0+sr.xa._offset,J=sr.x1+sr.xa._offset,ne=sr.y0+sr.ya._offset,De=sr.y1+sr.ya._offset,He=Math.min(ue,J),er=Math.max(ue,J),nr=Math.min(ne,De),fr=Math.max(ne,De);Ke.bbox={x0:He+Qe,x1:er+Qe,y0:nr+Re,y1:fr+Re}}sr.eventData=[Ke],Te.push(Ke)}e._hoverdata=Te;var br=p==="y"&&(N.length>1||R.length>1)||p==="closest"&&oe&&R.length>1,Sr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Mr=GT(R,{gd:e,hovermode:p,rotateLabels:br,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Ar=Mr.hoverLabels;if(li.isUnifiedHover(p)||(GZ(Ar,br,l,Mr.commonLabelBoundingBox),WT(Ar,br,l._invScaleX,l._invScaleY)),a&&a.tagName){var ft=xu.getComponentMethod("annotations","hasClickToShow")(e,Te);IZ(ns.select(a),ft?"pointer":"")}!a||n||!XZ(e,r,Ye)||(Ye&&e.emit("plotly_unhover",{event:r,points:Ye}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:_,yaxes:g,xvals:F,yvals:I}))}function VT(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 VZ=/([\s\S]*)<\/extra>/;function GT(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,b=r.fontStyle||n.font.style,y=r.fontVariant||n.font.variant,w=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),d=M+"Label",_=k[d];if(_===void 0&&S.type==="multicategory")for(var g=0;gn.width-Re&&(Qe=n.width-Re),pe.attr("d","M"+(Be-Qe)+",0L"+(Be-Qe+St)+","+Te+St+"H"+Re+"v"+Te+(Qr*2+Ve.height)+"H"+-Re+"V"+Te+St+"H"+(Be-Qe-St)+"Z"),Be=Qe,P.minX=Be-Re,P.maxX=Be+Re,S.side==="top"?(P.minY=Ye-(Qr*2+Ve.height),P.maxY=Ye-Qr):(P.minY=Ye+Qr,P.maxY=Ye+(Qr*2+Ve.height))}else{var Ke,ar,ue;x.side==="right"?(Ke="start",ar=1,ue="",Be=S._offset+S._length):(Ke="end",ar=-1,ue="-",Be=S._offset),Ye=x._offset+(k.y0+k.y1)/2,he.attr("text-anchor",Ke),pe.attr("d","M0,0L"+ue+St+","+St+"V"+(Qr+Ve.height/2)+"h"+ue+(Qr*2+Ve.width)+"V-"+(Qr+Ve.height/2)+"H"+ue+St+"V-"+St+"Z"),P.minY=Ye-(Qr+Ve.height/2),P.maxY=Ye+(Qr+Ve.height/2),x.side==="right"?(P.minX=Be+St,P.maxX=Be+St+(Qr*2+Ve.width)):(P.minX=Be-St-(Qr*2+Ve.width),P.maxX=Be-St);var J=Ve.height/2,ne=A-Ve.top-J,De="clip"+n._uid+"commonlabel"+x._id,He;if(Bepe.hoverinfo!=="none");if(ye.length===0)return[];var O=n.hoverlabel,U=O.font,X=ye[0],$=((a==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,j=$?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:$}):_,Y={showlegend:!0,legend:{title:{text:j,font:U},font:U,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:U};NZ(Y,q,t._fullData);var Q=q.legend;Q.entries=[];for(var ae=0;ae=0?Me=Ee:ze+le=0?Me=ze:Ue+le=0?ke=Ce:Fe+ve=0?ke=Fe:ge+ve=0,(ye.idealAlign==="top"||!fr)&&br?(ue-=ne/2,ye.anchor="end"):fr?(ue+=ne/2,ye.anchor="start"):ye.anchor="middle",ye.crossPos=ue;else{if(ye.pos=ue,fr=ar+J/2+nr<=v,br=ar-J/2-nr>=0,(ye.idealAlign==="left"||!fr)&&br)ar-=J/2,ye.anchor="end";else if(fr)ar+=J/2,ye.anchor="start";else{ye.anchor="middle";var Sr=nr/2,Mr=ar+Sr-v,Ar=ar-Sr;Mr>0&&(ar-=Mr),Ar<0&&(ar+=-Ar)}ye.crossPos=ar}Ye.attr("text-anchor",ye.anchor),Re&&Te.attr("text-anchor",ye.anchor),pe.attr("transform",U2(ar,ue)+(o?RZ(HT):""))}),{hoverLabels:me,commonLabelBoundingBox:P}}function zT(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=BT(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 b=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(b[u+"other"]=b[u+"Val"],b[u+"otherLabel"]=b[u+"Label"]),l=It.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:b,locale:n._d3locale,template:f}),l=l.replace(VZ,(y,w)=>(i=BT(w,e.nameLength),""))}return[l,i]}function GZ(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,b=n.minY,y=n.maxY,w=function(F){return F*t._invScaleX},T=function(F){return F*t._invScaleY};e.each(function(F){var I=F[a],L=F[o],P=I._id.charAt(0)==="x",O=I.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=YT(F,r),j=F.anchor,Y=j==="end"?-1:1,q,Q;if(j==="middle")q=F.crossPos+(P?T($.y-F.by/2):w(F.bx/2+F.tx2width/2)),Q=q+(P?T(F.by):w(F.bx));else if(P)q=F.crossPos+T(St+$.y)-T(F.by/2-St),Q=q+T(F.by);else{var ae=w(Y*St+$.x),K=ae+w(Y*F.bx);q=F.crossPos+Math.min(ae,K),Q=F.crossPos+Math.max(ae,K)}P?b!==void 0&&y!==void 0&&Math.min(Q,y)-Math.max(q,b)>1&&(L.side==="left"?(U=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"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:F,traceIndex:F.trace.index,dp:0,pos:F.pos,posref:F.posref,size:F.by*(P?qZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(F,I){return F[0].posref-I[0].posref||l*(I[0].traceIndex-F[0].traceIndex)});var m,k,S,x,M,d,_;function g(F){var I=F[0],L=F[F.length-1];if(k=I.pmin-I.pos-I.dp+I.size,S=L.pos+L.dp+L.size-I.pmax,k>.01){for(M=F.length-1;M>=0;M--)F[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=F.length-1;M>=0;M--)F[M].dp-=S;m=!1}if(m){var P=0;for(x=0;xI.pmax&&P++;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos>I.pmax-1&&(d.del=!0,P--);for(x=0;x=0;M--)F[M].dp-=S;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos+d.dp+d.size>I.pmax&&(d.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),_=0,M=c.length-1;M>=0;M--)_+=c[M].dp;for(S=_/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 YT(e,r){var t=0,n=e.offset;return r&&(n*=-BZ,t=e.offset*OZ),{x:t,y:n}}function YZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(St+Qr),n=t+r*(e.txwidth+Qr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Qr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function WT(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=YZ(i),p=YT(i,r),b=p.x,y=p.y,w=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;w?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+b)+","+o(St+y)+"v"+o(i.by/2-St)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*St+b)+"V"+o(y-St)+"Z":m="M"+a(f*St+b)+","+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=b+h.textShiftX,S=y+i.ty0-i.by/2+Qr,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+Qr:-i.bx-Qr):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-Qr:i.bx+Qr)),u.call(Ia.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Ia.positionText,a(h.text2ShiftX+h.alignShift*Qr+b),o(y+i.ty0-i.by/2+Qr)),l.select("rect").call(qi.setRect,a(h.text2ShiftX+(h.alignShift-1)*i.tx2width/2+b),o(y-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function WZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||uo(p)&&p===0}var l=Array.isArray(t)?function(p,b){var y=It.castOption(a,t,p);return i(y)?y:It.extractOption({},n,"",b)}:function(p,b){return It.extractOption(o,n,p,b)};function u(p,b,y){var w=l(b,y);i(w)&&(e[p]=w)}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 qT(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=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,b,y;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(b=i.pointerX,y=i.pointerY):(b=s._offset+p.x,y=f._offset+p.y);var T=IT.readability(p.color,h)<1.5?un.contrast(h):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Oi.getPxPosition(e,f),M,d;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,d=b),m.indexOf("across")!==-1){var _=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),g=Math.max(g,f.position)),M=o.l+_*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:M,x2:d,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:d,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,v;s=c&&c.xa,f=c&&c.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,v=i.pointerY):(A=s._offset+c.x,v=f._offset+c.y);var E=IT.readability(c.color,h)<1.5?un.contrast(h):c.color,R=s.spikemode,N=s.spikethickness,F=s.spikecolor||E,I=Oi.getPxPosition(e,s),L,P;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=I,P=v),R.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*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:F,"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:I-(s.side!=="top"?N:-N),r:N,fill:F}).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],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 OT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function BT(e,r){return Ia.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function ZZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,ZT=e=>e.offsetLeft+e.clientLeft;function mu(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],b=s[1];return{x:f,y:h,width:p-f,height:b-h,top:Math.min(h,b),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,b)}}});var pv=de((_he,JT)=>{"use strict";var JZ=ir(),KZ=Xr(),QZ=so().isUnifiedHover;JT.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&&QZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=KZ.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),JZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var QT=de((whe,KT)=>{"use strict";var $Z=ir(),jZ=pv(),eJ=Ll();KT.exports=function(r,t){function n(a,o){return $Z.coerce(r,t,eJ,a,o)}jZ(r,t,n)}});var e9=de((Mhe,jT)=>{"use strict";var $T=ir(),rJ=U0(),tJ=pv();jT.exports=function(r,t,n,a){function o(l,u){return $T.coerce(r,t,rJ,l,u)}var i=$T.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),tJ(r,t,o,i)}});var Y2=de((The,r9)=>{"use strict";var nJ=ir(),aJ=Ll();r9.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:nJ.coerce(r,t,aJ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var a9=de((Ahe,n9)=>{"use strict";var t9=ir(),iJ=Ll(),oJ=Y2(),lJ=pv();n9.exports=function(r,t){function n(f,h){return t9.coerce(r,t,iJ,f,h)}var a=oJ(r,t);a&&(n("hoverdistance"),n("spikedistance"));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"),lJ(r,t,n),t9.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var l9=de((khe,o9)=>{"use strict";var W2=ir(),i9=Er();o9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return W2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var uJ=Er(),fJ=G2().hover;s9.exports=function(r,t,n){var a=uJ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&fJ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var fo=de((Che,h9)=>{"use strict";var cJ=it(),gv=ir(),hJ=oi(),Jf=so(),f9=Ll(),c9=G2();h9.exports={moduleType:"component",name:"fx",constants:pf(),schema:{layout:f9},attributes:U0(),layoutAttributes:f9,supplyLayoutGlobalDefaults:QT(),supplyDefaults:e9(),supplyLayoutDefaults:a9(),calc:l9(),getDistanceFunction:Jf.getDistanceFunction,getClosest:Jf.getClosest,inbox:Jf.inbox,quadrature:Jf.quadrature,appendArrayPointValue:Jf.appendArrayPointValue,castHoverOption:dJ,castHoverinfo:pJ,hover:c9.hover,unhover:hJ.unhover,loneHover:c9.loneHover,loneUnhover:vJ,click:u9()};function vJ(e){var r=gv.isD3Selection(e)?e:cJ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function dJ(e,r,t){return gv.castOption(e,r,"hoverlabel."+t)}function pJ(e,r,t){function n(a){return gv.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return gv.castOption(e,t,"hoverinfo",n)}});var bu=de(co=>{"use strict";co.selectMode=function(e){return e==="lasso"||e==="select"};co.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};co.openMode=function(e){return e==="drawline"||e==="drawopenpath"};co.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};co.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};co.selectingOrDrawing=function(e){return co.freeMode(e)||co.rectMode(e)}});var yv=de((Lhe,v9)=>{"use strict";v9.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 mv=de((Dhe,d9)=>{"use strict";d9.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 bv=de((Rhe,p9)=>{"use strict";var xv=32;p9.exports={CIRCLE_SIDES:xv,i000:0,i090:xv/4,i180:xv/2,i270:xv/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var _v=de((Phe,y9)=>{"use strict";var gJ=ir().strTranslate;function g9(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 yJ(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 mJ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return g9(e,t[r])}}function xJ(e){return gJ(e.xaxis._offset,e.yaxis._offset)}y9.exports={p2r:g9,r2p:yJ,axValue:mJ,getTransform:xJ}});var $o=de(ho=>{"use strict";var bJ=Ig(),b9=bv(),_u=b9.CIRCLE_SIDES,X2=b9.SQRT2,_9=_v(),m9=_9.p2r,x9=_9.r2p,_J=[0,3,4,5,6,1,2],wJ=[0,3,4,1,2];ho.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var w9=en(),S9=bu(),MJ=S9.drawMode,TJ=S9.openMode,wu=bv(),M9=wu.i000,T9=wu.i090,A9=wu.i180,k9=wu.i270,AJ=wu.cos45,kJ=wu.sin45,C9=_v(),Mv=C9.p2r,jo=C9.r2p,SJ=Uo(),CJ=SJ.clearOutline,Tv=$o(),EJ=Tv.readPaths,LJ=Tv.writePaths,DJ=Tv.ellipseOver,RJ=Tv.fixDatesForPaths;function PJ(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(!MJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var IJ=bu(),FJ=IJ.selectMode,NJ=Uo(),zJ=NJ.clearOutline,Z2=$o(),qJ=Z2.readPaths,OJ=Z2.writePaths,BJ=Z2.fixDatesForPaths;D9.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(!FJ(h)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b{"use strict";R9.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=de(Mn=>{"use strict";var Bi=Qf(),P9=ir(),el=Lt();Mn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Mn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Mn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Mn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Mn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Bi.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(Bi.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Mn.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=Mn.shapePositionToRange(r);i=function(u){var s=vo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Mn.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};Mn.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=Mn.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};Mn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Mn.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}};Mn.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}};Mn.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,b,y,w,T,m;function k(A,v,D,E){var R;if(A)if(v==="domain")E?R=function(N){return A._offset+A._length*(1-N)}:R=function(N){return A._offset+A._length*N};else{let N=Mn.shapePositionToRange(A);R=function(F){return A._offset+A.r2p(N(F,!0))},D==="path"&&A.type==="date"&&(R=Mn.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,v){return k(i[v],el.getRefType(A),t,!1)})):(i=el.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(b=[],l=r.yref.map(function(A){return el.getFromId(e,A)}),b=r.yref.map(function(A,v){return k(l[v],el.getRefType(A),t,!0)})):(l=el.getFromId(e,r.yref),b=k(l,a,t,!0)),t==="path")return UJ(r,p,b);if(n==="array")u=vo(i[0],r.x0shift),s=vo(i[1],r.x1shift),y=p[0](r.x0)+u,w=p[1](r.x1)+s;else if(u=vo(i,r.x0shift),s=vo(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);y=A+r.x0+u,w=A+r.x1+s}else y=p(r.x0)+u,w=p(r.x1)+s;if(a==="array")f=vo(l[0],r.y0shift),h=vo(l[1],r.y1shift),T=b[0](r.y0)+f,m=b[1](r.y1)+h;else if(f=vo(l,r.y0shift),h=vo(l,r.y1shift),r.ysizemode==="pixel"){let A=b(r.yanchor);T=A-r.y0+f,m=A-r.y1+h}else T=b(r.y0)+f,m=b(r.y1)+h;if(t==="line")return"M"+y+","+T+"L"+w+","+m;if(t==="rect")return"M"+y+","+T+"H"+w+"V"+m+"H"+y+"Z";var S=(y+w)/2,x=(T+m)/2,M=Math.abs(S-y),d=Math.abs(x-T),_="A"+M+","+d,g=S+M+","+x,c=S+","+(x-d);return"M"+g+_+" 0 1,1 "+c+_+" 0 0,1 "+g+"Z"};function UJ(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(Bi.segmentRE,function(p){var b=0,y=p.charAt(0),w=Bi.paramIsX[y],T=Bi.paramIsY[y],m=Bi.numParams[y];let k=w.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[h]:t;var d=p.slice(1).replace(Bi.paramRE,function(_){return w[b]?a==="pixel"?_=x(i)+Number(_):_=x(_):T[b]&&(o==="pixel"?_=M(l)-Number(_):_=M(_)),b++,b>m&&(_="X"),_});return b>m&&(d=d.replace(/[\s,]*X.*/,""),P9.log("Ignoring extra params in segment "+p)),k&&f++,S&&h++,y+d})}function vo(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 Q2=de((Ohe,N9)=>{"use strict";var HJ=ir(),Ui=Lt(),I9=On(),F9=mt(),VJ=$o().readPaths,K2=rl(),GJ=K2.getPathString,$f=K0(),YJ=Cn().FROM_TL;N9.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=Ui.getFromId(r,n.xref),u=Ui.getFromId(r,n.yref);let U=Array.isArray(n.xref),X=Array.isArray(n.yref);for(var s in $f){var f=typeof $f[s]=="function",h=!U||$f.simpleXVariables.includes(s),p=!X||$f.simpleYVariables.includes(s);if(f&&h&&p){var b=$f[s](n,l,u);b!==void 0&&(i[s]=b)}}}o=HJ.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},w=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,d;if(n.path){var _=GJ(r,n),g=VJ(_,r);S=1/0,M=1/0,x=-1/0,d=-1/0;for(var c=0;c=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function XJ(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),b=Math.cos(h),y=a.label.xanchor,w=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 ZJ=ir(),JJ=ZJ.strTranslate,z9=oi(),B9=bu(),KJ=B9.drawMode,U9=B9.selectMode,H9=Er(),q9=Xr(),Sv=bv(),QJ=Sv.i000,$J=Sv.i090,jJ=Sv.i180,eK=Sv.i270,rK=Uo(),V9=rK.clearOutlineControllers,j2=$o(),kv=j2.pointsOnRectangle,$2=j2.pointsOnEllipse,tK=j2.writePaths,nK=Av().newShapes,aK=Av().createShapeObj,iK=J2(),oK=Q2();G9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),($2(r[0])||n.hasText)&&l({redrawing:!0})}function l(I){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=nK(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=iK(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&H9.call((I||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,h=KJ(f),p=U9(f);(h||p)&&(o._fullLayout._outlining=!0),V9(o),t.attr("d",tK(r));var b,y,w,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=lK([],r);var k=s.append("g").attr("class","outline-controllers");A(k),F()}if(h&&n.hasText){var S=s.select(".label-temp"),x=aK(t,n,n.dragmode);oK(o,"label-temp",x,S)}function M(I){w=+I.srcElement.getAttribute("data-i"),T=+I.srcElement.getAttribute("data-j"),b[w][T].moveFn=d}function d(I,L){if(r.length){var P=m[w][T][1],O=m[w][T][2],U=r[w],X=U.length;if(kv(U)){var $=I,j=L;if(n.isActiveSelection){var Y=O9(U,T);Y[1]===U[T][1]?j=0:$=0}for(var q=0;q1&&!(I.length===2&&I[1][0]==="Z")&&(T===0&&(I[0][0]="M"),r[w]=I,i(),l())}}function c(I,L){if(I===2){w=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[w];!kv(P)&&!$2(P)&&g()}}function A(I){b=[];for(var L=0;L{"use strict";var uK=it(),J9=Er(),ry=ir(),is=Lt(),fK=$o().readPaths,cK=Cv(),Lv=Q2(),K9=Uo().clearOutlineControllers,ey=Xr(),Dv=mt(),hK=yt().arrayEditor,Y9=oi(),W9=Ko(),os=Qf(),sa=rl(),ty=sa.getPathString;j9.exports={draw:ny,drawOne:Q9,eraseActiveShape:gK,drawLabel:Lv};function ny(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;ais.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 dK(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,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,D=uK.select(r.node().parentNode),E=is.getFromId(e,t.xref),R=is.getRefType(t.xref),N=is.getFromId(e,t.yref),F=is.getRefType(t.yref),I=t.x0shift,L=t.x1shift,P=t.y0shift,O=t.y1shift,U=function(we,ce){var Se=sa.getDataToPixel(e,E,ce,!1,R);return Se(we)},X=function(we,ce){var Se=sa.getDataToPixel(e,N,ce,!0,F);return Se(we)},$=sa.getPixelToData(e,E,!1,R),j=sa.getPixelToData(e,N,!0,F),Y=ae(),q={element:Y.node(),gd:e,prepFn:re,doneFn:V,clickFn:ee},Q;Y9.init(q),Y.node().onmousemove=oe;function ae(){return f?K():r}function K(){var we=10,ce=Math.max(t.line.width,we),Se=a.append("g").attr("data-index",n).attr("drag-helper",!0);Se.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ce,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},Fe=Math.max(ce/2,we);return Se.append("circle").attr({"data-line-point":"start-point",cx:u?U(t.xanchor)+t.x0:U(t.x0,I),cy:s?X(t.yanchor)-t.y0:X(t.y0,P),r:Fe}).style(Ce).classed("cursor-grab",!0),Se.append("circle").attr({"data-line-point":"end-point",cx:u?U(t.xanchor)+t.x1:U(t.x1,L),cy:s?X(t.yanchor)-t.y1:X(t.y1,O),r:Fe}).style(Ce).classed("cursor-grab",!0),Se}function oe(we){if(Ev(e)){Q=null;return}if(f)we.target.tagName==="path"?Q="move":Q=we.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ce=q.element.getBoundingClientRect(),Se=ce.right-ce.left,Ce=ce.bottom-ce.top,Fe=we.clientX-ce.left,Ee=we.clientY-ce.top,ze=!h&&Se>i&&Ce>l&&!we.shiftKey?Y9.getCursor(Fe/Se,1-Ee/Ce):"move";W9(r,ze),Q=ze.split("-")[0]}}function re(we){Ev(e)||(u&&(m=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?v=t.path:(b=u?t.x0:U(t.x0),y=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),T=s?t.y1:X(t.y1)),bT?(S=y,_="y0",x=T,g="y1"):(S=T,_="y1",x=y,g="y0"),oe(we),le(a,t),Ae(r,t,e),q.moveFn=Q==="move"?H:te,q.altKey=we.altKey)}function V(){Ev(e)||(W9(r),ve(a),$9(r,e,t),J9.call("_guiRelayout",e,o.getUpdateObj()))}function ee(){Ev(e)||ve(a)}function H(we,ce){if(t.type==="path"){var Se=function(Ee){return Ee},Ce=Se,Fe=Se;u?p("xanchor",t.xanchor=$(m+we)):(Ce=function(ze){return $(U(ze)+we)},E&&E.type==="date"&&(Ce=sa.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ce)):(Fe=function(ze){return j(X(ze)+ce)},N&&N.type==="date"&&(Fe=sa.encodeDate(Fe))),p("path",t.path=X9(v,Ce,Fe))}else u?p("xanchor",t.xanchor=$(m+we)):(p("x0",t.x0=$(b+we)),p("x1",t.x1=$(w+we))),s?p("yanchor",t.yanchor=j(k+ce)):(p("y0",t.y0=j(y+ce)),p("y1",t.y1=j(T+ce)));r.attr("d",ty(e,t)),le(a,t),Lv(e,n,t,D)}function te(we,ce){if(h){var Se=function(Ne){return Ne},Ce=Se,Fe=Se;u?p("xanchor",t.xanchor=$(m+we)):(Ce=function($e){return $(U($e)+we)},E&&E.type==="date"&&(Ce=sa.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ce)):(Fe=function($e){return j(X($e)+ce)},N&&N.type==="date"&&(Fe=sa.encodeDate(Fe))),p("path",t.path=X9(v,Ce,Fe))}else if(f){if(Q==="resize-over-start-point"){var Ee=b+we,ze=s?y-ce:y+ce;p("x0",t.x0=u?Ee:$(Ee)),p("y0",t.y0=s?ze:j(ze))}else if(Q==="resize-over-end-point"){var Ue=w+we,ge=s?T-ce:T+ce;p("x1",t.x1=u?Ue:$(Ue)),p("y1",t.y1=s?ge:j(ge))}}else{var Me=function(Ne){return Q.indexOf(Ne)!==-1},ke=Me("n"),me=Me("s"),ye=Me("w"),pe=Me("e"),he=ke?S+ce:S,xe=me?x+ce:x,Le=ye?M+we:M,qe=pe?d+we:d;s&&(ke&&(he=S-ce),me&&(xe=x-ce)),(!s&&xe-he>l||s&&he-xe>l)&&(p(_,t[_]=s?he:j(he)),p(g,t[g]=s?xe:j(xe))),qe-Le>i&&(p(c,t[c]=u?Le:$(Le)),p(A,t[A]=u?qe:$(qe)))}r.attr("d",ty(e,t)),le(a,t),Lv(e,n,t,D)}function le(we,ce){(u||s)&&Se();function Se(){var Ce=ce.type!=="path",Fe=we.selectAll(".visual-cue").data([0]),Ee=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var ze=U(u?ce.xanchor:ry.midRange(Ce?[ce.x0,ce.x1]:sa.extractPathCoords(ce.path,os.paramIsX))),Ue=X(s?ce.yanchor:ry.midRange(Ce?[ce.y0,ce.y1]:sa.extractPathCoords(ce.path,os.paramIsY)));if(ze=sa.roundPositionForSharpStrokeRendering(ze,Ee),Ue=sa.roundPositionForSharpStrokeRendering(Ue,Ee),u&&s){var ge="M"+(ze-1-Ee)+","+(Ue-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",ge)}else if(u){var Me="M"+(ze-1-Ee)+","+(Ue-9-Ee)+"v18 h2 v-18 Z";Fe.attr("d",Me)}else{var ke="M"+(ze-9-Ee)+","+(Ue-1-Ee)+"h18 v2 h-18 Z";Fe.attr("d",ke)}}}function ve(we){we.selectAll(".visual-cue").remove()}function Ae(we,ce,Se){var Ce=ce.xref,Fe=ce.yref,Ee=is.getFromId(Se,Ce),ze=is.getFromId(Se,Fe),Ue="";Ce!=="paper"&&!Ee.autorange&&(Ue+=Ce),Fe!=="paper"&&!ze.autorange&&(Ue+=Fe),Dv.setClipUrl(we,Ue?"clip"+Se._fullLayout._uid+Ue:null,Se)}}function X9(e,r,t){return e.replace(os.segmentRE,function(n){var a=0,o=n.charAt(0),i=os.paramIsX[o],l=os.paramIsY[o],u=os.numParams[o],s=n.slice(1).replace(os.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function pK(e,r){if(Rv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Z9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Z9,ny(e)}}}function Z9(e){if(Rv(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(K9(e),delete e._fullLayout._activeShapeIndex,ny(e))}}function gK(e){if(Rv(e)){K9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Fa=Er(),eA=ln(),rA=en(),rt=mv(),yK=Pv().eraseActiveShape,Iv=ir(),Jr=Iv._,tt=sA.exports={};tt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Jr(e,"Download plot as a PNG"):Jr(e,"Download plot")},icon:rt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Iv.notifier(Jr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Fa.call("downloadImage",e,t).then(function(n){Iv.notifier(Jr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Iv.notifier(Jr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};tt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Jr(e,"Edit in Chart Studio")},icon:rt.disk,click:function(e){eA.sendDataToCloud(e)}};tt.editInChartStudio={name:"editInChartStudio",title:function(e){return Jr(e,"Edit in Chart Studio")},icon:rt.pencil,click:function(e){eA.sendDataToCloud(e)}};tt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:rt.zoombox,click:Hn};tt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"dragmode",val:"pan",icon:rt.pan,click:Hn};tt.select2d={name:"select2d",_cat:"select",title:function(e){return Jr(e,"Box Select")},attr:"dragmode",val:"select",icon:rt.selectbox,click:Hn};tt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Jr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:rt.lasso,click:Hn};tt.drawclosedpath={name:"drawclosedpath",title:function(e){return Jr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:rt.drawclosedpath,click:Hn};tt.drawopenpath={name:"drawopenpath",title:function(e){return Jr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:rt.drawopenpath,click:Hn};tt.drawline={name:"drawline",title:function(e){return Jr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:rt.drawline,click:Hn};tt.drawrect={name:"drawrect",title:function(e){return Jr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:rt.drawrect,click:Hn};tt.drawcircle={name:"drawcircle",title:function(e){return Jr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:rt.drawcircle,click:Hn};tt.eraseshape={name:"eraseshape",title:function(e){return Jr(e,"Erase active shape")},icon:rt.eraseshape,click:yK};tt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:Hn};tt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:Hn};tt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Jr(e,"Autoscale")},attr:"zoom",val:"auto",icon:rt.autoscale,click:Hn};tt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Jr(e,"Reset axes")},attr:"zoom",val:"reset",icon:rt.home,click:Hn};tt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Jr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:Hn};tt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Jr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:rt.tooltip_compare,gravity:"ne",click:Hn};function Hn(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=rA.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var h=a==="in"?.5:2,p=(1+h)/2,b=(1-h)/2,y,w;for(f=0;f{"use strict";var uA=oy(),bK=Object.keys(uA),fA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],cA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(fA),Tu=[],_K=function(e){if(cA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Tu.indexOf(r)===-1&&Tu.push(r),Tu.indexOf(t)===-1&&Tu.push(t)}};bK.forEach(function(e){_K(uA[e])});Tu.sort();hA.exports={DRAW_MODES:fA,backButtons:cA,foreButtons:Tu}});var sy=de((Yhe,vA)=>{"use strict";var Ghe=ly();vA.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 pA=de((Whe,dA)=>{"use strict";var wK=ir(),jf=Xr(),MK=yt(),TK=sy();dA.exports=function(r,t){var n=r.modebar||{},a=MK.newContainer(t,"modebar");function o(l,u){return wK.coerce(n,a,TK,l,u)}o("orientation"),o("bgcolor",jf.addOpacity(t.paper_bgcolor,.5));var i=jf.contrast(jf.rgb(t.modebar.bgcolor));o("color",jf.addOpacity(i,.3)),o("activecolor",jf.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var xA=de((Xhe,mA)=>{"use strict";var uy=it(),AK=nt(),Nv=ir(),gA=mv(),kK=E0().version,SK=new DOMParser;function yA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Hi=yA.prototype;Hi.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(),Nv.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};Hi.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)})};Hi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Hi.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&&uy.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||gA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Hi.createIcon=function(e){var r=AK(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=SK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Hi.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=uy.select(n),u=function(h,p){var b=r.modebar,y=h.querySelector(".icon path");y&&(p||h.matches(":hover")?y.style.fill=b.activecolor:y.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Nv.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};Hi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var LK=en(),bA=la(),fy=Er(),DK=so().isUnifiedHover,RK=xA(),zv=oy(),PK=ly().DRAW_MODES,IK=ir().extendDeep;_A.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=BK(o):!n.displayModeBar&&n.watermark?i=[]:i=FK(r),a?a.update(r,i):t._modeBar=RK(r,i)};function FK(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,U=P._cat||P.name;if(O===L||U===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"],v=["resetViews"]):h?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],v=["resetGeo"]):f?(A=["hoverClosest3d"],v=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],v=["resetViewMapbox"]):T?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],v=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],v=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(qK(t)||M)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],v[0]!=="resetViews"&&(v=["resetScale2d"])),f?D=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||y?D=["zoom2d","pan2d"]:w||T||h?D=["pan2d"]:m&&(D=["zoom2d"]),zK(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=[],F=0;F{"use strict";MA.exports={moduleType:"component",name:"modebar",layoutAttributes:sy(),supplyLayoutDefaults:pA(),manage:wA()}});var hy=de((Khe,TA)=>{"use strict";var UK=Cn().FROM_BL;TA.exports=function(r,t,n){n===void 0&&(n=UK[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 rc=de(ec=>{"use strict";var ls=ir(),vy=uu(),si=en().id2name,HK=Da(),AA=hy(),VK=Vh(),GK=nn().ALMOST_EQUAL,YK=Cn().FROM_BL;ec.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,h,p,b,y;for(l=0;lo?t.slice(o):n.slice(a))+i}function XK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iGK*y&&!k)){for(o=0;oD&&OA&&(A=O);var X=(A-c)/(2*v);h/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d<_?[c,A]:[A,c]}SA(u,h)}}}};ec.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var Ov=it(),Vn=Er(),ma=ln(),Na=ir(),gy=On(),yy=yv(),tc=Xr(),Au=mt(),EA=Nf(),IA=cy(),nc=Lt(),po=Cn(),FA=rc(),ZK=FA.enforce,JK=FA.clean,LA=uu().doAutoRange,NA="start",KK="middle",zA="end",QK=on().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([ma.doAutoMargin,jK],e)};function $K(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function jK(e){var r=e._fullLayout,t=r._size,n=t.p,a=nc.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(Au.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),IA.manage(e),!r._has("cartesian"))return ma.previousPromises(e);function h(re,V,ee){var H=re._lw/2;if(re._id.charAt(0)==="x"){if(V){if(ee==="top")return V._offset-n-H}else return t.t+t.h*(1-(re.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(ee==="right")return V._offset+V._length+n+H}else return t.l+t.w*(re.position||0)+H%1;return V._offset-n-H}for(o=0;o0){nQ(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:PA(r.yanchor)}).call(gy.positionText,i,o);var f=(r.text.match(gy.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=Ov.select(e).selectAll(".gtitle-subtitle");if(p.node()){var b=l.node().getBBox(),y=b.y+b.height,w=y+EA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:PA(r.yanchor)}).call(gy.positionText,i,w)}}}};function eQ(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=rQ(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function nQ(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"&&eQ(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 aQ(e,r){var t=e.title,n=e._size,a=0;switch(r===NA?a=t.pad.l:r===zA&&(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 iQ(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 PA(e){return e==="top"?po.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":po.MID_SHIFT+"em"}function oQ(e){var r=e.title,t=KK;return Na.isRightAnchor(r)?t=zA:Na.isLeftAnchor(r)&&(t=NA),t}function lQ(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}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var sQ=$o().readPaths,uQ=Cv(),qA=Uo().clearOutlineControllers,my=Xr(),OA=mt(),fQ=yt().arrayEditor,BA=rl(),cQ=BA.getPathString;HA.exports={draw:Uv,drawOne:UA,activateLastSelection:dQ};function Uv(e){var r=e._fullLayout;qA(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(my.stroke,h).call(my.fill,f).call(OA.dashLine,T?"solid":b,T?4+p:p);if(hQ(m,e,n),y){var k=fQ(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=sQ(l,e);uQ(x,m,S)}else m.style("pointer-events",T?"all":"none");w[T]=m}var M=w[0],d=w[1];d.node().addEventListener("click",function(){return vQ(e,M)})}}function hQ(e,r,t){var n=t.xref+t.yref;OA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function vQ(e,r){if(Hv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){xy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=xy,Uv(e)}}}function dQ(e){if(Hv(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=xy,Uv(e)}}function xy(e){if(Hv(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(qA(e),delete e._fullLayout._activeSelectionIndex,Uv(e))}}});var GA=de((eve,VA)=>{function pQ(){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}VA.exports=pQ});var WA=de((rve,YA)=>{function gQ(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}YA.exports=gQ});var ZA=de((tve,XA)=>{var yQ={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}};XA.exports=yQ});var KA=de((nve,JA)=>{var ac=ZA();function mQ(e,r,t){function n(y,w){return{id:t?t.segmentId():-1,start:y,end:w,myFill:{above:null,below:null},otherFill:null}}function a(y,w,T){return{id:t?t.segmentId():-1,start:y,end:w,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=ac.create();function i(y,w,T,m,k,S){var x=r.pointsCompare(w,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,w){o.insertBefore(y,function(T){var m=i(y.isStart,y.pt,w,T.isStart,T.pt,T.other.pt);return m<0})}function u(y,w){var T=ac.node({isStart:!0,pt:y.start,seg:y,primary:w,other:null,status:null});return l(T,y.end),T}function s(y,w,T){var m=ac.node({isStart:!1,pt:w.end,seg:w,primary:T,other:y,status:null});y.other=m,l(m,y.pt)}function f(y,w){var T=u(y,w);return s(T,y,w),T}function h(y,w){t&&t.segmentChop(y.seg,w),y.other.remove(),y.seg.end=w,y.other.pt=w,l(y.other,y.pt)}function p(y,w){var T=a(w,y.seg.end,y.seg);return h(y,w),f(T,y.primary)}function b(y,w){var T=ac.create();function m(N,F){var I=N.seg.start,L=N.seg.end,P=F.seg.start,O=F.seg.end;return r.pointsCollinear(I,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(I,P,O)?1:-1}function k(N){return T.findTransition(function(F){var I=m(N,F.ev);return I>0})}function S(N,F){var I=N.seg,L=F.seg,P=I.start,O=I.end,U=L.start,X=L.end;t&&t.checkIntersection(I,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return F;var q=!j&&r.pointBetween(P,U,X),Q=!Y&&r.pointBetween(O,U,X);if(j)return Q?p(F,O):p(N,X),F;q&&(Y||(Q?p(F,O):p(N,X)),p(F,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(F,P):$.alongA===0?p(F,$.pt):$.alongA===1&&p(F,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(_){var F=S(M,_);if(F)return F}return g?S(M,g):!1};var R=N;t&&t.segmentNew(M.seg,M.primary);var d=k(M),_=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(M.seg,_?_.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 v;g?M.primary===g.primary?v=g.seg.otherFill.above:v=g.seg.myFill.above:v=M.primary?w:y,M.seg.otherFill={above:v,below:v}}t&&t.status(M.seg,_?_.seg:!1,g?g.seg:!1),M.other.status=d.insert(ac.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 w,T=y[y.length-1],m=0;m{function xQ(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,F){return f.index=R,f.matches_head=N,f.matches_pt1=F,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function ic(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 bQ={union:function(e,r){return ic(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ic(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ic(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ic(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ic(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};jA.exports=bQ});var tk=de((ove,rk)=>{var _Q={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 wQ=GA(),MQ=WA(),nk=KA(),TQ=$A(),oc=ek(),ak=tk(),za=!1,lc=MQ(),ua;ua={buildLog:function(e){return e===!0?za=wQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return lc.epsilon(e)},segments:function(e){var r=nk(!0,lc,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=nk(!1,lc,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:oc.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:oc.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:oc.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:oc.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:oc.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:TQ(e.segments,lc,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ak.toPolygon(ua,e)},polygonToGeoJSON:function(e){return ak.fromPolygon(ua,lc,e)},union:function(e,r){return sc(e,r,ua.selectUnion)},intersect:function(e,r){return sc(e,r,ua.selectIntersect)},difference:function(e,r){return sc(e,r,ua.selectDifference)},differenceRev:function(e,r){return sc(e,r,ua.selectDifferenceRev)},xor:function(e,r){return sc(e,r,ua.selectXor)}};function sc(e,r,t){var n=ua.segments(e),a=ua.segments(r),o=ua.combine(n,a),i=t(o);return ua.polygon(i)}typeof window=="object"&&(window.PolyBool=ua);ik.exports=ua});var sk=de((sve,lk)=>{lk.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<(b-h)*(i-p)/(y-p)+h;w&&(l=!l)}return l}});var wy=de((uve,uk)=>{"use strict";var _y=X0().dot,Vv=nn().BADNUM,Gv=uk.exports={};Gv.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===Vv||mi||w&&s(y))}function h(y,w){var T=y[0],m=y[1];if(T===Vv||Ta||m===Vv||mi)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,d,_,g,c,A;for(d=1;dMath.max(_,S)||m>Math.max(g,x)))if(ml||Math.abs(_y(h,s))>a)return!0;return!1};Gv.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 ck=de((fve,fk)=>{"use strict";fk.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Pk=de((cve,Rk)=>{"use strict";var hk=ok(),AQ=sk(),cc=Er(),kQ=mt().dashStyle,uc=Xr(),SQ=fo(),CQ=so().makeEventData,gc=bu(),EQ=gc.freeMode,LQ=gc.rectMode,hc=gc.drawMode,ky=gc.openMode,Sy=gc.selectMode,vk=rl(),dk=Qf(),xk=Cv(),bk=Uo().clearOutline,_k=$o(),My=_k.handleEllipse,DQ=_k.readPaths,RQ=Av().newShapes,PQ=J2(),IQ=by().activateLastSelection,Wv=ir(),FQ=Wv.sorterAsc,wk=wy(),fc=oh(),qa=en().getFromId,NQ=yv(),zQ=Bv().redrawReglTraces,Xv=ck(),Vi=Xv.MINSELECT,qQ=wk.filter,Cy=wk.tester,Ey=_v(),pk=Ey.p2r,OQ=Ey.axValue,BQ=Ey.getTransform;function Ly(e){return e.subplot!==void 0}function UQ(e,r,t,n,a){var o=!Ly(n),i=EQ(a),l=LQ(a),u=ky(a),s=hc(a),f=Sy(a),h=a==="drawline",p=a==="drawcircle",b=h||p,y=n.gd,w=y._fullLayout,T=f&&w.newselection.mode==="immediate"&&o,m=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=BQ(S),M=r-k.left,d=t-k.top;w._calcInverseTransform(y);var _=Wv.apply3DTransform(w._invTransform)(M,d);M=_[0],d=_[1];var g=w._invScaleX,c=w._invScaleY,A=M,v=d,D="M"+M+","+d,E=n.xaxes[0],R=n.yaxes[0],N=E._length,F=R._length,I=e.altKey&&!(hc(a)&&u),L,P,O,U,X,$,j;Tk(e,y,n),i&&(L=qQ([[M,d]],Xv.BENDPX));var Y=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Q=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ae=q.line.color||(o?uc.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":kQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(uc.stroke,ae).call(uc.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",D+"Z");var K=m.append("path").attr("class","zoombox-corners").style({fill:uc.background,stroke:uc.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var oe=m.select(".label-temp");oe.empty()&&(oe=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var re=w._uid+Xv.SELECTID,V=[],ee=Zv(y,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,le=R._id;Ek(y,te,le,ee);for(var ve=(y.layout||{}).selections||[],Ae=[],we=!1,ce=0;ce=0){y._fullLayout._deactivateShape(y);return}if(!s){var ve=w.clickmode;fc.done(re).then(function(){if(fc.clear(re),te===2){for(Y.remove(),X=0;X-1&&Mk(le,y,n.xaxes,n.yaxes,n.subplot,n,Y),ve==="event"&&pc(y,void 0);SQ.click(y,le,S.id)}).catch(Wv.error)}},n.doneFn=function(){K.remove(),fc.done(re).then(function(){fc.clear(re),!T&&U&&n.selectionDefs&&(U.subtract=I,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&vc(n,T),n.doneFnCompleted&&n.doneFnCompleted(V),f&&pc(y,j)}).catch(Wv.error)}}function Mk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,h=[],p,b,y,w,T,m,k,S,x,M;if(WQ(l)){Tk(e,r,o),p=Zv(r,t,n,a);var d=XQ(l,p),_=d.pointNumbers.length>0;if(_?ZQ(p,d):JQ(p)&&(k=yk(d))){for(i&&i.remove(),M=0;M=0}function YQ(e){return e._fullLayout._activeSelectionIndex>=0}function vc(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;GQ(a)&&a._fullLayout._deactivateShape(a),YQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=hc(t),u=Sy(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=RQ(s,e)),f&&cc.call("_guiRelayout",a,{shapes:f});var h;u&&!Ly(e)&&(h=PQ(s,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,cc.call("_guiRelayout",a,{selections:h}).then(function(){r&&IQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function gk(e){return e._id}function Zv(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(gk),i=t.map(gk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function ZQ(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 dc(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=mk(e,!0);if(te.length){var le=te[0].xref,ve=te[0].yref;if(le&&ve){var Ae=Lk(te),we=Dk([qa(e,le,"x"),qa(e,ve,"y")]);we(V,Ae)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&pc(e,V),p._reselect=!1}if(!i&&p._deselect){var ce=p._deselect;l=ce.xref,u=ce.yref,$Q(l,u,f)||Ek(e,l,u,n),H&&(V.points.length?pc(e,V):Py(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function QQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Ik.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 yc=de((vve,Fk)=>{"use strict";Fk.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 ku=de((pve,qk)=>{"use strict";var Nk=Iy(),zk=kn(),Jv=on(),n$=yt().templatedArray,dve=yc();qk.exports=n$("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:zk({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:Nk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Nk.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",Jv.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Jv.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Jv.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",Jv.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:zk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Kv=de((gve,Ok)=>{"use strict";Ok.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Uk=de((yve,Bk)=>{"use strict";Bk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var ss=de((mve,Jk)=>{"use strict";var Hk=lo().axisHoverFormat,{hovertemplateAttrs:a$,texttemplateAttrs:i$,templatefallbackAttrs:Vk}=ja(),Gk=ni(),o$=kn(),Yk=Ro().dash,l$=Ro().pattern,s$=mt(),u$=Kv(),mc=Tt().extendFlat,f$=Uk();function Wk(e){return{valType:"any",dflt:0,editType:"calc"}}function Xk(e){return{valType:"any",editType:"calc"}}function Zk(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:Wk("x"),yperiod:Wk("y"),xperiod0:Xk("x0"),yperiod0:Xk("y0"),xperiodalignment:Zk("x"),yperiodalignment:Zk("y"),xhoverformat:Hk("x"),yhoverformat:Hk("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:i$(),texttemplatefallback:Vk({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:a$({},{keys:u$.eventDataKeys}),hovertemplatefallback:Vk(),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:mc({},Yk,{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:f$(!0),fillgradient:mc({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:l$,marker:mc({symbol:{valType:"enumerated",values:s$.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:mc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:mc({},Yk,{arrayOk:!0}),editType:"calc"},Gk("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"},Gk("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:o$({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Fy=de((bve,$k)=>{"use strict";var Kk=ku(),Qk=ss().line,c$=Ro().dash,Qv=Tt().extendFlat,h$=qn().overrideAll,v$=yt().templatedArray,xve=yc();$k.exports=h$(v$("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Qv({},Kk.xref,{}),yref:Qv({},Kk.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:Qk.color,width:Qv({},Qk.width,{min:1,dflt:1}),dash:Qv({},c$,{dflt:"dot"})}}),"arraydraw","from-root")});var tS=de((_ve,rS)=>{"use strict";var jk=ir(),$v=Lt(),d$=ai(),p$=Fy(),eS=rl();rS.exports=function(r,t){d$(r,t,{name:"selections",handleItemDefaults:g$});for(var n=t.selections,a=0;a{"use strict";nS.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 xc=de((Mve,lS)=>{"use strict";var y$=Er(),iS=ir(),oS=en();lS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=y$.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,h=u.cartesian,p=a._has("cartesian"),b=0;b{"use strict";var sS=by(),bc=Pk();uS.exports={moduleType:"component",name:"selections",layoutAttributes:Fy(),supplyLayoutDefaults:tS(),supplyDrawNewSelectionDefaults:aS(),includeBasePlot:xc()("selections"),draw:sS.draw,drawOne:sS.drawOne,reselect:bc.reselect,prepSelect:bc.prepSelect,clearOutline:bc.clearOutline,clearSelectionsCache:bc.clearSelectionsCache,selectOnClick:bc.selectOnClick}});var LS=de((Ave,ES)=>{"use strict";var By=it(),Oa=ir(),fS=Oa.numberFormat,m$=Sa(),x$=iv(),jv=Er(),xS=Oa.strTranslate,b$=On(),cS=Xr(),nl=mt(),_$=fo(),hS=Lt(),w$=Ko(),M$=oi(),bS=bu(),e1=bS.selectingOrDrawing,T$=bS.freeMode,A$=Cn().FROM_TL,k$=yv(),S$=Bv().redrawReglTraces,C$=ln(),zy=en().getFromId,E$=Su().prepSelect,L$=Su().clearOutline,D$=Su().selectOnClick,Ny=hy(),Uy=on(),vS=Uy.MINDRAG,Zn=Uy.MINZOOM,dS=!0;function R$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,h,p,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,D,E,R,N,F,I;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,b={},b[h._id]=h,y={},y[p._id]=p,i&&l)for(var pe=r.overlays,he=0;he=0){xe._fullLayout._deactivateShape(xe);return}var Le=xe._fullLayout.clickmode;if(Oy(xe),pe===2&&!f&&Ue(),s)Le.indexOf("select")>-1&&D$(he,xe,w,T,r.id,U),Le.indexOf("event")>-1&&_$.click(xe,he,r.id);else if(pe===1&&f){var qe=i?p:h,Ne=i==="s"||l==="w"?0:1,$e=qe._name+".range["+Ne+"]",Ve=P$(qe,Ne),Be="left",Ye="middle";if(qe.fixedrange)return;i?(Ye=i==="n"?"top":"bottom",qe.side==="right"&&(Be="right")):l==="e"&&(Be="right"),xe._context.showAxisRangeEntryBoxes&&By.select(O).call(b$.makeEditable,{gd:xe,immediate:!0,background:xe._fullLayout.paper_bgcolor,text:String(Ve),fill:qe.tickfont?qe.tickfont.color:"#444",horizontalAlign:Be,verticalAlign:Ye}).on("edit",function(Te){var Re=qe.d2r(Te);Re!==void 0&&jv.call("_guiRelayout",xe,$e,Re)})}}M$.init(U);var j,Y,q,Q,ae,K,oe,re,V,ee;function H(pe,he,xe){var Le=O.getBoundingClientRect();j=he-Le.left,Y=xe-Le.top,e._fullLayout._calcInverseTransform(e);var qe=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=qe[0],Y=qe[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:m$(e._fullLayout.plot_bgcolor).getLuminance(),ae="M0,0H"+S+"V"+x+"H0V0",K=!1,oe="xy",ee=!1,re=MS(u,Q,m,k,ae),V=TS(u,m,k)}function te(pe,he){if(e._transitioningWithDuration)return!1;var xe=Math.max(0,Math.min(S,F*pe+j)),Le=Math.max(0,Math.min(x,I*he+Y)),qe=Math.abs(xe-j),Ne=Math.abs(Le-Y);q.l=Math.min(j,xe),q.r=Math.max(j,xe),q.t=Math.min(Y,Le),q.b=Math.max(Y,Le);function $e(){oe="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)qe>Zn||Ne>Zn?(oe="xy",qe/S>Ne/x?(Ne=qe*x/S,Y>Le?q.t=Y-Ne:q.b=Y+Ne):(qe=Ne*S/x,j>xe?q.l=j-qe:q.r=j+qe),V.attr("d",r1(q))):$e();else if(d.isSubplotConstrained)if(qe>Zn||Ne>Zn){oe="xy";var Ve=Math.min(q.l/S,(x-q.b)/x),Be=Math.max(q.r/S,(x-q.t)/x);q.l=Ve*S,q.r=Be*S,q.b=(1-Ve)*x,q.t=(1-Be)*x,V.attr("d",r1(q))}else $e();else!g||Ne0){var Te;if(d.isSubplotConstrained||!_&&g.length===1){for(Te=0;Te1&&($e.maxallowed!==void 0&&A===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&A===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,J=0),Ke?(ue=Re,ne=i||d.isSubplotConstrained?pe[1]:ye(Ve,ue)):d.yaHash[Ve._id]?(ue=Re,ne=pe[1]*Ve._length/p._length):d.xaHash[Ve._id]?(ue=Te,ne=_==="ew"?-pe[0]*Ve._length/h._length:ye(Ve,ue,{e:"right",w:"left"}[_])):(ue=ke(Ve,Te,Re),ne=me(Ve,ue)),ue>1&&(Ve.maxallowed!==void 0&&v===(Ve.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function F$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function MS(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",xS(t,n)).attr("d",a+"Z")}function TS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:cS.background,stroke:cS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xS(r,t)).attr("d","M0,0Z")}function AS(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"),kS(e,r,a,o)}function kS(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 Oy(e){By.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function SS(e){dS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),dS=!1)}function N$(e,r){return"M"+(e.l-.5)+","+(r-Zn-.5)+"h-3v"+(2*Zn+1)+"h3ZM"+(e.r+.5)+","+(r-Zn-.5)+"h3v"+(2*Zn+1)+"h-3Z"}function z$(e,r){return"M"+(r-Zn-.5)+","+(e.t-.5)+"v-3h"+(2*Zn+1)+"v3ZM"+(r-Zn-.5)+","+(e.b+.5)+"v3h"+(2*Zn+1)+"v-3Z"}function r1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Zn)/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 yS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,h,p=(a||{}).xaHash,b=(a||{}).yaHash,y=0;y{"use strict";var q$=it(),t1=fo(),O$=oi(),B$=Ko(),ui=LS().makeDragBox,cn=on().DRAGGERSIZE;n1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){q$.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]&&t1.hover(r,p,o)},t1.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,O$.unhover(r,p))},r._context.showAxisDragHandles&&(ui(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),ui(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),ui(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),ui(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),ui(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),ui(r,i,l._offset,f,l._length*.1,cn,"","w"),ui(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var h=u._mainLinePosition;u.side!=="right"&&(h-=cn),ui(r,i,h,u._offset+u._length*.1,cn,u._length*.8,"ns",""),ui(r,i,h,u._offset+u._length*.9,cn,u._length*.1,"s",""),ui(r,i,h,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,t1.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,t1.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},n1.updateFx(r)}};n1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";B$(r._draggers,t)}});var PS=de((Sve,RS)=>{"use strict";var DS=Er();RS.exports=function(r){for(var t=DS.layoutArrayContainers,n=DS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var U$=Eo(),Vy=W0(),_c=Il(),H$=qp().sorterAsc,Gy=Er();wc.containerArrayMatch=PS();var V$=wc.isAddVal=function(r){return r==="add"||U$(r)},IS=wc.isRemoveVal=function(r){return r===null||r==="remove"};wc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Gy.getComponentMethod(i,"supplyLayoutDefaults"),u=Gy.getComponentMethod(i,"draw"),s=Gy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Vy||u===Vy,h=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&_c.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(IS(b))t.set(null);else if(Array.isArray(b))t.set(b);else return _c.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(h,p),u(r),!0)}var y=Object.keys(n).map(Number).sort(H$),w=t.get(),T=w||[],m=o(p,i).get(),k=[],S=-1,x=T.length,M,d,_,g,c,A,v,D;for(M=0;MT.length-(v?0:1)){_c.warn("index out of range",i,_);continue}if(A!==void 0)c.length>1&&_c.warn("Insertion & removal are incompatible with edits to the same index.",i,_),IS(A)?k.push(_):v?(A==="add"&&(A={}),T.splice(_,0,A),m&&m.splice(_,0,{})):_c.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(d=0;d=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?w||t.set(T):t.set(null),f)return!1;if(l(h,p),s!==Vy){var E;if(S===-1)E=y;else{for(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(_);for(M=S;M{"use strict";var OS=nt(),BS=Er(),Gn=ir(),Mc=ln(),US=en(),HS=Xr(),Tc=US.cleanId,G$=US.getFromTrace,Yy=BS.traceIs,Y$=["x","y","z"];Ba.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Gn.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=(Mc.subplotsRegistry.cartesian||{}).attrRegex,a=(Mc.subplotsRegistry.polar||{}).attrRegex,o=(Mc.subplotsRegistry.ternary||{}).attrRegex,i=(Mc.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"),HS.clean(e),e.template&&e.template.layout&&Ba.cleanLayout(e.template.layout),e};function Cu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Tc(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=qS(r);t;){if(t in e)return!0;t=qS(t)}return!1};Ba.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>Gn.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;nGn.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)?Wy(a,o):!1))return!1}return!0}return!1};Ba.collectionsAreEqual=Wy});var $y=de(et=>{"use strict";var l1=it(),Z$=nt(),J$=Qp(),dr=ir(),wt=dr.nestedProperty,Jy=Sf(),Jn=Mw(),Ua=Er(),d1=eu(),Lr=ln(),Yn=Lt(),K$=x2(),Q$=Da(),Xy=mt(),$$=Xr(),j$=Hy().initInteractions,ej=Ho(),rj=Su().clearOutline,ZS=Pl().dfltConfig,i1=FS(),Wt=VS(),ht=Bv(),al=qn(),tj=on().AX_NAME_PATTERN,Zy=0,GS=5;function nj(e,r,t,n){var a;if(e=dr.getGraphDiv(e),Jy.init(e),dr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Jy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!dr.isPlotDiv(e)&&dr.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)}KS(e,n),t||(t={}),l1.select(e).classed("js-plotly-plot",!0),Xy.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)),Lr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(kj(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Xy.initGradients(e),Xy.initPatterns(e),u&&Yn.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&Lr.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 QS(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]),u1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&u1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function sj(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[v]!="string";)v--;var D=g.parts[v],E=g.parts[v-1]+"."+D,R=g.parts.slice(0,v).join("."),N=wt(e.layout,R).get(),F=wt(n,R).get(),I=g.get();if(c!==void 0){m[_]=c,k[_]=D==="reverse"?c:go(I);var L=d1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(dr.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(c){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(oC))d(E),wt(n,R+"._inputRange").set(null);else if(E.match(lC)){d(E),wt(n,R+"._inputRange").set(null);var U=wt(n,R).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(hj)&&wt(n,R+"._inputDomain").set(null);if(D==="type"){M=N;var X=F.type==="linear"&&c==="log",$=F.type==="log"&&c==="linear";if(X||$){if(!M||!M.range)S(R+".autorange",!0);else if(F.autorange)X&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],Y=M.range[1];X?(j<=0&&Y<=0&&S(R+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(Y)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),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,F,c,S),Ua.getComponentMethod("images","convertCoords")(e,F,c,S)}else S(R+".autorange",!0),S(R+".range",null);wt(n,R+"._inputRange").set(null)}else if(D.match(tj)){var q=wt(n,_).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 ae=i1.containerArrayMatch(_);if(ae){f=ae.array,h=ae.index;var K=ae.property,oe=L||{editType:"calc"};h!==""&&K===""&&(i1.isAddVal(c)?k[_]=null:i1.isRemoveVal(c)?k[_]=(wt(t,f).get()||[])[h]:dr.warn("unrecognized full object value",r)),al.update(T,oe),s[f]||(s[f]={});var re=s[f][h];re||(re=s[f][h]={}),re[K]=c,delete r[_]}else D==="reverse"?(N.range?N.range.reverse():(S(R+".autorange",!0),N.range=[1,0]),F.autorange?T.calc=!0:T.plot=!0):(_==="dragmode"&&(c===!1&&I!==!1||c!==!1&&I===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(c==="lasso"||c==="select")&&!(I==="lasso"||I==="select")?T.plot=!0:L?al.update(T,L):T.calc=!0,g.set(c))}}for(f in s){var V=i1.applyContainerArrayChanges(e,o(t,f),s[f],T,o);V||(T.plot=!0)}for(var ee in x){M=Yn.getFromId(e,ee);var H=M&&M._constraintGroup;if(H){T.calc=!0;for(var te in H)x[te]||(Yn.getFromId(e,te)._constraintShrinkable=!0)}}(uC(e)||r.height||r.width)&&(T.plot=!0);var le=n.shapes;for(h=0;h1;)if(n.pop(),t=wt(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function pj(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(F=>e.on(R,F));return et.react(e,r,t,n)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),yj(e.data,e.layout,l,u),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,p=e._fullLayout,b=p.datarevision===void 0,y=p.transition,w=bj(e,u,p,b,y),T=w.newDataRevision,m=xj(e,l,h,b,y,T);if(uC(e)&&(w.layoutReplot=!0),m.calc||w.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 xj(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(b){var y=d1.getTraceValObject(s,b);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,d=Array.isArray(r),_=!M&&!d&&dr.isPlainObject(r);if(_)x.push({type:"object",data:m(dr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&v.push(S);x=v}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function wj(e,r,t){if(e=dr.getGraphDiv(e),r==null)return Promise.resolve();if(!dr.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(dr.isPlainObject(r[n])){var p=r[n].name,b=(u[p]||h[p]||{}).name,y=r[n].name,w=u[b]||h[b];b&&y&&typeof y=="number"&&w&&Zyg.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&dr.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=Lr.modifyFrames,u=Lr.modifyFrames,s=[e,i],f=[e,o];return Jn&&Jn.add(e,l,s,u,f),Lr.modifyFrames(e,o)}function Tj(e){e=dr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),Jy.purge(e),r._container&&r._container.remove(),delete e._context,e}function Aj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!dr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=dr.inverseTransformMatrix(dr.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 kj(e){var r=l1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Aj,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={};l1.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=dr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(ej.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=_j;et.addFrames=wj;et.deleteFrames=Mj;et.addTraces=tC;et.deleteTraces=nC;et.extendTraces=eC;et.moveTraces=Ky;et.prependTraces=rC;et.newPlot=lj;et._doPlot=nj;et.purge=Tj;et.react=mj;et.redraw=oj;et.relayout=Ac;et.restyle=f1;et.setPlotConfig=aj;et.update=h1;et._guiRelayout=Qy(Ac);et._guiRestyle=Qy(f1);et._guiUpdate=Qy(h1);et._storeDirectGUIEdit=cj});var us=de(Gi=>{"use strict";var Sj=Er();Gi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Gi.getRedrawFunc=function(e){return function(){Sj.getComponentMethod("colorbar","draw")(e)}};Gi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Gi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var fC=window.URL||window.webkitURL;Gi.createObjectURL=function(e){return fC.createObjectURL(e)};Gi.revokeObjectURL=function(e){return fC.revokeObjectURL(e)};Gi.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=Cj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Gi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Cj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var em=it(),Rve=ir(),Ej=mt(),Lj=Xr(),Pve=Ho(),jy=/"/g,Sc="TOBESTRIPPED",Dj=new RegExp('("'+Sc+")|("+Sc+'")',"g");function Rj(e){var r=em.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 Pj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}cC.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(Ej.setRect,0,0,l,u).call(Lj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var Ij=ir(),Fj=vh().EventEmitter,Cc=us();function Nj(e){var r=e.emitter||new Fj,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,b=s*h,y=u.getContext("2d",{willReadFrequently:!0}),w=new o,T,m;l==="svg"||Ij.isSafari()?m=Cc.encodeSVG(i):(T=Cc.createBlob(i,"svg"),m=Cc.createObjectURL(T)),u.width=p,u.height=b,w.onload=function(){var k;switch(T=null,Cc.revokeObjectURL(m),l!=="svg"&&y.drawImage(w,0,0,p,b),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)},w.onerror=function(k){if(T=null,Cc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},w.src=m});return e.promise?t:r}hC.exports=Nj});var tm=de((Nve,pC)=>{"use strict";var vC=nt(),dC=$y(),zj=ln(),Yi=ir(),Ec=us(),qj=g1(),Oj=y1(),Bj=E0().version,rm={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 Uj(e,r){r=r||{};var t,n,a,o;Yi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Yi.getGraphDiv(e),t=Yi.extendDeep([],e.data),n=Yi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Yi.validate(r[d],rm[d])}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 "+Yi.join2(rm.format.values,", "," or ")+".");var l={};function u(d,_){return Yi.coerce(r,l,rm,d,_)}var s=u("format"),f=u("width"),h=u("height"),p=u("scale"),b=u("setBackground"),y=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var T=Yi.extendFlat({},n);f?T.width=f:r.width===null&&vC(o.width)&&(T.width=o.width),h?T.height=h:r.height===null&&vC(o.height)&&(T.height=o.height);var m=Yi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=Ec.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,Ec.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,_){var g=qj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function v(){dC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var D=zj.graphJson(w,!1,"keepdata","object",!0,!0);return D.version=Bj,D=JSON.stringify(D),v(),d(y?D:Ec.encodeJSON(D))}if(v(),s==="svg")return d(y?g:Ec.encodeSVG(g));var E=document.createElement("canvas");E.id=Yi.randstr(),Oj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(_)})}function M(d){return y?d.replace(Ec.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,_){dC.newPlot(w,t,T,m).then(k).then(S).then(x).then(function(g){d(M(g))}).catch(function(g){_(g)})})}pC.exports=Uj});var mC=de((zve,yC)=>{"use strict";var Ha=ir(),Hj=ln(),Vj=eu(),Gj=Pl().dfltConfig,fi=Ha.isPlainObject,cs=Array.isArray,nm=Ha.isArrayOrTypedArray;yC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=Vj.get(),a=[],o={_context:Ha.extendFlat({},Gj)},i,l;cs(r)?(o.data=Ha.extendDeep([],r),i=r):(o.data=[],i=[],a.push(hn("array","data"))),fi(t)?(o.layout=Ha.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(hn("object","layout"))),Hj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fh.length&&n.push(hn("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,d,_;if(p.dimensions===2)for(x=0;xh[x].length&&n.push(hn("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,d=f[x][S],_=h[x][S],Ha.validate(d,M)?_!==d&&_!==+d&&n.push(hn("dynamic",a,s.concat(x,S),d,_)):n.push(hn("value",a,s.concat(x,S),d))}else n.push(hn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Qj=ir(),x1=us();function $j(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=x1.createBlob(e,t),s=x1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),x1.revokeObjectURL(s),u=null,i(r);if(Qj.isSafari()){var f=t==="svg"?",":";base64,";return x1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}xC.exports=$j});var am=de((Bve,wC)=>{"use strict";var _C=ir(),jj=tm(),eee=bC(),Ove=us();function ree(e,r){var t;return _C.isPlainObject(e)||(t=_C.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=jj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),eee(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}wC.exports=ree});var SC=de(im=>{"use strict";var fa=ir(),ca=fa.isPlainObject,MC=eu(),TC=ln(),tee=Sn(),AC=yt(),kC=Pl().dfltConfig;im.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:kC},{data:e.data,layout:e.layout}),TC.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(b){var y={};Lc(b,y,aee.bind(null,b));var w=fa.coerce(b,{},tee,"type"),T=n.data[w];T||(T=n.data[w]=[]),T.push(y)}),Lc(t,n.layout,nee.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,h;ca(o)&&b1(o,n.layout);var p=a.data;if(ca(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:b,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:b,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],_=Va(S,M,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:_,templateitemname:d.templateitemname}),k(d,_)):Array.isArray(d)&&iee(d)&&k(d,_)}}if(k({data:u,layout:l},""),i.length)return i.map(oee)};function iee(e){for(var r=0;r{"use strict";var rn=$y();Ct._doPlot=rn._doPlot;Ct.newPlot=rn.newPlot;Ct.restyle=rn.restyle;Ct.relayout=rn.relayout;Ct.redraw=rn.redraw;Ct.update=rn.update;Ct._guiRestyle=rn._guiRestyle;Ct._guiRelayout=rn._guiRelayout;Ct._guiUpdate=rn._guiUpdate;Ct._storeDirectGUIEdit=rn._storeDirectGUIEdit;Ct.react=rn.react;Ct.extendTraces=rn.extendTraces;Ct.prependTraces=rn.prependTraces;Ct.addTraces=rn.addTraces;Ct.deleteTraces=rn.deleteTraces;Ct.moveTraces=rn.moveTraces;Ct.purge=rn.purge;Ct.addFrames=rn.addFrames;Ct.deleteFrames=rn.deleteFrames;Ct.animate=rn.animate;Ct.setPlotConfig=rn.setPlotConfig;var lee=xf().getGraphDiv,see=Pv().eraseActiveShape;Ct.deleteActiveShape=function(e){return see(lee(e))};Ct.toImage=tm();Ct.validate=mC();Ct.downloadImage=am();var CC=SC();Ct.makeTemplate=CC.makeTemplate;Ct.validateTemplate=CC.validateTemplate});var DC=de((Vve,LC)=>{"use strict";var om=ir(),uee=Er();LC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=uee.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=om.minRowLength(o);i?l=Math.min(s,om.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=om.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var FC=de((Gve,IC)=>{"use strict";var RC=ir().dateTick0,fee=nn(),cee=fee.ONEWEEK;function PC(e,r){return e%cee===0?RC(r,1):RC(r,0)}IC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",PC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",PC(l,t.ycalendar)),a("yperiodalignment"))}}});var qC=de((Yve,zC)=>{"use strict";var NC=["orientation","groupnorm","stackgaps"];zC.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 OC=Xr(),BC=Ei().hasColorscale,UC=Di(),hee=la();HC.exports=function(r,t,n,a,o,i={}){var l=hee.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),BC(r,"marker")&&UC(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=OC.background:s=OC.defaultLine,o("marker.line.color",s),BC(r,"marker.line")&&UC(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 sm=de((Xve,VC)=>{"use strict";var vee=ir().isArrayOrTypedArray,dee=Ei().hasColorscale,pee=Di();VC.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),dee(r,"line"))pee(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(vee(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var YC=de((Zve,GC)=>{"use strict";GC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var um=de((Jve,WC)=>{"use strict";var gee=ir();WC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),gee.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var JC=de((Kve,ZC)=>{"use strict";var w1=Xr(),XC=ir().isArrayOrTypedArray;function yee(e){for(var r=w1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var KC=ir(),mee=Er(),xee=ss(),bee=Kv(),Eu=la(),_ee=DC(),wee=FC(),Mee=qC(),Tee=lm(),Aee=sm(),QC=YC(),kee=um(),See=JC(),Cee=ir().coercePattern;$C.exports=function(r,t,n,a){function o(b,y){return KC.coerce(r,t,xee,b,y)}var i=_ee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){wee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Mee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var Eee=rc().getAxisGroup;eE.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Eee(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 b=a("offsetgroup")||"",y=p.offsetGroups,w=y[b];t._offsetIndex=0,(o!=="group"||b)&&(w||(w=y[b]={offsetIndex:Object.keys(y).length}),t._offsetIndex=w.offsetIndex)}});var nE=de((jve,tE)=>{"use strict";var Lee=ir(),Dee=rE(),Ree=ss();tE.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Lee.coerce(a._input,a,Ree,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 iE=de((e1e,aE)=>{"use strict";var Pee=ir(),Iee=mh();aE.exports=function(e,r){function t(a,o){return Pee.coerce(e,r,Iee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var sE=de((r1e,lE)=>{"use strict";var Fee=nt(),oE=ir(),Nee=oE.dateTime2ms,M1=oE.incrementMonth,zee=nn(),qee=zee.ONEAVGMONTH;lE.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(Fee(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"],b=Nee(p,s)||0,y=[],w=[],T=[],m=a.length,k=0;kS;)d=M1(d,-l,s);for(;d<=S;)d=M1(d,l,s);M=M1(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;M=d-i}y[k]=f?M:h?d:(M+d)/2,w[k]=M,T[k]=d}return{vals:y,starts:w,ends:T}}});var hm=de((t1e,fE)=>{"use strict";var fm=Ei().hasColorscale,cm=Go(),uE=la();fE.exports=function(r,t){uE.hasLines(t)&&fm(t,"line")&&cm(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),uE.hasMarkers(t)&&(fm(t,"marker")&&cm(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),fm(t,"marker.line")&&cm(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var T1=de((n1e,cE)=>{"use strict";var Ft=ir();cE.exports=function(r,t){for(var n=0;n{"use strict";var hE=ir();vE.exports=function(r,t){hE.isArrayOrTypedArray(t.selectedpoints)&&hE.tagSelected(r,t)}});var ym=de((i1e,_E)=>{"use strict";var pE=nt(),dm=ir(),Dc=Lt(),gE=sE(),vm=nn().BADNUM,pm=la(),Oee=hm(),Bee=T1(),Uee=dE();function Hee(e,r){var t=e._fullLayout,n=r._xA=Dc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Dc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=gE(r,n,"x",o),u=gE(r,a,"y",i),s=l.vals,f=u.vals,h=r._length,p=new Array(h),b=r.ids,y=gm(r,t,n,a),w=!1,T,m,k,S,x,M;xE(t,r);var d="x",_="y",g;if(y)dm.pushUnique(y.traceIndices,r.index),T=y.orientation==="v",T?(_="s",g="x"):(d="s",g="y"),x=y.stackgaps==="interpolate";else{var c=mE(r,h);yE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,v=!!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";wE.exports=A1;var Vee=ir().distinctVals;function A1(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";TE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var LE=de((s1e,EE)=>{"use strict";var Ga=nt(),{isArrayOrTypedArray:yo}=ir(),{BADNUM:Lu}=nn(),Gee=Er(),Rc=Lt(),{getAxisGroup:Yee}=rc(),k1=ME(),{TEXTPAD:Wee}=AE(),{LINE_SPACING:Xee}=Cn(),{BR_TAG_ALL:Zee}=On();function Jee(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*Xee*t+Wee;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 ire(e,r,t,n){for(var a=Du(n),o=0;o{"use strict";var DE=ym(),RE=LE().setGroupPositions;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;sc[f]&&f{"use strict";var ure=mt(),qE=nn(),Pc=qE.BADNUM,OE=qE.LOG_CLIP,FE=OE+.5,NE=OE-.5,S1=ir(),fre=S1.segmentsIntersect,zE=S1.constrain,Tm=Kv();BE.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,b=t.baseTolerance,y=t.shape,w=y==="linear",T=n.fill&&n.fill!=="none",m=[],k=Tm.minTolerance,S=r.length,x=new Array(S),M=0,d,_,g,c,A,v,D,E,R,N,F,I,L,P,O,U;function X(Ye){var Te=r[Ye];if(!Te)return!1;var Re=t.linearized?a.l2p(Te.x):a.c2p(Te.x),Qe=t.linearized?o.l2p(Te.y):o.c2p(Te.y);if(Re===Pc){if(i&&(Re=a.c2p(Te.x,!0)),Re===Pc)return!1;l&&Qe===Pc&&(Re*=Math.abs(a._m*s*(a._m>0?FE:NE)/(o._m*u*(o._m>0?FE:NE)))),Re*=1e3}if(Qe===Pc){if(l&&(Qe=o.c2p(Te.y,!0)),Qe===Pc)return!1;Qe*=1e3}return[Re,Qe]}function $(Ye,Te,Re,Qe){var Ke=Re-Ye,ar=Qe-Te,ue=.5-Ye,J=.5-Te,ne=Ke*Ke+ar*ar,De=Ke*ue+ar*J;if(De>0&&De1||Math.abs(ue.y-Re[0][1])>1)&&(ue=[ue.x,ue.y],Qe&&Q(ue,Ye)oe||Ye[1]V)return[zE(Ye[0],K,oe),zE(Ye[1],re,V)]}function Ce(Ye,Te){if(Ye[0]===Te[0]&&(Ye[0]===K||Ye[0]===oe)||Ye[1]===Te[1]&&(Ye[1]===re||Ye[1]===V))return!0}function Fe(Ye,Te){var Re=[],Qe=Se(Ye),Ke=Se(Te);return Qe&&Ke&&Ce(Qe,Ke)||(Qe&&Re.push(Qe),Ke&&Re.push(Ke)),Re}function Ee(Ye,Te,Re){return function(Qe,Ke){var ar=Se(Qe),ue=Se(Ke),J=[];if(ar&&ue&&Ce(ar,ue))return J;ar&&J.push(ar),ue&&J.push(ue);var ne=2*S1.constrain((Qe[Ye]+Ke[Ye])/2,Te,Re)-((ar||Qe)[Ye]+(ue||Ke)[Ye]);if(ne){var De;ar&&ue?De=ne>0==ar[Ye]>ue[Ye]?ar:ue:De=ar||ue,De[Ye]+=ne}return J}}var ze;y==="linear"||y==="spline"?ze=ce:y==="hv"||y==="vh"?ze=Fe:y==="hvh"?ze=Ee(0,K,oe):y==="vhv"&&(ze=Ee(1,re,V));function Ue(Ye,Te){var Re=Te[0]-Ye[0],Qe=(Te[1]-Ye[1])/Re,Ke=(Ye[1]*Te[0]-Te[1]*Ye[0])/Re;return Ke>0?[Qe>0?K:oe,V]:[Qe>0?oe:K,re]}function ge(Ye){var Te=Ye[0],Re=Ye[1],Qe=Te===x[M-1][0],Ke=Re===x[M-1][1];if(!(Qe&&Ke))if(M>1){var ar=Te===x[M-2][0],ue=Re===x[M-2][1];Qe&&(Te===K||Te===oe)&&ar?ue?M--:x[M-1]=Ye:Ke&&(Re===re||Re===V)&&ue?ar?M--:x[M-1]=Ye:x[M++]=Ye}else x[M++]=Ye}function Me(Ye){x[M-1][0]!==Ye[0]&&x[M-1][1]!==Ye[1]&&ge([le,ve]),ge(Ye),Ae=null,le=ve=0}var ke=S1.isArrayOrTypedArray(h);function me(Ye){if(Ye&&f&&(Ye.i=d,Ye.d=r,Ye.trace=n,Ye.marker=ke?h[Ye.i]:h,Ye.backoff=f),j=Ye[0]/u,Y=Ye[1]/s,H=Ye[0]oe?oe:0,te=Ye[1]V?V:0,H||te){if(!M)x[M++]=[H||Ye[0],te||Ye[1]];else if(Ae){var Te=ze(Ae,Ye);Te.length>1&&(Me(Te[0]),x[M++]=Te[1])}else we=ze(x[M-1],Ye)[0],x[M++]=we;var Re=x[M-1];H&&te&&(Re[0]!==H||Re[1]!==te)?(Ae&&(le!==H&&ve!==te?ge(le&&ve?Ue(Ae,Ye):[le||H,ve||te]):le&&ve&&ge([le,ve])),ge([H,te])):le-H&&ve-te&&ge([H||le,te||ve]),Ae=Ye,le=H,ve=te}else Ae&&Me(ze(Ae,Ye)[0]),x[M++]=Ye}for(d=0;dq(v,ye))break;g=v,L=R[0]*E[0]+R[1]*E[1],L>F?(F=L,c=v,D=!1):L=r.length||!v)break;me(v),_=v}}Ae&&ge([le||Ae[0],ve||Ae[1]]),m.push(x.slice(0,M))}var pe=y.slice(y.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var he=!1,xe=-1,Le=[],qe=0;qe{"use strict";var HE={tonextx:1,tonexty:1,tonext:1};VE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,h=-1,p=0,b=-1;for(o=0;o=0?u=b:(u=b=p,p++),u{"use strict";var ci=it(),cre=Er(),Ic=ir(),Ru=Ic.ensureSingle,WE=Ic.identity,zt=mt(),Pu=la(),hre=UE(),vre=GE(),C1=wy().tester;XE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,h=vre(r,t,n);if(l=a.selectAll("g.trace").data(h,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),dre(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(b,y){YE(r,y,t,b,h,this,o)})})}else l.each(function(b,y){YE(r,y,t,b,h,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function dre(e,r,t){r.each(function(n){var a=Ru(ci.select(this),"g","fills");zt.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,WE);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Ru(ci.select(this),"path","js-fill")})})}function YE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;pre(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Ee){return s?Ee.transition():Ee}var h=t.xaxis,p=t.yaxis,b=n[0].trace,y=b.line,w=ci.select(o),T=Ru(w,"g","errorbars"),m=Ru(w,"g","lines"),k=Ru(w,"g","points"),S=Ru(w,"g","text");if(cre.getComponentMethod("errorbars","plot")(e,T,t,i),b.visible!==!0)return;f(w).style("opacity",b.opacity);var x,M,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var _,g;d==="y"?(_=1,g=p.c2p(0,!0)):d==="x"&&(_=0,g=h.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],v=b._prevtrace,D=null,E=null;v&&(c=v._prevRevpath||"",M=v._nextFill,A=v._ownPolygons,D=v._fillsegments,E=v._fillElement);var R,N,F="",I="",L,P,O,U,X,$,j=[];b._polygons=[];var Y=[],q=[],Q=Ic.noop;if(x=b._ownFill,Pu.hasLines(b)||b.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(L=zt.steps(y.shape),P=zt.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?L=P=function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?zt.smoothclosed(Ee.slice(1),y.smoothing):zt.smoothopen(Ee,y.smoothing)}:L=P=function(Ee){return"M"+Ee.join("L")},O=function(Ee){return P(Ee.reverse())},q=hre(n,{xaxis:h,yaxis:p,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:b.fill}),Y=new Array(q.length);var ae=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(h.length/f),b=0;a.forEach(function(w,T){var m=w[0].trace;Pu.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";JE.exports={container:"marker",min:"cmin",max:"cmax"}});var $E=de((d1e,QE)=>{"use strict";var E1=Lt();QE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=E1.getFromTrace(o,t,"x"),l=E1.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=E1.tickText(i,i.c2l(u),!0).text,a.yLabel=E1.tickText(l,l.c2l(s),!0).text,a}});var Cm=de((p1e,jE)=>{"use strict";var Am=it(),Iu=mt(),gre=Er();function yre(e){var r=Am.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=Am.select(this),a=t.trace||t[0].trace;km(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Am.select(this),a=t.trace||t[0].trace;Sm(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),gre.getComponentMethod("errorbars","style")(r)}function km(e,r,t){Iu.pointStyle(e.selectAll("path.point"),r,t)}function Sm(e,r,t){Iu.textPointStyle(e.selectAll("text"),r,t)}function mre(e,r,t){var n=r[0].trace;n.selectedpoints?(Iu.selectedPointStyle(t.selectAll("path.point"),n),Iu.selectedTextStyle(t.selectAll("text"),n)):(km(t,n,e),Sm(t,n,e))}jE.exports={style:yre,stylePoints:km,styleText:Sm,styleOnSelect:mre}});var rL=de((g1e,eL)=>{"use strict";var Fu=Xr(),xre=la();eL.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Fu.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&&Fu.opacity(o)?o:i&&Fu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Fu.opacity(a)<.3?Fu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Fu.opacity(n)&&xre.hasLines(r)&&r.line.width?n:r.fillcolor)}});var aL=de((y1e,nL)=>{"use strict";var L1=ir(),tL=fo(),bre=Er(),_re=rL(),Em=Xr(),wre=L1.fillText;nL.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||"",b=i.mode.indexOf("markers")!==-1?3:.5,y=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var T=function(I){if(y){var L=l.c2p(I.xStart),P=l.c2p(I.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(l.c2p(I.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(u.c2p(I.y)-f);return Xj!=V>=j&&(K=Q[q-1][0],oe=Q[q][0],V-re&&(ae=K+(oe-K)*(j-re)/(V-re),O=Math.min(O,ae),U=Math.max(U,ae)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}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 F=Em.defaultLine;return Em.opacity(i.fillcolor)?F=i.fillcolor:Em.opacity((i.line||{}).color)&&(F=i.line.color),L1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:F,hovertemplate:!1}),delete r.index,i.text&&!L1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var lL=de((m1e,oL)=>{"use strict";var iL=la();oL.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,h,p=!iL.hasMarkers(l)&&!iL.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";sL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Dm=de((b1e,hL)=>{"use strict";var Fc=Er().traceIs,Lm=$g();hL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Mre(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Mre(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Tre(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:!Fc(o,"cartesian")||Fc(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,cL(o,n)){var s=fL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(cL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function fL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function cL(e,r){var t=fL(e),n=Fc(e,"box-violin"),a=Fc(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var dL=de((_1e,vL)=>{"use strict";var Are=ra().isTypedArraySpec;function kre(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||Are(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=kre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var yL=de((w1e,gL)=>{"use strict";var pL=Sa().mix,Sre=Si(),Cre=ir();gL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return Cre.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=pL(o,a.bgColor,a.blend||Sre.lightFraction).toRgbString(),h=i("gridcolor",f),p=i("gridwidth"),b=i("griddash"),y=n("showgrid",a.showGrid||!!h||!!p||!!b);if(y||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=pL(t.gridcolor,a.bgColor,67).toRgbString(),T=i("minor.gridcolor",w),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),d=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!M||!!d);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var R1=de((M1e,ML)=>{"use strict";var mL=nt(),Ere=Er(),Nc=ir(),Lre=yt(),Dre=ai(),Rm=Da(),xL=_g(),bL=Mg(),Rre=kg(),Pre=Sg(),Ire=dL(),Fre=yL(),Nre=x2(),_L=Vh(),D1=on().WEEKDAY_PATTERN,zre=on().HOUR_PATTERN;ML.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 b=Ere.getComponentMethod("calendars","handleDefaults");b(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=Nc.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"),_L(t,o),Nre(r,t,n,a),Ire(r,t,n,a),a.noHover||(h!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),T=w!==Rm.color.dflt?w:l.color,m=u.label||o._dfltTitle[i];if(Pre(r,t,n,h,a),!s)return t;n("title.text",m),Nc.coerceFont(n,"title.font",l,{overrideDflt:{size:Nc.bigFont(l.size),color:T}}),xL(r,t,n,h);var k=a.hasMinor;if(k&&(Lre.newContainer(t,"minor"),xL(r,t,n,h,{isMinor:!0})),Rre(r,t,n,h,a),bL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,bL(r,t,n,a),a.isMinor=S}Fre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Rm}),k&&!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(Dre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:qre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=wL(o[l]),u){i=D1;break}}var s=n("pattern",i);if(s===D1)for(l=0;l<2;l++)u=wL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case D1:if(!mL(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 zre:if(!mL(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 Bre=nt(),P1=ir();TL.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,b,y,w;u&&(h=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],h&&(p=u[l+"side"].split(" ")[0],b=u.domain[l][p==="right"||p==="top"?1:0])),h=h||[0,1],f=f||(Bre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),b=b||0,y=0,w=!1;var T=P1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=P1.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&&(b=m==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,y=m==="left"?-3:3),n("shift",y)}n("position",b)}n("automargin",w);var S=!1;if(i.length&&(S=P1.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),P1.noneOrAll(r.domain,t.domain,h),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var PL=de((A1e,RL)=>{"use strict";var hs=ir(),AL=Xr(),Ure=so().isUnifiedHover,Hre=Y2(),kL=yt(),Vre=Vs(),SL=Da(),Gre=Dm(),CL=R1(),Yre=rc(),EL=Pm(),Fm=en(),Wi=Fm.id2name,LL=Fm.name2id,Wre=on().AX_ID_PATTERN,DL=Er(),I1=DL.traceIs,Im=DL.getComponentMethod;function F1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}RL.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},h={},p={},b={},y={},w,T;for(w=0;w{"use strict";var Xre=it(),IL=Er(),N1=ir(),xa=mt(),z1=Lt();FL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){z1.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,d=x._length,_=!!T.xr1,g=!!T.yr1,c=[];if(_){var A=N1.simpleMap(T.xr0,S.r2l),v=N1.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=v[1]-v[0];c[0]=(A[0]*(1-m)+m*v[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*v[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*v[1])}else c[0]=0,c[2]=M;if(g){var R=N1.simpleMap(T.yr0,x.r2l),N=N1.simpleMap(T.yr1,x.r2l),F=R[1]-R[0],I=N[1]-N[0];c[1]=(R[1]*(1-m)+m*N[1]-R[1])/(R[0]-R[1])*d,c[3]=d*(1-m+m*I/F),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]=d;z1.drawOne(r,S,{skipTitle:!0}),z1.drawOne(r,x,{skipTitle:!0}),z1.redrawComponents(r,[S._id,x._id]);var L=_?M/c[2]:1,P=g?d/c[3]:1,O=_?c[0]:0,U=g?c[1]:0,X=_?c[0]/c[2]*M:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(xa.setTranslate,O,U).call(xa.setScale,1/L,1/P),k.plot.call(xa.setTranslate,j,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(),b=window.cancelAnimationFrame(w)):b=window.requestAnimationFrame(w)}return h=Date.now(),b=window.requestAnimationFrame(w),Promise.resolve()}});var Nm=de(Dn=>{"use strict";var O1=it(),zL=Er(),vs=ir(),Zre=ln(),Jre=mt(),qL=Lf().getModuleCalcData,il=en(),hi=on(),Kre=Ho(),lt=vs.ensureSingle;function q1(e,r,t){return vs.ensureSingle(e,r,t,function(n){n.datum(t)})}var ds=hi.zindexSeparator;Dn.name="cartesian";Dn.attr=["xaxis","yaxis"];Dn.idRoot=["x","y"];Dn.idRegex=hi.idRegex;Dn.attrRegex=hi.attrRegex;Dn.attributes=uL();Dn.layoutAttributes=Da();Dn.supplyLayoutDefaults=PL();Dn.transitionAxes=NL();Dn.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 b=p.id;if(b.indexOf(ds)!==-1)continue;b+=ds+(s+1),p=vs.extendFlat({},p,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var y=[],w,T=0;T1&&(M+=ds+x),S.push(l+M),i=0;i1,h=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.xaxislayer=lt(n,"g","xaxislayer-above"),r.yaxislayer=lt(n,"g","yaxislayer-above");else{if(!i){var p=lt(n,"g","layer-subplot");r.shapelayer=lt(p,"g","shapelayer"),r.imagelayer=lt(p,"g","imagelayer"),h&&f?(r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer):(r.minorGridlayer=lt(n,"g","minor-gridlayer"),r.gridlayer=lt(n,"g","gridlayer"),r.zerolinelayer=lt(n,"g","zerolinelayer"));var b=lt(n,"g","layer-between");r.shapelayerBetween=lt(b,"g","shapelayer"),r.imagelayerBetween=lt(b,"g","imagelayer"),lt(n,"path","xlines-below"),lt(n,"path","ylines-below"),r.overlinesBelow=lt(n,"g","overlines-below"),lt(n,"g","xaxislayer-below"),lt(n,"g","yaxislayer-below"),r.overaxesBelow=lt(n,"g","overaxes-below")}r.overplot=lt(n,"g","overplot"),r.plot=lt(r.overplot,"g",a),h&&f?r.zerolinelayerAbove=h.zerolinelayerAbove:r.zerolinelayerAbove=lt(n,"g","zerolinelayer-above"),i||(r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.overlinesAbove=lt(n,"g","overlines-above"),lt(n,"g","xaxislayer-above"),lt(n,"g","yaxislayer-above"),r.overaxesAbove=lt(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,w=a+"-x",T=a+"-y";r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer,r.zerolinelayerAbove=h.zerolinelayerAbove,lt(h.overlinesBelow,"path",w),lt(h.overlinesBelow,"path",T),lt(h.overaxesBelow,"g",w),lt(h.overaxesBelow,"g",T),r.plot=lt(h.overplot,"g",a),lt(h.overlinesAbove,"path",w),lt(h.overlinesAbove,"path",T),lt(h.overaxesAbove,"g",w),lt(h.overaxesAbove,"g",T),r.xlines=y.select(".overlines-"+l).select("."+w),r.ylines=y.select(".overlines-"+u).select("."+T),r.xaxislayer=y.select(".overaxes-"+l).select("."+w),r.yaxislayer=y.select(".overaxes-"+u).select("."+T)}i||(s||(q1(r.minorGridlayer,"g",r.xaxis._id),q1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort),q1(r.gridlayer,"g",r.xaxis._id),q1(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 UL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=O1.select(this);f.remove(),HL(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 B1=la();VL.exports={hasLines:B1.hasLines,hasMarkers:B1.hasMarkers,hasText:B1.hasText,isBubble:B1.isBubble,attributes:ss(),layoutAttributes:mh(),supplyDefaults:jC(),crossTraceDefaults:nE(),supplyLayoutDefaults:iE(),calc:ym().calc,crossTraceCalc:IE(),arraysToCalcdata:T1(),plot:ZE(),colorbar:KE(),formatLabels:$E(),style:Cm().style,styleOnSelect:Cm().styleOnSelect,hoverPoints:aL(),selectPoints:lL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Nm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var XL=de((E1e,WL)=>{"use strict";var $re=it(),jre=Xr(),YL=Iy(),zm=ir(),ete=zm.strScale,rte=zm.strRotate,tte=zm.strTranslate;WL.exports=function(r,t,n){var a=r.node(),o=YL[n.arrowhead||0],i=YL[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,b,y,w,T;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},y={x:+r.attr("x2"),y:+r.attr("y2")};var m=b.x-y.x,k=b.y-y.y;if(w=Math.atan2(k,m),T=w+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(w),x=h*Math.sin(w);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(w),d=p*Math.sin(w);b.x-=M,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),g="";if(_{"use strict";var ZL=it(),qm=Er(),nte=ln(),ll=ir(),Om=ll.strTranslate,qc=Lt(),ps=Xr(),mo=mt(),JL=fo(),Bm=On(),Um=Ko(),zc=oi(),ate=yt().arrayEditor,ite=XL();$L.exports={draw:ote,drawOne:KL,drawRaw:QL};function ote(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ke="right":Ke="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ke]}for(var re=!1,V=["x","y"],ee=0;ee1)&&(le===te?(ye=ve.r2fraction(r["a"+H]),(ye<0||ye>1)&&(re=!0)):re=!0),ze=ve._offset+ve.r2p(r[H]),Me=.5}else{var pe=me==="domain";H==="x"?(ge=r[H],ze=pe?ve._offset+ve._length*ge:ze=l.l+l.w*ge):(ge=1-r[H],ze=pe?ve._offset+ve._length*ge:ze=l.t+l.h*ge),Me=r.showarrow?.5:ge}if(r.showarrow){Ee.head=ze;var he=r["a"+H];if(ke=we*oe(.5,r.xanchor)-ce*oe(.5,r.yanchor),le===te){var xe=qc.getRefType(le);xe==="domain"?(H==="y"&&(he=1-he),Ee.tail=ve._offset+ve._length*he):xe==="paper"?H==="y"?(he=1-he,Ee.tail=l.t+l.h*he):Ee.tail=l.l+l.w*he:Ee.tail=ve._offset+ve.r2p(he),Ue=ke}else Ee.tail=ze+he,Ue=ke+he;Ee.text=Ee.tail+ke;var Le=i[H==="x"?"width":"height"];if(te==="paper"&&(Ee.head=ll.constrain(Ee.head,1,Le-1)),le==="pixel"){var qe=-Math.max(Ee.tail-3,Ee.text),Ne=Math.min(Ee.tail+3,Ee.text)-Le;qe>0?(Ee.tail+=qe,Ee.text+=qe):Ne>0&&(Ee.tail-=Ne,Ee.text-=Ne)}Ee.tail+=Fe,Ee.head+=Fe}else ke=Se*oe(Me,Ce),Ue=ke,Ee.text=ze+ke;Ee.text+=Fe,ke+=Fe,Ue+=Fe,r["_"+H+"padplus"]=Se/2+Ue,r["_"+H+"padminus"]=Se/2-Ue,r["_"+H+"size"]=Se,r["_"+H+"shift"]=ke}if(re){_.remove();return}var $e=0,Ve=0;if(r.align!=="left"&&($e=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Ve=(Q-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+$e-1,y:A+Ve}).call(mo.setClipUrl,D?w:null,e);else{var Be=A+Ve-$.top,Ye=A+$e-$.left;F.call(Bm.positionText,Ye,Be).call(mo.setClipUrl,D?w:null,e)}E.select("rect").call(mo.setRect,A,A,q,Q),v.call(mo.setRect,g/2,g/2,ae-g,K-g),_.call(mo.setTranslate,Math.round(T.x.text-ae/2),Math.round(T.y.text-K/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var Te=function(Qe,Ke){k.selectAll(".annotation-arrow-g").remove();var ar=T.x.head,ue=T.y.head,J=T.x.tail+Qe,ne=T.y.tail+Ke,De=T.x.text+Qe,He=T.y.text+Ke,er=ll.rotationXYMatrix(m,De,He),nr=ll.apply2DTransform(er),fr=ll.apply2DTransform2(er),br=+v.attr("width"),Sr=+v.attr("height"),Mr=De-.5*br,Ar=Mr+br,ft=He-.5*Sr,sr=ft+Sr,Pr=[[Mr,ft,Mr,sr],[Mr,sr,Ar,sr],[Ar,sr,Ar,ft],[Ar,ft,Mr,ft]].map(fr);if(!Pr.reduce(function(gt,Nt){return gt^!!ll.segmentsIntersect(ar,ue,ar+1e6,ue+1e6,Nt[0],Nt[1],Nt[2],Nt[3])},!1)){Pr.forEach(function(gt){var Nt=ll.segmentsIntersect(J,ne,ar,ue,gt[0],gt[1],gt[2],gt[3]);Nt&&(J=Nt.x,ne=Nt.y)});var $r=r.arrowwidth,Fr=r.arrowcolor,Gr=r.arrowside,pt=k.append("g").style({opacity:ps.opacity(Fr)}).classed("annotation-arrow-g",!0),Rr=pt.append("path").attr("d","M"+J+","+ne+"L"+ar+","+ue).style("stroke-width",$r+"px").call(ps.stroke,ps.rgb(Fr));if(ite(Rr,Gr,r),u.annotationPosition&&Rr.node().parentNode&&!n){var jr=ar,vn=ue;if(r.standoff){var Et=Math.sqrt(Math.pow(ar-J,2)+Math.pow(ue-ne,2));jr+=r.standoff*(J-ar)/Et,vn+=r.standoff*(ne-ue)/Et}var Tn=pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(J-jr)+","+(ne-vn),transform:Om(jr,vn)}).style("stroke-width",$r+6+"px").call(ps.stroke,"rgba(0,0,0,0)").call(ps.fill,"rgba(0,0,0,0)"),Ot,bt;zc.init({element:Tn.node(),gd:e,prepFn:function(){var gt=mo.getTranslate(_);Ot=gt.x,bt=gt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(gt,Nt){var ha=nr(Ot,bt),$n=ha[0]+gt,Fn=ha[1]+Nt;_.call(mo.setTranslate,$n,Fn),b("x",ol(a,gt,"x",l,r)),b("y",ol(o,Nt,"y",l,r)),r.axref===r.xref&&b("ax",ol(a,gt,"ax",l,r)),r.ayref===r.yref&&b("ay",ol(o,Nt,"ay",l,r)),pt.attr("transform",Om(gt,Nt)),S.attr({transform:"rotate("+m+","+$n+","+Fn+")"})},doneFn:function(){qm.call("_guiRelayout",e,y());var gt=document.querySelector(".js-notes-box-panel");gt&>.redraw(gt.selectedObj)}})}}};if(r.showarrow&&Te(0,0),x){var Re;zc.init({element:_.node(),gd:e,prepFn:function(){Re=S.attr("transform")},moveFn:function(Qe,Ke){var ar="pointer";if(r.showarrow)r.axref===r.xref?b("ax",ol(a,Qe,"ax",l,r)):b("ax",r.ax+Qe),r.ayref===r.yref?b("ay",ol(o,Ke,"ay",l.w,r)):b("ay",r.ay+Ke),Te(Qe,Ke);else{if(n)return;var ue,J;if(a)ue=ol(a,Qe,"x",l,r);else{var ne=r._xsize/l.w,De=r.x+(r._xshift-r.xshift)/l.w-ne/2;ue=zc.align(De+Qe/l.w,ne,0,1,r.xanchor)}if(o)J=ol(o,Ke,"y",l,r);else{var He=r._ysize/l.h,er=r.y-(r._yshift+r.yshift)/l.h-He/2;J=zc.align(er-Ke/l.h,He,0,1,r.yanchor)}b("x",ue),b("y",J),(!a||!o)&&(ar=zc.getCursor(a?.5:ue,o?.5:J,r.xanchor,r.yanchor))}S.attr({transform:Om(Qe,Ke)+Re}),Um(_,ar)},clickFn:function(Qe,Ke){r.captureevents&&e.emit("plotly_clickannotation",d(Ke))},doneFn:function(){Um(_),qm.call("_guiRelayout",e,y());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}u.annotationText?F.call(Bm.makeEditable,{delegate:_,gd:e}).call(I).on("edit",function(P){r.text=P,this.call(I),b("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),qm.call("_guiRelayout",e,y())}):F.call(I)}});var aD=de((D1e,nD)=>{"use strict";var jL=ir(),lte=Er(),eD=yt().arrayEditor;nD.exports={hasClickToShow:ste,onClick:ute};function ste(e,r){var t=tD(e,r);return t.on.length>0||t.explicitOff.length>0}function ute(e,r){var t=tD(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 Hm=ir(),Nu=Xr();iD.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Nu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Hm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var h=a("arrowside"),p,b;h.indexOf("end")!==-1&&(p=a("arrowhead"),b=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Nu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var y=a("hovertext"),w=n.hoverlabel||{};if(y){var T=a("hoverlabel.bgcolor",w.bgcolor||(Nu.opacity(o)?Nu.rgb(o):Nu.defaultLine)),m=a("hoverlabel.bordercolor",w.bordercolor||Nu.contrast(T)),k=Hm.extendFlat({},w.font);k.color||(k.color=m),Hm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!y)}});var lD=de((P1e,oD)=>{"use strict";var Gm=ir(),gs=Lt(),fte=ai(),cte=Vm(),hte=ku();oD.exports=function(r,t){fte(r,t,{name:"annotations",handleItemDefaults:vte})};function vte(e,r,t){function n(S,x){return Gm.coerce(e,r,hte,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){cte(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=gs.coerceRef(e,r,s,h,"","paper");if(p!=="paper"){var b=gs.getFromId(s,p);b._annIndices.push(r._index)}if(gs.coercePosition(r,s,n,p,h,.5),i){var y="a"+h,w=gs.coerceRef(e,r,s,y,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[y]="pixel");var T=w==="pixel"?u[f]:.4;gs.coercePosition(r,s,n,w,y,T)}n(h+"anchor"),n(h+"shift")}if(Gm.noneOrAll(e,r,["x","y"]),i&&Gm.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:gs.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:gs.cleanPosition(k,s,r.yref)}}}});var fD=de((I1e,uD)=>{"use strict";var Ym=ir(),ys=Lt(),dte=U1().draw;uD.exports=function(r){var t=r._fullLayout,n=Ym.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Ym.syncOrAsync([dte,pte],r)};function pte(e){var r=e._fullLayout;Ym.filterVisible(r.annotations).forEach(function(t){var n=ys.getFromId(e,t.xref),a=ys.getFromId(e,t.yref),o=ys.getRefType(t.xref),i=ys.getRefType(t.yref);t._extremes={},o==="range"&&sD(t,n),i==="range"&&sD(t,a)})}function sD(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,b=h-f,y=3*e.startarrowsize*e.arrowwidth||0,w=y+f,T=y-f,m;if(l===i){var k=ys.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:b}),S=ys.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,T=o?T-o:T,m=ys.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,b,T)});e._extremes[t]=m}});var hD=de((F1e,cD)=>{"use strict";var gte=nt(),yte=O0();cD.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(b){var y=s[b],w=null;o?w=yte(y,t.range):w=Math.pow(10,y),gte(w)||(w=null),a(f+b,w)}for(var p=0;p{"use strict";var Wm=U1(),vD=aD();dD.exports={moduleType:"component",name:"annotations",layoutAttributes:ku(),supplyLayoutDefaults:lD(),includeBasePlot:xc()("annotations"),calcAutorange:fD(),draw:Wm.draw,drawOne:Wm.drawOne,drawRaw:Wm.drawRaw,hasClickToShow:vD.hasClickToShow,onClick:vD.onClick,convertCoords:hD()}});var H1=de((z1e,gD)=>{"use strict";var Mt=ku(),mte=qn().overrideAll,xte=yt().templatedArray;gD.exports=mte(xte("annotation",{visible:Mt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Mt.xanchor,xshift:Mt.xshift,yanchor:Mt.yanchor,yshift:Mt.yshift,text:Mt.text,textangle:Mt.textangle,font:Mt.font,width:Mt.width,height:Mt.height,opacity:Mt.opacity,align:Mt.align,valign:Mt.valign,bgcolor:Mt.bgcolor,bordercolor:Mt.bordercolor,borderpad:Mt.borderpad,borderwidth:Mt.borderwidth,showarrow:Mt.showarrow,arrowcolor:Mt.arrowcolor,arrowhead:Mt.arrowhead,startarrowhead:Mt.startarrowhead,arrowside:Mt.arrowside,arrowsize:Mt.arrowsize,startarrowsize:Mt.startarrowsize,arrowwidth:Mt.arrowwidth,standoff:Mt.standoff,startstandoff:Mt.startstandoff,hovertext:Mt.hovertext,hoverlabel:Mt.hoverlabel,captureevents:Mt.captureevents}),"calc","from-root")});var mD=de((q1e,yD)=>{"use strict";var Xm=ir(),bte=Lt(),_te=ai(),wte=Vm(),Mte=H1();yD.exports=function(r,t,n){_te(r,t,{name:"annotations",handleItemDefaults:Tte,fullLayout:n.fullLayout})};function Tte(e,r,t,n){function a(l,u){return Xm.coerce(e,r,Mte,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],bte.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(wte(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Xm.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),Xm.noneOrAll(e,r,["ax","ay"])))}});var wD=de((O1e,_D)=>{"use strict";var xD=ir(),bD=Lt();_D.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Zm(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 kte(e,r){var t=Zm(e.projection,Zm(e.view,Zm(e.model,[r[0],r[1],r[2],1])));return t}MD.exports=kte});var AD=de((U1e,TD)=>{"use strict";var Ste=U1().drawRaw,Cte=Jm(),Ete=["x","y","z"];TD.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=Cte(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Ste(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var CD=de((H1e,SD)=>{"use strict";var Lte=Er(),kD=ir();SD.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:H1()}}},layoutAttributes:H1(),handleDefaults:mD(),includeBasePlot:Dte,convert:wD(),draw:AD()};function Dte(e,r){var t=Lte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var V1e=on(),ED=kn(),LD=ss().line,Rte=Ro().dash,vi=Tt().extendFlat,Pte=yt().templatedArray,G1e=yc(),zu=Sn(),DD=ku(),{shapeTexttemplateAttrs:Ite,templatefallbackAttrs:Fte}=ja(),Nte=K0();RD.exports=Pte("shape",{visible:vi({},zu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vi({},zu.legend,{editType:"calc+arraydraw"}),legendgroup:vi({},zu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vi({},zu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:ED({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vi({},zu.legendrank,{editType:"calc+arraydraw"}),legendwidth:vi({},zu.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({},DD.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({},DD.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({},LD.color,{editType:"arraydraw"}),width:vi({},LD.width,{editType:"calc+arraydraw"}),dash:vi({},Rte,{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:Ite({},{keys:Object.keys(Nte)}),texttemplatefallback:Fte({editType:"arraydraw"}),font:ED({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 ID=de((W1e,PD)=>{"use strict";var qu=ir(),ba=Lt(),zte=ai(),qte=Km(),Oc=rl();PD.exports=function(r,t){zte(r,t,{name:"shapes",handleItemDefaults:Bte})};function Ote(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Bte(e,r,t){function n(S,x){return qu.coerce(e,r,qte,S,x)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),qu.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 b=[.25,.75],y=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?h:p,d={_fullLayout:t},_,g,c,A;let v=S+"ref",D=e[v];if(Array.isArray(D)&&D.length>0){let E=Oc.countDefiningCoords(u,i,S);A=ba.coerceRefArray(e,r,d,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=ba.coerceRef(e,r,d,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){ba.getRefType(E)==="range"&&(_=ba.getFromId(d,E),_&&_._shapeIndices.indexOf(r._index)===-1&&_._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];ba.getRefType(R)==="range"?(_=ba.getFromId(d,R),g=Oc.shapePositionToRange(_),c=Oc.rangeToShapePosition(_),(_.type==="category"||_.type==="multicategory")&&n(S+E+"shift")):g=c=qu.identity;let F=S+E,I=e[F];if(e[F]=g(e[F],!0),M==="pixel"?n(F,y[E]):ba.coercePosition(r,d,n,R,F,b[E]),r[F]=c(r[F]),e[F]=I,E===0&&M==="pixel"){let L=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,d,n,R,x,.25),r[x]=c(r[x]),e[x]=L}});else{if(ba.getRefType(A)==="range"?(_=ba.getFromId(d,A),_._shapeIndices.push(r._index),c=Oc.rangeToShapePosition(_),g=Oc.shapePositionToRange(_),s&&(_.type==="category"||_.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):g=c=qu.identity,s){let R=S+"0",N=S+"1",F=e[R],I=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,d,n,A,R,b[0]),ba.coercePosition(r,d,n,A,N,b[1])),r[R]=c(r[R]),r[N]=c(r[N]),e[R]=F,e[N]=I}if(M==="pixel"){let R=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,d,n,A,x,.25),r[x]=c(r[x]),e[x]=R}}}),s&&qu.noneOrAll(e,r,["x0","x1","y0","y1"]);var w=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",w?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Ote(w,k)),n("label.padding"),qu.coerceFont(n,"label.font",t.font)}}});var zD=de((X1e,ND)=>{"use strict";var Ute=Xr(),FD=ir();function Hte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ND.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"),FD.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",Ute.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",Hte(i,s)),n("newshape.label.padding"),FD.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var GD=de((Z1e,VD)=>{"use strict";var Qm=ir(),Ya=Lt(),Xi=Qf(),$m=rl();VD.exports=function(r){var t=r._fullLayout,n=Qm.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,OD(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=Ya.getFromId(r,o.xref),l=UD(i,o,Xi.paramIsX),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,OD(o))));if(s==="array"){let f=qD(r,o,"y");Object.entries(f).forEach(([h,p])=>{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,BD(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=Ya.getFromId(r,o.yref),l=UD(i,o,Xi.paramIsY),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,BD(o))))}};function qD(e,r,t){let n=r[t+"ref"],a=t==="x"?Xi.paramIsX:Xi.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(Xi.segmentRE)||[];for(var l=0,u=0;uy&&(o(n[l],w[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=$m.decodeDate(f)),s[p._id]=i[h].map(f)}}return s}function OD(e){return HD(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function BD(e){return HD(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function HD(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?$m.extractPathCoords(a,o?Xi.paramIsY:Xi.paramIsX):[t,n],s=Qm.aggNums(Math.max,null,u),f=Qm.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 UD(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,b=r.path.match(Xi.segmentRE),y,w,T,m,k;for(e.type==="date"&&(s=$m.decodeDate(s)),y=0;yp&&(p=k)));if(p>=h)return[h,p]}}});var XD=de((J1e,WD)=>{"use strict";var YD=Pv();WD.exports={moduleType:"component",name:"shapes",layoutAttributes:Km(),supplyLayoutDefaults:ID(),supplyDrawNewShapeDefaults:zD(),includeBasePlot:xc()("shapes"),calcAutorange:GD(),draw:YD.draw,drawOne:YD.drawOne}});var jm=de((Q1e,JD)=>{"use strict";var ZD=on(),Vte=yt().templatedArray,K1e=yc();JD.exports=Vte("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",ZD.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ZD.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var QD=de(($1e,KD)=>{"use strict";var Gte=ir(),e3=Lt(),Yte=ai(),Wte=jm(),Xte="images";KD.exports=function(r,t){var n={name:Xte,handleItemDefaults:Zte};Yte(r,t,n)};function Zte(e,r,t){function n(p,b){return Gte.coerce(e,r,Wte,p,b)}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=e3.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var h=e3.getFromId(i,f);h._imgIndices.push(r._index)}e3.coercePosition(r,i,n,f,s,0)}return r}});var rR=de((j1e,eR)=>{"use strict";var $D=it(),Jte=mt(),Ou=Lt(),jD=en(),Kte=Ho();eR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var tR=nt(),Qte=O0();nR.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";iR.exports={moduleType:"component",name:"images",layoutAttributes:jm(),supplyLayoutDefaults:QD(),includeBasePlot:xc()("images"),draw:rR(),convertCoords:aR()}});var V1=de((tde,lR)=>{"use strict";lR.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 r3=de((nde,uR)=>{"use strict";var $te=kn(),jte=Si(),ene=Tt().extendFlat,rne=qn().overrideAll,tne=Q0(),sR=yt().templatedArray,nne=sR("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}});uR.exports=rne(sR("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:nne,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:ene(tne({editType:"arraydraw"}),{}),font:$te({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:jte.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var vR=de((ade,hR)=>{"use strict";var G1=ir(),fR=ai(),cR=r3(),ane=V1(),ine=ane.name,one=cR.buttons;hR.exports=function(r,t){var n={name:ine,handleItemDefaults:lne};fR(r,t,n)};function lne(e,r,t){function n(i,l){return G1.coerce(e,r,cR,i,l)}var a=fR(e,r,{name:"buttons",handleItemDefaults:sne}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),G1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),G1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function sne(e,r){function t(a,o){return G1.coerce(e,r,one,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 gR=de((ide,pR)=>{"use strict";pR.exports=Rt;var di=it(),dR=Xr(),Bu=mt(),Y1=ir();function Rt(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})}Rt.barWidth=2;Rt.barLength=20;Rt.barRadius=2;Rt.barPad=1;Rt.barColor="#808BA4";Rt.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",b=h==="left",y=h==="right",w=h==="up",T=u,m=f,k,S,x,M;!p&&!b&&!y&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(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,b?(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 _=u>T,g=Rt.barLength+2*Rt.barPad,c=Rt.barWidth+2*Rt.barPad,A=l,v=s+f;v+c>i&&(v=i-c);var D=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(dR.fill,Rt.barColor),_?(this.hbar=D.attr({rx:Rt.barRadius,ry:Rt.barRadius,x:A,y:v,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=Rt.barWidth+2*Rt.barPad,N=Rt.barLength+2*Rt.barPad,F=l+u,I=s;F+R>o&&(F=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(dR.fill,Rt.barColor),E?(this.vbar=L.attr({rx:Rt.barRadius,ry:Rt.barRadius,x:F,y:I,width:R,height:N}),this._vbarYMin=I+N/2,this._vbarTranslateMax=m-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+R+.5:S+.5,X=x-.5,$=_?M+c+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Bu.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(Bu.setClipUrl,null),delete this._clipRect),_||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));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Rt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Bu.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)};Rt.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)};Rt.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)};Rt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Y1.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=Y1.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)};Rt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Y1.constrain(r||0,0,n),t=Y1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Bu.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(Bu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Bu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var kR=de((ode,AR)=>{"use strict";var Uu=it(),Bc=ln(),Uc=Xr(),Hu=mt(),_a=ir(),W1=On(),une=yt().arrayEditor,mR=Cn().LINE_SPACING,Dr=V1(),fne=gR();AR.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[Dr.name]);function a(p){Bc.autoMargin(r,MR(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Uu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,cne);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var mne=V1();SR.exports={moduleType:"component",name:mne.name,layoutAttributes:r3(),supplyLayoutDefaults:vR(),draw:kR()}});var Vc=de((sde,ER)=>{"use strict";ER.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 i3=de((ude,RR)=>{"use strict";var LR=kn(),xne=Q0(),bne=Tt().extendDeepAll,_ne=qn().overrideAll,wne=bf(),DR=yt().templatedArray,ms=Vc(),Mne=DR("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}});RR.exports=_ne(DR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Mne,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:bne(xne({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:wne.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:LR({})},font:LR({}),activebgcolor:{valType:"color",dflt:ms.gripBgActiveColor},bgcolor:{valType:"color",dflt:ms.railBgColor},bordercolor:{valType:"color",dflt:ms.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ms.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ms.tickLength},tickcolor:{valType:"color",dflt:ms.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ms.minorTickLength}}),"arraydraw","from-root")});var NR=de((fde,FR)=>{"use strict";var Vu=ir(),PR=ai(),IR=i3(),Tne=Vc(),Ane=Tne.name,kne=IR.steps;FR.exports=function(r,t){PR(r,t,{name:Ane,handleItemDefaults:Sne})};function Sne(e,r,t){function n(h,p){return Vu.coerce(e,r,IR,h,p)}for(var a=PR(e,r,{name:"steps",handleItemDefaults:Cne}),o=0,i=0;i{"use strict";var pi=it(),X1=ln(),sl=Xr(),gi=mt(),wa=ir(),Ene=wa.strTranslate,Gc=On(),Lne=yt().arrayEditor,Vr=Vc(),s3=Cn(),OR=s3.LINE_SPACING,o3=s3.FROM_TL,l3=s3.FROM_BR;YR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Dne(n,r),o=n._infolayer.selectAll("g."+Vr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Vr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),X1.autoMargin(r,BR(f))}if(o.exit().each(function(){pi.select(this).selectAll("g."+Vr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Vr.groupClassName).data(a,Rne);l.enter().append("g").classed(Vr.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",Ene(i-Vr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function u3(e,r){var t=e._dims;return t.inputAreaStart+Vr.stepInset+(t.inputAreaLength-2*Vr.stepInset)*Math.min(1,Math.max(0,r))}function qR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Vr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Vr.stepInset-2*t.inputAreaStart)))}function One(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Vr.railTouchRectClass,function(o){o.call(VR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Vr.tickOffset+t.ticklen+n.labelHeight)}).call(sl.fill,t.bgcolor).attr("opacity",0),gi.setTranslate(a,0,n.currentValueTotalHeight)}function Bne(e,r){var t=r._dims,n=t.inputAreaLength-Vr.railInset*2,a=wa.ensureSingle(e,"rect",Vr.railRectClass);a.attr({width:n,height:Vr.railWidth,rx:Vr.railRadius,ry:Vr.railRadius,"shape-rendering":"crispEdges"}).call(sl.stroke,r.bordercolor).call(sl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),gi.setTranslate(a,Vr.railInset,(t.inputAreaWidth-Vr.railWidth)*.5+t.currentValueTotalHeight)}});var ZR=de((hde,XR)=>{"use strict";var Une=Vc();XR.exports={moduleType:"component",name:Une.name,layoutAttributes:i3(),supplyLayoutDefaults:NR(),draw:WR()}});var J1=de((vde,KR)=>{"use strict";var JR=Si();KR.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 f3=de((dde,QR)=>{"use strict";QR.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 K1=de((pde,$R)=>{"use strict";$R.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 rP=de($1=>{"use strict";var Hne=en(),Vne=On(),jR=K1(),Gne=Cn().LINE_SPACING,Q1=jR.name;function eP(e){var r=e&&e[Q1];return r&&r.visible}$1.isVisible=eP;$1.makeData=function(e){for(var r=Hne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var j1=ir(),tP=yt(),nP=en(),Yne=J1(),Wne=f3();aP.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;j1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=tP.newContainer(o,"rangeslider");function u(M,d){return j1.coerce(i,l,Yne,M,d)}var s,f;function h(M,d){return j1.coerce(s,f,Wne,M,d)}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 b=t._subplots;if(b)for(var y=b.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===nP.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),w=j1.simpleMap(y,nP.id2name),T=0;T{"use strict";var Xne=en().list,Zne=uu().getAutoRange,Jne=K1();oP.exports=function(r){for(var t=Xne(r,"x",!0),n=0;n{"use strict";var ed=it(),Kne=Er(),Qne=ln(),qt=ir(),rd=qt.strTranslate,uP=mt(),ul=Xr(),$ne=Nf(),jne=Nm(),c3=en(),eae=oi(),rae=Ko(),Kr=K1();fP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)F=v[I+1];else if(N=L.pmax)F=v[I+1];else if(N0?e.touches[0].clientX:0}function tae(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Kr.slideBoxClassName).node(),o=e.select("rect."+Kr.grabAreaMinClassName).node(),i=e.select("rect."+Kr.grabAreaMaxClassName).node();function l(){var u=ed.event,s=u.target,f=sP(u),h=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),y=eae.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",T),y.addEventListener("mousemove",w),y.addEventListener("mouseup",T);function w(m){var k=sP(m),S=+k-f,x,M,d;switch(s){case a:if(d="ew-resize",p+S>t._length||b+S<0)return;x=p+S,M=b+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,M=b;break;case i:if(d="col-resize",b+S<0)return;x=p,M=b+S;break;default:d="ew-resize",x=h,M=h+S;break}if(M{"use strict";var hae=ir(),vae=J1(),dae=f3(),h3=rP();hP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:hae.extendFlat({},vae,{yaxis:dae})}}},layoutAttributes:J1(),handleDefaults:iP(),calcAutorange:lP(),draw:cP(),isVisible:h3.isVisible,makeData:h3.makeData,autoMarginOpts:h3.autoMarginOpts}});var td=de((_de,pP)=>{"use strict";var pae=kn(),dP=Si(),gae=yt().templatedArray,yae=gae("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"});pP.exports={visible:{valType:"boolean",editType:"plot"},buttons:yae,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:pae({editType:"plot"}),bgcolor:{valType:"color",dflt:dP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:dP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v3=de((wde,gP)=>{"use strict";gP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var xP=de((Mde,mP)=>{"use strict";var nd=ir(),mae=Xr(),xae=yt(),bae=ai(),yP=td(),d3=v3();mP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=xae.newContainer(t,"rangeselector");function u(b,y){return nd.coerce(i,l,yP,b,y)}var s=bae(i,l,{name:"buttons",handleItemDefaults:_ae,calendar:o}),f=u("visible",s.length>0);if(f){var h=wae(t,n,a);u("x",h[0]),u("y",h[1]),nd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),nd.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",mae.contrast(p,d3.lightAmount,d3.darkAmount)),u("bordercolor"),u("borderwidth")}};function _ae(e,r,t,n){var a=n.calendar;function o(u,s){return nd.coerce(e,r,yP.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 wae(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Mae=vp(),Tae=ir().titleCase;bP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Aae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Aae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Mae["utc"+Tae(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 EP=de((Ade,CP)=>{"use strict";var id=it(),kae=Er(),Sae=ln(),wP=Xr(),SP=mt(),xo=ir(),MP=xo.strTranslate,ad=On(),Cae=en(),y3=Cn(),TP=y3.LINE_SPACING,AP=y3.FROM_TL,kP=y3.FROM_BR,g3=v3(),Eae=_P();CP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Lae(r),Dae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=id.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=id.select(this),h=Eae(i,s);s._isActive=Rae(i,s,h),f.call(p3,l,s),f.call(Iae,l,s,r),f.on("click",function(){r._dragged||kae.call("_guiRelayout",r,h)}),f.on("mouseover",function(){s._isHovered=!0,f.call(p3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(p3,l,s)})}),Nae(r,u,l,i._name,o)})};function Lae(e){for(var r=Cae.list(e,"x",!0),t=[],n=0;n{"use strict";LP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:td()}}},layoutAttributes:td(),handleDefaults:xP(),draw:EP()}});var od=de(m3=>{"use strict";var RP=Tt().extendFlat;m3.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:RP({},t,{}),y:RP({},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};m3.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 zae=ir(),qae=Os().counter,Oae=od().attributes,PP=on().idRegex,Bae=yt(),x3={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:[qae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PP.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:Oae({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 ld(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 Uae(e,r){var t=e.grid||{},n=ld(r,t,"x"),a=ld(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=Bae.newContainer(r,"grid");function p(d,_){return zae.coerce(t,h,x3,d,_)}var b=p("rows",s),y=p("columns",f);if(!(b*y>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(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:IP("x",p,k,x,y),y:IP("y",p,S,M,b,m)}}function IP(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";qP.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 UP=de((Lde,BP)=>{"use strict";var OP=nt(),Vae=Er(),Gae=ir(),Yae=yt(),Wae=b3();BP.exports=function(e,r,t,n){var a="error_"+n.axis,o=Yae.newContainer(r,a),i=e[a]||{};function l(y,w){return Gae.coerce(i,o,Wae,y,w)}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 b=r["error_"+n.inherit];(b||{}).visible&&l(p,!(i.color||OP(i.thickness)||OP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",Vae.traceIs(r,"gl3d")?0:4))}}});var _3=de((Dde,VP)=>{"use strict";VP.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=HP(t,r.value),l=HP(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 HP(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 WP=de((Rde,YP)=>{"use strict";var w3=nt(),Xae=Er(),M3=Lt(),Zae=ir(),Jae=_3();YP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var XP=it(),fl=nt(),Kae=mt(),Qae=la();ZP.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||{},b=h.error_y||{},y;h.ids&&(y=function(k){return k.id});var w=Qae.hasMarkers(h)&&h.marker.maxdisplayed>0;!b.visible&&!p.visible&&(f=[]);var T=XP.select(this).selectAll("g.errorbar").data(f,y);if(T.exit().remove(),!!f.length){p.visible||T.selectAll("path.xerror").remove(),b.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),Kae.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=XP.select(this),x=$ae(k,i,l);if(!(w&&!k.vis)){var M,d=S.select("path.yerror");if(b.visible&&fl(x.x)&&fl(x.yh)&&fl(x.ys)){var _=b.width;M="M"+(x.x-_)+","+x.yh+"h"+2*_+"m-"+_+",0V"+x.ys,x.noYS||(M+="m-"+_+",0h"+2*_),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",M)}else d.remove();var g=S.select("path.xerror");if(p.visible&&fl(x.y)&&fl(x.xh)&&fl(x.xs)){var c=(p.copy_ystyle?b: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 $ae(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 $P=de((Ide,QP)=>{"use strict";var jae=it(),KP=Xr();QP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=jae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(KP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(KP.stroke,o.color)})}});var rI=de((Fde,eI)=>{"use strict";var Yc=ir(),jP=qn().overrideAll,Wc=b3(),xs={error_x:Yc.extendFlat({},Wc),error_y:Yc.extendFlat({},Wc)};delete xs.error_x.copy_zstyle;delete xs.error_y.copy_zstyle;delete xs.error_y.copy_ystyle;var Xc={error_x:Yc.extendFlat({},Wc),error_y:Yc.extendFlat({},Wc),error_z:Yc.extendFlat({},Wc)};delete Xc.error_x.copy_ystyle;delete Xc.error_y.copy_ystyle;delete Xc.error_z.copy_ystyle;delete Xc.error_z.copy_zstyle;eI.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:xs,bar:xs,histogram:xs,scatter3d:jP(Xc,"calc","nested"),scattergl:jP(xs,"calc","nested")}},supplyDefaults:UP(),calc:WP(),makeComputeError:_3(),plot:JP(),style:$P(),hoverInfo:eie};function eie(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 nI=de((Nde,tI)=>{"use strict";tI.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 fI=de((zde,uI)=>{"use strict";var cl=it(),T3=Sa(),ud=ln(),aI=Er(),bo=Lt(),sd=oi(),Wa=ir(),mi=Wa.strTranslate,sI=Tt().extendFlat,A3=Ko(),yi=mt(),k3=Xr(),rie=Nf(),tie=On(),nie=Ei().flipScale,aie=R1(),iie=Pm(),oie=Da(),S3=Cn(),iI=S3.LINE_SPACING,oI=S3.FROM_TL,lI=S3.FROM_BR,Dt=nI().cn;function lie(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Dt.colorbar).data(sie(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=uie(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&fie(a,n,e)}),t.exit().each(function(n){ud.autoMargin(e,n._id)}).remove(),t.order()}function sie(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return sI(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?nie(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var ee=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));oe*=ee*Wa.roundUp(V/ee,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(ae.tick0=0)}ae.dtick=oe}ae.domain=n?[q+y/x.h,q+P-y/x.h]:[q+b/x.w,q+P-b/x.w],ae.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))),te=ae.ticklabelposition,le=ae.title.font.size,ve=e.select("."+Dt.cbaxis),Ae,we=0,ce=0;function Se(Ue,ge){var Me={propContainer:ae,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Dt.cbtitle)},ke=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+ke+",."+ke+"-math-group").remove(),rie.draw(t,Ue,sI(Me,ge||{}))}function Ce(){if(n&&K||!n&&!K){var Ue,ge;g==="top"&&(Ue=b+x.l+O*w,ge=y+x.t+U*(1-q-P)+3+le*.75),g==="bottom"&&(Ue=b+x.l+O*w,ge=y+x.t+U*(1-q)-3-le*.25),g==="right"&&(ge=y+x.t+U*T+3+le*.75,Ue=b+x.l+O*q),Se(ae._id+"title",{attributes:{x:Ue,y:ge,"text-anchor":n?"start":"middle"}})}}function Fe(){if(n&&!K||!n&&K){var Ue=ae.position||0,ge=ae._offset+ae._length/2,Me,ke;if(g==="right")ke=ge,Me=x.l+O*Ue+10+le*(ae.showticklabels?1:.5);else if(Me=ge,g==="bottom"&&(ke=x.t+U*Ue+10+(te.indexOf("inside")===-1?ae.tickfont.size:0)+(ae.ticks!=="inside"&&r.ticklen||0)),g==="top"){var me=_.text.split("
").length;ke=x.t+U*Ue+10-F-iI*le*me}Se((n?"h":"v")+ae._id+"title",{avoid:{selection:cl.select(t).selectAll("g."+ae._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:Me,y:ke,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Ee(){if(!n&&!K||n&&K){var Ue=e.select("."+Dt.cbtitle),ge=Ue.select("text"),Me=[-u/2,u/2],ke=Ue.select(".h"+ae._id+"title-math-group").node(),me=15.6;ge.node()&&(me=parseInt(ge.node().style.fontSize,10)*iI);var ye;if(ke?(ye=yi.bBox(ke),ce=ye.width,we=ye.height,we>me&&(Me[1]-=(we-me)/2)):ge.node()&&!ge.classed(Dt.jsPlaceholder)&&(ye=yi.bBox(ge.node()),ce=ye.width,we=ye.height),n){if(we){if(we+=5,g==="top")ae.domain[1]-=we/x.h,Me[1]*=-1;else{ae.domain[0]+=we/x.h;var pe=tie.lineCount(ge);Me[1]+=(1-pe)*me}Ue.attr("transform",mi(Me[0],Me[1])),ae.setScale()}}else ce&&(g==="right"&&(ae.domain[0]+=(ce+le/2)/x.w),Ue.attr("transform",mi(Me[0],Me[1])),ae.setScale())}e.selectAll("."+Dt.cbfills+",."+Dt.cblines).attr("transform",n?mi(0,Math.round(x.h*(1-ae.domain[1]))):mi(Math.round(x.w*ae.domain[0]),0)),ve.attr("transform",n?mi(0,Math.round(-x.t)):mi(Math.round(-x.l),0));var he=e.select("."+Dt.cbfills).selectAll("rect."+Dt.cbfill).attr("style","").data(R);he.enter().append("rect").classed(Dt.cbfill,!0).attr("style",""),he.exit().remove();var xe=c.map(ae.c2p).map(Math.round).sort(function(Ve,Be){return Ve-Be});he.each(function(Ve,Be){var Ye=[Be===0?c[0]:(R[Be]+R[Be-1])/2,Be===R.length-1?c[1]:(R[Be]+R[Be+1])/2].map(ae.c2p).map(Math.round);n&&(Ye[1]=Wa.constrain(Ye[1]+(Ye[1]>Ye[0])?1:-1,xe[0],xe[1]));var Te=cl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",cl.min(Ye)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(cl.max(Ye)-cl.min(Ye),2));if(r._fillgradient)yi.gradient(Te,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Re=v(Ve).replace("e-","");Te.attr("fill",T3(Re).toHexString())}});var Le=e.select("."+Dt.cblines).selectAll("path."+Dt.cbline).data(d.color&&d.width?N:[]);Le.enter().append("path").classed(Dt.cbline,!0),Le.exit().remove(),Le.each(function(Ve){var Be=X,Ye=Math.round(ae.c2p(Ve))+d.width/2%1;cl.select(this).attr("d","M"+(n?Be+","+Ye:Ye+","+Be)+(n?"h":"v")+F).call(yi.lineGroupStyle,d.width,A(Ve),d.dash)}),ve.selectAll("g."+ae._id+"tick,path").remove();var qe=X+F+(u||0)/2-(r.ticks==="outside"?1:0),Ne=bo.calcTicks(ae),$e=bo.getTickSigns(ae)[2];return bo.drawTicks(t,ae,{vals:ae.ticks==="inside"?bo.clipEnds(ae,Ne):Ne,layer:ve,path:bo.makeTickPath(ae,qe,$e),transFn:bo.makeTransTickFn(ae)}),bo.drawLabels(t,ae,{vals:Ne,layer:ve,transFn:bo.makeTransTickLabelFn(ae),labelFns:bo.makeLabelFns(ae,qe)})}function ze(){var Ue,ge=F+u/2;te.indexOf("inside")===-1&&(Ue=yi.bBox(ve.node()),ge+=n?Ue.width:Ue.height),Ae=H.select("text");var Me=0,ke=n&&g==="top",me=!n&&g==="right",ye=0;if(Ae.node()&&!Ae.classed(Dt.jsPlaceholder)){var pe,he=H.select(".h"+ae._id+"title-math-group").node();he&&(n&&K||!n&&!K)?(Ue=yi.bBox(he),Me=Ue.width,pe=Ue.height):(Ue=yi.bBox(H.node()),Me=Ue.right-x.l-(n?X:Q),pe=Ue.bottom-x.t-(n?Q:X),!n&&g==="top"&&(ge+=Ue.height,ye=Ue.height)),me&&(Ae.attr("transform",mi(Me/2+le/2,0)),Me*=2),ge=Math.max(ge,n?Me:pe)}var xe=(n?b:y)*2+ge+s+u/2,Le=0;!n&&_.text&&p==="bottom"&&T<=0&&(Le=xe/2,xe+=Le,ye+=Le),S._hColorbarMoveTitle=Le,S._hColorbarMoveCBTitle=ye;var qe=s+u,Ne=(n?X:Q)-qe/2-(n?b:0),$e=(n?Q:X)-(n?L:y+ye-Le);e.select("."+Dt.cbbg).attr("x",Ne).attr("y",$e).attr(n?"width":"height",Math.max(xe-Le,2)).attr(n?"height":"width",Math.max(L+qe,2)).call(k3.fill,f).call(k3.stroke,r.bordercolor).style("stroke-width",s);var Ve=me?Math.max(Me-10,0):0;e.selectAll("."+Dt.cboutline).attr("x",(n?X:Q+b)+Ve).attr("y",(n?Q+y-L:X)+(ke?we:0)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(L-(n?2*y+we:2*b+Ve),2)).call(k3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Be=n?$*xe:0,Ye=n?0:(1-j)*xe-ye;if(Be=k?x.l-Be:-Be,Ye=m?x.t-Ye:-Ye,e.attr("transform",mi(Be,Ye)),!n&&(s||T3(f).getAlpha()&&!T3.equals(S.paper_bgcolor,f))){var Te=ve.selectAll("text"),Re=Te[0].length,Qe=e.select("."+Dt.cbbg).node(),Ke=yi.bBox(Qe),ar=yi.getTranslate(e),ue=2;Te.each(function(Mr,Ar){var ft=0,sr=Re-1;if(Ar===ft||Ar===sr){var Pr=yi.bBox(this),$r=yi.getTranslate(this),Fr;if(Ar===sr){var Gr=Pr.right+$r.x,pt=Ke.right+ar.x+Q-s-ue+w;Fr=pt-Gr,Fr>0&&(Fr=0)}else if(Ar===ft){var Rr=Pr.left+$r.x,jr=Ke.left+ar.x+Q+s+ue;Fr=jr-Rr,Fr<0&&(Fr=0)}Fr&&(Re<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var J={},ne=oI[h],De=lI[h],He=oI[p],er=lI[p],nr=xe-F;n?(o==="pixels"?(J.y=T,J.t=L*He,J.b=L*er):(J.t=J.b=0,J.yt=T+a*He,J.yb=T-a*er),l==="pixels"?(J.x=w,J.l=xe*ne,J.r=xe*De):(J.l=nr*ne,J.r=nr*De,J.xl=w-i*ne,J.xr=w+i*De)):(o==="pixels"?(J.x=w,J.l=L*ne,J.r=L*De):(J.l=J.r=0,J.xl=w+a*ne,J.xr=w-a*De),l==="pixels"?(J.y=1-T,J.t=xe*He,J.b=xe*er):(J.t=nr*He,J.b=nr*er,J.yt=T-i*He,J.yb=T+i*er));var fr=r.y<.5?"b":"t",br=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-Ne-Be,l:Ne+J.r,b:S.height-$e-Ye,t:$e+J.b};k&&m?ud.autoMargin(t,r._id,J):k?t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]:m||n?t._fullLayout._reservedMargin[r._id][br]=Sr[br]:t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]}return Wa.syncOrAsync([ud.previousPromises,Ce,Ee,Fe,ud.previousPromises,ze],t)}function fie(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;sd.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),A3(e)},moveFn:function(s,f){e.attr("transform",i+mi(s,f)),l=sd.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=sd.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var h=sd.getCursor(l,u,r.xanchor,r.yanchor);A3(e,h)},doneFn:function(){if(A3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?aI.call("_guiRestyle",t,s,r._traceIndex):aI.call("_guiRelayout",t,s)}}})}function cie(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";cI.exports={moduleType:"component",name:"colorbar",attributes:kh(),supplyDefaults:Cg(),draw:fI().draw,hasColorbar:yg()}});var dI=de((Ode,vI)=>{"use strict";vI.exports={moduleType:"component",name:"legend",layoutAttributes:T2(),supplyLayoutDefaults:k2(),draw:B2(),style:N2()}});var gI=de((Bde,pI)=>{"use strict";pI.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 mI=de((Ude,yI)=>{"use strict";yI.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var E3=de((Hde,wI)=>{"use strict";var vie=Er(),_I=ir(),C3=_I.extendFlat,xI=_I.extendDeep;function bI(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 die(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}wI.exports=function(r,t){var n,a=r.data,o=r.layout,i=xI([],a),l=xI({},o,bI(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 pie=vh().EventEmitter,gie=Er(),yie=ir(),MI=us(),mie=E3(),xie=g1(),bie=y1();function _ie(e,r){var t=new pie,n=mie(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=MI.getDelay(a._fullLayout);setTimeout(function(){var u=xie(a),s=document.createElement("canvas");s.id=yie.randstr(),t=bie({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=MI.getRedrawFunc(a);return gie.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}TI.exports=_ie});var CI=de((Gde,SI)=>{"use strict";var kI=us(),wie={getDelay:kI.getDelay,getRedrawFunc:kI.getRedrawFunc,clone:E3(),toSVG:g1(),svgToImg:y1(),toImage:AI(),downloadImage:am()};SI.exports=wie});var LI=de(_o=>{"use strict";_o.version=E0().version;mb();lw();var Mie=Er(),Zc=_o.register=Mie.register,D3=EC(),EI=Object.keys(D3);for(fd=0;fd{"use strict";DI.exports=LI()});var pn=de((Xde,PI)=>{(function(){var e={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,b=l(s);return f[0]=h-b.left,f[1]=p-b.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[2],p=l[0]-f,b=l[2]-h,y=Math.sin(s),w=Math.cos(s);return i[0]=f+b*y+p*w,i[1]=l[1],i[2]=h+b*w-p*y,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}},216:function(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s1){y[0]in p||(p[y[0]]=[]),p=p[y[0]];for(var w=1;w=0;--L){var Q=F[L];P=Q[0];var ae=R[P],K=ae[0],oe=ae[1],re=E[K],V=E[oe];if((re[0]-V[0]||re[1]-V[1])<0){var ee=K;K=oe,oe=ee}ae[0]=K;var H=ae[1]=Q[1],te;for(I&&(te=ae[2]);L>0&&F[L-1][0]===P;){var Q=F[--L],le=Q[1];I?R.push([H,le,te]):R.push([H,le]),H=le}I?R.push([H,oe,te]):R.push([H,oe])}return O}function d(E,R,N){for(var F=R.length,I=new l(F),L=[],P=0;PR[2]?1:0)}function c(E,R,N){if(E.length!==0){if(R)for(var F=0;F0||P.length>0}function D(E,R,N){var F;if(N){F=R;for(var I=new Array(R.length),L=0;L{"use strict";g6.exports=function(r){return r}});var qp=de(to=>{"use strict";var tV=nt(),nV=Il(),aV=Np(),iV=nn().BADNUM,zp=1e-9;to.findBin=function(e,r,t){if(tV(r.start))return t?Math.ceil((e-r.start)/r.size-zp)-1:Math.floor((e-r.start)/r.size+zp);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?oV:lV:u=t?uV:sV,e+=i*zp*(t?-1:1)*(i>=0?1:-1);n90&&nV.log("Long binary search..."),n-1};function oV(e,r){return er}function uV(e,r){return e>=r}to.sorterAsc=function(e,r){return e-r};to.sorterDes=function(e,r){return r-e};to.distinctVals=function(e){var r=e.slice();r.sort(to.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===iV;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}};to.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()};to.findIndexOfMin=function(e,r){r=r||aV;for(var t=1/0,n,a=0;a{"use strict";y6.exports=function(r){return Object.keys(r).sort()}});var m6=de(Vt=>{"use strict";var Mf=nt(),fV=ra().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),Mf(r)||(r=!1),fV(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 M6=de((zce,w6)=>{"use strict";var x6=qs(),Op=x6.mod,cV=x6.modHalf,Tf=Math.PI,zo=2*Tf;function hV(e){return e/180*Tf}function vV(e){return e/Tf*180}function Bp(e){return Math.abs(e[1]-e[0])>zo-1e-14}function b6(e,r){return cV(r-e,zo)}function dV(e,r){return Math.abs(b6(e,r))}function _6(e,r){if(Bp(r))return!0;var t,n;r[0]n&&(n+=zo);var a=Op(e,zo),o=a+zo;return a>=t&&a<=n||o>=t&&o<=n}function pV(e,r,t,n){if(!_6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Up(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Bp([t,n]),u,s,f,h,p;l?(u=0,s=Tf,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 S6=de(zl=>{"use strict";var Hp=qs().mod;zl.segmentsIntersect=k6;function k6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,h=n-r,p=o-r,b=l-o,y=u*b-f*h;if(y===0)return null;var w=(s*b-f*p)/y,T=(s*h-u*p)/y;return T<0||T>1||w<0||w>1?null:{x:e+u*w,y:r+h*w}}zl.segmentDistance=function(r,t,n,a,o,i,l,u){if(k6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,h=l-o,p=u-i,b=s*s+f*f,y=h*h+p*p,w=Math.min(ih(s,f,b,o-r,i-t),ih(s,f,b,l-r,u-t),ih(h,p,y,r-o,t-i),ih(h,p,y,n-o,a-i));return Math.sqrt(w)};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,Vp,A6;zl.getTextLocation=function(r,t,n,a){if((r!==Vp||a!==A6)&&(oh={},Vp=r,A6=a),oh[n])return oh[n];var o=r.getPointAtLength(Hp(n-a/2,t)),i=r.getPointAtLength(Hp(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Hp(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(){Vp=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(w){var T=r.getPointAtLength(w);w===0?h=T:w===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=b(u);y;){if(u+=y+n,u>f)return;y=b(u)}for(y=b(f);y;){if(f-=y+n,u>f)return;y=b(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,b,y;s0?h=p:f=p,s++}return b}});var lh=de(Af=>{"use strict";var no={};Af.throttle=function(r,t,n){var a=no[r],o=Date.now();if(!a){for(var i in no)no[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};Af.done=function(e){var r=no[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Af.clear=function(e){if(e)C6(no[e]),delete no[e];else for(var r in no)Af.clear(r)};function C6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var L6=de((Uce,E6)=>{"use strict";E6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var D6=de((Hce,sh)=>{"use strict";sh.exports=Gp;sh.exports.isMobile=Gp;sh.exports.default=Gp;var xV=/(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,bV=/CrOS/,_V=/android|ipad|playbook|silk/i;function Gp(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=xV.test(r)&&!bV.test(r)||!!e.tablet&&_V.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var P6=de((Vce,R6)=>{"use strict";var wV=nt(),MV=D6();R6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=TV(),typeof t!="string")return!0;var n=MV({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(wV(s)&&(s=+s),s>=13)return!0}}}return n};function TV(){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 F6=de((Gce,I6)=>{"use strict";var AV=it();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]=AV.select(this)}),a}});var z6=de((Yce,N6)=>{"use strict";var kV=Er();N6.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=kV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var O6=de((Wce,q6)=>{"use strict";q6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";B6.exports=function(r){for(var t=EV(r)?CV:SV,n=[],a=0;a{"use strict";H6.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 Y6=de((Jce,G6)=>{"use strict";var LV=nt(),DV=nn().BADNUM,RV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G6.exports=function(r){return typeof r=="string"&&(r=r.replace(RV,"")),LV(r)?Number(r):DV}});var ir=de((Kce,aw)=>{"use strict";var kf=it(),PV=Ns().utcFormat,IV=dp().format,Q6=nt(),$6=nn(),j6=$6.FP_SAFE,FV=-j6,W6=$6.BADNUM,Xe=aw.exports={};Xe.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 X6={};Xe.warnBadFormat=function(e){var r=String(e);X6[r]||(X6[r]=1,Xe.warn('encountered bad format: "'+r+'"'))};Xe.noFormat=function(e){return String(e)};Xe.numberFormat=function(e){var r;try{r=IV(Xe.adjustFormat(e))}catch(t){return Xe.warnBadFormat(e),Xe.noFormat}return r};Xe.nestedProperty=q0();Xe.keyedContainer=qb();Xe.relativeAttr=Bb();Xe.isPlainObject=Eo();Xe.toLogRange=B0();Xe.relinkPrivateKeys=Gb();var qo=ra();Xe.isArrayBuffer=qo.isArrayBuffer;Xe.isTypedArray=qo.isTypedArray;Xe.isArrayOrTypedArray=qo.isArrayOrTypedArray;Xe.isArray1D=qo.isArray1D;Xe.ensureArray=qo.ensureArray;Xe.concat=qo.concat;Xe.maxRowLength=qo.maxRowLength;Xe.minRowLength=qo.minRowLength;var ew=qs();Xe.mod=ew.mod;Xe.modHalf=ew.modHalf;var Oo=u4();Xe.valObjectMeta=Oo.valObjectMeta;Xe.coerce=Oo.coerce;Xe.coerce2=Oo.coerce2;Xe.coerceFont=Oo.coerceFont;Xe.coercePattern=Oo.coercePattern;Xe.coerceHoverinfo=Oo.coerceHoverinfo;Xe.coerceSelectionMarkerOpacity=Oo.coerceSelectionMarkerOpacity;Xe.validate=Oo.validate;var va=p6();Xe.dateTime2ms=va.dateTime2ms;Xe.isDateTime=va.isDateTime;Xe.ms2DateTime=va.ms2DateTime;Xe.ms2DateTimeLocal=va.ms2DateTimeLocal;Xe.cleanDate=va.cleanDate;Xe.isJSDate=va.isJSDate;Xe.formatDate=va.formatDate;Xe.incrementMonth=va.incrementMonth;Xe.dateTick0=va.dateTick0;Xe.dfltRange=va.dfltRange;Xe.findExactDates=va.findExactDates;Xe.MIN_MS=va.MIN_MS;Xe.MAX_MS=va.MAX_MS;var ql=qp();Xe.findBin=ql.findBin;Xe.sorterAsc=ql.sorterAsc;Xe.sorterDes=ql.sorterDes;Xe.distinctVals=ql.distinctVals;Xe.roundUp=ql.roundUp;Xe.sort=ql.sort;Xe.findIndexOfMin=ql.findIndexOfMin;Xe.sortObjectKeys=ah();var ao=m6();Xe.aggNums=ao.aggNums;Xe.len=ao.len;Xe.mean=ao.mean;Xe.geometricMean=ao.geometricMean;Xe.median=ao.median;Xe.midRange=ao.midRange;Xe.variance=ao.variance;Xe.stdev=ao.stdev;Xe.interp=ao.interp;var ei=Z0();Xe.init2dArray=ei.init2dArray;Xe.transposeRagged=ei.transposeRagged;Xe.dot=ei.dot;Xe.translationMatrix=ei.translationMatrix;Xe.rotationMatrix=ei.rotationMatrix;Xe.rotationXYMatrix=ei.rotationXYMatrix;Xe.apply3DTransform=ei.apply3DTransform;Xe.apply2DTransform=ei.apply2DTransform;Xe.apply2DTransform2=ei.apply2DTransform2;Xe.convertCssMatrix=ei.convertCssMatrix;Xe.inverseTransformMatrix=ei.inverseTransformMatrix;var Ci=M6();Xe.deg2rad=Ci.deg2rad;Xe.rad2deg=Ci.rad2deg;Xe.angleDelta=Ci.angleDelta;Xe.angleDist=Ci.angleDist;Xe.isFullCircle=Ci.isFullCircle;Xe.isAngleInsideSector=Ci.isAngleInsideSector;Xe.isPtInsideSector=Ci.isPtInsideSector;Xe.pathArc=Ci.pathArc;Xe.pathSector=Ci.pathSector;Xe.pathAnnulus=Ci.pathAnnulus;var Js=T6();Xe.isLeftAnchor=Js.isLeftAnchor;Xe.isCenterAnchor=Js.isCenterAnchor;Xe.isRightAnchor=Js.isRightAnchor;Xe.isTopAnchor=Js.isTopAnchor;Xe.isMiddleAnchor=Js.isMiddleAnchor;Xe.isBottomAnchor=Js.isBottomAnchor;var Ks=S6();Xe.segmentsIntersect=Ks.segmentsIntersect;Xe.segmentDistance=Ks.segmentDistance;Xe.getTextLocation=Ks.getTextLocation;Xe.clearLocationCache=Ks.clearLocationCache;Xe.getVisibleSegment=Ks.getVisibleSegment;Xe.findPointOnPath=Ks.findPointOnPath;var ch=Tt();Xe.extendFlat=ch.extendFlat;Xe.extendDeep=ch.extendDeep;Xe.extendDeepAll=ch.extendDeepAll;Xe.extendDeepNoArrays=ch.extendDeepNoArrays;var Yp=Il();Xe.log=Yp.log;Xe.warn=Yp.warn;Xe.error=Yp.error;var NV=Os();Xe.counterRegex=NV.counter;var Wp=lh();Xe.throttle=Wp.throttle;Xe.throttleDone=Wp.done;Xe.clearThrottle=Wp.clear;var ri=xf();Xe.getGraphDiv=ri.getGraphDiv;Xe.isPlotDiv=ri.isPlotDiv;Xe.removeElement=ri.removeElement;Xe.addStyleRule=ri.addStyleRule;Xe.addRelatedStyleRule=ri.addRelatedStyleRule;Xe.deleteRelatedStyleRule=ri.deleteRelatedStyleRule;Xe.setStyleOnHover=ri.setStyleOnHover;Xe.getFullTransformMatrix=ri.getFullTransformMatrix;Xe.getElementTransformMatrix=ri.getElementTransformMatrix;Xe.getElementAndAncestors=ri.getElementAndAncestors;Xe.equalDomRects=ri.equalDomRects;Xe.clearResponsive=L6();Xe.preserveDrawingBuffer=P6();Xe.makeTraceGroups=F6();Xe._=z6();Xe.notifier=Ap();Xe.filterUnique=O6();Xe.filterVisible=U6();Xe.pushUnique=Cp();Xe.increment=V6();Xe.cleanNumber=Y6();Xe.ensureNumber=function(r){return Q6(r)?(r=Number(r),r>j6||r=r?!1:Q6(e)&&e>=0&&e%1===0};Xe.noop=X0();Xe.identity=Np();Xe.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))};Xe.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};Xe.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?(Xe.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Xe.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};Xe.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};Xe.syncOrAsync=function(e,r,t){var n,a;function o(){return Xe.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)};Xe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Xe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Xe.fillArray=function(e,r,t,n){if(n=n||Xe.identity,Xe.isArrayOrTypedArray(e))for(var a=0;aOV.test(window.navigator.userAgent);var BV=/Firefox\/(\d+)\.\d+/;Xe.getFirefoxVersion=function(){var e=BV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Xe.isD3Selection=function(e){return e instanceof kf.selection};Xe.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};Xe.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};Xe.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};Xe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var nw=/^\w*$/;Xe.templateString=function(e,r){var t={};return e.replace(Xe.TEMPLATE_STRING_REGEX,function(n,a){var o;return nw.test(a)?o=r[a]:(t[a]=t[a]||Xe.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var VV={max:10,count:0,name:"hovertemplate"};Xe.hovertemplateString=e=>Xp(E0(Cl({},e),{opts:VV}));var GV={max:10,count:0,name:"texttemplate"};Xe.texttemplateString=e=>Xp(E0(Cl({},e),{opts:GV}));var YV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function WV(e){var r=e.match(YV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var XV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Xe.texttemplateStringForShapes=e=>Xp(E0(Cl({},e),{opts:XV}));var Z6=/^[:|\|]/;function Xp({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Xe.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),b=s||f||p||h;(f||h)&&(l=l.substring(1)),(p||h)&&(l=l.substring(0,l.length-1));let y=null,w=null;if(a.parseMultDiv){var T=WV(l);l=T.key,y=T.op,w=T.number}let m;if(b){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(nw.test(l)||(m=Xe.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:d,name:_}=a,g=t===!1?i:t;return M=fh&&i<=J6,s=l>=fh&&l<=J6;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 Zs=2e9;Xe.seedPseudoRandom=function(){Zs=2e9};Xe.pseudoRandom=function(){var e=Zs;return Zs=(69069*Zs+1)%4294967296,Math.abs(Zs-e)<429496729?Xe.pseudoRandom():Zs/4294967296};Xe.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Xe.extractOption(e,r,"htx","hovertext");if(Xe.isValidTextValue(a))return n(a);var o=Xe.extractOption(e,r,"tx","text");if(Xe.isValidTextValue(o))return n(o)};Xe.isValidTextValue=function(e){return e||e===0};Xe.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,Xe.strTranslate(a-s*(t+i),o-s*(n+l))+Xe.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Xe.setTransormAndDisplay=function(e,r){e.attr("transform",Xe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Xe.ensureUniformFontSize=function(e,r){var t=Xe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Xe.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)};Xe.bigFont=function(e){return Math.round(1.2*e)};var K6=Xe.getFirefoxVersion(),ZV=K6!==null&&K6<86;Xe.getPositionFromD3Event=function(){return ZV?[kf.event.layerX,kf.event.layerY]:[kf.event.offsetX,kf.event.offsetY]}});var lw=de(()=>{"use strict";var JV=ir(),iw={"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(Zp in iw)ow=Zp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),JV.addStyleRule(ow,iw[Zp]);var ow,Zp});var Jp=de((e0e,sw)=>{sw.exports=!0});var Qp=de((r0e,uw)=>{"use strict";var KV=Jp(),Kp;typeof window.matchMedia=="function"?Kp=!window.matchMedia("(hover: none)").matches:Kp=KV;uw.exports=Kp});var dh=de((t0e,$p)=>{"use strict";var Qs=typeof Reflect=="object"?Reflect:null,fw=Qs&&typeof Qs.apply=="function"?Qs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},hh;Qs&&typeof Qs.ownKeys=="function"?hh=Qs.ownKeys:Object.getOwnPropertySymbols?hh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:hh=function(r){return Object.getOwnPropertyNames(r)};function QV(e){console&&console.warn&&console.warn(e)}var hw=Number.isNaN||function(r){return r!==r};function At(){At.init.call(this)}$p.exports=At;$p.exports.once=rG;At.EventEmitter=At;At.prototype._events=void 0;At.prototype._eventsCount=0;At.prototype._maxListeners=void 0;var cw=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 cw},set:function(e){if(typeof e!="number"||e<0||hw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");cw=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||hw(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 vw(e){return e._maxListeners===void 0?At.defaultMaxListeners:e._maxListeners}At.prototype.getMaxListeners=function(){return vw(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")fw(u,this,t);else for(var s=u.length,f=mw(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,QV(l)}return e}At.prototype.addListener=function(r,t){return dw(this,r,t,!1)};At.prototype.on=At.prototype.addListener;At.prototype.prependListener=function(r,t){return dw(this,r,t,!0)};function $V(){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 pw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=$V.bind(n);return a.listener=t,n.wrapFn=a,a}At.prototype.once=function(r,t){return vh(t),this.on(r,pw(this,r,t)),this};At.prototype.prependOnceListener=function(r,t){return vh(t),this.prependListener(r,pw(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():jV(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 gw(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?eG(a):mw(a,a.length)}At.prototype.listeners=function(r){return gw(this,r,!0)};At.prototype.rawListeners=function(r){return gw(this,r,!1)};At.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):yw.call(e,r)};At.prototype.listenerCount=yw;function yw(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 mw(e,r){for(var t=new Array(r),n=0;n{"use strict";var jp=dh().EventEmitter,nG={init:function(e){if(e._ev instanceof jp)return e;var r=new jp,t=new jp;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 _w=ir(),aG=Pl().dfltConfig;function iG(e,r){for(var t=[],n,a=0;aaG.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};io.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};io.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};io.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";Tw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var eu=de(jt=>{"use strict";var Ea=Er(),Cf=ir(),gh=Sn(),rg=Vs(),oG=eg(),lG=bf(),sG=Pl().configAttributes,Aw=qn(),ti=Cf.extendDeepAll,$s=Cf.isPlainObject,uG=Cf.isArrayOrTypedArray,yh=Cf.nestedProperty,fG=Cf.valObjectMeta,tg="_isSubplotObj",mh="_isLinkedToArray",cG="_arrayAttrRegexps",Sw="_deprecated",ng=[tg,mh,cG,Sw];jt.IS_SUBPLOT_OBJ=tg;jt.IS_LINKED_TO_ARRAY=mh;jt.DEPRECATED=Sw;jt.UNDERSCORE_ATTRS=ng;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=vG(r)}),{defs:{valObjects:fG,metaKeys:ng.concat(["description","role","editType","impliedEdits"]),editType:{traces:Aw.traces,layout:Aw.layout},impliedEdits:{}},traces:e,layout:dG(),frames:pG(),animation:js(lG),config:js(sG)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(ng.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&$s(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.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)uG(h)&&r.push(o+p);else if(n[s]){if(Array.isArray(h))for(var b=0;b=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 vG(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);jt.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:js(n)};if(r.layoutAttributes){var l={};ti(l,r.layoutAttributes),i.layoutAttributes=js(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function dG(){var e={},r,t;ti(e,rg);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 ru=ir(),bG=Sn(),Bo="templateitemname",ag={name:{valType:"string",editType:"none"}};ag[Bo]={valType:"string",editType:"calc"};Ol.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=ag.name,r[Bo]=ag[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=ru.coerce(o,{},bG,"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]);ru.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[Lw(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(!Ew(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(b,y){l[b]=y}function f(b,y){o?ru.nestedProperty(l[i],b).set(y):l[i+"."+b]=y}function h(){var b=l;return u(),b}function p(b,y){b&&f(b,y);var w=h();for(var T in w)ru.nestedProperty(e,T).set(w[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:h,applyUpdate:p}}});var on=de((s0e,Dw)=>{"use strict";var Ef=Os().counter;Dw.exports={idRegex:{x:Ef("x","( domain)?"),y:Ef("y","( domain)?")},attrRegex:Ef("[xy]axis"),xAxisMatch:Ef("xaxis"),yAxisMatch:Ef("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=de(ia=>{"use strict";var _G=Er(),ig=on();ia.id2name=function(r){if(!(typeof r!="string"||!r.match(ig.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};ia.name2id=function(r){if(r.match(ig.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};ia.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(ig.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":"")}};ia.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=ia.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};ia.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Rw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function wG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function MG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Pw.exports={clearOutlineControllers:wG,clearOutline:MG}});var xh=de((c0e,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 Lf=de(_h=>{"use strict";var bh=Er(),h0e=on().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 TG=Er(),tu=ir();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){Fw(e,i,a.cache),a.check=function(){if(o){var f=Fw(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;tu.isPlainObject(o)?og(o,r,i,n+1):r(i,a,o)}})}});var ln=de((p0e,$w)=>{"use strict";var Yw=it(),kG=Ns().timeFormatLocale,SG=dp().formatLocale,Df=nt(),CG=pp(),ot=Er(),Ww=eu(),EG=yt(),xr=ir(),Xw=Xr(),Ow=nn().BADNUM,oa=en(),LG=Uo().clearOutline,DG=xh(),lg=bf(),RG=eg(),PG=Lf().getModuleCalcData,Bw=xr.relinkPrivateKeys,Ul=xr._,cr=$w.exports={};xr.extendFlat(cr,ot);cr.attributes=Sn();cr.attributes.type.values=cr.allTypes;cr.fontAttrs=kn();cr.layoutAttributes=Vs();var Mh=qw();cr.executeAPICommand=Mh.executeAPICommand;cr.computeAPICommandBindings=Mh.computeAPICommandBindings;cr.manageCommandObserver=Mh.manageCommandObserver;cr.hasSimpleAPICommandBindings=Mh.hasSimpleAPICommandBindings;cr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ot.getComponentMethod("annotations","draw")(e),ot.getComponentMethod("legend","draw")(e),ot.getComponentMethod("colorbar","draw")(e),r(cr.previousPromises(e)))},300)})};cr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.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||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ot.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};cr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};cr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Xw.defaultLine,"pointer-events":"all"}).each(function(){var s=Yw.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&&IG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function IG(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(){cr.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})}}cr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Yw.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=cr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var FG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],NG=["year","month","dayMonth","dayMonthYear"];cr.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||cr.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=Uw(e,FG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var b=n.width,y=n.height;cr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=b),o.height||(a.height=y),cr.sanitizeMargins(a)}else{cr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=w&&(T||m);k?cr.plotAutoSize(e,o,a):w&&cr.sanitizeMargins(a),!T&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=OG(p,a.separators),a._extraFormat=Uw(e,NG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=qG(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=zG(i,u),cr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),_=Object.keys(x.y);if(d.length>1&&_.length>1){for(ot.getComponentMethod("grid","sizeDefaults")(o,a),h=0;h15&&_.length>15&&a.shapes.length===0&&a.images.length===0,cr.linkSubplots(l,a,i,n),cr.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&&LG({_fullLayout:n}),BG(l,a),Bw(a,n),ot.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var F=a._tracePreGUI,I={},L;for(L in F)I[L]="old";for(h=0;h0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var h=cr.layoutAttributes.width.min,p=cr.layoutAttributes.height.min;i1,y=!t.height&&Math.abs(n.height-l)>1;(y||b)&&(b&&(n.width=i),y&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),cr.sanitizeMargins(n)};cr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ot.componentsRegistry,o=r._basePlotModules,i,l,u,s=ot.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ot.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.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;b[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:M,size:t.b+w},t:{val:x,size:t.t+w}},y[r]=1}if(!n._replotting)return cr.doAutoMargin(e)}};function HG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=oa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}cr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Zw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,h=o.b,p=r._pushmargin,b=r._pushmarginIds,y=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var T in p)b[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 d=0;for(var _ in p)_!=="base"&&Df(p[_][M].size)&&(d=p[_][M].size>d?p[_][M].size:d);var g=Math.max(0,o[M]-d);i[M]=Math.max(0,i[M]-g)}for(var c in p){var A=p[c].l||{},v=p[c].b||{},D=A.val,E=A.size,R=v.val,N=v.size,F=t-i.r-i.l,I=n-i.t-i.b;for(var L in p){if(Df(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>D){var U=(E*P+(O-F)*D)/(P-D),X=(O*(1-D)+(E-F)*(1-P))/(P-D);U+X>u+s&&(u=U,s=X)}}if(Df(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>R){var Y=(N*$+(j-I)*R)/($-R),q=(j*(1-R)+(N-I)*(1-$))/($-R);Y+q>h+f&&(h=Y,f=q)}}}}}var Q=xr.constrain(t-o.l-o.r,Jw,y),ae=xr.constrain(n-o.t-o.b,Kw,w),K=Math.max(0,t-Q),oe=Math.max(0,n-ae);if(K){var re=(u+s)/K;re>1&&(u/=re,s/=re)}if(oe){var V=(h+f)/oe;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&&(cr.didMarginChange(l,a)||HG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ee=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};cr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&cr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,b){if(typeof p=="function")return b?"_function_":null;if(xr.isPlainObject(p)){var y={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){b&&(y[S]="_function");return}if(t==="keepdata"){if(S.slice(-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;y[S]=s(p[S],b)}}),y}var T=Array.isArray(p),m=xr.isTypedArray(p);if((T||m)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?CG.encode(k):k},b)}return T?p.map(function(S){return s(S,b)}):m?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var b=s(p);return r&&delete b.fit,b})};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)};cr.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 ot.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,b=0;function y(){return p++,function(){b++,!n&&b===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 ot.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=[cr.previousPromises,u,t.prepareFn,cr.rehover,cr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}cr.doCalcdata=function(e,r){var t=oa.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:Ow,y:Ow}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Vw(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 Cn=de((y0e,jw)=>{"use strict";jw.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 On=de(La=>{"use strict";var Zt=it(),oo=ir(),WG=oo.strTranslate,sg=Ho(),XG=Cn().LINE_SPACING,ZG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(ZG),o=Zt.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=lY(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};$G(a[2],f,function(h,p,b){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 w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(y.node()),p&&p.node()&&y.node().insertBefore(p.node().cloneNode(!0),y.node().firstChild);var T=b.width,m=b.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,d=x.height;(M>T||d>m)&&(y.style("overflow","hidden"),x=y.node().getBoundingClientRect(),M=x.width,d=x.height);var _=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,_,g]+")"+WG(-M/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)_=0,g=A;else{var v=e.attr("text-anchor");_=_-M*(v==="middle"?.5:v==="end"?1:0),g=g+A-d/2}y.attr({x:_,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var JG=/(<|<|<)/g,KG=/(>|>|>)/g;function QG(e){return e.replace(JG,"\\lt ").replace(KG,"\\gt ")}var e7=[["$","$"],["\\(","\\)"]];function $G(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){oo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=oo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:e7},displayAlign:"left"})},s=function(){o=oo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=e7},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-"+oo.randstr({},64);l=Zt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(QG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},b=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)oo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),M;n===2?M=Zt.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)},w=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,b,y,T):n===3&&(s(),h(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),b(),w(),m()}))}var a7={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"},jG={sub:"0.3em",sup:"-0.6em"},eY={sub:"-0.21em",sup:"0.42em"},r7="\u200B",t7=["http:","https:","mailto:","",void 0,":"],i7=La.NEWLINES=/(\r\n?|\n)/g,fg=/(<[^<>]*>)/,cg=/<(\/?)([^ >]*)(\s+(.*))?>/i,rY=//i;La.BR_TAG_ALL=//gi;var o7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,l7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,s7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,tY=/(^|[\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 nY=/(^|;)\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(fg),l=[],u="",s=0,f=0;fo?l.push(h.slice(0,Math.max(0,w-o))+a):l.push(h.slice(0,w));break}u=""}}return l.join("")};var aY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},iY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Th(e){return e.replace(iY,function(r,t){var n;return t.charAt(0)==="#"?n=oY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=aY[t],n||r})}La.convertEntities=Th;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 lY(e,r){r=r.replace(i7," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(sg.svg,"tspan");Zt.select(d).attr({class:"line",dy:o*XG+"em"}),e.appendChild(d),a=d;var _=n;if(n=[{node:d}],_.length>1)for(var g=1;g<_.length;g++)l(_[g])}function l(d){var _=d.type,g={},c;if(_==="a"){c="a";var A=d.target,v=d.href,D=d.popup;v&&(g={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":v},D&&(g.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+D+'");return false;'))}else c="tspan";d.style&&(g.style=d.style);var E=document.createElementNS(sg.svg,c);if(_==="sup"||_==="sub"){u(a,r7),a.appendChild(E);var R=document.createElementNS(sg.svg,"tspan");u(R,r7),Zt.select(R).attr("dy",eY[_]),g.dy=jG[_],a.appendChild(E),a.appendChild(R)}else a.appendChild(E);Zt.select(E).attr(g),a=d.node=E,n.push(d)}function u(d,_){d.appendChild(document.createTextNode(_))}function s(d){if(n.length===1){oo.log("Ignoring unexpected end tag .",r);return}var _=n.pop();d!==_.type&&oo.log("Start tag <"+_.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=rY.test(r);f?i():(a=e,n=[{node:e}]);for(var h=r.split(fg),p=0;p{"use strict";var sY=it(),kh=Sa(),Pf=nt(),Ah=ir(),f7=Xr(),uY=Dl().isValid;function fY(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 g7(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 m7=Rp(),hY=m7.FORMAT_LINK,vY=m7.DATE_FORMAT_LINK;function dY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?hg:x7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function hg(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: "+hY+"."].join(" ")}function x7(e,r){return hg(e,r)+[" And for dates see: "+vY+".","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(" ")}b7.exports={axisHoverFormat:dY,descriptionOnlyNumbers:hg,descriptionWithDates:x7}});var Da=de((w0e,z7)=>{"use strict";var _7=kn(),nu=Si(),N7=Ro().dash,dg=Tt().extendFlat,w7=yt().templatedArray,_0e=ja().templateFormatStringDescription,M7=lo().descriptionWithDates,pY=nn().ONEDAY,Li=on(),gY=Li.HOUR_PATTERN,yY=Li.WEEKDAY_PATTERN,vg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},mY=dg({},vg,{values:vg.values.slice().concat(["sync"])});function T7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var A7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},k7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"data_array",editType:"ticks"},C7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function E7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function L7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var D7={valType:"color",dflt:nu.defaultLine,editType:"ticks"},R7={valType:"color",dflt:nu.lightLine,editType:"ticks"};function P7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var I7=dg({},N7,{editType:"ticks"}),F7={valType:"boolean",editType:"ticks"};z7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:nu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:_7({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:w7("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:[yY,gY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:pY},editType:"calc"}),tickmode:mY,nticks:T7(),tick0:A7,dtick:k7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:S7,ticktext:{valType:"data_array",editType:"ticks"},ticks:C7,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:E7(),tickwidth:L7(),tickcolor:D7,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:dg({},N7,{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:_7({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:M7("tick label")},tickformatstops:w7("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:M7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:nu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:F7,gridcolor:R7,gridwidth:P7(),griddash:I7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:nu.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:nu.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:vg,nticks:T7("minor"),tick0:A7,dtick:k7,tickvals:S7,ticks:C7,ticklen:E7("minor"),tickwidth:L7("minor"),tickcolor:D7,gridcolor:R7,gridwidth:P7("minor"),griddash:I7,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 Sh=de((M0e,B7)=>{"use strict";var kt=Da(),q7=kn(),O7=Tt().extendFlat,xY=qn().overrideAll;B7.exports=xY({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:O7({},kt.ticks,{dflt:""}),ticklabeloverflow:O7({},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:q7({}),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:q7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ni=de((A0e,H7)=>{"use strict";var bY=Sh(),_Y=Os().counter,wY=ah(),U7=Dl().scales,T0e=wY(U7);function Ch(e){return"`"+e+"`"}H7.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"?U7[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.":"",b=n+"auto",y=n+"min",w=n+"max",T=n+"mid",m=Ch(s+b),k=Ch(s+y),S=Ch(s+w),x=k+" and "+S,M={};M[y]=M[w]=void 0;var d={};d[b]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},_[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=bY),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:_Y("coloraxis"),dflt:null,editType:"calc"}),_}});var gg=de((k0e,V7)=>{"use strict";var MY=Tt().extendFlat,TY=ni(),pg=Dl().scales;V7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:pg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:pg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:pg.RdBu,editType:"calc"}},coloraxis:MY({_isSubplotObj:!0,editType:"calc"},TY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var yg=de((S0e,G7)=>{"use strict";var AY=ir();G7.exports=function(r){return AY.isPlainObject(r.colorbar)}});var bg=de(xg=>{"use strict";var mg=nt(),Y7=ir(),W7=nn(),kY=W7.ONEDAY,SY=W7.ONEWEEK;xg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?kY:1;if(!e)return o;if(mg(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=mg(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};xg.tick0=function(e,r,t,n){if(r==="date")return Y7.cleanDate(e,Y7.dateTick0(t,n%SY===0?1:0));if(!(n==="D1"||n==="D2"))return mg(e)?Number(e):0}});var _g=de((E0e,Z7)=>{"use strict";var X7=bg(),CY=ir().isArrayOrTypedArray,EY=ra().isTypedArraySpec,LY=ra().decodeTypedArraySpec;Z7.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 EY(S)&&(S=LY(S)),S!==void 0?S:(u._template||{})[k]}var h=f("tick0"),p=f("dtick"),b=f("tickvals"),y=CY(b)?"array":p?"linear":"auto",w=n(s+"tickmode",y);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var T=u.dtick=X7.dtick(p,a);u.tick0=X7.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 Mg=de((L0e,K7)=>{"use strict";var wg=ir(),J7=Da();K7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?J7.minor:J7,s=o?"minor.":"",f=wg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),h=wg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=wg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||h||p?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Tg=de((D0e,Q7)=>{"use strict";Q7.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=de((R0e,$7)=>{"use strict";var Eh=ir(),DY=yt();$7.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=DY.arrayTemplater(t,a,o),f,h;for(f=0;f{"use strict";var Ag=ir(),RY=Xr().contrast,j7=Da(),PY=Tg(),IY=ai();e8.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Ag.isPlainObject(i)||delete t.labelalias;var l=PY(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?RY(o.bgColor):f&&f!==j7.color.dflt?f:s.color;if(Ag.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var y=n("tickformat");IY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:FY}),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 FY(e,r){function t(a,o){return Ag.coerce(e,r,j7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Sg=de((I0e,r8)=>{"use strict";var NY=Tg();r8.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=NY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Cg=de((F0e,t8)=>{"use strict";var Vo=ir(),zY=yt(),qY=_g(),OY=Mg(),BY=kg(),UY=Sg(),HY=Sh();t8.exports=function(r,t,n){var a=zY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(v,D){return Vo.coerce(o,a,HY,v,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 b=i("lenmode");i("len",b==="fraction"?1:h?s:u);var y=i("yref"),w=i("xref"),T=y==="paper",m=w==="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 d=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",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),qY(o,a,i,"linear");var _=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};d.indexOf("inside")!==-1&&(g.bgColor="black"),UY(o,a,i,"linear",g),BY(o,a,i,"linear",g),OY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:_,A=Vo.extendFlat({},_,{family:c.family,size:Vo.bigFont(c.size)});Vo.coerceFont(i,"title.font",A),i("title.side",h?"top":"right")}});var Di=de((N0e,i8)=>{"use strict";var n8=nt(),Lg=ir(),VY=yg(),GY=Cg(),a8=Dl().isValid,YY=Er().traceIs;function Eg(e,r){var t=r.slice(0,r.length-1);return r?Lg.nestedProperty(e,t).get()||{}:e}i8.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Eg(r,i),f=Eg(t,i),h=Eg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},y=a(i+"coloraxis");if(y){var w=YY(t,"contour")&&Lg.nestedProperty(t,"contours.coloring").get()||"heatmap",T=b[y];T?(T[2].push(p),T[0]!==w&&(T[0]=!1,Lg.warn(["Ignoring coloraxis:",y,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[y]=[w,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=n8(m)&&n8(k)&&m{"use strict";var o8=ir(),WY=yt(),l8=gg(),XY=Di();s8.exports=function(r,t){function n(h,p){return o8.coerce(r,t,l8,h,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(h,p){return o8.coerce(o,i,l8.coloraxis,h,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=WY.newContainer(t,u,"coloraxis"),i._name=u,XY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var ZY=ir(),JY=Ei().hasColorscale,KY=Ei().extractOpts;f8.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?ZY.nestedProperty(f,h.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var b=KY(p),y=b.auto;(y||b.min===void 0)&&n(p,h.min),(y||b.max===void 0)&&n(p,h.max),b.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var h8=nt(),Dg=ir(),QY=Ei().extractOpts;v8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Dg.nestedProperty(t,i).get():t,u=QY(l),s=u.auto!==!1,f=u.min,h=u.max,p=u.mid,b=function(){return Dg.aggNums(Math.min,null,o)},y=function(){return Dg.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&h8(f)?f=Math.min(f,b()):f=b()),h===void 0?h=y():s&&(l._colorAx&&h8(h)?h=Math.max(h,y()):h=y()),s&&p!==void 0&&(h-p>p-f?f=p-(h-p):h-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Ri=de((B0e,d8)=>{"use strict";var Lh=Dl(),au=Ei();d8.exports={moduleType:"component",name:"colorscale",attributes:ni(),layoutAttributes:gg(),supplyLayoutDefaults:u8(),handleDefaults:Di(),crossTraceDefaults:c8(),calc:Go(),scales:Lh.scales,defaultScale:Lh.defaultScale,getScale:Lh.get,isValidScale:Lh.isValid,hasColorscale:au.hasColorscale,extractOpts:au.extractOpts,extractScale:au.extractScale,flipScale:au.flipScale,makeColorScaleFunc:au.makeColorScaleFunc,makeColorScaleFuncFromTrace:au.makeColorScaleFuncFromTrace}});var la=de((U0e,g8)=>{"use strict";var p8=ir(),$Y=ra().isTypedArraySpec;g8.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 p8.isPlainObject(r)&&(p8.isArrayOrTypedArray(r.size)||$Y(r.size))}}});var Rg=de((H0e,y8)=>{"use strict";var jY=nt();y8.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 jY(u)&&u>0?Math.max(u,o):0}}});var so=de(En=>{"use strict";var Dh=ir();En.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};En.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{b8.exports=aW;var Pg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},nW=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function aW(e){var r=[];return e.replace(nW,function(t,n,a){var o=n.toLowerCase();for(a=oW(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Pg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var lW=Ig(),ur=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Nr="M0,0Z",_8=Math.sqrt(2),Yo=Math.sqrt(3),Fg=Math.PI,Ng=Math.cos,zg=Math.sin;k8.exports={circle:{n:0,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?qr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.3,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.4,2),a=ur(e*1.2,2);return qr(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(zr(r))return Nr;var n=ur(e*.8/_8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return qr(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(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2/Yo,2),a=ur(e/2,2),o=ur(e,2);return qr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.6,2),a=ur(e*1.2,2);return qr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*.951,2),a=ur(e*.588,2),o=ur(-e,2),i=ur(e*-.309,2),l=ur(e*.809,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/2,2),o=ur(e*Yo/2,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/2,2),o=ur(e*Yo/2,2);return qr(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(zr(r))return Nr;var n=ur(e*.924,2),a=ur(e*.383,2);return qr(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(zr(r))return Nr;var n=e*1.4,a=ur(n*.225,2),o=ur(n*.951,2),i=ur(n*.363,2),l=ur(n*.588,2),u=ur(-n,2),s=ur(n*-.309,2),f=ur(n*.118,2),h=ur(n*.809,2),p=ur(n*.382,2);return qr(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(zr(r))return Nr;var n=ur(e*.66,2),a=ur(e*.38,2),o=ur(e*.76,2);return qr(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(zr(r))return Nr;var n=ur(e*Yo*.8,2),a=ur(e*.8,2),o=ur(e*1.6,2),i=ur(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*Yo*.8,2),a=ur(e*.8,2),o=ur(e*1.6,2),i=ur(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*1.1,2),a=ur(e*2,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*1.4,2),a=ur(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(zr(r))return Nr;var n=ur(e*.7,2),a=ur(e*1.4,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.4,2),a=ur(e*.7,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e/_8,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.3,2);return qr(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(zr(r))return Nr;var n=ur(e*1.3,2),a=ur(e*.65,2);return qr(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(zr(r))return Nr;var n=ur(e*1.4,2);return qr(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(zr(r))return Nr;var n=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*.85,2);return qr(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(zr(r))return Nr;var n=ur(e/2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.2,2),a=ur(e*1.6,2),o=ur(e*.8,2);return qr(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(zr(r))return Nr;var n=ur(e*1.4,2);return qr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*1.4,2);return qr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(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(zr(r))return Nr;var n=ur(e,2),a=ur(e*2,2);return qr(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(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=ur(e*2,2),a=ur(e,2);return qr(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(zr(r))return Nr;var n=Fg/2.5,a=2*e*Ng(n),o=2*e*zg(n);return qr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(zr(r))return Nr;var n=Fg/4,a=2*e*Ng(n),o=2*e*zg(n);return qr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function zr(e){return e===null}var w8,M8,T8,A8;function qr(e,r,t){if((!e||e%360===0)&&!r)return t;if(T8===e&&A8===r&&w8===t)return M8;T8=e,A8=r,w8=t;function n(T,m){var k=Ng(T),S=zg(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*Fg,o=0,i=0,l=lW(t),u="",s=0;s{"use strict";var sn=it(),dt=ir(),sW=dt.numberFormat,Xl=nt(),Vg=Sa(),Ph=Er(),_n=Xr(),uW=Ri(),Ff=dt.strTranslate,Ih=On(),fW=Ho(),cW=Cn(),hW=cW.LINE_SPACING,z8=Y0().DESELECTDIM,vW=la(),dW=Rg(),pW=so().appendArrayPointValue,hr=X8.exports={};hr.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(_n.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",qg(yW(f))),u&&e.style("text-shadow",u==="auto"?Ih.makeTextShadow(_n.contrast(o)):qg(u)),s&&e.style("text-decoration-line",qg(mW(s)))};function qg(e){return e==="none"?void 0:e}var gW={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function yW(e){return gW[e]}function mW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};hr.setRect=function(e,r,t,n,a){e.call(hr.setPosition,r,t).call(hr.setSize,n,a)};hr.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",Ff(a,o));else return!1;return!0};hr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);hr.translatePoint(n,a,r,t)})};hr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};hr.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){hr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};hr.crispRound=function(e,r,t){return!r||!Xl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};hr.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||"";_n.stroke(r,n||o.color),hr.dashLine(r,l,i)};hr.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||"";sn.select(this).call(_n.stroke,t||o.color).call(hr.dashLine,l,i)})};hr.dashLine=function(e,r,t){t=+t||0,r=hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};hr.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 q8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=hr.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),b=r.uid;hr.pattern(e,"point",t,b,l,h,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var y=o.type,w="scatterfill-"+r.uid;if(n&&(w="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(U8,t,w,"linear",o.colorscale,"fill",T,m,!0,!1)}else y==="horizontal"&&(y=y+"reversed"),e.call(hr.gradient,t,w,y,o.colorscale,"fill")}else r.fillcolor&&e.call(_n.fill,r.fillcolor)}hr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};q8(e,a,r,!1)};hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&q8(a,n[0].trace,r,t)})};var C8=S8();hr.symbolNames=[];hr.symbolFuncs=[];hr.symbolBackOffs=[];hr.symbolNeedLines={};hr.symbolNoDot={};hr.symbolNoFill={};hr.symbolList=[];Object.keys(C8).forEach(function(e){var r=C8[e],t=r.n;hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),hr.symbolNames[t]=e,hr.symbolFuncs[t]=r.f,hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(hr.symbolNeedLines[t]=!0),r.noDot?hr.symbolNoDot[t]=!0:hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(hr.symbolNoFill[t]=!0)});var xW=hr.symbolNames.length,bW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";hr.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=hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=xW||e>=400?0:Math.floor(Math.max(e,0))};function O8(e,r,t,n){var a=e%100;return hr.symbolFuncs[a](r,t,n)+(e>=200?bW:"")}var E8=sW("~f"),B8={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}};hr.gradient=function(e,r,t,n,a,o){var i=B8[n];return U8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function U8(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),b=0;b=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=hr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Wg(e,t),h=Yg(e,t);r.attr("d",O8(s,u,f,h))}var p=!1,b,y,w;if(e.so)w=l.outlierwidth,y=l.outliercolor,b=i.outliercolor;else{var T=(l||{}).width;w=(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):dt.isArrayOrTypedArray(l.color)?y=_n.defaultLine:y=l.color,dt.isArrayOrTypedArray(i.color)&&(b=_n.defaultLine,p=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&hr.dashLine(r,m,w),e.om)r.call(_n.stroke,b).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,dt.isArrayOrTypedArray(S)&&(S=S[0],B8[S]||(S=0));var x=i.pattern,M=hr.getPatternAttr,d=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(S&&S!=="none"){var _=e.mgc;_?p=!0:_=k.color;var g=t.uid;p&&(g+="-"+e.i),hr.gradient(r,a,g,S,[[0,_],[1,b]],"fill")}else if(d){var c=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,c=!0);var v=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||dt.isArrayOrTypedArray(x.shape)||dt.isArrayOrTypedArray(x.path)||dt.isArrayOrTypedArray(x.bgcolor)||dt.isArrayOrTypedArray(x.fgcolor)||dt.isArrayOrTypedArray(x.size)||dt.isArrayOrTypedArray(x.solidity);var F=t.uid;c&&(F+="-"+e.i),hr.pattern(r,"point",a,F,d,R,N,e.mcc,x.fillmode,D,v,E)}else dt.isArrayOrTypedArray(b)?_n.fill(r,b[e.i]):_n.fill(r,b);w&&_n.stroke(r,y)}};hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=hr.tryColorscale(t,""),r.lineScale=hr.tryColorscale(t,"line"),Ph.traceIs(e,"symbols")&&(r.ms2mrc=vW.isBubble(e)?dW(e):function(){return(t.size||6)/2}),e.selectedpoints&&dt.extendFlat(r,hr.makeSelectedPointStyleFns(e)),r};hr.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;(dt.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:z8*M});var p=a.color,b=o.color,y=i.color;(b||y)&&(r.selectedColorFn=function(x){var M=x.mcc||p;return x.selected?b||M:y||M});var w=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||w/2;return x.selected?k?T/2:M:S?m/2:M}),r};hr.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:_n.addOpacity(h,z8))},r};hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.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){_n.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",O8(hr.symbolNumber(l),u,Wg(i,r),Yg(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}hr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=hr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?dt.extractOption(l,r,"txt","texttemplate"):dt.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={};pW(p,r,l.i),s=dt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:h,locale:i._d3locale,template:s})}var b=l.tp||r.textposition,y=V8(l,r),w=n?n(l):l.tc||r.textfont.color;u.call(hr.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:w}).text(s).call(Ih.convertToTspans,t).call(H8,b,y,l.mrc)})}};hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=V8(n,r);_n.fill(a,o);var u=Ph.traceIs(r,"bar-like");H8(a,i,l,n.mrc2||n.mrc,u)})}};var L8=.5;hr.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}hr.applyBackoff=W8;hr.makeTester=function(){var e=dt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(fW.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=dt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});hr.tester=e,hr.testref=r};hr.savedBBoxes={};var Bg=0,MW=1e4;hr.bBox=function(e,r,t){t||(t=D8(e));var n;if(t){if(n=hr.savedBBoxes[t],n)return dt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=D8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=hr.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=hr.savedBBoxes[t],n)return dt.extendFlat({},n)}}var s,f;r?s=e:(f=hr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(Ih.positionText,0,0);var h=s.getBoundingClientRect(),p=hr.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={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 Bg>=MW&&(hr.savedBBoxes={},Bg=0),t&&(hr.savedBBoxes[t]=b),Bg++,dt.extendFlat({},b)};function D8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}hr.setClipUrl=function(e,r,t){e.attr("clip-path",Gg(r,t))};function Gg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}hr.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}};hr.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+=Ff(r,t),i=i.trim(),e[o]("transform",i),i};hr.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}};hr.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 TW=/\s*sc.*/;hr.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(TW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var AW=/translate\([^)]*\)\s*$/;hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.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(AW);r===1&&t===1?n=[]:n=[Ff(i,l),"scale("+r+","+t+")",Ff(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Yg(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}hr.getMarkerStandoff=Yg;var If=Math.atan2,Gl=Math.cos,ou=Math.sin;function R8(e,r){var t=r[0],n=r[1];return[t*Gl(e)-n*ou(e),t*ou(e)+n*Gl(e)]}var P8,I8,F8,N8,Ug,Hg;function Wg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||dt.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]),b=If(p[1]-a,p[0]-n),y=If(h[1]-a,h[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=P8/180*Math.PI,S=I8/180*Math.PI,x=k-T,M=Gl(S)*ou(x),d=ou(S)*Gl(m)-Gl(S)*ou(m)*Gl(x);w=-If(M,d)-Math.PI,P8=s,I8=f}var _=R8(b,[Gl(w),0]),g=R8(y,[ou(w),0]);t=If(_[1]+g[1],_[0]+g[0])/Math.PI*180,o==="previous"&&!(Hg===r.uid&&e.i===Ug+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Hg===r.uid&&e.i===Ug+1&&Xl(n)&&Xl(a)){var c=n-F8,A=a-N8,v=r.line&&r.line.shape||"",D=v.slice(v.length-1);D==="h"&&(A=0),D==="v"&&(c=0),t+=If(A,c)/Math.PI*180+90}else t=null}return F8=n,N8=a,Ug=e.i,Hg=r.uid,t}hr.getMarkerAngle=Wg});var Nf=de((X0e,Q8)=>{"use strict";var lu=it(),kW=nt(),SW=ln(),Xg=Er(),Zl=ir(),Z8=Zl.strTranslate,Fh=mt(),Nh=Xr(),su=On(),J8=Y0(),CW=Cn().OPPOSITE_SIDE,K8=/ [XY][0-9]* /,Zg=1.6,Jg=1.6;function EW(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,b=a.title,y=(b&&b.text?b.text:"").trim(),w=!1,T=b&&b.font?b.font:{},m=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,d=T.variant,_=T.textcase,g=T.lineposition,c=T.shadow,A=t.subtitlePropName,v=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),N=!1,F=1,I=E.font,L=I.family,P=I.size,O=I.color,U=I.weight,X=I.style,$=I.variant,j=I.textcase,Y=I.lineposition,q=I.shadow,Q;o==="title.text"?Q="titleText":o.indexOf("axis")!==-1?Q="axisTitleText":o.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var ae=e._context.edits[Q];function K(Ce,Fe){return Ce===void 0||Fe===void 0?!1:Ce.replace(K8," % ")===Fe.replace(K8," % ")}y===""?p=0:K(y,i)&&(ae||(y=""),p=.2,w=!0),v&&(R===""?F=0:K(R,D)&&(ae||(R=""),F=.2,N=!0)),t._meta?y=Zl.templateString(y,t._meta):n._meta&&(y=Zl.templateString(y,n._meta));var oe=y||R||ae,re;h||(h=Zl.ensureSingle(n._infolayer,"g","g-"+r),re=n._hColorbarMoveTitle);var V=h.selectAll("text."+r).data(oe?[0]:[]);V.enter().append("text"),V.text(y).attr("class",r),V.exit().remove();var ee=null,H=r+"-subtitle",te=R||ae;if(v&&(ee=h.selectAll("text."+H).data(te?[0]:[]),ee.enter().append("text"),ee.text(R).attr("class",H),ee.exit().remove()),!oe)return h;function le(Ce,Fe){Zl.syncOrAsync([ve,Ae],{title:Ce,subtitle:Fe})}function ve(Ce){var Fe=Ce.title,Ee=Ce.subtitle,ze;!f&&re&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||re)&&(ze+=Z8(0,(f.offset||0)-(re||0)))):ze=null,Fe.attr("transform",ze);function Ue(pe){if(pe){var he=lu.select(pe.node().parentNode).select("."+H);if(!he.empty()){var xe=pe.node().getBBox();if(xe.height){var Le=xe.y+xe.height+Zg*P;he.attr("y",Le)}}}}if(Fe.style("opacity",p*Nh.opacity(S)).call(Fh.font,{color:Nh.rgb(S),size:lu.round(k,2),family:m,weight:x,style:M,variant:d,textcase:_,shadow:c,lineposition:g}).attr(s).call(su.convertToTspans,e,Ue),Ee&&!Ee.empty()){var ge=h.select("."+r+"-math-group"),Me=Fe.node().getBBox(),ke=ge.node()?ge.node().getBBox():void 0,me=ke?ke.y+ke.height+Zg*P:Me.y+Me.height+Jg*P,ye=Zl.extendFlat({},s,{y:me});Ee.attr("transform",ze),Ee.style("opacity",F*Nh.opacity(O)).call(Fh.font,{color:Nh.rgb(O),size:lu.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(ye).call(su.convertToTspans,e)}return SW.previousPromises(e)}function Ae(Ce){var Fe=Ce.title,Ee=lu.select(Fe.node().parentNode);if(u&&u.selection&&u.side&&y){Ee.attr("transform",null);var ze=CW[u.side],Ue=u.side==="left"||u.side==="top"?-1:1,ge=kW(u.pad)?u.pad:2,Me=Fh.bBox(Ee.node()),ke={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var ye in me)for(var pe in me[ye]){var he=me[ye][pe];ke[pe]=Math.max(ke[pe],he)}var xe={left:ke.l,top:ke.t,right:n.width-ke.r,bottom:n.height-ke.b},Le=u.maxShift||Ue*(xe[u.side]-Me[u.side]),qe=0;if(Le<0)qe=Le;else{var Ne=u.offsetLeft||0,$e=u.offsetTop||0;Me.left-=Ne,Me.right-=Ne,Me.top-=$e,Me.bottom-=$e,u.selection.each(function(){var Be=Fh.bBox(this);Zl.bBoxIntersect(Me,Be,ge)&&(qe=Math.max(qe,Ue*(Be[u.side]-Me[ze])+ge))}),qe=Math.min(Le,qe),a._titleScoot=Math.abs(qe)}if(qe>0||Le<0){var Ve={left:[-qe,0],right:[qe,0],top:[0,-qe],bottom:[0,qe]}[u.side];Ee.attr("transform",Z8(Ve[0],Ve[1]))}}}V.call(le,ee);function we(Ce,Fe){Ce.text(Fe).on("mouseover.opacity",function(){lu.select(this).transition().duration(J8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){lu.select(this).transition().duration(J8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ae&&(y?V.on(".opacity",null):(we(V,i),w=!0),V.call(su.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?Xg.call("_guiRestyle",e,o,Ce,l):Xg.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(le)}).on("input",function(Ce){this.text(Ce||" ").call(su.positionText,s.x,s.y)}),v)){if(v&&!y){var ce=V.node().getBBox(),Se=ce.y+ce.height+Jg*P;ee.attr("y",Se)}R?ee.on(".opacity",null):(we(ee,D),N=!0),ee.call(su.makeEditable,{gd:e}).on("edit",function(Ce){Xg.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(le)}).on("input",function(Ce){this.text(Ce||" ").call(su.positionText,ee.attr("x"),ee.attr("y"))})}return V.classed("js-placeholder",w),ee&&!ee.empty()&&ee.classed("js-placeholder",N),h}Q8.exports={draw:EW,SUBTITLE_PADDING_EM:Jg,SUBTITLE_PADDING_MATHJAX_EM:Zg}});var Gh=de((Z0e,tM)=>{"use strict";var LW=it(),DW=Ns().utcFormat,xt=ir(),RW=xt.numberFormat,Pi=nt(),Wo=xt.cleanNumber,PW=xt.ms2DateTime,$8=xt.dateTime2ms,Ii=xt.ensureNumber,j8=xt.isArrayOrTypedArray,Xo=nn(),zh=Xo.FP_SAFE,ii=Xo.BADNUM,IW=Xo.LOG_CLIP,FW=Xo.ONEWEEK,qh=Xo.ONEDAY,Oh=Xo.ONEHOUR,eM=Xo.ONEMIN,rM=Xo.ONESEC,Bh=en(),Vh=on(),Uh=Vh.HOUR_PATTERN,Hh=Vh.WEEKDAY_PATTERN;function zf(e){return Math.pow(10,e)}function Kg(e){return e!=null}tM.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 d=r.range[0],_=r.range[1];return .5*(d+_-2*IW*Math.abs(d-_))}else return ii}function i(x,M,d,_){if((_||{}).msUTC&&Pi(x))return+x;var g=$8(x,d||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=$8(new Date(A))+c/10}else return ii;return g}function l(x,M,d){return PW(x,M,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Kg(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 d=new Array(M),_=0;_r.range[1]&&(d=!d);for(var _=d?-1:1,g=_*x,c=0,A=0;AD)c=A+1;else{c=g<(v+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 w(x,r._m,r._b);for(var d=0,_=0;_r._rangebreaks[_].pmax&&(d=_+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Ii,r.l2c=r.type==="log"?zf:Ii,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 zf(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=Ii,r.d2p=r.r2p=function(x){return r.l2p(Wo(x))},r.p2d=r.p2r=m,r.cleanPos=Ii):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Wo(x),M)},r.r2d=r.r2c=function(x){return zf(Wo(x))},r.d2c=r.r2l=Wo,r.c2d=r.l2r=Ii,r.c2r=o,r.l2d=zf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return zf(m(x))},r.r2p=function(x){return r.l2p(Wo(x))},r.p2r=m,r.cleanPos=Ii):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,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,M,d){return l(m(x),M,d)},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=b(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ii,r.r2l=b,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:Ii(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=Ii,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:Ii(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,d,_,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 v=[[0,{}],[0,{}]],D=[];for(d=0;dA[1]&&(_[c?0:1]=d),_[0]===_[1]){var v=r.l2r(M),D=r.l2r(d);if(M!==void 0){var E=v+1;d!==void 0&&(E=Math.min(E,D)),_[c?1:0]=E}if(d!==void 0){var R=D+1;M!==void 0&&(R=Math.max(R,v)),_[c?0:1]=R}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var d=xt.nestedProperty(r,x).get(),_,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),!d||d.length!==2){xt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=xt.cleanDate(d[0],ii,r.calendar),d[1]=xt.cleanDate(d[1],ii,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!xt.isDateTime(d[_],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var v=xt.constrain(r.r2l(d[0]),xt.MIN_MS+1e3,xt.MAX_MS-1e3);d[0]=r.l2r(v-1e3),d[1]=r.l2r(v+1e3);break}}else{if(!Pi(d[_]))if(!(c||A)&&Pi(d[1-_]))d[_]=d[1-_]*(_?10:.1);else{r[x]=g;break}if(d[_]<-zh?d[_]=-zh:d[_]>zh&&(d[_]=zh),d[0]===d[1]){var D=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=D,d[1]+=D}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var d=Bh.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var _=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(_);var c=r.r2l(r[_][0],g),A=r.r2l(r[_][1],g),v=a==="y";if(v?(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*(v?A:c)),D=0;Dg&&(g+=7,c<_&&(c+=7));break;case Uh:A=new Date(x);var R=A.getUTCHours(),N=A.getUTCMinutes(),F=A.getUTCSeconds(),I=A.getUTCMilliseconds();c=R+(N/60+F/3600+I/36e5),_>g&&(g+=24,c<_&&(c+=24));break;case"":c=x;break}if(c>=_&&c=_&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var nM=nt(),Qg=ir(),NW=nn().BADNUM,Yh=Qg.isArrayOrTypedArray,zW=Qg.isDateTime,qW=Qg.cleanNumber,aM=Math.round;oM.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Yh(a)&&!a.length)return"-";if(!o&&VW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function iM(e){return Math.max(1,(e-1)/1e3)}function HW(e,r){for(var t=e.length,n=iM(t),a=0,o=0,i={},l=0;la*2}function VW(e){return Yh(e[0])&&Yh(e[1])}});var uu=de((K0e,dM)=>{"use strict";var GW=it(),fM=nt(),Zo=ir(),Wh=nn().FP_SAFE,YW=Er(),WW=mt(),cM=en(),XW=cM.getFromId,ZW=cM.isLinked;dM.exports={applyAutorangeOptions:vM,getAutoRange:jg,makePadFn:e2,doAutoRange:KW,findExtremes:QW,concatExtremes:n2};function jg(e,r){var t,n,a=[],o=e._fullLayout,i=e2(o,r,0),l=e2(o,r,1),u=n2(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(d)-l(_),A>x?v/A>M&&(g=d,c=_,M=v/A):v/S>M&&(g={val:d.val,nopad:1},c={val:_.val,nopad:1},M=v/S));function D(I,L){return Math.max(I,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),F=h/(1-Math.min(.5,N/S));a=h>0?[0,F]:[F,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-lM(r,d.val,_.val))/(S-i(g)-l(c)),a=[g.val-M*i(g),c.val+M*l(c)];return a=vM(a,r),r.limitRange&&r.limitRange(),y&&a.reverse(),Zo.simpleMap(a,r.l2r||Number)}function lM(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),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=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=v;h--)A(h);return{min:n,max:a,opts:t}}function r2(e,r,t,n){hM(e,r,t,n,$W)}function t2(e,r,t,n){hM(e,r,t,n,jW)}function hM(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 uM(e){return fM(e)&&Math.abs(e)=r}function eX(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 rX(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=eX(t,r),n=rX(n,r),[t,n]}});var Lt=de(($0e,zM)=>{"use strict";var Ra=it(),Jt=nt(),fu=ln(),Of=Er(),Cr=ir(),cu=Cr.strTranslate,Jl=On(),tX=Nf(),Bf=Xr(),da=mt(),nX=Da(),pM=bg(),Q0e=on(),wn=nn(),aX=wn.ONEMAXYEAR,Kh=wn.ONEAVGYEAR,Qh=wn.ONEMINYEAR,iX=wn.ONEMAXQUARTER,l2=wn.ONEAVGQUARTER,$h=wn.ONEMINQUARTER,oX=wn.ONEMAXMONTH,hu=wn.ONEAVGMONTH,jh=wn.ONEMINMONTH,pa=wn.ONEWEEK,Bn=wn.ONEDAY,Jo=Bn/2,Ni=wn.ONEHOUR,Uf=wn.ONEMIN,ev=wn.ONESEC,lX=wn.ONEMILLI,sX=wn.ONEMICROSEC,Kl=wn.MINUS_SIGN,tv=wn.BADNUM,s2={K:"zeroline"},u2={K:"gridline",L:"path"},f2={K:"minor-gridline",L:"path"},kM={K:"tick",L:"path"},gM={K:"tick",L:"text"},yM={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=Cn(),qf=nv.MID_SHIFT,Ql=nv.CAP_SHIFT,Hf=nv.LINE_SPACING,uX=nv.OPPOSITE_SIDE,rv=3,or=zM.exports={};or.setConvert=Gh();var fX=$g(),zi=en(),cX=zi.idSort,hX=zi.isLinked;or.id2name=zi.id2name;or.name2id=zi.name2id;or.cleanId=zi.cleanId;or.list=zi.list;or.listIds=zi.listIds;or.getFromId=zi.getFromId;or.getFromTrace=zi.getFromTrace;var SM=uu();or.getAutoRange=SM.getAutoRange;or.findExtremes=SM.findExtremes;var vX=1e-4;function d2(e){var r=(e[1]-e[0])*vX;return[e[0]-r,e[1]+r]}or.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},Cr.coerce(e,r,s,u)};or.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?(Cr.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))};or.saveRangeInitial=function(e,r){for(var t=or.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=or.tickIncrement(e,"M6","reverse")+Bn*1.5:o.exactMonths>i?e=or.tickIncrement(e,"M1","reverse")+Bn*15.5:e-=Jo;var u=or.tickIncrement(e,t);if(u<=n)return u}return e}or.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Jt(r._tmin),a;if(n){var o=or.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Cr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Cr.simpleMap(a,r.l2r),e._isMinor=!0,or.prepTicks(e,t),n){var l=Jt(r.dtick),u=Jt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?a2(s,f)?s===2*pa&&f===2*Bn&&(e.dtick=pa):s===2*pa&&f===3*Bn?e.dtick=pa:s===pa&&!(r._input.minor||{}).nticks?e.dtick=Bn:bM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":a2(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"?a2(s,f)||(e.dtick=bM(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}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function a2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function bM(e,r){return Math.abs(e/r-1)<.001}or.prepTicks=function(e,r){var t=Cr.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?Cr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Cr.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,or.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<=aX?h=s:h=Kh:t===l2&&f>=$h?s>=$h&&s<=iX?h=s:h=l2:f>=jh?s>=jh&&s<=oX?h=s:h=hu:t===pa&&f>=pa?h=pa:f>=Bn?h=Bn:t===Jo&&f>=Jo?h=Jo:t===Ni&&f>=Ni&&(h=Ni);var p;h>=s&&(h=s,p=!0);var b=a+h;if(r.rangebreaks&&h>0){for(var y=84,w=0,T=0;Tpa&&(h=s)}(h>0||n===0)&&(e[n].periodX=a+h/2)}}or.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||Cr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Cr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Cr.extendFlat({},r,r.minor);if(M?or.prepMinorTicks(d,r,t):or.prepTicks(d,t),d.tickmode==="array"){x?(T=[],y=_M(r,!M)):(m=[],w=_M(r,!M));continue}if(d.tickmode==="sync"){T=[],y=xX(r);continue}var _=d2(s),g=_[0],c=_[1],A=Jt(d.dtick),v=n==="log"&&!(A||d.dtick.charAt(0)==="L"),D=or.tickFirst(d,t);if(x){if(r._tmin=D,D=c:R<=c;R=or.tickIncrement(R,I,f,a)){if(x&&N++,d.rangebreaks&&!f){if(R=p)break}if(T.length>b||R===E)break;E=R;var L={value:R};x?(v&&R!==(R|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),T.push(L)):(L.minor=!0,m.push(L))}}if(!m||m.length<2)u=!1;else{var P=(m[1].value-m[0].value)*(l?-1:1);GX(P,r.tickformat)||(u=!1)}if(!u)k=T;else{var O=T.concat(m);i&&T.length&&(O=O.slice(1)),O=O.sort(function(Se,Ce){return Se.value-Ce.value}).filter(function(Se,Ce,Fe){return Ce===0||Se.value!==Fe[Ce-1].value});var U=O.map(function(Se,Ce){return Se.minor===void 0&&!Se.skipLabel?Ce:null}).filter(function(Se){return Se!==null});U.forEach(function(Se){u.map(function(Ce){var Fe=Se+Ce;Fe>=0&&Fe-1;oe--){if(T[oe].drop){T.splice(oe,1);continue}T[oe].value=o2(T[oe].value,r);var H=r.c2p(T[oe].value);(re?ee>H-V:eep||Eep&&(Fe.periodX=p),Eea&&pKh)r/=Kh,n=a(10),e.dtick="M"+12*Fi(r,n,Zh);else if(o>hu)r/=hu,e.dtick="M"+Fi(r,1,wM);else if(o>Bn){if(e.dtick=Fi(r,Bn,e._hasDayOfWeekBreaks?[1,2,7,14]:bX),!t){var i=or.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Cr.dateTick0(e.calendar,2):e.tick0=Cr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Ni?e.dtick=Fi(r,Ni,wM):o>Uf?e.dtick=Fi(r,Uf,MM):o>ev?e.dtick=Fi(r,ev,MM):(n=a(10),e.dtick=Fi(r,n,Zh))}else if(e.type==="log"){e.tick0=0;var u=Cr.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"+Fi(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))):m2(e)?(e.tick0=0,n=1,e.dtick=Fi(r,n,_X)):(e.tick0=0,n=a(10),e.dtick=Fi(r,n,Zh));if(e.dtick===0&&(e.dtick=1),!Jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function DM(e){var r=e.dtick;if(e._tickexponent=0,!Jt(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>=Bn&&a<=10||r>=Bn*15)e._tickround="d";else if(r>=Uf&&a<=16||r>=Ni)e._tickround="M";else if(r>=ev&&a<=19||r>=Uf)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(Jt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Jt(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&&(vu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!p2(u)||vu(e.exponentformat)&&e.exponentformat==="SI extended"&&!g2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}or.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Jt(r))return Cr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Cr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?LM:EM,u=e+a*.01,s=Cr.roundUp(Cr.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)};or.tickFirst=function(e,r){var t=e.r2l||Number,n=Cr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&m<=e._length?T:null};if(o&&Cr.isArrayOrTypedArray(e.ticktext)){var h=Cr.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=Gf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function MX(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=Vf(Math.pow(10,i),e,a,n);else if(Jt(o)||u==="D"&&(e.minorloglabels==="complete"||Cr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Cr.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],b=Math.abs(p),y=e.exponentformat;y==="power"||vu(y)&&y!=="SI extended"&&p2(p)||vu(y)&&y==="SI extended"&&g2(p)?(r.text=h[0],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Kl)+b+""),r.fontSize*=1.25):(y==="e"||y==="E")&&b>2?r.text=h[0]+y+(p>0?"+":Kl)+b:(r.text=Vf(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,Cr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="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 TX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function AX(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 kX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=Vf(r.x,e,a,n)}function SX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=CX(o);if(i[1]>=100)r.text=Vf(Cr.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=Vf(r.x,e,a,n)}function CX(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 PM=["f","p","n","\u03BC","m","","k","M","G","T"],EX=["q","r","y","z","a",...PM,"P","E","Z","Y","R","Q"],vu=e=>["SI","SI extended","B"].includes(e);function p2(e){return e>14||e<-15}function g2(e){return e>32||e<-30}function LX(e,r){return vu(r)?!!(r==="SI extended"&&g2(e)||r!=="SI extended"&&p2(e)):!1}function Vf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=or.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};DM(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":vu(i)&&(e+=i==="SI extended"?EX[l/3+10]:PM[l/3+5])}return a?Kl+e:e}or.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*hu}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],b=s[1];return(!p&&typeof p!="number"||h(p)<=h(u))&&(!b&&typeof b!="number"||h(b)>=h(u))}function o(u,s){var f=s[0]===null,h=s[1]===null,p=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||p)&&(h||b)}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 Cr.syncOrAsync(a.map(function(u){return function(){if(u){var s=or.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=or.drawOne(e,s,t);return s._shiftPusher&&v2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Cr.simpleMap(s._r,s.r2l),f}}}))};or.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=or.counterLetter(s),p=u._plots[r._mainSubplot],b=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),v2(r,y,n,!0),v2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=VX(r,n));var w=p[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=or.calcTicks(r),x=[r.mirror,m,k].join("_");for(o=0;o0?Ee.bottom-Ce:0,Fe))));var Me=0,ke=0;if(r._shiftPusher&&(Me=Math.max(Fe,Ee.height>0?ce==="l"?Ce-Ee.left:Ee.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(ke=(r._titleStandoff||0)+(r._titleScoot||0),ce==="l"&&(ke+=AM(r))),r._fullDepth=Math.max(Me,ke)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],ye=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?Ce-Ee.top:0,Fe),me.reverse()),Ee.width>0){var pe=Ee.right-(r._offset+r._length);pe>0&&(ze.xr=1,ze.r=pe);var he=r._offset-Ee.left;he>0&&(ze.xl=0,ze.l=he)}}else if(ce==="l"?(r._depth=Math.max(Ee.height>0?Ce-Ee.left:0,Fe),ze[ce]=r._depth-ye):(r._depth=Math.max(Ee.height>0?Ee.right-Ce:0,Fe),ze[ce]=r._depth+ye,me.reverse()),Ee.height>0){var xe=Ee.bottom-(r._offset+r._length);xe>0&&(ze.yb=0,ze.b=xe);var Le=r._offset-Ee.top;Le>0&&(ze.yt=1,ze.t=Le)}ze[h]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(ze[ce]+=AM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[Se]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ue[Se]+=Fe),r.mirror===!0||r.mirror==="ticks"?Ue[h]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ue[h]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}we&&(ge=Of.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(TM(ze,r.automargin),TM(Ue,r.automargin)),fu.autoMargin(e,y2(r),ze),fu.autoMargin(e,FM(r),Ue),fu.autoMargin(e,NM(r),ge)}),Cr.syncOrAsync(ve)}};function TM(e,r){if(e){var t=Object.keys(yM).reduce(function(n,a){return r.indexOf(a)!==-1&&yM[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 DX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Cr.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 cu(a+e._offset+e.l2p(c2(p))+t,o+n)}:function(p){return cu(o+n,a+e._offset+e.l2p(c2(p))+t)}};function c2(e){return e.periodX!==void 0?e.periodX:e.x}function FX(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,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(h+=b*Ql,p+=(e.linewidth||0)/2),(o||i)&&(h+=(e.linewidth||0)/2,p+=rv),u&&f==="top"&&(p-=b*(1-Ql)),(o||a)&&(h=-h),(f==="bottom"||f==="right")&&(p=-p),[s?h:0,u?p:0]}or.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};or.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",b=0,y=0,w=p?e.ticklen:0;if(h?w*=-1:f&&(w=0),p&&(b+=w,t)){var T=Cr.deg2rad(t);b=w*Math.cos(T)+1,y=w*Math.sin(T)}e.showticklabels&&(p||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(h?-1:1);var m={labelStandoff:b,labelShift:y},k,S,x,M,d=0,_=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!h&&_==="bottom"||h&&_==="top",M=A?1:-1,h&&(M*=-1),k=y*M,S=r+b*M,x=A?1:-.2,Math.abs(c)===90&&(h?x+=qf:c===-90&&_==="bottom"?x=Ql:c===90&&_==="top"?x=qf:x=.5,d=qf/2*(c/90)),m.xFn=function(E){return E.dx+k+d*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!Jt(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&&_==="left"||h&&_==="right",M=A?1:-1,h&&(M*=-1),k=b,S=y*M,x=0,!h&&Math.abs(c)===90&&(c===-90&&_==="left"||c===90&&_==="right"?x=Ql:x=.5),h){var v=Jt(c)?+c:0;if(v!==0){var D=Cr.deg2rad(v);d=Math.abs(Math.sin(D))*Ql*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*qf},m.anchorFn=function(E,R){return Jt(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("_")}or.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 Bf.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,[kM]),o.attr("transform",t.transFn)};or.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&&or.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;y--){var w=y?p:b;if(w){var T=w.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 Bf.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,[u2,f2])}};or.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=or.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 cX(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Bf.stroke,r.zerolinecolor||Bf.defaultLine).style("stroke-width",da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),iv(r,[s2])};or.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),U=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[U]?p.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),iv(r,[gM]),h.exit().remove(),t.repositionOnUpdate&&h.each(function(P){Ra.select(this).select("text").call(Jl.positionText,u.xFn(P),u.yFn(P))});function b(P,O){P.each(function(U){var X=Ra.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Jt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Jl.lineCount(X),Q=Hf*U.fontSize,ae=u.heightFn(U,Jt(O)?+O:0,(q-1)*Q);if(ae&&(Y+=cu(0,ae)),$.empty()){var K=X.select("text");K.attr({transform:Y,"text-anchor":j}),K.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var oe=da.bBox($.node()).width,re=oe*{end:-.5,start:.5}[j];$.attr("transform",Y+cu(re,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Cr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),Q=r.side,ae=1/0,K=-1/0;h.each(function(ee){var H=Ra.select(this),te=H.select(".text-math-group");if(te.empty()){var le=da.bBox(H.node()),ve=0;U?(le.right>q||le.leftq||le.top+(r.tickangle?0:ee.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},b(h,f+1?f:s);function y(){return p.length&&Promise.all(p)}var w=null;function T(){if(b(h,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;h.each(function(ze){P=Math.max(P,ze.fontSize);var Ue=r.l2p(ze.x),ge=h2(this),Me=da.bBox(ge.node());X=Math.max(X,Jl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Ue-Me.width/2,right:Ue+Me.width/2+2,width:Me.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,Q=$?r.ticklen:P*1.25*X,ae=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),K=q/ae,oe=r.autotickangles.map(function(ze){return ze*Math.PI/180}),re=oe.find(function(ze){return Math.abs(Math.cos(ze))<=K});re===void 0&&(re=oe.reduce(function(ze,Ue){return Math.abs(Math.cos(ze))F*N&&(D=N,c[g]=A[g]=E[g])}var I=Math.abs(D-v);I-M>0?(I-=M,M*=1+M/I):M=0,r._id.charAt(0)!=="y"&&(M=-M),c[_]=S.p2r(S.r2p(A[_])+d*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=Cr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function NX(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(Bf.stroke,r.dividercolor).style("stroke-width",da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}or.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 AM(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*Hf):t?r*(t+1)*Hf:r}function zX(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*(qf+l*Hf));else{var u=Gf(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=or.getPxPosition(e,r),h,p,b;a==="x"?(p=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=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 w=r._selections[r._id+"tick"];if(y={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var T=da.getTranslate(w.node().parentNode);y.offsetLeft=T.x,y.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(y.pad=0)}return r._titleStandoff=i,tX.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:y,transform:h,attributes:{x:p,y:b,"text-anchor":"middle"}})}or.shouldShowZeroLine=function(e,r,t){var n=Cr.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)||!qX(e,r,t,n)||OX(e,r))};or.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=sX:/%L/.test(r)?e>=lX:/%[SX]/.test(r)?e>=ev:/%M/.test(r)?e>=Uf:/%[HI]/.test(r)?e>=Ni:/%p/.test(r)?e>=Jo:/%[Aadejuwx]/.test(r)?e>=Bn:/%[UVW]/.test(r)?e>=pa:/%[Bbm]/.test(r)?e>=jh:/%[q]/.test(r)?e>=$h:/%[Yy]/.test(r)?e>=Qh:!0}});var OM=de((j0e,qM)=>{"use strict";qM.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 x2=de((ehe,BM)=>{"use strict";var YX=OM();BM.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&&(YX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var HM=de((rhe,UM)=>{var WX={left:0,top:0};UM.exports=XX;function XX(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=ZX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function ZX(e){return e===window||e===document||e===document.body?WX:e.getBoundingClientRect()}});var ov=de((the,VM)=>{"use strict";var JX=Jp();function KX(){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}VM.exports=JX&&KX()});var YM=de((nhe,GM)=>{"use strict";GM.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 ZM=de((ahe,XM)=>{"use strict";var WM=ir(),QX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];XM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=WM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=WM.constrain(Math.floor(t*3),0,2),QX[t][r]}});var KM=de((ihe,JM)=>{"use strict";var $X=Sf(),jX=lh(),eZ=xf().getGraphDiv,rZ=pf(),b2=JM.exports={};b2.wrapped=function(e,r,t){e=eZ(e),e._fullLayout&&jX.clear(e._fullLayout._uid+rZ.HOVERID),b2.raw(e,r,t)};b2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&$X.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=de((ohe,eT)=>{"use strict";var tZ=HM(),_2=Qp(),nZ=ov(),aZ=ir().removeElement,iZ=on(),$l=eT.exports={};$l.align=YM();$l.getCursor=ZM();var $M=KM();$l.unhover=$M.wrapped;$l.unhoverRaw=$M.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,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,nZ?(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 d=h[M];!x[M]&&typeof d!="function"&&(x[M]=d)})),r.clickFn&&r.clickFn(n,x),b||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function jM(){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=jM;function QM(e){return tZ(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ko=de((lhe,rT)=>{"use strict";rT.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 aT=de((she,nT)=>{"use strict";var w2=Ko(),Yf="data-savedcursor",tT="!!";nT.exports=function(r,t){var n=r.attr(Yf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var M2=kn(),oZ=Si();iT.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:oZ.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:M2({editType:"legend"}),grouptitlefont:M2({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:M2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Xf=de(Wf=>{"use strict";Wf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Wf.isVertical=function(r){return r.orientation!=="h"};Wf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Wf.getId=function(r){return r._id||"legend"}});var k2=de((che,oT)=>{"use strict";var lv=Er(),ga=ir(),lZ=yt(),sZ=Sn(),uZ=T2(),fZ=Vs(),A2=Xf();function cZ(e,r,t,n,a){var o=r[e]||{},i=lZ.newContainer(t,e);function l(P,O){return ga.coerce(o,i,uZ,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 U=f._input,X=f;return ga.coerce(U,X,sZ,P,O)},p=t.font||{},b=ga.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),y=0,w=!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(d===!1&&(t[e]=void 0),!(d===!1&&!o.uirevision)&&(l("uirevision",t.uirevision),d!==!1)){l("borderwidth");var _=l("orientation"),g=l("yref"),c=l("xref"),A=_==="h",v=g==="paper",D=c==="paper",E,R,N,F="left";A?(E=0,lv.getComponentMethod("rangeslider","isVisible")(r.xaxis)?v?(R=1.1,N="bottom"):(R=1,N="top"):v?(R=-.1,N="top"):(R=0,N="bottom")):(R=1,N="auto",D?E=1.02:(E=1,F="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:v?-2:0,max:v?3:1,dflt:R}},"y"),l("traceorder",T),A2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",F),l("yanchor",N),l("maxheight"),l("valign"),ga.noneOrAll(o,i,["x","y"]);var I=l("title.text");if(I){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)}}}oT.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Qo=Er(),S2=ir(),hZ=S2.pushUnique,vZ=Xf(),lT=!0;C2.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"&&lT&&t.data&&t._context.showTips&&(S2.notifier(S2._(t,"Double-click on legend to isolate one trace"),"long"),lT=!1);var u=l==="togglegroup",s=o.hiddenlabels?o.hiddenlabels.slice():[],f=t._fullData,h=(o.shapes||[]).filter(function(we){return we.showlegend}),p=f.concat(h),b=i.trace;b._isShape&&(b=b._fullInput);var y=b.legendgroup,w,T,m,k,S,x,M={},d=[],_=[],g=[];function c(we,ce){var Se=d.indexOf(we),Ce=M.visible;return Ce||(Ce=M.visible=[]),d.indexOf(we)===-1&&(d.push(we),Se=d.length-1),Ce[Se]=ce,Se}var A=(o.shapes||[]).map(function(we){return we._input}),v=!1;function D(we,ce){A[we].visible=ce,v=!0}function E(we,ce){if(!(i.groupTitle&&!u)){var Se=we._fullInput||we,Ce=Se._isShape,Fe=Se.index;Fe===void 0&&(Fe=Se._index);var Ee=Se.visible===!1?!1:ce;Ce?D(Fe,Ee):c(Fe,Ee)}}var R=b.legend,N=b._fullInput,F=N&&N._isShape;if(!F&&Qo.traceIs(b,"pie-like")){var I=i.label,L=s.indexOf(I);if(a==="toggle")L===-1?s.push(I):s.splice(L,1);else if(a==="toggleothers"){var P=L!==-1,O=[];for(w=0;w{"use strict";sT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var cT=de((dhe,fT)=>{"use strict";var uT=Er(),D2=Xf();fT.exports=function(r,t,n){var a=t._inHover,o=D2.isGrouped(t),i=D2.isReversed(t),l={},u=[],s=!1,f={},h=0,p=0,b,y;function w(P,O,U){if(t.visible!==!1&&!(n&&P!==t._id))if(O===""||!D2.isGrouped(t)){var X="~~i"+h;u.push(X),l[X]=[U],h++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[U]):l[O].push(U)}for(b=0;bD&&(v=D)}c[b][0]._groupMinRank=v,c[b][0]._preGroupSort=b}var E=function(P,O){return P[0]._groupMinRank-O[0]._groupMinRank||P[0]._preGroupSort-O[0]._preGroupSort},R=function(P,O){return P.trace.legendrank-O.trace.legendrank||P._preSort-O._preSort};for(c.forEach(function(P,O){P[0]._preGroupSort=O}),c.sort(E),b=0;b{"use strict";var sv=ir();function hT(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=hT((r*100).toPrecision(3));return sv.numSeparate(n,t)+"%"};jl.formatPieValue=function(r,t){var n=hT(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 dZ=mt(),pZ=Xr();vT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?dZ.pointStyle(r,n,a,t):pZ.fill(r,t.color)}});var mT=de((yhe,yT)=>{"use strict";var pT=Xr(),gT=R2().castOption,gZ=dT();yT.exports=function(r,t,n,a){var o=n.marker.line,i=gT(o.color,t.pts)||pT.defaultLine,l=gT(o.width,t.pts)||0;r.call(gZ,t,n,a).style("stroke-width",l).call(pT.stroke,i)}});var N2=de((mhe,TT)=>{"use strict";var Un=it(),P2=Er(),Ln=ir(),xT=Ln.strTranslate,ya=mt(),Pa=Xr(),I2=Ei().extractOpts,uv=la(),yZ=mT(),mZ=R2().castOption,xZ=L2(),bT=12,_T=5,es=2,bZ=10,du=5;TT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+xZ.itemGap*2)/2,u=xT(l,0),s=function(_,g,c,A){var v;if(_+1)v=_;else if(g&&g.width>0)v=g.width;else return 0;return o?A:Math.min(v,c)};r.each(function(_){var g=Un.select(this),c=Ln.ensureSingle(g,"g","layers");c.style("opacity",_[0].trace.opacity);var A=n.indentation,v=n.valign,D=_[0].lineHeight,E=_[0].height;if(v==="middle"&&A===0||!D||!E)c.attr("transform",null);else{var R={top:1,bottom:-1}[v],N=R*(.5*(D-E+3))||0,F=n.indentation;c.attr("transform",xT(F,N))}var I=c.selectAll("g.legendfill").data([_]);I.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(y).each(b).each(T).each(x).each(S).each(f).each(h).each(m).each(k);function f(_){var g=wT(_),c=g.showFill,A=g.showLine,v=g.showGradientLine,D=g.showGradientFill,E=g.anyFill,R=g.anyLine,N=_[0],F=N.trace,I,L,P=I2(F),O=P.colorscale,U=P.reversescale,X=function(K){if(K.size())if(c)ya.fillGroupStyle(K,t,!0);else{var oe="legendfill-"+F.uid;ya.gradient(K,t,oe,F2(U),O,"fill")}},$=function(K){if(K.size()){var oe="legendline-"+F.uid;ya.lineGroupStyle(K),ya.gradient(K,t,oe,F2(U),O,"stroke")}},j=uv.hasMarkers(F)||!E?"M5,0":R?"M5,-2":"M5,-3",Y=Un.select(this),q=Y.select(".legendfill").selectAll("path").data(c||D?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||v){var Q=s(void 0,F.line,bZ,_T);L=Ln.minExtend(F,{line:{width:Q}}),I=[Ln.minExtend(N,{trace:L})]}var ae=Y.select(".legendlines").selectAll("path").data(A||v?[I]:[]);ae.enter().append("path").classed("js-line",!0),ae.exit().remove(),ae.attr("d",j+(v?"l"+i+",0.0001":"h"+i)).call(A?ya.lineGroupStyle:$)}function h(_){var g=wT(_),c=g.anyFill,A=g.anyLine,v=g.showLine,D=g.showMarker,E=_[0],R=E.trace,N=!D&&!A&&!c&&uv.hasText(R),F,I;function L(q,Q,ae,K){var oe=Ln.nestedProperty(R,q).get(),re=Ln.isArrayOrTypedArray(oe)&&Q?Q(oe):oe;if(o&&re&&K!==void 0&&(re=K),ae){if(reae[1])return ae[1]}return re}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(D||N||v){var O={},U={};if(D){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",Ln.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",Ln.mean,[0,5],es),O.mld=R._isShape?"solid":L("marker.line.dash",P),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",Ln.mean,[2,16],bT);O.ms=X,U.marker.size=X}v&&(U.line={width:L("line.width",P,[0,10],_T)}),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)),F=[Ln.minExtend(E,O)],I=Ln.minExtend(R,U),I.selectedpoints=null,I.texttemplate=null}var $=Un.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(D?F:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ya.pointStyle,I,t),D&&(F[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?F:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ya.textPointStyle,I,t)}function p(_){var g=_[0].trace,c=g.type==="waterfall";if(_[0]._distinct&&c){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var v=[];g.visible&&c&&(v=_[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=Un.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(v);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=Un.select(this),N=g[E[0]].marker,F=s(void 0,N.line,du,es);R.attr("d",E[1]).style("stroke-width",F+"px").call(Pa.fill,N.color),F&&R.call(Pa.stroke,N.line.color)})}function b(_){w(_,this)}function y(_){w(_,this,"funnel")}function w(_,g,c){var A=_[0].trace,v=A.marker||{},D=v.line||{},E=v.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:P2.traceIs(A,"bar"),N=Un.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[_]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(F){var I=Un.select(this),L=F[0],P=s(L.mlw,v.line,du,es);I.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=I2(v),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ya.tryColorscale(v,"")(X)}var $=O||L.mc||v.color,j=v.pattern,Y=ya.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var Q=Y(j.bgcolor,0,null),ae=Y(j.fgcolor,0,null),K=j.fgopacity,oe=MT(j.size,8,10),re=MT(j.solidity,.5,1),V="legend-"+A.uid;I.call(ya.pattern,"legend",t,V,q,oe,re,O,j.fillmode,Q,ae,K)}else I.call(Pa.fill,$);P&&Pa.stroke(I,L.mlc||D.color)})}function T(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&P2.traceIs(g,"box-violin")?[_]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Un.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var v=Ln.minExtend(g,{marker:{size:o?bT:Ln.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ya.pointStyle,v,t)}else{var D=s(void 0,g.line,du,es);A.style("stroke-width",D+"px").call(Pa.fill,g.fillcolor),D&&Pa.stroke(A,g.line.color)}})}function m(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[_,_]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,v){return v?"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,v){var D=Un.select(this),E=g[v?"increasing":"decreasing"],R=s(void 0,E.line,du,es);D.style("stroke-width",R+"px").call(Pa.fill,E.fillcolor),R&&Pa.stroke(D,E.line.color)})}function k(_){var g=_[0].trace,c=Un.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[_,_]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,v){return v?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,v){var D=Un.select(this),E=g[v?"increasing":"decreasing"],R=s(void 0,E.line,du,es);D.style("fill","none").call(ya.dashLine,E.line.dash,R),R&&Pa.stroke(D,E.line.color)})}function S(_){M(_,this,"pie")}function x(_){M(_,this,"funnelarea")}function M(_,g,c){var A=_[0],v=A.trace,D=c?v.visible&&v.type===c:P2.traceIs(v,c),E=Un.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[_]:[]);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=v.marker||{},N=s(mZ(R.line.width,A.pts),R.line,du,es),F="pieLike",I=Ln.minExtend(v,{marker:{line:{width:N}}},F),L=Ln.minExtend(A,{trace:I},F);yZ(E,L,I,t)}}function d(_){var g=_[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 v=Un.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);v.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(D,E){var R=Un.select(this),N=I2(g),F=N.colorscale,I=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ya.gradient(X,t,$,F2(I,c==="radial"),F,"fill")}},P;if(F){if(!c){var U=F.length;P=E===0?F[I?U-1:0][1]:E===1?F[I?0:U-1][1]:F[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=Ln.isArrayOrTypedArray(O)?O[E]||O[0]:O}R.attr("d",D[0]),P?R.call(Pa.fill,P):R.call(L)})}};function F2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function wT(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 MT(e,r,t){return e&&Ln.isArrayOrTypedArray(e)?r:e>t?t:e}});var B2=de((xhe,PT)=>{"use strict";var Xn=it(),Gt=ir(),q2=ln(),rs=Er(),hv=Sf(),z2=oi(),Yt=mt(),Zf=Xr(),ts=On(),AT=E2().handleItemClick,kT=E2().handleTitleClick,Kt=L2(),O2=Cn(),DT=O2.LINE_SPACING,gu=O2.FROM_TL,ST=O2.FROM_BR,CT=cT(),_Z=N2(),yu=Xf(),pu=1,wZ=/^legend[0-9]*$/;PT.exports=function(r,t){if(t)ET(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=Xn.select(this),f=s.attr("class"),h=f.split(" ")[0];h.match(wZ)&&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(),q2.autoMargin(e,a);var w=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(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});m.call(Zf.stroke,t.bordercolor).call(Zf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Gt.ensureSingle(w,"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,pu),!l&&(t.titleclick||t.titledoubleclick)&&kZ(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=Gt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(Kt.scrollBarEnterAttrs).call(Zf.fill,Kt.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var _=d.selectAll("g.traces").data(Gt.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(g){let c=g[0],A=c.trace;if(c.groupTitle){let v=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===v&&(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(){Xn.select(this).call(TZ,e,t)}).call(_Z,e,t).each(function(g){l||g[0].groupTitle&&t.groupclick==="toggleitem"||Xn.select(this).call(AZ,e,a)}),Gt.syncOrAsync([q2.previousPromises,function(){return EZ(e,d,_,t,k)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",v=t.yref==="paper";if(S.text){let te=(n.shapes||[]).filter(function(ve){return ve.showlegend}),le=e._fullData.concat(te).some(function(ve){let Ae=ve.legend||"legend";var we=Array.isArray(Ae)?Ae.includes(a):Ae===a;return we&&ve.visible===!0});x.style("opacity",le?1:.5)}if(!l){var D,E;A?D=g.l+g.w*t.x-gu[vv(t)]*t._width:D=n.width*t.x-gu[vv(t)]*t._width,v?E=g.t+g.h*(1-t.y)-gu[dv(t)]*t._effHeight:E=n.height*(1-t.y)-gu[dv(t)]*t._effHeight;var R=LZ(e,a,D,E);if(R)return;if(n.margin.autoexpand){var N=D,F=E;D=A?Gt.constrain(D,0,n.width-t._width):N,E=v?Gt.constrain(E,0,n.height-t._effHeight):F,D!==N&&Gt.log("Constrain "+a+".x to make legend fit inside graph"),E!==F&&Gt.log("Constrain "+a+".y to make legend fit inside graph")}Yt.setTranslate(w,D,E)}if(M.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var I=t._effHeight;l&&(I=t._height),m.attr({width:t._width-c,height:I-c,x:c/2,y:c/2}),Yt.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*c,height:I-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(Kt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*Kt.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);m.attr({width:t._width-2*c+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),T.select("rect").attr({width:t._width-2*c+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Yt.setClipUrl(k,o,e),oe(X,L,U),w.on("wheel",function(){X=Gt.constrain(t._scrollY+Xn.event.deltaY/O*P,0,O),oe(X,L,U),X!==0&&X!==O&&Xn.event.preventDefault()});var $,j,Y,q=function(te,le,ve){var Ae=(ve-le)/U+te;return Gt.constrain(Ae,0,O)},Q=function(te,le,ve){var Ae=(le-ve)/U+te;return Gt.constrain(Ae,0,O)},ae=Xn.behavior.drag().on("dragstart",function(){var te=Xn.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=Xn.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),oe(X,L,U))});M.call(ae);var K=Xn.behavior.drag().on("dragstart",function(){var te=Xn.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=Xn.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=Q(Y,$,j),oe(X,L,U))});k.call(K)}function oe(te,le,ve){t._scrollY=e._fullLayout[a]._scrollY=te,Yt.setTranslate(k,0,-te),Yt.setRect(M,t._width,Kt.scrollBarMargin+te*ve,Kt.scrollBarWidth,le),T.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var re,V,ee,H;w.classed("cursor-move",!0),z2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==M.node()){var le=Yt.getTranslate(w);ee=le.x,H=le.y}},moveFn:function(te,le){if(ee!==void 0&&H!==void 0){var ve=ee+te,Ae=H+le;Yt.setTranslate(w,ve,Ae),re=z2.align(ve,t._width,g.l,g.l+g.w,t.xanchor),V=z2.align(Ae+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(re!==void 0&&V!==void 0){var te={};te[a+".x"]=re,te[a+".y"]=V,rs.call("_guiRelayout",e,te)}},clickFn:function(te,le){var ve=i.selectAll("g.traces").filter(function(){var Ae=this.getBoundingClientRect();return le.clientX>=Ae.left&&le.clientX<=Ae.right&&le.clientY>=Ae.top&&le.clientY<=Ae.bottom});ve.size()>0&&RT(e,t,ve,te,le)}})}}],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 RT(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&&AT(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&&AT(t,e,r,u)}}function TZ(e,r,t){var n=yu.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?LT(s,u):s);var p=t.indentation+t.itemwidth+Kt.itemGap*2;ts.positionText(h,p,0),l?h.call(ts.makeEditable,{gd:r,text:s}).call(cv,e,r,t).on("edit",function(b){this.text(LT(b,u)).call(cv,e,r,t);var y=a.trace._fullInput||{},w={};return w.name=b,y._isShape?rs.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):rs.call("_guiRestyle",r,w,o.index)}):cv(h,e,r,t)}function LT(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 AZ(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(Zf.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)),RT(r,l,e,o,Xn.event)}}))}function kZ(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(Zf.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:Xn.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&&kT(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&&kT(r,t,t.titledoubleclick))}))}function cv(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),ts.convertToTspans(e,t,function(){SZ(r,t,n,a)})}function SZ(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=yu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===pu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var h=f.size*DT,p,b;if(l){var y=Yt.bBox(l);p=y.height,b=y.width,n===pu?Yt.setTranslate(i,s,s+p*.75):Yt.setTranslate(i,0,p*.25)}else{var w="."+u+(n===pu?"title":"")+"text",T=e.select(w),m=ts.lineCount(T),k=T.node();if(p=h*m,b=k?Yt.bBox(k).width:0,n===pu)t.title.side==="left"&&(b+=Kt.itemGap*2),ts.positionText(T,s+Kt.titlePad,s+h);else{var S=Kt.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=Kt.itemGap,b-=t.indentation+t.itemwidth),ts.positionText(T,S,-h*((m-1)/2-.3))}}n===pu?(t._titleWidth=b,t._titleHeight=p):(a.lineHeight=h,a.height=Math.max(p,16)+3,a.width=b)}function CZ(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 EZ(e,r,t,n,a){var o=e._fullLayout,i=yu.getId(n);n||(n=o[i]);var l=o._size,u=yu.isVertical(n),s=yu.isGrouped(n),f=n.entrywidthmode==="fraction",h=n.borderwidth,p=2*h,b=Kt.itemGap,y=n.indentation+n.itemwidth+b*2,w=2*(h+b),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:d}=n,{maxheight:_}=n,g=m||k||M!=="v"||d!=="paper";_||(_=g?.5:1);let c=g?o.height:l.h;n._maxHeight=Math.max(_>1?_:_*c,30);var A=0;n._width=0,n._height=0;var v=CZ(n);if(u)t.each(function(te){var le=te[0].height;Yt.setTranslate(this,h+v[0],h+v[1]+n._height+le/2+b),n._height+=le,n._width=Math.max(n._width,te[0].width)}),A=y+n._width,n._width+=b+y+p,n._height+=w,s&&(r.each(function(te,le){Yt.setTranslate(this,0,le*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,F=o.width/2;n._maxWidth=Math.max(E?N&&D==="left"?l.l+l.w:F:R?N&&D==="right"?l.r+l.w:F:l.w,2*y);var I=0,L=0;t.each(function(te){var le=fv(te,n,y);I=Math.max(I,le),L+=le}),A=null;var P=0;if(s){var O=0,U=0,X=0;r.each(function(){var te=0,le=0;Xn.select(this).selectAll("g.traces").each(function(Ae){var we=fv(Ae,n,y),ce=Ae[0].height;Yt.setTranslate(this,v[0],v[1]+h+b+ce/2+le),le+=ce,te=Math.max(te,we),x[Ae[0].trace.legendgroup]=te});var ve=te+b;U>0&&ve+h+U>n._maxWidth?(P=Math.max(P,U),U=0,X+=O+S,O=le):O=Math.max(O,le),Yt.setTranslate(this,U,X),U+=ve}),n._width=Math.max(P,U)+h,n._height=X+O+w}else{var $=t.size(),j=L+p+($-1)*b=n._maxWidth&&(P=Math.max(P,ae),q=0,Q+=Y,n._height+=Y,Y=0),Yt.setTranslate(this,v[0]+h+q,v[1]+h+Q+le/2+b),ae=q+ve+b,q+=Ae,Y=Math.max(Y,le)}),j?(n._width=q+p,n._height=Y+w):(n._width=Math.max(P,ae)+p,n._height+=Y+w)}}n._width=Math.ceil(Math.max(n._width+v[0],n._titleWidth+2*(h+Kt.titlePad))),n._height=Math.ceil(Math.max(n._height+v[1],n._titleHeight+2*(h+Kt.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var K=e._context.edits,oe=K.legendText||K.legendPosition;t.each(function(te){var le=Xn.select(this).select("."+i+"toggle"),ve=te[0].height,Ae=te[0].trace.legendgroup,we=fv(te,n,y);s&&Ae!==""&&(we=x[Ae]);var ce=oe?y:A||we;!u&&!f&&(ce+=b/2),Yt.setRect(le,0,-ve/2,ce,ve)});var re=a.select("."+i+"titletext");re.node()&&MZ(re,n,h);var V=a.select("."+i+"titletoggle");if(V.size()&&re.node()){var ee=re.attr("x")||0,H=Kt.titlePad;Yt.setRect(V,ee-H,h,n._titleWidth+2*H,n._titleHeight+2*H)}}function LZ(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 q2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*gu[i],r:o._width*ST[i],b:o._effHeight*ST[l],t:o._effHeight*gu[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 G2=de(V2=>{"use strict";var ns=it(),uo=nt(),IT=Sa(),It=ir(),DZ=It.pushUnique,U2=It.strTranslate,RZ=It.strRotate,PZ=Sf(),Ia=On(),IZ=aT(),qi=mt(),un=Xr(),pv=oi(),Oi=Lt(),FZ=on().zindexSeparator,xu=Er(),li=so(),as=pf(),NZ=k2(),zZ=B2(),HT=as.YANGLE,H2=Math.PI*HT/180,qZ=1/Math.sin(H2),OZ=Math.cos(H2),BZ=Math.sin(H2),St=as.HOVERARROWSIZE,Qr=as.HOVERTEXTPAD,FT={box:!0,ohlc:!0,violin:!0,candlestick:!0},UZ={scatter:!0,scattergl:!0,splom:!0};function NT(e,r){return e.distance-r.distance}V2.hover=function(r,t,n,a){r=It.getGraphDiv(r);var o=t.target;It.throttle(r._fullLayout._uid+as.HOVERID,as.HOVERMINTIME,function(){HZ(r,t,n,a,o)})};V2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=XT(a),i=ZT(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 d=Math.min(m,k),_=Math.max(m,k),g=Math.min(S,x),c=Math.max(S,x),A=T.trace;if(xu.traceIs(A,"gl3d")){var v=a._fullLayout[A.scene]._scene.container,D=v.offsetLeft,E=v.offsetTop;d+=D,_+=D,g+=E,c+=E}M.bbox={x0:d+i,x1:_+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||un.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=GT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:ns.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,h=5,p=0,b=0;f.sort(function(T,m){return T.y0-m.y0}).each(function(T,m){var k=T.y0-T.by/2;k-h_[0]._length||H<0||H>g[0]._length)return pv.unhoverRaw(e,r)}if(r.pointerX=ee+_[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?F=li.flat(o,r.xval):F=li.p2c(_,ee),"yval"in r?I=li.flat(o,r.yval):I=li.p2c(g,H),!uo(F[0])||!uo(I[0]))return It.warn("Fx.hover failed",r,e),pv.unhoverRaw(e,r)}var ve=1/0;function Ae(sr,Pr){for(P=0;Pae&&(R.splice(0,ae),ve=R[0].distance),h&&E!==0&&R.length===0){Q.distance=E,Q.index=!1;var Rr=U._module.hoverPoints(Q,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Rr&&(Rr=Rr.filter(function(bt){return bt.spikeDistance<=E})),Rr&&Rr.length){var jr,vn=Rr.filter(function(bt){return bt.xa.showspikes&&bt.xa.spikesnap!=="hovered data"});if(vn.length){var Et=vn[0];uo(Et.x0)&&uo(Et.y0)&&(jr=ce(Et),(!K.vLinePoint||K.vLinePoint.spikeDistance>jr.spikeDistance)&&(K.vLinePoint=jr))}var Tn=Rr.filter(function(bt){return bt.ya.showspikes&&bt.ya.spikesnap!=="hovered data"});if(Tn.length){var Ot=Tn[0];uo(Ot.x0)&&uo(Ot.y0)&&(jr=ce(Ot),(!K.hLinePoint||K.hLinePoint.spikeDistance>jr.spikeDistance)&&(K.hLinePoint=jr))}}}}}Ae();function we(sr,Pr,$r){for(var Fr=null,Gr=1/0,pt,Rr=0;Rrsr.trace.index===pe.trace.index):R=[pe];var he=R.length,xe=UT("x",pe,l),Le=UT("y",pe,l);Ae(xe,Le);var qe=[],Ne={},$e=0,Ve=function(sr){var Pr=FT[sr.trace.type]?VT(sr):sr.trace.index;if(!Ne[Pr])$e++,Ne[Pr]=$e,qe.push(sr);else{var $r=Ne[Pr]-1,Fr=qe[$r];$r>0&&Math.abs(sr.distance)he-1;Be--)Ve(R[Be]);R=qe,Ee()}var Ye=e._hoverdata,Te=[],Re=XT(e),Qe=ZT(e);for(let sr of R){var Ke=li.makeEventData(sr,sr.trace,sr.cd);if(sr.hovertemplate!==!1){var ar=!1;sr.cd[sr.index]&&sr.cd[sr.index].ht&&(ar=sr.cd[sr.index].ht),sr.hovertemplate=ar||sr.trace.hovertemplate||!1}if(sr.xa&&sr.ya){var ue=sr.x0+sr.xa._offset,J=sr.x1+sr.xa._offset,ne=sr.y0+sr.ya._offset,De=sr.y1+sr.ya._offset,He=Math.min(ue,J),er=Math.max(ue,J),nr=Math.min(ne,De),fr=Math.max(ne,De);Ke.bbox={x0:He+Qe,x1:er+Qe,y0:nr+Re,y1:fr+Re}}sr.eventData=[Ke],Te.push(Ke)}e._hoverdata=Te;var br=p==="y"&&(N.length>1||R.length>1)||p==="closest"&&oe&&R.length>1,Sr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Mr=GT(R,{gd:e,hovermode:p,rotateLabels:br,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Ar=Mr.hoverLabels;if(li.isUnifiedHover(p)||(GZ(Ar,br,l,Mr.commonLabelBoundingBox),WT(Ar,br,l._invScaleX,l._invScaleY)),a&&a.tagName){var ft=xu.getComponentMethod("annotations","hasClickToShow")(e,Te);IZ(ns.select(a),ft?"pointer":"")}!a||n||!XZ(e,r,Ye)||(Ye&&e.emit("plotly_unhover",{event:r,points:Ye}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:_,yaxes:g,xvals:F,yvals:I}))}function VT(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 VZ=/([\s\S]*)<\/extra>/;function GT(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,b=r.fontStyle||n.font.style,y=r.fontVariant||n.font.variant,w=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),d=M+"Label",_=k[d];if(_===void 0&&S.type==="multicategory")for(var g=0;gn.width-Re&&(Qe=n.width-Re),pe.attr("d","M"+(Be-Qe)+",0L"+(Be-Qe+St)+","+Te+St+"H"+Re+"v"+Te+(Qr*2+Ve.height)+"H"+-Re+"V"+Te+St+"H"+(Be-Qe-St)+"Z"),Be=Qe,P.minX=Be-Re,P.maxX=Be+Re,S.side==="top"?(P.minY=Ye-(Qr*2+Ve.height),P.maxY=Ye-Qr):(P.minY=Ye+Qr,P.maxY=Ye+(Qr*2+Ve.height))}else{var Ke,ar,ue;x.side==="right"?(Ke="start",ar=1,ue="",Be=S._offset+S._length):(Ke="end",ar=-1,ue="-",Be=S._offset),Ye=x._offset+(k.y0+k.y1)/2,he.attr("text-anchor",Ke),pe.attr("d","M0,0L"+ue+St+","+St+"V"+(Qr+Ve.height/2)+"h"+ue+(Qr*2+Ve.width)+"V-"+(Qr+Ve.height/2)+"H"+ue+St+"V-"+St+"Z"),P.minY=Ye-(Qr+Ve.height/2),P.maxY=Ye+(Qr+Ve.height/2),x.side==="right"?(P.minX=Be+St,P.maxX=Be+St+(Qr*2+Ve.width)):(P.minX=Be-St-(Qr*2+Ve.width),P.maxX=Be-St);var J=Ve.height/2,ne=A-Ve.top-J,De="clip"+n._uid+"commonlabel"+x._id,He;if(Bepe.hoverinfo!=="none");if(ye.length===0)return[];var O=n.hoverlabel,U=O.font,X=ye[0],$=((a==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,j=$?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:$}):_,Y={showlegend:!0,legend:{title:{text:j,font:U},font:U,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:U};NZ(Y,q,t._fullData);var Q=q.legend;Q.entries=[];for(var ae=0;ae=0?Me=Ee:ze+le=0?Me=ze:Ue+le=0?ke=Ce:Fe+ve=0?ke=Fe:ge+ve=0,(ye.idealAlign==="top"||!fr)&&br?(ue-=ne/2,ye.anchor="end"):fr?(ue+=ne/2,ye.anchor="start"):ye.anchor="middle",ye.crossPos=ue;else{if(ye.pos=ue,fr=ar+J/2+nr<=v,br=ar-J/2-nr>=0,(ye.idealAlign==="left"||!fr)&&br)ar-=J/2,ye.anchor="end";else if(fr)ar+=J/2,ye.anchor="start";else{ye.anchor="middle";var Sr=nr/2,Mr=ar+Sr-v,Ar=ar-Sr;Mr>0&&(ar-=Mr),Ar<0&&(ar+=-Ar)}ye.crossPos=ar}Ye.attr("text-anchor",ye.anchor),Re&&Te.attr("text-anchor",ye.anchor),pe.attr("transform",U2(ar,ue)+(o?RZ(HT):""))}),{hoverLabels:me,commonLabelBoundingBox:P}}function zT(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=BT(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 b=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(b[u+"other"]=b[u+"Val"],b[u+"otherLabel"]=b[u+"Label"]),l=It.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:b,locale:n._d3locale,template:f}),l=l.replace(VZ,(y,w)=>(i=BT(w,e.nameLength),""))}return[l,i]}function GZ(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,b=n.minY,y=n.maxY,w=function(F){return F*t._invScaleX},T=function(F){return F*t._invScaleY};e.each(function(F){var I=F[a],L=F[o],P=I._id.charAt(0)==="x",O=I.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=YT(F,r),j=F.anchor,Y=j==="end"?-1:1,q,Q;if(j==="middle")q=F.crossPos+(P?T($.y-F.by/2):w(F.bx/2+F.tx2width/2)),Q=q+(P?T(F.by):w(F.bx));else if(P)q=F.crossPos+T(St+$.y)-T(F.by/2-St),Q=q+T(F.by);else{var ae=w(Y*St+$.x),K=ae+w(Y*F.bx);q=F.crossPos+Math.min(ae,K),Q=F.crossPos+Math.max(ae,K)}P?b!==void 0&&y!==void 0&&Math.min(Q,y)-Math.max(q,b)>1&&(L.side==="left"?(U=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"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:F,traceIndex:F.trace.index,dp:0,pos:F.pos,posref:F.posref,size:F.by*(P?qZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(F,I){return F[0].posref-I[0].posref||l*(I[0].traceIndex-F[0].traceIndex)});var m,k,S,x,M,d,_;function g(F){var I=F[0],L=F[F.length-1];if(k=I.pmin-I.pos-I.dp+I.size,S=L.pos+L.dp+L.size-I.pmax,k>.01){for(M=F.length-1;M>=0;M--)F[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=F.length-1;M>=0;M--)F[M].dp-=S;m=!1}if(m){var P=0;for(x=0;xI.pmax&&P++;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos>I.pmax-1&&(d.del=!0,P--);for(x=0;x=0;M--)F[M].dp-=S;for(x=F.length-1;x>=0&&!(P<=0);x--)d=F[x],d.pos+d.dp+d.size>I.pmax&&(d.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),_=0,M=c.length-1;M>=0;M--)_+=c[M].dp;for(S=_/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 YT(e,r){var t=0,n=e.offset;return r&&(n*=-BZ,t=e.offset*OZ),{x:t,y:n}}function YZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(St+Qr),n=t+r*(e.txwidth+Qr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Qr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function WT(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=YZ(i),p=YT(i,r),b=p.x,y=p.y,w=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;w?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+b)+","+o(St+y)+"v"+o(i.by/2-St)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*St+b)+"V"+o(y-St)+"Z":m="M"+a(f*St+b)+","+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=b+h.textShiftX,S=y+i.ty0-i.by/2+Qr,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+Qr:-i.bx-Qr):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-Qr:i.bx+Qr)),u.call(Ia.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Ia.positionText,a(h.text2ShiftX+h.alignShift*Qr+b),o(y+i.ty0-i.by/2+Qr)),l.select("rect").call(qi.setRect,a(h.text2ShiftX+(h.alignShift-1)*i.tx2width/2+b),o(y-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function WZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||uo(p)&&p===0}var l=Array.isArray(t)?function(p,b){var y=It.castOption(a,t,p);return i(y)?y:It.extractOption({},n,"",b)}:function(p,b){return It.extractOption(o,n,p,b)};function u(p,b,y){var w=l(b,y);i(w)&&(e[p]=w)}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 qT(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=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,b,y;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(b=i.pointerX,y=i.pointerY):(b=s._offset+p.x,y=f._offset+p.y);var T=IT.readability(p.color,h)<1.5?un.contrast(h):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Oi.getPxPosition(e,f),M,d;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,d=b),m.indexOf("across")!==-1){var _=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),g=Math.max(g,f.position)),M=o.l+_*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:M,x2:d,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:d,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,v;s=c&&c.xa,f=c&&c.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,v=i.pointerY):(A=s._offset+c.x,v=f._offset+c.y);var E=IT.readability(c.color,h)<1.5?un.contrast(h):c.color,R=s.spikemode,N=s.spikethickness,F=s.spikecolor||E,I=Oi.getPxPosition(e,s),L,P;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=I,P=v),R.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*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:F,"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:I-(s.side!=="top"?N:-N),r:N,fill:F}).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],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 OT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function BT(e,r){return Ia.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function ZZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,ZT=e=>e.offsetLeft+e.clientLeft;function mu(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],b=s[1];return{x:f,y:h,width:p-f,height:b-h,top:Math.min(h,b),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,b)}}});var gv=de((_he,JT)=>{"use strict";var JZ=ir(),KZ=Xr(),QZ=so().isUnifiedHover;JT.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&&QZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=KZ.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),JZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var QT=de((whe,KT)=>{"use strict";var $Z=ir(),jZ=gv(),eJ=Ll();KT.exports=function(r,t){function n(a,o){return $Z.coerce(r,t,eJ,a,o)}jZ(r,t,n)}});var e9=de((Mhe,jT)=>{"use strict";var $T=ir(),rJ=H0(),tJ=gv();jT.exports=function(r,t,n,a){function o(l,u){return $T.coerce(r,t,rJ,l,u)}var i=$T.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),tJ(r,t,o,i)}});var Y2=de((The,r9)=>{"use strict";var nJ=ir(),aJ=Ll();r9.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:nJ.coerce(r,t,aJ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var a9=de((Ahe,n9)=>{"use strict";var t9=ir(),iJ=Ll(),oJ=Y2(),lJ=gv();n9.exports=function(r,t){function n(f,h){return t9.coerce(r,t,iJ,f,h)}var a=oJ(r,t);a&&(n("hoverdistance"),n("spikedistance"));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"),lJ(r,t,n),t9.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var l9=de((khe,o9)=>{"use strict";var W2=ir(),i9=Er();o9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return W2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var uJ=Er(),fJ=G2().hover;s9.exports=function(r,t,n){var a=uJ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&fJ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var fo=de((Che,h9)=>{"use strict";var cJ=it(),yv=ir(),hJ=oi(),Jf=so(),f9=Ll(),c9=G2();h9.exports={moduleType:"component",name:"fx",constants:pf(),schema:{layout:f9},attributes:H0(),layoutAttributes:f9,supplyLayoutGlobalDefaults:QT(),supplyDefaults:e9(),supplyLayoutDefaults:a9(),calc:l9(),getDistanceFunction:Jf.getDistanceFunction,getClosest:Jf.getClosest,inbox:Jf.inbox,quadrature:Jf.quadrature,appendArrayPointValue:Jf.appendArrayPointValue,castHoverOption:dJ,castHoverinfo:pJ,hover:c9.hover,unhover:hJ.unhover,loneHover:c9.loneHover,loneUnhover:vJ,click:u9()};function vJ(e){var r=yv.isD3Selection(e)?e:cJ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function dJ(e,r,t){return yv.castOption(e,r,"hoverlabel."+t)}function pJ(e,r,t){function n(a){return yv.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return yv.castOption(e,t,"hoverinfo",n)}});var bu=de(co=>{"use strict";co.selectMode=function(e){return e==="lasso"||e==="select"};co.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};co.openMode=function(e){return e==="drawline"||e==="drawopenpath"};co.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};co.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};co.selectingOrDrawing=function(e){return co.freeMode(e)||co.rectMode(e)}});var mv=de((Lhe,v9)=>{"use strict";v9.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=de((Dhe,d9)=>{"use strict";d9.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=de((Rhe,p9)=>{"use strict";var bv=32;p9.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=de((Phe,y9)=>{"use strict";var gJ=ir().strTranslate;function g9(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 yJ(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 mJ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return g9(e,t[r])}}function xJ(e){return gJ(e.xaxis._offset,e.yaxis._offset)}y9.exports={p2r:g9,r2p:yJ,axValue:mJ,getTransform:xJ}});var $o=de(ho=>{"use strict";var bJ=Ig(),b9=_v(),_u=b9.CIRCLE_SIDES,X2=b9.SQRT2,_9=wv(),m9=_9.p2r,x9=_9.r2p,_J=[0,3,4,5,6,1,2],wJ=[0,3,4,1,2];ho.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var w9=en(),S9=bu(),MJ=S9.drawMode,TJ=S9.openMode,wu=_v(),M9=wu.i000,T9=wu.i090,A9=wu.i180,k9=wu.i270,AJ=wu.cos45,kJ=wu.sin45,C9=wv(),Tv=C9.p2r,jo=C9.r2p,SJ=Uo(),CJ=SJ.clearOutline,Av=$o(),EJ=Av.readPaths,LJ=Av.writePaths,DJ=Av.ellipseOver,RJ=Av.fixDatesForPaths;function PJ(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(!MJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var IJ=bu(),FJ=IJ.selectMode,NJ=Uo(),zJ=NJ.clearOutline,Z2=$o(),qJ=Z2.readPaths,OJ=Z2.writePaths,BJ=Z2.fixDatesForPaths;D9.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(!FJ(h)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b{"use strict";R9.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=de(Mn=>{"use strict";var Bi=Qf(),P9=ir(),el=Lt();Mn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Mn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Mn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Mn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Mn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Bi.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(Bi.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Mn.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=Mn.shapePositionToRange(r);i=function(u){var s=vo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Mn.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};Mn.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=Mn.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};Mn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Mn.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}};Mn.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}};Mn.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,b,y,w,T,m;function k(A,v,D,E){var R;if(A)if(v==="domain")E?R=function(N){return A._offset+A._length*(1-N)}:R=function(N){return A._offset+A._length*N};else{let N=Mn.shapePositionToRange(A);R=function(F){return A._offset+A.r2p(N(F,!0))},D==="path"&&A.type==="date"&&(R=Mn.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,v){return k(i[v],el.getRefType(A),t,!1)})):(i=el.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(b=[],l=r.yref.map(function(A){return el.getFromId(e,A)}),b=r.yref.map(function(A,v){return k(l[v],el.getRefType(A),t,!0)})):(l=el.getFromId(e,r.yref),b=k(l,a,t,!0)),t==="path")return UJ(r,p,b);if(n==="array")u=vo(i[0],r.x0shift),s=vo(i[1],r.x1shift),y=p[0](r.x0)+u,w=p[1](r.x1)+s;else if(u=vo(i,r.x0shift),s=vo(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);y=A+r.x0+u,w=A+r.x1+s}else y=p(r.x0)+u,w=p(r.x1)+s;if(a==="array")f=vo(l[0],r.y0shift),h=vo(l[1],r.y1shift),T=b[0](r.y0)+f,m=b[1](r.y1)+h;else if(f=vo(l,r.y0shift),h=vo(l,r.y1shift),r.ysizemode==="pixel"){let A=b(r.yanchor);T=A-r.y0+f,m=A-r.y1+h}else T=b(r.y0)+f,m=b(r.y1)+h;if(t==="line")return"M"+y+","+T+"L"+w+","+m;if(t==="rect")return"M"+y+","+T+"H"+w+"V"+m+"H"+y+"Z";var S=(y+w)/2,x=(T+m)/2,M=Math.abs(S-y),d=Math.abs(x-T),_="A"+M+","+d,g=S+M+","+x,c=S+","+(x-d);return"M"+g+_+" 0 1,1 "+c+_+" 0 0,1 "+g+"Z"};function UJ(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(Bi.segmentRE,function(p){var b=0,y=p.charAt(0),w=Bi.paramIsX[y],T=Bi.paramIsY[y],m=Bi.numParams[y];let k=w.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[h]:t;var d=p.slice(1).replace(Bi.paramRE,function(_){return w[b]?a==="pixel"?_=x(i)+Number(_):_=x(_):T[b]&&(o==="pixel"?_=M(l)-Number(_):_=M(_)),b++,b>m&&(_="X"),_});return b>m&&(d=d.replace(/[\s,]*X.*/,""),P9.log("Ignoring extra params in segment "+p)),k&&f++,S&&h++,y+d})}function vo(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 Q2=de((Ohe,N9)=>{"use strict";var HJ=ir(),Ui=Lt(),I9=On(),F9=mt(),VJ=$o().readPaths,K2=rl(),GJ=K2.getPathString,$f=Q0(),YJ=Cn().FROM_TL;N9.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=Ui.getFromId(r,n.xref),u=Ui.getFromId(r,n.yref);let U=Array.isArray(n.xref),X=Array.isArray(n.yref);for(var s in $f){var f=typeof $f[s]=="function",h=!U||$f.simpleXVariables.includes(s),p=!X||$f.simpleYVariables.includes(s);if(f&&h&&p){var b=$f[s](n,l,u);b!==void 0&&(i[s]=b)}}}o=HJ.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},w=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,d;if(n.path){var _=GJ(r,n),g=VJ(_,r);S=1/0,M=1/0,x=-1/0,d=-1/0;for(var c=0;c=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function XJ(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),b=Math.cos(h),y=a.label.xanchor,w=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 ZJ=ir(),JJ=ZJ.strTranslate,z9=oi(),B9=bu(),KJ=B9.drawMode,U9=B9.selectMode,H9=Er(),q9=Xr(),Sv=_v(),QJ=Sv.i000,$J=Sv.i090,jJ=Sv.i180,eK=Sv.i270,rK=Uo(),V9=rK.clearOutlineControllers,j2=$o(),jf=j2.pointsOnRectangle,$2=j2.pointsOnEllipse,tK=j2.writePaths,nK=kv().newShapes,aK=kv().createShapeObj,iK=J2(),oK=Q2();G9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),($2(r[0])||jf(r[0])||n.hasText)&&l({redrawing:!0})}function l(I){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=nK(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=iK(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&H9.call((I||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,h=KJ(f),p=U9(f);(h||p)&&(o._fullLayout._outlining=!0),V9(o),t.attr("d",tK(r));var b,y,w,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=lK([],r);var k=s.append("g").attr("class","outline-controllers");A(k),F()}if(h&&n.hasText){var S=s.select(".label-temp"),x=aK(t,n,n.dragmode);oK(o,"label-temp",x,S)}function M(I){w=+I.srcElement.getAttribute("data-i"),T=+I.srcElement.getAttribute("data-j"),b[w][T].moveFn=d}function d(I,L){if(r.length){var P=m[w][T][1],O=m[w][T][2],U=r[w],X=U.length;if(jf(U)){var $=I,j=L;if(n.isActiveSelection){var Y=O9(U,T);Y[1]===U[T][1]?j=0:$=0}for(var q=0;q1&&!(I.length===2&&I[1][0]==="Z")&&(T===0&&(I[0][0]="M"),r[w]=I,i(),l())}}function c(I,L){if(I===2){w=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[w];!jf(P)&&!$2(P)&&g()}}function A(I){b=[];for(var L=0;L{"use strict";var uK=it(),J9=Er(),ry=ir(),is=Lt(),fK=$o().readPaths,cK=Cv(),Lv=Q2(),K9=Uo().clearOutlineControllers,ey=Xr(),Dv=mt(),hK=yt().arrayEditor,Y9=oi(),W9=Ko(),os=Qf(),sa=rl(),ty=sa.getPathString;j9.exports={draw:ny,drawOne:Q9,eraseActiveShape:gK,drawLabel:Lv};function ny(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;ais.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 dK(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,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,D=uK.select(r.node().parentNode),E=is.getFromId(e,t.xref),R=is.getRefType(t.xref),N=is.getFromId(e,t.yref),F=is.getRefType(t.yref),I=t.x0shift,L=t.x1shift,P=t.y0shift,O=t.y1shift,U=function(we,ce){var Se=sa.getDataToPixel(e,E,ce,!1,R);return Se(we)},X=function(we,ce){var Se=sa.getDataToPixel(e,N,ce,!0,F);return Se(we)},$=sa.getPixelToData(e,E,!1,R),j=sa.getPixelToData(e,N,!0,F),Y=ae(),q={element:Y.node(),gd:e,prepFn:re,doneFn:V,clickFn:ee},Q;Y9.init(q),Y.node().onmousemove=oe;function ae(){return f?K():r}function K(){var we=10,ce=Math.max(t.line.width,we),Se=a.append("g").attr("data-index",n).attr("drag-helper",!0);Se.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ce,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},Fe=Math.max(ce/2,we);return Se.append("circle").attr({"data-line-point":"start-point",cx:u?U(t.xanchor)+t.x0:U(t.x0,I),cy:s?X(t.yanchor)-t.y0:X(t.y0,P),r:Fe}).style(Ce).classed("cursor-grab",!0),Se.append("circle").attr({"data-line-point":"end-point",cx:u?U(t.xanchor)+t.x1:U(t.x1,L),cy:s?X(t.yanchor)-t.y1:X(t.y1,O),r:Fe}).style(Ce).classed("cursor-grab",!0),Se}function oe(we){if(Ev(e)){Q=null;return}if(f)we.target.tagName==="path"?Q="move":Q=we.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ce=q.element.getBoundingClientRect(),Se=ce.right-ce.left,Ce=ce.bottom-ce.top,Fe=we.clientX-ce.left,Ee=we.clientY-ce.top,ze=!h&&Se>i&&Ce>l&&!we.shiftKey?Y9.getCursor(Fe/Se,1-Ee/Ce):"move";W9(r,ze),Q=ze.split("-")[0]}}function re(we){Ev(e)||(u&&(m=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?v=t.path:(b=u?t.x0:U(t.x0),y=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),T=s?t.y1:X(t.y1)),bT?(S=y,_="y0",x=T,g="y1"):(S=T,_="y1",x=y,g="y0"),oe(we),le(a,t),Ae(r,t,e),q.moveFn=Q==="move"?H:te,q.altKey=we.altKey)}function V(){Ev(e)||(W9(r),ve(a),$9(r,e,t),J9.call("_guiRelayout",e,o.getUpdateObj()))}function ee(){Ev(e)||ve(a)}function H(we,ce){if(t.type==="path"){var Se=function(Ee){return Ee},Ce=Se,Fe=Se;u?p("xanchor",t.xanchor=$(m+we)):(Ce=function(ze){return $(U(ze)+we)},E&&E.type==="date"&&(Ce=sa.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ce)):(Fe=function(ze){return j(X(ze)+ce)},N&&N.type==="date"&&(Fe=sa.encodeDate(Fe))),p("path",t.path=X9(v,Ce,Fe))}else u?p("xanchor",t.xanchor=$(m+we)):(p("x0",t.x0=$(b+we)),p("x1",t.x1=$(w+we))),s?p("yanchor",t.yanchor=j(k+ce)):(p("y0",t.y0=j(y+ce)),p("y1",t.y1=j(T+ce)));r.attr("d",ty(e,t)),le(a,t),Lv(e,n,t,D)}function te(we,ce){if(h){var Se=function(Ne){return Ne},Ce=Se,Fe=Se;u?p("xanchor",t.xanchor=$(m+we)):(Ce=function($e){return $(U($e)+we)},E&&E.type==="date"&&(Ce=sa.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ce)):(Fe=function($e){return j(X($e)+ce)},N&&N.type==="date"&&(Fe=sa.encodeDate(Fe))),p("path",t.path=X9(v,Ce,Fe))}else if(f){if(Q==="resize-over-start-point"){var Ee=b+we,ze=s?y-ce:y+ce;p("x0",t.x0=u?Ee:$(Ee)),p("y0",t.y0=s?ze:j(ze))}else if(Q==="resize-over-end-point"){var Ue=w+we,ge=s?T-ce:T+ce;p("x1",t.x1=u?Ue:$(Ue)),p("y1",t.y1=s?ge:j(ge))}}else{var Me=function(Ne){return Q.indexOf(Ne)!==-1},ke=Me("n"),me=Me("s"),ye=Me("w"),pe=Me("e"),he=ke?S+ce:S,xe=me?x+ce:x,Le=ye?M+we:M,qe=pe?d+we:d;s&&(ke&&(he=S-ce),me&&(xe=x-ce)),(!s&&xe-he>l||s&&he-xe>l)&&(p(_,t[_]=s?he:j(he)),p(g,t[g]=s?xe:j(xe))),qe-Le>i&&(p(c,t[c]=u?Le:$(Le)),p(A,t[A]=u?qe:$(qe)))}r.attr("d",ty(e,t)),le(a,t),Lv(e,n,t,D)}function le(we,ce){(u||s)&&Se();function Se(){var Ce=ce.type!=="path",Fe=we.selectAll(".visual-cue").data([0]),Ee=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var ze=U(u?ce.xanchor:ry.midRange(Ce?[ce.x0,ce.x1]:sa.extractPathCoords(ce.path,os.paramIsX))),Ue=X(s?ce.yanchor:ry.midRange(Ce?[ce.y0,ce.y1]:sa.extractPathCoords(ce.path,os.paramIsY)));if(ze=sa.roundPositionForSharpStrokeRendering(ze,Ee),Ue=sa.roundPositionForSharpStrokeRendering(Ue,Ee),u&&s){var ge="M"+(ze-1-Ee)+","+(Ue-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",ge)}else if(u){var Me="M"+(ze-1-Ee)+","+(Ue-9-Ee)+"v18 h2 v-18 Z";Fe.attr("d",Me)}else{var ke="M"+(ze-9-Ee)+","+(Ue-1-Ee)+"h18 v2 h-18 Z";Fe.attr("d",ke)}}}function ve(we){we.selectAll(".visual-cue").remove()}function Ae(we,ce,Se){var Ce=ce.xref,Fe=ce.yref,Ee=is.getFromId(Se,Ce),ze=is.getFromId(Se,Fe),Ue="";Ce!=="paper"&&!Ee.autorange&&(Ue+=Ce),Fe!=="paper"&&!ze.autorange&&(Ue+=Fe),Dv.setClipUrl(we,Ue?"clip"+Se._fullLayout._uid+Ue:null,Se)}}function X9(e,r,t){return e.replace(os.segmentRE,function(n){var a=0,o=n.charAt(0),i=os.paramIsX[o],l=os.paramIsY[o],u=os.numParams[o],s=n.slice(1).replace(os.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function pK(e,r){if(Rv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Z9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Z9,ny(e)}}}function Z9(e){if(Rv(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(K9(e),delete e._fullLayout._activeShapeIndex,ny(e))}}function gK(e){if(Rv(e)){K9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Fa=Er(),eA=ln(),rA=en(),rt=xv(),yK=Pv().eraseActiveShape,Iv=ir(),Jr=Iv._,tt=sA.exports={};tt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Jr(e,"Download plot as a PNG"):Jr(e,"Download plot")},icon:rt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Iv.notifier(Jr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Fa.call("downloadImage",e,t).then(function(n){Iv.notifier(Jr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Iv.notifier(Jr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};tt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Jr(e,"Edit in Chart Studio")},icon:rt.disk,click:function(e){eA.sendDataToCloud(e)}};tt.editInChartStudio={name:"editInChartStudio",title:function(e){return Jr(e,"Edit in Chart Studio")},icon:rt.pencil,click:function(e){eA.sendDataToCloud(e)}};tt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:rt.zoombox,click:Hn};tt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"dragmode",val:"pan",icon:rt.pan,click:Hn};tt.select2d={name:"select2d",_cat:"select",title:function(e){return Jr(e,"Box Select")},attr:"dragmode",val:"select",icon:rt.selectbox,click:Hn};tt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Jr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:rt.lasso,click:Hn};tt.drawclosedpath={name:"drawclosedpath",title:function(e){return Jr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:rt.drawclosedpath,click:Hn};tt.drawopenpath={name:"drawopenpath",title:function(e){return Jr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:rt.drawopenpath,click:Hn};tt.drawline={name:"drawline",title:function(e){return Jr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:rt.drawline,click:Hn};tt.drawrect={name:"drawrect",title:function(e){return Jr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:rt.drawrect,click:Hn};tt.drawcircle={name:"drawcircle",title:function(e){return Jr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:rt.drawcircle,click:Hn};tt.eraseshape={name:"eraseshape",title:function(e){return Jr(e,"Erase active shape")},icon:rt.eraseshape,click:yK};tt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:Hn};tt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:Hn};tt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Jr(e,"Autoscale")},attr:"zoom",val:"auto",icon:rt.autoscale,click:Hn};tt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Jr(e,"Reset axes")},attr:"zoom",val:"reset",icon:rt.home,click:Hn};tt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Jr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:Hn};tt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Jr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:rt.tooltip_compare,gravity:"ne",click:Hn};function Hn(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=rA.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var h=a==="in"?.5:2,p=(1+h)/2,b=(1-h)/2,y,w;for(f=0;f{"use strict";var uA=oy(),bK=Object.keys(uA),fA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],cA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(fA),Tu=[],_K=function(e){if(cA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Tu.indexOf(r)===-1&&Tu.push(r),Tu.indexOf(t)===-1&&Tu.push(t)}};bK.forEach(function(e){_K(uA[e])});Tu.sort();hA.exports={DRAW_MODES:fA,backButtons:cA,foreButtons:Tu}});var sy=de((Yhe,vA)=>{"use strict";var Ghe=ly();vA.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 pA=de((Whe,dA)=>{"use strict";var wK=ir(),ec=Xr(),MK=yt(),TK=sy();dA.exports=function(r,t){var n=r.modebar||{},a=MK.newContainer(t,"modebar");function o(l,u){return wK.coerce(n,a,TK,l,u)}o("orientation"),o("bgcolor",ec.addOpacity(t.paper_bgcolor,.5));var i=ec.contrast(ec.rgb(t.modebar.bgcolor));o("color",ec.addOpacity(i,.3)),o("activecolor",ec.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var xA=de((Xhe,mA)=>{"use strict";var uy=it(),AK=nt(),Nv=ir(),gA=xv(),kK=L0().version,SK=new DOMParser;function yA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Hi=yA.prototype;Hi.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(),Nv.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};Hi.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)})};Hi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Hi.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&&uy.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||gA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Hi.createIcon=function(e){var r=AK(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=SK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Hi.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=uy.select(n),u=function(h,p){var b=r.modebar,y=h.querySelector(".icon path");y&&(p||h.matches(":hover")?y.style.fill=b.activecolor:y.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Nv.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};Hi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var LK=en(),bA=la(),fy=Er(),DK=so().isUnifiedHover,RK=xA(),zv=oy(),PK=ly().DRAW_MODES,IK=ir().extendDeep;_A.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=BK(o):!n.displayModeBar&&n.watermark?i=[]:i=FK(r),a?a.update(r,i):t._modeBar=RK(r,i)};function FK(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,U=P._cat||P.name;if(O===L||U===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"],v=["resetViews"]):h?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],v=["resetGeo"]):f?(A=["hoverClosest3d"],v=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],v=["resetViewMapbox"]):T?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],v=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],v=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(qK(t)||M)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],v[0]!=="resetViews"&&(v=["resetScale2d"])),f?D=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||y?D=["zoom2d","pan2d"]:w||T||h?D=["pan2d"]:m&&(D=["zoom2d"]),zK(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=[],F=0;F{"use strict";MA.exports={moduleType:"component",name:"modebar",layoutAttributes:sy(),supplyLayoutDefaults:pA(),manage:wA()}});var hy=de((Khe,TA)=>{"use strict";var UK=Cn().FROM_BL;TA.exports=function(r,t,n){n===void 0&&(n=UK[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 tc=de(rc=>{"use strict";var ls=ir(),vy=uu(),si=en().id2name,HK=Da(),AA=hy(),VK=Gh(),GK=nn().ALMOST_EQUAL,YK=Cn().FROM_BL;rc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,h,p,b,y;for(l=0;lo?t.slice(o):n.slice(a))+i}function XK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iGK*y&&!k)){for(o=0;oD&&OA&&(A=O);var X=(A-c)/(2*v);h/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d<_?[c,A]:[A,c]}SA(u,h)}}}};rc.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var Ov=it(),Vn=Er(),ma=ln(),Na=ir(),gy=On(),yy=mv(),nc=Xr(),Au=mt(),EA=Nf(),IA=cy(),ac=Lt(),po=Cn(),FA=tc(),ZK=FA.enforce,JK=FA.clean,LA=uu().doAutoRange,NA="start",KK="middle",zA="end",QK=on().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([ma.doAutoMargin,jK],e)};function $K(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function jK(e){var r=e._fullLayout,t=r._size,n=t.p,a=ac.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(Au.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),IA.manage(e),!r._has("cartesian"))return ma.previousPromises(e);function h(re,V,ee){var H=re._lw/2;if(re._id.charAt(0)==="x"){if(V){if(ee==="top")return V._offset-n-H}else return t.t+t.h*(1-(re.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(ee==="right")return V._offset+V._length+n+H}else return t.l+t.w*(re.position||0)+H%1;return V._offset-n-H}for(o=0;o0){nQ(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:PA(r.yanchor)}).call(gy.positionText,i,o);var f=(r.text.match(gy.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=Ov.select(e).selectAll(".gtitle-subtitle");if(p.node()){var b=l.node().getBBox(),y=b.y+b.height,w=y+EA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:PA(r.yanchor)}).call(gy.positionText,i,w)}}}};function eQ(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=rQ(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function nQ(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"&&eQ(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 aQ(e,r){var t=e.title,n=e._size,a=0;switch(r===NA?a=t.pad.l:r===zA&&(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 iQ(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 PA(e){return e==="top"?po.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":po.MID_SHIFT+"em"}function oQ(e){var r=e.title,t=KK;return Na.isRightAnchor(r)?t=zA:Na.isLeftAnchor(r)&&(t=NA),t}function lQ(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}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var sQ=$o().readPaths,uQ=Cv(),qA=Uo().clearOutlineControllers,my=Xr(),OA=mt(),fQ=yt().arrayEditor,BA=rl(),cQ=BA.getPathString;HA.exports={draw:Uv,drawOne:UA,activateLastSelection:dQ};function Uv(e){var r=e._fullLayout;qA(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(my.stroke,h).call(my.fill,f).call(OA.dashLine,T?"solid":b,T?4+p:p);if(hQ(m,e,n),y){var k=fQ(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=sQ(l,e);uQ(x,m,S)}else m.style("pointer-events",T?"all":"none");w[T]=m}var M=w[0],d=w[1];d.node().addEventListener("click",function(){return vQ(e,M)})}}function hQ(e,r,t){var n=t.xref+t.yref;OA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function vQ(e,r){if(Hv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){xy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=xy,Uv(e)}}}function dQ(e){if(Hv(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=xy,Uv(e)}}function xy(e){if(Hv(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(qA(e),delete e._fullLayout._activeSelectionIndex,Uv(e))}}});var GA=de((eve,VA)=>{function pQ(){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}VA.exports=pQ});var WA=de((rve,YA)=>{function gQ(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}YA.exports=gQ});var ZA=de((tve,XA)=>{var yQ={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}};XA.exports=yQ});var KA=de((nve,JA)=>{var ic=ZA();function mQ(e,r,t){function n(y,w){return{id:t?t.segmentId():-1,start:y,end:w,myFill:{above:null,below:null},otherFill:null}}function a(y,w,T){return{id:t?t.segmentId():-1,start:y,end:w,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=ic.create();function i(y,w,T,m,k,S){var x=r.pointsCompare(w,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,w){o.insertBefore(y,function(T){var m=i(y.isStart,y.pt,w,T.isStart,T.pt,T.other.pt);return m<0})}function u(y,w){var T=ic.node({isStart:!0,pt:y.start,seg:y,primary:w,other:null,status:null});return l(T,y.end),T}function s(y,w,T){var m=ic.node({isStart:!1,pt:w.end,seg:w,primary:T,other:y,status:null});y.other=m,l(m,y.pt)}function f(y,w){var T=u(y,w);return s(T,y,w),T}function h(y,w){t&&t.segmentChop(y.seg,w),y.other.remove(),y.seg.end=w,y.other.pt=w,l(y.other,y.pt)}function p(y,w){var T=a(w,y.seg.end,y.seg);return h(y,w),f(T,y.primary)}function b(y,w){var T=ic.create();function m(N,F){var I=N.seg.start,L=N.seg.end,P=F.seg.start,O=F.seg.end;return r.pointsCollinear(I,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(I,P,O)?1:-1}function k(N){return T.findTransition(function(F){var I=m(N,F.ev);return I>0})}function S(N,F){var I=N.seg,L=F.seg,P=I.start,O=I.end,U=L.start,X=L.end;t&&t.checkIntersection(I,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return F;var q=!j&&r.pointBetween(P,U,X),Q=!Y&&r.pointBetween(O,U,X);if(j)return Q?p(F,O):p(N,X),F;q&&(Y||(Q?p(F,O):p(N,X)),p(F,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(F,P):$.alongA===0?p(F,$.pt):$.alongA===1&&p(F,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(_){var F=S(M,_);if(F)return F}return g?S(M,g):!1};var R=N;t&&t.segmentNew(M.seg,M.primary);var d=k(M),_=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(M.seg,_?_.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 v;g?M.primary===g.primary?v=g.seg.otherFill.above:v=g.seg.myFill.above:v=M.primary?w:y,M.seg.otherFill={above:v,below:v}}t&&t.status(M.seg,_?_.seg:!1,g?g.seg:!1),M.other.status=d.insert(ic.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 w,T=y[y.length-1],m=0;m{function xQ(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,F){return f.index=R,f.matches_head=N,f.matches_pt1=F,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function oc(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 bQ={union:function(e,r){return oc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return oc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return oc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return oc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return oc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};jA.exports=bQ});var tk=de((ove,rk)=>{var _Q={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 wQ=GA(),MQ=WA(),nk=KA(),TQ=$A(),lc=ek(),ak=tk(),za=!1,sc=MQ(),ua;ua={buildLog:function(e){return e===!0?za=wQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return sc.epsilon(e)},segments:function(e){var r=nk(!0,sc,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=nk(!1,sc,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:lc.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:lc.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:lc.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:lc.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:lc.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:TQ(e.segments,sc,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ak.toPolygon(ua,e)},polygonToGeoJSON:function(e){return ak.fromPolygon(ua,sc,e)},union:function(e,r){return uc(e,r,ua.selectUnion)},intersect:function(e,r){return uc(e,r,ua.selectIntersect)},difference:function(e,r){return uc(e,r,ua.selectDifference)},differenceRev:function(e,r){return uc(e,r,ua.selectDifferenceRev)},xor:function(e,r){return uc(e,r,ua.selectXor)}};function uc(e,r,t){var n=ua.segments(e),a=ua.segments(r),o=ua.combine(n,a),i=t(o);return ua.polygon(i)}typeof window=="object"&&(window.PolyBool=ua);ik.exports=ua});var sk=de((sve,lk)=>{lk.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<(b-h)*(i-p)/(y-p)+h;w&&(l=!l)}return l}});var wy=de((uve,uk)=>{"use strict";var _y=Z0().dot,Vv=nn().BADNUM,Gv=uk.exports={};Gv.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===Vv||mi||w&&s(y))}function h(y,w){var T=y[0],m=y[1];if(T===Vv||Ta||m===Vv||mi)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,d,_,g,c,A;for(d=1;dMath.max(_,S)||m>Math.max(g,x)))if(ml||Math.abs(_y(h,s))>a)return!0;return!1};Gv.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 ck=de((fve,fk)=>{"use strict";fk.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Pk=de((cve,Rk)=>{"use strict";var hk=ok(),AQ=sk(),hc=Er(),kQ=mt().dashStyle,fc=Xr(),SQ=fo(),CQ=so().makeEventData,yc=bu(),EQ=yc.freeMode,LQ=yc.rectMode,vc=yc.drawMode,ky=yc.openMode,Sy=yc.selectMode,vk=rl(),dk=Qf(),xk=Cv(),bk=Uo().clearOutline,_k=$o(),My=_k.handleEllipse,DQ=_k.readPaths,RQ=kv().newShapes,PQ=J2(),IQ=by().activateLastSelection,Wv=ir(),FQ=Wv.sorterAsc,wk=wy(),cc=lh(),qa=en().getFromId,NQ=mv(),zQ=Bv().redrawReglTraces,Xv=ck(),Vi=Xv.MINSELECT,qQ=wk.filter,Cy=wk.tester,Ey=wv(),pk=Ey.p2r,OQ=Ey.axValue,BQ=Ey.getTransform;function Ly(e){return e.subplot!==void 0}function UQ(e,r,t,n,a){var o=!Ly(n),i=EQ(a),l=LQ(a),u=ky(a),s=vc(a),f=Sy(a),h=a==="drawline",p=a==="drawcircle",b=h||p,y=n.gd,w=y._fullLayout,T=f&&w.newselection.mode==="immediate"&&o,m=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=BQ(S),M=r-k.left,d=t-k.top;w._calcInverseTransform(y);var _=Wv.apply3DTransform(w._invTransform)(M,d);M=_[0],d=_[1];var g=w._invScaleX,c=w._invScaleY,A=M,v=d,D="M"+M+","+d,E=n.xaxes[0],R=n.yaxes[0],N=E._length,F=R._length,I=e.altKey&&!(vc(a)&&u),L,P,O,U,X,$,j;Tk(e,y,n),i&&(L=qQ([[M,d]],Xv.BENDPX));var Y=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Q=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ae=q.line.color||(o?fc.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":kQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(fc.stroke,ae).call(fc.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",D+"Z");var K=m.append("path").attr("class","zoombox-corners").style({fill:fc.background,stroke:fc.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var oe=m.select(".label-temp");oe.empty()&&(oe=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var re=w._uid+Xv.SELECTID,V=[],ee=Zv(y,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,le=R._id;Ek(y,te,le,ee);for(var ve=(y.layout||{}).selections||[],Ae=[],we=!1,ce=0;ce=0){y._fullLayout._deactivateShape(y);return}if(!s){var ve=w.clickmode;cc.done(re).then(function(){if(cc.clear(re),te===2){for(Y.remove(),X=0;X-1&&Mk(le,y,n.xaxes,n.yaxes,n.subplot,n,Y),ve==="event"&&gc(y,void 0);SQ.click(y,le,S.id)}).catch(Wv.error)}},n.doneFn=function(){K.remove(),cc.done(re).then(function(){cc.clear(re),!T&&U&&n.selectionDefs&&(U.subtract=I,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&dc(n,T),n.doneFnCompleted&&n.doneFnCompleted(V),f&&gc(y,j)}).catch(Wv.error)}}function Mk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,h=[],p,b,y,w,T,m,k,S,x,M;if(WQ(l)){Tk(e,r,o),p=Zv(r,t,n,a);var d=XQ(l,p),_=d.pointNumbers.length>0;if(_?ZQ(p,d):JQ(p)&&(k=yk(d))){for(i&&i.remove(),M=0;M=0}function YQ(e){return e._fullLayout._activeSelectionIndex>=0}function dc(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;GQ(a)&&a._fullLayout._deactivateShape(a),YQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=vc(t),u=Sy(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=RQ(s,e)),f&&hc.call("_guiRelayout",a,{shapes:f});var h;u&&!Ly(e)&&(h=PQ(s,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,hc.call("_guiRelayout",a,{selections:h}).then(function(){r&&IQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function gk(e){return e._id}function Zv(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(gk),i=t.map(gk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function ZQ(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 pc(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=mk(e,!0);if(te.length){var le=te[0].xref,ve=te[0].yref;if(le&&ve){var Ae=Lk(te),we=Dk([qa(e,le,"x"),qa(e,ve,"y")]);we(V,Ae)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&gc(e,V),p._reselect=!1}if(!i&&p._deselect){var ce=p._deselect;l=ce.xref,u=ce.yref,$Q(l,u,f)||Ek(e,l,u,n),H&&(V.points.length?gc(e,V):Py(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function QQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Ik.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 mc=de((vve,Fk)=>{"use strict";Fk.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 ku=de((pve,qk)=>{"use strict";var Nk=Iy(),zk=kn(),Jv=on(),n$=yt().templatedArray,dve=mc();qk.exports=n$("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:zk({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:Nk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Nk.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",Jv.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Jv.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Jv.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",Jv.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:zk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Kv=de((gve,Ok)=>{"use strict";Ok.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Uk=de((yve,Bk)=>{"use strict";Bk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var ss=de((mve,Jk)=>{"use strict";var Hk=lo().axisHoverFormat,{hovertemplateAttrs:a$,texttemplateAttrs:i$,templatefallbackAttrs:Vk}=ja(),Gk=ni(),o$=kn(),Yk=Ro().dash,l$=Ro().pattern,s$=mt(),u$=Kv(),xc=Tt().extendFlat,f$=Uk();function Wk(e){return{valType:"any",dflt:0,editType:"calc"}}function Xk(e){return{valType:"any",editType:"calc"}}function Zk(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:Wk("x"),yperiod:Wk("y"),xperiod0:Xk("x0"),yperiod0:Xk("y0"),xperiodalignment:Zk("x"),yperiodalignment:Zk("y"),xhoverformat:Hk("x"),yhoverformat:Hk("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:i$(),texttemplatefallback:Vk({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:a$({},{keys:u$.eventDataKeys}),hovertemplatefallback:Vk(),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:xc({},Yk,{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:f$(!0),fillgradient:xc({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:l$,marker:xc({symbol:{valType:"enumerated",values:s$.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:xc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:xc({},Yk,{arrayOk:!0}),editType:"calc"},Gk("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"},Gk("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:o$({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Fy=de((bve,$k)=>{"use strict";var Kk=ku(),Qk=ss().line,c$=Ro().dash,Qv=Tt().extendFlat,h$=qn().overrideAll,v$=yt().templatedArray,xve=mc();$k.exports=h$(v$("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Qv({},Kk.xref,{}),yref:Qv({},Kk.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:Qk.color,width:Qv({},Qk.width,{min:1,dflt:1}),dash:Qv({},c$,{dflt:"dot"})}}),"arraydraw","from-root")});var tS=de((_ve,rS)=>{"use strict";var jk=ir(),$v=Lt(),d$=ai(),p$=Fy(),eS=rl();rS.exports=function(r,t){d$(r,t,{name:"selections",handleItemDefaults:g$});for(var n=t.selections,a=0;a{"use strict";nS.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 bc=de((Mve,lS)=>{"use strict";var y$=Er(),iS=ir(),oS=en();lS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=y$.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,h=u.cartesian,p=a._has("cartesian"),b=0;b{"use strict";var sS=by(),_c=Pk();uS.exports={moduleType:"component",name:"selections",layoutAttributes:Fy(),supplyLayoutDefaults:tS(),supplyDrawNewSelectionDefaults:aS(),includeBasePlot:bc()("selections"),draw:sS.draw,drawOne:sS.drawOne,reselect:_c.reselect,prepSelect:_c.prepSelect,clearOutline:_c.clearOutline,clearSelectionsCache:_c.clearSelectionsCache,selectOnClick:_c.selectOnClick}});var LS=de((Ave,ES)=>{"use strict";var By=it(),Oa=ir(),fS=Oa.numberFormat,m$=Sa(),x$=ov(),jv=Er(),xS=Oa.strTranslate,b$=On(),cS=Xr(),nl=mt(),_$=fo(),hS=Lt(),w$=Ko(),M$=oi(),bS=bu(),e1=bS.selectingOrDrawing,T$=bS.freeMode,A$=Cn().FROM_TL,k$=mv(),S$=Bv().redrawReglTraces,C$=ln(),zy=en().getFromId,E$=Su().prepSelect,L$=Su().clearOutline,D$=Su().selectOnClick,Ny=hy(),Uy=on(),vS=Uy.MINDRAG,Zn=Uy.MINZOOM,dS=!0;function R$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,h,p,b,y,w,T,m,k,S,x,M,d,_,g,c,A,v,D,E,R,N,F,I;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,b={},b[h._id]=h,y={},y[p._id]=p,i&&l)for(var pe=r.overlays,he=0;he=0){xe._fullLayout._deactivateShape(xe);return}var Le=xe._fullLayout.clickmode;if(Oy(xe),pe===2&&!f&&Ue(),s)Le.indexOf("select")>-1&&D$(he,xe,w,T,r.id,U),Le.indexOf("event")>-1&&_$.click(xe,he,r.id);else if(pe===1&&f){var qe=i?p:h,Ne=i==="s"||l==="w"?0:1,$e=qe._name+".range["+Ne+"]",Ve=P$(qe,Ne),Be="left",Ye="middle";if(qe.fixedrange)return;i?(Ye=i==="n"?"top":"bottom",qe.side==="right"&&(Be="right")):l==="e"&&(Be="right"),xe._context.showAxisRangeEntryBoxes&&By.select(O).call(b$.makeEditable,{gd:xe,immediate:!0,background:xe._fullLayout.paper_bgcolor,text:String(Ve),fill:qe.tickfont?qe.tickfont.color:"#444",horizontalAlign:Be,verticalAlign:Ye}).on("edit",function(Te){var Re=qe.d2r(Te);Re!==void 0&&jv.call("_guiRelayout",xe,$e,Re)})}}M$.init(U);var j,Y,q,Q,ae,K,oe,re,V,ee;function H(pe,he,xe){var Le=O.getBoundingClientRect();j=he-Le.left,Y=xe-Le.top,e._fullLayout._calcInverseTransform(e);var qe=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=qe[0],Y=qe[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:m$(e._fullLayout.plot_bgcolor).getLuminance(),ae="M0,0H"+S+"V"+x+"H0V0",K=!1,oe="xy",ee=!1,re=MS(u,Q,m,k,ae),V=TS(u,m,k)}function te(pe,he){if(e._transitioningWithDuration)return!1;var xe=Math.max(0,Math.min(S,F*pe+j)),Le=Math.max(0,Math.min(x,I*he+Y)),qe=Math.abs(xe-j),Ne=Math.abs(Le-Y);q.l=Math.min(j,xe),q.r=Math.max(j,xe),q.t=Math.min(Y,Le),q.b=Math.max(Y,Le);function $e(){oe="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)qe>Zn||Ne>Zn?(oe="xy",qe/S>Ne/x?(Ne=qe*x/S,Y>Le?q.t=Y-Ne:q.b=Y+Ne):(qe=Ne*S/x,j>xe?q.l=j-qe:q.r=j+qe),V.attr("d",r1(q))):$e();else if(d.isSubplotConstrained)if(qe>Zn||Ne>Zn){oe="xy";var Ve=Math.min(q.l/S,(x-q.b)/x),Be=Math.max(q.r/S,(x-q.t)/x);q.l=Ve*S,q.r=Be*S,q.b=(1-Ve)*x,q.t=(1-Be)*x,V.attr("d",r1(q))}else $e();else!g||Ne0){var Te;if(d.isSubplotConstrained||!_&&g.length===1){for(Te=0;Te1&&($e.maxallowed!==void 0&&A===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&A===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,J=0),Ke?(ue=Re,ne=i||d.isSubplotConstrained?pe[1]:ye(Ve,ue)):d.yaHash[Ve._id]?(ue=Re,ne=pe[1]*Ve._length/p._length):d.xaHash[Ve._id]?(ue=Te,ne=_==="ew"?-pe[0]*Ve._length/h._length:ye(Ve,ue,{e:"right",w:"left"}[_])):(ue=ke(Ve,Te,Re),ne=me(Ve,ue)),ue>1&&(Ve.maxallowed!==void 0&&v===(Ve.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function F$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function MS(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",xS(t,n)).attr("d",a+"Z")}function TS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:cS.background,stroke:cS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xS(r,t)).attr("d","M0,0Z")}function AS(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"),kS(e,r,a,o)}function kS(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 Oy(e){By.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function SS(e){dS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),dS=!1)}function N$(e,r){return"M"+(e.l-.5)+","+(r-Zn-.5)+"h-3v"+(2*Zn+1)+"h3ZM"+(e.r+.5)+","+(r-Zn-.5)+"h3v"+(2*Zn+1)+"h-3Z"}function z$(e,r){return"M"+(r-Zn-.5)+","+(e.t-.5)+"v-3h"+(2*Zn+1)+"v3ZM"+(r-Zn-.5)+","+(e.b+.5)+"v3h"+(2*Zn+1)+"v-3Z"}function r1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Zn)/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 yS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,h,p=(a||{}).xaHash,b=(a||{}).yaHash,y=0;y{"use strict";var q$=it(),t1=fo(),O$=oi(),B$=Ko(),ui=LS().makeDragBox,cn=on().DRAGGERSIZE;n1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){q$.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]&&t1.hover(r,p,o)},t1.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,O$.unhover(r,p))},r._context.showAxisDragHandles&&(ui(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),ui(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),ui(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),ui(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),ui(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),ui(r,i,l._offset,f,l._length*.1,cn,"","w"),ui(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var h=u._mainLinePosition;u.side!=="right"&&(h-=cn),ui(r,i,h,u._offset+u._length*.1,cn,u._length*.8,"ns",""),ui(r,i,h,u._offset+u._length*.9,cn,u._length*.1,"s",""),ui(r,i,h,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,t1.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,t1.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},n1.updateFx(r)}};n1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";B$(r._draggers,t)}});var PS=de((Sve,RS)=>{"use strict";var DS=Er();RS.exports=function(r){for(var t=DS.layoutArrayContainers,n=DS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var U$=Eo(),Vy=X0(),wc=Il(),H$=qp().sorterAsc,Gy=Er();Mc.containerArrayMatch=PS();var V$=Mc.isAddVal=function(r){return r==="add"||U$(r)},IS=Mc.isRemoveVal=function(r){return r===null||r==="remove"};Mc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Gy.getComponentMethod(i,"supplyLayoutDefaults"),u=Gy.getComponentMethod(i,"draw"),s=Gy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Vy||u===Vy,h=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&wc.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(IS(b))t.set(null);else if(Array.isArray(b))t.set(b);else return wc.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(h,p),u(r),!0)}var y=Object.keys(n).map(Number).sort(H$),w=t.get(),T=w||[],m=o(p,i).get(),k=[],S=-1,x=T.length,M,d,_,g,c,A,v,D;for(M=0;MT.length-(v?0:1)){wc.warn("index out of range",i,_);continue}if(A!==void 0)c.length>1&&wc.warn("Insertion & removal are incompatible with edits to the same index.",i,_),IS(A)?k.push(_):v?(A==="add"&&(A={}),T.splice(_,0,A),m&&m.splice(_,0,{})):wc.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(d=0;d=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?w||t.set(T):t.set(null),f)return!1;if(l(h,p),s!==Vy){var E;if(S===-1)E=y;else{for(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(_);for(M=S;M{"use strict";var OS=nt(),BS=Er(),Gn=ir(),Tc=ln(),US=en(),HS=Xr(),Ac=US.cleanId,G$=US.getFromTrace,Yy=BS.traceIs,Y$=["x","y","z"];Ba.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Gn.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=(Tc.subplotsRegistry.cartesian||{}).attrRegex,a=(Tc.subplotsRegistry.polar||{}).attrRegex,o=(Tc.subplotsRegistry.ternary||{}).attrRegex,i=(Tc.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"),HS.clean(e),e.template&&e.template.layout&&Ba.cleanLayout(e.template.layout),e};function Cu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Ac(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=qS(r);t;){if(t in e)return!0;t=qS(t)}return!1};Ba.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>Gn.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;nGn.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)?Wy(a,o):!1))return!1}return!0}return!1};Ba.collectionsAreEqual=Wy});var $y=de(et=>{"use strict";var l1=it(),Z$=nt(),J$=Qp(),dr=ir(),wt=dr.nestedProperty,Jy=Sf(),Jn=Mw(),Ua=Er(),d1=eu(),Lr=ln(),Yn=Lt(),K$=x2(),Q$=Da(),Xy=mt(),$$=Xr(),j$=Hy().initInteractions,ej=Ho(),rj=Su().clearOutline,ZS=Pl().dfltConfig,i1=FS(),Wt=VS(),ht=Bv(),al=qn(),tj=on().AX_NAME_PATTERN,Zy=0,GS=5;function nj(e,r,t,n){var a;if(e=dr.getGraphDiv(e),Jy.init(e),dr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Jy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!dr.isPlotDiv(e)&&dr.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)}KS(e,n),t||(t={}),l1.select(e).classed("js-plotly-plot",!0),Xy.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)),Lr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(kj(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Xy.initGradients(e),Xy.initPatterns(e),u&&Yn.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&Lr.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 QS(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]),u1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&u1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function sj(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[v]!="string";)v--;var D=g.parts[v],E=g.parts[v-1]+"."+D,R=g.parts.slice(0,v).join("."),N=wt(e.layout,R).get(),F=wt(n,R).get(),I=g.get();if(c!==void 0){m[_]=c,k[_]=D==="reverse"?c:go(I);var L=d1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(dr.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(c){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(oC))d(E),wt(n,R+"._inputRange").set(null);else if(E.match(lC)){d(E),wt(n,R+"._inputRange").set(null);var U=wt(n,R).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(hj)&&wt(n,R+"._inputDomain").set(null);if(D==="type"){M=N;var X=F.type==="linear"&&c==="log",$=F.type==="log"&&c==="linear";if(X||$){if(!M||!M.range)S(R+".autorange",!0);else if(F.autorange)X&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],Y=M.range[1];X?(j<=0&&Y<=0&&S(R+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(Y)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),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,F,c,S),Ua.getComponentMethod("images","convertCoords")(e,F,c,S)}else S(R+".autorange",!0),S(R+".range",null);wt(n,R+"._inputRange").set(null)}else if(D.match(tj)){var q=wt(n,_).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 ae=i1.containerArrayMatch(_);if(ae){f=ae.array,h=ae.index;var K=ae.property,oe=L||{editType:"calc"};h!==""&&K===""&&(i1.isAddVal(c)?k[_]=null:i1.isRemoveVal(c)?k[_]=(wt(t,f).get()||[])[h]:dr.warn("unrecognized full object value",r)),al.update(T,oe),s[f]||(s[f]={});var re=s[f][h];re||(re=s[f][h]={}),re[K]=c,delete r[_]}else D==="reverse"?(N.range?N.range.reverse():(S(R+".autorange",!0),N.range=[1,0]),F.autorange?T.calc=!0:T.plot=!0):(_==="dragmode"&&(c===!1&&I!==!1||c!==!1&&I===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(c==="lasso"||c==="select")&&!(I==="lasso"||I==="select")?T.plot=!0:L?al.update(T,L):T.calc=!0,g.set(c))}}for(f in s){var V=i1.applyContainerArrayChanges(e,o(t,f),s[f],T,o);V||(T.plot=!0)}for(var ee in x){M=Yn.getFromId(e,ee);var H=M&&M._constraintGroup;if(H){T.calc=!0;for(var te in H)x[te]||(Yn.getFromId(e,te)._constraintShrinkable=!0)}}(uC(e)||r.height||r.width)&&(T.plot=!0);var le=n.shapes;for(h=0;h1;)if(n.pop(),t=wt(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function pj(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(F=>e.on(R,F));return et.react(e,r,t,n)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),yj(e.data,e.layout,l,u),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,p=e._fullLayout,b=p.datarevision===void 0,y=p.transition,w=bj(e,u,p,b,y),T=w.newDataRevision,m=xj(e,l,h,b,y,T);if(uC(e)&&(w.layoutReplot=!0),m.calc||w.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 xj(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(b){var y=d1.getTraceValObject(s,b);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,d=Array.isArray(r),_=!M&&!d&&dr.isPlainObject(r);if(_)x.push({type:"object",data:m(dr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&v.push(S);x=v}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function wj(e,r,t){if(e=dr.getGraphDiv(e),r==null)return Promise.resolve();if(!dr.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(dr.isPlainObject(r[n])){var p=r[n].name,b=(u[p]||h[p]||{}).name,y=r[n].name,w=u[b]||h[b];b&&y&&typeof y=="number"&&w&&Zyg.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&dr.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=Lr.modifyFrames,u=Lr.modifyFrames,s=[e,i],f=[e,o];return Jn&&Jn.add(e,l,s,u,f),Lr.modifyFrames(e,o)}function Tj(e){e=dr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),Jy.purge(e),r._container&&r._container.remove(),delete e._context,e}function Aj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!dr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=dr.inverseTransformMatrix(dr.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 kj(e){var r=l1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Aj,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={};l1.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=dr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(ej.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=_j;et.addFrames=wj;et.deleteFrames=Mj;et.addTraces=tC;et.deleteTraces=nC;et.extendTraces=eC;et.moveTraces=Ky;et.prependTraces=rC;et.newPlot=lj;et._doPlot=nj;et.purge=Tj;et.react=mj;et.redraw=oj;et.relayout=kc;et.restyle=f1;et.setPlotConfig=aj;et.update=h1;et._guiRelayout=Qy(kc);et._guiRestyle=Qy(f1);et._guiUpdate=Qy(h1);et._storeDirectGUIEdit=cj});var us=de(Gi=>{"use strict";var Sj=Er();Gi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Gi.getRedrawFunc=function(e){return function(){Sj.getComponentMethod("colorbar","draw")(e)}};Gi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Gi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var fC=window.URL||window.webkitURL;Gi.createObjectURL=function(e){return fC.createObjectURL(e)};Gi.revokeObjectURL=function(e){return fC.revokeObjectURL(e)};Gi.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=Cj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Gi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Cj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var em=it(),Rve=ir(),Ej=mt(),Lj=Xr(),Pve=Ho(),jy=/"/g,Cc="TOBESTRIPPED",Dj=new RegExp('("'+Cc+")|("+Cc+'")',"g");function Rj(e){var r=em.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 Pj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}cC.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(Ej.setRect,0,0,l,u).call(Lj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var Ij=ir(),Fj=dh().EventEmitter,Ec=us();function Nj(e){var r=e.emitter||new Fj,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,b=s*h,y=u.getContext("2d",{willReadFrequently:!0}),w=new o,T,m;l==="svg"||Ij.isSafari()?m=Ec.encodeSVG(i):(T=Ec.createBlob(i,"svg"),m=Ec.createObjectURL(T)),u.width=p,u.height=b,w.onload=function(){var k;switch(T=null,Ec.revokeObjectURL(m),l!=="svg"&&y.drawImage(w,0,0,p,b),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)},w.onerror=function(k){if(T=null,Ec.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},w.src=m});return e.promise?t:r}hC.exports=Nj});var tm=de((Nve,pC)=>{"use strict";var vC=nt(),dC=$y(),zj=ln(),Yi=ir(),Lc=us(),qj=g1(),Oj=y1(),Bj=L0().version,rm={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 Uj(e,r){r=r||{};var t,n,a,o;Yi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Yi.getGraphDiv(e),t=Yi.extendDeep([],e.data),n=Yi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Yi.validate(r[d],rm[d])}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 "+Yi.join2(rm.format.values,", "," or ")+".");var l={};function u(d,_){return Yi.coerce(r,l,rm,d,_)}var s=u("format"),f=u("width"),h=u("height"),p=u("scale"),b=u("setBackground"),y=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var T=Yi.extendFlat({},n);f?T.width=f:r.width===null&&vC(o.width)&&(T.width=o.width),h?T.height=h:r.height===null&&vC(o.height)&&(T.height=o.height);var m=Yi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=Lc.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,Lc.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,_){var g=qj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function v(){dC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var D=zj.graphJson(w,!1,"keepdata","object",!0,!0);return D.version=Bj,D=JSON.stringify(D),v(),d(y?D:Lc.encodeJSON(D))}if(v(),s==="svg")return d(y?g:Lc.encodeSVG(g));var E=document.createElement("canvas");E.id=Yi.randstr(),Oj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(_)})}function M(d){return y?d.replace(Lc.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,_){dC.newPlot(w,t,T,m).then(k).then(S).then(x).then(function(g){d(M(g))}).catch(function(g){_(g)})})}pC.exports=Uj});var mC=de((zve,yC)=>{"use strict";var Ha=ir(),Hj=ln(),Vj=eu(),Gj=Pl().dfltConfig,fi=Ha.isPlainObject,cs=Array.isArray,nm=Ha.isArrayOrTypedArray;yC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=Vj.get(),a=[],o={_context:Ha.extendFlat({},Gj)},i,l;cs(r)?(o.data=Ha.extendDeep([],r),i=r):(o.data=[],i=[],a.push(hn("array","data"))),fi(t)?(o.layout=Ha.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(hn("object","layout"))),Hj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fh.length&&n.push(hn("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,d,_;if(p.dimensions===2)for(x=0;xh[x].length&&n.push(hn("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,d=f[x][S],_=h[x][S],Ha.validate(d,M)?_!==d&&_!==+d&&n.push(hn("dynamic",a,s.concat(x,S),d,_)):n.push(hn("value",a,s.concat(x,S),d))}else n.push(hn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Qj=ir(),x1=us();function $j(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=x1.createBlob(e,t),s=x1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),x1.revokeObjectURL(s),u=null,i(r);if(Qj.isSafari()){var f=t==="svg"?",":";base64,";return x1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}xC.exports=$j});var am=de((Bve,wC)=>{"use strict";var _C=ir(),jj=tm(),eee=bC(),Ove=us();function ree(e,r){var t;return _C.isPlainObject(e)||(t=_C.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=jj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),eee(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}wC.exports=ree});var SC=de(im=>{"use strict";var fa=ir(),ca=fa.isPlainObject,MC=eu(),TC=ln(),tee=Sn(),AC=yt(),kC=Pl().dfltConfig;im.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:kC},{data:e.data,layout:e.layout}),TC.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(b){var y={};Dc(b,y,aee.bind(null,b));var w=fa.coerce(b,{},tee,"type"),T=n.data[w];T||(T=n.data[w]=[]),T.push(y)}),Dc(t,n.layout,nee.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,h;ca(o)&&b1(o,n.layout);var p=a.data;if(ca(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:b,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:b,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],_=Va(S,M,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:_,templateitemname:d.templateitemname}),k(d,_)):Array.isArray(d)&&iee(d)&&k(d,_)}}if(k({data:u,layout:l},""),i.length)return i.map(oee)};function iee(e){for(var r=0;r{"use strict";var rn=$y();Ct._doPlot=rn._doPlot;Ct.newPlot=rn.newPlot;Ct.restyle=rn.restyle;Ct.relayout=rn.relayout;Ct.redraw=rn.redraw;Ct.update=rn.update;Ct._guiRestyle=rn._guiRestyle;Ct._guiRelayout=rn._guiRelayout;Ct._guiUpdate=rn._guiUpdate;Ct._storeDirectGUIEdit=rn._storeDirectGUIEdit;Ct.react=rn.react;Ct.extendTraces=rn.extendTraces;Ct.prependTraces=rn.prependTraces;Ct.addTraces=rn.addTraces;Ct.deleteTraces=rn.deleteTraces;Ct.moveTraces=rn.moveTraces;Ct.purge=rn.purge;Ct.addFrames=rn.addFrames;Ct.deleteFrames=rn.deleteFrames;Ct.animate=rn.animate;Ct.setPlotConfig=rn.setPlotConfig;var lee=xf().getGraphDiv,see=Pv().eraseActiveShape;Ct.deleteActiveShape=function(e){return see(lee(e))};Ct.toImage=tm();Ct.validate=mC();Ct.downloadImage=am();var CC=SC();Ct.makeTemplate=CC.makeTemplate;Ct.validateTemplate=CC.validateTemplate});var DC=de((Vve,LC)=>{"use strict";var om=ir(),uee=Er();LC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=uee.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=om.minRowLength(o);i?l=Math.min(s,om.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=om.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var FC=de((Gve,IC)=>{"use strict";var RC=ir().dateTick0,fee=nn(),cee=fee.ONEWEEK;function PC(e,r){return e%cee===0?RC(r,1):RC(r,0)}IC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",PC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",PC(l,t.ycalendar)),a("yperiodalignment"))}}});var qC=de((Yve,zC)=>{"use strict";var NC=["orientation","groupnorm","stackgaps"];zC.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 OC=Xr(),BC=Ei().hasColorscale,UC=Di(),hee=la();HC.exports=function(r,t,n,a,o,i={}){var l=hee.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),BC(r,"marker")&&UC(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=OC.background:s=OC.defaultLine,o("marker.line.color",s),BC(r,"marker.line")&&UC(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 sm=de((Xve,VC)=>{"use strict";var vee=ir().isArrayOrTypedArray,dee=Ei().hasColorscale,pee=Di();VC.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),dee(r,"line"))pee(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(vee(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var YC=de((Zve,GC)=>{"use strict";GC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var um=de((Jve,WC)=>{"use strict";var gee=ir();WC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),gee.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var JC=de((Kve,ZC)=>{"use strict";var w1=Xr(),XC=ir().isArrayOrTypedArray;function yee(e){for(var r=w1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var KC=ir(),mee=Er(),xee=ss(),bee=Kv(),Eu=la(),_ee=DC(),wee=FC(),Mee=qC(),Tee=lm(),Aee=sm(),QC=YC(),kee=um(),See=JC(),Cee=ir().coercePattern;$C.exports=function(r,t,n,a){function o(b,y){return KC.coerce(r,t,xee,b,y)}var i=_ee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){wee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Mee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var Eee=tc().getAxisGroup;eE.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Eee(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 b=a("offsetgroup")||"",y=p.offsetGroups,w=y[b];t._offsetIndex=0,(o!=="group"||b)&&(w||(w=y[b]={offsetIndex:Object.keys(y).length}),t._offsetIndex=w.offsetIndex)}});var nE=de((jve,tE)=>{"use strict";var Lee=ir(),Dee=rE(),Ree=ss();tE.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Lee.coerce(a._input,a,Ree,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 iE=de((e1e,aE)=>{"use strict";var Pee=ir(),Iee=xh();aE.exports=function(e,r){function t(a,o){return Pee.coerce(e,r,Iee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var sE=de((r1e,lE)=>{"use strict";var Fee=nt(),oE=ir(),Nee=oE.dateTime2ms,M1=oE.incrementMonth,zee=nn(),qee=zee.ONEAVGMONTH;lE.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(Fee(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"],b=Nee(p,s)||0,y=[],w=[],T=[],m=a.length,k=0;kS;)d=M1(d,-l,s);for(;d<=S;)d=M1(d,l,s);M=M1(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;M=d-i}y[k]=f?M:h?d:(M+d)/2,w[k]=M,T[k]=d}return{vals:y,starts:w,ends:T}}});var hm=de((t1e,fE)=>{"use strict";var fm=Ei().hasColorscale,cm=Go(),uE=la();fE.exports=function(r,t){uE.hasLines(t)&&fm(t,"line")&&cm(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),uE.hasMarkers(t)&&(fm(t,"marker")&&cm(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),fm(t,"marker.line")&&cm(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var T1=de((n1e,cE)=>{"use strict";var Ft=ir();cE.exports=function(r,t){for(var n=0;n{"use strict";var hE=ir();vE.exports=function(r,t){hE.isArrayOrTypedArray(t.selectedpoints)&&hE.tagSelected(r,t)}});var ym=de((i1e,_E)=>{"use strict";var pE=nt(),dm=ir(),Rc=Lt(),gE=sE(),vm=nn().BADNUM,pm=la(),Oee=hm(),Bee=T1(),Uee=dE();function Hee(e,r){var t=e._fullLayout,n=r._xA=Rc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Rc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=gE(r,n,"x",o),u=gE(r,a,"y",i),s=l.vals,f=u.vals,h=r._length,p=new Array(h),b=r.ids,y=gm(r,t,n,a),w=!1,T,m,k,S,x,M;xE(t,r);var d="x",_="y",g;if(y)dm.pushUnique(y.traceIndices,r.index),T=y.orientation==="v",T?(_="s",g="x"):(d="s",g="y"),x=y.stackgaps==="interpolate";else{var c=mE(r,h);yE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,v=!!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";wE.exports=A1;var Vee=ir().distinctVals;function A1(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";TE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var LE=de((s1e,EE)=>{"use strict";var Ga=nt(),{isArrayOrTypedArray:yo}=ir(),{BADNUM:Lu}=nn(),Gee=Er(),Pc=Lt(),{getAxisGroup:Yee}=tc(),k1=ME(),{TEXTPAD:Wee}=AE(),{LINE_SPACING:Xee}=Cn(),{BR_TAG_ALL:Zee}=On();function Jee(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*Xee*t+Wee;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 ire(e,r,t,n){for(var a=Du(n),o=0;o{"use strict";var DE=ym(),RE=LE().setGroupPositions;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;sc[f]&&f{"use strict";var ure=mt(),qE=nn(),Ic=qE.BADNUM,OE=qE.LOG_CLIP,FE=OE+.5,NE=OE-.5,S1=ir(),fre=S1.segmentsIntersect,zE=S1.constrain,Tm=Kv();BE.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,b=t.baseTolerance,y=t.shape,w=y==="linear",T=n.fill&&n.fill!=="none",m=[],k=Tm.minTolerance,S=r.length,x=new Array(S),M=0,d,_,g,c,A,v,D,E,R,N,F,I,L,P,O,U;function X(Ye){var Te=r[Ye];if(!Te)return!1;var Re=t.linearized?a.l2p(Te.x):a.c2p(Te.x),Qe=t.linearized?o.l2p(Te.y):o.c2p(Te.y);if(Re===Ic){if(i&&(Re=a.c2p(Te.x,!0)),Re===Ic)return!1;l&&Qe===Ic&&(Re*=Math.abs(a._m*s*(a._m>0?FE:NE)/(o._m*u*(o._m>0?FE:NE)))),Re*=1e3}if(Qe===Ic){if(l&&(Qe=o.c2p(Te.y,!0)),Qe===Ic)return!1;Qe*=1e3}return[Re,Qe]}function $(Ye,Te,Re,Qe){var Ke=Re-Ye,ar=Qe-Te,ue=.5-Ye,J=.5-Te,ne=Ke*Ke+ar*ar,De=Ke*ue+ar*J;if(De>0&&De1||Math.abs(ue.y-Re[0][1])>1)&&(ue=[ue.x,ue.y],Qe&&Q(ue,Ye)oe||Ye[1]V)return[zE(Ye[0],K,oe),zE(Ye[1],re,V)]}function Ce(Ye,Te){if(Ye[0]===Te[0]&&(Ye[0]===K||Ye[0]===oe)||Ye[1]===Te[1]&&(Ye[1]===re||Ye[1]===V))return!0}function Fe(Ye,Te){var Re=[],Qe=Se(Ye),Ke=Se(Te);return Qe&&Ke&&Ce(Qe,Ke)||(Qe&&Re.push(Qe),Ke&&Re.push(Ke)),Re}function Ee(Ye,Te,Re){return function(Qe,Ke){var ar=Se(Qe),ue=Se(Ke),J=[];if(ar&&ue&&Ce(ar,ue))return J;ar&&J.push(ar),ue&&J.push(ue);var ne=2*S1.constrain((Qe[Ye]+Ke[Ye])/2,Te,Re)-((ar||Qe)[Ye]+(ue||Ke)[Ye]);if(ne){var De;ar&&ue?De=ne>0==ar[Ye]>ue[Ye]?ar:ue:De=ar||ue,De[Ye]+=ne}return J}}var ze;y==="linear"||y==="spline"?ze=ce:y==="hv"||y==="vh"?ze=Fe:y==="hvh"?ze=Ee(0,K,oe):y==="vhv"&&(ze=Ee(1,re,V));function Ue(Ye,Te){var Re=Te[0]-Ye[0],Qe=(Te[1]-Ye[1])/Re,Ke=(Ye[1]*Te[0]-Te[1]*Ye[0])/Re;return Ke>0?[Qe>0?K:oe,V]:[Qe>0?oe:K,re]}function ge(Ye){var Te=Ye[0],Re=Ye[1],Qe=Te===x[M-1][0],Ke=Re===x[M-1][1];if(!(Qe&&Ke))if(M>1){var ar=Te===x[M-2][0],ue=Re===x[M-2][1];Qe&&(Te===K||Te===oe)&&ar?ue?M--:x[M-1]=Ye:Ke&&(Re===re||Re===V)&&ue?ar?M--:x[M-1]=Ye:x[M++]=Ye}else x[M++]=Ye}function Me(Ye){x[M-1][0]!==Ye[0]&&x[M-1][1]!==Ye[1]&&ge([le,ve]),ge(Ye),Ae=null,le=ve=0}var ke=S1.isArrayOrTypedArray(h);function me(Ye){if(Ye&&f&&(Ye.i=d,Ye.d=r,Ye.trace=n,Ye.marker=ke?h[Ye.i]:h,Ye.backoff=f),j=Ye[0]/u,Y=Ye[1]/s,H=Ye[0]oe?oe:0,te=Ye[1]V?V:0,H||te){if(!M)x[M++]=[H||Ye[0],te||Ye[1]];else if(Ae){var Te=ze(Ae,Ye);Te.length>1&&(Me(Te[0]),x[M++]=Te[1])}else we=ze(x[M-1],Ye)[0],x[M++]=we;var Re=x[M-1];H&&te&&(Re[0]!==H||Re[1]!==te)?(Ae&&(le!==H&&ve!==te?ge(le&&ve?Ue(Ae,Ye):[le||H,ve||te]):le&&ve&&ge([le,ve])),ge([H,te])):le-H&&ve-te&&ge([H||le,te||ve]),Ae=Ye,le=H,ve=te}else Ae&&Me(ze(Ae,Ye)[0]),x[M++]=Ye}for(d=0;dq(v,ye))break;g=v,L=R[0]*E[0]+R[1]*E[1],L>F?(F=L,c=v,D=!1):L=r.length||!v)break;me(v),_=v}}Ae&&ge([le||Ae[0],ve||Ae[1]]),m.push(x.slice(0,M))}var pe=y.slice(y.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var he=!1,xe=-1,Le=[],qe=0;qe{"use strict";var HE={tonextx:1,tonexty:1,tonext:1};VE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,h=-1,p=0,b=-1;for(o=0;o=0?u=b:(u=b=p,p++),u{"use strict";var ci=it(),cre=Er(),Fc=ir(),Ru=Fc.ensureSingle,WE=Fc.identity,zt=mt(),Pu=la(),hre=UE(),vre=GE(),C1=wy().tester;XE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,h=vre(r,t,n);if(l=a.selectAll("g.trace").data(h,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),dre(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(b,y){YE(r,y,t,b,h,this,o)})})}else l.each(function(b,y){YE(r,y,t,b,h,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function dre(e,r,t){r.each(function(n){var a=Ru(ci.select(this),"g","fills");zt.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,WE);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Ru(ci.select(this),"path","js-fill")})})}function YE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;pre(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Ee){return s?Ee.transition():Ee}var h=t.xaxis,p=t.yaxis,b=n[0].trace,y=b.line,w=ci.select(o),T=Ru(w,"g","errorbars"),m=Ru(w,"g","lines"),k=Ru(w,"g","points"),S=Ru(w,"g","text");if(cre.getComponentMethod("errorbars","plot")(e,T,t,i),b.visible!==!0)return;f(w).style("opacity",b.opacity);var x,M,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var _,g;d==="y"?(_=1,g=p.c2p(0,!0)):d==="x"&&(_=0,g=h.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],v=b._prevtrace,D=null,E=null;v&&(c=v._prevRevpath||"",M=v._nextFill,A=v._ownPolygons,D=v._fillsegments,E=v._fillElement);var R,N,F="",I="",L,P,O,U,X,$,j=[];b._polygons=[];var Y=[],q=[],Q=Fc.noop;if(x=b._ownFill,Pu.hasLines(b)||b.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(L=zt.steps(y.shape),P=zt.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?L=P=function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?zt.smoothclosed(Ee.slice(1),y.smoothing):zt.smoothopen(Ee,y.smoothing)}:L=P=function(Ee){return"M"+Ee.join("L")},O=function(Ee){return P(Ee.reverse())},q=hre(n,{xaxis:h,yaxis:p,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:b.fill}),Y=new Array(q.length);var ae=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(h.length/f),b=0;a.forEach(function(w,T){var m=w[0].trace;Pu.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";JE.exports={container:"marker",min:"cmin",max:"cmax"}});var $E=de((d1e,QE)=>{"use strict";var E1=Lt();QE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=E1.getFromTrace(o,t,"x"),l=E1.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=E1.tickText(i,i.c2l(u),!0).text,a.yLabel=E1.tickText(l,l.c2l(s),!0).text,a}});var Cm=de((p1e,jE)=>{"use strict";var Am=it(),Iu=mt(),gre=Er();function yre(e){var r=Am.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=Am.select(this),a=t.trace||t[0].trace;km(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Am.select(this),a=t.trace||t[0].trace;Sm(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),gre.getComponentMethod("errorbars","style")(r)}function km(e,r,t){Iu.pointStyle(e.selectAll("path.point"),r,t)}function Sm(e,r,t){Iu.textPointStyle(e.selectAll("text"),r,t)}function mre(e,r,t){var n=r[0].trace;n.selectedpoints?(Iu.selectedPointStyle(t.selectAll("path.point"),n),Iu.selectedTextStyle(t.selectAll("text"),n)):(km(t,n,e),Sm(t,n,e))}jE.exports={style:yre,stylePoints:km,styleText:Sm,styleOnSelect:mre}});var rL=de((g1e,eL)=>{"use strict";var Fu=Xr(),xre=la();eL.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Fu.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&&Fu.opacity(o)?o:i&&Fu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Fu.opacity(a)<.3?Fu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Fu.opacity(n)&&xre.hasLines(r)&&r.line.width?n:r.fillcolor)}});var aL=de((y1e,nL)=>{"use strict";var L1=ir(),tL=fo(),bre=Er(),_re=rL(),Em=Xr(),wre=L1.fillText;nL.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||"",b=i.mode.indexOf("markers")!==-1?3:.5,y=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var T=function(I){if(y){var L=l.c2p(I.xStart),P=l.c2p(I.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(l.c2p(I.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,I.mrc||0),U=1-1/O,X=Math.abs(u.c2p(I.y)-f);return Xj!=V>=j&&(K=Q[q-1][0],oe=Q[q][0],V-re&&(ae=K+(oe-K)*(j-re)/(V-re),O=Math.min(O,ae),U=Math.max(U,ae)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}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 F=Em.defaultLine;return Em.opacity(i.fillcolor)?F=i.fillcolor:Em.opacity((i.line||{}).color)&&(F=i.line.color),L1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:F,hovertemplate:!1}),delete r.index,i.text&&!L1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var lL=de((m1e,oL)=>{"use strict";var iL=la();oL.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,h,p=!iL.hasMarkers(l)&&!iL.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";sL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Dm=de((b1e,hL)=>{"use strict";var Nc=Er().traceIs,Lm=$g();hL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Mre(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Mre(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Tre(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:!Nc(o,"cartesian")||Nc(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,cL(o,n)){var s=fL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(cL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function fL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function cL(e,r){var t=fL(e),n=Nc(e,"box-violin"),a=Nc(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var dL=de((_1e,vL)=>{"use strict";var Are=ra().isTypedArraySpec;function kre(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||Are(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=kre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var yL=de((w1e,gL)=>{"use strict";var pL=Sa().mix,Sre=Si(),Cre=ir();gL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return Cre.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=pL(o,a.bgColor,a.blend||Sre.lightFraction).toRgbString(),h=i("gridcolor",f),p=i("gridwidth"),b=i("griddash"),y=n("showgrid",a.showGrid||!!h||!!p||!!b);if(y||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=pL(t.gridcolor,a.bgColor,67).toRgbString(),T=i("minor.gridcolor",w),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),d=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!M||!!d);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var R1=de((M1e,ML)=>{"use strict";var mL=nt(),Ere=Er(),zc=ir(),Lre=yt(),Dre=ai(),Rm=Da(),xL=_g(),bL=Mg(),Rre=kg(),Pre=Sg(),Ire=dL(),Fre=yL(),Nre=x2(),_L=Gh(),D1=on().WEEKDAY_PATTERN,zre=on().HOUR_PATTERN;ML.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 b=Ere.getComponentMethod("calendars","handleDefaults");b(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=zc.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"),_L(t,o),Nre(r,t,n,a),Ire(r,t,n,a),a.noHover||(h!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),T=w!==Rm.color.dflt?w:l.color,m=u.label||o._dfltTitle[i];if(Pre(r,t,n,h,a),!s)return t;n("title.text",m),zc.coerceFont(n,"title.font",l,{overrideDflt:{size:zc.bigFont(l.size),color:T}}),xL(r,t,n,h);var k=a.hasMinor;if(k&&(Lre.newContainer(t,"minor"),xL(r,t,n,h,{isMinor:!0})),Rre(r,t,n,h,a),bL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,bL(r,t,n,a),a.isMinor=S}Fre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Rm}),k&&!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(Dre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:qre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=wL(o[l]),u){i=D1;break}}var s=n("pattern",i);if(s===D1)for(l=0;l<2;l++)u=wL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case D1:if(!mL(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 zre:if(!mL(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 Bre=nt(),P1=ir();TL.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,b,y,w;u&&(h=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],h&&(p=u[l+"side"].split(" ")[0],b=u.domain[l][p==="right"||p==="top"?1:0])),h=h||[0,1],f=f||(Bre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),b=b||0,y=0,w=!1;var T=P1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=P1.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&&(b=m==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,y=m==="left"?-3:3),n("shift",y)}n("position",b)}n("automargin",w);var S=!1;if(i.length&&(S=P1.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),P1.noneOrAll(r.domain,t.domain,h),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var PL=de((A1e,RL)=>{"use strict";var hs=ir(),AL=Xr(),Ure=so().isUnifiedHover,Hre=Y2(),kL=yt(),Vre=Vs(),SL=Da(),Gre=Dm(),CL=R1(),Yre=tc(),EL=Pm(),Fm=en(),Wi=Fm.id2name,LL=Fm.name2id,Wre=on().AX_ID_PATTERN,DL=Er(),I1=DL.traceIs,Im=DL.getComponentMethod;function F1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}RL.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},h={},p={},b={},y={},w,T;for(w=0;w{"use strict";var Xre=it(),IL=Er(),N1=ir(),xa=mt(),z1=Lt();FL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){z1.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,d=x._length,_=!!T.xr1,g=!!T.yr1,c=[];if(_){var A=N1.simpleMap(T.xr0,S.r2l),v=N1.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=v[1]-v[0];c[0]=(A[0]*(1-m)+m*v[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*v[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*v[1])}else c[0]=0,c[2]=M;if(g){var R=N1.simpleMap(T.yr0,x.r2l),N=N1.simpleMap(T.yr1,x.r2l),F=R[1]-R[0],I=N[1]-N[0];c[1]=(R[1]*(1-m)+m*N[1]-R[1])/(R[0]-R[1])*d,c[3]=d*(1-m+m*I/F),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]=d;z1.drawOne(r,S,{skipTitle:!0}),z1.drawOne(r,x,{skipTitle:!0}),z1.redrawComponents(r,[S._id,x._id]);var L=_?M/c[2]:1,P=g?d/c[3]:1,O=_?c[0]:0,U=g?c[1]:0,X=_?c[0]/c[2]*M:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(xa.setTranslate,O,U).call(xa.setScale,1/L,1/P),k.plot.call(xa.setTranslate,j,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(),b=window.cancelAnimationFrame(w)):b=window.requestAnimationFrame(w)}return h=Date.now(),b=window.requestAnimationFrame(w),Promise.resolve()}});var Nm=de(Dn=>{"use strict";var O1=it(),zL=Er(),vs=ir(),Zre=ln(),Jre=mt(),qL=Lf().getModuleCalcData,il=en(),hi=on(),Kre=Ho(),lt=vs.ensureSingle;function q1(e,r,t){return vs.ensureSingle(e,r,t,function(n){n.datum(t)})}var ds=hi.zindexSeparator;Dn.name="cartesian";Dn.attr=["xaxis","yaxis"];Dn.idRoot=["x","y"];Dn.idRegex=hi.idRegex;Dn.attrRegex=hi.attrRegex;Dn.attributes=uL();Dn.layoutAttributes=Da();Dn.supplyLayoutDefaults=PL();Dn.transitionAxes=NL();Dn.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 b=p.id;if(b.indexOf(ds)!==-1)continue;b+=ds+(s+1),p=vs.extendFlat({},p,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var y=[],w,T=0;T1&&(M+=ds+x),S.push(l+M),i=0;i1,h=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.xaxislayer=lt(n,"g","xaxislayer-above"),r.yaxislayer=lt(n,"g","yaxislayer-above");else{if(!i){var p=lt(n,"g","layer-subplot");r.shapelayer=lt(p,"g","shapelayer"),r.imagelayer=lt(p,"g","imagelayer"),h&&f?(r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer):(r.minorGridlayer=lt(n,"g","minor-gridlayer"),r.gridlayer=lt(n,"g","gridlayer"),r.zerolinelayer=lt(n,"g","zerolinelayer"));var b=lt(n,"g","layer-between");r.shapelayerBetween=lt(b,"g","shapelayer"),r.imagelayerBetween=lt(b,"g","imagelayer"),lt(n,"path","xlines-below"),lt(n,"path","ylines-below"),r.overlinesBelow=lt(n,"g","overlines-below"),lt(n,"g","xaxislayer-below"),lt(n,"g","yaxislayer-below"),r.overaxesBelow=lt(n,"g","overaxes-below")}r.overplot=lt(n,"g","overplot"),r.plot=lt(r.overplot,"g",a),h&&f?r.zerolinelayerAbove=h.zerolinelayerAbove:r.zerolinelayerAbove=lt(n,"g","zerolinelayer-above"),i||(r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.overlinesAbove=lt(n,"g","overlines-above"),lt(n,"g","xaxislayer-above"),lt(n,"g","yaxislayer-above"),r.overaxesAbove=lt(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,w=a+"-x",T=a+"-y";r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer,r.zerolinelayerAbove=h.zerolinelayerAbove,lt(h.overlinesBelow,"path",w),lt(h.overlinesBelow,"path",T),lt(h.overaxesBelow,"g",w),lt(h.overaxesBelow,"g",T),r.plot=lt(h.overplot,"g",a),lt(h.overlinesAbove,"path",w),lt(h.overlinesAbove,"path",T),lt(h.overaxesAbove,"g",w),lt(h.overaxesAbove,"g",T),r.xlines=y.select(".overlines-"+l).select("."+w),r.ylines=y.select(".overlines-"+u).select("."+T),r.xaxislayer=y.select(".overaxes-"+l).select("."+w),r.yaxislayer=y.select(".overaxes-"+u).select("."+T)}i||(s||(q1(r.minorGridlayer,"g",r.xaxis._id),q1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort),q1(r.gridlayer,"g",r.xaxis._id),q1(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 UL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=O1.select(this);f.remove(),HL(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 B1=la();VL.exports={hasLines:B1.hasLines,hasMarkers:B1.hasMarkers,hasText:B1.hasText,isBubble:B1.isBubble,attributes:ss(),layoutAttributes:xh(),supplyDefaults:jC(),crossTraceDefaults:nE(),supplyLayoutDefaults:iE(),calc:ym().calc,crossTraceCalc:IE(),arraysToCalcdata:T1(),plot:ZE(),colorbar:KE(),formatLabels:$E(),style:Cm().style,styleOnSelect:Cm().styleOnSelect,hoverPoints:aL(),selectPoints:lL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Nm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var XL=de((E1e,WL)=>{"use strict";var $re=it(),jre=Xr(),YL=Iy(),zm=ir(),ete=zm.strScale,rte=zm.strRotate,tte=zm.strTranslate;WL.exports=function(r,t,n){var a=r.node(),o=YL[n.arrowhead||0],i=YL[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,b,y,w,T;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},y={x:+r.attr("x2"),y:+r.attr("y2")};var m=b.x-y.x,k=b.y-y.y;if(w=Math.atan2(k,m),T=w+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(w),x=h*Math.sin(w);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(w),d=p*Math.sin(w);b.x-=M,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),g="";if(_{"use strict";var ZL=it(),qm=Er(),nte=ln(),ll=ir(),Om=ll.strTranslate,Oc=Lt(),ps=Xr(),mo=mt(),JL=fo(),Bm=On(),Um=Ko(),qc=oi(),ate=yt().arrayEditor,ite=XL();$L.exports={draw:ote,drawOne:KL,drawRaw:QL};function ote(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ke="right":Ke="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ke]}for(var re=!1,V=["x","y"],ee=0;ee1)&&(le===te?(ye=ve.r2fraction(r["a"+H]),(ye<0||ye>1)&&(re=!0)):re=!0),ze=ve._offset+ve.r2p(r[H]),Me=.5}else{var pe=me==="domain";H==="x"?(ge=r[H],ze=pe?ve._offset+ve._length*ge:ze=l.l+l.w*ge):(ge=1-r[H],ze=pe?ve._offset+ve._length*ge:ze=l.t+l.h*ge),Me=r.showarrow?.5:ge}if(r.showarrow){Ee.head=ze;var he=r["a"+H];if(ke=we*oe(.5,r.xanchor)-ce*oe(.5,r.yanchor),le===te){var xe=Oc.getRefType(le);xe==="domain"?(H==="y"&&(he=1-he),Ee.tail=ve._offset+ve._length*he):xe==="paper"?H==="y"?(he=1-he,Ee.tail=l.t+l.h*he):Ee.tail=l.l+l.w*he:Ee.tail=ve._offset+ve.r2p(he),Ue=ke}else Ee.tail=ze+he,Ue=ke+he;Ee.text=Ee.tail+ke;var Le=i[H==="x"?"width":"height"];if(te==="paper"&&(Ee.head=ll.constrain(Ee.head,1,Le-1)),le==="pixel"){var qe=-Math.max(Ee.tail-3,Ee.text),Ne=Math.min(Ee.tail+3,Ee.text)-Le;qe>0?(Ee.tail+=qe,Ee.text+=qe):Ne>0&&(Ee.tail-=Ne,Ee.text-=Ne)}Ee.tail+=Fe,Ee.head+=Fe}else ke=Se*oe(Me,Ce),Ue=ke,Ee.text=ze+ke;Ee.text+=Fe,ke+=Fe,Ue+=Fe,r["_"+H+"padplus"]=Se/2+Ue,r["_"+H+"padminus"]=Se/2-Ue,r["_"+H+"size"]=Se,r["_"+H+"shift"]=ke}if(re){_.remove();return}var $e=0,Ve=0;if(r.align!=="left"&&($e=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Ve=(Q-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+$e-1,y:A+Ve}).call(mo.setClipUrl,D?w:null,e);else{var Be=A+Ve-$.top,Ye=A+$e-$.left;F.call(Bm.positionText,Ye,Be).call(mo.setClipUrl,D?w:null,e)}E.select("rect").call(mo.setRect,A,A,q,Q),v.call(mo.setRect,g/2,g/2,ae-g,K-g),_.call(mo.setTranslate,Math.round(T.x.text-ae/2),Math.round(T.y.text-K/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var Te=function(Qe,Ke){k.selectAll(".annotation-arrow-g").remove();var ar=T.x.head,ue=T.y.head,J=T.x.tail+Qe,ne=T.y.tail+Ke,De=T.x.text+Qe,He=T.y.text+Ke,er=ll.rotationXYMatrix(m,De,He),nr=ll.apply2DTransform(er),fr=ll.apply2DTransform2(er),br=+v.attr("width"),Sr=+v.attr("height"),Mr=De-.5*br,Ar=Mr+br,ft=He-.5*Sr,sr=ft+Sr,Pr=[[Mr,ft,Mr,sr],[Mr,sr,Ar,sr],[Ar,sr,Ar,ft],[Ar,ft,Mr,ft]].map(fr);if(!Pr.reduce(function(gt,Nt){return gt^!!ll.segmentsIntersect(ar,ue,ar+1e6,ue+1e6,Nt[0],Nt[1],Nt[2],Nt[3])},!1)){Pr.forEach(function(gt){var Nt=ll.segmentsIntersect(J,ne,ar,ue,gt[0],gt[1],gt[2],gt[3]);Nt&&(J=Nt.x,ne=Nt.y)});var $r=r.arrowwidth,Fr=r.arrowcolor,Gr=r.arrowside,pt=k.append("g").style({opacity:ps.opacity(Fr)}).classed("annotation-arrow-g",!0),Rr=pt.append("path").attr("d","M"+J+","+ne+"L"+ar+","+ue).style("stroke-width",$r+"px").call(ps.stroke,ps.rgb(Fr));if(ite(Rr,Gr,r),u.annotationPosition&&Rr.node().parentNode&&!n){var jr=ar,vn=ue;if(r.standoff){var Et=Math.sqrt(Math.pow(ar-J,2)+Math.pow(ue-ne,2));jr+=r.standoff*(J-ar)/Et,vn+=r.standoff*(ne-ue)/Et}var Tn=pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(J-jr)+","+(ne-vn),transform:Om(jr,vn)}).style("stroke-width",$r+6+"px").call(ps.stroke,"rgba(0,0,0,0)").call(ps.fill,"rgba(0,0,0,0)"),Ot,bt;qc.init({element:Tn.node(),gd:e,prepFn:function(){var gt=mo.getTranslate(_);Ot=gt.x,bt=gt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(gt,Nt){var ha=nr(Ot,bt),$n=ha[0]+gt,Fn=ha[1]+Nt;_.call(mo.setTranslate,$n,Fn),b("x",ol(a,gt,"x",l,r)),b("y",ol(o,Nt,"y",l,r)),r.axref===r.xref&&b("ax",ol(a,gt,"ax",l,r)),r.ayref===r.yref&&b("ay",ol(o,Nt,"ay",l,r)),pt.attr("transform",Om(gt,Nt)),S.attr({transform:"rotate("+m+","+$n+","+Fn+")"})},doneFn:function(){qm.call("_guiRelayout",e,y());var gt=document.querySelector(".js-notes-box-panel");gt&>.redraw(gt.selectedObj)}})}}};if(r.showarrow&&Te(0,0),x){var Re;qc.init({element:_.node(),gd:e,prepFn:function(){Re=S.attr("transform")},moveFn:function(Qe,Ke){var ar="pointer";if(r.showarrow)r.axref===r.xref?b("ax",ol(a,Qe,"ax",l,r)):b("ax",r.ax+Qe),r.ayref===r.yref?b("ay",ol(o,Ke,"ay",l.w,r)):b("ay",r.ay+Ke),Te(Qe,Ke);else{if(n)return;var ue,J;if(a)ue=ol(a,Qe,"x",l,r);else{var ne=r._xsize/l.w,De=r.x+(r._xshift-r.xshift)/l.w-ne/2;ue=qc.align(De+Qe/l.w,ne,0,1,r.xanchor)}if(o)J=ol(o,Ke,"y",l,r);else{var He=r._ysize/l.h,er=r.y-(r._yshift+r.yshift)/l.h-He/2;J=qc.align(er-Ke/l.h,He,0,1,r.yanchor)}b("x",ue),b("y",J),(!a||!o)&&(ar=qc.getCursor(a?.5:ue,o?.5:J,r.xanchor,r.yanchor))}S.attr({transform:Om(Qe,Ke)+Re}),Um(_,ar)},clickFn:function(Qe,Ke){r.captureevents&&e.emit("plotly_clickannotation",d(Ke))},doneFn:function(){Um(_),qm.call("_guiRelayout",e,y());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}u.annotationText?F.call(Bm.makeEditable,{delegate:_,gd:e}).call(I).on("edit",function(P){r.text=P,this.call(I),b("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),qm.call("_guiRelayout",e,y())}):F.call(I)}});var aD=de((D1e,nD)=>{"use strict";var jL=ir(),lte=Er(),eD=yt().arrayEditor;nD.exports={hasClickToShow:ste,onClick:ute};function ste(e,r){var t=tD(e,r);return t.on.length>0||t.explicitOff.length>0}function ute(e,r){var t=tD(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 Hm=ir(),Nu=Xr();iD.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Nu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Hm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var h=a("arrowside"),p,b;h.indexOf("end")!==-1&&(p=a("arrowhead"),b=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Nu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var y=a("hovertext"),w=n.hoverlabel||{};if(y){var T=a("hoverlabel.bgcolor",w.bgcolor||(Nu.opacity(o)?Nu.rgb(o):Nu.defaultLine)),m=a("hoverlabel.bordercolor",w.bordercolor||Nu.contrast(T)),k=Hm.extendFlat({},w.font);k.color||(k.color=m),Hm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!y)}});var lD=de((P1e,oD)=>{"use strict";var Gm=ir(),gs=Lt(),fte=ai(),cte=Vm(),hte=ku();oD.exports=function(r,t){fte(r,t,{name:"annotations",handleItemDefaults:vte})};function vte(e,r,t){function n(S,x){return Gm.coerce(e,r,hte,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){cte(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=gs.coerceRef(e,r,s,h,"","paper");if(p!=="paper"){var b=gs.getFromId(s,p);b._annIndices.push(r._index)}if(gs.coercePosition(r,s,n,p,h,.5),i){var y="a"+h,w=gs.coerceRef(e,r,s,y,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[y]="pixel");var T=w==="pixel"?u[f]:.4;gs.coercePosition(r,s,n,w,y,T)}n(h+"anchor"),n(h+"shift")}if(Gm.noneOrAll(e,r,["x","y"]),i&&Gm.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:gs.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:gs.cleanPosition(k,s,r.yref)}}}});var fD=de((I1e,uD)=>{"use strict";var Ym=ir(),ys=Lt(),dte=U1().draw;uD.exports=function(r){var t=r._fullLayout,n=Ym.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Ym.syncOrAsync([dte,pte],r)};function pte(e){var r=e._fullLayout;Ym.filterVisible(r.annotations).forEach(function(t){var n=ys.getFromId(e,t.xref),a=ys.getFromId(e,t.yref),o=ys.getRefType(t.xref),i=ys.getRefType(t.yref);t._extremes={},o==="range"&&sD(t,n),i==="range"&&sD(t,a)})}function sD(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,b=h-f,y=3*e.startarrowsize*e.arrowwidth||0,w=y+f,T=y-f,m;if(l===i){var k=ys.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:b}),S=ys.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,T=o?T-o:T,m=ys.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,b,T)});e._extremes[t]=m}});var hD=de((F1e,cD)=>{"use strict";var gte=nt(),yte=B0();cD.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(b){var y=s[b],w=null;o?w=yte(y,t.range):w=Math.pow(10,y),gte(w)||(w=null),a(f+b,w)}for(var p=0;p{"use strict";var Wm=U1(),vD=aD();dD.exports={moduleType:"component",name:"annotations",layoutAttributes:ku(),supplyLayoutDefaults:lD(),includeBasePlot:bc()("annotations"),calcAutorange:fD(),draw:Wm.draw,drawOne:Wm.drawOne,drawRaw:Wm.drawRaw,hasClickToShow:vD.hasClickToShow,onClick:vD.onClick,convertCoords:hD()}});var H1=de((z1e,gD)=>{"use strict";var Mt=ku(),mte=qn().overrideAll,xte=yt().templatedArray;gD.exports=mte(xte("annotation",{visible:Mt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Mt.xanchor,xshift:Mt.xshift,yanchor:Mt.yanchor,yshift:Mt.yshift,text:Mt.text,textangle:Mt.textangle,font:Mt.font,width:Mt.width,height:Mt.height,opacity:Mt.opacity,align:Mt.align,valign:Mt.valign,bgcolor:Mt.bgcolor,bordercolor:Mt.bordercolor,borderpad:Mt.borderpad,borderwidth:Mt.borderwidth,showarrow:Mt.showarrow,arrowcolor:Mt.arrowcolor,arrowhead:Mt.arrowhead,startarrowhead:Mt.startarrowhead,arrowside:Mt.arrowside,arrowsize:Mt.arrowsize,startarrowsize:Mt.startarrowsize,arrowwidth:Mt.arrowwidth,standoff:Mt.standoff,startstandoff:Mt.startstandoff,hovertext:Mt.hovertext,hoverlabel:Mt.hoverlabel,captureevents:Mt.captureevents}),"calc","from-root")});var mD=de((q1e,yD)=>{"use strict";var Xm=ir(),bte=Lt(),_te=ai(),wte=Vm(),Mte=H1();yD.exports=function(r,t,n){_te(r,t,{name:"annotations",handleItemDefaults:Tte,fullLayout:n.fullLayout})};function Tte(e,r,t,n){function a(l,u){return Xm.coerce(e,r,Mte,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],bte.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(wte(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Xm.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),Xm.noneOrAll(e,r,["ax","ay"])))}});var wD=de((O1e,_D)=>{"use strict";var xD=ir(),bD=Lt();_D.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Zm(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 kte(e,r){var t=Zm(e.projection,Zm(e.view,Zm(e.model,[r[0],r[1],r[2],1])));return t}MD.exports=kte});var AD=de((U1e,TD)=>{"use strict";var Ste=U1().drawRaw,Cte=Jm(),Ete=["x","y","z"];TD.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=Cte(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Ste(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var CD=de((H1e,SD)=>{"use strict";var Lte=Er(),kD=ir();SD.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:H1()}}},layoutAttributes:H1(),handleDefaults:mD(),includeBasePlot:Dte,convert:wD(),draw:AD()};function Dte(e,r){var t=Lte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var V1e=on(),ED=kn(),LD=ss().line,Rte=Ro().dash,vi=Tt().extendFlat,Pte=yt().templatedArray,G1e=mc(),zu=Sn(),DD=ku(),{shapeTexttemplateAttrs:Ite,templatefallbackAttrs:Fte}=ja(),Nte=Q0();RD.exports=Pte("shape",{visible:vi({},zu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vi({},zu.legend,{editType:"calc+arraydraw"}),legendgroup:vi({},zu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vi({},zu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:ED({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vi({},zu.legendrank,{editType:"calc+arraydraw"}),legendwidth:vi({},zu.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({},DD.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({},DD.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({},LD.color,{editType:"arraydraw"}),width:vi({},LD.width,{editType:"calc+arraydraw"}),dash:vi({},Rte,{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:Ite({},{keys:Object.keys(Nte)}),texttemplatefallback:Fte({editType:"arraydraw"}),font:ED({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 ID=de((W1e,PD)=>{"use strict";var qu=ir(),ba=Lt(),zte=ai(),qte=Km(),Bc=rl();PD.exports=function(r,t){zte(r,t,{name:"shapes",handleItemDefaults:Bte})};function Ote(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Bte(e,r,t){function n(S,x){return qu.coerce(e,r,qte,S,x)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),qu.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 b=[.25,.75],y=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?h:p,d={_fullLayout:t},_,g,c,A;let v=S+"ref",D=e[v];if(Array.isArray(D)&&D.length>0){let E=Bc.countDefiningCoords(u,i,S);A=ba.coerceRefArray(e,r,d,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=ba.coerceRef(e,r,d,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){ba.getRefType(E)==="range"&&(_=ba.getFromId(d,E),_&&_._shapeIndices.indexOf(r._index)===-1&&_._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];ba.getRefType(R)==="range"?(_=ba.getFromId(d,R),g=Bc.shapePositionToRange(_),c=Bc.rangeToShapePosition(_),(_.type==="category"||_.type==="multicategory")&&n(S+E+"shift")):g=c=qu.identity;let F=S+E,I=e[F];if(e[F]=g(e[F],!0),M==="pixel"?n(F,y[E]):ba.coercePosition(r,d,n,R,F,b[E]),r[F]=c(r[F]),e[F]=I,E===0&&M==="pixel"){let L=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,d,n,R,x,.25),r[x]=c(r[x]),e[x]=L}});else{if(ba.getRefType(A)==="range"?(_=ba.getFromId(d,A),_._shapeIndices.push(r._index),c=Bc.rangeToShapePosition(_),g=Bc.shapePositionToRange(_),s&&(_.type==="category"||_.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):g=c=qu.identity,s){let R=S+"0",N=S+"1",F=e[R],I=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,d,n,A,R,b[0]),ba.coercePosition(r,d,n,A,N,b[1])),r[R]=c(r[R]),r[N]=c(r[N]),e[R]=F,e[N]=I}if(M==="pixel"){let R=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,d,n,A,x,.25),r[x]=c(r[x]),e[x]=R}}}),s&&qu.noneOrAll(e,r,["x0","x1","y0","y1"]);var w=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",w?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Ote(w,k)),n("label.padding"),qu.coerceFont(n,"label.font",t.font)}}});var zD=de((X1e,ND)=>{"use strict";var Ute=Xr(),FD=ir();function Hte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ND.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"),FD.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",Ute.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",Hte(i,s)),n("newshape.label.padding"),FD.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var GD=de((Z1e,VD)=>{"use strict";var Qm=ir(),Ya=Lt(),Xi=Qf(),$m=rl();VD.exports=function(r){var t=r._fullLayout,n=Qm.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,OD(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=Ya.getFromId(r,o.xref),l=UD(i,o,Xi.paramIsX),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,OD(o))));if(s==="array"){let f=qD(r,o,"y");Object.entries(f).forEach(([h,p])=>{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,BD(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=Ya.getFromId(r,o.yref),l=UD(i,o,Xi.paramIsY),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,BD(o))))}};function qD(e,r,t){let n=r[t+"ref"],a=t==="x"?Xi.paramIsX:Xi.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(Xi.segmentRE)||[];for(var l=0,u=0;uy&&(o(n[l],w[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=$m.decodeDate(f)),s[p._id]=i[h].map(f)}}return s}function OD(e){return HD(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function BD(e){return HD(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function HD(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?$m.extractPathCoords(a,o?Xi.paramIsY:Xi.paramIsX):[t,n],s=Qm.aggNums(Math.max,null,u),f=Qm.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 UD(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,b=r.path.match(Xi.segmentRE),y,w,T,m,k;for(e.type==="date"&&(s=$m.decodeDate(s)),y=0;yp&&(p=k)));if(p>=h)return[h,p]}}});var XD=de((J1e,WD)=>{"use strict";var YD=Pv();WD.exports={moduleType:"component",name:"shapes",layoutAttributes:Km(),supplyLayoutDefaults:ID(),supplyDrawNewShapeDefaults:zD(),includeBasePlot:bc()("shapes"),calcAutorange:GD(),draw:YD.draw,drawOne:YD.drawOne}});var jm=de((Q1e,JD)=>{"use strict";var ZD=on(),Vte=yt().templatedArray,K1e=mc();JD.exports=Vte("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",ZD.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ZD.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var QD=de(($1e,KD)=>{"use strict";var Gte=ir(),e3=Lt(),Yte=ai(),Wte=jm(),Xte="images";KD.exports=function(r,t){var n={name:Xte,handleItemDefaults:Zte};Yte(r,t,n)};function Zte(e,r,t){function n(p,b){return Gte.coerce(e,r,Wte,p,b)}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=e3.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var h=e3.getFromId(i,f);h._imgIndices.push(r._index)}e3.coercePosition(r,i,n,f,s,0)}return r}});var rR=de((j1e,eR)=>{"use strict";var $D=it(),Jte=mt(),Ou=Lt(),jD=en(),Kte=Ho();eR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var tR=nt(),Qte=B0();nR.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";iR.exports={moduleType:"component",name:"images",layoutAttributes:jm(),supplyLayoutDefaults:QD(),includeBasePlot:bc()("images"),draw:rR(),convertCoords:aR()}});var V1=de((tde,lR)=>{"use strict";lR.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 r3=de((nde,uR)=>{"use strict";var $te=kn(),jte=Si(),ene=Tt().extendFlat,rne=qn().overrideAll,tne=$0(),sR=yt().templatedArray,nne=sR("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}});uR.exports=rne(sR("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:nne,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:ene(tne({editType:"arraydraw"}),{}),font:$te({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:jte.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var vR=de((ade,hR)=>{"use strict";var G1=ir(),fR=ai(),cR=r3(),ane=V1(),ine=ane.name,one=cR.buttons;hR.exports=function(r,t){var n={name:ine,handleItemDefaults:lne};fR(r,t,n)};function lne(e,r,t){function n(i,l){return G1.coerce(e,r,cR,i,l)}var a=fR(e,r,{name:"buttons",handleItemDefaults:sne}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),G1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),G1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function sne(e,r){function t(a,o){return G1.coerce(e,r,one,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 gR=de((ide,pR)=>{"use strict";pR.exports=Rt;var di=it(),dR=Xr(),Bu=mt(),Y1=ir();function Rt(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})}Rt.barWidth=2;Rt.barLength=20;Rt.barRadius=2;Rt.barPad=1;Rt.barColor="#808BA4";Rt.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",b=h==="left",y=h==="right",w=h==="up",T=u,m=f,k,S,x,M;!p&&!b&&!y&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(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,b?(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 _=u>T,g=Rt.barLength+2*Rt.barPad,c=Rt.barWidth+2*Rt.barPad,A=l,v=s+f;v+c>i&&(v=i-c);var D=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(dR.fill,Rt.barColor),_?(this.hbar=D.attr({rx:Rt.barRadius,ry:Rt.barRadius,x:A,y:v,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=Rt.barWidth+2*Rt.barPad,N=Rt.barLength+2*Rt.barPad,F=l+u,I=s;F+R>o&&(F=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(dR.fill,Rt.barColor),E?(this.vbar=L.attr({rx:Rt.barRadius,ry:Rt.barRadius,x:F,y:I,width:R,height:N}),this._vbarYMin=I+N/2,this._vbarTranslateMax=m-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+R+.5:S+.5,X=x-.5,$=_?M+c+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Bu.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(Bu.setClipUrl,null),delete this._clipRect),_||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));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Rt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Bu.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)};Rt.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)};Rt.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)};Rt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Y1.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=Y1.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)};Rt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Y1.constrain(r||0,0,n),t=Y1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Bu.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(Bu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Bu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var kR=de((ode,AR)=>{"use strict";var Uu=it(),Uc=ln(),Hc=Xr(),Hu=mt(),_a=ir(),W1=On(),une=yt().arrayEditor,mR=Cn().LINE_SPACING,Dr=V1(),fne=gR();AR.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[Dr.name]);function a(p){Uc.autoMargin(r,MR(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Uu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,cne);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var mne=V1();SR.exports={moduleType:"component",name:mne.name,layoutAttributes:r3(),supplyLayoutDefaults:vR(),draw:kR()}});var Gc=de((sde,ER)=>{"use strict";ER.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 i3=de((ude,RR)=>{"use strict";var LR=kn(),xne=$0(),bne=Tt().extendDeepAll,_ne=qn().overrideAll,wne=bf(),DR=yt().templatedArray,ms=Gc(),Mne=DR("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}});RR.exports=_ne(DR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Mne,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:bne(xne({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:wne.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:LR({})},font:LR({}),activebgcolor:{valType:"color",dflt:ms.gripBgActiveColor},bgcolor:{valType:"color",dflt:ms.railBgColor},bordercolor:{valType:"color",dflt:ms.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ms.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ms.tickLength},tickcolor:{valType:"color",dflt:ms.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ms.minorTickLength}}),"arraydraw","from-root")});var NR=de((fde,FR)=>{"use strict";var Vu=ir(),PR=ai(),IR=i3(),Tne=Gc(),Ane=Tne.name,kne=IR.steps;FR.exports=function(r,t){PR(r,t,{name:Ane,handleItemDefaults:Sne})};function Sne(e,r,t){function n(h,p){return Vu.coerce(e,r,IR,h,p)}for(var a=PR(e,r,{name:"steps",handleItemDefaults:Cne}),o=0,i=0;i{"use strict";var pi=it(),X1=ln(),sl=Xr(),gi=mt(),wa=ir(),Ene=wa.strTranslate,Yc=On(),Lne=yt().arrayEditor,Vr=Gc(),s3=Cn(),OR=s3.LINE_SPACING,o3=s3.FROM_TL,l3=s3.FROM_BR;YR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Dne(n,r),o=n._infolayer.selectAll("g."+Vr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Vr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),X1.autoMargin(r,BR(f))}if(o.exit().each(function(){pi.select(this).selectAll("g."+Vr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Vr.groupClassName).data(a,Rne);l.enter().append("g").classed(Vr.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",Ene(i-Vr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function u3(e,r){var t=e._dims;return t.inputAreaStart+Vr.stepInset+(t.inputAreaLength-2*Vr.stepInset)*Math.min(1,Math.max(0,r))}function qR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Vr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Vr.stepInset-2*t.inputAreaStart)))}function One(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Vr.railTouchRectClass,function(o){o.call(VR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Vr.tickOffset+t.ticklen+n.labelHeight)}).call(sl.fill,t.bgcolor).attr("opacity",0),gi.setTranslate(a,0,n.currentValueTotalHeight)}function Bne(e,r){var t=r._dims,n=t.inputAreaLength-Vr.railInset*2,a=wa.ensureSingle(e,"rect",Vr.railRectClass);a.attr({width:n,height:Vr.railWidth,rx:Vr.railRadius,ry:Vr.railRadius,"shape-rendering":"crispEdges"}).call(sl.stroke,r.bordercolor).call(sl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),gi.setTranslate(a,Vr.railInset,(t.inputAreaWidth-Vr.railWidth)*.5+t.currentValueTotalHeight)}});var ZR=de((hde,XR)=>{"use strict";var Une=Gc();XR.exports={moduleType:"component",name:Une.name,layoutAttributes:i3(),supplyLayoutDefaults:NR(),draw:WR()}});var J1=de((vde,KR)=>{"use strict";var JR=Si();KR.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 f3=de((dde,QR)=>{"use strict";QR.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 K1=de((pde,$R)=>{"use strict";$R.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 rP=de($1=>{"use strict";var Hne=en(),Vne=On(),jR=K1(),Gne=Cn().LINE_SPACING,Q1=jR.name;function eP(e){var r=e&&e[Q1];return r&&r.visible}$1.isVisible=eP;$1.makeData=function(e){for(var r=Hne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var j1=ir(),tP=yt(),nP=en(),Yne=J1(),Wne=f3();aP.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;j1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=tP.newContainer(o,"rangeslider");function u(M,d){return j1.coerce(i,l,Yne,M,d)}var s,f;function h(M,d){return j1.coerce(s,f,Wne,M,d)}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 b=t._subplots;if(b)for(var y=b.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===nP.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),w=j1.simpleMap(y,nP.id2name),T=0;T{"use strict";var Xne=en().list,Zne=uu().getAutoRange,Jne=K1();oP.exports=function(r){for(var t=Xne(r,"x",!0),n=0;n{"use strict";var ed=it(),Kne=Er(),Qne=ln(),qt=ir(),rd=qt.strTranslate,uP=mt(),ul=Xr(),$ne=Nf(),jne=Nm(),c3=en(),eae=oi(),rae=Ko(),Kr=K1();fP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)F=v[I+1];else if(N=L.pmax)F=v[I+1];else if(N0?e.touches[0].clientX:0}function tae(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Kr.slideBoxClassName).node(),o=e.select("rect."+Kr.grabAreaMinClassName).node(),i=e.select("rect."+Kr.grabAreaMaxClassName).node();function l(){var u=ed.event,s=u.target,f=sP(u),h=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),y=eae.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",T),y.addEventListener("mousemove",w),y.addEventListener("mouseup",T);function w(m){var k=sP(m),S=+k-f,x,M,d;switch(s){case a:if(d="ew-resize",p+S>t._length||b+S<0)return;x=p+S,M=b+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,M=b;break;case i:if(d="col-resize",b+S<0)return;x=p,M=b+S;break;default:d="ew-resize",x=h,M=h+S;break}if(M{"use strict";var hae=ir(),vae=J1(),dae=f3(),h3=rP();hP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:hae.extendFlat({},vae,{yaxis:dae})}}},layoutAttributes:J1(),handleDefaults:iP(),calcAutorange:lP(),draw:cP(),isVisible:h3.isVisible,makeData:h3.makeData,autoMarginOpts:h3.autoMarginOpts}});var td=de((_de,pP)=>{"use strict";var pae=kn(),dP=Si(),gae=yt().templatedArray,yae=gae("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"});pP.exports={visible:{valType:"boolean",editType:"plot"},buttons:yae,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:pae({editType:"plot"}),bgcolor:{valType:"color",dflt:dP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:dP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v3=de((wde,gP)=>{"use strict";gP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var xP=de((Mde,mP)=>{"use strict";var nd=ir(),mae=Xr(),xae=yt(),bae=ai(),yP=td(),d3=v3();mP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=xae.newContainer(t,"rangeselector");function u(b,y){return nd.coerce(i,l,yP,b,y)}var s=bae(i,l,{name:"buttons",handleItemDefaults:_ae,calendar:o}),f=u("visible",s.length>0);if(f){var h=wae(t,n,a);u("x",h[0]),u("y",h[1]),nd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),nd.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",mae.contrast(p,d3.lightAmount,d3.darkAmount)),u("bordercolor"),u("borderwidth")}};function _ae(e,r,t,n){var a=n.calendar;function o(u,s){return nd.coerce(e,r,yP.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 wae(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Mae=vp(),Tae=ir().titleCase;bP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Aae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Aae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Mae["utc"+Tae(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 EP=de((Ade,CP)=>{"use strict";var id=it(),kae=Er(),Sae=ln(),wP=Xr(),SP=mt(),xo=ir(),MP=xo.strTranslate,ad=On(),Cae=en(),y3=Cn(),TP=y3.LINE_SPACING,AP=y3.FROM_TL,kP=y3.FROM_BR,g3=v3(),Eae=_P();CP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Lae(r),Dae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=id.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=id.select(this),h=Eae(i,s);s._isActive=Rae(i,s,h),f.call(p3,l,s),f.call(Iae,l,s,r),f.on("click",function(){r._dragged||kae.call("_guiRelayout",r,h)}),f.on("mouseover",function(){s._isHovered=!0,f.call(p3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(p3,l,s)})}),Nae(r,u,l,i._name,o)})};function Lae(e){for(var r=Cae.list(e,"x",!0),t=[],n=0;n{"use strict";LP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:td()}}},layoutAttributes:td(),handleDefaults:xP(),draw:EP()}});var od=de(m3=>{"use strict";var RP=Tt().extendFlat;m3.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:RP({},t,{}),y:RP({},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};m3.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 zae=ir(),qae=Os().counter,Oae=od().attributes,PP=on().idRegex,Bae=yt(),x3={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:[qae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PP.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:Oae({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 ld(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 Uae(e,r){var t=e.grid||{},n=ld(r,t,"x"),a=ld(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=Bae.newContainer(r,"grid");function p(d,_){return zae.coerce(t,h,x3,d,_)}var b=p("rows",s),y=p("columns",f);if(!(b*y>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(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:IP("x",p,k,x,y),y:IP("y",p,S,M,b,m)}}function IP(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";qP.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 UP=de((Lde,BP)=>{"use strict";var OP=nt(),Vae=Er(),Gae=ir(),Yae=yt(),Wae=b3();BP.exports=function(e,r,t,n){var a="error_"+n.axis,o=Yae.newContainer(r,a),i=e[a]||{};function l(y,w){return Gae.coerce(i,o,Wae,y,w)}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 b=r["error_"+n.inherit];(b||{}).visible&&l(p,!(i.color||OP(i.thickness)||OP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",Vae.traceIs(r,"gl3d")?0:4))}}});var _3=de((Dde,VP)=>{"use strict";VP.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=HP(t,r.value),l=HP(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 HP(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 WP=de((Rde,YP)=>{"use strict";var w3=nt(),Xae=Er(),M3=Lt(),Zae=ir(),Jae=_3();YP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var XP=it(),fl=nt(),Kae=mt(),Qae=la();ZP.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||{},b=h.error_y||{},y;h.ids&&(y=function(k){return k.id});var w=Qae.hasMarkers(h)&&h.marker.maxdisplayed>0;!b.visible&&!p.visible&&(f=[]);var T=XP.select(this).selectAll("g.errorbar").data(f,y);if(T.exit().remove(),!!f.length){p.visible||T.selectAll("path.xerror").remove(),b.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),Kae.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=XP.select(this),x=$ae(k,i,l);if(!(w&&!k.vis)){var M,d=S.select("path.yerror");if(b.visible&&fl(x.x)&&fl(x.yh)&&fl(x.ys)){var _=b.width;M="M"+(x.x-_)+","+x.yh+"h"+2*_+"m-"+_+",0V"+x.ys,x.noYS||(M+="m-"+_+",0h"+2*_),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",M)}else d.remove();var g=S.select("path.xerror");if(p.visible&&fl(x.y)&&fl(x.xh)&&fl(x.xs)){var c=(p.copy_ystyle?b: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 $ae(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 $P=de((Ide,QP)=>{"use strict";var jae=it(),KP=Xr();QP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=jae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(KP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(KP.stroke,o.color)})}});var rI=de((Fde,eI)=>{"use strict";var Wc=ir(),jP=qn().overrideAll,Xc=b3(),xs={error_x:Wc.extendFlat({},Xc),error_y:Wc.extendFlat({},Xc)};delete xs.error_x.copy_zstyle;delete xs.error_y.copy_zstyle;delete xs.error_y.copy_ystyle;var Zc={error_x:Wc.extendFlat({},Xc),error_y:Wc.extendFlat({},Xc),error_z:Wc.extendFlat({},Xc)};delete Zc.error_x.copy_ystyle;delete Zc.error_y.copy_ystyle;delete Zc.error_z.copy_ystyle;delete Zc.error_z.copy_zstyle;eI.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:xs,bar:xs,histogram:xs,scatter3d:jP(Zc,"calc","nested"),scattergl:jP(xs,"calc","nested")}},supplyDefaults:UP(),calc:WP(),makeComputeError:_3(),plot:JP(),style:$P(),hoverInfo:eie};function eie(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 nI=de((Nde,tI)=>{"use strict";tI.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 fI=de((zde,uI)=>{"use strict";var cl=it(),T3=Sa(),ud=ln(),aI=Er(),bo=Lt(),sd=oi(),Wa=ir(),mi=Wa.strTranslate,sI=Tt().extendFlat,A3=Ko(),yi=mt(),k3=Xr(),rie=Nf(),tie=On(),nie=Ei().flipScale,aie=R1(),iie=Pm(),oie=Da(),S3=Cn(),iI=S3.LINE_SPACING,oI=S3.FROM_TL,lI=S3.FROM_BR,Dt=nI().cn;function lie(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Dt.colorbar).data(sie(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=uie(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&fie(a,n,e)}),t.exit().each(function(n){ud.autoMargin(e,n._id)}).remove(),t.order()}function sie(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return sI(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?nie(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var ee=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));oe*=ee*Wa.roundUp(V/ee,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(ae.tick0=0)}ae.dtick=oe}ae.domain=n?[q+y/x.h,q+P-y/x.h]:[q+b/x.w,q+P-b/x.w],ae.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))),te=ae.ticklabelposition,le=ae.title.font.size,ve=e.select("."+Dt.cbaxis),Ae,we=0,ce=0;function Se(Ue,ge){var Me={propContainer:ae,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Dt.cbtitle)},ke=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+ke+",."+ke+"-math-group").remove(),rie.draw(t,Ue,sI(Me,ge||{}))}function Ce(){if(n&&K||!n&&!K){var Ue,ge;g==="top"&&(Ue=b+x.l+O*w,ge=y+x.t+U*(1-q-P)+3+le*.75),g==="bottom"&&(Ue=b+x.l+O*w,ge=y+x.t+U*(1-q)-3-le*.25),g==="right"&&(ge=y+x.t+U*T+3+le*.75,Ue=b+x.l+O*q),Se(ae._id+"title",{attributes:{x:Ue,y:ge,"text-anchor":n?"start":"middle"}})}}function Fe(){if(n&&!K||!n&&K){var Ue=ae.position||0,ge=ae._offset+ae._length/2,Me,ke;if(g==="right")ke=ge,Me=x.l+O*Ue+10+le*(ae.showticklabels?1:.5);else if(Me=ge,g==="bottom"&&(ke=x.t+U*Ue+10+(te.indexOf("inside")===-1?ae.tickfont.size:0)+(ae.ticks!=="inside"&&r.ticklen||0)),g==="top"){var me=_.text.split("
").length;ke=x.t+U*Ue+10-F-iI*le*me}Se((n?"h":"v")+ae._id+"title",{avoid:{selection:cl.select(t).selectAll("g."+ae._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:Me,y:ke,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Ee(){if(!n&&!K||n&&K){var Ue=e.select("."+Dt.cbtitle),ge=Ue.select("text"),Me=[-u/2,u/2],ke=Ue.select(".h"+ae._id+"title-math-group").node(),me=15.6;ge.node()&&(me=parseInt(ge.node().style.fontSize,10)*iI);var ye;if(ke?(ye=yi.bBox(ke),ce=ye.width,we=ye.height,we>me&&(Me[1]-=(we-me)/2)):ge.node()&&!ge.classed(Dt.jsPlaceholder)&&(ye=yi.bBox(ge.node()),ce=ye.width,we=ye.height),n){if(we){if(we+=5,g==="top")ae.domain[1]-=we/x.h,Me[1]*=-1;else{ae.domain[0]+=we/x.h;var pe=tie.lineCount(ge);Me[1]+=(1-pe)*me}Ue.attr("transform",mi(Me[0],Me[1])),ae.setScale()}}else ce&&(g==="right"&&(ae.domain[0]+=(ce+le/2)/x.w),Ue.attr("transform",mi(Me[0],Me[1])),ae.setScale())}e.selectAll("."+Dt.cbfills+",."+Dt.cblines).attr("transform",n?mi(0,Math.round(x.h*(1-ae.domain[1]))):mi(Math.round(x.w*ae.domain[0]),0)),ve.attr("transform",n?mi(0,Math.round(-x.t)):mi(Math.round(-x.l),0));var he=e.select("."+Dt.cbfills).selectAll("rect."+Dt.cbfill).attr("style","").data(R);he.enter().append("rect").classed(Dt.cbfill,!0).attr("style",""),he.exit().remove();var xe=c.map(ae.c2p).map(Math.round).sort(function(Ve,Be){return Ve-Be});he.each(function(Ve,Be){var Ye=[Be===0?c[0]:(R[Be]+R[Be-1])/2,Be===R.length-1?c[1]:(R[Be]+R[Be+1])/2].map(ae.c2p).map(Math.round);n&&(Ye[1]=Wa.constrain(Ye[1]+(Ye[1]>Ye[0])?1:-1,xe[0],xe[1]));var Te=cl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",cl.min(Ye)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(cl.max(Ye)-cl.min(Ye),2));if(r._fillgradient)yi.gradient(Te,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Re=v(Ve).replace("e-","");Te.attr("fill",T3(Re).toHexString())}});var Le=e.select("."+Dt.cblines).selectAll("path."+Dt.cbline).data(d.color&&d.width?N:[]);Le.enter().append("path").classed(Dt.cbline,!0),Le.exit().remove(),Le.each(function(Ve){var Be=X,Ye=Math.round(ae.c2p(Ve))+d.width/2%1;cl.select(this).attr("d","M"+(n?Be+","+Ye:Ye+","+Be)+(n?"h":"v")+F).call(yi.lineGroupStyle,d.width,A(Ve),d.dash)}),ve.selectAll("g."+ae._id+"tick,path").remove();var qe=X+F+(u||0)/2-(r.ticks==="outside"?1:0),Ne=bo.calcTicks(ae),$e=bo.getTickSigns(ae)[2];return bo.drawTicks(t,ae,{vals:ae.ticks==="inside"?bo.clipEnds(ae,Ne):Ne,layer:ve,path:bo.makeTickPath(ae,qe,$e),transFn:bo.makeTransTickFn(ae)}),bo.drawLabels(t,ae,{vals:Ne,layer:ve,transFn:bo.makeTransTickLabelFn(ae),labelFns:bo.makeLabelFns(ae,qe)})}function ze(){var Ue,ge=F+u/2;te.indexOf("inside")===-1&&(Ue=yi.bBox(ve.node()),ge+=n?Ue.width:Ue.height),Ae=H.select("text");var Me=0,ke=n&&g==="top",me=!n&&g==="right",ye=0;if(Ae.node()&&!Ae.classed(Dt.jsPlaceholder)){var pe,he=H.select(".h"+ae._id+"title-math-group").node();he&&(n&&K||!n&&!K)?(Ue=yi.bBox(he),Me=Ue.width,pe=Ue.height):(Ue=yi.bBox(H.node()),Me=Ue.right-x.l-(n?X:Q),pe=Ue.bottom-x.t-(n?Q:X),!n&&g==="top"&&(ge+=Ue.height,ye=Ue.height)),me&&(Ae.attr("transform",mi(Me/2+le/2,0)),Me*=2),ge=Math.max(ge,n?Me:pe)}var xe=(n?b:y)*2+ge+s+u/2,Le=0;!n&&_.text&&p==="bottom"&&T<=0&&(Le=xe/2,xe+=Le,ye+=Le),S._hColorbarMoveTitle=Le,S._hColorbarMoveCBTitle=ye;var qe=s+u,Ne=(n?X:Q)-qe/2-(n?b:0),$e=(n?Q:X)-(n?L:y+ye-Le);e.select("."+Dt.cbbg).attr("x",Ne).attr("y",$e).attr(n?"width":"height",Math.max(xe-Le,2)).attr(n?"height":"width",Math.max(L+qe,2)).call(k3.fill,f).call(k3.stroke,r.bordercolor).style("stroke-width",s);var Ve=me?Math.max(Me-10,0):0;e.selectAll("."+Dt.cboutline).attr("x",(n?X:Q+b)+Ve).attr("y",(n?Q+y-L:X)+(ke?we:0)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(L-(n?2*y+we:2*b+Ve),2)).call(k3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Be=n?$*xe:0,Ye=n?0:(1-j)*xe-ye;if(Be=k?x.l-Be:-Be,Ye=m?x.t-Ye:-Ye,e.attr("transform",mi(Be,Ye)),!n&&(s||T3(f).getAlpha()&&!T3.equals(S.paper_bgcolor,f))){var Te=ve.selectAll("text"),Re=Te[0].length,Qe=e.select("."+Dt.cbbg).node(),Ke=yi.bBox(Qe),ar=yi.getTranslate(e),ue=2;Te.each(function(Mr,Ar){var ft=0,sr=Re-1;if(Ar===ft||Ar===sr){var Pr=yi.bBox(this),$r=yi.getTranslate(this),Fr;if(Ar===sr){var Gr=Pr.right+$r.x,pt=Ke.right+ar.x+Q-s-ue+w;Fr=pt-Gr,Fr>0&&(Fr=0)}else if(Ar===ft){var Rr=Pr.left+$r.x,jr=Ke.left+ar.x+Q+s+ue;Fr=jr-Rr,Fr<0&&(Fr=0)}Fr&&(Re<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var J={},ne=oI[h],De=lI[h],He=oI[p],er=lI[p],nr=xe-F;n?(o==="pixels"?(J.y=T,J.t=L*He,J.b=L*er):(J.t=J.b=0,J.yt=T+a*He,J.yb=T-a*er),l==="pixels"?(J.x=w,J.l=xe*ne,J.r=xe*De):(J.l=nr*ne,J.r=nr*De,J.xl=w-i*ne,J.xr=w+i*De)):(o==="pixels"?(J.x=w,J.l=L*ne,J.r=L*De):(J.l=J.r=0,J.xl=w+a*ne,J.xr=w-a*De),l==="pixels"?(J.y=1-T,J.t=xe*He,J.b=xe*er):(J.t=nr*He,J.b=nr*er,J.yt=T-i*He,J.yb=T+i*er));var fr=r.y<.5?"b":"t",br=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-Ne-Be,l:Ne+J.r,b:S.height-$e-Ye,t:$e+J.b};k&&m?ud.autoMargin(t,r._id,J):k?t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]:m||n?t._fullLayout._reservedMargin[r._id][br]=Sr[br]:t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]}return Wa.syncOrAsync([ud.previousPromises,Ce,Ee,Fe,ud.previousPromises,ze],t)}function fie(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;sd.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),A3(e)},moveFn:function(s,f){e.attr("transform",i+mi(s,f)),l=sd.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=sd.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var h=sd.getCursor(l,u,r.xanchor,r.yanchor);A3(e,h)},doneFn:function(){if(A3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?aI.call("_guiRestyle",t,s,r._traceIndex):aI.call("_guiRelayout",t,s)}}})}function cie(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";cI.exports={moduleType:"component",name:"colorbar",attributes:Sh(),supplyDefaults:Cg(),draw:fI().draw,hasColorbar:yg()}});var dI=de((Ode,vI)=>{"use strict";vI.exports={moduleType:"component",name:"legend",layoutAttributes:T2(),supplyLayoutDefaults:k2(),draw:B2(),style:N2()}});var gI=de((Bde,pI)=>{"use strict";pI.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 mI=de((Ude,yI)=>{"use strict";yI.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var E3=de((Hde,wI)=>{"use strict";var vie=Er(),_I=ir(),C3=_I.extendFlat,xI=_I.extendDeep;function bI(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 die(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}wI.exports=function(r,t){var n,a=r.data,o=r.layout,i=xI([],a),l=xI({},o,bI(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 pie=dh().EventEmitter,gie=Er(),yie=ir(),MI=us(),mie=E3(),xie=g1(),bie=y1();function _ie(e,r){var t=new pie,n=mie(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=MI.getDelay(a._fullLayout);setTimeout(function(){var u=xie(a),s=document.createElement("canvas");s.id=yie.randstr(),t=bie({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=MI.getRedrawFunc(a);return gie.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}TI.exports=_ie});var CI=de((Gde,SI)=>{"use strict";var kI=us(),wie={getDelay:kI.getDelay,getRedrawFunc:kI.getRedrawFunc,clone:E3(),toSVG:g1(),svgToImg:y1(),toImage:AI(),downloadImage:am()};SI.exports=wie});var LI=de(_o=>{"use strict";_o.version=L0().version;mb();lw();var Mie=Er(),Jc=_o.register=Mie.register,D3=EC(),EI=Object.keys(D3);for(fd=0;fd{"use strict";DI.exports=LI()});var pn=de((Xde,PI)=>{(function(){var e={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,b=l(s);return f[0]=h-b.left,f[1]=p-b.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[2],p=l[0]-f,b=l[2]-h,y=Math.sin(s),w=Math.cos(s);return i[0]=f+b*y+p*w,i[1]=l[1],i[2]=h+b*w-p*y,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}},216:function(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s1){y[0]in p||(p[y[0]]=[]),p=p[y[0]];for(var w=1;w=0;--L){var Q=F[L];P=Q[0];var ae=R[P],K=ae[0],oe=ae[1],re=E[K],V=E[oe];if((re[0]-V[0]||re[1]-V[1])<0){var ee=K;K=oe,oe=ee}ae[0]=K;var H=ae[1]=Q[1],te;for(I&&(te=ae[2]);L>0&&F[L-1][0]===P;){var Q=F[--L],le=Q[1];I?R.push([H,le,te]):R.push([H,le]),H=le}I?R.push([H,oe,te]):R.push([H,oe])}return O}function d(E,R,N){for(var F=R.length,I=new l(F),L=[],P=0;PR[2]?1:0)}function c(E,R,N){if(E.length!==0){if(R)for(var F=0;F0||P.length>0}function D(E,R,N){var F;if(N){F=R;for(var I=new Array(R.length),L=0;L/g," ");var O="",U=[];for(V=0;V-1?parseInt(ge[1+me]):0,he=ye>-1?parseInt(Me[1+ye]):0;pe!==he&&(ke=ke.replace(we(),"?px "),te*=Math.pow(.75,he-pe),ke=ke.replace("?px ",we())),H+=.25*q*(he-pe)}if(P.superscripts===!0){var xe=ge.indexOf(k),Le=Me.indexOf(k),qe=xe>-1?parseInt(ge[1+xe]):0,Ne=Le>-1?parseInt(Me[1+Le]):0;qe!==Ne&&(ke=ke.replace(we(),"?px "),te*=Math.pow(.75,Ne-qe),ke=ke.replace("?px ",we())),H-=.25*q*(Ne-qe)}if(P.bolds===!0){var $e=ge.indexOf(y)>-1,Ve=Me.indexOf(y)>-1;!$e&&Ve&&(Be?ke=ke.replace("italic ","italic bold "):ke="bold "+ke),$e&&!Ve&&(ke=ke.replace("bold ",""))}if(P.italics===!0){var Be=ge.indexOf(T)>-1,Ye=Me.indexOf(T)>-1;!Be&&Ye&&(ke="italic "+ke),Be&&!Ye&&(ke=ke.replace("italic ",""))}N.font=ke}for(re=0;re0&&(L=I.size),I.lineSpacing&&I.lineSpacing>0&&(P=I.lineSpacing),I.styletags&&I.styletags.breaklines&&(O.breaklines=!!I.styletags.breaklines),I.styletags&&I.styletags.bolds&&(O.bolds=!!I.styletags.bolds),I.styletags&&I.styletags.italics&&(O.italics=!!I.styletags.italics),I.styletags&&I.styletags.subscripts&&(O.subscripts=!!I.styletags.subscripts),I.styletags&&I.styletags.superscripts&&(O.superscripts=!!I.styletags.superscripts)),F.font=[I.fontStyle,I.fontVariant,I.fontWeight,L+"px",I.font].filter(function(X){return X}).join(" "),F.textAlign="start",F.textBaseline="alphabetic",F.direction="ltr";var U=c(N,F,R,L,P,O);return D(U,I,L)}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},7765:function(a,o,i){"use strict";a.exports=m;var l=i(9618),u=i(1888),s=i(446),f=i(1570);function h(k){for(var S=k.length,x=0,M=0;MR||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[v,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,v,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,v,D,E,R,N){this.gl=A,this.handle=v,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 F=this,I=[this._wrapS,this._wrapT];Object.defineProperties(I,[{get:function(){return F._wrapS},set:function(P){return F.wrapS=P}},{get:function(){return F._wrapT},set:function(P){return F.wrapT=P}}]),this._wrapVector=I;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return F._shape[0]},set:function(P){return F.width=P}},{get:function(){return F._shape[1]},set:function(P){return F.height=P}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var v=this.gl;if(this.type===v.FLOAT&&f.indexOf(A)>=0&&(v.getExtension("OES_texture_float_linear")||(A=v.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var v=this.gl;if(this.type===v.FLOAT&&f.indexOf(A)>=0&&(v.getExtension("OES_texture_float_linear")||(A=v.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return v.texParameteri(v.TEXTURE_2D,v.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var v=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,v!==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 v=0;v<2;++v)if(p.indexOf(A[v])<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 v=this.gl;return A!==void 0&&v.activeTexture(v.TEXTURE0+(A|0)),v.bindTexture(v.TEXTURE_2D,this.handle),A!==void 0?A|0:v.getParameter(v.ACTIVE_TEXTURE)-v.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]),v=0;A>0;++v,A>>>=1)this._mipLevels.indexOf(v)<0&&this._mipLevels.push(v)},k.setPixels=function(A,v,D,E){var R=this.gl;this.bind(),Array.isArray(v)?(E=D,D=v[1]|0,v=v[0]|0):(v=v||0,D=D||0),E=E||0;var N=y(A)?A:A.raw;if(N){var F=this._mipLevels.indexOf(E)<0;F?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,v,D,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||v+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||v<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(R,v,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,v){return A.length===3?v[2]===1&&v[1]===A[0]*A[2]&&v[0]===A[2]:v[0]===1&&v[1]===A[0]}function x(A,v,D,E,R,N,F,I){var L=I.dtype,P=I.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,X=S(P,I.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)U=A.LUMINANCE,P=[P[0],P[1],1],I=l(I.data,P,[I.stride[0],I.stride[1],1],I.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=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((U===A.LUMINANCE||U===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(U=R),U!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=I.size,Y=F.indexOf(E)<0;if(Y&&F.push(E),O===N&&X)I.offset===0&&I.data.length===j?Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,I.data):A.texSubImage2D(A.TEXTURE_2D,E,v,D,P[0],P[1],R,N,I.data):Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,I.data.subarray(I.offset,I.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,v,D,P[0],P[1],R,N,I.data.subarray(I.offset,I.offset+j));else{var q;N===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var Q=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?w(Q,I):u.assign(Q,I),Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,v,D,P[0],P[1],R,N,q.subarray(0,j)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var v=A.createTexture();return A.bindTexture(A.TEXTURE_2D,v),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),v}function d(A,v,D,E,R){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(v<0||v>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 F=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,v,D,0,E,R,null),new m(A,F,v,D,E,R)}function _(A,v,D,E,R,N){var F=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,N,v),new m(A,F,D,E,R,N)}function g(A,v){var D=v.dtype,E=v.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,v.stride.slice()),F=0;D==="float32"?F=A.FLOAT:D==="float64"?(F=A.FLOAT,N=!1,D="float32"):D==="uint8"?F=A.UNSIGNED_BYTE:(F=A.UNSIGNED_BYTE,N=!1,D="uint8");var I=0;if(E.length===2)I=A.LUMINANCE,E=[E[0],E[1],1],v=l(v.data,E,[v.stride[0],v.stride[1],1],v.offset);else if(E.length===3)if(E[2]===1)I=A.ALPHA;else if(E[2]===2)I=A.LUMINANCE_ALPHA;else if(E[2]===3)I=A.RGB;else if(E[2]===4)I=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");F===A.FLOAT&&!A.getExtension("OES_texture_float")&&(F=A.UNSIGNED_BYTE,N=!1);var L,P,O=v.size;if(N)v.offset===0&&v.data.length===O?L=v.data:L=v.data.subarray(v.offset,v.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,D);var X=l(P,E,U,0);(D==="float32"||D==="float64")&&F===A.UNSIGNED_BYTE?w(X,v):u.assign(X,v),L=P.subarray(0,O)}var $=M(A);return A.texImage2D(A.TEXTURE_2D,0,I,E[0],E[1],0,I,F,L),N||s.free(P),new m(A,$,E[0],E[1],I,F)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var v=arguments[1],D=y(v)?v:v.raw;if(D)return _(A,D,v.width|0,v.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(v.shape&&v.data&&v.stride)return g(A,v)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},7790:function(){},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,d,_){for(var g=x.points,c=x.velocities,A=x.divergences,v=[],D=[],E=[],R=[],N=[],F=[],I=0,L=0,P=u.create(),O=u.create(),U=8,X=0;X0)for(var q=0;qM)return _-1}return _},b=function(x,M,d){return xd?d:x},y=function(x,M,d){var _=M.vectors,g=M.meshgrid,c=x[0],A=x[1],v=x[2],D=g[0].length,E=g[1].length,R=g[2].length,N=p(g[0],c),F=p(g[1],A),I=p(g[2],v),L=N+1,P=F+1,O=I+1;if(N=b(N,0,D-1),L=b(L,0,D-1),F=b(F,0,E-1),P=b(P,0,E-1),I=b(I,0,R-1),O=b(O,0,R-1),N<0||F<0||I<0||L>D-1||P>E-1||O>R-1)return l.create();var U=g[0][N],X=g[0][L],$=g[1][F],j=g[1][P],Y=g[2][I],q=g[2][O],Q=(c-U)/(X-U),ae=(A-$)/(j-$),K=(v-Y)/(q-Y);isFinite(Q)||(Q=.5),isFinite(ae)||(ae=.5),isFinite(K)||(K=.5);var oe,re,V,ee,H,te;switch(d.reversedX&&(N=D-1-N,L=D-1-L),d.reversedY&&(F=E-1-F,P=E-1-P),d.reversedZ&&(I=R-1-I,O=R-1-O),d.filled){case 5:H=I,te=O,V=F*R,ee=P*R,oe=N*R*E,re=L*R*E;break;case 4:H=I,te=O,oe=N*R,re=L*R,V=F*R*D,ee=P*R*D;break;case 3:V=F,ee=P,H=I*E,te=O*E,oe=N*E*R,re=L*E*R;break;case 2:V=F,ee=P,oe=N*E,re=L*E,H=I*E*D,te=O*E*D;break;case 1:oe=N,re=L,H=I*D,te=O*D,V=F*D*R,ee=P*D*R;break;default:oe=N,re=L,V=F*D,ee=P*D,H=I*D*E,te=O*D*E;break}var le=_[oe+V+H],ve=_[oe+V+te],Ae=_[oe+ee+H],we=_[oe+ee+te],ce=_[re+V+H],Se=_[re+V+te],Ce=_[re+ee+H],Fe=_[re+ee+te],Ee=l.create(),ze=l.create(),Ue=l.create(),ge=l.create();l.lerp(Ee,le,ce,Q),l.lerp(ze,ve,Se,Q),l.lerp(Ue,Ae,Ce,Q),l.lerp(ge,we,Fe,Q);var Me=l.create(),ke=l.create();l.lerp(Me,Ee,Ue,ae),l.lerp(ke,ze,ge,ae);var me=l.create();return l.lerp(me,Me,ke,K),me},w=function(x,M){var d=M[0],_=M[1],g=M[2];return x[0]=d<0?-d:d,x[1]=_<0?-_:_,x[2]=g<0?-g:g,x},T=function(x){var M=1/0;x.sort(function(c,A){return c-A});for(var d=x.length,_=1;_L||FeP||EeO)},X=l.distance(M[0],M[1]),$=10*X/_,j=$*$,Y=1,q=0,Q=d.length;Q>1&&(Y=m(d));for(var ae=0;aeq&&(q=le),H.push(le),R.push({points:oe,velocities:re,divergences:H});for(var ve=0;ve<_*100&&oe.length<_&&U(K);){ve++;var Ae=l.clone(V),we=l.squaredLength(Ae);if(we===0)break;if(we>j&&l.scale(Ae,Ae,$/Math.sqrt(we)),l.add(Ae,Ae,K),V=D(Ae),l.squaredDistance(ee,Ae)-j>-1e-4*j){oe.push(Ae),ee=Ae,re.push(V);var te=E(Ae,V),le=l.length(te);isFinite(le)&&le>q&&(q=le),H.push(le)}K=Ae}}var ce=h(R,x.colormap,q,Y);return c?ce.tubeScale=c:(q===0&&(q=1),ce.tubeScale=g*.5*Y/q),ce};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,M){return S(x,M,{shaders:k,traceType:"streamtube"})}},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},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=b;function b(y,w){if(l(y))return w?p(y,b(w)):[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(w))m.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),T+=256;k=s(w)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),h(m,k)}},7894:function(a){a.exports=o;function o(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},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"])},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}},8105:function(a){"use strict";a.exports=i;var o={"lo===p0":l,"lo=p0)&&!(p1>=hi)":b};function i(y){return o[y]}function l(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+c];if(D===x)if(g===v)g+=1,_+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[_],k[_++]=R}var N=S[v];S[v]=S[g],S[g++]=N}}return g}function u(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+c];if(DE;++E){var R=k[d+E];k[d+E]=k[_],k[_++]=R}var N=S[v];S[v]=S[g],S[g++]=N}}return g}function s(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+A];if(D<=x)if(g===v)g+=1,_+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[_],k[_++]=R}var N=S[v];S[v]=S[g],S[g++]=N}}return g}function f(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+A];if(D<=x)if(g===v)g+=1,_+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[_],k[_++]=R}var N=S[v];S[v]=S[g],S[g++]=N}}return g}function h(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+c],E=k[d+A];if(D<=x&&x<=E)if(g===v)g+=1,_+=M;else{for(var R=0;M>R;++R){var N=k[d+R];k[d+R]=k[_],k[_++]=N}var F=S[v];S[v]=S[g],S[g++]=F}}return g}function p(y,w,T,m,k,S,x){for(var M=2*y,d=M*T,_=d,g=T,c=w,A=y+w,v=T;m>v;++v,d+=M){var D=k[d+c],E=k[d+A];if(DR;++R){var N=k[d+R];k[d+R]=k[_],k[_++]=N}var F=S[v];S[v]=S[g],S[g++]=F}}return g}function b(y,w,T,m,k,S,x,M){for(var d=2*y,_=d*T,g=_,c=T,A=w,v=y+w,D=T;m>D;++D,_+=d){var E=k[_+A],R=k[_+v];if(!(E>=x)&&!(M>=R))if(c===D)c+=1,g+=d;else{for(var N=0;d>N;++N){var F=k[_+N];k[_+N]=k[g],k[g++]=F}var I=S[D];S[D]=S[c],S[c++]=I}}return c}},8107: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}},8116:function(a,o,i){"use strict";var l=i(7518),u=i(870);function s(h){this.bindVertexArrayOES=h.bindVertexArray.bind(h),this.createVertexArrayOES=h.createVertexArray.bind(h),this.deleteVertexArrayOES=h.deleteVertexArray.bind(h)}function f(h,p,b,y){var w=h.createVertexArray?new s(h):h.getExtension("OES_vertex_array_object"),T;return w?T=l(h,w):T=u(h),T.update(p,b,y),T}a.exports=f},8192:function(a,o,i){a.exports=f;var l=i(2825),u=i(3536),s=i(244);function f(h,p){var b=l(h[0],h[1],h[2]),y=l(p[0],p[1],p[2]);u(b,b),u(y,y);var w=s(b,y);return w>1?0:Math.acos(w)}},8210:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,h=s-f,p=u-f,b=l-h,y=b+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),b=0,y=0,w=0,T=Math.abs,m=l[y],k=T(m),S=u[w],x=T(S),M,d;k=f?(M=m,y+=1,yb)for(var D=p[m],E=1/Math.sqrt(g*A),v=0;v<3;++v){var R=(v+1)%3,N=(v+2)%3;D[v]+=E*(c[R]*_[N]-c[N]*_[R])}}for(var y=0;yb)for(var E=1/Math.sqrt(F),v=0;v<3;++v)D[v]*=E;else for(var v=0;v<3;++v)D[v]=0}return p},o.faceNormals=function(u,s,f){for(var h=u.length,p=new Array(h),b=f===void 0?l:f,y=0;yb?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)x[m]*=M;p[y]=x}return p}},8418:function(a,o,i){"use strict";var l=i(5219),u=i(2762),s=i(8116),f=i(1888),h=i(6760),p=i(1283),b=i(9366),y=i(5964),w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,m=DataView;function k(K){return T.isView(K)&&!(K instanceof m)}function S(K){return Array.isArray(K)||k(K)}a.exports=ae;function x(K,oe){var re=K[0],V=K[1],ee=K[2],H=K[3];return K[0]=oe[0]*re+oe[4]*V+oe[8]*ee+oe[12]*H,K[1]=oe[1]*re+oe[5]*V+oe[9]*ee+oe[13]*H,K[2]=oe[2]*re+oe[6]*V+oe[10]*ee+oe[14]*H,K[3]=oe[3]*re+oe[7]*V+oe[11]*ee+oe[15]*H,K}function M(K,oe,re,V){return x(V,V,re),x(V,V,oe),x(V,V,K)}function d(K,oe){this.index=K,this.dataCoordinate=this.position=oe}function _(K){return K===!0||K>1?1:K}function g(K,oe,re,V,ee,H,te,le,ve,Ae,we,ce){this.gl=K,this.pixelRatio=1,this.shader=oe,this.orthoShader=re,this.projectShader=V,this.pointBuffer=ee,this.colorBuffer=H,this.glyphBuffer=te,this.idBuffer=le,this.vao=ve,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=Ae,this.pickOrthoShader=we,this.pickProjectShader=ce,this.points=[],this._selectResult=new d(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(K){this.pickId=K},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var K=0;K<3;++K)if(this.axesProject[K]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var K=0;K<3;++K)if(this.axesProject[K]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],v=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],N=w.slice(),F=[0,0,0],I=[[0,0,0],[0,0,0]];function L(K){return K[0]=K[1]=K[2]=0,K}function P(K,oe){return K[0]=oe[0],K[1]=oe[1],K[2]=oe[2],K[3]=1,K}function O(K,oe,re,V){return K[0]=oe[0],K[1]=oe[1],K[2]=oe[2],K[re]=V,K}function U(K){for(var oe=I,re=0;re<2;++re)for(var V=0;V<3;++V)oe[re][V]=Math.max(Math.min(K[re][V],1e8),-1e8);return oe}function X(K,oe,re,V){var ee=oe.axesProject,H=oe.gl,te=K.uniforms,le=re.model||w,ve=re.view||w,Ae=re.projection||w,we=oe.axesBounds,ce=U(oe.clipBounds),Se;oe.axes&&oe.axes.lastCubeProps?Se=oe.axes.lastCubeProps.axis:Se=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,K.bind(),te.view=ve,te.projection=Ae,te.screenSize=A,te.highlightId=oe.highlightId,te.highlightScale=oe.highlightScale,te.clipBounds=ce,te.pickGroup=oe.pickId/255,te.pixelRatio=V;for(var Ce=0;Ce<3;++Ce)if(ee[Ce]){te.scale=oe.projectScale[Ce],te.opacity=oe.projectOpacity[Ce];for(var Fe=N,Ee=0;Ee<16;++Ee)Fe[Ee]=0;for(var Ee=0;Ee<4;++Ee)Fe[5*Ee]=1;Fe[5*Ce]=0,Se[Ce]<0?Fe[12+Ce]=we[0][Ce]:Fe[12+Ce]=we[1][Ce],h(Fe,le,Fe),te.model=Fe;var ze=(Ce+1)%3,Ue=(Ce+2)%3,ge=L(v),Me=L(D);ge[ze]=1,Me[Ue]=1;var ke=M(Ae,ve,le,P(E,ge)),me=M(Ae,ve,le,P(R,Me));if(Math.abs(ke[1])>Math.abs(me[1])){var ye=ke;ke=me,me=ye,ye=ge,ge=Me,Me=ye;var pe=ze;ze=Ue,Ue=pe}ke[0]<0&&(ge[ze]=-1),me[1]>0&&(Me[Ue]=-1);for(var he=0,xe=0,Ee=0;Ee<4;++Ee)he+=Math.pow(le[4*ze+Ee],2),xe+=Math.pow(le[4*Ue+Ee],2);ge[ze]/=Math.sqrt(he),Me[Ue]/=Math.sqrt(xe),te.axes[0]=ge,te.axes[1]=Me,te.fragClipBounds[0]=O(F,ce[0],Ce,-1e8),te.fragClipBounds[1]=O(F,ce[1],Ce,1e8),oe.vao.bind(),oe.vao.draw(H.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(H.lineWidth(oe.lineWidth*V),oe.vao.draw(H.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}var $=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],Y=[$,j];function q(K,oe,re,V,ee,H,te){var le=re.gl;if((H===re.projectHasAlpha||te)&&X(oe,re,V,ee),H===re.hasAlpha||te){K.bind();var ve=K.uniforms;ve.model=V.model||w,ve.view=V.view||w,ve.projection=V.projection||w,A[0]=2/le.drawingBufferWidth,A[1]=2/le.drawingBufferHeight,ve.screenSize=A,ve.highlightId=re.highlightId,ve.highlightScale=re.highlightScale,ve.fragClipBounds=Y,ve.clipBounds=re.axes.bounds,ve.opacity=re.opacity,ve.pickGroup=re.pickId/255,ve.pixelRatio=ee,re.vao.bind(),re.vao.draw(le.TRIANGLES,re.vertexCount),re.lineWidth>0&&(le.lineWidth(re.lineWidth*ee),re.vao.draw(le.LINES,re.lineVertexCount,re.vertexCount)),re.vao.unbind()}}c.draw=function(K){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,K,this.pixelRatio,!1,!1)},c.drawTransparent=function(K){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,K,this.pixelRatio,!0,!1)},c.drawPick=function(K){var oe=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(oe,this.pickProjectShader,this,K,1,!0,!0)},c.pick=function(K){if(!K||K.id!==this.pickId)return null;var oe=K.value[2]+(K.value[1]<<8)+(K.value[0]<<16);if(oe>=this.pointCount||oe<0)return null;var re=this.points[oe],V=this._selectResult;V.index=oe;for(var ee=0;ee<3;++ee)V.position[ee]=V.dataCoordinate[ee]=re[ee];return V},c.highlight=function(K){if(!K)this.highlightId=[1,1,1,1];else{var oe=K.index,re=oe&255,V=oe>>8&255,ee=oe>>16&255;this.highlightId=[re/255,V/255,ee/255,0]}};function Q(K,oe,re,V){var ee;S(K)?oe0){var Be=0,Ye=Ue,Te=[0,0,0,1],Re=[0,0,0,1],Qe=S(Se)&&S(Se[0]),Ke=S(Ee)&&S(Ee[0]);e:for(var V=0;V0?1-xe[0][0]:er<0?1+xe[1][0]:1,nr*=nr>0?1-xe[0][1]:nr<0?1+xe[1][1]:1;for(var fr=[er,nr],ft=pe.cells||[],sr=pe.positions||[],me=0;me=f?(M=m,y+=1,y0?1:0}},8648:function(a,o,i){a.exports=i(783)},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[1],p=l[0]-f,b=l[1]-h,y=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-b*y,i[1]=h+p*y+b*w,i[2]=l[2],i}},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]))}},8731:function(a,o,i){"use strict";a.exports=b;var l=i(8866);function u(y,w,T,m,k,S){this._gl=y,this._wrapper=w,this._index=T,this._locations=m,this._dimension=k,this._constFunc=S}var s=u.prototype;s.pointer=function(w,T,m,k){var S=this,x=S._gl,M=S._locations[S._index];x.vertexAttribPointer(M,S._dimension,w||x.FLOAT,!!T,m||0,k||0),x.enableVertexAttribArray(M)},s.set=function(y,w,T,m){return this._constFunc(this._locations[this._index],y,w,T,m)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(y){return y!==this._locations[this._index]&&(this._locations[this._index]=y|0,this._wrapper.program=null),y|0}});var f=[function(y,w,T){return T.length===void 0?y.vertexAttrib1f(w,T):y.vertexAttrib1fv(w,T)},function(y,w,T,m){return T.length===void 0?y.vertexAttrib2f(w,T,m):y.vertexAttrib2fv(w,T)},function(y,w,T,m,k){return T.length===void 0?y.vertexAttrib3f(w,T,m,k):y.vertexAttrib3fv(w,T)},function(y,w,T,m,k,S){return T.length===void 0?y.vertexAttrib4f(w,T,m,k,S):y.vertexAttrib4fv(w,T)}];function h(y,w,T,m,k,S,x){var M=f[k],d=new u(y,w,T,m,k,M);Object.defineProperty(S,x,{set:function(_){return y.disableVertexAttribArray(m[T]),M(y,m[T],_),_},get:function(){return d},enumerable:!0})}function p(y,w,T,m,k,S,x){for(var M=new Array(k),d=new Array(k),_=0;_=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);h(y,w,g[0],m,c,k,d)}else if(_.indexOf("mat")>=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);p(y,w,g,m,c,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+_);break}}return k}},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,b=7;for(h>>>=1;h;h>>>=1)p<<=1,p|=h&1,--b;s[f]=p<>>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}},8866:function(a){function o(i,l,u){this.shortMessage=l||"",this.longMessage=u||"",this.rawError=i||"",this.message="gl-shader: "+(l||i||"")+(u?` -`+u:""),this.stack=new Error().stack}o.prototype=new Error,o.prototype.name="GLError",o.prototype.constructor=o,a.exports=o},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,d,_,g,c){this.a=M,this.b=d,this.idx=_,this.lowerIds=g,this.upperIds=c}function b(M,d,_,g){this.a=M,this.b=d,this.type=_,this.idx=g}function y(M,d){var _=M.a[0]-d.a[0]||M.a[1]-d.a[1]||M.type-d.type;return _||M.type!==s&&(_=u(M.a,M.b,d.b),_)?_:M.idx-d.idx}function w(M,d){return u(M.a,M.b,d)}function T(M,d,_,g,c){for(var A=l.lt(d,g,w),v=l.gt(d,g,w),D=A;D1&&u(_[R[F-2]],_[R[F-1]],g)>0;)M.push([R[F-1],R[F-2],c]),F-=1;R.length=F,R.push(c);for(var N=E.upperIds,F=N.length;F>1&&u(_[N[F-2]],_[N[F-1]],g)<0;)M.push([N[F-2],N[F-1],c]),F-=1;N.length=F,N.push(c)}}function m(M,d){var _;return M.a[0]E[0]&&c.push(new b(E,D,h,A),new b(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,[],[],[],[])],F=[],A=0,I=c.length;A0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var v=c[A];if(!(!v.boundary||v.lastVisited<=-M)){for(var D=v.vertices,E=0;E<=x;++E){var R=D[E];R<0?d[E]=S:d[E]=_[R]}var N=this.orient();if(N>0)return v;v.lastVisited=-M,N===0&&g.push(v)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,_=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,v=c.adjacent,D=0;D<=M;++D)_[D]=d[A[D]];c.lastVisited=x;for(var D=0;D<=M;++D){var E=v[D];if(!(E.lastVisited>=x)){var R=_[D];_[D]=k;var N=this.orient();if(_[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,d=this.vertices,_=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 v=[];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 F=E[N];if(!(!F.boundary||F.lastVisited>=x)){var I=F.vertices;if(F.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)I[P]<0?(L=P,_[P]=k):_[P]=d[I[P]];var O=this.orient();if(O>0){I[L]=x,F.boundary=!1,g.push(F),A.push(F),F.lastVisited=x;continue}else F.lastVisited=-x}var U=F.adjacent,X=D.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[R]=F,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=M;++P){var q=X[P];if(!(q<0||q===x)){for(var Q=new Array(M-1),ae=0,K=0;K<=M;++K){var oe=X[K];oe<0||K===P||(Q[ae++]=oe)}v.push(new f(Q,j,P))}}}}}}}v.sort(h);for(var N=0;N+1=0?g[A++]=c[D]:v=D&1;if(v===(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 d=k.slice(0,M+1),_=l.apply(void 0,d);if(_===0)throw new Error("Input not in general position");for(var g=new Array(M+1),c=0;c<=M;++c)g[c]=c;_<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(M+1),!1),v=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 F=new s(E,new Array(M+1),!0);v[c]=F,D[c]=F}D[M+1]=A;for(var c=0;c<=M;++c)for(var E=v[c].vertices,I=v[c].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){I[R]=A;continue}for(var P=0;P<=M;++P)v[P].vertices.indexOf(L)<0&&(I[R]=v[P])}for(var O=new w(M,d,D),U=!!S,c=M+1;c=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(_){this.pickId=_};function k(_){for(var g=y({colormap:_,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var v=g[A],D=0;D<3;++D)c[4*A+D]=v[D];c[4*A+3]=v[3]*255}return b(c,[256,256,4],[4,0,1])}function S(_){for(var g=_.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(_){_=_||{};for(var g=this.gl,c=_.model||w,A=_.view||w,v=_.projection||w,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(v),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var R={model:c,view:A,projection:v,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(_){if(!_||_.id!==this.pickId)return null;var g=_.value[0]+256*_.value[1]+65536*_.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),v={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?v.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(v.intensity=this.intensity[c[1]],v.velocity=this.vectors[c[1]].slice(0,3),v.divergence=this.vectors[c[1]][3],v.index=g),v},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(_,g){var c=l(_,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(_,g){var c=l(_,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 d(_,g,c){var A=c.shaders;arguments.length===1&&(g=_,_=g.gl);var v=x(_,A),D=M(_,A),E=f(_,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var R=u(_),N=u(_),F=u(_),I=u(_),L=u(_),P=s(_,[{buffer:R,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:F,type:_.FLOAT,size:4},{buffer:I,type:_.FLOAT,size:2},{buffer:N,type:_.FLOAT,size:4}]),O=new T(_,E,v,D,R,N,L,F,I,P,c.traceType||"cone");return O.update(g),O}a.exports=d},9127:function(a,o,i){"use strict";a.exports=s;var l=i(6204),u=i(5771);function s(f){return u(l(f))}},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}},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 d=x[12],_=x[13],g=x[14],c=x[15],A=m._ortho||!1,v=A?2:1,D=v*this.pixelRatio*(M[3]*d+M[7]*_+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 b(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 d=(x+k)%3,_=[0,0,0];_[d]=M,S.push(_)}m[k]=S}return m}();function w(m,k,S,x){for(var M=y[x],d=0;d0){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),b(this.bounds,R),_+=2+w(M,R,E,g)}}}this.lineCount[g]=_-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 d=new h(k,S,x,M);return d.update(m),d}},9215:function(a,o,i){"use strict";a.exports=b;var l=i(4769),u=i(2478);function s(y,w,T){return Math.min(w,Math.max(y,T))}function f(y,w,T){this.dimension=y.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var m=0;m=T-1)for(var _=S.length-1,c=y-w[T-1],g=0;g=T-1)for(var d=S.length-1,_=y-w[T-1],g=0;g=0;--T)if(y[--w])return!1;return!0},h.jump=function(y){var w=this.lastT(),T=this.dimension;if(!(y0;--g)m.push(s(M[g-1],d[g-1],arguments[g])),k.push(0)}},h.push=function(y){var w=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(d[c-1],_[c-1],arguments[c]);m.push(A),k.push((A-m[S++])*g)}}},h.set=function(y){var w=this.dimension;if(!(y0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},h.move=function(y){var w=this.lastT(),T=this.dimension;if(!(y<=w||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],d=x[1],_=y-w,g=_>1e-6?1/_:0;this._time.push(y);for(var c=T;c>0;--c){var A=arguments[c];m.push(s(M[c-1],d[c-1],m[S++]+A)),k.push(A*g)}}},h.idle=function(y){var w=this.lastT();if(!(y=0;--g)m.push(s(M[g],d[g],m[S]+_*k[S])),k.push(0),S+=1}};function p(y){for(var w=new Array(y),T=0;T1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(h=!0),h}},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}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},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}},9346:function(a){"use strict";var o=new Float64Array(4),i=new Float64Array(4),l=new Float64Array(4);function u(s,f,h,p,b){o.length=w?(c=1,v=w+2*k+x):(c=-k/w,v=k*c+x)):(c=0,S>=0?(A=0,v=x):-S>=m?(A=1,v=m+2*S+x):(A=-S/m,v=S*A+x));else if(A<0)A=0,k>=0?(c=0,v=x):-k>=w?(c=1,v=w+2*k+x):(c=-k/w,v=k*c+x);else{var D=1/g;c*=D,A*=D,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x}else{var E,R,N,F;c<0?(E=T+k,R=m+S,R>E?(N=R-E,F=w-2*T+m,N>=F?(c=1,A=0,v=w+2*k+x):(c=N/F,A=1-c,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(c=0,R<=0?(A=1,v=m+2*S+x):S>=0?(A=0,v=x):(A=-S/m,v=S*A+x))):A<0?(E=T+S,R=w+k,R>E?(N=R-E,F=w-2*T+m,N>=F?(A=1,c=0,v=m+2*S+x):(A=N/F,c=1-A,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(A=0,R<=0?(c=1,v=w+2*k+x):k>=0?(c=0,v=x):(c=-k/w,v=k*c+x))):(N=m+S-T-k,N<=0?(c=0,A=1,v=m+2*S+x):(F=w-2*T+m,N>=F?(c=1,A=0,v=w+2*k+x):(c=N/F,A=1-c,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)))}for(var I=1-c-A,y=0;yS)for(m=S;mk)for(m=k;m=0){for(var I=F.type.charAt(F.type.length-1)|0,L=new Array(I),P=0;P=0;)O+=1;R[N]=O}var U=new Array(S.length);function X(){d.program=f.program(_,d._vref,d._fref,E,R);for(var $=0;$re&&ee>0){var H=(V[ee][0]-re)/(V[ee][0]-V[ee-1][0]);return V[ee][1]*(1-H)+H*V[ee-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[v.slice(),v.slice(),v.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(re,V){var ee,H,te,le=V.axes&&V.axes.lastCubeProps.axis||P,ve=V.showSurface,Ae=V.showContour;for(ee=0;ee<3;++ee)for(ve=ve||V.surfaceProject[ee],H=0;H<3;++H)Ae=Ae||V.contourProject[ee][H];for(ee=0;ee<3;++ee){var we=O.projections[ee];for(H=0;H<16;++H)we[H]=0;for(H=0;H<4;++H)we[5*H]=1;we[5*ee]=0,we[12+ee]=V.axesBounds[+(le[ee]>0)][ee],m(we,re.model,we);var ce=O.clipBounds[ee];for(te=0;te<2;++te)for(H=0;H<3;++H)ce[te][H]=re.clipBounds[te][H];ce[0][ee]=-1e8,ce[1][ee]=1e8}return O.showSurface=ve,O.showContour=Ae,O}var X={model:v,view:v,projection:v,inverseModel:v.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},$=v.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(re,V){re=re||{};var ee=this.gl;ee.disable(ee.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=re.model||v,H.view=re.view||v,H.projection=re.projection||v,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 te=0;te<2;++te)for(var le=H.clipBounds[te],ve=0;ve<3;++ve)le[ve]=Math.min(Math.max(this.clipBounds[te][ve],-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=j,H.vertexColor=this.vertexColor;var Ae=$;for(m(Ae,H.view,H.model),m(Ae,H.projection,Ae),k(Ae,Ae),te=0;te<3;++te)H.eyePosition[te]=Ae[12+te]/Ae[15];var we=Ae[15];for(te=0;te<3;++te)we+=this.lightPosition[te]*Ae[4*te+3];for(te=0;te<3;++te){var ce=Ae[12+te];for(ve=0;ve<3;++ve)ce+=Ae[4*ve+te]*this.lightPosition[ve];H.lightPosition[te]=ce/we}var Se=U(H,this);if(Se.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ee.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Se.projections[te],this._shader.uniforms.clipBounds=Se.clipBounds[te],this._vao.draw(ee.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Se.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(),te=0;te<3;++te)for(Ce.uniforms.permutation=E[te],ee.lineWidth(this.contourWidth[te]*this.pixelRatio),ve=0;ve>4)/16)/255,te=Math.floor(H),le=H-te,ve=V[1]*(re.value[1]+(re.value[2]&15)/16)/255,Ae=Math.floor(ve),we=ve-Ae;te+=1,Ae+=1;var ce=ee.position;ce[0]=ce[1]=ce[2]=0;for(var Se=0;Se<2;++Se)for(var Ce=Se?le:1-le,Fe=0;Fe<2;++Fe)for(var Ee=Fe?we:1-we,ze=te+Se,Ue=Ae+Fe,ge=Ce*Ee,Me=0;Me<3;++Me)ce[Me]+=this._field[Me].get(ze,Ue)*ge;for(var ke=this._pickResult.level,me=0;me<3;++me)if(ke[me]=S.le(this.contourLevels[me],ce[me]),ke[me]<0)this.contourLevels[me].length>0&&(ke[me]=0);else if(ke[me]Math.abs(pe-ce[me])&&(ke[me]+=1)}for(ee.index[0]=le<.5?te:te+1,ee.index[1]=we<.5?Ae:Ae+1,ee.uv[0]=H/V[0],ee.uv[1]=ve/V[1],Me=0;Me<3;++Me)ee.dataCoordinate[Me]=this._field[Me].get(ee.index[0],ee.index[1]);return ee},I.padField=function(re,V){var ee=V.shape.slice(),H=re.shape.slice();b.assign(re.lo(1,1).hi(ee[0],ee[1]),V),b.assign(re.lo(1).hi(ee[0],1),V.hi(ee[0],1)),b.assign(re.lo(1,H[1]-1).hi(ee[0],1),V.lo(0,ee[1]-1).hi(ee[0],1)),b.assign(re.lo(0,1).hi(1,ee[1]),V.hi(1)),b.assign(re.lo(H[0]-1,1).hi(1,ee[1]),V.lo(ee[0]-1)),re.set(0,0,V.get(0,0)),re.set(0,H[1]-1,V.get(0,ee[1]-1)),re.set(H[0]-1,0,V.get(ee[0]-1,0)),re.set(H[0]-1,H[1]-1,V.get(ee[0]-1,ee[1]-1))};function Q(re,V){return Array.isArray(re)?[V(re[0]),V(re[1]),V(re[2])]:[V(re),V(re),V(re)]}function ae(re){return Array.isArray(re)?re.length===3?[re[0],re[1],re[2],1]:[re[0],re[1],re[2],re[3]]:[0,0,0,1]}function K(re){if(Array.isArray(re)){if(Array.isArray(re))return[ae(re[0]),ae(re[1]),ae(re[2])];var V=ae(re);return[V.slice(),V.slice(),V.slice()]}}I.update=function(re){re=re||{},this.objectOffset=re.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in re&&(this.contourWidth=Q(re.contourWidth,Number)),"showContour"in re&&(this.showContour=Q(re.showContour,Boolean)),"showSurface"in re&&(this.showSurface=!!re.showSurface),"contourTint"in re&&(this.contourTint=Q(re.contourTint,Boolean)),"contourColor"in re&&(this.contourColor=K(re.contourColor)),"contourProject"in re&&(this.contourProject=Q(re.contourProject,function(Ma){return Q(Ma,Boolean)})),"surfaceProject"in re&&(this.surfaceProject=re.surfaceProject),"dynamicColor"in re&&(this.dynamicColor=K(re.dynamicColor)),"dynamicTint"in re&&(this.dynamicTint=Q(re.dynamicTint,Number)),"dynamicWidth"in re&&(this.dynamicWidth=Q(re.dynamicWidth,Number)),"opacity"in re&&(this.opacity=re.opacity),"opacityscale"in re&&(this.opacityscale=re.opacityscale),"colorBounds"in re&&(this.colorBounds=re.colorBounds),"vertexColor"in re&&(this.vertexColor=re.vertexColor?1:0),"colormap"in re&&this._colorMap.setPixels(this.genColormap(re.colormap,this.opacityscale));var V=re.field||re.coords&&re.coords[2]||null,ee=!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 re||"coords"in re){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]=w(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 te=this.shape,le=0;le<2;++le)this._field[2].size>this._field[le].data.length&&(h.freeFloat(this._field[le].data),this._field[le].data=h.mallocFloat(this._field[2].size)),this._field[le]=w(this._field[le].data,[te[0]+2,te[1]+2]);if(re.coords){var ve=re.coords;if(!Array.isArray(ve)||ve.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(le=0;le<2;++le){var Ae=ve[le];for(Fe=0;Fe<2;++Fe)if(Ae.shape[Fe]!==te[Fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[le],Ae)}}else if(re.ticks){var we=re.ticks;if(!Array.isArray(we)||we.length!==2)throw new Error("gl-surface: invalid ticks");for(le=0;le<2;++le){var ce=we[le];if((Array.isArray(ce)||ce.length)&&(ce=w(ce)),ce.shape[0]!==te[le])throw new Error("gl-surface: invalid tick length");var Se=w(ce.data,te);Se.stride[le]=ce.stride[0],Se.stride[le^1]=0,this.padField(this._field[le],Se)}}else{for(le=0;le<2;++le){var Ce=[0,0];Ce[le]=1,this._field[le]=w(this._field[le].data,[te[0]+2,te[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var Fe=0;Fe0){for(var $n=0;$n<5;++$n)br.pop();Qe-=1}continue e}}}ft.push(Qe)}this._contourOffsets[Sr]=Ar,this._contourCounts[Sr]=ft}var Fn=h.mallocFloat(br.length);for(le=0;le=0&&(g=d|0,_+=A*g,c-=g),new S(this.data,c,A,_)},x.step=function(d){var _=this.shape[0],g=this.stride[0],c=this.offset,A=0,v=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(_-1),_=v(-_/A)):_=v(_/A),g*=A),new S(this.data,_,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var _=this.shape,g=this.stride;return new S(this.data,_[d],g[d],this.offset)},x.pick=function(d){var _=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(_.push(this.shape[0]),g.push(this.stride[0]));var A=m[_.length+1];return A(this.data,_,g,c)},function(d,_,g,c){return new S(d,_[0],g[0],c)}},2:function(T,m,k){function S(M,d,_,g,c,A){this.data=M,this.shape=[d,_],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(d,_,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]=g},x.get=function(d,_){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]},x.index=function(d,_){return this.offset+this.stride[0]*d+this.stride[1]*_},x.hi=function(d,_){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,_){var g=this.offset,c=0,A=this.shape[0],v=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=D*c,A-=c),typeof _=="number"&&_>=0&&(c=_|0,g+=E*c,v-=c),new S(this.data,A,v,D,E,g)},x.step=function(d,_){var g=this.shape[0],c=this.shape[1],A=this.stride[0],v=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(D+=A*(g-1),g=R(-g/E)):g=R(g/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(D+=v*(c-1),c=R(-c/E)):c=R(c/E),v*=E),new S(this.data,g,c,A,v,D)},x.transpose=function(d,_){d=d===void 0?0:d|0,_=_===void 0?1:_|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[_],c[d],c[_],this.offset)},x.pick=function(d,_){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(g.push(this.shape[1]),c.push(this.stride[1]));var v=m[g.length+1];return v(this.data,g,c,A)},function(d,_,g,c){return new S(d,_[0],_[1],g[0],g[1],c)}},3:function(T,m,k){function S(M,d,_,g,c,A,v,D){this.data=M,this.shape=[d,_,g],this.stride=[c,A,v],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 d=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>_?_>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>_?[0,1,2]:[0,2,1]}}),x.set=function(d,_,g,c){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]=c},x.get=function(d,_,g){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]},x.index=function(d,_,g){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g},x.hi=function(d,_,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|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(d,_,g){var c=this.offset,A=0,v=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],N=this.stride[1],F=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=R*A,v-=A),typeof _=="number"&&_>=0&&(A=_|0,c+=N*A,D-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=F*A,E-=A),new S(this.data,v,D,E,R,N,F,c)},x.step=function(d,_,g){var c=this.shape[0],A=this.shape[1],v=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],N=this.offset,F=0,I=Math.ceil;return typeof d=="number"&&(F=d|0,F<0?(N+=D*(c-1),c=I(-c/F)):c=I(c/F),D*=F),typeof _=="number"&&(F=_|0,F<0?(N+=E*(A-1),A=I(-A/F)):A=I(A/F),E*=F),typeof g=="number"&&(F=g|0,F<0?(N+=R*(v-1),v=I(-v/F)):v=I(v/F),R*=F),new S(this.data,c,A,v,D,E,R,N)},x.transpose=function(d,_,g){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[_],c[g],A[d],A[_],A[g],this.offset)},x.pick=function(d,_,g){var c=[],A=[],v=this.offset;typeof d=="number"&&d>=0?v=v+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?v=v+this.stride[1]*_|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?v=v+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,v)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],g[0],g[1],g[2],c)}},4:function(T,m,k){function S(M,d,_,g,c,A,v,D,E,R){this.data=M,this.shape=[d,_,g,c],this.stride=[A,v,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(d,_,g,c,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,_,g,c){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,_,g,c){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,_,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|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(d,_,g,c){var A=this.offset,v=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],F=this.stride[0],I=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(v=d|0,A+=F*v,D-=v),typeof _=="number"&&_>=0&&(v=_|0,A+=I*v,E-=v),typeof g=="number"&&g>=0&&(v=g|0,A+=L*v,R-=v),typeof c=="number"&&c>=0&&(v=c|0,A+=P*v,N-=v),new S(this.data,D,E,R,N,F,I,L,P,A)},x.step=function(d,_,g,c){var A=this.shape[0],v=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],N=this.stride[1],F=this.stride[2],I=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=R*(A-1),A=O(-A/P)):A=O(A/P),R*=P),typeof _=="number"&&(P=_|0,P<0?(L+=N*(v-1),v=O(-v/P)):v=O(v/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=F*(D-1),D=O(-D/P)):D=O(D/P),F*=P),typeof c=="number"&&(P=c|0,P<0?(L+=I*(E-1),E=O(-E/P)):E=O(E/P),I*=P),new S(this.data,A,v,D,E,R,N,F,I,L)},x.transpose=function(d,_,g,c){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,v=this.stride;return new S(this.data,A[d],A[_],A[g],A[c],v[d],v[_],v[g],v[c],this.offset)},x.pick=function(d,_,g,c){var A=[],v=[],D=this.offset;typeof d=="number"&&d>=0?D=D+this.stride[0]*d|0:(A.push(this.shape[0]),v.push(this.stride[0])),typeof _=="number"&&_>=0?D=D+this.stride[1]*_|0:(A.push(this.shape[1]),v.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(A.push(this.shape[2]),v.push(this.stride[2])),typeof c=="number"&&c>=0?D=D+this.stride[3]*c|0:(A.push(this.shape[3]),v.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,v,D)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],_[3],g[0],g[1],g[2],g[3],c)}},5:function(m,k,S){function x(d,_,g,c,A,v,D,E,R,N,F,I){this.data=d,this.shape=[_,g,c,A,v],this.stride=[D,E,R,N,F],this.offset=I|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(_,g,c,A,v,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v,D):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v]=D},M.get=function(_,g,c,A,v){return m==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v]},M.index=function(_,g,c,A,v){return this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v},M.hi=function(_,g,c,A,v){return new x(this.data,typeof _!="number"||_<0?this.shape[0]:_|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 v!="number"||v<0?this.shape[4]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(_,g,c,A,v){var D=this.offset,E=0,R=this.shape[0],N=this.shape[1],F=this.shape[2],I=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|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+=U*E,F-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=X*E,I-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=$*E,L-=E),new x(this.data,R,N,F,I,L,P,O,U,X,$,D)},M.step=function(_,g,c,A,v){var D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],F=this.shape[4],I=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof _=="number"&&($=_|0,$<0?(X+=I*(D-1),D=j(-D/$)):D=j(D/$),I*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(R-1),R=j(-R/$)):R=j(R/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof v=="number"&&($=v|0,$<0?(X+=U*(F-1),F=j(-F/$)):F=j(F/$),U*=$),new x(this.data,D,E,R,N,F,I,L,P,O,U,X)},M.transpose=function(_,g,c,A,v){_=_===void 0?0:_|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,v=v===void 0?4:v|0;var D=this.shape,E=this.stride;return new x(this.data,D[_],D[g],D[c],D[A],D[v],E[_],E[g],E[c],E[A],E[v],this.offset)},M.pick=function(_,g,c,A,v){var D=[],E=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|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 v=="number"&&v>=0?R=R+this.stride[4]*v|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(_,g,c,A){return new x(_,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 b(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 w(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,d=1;M>=0;--M)k[M]=d,d*=m[M]}if(S===void 0){S=0;for(var M=0;M1e-6?(k[0]=x/g,k[1]=M/g,k[2]=d/g,k[3]=_/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(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=w.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,d=this.computedEye,_=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=M[0]+g*x[2],d[1]=M[1]+g*x[6],d[2]=M[2]+g*x[10],_[0]=x[1],_[1]=x[5],_[2]=x[9];for(var c=0;c<3;++c){for(var A=0,v=0;v<3;++v)A+=x[c+4*v]*d[v];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 d=this.computedMatrix,_=d[1],g=d[5],c=d[9],A=p(_,g,c);_/=A,g/=A,c/=A;var v=d[0],D=d[4],E=d[8],R=v*_+D*g+E*c;v-=_*R,D-=g*R,E-=c*R;var N=p(v,D,E);v/=N,D/=N,E/=N;var F=d[2],I=d[6],L=d[10],P=F*_+I*g+L*c,O=F*v+I*D+L*E;F-=P*_+O*v,I-=P*g+O*D,L-=P*c+O*E;var U=p(F,I,L);F/=U,I/=U,L/=U;var X=v*S+_*x,$=D*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);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 d=this.computedMatrix,_=d[0],g=d[4],c=d[8],A=d[1],v=d[5],D=d[9],E=d[2],R=d[6],N=d[10],F=S*_+x*A,I=S*g+x*v,L=S*c+x*D,P=-(R*L-N*I),O=-(N*F-E*L),U=-(E*I-R*F),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=b(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],Q=j[2],ae=j[3],K=Y*X+ae*P+q*U-Q*O,oe=q*X+ae*O+Q*P-Y*U,re=Q*X+ae*U+Y*O-q*P,V=ae*X-Y*P-q*O-Q*U;if(M){P=E,O=R,U=N;var ee=Math.sin(M)/p(P,O,U);P*=ee,O*=ee,U*=ee,X=Math.cos(S),K=K*X+V*P+oe*U-re*O,oe=oe*X+V*O+re*P-K*U,re=re*X+V*U+K*O-oe*P,V=V*X-K*P-oe*O-re*U}var H=b(K,oe,re,V);H>1e-6?(K/=H,oe/=H,re/=H,V/=H):(K=oe=re=0,V=1),this.rotation.set(k,K,oe,re,V)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,x,M);var _=this.computedRotation;h(_,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),y(_,_),this.rotation.set(k,_[0],_[1],_[2],_[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 d=M[15];if(Math.abs(d)>1e-6){var _=M[12]/d,g=M[13]/d,c=M[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-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 d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),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 d=new w(x,S,Math.log(M));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},9994:function(a,o,i){"use strict";var l=i(9618),u=i(8277);a.exports=function(f,h){for(var p=[],b=f,y=1;Array.isArray(b);)p.push(b.length),y*=b.length,b=b[0];return p.length===0?l():(h||(h=l(new Float64Array(y),p)),u(h,f),h)}}},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);PI.exports=n})()});var FI=de((Zde,II)=>{"use strict";II.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 OI=de((Jde,qI)=>{"use strict";var NI=FI();qI.exports=Tie;var zI={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Tie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),NI[e])t=NI[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,b){if(/%$/.test(p))return b===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[b]==="h"){if(/deg$/.test(p))return parseFloat(p);if(zI[p]!==void 0)return zI[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 UI=de((Kde,BI)=>{"use strict";var Aie=OI();BI.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=Aie(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=kie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function kie(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 VI=de((Qde,HI)=>{HI.exports=Sie;function Sie(e,r,t){return rt?t:e:er?r:e}});var YI=de(($de,GI)=>{GI.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 R3=de((jde,WI)=>{"use strict";var Cie=UI(),hd=VI(),Eie=YI();WI.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=Eie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Cie(r),r[0]/=255,r[1]/=255,r[2]/=255),Lie(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]=hd(Math.floor(r[0]*255),0,255),a[1]=hd(Math.floor(r[1]*255),0,255),a[2]=hd(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:hd(Math.floor(r[3]*255),0,255)),a)};function Lie(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=de((epe,XI)=>{"use strict";var Die=R3();function Rie(e){return e?Die(e):[0,0,0,1]}XI.exports=Rie});var hl=de((rpe,eF)=>{"use strict";var $I=nt(),Pie=Sa(),vd=R3(),dd=Ri(),Iie=Si().defaultLine,ZI=ra().isArrayOrTypedArray,P3=vd(Iie),jI=1;function JI(e,r){var t=e;return t[3]*=r,t}function KI(e){if($I(e))return P3;var r=vd(e);return r.length?r:P3}function QI(e){return $I(e)?e:jI}function Fie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=ZI(n),o=ZI(r),i=dd.extractOpts(e),l=[],u,s,f,h,p;if(i.colorscale!==void 0?u=dd.makeColorScaleFuncFromTrace(e):u=KI,a?s=function(y,w){return y[w]===void 0?P3:vd(u(y[w]))}:s=KI,o?f=function(y,w){return y[w]===void 0?jI:QI(y[w])}:f=QI,a||o)for(var b=0;b{"use strict";rF.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 pd=de((npe,tF)=>{"use strict";tF.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var aF=de((ape,nF)=>{"use strict";var zie=Er();function F3(e,r,t,n){if(!r||!r.visible)return null;for(var a=zie.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 qie(e){for(var r=0;r{"use strict";var Bie=pn().gl_line3d,iF=pn().gl_scatter3d,Uie=pn().gl_error3d,Hie=pn().gl_mesh3d,Vie=pn().delaunay_triangulate,Mo=ir(),fF=wo(),gd=hl().formatColor,Gie=Rg(),N3=I3(),Yie=pd(),Wie=Lt(),Xie=so().appendArrayPointValue,Zie=aF();function cF(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 q3=cF.prototype;q3.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 Jie(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 lF(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Qie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=Jie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=Hie(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)};q3.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 roe(e,r){var t=new cF(e,r.uid);return t.update(r),t}hF.exports=roe});var V3=de((ope,yF)=>{"use strict";var To=ss(),toe=kn(),H3=ni(),O3=lo().axisHoverFormat,{hovertemplateAttrs:noe,texttemplateAttrs:aoe,templatefallbackAttrs:dF}=ja(),pF=Sn(),ioe=I3(),ooe=pd(),xi=Tt().extendFlat,loe=qn().overrideAll,gF=nh(),soe=To.line,bs=To.marker,uoe=bs.line,foe=xi({width:soe.width,dash:{valType:"enumerated",values:gF(ioe),dflt:"solid"}},H3("line"));function B3(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 U3=yF.exports=loe({x:To.x,y:To.y,z:{valType:"data_array"},text:xi({},To.text,{}),texttemplate:aoe(),texttemplatefallback:dF({editType:"calc"}),hovertext:xi({},To.hovertext,{}),hovertemplate:noe(),hovertemplatefallback:dF(),xhoverformat:O3("x"),yhoverformat:O3("y"),zhoverformat:O3("z"),mode:xi({},To.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:B3("x"),y:B3("y"),z:B3("z")},connectgaps:To.connectgaps,line:foe,marker:xi({symbol:{valType:"enumerated",values:gF(ooe),dflt:"circle",arrayOk:!0},size:xi({},bs.size,{dflt:8}),sizeref:bs.sizeref,sizemin:bs.sizemin,sizemode:bs.sizemode,opacity:xi({},bs.opacity,{arrayOk:!1}),colorbar:bs.colorbar,line:xi({width:xi({},uoe.width,{arrayOk:!1})},H3("marker.line"))},H3("marker")),textposition:xi({},To.textposition,{dflt:"top center"}),textfont:toe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:pF.opacity,hoverinfo:xi({},pF.hoverinfo)},"calc","nested");U3.x.editType=U3.y.editType=U3.z.editType="calc+clearAxisTypes"});var bF=de((lpe,xF)=>{"use strict";var mF=Er(),coe=ir(),G3=la(),hoe=lm(),voe=sm(),doe=um(),poe=V3();xF.exports=function(r,t,n,a){function o(b,y){return coe.coerce(r,t,poe,b,y)}var i=goe(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"),G3.hasMarkers(t)&&hoe(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),G3.hasLines(t)&&(o("connectgaps"),voe(r,t,n,a,o)),G3.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),doe(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=mF.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 goe(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=mF.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 wF=de((spe,_F)=>{"use strict";var yoe=T1(),moe=hm();_F.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return yoe(n,t),moe(r,t),n}});var TF=de((upe,MF)=>{MF.exports=xoe;function xoe(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 boe=TF();AF.exports=function(r){return boe("webgl",r)}});var EF=de((cpe,CF)=>{"use strict";var SF=Xr(),_oe=function(){};CF.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=_oe);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=SF.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=SF.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 RF=de((hpe,DF)=>{"use strict";var _s=wo(),woe=ir(),Moe=["xaxis","yaxis","zaxis"];function LF(){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 Toe=LF.prototype;Toe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[Moe[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?woe.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=_s(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]=_s(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=_s(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]=_s(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]=_s(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]=_s(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]=_s(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Aoe(e,r){var t=new LF;return t.merge(e,r),t}DF.exports=Aoe});var FF=de((vpe,IF)=>{"use strict";var koe=wo(),Soe=["xaxis","yaxis","zaxis"];function PF(){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 Coe=PF.prototype;Coe.merge=function(e){for(var r=0;r<3;++r){var t=e[Soe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=koe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Eoe(e){var r=new PF;return r.merge(e),r}IF.exports=Eoe});var qF=de((dpe,zF)=>{"use strict";zF.exports=Ioe;var NF=Lt(),Loe=ir(),Doe=["xaxis","yaxis","zaxis"],Roe=[0,0,0];function Poe(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){Roe[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=Poe(a)}});var YF=de((ppe,GF)=>{"use strict";var UF=pn().gl_plot3d,Foe=UF.createCamera,OF=UF.createScene,Noe=kF(),zoe=iv(),xd=Er(),Kn=ir(),md=Kn.preserveDrawingBuffer(),bd=Lt(),bi=fo(),qoe=wo(),Ooe=EF(),Boe=Jm(),Uoe=RF(),Hoe=FF(),Voe=qF(),Goe=uu().applyAutorangeOptions,Jc,yd,HF=!1;function VF(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=Uoe(r,r[this.id]),this.spikeOptions=Hoe(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=xd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=xd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=VF.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:md,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(!yd&&(Jc=document.createElement("canvas"),yd=Noe({canvas:Jc,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!yd))throw new Error("error creating static canvas/context for image server");r.gl=yd,r.canvas=Jc}return r};var BF=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=OF(r)}catch(n){if(e.staticMode||!BF||md)t=!1;else{Kn.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{md=r.glOptions.preserveDrawingBuffer=!0,e.glplot=OF(r)}catch(a){md=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return BF=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=Foe(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"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Ooe(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(){HF=!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)}},zoe?{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};Rn.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),Voe(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=bd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+m.valueLabel),h.textLabel&&d.push(h.textLabel),M=d.join("
")):M=h.textLabel;var _={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};bi.appendArrayPointValue(_,w,T),t._module.eventData&&(_=w._module.eventData(_,h,w,{},T));var g={points:[_]};if(e.fullSceneLayout.hovermode){var c=[];bi.loneHover({trace:w,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(w,T,"bgcolor")||f.color,borderColor:bi.castHoverOption(w,T,"bordercolor"),fontFamily:bi.castHoverOption(w,T,"font.family"),fontSize:bi.castHoverOption(w,T,"font.size"),fontColor:bi.castHoverOption(w,T,"font.color"),nameLength:bi.castHoverOption(w,T,"namelength"),textAlign:bi.castHoverOption(w,T,"align"),hovertemplate:Kn.castOption(w,T,"hovertemplate"),hovertemplateLabels:Kn.extendFlat({},_,m),eventData:[_]},{container:n,gd:r,inOut_bbox:c}),_.bbox=c[0]}h.distance<5&&(h.buttons||HF)?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)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Kn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var Kc=["xaxis","yaxis","zaxis"];function Yoe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=Kc[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Kn.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(Kn.isArrayOrTypedArray(u[p]))for(var b=0;bw[1][i])w[0][i]=-1,w[1][i]=1;else{var v=w[1][i]-w[0][i];w[0][i]-=v/32,w[1][i]+=v/32}if(k=[w[0][i],w[1][i]],k=Goe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var D=w[0][i];w[0][i]=w[1][i],w[1][i]=D}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),T[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[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 F=[1,1,1];for(i=0;i<3;++i){u=f[Kc[i]],s=u.type;var I=m[s];F[i]=Math.pow(I.acc,1/I.count)/b[i]}R==="data"||Math.max.apply(null,F)/Math.min.apply(null,F)<=4?E=F: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()}};Rn.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 Xoe(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 Zoe(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"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Zoe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Xoe(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())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Kn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,h,p){var b=["up","center","eye"],y=["x","y","z"];return f[b[h]]&&s[b[h]][y[p]]===f[b[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};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Kn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.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=Kn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Kn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),xd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var b=Kn.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var y=Kn.nestedProperty(t,r.id+".aspectratio");y.set(i),r.glplot.redraw()}}return h};Rn.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 b=a.layout;xd.call("_storeDirectGUIEdit",b,o._preGUI,p),i.up=h,Kn.nestedProperty(b,f).set(h)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function Joe(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)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(Jc),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),Joe(o,n,a),Koe(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(Jc),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[Kc[r]];bd.setConvert(t,e.fullLayout),t.setScale=Kn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},bd.setConvert(e._mockAxis,t)};GF.exports=VF});var XF=de((gpe,WF)=>{"use strict";WF.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var W3=de((ype,ZF)=>{"use strict";var Qoe=Xr(),Ur=Da(),Y3=Tt().extendFlat,$oe=qn().overrideAll;ZF.exports=$oe({visible:Ur.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Qoe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ur.color,categoryorder:Ur.categoryorder,categoryarray:Ur.categoryarray,title:{text:Ur.title.text,font:Ur.title.font},type:Y3({},Ur.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ur.autotypenumbers,autorange:Ur.autorange,autorangeoptions:{minallowed:Ur.autorangeoptions.minallowed,maxallowed:Ur.autorangeoptions.maxallowed,clipmin:Ur.autorangeoptions.clipmin,clipmax:Ur.autorangeoptions.clipmax,include:Ur.autorangeoptions.include,editType:"plot"},rangemode:Ur.rangemode,minallowed:Ur.minallowed,maxallowed:Ur.maxallowed,range:Y3({},Ur.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ur.minor.tickmode,nticks:Ur.nticks,tick0:Ur.tick0,dtick:Ur.dtick,tickvals:Ur.tickvals,ticktext:Ur.ticktext,ticks:Ur.ticks,mirror:Ur.mirror,ticklen:Ur.ticklen,tickwidth:Ur.tickwidth,tickcolor:Ur.tickcolor,showticklabels:Ur.showticklabels,labelalias:Ur.labelalias,tickfont:Ur.tickfont,tickangle:Ur.tickangle,tickprefix:Ur.tickprefix,showtickprefix:Ur.showtickprefix,ticksuffix:Ur.ticksuffix,showticksuffix:Ur.showticksuffix,showexponent:Ur.showexponent,exponentformat:Ur.exponentformat,minexponent:Ur.minexponent,separatethousands:Ur.separatethousands,tickformat:Ur.tickformat,tickformatstops:Ur.tickformatstops,hoverformat:Ur.hoverformat,showline:Ur.showline,linecolor:Ur.linecolor,linewidth:Ur.linewidth,showgrid:Ur.showgrid,gridcolor:Y3({},Ur.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ur.gridwidth,zeroline:Ur.zeroline,zerolinecolor:Ur.zerolinecolor,zerolinewidth:Ur.zerolinewidth},"plot","from-root")});var K3=de((mpe,JF)=>{"use strict";var X3=W3(),joe=od().attributes,Z3=Tt().extendFlat,ele=ir().counterRegex;function J3(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"}}JF.exports={_arrayAttrRegexps:[ele("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:Z3(J3(0,0,1),{}),center:Z3(J3(0,0,0),{}),eye:Z3(J3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:joe({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:X3,yaxis:X3,zaxis:X3,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 QF=de((xpe,KF)=>{"use strict";var rle=ir(),tle=yt(),nle=od().defaults;KF.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,b;function y(k,S){return rle.coerce(p,b,i,k,S)}for(var w=0;w{"use strict";var ale=Sa().mix,$F=ir(),ile=yt(),ole=W3(),lle=Dm(),sle=R1(),jF=["xaxis","yaxis","zaxis"],ule=100*136/187;eN.exports=function(r,t,n){var a,o;function i(s,f){return $F.coerce(a,o,ole,s,f)}for(var l=0;l{"use strict";var fle=ir(),cle=Xr(),hle=Er(),vle=QF(),dle=rN(),tN=K3(),ple=Lf().getSubplotData,nN="gl3d";aN.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=fle.validate(r[i],tN[i]);if(l)return r[i]}}vle(r,t,n,{type:nN,attributes:tN,handleDefaults:gle,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function gle(e,r,t,n){for(var a=t("bgcolor"),o=cle.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=de(Qn=>{"use strict";var yle=qn().overrideAll,mle=Ll(),xle=YF(),ble=Lf().getSubplotData,_le=ir(),wle=Ho(),Yu="gl3d",Q3="scene";Qn.name=Yu;Qn.attr=Q3;Qn.idRoot=Q3;Qn.idRegex=Qn.attrRegex=_le.counterRegex("scene");Qn.attributes=XF();Qn.layoutAttributes=K3();Qn.baseLayoutAttrOverrides=yle({hoverlabel:mle.hoverlabel},"plot","nested");Qn.supplyLayoutDefaults=iN();Qn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Yu],o=0;o{"use strict";oN.exports={plot:vF(),attributes:V3(),markerSymbols:pd(),supplyDefaults:bF(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:wF(),moduleType:"trace",name:"scatter3d",basePlotModule:vl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var uN=de((Tpe,sN)=>{"use strict";sN.exports=lN()});var Qc=de((Ape,hN)=>{"use strict";var fN=Xr(),Mle=ni(),$3=lo().axisHoverFormat,{hovertemplateAttrs:Tle,templatefallbackAttrs:Ale}=ja(),cN=Sn(),j3=Tt().extendFlat,kle=qn().overrideAll;function e5(e){return{valType:"boolean",dflt:!1}}function r5(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:e5("x"),y:e5("y"),z:e5("z")},color:{valType:"color",dflt:fN.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:fN.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var t5=hN.exports=kle(j3({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:Tle(),hovertemplatefallback:Ale(),xhoverformat:$3("x"),yhoverformat:$3("y"),zhoverformat:$3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Mle("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:r5("x"),y:r5("y"),z:r5("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:j3({},cN.hoverinfo),showlegend:j3({},cN.showlegend,{dflt:!1})}),"calc","nested");t5.x.editType=t5.y.editType=t5.z.editType="calc+clearAxisTypes"});var a5=de((kpe,pN)=>{"use strict";var Sle=Er(),vN=ir(),Cle=Di(),Ele=Qc(),n5=.1;function Lle(e,r){for(var t=[],n=32,a=0;a{"use strict";var gN=Go();yN.exports=function(r,t){t.surfacecolor?gN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):gN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var wN=de((Cpe,_N)=>{"use strict";var Ple=ir(),xN=.01,Ile=[[-1,0],[1,0],[0,-1],[0,1]];function Fle(e){return .5-.25*Math.min(1,e*.5)}_N.exports=function(r,t){var n=1,a;for(bN(r,t),a=0;axN;a++)n=bN(r,t,Fle(n));return n>xN&&Ple.log("interp2d didn't converge quickly",n),r};function bN(e,r,t){var n=0,a,o,i,l,u,s,f,h,p,b,y,w,T;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-y)/(T-w))))}return n}});var TN=de((Epe,MN)=>{"use strict";var Nle=ir().maxRowLength;MN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Nle(r),s,f,h,p,b,y,w,T;for(f=0;f=0;b--)p=a[b],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&&(w[p]=[f,h,y],a.splice(b,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var LN=de((Lpe,EN)=>{"use strict";var zle=pn().gl_surface3d,Wu=pn().ndarray,qle=pn().ndarray_linear_interpolate.d2,Ole=wN(),Ble=TN(),$c=ir().isArrayOrTypedArray,Ule=hl().parseColorScale,AN=wo(),Hle=Ri().extractOpts;function SN(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=SN.prototype;_i.getXat=function(e,r,t,n){var a=$c(this.data.x)?$c(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=$c(this.data.y)?$c(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 $c(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 Vle(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 Xu=[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 Gle(e,r){if(e0){t=Xu[n];break}return t}function Wle(e,r){if(!(e<1||r<1)){for(var t=i5(e),n=i5(r),a=1,o=0;o_d;)n--,n/=Yle(n),n++,n1?a:1};function Zle(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 Jle(e,r,t){return Kle(e,r,Zle,t),e}function Kle(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";DN.exports={attributes:Qc(),supplyDefaults:a5().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:mN(),plot:LN(),moduleType:"trace",name:"surface",basePlotModule:vl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var IN=de((Rpe,PN)=>{"use strict";PN.exports=RN()});var Zu=de((Ppe,NN)=>{"use strict";var jle=ni(),o5=lo().axisHoverFormat,{hovertemplateAttrs:ese,templatefallbackAttrs:rse}=ja(),dl=Qc(),FN=Sn(),pl=Tt().extendFlat;NN.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:ese({editType:"calc"}),hovertemplatefallback:rse({editType:"calc"}),xhoverformat:o5("x"),yhoverformat:o5("y"),zhoverformat:o5("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"}},jle("",{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({},FN.hoverinfo,{editType:"calc"}),showlegend:pl({},FN.showlegend,{dflt:!1})})});var Md=de((Ipe,qN)=>{"use strict";var tse=ni(),wd=lo().axisHoverFormat,{hovertemplateAttrs:nse,templatefallbackAttrs:ase}=ja(),jc=Zu(),zN=Sn(),l5=Tt().extendFlat,ise=qn().overrideAll;function s5(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function u5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Ju=qN.exports=ise(l5({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:s5("x"),y:s5("y"),z:s5("z")},caps:{x:u5("x"),y:u5("y"),z:u5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:nse(),hovertemplatefallback:ase(),xhoverformat:wd("x"),yhoverformat:wd("y"),zhoverformat:wd("z"),valuehoverformat:wd("value",1),showlegend:l5({},zN.showlegend,{dflt:!1})},tse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:jc.opacity,lightposition:jc.lightposition,lighting:jc.lighting,flatshading:jc.flatshading,contour:jc.contour,hoverinfo:l5({},zN.hoverinfo)}),"calc","nested");Ju.flatshading.dflt=!0;Ju.lighting.facenormalsepsilon.dflt=0;Ju.x.editType=Ju.y.editType=Ju.z.editType=Ju.value.editType="calc+clearAxisTypes"});var f5=de((Fpe,BN)=>{"use strict";var ose=ir(),lse=Er(),sse=Md(),use=Di();function fse(e,r,t,n){function a(o,i){return ose.coerce(e,r,sse,o,i)}ON(e,r,t,n,a)}function ON(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=lse.getComponentMethod("calendars","handleTraceDefaults");h(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var T="caps."+w,m=a(T+".show");m&&a(T+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var b=a("surface.show");b&&(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(w){a(w)}),use(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}BN.exports={supplyDefaults:fse,supplyIsoDefaults:ON}});var Td=de((Npe,HN)=>{"use strict";var h5=ir(),cse=Go();function hse(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=Zi(r.u,r._len),r._v=Zi(r.v,r._len),r._w=Zi(r.w,r._len),r._x=Zi(r.x,r._len),r._y=Zi(r.y,r._len),r._z=Zi(r.z,r._len);var t=UN(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=Zi(r.starts.x||[]),o=Zi(r.starts.y||[]),i=Zi(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],_=n[a-1]),o=0;oS?"-":"+")+"x"),y=y.replace("y",(x>M?"-":"+")+"y"),y=y.replace("z",(d>_?"-":"+")+"z");var v=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var vse=Go(),dse=Td().processGrid,Ad=Td().filter;VN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=Ad(t.x,t._len),t._y=Ad(t.y,t._len),t._z=Ad(t.z,t._len),t._value=Ad(t.value,t._len);var n=dse(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";GN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var pse=pn().gl_mesh3d,gse=hl().parseColorScale,yse=ir().isArrayOrTypedArray,mse=wo(),xse=Ri().extractOpts,YN=Ku(),e0=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 U(ke,me){return ke===null?me:ke}function X(ke,me,ye){v();var pe=[me],he=[ye];if(I>=1)pe=[me],he=[ye];else if(I>0){var xe=P(me,ye);pe=xe.xyzv,he=xe.abc}for(var Le=0;Le-1?ye[Ne]:A($e,Ve,Be);Te>-1?qe[Ne]=Te:qe[Ne]=E($e,Ve,Be,U(ke,Ye))}R(qe[0],qe[1],qe[2])}}function $(ke,me,ye){var pe=function(he,xe,Le){X(ke,[me[he],me[xe],me[Le]],[ye[he],ye[xe],ye[Le]])};pe(0,1,2),pe(2,3,0)}function j(ke,me,ye){var pe=function(he,xe,Le){X(ke,[me[he],me[xe],me[Le]],[ye[he],ye[xe],ye[Le]])};pe(0,1,2),pe(3,0,1),pe(2,3,0),pe(1,2,3)}function Y(ke,me,ye,pe){var he=ke[3];hepe&&(he=pe);for(var xe=(ke[3]-he)/(ke[3]-me[3]+1e-9),Le=[],qe=0;qe<4;qe++)Le[qe]=(1-xe)*ke[qe]+xe*me[qe];return Le}function q(ke,me,ye){return ke>=me&&ke<=ye}function Q(ke){var me=.001*(M-x);return ke>=x-me&&ke<=M+me}function ae(ke){for(var me=[],ye=0;ye<4;ye++){var pe=ke[ye];me.push([e._x[pe],e._y[pe],e._z[pe],e._value[pe]])}return me}var K=3;function oe(ke,me,ye,pe,he,xe){xe||(xe=1),ye=[-1,-1,-1];var Le=!1,qe=[q(me[0][3],pe,he),q(me[1][3],pe,he),q(me[2][3],pe,he)];if(!qe[0]&&!qe[1]&&!qe[2])return!1;var Ne=function(Ve,Be,Ye){return Q(Be[0][3])&&Q(Be[1][3])&&Q(Be[2][3])?(X(Ve,Be,Ye),!0):xeqe?[k,xe]:[xe,S];Ce(me,Ne[0],Ne[1])}}var $e=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Ve){for(var Be=[],Ye=0;Ye<$e.length;Ye++){var Te=0,Re=$e[Ye][0],Qe=$e[Ye][1],Ke=e.slices[Ve];if(Ke.show&&Ke.fill){L(Ke.fill);var ar=[],ue=[],J=[];if(Ke.locations.length)for(var ne=0;ne0&&(ue.push(De.id),Ve==="x"?J.push([De.distRatio,0,0]):Ve==="y"?J.push([0,De.distRatio,0]):J.push([0,0,De.distRatio]))}else Ve==="x"?ar=Ue(1,b-1):Ve==="y"?ar=Ue(1,y-1):ar=Ue(1,w-1);ue.length>0&&(Ve==="x"?Be[Te]=Fe(ke,ue,Re,Qe,J,Be[Te]):Ve==="y"?Be[Te]=Ee(ke,ue,Re,Qe,J,Be[Te]):Be[Te]=ze(ke,ue,Re,Qe,J,Be[Te]),Te++),ar.length>0&&(Ve==="x"?Be[Te]=ve(ke,ar,Re,Qe,Be[Te]):Ve==="y"?Be[Te]=Ae(ke,ar,Re,Qe,Be[Te]):Be[Te]=we(ke,ar,Re,Qe,Be[Te]),Te++)}var He=e.caps[Ve];He.show&&He.fill&&(L(He.fill),Ve==="x"?Be[Te]=ve(ke,[0,b-1],Re,Qe,Be[Te]):Ve==="y"?Be[Te]=Ae(ke,[0,y-1],Re,Qe,Be[Te]):Be[Te]=we(ke,[0,w-1],Re,Qe,Be[Te]),Te++)}}),l===0&&D(),e._meshX=d,e._meshY=_,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=h,e._Zs=p}return Me(),e}function _se(e,r){var t=e.glplot.gl,n=pse({gl:t}),a=new WN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}ZN.exports={findNearestOnAxis:e0,generateIsoMeshes:XN,createIsosurfaceTrace:_se}});var KN=de((Bpe,JN)=>{"use strict";JN.exports={attributes:Md(),supplyDefaults:f5().supplyDefaults,calc:v5(),colorbar:{min:"cmin",max:"cmax"},plot:kd().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var $N=de((Upe,QN)=>{"use strict";QN.exports=KN()});var g5=de((Hpe,ez)=>{"use strict";var wse=ni(),Xt=Md(),Mse=Qc(),jN=Sn(),p5=Tt().extendFlat,Tse=qn().overrideAll,Sd=ez.exports=Tse(p5({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},wse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Xt.colorbar,opacity:Xt.opacity,opacityscale:Mse.opacityscale,lightposition:Xt.lightposition,lighting:Xt.lighting,flatshading:Xt.flatshading,contour:Xt.contour,hoverinfo:p5({},jN.hoverinfo),showlegend:p5({},jN.showlegend,{dflt:!1})}),"calc","nested");Sd.x.editType=Sd.y.editType=Sd.z.editType=Sd.value.editType="calc+clearAxisTypes"});var tz=de((Vpe,rz)=>{"use strict";var Ase=ir(),kse=g5(),Sse=f5().supplyIsoDefaults,Cse=a5().opacityscaleDefaults;rz.exports=function(r,t,n,a){function o(i,l){return Ase.coerce(r,t,kse,i,l)}Sse(r,t,n,a,o),Cse(r,t,a,o)}});var oz=de((Gpe,iz)=>{"use strict";var Ese=pn().gl_mesh3d,Lse=hl().parseColorScale,Dse=ir().isArrayOrTypedArray,Rse=wo(),Pse=Ri().extractOpts,nz=Ku(),y5=kd().findNearestOnAxis,Ise=kd().generateIsoMeshes;function az(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var m5=az.prototype;m5.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=y5(t,this.data._Xs).id,u=y5(n,this.data._Ys).id,s=y5(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 Dse(h)&&h[f]!==void 0?e.textLabel=h[f]:h&&(e.textLabel=h),!0}};m5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Ise(e);function n(u,s,f,h){return s.map(function(p){return u.d2l(p,0,h)*f})}var a=nz(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=nz(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:Rse(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Pse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Lse(e),this.mesh.update(i)};m5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Fse(e,r){var t=e.glplot.gl,n=Ese({gl:t}),a=new az(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}iz.exports=Fse});var sz=de((Ype,lz)=>{"use strict";lz.exports={attributes:g5(),supplyDefaults:tz(),calc:v5(),colorbar:{min:"cmin",max:"cmax"},plot:oz(),moduleType:"trace",name:"volume",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var fz=de((Wpe,uz)=>{"use strict";uz.exports=sz()});var vz=de((Xpe,hz)=>{"use strict";var Nse=Er(),cz=ir(),zse=Di(),qse=Zu();hz.exports=function(r,t,n,a){function o(f,h){return cz.coerce(r,t,qse,f,h)}function i(f){var h=f.map(function(p){var b=o(p);return b&&cz.isArrayOrTypedArray(b)?b: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=Nse.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"),zse(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 pz=de((Zpe,dz)=>{"use strict";var Ose=Go();dz.exports=function(r,t){t.intensity&&Ose(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var bz=de((Jpe,xz)=>{"use strict";var Bse=pn().gl_mesh3d,Use=pn().delaunay_triangulate,Hse=pn().alpha_shape,Vse=pn().convex_hull,Gse=hl().parseColorScale,Yse=ir().isArrayOrTypedArray,w5=wo(),Wse=Ri().extractOpts,gz=Ku();function mz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var M5=mz.prototype;M5.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 Yse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function yz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}M5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=gz(x5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),x5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),x5(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||!_5(e.i,n)||!_5(e.j,n)||!_5(e.k,n))return;o=gz(b5(e.i),b5(e.j),b5(e.k))}else e.alphahull===0?o=Vse(a):e.alphahull>0?o=Hse(e.alphahull,a):o=Xse(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:w5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=Wse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=Gse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=yz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=yz(e.facecolor)):(this.color=e.color,i.meshColor=w5(e.color));this.mesh.update(i)};M5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Zse(e,r){var t=e.glplot.gl,n=Bse({gl:t}),a=new mz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}xz.exports=Zse});var wz=de((Kpe,_z)=>{"use strict";_z.exports={attributes:Zu(),supplyDefaults:vz(),calc:pz(),colorbar:{min:"cmin",max:"cmax"},plot:bz(),moduleType:"trace",name:"mesh3d",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var Tz=de((Qpe,Mz)=>{"use strict";Mz.exports=wz()});var A5=de(($pe,kz)=>{"use strict";var Jse=ni(),Qu=lo().axisHoverFormat,{hovertemplateAttrs:Kse,templatefallbackAttrs:Qse}=ja(),$se=Zu(),Az=Sn(),T5=Tt().extendFlat,Cd={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:Kse({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:Qse({editType:"calc"}),uhoverformat:Qu("u",1),vhoverformat:Qu("v",1),whoverformat:Qu("w",1),xhoverformat:Qu("x"),yhoverformat:Qu("y"),zhoverformat:Qu("z"),showlegend:T5({},Az.showlegend,{dflt:!1})};T5(Cd,Jse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var jse=["opacity","lightposition","lighting"];jse.forEach(function(e){Cd[e]=$se[e]});Cd.hoverinfo=T5({},Az.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});kz.exports=Cd});var Cz=de((jpe,Sz)=>{"use strict";var eue=ir(),rue=Di(),tue=A5();Sz.exports=function(r,t,n,a){function o(b,y){return eue.coerce(r,t,tue,b,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"),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 Lz=de((ege,Ez)=>{"use strict";var nue=Go();Ez.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 aue=pn().gl_cone3d,iue=pn().gl_cone3d.createConeMesh,oue=ir().simpleMap,lue=hl().parseColorScale,sue=Ri().extractOpts,uue=ir().isArrayOrTypedArray,Dz=Ku();function Rz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var k5=Rz.prototype;k5.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 uue(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var fue={xaxis:0,yaxis:1,zaxis:2},cue={tip:1,tail:0,cm:.25,center:.5},hue={tip:1,tail:1,cm:.75,center:.5};function Pz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,h){var p=t[h],b=n[fue[h]];return oue(f,function(y){return p.d2l(y)*b})}a.vectors=Dz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=Dz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=sue(r);a.colormap=lue(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=cue[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=aue(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=hue[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}k5.update=function(e){this.data=e;var r=Pz(this.scene,e);this.mesh.update(r)};k5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function vue(e,r){var t=e.glplot.gl,n=Pz(e,r),a=iue(t,n),o=new Rz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Iz.exports=vue});var zz=de((tge,Nz)=>{"use strict";Nz.exports={moduleType:"trace",name:"cone",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:A5(),supplyDefaults:Cz(),colorbar:{min:"cmin",max:"cmax"},calc:Lz(),plot:Fz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Oz=de((nge,qz)=>{"use strict";qz.exports=zz()});var C5=de((age,Uz)=>{"use strict";var due=ni(),$u=lo().axisHoverFormat,{hovertemplateAttrs:pue,templatefallbackAttrs:gue}=ja(),yue=Zu(),Bz=Sn(),S5=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"},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:pue({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:gue({editType:"calc"}),uhoverformat:$u("u",1),vhoverformat:$u("v",1),whoverformat:$u("w",1),xhoverformat:$u("x"),yhoverformat:$u("y"),zhoverformat:$u("z"),showlegend:S5({},Bz.showlegend,{dflt:!1})};S5(Ed,due("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var mue=["opacity","lightposition","lighting"];mue.forEach(function(e){Ed[e]=yue[e]});Ed.hoverinfo=S5({},Bz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Uz.exports=Ed});var Vz=de((ige,Hz)=>{"use strict";var xue=ir(),bue=Di(),_ue=C5();Hz.exports=function(r,t,n,a){function o(p,b){return xue.coerce(r,t,_ue,p,b)}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"),bue(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 Qz=de((oge,Kz)=>{"use strict";var Wz=pn().gl_streamtube3d,wue=Wz.createTubeMesh,Mue=ir(),Tue=hl().parseColorScale,Aue=Ri().extractOpts,Gz=Ku(),Xz={xaxis:0,yaxis:1,zaxis:2};function Zz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var L5=Zz.prototype;L5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Xz[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 Yz(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 E5(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[Xz[E]];return Mue.simpleMap(D,function(F){return R.d2l(F)*N})}if(o.vectors=Gz(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=Gz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var h=u[0],p=Yz(l),b=Yz(s),y=new Array(p.length*b.length),w=0,T=0;T{"use strict";$z.exports={moduleType:"trace",name:"streamtube",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:C5(),supplyDefaults:Vz(),colorbar:{min:"cmin",max:"cmax"},calc:Td().calc,plot:Qz(),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 rq=de((sge,eq)=>{"use strict";eq.exports=jz()});var Pn=de((uge,nq)=>{"use strict";var tq=Object.getOwnPropertySymbols,Sue=Object.prototype.hasOwnProperty,Cue=Object.prototype.propertyIsEnumerable;function Eue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Lue(){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}}nq.exports=Lue()?Object.assign:function(e,r){for(var t,n=Eue(e),a,o=1;o{var Dd=Pn();function aq(){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={}}Dd(aq.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 D5(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(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Ld(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Dd(D5.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(Yr.local.invalidDate||Yr.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(Yr.local.differentCalendars||Yr.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?"-":"")+Ld(Math.abs(this.year()),4)+"-"+Ld(this.month(),2)+"-"+Ld(this.day(),2)}});function R5(){this.shortYearCutoff="+10"}Dd(R5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new D5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.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,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Ld(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Yr.local.invalidMonth||Yr.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,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.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 Yr=iq.exports=new aq;Yr.cdate=D5;Yr.baseCalendar=R5;Yr.calendars.gregorian=P5});var oq=de(()=>{var I5=Pn(),gn=In();I5(gn.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"});gn.local=gn.regionalOptions[""];I5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});I5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.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 gn.local.invalidFormat||gn.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 d=1;S+d1},f=function(x,M,d,_){var g=""+M;if(s(x,_))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],F=new RegExp("^-?\\d{1,"+N+"}"),I=r.substring(g).match(F);if(!I)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=I[0].length,parseInt(I[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 F=m(D,N)?R:E,I=0;I-1){p=1,b=y;for(var v=this.daysInMonth(h,p);b>v;v=this.daysInMonth(h,p))p++,b-=v}return f>-1?this.fromJD(f):this.newDate(h,p,b)},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 lq=de(()=>{var yl=In(),Due=Pn(),F5=yl.instance();function Rd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Rd.prototype=new yl.baseCalendar;Due(Rd.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(Pue);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(Iue);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(Fue);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=F5.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=zue(e,o,t,a);return F5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=F5.fromJD(e),t=Nue(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(Rue),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(Rd.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 Rue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Pue=/^\d?\d[iI]?/m,Iue=/^闰?十?[一二三四五六七八九]?月/m,Fue=/^闰?十?[一二三四五六七八九]?/m;yl.calendars.chinese=Rd;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 Nue(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,b=s&31,y,w=new Date(h,p-1,b),T=new Date(a.year,a.month-1,a.day);y=Math.round((T-w)/(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]],b=p>>13,y;b&&(i.month>b||i.isIntercalary)?y=i.month:y=i.month-1;for(var w=0;w>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 sq=de(()=>{var ws=In(),que=Pn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ws.baseCalendar;que(N5.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,ws.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,ws.local.invalidYear||ws.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,ws.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,ws.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)}});ws.calendars.coptic=N5});var uq=de(()=>{var Ao=In(),Oue=Pn();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new Ao.baseCalendar;Oue(z5.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:Bue[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 Bue={20:"Fruitbat",21:"Anchovy"};Ao.calendars.discworld=z5});var fq=de(()=>{var Ms=In(),Uue=Pn();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new Ms.baseCalendar;Uue(q5.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,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.ethiopian=q5});var cq=de(()=>{var bl=In(),Hue=Pn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new bl.baseCalendar;Hue(O5.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,Pd(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&&Pd(this.daysInYear(e),10)===5?30:r===9&&Pd(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 Pd(e,r){return e-r*Math.floor(e/r)}bl.calendars.hebrew=O5});var hq=de(()=>{var r0=In(),Vue=Pn();function B5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B5.prototype=new r0.baseCalendar;Vue(B5.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,r0.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,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)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,r0.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)}});r0.calendars.islamic=B5});var vq=de(()=>{var t0=In(),Gue=Pn();function U5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U5.prototype=new t0.baseCalendar;Gue(U5.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,t0.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,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(e,r,t){var n=this._validate(e,r,t,t0.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)}});t0.calendars.julian=U5});var pq=de(()=>{var Xa=In(),Yue=Pn();function V5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V5.prototype=new Xa.baseCalendar;Yue(V5.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=H5(e+8+17*20,365);return[Math.floor(r/20)+1,H5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[dq(e+20,20),dq(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 H5(e,r){return e-r*Math.floor(e/r)}function dq(e,r){return H5(e-1,r)+1}Xa.calendars.mayan=V5});var yq=de(()=>{var Ts=In(),Wue=Pn();function G5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G5.prototype=new Ts.baseCalendar;var gq=Ts.instance("gregorian");Wue(G5.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,Ts.local.invalidYear||Ts.regionalOptions[""].invalidYear);return gq.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,Ts.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,Ts.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)}});Ts.calendars.nanakshahi=G5});var mq=de(()=>{var As=In(),Xue=Pn();function Y5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y5.prototype=new As.baseCalendar;Xue(Y5.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,As.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,As.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,As.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=As.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=As.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 ju=In(),Zue=Pn();function Fd(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}Fd.prototype=new ju.baseCalendar;Zue(Fd.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,ju.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,ju.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,ju.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)}});ju.calendars.persian=Fd;ju.calendars.jalali=Fd});var bq=de(()=>{var ks=In(),Jue=Pn(),Nd=ks.instance();function W5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W5.prototype=new ks.baseCalendar;Jue(W5.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,ks.local.invalidYear),t=this._t2gYear(r.year());return Nd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ks.local.invalidYear),a=this._t2gYear(n.year());return Nd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ks.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,ks.local.invalidDate),a=this._t2gYear(n.year());return Nd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Nd.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)}});ks.calendars.taiwan=W5});var _q=de(()=>{var Ss=In(),Kue=Pn(),zd=Ss.instance();function X5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X5.prototype=new Ss.baseCalendar;Kue(X5.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 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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ss.calendars.thai=X5});var wq=de(()=>{var Cs=In(),Que=Pn();function Z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z5.prototype=new Cs.baseCalendar;Que(Z5.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,Cs.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,Cs.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,Cs.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=Cs.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=Cs.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Cs.calendars.ummalqura=Z5;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 Tq=de((Uge,Mq)=>{"use strict";Mq.exports=In();oq();lq();sq();uq();fq();cq();hq();vq();pq();yq();mq();xq();bq();_q();wq()});var Dq=de((Hge,Lq)=>{"use strict";var kq=Tq(),n0=ir(),Sq=nn(),$ue=Sq.EPOCHJD,jue=Sq.ONEDAY,Q5={valType:"enumerated",values:n0.sortObjectKeys(kq.calendars),editType:"calc",dflt:"gregorian"},Cq=function(e,r,t,n){var a={};return a[t]=Q5,n0.coerce(e,r,a,t,n)},efe=function(e,r,t,n){for(var a=0;a{"use strict";Rq.exports=Dq()});var ofe=de((Gge,Fq)=>{var Iq=RI();Iq.register([uN(),IN(),$N(),fz(),Tz(),Oz(),rq(),Pq()]);Fq.exports=Iq});return ofe();})(); +`+u:""),this.stack=new Error().stack}o.prototype=new Error,o.prototype.name="GLError",o.prototype.constructor=o,a.exports=o},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,d,_,g,c){this.a=M,this.b=d,this.idx=_,this.lowerIds=g,this.upperIds=c}function b(M,d,_,g){this.a=M,this.b=d,this.type=_,this.idx=g}function y(M,d){var _=M.a[0]-d.a[0]||M.a[1]-d.a[1]||M.type-d.type;return _||M.type!==s&&(_=u(M.a,M.b,d.b),_)?_:M.idx-d.idx}function w(M,d){return u(M.a,M.b,d)}function T(M,d,_,g,c){for(var A=l.lt(d,g,w),v=l.gt(d,g,w),D=A;D1&&u(_[R[F-2]],_[R[F-1]],g)>0;)M.push([R[F-1],R[F-2],c]),F-=1;R.length=F,R.push(c);for(var N=E.upperIds,F=N.length;F>1&&u(_[N[F-2]],_[N[F-1]],g)<0;)M.push([N[F-2],N[F-1],c]),F-=1;N.length=F,N.push(c)}}function m(M,d){var _;return M.a[0]E[0]&&c.push(new b(E,D,h,A),new b(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,[],[],[],[])],F=[],A=0,I=c.length;A0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var v=c[A];if(!(!v.boundary||v.lastVisited<=-M)){for(var D=v.vertices,E=0;E<=x;++E){var R=D[E];R<0?d[E]=S:d[E]=_[R]}var N=this.orient();if(N>0)return v;v.lastVisited=-M,N===0&&g.push(v)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,_=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,v=c.adjacent,D=0;D<=M;++D)_[D]=d[A[D]];c.lastVisited=x;for(var D=0;D<=M;++D){var E=v[D];if(!(E.lastVisited>=x)){var R=_[D];_[D]=k;var N=this.orient();if(_[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,d=this.vertices,_=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 v=[];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 F=E[N];if(!(!F.boundary||F.lastVisited>=x)){var I=F.vertices;if(F.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)I[P]<0?(L=P,_[P]=k):_[P]=d[I[P]];var O=this.orient();if(O>0){I[L]=x,F.boundary=!1,g.push(F),A.push(F),F.lastVisited=x;continue}else F.lastVisited=-x}var U=F.adjacent,X=D.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[R]=F,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=M;++P){var q=X[P];if(!(q<0||q===x)){for(var Q=new Array(M-1),ae=0,K=0;K<=M;++K){var oe=X[K];oe<0||K===P||(Q[ae++]=oe)}v.push(new f(Q,j,P))}}}}}}}v.sort(h);for(var N=0;N+1=0?g[A++]=c[D]:v=D&1;if(v===(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 d=k.slice(0,M+1),_=l.apply(void 0,d);if(_===0)throw new Error("Input not in general position");for(var g=new Array(M+1),c=0;c<=M;++c)g[c]=c;_<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(M+1),!1),v=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 F=new s(E,new Array(M+1),!0);v[c]=F,D[c]=F}D[M+1]=A;for(var c=0;c<=M;++c)for(var E=v[c].vertices,I=v[c].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){I[R]=A;continue}for(var P=0;P<=M;++P)v[P].vertices.indexOf(L)<0&&(I[R]=v[P])}for(var O=new w(M,d,D),U=!!S,c=M+1;c=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(_){this.pickId=_};function k(_){for(var g=y({colormap:_,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var v=g[A],D=0;D<3;++D)c[4*A+D]=v[D];c[4*A+3]=v[3]*255}return b(c,[256,256,4],[4,0,1])}function S(_){for(var g=_.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(_){_=_||{};for(var g=this.gl,c=_.model||w,A=_.view||w,v=_.projection||w,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(v),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var R={model:c,view:A,projection:v,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(_){if(!_||_.id!==this.pickId)return null;var g=_.value[0]+256*_.value[1]+65536*_.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),v={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?v.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(v.intensity=this.intensity[c[1]],v.velocity=this.vectors[c[1]].slice(0,3),v.divergence=this.vectors[c[1]][3],v.index=g),v},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(_,g){var c=l(_,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(_,g){var c=l(_,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 d(_,g,c){var A=c.shaders;arguments.length===1&&(g=_,_=g.gl);var v=x(_,A),D=M(_,A),E=f(_,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var R=u(_),N=u(_),F=u(_),I=u(_),L=u(_),P=s(_,[{buffer:R,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:F,type:_.FLOAT,size:4},{buffer:I,type:_.FLOAT,size:2},{buffer:N,type:_.FLOAT,size:4}]),O=new T(_,E,v,D,R,N,L,F,I,P,c.traceType||"cone");return O.update(g),O}a.exports=d},9127:function(a,o,i){"use strict";a.exports=s;var l=i(6204),u=i(5771);function s(f){return u(l(f))}},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}},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 d=x[12],_=x[13],g=x[14],c=x[15],A=m._ortho||!1,v=A?2:1,D=v*this.pixelRatio*(M[3]*d+M[7]*_+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 b(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 d=(x+k)%3,_=[0,0,0];_[d]=M,S.push(_)}m[k]=S}return m}();function w(m,k,S,x){for(var M=y[x],d=0;d0){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),b(this.bounds,R),_+=2+w(M,R,E,g)}}}this.lineCount[g]=_-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 d=new h(k,S,x,M);return d.update(m),d}},9215:function(a,o,i){"use strict";a.exports=b;var l=i(4769),u=i(2478);function s(y,w,T){return Math.min(w,Math.max(y,T))}function f(y,w,T){this.dimension=y.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var m=0;m=T-1)for(var _=S.length-1,c=y-w[T-1],g=0;g=T-1)for(var d=S.length-1,_=y-w[T-1],g=0;g=0;--T)if(y[--w])return!1;return!0},h.jump=function(y){var w=this.lastT(),T=this.dimension;if(!(y0;--g)m.push(s(M[g-1],d[g-1],arguments[g])),k.push(0)}},h.push=function(y){var w=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(d[c-1],_[c-1],arguments[c]);m.push(A),k.push((A-m[S++])*g)}}},h.set=function(y){var w=this.dimension;if(!(y0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},h.move=function(y){var w=this.lastT(),T=this.dimension;if(!(y<=w||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],d=x[1],_=y-w,g=_>1e-6?1/_:0;this._time.push(y);for(var c=T;c>0;--c){var A=arguments[c];m.push(s(M[c-1],d[c-1],m[S++]+A)),k.push(A*g)}}},h.idle=function(y){var w=this.lastT();if(!(y=0;--g)m.push(s(M[g],d[g],m[S]+_*k[S])),k.push(0),S+=1}};function p(y){for(var w=new Array(y),T=0;T1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(h=!0),h}},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}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},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}},9346:function(a){"use strict";var o=new Float64Array(4),i=new Float64Array(4),l=new Float64Array(4);function u(s,f,h,p,b){o.length=w?(c=1,v=w+2*k+x):(c=-k/w,v=k*c+x)):(c=0,S>=0?(A=0,v=x):-S>=m?(A=1,v=m+2*S+x):(A=-S/m,v=S*A+x));else if(A<0)A=0,k>=0?(c=0,v=x):-k>=w?(c=1,v=w+2*k+x):(c=-k/w,v=k*c+x);else{var D=1/g;c*=D,A*=D,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x}else{var E,R,N,F;c<0?(E=T+k,R=m+S,R>E?(N=R-E,F=w-2*T+m,N>=F?(c=1,A=0,v=w+2*k+x):(c=N/F,A=1-c,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(c=0,R<=0?(A=1,v=m+2*S+x):S>=0?(A=0,v=x):(A=-S/m,v=S*A+x))):A<0?(E=T+S,R=w+k,R>E?(N=R-E,F=w-2*T+m,N>=F?(A=1,c=0,v=m+2*S+x):(A=N/F,c=1-A,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(A=0,R<=0?(c=1,v=w+2*k+x):k>=0?(c=0,v=x):(c=-k/w,v=k*c+x))):(N=m+S-T-k,N<=0?(c=0,A=1,v=m+2*S+x):(F=w-2*T+m,N>=F?(c=1,A=0,v=w+2*k+x):(c=N/F,A=1-c,v=c*(w*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)))}for(var I=1-c-A,y=0;yS)for(m=S;mk)for(m=k;m=0){for(var I=F.type.charAt(F.type.length-1)|0,L=new Array(I),P=0;P=0;)O+=1;R[N]=O}var U=new Array(S.length);function X(){d.program=f.program(_,d._vref,d._fref,E,R);for(var $=0;$re&&ee>0){var H=(V[ee][0]-re)/(V[ee][0]-V[ee-1][0]);return V[ee][1]*(1-H)+H*V[ee-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[v.slice(),v.slice(),v.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(re,V){var ee,H,te,le=V.axes&&V.axes.lastCubeProps.axis||P,ve=V.showSurface,Ae=V.showContour;for(ee=0;ee<3;++ee)for(ve=ve||V.surfaceProject[ee],H=0;H<3;++H)Ae=Ae||V.contourProject[ee][H];for(ee=0;ee<3;++ee){var we=O.projections[ee];for(H=0;H<16;++H)we[H]=0;for(H=0;H<4;++H)we[5*H]=1;we[5*ee]=0,we[12+ee]=V.axesBounds[+(le[ee]>0)][ee],m(we,re.model,we);var ce=O.clipBounds[ee];for(te=0;te<2;++te)for(H=0;H<3;++H)ce[te][H]=re.clipBounds[te][H];ce[0][ee]=-1e8,ce[1][ee]=1e8}return O.showSurface=ve,O.showContour=Ae,O}var X={model:v,view:v,projection:v,inverseModel:v.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},$=v.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(re,V){re=re||{};var ee=this.gl;ee.disable(ee.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=re.model||v,H.view=re.view||v,H.projection=re.projection||v,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 te=0;te<2;++te)for(var le=H.clipBounds[te],ve=0;ve<3;++ve)le[ve]=Math.min(Math.max(this.clipBounds[te][ve],-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=j,H.vertexColor=this.vertexColor;var Ae=$;for(m(Ae,H.view,H.model),m(Ae,H.projection,Ae),k(Ae,Ae),te=0;te<3;++te)H.eyePosition[te]=Ae[12+te]/Ae[15];var we=Ae[15];for(te=0;te<3;++te)we+=this.lightPosition[te]*Ae[4*te+3];for(te=0;te<3;++te){var ce=Ae[12+te];for(ve=0;ve<3;++ve)ce+=Ae[4*ve+te]*this.lightPosition[ve];H.lightPosition[te]=ce/we}var Se=U(H,this);if(Se.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ee.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Se.projections[te],this._shader.uniforms.clipBounds=Se.clipBounds[te],this._vao.draw(ee.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Se.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(),te=0;te<3;++te)for(Ce.uniforms.permutation=E[te],ee.lineWidth(this.contourWidth[te]*this.pixelRatio),ve=0;ve>4)/16)/255,te=Math.floor(H),le=H-te,ve=V[1]*(re.value[1]+(re.value[2]&15)/16)/255,Ae=Math.floor(ve),we=ve-Ae;te+=1,Ae+=1;var ce=ee.position;ce[0]=ce[1]=ce[2]=0;for(var Se=0;Se<2;++Se)for(var Ce=Se?le:1-le,Fe=0;Fe<2;++Fe)for(var Ee=Fe?we:1-we,ze=te+Se,Ue=Ae+Fe,ge=Ce*Ee,Me=0;Me<3;++Me)ce[Me]+=this._field[Me].get(ze,Ue)*ge;for(var ke=this._pickResult.level,me=0;me<3;++me)if(ke[me]=S.le(this.contourLevels[me],ce[me]),ke[me]<0)this.contourLevels[me].length>0&&(ke[me]=0);else if(ke[me]Math.abs(pe-ce[me])&&(ke[me]+=1)}for(ee.index[0]=le<.5?te:te+1,ee.index[1]=we<.5?Ae:Ae+1,ee.uv[0]=H/V[0],ee.uv[1]=ve/V[1],Me=0;Me<3;++Me)ee.dataCoordinate[Me]=this._field[Me].get(ee.index[0],ee.index[1]);return ee},I.padField=function(re,V){var ee=V.shape.slice(),H=re.shape.slice();b.assign(re.lo(1,1).hi(ee[0],ee[1]),V),b.assign(re.lo(1).hi(ee[0],1),V.hi(ee[0],1)),b.assign(re.lo(1,H[1]-1).hi(ee[0],1),V.lo(0,ee[1]-1).hi(ee[0],1)),b.assign(re.lo(0,1).hi(1,ee[1]),V.hi(1)),b.assign(re.lo(H[0]-1,1).hi(1,ee[1]),V.lo(ee[0]-1)),re.set(0,0,V.get(0,0)),re.set(0,H[1]-1,V.get(0,ee[1]-1)),re.set(H[0]-1,0,V.get(ee[0]-1,0)),re.set(H[0]-1,H[1]-1,V.get(ee[0]-1,ee[1]-1))};function Q(re,V){return Array.isArray(re)?[V(re[0]),V(re[1]),V(re[2])]:[V(re),V(re),V(re)]}function ae(re){return Array.isArray(re)?re.length===3?[re[0],re[1],re[2],1]:[re[0],re[1],re[2],re[3]]:[0,0,0,1]}function K(re){if(Array.isArray(re)){if(Array.isArray(re))return[ae(re[0]),ae(re[1]),ae(re[2])];var V=ae(re);return[V.slice(),V.slice(),V.slice()]}}I.update=function(re){re=re||{},this.objectOffset=re.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in re&&(this.contourWidth=Q(re.contourWidth,Number)),"showContour"in re&&(this.showContour=Q(re.showContour,Boolean)),"showSurface"in re&&(this.showSurface=!!re.showSurface),"contourTint"in re&&(this.contourTint=Q(re.contourTint,Boolean)),"contourColor"in re&&(this.contourColor=K(re.contourColor)),"contourProject"in re&&(this.contourProject=Q(re.contourProject,function(Ma){return Q(Ma,Boolean)})),"surfaceProject"in re&&(this.surfaceProject=re.surfaceProject),"dynamicColor"in re&&(this.dynamicColor=K(re.dynamicColor)),"dynamicTint"in re&&(this.dynamicTint=Q(re.dynamicTint,Number)),"dynamicWidth"in re&&(this.dynamicWidth=Q(re.dynamicWidth,Number)),"opacity"in re&&(this.opacity=re.opacity),"opacityscale"in re&&(this.opacityscale=re.opacityscale),"colorBounds"in re&&(this.colorBounds=re.colorBounds),"vertexColor"in re&&(this.vertexColor=re.vertexColor?1:0),"colormap"in re&&this._colorMap.setPixels(this.genColormap(re.colormap,this.opacityscale));var V=re.field||re.coords&&re.coords[2]||null,ee=!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 re||"coords"in re){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]=w(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 te=this.shape,le=0;le<2;++le)this._field[2].size>this._field[le].data.length&&(h.freeFloat(this._field[le].data),this._field[le].data=h.mallocFloat(this._field[2].size)),this._field[le]=w(this._field[le].data,[te[0]+2,te[1]+2]);if(re.coords){var ve=re.coords;if(!Array.isArray(ve)||ve.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(le=0;le<2;++le){var Ae=ve[le];for(Fe=0;Fe<2;++Fe)if(Ae.shape[Fe]!==te[Fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[le],Ae)}}else if(re.ticks){var we=re.ticks;if(!Array.isArray(we)||we.length!==2)throw new Error("gl-surface: invalid ticks");for(le=0;le<2;++le){var ce=we[le];if((Array.isArray(ce)||ce.length)&&(ce=w(ce)),ce.shape[0]!==te[le])throw new Error("gl-surface: invalid tick length");var Se=w(ce.data,te);Se.stride[le]=ce.stride[0],Se.stride[le^1]=0,this.padField(this._field[le],Se)}}else{for(le=0;le<2;++le){var Ce=[0,0];Ce[le]=1,this._field[le]=w(this._field[le].data,[te[0]+2,te[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var Fe=0;Fe0){for(var $n=0;$n<5;++$n)br.pop();Qe-=1}continue e}}}ft.push(Qe)}this._contourOffsets[Sr]=Ar,this._contourCounts[Sr]=ft}var Fn=h.mallocFloat(br.length);for(le=0;le=0&&(g=d|0,_+=A*g,c-=g),new S(this.data,c,A,_)},x.step=function(d){var _=this.shape[0],g=this.stride[0],c=this.offset,A=0,v=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(_-1),_=v(-_/A)):_=v(_/A),g*=A),new S(this.data,_,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var _=this.shape,g=this.stride;return new S(this.data,_[d],g[d],this.offset)},x.pick=function(d){var _=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(_.push(this.shape[0]),g.push(this.stride[0]));var A=m[_.length+1];return A(this.data,_,g,c)},function(d,_,g,c){return new S(d,_[0],g[0],c)}},2:function(T,m,k){function S(M,d,_,g,c,A){this.data=M,this.shape=[d,_],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(d,_,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]=g},x.get=function(d,_){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]},x.index=function(d,_){return this.offset+this.stride[0]*d+this.stride[1]*_},x.hi=function(d,_){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,_){var g=this.offset,c=0,A=this.shape[0],v=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=D*c,A-=c),typeof _=="number"&&_>=0&&(c=_|0,g+=E*c,v-=c),new S(this.data,A,v,D,E,g)},x.step=function(d,_){var g=this.shape[0],c=this.shape[1],A=this.stride[0],v=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(D+=A*(g-1),g=R(-g/E)):g=R(g/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(D+=v*(c-1),c=R(-c/E)):c=R(c/E),v*=E),new S(this.data,g,c,A,v,D)},x.transpose=function(d,_){d=d===void 0?0:d|0,_=_===void 0?1:_|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[_],c[d],c[_],this.offset)},x.pick=function(d,_){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(g.push(this.shape[1]),c.push(this.stride[1]));var v=m[g.length+1];return v(this.data,g,c,A)},function(d,_,g,c){return new S(d,_[0],_[1],g[0],g[1],c)}},3:function(T,m,k){function S(M,d,_,g,c,A,v,D){this.data=M,this.shape=[d,_,g],this.stride=[c,A,v],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 d=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>_?_>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>_?[0,1,2]:[0,2,1]}}),x.set=function(d,_,g,c){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]=c},x.get=function(d,_,g){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]},x.index=function(d,_,g){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g},x.hi=function(d,_,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|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(d,_,g){var c=this.offset,A=0,v=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],N=this.stride[1],F=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=R*A,v-=A),typeof _=="number"&&_>=0&&(A=_|0,c+=N*A,D-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=F*A,E-=A),new S(this.data,v,D,E,R,N,F,c)},x.step=function(d,_,g){var c=this.shape[0],A=this.shape[1],v=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],N=this.offset,F=0,I=Math.ceil;return typeof d=="number"&&(F=d|0,F<0?(N+=D*(c-1),c=I(-c/F)):c=I(c/F),D*=F),typeof _=="number"&&(F=_|0,F<0?(N+=E*(A-1),A=I(-A/F)):A=I(A/F),E*=F),typeof g=="number"&&(F=g|0,F<0?(N+=R*(v-1),v=I(-v/F)):v=I(v/F),R*=F),new S(this.data,c,A,v,D,E,R,N)},x.transpose=function(d,_,g){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[_],c[g],A[d],A[_],A[g],this.offset)},x.pick=function(d,_,g){var c=[],A=[],v=this.offset;typeof d=="number"&&d>=0?v=v+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?v=v+this.stride[1]*_|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?v=v+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,v)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],g[0],g[1],g[2],c)}},4:function(T,m,k){function S(M,d,_,g,c,A,v,D,E,R){this.data=M,this.shape=[d,_,g,c],this.stride=[A,v,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(d,_,g,c,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,_,g,c){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,_,g,c){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,_,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|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(d,_,g,c){var A=this.offset,v=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],F=this.stride[0],I=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(v=d|0,A+=F*v,D-=v),typeof _=="number"&&_>=0&&(v=_|0,A+=I*v,E-=v),typeof g=="number"&&g>=0&&(v=g|0,A+=L*v,R-=v),typeof c=="number"&&c>=0&&(v=c|0,A+=P*v,N-=v),new S(this.data,D,E,R,N,F,I,L,P,A)},x.step=function(d,_,g,c){var A=this.shape[0],v=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],N=this.stride[1],F=this.stride[2],I=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=R*(A-1),A=O(-A/P)):A=O(A/P),R*=P),typeof _=="number"&&(P=_|0,P<0?(L+=N*(v-1),v=O(-v/P)):v=O(v/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=F*(D-1),D=O(-D/P)):D=O(D/P),F*=P),typeof c=="number"&&(P=c|0,P<0?(L+=I*(E-1),E=O(-E/P)):E=O(E/P),I*=P),new S(this.data,A,v,D,E,R,N,F,I,L)},x.transpose=function(d,_,g,c){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,v=this.stride;return new S(this.data,A[d],A[_],A[g],A[c],v[d],v[_],v[g],v[c],this.offset)},x.pick=function(d,_,g,c){var A=[],v=[],D=this.offset;typeof d=="number"&&d>=0?D=D+this.stride[0]*d|0:(A.push(this.shape[0]),v.push(this.stride[0])),typeof _=="number"&&_>=0?D=D+this.stride[1]*_|0:(A.push(this.shape[1]),v.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(A.push(this.shape[2]),v.push(this.stride[2])),typeof c=="number"&&c>=0?D=D+this.stride[3]*c|0:(A.push(this.shape[3]),v.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,v,D)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],_[3],g[0],g[1],g[2],g[3],c)}},5:function(m,k,S){function x(d,_,g,c,A,v,D,E,R,N,F,I){this.data=d,this.shape=[_,g,c,A,v],this.stride=[D,E,R,N,F],this.offset=I|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(_,g,c,A,v,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v,D):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v]=D},M.get=function(_,g,c,A,v){return m==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v]},M.index=function(_,g,c,A,v){return this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*v},M.hi=function(_,g,c,A,v){return new x(this.data,typeof _!="number"||_<0?this.shape[0]:_|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 v!="number"||v<0?this.shape[4]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(_,g,c,A,v){var D=this.offset,E=0,R=this.shape[0],N=this.shape[1],F=this.shape[2],I=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|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+=U*E,F-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=X*E,I-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=$*E,L-=E),new x(this.data,R,N,F,I,L,P,O,U,X,$,D)},M.step=function(_,g,c,A,v){var D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],F=this.shape[4],I=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof _=="number"&&($=_|0,$<0?(X+=I*(D-1),D=j(-D/$)):D=j(D/$),I*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(R-1),R=j(-R/$)):R=j(R/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof v=="number"&&($=v|0,$<0?(X+=U*(F-1),F=j(-F/$)):F=j(F/$),U*=$),new x(this.data,D,E,R,N,F,I,L,P,O,U,X)},M.transpose=function(_,g,c,A,v){_=_===void 0?0:_|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,v=v===void 0?4:v|0;var D=this.shape,E=this.stride;return new x(this.data,D[_],D[g],D[c],D[A],D[v],E[_],E[g],E[c],E[A],E[v],this.offset)},M.pick=function(_,g,c,A,v){var D=[],E=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|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 v=="number"&&v>=0?R=R+this.stride[4]*v|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(_,g,c,A){return new x(_,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 b(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 w(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,d=1;M>=0;--M)k[M]=d,d*=m[M]}if(S===void 0){S=0;for(var M=0;M1e-6?(k[0]=x/g,k[1]=M/g,k[2]=d/g,k[3]=_/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(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=w.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,d=this.computedEye,_=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=M[0]+g*x[2],d[1]=M[1]+g*x[6],d[2]=M[2]+g*x[10],_[0]=x[1],_[1]=x[5],_[2]=x[9];for(var c=0;c<3;++c){for(var A=0,v=0;v<3;++v)A+=x[c+4*v]*d[v];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 d=this.computedMatrix,_=d[1],g=d[5],c=d[9],A=p(_,g,c);_/=A,g/=A,c/=A;var v=d[0],D=d[4],E=d[8],R=v*_+D*g+E*c;v-=_*R,D-=g*R,E-=c*R;var N=p(v,D,E);v/=N,D/=N,E/=N;var F=d[2],I=d[6],L=d[10],P=F*_+I*g+L*c,O=F*v+I*D+L*E;F-=P*_+O*v,I-=P*g+O*D,L-=P*c+O*E;var U=p(F,I,L);F/=U,I/=U,L/=U;var X=v*S+_*x,$=D*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);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 d=this.computedMatrix,_=d[0],g=d[4],c=d[8],A=d[1],v=d[5],D=d[9],E=d[2],R=d[6],N=d[10],F=S*_+x*A,I=S*g+x*v,L=S*c+x*D,P=-(R*L-N*I),O=-(N*F-E*L),U=-(E*I-R*F),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=b(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],Q=j[2],ae=j[3],K=Y*X+ae*P+q*U-Q*O,oe=q*X+ae*O+Q*P-Y*U,re=Q*X+ae*U+Y*O-q*P,V=ae*X-Y*P-q*O-Q*U;if(M){P=E,O=R,U=N;var ee=Math.sin(M)/p(P,O,U);P*=ee,O*=ee,U*=ee,X=Math.cos(S),K=K*X+V*P+oe*U-re*O,oe=oe*X+V*O+re*P-K*U,re=re*X+V*U+K*O-oe*P,V=V*X-K*P-oe*O-re*U}var H=b(K,oe,re,V);H>1e-6?(K/=H,oe/=H,re/=H,V/=H):(K=oe=re=0,V=1),this.rotation.set(k,K,oe,re,V)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,x,M);var _=this.computedRotation;h(_,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),y(_,_),this.rotation.set(k,_[0],_[1],_[2],_[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 d=M[15];if(Math.abs(d)>1e-6){var _=M[12]/d,g=M[13]/d,c=M[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-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 d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),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 d=new w(x,S,Math.log(M));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},9994:function(a,o,i){"use strict";var l=i(9618),u=i(8277);a.exports=function(f,h){for(var p=[],b=f,y=1;Array.isArray(b);)p.push(b.length),y*=b.length,b=b[0];return p.length===0?l():(h||(h=l(new Float64Array(y),p)),u(h,f),h)}}},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);PI.exports=n})()});var FI=de((Zde,II)=>{"use strict";II.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 OI=de((Jde,qI)=>{"use strict";var NI=FI();qI.exports=Tie;var zI={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Tie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),NI[e])t=NI[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,b){if(/%$/.test(p))return b===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[b]==="h"){if(/deg$/.test(p))return parseFloat(p);if(zI[p]!==void 0)return zI[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 UI=de((Kde,BI)=>{"use strict";var Aie=OI();BI.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=Aie(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=kie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function kie(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 VI=de((Qde,HI)=>{HI.exports=Sie;function Sie(e,r,t){return rt?t:e:er?r:e}});var YI=de(($de,GI)=>{GI.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 R3=de((jde,WI)=>{"use strict";var Cie=UI(),hd=VI(),Eie=YI();WI.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=Eie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Cie(r),r[0]/=255,r[1]/=255,r[2]/=255),Lie(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]=hd(Math.floor(r[0]*255),0,255),a[1]=hd(Math.floor(r[1]*255),0,255),a[2]=hd(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:hd(Math.floor(r[3]*255),0,255)),a)};function Lie(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=de((epe,XI)=>{"use strict";var Die=R3();function Rie(e){return e?Die(e):[0,0,0,1]}XI.exports=Rie});var hl=de((rpe,eF)=>{"use strict";var $I=nt(),Pie=Sa(),vd=R3(),dd=Ri(),Iie=Si().defaultLine,ZI=ra().isArrayOrTypedArray,P3=vd(Iie),jI=1;function JI(e,r){var t=e;return t[3]*=r,t}function KI(e){if($I(e))return P3;var r=vd(e);return r.length?r:P3}function QI(e){return $I(e)?e:jI}function Fie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=ZI(n),o=ZI(r),i=dd.extractOpts(e),l=[],u,s,f,h,p;if(i.colorscale!==void 0?u=dd.makeColorScaleFuncFromTrace(e):u=KI,a?s=function(y,w){return y[w]===void 0?P3:vd(u(y[w]))}:s=KI,o?f=function(y,w){return y[w]===void 0?jI:QI(y[w])}:f=QI,a||o)for(var b=0;b{"use strict";rF.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 pd=de((npe,tF)=>{"use strict";tF.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var aF=de((ape,nF)=>{"use strict";var zie=Er();function F3(e,r,t,n){if(!r||!r.visible)return null;for(var a=zie.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 qie(e){for(var r=0;r{"use strict";var Bie=pn().gl_line3d,iF=pn().gl_scatter3d,Uie=pn().gl_error3d,Hie=pn().gl_mesh3d,Vie=pn().delaunay_triangulate,Mo=ir(),fF=wo(),gd=hl().formatColor,Gie=Rg(),N3=I3(),Yie=pd(),Wie=Lt(),Xie=so().appendArrayPointValue,Zie=aF();function cF(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 q3=cF.prototype;q3.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 Jie(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 lF(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Qie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=Jie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=Hie(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)};q3.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 roe(e,r){var t=new cF(e,r.uid);return t.update(r),t}hF.exports=roe});var V3=de((ope,yF)=>{"use strict";var To=ss(),toe=kn(),H3=ni(),O3=lo().axisHoverFormat,{hovertemplateAttrs:noe,texttemplateAttrs:aoe,templatefallbackAttrs:dF}=ja(),pF=Sn(),ioe=I3(),ooe=pd(),xi=Tt().extendFlat,loe=qn().overrideAll,gF=ah(),soe=To.line,bs=To.marker,uoe=bs.line,foe=xi({width:soe.width,dash:{valType:"enumerated",values:gF(ioe),dflt:"solid"}},H3("line"));function B3(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 U3=yF.exports=loe({x:To.x,y:To.y,z:{valType:"data_array"},text:xi({},To.text,{}),texttemplate:aoe(),texttemplatefallback:dF({editType:"calc"}),hovertext:xi({},To.hovertext,{}),hovertemplate:noe(),hovertemplatefallback:dF(),xhoverformat:O3("x"),yhoverformat:O3("y"),zhoverformat:O3("z"),mode:xi({},To.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:B3("x"),y:B3("y"),z:B3("z")},connectgaps:To.connectgaps,line:foe,marker:xi({symbol:{valType:"enumerated",values:gF(ooe),dflt:"circle",arrayOk:!0},size:xi({},bs.size,{dflt:8}),sizeref:bs.sizeref,sizemin:bs.sizemin,sizemode:bs.sizemode,opacity:xi({},bs.opacity,{arrayOk:!1}),colorbar:bs.colorbar,line:xi({width:xi({},uoe.width,{arrayOk:!1})},H3("marker.line"))},H3("marker")),textposition:xi({},To.textposition,{dflt:"top center"}),textfont:toe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:pF.opacity,hoverinfo:xi({},pF.hoverinfo)},"calc","nested");U3.x.editType=U3.y.editType=U3.z.editType="calc+clearAxisTypes"});var bF=de((lpe,xF)=>{"use strict";var mF=Er(),coe=ir(),G3=la(),hoe=lm(),voe=sm(),doe=um(),poe=V3();xF.exports=function(r,t,n,a){function o(b,y){return coe.coerce(r,t,poe,b,y)}var i=goe(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"),G3.hasMarkers(t)&&hoe(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),G3.hasLines(t)&&(o("connectgaps"),voe(r,t,n,a,o)),G3.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),doe(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=mF.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 goe(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=mF.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 wF=de((spe,_F)=>{"use strict";var yoe=T1(),moe=hm();_F.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return yoe(n,t),moe(r,t),n}});var TF=de((upe,MF)=>{MF.exports=xoe;function xoe(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 boe=TF();AF.exports=function(r){return boe("webgl",r)}});var EF=de((cpe,CF)=>{"use strict";var SF=Xr(),_oe=function(){};CF.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=_oe);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=SF.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=SF.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 RF=de((hpe,DF)=>{"use strict";var _s=wo(),woe=ir(),Moe=["xaxis","yaxis","zaxis"];function LF(){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 Toe=LF.prototype;Toe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[Moe[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?woe.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=_s(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]=_s(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=_s(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]=_s(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]=_s(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]=_s(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]=_s(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Aoe(e,r){var t=new LF;return t.merge(e,r),t}DF.exports=Aoe});var FF=de((vpe,IF)=>{"use strict";var koe=wo(),Soe=["xaxis","yaxis","zaxis"];function PF(){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 Coe=PF.prototype;Coe.merge=function(e){for(var r=0;r<3;++r){var t=e[Soe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=koe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Eoe(e){var r=new PF;return r.merge(e),r}IF.exports=Eoe});var qF=de((dpe,zF)=>{"use strict";zF.exports=Ioe;var NF=Lt(),Loe=ir(),Doe=["xaxis","yaxis","zaxis"],Roe=[0,0,0];function Poe(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){Roe[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=Poe(a)}});var YF=de((ppe,GF)=>{"use strict";var UF=pn().gl_plot3d,Foe=UF.createCamera,OF=UF.createScene,Noe=kF(),zoe=ov(),xd=Er(),Kn=ir(),md=Kn.preserveDrawingBuffer(),bd=Lt(),bi=fo(),qoe=wo(),Ooe=EF(),Boe=Jm(),Uoe=RF(),Hoe=FF(),Voe=qF(),Goe=uu().applyAutorangeOptions,Kc,yd,HF=!1;function VF(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=Uoe(r,r[this.id]),this.spikeOptions=Hoe(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=xd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=xd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=VF.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:md,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(!yd&&(Kc=document.createElement("canvas"),yd=Noe({canvas:Kc,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!yd))throw new Error("error creating static canvas/context for image server");r.gl=yd,r.canvas=Kc}return r};var BF=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=OF(r)}catch(n){if(e.staticMode||!BF||md)t=!1;else{Kn.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{md=r.glOptions.preserveDrawingBuffer=!0,e.glplot=OF(r)}catch(a){md=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return BF=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=Foe(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"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Ooe(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(){HF=!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)}},zoe?{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};Rn.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),Voe(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=bd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+m.valueLabel),h.textLabel&&d.push(h.textLabel),M=d.join("
")):M=h.textLabel;var _={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};bi.appendArrayPointValue(_,w,T),t._module.eventData&&(_=w._module.eventData(_,h,w,{},T));var g={points:[_]};if(e.fullSceneLayout.hovermode){var c=[];bi.loneHover({trace:w,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(w,T,"bgcolor")||f.color,borderColor:bi.castHoverOption(w,T,"bordercolor"),fontFamily:bi.castHoverOption(w,T,"font.family"),fontSize:bi.castHoverOption(w,T,"font.size"),fontColor:bi.castHoverOption(w,T,"font.color"),nameLength:bi.castHoverOption(w,T,"namelength"),textAlign:bi.castHoverOption(w,T,"align"),hovertemplate:Kn.castOption(w,T,"hovertemplate"),hovertemplateLabels:Kn.extendFlat({},_,m),eventData:[_]},{container:n,gd:r,inOut_bbox:c}),_.bbox=c[0]}h.distance<5&&(h.buttons||HF)?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)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Kn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var Qc=["xaxis","yaxis","zaxis"];function Yoe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=Qc[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Kn.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(Kn.isArrayOrTypedArray(u[p]))for(var b=0;bw[1][i])w[0][i]=-1,w[1][i]=1;else{var v=w[1][i]-w[0][i];w[0][i]-=v/32,w[1][i]+=v/32}if(k=[w[0][i],w[1][i]],k=Goe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var D=w[0][i];w[0][i]=w[1][i],w[1][i]=D}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),T[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[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 F=[1,1,1];for(i=0;i<3;++i){u=f[Qc[i]],s=u.type;var I=m[s];F[i]=Math.pow(I.acc,1/I.count)/b[i]}R==="data"||Math.max.apply(null,F)/Math.min.apply(null,F)<=4?E=F: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()}};Rn.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 Xoe(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 Zoe(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"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Zoe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Xoe(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())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Kn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,h,p){var b=["up","center","eye"],y=["x","y","z"];return f[b[h]]&&s[b[h]][y[p]]===f[b[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};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Kn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.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=Kn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Kn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),xd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var b=Kn.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var y=Kn.nestedProperty(t,r.id+".aspectratio");y.set(i),r.glplot.redraw()}}return h};Rn.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 b=a.layout;xd.call("_storeDirectGUIEdit",b,o._preGUI,p),i.up=h,Kn.nestedProperty(b,f).set(h)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function Joe(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)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(Kc),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),Joe(o,n,a),Koe(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(Kc),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[Qc[r]];bd.setConvert(t,e.fullLayout),t.setScale=Kn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},bd.setConvert(e._mockAxis,t)};GF.exports=VF});var XF=de((gpe,WF)=>{"use strict";WF.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var W3=de((ype,ZF)=>{"use strict";var Qoe=Xr(),Ur=Da(),Y3=Tt().extendFlat,$oe=qn().overrideAll;ZF.exports=$oe({visible:Ur.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Qoe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ur.color,categoryorder:Ur.categoryorder,categoryarray:Ur.categoryarray,title:{text:Ur.title.text,font:Ur.title.font},type:Y3({},Ur.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ur.autotypenumbers,autorange:Ur.autorange,autorangeoptions:{minallowed:Ur.autorangeoptions.minallowed,maxallowed:Ur.autorangeoptions.maxallowed,clipmin:Ur.autorangeoptions.clipmin,clipmax:Ur.autorangeoptions.clipmax,include:Ur.autorangeoptions.include,editType:"plot"},rangemode:Ur.rangemode,minallowed:Ur.minallowed,maxallowed:Ur.maxallowed,range:Y3({},Ur.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ur.minor.tickmode,nticks:Ur.nticks,tick0:Ur.tick0,dtick:Ur.dtick,tickvals:Ur.tickvals,ticktext:Ur.ticktext,ticks:Ur.ticks,mirror:Ur.mirror,ticklen:Ur.ticklen,tickwidth:Ur.tickwidth,tickcolor:Ur.tickcolor,showticklabels:Ur.showticklabels,labelalias:Ur.labelalias,tickfont:Ur.tickfont,tickangle:Ur.tickangle,tickprefix:Ur.tickprefix,showtickprefix:Ur.showtickprefix,ticksuffix:Ur.ticksuffix,showticksuffix:Ur.showticksuffix,showexponent:Ur.showexponent,exponentformat:Ur.exponentformat,minexponent:Ur.minexponent,separatethousands:Ur.separatethousands,tickformat:Ur.tickformat,tickformatstops:Ur.tickformatstops,hoverformat:Ur.hoverformat,showline:Ur.showline,linecolor:Ur.linecolor,linewidth:Ur.linewidth,showgrid:Ur.showgrid,gridcolor:Y3({},Ur.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ur.gridwidth,zeroline:Ur.zeroline,zerolinecolor:Ur.zerolinecolor,zerolinewidth:Ur.zerolinewidth},"plot","from-root")});var K3=de((mpe,JF)=>{"use strict";var X3=W3(),joe=od().attributes,Z3=Tt().extendFlat,ele=ir().counterRegex;function J3(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"}}JF.exports={_arrayAttrRegexps:[ele("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:Z3(J3(0,0,1),{}),center:Z3(J3(0,0,0),{}),eye:Z3(J3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:joe({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:X3,yaxis:X3,zaxis:X3,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 QF=de((xpe,KF)=>{"use strict";var rle=ir(),tle=yt(),nle=od().defaults;KF.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,b;function y(k,S){return rle.coerce(p,b,i,k,S)}for(var w=0;w{"use strict";var ale=Sa().mix,$F=ir(),ile=yt(),ole=W3(),lle=Dm(),sle=R1(),jF=["xaxis","yaxis","zaxis"],ule=100*136/187;eN.exports=function(r,t,n){var a,o;function i(s,f){return $F.coerce(a,o,ole,s,f)}for(var l=0;l{"use strict";var fle=ir(),cle=Xr(),hle=Er(),vle=QF(),dle=rN(),tN=K3(),ple=Lf().getSubplotData,nN="gl3d";aN.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=fle.validate(r[i],tN[i]);if(l)return r[i]}}vle(r,t,n,{type:nN,attributes:tN,handleDefaults:gle,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function gle(e,r,t,n){for(var a=t("bgcolor"),o=cle.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=de(Qn=>{"use strict";var yle=qn().overrideAll,mle=Ll(),xle=YF(),ble=Lf().getSubplotData,_le=ir(),wle=Ho(),Yu="gl3d",Q3="scene";Qn.name=Yu;Qn.attr=Q3;Qn.idRoot=Q3;Qn.idRegex=Qn.attrRegex=_le.counterRegex("scene");Qn.attributes=XF();Qn.layoutAttributes=K3();Qn.baseLayoutAttrOverrides=yle({hoverlabel:mle.hoverlabel},"plot","nested");Qn.supplyLayoutDefaults=iN();Qn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Yu],o=0;o{"use strict";oN.exports={plot:vF(),attributes:V3(),markerSymbols:pd(),supplyDefaults:bF(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:wF(),moduleType:"trace",name:"scatter3d",basePlotModule:vl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var uN=de((Tpe,sN)=>{"use strict";sN.exports=lN()});var $c=de((Ape,hN)=>{"use strict";var fN=Xr(),Mle=ni(),$3=lo().axisHoverFormat,{hovertemplateAttrs:Tle,templatefallbackAttrs:Ale}=ja(),cN=Sn(),j3=Tt().extendFlat,kle=qn().overrideAll;function e5(e){return{valType:"boolean",dflt:!1}}function r5(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:e5("x"),y:e5("y"),z:e5("z")},color:{valType:"color",dflt:fN.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:fN.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var t5=hN.exports=kle(j3({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:Tle(),hovertemplatefallback:Ale(),xhoverformat:$3("x"),yhoverformat:$3("y"),zhoverformat:$3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Mle("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:r5("x"),y:r5("y"),z:r5("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:j3({},cN.hoverinfo),showlegend:j3({},cN.showlegend,{dflt:!1})}),"calc","nested");t5.x.editType=t5.y.editType=t5.z.editType="calc+clearAxisTypes"});var a5=de((kpe,pN)=>{"use strict";var Sle=Er(),vN=ir(),Cle=Di(),Ele=$c(),n5=.1;function Lle(e,r){for(var t=[],n=32,a=0;a{"use strict";var gN=Go();yN.exports=function(r,t){t.surfacecolor?gN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):gN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var wN=de((Cpe,_N)=>{"use strict";var Ple=ir(),xN=.01,Ile=[[-1,0],[1,0],[0,-1],[0,1]];function Fle(e){return .5-.25*Math.min(1,e*.5)}_N.exports=function(r,t){var n=1,a;for(bN(r,t),a=0;axN;a++)n=bN(r,t,Fle(n));return n>xN&&Ple.log("interp2d didn't converge quickly",n),r};function bN(e,r,t){var n=0,a,o,i,l,u,s,f,h,p,b,y,w,T;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-y)/(T-w))))}return n}});var TN=de((Epe,MN)=>{"use strict";var Nle=ir().maxRowLength;MN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Nle(r),s,f,h,p,b,y,w,T;for(f=0;f=0;b--)p=a[b],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&&(w[p]=[f,h,y],a.splice(b,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var LN=de((Lpe,EN)=>{"use strict";var zle=pn().gl_surface3d,Wu=pn().ndarray,qle=pn().ndarray_linear_interpolate.d2,Ole=wN(),Ble=TN(),jc=ir().isArrayOrTypedArray,Ule=hl().parseColorScale,AN=wo(),Hle=Ri().extractOpts;function SN(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=SN.prototype;_i.getXat=function(e,r,t,n){var a=jc(this.data.x)?jc(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=jc(this.data.y)?jc(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 jc(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 Vle(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 Xu=[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 Gle(e,r){if(e0){t=Xu[n];break}return t}function Wle(e,r){if(!(e<1||r<1)){for(var t=i5(e),n=i5(r),a=1,o=0;o_d;)n--,n/=Yle(n),n++,n1?a:1};function Zle(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 Jle(e,r,t){return Kle(e,r,Zle,t),e}function Kle(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";DN.exports={attributes:$c(),supplyDefaults:a5().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:mN(),plot:LN(),moduleType:"trace",name:"surface",basePlotModule:vl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var IN=de((Rpe,PN)=>{"use strict";PN.exports=RN()});var Zu=de((Ppe,NN)=>{"use strict";var jle=ni(),o5=lo().axisHoverFormat,{hovertemplateAttrs:ese,templatefallbackAttrs:rse}=ja(),dl=$c(),FN=Sn(),pl=Tt().extendFlat;NN.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:ese({editType:"calc"}),hovertemplatefallback:rse({editType:"calc"}),xhoverformat:o5("x"),yhoverformat:o5("y"),zhoverformat:o5("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"}},jle("",{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({},FN.hoverinfo,{editType:"calc"}),showlegend:pl({},FN.showlegend,{dflt:!1})})});var Md=de((Ipe,qN)=>{"use strict";var tse=ni(),wd=lo().axisHoverFormat,{hovertemplateAttrs:nse,templatefallbackAttrs:ase}=ja(),e0=Zu(),zN=Sn(),l5=Tt().extendFlat,ise=qn().overrideAll;function s5(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function u5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Ju=qN.exports=ise(l5({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:s5("x"),y:s5("y"),z:s5("z")},caps:{x:u5("x"),y:u5("y"),z:u5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:nse(),hovertemplatefallback:ase(),xhoverformat:wd("x"),yhoverformat:wd("y"),zhoverformat:wd("z"),valuehoverformat:wd("value",1),showlegend:l5({},zN.showlegend,{dflt:!1})},tse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:e0.opacity,lightposition:e0.lightposition,lighting:e0.lighting,flatshading:e0.flatshading,contour:e0.contour,hoverinfo:l5({},zN.hoverinfo)}),"calc","nested");Ju.flatshading.dflt=!0;Ju.lighting.facenormalsepsilon.dflt=0;Ju.x.editType=Ju.y.editType=Ju.z.editType=Ju.value.editType="calc+clearAxisTypes"});var f5=de((Fpe,BN)=>{"use strict";var ose=ir(),lse=Er(),sse=Md(),use=Di();function fse(e,r,t,n){function a(o,i){return ose.coerce(e,r,sse,o,i)}ON(e,r,t,n,a)}function ON(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=lse.getComponentMethod("calendars","handleTraceDefaults");h(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var T="caps."+w,m=a(T+".show");m&&a(T+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var b=a("surface.show");b&&(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(w){a(w)}),use(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}BN.exports={supplyDefaults:fse,supplyIsoDefaults:ON}});var Td=de((Npe,HN)=>{"use strict";var h5=ir(),cse=Go();function hse(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=Zi(r.u,r._len),r._v=Zi(r.v,r._len),r._w=Zi(r.w,r._len),r._x=Zi(r.x,r._len),r._y=Zi(r.y,r._len),r._z=Zi(r.z,r._len);var t=UN(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=Zi(r.starts.x||[]),o=Zi(r.starts.y||[]),i=Zi(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],_=n[a-1]),o=0;oS?"-":"+")+"x"),y=y.replace("y",(x>M?"-":"+")+"y"),y=y.replace("z",(d>_?"-":"+")+"z");var v=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var vse=Go(),dse=Td().processGrid,Ad=Td().filter;VN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=Ad(t.x,t._len),t._y=Ad(t.y,t._len),t._z=Ad(t.z,t._len),t._value=Ad(t.value,t._len);var n=dse(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";GN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var pse=pn().gl_mesh3d,gse=hl().parseColorScale,yse=ir().isArrayOrTypedArray,mse=wo(),xse=Ri().extractOpts,YN=Ku(),r0=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 U(ke,me){return ke===null?me:ke}function X(ke,me,ye){v();var pe=[me],he=[ye];if(I>=1)pe=[me],he=[ye];else if(I>0){var xe=P(me,ye);pe=xe.xyzv,he=xe.abc}for(var Le=0;Le-1?ye[Ne]:A($e,Ve,Be);Te>-1?qe[Ne]=Te:qe[Ne]=E($e,Ve,Be,U(ke,Ye))}R(qe[0],qe[1],qe[2])}}function $(ke,me,ye){var pe=function(he,xe,Le){X(ke,[me[he],me[xe],me[Le]],[ye[he],ye[xe],ye[Le]])};pe(0,1,2),pe(2,3,0)}function j(ke,me,ye){var pe=function(he,xe,Le){X(ke,[me[he],me[xe],me[Le]],[ye[he],ye[xe],ye[Le]])};pe(0,1,2),pe(3,0,1),pe(2,3,0),pe(1,2,3)}function Y(ke,me,ye,pe){var he=ke[3];hepe&&(he=pe);for(var xe=(ke[3]-he)/(ke[3]-me[3]+1e-9),Le=[],qe=0;qe<4;qe++)Le[qe]=(1-xe)*ke[qe]+xe*me[qe];return Le}function q(ke,me,ye){return ke>=me&&ke<=ye}function Q(ke){var me=.001*(M-x);return ke>=x-me&&ke<=M+me}function ae(ke){for(var me=[],ye=0;ye<4;ye++){var pe=ke[ye];me.push([e._x[pe],e._y[pe],e._z[pe],e._value[pe]])}return me}var K=3;function oe(ke,me,ye,pe,he,xe){xe||(xe=1),ye=[-1,-1,-1];var Le=!1,qe=[q(me[0][3],pe,he),q(me[1][3],pe,he),q(me[2][3],pe,he)];if(!qe[0]&&!qe[1]&&!qe[2])return!1;var Ne=function(Ve,Be,Ye){return Q(Be[0][3])&&Q(Be[1][3])&&Q(Be[2][3])?(X(Ve,Be,Ye),!0):xeqe?[k,xe]:[xe,S];Ce(me,Ne[0],Ne[1])}}var $e=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Ve){for(var Be=[],Ye=0;Ye<$e.length;Ye++){var Te=0,Re=$e[Ye][0],Qe=$e[Ye][1],Ke=e.slices[Ve];if(Ke.show&&Ke.fill){L(Ke.fill);var ar=[],ue=[],J=[];if(Ke.locations.length)for(var ne=0;ne0&&(ue.push(De.id),Ve==="x"?J.push([De.distRatio,0,0]):Ve==="y"?J.push([0,De.distRatio,0]):J.push([0,0,De.distRatio]))}else Ve==="x"?ar=Ue(1,b-1):Ve==="y"?ar=Ue(1,y-1):ar=Ue(1,w-1);ue.length>0&&(Ve==="x"?Be[Te]=Fe(ke,ue,Re,Qe,J,Be[Te]):Ve==="y"?Be[Te]=Ee(ke,ue,Re,Qe,J,Be[Te]):Be[Te]=ze(ke,ue,Re,Qe,J,Be[Te]),Te++),ar.length>0&&(Ve==="x"?Be[Te]=ve(ke,ar,Re,Qe,Be[Te]):Ve==="y"?Be[Te]=Ae(ke,ar,Re,Qe,Be[Te]):Be[Te]=we(ke,ar,Re,Qe,Be[Te]),Te++)}var He=e.caps[Ve];He.show&&He.fill&&(L(He.fill),Ve==="x"?Be[Te]=ve(ke,[0,b-1],Re,Qe,Be[Te]):Ve==="y"?Be[Te]=Ae(ke,[0,y-1],Re,Qe,Be[Te]):Be[Te]=we(ke,[0,w-1],Re,Qe,Be[Te]),Te++)}}),l===0&&D(),e._meshX=d,e._meshY=_,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=h,e._Zs=p}return Me(),e}function _se(e,r){var t=e.glplot.gl,n=pse({gl:t}),a=new WN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}ZN.exports={findNearestOnAxis:r0,generateIsoMeshes:XN,createIsosurfaceTrace:_se}});var KN=de((Bpe,JN)=>{"use strict";JN.exports={attributes:Md(),supplyDefaults:f5().supplyDefaults,calc:v5(),colorbar:{min:"cmin",max:"cmax"},plot:kd().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var $N=de((Upe,QN)=>{"use strict";QN.exports=KN()});var g5=de((Hpe,ez)=>{"use strict";var wse=ni(),Xt=Md(),Mse=$c(),jN=Sn(),p5=Tt().extendFlat,Tse=qn().overrideAll,Sd=ez.exports=Tse(p5({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},wse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Xt.colorbar,opacity:Xt.opacity,opacityscale:Mse.opacityscale,lightposition:Xt.lightposition,lighting:Xt.lighting,flatshading:Xt.flatshading,contour:Xt.contour,hoverinfo:p5({},jN.hoverinfo),showlegend:p5({},jN.showlegend,{dflt:!1})}),"calc","nested");Sd.x.editType=Sd.y.editType=Sd.z.editType=Sd.value.editType="calc+clearAxisTypes"});var tz=de((Vpe,rz)=>{"use strict";var Ase=ir(),kse=g5(),Sse=f5().supplyIsoDefaults,Cse=a5().opacityscaleDefaults;rz.exports=function(r,t,n,a){function o(i,l){return Ase.coerce(r,t,kse,i,l)}Sse(r,t,n,a,o),Cse(r,t,a,o)}});var oz=de((Gpe,iz)=>{"use strict";var Ese=pn().gl_mesh3d,Lse=hl().parseColorScale,Dse=ir().isArrayOrTypedArray,Rse=wo(),Pse=Ri().extractOpts,nz=Ku(),y5=kd().findNearestOnAxis,Ise=kd().generateIsoMeshes;function az(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var m5=az.prototype;m5.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=y5(t,this.data._Xs).id,u=y5(n,this.data._Ys).id,s=y5(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 Dse(h)&&h[f]!==void 0?e.textLabel=h[f]:h&&(e.textLabel=h),!0}};m5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Ise(e);function n(u,s,f,h){return s.map(function(p){return u.d2l(p,0,h)*f})}var a=nz(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=nz(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:Rse(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Pse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Lse(e),this.mesh.update(i)};m5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Fse(e,r){var t=e.glplot.gl,n=Ese({gl:t}),a=new az(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}iz.exports=Fse});var sz=de((Ype,lz)=>{"use strict";lz.exports={attributes:g5(),supplyDefaults:tz(),calc:v5(),colorbar:{min:"cmin",max:"cmax"},plot:oz(),moduleType:"trace",name:"volume",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var fz=de((Wpe,uz)=>{"use strict";uz.exports=sz()});var vz=de((Xpe,hz)=>{"use strict";var Nse=Er(),cz=ir(),zse=Di(),qse=Zu();hz.exports=function(r,t,n,a){function o(f,h){return cz.coerce(r,t,qse,f,h)}function i(f){var h=f.map(function(p){var b=o(p);return b&&cz.isArrayOrTypedArray(b)?b: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=Nse.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"),zse(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 pz=de((Zpe,dz)=>{"use strict";var Ose=Go();dz.exports=function(r,t){t.intensity&&Ose(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var bz=de((Jpe,xz)=>{"use strict";var Bse=pn().gl_mesh3d,Use=pn().delaunay_triangulate,Hse=pn().alpha_shape,Vse=pn().convex_hull,Gse=hl().parseColorScale,Yse=ir().isArrayOrTypedArray,w5=wo(),Wse=Ri().extractOpts,gz=Ku();function mz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var M5=mz.prototype;M5.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 Yse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function yz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}M5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=gz(x5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),x5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),x5(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||!_5(e.i,n)||!_5(e.j,n)||!_5(e.k,n))return;o=gz(b5(e.i),b5(e.j),b5(e.k))}else e.alphahull===0?o=Vse(a):e.alphahull>0?o=Hse(e.alphahull,a):o=Xse(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:w5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=Wse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=Gse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=yz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=yz(e.facecolor)):(this.color=e.color,i.meshColor=w5(e.color));this.mesh.update(i)};M5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Zse(e,r){var t=e.glplot.gl,n=Bse({gl:t}),a=new mz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}xz.exports=Zse});var wz=de((Kpe,_z)=>{"use strict";_z.exports={attributes:Zu(),supplyDefaults:vz(),calc:pz(),colorbar:{min:"cmin",max:"cmax"},plot:bz(),moduleType:"trace",name:"mesh3d",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var Tz=de((Qpe,Mz)=>{"use strict";Mz.exports=wz()});var A5=de(($pe,kz)=>{"use strict";var Jse=ni(),Qu=lo().axisHoverFormat,{hovertemplateAttrs:Kse,templatefallbackAttrs:Qse}=ja(),$se=Zu(),Az=Sn(),T5=Tt().extendFlat,Cd={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:Kse({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:Qse({editType:"calc"}),uhoverformat:Qu("u",1),vhoverformat:Qu("v",1),whoverformat:Qu("w",1),xhoverformat:Qu("x"),yhoverformat:Qu("y"),zhoverformat:Qu("z"),showlegend:T5({},Az.showlegend,{dflt:!1})};T5(Cd,Jse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var jse=["opacity","lightposition","lighting"];jse.forEach(function(e){Cd[e]=$se[e]});Cd.hoverinfo=T5({},Az.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});kz.exports=Cd});var Cz=de((jpe,Sz)=>{"use strict";var eue=ir(),rue=Di(),tue=A5();Sz.exports=function(r,t,n,a){function o(b,y){return eue.coerce(r,t,tue,b,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"),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 Lz=de((ege,Ez)=>{"use strict";var nue=Go();Ez.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 aue=pn().gl_cone3d,iue=pn().gl_cone3d.createConeMesh,oue=ir().simpleMap,lue=hl().parseColorScale,sue=Ri().extractOpts,uue=ir().isArrayOrTypedArray,Dz=Ku();function Rz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var k5=Rz.prototype;k5.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 uue(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var fue={xaxis:0,yaxis:1,zaxis:2},cue={tip:1,tail:0,cm:.25,center:.5},hue={tip:1,tail:1,cm:.75,center:.5};function Pz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,h){var p=t[h],b=n[fue[h]];return oue(f,function(y){return p.d2l(y)*b})}a.vectors=Dz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=Dz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=sue(r);a.colormap=lue(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=cue[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=aue(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=hue[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}k5.update=function(e){this.data=e;var r=Pz(this.scene,e);this.mesh.update(r)};k5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function vue(e,r){var t=e.glplot.gl,n=Pz(e,r),a=iue(t,n),o=new Rz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Iz.exports=vue});var zz=de((tge,Nz)=>{"use strict";Nz.exports={moduleType:"trace",name:"cone",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:A5(),supplyDefaults:Cz(),colorbar:{min:"cmin",max:"cmax"},calc:Lz(),plot:Fz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Oz=de((nge,qz)=>{"use strict";qz.exports=zz()});var C5=de((age,Uz)=>{"use strict";var due=ni(),$u=lo().axisHoverFormat,{hovertemplateAttrs:pue,templatefallbackAttrs:gue}=ja(),yue=Zu(),Bz=Sn(),S5=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"},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:pue({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:gue({editType:"calc"}),uhoverformat:$u("u",1),vhoverformat:$u("v",1),whoverformat:$u("w",1),xhoverformat:$u("x"),yhoverformat:$u("y"),zhoverformat:$u("z"),showlegend:S5({},Bz.showlegend,{dflt:!1})};S5(Ed,due("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var mue=["opacity","lightposition","lighting"];mue.forEach(function(e){Ed[e]=yue[e]});Ed.hoverinfo=S5({},Bz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Uz.exports=Ed});var Vz=de((ige,Hz)=>{"use strict";var xue=ir(),bue=Di(),_ue=C5();Hz.exports=function(r,t,n,a){function o(p,b){return xue.coerce(r,t,_ue,p,b)}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"),bue(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 Qz=de((oge,Kz)=>{"use strict";var Wz=pn().gl_streamtube3d,wue=Wz.createTubeMesh,Mue=ir(),Tue=hl().parseColorScale,Aue=Ri().extractOpts,Gz=Ku(),Xz={xaxis:0,yaxis:1,zaxis:2};function Zz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var L5=Zz.prototype;L5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Xz[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 Yz(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 E5(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[Xz[E]];return Mue.simpleMap(D,function(F){return R.d2l(F)*N})}if(o.vectors=Gz(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=Gz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var h=u[0],p=Yz(l),b=Yz(s),y=new Array(p.length*b.length),w=0,T=0;T{"use strict";$z.exports={moduleType:"trace",name:"streamtube",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:C5(),supplyDefaults:Vz(),colorbar:{min:"cmin",max:"cmax"},calc:Td().calc,plot:Qz(),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 rq=de((sge,eq)=>{"use strict";eq.exports=jz()});var Pn=de((uge,nq)=>{"use strict";var tq=Object.getOwnPropertySymbols,Sue=Object.prototype.hasOwnProperty,Cue=Object.prototype.propertyIsEnumerable;function Eue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Lue(){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}}nq.exports=Lue()?Object.assign:function(e,r){for(var t,n=Eue(e),a,o=1;o{var Dd=Pn();function aq(){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={}}Dd(aq.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 D5(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(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Ld(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Dd(D5.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(Yr.local.invalidDate||Yr.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(Yr.local.differentCalendars||Yr.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?"-":"")+Ld(Math.abs(this.year()),4)+"-"+Ld(this.month(),2)+"-"+Ld(this.day(),2)}});function R5(){this.shortYearCutoff="+10"}Dd(R5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new D5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.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,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Ld(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Yr.local.invalidMonth||Yr.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,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.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,Yr.local.invalidDate||Yr.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 Yr=iq.exports=new aq;Yr.cdate=D5;Yr.baseCalendar=R5;Yr.calendars.gregorian=P5});var oq=de(()=>{var I5=Pn(),gn=In();I5(gn.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"});gn.local=gn.regionalOptions[""];I5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});I5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.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 gn.local.invalidFormat||gn.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 d=1;S+d1},f=function(x,M,d,_){var g=""+M;if(s(x,_))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],F=new RegExp("^-?\\d{1,"+N+"}"),I=r.substring(g).match(F);if(!I)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=I[0].length,parseInt(I[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 F=m(D,N)?R:E,I=0;I-1){p=1,b=y;for(var v=this.daysInMonth(h,p);b>v;v=this.daysInMonth(h,p))p++,b-=v}return f>-1?this.fromJD(f):this.newDate(h,p,b)},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 lq=de(()=>{var yl=In(),Due=Pn(),F5=yl.instance();function Rd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Rd.prototype=new yl.baseCalendar;Due(Rd.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(Pue);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(Iue);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(Fue);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=F5.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=zue(e,o,t,a);return F5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=F5.fromJD(e),t=Nue(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(Rue),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(Rd.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 Rue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Pue=/^\d?\d[iI]?/m,Iue=/^闰?十?[一二三四五六七八九]?月/m,Fue=/^闰?十?[一二三四五六七八九]?/m;yl.calendars.chinese=Rd;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 Nue(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,b=s&31,y,w=new Date(h,p-1,b),T=new Date(a.year,a.month-1,a.day);y=Math.round((T-w)/(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]],b=p>>13,y;b&&(i.month>b||i.isIntercalary)?y=i.month:y=i.month-1;for(var w=0;w>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 sq=de(()=>{var ws=In(),que=Pn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ws.baseCalendar;que(N5.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,ws.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,ws.local.invalidYear||ws.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,ws.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,ws.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)}});ws.calendars.coptic=N5});var uq=de(()=>{var Ao=In(),Oue=Pn();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new Ao.baseCalendar;Oue(z5.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:Bue[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 Bue={20:"Fruitbat",21:"Anchovy"};Ao.calendars.discworld=z5});var fq=de(()=>{var Ms=In(),Uue=Pn();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new Ms.baseCalendar;Uue(q5.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,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.ethiopian=q5});var cq=de(()=>{var bl=In(),Hue=Pn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new bl.baseCalendar;Hue(O5.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,Pd(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&&Pd(this.daysInYear(e),10)===5?30:r===9&&Pd(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 Pd(e,r){return e-r*Math.floor(e/r)}bl.calendars.hebrew=O5});var hq=de(()=>{var t0=In(),Vue=Pn();function B5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B5.prototype=new t0.baseCalendar;Vue(B5.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,t0.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,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)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,t0.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)}});t0.calendars.islamic=B5});var vq=de(()=>{var n0=In(),Gue=Pn();function U5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U5.prototype=new n0.baseCalendar;Gue(U5.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,n0.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,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(e,r,t){var n=this._validate(e,r,t,n0.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)}});n0.calendars.julian=U5});var pq=de(()=>{var Xa=In(),Yue=Pn();function V5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V5.prototype=new Xa.baseCalendar;Yue(V5.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=H5(e+8+17*20,365);return[Math.floor(r/20)+1,H5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[dq(e+20,20),dq(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 H5(e,r){return e-r*Math.floor(e/r)}function dq(e,r){return H5(e-1,r)+1}Xa.calendars.mayan=V5});var yq=de(()=>{var Ts=In(),Wue=Pn();function G5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G5.prototype=new Ts.baseCalendar;var gq=Ts.instance("gregorian");Wue(G5.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,Ts.local.invalidYear||Ts.regionalOptions[""].invalidYear);return gq.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,Ts.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,Ts.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)}});Ts.calendars.nanakshahi=G5});var mq=de(()=>{var As=In(),Xue=Pn();function Y5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y5.prototype=new As.baseCalendar;Xue(Y5.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,As.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,As.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,As.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=As.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=As.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 ju=In(),Zue=Pn();function Fd(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}Fd.prototype=new ju.baseCalendar;Zue(Fd.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,ju.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,ju.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,ju.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)}});ju.calendars.persian=Fd;ju.calendars.jalali=Fd});var bq=de(()=>{var ks=In(),Jue=Pn(),Nd=ks.instance();function W5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W5.prototype=new ks.baseCalendar;Jue(W5.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,ks.local.invalidYear),t=this._t2gYear(r.year());return Nd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ks.local.invalidYear),a=this._t2gYear(n.year());return Nd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ks.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,ks.local.invalidDate),a=this._t2gYear(n.year());return Nd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Nd.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)}});ks.calendars.taiwan=W5});var _q=de(()=>{var Ss=In(),Kue=Pn(),zd=Ss.instance();function X5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X5.prototype=new Ss.baseCalendar;Kue(X5.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 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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ss.calendars.thai=X5});var wq=de(()=>{var Cs=In(),Que=Pn();function Z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z5.prototype=new Cs.baseCalendar;Que(Z5.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,Cs.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,Cs.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,Cs.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=Cs.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=Cs.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Cs.calendars.ummalqura=Z5;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 Tq=de((Uge,Mq)=>{"use strict";Mq.exports=In();oq();lq();sq();uq();fq();cq();hq();vq();pq();yq();mq();xq();bq();_q();wq()});var Dq=de((Hge,Lq)=>{"use strict";var kq=Tq(),a0=ir(),Sq=nn(),$ue=Sq.EPOCHJD,jue=Sq.ONEDAY,Q5={valType:"enumerated",values:a0.sortObjectKeys(kq.calendars),editType:"calc",dflt:"gregorian"},Cq=function(e,r,t,n){var a={};return a[t]=Q5,a0.coerce(e,r,a,t,n)},efe=function(e,r,t,n){for(var a=0;a{"use strict";Rq.exports=Dq()});var ofe=de((Gge,Fq)=>{var Iq=RI();Iq.register([uN(),IN(),$N(),fz(),Tz(),Oz(),rq(),Pq()]);Fq.exports=Iq});return ofe();})(); /*! * pad-left * diff --git a/dist/plotly-mapbox.js b/dist/plotly-mapbox.js index 066c3d0e495..39757cbb961 100644 --- a/dist/plotly-mapbox.js +++ b/dist/plotly-mapbox.js @@ -13756,9 +13756,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35886,7 +35886,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-mapbox.min.js b/dist/plotly-mapbox.min.js index 8036e6a4404..ed32cf96111 100644 --- a/dist/plotly-mapbox.min.js +++ b/dist/plotly-mapbox.min.js @@ -12,18 +12,18 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var fj=Object.defineProperty,cj=Object.defineProperties;var hj=Object.getOwnPropertyDescriptors;var A7=Object.getOwnPropertySymbols;var vj=Object.prototype.hasOwnProperty,dj=Object.prototype.propertyIsEnumerable;var M7=(e,t,r)=>t in e?fj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sd=(e,t)=>{for(var r in t||(t={}))vj.call(t,r)&&M7(e,r,t[r]);if(A7)for(var r of A7(t))dj.call(t,r)&&M7(e,r,t[r]);return e},e_=(e,t)=>cj(e,hj(t));var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var t_=me(S7=>{"use strict";S7.version="3.4.0"});var C7=me((k7,r_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof r_!="undefined"&&r_.exports&&(r_.exports=r[t])})("Promise",typeof window!="undefined"?window:k7,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,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){z=new N(V,W),q?q.next=z:O=z,q=z,z=void 0},drain:function(){var V=O;for(O=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(I,O){i.add(I,O),r||(r=s(i.drain))}function f(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,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(S,P){f.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,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,S){var P=-1,B=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,S){var P=-1,B=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=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,U){for(arguments.length<3&&(B=0),arguments.length<4&&(U=S.length);B>>1;y(S[Z],P)<0?B=Z+1:U=Z}return B},right:function(S,P,B,U){for(arguments.length<3&&(B=0),arguments.length<4&&(U=S.length);B>>1;y(S[Z],P)>0?U=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,U,Z;B;)Z=Math.random()*B--|0,U=y[B+S],y[B+S]=y[Z+S],y[Z+S]=U;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,U=y[0],Z=new Array(P<0?0:P);S=0;)for($=y[S],P=$.length;--P>=0;)Z[--U]=$[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=[],U=O(I(P)),Z=-1,$;if(y*=U,S*=U,P*=U,P<0)for(;($=y+P*++Z)>S;)B.push($/U);else for(;($=y+P*++Z)=S.length)return U?U.call(y,ae):B?ae.sort(B):ae;for(var xe=-1,Pe=ae.length,De=S[ye++],$e,ot,Ie,He=new z,Qe;++xe=S.length)return X;var ye=[],xe=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),xe?ye.sort(function(Pe,De){return xe(Pe.key,De.key)}):ye}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 U=X,y},y},e.set=function(y){var S=new le;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 Ee(y){var S=[],P=new z;function B(){for(var U=S,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return B.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,S=S.slice(0,X=S.indexOf($)).concat(S.slice(X+1)),P.remove(U)),Z&&S.push(P.set(U,{on:Z})),y)},B}e.event=null;function Xe(){e.event.preventDefault()}function lt(){for(var y=e.event,S;S=y.sourceEvent;)y=S;return y}function it(y){for(var S=new ke,P=0,B=arguments.length;++P=0&&(P=y.slice(0,S))!=="xmlns"&&(y=y.slice(S+1)),Ue.hasOwnProperty(P)?{space:Ue[P],local:y}:y}},yt.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 U(){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:U}function Je(y){return y.trim().replace(/\s+/g," ")}yt.classed=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),B=(y=wt(y)).length,U=-1;if(S=P.classList){for(;++U=0;)(Z=P[B])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},yt.sort=function(y){y=ut.apply(this,arguments);for(var S=-1,P=this.length;++S=S&&(S=U+1);!(ae=$[S])&&++S0&&(y=y.slice(0,U));var $=Ot.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 ye(){var xe=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(xe)){var $e=this[De];this.removeEventListener(Pe[1],$e,$e.$),delete this[De]}}return U?S?ae:X:S?pe:ye}var Ot=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ot.forEach(function(y){"on"+y in i&&Ot.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 U=this,Z=B.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,B)}}var Kt,pr=0;function yr(y){var S=".dragsuppress-"+ ++pr,P="click"+S,B=e.select(s(y)).on("touchmove"+S,Xe).on("dragstart"+S,Xe).on("selectstart"+S,Xe);if(Kt==null&&(Kt="onselectstart"in y?!1:Me(y.style,"userSelect")),Kt){var U=a(y).style,Z=U[Kt];U[Kt]="none"}return function($){if(B.on(S,null),Kt&&(U[Kt]=Z),$){var X=function(){B.on(P,null)};B.on(P,function(){Xe(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return Lt(y,lt())};var ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Lt(y,S){S.changedTouches&&(S=S.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var B=P.createSVGPoint();if(ur<0){var U=s(y);if(U.scrollX||U.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();ur=!(Z.f||Z.e),P.remove()}}return ur?(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=lt().changedTouches),S){for(var B=0,U=S.length,Z;B0?1:y<0?-1:0}function ii(y,S,P){return(S[0]-y[0])*(P[1]-y[1])-(S[1]-y[1])*(P[0]-y[0])}function wi(y){return y>1?0:y<-1?Tt:Math.acos(y)}function vi(y){return y>1?Mr:y<-1?-Mr:Math.asin(y)}function Fi(y){return((y=Math.exp(y))-1/y)/2}function Gi(y){return((y=Math.exp(y))+1/y)/2}function vn(y){return((y=Math.exp(2*y))-1)/(y+1)}function nn(y){return(y=Math.sin(y/2))*y}var Ki=Math.SQRT2,ir=2,oi=4;e.interpolateZoom=function(y,S){var P=y[0],B=y[1],U=y[2],Z=S[0],$=S[1],X=S[2],ae=Z-P,ye=$-B,xe=ae*ae+ye*ye,Pe,De;if(xe0&&(jt=jt.transition().duration($)),jt.call(nt.event)}function zr(){He&&He.domain(Ie.range().map(function(jt){return(jt-y.x)/y.k}).map(Ie.invert)),ct&&ct.domain(Qe.range().map(function(jt){return(jt-y.y)/y.k}).map(Qe.invert))}function Rr(jt){X++||jt({type:"zoomstart"})}function ea(jt){zr(),jt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Vr(jt){--X||(jt({type:"zoomend"}),P=null)}function Kr(){var jt=this,Jr=ot.of(jt,arguments),na=0,oa=e.select(s(jt)).on(ye,en).on(xe,bi),Di=je(e.mouse(jt)),Vi=yr(jt);fh.call(jt),Rr(Jr);function en(){na=1,hr(e.mouse(jt),Di),ea(Jr)}function bi(){oa.on(ye,null).on(xe,null),Vi(na),Vr(Jr)}}function Na(){var jt=this,Jr=ot.of(jt,arguments),na={},oa=0,Di,Vi=".zoom-"+e.event.changedTouches[0].identifier,en="touchmove"+Vi,bi="touchend"+Vi,wn=[],Tr=e.select(jt),Hr=yr(jt);Ai(),Rr(Jr),Tr.on(ae,null).on(De,Ai);function Ni(){var mn=e.touches(jt);return Di=y.k,mn.forEach(function(pi){pi.identifier in na&&(na[pi.identifier]=je(pi))}),mn}function Ai(){var mn=e.event.target;e.select(mn).on(en,fo).on(bi,qn),wn.push(mn);for(var pi=e.event.changedTouches,Jo=0,co=pi.length;Jo1){var Ta=ci[0],ui=ci[1],Bl=Ta[0]-ui[0],Kv=Ta[1]-ui[1];oa=Bl*Bl+Kv*Kv}}function fo(){var mn=e.touches(jt),pi,Jo,co,ci;fh.call(jt);for(var xf=0,Ta=mn.length;xf1?1:S,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+S):P+S-P*S,B=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?B+(U-B)*X/60:X<180?U:X<240?B+(U-B)*(240-X)/60:B}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=he;function he(y,S,P){return this instanceof he?(this.h=+y,this.c=+S,void(this.l=+P)):arguments.length<2?y instanceof he?new he(y.h,y.c,y.l):y instanceof et?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 he(y,S,P)}var Le=he.prototype=new ma;Le.brighter=function(y){return new he(this.h,this.c,Math.min(100,this.l+We*(arguments.length?y:1)))},Le.darker=function(y){return new he(this.h,this.c,Math.max(0,this.l-We*(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 et(P,Math.cos(y*=Gr)*S,Math.sin(y)*S)}e.lab=et;function et(y,S,P){return this instanceof et?(this.l=+y,this.a=+S,void(this.b=+P)):arguments.length<2?y instanceof et?new et(y.l,y.a,y.b):y instanceof he?Ne(y.h,y.c,y.l):nr((y=ua(y)).r,y.g,y.b):new et(y,S,P)}var We=18,mt=.95047,Pt=1,Ft=1.08883,tr=et.prototype=new ma;tr.brighter=function(y){return new et(Math.min(100,this.l+We*(arguments.length?y:1)),this.a,this.b)},tr.darker=function(y){return new et(Math.max(0,this.l-We*(arguments.length?y:1)),this.a,this.b)},tr.rgb=function(){return Wt(this.l,this.a,this.b)};function Wt(y,S,P){var B=(y+16)/116,U=B+S/500,Z=B-P/200;return U=Zr(U)*mt,B=Zr(B)*Pt,Z=Zr(Z)*Ft,new ua(ca(3.2404542*U-1.5371385*B-.4985314*Z),ca(-.969266*U+1.8760108*B+.041556*Z),ca(.0556434*U-.2040259*B+1.0572252*Z))}function Sr(y,S,P){return y>0?new he(Math.atan2(P,S)*pa,Math.sqrt(S*S+P*P),y):new he(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):$r(""+y,ua,ue):new ua(y,S,P)}function qa(y){return new ua(y>>16,y>>8&255,y&255)}function ri(y){return qa(y)+""}var Yr=ua.prototype=new ma;Yr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var S=this.r,P=this.g,B=this.b,U=30;return!S&&!P&&!B?new ua(U,U,U):(S&&S>4,B=B>>4|B,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(B=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),S(B,U,Z))}function ga(y,S,P){var B=Math.min(y/=255,S/=255,P/=255),U=Math.max(y,S,P),Z=U-B,$,X,ae=(U+B)/2;return Z?(X=ae<.5?Z/(U+B):Z/(2-U-B),y==U?$=(S-P)/Z+(S0&&ae<1?0:$),new se($,X,ae)}function nr(y,S,P){y=Ti(y),S=Ti(S),P=Ti(P);var B=Or((.4124564*y+.3575761*S+.1804375*P)/mt),U=Or((.2126729*y+.7151522*S+.072175*P)/Pt),Z=Or((.0193339*y+.119192*S+.9503041*P)/Ft);return et(116*U-16,500*(B-U),200*(U-Z))}function Ti(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ea(y){var S=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(S*2.55):S}var si=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});si.forEach(function(y,S){si.set(y,qa(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 U={},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=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var xe=X.status,Pe;if(!xe&&Ga(X)||xe>=200&&xe<300||xe===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(xe){var Pe=e.event;e.event=xe;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(xe,Pe){return xe=(xe+"").toLowerCase(),arguments.length<2?$[xe]:(Pe==null?delete $[xe]:$[xe]=Pe+"",U)},U.mimeType=function(xe){return arguments.length?(S=xe==null?null:xe+"",U):S},U.responseType=function(xe){return arguments.length?(ae=xe,U):ae},U.response=function(xe){return P=xe,U},["get","post"].forEach(function(xe){U[xe]=function(){return U.send.apply(U,[xe].concat(r(arguments)))}}),U.send=function(xe,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=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),De!=null&&U.on("error",De).on("load",function(ot){De(null,ot)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),B==null?U:U.get(bs(B))}function bs(y){return y.length===1?function(S,P){y(S==null?P:null)}:y}function Ga(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 fj=Object.defineProperty,cj=Object.defineProperties;var hj=Object.getOwnPropertyDescriptors;var A7=Object.getOwnPropertySymbols;var vj=Object.prototype.hasOwnProperty,dj=Object.prototype.propertyIsEnumerable;var M7=(e,t,r)=>t in e?fj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sd=(e,t)=>{for(var r in t||(t={}))vj.call(t,r)&&M7(e,r,t[r]);if(A7)for(var r of A7(t))dj.call(t,r)&&M7(e,r,t[r]);return e},t_=(e,t)=>cj(e,hj(t));var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var r_=me(S7=>{"use strict";S7.version="3.4.0"});var C7=me((k7,a_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof a_!="undefined"&&a_.exports&&(a_.exports=r[t])})("Promise",typeof window!="undefined"?window:k7,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,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){z=new N(V,W),q?q.next=z:O=z,q=z,z=void 0},drain:function(){var V=O;for(O=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(I,O){i.add(I,O),r||(r=s(i.drain))}function f(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,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(S,P){f.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,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,S){var P=-1,B=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,S){var P=-1,B=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=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,U){for(arguments.length<3&&(B=0),arguments.length<4&&(U=S.length);B>>1;y(S[Z],P)<0?B=Z+1:U=Z}return B},right:function(S,P,B,U){for(arguments.length<3&&(B=0),arguments.length<4&&(U=S.length);B>>1;y(S[Z],P)>0?U=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,U,Z;B;)Z=Math.random()*B--|0,U=y[B+S],y[B+S]=y[Z+S],y[Z+S]=U;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,U=y[0],Z=new Array(P<0?0:P);S=0;)for($=y[S],P=$.length;--P>=0;)Z[--U]=$[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=[],U=O(I(P)),Z=-1,$;if(y*=U,S*=U,P*=U,P<0)for(;($=y+P*++Z)>S;)B.push($/U);else for(;($=y+P*++Z)=S.length)return U?U.call(y,ae):B?ae.sort(B):ae;for(var xe=-1,Pe=ae.length,De=S[ye++],$e,ot,Ie,He=new z,Qe;++xe=S.length)return X;var ye=[],xe=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),xe?ye.sort(function(Pe,De){return xe(Pe.key,De.key)}):ye}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 U=X,y},y},e.set=function(y){var S=new le;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 Ee(y){var S=[],P=new z;function B(){for(var U=S,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return B.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,S=S.slice(0,X=S.indexOf($)).concat(S.slice(X+1)),P.remove(U)),Z&&S.push(P.set(U,{on:Z})),y)},B}e.event=null;function Xe(){e.event.preventDefault()}function lt(){for(var y=e.event,S;S=y.sourceEvent;)y=S;return y}function it(y){for(var S=new ke,P=0,B=arguments.length;++P=0&&(P=y.slice(0,S))!=="xmlns"&&(y=y.slice(S+1)),Ue.hasOwnProperty(P)?{space:Ue[P],local:y}:y}},yt.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 U(){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:U}function Je(y){return y.trim().replace(/\s+/g," ")}yt.classed=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),B=(y=wt(y)).length,U=-1;if(S=P.classList){for(;++U=0;)(Z=P[B])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},yt.sort=function(y){y=ut.apply(this,arguments);for(var S=-1,P=this.length;++S=S&&(S=U+1);!(ae=$[S])&&++S0&&(y=y.slice(0,U));var $=Ot.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 ye(){var xe=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(xe)){var $e=this[De];this.removeEventListener(Pe[1],$e,$e.$),delete this[De]}}return U?S?ae:X:S?pe:ye}var Ot=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ot.forEach(function(y){"on"+y in i&&Ot.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 U=this,Z=B.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,B)}}var Kt,pr=0;function yr(y){var S=".dragsuppress-"+ ++pr,P="click"+S,B=e.select(s(y)).on("touchmove"+S,Xe).on("dragstart"+S,Xe).on("selectstart"+S,Xe);if(Kt==null&&(Kt="onselectstart"in y?!1:Me(y.style,"userSelect")),Kt){var U=a(y).style,Z=U[Kt];U[Kt]="none"}return function($){if(B.on(S,null),Kt&&(U[Kt]=Z),$){var X=function(){B.on(P,null)};B.on(P,function(){Xe(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return Lt(y,lt())};var ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Lt(y,S){S.changedTouches&&(S=S.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var B=P.createSVGPoint();if(ur<0){var U=s(y);if(U.scrollX||U.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();ur=!(Z.f||Z.e),P.remove()}}return ur?(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=lt().changedTouches),S){for(var B=0,U=S.length,Z;B0?1:y<0?-1:0}function ii(y,S,P){return(S[0]-y[0])*(P[1]-y[1])-(S[1]-y[1])*(P[0]-y[0])}function wi(y){return y>1?0:y<-1?Tt:Math.acos(y)}function vi(y){return y>1?Mr:y<-1?-Mr:Math.asin(y)}function Fi(y){return((y=Math.exp(y))-1/y)/2}function Gi(y){return((y=Math.exp(y))+1/y)/2}function vn(y){return((y=Math.exp(2*y))-1)/(y+1)}function nn(y){return(y=Math.sin(y/2))*y}var Ki=Math.SQRT2,ir=2,oi=4;e.interpolateZoom=function(y,S){var P=y[0],B=y[1],U=y[2],Z=S[0],$=S[1],X=S[2],ae=Z-P,ye=$-B,xe=ae*ae+ye*ye,Pe,De;if(xe0&&(jt=jt.transition().duration($)),jt.call(nt.event)}function zr(){He&&He.domain(Ie.range().map(function(jt){return(jt-y.x)/y.k}).map(Ie.invert)),ct&&ct.domain(Qe.range().map(function(jt){return(jt-y.y)/y.k}).map(Qe.invert))}function Rr(jt){X++||jt({type:"zoomstart"})}function ea(jt){zr(),jt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Vr(jt){--X||(jt({type:"zoomend"}),P=null)}function Kr(){var jt=this,Jr=ot.of(jt,arguments),na=0,oa=e.select(s(jt)).on(ye,en).on(xe,bi),Di=je(e.mouse(jt)),Vi=yr(jt);fh.call(jt),Rr(Jr);function en(){na=1,hr(e.mouse(jt),Di),ea(Jr)}function bi(){oa.on(ye,null).on(xe,null),Vi(na),Vr(Jr)}}function Na(){var jt=this,Jr=ot.of(jt,arguments),na={},oa=0,Di,Vi=".zoom-"+e.event.changedTouches[0].identifier,en="touchmove"+Vi,bi="touchend"+Vi,wn=[],Tr=e.select(jt),Hr=yr(jt);Ai(),Rr(Jr),Tr.on(ae,null).on(De,Ai);function Ni(){var mn=e.touches(jt);return Di=y.k,mn.forEach(function(pi){pi.identifier in na&&(na[pi.identifier]=je(pi))}),mn}function Ai(){var mn=e.event.target;e.select(mn).on(en,fo).on(bi,qn),wn.push(mn);for(var pi=e.event.changedTouches,Jo=0,co=pi.length;Jo1){var Ta=ci[0],ui=ci[1],Bl=Ta[0]-ui[0],Kv=Ta[1]-ui[1];oa=Bl*Bl+Kv*Kv}}function fo(){var mn=e.touches(jt),pi,Jo,co,ci;fh.call(jt);for(var xf=0,Ta=mn.length;xf1?1:S,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+S):P+S-P*S,B=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?B+(U-B)*X/60:X<180?U:X<240?B+(U-B)*(240-X)/60:B}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=he;function he(y,S,P){return this instanceof he?(this.h=+y,this.c=+S,void(this.l=+P)):arguments.length<2?y instanceof he?new he(y.h,y.c,y.l):y instanceof et?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 he(y,S,P)}var Le=he.prototype=new ma;Le.brighter=function(y){return new he(this.h,this.c,Math.min(100,this.l+We*(arguments.length?y:1)))},Le.darker=function(y){return new he(this.h,this.c,Math.max(0,this.l-We*(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 et(P,Math.cos(y*=Gr)*S,Math.sin(y)*S)}e.lab=et;function et(y,S,P){return this instanceof et?(this.l=+y,this.a=+S,void(this.b=+P)):arguments.length<2?y instanceof et?new et(y.l,y.a,y.b):y instanceof he?Ne(y.h,y.c,y.l):nr((y=ua(y)).r,y.g,y.b):new et(y,S,P)}var We=18,mt=.95047,Pt=1,Ft=1.08883,tr=et.prototype=new ma;tr.brighter=function(y){return new et(Math.min(100,this.l+We*(arguments.length?y:1)),this.a,this.b)},tr.darker=function(y){return new et(Math.max(0,this.l-We*(arguments.length?y:1)),this.a,this.b)},tr.rgb=function(){return Wt(this.l,this.a,this.b)};function Wt(y,S,P){var B=(y+16)/116,U=B+S/500,Z=B-P/200;return U=Zr(U)*mt,B=Zr(B)*Pt,Z=Zr(Z)*Ft,new ua(ca(3.2404542*U-1.5371385*B-.4985314*Z),ca(-.969266*U+1.8760108*B+.041556*Z),ca(.0556434*U-.2040259*B+1.0572252*Z))}function Sr(y,S,P){return y>0?new he(Math.atan2(P,S)*pa,Math.sqrt(S*S+P*P),y):new he(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):$r(""+y,ua,ue):new ua(y,S,P)}function qa(y){return new ua(y>>16,y>>8&255,y&255)}function ri(y){return qa(y)+""}var Yr=ua.prototype=new ma;Yr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var S=this.r,P=this.g,B=this.b,U=30;return!S&&!P&&!B?new ua(U,U,U):(S&&S>4,B=B>>4|B,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(B=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),S(B,U,Z))}function ga(y,S,P){var B=Math.min(y/=255,S/=255,P/=255),U=Math.max(y,S,P),Z=U-B,$,X,ae=(U+B)/2;return Z?(X=ae<.5?Z/(U+B):Z/(2-U-B),y==U?$=(S-P)/Z+(S0&&ae<1?0:$),new se($,X,ae)}function nr(y,S,P){y=Ti(y),S=Ti(S),P=Ti(P);var B=Or((.4124564*y+.3575761*S+.1804375*P)/mt),U=Or((.2126729*y+.7151522*S+.072175*P)/Pt),Z=Or((.0193339*y+.119192*S+.9503041*P)/Ft);return et(116*U-16,500*(B-U),200*(U-Z))}function Ti(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ea(y){var S=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(S*2.55):S}var si=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});si.forEach(function(y,S){si.set(y,qa(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 U={},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=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var xe=X.status,Pe;if(!xe&&Ga(X)||xe>=200&&xe<300||xe===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(xe){var Pe=e.event;e.event=xe;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(xe,Pe){return xe=(xe+"").toLowerCase(),arguments.length<2?$[xe]:(Pe==null?delete $[xe]:$[xe]=Pe+"",U)},U.mimeType=function(xe){return arguments.length?(S=xe==null?null:xe+"",U):S},U.responseType=function(xe){return arguments.length?(ae=xe,U):ae},U.response=function(xe){return P=xe,U},["get","post"].forEach(function(xe){U[xe]=function(){return U.send.apply(U,[xe].concat(r(arguments)))}}),U.send=function(xe,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=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),De!=null&&U.on("error",De).on("load",function(ot){De(null,ot)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),B==null?U:U.get(bs(B))}function bs(y){return y.length===1?function(S,P){y(S==null?P:null)}:y}function Ga(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 U(ye,xe,Pe){arguments.length<3&&(Pe=xe,xe=null);var De=Co(ye,S,xe==null?Z:$(xe),Pe);return De.row=function($e){return arguments.length?De.response((xe=$e)==null?Z:$($e)):xe},De}function Z(ye){return U.parse(ye.responseText)}function $(ye){return function(xe){return U.parse(xe.responseText,ye)}}U.parse=function(ye,xe){var Pe;return U.parseRows(ye,function(De,$e){if(Pe)return Pe(De,$e-1);var ot=function(Ie){for(var He={},Qe=De.length,ct=0;ct=ot)return De;if(ct)return ct=!1,Pe;var Vt=Ie;if(ye.charCodeAt(Vt)===34){for(var or=Vt;or++24?(isFinite(S)&&(clearTimeout(pl),pl=setTimeout(Zc,S)),Ui=0):(Ui=1,lp(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(U[ye[Pe[X]][2]]);for(X=+$e;X1&&ii(y[P[B-2]],y[P[B-1]],y[U])<=0;)--B;P[B++]=U}return P.slice(0,B)}function $u(y,S){return y[0]-S[0]||y[1]-S[1]}e.geom.polygon=function(y){return Ye(y,Kf),y};var Kf=e.geom.polygon.prototype=[];Kf.area=function(){for(var y=-1,S=this.length,P,B=this[S-1],U=0;++yVe)X=X.L;else if($=S-on(X,P),$>Ve){if(!X.R){B=X;break}X=X.R}else{Z>-Ve?(B=X.P,U=X):$>-Ve?(B=X,U=X.N):B=U=X;break}var ae=lo(y);if(mu.insert(B,ae),!(!B&&!U)){if(B===U){ba(B),U=lo(B.site),mu.insert(ae,U),ae.edge=U.edge=Ws(B.site,ae.site),Er(B),Er(U);return}if(!U){ae.edge=Ws(B.site,ae.site);return}ba(B),ba(U);var ye=B.site,xe=ye.x,Pe=ye.y,De=y.x-xe,$e=y.y-Pe,ot=U.site,Ie=ot.x-xe,He=ot.y-Pe,Qe=2*(De*He-$e*Ie),ct=De*De+$e*$e,nt=Ie*Ie+He*He,je={x:(He*ct-$e*nt)/Qe+xe,y:(De*nt-Ie*ct)/Qe+Pe};fs(U.edge,ye,ot,je),ae.edge=Ws(ye,y,null,je),U.edge=Ws(y,ot,null,je),Er(B),Er(U)}}function yu(y,S){var P=y.site,B=P.x,U=P.y,Z=U-S;if(!Z)return B;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-S;if(!ye)return X;var xe=X-B,Pe=1/Z-1/ye,De=xe/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(xe*xe/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+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(tf),y.length};function ws(y){for(var S=y[0][0],P=y[1][0],B=y[0][1],U=y[1][1],Z,$,X,ae,ye=Zo,xe=ye.length,Pe,De,$e,ot,Ie,He;xe--;)if(Pe=ye[xe],!(!Pe||!Pe.prepare()))for($e=Pe.edges,ot=$e.length,De=0;DeVe||I(ae-$)>Ve)&&($e.splice(De,0,new xl(gu(Pe.site,He,I(X-S)Ve?{x:S,y:I(Z-S)Ve?{x:I($-U)Ve?{x:P,y:I(Z-P)Ve?{x:I($-B)=-bt)){var De=ae*ae+ye*ye,$e=xe*xe+He*He,ot=(He*De-ye*$e)/Pe,Ie=(ae*$e-xe*De)/Pe,He=Ie+X,Qe=Tv.pop()||new rf;Qe.arc=y,Qe.site=U,Qe.x=ot+$,Qe.y=He+Math.sqrt(ot*ot+Ie*Ie),Qe.cy=He,y.circle=Qe;for(var ct=null,nt=ef._;nt;)if(Qe.y0)){if(Ie/=$e,$e<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=P-X,!(!$e&&Ie<0)){if(Ie/=$e,$e<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if($e>0){if(Ie0)){if(Ie/=ot,ot<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=B-ae,!(!ot&&Ie<0)){if(Ie/=ot,ot<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(ot>0){if(Ie0&&(U.a={x:X+Pe*$e,y:ae+Pe*ot}),De<1&&(U.b={x:X+De*$e,y:ae+De*ot}),U}}}}}}function Ts(y){for(var S=yl,P=wa(y[0][0],y[0][1],y[1][0],y[1][1]),B=S.length,U;B--;)U=S[B],(!_l(U,y)||!P(U)||I(U.a.x-U.b.x)=Z)return;if(xe>De){if(!B)B={x:ot,y:$};else if(B.y>=X)return;P={x:ot,y:X}}else{if(!B)B={x:ot,y:X};else if(B.y<$)return;P={x:ot,y:$}}}else if(He=(xe-De)/($e-Pe),Qe=Ie-He*ot,He<-1||He>1)if(xe>De){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(Pe<$e){if(!B)B={x:U,y:He*U+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<=De&&Qe.y>=Pe&&Qe.y<=$e?[[xe,$e],[De,$e],[De,Pe],[xe,Pe]]:[];ct.point=ae[Ie]}),ye}function X(ae){return ae.map(function(ye,xe){return{x:Math.round(B(ye,xe)/Ve)*Ve,y:Math.round(U(ye,xe)/Ve)*Ve,i:xe}})}return $.links=function(ae){return _u(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return _u(X(ae)).cells.forEach(function(xe,Pe){for(var De=xe.site,$e=xe.edges.sort(tf),ot=-1,Ie=$e.length,He,Qe,ct=$e[Ie-1].edge,nt=ct.l===De?ct.r:ct.l;++otnt&&(nt=xe.x),xe.y>je&&(je=xe.y),$e.push(xe.x),ot.push(xe.y);else for(Ie=0;Ient&&(nt=Vt),or>je&&(je=or),$e.push(Vt),ot.push(or)}var hr=nt-Qe,fr=je-ct;hr>fr?je=ct+hr:nt=Qe+fr;function zr(Vr,Kr,Na,ei,Qa,jt,Jr,na){if(!(isNaN(Na)||isNaN(ei)))if(Vr.leaf){var oa=Vr.x,Di=Vr.y;if(oa!=null)if(I(oa-Na)+I(Di-ei)<.01)Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na);else{var Vi=Vr.point;Vr.x=Vr.y=Vr.point=null,Rr(Vr,Vi,oa,Di,Qa,jt,Jr,na),Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}else Vr.x=Na,Vr.y=ei,Vr.point=Kr}else Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}function Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na){var oa=(Qa+Jr)*.5,Di=(jt+na)*.5,Vi=Na>=oa,en=ei>=Di,bi=en<<1|Vi;Vr.leaf=!1,Vr=Vr.nodes[bi]||(Vr.nodes[bi]=xn()),Vi?Qa=oa:Jr=oa,en?jt=Di:na=Di,zr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}var ea=xn();if(ea.add=function(Vr){zr(ea,Vr,+Pe(Vr,++Ie),+De(Vr,Ie),Qe,ct,nt,je)},ea.visit=function(Vr){Rn(Vr,ea,Qe,ct,nt,je)},ea.find=function(Vr){return hp(ea,Vr[0],Vr[1],Qe,ct,nt,je)},Ie=-1,S==null){for(;++IeZ||De>$||$e=Vt,fr=P>=or,zr=fr<<1|hr,Rr=zr+4;zrP&&(Z=S.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(B=B[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(B,U)})),P=ec.lastIndex;return P=0&&!(B=e.interpolators[P](y,S)););return B}e.interpolators=[function(y,S){var P=typeof S;return(P==="string"?si.has(S.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(S)?af:Yo:S instanceof ma?af:Array.isArray(S)?Wo:P==="object"&&isNaN(S)?sn:Eo)(y,S)}],e.interpolateArray=Wo;function Wo(y,S){var P=[],B=[],U=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=zm.get(P)||Xs,B=Xo.get(B)||Te,Im(B(P.apply(null,t.call(arguments,1))))};function Im(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 Rm(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 Fm(y){return 1-Math.cos(y*Mr)}function qm(y){return Math.pow(2,10*(y-1))}function Wc(y){return 1-Math.sqrt(1-y*y)}function Nm(y,S){var P;return arguments.length<2&&(S=.45),arguments.length?P=S/mr*Math.asin(1/y):(y=1,P=S/4),function(B){return 1+y*Math.pow(2,-10*B)*Math.sin((B-P)*mr/S)}}function Bm(y){return y||(y=1.70158),function(S){return S*S*((y+1)*S-y)}}function Om(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,U=y.l,Z=S.h-P,$=S.c-B,X=S.l-U;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,U+X*ae)+""}}e.interpolateHsl=Um;function Um(y,S){y=e.hsl(y),S=e.hsl(S);var P=y.h,B=y.s,U=y.l,Z=S.h-P,$=S.s-B,X=S.l-U;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 ue(P+Z*ae,B+$*ae,U+X*ae)+""}}e.interpolateLab=Vm;function Vm(y,S){y=e.lab(y),S=e.lab(S);var P=y.l,B=y.a,U=y.b,Z=S.l-P,$=S.a-B,X=S.b-U;return function(ae){return Wt(P+Z*ae,B+$*ae,U+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 vp(B?B.matrix:Lv)})(y)};function vp(y){var S=[y.a,y.b],P=[y.c,y.d],B=Ev(S),U=dp(S,P),Z=Ev(Hm(P,S,-U))||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 mp(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 yp(y,S,P,B){if(y[0]!==S[0]||y[1]!==S[1]){var U=P.push(xu(P)+"scale(",null,",",null,")");B.push({i:U-4,x:Eo(y[0],S[0])},{i:U-2,x:Eo(y[1],S[1])})}else(S[0]!==1||S[1]!==1)&&P.push(xu(P)+"scale("+S+")")}function gp(y,S){var P=[],B=[];return y=e.transform(y),S=e.transform(S),pp(y.translate,S.translate,P,B),Gm(y.rotate,S.rotate,P,B),mp(y.skew,S.skew,P,B),yp(y.scale,S.scale,P,B),y=S=null,function(U){for(var Z=-1,$=B.length,X;++Z<$;)P[(X=B[Z]).i]=X.x(U);return P.join("")}}function Zm(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,Vt=$e.length,or=ot.length,hr=B[0],fr=B[1],zr,Rr;for(je=0;je=0;)Z.push(xe=ye[ae]),xe.parent=X,xe.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(B,X,X.depth)||0),delete X.children;return vs(U,function(Pe){var De,$e;y&&(De=Pe.children)&&De.sort(y),P&&($e=Pe.parent)&&($e.value+=Pe.value)}),$}return B.sort=function(U){return arguments.length?(y=U,B):y},B.children=function(U){return arguments.length?(S=U,B):S},B.value=function(U){return arguments.length?(P=U,B):P},B.revalue=function(U){return P&&(nf(U,function(Z){Z.children&&(Z.value=0)}),vs(U,function(Z){var $;Z.children||(Z.value=+P.call(B,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},B};function Sl(y,S){return e.rebind(y,S,"sort","children","value"),y.nodes=y,y.links=bp,y}function nf(y,S){for(var P=[y];(y=P.pop())!=null;)if(S(y),(U=y.children)&&(B=U.length))for(var B,U;--B>=0;)P.push(U[B])}function vs(y,S){for(var P=[y],B=[];(y=P.pop())!=null;)if(B.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),B.push(X)}for($=0;$B&&(P=S,B=U);return P}function qi(y){return y.reduce(Jm,0)}function Jm(y,S){return y+S[1]}e.layout.histogram=function(){var y=!0,S=Number,P=Ap,B=Qc;function U(Z,De){for(var X=[],ae=Z.map(S,this),ye=P.call(this,ae,De),xe=B.call(this,ye,ae,De),Pe,De=-1,$e=ae.length,ot=xe.length-1,Ie=y?1:1/$e,He;++De0)for(De=-1;++De<$e;)He=ae[De],He>=ye[0]&&He<=ye[1]&&(Pe=X[e.bisect(xe,He,1,ot)-1],Pe.y+=Ie,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(S=Z,U):S},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(B=typeof Z=="number"?function($){return Rv($,Z)}:fa(Z),U):B},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};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],U=(y[1]-B)/S,Z=[];++P<=S;)Z[P]=U*P+B;return Z}function Ap(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(sf),S=0,P=[1,1],B;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],xe=P[1],Pe=B==null?Math.sqrt:typeof B=="function"?B:function(){return B};if(ae.x=ae.y=0,vs(ae,function($e){$e.r=+Pe($e.value)}),vs(ae,rc),S){var De=S*(B?1:Math.max(2*ae.r/ye,2*ae.r/xe))/2;vs(ae,function($e){$e.r+=De}),vs(ae,rc),vs(ae,function($e){$e.r-=De})}return Cl(ae,ye/2,xe/2,B?1:1/Math.max(2*ae.r/ye,2*ae.r/xe)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(B=Z==null||typeof Z=="function"?Z:+Z,U):B},U.padding=function(Z){return arguments.length?(S=+Z,U):S},Sl(U,y)};function sf(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,U=y.r+S.r;return .999*U*U>P*P+B*B}function rc(y){if(!(S=y.children)||!(De=S.length))return;var S,P=1/0,B=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,xe,Pe,De;function $e(je){P=Math.min(je.x-je.r,P),B=Math.max(je.x+je.r,B),U=Math.min(je.y-je.r,U),Z=Math.max(je.y+je.r,Z)}if(S.forEach(Js),$=S[0],$.x=-$.r,$.y=0,$e($),De>1&&(X=S[1],X.x=X.r,X.y=0,$e(X),De>2))for(ae=S[2],El($,X,ae),$e(ae),bu($,ae),$._pack_prev=ae,bu(ae,X),X=$._pack_next,ye=3;yeHe.x&&(He=Vt),Vt.depth>Qe.depth&&(Qe=Vt)});var ct=S(Ie,He)/2-Ie.x,nt=P[0]/(He.x+S(He,Ie)/2+ct),je=P[1]/(Qe.depth||1);nf($e,function(Vt){Vt.x=(Vt.x+ct)*nt,Vt.y=Vt.depth*je})}return De}function Z(xe){for(var Pe={A:null,children:[xe]},De=[Pe],$e;($e=De.pop())!=null;)for(var ot=$e.children,Ie,He=0,Qe=ot.length;He0&&(Ll(Km(Ie,xe,De),xe,Vt),Qe+=Vt,ct+=Vt),nt+=Ie.m,Qe+=$e.m,je+=He.m,ct+=ot.m;Ie&&!ks(ot)&&(ot.t=Ie,ot.m+=nt-ct),$e&&!Ss(He)&&(He.t=$e,He.m+=Qe-je,De=xe)}return De}function ye(xe){xe.x*=P[0],xe.y=xe.depth*P[1]}return U.separation=function(xe){return arguments.length?(S=xe,U):S},U.size=function(xe){return arguments.length?(B=(P=xe)==null?ye:null,U):B?null:P},U.nodeSize=function(xe){return arguments.length?(B=(P=xe)==null?null:ye,U):B?P:null},Sl(U,y)};function Ks(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 Mp(y){for(var S=0,P=0,B=y.children,U=B.length,Z;--U>=0;)Z=B[U],Z.z+=S,Z.m+=S,S+=Z.s+(P+=Z.c)}function Km(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=Ks,P=[1,1],B=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,xe=0;vs(ae,function(Ie){var He=Ie.children;He&&He.length?(Ie.x=$m(He),Ie.y=Qm(He)):(Ie.x=ye?xe+=S(Ie,ye):0,Ie.y=0,ye=Ie)});var Pe=Sp(ae),De=kp(ae),$e=Pe.x-S(Pe,De)/2,ot=De.x+S(De,Pe)/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)/(ot-$e)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(S=Z,U):S},U.size=function(Z){return arguments.length?(B=(P=Z)==null,U):B?null:P},U.nodeSize=function(Z){return arguments.length?(B=(P=Z)!=null,U):B?P:null},Sl(U,y)};function Qm(y){return 1+e.max(y,function(S){return S.y})}function $m(y){return y.reduce(function(S,P){return S+P.x},0)/y.length}function Sp(y){var S=y.children;return S&&S.length?Sp(S[0]):y}function kp(y){var S=y.children,P;return S&&(P=S.length)?kp(S[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),S=Math.round,P=[1,1],B=null,U=qv,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(Ie,He){for(var Qe=-1,ct=Ie.length,nt,je;++Qe0;)ct.push(je=nt[fr-1]),ct.area+=je.area,X!=="squarify"||(or=De(ct,hr))<=Vt?(nt.pop(),Vt=or):(ct.area-=ct.pop().area,$e(ct,hr,Qe,!1),hr=Math.min(Qe.dx,Qe.dy),ct.length=ct.area=0,Vt=1/0);ct.length&&($e(ct,hr,Qe,!0),ct.length=ct.area=0),He.forEach(xe)}}function Pe(Ie){var He=Ie.children;if(He&&He.length){var Qe=U(Ie),ct=He.slice(),nt,je=[];for(ye(ct,Qe.dx*Qe.dy/Ie.value),je.area=0;nt=ct.pop();)je.push(nt),je.area+=nt.area,nt.z!=null&&($e(je,nt.z?Qe.dx:Qe.dy,Qe,!ct.length),je.length=je.area=0);He.forEach(Pe)}}function De(Ie,He){for(var Qe=Ie.area,ct,nt=0,je=1/0,Vt=-1,or=Ie.length;++Vtnt&&(nt=ct));return Qe*=Qe,He*=He,Qe?Math.max(He*nt*ae/Qe,Qe/(He*je*ae)):1/0}function $e(Ie,He,Qe,ct){var nt=-1,je=Ie.length,Vt=Qe.x,or=Qe.y,hr=He?S(Ie.area/He):0,fr;if(He==Qe.dx){for((ct||hr>Qe.dy)&&(hr=Qe.dy);++ntQe.dx)&&(hr=Qe.dx);++nt1);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?ey:Cp,ye=B?hs:Zm;return U=ae(y,S,ye,P),Z=ae(S,y,ye,ln),X}function X(ae){return U(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,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return Pp(y,ae),$()},X.copy=function(){return Lp(y,S,P,B)},$()}function Dp(y,S){return e.rebind(y,S,"range","rangeRound","interpolate","clamp")}function Pp(y,S){return Bv(y,Ep(Ov(y,S)[2])),Bv(y,Ep(Ov(y,S)[2])),y}function Ov(y,S){S==null&&(S=10);var P=ac(y),B=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(B/S)/Math.LN10)),Z=S/B*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,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 ic(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 U(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(U(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(U)),$):B},$.base=function(X){return arguments.length?(S=+X,y.domain(B.map(U)),$):S},$.nice=function(){var X=Bv(B.map(U),P?Math:eh);return y.domain(X),B=X.map(Z),$},$.ticks=function(){var X=ac(B),ae=[],ye=X[0],xe=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(xe)),$e=S%1?2:S;if(isFinite(De-Pe)){if(P){for(;Pe0;ot--)ae.push(Z(Pe)*ot);for(Pe=0;ae[Pe]xe;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Vv(y.copy(),S,P,B)},Dp($,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),U=rh(1/S);function Z($){return y(B($))}return Z.invert=function($){return U(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(Pp(P,$))},Z.exponent=function($){return arguments.length?(B=rh(S=$),U=rh(1/S),y.domain(P.map(B)),Z):S},Z.copy=function(){return th(y.copy(),S,P)},Dp(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,U;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(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ye=X.length,xe;++ae0?P[Z-1]:y[0],ZDe?0:1;if(xe=Ar)return ae(xe,ot)+(ye?ae(ye,1-ot):"")+"Z";var Ie,He,Qe,ct,nt=0,je=0,Vt,or,hr,fr,zr,Rr,ea,Vr,Kr=[];if((ct=(+$.apply(this,arguments)||0)/2)&&(Qe=B===zl?Math.sqrt(ye*ye+xe*xe):+B.apply(this,arguments),ot||(je*=-1),xe&&(je=vi(Qe/xe*Math.sin(ct))),ye&&(nt=vi(Qe/ye*Math.sin(ct)))),xe){Vt=xe*Math.cos(Pe+je),or=xe*Math.sin(Pe+je),hr=xe*Math.cos(De-je),fr=xe*Math.sin(De-je);var Na=Math.abs(De-Pe-2*je)<=Tt?0:1;if(je&&Il(Vt,or,hr,fr)===ot^Na){var ei=(Pe+De)/2;Vt=xe*Math.cos(ei),or=xe*Math.sin(ei),hr=fr=null}}else Vt=or=0;if(ye){zr=ye*Math.cos(De-nt),Rr=ye*Math.sin(De-nt),ea=ye*Math.cos(Pe+nt),Vr=ye*Math.sin(Pe+nt);var Qa=Math.abs(Pe-De+2*nt)<=Tt?0:1;if(nt&&Il(zr,Rr,ea,Vr)===1-ot^Qa){var jt=(Pe+De)/2;zr=ye*Math.cos(jt),Rr=ye*Math.sin(jt),ea=Vr=null}}else zr=Rr=0;if($e>Ve&&(Ie=Math.min(Math.abs(xe-ye)/2,+P.apply(this,arguments)))>.001){He=ye0?0:1}function Au(y,S,P,B,U){var Z=y[0]-S[0],$=y[1]-S[1],X=(U?B:-B)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,xe=y[0]+ae,Pe=y[1]+ye,De=S[0]+ae,$e=S[1]+ye,ot=(xe+De)/2,Ie=(Pe+$e)/2,He=De-xe,Qe=$e-Pe,ct=He*He+Qe*Qe,nt=P-B,je=xe*$e-De*Pe,Vt=(Qe<0?-1:1)*Math.sqrt(Math.max(0,nt*nt*ct-je*je)),or=(je*Qe-He*Vt)/ct,hr=(-je*He-Qe*Vt)/ct,fr=(je*Qe+He*Vt)/ct,zr=(-je*He+Qe*Vt)/ct,Rr=or-ot,ea=hr-Ie,Vr=fr-ot,Kr=zr-Ie;return Rr*Rr+ea*ea>Vr*Vr+Kr*Kr&&(or=fr,hr=zr),[[or-ae,hr-ye],[or*P/nt,hr*P/nt]]}function oc(){return!0}function Cs(y){var S=pu,P=ml,B=oc,U=jo,Z=U.key,$=.7;function X(ae){var ye=[],xe=[],Pe=-1,De=ae.length,$e,ot=fa(S),Ie=fa(P);function He(){ye.push("M",U(y(xe),$))}for(;++Pe1?y.join("L"):y+"Z"}function ff(y){return y.join("L")+"Z"}function ry(y){for(var S=0,P=y.length,B=y[0],U=[B[0],",",B[1]];++S1&&U.push("H",B[0]),U.join("")}function cf(y){for(var S=0,P=y.length,B=y[0],U=[B[0],",",B[1]];++S1){X=S[1],Z=y[ae],ae++,B+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*B,$[X+1]=Z*U));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 Op(y){return y.length<3?jo(y):y[0]+hf(y,oy(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,U,Z;++PTt)+",1 "+Pe}function ye(xe,Pe,De,$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?(U=fa(xe),Z):U},Z};function Up(y){return y.radius}e.svg.diagonal=function(){var y=sh,S=Xv,P=jv;function B(U,Z){var $=y.call(this,U,Z),X=S.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return B.source=function(U){return arguments.length?(y=fa(U),B):y},B.target=function(U){return arguments.length?(S=fa(U),B):S},B.projection=function(U){return arguments.length?(P=U,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(Vp(S=B)):S},y};function Vp(y){return function(){var S=y.apply(this,arguments),P=S[0],B=S[1]-Mr;return[P*Math.cos(B),P*Math.sin(B)]}}e.svg.symbol=function(){var y=mf,S=Hp;function P(B,U){return(uh.get(y.call(this,B,U))||lh)(S.call(this,B,U))}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 Hp(){return 64}function mf(){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);yt.transition=function(y){for(var S=uo||++Li,P=fi(y),B=[],U,Z,$=Ls||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ct].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=U.time,ae=Gc(De,0,X),$=Z[B]={tween:new z,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:S},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),S=Fl,P=6,B=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var xe=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),$e=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,ot=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Te:X,Ie=xe.selectAll(".tick").data($e,De),He=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ve),Qe=e.transition(Ie.exit()).style("opacity",Ve).remove(),ct=e.transition(Ie.order()).style("opacity",1),nt=Math.max(P,0)+U,je,Vt=$c(De),or=xe.selectAll(".domain").data([0]),hr=(or.enter().append("path").attr("class","domain"),e.transition(or));He.append("line"),He.append("text");var fr=He.select("line"),zr=ct.select("line"),Rr=Ie.select("text").text(ot),ea=He.select("text"),Vr=ct.select("text"),Kr=S==="top"||S==="left"?-1:1,Na,ei,Qa,jt;if(S==="bottom"||S==="top"?(je=gf,Na="x",Qa="y",ei="x2",jt="y2",Rr.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Vt[0]+","+Kr*B+"V0H"+Vt[1]+"V"+Kr*B)):(je=ql,Na="y",Qa="x",ei="y2",jt="x2",Rr.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),hr.attr("d","M"+Kr*B+","+Vt[0]+"H0V"+Vt[1]+"H"+Kr*B)),fr.attr(jt,Kr*P),ea.attr(Qa,Kr*nt),zr.attr(ei,0).attr(jt,Kr*P),Vr.attr(Na,0).attr(Qa,Kr*nt),De.rangeBand){var Jr=De,na=Jr.rangeBand()/2;Pe=De=function(oa){return Jr(oa)+na}}else Pe.rangeBand?Pe=De:Qe.call(je,De,Pe);He.call(je,Pe,De),ct.call(je,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(S=ye in lc?ye+"":Fl,ae):S},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var xe=arguments.length;return xe?(P=+ye,B=+arguments[xe-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(B=+ye,ae):B},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",lc={top:1,right:1,bottom:1,left:1};function gf(y,S,P){y.attr("transform",function(B){var U=S(B);return"translate("+(isFinite(U)?U:P(B))+",0)"})}function ql(y,S,P){y.attr("transform",function(B){var U=S(B);return"translate(0,"+(isFinite(U)?U:P(B))+")"})}e.svg.brush=function(){var y=it(xe,"brushstart","brush","brushend"),S=null,P=null,B=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=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",ot).on("touchstart.brush",ot),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 ct=He.selectAll(".resize").data(ye,Te);ct.exit().remove(),ct.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"),ct.style("display",xe.empty()?"none":null);var nt=e.transition(He),je=e.transition(Qe),Vt;S&&(Vt=$c(S),je.attr("x",Vt[0]).attr("width",Vt[1]-Vt[0]),De(nt)),P&&(Vt=$c(P),je.attr("y",Vt[0]).attr("height",Vt[1]-Vt[0]),$e(nt)),Pe(nt)})}xe.event=function(Ie){Ie.each(function(){var He=y.of(this,arguments),Qe={x:B,y:U,i:Z,j:$},ct=this.__chart__||Qe;this.__chart__=Qe,uo?e.select(this).transition().each("start.brush",function(){Z=ct.i,$=ct.j,B=ct.x,U=ct.y,He({type:"brushstart"})}).tween("brush:brush",function(){var nt=Wo(B,Qe.x),je=Wo(U,Qe.y);return Z=$=null,function(Vt){B=Qe.x=nt(Vt),U=Qe.y=je(Vt),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 Pe(Ie){Ie.selectAll(".resize").attr("transform",function(He){return"translate("+B[+/e$/.test(He)]+","+U[+/^s/.test(He)]+")"})}function De(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",U[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function ot(){var Ie=this,He=e.select(e.event.target),Qe=y.of(Ie,arguments),ct=e.select(Ie),nt=He.datum(),je=!/^(n|s)$/.test(nt)&&S,Vt=!/^(e|w)$/.test(nt)&&P,or=He.classed("extent"),hr=yr(Ie),fr,zr=e.mouse(Ie),Rr,ea=e.select(s(Ie)).on("keydown.brush",Na).on("keyup.brush",ei);if(e.event.changedTouches?ea.on("touchmove.brush",Qa).on("touchend.brush",Jr):ea.on("mousemove.brush",Qa).on("mouseup.brush",Jr),ct.interrupt().selectAll("*").interrupt(),or)zr[0]=B[0]-zr[0],zr[1]=U[0]-zr[1];else if(nt){var Vr=+/w$/.test(nt),Kr=+/^n/.test(nt);Rr=[B[1-Vr]-zr[0],U[1-Kr]-zr[1]],zr[0]=B[Vr],zr[1]=U[Kr]}else e.event.altKey&&(fr=zr.slice());ct.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",He.style("cursor")),Qe({type:"brushstart"}),Qa();function Na(){e.event.keyCode==32&&(or||(fr=null,zr[0]-=B[1],zr[1]-=U[1],or=2),Xe())}function ei(){e.event.keyCode==32&&or==2&&(zr[0]+=B[1],zr[1]+=U[1],or=0,Xe())}function Qa(){var na=e.mouse(Ie),oa=!1;Rr&&(na[0]+=Rr[0],na[1]+=Rr[1]),or||(e.event.altKey?(fr||(fr=[(B[0]+B[1])/2,(U[0]+U[1])/2]),zr[0]=B[+(na[0]{(function(e,t){typeof i_=="object"&&typeof E7!="undefined"?t(i_):(e=e||self,t(e.d3=e.d3||{}))})(i_,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ut,sr,Pr){function Et(ht){return Be(ht=arguments.length===0?new Date:new Date(+ht)),ht}return Et.floor=function(ht){return Be(ht=new Date(+ht)),ht},Et.ceil=function(ht){return Be(ht=new Date(ht-1)),ut(ht,1),Be(ht),ht},Et.round=function(ht){var pt=Et(ht),Ot=Et.ceil(ht);return ht-pt0))return er;do er.push(Ht=new Date(+ht)),ut(ht,Ot),Be(ht);while(Ht=pt)for(;Be(pt),!ht(pt);)pt.setTime(pt-1)},function(pt,Ot){if(pt>=pt)if(Ot<0)for(;++Ot<=0;)for(;ut(pt,-1),!ht(pt););else for(;--Ot>=0;)for(;ut(pt,1),!ht(pt););})},sr&&(Et.count=function(ht,pt){return t.setTime(+ht),r.setTime(+pt),Be(t),Be(r),Math.floor(sr(t,r))},Et.every=function(ht){return ht=Math.floor(ht),!isFinite(ht)||!(ht>0)?null:ht>1?Et.filter(Pr?function(pt){return Pr(pt)%ht===0}:function(pt){return Et.count(0,pt)%ht===0}):Et}),Et}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,f=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*f)},function(Be,ut){return(ut-Be)/f},function(Be){return Be.getMinutes()}),C=M.range,E=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*f)},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())*f)/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())*f)/m})}var z=q(0),N=q(1),H=q(2),V=q(3),W=q(4),J=q(5),ee=q(6),ie=z.range,oe=N.range,fe=H.range,le=V.range,Te=W.range,Se=J.range,Me=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()}),pe=Ae.range,ke=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()});ke.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 Ee=ke.range,Xe=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ut){Be.setTime(+Be+ut*f)},function(Be,ut){return(ut-Be)/f},function(Be){return Be.getUTCMinutes()}),lt=Xe.range,it=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()}),_t=it.range,Ye=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=Ye.range;function st(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 dt=st(0),It=st(1),yt=st(2),de=st(3),ze=st(4),_e=st(5),Ue=st(6),at=dt.range,Je=It.range,Ct=yt.range,wt=de.range,xt=ze.range,qt=_e.range,Ut=Ue.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()}),Mt=Dt.range,Zt=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()});Zt.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 Yt=Zt.range;e.timeDay=I,e.timeDays=O,e.timeFriday=J,e.timeFridays=Se,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=pe,e.timeSaturday=ee,e.timeSaturdays=Me,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ie,e.timeThursday=W,e.timeThursdays=Te,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=le,e.timeWeek=z,e.timeWeeks=ie,e.timeYear=ke,e.timeYears=Ee,e.utcDay=Ye,e.utcDays=kt,e.utcFriday=_e,e.utcFridays=qt,e.utcHour=it,e.utcHours=_t,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=Xe,e.utcMinutes=lt,e.utcMonday=It,e.utcMondays=Je,e.utcMonth=Dt,e.utcMonths=Mt,e.utcSaturday=Ue,e.utcSaturdays=Ut,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=dt,e.utcSundays=at,e.utcThursday=ze,e.utcThursdays=xt,e.utcTuesday=yt,e.utcTuesdays=Ct,e.utcWednesday=de,e.utcWednesdays=wt,e.utcWeek=dt,e.utcWeeks=at,e.utcYear=Zt,e.utcYears=Yt,Object.defineProperty(e,"__esModule",{value:!0})})});var y0=me((n_,L7)=>{(function(e,t){typeof n_=="object"&&typeof L7!="undefined"?t(n_,Z3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(n_,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ve=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ve.setFullYear(Fe.y),Ve}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 Ve=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ve.setUTCFullYear(Fe.y),Ve}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ve,bt){return{y:Fe,m:Ve,d:bt,H:0,M:0,S:0,L:0}}function s(Fe){var Ve=Fe.dateTime,bt=Fe.date,Tt=Fe.time,mr=Fe.periods,Ar=Fe.days,Mr=Fe.shortDays,Gr=Fe.months,pa=Fe.shortMonths,Ca=T(mr),ii=M(mr),wi=T(Ar),vi=M(Ar),Fi=T(Mr),Gi=M(Mr),vn=T(Gr),nn=M(Gr),Ki=T(pa),ir=M(pa),oi={a:Pt,A:Ft,b:tr,B:Wt,c:null,d:Ae,e:Ae,f:lt,H:pe,I:ke,j:Ee,L:Xe,m:it,M:_t,p:Sr,q:Zr,Q:pt,s:Ot,S:Ye,u:kt,U:st,V:dt,w:It,W:yt,x:null,X:null,y:de,Y:ze,Z:_e,"%":ht},Sa={a:Or,A:ca,b:ua,B:qa,c:null,d:Ue,e:Ue,f:xt,H:at,I:Je,j:Ct,L:wt,m:qt,M:Ut,p:ri,q:Yr,Q:pt,s:Ot,S:Dt,u:Mt,U:Zt,V:Yt,w:Be,W:ut,x:null,X:null,y:sr,Y:Pr,Z:Et,"%":ht},la={a:ue,A:he,b:Le,B:Ne,c:et,d:W,e:W,f:le,H:ee,I:ee,j:J,L:fe,m:V,M:ie,p:te,q:H,Q:Se,s:Me,S:oe,u:E,U:L,V:I,w:C,W:O,x:We,X:mt,y:z,Y:q,Z:N,"%":Te};oi.x=Ci(bt,oi),oi.X=Ci(Tt,oi),oi.c=Ci(Ve,oi),Sa.x=Ci(bt,Sa),Sa.X=Ci(Tt,Sa),Sa.c=Ci(Ve,Sa);function Ci(gr,$r){return function(ga){var nr=[],Ti=-1,Ea=0,si=gr.length,fa,In,Co;for(ga instanceof Date||(ga=new Date(+ga));++Ti53)return null;"w"in nr||(nr.w=1),"Z"in nr?(Ea=i(a(nr.y,0,1)),si=Ea.getUTCDay(),Ea=si>4||si===0?t.utcMonday.ceil(Ea):t.utcMonday(Ea),Ea=t.utcDay.offset(Ea,(nr.V-1)*7),nr.y=Ea.getUTCFullYear(),nr.m=Ea.getUTCMonth(),nr.d=Ea.getUTCDate()+(nr.w+6)%7):(Ea=r(a(nr.y,0,1)),si=Ea.getDay(),Ea=si>4||si===0?t.timeMonday.ceil(Ea):t.timeMonday(Ea),Ea=t.timeDay.offset(Ea,(nr.V-1)*7),nr.y=Ea.getFullYear(),nr.m=Ea.getMonth(),nr.d=Ea.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),si="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-(si+5)%7:nr.w+nr.U*7-(si+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,i(nr)):r(nr)}}function se(gr,$r,ga,nr){for(var Ti=0,Ea=$r.length,si=ga.length,fa,In;Ti=si)return-1;if(fa=$r.charCodeAt(Ti++),fa===37){if(fa=$r.charAt(Ti++),In=la[fa in l?$r.charAt(Ti++):fa],!In||(nr=In(gr,ga,nr))<0)return-1}else if(fa!=ga.charCodeAt(nr++))return-1}return nr}function te(gr,$r,ga){var nr=Ca.exec($r.slice(ga));return nr?(gr.p=ii[nr[0].toLowerCase()],ga+nr[0].length):-1}function ue(gr,$r,ga){var nr=Fi.exec($r.slice(ga));return nr?(gr.w=Gi[nr[0].toLowerCase()],ga+nr[0].length):-1}function he(gr,$r,ga){var nr=wi.exec($r.slice(ga));return nr?(gr.w=vi[nr[0].toLowerCase()],ga+nr[0].length):-1}function Le(gr,$r,ga){var nr=Ki.exec($r.slice(ga));return nr?(gr.m=ir[nr[0].toLowerCase()],ga+nr[0].length):-1}function Ne(gr,$r,ga){var nr=vn.exec($r.slice(ga));return nr?(gr.m=nn[nr[0].toLowerCase()],ga+nr[0].length):-1}function et(gr,$r,ga){return se(gr,Ve,$r,ga)}function We(gr,$r,ga){return se(gr,bt,$r,ga)}function mt(gr,$r,ga){return se(gr,Tt,$r,ga)}function Pt(gr){return Mr[gr.getDay()]}function Ft(gr){return Ar[gr.getDay()]}function tr(gr){return pa[gr.getMonth()]}function Wt(gr){return Gr[gr.getMonth()]}function Sr(gr){return mr[+(gr.getHours()>=12)]}function Zr(gr){return 1+~~(gr.getMonth()/3)}function Or(gr){return Mr[gr.getUTCDay()]}function ca(gr){return Ar[gr.getUTCDay()]}function ua(gr){return pa[gr.getUTCMonth()]}function qa(gr){return Gr[gr.getUTCMonth()]}function ri(gr){return mr[+(gr.getUTCHours()>=12)]}function Yr(gr){return 1+~~(gr.getUTCMonth()/3)}return{format:function(gr){var $r=Ci(gr+="",oi);return $r.toString=function(){return gr},$r},parse:function(gr){var $r=ma(gr+="",!1);return $r.toString=function(){return gr},$r},utcFormat:function(gr){var $r=Ci(gr+="",Sa);return $r.toString=function(){return gr},$r},utcParse:function(gr){var $r=ma(gr+="",!0);return $r.toString=function(){return gr},$r}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ve,bt){var Tt=Fe<0?"-":"",mr=(Tt?-Fe:Fe)+"",Ar=mr.length;return Tt+(Ar68?1900:2e3),bt+Tt[0].length):-1}function N(Fe,Ve,bt){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ve.slice(bt,bt+6));return Tt?(Fe.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),bt+Tt[0].length):-1}function H(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+1));return Tt?(Fe.q=Tt[0]*3-3,bt+Tt[0].length):-1}function V(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.m=Tt[0]-1,bt+Tt[0].length):-1}function W(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.d=+Tt[0],bt+Tt[0].length):-1}function J(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+3));return Tt?(Fe.m=0,Fe.d=+Tt[0],bt+Tt[0].length):-1}function ee(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.H=+Tt[0],bt+Tt[0].length):-1}function ie(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.M=+Tt[0],bt+Tt[0].length):-1}function oe(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.S=+Tt[0],bt+Tt[0].length):-1}function fe(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+3));return Tt?(Fe.L=+Tt[0],bt+Tt[0].length):-1}function le(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+6));return Tt?(Fe.L=Math.floor(Tt[0]/1e3),bt+Tt[0].length):-1}function Te(Fe,Ve,bt){var Tt=h.exec(Ve.slice(bt,bt+1));return Tt?bt+Tt[0].length:-1}function Se(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt));return Tt?(Fe.Q=+Tt[0],bt+Tt[0].length):-1}function Me(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt));return Tt?(Fe.s=+Tt[0],bt+Tt[0].length):-1}function Ae(Fe,Ve){return m(Fe.getDate(),Ve,2)}function pe(Fe,Ve){return m(Fe.getHours(),Ve,2)}function ke(Fe,Ve){return m(Fe.getHours()%12||12,Ve,2)}function Ee(Fe,Ve){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ve,3)}function Xe(Fe,Ve){return m(Fe.getMilliseconds(),Ve,3)}function lt(Fe,Ve){return Xe(Fe,Ve)+"000"}function it(Fe,Ve){return m(Fe.getMonth()+1,Ve,2)}function _t(Fe,Ve){return m(Fe.getMinutes(),Ve,2)}function Ye(Fe,Ve){return m(Fe.getSeconds(),Ve,2)}function kt(Fe){var Ve=Fe.getDay();return Ve===0?7:Ve}function st(Fe,Ve){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ve,2)}function dt(Fe,Ve){var bt=Fe.getDay();return Fe=bt>=4||bt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ve,2)}function It(Fe){return Fe.getDay()}function yt(Fe,Ve){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ve,2)}function de(Fe,Ve){return m(Fe.getFullYear()%100,Ve,2)}function ze(Fe,Ve){return m(Fe.getFullYear()%1e4,Ve,4)}function _e(Fe){var Ve=Fe.getTimezoneOffset();return(Ve>0?"-":(Ve*=-1,"+"))+m(Ve/60|0,"0",2)+m(Ve%60,"0",2)}function Ue(Fe,Ve){return m(Fe.getUTCDate(),Ve,2)}function at(Fe,Ve){return m(Fe.getUTCHours(),Ve,2)}function Je(Fe,Ve){return m(Fe.getUTCHours()%12||12,Ve,2)}function Ct(Fe,Ve){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ve,3)}function wt(Fe,Ve){return m(Fe.getUTCMilliseconds(),Ve,3)}function xt(Fe,Ve){return wt(Fe,Ve)+"000"}function qt(Fe,Ve){return m(Fe.getUTCMonth()+1,Ve,2)}function Ut(Fe,Ve){return m(Fe.getUTCMinutes(),Ve,2)}function Dt(Fe,Ve){return m(Fe.getUTCSeconds(),Ve,2)}function Mt(Fe){var Ve=Fe.getUTCDay();return Ve===0?7:Ve}function Zt(Fe,Ve){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ve,2)}function Yt(Fe,Ve){var bt=Fe.getUTCDay();return Fe=bt>=4||bt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ve,2)}function Be(Fe){return Fe.getUTCDay()}function ut(Fe,Ve){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ve,2)}function sr(Fe,Ve){return m(Fe.getUTCFullYear()%100,Ve,2)}function Pr(Fe,Ve){return m(Fe.getUTCFullYear()%1e4,Ve,4)}function Et(){return"+0000"}function ht(){return"%"}function pt(Fe){return+Fe}function Ot(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 Kt="%Y-%m-%dT%H:%M:%S.%LZ";function pr(Fe){return Fe.toISOString()}var yr=Date.prototype.toISOString?pr:e.utcFormat(Kt);function ur(Fe){var Ve=new Date(Fe);return isNaN(Ve)?null:Ve}var Lt=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Kt);e.isoFormat=yr,e.isoParse=Lt,e.timeFormatDefaultLocale=Ht,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var Y3=me((o_,D7)=>{(function(e,t){typeof o_=="object"&&typeof D7!="undefined"?t(o_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(o_,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,ee=V.slice(0,J);return[ee.length>1?ee[0]+ee.slice(2):ee,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,ee){for(var ie=J.length,oe=[],fe=0,le=V[0],Te=0;ie>0&&le>0&&(Te+le+1>ee&&(le=Math.max(1,ee-Te)),oe.push(J.substring(ie-=le,ie+le)),!((Te+=le+1)>ee));)le=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);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]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.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(V){e:for(var W=V.length,J=1,ee=-1,ie;J0&&(ee=0);break}return ee>0?V.slice(0,ee)+V.slice(ie+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var ee=J[0],ie=J[1],oe=ie-(m=Math.max(-8,Math.min(8,Math.floor(ie/3)))*3)+1,fe=ee.length;return oe===fe?ee:oe>fe?ee+new Array(oe-fe+1).join("0"):oe>0?ee.slice(0,oe)+"."+ee.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";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(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var E=Array.prototype.map,L=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(E.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",ee=V.currency===void 0?"":V.currency[1]+"",ie=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(E.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",le=V.minus===void 0?"-":V.minus+"",Te=V.nan===void 0?"NaN":V.nan+"";function Se(Ae){Ae=f(Ae);var pe=Ae.fill,ke=Ae.align,Ee=Ae.sign,Xe=Ae.symbol,lt=Ae.zero,it=Ae.width,_t=Ae.comma,Ye=Ae.precision,kt=Ae.trim,st=Ae.type;st==="n"?(_t=!0,st="g"):M[st]||(Ye===void 0&&(Ye=12),kt=!0,st="g"),(lt||pe==="0"&&ke==="=")&&(lt=!0,pe="0",ke="=");var dt=Xe==="$"?J:Xe==="#"&&/[boxX]/.test(st)?"0"+st.toLowerCase():"",It=Xe==="$"?ee:/[%p]/.test(st)?fe:"",yt=M[st],de=/[defgprs%]/.test(st);Ye=Ye===void 0?6:/[gprs]/.test(st)?Math.max(1,Math.min(21,Ye)):Math.max(0,Math.min(20,Ye));function ze(_e){var Ue=dt,at=It,Je,Ct,wt;if(st==="c")at=yt(_e)+at,_e="";else{_e=+_e;var xt=_e<0||1/_e<0;if(_e=isNaN(_e)?Te:yt(Math.abs(_e),Ye),kt&&(_e=v(_e)),xt&&+_e==0&&Ee!=="+"&&(xt=!1),Ue=(xt?Ee==="("?Ee:le:Ee==="-"||Ee==="("?"":Ee)+Ue,at=(st==="s"?L[8+m/3]:"")+at+(xt&&Ee==="("?")":""),de){for(Je=-1,Ct=_e.length;++Jewt||wt>57){at=(wt===46?ie+_e.slice(Je+1):_e.slice(Je))+at,_e=_e.slice(0,Je);break}}}_t&&!lt&&(_e=W(_e,1/0));var qt=Ue.length+_e.length+at.length,Ut=qt>1)+Ue+_e+at+Ut.slice(qt);break;default:_e=Ut+Ue+_e+at;break}return oe(_e)}return ze.toString=function(){return Ae+""},ze}function Me(Ae,pe){var ke=Se((Ae=f(Ae),Ae.type="f",Ae)),Ee=Math.max(-8,Math.min(8,Math.floor(i(pe)/3)))*3,Xe=Math.pow(10,-Ee),lt=L[8+Ee/3];return function(it){return ke(Xe*it)+lt}}return{format:Se,formatPrefix:Me}}var O;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return O=I(V),e.format=O.format,e.formatPrefix=O.formatPrefix,O}function z(V){return Math.max(0,-i(Math.abs(V)))}function N(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=f,e.precisionFixed=z,e.precisionPrefix=N,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var z7=me((jme,P7)=>{"use strict";P7.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 Da=me((Jme,I7)=>{"use strict";var pj=z7();I7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&pj(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=me((Kme,R7)=>{"use strict";R7.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 W3=me((s_,F7)=>{(function(e,t){typeof s_=="object"&&typeof F7!="undefined"?t(s_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(s_,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[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 f=l.length*.75,h=l.length,v,m=0,_,T,M,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var E=new ArrayBuffer(f),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 yc=me((Qme,q7)=>{"use strict";q7.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 al=me(zu=>{"use strict";var mj=W3().decode,yj=yc(),X3=Array.isArray,gj=ArrayBuffer,_j=DataView;function N7(e){return gj.isView(e)&&!(e instanceof _j)}zu.isTypedArray=N7;function l_(e){return X3(e)||N7(e)}zu.isArrayOrTypedArray=l_;function xj(e){return!l_(e[0])}zu.isArray1D=xj;zu.ensureArray=function(e,t){return X3(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=bj(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=mj(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,M=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var O7=Da(),K3=al().isArrayOrTypedArray;G7.exports=function(t,r){if(O7(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var g0=Ey(),Sj=/^\w*$/,kj=0,Z7=1,u_=2,Y7=3,ld=4;W7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=g0(t,r),l=f.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[M]=h[M]|u_,_.set(T,null);if(m){for(s=M;s{"use strict";var Cj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Ej=/^[^\.\[\]]+$/;j7.exports=function(e,t){for(;t;){var r=e.match(Cj);if(r)e=r[1];else if(e.match(Ej))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 f_=me((aye,K7)=>{"use strict";var Lj=Da();K7.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 Lj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var e8=me((iye,$7)=>{"use strict";var Q7=al().isArrayOrTypedArray,Ly=yc();$7.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(Q7(a)&&Q7(s)&&Ly(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function Dj(e,t){var r=e%t;return r<0?r+t:r}function Pj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}t8.exports={mod:Dj,modHalf:Pj}});var Mf=me((oye,c_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(de,ze){if(de=de||"",ze=ze||{},de instanceof h)return de;if(!(this instanceof h))return new h(de,ze);var _e=v(de);this._originalInput=de,this._r=_e.r,this._g=_e.g,this._b=_e.b,this._a=_e.a,this._roundA=a(100*this._a)/100,this._format=ze.format||_e.format,this._gradientType=ze.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=_e.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(),ze,_e,Ue,at,Je,Ct;return ze=de.r/255,_e=de.g/255,Ue=de.b/255,ze<=.03928?at=ze/12.92:at=e.pow((ze+.055)/1.055,2.4),_e<=.03928?Je=_e/12.92:Je=e.pow((_e+.055)/1.055,2.4),Ue<=.03928?Ct=Ue/12.92:Ct=e.pow((Ue+.055)/1.055,2.4),.2126*at+.7152*Je+.0722*Ct},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),ze=a(de.h*360),_e=a(de.s*100),Ue=a(de.v*100);return this._a==1?"hsv("+ze+", "+_e+"%, "+Ue+"%)":"hsva("+ze+", "+_e+"%, "+Ue+"%, "+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),ze=a(de.h*360),_e=a(de.s*100),Ue=a(de.l*100);return this._a==1?"hsl("+ze+", "+_e+"%, "+Ue+"%)":"hsla("+ze+", "+_e+"%, "+Ue+"%, "+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(pe(this._r,255)*100)+"%",g:a(pe(this._g,255)*100)+"%",b:a(pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(pe(this._r,255)*100)+"%, "+a(pe(this._g,255)*100)+"%, "+a(pe(this._b,255)*100)+"%)":"rgba("+a(pe(this._r,255)*100)+"%, "+a(pe(this._g,255)*100)+"%, "+a(pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(de){var ze="#"+I(this._r,this._g,this._b,this._a),_e=ze,Ue=this._gradientType?"GradientType = 1, ":"";if(de){var at=h(de);_e="#"+I(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ue+"startColorstr="+ze+",endColorstr="+_e+")"},toString:function(de){var ze=!!de;de=de||this._format;var _e=!1,Ue=this._a<1&&this._a>=0,at=!ze&&Ue&&(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"&&(_e=this.toRgbString()),de==="prgb"&&(_e=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(_e=this.toHexString()),de==="hex3"&&(_e=this.toHexString(!0)),de==="hex4"&&(_e=this.toHex8String(!0)),de==="hex8"&&(_e=this.toHex8String()),de==="name"&&(_e=this.toName()),de==="hsl"&&(_e=this.toHslString()),de==="hsv"&&(_e=this.toHsvString()),_e||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(de,ze){var _e=de.apply(null,[this].concat([].slice.call(ze)));return this._r=_e._r,this._g=_e._g,this._b=_e._b,this.setAlpha(_e._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,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,ze){return de.apply(null,[this].concat([].slice.call(ze)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(le,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,ze){if(typeof de=="object"){var _e={};for(var Ue in de)de.hasOwnProperty(Ue)&&(Ue==="a"?_e[Ue]=de[Ue]:_e[Ue]=_t(de[Ue]));de=_e}return h(de,ze)};function v(de){var ze={r:0,g:0,b:0},_e=1,Ue=null,at=null,Je=null,Ct=!1,wt=!1;return typeof de=="string"&&(de=It(de)),typeof de=="object"&&(dt(de.r)&&dt(de.g)&&dt(de.b)?(ze=m(de.r,de.g,de.b),Ct=!0,wt=String(de.r).substr(-1)==="%"?"prgb":"rgb"):dt(de.h)&&dt(de.s)&&dt(de.v)?(Ue=_t(de.s),at=_t(de.v),ze=C(de.h,Ue,at),Ct=!0,wt="hsv"):dt(de.h)&&dt(de.s)&&dt(de.l)&&(Ue=_t(de.s),Je=_t(de.l),ze=T(de.h,Ue,Je),Ct=!0,wt="hsl"),de.hasOwnProperty("a")&&(_e=de.a)),_e=Ae(_e),{ok:Ct,format:de.format||wt,r:s(255,l(ze.r,0)),g:s(255,l(ze.g,0)),b:s(255,l(ze.b,0)),a:_e}}function m(de,ze,_e){return{r:pe(de,255)*255,g:pe(ze,255)*255,b:pe(_e,255)*255}}function _(de,ze,_e){de=pe(de,255),ze=pe(ze,255),_e=pe(_e,255);var Ue=l(de,ze,_e),at=s(de,ze,_e),Je,Ct,wt=(Ue+at)/2;if(Ue==at)Je=Ct=0;else{var xt=Ue-at;switch(Ct=wt>.5?xt/(2-Ue-at):xt/(Ue+at),Ue){case de:Je=(ze-_e)/xt+(ze<_e?6:0);break;case ze:Je=(_e-de)/xt+2;break;case _e:Je=(de-ze)/xt+4;break}Je/=6}return{h:Je,s:Ct,l:wt}}function T(de,ze,_e){var Ue,at,Je;de=pe(de,360),ze=pe(ze,100),_e=pe(_e,100);function Ct(qt,Ut,Dt){return Dt<0&&(Dt+=1),Dt>1&&(Dt-=1),Dt<1/6?qt+(Ut-qt)*6*Dt:Dt<1/2?Ut:Dt<2/3?qt+(Ut-qt)*(2/3-Dt)*6:qt}if(ze===0)Ue=at=Je=_e;else{var wt=_e<.5?_e*(1+ze):_e+ze-_e*ze,xt=2*_e-wt;Ue=Ct(xt,wt,de+1/3),at=Ct(xt,wt,de),Je=Ct(xt,wt,de-1/3)}return{r:Ue*255,g:at*255,b:Je*255}}function M(de,ze,_e){de=pe(de,255),ze=pe(ze,255),_e=pe(_e,255);var Ue=l(de,ze,_e),at=s(de,ze,_e),Je,Ct,wt=Ue,xt=Ue-at;if(Ct=Ue===0?0:xt/Ue,Ue==at)Je=0;else{switch(Ue){case de:Je=(ze-_e)/xt+(ze<_e?6:0);break;case ze:Je=(_e-de)/xt+2;break;case _e:Je=(de-ze)/xt+4;break}Je/=6}return{h:Je,s:Ct,v:wt}}function C(de,ze,_e){de=pe(de,360)*6,ze=pe(ze,100),_e=pe(_e,100);var Ue=e.floor(de),at=de-Ue,Je=_e*(1-ze),Ct=_e*(1-at*ze),wt=_e*(1-(1-at)*ze),xt=Ue%6,qt=[_e,Ct,Je,Je,wt,_e][xt],Ut=[wt,_e,_e,Ct,Je,Je][xt],Dt=[Je,Je,wt,_e,_e,Ct][xt];return{r:qt*255,g:Ut*255,b:Dt*255}}function E(de,ze,_e,Ue){var at=[it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16))];return Ue&&at[0].charAt(0)==at[0].charAt(1)&&at[1].charAt(0)==at[1].charAt(1)&&at[2].charAt(0)==at[2].charAt(1)?at[0].charAt(0)+at[1].charAt(0)+at[2].charAt(0):at.join("")}function L(de,ze,_e,Ue,at){var Je=[it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16)),it(Ye(Ue))];return at&&Je[0].charAt(0)==Je[0].charAt(1)&&Je[1].charAt(0)==Je[1].charAt(1)&&Je[2].charAt(0)==Je[2].charAt(1)&&Je[3].charAt(0)==Je[3].charAt(1)?Je[0].charAt(0)+Je[1].charAt(0)+Je[2].charAt(0)+Je[3].charAt(0):Je.join("")}function I(de,ze,_e,Ue){var at=[it(Ye(Ue)),it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16))];return at.join("")}h.equals=function(de,ze){return!de||!ze?!1:h(de).toRgbString()==h(ze).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})};function O(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.s-=ze/100,_e.s=ke(_e.s),h(_e)}function q(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.s+=ze/100,_e.s=ke(_e.s),h(_e)}function z(de){return h(de).desaturate(100)}function N(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.l+=ze/100,_e.l=ke(_e.l),h(_e)}function H(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toRgb();return _e.r=l(0,s(255,_e.r-a(255*-(ze/100)))),_e.g=l(0,s(255,_e.g-a(255*-(ze/100)))),_e.b=l(0,s(255,_e.b-a(255*-(ze/100)))),h(_e)}function V(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.l-=ze/100,_e.l=ke(_e.l),h(_e)}function W(de,ze){var _e=h(de).toHsl(),Ue=(_e.h+ze)%360;return _e.h=Ue<0?360+Ue:Ue,h(_e)}function J(de){var ze=h(de).toHsl();return ze.h=(ze.h+180)%360,h(ze)}function ee(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+120)%360,s:ze.s,l:ze.l}),h({h:(_e+240)%360,s:ze.s,l:ze.l})]}function ie(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+90)%360,s:ze.s,l:ze.l}),h({h:(_e+180)%360,s:ze.s,l:ze.l}),h({h:(_e+270)%360,s:ze.s,l:ze.l})]}function oe(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+72)%360,s:ze.s,l:ze.l}),h({h:(_e+216)%360,s:ze.s,l:ze.l})]}function fe(de,ze,_e){ze=ze||6,_e=_e||30;var Ue=h(de).toHsl(),at=360/_e,Je=[h(de)];for(Ue.h=(Ue.h-(at*ze>>1)+720)%360;--ze;)Ue.h=(Ue.h+at)%360,Je.push(h(Ue));return Je}function le(de,ze){ze=ze||6;for(var _e=h(de).toHsv(),Ue=_e.h,at=_e.s,Je=_e.v,Ct=[],wt=1/ze;ze--;)Ct.push(h({h:Ue,s:at,v:Je})),Je=(Je+wt)%1;return Ct}h.mix=function(de,ze,_e){_e=_e===0?0:_e||50;var Ue=h(de).toRgb(),at=h(ze).toRgb(),Je=_e/100,Ct={r:(at.r-Ue.r)*Je+Ue.r,g:(at.g-Ue.g)*Je+Ue.g,b:(at.b-Ue.b)*Je+Ue.b,a:(at.a-Ue.a)*Je+Ue.a};return h(Ct)},h.readability=function(de,ze){var _e=h(de),Ue=h(ze);return(e.max(_e.getLuminance(),Ue.getLuminance())+.05)/(e.min(_e.getLuminance(),Ue.getLuminance())+.05)},h.isReadable=function(de,ze,_e){var Ue=h.readability(de,ze),at,Je;switch(Je=!1,at=yt(_e),at.level+at.size){case"AAsmall":case"AAAlarge":Je=Ue>=4.5;break;case"AAlarge":Je=Ue>=3;break;case"AAAsmall":Je=Ue>=7;break}return Je},h.mostReadable=function(de,ze,_e){var Ue=null,at=0,Je,Ct,wt,xt;_e=_e||{},Ct=_e.includeFallbackColors,wt=_e.level,xt=_e.size;for(var qt=0;qtat&&(at=Je,Ue=h(ze[qt]));return h.isReadable(de,Ue,{level:wt,size:xt})||!Ct?Ue:(_e.includeFallbackColors=!1,h.mostReadable(de,["#fff","#000"],_e))};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"},Se=h.hexNames=Me(Te);function Me(de){var ze={};for(var _e in de)de.hasOwnProperty(_e)&&(ze[de[_e]]=_e);return ze}function Ae(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function pe(de,ze){Xe(de)&&(de="100%");var _e=lt(de);return de=s(ze,l(0,parseFloat(de))),_e&&(de=parseInt(de*ze,10)/100),e.abs(de-ze)<1e-6?1:de%ze/parseFloat(ze)}function ke(de){return s(1,l(0,de))}function Ee(de){return parseInt(de,16)}function Xe(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function lt(de){return typeof de=="string"&&de.indexOf("%")!=-1}function it(de){return de.length==1?"0"+de:""+de}function _t(de){return de<=1&&(de=de*100+"%"),de}function Ye(de){return e.round(parseFloat(de)*255).toString(16)}function kt(de){return Ee(de)/255}var st=function(){var de="[-\\+]?\\d+%?",ze="[-\\+]?\\d*\\.\\d+%?",_e="(?:"+ze+")|(?:"+de+")",Ue="[\\s|\\(]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")\\s*\\)?",at="[\\s|\\(]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")\\s*\\)?";return{CSS_UNIT:new RegExp(_e),rgb:new RegExp("rgb"+Ue),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+Ue),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+Ue),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 dt(de){return!!st.CSS_UNIT.exec(de)}function It(de){de=de.replace(t,"").replace(r,"").toLowerCase();var ze=!1;if(Te[de])de=Te[de],ze=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var _e;return(_e=st.rgb.exec(de))?{r:_e[1],g:_e[2],b:_e[3]}:(_e=st.rgba.exec(de))?{r:_e[1],g:_e[2],b:_e[3],a:_e[4]}:(_e=st.hsl.exec(de))?{h:_e[1],s:_e[2],l:_e[3]}:(_e=st.hsla.exec(de))?{h:_e[1],s:_e[2],l:_e[3],a:_e[4]}:(_e=st.hsv.exec(de))?{h:_e[1],s:_e[2],v:_e[3]}:(_e=st.hsva.exec(de))?{h:_e[1],s:_e[2],v:_e[3],a:_e[4]}:(_e=st.hex8.exec(de))?{r:Ee(_e[1]),g:Ee(_e[2]),b:Ee(_e[3]),a:kt(_e[4]),format:ze?"name":"hex8"}:(_e=st.hex6.exec(de))?{r:Ee(_e[1]),g:Ee(_e[2]),b:Ee(_e[3]),format:ze?"name":"hex"}:(_e=st.hex4.exec(de))?{r:Ee(_e[1]+""+_e[1]),g:Ee(_e[2]+""+_e[2]),b:Ee(_e[3]+""+_e[3]),a:kt(_e[4]+""+_e[4]),format:ze?"name":"hex8"}:(_e=st.hex3.exec(de))?{r:Ee(_e[1]+""+_e[1]),g:Ee(_e[2]+""+_e[2]),b:Ee(_e[3]+""+_e[3]),format:ze?"name":"hex"}:!1}function yt(de){var ze,_e;return de=de||{level:"AA",size:"small"},ze=(de.level||"AA").toUpperCase(),_e=(de.size||"small").toLowerCase(),ze!=="AA"&&ze!=="AAA"&&(ze="AA"),_e!=="small"&&_e!=="large"&&(_e="small"),{level:ze,size:_e}}typeof c_!="undefined"&&c_.exports?c_.exports=h:window.tinycolor=h})(Math)});var yn=me(zy=>{"use strict";var r8=yc(),Dy=Array.isArray;function zj(e,t){var r,i;for(r=0;r{"use strict";a8.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 Iy=me((uye,i8)=>{"use strict";i8.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var x0=me((fye,s8)=>{"use strict";var n8=Iy(),o8=qo(),Q3=o8({editType:"none"});Q3.family.dflt=n8.HOVERFONT;Q3.size.dflt=n8.HOVERFONTSIZE;s8.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Q3,grouptitlefont:o8({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 h_=me((cye,l8)=>{"use strict";var Ij=qo(),Ry=x0().hoverlabel,Fy=yn().extendFlat;l8.exports={hoverlabel:{bgcolor:Fy({},Ry.bgcolor,{arrayOk:!0}),bordercolor:Fy({},Ry.bordercolor,{arrayOk:!0}),font:Ij({arrayOk:!0,editType:"none"}),align:Fy({},Ry.align,{arrayOk:!0}),namelength:Fy({},Ry.namelength,{arrayOk:!0}),showarrow:Fy({},Ry.showarrow),editType:"none"}}});var ys=me((hye,u8)=>{"use strict";var Rj=qo(),Fj=h_();u8.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:Rj({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:Fj.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=me((vye,h8)=>{"use strict";var qj=Mf(),v_={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)"]]},f8=v_.RdBu;function Nj(e,t){if(t||(t=f8),!e)return t;function r(){try{e=v_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),c8(e)?e:t}function c8(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 Oa=me((pye,v8)=>{"use strict";var Fs=Mf(),Oj=Da(),Uj=al().isTypedArray,$n=v8.exports={},d_=Sf();$n.defaults=d_.defaults;var Vj=$n.defaultLine=d_.defaultLine;$n.lightLine=d_.lightLine;var ew=$n.background=d_.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(Fs(e))};$n.opacity=function(e){return e?Fs(e).getAlpha():0};$n.addOpacity=function(e,t){var r=Fs(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=Fs(e).toRgb();if(r.a===1)return Fs(e).toRgbString();var i=Fs(t||ew).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 Fs(s).toRgbString()};$n.interpolate=function(e,t,r){var i=Fs(e).toRgb(),a=Fs(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 Fs(s).toRgbString()};$n.contrast=function(e,t,r){var i=Fs(e);i.getAlpha()!==1&&(i=Fs($n.combine(e,ew)));var a=i.isDark()?t?i.lighten(t):ew:r?i.darken(r):Vj;return a.toString()};$n.stroke=function(e,t){var r=Fs(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=Fs(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 p_=me((mye,d8)=>{"use strict";d8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var b0=me(p8=>{"use strict";p8.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 _8=me(qs=>{"use strict";var tw=Da(),m8=Mf(),y8=yn().extendFlat,Hj=ys(),Gj=ud(),Zj=Oa(),Yj=p_().DESELECTDIM,w0=Ey(),g8=b0().counter,Wj=_0().modHalf,Iu=al().isArrayOrTypedArray,Ch=al().isTypedArraySpec,Eh=al().decodeTypedArraySpec;qs.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)),!tw(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||!tw(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)),m8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return m8(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(Gj.get(e,r))}},angle:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),e==="auto"?t.set("auto"):tw(e)?t.set(Wj(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||g8(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:!!g8(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 x8={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},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:{}}},b8={};function w8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),w8(i,t[r]))}}w8(x8,b8);T8.exports={configAttributes:x8,dfltConfig:b8}});var aw=me((xye,A8)=>{"use strict";var rw=ja(),Xj=Da(),qy=[];A8.exports=function(e,t){if(qy.indexOf(e)!==-1)return;qy.push(e);var r=1e3;Xj(t)?r=t:t==="long"&&(r=3e3);var i=rw.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(qy);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=qy.indexOf(f);h!==-1&&qy.splice(h,1),rw.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=rw.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var T0=cd().dfltConfig,iw=aw(),nw=M8.exports={};nw.log=function(){var e;if(T0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};nw.warn=function(){var e;if(T0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};nw.error=function(){var e;if(T0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var y_=me((wye,S8)=>{"use strict";S8.exports=function(){}});var ow=me((Tye,k8)=>{"use strict";k8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{C8.exports=jj;function jj(){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 D8=me((Mye,L8)=>{L8.exports=Jj;function Jj(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 z8=me((Sye,P8)=>{P8.exports=Kj;function Kj(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 sw=me((kye,I8)=>{I8.exports=Qj;function Qj(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 F8=me((Cye,R8)=>{R8.exports=$j;function $j(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=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]=f}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 N8=me((Eye,q8)=>{q8.exports=eJ;function eJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=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*f-i*l,q=r*h-a*l,z=r*v-s*l,N=i*h-a*f,H=i*v-s*f,V=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,fe=T*I-M*L,le=O*fe-q*oe+z*ie+N*ee-H*J+V*W;return le?(le=1/le,e[0]=(f*fe-h*oe+v*ie)*le,e[1]=(a*oe-i*fe-s*ie)*le,e[2]=(E*V-L*H+I*N)*le,e[3]=(T*H-_*V-M*N)*le,e[4]=(h*ee-l*fe-v*J)*le,e[5]=(r*fe-a*ee+s*J)*le,e[6]=(L*z-C*V-I*q)*le,e[7]=(m*V-T*z+M*q)*le,e[8]=(l*oe-f*ee+v*W)*le,e[9]=(i*ee-r*oe-s*W)*le,e[10]=(C*H-E*z+I*O)*le,e[11]=(_*z-m*H-M*O)*le,e[12]=(f*J-l*ie-h*W)*le,e[13]=(r*ie-i*J+a*W)*le,e[14]=(E*q-C*N-L*O)*le,e[15]=(m*N-_*q+T*O)*le,e):null}});var O8=me((Lye,B8)=>{B8.exports=tJ;function tJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=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]=f*(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)-f*(a*I-s*L)+E*(a*v-s*h),e[3]=-(i*(h*M-v*T)-f*(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*(f*I-v*E)+C*(f*M-v*_),e[9]=-(r*(_*I-M*E)-m*(i*I-s*E)+C*(i*M-s*_)),e[10]=r*(f*I-v*E)-l*(i*I-s*E)+C*(i*v-s*f),e[11]=-(r*(f*M-v*_)-l*(i*M-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*L-T*E)-m*(f*L-h*E)+C*(f*T-h*_)),e[13]=r*(_*L-T*E)-m*(i*L-a*E)+C*(i*T-a*_),e[14]=-(r*(f*L-h*E)-l*(i*L-a*E)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var V8=me((Dye,U8)=>{U8.exports=rJ;function rJ(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=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*f-i*s,q=t*h-a*s,z=r*f-i*l,N=r*h-a*l,H=i*h-a*f,V=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*V}});var G8=me((Pye,H8)=>{H8.exports=aJ;function aJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=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*f+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*f+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*f+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*f+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 Y8=me((zye,Z8)=>{Z8.exports=iJ;function iJ(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,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],f=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]=f,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]=f*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 X8=me((Iye,W8)=>{W8.exports=nJ;function nJ(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 J8=me((Rye,j8)=>{j8.exports=oJ;function oJ(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,M,C,E,L,I,O,q,z,N,H,V,W,J,ee,ie,oe,fe,le,Te;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,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],V=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,fe=a*l*m+s*h,le=s*l*m-a*h,Te=l*l*m+v,e[0]=_*V+E*W+q*J,e[1]=T*V+L*W+z*J,e[2]=M*V+I*W+N*J,e[3]=C*V+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]=_*fe+E*le+q*Te,e[9]=T*fe+L*le+z*Te,e[10]=M*fe+I*le+N*Te,e[11]=C*fe+O*le+H*Te,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Q8=me((Fye,K8)=>{K8.exports=sJ;function sJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=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]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var eS=me((qye,$8)=>{$8.exports=lJ;function lJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=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]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var rS=me((Nye,tS)=>{tS.exports=uJ;function uJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=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]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var iS=me((Bye,aS)=>{aS.exports=fJ;function fJ(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*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 oS=me((Oye,nS)=>{nS.exports=cJ;function cJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,M=a*h,C=a*v,E=s*v,L=l*f,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 lS=me((Uye,sS)=>{sS.exports=hJ;function hJ(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 fS=me((Vye,uS)=>{uS.exports=vJ;function vJ(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 hS=me((Hye,cS)=>{cS.exports=dJ;function dJ(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 dS=me((Gye,vS)=>{vS.exports=pJ;function pJ(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 mS=me((Zye,pS)=>{pS.exports=mJ;function mJ(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 gS=me((Yye,yS)=>{yS.exports=yJ;function yJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,M=a*f,C=a*h,E=s*l,L=s*f,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 xS=me((Wye,_S)=>{_S.exports=gJ;function gJ(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,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)*f,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 wS=me((Xye,bS)=>{bS.exports=_J;function _J(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 AS=me((jye,TS)=>{TS.exports=xJ;function xJ(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),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),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-f)*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 SS=me((Jye,MS)=>{MS.exports=bJ;function bJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,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)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var CS=me((Kye,kS)=>{var wJ=sw();kS.exports=TJ;function TJ(e,t,r,i){var a,s,l,f,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?wJ(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),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,M=Math.sqrt(f*f+h*h+v*v),M?(M=1/M,f*=M,h*=M,v*=M):(f=0,h=0,v=0),e[0]=a,e[1]=f,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]=-(f*C+h*E+v*L),e[14]=-(m*C+_*E+T*L),e[15]=1,e)}});var LS=me((Qye,ES)=>{ES.exports=AJ;function AJ(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 lw=me(($ye,DS)=>{DS.exports={create:E8(),clone:D8(),copy:z8(),identity:sw(),transpose:F8(),invert:N8(),adjoint:O8(),determinant:V8(),multiply:G8(),translate:Y8(),scale:X8(),rotate:J8(),rotateX:Q8(),rotateY:eS(),rotateZ:rS(),fromRotation:iS(),fromRotationTranslation:oS(),fromScaling:lS(),fromTranslation:fS(),fromXRotation:hS(),fromYRotation:dS(),fromZRotation:mS(),fromQuat:gS(),frustum:xS(),perspective:wS(),perspectiveFromFieldOfView:AS(),ortho:SS(),lookAt:CS(),str:LS()}});var g_=me(Cn=>{"use strict";var MJ=lw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var SJ=ja(),PS=Lh(),kJ=g_(),CJ=lw();function EJ(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 LJ(e){var t=SJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function zS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function DJ(e,t){IS("global",e,t)}function IS(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):PS.warn("addStyleRule failed"):PS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function PJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&zS(r)}function zJ(e,t,r,i,a,s){var l=i.split(":"),f=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[f[0]]=f[1])}),v.setAttribute(h,!0))})}function IJ(e){var t=FS(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=RS(i);if(a){var s=kJ.convertCssMatrix(a);r=CJ.multiply(r,r,s)}}),r}function RS(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 FS(e){for(var t=[];RJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function RJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function FJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}qS.exports={getGraphDiv:EJ,isPlotDiv:LJ,removeElement:zS,addStyleRule:DJ,addRelatedStyleRule:IS,deleteRelatedStyleRule:PJ,setStyleOnHover:zJ,getFullTransformMatrix:IJ,getElementTransformMatrix:RS,getElementAndAncestors:FS,equalDomRects:FJ}});var By=me((rge,NS)=>{"use strict";NS.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=me((age,ZS)=>{"use strict";var OS=yn().extendFlat,qJ=yc(),US={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},VS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},NJ=US.flags.slice().concat(["fullReplot"]),BJ=VS.flags.slice().concat("layoutReplot");ZS.exports={traces:US,layout:VS,traceFlags:function(){return BS(NJ)},layoutFlags:function(){return BS(BJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";uw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};uw.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 fw=me((nge,YS)=>{"use strict";YS.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 kf=me(A0=>{"use strict";var{DATE_FORMAT_LINK:OJ,FORMAT_LINK:UJ}=fw(),VJ=["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 HJ({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}".`,UJ,"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}".`,OJ,"for details on the date formatting syntax.",VJ].join(" ")}A0.templateFormatStringDescription=HJ;A0.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});A0.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});A0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});A0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var b_=me((lge,QS)=>{"use strict";function Dh(e,t){return t?t.d2l(e):e}function WS(e,t){return t?t.l2d(e):e}function GJ(e){return e.x0}function ZJ(e){return e.x1}function YJ(e){return e.y0}function WJ(e){return e.y1}function XS(e){return e.x0shift||0}function jS(e){return e.x1shift||0}function JS(e){return e.y0shift||0}function KS(e){return e.y1shift||0}function __(e,t){return Dh(e.x1,t)+jS(e)-Dh(e.x0,t)-XS(e)}function x_(e,t,r){return Dh(e.y1,r)+KS(e)-Dh(e.y0,r)-JS(e)}function XJ(e,t){return Math.abs(__(e,t))}function jJ(e,t,r){return Math.abs(x_(e,t,r))}function JJ(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(__(e,t),2)+Math.pow(x_(e,t,r),2))}function KJ(e,t){return WS((Dh(e.x1,t)+jS(e)+Dh(e.x0,t)+XS(e))/2,t)}function QJ(e,t,r){return WS((Dh(e.y1,r)+KS(e)+Dh(e.y0,r)+JS(e))/2,r)}function $J(e,t,r){return e.type!=="line"?void 0:x_(e,t,r)/__(e,t)}var eK=["x0","x1","y0","y1","dy","height","ycenter"],tK=["x0","x1","y0","y1","dx","width","xcenter"];QS.exports={x0:GJ,x1:ZJ,y0:YJ,y1:WJ,slope:$J,dx:__,dy:x_,width:XJ,height:jJ,length:JJ,xcenter:KJ,ycenter:QJ,simpleXVariables:eK,simpleYVariables:tK}});var t9=me((uge,e9)=>{"use strict";var rK=il().overrideAll,hd=ys(),$S=qo(),aK=gc().dash,Ph=yn().extendFlat,{shapeTexttemplateAttrs:iK,templatefallbackAttrs:nK}=kf(),oK=b_();e9.exports=rK({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:$S({})},legendrank:Ph({},hd.legendrank,{}),legendwidth:Ph({},hd.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ph({},aK,{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:iK({newshape:!0},{keys:Object.keys(oK)}),texttemplatefallback:nK({editType:"arraydraw"}),font:$S({}),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 a9=me((fge,r9)=>{"use strict";var sK=gc().dash,lK=yn().extendFlat;r9.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:lK({},sK,{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 w_=me((cge,i9)=>{"use strict";i9.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 M0=me((hge,l9)=>{"use strict";var cw=qo(),uK=By(),T_=Sf(),n9=t9(),o9=a9(),fK=w_(),s9=yn().extendFlat,A_=cw({editType:"calc"});A_.family.dflt='"Open Sans", verdana, arial, sans-serif';A_.size.dflt=12;A_.color.dflt=T_.defaultLine;l9.exports={font:A_,title:{text:{valType:"string",editType:"layoutstyle"},font:cw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:cw({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:s9(fK({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:T_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:T_.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:T_.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:n9.newshape,activeshape:n9.activeshape,newselection:o9.newselection,activeselection:o9.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:s9({},uK.transition,{editType:"none"})}});var u9=me(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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 sa=me(Pa=>{"use strict";var S0=Lh(),f9=y_(),c9=ow(),cK=yc(),hK=Ny().addStyleRule,h9=yn(),vK=ys(),dK=M0(),pK=h9.extendFlat,hw=h9.extendDeepAll;Pa.modules={};Pa.allCategories={};Pa.allTypes=[];Pa.subplotsRegistry={};Pa.componentsRegistry={};Pa.layoutArrayContainers=[];Pa.layoutArrayRegexes=[];Pa.traceLayoutAttributes={};Pa.localeRegistry={};Pa.apiMethodRegistry={};Pa.collectableSubplotTypes=null;Pa.register=function(t){if(Pa.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 bK=y0().timeFormat,T9=Da(),vw=Lh(),Ih=_0().mod,E0=Zi(),Gl=E0.BADNUM,Ns=E0.ONEDAY,Oy=E0.ONEHOUR,zh=E0.ONEMIN,C0=E0.ONESEC,Uy=E0.EPOCHJD,_c=sa(),y9=y0().utcFormat,wK=/^\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,TK=/^\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,g9=new Date().getFullYear()-70;function xc(e){return e&&_c.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=AK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Ns*(t-1),En.ms2DateTime(i,0,e)};function AK(e,t){return xc(e)?t?_c.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:_c.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return xc(e)?_c.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 S_,k_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*zh,i=(e.getUTCMinutes()-e.getMinutes())*zh+(e.getUTCSeconds()-e.getSeconds())*C0+(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>=S_&&e<=k_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=xc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.slice(1),t="");var f=s&&t.slice(0,7)==="chinese",h=e.match(f?TK:wK);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=_c.getComponentMethod("calendars","getCal")(t);if(f){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()-Uy)*Ns+T*Oy+M*zh+C*C0:Gl}v.length===2?v=(Number(v)+2e3-g9)%100+g9: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*C0};S_=En.MIN_MS=En.dateTime2ms("-9999");k_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function k0(e,t){return String(e+Math.pow(10,t)).slice(1)}var M_=90*Ns,_9=3*Oy,x9=5*zh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=S_&&e<=k_))return Gl;t||(t=0);var i=Math.floor(Ih(e+.05,1)*10),a=Math.round(e-i/10),s,l,f,h,v,m;if(xc(r)){var _=Math.floor(a/Ns)+Uy,T=Math.floor(Ih(e,Ns));try{s=_c.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(M){s=y9("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=S_+Ns&&e<=k_-Ns))return Gl;var t=Math.floor(Ih(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=bK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return A9(i,a,s,l,f)};function A9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+k0(t,2)+":"+k0(r,2),(i||a)&&(e+=":"+k0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+k0(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(xc(r))return vw.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 vw.error("unrecognized date",e),t;return e};var MK=/%\d?f/g,SK=/%h/g,kK={1:"1",2:"1",3:"2",4:"2"};function b9(e,t,r,i){e=e.replace(MK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(SK,function(){return kK[r("%q")(a)]}),xc(i))try{e=_c.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var CK=[59,59.9,59.99,59.999,59.9999];function EK(e,t){var r=Ih(e+.05,Ns),i=k0(Math.floor(r/Oy),2)+":"+k0(Ih(Math.floor(r/zh),60),2);if(t!=="M"){T9(t)||(t=0);var a=Math.min(Ih(e/C0,60),CK[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=xc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` +`)};function X(ye){return ye.map(ae).join(y)}function ae(ye){return P.test(ye)?'"'+ye.replace(/\"/g,'""')+'"':ye}return U},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Kn,du,Ui,pl,lp=this[Me(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 U=P+S,Z={c:y,t:U,n:null};return du?du.n=Z:Kn=Z,du=Z,Ui||(pl=clearTimeout(pl),Ui=1,lp(Zc)),Z}function Zc(){var y=xv(),S=bv()-y;S>24?(isFinite(S)&&(clearTimeout(pl),pl=setTimeout(Zc,S)),Ui=0):(Ui=1,lp(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(U[ye[Pe[X]][2]]);for(X=+$e;X1&&ii(y[P[B-2]],y[P[B-1]],y[U])<=0;)--B;P[B++]=U}return P.slice(0,B)}function $u(y,S){return y[0]-S[0]||y[1]-S[1]}e.geom.polygon=function(y){return Ye(y,Kf),y};var Kf=e.geom.polygon.prototype=[];Kf.area=function(){for(var y=-1,S=this.length,P,B=this[S-1],U=0;++yVe)X=X.L;else if($=S-on(X,P),$>Ve){if(!X.R){B=X;break}X=X.R}else{Z>-Ve?(B=X.P,U=X):$>-Ve?(B=X,U=X.N):B=U=X;break}var ae=lo(y);if(mu.insert(B,ae),!(!B&&!U)){if(B===U){ba(B),U=lo(B.site),mu.insert(ae,U),ae.edge=U.edge=Ws(B.site,ae.site),Er(B),Er(U);return}if(!U){ae.edge=Ws(B.site,ae.site);return}ba(B),ba(U);var ye=B.site,xe=ye.x,Pe=ye.y,De=y.x-xe,$e=y.y-Pe,ot=U.site,Ie=ot.x-xe,He=ot.y-Pe,Qe=2*(De*He-$e*Ie),ct=De*De+$e*$e,nt=Ie*Ie+He*He,je={x:(He*ct-$e*nt)/Qe+xe,y:(De*nt-Ie*ct)/Qe+Pe};fs(U.edge,ye,ot,je),ae.edge=Ws(ye,y,null,je),U.edge=Ws(y,ot,null,je),Er(B),Er(U)}}function yu(y,S){var P=y.site,B=P.x,U=P.y,Z=U-S;if(!Z)return B;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-S;if(!ye)return X;var xe=X-B,Pe=1/Z-1/ye,De=xe/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(xe*xe/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+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(tf),y.length};function ws(y){for(var S=y[0][0],P=y[1][0],B=y[0][1],U=y[1][1],Z,$,X,ae,ye=Zo,xe=ye.length,Pe,De,$e,ot,Ie,He;xe--;)if(Pe=ye[xe],!(!Pe||!Pe.prepare()))for($e=Pe.edges,ot=$e.length,De=0;DeVe||I(ae-$)>Ve)&&($e.splice(De,0,new xl(gu(Pe.site,He,I(X-S)Ve?{x:S,y:I(Z-S)Ve?{x:I($-U)Ve?{x:P,y:I(Z-P)Ve?{x:I($-B)=-bt)){var De=ae*ae+ye*ye,$e=xe*xe+He*He,ot=(He*De-ye*$e)/Pe,Ie=(ae*$e-xe*De)/Pe,He=Ie+X,Qe=Tv.pop()||new rf;Qe.arc=y,Qe.site=U,Qe.x=ot+$,Qe.y=He+Math.sqrt(ot*ot+Ie*Ie),Qe.cy=He,y.circle=Qe;for(var ct=null,nt=ef._;nt;)if(Qe.y0)){if(Ie/=$e,$e<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=P-X,!(!$e&&Ie<0)){if(Ie/=$e,$e<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if($e>0){if(Ie0)){if(Ie/=ot,ot<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=B-ae,!(!ot&&Ie<0)){if(Ie/=ot,ot<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(ot>0){if(Ie0&&(U.a={x:X+Pe*$e,y:ae+Pe*ot}),De<1&&(U.b={x:X+De*$e,y:ae+De*ot}),U}}}}}}function Ts(y){for(var S=yl,P=wa(y[0][0],y[0][1],y[1][0],y[1][1]),B=S.length,U;B--;)U=S[B],(!_l(U,y)||!P(U)||I(U.a.x-U.b.x)=Z)return;if(xe>De){if(!B)B={x:ot,y:$};else if(B.y>=X)return;P={x:ot,y:X}}else{if(!B)B={x:ot,y:X};else if(B.y<$)return;P={x:ot,y:$}}}else if(He=(xe-De)/($e-Pe),Qe=Ie-He*ot,He<-1||He>1)if(xe>De){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(Pe<$e){if(!B)B={x:U,y:He*U+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<=De&&Qe.y>=Pe&&Qe.y<=$e?[[xe,$e],[De,$e],[De,Pe],[xe,Pe]]:[];ct.point=ae[Ie]}),ye}function X(ae){return ae.map(function(ye,xe){return{x:Math.round(B(ye,xe)/Ve)*Ve,y:Math.round(U(ye,xe)/Ve)*Ve,i:xe}})}return $.links=function(ae){return _u(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return _u(X(ae)).cells.forEach(function(xe,Pe){for(var De=xe.site,$e=xe.edges.sort(tf),ot=-1,Ie=$e.length,He,Qe,ct=$e[Ie-1].edge,nt=ct.l===De?ct.r:ct.l;++otnt&&(nt=xe.x),xe.y>je&&(je=xe.y),$e.push(xe.x),ot.push(xe.y);else for(Ie=0;Ient&&(nt=Vt),or>je&&(je=or),$e.push(Vt),ot.push(or)}var hr=nt-Qe,fr=je-ct;hr>fr?je=ct+hr:nt=Qe+fr;function zr(Vr,Kr,Na,ei,Qa,jt,Jr,na){if(!(isNaN(Na)||isNaN(ei)))if(Vr.leaf){var oa=Vr.x,Di=Vr.y;if(oa!=null)if(I(oa-Na)+I(Di-ei)<.01)Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na);else{var Vi=Vr.point;Vr.x=Vr.y=Vr.point=null,Rr(Vr,Vi,oa,Di,Qa,jt,Jr,na),Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}else Vr.x=Na,Vr.y=ei,Vr.point=Kr}else Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}function Rr(Vr,Kr,Na,ei,Qa,jt,Jr,na){var oa=(Qa+Jr)*.5,Di=(jt+na)*.5,Vi=Na>=oa,en=ei>=Di,bi=en<<1|Vi;Vr.leaf=!1,Vr=Vr.nodes[bi]||(Vr.nodes[bi]=xn()),Vi?Qa=oa:Jr=oa,en?jt=Di:na=Di,zr(Vr,Kr,Na,ei,Qa,jt,Jr,na)}var ea=xn();if(ea.add=function(Vr){zr(ea,Vr,+Pe(Vr,++Ie),+De(Vr,Ie),Qe,ct,nt,je)},ea.visit=function(Vr){Rn(Vr,ea,Qe,ct,nt,je)},ea.find=function(Vr){return hp(ea,Vr[0],Vr[1],Qe,ct,nt,je)},Ie=-1,S==null){for(;++IeZ||De>$||$e=Vt,fr=P>=or,zr=fr<<1|hr,Rr=zr+4;zrP&&(Z=S.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(B=B[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(B,U)})),P=ec.lastIndex;return P=0&&!(B=e.interpolators[P](y,S)););return B}e.interpolators=[function(y,S){var P=typeof S;return(P==="string"?si.has(S.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(S)?af:Yo:S instanceof ma?af:Array.isArray(S)?Wo:P==="object"&&isNaN(S)?sn:Eo)(y,S)}],e.interpolateArray=Wo;function Wo(y,S){var P=[],B=[],U=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=zm.get(P)||Xs,B=Xo.get(B)||Te,Im(B(P.apply(null,t.call(arguments,1))))};function Im(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 Rm(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 Fm(y){return 1-Math.cos(y*Mr)}function qm(y){return Math.pow(2,10*(y-1))}function Wc(y){return 1-Math.sqrt(1-y*y)}function Nm(y,S){var P;return arguments.length<2&&(S=.45),arguments.length?P=S/mr*Math.asin(1/y):(y=1,P=S/4),function(B){return 1+y*Math.pow(2,-10*B)*Math.sin((B-P)*mr/S)}}function Bm(y){return y||(y=1.70158),function(S){return S*S*((y+1)*S-y)}}function Om(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,U=y.l,Z=S.h-P,$=S.c-B,X=S.l-U;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,U+X*ae)+""}}e.interpolateHsl=Um;function Um(y,S){y=e.hsl(y),S=e.hsl(S);var P=y.h,B=y.s,U=y.l,Z=S.h-P,$=S.s-B,X=S.l-U;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 ue(P+Z*ae,B+$*ae,U+X*ae)+""}}e.interpolateLab=Vm;function Vm(y,S){y=e.lab(y),S=e.lab(S);var P=y.l,B=y.a,U=y.b,Z=S.l-P,$=S.a-B,X=S.b-U;return function(ae){return Wt(P+Z*ae,B+$*ae,U+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 vp(B?B.matrix:Lv)})(y)};function vp(y){var S=[y.a,y.b],P=[y.c,y.d],B=Ev(S),U=dp(S,P),Z=Ev(Hm(P,S,-U))||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 mp(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 yp(y,S,P,B){if(y[0]!==S[0]||y[1]!==S[1]){var U=P.push(xu(P)+"scale(",null,",",null,")");B.push({i:U-4,x:Eo(y[0],S[0])},{i:U-2,x:Eo(y[1],S[1])})}else(S[0]!==1||S[1]!==1)&&P.push(xu(P)+"scale("+S+")")}function gp(y,S){var P=[],B=[];return y=e.transform(y),S=e.transform(S),pp(y.translate,S.translate,P,B),Gm(y.rotate,S.rotate,P,B),mp(y.skew,S.skew,P,B),yp(y.scale,S.scale,P,B),y=S=null,function(U){for(var Z=-1,$=B.length,X;++Z<$;)P[(X=B[Z]).i]=X.x(U);return P.join("")}}function Zm(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,Vt=$e.length,or=ot.length,hr=B[0],fr=B[1],zr,Rr;for(je=0;je=0;)Z.push(xe=ye[ae]),xe.parent=X,xe.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(B,X,X.depth)||0),delete X.children;return vs(U,function(Pe){var De,$e;y&&(De=Pe.children)&&De.sort(y),P&&($e=Pe.parent)&&($e.value+=Pe.value)}),$}return B.sort=function(U){return arguments.length?(y=U,B):y},B.children=function(U){return arguments.length?(S=U,B):S},B.value=function(U){return arguments.length?(P=U,B):P},B.revalue=function(U){return P&&(nf(U,function(Z){Z.children&&(Z.value=0)}),vs(U,function(Z){var $;Z.children||(Z.value=+P.call(B,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},B};function Sl(y,S){return e.rebind(y,S,"sort","children","value"),y.nodes=y,y.links=bp,y}function nf(y,S){for(var P=[y];(y=P.pop())!=null;)if(S(y),(U=y.children)&&(B=U.length))for(var B,U;--B>=0;)P.push(U[B])}function vs(y,S){for(var P=[y],B=[];(y=P.pop())!=null;)if(B.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),B.push(X)}for($=0;$B&&(P=S,B=U);return P}function qi(y){return y.reduce(Jm,0)}function Jm(y,S){return y+S[1]}e.layout.histogram=function(){var y=!0,S=Number,P=Ap,B=Qc;function U(Z,De){for(var X=[],ae=Z.map(S,this),ye=P.call(this,ae,De),xe=B.call(this,ye,ae,De),Pe,De=-1,$e=ae.length,ot=xe.length-1,Ie=y?1:1/$e,He;++De0)for(De=-1;++De<$e;)He=ae[De],He>=ye[0]&&He<=ye[1]&&(Pe=X[e.bisect(xe,He,1,ot)-1],Pe.y+=Ie,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(S=Z,U):S},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(B=typeof Z=="number"?function($){return Rv($,Z)}:fa(Z),U):B},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};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],U=(y[1]-B)/S,Z=[];++P<=S;)Z[P]=U*P+B;return Z}function Ap(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(sf),S=0,P=[1,1],B;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],xe=P[1],Pe=B==null?Math.sqrt:typeof B=="function"?B:function(){return B};if(ae.x=ae.y=0,vs(ae,function($e){$e.r=+Pe($e.value)}),vs(ae,rc),S){var De=S*(B?1:Math.max(2*ae.r/ye,2*ae.r/xe))/2;vs(ae,function($e){$e.r+=De}),vs(ae,rc),vs(ae,function($e){$e.r-=De})}return Cl(ae,ye/2,xe/2,B?1:1/Math.max(2*ae.r/ye,2*ae.r/xe)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(B=Z==null||typeof Z=="function"?Z:+Z,U):B},U.padding=function(Z){return arguments.length?(S=+Z,U):S},Sl(U,y)};function sf(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,U=y.r+S.r;return .999*U*U>P*P+B*B}function rc(y){if(!(S=y.children)||!(De=S.length))return;var S,P=1/0,B=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,xe,Pe,De;function $e(je){P=Math.min(je.x-je.r,P),B=Math.max(je.x+je.r,B),U=Math.min(je.y-je.r,U),Z=Math.max(je.y+je.r,Z)}if(S.forEach(Js),$=S[0],$.x=-$.r,$.y=0,$e($),De>1&&(X=S[1],X.x=X.r,X.y=0,$e(X),De>2))for(ae=S[2],El($,X,ae),$e(ae),bu($,ae),$._pack_prev=ae,bu(ae,X),X=$._pack_next,ye=3;yeHe.x&&(He=Vt),Vt.depth>Qe.depth&&(Qe=Vt)});var ct=S(Ie,He)/2-Ie.x,nt=P[0]/(He.x+S(He,Ie)/2+ct),je=P[1]/(Qe.depth||1);nf($e,function(Vt){Vt.x=(Vt.x+ct)*nt,Vt.y=Vt.depth*je})}return De}function Z(xe){for(var Pe={A:null,children:[xe]},De=[Pe],$e;($e=De.pop())!=null;)for(var ot=$e.children,Ie,He=0,Qe=ot.length;He0&&(Ll(Km(Ie,xe,De),xe,Vt),Qe+=Vt,ct+=Vt),nt+=Ie.m,Qe+=$e.m,je+=He.m,ct+=ot.m;Ie&&!ks(ot)&&(ot.t=Ie,ot.m+=nt-ct),$e&&!Ss(He)&&(He.t=$e,He.m+=Qe-je,De=xe)}return De}function ye(xe){xe.x*=P[0],xe.y=xe.depth*P[1]}return U.separation=function(xe){return arguments.length?(S=xe,U):S},U.size=function(xe){return arguments.length?(B=(P=xe)==null?ye:null,U):B?null:P},U.nodeSize=function(xe){return arguments.length?(B=(P=xe)==null?null:ye,U):B?P:null},Sl(U,y)};function Ks(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 Mp(y){for(var S=0,P=0,B=y.children,U=B.length,Z;--U>=0;)Z=B[U],Z.z+=S,Z.m+=S,S+=Z.s+(P+=Z.c)}function Km(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=Ks,P=[1,1],B=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,xe=0;vs(ae,function(Ie){var He=Ie.children;He&&He.length?(Ie.x=$m(He),Ie.y=Qm(He)):(Ie.x=ye?xe+=S(Ie,ye):0,Ie.y=0,ye=Ie)});var Pe=Sp(ae),De=kp(ae),$e=Pe.x-S(Pe,De)/2,ot=De.x+S(De,Pe)/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)/(ot-$e)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(S=Z,U):S},U.size=function(Z){return arguments.length?(B=(P=Z)==null,U):B?null:P},U.nodeSize=function(Z){return arguments.length?(B=(P=Z)!=null,U):B?P:null},Sl(U,y)};function Qm(y){return 1+e.max(y,function(S){return S.y})}function $m(y){return y.reduce(function(S,P){return S+P.x},0)/y.length}function Sp(y){var S=y.children;return S&&S.length?Sp(S[0]):y}function kp(y){var S=y.children,P;return S&&(P=S.length)?kp(S[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),S=Math.round,P=[1,1],B=null,U=qv,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(Ie,He){for(var Qe=-1,ct=Ie.length,nt,je;++Qe0;)ct.push(je=nt[fr-1]),ct.area+=je.area,X!=="squarify"||(or=De(ct,hr))<=Vt?(nt.pop(),Vt=or):(ct.area-=ct.pop().area,$e(ct,hr,Qe,!1),hr=Math.min(Qe.dx,Qe.dy),ct.length=ct.area=0,Vt=1/0);ct.length&&($e(ct,hr,Qe,!0),ct.length=ct.area=0),He.forEach(xe)}}function Pe(Ie){var He=Ie.children;if(He&&He.length){var Qe=U(Ie),ct=He.slice(),nt,je=[];for(ye(ct,Qe.dx*Qe.dy/Ie.value),je.area=0;nt=ct.pop();)je.push(nt),je.area+=nt.area,nt.z!=null&&($e(je,nt.z?Qe.dx:Qe.dy,Qe,!ct.length),je.length=je.area=0);He.forEach(Pe)}}function De(Ie,He){for(var Qe=Ie.area,ct,nt=0,je=1/0,Vt=-1,or=Ie.length;++Vtnt&&(nt=ct));return Qe*=Qe,He*=He,Qe?Math.max(He*nt*ae/Qe,Qe/(He*je*ae)):1/0}function $e(Ie,He,Qe,ct){var nt=-1,je=Ie.length,Vt=Qe.x,or=Qe.y,hr=He?S(Ie.area/He):0,fr;if(He==Qe.dx){for((ct||hr>Qe.dy)&&(hr=Qe.dy);++ntQe.dx)&&(hr=Qe.dx);++nt1);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?ey:Cp,ye=B?hs:Zm;return U=ae(y,S,ye,P),Z=ae(S,y,ye,ln),X}function X(ae){return U(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,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return Pp(y,ae),$()},X.copy=function(){return Lp(y,S,P,B)},$()}function Dp(y,S){return e.rebind(y,S,"range","rangeRound","interpolate","clamp")}function Pp(y,S){return Bv(y,Ep(Ov(y,S)[2])),Bv(y,Ep(Ov(y,S)[2])),y}function Ov(y,S){S==null&&(S=10);var P=ac(y),B=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(B/S)/Math.LN10)),Z=S/B*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,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 ic(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 U(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(U(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(U)),$):B},$.base=function(X){return arguments.length?(S=+X,y.domain(B.map(U)),$):S},$.nice=function(){var X=Bv(B.map(U),P?Math:eh);return y.domain(X),B=X.map(Z),$},$.ticks=function(){var X=ac(B),ae=[],ye=X[0],xe=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(xe)),$e=S%1?2:S;if(isFinite(De-Pe)){if(P){for(;Pe0;ot--)ae.push(Z(Pe)*ot);for(Pe=0;ae[Pe]xe;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Vv(y.copy(),S,P,B)},Dp($,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),U=rh(1/S);function Z($){return y(B($))}return Z.invert=function($){return U(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(Pp(P,$))},Z.exponent=function($){return arguments.length?(B=rh(S=$),U=rh(1/S),y.domain(P.map(B)),Z):S},Z.copy=function(){return th(y.copy(),S,P)},Dp(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,U;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(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ye=X.length,xe;++ae0?P[Z-1]:y[0],ZDe?0:1;if(xe=Ar)return ae(xe,ot)+(ye?ae(ye,1-ot):"")+"Z";var Ie,He,Qe,ct,nt=0,je=0,Vt,or,hr,fr,zr,Rr,ea,Vr,Kr=[];if((ct=(+$.apply(this,arguments)||0)/2)&&(Qe=B===zl?Math.sqrt(ye*ye+xe*xe):+B.apply(this,arguments),ot||(je*=-1),xe&&(je=vi(Qe/xe*Math.sin(ct))),ye&&(nt=vi(Qe/ye*Math.sin(ct)))),xe){Vt=xe*Math.cos(Pe+je),or=xe*Math.sin(Pe+je),hr=xe*Math.cos(De-je),fr=xe*Math.sin(De-je);var Na=Math.abs(De-Pe-2*je)<=Tt?0:1;if(je&&Il(Vt,or,hr,fr)===ot^Na){var ei=(Pe+De)/2;Vt=xe*Math.cos(ei),or=xe*Math.sin(ei),hr=fr=null}}else Vt=or=0;if(ye){zr=ye*Math.cos(De-nt),Rr=ye*Math.sin(De-nt),ea=ye*Math.cos(Pe+nt),Vr=ye*Math.sin(Pe+nt);var Qa=Math.abs(Pe-De+2*nt)<=Tt?0:1;if(nt&&Il(zr,Rr,ea,Vr)===1-ot^Qa){var jt=(Pe+De)/2;zr=ye*Math.cos(jt),Rr=ye*Math.sin(jt),ea=Vr=null}}else zr=Rr=0;if($e>Ve&&(Ie=Math.min(Math.abs(xe-ye)/2,+P.apply(this,arguments)))>.001){He=ye0?0:1}function Au(y,S,P,B,U){var Z=y[0]-S[0],$=y[1]-S[1],X=(U?B:-B)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,xe=y[0]+ae,Pe=y[1]+ye,De=S[0]+ae,$e=S[1]+ye,ot=(xe+De)/2,Ie=(Pe+$e)/2,He=De-xe,Qe=$e-Pe,ct=He*He+Qe*Qe,nt=P-B,je=xe*$e-De*Pe,Vt=(Qe<0?-1:1)*Math.sqrt(Math.max(0,nt*nt*ct-je*je)),or=(je*Qe-He*Vt)/ct,hr=(-je*He-Qe*Vt)/ct,fr=(je*Qe+He*Vt)/ct,zr=(-je*He+Qe*Vt)/ct,Rr=or-ot,ea=hr-Ie,Vr=fr-ot,Kr=zr-Ie;return Rr*Rr+ea*ea>Vr*Vr+Kr*Kr&&(or=fr,hr=zr),[[or-ae,hr-ye],[or*P/nt,hr*P/nt]]}function oc(){return!0}function Cs(y){var S=pu,P=ml,B=oc,U=jo,Z=U.key,$=.7;function X(ae){var ye=[],xe=[],Pe=-1,De=ae.length,$e,ot=fa(S),Ie=fa(P);function He(){ye.push("M",U(y(xe),$))}for(;++Pe1?y.join("L"):y+"Z"}function ff(y){return y.join("L")+"Z"}function ry(y){for(var S=0,P=y.length,B=y[0],U=[B[0],",",B[1]];++S1&&U.push("H",B[0]),U.join("")}function cf(y){for(var S=0,P=y.length,B=y[0],U=[B[0],",",B[1]];++S1){X=S[1],Z=y[ae],ae++,B+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*B,$[X+1]=Z*U));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 Op(y){return y.length<3?jo(y):y[0]+hf(y,oy(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,U,Z;++PTt)+",1 "+Pe}function ye(xe,Pe,De,$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?(U=fa(xe),Z):U},Z};function Up(y){return y.radius}e.svg.diagonal=function(){var y=sh,S=Xv,P=jv;function B(U,Z){var $=y.call(this,U,Z),X=S.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return B.source=function(U){return arguments.length?(y=fa(U),B):y},B.target=function(U){return arguments.length?(S=fa(U),B):S},B.projection=function(U){return arguments.length?(P=U,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(Vp(S=B)):S},y};function Vp(y){return function(){var S=y.apply(this,arguments),P=S[0],B=S[1]-Mr;return[P*Math.cos(B),P*Math.sin(B)]}}e.svg.symbol=function(){var y=mf,S=Hp;function P(B,U){return(uh.get(y.call(this,B,U))||lh)(S.call(this,B,U))}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 Hp(){return 64}function mf(){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);yt.transition=function(y){for(var S=uo||++Li,P=fi(y),B=[],U,Z,$=Ls||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ct].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=U.time,ae=Gc(De,0,X),$=Z[B]={tween:new z,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:S},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),S=Fl,P=6,B=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var xe=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),$e=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,ot=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Te:X,Ie=xe.selectAll(".tick").data($e,De),He=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ve),Qe=e.transition(Ie.exit()).style("opacity",Ve).remove(),ct=e.transition(Ie.order()).style("opacity",1),nt=Math.max(P,0)+U,je,Vt=$c(De),or=xe.selectAll(".domain").data([0]),hr=(or.enter().append("path").attr("class","domain"),e.transition(or));He.append("line"),He.append("text");var fr=He.select("line"),zr=ct.select("line"),Rr=Ie.select("text").text(ot),ea=He.select("text"),Vr=ct.select("text"),Kr=S==="top"||S==="left"?-1:1,Na,ei,Qa,jt;if(S==="bottom"||S==="top"?(je=gf,Na="x",Qa="y",ei="x2",jt="y2",Rr.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Vt[0]+","+Kr*B+"V0H"+Vt[1]+"V"+Kr*B)):(je=ql,Na="y",Qa="x",ei="y2",jt="x2",Rr.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),hr.attr("d","M"+Kr*B+","+Vt[0]+"H0V"+Vt[1]+"H"+Kr*B)),fr.attr(jt,Kr*P),ea.attr(Qa,Kr*nt),zr.attr(ei,0).attr(jt,Kr*P),Vr.attr(Na,0).attr(Qa,Kr*nt),De.rangeBand){var Jr=De,na=Jr.rangeBand()/2;Pe=De=function(oa){return Jr(oa)+na}}else Pe.rangeBand?Pe=De:Qe.call(je,De,Pe);He.call(je,Pe,De),ct.call(je,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(S=ye in lc?ye+"":Fl,ae):S},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var xe=arguments.length;return xe?(P=+ye,B=+arguments[xe-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(B=+ye,ae):B},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",lc={top:1,right:1,bottom:1,left:1};function gf(y,S,P){y.attr("transform",function(B){var U=S(B);return"translate("+(isFinite(U)?U:P(B))+",0)"})}function ql(y,S,P){y.attr("transform",function(B){var U=S(B);return"translate(0,"+(isFinite(U)?U:P(B))+")"})}e.svg.brush=function(){var y=it(xe,"brushstart","brush","brushend"),S=null,P=null,B=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=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",ot).on("touchstart.brush",ot),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 ct=He.selectAll(".resize").data(ye,Te);ct.exit().remove(),ct.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"),ct.style("display",xe.empty()?"none":null);var nt=e.transition(He),je=e.transition(Qe),Vt;S&&(Vt=$c(S),je.attr("x",Vt[0]).attr("width",Vt[1]-Vt[0]),De(nt)),P&&(Vt=$c(P),je.attr("y",Vt[0]).attr("height",Vt[1]-Vt[0]),$e(nt)),Pe(nt)})}xe.event=function(Ie){Ie.each(function(){var He=y.of(this,arguments),Qe={x:B,y:U,i:Z,j:$},ct=this.__chart__||Qe;this.__chart__=Qe,uo?e.select(this).transition().each("start.brush",function(){Z=ct.i,$=ct.j,B=ct.x,U=ct.y,He({type:"brushstart"})}).tween("brush:brush",function(){var nt=Wo(B,Qe.x),je=Wo(U,Qe.y);return Z=$=null,function(Vt){B=Qe.x=nt(Vt),U=Qe.y=je(Vt),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 Pe(Ie){Ie.selectAll(".resize").attr("transform",function(He){return"translate("+B[+/e$/.test(He)]+","+U[+/^s/.test(He)]+")"})}function De(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",U[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function ot(){var Ie=this,He=e.select(e.event.target),Qe=y.of(Ie,arguments),ct=e.select(Ie),nt=He.datum(),je=!/^(n|s)$/.test(nt)&&S,Vt=!/^(e|w)$/.test(nt)&&P,or=He.classed("extent"),hr=yr(Ie),fr,zr=e.mouse(Ie),Rr,ea=e.select(s(Ie)).on("keydown.brush",Na).on("keyup.brush",ei);if(e.event.changedTouches?ea.on("touchmove.brush",Qa).on("touchend.brush",Jr):ea.on("mousemove.brush",Qa).on("mouseup.brush",Jr),ct.interrupt().selectAll("*").interrupt(),or)zr[0]=B[0]-zr[0],zr[1]=U[0]-zr[1];else if(nt){var Vr=+/w$/.test(nt),Kr=+/^n/.test(nt);Rr=[B[1-Vr]-zr[0],U[1-Kr]-zr[1]],zr[0]=B[Vr],zr[1]=U[Kr]}else e.event.altKey&&(fr=zr.slice());ct.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",He.style("cursor")),Qe({type:"brushstart"}),Qa();function Na(){e.event.keyCode==32&&(or||(fr=null,zr[0]-=B[1],zr[1]-=U[1],or=2),Xe())}function ei(){e.event.keyCode==32&&or==2&&(zr[0]+=B[1],zr[1]+=U[1],or=0,Xe())}function Qa(){var na=e.mouse(Ie),oa=!1;Rr&&(na[0]+=Rr[0],na[1]+=Rr[1]),or||(e.event.altKey?(fr||(fr=[(B[0]+B[1])/2,(U[0]+U[1])/2]),zr[0]=B[+(na[0]{(function(e,t){typeof n_=="object"&&typeof E7!="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 Et(ht){return Be(ht=arguments.length===0?new Date:new Date(+ht)),ht}return Et.floor=function(ht){return Be(ht=new Date(+ht)),ht},Et.ceil=function(ht){return Be(ht=new Date(ht-1)),ut(ht,1),Be(ht),ht},Et.round=function(ht){var pt=Et(ht),Ot=Et.ceil(ht);return ht-pt0))return er;do er.push(Ht=new Date(+ht)),ut(ht,Ot),Be(ht);while(Ht=pt)for(;Be(pt),!ht(pt);)pt.setTime(pt-1)},function(pt,Ot){if(pt>=pt)if(Ot<0)for(;++Ot<=0;)for(;ut(pt,-1),!ht(pt););else for(;--Ot>=0;)for(;ut(pt,1),!ht(pt););})},sr&&(Et.count=function(ht,pt){return t.setTime(+ht),r.setTime(+pt),Be(t),Be(r),Math.floor(sr(t,r))},Et.every=function(ht){return ht=Math.floor(ht),!isFinite(ht)||!(ht>0)?null:ht>1?Et.filter(Pr?function(pt){return Pr(pt)%ht===0}:function(pt){return Et.count(0,pt)%ht===0}):Et}),Et}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,f=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*f)},function(Be,ut){return(ut-Be)/f},function(Be){return Be.getMinutes()}),C=M.range,E=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*f)},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())*f)/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())*f)/m})}var z=q(0),N=q(1),H=q(2),V=q(3),W=q(4),J=q(5),ee=q(6),ie=z.range,oe=N.range,fe=H.range,le=V.range,Te=W.range,Se=J.range,Me=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()}),pe=Ae.range,ke=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()});ke.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 Ee=ke.range,Xe=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ut){Be.setTime(+Be+ut*f)},function(Be,ut){return(ut-Be)/f},function(Be){return Be.getUTCMinutes()}),lt=Xe.range,it=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()}),_t=it.range,Ye=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=Ye.range;function st(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 dt=st(0),It=st(1),yt=st(2),de=st(3),ze=st(4),_e=st(5),Ue=st(6),at=dt.range,Je=It.range,Ct=yt.range,wt=de.range,xt=ze.range,qt=_e.range,Ut=Ue.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()}),Mt=Dt.range,Zt=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()});Zt.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 Yt=Zt.range;e.timeDay=I,e.timeDays=O,e.timeFriday=J,e.timeFridays=Se,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=pe,e.timeSaturday=ee,e.timeSaturdays=Me,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ie,e.timeThursday=W,e.timeThursdays=Te,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=le,e.timeWeek=z,e.timeWeeks=ie,e.timeYear=ke,e.timeYears=Ee,e.utcDay=Ye,e.utcDays=kt,e.utcFriday=_e,e.utcFridays=qt,e.utcHour=it,e.utcHours=_t,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=Xe,e.utcMinutes=lt,e.utcMonday=It,e.utcMondays=Je,e.utcMonth=Dt,e.utcMonths=Mt,e.utcSaturday=Ue,e.utcSaturdays=Ut,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=dt,e.utcSundays=at,e.utcThursday=ze,e.utcThursdays=xt,e.utcTuesday=yt,e.utcTuesdays=Ct,e.utcWednesday=de,e.utcWednesdays=wt,e.utcWeek=dt,e.utcWeeks=at,e.utcYear=Zt,e.utcYears=Yt,Object.defineProperty(e,"__esModule",{value:!0})})});var y0=me((o_,L7)=>{(function(e,t){typeof o_=="object"&&typeof L7!="undefined"?t(o_,Z3()):(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 Ve=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ve.setFullYear(Fe.y),Ve}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 Ve=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ve.setUTCFullYear(Fe.y),Ve}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ve,bt){return{y:Fe,m:Ve,d:bt,H:0,M:0,S:0,L:0}}function s(Fe){var Ve=Fe.dateTime,bt=Fe.date,Tt=Fe.time,mr=Fe.periods,Ar=Fe.days,Mr=Fe.shortDays,Gr=Fe.months,pa=Fe.shortMonths,Ca=T(mr),ii=M(mr),wi=T(Ar),vi=M(Ar),Fi=T(Mr),Gi=M(Mr),vn=T(Gr),nn=M(Gr),Ki=T(pa),ir=M(pa),oi={a:Pt,A:Ft,b:tr,B:Wt,c:null,d:Ae,e:Ae,f:lt,H:pe,I:ke,j:Ee,L:Xe,m:it,M:_t,p:Sr,q:Zr,Q:pt,s:Ot,S:Ye,u:kt,U:st,V:dt,w:It,W:yt,x:null,X:null,y:de,Y:ze,Z:_e,"%":ht},Sa={a:Or,A:ca,b:ua,B:qa,c:null,d:Ue,e:Ue,f:xt,H:at,I:Je,j:Ct,L:wt,m:qt,M:Ut,p:ri,q:Yr,Q:pt,s:Ot,S:Dt,u:Mt,U:Zt,V:Yt,w:Be,W:ut,x:null,X:null,y:sr,Y:Pr,Z:Et,"%":ht},la={a:ue,A:he,b:Le,B:Ne,c:et,d:W,e:W,f:le,H:ee,I:ee,j:J,L:fe,m:V,M:ie,p:te,q:H,Q:Se,s:Me,S:oe,u:E,U:L,V:I,w:C,W:O,x:We,X:mt,y:z,Y:q,Z:N,"%":Te};oi.x=Ci(bt,oi),oi.X=Ci(Tt,oi),oi.c=Ci(Ve,oi),Sa.x=Ci(bt,Sa),Sa.X=Ci(Tt,Sa),Sa.c=Ci(Ve,Sa);function Ci(gr,$r){return function(ga){var nr=[],Ti=-1,Ea=0,si=gr.length,fa,In,Co;for(ga instanceof Date||(ga=new Date(+ga));++Ti53)return null;"w"in nr||(nr.w=1),"Z"in nr?(Ea=i(a(nr.y,0,1)),si=Ea.getUTCDay(),Ea=si>4||si===0?t.utcMonday.ceil(Ea):t.utcMonday(Ea),Ea=t.utcDay.offset(Ea,(nr.V-1)*7),nr.y=Ea.getUTCFullYear(),nr.m=Ea.getUTCMonth(),nr.d=Ea.getUTCDate()+(nr.w+6)%7):(Ea=r(a(nr.y,0,1)),si=Ea.getDay(),Ea=si>4||si===0?t.timeMonday.ceil(Ea):t.timeMonday(Ea),Ea=t.timeDay.offset(Ea,(nr.V-1)*7),nr.y=Ea.getFullYear(),nr.m=Ea.getMonth(),nr.d=Ea.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),si="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-(si+5)%7:nr.w+nr.U*7-(si+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,i(nr)):r(nr)}}function se(gr,$r,ga,nr){for(var Ti=0,Ea=$r.length,si=ga.length,fa,In;Ti=si)return-1;if(fa=$r.charCodeAt(Ti++),fa===37){if(fa=$r.charAt(Ti++),In=la[fa in l?$r.charAt(Ti++):fa],!In||(nr=In(gr,ga,nr))<0)return-1}else if(fa!=ga.charCodeAt(nr++))return-1}return nr}function te(gr,$r,ga){var nr=Ca.exec($r.slice(ga));return nr?(gr.p=ii[nr[0].toLowerCase()],ga+nr[0].length):-1}function ue(gr,$r,ga){var nr=Fi.exec($r.slice(ga));return nr?(gr.w=Gi[nr[0].toLowerCase()],ga+nr[0].length):-1}function he(gr,$r,ga){var nr=wi.exec($r.slice(ga));return nr?(gr.w=vi[nr[0].toLowerCase()],ga+nr[0].length):-1}function Le(gr,$r,ga){var nr=Ki.exec($r.slice(ga));return nr?(gr.m=ir[nr[0].toLowerCase()],ga+nr[0].length):-1}function Ne(gr,$r,ga){var nr=vn.exec($r.slice(ga));return nr?(gr.m=nn[nr[0].toLowerCase()],ga+nr[0].length):-1}function et(gr,$r,ga){return se(gr,Ve,$r,ga)}function We(gr,$r,ga){return se(gr,bt,$r,ga)}function mt(gr,$r,ga){return se(gr,Tt,$r,ga)}function Pt(gr){return Mr[gr.getDay()]}function Ft(gr){return Ar[gr.getDay()]}function tr(gr){return pa[gr.getMonth()]}function Wt(gr){return Gr[gr.getMonth()]}function Sr(gr){return mr[+(gr.getHours()>=12)]}function Zr(gr){return 1+~~(gr.getMonth()/3)}function Or(gr){return Mr[gr.getUTCDay()]}function ca(gr){return Ar[gr.getUTCDay()]}function ua(gr){return pa[gr.getUTCMonth()]}function qa(gr){return Gr[gr.getUTCMonth()]}function ri(gr){return mr[+(gr.getUTCHours()>=12)]}function Yr(gr){return 1+~~(gr.getUTCMonth()/3)}return{format:function(gr){var $r=Ci(gr+="",oi);return $r.toString=function(){return gr},$r},parse:function(gr){var $r=ma(gr+="",!1);return $r.toString=function(){return gr},$r},utcFormat:function(gr){var $r=Ci(gr+="",Sa);return $r.toString=function(){return gr},$r},utcParse:function(gr){var $r=ma(gr+="",!0);return $r.toString=function(){return gr},$r}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ve,bt){var Tt=Fe<0?"-":"",mr=(Tt?-Fe:Fe)+"",Ar=mr.length;return Tt+(Ar68?1900:2e3),bt+Tt[0].length):-1}function N(Fe,Ve,bt){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ve.slice(bt,bt+6));return Tt?(Fe.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),bt+Tt[0].length):-1}function H(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+1));return Tt?(Fe.q=Tt[0]*3-3,bt+Tt[0].length):-1}function V(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.m=Tt[0]-1,bt+Tt[0].length):-1}function W(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.d=+Tt[0],bt+Tt[0].length):-1}function J(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+3));return Tt?(Fe.m=0,Fe.d=+Tt[0],bt+Tt[0].length):-1}function ee(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.H=+Tt[0],bt+Tt[0].length):-1}function ie(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.M=+Tt[0],bt+Tt[0].length):-1}function oe(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+2));return Tt?(Fe.S=+Tt[0],bt+Tt[0].length):-1}function fe(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+3));return Tt?(Fe.L=+Tt[0],bt+Tt[0].length):-1}function le(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt,bt+6));return Tt?(Fe.L=Math.floor(Tt[0]/1e3),bt+Tt[0].length):-1}function Te(Fe,Ve,bt){var Tt=h.exec(Ve.slice(bt,bt+1));return Tt?bt+Tt[0].length:-1}function Se(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt));return Tt?(Fe.Q=+Tt[0],bt+Tt[0].length):-1}function Me(Fe,Ve,bt){var Tt=f.exec(Ve.slice(bt));return Tt?(Fe.s=+Tt[0],bt+Tt[0].length):-1}function Ae(Fe,Ve){return m(Fe.getDate(),Ve,2)}function pe(Fe,Ve){return m(Fe.getHours(),Ve,2)}function ke(Fe,Ve){return m(Fe.getHours()%12||12,Ve,2)}function Ee(Fe,Ve){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ve,3)}function Xe(Fe,Ve){return m(Fe.getMilliseconds(),Ve,3)}function lt(Fe,Ve){return Xe(Fe,Ve)+"000"}function it(Fe,Ve){return m(Fe.getMonth()+1,Ve,2)}function _t(Fe,Ve){return m(Fe.getMinutes(),Ve,2)}function Ye(Fe,Ve){return m(Fe.getSeconds(),Ve,2)}function kt(Fe){var Ve=Fe.getDay();return Ve===0?7:Ve}function st(Fe,Ve){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ve,2)}function dt(Fe,Ve){var bt=Fe.getDay();return Fe=bt>=4||bt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ve,2)}function It(Fe){return Fe.getDay()}function yt(Fe,Ve){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ve,2)}function de(Fe,Ve){return m(Fe.getFullYear()%100,Ve,2)}function ze(Fe,Ve){return m(Fe.getFullYear()%1e4,Ve,4)}function _e(Fe){var Ve=Fe.getTimezoneOffset();return(Ve>0?"-":(Ve*=-1,"+"))+m(Ve/60|0,"0",2)+m(Ve%60,"0",2)}function Ue(Fe,Ve){return m(Fe.getUTCDate(),Ve,2)}function at(Fe,Ve){return m(Fe.getUTCHours(),Ve,2)}function Je(Fe,Ve){return m(Fe.getUTCHours()%12||12,Ve,2)}function Ct(Fe,Ve){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ve,3)}function wt(Fe,Ve){return m(Fe.getUTCMilliseconds(),Ve,3)}function xt(Fe,Ve){return wt(Fe,Ve)+"000"}function qt(Fe,Ve){return m(Fe.getUTCMonth()+1,Ve,2)}function Ut(Fe,Ve){return m(Fe.getUTCMinutes(),Ve,2)}function Dt(Fe,Ve){return m(Fe.getUTCSeconds(),Ve,2)}function Mt(Fe){var Ve=Fe.getUTCDay();return Ve===0?7:Ve}function Zt(Fe,Ve){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ve,2)}function Yt(Fe,Ve){var bt=Fe.getUTCDay();return Fe=bt>=4||bt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ve,2)}function Be(Fe){return Fe.getUTCDay()}function ut(Fe,Ve){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ve,2)}function sr(Fe,Ve){return m(Fe.getUTCFullYear()%100,Ve,2)}function Pr(Fe,Ve){return m(Fe.getUTCFullYear()%1e4,Ve,4)}function Et(){return"+0000"}function ht(){return"%"}function pt(Fe){return+Fe}function Ot(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 Kt="%Y-%m-%dT%H:%M:%S.%LZ";function pr(Fe){return Fe.toISOString()}var yr=Date.prototype.toISOString?pr:e.utcFormat(Kt);function ur(Fe){var Ve=new Date(Fe);return isNaN(Ve)?null:Ve}var Lt=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Kt);e.isoFormat=yr,e.isoParse=Lt,e.timeFormatDefaultLocale=Ht,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var Y3=me((s_,D7)=>{(function(e,t){typeof s_=="object"&&typeof D7!="undefined"?t(s_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(s_,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,ee=V.slice(0,J);return[ee.length>1?ee[0]+ee.slice(2):ee,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,ee){for(var ie=J.length,oe=[],fe=0,le=V[0],Te=0;ie>0&&le>0&&(Te+le+1>ee&&(le=Math.max(1,ee-Te)),oe.push(J.substring(ie-=le,ie+le)),!((Te+=le+1)>ee));)le=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);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]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.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(V){e:for(var W=V.length,J=1,ee=-1,ie;J0&&(ee=0);break}return ee>0?V.slice(0,ee)+V.slice(ie+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var ee=J[0],ie=J[1],oe=ie-(m=Math.max(-8,Math.min(8,Math.floor(ie/3)))*3)+1,fe=ee.length;return oe===fe?ee:oe>fe?ee+new Array(oe-fe+1).join("0"):oe>0?ee.slice(0,oe)+"."+ee.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";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(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var E=Array.prototype.map,L=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(E.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",ee=V.currency===void 0?"":V.currency[1]+"",ie=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(E.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",le=V.minus===void 0?"-":V.minus+"",Te=V.nan===void 0?"NaN":V.nan+"";function Se(Ae){Ae=f(Ae);var pe=Ae.fill,ke=Ae.align,Ee=Ae.sign,Xe=Ae.symbol,lt=Ae.zero,it=Ae.width,_t=Ae.comma,Ye=Ae.precision,kt=Ae.trim,st=Ae.type;st==="n"?(_t=!0,st="g"):M[st]||(Ye===void 0&&(Ye=12),kt=!0,st="g"),(lt||pe==="0"&&ke==="=")&&(lt=!0,pe="0",ke="=");var dt=Xe==="$"?J:Xe==="#"&&/[boxX]/.test(st)?"0"+st.toLowerCase():"",It=Xe==="$"?ee:/[%p]/.test(st)?fe:"",yt=M[st],de=/[defgprs%]/.test(st);Ye=Ye===void 0?6:/[gprs]/.test(st)?Math.max(1,Math.min(21,Ye)):Math.max(0,Math.min(20,Ye));function ze(_e){var Ue=dt,at=It,Je,Ct,wt;if(st==="c")at=yt(_e)+at,_e="";else{_e=+_e;var xt=_e<0||1/_e<0;if(_e=isNaN(_e)?Te:yt(Math.abs(_e),Ye),kt&&(_e=v(_e)),xt&&+_e==0&&Ee!=="+"&&(xt=!1),Ue=(xt?Ee==="("?Ee:le:Ee==="-"||Ee==="("?"":Ee)+Ue,at=(st==="s"?L[8+m/3]:"")+at+(xt&&Ee==="("?")":""),de){for(Je=-1,Ct=_e.length;++Jewt||wt>57){at=(wt===46?ie+_e.slice(Je+1):_e.slice(Je))+at,_e=_e.slice(0,Je);break}}}_t&&!lt&&(_e=W(_e,1/0));var qt=Ue.length+_e.length+at.length,Ut=qt>1)+Ue+_e+at+Ut.slice(qt);break;default:_e=Ut+Ue+_e+at;break}return oe(_e)}return ze.toString=function(){return Ae+""},ze}function Me(Ae,pe){var ke=Se((Ae=f(Ae),Ae.type="f",Ae)),Ee=Math.max(-8,Math.min(8,Math.floor(i(pe)/3)))*3,Xe=Math.pow(10,-Ee),lt=L[8+Ee/3];return function(it){return ke(Xe*it)+lt}}return{format:Se,formatPrefix:Me}}var O;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return O=I(V),e.format=O.format,e.formatPrefix=O.formatPrefix,O}function z(V){return Math.max(0,-i(Math.abs(V)))}function N(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=f,e.precisionFixed=z,e.precisionPrefix=N,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var z7=me((jme,P7)=>{"use strict";P7.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 Da=me((Jme,I7)=>{"use strict";var pj=z7();I7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&pj(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=me((Kme,R7)=>{"use strict";R7.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 W3=me((l_,F7)=>{(function(e,t){typeof l_=="object"&&typeof F7!="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[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[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 f=l.length*.75,h=l.length,v,m=0,_,T,M,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var E=new ArrayBuffer(f),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 yc=me((Qme,q7)=>{"use strict";q7.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 al=me(zu=>{"use strict";var mj=W3().decode,yj=yc(),X3=Array.isArray,gj=ArrayBuffer,_j=DataView;function N7(e){return gj.isView(e)&&!(e instanceof _j)}zu.isTypedArray=N7;function u_(e){return X3(e)||N7(e)}zu.isArrayOrTypedArray=u_;function xj(e){return!u_(e[0])}zu.isArray1D=xj;zu.ensureArray=function(e,t){return X3(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=bj(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=mj(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,M=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var O7=Da(),K3=al().isArrayOrTypedArray;G7.exports=function(t,r){if(O7(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var g0=Ey(),Sj=/^\w*$/,kj=0,Z7=1,f_=2,Y7=3,ld=4;W7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=g0(t,r),l=f.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 Cj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Ej=/^[^\.\[\]]+$/;j7.exports=function(e,t){for(;t;){var r=e.match(Cj);if(r)e=r[1];else if(e.match(Ej))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_=me((aye,K7)=>{"use strict";var Lj=Da();K7.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 Lj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var e8=me((iye,$7)=>{"use strict";var Q7=al().isArrayOrTypedArray,Ly=yc();$7.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(Q7(a)&&Q7(s)&&Ly(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function Dj(e,t){var r=e%t;return r<0?r+t:r}function Pj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}t8.exports={mod:Dj,modHalf:Pj}});var Mf=me((oye,h_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(de,ze){if(de=de||"",ze=ze||{},de instanceof h)return de;if(!(this instanceof h))return new h(de,ze);var _e=v(de);this._originalInput=de,this._r=_e.r,this._g=_e.g,this._b=_e.b,this._a=_e.a,this._roundA=a(100*this._a)/100,this._format=ze.format||_e.format,this._gradientType=ze.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=_e.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(),ze,_e,Ue,at,Je,Ct;return ze=de.r/255,_e=de.g/255,Ue=de.b/255,ze<=.03928?at=ze/12.92:at=e.pow((ze+.055)/1.055,2.4),_e<=.03928?Je=_e/12.92:Je=e.pow((_e+.055)/1.055,2.4),Ue<=.03928?Ct=Ue/12.92:Ct=e.pow((Ue+.055)/1.055,2.4),.2126*at+.7152*Je+.0722*Ct},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),ze=a(de.h*360),_e=a(de.s*100),Ue=a(de.v*100);return this._a==1?"hsv("+ze+", "+_e+"%, "+Ue+"%)":"hsva("+ze+", "+_e+"%, "+Ue+"%, "+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),ze=a(de.h*360),_e=a(de.s*100),Ue=a(de.l*100);return this._a==1?"hsl("+ze+", "+_e+"%, "+Ue+"%)":"hsla("+ze+", "+_e+"%, "+Ue+"%, "+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(pe(this._r,255)*100)+"%",g:a(pe(this._g,255)*100)+"%",b:a(pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(pe(this._r,255)*100)+"%, "+a(pe(this._g,255)*100)+"%, "+a(pe(this._b,255)*100)+"%)":"rgba("+a(pe(this._r,255)*100)+"%, "+a(pe(this._g,255)*100)+"%, "+a(pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(de){var ze="#"+I(this._r,this._g,this._b,this._a),_e=ze,Ue=this._gradientType?"GradientType = 1, ":"";if(de){var at=h(de);_e="#"+I(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ue+"startColorstr="+ze+",endColorstr="+_e+")"},toString:function(de){var ze=!!de;de=de||this._format;var _e=!1,Ue=this._a<1&&this._a>=0,at=!ze&&Ue&&(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"&&(_e=this.toRgbString()),de==="prgb"&&(_e=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(_e=this.toHexString()),de==="hex3"&&(_e=this.toHexString(!0)),de==="hex4"&&(_e=this.toHex8String(!0)),de==="hex8"&&(_e=this.toHex8String()),de==="name"&&(_e=this.toName()),de==="hsl"&&(_e=this.toHslString()),de==="hsv"&&(_e=this.toHsvString()),_e||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(de,ze){var _e=de.apply(null,[this].concat([].slice.call(ze)));return this._r=_e._r,this._g=_e._g,this._b=_e._b,this.setAlpha(_e._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,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,ze){return de.apply(null,[this].concat([].slice.call(ze)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(le,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,ze){if(typeof de=="object"){var _e={};for(var Ue in de)de.hasOwnProperty(Ue)&&(Ue==="a"?_e[Ue]=de[Ue]:_e[Ue]=_t(de[Ue]));de=_e}return h(de,ze)};function v(de){var ze={r:0,g:0,b:0},_e=1,Ue=null,at=null,Je=null,Ct=!1,wt=!1;return typeof de=="string"&&(de=It(de)),typeof de=="object"&&(dt(de.r)&&dt(de.g)&&dt(de.b)?(ze=m(de.r,de.g,de.b),Ct=!0,wt=String(de.r).substr(-1)==="%"?"prgb":"rgb"):dt(de.h)&&dt(de.s)&&dt(de.v)?(Ue=_t(de.s),at=_t(de.v),ze=C(de.h,Ue,at),Ct=!0,wt="hsv"):dt(de.h)&&dt(de.s)&&dt(de.l)&&(Ue=_t(de.s),Je=_t(de.l),ze=T(de.h,Ue,Je),Ct=!0,wt="hsl"),de.hasOwnProperty("a")&&(_e=de.a)),_e=Ae(_e),{ok:Ct,format:de.format||wt,r:s(255,l(ze.r,0)),g:s(255,l(ze.g,0)),b:s(255,l(ze.b,0)),a:_e}}function m(de,ze,_e){return{r:pe(de,255)*255,g:pe(ze,255)*255,b:pe(_e,255)*255}}function _(de,ze,_e){de=pe(de,255),ze=pe(ze,255),_e=pe(_e,255);var Ue=l(de,ze,_e),at=s(de,ze,_e),Je,Ct,wt=(Ue+at)/2;if(Ue==at)Je=Ct=0;else{var xt=Ue-at;switch(Ct=wt>.5?xt/(2-Ue-at):xt/(Ue+at),Ue){case de:Je=(ze-_e)/xt+(ze<_e?6:0);break;case ze:Je=(_e-de)/xt+2;break;case _e:Je=(de-ze)/xt+4;break}Je/=6}return{h:Je,s:Ct,l:wt}}function T(de,ze,_e){var Ue,at,Je;de=pe(de,360),ze=pe(ze,100),_e=pe(_e,100);function Ct(qt,Ut,Dt){return Dt<0&&(Dt+=1),Dt>1&&(Dt-=1),Dt<1/6?qt+(Ut-qt)*6*Dt:Dt<1/2?Ut:Dt<2/3?qt+(Ut-qt)*(2/3-Dt)*6:qt}if(ze===0)Ue=at=Je=_e;else{var wt=_e<.5?_e*(1+ze):_e+ze-_e*ze,xt=2*_e-wt;Ue=Ct(xt,wt,de+1/3),at=Ct(xt,wt,de),Je=Ct(xt,wt,de-1/3)}return{r:Ue*255,g:at*255,b:Je*255}}function M(de,ze,_e){de=pe(de,255),ze=pe(ze,255),_e=pe(_e,255);var Ue=l(de,ze,_e),at=s(de,ze,_e),Je,Ct,wt=Ue,xt=Ue-at;if(Ct=Ue===0?0:xt/Ue,Ue==at)Je=0;else{switch(Ue){case de:Je=(ze-_e)/xt+(ze<_e?6:0);break;case ze:Je=(_e-de)/xt+2;break;case _e:Je=(de-ze)/xt+4;break}Je/=6}return{h:Je,s:Ct,v:wt}}function C(de,ze,_e){de=pe(de,360)*6,ze=pe(ze,100),_e=pe(_e,100);var Ue=e.floor(de),at=de-Ue,Je=_e*(1-ze),Ct=_e*(1-at*ze),wt=_e*(1-(1-at)*ze),xt=Ue%6,qt=[_e,Ct,Je,Je,wt,_e][xt],Ut=[wt,_e,_e,Ct,Je,Je][xt],Dt=[Je,Je,wt,_e,_e,Ct][xt];return{r:qt*255,g:Ut*255,b:Dt*255}}function E(de,ze,_e,Ue){var at=[it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16))];return Ue&&at[0].charAt(0)==at[0].charAt(1)&&at[1].charAt(0)==at[1].charAt(1)&&at[2].charAt(0)==at[2].charAt(1)?at[0].charAt(0)+at[1].charAt(0)+at[2].charAt(0):at.join("")}function L(de,ze,_e,Ue,at){var Je=[it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16)),it(Ye(Ue))];return at&&Je[0].charAt(0)==Je[0].charAt(1)&&Je[1].charAt(0)==Je[1].charAt(1)&&Je[2].charAt(0)==Je[2].charAt(1)&&Je[3].charAt(0)==Je[3].charAt(1)?Je[0].charAt(0)+Je[1].charAt(0)+Je[2].charAt(0)+Je[3].charAt(0):Je.join("")}function I(de,ze,_e,Ue){var at=[it(Ye(Ue)),it(a(de).toString(16)),it(a(ze).toString(16)),it(a(_e).toString(16))];return at.join("")}h.equals=function(de,ze){return!de||!ze?!1:h(de).toRgbString()==h(ze).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})};function O(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.s-=ze/100,_e.s=ke(_e.s),h(_e)}function q(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.s+=ze/100,_e.s=ke(_e.s),h(_e)}function z(de){return h(de).desaturate(100)}function N(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.l+=ze/100,_e.l=ke(_e.l),h(_e)}function H(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toRgb();return _e.r=l(0,s(255,_e.r-a(255*-(ze/100)))),_e.g=l(0,s(255,_e.g-a(255*-(ze/100)))),_e.b=l(0,s(255,_e.b-a(255*-(ze/100)))),h(_e)}function V(de,ze){ze=ze===0?0:ze||10;var _e=h(de).toHsl();return _e.l-=ze/100,_e.l=ke(_e.l),h(_e)}function W(de,ze){var _e=h(de).toHsl(),Ue=(_e.h+ze)%360;return _e.h=Ue<0?360+Ue:Ue,h(_e)}function J(de){var ze=h(de).toHsl();return ze.h=(ze.h+180)%360,h(ze)}function ee(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+120)%360,s:ze.s,l:ze.l}),h({h:(_e+240)%360,s:ze.s,l:ze.l})]}function ie(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+90)%360,s:ze.s,l:ze.l}),h({h:(_e+180)%360,s:ze.s,l:ze.l}),h({h:(_e+270)%360,s:ze.s,l:ze.l})]}function oe(de){var ze=h(de).toHsl(),_e=ze.h;return[h(de),h({h:(_e+72)%360,s:ze.s,l:ze.l}),h({h:(_e+216)%360,s:ze.s,l:ze.l})]}function fe(de,ze,_e){ze=ze||6,_e=_e||30;var Ue=h(de).toHsl(),at=360/_e,Je=[h(de)];for(Ue.h=(Ue.h-(at*ze>>1)+720)%360;--ze;)Ue.h=(Ue.h+at)%360,Je.push(h(Ue));return Je}function le(de,ze){ze=ze||6;for(var _e=h(de).toHsv(),Ue=_e.h,at=_e.s,Je=_e.v,Ct=[],wt=1/ze;ze--;)Ct.push(h({h:Ue,s:at,v:Je})),Je=(Je+wt)%1;return Ct}h.mix=function(de,ze,_e){_e=_e===0?0:_e||50;var Ue=h(de).toRgb(),at=h(ze).toRgb(),Je=_e/100,Ct={r:(at.r-Ue.r)*Je+Ue.r,g:(at.g-Ue.g)*Je+Ue.g,b:(at.b-Ue.b)*Je+Ue.b,a:(at.a-Ue.a)*Je+Ue.a};return h(Ct)},h.readability=function(de,ze){var _e=h(de),Ue=h(ze);return(e.max(_e.getLuminance(),Ue.getLuminance())+.05)/(e.min(_e.getLuminance(),Ue.getLuminance())+.05)},h.isReadable=function(de,ze,_e){var Ue=h.readability(de,ze),at,Je;switch(Je=!1,at=yt(_e),at.level+at.size){case"AAsmall":case"AAAlarge":Je=Ue>=4.5;break;case"AAlarge":Je=Ue>=3;break;case"AAAsmall":Je=Ue>=7;break}return Je},h.mostReadable=function(de,ze,_e){var Ue=null,at=0,Je,Ct,wt,xt;_e=_e||{},Ct=_e.includeFallbackColors,wt=_e.level,xt=_e.size;for(var qt=0;qtat&&(at=Je,Ue=h(ze[qt]));return h.isReadable(de,Ue,{level:wt,size:xt})||!Ct?Ue:(_e.includeFallbackColors=!1,h.mostReadable(de,["#fff","#000"],_e))};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"},Se=h.hexNames=Me(Te);function Me(de){var ze={};for(var _e in de)de.hasOwnProperty(_e)&&(ze[de[_e]]=_e);return ze}function Ae(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function pe(de,ze){Xe(de)&&(de="100%");var _e=lt(de);return de=s(ze,l(0,parseFloat(de))),_e&&(de=parseInt(de*ze,10)/100),e.abs(de-ze)<1e-6?1:de%ze/parseFloat(ze)}function ke(de){return s(1,l(0,de))}function Ee(de){return parseInt(de,16)}function Xe(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function lt(de){return typeof de=="string"&&de.indexOf("%")!=-1}function it(de){return de.length==1?"0"+de:""+de}function _t(de){return de<=1&&(de=de*100+"%"),de}function Ye(de){return e.round(parseFloat(de)*255).toString(16)}function kt(de){return Ee(de)/255}var st=function(){var de="[-\\+]?\\d+%?",ze="[-\\+]?\\d*\\.\\d+%?",_e="(?:"+ze+")|(?:"+de+")",Ue="[\\s|\\(]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")\\s*\\)?",at="[\\s|\\(]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")[,|\\s]+("+_e+")\\s*\\)?";return{CSS_UNIT:new RegExp(_e),rgb:new RegExp("rgb"+Ue),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+Ue),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+Ue),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 dt(de){return!!st.CSS_UNIT.exec(de)}function It(de){de=de.replace(t,"").replace(r,"").toLowerCase();var ze=!1;if(Te[de])de=Te[de],ze=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var _e;return(_e=st.rgb.exec(de))?{r:_e[1],g:_e[2],b:_e[3]}:(_e=st.rgba.exec(de))?{r:_e[1],g:_e[2],b:_e[3],a:_e[4]}:(_e=st.hsl.exec(de))?{h:_e[1],s:_e[2],l:_e[3]}:(_e=st.hsla.exec(de))?{h:_e[1],s:_e[2],l:_e[3],a:_e[4]}:(_e=st.hsv.exec(de))?{h:_e[1],s:_e[2],v:_e[3]}:(_e=st.hsva.exec(de))?{h:_e[1],s:_e[2],v:_e[3],a:_e[4]}:(_e=st.hex8.exec(de))?{r:Ee(_e[1]),g:Ee(_e[2]),b:Ee(_e[3]),a:kt(_e[4]),format:ze?"name":"hex8"}:(_e=st.hex6.exec(de))?{r:Ee(_e[1]),g:Ee(_e[2]),b:Ee(_e[3]),format:ze?"name":"hex"}:(_e=st.hex4.exec(de))?{r:Ee(_e[1]+""+_e[1]),g:Ee(_e[2]+""+_e[2]),b:Ee(_e[3]+""+_e[3]),a:kt(_e[4]+""+_e[4]),format:ze?"name":"hex8"}:(_e=st.hex3.exec(de))?{r:Ee(_e[1]+""+_e[1]),g:Ee(_e[2]+""+_e[2]),b:Ee(_e[3]+""+_e[3]),format:ze?"name":"hex"}:!1}function yt(de){var ze,_e;return de=de||{level:"AA",size:"small"},ze=(de.level||"AA").toUpperCase(),_e=(de.size||"small").toLowerCase(),ze!=="AA"&&ze!=="AAA"&&(ze="AA"),_e!=="small"&&_e!=="large"&&(_e="small"),{level:ze,size:_e}}typeof h_!="undefined"&&h_.exports?h_.exports=h:window.tinycolor=h})(Math)});var yn=me(zy=>{"use strict";var r8=yc(),Dy=Array.isArray;function zj(e,t){var r,i;for(r=0;r{"use strict";a8.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 Iy=me((uye,i8)=>{"use strict";i8.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var x0=me((fye,s8)=>{"use strict";var n8=Iy(),o8=qo(),Q3=o8({editType:"none"});Q3.family.dflt=n8.HOVERFONT;Q3.size.dflt=n8.HOVERFONTSIZE;s8.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:Q3,grouptitlefont:o8({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_=me((cye,l8)=>{"use strict";var Ij=qo(),Ry=x0().hoverlabel,Fy=yn().extendFlat;l8.exports={hoverlabel:{bgcolor:Fy({},Ry.bgcolor,{arrayOk:!0}),bordercolor:Fy({},Ry.bordercolor,{arrayOk:!0}),font:Ij({arrayOk:!0,editType:"none"}),align:Fy({},Ry.align,{arrayOk:!0}),namelength:Fy({},Ry.namelength,{arrayOk:!0}),showarrow:Fy({},Ry.showarrow),editType:"none"}}});var ys=me((hye,u8)=>{"use strict";var Rj=qo(),Fj=v_();u8.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:Rj({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:Fj.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=me((vye,h8)=>{"use strict";var qj=Mf(),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)"]]},f8=d_.RdBu;function Nj(e,t){if(t||(t=f8),!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()),c8(e)?e:t}function c8(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 Oa=me((pye,v8)=>{"use strict";var Fs=Mf(),Oj=Da(),Uj=al().isTypedArray,$n=v8.exports={},p_=Sf();$n.defaults=p_.defaults;var Vj=$n.defaultLine=p_.defaultLine;$n.lightLine=p_.lightLine;var ew=$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(Fs(e))};$n.opacity=function(e){return e?Fs(e).getAlpha():0};$n.addOpacity=function(e,t){var r=Fs(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=Fs(e).toRgb();if(r.a===1)return Fs(e).toRgbString();var i=Fs(t||ew).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 Fs(s).toRgbString()};$n.interpolate=function(e,t,r){var i=Fs(e).toRgb(),a=Fs(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 Fs(s).toRgbString()};$n.contrast=function(e,t,r){var i=Fs(e);i.getAlpha()!==1&&(i=Fs($n.combine(e,ew)));var a=i.isDark()?t?i.lighten(t):ew:r?i.darken(r):Vj;return a.toString()};$n.stroke=function(e,t){var r=Fs(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=Fs(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_=me((mye,d8)=>{"use strict";d8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var b0=me(p8=>{"use strict";p8.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 _8=me(qs=>{"use strict";var tw=Da(),m8=Mf(),y8=yn().extendFlat,Hj=ys(),Gj=ud(),Zj=Oa(),Yj=m_().DESELECTDIM,w0=Ey(),g8=b0().counter,Wj=_0().modHalf,Iu=al().isArrayOrTypedArray,Ch=al().isTypedArraySpec,Eh=al().decodeTypedArraySpec;qs.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)),!tw(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||!tw(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)),m8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return m8(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(Gj.get(e,r))}},angle:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),e==="auto"?t.set("auto"):tw(e)?t.set(Wj(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||g8(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:!!g8(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 x8={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},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:{}}},b8={};function w8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),w8(i,t[r]))}}w8(x8,b8);T8.exports={configAttributes:x8,dfltConfig:b8}});var aw=me((xye,A8)=>{"use strict";var rw=ja(),Xj=Da(),qy=[];A8.exports=function(e,t){if(qy.indexOf(e)!==-1)return;qy.push(e);var r=1e3;Xj(t)?r=t:t==="long"&&(r=3e3);var i=rw.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(qy);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=qy.indexOf(f);h!==-1&&qy.splice(h,1),rw.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=rw.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var T0=cd().dfltConfig,iw=aw(),nw=M8.exports={};nw.log=function(){var e;if(T0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};nw.warn=function(){var e;if(T0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};nw.error=function(){var e;if(T0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var g_=me((wye,S8)=>{"use strict";S8.exports=function(){}});var ow=me((Tye,k8)=>{"use strict";k8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{C8.exports=jj;function jj(){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 D8=me((Mye,L8)=>{L8.exports=Jj;function Jj(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 z8=me((Sye,P8)=>{P8.exports=Kj;function Kj(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 sw=me((kye,I8)=>{I8.exports=Qj;function Qj(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 F8=me((Cye,R8)=>{R8.exports=$j;function $j(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=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]=f}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 N8=me((Eye,q8)=>{q8.exports=eJ;function eJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=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*f-i*l,q=r*h-a*l,z=r*v-s*l,N=i*h-a*f,H=i*v-s*f,V=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,fe=T*I-M*L,le=O*fe-q*oe+z*ie+N*ee-H*J+V*W;return le?(le=1/le,e[0]=(f*fe-h*oe+v*ie)*le,e[1]=(a*oe-i*fe-s*ie)*le,e[2]=(E*V-L*H+I*N)*le,e[3]=(T*H-_*V-M*N)*le,e[4]=(h*ee-l*fe-v*J)*le,e[5]=(r*fe-a*ee+s*J)*le,e[6]=(L*z-C*V-I*q)*le,e[7]=(m*V-T*z+M*q)*le,e[8]=(l*oe-f*ee+v*W)*le,e[9]=(i*ee-r*oe-s*W)*le,e[10]=(C*H-E*z+I*O)*le,e[11]=(_*z-m*H-M*O)*le,e[12]=(f*J-l*ie-h*W)*le,e[13]=(r*ie-i*J+a*W)*le,e[14]=(E*q-C*N-L*O)*le,e[15]=(m*N-_*q+T*O)*le,e):null}});var O8=me((Lye,B8)=>{B8.exports=tJ;function tJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=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]=f*(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)-f*(a*I-s*L)+E*(a*v-s*h),e[3]=-(i*(h*M-v*T)-f*(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*(f*I-v*E)+C*(f*M-v*_),e[9]=-(r*(_*I-M*E)-m*(i*I-s*E)+C*(i*M-s*_)),e[10]=r*(f*I-v*E)-l*(i*I-s*E)+C*(i*v-s*f),e[11]=-(r*(f*M-v*_)-l*(i*M-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*L-T*E)-m*(f*L-h*E)+C*(f*T-h*_)),e[13]=r*(_*L-T*E)-m*(i*L-a*E)+C*(i*T-a*_),e[14]=-(r*(f*L-h*E)-l*(i*L-a*E)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var V8=me((Dye,U8)=>{U8.exports=rJ;function rJ(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=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*f-i*s,q=t*h-a*s,z=r*f-i*l,N=r*h-a*l,H=i*h-a*f,V=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*V}});var G8=me((Pye,H8)=>{H8.exports=aJ;function aJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=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*f+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*f+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*f+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*f+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 Y8=me((zye,Z8)=>{Z8.exports=iJ;function iJ(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,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],f=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]=f,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]=f*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 X8=me((Iye,W8)=>{W8.exports=nJ;function nJ(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 J8=me((Rye,j8)=>{j8.exports=oJ;function oJ(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,M,C,E,L,I,O,q,z,N,H,V,W,J,ee,ie,oe,fe,le,Te;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,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],V=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,fe=a*l*m+s*h,le=s*l*m-a*h,Te=l*l*m+v,e[0]=_*V+E*W+q*J,e[1]=T*V+L*W+z*J,e[2]=M*V+I*W+N*J,e[3]=C*V+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]=_*fe+E*le+q*Te,e[9]=T*fe+L*le+z*Te,e[10]=M*fe+I*le+N*Te,e[11]=C*fe+O*le+H*Te,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Q8=me((Fye,K8)=>{K8.exports=sJ;function sJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=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]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var eS=me((qye,$8)=>{$8.exports=lJ;function lJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=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]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var rS=me((Nye,tS)=>{tS.exports=uJ;function uJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=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]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var iS=me((Bye,aS)=>{aS.exports=fJ;function fJ(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*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 oS=me((Oye,nS)=>{nS.exports=cJ;function cJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,M=a*h,C=a*v,E=s*v,L=l*f,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 lS=me((Uye,sS)=>{sS.exports=hJ;function hJ(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 fS=me((Vye,uS)=>{uS.exports=vJ;function vJ(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 hS=me((Hye,cS)=>{cS.exports=dJ;function dJ(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 dS=me((Gye,vS)=>{vS.exports=pJ;function pJ(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 mS=me((Zye,pS)=>{pS.exports=mJ;function mJ(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 gS=me((Yye,yS)=>{yS.exports=yJ;function yJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,M=a*f,C=a*h,E=s*l,L=s*f,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 xS=me((Wye,_S)=>{_S.exports=gJ;function gJ(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,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)*f,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 wS=me((Xye,bS)=>{bS.exports=_J;function _J(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 AS=me((jye,TS)=>{TS.exports=xJ;function xJ(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),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),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-f)*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 SS=me((Jye,MS)=>{MS.exports=bJ;function bJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,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)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var CS=me((Kye,kS)=>{var wJ=sw();kS.exports=TJ;function TJ(e,t,r,i){var a,s,l,f,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?wJ(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),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,M=Math.sqrt(f*f+h*h+v*v),M?(M=1/M,f*=M,h*=M,v*=M):(f=0,h=0,v=0),e[0]=a,e[1]=f,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]=-(f*C+h*E+v*L),e[14]=-(m*C+_*E+T*L),e[15]=1,e)}});var LS=me((Qye,ES)=>{ES.exports=AJ;function AJ(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 lw=me(($ye,DS)=>{DS.exports={create:E8(),clone:D8(),copy:z8(),identity:sw(),transpose:F8(),invert:N8(),adjoint:O8(),determinant:V8(),multiply:G8(),translate:Y8(),scale:X8(),rotate:J8(),rotateX:Q8(),rotateY:eS(),rotateZ:rS(),fromRotation:iS(),fromRotationTranslation:oS(),fromScaling:lS(),fromTranslation:fS(),fromXRotation:hS(),fromYRotation:dS(),fromZRotation:mS(),fromQuat:gS(),frustum:xS(),perspective:wS(),perspectiveFromFieldOfView:AS(),ortho:SS(),lookAt:CS(),str:LS()}});var __=me(Cn=>{"use strict";var MJ=lw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var SJ=ja(),PS=Lh(),kJ=__(),CJ=lw();function EJ(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 LJ(e){var t=SJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function zS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function DJ(e,t){IS("global",e,t)}function IS(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):PS.warn("addStyleRule failed"):PS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function PJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&zS(r)}function zJ(e,t,r,i,a,s){var l=i.split(":"),f=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[f[0]]=f[1])}),v.setAttribute(h,!0))})}function IJ(e){var t=FS(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=RS(i);if(a){var s=kJ.convertCssMatrix(a);r=CJ.multiply(r,r,s)}}),r}function RS(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 FS(e){for(var t=[];RJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function RJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function FJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}qS.exports={getGraphDiv:EJ,isPlotDiv:LJ,removeElement:zS,addStyleRule:DJ,addRelatedStyleRule:IS,deleteRelatedStyleRule:PJ,setStyleOnHover:zJ,getFullTransformMatrix:IJ,getElementTransformMatrix:RS,getElementAndAncestors:FS,equalDomRects:FJ}});var By=me((rge,NS)=>{"use strict";NS.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=me((age,ZS)=>{"use strict";var OS=yn().extendFlat,qJ=yc(),US={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},VS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},NJ=US.flags.slice().concat(["fullReplot"]),BJ=VS.flags.slice().concat("layoutReplot");ZS.exports={traces:US,layout:VS,traceFlags:function(){return BS(NJ)},layoutFlags:function(){return BS(BJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";uw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};uw.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 fw=me((nge,YS)=>{"use strict";YS.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 kf=me(A0=>{"use strict";var{DATE_FORMAT_LINK:OJ,FORMAT_LINK:UJ}=fw(),VJ=["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 HJ({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}".`,UJ,"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}".`,OJ,"for details on the date formatting syntax.",VJ].join(" ")}A0.templateFormatStringDescription=HJ;A0.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});A0.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});A0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});A0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var w_=me((lge,QS)=>{"use strict";function Dh(e,t){return t?t.d2l(e):e}function WS(e,t){return t?t.l2d(e):e}function GJ(e){return e.x0}function ZJ(e){return e.x1}function YJ(e){return e.y0}function WJ(e){return e.y1}function XS(e){return e.x0shift||0}function jS(e){return e.x1shift||0}function JS(e){return e.y0shift||0}function KS(e){return e.y1shift||0}function x_(e,t){return Dh(e.x1,t)+jS(e)-Dh(e.x0,t)-XS(e)}function b_(e,t,r){return Dh(e.y1,r)+KS(e)-Dh(e.y0,r)-JS(e)}function XJ(e,t){return Math.abs(x_(e,t))}function jJ(e,t,r){return Math.abs(b_(e,t,r))}function JJ(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 KJ(e,t){return WS((Dh(e.x1,t)+jS(e)+Dh(e.x0,t)+XS(e))/2,t)}function QJ(e,t,r){return WS((Dh(e.y1,r)+KS(e)+Dh(e.y0,r)+JS(e))/2,r)}function $J(e,t,r){return e.type!=="line"?void 0:b_(e,t,r)/x_(e,t)}var eK=["x0","x1","y0","y1","dy","height","ycenter"],tK=["x0","x1","y0","y1","dx","width","xcenter"];QS.exports={x0:GJ,x1:ZJ,y0:YJ,y1:WJ,slope:$J,dx:x_,dy:b_,width:XJ,height:jJ,length:JJ,xcenter:KJ,ycenter:QJ,simpleXVariables:eK,simpleYVariables:tK}});var t9=me((uge,e9)=>{"use strict";var rK=il().overrideAll,hd=ys(),$S=qo(),aK=gc().dash,Ph=yn().extendFlat,{shapeTexttemplateAttrs:iK,templatefallbackAttrs:nK}=kf(),oK=w_();e9.exports=rK({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:$S({})},legendrank:Ph({},hd.legendrank,{}),legendwidth:Ph({},hd.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ph({},aK,{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:iK({newshape:!0},{keys:Object.keys(oK)}),texttemplatefallback:nK({editType:"arraydraw"}),font:$S({}),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 a9=me((fge,r9)=>{"use strict";var sK=gc().dash,lK=yn().extendFlat;r9.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:lK({},sK,{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_=me((cge,i9)=>{"use strict";i9.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 M0=me((hge,l9)=>{"use strict";var cw=qo(),uK=By(),A_=Sf(),n9=t9(),o9=a9(),fK=T_(),s9=yn().extendFlat,M_=cw({editType:"calc"});M_.family.dflt='"Open Sans", verdana, arial, sans-serif';M_.size.dflt=12;M_.color.dflt=A_.defaultLine;l9.exports={font:M_,title:{text:{valType:"string",editType:"layoutstyle"},font:cw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:cw({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:s9(fK({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:n9.newshape,activeshape:n9.activeshape,newselection:o9.newselection,activeselection:o9.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:s9({},uK.transition,{editType:"none"})}});var u9=me(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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 sa=me(Pa=>{"use strict";var S0=Lh(),f9=g_(),c9=ow(),cK=yc(),hK=Ny().addStyleRule,h9=yn(),vK=ys(),dK=M0(),pK=h9.extendFlat,hw=h9.extendDeepAll;Pa.modules={};Pa.allCategories={};Pa.allTypes=[];Pa.subplotsRegistry={};Pa.componentsRegistry={};Pa.layoutArrayContainers=[];Pa.layoutArrayRegexes=[];Pa.traceLayoutAttributes={};Pa.localeRegistry={};Pa.apiMethodRegistry={};Pa.collectableSubplotTypes=null;Pa.register=function(t){if(Pa.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 bK=y0().timeFormat,T9=Da(),vw=Lh(),Ih=_0().mod,E0=Zi(),Gl=E0.BADNUM,Ns=E0.ONEDAY,Oy=E0.ONEHOUR,zh=E0.ONEMIN,C0=E0.ONESEC,Uy=E0.EPOCHJD,_c=sa(),y9=y0().utcFormat,wK=/^\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,TK=/^\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,g9=new Date().getFullYear()-70;function xc(e){return e&&_c.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=AK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Ns*(t-1),En.ms2DateTime(i,0,e)};function AK(e,t){return xc(e)?t?_c.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:_c.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return xc(e)?_c.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())*C0+(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=xc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.slice(1),t="");var f=s&&t.slice(0,7)==="chinese",h=e.match(f?TK:wK);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=_c.getComponentMethod("calendars","getCal")(t);if(f){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()-Uy)*Ns+T*Oy+M*zh+C*C0:Gl}v.length===2?v=(Number(v)+2e3-g9)%100+g9: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*C0};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 k0(e,t){return String(e+Math.pow(10,t)).slice(1)}var S_=90*Ns,_9=3*Oy,x9=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,f,h,v,m;if(xc(r)){var _=Math.floor(a/Ns)+Uy,T=Math.floor(Ih(e,Ns));try{s=_c.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(M){s=y9("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_+Ns&&e<=C_-Ns))return Gl;var t=Math.floor(Ih(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=bK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return A9(i,a,s,l,f)};function A9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+k0(t,2)+":"+k0(r,2),(i||a)&&(e+=":"+k0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+k0(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(xc(r))return vw.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 vw.error("unrecognized date",e),t;return e};var MK=/%\d?f/g,SK=/%h/g,kK={1:"1",2:"1",3:"2",4:"2"};function b9(e,t,r,i){e=e.replace(MK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(SK,function(){return kK[r("%q")(a)]}),xc(i))try{e=_c.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var CK=[59,59.9,59.99,59.999,59.9999];function EK(e,t){var r=Ih(e+.05,Ns),i=k0(Math.floor(r/Oy),2)+":"+k0(Ih(Math.floor(r/zh),60),2);if(t!=="M"){T9(t)||(t=0);var a=Math.min(Ih(e/C0,60),CK[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=xc(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 EK(e,r)+` -`+b9(s.dayMonthYear,e,i,a);return b9(t,e,i,a)};var w9=3*Ns;En.incrementMonth=function(e,t,r){r=xc(r)&&r;var i=Ih(e,Ns);if(e=Math.round(e-i),r)try{var a=Math.round(e/Ns)+Uy,s=_c.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Uy)*Ns+i}catch(h){vw.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+w9);return f.setUTCMonth(f.getUTCMonth()+t)+i-w9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=xc(t)&&_c.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";S9.exports=function(t){return t}});var pw=me(bc=>{"use strict";var LK=Da(),DK=Lh(),PK=C_(),zK=Zi().BADNUM,dw=1e-9;bc.findBin=function(e,t,r){if(LK(t.start))return r?Math.ceil((e-t.start)/t.size-dw)-1:Math.floor((e-t.start)/t.size+dw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?IK:RK:h=r?qK:FK,e+=l*dw*(r?-1:1)*(l>=0?1:-1);i90&&DK.log("Long binary search..."),i-1};function IK(e,t){return et}function qK(e,t){return e>=t}bc.sorterAsc=function(e,t){return e-t};bc.sorterDes=function(e,t){return t-e};bc.distinctVals=function(e){var t=e.slice();t.sort(bc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===zK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],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}};bc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=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()};bc.findIndexOfMin=function(e,t){t=t||PK;for(var r=1/0,i,a=0;a{"use strict";k9.exports=function(t){return Object.keys(t).sort()}});var C9=me(Ln=>{"use strict";var Vy=Da(),NK=al().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Vy(t)||(t=!1),NK(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 z9=me((bge,P9)=>{"use strict";var E9=_0(),mw=E9.mod,BK=E9.modHalf,Hy=Math.PI,Rh=2*Hy;function OK(e){return e/180*Hy}function UK(e){return e/Hy*180}function yw(e){return Math.abs(e[1]-e[0])>Rh-1e-14}function L9(e,t){return BK(t-e,Rh)}function VK(e,t){return Math.abs(L9(e,t))}function D9(e,t){if(yw(t))return!0;var r,i;t[0]i&&(i+=Rh);var a=mw(e,Rh),s=a+Rh;return a>=r&&a<=i||s>=r&&s<=i}function HK(e,t,r,i){if(!D9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function gw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=yw([r,i]),h,v,m,_,T;f?(h=0,v=Hy,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 q9=me(dd=>{"use strict";var _w=_0().mod;dd.segmentsIntersect=F9;function F9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,M=f-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,f,h){if(F9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-s,T=h-l,M=v*v+m*m,C=_*_+T*T,E=Math.min(L_(v,m,M,s-t,l-r),L_(v,m,M,f-t,h-r),L_(_,T,C,t-s,r-l),L_(_,T,C,i-s,a-l));return Math.sqrt(E)};function L_(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,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var D_,xw,R9;dd.getTextLocation=function(t,r,i,a){if((t!==xw||a!==R9)&&(D_={},xw=t,R9=a),D_[i])return D_[i];var s=t.getPointAtLength(_w(i-a/2,r)),l=t.getPointAtLength(_w(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(_w(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:f};return D_[i]=_,_};dd.clearLocationCache=function(){xw=null};dd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=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.yf?L.y-f: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,f=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 P_=me(Gy=>{"use strict";var wc={};Gy.throttle=function(t,r,i){var a=wc[t],s=Date.now();if(!a){for(var l in wc)wc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};Gy.done=function(e){var t=wc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Gy.clear=function(e){if(e)N9(wc[e]),delete wc[e];else for(var t in wc)Gy.clear(t)};function N9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var O9=me((Mge,B9)=>{"use strict";B9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var U9=me((Sge,z_)=>{"use strict";z_.exports=bw;z_.exports.isMobile=bw;z_.exports.default=bw;var WK=/(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,XK=/CrOS/,jK=/android|ipad|playbook|silk/i;function bw(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=WK.test(t)&&!XK.test(t)||!!e.tablet&&jK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var H9=me((kge,V9)=>{"use strict";var JK=Da(),KK=U9();V9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=QK(),typeof r!="string")return!0;var i=KK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.slice(0,8)==="Version/"){var v=h.slice(8).split(".")[0];if(JK(v)&&(v=+v),v>=13)return!0}}}return i};function QK(){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 Z9=me((Cge,G9)=>{"use strict";var $K=ja();G9.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]=$K.select(this)}),a}});var W9=me((Ege,Y9)=>{"use strict";var eQ=sa();Y9.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 f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=eQ.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var j9=me((Lge,X9)=>{"use strict";X9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";J9.exports=function(t){for(var r=aQ(t)?rQ:tQ,i=[],a=0;a{"use strict";Q9.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,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var tk=me((zge,ek)=>{"use strict";var iQ=Da(),nQ=Zi().BADNUM,oQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;ek.exports=function(t){return typeof t=="string"&&(t=t.replace(oQ,"")),iQ(t)?Number(t):nQ}});var Bt=me((Ige,dk)=>{"use strict";var Zy=ja(),sQ=y0().utcFormat,lQ=Y3().format,sk=Da(),lk=Zi(),uk=lk.FP_SAFE,uQ=-uk,rk=lk.BADNUM,rt=dk.exports={};rt.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 ak={};rt.warnBadFormat=function(e){var t=String(e);ak[t]||(ak[t]=1,rt.warn('encountered bad format: "'+t+'"'))};rt.noFormat=function(e){return String(e)};rt.numberFormat=function(e){var t;try{t=lQ(rt.adjustFormat(e))}catch(r){return rt.warnBadFormat(e),rt.noFormat}return t};rt.nestedProperty=Ey();rt.keyedContainer=X7();rt.relativeAttr=J7();rt.isPlainObject=yc();rt.toLogRange=f_();rt.relinkPrivateKeys=e8();var Fh=al();rt.isArrayBuffer=Fh.isArrayBuffer;rt.isTypedArray=Fh.isTypedArray;rt.isArrayOrTypedArray=Fh.isArrayOrTypedArray;rt.isArray1D=Fh.isArray1D;rt.ensureArray=Fh.ensureArray;rt.concat=Fh.concat;rt.maxRowLength=Fh.maxRowLength;rt.minRowLength=Fh.minRowLength;var fk=_0();rt.mod=fk.mod;rt.modHalf=fk.modHalf;var qh=_8();rt.valObjectMeta=qh.valObjectMeta;rt.coerce=qh.coerce;rt.coerce2=qh.coerce2;rt.coerceFont=qh.coerceFont;rt.coercePattern=qh.coercePattern;rt.coerceHoverinfo=qh.coerceHoverinfo;rt.coerceSelectionMarkerOpacity=qh.coerceSelectionMarkerOpacity;rt.validate=qh.validate;var nl=M9();rt.dateTime2ms=nl.dateTime2ms;rt.isDateTime=nl.isDateTime;rt.ms2DateTime=nl.ms2DateTime;rt.ms2DateTimeLocal=nl.ms2DateTimeLocal;rt.cleanDate=nl.cleanDate;rt.isJSDate=nl.isJSDate;rt.formatDate=nl.formatDate;rt.incrementMonth=nl.incrementMonth;rt.dateTick0=nl.dateTick0;rt.dfltRange=nl.dfltRange;rt.findExactDates=nl.findExactDates;rt.MIN_MS=nl.MIN_MS;rt.MAX_MS=nl.MAX_MS;var pd=pw();rt.findBin=pd.findBin;rt.sorterAsc=pd.sorterAsc;rt.sorterDes=pd.sorterDes;rt.distinctVals=pd.distinctVals;rt.roundUp=pd.roundUp;rt.sort=pd.sort;rt.findIndexOfMin=pd.findIndexOfMin;rt.sortObjectKeys=E_();var Tc=C9();rt.aggNums=Tc.aggNums;rt.len=Tc.len;rt.mean=Tc.mean;rt.geometricMean=Tc.geometricMean;rt.median=Tc.median;rt.midRange=Tc.midRange;rt.variance=Tc.variance;rt.stdev=Tc.stdev;rt.interp=Tc.interp;var Ru=g_();rt.init2dArray=Ru.init2dArray;rt.transposeRagged=Ru.transposeRagged;rt.dot=Ru.dot;rt.translationMatrix=Ru.translationMatrix;rt.rotationMatrix=Ru.rotationMatrix;rt.rotationXYMatrix=Ru.rotationXYMatrix;rt.apply3DTransform=Ru.apply3DTransform;rt.apply2DTransform=Ru.apply2DTransform;rt.apply2DTransform2=Ru.apply2DTransform2;rt.convertCssMatrix=Ru.convertCssMatrix;rt.inverseTransformMatrix=Ru.inverseTransformMatrix;var Cf=z9();rt.deg2rad=Cf.deg2rad;rt.rad2deg=Cf.rad2deg;rt.angleDelta=Cf.angleDelta;rt.angleDist=Cf.angleDist;rt.isFullCircle=Cf.isFullCircle;rt.isAngleInsideSector=Cf.isAngleInsideSector;rt.isPtInsideSector=Cf.isPtInsideSector;rt.pathArc=Cf.pathArc;rt.pathSector=Cf.pathSector;rt.pathAnnulus=Cf.pathAnnulus;var D0=I9();rt.isLeftAnchor=D0.isLeftAnchor;rt.isCenterAnchor=D0.isCenterAnchor;rt.isRightAnchor=D0.isRightAnchor;rt.isTopAnchor=D0.isTopAnchor;rt.isMiddleAnchor=D0.isMiddleAnchor;rt.isBottomAnchor=D0.isBottomAnchor;var P0=q9();rt.segmentsIntersect=P0.segmentsIntersect;rt.segmentDistance=P0.segmentDistance;rt.getTextLocation=P0.getTextLocation;rt.clearLocationCache=P0.clearLocationCache;rt.getVisibleSegment=P0.getVisibleSegment;rt.findPointOnPath=P0.findPointOnPath;var F_=yn();rt.extendFlat=F_.extendFlat;rt.extendDeep=F_.extendDeep;rt.extendDeepAll=F_.extendDeepAll;rt.extendDeepNoArrays=F_.extendDeepNoArrays;var ww=Lh();rt.log=ww.log;rt.warn=ww.warn;rt.error=ww.error;var fQ=b0();rt.counterRegex=fQ.counter;var Tw=P_();rt.throttle=Tw.throttle;rt.throttleDone=Tw.done;rt.clearThrottle=Tw.clear;var Fu=Ny();rt.getGraphDiv=Fu.getGraphDiv;rt.isPlotDiv=Fu.isPlotDiv;rt.removeElement=Fu.removeElement;rt.addStyleRule=Fu.addStyleRule;rt.addRelatedStyleRule=Fu.addRelatedStyleRule;rt.deleteRelatedStyleRule=Fu.deleteRelatedStyleRule;rt.setStyleOnHover=Fu.setStyleOnHover;rt.getFullTransformMatrix=Fu.getFullTransformMatrix;rt.getElementTransformMatrix=Fu.getElementTransformMatrix;rt.getElementAndAncestors=Fu.getElementAndAncestors;rt.equalDomRects=Fu.equalDomRects;rt.clearResponsive=O9();rt.preserveDrawingBuffer=H9();rt.makeTraceGroups=Z9();rt._=W9();rt.notifier=aw();rt.filterUnique=j9();rt.filterVisible=K9();rt.pushUnique=ow();rt.increment=$9();rt.cleanNumber=tk();rt.ensureNumber=function(t){return sk(t)?(t=Number(t),t>uk||t=t?!1:sk(e)&&e>=0&&e%1===0};rt.noop=y_();rt.identity=C_();rt.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))};rt.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};rt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(rt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};rt.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};rt.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),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};rt.syncOrAsync=function(e,t,r){var i,a;function s(){return rt.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)};rt.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};rt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};rt.fillArray=function(e,t,r,i){if(i=i||rt.identity,rt.isArrayOrTypedArray(e))for(var a=0;avQ.test(window.navigator.userAgent);var dQ=/Firefox\/(\d+)\.\d+/;rt.getFirefoxVersion=function(){var e=dQ.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};rt.isD3Selection=function(e){return e instanceof Zy.selection};rt.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};rt.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};rt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};rt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var vk=/^\w*$/;rt.templateString=function(e,t){var r={};return e.replace(rt.TEMPLATE_STRING_REGEX,function(i,a){var s;return vk.test(a)?s=t[a]:(r[a]=r[a]||rt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var yQ={max:10,count:0,name:"hovertemplate"};rt.hovertemplateString=e=>Aw(e_(sd({},e),{opts:yQ}));var gQ={max:10,count:0,name:"texttemplate"};rt.texttemplateString=e=>Aw(e_(sd({},e),{opts:gQ}));var _Q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xQ(e){var t=e.match(_Q);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var bQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};rt.texttemplateStringForShapes=e=>Aw(e_(sd({},e),{opts:bQ}));var ik=/^[:|\|]/;function Aw({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:s}){return s.replace(rt.TEMPLATE_STRING_REGEX,(l,f,h)=>{let v=["xother","yother"].includes(f),m=["_xother","_yother"].includes(f),_=["_xother_","_yother_"].includes(f),T=["xother_","yother_"].includes(f),M=v||m||T||_;(m||_)&&(f=f.substring(1)),(T||_)&&(f=f.substring(0,f.length-1));let C=null,E=null;if(a.parseMultDiv){var L=xQ(f);f=L.key,C=L.op,E=L.number}let I;if(M){if(i[f]===void 0)return"";I=i[f]}else for(let N of e)if(N){if(N.hasOwnProperty(f)){I=N[f];break}if(vk.test(f)||(I=rt.nestedProperty(N,f).get(!0)),I!==void 0)break}if(I===void 0){let{count:N,max:H,name:V}=a,W=r===!1?l:r;return N=R_&&l<=nk,v=f>=R_&&f<=nk;if(h&&(i=10*i+l-R_),v&&(a=10*a+f-R_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var L0=2e9;rt.seedPseudoRandom=function(){L0=2e9};rt.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?rt.pseudoRandom():L0/4294967296};rt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=rt.extractOption(e,t,"htx","hovertext");if(rt.isValidTextValue(a))return i(a);var s=rt.extractOption(e,t,"tx","text");if(rt.isValidTextValue(s))return i(s)};rt.isValidTextValue=function(e){return e||e===0};rt.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,rt.strTranslate(a-v*(r+l),s-v*(i+f))+rt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};rt.setTransormAndDisplay=function(e,t){e.attr("transform",rt.getTextTransform(t)),e.style("display",t.scale?null:"none")};rt.ensureUniformFontSize=function(e,t){var r=rt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};rt.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)};rt.bigFont=function(e){return Math.round(1.2*e)};var ok=rt.getFirefoxVersion(),wQ=ok!==null&&ok<86;rt.getPositionFromD3Event=function(){return wQ?[Zy.event.layerX,Zy.event.layerY]:[Zy.event.offsetX,Zy.event.offsetY]}});var yk=me(()=>{"use strict";var TQ=Bt(),pk={"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(Mw in pk)mk=Mw.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),TQ.addStyleRule(mk,pk[Mw]);var mk,Mw});var Sw=me((Nge,gk)=>{gk.exports=!0});var Cw=me((Bge,_k)=>{"use strict";var AQ=Sw(),kw;typeof window.matchMedia=="function"?kw=!window.matchMedia("(hover: none)").matches:kw=AQ;_k.exports=kw});var B_=me((Oge,Ew)=>{"use strict";var z0=typeof Reflect=="object"?Reflect:null,xk=z0&&typeof z0.apply=="function"?z0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},q_;z0&&typeof z0.ownKeys=="function"?q_=z0.ownKeys:Object.getOwnPropertySymbols?q_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:q_=function(t){return Object.getOwnPropertyNames(t)};function MQ(e){console&&console.warn&&console.warn(e)}var wk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}Ew.exports=Yi;Ew.exports.once=EQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var bk=10;function N_(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 bk},set:function(e){if(typeof e!="number"||e<0||wk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bk=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||wk(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 Tk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return Tk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")xk(h,this,r);else for(var v=h.length,m=Ck(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,MQ(f)}return e}Yi.prototype.addListener=function(t,r){return Ak(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return Ak(this,t,r,!0)};function SQ(){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 Mk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=SQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return N_(r),this.on(t,Mk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return N_(r),this.prependListener(t,Mk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,f;if(N_(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){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():kQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||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 Sk(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?CQ(a):Ck(a,a.length)}Yi.prototype.listeners=function(t){return Sk(this,t,!0)};Yi.prototype.rawListeners=function(t){return Sk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kk.call(e,t)};Yi.prototype.listenerCount=kk;function kk(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?q_(this._events):[]};function Ck(e,t){for(var r=new Array(t),i=0;i{"use strict";var Lw=B_().EventEmitter,DQ={init:function(e){if(e._ev instanceof Lw)return e;var t=new Lw,r=new Lw;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 f;for(f=0;f{"use strict";var Dk=Bt(),PQ=cd().dfltConfig;function zQ(e,t){for(var r=[],i,a=0;aPQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ac.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ac.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ac.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";Ik.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var F0=me(Xn=>{"use strict";var Zl=sa(),Wy=Bt(),U_=ys(),Pw=M0(),IQ=Dw(),RQ=By(),FQ=cd().configAttributes,Rk=il(),qu=Wy.extendDeepAll,I0=Wy.isPlainObject,qQ=Wy.isArrayOrTypedArray,V_=Wy.nestedProperty,NQ=Wy.valObjectMeta,zw="_isSubplotObj",H_="_isLinkedToArray",BQ="_arrayAttrRegexps",qk="_deprecated",Iw=[zw,H_,BQ,qk];Xn.IS_SUBPLOT_OBJ=zw;Xn.IS_LINKED_TO_ARRAY=H_;Xn.DEPRECATED=qk;Xn.UNDERSCORE_ATTRS=Iw;Xn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=UQ(t)}),{defs:{valObjects:NQ,metaKeys:Iw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Rk.traces,layout:Rk.layout},impliedEdits:{}},traces:e,layout:VQ(),frames:HQ(),animation:R0(RQ),config:R0(FQ)}};Xn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Iw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Xn.isValObject(l)&&I0(l)&&s!=="impliedEdits"&&Xn.crawl(l,t,a+1,f)}})};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&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)qQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var M=0;M<_.length;M++)I0(_[M])&&f(_[M],v+1,T+"["+M+"].")}else I0(_)&&f(_,v+1,T+".")}return a=e,s="",Xn.crawl(U_,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||U_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=U_[r]),Nk(s,t,i)};Xn.getLayoutValObject=function(e,t){var r=OQ(e,t[0]);return Nk(r,t,1)};function OQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!O_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function O_(e){return e===Math.round(e)&&e>=0}function UQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=qu({},U_),s=qu({},t.attributes);Xn.crawl(s,function(h,v,m,_,T){V_(a,T).set(void 0),h===void 0&&V_(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:R0(i)};if(t.layoutAttributes){var f={};qu(f,t.layoutAttributes),l.layoutAttributes=R0(f)}return t.animatable||Xn.crawl(l,function(h){Xn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function VQ(){var e={},t,r;qu(e,Pw);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 q0=Bt(),XQ=ys(),Nh="templateitemname",Rw={name:{valType:"string",editType:"none"}};Rw[Nh]={valType:"string",editType:"calc"};md.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Rw.name,t[Nh]=Rw[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=q0.coerce(s,{},XQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};md.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);q0.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[Ok(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Nh]=v[Nh];if(!Bk(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Nh]=s)}h();function v(M,C){f[M]=C}function m(M,C){s?q0.nestedProperty(f[l],M).set(C):f[l+"."+M]=C}function _(){var M=f;return h(),M}function T(M,C){M&&m(M,C);var E=_();for(var L in E)q0.nestedProperty(e,L).set(E[L])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var eo=me((Yge,Uk)=>{"use strict";var Xy=b0().counter;Uk.exports={idRegex:{x:Xy("x","( domain)?"),y:Xy("y","( domain)?")},attrRegex:Xy("[xy]axis"),xAxisMatch:Xy("xaxis"),yAxisMatch:Xy("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=me(Bs=>{"use strict";var jQ=sa(),Fw=eo();Bs.id2name=function(t){if(!(typeof t!="string"||!t.match(Fw.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Bs.name2id=function(t){if(t.match(Fw.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Bs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Fw.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":"")}};Bs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=Bs.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Bs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Vk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function JQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function KQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Hk.exports={clearOutlineControllers:JQ,clearOutline:KQ}});var G_=me((jge,Gk)=>{"use strict";Gk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var W_=me(Y_=>{"use strict";var Z_=sa(),Jge=eo().SUBPLOT_PATTERN;Y_.getSubplotCalcData=function(e,t,r){var i=Z_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var QQ=sa(),N0=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){Zk(e,l,a.cache),a.check=function(){if(s){var m=Zk(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 f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;N0.isPlainObject(s)?qw(s,t,l,i+1):t(l,a,s)}})}});var to=me(($ge,lC)=>{"use strict";var tC=ja(),e$=y0().timeFormatLocale,t$=Y3().formatLocale,jy=Da(),r$=W3(),ti=sa(),rC=F0(),a$=Ii(),Dr=Bt(),aC=Oa(),jk=Zi().BADNUM,Os=jn(),i$=Bh().clearOutline,n$=G_(),Nw=By(),o$=Dw(),s$=W_().getModuleCalcData,Jk=Dr.relinkPrivateKeys,gd=Dr._,_r=lC.exports={};Dr.extendFlat(_r,ti);_r.attributes=ys();_r.attributes.type.values=_r.allTypes;_r.fontAttrs=qo();_r.layoutAttributes=M0();var j_=Xk();_r.executeAPICommand=j_.executeAPICommand;_r.computeAPICommandBindings=j_.computeAPICommandBindings;_r.manageCommandObserver=j_.manageCommandObserver;_r.hasSimpleAPICommandBindings=j_.hasSimpleAPICommandBindings;_r.redrawText=function(e){return e=Dr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ti.getComponentMethod("annotations","draw")(e),ti.getComponentMethod("legend","draw")(e),ti.getComponentMethod("colorbar","draw")(e),t(_r.previousPromises(e)))},300)})};_r.resize=function(e){e=Dr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Dr.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||Dr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ti.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=Dr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:aC.defaultLine,"pointer-events":"all"}).each(function(){var v=tC.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"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&l$(e,s),l.text(s.text()&&f.text()?" - ":"")}};function l$(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=tC.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 u$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],f$=["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||[],f=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=Kk(e,u$);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=v$(T,a.separators),a._extraFormat=Kk(e,f$),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=h$(),z=a._splomAxes={x:{},y:{}},N=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=c$(l,h),_r.supplyDataDefaults(h,f,s,a);var H=Object.keys(z.x),V=Object.keys(z.y);if(H.length>1&&V.length>1){for(ti.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,_r.linkSubplots(f,a,l,i),_r.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),le=oe,Te=fe;le&&!Te?i._bgLayer.remove():Te&&!le&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&i$({_fullLayout:i}),d$(f,a),Jk(a,i),ti.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Se=a._tracePreGUI,Me={},Ae;for(Ae in Se)Me[Ae]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=_r.layoutAttributes.width.min,T=_r.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||M)&&(M&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),_r.sanitizeMargins(i)};_r.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ti.componentsRegistry,s=t._basePlotModules,l,f,h,v=ti.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ti.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Dr.subplotSort);for(f=0;f1&&(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 m$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Os.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={}),iC(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Dr.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 V in T)V!=="base"&&jy(T[V][N].size)&&(H=T[V][N].size>H?T[V][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,fe=ee.size,le=ie.val,Te=ie.size,Se=r-l.r-l.l,Me=i-l.t-l.b;for(var Ae in T){if(jy(fe)&&T[Ae].r){var pe=T[Ae].r.val,ke=T[Ae].r.size;if(pe>oe){var Ee=(fe*pe+(ke-Se)*oe)/(pe-oe),Xe=(ke*(1-oe)+(fe-Se)*(1-pe))/(pe-oe);Ee+Xe>h+v&&(h=Ee,v=Xe)}}if(jy(Te)&&T[Ae].t){var lt=T[Ae].t.val,it=T[Ae].t.size;if(lt>le){var _t=(Te*lt+(it-Me)*le)/(lt-le),Ye=(it*(1-le)+(Te-Me)*(1-lt))/(lt-le);_t+Ye>_+m&&(_=_t,m=Ye)}}}}}var kt=Dr.constrain(r-s.l-s.r,nC,C),st=Dr.constrain(i-s.t-s.b,oC,E),dt=Math.max(0,r-kt),It=Math.max(0,i-st);if(dt){var yt=(h+v)/dt;yt>1&&(h/=yt,v/=yt)}if(It){var de=(_+m)/It;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(f,a)||m$(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ze=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,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,M){if(typeof T=="function")return M?"_function_":null;if(Dr.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&&!Dr.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=Dr.isTypedArray(T);if((L||I)&&T.dtype&&T.shape){var O=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Dr.isArrayBuffer(O)?r$.encode(O):O},M)}return L?T.map(function(q){return v(q,M)}):I?Dr.simpleMap(T,Dr.identity):Dr.isJSDate(T)?Dr.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(f),a)){var _=f._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 ti.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&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ti.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=Dr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}_r.doCalcdata=function(e,t){var r=Os.list(e),i=e._fullData,a=e._fullLayout,s,l,f,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={},f=0;f=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($k(r,i,a),f=0;f{"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=me((t1e,uC)=>{"use strict";uC.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=me(Yl=>{"use strict";var On=ja(),Mc=Bt(),x$=Mc.strTranslate,Bw=Oh(),b$=No().LINE_SPACING,w$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(w$),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 f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=R$(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};S$(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()){f(),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 V=+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,V,W]+")"+x$(-N/2,ee-H/2)});else if(l[0]==="l")W=ee-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=ee;else{var ie=e.attr("text-anchor");V=V-N*(ie==="middle"?.5:ie==="end"?1:0),W=W+ee-H/2}C.attr({x:V,y:W}),r&&r.call(e,E),h(E)})})):f(),e};var T$=/(<|<|<)/g,A$=/(>|>|>)/g;function M$(e){return e.replace(T$,"\\lt ").replace(A$,"\\gt ")}var fC=[["$","$"],["\\(","\\)"]];function S$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){Mc.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=Mc.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:fC},displayAlign:"left"})},v=function(){s=Mc.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=fC},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-"+Mc.randstr({},64);f=On.select("body").append("div").attr({id:O}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(M$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},M=function(){var O=f.select(i===2?".MathJax_SVG":".MathJax"),q=!O.empty()&&f.select("svg").node();if(!q)Mc.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)}f.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 dC={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"},k$={sub:"0.3em",sup:"-0.6em"},C$={sub:"-0.21em",sup:"0.42em"},cC="\u200B",hC=["http:","https:","mailto:","",void 0,":"],pC=Yl.NEWLINES=/(\r\n?|\n)/g,Uw=/(<[^<>]*>)/,Vw=/<(\/?)([^ >]*)(\s+(.*))?>/i,E$=//i;Yl.BR_TAG_ALL=//gi;var mC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,yC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,gC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L$=/(^|[\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&&J_(i)}var D$=/(^|;)\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(Uw),f=[],h="",v=0,m=0;ms?f.push(_.slice(0,Math.max(0,E-s))+a):f.push(_.slice(0,E));break}h=""}}return f.join("")};var P$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},z$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function J_(e){return e.replace(z$,function(t,r){var i;return r.charAt(0)==="#"?i=I$(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=P$[r],i||t})}Yl.convertEntities=J_;function I$(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 R$(e,t){t=t.replace(pC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(Bw.svg,"tspan");On.select(H).attr({class:"line",dy:s*b$+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&Mc.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=E$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Uw),T=0;T<_.length;T++){var M=_[T],C=M.match(Vw),E=C&&C[2].toLowerCase(),L=dC[E];if(E==="br")l();else if(L===void 0)h(a,J_(M));else if(C[1])v(E);else{var I=C[4],O={type:E},q=xd(I,mC);if(q?(q=q.replace(D$,"$1 fill:"),L&&(q+=";"+L)):L&&(q=L),q&&(O.style=q),E==="a"){r=!0;var z=xd(I,yC);if(z){var N=_C(z);N&&(O.href=N,O.target=xd(I,gC)||"_blank",O.popup=xd(I,L$))}}f(O)}}return r}function _C(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 hC.indexOf(a)!==-1&&hC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(pC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Uw),l=0;l{"use strict";var F$=ja(),Q_=Mf(),Ky=Da(),K_=Bt(),xC=Oa(),q$=ud().isValid;function N$(e,t,r){var i=t?K_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(K_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function SC(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 CC=fw(),O$=CC.FORMAT_LINK,U$=CC.DATE_FORMAT_LINK;function V$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Hw:EC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Hw(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: "+O$+"."].join(" ")}function EC(e,t){return Hw(e,t)+[" And for dates see: "+U$+".","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(" ")}LC.exports={axisHoverFormat:V$,descriptionOnlyNumbers:Hw,descriptionWithDates:EC}});var Nu=me((o1e,WC)=>{"use strict";var DC=qo(),B0=Sf(),YC=gc().dash,Yw=yn().extendFlat,PC=Ii().templatedArray,n1e=kf().templateFormatStringDescription,zC=Gw().descriptionWithDates,H$=Zi().ONEDAY,Lf=eo(),G$=Lf.HOUR_PATTERN,Z$=Lf.WEEKDAY_PATTERN,Zw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Y$=Yw({},Zw,{values:Zw.values.slice().concat(["sync"])});function IC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var RC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},FC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},qC={valType:"data_array",editType:"ticks"},NC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function BC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function OC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var UC={valType:"color",dflt:B0.defaultLine,editType:"ticks"},VC={valType:"color",dflt:B0.lightLine,editType:"ticks"};function HC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var GC=Yw({},YC,{editType:"ticks"}),ZC={valType:"boolean",editType:"ticks"};WC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:B0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:DC({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:[Lf.idRegex.x.toString(),Lf.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:[Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"calc"},rangebreaks:PC("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:[Z$,G$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:H$},editType:"calc"}),tickmode:Y$,nticks:IC(),tick0:RC,dtick:FC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:qC,ticktext:{valType:"data_array",editType:"ticks"},ticks:NC,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:BC(),tickwidth:OC(),tickcolor:UC,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:Yw({},YC,{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:DC({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:zC("tick label")},tickformatstops:PC("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:zC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:B0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:ZC,gridcolor:VC,gridwidth:HC(),griddash:GC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:B0.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:B0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Zw,nticks:IC("minor"),tick0:RC,dtick:FC,tickvals:qC,ticks:NC,ticklen:BC("minor"),tickwidth:OC("minor"),tickcolor:UC,gridcolor:VC,gridwidth:HC("minor"),griddash:GC,showgrid:ZC,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 $_=me((s1e,JC)=>{"use strict";var Wi=Nu(),XC=qo(),jC=yn().extendFlat,W$=il().overrideAll;JC.exports=W$({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:XC({}),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:XC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Sc=me((u1e,QC)=>{"use strict";var X$=$_(),j$=b0().counter,J$=E_(),KC=ud().scales,l1e=J$(KC);function e2(e){return"`"+e+"`"}QC.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",f=typeof r.colorscaleDflt=="string"?KC[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 "+e2(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=e2(v+M),O=e2(v+C),q=e2(v+E),z=O+" and "+q,N={};N[C]=N[E]=void 0;var H={};H[M]=!1;var V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[M]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:N},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[L]={valType:"number",dflt:null,editType:"calc",impliedEdits:N},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=X$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:j$("coloraxis"),dflt:null,editType:"calc"}),V}});var Xw=me((f1e,$C)=>{"use strict";var K$=yn().extendFlat,Q$=Sc(),Ww=ud().scales;$C.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ww.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ww.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ww.RdBu,editType:"calc"}},coloraxis:K$({_isSubplotObj:!0,editType:"calc"},Q$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var jw=me((c1e,eE)=>{"use strict";var $$=Bt();eE.exports=function(t){return $$.isPlainObject(t.colorbar)}});var Qw=me(Kw=>{"use strict";var Jw=Da(),tE=Bt(),rE=Zi(),eee=rE.ONEDAY,tee=rE.ONEWEEK;Kw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?eee:1;if(!e)return s;if(Jw(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),f=e.slice(1);return f=Jw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Kw.tick0=function(e,t,r,i){if(t==="date")return tE.cleanDate(e,tE.dateTick0(r,i%tee===0?1:0));if(!(i==="D1"||i==="D2"))return Jw(e)?Number(e):0}});var $w=me((v1e,iE)=>{"use strict";var aE=Qw(),ree=Bt().isArrayOrTypedArray,aee=al().isTypedArraySpec,iee=al().decodeTypedArraySpec;iE.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(O){var q=f[O];return aee(q)&&(q=iee(q)),q!==void 0?q:(h._template||{})[O]}var _=m("tick0"),T=m("dtick"),M=m("tickvals"),C=ree(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=aE.dtick(T,a);h.tick0=aE.tick0(_,a,r.calendar,L)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var t5=me((d1e,oE)=>{"use strict";var e5=Bt(),nE=Nu();oE.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?nE.minor:nE,v=s?"minor.":"",m=e5.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=e5.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=e5.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),M=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");M||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var r5=me((p1e,sE)=>{"use strict";sE.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=me((m1e,lE)=>{"use strict";var t2=Bt(),nee=Ii();lE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=t2.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=nee.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var a5=Bt(),oee=Oa().contrast,uE=Nu(),see=r5(),lee=Wl();fE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");a5.isPlainObject(l)||delete r.labelalias;var f=see(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?oee(s.bgColor):m&&m!==uE.color.dflt?m:v.color;if(a5.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");lee(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uee}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function uee(e,t){function r(a,s){return a5.coerce(e,t,uE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var n5=me((g1e,cE)=>{"use strict";var fee=r5();cE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=fee(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var o5=me((_1e,hE)=>{"use strict";var Uh=Bt(),cee=Ii(),hee=$w(),vee=t5(),dee=i5(),pee=n5(),mee=$_();hE.exports=function(t,r,i){var a=cee.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ie,oe){return Uh.coerce(s,a,mee,ie,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.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"),hee(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),pee(s,a,l,"linear",W),dee(s,a,l,"linear",W),vee(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,ee=Uh.extendFlat({},V,{family:J.family,size:Uh.bigFont(J.size)});Uh.coerceFont(l,"title.font",ee),l("title.side",_?"top":"right")}});var bd=me((x1e,pE)=>{"use strict";var vE=Da(),l5=Bt(),yee=jw(),gee=o5(),dE=ud().isValid,_ee=sa().traceIs;function s5(e,t){var r=t.slice(0,t.length-1);return t?l5.nestedProperty(e,r).get()||{}:e}pE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=s5(t,l),m=s5(r,l),_=s5(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=_ee(r,"contour")&&l5.nestedProperty(r,"contours.coloring").get()||"heatmap",L=M[C];L?(L[2].push(T),L[0]!==E&&(L[0]=!1,l5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):M[C]=[E,r,[T]];return}}var I=v[f+"min"],O=v[f+"max"],q=vE(I)&&vE(O)&&I{"use strict";var mE=Bt(),xee=Ii(),yE=Xw(),bee=bd();gE.exports=function(t,r){function i(_,T){return mE.coerce(t,r,yE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return mE.coerce(s,l,yE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=xee.newContainer(r,h,"coloraxis"),l._name=h,bee(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var wee=Bt(),Tee=Ef().hasColorscale,Aee=Ef().extractOpts;xE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?wee.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var M=Aee(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 wE=Da(),u5=Bt(),Mee=Ef().extractOpts;TE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?u5.nestedProperty(r,l).get():r,h=Mee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,M=function(){return u5.aggNums(Math.min,null,s)},C=function(){return u5.aggNums(Math.max,null,s)};if(m===void 0?m=M():v&&(f._colorAx&&wE(m)?m=Math.min(m,M()):m=M()),_===void 0?_=C():v&&(f._colorAx&&wE(_)?_=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 U0=me((A1e,AE)=>{"use strict";var r2=ud(),O0=Ef();AE.exports={moduleType:"component",name:"colorscale",attributes:Sc(),layoutAttributes:Xw(),supplyLayoutDefaults:_E(),handleDefaults:bd(),crossTraceDefaults:bE(),calc:Qy(),scales:r2.scales,defaultScale:r2.defaultScale,getScale:r2.get,isValidScale:r2.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var rs=me((M1e,SE)=>{"use strict";var ME=Bt(),See=al().isTypedArraySpec;SE.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 ME.isPlainObject(t)&&(ME.isArrayOrTypedArray(t.size)||See(t.size))}}});var f5=me((S1e,kE)=>{"use strict";var kee=Da();kE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return kee(h)&&h>0?Math.max(h,s):0}}});var kc=me(Bo=>{"use strict";var a2=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{LE.exports=Pee;var c5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Dee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Pee(e){var t=[];return e.replace(Dee,function(r,i,a){var s=i.toLowerCase();for(a=Iee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==c5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var Ree=h5(),lr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",DE=Math.sqrt(2),Vh=Math.sqrt(3),v5=Math.PI,d5=Math.cos,p5=Math.sin;FE.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/DE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+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),f=lr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"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),f=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"+f+","+_+"L0,"+T+"L-"+f+","+_+"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),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+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),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+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/DE,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=v5/2.5,a=2*e*d5(i),s=2*e*p5(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=v5/4,a=2*e*d5(i),s=2*e*p5(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 PE,zE,IE,RE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(IE===e&&RE===t&&PE===r)return zE;IE=e,RE=t,PE=r;function i(L,I){var O=d5(L),q=p5(L),z=I[0],N=I[1]+(t||0);return[z*O-N*q,z*q+N*O]}for(var a=e/180*v5,s=0,l=0,f=Ree(r),h="",v=0;v{"use strict";var ao=ja(),_i=Bt(),Fee=_i.numberFormat,Md=Da(),b5=Mf(),n2=sa(),Ao=Oa(),qee=U0(),eg=_i.strTranslate,o2=ro(),Nee=Oh(),Bee=No(),Oee=Bee.LINE_SPACING,WE=p_().DESELECTDIM,Uee=rs(),Vee=f5(),Hee=kc().appendArrayPointValue,xr=aL.exports={};xr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Ao.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",m5(Zee(m))),h&&e.style("text-shadow",h==="auto"?o2.makeTextShadow(Ao.contrast(s)):m5(h)),v&&e.style("text-decoration-line",m5(Yee(v)))};function m5(e){return e==="none"?void 0:e}var Gee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Zee(e){return Gee[e]}function Yee(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",eg(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,f=s.ycalendar,h=n2.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){xr.hideOutsideRangePoint(v,ao.select(this),r,i,l,f)})})}};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,f=a||s.dash||"";Ao.stroke(t,i||s.color),xr.dashLine(t,f,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,f=i||s.dash||"";ao.select(this).call(Ao.stroke,r||s.color).call(xr.dashLine,f,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 XE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=xr.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){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,f,_,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(KE,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(Ao.fill,t.fillcolor)}xr.singleFillStyle=function(e,t){var r=ao.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};XE(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&&XE(a,i[0].trace,t,r)})};var NE=qE();xr.symbolNames=[];xr.symbolFuncs=[];xr.symbolBackOffs=[];xr.symbolNeedLines={};xr.symbolNoDot={};xr.symbolNoFill={};xr.symbolList=[];Object.keys(NE).forEach(function(e){var t=NE[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 Wee=xr.symbolNames.length,Xee="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>=Wee||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?Xee:"")}var BE=Fee("~f"),JE={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=JE[i];return KE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function KE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.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=A5(e,r),_=T5(e,r);t.attr("d",jE(v,h,m,_))}var T=!1,M,C,E;if(e.so)E=f.outlierwidth,C=f.outliercolor,M=l.outliercolor;else{var L=(f||{}).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):_i.isArrayOrTypedArray(f.color)?C=Ao.defaultLine:C=f.color,_i.isArrayOrTypedArray(l.color)&&(M=Ao.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||(f||{}).dash;if(I&&xr.dashLine(t,I,E),e.om)t.call(Ao.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,_i.isArrayOrTypedArray(q)&&(q=q[0],JE[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 V=e.mgc;V?T=!0:V=O.color;var W=r.uid;T&&(W+="-"+e.i),xr.gradient(t,a,W,q,[[0,V],[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),fe=z.fgopacity,le=N(z.size,e.i,8),Te=N(z.solidity,e.i,.3);J=J||e.mcc||_i.isArrayOrTypedArray(z.shape)||_i.isArrayOrTypedArray(z.path)||_i.isArrayOrTypedArray(z.bgcolor)||_i.isArrayOrTypedArray(z.fgcolor)||_i.isArrayOrTypedArray(z.size)||_i.isArrayOrTypedArray(z.solidity);var Se=r.uid;J&&(Se+="-"+e.i),xr.pattern(t,"point",a,Se,H,le,Te,e.mcc,z.fillmode,oe,ie,fe)}else _i.isArrayOrTypedArray(M)?Ao.fill(t,M[e.i]):Ao.fill(t,M);E&&Ao.stroke(t,C)}};xr.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=xr.tryColorscale(r,""),t.lineScale=xr.tryColorscale(r,"line"),n2.traceIs(e,"symbols")&&(t.ms2mrc=Uee.isBubble(e)?Vee(e):function(){return(r.size||6)/2}),e.selectedpoints&&_i.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||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(_i.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(z){var N=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:N:_?v:WE*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 n2.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||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Ao.addOpacity(_,WE))},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){Ao.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",jE(xr.symbolNumber(f),h,A5(l,t),T5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=ao.select(this),f=0;f0?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(f){var h=ao.select(this),v=s?_i.extractOption(f,t,"txt","texttemplate"):_i.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};Hee(T,t,f.i),v=_i.texttemplateString({data:[T,f,t._meta],fallback:t.texttemplatefallback,labels:_,locale:l._d3locale,template:v})}var M=f.tp||t.textposition,C=$E(f,t),E=i?i(f):f.tc||t.textfont.color;h.call(xr.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:C,color:E}).text(v).call(o2.convertToTspans,r).call(QE,M,C,f.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,f=$E(i,t);Ao.fill(a,s);var h=n2.traceIs(t,"bar-like");QE(a,l,f,i.mrc2||i.mrc,h)})}};var OE=.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=rL;xr.makeTester=function(){var e=_i.ensureSingleById(ao.select("body"),"svg","js-plotly-tester",function(r){r.attr(Nee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=_i.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 g5=0,Kee=1e4;xr.bBox=function(e,t,r){r||(r=UE(e));var i;if(r){if(i=xr.savedBBoxes[r],i)return _i.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=UE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){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+"~"+f,i=xr.savedBBoxes[r],i)return _i.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(o2.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 g5>=Kee&&(xr.savedBBoxes={},g5=0),r&&(xr.savedBBoxes[r]=M),g5++,_i.extendFlat({},M)};function UE(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",w5(t,r))};function w5(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,f){return[l,f].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+=eg(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,f){return[l,f].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 Qee=/\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(Qee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var $ee=/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),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match($ee);t===1&&r===1?i=[]:i=[eg(l,f),"scale("+t+","+r+")",eg(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function T5(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=T5;var $y=Math.atan2,wd=Math.cos,H0=Math.sin;function VE(e,t){var r=t[0],i=t[1];return[r*wd(e)-i*H0(e),r*H0(e)+i*wd(e)]}var HE,GE,ZE,YE,_5,x5;function A5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||_i.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 f=t._xA,h=t._yA;if(f&&h)i=f.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=$y(T[1]-a,T[0]-i),C=$y(_[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=HE/180*Math.PI,q=GE/180*Math.PI,z=O-L,N=wd(q)*H0(z),H=H0(q)*wd(I)-wd(q)*H0(I)*wd(z);E=-$y(N,H)-Math.PI,HE=v,GE=m}var V=VE(M,[wd(E),0]),W=VE(C,[H0(E),0]);r=$y(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(x5===t.uid&&e.i===_5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(x5===t.uid&&e.i===_5+1&&Md(i)&&Md(a)){var J=i-ZE,ee=a-YE,ie=t.line&&t.line.shape||"",oe=ie.slice(ie.length-1);oe==="h"&&(ee=0),oe==="v"&&(J=0),r+=$y(ee,J)/Math.PI*180+90}else r=null}return ZE=i,YE=a,_5=e.i,x5=t.uid,r}xr.getMarkerAngle=A5});var tg=me((D1e,sL)=>{"use strict";var G0=ja(),ete=Da(),tte=to(),M5=sa(),Sd=Bt(),iL=Sd.strTranslate,s2=xi(),l2=Oa(),Z0=ro(),nL=p_(),rte=No().OPPOSITE_SIDE,oL=/ [XY][0-9]* /,S5=1.6,k5=1.6;function ate(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=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,V=L.textcase,W=L.lineposition,J=L.shadow,ee=r.subtitlePropName,ie=!!ee,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},le=(fe.text||"").trim(),Te=!1,Se=1,Me=fe.font,Ae=Me.family,pe=Me.size,ke=Me.color,Ee=Me.weight,Xe=Me.style,lt=Me.variant,it=Me.textcase,_t=Me.lineposition,Ye=Me.shadow,kt;s==="title.text"?kt="titleText":s.indexOf("axis")!==-1?kt="axisTitleText":s.indexOf("colorbar")!==-1&&(kt="colorbarTitleText");var st=e._context.edits[kt];function dt(Ut,Dt){return Ut===void 0||Dt===void 0?!1:Ut.replace(oL," % ")===Dt.replace(oL," % ")}C===""?T=0:dt(C,l)&&(st||(C=""),T=.2,E=!0),ie&&(le===""?Se=0:dt(le,oe)&&(st||(le=""),Se=.2,Te=!0)),r._meta?C=Sd.templateString(C,r._meta):i._meta&&(C=Sd.templateString(C,i._meta));var It=C||le||st,yt;_||(_=Sd.ensureSingle(i._infolayer,"g","g-"+t),yt=i._hColorbarMoveTitle);var de=_.selectAll("text."+t).data(It?[0]:[]);de.enter().append("text"),de.text(C).attr("class",t),de.exit().remove();var ze=null,_e=t+"-subtitle",Ue=le||st;if(ie&&(ze=_.selectAll("text."+_e).data(Ue?[0]:[]),ze.enter().append("text"),ze.text(le).attr("class",_e),ze.exit().remove()),!It)return _;function at(Ut,Dt){Sd.syncOrAsync([Je,Ct],{title:Ut,subtitle:Dt})}function Je(Ut){var Dt=Ut.title,Mt=Ut.subtitle,Zt;!m&&yt&&(m={}),m?(Zt="",m.rotate&&(Zt+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||yt)&&(Zt+=iL(0,(m.offset||0)-(yt||0)))):Zt=null,Dt.attr("transform",Zt);function Yt(ht){if(ht){var pt=G0.select(ht.node().parentNode).select("."+_e);if(!pt.empty()){var Ot=ht.node().getBBox();if(Ot.height){var er=Ot.y+Ot.height+S5*pe;pt.attr("y",er)}}}}if(Dt.style("opacity",T*l2.opacity(q)).call(s2.font,{color:l2.rgb(q),size:G0.round(O,2),family:I,weight:z,style:N,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(Z0.convertToTspans,e,Yt),Mt&&!Mt.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+S5*pe:ut.y+ut.height+k5*pe,Et=Sd.extendFlat({},v,{y:Pr});Mt.attr("transform",Zt),Mt.style("opacity",Se*l2.opacity(ke)).call(s2.font,{color:l2.rgb(ke),size:G0.round(pe,2),family:Ae,weight:Ee,style:Xe,variant:lt,textcase:it,shadow:Ye,lineposition:_t}).attr(Et).call(Z0.convertToTspans,e)}return tte.previousPromises(e)}function Ct(Ut){var Dt=Ut.title,Mt=G0.select(Dt.node().parentNode);if(h&&h.selection&&h.side&&C){Mt.attr("transform",null);var Zt=rte[h.side],Yt=h.side==="left"||h.side==="top"?-1:1,Be=ete(h.pad)?h.pad:2,ut=s2.bBox(Mt.node()),sr={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Et in Pr)for(var ht in Pr[Et]){var pt=Pr[Et][ht];sr[ht]=Math.max(sr[ht],pt)}var Ot={left:sr.l,top:sr.t,right:i.width-sr.r,bottom:i.height-sr.b},er=h.maxShift||Yt*(Ot[h.side]-ut[h.side]),Ht=0;if(er<0)Ht=er;else{var Kt=h.offsetLeft||0,pr=h.offsetTop||0;ut.left-=Kt,ut.right-=Kt,ut.top-=pr,ut.bottom-=pr,h.selection.each(function(){var ur=s2.bBox(this);Sd.bBoxIntersect(ut,ur,Be)&&(Ht=Math.max(Ht,Yt*(ur[h.side]-ut[Zt])+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];Mt.attr("transform",iL(yr[0],yr[1]))}}}de.call(at,ze);function wt(Ut,Dt){Ut.text(Dt).on("mouseover.opacity",function(){G0.select(this).transition().duration(nL.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(nL.HIDE_PLACEHOLDER).style("opacity",0)})}if(st&&(C?de.on(".opacity",null):(wt(de,l),E=!0),de.call(Z0.makeEditable,{gd:e}).on("edit",function(Ut){f!==void 0?M5.call("_guiRestyle",e,s,Ut,f):M5.call("_guiRelayout",e,s,Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(Ut){this.text(Ut||" ").call(Z0.positionText,v.x,v.y)}),ie)){if(ie&&!C){var xt=de.node().getBBox(),qt=xt.y+xt.height+k5*pe;ze.attr("y",qt)}le?ze.on(".opacity",null):(wt(ze,oe),Te=!0),ze.call(Z0.makeEditable,{gd:e}).on("edit",function(Ut){M5.call("_guiRelayout",e,"title.subtitle.text",Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(Ut){this.text(Ut||" ").call(Z0.positionText,ze.attr("x"),ze.attr("y"))})}return de.classed("js-placeholder",E),ze&&!ze.empty()&&ze.classed("js-placeholder",Te),_}sL.exports={draw:ate,SUBTITLE_PADDING_EM:k5,SUBTITLE_PADDING_MATHJAX_EM:S5}});var m2=me((P1e,hL)=>{"use strict";var ite=ja(),nte=y0().utcFormat,Ri=Bt(),ote=Ri.numberFormat,Df=Da(),Hh=Ri.cleanNumber,ste=Ri.ms2DateTime,lL=Ri.dateTime2ms,Pf=Ri.ensureNumber,uL=Ri.isArrayOrTypedArray,Gh=Zi(),u2=Gh.FP_SAFE,Bu=Gh.BADNUM,lte=Gh.LOG_CLIP,ute=Gh.ONEWEEK,f2=Gh.ONEDAY,c2=Gh.ONEHOUR,fL=Gh.ONEMIN,cL=Gh.ONESEC,h2=jn(),p2=eo(),v2=p2.HOUR_PATTERN,d2=p2.WEEKDAY_PATTERN;function rg(e){return Math.pow(10,e)}function C5(e){return e!=null}hL.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],V=t.range[1];return .5*(H+V-2*lte*Math.abs(H-V))}else return Bu}function l(z,N,H,V){if((V||{}).msUTC&&Df(z))return+z;var W=lL(z,H||t.calendar);if(W===Bu)if(Df(z)){z=+z;var J=Math.floor(Ri.mod(z+.05,1)*10),ee=Math.round(z-J/10);W=lL(new Date(ee))+J/10}else return Bu;return W}function f(z,N,H){return ste(z,N,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(C5(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),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*z,J=0,ee=0;eeoe)J=ee+1;else{J=W<(ie+oe)/2?ee:ee+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(z,t._m2,fe):0},I=function(z){var N=t._rangebreaks.length;if(!N)return E(z,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return E(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Pf,t.l2c=t.type==="log"?rg:Pf,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 rg(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=Pf,t.d2p=t.r2p=function(z){return t.l2p(Hh(z))},t.p2d=t.p2r=I,t.cleanPos=Pf):t.type==="log"?(t.d2r=t.d2l=function(z,N){return s(Hh(z),N)},t.r2d=t.r2c=function(z){return rg(Hh(z))},t.d2c=t.r2l=Hh,t.c2d=t.l2r=Pf,t.c2r=s,t.l2d=rg,t.d2p=function(z,N){return t.l2p(t.d2r(z,N))},t.p2d=function(z){return rg(I(z))},t.r2p=function(z){return t.l2p(Hh(z))},t.p2r=I,t.cleanPos=Pf):t.type==="date"?(t.d2r=t.r2d=Ri.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(z,N,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,N,H){return f(I(z),N,H)},t.cleanPos=function(z){return Ri.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=Pf,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:Pf(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=Pf,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:Pf(z)},t.setupMultiCategory=function(z){var N=t._traceIndices,H,V,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var ee=r[h2.id2name(J)];N=N.concat(ee._traceIndices)}}var ie=[[0,{}],[0,{}]],oe=[];for(H=0;Hee[1]&&(V[J?0:1]=H),V[0]===V[1]){var ie=t.l2r(N),oe=t.l2r(H);if(N!==void 0){var fe=ie+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var le=oe+1;N!==void 0&&(le=Math.max(le,ie)),V[J?0:1]=le}}}},t.cleanRange=function(z,N){t._cleanRange(z,N),t.limitRange(z)},t._cleanRange=function(z,N){N||(N={}),z||(z="range");var H=Ri.nestedProperty(t,z).get(),V,W;if(t.type==="date"?W=Ri.dfltRange(t.calendar):a==="y"?W=p2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=N.dfltRange||p2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){Ri.nestedProperty(t,z).set(W);return}var J=H[0]===null,ee=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=Ri.cleanDate(H[0],Bu,t.calendar),H[1]=Ri.cleanDate(H[1],Bu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!Ri.isDateTime(H[V],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ie=Ri.constrain(t.r2l(H[0]),Ri.MIN_MS+1e3,Ri.MAX_MS-1e3);H[0]=t.l2r(ie-1e3),H[1]=t.l2r(ie+1e3);break}}else{if(!Df(H[V]))if(!(J||ee)&&Df(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[z]=W;break}if(H[V]<-u2?H[V]=-u2:H[V]>u2&&(H[V]=u2),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=h2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var V=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),ee=t.r2l(t[V][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,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,ee),Math.max(J,ee)),t._rangebreaks.length){for(oe=0;oeee&&(le=!le),le&&t._rangebreaks.reverse();var Te=le?-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=V&&J=V&&z=Ye.min&&(XeYe.max&&(Ye.max=lt),it=!1)}it&&ee.push({min:Xe,max:lt})}};for(H=0;H{"use strict";var vL=Da(),E5=Bt(),fte=Zi().BADNUM,y2=E5.isArrayOrTypedArray,cte=E5.isDateTime,hte=E5.cleanNumber,dL=Math.round;mL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(y2(a)&&!a.length)return"-";if(!s&&yte(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function pL(e){return Math.max(1,(e-1)/1e3)}function mte(e,t){for(var r=e.length,i=pL(r),a=0,s=0,l={},f=0;fa*2}function yte(e){return y2(e[0])&&y2(e[1])}});var ag=me((I1e,AL)=>{"use strict";var gte=ja(),xL=Da(),Zh=Bt(),g2=Zi().FP_SAFE,_te=sa(),xte=xi(),bL=jn(),bte=bL.getFromId,wte=bL.isLinked;AL.exports={applyAutorangeOptions:TL,getAutoRange:D5,makePadFn:P5,doAutoRange:Ate,findExtremes:Mte,concatExtremes:R5};function D5(e,t){var r,i,a=[],s=e._fullLayout,l=P5(s,t,0),f=P5(s,t,1),h=R5(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)-f(V),ee>z?ie/ee>N&&(W=H,J=V,N=ie/ee):ie/q>N&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},N=ie/q));function oe(Me,Ae){return Math.max(Me,f(Ae))}if(_===T){var fe=_-1,le=_+1;if(I)if(_===0)a=[0,1];else{var Te=(_>0?m:v).reduce(oe,0),Se=_/(1-Math.min(.5,Te/q));a=_>0?[0,Se]:[Se,0]}else O?a=[Math.max(0,fe),Math.max(1,le)]:a=[fe,le]}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-yL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-N*l(W),J.val+N*f(J)];return a=TL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Zh.simpleMap(a,t.l2r||Number)}function yL(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),V=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-g2&&(O=T),T>q&&T=ie;_--)ee(_);return{min:i,max:a,opts:r}}function z5(e,t,r,i){wL(e,t,r,i,Ste)}function I5(e,t,r,i){wL(e,t,r,i,kte)}function wL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function _L(e){return xL(e)&&Math.abs(e)=t}function Cte(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&_2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&_2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Ete(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&_2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&_2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function _2(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=Cte(r,t),i=Ete(i,t),[r,i]}});var Xi=me((F1e,WL)=>{"use strict";var Xl=ja(),Un=Da(),Y0=to(),ng=sa(),jr=Bt(),W0=jr.strTranslate,kd=ro(),Lte=tg(),og=Oa(),ol=xi(),Dte=Nu(),ML=Qw(),R1e=eo(),Mo=Zi(),Pte=Mo.ONEMAXYEAR,w2=Mo.ONEAVGYEAR,T2=Mo.ONEMINYEAR,zte=Mo.ONEMAXQUARTER,B5=Mo.ONEAVGQUARTER,A2=Mo.ONEMINQUARTER,Ite=Mo.ONEMAXMONTH,X0=Mo.ONEAVGMONTH,M2=Mo.ONEMINMONTH,sl=Mo.ONEWEEK,as=Mo.ONEDAY,Yh=as/2,If=Mo.ONEHOUR,sg=Mo.ONEMIN,S2=Mo.ONESEC,Rte=Mo.ONEMILLI,Fte=Mo.ONEMICROSEC,Cd=Mo.MINUS_SIGN,C2=Mo.BADNUM,O5={K:"zeroline"},U5={K:"gridline",L:"path"},V5={K:"minor-gridline",L:"path"},FL={K:"tick",L:"path"},SL={K:"tick",L:"text"},kL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},E2=No(),ig=E2.MID_SHIFT,Ed=E2.CAP_SHIFT,lg=E2.LINE_SPACING,qte=E2.OPPOSITE_SIDE,k2=3,$t=WL.exports={};$t.setConvert=m2();var Nte=L5(),Rf=jn(),Bte=Rf.idSort,Ote=Rf.isLinked;$t.id2name=Rf.id2name;$t.name2id=Rf.name2id;$t.cleanId=Rf.cleanId;$t.list=Rf.list;$t.listIds=Rf.listIds;$t.getFromId=Rf.getFromId;$t.getFromTrace=Rf.getFromTrace;var qL=ag();$t.getAutoRange=qL.getAutoRange;$t.findExtremes=qL.findExtremes;var Ute=1e-4;function Y5(e){var t=(e[1]-e[0])*Ute;return[e[0]-t,e[1]+t]}$t.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.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 f=i.charAt(i.length-1);var h=r._fullLayout._subplots[f+"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 f=Number(r.slice(1));s.exactYears>l&&f%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){if(!t.minor.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 f=Un(t.dtick),h=Un(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?F5(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:LL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":F5(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"?F5(v,m)||(e.dtick=LL(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.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function F5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function LL(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 f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=T2?v>=T2&&v<=Pte?_=v:_=w2:r===B5&&m>=A2?v>=A2&&v<=zte?_=v:_=B5:m>=M2?v>=M2&&v<=Ite?_=v:_=X0:r===sl&&m>=sl?_=sl:m>=as?_=as:r===Yh&&m>=Yh?_=Yh:r===If&&m>=If&&(_=If);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",f=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]=(q?0:1);z--){var N=!z;z?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=z?t:jr.extendFlat({},t,t.minor);if(N?$t.prepMinorTicks(H,t,r):$t.prepTicks(H,r),H.tickmode==="array"){z?(L=[],C=DL(t,!N)):(I=[],E=DL(t,!N));continue}if(H.tickmode==="sync"){L=[],C=Wte(t);continue}var V=Y5(v),W=V[0],J=V[1],ee=Un(H.dtick),ie=i==="log"&&!(ee||H.dtick.charAt(0)==="L"),oe=$t.tickFirst(H,r);if(z){if(t._tmin=oe,oe=J:le<=J;le=$t.tickIncrement(le,Me,m,a)){if(z&&Te++,H.rangebreaks&&!m){if(le=T)break}if(L.length>M||le===fe)break;fe=le;var Ae={value:le};z?(ie&&le!==(le|0)&&(Ae.simpleLabel=!0),s>1&&Te%s&&(Ae.skipLabel=!0),L.push(Ae)):(Ae.minor=!0,I.push(Ae))}}if(!I||I.length<2)h=!1;else{var pe=(I[1].value-I[0].value)*(f?-1:1);gre(pe,t.tickformat)||(h=!1)}if(!h)O=L;else{var ke=L.concat(I);l&&L.length&&(ke=ke.slice(1)),ke=ke.sort(function(qt,Ut){return qt.value-Ut.value}).filter(function(qt,Ut,Dt){return Ut===0||qt.value!==Dt[Ut-1].value});var Ee=ke.map(function(qt,Ut){return qt.minor===void 0&&!qt.skipLabel?Ut:null}).filter(function(qt){return qt!==null});Ee.forEach(function(qt){h.map(function(Ut){var Dt=qt+Ut;Dt>=0&&Dt-1;It--){if(L[It].drop){L.splice(It,1);continue}L[It].value=N5(L[It].value,t);var _e=t.c2p(L[It].value);(yt?ze>_e-de:ze<_e+de)?L.splice(m?It+1:It,1):ze=_e}}J5(t)&&Math.abs(v[1]-v[0])===360&&L.pop(),t._tmax=(L[L.length-1]||{}).value,t._prevDateHead="",t._inCalcTicks=!0;var Ue,at=function(qt){qt.text="",t._prevDateHead=Ue};L=L.concat(I);function Je(qt,Ut){var Dt=$t.tickText(qt,Ut.value,!1,Ut.simpleLabel),Mt=Ut.periodX;return Mt!==void 0&&(Dt.periodX=Mt,(Mt>T||Mt<_)&&(Mt>T&&(Dt.periodX=T),Mt<_&&(Dt.periodX=_),at(Dt))),Dt}var Ct;for(It=0;Ita&&Tw2)t/=w2,i=a(10),e.dtick="M"+12*zf(t,i,x2);else if(s>X0)t/=X0,e.dtick="M"+zf(t,1,PL);else if(s>as){if(e.dtick=zf(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Xte),!r){var l=$t.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=jr.dateTick0(e.calendar,2):e.tick0=jr.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>If?e.dtick=zf(t,If,PL):s>sg?e.dtick=zf(t,sg,zL):s>S2?e.dtick=zf(t,S2,zL):(i=a(10),e.dtick=zf(t,i,x2))}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"+zf(t,i,x2)}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))):J5(e)?(e.tick0=0,i=1,e.dtick=zf(t,i,jte)):(e.tick0=0,i=a(10),e.dtick=zf(t,i,x2));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 UL(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>=sg&&a<=16||t>=If)e._tickround="M";else if(t>=S2&&a<=19||t>=sg)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 f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(j0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!W5(h)||j0(e.exponentformat)&&e.exponentformat==="SI extended"&&!X5(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 f=t==="D2"?OL:BL,h=e+a*.01,v=jr.roundUp(jr.mod(h,1),f,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"+f;else{var v=fg(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function Kte(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=ug(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"||j0(C)&&C!=="SI extended"&&W5(T)||j0(C)&&C==="SI extended"&&X5(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=ug(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 Qte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function $te(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 ere(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ug(t.x,e,a,i)}function tre(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=rre(s);if(l[1]>=100)t.text=ug(jr.deg2rad(t.x),e,a,i);else{var f=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(""),f&&(t.text=Cd+t.text)}}}else t.text=ug(t.x,e,a,i)}function rre(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)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 HL=["f","p","n","\u03BC","m","","k","M","G","T"],are=["q","r","y","z","a",...HL,"P","E","Z","Y","R","Q"],j0=e=>["SI","SI extended","B"].includes(e);function W5(e){return e>14||e<-15}function X5(e){return e>32||e<-30}function ire(e,t){return j0(t)?!!(t==="SI extended"&&X5(e)||t!=="SI extended"&&W5(e)):!1}function ug(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=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]};UL(m),s=(Number(m._tickround)||0)+4,f=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"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),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(f&&l!=="hide"){ire(f,l)&&(l="power");var C;f<0?C=Cd+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":j0(l)&&(e+=l==="SI extended"?are[f/3+10]:HL[f/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",""))*X0}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,f;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 f={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=f,r.overlayingShiftedAx=l;var m=$t.drawOne(e,v,r);return v._shiftPusher&&Z5(v,v._fullDepth||0,f,!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,f;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),Z5(t,C,i,!0),Z5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=yre(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?Mt.bottom-Ut:0,Dt))));var ut=0,sr=0;if(t._shiftPusher&&(ut=Math.max(Dt,Mt.height>0?xt==="l"?Ut-Mt.left:Mt.right-Ut:0),t.title.text!==h._dfltTitle[m]&&(sr=(t._titleStandoff||0)+(t._titleScoot||0),xt==="l"&&(sr+=RL(t))),t._fullDepth=Math.max(ut,sr)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Et=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(xt==="b"?Zt[xt]=t._depth:(Zt[xt]=t._depth=Math.max(Mt.width>0?Ut-Mt.top:0,Dt),Pr.reverse()),Mt.width>0){var ht=Mt.right-(t._offset+t._length);ht>0&&(Zt.xr=1,Zt.r=ht);var pt=t._offset-Mt.left;pt>0&&(Zt.xl=0,Zt.l=pt)}}else if(xt==="l"?(t._depth=Math.max(Mt.height>0?Ut-Mt.left:0,Dt),Zt[xt]=t._depth-Et):(t._depth=Math.max(Mt.height>0?Mt.right-Ut:0,Dt),Zt[xt]=t._depth+Et,Pr.reverse()),Mt.height>0){var Ot=Mt.bottom-(t._offset+t._length);Ot>0&&(Zt.yb=0,Zt.b=Ot);var er=t._offset-Mt.top;er>0&&(Zt.yt=1,Zt.t=er)}Zt[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Pr[0]],t.title.text!==h._dfltTitle[m]&&(Zt[xt]+=RL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Yt={x:0,y:0,r:0,l:0,t:0,b:0},Yt[qt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Yt[qt]+=Dt),t.mirror===!0||t.mirror==="ticks"?Yt[_]=t._anchorAxis.domain[Pr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Yt[_]=[t._counterDomainMin,t._counterDomainMax][Pr[1]]))}wt&&(Be=ng.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(IL(Zt,t.automargin),IL(Yt,t.automargin)),Y0.autoMargin(e,j5(t),Zt),Y0.autoMargin(e,ZL(t),Yt),Y0.autoMargin(e,YL(t),Be)}),jr.syncOrAsync(Je)}};function IL(e,t){if(e){var r=Object.keys(kL).reduce(function(i,a){return t.indexOf(a)!==-1&&kL[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 nre(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push(jr.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return W0(a+e._offset+e.l2p(H5(T))+r,s+i)}:function(T){return W0(s+i,a+e._offset+e.l2p(H5(T))+r)}};function H5(e){return e.periodX!==void 0?e.periodX:e.x}function ure(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"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=k2,M=e.tickfont?e.tickfont.size:12;return(f||a)&&(_+=M*Ed,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=k2),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),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};$t.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||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,V=e.side,W=e._id.charAt(0),J=e.tickangle,ee;if(W==="x")ee=!_&&V==="bottom"||_&&V==="top",N=ee?1:-1,_&&(N*=-1),O=C*N,q=t+M*N,z=ee?1:-.2,Math.abs(J)===90&&(_?z+=ig:J===-90&&V==="bottom"?z=Ed:J===90&&V==="top"?z=ig:z=.5,H=ig/2*(J/90)),I.xFn=function(fe){return fe.dx+O+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*z},I.anchorFn=function(fe,le){if(m){if(f)return"end";if(h)return"start"}return!Un(le)||le===0||le===180?"middle":le*N<0!==_?"end":"start"},I.heightFn=function(fe,le,Te){return le<-60||le>60?-.5*Te:e.side==="top"!==_?-Te:0};else if(W==="y"){if(ee=!_&&V==="left"||_&&V==="right",N=ee?1:-1,_&&(N*=-1),O=M,q=C*N,z=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="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(fe){return fe.dx+t-(O+fe.fontSize*z)*N+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*ig},I.anchorFn=function(fe,le){return Un(le)&&Math.abs(le)===90?"middle":ee?"end":"start"},I.heightFn=function(fe,le,Te){return e.side==="right"&&(le*=-1),le<-30?-Te:le<30?-.5*Te:0}}return I};function L2(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,L2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return og.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),D2(t,[FL]),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}):[],f=r.counterAxis;if(f&&$t.shouldShowZeroLine(e,t,f))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,L2);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 og.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)}}D2(t,[U5,V5])}};$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,f){return Bte(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(og.stroke,t.zerolinecolor||og.defaultLine).style("stroke-width",ol.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),D2(t,[O5])};$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",f=r.vals.filter(function(pe){return pe.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],L2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(pe){var ke=Xl.select(this),Ee=e._promises.length;ke.call(kd.positionText,h.xFn(pe),h.yFn(pe)).call(ol.font,{family:pe.font,size:pe.fontSize,color:pe.fontColor,weight:pe.fontWeight,style:pe.fontStyle,variant:pe.fontVariant,textcase:pe.fontTextcase,lineposition:pe.fontLineposition,shadow:pe.fontShadow}).text(pe.text).call(kd.convertToTspans,e),e._promises[Ee]?T.push(e._promises.pop().then(function(){M(ke,v)})):M(ke,v)}),D2(t,[SL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(pe){Xl.select(this).select("text").call(kd.positionText,h.xFn(pe),h.yFn(pe))});function M(pe,ke){pe.each(function(Ee){var Xe=Xl.select(this),lt=Xe.select(".text-math-group"),it=h.anchorFn(Ee,ke),_t=r.transFn.call(Xe.node(),Ee)+(Un(ke)&&+ke!=0?" rotate("+ke+","+h.xFn(Ee)+","+(h.yFn(Ee)-Ee.fontSize/2)+")":""),Ye=kd.lineCount(Xe),kt=lg*Ee.fontSize,st=h.heightFn(Ee,Un(ke)?+ke:0,(Ye-1)*kt);if(st&&(_t+=W0(0,st)),lt.empty()){var dt=Xe.select("text");dt.attr({transform:_t,"text-anchor":it}),dt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var It=ol.bBox(lt.node()).width,yt=It*{end:-.5,start:.5}[it];lt.attr("transform",_t+W0(yt,0))}})}t._adjustTickLabelsOverflow=function(){var pe=t.ticklabeloverflow;if(!(!pe||pe==="allow")){var ke=pe.indexOf("hide")!==-1,Ee=t._id.charAt(0)==="x",Xe=0,lt=Ee?e._fullLayout.width:e._fullLayout.height;if(pe.indexOf("domain")!==-1){var it=jr.simpleMap(t.range,t.r2l);Xe=t.l2p(it[0])+t._offset,lt=t.l2p(it[1])+t._offset}var _t=Math.min(Xe,lt),Ye=Math.max(Xe,lt),kt=t.side,st=1/0,dt=-1/0;_.each(function(ze){var _e=Xl.select(this),Ue=_e.select(".text-math-group");if(Ue.empty()){var at=ol.bBox(_e.node()),Je=0;Ee?(at.right>Ye||at.left<_t)&&(Je=1):(at.bottom>Ye||at.top+(t.tickangle?0:ze.fontSize/4)<_t)&&(Je=1);var Ct=_e.select("text");Je?ke&&Ct.style("display","none"):Ct.node().style.display!=="none"&&(Ct.style("display",null),kt==="bottom"||kt==="right"?st=Math.min(st,Ee?at.top:at.left):st=-1/0,kt==="top"||kt==="left"?dt=Math.max(dt,Ee?at.bottom:at.right):dt=1/0)}});for(var It in i._plots){var yt=i._plots[It];if(!(t._id!==yt.xaxis._id&&t._id!==yt.yaxis._id)){var de=Ee?yt.yaxis:yt.xaxis;de&&(de["_visibleLabelMin_"+t._id]=st,de["_visibleLabelMax_"+t._id]=dt)}}}},t._hideCounterAxisInsideTickLabels=function(pe){var ke=t._id.charAt(0)==="x",Ee=[];for(var Xe in i._plots){var lt=i._plots[Xe];t._id!==lt.xaxis._id&&t._id!==lt.yaxis._id||Ee.push(ke?lt.yaxis:lt.xaxis)}Ee.forEach(function(it,_t){it&&fg(it)&&(pe||[O5,V5,U5,FL,SL]).forEach(function(Ye){var kt=Ye.K==="tick"&&Ye.L==="text"&&t.ticklabelmode==="period",st=i._plots[t._mainSubplot],dt;if(Ye.K===O5.K){var It=s?st.zerolinelayerAbove:st.zerolinelayer;dt=It.selectAll("."+t._id+"zl")}else Ye.K===V5.K?dt=st.minorGridlayer.selectAll("."+t._id):Ye.K===U5.K?dt=st.gridlayer.selectAll("."+t._id):dt=st[t._id.charAt(0)+"axislayer"];dt.each(function(){var yt=Xl.select(this);Ye.L&&(yt=yt.selectAll(Ye.L)),yt.each(function(de){var ze=t.l2p(kt?H5(de):de.x)+t._offset,_e=Xl.select(this);zet["_visibleLabelMin_"+it._id]?_e.style("display","none"):Ye.K==="tick"&&!_t&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},M(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var E=null;function L(){if(M(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){E=t.autotickangles[0];var pe=0,ke=[],Ee,Xe=1;_.each(function(Zt){pe=Math.max(pe,Zt.fontSize);var Yt=t.l2p(Zt.x),Be=G5(this),ut=ol.bBox(Be.node());Xe=Math.max(Xe,kd.lineCount(Be)),ke.push({top:0,bottom:10,height:10,left:Yt-ut.width/2,right:Yt+ut.width/2+2,width:ut.width+2})});var lt=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,it=f.length,_t=Math.abs((f[it-1].x-f[0].x)*t._m)/(it-1),Ye=lt?_t/2:_t,kt=lt?t.ticklen:pe*1.25*Xe,st=Math.sqrt(Math.pow(Ye,2)+Math.pow(kt,2)),dt=Ye/st,It=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),yt=It.find(function(Zt){return Math.abs(Math.cos(Zt))<=dt});yt===void 0&&(yt=It.reduce(function(Zt,Yt){return Math.abs(Math.cos(Zt))Se*Te&&(oe=Te,J[W]=ee[W]=fe[W])}var Me=Math.abs(oe-ie);Me-N>0?(Me-=N,N*=1+N/Me):N=0,t._id.charAt(0)!=="y"&&(N=-N),J[V]=q.p2r(q.r2p(ee[V])+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 fre(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,L2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(og.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 RL(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*lg):r?t*(r+1)*lg:t}function cre(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(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*(ig+f*lg));else{var h=fg(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,Lte.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)===C2)&&(GL(t,0)||!hre(e,t,r,i)||vre(e,t))};$t.clipEnds=function(e,t){return t.filter(function(r){return GL(e,r.x)})};function GL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=Fte:/%L/.test(t)?e>=Rte:/%[SX]/.test(t)?e>=S2:/%M/.test(t)?e>=sg:/%[HI]/.test(t)?e>=If:/%p/.test(t)?e>=Yh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=sl:/%[Bbm]/.test(t)?e>=M2:/%[q]/.test(t)?e>=A2:/%[Yy]/.test(t)?e>=T2:!0}});var jL=me((q1e,XL)=>{"use strict";XL.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 f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var K5=me((N1e,JL)=>{"use strict";var _re=jL();JL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(_re(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var QL=me((B1e,KL)=>{var xre={left:0,top:0};KL.exports=bre;function bre(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=wre(t);return r[0]=i-s.left,r[1]=a-s.top,r}function wre(e){return e===window||e===document||e===document.body?xre:e.getBoundingClientRect()}});var Q5=me((O1e,$L)=>{"use strict";var Tre=Sw();function Are(){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}$L.exports=Tre&&Are()});var tD=me((U1e,eD)=>{"use strict";eD.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var iD=me((V1e,aD)=>{"use strict";var rD=Bt(),Mre=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];aD.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=rD.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=rD.constrain(Math.floor(r*3),0,2),Mre[r][t]}});var oD=me((H1e,nD)=>{"use strict";var Sre=Yy(),kre=P_(),Cre=Ny().getGraphDiv,Ere=Iy(),$5=nD.exports={};$5.wrapped=function(e,t,r){e=Cre(e),e._fullLayout&&kre.clear(e._fullLayout._uid+Ere.HOVERID),$5.raw(e,t,r)};$5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Sre.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=me((G1e,fD)=>{"use strict";var Lre=QL(),e4=Cw(),Dre=Q5(),Pre=Bt().removeElement,zre=eo(),Ld=fD.exports={};Ld.align=tD();Ld.getCursor=iD();var lD=oD();Ld.unhover=lD.wrapped;Ld.unhoverRaw=lD.raw;Ld.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,M;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=L,Dre?(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 uD(){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=uD;function sD(e){return Lre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Wh=me((Z1e,cD)=>{"use strict";cD.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 dD=me((Y1e,vD)=>{"use strict";var t4=Wh(),cg="data-savedcursor",hD="!!";vD.exports=function(t,r){var i=t.attr(cg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var r4=qo(),Ire=Sf();pD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Ire.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r4({editType:"legend"}),grouptitlefont:r4({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:r4({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var vg=me(hg=>{"use strict";hg.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};hg.isVertical=function(t){return t.orientation!=="h"};hg.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};hg.getId=function(t){return t._id||"legend"}});var n4=me((j1e,mD)=>{"use strict";var P2=sa(),ll=Bt(),Rre=Ii(),Fre=ys(),qre=a4(),Nre=M0(),i4=vg();function Bre(e,t,r,i,a){var s=t[e]||{},l=Rre.newContainer(r,e);function f(pe,ke){return ll.coerce(s,l,qre,pe,ke)}var h=ll.coerceFont(f,"font",r.font);f("bgcolor",r.paper_bgcolor),f("bordercolor");var v=f("visible");if(!v)return;var m,_=function(pe,ke){var Ee=m._input,Xe=m;return ll.coerce(Ee,Xe,Fre,pe,ke)},T=r.font||{},M=ll.coerceFont(f,"grouptitlefont",T,{overrideDflt:{size:Math.round(T.size*1.1)}}),C=0,E=!1,L="normal",I=(r.shapes||[]).filter(function(pe){return pe.showlegend});function O(pe){return P2.traceIs(pe,"pie-like")&&pe._length!=null&&(Array.isArray(pe.legend)||Array.isArray(pe.showlegend))}i.filter(O).forEach(function(pe){pe.visible&&C++;for(var ke=0;kepe.legend.length)for(var Xe=pe.legend.length;Xe(e==="legend"?1:0));if(H===!1&&(r[e]=void 0),!(H===!1&&!s.uirevision)&&(f("uirevision",r.uirevision),H!==!1)){f("borderwidth");var V=f("orientation"),W=f("yref"),J=f("xref"),ee=V==="h",ie=W==="paper",oe=J==="paper",fe,le,Te,Se="left";ee?(fe=0,P2.getComponentMethod("rangeslider","isVisible")(t.xaxis)?ie?(le=1.1,Te="bottom"):(le=1,Te="top"):ie?(le=-.1,Te="top"):(le=0,Te="bottom")):(le=1,Te="auto",oe?fe=1.02:(fe=1,Se="right")),ll.coerce(s,l,{x:{valType:"number",editType:"legend",min:oe?-2:0,max:oe?3:1,dflt:fe}},"x"),ll.coerce(s,l,{y:{valType:"number",editType:"legend",min:ie?-2:0,max:ie?3:1,dflt:le}},"y"),f("traceorder",L),i4.isGrouped(r[e])&&f("tracegroupgap"),f("entrywidth"),f("entrywidthmode"),f("indentation"),f("itemsizing"),f("itemwidth"),f("itemclick"),f("itemdoubleclick"),f("groupclick"),f("xanchor",Se),f("yanchor",Te),f("maxheight"),f("valign"),ll.noneOrAll(s,l,["x","y"]);var Me=f("title.text");if(Me){f("title.side",ee?"left":"top");var Ae=ll.extendFlat({},h,{size:ll.bigFont(h.size)});ll.coerceFont(f,"title.font",Ae);let pe=a>1;f("titleclick",pe?"toggle":!1),f("titledoubleclick",pe?"toggleothers":!1)}}}mD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var Xh=sa(),o4=Bt(),Ore=o4.pushUnique,Ure=vg(),yD=!0;s4.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 f=i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&yD&&r.data&&r._context.showTips&&(o4.notifier(o4._(r,"Double-click on legend to isolate one trace"),"long"),yD=!1);var h=f==="togglegroup",v=s.hiddenlabels?s.hiddenlabels.slice():[],m=r._fullData,_=(s.shapes||[]).filter(function(wt){return wt.showlegend}),T=m.concat(_),M=l.trace;M._isShape&&(M=M._fullInput);var C=M.legendgroup,E,L,I,O,q,z,N={},H=[],V=[],W=[];function J(wt,xt){var qt=H.indexOf(wt),Ut=N.visible;return Ut||(Ut=N.visible=[]),H.indexOf(wt)===-1&&(H.push(wt),qt=H.length-1),Ut[qt]=xt,qt}var ee=(s.shapes||[]).map(function(wt){return wt._input}),ie=!1;function oe(wt,xt){ee[wt].visible=xt,ie=!0}function fe(wt,xt){if(!(l.groupTitle&&!h)){var qt=wt._fullInput||wt,Ut=qt._isShape,Dt=qt.index;Dt===void 0&&(Dt=qt._index);var Mt=qt.visible===!1?!1:xt;Ut?oe(Dt,Mt):J(Dt,Mt)}}var le=M.legend,Te=M._fullInput,Se=Te&&Te._isShape;if(!Se&&Xh.traceIs(M,"pie-like")){var Me=l.label,Ae=v.indexOf(Me);if(a==="toggle")Ae===-1?v.push(Me):v.splice(Ae,1);else if(a==="toggleothers"){var pe=Ae!==-1,ke=[];for(E=0;E{"use strict";gD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var bD=me((Q1e,xD)=>{"use strict";var _D=sa(),f4=vg();xD.exports=function(t,r,i){var a=r._inHover,s=f4.isGrouped(r),l=f4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,M,C;function E(pe,ke,Ee){if(r.visible!==!1&&!(i&&pe!==r._id))if(ke===""||!f4.isGrouped(r)){var Xe="~~i"+_;h.push(Xe),f[Xe]=[Ee],_++}else h.indexOf(ke)===-1?(h.push(ke),v=!0,f[ke]=[Ee]):f[ke].push(Ee)}for(M=0;Moe&&(ie=oe)}J[M][0]._groupMinRank=ie,J[M][0]._preGroupSort=M}var fe=function(pe,ke){return pe[0]._groupMinRank-ke[0]._groupMinRank||pe[0]._preGroupSort-ke[0]._preGroupSort},le=function(pe,ke){return pe.trace.legendrank-ke.trace.legendrank||pe._preSort-ke._preSort};for(J.forEach(function(pe,ke){pe[0]._preGroupSort=ke}),J.sort(fe),M=0;M{"use strict";var z2=Bt();function wD(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=wD((t*100).toPrecision(3));return z2.numSeparate(i,r)+"%"};Dd.formatPieValue=function(t,r){var i=wD(t.toPrecision(10));return z2.numSeparate(i,r)};Dd.getFirstFilled=function(t,r){if(z2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var Vre=xi(),Hre=Oa();TD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?Vre.pointStyle(t,i,a,r):Hre.fill(t,r.color)}});var CD=me((t_e,kD)=>{"use strict";var MD=Oa(),SD=c4().castOption,Gre=AD();kD.exports=function(t,r,i,a){var s=i.marker.line,l=SD(s.color,r.pts)||MD.defaultLine,f=SD(s.width,r.pts)||0;t.call(Gre,r,i,a).style("stroke-width",f).call(MD.stroke,l)}});var p4=me((r_e,ID)=>{"use strict";var is=ja(),h4=sa(),Oo=Bt(),ED=Oo.strTranslate,ul=xi(),Jl=Oa(),v4=Ef().extractOpts,I2=rs(),Zre=CD(),Yre=c4().castOption,Wre=u4(),LD=12,DD=5,Pd=2,Xre=10,J0=5;ID.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+Wre.itemGap*2)/2,h=ED(f,0),v=function(V,W,J,ee){var ie;if(V+1)ie=V;else if(W&&W.width>0)ie=W.width;else return 0;return s?ee:Math.min(ie,J)};t.each(function(V){var W=is.select(this),J=Oo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var ee=i.indentation,ie=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ie==="middle"&&ee===0||!oe||!fe)J.attr("transform",null);else{var le={top:1,bottom:-1}[ie],Te=le*(.5*(oe-fe+3))||0,Se=i.indentation;J.attr("transform",ED(Se,Te))}var Me=J.selectAll("g.legendfill").data([V]);Me.enter().append("g").classed("legendfill",!0);var Ae=J.selectAll("g.legendlines").data([V]);Ae.enter().append("g").classed("legendlines",!0);var pe=J.selectAll("g.legendsymbols").data([V]);pe.enter().append("g").classed("legendsymbols",!0),pe.selectAll("g.legendpoints").data([V]).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(V){var W=PD(V),J=W.showFill,ee=W.showLine,ie=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,le=W.anyLine,Te=V[0],Se=Te.trace,Me,Ae,pe=v4(Se),ke=pe.colorscale,Ee=pe.reversescale,Xe=function(dt){if(dt.size())if(J)ul.fillGroupStyle(dt,r,!0);else{var It="legendfill-"+Se.uid;ul.gradient(dt,r,It,d4(Ee),ke,"fill")}},lt=function(dt){if(dt.size()){var It="legendline-"+Se.uid;ul.lineGroupStyle(dt),ul.gradient(dt,r,It,d4(Ee),ke,"stroke")}},it=I2.hasMarkers(Se)||!fe?"M5,0":le?"M5,-2":"M5,-3",_t=is.select(this),Ye=_t.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(Ye.enter().append("path").classed("js-fill",!0),Ye.exit().remove(),Ye.attr("d",it+"h"+l+"v6h-"+l+"z").call(Xe),ee||ie){var kt=v(void 0,Se.line,Xre,DD);Ae=Oo.minExtend(Se,{line:{width:kt}}),Me=[Oo.minExtend(Te,{trace:Ae})]}var st=_t.select(".legendlines").selectAll("path").data(ee||ie?[Me]:[]);st.enter().append("path").classed("js-line",!0),st.exit().remove(),st.attr("d",it+(ie?"l"+l+",0.0001":"h"+l)).call(ee?ul.lineGroupStyle:lt)}function _(V){var W=PD(V),J=W.anyFill,ee=W.anyLine,ie=W.showLine,oe=W.showMarker,fe=V[0],le=fe.trace,Te=!oe&&!ee&&!J&&I2.hasText(le),Se,Me;function Ae(Ye,kt,st,dt){var It=Oo.nestedProperty(le,Ye).get(),yt=Oo.isArrayOrTypedArray(It)&&kt?kt(It):It;if(s&&yt&&dt!==void 0&&(yt=dt),st){if(ytst[1])return st[1]}return yt}function pe(Ye){return fe._distinct&&fe.index&&Ye[fe.index]?Ye[fe.index]:Ye[0]}if(oe||Te||ie){var ke={},Ee={};if(oe){ke.mc=Ae("marker.color",pe),ke.mx=Ae("marker.symbol",pe),ke.mo=Ae("marker.opacity",Oo.mean,[.2,1]),ke.mlc=Ae("marker.line.color",pe),ke.mlw=Ae("marker.line.width",Oo.mean,[0,5],Pd),ke.mld=le._isShape?"solid":Ae("marker.line.dash",pe),Ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Xe=Ae("marker.size",Oo.mean,[2,16],LD);ke.ms=Xe,Ee.marker.size=Xe}ie&&(Ee.line={width:Ae("line.width",pe,[0,10],DD)}),Te&&(ke.tx="Aa",ke.tp=Ae("textposition",pe),ke.ts=10,ke.tc=Ae("textfont.color",pe),ke.tf=Ae("textfont.family",pe),ke.tw=Ae("textfont.weight",pe),ke.ty=Ae("textfont.style",pe),ke.tv=Ae("textfont.variant",pe),ke.tC=Ae("textfont.textcase",pe),ke.tE=Ae("textfont.lineposition",pe),ke.tS=Ae("textfont.shadow",pe)),Se=[Oo.minExtend(fe,ke)],Me=Oo.minExtend(le,Ee),Me.selectedpoints=null,Me.texttemplate=null}var lt=is.select(this).select("g.legendpoints"),it=lt.selectAll("path.scatterpts").data(oe?Se:[]);it.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),it.exit().remove(),it.call(ul.pointStyle,Me,r),oe&&(Se[0].mrc=3);var _t=lt.selectAll("g.pointtext").data(Te?Se:[]);_t.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),_t.exit().remove(),_t.selectAll("text").call(ul.textPointStyle,Me,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var ee=V[0].trace[V[0].dir].marker;return V[0].mc=ee.color,V[0].mlw=ee.line.width,V[0].mlc=ee.line.color,E(V,this,"waterfall")}var ie=[];W.visible&&J&&(ie=V[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(fe){var le=is.select(this),Te=W[fe[0]].marker,Se=v(void 0,Te.line,J0,Pd);le.attr("d",fe[1]).style("stroke-width",Se+"px").call(Jl.fill,Te.color),Se&&le.call(Jl.stroke,Te.line.color)})}function M(V){E(V,this)}function C(V){E(V,this,"funnel")}function E(V,W,J){var ee=V[0].trace,ie=ee.marker||{},oe=ie.line||{},fe=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",le=J?ee.visible&&ee.type===J:h4.traceIs(ee,"bar"),Te=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(le?[V]:[]);Te.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Te.exit().remove(),Te.each(function(Se){var Me=is.select(this),Ae=Se[0],pe=v(Ae.mlw,ie.line,J0,Pd);Me.style("stroke-width",pe+"px");var ke=Ae.mcc;if(!i._inHover&&"mc"in Ae){var Ee=v4(ie),Xe=Ee.mid;Xe===void 0&&(Xe=(Ee.max+Ee.min)/2),ke=ul.tryColorscale(ie,"")(Xe)}var lt=ke||Ae.mc||ie.color,it=ie.pattern,_t=ul.getPatternAttr,Ye=it&&(_t(it.shape,0,"")||_t(it.path,0,""));if(Ye){var kt=_t(it.bgcolor,0,null),st=_t(it.fgcolor,0,null),dt=it.fgopacity,It=zD(it.size,8,10),yt=zD(it.solidity,.5,1),de="legend-"+ee.uid;Me.call(ul.pattern,"legend",r,de,Ye,It,yt,ke,it.fillmode,kt,st,dt)}else Me.call(Jl.fill,lt);pe&&Jl.stroke(Me,Ae.mlc||oe.color)})}function L(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&h4.traceIs(W,"box-violin")?[V]:[]);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?LD: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,J0,Pd);ee.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(ee,W.line.color)}})}function I(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);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),fe=W[ie?"increasing":"decreasing"],le=v(void 0,fe.line,J0,Pd);oe.style("stroke-width",le+"px").call(Jl.fill,fe.fillcolor),le&&Jl.stroke(oe,fe.line.color)})}function O(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);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),fe=W[ie?"increasing":"decreasing"],le=v(void 0,fe.line,J0,Pd);oe.style("fill","none").call(ul.dashLine,fe.line.dash,le),le&&Jl.stroke(oe,fe.line.color)})}function q(V){N(V,this,"pie")}function z(V){N(V,this,"funnelarea")}function N(V,W,J){var ee=V[0],ie=ee.trace,oe=J?ie.visible&&ie.type===J:h4.traceIs(ie,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var le=ie.marker||{},Te=v(Yre(le.line.width,ee.pts),le.line,J0,Pd),Se="pieLike",Me=Oo.minExtend(ie,{marker:{line:{width:Te}}},Se),Ae=Oo.minExtend(ee,{trace:Me},Se);Zre(fe,Ae,Me,r)}}function H(V){var W=V[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,fe){var le=is.select(this),Te=v4(W),Se=Te.colorscale,Me=Te.reversescale,Ae=function(Xe){if(Xe.size()){var lt="legendfill-"+W.uid;ul.gradient(Xe,r,lt,d4(Me,J==="radial"),Se,"fill")}},pe;if(Se){if(!J){var Ee=Se.length;pe=fe===0?Se[Me?Ee-1:0][1]:fe===1?Se[Me?0:Ee-1][1]:Se[Math.floor((Ee-1)/2)][1]}}else{var ke=W.vertexcolor||W.facecolor||W.color;pe=Oo.isArrayOrTypedArray(ke)?ke[fe]||ke[0]:ke}le.attr("d",oe[0]),pe?le.call(Jl.fill,pe):le.call(Ae)})}};function d4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function PD(e){var t=e[0].trace,r=t.contours,i=I2.hasLines(t),a=I2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,f=!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")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function zD(e,t,r){return e&&Oo.isArrayOrTypedArray(e)?t:e>r?r:e}});var _4=me((a_e,HD)=>{"use strict";var gs=ja(),Dn=Bt(),y4=to(),zd=sa(),q2=Yy(),m4=jl(),Pn=xi(),dg=Oa(),Id=ro(),RD=l4().handleItemClick,FD=l4().handleTitleClick,Vn=u4(),g4=No(),UD=g4.LINE_SPACING,Q0=g4.FROM_TL,qD=g4.FROM_BR,ND=bD(),jre=p4(),$0=vg(),K0=1,Jre=/^legend[0-9]*$/;HD.exports=function(t,r){if(r)BD(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(Jre)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),y4.autoMargin(e,a);var E=Dn.ensureSingle(l,"g",a,function(W){f||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(dg.stroke,r.bordercolor).call(dg.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),F2(z,O,e,r,K0),!f&&(r.titleclick||r.titledoubleclick)&&eae(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(dg.fill,Vn.scrollBarColor)}),H=O.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(Dn.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){let J=W[0],ee=J.trace;if(J.groupTitle){let ie=ee.legendgroup,oe=(i.shapes||[]).filter(function(le){return le.showlegend});return e._fullData.concat(oe).some(function(le){return le.legendgroup===ie&&(le.legend||"legend")===a&&le.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(Qre,e,r)}).call(jre,e,r).each(function(W){f||W[0].groupTitle&&r.groupclick==="toggleitem"||gs.select(this).call($re,e,a)}),Dn.syncOrAsync([y4.previousPromises,function(){return aae(e,H,V,r,O)},function(){var W=i._size,J=r.borderwidth,ee=r.xref==="paper",ie=r.yref==="paper";if(q.text){let Ue=(i.shapes||[]).filter(function(Je){return Je.showlegend}),at=e._fullData.concat(Ue).some(function(Je){let Ct=Je.legend||"legend";var wt=Array.isArray(Ct)?Ct.includes(a):Ct===a;return wt&&Je.visible===!0});z.style("opacity",at?1:.5)}if(!f){var oe,fe;ee?oe=W.l+W.w*r.x-Q0[N2(r)]*r._width:oe=i.width*r.x-Q0[N2(r)]*r._width,ie?fe=W.t+W.h*(1-r.y)-Q0[B2(r)]*r._effHeight:fe=i.height*(1-r.y)-Q0[B2(r)]*r._effHeight;var le=iae(e,a,oe,fe);if(le)return;if(i.margin.autoexpand){var Te=oe,Se=fe;oe=ee?Dn.constrain(oe,0,i.width-r._width):Te,fe=ie?Dn.constrain(fe,0,i.height-r._effHeight):Se,oe!==Te&&Dn.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Se&&Dn.log("Constrain "+a+".y to make legend fit inside graph")}Pn.setTranslate(E,oe,fe)}if(N.on(".drag",null),E.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Me=r._effHeight;f&&(Me=r._height),I.attr({width:r._width-J,height:Me-J,x:J/2,y:J/2}),Pn.setTranslate(O,0,0),L.select("rect").attr({width:r._width-2*J,height:Me-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),pe=r._effHeight-Ae-2*Vn.scrollBarMargin,ke=r._height-r._effHeight,Ee=pe/ke,Xe=Math.min(r._scrollY||0,ke);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),It(Xe,Ae,Ee),E.on("wheel",function(){Xe=Dn.constrain(r._scrollY+gs.event.deltaY/ke*pe,0,ke),It(Xe,Ae,Ee),Xe!==0&&Xe!==ke&&gs.event.preventDefault()});var lt,it,_t,Ye=function(Ue,at,Je){var Ct=(Je-at)/Ee+Ue;return Dn.constrain(Ct,0,ke)},kt=function(Ue,at,Je){var Ct=(at-Je)/Ee+Ue;return Dn.constrain(Ct,0,ke)},st=gs.behavior.drag().on("dragstart",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchstart"?lt=Ue.changedTouches[0].clientY:lt=Ue.clientY,_t=Xe}).on("drag",function(){var Ue=gs.event.sourceEvent;Ue.buttons===2||Ue.ctrlKey||(Ue.type==="touchmove"?it=Ue.changedTouches[0].clientY:it=Ue.clientY,Xe=Ye(_t,lt,it),It(Xe,Ae,Ee))});N.call(st);var dt=gs.behavior.drag().on("dragstart",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchstart"&&(lt=Ue.changedTouches[0].clientY,_t=Xe)}).on("drag",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchmove"&&(it=Ue.changedTouches[0].clientY,Xe=kt(_t,lt,it),It(Xe,Ae,Ee))});O.call(dt)}function It(Ue,at,Je){r._scrollY=e._fullLayout[a]._scrollY=Ue,Pn.setTranslate(O,0,-Ue),Pn.setRect(N,r._width,Vn.scrollBarMargin+Ue*Je,Vn.scrollBarWidth,at),L.select("rect").attr("y",J+Ue)}if(e._context.edits.legendPosition){var yt,de,ze,_e;E.classed("cursor-move",!0),m4.init({element:E.node(),gd:e,prepFn:function(Ue){if(Ue.target!==N.node()){var at=Pn.getTranslate(E);ze=at.x,_e=at.y}},moveFn:function(Ue,at){if(ze!==void 0&&_e!==void 0){var Je=ze+Ue,Ct=_e+at;Pn.setTranslate(E,Je,Ct),yt=m4.align(Je,r._width,W.l,W.l+W.w,r.xanchor),de=m4.align(Ct+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(yt!==void 0&&de!==void 0){var Ue={};Ue[a+".x"]=yt,Ue[a+".y"]=de,zd.call("_guiRelayout",e,Ue)}},clickFn:function(Ue,at){var Je=l.selectAll("g.traces").filter(function(){var Ct=this.getBoundingClientRect();return at.clientX>=Ct.left&&at.clientX<=Ct.right&&at.clientY>=Ct.top&&at.clientY<=Ct.bottom});Je.size()>0&&VD(e,r,Je,Ue,at)}})}}],e)}}function R2(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 VD(e,t,r,i,a){var s=e._fullLayout,l=r.data()[0][0].trace,f=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=q2.triggerHandler(e,"plotly_legendclick",v);if(i===1){if(m===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&f&&RD(r,e,t,f)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var _=q2.triggerHandler(e,"plotly_legenddoubleclick",v);_!==!1&&m!==!1&&h&&RD(r,e,t,h)}}function Qre(e,t,r){var i=$0.getId(r),a=e.data()[0][0],s=a.trace,l=zd.traceIs(s,"pie-like"),f=!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(f?OD(v,h):v);var T=r.indentation+r.itemwidth+Vn.itemGap*2;Id.positionText(_,T,0),f?_.call(Id.makeEditable,{gd:t,text:v}).call(F2,e,t,r).on("edit",function(M){this.text(OD(M,h)).call(F2,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)}):F2(_,e,t,r)}function OD(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 $re(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Dn.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(dg.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)),VD(t,f,e,s,gs.event)}}))}function eae(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,f=1;let h=Dn.ensureSingle(e,"rect",i+"titletoggle",function(v){t._context.staticPlot||v.style("cursor","pointer").attr("pointer-events","all"),v.call(dg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(h.on("mousedown",function(){l=new Date().getTime(),l-t._legendMouseDownTimes&&(f=Math.max(f-1,1));let v={event:gs.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(f===1&&r.titleclick){if(q2.triggerHandler(t,"plotly_legendtitleclick",v)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&FD(t,r,r.titleclick)},s)}else f===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,q2.triggerHandler(t,"plotly_legendtitledoubleclick",v)!==!1&&r.titledoubleclick&&FD(t,r,r.titledoubleclick))}))}function F2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Id.convertToTspans(e,r,function(){tae(t,r,i,a)})}function tae(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]"),f=l.node(),h=$0.getId(r);r||(r=t._fullLayout[h]);var v=r.borderwidth,m;i===K0?m=r.title.font:a.groupTitle?m=a.groupTitle.font:m=r.font;var _=m.size*UD,T,M;if(f){var C=Pn.bBox(f);T=C.height,M=C.width,i===K0?Pn.setTranslate(l,v,v+T*.75):Pn.setTranslate(l,0,T*.25)}else{var E="."+h+(i===K0?"title":"")+"text",L=e.select(E),I=Id.lineCount(L),O=L.node();if(T=_*I,M=O?Pn.bBox(O).width:0,i===K0)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===K0?(r._titleWidth=M,r._titleHeight=T):(a.lineHeight=_,a.height=Math.max(T,16)+3,a.width=M)}function rae(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 aae(e,t,r,i,a){var s=e._fullLayout,l=$0.getId(i);i||(i=s[l]);var f=s._size,h=$0.isVertical(i),v=$0.isGrouped(i),m=i.entrywidthmode==="fraction",_=i.borderwidth,T=2*_,M=Vn.itemGap,C=i.indentation+i.itemwidth+M*2,E=2*(_+M),L=B2(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:V}=i,W=I||O||N!=="v"||H!=="paper";V||(V=W?.5:1);let J=W?s.height:f.h;i._maxHeight=Math.max(V>1?V:V*J,30);var ee=0;i._width=0,i._height=0;var ie=rae(i);if(h)r.each(function(Ue){var at=Ue[0].height;Pn.setTranslate(this,_+ie[0],_+ie[1]+i._height+at/2+M),i._height+=at,i._width=Math.max(i._width,Ue[0].width)}),ee=C+i._width,i._width+=M+C+T,i._height+=E,v&&(t.each(function(Ue,at){Pn.setTranslate(this,0,at*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var oe=N2(i),fe=i.x<0||i.x===0&&oe==="right",le=i.x>1||i.x===1&&oe==="left",Te=O||I,Se=s.width/2;i._maxWidth=Math.max(fe?Te&&oe==="left"?f.l+f.w:Se:le?Te&&oe==="right"?f.r+f.w:Se:f.w,2*C);var Me=0,Ae=0;r.each(function(Ue){var at=R2(Ue,i,C);Me=Math.max(Me,at),Ae+=at}),ee=null;var pe=0;if(v){var ke=0,Ee=0,Xe=0;t.each(function(){var Ue=0,at=0;gs.select(this).selectAll("g.traces").each(function(Ct){var wt=R2(Ct,i,C),xt=Ct[0].height;Pn.setTranslate(this,ie[0],ie[1]+_+M+xt/2+at),at+=xt,Ue=Math.max(Ue,wt),z[Ct[0].trace.legendgroup]=Ue});var Je=Ue+M;Ee>0&&Je+_+Ee>i._maxWidth?(pe=Math.max(pe,Ee),Ee=0,Xe+=ke+q,ke=at):ke=Math.max(ke,at),Pn.setTranslate(this,Ee,Xe),Ee+=Je}),i._width=Math.max(pe,Ee)+_,i._height=Xe+ke+E}else{var lt=r.size(),it=Ae+T+(lt-1)*M=i._maxWidth&&(pe=Math.max(pe,st),Ye=0,kt+=_t,i._height+=_t,_t=0),Pn.setTranslate(this,ie[0]+_+Ye,ie[1]+_+kt+at/2+M),st=Ye+Je+M,Ye+=Ct,_t=Math.max(_t,at)}),it?(i._width=Ye+T,i._height=_t+E):(i._width=Math.max(pe,st)+T,i._height+=_t+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 dt=e._context.edits,It=dt.legendText||dt.legendPosition;r.each(function(Ue){var at=gs.select(this).select("."+l+"toggle"),Je=Ue[0].height,Ct=Ue[0].trace.legendgroup,wt=R2(Ue,i,C);v&&Ct!==""&&(wt=z[Ct]);var xt=It?C:ee||wt;!h&&!m&&(xt+=M/2),Pn.setRect(at,0,-Je/2,xt,Je)});var yt=a.select("."+l+"titletext");yt.node()&&Kre(yt,i,_);var de=a.select("."+l+"titletoggle");if(de.size()&&yt.node()){var ze=yt.attr("x")||0,_e=Vn.titlePad;Pn.setRect(de,ze-_e,_,i._titleWidth+2*_e,i._titleHeight+2*_e)}}function iae(e,t,r,i){var a=e._fullLayout,s=a[t],l=N2(s),f=B2(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 y4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*Q0[l],r:s._width*qD[l],b:s._effHeight*qD[f],t:s._effHeight*Q0[f]});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 N2(e){return Dn.isRightAnchor(e)?"right":Dn.isCenterAnchor(e)?"center":"left"}function B2(e){return Dn.isBottomAnchor(e)?"bottom":Dn.isMiddleAnchor(e)?"middle":"top"}});var T4=me(w4=>{"use strict";var Rd=ja(),Cc=Da(),GD=Mf(),cn=Bt(),nae=cn.pushUnique,x4=cn.strTranslate,oae=cn.strRotate,sae=Yy(),Kl=ro(),lae=dD(),Ff=xi(),io=Oa(),O2=jl(),qf=Xi(),uae=eo().zindexSeparator,tm=sa(),Ou=kc(),Fd=Iy(),fae=n4(),cae=_4(),QD=Fd.YANGLE,b4=Math.PI*QD/180,hae=1/Math.sin(b4),vae=Math.cos(b4),dae=Math.sin(b4),ji=Fd.HOVERARROWSIZE,Fa=Fd.HOVERTEXTPAD,ZD={box:!0,ohlc:!0,violin:!0,candlestick:!0},pae={scatter:!0,scattergl:!0,splom:!0};function YD(e,t){return e.distance-t.distance}w4.hover=function(t,r,i,a){t=cn.getGraphDiv(t);var s=r.target;cn.throttle(t._fullLayout._uid+Fd.HOVERID,Fd.HOVERMINTIME,function(){mae(t,r,i,a,s)})};w4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=aP(a),l=iP(a),f=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),V=Math.max(I,O),W=Math.min(q,z),J=Math.max(q,z),ee=L.trace;if(tm.traceIs(ee,"gl3d")){var ie=a._fullLayout[ee.scene]._scene.container,oe=ie.offsetLeft,fe=ie.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}N.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},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=eP(f,{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-_V[0]._length||_e<0||_e>W[0]._length)return O2.unhoverRaw(e,t)}if(t.pointerX=ze+V[0]._offset,t.pointerY=_e+W[0]._offset,"xval"in t?Se=Ou.flat(s,t.xval):Se=Ou.p2c(V,ze),"yval"in t?Me=Ou.flat(s,t.yval):Me=Ou.p2c(W,_e),!Cc(Se[0])||!Cc(Me[0]))return cn.warn("Fx.hover failed",t,e),O2.unhoverRaw(e,t)}var Je=1/0;function Ct(ir,oi){for(pe=0;pest&&(le.splice(0,st),Je=le[0].distance),_&&fe!==0&&le.length===0){kt.distance=fe,kt.index=!1;var se=Ee._module.hoverPoints(kt,_t,Ye,"closest",{hoverLayer:f._hoverlayer});if(se&&(se=se.filter(function(et){return et.spikeDistance<=fe})),se&&se.length){var te,ue=se.filter(function(et){return et.xa.showspikes&&et.xa.spikesnap!=="hovered data"});if(ue.length){var he=ue[0];Cc(he.x0)&&Cc(he.y0)&&(te=xt(he),(!dt.vLinePoint||dt.vLinePoint.spikeDistance>te.spikeDistance)&&(dt.vLinePoint=te))}var Le=se.filter(function(et){return et.ya.showspikes&&et.ya.spikesnap!=="hovered data"});if(Le.length){var Ne=Le[0];Cc(Ne.x0)&&Cc(Ne.y0)&&(te=xt(Ne),(!dt.hLinePoint||dt.hLinePoint.spikeDistance>te.spikeDistance)&&(dt.hLinePoint=te))}}}}}Ct();function wt(ir,oi,Sa){for(var la=null,Ci=1/0,ma,se=0;seir.trace.index===ht.trace.index):le=[ht];var pt=le.length,Ot=KD("x",ht,f),er=KD("y",ht,f);Ct(Ot,er);var Ht=[],Kt={},pr=0,yr=function(ir){var oi=ZD[ir.trace.type]?$D(ir):ir.trace.index;if(!Kt[oi])pr++,Kt[oi]=pr,Ht.push(ir);else{var Sa=Kt[oi]-1,la=Ht[Sa];Sa>0&&Math.abs(ir.distance)pt-1;ur--)yr(le[ur]);le=Ht,Mt()}var Lt=e._hoverdata,Fe=[],Ve=aP(e),bt=iP(e);for(let ir of le){var Tt=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 Ar=ir.x0+ir.xa._offset,Mr=ir.x1+ir.xa._offset,Gr=ir.y0+ir.ya._offset,pa=ir.y1+ir.ya._offset,Ca=Math.min(Ar,Mr),ii=Math.max(Ar,Mr),wi=Math.min(Gr,pa),vi=Math.max(Gr,pa);Tt.bbox={x0:Ca+bt,x1:ii+bt,y0:wi+Ve,y1:vi+Ve}}ir.eventData=[Tt],Fe.push(Tt)}e._hoverdata=Fe;var Fi=T==="y"&&(Te.length>1||le.length>1)||T==="closest"&&It&&le.length>1,Gi=io.combine(f.plot_bgcolor||io.background,f.paper_bgcolor),vn=eP(le,{gd:e,hovermode:T,rotateLabels:Fi,bgColor:Gi,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),nn=vn.hoverLabels;if(Ou.isUnifiedHover(T)||(gae(nn,Fi,f,vn.commonLabelBoundingBox),rP(nn,Fi,f._invScaleX,f._invScaleY)),a&&a.tagName){var Ki=tm.getComponentMethod("annotations","hasClickToShow")(e,Fe);lae(Rd.select(a),Ki?"pointer":"")}!a||i||!bae(e,t,Lt)||(Lt&&e.emit("plotly_unhover",{event:t,points:Lt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Se,yvals:Me}))}function $D(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 yae=/([\s\S]*)<\/extra>/;function eP(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=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",V=O[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-Ve&&(bt=i.width-Ve),ht.attr("d","M"+(ur-bt)+",0L"+(ur-bt+ji)+","+Fe+ji+"H"+Ve+"v"+Fe+(Fa*2+yr.height)+"H"+-Ve+"V"+Fe+ji+"H"+(ur-bt-ji)+"Z"),ur=bt,pe.minX=ur-Ve,pe.maxX=ur+Ve,q.side==="top"?(pe.minY=Lt-(Fa*2+yr.height),pe.maxY=Lt-Fa):(pe.minY=Lt+Fa,pe.maxY=Lt+(Fa*2+yr.height))}else{var Tt,mr,Ar;z.side==="right"?(Tt="start",mr=1,Ar="",ur=q._offset+q._length):(Tt="end",mr=-1,Ar="-",ur=q._offset),Lt=z._offset+(O.y0+O.y1)/2,pt.attr("text-anchor",Tt),ht.attr("d","M0,0L"+Ar+ji+","+ji+"V"+(Fa+yr.height/2)+"h"+Ar+(Fa*2+yr.width)+"V-"+(Fa+yr.height/2)+"H"+Ar+ji+"V-"+ji+"Z"),pe.minY=Lt-(Fa+yr.height/2),pe.maxY=Lt+(Fa+yr.height/2),z.side==="right"?(pe.minX=ur+ji,pe.maxX=ur+ji+(Fa*2+yr.width)):(pe.minX=ur-ji-(Fa*2+yr.width),pe.maxX=ur-ji);var Mr=yr.height/2,Gr=ee-yr.top-Mr,pa="clip"+i._uid+"commonlabel"+z._id,Ca;if(urht.hoverinfo!=="none");if(Et.length===0)return[];var ke=i.hoverlabel,Ee=ke.font,Xe=Et[0],lt=((a==="x unified"?Xe.xa:Xe.ya).unifiedhovertitle||{}).text,it=lt?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:lt}):V,_t={showlegend:!0,legend:{title:{text:it,font:Ee},font:Ee,bgcolor:ke.bgcolor,bordercolor:ke.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Ye={font:Ee};fae(_t,Ye,r._fullData);var kt=Ye.legend;kt.entries=[];for(var st=0;st=0?ut=Mt:Zt+at=0?ut=Zt:Yt+at=0?sr=Ut:Dt+Je=0?sr=Dt:Be+Je=0,(Et.idealAlign==="top"||!vi)&&Fi?(Ar-=Gr/2,Et.anchor="end"):vi?(Ar+=Gr/2,Et.anchor="start"):Et.anchor="middle",Et.crossPos=Ar;else{if(Et.pos=Ar,vi=mr+Mr/2+wi<=ie,Fi=mr-Mr/2-wi>=0,(Et.idealAlign==="left"||!vi)&&Fi)mr-=Mr/2,Et.anchor="end";else if(vi)mr+=Mr/2,Et.anchor="start";else{Et.anchor="middle";var Gi=wi/2,vn=mr+Gi-ie,nn=mr-Gi;vn>0&&(mr-=vn),nn<0&&(mr+=-nn)}Et.crossPos=mr}Lt.attr("text-anchor",Et.anchor),Ve&&Fe.attr("text-anchor",Et.anchor),ht.attr("transform",x4(mr,Ar)+(s?oae(QD):""))}),{hoverLabels:Pr,commonLabelBoundingBox:pe}}function WD(e,t,r,i,a,s){var _,T;var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=cn.templateString(e.name,e.trace._meta)),l=JD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=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"]),f=cn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:M,locale:i._d3locale,template:m}),f=f.replace(yae,(C,E)=>(l=JD(E,e.nameLength),""))}return[f,l]}function gae(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,M=i.minY,C=i.maxY,E=function(Se){return Se*r._invScaleX},L=function(Se){return Se*r._invScaleY};e.each(function(Se){var Me=Se[a],Ae=Se[s],pe=Me._id.charAt(0)==="x",ke=Me.range;m===0&&ke&&ke[0]>ke[1]!==pe&&(f=-1);var Ee=0,Xe=pe?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var lt=tP(Se,t),it=Se.anchor,_t=it==="end"?-1:1,Ye,kt;if(it==="middle")Ye=Se.crossPos+(pe?L(lt.y-Se.by/2):E(Se.bx/2+Se.tx2width/2)),kt=Ye+(pe?L(Se.by):E(Se.bx));else if(pe)Ye=Se.crossPos+L(ji+lt.y)-L(Se.by/2-ji),kt=Ye+L(Se.by);else{var st=E(_t*ji+lt.x),dt=st+E(_t*Se.bx);Ye=Se.crossPos+Math.min(st,dt),kt=Se.crossPos+Math.max(st,dt)}pe?M!==void 0&&C!==void 0&&Math.min(kt,C)-Math.max(Ye,M)>1&&(Ae.side==="left"?(Ee=Ae._mainLinePosition,Xe=r.width):Xe=Ae._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(kt,T)-Math.max(Ye,_)>1&&(Ae.side==="top"?(Ee=Ae._mainLinePosition,Xe=r.height):Xe=Ae._mainLinePosition)}v[m++]=[{datum:Se,traceIndex:Se.trace.index,dp:0,pos:Se.pos,posref:Se.posref,size:Se.by*(pe?hae:1)/2,pmin:Ee,pmax:Xe}]}),v.sort(function(Se,Me){return Se[0].posref-Me[0].posref||f*(Me[0].traceIndex-Se[0].traceIndex)});var I,O,q,z,N,H,V;function W(Se){var Me=Se[0],Ae=Se[Se.length-1];if(O=Me.pmin-Me.pos-Me.dp+Me.size,q=Ae.pos+Ae.dp+Ae.size-Me.pmax,O>.01){for(N=Se.length-1;N>=0;N--)Se[N].dp+=O;I=!1}if(!(q<.01)){if(O<-.01){for(N=Se.length-1;N>=0;N--)Se[N].dp-=q;I=!1}if(I){var pe=0;for(z=0;zMe.pmax&&pe++;for(z=Se.length-1;z>=0&&!(pe<=0);z--)H=Se[z],H.pos>Me.pmax-1&&(H.del=!0,pe--);for(z=0;z=0;N--)Se[N].dp-=q;for(z=Se.length-1;z>=0&&!(pe<=0);z--)H=Se[z],H.pos+H.dp+H.size>Me.pmax&&(H.del=!0,pe--)}}}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),V=0,N=J.length-1;N>=0;N--)V+=J[N].dp;for(q=V/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 fe=v[z];for(N=fe.length-1;N>=0;N--){var le=fe[N],Te=le.datum;Te.offset=le.dp,Te.del=le.del}}}function tP(e,t){var r=0,i=e.offset;return t&&(i*=-dae,r=e.offset*vae),{x:r,y:i}}function _ae(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Fa),i=r+t*(e.txwidth+Fa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Fa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function rP(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Rd.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=_ae(l),T=tP(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",f.select("path").attr("d",I);var O=M+_.textShiftX,q=C+l.ty0-l.by/2+Fa,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),O=E?-l.bx/2-l.tx2width/2+Fa:-l.bx-Fa):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),O=E?l.bx/2-l.tx2width/2-Fa:l.bx+Fa)),h.call(Kl.positionText,a(O),s(q)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Fa+M),s(C+l.ty0-l.by/2+Fa)),f.select("rect").call(Ff.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+M),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function xae(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Cc(T)&&T===0}var f=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=f(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:qf.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:qf.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=qf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+qf.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=qf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+qf.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 XD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=io.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){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=GD.readability(T.color,_)<1.5?io.contrast(_):T.color,I=m.spikemode,O=m.spikethickness,q=m.spikecolor||L,z=qf.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 V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),N=s.l+V*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":Ff.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 fe=GD.readability(J.color,_)<1.5?io.contrast(_):J.color,le=v.spikemode,Te=v.spikethickness,Se=v.spikecolor||fe,Me=qf.getPxPosition(e,v),Ae,pe;if(le.indexOf("toaxis")!==-1||le.indexOf("across")!==-1){if(le.indexOf("toaxis")!==-1&&(Ae=Me,pe=ie),le.indexOf("across")!==-1){var ke=v._counterDomainMin,Ee=v._counterDomainMax;v.anchor==="free"&&(ke=Math.min(ke,v.position),Ee=Math.max(Ee,v.position)),Ae=s.t+(1-Ee)*s.h,pe=s.t+(1-ke)*s.h}i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:pe,"stroke-width":Te,stroke:Se,"stroke-dasharray":Ff.dashStyle(v.spikedash,Te)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:pe,"stroke-width":Te+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}le.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:ee,cy:Me-(v.side!=="top"?Te:-Te),r:Te,fill:Se}).classed("spikeline",!0)}}}function bae(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 JD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wae(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;le.offsetTop+e.clientTop,iP=e=>e.offsetLeft+e.clientLeft;function em(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,s=i.top,l=a+i.width,f=s+i.height,h=cn.apply3DTransform(r._invTransform)(a,s),v=cn.apply3DTransform(r._invTransform)(l,f),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 U2=me((n_e,nP)=>{"use strict";var Tae=Bt(),Aae=Oa(),Mae=kc().isUnifiedHover;nP.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&Mae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=Aae.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),Tae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var sP=me((o_e,oP)=>{"use strict";var Sae=Bt(),kae=U2(),Cae=x0();oP.exports=function(t,r){function i(a,s){return Sae.coerce(t,r,Cae,a,s)}kae(t,r,i)}});var fP=me((s_e,uP)=>{"use strict";var lP=Bt(),Eae=h_(),Lae=U2();uP.exports=function(t,r,i,a){function s(f,h){return lP.coerce(t,r,Eae,f,h)}var l=lP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),Lae(t,r,s,l)}});var A4=me((l_e,cP)=>{"use strict";var Dae=Bt(),Pae=x0();cP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:Dae.coerce(t,r,Pae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var dP=me((u_e,vP)=>{"use strict";var hP=Bt(),zae=x0(),Iae=A4(),Rae=U2();vP.exports=function(t,r){function i(m,_){return hP.coerce(t,r,zae,m,_)}var a=Iae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),Rae(t,r,i),hP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var yP=me((f_e,mP)=>{"use strict";var M4=Bt(),pP=sa();mP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return M4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var qae=sa(),Nae=T4().hover;gP.exports=function(t,r,i){var a=qae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&Nae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Nf=me((h_e,wP)=>{"use strict";var Bae=ja(),V2=Bt(),Oae=jl(),pg=kc(),xP=x0(),bP=T4();wP.exports={moduleType:"component",name:"fx",constants:Iy(),schema:{layout:xP},attributes:h_(),layoutAttributes:xP,supplyLayoutGlobalDefaults:sP(),supplyDefaults:fP(),supplyLayoutDefaults:dP(),calc:yP(),getDistanceFunction:pg.getDistanceFunction,getClosest:pg.getClosest,inbox:pg.inbox,quadrature:pg.quadrature,appendArrayPointValue:pg.appendArrayPointValue,castHoverOption:Vae,castHoverinfo:Hae,hover:bP.hover,unhover:Oae.unhover,loneHover:bP.loneHover,loneUnhover:Uae,click:_P()};function Uae(e){var t=V2.isD3Selection(e)?e:Bae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Vae(e,t,r){return V2.castOption(e,t,"hoverlabel."+r)}function Hae(e,t,r){function i(a){return V2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return V2.castOption(e,r,"hoverinfo",i)}});var qd=me(Ec=>{"use strict";Ec.selectMode=function(e){return e==="lasso"||e==="select"};Ec.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ec.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ec.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ec.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ec.selectingOrDrawing=function(e){return Ec.freeMode(e)||Ec.rectMode(e)}});var H2=me((d_e,TP)=>{"use strict";TP.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 G2=me((p_e,AP)=>{"use strict";AP.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 Y2=me((m_e,MP)=>{"use strict";var Z2=32;MP.exports={CIRCLE_SIDES:Z2,i000:0,i090:Z2/4,i180:Z2/2,i270:Z2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var W2=me((y_e,kP)=>{"use strict";var Gae=Bt().strTranslate;function SP(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 Zae(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 Yae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return SP(e,r[t])}}function Wae(e){return Gae(e.xaxis._offset,e.yaxis._offset)}kP.exports={p2r:SP,r2p:Zae,axValue:Yae,getTransform:Wae}});var jh=me(Lc=>{"use strict";var Xae=h5(),LP=Y2(),rm=LP.CIRCLE_SIDES,S4=LP.SQRT2,DP=W2(),CP=DP.p2r,EP=DP.r2p,jae=[0,3,4,5,6,1,2],Jae=[0,3,4,1,2];Lc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var PP=jn(),qP=qd(),Kae=qP.drawMode,Qae=qP.openMode,am=Y2(),zP=am.i000,IP=am.i090,RP=am.i180,FP=am.i270,$ae=am.cos45,eie=am.sin45,NP=W2(),j2=NP.p2r,Jh=NP.r2p,tie=Bh(),rie=tie.clearOutline,J2=jh(),aie=J2.readPaths,iie=J2.writePaths,nie=J2.ellipseOver,oie=J2.fixDatesForPaths;function sie(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(!Kae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var lie=qd(),uie=lie.selectMode,fie=Bh(),cie=fie.clearOutline,k4=jh(),hie=k4.readPaths,vie=k4.writePaths,die=k4.fixDatesForPaths;UP.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,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!uie(_)&&m!==void 0){var M=s._fullLayout._activeSelectionIndex;if(M{"use strict";VP.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=me(So=>{"use strict";var Bf=yg(),HP=Bt(),Kh=Xi();So.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};So.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};So.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};So.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};So.extractPathCoords=function(e,t,r){var i=[],a=e.match(Bf.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.slice(1).match(Bf.paramRE);if(!(!f||f.length{let f=l.charAt(0),h=a[f].drawn!==void 0;return s+(h?1:0)},0)};So.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 f=So.shapePositionToRange(t);l=function(h){var v=Dc(t,r);return t._offset+t.r2p(f(h,!0))+v},t.type==="date"&&(l=So.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};So.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,s;if(t)if(i==="domain")s=function(f){var h=(f-t._offset)/t._length;return r?1-h:h};else{var l=So.rangeToShapePosition(t);s=function(f){return l(t.p2r(f-t._offset))}}else r?s=function(f){return 1-(f-a.t)/a.h}:s=function(f){return(f-a.l)/a.w};return s};So.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};So.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}};So.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}};So.getPathString=function(e,t){let r=t.type,i=Kh.getRefType(t.xref),a=Kh.getRefType(t.yref),s=e._fullLayout._size;var l,f,h,v,m,_,T,M,C,E,L,I;function O(ee,ie,oe,fe){var le;if(ee)if(ie==="domain")fe?le=function(Te){return ee._offset+ee._length*(1-Te)}:le=function(Te){return ee._offset+ee._length*Te};else{let Te=So.shapePositionToRange(ee);le=function(Se){return ee._offset+ee.r2p(Te(Se,!0))},oe==="path"&&ee.type==="date"&&(le=So.decodeDate(le))}else fe?le=function(Te){return s.t+s.h*(1-Te)}:le=function(Te){return s.l+s.w*Te};return le}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=[],f=t.yref.map(function(ee){return Kh.getFromId(e,ee)}),M=t.yref.map(function(ee,ie){return O(f[ie],Kh.getRefType(ee),r,!0)})):(f=Kh.getFromId(e,t.yref),M=O(f,a,r,!0)),r==="path")return pie(t,T,M);if(i==="array")h=Dc(l[0],t.x0shift),v=Dc(l[1],t.x1shift),C=T[0](t.x0)+h,E=T[1](t.x1)+v;else if(h=Dc(l,t.x0shift),v=Dc(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=Dc(f[0],t.y0shift),_=Dc(f[1],t.y1shift),L=M[0](t.y0)+m,I=M[1](t.y1)+_;else if(m=Dc(f,t.y0shift),_=Dc(f,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),V="A"+N+","+H,W=q+N+","+z,J=q+","+(z-H);return"M"+W+V+" 0 1,1 "+J+V+" 0 0,1 "+W+"Z"};function pie(e,t,r){let i=e.path,a=e.xsizemode,s=e.ysizemode,l=e.xanchor,f=e.yanchor,h=Array.isArray(e.xref),v=Array.isArray(e.yref);var m=0,_=0;return i.replace(Bf.segmentRE,function(T){var M=0,C=T.charAt(0),E=Bf.paramIsX[C],L=Bf.paramIsY[C],I=Bf.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(Bf.paramRE,function(V){return E[M]?a==="pixel"?V=z(l)+Number(V):V=z(V):L[M]&&(s==="pixel"?V=N(f)-Number(V):V=N(V)),M++,M>I&&(V="X"),V});return M>I&&(H=H.replace(/[\s,]*X.*/,""),HP.log("Ignoring extra params in segment "+T)),O&&m++,q&&_++,C+H})}function Dc(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 L4=me((T_e,YP)=>{"use strict";var mie=Bt(),Of=Xi(),GP=ro(),ZP=xi(),yie=jh().readPaths,E4=Qh(),gie=E4.getPathString,gg=b_(),_ie=No().FROM_TL;YP.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 f=Of.getFromId(t,i.xref),h=Of.getFromId(t,i.yref);let Ee=Array.isArray(i.xref),Xe=Array.isArray(i.yref);for(var v in gg){var m=typeof gg[v]=="function",_=!Ee||gg.simpleXVariables.includes(v),T=!Xe||gg.simpleYVariables.includes(v);if(m&&_&&T){var M=gg[v](i,f,h);M!==void 0&&(l[v]=M)}}}s=mie.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 V=gie(t,i),W=yie(V,t);q=1/0,N=1/0,z=-1/0,H=-1/0;for(var J=0;J=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function bie(e,t,r,i,a,s,l){var f=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"){f==="start"?(L=e,I=t):f==="end"?(L=r,I=i):(L=(e+r)/2,I=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var wie=Bt(),Tie=wie.strTranslate,WP=jl(),JP=qd(),Aie=JP.drawMode,KP=JP.selectMode,QP=sa(),XP=Oa(),$2=Y2(),Mie=$2.i000,Sie=$2.i090,kie=$2.i180,Cie=$2.i270,Eie=Bh(),$P=Eie.clearOutlineControllers,P4=jh(),Q2=P4.pointsOnRectangle,D4=P4.pointsOnEllipse,Lie=P4.writePaths,Die=K2().newShapes,Pie=K2().createShapeObj,zie=C4(),Iie=L4();ez.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(D4(t[0])||i.hasText)&&f({redrawing:!0})}function f(Me){var Ae={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,Ae=Die(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,Ae=zie(r,i),s._fullLayout._reselect=!0),Object.keys(Ae).length&&QP.call((Me||{}).redrawing?"relayout":"_guiRelayout",s,Ae)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=Aie(m),T=KP(m);(_||T)&&(s._fullLayout._outlining=!0),$P(s),r.attr("d",Lie(t));var M,C,E,L,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=Rie([],t);var O=v.append("g").attr("class","outline-controllers");ee(O),Se()}if(_&&i.hasText){var q=v.select(".label-temp"),z=Pie(r,i,i.dragmode);Iie(s,"label-temp",z,q)}function N(Me){E=+Me.srcElement.getAttribute("data-i"),L=+Me.srcElement.getAttribute("data-j"),M[E][L].moveFn=H}function H(Me,Ae){if(t.length){var pe=I[E][L][1],ke=I[E][L][2],Ee=t[E],Xe=Ee.length;if(Q2(Ee)){var lt=Me,it=Ae;if(i.isActiveSelection){var _t=jP(Ee,L);_t[1]===Ee[L][1]?it=0:lt=0}for(var Ye=0;Ye1&&!(Me.length===2&&Me[1][0]==="Z")&&(L===0&&(Me[0][0]="M"),t[E]=Me,l(),f())}}function J(Me,Ae){if(Me===2){E=+Ae.srcElement.getAttribute("data-i"),L=+Ae.srcElement.getAttribute("data-j");var pe=t[E];!Q2(pe)&&!D4(pe)&&W()}}function ee(Me){M=[];for(var Ae=0;Ae{"use strict";var qie=ja(),nz=sa(),I4=Bt(),Nd=Xi(),Nie=jh().readPaths,Bie=ex(),rx=L4(),oz=Bh().clearOutlineControllers,z4=Oa(),ax=xi(),Oie=Ii().arrayEditor,tz=jl(),rz=Wh(),Bd=yg(),Us=Qh(),R4=Us.getPathString;uz.exports={draw:F4,drawOne:sz,eraseActiveShape:Gie,drawLabel:rx};function F4(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;aNd.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 Vie(e,t,r,i,a,s){var l=10,f=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,V,W,J,ee,ie,oe=qie.select(t.node().parentNode),fe=Nd.getFromId(e,r.xref),le=Nd.getRefType(r.xref),Te=Nd.getFromId(e,r.yref),Se=Nd.getRefType(r.yref),Me=r.x0shift,Ae=r.x1shift,pe=r.y0shift,ke=r.y1shift,Ee=function(wt,xt){var qt=Us.getDataToPixel(e,fe,xt,!1,le);return qt(wt)},Xe=function(wt,xt){var qt=Us.getDataToPixel(e,Te,xt,!0,Se);return qt(wt)},lt=Us.getPixelToData(e,fe,!1,le),it=Us.getPixelToData(e,Te,!0,Se),_t=st(),Ye={element:_t.node(),gd:e,prepFn:yt,doneFn:de,clickFn:ze},kt;tz.init(Ye),_t.node().onmousemove=It;function st(){return m?dt():t}function dt(){var wt=10,xt=Math.max(r.line.width,wt),qt=a.append("g").attr("data-index",i).attr("drag-helper",!0);qt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":xt,"stroke-opacity":"0"});var Ut={"fill-opacity":"0"},Dt=Math.max(xt/2,wt);return qt.append("circle").attr({"data-line-point":"start-point",cx:h?Ee(r.xanchor)+r.x0:Ee(r.x0,Me),cy:v?Xe(r.yanchor)-r.y0:Xe(r.y0,pe),r:Dt}).style(Ut).classed("cursor-grab",!0),qt.append("circle").attr({"data-line-point":"end-point",cx:h?Ee(r.xanchor)+r.x1:Ee(r.x1,Ae),cy:v?Xe(r.yanchor)-r.y1:Xe(r.y1,ke),r:Dt}).style(Ut).classed("cursor-grab",!0),qt}function It(wt){if(tx(e)){kt=null;return}if(m)wt.target.tagName==="path"?kt="move":kt=wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var xt=Ye.element.getBoundingClientRect(),qt=xt.right-xt.left,Ut=xt.bottom-xt.top,Dt=wt.clientX-xt.left,Mt=wt.clientY-xt.top,Zt=!_&&qt>l&&Ut>f&&!wt.shiftKey?tz.getCursor(Dt/qt,1-Mt/Ut):"move";rz(t,Zt),kt=Zt.split("-")[0]}}function yt(wt){tx(e)||(h&&(I=Ee(r.xanchor)),v&&(O=Xe(r.yanchor)),r.type==="path"?ie=r.path:(M=h?r.x0:Ee(r.x0),C=v?r.y0:Xe(r.y0),E=h?r.x1:Ee(r.x1),L=v?r.y1:Xe(r.y1)),ML?(q=C,V="y0",z=L,W="y1"):(q=L,V="y1",z=C,W="y0"),It(wt),at(a,r),Ct(t,r,e),Ye.moveFn=kt==="move"?_e:Ue,Ye.altKey=wt.altKey)}function de(){tx(e)||(rz(t),Je(a),lz(t,e,r),nz.call("_guiRelayout",e,s.getUpdateObj()))}function ze(){tx(e)||Je(a)}function _e(wt,xt){if(r.type==="path"){var qt=function(Mt){return Mt},Ut=qt,Dt=qt;h?T("xanchor",r.xanchor=lt(I+wt)):(Ut=function(Zt){return lt(Ee(Zt)+wt)},fe&&fe.type==="date"&&(Ut=Us.encodeDate(Ut))),v?T("yanchor",r.yanchor=it(O+xt)):(Dt=function(Zt){return it(Xe(Zt)+xt)},Te&&Te.type==="date"&&(Dt=Us.encodeDate(Dt))),T("path",r.path=az(ie,Ut,Dt))}else h?T("xanchor",r.xanchor=lt(I+wt)):(T("x0",r.x0=lt(M+wt)),T("x1",r.x1=lt(E+wt))),v?T("yanchor",r.yanchor=it(O+xt)):(T("y0",r.y0=it(C+xt)),T("y1",r.y1=it(L+xt)));t.attr("d",R4(e,r)),at(a,r),rx(e,i,r,oe)}function Ue(wt,xt){if(_){var qt=function(Kt){return Kt},Ut=qt,Dt=qt;h?T("xanchor",r.xanchor=lt(I+wt)):(Ut=function(pr){return lt(Ee(pr)+wt)},fe&&fe.type==="date"&&(Ut=Us.encodeDate(Ut))),v?T("yanchor",r.yanchor=it(O+xt)):(Dt=function(pr){return it(Xe(pr)+xt)},Te&&Te.type==="date"&&(Dt=Us.encodeDate(Dt))),T("path",r.path=az(ie,Ut,Dt))}else if(m){if(kt==="resize-over-start-point"){var Mt=M+wt,Zt=v?C-xt:C+xt;T("x0",r.x0=h?Mt:lt(Mt)),T("y0",r.y0=v?Zt:it(Zt))}else if(kt==="resize-over-end-point"){var Yt=E+wt,Be=v?L-xt:L+xt;T("x1",r.x1=h?Yt:lt(Yt)),T("y1",r.y1=v?Be:it(Be))}}else{var ut=function(Kt){return kt.indexOf(Kt)!==-1},sr=ut("n"),Pr=ut("s"),Et=ut("w"),ht=ut("e"),pt=sr?q+xt:q,Ot=Pr?z+xt:z,er=Et?N+wt:N,Ht=ht?H+wt:H;v&&(sr&&(pt=q-xt),Pr&&(Ot=z-xt)),(!v&&Ot-pt>f||v&&pt-Ot>f)&&(T(V,r[V]=v?pt:it(pt)),T(W,r[W]=v?Ot:it(Ot))),Ht-er>l&&(T(J,r[J]=h?er:lt(er)),T(ee,r[ee]=h?Ht:lt(Ht)))}t.attr("d",R4(e,r)),at(a,r),rx(e,i,r,oe)}function at(wt,xt){(h||v)&&qt();function qt(){var Ut=xt.type!=="path",Dt=wt.selectAll(".visual-cue").data([0]),Mt=1;Dt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mt}).classed("visual-cue",!0);var Zt=Ee(h?xt.xanchor:I4.midRange(Ut?[xt.x0,xt.x1]:Us.extractPathCoords(xt.path,Bd.paramIsX))),Yt=Xe(v?xt.yanchor:I4.midRange(Ut?[xt.y0,xt.y1]:Us.extractPathCoords(xt.path,Bd.paramIsY)));if(Zt=Us.roundPositionForSharpStrokeRendering(Zt,Mt),Yt=Us.roundPositionForSharpStrokeRendering(Yt,Mt),h&&v){var Be="M"+(Zt-1-Mt)+","+(Yt-1-Mt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dt.attr("d",Be)}else if(h){var ut="M"+(Zt-1-Mt)+","+(Yt-9-Mt)+"v18 h2 v-18 Z";Dt.attr("d",ut)}else{var sr="M"+(Zt-9-Mt)+","+(Yt-1-Mt)+"h18 v2 h-18 Z";Dt.attr("d",sr)}}}function Je(wt){wt.selectAll(".visual-cue").remove()}function Ct(wt,xt,qt){var Ut=xt.xref,Dt=xt.yref,Mt=Nd.getFromId(qt,Ut),Zt=Nd.getFromId(qt,Dt),Yt="";Ut!=="paper"&&!Mt.autorange&&(Yt+=Ut),Dt!=="paper"&&!Zt.autorange&&(Yt+=Dt),ax.setClipUrl(wt,Yt?"clip"+qt._fullLayout._uid+Yt:null,qt)}}function az(e,t,r){return e.replace(Bd.segmentRE,function(i){var a=0,s=i.charAt(0),l=Bd.paramIsX[s],f=Bd.paramIsY[s],h=Bd.numParams[s],v=i.slice(1).replace(Bd.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function Hie(e,t){if(ix(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){iz(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=iz,F4(e)}}}function iz(e){if(ix(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(oz(e),delete e._fullLayout._activeShapeIndex,F4(e))}}function Gie(e){if(ix(e)){oz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=sa(),fz=to(),cz=jn(),Ja=G2(),Zie=nx().eraseActiveShape,ox=Bt(),za=ox._,Ka=gz.exports={};Ka.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?za(e,"Download plot as a PNG"):za(e,"Download plot")},icon:Ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};ox.notifier(za(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){ox.notifier(za(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){ox.notifier(za(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ka.sendDataToCloud={name:"sendDataToCloud",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.disk,click:function(e){fz.sendDataToCloud(e)}};Ka.editInChartStudio={name:"editInChartStudio",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.pencil,click:function(e){fz.sendDataToCloud(e)}};Ka.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return za(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ja.zoombox,click:ns};Ka.pan2d={name:"pan2d",_cat:"pan",title:function(e){return za(e,"Pan")},attr:"dragmode",val:"pan",icon:Ja.pan,click:ns};Ka.select2d={name:"select2d",_cat:"select",title:function(e){return za(e,"Box Select")},attr:"dragmode",val:"select",icon:Ja.selectbox,click:ns};Ka.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return za(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ja.lasso,click:ns};Ka.drawclosedpath={name:"drawclosedpath",title:function(e){return za(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ja.drawclosedpath,click:ns};Ka.drawopenpath={name:"drawopenpath",title:function(e){return za(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ja.drawopenpath,click:ns};Ka.drawline={name:"drawline",title:function(e){return za(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ja.drawline,click:ns};Ka.drawrect={name:"drawrect",title:function(e){return za(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ja.drawrect,click:ns};Ka.drawcircle={name:"drawcircle",title:function(e){return za(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ja.drawcircle,click:ns};Ka.eraseshape={name:"eraseshape",title:function(e){return za(e,"Erase active shape")},icon:Ja.eraseshape,click:Zie};Ka.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return za(e,"Zoom in")},attr:"zoom",val:"in",icon:Ja.zoom_plus,click:ns};Ka.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return za(e,"Zoom out")},attr:"zoom",val:"out",icon:Ja.zoom_minus,click:ns};Ka.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return za(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ja.autoscale,click:ns};Ka.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return za(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ja.home,click:ns};Ka.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return za(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:ns};Ka.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return za(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={},f=cz.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 _z=B4(),Xie=Object.keys(_z),xz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],bz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(xz),nm=[],jie=function(e){if(bz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();nm.indexOf(t)===-1&&nm.push(t),nm.indexOf(r)===-1&&nm.push(r)}};Xie.forEach(function(e){jie(_z[e])});nm.sort();wz.exports={DRAW_MODES:xz,backButtons:bz,foreButtons:nm}});var U4=me((E_e,Tz)=>{"use strict";var C_e=O4();Tz.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 Mz=me((L_e,Az)=>{"use strict";var Jie=Bt(),_g=Oa(),Kie=Ii(),Qie=U4();Az.exports=function(t,r){var i=t.modebar||{},a=Kie.newContainer(r,"modebar");function s(f,h){return Jie.coerce(i,a,Qie,f,h)}s("orientation"),s("bgcolor",_g.addOpacity(r.paper_bgcolor,.5));var l=_g.contrast(_g.rgb(r.modebar.bgcolor));s("color",_g.addOpacity(l,.3)),s("activecolor",_g.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Ez=me((D_e,Cz)=>{"use strict";var V4=ja(),$ie=Da(),lx=Bt(),Sz=G2(),ene=t_().version,tne=new DOMParser;function kz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Uf=kz.prototype;Uf.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 f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||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(),lx.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Uf.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)})};Uf.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Uf.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(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&V4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||Sz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Uf.createIcon=function(e){var t=$ie(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=tne.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Uf.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",f=V4.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=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:lx.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Uf.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var ine=jn(),Lz=rs(),H4=sa(),nne=kc().isUnifiedHover,one=Ez(),ux=B4(),sne=O4().DRAW_MODES,lne=Bt().extendDeep;Dz.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=dne(s):!i.displayModeBar&&i.watermark?l=[]:l=une(t),a?a.update(t,l):r._modeBar=one(t,l)};function une(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(Ae,pe){if(typeof pe=="string"){if(pe.toLowerCase()===Ae.toLowerCase())return!0}else{var ke=pe.name,Ee=pe._cat||pe.name;if(ke===Ae||Ee===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 f=i.modeBarButtonsToAdd.concat(s.filter(function(Ae){for(var pe=0;pe1?(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"),(hne(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"]),cne(r)&&oe.push("select2d","lasso2d");var fe=[],le=function(Ae){fe.indexOf(Ae)===-1&&ee.indexOf(Ae)!==-1&&fe.push(Ae)};if(Array.isArray(f)){for(var Te=[],Se=0;Se{"use strict";zz.exports={moduleType:"component",name:"modebar",layoutAttributes:U4(),supplyLayoutDefaults:Mz(),manage:Pz()}});var Z4=me((I_e,Iz)=>{"use strict";var pne=No().FROM_BL;Iz.exports=function(t,r,i){i===void 0&&(i=pne[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 bg=me(xg=>{"use strict";var Od=Bt(),Y4=ag(),Uu=jn().id2name,mne=Nu(),Rz=Z4(),yne=m2(),gne=Zi().ALMOST_EQUAL,_ne=No().FROM_BL;xg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,M,C;for(f=0;fs?r.slice(s):i.slice(a))+l}function bne(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lgne*C&&!O)){for(s=0;soe&&keee&&(ee=ke);var Xe=(ee-J)/(2*ie);_/=Xe,J=h.l2r(J),ee=h.l2r(ee),h.range=h._input.range=H{"use strict";var cx=ja(),os=sa(),fl=to(),$l=Bt(),j4=ro(),J4=H2(),wg=Oa(),om=xi(),Bz=tg(),Gz=G4(),Tg=Xi(),Pc=No(),Zz=bg(),wne=Zz.enforce,Tne=Zz.clean,Oz=ag().doAutoRange,Yz="start",Ane="middle",Wz="end",Mne=eo().zindexSeparator;no.layoutStyles=function(e){return $l.syncOrAsync([fl.doAutoMargin,kne],e)};function Sne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function kne(e){var t=e._fullLayout,r=t._size,i=r.p,a=Tg.list(e,"",!0),s,l,f,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(om.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),no.drawMainTitle(e),Gz.manage(e),!t._has("cartesian"))return fl.previousPromises(e);function _(yt,de,ze){var _e=yt._lw/2;if(yt._id.charAt(0)==="x"){if(de){if(ze==="top")return de._offset-i-_e}else return r.t+r.h*(1-(yt.position||0))+_e%1;return de._offset+de._length+i+_e}if(de){if(ze==="right")return de._offset+de._length+i+_e}else return r.l+r.w*(yt.position||0)+_e%1;return de._offset-i-_e}for(s=0;s0){Dne(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Hz(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&&(_=-_),f.selectAll(".line").each(function(){var L=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",L)})}var T=cx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var M=f.node().getBBox(),C=M.y+M.height,E=C+Bz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:E,"text-anchor":i,dy:Hz(t.yanchor)}).call(j4.positionText,l,E)}}}};function Cne(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=Ene(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function Dne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&Cne(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),fl.allowAutoMargin(e,a),fl.autoMargin(e,a,f)}function Pne(e,t){var r=e.title,i=e._size,a=0;switch(t===Yz?a=r.pad.l:t===Wz&&(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 zne(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 Hz(e){return e==="top"?Pc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Pc.MID_SHIFT+"em"}function Ine(e){var t=e.title,r=Ane;return $l.isRightAnchor(t)?r=Wz:$l.isLeftAnchor(t)&&(r=Yz),r}function Rne(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 Fne=jh().readPaths,qne=ex(),Xz=Bh().clearOutlineControllers,K4=Oa(),jz=xi(),Nne=Ii().arrayEditor,Jz=Qh(),Bne=Jz.getPathString;Qz.exports={draw:vx,drawOne:Kz,activateLastSelection:Vne};function vx(e){var t=e._fullLayout;Xz(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(K4.stroke,_).call(K4.fill,m).call(jz.dashLine,L?"solid":M,L?4+T:T);if(One(I,e,i),C){var O=Nne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:O,isActiveSelection:!0},z=Fne(f,e);qne(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 Une(e,N)})}}function One(e,t,r){var i=r.xref+r.yref;jz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function Une(e,t){if(dx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Q4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Q4,vx(e)}}}function Vne(e){if(dx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Q4,vx(e)}}function Q4(e){if(dx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Xz(e),delete e._fullLayout._activeSelectionIndex,vx(e))}}});var eI=me((N_e,$z)=>{function Hne(){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}$z.exports=Hne});var rI=me((B_e,tI)=>{function Gne(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],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}tI.exports=Gne});var iI=me((O_e,aI)=>{var Zne={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}};aI.exports=Zne});var oI=me((U_e,nI)=>{var Ag=iI();function Yne(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=Ag.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 f(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=Ag.node({isStart:!0,pt:C.start,seg:C,primary:E,other:null,status:null});return f(L,C.end),L}function v(C,E,L){var I=Ag.node({isStart:!1,pt:E.end,seg:E,primary:L,other:C,status:null});C.other=I,f(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,f(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=Ag.create();function I(Te,Se){var Me=Te.seg.start,Ae=Te.seg.end,pe=Se.seg.start,ke=Se.seg.end;return t.pointsCollinear(Me,pe,ke)?t.pointsCollinear(Ae,pe,ke)||t.pointAboveOrOnLine(Ae,pe,ke)?1:-1:t.pointAboveOrOnLine(Me,pe,ke)?1:-1}function O(Te){return L.findTransition(function(Se){var Me=I(Te,Se.ev);return Me>0})}function q(Te,Se){var Me=Te.seg,Ae=Se.seg,pe=Me.start,ke=Me.end,Ee=Ae.start,Xe=Ae.end;r&&r.checkIntersection(Me,Ae);var lt=t.linesIntersect(pe,ke,Ee,Xe);if(lt===!1){if(!t.pointsCollinear(pe,ke,Ee)||t.pointsSame(pe,Xe)||t.pointsSame(ke,Ee))return!1;var it=t.pointsSame(pe,Ee),_t=t.pointsSame(ke,Xe);if(it&&_t)return Se;var Ye=!it&&t.pointBetween(pe,Ee,Xe),kt=!_t&&t.pointBetween(ke,Ee,Xe);if(it)return kt?T(Se,ke):T(Te,Xe),Se;Ye&&(_t||(kt?T(Se,ke):T(Te,Xe)),T(Se,pe))}else lt.alongA===0&&(lt.alongB===-1?T(Te,Ee):lt.alongB===0?T(Te,lt.pt):lt.alongB===1&&T(Te,Xe)),lt.alongB===0&&(lt.alongA===-1?T(Se,pe):lt.alongA===0?T(Se,lt.pt):lt.alongA===1&&T(Se,ke));return!1}for(var z=[];!s.isEmpty();){var N=s.getHead();if(r&&r.vert(N.pt[0]),N.isStart){let Te=function(){if(V){var Se=q(N,V);if(Se)return Se}return W?q(N,W):!1};var le=Te;r&&r.segmentNew(N.seg,N.primary);var H=O(N),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(N.seg,V?V.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,V?V.seg:!1,W?W.seg:!1),N.other.status=H.insert(Ag.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 fe=N.seg.myFill;N.seg.myFill=N.seg.otherFill,N.seg.otherFill=fe}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 Wne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){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 _(le,Te,Se){return m.index=le,m.matches_head=Te,m.matches_pt1=Se,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function Mg(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 Xne={union:function(e,t){return Mg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Mg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Mg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Mg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Mg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};uI.exports=Xne});var hI=me((G_e,cI)=>{var jne={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 f=l(s[0]),h=1;h{var Jne=eI(),Kne=rI(),vI=oI(),Qne=lI(),Sg=fI(),dI=hI(),eu=!1,kg=Kne(),Vs;Vs={buildLog:function(e){return e===!0?eu=Jne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return kg.epsilon(e)},segments:function(e){var t=vI(!0,kg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=vI(!1,kg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Sg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Sg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Sg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Sg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Sg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Qne(e.segments,kg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return dI.toPolygon(Vs,e)},polygonToGeoJSON:function(e){return dI.fromPolygon(Vs,kg,e)},union:function(e,t){return Cg(e,t,Vs.selectUnion)},intersect:function(e,t){return Cg(e,t,Vs.selectIntersect)},difference:function(e,t){return Cg(e,t,Vs.selectDifference)},differenceRev:function(e,t){return Cg(e,t,Vs.selectDifferenceRev)},xor:function(e,t){return Cg(e,t,Vs.selectXor)}};function Cg(e,t,r){var i=Vs.segments(e),a=Vs.segments(t),s=Vs.combine(i,a),l=r(s);return Vs.polygon(l)}typeof window=="object"&&(window.PolyBool=Vs);pI.exports=Vs});var gI=me((Y_e,yI)=>{yI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!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&&(f=!f)}return f}});var yx=me((W_e,_I)=>{"use strict";var e6=g_().dot,px=Zi().BADNUM,mx=_I.exports={};mx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||I===px||Il||E&&v(C))}function _(C,E){var L=C[0],I=C[1];if(L===px||La||I===px||Il)return!1;var O=r.length,q=r[0][0],z=r[0][1],N=0,H,V,W,J,ee;for(H=1;HMath.max(V,q)||I>Math.max(W,z)))if(If||Math.abs(e6(_,v))>a)return!0;return!1};mx.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 f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var bI=me((X_e,xI)=>{"use strict";xI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var HI=me((j_e,VI)=>{"use strict";var wI=mI(),$ne=gI(),Dg=sa(),eoe=xi().dashStyle,Eg=Oa(),toe=Nf(),roe=kc().makeEventData,Fg=qd(),aoe=Fg.freeMode,ioe=Fg.rectMode,Pg=Fg.drawMode,i6=Fg.openMode,n6=Fg.selectMode,TI=Qh(),AI=yg(),EI=ex(),LI=Bh().clearOutline,DI=jh(),t6=DI.handleEllipse,noe=DI.readPaths,ooe=K2().newShapes,soe=C4(),loe=$4().activateLastSelection,_x=Bt(),uoe=_x.sorterAsc,PI=yx(),Lg=P_(),tu=jn().getFromId,foe=H2(),coe=hx().redrawReglTraces,xx=bI(),Vf=xx.MINSELECT,hoe=PI.filter,o6=PI.tester,s6=W2(),MI=s6.p2r,voe=s6.axValue,doe=s6.getTransform;function l6(e){return e.subplot!==void 0}function poe(e,t,r,i,a){var s=!l6(i),l=aoe(a),f=ioe(a),h=i6(a),v=Pg(a),m=n6(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=doe(q),N=t-O.left,H=r-O.top;E._calcInverseTransform(C);var V=_x.apply3DTransform(E._invTransform)(N,H);N=V[0],H=V[1];var W=E._invScaleX,J=E._invScaleY,ee=N,ie=H,oe="M"+N+","+H,fe=i.xaxes[0],le=i.yaxes[0],Te=fe._length,Se=le._length,Me=e.altKey&&!(Pg(a)&&h),Ae,pe,ke,Ee,Xe,lt,it;II(e,C,i),l&&(Ae=hoe([[N,H]],xx.BENDPX));var _t=I.selectAll("path.select-outline-"+q.id).data([1]),Ye=v?E.newshape:E.newselection;v&&(i.hasText=Ye.label.text||Ye.label.texttemplate);var kt=v&&!h?Ye.fillcolor:"rgba(0,0,0,0)",st=Ye.line.color||(s?Eg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");_t.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?Ye.opacity/2:1,"stroke-dasharray":eoe(Ye.line.dash,Ye.line.width),"stroke-width":Ye.line.width+"px","shape-rendering":"crispEdges"}).call(Eg.stroke,st).call(Eg.fill,kt).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var dt=I.append("path").attr("class","zoombox-corners").style({fill:Eg.background,stroke:Eg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var It=I.select(".label-temp");It.empty()&&(It=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var yt=E._uid+xx.SELECTID,de=[],ze=bx(C,i.xaxes,i.yaxes,i.subplot);L&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var Ue=fe._id,at=le._id;BI(C,Ue,at,ze);for(var Je=(C.layout||{}).selections||[],Ct=[],wt=!1,xt=0;xt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Je=E.clickmode;Lg.done(yt).then(function(){if(Lg.clear(yt),Ue===2){for(_t.remove(),Xe=0;Xe-1&&zI(at,C,i.xaxes,i.yaxes,i.subplot,i,_t),Je==="event"&&Rg(C,void 0);toe.click(C,at,q.id)}).catch(_x.error)}},i.doneFn=function(){dt.remove(),Lg.done(yt).then(function(){Lg.clear(yt),!L&&Ee&&i.selectionDefs&&(Ee.subtract=Me,i.selectionDefs.push(Ee),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,ke)),(L||v)&&zg(i,L),i.doneFnCompleted&&i.doneFnCompleted(de),m&&Rg(C,it)}).catch(_x.error)}}function zI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,M,C,E,L,I,O,q,z,N;if(xoe(f)){II(e,t,s),T=bx(t,r,i,a);var H=boe(f,T),V=H.pointNumbers.length>0;if(V?woe(T,H):Toe(T)&&(O=kI(H))){for(l&&l.remove(),N=0;N=0}function _oe(e){return e._fullLayout._activeSelectionIndex>=0}function zg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;goe(a)&&a._fullLayout._deactivateShape(a),_oe(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=Pg(r),h=n6(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=ooe(v,e)),m&&Dg.call("_guiRelayout",a,{shapes:m});var _;h&&!l6(e)&&(_=soe(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,Dg.call("_guiRelayout",a,{selections:_}).then(function(){t&&loe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function SI(e){return e._id}function bx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(SI),l=r.map(SI),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function woe(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 Ig(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var Ue=CI(e,!0);if(Ue.length){var at=Ue[0].xref,Je=Ue[0].yref;if(at&&Je){var Ct=OI(Ue),wt=UI([tu(e,at,"x"),tu(e,Je,"y")]);wt(de,Ct)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&Rg(e,de),T._reselect=!1}if(!l&&T._deselect){var xt=T._deselect;f=xt.xref,h=xt.yref,Soe(f,h,m)||BI(e,f,h,i),_e&&(de.points.length?Rg(e,de):c6(e)),T._deselect=!1}return{eventData:de,selectionTesters:r}}function Moe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";GI.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 qg=me((K_e,ZI)=>{"use strict";ZI.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 sm=me(($_e,XI)=>{"use strict";var YI=h6(),WI=qo(),wx=eo(),Doe=Ii().templatedArray,Q_e=qg();XI.exports=Doe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:WI({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:YI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:YI.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",wx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",wx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",wx.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",wx.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:WI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Tx=me((e2e,jI)=>{"use strict";jI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Ax=me((t2e,JI)=>{"use strict";JI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var zc=me((r2e,iR)=>{"use strict";var KI=Gw().axisHoverFormat,{hovertemplateAttrs:Poe,texttemplateAttrs:zoe,templatefallbackAttrs:QI}=kf(),$I=Sc(),Ioe=qo(),eR=gc().dash,Roe=gc().pattern,Foe=xi(),qoe=Tx(),Ng=yn().extendFlat,Noe=Ax();function tR(e){return{valType:"any",dflt:0,editType:"calc"}}function rR(e){return{valType:"any",editType:"calc"}}function aR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}iR.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:tR("x"),yperiod:tR("y"),xperiod0:rR("x0"),yperiod0:rR("y0"),xperiodalignment:aR("x"),yperiodalignment:aR("y"),xhoverformat:KI("x"),yhoverformat:KI("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:zoe(),texttemplatefallback:QI({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:Poe({},{keys:qoe.eventDataKeys}),hovertemplatefallback:QI(),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:Ng({},eR,{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:Noe(!0),fillgradient:Ng({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:Roe,marker:Ng({symbol:{valType:"enumerated",values:Foe.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:Ng({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ng({},eR,{arrayOk:!0}),editType:"calc"},$I("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"},$I("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:Ioe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var v6=me((i2e,sR)=>{"use strict";var nR=sm(),oR=zc().line,Boe=gc().dash,Mx=yn().extendFlat,Ooe=il().overrideAll,Uoe=Ii().templatedArray,a2e=qg();sR.exports=Ooe(Uoe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Mx({},nR.xref,{}),yref:Mx({},nR.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:oR.color,width:Mx({},oR.width,{min:1,dflt:1}),dash:Mx({},Boe,{dflt:"dot"})}}),"arraydraw","from-root")});var cR=me((n2e,fR)=>{"use strict";var lR=Bt(),Sx=Xi(),Voe=Wl(),Hoe=v6(),uR=Qh();fR.exports=function(t,r){Voe(t,r,{name:"selections",handleItemDefaults:Goe});for(var i=r.selections,a=0;a{"use strict";hR.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 Bg=me((s2e,mR)=>{"use strict";var Zoe=sa(),dR=Bt(),pR=jn();mR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=Zoe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),M=0;M{"use strict";var yR=$4(),Og=HI();gR.exports={moduleType:"component",name:"selections",layoutAttributes:v6(),supplyLayoutDefaults:cR(),supplyDrawNewSelectionDefaults:vR(),includeBasePlot:Bg()("selections"),draw:yR.draw,drawOne:yR.drawOne,reselect:Og.reselect,prepSelect:Og.prepSelect,clearOutline:Og.clearOutline,clearSelectionsCache:Og.clearSelectionsCache,selectOnClick:Og.selectOnClick}});var BR=me((u2e,NR)=>{"use strict";var g6=ja(),ru=Bt(),_R=ru.numberFormat,Yoe=Mf(),Woe=Q5(),kx=sa(),CR=ru.strTranslate,Xoe=ro(),xR=Oa(),ev=xi(),joe=Nf(),bR=Xi(),Joe=Wh(),Koe=jl(),ER=qd(),Cx=ER.selectingOrDrawing,Qoe=ER.freeMode,$oe=No().FROM_TL,ese=H2(),tse=hx().redrawReglTraces,rse=to(),p6=jn().getFromId,ase=Hf().prepSelect,ise=Hf().clearOutline,nse=Hf().selectOnClick,d6=Z4(),_6=eo(),wR=_6.MINDRAG,_s=_6.MINZOOM,TR=!0;function ose(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,M,C,E,L,I,O,q,z,N,H,V,W,J,ee,ie,oe,fe,le,Te,Se,Me;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&&f)for(var ht=t.overlays,pt=0;pt=0){Ot._fullLayout._deactivateShape(Ot);return}var er=Ot._fullLayout.clickmode;if(y6(Ot),ht===2&&!m&&Yt(),v)er.indexOf("select")>-1&&nse(pt,Ot,E,L,t.id,Ee),er.indexOf("event")>-1&&joe.click(Ot,pt,t.id);else if(ht===1&&m){var Ht=l?T:_,Kt=l==="s"||f==="w"?0:1,pr=Ht._name+".range["+Kt+"]",yr=sse(Ht,Kt),ur="left",Lt="middle";if(Ht.fixedrange)return;l?(Lt=l==="n"?"top":"bottom",Ht.side==="right"&&(ur="right")):f==="e"&&(ur="right"),Ot._context.showAxisRangeEntryBoxes&&g6.select(ke).call(Xoe.makeEditable,{gd:Ot,immediate:!0,background:Ot._fullLayout.paper_bgcolor,text:String(yr),fill:Ht.tickfont?Ht.tickfont.color:"#444",horizontalAlign:ur,verticalAlign:Lt}).on("edit",function(Fe){var Ve=Ht.d2r(Fe);Ve!==void 0&&kx.call("_guiRelayout",Ot,pr,Ve)})}}Koe.init(Ee);var it,_t,Ye,kt,st,dt,It,yt,de,ze;function _e(ht,pt,Ot){var er=ke.getBoundingClientRect();it=pt-er.left,_t=Ot-er.top,e._fullLayout._calcInverseTransform(e);var Ht=ru.apply3DTransform(e._fullLayout._invTransform)(it,_t);it=Ht[0],_t=Ht[1],Ye={l:it,r:it,w:0,t:_t,b:_t,h:0},kt=e._hmpixcount?e._hmlumcount/e._hmpixcount:Yoe(e._fullLayout.plot_bgcolor).getLuminance(),st="M0,0H"+q+"V"+z+"H0V0",dt=!1,It="xy",ze=!1,yt=PR(h,kt,I,O,st),de=zR(h,I,O)}function Ue(ht,pt){if(e._transitioningWithDuration)return!1;var Ot=Math.max(0,Math.min(q,Se*ht+it)),er=Math.max(0,Math.min(z,Me*pt+_t)),Ht=Math.abs(Ot-it),Kt=Math.abs(er-_t);Ye.l=Math.min(it,Ot),Ye.r=Math.max(it,Ot),Ye.t=Math.min(_t,er),Ye.b=Math.max(_t,er);function pr(){It="",Ye.r=Ye.l,Ye.t=Ye.b,de.attr("d","M0,0Z")}if(N.isSubplotConstrained)Ht>_s||Kt>_s?(It="xy",Ht/q>Kt/z?(Kt=Ht*z/q,_t>er?Ye.t=_t-Kt:Ye.b=_t+Kt):(Ht=Kt*q/z,it>Ot?Ye.l=it-Ht:Ye.r=it+Ht),de.attr("d",Ex(Ye))):pr();else if(H.isSubplotConstrained)if(Ht>_s||Kt>_s){It="xy";var yr=Math.min(Ye.l/q,(z-Ye.b)/z),ur=Math.max(Ye.r/q,(z-Ye.t)/z);Ye.l=yr*q,Ye.r=ur*q,Ye.b=(1-yr)*z,Ye.t=(1-ur)*z,de.attr("d",Ex(Ye))}else pr();else!W||Kt0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(pr.maxallowed!==void 0&&ee===(pr.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 use(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function PR(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",CR(r,i)).attr("d",a+"Z")}function zR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:xR.background,stroke:xR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",CR(t,r)).attr("d","M0,0Z")}function IR(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"),RR(e,t,a,s)}function RR(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 y6(e){g6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function FR(e){TR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),TR=!1)}function fse(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 cse(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 Ex(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 SR(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,M=(a||{}).yaHash,C=0;C{"use strict";var hse=ja(),Lx=Nf(),vse=jl(),dse=Wh(),Vu=BR().makeDragBox,oo=eo().DRAGGERSIZE;Dx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){hse.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 f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Vu(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&Lx.hover(t,T,s)},Lx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,vse.unhover(t,T))},t._context.showAxisDragHandles&&(Vu(t,l,f._offset-oo,h._offset-oo,oo,oo,"n","w"),Vu(t,l,f._offset+f._length,h._offset-oo,oo,oo,"n","e"),Vu(t,l,f._offset-oo,h._offset+h._length,oo,oo,"s","w"),Vu(t,l,f._offset+f._length,h._offset+h._length,oo,oo,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=oo),Vu(t,l,f._offset+f._length*.1,m,f._length*.8,oo,"","ew"),Vu(t,l,f._offset,m,f._length*.1,oo,"","w"),Vu(t,l,f._offset+f._length*.9,m,f._length*.1,oo,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=oo),Vu(t,l,_,h._offset+h._length*.1,oo,h._length*.8,"ns",""),Vu(t,l,_,h._offset+h._length*.9,oo,h._length*.1,"s",""),Vu(t,l,_,h._offset,oo,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,Lx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,Lx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Dx.updateFx(t)}};Dx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";dse(t._draggers,r)}});var VR=me((c2e,UR)=>{"use strict";var OR=sa();UR.exports=function(t){for(var r=OR.layoutArrayContainers,i=OR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var pse=yc(),b6=y_(),Ug=Lh(),mse=pw().sorterAsc,w6=sa();Vg.containerArrayMatch=VR();var yse=Vg.isAddVal=function(t){return t==="add"||pse(t)},HR=Vg.isRemoveVal=function(t){return t===null||t==="remove"};Vg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=w6.getComponentMethod(l,"supplyLayoutDefaults"),h=w6.getComponentMethod(l,"draw"),v=w6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===b6||h===b6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Ug.warn("Full array edits are incompatible with other edits",l);var M=i[""][""];if(HR(M))r.set(null);else if(Array.isArray(M))r.set(M);else return Ug.warn("Unrecognized full array edit value",l,M),!0;return m?!1:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(mse),E=r.get(),L=E||[],I=s(T,l).get(),O=[],q=-1,z=L.length,N,H,V,W,J,ee,ie,oe;for(N=0;NL.length-(ie?0:1)){Ug.warn("index out of range",l,V);continue}if(ee!==void 0)J.length>1&&Ug.warn("Insertion & removal are incompatible with edits to the same index.",l,V),HR(ee)?O.push(V):ie?(ee==="add"&&(ee={}),L.splice(V,0,ee),I&&I.splice(V,0,{})):Ug.warn("Unrecognized full object edit value",l,V,ee),q===-1&&(q=V);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(f(_,T),v!==b6){var fe;if(q===-1)fe=C;else{for(z=Math.max(L.length,z),fe=[],N=0;N=q));N++)fe.push(V);for(N=q;N{"use strict";var XR=Da(),jR=sa(),ss=Bt(),Hg=to(),JR=jn(),KR=Oa(),Gg=JR.cleanId,gse=JR.getFromTrace,T6=jR.traceIs,_se=["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=(Hg.subplotsRegistry.cartesian||{}).attrRegex,a=(Hg.subplotsRegistry.polar||{}).attrRegex,s=(Hg.subplotsRegistry.ternary||{}).attrRegex,l=(Hg.subplotsRegistry.gl3d||{}).attrRegex,f=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"),KR.clean(e),e.template&&e.template.layout&&au.cleanLayout(e.template.layout),e};function lm(e,t,r=!1){var i=e[t],a=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=Gg(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=WR(t);r;){if(r in e)return!0;r=WR(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)?A6(a,s):!1))return!1}return!0}return!1};au.collectionsAreEqual=A6});var L6=me(Ha=>{"use strict";var Rx=ja(),wse=Da(),Tse=Cw(),br=Bt(),Bi=br.nestedProperty,k6=Yy(),xs=zk(),iu=sa(),Vx=F0(),ta=to(),ls=Xi(),Ase=K5(),Mse=Nu(),M6=xi(),Sse=Oa(),kse=x6().initInteractions,Cse=Oh(),Ese=Hf().clearOutline,aF=cd().dfltConfig,zx=GR(),zn=QR(),hi=hx(),tv=il(),Lse=eo().AX_NAME_PATTERN,S6=0,$R=5;function Dse(e,t,r,i){var a;if(e=br.getGraphDiv(e),k6.init(e),br.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=k6.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 f(){if(a)return Ha.addFrames(e,a)}nF(e,i),r||(r={}),Rx.select(e).classed("js-plotly-plot",!0),M6.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)),ta.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(ele(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),M6.initGradients(e),M6.initPatterns(e),h&&ls.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ta.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 oF(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]),qx(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&qx(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Fse(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=sF(e,t,r,i,a),l=Ha.redraw(e),f=[e,s.update,r,s.maxPoints];return xs.add(e,Ha.prependTraces,f,uF,arguments),l}function fF(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=lF(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=sF(e,t,r,i,a),l=Ha.redraw(e),f=[e,s.update,r,s.maxPoints];return xs.add(e,Ha.extendTraces,f,fF,arguments),l}function cF(e,t,r){e=br.getGraphDiv(e);var i=[],a=Ha.deleteTraces,s=cF,l=[e,i],f=[e,t],h,v;for(Fse(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],fe=W.parts[ie-1]+"."+oe,le=W.parts.slice(0,ie).join("."),Te=Bi(e.layout,le).get(),Se=Bi(i,le).get(),Me=W.get();if(J!==void 0){I[V]=J,O[V]=oe==="reverse"?J:Ic(Me);var Ae=Vx.getLayoutValObject(i,W.parts);if(Ae&&Ae.impliedEdits&&J!==null)for(var pe in Ae.impliedEdits)q(br.relativeAttr(V,pe),Ae.impliedEdits[pe]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var ke=V==="height"?"width":"height";q(ke,i[ke])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(pF))H(fe),Bi(i,le+"._inputRange").set(null);else if(fe.match(mF)){H(fe),Bi(i,le+"._inputRange").set(null);var Ee=Bi(i,le).get();Ee._inputDomain&&(Ee._input.domain=Ee._inputDomain.slice())}else fe.match(Ose)&&Bi(i,le+"._inputDomain").set(null);if(oe==="type"){N=Te;var Xe=Se.type==="linear"&&J==="log",lt=Se.type==="log"&&J==="linear";if(Xe||lt){if(!N||!N.range)q(le+".autorange",!0);else if(Se.autorange)Xe&&(N.range=N.range[1]>N.range[0]?[1,2]:[2,1]);else{var it=N.range[0],_t=N.range[1];Xe?(it<=0&&_t<=0&&q(le+".autorange",!0),it<=0?it=_t/1e6:_t<=0&&(_t=it/1e6),q(le+".range[0]",Math.log(it)/Math.LN10),q(le+".range[1]",Math.log(_t)/Math.LN10)):(q(le+".range[0]",Math.pow(10,it)),q(le+".range[1]",Math.pow(10,_t)))}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,Se,J,q),iu.getComponentMethod("images","convertCoords")(e,Se,J,q)}else q(le+".autorange",!0),q(le+".range",null);Bi(i,le+"._inputRange").set(null)}else if(oe.match(Lse)){var Ye=Bi(i,V).get(),kt=(J||{}).type;(!kt||kt==="-")&&(kt="linear"),iu.getComponentMethod("annotations","convertCoords")(e,Ye,kt,q),iu.getComponentMethod("images","convertCoords")(e,Ye,kt,q)}var st=zx.containerArrayMatch(V);if(st){m=st.array,_=st.index;var dt=st.property,It=Ae||{editType:"calc"};_!==""&&dt===""&&(zx.isAddVal(J)?O[V]=null:zx.isRemoveVal(J)?O[V]=(Bi(r,m).get()||[])[_]:br.warn("unrecognized full object value",t)),tv.update(L,It),v[m]||(v[m]={});var yt=v[m][_];yt||(yt=v[m][_]={}),yt[dt]=J,delete t[V]}else oe==="reverse"?(Te.range?Te.range.reverse():(q(le+".autorange",!0),Te.range=[1,0]),Se.autorange?L.calc=!0:L.plot=!0):(V==="dragmode"&&(J===!1&&Me!==!1||J!==!1&&Me===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Me==="lasso"||Me==="select")?L.plot=!0:Ae?tv.update(L,Ae):L.calc=!0,W.set(J))}}for(m in v){var de=zx.applyContainerArrayChanges(e,s(r,m),v[m],L,s);de||(L.plot=!0)}for(var ze in z){N=ls.getFromId(e,ze);var _e=N&&N._constraintGroup;if(_e){L.calc=!0;for(var Ue in _e)z[Ue]||(ls.getFromId(e,Ue)._constraintShrinkable=!0)}}(gF(e)||t.height||t.width)&&(L.plot=!0);var at=i.shapes;for(_=0;_1;)if(i.pop(),r=Bi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Hse(e,t){for(var r=0;r[le,e._ev.listeners(le)]);s=Ha.newPlot(e,t,r,i).then(()=>{for(let[le,Te]of fe)Te.forEach(Se=>e.on(le,Se));return Ha.react(e,t,r,i)})}else{e.data=t||[],zn.cleanData(e.data),e.layout=r||{},zn.cleanLayout(e.layout),Zse(e.data,e.layout,f,h),ta.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,T=e._fullLayout,M=T.datarevision===void 0,C=T.transition,E=Xse(e,h,T,M,C),L=E.newDataRevision,I=Wse(e,f,_,M,C,L);if(gF(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 Wse(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var f=tv.traceFlags();f.arrays={},f.nChanges=0,f.nChangesAnim=0;var h,v;function m(M){var C=Vx.getTraceValObject(v,M);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:f,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function f(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 fe=0;fei._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),V=!N&&!H&&br.isPlainObject(t);if(V)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 Jse(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,f=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=f.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&&S6<$R&&(S6++,br.warn('addFrames: overwriting frame "'+(h[M]||_[M]).name+'" with a frame whose name of type "number" also equates to "'+M+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),S6===$R&&br.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),_[T]={name:T},m.push({frame:ta.supplyFrameDefaults(t[i]),index:r&&r[i]!==void 0&&r[i]!==null?r[i]:v+i})}m.sort(function(V,W){return V.index>W.index?-1:V.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 f=ta.modifyFrames,h=ta.modifyFrames,v=[e,l],m=[e,s];return xs&&xs.add(e,f,v,h,m),ta.modifyFrames(e,s)}function Qse(e){e=br.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ta.cleanPlot([],{},r,t),ta.purge(e),k6.purge(e),t._container&&t._container.remove(),delete e._context,e}function $se(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 ele(e){var t=Rx.select(e),r=e._fullLayout;if(r._calcInverseTransform=$se,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={};Rx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=br.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(Cse.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")}Ha.animate=jse;Ha.addFrames=Jse;Ha.deleteFrames=Kse;Ha.addTraces=cF;Ha.deleteTraces=hF;Ha.extendTraces=uF;Ha.moveTraces=C6;Ha.prependTraces=fF;Ha.newPlot=Rse;Ha._doPlot=Dse;Ha.purge=Qse;Ha.react=Yse;Ha.redraw=Ise;Ha.relayout=Zg;Ha.restyle=Nx;Ha.setPlotConfig=Pse;Ha.update=Ox;Ha._guiRelayout=E6(Zg);Ha._guiRestyle=E6(Nx);Ha._guiUpdate=E6(Ox);Ha._storeDirectGUIEdit=Bse});var Ud=me(Gf=>{"use strict";var tle=sa();Gf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Gf.getRedrawFunc=function(e){return function(){tle.getComponentMethod("colorbar","draw")(e)}};Gf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Gf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _F=window.URL||window.webkitURL;Gf.createObjectURL=function(e){return _F.createObjectURL(e)};Gf.revokeObjectURL=function(e){return _F.revokeObjectURL(e)};Gf.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=rle(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Gf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function rle(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var P6=ja(),m2e=Bt(),ale=xi(),ile=Oa(),y2e=Oh(),D6=/"/g,Wg="TOBESTRIPPED",nle=new RegExp('("'+Wg+")|("+Wg+'")',"g");function ole(e){var t=P6.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 sle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}xF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(ale.setRect,0,0,f,h).call(ile.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var lle=Bt(),ule=B_().EventEmitter,Xg=Ud();function fle(e){var t=e.emitter||new ule,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=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;f==="svg"||lle.isSafari()?I=Xg.encodeSVG(l):(L=Xg.createBlob(l,"svg"),I=Xg.createObjectURL(L)),h.width=T,h.height=M,E.onload=function(){var O;switch(L=null,Xg.revokeObjectURL(I),f!=="svg"&&C.drawImage(E,0,0,T,M),f){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,Xg.revokeObjectURL(I),a(O),!e.promise)return t.emit("error",O)},E.src=I});return e.promise?r:t}bF.exports=fle});var I6=me((x2e,AF)=>{"use strict";var wF=Da(),TF=L6(),cle=to(),Zf=Bt(),jg=Ud(),hle=Gx(),vle=Zx(),dle=t_().version,z6={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 ple(e,t){t=t||{};var r,i,a,s;Zf.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Zf.getGraphDiv(e),r=Zf.extendDeep([],e.data),i=Zf.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Zf.validate(t[H],z6[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 "+Zf.join2(z6.format.values,", "," or ")+".");var f={};function h(H,V){return Zf.coerce(t,f,z6,H,V)}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=Zf.extendFlat({},i);m?L.width=m:t.width===null&&wF(s.width)&&(L.width=s.width),_?L.height=_:t.height===null&&wF(s.height)&&(L.height=s.height);var I=Zf.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,V){var W=hle(E,v,T),J=E._fullLayout.width,ee=E._fullLayout.height;function ie(){TF.purge(E),document.body.removeChild(E)}if(v==="full-json"){var oe=cle.graphJson(E,!1,"keepdata","object",!0,!0);return oe.version=dle,oe=JSON.stringify(oe),ie(),H(C?oe:jg.encodeJSON(oe))}if(ie(),v==="svg")return H(C?W:jg.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Zf.randstr(),vle({format:v,width:J,height:ee,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function N(H){return C?H.replace(jg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){TF.newPlot(E,r,L,I).then(O).then(q).then(z).then(function(W){H(N(W))}).catch(function(W){V(W)})})}AF.exports=ple});var kF=me((b2e,SF)=>{"use strict";var nu=Bt(),mle=to(),yle=F0(),gle=cd().dfltConfig,Hu=nu.isPlainObject,Hd=Array.isArray,R6=nu.isArrayOrTypedArray;SF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=yle.get(),a=[],s={_context:nu.extendFlat({},gle)},l,f;Hd(t)?(s.data=nu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(so("array","data"))),Hu(r)?(s.layout=nu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(so("object","layout"))),mle.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,V;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],V=_[z][q],nu.validate(H,N)?V!==H&&V!==+H&&i.push(so("dynamic",a,v.concat(z,q),H,V)):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 Mle=Bt(),Wx=Ud();function Sle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Wx.createBlob(e,r),v=Wx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Wx.revokeObjectURL(v),h=null,l(t);if(Mle.isSafari()){var m=r==="svg"?",":";base64,";return Wx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}CF.exports=Sle});var F6=me((A2e,DF)=>{"use strict";var LF=Bt(),kle=I6(),Cle=EF(),T2e=Ud();function Ele(e,t){var r;return LF.isPlainObject(e)||(r=LF.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=kle(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),Cle(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}DF.exports=Ele});var FF=me(q6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,PF=F0(),zF=to(),Lle=ys(),IF=Ii(),RF=cd().dfltConfig;q6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:RF},{data:e.data,layout:e.layout}),zF.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={};Jg(M,C,Ple.bind(null,M));var E=Hs.coerce(M,{},Lle,"type"),L=i.data[E];L||(L=i.data[E]=[]),L.push(C)}),Jg(r,i.layout,Dle.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Xx(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Xx(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],V=ou(q,N,z);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),O(H,V)):Array.isArray(H)&&zle(H)&&O(H,V)}}if(O({data:h,layout:f},""),l.length)return l.map(Ile)};function zle(e){for(var t=0;t{"use strict";var Jn=L6();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 Rle=Ny().getGraphDiv,Fle=nx().eraseActiveShape;Ji.deleteActiveShape=function(e){return Fle(Rle(e))};Ji.toImage=I6();Ji.validate=kF();Ji.downloadImage=F6();var qF=FF();Ji.makeTemplate=qF.makeTemplate;Ji.validateTemplate=qF.validateTemplate});var OF=me((k2e,BF)=>{"use strict";var N6=Bt(),qle=sa();BF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=qle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=N6.minRowLength(s);l?f=Math.min(v,N6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=N6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var GF=me((C2e,HF)=>{"use strict";var UF=Bt().dateTick0,Nle=Zi(),Ble=Nle.ONEWEEK;function VF(e,t){return e%Ble===0?UF(t,1):UF(t,0)}HF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",VF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",VF(f,r.ycalendar)),a("yperiodalignment"))}}});var WF=me((E2e,YF)=>{"use strict";var ZF=["orientation","groupnorm","stackgaps"];YF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});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 XF=Oa(),jF=Ef().hasColorscale,JF=bd(),Ole=rs();KF.exports=function(t,r,i,a,s,l={}){var f=Ole.isBubble(t),h=(t.line||{}).color,v;if(h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),jF(t,"marker")&&JF(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:f?v=XF.background:v=XF.defaultLine,s("marker.line.color",v),jF(t,"marker.line")&&JF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0),l.noLineDash||s("marker.line.dash")),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var O6=me((D2e,QF)=>{"use strict";var Ule=Bt().isArrayOrTypedArray,Vle=Ef().hasColorscale,Hle=bd();QF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),Vle(t,"line"))Hle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(Ule(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var eq=me((P2e,$F)=>{"use strict";$F.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var U6=me((z2e,tq)=>{"use strict";var Gle=Bt();tq.exports=function(e,t,r,i,a){a=a||{},i("textposition"),Gle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var V6=me((I2e,aq)=>{"use strict";var Jx=Oa(),rq=Bt().isArrayOrTypedArray;function Zle(e){for(var t=Jx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var iq=Bt(),Yle=sa(),Wle=zc(),Xle=Tx(),um=rs(),jle=OF(),Jle=GF(),Kle=WF(),Qle=B6(),$le=O6(),nq=eq(),eue=U6(),tue=V6(),rue=Bt().coercePattern;oq.exports=function(t,r,i,a){function s(M,C){return iq.coerce(t,r,Wle,M,C)}var l=jle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){Jle(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=Kle(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var aue=bg().getAxisGroup;lq.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=aue(i,f)+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 cq=me((q2e,fq)=>{"use strict";var iue=Bt(),nue=uq(),oue=zc();fq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return iue.coerce(a._input,a,oue,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 vq=me((N2e,hq)=>{"use strict";var sue=Bt(),lue=G_();hq.exports=function(e,t){function r(a,s){return sue.coerce(e,t,lue,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var mq=me((B2e,pq)=>{"use strict";var uue=Da(),dq=Bt(),fue=dq.dateTime2ms,Kx=dq.incrementMonth,cue=Zi(),hue=cue.ONEAVGMONTH;pq.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"],f;if(uue(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)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],M=fue(T,v)||0,C=[],E=[],L=[],I=a.length,O=0;Oq;)H=Kx(H,-f,v);for(;H<=q;)H=Kx(H,f,v);N=Kx(H,-f,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 Z6=me((O2e,gq)=>{"use strict";var H6=Ef().hasColorscale,G6=Qy(),yq=rs();gq.exports=function(t,r){yq.hasLines(r)&&H6(r,"line")&&G6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),yq.hasMarkers(r)&&(H6(r,"marker")&&G6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),H6(r,"marker.line")&&G6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Kg=me((U2e,_q)=>{"use strict";var hn=Bt();_q.exports=function(t,r){for(var i=0;i{"use strict";var xq=Bt();bq.exports=function(t,r){xq.isArrayOrTypedArray(r.selectedpoints)&&xq.tagSelected(t,r)}});var J6=me((H2e,Cq)=>{"use strict";var wq=Da(),W6=Bt(),Qg=Xi(),Tq=mq(),Y6=Zi().BADNUM,X6=rs(),vue=Z6(),due=Kg(),pue=Qx();function mue(e,t){var r=e._fullLayout,i=t._xA=Qg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Qg.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),f=Tq(t,i,"x",s),h=Tq(t,a,"y",l),v=f.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;Sq(r,t);var H="x",V="y",W;if(C)W6.pushUnique(C.traceIndices,t.index),L=C.orientation==="v",L?(V="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=Mq(t,_);Aq(e,t,i,a,v,m,J)}var ee=!!t.xperiodalignment,ie=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},fe=wq(v[I]),le=wq(m[I]);fe&&le?(oe[H]=v[I],oe[V]=m[I],ee&&(oe.orig_x=s[I],oe.xEnd=f.ends[I],oe.xStart=f.starts[I]),ie&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(L?fe:le)?(oe[W]=L?v[I]:m[I],oe.gap=!0,z?(oe.s=Y6,E=!0):oe.s=0):oe[H]=oe[V]=Y6,M&&(oe.id=String(M[I]))}if(due(T,t),vue(e,t),pue(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";Eq.exports=$x;var yue=Bt().distinctVals;function $x(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";Dq.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var qq=me((Y2e,Fq)=>{"use strict";var su=Da(),{isArrayOrTypedArray:Rc}=Bt(),{BADNUM:fm}=Zi(),gue=sa(),$g=Xi(),{getAxisGroup:_ue}=bg(),eb=Lq(),{TEXTPAD:xue}=Pq(),{LINE_SPACING:bue}=No(),{BR_TAG_ALL:wue}=ro();function Tue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!su(f))}for(var m=0;mi(s))):i(e.text);let a=e.outsidetextfont.size*bue*r+xue;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 zue(e,t,r,i){for(var a=cm(i),s=0;s{"use strict";var Nq=J6(),Bq=qq().setGroupPositions;function Rue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var que=xi(),Zq=Zi(),e1=Zq.BADNUM,Yq=Zq.LOG_CLIP,Vq=Yq+.5,Hq=Yq-.5,tb=Bt(),Nue=tb.segmentsIntersect,Gq=tb.constrain,aT=Tx();Wq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=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=aT.minTolerance,q=t.length,z=new Array(q),N=0,H,V,W,J,ee,ie,oe,fe,le,Te,Se,Me,Ae,pe,ke,Ee;function Xe(Lt){var Fe=t[Lt];if(!Fe)return!1;var Ve=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),bt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ve===e1){if(l&&(Ve=a.c2p(Fe.x,!0)),Ve===e1)return!1;f&&bt===e1&&(Ve*=Math.abs(a._m*v*(a._m>0?Vq:Hq)/(s._m*h*(s._m>0?Vq:Hq)))),Ve*=1e3}if(bt===e1){if(f&&(bt=s.c2p(Fe.y,!0)),bt===e1)return!1;bt*=1e3}return[Ve,bt]}function lt(Lt,Fe,Ve,bt){var Tt=Ve-Lt,mr=bt-Fe,Ar=.5-Lt,Mr=.5-Fe,Gr=Tt*Tt+mr*mr,pa=Tt*Ar+mr*Mr;if(pa>0&&pa1||Math.abs(Ar.y-Ve[0][1])>1)&&(Ar=[Ar.x,Ar.y],bt&&kt(Ar,Lt)It||Lt[1]de)return[Gq(Lt[0],dt,It),Gq(Lt[1],yt,de)]}function Ut(Lt,Fe){if(Lt[0]===Fe[0]&&(Lt[0]===dt||Lt[0]===It)||Lt[1]===Fe[1]&&(Lt[1]===yt||Lt[1]===de))return!0}function Dt(Lt,Fe){var Ve=[],bt=qt(Lt),Tt=qt(Fe);return bt&&Tt&&Ut(bt,Tt)||(bt&&Ve.push(bt),Tt&&Ve.push(Tt)),Ve}function Mt(Lt,Fe,Ve){return function(bt,Tt){var mr=qt(bt),Ar=qt(Tt),Mr=[];if(mr&&Ar&&Ut(mr,Ar))return Mr;mr&&Mr.push(mr),Ar&&Mr.push(Ar);var Gr=2*tb.constrain((bt[Lt]+Tt[Lt])/2,Fe,Ve)-((mr||bt)[Lt]+(Ar||Tt)[Lt]);if(Gr){var pa;mr&&Ar?pa=Gr>0==mr[Lt]>Ar[Lt]?mr:Ar:pa=mr||Ar,pa[Lt]+=Gr}return Mr}}var Zt;C==="linear"||C==="spline"?Zt=xt:C==="hv"||C==="vh"?Zt=Dt:C==="hvh"?Zt=Mt(0,dt,It):C==="vhv"&&(Zt=Mt(1,yt,de));function Yt(Lt,Fe){var Ve=Fe[0]-Lt[0],bt=(Fe[1]-Lt[1])/Ve,Tt=(Lt[1]*Fe[0]-Fe[1]*Lt[0])/Ve;return Tt>0?[bt>0?dt:It,de]:[bt>0?It:dt,yt]}function Be(Lt){var Fe=Lt[0],Ve=Lt[1],bt=Fe===z[N-1][0],Tt=Ve===z[N-1][1];if(!(bt&&Tt))if(N>1){var mr=Fe===z[N-2][0],Ar=Ve===z[N-2][1];bt&&(Fe===dt||Fe===It)&&mr?Ar?N--:z[N-1]=Lt:Tt&&(Ve===yt||Ve===de)&&Ar?mr?N--:z[N-1]=Lt:z[N++]=Lt}else z[N++]=Lt}function ut(Lt){z[N-1][0]!==Lt[0]&&z[N-1][1]!==Lt[1]&&Be([at,Je]),Be(Lt),Ct=null,at=Je=0}var sr=tb.isArrayOrTypedArray(_);function Pr(Lt){if(Lt&&m&&(Lt.i=H,Lt.d=t,Lt.trace=i,Lt.marker=sr?_[Lt.i]:_,Lt.backoff=m),it=Lt[0]/h,_t=Lt[1]/v,_e=Lt[0]It?It:0,Ue=Lt[1]de?de:0,_e||Ue){if(!N)z[N++]=[_e||Lt[0],Ue||Lt[1]];else if(Ct){var Fe=Zt(Ct,Lt);Fe.length>1&&(ut(Fe[0]),z[N++]=Fe[1])}else wt=Zt(z[N-1],Lt)[0],z[N++]=wt;var Ve=z[N-1];_e&&Ue&&(Ve[0]!==_e||Ve[1]!==Ue)?(Ct&&(at!==_e&&Je!==Ue?Be(at&&Je?Yt(Ct,Lt):[at||_e,Je||Ue]):at&&Je&&Be([at,Je])),Be([_e,Ue])):at-_e&&Je-Ue&&Be([_e||at,Ue||Je]),Ct=Lt,at=_e,Je=Ue}else Ct&&ut(Zt(Ct,Lt)[0]),z[N++]=Lt}for(H=0;HYe(ie,Et))break;W=ie,Ae=le[0]*fe[0]+le[1]*fe[1],Ae>Se?(Se=Ae,J=ie,oe=!1):Ae=t.length||!ie)break;Pr(ie),V=ie}}Ct&&Be([at||Ct[0],Je||Ct[1]]),I.push(z.slice(0,N))}var ht=C.slice(C.length-1);if(m&&ht!=="h"&&ht!=="v"){for(var pt=!1,Ot=-1,er=[],Ht=0;Ht{"use strict";var jq={tonextx:1,tonexty:1,tonext:1};Jq.exports=function(t,r,i){var a,s,l,f,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 Gu=ja(),Bue=sa(),t1=Bt(),hm=t1.ensureSingle,$q=t1.identity,gn=xi(),vm=rs(),Oue=Xq(),Uue=Kq(),rb=yx().tester;eN.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=Uue(t,r,i);if(f=a.selectAll("g.trace").data(_,function(M){return M[0].trace.uid}),f.enter().append("g").attr("class",function(M){return"trace scatter trace"+M[0].trace.uid}).style("stroke-miterlimit",2),f.order(),Vue(t,f,r),m){l&&(h=l());var T=Gu.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){Qq(t,C,r,M,_,this,s)})})}else f.each(function(M,C){Qq(t,C,r,M,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function Vue(e,t,r){t.each(function(i){var a=hm(Gu.select(this),"g","fills");gn.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 f=a.selectAll("g").data(l,$q);f.enter().append("g"),f.exit().remove(),f.order().each(function(h){s[h]=hm(Gu.select(this),"path","js-fill")})})}function Qq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;Hue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Mt){return v?Mt.transition():Mt}var _=r.xaxis,T=r.yaxis,M=i[0].trace,C=M.line,E=Gu.select(s),L=hm(E,"g","errorbars"),I=hm(E,"g","lines"),O=hm(E,"g","points"),q=hm(E,"g","text");if(Bue.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 V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=E;var J="",ee=[],ie=M._prevtrace,oe=null,fe=null;ie&&(J=ie._prevRevpath||"",N=ie._nextFill,ee=ie._ownPolygons,oe=ie._fillsegments,fe=ie._fillElement);var le,Te,Se="",Me="",Ae,pe,ke,Ee,Xe,lt,it=[];M._polygons=[];var _t=[],Ye=[],kt=t1.noop;if(z=M._ownFill,vm.hasLines(M)||M.fill!=="none"){N&&N.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(Ae=gn.steps(C.shape),pe=gn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?Ae=pe=function(Mt){var Zt=Mt[Mt.length-1];return Mt.length>1&&Mt[0][0]===Zt[0]&&Mt[0][1]===Zt[1]?gn.smoothclosed(Mt.slice(1),C.smoothing):gn.smoothopen(Mt,C.smoothing)}:Ae=pe=function(Mt){return"M"+Mt.join("L")},ke=function(Mt){return pe(Mt.reverse())},Ye=Oue(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}),_t=new Array(Ye.length);var st=0;for(h=0;h=f[0]&&E.x<=f[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;vm.hasMarkers(I)&&I.marker.maxdisplayed>0&&L{"use strict";rN.exports={container:"marker",min:"cmin",max:"cmax"}});var iN=me((Q2e,aN)=>{"use strict";var ab=Xi();aN.exports=function(t,r,i){var a={},s={_fullLayout:i},l=ab.getFromTrace(s,r,"x"),f=ab.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=ab.tickText(l,l.c2l(h),!0).text,a.yLabel=ab.tickText(f,f.c2l(v),!0).text,a}});var lT=me(($2e,nN)=>{"use strict";var nT=ja(),dm=xi(),Gue=sa();function Zue(e){var t=nT.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=nT.select(this),a=r.trace||r[0].trace;oT(i,a,e)}),t.selectAll("g.text").each(function(r){var i=nT.select(this),a=r.trace||r[0].trace;sT(i,a,e)}),t.selectAll("g.trace path.js-line").call(dm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(dm.fillGroupStyle,e,!1),Gue.getComponentMethod("errorbars","style")(t)}function oT(e,t,r){dm.pointStyle(e.selectAll("path.point"),t,r)}function sT(e,t,r){dm.textPointStyle(e.selectAll("text"),t,r)}function Yue(e,t,r){var i=t[0].trace;i.selectedpoints?(dm.selectedPointStyle(r.selectAll("path.point"),i),dm.selectedTextStyle(r.selectAll("text"),i)):(oT(r,i,e),sT(r,i,e))}nN.exports={style:Zue,stylePoints:oT,styleText:sT,styleOnSelect:Yue}});var uT=me((exe,oN)=>{"use strict";var pm=Oa(),Wue=rs();oN.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&pm.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&&pm.opacity(s)?s:l&&pm.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?pm.opacity(a)<.3?pm.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&pm.opacity(i)&&Wue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var uN=me((txe,lN)=>{"use strict";var ib=Bt(),sN=Nf(),Xue=sa(),jue=uT(),fT=Oa(),Jue=ib.fillText;lN.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.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(Me){if(C){var Ae=f.c2p(Me.xStart),pe=f.c2p(Me.xEnd);return v>=Math.min(Ae,pe)&&v<=Math.max(Ae,pe)?0:1/0}var ke=Math.max(3,Me.mrc||0),Ee=1-1/ke,Xe=Math.abs(f.c2p(Me.x)-v);return Xe=Math.min(Ae,pe)&&m<=Math.max(Ae,pe)?0:1/0}var ke=Math.max(3,Me.mrc||0),Ee=1-1/ke,Xe=Math.abs(h.c2p(Me.y)-m);return Xeit!=de>=it&&(dt=kt[Ye-1][0],It=kt[Ye][0],de-yt&&(st=dt+(It-dt)*(it-yt)/(de-yt),ke=Math.min(ke,st),Ee=Math.max(Ee,st)));return ke=Math.max(ke,0),Ee=Math.min(Ee,f._length),{x0:ke,x1:Ee,y0:it,y1:it}}if(T.indexOf("fills")!==-1&&l._fillElement){var le=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(le){var Te=fe(l._polygons);Te===null&&(Te={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Se=fT.defaultLine;return fT.opacity(l.fillcolor)?Se=l.fillcolor:fT.opacity((l.line||{}).color)&&(Se=l.line.color),ib.extendFlat(t,{distance:t.maxHoverDistance,x0:Te.x0,x1:Te.x1,y0:Te.y0,y1:Te.y1,color:Se,hovertemplate:!1}),delete t.index,l.text&&!ib.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var hN=me((rxe,cN)=>{"use strict";var fN=rs();cN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!fN.hasMarkers(f)&&!fN.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";vN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var gN=me((ixe,yN)=>{"use strict";var r1=sa().traceIs,cT=L5();yN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(Kue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function Kue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=Que(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",f=s[l],h={noMultiCategory:!r1(s,"cartesian")||r1(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,mN(s,i)){var v=pN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(mN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function pN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mN(e,t){var r=pN(e),i=r1(e,"box-violin"),a=r1(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var xN=me((nxe,_N)=>{"use strict";var $ue=al().isTypedArraySpec;function efe(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||$ue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=efe(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var TN=me((oxe,wN)=>{"use strict";var bN=Mf().mix,tfe=Sf(),rfe=Bt();wN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return rfe.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=bN(s,a.bgColor,a.blend||tfe.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=bN(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"),V=i("zeroline",a.showGrid||!!N||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var vT=me((sxe,EN)=>{"use strict";var AN=Da(),afe=sa(),a1=Bt(),ife=Ii(),nfe=Wl(),hT=Nu(),MN=$w(),SN=t5(),ofe=i5(),sfe=n5(),lfe=xN(),ufe=TN(),ffe=K5(),kN=m2(),nb=eo().WEEKDAY_PATTERN,cfe=eo().HOUR_PATTERN;EN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var M=afe.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=a1.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"),kN(r,s),ffe(t,r,i,a),lfe(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var E=i("color"),L=E!==hT.color.dflt?E:f.color,I=h.label||s._dfltTitle[l];if(sfe(t,r,i,_,a),!v)return r;i("title.text",I),a1.coerceFont(i,"title.font",f,{overrideDflt:{size:a1.bigFont(f.size),color:L}}),MN(t,r,i,_);var O=a.hasMinor;if(O&&(ife.newContainer(r,"minor"),MN(t,r,i,_,{isMinor:!0})),ofe(t,r,i,_,a),SN(t,r,i,a),O){var q=a.isMinor;a.isMinor=!0,SN(t,r,i,a),a.isMinor=q}ufe(t,r,i,{dfltColor:E,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:O,attributes:hT}),O&&!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(nfe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:hfe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=CN(s[f]),h){l=nb;break}}var v=i("pattern",l);if(v===nb)for(f=0;f<2;f++)h=CN(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case nb:if(!AN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case cfe:if(!AN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=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 dfe=Da(),ob=Bt();LN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,M,C,E;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],M=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(dfe(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),M=M||0,C=0,E=!1;var L=ob.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=ob.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(L==="free"){if(f==="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=ob.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=_),ob.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var BN=me((uxe,NN)=>{"use strict";var Gd=Bt(),DN=Oa(),pfe=kc().isUnifiedHover,mfe=A4(),PN=Ii(),yfe=M0(),zN=Nu(),gfe=gN(),IN=vT(),_fe=bg(),RN=dT(),mT=jn(),Yf=mT.id2name,FN=mT.name2id,xfe=eo().AX_ID_PATTERN,qN=sa(),sb=qN.traceIs,pT=qN.getComponentMethod;function lb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}NN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},M={},C={},E,L;for(E=0;E{"use strict";var bfe=ja(),ON=sa(),ub=Bt(),cl=xi(),fb=Xi();UN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){fb.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 f(L,I){var O=L.plotinfo,q=O.xaxis,z=O.yaxis,N=q._length,H=z._length,V=!!L.xr1,W=!!L.yr1,J=[];if(V){var ee=ub.simpleMap(L.xr0,q.r2l),ie=ub.simpleMap(L.xr1,q.r2l),oe=ee[1]-ee[0],fe=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*fe/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 le=ub.simpleMap(L.yr0,z.r2l),Te=ub.simpleMap(L.yr1,z.r2l),Se=le[1]-le[0],Me=Te[1]-Te[0];J[1]=(le[1]*(1-I)+I*Te[1]-le[1])/(le[0]-le[1])*H,J[3]=H*(1-I+I*Me/Se),z.range[0]=q.l2r(le[0]*(1-I)+I*Te[0]),z.range[1]=z.l2r(le[1]*(1-I)+I*Te[1])}else J[1]=0,J[3]=H;fb.drawOne(t,q,{skipTitle:!0}),fb.drawOne(t,z,{skipTitle:!0}),fb.redrawComponents(t,[q._id,z._id]);var Ae=V?N/J[2]:1,pe=W?H/J[3]:1,ke=V?J[0]:0,Ee=W?J[1]:0,Xe=V?J[0]/J[2]*N:0,lt=W?J[1]/J[3]*H:0,it=q._offset-Xe,_t=z._offset-lt;O.clipRect.call(cl.setTranslate,ke,Ee).call(cl.setScale,1/Ae,1/pe),O.plot.call(cl.setTranslate,it,_t).call(cl.setScale,Ae,pe),cl.setPointGroupScale(O.zoomScalePts,1/Ae,1/pe),cl.setTextPointsScale(O.zoomScaleTxt,1/Ae,1/pe)}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 yT=me(Uo=>{"use strict";var hb=ja(),HN=sa(),Zd=Bt(),wfe=to(),Tfe=xi(),GN=W_().getModuleCalcData,rv=jn(),Zu=eo(),Afe=Oh(),ai=Zd.ensureSingle;function cb(e,t,r){return Zd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Yd=Zu.zindexSeparator;Uo.name="cartesian";Uo.attr=["xaxis","yaxis"];Uo.idRoot=["x","y"];Uo.idRegex=Zu.idRegex;Uo.attrRegex=Zu.attrRegex;Uo.attributes=dN();Uo.layoutAttributes=Nu();Uo.supplyLayoutDefaults=BN();Uo.transitionAxes=VN();Uo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var M=T.id;if(M.indexOf(Yd)!==-1)continue;M+=Yd+(v+1),T=Zd.extendFlat({},T,{id:M,plot:a._cartesianlayer.selectAll(".subplot").select("."+M)})}for(var C=[],E,L=0;L1&&(N+=Yd+z),q.push(f+N),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ai(i,"path","xlines-above"),t.ylines=ai(i,"path","ylines-above"),t.xaxislayer=ai(i,"g","xaxislayer-above"),t.yaxislayer=ai(i,"g","yaxislayer-above");else{if(!l){var T=ai(i,"g","layer-subplot");t.shapelayer=ai(T,"g","shapelayer"),t.imagelayer=ai(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ai(i,"g","minor-gridlayer"),t.gridlayer=ai(i,"g","gridlayer"),t.zerolinelayer=ai(i,"g","zerolinelayer"));var M=ai(i,"g","layer-between");t.shapelayerBetween=ai(M,"g","shapelayer"),t.imagelayerBetween=ai(M,"g","imagelayer"),ai(i,"path","xlines-below"),ai(i,"path","ylines-below"),t.overlinesBelow=ai(i,"g","overlines-below"),ai(i,"g","xaxislayer-below"),ai(i,"g","yaxislayer-below"),t.overaxesBelow=ai(i,"g","overaxes-below")}t.overplot=ai(i,"g","overplot"),t.plot=ai(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ai(i,"g","zerolinelayer-above"),l||(t.xlines=ai(i,"path","xlines-above"),t.ylines=ai(i,"path","ylines-above"),t.overlinesAbove=ai(i,"g","overlines-above"),ai(i,"g","xaxislayer-above"),ai(i,"g","yaxislayer-above"),t.overaxesAbove=ai(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),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,ai(_.overlinesBelow,"path",E),ai(_.overlinesBelow,"path",L),ai(_.overaxesBelow,"g",E),ai(_.overaxesBelow,"g",L),t.plot=ai(_.overplot,"g",a),ai(_.overlinesAbove,"path",E),ai(_.overlinesAbove,"path",L),ai(_.overaxesAbove,"g",E),ai(_.overaxesAbove,"g",L),t.xlines=C.select(".overlines-"+f).select("."+E),t.ylines=C.select(".overlines-"+h).select("."+L),t.xaxislayer=C.select(".overaxes-"+f).select("."+E),t.yaxislayer=C.select(".overaxes-"+h).select("."+L)}l||(v||(cb(t.minorGridlayer,"g",t.xaxis._id),cb(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort),cb(t.gridlayer,"g",t.xaxis._id),cb(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 WN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=hb.select(this);m.remove(),XN(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 vb=rs();jN.exports={hasLines:vb.hasLines,hasMarkers:vb.hasMarkers,hasText:vb.hasText,isBubble:vb.isBubble,attributes:zc(),layoutAttributes:G_(),supplyDefaults:sq(),crossTraceDefaults:cq(),supplyLayoutDefaults:vq(),calc:J6().calc,crossTraceCalc:Uq(),arraysToCalcdata:Kg(),plot:tN(),colorbar:iT(),formatLabels:iN(),style:lT().style,styleOnSelect:lT().styleOnSelect,hoverPoints:uN(),selectPoints:hN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:yT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var $N=me((vxe,QN)=>{"use strict";var Sfe=ja(),kfe=Oa(),KN=h6(),gT=Bt(),Cfe=gT.strScale,Efe=gT.strRotate,Lfe=gT.strTranslate;QN.exports=function(t,r,i){var a=t.node(),s=KN[i.arrowhead||0],l=KN[i.startarrowhead||0],f=(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*f+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)){le();return}if(_){if(_*_>I*I+O*O){le();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){le();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 V=a.getTotalLength(),W="";if(V<_+T){le();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,V)),W="0px,"+T+"px,";var ie=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);L=Math.atan2(ie.y-oe.y,ie.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function le(){t.style("stroke-dasharray","0px,100px")}function Te(Se,Me,Ae,pe){Se.path&&(Se.noRotate&&(Ae=0),Sfe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Se.path,transform:Lfe(Me.x,Me.y)+Efe(Ae*180/Math.PI)+Cfe(pe)}).style({fill:kfe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Te(l,M,E,h),m&&Te(s,C,L,f)}});var db=me((dxe,iB)=>{"use strict";var eB=ja(),_T=sa(),Dfe=to(),iv=Bt(),xT=iv.strTranslate,n1=Xi(),Wd=Oa(),Fc=xi(),tB=Nf(),bT=ro(),wT=Wh(),i1=jl(),Pfe=Ii().arrayEditor,zfe=$N();iB.exports={draw:Ife,drawOne:rB,drawRaw:aB};function Ife(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 yt=!1,de=["x","y"],ze=0;ze1)&&(at===Ue?(Et=Je.r2fraction(t["a"+_e]),(Et<0||Et>1)&&(yt=!0)):yt=!0),Zt=Je._offset+Je.r2p(t[_e]),ut=.5}else{var ht=Pr==="domain";_e==="x"?(Be=t[_e],Zt=ht?Je._offset+Je._length*Be:Zt=f.l+f.w*Be):(Be=1-t[_e],Zt=ht?Je._offset+Je._length*Be:Zt=f.t+f.h*Be),ut=t.showarrow?.5:Be}if(t.showarrow){Mt.head=Zt;var pt=t["a"+_e];if(sr=wt*It(.5,t.xanchor)-xt*It(.5,t.yanchor),at===Ue){var Ot=n1.getRefType(at);Ot==="domain"?(_e==="y"&&(pt=1-pt),Mt.tail=Je._offset+Je._length*pt):Ot==="paper"?_e==="y"?(pt=1-pt,Mt.tail=f.t+f.h*pt):Mt.tail=f.l+f.w*pt:Mt.tail=Je._offset+Je.r2p(pt),Yt=sr}else Mt.tail=Zt+pt,Yt=sr+pt;Mt.text=Mt.tail+sr;var er=l[_e==="x"?"width":"height"];if(Ue==="paper"&&(Mt.head=iv.constrain(Mt.head,1,er-1)),at==="pixel"){var Ht=-Math.max(Mt.tail-3,Mt.text),Kt=Math.min(Mt.tail+3,Mt.text)-er;Ht>0?(Mt.tail+=Ht,Mt.text+=Ht):Kt>0&&(Mt.tail-=Kt,Mt.text-=Kt)}Mt.tail+=Dt,Mt.head+=Dt}else sr=qt*It(ut,Ut),Yt=sr,Mt.text=Zt+sr;Mt.text+=Dt,sr+=Dt,Yt+=Dt,t["_"+_e+"padplus"]=qt/2+Yt,t["_"+_e+"padminus"]=qt/2-Yt,t["_"+_e+"size"]=qt,t["_"+_e+"shift"]=sr}if(yt){V.remove();return}var pr=0,yr=0;if(t.align!=="left"&&(pr=(Ye-it)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(kt-_t)*(t.valign==="middle"?.5:1)),Xe)Ee.select("svg").attr({x:ee+pr-1,y:ee+yr}).call(Fc.setClipUrl,oe?E:null,e);else{var ur=ee+yr-lt.top,Lt=ee+pr-lt.left;Se.call(bT.positionText,Lt,ur).call(Fc.setClipUrl,oe?E:null,e)}fe.select("rect").call(Fc.setRect,ee,ee,Ye,kt),ie.call(Fc.setRect,W/2,W/2,st-W,dt-W),V.call(Fc.setTranslate,Math.round(L.x.text-st/2),Math.round(L.y.text-dt/2)),q.attr({transform:"rotate("+I+","+L.x.text+","+L.y.text+")"});var Fe=function(bt,Tt){O.selectAll(".annotation-arrow-g").remove();var mr=L.x.head,Ar=L.y.head,Mr=L.x.tail+bt,Gr=L.y.tail+Tt,pa=L.x.text+bt,Ca=L.y.text+Tt,ii=iv.rotationXYMatrix(I,pa,Ca),wi=iv.apply2DTransform(ii),vi=iv.apply2DTransform2(ii),Fi=+ie.attr("width"),Gi=+ie.attr("height"),vn=pa-.5*Fi,nn=vn+Fi,Ki=Ca-.5*Gi,ir=Ki+Gi,oi=[[vn,Ki,vn,ir],[vn,ir,nn,ir],[nn,ir,nn,Ki],[nn,Ki,vn,Ki]].map(vi);if(!oi.reduce(function(We,mt){return We^!!iv.segmentsIntersect(mr,Ar,mr+1e6,Ar+1e6,mt[0],mt[1],mt[2],mt[3])},!1)){oi.forEach(function(We){var mt=iv.segmentsIntersect(Mr,Gr,mr,Ar,We[0],We[1],We[2],We[3]);mt&&(Mr=mt.x,Gr=mt.y)});var Sa=t.arrowwidth,la=t.arrowcolor,Ci=t.arrowside,ma=O.append("g").style({opacity:Wd.opacity(la)}).classed("annotation-arrow-g",!0),se=ma.append("path").attr("d","M"+Mr+","+Gr+"L"+mr+","+Ar).style("stroke-width",Sa+"px").call(Wd.stroke,Wd.rgb(la));if(zfe(se,Ci,t),h.annotationPosition&&se.node().parentNode&&!i){var te=mr,ue=Ar;if(t.standoff){var he=Math.sqrt(Math.pow(mr-Mr,2)+Math.pow(Ar-Gr,2));te+=t.standoff*(Mr-mr)/he,ue+=t.standoff*(Gr-Ar)/he}var Le=ma.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Mr-te)+","+(Gr-ue),transform:xT(te,ue)}).style("stroke-width",Sa+6+"px").call(Wd.stroke,"rgba(0,0,0,0)").call(Wd.fill,"rgba(0,0,0,0)"),Ne,et;i1.init({element:Le.node(),gd:e,prepFn:function(){var We=Fc.getTranslate(V);Ne=We.x,et=We.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(We,mt){var Pt=wi(Ne,et),Ft=Pt[0]+We,tr=Pt[1]+mt;V.call(Fc.setTranslate,Ft,tr),M("x",av(a,We,"x",f,t)),M("y",av(s,mt,"y",f,t)),t.axref===t.xref&&M("ax",av(a,We,"ax",f,t)),t.ayref===t.yref&&M("ay",av(s,mt,"ay",f,t)),ma.attr("transform",xT(We,mt)),q.attr({transform:"rotate("+I+","+Ft+","+tr+")"})},doneFn:function(){_T.call("_guiRelayout",e,C());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ve;i1.init({element:V.node(),gd:e,prepFn:function(){Ve=q.attr("transform")},moveFn:function(bt,Tt){var mr="pointer";if(t.showarrow)t.axref===t.xref?M("ax",av(a,bt,"ax",f,t)):M("ax",t.ax+bt),t.ayref===t.yref?M("ay",av(s,Tt,"ay",f.w,t)):M("ay",t.ay+Tt),Fe(bt,Tt);else{if(i)return;var Ar,Mr;if(a)Ar=av(a,bt,"x",f,t);else{var Gr=t._xsize/f.w,pa=t.x+(t._xshift-t.xshift)/f.w-Gr/2;Ar=i1.align(pa+bt/f.w,Gr,0,1,t.xanchor)}if(s)Mr=av(s,Tt,"y",f,t);else{var Ca=t._ysize/f.h,ii=t.y-(t._yshift+t.yshift)/f.h-Ca/2;Mr=i1.align(ii-Tt/f.h,Ca,0,1,t.yanchor)}M("x",Ar),M("y",Mr),(!a||!s)&&(mr=i1.getCursor(a?.5:Ar,s?.5:Mr,t.xanchor,t.yanchor))}q.attr({transform:xT(bt,Tt)+Ve}),wT(V,mr)},clickFn:function(bt,Tt){t.captureevents&&e.emit("plotly_clickannotation",H(Tt))},doneFn:function(){wT(V),_T.call("_guiRelayout",e,C());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}h.annotationText?Se.call(bT.makeEditable,{delegate:V,gd:e}).call(Me).on("edit",function(pe){t.text=pe,this.call(Me),M("text",pe),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),_T.call("_guiRelayout",e,C())}):Se.call(Me)}});var fB=me((pxe,uB)=>{"use strict";var nB=Bt(),Rfe=sa(),oB=Ii().arrayEditor;uB.exports={hasClickToShow:Ffe,onClick:qfe};function Ffe(e,t){var r=lB(e,t);return r.on.length>0||r.explicitOff.length>0}function qfe(e,t){var r=lB(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var TT=Bt(),mm=Oa();cB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=mm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),TT.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",f?r.bordercolor:mm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),E=i.hoverlabel||{};if(C){var L=a("hoverlabel.bgcolor",E.bgcolor||(mm.opacity(s)?mm.rgb(s):mm.defaultLine)),I=a("hoverlabel.bordercolor",E.bordercolor||mm.contrast(L)),O=TT.extendFlat({},E.font);O.color||(O.color=I),TT.coerceFont(a,"hoverlabel.font",O)}a("captureevents",!!C)}});var vB=me((yxe,hB)=>{"use strict";var MT=Bt(),Xd=Xi(),Nfe=Wl(),Bfe=AT(),Ofe=sm();hB.exports=function(t,r){Nfe(t,r,{name:"annotations",handleItemDefaults:Ufe})};function Ufe(e,t,r){function i(q,z){return MT.coerce(e,t,Ofe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){Bfe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Xd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var M=Xd.getFromId(v,T);M._annIndices.push(t._index)}if(Xd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,E=Xd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);E!=="pixel"&&E!==T&&(E=t[C]="pixel");var L=E==="pixel"?h[m]:.4;Xd.coercePosition(t,v,i,E,C,L)}i(_+"anchor"),i(_+"shift")}if(MT.noneOrAll(e,t,["x","y"]),l&&MT.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),O=i("yclick");t._xclick=I===void 0?t.x:Xd.cleanPosition(I,v,t.xref),t._yclick=O===void 0?t.y:Xd.cleanPosition(O,v,t.yref)}}}});var mB=me((gxe,pB)=>{"use strict";var ST=Bt(),jd=Xi(),Vfe=db().draw;pB.exports=function(t){var r=t._fullLayout,i=ST.filterVisible(r.annotations);if(i.length&&t._fullData.length)return ST.syncOrAsync([Vfe,Hfe],t)};function Hfe(e){var t=e._fullLayout;ST.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"&&dB(r,i),l==="range"&&dB(r,a)})}function dB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=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(f===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 gB=me((_xe,yB)=>{"use strict";var Gfe=Da(),Zfe=f_();yB.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 f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(M){var C=v[M],E=null;s?E=Zfe(C,r.range):E=Math.pow(10,C),Gfe(E)||(E=null),a(m+M,E)}for(var T=0;T{"use strict";var kT=db(),_B=fB();xB.exports={moduleType:"component",name:"annotations",layoutAttributes:sm(),supplyLayoutDefaults:vB(),includeBasePlot:Bg()("annotations"),calcAutorange:mB(),draw:kT.draw,drawOne:kT.drawOne,drawRaw:kT.drawRaw,hasClickToShow:_B.hasClickToShow,onClick:_B.onClick,convertCoords:gB()}});var pb=me((bxe,wB)=>{"use strict";var Oi=sm(),Yfe=il().overrideAll,Wfe=Ii().templatedArray;wB.exports=Yfe(Wfe("annotation",{visible:Oi.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Oi.xanchor,xshift:Oi.xshift,yanchor:Oi.yanchor,yshift:Oi.yshift,text:Oi.text,textangle:Oi.textangle,font:Oi.font,width:Oi.width,height:Oi.height,opacity:Oi.opacity,align:Oi.align,valign:Oi.valign,bgcolor:Oi.bgcolor,bordercolor:Oi.bordercolor,borderpad:Oi.borderpad,borderwidth:Oi.borderwidth,showarrow:Oi.showarrow,arrowcolor:Oi.arrowcolor,arrowhead:Oi.arrowhead,startarrowhead:Oi.startarrowhead,arrowside:Oi.arrowside,arrowsize:Oi.arrowsize,startarrowsize:Oi.startarrowsize,arrowwidth:Oi.arrowwidth,standoff:Oi.standoff,startstandoff:Oi.startstandoff,hovertext:Oi.hovertext,hoverlabel:Oi.hoverlabel,captureevents:Oi.captureevents}),"calc","from-root")});var AB=me((wxe,TB)=>{"use strict";var CT=Bt(),Xfe=Xi(),jfe=Wl(),Jfe=AT(),Kfe=pb();TB.exports=function(t,r,i){jfe(t,r,{name:"annotations",handleItemDefaults:Qfe,fullLayout:i.fullLayout})};function Qfe(e,t,r,i){function a(f,h){return CT.coerce(e,t,Kfe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],Xfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(Jfe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),CT.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),CT.noneOrAll(e,t,["ax","ay"])))}});var CB=me((Txe,kB)=>{"use strict";var MB=Bt(),SB=Xi();kB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function ET(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 ece(e,t){var r=ET(e.projection,ET(e.view,ET(e.model,[t[0],t[1],t[2],1])));return r}EB.exports=ece});var PB=me((Mxe,DB)=>{"use strict";var tce=db().drawRaw,rce=LB(),ace=["x","y","z"];DB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=rce(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),tce(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var RB=me((Sxe,IB)=>{"use strict";var ice=sa(),zB=Bt();IB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pb()}}},layoutAttributes:pb(),handleDefaults:AB(),includeBasePlot:nce,convert:CB(),draw:PB()};function nce(e,t){var r=ice.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var kxe=eo(),FB=qo(),qB=zc().line,oce=gc().dash,Yu=yn().extendFlat,sce=Ii().templatedArray,Cxe=qg(),ym=ys(),NB=sm(),{shapeTexttemplateAttrs:lce,templatefallbackAttrs:uce}=kf(),fce=b_();BB.exports=sce("shape",{visible:Yu({},ym.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Yu({},ym.legend,{editType:"calc+arraydraw"}),legendgroup:Yu({},ym.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Yu({},ym.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:FB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Yu({},ym.legendrank,{editType:"calc+arraydraw"}),legendwidth:Yu({},ym.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:Yu({},NB.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:Yu({},NB.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:Yu({},qB.color,{editType:"arraydraw"}),width:Yu({},qB.width,{editType:"calc+arraydraw"}),dash:Yu({},oce,{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:lce({},{keys:Object.keys(fce)}),texttemplatefallback:uce({editType:"arraydraw"}),font:FB({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 UB=me((Lxe,OB)=>{"use strict";var gm=Bt(),hl=Xi(),cce=Wl(),hce=LT(),o1=Qh();OB.exports=function(t,r){cce(t,r,{name:"shapes",handleItemDefaults:dce})};function vce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function dce(e,t,r){function i(q,z){return gm.coerce(e,t,hce,q,z)}t._isShape=!0;var a=i("visible");if(!a)return;var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),gm.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),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},V,W,J,ee;let ie=q+"ref",oe=e[ie];if(Array.isArray(oe)&&oe.length>0){let fe=o1.countDefiningCoords(h,l,q);ee=hl.coerceRefArray(e,t,H,q,void 0,"paper",fe),t["_"+q+"refArray"]=!0}else ee=hl.coerceRef(e,t,H,q,void 0,"paper");if(Array.isArray(ee))ee.forEach(function(fe){hl.getRefType(fe)==="range"&&(V=hl.getFromId(H,fe),V&&V._shapeIndices.indexOf(t._index)===-1&&V._shapeIndices.push(t._index))}),v&&[0,1].forEach(function(fe){let le=ee[fe];hl.getRefType(le)==="range"?(V=hl.getFromId(H,le),W=o1.shapePositionToRange(V),J=o1.rangeToShapePosition(V),(V.type==="category"||V.type==="multicategory")&&i(q+fe+"shift")):W=J=gm.identity;let Se=q+fe,Me=e[Se];if(e[Se]=W(e[Se],!0),N==="pixel"?i(Se,C[fe]):hl.coercePosition(t,H,i,le,Se,M[fe]),t[Se]=J(t[Se]),e[Se]=Me,fe===0&&N==="pixel"){let Ae=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,le,z,.25),t[z]=J(t[z]),e[z]=Ae}});else{if(hl.getRefType(ee)==="range"?(V=hl.getFromId(H,ee),V._shapeIndices.push(t._index),J=o1.rangeToShapePosition(V),W=o1.shapePositionToRange(V),v&&(V.type==="category"||V.type==="multicategory")&&(i(q+"0shift"),i(q+"1shift"))):W=J=gm.identity,v){let le=q+"0",Te=q+"1",Se=e[le],Me=e[Te];e[le]=W(e[le],!0),e[Te]=W(e[Te],!0),N==="pixel"?(i(le,C[0]),i(Te,C[1])):(hl.coercePosition(t,H,i,ee,le,M[0]),hl.coercePosition(t,H,i,ee,Te,M[1])),t[le]=J(t[le]),t[Te]=J(t[Te]),e[le]=Se,e[Te]=Me}if(N==="pixel"){let le=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,ee,z,.25),t[z]=J(t[z]),e[z]=le}}}),v&&gm.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",vce(E,O)),i("label.padding"),gm.coerceFont(i,"label.font",r.font)}}});var GB=me((Dxe,HB)=>{"use strict";var pce=Oa(),VB=Bt();function mce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}HB.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"),VB.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",pce.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",mce(l,v)),i("newshape.label.padding"),VB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var KB=me((Pxe,JB)=>{"use strict";var DT=Bt(),lu=Xi(),Wf=yg(),PT=Qh();JB.exports=function(t){var r=t._fullLayout,i=DT.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,YB(s))})}else s.xref!=="paper"&&h!=="domain"&&(l=lu.getFromId(t,s.xref),f=XB(l,s,Wf.paramIsX),f&&(s._extremes[l._id]=lu.findExtremes(l,f,YB(s))));if(v==="array"){let m=ZB(t,s,"y");Object.entries(m).forEach(([_,T])=>{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,WB(s))})}else s.yref!=="paper"&&v!=="domain"&&(l=lu.getFromId(t,s.yref),f=XB(l,s,Wf.paramIsY),f&&(s._extremes[l._id]=lu.findExtremes(l,f,WB(s))))}};function ZB(e,t,r){let i=t[r+"ref"],a=r==="x"?Wf.paramIsX:Wf.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(Wf.segmentRE)||[];for(var f=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(Wf.paramRE);E&&E.length>C&&(s(i[f],E[C]),f++)}}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=PT.decodeDate(m)),v[T._id]=l[_].map(m)}}return v}function YB(e){return jB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WB(e){return jB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function jB(e,t,r,i,a,s){var l=e/2,f=s;if(t==="pixel"){var h=a?PT.extractPathCoords(a,s?Wf.paramIsY:Wf.paramIsX):[r,i],v=DT.aggNums(Math.max,null,h),m=DT.aggNums(Math.min,null,h),_=m<0?Math.abs(m)+l:l,T=v>0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function XB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=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&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,M=t.path.match(Wf.segmentRE),C,E,L,I,O;for(e.type==="date"&&(v=PT.decodeDate(v)),C=0;CT&&(T=O)));if(T>=_)return[_,T]}}});var eO=me((zxe,$B)=>{"use strict";var QB=nx();$B.exports={moduleType:"component",name:"shapes",layoutAttributes:LT(),supplyLayoutDefaults:UB(),supplyDrawNewShapeDefaults:GB(),includeBasePlot:Bg()("shapes"),calcAutorange:KB(),draw:QB.draw,drawOne:QB.drawOne}});var zT=me((Rxe,rO)=>{"use strict";var tO=eo(),yce=Ii().templatedArray,Ixe=qg();rO.exports=yce("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",tO.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tO.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iO=me((Fxe,aO)=>{"use strict";var gce=Bt(),IT=Xi(),_ce=Wl(),xce=zT(),bce="images";aO.exports=function(t,r){var i={name:bce,handleItemDefaults:wce};_ce(t,r,i)};function wce(e,t,r){function i(T,M){return gce.coerce(e,t,xce,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},f=["x","y"],h=0;h<2;h++){var v=f[h],m=IT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=IT.getFromId(l,m);_._imgIndices.push(t._index)}IT.coercePosition(t,l,i,m,v,0)}return t}});var lO=me((qxe,sO)=>{"use strict";var nO=ja(),Tce=xi(),_m=Xi(),oO=jn(),Ace=Oh();sO.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var uO=Da(),Mce=f_();fO.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 f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";hO.exports={moduleType:"component",name:"images",layoutAttributes:zT(),supplyLayoutDefaults:iO(),includeBasePlot:Bg()("images"),draw:lO(),convertCoords:cO()}});var mb=me((Oxe,dO)=>{"use strict";dO.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 RT=me((Uxe,mO)=>{"use strict";var Sce=qo(),kce=Sf(),Cce=yn().extendFlat,Ece=il().overrideAll,Lce=w_(),pO=Ii().templatedArray,Dce=pO("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}});mO.exports=Ece(pO("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:Dce,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:Cce(Lce({editType:"arraydraw"}),{}),font:Sce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:kce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var xO=me((Vxe,_O)=>{"use strict";var yb=Bt(),yO=Wl(),gO=RT(),Pce=mb(),zce=Pce.name,Ice=gO.buttons;_O.exports=function(t,r){var i={name:zce,handleItemDefaults:Rce};yO(t,r,i)};function Rce(e,t,r){function i(l,f){return yb.coerce(e,t,gO,l,f)}var a=yO(e,t,{name:"buttons",handleItemDefaults:Fce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),yb.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),yb.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Fce(e,t){function r(a,s){return yb.coerce(e,t,Ice,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 TO=me((Hxe,wO)=>{"use strict";wO.exports=an;var Wu=ja(),bO=Oa(),xm=xi(),gb=Bt();function an(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})}an.barWidth=2;an.barLength=20;an.barRadius=2;an.barPad=1;an.barColor="#808BA4";an.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=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=f,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=f+L,O=Math.max(q-L,0),L=q-O):(O=f,q=Math.min(O+L,s),L=q-O)),this._box={l:O,t:z,w:L,h:I};var V=h>L,W=an.barLength+2*an.barPad,J=an.barWidth+2*an.barPad,ee=f,ie=v+m;ie+J>l&&(ie=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(bO.fill,an.barColor),V?(this.hbar=oe.attr({rx:an.barRadius,ry:an.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 fe=m>I,le=an.barWidth+2*an.barPad,Te=an.barLength+2*an.barPad,Se=f+h,Me=v;Se+le>s&&(Se=s-le);var Ae=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);Ae.exit().on(".drag",null).remove(),Ae.enter().append("rect").classed("scrollbar-vertical",!0).call(bO.fill,an.barColor),fe?(this.vbar=Ae.attr({rx:an.barRadius,ry:an.barRadius,x:Se,y:Me,width:le,height:Te}),this._vbarYMin=Me+Te/2,this._vbarTranslateMax=I-Te):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var pe=this.id,ke=O-.5,Ee=fe?q+le+.5:q+.5,Xe=z-.5,lt=V?N+J+.5:N+.5,it=a._topdefs.selectAll("#"+pe).data(V||fe?[0]:[]);if(it.exit().remove(),it.enter().append("clipPath").attr("id",pe).append("rect"),V||fe?(this._clipRect=it.select("rect").attr({x:Math.floor(ke),y:Math.floor(Xe),width:Math.ceil(Ee)-Math.floor(ke),height:Math.ceil(lt)-Math.floor(Xe)}),this.container.call(xm.setClipUrl,pe,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xm.setClipUrl,null),delete this._clipRect),V||fe){var _t=Wu.behavior.drag().on("dragstart",function(){Wu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(_t);var Ye=Wu.behavior.drag().on("dragstart",function(){Wu.event.sourceEvent.preventDefault(),Wu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(Ye),fe&&this.vbar.on(".drag",null).call(Ye)}this.setTranslate(r,i)};an.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xm.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)};an.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Wu.event.dx),this.vbar&&(r-=Wu.event.dy),this.setTranslate(t,r)};an.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Wu.event.deltaY),this.vbar&&(r+=Wu.event.deltaY),this.setTranslate(t,r)};an.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=gb.constrain(Wu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=gb.constrain(Wu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};an.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=gb.constrain(t||0,0,i),r=gb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(xm.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(xm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(xm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var zO=me((Gxe,PO)=>{"use strict";var bm=ja(),s1=to(),l1=Oa(),wm=xi(),vl=Bt(),_b=ro(),qce=Ii().arrayEditor,MO=No().LINE_SPACING,ra=mb(),Nce=TO();PO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[ra.name]);function a(T){s1.autoMargin(t,LO(T))}var s=r._menulayer.selectAll("g."+ra.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(ra.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){bm.select(this).selectAll("g."+ra.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+ra.headerGroupClassName).data(i,Bce);l.enter().append("g").classed(ra.headerGroupClassName,!0);for(var f=vl.ensureSingle(s,"g",ra.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var Yce=mb();IO.exports={moduleType:"component",name:Yce.name,layoutAttributes:RT(),supplyLayoutDefaults:xO(),draw:zO()}});var f1=me((Yxe,FO)=>{"use strict";FO.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 BT=me((Wxe,BO)=>{"use strict";var qO=qo(),Wce=w_(),Xce=yn().extendDeepAll,jce=il().overrideAll,Jce=By(),NO=Ii().templatedArray,Jd=f1(),Kce=NO("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}});BO.exports=jce(NO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Kce,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:Xce(Wce({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:Jce.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:qO({})},font:qO({}),activebgcolor:{valType:"color",dflt:Jd.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jd.railBgColor},bordercolor:{valType:"color",dflt:Jd.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jd.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jd.tickLength},tickcolor:{valType:"color",dflt:Jd.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jd.minorTickLength}}),"arraydraw","from-root")});var HO=me((Xxe,VO)=>{"use strict";var Tm=Bt(),OO=Wl(),UO=BT(),Qce=f1(),$ce=Qce.name,ehe=UO.steps;VO.exports=function(t,r){OO(t,r,{name:$ce,handleItemDefaults:the})};function the(e,t,r){function i(_,T){return Tm.coerce(e,t,UO,_,T)}for(var a=OO(e,t,{name:"steps",handleItemDefaults:rhe}),s=0,l=0;l{"use strict";var Xu=ja(),xb=to(),nv=Oa(),ju=xi(),dl=Bt(),ahe=dl.strTranslate,c1=ro(),ihe=Ii().arrayEditor,xa=f1(),VT=No(),YO=VT.LINE_SPACING,OT=VT.FROM_TL,UT=VT.FROM_BR;QO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=nhe(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),xb.autoMargin(t,WO(m))}if(s.exit().each(function(){Xu.select(this).selectAll("g."+xa.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+xa.groupClassName).data(a,ohe);f.enter().append("g").classed(xa.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",ahe(l-xa.gripWidth*.5,t._dims.currentValueTotalHeight))}}function HT(e,t){var r=e._dims;return r.inputAreaStart+xa.stepInset+(r.inputAreaLength-2*xa.stepInset)*Math.min(1,Math.max(0,t))}function ZO(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 vhe(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",xa.railTouchRectClass,function(s){s.call(JO,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 dhe(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 tU=me((Jxe,eU)=>{"use strict";var phe=f1();eU.exports={moduleType:"component",name:phe.name,layoutAttributes:BT(),supplyLayoutDefaults:HO(),draw:$O()}});var wb=me((Kxe,aU)=>{"use strict";var rU=Sf();aU.exports={bgcolor:{valType:"color",dflt:rU.background,editType:"plot"},bordercolor:{valType:"color",dflt:rU.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 GT=me((Qxe,iU)=>{"use strict";iU.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 Tb=me(($xe,nU)=>{"use strict";nU.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 lU=me(Mb=>{"use strict";var mhe=jn(),yhe=ro(),oU=Tb(),ghe=No().LINE_SPACING,Ab=oU.name;function sU(e){var t=e&&e[Ab];return t&&t.visible}Mb.isVisible=sU;Mb.makeData=function(e){for(var t=mhe.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var Sb=Bt(),uU=Ii(),fU=jn(),_he=wb(),xhe=GT();cU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;Sb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=uU.newContainer(s,"rangeslider");function h(N,H){return Sb.coerce(l,f,_he,N,H)}var v,m;function _(N,H){return Sb.coerce(v,m,xhe,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")))===fU.name2id(i)}).map(function(N){return N.slice(N.indexOf("y"),N.length)}),E=Sb.simpleMap(C,fU.id2name),L=0;L{"use strict";var bhe=jn().list,whe=ag().getAutoRange,The=Tb();vU.exports=function(t){for(var r=bhe(t,"x",!0),i=0;i{"use strict";var kb=ja(),Ahe=sa(),Mhe=to(),_n=Bt(),Cb=_n.strTranslate,mU=xi(),ov=Oa(),She=tg(),khe=yT(),ZT=jn(),Che=jl(),Ehe=Wh(),Ia=Tb();yU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=Ae.max)Se=ie[Me+1];else if(Te=Ae.pmax)Se=ie[Me+1];else if(Te0?e.touches[0].clientX:0}function Lhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ia.slideBoxClassName).node(),s=e.select("rect."+Ia.grabAreaMinClassName).node(),l=e.select("rect."+Ia.grabAreaMaxClassName).node();function f(){var h=kb.event,v=h.target,m=pU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),M=i.d2p(r._rl[1]),C=Che.coverSlip();this.addEventListener("touchmove",E),this.addEventListener("touchend",L),C.addEventListener("mousemove",E),C.addEventListener("mouseup",L);function E(I){var O=pU(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 Ohe=Bt(),Uhe=wb(),Vhe=GT(),YT=lU();_U.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ohe.extendFlat({},Uhe,{yaxis:Vhe})}}},layoutAttributes:wb(),handleDefaults:hU(),calcAutorange:dU(),draw:gU(),isVisible:YT.isVisible,makeData:YT.makeData,autoMarginOpts:YT.autoMarginOpts}});var Eb=me((nbe,wU)=>{"use strict";var Hhe=qo(),bU=Sf(),Ghe=Ii().templatedArray,Zhe=Ghe("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"});wU.exports={visible:{valType:"boolean",editType:"plot"},buttons:Zhe,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:Hhe({editType:"plot"}),bgcolor:{valType:"color",dflt:bU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:bU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var WT=me((obe,TU)=>{"use strict";TU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var SU=me((sbe,MU)=>{"use strict";var Lb=Bt(),Yhe=Oa(),Whe=Ii(),Xhe=Wl(),AU=Eb(),XT=WT();MU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=Whe.newContainer(r,"rangeselector");function h(M,C){return Lb.coerce(l,f,AU,M,C)}var v=Xhe(l,f,{name:"buttons",handleItemDefaults:jhe,calendar:s}),m=h("visible",v.length>0);if(m){var _=Jhe(r,i,a);h("x",_[0]),h("y",_[1]),Lb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),Lb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",Yhe.contrast(T,XT.lightAmount,XT.darkAmount)),h("bordercolor"),h("borderwidth")}};function jhe(e,t,r,i){var a=i.calendar;function s(h,v){return Lb.coerce(e,t,AU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function Jhe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var Khe=Z3(),Qhe=Bt().titleCase;kU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=$he(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function $he(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=Khe["utc"+Qhe(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var FU=me((ube,RU)=>{"use strict";var Pb=ja(),eve=sa(),tve=to(),EU=Oa(),IU=xi(),qc=Bt(),LU=qc.strTranslate,Db=ro(),rve=jn(),KT=No(),DU=KT.LINE_SPACING,PU=KT.FROM_TL,zU=KT.FROM_BR,JT=WT(),ave=CU();RU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(ive(t),nve);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Pb.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(qc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Pb.select(this),_=ave(l,v);v._isActive=ove(l,v,_),m.call(jT,f,v),m.call(lve,f,v,t),m.on("click",function(){t._dragged||eve.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(jT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(jT,f,v)})}),fve(t,h,f,l._name,s)})};function ive(e){for(var t=rve.list(e,"x",!0),r=[],i=0;i{"use strict";qU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Eb()}}},layoutAttributes:Eb(),handleDefaults:SU(),draw:FU()}});var zb=me(QT=>{"use strict";var BU=yn().extendFlat;QT.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:BU({},r,{}),y:BU({},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};QT.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 f=r("domain.column");f!==void 0&&(f{"use strict";var cve=Bt(),hve=b0().counter,vve=zb().attributes,OU=eo().idRegex,dve=Ii(),$T={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:[hve("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OU.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:vve({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 Ib(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 pve(e,t){var r=e.grid||{},i=Ib(t,r,"x"),a=Ib(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=dve.newContainer(t,"grid");function T(H,V){return cve.coerce(r,_,$T,H,V)}var M=T("rows",v),C=T("columns",m);if(!(M*C>1)){delete t.grid;return}if(!s&&!l&&!f){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:UU("x",T,O,z,C),y:UU("y",T,q,N,M,I)}}function UU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";ZU.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 XU=me((dbe,WU)=>{"use strict";var YU=Da(),yve=sa(),gve=Bt(),_ve=Ii(),xve=eA();WU.exports=function(e,t,r,i){var a="error_"+i.axis,s=_ve.newContainer(t,a),l=e[a]||{};function f(C,E){return gve.coerce(l,s,xve,C,E)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var M=t["error_"+i.inherit];(M||{}).visible&&f(T,!(l.color||YU(l.thickness)||YU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",yve.traceIs(t,"gl3d")?0:4))}}});var tA=me((pbe,JU)=>{"use strict";JU.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=jU(r,t.value),f=jU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function jU(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 $U=me((mbe,QU)=>{"use strict";var rA=Da(),bve=sa(),aA=Xi(),wve=Bt(),Tve=tA();QU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var eV=ja(),sv=Da(),Ave=xi(),Mve=rs();tV.exports=function(t,r,i,a){var s,l=i.xaxis,f=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=Mve.hasMarkers(_)&&_.marker.maxdisplayed>0;!M.visible&&!T.visible&&(m=[]);var L=eV.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),Ave.setClipUrl(L,i.layerClipId,t),L.each(function(O){var q=eV.select(this),z=Sve(O,l,f);if(!(E&&!O.vis)){var N,H=q.select("path.yerror");if(M.visible&&sv(z.x)&&sv(z.yh)&&sv(z.ys)){var V=M.width;N="M"+(z.x-V)+","+z.yh+"h"+2*V+"m-"+V+",0V"+z.ys,z.noYS||(N+="m-"+V+",0h"+2*V),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 Sve(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 nV=me((gbe,iV)=>{"use strict";var kve=ja(),aV=Oa();iV.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=kve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(aV.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(aV.stroke,s.color)})}});var lV=me((_be,sV)=>{"use strict";var h1=Bt(),oV=il().overrideAll,v1=eA(),Kd={error_x:h1.extendFlat({},v1),error_y:h1.extendFlat({},v1)};delete Kd.error_x.copy_zstyle;delete Kd.error_y.copy_zstyle;delete Kd.error_y.copy_ystyle;var d1={error_x:h1.extendFlat({},v1),error_y:h1.extendFlat({},v1),error_z:h1.extendFlat({},v1)};delete d1.error_x.copy_ystyle;delete d1.error_y.copy_ystyle;delete d1.error_z.copy_ystyle;delete d1.error_z.copy_zstyle;sV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Kd,bar:Kd,histogram:Kd,scatter3d:oV(d1,"calc","nested"),scattergl:oV(Kd,"calc","nested")}},supplyDefaults:XU(),calc:$U(),makeComputeError:tA(),plot:rV(),style:nV(),hoverInfo:Cve};function Cve(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 fV=me((xbe,uV)=>{"use strict";uV.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 yV=me((bbe,mV)=>{"use strict";var lv=ja(),iA=Mf(),Fb=to(),cV=sa(),Nc=Xi(),Rb=jl(),uu=Bt(),Ku=uu.strTranslate,pV=yn().extendFlat,nA=Wh(),Ju=xi(),oA=Oa(),Eve=tg(),Lve=ro(),Dve=Ef().flipScale,Pve=vT(),zve=dT(),Ive=Nu(),sA=No(),hV=sA.LINE_SPACING,vV=sA.FROM_TL,dV=sA.FROM_BR,Qi=fV().cn;function Rve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Qi.colorbar).data(Fve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Qi.colorbar,!0),r.each(function(i){var a=lv.select(this);uu.ensureSingle(a,"rect",Qi.cbbg),uu.ensureSingle(a,"g",Qi.cbfills),uu.ensureSingle(a,"g",Qi.cblines),uu.ensureSingle(a,"g",Qi.cbaxis,function(l){l.classed(Qi.crisp,!0)}),uu.ensureSingle(a,"g",Qi.cbtitleunshift,function(l){l.append("g").classed(Qi.cbtitle,!0)}),uu.ensureSingle(a,"rect",Qi.cboutline);var s=qve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&Nve(a,i,e)}),r.exit().each(function(i){Fb.autoMargin(e,i._id)}).remove(),r.order()}function Fve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return pV(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 f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?Dve(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var ze=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));It*=ze*uu.roundUp(de/ze,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(st.tick0=0)}st.dtick=It}st.domain=i?[Ye+C/z.h,Ye+pe-C/z.h]:[Ye+M/z.w,Ye+pe-M/z.w],st.setScale(),e.attr("transform",Ku(Math.round(z.l),Math.round(z.t)));var _e=e.select("."+Qi.cbtitleunshift).attr("transform",Ku(-Math.round(z.l),-Math.round(z.t))),Ue=st.ticklabelposition,at=st.title.font.size,Je=e.select("."+Qi.cbaxis),Ct,wt=0,xt=0;function qt(Yt,Be){var ut={propContainer:st,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Qi.cbtitle)},sr=Yt.charAt(0)==="h"?Yt.slice(1):"h"+Yt;e.selectAll("."+sr+",."+sr+"-math-group").remove(),Eve.draw(r,Yt,pV(ut,Be||{}))}function Ut(){if(i&&dt||!i&&!dt){var Yt,Be;W==="top"&&(Yt=M+z.l+ke*E,Be=C+z.t+Ee*(1-Ye-pe)+3+at*.75),W==="bottom"&&(Yt=M+z.l+ke*E,Be=C+z.t+Ee*(1-Ye)-3-at*.25),W==="right"&&(Be=C+z.t+Ee*L+3+at*.75,Yt=M+z.l+ke*Ye),qt(st._id+"title",{attributes:{x:Yt,y:Be,"text-anchor":i?"start":"middle"}})}}function Dt(){if(i&&!dt||!i&&dt){var Yt=st.position||0,Be=st._offset+st._length/2,ut,sr;if(W==="right")sr=Be,ut=z.l+ke*Yt+10+at*(st.showticklabels?1:.5);else if(ut=Be,W==="bottom"&&(sr=z.t+Ee*Yt+10+(Ue.indexOf("inside")===-1?st.tickfont.size:0)+(st.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Pr=V.text.split("
").length;sr=z.t+Ee*Yt+10-Se-hV*at*Pr}qt((i?"h":"v")+st._id+"title",{avoid:{selection:lv.select(r).selectAll("g."+st._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 Mt(){if(!i&&!dt||i&&dt){var Yt=e.select("."+Qi.cbtitle),Be=Yt.select("text"),ut=[-h/2,h/2],sr=Yt.select(".h"+st._id+"title-math-group").node(),Pr=15.6;Be.node()&&(Pr=parseInt(Be.node().style.fontSize,10)*hV);var Et;if(sr?(Et=Ju.bBox(sr),xt=Et.width,wt=Et.height,wt>Pr&&(ut[1]-=(wt-Pr)/2)):Be.node()&&!Be.classed(Qi.jsPlaceholder)&&(Et=Ju.bBox(Be.node()),xt=Et.width,wt=Et.height),i){if(wt){if(wt+=5,W==="top")st.domain[1]-=wt/z.h,ut[1]*=-1;else{st.domain[0]+=wt/z.h;var ht=Lve.lineCount(Be);ut[1]+=(1-ht)*Pr}Yt.attr("transform",Ku(ut[0],ut[1])),st.setScale()}}else xt&&(W==="right"&&(st.domain[0]+=(xt+at/2)/z.w),Yt.attr("transform",Ku(ut[0],ut[1])),st.setScale())}e.selectAll("."+Qi.cbfills+",."+Qi.cblines).attr("transform",i?Ku(0,Math.round(z.h*(1-st.domain[1]))):Ku(Math.round(z.w*st.domain[0]),0)),Je.attr("transform",i?Ku(0,Math.round(-z.t)):Ku(Math.round(-z.l),0));var pt=e.select("."+Qi.cbfills).selectAll("rect."+Qi.cbfill).attr("style","").data(le);pt.enter().append("rect").classed(Qi.cbfill,!0).attr("style",""),pt.exit().remove();var Ot=J.map(st.c2p).map(Math.round).sort(function(yr,ur){return yr-ur});pt.each(function(yr,ur){var Lt=[ur===0?J[0]:(le[ur]+le[ur-1])/2,ur===le.length-1?J[1]:(le[ur]+le[ur+1])/2].map(st.c2p).map(Math.round);i&&(Lt[1]=uu.constrain(Lt[1]+(Lt[1]>Lt[0])?1:-1,Ot[0],Ot[1]));var Fe=lv.select(this).attr(i?"x":"y",Xe).attr(i?"y":"x",lv.min(Lt)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(lv.max(Lt)-lv.min(Lt),2));if(t._fillgradient)Ju.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ve=ie(yr).replace("e-","");Fe.attr("fill",iA(Ve).toHexString())}});var er=e.select("."+Qi.cblines).selectAll("path."+Qi.cbline).data(H.color&&H.width?Te:[]);er.enter().append("path").classed(Qi.cbline,!0),er.exit().remove(),er.each(function(yr){var ur=Xe,Lt=Math.round(st.c2p(yr))+H.width/2%1;lv.select(this).attr("d","M"+(i?ur+","+Lt:Lt+","+ur)+(i?"h":"v")+Se).call(Ju.lineGroupStyle,H.width,ee(yr),H.dash)}),Je.selectAll("g."+st._id+"tick,path").remove();var Ht=Xe+Se+(h||0)/2-(t.ticks==="outside"?1:0),Kt=Nc.calcTicks(st),pr=Nc.getTickSigns(st)[2];return Nc.drawTicks(r,st,{vals:st.ticks==="inside"?Nc.clipEnds(st,Kt):Kt,layer:Je,path:Nc.makeTickPath(st,Ht,pr),transFn:Nc.makeTransTickFn(st)}),Nc.drawLabels(r,st,{vals:Kt,layer:Je,transFn:Nc.makeTransTickLabelFn(st),labelFns:Nc.makeLabelFns(st,Ht)})}function Zt(){var Yt,Be=Se+h/2;Ue.indexOf("inside")===-1&&(Yt=Ju.bBox(Je.node()),Be+=i?Yt.width:Yt.height),Ct=_e.select("text");var ut=0,sr=i&&W==="top",Pr=!i&&W==="right",Et=0;if(Ct.node()&&!Ct.classed(Qi.jsPlaceholder)){var ht,pt=_e.select(".h"+st._id+"title-math-group").node();pt&&(i&&dt||!i&&!dt)?(Yt=Ju.bBox(pt),ut=Yt.width,ht=Yt.height):(Yt=Ju.bBox(_e.node()),ut=Yt.right-z.l-(i?Xe:kt),ht=Yt.bottom-z.t-(i?kt:Xe),!i&&W==="top"&&(Be+=Yt.height,Et=Yt.height)),Pr&&(Ct.attr("transform",Ku(ut/2+at/2,0)),ut*=2),Be=Math.max(Be,i?ut:ht)}var Ot=(i?M:C)*2+Be+v+h/2,er=0;!i&&V.text&&T==="bottom"&&L<=0&&(er=Ot/2,Ot+=er,Et+=er),q._hColorbarMoveTitle=er,q._hColorbarMoveCBTitle=Et;var Ht=v+h,Kt=(i?Xe:kt)-Ht/2-(i?M:0),pr=(i?kt:Xe)-(i?Ae:C+Et-er);e.select("."+Qi.cbbg).attr("x",Kt).attr("y",pr).attr(i?"width":"height",Math.max(Ot-er,2)).attr(i?"height":"width",Math.max(Ae+Ht,2)).call(oA.fill,m).call(oA.stroke,t.bordercolor).style("stroke-width",v);var yr=Pr?Math.max(ut-10,0):0;e.selectAll("."+Qi.cboutline).attr("x",(i?Xe:kt+M)+yr).attr("y",(i?kt+C-Ae:Xe)+(sr?wt:0)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(Ae-(i?2*C+wt:2*M+yr),2)).call(oA.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var ur=i?lt*Ot:0,Lt=i?0:(1-it)*Ot-Et;if(ur=O?z.l-ur:-ur,Lt=I?z.t-Lt:-Lt,e.attr("transform",Ku(ur,Lt)),!i&&(v||iA(m).getAlpha()&&!iA.equals(q.paper_bgcolor,m))){var Fe=Je.selectAll("text"),Ve=Fe[0].length,bt=e.select("."+Qi.cbbg).node(),Tt=Ju.bBox(bt),mr=Ju.getTranslate(e),Ar=2;Fe.each(function(vn,nn){var Ki=0,ir=Ve-1;if(nn===Ki||nn===ir){var oi=Ju.bBox(this),Sa=Ju.getTranslate(this),la;if(nn===ir){var Ci=oi.right+Sa.x,ma=Tt.right+mr.x+kt-v-Ar+E;la=ma-Ci,la>0&&(la=0)}else if(nn===Ki){var se=oi.left+Sa.x,te=Tt.left+mr.x+kt+v+Ar;la=te-se,la<0&&(la=0)}la&&(Ve<3?this.setAttribute("transform","translate("+la+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Mr={},Gr=vV[_],pa=dV[_],Ca=vV[T],ii=dV[T],wi=Ot-Se;i?(s==="pixels"?(Mr.y=L,Mr.t=Ae*Ca,Mr.b=Ae*ii):(Mr.t=Mr.b=0,Mr.yt=L+a*Ca,Mr.yb=L-a*ii),f==="pixels"?(Mr.x=E,Mr.l=Ot*Gr,Mr.r=Ot*pa):(Mr.l=wi*Gr,Mr.r=wi*pa,Mr.xl=E-l*Gr,Mr.xr=E+l*pa)):(s==="pixels"?(Mr.x=E,Mr.l=Ae*Gr,Mr.r=Ae*pa):(Mr.l=Mr.r=0,Mr.xl=E+a*Gr,Mr.xr=E-a*pa),f==="pixels"?(Mr.y=1-L,Mr.t=Ot*Ca,Mr.b=Ot*ii):(Mr.t=wi*Ca,Mr.b=wi*ii,Mr.yt=L-l*Ca,Mr.yb=L+l*ii));var vi=t.y<.5?"b":"t",Fi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Gi={r:q.width-Kt-ur,l:Kt+Mr.r,b:q.height-pr-Lt,t:pr+Mr.b};O&&I?Fb.autoMargin(r,t._id,Mr):O?r._fullLayout._reservedMargin[t._id][vi]=Gi[vi]:I||i?r._fullLayout._reservedMargin[t._id][Fi]=Gi[Fi]:r._fullLayout._reservedMargin[t._id][vi]=Gi[vi]}return uu.syncOrAsync([Fb.previousPromises,Ut,Mt,Dt,Fb.previousPromises,Zt],r)}function Nve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;Rb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),nA(e)},moveFn:function(v,m){e.attr("transform",l+Ku(v,m)),f=Rb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=Rb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=Rb.getCursor(f,h,t.xanchor,t.yanchor);nA(e,_)},doneFn:function(){if(nA(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?cV.call("_guiRestyle",r,v,t._traceIndex):cV.call("_guiRelayout",r,v)}}})}function Bve(e,t,r){var i=t._levels,a=[],s=[],l,f,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(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)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,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";gV.exports={moduleType:"component",name:"colorbar",attributes:$_(),supplyDefaults:o5(),draw:yV().draw,hasColorbar:jw()}});var bV=me((Tbe,xV)=>{"use strict";xV.exports={moduleType:"component",name:"legend",layoutAttributes:a4(),supplyLayoutDefaults:n4(),draw:_4(),style:p4()}});var TV=me((Abe,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=me((Mbe,AV)=>{"use strict";AV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var uA=me((Sbe,EV)=>{"use strict";var Uve=sa(),CV=Bt(),lA=CV.extendFlat,SV=CV.extendDeep;function kV(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 Vve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}EV.exports=function(t,r){var i,a=t.data,s=t.layout,l=SV([],a),f=SV({},s,kV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var Hve=B_().EventEmitter,Gve=sa(),Zve=Bt(),LV=Ud(),Yve=uA(),Wve=Gx(),Xve=Zx();function jve(e,t){var r=new Hve,i=Yve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=LV.getDelay(a._fullLayout);setTimeout(function(){var h=Wve(a),v=document.createElement("canvas");v.id=Zve.randstr(),r=Xve({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)}},f)}var l=LV.getRedrawFunc(a);return Gve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}DV.exports=jve});var RV=me((Cbe,IV)=>{"use strict";var zV=Ud(),Jve={getDelay:zV.getDelay,getRedrawFunc:zV.getRedrawFunc,clone:uA(),toSVG:Gx(),svgToImg:Zx(),toImage:PV(),downloadImage:F6()};IV.exports=Jve});var qV=me(Bc=>{"use strict";Bc.version=t_().version;C7();yk();var Kve=sa(),p1=Bc.register=Kve.register,cA=NF(),FV=Object.keys(cA);for(qb=0;qb{"use strict";NV.exports=qV()});var hA=me((Pbe,GV)=>{"use strict";var{hovertemplateAttrs:Qve,texttemplateAttrs:$ve,templatefallbackAttrs:OV}=kf(),ede=Ax(),Xf=zc(),tde=ys(),UV=Sc(),rde=gc().dash,Qd=yn().extendFlat,ade=il().overrideAll,fu=Xf.marker,VV=Xf.line,HV=fu.line,Dbe=["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(" ");GV.exports=ade({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:Qd({},Xf.mode,{dflt:"markers"}),text:Qd({},Xf.text,{}),texttemplate:$ve({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:OV({editType:"plot"}),hovertext:Qd({},Xf.hovertext,{}),textfont:Xf.textfont,textposition:Xf.textposition,line:{color:VV.color,width:VV.width,dash:rde},connectgaps:Xf.connectgaps,marker:Qd({symbol:fu.symbol,opacity:fu.opacity,angle:fu.angle,angleref:Qd({},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:Qd({width:HV.width,dash:HV.dash},UV("marker.line")),gradient:fu.gradient},UV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:ede(),selected:Xf.selected,unselected:Xf.unselected,hoverinfo:Qd({},tde.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Qve(),hovertemplatefallback:OV()},"calc","nested")});var Oc=me((zbe,KV)=>{"use strict";var ide=E_(),ZV="1.13.4",jV='\xA9 OpenStreetMap contributors',YV=['\xA9 Carto',jV].join(" "),WV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),nde=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),JV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jV,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:YV,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:YV,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:WV,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:WV,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:nde,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"}},XV=ide(JV);KV.exports={requiredVersion:ZV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:JV,styleValuesNonMapbox:XV,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@"+ZV+"."].join(` +`+b9(s.dayMonthYear,e,i,a);return b9(t,e,i,a)};var w9=3*Ns;En.incrementMonth=function(e,t,r){r=xc(r)&&r;var i=Ih(e,Ns);if(e=Math.round(e-i),r)try{var a=Math.round(e/Ns)+Uy,s=_c.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Uy)*Ns+i}catch(h){vw.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+w9);return f.setUTCMonth(f.getUTCMonth()+t)+i-w9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=xc(t)&&_c.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";S9.exports=function(t){return t}});var pw=me(bc=>{"use strict";var LK=Da(),DK=Lh(),PK=E_(),zK=Zi().BADNUM,dw=1e-9;bc.findBin=function(e,t,r){if(LK(t.start))return r?Math.ceil((e-t.start)/t.size-dw)-1:Math.floor((e-t.start)/t.size+dw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?IK:RK:h=r?qK:FK,e+=l*dw*(r?-1:1)*(l>=0?1:-1);i90&&DK.log("Long binary search..."),i-1};function IK(e,t){return et}function qK(e,t){return e>=t}bc.sorterAsc=function(e,t){return e-t};bc.sorterDes=function(e,t){return t-e};bc.distinctVals=function(e){var t=e.slice();t.sort(bc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===zK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],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}};bc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=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()};bc.findIndexOfMin=function(e,t){t=t||PK;for(var r=1/0,i,a=0;a{"use strict";k9.exports=function(t){return Object.keys(t).sort()}});var C9=me(Ln=>{"use strict";var Vy=Da(),NK=al().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Vy(t)||(t=!1),NK(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 z9=me((bge,P9)=>{"use strict";var E9=_0(),mw=E9.mod,BK=E9.modHalf,Hy=Math.PI,Rh=2*Hy;function OK(e){return e/180*Hy}function UK(e){return e/Hy*180}function yw(e){return Math.abs(e[1]-e[0])>Rh-1e-14}function L9(e,t){return BK(t-e,Rh)}function VK(e,t){return Math.abs(L9(e,t))}function D9(e,t){if(yw(t))return!0;var r,i;t[0]i&&(i+=Rh);var a=mw(e,Rh),s=a+Rh;return a>=r&&a<=i||s>=r&&s<=i}function HK(e,t,r,i){if(!D9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function gw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=yw([r,i]),h,v,m,_,T;f?(h=0,v=Hy,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 q9=me(dd=>{"use strict";var _w=_0().mod;dd.segmentsIntersect=F9;function F9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,M=f-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,f,h){if(F9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-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,f-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,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var P_,xw,R9;dd.getTextLocation=function(t,r,i,a){if((t!==xw||a!==R9)&&(P_={},xw=t,R9=a),P_[i])return P_[i];var s=t.getPointAtLength(_w(i-a/2,r)),l=t.getPointAtLength(_w(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(_w(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:f};return P_[i]=_,_};dd.clearLocationCache=function(){xw=null};dd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=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.yf?L.y-f: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,f=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_=me(Gy=>{"use strict";var wc={};Gy.throttle=function(t,r,i){var a=wc[t],s=Date.now();if(!a){for(var l in wc)wc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};Gy.done=function(e){var t=wc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Gy.clear=function(e){if(e)N9(wc[e]),delete wc[e];else for(var t in wc)Gy.clear(t)};function N9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var O9=me((Mge,B9)=>{"use strict";B9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var U9=me((Sge,I_)=>{"use strict";I_.exports=bw;I_.exports.isMobile=bw;I_.exports.default=bw;var WK=/(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,XK=/CrOS/,jK=/android|ipad|playbook|silk/i;function bw(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=WK.test(t)&&!XK.test(t)||!!e.tablet&&jK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var H9=me((kge,V9)=>{"use strict";var JK=Da(),KK=U9();V9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=QK(),typeof r!="string")return!0;var i=KK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.slice(0,8)==="Version/"){var v=h.slice(8).split(".")[0];if(JK(v)&&(v=+v),v>=13)return!0}}}return i};function QK(){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 Z9=me((Cge,G9)=>{"use strict";var $K=ja();G9.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]=$K.select(this)}),a}});var W9=me((Ege,Y9)=>{"use strict";var eQ=sa();Y9.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 f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=eQ.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var j9=me((Lge,X9)=>{"use strict";X9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";J9.exports=function(t){for(var r=aQ(t)?rQ:tQ,i=[],a=0;a{"use strict";Q9.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,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var tk=me((zge,ek)=>{"use strict";var iQ=Da(),nQ=Zi().BADNUM,oQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;ek.exports=function(t){return typeof t=="string"&&(t=t.replace(oQ,"")),iQ(t)?Number(t):nQ}});var Bt=me((Ige,dk)=>{"use strict";var Zy=ja(),sQ=y0().utcFormat,lQ=Y3().format,sk=Da(),lk=Zi(),uk=lk.FP_SAFE,uQ=-uk,rk=lk.BADNUM,rt=dk.exports={};rt.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 ak={};rt.warnBadFormat=function(e){var t=String(e);ak[t]||(ak[t]=1,rt.warn('encountered bad format: "'+t+'"'))};rt.noFormat=function(e){return String(e)};rt.numberFormat=function(e){var t;try{t=lQ(rt.adjustFormat(e))}catch(r){return rt.warnBadFormat(e),rt.noFormat}return t};rt.nestedProperty=Ey();rt.keyedContainer=X7();rt.relativeAttr=J7();rt.isPlainObject=yc();rt.toLogRange=c_();rt.relinkPrivateKeys=e8();var Fh=al();rt.isArrayBuffer=Fh.isArrayBuffer;rt.isTypedArray=Fh.isTypedArray;rt.isArrayOrTypedArray=Fh.isArrayOrTypedArray;rt.isArray1D=Fh.isArray1D;rt.ensureArray=Fh.ensureArray;rt.concat=Fh.concat;rt.maxRowLength=Fh.maxRowLength;rt.minRowLength=Fh.minRowLength;var fk=_0();rt.mod=fk.mod;rt.modHalf=fk.modHalf;var qh=_8();rt.valObjectMeta=qh.valObjectMeta;rt.coerce=qh.coerce;rt.coerce2=qh.coerce2;rt.coerceFont=qh.coerceFont;rt.coercePattern=qh.coercePattern;rt.coerceHoverinfo=qh.coerceHoverinfo;rt.coerceSelectionMarkerOpacity=qh.coerceSelectionMarkerOpacity;rt.validate=qh.validate;var nl=M9();rt.dateTime2ms=nl.dateTime2ms;rt.isDateTime=nl.isDateTime;rt.ms2DateTime=nl.ms2DateTime;rt.ms2DateTimeLocal=nl.ms2DateTimeLocal;rt.cleanDate=nl.cleanDate;rt.isJSDate=nl.isJSDate;rt.formatDate=nl.formatDate;rt.incrementMonth=nl.incrementMonth;rt.dateTick0=nl.dateTick0;rt.dfltRange=nl.dfltRange;rt.findExactDates=nl.findExactDates;rt.MIN_MS=nl.MIN_MS;rt.MAX_MS=nl.MAX_MS;var pd=pw();rt.findBin=pd.findBin;rt.sorterAsc=pd.sorterAsc;rt.sorterDes=pd.sorterDes;rt.distinctVals=pd.distinctVals;rt.roundUp=pd.roundUp;rt.sort=pd.sort;rt.findIndexOfMin=pd.findIndexOfMin;rt.sortObjectKeys=L_();var Tc=C9();rt.aggNums=Tc.aggNums;rt.len=Tc.len;rt.mean=Tc.mean;rt.geometricMean=Tc.geometricMean;rt.median=Tc.median;rt.midRange=Tc.midRange;rt.variance=Tc.variance;rt.stdev=Tc.stdev;rt.interp=Tc.interp;var Ru=__();rt.init2dArray=Ru.init2dArray;rt.transposeRagged=Ru.transposeRagged;rt.dot=Ru.dot;rt.translationMatrix=Ru.translationMatrix;rt.rotationMatrix=Ru.rotationMatrix;rt.rotationXYMatrix=Ru.rotationXYMatrix;rt.apply3DTransform=Ru.apply3DTransform;rt.apply2DTransform=Ru.apply2DTransform;rt.apply2DTransform2=Ru.apply2DTransform2;rt.convertCssMatrix=Ru.convertCssMatrix;rt.inverseTransformMatrix=Ru.inverseTransformMatrix;var Cf=z9();rt.deg2rad=Cf.deg2rad;rt.rad2deg=Cf.rad2deg;rt.angleDelta=Cf.angleDelta;rt.angleDist=Cf.angleDist;rt.isFullCircle=Cf.isFullCircle;rt.isAngleInsideSector=Cf.isAngleInsideSector;rt.isPtInsideSector=Cf.isPtInsideSector;rt.pathArc=Cf.pathArc;rt.pathSector=Cf.pathSector;rt.pathAnnulus=Cf.pathAnnulus;var D0=I9();rt.isLeftAnchor=D0.isLeftAnchor;rt.isCenterAnchor=D0.isCenterAnchor;rt.isRightAnchor=D0.isRightAnchor;rt.isTopAnchor=D0.isTopAnchor;rt.isMiddleAnchor=D0.isMiddleAnchor;rt.isBottomAnchor=D0.isBottomAnchor;var P0=q9();rt.segmentsIntersect=P0.segmentsIntersect;rt.segmentDistance=P0.segmentDistance;rt.getTextLocation=P0.getTextLocation;rt.clearLocationCache=P0.clearLocationCache;rt.getVisibleSegment=P0.getVisibleSegment;rt.findPointOnPath=P0.findPointOnPath;var q_=yn();rt.extendFlat=q_.extendFlat;rt.extendDeep=q_.extendDeep;rt.extendDeepAll=q_.extendDeepAll;rt.extendDeepNoArrays=q_.extendDeepNoArrays;var ww=Lh();rt.log=ww.log;rt.warn=ww.warn;rt.error=ww.error;var fQ=b0();rt.counterRegex=fQ.counter;var Tw=z_();rt.throttle=Tw.throttle;rt.throttleDone=Tw.done;rt.clearThrottle=Tw.clear;var Fu=Ny();rt.getGraphDiv=Fu.getGraphDiv;rt.isPlotDiv=Fu.isPlotDiv;rt.removeElement=Fu.removeElement;rt.addStyleRule=Fu.addStyleRule;rt.addRelatedStyleRule=Fu.addRelatedStyleRule;rt.deleteRelatedStyleRule=Fu.deleteRelatedStyleRule;rt.setStyleOnHover=Fu.setStyleOnHover;rt.getFullTransformMatrix=Fu.getFullTransformMatrix;rt.getElementTransformMatrix=Fu.getElementTransformMatrix;rt.getElementAndAncestors=Fu.getElementAndAncestors;rt.equalDomRects=Fu.equalDomRects;rt.clearResponsive=O9();rt.preserveDrawingBuffer=H9();rt.makeTraceGroups=Z9();rt._=W9();rt.notifier=aw();rt.filterUnique=j9();rt.filterVisible=K9();rt.pushUnique=ow();rt.increment=$9();rt.cleanNumber=tk();rt.ensureNumber=function(t){return sk(t)?(t=Number(t),t>uk||t=t?!1:sk(e)&&e>=0&&e%1===0};rt.noop=g_();rt.identity=E_();rt.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))};rt.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};rt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(rt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};rt.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};rt.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),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};rt.syncOrAsync=function(e,t,r){var i,a;function s(){return rt.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)};rt.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};rt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};rt.fillArray=function(e,t,r,i){if(i=i||rt.identity,rt.isArrayOrTypedArray(e))for(var a=0;avQ.test(window.navigator.userAgent);var dQ=/Firefox\/(\d+)\.\d+/;rt.getFirefoxVersion=function(){var e=dQ.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};rt.isD3Selection=function(e){return e instanceof Zy.selection};rt.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};rt.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};rt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};rt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var vk=/^\w*$/;rt.templateString=function(e,t){var r={};return e.replace(rt.TEMPLATE_STRING_REGEX,function(i,a){var s;return vk.test(a)?s=t[a]:(r[a]=r[a]||rt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var yQ={max:10,count:0,name:"hovertemplate"};rt.hovertemplateString=e=>Aw(t_(sd({},e),{opts:yQ}));var gQ={max:10,count:0,name:"texttemplate"};rt.texttemplateString=e=>Aw(t_(sd({},e),{opts:gQ}));var _Q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xQ(e){var t=e.match(_Q);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var bQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};rt.texttemplateStringForShapes=e=>Aw(t_(sd({},e),{opts:bQ}));var ik=/^[:|\|]/;function Aw({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:s}){return s.replace(rt.TEMPLATE_STRING_REGEX,(l,f,h)=>{let v=["xother","yother"].includes(f),m=["_xother","_yother"].includes(f),_=["_xother_","_yother_"].includes(f),T=["xother_","yother_"].includes(f),M=v||m||T||_;(m||_)&&(f=f.substring(1)),(T||_)&&(f=f.substring(0,f.length-1));let C=null,E=null;if(a.parseMultDiv){var L=xQ(f);f=L.key,C=L.op,E=L.number}let I;if(M){if(i[f]===void 0)return"";I=i[f]}else for(let N of e)if(N){if(N.hasOwnProperty(f)){I=N[f];break}if(vk.test(f)||(I=rt.nestedProperty(N,f).get(!0)),I!==void 0)break}if(I===void 0){let{count:N,max:H,name:V}=a,W=r===!1?l:r;return N=F_&&l<=nk,v=f>=F_&&f<=nk;if(h&&(i=10*i+l-F_),v&&(a=10*a+f-F_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var L0=2e9;rt.seedPseudoRandom=function(){L0=2e9};rt.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?rt.pseudoRandom():L0/4294967296};rt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=rt.extractOption(e,t,"htx","hovertext");if(rt.isValidTextValue(a))return i(a);var s=rt.extractOption(e,t,"tx","text");if(rt.isValidTextValue(s))return i(s)};rt.isValidTextValue=function(e){return e||e===0};rt.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,rt.strTranslate(a-v*(r+l),s-v*(i+f))+rt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};rt.setTransormAndDisplay=function(e,t){e.attr("transform",rt.getTextTransform(t)),e.style("display",t.scale?null:"none")};rt.ensureUniformFontSize=function(e,t){var r=rt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};rt.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)};rt.bigFont=function(e){return Math.round(1.2*e)};var ok=rt.getFirefoxVersion(),wQ=ok!==null&&ok<86;rt.getPositionFromD3Event=function(){return wQ?[Zy.event.layerX,Zy.event.layerY]:[Zy.event.offsetX,Zy.event.offsetY]}});var yk=me(()=>{"use strict";var TQ=Bt(),pk={"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(Mw in pk)mk=Mw.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),TQ.addStyleRule(mk,pk[Mw]);var mk,Mw});var Sw=me((Nge,gk)=>{gk.exports=!0});var Cw=me((Bge,_k)=>{"use strict";var AQ=Sw(),kw;typeof window.matchMedia=="function"?kw=!window.matchMedia("(hover: none)").matches:kw=AQ;_k.exports=kw});var O_=me((Oge,Ew)=>{"use strict";var z0=typeof Reflect=="object"?Reflect:null,xk=z0&&typeof z0.apply=="function"?z0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},N_;z0&&typeof z0.ownKeys=="function"?N_=z0.ownKeys:Object.getOwnPropertySymbols?N_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:N_=function(t){return Object.getOwnPropertyNames(t)};function MQ(e){console&&console.warn&&console.warn(e)}var wk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}Ew.exports=Yi;Ew.exports.once=EQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var bk=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 bk},set:function(e){if(typeof e!="number"||e<0||wk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bk=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||wk(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 Tk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return Tk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")xk(h,this,r);else for(var v=h.length,m=Ck(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,MQ(f)}return e}Yi.prototype.addListener=function(t,r){return Ak(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return Ak(this,t,r,!0)};function SQ(){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 Mk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=SQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return B_(r),this.on(t,Mk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return B_(r),this.prependListener(t,Mk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,f;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){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():kQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||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 Sk(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?CQ(a):Ck(a,a.length)}Yi.prototype.listeners=function(t){return Sk(this,t,!0)};Yi.prototype.rawListeners=function(t){return Sk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kk.call(e,t)};Yi.prototype.listenerCount=kk;function kk(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 Ck(e,t){for(var r=new Array(t),i=0;i{"use strict";var Lw=O_().EventEmitter,DQ={init:function(e){if(e._ev instanceof Lw)return e;var t=new Lw,r=new Lw;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 f;for(f=0;f{"use strict";var Dk=Bt(),PQ=cd().dfltConfig;function zQ(e,t){for(var r=[],i,a=0;aPQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ac.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ac.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ac.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";Ik.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var F0=me(Xn=>{"use strict";var Zl=sa(),Wy=Bt(),V_=ys(),Pw=M0(),IQ=Dw(),RQ=By(),FQ=cd().configAttributes,Rk=il(),qu=Wy.extendDeepAll,I0=Wy.isPlainObject,qQ=Wy.isArrayOrTypedArray,H_=Wy.nestedProperty,NQ=Wy.valObjectMeta,zw="_isSubplotObj",G_="_isLinkedToArray",BQ="_arrayAttrRegexps",qk="_deprecated",Iw=[zw,G_,BQ,qk];Xn.IS_SUBPLOT_OBJ=zw;Xn.IS_LINKED_TO_ARRAY=G_;Xn.DEPRECATED=qk;Xn.UNDERSCORE_ATTRS=Iw;Xn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=UQ(t)}),{defs:{valObjects:NQ,metaKeys:Iw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Rk.traces,layout:Rk.layout},impliedEdits:{}},traces:e,layout:VQ(),frames:HQ(),animation:R0(RQ),config:R0(FQ)}};Xn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Iw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Xn.isValObject(l)&&I0(l)&&s!=="impliedEdits"&&Xn.crawl(l,t,a+1,f)}})};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&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)qQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var M=0;M<_.length;M++)I0(_[M])&&f(_[M],v+1,T+"["+M+"].")}else I0(_)&&f(_,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 f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=V_[r]),Nk(s,t,i)};Xn.getLayoutValObject=function(e,t){var r=OQ(e,t[0]);return Nk(r,t,1)};function OQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;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 UQ(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:R0(i)};if(t.layoutAttributes){var f={};qu(f,t.layoutAttributes),l.layoutAttributes=R0(f)}return t.animatable||Xn.crawl(l,function(h){Xn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function VQ(){var e={},t,r;qu(e,Pw);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 q0=Bt(),XQ=ys(),Nh="templateitemname",Rw={name:{valType:"string",editType:"none"}};Rw[Nh]={valType:"string",editType:"calc"};md.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Rw.name,t[Nh]=Rw[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=q0.coerce(s,{},XQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};md.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);q0.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[Ok(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Nh]=v[Nh];if(!Bk(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Nh]=s)}h();function v(M,C){f[M]=C}function m(M,C){s?q0.nestedProperty(f[l],M).set(C):f[l+"."+M]=C}function _(){var M=f;return h(),M}function T(M,C){M&&m(M,C);var E=_();for(var L in E)q0.nestedProperty(e,L).set(E[L])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var eo=me((Yge,Uk)=>{"use strict";var Xy=b0().counter;Uk.exports={idRegex:{x:Xy("x","( domain)?"),y:Xy("y","( domain)?")},attrRegex:Xy("[xy]axis"),xAxisMatch:Xy("xaxis"),yAxisMatch:Xy("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=me(Bs=>{"use strict";var jQ=sa(),Fw=eo();Bs.id2name=function(t){if(!(typeof t!="string"||!t.match(Fw.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Bs.name2id=function(t){if(t.match(Fw.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Bs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Fw.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":"")}};Bs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=Bs.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Bs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Vk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function JQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function KQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Hk.exports={clearOutlineControllers:JQ,clearOutline:KQ}});var Z_=me((jge,Gk)=>{"use strict";Gk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var X_=me(W_=>{"use strict";var Y_=sa(),Jge=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 QQ=sa(),N0=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){Zk(e,l,a.cache),a.check=function(){if(s){var m=Zk(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 f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;N0.isPlainObject(s)?qw(s,t,l,i+1):t(l,a,s)}})}});var to=me(($ge,lC)=>{"use strict";var tC=ja(),e$=y0().timeFormatLocale,t$=Y3().formatLocale,jy=Da(),r$=W3(),ti=sa(),rC=F0(),a$=Ii(),Dr=Bt(),aC=Oa(),jk=Zi().BADNUM,Os=jn(),i$=Bh().clearOutline,n$=Z_(),Nw=By(),o$=Dw(),s$=X_().getModuleCalcData,Jk=Dr.relinkPrivateKeys,gd=Dr._,_r=lC.exports={};Dr.extendFlat(_r,ti);_r.attributes=ys();_r.attributes.type.values=_r.allTypes;_r.fontAttrs=qo();_r.layoutAttributes=M0();var J_=Xk();_r.executeAPICommand=J_.executeAPICommand;_r.computeAPICommandBindings=J_.computeAPICommandBindings;_r.manageCommandObserver=J_.manageCommandObserver;_r.hasSimpleAPICommandBindings=J_.hasSimpleAPICommandBindings;_r.redrawText=function(e){return e=Dr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ti.getComponentMethod("annotations","draw")(e),ti.getComponentMethod("legend","draw")(e),ti.getComponentMethod("colorbar","draw")(e),t(_r.previousPromises(e)))},300)})};_r.resize=function(e){e=Dr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Dr.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||Dr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ti.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=Dr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:aC.defaultLine,"pointer-events":"all"}).each(function(){var v=tC.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"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&l$(e,s),l.text(s.text()&&f.text()?" - ":"")}};function l$(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=tC.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 u$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],f$=["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||[],f=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=Kk(e,u$);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=v$(T,a.separators),a._extraFormat=Kk(e,f$),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=h$(),z=a._splomAxes={x:{},y:{}},N=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=c$(l,h),_r.supplyDataDefaults(h,f,s,a);var H=Object.keys(z.x),V=Object.keys(z.y);if(H.length>1&&V.length>1){for(ti.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,_r.linkSubplots(f,a,l,i),_r.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),le=oe,Te=fe;le&&!Te?i._bgLayer.remove():Te&&!le&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&i$({_fullLayout:i}),d$(f,a),Jk(a,i),ti.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Se=a._tracePreGUI,Me={},Ae;for(Ae in Se)Me[Ae]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=_r.layoutAttributes.width.min,T=_r.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||M)&&(M&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),_r.sanitizeMargins(i)};_r.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ti.componentsRegistry,s=t._basePlotModules,l,f,h,v=ti.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ti.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Dr.subplotSort);for(f=0;f1&&(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 m$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Os.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={}),iC(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Dr.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 V in T)V!=="base"&&jy(T[V][N].size)&&(H=T[V][N].size>H?T[V][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,fe=ee.size,le=ie.val,Te=ie.size,Se=r-l.r-l.l,Me=i-l.t-l.b;for(var Ae in T){if(jy(fe)&&T[Ae].r){var pe=T[Ae].r.val,ke=T[Ae].r.size;if(pe>oe){var Ee=(fe*pe+(ke-Se)*oe)/(pe-oe),Xe=(ke*(1-oe)+(fe-Se)*(1-pe))/(pe-oe);Ee+Xe>h+v&&(h=Ee,v=Xe)}}if(jy(Te)&&T[Ae].t){var lt=T[Ae].t.val,it=T[Ae].t.size;if(lt>le){var _t=(Te*lt+(it-Me)*le)/(lt-le),Ye=(it*(1-le)+(Te-Me)*(1-lt))/(lt-le);_t+Ye>_+m&&(_=_t,m=Ye)}}}}}var kt=Dr.constrain(r-s.l-s.r,nC,C),st=Dr.constrain(i-s.t-s.b,oC,E),dt=Math.max(0,r-kt),It=Math.max(0,i-st);if(dt){var yt=(h+v)/dt;yt>1&&(h/=yt,v/=yt)}if(It){var de=(_+m)/It;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(f,a)||m$(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ze=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,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,M){if(typeof T=="function")return M?"_function_":null;if(Dr.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&&!Dr.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=Dr.isTypedArray(T);if((L||I)&&T.dtype&&T.shape){var O=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Dr.isArrayBuffer(O)?r$.encode(O):O},M)}return L?T.map(function(q){return v(q,M)}):I?Dr.simpleMap(T,Dr.identity):Dr.isJSDate(T)?Dr.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(f),a)){var _=f._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 ti.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&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ti.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=Dr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}_r.doCalcdata=function(e,t){var r=Os.list(e),i=e._fullData,a=e._fullLayout,s,l,f,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={},f=0;f=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($k(r,i,a),f=0;f{"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=me((t1e,uC)=>{"use strict";uC.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=me(Yl=>{"use strict";var On=ja(),Mc=Bt(),x$=Mc.strTranslate,Bw=Oh(),b$=No().LINE_SPACING,w$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(w$),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 f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=R$(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};S$(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()){f(),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 V=+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,V,W]+")"+x$(-N/2,ee-H/2)});else if(l[0]==="l")W=ee-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=ee;else{var ie=e.attr("text-anchor");V=V-N*(ie==="middle"?.5:ie==="end"?1:0),W=W+ee-H/2}C.attr({x:V,y:W}),r&&r.call(e,E),h(E)})})):f(),e};var T$=/(<|<|<)/g,A$=/(>|>|>)/g;function M$(e){return e.replace(T$,"\\lt ").replace(A$,"\\gt ")}var fC=[["$","$"],["\\(","\\)"]];function S$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){Mc.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=Mc.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:fC},displayAlign:"left"})},v=function(){s=Mc.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=fC},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-"+Mc.randstr({},64);f=On.select("body").append("div").attr({id:O}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(M$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},M=function(){var O=f.select(i===2?".MathJax_SVG":".MathJax"),q=!O.empty()&&f.select("svg").node();if(!q)Mc.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)}f.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 dC={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"},k$={sub:"0.3em",sup:"-0.6em"},C$={sub:"-0.21em",sup:"0.42em"},cC="\u200B",hC=["http:","https:","mailto:","",void 0,":"],pC=Yl.NEWLINES=/(\r\n?|\n)/g,Uw=/(<[^<>]*>)/,Vw=/<(\/?)([^ >]*)(\s+(.*))?>/i,E$=//i;Yl.BR_TAG_ALL=//gi;var mC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,yC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,gC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L$=/(^|[\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 D$=/(^|;)\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(Uw),f=[],h="",v=0,m=0;ms?f.push(_.slice(0,Math.max(0,E-s))+a):f.push(_.slice(0,E));break}h=""}}return f.join("")};var P$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},z$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K_(e){return e.replace(z$,function(t,r){var i;return r.charAt(0)==="#"?i=I$(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=P$[r],i||t})}Yl.convertEntities=K_;function I$(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 R$(e,t){t=t.replace(pC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(Bw.svg,"tspan");On.select(H).attr({class:"line",dy:s*b$+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&Mc.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=E$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Uw),T=0;T<_.length;T++){var M=_[T],C=M.match(Vw),E=C&&C[2].toLowerCase(),L=dC[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,mC);if(q?(q=q.replace(D$,"$1 fill:"),L&&(q+=";"+L)):L&&(q=L),q&&(O.style=q),E==="a"){r=!0;var z=xd(I,yC);if(z){var N=_C(z);N&&(O.href=N,O.target=xd(I,gC)||"_blank",O.popup=xd(I,L$))}}f(O)}}return r}function _C(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 hC.indexOf(a)!==-1&&hC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(pC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Uw),l=0;l{"use strict";var F$=ja(),$_=Mf(),Ky=Da(),Q_=Bt(),xC=Oa(),q$=ud().isValid;function N$(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 SC(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 CC=fw(),O$=CC.FORMAT_LINK,U$=CC.DATE_FORMAT_LINK;function V$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Hw:EC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Hw(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: "+O$+"."].join(" ")}function EC(e,t){return Hw(e,t)+[" And for dates see: "+U$+".","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(" ")}LC.exports={axisHoverFormat:V$,descriptionOnlyNumbers:Hw,descriptionWithDates:EC}});var Nu=me((o1e,WC)=>{"use strict";var DC=qo(),B0=Sf(),YC=gc().dash,Yw=yn().extendFlat,PC=Ii().templatedArray,n1e=kf().templateFormatStringDescription,zC=Gw().descriptionWithDates,H$=Zi().ONEDAY,Lf=eo(),G$=Lf.HOUR_PATTERN,Z$=Lf.WEEKDAY_PATTERN,Zw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Y$=Yw({},Zw,{values:Zw.values.slice().concat(["sync"])});function IC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var RC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},FC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},qC={valType:"data_array",editType:"ticks"},NC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function BC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function OC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var UC={valType:"color",dflt:B0.defaultLine,editType:"ticks"},VC={valType:"color",dflt:B0.lightLine,editType:"ticks"};function HC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var GC=Yw({},YC,{editType:"ticks"}),ZC={valType:"boolean",editType:"ticks"};WC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:B0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:DC({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:[Lf.idRegex.x.toString(),Lf.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:[Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"calc"},rangebreaks:PC("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:[Z$,G$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:H$},editType:"calc"}),tickmode:Y$,nticks:IC(),tick0:RC,dtick:FC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:qC,ticktext:{valType:"data_array",editType:"ticks"},ticks:NC,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:BC(),tickwidth:OC(),tickcolor:UC,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:Yw({},YC,{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:DC({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:zC("tick label")},tickformatstops:PC("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:zC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:B0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:ZC,gridcolor:VC,gridwidth:HC(),griddash:GC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:B0.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:B0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Lf.idRegex.x.toString(),Lf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Zw,nticks:IC("minor"),tick0:RC,dtick:FC,tickvals:qC,ticks:NC,ticklen:BC("minor"),tickwidth:OC("minor"),tickcolor:UC,gridcolor:VC,gridwidth:HC("minor"),griddash:GC,showgrid:ZC,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=me((s1e,JC)=>{"use strict";var Wi=Nu(),XC=qo(),jC=yn().extendFlat,W$=il().overrideAll;JC.exports=W$({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:XC({}),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:XC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Sc=me((u1e,QC)=>{"use strict";var X$=e2(),j$=b0().counter,J$=L_(),KC=ud().scales,l1e=J$(KC);function t2(e){return"`"+e+"`"}QC.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",f=typeof r.colorscaleDflt=="string"?KC[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 V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[M]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:N},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[L]={valType:"number",dflt:null,editType:"calc",impliedEdits:N},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=X$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:j$("coloraxis"),dflt:null,editType:"calc"}),V}});var Xw=me((f1e,$C)=>{"use strict";var K$=yn().extendFlat,Q$=Sc(),Ww=ud().scales;$C.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ww.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ww.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ww.RdBu,editType:"calc"}},coloraxis:K$({_isSubplotObj:!0,editType:"calc"},Q$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var jw=me((c1e,eE)=>{"use strict";var $$=Bt();eE.exports=function(t){return $$.isPlainObject(t.colorbar)}});var Qw=me(Kw=>{"use strict";var Jw=Da(),tE=Bt(),rE=Zi(),eee=rE.ONEDAY,tee=rE.ONEWEEK;Kw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?eee:1;if(!e)return s;if(Jw(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),f=e.slice(1);return f=Jw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Kw.tick0=function(e,t,r,i){if(t==="date")return tE.cleanDate(e,tE.dateTick0(r,i%tee===0?1:0));if(!(i==="D1"||i==="D2"))return Jw(e)?Number(e):0}});var $w=me((v1e,iE)=>{"use strict";var aE=Qw(),ree=Bt().isArrayOrTypedArray,aee=al().isTypedArraySpec,iee=al().decodeTypedArraySpec;iE.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(O){var q=f[O];return aee(q)&&(q=iee(q)),q!==void 0?q:(h._template||{})[O]}var _=m("tick0"),T=m("dtick"),M=m("tickvals"),C=ree(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=aE.dtick(T,a);h.tick0=aE.tick0(_,a,r.calendar,L)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var t5=me((d1e,oE)=>{"use strict";var e5=Bt(),nE=Nu();oE.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?nE.minor:nE,v=s?"minor.":"",m=e5.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=e5.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=e5.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),M=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");M||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var r5=me((p1e,sE)=>{"use strict";sE.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=me((m1e,lE)=>{"use strict";var r2=Bt(),nee=Ii();lE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=r2.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=nee.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var a5=Bt(),oee=Oa().contrast,uE=Nu(),see=r5(),lee=Wl();fE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");a5.isPlainObject(l)||delete r.labelalias;var f=see(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?oee(s.bgColor):m&&m!==uE.color.dflt?m:v.color;if(a5.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");lee(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uee}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function uee(e,t){function r(a,s){return a5.coerce(e,t,uE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var n5=me((g1e,cE)=>{"use strict";var fee=r5();cE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=fee(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var o5=me((_1e,hE)=>{"use strict";var Uh=Bt(),cee=Ii(),hee=$w(),vee=t5(),dee=i5(),pee=n5(),mee=e2();hE.exports=function(t,r,i){var a=cee.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ie,oe){return Uh.coerce(s,a,mee,ie,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.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"),hee(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),pee(s,a,l,"linear",W),dee(s,a,l,"linear",W),vee(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,ee=Uh.extendFlat({},V,{family:J.family,size:Uh.bigFont(J.size)});Uh.coerceFont(l,"title.font",ee),l("title.side",_?"top":"right")}});var bd=me((x1e,pE)=>{"use strict";var vE=Da(),l5=Bt(),yee=jw(),gee=o5(),dE=ud().isValid,_ee=sa().traceIs;function s5(e,t){var r=t.slice(0,t.length-1);return t?l5.nestedProperty(e,r).get()||{}:e}pE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=s5(t,l),m=s5(r,l),_=s5(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=_ee(r,"contour")&&l5.nestedProperty(r,"contours.coloring").get()||"heatmap",L=M[C];L?(L[2].push(T),L[0]!==E&&(L[0]=!1,l5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):M[C]=[E,r,[T]];return}}var I=v[f+"min"],O=v[f+"max"],q=vE(I)&&vE(O)&&I{"use strict";var mE=Bt(),xee=Ii(),yE=Xw(),bee=bd();gE.exports=function(t,r){function i(_,T){return mE.coerce(t,r,yE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return mE.coerce(s,l,yE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=xee.newContainer(r,h,"coloraxis"),l._name=h,bee(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var wee=Bt(),Tee=Ef().hasColorscale,Aee=Ef().extractOpts;xE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?wee.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var M=Aee(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 wE=Da(),u5=Bt(),Mee=Ef().extractOpts;TE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?u5.nestedProperty(r,l).get():r,h=Mee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,M=function(){return u5.aggNums(Math.min,null,s)},C=function(){return u5.aggNums(Math.max,null,s)};if(m===void 0?m=M():v&&(f._colorAx&&wE(m)?m=Math.min(m,M()):m=M()),_===void 0?_=C():v&&(f._colorAx&&wE(_)?_=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 U0=me((A1e,AE)=>{"use strict";var a2=ud(),O0=Ef();AE.exports={moduleType:"component",name:"colorscale",attributes:Sc(),layoutAttributes:Xw(),supplyLayoutDefaults:_E(),handleDefaults:bd(),crossTraceDefaults:bE(),calc:Qy(),scales:a2.scales,defaultScale:a2.defaultScale,getScale:a2.get,isValidScale:a2.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var rs=me((M1e,SE)=>{"use strict";var ME=Bt(),See=al().isTypedArraySpec;SE.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 ME.isPlainObject(t)&&(ME.isArrayOrTypedArray(t.size)||See(t.size))}}});var f5=me((S1e,kE)=>{"use strict";var kee=Da();kE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return kee(h)&&h>0?Math.max(h,s):0}}});var kc=me(Bo=>{"use strict";var i2=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{LE.exports=Pee;var c5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Dee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Pee(e){var t=[];return e.replace(Dee,function(r,i,a){var s=i.toLowerCase();for(a=Iee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==c5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var Ree=h5(),lr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",DE=Math.sqrt(2),Vh=Math.sqrt(3),v5=Math.PI,d5=Math.cos,p5=Math.sin;FE.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/DE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+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),f=lr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"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),f=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"+f+","+_+"L0,"+T+"L-"+f+","+_+"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),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+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),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+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/DE,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=v5/2.5,a=2*e*d5(i),s=2*e*p5(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=v5/4,a=2*e*d5(i),s=2*e*p5(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 PE,zE,IE,RE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(IE===e&&RE===t&&PE===r)return zE;IE=e,RE=t,PE=r;function i(L,I){var O=d5(L),q=p5(L),z=I[0],N=I[1]+(t||0);return[z*O-N*q,z*q+N*O]}for(var a=e/180*v5,s=0,l=0,f=Ree(r),h="",v=0;v{"use strict";var ao=ja(),_i=Bt(),Fee=_i.numberFormat,Md=Da(),b5=Mf(),o2=sa(),Ao=Oa(),qee=U0(),eg=_i.strTranslate,s2=ro(),Nee=Oh(),Bee=No(),Oee=Bee.LINE_SPACING,WE=m_().DESELECTDIM,Uee=rs(),Vee=f5(),Hee=kc().appendArrayPointValue,xr=aL.exports={};xr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Ao.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",m5(Zee(m))),h&&e.style("text-shadow",h==="auto"?s2.makeTextShadow(Ao.contrast(s)):m5(h)),v&&e.style("text-decoration-line",m5(Yee(v)))};function m5(e){return e==="none"?void 0:e}var Gee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Zee(e){return Gee[e]}function Yee(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",eg(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,f=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,f)})})}};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,f=a||s.dash||"";Ao.stroke(t,i||s.color),xr.dashLine(t,f,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,f=i||s.dash||"";ao.select(this).call(Ao.stroke,r||s.color).call(xr.dashLine,f,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 XE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=xr.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){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,f,_,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(KE,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(Ao.fill,t.fillcolor)}xr.singleFillStyle=function(e,t){var r=ao.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};XE(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&&XE(a,i[0].trace,t,r)})};var NE=qE();xr.symbolNames=[];xr.symbolFuncs=[];xr.symbolBackOffs=[];xr.symbolNeedLines={};xr.symbolNoDot={};xr.symbolNoFill={};xr.symbolList=[];Object.keys(NE).forEach(function(e){var t=NE[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 Wee=xr.symbolNames.length,Xee="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>=Wee||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?Xee:"")}var BE=Fee("~f"),JE={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=JE[i];return KE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function KE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.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=A5(e,r),_=T5(e,r);t.attr("d",jE(v,h,m,_))}var T=!1,M,C,E;if(e.so)E=f.outlierwidth,C=f.outliercolor,M=l.outliercolor;else{var L=(f||{}).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):_i.isArrayOrTypedArray(f.color)?C=Ao.defaultLine:C=f.color,_i.isArrayOrTypedArray(l.color)&&(M=Ao.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||(f||{}).dash;if(I&&xr.dashLine(t,I,E),e.om)t.call(Ao.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,_i.isArrayOrTypedArray(q)&&(q=q[0],JE[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 V=e.mgc;V?T=!0:V=O.color;var W=r.uid;T&&(W+="-"+e.i),xr.gradient(t,a,W,q,[[0,V],[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),fe=z.fgopacity,le=N(z.size,e.i,8),Te=N(z.solidity,e.i,.3);J=J||e.mcc||_i.isArrayOrTypedArray(z.shape)||_i.isArrayOrTypedArray(z.path)||_i.isArrayOrTypedArray(z.bgcolor)||_i.isArrayOrTypedArray(z.fgcolor)||_i.isArrayOrTypedArray(z.size)||_i.isArrayOrTypedArray(z.solidity);var Se=r.uid;J&&(Se+="-"+e.i),xr.pattern(t,"point",a,Se,H,le,Te,e.mcc,z.fillmode,oe,ie,fe)}else _i.isArrayOrTypedArray(M)?Ao.fill(t,M[e.i]):Ao.fill(t,M);E&&Ao.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=Uee.isBubble(e)?Vee(e):function(){return(r.size||6)/2}),e.selectedpoints&&_i.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||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(_i.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(z){var N=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:N:_?v:WE*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||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Ao.addOpacity(_,WE))},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){Ao.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",jE(xr.symbolNumber(f),h,A5(l,t),T5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=ao.select(this),f=0;f0?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(f){var h=ao.select(this),v=s?_i.extractOption(f,t,"txt","texttemplate"):_i.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};Hee(T,t,f.i),v=_i.texttemplateString({data:[T,f,t._meta],fallback:t.texttemplatefallback,labels:_,locale:l._d3locale,template:v})}var M=f.tp||t.textposition,C=$E(f,t),E=i?i(f):f.tc||t.textfont.color;h.call(xr.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:C,color:E}).text(v).call(s2.convertToTspans,r).call(QE,M,C,f.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,f=$E(i,t);Ao.fill(a,s);var h=o2.traceIs(t,"bar-like");QE(a,l,f,i.mrc2||i.mrc,h)})}};var OE=.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=rL;xr.makeTester=function(){var e=_i.ensureSingleById(ao.select("body"),"svg","js-plotly-tester",function(r){r.attr(Nee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=_i.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 g5=0,Kee=1e4;xr.bBox=function(e,t,r){r||(r=UE(e));var i;if(r){if(i=xr.savedBBoxes[r],i)return _i.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=UE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){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+"~"+f,i=xr.savedBBoxes[r],i)return _i.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 g5>=Kee&&(xr.savedBBoxes={},g5=0),r&&(xr.savedBBoxes[r]=M),g5++,_i.extendFlat({},M)};function UE(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",w5(t,r))};function w5(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,f){return[l,f].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+=eg(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,f){return[l,f].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 Qee=/\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(Qee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var $ee=/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),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match($ee);t===1&&r===1?i=[]:i=[eg(l,f),"scale("+t+","+r+")",eg(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function T5(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=T5;var $y=Math.atan2,wd=Math.cos,H0=Math.sin;function VE(e,t){var r=t[0],i=t[1];return[r*wd(e)-i*H0(e),r*H0(e)+i*wd(e)]}var HE,GE,ZE,YE,_5,x5;function A5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||_i.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 f=t._xA,h=t._yA;if(f&&h)i=f.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=$y(T[1]-a,T[0]-i),C=$y(_[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=HE/180*Math.PI,q=GE/180*Math.PI,z=O-L,N=wd(q)*H0(z),H=H0(q)*wd(I)-wd(q)*H0(I)*wd(z);E=-$y(N,H)-Math.PI,HE=v,GE=m}var V=VE(M,[wd(E),0]),W=VE(C,[H0(E),0]);r=$y(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(x5===t.uid&&e.i===_5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(x5===t.uid&&e.i===_5+1&&Md(i)&&Md(a)){var J=i-ZE,ee=a-YE,ie=t.line&&t.line.shape||"",oe=ie.slice(ie.length-1);oe==="h"&&(ee=0),oe==="v"&&(J=0),r+=$y(ee,J)/Math.PI*180+90}else r=null}return ZE=i,YE=a,_5=e.i,x5=t.uid,r}xr.getMarkerAngle=A5});var tg=me((D1e,sL)=>{"use strict";var G0=ja(),ete=Da(),tte=to(),M5=sa(),Sd=Bt(),iL=Sd.strTranslate,l2=xi(),u2=Oa(),Z0=ro(),nL=m_(),rte=No().OPPOSITE_SIDE,oL=/ [XY][0-9]* /,S5=1.6,k5=1.6;function ate(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=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,V=L.textcase,W=L.lineposition,J=L.shadow,ee=r.subtitlePropName,ie=!!ee,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},le=(fe.text||"").trim(),Te=!1,Se=1,Me=fe.font,Ae=Me.family,pe=Me.size,ke=Me.color,Ee=Me.weight,Xe=Me.style,lt=Me.variant,it=Me.textcase,_t=Me.lineposition,Ye=Me.shadow,kt;s==="title.text"?kt="titleText":s.indexOf("axis")!==-1?kt="axisTitleText":s.indexOf("colorbar")!==-1&&(kt="colorbarTitleText");var st=e._context.edits[kt];function dt(Ut,Dt){return Ut===void 0||Dt===void 0?!1:Ut.replace(oL," % ")===Dt.replace(oL," % ")}C===""?T=0:dt(C,l)&&(st||(C=""),T=.2,E=!0),ie&&(le===""?Se=0:dt(le,oe)&&(st||(le=""),Se=.2,Te=!0)),r._meta?C=Sd.templateString(C,r._meta):i._meta&&(C=Sd.templateString(C,i._meta));var It=C||le||st,yt;_||(_=Sd.ensureSingle(i._infolayer,"g","g-"+t),yt=i._hColorbarMoveTitle);var de=_.selectAll("text."+t).data(It?[0]:[]);de.enter().append("text"),de.text(C).attr("class",t),de.exit().remove();var ze=null,_e=t+"-subtitle",Ue=le||st;if(ie&&(ze=_.selectAll("text."+_e).data(Ue?[0]:[]),ze.enter().append("text"),ze.text(le).attr("class",_e),ze.exit().remove()),!It)return _;function at(Ut,Dt){Sd.syncOrAsync([Je,Ct],{title:Ut,subtitle:Dt})}function Je(Ut){var Dt=Ut.title,Mt=Ut.subtitle,Zt;!m&&yt&&(m={}),m?(Zt="",m.rotate&&(Zt+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||yt)&&(Zt+=iL(0,(m.offset||0)-(yt||0)))):Zt=null,Dt.attr("transform",Zt);function Yt(ht){if(ht){var pt=G0.select(ht.node().parentNode).select("."+_e);if(!pt.empty()){var Ot=ht.node().getBBox();if(Ot.height){var er=Ot.y+Ot.height+S5*pe;pt.attr("y",er)}}}}if(Dt.style("opacity",T*u2.opacity(q)).call(l2.font,{color:u2.rgb(q),size:G0.round(O,2),family:I,weight:z,style:N,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(Z0.convertToTspans,e,Yt),Mt&&!Mt.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+S5*pe:ut.y+ut.height+k5*pe,Et=Sd.extendFlat({},v,{y:Pr});Mt.attr("transform",Zt),Mt.style("opacity",Se*u2.opacity(ke)).call(l2.font,{color:u2.rgb(ke),size:G0.round(pe,2),family:Ae,weight:Ee,style:Xe,variant:lt,textcase:it,shadow:Ye,lineposition:_t}).attr(Et).call(Z0.convertToTspans,e)}return tte.previousPromises(e)}function Ct(Ut){var Dt=Ut.title,Mt=G0.select(Dt.node().parentNode);if(h&&h.selection&&h.side&&C){Mt.attr("transform",null);var Zt=rte[h.side],Yt=h.side==="left"||h.side==="top"?-1:1,Be=ete(h.pad)?h.pad:2,ut=l2.bBox(Mt.node()),sr={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Et in Pr)for(var ht in Pr[Et]){var pt=Pr[Et][ht];sr[ht]=Math.max(sr[ht],pt)}var Ot={left:sr.l,top:sr.t,right:i.width-sr.r,bottom:i.height-sr.b},er=h.maxShift||Yt*(Ot[h.side]-ut[h.side]),Ht=0;if(er<0)Ht=er;else{var Kt=h.offsetLeft||0,pr=h.offsetTop||0;ut.left-=Kt,ut.right-=Kt,ut.top-=pr,ut.bottom-=pr,h.selection.each(function(){var ur=l2.bBox(this);Sd.bBoxIntersect(ut,ur,Be)&&(Ht=Math.max(Ht,Yt*(ur[h.side]-ut[Zt])+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];Mt.attr("transform",iL(yr[0],yr[1]))}}}de.call(at,ze);function wt(Ut,Dt){Ut.text(Dt).on("mouseover.opacity",function(){G0.select(this).transition().duration(nL.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(nL.HIDE_PLACEHOLDER).style("opacity",0)})}if(st&&(C?de.on(".opacity",null):(wt(de,l),E=!0),de.call(Z0.makeEditable,{gd:e}).on("edit",function(Ut){f!==void 0?M5.call("_guiRestyle",e,s,Ut,f):M5.call("_guiRelayout",e,s,Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(Ut){this.text(Ut||" ").call(Z0.positionText,v.x,v.y)}),ie)){if(ie&&!C){var xt=de.node().getBBox(),qt=xt.y+xt.height+k5*pe;ze.attr("y",qt)}le?ze.on(".opacity",null):(wt(ze,oe),Te=!0),ze.call(Z0.makeEditable,{gd:e}).on("edit",function(Ut){M5.call("_guiRelayout",e,"title.subtitle.text",Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(Ut){this.text(Ut||" ").call(Z0.positionText,ze.attr("x"),ze.attr("y"))})}return de.classed("js-placeholder",E),ze&&!ze.empty()&&ze.classed("js-placeholder",Te),_}sL.exports={draw:ate,SUBTITLE_PADDING_EM:k5,SUBTITLE_PADDING_MATHJAX_EM:S5}});var y2=me((P1e,hL)=>{"use strict";var ite=ja(),nte=y0().utcFormat,Ri=Bt(),ote=Ri.numberFormat,Df=Da(),Hh=Ri.cleanNumber,ste=Ri.ms2DateTime,lL=Ri.dateTime2ms,Pf=Ri.ensureNumber,uL=Ri.isArrayOrTypedArray,Gh=Zi(),f2=Gh.FP_SAFE,Bu=Gh.BADNUM,lte=Gh.LOG_CLIP,ute=Gh.ONEWEEK,c2=Gh.ONEDAY,h2=Gh.ONEHOUR,fL=Gh.ONEMIN,cL=Gh.ONESEC,v2=jn(),m2=eo(),d2=m2.HOUR_PATTERN,p2=m2.WEEKDAY_PATTERN;function rg(e){return Math.pow(10,e)}function C5(e){return e!=null}hL.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],V=t.range[1];return .5*(H+V-2*lte*Math.abs(H-V))}else return Bu}function l(z,N,H,V){if((V||{}).msUTC&&Df(z))return+z;var W=lL(z,H||t.calendar);if(W===Bu)if(Df(z)){z=+z;var J=Math.floor(Ri.mod(z+.05,1)*10),ee=Math.round(z-J/10);W=lL(new Date(ee))+J/10}else return Bu;return W}function f(z,N,H){return ste(z,N,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(C5(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),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*z,J=0,ee=0;eeoe)J=ee+1;else{J=W<(ie+oe)/2?ee:ee+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(z,t._m2,fe):0},I=function(z){var N=t._rangebreaks.length;if(!N)return E(z,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return E(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Pf,t.l2c=t.type==="log"?rg:Pf,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 rg(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=Pf,t.d2p=t.r2p=function(z){return t.l2p(Hh(z))},t.p2d=t.p2r=I,t.cleanPos=Pf):t.type==="log"?(t.d2r=t.d2l=function(z,N){return s(Hh(z),N)},t.r2d=t.r2c=function(z){return rg(Hh(z))},t.d2c=t.r2l=Hh,t.c2d=t.l2r=Pf,t.c2r=s,t.l2d=rg,t.d2p=function(z,N){return t.l2p(t.d2r(z,N))},t.p2d=function(z){return rg(I(z))},t.r2p=function(z){return t.l2p(Hh(z))},t.p2r=I,t.cleanPos=Pf):t.type==="date"?(t.d2r=t.r2d=Ri.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(z,N,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,N,H){return f(I(z),N,H)},t.cleanPos=function(z){return Ri.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=Pf,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:Pf(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=Pf,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:Pf(z)},t.setupMultiCategory=function(z){var N=t._traceIndices,H,V,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]&&(V[J?0:1]=H),V[0]===V[1]){var ie=t.l2r(N),oe=t.l2r(H);if(N!==void 0){var fe=ie+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var le=oe+1;N!==void 0&&(le=Math.max(le,ie)),V[J?0:1]=le}}}},t.cleanRange=function(z,N){t._cleanRange(z,N),t.limitRange(z)},t._cleanRange=function(z,N){N||(N={}),z||(z="range");var H=Ri.nestedProperty(t,z).get(),V,W;if(t.type==="date"?W=Ri.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){Ri.nestedProperty(t,z).set(W);return}var J=H[0]===null,ee=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=Ri.cleanDate(H[0],Bu,t.calendar),H[1]=Ri.cleanDate(H[1],Bu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!Ri.isDateTime(H[V],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ie=Ri.constrain(t.r2l(H[0]),Ri.MIN_MS+1e3,Ri.MAX_MS-1e3);H[0]=t.l2r(ie-1e3),H[1]=t.l2r(ie+1e3);break}}else{if(!Df(H[V]))if(!(J||ee)&&Df(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[z]=W;break}if(H[V]<-f2?H[V]=-f2:H[V]>f2&&(H[V]=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 V=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),ee=t.r2l(t[V][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,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,ee),Math.max(J,ee)),t._rangebreaks.length){for(oe=0;oeee&&(le=!le),le&&t._rangebreaks.reverse();var Te=le?-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=V&&J=V&&z=Ye.min&&(XeYe.max&&(Ye.max=lt),it=!1)}it&&ee.push({min:Xe,max:lt})}};for(H=0;H{"use strict";var vL=Da(),E5=Bt(),fte=Zi().BADNUM,g2=E5.isArrayOrTypedArray,cte=E5.isDateTime,hte=E5.cleanNumber,dL=Math.round;mL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(g2(a)&&!a.length)return"-";if(!s&&yte(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function pL(e){return Math.max(1,(e-1)/1e3)}function mte(e,t){for(var r=e.length,i=pL(r),a=0,s=0,l={},f=0;fa*2}function yte(e){return g2(e[0])&&g2(e[1])}});var ag=me((I1e,AL)=>{"use strict";var gte=ja(),xL=Da(),Zh=Bt(),_2=Zi().FP_SAFE,_te=sa(),xte=xi(),bL=jn(),bte=bL.getFromId,wte=bL.isLinked;AL.exports={applyAutorangeOptions:TL,getAutoRange:D5,makePadFn:P5,doAutoRange:Ate,findExtremes:Mte,concatExtremes:R5};function D5(e,t){var r,i,a=[],s=e._fullLayout,l=P5(s,t,0),f=P5(s,t,1),h=R5(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)-f(V),ee>z?ie/ee>N&&(W=H,J=V,N=ie/ee):ie/q>N&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},N=ie/q));function oe(Me,Ae){return Math.max(Me,f(Ae))}if(_===T){var fe=_-1,le=_+1;if(I)if(_===0)a=[0,1];else{var Te=(_>0?m:v).reduce(oe,0),Se=_/(1-Math.min(.5,Te/q));a=_>0?[0,Se]:[Se,0]}else O?a=[Math.max(0,fe),Math.max(1,le)]:a=[fe,le]}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-yL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-N*l(W),J.val+N*f(J)];return a=TL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Zh.simpleMap(a,t.l2r||Number)}function yL(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),V=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:f,extrapad:l};function ee(oe){M=t[oe],xL(M)&&(L=N(oe),I=H(oe),m?(C=e.c2l(M)-W(oe),E=e.c2l(M)+V(oe)):(O=M-W(oe),q=M+V(oe),h&&O=ie;_--)ee(_);return{min:i,max:a,opts:r}}function z5(e,t,r,i){wL(e,t,r,i,Ste)}function I5(e,t,r,i){wL(e,t,r,i,kte)}function wL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function _L(e){return xL(e)&&Math.abs(e)<_2}function Ste(e,t){return e<=t}function kte(e,t){return e>=t}function Cte(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 Ete(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=Cte(r,t),i=Ete(i,t),[r,i]}});var Xi=me((F1e,WL)=>{"use strict";var Xl=ja(),Un=Da(),Y0=to(),ng=sa(),jr=Bt(),W0=jr.strTranslate,kd=ro(),Lte=tg(),og=Oa(),ol=xi(),Dte=Nu(),ML=Qw(),R1e=eo(),Mo=Zi(),Pte=Mo.ONEMAXYEAR,T2=Mo.ONEAVGYEAR,A2=Mo.ONEMINYEAR,zte=Mo.ONEMAXQUARTER,B5=Mo.ONEAVGQUARTER,M2=Mo.ONEMINQUARTER,Ite=Mo.ONEMAXMONTH,X0=Mo.ONEAVGMONTH,S2=Mo.ONEMINMONTH,sl=Mo.ONEWEEK,as=Mo.ONEDAY,Yh=as/2,If=Mo.ONEHOUR,sg=Mo.ONEMIN,k2=Mo.ONESEC,Rte=Mo.ONEMILLI,Fte=Mo.ONEMICROSEC,Cd=Mo.MINUS_SIGN,E2=Mo.BADNUM,O5={K:"zeroline"},U5={K:"gridline",L:"path"},V5={K:"minor-gridline",L:"path"},FL={K:"tick",L:"path"},SL={K:"tick",L:"text"},kL={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(),ig=L2.MID_SHIFT,Ed=L2.CAP_SHIFT,lg=L2.LINE_SPACING,qte=L2.OPPOSITE_SIDE,C2=3,$t=WL.exports={};$t.setConvert=y2();var Nte=L5(),Rf=jn(),Bte=Rf.idSort,Ote=Rf.isLinked;$t.id2name=Rf.id2name;$t.name2id=Rf.name2id;$t.cleanId=Rf.cleanId;$t.list=Rf.list;$t.listIds=Rf.listIds;$t.getFromId=Rf.getFromId;$t.getFromTrace=Rf.getFromTrace;var qL=ag();$t.getAutoRange=qL.getAutoRange;$t.findExtremes=qL.findExtremes;var Ute=1e-4;function Y5(e){var t=(e[1]-e[0])*Ute;return[e[0]-t,e[1]+t]}$t.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.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 f=i.charAt(i.length-1);var h=r._fullLayout._subplots[f+"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 f=Number(r.slice(1));s.exactYears>l&&f%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){if(!t.minor.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 f=Un(t.dtick),h=Un(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?F5(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:LL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":F5(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"?F5(v,m)||(e.dtick=LL(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.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function F5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function LL(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 f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=A2?v>=A2&&v<=Pte?_=v:_=T2:r===B5&&m>=M2?v>=M2&&v<=zte?_=v:_=B5:m>=S2?v>=S2&&v<=Ite?_=v:_=X0:r===sl&&m>=sl?_=sl:m>=as?_=as:r===Yh&&m>=Yh?_=Yh:r===If&&m>=If&&(_=If);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",f=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]=(q?0:1);z--){var N=!z;z?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=z?t:jr.extendFlat({},t,t.minor);if(N?$t.prepMinorTicks(H,t,r):$t.prepTicks(H,r),H.tickmode==="array"){z?(L=[],C=DL(t,!N)):(I=[],E=DL(t,!N));continue}if(H.tickmode==="sync"){L=[],C=Wte(t);continue}var V=Y5(v),W=V[0],J=V[1],ee=Un(H.dtick),ie=i==="log"&&!(ee||H.dtick.charAt(0)==="L"),oe=$t.tickFirst(H,r);if(z){if(t._tmin=oe,oe=J:le<=J;le=$t.tickIncrement(le,Me,m,a)){if(z&&Te++,H.rangebreaks&&!m){if(le=T)break}if(L.length>M||le===fe)break;fe=le;var Ae={value:le};z?(ie&&le!==(le|0)&&(Ae.simpleLabel=!0),s>1&&Te%s&&(Ae.skipLabel=!0),L.push(Ae)):(Ae.minor=!0,I.push(Ae))}}if(!I||I.length<2)h=!1;else{var pe=(I[1].value-I[0].value)*(f?-1:1);gre(pe,t.tickformat)||(h=!1)}if(!h)O=L;else{var ke=L.concat(I);l&&L.length&&(ke=ke.slice(1)),ke=ke.sort(function(qt,Ut){return qt.value-Ut.value}).filter(function(qt,Ut,Dt){return Ut===0||qt.value!==Dt[Ut-1].value});var Ee=ke.map(function(qt,Ut){return qt.minor===void 0&&!qt.skipLabel?Ut:null}).filter(function(qt){return qt!==null});Ee.forEach(function(qt){h.map(function(Ut){var Dt=qt+Ut;Dt>=0&&Dt-1;It--){if(L[It].drop){L.splice(It,1);continue}L[It].value=N5(L[It].value,t);var _e=t.c2p(L[It].value);(yt?ze>_e-de:ze<_e+de)?L.splice(m?It+1:It,1):ze=_e}}J5(t)&&Math.abs(v[1]-v[0])===360&&L.pop(),t._tmax=(L[L.length-1]||{}).value,t._prevDateHead="",t._inCalcTicks=!0;var Ue,at=function(qt){qt.text="",t._prevDateHead=Ue};L=L.concat(I);function Je(qt,Ut){var Dt=$t.tickText(qt,Ut.value,!1,Ut.simpleLabel),Mt=Ut.periodX;return Mt!==void 0&&(Dt.periodX=Mt,(Mt>T||Mt<_)&&(Mt>T&&(Dt.periodX=T),Mt<_&&(Dt.periodX=_),at(Dt))),Dt}var Ct;for(It=0;Ita&&TT2)t/=T2,i=a(10),e.dtick="M"+12*zf(t,i,b2);else if(s>X0)t/=X0,e.dtick="M"+zf(t,1,PL);else if(s>as){if(e.dtick=zf(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Xte),!r){var l=$t.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=jr.dateTick0(e.calendar,2):e.tick0=jr.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>If?e.dtick=zf(t,If,PL):s>sg?e.dtick=zf(t,sg,zL):s>k2?e.dtick=zf(t,k2,zL):(i=a(10),e.dtick=zf(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"+zf(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))):J5(e)?(e.tick0=0,i=1,e.dtick=zf(t,i,jte)):(e.tick0=0,i=a(10),e.dtick=zf(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 UL(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>=sg&&a<=16||t>=If)e._tickround="M";else if(t>=k2&&a<=19||t>=sg)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 f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(j0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!W5(h)||j0(e.exponentformat)&&e.exponentformat==="SI extended"&&!X5(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 f=t==="D2"?OL:BL,h=e+a*.01,v=jr.roundUp(jr.mod(h,1),f,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"+f;else{var v=fg(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function Kte(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=ug(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"||j0(C)&&C!=="SI extended"&&W5(T)||j0(C)&&C==="SI extended"&&X5(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=ug(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 Qte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function $te(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 ere(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ug(t.x,e,a,i)}function tre(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=rre(s);if(l[1]>=100)t.text=ug(jr.deg2rad(t.x),e,a,i);else{var f=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(""),f&&(t.text=Cd+t.text)}}}else t.text=ug(t.x,e,a,i)}function rre(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)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 HL=["f","p","n","\u03BC","m","","k","M","G","T"],are=["q","r","y","z","a",...HL,"P","E","Z","Y","R","Q"],j0=e=>["SI","SI extended","B"].includes(e);function W5(e){return e>14||e<-15}function X5(e){return e>32||e<-30}function ire(e,t){return j0(t)?!!(t==="SI extended"&&X5(e)||t!=="SI extended"&&W5(e)):!1}function ug(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=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]};UL(m),s=(Number(m._tickround)||0)+4,f=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"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),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(f&&l!=="hide"){ire(f,l)&&(l="power");var C;f<0?C=Cd+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":j0(l)&&(e+=l==="SI extended"?are[f/3+10]:HL[f/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",""))*X0}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,f;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 f={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=f,r.overlayingShiftedAx=l;var m=$t.drawOne(e,v,r);return v._shiftPusher&&Z5(v,v._fullDepth||0,f,!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,f;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),Z5(t,C,i,!0),Z5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=yre(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?Mt.bottom-Ut:0,Dt))));var ut=0,sr=0;if(t._shiftPusher&&(ut=Math.max(Dt,Mt.height>0?xt==="l"?Ut-Mt.left:Mt.right-Ut:0),t.title.text!==h._dfltTitle[m]&&(sr=(t._titleStandoff||0)+(t._titleScoot||0),xt==="l"&&(sr+=RL(t))),t._fullDepth=Math.max(ut,sr)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Et=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(xt==="b"?Zt[xt]=t._depth:(Zt[xt]=t._depth=Math.max(Mt.width>0?Ut-Mt.top:0,Dt),Pr.reverse()),Mt.width>0){var ht=Mt.right-(t._offset+t._length);ht>0&&(Zt.xr=1,Zt.r=ht);var pt=t._offset-Mt.left;pt>0&&(Zt.xl=0,Zt.l=pt)}}else if(xt==="l"?(t._depth=Math.max(Mt.height>0?Ut-Mt.left:0,Dt),Zt[xt]=t._depth-Et):(t._depth=Math.max(Mt.height>0?Mt.right-Ut:0,Dt),Zt[xt]=t._depth+Et,Pr.reverse()),Mt.height>0){var Ot=Mt.bottom-(t._offset+t._length);Ot>0&&(Zt.yb=0,Zt.b=Ot);var er=t._offset-Mt.top;er>0&&(Zt.yt=1,Zt.t=er)}Zt[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Pr[0]],t.title.text!==h._dfltTitle[m]&&(Zt[xt]+=RL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Yt={x:0,y:0,r:0,l:0,t:0,b:0},Yt[qt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Yt[qt]+=Dt),t.mirror===!0||t.mirror==="ticks"?Yt[_]=t._anchorAxis.domain[Pr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Yt[_]=[t._counterDomainMin,t._counterDomainMax][Pr[1]]))}wt&&(Be=ng.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(IL(Zt,t.automargin),IL(Yt,t.automargin)),Y0.autoMargin(e,j5(t),Zt),Y0.autoMargin(e,ZL(t),Yt),Y0.autoMargin(e,YL(t),Be)}),jr.syncOrAsync(Je)}};function IL(e,t){if(e){var r=Object.keys(kL).reduce(function(i,a){return t.indexOf(a)!==-1&&kL[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 nre(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push(jr.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return W0(a+e._offset+e.l2p(H5(T))+r,s+i)}:function(T){return W0(s+i,a+e._offset+e.l2p(H5(T))+r)}};function H5(e){return e.periodX!==void 0?e.periodX:e.x}function ure(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"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||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(f||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),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};$t.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||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,V=e.side,W=e._id.charAt(0),J=e.tickangle,ee;if(W==="x")ee=!_&&V==="bottom"||_&&V==="top",N=ee?1:-1,_&&(N*=-1),O=C*N,q=t+M*N,z=ee?1:-.2,Math.abs(J)===90&&(_?z+=ig:J===-90&&V==="bottom"?z=Ed:J===90&&V==="top"?z=ig:z=.5,H=ig/2*(J/90)),I.xFn=function(fe){return fe.dx+O+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*z},I.anchorFn=function(fe,le){if(m){if(f)return"end";if(h)return"start"}return!Un(le)||le===0||le===180?"middle":le*N<0!==_?"end":"start"},I.heightFn=function(fe,le,Te){return le<-60||le>60?-.5*Te:e.side==="top"!==_?-Te:0};else if(W==="y"){if(ee=!_&&V==="left"||_&&V==="right",N=ee?1:-1,_&&(N*=-1),O=M,q=C*N,z=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="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(fe){return fe.dx+t-(O+fe.fontSize*z)*N+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*ig},I.anchorFn=function(fe,le){return Un(le)&&Math.abs(le)===90?"middle":ee?"end":"start"},I.heightFn=function(fe,le,Te){return e.side==="right"&&(le*=-1),le<-30?-Te:le<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 og.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,[FL]),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}):[],f=r.counterAxis;if(f&&$t.shouldShowZeroLine(e,t,f))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 og.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,[U5,V5])}};$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,f){return Bte(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(og.stroke,t.zerolinecolor||og.defaultLine).style("stroke-width",ol.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),P2(t,[O5])};$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",f=r.vals.filter(function(pe){return pe.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],D2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(pe){var ke=Xl.select(this),Ee=e._promises.length;ke.call(kd.positionText,h.xFn(pe),h.yFn(pe)).call(ol.font,{family:pe.font,size:pe.fontSize,color:pe.fontColor,weight:pe.fontWeight,style:pe.fontStyle,variant:pe.fontVariant,textcase:pe.fontTextcase,lineposition:pe.fontLineposition,shadow:pe.fontShadow}).text(pe.text).call(kd.convertToTspans,e),e._promises[Ee]?T.push(e._promises.pop().then(function(){M(ke,v)})):M(ke,v)}),P2(t,[SL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(pe){Xl.select(this).select("text").call(kd.positionText,h.xFn(pe),h.yFn(pe))});function M(pe,ke){pe.each(function(Ee){var Xe=Xl.select(this),lt=Xe.select(".text-math-group"),it=h.anchorFn(Ee,ke),_t=r.transFn.call(Xe.node(),Ee)+(Un(ke)&&+ke!=0?" rotate("+ke+","+h.xFn(Ee)+","+(h.yFn(Ee)-Ee.fontSize/2)+")":""),Ye=kd.lineCount(Xe),kt=lg*Ee.fontSize,st=h.heightFn(Ee,Un(ke)?+ke:0,(Ye-1)*kt);if(st&&(_t+=W0(0,st)),lt.empty()){var dt=Xe.select("text");dt.attr({transform:_t,"text-anchor":it}),dt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var It=ol.bBox(lt.node()).width,yt=It*{end:-.5,start:.5}[it];lt.attr("transform",_t+W0(yt,0))}})}t._adjustTickLabelsOverflow=function(){var pe=t.ticklabeloverflow;if(!(!pe||pe==="allow")){var ke=pe.indexOf("hide")!==-1,Ee=t._id.charAt(0)==="x",Xe=0,lt=Ee?e._fullLayout.width:e._fullLayout.height;if(pe.indexOf("domain")!==-1){var it=jr.simpleMap(t.range,t.r2l);Xe=t.l2p(it[0])+t._offset,lt=t.l2p(it[1])+t._offset}var _t=Math.min(Xe,lt),Ye=Math.max(Xe,lt),kt=t.side,st=1/0,dt=-1/0;_.each(function(ze){var _e=Xl.select(this),Ue=_e.select(".text-math-group");if(Ue.empty()){var at=ol.bBox(_e.node()),Je=0;Ee?(at.right>Ye||at.left<_t)&&(Je=1):(at.bottom>Ye||at.top+(t.tickangle?0:ze.fontSize/4)<_t)&&(Je=1);var Ct=_e.select("text");Je?ke&&Ct.style("display","none"):Ct.node().style.display!=="none"&&(Ct.style("display",null),kt==="bottom"||kt==="right"?st=Math.min(st,Ee?at.top:at.left):st=-1/0,kt==="top"||kt==="left"?dt=Math.max(dt,Ee?at.bottom:at.right):dt=1/0)}});for(var It in i._plots){var yt=i._plots[It];if(!(t._id!==yt.xaxis._id&&t._id!==yt.yaxis._id)){var de=Ee?yt.yaxis:yt.xaxis;de&&(de["_visibleLabelMin_"+t._id]=st,de["_visibleLabelMax_"+t._id]=dt)}}}},t._hideCounterAxisInsideTickLabels=function(pe){var ke=t._id.charAt(0)==="x",Ee=[];for(var Xe in i._plots){var lt=i._plots[Xe];t._id!==lt.xaxis._id&&t._id!==lt.yaxis._id||Ee.push(ke?lt.yaxis:lt.xaxis)}Ee.forEach(function(it,_t){it&&fg(it)&&(pe||[O5,V5,U5,FL,SL]).forEach(function(Ye){var kt=Ye.K==="tick"&&Ye.L==="text"&&t.ticklabelmode==="period",st=i._plots[t._mainSubplot],dt;if(Ye.K===O5.K){var It=s?st.zerolinelayerAbove:st.zerolinelayer;dt=It.selectAll("."+t._id+"zl")}else Ye.K===V5.K?dt=st.minorGridlayer.selectAll("."+t._id):Ye.K===U5.K?dt=st.gridlayer.selectAll("."+t._id):dt=st[t._id.charAt(0)+"axislayer"];dt.each(function(){var yt=Xl.select(this);Ye.L&&(yt=yt.selectAll(Ye.L)),yt.each(function(de){var ze=t.l2p(kt?H5(de):de.x)+t._offset,_e=Xl.select(this);zet["_visibleLabelMin_"+it._id]?_e.style("display","none"):Ye.K==="tick"&&!_t&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},M(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var E=null;function L(){if(M(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){E=t.autotickangles[0];var pe=0,ke=[],Ee,Xe=1;_.each(function(Zt){pe=Math.max(pe,Zt.fontSize);var Yt=t.l2p(Zt.x),Be=G5(this),ut=ol.bBox(Be.node());Xe=Math.max(Xe,kd.lineCount(Be)),ke.push({top:0,bottom:10,height:10,left:Yt-ut.width/2,right:Yt+ut.width/2+2,width:ut.width+2})});var lt=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,it=f.length,_t=Math.abs((f[it-1].x-f[0].x)*t._m)/(it-1),Ye=lt?_t/2:_t,kt=lt?t.ticklen:pe*1.25*Xe,st=Math.sqrt(Math.pow(Ye,2)+Math.pow(kt,2)),dt=Ye/st,It=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),yt=It.find(function(Zt){return Math.abs(Math.cos(Zt))<=dt});yt===void 0&&(yt=It.reduce(function(Zt,Yt){return Math.abs(Math.cos(Zt))Se*Te&&(oe=Te,J[W]=ee[W]=fe[W])}var Me=Math.abs(oe-ie);Me-N>0?(Me-=N,N*=1+N/Me):N=0,t._id.charAt(0)!=="y"&&(N=-N),J[V]=q.p2r(q.r2p(ee[V])+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 fre(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(og.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 RL(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*lg):r?t*(r+1)*lg:t}function cre(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(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*(ig+f*lg));else{var h=fg(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,Lte.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)&&(GL(t,0)||!hre(e,t,r,i)||vre(e,t))};$t.clipEnds=function(e,t){return t.filter(function(r){return GL(e,r.x)})};function GL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=Fte:/%L/.test(t)?e>=Rte:/%[SX]/.test(t)?e>=k2:/%M/.test(t)?e>=sg:/%[HI]/.test(t)?e>=If:/%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=me((q1e,XL)=>{"use strict";XL.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 f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var K5=me((N1e,JL)=>{"use strict";var _re=jL();JL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(_re(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var QL=me((B1e,KL)=>{var xre={left:0,top:0};KL.exports=bre;function bre(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=wre(t);return r[0]=i-s.left,r[1]=a-s.top,r}function wre(e){return e===window||e===document||e===document.body?xre:e.getBoundingClientRect()}});var Q5=me((O1e,$L)=>{"use strict";var Tre=Sw();function Are(){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}$L.exports=Tre&&Are()});var tD=me((U1e,eD)=>{"use strict";eD.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var iD=me((V1e,aD)=>{"use strict";var rD=Bt(),Mre=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];aD.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=rD.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=rD.constrain(Math.floor(r*3),0,2),Mre[r][t]}});var oD=me((H1e,nD)=>{"use strict";var Sre=Yy(),kre=z_(),Cre=Ny().getGraphDiv,Ere=Iy(),$5=nD.exports={};$5.wrapped=function(e,t,r){e=Cre(e),e._fullLayout&&kre.clear(e._fullLayout._uid+Ere.HOVERID),$5.raw(e,t,r)};$5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Sre.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=me((G1e,fD)=>{"use strict";var Lre=QL(),e4=Cw(),Dre=Q5(),Pre=Bt().removeElement,zre=eo(),Ld=fD.exports={};Ld.align=tD();Ld.getCursor=iD();var lD=oD();Ld.unhover=lD.wrapped;Ld.unhoverRaw=lD.raw;Ld.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,M;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=L,Dre?(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 uD(){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=uD;function sD(e){return Lre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Wh=me((Z1e,cD)=>{"use strict";cD.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 dD=me((Y1e,vD)=>{"use strict";var t4=Wh(),cg="data-savedcursor",hD="!!";vD.exports=function(t,r){var i=t.attr(cg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var r4=qo(),Ire=Sf();pD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Ire.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r4({editType:"legend"}),grouptitlefont:r4({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:r4({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var vg=me(hg=>{"use strict";hg.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};hg.isVertical=function(t){return t.orientation!=="h"};hg.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};hg.getId=function(t){return t._id||"legend"}});var n4=me((j1e,mD)=>{"use strict";var z2=sa(),ll=Bt(),Rre=Ii(),Fre=ys(),qre=a4(),Nre=M0(),i4=vg();function Bre(e,t,r,i,a){var s=t[e]||{},l=Rre.newContainer(r,e);function f(pe,ke){return ll.coerce(s,l,qre,pe,ke)}var h=ll.coerceFont(f,"font",r.font);f("bgcolor",r.paper_bgcolor),f("bordercolor");var v=f("visible");if(!v)return;var m,_=function(pe,ke){var Ee=m._input,Xe=m;return ll.coerce(Ee,Xe,Fre,pe,ke)},T=r.font||{},M=ll.coerceFont(f,"grouptitlefont",T,{overrideDflt:{size:Math.round(T.size*1.1)}}),C=0,E=!1,L="normal",I=(r.shapes||[]).filter(function(pe){return pe.showlegend});function O(pe){return z2.traceIs(pe,"pie-like")&&pe._length!=null&&(Array.isArray(pe.legend)||Array.isArray(pe.showlegend))}i.filter(O).forEach(function(pe){pe.visible&&C++;for(var ke=0;kepe.legend.length)for(var Xe=pe.legend.length;Xe(e==="legend"?1:0));if(H===!1&&(r[e]=void 0),!(H===!1&&!s.uirevision)&&(f("uirevision",r.uirevision),H!==!1)){f("borderwidth");var V=f("orientation"),W=f("yref"),J=f("xref"),ee=V==="h",ie=W==="paper",oe=J==="paper",fe,le,Te,Se="left";ee?(fe=0,z2.getComponentMethod("rangeslider","isVisible")(t.xaxis)?ie?(le=1.1,Te="bottom"):(le=1,Te="top"):ie?(le=-.1,Te="top"):(le=0,Te="bottom")):(le=1,Te="auto",oe?fe=1.02:(fe=1,Se="right")),ll.coerce(s,l,{x:{valType:"number",editType:"legend",min:oe?-2:0,max:oe?3:1,dflt:fe}},"x"),ll.coerce(s,l,{y:{valType:"number",editType:"legend",min:ie?-2:0,max:ie?3:1,dflt:le}},"y"),f("traceorder",L),i4.isGrouped(r[e])&&f("tracegroupgap"),f("entrywidth"),f("entrywidthmode"),f("indentation"),f("itemsizing"),f("itemwidth"),f("itemclick"),f("itemdoubleclick"),f("groupclick"),f("xanchor",Se),f("yanchor",Te),f("maxheight"),f("valign"),ll.noneOrAll(s,l,["x","y"]);var Me=f("title.text");if(Me){f("title.side",ee?"left":"top");var Ae=ll.extendFlat({},h,{size:ll.bigFont(h.size)});ll.coerceFont(f,"title.font",Ae);let pe=a>1;f("titleclick",pe?"toggle":!1),f("titledoubleclick",pe?"toggleothers":!1)}}}mD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var Xh=sa(),o4=Bt(),Ore=o4.pushUnique,Ure=vg(),yD=!0;s4.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 f=i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&yD&&r.data&&r._context.showTips&&(o4.notifier(o4._(r,"Double-click on legend to isolate one trace"),"long"),yD=!1);var h=f==="togglegroup",v=s.hiddenlabels?s.hiddenlabels.slice():[],m=r._fullData,_=(s.shapes||[]).filter(function(wt){return wt.showlegend}),T=m.concat(_),M=l.trace;M._isShape&&(M=M._fullInput);var C=M.legendgroup,E,L,I,O,q,z,N={},H=[],V=[],W=[];function J(wt,xt){var qt=H.indexOf(wt),Ut=N.visible;return Ut||(Ut=N.visible=[]),H.indexOf(wt)===-1&&(H.push(wt),qt=H.length-1),Ut[qt]=xt,qt}var ee=(s.shapes||[]).map(function(wt){return wt._input}),ie=!1;function oe(wt,xt){ee[wt].visible=xt,ie=!0}function fe(wt,xt){if(!(l.groupTitle&&!h)){var qt=wt._fullInput||wt,Ut=qt._isShape,Dt=qt.index;Dt===void 0&&(Dt=qt._index);var Mt=qt.visible===!1?!1:xt;Ut?oe(Dt,Mt):J(Dt,Mt)}}var le=M.legend,Te=M._fullInput,Se=Te&&Te._isShape;if(!Se&&Xh.traceIs(M,"pie-like")){var Me=l.label,Ae=v.indexOf(Me);if(a==="toggle")Ae===-1?v.push(Me):v.splice(Ae,1);else if(a==="toggleothers"){var pe=Ae!==-1,ke=[];for(E=0;E{"use strict";gD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var bD=me((Q1e,xD)=>{"use strict";var _D=sa(),f4=vg();xD.exports=function(t,r,i){var a=r._inHover,s=f4.isGrouped(r),l=f4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,M,C;function E(pe,ke,Ee){if(r.visible!==!1&&!(i&&pe!==r._id))if(ke===""||!f4.isGrouped(r)){var Xe="~~i"+_;h.push(Xe),f[Xe]=[Ee],_++}else h.indexOf(ke)===-1?(h.push(ke),v=!0,f[ke]=[Ee]):f[ke].push(Ee)}for(M=0;Moe&&(ie=oe)}J[M][0]._groupMinRank=ie,J[M][0]._preGroupSort=M}var fe=function(pe,ke){return pe[0]._groupMinRank-ke[0]._groupMinRank||pe[0]._preGroupSort-ke[0]._preGroupSort},le=function(pe,ke){return pe.trace.legendrank-ke.trace.legendrank||pe._preSort-ke._preSort};for(J.forEach(function(pe,ke){pe[0]._preGroupSort=ke}),J.sort(fe),M=0;M{"use strict";var I2=Bt();function wD(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=wD((t*100).toPrecision(3));return I2.numSeparate(i,r)+"%"};Dd.formatPieValue=function(t,r){var i=wD(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 Vre=xi(),Hre=Oa();TD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?Vre.pointStyle(t,i,a,r):Hre.fill(t,r.color)}});var CD=me((t_e,kD)=>{"use strict";var MD=Oa(),SD=c4().castOption,Gre=AD();kD.exports=function(t,r,i,a){var s=i.marker.line,l=SD(s.color,r.pts)||MD.defaultLine,f=SD(s.width,r.pts)||0;t.call(Gre,r,i,a).style("stroke-width",f).call(MD.stroke,l)}});var p4=me((r_e,ID)=>{"use strict";var is=ja(),h4=sa(),Oo=Bt(),ED=Oo.strTranslate,ul=xi(),Jl=Oa(),v4=Ef().extractOpts,R2=rs(),Zre=CD(),Yre=c4().castOption,Wre=u4(),LD=12,DD=5,Pd=2,Xre=10,J0=5;ID.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+Wre.itemGap*2)/2,h=ED(f,0),v=function(V,W,J,ee){var ie;if(V+1)ie=V;else if(W&&W.width>0)ie=W.width;else return 0;return s?ee:Math.min(ie,J)};t.each(function(V){var W=is.select(this),J=Oo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var ee=i.indentation,ie=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ie==="middle"&&ee===0||!oe||!fe)J.attr("transform",null);else{var le={top:1,bottom:-1}[ie],Te=le*(.5*(oe-fe+3))||0,Se=i.indentation;J.attr("transform",ED(Se,Te))}var Me=J.selectAll("g.legendfill").data([V]);Me.enter().append("g").classed("legendfill",!0);var Ae=J.selectAll("g.legendlines").data([V]);Ae.enter().append("g").classed("legendlines",!0);var pe=J.selectAll("g.legendsymbols").data([V]);pe.enter().append("g").classed("legendsymbols",!0),pe.selectAll("g.legendpoints").data([V]).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(V){var W=PD(V),J=W.showFill,ee=W.showLine,ie=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,le=W.anyLine,Te=V[0],Se=Te.trace,Me,Ae,pe=v4(Se),ke=pe.colorscale,Ee=pe.reversescale,Xe=function(dt){if(dt.size())if(J)ul.fillGroupStyle(dt,r,!0);else{var It="legendfill-"+Se.uid;ul.gradient(dt,r,It,d4(Ee),ke,"fill")}},lt=function(dt){if(dt.size()){var It="legendline-"+Se.uid;ul.lineGroupStyle(dt),ul.gradient(dt,r,It,d4(Ee),ke,"stroke")}},it=R2.hasMarkers(Se)||!fe?"M5,0":le?"M5,-2":"M5,-3",_t=is.select(this),Ye=_t.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(Ye.enter().append("path").classed("js-fill",!0),Ye.exit().remove(),Ye.attr("d",it+"h"+l+"v6h-"+l+"z").call(Xe),ee||ie){var kt=v(void 0,Se.line,Xre,DD);Ae=Oo.minExtend(Se,{line:{width:kt}}),Me=[Oo.minExtend(Te,{trace:Ae})]}var st=_t.select(".legendlines").selectAll("path").data(ee||ie?[Me]:[]);st.enter().append("path").classed("js-line",!0),st.exit().remove(),st.attr("d",it+(ie?"l"+l+",0.0001":"h"+l)).call(ee?ul.lineGroupStyle:lt)}function _(V){var W=PD(V),J=W.anyFill,ee=W.anyLine,ie=W.showLine,oe=W.showMarker,fe=V[0],le=fe.trace,Te=!oe&&!ee&&!J&&R2.hasText(le),Se,Me;function Ae(Ye,kt,st,dt){var It=Oo.nestedProperty(le,Ye).get(),yt=Oo.isArrayOrTypedArray(It)&&kt?kt(It):It;if(s&&yt&&dt!==void 0&&(yt=dt),st){if(ytst[1])return st[1]}return yt}function pe(Ye){return fe._distinct&&fe.index&&Ye[fe.index]?Ye[fe.index]:Ye[0]}if(oe||Te||ie){var ke={},Ee={};if(oe){ke.mc=Ae("marker.color",pe),ke.mx=Ae("marker.symbol",pe),ke.mo=Ae("marker.opacity",Oo.mean,[.2,1]),ke.mlc=Ae("marker.line.color",pe),ke.mlw=Ae("marker.line.width",Oo.mean,[0,5],Pd),ke.mld=le._isShape?"solid":Ae("marker.line.dash",pe),Ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Xe=Ae("marker.size",Oo.mean,[2,16],LD);ke.ms=Xe,Ee.marker.size=Xe}ie&&(Ee.line={width:Ae("line.width",pe,[0,10],DD)}),Te&&(ke.tx="Aa",ke.tp=Ae("textposition",pe),ke.ts=10,ke.tc=Ae("textfont.color",pe),ke.tf=Ae("textfont.family",pe),ke.tw=Ae("textfont.weight",pe),ke.ty=Ae("textfont.style",pe),ke.tv=Ae("textfont.variant",pe),ke.tC=Ae("textfont.textcase",pe),ke.tE=Ae("textfont.lineposition",pe),ke.tS=Ae("textfont.shadow",pe)),Se=[Oo.minExtend(fe,ke)],Me=Oo.minExtend(le,Ee),Me.selectedpoints=null,Me.texttemplate=null}var lt=is.select(this).select("g.legendpoints"),it=lt.selectAll("path.scatterpts").data(oe?Se:[]);it.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),it.exit().remove(),it.call(ul.pointStyle,Me,r),oe&&(Se[0].mrc=3);var _t=lt.selectAll("g.pointtext").data(Te?Se:[]);_t.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),_t.exit().remove(),_t.selectAll("text").call(ul.textPointStyle,Me,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var ee=V[0].trace[V[0].dir].marker;return V[0].mc=ee.color,V[0].mlw=ee.line.width,V[0].mlc=ee.line.color,E(V,this,"waterfall")}var ie=[];W.visible&&J&&(ie=V[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(fe){var le=is.select(this),Te=W[fe[0]].marker,Se=v(void 0,Te.line,J0,Pd);le.attr("d",fe[1]).style("stroke-width",Se+"px").call(Jl.fill,Te.color),Se&&le.call(Jl.stroke,Te.line.color)})}function M(V){E(V,this)}function C(V){E(V,this,"funnel")}function E(V,W,J){var ee=V[0].trace,ie=ee.marker||{},oe=ie.line||{},fe=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",le=J?ee.visible&&ee.type===J:h4.traceIs(ee,"bar"),Te=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(le?[V]:[]);Te.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Te.exit().remove(),Te.each(function(Se){var Me=is.select(this),Ae=Se[0],pe=v(Ae.mlw,ie.line,J0,Pd);Me.style("stroke-width",pe+"px");var ke=Ae.mcc;if(!i._inHover&&"mc"in Ae){var Ee=v4(ie),Xe=Ee.mid;Xe===void 0&&(Xe=(Ee.max+Ee.min)/2),ke=ul.tryColorscale(ie,"")(Xe)}var lt=ke||Ae.mc||ie.color,it=ie.pattern,_t=ul.getPatternAttr,Ye=it&&(_t(it.shape,0,"")||_t(it.path,0,""));if(Ye){var kt=_t(it.bgcolor,0,null),st=_t(it.fgcolor,0,null),dt=it.fgopacity,It=zD(it.size,8,10),yt=zD(it.solidity,.5,1),de="legend-"+ee.uid;Me.call(ul.pattern,"legend",r,de,Ye,It,yt,ke,it.fillmode,kt,st,dt)}else Me.call(Jl.fill,lt);pe&&Jl.stroke(Me,Ae.mlc||oe.color)})}function L(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&h4.traceIs(W,"box-violin")?[V]:[]);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?LD: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,J0,Pd);ee.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(ee,W.line.color)}})}function I(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);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),fe=W[ie?"increasing":"decreasing"],le=v(void 0,fe.line,J0,Pd);oe.style("stroke-width",le+"px").call(Jl.fill,fe.fillcolor),le&&Jl.stroke(oe,fe.line.color)})}function O(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);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),fe=W[ie?"increasing":"decreasing"],le=v(void 0,fe.line,J0,Pd);oe.style("fill","none").call(ul.dashLine,fe.line.dash,le),le&&Jl.stroke(oe,fe.line.color)})}function q(V){N(V,this,"pie")}function z(V){N(V,this,"funnelarea")}function N(V,W,J){var ee=V[0],ie=ee.trace,oe=J?ie.visible&&ie.type===J:h4.traceIs(ie,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var le=ie.marker||{},Te=v(Yre(le.line.width,ee.pts),le.line,J0,Pd),Se="pieLike",Me=Oo.minExtend(ie,{marker:{line:{width:Te}}},Se),Ae=Oo.minExtend(ee,{trace:Me},Se);Zre(fe,Ae,Me,r)}}function H(V){var W=V[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,fe){var le=is.select(this),Te=v4(W),Se=Te.colorscale,Me=Te.reversescale,Ae=function(Xe){if(Xe.size()){var lt="legendfill-"+W.uid;ul.gradient(Xe,r,lt,d4(Me,J==="radial"),Se,"fill")}},pe;if(Se){if(!J){var Ee=Se.length;pe=fe===0?Se[Me?Ee-1:0][1]:fe===1?Se[Me?0:Ee-1][1]:Se[Math.floor((Ee-1)/2)][1]}}else{var ke=W.vertexcolor||W.facecolor||W.color;pe=Oo.isArrayOrTypedArray(ke)?ke[fe]||ke[0]:ke}le.attr("d",oe[0]),pe?le.call(Jl.fill,pe):le.call(Ae)})}};function d4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function PD(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,f=!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")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function zD(e,t,r){return e&&Oo.isArrayOrTypedArray(e)?t:e>r?r:e}});var _4=me((a_e,HD)=>{"use strict";var gs=ja(),Dn=Bt(),y4=to(),zd=sa(),N2=Yy(),m4=jl(),Pn=xi(),dg=Oa(),Id=ro(),RD=l4().handleItemClick,FD=l4().handleTitleClick,Vn=u4(),g4=No(),UD=g4.LINE_SPACING,Q0=g4.FROM_TL,qD=g4.FROM_BR,ND=bD(),jre=p4(),$0=vg(),K0=1,Jre=/^legend[0-9]*$/;HD.exports=function(t,r){if(r)BD(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(Jre)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),y4.autoMargin(e,a);var E=Dn.ensureSingle(l,"g",a,function(W){f||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(dg.stroke,r.bordercolor).call(dg.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,K0),!f&&(r.titleclick||r.titledoubleclick)&&eae(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(dg.fill,Vn.scrollBarColor)}),H=O.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(Dn.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){let J=W[0],ee=J.trace;if(J.groupTitle){let ie=ee.legendgroup,oe=(i.shapes||[]).filter(function(le){return le.showlegend});return e._fullData.concat(oe).some(function(le){return le.legendgroup===ie&&(le.legend||"legend")===a&&le.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(Qre,e,r)}).call(jre,e,r).each(function(W){f||W[0].groupTitle&&r.groupclick==="toggleitem"||gs.select(this).call($re,e,a)}),Dn.syncOrAsync([y4.previousPromises,function(){return aae(e,H,V,r,O)},function(){var W=i._size,J=r.borderwidth,ee=r.xref==="paper",ie=r.yref==="paper";if(q.text){let Ue=(i.shapes||[]).filter(function(Je){return Je.showlegend}),at=e._fullData.concat(Ue).some(function(Je){let Ct=Je.legend||"legend";var wt=Array.isArray(Ct)?Ct.includes(a):Ct===a;return wt&&Je.visible===!0});z.style("opacity",at?1:.5)}if(!f){var oe,fe;ee?oe=W.l+W.w*r.x-Q0[B2(r)]*r._width:oe=i.width*r.x-Q0[B2(r)]*r._width,ie?fe=W.t+W.h*(1-r.y)-Q0[O2(r)]*r._effHeight:fe=i.height*(1-r.y)-Q0[O2(r)]*r._effHeight;var le=iae(e,a,oe,fe);if(le)return;if(i.margin.autoexpand){var Te=oe,Se=fe;oe=ee?Dn.constrain(oe,0,i.width-r._width):Te,fe=ie?Dn.constrain(fe,0,i.height-r._effHeight):Se,oe!==Te&&Dn.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Se&&Dn.log("Constrain "+a+".y to make legend fit inside graph")}Pn.setTranslate(E,oe,fe)}if(N.on(".drag",null),E.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Me=r._effHeight;f&&(Me=r._height),I.attr({width:r._width-J,height:Me-J,x:J/2,y:J/2}),Pn.setTranslate(O,0,0),L.select("rect").attr({width:r._width-2*J,height:Me-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),pe=r._effHeight-Ae-2*Vn.scrollBarMargin,ke=r._height-r._effHeight,Ee=pe/ke,Xe=Math.min(r._scrollY||0,ke);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),It(Xe,Ae,Ee),E.on("wheel",function(){Xe=Dn.constrain(r._scrollY+gs.event.deltaY/ke*pe,0,ke),It(Xe,Ae,Ee),Xe!==0&&Xe!==ke&&gs.event.preventDefault()});var lt,it,_t,Ye=function(Ue,at,Je){var Ct=(Je-at)/Ee+Ue;return Dn.constrain(Ct,0,ke)},kt=function(Ue,at,Je){var Ct=(at-Je)/Ee+Ue;return Dn.constrain(Ct,0,ke)},st=gs.behavior.drag().on("dragstart",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchstart"?lt=Ue.changedTouches[0].clientY:lt=Ue.clientY,_t=Xe}).on("drag",function(){var Ue=gs.event.sourceEvent;Ue.buttons===2||Ue.ctrlKey||(Ue.type==="touchmove"?it=Ue.changedTouches[0].clientY:it=Ue.clientY,Xe=Ye(_t,lt,it),It(Xe,Ae,Ee))});N.call(st);var dt=gs.behavior.drag().on("dragstart",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchstart"&&(lt=Ue.changedTouches[0].clientY,_t=Xe)}).on("drag",function(){var Ue=gs.event.sourceEvent;Ue.type==="touchmove"&&(it=Ue.changedTouches[0].clientY,Xe=kt(_t,lt,it),It(Xe,Ae,Ee))});O.call(dt)}function It(Ue,at,Je){r._scrollY=e._fullLayout[a]._scrollY=Ue,Pn.setTranslate(O,0,-Ue),Pn.setRect(N,r._width,Vn.scrollBarMargin+Ue*Je,Vn.scrollBarWidth,at),L.select("rect").attr("y",J+Ue)}if(e._context.edits.legendPosition){var yt,de,ze,_e;E.classed("cursor-move",!0),m4.init({element:E.node(),gd:e,prepFn:function(Ue){if(Ue.target!==N.node()){var at=Pn.getTranslate(E);ze=at.x,_e=at.y}},moveFn:function(Ue,at){if(ze!==void 0&&_e!==void 0){var Je=ze+Ue,Ct=_e+at;Pn.setTranslate(E,Je,Ct),yt=m4.align(Je,r._width,W.l,W.l+W.w,r.xanchor),de=m4.align(Ct+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(yt!==void 0&&de!==void 0){var Ue={};Ue[a+".x"]=yt,Ue[a+".y"]=de,zd.call("_guiRelayout",e,Ue)}},clickFn:function(Ue,at){var Je=l.selectAll("g.traces").filter(function(){var Ct=this.getBoundingClientRect();return at.clientX>=Ct.left&&at.clientX<=Ct.right&&at.clientY>=Ct.top&&at.clientY<=Ct.bottom});Je.size()>0&&VD(e,r,Je,Ue,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 VD(e,t,r,i,a){var s=e._fullLayout,l=r.data()[0][0].trace,f=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&&f&&RD(r,e,t,f)},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&&RD(r,e,t,h)}}function Qre(e,t,r){var i=$0.getId(r),a=e.data()[0][0],s=a.trace,l=zd.traceIs(s,"pie-like"),f=!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(f?OD(v,h):v);var T=r.indentation+r.itemwidth+Vn.itemGap*2;Id.positionText(_,T,0),f?_.call(Id.makeEditable,{gd:t,text:v}).call(q2,e,t,r).on("edit",function(M){this.text(OD(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 OD(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 $re(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Dn.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(dg.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)),VD(t,f,e,s,gs.event)}}))}function eae(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,f=1;let h=Dn.ensureSingle(e,"rect",i+"titletoggle",function(v){t._context.staticPlot||v.style("cursor","pointer").attr("pointer-events","all"),v.call(dg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(h.on("mousedown",function(){l=new Date().getTime(),l-t._legendMouseDownTimes&&(f=Math.max(f-1,1));let v={event:gs.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(f===1&&r.titleclick){if(N2.triggerHandler(t,"plotly_legendtitleclick",v)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&FD(t,r,r.titleclick)},s)}else f===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,N2.triggerHandler(t,"plotly_legendtitledoubleclick",v)!==!1&&r.titledoubleclick&&FD(t,r,r.titledoubleclick))}))}function q2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Id.convertToTspans(e,r,function(){tae(t,r,i,a)})}function tae(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]"),f=l.node(),h=$0.getId(r);r||(r=t._fullLayout[h]);var v=r.borderwidth,m;i===K0?m=r.title.font:a.groupTitle?m=a.groupTitle.font:m=r.font;var _=m.size*UD,T,M;if(f){var C=Pn.bBox(f);T=C.height,M=C.width,i===K0?Pn.setTranslate(l,v,v+T*.75):Pn.setTranslate(l,0,T*.25)}else{var E="."+h+(i===K0?"title":"")+"text",L=e.select(E),I=Id.lineCount(L),O=L.node();if(T=_*I,M=O?Pn.bBox(O).width:0,i===K0)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===K0?(r._titleWidth=M,r._titleHeight=T):(a.lineHeight=_,a.height=Math.max(T,16)+3,a.width=M)}function rae(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 aae(e,t,r,i,a){var s=e._fullLayout,l=$0.getId(i);i||(i=s[l]);var f=s._size,h=$0.isVertical(i),v=$0.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:V}=i,W=I||O||N!=="v"||H!=="paper";V||(V=W?.5:1);let J=W?s.height:f.h;i._maxHeight=Math.max(V>1?V:V*J,30);var ee=0;i._width=0,i._height=0;var ie=rae(i);if(h)r.each(function(Ue){var at=Ue[0].height;Pn.setTranslate(this,_+ie[0],_+ie[1]+i._height+at/2+M),i._height+=at,i._width=Math.max(i._width,Ue[0].width)}),ee=C+i._width,i._width+=M+C+T,i._height+=E,v&&(t.each(function(Ue,at){Pn.setTranslate(this,0,at*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var oe=B2(i),fe=i.x<0||i.x===0&&oe==="right",le=i.x>1||i.x===1&&oe==="left",Te=O||I,Se=s.width/2;i._maxWidth=Math.max(fe?Te&&oe==="left"?f.l+f.w:Se:le?Te&&oe==="right"?f.r+f.w:Se:f.w,2*C);var Me=0,Ae=0;r.each(function(Ue){var at=F2(Ue,i,C);Me=Math.max(Me,at),Ae+=at}),ee=null;var pe=0;if(v){var ke=0,Ee=0,Xe=0;t.each(function(){var Ue=0,at=0;gs.select(this).selectAll("g.traces").each(function(Ct){var wt=F2(Ct,i,C),xt=Ct[0].height;Pn.setTranslate(this,ie[0],ie[1]+_+M+xt/2+at),at+=xt,Ue=Math.max(Ue,wt),z[Ct[0].trace.legendgroup]=Ue});var Je=Ue+M;Ee>0&&Je+_+Ee>i._maxWidth?(pe=Math.max(pe,Ee),Ee=0,Xe+=ke+q,ke=at):ke=Math.max(ke,at),Pn.setTranslate(this,Ee,Xe),Ee+=Je}),i._width=Math.max(pe,Ee)+_,i._height=Xe+ke+E}else{var lt=r.size(),it=Ae+T+(lt-1)*M=i._maxWidth&&(pe=Math.max(pe,st),Ye=0,kt+=_t,i._height+=_t,_t=0),Pn.setTranslate(this,ie[0]+_+Ye,ie[1]+_+kt+at/2+M),st=Ye+Je+M,Ye+=Ct,_t=Math.max(_t,at)}),it?(i._width=Ye+T,i._height=_t+E):(i._width=Math.max(pe,st)+T,i._height+=_t+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 dt=e._context.edits,It=dt.legendText||dt.legendPosition;r.each(function(Ue){var at=gs.select(this).select("."+l+"toggle"),Je=Ue[0].height,Ct=Ue[0].trace.legendgroup,wt=F2(Ue,i,C);v&&Ct!==""&&(wt=z[Ct]);var xt=It?C:ee||wt;!h&&!m&&(xt+=M/2),Pn.setRect(at,0,-Je/2,xt,Je)});var yt=a.select("."+l+"titletext");yt.node()&&Kre(yt,i,_);var de=a.select("."+l+"titletoggle");if(de.size()&&yt.node()){var ze=yt.attr("x")||0,_e=Vn.titlePad;Pn.setRect(de,ze-_e,_,i._titleWidth+2*_e,i._titleHeight+2*_e)}}function iae(e,t,r,i){var a=e._fullLayout,s=a[t],l=B2(s),f=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 y4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*Q0[l],r:s._width*qD[l],b:s._effHeight*qD[f],t:s._effHeight*Q0[f]});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 T4=me(w4=>{"use strict";var Rd=ja(),Cc=Da(),GD=Mf(),cn=Bt(),nae=cn.pushUnique,x4=cn.strTranslate,oae=cn.strRotate,sae=Yy(),Kl=ro(),lae=dD(),Ff=xi(),io=Oa(),U2=jl(),qf=Xi(),uae=eo().zindexSeparator,tm=sa(),Ou=kc(),Fd=Iy(),fae=n4(),cae=_4(),QD=Fd.YANGLE,b4=Math.PI*QD/180,hae=1/Math.sin(b4),vae=Math.cos(b4),dae=Math.sin(b4),ji=Fd.HOVERARROWSIZE,Fa=Fd.HOVERTEXTPAD,ZD={box:!0,ohlc:!0,violin:!0,candlestick:!0},pae={scatter:!0,scattergl:!0,splom:!0};function YD(e,t){return e.distance-t.distance}w4.hover=function(t,r,i,a){t=cn.getGraphDiv(t);var s=r.target;cn.throttle(t._fullLayout._uid+Fd.HOVERID,Fd.HOVERMINTIME,function(){mae(t,r,i,a,s)})};w4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=aP(a),l=iP(a),f=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),V=Math.max(I,O),W=Math.min(q,z),J=Math.max(q,z),ee=L.trace;if(tm.traceIs(ee,"gl3d")){var ie=a._fullLayout[ee.scene]._scene.container,oe=ie.offsetLeft,fe=ie.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}N.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},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=eP(f,{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-_V[0]._length||_e<0||_e>W[0]._length)return U2.unhoverRaw(e,t)}if(t.pointerX=ze+V[0]._offset,t.pointerY=_e+W[0]._offset,"xval"in t?Se=Ou.flat(s,t.xval):Se=Ou.p2c(V,ze),"yval"in t?Me=Ou.flat(s,t.yval):Me=Ou.p2c(W,_e),!Cc(Se[0])||!Cc(Me[0]))return cn.warn("Fx.hover failed",t,e),U2.unhoverRaw(e,t)}var Je=1/0;function Ct(ir,oi){for(pe=0;pest&&(le.splice(0,st),Je=le[0].distance),_&&fe!==0&&le.length===0){kt.distance=fe,kt.index=!1;var se=Ee._module.hoverPoints(kt,_t,Ye,"closest",{hoverLayer:f._hoverlayer});if(se&&(se=se.filter(function(et){return et.spikeDistance<=fe})),se&&se.length){var te,ue=se.filter(function(et){return et.xa.showspikes&&et.xa.spikesnap!=="hovered data"});if(ue.length){var he=ue[0];Cc(he.x0)&&Cc(he.y0)&&(te=xt(he),(!dt.vLinePoint||dt.vLinePoint.spikeDistance>te.spikeDistance)&&(dt.vLinePoint=te))}var Le=se.filter(function(et){return et.ya.showspikes&&et.ya.spikesnap!=="hovered data"});if(Le.length){var Ne=Le[0];Cc(Ne.x0)&&Cc(Ne.y0)&&(te=xt(Ne),(!dt.hLinePoint||dt.hLinePoint.spikeDistance>te.spikeDistance)&&(dt.hLinePoint=te))}}}}}Ct();function wt(ir,oi,Sa){for(var la=null,Ci=1/0,ma,se=0;seir.trace.index===ht.trace.index):le=[ht];var pt=le.length,Ot=KD("x",ht,f),er=KD("y",ht,f);Ct(Ot,er);var Ht=[],Kt={},pr=0,yr=function(ir){var oi=ZD[ir.trace.type]?$D(ir):ir.trace.index;if(!Kt[oi])pr++,Kt[oi]=pr,Ht.push(ir);else{var Sa=Kt[oi]-1,la=Ht[Sa];Sa>0&&Math.abs(ir.distance)pt-1;ur--)yr(le[ur]);le=Ht,Mt()}var Lt=e._hoverdata,Fe=[],Ve=aP(e),bt=iP(e);for(let ir of le){var Tt=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 Ar=ir.x0+ir.xa._offset,Mr=ir.x1+ir.xa._offset,Gr=ir.y0+ir.ya._offset,pa=ir.y1+ir.ya._offset,Ca=Math.min(Ar,Mr),ii=Math.max(Ar,Mr),wi=Math.min(Gr,pa),vi=Math.max(Gr,pa);Tt.bbox={x0:Ca+bt,x1:ii+bt,y0:wi+Ve,y1:vi+Ve}}ir.eventData=[Tt],Fe.push(Tt)}e._hoverdata=Fe;var Fi=T==="y"&&(Te.length>1||le.length>1)||T==="closest"&&It&&le.length>1,Gi=io.combine(f.plot_bgcolor||io.background,f.paper_bgcolor),vn=eP(le,{gd:e,hovermode:T,rotateLabels:Fi,bgColor:Gi,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),nn=vn.hoverLabels;if(Ou.isUnifiedHover(T)||(gae(nn,Fi,f,vn.commonLabelBoundingBox),rP(nn,Fi,f._invScaleX,f._invScaleY)),a&&a.tagName){var Ki=tm.getComponentMethod("annotations","hasClickToShow")(e,Fe);lae(Rd.select(a),Ki?"pointer":"")}!a||i||!bae(e,t,Lt)||(Lt&&e.emit("plotly_unhover",{event:t,points:Lt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Se,yvals:Me}))}function $D(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 yae=/([\s\S]*)<\/extra>/;function eP(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=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",V=O[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-Ve&&(bt=i.width-Ve),ht.attr("d","M"+(ur-bt)+",0L"+(ur-bt+ji)+","+Fe+ji+"H"+Ve+"v"+Fe+(Fa*2+yr.height)+"H"+-Ve+"V"+Fe+ji+"H"+(ur-bt-ji)+"Z"),ur=bt,pe.minX=ur-Ve,pe.maxX=ur+Ve,q.side==="top"?(pe.minY=Lt-(Fa*2+yr.height),pe.maxY=Lt-Fa):(pe.minY=Lt+Fa,pe.maxY=Lt+(Fa*2+yr.height))}else{var Tt,mr,Ar;z.side==="right"?(Tt="start",mr=1,Ar="",ur=q._offset+q._length):(Tt="end",mr=-1,Ar="-",ur=q._offset),Lt=z._offset+(O.y0+O.y1)/2,pt.attr("text-anchor",Tt),ht.attr("d","M0,0L"+Ar+ji+","+ji+"V"+(Fa+yr.height/2)+"h"+Ar+(Fa*2+yr.width)+"V-"+(Fa+yr.height/2)+"H"+Ar+ji+"V-"+ji+"Z"),pe.minY=Lt-(Fa+yr.height/2),pe.maxY=Lt+(Fa+yr.height/2),z.side==="right"?(pe.minX=ur+ji,pe.maxX=ur+ji+(Fa*2+yr.width)):(pe.minX=ur-ji-(Fa*2+yr.width),pe.maxX=ur-ji);var Mr=yr.height/2,Gr=ee-yr.top-Mr,pa="clip"+i._uid+"commonlabel"+z._id,Ca;if(urht.hoverinfo!=="none");if(Et.length===0)return[];var ke=i.hoverlabel,Ee=ke.font,Xe=Et[0],lt=((a==="x unified"?Xe.xa:Xe.ya).unifiedhovertitle||{}).text,it=lt?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:lt}):V,_t={showlegend:!0,legend:{title:{text:it,font:Ee},font:Ee,bgcolor:ke.bgcolor,bordercolor:ke.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Ye={font:Ee};fae(_t,Ye,r._fullData);var kt=Ye.legend;kt.entries=[];for(var st=0;st=0?ut=Mt:Zt+at=0?ut=Zt:Yt+at=0?sr=Ut:Dt+Je=0?sr=Dt:Be+Je=0,(Et.idealAlign==="top"||!vi)&&Fi?(Ar-=Gr/2,Et.anchor="end"):vi?(Ar+=Gr/2,Et.anchor="start"):Et.anchor="middle",Et.crossPos=Ar;else{if(Et.pos=Ar,vi=mr+Mr/2+wi<=ie,Fi=mr-Mr/2-wi>=0,(Et.idealAlign==="left"||!vi)&&Fi)mr-=Mr/2,Et.anchor="end";else if(vi)mr+=Mr/2,Et.anchor="start";else{Et.anchor="middle";var Gi=wi/2,vn=mr+Gi-ie,nn=mr-Gi;vn>0&&(mr-=vn),nn<0&&(mr+=-nn)}Et.crossPos=mr}Lt.attr("text-anchor",Et.anchor),Ve&&Fe.attr("text-anchor",Et.anchor),ht.attr("transform",x4(mr,Ar)+(s?oae(QD):""))}),{hoverLabels:Pr,commonLabelBoundingBox:pe}}function WD(e,t,r,i,a,s){var _,T;var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=cn.templateString(e.name,e.trace._meta)),l=JD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=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"]),f=cn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:M,locale:i._d3locale,template:m}),f=f.replace(yae,(C,E)=>(l=JD(E,e.nameLength),""))}return[f,l]}function gae(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,M=i.minY,C=i.maxY,E=function(Se){return Se*r._invScaleX},L=function(Se){return Se*r._invScaleY};e.each(function(Se){var Me=Se[a],Ae=Se[s],pe=Me._id.charAt(0)==="x",ke=Me.range;m===0&&ke&&ke[0]>ke[1]!==pe&&(f=-1);var Ee=0,Xe=pe?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var lt=tP(Se,t),it=Se.anchor,_t=it==="end"?-1:1,Ye,kt;if(it==="middle")Ye=Se.crossPos+(pe?L(lt.y-Se.by/2):E(Se.bx/2+Se.tx2width/2)),kt=Ye+(pe?L(Se.by):E(Se.bx));else if(pe)Ye=Se.crossPos+L(ji+lt.y)-L(Se.by/2-ji),kt=Ye+L(Se.by);else{var st=E(_t*ji+lt.x),dt=st+E(_t*Se.bx);Ye=Se.crossPos+Math.min(st,dt),kt=Se.crossPos+Math.max(st,dt)}pe?M!==void 0&&C!==void 0&&Math.min(kt,C)-Math.max(Ye,M)>1&&(Ae.side==="left"?(Ee=Ae._mainLinePosition,Xe=r.width):Xe=Ae._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(kt,T)-Math.max(Ye,_)>1&&(Ae.side==="top"?(Ee=Ae._mainLinePosition,Xe=r.height):Xe=Ae._mainLinePosition)}v[m++]=[{datum:Se,traceIndex:Se.trace.index,dp:0,pos:Se.pos,posref:Se.posref,size:Se.by*(pe?hae:1)/2,pmin:Ee,pmax:Xe}]}),v.sort(function(Se,Me){return Se[0].posref-Me[0].posref||f*(Me[0].traceIndex-Se[0].traceIndex)});var I,O,q,z,N,H,V;function W(Se){var Me=Se[0],Ae=Se[Se.length-1];if(O=Me.pmin-Me.pos-Me.dp+Me.size,q=Ae.pos+Ae.dp+Ae.size-Me.pmax,O>.01){for(N=Se.length-1;N>=0;N--)Se[N].dp+=O;I=!1}if(!(q<.01)){if(O<-.01){for(N=Se.length-1;N>=0;N--)Se[N].dp-=q;I=!1}if(I){var pe=0;for(z=0;zMe.pmax&&pe++;for(z=Se.length-1;z>=0&&!(pe<=0);z--)H=Se[z],H.pos>Me.pmax-1&&(H.del=!0,pe--);for(z=0;z=0;N--)Se[N].dp-=q;for(z=Se.length-1;z>=0&&!(pe<=0);z--)H=Se[z],H.pos+H.dp+H.size>Me.pmax&&(H.del=!0,pe--)}}}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),V=0,N=J.length-1;N>=0;N--)V+=J[N].dp;for(q=V/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 fe=v[z];for(N=fe.length-1;N>=0;N--){var le=fe[N],Te=le.datum;Te.offset=le.dp,Te.del=le.del}}}function tP(e,t){var r=0,i=e.offset;return t&&(i*=-dae,r=e.offset*vae),{x:r,y:i}}function _ae(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Fa),i=r+t*(e.txwidth+Fa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Fa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function rP(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Rd.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=_ae(l),T=tP(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",f.select("path").attr("d",I);var O=M+_.textShiftX,q=C+l.ty0-l.by/2+Fa,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),O=E?-l.bx/2-l.tx2width/2+Fa:-l.bx-Fa):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),O=E?l.bx/2-l.tx2width/2-Fa:l.bx+Fa)),h.call(Kl.positionText,a(O),s(q)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Fa+M),s(C+l.ty0-l.by/2+Fa)),f.select("rect").call(Ff.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+M),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function xae(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Cc(T)&&T===0}var f=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=f(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:qf.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:qf.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=qf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+qf.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=qf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+qf.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 XD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=io.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){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=GD.readability(T.color,_)<1.5?io.contrast(_):T.color,I=m.spikemode,O=m.spikethickness,q=m.spikecolor||L,z=qf.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 V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),N=s.l+V*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":Ff.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 fe=GD.readability(J.color,_)<1.5?io.contrast(_):J.color,le=v.spikemode,Te=v.spikethickness,Se=v.spikecolor||fe,Me=qf.getPxPosition(e,v),Ae,pe;if(le.indexOf("toaxis")!==-1||le.indexOf("across")!==-1){if(le.indexOf("toaxis")!==-1&&(Ae=Me,pe=ie),le.indexOf("across")!==-1){var ke=v._counterDomainMin,Ee=v._counterDomainMax;v.anchor==="free"&&(ke=Math.min(ke,v.position),Ee=Math.max(Ee,v.position)),Ae=s.t+(1-Ee)*s.h,pe=s.t+(1-ke)*s.h}i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:pe,"stroke-width":Te,stroke:Se,"stroke-dasharray":Ff.dashStyle(v.spikedash,Te)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:pe,"stroke-width":Te+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}le.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:ee,cy:Me-(v.side!=="top"?Te:-Te),r:Te,fill:Se}).classed("spikeline",!0)}}}function bae(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 JD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wae(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;le.offsetTop+e.clientTop,iP=e=>e.offsetLeft+e.clientLeft;function em(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,s=i.top,l=a+i.width,f=s+i.height,h=cn.apply3DTransform(r._invTransform)(a,s),v=cn.apply3DTransform(r._invTransform)(l,f),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=me((n_e,nP)=>{"use strict";var Tae=Bt(),Aae=Oa(),Mae=kc().isUnifiedHover;nP.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&Mae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=Aae.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),Tae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var sP=me((o_e,oP)=>{"use strict";var Sae=Bt(),kae=V2(),Cae=x0();oP.exports=function(t,r){function i(a,s){return Sae.coerce(t,r,Cae,a,s)}kae(t,r,i)}});var fP=me((s_e,uP)=>{"use strict";var lP=Bt(),Eae=v_(),Lae=V2();uP.exports=function(t,r,i,a){function s(f,h){return lP.coerce(t,r,Eae,f,h)}var l=lP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),Lae(t,r,s,l)}});var A4=me((l_e,cP)=>{"use strict";var Dae=Bt(),Pae=x0();cP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:Dae.coerce(t,r,Pae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var dP=me((u_e,vP)=>{"use strict";var hP=Bt(),zae=x0(),Iae=A4(),Rae=V2();vP.exports=function(t,r){function i(m,_){return hP.coerce(t,r,zae,m,_)}var a=Iae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),Rae(t,r,i),hP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var yP=me((f_e,mP)=>{"use strict";var M4=Bt(),pP=sa();mP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return M4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var qae=sa(),Nae=T4().hover;gP.exports=function(t,r,i){var a=qae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&Nae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Nf=me((h_e,wP)=>{"use strict";var Bae=ja(),H2=Bt(),Oae=jl(),pg=kc(),xP=x0(),bP=T4();wP.exports={moduleType:"component",name:"fx",constants:Iy(),schema:{layout:xP},attributes:v_(),layoutAttributes:xP,supplyLayoutGlobalDefaults:sP(),supplyDefaults:fP(),supplyLayoutDefaults:dP(),calc:yP(),getDistanceFunction:pg.getDistanceFunction,getClosest:pg.getClosest,inbox:pg.inbox,quadrature:pg.quadrature,appendArrayPointValue:pg.appendArrayPointValue,castHoverOption:Vae,castHoverinfo:Hae,hover:bP.hover,unhover:Oae.unhover,loneHover:bP.loneHover,loneUnhover:Uae,click:_P()};function Uae(e){var t=H2.isD3Selection(e)?e:Bae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Vae(e,t,r){return H2.castOption(e,t,"hoverlabel."+r)}function Hae(e,t,r){function i(a){return H2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return H2.castOption(e,r,"hoverinfo",i)}});var qd=me(Ec=>{"use strict";Ec.selectMode=function(e){return e==="lasso"||e==="select"};Ec.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ec.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ec.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ec.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ec.selectingOrDrawing=function(e){return Ec.freeMode(e)||Ec.rectMode(e)}});var G2=me((d_e,TP)=>{"use strict";TP.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=me((p_e,AP)=>{"use strict";AP.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=me((m_e,MP)=>{"use strict";var Y2=32;MP.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=me((y_e,kP)=>{"use strict";var Gae=Bt().strTranslate;function SP(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 Zae(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 Yae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return SP(e,r[t])}}function Wae(e){return Gae(e.xaxis._offset,e.yaxis._offset)}kP.exports={p2r:SP,r2p:Zae,axValue:Yae,getTransform:Wae}});var jh=me(Lc=>{"use strict";var Xae=h5(),LP=W2(),rm=LP.CIRCLE_SIDES,S4=LP.SQRT2,DP=X2(),CP=DP.p2r,EP=DP.r2p,jae=[0,3,4,5,6,1,2],Jae=[0,3,4,1,2];Lc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var PP=jn(),qP=qd(),Kae=qP.drawMode,Qae=qP.openMode,am=W2(),zP=am.i000,IP=am.i090,RP=am.i180,FP=am.i270,$ae=am.cos45,eie=am.sin45,NP=X2(),J2=NP.p2r,Jh=NP.r2p,tie=Bh(),rie=tie.clearOutline,K2=jh(),aie=K2.readPaths,iie=K2.writePaths,nie=K2.ellipseOver,oie=K2.fixDatesForPaths;function sie(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(!Kae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var lie=qd(),uie=lie.selectMode,fie=Bh(),cie=fie.clearOutline,k4=jh(),hie=k4.readPaths,vie=k4.writePaths,die=k4.fixDatesForPaths;UP.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,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!uie(_)&&m!==void 0){var M=s._fullLayout._activeSelectionIndex;if(M{"use strict";VP.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=me(So=>{"use strict";var Bf=yg(),HP=Bt(),Kh=Xi();So.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};So.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};So.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};So.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};So.extractPathCoords=function(e,t,r){var i=[],a=e.match(Bf.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.slice(1).match(Bf.paramRE);if(!(!f||f.length{let f=l.charAt(0),h=a[f].drawn!==void 0;return s+(h?1:0)},0)};So.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 f=So.shapePositionToRange(t);l=function(h){var v=Dc(t,r);return t._offset+t.r2p(f(h,!0))+v},t.type==="date"&&(l=So.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};So.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,s;if(t)if(i==="domain")s=function(f){var h=(f-t._offset)/t._length;return r?1-h:h};else{var l=So.rangeToShapePosition(t);s=function(f){return l(t.p2r(f-t._offset))}}else r?s=function(f){return 1-(f-a.t)/a.h}:s=function(f){return(f-a.l)/a.w};return s};So.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};So.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}};So.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}};So.getPathString=function(e,t){let r=t.type,i=Kh.getRefType(t.xref),a=Kh.getRefType(t.yref),s=e._fullLayout._size;var l,f,h,v,m,_,T,M,C,E,L,I;function O(ee,ie,oe,fe){var le;if(ee)if(ie==="domain")fe?le=function(Te){return ee._offset+ee._length*(1-Te)}:le=function(Te){return ee._offset+ee._length*Te};else{let Te=So.shapePositionToRange(ee);le=function(Se){return ee._offset+ee.r2p(Te(Se,!0))},oe==="path"&&ee.type==="date"&&(le=So.decodeDate(le))}else fe?le=function(Te){return s.t+s.h*(1-Te)}:le=function(Te){return s.l+s.w*Te};return le}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=[],f=t.yref.map(function(ee){return Kh.getFromId(e,ee)}),M=t.yref.map(function(ee,ie){return O(f[ie],Kh.getRefType(ee),r,!0)})):(f=Kh.getFromId(e,t.yref),M=O(f,a,r,!0)),r==="path")return pie(t,T,M);if(i==="array")h=Dc(l[0],t.x0shift),v=Dc(l[1],t.x1shift),C=T[0](t.x0)+h,E=T[1](t.x1)+v;else if(h=Dc(l,t.x0shift),v=Dc(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=Dc(f[0],t.y0shift),_=Dc(f[1],t.y1shift),L=M[0](t.y0)+m,I=M[1](t.y1)+_;else if(m=Dc(f,t.y0shift),_=Dc(f,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),V="A"+N+","+H,W=q+N+","+z,J=q+","+(z-H);return"M"+W+V+" 0 1,1 "+J+V+" 0 0,1 "+W+"Z"};function pie(e,t,r){let i=e.path,a=e.xsizemode,s=e.ysizemode,l=e.xanchor,f=e.yanchor,h=Array.isArray(e.xref),v=Array.isArray(e.yref);var m=0,_=0;return i.replace(Bf.segmentRE,function(T){var M=0,C=T.charAt(0),E=Bf.paramIsX[C],L=Bf.paramIsY[C],I=Bf.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(Bf.paramRE,function(V){return E[M]?a==="pixel"?V=z(l)+Number(V):V=z(V):L[M]&&(s==="pixel"?V=N(f)-Number(V):V=N(V)),M++,M>I&&(V="X"),V});return M>I&&(H=H.replace(/[\s,]*X.*/,""),HP.log("Ignoring extra params in segment "+T)),O&&m++,q&&_++,C+H})}function Dc(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 L4=me((T_e,YP)=>{"use strict";var mie=Bt(),Of=Xi(),GP=ro(),ZP=xi(),yie=jh().readPaths,E4=Qh(),gie=E4.getPathString,gg=w_(),_ie=No().FROM_TL;YP.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 f=Of.getFromId(t,i.xref),h=Of.getFromId(t,i.yref);let Ee=Array.isArray(i.xref),Xe=Array.isArray(i.yref);for(var v in gg){var m=typeof gg[v]=="function",_=!Ee||gg.simpleXVariables.includes(v),T=!Xe||gg.simpleYVariables.includes(v);if(m&&_&&T){var M=gg[v](i,f,h);M!==void 0&&(l[v]=M)}}}s=mie.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 V=gie(t,i),W=yie(V,t);q=1/0,N=1/0,z=-1/0,H=-1/0;for(var J=0;J=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function bie(e,t,r,i,a,s,l){var f=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"){f==="start"?(L=e,I=t):f==="end"?(L=r,I=i):(L=(e+r)/2,I=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var wie=Bt(),Tie=wie.strTranslate,WP=jl(),JP=qd(),Aie=JP.drawMode,KP=JP.selectMode,QP=sa(),XP=Oa(),$2=W2(),Mie=$2.i000,Sie=$2.i090,kie=$2.i180,Cie=$2.i270,Eie=Bh(),$P=Eie.clearOutlineControllers,P4=jh(),_g=P4.pointsOnRectangle,D4=P4.pointsOnEllipse,Lie=P4.writePaths,Die=Q2().newShapes,Pie=Q2().createShapeObj,zie=C4(),Iie=L4();ez.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(D4(t[0])||_g(t[0])||i.hasText)&&f({redrawing:!0})}function f(Me){var Ae={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,Ae=Die(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,Ae=zie(r,i),s._fullLayout._reselect=!0),Object.keys(Ae).length&&QP.call((Me||{}).redrawing?"relayout":"_guiRelayout",s,Ae)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=Aie(m),T=KP(m);(_||T)&&(s._fullLayout._outlining=!0),$P(s),r.attr("d",Lie(t));var M,C,E,L,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=Rie([],t);var O=v.append("g").attr("class","outline-controllers");ee(O),Se()}if(_&&i.hasText){var q=v.select(".label-temp"),z=Pie(r,i,i.dragmode);Iie(s,"label-temp",z,q)}function N(Me){E=+Me.srcElement.getAttribute("data-i"),L=+Me.srcElement.getAttribute("data-j"),M[E][L].moveFn=H}function H(Me,Ae){if(t.length){var pe=I[E][L][1],ke=I[E][L][2],Ee=t[E],Xe=Ee.length;if(_g(Ee)){var lt=Me,it=Ae;if(i.isActiveSelection){var _t=jP(Ee,L);_t[1]===Ee[L][1]?it=0:lt=0}for(var Ye=0;Ye1&&!(Me.length===2&&Me[1][0]==="Z")&&(L===0&&(Me[0][0]="M"),t[E]=Me,l(),f())}}function J(Me,Ae){if(Me===2){E=+Ae.srcElement.getAttribute("data-i"),L=+Ae.srcElement.getAttribute("data-j");var pe=t[E];!_g(pe)&&!D4(pe)&&W()}}function ee(Me){M=[];for(var Ae=0;Ae{"use strict";var qie=ja(),nz=sa(),I4=Bt(),Nd=Xi(),Nie=jh().readPaths,Bie=ex(),rx=L4(),oz=Bh().clearOutlineControllers,z4=Oa(),ax=xi(),Oie=Ii().arrayEditor,tz=jl(),rz=Wh(),Bd=yg(),Us=Qh(),R4=Us.getPathString;uz.exports={draw:F4,drawOne:sz,eraseActiveShape:Gie,drawLabel:rx};function F4(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;aNd.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 Vie(e,t,r,i,a,s){var l=10,f=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,V,W,J,ee,ie,oe=qie.select(t.node().parentNode),fe=Nd.getFromId(e,r.xref),le=Nd.getRefType(r.xref),Te=Nd.getFromId(e,r.yref),Se=Nd.getRefType(r.yref),Me=r.x0shift,Ae=r.x1shift,pe=r.y0shift,ke=r.y1shift,Ee=function(wt,xt){var qt=Us.getDataToPixel(e,fe,xt,!1,le);return qt(wt)},Xe=function(wt,xt){var qt=Us.getDataToPixel(e,Te,xt,!0,Se);return qt(wt)},lt=Us.getPixelToData(e,fe,!1,le),it=Us.getPixelToData(e,Te,!0,Se),_t=st(),Ye={element:_t.node(),gd:e,prepFn:yt,doneFn:de,clickFn:ze},kt;tz.init(Ye),_t.node().onmousemove=It;function st(){return m?dt():t}function dt(){var wt=10,xt=Math.max(r.line.width,wt),qt=a.append("g").attr("data-index",i).attr("drag-helper",!0);qt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":xt,"stroke-opacity":"0"});var Ut={"fill-opacity":"0"},Dt=Math.max(xt/2,wt);return qt.append("circle").attr({"data-line-point":"start-point",cx:h?Ee(r.xanchor)+r.x0:Ee(r.x0,Me),cy:v?Xe(r.yanchor)-r.y0:Xe(r.y0,pe),r:Dt}).style(Ut).classed("cursor-grab",!0),qt.append("circle").attr({"data-line-point":"end-point",cx:h?Ee(r.xanchor)+r.x1:Ee(r.x1,Ae),cy:v?Xe(r.yanchor)-r.y1:Xe(r.y1,ke),r:Dt}).style(Ut).classed("cursor-grab",!0),qt}function It(wt){if(tx(e)){kt=null;return}if(m)wt.target.tagName==="path"?kt="move":kt=wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var xt=Ye.element.getBoundingClientRect(),qt=xt.right-xt.left,Ut=xt.bottom-xt.top,Dt=wt.clientX-xt.left,Mt=wt.clientY-xt.top,Zt=!_&&qt>l&&Ut>f&&!wt.shiftKey?tz.getCursor(Dt/qt,1-Mt/Ut):"move";rz(t,Zt),kt=Zt.split("-")[0]}}function yt(wt){tx(e)||(h&&(I=Ee(r.xanchor)),v&&(O=Xe(r.yanchor)),r.type==="path"?ie=r.path:(M=h?r.x0:Ee(r.x0),C=v?r.y0:Xe(r.y0),E=h?r.x1:Ee(r.x1),L=v?r.y1:Xe(r.y1)),ML?(q=C,V="y0",z=L,W="y1"):(q=L,V="y1",z=C,W="y0"),It(wt),at(a,r),Ct(t,r,e),Ye.moveFn=kt==="move"?_e:Ue,Ye.altKey=wt.altKey)}function de(){tx(e)||(rz(t),Je(a),lz(t,e,r),nz.call("_guiRelayout",e,s.getUpdateObj()))}function ze(){tx(e)||Je(a)}function _e(wt,xt){if(r.type==="path"){var qt=function(Mt){return Mt},Ut=qt,Dt=qt;h?T("xanchor",r.xanchor=lt(I+wt)):(Ut=function(Zt){return lt(Ee(Zt)+wt)},fe&&fe.type==="date"&&(Ut=Us.encodeDate(Ut))),v?T("yanchor",r.yanchor=it(O+xt)):(Dt=function(Zt){return it(Xe(Zt)+xt)},Te&&Te.type==="date"&&(Dt=Us.encodeDate(Dt))),T("path",r.path=az(ie,Ut,Dt))}else h?T("xanchor",r.xanchor=lt(I+wt)):(T("x0",r.x0=lt(M+wt)),T("x1",r.x1=lt(E+wt))),v?T("yanchor",r.yanchor=it(O+xt)):(T("y0",r.y0=it(C+xt)),T("y1",r.y1=it(L+xt)));t.attr("d",R4(e,r)),at(a,r),rx(e,i,r,oe)}function Ue(wt,xt){if(_){var qt=function(Kt){return Kt},Ut=qt,Dt=qt;h?T("xanchor",r.xanchor=lt(I+wt)):(Ut=function(pr){return lt(Ee(pr)+wt)},fe&&fe.type==="date"&&(Ut=Us.encodeDate(Ut))),v?T("yanchor",r.yanchor=it(O+xt)):(Dt=function(pr){return it(Xe(pr)+xt)},Te&&Te.type==="date"&&(Dt=Us.encodeDate(Dt))),T("path",r.path=az(ie,Ut,Dt))}else if(m){if(kt==="resize-over-start-point"){var Mt=M+wt,Zt=v?C-xt:C+xt;T("x0",r.x0=h?Mt:lt(Mt)),T("y0",r.y0=v?Zt:it(Zt))}else if(kt==="resize-over-end-point"){var Yt=E+wt,Be=v?L-xt:L+xt;T("x1",r.x1=h?Yt:lt(Yt)),T("y1",r.y1=v?Be:it(Be))}}else{var ut=function(Kt){return kt.indexOf(Kt)!==-1},sr=ut("n"),Pr=ut("s"),Et=ut("w"),ht=ut("e"),pt=sr?q+xt:q,Ot=Pr?z+xt:z,er=Et?N+wt:N,Ht=ht?H+wt:H;v&&(sr&&(pt=q-xt),Pr&&(Ot=z-xt)),(!v&&Ot-pt>f||v&&pt-Ot>f)&&(T(V,r[V]=v?pt:it(pt)),T(W,r[W]=v?Ot:it(Ot))),Ht-er>l&&(T(J,r[J]=h?er:lt(er)),T(ee,r[ee]=h?Ht:lt(Ht)))}t.attr("d",R4(e,r)),at(a,r),rx(e,i,r,oe)}function at(wt,xt){(h||v)&&qt();function qt(){var Ut=xt.type!=="path",Dt=wt.selectAll(".visual-cue").data([0]),Mt=1;Dt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mt}).classed("visual-cue",!0);var Zt=Ee(h?xt.xanchor:I4.midRange(Ut?[xt.x0,xt.x1]:Us.extractPathCoords(xt.path,Bd.paramIsX))),Yt=Xe(v?xt.yanchor:I4.midRange(Ut?[xt.y0,xt.y1]:Us.extractPathCoords(xt.path,Bd.paramIsY)));if(Zt=Us.roundPositionForSharpStrokeRendering(Zt,Mt),Yt=Us.roundPositionForSharpStrokeRendering(Yt,Mt),h&&v){var Be="M"+(Zt-1-Mt)+","+(Yt-1-Mt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dt.attr("d",Be)}else if(h){var ut="M"+(Zt-1-Mt)+","+(Yt-9-Mt)+"v18 h2 v-18 Z";Dt.attr("d",ut)}else{var sr="M"+(Zt-9-Mt)+","+(Yt-1-Mt)+"h18 v2 h-18 Z";Dt.attr("d",sr)}}}function Je(wt){wt.selectAll(".visual-cue").remove()}function Ct(wt,xt,qt){var Ut=xt.xref,Dt=xt.yref,Mt=Nd.getFromId(qt,Ut),Zt=Nd.getFromId(qt,Dt),Yt="";Ut!=="paper"&&!Mt.autorange&&(Yt+=Ut),Dt!=="paper"&&!Zt.autorange&&(Yt+=Dt),ax.setClipUrl(wt,Yt?"clip"+qt._fullLayout._uid+Yt:null,qt)}}function az(e,t,r){return e.replace(Bd.segmentRE,function(i){var a=0,s=i.charAt(0),l=Bd.paramIsX[s],f=Bd.paramIsY[s],h=Bd.numParams[s],v=i.slice(1).replace(Bd.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function Hie(e,t){if(ix(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){iz(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=iz,F4(e)}}}function iz(e){if(ix(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(oz(e),delete e._fullLayout._activeShapeIndex,F4(e))}}function Gie(e){if(ix(e)){oz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=sa(),fz=to(),cz=jn(),Ja=Z2(),Zie=nx().eraseActiveShape,ox=Bt(),za=ox._,Ka=gz.exports={};Ka.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?za(e,"Download plot as a PNG"):za(e,"Download plot")},icon:Ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};ox.notifier(za(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){ox.notifier(za(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){ox.notifier(za(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ka.sendDataToCloud={name:"sendDataToCloud",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.disk,click:function(e){fz.sendDataToCloud(e)}};Ka.editInChartStudio={name:"editInChartStudio",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.pencil,click:function(e){fz.sendDataToCloud(e)}};Ka.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return za(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ja.zoombox,click:ns};Ka.pan2d={name:"pan2d",_cat:"pan",title:function(e){return za(e,"Pan")},attr:"dragmode",val:"pan",icon:Ja.pan,click:ns};Ka.select2d={name:"select2d",_cat:"select",title:function(e){return za(e,"Box Select")},attr:"dragmode",val:"select",icon:Ja.selectbox,click:ns};Ka.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return za(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ja.lasso,click:ns};Ka.drawclosedpath={name:"drawclosedpath",title:function(e){return za(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ja.drawclosedpath,click:ns};Ka.drawopenpath={name:"drawopenpath",title:function(e){return za(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ja.drawopenpath,click:ns};Ka.drawline={name:"drawline",title:function(e){return za(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ja.drawline,click:ns};Ka.drawrect={name:"drawrect",title:function(e){return za(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ja.drawrect,click:ns};Ka.drawcircle={name:"drawcircle",title:function(e){return za(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ja.drawcircle,click:ns};Ka.eraseshape={name:"eraseshape",title:function(e){return za(e,"Erase active shape")},icon:Ja.eraseshape,click:Zie};Ka.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return za(e,"Zoom in")},attr:"zoom",val:"in",icon:Ja.zoom_plus,click:ns};Ka.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return za(e,"Zoom out")},attr:"zoom",val:"out",icon:Ja.zoom_minus,click:ns};Ka.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return za(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ja.autoscale,click:ns};Ka.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return za(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ja.home,click:ns};Ka.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return za(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:ns};Ka.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return za(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={},f=cz.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 _z=B4(),Xie=Object.keys(_z),xz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],bz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(xz),nm=[],jie=function(e){if(bz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();nm.indexOf(t)===-1&&nm.push(t),nm.indexOf(r)===-1&&nm.push(r)}};Xie.forEach(function(e){jie(_z[e])});nm.sort();wz.exports={DRAW_MODES:xz,backButtons:bz,foreButtons:nm}});var U4=me((E_e,Tz)=>{"use strict";var C_e=O4();Tz.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 Mz=me((L_e,Az)=>{"use strict";var Jie=Bt(),xg=Oa(),Kie=Ii(),Qie=U4();Az.exports=function(t,r){var i=t.modebar||{},a=Kie.newContainer(r,"modebar");function s(f,h){return Jie.coerce(i,a,Qie,f,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 Ez=me((D_e,Cz)=>{"use strict";var V4=ja(),$ie=Da(),lx=Bt(),Sz=Z2(),ene=r_().version,tne=new DOMParser;function kz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Uf=kz.prototype;Uf.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 f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||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(),lx.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Uf.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)})};Uf.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Uf.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(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&V4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||Sz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Uf.createIcon=function(e){var t=$ie(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=tne.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Uf.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",f=V4.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=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:lx.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Uf.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var ine=jn(),Lz=rs(),H4=sa(),nne=kc().isUnifiedHover,one=Ez(),ux=B4(),sne=O4().DRAW_MODES,lne=Bt().extendDeep;Dz.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=dne(s):!i.displayModeBar&&i.watermark?l=[]:l=une(t),a?a.update(t,l):r._modeBar=one(t,l)};function une(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(Ae,pe){if(typeof pe=="string"){if(pe.toLowerCase()===Ae.toLowerCase())return!0}else{var ke=pe.name,Ee=pe._cat||pe.name;if(ke===Ae||Ee===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 f=i.modeBarButtonsToAdd.concat(s.filter(function(Ae){for(var pe=0;pe1?(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"),(hne(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"]),cne(r)&&oe.push("select2d","lasso2d");var fe=[],le=function(Ae){fe.indexOf(Ae)===-1&&ee.indexOf(Ae)!==-1&&fe.push(Ae)};if(Array.isArray(f)){for(var Te=[],Se=0;Se{"use strict";zz.exports={moduleType:"component",name:"modebar",layoutAttributes:U4(),supplyLayoutDefaults:Mz(),manage:Pz()}});var Z4=me((I_e,Iz)=>{"use strict";var pne=No().FROM_BL;Iz.exports=function(t,r,i){i===void 0&&(i=pne[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=me(bg=>{"use strict";var Od=Bt(),Y4=ag(),Uu=jn().id2name,mne=Nu(),Rz=Z4(),yne=y2(),gne=Zi().ALMOST_EQUAL,_ne=No().FROM_BL;bg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,M,C;for(f=0;fs?r.slice(s):i.slice(a))+l}function bne(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lgne*C&&!O)){for(s=0;soe&&keee&&(ee=ke);var Xe=(ee-J)/(2*ie);_/=Xe,J=h.l2r(J),ee=h.l2r(ee),h.range=h._input.range=H{"use strict";var cx=ja(),os=sa(),fl=to(),$l=Bt(),j4=ro(),J4=G2(),Tg=Oa(),om=xi(),Bz=tg(),Gz=G4(),Ag=Xi(),Pc=No(),Zz=wg(),wne=Zz.enforce,Tne=Zz.clean,Oz=ag().doAutoRange,Yz="start",Ane="middle",Wz="end",Mne=eo().zindexSeparator;no.layoutStyles=function(e){return $l.syncOrAsync([fl.doAutoMargin,kne],e)};function Sne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function kne(e){var t=e._fullLayout,r=t._size,i=r.p,a=Ag.list(e,"",!0),s,l,f,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(om.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),no.drawMainTitle(e),Gz.manage(e),!t._has("cartesian"))return fl.previousPromises(e);function _(yt,de,ze){var _e=yt._lw/2;if(yt._id.charAt(0)==="x"){if(de){if(ze==="top")return de._offset-i-_e}else return r.t+r.h*(1-(yt.position||0))+_e%1;return de._offset+de._length+i+_e}if(de){if(ze==="right")return de._offset+de._length+i+_e}else return r.l+r.w*(yt.position||0)+_e%1;return de._offset-i-_e}for(s=0;s0){Dne(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Hz(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&&(_=-_),f.selectAll(".line").each(function(){var L=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",L)})}var T=cx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var M=f.node().getBBox(),C=M.y+M.height,E=C+Bz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:E,"text-anchor":i,dy:Hz(t.yanchor)}).call(j4.positionText,l,E)}}}};function Cne(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=Ene(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function Dne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&Cne(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),fl.allowAutoMargin(e,a),fl.autoMargin(e,a,f)}function Pne(e,t){var r=e.title,i=e._size,a=0;switch(t===Yz?a=r.pad.l:t===Wz&&(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 zne(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 Hz(e){return e==="top"?Pc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Pc.MID_SHIFT+"em"}function Ine(e){var t=e.title,r=Ane;return $l.isRightAnchor(t)?r=Wz:$l.isLeftAnchor(t)&&(r=Yz),r}function Rne(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 Fne=jh().readPaths,qne=ex(),Xz=Bh().clearOutlineControllers,K4=Oa(),jz=xi(),Nne=Ii().arrayEditor,Jz=Qh(),Bne=Jz.getPathString;Qz.exports={draw:vx,drawOne:Kz,activateLastSelection:Vne};function vx(e){var t=e._fullLayout;Xz(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(K4.stroke,_).call(K4.fill,m).call(jz.dashLine,L?"solid":M,L?4+T:T);if(One(I,e,i),C){var O=Nne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:O,isActiveSelection:!0},z=Fne(f,e);qne(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 Une(e,N)})}}function One(e,t,r){var i=r.xref+r.yref;jz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function Une(e,t){if(dx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Q4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Q4,vx(e)}}}function Vne(e){if(dx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Q4,vx(e)}}function Q4(e){if(dx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Xz(e),delete e._fullLayout._activeSelectionIndex,vx(e))}}});var eI=me((N_e,$z)=>{function Hne(){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}$z.exports=Hne});var rI=me((B_e,tI)=>{function Gne(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],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}tI.exports=Gne});var iI=me((O_e,aI)=>{var Zne={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}};aI.exports=Zne});var oI=me((U_e,nI)=>{var Mg=iI();function Yne(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 f(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 f(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,f(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,f(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,Se){var Me=Te.seg.start,Ae=Te.seg.end,pe=Se.seg.start,ke=Se.seg.end;return t.pointsCollinear(Me,pe,ke)?t.pointsCollinear(Ae,pe,ke)||t.pointAboveOrOnLine(Ae,pe,ke)?1:-1:t.pointAboveOrOnLine(Me,pe,ke)?1:-1}function O(Te){return L.findTransition(function(Se){var Me=I(Te,Se.ev);return Me>0})}function q(Te,Se){var Me=Te.seg,Ae=Se.seg,pe=Me.start,ke=Me.end,Ee=Ae.start,Xe=Ae.end;r&&r.checkIntersection(Me,Ae);var lt=t.linesIntersect(pe,ke,Ee,Xe);if(lt===!1){if(!t.pointsCollinear(pe,ke,Ee)||t.pointsSame(pe,Xe)||t.pointsSame(ke,Ee))return!1;var it=t.pointsSame(pe,Ee),_t=t.pointsSame(ke,Xe);if(it&&_t)return Se;var Ye=!it&&t.pointBetween(pe,Ee,Xe),kt=!_t&&t.pointBetween(ke,Ee,Xe);if(it)return kt?T(Se,ke):T(Te,Xe),Se;Ye&&(_t||(kt?T(Se,ke):T(Te,Xe)),T(Se,pe))}else lt.alongA===0&&(lt.alongB===-1?T(Te,Ee):lt.alongB===0?T(Te,lt.pt):lt.alongB===1&&T(Te,Xe)),lt.alongB===0&&(lt.alongA===-1?T(Se,pe):lt.alongA===0?T(Se,lt.pt):lt.alongA===1&&T(Se,ke));return!1}for(var z=[];!s.isEmpty();){var N=s.getHead();if(r&&r.vert(N.pt[0]),N.isStart){let Te=function(){if(V){var Se=q(N,V);if(Se)return Se}return W?q(N,W):!1};var le=Te;r&&r.segmentNew(N.seg,N.primary);var H=O(N),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(N.seg,V?V.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,V?V.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 fe=N.seg.myFill;N.seg.myFill=N.seg.otherFill,N.seg.otherFill=fe}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 Wne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){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 _(le,Te,Se){return m.index=le,m.matches_head=Te,m.matches_pt1=Se,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 Xne={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)}};uI.exports=Xne});var hI=me((G_e,cI)=>{var jne={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 f=l(s[0]),h=1;h{var Jne=eI(),Kne=rI(),vI=oI(),Qne=lI(),kg=fI(),dI=hI(),eu=!1,Cg=Kne(),Vs;Vs={buildLog:function(e){return e===!0?eu=Jne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return Cg.epsilon(e)},segments:function(e){var t=vI(!0,Cg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=vI(!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:Qne(e.segments,Cg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return dI.toPolygon(Vs,e)},polygonToGeoJSON:function(e){return dI.fromPolygon(Vs,Cg,e)},union:function(e,t){return Eg(e,t,Vs.selectUnion)},intersect:function(e,t){return Eg(e,t,Vs.selectIntersect)},difference:function(e,t){return Eg(e,t,Vs.selectDifference)},differenceRev:function(e,t){return Eg(e,t,Vs.selectDifferenceRev)},xor:function(e,t){return Eg(e,t,Vs.selectXor)}};function Eg(e,t,r){var i=Vs.segments(e),a=Vs.segments(t),s=Vs.combine(i,a),l=r(s);return Vs.polygon(l)}typeof window=="object"&&(window.PolyBool=Vs);pI.exports=Vs});var gI=me((Y_e,yI)=>{yI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!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&&(f=!f)}return f}});var yx=me((W_e,_I)=>{"use strict";var e6=__().dot,px=Zi().BADNUM,mx=_I.exports={};mx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||I===px||Il||E&&v(C))}function _(C,E){var L=C[0],I=C[1];if(L===px||La||I===px||Il)return!1;var O=r.length,q=r[0][0],z=r[0][1],N=0,H,V,W,J,ee;for(H=1;HMath.max(V,q)||I>Math.max(W,z)))if(If||Math.abs(e6(_,v))>a)return!0;return!1};mx.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 f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var bI=me((X_e,xI)=>{"use strict";xI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var HI=me((j_e,VI)=>{"use strict";var wI=mI(),$ne=gI(),Pg=sa(),eoe=xi().dashStyle,Lg=Oa(),toe=Nf(),roe=kc().makeEventData,qg=qd(),aoe=qg.freeMode,ioe=qg.rectMode,zg=qg.drawMode,i6=qg.openMode,n6=qg.selectMode,TI=Qh(),AI=yg(),EI=ex(),LI=Bh().clearOutline,DI=jh(),t6=DI.handleEllipse,noe=DI.readPaths,ooe=Q2().newShapes,soe=C4(),loe=$4().activateLastSelection,_x=Bt(),uoe=_x.sorterAsc,PI=yx(),Dg=z_(),tu=jn().getFromId,foe=G2(),coe=hx().redrawReglTraces,xx=bI(),Vf=xx.MINSELECT,hoe=PI.filter,o6=PI.tester,s6=X2(),MI=s6.p2r,voe=s6.axValue,doe=s6.getTransform;function l6(e){return e.subplot!==void 0}function poe(e,t,r,i,a){var s=!l6(i),l=aoe(a),f=ioe(a),h=i6(a),v=zg(a),m=n6(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=doe(q),N=t-O.left,H=r-O.top;E._calcInverseTransform(C);var V=_x.apply3DTransform(E._invTransform)(N,H);N=V[0],H=V[1];var W=E._invScaleX,J=E._invScaleY,ee=N,ie=H,oe="M"+N+","+H,fe=i.xaxes[0],le=i.yaxes[0],Te=fe._length,Se=le._length,Me=e.altKey&&!(zg(a)&&h),Ae,pe,ke,Ee,Xe,lt,it;II(e,C,i),l&&(Ae=hoe([[N,H]],xx.BENDPX));var _t=I.selectAll("path.select-outline-"+q.id).data([1]),Ye=v?E.newshape:E.newselection;v&&(i.hasText=Ye.label.text||Ye.label.texttemplate);var kt=v&&!h?Ye.fillcolor:"rgba(0,0,0,0)",st=Ye.line.color||(s?Lg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");_t.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?Ye.opacity/2:1,"stroke-dasharray":eoe(Ye.line.dash,Ye.line.width),"stroke-width":Ye.line.width+"px","shape-rendering":"crispEdges"}).call(Lg.stroke,st).call(Lg.fill,kt).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var dt=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 It=I.select(".label-temp");It.empty()&&(It=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var yt=E._uid+xx.SELECTID,de=[],ze=bx(C,i.xaxes,i.yaxes,i.subplot);L&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var Ue=fe._id,at=le._id;BI(C,Ue,at,ze);for(var Je=(C.layout||{}).selections||[],Ct=[],wt=!1,xt=0;xt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Je=E.clickmode;Dg.done(yt).then(function(){if(Dg.clear(yt),Ue===2){for(_t.remove(),Xe=0;Xe-1&&zI(at,C,i.xaxes,i.yaxes,i.subplot,i,_t),Je==="event"&&Fg(C,void 0);toe.click(C,at,q.id)}).catch(_x.error)}},i.doneFn=function(){dt.remove(),Dg.done(yt).then(function(){Dg.clear(yt),!L&&Ee&&i.selectionDefs&&(Ee.subtract=Me,i.selectionDefs.push(Ee),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,ke)),(L||v)&&Ig(i,L),i.doneFnCompleted&&i.doneFnCompleted(de),m&&Fg(C,it)}).catch(_x.error)}}function zI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,M,C,E,L,I,O,q,z,N;if(xoe(f)){II(e,t,s),T=bx(t,r,i,a);var H=boe(f,T),V=H.pointNumbers.length>0;if(V?woe(T,H):Toe(T)&&(O=kI(H))){for(l&&l.remove(),N=0;N=0}function _oe(e){return e._fullLayout._activeSelectionIndex>=0}function Ig(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;goe(a)&&a._fullLayout._deactivateShape(a),_oe(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=zg(r),h=n6(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=ooe(v,e)),m&&Pg.call("_guiRelayout",a,{shapes:m});var _;h&&!l6(e)&&(_=soe(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,Pg.call("_guiRelayout",a,{selections:_}).then(function(){t&&loe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function SI(e){return e._id}function bx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(SI),l=r.map(SI),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function woe(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 Ue=CI(e,!0);if(Ue.length){var at=Ue[0].xref,Je=Ue[0].yref;if(at&&Je){var Ct=OI(Ue),wt=UI([tu(e,at,"x"),tu(e,Je,"y")]);wt(de,Ct)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&Fg(e,de),T._reselect=!1}if(!l&&T._deselect){var xt=T._deselect;f=xt.xref,h=xt.yref,Soe(f,h,m)||BI(e,f,h,i),_e&&(de.points.length?Fg(e,de):c6(e)),T._deselect=!1}return{eventData:de,selectionTesters:r}}function Moe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";GI.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=me((K_e,ZI)=>{"use strict";ZI.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 sm=me(($_e,XI)=>{"use strict";var YI=h6(),WI=qo(),wx=eo(),Doe=Ii().templatedArray,Q_e=Ng();XI.exports=Doe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:WI({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:YI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:YI.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",wx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",wx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",wx.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",wx.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:WI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Tx=me((e2e,jI)=>{"use strict";jI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Ax=me((t2e,JI)=>{"use strict";JI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var zc=me((r2e,iR)=>{"use strict";var KI=Gw().axisHoverFormat,{hovertemplateAttrs:Poe,texttemplateAttrs:zoe,templatefallbackAttrs:QI}=kf(),$I=Sc(),Ioe=qo(),eR=gc().dash,Roe=gc().pattern,Foe=xi(),qoe=Tx(),Bg=yn().extendFlat,Noe=Ax();function tR(e){return{valType:"any",dflt:0,editType:"calc"}}function rR(e){return{valType:"any",editType:"calc"}}function aR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}iR.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:tR("x"),yperiod:tR("y"),xperiod0:rR("x0"),yperiod0:rR("y0"),xperiodalignment:aR("x"),yperiodalignment:aR("y"),xhoverformat:KI("x"),yhoverformat:KI("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:zoe(),texttemplatefallback:QI({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:Poe({},{keys:qoe.eventDataKeys}),hovertemplatefallback:QI(),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({},eR,{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:Noe(!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:Roe,marker:Bg({symbol:{valType:"enumerated",values:Foe.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({},eR,{arrayOk:!0}),editType:"calc"},$I("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"},$I("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:Ioe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var v6=me((i2e,sR)=>{"use strict";var nR=sm(),oR=zc().line,Boe=gc().dash,Mx=yn().extendFlat,Ooe=il().overrideAll,Uoe=Ii().templatedArray,a2e=Ng();sR.exports=Ooe(Uoe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Mx({},nR.xref,{}),yref:Mx({},nR.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:oR.color,width:Mx({},oR.width,{min:1,dflt:1}),dash:Mx({},Boe,{dflt:"dot"})}}),"arraydraw","from-root")});var cR=me((n2e,fR)=>{"use strict";var lR=Bt(),Sx=Xi(),Voe=Wl(),Hoe=v6(),uR=Qh();fR.exports=function(t,r){Voe(t,r,{name:"selections",handleItemDefaults:Goe});for(var i=r.selections,a=0;a{"use strict";hR.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=me((s2e,mR)=>{"use strict";var Zoe=sa(),dR=Bt(),pR=jn();mR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=Zoe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),M=0;M{"use strict";var yR=$4(),Ug=HI();gR.exports={moduleType:"component",name:"selections",layoutAttributes:v6(),supplyLayoutDefaults:cR(),supplyDrawNewSelectionDefaults:vR(),includeBasePlot:Og()("selections"),draw:yR.draw,drawOne:yR.drawOne,reselect:Ug.reselect,prepSelect:Ug.prepSelect,clearOutline:Ug.clearOutline,clearSelectionsCache:Ug.clearSelectionsCache,selectOnClick:Ug.selectOnClick}});var BR=me((u2e,NR)=>{"use strict";var g6=ja(),ru=Bt(),_R=ru.numberFormat,Yoe=Mf(),Woe=Q5(),kx=sa(),CR=ru.strTranslate,Xoe=ro(),xR=Oa(),ev=xi(),joe=Nf(),bR=Xi(),Joe=Wh(),Koe=jl(),ER=qd(),Cx=ER.selectingOrDrawing,Qoe=ER.freeMode,$oe=No().FROM_TL,ese=G2(),tse=hx().redrawReglTraces,rse=to(),p6=jn().getFromId,ase=Hf().prepSelect,ise=Hf().clearOutline,nse=Hf().selectOnClick,d6=Z4(),_6=eo(),wR=_6.MINDRAG,_s=_6.MINZOOM,TR=!0;function ose(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,M,C,E,L,I,O,q,z,N,H,V,W,J,ee,ie,oe,fe,le,Te,Se,Me;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&&f)for(var ht=t.overlays,pt=0;pt=0){Ot._fullLayout._deactivateShape(Ot);return}var er=Ot._fullLayout.clickmode;if(y6(Ot),ht===2&&!m&&Yt(),v)er.indexOf("select")>-1&&nse(pt,Ot,E,L,t.id,Ee),er.indexOf("event")>-1&&joe.click(Ot,pt,t.id);else if(ht===1&&m){var Ht=l?T:_,Kt=l==="s"||f==="w"?0:1,pr=Ht._name+".range["+Kt+"]",yr=sse(Ht,Kt),ur="left",Lt="middle";if(Ht.fixedrange)return;l?(Lt=l==="n"?"top":"bottom",Ht.side==="right"&&(ur="right")):f==="e"&&(ur="right"),Ot._context.showAxisRangeEntryBoxes&&g6.select(ke).call(Xoe.makeEditable,{gd:Ot,immediate:!0,background:Ot._fullLayout.paper_bgcolor,text:String(yr),fill:Ht.tickfont?Ht.tickfont.color:"#444",horizontalAlign:ur,verticalAlign:Lt}).on("edit",function(Fe){var Ve=Ht.d2r(Fe);Ve!==void 0&&kx.call("_guiRelayout",Ot,pr,Ve)})}}Koe.init(Ee);var it,_t,Ye,kt,st,dt,It,yt,de,ze;function _e(ht,pt,Ot){var er=ke.getBoundingClientRect();it=pt-er.left,_t=Ot-er.top,e._fullLayout._calcInverseTransform(e);var Ht=ru.apply3DTransform(e._fullLayout._invTransform)(it,_t);it=Ht[0],_t=Ht[1],Ye={l:it,r:it,w:0,t:_t,b:_t,h:0},kt=e._hmpixcount?e._hmlumcount/e._hmpixcount:Yoe(e._fullLayout.plot_bgcolor).getLuminance(),st="M0,0H"+q+"V"+z+"H0V0",dt=!1,It="xy",ze=!1,yt=PR(h,kt,I,O,st),de=zR(h,I,O)}function Ue(ht,pt){if(e._transitioningWithDuration)return!1;var Ot=Math.max(0,Math.min(q,Se*ht+it)),er=Math.max(0,Math.min(z,Me*pt+_t)),Ht=Math.abs(Ot-it),Kt=Math.abs(er-_t);Ye.l=Math.min(it,Ot),Ye.r=Math.max(it,Ot),Ye.t=Math.min(_t,er),Ye.b=Math.max(_t,er);function pr(){It="",Ye.r=Ye.l,Ye.t=Ye.b,de.attr("d","M0,0Z")}if(N.isSubplotConstrained)Ht>_s||Kt>_s?(It="xy",Ht/q>Kt/z?(Kt=Ht*z/q,_t>er?Ye.t=_t-Kt:Ye.b=_t+Kt):(Ht=Kt*q/z,it>Ot?Ye.l=it-Ht:Ye.r=it+Ht),de.attr("d",Ex(Ye))):pr();else if(H.isSubplotConstrained)if(Ht>_s||Kt>_s){It="xy";var yr=Math.min(Ye.l/q,(z-Ye.b)/z),ur=Math.max(Ye.r/q,(z-Ye.t)/z);Ye.l=yr*q,Ye.r=ur*q,Ye.b=(1-yr)*z,Ye.t=(1-ur)*z,de.attr("d",Ex(Ye))}else pr();else!W||Kt0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(pr.maxallowed!==void 0&&ee===(pr.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 use(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function PR(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",CR(r,i)).attr("d",a+"Z")}function zR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:xR.background,stroke:xR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",CR(t,r)).attr("d","M0,0Z")}function IR(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"),RR(e,t,a,s)}function RR(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 y6(e){g6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function FR(e){TR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),TR=!1)}function fse(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 cse(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 Ex(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 SR(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,M=(a||{}).yaHash,C=0;C{"use strict";var hse=ja(),Lx=Nf(),vse=jl(),dse=Wh(),Vu=BR().makeDragBox,oo=eo().DRAGGERSIZE;Dx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){hse.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 f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Vu(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&Lx.hover(t,T,s)},Lx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,vse.unhover(t,T))},t._context.showAxisDragHandles&&(Vu(t,l,f._offset-oo,h._offset-oo,oo,oo,"n","w"),Vu(t,l,f._offset+f._length,h._offset-oo,oo,oo,"n","e"),Vu(t,l,f._offset-oo,h._offset+h._length,oo,oo,"s","w"),Vu(t,l,f._offset+f._length,h._offset+h._length,oo,oo,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=oo),Vu(t,l,f._offset+f._length*.1,m,f._length*.8,oo,"","ew"),Vu(t,l,f._offset,m,f._length*.1,oo,"","w"),Vu(t,l,f._offset+f._length*.9,m,f._length*.1,oo,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=oo),Vu(t,l,_,h._offset+h._length*.1,oo,h._length*.8,"ns",""),Vu(t,l,_,h._offset+h._length*.9,oo,h._length*.1,"s",""),Vu(t,l,_,h._offset,oo,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,Lx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,Lx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Dx.updateFx(t)}};Dx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";dse(t._draggers,r)}});var VR=me((c2e,UR)=>{"use strict";var OR=sa();UR.exports=function(t){for(var r=OR.layoutArrayContainers,i=OR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var pse=yc(),b6=g_(),Vg=Lh(),mse=pw().sorterAsc,w6=sa();Hg.containerArrayMatch=VR();var yse=Hg.isAddVal=function(t){return t==="add"||pse(t)},HR=Hg.isRemoveVal=function(t){return t===null||t==="remove"};Hg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=w6.getComponentMethod(l,"supplyLayoutDefaults"),h=w6.getComponentMethod(l,"draw"),v=w6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===b6||h===b6,_=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(HR(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:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(mse),E=r.get(),L=E||[],I=s(T,l).get(),O=[],q=-1,z=L.length,N,H,V,W,J,ee,ie,oe;for(N=0;NL.length-(ie?0:1)){Vg.warn("index out of range",l,V);continue}if(ee!==void 0)J.length>1&&Vg.warn("Insertion & removal are incompatible with edits to the same index.",l,V),HR(ee)?O.push(V):ie?(ee==="add"&&(ee={}),L.splice(V,0,ee),I&&I.splice(V,0,{})):Vg.warn("Unrecognized full object edit value",l,V,ee),q===-1&&(q=V);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(f(_,T),v!==b6){var fe;if(q===-1)fe=C;else{for(z=Math.max(L.length,z),fe=[],N=0;N=q));N++)fe.push(V);for(N=q;N{"use strict";var XR=Da(),jR=sa(),ss=Bt(),Gg=to(),JR=jn(),KR=Oa(),Zg=JR.cleanId,gse=JR.getFromTrace,T6=jR.traceIs,_se=["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,f=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"),KR.clean(e),e.template&&e.template.layout&&au.cleanLayout(e.template.layout),e};function lm(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=WR(t);r;){if(r in e)return!0;r=WR(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)?A6(a,s):!1))return!1}return!0}return!1};au.collectionsAreEqual=A6});var L6=me(Ha=>{"use strict";var Rx=ja(),wse=Da(),Tse=Cw(),br=Bt(),Bi=br.nestedProperty,k6=Yy(),xs=zk(),iu=sa(),Vx=F0(),ta=to(),ls=Xi(),Ase=K5(),Mse=Nu(),M6=xi(),Sse=Oa(),kse=x6().initInteractions,Cse=Oh(),Ese=Hf().clearOutline,aF=cd().dfltConfig,zx=GR(),zn=QR(),hi=hx(),tv=il(),Lse=eo().AX_NAME_PATTERN,S6=0,$R=5;function Dse(e,t,r,i){var a;if(e=br.getGraphDiv(e),k6.init(e),br.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=k6.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 f(){if(a)return Ha.addFrames(e,a)}nF(e,i),r||(r={}),Rx.select(e).classed("js-plotly-plot",!0),M6.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)),ta.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(ele(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),M6.initGradients(e),M6.initPatterns(e),h&&ls.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ta.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 oF(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]),qx(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&qx(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Fse(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=sF(e,t,r,i,a),l=Ha.redraw(e),f=[e,s.update,r,s.maxPoints];return xs.add(e,Ha.prependTraces,f,uF,arguments),l}function fF(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=lF(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=sF(e,t,r,i,a),l=Ha.redraw(e),f=[e,s.update,r,s.maxPoints];return xs.add(e,Ha.extendTraces,f,fF,arguments),l}function cF(e,t,r){e=br.getGraphDiv(e);var i=[],a=Ha.deleteTraces,s=cF,l=[e,i],f=[e,t],h,v;for(Fse(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],fe=W.parts[ie-1]+"."+oe,le=W.parts.slice(0,ie).join("."),Te=Bi(e.layout,le).get(),Se=Bi(i,le).get(),Me=W.get();if(J!==void 0){I[V]=J,O[V]=oe==="reverse"?J:Ic(Me);var Ae=Vx.getLayoutValObject(i,W.parts);if(Ae&&Ae.impliedEdits&&J!==null)for(var pe in Ae.impliedEdits)q(br.relativeAttr(V,pe),Ae.impliedEdits[pe]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var ke=V==="height"?"width":"height";q(ke,i[ke])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(pF))H(fe),Bi(i,le+"._inputRange").set(null);else if(fe.match(mF)){H(fe),Bi(i,le+"._inputRange").set(null);var Ee=Bi(i,le).get();Ee._inputDomain&&(Ee._input.domain=Ee._inputDomain.slice())}else fe.match(Ose)&&Bi(i,le+"._inputDomain").set(null);if(oe==="type"){N=Te;var Xe=Se.type==="linear"&&J==="log",lt=Se.type==="log"&&J==="linear";if(Xe||lt){if(!N||!N.range)q(le+".autorange",!0);else if(Se.autorange)Xe&&(N.range=N.range[1]>N.range[0]?[1,2]:[2,1]);else{var it=N.range[0],_t=N.range[1];Xe?(it<=0&&_t<=0&&q(le+".autorange",!0),it<=0?it=_t/1e6:_t<=0&&(_t=it/1e6),q(le+".range[0]",Math.log(it)/Math.LN10),q(le+".range[1]",Math.log(_t)/Math.LN10)):(q(le+".range[0]",Math.pow(10,it)),q(le+".range[1]",Math.pow(10,_t)))}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,Se,J,q),iu.getComponentMethod("images","convertCoords")(e,Se,J,q)}else q(le+".autorange",!0),q(le+".range",null);Bi(i,le+"._inputRange").set(null)}else if(oe.match(Lse)){var Ye=Bi(i,V).get(),kt=(J||{}).type;(!kt||kt==="-")&&(kt="linear"),iu.getComponentMethod("annotations","convertCoords")(e,Ye,kt,q),iu.getComponentMethod("images","convertCoords")(e,Ye,kt,q)}var st=zx.containerArrayMatch(V);if(st){m=st.array,_=st.index;var dt=st.property,It=Ae||{editType:"calc"};_!==""&&dt===""&&(zx.isAddVal(J)?O[V]=null:zx.isRemoveVal(J)?O[V]=(Bi(r,m).get()||[])[_]:br.warn("unrecognized full object value",t)),tv.update(L,It),v[m]||(v[m]={});var yt=v[m][_];yt||(yt=v[m][_]={}),yt[dt]=J,delete t[V]}else oe==="reverse"?(Te.range?Te.range.reverse():(q(le+".autorange",!0),Te.range=[1,0]),Se.autorange?L.calc=!0:L.plot=!0):(V==="dragmode"&&(J===!1&&Me!==!1||J!==!1&&Me===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Me==="lasso"||Me==="select")?L.plot=!0:Ae?tv.update(L,Ae):L.calc=!0,W.set(J))}}for(m in v){var de=zx.applyContainerArrayChanges(e,s(r,m),v[m],L,s);de||(L.plot=!0)}for(var ze in z){N=ls.getFromId(e,ze);var _e=N&&N._constraintGroup;if(_e){L.calc=!0;for(var Ue in _e)z[Ue]||(ls.getFromId(e,Ue)._constraintShrinkable=!0)}}(gF(e)||t.height||t.width)&&(L.plot=!0);var at=i.shapes;for(_=0;_1;)if(i.pop(),r=Bi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Hse(e,t){for(var r=0;r[le,e._ev.listeners(le)]);s=Ha.newPlot(e,t,r,i).then(()=>{for(let[le,Te]of fe)Te.forEach(Se=>e.on(le,Se));return Ha.react(e,t,r,i)})}else{e.data=t||[],zn.cleanData(e.data),e.layout=r||{},zn.cleanLayout(e.layout),Zse(e.data,e.layout,f,h),ta.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,T=e._fullLayout,M=T.datarevision===void 0,C=T.transition,E=Xse(e,h,T,M,C),L=E.newDataRevision,I=Wse(e,f,_,M,C,L);if(gF(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 Wse(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var f=tv.traceFlags();f.arrays={},f.nChanges=0,f.nChangesAnim=0;var h,v;function m(M){var C=Vx.getTraceValObject(v,M);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:f,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function f(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 fe=0;fei._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),V=!N&&!H&&br.isPlainObject(t);if(V)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 Jse(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,f=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=f.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&&S6<$R&&(S6++,br.warn('addFrames: overwriting frame "'+(h[M]||_[M]).name+'" with a frame whose name of type "number" also equates to "'+M+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),S6===$R&&br.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),_[T]={name:T},m.push({frame:ta.supplyFrameDefaults(t[i]),index:r&&r[i]!==void 0&&r[i]!==null?r[i]:v+i})}m.sort(function(V,W){return V.index>W.index?-1:V.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 f=ta.modifyFrames,h=ta.modifyFrames,v=[e,l],m=[e,s];return xs&&xs.add(e,f,v,h,m),ta.modifyFrames(e,s)}function Qse(e){e=br.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ta.cleanPlot([],{},r,t),ta.purge(e),k6.purge(e),t._container&&t._container.remove(),delete e._context,e}function $se(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 ele(e){var t=Rx.select(e),r=e._fullLayout;if(r._calcInverseTransform=$se,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={};Rx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=br.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(Cse.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")}Ha.animate=jse;Ha.addFrames=Jse;Ha.deleteFrames=Kse;Ha.addTraces=cF;Ha.deleteTraces=hF;Ha.extendTraces=uF;Ha.moveTraces=C6;Ha.prependTraces=fF;Ha.newPlot=Rse;Ha._doPlot=Dse;Ha.purge=Qse;Ha.react=Yse;Ha.redraw=Ise;Ha.relayout=Yg;Ha.restyle=Nx;Ha.setPlotConfig=Pse;Ha.update=Ox;Ha._guiRelayout=E6(Yg);Ha._guiRestyle=E6(Nx);Ha._guiUpdate=E6(Ox);Ha._storeDirectGUIEdit=Bse});var Ud=me(Gf=>{"use strict";var tle=sa();Gf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Gf.getRedrawFunc=function(e){return function(){tle.getComponentMethod("colorbar","draw")(e)}};Gf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Gf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _F=window.URL||window.webkitURL;Gf.createObjectURL=function(e){return _F.createObjectURL(e)};Gf.revokeObjectURL=function(e){return _F.revokeObjectURL(e)};Gf.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=rle(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Gf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function rle(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var P6=ja(),m2e=Bt(),ale=xi(),ile=Oa(),y2e=Oh(),D6=/"/g,Xg="TOBESTRIPPED",nle=new RegExp('("'+Xg+")|("+Xg+'")',"g");function ole(e){var t=P6.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 sle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}xF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(ale.setRect,0,0,f,h).call(ile.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var lle=Bt(),ule=O_().EventEmitter,jg=Ud();function fle(e){var t=e.emitter||new ule,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=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;f==="svg"||lle.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),f!=="svg"&&C.drawImage(E,0,0,T,M),f){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}bF.exports=fle});var I6=me((x2e,AF)=>{"use strict";var wF=Da(),TF=L6(),cle=to(),Zf=Bt(),Jg=Ud(),hle=Gx(),vle=Zx(),dle=r_().version,z6={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 ple(e,t){t=t||{};var r,i,a,s;Zf.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Zf.getGraphDiv(e),r=Zf.extendDeep([],e.data),i=Zf.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Zf.validate(t[H],z6[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 "+Zf.join2(z6.format.values,", "," or ")+".");var f={};function h(H,V){return Zf.coerce(t,f,z6,H,V)}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=Zf.extendFlat({},i);m?L.width=m:t.width===null&&wF(s.width)&&(L.width=s.width),_?L.height=_:t.height===null&&wF(s.height)&&(L.height=s.height);var I=Zf.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,V){var W=hle(E,v,T),J=E._fullLayout.width,ee=E._fullLayout.height;function ie(){TF.purge(E),document.body.removeChild(E)}if(v==="full-json"){var oe=cle.graphJson(E,!1,"keepdata","object",!0,!0);return oe.version=dle,oe=JSON.stringify(oe),ie(),H(C?oe:Jg.encodeJSON(oe))}if(ie(),v==="svg")return H(C?W:Jg.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Zf.randstr(),vle({format:v,width:J,height:ee,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function N(H){return C?H.replace(Jg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){TF.newPlot(E,r,L,I).then(O).then(q).then(z).then(function(W){H(N(W))}).catch(function(W){V(W)})})}AF.exports=ple});var kF=me((b2e,SF)=>{"use strict";var nu=Bt(),mle=to(),yle=F0(),gle=cd().dfltConfig,Hu=nu.isPlainObject,Hd=Array.isArray,R6=nu.isArrayOrTypedArray;SF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=yle.get(),a=[],s={_context:nu.extendFlat({},gle)},l,f;Hd(t)?(s.data=nu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(so("array","data"))),Hu(r)?(s.layout=nu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(so("object","layout"))),mle.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,V;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],V=_[z][q],nu.validate(H,N)?V!==H&&V!==+H&&i.push(so("dynamic",a,v.concat(z,q),H,V)):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 Mle=Bt(),Wx=Ud();function Sle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Wx.createBlob(e,r),v=Wx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Wx.revokeObjectURL(v),h=null,l(t);if(Mle.isSafari()){var m=r==="svg"?",":";base64,";return Wx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}CF.exports=Sle});var F6=me((A2e,DF)=>{"use strict";var LF=Bt(),kle=I6(),Cle=EF(),T2e=Ud();function Ele(e,t){var r;return LF.isPlainObject(e)||(r=LF.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=kle(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),Cle(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}DF.exports=Ele});var FF=me(q6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,PF=F0(),zF=to(),Lle=ys(),IF=Ii(),RF=cd().dfltConfig;q6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:RF},{data:e.data,layout:e.layout}),zF.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,Ple.bind(null,M));var E=Hs.coerce(M,{},Lle,"type"),L=i.data[E];L||(L=i.data[E]=[]),L.push(C)}),Kg(r,i.layout,Dle.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Xx(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Xx(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],V=ou(q,N,z);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),O(H,V)):Array.isArray(H)&&zle(H)&&O(H,V)}}if(O({data:h,layout:f},""),l.length)return l.map(Ile)};function zle(e){for(var t=0;t{"use strict";var Jn=L6();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 Rle=Ny().getGraphDiv,Fle=nx().eraseActiveShape;Ji.deleteActiveShape=function(e){return Fle(Rle(e))};Ji.toImage=I6();Ji.validate=kF();Ji.downloadImage=F6();var qF=FF();Ji.makeTemplate=qF.makeTemplate;Ji.validateTemplate=qF.validateTemplate});var OF=me((k2e,BF)=>{"use strict";var N6=Bt(),qle=sa();BF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=qle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=N6.minRowLength(s);l?f=Math.min(v,N6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=N6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var GF=me((C2e,HF)=>{"use strict";var UF=Bt().dateTick0,Nle=Zi(),Ble=Nle.ONEWEEK;function VF(e,t){return e%Ble===0?UF(t,1):UF(t,0)}HF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",VF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",VF(f,r.ycalendar)),a("yperiodalignment"))}}});var WF=me((E2e,YF)=>{"use strict";var ZF=["orientation","groupnorm","stackgaps"];YF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});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 XF=Oa(),jF=Ef().hasColorscale,JF=bd(),Ole=rs();KF.exports=function(t,r,i,a,s,l={}){var f=Ole.isBubble(t),h=(t.line||{}).color,v;if(h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),jF(t,"marker")&&JF(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:f?v=XF.background:v=XF.defaultLine,s("marker.line.color",v),jF(t,"marker.line")&&JF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0),l.noLineDash||s("marker.line.dash")),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var O6=me((D2e,QF)=>{"use strict";var Ule=Bt().isArrayOrTypedArray,Vle=Ef().hasColorscale,Hle=bd();QF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),Vle(t,"line"))Hle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(Ule(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var eq=me((P2e,$F)=>{"use strict";$F.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var U6=me((z2e,tq)=>{"use strict";var Gle=Bt();tq.exports=function(e,t,r,i,a){a=a||{},i("textposition"),Gle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var V6=me((I2e,aq)=>{"use strict";var Jx=Oa(),rq=Bt().isArrayOrTypedArray;function Zle(e){for(var t=Jx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var iq=Bt(),Yle=sa(),Wle=zc(),Xle=Tx(),um=rs(),jle=OF(),Jle=GF(),Kle=WF(),Qle=B6(),$le=O6(),nq=eq(),eue=U6(),tue=V6(),rue=Bt().coercePattern;oq.exports=function(t,r,i,a){function s(M,C){return iq.coerce(t,r,Wle,M,C)}var l=jle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){Jle(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=Kle(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var aue=wg().getAxisGroup;lq.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=aue(i,f)+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 cq=me((q2e,fq)=>{"use strict";var iue=Bt(),nue=uq(),oue=zc();fq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return iue.coerce(a._input,a,oue,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 vq=me((N2e,hq)=>{"use strict";var sue=Bt(),lue=Z_();hq.exports=function(e,t){function r(a,s){return sue.coerce(e,t,lue,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var mq=me((B2e,pq)=>{"use strict";var uue=Da(),dq=Bt(),fue=dq.dateTime2ms,Kx=dq.incrementMonth,cue=Zi(),hue=cue.ONEAVGMONTH;pq.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"],f;if(uue(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)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],M=fue(T,v)||0,C=[],E=[],L=[],I=a.length,O=0;Oq;)H=Kx(H,-f,v);for(;H<=q;)H=Kx(H,f,v);N=Kx(H,-f,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 Z6=me((O2e,gq)=>{"use strict";var H6=Ef().hasColorscale,G6=Qy(),yq=rs();gq.exports=function(t,r){yq.hasLines(r)&&H6(r,"line")&&G6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),yq.hasMarkers(r)&&(H6(r,"marker")&&G6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),H6(r,"marker.line")&&G6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Qg=me((U2e,_q)=>{"use strict";var hn=Bt();_q.exports=function(t,r){for(var i=0;i{"use strict";var xq=Bt();bq.exports=function(t,r){xq.isArrayOrTypedArray(r.selectedpoints)&&xq.tagSelected(t,r)}});var J6=me((H2e,Cq)=>{"use strict";var wq=Da(),W6=Bt(),$g=Xi(),Tq=mq(),Y6=Zi().BADNUM,X6=rs(),vue=Z6(),due=Qg(),pue=Qx();function mue(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"),f=Tq(t,i,"x",s),h=Tq(t,a,"y",l),v=f.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;Sq(r,t);var H="x",V="y",W;if(C)W6.pushUnique(C.traceIndices,t.index),L=C.orientation==="v",L?(V="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=Mq(t,_);Aq(e,t,i,a,v,m,J)}var ee=!!t.xperiodalignment,ie=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},fe=wq(v[I]),le=wq(m[I]);fe&&le?(oe[H]=v[I],oe[V]=m[I],ee&&(oe.orig_x=s[I],oe.xEnd=f.ends[I],oe.xStart=f.starts[I]),ie&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(L?fe:le)?(oe[W]=L?v[I]:m[I],oe.gap=!0,z?(oe.s=Y6,E=!0):oe.s=0):oe[H]=oe[V]=Y6,M&&(oe.id=String(M[I]))}if(due(T,t),vue(e,t),pue(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";Eq.exports=$x;var yue=Bt().distinctVals;function $x(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";Dq.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var qq=me((Y2e,Fq)=>{"use strict";var su=Da(),{isArrayOrTypedArray:Rc}=Bt(),{BADNUM:fm}=Zi(),gue=sa(),e1=Xi(),{getAxisGroup:_ue}=wg(),eb=Lq(),{TEXTPAD:xue}=Pq(),{LINE_SPACING:bue}=No(),{BR_TAG_ALL:wue}=ro();function Tue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!su(f))}for(var m=0;mi(s))):i(e.text);let a=e.outsidetextfont.size*bue*r+xue;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 zue(e,t,r,i){for(var a=cm(i),s=0;s{"use strict";var Nq=J6(),Bq=qq().setGroupPositions;function Rue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var que=xi(),Zq=Zi(),t1=Zq.BADNUM,Yq=Zq.LOG_CLIP,Vq=Yq+.5,Hq=Yq-.5,tb=Bt(),Nue=tb.segmentsIntersect,Gq=tb.constrain,aT=Tx();Wq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=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=aT.minTolerance,q=t.length,z=new Array(q),N=0,H,V,W,J,ee,ie,oe,fe,le,Te,Se,Me,Ae,pe,ke,Ee;function Xe(Lt){var Fe=t[Lt];if(!Fe)return!1;var Ve=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),bt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ve===t1){if(l&&(Ve=a.c2p(Fe.x,!0)),Ve===t1)return!1;f&&bt===t1&&(Ve*=Math.abs(a._m*v*(a._m>0?Vq:Hq)/(s._m*h*(s._m>0?Vq:Hq)))),Ve*=1e3}if(bt===t1){if(f&&(bt=s.c2p(Fe.y,!0)),bt===t1)return!1;bt*=1e3}return[Ve,bt]}function lt(Lt,Fe,Ve,bt){var Tt=Ve-Lt,mr=bt-Fe,Ar=.5-Lt,Mr=.5-Fe,Gr=Tt*Tt+mr*mr,pa=Tt*Ar+mr*Mr;if(pa>0&&pa1||Math.abs(Ar.y-Ve[0][1])>1)&&(Ar=[Ar.x,Ar.y],bt&&kt(Ar,Lt)It||Lt[1]de)return[Gq(Lt[0],dt,It),Gq(Lt[1],yt,de)]}function Ut(Lt,Fe){if(Lt[0]===Fe[0]&&(Lt[0]===dt||Lt[0]===It)||Lt[1]===Fe[1]&&(Lt[1]===yt||Lt[1]===de))return!0}function Dt(Lt,Fe){var Ve=[],bt=qt(Lt),Tt=qt(Fe);return bt&&Tt&&Ut(bt,Tt)||(bt&&Ve.push(bt),Tt&&Ve.push(Tt)),Ve}function Mt(Lt,Fe,Ve){return function(bt,Tt){var mr=qt(bt),Ar=qt(Tt),Mr=[];if(mr&&Ar&&Ut(mr,Ar))return Mr;mr&&Mr.push(mr),Ar&&Mr.push(Ar);var Gr=2*tb.constrain((bt[Lt]+Tt[Lt])/2,Fe,Ve)-((mr||bt)[Lt]+(Ar||Tt)[Lt]);if(Gr){var pa;mr&&Ar?pa=Gr>0==mr[Lt]>Ar[Lt]?mr:Ar:pa=mr||Ar,pa[Lt]+=Gr}return Mr}}var Zt;C==="linear"||C==="spline"?Zt=xt:C==="hv"||C==="vh"?Zt=Dt:C==="hvh"?Zt=Mt(0,dt,It):C==="vhv"&&(Zt=Mt(1,yt,de));function Yt(Lt,Fe){var Ve=Fe[0]-Lt[0],bt=(Fe[1]-Lt[1])/Ve,Tt=(Lt[1]*Fe[0]-Fe[1]*Lt[0])/Ve;return Tt>0?[bt>0?dt:It,de]:[bt>0?It:dt,yt]}function Be(Lt){var Fe=Lt[0],Ve=Lt[1],bt=Fe===z[N-1][0],Tt=Ve===z[N-1][1];if(!(bt&&Tt))if(N>1){var mr=Fe===z[N-2][0],Ar=Ve===z[N-2][1];bt&&(Fe===dt||Fe===It)&&mr?Ar?N--:z[N-1]=Lt:Tt&&(Ve===yt||Ve===de)&&Ar?mr?N--:z[N-1]=Lt:z[N++]=Lt}else z[N++]=Lt}function ut(Lt){z[N-1][0]!==Lt[0]&&z[N-1][1]!==Lt[1]&&Be([at,Je]),Be(Lt),Ct=null,at=Je=0}var sr=tb.isArrayOrTypedArray(_);function Pr(Lt){if(Lt&&m&&(Lt.i=H,Lt.d=t,Lt.trace=i,Lt.marker=sr?_[Lt.i]:_,Lt.backoff=m),it=Lt[0]/h,_t=Lt[1]/v,_e=Lt[0]It?It:0,Ue=Lt[1]de?de:0,_e||Ue){if(!N)z[N++]=[_e||Lt[0],Ue||Lt[1]];else if(Ct){var Fe=Zt(Ct,Lt);Fe.length>1&&(ut(Fe[0]),z[N++]=Fe[1])}else wt=Zt(z[N-1],Lt)[0],z[N++]=wt;var Ve=z[N-1];_e&&Ue&&(Ve[0]!==_e||Ve[1]!==Ue)?(Ct&&(at!==_e&&Je!==Ue?Be(at&&Je?Yt(Ct,Lt):[at||_e,Je||Ue]):at&&Je&&Be([at,Je])),Be([_e,Ue])):at-_e&&Je-Ue&&Be([_e||at,Ue||Je]),Ct=Lt,at=_e,Je=Ue}else Ct&&ut(Zt(Ct,Lt)[0]),z[N++]=Lt}for(H=0;HYe(ie,Et))break;W=ie,Ae=le[0]*fe[0]+le[1]*fe[1],Ae>Se?(Se=Ae,J=ie,oe=!1):Ae=t.length||!ie)break;Pr(ie),V=ie}}Ct&&Be([at||Ct[0],Je||Ct[1]]),I.push(z.slice(0,N))}var ht=C.slice(C.length-1);if(m&&ht!=="h"&&ht!=="v"){for(var pt=!1,Ot=-1,er=[],Ht=0;Ht{"use strict";var jq={tonextx:1,tonexty:1,tonext:1};Jq.exports=function(t,r,i){var a,s,l,f,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 Gu=ja(),Bue=sa(),r1=Bt(),hm=r1.ensureSingle,$q=r1.identity,gn=xi(),vm=rs(),Oue=Xq(),Uue=Kq(),rb=yx().tester;eN.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=Uue(t,r,i);if(f=a.selectAll("g.trace").data(_,function(M){return M[0].trace.uid}),f.enter().append("g").attr("class",function(M){return"trace scatter trace"+M[0].trace.uid}).style("stroke-miterlimit",2),f.order(),Vue(t,f,r),m){l&&(h=l());var T=Gu.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){Qq(t,C,r,M,_,this,s)})})}else f.each(function(M,C){Qq(t,C,r,M,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function Vue(e,t,r){t.each(function(i){var a=hm(Gu.select(this),"g","fills");gn.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 f=a.selectAll("g").data(l,$q);f.enter().append("g"),f.exit().remove(),f.order().each(function(h){s[h]=hm(Gu.select(this),"path","js-fill")})})}function Qq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;Hue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Mt){return v?Mt.transition():Mt}var _=r.xaxis,T=r.yaxis,M=i[0].trace,C=M.line,E=Gu.select(s),L=hm(E,"g","errorbars"),I=hm(E,"g","lines"),O=hm(E,"g","points"),q=hm(E,"g","text");if(Bue.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 V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=E;var J="",ee=[],ie=M._prevtrace,oe=null,fe=null;ie&&(J=ie._prevRevpath||"",N=ie._nextFill,ee=ie._ownPolygons,oe=ie._fillsegments,fe=ie._fillElement);var le,Te,Se="",Me="",Ae,pe,ke,Ee,Xe,lt,it=[];M._polygons=[];var _t=[],Ye=[],kt=r1.noop;if(z=M._ownFill,vm.hasLines(M)||M.fill!=="none"){N&&N.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(Ae=gn.steps(C.shape),pe=gn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?Ae=pe=function(Mt){var Zt=Mt[Mt.length-1];return Mt.length>1&&Mt[0][0]===Zt[0]&&Mt[0][1]===Zt[1]?gn.smoothclosed(Mt.slice(1),C.smoothing):gn.smoothopen(Mt,C.smoothing)}:Ae=pe=function(Mt){return"M"+Mt.join("L")},ke=function(Mt){return pe(Mt.reverse())},Ye=Oue(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}),_t=new Array(Ye.length);var st=0;for(h=0;h=f[0]&&E.x<=f[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;vm.hasMarkers(I)&&I.marker.maxdisplayed>0&&L{"use strict";rN.exports={container:"marker",min:"cmin",max:"cmax"}});var iN=me((Q2e,aN)=>{"use strict";var ab=Xi();aN.exports=function(t,r,i){var a={},s={_fullLayout:i},l=ab.getFromTrace(s,r,"x"),f=ab.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=ab.tickText(l,l.c2l(h),!0).text,a.yLabel=ab.tickText(f,f.c2l(v),!0).text,a}});var lT=me(($2e,nN)=>{"use strict";var nT=ja(),dm=xi(),Gue=sa();function Zue(e){var t=nT.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=nT.select(this),a=r.trace||r[0].trace;oT(i,a,e)}),t.selectAll("g.text").each(function(r){var i=nT.select(this),a=r.trace||r[0].trace;sT(i,a,e)}),t.selectAll("g.trace path.js-line").call(dm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(dm.fillGroupStyle,e,!1),Gue.getComponentMethod("errorbars","style")(t)}function oT(e,t,r){dm.pointStyle(e.selectAll("path.point"),t,r)}function sT(e,t,r){dm.textPointStyle(e.selectAll("text"),t,r)}function Yue(e,t,r){var i=t[0].trace;i.selectedpoints?(dm.selectedPointStyle(r.selectAll("path.point"),i),dm.selectedTextStyle(r.selectAll("text"),i)):(oT(r,i,e),sT(r,i,e))}nN.exports={style:Zue,stylePoints:oT,styleText:sT,styleOnSelect:Yue}});var uT=me((exe,oN)=>{"use strict";var pm=Oa(),Wue=rs();oN.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&pm.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&&pm.opacity(s)?s:l&&pm.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?pm.opacity(a)<.3?pm.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&pm.opacity(i)&&Wue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var uN=me((txe,lN)=>{"use strict";var ib=Bt(),sN=Nf(),Xue=sa(),jue=uT(),fT=Oa(),Jue=ib.fillText;lN.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.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(Me){if(C){var Ae=f.c2p(Me.xStart),pe=f.c2p(Me.xEnd);return v>=Math.min(Ae,pe)&&v<=Math.max(Ae,pe)?0:1/0}var ke=Math.max(3,Me.mrc||0),Ee=1-1/ke,Xe=Math.abs(f.c2p(Me.x)-v);return Xe=Math.min(Ae,pe)&&m<=Math.max(Ae,pe)?0:1/0}var ke=Math.max(3,Me.mrc||0),Ee=1-1/ke,Xe=Math.abs(h.c2p(Me.y)-m);return Xeit!=de>=it&&(dt=kt[Ye-1][0],It=kt[Ye][0],de-yt&&(st=dt+(It-dt)*(it-yt)/(de-yt),ke=Math.min(ke,st),Ee=Math.max(Ee,st)));return ke=Math.max(ke,0),Ee=Math.min(Ee,f._length),{x0:ke,x1:Ee,y0:it,y1:it}}if(T.indexOf("fills")!==-1&&l._fillElement){var le=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(le){var Te=fe(l._polygons);Te===null&&(Te={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Se=fT.defaultLine;return fT.opacity(l.fillcolor)?Se=l.fillcolor:fT.opacity((l.line||{}).color)&&(Se=l.line.color),ib.extendFlat(t,{distance:t.maxHoverDistance,x0:Te.x0,x1:Te.x1,y0:Te.y0,y1:Te.y1,color:Se,hovertemplate:!1}),delete t.index,l.text&&!ib.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var hN=me((rxe,cN)=>{"use strict";var fN=rs();cN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!fN.hasMarkers(f)&&!fN.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";vN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var gN=me((ixe,yN)=>{"use strict";var a1=sa().traceIs,cT=L5();yN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(Kue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function Kue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=Que(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",f=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,mN(s,i)){var v=pN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(mN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function pN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mN(e,t){var r=pN(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 xN=me((nxe,_N)=>{"use strict";var $ue=al().isTypedArraySpec;function efe(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||$ue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=efe(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var TN=me((oxe,wN)=>{"use strict";var bN=Mf().mix,tfe=Sf(),rfe=Bt();wN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return rfe.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=bN(s,a.bgColor,a.blend||tfe.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=bN(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"),V=i("zeroline",a.showGrid||!!N||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var vT=me((sxe,EN)=>{"use strict";var AN=Da(),afe=sa(),i1=Bt(),ife=Ii(),nfe=Wl(),hT=Nu(),MN=$w(),SN=t5(),ofe=i5(),sfe=n5(),lfe=xN(),ufe=TN(),ffe=K5(),kN=y2(),nb=eo().WEEKDAY_PATTERN,cfe=eo().HOUR_PATTERN;EN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var M=afe.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"),kN(r,s),ffe(t,r,i,a),lfe(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var E=i("color"),L=E!==hT.color.dflt?E:f.color,I=h.label||s._dfltTitle[l];if(sfe(t,r,i,_,a),!v)return r;i("title.text",I),i1.coerceFont(i,"title.font",f,{overrideDflt:{size:i1.bigFont(f.size),color:L}}),MN(t,r,i,_);var O=a.hasMinor;if(O&&(ife.newContainer(r,"minor"),MN(t,r,i,_,{isMinor:!0})),ofe(t,r,i,_,a),SN(t,r,i,a),O){var q=a.isMinor;a.isMinor=!0,SN(t,r,i,a),a.isMinor=q}ufe(t,r,i,{dfltColor:E,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:O,attributes:hT}),O&&!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(nfe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:hfe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=CN(s[f]),h){l=nb;break}}var v=i("pattern",l);if(v===nb)for(f=0;f<2;f++)h=CN(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case nb:if(!AN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case cfe:if(!AN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=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 dfe=Da(),ob=Bt();LN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,M,C,E;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],M=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(dfe(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),M=M||0,C=0,E=!1;var L=ob.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=ob.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(L==="free"){if(f==="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=ob.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=_),ob.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var BN=me((uxe,NN)=>{"use strict";var Gd=Bt(),DN=Oa(),pfe=kc().isUnifiedHover,mfe=A4(),PN=Ii(),yfe=M0(),zN=Nu(),gfe=gN(),IN=vT(),_fe=wg(),RN=dT(),mT=jn(),Yf=mT.id2name,FN=mT.name2id,xfe=eo().AX_ID_PATTERN,qN=sa(),sb=qN.traceIs,pT=qN.getComponentMethod;function lb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}NN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},M={},C={},E,L;for(E=0;E{"use strict";var bfe=ja(),ON=sa(),ub=Bt(),cl=xi(),fb=Xi();UN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){fb.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 f(L,I){var O=L.plotinfo,q=O.xaxis,z=O.yaxis,N=q._length,H=z._length,V=!!L.xr1,W=!!L.yr1,J=[];if(V){var ee=ub.simpleMap(L.xr0,q.r2l),ie=ub.simpleMap(L.xr1,q.r2l),oe=ee[1]-ee[0],fe=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*fe/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 le=ub.simpleMap(L.yr0,z.r2l),Te=ub.simpleMap(L.yr1,z.r2l),Se=le[1]-le[0],Me=Te[1]-Te[0];J[1]=(le[1]*(1-I)+I*Te[1]-le[1])/(le[0]-le[1])*H,J[3]=H*(1-I+I*Me/Se),z.range[0]=q.l2r(le[0]*(1-I)+I*Te[0]),z.range[1]=z.l2r(le[1]*(1-I)+I*Te[1])}else J[1]=0,J[3]=H;fb.drawOne(t,q,{skipTitle:!0}),fb.drawOne(t,z,{skipTitle:!0}),fb.redrawComponents(t,[q._id,z._id]);var Ae=V?N/J[2]:1,pe=W?H/J[3]:1,ke=V?J[0]:0,Ee=W?J[1]:0,Xe=V?J[0]/J[2]*N:0,lt=W?J[1]/J[3]*H:0,it=q._offset-Xe,_t=z._offset-lt;O.clipRect.call(cl.setTranslate,ke,Ee).call(cl.setScale,1/Ae,1/pe),O.plot.call(cl.setTranslate,it,_t).call(cl.setScale,Ae,pe),cl.setPointGroupScale(O.zoomScalePts,1/Ae,1/pe),cl.setTextPointsScale(O.zoomScaleTxt,1/Ae,1/pe)}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 yT=me(Uo=>{"use strict";var hb=ja(),HN=sa(),Zd=Bt(),wfe=to(),Tfe=xi(),GN=X_().getModuleCalcData,rv=jn(),Zu=eo(),Afe=Oh(),ai=Zd.ensureSingle;function cb(e,t,r){return Zd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Yd=Zu.zindexSeparator;Uo.name="cartesian";Uo.attr=["xaxis","yaxis"];Uo.idRoot=["x","y"];Uo.idRegex=Zu.idRegex;Uo.attrRegex=Zu.attrRegex;Uo.attributes=dN();Uo.layoutAttributes=Nu();Uo.supplyLayoutDefaults=BN();Uo.transitionAxes=VN();Uo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var M=T.id;if(M.indexOf(Yd)!==-1)continue;M+=Yd+(v+1),T=Zd.extendFlat({},T,{id:M,plot:a._cartesianlayer.selectAll(".subplot").select("."+M)})}for(var C=[],E,L=0;L1&&(N+=Yd+z),q.push(f+N),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ai(i,"path","xlines-above"),t.ylines=ai(i,"path","ylines-above"),t.xaxislayer=ai(i,"g","xaxislayer-above"),t.yaxislayer=ai(i,"g","yaxislayer-above");else{if(!l){var T=ai(i,"g","layer-subplot");t.shapelayer=ai(T,"g","shapelayer"),t.imagelayer=ai(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ai(i,"g","minor-gridlayer"),t.gridlayer=ai(i,"g","gridlayer"),t.zerolinelayer=ai(i,"g","zerolinelayer"));var M=ai(i,"g","layer-between");t.shapelayerBetween=ai(M,"g","shapelayer"),t.imagelayerBetween=ai(M,"g","imagelayer"),ai(i,"path","xlines-below"),ai(i,"path","ylines-below"),t.overlinesBelow=ai(i,"g","overlines-below"),ai(i,"g","xaxislayer-below"),ai(i,"g","yaxislayer-below"),t.overaxesBelow=ai(i,"g","overaxes-below")}t.overplot=ai(i,"g","overplot"),t.plot=ai(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ai(i,"g","zerolinelayer-above"),l||(t.xlines=ai(i,"path","xlines-above"),t.ylines=ai(i,"path","ylines-above"),t.overlinesAbove=ai(i,"g","overlines-above"),ai(i,"g","xaxislayer-above"),ai(i,"g","yaxislayer-above"),t.overaxesAbove=ai(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),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,ai(_.overlinesBelow,"path",E),ai(_.overlinesBelow,"path",L),ai(_.overaxesBelow,"g",E),ai(_.overaxesBelow,"g",L),t.plot=ai(_.overplot,"g",a),ai(_.overlinesAbove,"path",E),ai(_.overlinesAbove,"path",L),ai(_.overaxesAbove,"g",E),ai(_.overaxesAbove,"g",L),t.xlines=C.select(".overlines-"+f).select("."+E),t.ylines=C.select(".overlines-"+h).select("."+L),t.xaxislayer=C.select(".overaxes-"+f).select("."+E),t.yaxislayer=C.select(".overaxes-"+h).select("."+L)}l||(v||(cb(t.minorGridlayer,"g",t.xaxis._id),cb(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort),cb(t.gridlayer,"g",t.xaxis._id),cb(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 WN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=hb.select(this);m.remove(),XN(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 vb=rs();jN.exports={hasLines:vb.hasLines,hasMarkers:vb.hasMarkers,hasText:vb.hasText,isBubble:vb.isBubble,attributes:zc(),layoutAttributes:Z_(),supplyDefaults:sq(),crossTraceDefaults:cq(),supplyLayoutDefaults:vq(),calc:J6().calc,crossTraceCalc:Uq(),arraysToCalcdata:Qg(),plot:tN(),colorbar:iT(),formatLabels:iN(),style:lT().style,styleOnSelect:lT().styleOnSelect,hoverPoints:uN(),selectPoints:hN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:yT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var $N=me((vxe,QN)=>{"use strict";var Sfe=ja(),kfe=Oa(),KN=h6(),gT=Bt(),Cfe=gT.strScale,Efe=gT.strRotate,Lfe=gT.strTranslate;QN.exports=function(t,r,i){var a=t.node(),s=KN[i.arrowhead||0],l=KN[i.startarrowhead||0],f=(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*f+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)){le();return}if(_){if(_*_>I*I+O*O){le();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){le();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 V=a.getTotalLength(),W="";if(V<_+T){le();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,V)),W="0px,"+T+"px,";var ie=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);L=Math.atan2(ie.y-oe.y,ie.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function le(){t.style("stroke-dasharray","0px,100px")}function Te(Se,Me,Ae,pe){Se.path&&(Se.noRotate&&(Ae=0),Sfe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Se.path,transform:Lfe(Me.x,Me.y)+Efe(Ae*180/Math.PI)+Cfe(pe)}).style({fill:kfe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Te(l,M,E,h),m&&Te(s,C,L,f)}});var db=me((dxe,iB)=>{"use strict";var eB=ja(),_T=sa(),Dfe=to(),iv=Bt(),xT=iv.strTranslate,o1=Xi(),Wd=Oa(),Fc=xi(),tB=Nf(),bT=ro(),wT=Wh(),n1=jl(),Pfe=Ii().arrayEditor,zfe=$N();iB.exports={draw:Ife,drawOne:rB,drawRaw:aB};function Ife(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 yt=!1,de=["x","y"],ze=0;ze1)&&(at===Ue?(Et=Je.r2fraction(t["a"+_e]),(Et<0||Et>1)&&(yt=!0)):yt=!0),Zt=Je._offset+Je.r2p(t[_e]),ut=.5}else{var ht=Pr==="domain";_e==="x"?(Be=t[_e],Zt=ht?Je._offset+Je._length*Be:Zt=f.l+f.w*Be):(Be=1-t[_e],Zt=ht?Je._offset+Je._length*Be:Zt=f.t+f.h*Be),ut=t.showarrow?.5:Be}if(t.showarrow){Mt.head=Zt;var pt=t["a"+_e];if(sr=wt*It(.5,t.xanchor)-xt*It(.5,t.yanchor),at===Ue){var Ot=o1.getRefType(at);Ot==="domain"?(_e==="y"&&(pt=1-pt),Mt.tail=Je._offset+Je._length*pt):Ot==="paper"?_e==="y"?(pt=1-pt,Mt.tail=f.t+f.h*pt):Mt.tail=f.l+f.w*pt:Mt.tail=Je._offset+Je.r2p(pt),Yt=sr}else Mt.tail=Zt+pt,Yt=sr+pt;Mt.text=Mt.tail+sr;var er=l[_e==="x"?"width":"height"];if(Ue==="paper"&&(Mt.head=iv.constrain(Mt.head,1,er-1)),at==="pixel"){var Ht=-Math.max(Mt.tail-3,Mt.text),Kt=Math.min(Mt.tail+3,Mt.text)-er;Ht>0?(Mt.tail+=Ht,Mt.text+=Ht):Kt>0&&(Mt.tail-=Kt,Mt.text-=Kt)}Mt.tail+=Dt,Mt.head+=Dt}else sr=qt*It(ut,Ut),Yt=sr,Mt.text=Zt+sr;Mt.text+=Dt,sr+=Dt,Yt+=Dt,t["_"+_e+"padplus"]=qt/2+Yt,t["_"+_e+"padminus"]=qt/2-Yt,t["_"+_e+"size"]=qt,t["_"+_e+"shift"]=sr}if(yt){V.remove();return}var pr=0,yr=0;if(t.align!=="left"&&(pr=(Ye-it)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(kt-_t)*(t.valign==="middle"?.5:1)),Xe)Ee.select("svg").attr({x:ee+pr-1,y:ee+yr}).call(Fc.setClipUrl,oe?E:null,e);else{var ur=ee+yr-lt.top,Lt=ee+pr-lt.left;Se.call(bT.positionText,Lt,ur).call(Fc.setClipUrl,oe?E:null,e)}fe.select("rect").call(Fc.setRect,ee,ee,Ye,kt),ie.call(Fc.setRect,W/2,W/2,st-W,dt-W),V.call(Fc.setTranslate,Math.round(L.x.text-st/2),Math.round(L.y.text-dt/2)),q.attr({transform:"rotate("+I+","+L.x.text+","+L.y.text+")"});var Fe=function(bt,Tt){O.selectAll(".annotation-arrow-g").remove();var mr=L.x.head,Ar=L.y.head,Mr=L.x.tail+bt,Gr=L.y.tail+Tt,pa=L.x.text+bt,Ca=L.y.text+Tt,ii=iv.rotationXYMatrix(I,pa,Ca),wi=iv.apply2DTransform(ii),vi=iv.apply2DTransform2(ii),Fi=+ie.attr("width"),Gi=+ie.attr("height"),vn=pa-.5*Fi,nn=vn+Fi,Ki=Ca-.5*Gi,ir=Ki+Gi,oi=[[vn,Ki,vn,ir],[vn,ir,nn,ir],[nn,ir,nn,Ki],[nn,Ki,vn,Ki]].map(vi);if(!oi.reduce(function(We,mt){return We^!!iv.segmentsIntersect(mr,Ar,mr+1e6,Ar+1e6,mt[0],mt[1],mt[2],mt[3])},!1)){oi.forEach(function(We){var mt=iv.segmentsIntersect(Mr,Gr,mr,Ar,We[0],We[1],We[2],We[3]);mt&&(Mr=mt.x,Gr=mt.y)});var Sa=t.arrowwidth,la=t.arrowcolor,Ci=t.arrowside,ma=O.append("g").style({opacity:Wd.opacity(la)}).classed("annotation-arrow-g",!0),se=ma.append("path").attr("d","M"+Mr+","+Gr+"L"+mr+","+Ar).style("stroke-width",Sa+"px").call(Wd.stroke,Wd.rgb(la));if(zfe(se,Ci,t),h.annotationPosition&&se.node().parentNode&&!i){var te=mr,ue=Ar;if(t.standoff){var he=Math.sqrt(Math.pow(mr-Mr,2)+Math.pow(Ar-Gr,2));te+=t.standoff*(Mr-mr)/he,ue+=t.standoff*(Gr-Ar)/he}var Le=ma.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Mr-te)+","+(Gr-ue),transform:xT(te,ue)}).style("stroke-width",Sa+6+"px").call(Wd.stroke,"rgba(0,0,0,0)").call(Wd.fill,"rgba(0,0,0,0)"),Ne,et;n1.init({element:Le.node(),gd:e,prepFn:function(){var We=Fc.getTranslate(V);Ne=We.x,et=We.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(We,mt){var Pt=wi(Ne,et),Ft=Pt[0]+We,tr=Pt[1]+mt;V.call(Fc.setTranslate,Ft,tr),M("x",av(a,We,"x",f,t)),M("y",av(s,mt,"y",f,t)),t.axref===t.xref&&M("ax",av(a,We,"ax",f,t)),t.ayref===t.yref&&M("ay",av(s,mt,"ay",f,t)),ma.attr("transform",xT(We,mt)),q.attr({transform:"rotate("+I+","+Ft+","+tr+")"})},doneFn:function(){_T.call("_guiRelayout",e,C());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ve;n1.init({element:V.node(),gd:e,prepFn:function(){Ve=q.attr("transform")},moveFn:function(bt,Tt){var mr="pointer";if(t.showarrow)t.axref===t.xref?M("ax",av(a,bt,"ax",f,t)):M("ax",t.ax+bt),t.ayref===t.yref?M("ay",av(s,Tt,"ay",f.w,t)):M("ay",t.ay+Tt),Fe(bt,Tt);else{if(i)return;var Ar,Mr;if(a)Ar=av(a,bt,"x",f,t);else{var Gr=t._xsize/f.w,pa=t.x+(t._xshift-t.xshift)/f.w-Gr/2;Ar=n1.align(pa+bt/f.w,Gr,0,1,t.xanchor)}if(s)Mr=av(s,Tt,"y",f,t);else{var Ca=t._ysize/f.h,ii=t.y-(t._yshift+t.yshift)/f.h-Ca/2;Mr=n1.align(ii-Tt/f.h,Ca,0,1,t.yanchor)}M("x",Ar),M("y",Mr),(!a||!s)&&(mr=n1.getCursor(a?.5:Ar,s?.5:Mr,t.xanchor,t.yanchor))}q.attr({transform:xT(bt,Tt)+Ve}),wT(V,mr)},clickFn:function(bt,Tt){t.captureevents&&e.emit("plotly_clickannotation",H(Tt))},doneFn:function(){wT(V),_T.call("_guiRelayout",e,C());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}h.annotationText?Se.call(bT.makeEditable,{delegate:V,gd:e}).call(Me).on("edit",function(pe){t.text=pe,this.call(Me),M("text",pe),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),_T.call("_guiRelayout",e,C())}):Se.call(Me)}});var fB=me((pxe,uB)=>{"use strict";var nB=Bt(),Rfe=sa(),oB=Ii().arrayEditor;uB.exports={hasClickToShow:Ffe,onClick:qfe};function Ffe(e,t){var r=lB(e,t);return r.on.length>0||r.explicitOff.length>0}function qfe(e,t){var r=lB(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var TT=Bt(),mm=Oa();cB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=mm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),TT.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",f?r.bordercolor:mm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),E=i.hoverlabel||{};if(C){var L=a("hoverlabel.bgcolor",E.bgcolor||(mm.opacity(s)?mm.rgb(s):mm.defaultLine)),I=a("hoverlabel.bordercolor",E.bordercolor||mm.contrast(L)),O=TT.extendFlat({},E.font);O.color||(O.color=I),TT.coerceFont(a,"hoverlabel.font",O)}a("captureevents",!!C)}});var vB=me((yxe,hB)=>{"use strict";var MT=Bt(),Xd=Xi(),Nfe=Wl(),Bfe=AT(),Ofe=sm();hB.exports=function(t,r){Nfe(t,r,{name:"annotations",handleItemDefaults:Ufe})};function Ufe(e,t,r){function i(q,z){return MT.coerce(e,t,Ofe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){Bfe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Xd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var M=Xd.getFromId(v,T);M._annIndices.push(t._index)}if(Xd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,E=Xd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);E!=="pixel"&&E!==T&&(E=t[C]="pixel");var L=E==="pixel"?h[m]:.4;Xd.coercePosition(t,v,i,E,C,L)}i(_+"anchor"),i(_+"shift")}if(MT.noneOrAll(e,t,["x","y"]),l&&MT.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),O=i("yclick");t._xclick=I===void 0?t.x:Xd.cleanPosition(I,v,t.xref),t._yclick=O===void 0?t.y:Xd.cleanPosition(O,v,t.yref)}}}});var mB=me((gxe,pB)=>{"use strict";var ST=Bt(),jd=Xi(),Vfe=db().draw;pB.exports=function(t){var r=t._fullLayout,i=ST.filterVisible(r.annotations);if(i.length&&t._fullData.length)return ST.syncOrAsync([Vfe,Hfe],t)};function Hfe(e){var t=e._fullLayout;ST.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"&&dB(r,i),l==="range"&&dB(r,a)})}function dB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=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(f===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 gB=me((_xe,yB)=>{"use strict";var Gfe=Da(),Zfe=c_();yB.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 f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(M){var C=v[M],E=null;s?E=Zfe(C,r.range):E=Math.pow(10,C),Gfe(E)||(E=null),a(m+M,E)}for(var T=0;T{"use strict";var kT=db(),_B=fB();xB.exports={moduleType:"component",name:"annotations",layoutAttributes:sm(),supplyLayoutDefaults:vB(),includeBasePlot:Og()("annotations"),calcAutorange:mB(),draw:kT.draw,drawOne:kT.drawOne,drawRaw:kT.drawRaw,hasClickToShow:_B.hasClickToShow,onClick:_B.onClick,convertCoords:gB()}});var pb=me((bxe,wB)=>{"use strict";var Oi=sm(),Yfe=il().overrideAll,Wfe=Ii().templatedArray;wB.exports=Yfe(Wfe("annotation",{visible:Oi.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Oi.xanchor,xshift:Oi.xshift,yanchor:Oi.yanchor,yshift:Oi.yshift,text:Oi.text,textangle:Oi.textangle,font:Oi.font,width:Oi.width,height:Oi.height,opacity:Oi.opacity,align:Oi.align,valign:Oi.valign,bgcolor:Oi.bgcolor,bordercolor:Oi.bordercolor,borderpad:Oi.borderpad,borderwidth:Oi.borderwidth,showarrow:Oi.showarrow,arrowcolor:Oi.arrowcolor,arrowhead:Oi.arrowhead,startarrowhead:Oi.startarrowhead,arrowside:Oi.arrowside,arrowsize:Oi.arrowsize,startarrowsize:Oi.startarrowsize,arrowwidth:Oi.arrowwidth,standoff:Oi.standoff,startstandoff:Oi.startstandoff,hovertext:Oi.hovertext,hoverlabel:Oi.hoverlabel,captureevents:Oi.captureevents}),"calc","from-root")});var AB=me((wxe,TB)=>{"use strict";var CT=Bt(),Xfe=Xi(),jfe=Wl(),Jfe=AT(),Kfe=pb();TB.exports=function(t,r,i){jfe(t,r,{name:"annotations",handleItemDefaults:Qfe,fullLayout:i.fullLayout})};function Qfe(e,t,r,i){function a(f,h){return CT.coerce(e,t,Kfe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],Xfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(Jfe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),CT.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),CT.noneOrAll(e,t,["ax","ay"])))}});var CB=me((Txe,kB)=>{"use strict";var MB=Bt(),SB=Xi();kB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function ET(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 ece(e,t){var r=ET(e.projection,ET(e.view,ET(e.model,[t[0],t[1],t[2],1])));return r}EB.exports=ece});var PB=me((Mxe,DB)=>{"use strict";var tce=db().drawRaw,rce=LB(),ace=["x","y","z"];DB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=rce(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),tce(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var RB=me((Sxe,IB)=>{"use strict";var ice=sa(),zB=Bt();IB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pb()}}},layoutAttributes:pb(),handleDefaults:AB(),includeBasePlot:nce,convert:CB(),draw:PB()};function nce(e,t){var r=ice.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var kxe=eo(),FB=qo(),qB=zc().line,oce=gc().dash,Yu=yn().extendFlat,sce=Ii().templatedArray,Cxe=Ng(),ym=ys(),NB=sm(),{shapeTexttemplateAttrs:lce,templatefallbackAttrs:uce}=kf(),fce=w_();BB.exports=sce("shape",{visible:Yu({},ym.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Yu({},ym.legend,{editType:"calc+arraydraw"}),legendgroup:Yu({},ym.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Yu({},ym.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:FB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Yu({},ym.legendrank,{editType:"calc+arraydraw"}),legendwidth:Yu({},ym.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:Yu({},NB.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:Yu({},NB.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:Yu({},qB.color,{editType:"arraydraw"}),width:Yu({},qB.width,{editType:"calc+arraydraw"}),dash:Yu({},oce,{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:lce({},{keys:Object.keys(fce)}),texttemplatefallback:uce({editType:"arraydraw"}),font:FB({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 UB=me((Lxe,OB)=>{"use strict";var gm=Bt(),hl=Xi(),cce=Wl(),hce=LT(),s1=Qh();OB.exports=function(t,r){cce(t,r,{name:"shapes",handleItemDefaults:dce})};function vce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function dce(e,t,r){function i(q,z){return gm.coerce(e,t,hce,q,z)}t._isShape=!0;var a=i("visible");if(!a)return;var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),gm.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),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},V,W,J,ee;let ie=q+"ref",oe=e[ie];if(Array.isArray(oe)&&oe.length>0){let fe=s1.countDefiningCoords(h,l,q);ee=hl.coerceRefArray(e,t,H,q,void 0,"paper",fe),t["_"+q+"refArray"]=!0}else ee=hl.coerceRef(e,t,H,q,void 0,"paper");if(Array.isArray(ee))ee.forEach(function(fe){hl.getRefType(fe)==="range"&&(V=hl.getFromId(H,fe),V&&V._shapeIndices.indexOf(t._index)===-1&&V._shapeIndices.push(t._index))}),v&&[0,1].forEach(function(fe){let le=ee[fe];hl.getRefType(le)==="range"?(V=hl.getFromId(H,le),W=s1.shapePositionToRange(V),J=s1.rangeToShapePosition(V),(V.type==="category"||V.type==="multicategory")&&i(q+fe+"shift")):W=J=gm.identity;let Se=q+fe,Me=e[Se];if(e[Se]=W(e[Se],!0),N==="pixel"?i(Se,C[fe]):hl.coercePosition(t,H,i,le,Se,M[fe]),t[Se]=J(t[Se]),e[Se]=Me,fe===0&&N==="pixel"){let Ae=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,le,z,.25),t[z]=J(t[z]),e[z]=Ae}});else{if(hl.getRefType(ee)==="range"?(V=hl.getFromId(H,ee),V._shapeIndices.push(t._index),J=s1.rangeToShapePosition(V),W=s1.shapePositionToRange(V),v&&(V.type==="category"||V.type==="multicategory")&&(i(q+"0shift"),i(q+"1shift"))):W=J=gm.identity,v){let le=q+"0",Te=q+"1",Se=e[le],Me=e[Te];e[le]=W(e[le],!0),e[Te]=W(e[Te],!0),N==="pixel"?(i(le,C[0]),i(Te,C[1])):(hl.coercePosition(t,H,i,ee,le,M[0]),hl.coercePosition(t,H,i,ee,Te,M[1])),t[le]=J(t[le]),t[Te]=J(t[Te]),e[le]=Se,e[Te]=Me}if(N==="pixel"){let le=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,ee,z,.25),t[z]=J(t[z]),e[z]=le}}}),v&&gm.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",vce(E,O)),i("label.padding"),gm.coerceFont(i,"label.font",r.font)}}});var GB=me((Dxe,HB)=>{"use strict";var pce=Oa(),VB=Bt();function mce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}HB.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"),VB.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",pce.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",mce(l,v)),i("newshape.label.padding"),VB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var KB=me((Pxe,JB)=>{"use strict";var DT=Bt(),lu=Xi(),Wf=yg(),PT=Qh();JB.exports=function(t){var r=t._fullLayout,i=DT.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,YB(s))})}else s.xref!=="paper"&&h!=="domain"&&(l=lu.getFromId(t,s.xref),f=XB(l,s,Wf.paramIsX),f&&(s._extremes[l._id]=lu.findExtremes(l,f,YB(s))));if(v==="array"){let m=ZB(t,s,"y");Object.entries(m).forEach(([_,T])=>{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,WB(s))})}else s.yref!=="paper"&&v!=="domain"&&(l=lu.getFromId(t,s.yref),f=XB(l,s,Wf.paramIsY),f&&(s._extremes[l._id]=lu.findExtremes(l,f,WB(s))))}};function ZB(e,t,r){let i=t[r+"ref"],a=r==="x"?Wf.paramIsX:Wf.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(Wf.segmentRE)||[];for(var f=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(Wf.paramRE);E&&E.length>C&&(s(i[f],E[C]),f++)}}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=PT.decodeDate(m)),v[T._id]=l[_].map(m)}}return v}function YB(e){return jB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WB(e){return jB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function jB(e,t,r,i,a,s){var l=e/2,f=s;if(t==="pixel"){var h=a?PT.extractPathCoords(a,s?Wf.paramIsY:Wf.paramIsX):[r,i],v=DT.aggNums(Math.max,null,h),m=DT.aggNums(Math.min,null,h),_=m<0?Math.abs(m)+l:l,T=v>0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function XB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=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&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,M=t.path.match(Wf.segmentRE),C,E,L,I,O;for(e.type==="date"&&(v=PT.decodeDate(v)),C=0;CT&&(T=O)));if(T>=_)return[_,T]}}});var eO=me((zxe,$B)=>{"use strict";var QB=nx();$B.exports={moduleType:"component",name:"shapes",layoutAttributes:LT(),supplyLayoutDefaults:UB(),supplyDrawNewShapeDefaults:GB(),includeBasePlot:Og()("shapes"),calcAutorange:KB(),draw:QB.draw,drawOne:QB.drawOne}});var zT=me((Rxe,rO)=>{"use strict";var tO=eo(),yce=Ii().templatedArray,Ixe=Ng();rO.exports=yce("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",tO.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tO.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iO=me((Fxe,aO)=>{"use strict";var gce=Bt(),IT=Xi(),_ce=Wl(),xce=zT(),bce="images";aO.exports=function(t,r){var i={name:bce,handleItemDefaults:wce};_ce(t,r,i)};function wce(e,t,r){function i(T,M){return gce.coerce(e,t,xce,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},f=["x","y"],h=0;h<2;h++){var v=f[h],m=IT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=IT.getFromId(l,m);_._imgIndices.push(t._index)}IT.coercePosition(t,l,i,m,v,0)}return t}});var lO=me((qxe,sO)=>{"use strict";var nO=ja(),Tce=xi(),_m=Xi(),oO=jn(),Ace=Oh();sO.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var uO=Da(),Mce=c_();fO.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 f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";hO.exports={moduleType:"component",name:"images",layoutAttributes:zT(),supplyLayoutDefaults:iO(),includeBasePlot:Og()("images"),draw:lO(),convertCoords:cO()}});var mb=me((Oxe,dO)=>{"use strict";dO.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 RT=me((Uxe,mO)=>{"use strict";var Sce=qo(),kce=Sf(),Cce=yn().extendFlat,Ece=il().overrideAll,Lce=T_(),pO=Ii().templatedArray,Dce=pO("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}});mO.exports=Ece(pO("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:Dce,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:Cce(Lce({editType:"arraydraw"}),{}),font:Sce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:kce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var xO=me((Vxe,_O)=>{"use strict";var yb=Bt(),yO=Wl(),gO=RT(),Pce=mb(),zce=Pce.name,Ice=gO.buttons;_O.exports=function(t,r){var i={name:zce,handleItemDefaults:Rce};yO(t,r,i)};function Rce(e,t,r){function i(l,f){return yb.coerce(e,t,gO,l,f)}var a=yO(e,t,{name:"buttons",handleItemDefaults:Fce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),yb.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),yb.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Fce(e,t){function r(a,s){return yb.coerce(e,t,Ice,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 TO=me((Hxe,wO)=>{"use strict";wO.exports=an;var Wu=ja(),bO=Oa(),xm=xi(),gb=Bt();function an(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})}an.barWidth=2;an.barLength=20;an.barRadius=2;an.barPad=1;an.barColor="#808BA4";an.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=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=f,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=f+L,O=Math.max(q-L,0),L=q-O):(O=f,q=Math.min(O+L,s),L=q-O)),this._box={l:O,t:z,w:L,h:I};var V=h>L,W=an.barLength+2*an.barPad,J=an.barWidth+2*an.barPad,ee=f,ie=v+m;ie+J>l&&(ie=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(bO.fill,an.barColor),V?(this.hbar=oe.attr({rx:an.barRadius,ry:an.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 fe=m>I,le=an.barWidth+2*an.barPad,Te=an.barLength+2*an.barPad,Se=f+h,Me=v;Se+le>s&&(Se=s-le);var Ae=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);Ae.exit().on(".drag",null).remove(),Ae.enter().append("rect").classed("scrollbar-vertical",!0).call(bO.fill,an.barColor),fe?(this.vbar=Ae.attr({rx:an.barRadius,ry:an.barRadius,x:Se,y:Me,width:le,height:Te}),this._vbarYMin=Me+Te/2,this._vbarTranslateMax=I-Te):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var pe=this.id,ke=O-.5,Ee=fe?q+le+.5:q+.5,Xe=z-.5,lt=V?N+J+.5:N+.5,it=a._topdefs.selectAll("#"+pe).data(V||fe?[0]:[]);if(it.exit().remove(),it.enter().append("clipPath").attr("id",pe).append("rect"),V||fe?(this._clipRect=it.select("rect").attr({x:Math.floor(ke),y:Math.floor(Xe),width:Math.ceil(Ee)-Math.floor(ke),height:Math.ceil(lt)-Math.floor(Xe)}),this.container.call(xm.setClipUrl,pe,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xm.setClipUrl,null),delete this._clipRect),V||fe){var _t=Wu.behavior.drag().on("dragstart",function(){Wu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(_t);var Ye=Wu.behavior.drag().on("dragstart",function(){Wu.event.sourceEvent.preventDefault(),Wu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(Ye),fe&&this.vbar.on(".drag",null).call(Ye)}this.setTranslate(r,i)};an.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xm.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)};an.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Wu.event.dx),this.vbar&&(r-=Wu.event.dy),this.setTranslate(t,r)};an.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Wu.event.deltaY),this.vbar&&(r+=Wu.event.deltaY),this.setTranslate(t,r)};an.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=gb.constrain(Wu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=gb.constrain(Wu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};an.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=gb.constrain(t||0,0,i),r=gb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(xm.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(xm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(xm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var zO=me((Gxe,PO)=>{"use strict";var bm=ja(),l1=to(),u1=Oa(),wm=xi(),vl=Bt(),_b=ro(),qce=Ii().arrayEditor,MO=No().LINE_SPACING,ra=mb(),Nce=TO();PO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[ra.name]);function a(T){l1.autoMargin(t,LO(T))}var s=r._menulayer.selectAll("g."+ra.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(ra.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){bm.select(this).selectAll("g."+ra.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+ra.headerGroupClassName).data(i,Bce);l.enter().append("g").classed(ra.headerGroupClassName,!0);for(var f=vl.ensureSingle(s,"g",ra.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var Yce=mb();IO.exports={moduleType:"component",name:Yce.name,layoutAttributes:RT(),supplyLayoutDefaults:xO(),draw:zO()}});var c1=me((Yxe,FO)=>{"use strict";FO.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 BT=me((Wxe,BO)=>{"use strict";var qO=qo(),Wce=T_(),Xce=yn().extendDeepAll,jce=il().overrideAll,Jce=By(),NO=Ii().templatedArray,Jd=c1(),Kce=NO("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}});BO.exports=jce(NO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Kce,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:Xce(Wce({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:Jce.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:qO({})},font:qO({}),activebgcolor:{valType:"color",dflt:Jd.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jd.railBgColor},bordercolor:{valType:"color",dflt:Jd.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jd.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jd.tickLength},tickcolor:{valType:"color",dflt:Jd.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jd.minorTickLength}}),"arraydraw","from-root")});var HO=me((Xxe,VO)=>{"use strict";var Tm=Bt(),OO=Wl(),UO=BT(),Qce=c1(),$ce=Qce.name,ehe=UO.steps;VO.exports=function(t,r){OO(t,r,{name:$ce,handleItemDefaults:the})};function the(e,t,r){function i(_,T){return Tm.coerce(e,t,UO,_,T)}for(var a=OO(e,t,{name:"steps",handleItemDefaults:rhe}),s=0,l=0;l{"use strict";var Xu=ja(),xb=to(),nv=Oa(),ju=xi(),dl=Bt(),ahe=dl.strTranslate,h1=ro(),ihe=Ii().arrayEditor,xa=c1(),VT=No(),YO=VT.LINE_SPACING,OT=VT.FROM_TL,UT=VT.FROM_BR;QO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=nhe(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),xb.autoMargin(t,WO(m))}if(s.exit().each(function(){Xu.select(this).selectAll("g."+xa.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+xa.groupClassName).data(a,ohe);f.enter().append("g").classed(xa.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",ahe(l-xa.gripWidth*.5,t._dims.currentValueTotalHeight))}}function HT(e,t){var r=e._dims;return r.inputAreaStart+xa.stepInset+(r.inputAreaLength-2*xa.stepInset)*Math.min(1,Math.max(0,t))}function ZO(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 vhe(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",xa.railTouchRectClass,function(s){s.call(JO,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 dhe(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 tU=me((Jxe,eU)=>{"use strict";var phe=c1();eU.exports={moduleType:"component",name:phe.name,layoutAttributes:BT(),supplyLayoutDefaults:HO(),draw:$O()}});var wb=me((Kxe,aU)=>{"use strict";var rU=Sf();aU.exports={bgcolor:{valType:"color",dflt:rU.background,editType:"plot"},bordercolor:{valType:"color",dflt:rU.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 GT=me((Qxe,iU)=>{"use strict";iU.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 Tb=me(($xe,nU)=>{"use strict";nU.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 lU=me(Mb=>{"use strict";var mhe=jn(),yhe=ro(),oU=Tb(),ghe=No().LINE_SPACING,Ab=oU.name;function sU(e){var t=e&&e[Ab];return t&&t.visible}Mb.isVisible=sU;Mb.makeData=function(e){for(var t=mhe.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var Sb=Bt(),uU=Ii(),fU=jn(),_he=wb(),xhe=GT();cU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;Sb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=uU.newContainer(s,"rangeslider");function h(N,H){return Sb.coerce(l,f,_he,N,H)}var v,m;function _(N,H){return Sb.coerce(v,m,xhe,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")))===fU.name2id(i)}).map(function(N){return N.slice(N.indexOf("y"),N.length)}),E=Sb.simpleMap(C,fU.id2name),L=0;L{"use strict";var bhe=jn().list,whe=ag().getAutoRange,The=Tb();vU.exports=function(t){for(var r=bhe(t,"x",!0),i=0;i{"use strict";var kb=ja(),Ahe=sa(),Mhe=to(),_n=Bt(),Cb=_n.strTranslate,mU=xi(),ov=Oa(),She=tg(),khe=yT(),ZT=jn(),Che=jl(),Ehe=Wh(),Ia=Tb();yU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=Ae.max)Se=ie[Me+1];else if(Te=Ae.pmax)Se=ie[Me+1];else if(Te0?e.touches[0].clientX:0}function Lhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ia.slideBoxClassName).node(),s=e.select("rect."+Ia.grabAreaMinClassName).node(),l=e.select("rect."+Ia.grabAreaMaxClassName).node();function f(){var h=kb.event,v=h.target,m=pU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),M=i.d2p(r._rl[1]),C=Che.coverSlip();this.addEventListener("touchmove",E),this.addEventListener("touchend",L),C.addEventListener("mousemove",E),C.addEventListener("mouseup",L);function E(I){var O=pU(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 Ohe=Bt(),Uhe=wb(),Vhe=GT(),YT=lU();_U.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ohe.extendFlat({},Uhe,{yaxis:Vhe})}}},layoutAttributes:wb(),handleDefaults:hU(),calcAutorange:dU(),draw:gU(),isVisible:YT.isVisible,makeData:YT.makeData,autoMarginOpts:YT.autoMarginOpts}});var Eb=me((nbe,wU)=>{"use strict";var Hhe=qo(),bU=Sf(),Ghe=Ii().templatedArray,Zhe=Ghe("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"});wU.exports={visible:{valType:"boolean",editType:"plot"},buttons:Zhe,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:Hhe({editType:"plot"}),bgcolor:{valType:"color",dflt:bU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:bU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var WT=me((obe,TU)=>{"use strict";TU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var SU=me((sbe,MU)=>{"use strict";var Lb=Bt(),Yhe=Oa(),Whe=Ii(),Xhe=Wl(),AU=Eb(),XT=WT();MU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=Whe.newContainer(r,"rangeselector");function h(M,C){return Lb.coerce(l,f,AU,M,C)}var v=Xhe(l,f,{name:"buttons",handleItemDefaults:jhe,calendar:s}),m=h("visible",v.length>0);if(m){var _=Jhe(r,i,a);h("x",_[0]),h("y",_[1]),Lb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),Lb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",Yhe.contrast(T,XT.lightAmount,XT.darkAmount)),h("bordercolor"),h("borderwidth")}};function jhe(e,t,r,i){var a=i.calendar;function s(h,v){return Lb.coerce(e,t,AU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function Jhe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var Khe=Z3(),Qhe=Bt().titleCase;kU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=$he(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function $he(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=Khe["utc"+Qhe(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var FU=me((ube,RU)=>{"use strict";var Pb=ja(),eve=sa(),tve=to(),EU=Oa(),IU=xi(),qc=Bt(),LU=qc.strTranslate,Db=ro(),rve=jn(),KT=No(),DU=KT.LINE_SPACING,PU=KT.FROM_TL,zU=KT.FROM_BR,JT=WT(),ave=CU();RU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(ive(t),nve);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Pb.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(qc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Pb.select(this),_=ave(l,v);v._isActive=ove(l,v,_),m.call(jT,f,v),m.call(lve,f,v,t),m.on("click",function(){t._dragged||eve.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(jT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(jT,f,v)})}),fve(t,h,f,l._name,s)})};function ive(e){for(var t=rve.list(e,"x",!0),r=[],i=0;i{"use strict";qU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Eb()}}},layoutAttributes:Eb(),handleDefaults:SU(),draw:FU()}});var zb=me(QT=>{"use strict";var BU=yn().extendFlat;QT.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:BU({},r,{}),y:BU({},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};QT.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 f=r("domain.column");f!==void 0&&(f{"use strict";var cve=Bt(),hve=b0().counter,vve=zb().attributes,OU=eo().idRegex,dve=Ii(),$T={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:[hve("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OU.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:vve({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 Ib(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 pve(e,t){var r=e.grid||{},i=Ib(t,r,"x"),a=Ib(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=dve.newContainer(t,"grid");function T(H,V){return cve.coerce(r,_,$T,H,V)}var M=T("rows",v),C=T("columns",m);if(!(M*C>1)){delete t.grid;return}if(!s&&!l&&!f){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:UU("x",T,O,z,C),y:UU("y",T,q,N,M,I)}}function UU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";ZU.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 XU=me((dbe,WU)=>{"use strict";var YU=Da(),yve=sa(),gve=Bt(),_ve=Ii(),xve=eA();WU.exports=function(e,t,r,i){var a="error_"+i.axis,s=_ve.newContainer(t,a),l=e[a]||{};function f(C,E){return gve.coerce(l,s,xve,C,E)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var M=t["error_"+i.inherit];(M||{}).visible&&f(T,!(l.color||YU(l.thickness)||YU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",yve.traceIs(t,"gl3d")?0:4))}}});var tA=me((pbe,JU)=>{"use strict";JU.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=jU(r,t.value),f=jU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function jU(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 $U=me((mbe,QU)=>{"use strict";var rA=Da(),bve=sa(),aA=Xi(),wve=Bt(),Tve=tA();QU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var eV=ja(),sv=Da(),Ave=xi(),Mve=rs();tV.exports=function(t,r,i,a){var s,l=i.xaxis,f=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=Mve.hasMarkers(_)&&_.marker.maxdisplayed>0;!M.visible&&!T.visible&&(m=[]);var L=eV.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),Ave.setClipUrl(L,i.layerClipId,t),L.each(function(O){var q=eV.select(this),z=Sve(O,l,f);if(!(E&&!O.vis)){var N,H=q.select("path.yerror");if(M.visible&&sv(z.x)&&sv(z.yh)&&sv(z.ys)){var V=M.width;N="M"+(z.x-V)+","+z.yh+"h"+2*V+"m-"+V+",0V"+z.ys,z.noYS||(N+="m-"+V+",0h"+2*V),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 Sve(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 nV=me((gbe,iV)=>{"use strict";var kve=ja(),aV=Oa();iV.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=kve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(aV.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(aV.stroke,s.color)})}});var lV=me((_be,sV)=>{"use strict";var v1=Bt(),oV=il().overrideAll,d1=eA(),Kd={error_x:v1.extendFlat({},d1),error_y:v1.extendFlat({},d1)};delete Kd.error_x.copy_zstyle;delete Kd.error_y.copy_zstyle;delete Kd.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;sV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Kd,bar:Kd,histogram:Kd,scatter3d:oV(p1,"calc","nested"),scattergl:oV(Kd,"calc","nested")}},supplyDefaults:XU(),calc:$U(),makeComputeError:tA(),plot:rV(),style:nV(),hoverInfo:Cve};function Cve(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 fV=me((xbe,uV)=>{"use strict";uV.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 yV=me((bbe,mV)=>{"use strict";var lv=ja(),iA=Mf(),Fb=to(),cV=sa(),Nc=Xi(),Rb=jl(),uu=Bt(),Ku=uu.strTranslate,pV=yn().extendFlat,nA=Wh(),Ju=xi(),oA=Oa(),Eve=tg(),Lve=ro(),Dve=Ef().flipScale,Pve=vT(),zve=dT(),Ive=Nu(),sA=No(),hV=sA.LINE_SPACING,vV=sA.FROM_TL,dV=sA.FROM_BR,Qi=fV().cn;function Rve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Qi.colorbar).data(Fve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Qi.colorbar,!0),r.each(function(i){var a=lv.select(this);uu.ensureSingle(a,"rect",Qi.cbbg),uu.ensureSingle(a,"g",Qi.cbfills),uu.ensureSingle(a,"g",Qi.cblines),uu.ensureSingle(a,"g",Qi.cbaxis,function(l){l.classed(Qi.crisp,!0)}),uu.ensureSingle(a,"g",Qi.cbtitleunshift,function(l){l.append("g").classed(Qi.cbtitle,!0)}),uu.ensureSingle(a,"rect",Qi.cboutline);var s=qve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&Nve(a,i,e)}),r.exit().each(function(i){Fb.autoMargin(e,i._id)}).remove(),r.order()}function Fve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return pV(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 f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?Dve(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var ze=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));It*=ze*uu.roundUp(de/ze,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(st.tick0=0)}st.dtick=It}st.domain=i?[Ye+C/z.h,Ye+pe-C/z.h]:[Ye+M/z.w,Ye+pe-M/z.w],st.setScale(),e.attr("transform",Ku(Math.round(z.l),Math.round(z.t)));var _e=e.select("."+Qi.cbtitleunshift).attr("transform",Ku(-Math.round(z.l),-Math.round(z.t))),Ue=st.ticklabelposition,at=st.title.font.size,Je=e.select("."+Qi.cbaxis),Ct,wt=0,xt=0;function qt(Yt,Be){var ut={propContainer:st,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Qi.cbtitle)},sr=Yt.charAt(0)==="h"?Yt.slice(1):"h"+Yt;e.selectAll("."+sr+",."+sr+"-math-group").remove(),Eve.draw(r,Yt,pV(ut,Be||{}))}function Ut(){if(i&&dt||!i&&!dt){var Yt,Be;W==="top"&&(Yt=M+z.l+ke*E,Be=C+z.t+Ee*(1-Ye-pe)+3+at*.75),W==="bottom"&&(Yt=M+z.l+ke*E,Be=C+z.t+Ee*(1-Ye)-3-at*.25),W==="right"&&(Be=C+z.t+Ee*L+3+at*.75,Yt=M+z.l+ke*Ye),qt(st._id+"title",{attributes:{x:Yt,y:Be,"text-anchor":i?"start":"middle"}})}}function Dt(){if(i&&!dt||!i&&dt){var Yt=st.position||0,Be=st._offset+st._length/2,ut,sr;if(W==="right")sr=Be,ut=z.l+ke*Yt+10+at*(st.showticklabels?1:.5);else if(ut=Be,W==="bottom"&&(sr=z.t+Ee*Yt+10+(Ue.indexOf("inside")===-1?st.tickfont.size:0)+(st.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Pr=V.text.split("
").length;sr=z.t+Ee*Yt+10-Se-hV*at*Pr}qt((i?"h":"v")+st._id+"title",{avoid:{selection:lv.select(r).selectAll("g."+st._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 Mt(){if(!i&&!dt||i&&dt){var Yt=e.select("."+Qi.cbtitle),Be=Yt.select("text"),ut=[-h/2,h/2],sr=Yt.select(".h"+st._id+"title-math-group").node(),Pr=15.6;Be.node()&&(Pr=parseInt(Be.node().style.fontSize,10)*hV);var Et;if(sr?(Et=Ju.bBox(sr),xt=Et.width,wt=Et.height,wt>Pr&&(ut[1]-=(wt-Pr)/2)):Be.node()&&!Be.classed(Qi.jsPlaceholder)&&(Et=Ju.bBox(Be.node()),xt=Et.width,wt=Et.height),i){if(wt){if(wt+=5,W==="top")st.domain[1]-=wt/z.h,ut[1]*=-1;else{st.domain[0]+=wt/z.h;var ht=Lve.lineCount(Be);ut[1]+=(1-ht)*Pr}Yt.attr("transform",Ku(ut[0],ut[1])),st.setScale()}}else xt&&(W==="right"&&(st.domain[0]+=(xt+at/2)/z.w),Yt.attr("transform",Ku(ut[0],ut[1])),st.setScale())}e.selectAll("."+Qi.cbfills+",."+Qi.cblines).attr("transform",i?Ku(0,Math.round(z.h*(1-st.domain[1]))):Ku(Math.round(z.w*st.domain[0]),0)),Je.attr("transform",i?Ku(0,Math.round(-z.t)):Ku(Math.round(-z.l),0));var pt=e.select("."+Qi.cbfills).selectAll("rect."+Qi.cbfill).attr("style","").data(le);pt.enter().append("rect").classed(Qi.cbfill,!0).attr("style",""),pt.exit().remove();var Ot=J.map(st.c2p).map(Math.round).sort(function(yr,ur){return yr-ur});pt.each(function(yr,ur){var Lt=[ur===0?J[0]:(le[ur]+le[ur-1])/2,ur===le.length-1?J[1]:(le[ur]+le[ur+1])/2].map(st.c2p).map(Math.round);i&&(Lt[1]=uu.constrain(Lt[1]+(Lt[1]>Lt[0])?1:-1,Ot[0],Ot[1]));var Fe=lv.select(this).attr(i?"x":"y",Xe).attr(i?"y":"x",lv.min(Lt)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(lv.max(Lt)-lv.min(Lt),2));if(t._fillgradient)Ju.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ve=ie(yr).replace("e-","");Fe.attr("fill",iA(Ve).toHexString())}});var er=e.select("."+Qi.cblines).selectAll("path."+Qi.cbline).data(H.color&&H.width?Te:[]);er.enter().append("path").classed(Qi.cbline,!0),er.exit().remove(),er.each(function(yr){var ur=Xe,Lt=Math.round(st.c2p(yr))+H.width/2%1;lv.select(this).attr("d","M"+(i?ur+","+Lt:Lt+","+ur)+(i?"h":"v")+Se).call(Ju.lineGroupStyle,H.width,ee(yr),H.dash)}),Je.selectAll("g."+st._id+"tick,path").remove();var Ht=Xe+Se+(h||0)/2-(t.ticks==="outside"?1:0),Kt=Nc.calcTicks(st),pr=Nc.getTickSigns(st)[2];return Nc.drawTicks(r,st,{vals:st.ticks==="inside"?Nc.clipEnds(st,Kt):Kt,layer:Je,path:Nc.makeTickPath(st,Ht,pr),transFn:Nc.makeTransTickFn(st)}),Nc.drawLabels(r,st,{vals:Kt,layer:Je,transFn:Nc.makeTransTickLabelFn(st),labelFns:Nc.makeLabelFns(st,Ht)})}function Zt(){var Yt,Be=Se+h/2;Ue.indexOf("inside")===-1&&(Yt=Ju.bBox(Je.node()),Be+=i?Yt.width:Yt.height),Ct=_e.select("text");var ut=0,sr=i&&W==="top",Pr=!i&&W==="right",Et=0;if(Ct.node()&&!Ct.classed(Qi.jsPlaceholder)){var ht,pt=_e.select(".h"+st._id+"title-math-group").node();pt&&(i&&dt||!i&&!dt)?(Yt=Ju.bBox(pt),ut=Yt.width,ht=Yt.height):(Yt=Ju.bBox(_e.node()),ut=Yt.right-z.l-(i?Xe:kt),ht=Yt.bottom-z.t-(i?kt:Xe),!i&&W==="top"&&(Be+=Yt.height,Et=Yt.height)),Pr&&(Ct.attr("transform",Ku(ut/2+at/2,0)),ut*=2),Be=Math.max(Be,i?ut:ht)}var Ot=(i?M:C)*2+Be+v+h/2,er=0;!i&&V.text&&T==="bottom"&&L<=0&&(er=Ot/2,Ot+=er,Et+=er),q._hColorbarMoveTitle=er,q._hColorbarMoveCBTitle=Et;var Ht=v+h,Kt=(i?Xe:kt)-Ht/2-(i?M:0),pr=(i?kt:Xe)-(i?Ae:C+Et-er);e.select("."+Qi.cbbg).attr("x",Kt).attr("y",pr).attr(i?"width":"height",Math.max(Ot-er,2)).attr(i?"height":"width",Math.max(Ae+Ht,2)).call(oA.fill,m).call(oA.stroke,t.bordercolor).style("stroke-width",v);var yr=Pr?Math.max(ut-10,0):0;e.selectAll("."+Qi.cboutline).attr("x",(i?Xe:kt+M)+yr).attr("y",(i?kt+C-Ae:Xe)+(sr?wt:0)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(Ae-(i?2*C+wt:2*M+yr),2)).call(oA.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var ur=i?lt*Ot:0,Lt=i?0:(1-it)*Ot-Et;if(ur=O?z.l-ur:-ur,Lt=I?z.t-Lt:-Lt,e.attr("transform",Ku(ur,Lt)),!i&&(v||iA(m).getAlpha()&&!iA.equals(q.paper_bgcolor,m))){var Fe=Je.selectAll("text"),Ve=Fe[0].length,bt=e.select("."+Qi.cbbg).node(),Tt=Ju.bBox(bt),mr=Ju.getTranslate(e),Ar=2;Fe.each(function(vn,nn){var Ki=0,ir=Ve-1;if(nn===Ki||nn===ir){var oi=Ju.bBox(this),Sa=Ju.getTranslate(this),la;if(nn===ir){var Ci=oi.right+Sa.x,ma=Tt.right+mr.x+kt-v-Ar+E;la=ma-Ci,la>0&&(la=0)}else if(nn===Ki){var se=oi.left+Sa.x,te=Tt.left+mr.x+kt+v+Ar;la=te-se,la<0&&(la=0)}la&&(Ve<3?this.setAttribute("transform","translate("+la+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Mr={},Gr=vV[_],pa=dV[_],Ca=vV[T],ii=dV[T],wi=Ot-Se;i?(s==="pixels"?(Mr.y=L,Mr.t=Ae*Ca,Mr.b=Ae*ii):(Mr.t=Mr.b=0,Mr.yt=L+a*Ca,Mr.yb=L-a*ii),f==="pixels"?(Mr.x=E,Mr.l=Ot*Gr,Mr.r=Ot*pa):(Mr.l=wi*Gr,Mr.r=wi*pa,Mr.xl=E-l*Gr,Mr.xr=E+l*pa)):(s==="pixels"?(Mr.x=E,Mr.l=Ae*Gr,Mr.r=Ae*pa):(Mr.l=Mr.r=0,Mr.xl=E+a*Gr,Mr.xr=E-a*pa),f==="pixels"?(Mr.y=1-L,Mr.t=Ot*Ca,Mr.b=Ot*ii):(Mr.t=wi*Ca,Mr.b=wi*ii,Mr.yt=L-l*Ca,Mr.yb=L+l*ii));var vi=t.y<.5?"b":"t",Fi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Gi={r:q.width-Kt-ur,l:Kt+Mr.r,b:q.height-pr-Lt,t:pr+Mr.b};O&&I?Fb.autoMargin(r,t._id,Mr):O?r._fullLayout._reservedMargin[t._id][vi]=Gi[vi]:I||i?r._fullLayout._reservedMargin[t._id][Fi]=Gi[Fi]:r._fullLayout._reservedMargin[t._id][vi]=Gi[vi]}return uu.syncOrAsync([Fb.previousPromises,Ut,Mt,Dt,Fb.previousPromises,Zt],r)}function Nve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;Rb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),nA(e)},moveFn:function(v,m){e.attr("transform",l+Ku(v,m)),f=Rb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=Rb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=Rb.getCursor(f,h,t.xanchor,t.yanchor);nA(e,_)},doneFn:function(){if(nA(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?cV.call("_guiRestyle",r,v,t._traceIndex):cV.call("_guiRelayout",r,v)}}})}function Bve(e,t,r){var i=t._levels,a=[],s=[],l,f,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(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)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,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";gV.exports={moduleType:"component",name:"colorbar",attributes:e2(),supplyDefaults:o5(),draw:yV().draw,hasColorbar:jw()}});var bV=me((Tbe,xV)=>{"use strict";xV.exports={moduleType:"component",name:"legend",layoutAttributes:a4(),supplyLayoutDefaults:n4(),draw:_4(),style:p4()}});var TV=me((Abe,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=me((Mbe,AV)=>{"use strict";AV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var uA=me((Sbe,EV)=>{"use strict";var Uve=sa(),CV=Bt(),lA=CV.extendFlat,SV=CV.extendDeep;function kV(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 Vve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}EV.exports=function(t,r){var i,a=t.data,s=t.layout,l=SV([],a),f=SV({},s,kV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var Hve=O_().EventEmitter,Gve=sa(),Zve=Bt(),LV=Ud(),Yve=uA(),Wve=Gx(),Xve=Zx();function jve(e,t){var r=new Hve,i=Yve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=LV.getDelay(a._fullLayout);setTimeout(function(){var h=Wve(a),v=document.createElement("canvas");v.id=Zve.randstr(),r=Xve({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)}},f)}var l=LV.getRedrawFunc(a);return Gve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}DV.exports=jve});var RV=me((Cbe,IV)=>{"use strict";var zV=Ud(),Jve={getDelay:zV.getDelay,getRedrawFunc:zV.getRedrawFunc,clone:uA(),toSVG:Gx(),svgToImg:Zx(),toImage:PV(),downloadImage:F6()};IV.exports=Jve});var qV=me(Bc=>{"use strict";Bc.version=r_().version;C7();yk();var Kve=sa(),m1=Bc.register=Kve.register,cA=NF(),FV=Object.keys(cA);for(qb=0;qb{"use strict";NV.exports=qV()});var hA=me((Pbe,GV)=>{"use strict";var{hovertemplateAttrs:Qve,texttemplateAttrs:$ve,templatefallbackAttrs:OV}=kf(),ede=Ax(),Xf=zc(),tde=ys(),UV=Sc(),rde=gc().dash,Qd=yn().extendFlat,ade=il().overrideAll,fu=Xf.marker,VV=Xf.line,HV=fu.line,Dbe=["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(" ");GV.exports=ade({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:Qd({},Xf.mode,{dflt:"markers"}),text:Qd({},Xf.text,{}),texttemplate:$ve({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:OV({editType:"plot"}),hovertext:Qd({},Xf.hovertext,{}),textfont:Xf.textfont,textposition:Xf.textposition,line:{color:VV.color,width:VV.width,dash:rde},connectgaps:Xf.connectgaps,marker:Qd({symbol:fu.symbol,opacity:fu.opacity,angle:fu.angle,angleref:Qd({},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:Qd({width:HV.width,dash:HV.dash},UV("marker.line")),gradient:fu.gradient},UV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:ede(),selected:Xf.selected,unselected:Xf.unselected,hoverinfo:Qd({},tde.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Qve(),hovertemplatefallback:OV()},"calc","nested")});var Oc=me((zbe,KV)=>{"use strict";var ide=L_(),ZV="1.13.4",jV='\xA9 OpenStreetMap contributors',YV=['\xA9 Carto',jV].join(" "),WV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),nde=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),JV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jV,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:YV,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:YV,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:WV,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:WV,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:nde,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"}},XV=ide(JV);KV.exports={requiredVersion:ZV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:JV,styleValuesNonMapbox:XV,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@"+ZV+"."].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:",XV.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 m1=me((Ibe,tH)=>{"use strict";var QV=Bt(),$V=Oa().defaultLine,ode=zb().attributes,sde=qo(),lde=zc().textposition,ude=il().overrideAll,fde=Ii().templatedArray,vA=Oc(),eH=sde({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});eH.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var cde=tH.exports=ude({_arrayAttrRegexps:[QV.counterRegex("mapbox",".layers",!0)],domain:ode({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:vA.styleValuesMapbox.concat(vA.styleValuesNonMapbox),dflt:vA.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:fde("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:$V},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:$V}},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:eH,textposition:QV.extendFlat({},lde,{arrayOk:!1})}})},"plot","from-root");cde.uirevision={valType:"any",editType:"none"}});var Bb=me((Rbe,nH)=>{"use strict";var{hovertemplateAttrs:hde,texttemplateAttrs:vde,templatefallbackAttrs:rH}=kf(),dde=Ax(),y1=hA(),Mm=zc(),aH=m1(),pde=ys(),mde=Sc(),$d=yn().extendFlat,yde=il().overrideAll,gde=m1(),iH=y1.line,Sm=y1.marker;nH.exports=yde({lon:y1.lon,lat:y1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:$d({},gde.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:$d({},Sm.opacity,{dflt:1})},mode:$d({},Mm.mode,{dflt:"markers"}),text:$d({},Mm.text,{}),texttemplate:vde({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:rH({editType:"plot"}),hovertext:$d({},Mm.hovertext,{}),line:{color:iH.color,width:iH.width},connectgaps:Mm.connectgaps,marker:$d({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:Sm.opacity,size:Sm.size,sizeref:Sm.sizeref,sizemin:Sm.sizemin,sizemode:Sm.sizemode},mde("marker")),fill:y1.fill,fillcolor:dde(),textfont:aH.layers.symbol.textfont,textposition:aH.layers.symbol.textposition,below:{valType:"string"},selected:{marker:Mm.selected.marker},unselected:{marker:Mm.unselected.marker},hoverinfo:$d({},pde.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hde(),hovertemplatefallback:rH()},"calc","nested")});var dA=me((Fbe,oH)=>{"use strict";var _de=["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"];oH.exports={isSupportedFont:function(e){return _de.indexOf(e)!==-1}}});var uH=me((qbe,lH)=>{"use strict";var g1=Bt(),pA=rs(),xde=B6(),bde=O6(),wde=U6(),Tde=V6(),sH=Bb(),Ade=dA().isSupportedFont;lH.exports=function(t,r,i,a){function s(I,O){return g1.coerce(t,r,sH,I,O)}function l(I,O){return g1.coerce2(t,r,sH,I,O)}var f=Mde(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("texttemplatefallback"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("mode"),s("below"),pA.hasMarkers(r)){xde(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(g1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),g1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}pA.hasLines(r)&&(bde(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||pA.hasText(r)){var L=a.font.family;wde(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ade(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"&&Tde(t,r,i,s),g1.coerceSelectionMarkerOpacity(r,s)};function Mde(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var mA=me((Nbe,cH)=>{"use strict";var fH=Xi();cH.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=fH.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=fH.tickText(l,l.c2l(f[1]),!0).text,a}});var mH=me((Bbe,pH)=>{"use strict";var yA=Da(),hH=Zi().BADNUM,Sde=Z6(),kde=Kg(),Cde=Qx(),Ede=Bt().isArrayOrTypedArray,vH=Bt()._;function dH(e){return e&&typeof e=="string"}pH.exports=function(t,r){var i=Ede(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return dH(T)||yA(T)}:l=dH;for(var f=0;f{"use strict";var Lde=Zi().BADNUM;_1.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};_1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};_1.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 yH=Bt();gH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=yH.isArrayOrTypedArray(r)?yH.mean(r):r,f=.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]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var AH=me((Vbe,TH)=>{"use strict";var bH=Da(),ko=Bt(),Dde=Zi().BADNUM,Vb=Ob(),_H=U0(),Pde=xi(),zde=f5(),Hb=rs(),Ide=dA().isSupportedFont,Rde=gA(),Fde=kc().appendArrayPointValue,qde=ro().NEWLINES,Nde=ro().BR_TAG_ALL;TH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Hb.hasLines(i),f=Hb.hasMarkers(i),h=Hb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=Ub("fill"),M=Ub("line"),C=Ub("circle"),E=Ub("symbol"),L={fill:T,line:M,circle:C,symbol:E};if(!a)return L;var I;if((s||l)&&(I=Vb.calcTraceToLineCoords(r)),s&&(T.geojson=Vb.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(M.geojson=Vb.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=Bde(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":xA(i.cluster.color,i.cluster.step),"circle-radius":xA(i.cluster.size,i.cluster.step),"circle-opacity":xA(i.cluster.opacity,i.cluster.step)}},L.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":xH(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=Ode(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=Rde(i.textposition,q);ko.extendFlat(E.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":xH(i)}),ko.extendFlat(E.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return L};function Ub(e){return{type:e,geojson:Vb.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Bde(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),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(_H.hasColorscale(t,"marker")?m=_H.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=zde(t));var T;l&&(T=function(q){var z=bH(q)?+ko.constrain(q,0,1):0;return h(z)});var M=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),Ide(f)||(f=r);var h=f.split(", ");return h}});var CH=me((Hbe,kH)=>{"use strict";var Ude=Bt(),MH=AH(),km=Oc().traceLayerPrefix,cu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function SH(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:km+t+"-fill",line:km+t+"-line",circle:km+t+"-circle",symbol:km+t+"-symbol",cluster:km+t+"-cluster",clusterCount:km+t+"-cluster-count"},this.below=null}var x1=SH.prototype;x1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&Ude.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)};x1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};x1.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(),f=0;f=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){f?m(q):T(q)}function L(){for(var q=f?cu.cluster:cu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};kH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new SH(t,i.uid,a,s),f=MH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var Vde=Nf(),bA=Bt(),Hde=uT(),Gde=bA.fillText,Zde=Zi().BADNUM,Yde=Oc().traceLayerPrefix;function Wde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=Yde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.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]===Zde||m&&h.indexOf(W.i+1)===-1)return 1/0;var ee=bA.modHalf(J[0],360),ie=J[1],oe=f.project([ee,ie]),fe=oe.x-s.c2p([C,ie]),le=oe.y-l.c2p([ee,r]),Te=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+le*le)-Te,1-3/Te)}if(Vde.getClosest(i,E,e),e.index!==!1){var L=i[e.index],I=L.lonlat,O=[bA.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:f};var V=a._module.formatLabels(L,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=Hde(a,L),e.extraText=EH(a,L,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function EH(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,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&Gde(t,e,v),v.join("
")}LH.exports={hoverPoints:Wde,getExtraText:EH}});var PH=me((Zbe,DH)=>{"use strict";DH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var IH=me((Ybe,zH)=>{"use strict";var Xde=Bt(),jde=rs(),Jde=Zi().BADNUM;zH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!jde.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof wA=="object"&&typeof TA!="undefined"?TA.exports=t():(e=e||self,e.mapboxgl=t())})(wA,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);",f={};e(f),r=s(f),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",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-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=u,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 u,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(;uA?u=x:p=x,x=(p-u)*.5+u}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,u=n.y-this.y;return o*o+u*u},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,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,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),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(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 u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function E(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var L=E(.25,.1,.25,1);function I(n,o,u){return Math.min(u,Math.max(o,n))}function O(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(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&&u(A,x)})})}function z(n){var o=[];for(var u in n)o.push(n[u]);return o}function N(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+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 fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function le(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Te(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Se(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Me(n){return Array.isArray(n)?n.map(Me):typeof n=="object"&&n?Te(n,Me):n}function Ae(n,o){for(var u=0;u=0)return!0;return!1}var pe={};function ke(n){pe[n]||(typeof console!="undefined"&&console.warn(n),pe[n]=!0)}function Ee(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function Xe(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var Ye=null;function kt(n){if(Ye==null){var o=n.navigator?n.navigator.userAgent:null;Ye=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return Ye}function st(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function dt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function It(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var yt=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),de=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,ze=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,_e,Ue,at={now:yt,frame:function(o){var u=de(o);return{cancel:function(){return ze(u)}}},getImageData:function(o,u){u===void 0&&(u=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(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return _e||(_e=_.document.createElement("a")),_e.href=o,_e.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(Ue==null&&(Ue=_.matchMedia("(prefers-reduced-motion: reduce)")),Ue.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},Ct={supported:!1,testSupport:Dt},wt,xt=!1,qt,Ut=!1;_.document&&(qt=_.document.createElement("img"),qt.onload=function(){wt&&Mt(wt),wt=null,Ut=!0},qt.onerror=function(){xt=!0,wt=null},qt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Dt(n){xt||!qt||(Ut?Mt(n):wt=n)}function Mt(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,qt),n.isContextLost())return;Ct.supported=!0}catch(u){}n.deleteTexture(o),xt=!0}var Zt="01";function Yt(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Zt,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Yt();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeGlyphsURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSourceURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSpriteURL=function(o,u,p,x){var A=Ot(o);return ut(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,er(A))},Be.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ut(o))return o;var p=Ot(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=at.devicePixelRatio>=2||u===512?"@2x":"",F=Ct.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||ht(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,u){var p="/v4/",x=/\.[\w]+$/,A=Ot(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 u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,u){for(var p=u?ut(u):!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(u=u||Je.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[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="+u),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 Et(n){return n.indexOf("sku=")>0&&Pr(n)}function ht(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){ke("Unable to write to LocalStorage")}},pr.prototype.processRequests=function(o){},pr.prototype.postEvent=function(o,u,p,x){var A=this;if(Je.EVENTS_URL){var k=Ot(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:Zt,userId:this.anonId},Y=u?H(F,u):F,j={url:er(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=We(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},pr.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};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}(pr),ur=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}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=Kt(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(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(pr),Lt=new ur,Fe=Lt.postTurnstileEvent.bind(Lt),Ve=new yr,bt=Ve.postMapLoadEvent.bind(Ve),Tt="mapbox-tiles",mr=500,Ar=50,Mr=1e3*60*7,Gr;function pa(){_.caches&&!Gr&&(Gr=_.caches.open(Tt))}var Ca;function ii(n,o){if(Ca===void 0)try{new Response(new ReadableStream),Ca=!0}catch(u){Ca=!1}Ca?o(n.body):n.blob().then(o)}function wi(n,o,u){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=_t(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var vn=1/0;function nn(n){vn++,vn>Ar&&(n.getActor().send("enforceCacheSizeLimit",mr),vn=0)}function Ki(n){pa(),Gr&&Gr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ma(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Le=function(n,o){if(!te(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return ue(n,o);if(it()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return he(n,o)},Ne=function(n,o){return Le(H(n,{type:"json"}),o)},et=function(n,o){return Le(H(n,{type:"arrayBuffer"}),o)},We=function(n,o){return Le(H(n,{method:"POST"}),o)};function mt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ft(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Pt})},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=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Pt}function tr(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).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 Wt,Sr,Zr=function(){Wt=[],Sr=0};Zr();var Or=function(n,o){if(Ct.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Sr>=Je.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Wt.push(u),u}Sr++;var p=!1,x=function(){if(!p)for(p=!0,Sr--;Wt.length&&Sr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},gr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var $r=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"}},Ti=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ea={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:"*"}},si={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"}}},Ga={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"}},Ui={"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"}},lp={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:{}}},up={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},$u={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Kf={type:"array",value:"*",minimum:1},$i={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"],mo={"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"}},fp={"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"}},ef={"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"}},Xt={$version:$r,$root:ga,sources:nr,source:Ti,source_vector:Ea,source_raster:si,source_raster_dem:fa,source_geojson:In,source_video:Co,source_image:bs,layer:Ga,layout:Kn,layout_background:du,layout_fill:Ui,layout_circle:pl,layout_heatmap:lp,"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:up,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:$u,expression:Kf,light:$i,paint:Go,paint_fill:mo,"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:fp,paint_raster:wv,paint_hillshade:ef,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,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function cp(n){var o=n.key,u=n.value;return u?[new Ur(o,u,"constants have been deprecated as of v8")]:[]}function yu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var As=[rf,Er,ba,wa,Ts,fs,_l,yo(Aa),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 u=0,p=As;u255?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 u)return u[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 ge=Q.indexOf("("),ve=Q.indexOf(")");if(ge!==-1&&ve+1===Q.length){var Ce=Q.substr(0,ge),qe=Q.substr(ge+1,ve-(ge+1)).split(","),ft=1;switch(Ce){case"rgba":if(qe.length!==4)return null;ft=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ft];case"hsla":if(qe.length!==4)return null;ft=k(qe.pop());case"hsl":if(qe.length!==3)return null;var tt=(parseFloat(qe[0])%360+360)%360/360,St=k(qe[1]),gt=k(qe[2]),At=gt<=.5?gt*(St+1):gt+St-gt*St,Rt=gt*2-At;return[p(F(Rt,At,tt+1/3)*255),p(F(Rt,At,tt)*255),p(F(Rt,At,tt-1/3)*255),ft];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Qf=Pm.parseCSSColor,ni=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};ni.parse=function(o){if(o){if(o instanceof ni)return o;if(typeof o=="string"){var u=Qf(o);if(u)return new ni(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},ni.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},ni.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*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 $f=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};$f.prototype.compare=function(o,u){return this.collator.compare(o,u)},$f.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Mv=function(o,u,p,x,A){this.text=o,this.image=u,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"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];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,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function af(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 $f)return!0;if(n instanceof xn)return!0;if(n instanceof Rn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in ec)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=ec[F],p++}else k=Aa;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=ec[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Wo=function(o){this.type=fs,this.sections=o};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.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=u.parse(F["font-scale"],1,Er),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(ba)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.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 ge=u.parse(o[k],1,Aa);if(!ge)return null;var ve=ge.type.kind;if(ve!=="string"&&ve!=="value"&&ve!=="null"&&ve!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Wo(x)},Wo.prototype.evaluate=function(o){var u=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(u))},Wo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var zm={"to-boolean":wa,"to-color":Ts,"to-number":Er,"to-string":ba},Xo=function(o,u){this.type=o,this.args=u};Xo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=zm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=hp(u[0],u[1],u[2],u[3]),!p))return new ni(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new dn(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}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 Nm(n,o){var u=Fm(n[0]),p=qm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*wl),Math.round(p*x*wl)]}function Bm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function Om(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function kv(n,o){for(var u=!1,p=0,x=o.length;p0&&ne<0||Q<0&&ne>0}function vp(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Vm(A,x)===0?!1:!!(Cv(n,o,u,p)&&Cv(u,p,n,o))}function dp(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}Sv(o,n)}function Gm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function mp(n,o,u,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 u=!0;return n.eachChild(function(p){u&&!jc(p,o)&&(u=!1)}),u}var Al=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Al.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Al(p,u.scope.get(p)):u.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,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new tf),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ne,ge){return ge==="assert"?new ln(ne,[Q]):ge==="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,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.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,u,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,u||null,A,this.errors)},Ml.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new ws(x,o))},Ml.prototype.checkSubtype=function(o,u){var p=cs(o,u);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,u=!0;return n.eachChild(function(p){o?u=u&&Dv(p):u=u&&p instanceof Yo}),u?Xc(n)&&jc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Jc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new dn("Input is not a number.");return 0}var Ms=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ne=u.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 u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Jc(u,x);return p[k].evaluate(o)},Ms.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function pn(n,o,u){return n*(1-u)+o*u}function Ym(n,o,u){return new ni(pn(n.r,o.r,u),pn(n.g,o.g,u),pn(n.b,o.b,u),pn(n.a,o.a,u))}function Wm(n,o,u){return n.map(function(p,x){return pn(p,o[x],u)})}var Sl=Object.freeze({__proto__:null,number:pn,color:Ym,array:Wm}),nf=.95047,vs=1,_p=1.08883,xp=4/29,of=6/29,bp=3*of*of,wp=of*of*of,Xm=Math.PI/180,jm=180/Math.PI;function Pv(n){return n>wp?Math.pow(n,1/3):n/bp+xp}function zv(n){return n>of?n*n*n:bp*(n-xp)}function Iv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function tc(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Kc(n){var o=tc(n.r),u=tc(n.g),p=tc(n.b),x=Pv((.4124564*o+.3575761*u+.1804375*p)/nf),A=Pv((.2126729*o+.7151522*u+.072175*p)/vs),k=Pv((.0193339*o+.119192*u+.9503041*p)/_p);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function Tp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=vs*zv(o),u=nf*zv(u),p=_p*zv(p),new ni(Iv(3.2404542*u-1.5371385*o-.4985314*p),Iv(-.969266*u+1.8760108*o+.041556*p),Iv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function qi(n,o,u){return{l:pn(n.l,o.l,u),a:pn(n.a,o.a,u),b:pn(n.b,o.b,u),alpha:pn(n.alpha,o.alpha,u)}}function Jm(n){var o=Kc(n),u=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:u,alpha:n.a}}function Qc(n){var o=n.h*Xm,u=n.c,p=n.l;return Tp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function Rv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function Ap(n,o,u){return{h:Rv(n.h,o.h,u),c:pn(n.c,o.c,u),l:pn(n.l,o.l,u),alpha:pn(n.alpha,o.alpha,u)}}var sf={forward:Kc,reverse:Tp,interpolate:qi},bu={forward:Jm,reverse:Qc,interpolate:Ap},Fv=Object.freeze({__proto__:null,lab:sf,hcl:bu}),bn=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,Er),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=Ts:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ne=0;ne=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ce);var ft=u.parse(ve,qe,Q);if(!ft)return null;Q=Q||ft.type,j.push([ge,ft])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+Ei(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Jc(u,x),F=u[k],Y=u[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)):sf.reverse(sf.interpolate(sf.forward(Q),sf.forward(ne),j))},bn.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new dn("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new dn("Array index must be an integer, but found "+u+" instead.");return p[u]},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,u){this.type=wa,this.needle=o,this.haystack=u};El.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Aa);return!p||!x?null:Yc(p.type,[wa,ba,Er,rf,Aa])?new El(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(p.type)+" instead")},El.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!_u(u,["boolean","string","number","null"]))throw new dn("Expected first argument to be of type boolean, string, number or null, but found "+Ei(sn(u))+" instead.");if(!_u(p,["string","array"]))throw new dn("Expected second argument to be of type array or string, but found "+Ei(sn(p))+" instead.");return p.indexOf(u)>=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 Ks=function(o,u,p){this.type=Er,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Aa);if(!p||!x)return null;if(!Yc(p.type,[wa,ba,Er,rf,Aa]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,Er);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!_u(u,["boolean","string","number","null"]))throw new dn("Expected first argument to be of type boolean, string, number or null, but found "+Ei(sn(u))+" instead.");if(!_u(p,["string","array"]))throw new dn("Expected second argument to be of type array or string, but found "+Ei(sn(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.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,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};Ss.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.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 Ce=u.parse(j,F,x);if(!Ce)return null;x=x||Ce.type,k.push(Ce)}var qe=u.parse(o[1],1,Aa);if(!qe)return null;var ft=u.parse(o[o.length-1],o.length-1,x);return!ft||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new Ss(p,x,qe,A,k,ft)},Ss.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=sn(u)===this.inputType&&this.outputs[this.cases[u]]||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,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Er);if(!p||!x)return null;if(!Yc(p.type,[yo(Aa),ba,Aa]))return u.error("Expected first argument to be of type array or string, but found "+Ei(p.type)+" instead");if(o.length===4){var A=u.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 u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!_u(u,["string","array"]))throw new dn("Expected first argument to be of type array or string, but found "+Ei(sn(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.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 Mp(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 Km(n,o,u){return o===u}function Qm(n,o,u){return o!==u}function $m(n,o,u){return ou}function kp(n,o,u){return o<=u}function qv(n,o,u){return o>=u}function Nv(n,o,u,p){return p.compare(o,u)===0}function ac(n,o,u,p){return!Nv(n,o,u,p)}function $c(n,o,u,p){return p.compare(o,u)<0}function Cp(n,o,u,p){return p.compare(o,u)>0}function Bv(n,o,u,p){return p.compare(o,u)<=0}function Ep(n,o,u,p){return p.compare(o,u)>=0}function lf(n,o,u){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,Aa);if(!j)return null;if(!Mp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+Ei(j.type)+"'.");var Q=F.parse(k[2],2,Aa);if(!Q)return null;if(!Mp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+Ei(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+Ei(j.type)+"' and '"+Ei(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 dn('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),ge=sn(Y);if(ne.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(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 ey=lf("==",Km,Nv),Lp=lf("!=",Qm,ac),Dp=lf("<",$m,$c),Pp=lf(">",Sp,Cp),Ov=lf("<=",kp,Bv),Uv=lf(">=",qv,Ep),wu=function(o,u,p,x,A){this.type=ba,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};wu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,Er);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,ba),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,ba),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,Er),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.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,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Ei(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new dn("Expected value to be of type string or array, but found "+Ei(sn(u))+" 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(u){o.push(u.serialize())}),o};var ic={"==":ey,"!=":Lp,">":Pp,"<":Dp,">=":Uv,"<=":Ov,array:ln,at:Cl,boolean:ln,case:ks,coalesce:Js,collator:bl,format:Wo,image:Xs,in:El,"index-of":Ks,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 u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=hp(u,p,x,k);if(F)throw new dn(F);return new ni(u/255*k,p/255*k,x/255*k,k)}function eh(n,o){return n in o}function th(n,o){var u=o[n];return typeof u=="undefined"?null:u}function rh(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Pl(n){return{type:n}}Fn.register(ic,{error:[Ws,[ba],function(n,o){var u=o[0];throw new dn(u.evaluate(n))}],typeof:[ba,[Aa],function(n,o){var u=o[0];return Ei(sn(u.evaluate(n)))}],"to-rgba":[yo(Er,4),[Ts],function(n,o){var u=o[0];return u.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 u=o[0];return eh(u.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var u=o[0],p=o[1];return eh(u.evaluate(n),p.evaluate(n))}]]},get:{type:Aa,overloads:[[[ba],function(n,o){var u=o[0];return th(u.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var u=o[0],p=o[1];return th(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Aa,[ba],function(n,o){var u=o[0];return th(u.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[ba,[],function(n){return n.geometryType()}],id:[Aa,[],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:[Aa,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[Er,Pl(Er),function(n,o){for(var u=0,p=0,x=o;p":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[wa,[Aa],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[wa,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[wa,[yo(ba)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[wa,[yo(Aa)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[wa,[ba,yo(Aa)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[wa,[ba,yo(Aa)],function(n,o){var u=o[0],p=o[1];return rh(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:wa,overloads:[[[wa,wa],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Pl(wa),function(n,o){for(var u=0,p=o;u-1}function ih(n){return!!n.expression&&n.expression.interpolated}function di(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function nc(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ip(n){return n}function Rp(n,o){var u=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(u&&(n=yu({},n),n.stops&&(n.stops=n.stops.map(function(cr){return[cr[0],ni.parse(cr[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=qp;else if(k==="categorical"){F=Fp,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]}),u);return n.stops[x][1]}function Hv(n,o,u){var p=n.base!==void 0?n.base:1;if(di(u)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Jc(n.stops.map(function(ne){return ne[0]}),u),k=ty(u,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]||Ip;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Fv[n.colorSpace];j=function(ne,ge){return Q.reverse(Q.interpolate(Q.forward(ne),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],ve=arguments.length;ve--;)ge[ve]=arguments[ve];var Ce=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(Ce===void 0||qe===void 0))return j(Ce,qe,k)}}:j(F,Y,k)}function Np(n,o,u){return o.type==="color"?u=ni.parse(u):o.type==="formatted"?u=xn.fromString(u.toString()):o.type==="resolvedImage"?u=Rn.fromString(u.toString()):di(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),zl(u,n.default,o.default)}function ty(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?ay(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,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,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||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 dn("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 ic}function oc(n,o){var u=new Ml(ic,[],o?Gv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?ah(new Il(p,o)):Tu(u.errors)}var Cs=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Tl(u.expression)};Cs.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Cs.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var Es=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Tl(u.expression),this.interpolationType=x};Es.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Es.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},Es.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,u,p):0};function jo(n,o){if(n=oc(n,o),n.result==="error")return n;var u=n.value.expression,p=Xc(u);if(!p&&!uf(o))return Tu([new ws("","data expressions not supported")]);var x=jc(u,["zoom"]);if(!x&&!zp(o))return Tu([new ws("","zoom expressions not supported")]);var A=cf(u);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 ff=function(o,u){this._parameters=o,this._specification=u,yu(this,Rp(this._parameters,this._specification))};ff.deserialize=function(o){return new ff(o._parameters,o._specification)},ff.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function ry(n,o){if(nc(n))return new ff(n,o);if(Au(n)){var u=jo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=ni.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function cf(n){var o=null;if(n instanceof kl)o=cf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Ur(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function nh(n){var o=n.valueSpec,u=on(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=di(n.value.stops)==="array"&&di(n.value.stops[0])==="array"&&di(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:Ce}});return u==="identity"&&F&&Q.push(new Ur(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Ur(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!ih(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!uf(n.valueSpec)?Q.push(new Ur(n.key,n.value,"property functions not supported")):F&&!zp(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Ur(n.key,n.value,'"property" property is required')),Q;function ne(qe){if(u==="identity")return[new Ur(qe.key,qe.value,'identity function may not have a "stops" property')];var ft=[],tt=qe.value;return ft=ft.concat(Zv({key:qe.key,value:tt,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),di(tt)==="array"&&tt.length===0&&ft.push(new Ur(qe.key,tt,"array must have at least one stop")),ft}function ge(qe){var ft=[],tt=qe.value,St=qe.key;if(di(tt)!=="array")return[new Ur(St,tt,"array expected, "+di(tt)+" found")];if(tt.length!==2)return[new Ur(St,tt,"array length 2 expected, length "+tt.length+" found")];if(j){if(di(tt[0])!=="object")return[new Ur(St,tt,"object expected, "+di(tt[0])+" found")];if(tt[0].zoom===void 0)return[new Ur(St,tt,"object stop key must have zoom")];if(tt[0].value===void 0)return[new Ur(St,tt,"object stop key must have value")];if(k&&k>on(tt[0].zoom))return[new Ur(St,tt[0].zoom,"stop zoom values must appear in ascending order")];on(tt[0].zoom)!==k&&(k=on(tt[0].zoom),A=void 0,x={}),ft=ft.concat(ds({key:St+"[0]",value:tt[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:hf,value:ve}}))}else ft=ft.concat(ve({key:St+"[0]",value:tt[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},tt));return Au(gl(tt[1]))?ft.concat([new Ur(St+"[1]",tt[1],"expressions are not allowed in function stops.")]):ft.concat(li({key:St+"[1]",value:tt[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function ve(qe,ft){var tt=di(qe.value),St=on(qe.value),gt=qe.value!==null?qe.value:ft;if(!p)p=tt;else if(tt!==p)return[new Ur(qe.key,gt,tt+" stop domain type must match previous stop domain type "+p)];if(tt!=="number"&&tt!=="string"&&tt!=="boolean")return[new Ur(qe.key,gt,"stop domain value must be a number, string, or boolean")];if(tt!=="number"&&u!=="categorical"){var At="number expected, "+tt+" found";return uf(o)&&u===void 0&&(At+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ur(qe.key,gt,At)]}return u==="categorical"&&tt==="number"&&(!isFinite(St)||Math.floor(St)!==St)?[new Ur(qe.key,gt,"integer expected, found "+St)]:u!=="categorical"&&tt==="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,u=n.slice(1);oo?1:0}function df(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"?oy(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(pf)):o==="none"?["all"].concat(n.slice(1).map(pf).map(sc)):o==="in"?Op(n[1],n.slice(2)):o==="!in"?sc(Op(n[1],n.slice(2))):o==="has"?Wv(n[1]):o==="!has"?sc(Wv(n[1])):o==="within"?n:!0;return u}function Yv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function oy(n){return["any"].concat(n.map(pf))}function Op(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(u){return typeof u!=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 sc(n){return["!",n]}function sh(n){return go(gl(n.value))?Mu(yu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xv(n)}function Xv(n){var o=n.value,u=n.key;if(di(o)!=="array")return[new Ur(u,o,"array expected, "+di(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Ur(u,o,"filter array must have at least 1 element")];switch(A=A.concat(oh({key:u+"[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(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Ur(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=di(o[1]),x!=="string"&&A.push(new Ur(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[ve+0]&&p>=Q[ve+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Ds.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ne=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var ve=j;ve<=ne;ve++){var Ce=this.d*ve+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(ve),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(ve+1)))&&x.call(this,n,o,u,p,Ce,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,u=0,p=0;p=0)){var ne=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ne:U(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",u=Nl[o],p=u.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,u){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=u):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,u=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 ot(n){return!(De(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 ct(n){for(var o=0,u=n;o-1&&(or=je.error),Vt&&Vt(n)};function zr(){Rr.fire(new ri("pluginStateChange",{pluginStatus:or,pluginURL:hr}))}var Rr=new gr,ea=function(){return or},Vr=function(n){return n({pluginStatus:or,pluginURL:hr}),Rr.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),or===je.deferred||or===je.loading||or===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");hr=at.resolveURL(n),or=je.deferred,Vt=o,zr(),u||Na()},Na=function(){if(or!==je.deferred||!hr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");or=je.loading,zr(),hr&&et({url:hr},function(n){n?fr(n):(or=je.loaded,zr())})},ei={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return or===je.loaded||ei.applyArabicShaping!=null},isLoading:function(){return or===je.loading},setState:function(o){or=o.pluginStatus,hr=o.pluginURL},isParsed:function(){return ei.applyArabicShaping!=null&&ei.processBidirectionalText!=null&&ei.processStyledBidirectionalText!=null},getPluginURL:function(){return hr}},Qa=function(){!ei.isLoading()&&!ei.isLoaded()&&ea()==="deferred"&&Na()},jt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};jt.prototype.isSupportedScript=function(o){return nt(o,ei.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,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=ry(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var na=function(o){this.property=o,this.value=new Jr(o,void 0)};na.prototype.transitioned=function(o,u){return new Di(this.property,this.value,u,H({},o.transition,this.transition),o.now)},na.prototype.untransitioned=function(){return new Di(this.property,this.value,null,{},0)};var oa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};oa.prototype.getValue=function(o){return Me(this._values[o].value.value)},oa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new na(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Me(u))},oa.prototype.getTransition=function(o){return Me(this._values[o].transition)},oa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new na(this._values[o].property)),this._values[o].transition=Me(u)||void 0},oa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.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),Ai=function(o){this.specification=o};Ai.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new jt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new jt(Math.floor(u.zoom),u)),o.expression.evaluate(new jt(Math.floor(u.zoom+1),u)),u)},Ai.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Ai.prototype.interpolate=function(o){return o};var fo=function(o){this.specification=o};fo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,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 u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new na(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Hr),y("DataConstantProperty",Tr),y("CrossFadedDataDrivenProperty",Ni),y("CrossFadedProperty",Ai),y("ColorRampProperty",fo);var mn="-transition",pi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new en(p.layout)),p.paint)){this._transitionablePaint=new oa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.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 le(p,mn)?this._transitionablePaint.getTransition(p.slice(0,-mn.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(le(p,mn))return this._transitionablePaint.setTransition(p.slice(0,-mn.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,ge=ne.isDataDriven();return ge||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),Se(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:lc(this,p.call($a,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Xt,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 bi)||!uf(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,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,xf=5,Ta=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ta.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Ta.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},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*xf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Ta.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=u=Kv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Kv(u,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 uc=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);uc.prototype.bytesPerElement=4,y("StructArrayLayout2i4",uc);var sy=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);sy.prototype.bytesPerElement=8,y("StructArrayLayout4i8",sy);var bf=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);bf.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",bf);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,ge){var ve=this.length;return this.resize(ve+1),this.emplace(ve,p,x,A,k,F,Y,j,Q,ne,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve){var Ce=p*10;return this.uint16[Ce+0]=x,this.uint16[Ce+1]=A,this.uint16[Ce+2]=k,this.uint16[Ce+3]=F,this.uint16[Ce+4]=Y,this.uint16[Ce+5]=j,this.uint16[Ce+6]=Q,this.uint16[Ce+7]=ne,this.uint16[Ce+8]=ge,this.uint16[Ce+9]=ve,p},o}(Ta);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);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),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe){var ft=p*12;return this.int16[ft+0]=x,this.int16[ft+1]=A,this.int16[ft+2]=k,this.int16[ft+3]=F,this.uint16[ft+4]=Y,this.uint16[ft+5]=j,this.uint16[ft+6]=Q,this.uint16[ft+7]=ne,this.int16[ft+8]=ge,this.int16[ft+9]=ve,this.int16[ft+10]=Ce,this.int16[ft+11]=qe,p},o}(Ta);wf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",wf);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.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);ly.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ly);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.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);uy.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",uy);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 ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ne)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge){var ve=p*10,Ce=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[Ce+3]=Q,this.uint16[ve+8]=ne,this.uint16[ve+9]=ge,p},o}(Ta);Qv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Qv);var Zp=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);Zp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Zp);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,ge,ve,Ce,qe,ft,tt,St,gt){var At=this.length;return this.resize(At+1),this.emplace(At,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At){var Rt=p*24,Jt=p*12,dr=p*48;return this.int16[Rt+0]=x,this.int16[Rt+1]=A,this.uint16[Rt+2]=k,this.uint16[Rt+3]=F,this.uint32[Jt+2]=Y,this.uint32[Jt+3]=j,this.uint32[Jt+4]=Q,this.uint16[Rt+10]=ne,this.uint16[Rt+11]=ge,this.uint16[Rt+12]=ve,this.float32[Jt+7]=Ce,this.float32[Jt+8]=qe,this.uint8[dr+36]=ft,this.uint8[dr+37]=tt,this.uint8[dr+38]=St,this.uint32[Jt+10]=gt,this.int16[Rt+22]=At,p},o}(Ta);$v.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",$v);var Yp=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,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br,ya){var Xr=p*34,Ya=p*17;return this.int16[Xr+0]=x,this.int16[Xr+1]=A,this.int16[Xr+2]=k,this.int16[Xr+3]=F,this.int16[Xr+4]=Y,this.int16[Xr+5]=j,this.int16[Xr+6]=Q,this.int16[Xr+7]=ne,this.uint16[Xr+8]=ge,this.uint16[Xr+9]=ve,this.uint16[Xr+10]=Ce,this.uint16[Xr+11]=qe,this.uint16[Xr+12]=ft,this.uint16[Xr+13]=tt,this.uint16[Xr+14]=St,this.uint16[Xr+15]=gt,this.uint16[Xr+16]=At,this.uint16[Xr+17]=Rt,this.uint16[Xr+18]=Jt,this.uint16[Xr+19]=dr,this.uint16[Xr+20]=cr,this.uint16[Xr+21]=Fr,this.uint16[Xr+22]=Cr,this.uint32[Ya+12]=Ir,this.float32[Ya+13]=Qr,this.float32[Ya+14]=qr,this.float32[Ya+15]=Br,this.float32[Ya+16]=ya,p},o}(Ta);Yp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Yp);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 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.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);fy.prototype.bytesPerElement=6,y("StructArrayLayout3i6",fy);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.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);Tf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",Tf);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 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.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);fc.prototype.bytesPerElement=16,y("StructArrayLayout4f16",fc);var k1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={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 u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(co);k1.prototype.size=20;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.get=function(p){return new k1(this,p)},o}(Qv);y("CollisionBoxArray",cy);var cc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(co);cc.prototype.size=48;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 cc(this,p)},o}($v);y("PlacedSymbolArray",hy);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 u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(co);yh.prototype.size=68;var C1=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}(Yp);y("SymbolInstanceArray",C1);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.getoffsetX=function(p){return this.float32[p*1+0]},o}(ph);y("GlyphOffsetArray",E1);var Qs=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}(fy);y("SymbolLineVertexArray",Qs);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 u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(co);L1.prototype.size=8;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 L1(this,p)},o}(Tf);y("FeatureIndexArray",D1);var p3=ui([{name:"a_pos",components:2,type:"Int16"}],4),P1=p3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&ke("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:u.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,u=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^=(u.charCodeAt(ne+2)&255)<<16;case 2:Q^=(u.charCodeAt(ne+1)&255)<<8;case 1:Q^=u.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^=u.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(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.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^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.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,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){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,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ce(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};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,u,p){for(;u>1],A=u-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-uk.x+1||Yk.y+1)&&ke("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Mi(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Ua(n):[]}}function La(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var mi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new uc,this.indexArray=new Cu,this.segments=new Tn,this.programConfigurations=new kr(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};mi.prototype.populate=function(o,u,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||ge<0||ge>=Nr)){var ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),Ce=ve.vertexLength;La(this.layoutVertexArray,ne,ge,-1,-1),La(this.layoutVertexArray,ne,ge,1,-1),La(this.layoutVertexArray,ne,ge,1,1),La(this.layoutVertexArray,ne,ge,-1,1),this.indexArray.emplaceBack(Ce,Ce+1,Ce+2),this.indexArray.emplaceBack(Ce,Ce+3,Ce+2),ve.vertexLength+=4,ve.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",mi,{omit:["layers"]});function ia(n,o){for(var u=0;u=3){for(var A=0;A1){if(zs(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var u=!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&&(u=!u)}return u}function Do(n,o){for(var u=!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&&(u=!u)}return u}function Vl(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];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=Ee(n,o,u[0]);return A!==Ee(n,o,u[1])||A!==Ee(n,o,u[2])||A!==Ee(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Eu(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="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 hY(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function vY(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function dY(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var pY=_3,Fme=function(){var n=rd();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.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*u){F=j=n[0],Y=Q=n[1];for(var Ce=u;Cej&&(j=ne),ge>Q&&(Q=ge);ve=Math.max(j-F,Q-Y),ve=ve!==0?1/ve:0}return py(A,k,u,F,Y,ve),k}function xM(n,o,u,p,x){var A,k;if(x===S3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=TM(A,n[A],n[A+1],k);return k&&R1(k,k.next)&&(yy(k),k=k.next),k}function wh(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(R1(u,u.next)||An(u.prev,u,u.next)===0)){if(yy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function py(n,o,u,p,x,A,k){if(n){!k&&A&&VY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?IY(n,p,x,A):zY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),yy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=RY(wh(n),o,u),py(n,o,u,p,x,A,2)):k===2&&FY(n,o,u,p,x,A):py(wh(n),o,u,p,x,A,1);break}}}}function zY(n){var o=n.prev,u=n,p=n.next;if(An(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(e0(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function IY(n,o,u,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=A3(F,Y,o,u,p),ge=A3(j,Q,o,u,p),ve=n.prevZ,Ce=n.nextZ;ve&&ve.z>=ne&&Ce&&Ce.z<=ge;){if(ve!==n.prev&&ve!==n.next&&e0(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,Ce!==n.prev&&Ce!==n.next&&e0(x.x,x.y,A.x,A.y,k.x,k.y,Ce.x,Ce.y)&&An(Ce.prev,Ce,Ce.next)>=0))return!1;Ce=Ce.nextZ}for(;ve&&ve.z>=ne;){if(ve!==n.prev&&ve!==n.next&&e0(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(;Ce&&Ce.z<=ge;){if(Ce!==n.prev&&Ce!==n.next&&e0(x.x,x.y,A.x,A.y,k.x,k.y,Ce.x,Ce.y)&&An(Ce.prev,Ce,Ce.next)>=0)return!1;Ce=Ce.nextZ}return!0}function RY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!R1(x,A)&&bM(x,p,p.next,A)&&my(x,A)&&my(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),yy(p),yy(p.next),p=n=A),p=p.next}while(p!==n);return wh(p)}function FY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&ZY(k,F)){var Y=wM(k,F);k=wh(k,k.next),Y=wh(Y,Y.next),py(k,o,u,p,x,A),py(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function qY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&e0(xk.x||u.x===k.x&&UY(k,u)))&&(k=u,ne=ge)),u=u.next;while(u!==Y);return k}function UY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function VY(n,o,u,p){var x=n;do x.z===null&&(x.z=A3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,HY(x)}function HY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function A3(n,o,u,p,x){return n=32767*(n-u)*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 GY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function ZY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!YY(n,o)&&(my(n,o)&&my(o,n)&&WY(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||R1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function R1(n,o){return n.x===o.x&&n.y===o.y}function bM(n,o,u,p){var x=q1(An(n,o,u)),A=q1(An(n,o,p)),k=q1(An(u,p,n)),F=q1(An(u,p,o));return!!(x!==A&&k!==F||x===0&&F1(n,u,o)||A===0&&F1(n,p,o)||k===0&&F1(u,n,p)||F===0&&F1(u,o,p))}function F1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function q1(n){return n>0?1:n<0?-1:0}function YY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&bM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function my(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 WY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function wM(n,o){var u=new M3(n.i,n.x,n.y),p=new M3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function TM(n,o,u,p){var x=new M3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function yy(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 M3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}I1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(S3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},T3.default=PY;function XY(n,o,u,p,x){AM(n,o,u||0,p||n.length-1,x||jY)}function AM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+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(u,Math.floor(o-k*Y/A+j)),ne=Math.min(p,Math.floor(o+(A-k)*Y/A+j));AM(n,o,Q,ne,x)}var ge=n[o],ve=u,Ce=p;for(gy(n,u,o),x(n[p],ge)>0&&gy(n,u,p);ve0;)Ce--}x(n[u],ge)===0?gy(n,u,Ce):(Ce++,gy(n,Ce,p)),Ce<=o&&(u=Ce+1),o<=Ce&&(p=Ce-1)}}function gy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function jY(n,o){return no?1:0}function k3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},t0.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},t0.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=t0.types[this.type],Y,j;function Q(ve){for(var Ce=0;Ce>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}kM.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 MM(this._pbf,o,this.extent,this._keys,this._values)};var fW=cW;function cW(n,o){this.layers=n.readFields(hW,{},o)}function hW(n,o,u){if(n===3){var p=new SM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var vW=fW,dW=MM,pW=SM,r0={VectorTile:vW,VectorTileFeature:dW,VectorTileLayer:pW},mW=r0.VectorTileFeature.types,yW=500,L3=Math.pow(2,13);function _y(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*L3)*2+k,x*L3*2,A*L3*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(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new bf,this.indexArray=new Cu,this.programConfigurations=new kr(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Du.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=C3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var At=ft[St-1];if(!gW(gt,At)){ve.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Rt=gt.sub(At)._perp()._unit(),Jt=At.dist(gt);tt+Jt>32768&&(tt=0),_y(this.layoutVertexArray,gt.x,gt.y,Rt.x,Rt.y,0,0,tt),_y(this.layoutVertexArray,gt.x,gt.y,Rt.x,Rt.y,0,1,tt),tt+=Jt,_y(this.layoutVertexArray,At.x,At.y,Rt.x,Rt.y,0,0,tt),_y(this.layoutVertexArray,At.x,At.y,Rt.x,Rt.y,0,1,tt);var dr=ve.vertexLength;this.indexArray.emplaceBack(dr,dr+2,dr+1),this.indexArray.emplaceBack(dr+1,dr+2,dr+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)),mW[o.type]==="Polygon"){for(var cr=[],Fr=[],Cr=ve.vertexLength,Ir=0,Qr=Y;IrNr)||n.y===o.y&&(n.y<0||n.y>Nr)}function _W(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 xW=new qn({"fill-extrusion-opacity":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ni(Xt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),bW={paint:xW},wW=function(n){function o(u){n.call(this,u,bW)}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 el(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),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),ve=this.paint.get("fill-extrusion-base").evaluate(x,A),Ce=MW(ne,Q,Y,0),qe=AW(k,ve,ge,Q),ft=qe[0],tt=qe[1];return TW(ft,tt,Ce)},o}(pi);function xy(n,o){return n.x*o.x+n.y*o.y}function CM(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(cr&&St>Q){var Cr=ve.dist(Ce);if(Cr>2*ne){var Ir=ve.sub(ve.sub(Ce)._mult(ne/Cr)._round());this.updateDistance(Ce,Ir),this.addCurrentVertex(Ir,ft,0,0,ge),Ce=Ir}}var Qr=Ce&&qe,qr=Qr?p:Y?"butt":x;if(Qr&&qr==="round"&&(JtA&&(qr="bevel"),qr==="bevel"&&(Jt>2&&(qr="flipbevel"),Jt100)gt=tt.mult(-1);else{var Br=Jt*ft.add(tt).mag()/ft.sub(tt).mag();gt._perp()._mult(Br*(Fr?-1:1))}this.addCurrentVertex(ve,gt,0,0,ge),this.addCurrentVertex(ve,gt.mult(-1),0,0,ge)}else if(qr==="bevel"||qr==="fakeround"){var ya=-Math.sqrt(Jt*Jt-1),Xr=Fr?ya:0,Ya=Fr?0:ya;if(Ce&&this.addCurrentVertex(ve,ft,Xr,Ya,ge),qr==="fakeround")for(var gi=Math.round(dr*180/Math.PI/zW),Wa=1;Wa2*ne){var kn=ve.add(qe.sub(ve)._mult(ne/Yn)._round());this.updateDistance(ve,kn),this.addCurrentVertex(kn,tt,0,0,ge),ve=kn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>DM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(DM-1):this.scaledDistance,ne=Q*LM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(EM*u)+128,Math.round(EM*p)+128,(k===0?0:k<0?-1:1)+1|(ne&63)<<2,ne>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,ve=this.lineClips.end-this.lineClips.start,Ce=ge/ve;this.layoutVertexArray2.emplaceBack(Ce,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,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var RW=new qn({"line-cap":new Tr(Xt.layout_line["line-cap"]),"line-join":new Hr(Xt.layout_line["line-join"]),"line-miter-limit":new Tr(Xt.layout_line["line-miter-limit"]),"line-round-limit":new Tr(Xt.layout_line["line-round-limit"]),"line-sort-key":new Hr(Xt.layout_line["line-sort-key"])}),FW=new qn({"line-opacity":new Hr(Xt.paint_line["line-opacity"]),"line-color":new Hr(Xt.paint_line["line-color"]),"line-translate":new Tr(Xt.paint_line["line-translate"]),"line-translate-anchor":new Tr(Xt.paint_line["line-translate-anchor"]),"line-width":new Hr(Xt.paint_line["line-width"]),"line-gap-width":new Hr(Xt.paint_line["line-gap-width"]),"line-offset":new Hr(Xt.paint_line["line-offset"]),"line-blur":new Hr(Xt.paint_line["line-blur"]),"line-dasharray":new Ai(Xt.paint_line["line-dasharray"]),"line-pattern":new Ni(Xt.paint_line["line-pattern"]),"line-gradient":new fo(Xt.paint_line["line-gradient"])}),PM={paint:FW,layout:RW},qW=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),zM=new qW(PM.paint.properties["line-width"].specification);zM.useIntegerZoom=!0;var NW=function(n){function o(u){n.call(this,u,PM),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"]=zM.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=IM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(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*IM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=BW(k,ge*j)),Nn(Q,k,ne)},o.prototype.isTileClipped=function(){return!0},o}(pi);function IM(n,o){return o>0?o+2*n:n}function BW(n,o){for(var u=[],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 WW(n){for(var o="",u=0;u>1,Q=-7,ne=u?x-1:0,ge=u?-1:1,ve=n[o+ne];for(ne+=ge,A=ve&(1<<-Q)-1,ve>>=-Q,Q+=F;Q>0;A=A*256+n[o+ne],ne+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ne],ne+=ge,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)},jW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=p?0:A-1,Ce=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+=ge/Y:o+=ge*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[u+ve]=F&255,ve+=Ce,F/=256,x-=8);for(k=k<0;n[u+ve]=k&255,ve+=Ce,k/=256,j-=8);n[u+ve-Ce]|=qe*128},N1={read:XW,write:jW},B1=Pi;function Pi(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Pi.Varint=0,Pi.Fixed64=1,Pi.Bytes=2,Pi.Fixed32=5;var D3=65536*65536,FM=1/D3,JW=12,qM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Pi.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||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=O1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=BM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=O1(this.buf,this.pos)+O1(this.buf,this.pos+4)*D3;return this.pos+=8,n},readSFixed64:function(){var n=O1(this.buf,this.pos)+BM(this.buf,this.pos+4)*D3;return this.pos+=8,n},readFloat:function(){var n=N1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=N1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,KW(u,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>=JW&&qM?cX(this.buf,o,n):fX(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!==Pi.Bytes)return n.push(this.readVarint(o));var u=vc(this);for(n=n||[];this.pos127;);else if(o===Pi.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Pi.Fixed32)this.pos+=4;else if(o===Pi.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){QW(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=hX(this.buf,n,this.pos);var u=this.pos-o;u>=128&&NM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(n){this.realloc(4),N1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),N1.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 u=0;u=128&&NM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,Pi.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,tX,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,rX,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,nX,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,aX,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,iX,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,oX,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,sX,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,lX,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,uX,o)},writeBytesField:function(n,o){this.writeTag(n,Pi.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,Pi.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,Pi.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,Pi.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function KW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return a0(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function vc(n){return n.type===Pi.Bytes?n.readVarint()+n.pos:n.pos+1}function a0(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function QW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),$W(u,p,o),eX(p,o)}function $W(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function eX(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((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 NM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function tX(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function BM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function fX(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)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 cX(n,o,u){return qM.decode(n.subarray(o,u))}function hX(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var P3=3;function vX(n,o,u){n===1&&u.readMessage(dX,o)}function dX(n,o,u){if(n===3){var p=u.readMessage(pX,{}),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*P3,height:F+2*P3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function pX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function mX(n){return new B1(n).readFields(vX,[])}var OM=P3;function UM(n){for(var o=0,u=0,p=0,x=n;p=0;ve--){var Ce=F[ve];if(!(ge.w>Ce.w||ge.h>Ce.h)){if(ge.x=Ce.x,ge.y=Ce.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===Ce.w&&ge.h===Ce.h){var qe=F.pop();ve=0&&x>=o&&Af[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(n0.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=HM?null:++this.imageSectionID:(this.imageSectionID=VM,this.imageSectionID)};function gX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ne=0;ne0&&kn>Fr&&(Fr=kn)}else{var Xa=u[Ir.fontStack],Va=Xa&&Xa[qr];if(Va&&Va.rect)Xr=Va.rect,ya=Va.metrics;else{var Si=o[Ir.fontStack],zi=Si&&Si[qr];if(!zi)continue;ya=zi.metrics}Br=(Rt-Ir.scale)*Qn}Wa?(n.verticalizable=!0,cr.push({glyph:qr,imageName:Ya,x:ge,y:ve+Br,vertical:Wa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:Qr,metrics:ya,rect:Xr}),ge+=gi*Ir.scale+j):(cr.push({glyph:qr,imageName:Ya,x:ge,y:ve+Br,vertical:Wa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:Qr,metrics:ya,rect:Xr}),ge+=ya.advance*Ir.scale+j)}if(cr.length!==0){var wo=ge-j;Ce=Math.max(wo,Ce),wX(cr,0,cr.length-1,ft,Fr)}ge=0;var To=A*Rt+Fr;dr.lineOffset=Math.max(Fr,Jt),ve+=To,qe=Math.max(To,qe),++tt}var Wn=ve-Ay,Io=I3(k),Ro=Io.horizontalAlign,Bn=Io.verticalAlign;TX(n.positionedLines,ft,Ro,Bn,Ce,qe,A,Wn,x.length),n.top+=-Bn*Wn,n.bottom=n.top+Wn,n.left+=-Ro*Ce,n.right=n.left+Ce}function wX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function TX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-Ay:Q=(-p*Y+.5)*k;for(var ne=0,ge=n;ne-u/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(ge)}return!0}function QM(n){for(var o=0,u=0;uj){var Ce=(j-Y)/ve,qe=pn(ne.x,ge.x,Ce),ft=pn(ne.y,ge.y,Ce),tt=new o0(qe,ft,ge.angleTo(ne),Q);return tt._round(),!k||KM(n,tt,F,k,o)?tt:void 0}Y+=ve}}function kX(n,o,u,p,x,A,k,F,Y){var j=$M(p,A,k),Q=e7(p,x),ne=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ne=0&&At=0&&Rt=0&&ge+j<=Q){var Jt=new o0(At,Rt,St,Ce);Jt._round(),(!p||KM(n,Jt,A,p,x))&&ve.push(Jt)}}ne+=tt}return!F&&!ve.length&&!k&&(ve=t7(n,ne/2,u,p,x,A,k,!0,Y)),ve}function r7(n,o,u,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 s0=ps;function a7(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*s0,Y=A.paddedRect.h-2*s0,j=n.right-n.left,Q=n.bottom-n.top,ne=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],ve=function(Xa,Va){return Xa+Va[1]-Va[0]},Ce=ne.reduce(ve,0),qe=ge.reduce(ve,0),ft=F-Ce,tt=Y-qe,St=0,gt=Ce,At=0,Rt=qe,Jt=0,dr=ft,cr=0,Fr=tt;if(A.content&&p){var Cr=A.content;St=H1(ne,0,Cr[0]),At=H1(ge,0,Cr[1]),gt=H1(ne,Cr[0],Cr[2]),Rt=H1(ge,Cr[1],Cr[3]),Jt=Cr[0]-St,cr=Cr[1]-At,dr=Cr[2]-Cr[0]-gt,Fr=Cr[3]-Cr[1]-Rt}var Ir=function(Xa,Va,Si,zi){var rn=G1(Xa.stretch-St,gt,j,n.left),fn=Z1(Xa.fixed-Jt,dr,Xa.stretch,Ce),Yn=G1(Va.stretch-At,Rt,Q,n.top),kn=Z1(Va.fixed-cr,Fr,Va.stretch,qe),wo=G1(Si.stretch-St,gt,j,n.left),To=Z1(Si.fixed-Jt,dr,Si.stretch,Ce),Wn=G1(zi.stretch-At,Rt,Q,n.top),Io=Z1(zi.fixed-cr,Fr,zi.stretch,qe),Ro=new v(rn,Yn),Bn=new v(wo,Yn),Fo=new v(wo,Wn),Rs=new v(rn,Wn),mc=new v(fn/k,kn/k),Mh=new v(To/k,Io/k),Sh=o*Math.PI/180;if(Sh){var kh=Math.sin(Sh),p0=Math.cos(Sh),Hl=[p0,-kh,kh,p0];Ro._matMult(Hl),Bn._matMult(Hl),Rs._matMult(Hl),Fo._matMult(Hl)}var K1=Xa.stretch+Xa.fixed,H3=Si.stretch+Si.fixed,Q1=Va.stretch+Va.fixed,G3=zi.stretch+zi.fixed,rl={x:A.paddedRect.x+s0+K1,y:A.paddedRect.y+s0+Q1,w:H3-K1,h:G3-Q1},m0=dr/k/j,$1=Fr/k/Q;return{tl:Ro,tr:Bn,bl:Rs,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:mc,pixelOffsetBR:Mh,minFontScaleX:m0,minFontScaleY:$1,isSDF:u}};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 Qr=i7(ne,ft,Ce),qr=i7(ge,tt,qe),Br=0;Br0&&(Ce=Math.max(10,Ce),this.circleDiameter=Ce)}else{var qe=k.top*F-Y,ft=k.bottom*F+Y,tt=k.left*F-Y,St=k.right*F+Y,gt=k.collisionPadding;if(gt&&(tt-=gt[0]*F,qe-=gt[1]*F,St+=gt[2]*F,ft+=gt[3]*F),Q){var At=new v(tt,qe),Rt=new v(St,qe),Jt=new v(tt,ft),dr=new v(St,ft),cr=Q*Math.PI/180;At._rotate(cr),Rt._rotate(cr),Jt._rotate(cr),dr._rotate(cr),tt=Math.min(At.x,Rt.x,Jt.x,dr.x),St=Math.max(At.x,Rt.x,Jt.x,dr.x),qe=Math.min(At.y,Rt.y,Jt.y,dr.y),ft=Math.max(At.y,Rt.y,Jt.y,dr.y)}o.emplaceBack(u.x,u.y,tt,qe,St,ft,p,x,A)}this.boxEndIndex=o.length},l0=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=EX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};l0.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},l0.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},l0.prototype.peek=function(){return this.data[0]},l0.prototype._up=function(o){for(var u=this,p=u.data,x=u.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},l0.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function EX(n,o){return no?1:0}function LX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!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,ge=Math.min(Q,ne),ve=ge/2,Ce=new l0([],DX);if(ge===0)return new v(p,x);for(var qe=p;qett.d||!tt.d)&&(tt=gt,u&&console.log("found best %d after %d probes",Math.round(1e4*gt.d)/1e4,St)),!(gt.max-tt.d<=o)&&(ve=gt.h/2,Ce.push(new u0(gt.p.x-ve,gt.p.y-ve,ve,n)),Ce.push(new u0(gt.p.x+ve,gt.p.y-ve,ve,n)),Ce.push(new u0(gt.p.x-ve,gt.p.y+ve,ve,n)),Ce.push(new u0(gt.p.x+ve,gt.p.y+ve,ve,n)),St+=4)}return u&&(console.log("num probes: "+St),console.log("best distance: "+tt.d)),tt.p}function DX(n,o){return o.max-n.max}function u0(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=PX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function PX(n,o){for(var u=!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&&(u=!u),p=Math.min(p,hc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function zX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=Nr||Hl.y<0||Hl.y>=Nr||FX(n,Hl,p0,u,p,x,qr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,tt,Rt,cr,Y,gt,Jt,Fr,ve,o,A,j,Q,k)};if(Cr==="line")for(var ya=0,Xr=r7(o.geometry,0,0,Nr,Nr);ya1){var Yn=SX(fn,dr,u.vertical||Ce,p,qe,St);Yn&&Br(fn,Yn)}}else if(o.type==="Polygon")for(var kn=0,wo=k3(o.geometry,0);knTh&&ke(n.layerIds[0]+': Value for "text-size" is >= '+My+'. Reduce your "text-size".')):ft.kind==="composite"&&(tt=[Pu*ve.compositeTextSizes[0].evaluate(k,{},Ce),Pu*ve.compositeTextSizes[1].evaluate(k,{},Ce)],(tt[0]>Th||tt[1]>Th)&&ke(n.layerIds[0]+': Value for "text-size" is >= '+My+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,tt,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,Ce);for(var St=0,gt=Q;StTh&&ke(n.layerIds[0]+': Value for "icon-size" is >= '+My+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Bn=[Pu*Rt.compositeIconSizes[0].evaluate(At,{},dr),Pu*Rt.compositeIconSizes[1].evaluate(At,{},dr)],(Bn[0]>Th||Bn[1]>Th)&&ke(n.layerIds[0]+': Value for "icon-size" is >= '+My+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Wn,Bn,gt,St,At,!1,o,Cr.lineStartIndex,Cr.lineLength,-1,dr),Wa=n.icon.placedSymbolArray.length-1,Io&&(Xr=Io.length*4,n.addSymbols(n.icon,Io,Bn,gt,St,At,Is.vertical,o,Cr.lineStartIndex,Cr.lineLength,-1,dr),Xa=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var Rs=p.horizontal[Fo];if(!Ir){Si=w(Rs.text);var mc=F.layout.get("text-rotate").evaluate(At,{},dr);Ir=new Y1(Y,o,j,Q,ne,Rs,ge,ve,Ce,mc)}var Mh=Rs.positionedLines.length===1;if(Ya+=o7(n,o,Rs,A,F,Ce,At,qe,Cr,p.vertical?Is.horizontal:Is.horizontalOnly,Mh?Object.keys(p.horizontal):[Fo],Va,Wa,Rt,dr),Mh)break}p.vertical&&(gi+=o7(n,o,p.vertical,A,F,Ce,At,qe,Cr,Is.vertical,["vertical"],Va,Xa,Rt,dr));var Sh=Ir?Ir.boxStartIndex:n.collisionBoxArray.length,kh=Ir?Ir.boxEndIndex:n.collisionBoxArray.length,p0=qr?qr.boxStartIndex:n.collisionBoxArray.length,Hl=qr?qr.boxEndIndex:n.collisionBoxArray.length,K1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,H3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,Q1=Br?Br.boxStartIndex:n.collisionBoxArray.length,G3=Br?Br.boxEndIndex:n.collisionBoxArray.length,rl=-1,m0=function(Cy,T7){return Cy&&Cy.circleDiameter?Math.max(Cy.circleDiameter,T7):T7};rl=m0(Ir,rl),rl=m0(qr,rl),rl=m0(Qr,rl),rl=m0(Br,rl);var $1=rl>-1?1:0;$1&&(rl*=cr/Qn),n.glyphOffsetArray.length>=yi.MAX_GLYPHS&&ke("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),At.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,At.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Va.right>=0?Va.right:-1,Va.center>=0?Va.center:-1,Va.left>=0?Va.left:-1,Va.vertical||-1,Wa,Xa,Si,Sh,kh,p0,Hl,K1,H3,Q1,G3,j,Ya,gi,ya,Xr,$1,0,ge,zi,rn,rl)}function qX(n,o,u,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 ge=u.iconDependencies,ve=u.glyphDependencies,Ce=u.availableImages,qe=new jt(this.zoom),ft=0,tt=o;ft=0;for(var gi=0,Wa=Fr.sections;gi=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},yi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},yi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},yi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},yi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},yi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),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&&u.addIndicesForPlacedSymbol(u.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",yi,{omit:["layers","collisionBoxArray","features","compareText"]}),yi.MAX_GLYPHS=65535,yi.addDynamicAttributes=N3;function UX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var VX=new qn({"symbol-placement":new Tr(Xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Tr(Xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Tr(Xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Hr(Xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Tr(Xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Tr(Xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Tr(Xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Tr(Xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Tr(Xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Hr(Xt.layout_symbol["icon-size"]),"icon-text-fit":new Tr(Xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Tr(Xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Hr(Xt.layout_symbol["icon-image"]),"icon-rotate":new Hr(Xt.layout_symbol["icon-rotate"]),"icon-padding":new Tr(Xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Tr(Xt.layout_symbol["icon-keep-upright"]),"icon-offset":new Hr(Xt.layout_symbol["icon-offset"]),"icon-anchor":new Hr(Xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Tr(Xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Tr(Xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Tr(Xt.layout_symbol["text-rotation-alignment"]),"text-field":new Hr(Xt.layout_symbol["text-field"]),"text-font":new Hr(Xt.layout_symbol["text-font"]),"text-size":new Hr(Xt.layout_symbol["text-size"]),"text-max-width":new Hr(Xt.layout_symbol["text-max-width"]),"text-line-height":new Tr(Xt.layout_symbol["text-line-height"]),"text-letter-spacing":new Hr(Xt.layout_symbol["text-letter-spacing"]),"text-justify":new Hr(Xt.layout_symbol["text-justify"]),"text-radial-offset":new Hr(Xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Tr(Xt.layout_symbol["text-variable-anchor"]),"text-anchor":new Hr(Xt.layout_symbol["text-anchor"]),"text-max-angle":new Tr(Xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Tr(Xt.layout_symbol["text-writing-mode"]),"text-rotate":new Hr(Xt.layout_symbol["text-rotate"]),"text-padding":new Tr(Xt.layout_symbol["text-padding"]),"text-keep-upright":new Tr(Xt.layout_symbol["text-keep-upright"]),"text-transform":new Hr(Xt.layout_symbol["text-transform"]),"text-offset":new Hr(Xt.layout_symbol["text-offset"]),"text-allow-overlap":new Tr(Xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Tr(Xt.layout_symbol["text-ignore-placement"]),"text-optional":new Tr(Xt.layout_symbol["text-optional"])}),HX=new qn({"icon-opacity":new Hr(Xt.paint_symbol["icon-opacity"]),"icon-color":new Hr(Xt.paint_symbol["icon-color"]),"icon-halo-color":new Hr(Xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Hr(Xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Hr(Xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Tr(Xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Tr(Xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Hr(Xt.paint_symbol["text-opacity"]),"text-color":new Hr(Xt.paint_symbol["text-color"],{runtimeType:Ts,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Hr(Xt.paint_symbol["text-halo-color"]),"text-halo-width":new Hr(Xt.paint_symbol["text-halo-width"]),"text-halo-blur":new Hr(Xt.paint_symbol["text-halo-blur"]),"text-translate":new Tr(Xt.paint_symbol["text-translate"]),"text-translate-anchor":new Tr(Xt.paint_symbol["text-translate-anchor"])}),B3={paint:HX,layout:VX},h0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:rf,this.defaultValue=o};h0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},h0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},h0.prototype.outputDefined=function(){return!1},h0.prototype.serialize=function(){return null},y("FormatSectionOverride",h0,{omit:["defaultValue"]});var GX=function(n){function o(u){n.call(this,u,B3)}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})}}},v0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else it()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},v0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},v0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=kt(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,ve){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(ve,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ne=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ne[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},v0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function tj(n,o,u){o=Math.pow(2,u)-o-1;var p=h7(n*256,o*256,u),x=h7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function h7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):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 Hi?new Hi(o.lng,o.lat):Hi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Hi?new Hi(o.lng,o.lat):Hi.convert(o),this},Mn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Hi)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(Hi.convert(F))}return this}return!u&&!p?(this._sw=new Hi(x.lng,x.lat),this._ne=new Hi(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Hi((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 Hi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Hi(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 u=Hi.convert(o),p=u.lng,x=u.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 v7=63710088e-1,Hi=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hi.prototype.wrap=function(){return new Hi(O(this.lng,-180,180),this.lat)},Hi.prototype.toArray=function(){return[this.lng,this.lat]},Hi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hi.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=v7*Math.acos(Math.min(A,1));return k},Hi.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Hi(this.lng-x,this.lat-p),new Hi(this.lng+x,this.lat+p))},Hi.convert=function(o){if(o instanceof Hi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Hi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Hi(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 d7=2*Math.PI*v7;function p7(n){return d7*Math.cos(n*Math.PI/180)}function m7(n){return(180+n)/360}function y7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function g7(n,o){return n/p7(o)}function rj(n){return n*360-180}function U3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function aj(n,o){return n*p7(U3(o))}function ij(n){return 1/Math.cos(n*Math.PI/180)}var nd=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};nd.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Hi.convert(o);return new nd(m7(p.lng),y7(p.lat),g7(u,p.lat))},nd.prototype.toLngLat=function(){return new Hi(rj(this.x),U3(this.y))},nd.prototype.toAltitude=function(){return aj(this.z,this.y)},nd.prototype.meterInMercatorCoordinateUnits=function(){return 1/d7*ij(U3(this.y))};var od=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=ky(0,o,o,u,p)};od.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},od.prototype.url=function(o,u){var p=tj(this.x,this.y,this.z),x=nj(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(u==="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 u=Math.pow(2,this.z);return new v((o.x*u-this.x)*Nr,(o.y*u-this.y)*Nr)},od.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var _7=function(o,u){this.wrap=o,this.canonical=u,this.key=ky(o,u.z,u.z,u.x,u.y)},Sn=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new od(p,+x,+A),this.key=ky(u,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 u=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>>u,this.canonical.y>>u)},Sn.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?ky(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):ky(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},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 u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(u,this.wrap,u,p,x),new Sn(u,this.wrap,u,p+1,x),new Sn(u,this.wrap,u,p,x+1),new Sn(u,this.wrap,u,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||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},dc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},dc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},dc.prototype.getPixels=function(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){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=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ne[3]>=0&&Y.insert(F,ne[0],ne[1],ne[2],ne[3])}},pc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new r0.VectorTile(new B1(this.rawTileData)).layers,this.sourceLayerCoder=new j1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=Nr/o.tileSize/o.scale,Y=vf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ne=b7(j),ge=this.grid.query(ne.minX-Q,ne.minY-Q,ne.maxX+Q,ne.maxY+Q),ve=b7(o.cameraQueryGeometry),Ce=this.grid3D.query(ve.minX-Q,ve.minY-Q,ve.maxX+Q,ve.maxY+Q,function(Jt,dr,cr,Fr){return Vl(o.cameraQueryGeometry,Jt-Q,dr-Q,cr+Q,Fr+Q)}),qe=0,ft=Ce;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=$r.maxzoom)&&$r.visibility!=="none"){T(gr,this.zoom,he);var ga=Pt[$r.id]=$r.createBucket({index:mt.bucketLayerIDs.length,layers:gr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Zr,sourceID:this.source});ga.populate(Or,Ft,this.tileID.canonical),mt.bucketLayerIDs.push(gr.map(function(Ga){return Ga.id}))}}}}var nr,Ti,Ea,si,fa=a.mapObject(Ft.glyphDependencies,function(Ga){return Object.keys(Ga).map(Number)});Object.keys(fa).length?Le.send("getGlyphs",{uid:this.uid,stacks:fa},function(Ga,Kn){nr||(nr=Ga,Ti=Kn,bs.call(et))}):Ti={};var In=Object.keys(Ft.iconDependencies);In.length?Le.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"icons"},function(Ga,Kn){nr||(nr=Ga,Ea=Kn,bs.call(et))}):Ea={};var Co=Object.keys(Ft.patternDependencies);Co.length?Le.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Ga,Kn){nr||(nr=Ga,si=Kn,bs.call(et))}):si={},bs.call(this);function bs(){if(nr)return Ne(nr);if(Ti&&Ea&&si){var Ga=new m(Ti),Kn=new a.ImageAtlas(Ea,si);for(var du in Pt){var Ui=Pt[du];Ui instanceof a.SymbolBucket?(T(Ui.layers,this.zoom,he),a.performSymbolLayout(Ui,Ti,Ga.positions,Ea,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ui.hasPattern&&(Ui instanceof a.LineBucket||Ui instanceof a.FillBucket||Ui instanceof a.FillExtrusionBucket)&&(T(Ui.layers,this.zoom,he),Ui.addFeatures(Ft,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Pt).filter(function(pl){return!pl.isEmpty()}),featureIndex:mt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ga.image,imageAtlas:Kn,glyphMap:this.returnDependencies?Ti:null,iconMap:this.returnDependencies?Ea:null,glyphPositions:this.returnDependencies?Ga.positions:null})}}};function T(se,te,ue){for(var he=new a.EvaluationParameters(te),Le=0,Ne=se;Le=0!=!!te&&se.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=[],ue=0,he=this._feature.geometry;ue>31}function it(se,te){for(var ue=se.loadGeometry(),he=se.type,Le=0,Ne=0,et=ue.length,We=0;We>1;kt(se,te,et,he,Le,Ne%2),Ye(se,te,ue,he,et-1,Ne+1),Ye(se,te,ue,et+1,Le,Ne+1)}}function kt(se,te,ue,he,Le,Ne){for(;Le>he;){if(Le-he>600){var et=Le-he+1,We=ue-he+1,mt=Math.log(et),Pt=.5*Math.exp(2*mt/3),Ft=.5*Math.sqrt(mt*Pt*(et-Pt)/et)*(We-et/2<0?-1:1),tr=Math.max(he,Math.floor(ue-We*Pt/et+Ft)),Wt=Math.min(Le,Math.floor(ue+(et-We)*Pt/et+Ft));kt(se,te,ue,tr,Wt,Ne)}var Sr=te[2*ue+Ne],Zr=he,Or=Le;for(st(se,te,he,ue),te[2*Le+Ne]>Sr&&st(se,te,he,Le);ZrSr;)Or--}te[2*he+Ne]===Sr?st(se,te,he,Or):(Or++,st(se,te,Or,Le)),Or<=ue&&(he=Or+1),ue<=Or&&(Le=Or-1)}}function st(se,te,ue,he){dt(se,ue,he),dt(te,2*ue,2*he),dt(te,2*ue+1,2*he+1)}function dt(se,te,ue){var he=se[te];se[te]=se[ue],se[ue]=he}function It(se,te,ue,he,Le,Ne,et){for(var We=[0,se.length-1,0],mt=[],Pt,Ft;We.length;){var tr=We.pop(),Wt=We.pop(),Sr=We.pop();if(Wt-Sr<=et){for(var Zr=Sr;Zr<=Wt;Zr++)Pt=te[2*Zr],Ft=te[2*Zr+1],Pt>=ue&&Pt<=Le&&Ft>=he&&Ft<=Ne&&mt.push(se[Zr]);continue}var Or=Math.floor((Sr+Wt)/2);Pt=te[2*Or],Ft=te[2*Or+1],Pt>=ue&&Pt<=Le&&Ft>=he&&Ft<=Ne&&mt.push(se[Or]);var ca=(tr+1)%2;(tr===0?ue<=Pt:he<=Ft)&&(We.push(Sr),We.push(Or-1),We.push(ca)),(tr===0?Le>=Pt:Ne>=Ft)&&(We.push(Or+1),We.push(Wt),We.push(ca))}return mt}function yt(se,te,ue,he,Le,Ne){for(var et=[0,se.length-1,0],We=[],mt=Le*Le;et.length;){var Pt=et.pop(),Ft=et.pop(),tr=et.pop();if(Ft-tr<=Ne){for(var Wt=tr;Wt<=Ft;Wt++)de(te[2*Wt],te[2*Wt+1],ue,he)<=mt&&We.push(se[Wt]);continue}var Sr=Math.floor((tr+Ft)/2),Zr=te[2*Sr],Or=te[2*Sr+1];de(Zr,Or,ue,he)<=mt&&We.push(se[Sr]);var ca=(Pt+1)%2;(Pt===0?ue-Le<=Zr:he-Le<=Or)&&(et.push(tr),et.push(Sr-1),et.push(ca)),(Pt===0?ue+Le>=Zr:he+Le>=Or)&&(et.push(Sr+1),et.push(Ft),et.push(ca))}return We}function de(se,te,ue,he){var Le=se-ue,Ne=te-he;return Le*Le+Ne*Ne}var ze=function(se){return se[0]},_e=function(se){return se[1]},Ue=function(te,ue,he,Le,Ne){ue===void 0&&(ue=ze),he===void 0&&(he=_e),Le===void 0&&(Le=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Le,this.points=te;for(var et=te.length<65536?Uint16Array:Uint32Array,We=this.ids=new et(te.length),mt=this.coords=new Ne(te.length*2),Pt=0;Pt=Le;Ft--){var tr=+Date.now();mt=this._cluster(mt,Ft),this.trees[Ft]=new Ue(mt,Be,ut,et,Float32Array),he&&console.log("z%d: %d clusters in %dms",Ft,mt.length,+Date.now()-tr)}return he&&console.timeEnd("total time"),this},Je.prototype.getClusters=function(te,ue){var he=((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,et=Math.max(-90,Math.min(90,te[3]));if(te[2]-te[0]>=360)he=-180,Ne=180;else if(he>Ne){var We=this.getClusters([he,Le,180,et],ue),mt=this.getClusters([-180,Le,Ne,et],ue);return We.concat(mt)}for(var Pt=this.trees[this._limitZoom(ue)],Ft=Pt.range(Ut(he),Dt(et),Ut(Ne),Dt(Le)),tr=[],Wt=0,Sr=Ft;Wtue&&(Or+=ri.numPoints||1)}if(Or>=mt){for(var Yr=tr.x*Zr,gr=tr.y*Zr,$r=We&&Zr>1?this._map(tr,!0):null,ga=(Ft<<5)+(ue+1)+this.points.length,nr=0,Ti=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,ue){if(te.numPoints)return ue?Yt({},te.properties):te.properties;var he=this.points[te.index].properties,Le=this.options.map(he);return ue&&Le===he?Yt({},Le):Le};function Ct(se,te,ue,he,Le){return{x:se,y:te,zoom:1/0,id:ue,parentId:-1,numPoints:he,properties:Le}}function wt(se,te){var ue=se.geometry.coordinates,he=ue[0],Le=ue[1];return{x:Ut(he),y:Dt(Le),zoom:1/0,index:te,parentId:-1}}function xt(se){return{type:"Feature",id:se.id,properties:qt(se),geometry:{type:"Point",coordinates:[Mt(se.x),Zt(se.y)]}}}function qt(se){var te=se.numPoints,ue=te>=1e4?Math.round(te/1e3)+"k":te>=1e3?Math.round(te/100)/10+"k":te;return Yt(Yt({},se.properties),{cluster:!0,cluster_id:se.id,point_count:te,point_count_abbreviated:ue})}function Ut(se){return se/360+.5}function Dt(se){var te=Math.sin(se*Math.PI/180),ue=.5-.25*Math.log((1+te)/(1-te))/Math.PI;return ue<0?0:ue>1?1:ue}function Mt(se){return(se-.5)*360}function Zt(se){var te=(180-se*360)*Math.PI/180;return 360*Math.atan(Math.exp(te))/Math.PI-90}function Yt(se,te){for(var ue in te)se[ue]=te[ue];return se}function Be(se){return se.x}function ut(se){return se.y}function sr(se,te,ue,he){for(var Le=he,Ne=ue-te>>1,et=ue-te,We,mt=se[te],Pt=se[te+1],Ft=se[ue],tr=se[ue+1],Wt=te+3;WtLe)We=Wt,Le=Sr;else if(Sr===Le){var Zr=Math.abs(Wt-Ne);Zrhe&&(We-te>3&&sr(se,te,We,he),se[We+2]=Le,ue-We>3&&sr(se,We,ue,he))}function Pr(se,te,ue,he,Le,Ne){var et=Le-ue,We=Ne-he;if(et!==0||We!==0){var mt=((se-ue)*et+(te-he)*We)/(et*et+We*We);mt>1?(ue=Le,he=Ne):mt>0&&(ue+=et*mt,he+=We*mt)}return et=se-ue,We=te-he,et*et+We*We}function Et(se,te,ue,he){var Le={id:typeof se=="undefined"?null:se,type:te,geometry:ue,tags:he,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ht(Le),Le}function ht(se){var te=se.geometry,ue=se.type;if(ue==="Point"||ue==="MultiPoint"||ue==="LineString")pt(se,te);else if(ue==="Polygon"||ue==="MultiLineString")for(var he=0;he0&&(he?et+=(Le*Pt-mt*Ne)/2:et+=Math.sqrt(Math.pow(mt-Le,2)+Math.pow(Pt-Ne,2))),Le=mt,Ne=Pt}var Ft=te.length-3;te[2]=1,sr(te,0,Ft,ue),te[Ft+2]=1,te.size=Math.abs(et),te.start=0,te.end=te.size}function pr(se,te,ue,he){for(var Le=0;Le1?1:ue}function Lt(se,te,ue,he,Le,Ne,et,We){if(ue/=te,he/=te,Ne>=ue&&et=he)return null;for(var mt=[],Pt=0;Pt=ue&&Zr=he)continue;var Or=[];if(Wt==="Point"||Wt==="MultiPoint")Fe(tr,Or,ue,he,Le);else if(Wt==="LineString")Ve(tr,Or,ue,he,Le,!1,We.lineMetrics);else if(Wt==="MultiLineString")Tt(tr,Or,ue,he,Le,!1);else if(Wt==="Polygon")Tt(tr,Or,ue,he,Le,!0);else if(Wt==="MultiPolygon")for(var ca=0;ca=ue&&et<=he&&(te.push(se[Ne]),te.push(se[Ne+1]),te.push(se[Ne+2]))}}function Ve(se,te,ue,he,Le,Ne,et){for(var We=bt(se),mt=Le===0?Ar:Mr,Pt=se.start,Ft,tr,Wt=0;Wtue&&(tr=mt(We,Sr,Zr,ca,ua,ue),et&&(We.start=Pt+Ft*tr)):qa>he?ri=ue&&(tr=mt(We,Sr,Zr,ca,ua,ue),Yr=!0),ri>he&&qa<=he&&(tr=mt(We,Sr,Zr,ca,ua,he),Yr=!0),!Ne&&Yr&&(et&&(We.end=Pt+Ft*tr),te.push(We),We=bt(se)),et&&(Pt+=Ft)}var gr=se.length-3;Sr=se[gr],Zr=se[gr+1],Or=se[gr+2],qa=Le===0?Sr:Zr,qa>=ue&&qa<=he&&mr(We,Sr,Zr,Or),gr=We.length-3,Ne&&gr>=3&&(We[gr]!==We[0]||We[gr+1]!==We[1])&&mr(We,We[0],We[1],We[2]),We.length&&te.push(We)}function bt(se){var te=[];return te.size=se.size,te.start=se.start,te.end=se.end,te}function Tt(se,te,ue,he,Le,Ne){for(var et=0;etet.maxX&&(et.maxX=Ft),tr>et.maxY&&(et.maxY=tr)}return et}function Fi(se,te,ue,he){var Le=te.geometry,Ne=te.type,et=[];if(Ne==="Point"||Ne==="MultiPoint")for(var We=0;We0&&te.size<(Le?et:he)){ue.numPoints+=te.length/3;return}for(var We=[],mt=0;mtet)&&(ue.numSimplified++,We.push(te[mt]),We.push(te[mt+1])),ue.numPoints++;Le&&vn(We,Ne),se.push(We)}function vn(se,te){for(var ue=0,he=0,Le=se.length,Ne=Le-2;he0===te)for(he=0,Le=se.length;he24)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 he=Ot(se,te);this.tiles={},this.tileCoords=[],ue&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",te.indexMaxZoom,te.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),he=Gr(he,te),he.length&&this.splitTile(he,0,0,0),ue&&(he.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)))}Ki.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ki.prototype.splitTile=function(se,te,ue,he,Le,Ne,et){for(var We=[se,te,ue,he],mt=this.options,Pt=mt.debug;We.length;){he=We.pop(),ue=We.pop(),te=We.pop(),se=We.pop();var Ft=1<1&&console.time("creation"),Wt=this.tiles[tr]=vi(se,te,ue,he,mt),this.tileCoords.push({z:te,x:ue,y:he}),Pt)){Pt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",te,ue,he,Wt.numFeatures,Wt.numPoints,Wt.numSimplified),console.timeEnd("creation"));var Sr="z"+te;this.stats[Sr]=(this.stats[Sr]||0)+1,this.total++}if(Wt.source=se,Le){if(te===mt.maxZoom||te===Le)continue;var Zr=1<1&&console.time("clipping");var Or=.5*mt.buffer/mt.extent,ca=.5-Or,ua=.5+Or,qa=1+Or,ri,Yr,gr,$r,ga,nr;ri=Yr=gr=$r=null,ga=Lt(se,Ft,ue-Or,ue+ua,0,Wt.minX,Wt.maxX,mt),nr=Lt(se,Ft,ue+ca,ue+qa,0,Wt.minX,Wt.maxX,mt),se=null,ga&&(ri=Lt(ga,Ft,he-Or,he+ua,1,Wt.minY,Wt.maxY,mt),Yr=Lt(ga,Ft,he+ca,he+qa,1,Wt.minY,Wt.maxY,mt),ga=null),nr&&(gr=Lt(nr,Ft,he-Or,he+ua,1,Wt.minY,Wt.maxY,mt),$r=Lt(nr,Ft,he+ca,he+qa,1,Wt.minY,Wt.maxY,mt),nr=null),Pt>1&&console.timeEnd("clipping"),We.push(ri||[],te+1,ue*2,he*2),We.push(Yr||[],te+1,ue*2,he*2+1),We.push(gr||[],te+1,ue*2+1,he*2),We.push($r||[],te+1,ue*2+1,he*2+1)}}},Ki.prototype.getTile=function(se,te,ue){var he=this.options,Le=he.extent,Ne=he.debug;if(se<0||se>24)return null;var et=1<1&&console.log("drilling down to z%d-%d-%d",se,te,ue);for(var mt=se,Pt=te,Ft=ue,tr;!tr&&mt>0;)mt--,Pt=Math.floor(Pt/2),Ft=Math.floor(Ft/2),tr=this.tiles[ir(mt,Pt,Ft)];return!tr||!tr.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",mt,Pt,Ft),Ne>1&&console.time("drilling down"),this.splitTile(tr.source,mt,Pt,Ft,se,te,ue),Ne>1&&console.timeEnd("drilling down"),this.tiles[We]?ii(this.tiles[We],Le):null)};function ir(se,te,ue){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],Ze=Re.width,Ge=Re.height,Oe=Re.x,Ke=Re.y,vt=Re.sdf,zt=Re.pixelRatio,Nt=Re.stretchX,Qt=Re.stretchY,rr=Re.content,Gt=new a.RGBAImage({width:Ze,height:Ge});a.RGBAImage.copy(ce,Gt,{x:Oe,y:Ke},{x:0,y:0},{width:Ze,height:Ge}),we[be]={data:Gt,pixelRatio:zt,sdf:vt,stretchX:Nt,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))}V.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:Ze});return}var Oe=Re.requests[Ge];Oe||(Oe=Re.requests[Ge]=[],ee.loadGlyphRange(we,Ge,d.url,d.requestManager,function(Ke,vt){if(vt){for(var zt in vt)d._doesCharSupportLocalGlyph(+zt)||(Re.glyphs[+zt]=vt[+zt]);Re.ranges[Ge]=!0}for(var Nt=0,Qt=Oe;Nt1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),Ze=void 0,Ge=D/d*(w+1);if(re.isDash){var Oe=w-Math.abs(Ge);Ze=Math.sqrt(Re*Re+Oe*Oe)}else Ze=w-Math.sqrt(Re*Re+Ge*Ge);this.data[G+ce]=Math.max(0,Math.min(255,Ze+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),Ze=re.isDash?Re:-Re;this.data[G+ce]=Math.max(0,Math.min(255,Ze+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),lt=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),it=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=_t(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,lt.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 _t(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,lt.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}(it),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,lt.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},wt.prototype.has=function(c){return c.wrapped().key in this.data},wt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},wt.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},wt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},wt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},wt.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},wt.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},wt.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[Ze]&&(re.neighboringTiles[Ze].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(mt(this._source.type)){for(var ce={},we={},be=Object.keys(re),Re=0,Ze=be;Rethis._source.maxzoom){var vt=Oe.children(this._source.maxzoom)[0],zt=this.getTile(vt);if(zt&&zt.hasData()){D[vt.key]=vt;continue}}else{var Nt=Oe.children(this._source.maxzoom);if(D[Nt[0].key]&&D[Nt[1].key]&&D[Nt[2].key]&&D[Nt[3].key])continue}for(var Qt=Ke.wasRequested(),rr=Oe.overscaledZ-1;rr>=G;--rr){var Gt=Oe.scaledTo(rr);if(R[Gt.key]||(R[Gt.key]=!0,Ke=this.getTile(Gt),!Ke&&Qt&&(Ke=this._addTile(Gt)),Ke&&(D[Gt.key]=Gt,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,Ze=1/0,Ge=-1/0,Oe=-1/0,Ke=0,vt=we;Ke=0&&Lr[1].y+wr>=0){var kr=ce.map(function(Ra){return ar.getTilePoint(Ra)}),Wr=we.map(function(Ra){return ar.getTilePoint(Ra)});G.push({tile:Gt,tileID:ar,queryGeometry:kr,cameraQueryGeometry:Wr,scale:vr})}}},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);et.maxOverzooming=10,et.maxUnderzooming=3;function We(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 mt(g){return g==="raster"||g==="image"||g==="video"}function Pt(){return new a.window.Worker(Tn.workerUrl)}var Ft="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 Ga=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}},Ga.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},Ga.prototype.query=function(c,b,d,w,D){return this._query(c,b,d,w,!1,D)},Ga.prototype.hitTest=function(c,b,d,w,D){return this._query(c,b,d,w,!0,D)},Ga.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Ga.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[Ze]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ze],x1:we[Ge],y1:we[Ge+1],x2:we[Ge+2],y2:we[Ge+3]})}}}var Oe=this.circleCells[D];if(Oe!==null)for(var Ke=this.circles,vt=0,zt=Oe;vtG*G+K*K},Ga.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 Ui(g,c){var b=[g.x,g.y,0,1];Kf(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 lp(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,Ze=b.transform.width/b.transform.height,Ge=!1,Oe=0;OeD)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 Ze=c/24,Ge=g.lineOffsetX*Ze,Oe=g.lineOffsetY*Ze,Ke;if(g.numGlyphs>1){var vt=g.glyphStartIndex+g.numGlyphs,zt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,Qt=Zc(Ze,G,Ge,Oe,b,ce,we,g,K,D,be);if(!Qt)return{notEnoughRoom:!0};var rr=Ui(Qt.first.point,R).point,Gt=Ui(Qt.last.point,R).point;if(d&&!b){var ar=xv(g.writingMode,rr,Gt,Re);if(ar)return ar}Ke=[Qt.first];for(var vr=g.glyphStartIndex+1;vr0?Wr.point:pu(we,kr,wr,1,w),_a=xv(g.writingMode,wr,Ra,Re);if(_a)return _a}var Nr=ml(Ze*G.getoffsetX(g.glyphStartIndex),Ge,Oe,b,ce,we,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,D,be);if(!Nr)return{notEnoughRoom:!0};Ke=[Nr]}for(var Ma=0,aa=Ke;Ma0?1:-1,Ze=0;d&&(Re*=-1,Ze=Math.PI),Re<0&&(Ze+=Math.PI);for(var Ge=Re>0?G+R:G+R+1,Oe=w,Ke=w,vt=0,zt=0,Nt=Math.abs(be),Qt=[];vt+zt<=Nt;){if(Ge+=Re,Ge=K)return null;if(Ke=Oe,Qt.push(Oe),Oe=we[Ge],Oe===void 0){var rr=new a.Point(re.getx(Ge),re.gety(Ge)),Gt=Ui(rr,ce);if(Gt.signedDistanceFromCamera>0)Oe=we[Ge]=Gt.point;else{var ar=Ge-Re,vr=vt===0?D:new a.Point(re.getx(ar),re.gety(ar));Oe=pu(vr,rr,Ke,Nt-vt+1,ce)}}vt+=zt,zt=Ke.dist(Oe)}var wr=(Nt-vt)/zt,Lr=Oe.sub(Ke),kr=Lr.mult(wr)._add(Ke);kr._add(Lr._unit()._perp()._mult(b*Re));var Wr=Ze+Math.atan2(Oe.y-Ke.y,Oe.x-Ke.x);return Qt.push(kr),{point:kr,angle:Wr,path:Qt}}var up=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function $u(g,c){for(var b=0;b=1;Za--)aa.push(Nr.path[Za]);for(var Ua=1;Ua0){for(var ia=aa[0].clone(),Ba=aa[0].clone(),tn=1;tn=Wr.x&&Ba.x<=Ra.x&&ia.y>=Wr.y&&Ba.y<=Ra.y?mi=[aa]:Ba.xRa.x||Ba.yRa.y?mi=[]:mi=a.clipLine([aa],Wr.x,Wr.y,Ra.x,Ra.y)}for(var Nn=0,Ps=mi;Nn=this.screenRightBoundary||w<$i||b>this.screenBottomBoundary},Go.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[be.crossTileID].anchor),this.variableOffsets[be.crossTileID]={textOffset:Oe,width:d,height:w,anchor:c,textBoxScale:D,prevAnchor:Nt},this.markUsedJustification(Re,c,be,Ze),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ze,be),this.placedOrientations[be.crossTileID]=Ze),{shift:Ke,placedGlyphBoxes:vt}}},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,Ze=D.partiallyEvaluatedTextSize,Ge=D.collisionGroup,Oe=G.get("text-optional"),Ke=G.get("icon-optional"),vt=G.get("text-allow-overlap"),zt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",Qt=G.get("text-pitch-alignment")==="map",rr=G.get("icon-text-fit")!=="none",Gt=G.get("symbol-z-order")==="viewport-y",ar=vt&&(zt||!R.hasIconData()||Ke),vr=zt&&(vt||!R.hasTextData()||Oe);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var wr=function(Nr,Ma){if(!b[Nr.crossTileID]){if(be){w.placements[Nr.crossTileID]=new mu(!1,!1,!1);return}var aa=!1,Za=!1,Ua=!0,Mi=null,La={box:null,offscreen:null},mi={box:null,offscreen:null},ia=null,Ba=null,tn=null,Nn=0,Ps=0,zs=0;Ma.textFeatureIndex?Nn=Ma.textFeatureIndex:Nr.useRuntimeCollisionCircles&&(Nn=Nr.featureIndex),Ma.verticalTextFeatureIndex&&(Ps=Ma.verticalTextFeatureIndex);var $s=Ma.textBox;if($s){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},hc=function(un,$o){if(R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&Ma.verticalTextBox)for(var es=0,Qp=R.writingModes;es0&&(Qo=Qo.filter(function(un){return un!==Po.anchor}),Qo.unshift(Po.anchor))}var el=function(un,$o,es){for(var Qp=un.x2-un.x1,vy=un.y2-un.y1,m3=Nr.textBoxScale,y3=rr&&!zt?$o:null,rd={box:[],offscreen:!1},g3=vt?Qo.length*2:Qo.length,$p=0;$p=Qo.length,dy=w.attemptAnchorPlacement(_3,un,Qp,vy,m3,Nt,Qt,we,K,Ge,x3,Nr,R,es,y3);if(dy&&(rd=dy.placedGlyphBoxes,rd&&rd.box&&rd.box.length)){aa=!0,Mi=dy.shift;break}}return rd},Eu=function(){return el($s,Ma.iconBox,a.WritingMode.horizontal)},tl=function(){var un=Ma.verticalTextBox,$o=La&&La.box&&La.box.length;return R.allowVerticalPlacement&&!$o&&Nr.numVerticalGlyphVertices>0&&un?el(un,Ma.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};hc(Eu,tl),La&&(aa=La.box,Ua=La.offscreen);var Wp=Ol(La&&La.box);if(!aa&&w.prevPlacement){var gh=w.prevPlacement.variableOffsets[Nr.crossTileID];gh&&(w.variableOffsets[Nr.crossTileID]=gh,w.markUsedJustification(R,gh.anchor,Nr,Wp))}}else{var Ul=function(un,$o){var es=w.collisionIndex.placeCollisionBox(un,vt,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($s,a.WritingMode.horizontal)},Vl=function(){var un=Ma.verticalTextBox;return R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&un?Ul(un,a.WritingMode.vertical):{box:null,offscreen:null}};hc(Do,Vl),Ol(La&&La.box&&La.box.length)}}if(ia=La,aa=ia&&ia.box&&ia.box.length>0,Ua=ia&&ia.offscreen,Nr.useRuntimeCollisionCircles){var Gn=R.text.placedSymbolArray.get(Nr.centerJustifiedTextSymbolIndex),Xp=a.evaluateSizeForFeature(R.textSizeData,Ze,Gn),td=G.get("text-padding"),xo=Nr.collisionCircleDiameter;Ba=w.collisionIndex.placeCollisionCircles(vt,Gn,R.lineVertexArray,R.glyphOffsetArray,Xp,K,re,ce,d,Qt,Ge.predicate,xo,td),aa=vt||Ba.circles.length>0&&!Ba.collisionDetected,Ua=Ua&&Ba.offscreen}if(Ma.iconFeatureIndex&&(zs=Ma.iconFeatureIndex),Ma.iconBox){var _h=function(un){var $o=rr&&Mi?Av(un,Mi.x,Mi.y,Nt,Qt,w.transform.angle):un;return w.collisionIndex.placeCollisionBox($o,zt,we,K,Ge.predicate)};mi&&mi.box&&mi.box.length&&Ma.verticalIconBox?(tn=_h(Ma.verticalIconBox),Za=tn.box.length>0):(tn=_h(Ma.iconBox),Za=tn.box.length>0),Ua=Ua&&tn.offscreen}var jp=Oe||Nr.numHorizontalGlyphVertices===0&&Nr.numVerticalGlyphVertices===0,Jp=Ke||Nr.numIconVertices===0;if(!jp&&!Jp?Za=aa=Za&&aa:Jp?jp||(Za=Za&&aa):aa=Za&&aa,aa&&ia&&ia.box&&(mi&&mi.box&&Ps?w.collisionIndex.insertCollisionBox(ia.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ps,Ge.ID):w.collisionIndex.insertCollisionBox(ia.box,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID)),Za&&tn&&w.collisionIndex.insertCollisionBox(tn.box,G.get("icon-ignore-placement"),R.bucketInstanceId,zs,Ge.ID),Ba&&(aa&&w.collisionIndex.insertCollisionCircles(Ba.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID),d)){var Kp=R.bucketInstanceId,xh=w.collisionCircleArrays[Kp];xh===void 0&&(xh=w.collisionCircleArrays[Kp]=new fp);for(var bh=0;bh=0;--kr){var Wr=Lr[kr];wr(R.symbolInstances.get(Wr),R.collisionArrays[Wr])}else for(var Ra=c.symbolInstanceStart;Ra=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,Lr=w.placedOrientations[zt.crossTileID],kr=Lr===a.WritingMode.vertical,Wr=Lr===a.WritingMode.horizontal||Lr===a.WritingMode.horizontalOnly;if(vr){var Ra=rf(ar.text),_a=kr?Er:Ra;Ze(c.text,Nt,_a);var Nr=Wr?Er:Ra;Ze(c.text,Qt,Nr);var Ma=ar.text.isHidden();[zt.rightJustifiedTextSymbolIndex,zt.centerJustifiedTextSymbolIndex,zt.leftJustifiedTextSymbolIndex].forEach(function(zs){zs>=0&&(c.text.placedSymbolArray.get(zs).hidden=Ma||kr?1:0)}),zt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(zt.verticalPlacedTextSymbolIndex).hidden=Ma||Wr?1:0);var aa=w.variableOffsets[zt.crossTileID];aa&&w.markUsedJustification(c,aa.anchor,zt,Lr);var Za=w.placedOrientations[zt.crossTileID];Za&&(w.markUsedJustification(c,"left",zt,Za),w.markUsedOrientation(c,Za,zt))}if(wr){var Ua=rf(ar.icon),Mi=!(be&&zt.verticalPlacedIconSymbolIndex&&kr);if(zt.placedIconSymbolIndex>=0){var La=Mi?Ua:Er;Ze(c.icon,zt.numIconVertices,La),c.icon.placedSymbolArray.get(zt.placedIconSymbolIndex).hidden=ar.icon.isHidden()}if(zt.verticalPlacedIconSymbolIndex>=0){var mi=Mi?Er:Ua;Ze(c.icon,zt.numVerticalIconVertices,mi),c.icon.placedSymbolArray.get(zt.verticalPlacedIconSymbolIndex).hidden=ar.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var ia=c.collisionArrays[vt];if(ia){var Ba=new a.Point(0,0);if(ia.textBox||ia.verticalTextBox){var tn=!0;if(re){var Nn=w.variableOffsets[rr];Nn?(Ba=Tv(Nn.anchor,Nn.width,Nn.height,Nn.textOffset,Nn.textBoxScale),ce&&Ba._rotate(we?w.transform.angle:-w.transform.angle)):tn=!1}ia.textBox&&Xt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!tn||kr,Ba.x,Ba.y),ia.verticalTextBox&&Xt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!tn||Wr,Ba.x,Ba.y)}var Ps=!!(!Wr&&ia.verticalIconBox);ia.iconBox&&Xt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,Ps,be?Ba.x:0,be?Ba.y:0),ia.verticalIconBox&&Xt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,!Ps,be?Ba.x:0,be?Ba.y:0)}}},Oe=0;Oec},lo.prototype.setStale=function(){this.stale=!0};function Xt(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),cp=Math.pow(2,24),yu=Math.pow(2,17),on=Math.pow(2,16),gl=Math.pow(2,9),ws=Math.pow(2,8),tf=Math.pow(2,1);function rf(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*cp+b*yu+c*on+b*gl+c*ws+b*tf+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 et(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;vt--){var zt=this._order[vt];if(D(zt))for(var Nt=G.length-1;Nt>=0;Nt--){var Qt=G[Nt].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 y1=me((Ibe,tH)=>{"use strict";var QV=Bt(),$V=Oa().defaultLine,ode=zb().attributes,sde=qo(),lde=zc().textposition,ude=il().overrideAll,fde=Ii().templatedArray,vA=Oc(),eH=sde({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});eH.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var cde=tH.exports=ude({_arrayAttrRegexps:[QV.counterRegex("mapbox",".layers",!0)],domain:ode({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:vA.styleValuesMapbox.concat(vA.styleValuesNonMapbox),dflt:vA.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:fde("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:$V},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:$V}},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:eH,textposition:QV.extendFlat({},lde,{arrayOk:!1})}})},"plot","from-root");cde.uirevision={valType:"any",editType:"none"}});var Bb=me((Rbe,nH)=>{"use strict";var{hovertemplateAttrs:hde,texttemplateAttrs:vde,templatefallbackAttrs:rH}=kf(),dde=Ax(),g1=hA(),Mm=zc(),aH=y1(),pde=ys(),mde=Sc(),$d=yn().extendFlat,yde=il().overrideAll,gde=y1(),iH=g1.line,Sm=g1.marker;nH.exports=yde({lon:g1.lon,lat:g1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:$d({},gde.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:$d({},Sm.opacity,{dflt:1})},mode:$d({},Mm.mode,{dflt:"markers"}),text:$d({},Mm.text,{}),texttemplate:vde({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:rH({editType:"plot"}),hovertext:$d({},Mm.hovertext,{}),line:{color:iH.color,width:iH.width},connectgaps:Mm.connectgaps,marker:$d({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:Sm.opacity,size:Sm.size,sizeref:Sm.sizeref,sizemin:Sm.sizemin,sizemode:Sm.sizemode},mde("marker")),fill:g1.fill,fillcolor:dde(),textfont:aH.layers.symbol.textfont,textposition:aH.layers.symbol.textposition,below:{valType:"string"},selected:{marker:Mm.selected.marker},unselected:{marker:Mm.unselected.marker},hoverinfo:$d({},pde.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hde(),hovertemplatefallback:rH()},"calc","nested")});var dA=me((Fbe,oH)=>{"use strict";var _de=["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"];oH.exports={isSupportedFont:function(e){return _de.indexOf(e)!==-1}}});var uH=me((qbe,lH)=>{"use strict";var _1=Bt(),pA=rs(),xde=B6(),bde=O6(),wde=U6(),Tde=V6(),sH=Bb(),Ade=dA().isSupportedFont;lH.exports=function(t,r,i,a){function s(I,O){return _1.coerce(t,r,sH,I,O)}function l(I,O){return _1.coerce2(t,r,sH,I,O)}var f=Mde(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("texttemplatefallback"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("mode"),s("below"),pA.hasMarkers(r)){xde(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]))}pA.hasLines(r)&&(bde(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||pA.hasText(r)){var L=a.font.family;wde(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ade(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"&&Tde(t,r,i,s),_1.coerceSelectionMarkerOpacity(r,s)};function Mde(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var mA=me((Nbe,cH)=>{"use strict";var fH=Xi();cH.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=fH.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=fH.tickText(l,l.c2l(f[1]),!0).text,a}});var mH=me((Bbe,pH)=>{"use strict";var yA=Da(),hH=Zi().BADNUM,Sde=Z6(),kde=Qg(),Cde=Qx(),Ede=Bt().isArrayOrTypedArray,vH=Bt()._;function dH(e){return e&&typeof e=="string"}pH.exports=function(t,r){var i=Ede(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return dH(T)||yA(T)}:l=dH;for(var f=0;f{"use strict";var Lde=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 yH=Bt();gH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=yH.isArrayOrTypedArray(r)?yH.mean(r):r,f=.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]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var AH=me((Vbe,TH)=>{"use strict";var bH=Da(),ko=Bt(),Dde=Zi().BADNUM,Vb=Ob(),_H=U0(),Pde=xi(),zde=f5(),Hb=rs(),Ide=dA().isSupportedFont,Rde=gA(),Fde=kc().appendArrayPointValue,qde=ro().NEWLINES,Nde=ro().BR_TAG_ALL;TH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Hb.hasLines(i),f=Hb.hasMarkers(i),h=Hb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=Ub("fill"),M=Ub("line"),C=Ub("circle"),E=Ub("symbol"),L={fill:T,line:M,circle:C,symbol:E};if(!a)return L;var I;if((s||l)&&(I=Vb.calcTraceToLineCoords(r)),s&&(T.geojson=Vb.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(M.geojson=Vb.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=Bde(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":xA(i.cluster.color,i.cluster.step),"circle-radius":xA(i.cluster.size,i.cluster.step),"circle-opacity":xA(i.cluster.opacity,i.cluster.step)}},L.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":xH(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=Ode(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=Rde(i.textposition,q);ko.extendFlat(E.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":xH(i)}),ko.extendFlat(E.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return L};function Ub(e){return{type:e,geojson:Vb.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Bde(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),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(_H.hasColorscale(t,"marker")?m=_H.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=zde(t));var T;l&&(T=function(q){var z=bH(q)?+ko.constrain(q,0,1):0;return h(z)});var M=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),Ide(f)||(f=r);var h=f.split(", ");return h}});var CH=me((Hbe,kH)=>{"use strict";var Ude=Bt(),MH=AH(),km=Oc().traceLayerPrefix,cu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function SH(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:km+t+"-fill",line:km+t+"-line",circle:km+t+"-circle",symbol:km+t+"-symbol",cluster:km+t+"-cluster",clusterCount:km+t+"-cluster-count"},this.below=null}var b1=SH.prototype;b1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&Ude.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(),f=0;f=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){f?m(q):T(q)}function L(){for(var q=f?cu.cluster:cu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};kH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new SH(t,i.uid,a,s),f=MH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var Vde=Nf(),bA=Bt(),Hde=uT(),Gde=bA.fillText,Zde=Zi().BADNUM,Yde=Oc().traceLayerPrefix;function Wde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=Yde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.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]===Zde||m&&h.indexOf(W.i+1)===-1)return 1/0;var ee=bA.modHalf(J[0],360),ie=J[1],oe=f.project([ee,ie]),fe=oe.x-s.c2p([C,ie]),le=oe.y-l.c2p([ee,r]),Te=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+le*le)-Te,1-3/Te)}if(Vde.getClosest(i,E,e),e.index!==!1){var L=i[e.index],I=L.lonlat,O=[bA.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:f};var V=a._module.formatLabels(L,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=Hde(a,L),e.extraText=EH(a,L,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function EH(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,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&Gde(t,e,v),v.join("
")}LH.exports={hoverPoints:Wde,getExtraText:EH}});var PH=me((Zbe,DH)=>{"use strict";DH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var IH=me((Ybe,zH)=>{"use strict";var Xde=Bt(),jde=rs(),Jde=Zi().BADNUM;zH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!jde.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof wA=="object"&&typeof TA!="undefined"?TA.exports=t():(e=e||self,e.mapboxgl=t())})(wA,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);",f={};e(f),r=s(f),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",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-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=u,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 u,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(;uA?u=x:p=x,x=(p-u)*.5+u}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,u=n.y-this.y;return o*o+u*u},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,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,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),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(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 u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function E(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var L=E(.25,.1,.25,1);function I(n,o,u){return Math.min(u,Math.max(o,n))}function O(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(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&&u(A,x)})})}function z(n){var o=[];for(var u in n)o.push(n[u]);return o}function N(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+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 fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function le(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Te(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Se(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Me(n){return Array.isArray(n)?n.map(Me):typeof n=="object"&&n?Te(n,Me):n}function Ae(n,o){for(var u=0;u=0)return!0;return!1}var pe={};function ke(n){pe[n]||(typeof console!="undefined"&&console.warn(n),pe[n]=!0)}function Ee(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function Xe(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var Ye=null;function kt(n){if(Ye==null){var o=n.navigator?n.navigator.userAgent:null;Ye=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return Ye}function st(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function dt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function It(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var yt=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),de=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,ze=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,_e,Ue,at={now:yt,frame:function(o){var u=de(o);return{cancel:function(){return ze(u)}}},getImageData:function(o,u){u===void 0&&(u=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(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return _e||(_e=_.document.createElement("a")),_e.href=o,_e.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(Ue==null&&(Ue=_.matchMedia("(prefers-reduced-motion: reduce)")),Ue.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},Ct={supported:!1,testSupport:Dt},wt,xt=!1,qt,Ut=!1;_.document&&(qt=_.document.createElement("img"),qt.onload=function(){wt&&Mt(wt),wt=null,Ut=!0},qt.onerror=function(){xt=!0,wt=null},qt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Dt(n){xt||!qt||(Ut?Mt(n):wt=n)}function Mt(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,qt),n.isContextLost())return;Ct.supported=!0}catch(u){}n.deleteTexture(o),xt=!0}var Zt="01";function Yt(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Zt,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Yt();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeGlyphsURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSourceURL=function(o,u){if(!ut(o))return o;var p=Ot(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSpriteURL=function(o,u,p,x){var A=Ot(o);return ut(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,er(A))},Be.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ut(o))return o;var p=Ot(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=at.devicePixelRatio>=2||u===512?"@2x":"",F=Ct.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||ht(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,u){var p="/v4/",x=/\.[\w]+$/,A=Ot(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 u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,u){for(var p=u?ut(u):!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(u=u||Je.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[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="+u),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 Et(n){return n.indexOf("sku=")>0&&Pr(n)}function ht(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){ke("Unable to write to LocalStorage")}},pr.prototype.processRequests=function(o){},pr.prototype.postEvent=function(o,u,p,x){var A=this;if(Je.EVENTS_URL){var k=Ot(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:Zt,userId:this.anonId},Y=u?H(F,u):F,j={url:er(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=We(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},pr.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};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}(pr),ur=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}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=Kt(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(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(pr),Lt=new ur,Fe=Lt.postTurnstileEvent.bind(Lt),Ve=new yr,bt=Ve.postMapLoadEvent.bind(Ve),Tt="mapbox-tiles",mr=500,Ar=50,Mr=1e3*60*7,Gr;function pa(){_.caches&&!Gr&&(Gr=_.caches.open(Tt))}var Ca;function ii(n,o){if(Ca===void 0)try{new Response(new ReadableStream),Ca=!0}catch(u){Ca=!1}Ca?o(n.body):n.blob().then(o)}function wi(n,o,u){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=_t(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var vn=1/0;function nn(n){vn++,vn>Ar&&(n.getActor().send("enforceCacheSizeLimit",mr),vn=0)}function Ki(n){pa(),Gr&&Gr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ma(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Le=function(n,o){if(!te(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return ue(n,o);if(it()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return he(n,o)},Ne=function(n,o){return Le(H(n,{type:"json"}),o)},et=function(n,o){return Le(H(n,{type:"arrayBuffer"}),o)},We=function(n,o){return Le(H(n,{method:"POST"}),o)};function mt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ft(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Pt})},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=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Pt}function tr(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).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 Wt,Sr,Zr=function(){Wt=[],Sr=0};Zr();var Or=function(n,o){if(Ct.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Sr>=Je.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Wt.push(u),u}Sr++;var p=!1,x=function(){if(!p)for(p=!0,Sr--;Wt.length&&Sr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},gr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var $r=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"}},Ti=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ea={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:"*"}},si={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"}}},Ga={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"}},Ui={"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"}},lp={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:{}}},up={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},$u={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Kf={type:"array",value:"*",minimum:1},$i={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"],mo={"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"}},fp={"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"}},ef={"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"}},Xt={$version:$r,$root:ga,sources:nr,source:Ti,source_vector:Ea,source_raster:si,source_raster_dem:fa,source_geojson:In,source_video:Co,source_image:bs,layer:Ga,layout:Kn,layout_background:du,layout_fill:Ui,layout_circle:pl,layout_heatmap:lp,"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:up,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:$u,expression:Kf,light:$i,paint:Go,paint_fill:mo,"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:fp,paint_raster:wv,paint_hillshade:ef,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,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function cp(n){var o=n.key,u=n.value;return u?[new Ur(o,u,"constants have been deprecated as of v8")]:[]}function yu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var As=[rf,Er,ba,wa,Ts,fs,_l,yo(Aa),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 u=0,p=As;u255?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 u)return u[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 ge=Q.indexOf("("),ve=Q.indexOf(")");if(ge!==-1&&ve+1===Q.length){var Ce=Q.substr(0,ge),qe=Q.substr(ge+1,ve-(ge+1)).split(","),ft=1;switch(Ce){case"rgba":if(qe.length!==4)return null;ft=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ft];case"hsla":if(qe.length!==4)return null;ft=k(qe.pop());case"hsl":if(qe.length!==3)return null;var tt=(parseFloat(qe[0])%360+360)%360/360,St=k(qe[1]),gt=k(qe[2]),At=gt<=.5?gt*(St+1):gt+St-gt*St,Rt=gt*2-At;return[p(F(Rt,At,tt+1/3)*255),p(F(Rt,At,tt)*255),p(F(Rt,At,tt-1/3)*255),ft];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Qf=Pm.parseCSSColor,ni=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};ni.parse=function(o){if(o){if(o instanceof ni)return o;if(typeof o=="string"){var u=Qf(o);if(u)return new ni(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},ni.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},ni.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*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 $f=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};$f.prototype.compare=function(o,u){return this.collator.compare(o,u)},$f.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Mv=function(o,u,p,x,A){this.text=o,this.image=u,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"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];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,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function af(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 $f)return!0;if(n instanceof xn)return!0;if(n instanceof Rn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in ec)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=ec[F],p++}else k=Aa;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=ec[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Wo=function(o){this.type=fs,this.sections=o};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.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=u.parse(F["font-scale"],1,Er),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(ba)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.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 ge=u.parse(o[k],1,Aa);if(!ge)return null;var ve=ge.type.kind;if(ve!=="string"&&ve!=="value"&&ve!=="null"&&ve!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Wo(x)},Wo.prototype.evaluate=function(o){var u=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(u))},Wo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var zm={"to-boolean":wa,"to-color":Ts,"to-number":Er,"to-string":ba},Xo=function(o,u){this.type=o,this.args=u};Xo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=zm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=hp(u[0],u[1],u[2],u[3]),!p))return new ni(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new dn(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}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 Nm(n,o){var u=Fm(n[0]),p=qm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*wl),Math.round(p*x*wl)]}function Bm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function Om(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function kv(n,o){for(var u=!1,p=0,x=o.length;p0&&ne<0||Q<0&&ne>0}function vp(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Vm(A,x)===0?!1:!!(Cv(n,o,u,p)&&Cv(u,p,n,o))}function dp(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}Sv(o,n)}function Gm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function mp(n,o,u,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 u=!0;return n.eachChild(function(p){u&&!jc(p,o)&&(u=!1)}),u}var Al=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Al.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Al(p,u.scope.get(p)):u.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,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new tf),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ne,ge){return ge==="assert"?new ln(ne,[Q]):ge==="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,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.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,u,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,u||null,A,this.errors)},Ml.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new ws(x,o))},Ml.prototype.checkSubtype=function(o,u){var p=cs(o,u);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,u=!0;return n.eachChild(function(p){o?u=u&&Dv(p):u=u&&p instanceof Yo}),u?Xc(n)&&jc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Jc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new dn("Input is not a number.");return 0}var Ms=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ne=u.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 u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Jc(u,x);return p[k].evaluate(o)},Ms.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function pn(n,o,u){return n*(1-u)+o*u}function Ym(n,o,u){return new ni(pn(n.r,o.r,u),pn(n.g,o.g,u),pn(n.b,o.b,u),pn(n.a,o.a,u))}function Wm(n,o,u){return n.map(function(p,x){return pn(p,o[x],u)})}var Sl=Object.freeze({__proto__:null,number:pn,color:Ym,array:Wm}),nf=.95047,vs=1,_p=1.08883,xp=4/29,of=6/29,bp=3*of*of,wp=of*of*of,Xm=Math.PI/180,jm=180/Math.PI;function Pv(n){return n>wp?Math.pow(n,1/3):n/bp+xp}function zv(n){return n>of?n*n*n:bp*(n-xp)}function Iv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function tc(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Kc(n){var o=tc(n.r),u=tc(n.g),p=tc(n.b),x=Pv((.4124564*o+.3575761*u+.1804375*p)/nf),A=Pv((.2126729*o+.7151522*u+.072175*p)/vs),k=Pv((.0193339*o+.119192*u+.9503041*p)/_p);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function Tp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=vs*zv(o),u=nf*zv(u),p=_p*zv(p),new ni(Iv(3.2404542*u-1.5371385*o-.4985314*p),Iv(-.969266*u+1.8760108*o+.041556*p),Iv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function qi(n,o,u){return{l:pn(n.l,o.l,u),a:pn(n.a,o.a,u),b:pn(n.b,o.b,u),alpha:pn(n.alpha,o.alpha,u)}}function Jm(n){var o=Kc(n),u=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:u,alpha:n.a}}function Qc(n){var o=n.h*Xm,u=n.c,p=n.l;return Tp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function Rv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function Ap(n,o,u){return{h:Rv(n.h,o.h,u),c:pn(n.c,o.c,u),l:pn(n.l,o.l,u),alpha:pn(n.alpha,o.alpha,u)}}var sf={forward:Kc,reverse:Tp,interpolate:qi},bu={forward:Jm,reverse:Qc,interpolate:Ap},Fv=Object.freeze({__proto__:null,lab:sf,hcl:bu}),bn=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,Er),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=Ts:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ne=0;ne=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ce);var ft=u.parse(ve,qe,Q);if(!ft)return null;Q=Q||ft.type,j.push([ge,ft])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+Ei(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Jc(u,x),F=u[k],Y=u[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)):sf.reverse(sf.interpolate(sf.forward(Q),sf.forward(ne),j))},bn.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new dn("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new dn("Array index must be an integer, but found "+u+" instead.");return p[u]},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,u){this.type=wa,this.needle=o,this.haystack=u};El.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Aa);return!p||!x?null:Yc(p.type,[wa,ba,Er,rf,Aa])?new El(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(p.type)+" instead")},El.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!_u(u,["boolean","string","number","null"]))throw new dn("Expected first argument to be of type boolean, string, number or null, but found "+Ei(sn(u))+" instead.");if(!_u(p,["string","array"]))throw new dn("Expected second argument to be of type array or string, but found "+Ei(sn(p))+" instead.");return p.indexOf(u)>=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 Ks=function(o,u,p){this.type=Er,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Aa);if(!p||!x)return null;if(!Yc(p.type,[wa,ba,Er,rf,Aa]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,Er);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!_u(u,["boolean","string","number","null"]))throw new dn("Expected first argument to be of type boolean, string, number or null, but found "+Ei(sn(u))+" instead.");if(!_u(p,["string","array"]))throw new dn("Expected second argument to be of type array or string, but found "+Ei(sn(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.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,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};Ss.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.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 Ce=u.parse(j,F,x);if(!Ce)return null;x=x||Ce.type,k.push(Ce)}var qe=u.parse(o[1],1,Aa);if(!qe)return null;var ft=u.parse(o[o.length-1],o.length-1,x);return!ft||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new Ss(p,x,qe,A,k,ft)},Ss.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=sn(u)===this.inputType&&this.outputs[this.cases[u]]||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,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Aa),x=u.parse(o[2],2,Er);if(!p||!x)return null;if(!Yc(p.type,[yo(Aa),ba,Aa]))return u.error("Expected first argument to be of type array or string, but found "+Ei(p.type)+" instead");if(o.length===4){var A=u.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 u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!_u(u,["string","array"]))throw new dn("Expected first argument to be of type array or string, but found "+Ei(sn(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.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 Mp(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 Km(n,o,u){return o===u}function Qm(n,o,u){return o!==u}function $m(n,o,u){return ou}function kp(n,o,u){return o<=u}function qv(n,o,u){return o>=u}function Nv(n,o,u,p){return p.compare(o,u)===0}function ac(n,o,u,p){return!Nv(n,o,u,p)}function $c(n,o,u,p){return p.compare(o,u)<0}function Cp(n,o,u,p){return p.compare(o,u)>0}function Bv(n,o,u,p){return p.compare(o,u)<=0}function Ep(n,o,u,p){return p.compare(o,u)>=0}function lf(n,o,u){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,Aa);if(!j)return null;if(!Mp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+Ei(j.type)+"'.");var Q=F.parse(k[2],2,Aa);if(!Q)return null;if(!Mp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+Ei(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+Ei(j.type)+"' and '"+Ei(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 dn('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),ge=sn(Y);if(ne.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(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 ey=lf("==",Km,Nv),Lp=lf("!=",Qm,ac),Dp=lf("<",$m,$c),Pp=lf(">",Sp,Cp),Ov=lf("<=",kp,Bv),Uv=lf(">=",qv,Ep),wu=function(o,u,p,x,A){this.type=ba,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};wu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,Er);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,ba),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,ba),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,Er),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.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,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Ei(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new dn("Expected value to be of type string or array, but found "+Ei(sn(u))+" 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(u){o.push(u.serialize())}),o};var ic={"==":ey,"!=":Lp,">":Pp,"<":Dp,">=":Uv,"<=":Ov,array:ln,at:Cl,boolean:ln,case:ks,coalesce:Js,collator:bl,format:Wo,image:Xs,in:El,"index-of":Ks,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 u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=hp(u,p,x,k);if(F)throw new dn(F);return new ni(u/255*k,p/255*k,x/255*k,k)}function eh(n,o){return n in o}function th(n,o){var u=o[n];return typeof u=="undefined"?null:u}function rh(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Pl(n){return{type:n}}Fn.register(ic,{error:[Ws,[ba],function(n,o){var u=o[0];throw new dn(u.evaluate(n))}],typeof:[ba,[Aa],function(n,o){var u=o[0];return Ei(sn(u.evaluate(n)))}],"to-rgba":[yo(Er,4),[Ts],function(n,o){var u=o[0];return u.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 u=o[0];return eh(u.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var u=o[0],p=o[1];return eh(u.evaluate(n),p.evaluate(n))}]]},get:{type:Aa,overloads:[[[ba],function(n,o){var u=o[0];return th(u.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var u=o[0],p=o[1];return th(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Aa,[ba],function(n,o){var u=o[0];return th(u.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[ba,[],function(n){return n.geometryType()}],id:[Aa,[],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:[Aa,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[Er,Pl(Er),function(n,o){for(var u=0,p=0,x=o;p":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[wa,[ba,Aa],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[wa,[Aa],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[wa,[Aa],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[wa,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[wa,[yo(ba)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[wa,[yo(Aa)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[wa,[ba,yo(Aa)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[wa,[ba,yo(Aa)],function(n,o){var u=o[0],p=o[1];return rh(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:wa,overloads:[[[wa,wa],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Pl(wa),function(n,o){for(var u=0,p=o;u-1}function ih(n){return!!n.expression&&n.expression.interpolated}function di(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function nc(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ip(n){return n}function Rp(n,o){var u=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(u&&(n=yu({},n),n.stops&&(n.stops=n.stops.map(function(cr){return[cr[0],ni.parse(cr[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=qp;else if(k==="categorical"){F=Fp,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]}),u);return n.stops[x][1]}function Hv(n,o,u){var p=n.base!==void 0?n.base:1;if(di(u)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Jc(n.stops.map(function(ne){return ne[0]}),u),k=ty(u,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]||Ip;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Fv[n.colorSpace];j=function(ne,ge){return Q.reverse(Q.interpolate(Q.forward(ne),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],ve=arguments.length;ve--;)ge[ve]=arguments[ve];var Ce=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(Ce===void 0||qe===void 0))return j(Ce,qe,k)}}:j(F,Y,k)}function Np(n,o,u){return o.type==="color"?u=ni.parse(u):o.type==="formatted"?u=xn.fromString(u.toString()):o.type==="resolvedImage"?u=Rn.fromString(u.toString()):di(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),zl(u,n.default,o.default)}function ty(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?ay(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,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,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||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 dn("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 ic}function oc(n,o){var u=new Ml(ic,[],o?Gv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?ah(new Il(p,o)):Tu(u.errors)}var Cs=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Tl(u.expression)};Cs.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Cs.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var Es=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Tl(u.expression),this.interpolationType=x};Es.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Es.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},Es.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,u,p):0};function jo(n,o){if(n=oc(n,o),n.result==="error")return n;var u=n.value.expression,p=Xc(u);if(!p&&!uf(o))return Tu([new ws("","data expressions not supported")]);var x=jc(u,["zoom"]);if(!x&&!zp(o))return Tu([new ws("","zoom expressions not supported")]);var A=cf(u);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 ff=function(o,u){this._parameters=o,this._specification=u,yu(this,Rp(this._parameters,this._specification))};ff.deserialize=function(o){return new ff(o._parameters,o._specification)},ff.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function ry(n,o){if(nc(n))return new ff(n,o);if(Au(n)){var u=jo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=ni.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function cf(n){var o=null;if(n instanceof kl)o=cf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Ur(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function nh(n){var o=n.valueSpec,u=on(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=di(n.value.stops)==="array"&&di(n.value.stops[0])==="array"&&di(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:Ce}});return u==="identity"&&F&&Q.push(new Ur(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Ur(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!ih(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!uf(n.valueSpec)?Q.push(new Ur(n.key,n.value,"property functions not supported")):F&&!zp(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Ur(n.key,n.value,'"property" property is required')),Q;function ne(qe){if(u==="identity")return[new Ur(qe.key,qe.value,'identity function may not have a "stops" property')];var ft=[],tt=qe.value;return ft=ft.concat(Zv({key:qe.key,value:tt,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),di(tt)==="array"&&tt.length===0&&ft.push(new Ur(qe.key,tt,"array must have at least one stop")),ft}function ge(qe){var ft=[],tt=qe.value,St=qe.key;if(di(tt)!=="array")return[new Ur(St,tt,"array expected, "+di(tt)+" found")];if(tt.length!==2)return[new Ur(St,tt,"array length 2 expected, length "+tt.length+" found")];if(j){if(di(tt[0])!=="object")return[new Ur(St,tt,"object expected, "+di(tt[0])+" found")];if(tt[0].zoom===void 0)return[new Ur(St,tt,"object stop key must have zoom")];if(tt[0].value===void 0)return[new Ur(St,tt,"object stop key must have value")];if(k&&k>on(tt[0].zoom))return[new Ur(St,tt[0].zoom,"stop zoom values must appear in ascending order")];on(tt[0].zoom)!==k&&(k=on(tt[0].zoom),A=void 0,x={}),ft=ft.concat(ds({key:St+"[0]",value:tt[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:hf,value:ve}}))}else ft=ft.concat(ve({key:St+"[0]",value:tt[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},tt));return Au(gl(tt[1]))?ft.concat([new Ur(St+"[1]",tt[1],"expressions are not allowed in function stops.")]):ft.concat(li({key:St+"[1]",value:tt[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function ve(qe,ft){var tt=di(qe.value),St=on(qe.value),gt=qe.value!==null?qe.value:ft;if(!p)p=tt;else if(tt!==p)return[new Ur(qe.key,gt,tt+" stop domain type must match previous stop domain type "+p)];if(tt!=="number"&&tt!=="string"&&tt!=="boolean")return[new Ur(qe.key,gt,"stop domain value must be a number, string, or boolean")];if(tt!=="number"&&u!=="categorical"){var At="number expected, "+tt+" found";return uf(o)&&u===void 0&&(At+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ur(qe.key,gt,At)]}return u==="categorical"&&tt==="number"&&(!isFinite(St)||Math.floor(St)!==St)?[new Ur(qe.key,gt,"integer expected, found "+St)]:u!=="categorical"&&tt==="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,u=n.slice(1);oo?1:0}function df(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"?oy(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(pf)):o==="none"?["all"].concat(n.slice(1).map(pf).map(sc)):o==="in"?Op(n[1],n.slice(2)):o==="!in"?sc(Op(n[1],n.slice(2))):o==="has"?Wv(n[1]):o==="!has"?sc(Wv(n[1])):o==="within"?n:!0;return u}function Yv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function oy(n){return["any"].concat(n.map(pf))}function Op(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(u){return typeof u!=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 sc(n){return["!",n]}function sh(n){return go(gl(n.value))?Mu(yu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xv(n)}function Xv(n){var o=n.value,u=n.key;if(di(o)!=="array")return[new Ur(u,o,"array expected, "+di(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Ur(u,o,"filter array must have at least 1 element")];switch(A=A.concat(oh({key:u+"[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(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Ur(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=di(o[1]),x!=="string"&&A.push(new Ur(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[ve+0]&&p>=Q[ve+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Ds.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ne=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var ve=j;ve<=ne;ve++){var Ce=this.d*ve+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(ve),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(ve+1)))&&x.call(this,n,o,u,p,Ce,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,u=0,p=0;p=0)){var ne=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ne:U(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",u=Nl[o],p=u.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,u){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=u):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,u=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 ot(n){return!(De(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 ct(n){for(var o=0,u=n;o-1&&(or=je.error),Vt&&Vt(n)};function zr(){Rr.fire(new ri("pluginStateChange",{pluginStatus:or,pluginURL:hr}))}var Rr=new gr,ea=function(){return or},Vr=function(n){return n({pluginStatus:or,pluginURL:hr}),Rr.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),or===je.deferred||or===je.loading||or===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");hr=at.resolveURL(n),or=je.deferred,Vt=o,zr(),u||Na()},Na=function(){if(or!==je.deferred||!hr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");or=je.loading,zr(),hr&&et({url:hr},function(n){n?fr(n):(or=je.loaded,zr())})},ei={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return or===je.loaded||ei.applyArabicShaping!=null},isLoading:function(){return or===je.loading},setState:function(o){or=o.pluginStatus,hr=o.pluginURL},isParsed:function(){return ei.applyArabicShaping!=null&&ei.processBidirectionalText!=null&&ei.processStyledBidirectionalText!=null},getPluginURL:function(){return hr}},Qa=function(){!ei.isLoading()&&!ei.isLoaded()&&ea()==="deferred"&&Na()},jt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};jt.prototype.isSupportedScript=function(o){return nt(o,ei.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,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=ry(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var na=function(o){this.property=o,this.value=new Jr(o,void 0)};na.prototype.transitioned=function(o,u){return new Di(this.property,this.value,u,H({},o.transition,this.transition),o.now)},na.prototype.untransitioned=function(){return new Di(this.property,this.value,null,{},0)};var oa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};oa.prototype.getValue=function(o){return Me(this._values[o].value.value)},oa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new na(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Me(u))},oa.prototype.getTransition=function(o){return Me(this._values[o].transition)},oa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new na(this._values[o].property)),this._values[o].transition=Me(u)||void 0},oa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.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),Ai=function(o){this.specification=o};Ai.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new jt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new jt(Math.floor(u.zoom),u)),o.expression.evaluate(new jt(Math.floor(u.zoom+1),u)),u)},Ai.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Ai.prototype.interpolate=function(o){return o};var fo=function(o){this.specification=o};fo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,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 u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new na(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Hr),y("DataConstantProperty",Tr),y("CrossFadedDataDrivenProperty",Ni),y("CrossFadedProperty",Ai),y("ColorRampProperty",fo);var mn="-transition",pi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new en(p.layout)),p.paint)){this._transitionablePaint=new oa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.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 le(p,mn)?this._transitionablePaint.getTransition(p.slice(0,-mn.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(le(p,mn))return this._transitionablePaint.setTransition(p.slice(0,-mn.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,ge=ne.isDataDriven();return ge||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),Se(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:lc(this,p.call($a,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Xt,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 bi)||!uf(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,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,xf=5,Ta=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ta.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Ta.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},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*xf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Ta.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=u=Kv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Kv(u,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 uc=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);uc.prototype.bytesPerElement=4,y("StructArrayLayout2i4",uc);var sy=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);sy.prototype.bytesPerElement=8,y("StructArrayLayout4i8",sy);var bf=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);bf.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",bf);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,ge){var ve=this.length;return this.resize(ve+1),this.emplace(ve,p,x,A,k,F,Y,j,Q,ne,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve){var Ce=p*10;return this.uint16[Ce+0]=x,this.uint16[Ce+1]=A,this.uint16[Ce+2]=k,this.uint16[Ce+3]=F,this.uint16[Ce+4]=Y,this.uint16[Ce+5]=j,this.uint16[Ce+6]=Q,this.uint16[Ce+7]=ne,this.uint16[Ce+8]=ge,this.uint16[Ce+9]=ve,p},o}(Ta);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);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),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe){var ft=p*12;return this.int16[ft+0]=x,this.int16[ft+1]=A,this.int16[ft+2]=k,this.int16[ft+3]=F,this.uint16[ft+4]=Y,this.uint16[ft+5]=j,this.uint16[ft+6]=Q,this.uint16[ft+7]=ne,this.int16[ft+8]=ge,this.int16[ft+9]=ve,this.int16[ft+10]=Ce,this.int16[ft+11]=qe,p},o}(Ta);wf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",wf);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.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);ly.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ly);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.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);uy.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",uy);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 ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ne)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge){var ve=p*10,Ce=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[Ce+3]=Q,this.uint16[ve+8]=ne,this.uint16[ve+9]=ge,p},o}(Ta);Qv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Qv);var Zp=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);Zp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Zp);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,ge,ve,Ce,qe,ft,tt,St,gt){var At=this.length;return this.resize(At+1),this.emplace(At,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At){var Rt=p*24,Jt=p*12,dr=p*48;return this.int16[Rt+0]=x,this.int16[Rt+1]=A,this.uint16[Rt+2]=k,this.uint16[Rt+3]=F,this.uint32[Jt+2]=Y,this.uint32[Jt+3]=j,this.uint32[Jt+4]=Q,this.uint16[Rt+10]=ne,this.uint16[Rt+11]=ge,this.uint16[Rt+12]=ve,this.float32[Jt+7]=Ce,this.float32[Jt+8]=qe,this.uint8[dr+36]=ft,this.uint8[dr+37]=tt,this.uint8[dr+38]=St,this.uint32[Jt+10]=gt,this.int16[Rt+22]=At,p},o}(Ta);$v.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",$v);var Yp=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,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,ge,ve,Ce,qe,ft,tt,St,gt,At,Rt,Jt,dr,cr,Fr,Cr,Ir,Qr,qr,Br,ya){var Xr=p*34,Ya=p*17;return this.int16[Xr+0]=x,this.int16[Xr+1]=A,this.int16[Xr+2]=k,this.int16[Xr+3]=F,this.int16[Xr+4]=Y,this.int16[Xr+5]=j,this.int16[Xr+6]=Q,this.int16[Xr+7]=ne,this.uint16[Xr+8]=ge,this.uint16[Xr+9]=ve,this.uint16[Xr+10]=Ce,this.uint16[Xr+11]=qe,this.uint16[Xr+12]=ft,this.uint16[Xr+13]=tt,this.uint16[Xr+14]=St,this.uint16[Xr+15]=gt,this.uint16[Xr+16]=At,this.uint16[Xr+17]=Rt,this.uint16[Xr+18]=Jt,this.uint16[Xr+19]=dr,this.uint16[Xr+20]=cr,this.uint16[Xr+21]=Fr,this.uint16[Xr+22]=Cr,this.uint32[Ya+12]=Ir,this.float32[Ya+13]=Qr,this.float32[Ya+14]=qr,this.float32[Ya+15]=Br,this.float32[Ya+16]=ya,p},o}(Ta);Yp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Yp);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 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.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);fy.prototype.bytesPerElement=6,y("StructArrayLayout3i6",fy);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.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);Tf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",Tf);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 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.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);fc.prototype.bytesPerElement=16,y("StructArrayLayout4f16",fc);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 u={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 u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(co);C1.prototype.size=20;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.get=function(p){return new C1(this,p)},o}(Qv);y("CollisionBoxArray",cy);var cc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(co);cc.prototype.size=48;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 cc(this,p)},o}($v);y("PlacedSymbolArray",hy);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 u={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 u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),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}(Yp);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 Qs=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}(fy);y("SymbolLineVertexArray",Qs);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 u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),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}(Tf);y("FeatureIndexArray",P1);var p3=ui([{name:"a_pos",components:2,type:"Int16"}],4),z1=p3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&ke("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:u.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,u=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^=(u.charCodeAt(ne+2)&255)<<16;case 2:Q^=(u.charCodeAt(ne+1)&255)<<8;case 1:Q^=u.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^=u.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(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.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^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.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,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){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,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ce(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};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,u,p){for(;u>1],A=u-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-uk.x+1||Yk.y+1)&&ke("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Mi(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Ua(n):[]}}function La(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var mi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new uc,this.indexArray=new Cu,this.segments=new Tn,this.programConfigurations=new kr(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};mi.prototype.populate=function(o,u,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||ge<0||ge>=Nr)){var ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),Ce=ve.vertexLength;La(this.layoutVertexArray,ne,ge,-1,-1),La(this.layoutVertexArray,ne,ge,1,-1),La(this.layoutVertexArray,ne,ge,1,1),La(this.layoutVertexArray,ne,ge,-1,1),this.indexArray.emplaceBack(Ce,Ce+1,Ce+2),this.indexArray.emplaceBack(Ce,Ce+3,Ce+2),ve.vertexLength+=4,ve.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",mi,{omit:["layers"]});function ia(n,o){for(var u=0;u=3){for(var A=0;A1){if(zs(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var u=!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&&(u=!u)}return u}function Do(n,o){for(var u=!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&&(u=!u)}return u}function Vl(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];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=Ee(n,o,u[0]);return A!==Ee(n,o,u[1])||A!==Ee(n,o,u[2])||A!==Ee(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Eu(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="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 hY(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function vY(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function dY(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var pY=_3,Fme=function(){var n=rd();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.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*u){F=j=n[0],Y=Q=n[1];for(var Ce=u;Cej&&(j=ne),ge>Q&&(Q=ge);ve=Math.max(j-F,Q-Y),ve=ve!==0?1/ve:0}return py(A,k,u,F,Y,ve),k}function xM(n,o,u,p,x){var A,k;if(x===S3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=TM(A,n[A],n[A+1],k);return k&&F1(k,k.next)&&(yy(k),k=k.next),k}function wh(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(F1(u,u.next)||An(u.prev,u,u.next)===0)){if(yy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function py(n,o,u,p,x,A,k){if(n){!k&&A&&VY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?IY(n,p,x,A):zY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),yy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=RY(wh(n),o,u),py(n,o,u,p,x,A,2)):k===2&&FY(n,o,u,p,x,A):py(wh(n),o,u,p,x,A,1);break}}}}function zY(n){var o=n.prev,u=n,p=n.next;if(An(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(e0(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function IY(n,o,u,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=A3(F,Y,o,u,p),ge=A3(j,Q,o,u,p),ve=n.prevZ,Ce=n.nextZ;ve&&ve.z>=ne&&Ce&&Ce.z<=ge;){if(ve!==n.prev&&ve!==n.next&&e0(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,Ce!==n.prev&&Ce!==n.next&&e0(x.x,x.y,A.x,A.y,k.x,k.y,Ce.x,Ce.y)&&An(Ce.prev,Ce,Ce.next)>=0))return!1;Ce=Ce.nextZ}for(;ve&&ve.z>=ne;){if(ve!==n.prev&&ve!==n.next&&e0(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(;Ce&&Ce.z<=ge;){if(Ce!==n.prev&&Ce!==n.next&&e0(x.x,x.y,A.x,A.y,k.x,k.y,Ce.x,Ce.y)&&An(Ce.prev,Ce,Ce.next)>=0)return!1;Ce=Ce.nextZ}return!0}function RY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!F1(x,A)&&bM(x,p,p.next,A)&&my(x,A)&&my(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),yy(p),yy(p.next),p=n=A),p=p.next}while(p!==n);return wh(p)}function FY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&ZY(k,F)){var Y=wM(k,F);k=wh(k,k.next),Y=wh(Y,Y.next),py(k,o,u,p,x,A),py(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function qY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&e0(xk.x||u.x===k.x&&UY(k,u)))&&(k=u,ne=ge)),u=u.next;while(u!==Y);return k}function UY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function VY(n,o,u,p){var x=n;do x.z===null&&(x.z=A3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,HY(x)}function HY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function A3(n,o,u,p,x){return n=32767*(n-u)*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 GY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function ZY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!YY(n,o)&&(my(n,o)&&my(o,n)&&WY(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,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function F1(n,o){return n.x===o.x&&n.y===o.y}function bM(n,o,u,p){var x=N1(An(n,o,u)),A=N1(An(n,o,p)),k=N1(An(u,p,n)),F=N1(An(u,p,o));return!!(x!==A&&k!==F||x===0&&q1(n,u,o)||A===0&&q1(n,p,o)||k===0&&q1(u,n,p)||F===0&&q1(u,o,p))}function q1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function N1(n){return n>0?1:n<0?-1:0}function YY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&bM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function my(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 WY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function wM(n,o){var u=new M3(n.i,n.x,n.y),p=new M3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function TM(n,o,u,p){var x=new M3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function yy(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 M3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}R1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(S3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},T3.default=PY;function XY(n,o,u,p,x){AM(n,o,u||0,p||n.length-1,x||jY)}function AM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+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(u,Math.floor(o-k*Y/A+j)),ne=Math.min(p,Math.floor(o+(A-k)*Y/A+j));AM(n,o,Q,ne,x)}var ge=n[o],ve=u,Ce=p;for(gy(n,u,o),x(n[p],ge)>0&&gy(n,u,p);ve0;)Ce--}x(n[u],ge)===0?gy(n,u,Ce):(Ce++,gy(n,Ce,p)),Ce<=o&&(u=Ce+1),o<=Ce&&(p=Ce-1)}}function gy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function jY(n,o){return no?1:0}function k3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},t0.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},t0.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=t0.types[this.type],Y,j;function Q(ve){for(var Ce=0;Ce>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}kM.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 MM(this._pbf,o,this.extent,this._keys,this._values)};var fW=cW;function cW(n,o){this.layers=n.readFields(hW,{},o)}function hW(n,o,u){if(n===3){var p=new SM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var vW=fW,dW=MM,pW=SM,r0={VectorTile:vW,VectorTileFeature:dW,VectorTileLayer:pW},mW=r0.VectorTileFeature.types,yW=500,L3=Math.pow(2,13);function _y(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*L3)*2+k,x*L3*2,A*L3*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(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new bf,this.indexArray=new Cu,this.programConfigurations=new kr(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Du.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=C3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var At=ft[St-1];if(!gW(gt,At)){ve.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Rt=gt.sub(At)._perp()._unit(),Jt=At.dist(gt);tt+Jt>32768&&(tt=0),_y(this.layoutVertexArray,gt.x,gt.y,Rt.x,Rt.y,0,0,tt),_y(this.layoutVertexArray,gt.x,gt.y,Rt.x,Rt.y,0,1,tt),tt+=Jt,_y(this.layoutVertexArray,At.x,At.y,Rt.x,Rt.y,0,0,tt),_y(this.layoutVertexArray,At.x,At.y,Rt.x,Rt.y,0,1,tt);var dr=ve.vertexLength;this.indexArray.emplaceBack(dr,dr+2,dr+1),this.indexArray.emplaceBack(dr+1,dr+2,dr+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)),mW[o.type]==="Polygon"){for(var cr=[],Fr=[],Cr=ve.vertexLength,Ir=0,Qr=Y;IrNr)||n.y===o.y&&(n.y<0||n.y>Nr)}function _W(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 xW=new qn({"fill-extrusion-opacity":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ni(Xt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Hr(Xt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Tr(Xt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),bW={paint:xW},wW=function(n){function o(u){n.call(this,u,bW)}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 el(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),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),ve=this.paint.get("fill-extrusion-base").evaluate(x,A),Ce=MW(ne,Q,Y,0),qe=AW(k,ve,ge,Q),ft=qe[0],tt=qe[1];return TW(ft,tt,Ce)},o}(pi);function xy(n,o){return n.x*o.x+n.y*o.y}function CM(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(cr&&St>Q){var Cr=ve.dist(Ce);if(Cr>2*ne){var Ir=ve.sub(ve.sub(Ce)._mult(ne/Cr)._round());this.updateDistance(Ce,Ir),this.addCurrentVertex(Ir,ft,0,0,ge),Ce=Ir}}var Qr=Ce&&qe,qr=Qr?p:Y?"butt":x;if(Qr&&qr==="round"&&(JtA&&(qr="bevel"),qr==="bevel"&&(Jt>2&&(qr="flipbevel"),Jt100)gt=tt.mult(-1);else{var Br=Jt*ft.add(tt).mag()/ft.sub(tt).mag();gt._perp()._mult(Br*(Fr?-1:1))}this.addCurrentVertex(ve,gt,0,0,ge),this.addCurrentVertex(ve,gt.mult(-1),0,0,ge)}else if(qr==="bevel"||qr==="fakeround"){var ya=-Math.sqrt(Jt*Jt-1),Xr=Fr?ya:0,Ya=Fr?0:ya;if(Ce&&this.addCurrentVertex(ve,ft,Xr,Ya,ge),qr==="fakeround")for(var gi=Math.round(dr*180/Math.PI/zW),Wa=1;Wa2*ne){var kn=ve.add(qe.sub(ve)._mult(ne/Yn)._round());this.updateDistance(ve,kn),this.addCurrentVertex(kn,tt,0,0,ge),ve=kn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>DM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(DM-1):this.scaledDistance,ne=Q*LM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(EM*u)+128,Math.round(EM*p)+128,(k===0?0:k<0?-1:1)+1|(ne&63)<<2,ne>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,ve=this.lineClips.end-this.lineClips.start,Ce=ge/ve;this.layoutVertexArray2.emplaceBack(Ce,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,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var RW=new qn({"line-cap":new Tr(Xt.layout_line["line-cap"]),"line-join":new Hr(Xt.layout_line["line-join"]),"line-miter-limit":new Tr(Xt.layout_line["line-miter-limit"]),"line-round-limit":new Tr(Xt.layout_line["line-round-limit"]),"line-sort-key":new Hr(Xt.layout_line["line-sort-key"])}),FW=new qn({"line-opacity":new Hr(Xt.paint_line["line-opacity"]),"line-color":new Hr(Xt.paint_line["line-color"]),"line-translate":new Tr(Xt.paint_line["line-translate"]),"line-translate-anchor":new Tr(Xt.paint_line["line-translate-anchor"]),"line-width":new Hr(Xt.paint_line["line-width"]),"line-gap-width":new Hr(Xt.paint_line["line-gap-width"]),"line-offset":new Hr(Xt.paint_line["line-offset"]),"line-blur":new Hr(Xt.paint_line["line-blur"]),"line-dasharray":new Ai(Xt.paint_line["line-dasharray"]),"line-pattern":new Ni(Xt.paint_line["line-pattern"]),"line-gradient":new fo(Xt.paint_line["line-gradient"])}),PM={paint:FW,layout:RW},qW=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),zM=new qW(PM.paint.properties["line-width"].specification);zM.useIntegerZoom=!0;var NW=function(n){function o(u){n.call(this,u,PM),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"]=zM.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=IM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(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*IM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=BW(k,ge*j)),Nn(Q,k,ne)},o.prototype.isTileClipped=function(){return!0},o}(pi);function IM(n,o){return o>0?o+2*n:n}function BW(n,o){for(var u=[],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 WW(n){for(var o="",u=0;u>1,Q=-7,ne=u?x-1:0,ge=u?-1:1,ve=n[o+ne];for(ne+=ge,A=ve&(1<<-Q)-1,ve>>=-Q,Q+=F;Q>0;A=A*256+n[o+ne],ne+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ne],ne+=ge,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)},jW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=p?0:A-1,Ce=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+=ge/Y:o+=ge*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[u+ve]=F&255,ve+=Ce,F/=256,x-=8);for(k=k<0;n[u+ve]=k&255,ve+=Ce,k/=256,j-=8);n[u+ve-Ce]|=qe*128},B1={read:XW,write:jW},O1=Pi;function Pi(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Pi.Varint=0,Pi.Fixed64=1,Pi.Bytes=2,Pi.Fixed32=5;var D3=65536*65536,FM=1/D3,JW=12,qM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Pi.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||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=BM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=U1(this.buf,this.pos)+U1(this.buf,this.pos+4)*D3;return this.pos+=8,n},readSFixed64:function(){var n=U1(this.buf,this.pos)+BM(this.buf,this.pos+4)*D3;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,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,KW(u,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>=JW&&qM?cX(this.buf,o,n):fX(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!==Pi.Bytes)return n.push(this.readVarint(o));var u=vc(this);for(n=n||[];this.pos127;);else if(o===Pi.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Pi.Fixed32)this.pos+=4;else if(o===Pi.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){QW(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=hX(this.buf,n,this.pos);var u=this.pos-o;u>=128&&NM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},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 u=0;u=128&&NM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,Pi.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,tX,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,rX,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,nX,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,aX,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,iX,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,oX,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,sX,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,lX,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,uX,o)},writeBytesField:function(n,o){this.writeTag(n,Pi.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,Pi.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,Pi.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,Pi.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,Pi.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,Pi.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function KW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return a0(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function vc(n){return n.type===Pi.Bytes?n.readVarint()+n.pos:n.pos+1}function a0(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function QW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),$W(u,p,o),eX(p,o)}function $W(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function eX(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((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 NM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function tX(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function BM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function fX(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)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 cX(n,o,u){return qM.decode(n.subarray(o,u))}function hX(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var P3=3;function vX(n,o,u){n===1&&u.readMessage(dX,o)}function dX(n,o,u){if(n===3){var p=u.readMessage(pX,{}),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*P3,height:F+2*P3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function pX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function mX(n){return new O1(n).readFields(vX,[])}var OM=P3;function UM(n){for(var o=0,u=0,p=0,x=n;p=0;ve--){var Ce=F[ve];if(!(ge.w>Ce.w||ge.h>Ce.h)){if(ge.x=Ce.x,ge.y=Ce.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===Ce.w&&ge.h===Ce.h){var qe=F.pop();ve=0&&x>=o&&Af[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(n0.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=HM?null:++this.imageSectionID:(this.imageSectionID=VM,this.imageSectionID)};function gX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ne=0;ne0&&kn>Fr&&(Fr=kn)}else{var Xa=u[Ir.fontStack],Va=Xa&&Xa[qr];if(Va&&Va.rect)Xr=Va.rect,ya=Va.metrics;else{var Si=o[Ir.fontStack],zi=Si&&Si[qr];if(!zi)continue;ya=zi.metrics}Br=(Rt-Ir.scale)*Qn}Wa?(n.verticalizable=!0,cr.push({glyph:qr,imageName:Ya,x:ge,y:ve+Br,vertical:Wa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:Qr,metrics:ya,rect:Xr}),ge+=gi*Ir.scale+j):(cr.push({glyph:qr,imageName:Ya,x:ge,y:ve+Br,vertical:Wa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:Qr,metrics:ya,rect:Xr}),ge+=ya.advance*Ir.scale+j)}if(cr.length!==0){var wo=ge-j;Ce=Math.max(wo,Ce),wX(cr,0,cr.length-1,ft,Fr)}ge=0;var To=A*Rt+Fr;dr.lineOffset=Math.max(Fr,Jt),ve+=To,qe=Math.max(To,qe),++tt}var Wn=ve-Ay,Io=I3(k),Ro=Io.horizontalAlign,Bn=Io.verticalAlign;TX(n.positionedLines,ft,Ro,Bn,Ce,qe,A,Wn,x.length),n.top+=-Bn*Wn,n.bottom=n.top+Wn,n.left+=-Ro*Ce,n.right=n.left+Ce}function wX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function TX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-Ay:Q=(-p*Y+.5)*k;for(var ne=0,ge=n;ne-u/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(ge)}return!0}function QM(n){for(var o=0,u=0;uj){var Ce=(j-Y)/ve,qe=pn(ne.x,ge.x,Ce),ft=pn(ne.y,ge.y,Ce),tt=new o0(qe,ft,ge.angleTo(ne),Q);return tt._round(),!k||KM(n,tt,F,k,o)?tt:void 0}Y+=ve}}function kX(n,o,u,p,x,A,k,F,Y){var j=$M(p,A,k),Q=e7(p,x),ne=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ne=0&&At=0&&Rt=0&&ge+j<=Q){var Jt=new o0(At,Rt,St,Ce);Jt._round(),(!p||KM(n,Jt,A,p,x))&&ve.push(Jt)}}ne+=tt}return!F&&!ve.length&&!k&&(ve=t7(n,ne/2,u,p,x,A,k,!0,Y)),ve}function r7(n,o,u,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 s0=ps;function a7(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*s0,Y=A.paddedRect.h-2*s0,j=n.right-n.left,Q=n.bottom-n.top,ne=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],ve=function(Xa,Va){return Xa+Va[1]-Va[0]},Ce=ne.reduce(ve,0),qe=ge.reduce(ve,0),ft=F-Ce,tt=Y-qe,St=0,gt=Ce,At=0,Rt=qe,Jt=0,dr=ft,cr=0,Fr=tt;if(A.content&&p){var Cr=A.content;St=G1(ne,0,Cr[0]),At=G1(ge,0,Cr[1]),gt=G1(ne,Cr[0],Cr[2]),Rt=G1(ge,Cr[1],Cr[3]),Jt=Cr[0]-St,cr=Cr[1]-At,dr=Cr[2]-Cr[0]-gt,Fr=Cr[3]-Cr[1]-Rt}var Ir=function(Xa,Va,Si,zi){var rn=Z1(Xa.stretch-St,gt,j,n.left),fn=Y1(Xa.fixed-Jt,dr,Xa.stretch,Ce),Yn=Z1(Va.stretch-At,Rt,Q,n.top),kn=Y1(Va.fixed-cr,Fr,Va.stretch,qe),wo=Z1(Si.stretch-St,gt,j,n.left),To=Y1(Si.fixed-Jt,dr,Si.stretch,Ce),Wn=Z1(zi.stretch-At,Rt,Q,n.top),Io=Y1(zi.fixed-cr,Fr,zi.stretch,qe),Ro=new v(rn,Yn),Bn=new v(wo,Yn),Fo=new v(wo,Wn),Rs=new v(rn,Wn),mc=new v(fn/k,kn/k),Mh=new v(To/k,Io/k),Sh=o*Math.PI/180;if(Sh){var kh=Math.sin(Sh),p0=Math.cos(Sh),Hl=[p0,-kh,kh,p0];Ro._matMult(Hl),Bn._matMult(Hl),Rs._matMult(Hl),Fo._matMult(Hl)}var Q1=Xa.stretch+Xa.fixed,H3=Si.stretch+Si.fixed,$1=Va.stretch+Va.fixed,G3=zi.stretch+zi.fixed,rl={x:A.paddedRect.x+s0+Q1,y:A.paddedRect.y+s0+$1,w:H3-Q1,h:G3-$1},m0=dr/k/j,e_=Fr/k/Q;return{tl:Ro,tr:Bn,bl:Rs,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:mc,pixelOffsetBR:Mh,minFontScaleX:m0,minFontScaleY:e_,isSDF:u}};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 Qr=i7(ne,ft,Ce),qr=i7(ge,tt,qe),Br=0;Br0&&(Ce=Math.max(10,Ce),this.circleDiameter=Ce)}else{var qe=k.top*F-Y,ft=k.bottom*F+Y,tt=k.left*F-Y,St=k.right*F+Y,gt=k.collisionPadding;if(gt&&(tt-=gt[0]*F,qe-=gt[1]*F,St+=gt[2]*F,ft+=gt[3]*F),Q){var At=new v(tt,qe),Rt=new v(St,qe),Jt=new v(tt,ft),dr=new v(St,ft),cr=Q*Math.PI/180;At._rotate(cr),Rt._rotate(cr),Jt._rotate(cr),dr._rotate(cr),tt=Math.min(At.x,Rt.x,Jt.x,dr.x),St=Math.max(At.x,Rt.x,Jt.x,dr.x),qe=Math.min(At.y,Rt.y,Jt.y,dr.y),ft=Math.max(At.y,Rt.y,Jt.y,dr.y)}o.emplaceBack(u.x,u.y,tt,qe,St,ft,p,x,A)}this.boxEndIndex=o.length},l0=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=EX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};l0.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},l0.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},l0.prototype.peek=function(){return this.data[0]},l0.prototype._up=function(o){for(var u=this,p=u.data,x=u.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},l0.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function EX(n,o){return no?1:0}function LX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!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,ge=Math.min(Q,ne),ve=ge/2,Ce=new l0([],DX);if(ge===0)return new v(p,x);for(var qe=p;qett.d||!tt.d)&&(tt=gt,u&&console.log("found best %d after %d probes",Math.round(1e4*gt.d)/1e4,St)),!(gt.max-tt.d<=o)&&(ve=gt.h/2,Ce.push(new u0(gt.p.x-ve,gt.p.y-ve,ve,n)),Ce.push(new u0(gt.p.x+ve,gt.p.y-ve,ve,n)),Ce.push(new u0(gt.p.x-ve,gt.p.y+ve,ve,n)),Ce.push(new u0(gt.p.x+ve,gt.p.y+ve,ve,n)),St+=4)}return u&&(console.log("num probes: "+St),console.log("best distance: "+tt.d)),tt.p}function DX(n,o){return o.max-n.max}function u0(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=PX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function PX(n,o){for(var u=!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&&(u=!u),p=Math.min(p,hc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function zX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=Nr||Hl.y<0||Hl.y>=Nr||FX(n,Hl,p0,u,p,x,qr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,tt,Rt,cr,Y,gt,Jt,Fr,ve,o,A,j,Q,k)};if(Cr==="line")for(var ya=0,Xr=r7(o.geometry,0,0,Nr,Nr);ya1){var Yn=SX(fn,dr,u.vertical||Ce,p,qe,St);Yn&&Br(fn,Yn)}}else if(o.type==="Polygon")for(var kn=0,wo=k3(o.geometry,0);knTh&&ke(n.layerIds[0]+': Value for "text-size" is >= '+My+'. Reduce your "text-size".')):ft.kind==="composite"&&(tt=[Pu*ve.compositeTextSizes[0].evaluate(k,{},Ce),Pu*ve.compositeTextSizes[1].evaluate(k,{},Ce)],(tt[0]>Th||tt[1]>Th)&&ke(n.layerIds[0]+': Value for "text-size" is >= '+My+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,tt,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,Ce);for(var St=0,gt=Q;StTh&&ke(n.layerIds[0]+': Value for "icon-size" is >= '+My+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Bn=[Pu*Rt.compositeIconSizes[0].evaluate(At,{},dr),Pu*Rt.compositeIconSizes[1].evaluate(At,{},dr)],(Bn[0]>Th||Bn[1]>Th)&&ke(n.layerIds[0]+': Value for "icon-size" is >= '+My+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Wn,Bn,gt,St,At,!1,o,Cr.lineStartIndex,Cr.lineLength,-1,dr),Wa=n.icon.placedSymbolArray.length-1,Io&&(Xr=Io.length*4,n.addSymbols(n.icon,Io,Bn,gt,St,At,Is.vertical,o,Cr.lineStartIndex,Cr.lineLength,-1,dr),Xa=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var Rs=p.horizontal[Fo];if(!Ir){Si=w(Rs.text);var mc=F.layout.get("text-rotate").evaluate(At,{},dr);Ir=new W1(Y,o,j,Q,ne,Rs,ge,ve,Ce,mc)}var Mh=Rs.positionedLines.length===1;if(Ya+=o7(n,o,Rs,A,F,Ce,At,qe,Cr,p.vertical?Is.horizontal:Is.horizontalOnly,Mh?Object.keys(p.horizontal):[Fo],Va,Wa,Rt,dr),Mh)break}p.vertical&&(gi+=o7(n,o,p.vertical,A,F,Ce,At,qe,Cr,Is.vertical,["vertical"],Va,Xa,Rt,dr));var Sh=Ir?Ir.boxStartIndex:n.collisionBoxArray.length,kh=Ir?Ir.boxEndIndex:n.collisionBoxArray.length,p0=qr?qr.boxStartIndex:n.collisionBoxArray.length,Hl=qr?qr.boxEndIndex:n.collisionBoxArray.length,Q1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,H3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,$1=Br?Br.boxStartIndex:n.collisionBoxArray.length,G3=Br?Br.boxEndIndex:n.collisionBoxArray.length,rl=-1,m0=function(Cy,T7){return Cy&&Cy.circleDiameter?Math.max(Cy.circleDiameter,T7):T7};rl=m0(Ir,rl),rl=m0(qr,rl),rl=m0(Qr,rl),rl=m0(Br,rl);var e_=rl>-1?1:0;e_&&(rl*=cr/Qn),n.glyphOffsetArray.length>=yi.MAX_GLYPHS&&ke("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),At.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,At.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Va.right>=0?Va.right:-1,Va.center>=0?Va.center:-1,Va.left>=0?Va.left:-1,Va.vertical||-1,Wa,Xa,Si,Sh,kh,p0,Hl,Q1,H3,$1,G3,j,Ya,gi,ya,Xr,e_,0,ge,zi,rn,rl)}function qX(n,o,u,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 ge=u.iconDependencies,ve=u.glyphDependencies,Ce=u.availableImages,qe=new jt(this.zoom),ft=0,tt=o;ft=0;for(var gi=0,Wa=Fr.sections;gi=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},yi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},yi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},yi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},yi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},yi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),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&&u.addIndicesForPlacedSymbol(u.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",yi,{omit:["layers","collisionBoxArray","features","compareText"]}),yi.MAX_GLYPHS=65535,yi.addDynamicAttributes=N3;function UX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var VX=new qn({"symbol-placement":new Tr(Xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Tr(Xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Tr(Xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Hr(Xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Tr(Xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Tr(Xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Tr(Xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Tr(Xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Tr(Xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Hr(Xt.layout_symbol["icon-size"]),"icon-text-fit":new Tr(Xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Tr(Xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Hr(Xt.layout_symbol["icon-image"]),"icon-rotate":new Hr(Xt.layout_symbol["icon-rotate"]),"icon-padding":new Tr(Xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Tr(Xt.layout_symbol["icon-keep-upright"]),"icon-offset":new Hr(Xt.layout_symbol["icon-offset"]),"icon-anchor":new Hr(Xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Tr(Xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Tr(Xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Tr(Xt.layout_symbol["text-rotation-alignment"]),"text-field":new Hr(Xt.layout_symbol["text-field"]),"text-font":new Hr(Xt.layout_symbol["text-font"]),"text-size":new Hr(Xt.layout_symbol["text-size"]),"text-max-width":new Hr(Xt.layout_symbol["text-max-width"]),"text-line-height":new Tr(Xt.layout_symbol["text-line-height"]),"text-letter-spacing":new Hr(Xt.layout_symbol["text-letter-spacing"]),"text-justify":new Hr(Xt.layout_symbol["text-justify"]),"text-radial-offset":new Hr(Xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Tr(Xt.layout_symbol["text-variable-anchor"]),"text-anchor":new Hr(Xt.layout_symbol["text-anchor"]),"text-max-angle":new Tr(Xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Tr(Xt.layout_symbol["text-writing-mode"]),"text-rotate":new Hr(Xt.layout_symbol["text-rotate"]),"text-padding":new Tr(Xt.layout_symbol["text-padding"]),"text-keep-upright":new Tr(Xt.layout_symbol["text-keep-upright"]),"text-transform":new Hr(Xt.layout_symbol["text-transform"]),"text-offset":new Hr(Xt.layout_symbol["text-offset"]),"text-allow-overlap":new Tr(Xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Tr(Xt.layout_symbol["text-ignore-placement"]),"text-optional":new Tr(Xt.layout_symbol["text-optional"])}),HX=new qn({"icon-opacity":new Hr(Xt.paint_symbol["icon-opacity"]),"icon-color":new Hr(Xt.paint_symbol["icon-color"]),"icon-halo-color":new Hr(Xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Hr(Xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Hr(Xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Tr(Xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Tr(Xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Hr(Xt.paint_symbol["text-opacity"]),"text-color":new Hr(Xt.paint_symbol["text-color"],{runtimeType:Ts,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Hr(Xt.paint_symbol["text-halo-color"]),"text-halo-width":new Hr(Xt.paint_symbol["text-halo-width"]),"text-halo-blur":new Hr(Xt.paint_symbol["text-halo-blur"]),"text-translate":new Tr(Xt.paint_symbol["text-translate"]),"text-translate-anchor":new Tr(Xt.paint_symbol["text-translate-anchor"])}),B3={paint:HX,layout:VX},h0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:rf,this.defaultValue=o};h0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},h0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},h0.prototype.outputDefined=function(){return!1},h0.prototype.serialize=function(){return null},y("FormatSectionOverride",h0,{omit:["defaultValue"]});var GX=function(n){function o(u){n.call(this,u,B3)}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})}}},v0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else it()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},v0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},v0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=kt(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,ve){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(ve,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ne=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ne[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},v0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function tj(n,o,u){o=Math.pow(2,u)-o-1;var p=h7(n*256,o*256,u),x=h7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function h7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):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 Hi?new Hi(o.lng,o.lat):Hi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Hi?new Hi(o.lng,o.lat):Hi.convert(o),this},Mn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Hi)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(Hi.convert(F))}return this}return!u&&!p?(this._sw=new Hi(x.lng,x.lat),this._ne=new Hi(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Hi((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 Hi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Hi(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 u=Hi.convert(o),p=u.lng,x=u.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 v7=63710088e-1,Hi=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hi.prototype.wrap=function(){return new Hi(O(this.lng,-180,180),this.lat)},Hi.prototype.toArray=function(){return[this.lng,this.lat]},Hi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hi.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=v7*Math.acos(Math.min(A,1));return k},Hi.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Hi(this.lng-x,this.lat-p),new Hi(this.lng+x,this.lat+p))},Hi.convert=function(o){if(o instanceof Hi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Hi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Hi(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 d7=2*Math.PI*v7;function p7(n){return d7*Math.cos(n*Math.PI/180)}function m7(n){return(180+n)/360}function y7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function g7(n,o){return n/p7(o)}function rj(n){return n*360-180}function U3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function aj(n,o){return n*p7(U3(o))}function ij(n){return 1/Math.cos(n*Math.PI/180)}var nd=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};nd.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Hi.convert(o);return new nd(m7(p.lng),y7(p.lat),g7(u,p.lat))},nd.prototype.toLngLat=function(){return new Hi(rj(this.x),U3(this.y))},nd.prototype.toAltitude=function(){return aj(this.z,this.y)},nd.prototype.meterInMercatorCoordinateUnits=function(){return 1/d7*ij(U3(this.y))};var od=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=ky(0,o,o,u,p)};od.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},od.prototype.url=function(o,u){var p=tj(this.x,this.y,this.z),x=nj(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(u==="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 u=Math.pow(2,this.z);return new v((o.x*u-this.x)*Nr,(o.y*u-this.y)*Nr)},od.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var _7=function(o,u){this.wrap=o,this.canonical=u,this.key=ky(o,u.z,u.z,u.x,u.y)},Sn=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new od(p,+x,+A),this.key=ky(u,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 u=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>>u,this.canonical.y>>u)},Sn.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?ky(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):ky(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},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 u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(u,this.wrap,u,p,x),new Sn(u,this.wrap,u,p+1,x),new Sn(u,this.wrap,u,p,x+1),new Sn(u,this.wrap,u,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||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},dc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},dc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},dc.prototype.getPixels=function(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){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=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ne[3]>=0&&Y.insert(F,ne[0],ne[1],ne[2],ne[3])}},pc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new r0.VectorTile(new O1(this.rawTileData)).layers,this.sourceLayerCoder=new J1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=Nr/o.tileSize/o.scale,Y=vf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ne=b7(j),ge=this.grid.query(ne.minX-Q,ne.minY-Q,ne.maxX+Q,ne.maxY+Q),ve=b7(o.cameraQueryGeometry),Ce=this.grid3D.query(ve.minX-Q,ve.minY-Q,ve.maxX+Q,ve.maxY+Q,function(Jt,dr,cr,Fr){return Vl(o.cameraQueryGeometry,Jt-Q,dr-Q,cr+Q,Fr+Q)}),qe=0,ft=Ce;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=$r.maxzoom)&&$r.visibility!=="none"){T(gr,this.zoom,he);var ga=Pt[$r.id]=$r.createBucket({index:mt.bucketLayerIDs.length,layers:gr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Zr,sourceID:this.source});ga.populate(Or,Ft,this.tileID.canonical),mt.bucketLayerIDs.push(gr.map(function(Ga){return Ga.id}))}}}}var nr,Ti,Ea,si,fa=a.mapObject(Ft.glyphDependencies,function(Ga){return Object.keys(Ga).map(Number)});Object.keys(fa).length?Le.send("getGlyphs",{uid:this.uid,stacks:fa},function(Ga,Kn){nr||(nr=Ga,Ti=Kn,bs.call(et))}):Ti={};var In=Object.keys(Ft.iconDependencies);In.length?Le.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"icons"},function(Ga,Kn){nr||(nr=Ga,Ea=Kn,bs.call(et))}):Ea={};var Co=Object.keys(Ft.patternDependencies);Co.length?Le.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Ga,Kn){nr||(nr=Ga,si=Kn,bs.call(et))}):si={},bs.call(this);function bs(){if(nr)return Ne(nr);if(Ti&&Ea&&si){var Ga=new m(Ti),Kn=new a.ImageAtlas(Ea,si);for(var du in Pt){var Ui=Pt[du];Ui instanceof a.SymbolBucket?(T(Ui.layers,this.zoom,he),a.performSymbolLayout(Ui,Ti,Ga.positions,Ea,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ui.hasPattern&&(Ui instanceof a.LineBucket||Ui instanceof a.FillBucket||Ui instanceof a.FillExtrusionBucket)&&(T(Ui.layers,this.zoom,he),Ui.addFeatures(Ft,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Pt).filter(function(pl){return!pl.isEmpty()}),featureIndex:mt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ga.image,imageAtlas:Kn,glyphMap:this.returnDependencies?Ti:null,iconMap:this.returnDependencies?Ea:null,glyphPositions:this.returnDependencies?Ga.positions:null})}}};function T(se,te,ue){for(var he=new a.EvaluationParameters(te),Le=0,Ne=se;Le=0!=!!te&&se.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=[],ue=0,he=this._feature.geometry;ue>31}function it(se,te){for(var ue=se.loadGeometry(),he=se.type,Le=0,Ne=0,et=ue.length,We=0;We>1;kt(se,te,et,he,Le,Ne%2),Ye(se,te,ue,he,et-1,Ne+1),Ye(se,te,ue,et+1,Le,Ne+1)}}function kt(se,te,ue,he,Le,Ne){for(;Le>he;){if(Le-he>600){var et=Le-he+1,We=ue-he+1,mt=Math.log(et),Pt=.5*Math.exp(2*mt/3),Ft=.5*Math.sqrt(mt*Pt*(et-Pt)/et)*(We-et/2<0?-1:1),tr=Math.max(he,Math.floor(ue-We*Pt/et+Ft)),Wt=Math.min(Le,Math.floor(ue+(et-We)*Pt/et+Ft));kt(se,te,ue,tr,Wt,Ne)}var Sr=te[2*ue+Ne],Zr=he,Or=Le;for(st(se,te,he,ue),te[2*Le+Ne]>Sr&&st(se,te,he,Le);ZrSr;)Or--}te[2*he+Ne]===Sr?st(se,te,he,Or):(Or++,st(se,te,Or,Le)),Or<=ue&&(he=Or+1),ue<=Or&&(Le=Or-1)}}function st(se,te,ue,he){dt(se,ue,he),dt(te,2*ue,2*he),dt(te,2*ue+1,2*he+1)}function dt(se,te,ue){var he=se[te];se[te]=se[ue],se[ue]=he}function It(se,te,ue,he,Le,Ne,et){for(var We=[0,se.length-1,0],mt=[],Pt,Ft;We.length;){var tr=We.pop(),Wt=We.pop(),Sr=We.pop();if(Wt-Sr<=et){for(var Zr=Sr;Zr<=Wt;Zr++)Pt=te[2*Zr],Ft=te[2*Zr+1],Pt>=ue&&Pt<=Le&&Ft>=he&&Ft<=Ne&&mt.push(se[Zr]);continue}var Or=Math.floor((Sr+Wt)/2);Pt=te[2*Or],Ft=te[2*Or+1],Pt>=ue&&Pt<=Le&&Ft>=he&&Ft<=Ne&&mt.push(se[Or]);var ca=(tr+1)%2;(tr===0?ue<=Pt:he<=Ft)&&(We.push(Sr),We.push(Or-1),We.push(ca)),(tr===0?Le>=Pt:Ne>=Ft)&&(We.push(Or+1),We.push(Wt),We.push(ca))}return mt}function yt(se,te,ue,he,Le,Ne){for(var et=[0,se.length-1,0],We=[],mt=Le*Le;et.length;){var Pt=et.pop(),Ft=et.pop(),tr=et.pop();if(Ft-tr<=Ne){for(var Wt=tr;Wt<=Ft;Wt++)de(te[2*Wt],te[2*Wt+1],ue,he)<=mt&&We.push(se[Wt]);continue}var Sr=Math.floor((tr+Ft)/2),Zr=te[2*Sr],Or=te[2*Sr+1];de(Zr,Or,ue,he)<=mt&&We.push(se[Sr]);var ca=(Pt+1)%2;(Pt===0?ue-Le<=Zr:he-Le<=Or)&&(et.push(tr),et.push(Sr-1),et.push(ca)),(Pt===0?ue+Le>=Zr:he+Le>=Or)&&(et.push(Sr+1),et.push(Ft),et.push(ca))}return We}function de(se,te,ue,he){var Le=se-ue,Ne=te-he;return Le*Le+Ne*Ne}var ze=function(se){return se[0]},_e=function(se){return se[1]},Ue=function(te,ue,he,Le,Ne){ue===void 0&&(ue=ze),he===void 0&&(he=_e),Le===void 0&&(Le=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Le,this.points=te;for(var et=te.length<65536?Uint16Array:Uint32Array,We=this.ids=new et(te.length),mt=this.coords=new Ne(te.length*2),Pt=0;Pt=Le;Ft--){var tr=+Date.now();mt=this._cluster(mt,Ft),this.trees[Ft]=new Ue(mt,Be,ut,et,Float32Array),he&&console.log("z%d: %d clusters in %dms",Ft,mt.length,+Date.now()-tr)}return he&&console.timeEnd("total time"),this},Je.prototype.getClusters=function(te,ue){var he=((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,et=Math.max(-90,Math.min(90,te[3]));if(te[2]-te[0]>=360)he=-180,Ne=180;else if(he>Ne){var We=this.getClusters([he,Le,180,et],ue),mt=this.getClusters([-180,Le,Ne,et],ue);return We.concat(mt)}for(var Pt=this.trees[this._limitZoom(ue)],Ft=Pt.range(Ut(he),Dt(et),Ut(Ne),Dt(Le)),tr=[],Wt=0,Sr=Ft;Wtue&&(Or+=ri.numPoints||1)}if(Or>=mt){for(var Yr=tr.x*Zr,gr=tr.y*Zr,$r=We&&Zr>1?this._map(tr,!0):null,ga=(Ft<<5)+(ue+1)+this.points.length,nr=0,Ti=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,ue){if(te.numPoints)return ue?Yt({},te.properties):te.properties;var he=this.points[te.index].properties,Le=this.options.map(he);return ue&&Le===he?Yt({},Le):Le};function Ct(se,te,ue,he,Le){return{x:se,y:te,zoom:1/0,id:ue,parentId:-1,numPoints:he,properties:Le}}function wt(se,te){var ue=se.geometry.coordinates,he=ue[0],Le=ue[1];return{x:Ut(he),y:Dt(Le),zoom:1/0,index:te,parentId:-1}}function xt(se){return{type:"Feature",id:se.id,properties:qt(se),geometry:{type:"Point",coordinates:[Mt(se.x),Zt(se.y)]}}}function qt(se){var te=se.numPoints,ue=te>=1e4?Math.round(te/1e3)+"k":te>=1e3?Math.round(te/100)/10+"k":te;return Yt(Yt({},se.properties),{cluster:!0,cluster_id:se.id,point_count:te,point_count_abbreviated:ue})}function Ut(se){return se/360+.5}function Dt(se){var te=Math.sin(se*Math.PI/180),ue=.5-.25*Math.log((1+te)/(1-te))/Math.PI;return ue<0?0:ue>1?1:ue}function Mt(se){return(se-.5)*360}function Zt(se){var te=(180-se*360)*Math.PI/180;return 360*Math.atan(Math.exp(te))/Math.PI-90}function Yt(se,te){for(var ue in te)se[ue]=te[ue];return se}function Be(se){return se.x}function ut(se){return se.y}function sr(se,te,ue,he){for(var Le=he,Ne=ue-te>>1,et=ue-te,We,mt=se[te],Pt=se[te+1],Ft=se[ue],tr=se[ue+1],Wt=te+3;WtLe)We=Wt,Le=Sr;else if(Sr===Le){var Zr=Math.abs(Wt-Ne);Zrhe&&(We-te>3&&sr(se,te,We,he),se[We+2]=Le,ue-We>3&&sr(se,We,ue,he))}function Pr(se,te,ue,he,Le,Ne){var et=Le-ue,We=Ne-he;if(et!==0||We!==0){var mt=((se-ue)*et+(te-he)*We)/(et*et+We*We);mt>1?(ue=Le,he=Ne):mt>0&&(ue+=et*mt,he+=We*mt)}return et=se-ue,We=te-he,et*et+We*We}function Et(se,te,ue,he){var Le={id:typeof se=="undefined"?null:se,type:te,geometry:ue,tags:he,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ht(Le),Le}function ht(se){var te=se.geometry,ue=se.type;if(ue==="Point"||ue==="MultiPoint"||ue==="LineString")pt(se,te);else if(ue==="Polygon"||ue==="MultiLineString")for(var he=0;he0&&(he?et+=(Le*Pt-mt*Ne)/2:et+=Math.sqrt(Math.pow(mt-Le,2)+Math.pow(Pt-Ne,2))),Le=mt,Ne=Pt}var Ft=te.length-3;te[2]=1,sr(te,0,Ft,ue),te[Ft+2]=1,te.size=Math.abs(et),te.start=0,te.end=te.size}function pr(se,te,ue,he){for(var Le=0;Le1?1:ue}function Lt(se,te,ue,he,Le,Ne,et,We){if(ue/=te,he/=te,Ne>=ue&&et=he)return null;for(var mt=[],Pt=0;Pt=ue&&Zr=he)continue;var Or=[];if(Wt==="Point"||Wt==="MultiPoint")Fe(tr,Or,ue,he,Le);else if(Wt==="LineString")Ve(tr,Or,ue,he,Le,!1,We.lineMetrics);else if(Wt==="MultiLineString")Tt(tr,Or,ue,he,Le,!1);else if(Wt==="Polygon")Tt(tr,Or,ue,he,Le,!0);else if(Wt==="MultiPolygon")for(var ca=0;ca=ue&&et<=he&&(te.push(se[Ne]),te.push(se[Ne+1]),te.push(se[Ne+2]))}}function Ve(se,te,ue,he,Le,Ne,et){for(var We=bt(se),mt=Le===0?Ar:Mr,Pt=se.start,Ft,tr,Wt=0;Wtue&&(tr=mt(We,Sr,Zr,ca,ua,ue),et&&(We.start=Pt+Ft*tr)):qa>he?ri=ue&&(tr=mt(We,Sr,Zr,ca,ua,ue),Yr=!0),ri>he&&qa<=he&&(tr=mt(We,Sr,Zr,ca,ua,he),Yr=!0),!Ne&&Yr&&(et&&(We.end=Pt+Ft*tr),te.push(We),We=bt(se)),et&&(Pt+=Ft)}var gr=se.length-3;Sr=se[gr],Zr=se[gr+1],Or=se[gr+2],qa=Le===0?Sr:Zr,qa>=ue&&qa<=he&&mr(We,Sr,Zr,Or),gr=We.length-3,Ne&&gr>=3&&(We[gr]!==We[0]||We[gr+1]!==We[1])&&mr(We,We[0],We[1],We[2]),We.length&&te.push(We)}function bt(se){var te=[];return te.size=se.size,te.start=se.start,te.end=se.end,te}function Tt(se,te,ue,he,Le,Ne){for(var et=0;etet.maxX&&(et.maxX=Ft),tr>et.maxY&&(et.maxY=tr)}return et}function Fi(se,te,ue,he){var Le=te.geometry,Ne=te.type,et=[];if(Ne==="Point"||Ne==="MultiPoint")for(var We=0;We0&&te.size<(Le?et:he)){ue.numPoints+=te.length/3;return}for(var We=[],mt=0;mtet)&&(ue.numSimplified++,We.push(te[mt]),We.push(te[mt+1])),ue.numPoints++;Le&&vn(We,Ne),se.push(We)}function vn(se,te){for(var ue=0,he=0,Le=se.length,Ne=Le-2;he0===te)for(he=0,Le=se.length;he24)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 he=Ot(se,te);this.tiles={},this.tileCoords=[],ue&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",te.indexMaxZoom,te.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),he=Gr(he,te),he.length&&this.splitTile(he,0,0,0),ue&&(he.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)))}Ki.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ki.prototype.splitTile=function(se,te,ue,he,Le,Ne,et){for(var We=[se,te,ue,he],mt=this.options,Pt=mt.debug;We.length;){he=We.pop(),ue=We.pop(),te=We.pop(),se=We.pop();var Ft=1<1&&console.time("creation"),Wt=this.tiles[tr]=vi(se,te,ue,he,mt),this.tileCoords.push({z:te,x:ue,y:he}),Pt)){Pt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",te,ue,he,Wt.numFeatures,Wt.numPoints,Wt.numSimplified),console.timeEnd("creation"));var Sr="z"+te;this.stats[Sr]=(this.stats[Sr]||0)+1,this.total++}if(Wt.source=se,Le){if(te===mt.maxZoom||te===Le)continue;var Zr=1<1&&console.time("clipping");var Or=.5*mt.buffer/mt.extent,ca=.5-Or,ua=.5+Or,qa=1+Or,ri,Yr,gr,$r,ga,nr;ri=Yr=gr=$r=null,ga=Lt(se,Ft,ue-Or,ue+ua,0,Wt.minX,Wt.maxX,mt),nr=Lt(se,Ft,ue+ca,ue+qa,0,Wt.minX,Wt.maxX,mt),se=null,ga&&(ri=Lt(ga,Ft,he-Or,he+ua,1,Wt.minY,Wt.maxY,mt),Yr=Lt(ga,Ft,he+ca,he+qa,1,Wt.minY,Wt.maxY,mt),ga=null),nr&&(gr=Lt(nr,Ft,he-Or,he+ua,1,Wt.minY,Wt.maxY,mt),$r=Lt(nr,Ft,he+ca,he+qa,1,Wt.minY,Wt.maxY,mt),nr=null),Pt>1&&console.timeEnd("clipping"),We.push(ri||[],te+1,ue*2,he*2),We.push(Yr||[],te+1,ue*2,he*2+1),We.push(gr||[],te+1,ue*2+1,he*2),We.push($r||[],te+1,ue*2+1,he*2+1)}}},Ki.prototype.getTile=function(se,te,ue){var he=this.options,Le=he.extent,Ne=he.debug;if(se<0||se>24)return null;var et=1<1&&console.log("drilling down to z%d-%d-%d",se,te,ue);for(var mt=se,Pt=te,Ft=ue,tr;!tr&&mt>0;)mt--,Pt=Math.floor(Pt/2),Ft=Math.floor(Ft/2),tr=this.tiles[ir(mt,Pt,Ft)];return!tr||!tr.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",mt,Pt,Ft),Ne>1&&console.time("drilling down"),this.splitTile(tr.source,mt,Pt,Ft,se,te,ue),Ne>1&&console.timeEnd("drilling down"),this.tiles[We]?ii(this.tiles[We],Le):null)};function ir(se,te,ue){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],Ze=Re.width,Ge=Re.height,Oe=Re.x,Ke=Re.y,vt=Re.sdf,zt=Re.pixelRatio,Nt=Re.stretchX,Qt=Re.stretchY,rr=Re.content,Gt=new a.RGBAImage({width:Ze,height:Ge});a.RGBAImage.copy(ce,Gt,{x:Oe,y:Ke},{x:0,y:0},{width:Ze,height:Ge}),we[be]={data:Gt,pixelRatio:zt,sdf:vt,stretchX:Nt,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))}V.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:Ze});return}var Oe=Re.requests[Ge];Oe||(Oe=Re.requests[Ge]=[],ee.loadGlyphRange(we,Ge,d.url,d.requestManager,function(Ke,vt){if(vt){for(var zt in vt)d._doesCharSupportLocalGlyph(+zt)||(Re.glyphs[+zt]=vt[+zt]);Re.ranges[Ge]=!0}for(var Nt=0,Qt=Oe;Nt1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),Ze=void 0,Ge=D/d*(w+1);if(re.isDash){var Oe=w-Math.abs(Ge);Ze=Math.sqrt(Re*Re+Oe*Oe)}else Ze=w-Math.sqrt(Re*Re+Ge*Ge);this.data[G+ce]=Math.max(0,Math.min(255,Ze+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),Ze=re.isDash?Re:-Re;this.data[G+ce]=Math.max(0,Math.min(255,Ze+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),lt=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),it=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=_t(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,lt.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 _t(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,lt.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}(it),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,lt.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},wt.prototype.has=function(c){return c.wrapped().key in this.data},wt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},wt.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},wt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},wt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},wt.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},wt.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},wt.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[Ze]&&(re.neighboringTiles[Ze].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(mt(this._source.type)){for(var ce={},we={},be=Object.keys(re),Re=0,Ze=be;Rethis._source.maxzoom){var vt=Oe.children(this._source.maxzoom)[0],zt=this.getTile(vt);if(zt&&zt.hasData()){D[vt.key]=vt;continue}}else{var Nt=Oe.children(this._source.maxzoom);if(D[Nt[0].key]&&D[Nt[1].key]&&D[Nt[2].key]&&D[Nt[3].key])continue}for(var Qt=Ke.wasRequested(),rr=Oe.overscaledZ-1;rr>=G;--rr){var Gt=Oe.scaledTo(rr);if(R[Gt.key]||(R[Gt.key]=!0,Ke=this.getTile(Gt),!Ke&&Qt&&(Ke=this._addTile(Gt)),Ke&&(D[Gt.key]=Gt,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,Ze=1/0,Ge=-1/0,Oe=-1/0,Ke=0,vt=we;Ke=0&&Lr[1].y+wr>=0){var kr=ce.map(function(Ra){return ar.getTilePoint(Ra)}),Wr=we.map(function(Ra){return ar.getTilePoint(Ra)});G.push({tile:Gt,tileID:ar,queryGeometry:kr,cameraQueryGeometry:Wr,scale:vr})}}},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);et.maxOverzooming=10,et.maxUnderzooming=3;function We(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 mt(g){return g==="raster"||g==="image"||g==="video"}function Pt(){return new a.window.Worker(Tn.workerUrl)}var Ft="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 Ga=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}},Ga.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},Ga.prototype.query=function(c,b,d,w,D){return this._query(c,b,d,w,!1,D)},Ga.prototype.hitTest=function(c,b,d,w,D){return this._query(c,b,d,w,!0,D)},Ga.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Ga.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[Ze]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ze],x1:we[Ge],y1:we[Ge+1],x2:we[Ge+2],y2:we[Ge+3]})}}}var Oe=this.circleCells[D];if(Oe!==null)for(var Ke=this.circles,vt=0,zt=Oe;vtG*G+K*K},Ga.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 Ui(g,c){var b=[g.x,g.y,0,1];Kf(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 lp(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,Ze=b.transform.width/b.transform.height,Ge=!1,Oe=0;OeD)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 Ze=c/24,Ge=g.lineOffsetX*Ze,Oe=g.lineOffsetY*Ze,Ke;if(g.numGlyphs>1){var vt=g.glyphStartIndex+g.numGlyphs,zt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,Qt=Zc(Ze,G,Ge,Oe,b,ce,we,g,K,D,be);if(!Qt)return{notEnoughRoom:!0};var rr=Ui(Qt.first.point,R).point,Gt=Ui(Qt.last.point,R).point;if(d&&!b){var ar=xv(g.writingMode,rr,Gt,Re);if(ar)return ar}Ke=[Qt.first];for(var vr=g.glyphStartIndex+1;vr0?Wr.point:pu(we,kr,wr,1,w),_a=xv(g.writingMode,wr,Ra,Re);if(_a)return _a}var Nr=ml(Ze*G.getoffsetX(g.glyphStartIndex),Ge,Oe,b,ce,we,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,D,be);if(!Nr)return{notEnoughRoom:!0};Ke=[Nr]}for(var Ma=0,aa=Ke;Ma0?1:-1,Ze=0;d&&(Re*=-1,Ze=Math.PI),Re<0&&(Ze+=Math.PI);for(var Ge=Re>0?G+R:G+R+1,Oe=w,Ke=w,vt=0,zt=0,Nt=Math.abs(be),Qt=[];vt+zt<=Nt;){if(Ge+=Re,Ge=K)return null;if(Ke=Oe,Qt.push(Oe),Oe=we[Ge],Oe===void 0){var rr=new a.Point(re.getx(Ge),re.gety(Ge)),Gt=Ui(rr,ce);if(Gt.signedDistanceFromCamera>0)Oe=we[Ge]=Gt.point;else{var ar=Ge-Re,vr=vt===0?D:new a.Point(re.getx(ar),re.gety(ar));Oe=pu(vr,rr,Ke,Nt-vt+1,ce)}}vt+=zt,zt=Ke.dist(Oe)}var wr=(Nt-vt)/zt,Lr=Oe.sub(Ke),kr=Lr.mult(wr)._add(Ke);kr._add(Lr._unit()._perp()._mult(b*Re));var Wr=Ze+Math.atan2(Oe.y-Ke.y,Oe.x-Ke.x);return Qt.push(kr),{point:kr,angle:Wr,path:Qt}}var up=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function $u(g,c){for(var b=0;b=1;Za--)aa.push(Nr.path[Za]);for(var Ua=1;Ua0){for(var ia=aa[0].clone(),Ba=aa[0].clone(),tn=1;tn=Wr.x&&Ba.x<=Ra.x&&ia.y>=Wr.y&&Ba.y<=Ra.y?mi=[aa]:Ba.xRa.x||Ba.yRa.y?mi=[]:mi=a.clipLine([aa],Wr.x,Wr.y,Ra.x,Ra.y)}for(var Nn=0,Ps=mi;Nn=this.screenRightBoundary||w<$i||b>this.screenBottomBoundary},Go.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[be.crossTileID].anchor),this.variableOffsets[be.crossTileID]={textOffset:Oe,width:d,height:w,anchor:c,textBoxScale:D,prevAnchor:Nt},this.markUsedJustification(Re,c,be,Ze),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ze,be),this.placedOrientations[be.crossTileID]=Ze),{shift:Ke,placedGlyphBoxes:vt}}},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,Ze=D.partiallyEvaluatedTextSize,Ge=D.collisionGroup,Oe=G.get("text-optional"),Ke=G.get("icon-optional"),vt=G.get("text-allow-overlap"),zt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",Qt=G.get("text-pitch-alignment")==="map",rr=G.get("icon-text-fit")!=="none",Gt=G.get("symbol-z-order")==="viewport-y",ar=vt&&(zt||!R.hasIconData()||Ke),vr=zt&&(vt||!R.hasTextData()||Oe);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var wr=function(Nr,Ma){if(!b[Nr.crossTileID]){if(be){w.placements[Nr.crossTileID]=new mu(!1,!1,!1);return}var aa=!1,Za=!1,Ua=!0,Mi=null,La={box:null,offscreen:null},mi={box:null,offscreen:null},ia=null,Ba=null,tn=null,Nn=0,Ps=0,zs=0;Ma.textFeatureIndex?Nn=Ma.textFeatureIndex:Nr.useRuntimeCollisionCircles&&(Nn=Nr.featureIndex),Ma.verticalTextFeatureIndex&&(Ps=Ma.verticalTextFeatureIndex);var $s=Ma.textBox;if($s){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},hc=function(un,$o){if(R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&Ma.verticalTextBox)for(var es=0,Qp=R.writingModes;es0&&(Qo=Qo.filter(function(un){return un!==Po.anchor}),Qo.unshift(Po.anchor))}var el=function(un,$o,es){for(var Qp=un.x2-un.x1,vy=un.y2-un.y1,m3=Nr.textBoxScale,y3=rr&&!zt?$o:null,rd={box:[],offscreen:!1},g3=vt?Qo.length*2:Qo.length,$p=0;$p=Qo.length,dy=w.attemptAnchorPlacement(_3,un,Qp,vy,m3,Nt,Qt,we,K,Ge,x3,Nr,R,es,y3);if(dy&&(rd=dy.placedGlyphBoxes,rd&&rd.box&&rd.box.length)){aa=!0,Mi=dy.shift;break}}return rd},Eu=function(){return el($s,Ma.iconBox,a.WritingMode.horizontal)},tl=function(){var un=Ma.verticalTextBox,$o=La&&La.box&&La.box.length;return R.allowVerticalPlacement&&!$o&&Nr.numVerticalGlyphVertices>0&&un?el(un,Ma.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};hc(Eu,tl),La&&(aa=La.box,Ua=La.offscreen);var Wp=Ol(La&&La.box);if(!aa&&w.prevPlacement){var gh=w.prevPlacement.variableOffsets[Nr.crossTileID];gh&&(w.variableOffsets[Nr.crossTileID]=gh,w.markUsedJustification(R,gh.anchor,Nr,Wp))}}else{var Ul=function(un,$o){var es=w.collisionIndex.placeCollisionBox(un,vt,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($s,a.WritingMode.horizontal)},Vl=function(){var un=Ma.verticalTextBox;return R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&un?Ul(un,a.WritingMode.vertical):{box:null,offscreen:null}};hc(Do,Vl),Ol(La&&La.box&&La.box.length)}}if(ia=La,aa=ia&&ia.box&&ia.box.length>0,Ua=ia&&ia.offscreen,Nr.useRuntimeCollisionCircles){var Gn=R.text.placedSymbolArray.get(Nr.centerJustifiedTextSymbolIndex),Xp=a.evaluateSizeForFeature(R.textSizeData,Ze,Gn),td=G.get("text-padding"),xo=Nr.collisionCircleDiameter;Ba=w.collisionIndex.placeCollisionCircles(vt,Gn,R.lineVertexArray,R.glyphOffsetArray,Xp,K,re,ce,d,Qt,Ge.predicate,xo,td),aa=vt||Ba.circles.length>0&&!Ba.collisionDetected,Ua=Ua&&Ba.offscreen}if(Ma.iconFeatureIndex&&(zs=Ma.iconFeatureIndex),Ma.iconBox){var _h=function(un){var $o=rr&&Mi?Av(un,Mi.x,Mi.y,Nt,Qt,w.transform.angle):un;return w.collisionIndex.placeCollisionBox($o,zt,we,K,Ge.predicate)};mi&&mi.box&&mi.box.length&&Ma.verticalIconBox?(tn=_h(Ma.verticalIconBox),Za=tn.box.length>0):(tn=_h(Ma.iconBox),Za=tn.box.length>0),Ua=Ua&&tn.offscreen}var jp=Oe||Nr.numHorizontalGlyphVertices===0&&Nr.numVerticalGlyphVertices===0,Jp=Ke||Nr.numIconVertices===0;if(!jp&&!Jp?Za=aa=Za&&aa:Jp?jp||(Za=Za&&aa):aa=Za&&aa,aa&&ia&&ia.box&&(mi&&mi.box&&Ps?w.collisionIndex.insertCollisionBox(ia.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ps,Ge.ID):w.collisionIndex.insertCollisionBox(ia.box,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID)),Za&&tn&&w.collisionIndex.insertCollisionBox(tn.box,G.get("icon-ignore-placement"),R.bucketInstanceId,zs,Ge.ID),Ba&&(aa&&w.collisionIndex.insertCollisionCircles(Ba.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID),d)){var Kp=R.bucketInstanceId,xh=w.collisionCircleArrays[Kp];xh===void 0&&(xh=w.collisionCircleArrays[Kp]=new fp);for(var bh=0;bh=0;--kr){var Wr=Lr[kr];wr(R.symbolInstances.get(Wr),R.collisionArrays[Wr])}else for(var Ra=c.symbolInstanceStart;Ra=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,Lr=w.placedOrientations[zt.crossTileID],kr=Lr===a.WritingMode.vertical,Wr=Lr===a.WritingMode.horizontal||Lr===a.WritingMode.horizontalOnly;if(vr){var Ra=rf(ar.text),_a=kr?Er:Ra;Ze(c.text,Nt,_a);var Nr=Wr?Er:Ra;Ze(c.text,Qt,Nr);var Ma=ar.text.isHidden();[zt.rightJustifiedTextSymbolIndex,zt.centerJustifiedTextSymbolIndex,zt.leftJustifiedTextSymbolIndex].forEach(function(zs){zs>=0&&(c.text.placedSymbolArray.get(zs).hidden=Ma||kr?1:0)}),zt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(zt.verticalPlacedTextSymbolIndex).hidden=Ma||Wr?1:0);var aa=w.variableOffsets[zt.crossTileID];aa&&w.markUsedJustification(c,aa.anchor,zt,Lr);var Za=w.placedOrientations[zt.crossTileID];Za&&(w.markUsedJustification(c,"left",zt,Za),w.markUsedOrientation(c,Za,zt))}if(wr){var Ua=rf(ar.icon),Mi=!(be&&zt.verticalPlacedIconSymbolIndex&&kr);if(zt.placedIconSymbolIndex>=0){var La=Mi?Ua:Er;Ze(c.icon,zt.numIconVertices,La),c.icon.placedSymbolArray.get(zt.placedIconSymbolIndex).hidden=ar.icon.isHidden()}if(zt.verticalPlacedIconSymbolIndex>=0){var mi=Mi?Er:Ua;Ze(c.icon,zt.numVerticalIconVertices,mi),c.icon.placedSymbolArray.get(zt.verticalPlacedIconSymbolIndex).hidden=ar.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var ia=c.collisionArrays[vt];if(ia){var Ba=new a.Point(0,0);if(ia.textBox||ia.verticalTextBox){var tn=!0;if(re){var Nn=w.variableOffsets[rr];Nn?(Ba=Tv(Nn.anchor,Nn.width,Nn.height,Nn.textOffset,Nn.textBoxScale),ce&&Ba._rotate(we?w.transform.angle:-w.transform.angle)):tn=!1}ia.textBox&&Xt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!tn||kr,Ba.x,Ba.y),ia.verticalTextBox&&Xt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!tn||Wr,Ba.x,Ba.y)}var Ps=!!(!Wr&&ia.verticalIconBox);ia.iconBox&&Xt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,Ps,be?Ba.x:0,be?Ba.y:0),ia.verticalIconBox&&Xt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,!Ps,be?Ba.x:0,be?Ba.y:0)}}},Oe=0;Oec},lo.prototype.setStale=function(){this.stale=!0};function Xt(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),cp=Math.pow(2,24),yu=Math.pow(2,17),on=Math.pow(2,16),gl=Math.pow(2,9),ws=Math.pow(2,8),tf=Math.pow(2,1);function rf(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*cp+b*yu+c*on+b*gl+c*ws+b*tf+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 et(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;vt--){var zt=this._order[vt];if(D(zt))for(var Nt=G.length-1;Nt>=0;Nt--){var Qt=G[Nt].feature;if(R[Qt.layer.id]>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/mo(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)}},rc=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}},Js=function(g,c,b,d,w,D,R){return a.extend(rc(g,c,b,d),sf(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)}},Ks=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),sf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},Mp=function(g,c,b,d,w){return a.extend(ks(g,c,b,d),{u_world:w})},Km=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)}},Qm=function(g,c,b,d){var w=g.transform,D,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(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}},$m=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)}},Sp=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)}},kp=function(g,c,b){var d=mo(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)}},ac=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)}},Cp=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)}},Ep=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)}},lf=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},ey=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")}},Lp=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)}},Dp=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)}},Pp=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)}},ic=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/mo(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/mo(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/mo(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 uf=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)}},zp=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:nc(w.paint.get("raster-saturation")),u_contrast_factor:di(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 di(g){return g>0?1/(1-g):1+g}function nc(g){return g>0?1-1/(1.001-g):-g}var Ip=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)}},Rp=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)}},Fp=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}},qp=function(g,c,b,d,w,D,R,G,K,re,ce){var we=w.transform;return a.extend(Fp(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(qp(g,c,b,d,w,D,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Np=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)}},ty=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})},oc={fillExtrusion:Fv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Ks,circle:Km,collisionBox:$m,collisionCircle:Sp,debug:Nv,clippingMask:$c,heatmap:Bv,heatmapTexture:Ep,hillshade:Lp,hillshadePrepare:Dp,line:wu,lineGradient:Dl,linePattern:ic,lineSDF:Vv,raster:uf,symbolIcon:Ip,symbolSDF:Rp,symbolTextAndIcon:zl,background:Np,backgroundPattern:ty},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 Nt=a.create(),Qt=Ke;a.mul(Nt,Oe.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Oe.placementViewportMatrix),ce.push({circleArray:zt,circleOffset:be,transform:Qt,invTransform:Nt}),we+=zt.length/4,be=we}vt&&re.draw(G,K.LINES,ir.disabled,la.disabled,g.colorModeForRenderPass(),Le.disabled,kp(Ke,g.transform,Ge),b.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,null,g.transform.zoom,null,null,vt.collisionVertexBuffer)}}if(!(!R||!ce.length)){var rr=g.useProgram("collisionCircle"),Gt=new a.StructArrayLayout2f1f2i16;Gt.resize(we*4),Gt._trim();for(var ar=0,vr=0,wr=ce;vr=0&&(Ze[Oe.associatedIconIndex]={shiftedAnchor:Wr,angle:Ra})}}if(ce){Re.clear();for(var Nr=g.icon.placedSymbolArray,Ma=0;Ma0){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 sc(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=la.disabled,be=g.depthModeForSublayer(0,ce==="opaque"?ir.ReadWrite:ir.ReadOnly),Re=g.colorModeForRenderPass(),Ze=g.useProgram(re?"backgroundPattern":"background"),Ge=G.coveringTiles({tileSize:K});re&&(D.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Oe=b.getCrossfadeParameters(),Ke=0,vt=Ge;Ke "+b.overscaledZ);var Ke=Oe+" "+Re+"kb";Gp(g,Ke),R.draw(d,w.TRIANGLES,G,K,te.alphaBlended,Le.disabled,ac(D,a.Color.transparent,Ge),ce,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Gp(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 yf(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(la.disabled);var R=w.renderingMode==="3d"?new ir(g.context.gl.LEQUAL,ir.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ir.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:ry,circle:nh,heatmap:Mu,line:go,fill:Bp,"fill-extrusion":Rl,hillshade:pf,raster:Op,background:sc,debug:Jv,custom:yf},Li=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=et.maxUnderzooming+et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new gu,this.gpuTimers={}};Li.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(ir.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 la({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Li.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new la({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Li.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 Nt=this.style._layers[w[this.currentLayer]],Qt=D[Nt.source],rr=K[Nt.source];this._renderTileClippingMasks(Nt,rr),this.renderLayer(this,Qt,Nt,rr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Li.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},Li.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 Ap(this.context,c,Jm[c],b,oc[c],this._showOverdrawInspector)),this.cache[d]},Li.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()},Li.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)},Li.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)}},Li.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 _o=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};_o.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},_o.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)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var $a=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 _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={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}};$a.prototype.clone=function(){var c=new $a(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},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.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))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.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())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.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())},fi.zoom.get=function(){return this._zoom},fi.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())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},$a.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},$a.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},$a.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)},$a.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},$a.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,Ze=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 Oe=we.pop(),Ke=Oe.x,vt=Oe.y,zt=Oe.fullyVisible;if(!zt){var Nt=Oe.aabb.intersects(G);if(Nt===0)continue;zt=Nt===2}var Qt=Oe.aabb.distanceX(R),rr=Oe.aabb.distanceY(R),Gt=Math.max(Math.abs(Qt),Math.abs(rr)),ar=re+(1<ar&&Oe.zoom>=K){be.push({tileID:new a.OverscaledTileID(Oe.zoom===Re?Ze:Oe.zoom,Oe.wrap,Oe.zoom,Ke,vt),distanceSq:a.sqrLen([R[0]-.5-Ke,R[1]-.5-vt])});continue}for(var vr=0;vr<4;vr++){var wr=(Ke<<1)+vr%2,Lr=(vt<<1)+(vr>>1);we.push({aabb:Oe.aabb.quadrant(vr),zoom:Oe.zoom+1,x:wr,y:Lr,wrap:Oe.wrap,fullyVisible:zt})}}return be.sort(function(kr,Wr){return kr.distanceSq-Wr.distanceSq}).map(function(kr){return kr.tileID})},$a.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},$a.prototype.zoomScale=function(c){return Math.pow(2,c)},$a.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},$a.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)},$a.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},$a.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())},$a.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},$a.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},$a.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},$a.prototype.coordinateLocation=function(c){return c.toLngLat()},$a.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)},$a.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])},$a.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)))},$a.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]])},$a.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])},$a.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]},$a.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},$a.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-Oe)}if(this.lngRange){var Ke=Re.x,vt=re.x/2;Ke-vtw&&(G=w-vt)}(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}},$a.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,Ze=this.height%2/2,Ge=Math.cos(this.angle),Oe=Math.sin(this.angle),Ke=G-Math.round(G)+Ge*Re+Oe*Ze,vt=K-Math.round(K)+Ge*Ze+Oe*Re,zt=new Float64Array(be);if(a.translate(zt,zt,[Ke>.5?Ke-1:Ke,vt>.5?vt-1:vt,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={}}},$a.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},$a.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},$a.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 lc={linearity:.3,easing:a.bezier(0,0,.3,1)},gf=a.extend({deceleration:2500,maxSpeed:1400},lc),ql=a.extend({deceleration:20,maxSpeed:1400},lc),Ds=a.extend({deceleration:1e3,maxSpeed:360},lc),hh=a.extend({deceleration:1e3,maxSpeed:90},lc),_f=function(c){this._map=c,this.clear()};_f.prototype.clear=function(){this._inertiaBuffer=[]},_f.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},_f.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},_f.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))},U.prototype.dblclick=function(c){return this._firePreventable(new S(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new S(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new S(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.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)))},De.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)>Pe)&&(this.aborted=!0)}}},De.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 De(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,Jr=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,Qa(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 Qa(d)&&Qa(w)&&re}},c}(fr),na={panStep:100,bearingStep:15,pitchStep:10},oa=function(){var c=na;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};oa.prototype.reset=function(){this._active=!1},oa.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:Di,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})}}}},oa.prototype.enable=function(){this._enabled=!0},oa.prototype.disable=function(){this._enabled=!1,this.reset()},oa.prototype.isEnabled=function(){return this._enabled},oa.prototype.isActive=function(){return this._active},oa.prototype.disableRotation=function(){this._rotationDisabled=!0},oa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Di(g){return g*(2-g)}var Vi=4.000244140625,en=1/100,bi=1/450,wn=2,Tr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=en,this._wheelZoomRate=bi,a.bindAll(["_onTimeout"],this)};Tr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},Tr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},Tr.prototype.isEnabled=function(){return!!this._enabled},Tr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Tr.prototype.isZooming=function(){return!!this._zooming},Tr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},Tr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Tr.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%Vi===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()}},Tr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},Tr.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())}},Tr.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)>Vi?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}}},Tr.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},Tr.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 Ni=function(){this.reset()};Ni.prototype.reset=function(){this._active=!1},Ni.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})}}},Ni.prototype.enable=function(){this._enabled=!0},Ni.prototype.disable=function(){this._enabled=!1,this.reset()},Ni.prototype.isEnabled=function(){return this._enabled},Ni.prototype.isActive=function(){return this._active};var Ai=function(){this._tap=new $e({numTouches:1,numTaps:1}),this.reset()};Ai.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ai.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Ai.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}}},Ai.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)}},Ai.prototype.touchcancel=function(){this.reset()},Ai.prototype.enable=function(){this._enabled=!0},Ai.prototype.disable=function(){this._enabled=!1,this.reset()},Ai.prototype.isEnabled=function(){return this._enabled},Ai.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 mn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};mn.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")},mn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},mn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},mn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},mn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},mn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=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 ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new _f(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(Lr,1-vr),Wr=R.unproject(zt.add(Nt.mult(vr*kr)).mult(wr));R.setLocationAtPoint(R.renderWorldCopies?Wr.wrap():Wr,Oe)}D._fireMoveEvents(w)},function(vr){D._afterEase(w,vr)},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,Ze="pitch"in d?+d.pitch:ce,Ge="padding"in d?d.padding:G.padding,Oe=G.zoomScale(be-K),Ke=a.Point.convert(d.offset),vt=G.centerPoint.add(Ke),zt=G.pointLocation(vt),Nt=a.LngLat.convert(d.center||zt);this._normalizeCenter(Nt);var Qt=G.project(zt),rr=G.project(Nt).sub(Qt),Gt=d.curve,ar=Math.max(G.width,G.height),vr=ar/Oe,wr=rr.mag();if("minZoom"in d){var Lr=a.clamp(Math.min(d.minZoom,K,be),G.minZoom,G.maxZoom),kr=ar/G.zoomScale(Lr-K);Gt=Math.sqrt(kr/wr*2)}var Wr=Gt*Gt;function Ra(ia){var Ba=(vr*vr-ar*ar+(ia?-1:1)*Wr*Wr*wr*wr)/(2*(ia?vr:ar)*Wr*wr);return Math.log(Math.sqrt(Ba*Ba+1)-Ba)}function _a(ia){return(Math.exp(ia)-Math.exp(-ia))/2}function Nr(ia){return(Math.exp(ia)+Math.exp(-ia))/2}function Ma(ia){return _a(ia)/Nr(ia)}var aa=Ra(0),Za=function(ia){return Nr(aa)/Nr(aa+Gt*ia)},Ua=function(ia){return ar*((Nr(aa)*Ma(aa+Gt*ia)-_a(aa))/Wr)/wr},Mi=(Ra(1)-aa)/Gt;if(Math.abs(wr)<1e-6||!isFinite(Mi)){if(Math.abs(ar-vr)<1e-6)return this.easeTo(d,w);var La=vrd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ze!==ce,this._padding=!G.isPaddingEqual(Ge),this._prepareEase(w,!1),this._ease(function(ia){var Ba=ia*Mi,tn=1/Za(Ba);G.zoom=ia===1?be:K+G.scaleZoom(tn),D._rotating&&(G.bearing=a.number(re,Re,ia)),D._pitching&&(G.pitch=a.number(ce,Ze,ia)),D._padding&&(G.interpolatePadding(we,Ge,ia),vt=G.centerPoint.add(Ke));var Nn=ia===1?Nt:G.unproject(Qt.add(rr.mult(Ua(Ba))).mult(tn));G.setLocationAtPoint(G.renderWorldCopies?Nn.wrap():Nn,vt),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 ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.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},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.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}},ui.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.minPitchwf)throw new Error("maxPitch must be less than or equal to "+wf);var D=new $a(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 sy)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 ci(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 ui,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()wf)throw new Error("maxPitch must be less than or equal to "+wf);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(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length?re||(re=!0,R.call(G,new S(w,G,Oe.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(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length?be=!0:be&&(be=!1,R.call(G,new S(w,G,Oe.originalEvent)))},Ze=function(Oe){be&&(be=!1,R.call(G,new S(w,G,Oe.originalEvent)))};return{layer:D,listener:R,delegates:{mousemove:Re,mouseout:Ze}}}else{var Ge=function(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length&&(Oe.features=Ke,R.call(G,Oe),delete Oe.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 Yp(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),fy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Tf;function ed(g){Tf!==void 0?g(Tf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){Tf=c.state!=="denied",g(Tf)}):(Tf=!!a.window.navigator.geolocation,g(Tf))}var mh=0,fc=!1,k1=function(g){function c(b){g.call(this),this.options=a.extend({},fy,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,fc=!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&&fc)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--,fc=!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},fc=!0):(d=this.options.positionOptions,fc=!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),cy={maxWidth:100,unit:"metric"},cc=function(c){this.options=a.extend({},cy,c),a.bindAll(["_onMove","setUnit"],this)};cc.prototype.getDefaultPosition=function(){return"bottom-left"},cc.prototype._onMove=function(){hy(this._map,this._container,this.options)},cc.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},cc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},cc.prototype.setUnit=function(c){this.options.unit=c,hy(this._map,this._container,this.options)};function hy(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=E1(b),D=w/b;g.style.width=c*D+"px",g.innerHTML=w+" "+d}function C1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function E1(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:C1(b),c*b}var Qs=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")};Qs.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},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.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)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.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())},Qs.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 L1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},D1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),p3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(L1),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=P1(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)"),Yp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(D1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function P1(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 P1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:uy,NavigationControl:ku,GeolocateControl:k1,AttributionControl:Ta,ScaleControl:cc,FullscreenControl:Qs,Popup:p3,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 FH=me((Wbe,RH)=>{RH.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 Xb=me(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Zs=63710088e-1,SA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},MA={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 Kde(e,t,r={}){switch(e){case"Point":return kA(t).geometry;case"LineString":return EA(t).geometry;case"Polygon":return CA(t).geometry;case"MultiPoint":return NH(t).geometry;case"MultiLineString":return qH(t).geometry;case"MultiPolygon":return BH(t).geometry;default:throw new Error(e+" is invalid")}}function kA(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(!Yb(e[0])||!Yb(e[1]))throw new Error("coordinates must contain numbers");return uv({type:"Point",coordinates:e},t,r)}function Qde(e,t,r={}){return Wb(e.map(i=>kA(i,t)),r)}function CA(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;sCA(i,t)),r)}function EA(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 epe(e,t,r={}){return Wb(e.map(i=>EA(i,t)),r)}function Wb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function qH(e,t,r={}){return uv({type:"MultiLineString",coordinates:e},t,r)}function NH(e,t,r={}){return uv({type:"MultiPoint",coordinates:e},t,r)}function BH(e,t,r={}){return uv({type:"MultiPolygon",coordinates:e},t,r)}function tpe(e,t,r={}){return uv({type:"GeometryCollection",geometries:e},t,r)}function rpe(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 OH(e,t="kilometers"){let r=SA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function LA(e,t="kilometers"){let r=SA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function ape(e,t){return UH(LA(e,t))}function ipe(e){let t=e%360;return t<0&&(t+=360),t}function npe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function UH(e){return e%(2*Math.PI)*180/Math.PI}function ope(e){return e%360*Math.PI/180}function spe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return OH(LA(e,t),r)}function lpe(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=MA[t];if(!i)throw new Error("invalid original units");let a=MA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Yb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function upe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function fpe(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(!Yb(t))throw new Error("bbox must only contain numbers")})}function cpe(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")}ki.areaFactors=MA;ki.azimuthToBearing=npe;ki.bearingToAzimuth=ipe;ki.convertArea=lpe;ki.convertLength=spe;ki.degreesToRadians=ope;ki.earthRadius=Zs;ki.factors=SA;ki.feature=uv;ki.featureCollection=Wb;ki.geometry=Kde;ki.geometryCollection=tpe;ki.isNumber=Yb;ki.isObject=upe;ki.lengthToDegrees=ape;ki.lengthToRadians=LA;ki.lineString=EA;ki.lineStrings=epe;ki.multiLineString=qH;ki.multiPoint=NH;ki.multiPolygon=BH;ki.point=kA;ki.points=Qde;ki.polygon=CA;ki.polygons=$de;ki.radiansToDegrees=UH;ki.radiansToLength=OH;ki.round=rpe;ki.validateBBox=fpe;ki.validateId=cpe});var Jb=me(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var us=Xb();function b1(e,t,r){if(e!==null)for(var i,a,s,l,f,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){f=_,h=i,v=C,m=E,s=0;return}var L=us.lineString.call(void 0,[f,_],r.properties);if(t(L,i,a,E,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function gpe(e,t,r){var i=r,a=!1;return GH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function ZH(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 f=0;f{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});var YH=Xb(),wpe=Jb();function jH(e){return wpe.geomReduce.call(void 0,e,(t,r)=>t+Tpe(r),0)}function Tpe(e){let t=0,r;switch(e.type){case"Polygon":return WH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(XH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*PA,h=s[1]*PA,v=l[0]*PA;r+=(v-f)*Math.sin(h),i++}return r*Ape}var Mpe=jH;Kb.area=jH;Kb.default=Mpe});var QH=me(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});var Spe=Xb(),kpe=Jb();function KH(e,t={}){let r=0,i=0,a=0;return kpe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),Spe.point.call(void 0,[r/a,i/a],t.properties)}var Cpe=KH;Qb.centroid=KH;Qb.default=Cpe});var eG=me($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});var Epe=Jb();function $H(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Epe.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 Dpe=ja(),aG=FH(),{area:Ppe}=JH(),{centroid:zpe}=QH(),{bbox:Ipe}=eG(),tG=C_(),Cm=Lh(),Rpe=yc(),Fpe=Ey(),e3=yx(),rG=Object.keys(aG),qpe={"ISO-3":tG,"USA-states":tG,"country names":Npe};function Npe(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=e3.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(e3.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=Vpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else Cm.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=f,r=l)}else r=t;return zpe(r).geometry.coordinates}function Hpe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){Dpe.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 ep=Bt(),Zpe=ro().sanitizeHTML,Ype=gA(),oG=Oc();function sG(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=oG.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var hu=sG.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=t3(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,!!t3(e)){var r=Wpe(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 lG(e){var t={},r={};switch(e.type){case"circle":ep.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":ep.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":ep.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=Ype(i.textposition,i.iconsize);ep.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}),ep.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":ep.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Wpe(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=Zpe(e.sourceattribution)),i}uG.exports=function(t,r,i){var a=new sG(t,r);return a.update(i),a}});var _G=me((t3e,gG)=>{"use strict";var IA=AA(),RA=Bt(),dG=zA(),cG=sa(),Xpe=Xi(),jpe=jl(),r3=Nf(),pG=qd(),Jpe=pG.drawMode,Kpe=pG.selectMode,Qpe=Hf().prepSelect,$pe=Hf().clearOutline,e0e=Hf().clearSelectionsCache,t0e=Hf().selectOnClick,fv=Oc(),r0e=fG();function mG(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=mG.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,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Hn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=yG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new IA.Map({container:a.div,style:l.style,center:FA(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 IA.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(dG.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 f=[],h=yG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat(dG.fetchTraceGeoData(e)),Promise.all(f).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={},f=!1;for(a=0;a1)for(a=0;a-1&&t0e(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&r3.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 f=t.dragOptions;t.dragOptions=RA.extendDeep(f||{},{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),Kpe(s)||Jpe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){Qpe(h,v,m,t.dragOptions,s)},jpe.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 a0e=Bt(),i0e=Ii(),n0e=zb().defaults;xG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=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 a0e.coerce(T,M,l,O,q)}for(var E=0;E{"use strict";var qA=Bt(),o0e=bG(),s0e=Wl(),wG=m1();TG.exports=function(t,r,i){o0e(t,r,i,{type:"mapbox",attributes:wG,handleDefaults:l0e,partition:"y",accessToken:r._mapboxAccessToken})};function l0e(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"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,s0e(e,t,{name:"layers",handleItemDefaults:u0e}),t._input=e}function u0e(e,t){function r(h,v){return qA.coerce(e,t,wG.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 f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",qA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),qA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var a3=me(Ys=>{"use strict";var MG=AA(),Qu=Bt(),NA=Qu.strTranslate,f0e=Qu.strScale,c0e=W_().getSubplotCalcData,h0e=Oh(),v0e=ja(),SG=xi(),d0e=ro(),p0e=_G(),cv="mapbox",jf=Ys.constants=Oc();Ys.name=cv;Ys.attr="subplot";Ys.idRoot=cv;Ys.idRegex=Ys.attrRegex=Qu.counterRegex(cv);var m0e=["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(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=m1();Ys.supplyLayoutDefaults=AG();var kG=!0;Ys.plot=function(t){kG&&(kG=!1,Qu.warn(m0e));var r=t._fullLayout,i=t.calcdata,a=r._subplots[cv];if(MG.version!==jf.requiredVersion)throw new Error(jf.wrongVersionErrorMsg);var s=y0e(t,a);MG.accessToken=s;for(var l=0;lI/2){var O=M.split("|").join("
");E.text(O).attr("data-unformatted",O).call(d0e.convertToTspans,e),L=SG.bBox(E.node())}E.attr("transform",NA(-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",NA(z[0],z[1])+f0e(q))}};function y0e(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Qu.warn(jf.multipleTokensErrorMsg),a[0]):(s.length&&Qu.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function CG(e){return typeof e=="string"&&(jf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[cv],i=0;i{"use strict";var n3e=["*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(" ");EG.exports={attributes:Bb(),supplyDefaults:uH(),colorbar:iT(),formatLabels:mA(),calc:mH(),plot:CH(),hoverPoints:Zb().hoverPoints,eventData:PH(),selectPoints:IH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:a3(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var PG=me((s3e,DG)=>{"use strict";DG.exports=LG()});var BA=me((l3e,RG)=>{"use strict";var{hovertemplateAttrs:g0e,templatefallbackAttrs:_0e}=kf(),vv=hA(),x0e=Sc(),zG=ys(),b0e=Sf().defaultLine,hv=yn().extendFlat,IG=vv.marker.line;RG.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({},IG.color,{dflt:b0e}),width:hv({},IG.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({},zG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:g0e(),hovertemplatefallback:_0e(),showlegend:hv({},zG.showlegend,{dflt:!1})},x0e("",{cLetter:"z",editTypeOverride:"calc"}))});var OA=me((u3e,FG)=>{"use strict";var Uc=BA(),w0e=Sc(),{hovertemplateAttrs:T0e,templatefallbackAttrs:A0e}=kf(),M0e=ys(),dv=yn().extendFlat;FG.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:T0e({},{keys:["properties"]}),hovertemplatefallback:A0e(),showlegend:dv({},M0e.showlegend,{dflt:!1})},w0e("",{cLetter:"z",editTypeOverride:"calc"}))});var NG=me((f3e,qG)=>{"use strict";var w1=Bt(),S0e=bd(),k0e=OA();qG.exports=function(t,r,i,a){function s(m,_){return w1.coerce(t,r,k0e,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!w1.isArrayOrTypedArray(l)||!l.length||!w1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||w1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.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"),S0e(t,r,a,s,{prefix:"",cLetter:"z"}),w1.coerceSelectionMarkerOpacity(r,s)}});var UA=me((c3e,BG)=>{"use strict";BG.exports={min:"zmin",max:"zmax"}});var HG=me((h3e,VG)=>{"use strict";var OG=Da(),C0e=Zi().BADNUM,E0e=Qy(),L0e=Kg(),D0e=Qx();function UG(e){return e&&typeof e=="string"}VG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return UG(m)||OG(m)}:s=UG;for(var l=0;l{"use strict";var P0e=Da(),Vc=Bt(),z0e=U0(),I0e=xi(),R0e=Ob().makeBlank,GG=zA();function F0e(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:R0e()};if(!r)return s;var l=GG.extractTraceFeature(e);if(!l)return s;var f=z0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Vc.isArrayOrTypedArray(h.opacity)&&(m=function(O){var q=O.mo;return P0e(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 XG=VA().convert,q0e=VA().convertOnSelect,WG=Oc().traceLayerPrefix;function jG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",WG+t+"-fill"],["line",WG+t+"-line"]],this.below=null}var Em=jG.prototype;Em.update=function(e){this._update(XG(e)),e[0].trace._glTrace=this};Em.updateOnSelect=function(e){this._update(q0e(e))};Em._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])};Em.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};JG.exports=function(t,r){var i=r[0].trace,a=new jG(t,i.uid),s=a.sourceId,l=XG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var $G=me((p3e,QG)=>{"use strict";var N0e=Xi(),B0e=BA(),O0e=Bt().fillText;QG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var tZ=me((m3e,eZ)=>{"use strict";eZ.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 aZ=me((y3e,rZ)=>{"use strict";rZ.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"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(" ");iZ.exports={attributes:OA(),supplyDefaults:NG(),colorbar:UA(),calc:HG(),plot:KG(),hoverPoints:$G(),eventData:tZ(),selectPoints:aZ(),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";oZ.exports=nZ()});var GA=me((b3e,uZ)=>{"use strict";var V0e=Sc(),{hovertemplateAttrs:H0e,templatefallbackAttrs:G0e}=kf(),lZ=ys(),i3=Bb(),HA=yn().extendFlat;uZ.exports=HA({lon:i3.lon,lat:i3.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:i3.text,hovertext:i3.hovertext,hoverinfo:HA({},lZ.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:H0e(),hovertemplatefallback:G0e(),showlegend:HA({},lZ.showlegend,{dflt:!1})},V0e("",{cLetter:"z",editTypeOverride:"calc"}))});var cZ=me((w3e,fZ)=>{"use strict";var Z0e=Bt(),Y0e=bd(),W0e=GA();fZ.exports=function(t,r,i,a){function s(v,m){return Z0e.coerce(t,r,W0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),Y0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var dZ=me((T3e,vZ)=>{"use strict";var ZA=Da(),X0e=Bt().isArrayOrTypedArray,YA=Zi().BADNUM,j0e=Qy(),hZ=Bt()._;vZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=X0e(s)&&s.length,f=0;f{"use strict";var J0e=Da(),WA=Bt(),pZ=Oa(),mZ=U0(),yZ=Zi().BADNUM,K0e=Ob().makeBlank;gZ.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:K0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=WA.isArrayOrTypedArray(h)&&h.length,_=WA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:C})}}var L=mZ.extractOpts(r),I=L.reversescale?mZ.flipScale(L.colorscale):L.colorscale,O=I[0][1],q=pZ.opacity(O)<1?O:pZ.addOpacity(O,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var xZ=_Z(),Q0e=Oc().traceLayerPrefix;function bZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Q0e+t+"-heatmap"]],this.below=null}var n3=bZ.prototype;n3.update=function(e){var t=this.subplot,r=this.layerList,i=xZ(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])};n3.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};wZ.exports=function(t,r){var i=r[0].trace,a=new bZ(t,i.uid),s=a.sourceId,l=xZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var MZ=me((S3e,AZ)=>{"use strict";var $0e=Xi(),eme=Zb().hoverPoints,tme=Zb().getExtraText;AZ.exports=function(t,r,i){var a=eme(t,r,i);if(a){var s=a[0],l=s.cd,f=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=$0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=tme(f,h,l[0].t.labels),[s]}}});var kZ=me((k3e,SZ)=>{"use strict";SZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var EZ=me((E3e,CZ)=>{"use strict";var C3e=["*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(" ");CZ.exports={attributes:GA(),supplyDefaults:cZ(),colorbar:UA(),formatLabels:mA(),calc:dZ(),plot:TZ(),hoverPoints:MZ(),eventData:kZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";LZ.exports=EZ()});var Vo=me((D3e,zZ)=>{"use strict";var PZ=Object.getOwnPropertySymbols,rme=Object.prototype.hasOwnProperty,ame=Object.prototype.propertyIsEnumerable;function ime(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nme(){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}}zZ.exports=nme()?Object.assign:function(e,t){for(var r,i=ime(e),a,s=1;s{var s3=Vo();function IZ(){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(IZ.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 XA(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 o3(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}s3(XA.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?"-":"")+o3(Math.abs(this.year()),4)+"-"+o3(this.month(),2)+"-"+o3(this.day(),2)}});function jA(){this.shortYearCutoff="+10"}s3(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 XA(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?"-":"")+o3(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(),f=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"&&(f(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,f)},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=RZ.exports=new IZ;ka.cdate=XA;ka.baseCalendar=jA;ka.calendars.gregorian=JA});var FZ=me(()=>{var KA=Vo(),po=Ho();KA(po.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"});po.local=po.regionalOptions[""];KA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});KA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.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 po.local.invalidFormat||po.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,f=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,V){var W=""+N;if(v(z,V))for(;W.length1},O=function(oe,fe){var le=I(oe,fe),Te=[2,3,le?4:2,le?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Se=new RegExp("^-?\\d{1,"+Te+"}"),Me=t.substring(W).match(Se);if(!Me)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Me[0].length,parseInt(Me[0],10)},q=this,z=function(){if(typeof f=="function"){I("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return O("m")},N=function(oe,fe,le,Te){for(var Se=I(oe,Te)?le:fe,Me=0;Me-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(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);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 qZ=me(()=>{var pv=Ho(),ome=Vo(),QA=pv.instance();function l3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l3.prototype=new pv.baseCalendar;ome(l3.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(lme);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(ume);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(fme);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,f=a&31,h;h=QA.newDate(s,l,f),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=hme(e,s,r,a);return QA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=QA.fromJD(e),r=cme(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(sme),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),f=Object.getPrototypeOf(l3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var sme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,lme=/^\d?\d[iI]?/m,ume=/^闰?十?[一二三四五六七八九]?月/m,fme=/^闰?十?[一二三四五六七八九]?/m;pv.calendars.chinese=l3;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 cme(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 f=typeof t=="number"&&t>=1&&t<=12;if(!f)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(!f)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 NZ=me(()=>{var tp=Ho(),vme=Vo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new tp.baseCalendar;vme($A.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,tp.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,tp.local.invalidYear||tp.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,tp.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,tp.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)}});tp.calendars.coptic=$A});var BZ=me(()=>{var Hc=Ho(),dme=Vo();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new Hc.baseCalendar;dme(eM.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:pme[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 pme={20:"Fruitbat",21:"Anchovy"};Hc.calendars.discworld=eM});var OZ=me(()=>{var rp=Ho(),mme=Vo();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new rp.baseCalendar;mme(tM.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,rp.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,rp.local.invalidYear||rp.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,rp.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,rp.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)}});rp.calendars.ethiopian=tM});var UZ=me(()=>{var gv=Ho(),yme=Vo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new gv.baseCalendar;yme(rM.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,u3(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&&u3(this.daysInYear(e),10)===5?30:t===9&&u3(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 u3(e,t){return e-t*Math.floor(e/t)}gv.calendars.hebrew=rM});var VZ=me(()=>{var T1=Ho(),gme=Vo();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new T1.baseCalendar;gme(aM.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,T1.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,T1.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,T1.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)}});T1.calendars.islamic=aM});var HZ=me(()=>{var A1=Ho(),_me=Vo();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new A1.baseCalendar;_me(iM.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,A1.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,A1.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,A1.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),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});A1.calendars.julian=iM});var ZZ=me(()=>{var vu=Ho(),xme=Vo();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new vu.baseCalendar;xme(oM.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=nM(e+8+17*20,365);return[Math.floor(t/20)+1,nM(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[GZ(e+20,20),GZ(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 nM(e,t){return e-t*Math.floor(e/t)}function GZ(e,t){return nM(e-1,t)+1}vu.calendars.mayan=oM});var WZ=me(()=>{var ap=Ho(),bme=Vo();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new ap.baseCalendar;var YZ=ap.instance("gregorian");bme(sM.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,ap.local.invalidYear||ap.regionalOptions[""].invalidYear);return YZ.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,ap.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,ap.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)}});ap.calendars.nanakshahi=sM});var XZ=me(()=>{var ip=Ho(),wme=Vo();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new ip.baseCalendar;wme(lM.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,ip.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,ip.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,ip.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=ip.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=ip.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+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 Lm=Ho(),Tme=Vo();function c3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function f3(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}c3.prototype=new Lm.baseCalendar;Tme(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 t=this._validate(e,this.minMonth,this.minDay,Lm.local.invalidYear);return f3(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,Lm.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,Lm.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,f3(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)}});Lm.calendars.persian=c3;Lm.calendars.jalali=c3});var JZ=me(()=>{var np=Ho(),Ame=Vo(),h3=np.instance();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new np.baseCalendar;Ame(uM.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,np.local.invalidYear),r=this._t2gYear(t.year());return h3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,np.local.invalidYear),a=this._t2gYear(i.year());return h3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,np.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,np.local.invalidDate),a=this._t2gYear(i.year());return h3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=h3.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)}});np.calendars.taiwan=uM});var KZ=me(()=>{var op=Ho(),Mme=Vo(),v3=op.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new op.baseCalendar;Mme(fM.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,op.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,op.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,op.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,op.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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});op.calendars.thai=fM});var QZ=me(()=>{var sp=Ho(),Sme=Vo();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new sp.baseCalendar;Sme(cM.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,sp.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,sp.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,sp.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,f=a-12*s,h=t-_v[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=sp.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=sp.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});sp.calendars.ummalqura=cM;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 eY=me((uwe,$Z)=>{"use strict";$Z.exports=Ho();FZ();qZ();NZ();BZ();OZ();UZ();VZ();HZ();ZZ();WZ();XZ();jZ();JZ();KZ();QZ()});var sY=me((fwe,oY)=>{"use strict";var rY=eY(),M1=Bt(),aY=Zi(),kme=aY.EPOCHJD,Cme=aY.ONEDAY,dM={valType:"enumerated",values:M1.sortObjectKeys(rY.calendars),editType:"calc",dflt:"gregorian"},iY=function(e,t,r,i){var a={};return a[r]=dM,M1.coerce(e,t,a,r,i)},Eme=function(e,t,r,i){for(var a=0;a{"use strict";lY.exports=sY()});var Rme=me((hwe,cY)=>{var fY=BV();fY.register([PG(),sZ(),DZ(),uY()]);cY.exports=fY});return Rme();})(); +`),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,Nt),G.compileShader(rr),G.attachShader(this.program,rr),this.attributes={};var Gt={};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/mo(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)}},rc=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}},Js=function(g,c,b,d,w,D,R){return a.extend(rc(g,c,b,d),sf(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)}},Ks=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),sf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},Mp=function(g,c,b,d,w){return a.extend(ks(g,c,b,d),{u_world:w})},Km=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)}},Qm=function(g,c,b,d){var w=g.transform,D,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(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}},$m=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)}},Sp=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)}},kp=function(g,c,b){var d=mo(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)}},ac=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)}},Cp=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)}},Ep=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)}},lf=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},ey=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")}},Lp=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)}},Dp=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)}},Pp=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)}},ic=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/mo(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/mo(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/mo(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 uf=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)}},zp=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:nc(w.paint.get("raster-saturation")),u_contrast_factor:di(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 di(g){return g>0?1/(1-g):1+g}function nc(g){return g>0?1-1/(1.001-g):-g}var Ip=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)}},Rp=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)}},Fp=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}},qp=function(g,c,b,d,w,D,R,G,K,re,ce){var we=w.transform;return a.extend(Fp(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(qp(g,c,b,d,w,D,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Np=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)}},ty=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})},oc={fillExtrusion:Fv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Ks,circle:Km,collisionBox:$m,collisionCircle:Sp,debug:Nv,clippingMask:$c,heatmap:Bv,heatmapTexture:Ep,hillshade:Lp,hillshadePrepare:Dp,line:wu,lineGradient:Dl,linePattern:ic,lineSDF:Vv,raster:uf,symbolIcon:Ip,symbolSDF:Rp,symbolTextAndIcon:zl,background:Np,backgroundPattern:ty},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 Nt=a.create(),Qt=Ke;a.mul(Nt,Oe.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Oe.placementViewportMatrix),ce.push({circleArray:zt,circleOffset:be,transform:Qt,invTransform:Nt}),we+=zt.length/4,be=we}vt&&re.draw(G,K.LINES,ir.disabled,la.disabled,g.colorModeForRenderPass(),Le.disabled,kp(Ke,g.transform,Ge),b.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,null,g.transform.zoom,null,null,vt.collisionVertexBuffer)}}if(!(!R||!ce.length)){var rr=g.useProgram("collisionCircle"),Gt=new a.StructArrayLayout2f1f2i16;Gt.resize(we*4),Gt._trim();for(var ar=0,vr=0,wr=ce;vr=0&&(Ze[Oe.associatedIconIndex]={shiftedAnchor:Wr,angle:Ra})}}if(ce){Re.clear();for(var Nr=g.icon.placedSymbolArray,Ma=0;Ma0){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 sc(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=la.disabled,be=g.depthModeForSublayer(0,ce==="opaque"?ir.ReadWrite:ir.ReadOnly),Re=g.colorModeForRenderPass(),Ze=g.useProgram(re?"backgroundPattern":"background"),Ge=G.coveringTiles({tileSize:K});re&&(D.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Oe=b.getCrossfadeParameters(),Ke=0,vt=Ge;Ke "+b.overscaledZ);var Ke=Oe+" "+Re+"kb";Gp(g,Ke),R.draw(d,w.TRIANGLES,G,K,te.alphaBlended,Le.disabled,ac(D,a.Color.transparent,Ge),ce,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Gp(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 yf(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(la.disabled);var R=w.renderingMode==="3d"?new ir(g.context.gl.LEQUAL,ir.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ir.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:ry,circle:nh,heatmap:Mu,line:go,fill:Bp,"fill-extrusion":Rl,hillshade:pf,raster:Op,background:sc,debug:Jv,custom:yf},Li=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=et.maxUnderzooming+et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new gu,this.gpuTimers={}};Li.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(ir.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 la({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Li.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new la({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Li.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 Nt=this.style._layers[w[this.currentLayer]],Qt=D[Nt.source],rr=K[Nt.source];this._renderTileClippingMasks(Nt,rr),this.renderLayer(this,Qt,Nt,rr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Li.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},Li.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 Ap(this.context,c,Jm[c],b,oc[c],this._showOverdrawInspector)),this.cache[d]},Li.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()},Li.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)},Li.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)}},Li.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 _o=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};_o.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},_o.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)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var $a=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 _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={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}};$a.prototype.clone=function(){var c=new $a(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},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.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))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.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())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.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())},fi.zoom.get=function(){return this._zoom},fi.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())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},$a.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},$a.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},$a.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)},$a.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},$a.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,Ze=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 Oe=we.pop(),Ke=Oe.x,vt=Oe.y,zt=Oe.fullyVisible;if(!zt){var Nt=Oe.aabb.intersects(G);if(Nt===0)continue;zt=Nt===2}var Qt=Oe.aabb.distanceX(R),rr=Oe.aabb.distanceY(R),Gt=Math.max(Math.abs(Qt),Math.abs(rr)),ar=re+(1<ar&&Oe.zoom>=K){be.push({tileID:new a.OverscaledTileID(Oe.zoom===Re?Ze:Oe.zoom,Oe.wrap,Oe.zoom,Ke,vt),distanceSq:a.sqrLen([R[0]-.5-Ke,R[1]-.5-vt])});continue}for(var vr=0;vr<4;vr++){var wr=(Ke<<1)+vr%2,Lr=(vt<<1)+(vr>>1);we.push({aabb:Oe.aabb.quadrant(vr),zoom:Oe.zoom+1,x:wr,y:Lr,wrap:Oe.wrap,fullyVisible:zt})}}return be.sort(function(kr,Wr){return kr.distanceSq-Wr.distanceSq}).map(function(kr){return kr.tileID})},$a.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},$a.prototype.zoomScale=function(c){return Math.pow(2,c)},$a.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},$a.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)},$a.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},$a.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())},$a.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},$a.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},$a.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},$a.prototype.coordinateLocation=function(c){return c.toLngLat()},$a.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)},$a.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])},$a.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)))},$a.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]])},$a.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])},$a.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]},$a.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},$a.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-Oe)}if(this.lngRange){var Ke=Re.x,vt=re.x/2;Ke-vtw&&(G=w-vt)}(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}},$a.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,Ze=this.height%2/2,Ge=Math.cos(this.angle),Oe=Math.sin(this.angle),Ke=G-Math.round(G)+Ge*Re+Oe*Ze,vt=K-Math.round(K)+Ge*Ze+Oe*Re,zt=new Float64Array(be);if(a.translate(zt,zt,[Ke>.5?Ke-1:Ke,vt>.5?vt-1:vt,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={}}},$a.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},$a.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},$a.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 lc={linearity:.3,easing:a.bezier(0,0,.3,1)},gf=a.extend({deceleration:2500,maxSpeed:1400},lc),ql=a.extend({deceleration:20,maxSpeed:1400},lc),Ds=a.extend({deceleration:1e3,maxSpeed:360},lc),hh=a.extend({deceleration:1e3,maxSpeed:90},lc),_f=function(c){this._map=c,this.clear()};_f.prototype.clear=function(){this._inertiaBuffer=[]},_f.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},_f.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},_f.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))},U.prototype.dblclick=function(c){return this._firePreventable(new S(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new S(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new S(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.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)))},De.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)>Pe)&&(this.aborted=!0)}}},De.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 De(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,Jr=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,Qa(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 Qa(d)&&Qa(w)&&re}},c}(fr),na={panStep:100,bearingStep:15,pitchStep:10},oa=function(){var c=na;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};oa.prototype.reset=function(){this._active=!1},oa.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:Di,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})}}}},oa.prototype.enable=function(){this._enabled=!0},oa.prototype.disable=function(){this._enabled=!1,this.reset()},oa.prototype.isEnabled=function(){return this._enabled},oa.prototype.isActive=function(){return this._active},oa.prototype.disableRotation=function(){this._rotationDisabled=!0},oa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Di(g){return g*(2-g)}var Vi=4.000244140625,en=1/100,bi=1/450,wn=2,Tr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=en,this._wheelZoomRate=bi,a.bindAll(["_onTimeout"],this)};Tr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},Tr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},Tr.prototype.isEnabled=function(){return!!this._enabled},Tr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Tr.prototype.isZooming=function(){return!!this._zooming},Tr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},Tr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Tr.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%Vi===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()}},Tr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},Tr.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())}},Tr.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)>Vi?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}}},Tr.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},Tr.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 Ni=function(){this.reset()};Ni.prototype.reset=function(){this._active=!1},Ni.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})}}},Ni.prototype.enable=function(){this._enabled=!0},Ni.prototype.disable=function(){this._enabled=!1,this.reset()},Ni.prototype.isEnabled=function(){return this._enabled},Ni.prototype.isActive=function(){return this._active};var Ai=function(){this._tap=new $e({numTouches:1,numTaps:1}),this.reset()};Ai.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ai.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Ai.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}}},Ai.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)}},Ai.prototype.touchcancel=function(){this.reset()},Ai.prototype.enable=function(){this._enabled=!0},Ai.prototype.disable=function(){this._enabled=!1,this.reset()},Ai.prototype.isEnabled=function(){return this._enabled},Ai.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 mn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};mn.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")},mn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},mn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},mn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},mn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},mn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=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 ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new _f(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(Lr,1-vr),Wr=R.unproject(zt.add(Nt.mult(vr*kr)).mult(wr));R.setLocationAtPoint(R.renderWorldCopies?Wr.wrap():Wr,Oe)}D._fireMoveEvents(w)},function(vr){D._afterEase(w,vr)},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,Ze="pitch"in d?+d.pitch:ce,Ge="padding"in d?d.padding:G.padding,Oe=G.zoomScale(be-K),Ke=a.Point.convert(d.offset),vt=G.centerPoint.add(Ke),zt=G.pointLocation(vt),Nt=a.LngLat.convert(d.center||zt);this._normalizeCenter(Nt);var Qt=G.project(zt),rr=G.project(Nt).sub(Qt),Gt=d.curve,ar=Math.max(G.width,G.height),vr=ar/Oe,wr=rr.mag();if("minZoom"in d){var Lr=a.clamp(Math.min(d.minZoom,K,be),G.minZoom,G.maxZoom),kr=ar/G.zoomScale(Lr-K);Gt=Math.sqrt(kr/wr*2)}var Wr=Gt*Gt;function Ra(ia){var Ba=(vr*vr-ar*ar+(ia?-1:1)*Wr*Wr*wr*wr)/(2*(ia?vr:ar)*Wr*wr);return Math.log(Math.sqrt(Ba*Ba+1)-Ba)}function _a(ia){return(Math.exp(ia)-Math.exp(-ia))/2}function Nr(ia){return(Math.exp(ia)+Math.exp(-ia))/2}function Ma(ia){return _a(ia)/Nr(ia)}var aa=Ra(0),Za=function(ia){return Nr(aa)/Nr(aa+Gt*ia)},Ua=function(ia){return ar*((Nr(aa)*Ma(aa+Gt*ia)-_a(aa))/Wr)/wr},Mi=(Ra(1)-aa)/Gt;if(Math.abs(wr)<1e-6||!isFinite(Mi)){if(Math.abs(ar-vr)<1e-6)return this.easeTo(d,w);var La=vrd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ze!==ce,this._padding=!G.isPaddingEqual(Ge),this._prepareEase(w,!1),this._ease(function(ia){var Ba=ia*Mi,tn=1/Za(Ba);G.zoom=ia===1?be:K+G.scaleZoom(tn),D._rotating&&(G.bearing=a.number(re,Re,ia)),D._pitching&&(G.pitch=a.number(ce,Ze,ia)),D._padding&&(G.interpolatePadding(we,Ge,ia),vt=G.centerPoint.add(Ke));var Nn=ia===1?Nt:G.unproject(Qt.add(rr.mult(Ua(Ba))).mult(tn));G.setLocationAtPoint(G.renderWorldCopies?Nn.wrap():Nn,vt),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 ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.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},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.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}},ui.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.minPitchwf)throw new Error("maxPitch must be less than or equal to "+wf);var D=new $a(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 sy)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 ci(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 ui,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()wf)throw new Error("maxPitch must be less than or equal to "+wf);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(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length?re||(re=!0,R.call(G,new S(w,G,Oe.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(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length?be=!0:be&&(be=!1,R.call(G,new S(w,G,Oe.originalEvent)))},Ze=function(Oe){be&&(be=!1,R.call(G,new S(w,G,Oe.originalEvent)))};return{layer:D,listener:R,delegates:{mousemove:Re,mouseout:Ze}}}else{var Ge=function(Oe){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Oe.point,{layers:[D]}):[];Ke.length&&(Oe.features=Ke,R.call(G,Oe),delete Oe.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 Yp(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),fy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Tf;function ed(g){Tf!==void 0?g(Tf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){Tf=c.state!=="denied",g(Tf)}):(Tf=!!a.window.navigator.geolocation,g(Tf))}var mh=0,fc=!1,C1=function(g){function c(b){g.call(this),this.options=a.extend({},fy,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,fc=!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&&fc)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--,fc=!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},fc=!0):(d=this.options.positionOptions,fc=!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),cy={maxWidth:100,unit:"metric"},cc=function(c){this.options=a.extend({},cy,c),a.bindAll(["_onMove","setUnit"],this)};cc.prototype.getDefaultPosition=function(){return"bottom-left"},cc.prototype._onMove=function(){hy(this._map,this._container,this.options)},cc.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},cc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},cc.prototype.setUnit=function(c){this.options.unit=c,hy(this._map,this._container,this.options)};function hy(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 Qs=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")};Qs.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},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.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)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.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())},Qs.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(", "),p3=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)"),Yp(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:uy,NavigationControl:ku,GeolocateControl:C1,AttributionControl:Ta,ScaleControl:cc,FullscreenControl:Qs,Popup:p3,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 FH=me((Wbe,RH)=>{RH.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 Xb=me(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Zs=63710088e-1,SA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},MA={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 Kde(e,t,r={}){switch(e){case"Point":return kA(t).geometry;case"LineString":return EA(t).geometry;case"Polygon":return CA(t).geometry;case"MultiPoint":return NH(t).geometry;case"MultiLineString":return qH(t).geometry;case"MultiPolygon":return BH(t).geometry;default:throw new Error(e+" is invalid")}}function kA(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(!Yb(e[0])||!Yb(e[1]))throw new Error("coordinates must contain numbers");return uv({type:"Point",coordinates:e},t,r)}function Qde(e,t,r={}){return Wb(e.map(i=>kA(i,t)),r)}function CA(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;sCA(i,t)),r)}function EA(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 epe(e,t,r={}){return Wb(e.map(i=>EA(i,t)),r)}function Wb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function qH(e,t,r={}){return uv({type:"MultiLineString",coordinates:e},t,r)}function NH(e,t,r={}){return uv({type:"MultiPoint",coordinates:e},t,r)}function BH(e,t,r={}){return uv({type:"MultiPolygon",coordinates:e},t,r)}function tpe(e,t,r={}){return uv({type:"GeometryCollection",geometries:e},t,r)}function rpe(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 OH(e,t="kilometers"){let r=SA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function LA(e,t="kilometers"){let r=SA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function ape(e,t){return UH(LA(e,t))}function ipe(e){let t=e%360;return t<0&&(t+=360),t}function npe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function UH(e){return e%(2*Math.PI)*180/Math.PI}function ope(e){return e%360*Math.PI/180}function spe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return OH(LA(e,t),r)}function lpe(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=MA[t];if(!i)throw new Error("invalid original units");let a=MA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Yb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function upe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function fpe(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(!Yb(t))throw new Error("bbox must only contain numbers")})}function cpe(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")}ki.areaFactors=MA;ki.azimuthToBearing=npe;ki.bearingToAzimuth=ipe;ki.convertArea=lpe;ki.convertLength=spe;ki.degreesToRadians=ope;ki.earthRadius=Zs;ki.factors=SA;ki.feature=uv;ki.featureCollection=Wb;ki.geometry=Kde;ki.geometryCollection=tpe;ki.isNumber=Yb;ki.isObject=upe;ki.lengthToDegrees=ape;ki.lengthToRadians=LA;ki.lineString=EA;ki.lineStrings=epe;ki.multiLineString=qH;ki.multiPoint=NH;ki.multiPolygon=BH;ki.point=kA;ki.points=Qde;ki.polygon=CA;ki.polygons=$de;ki.radiansToDegrees=UH;ki.radiansToLength=OH;ki.round=rpe;ki.validateBBox=fpe;ki.validateId=cpe});var Jb=me(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var us=Xb();function w1(e,t,r){if(e!==null)for(var i,a,s,l,f,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){f=_,h=i,v=C,m=E,s=0;return}var L=us.lineString.call(void 0,[f,_],r.properties);if(t(L,i,a,E,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function gpe(e,t,r){var i=r,a=!1;return GH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function ZH(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 f=0;f{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});var YH=Xb(),wpe=Jb();function jH(e){return wpe.geomReduce.call(void 0,e,(t,r)=>t+Tpe(r),0)}function Tpe(e){let t=0,r;switch(e.type){case"Polygon":return WH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(XH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*PA,h=s[1]*PA,v=l[0]*PA;r+=(v-f)*Math.sin(h),i++}return r*Ape}var Mpe=jH;Kb.area=jH;Kb.default=Mpe});var QH=me(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});var Spe=Xb(),kpe=Jb();function KH(e,t={}){let r=0,i=0,a=0;return kpe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),Spe.point.call(void 0,[r/a,i/a],t.properties)}var Cpe=KH;Qb.centroid=KH;Qb.default=Cpe});var eG=me($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});var Epe=Jb();function $H(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Epe.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 Dpe=ja(),aG=FH(),{area:Ppe}=JH(),{centroid:zpe}=QH(),{bbox:Ipe}=eG(),tG=E_(),Cm=Lh(),Rpe=yc(),Fpe=Ey(),e3=yx(),rG=Object.keys(aG),qpe={"ISO-3":tG,"USA-states":tG,"country names":Npe};function Npe(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=e3.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(e3.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=Vpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else Cm.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=f,r=l)}else r=t;return zpe(r).geometry.coordinates}function Hpe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){Dpe.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 ep=Bt(),Zpe=ro().sanitizeHTML,Ype=gA(),oG=Oc();function sG(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=oG.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var hu=sG.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=t3(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,!!t3(e)){var r=Wpe(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 lG(e){var t={},r={};switch(e.type){case"circle":ep.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":ep.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":ep.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=Ype(i.textposition,i.iconsize);ep.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}),ep.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":ep.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Wpe(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=Zpe(e.sourceattribution)),i}uG.exports=function(t,r,i){var a=new sG(t,r);return a.update(i),a}});var _G=me((t3e,gG)=>{"use strict";var IA=AA(),RA=Bt(),dG=zA(),cG=sa(),Xpe=Xi(),jpe=jl(),r3=Nf(),pG=qd(),Jpe=pG.drawMode,Kpe=pG.selectMode,Qpe=Hf().prepSelect,$pe=Hf().clearOutline,e0e=Hf().clearSelectionsCache,t0e=Hf().selectOnClick,fv=Oc(),r0e=fG();function mG(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=mG.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,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Hn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=yG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new IA.Map({container:a.div,style:l.style,center:FA(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 IA.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(dG.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 f=[],h=yG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat(dG.fetchTraceGeoData(e)),Promise.all(f).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={},f=!1;for(a=0;a1)for(a=0;a-1&&t0e(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&r3.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 f=t.dragOptions;t.dragOptions=RA.extendDeep(f||{},{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),Kpe(s)||Jpe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){Qpe(h,v,m,t.dragOptions,s)},jpe.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 a0e=Bt(),i0e=Ii(),n0e=zb().defaults;xG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=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 a0e.coerce(T,M,l,O,q)}for(var E=0;E{"use strict";var qA=Bt(),o0e=bG(),s0e=Wl(),wG=y1();TG.exports=function(t,r,i){o0e(t,r,i,{type:"mapbox",attributes:wG,handleDefaults:l0e,partition:"y",accessToken:r._mapboxAccessToken})};function l0e(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"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,s0e(e,t,{name:"layers",handleItemDefaults:u0e}),t._input=e}function u0e(e,t){function r(h,v){return qA.coerce(e,t,wG.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 f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",qA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),qA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var a3=me(Ys=>{"use strict";var MG=AA(),Qu=Bt(),NA=Qu.strTranslate,f0e=Qu.strScale,c0e=X_().getSubplotCalcData,h0e=Oh(),v0e=ja(),SG=xi(),d0e=ro(),p0e=_G(),cv="mapbox",jf=Ys.constants=Oc();Ys.name=cv;Ys.attr="subplot";Ys.idRoot=cv;Ys.idRegex=Ys.attrRegex=Qu.counterRegex(cv);var m0e=["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(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=y1();Ys.supplyLayoutDefaults=AG();var kG=!0;Ys.plot=function(t){kG&&(kG=!1,Qu.warn(m0e));var r=t._fullLayout,i=t.calcdata,a=r._subplots[cv];if(MG.version!==jf.requiredVersion)throw new Error(jf.wrongVersionErrorMsg);var s=y0e(t,a);MG.accessToken=s;for(var l=0;lI/2){var O=M.split("|").join("
");E.text(O).attr("data-unformatted",O).call(d0e.convertToTspans,e),L=SG.bBox(E.node())}E.attr("transform",NA(-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",NA(z[0],z[1])+f0e(q))}};function y0e(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Qu.warn(jf.multipleTokensErrorMsg),a[0]):(s.length&&Qu.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function CG(e){return typeof e=="string"&&(jf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[cv],i=0;i{"use strict";var n3e=["*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(" ");EG.exports={attributes:Bb(),supplyDefaults:uH(),colorbar:iT(),formatLabels:mA(),calc:mH(),plot:CH(),hoverPoints:Zb().hoverPoints,eventData:PH(),selectPoints:IH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:a3(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var PG=me((s3e,DG)=>{"use strict";DG.exports=LG()});var BA=me((l3e,RG)=>{"use strict";var{hovertemplateAttrs:g0e,templatefallbackAttrs:_0e}=kf(),vv=hA(),x0e=Sc(),zG=ys(),b0e=Sf().defaultLine,hv=yn().extendFlat,IG=vv.marker.line;RG.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({},IG.color,{dflt:b0e}),width:hv({},IG.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({},zG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:g0e(),hovertemplatefallback:_0e(),showlegend:hv({},zG.showlegend,{dflt:!1})},x0e("",{cLetter:"z",editTypeOverride:"calc"}))});var OA=me((u3e,FG)=>{"use strict";var Uc=BA(),w0e=Sc(),{hovertemplateAttrs:T0e,templatefallbackAttrs:A0e}=kf(),M0e=ys(),dv=yn().extendFlat;FG.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:T0e({},{keys:["properties"]}),hovertemplatefallback:A0e(),showlegend:dv({},M0e.showlegend,{dflt:!1})},w0e("",{cLetter:"z",editTypeOverride:"calc"}))});var NG=me((f3e,qG)=>{"use strict";var T1=Bt(),S0e=bd(),k0e=OA();qG.exports=function(t,r,i,a){function s(m,_){return T1.coerce(t,r,k0e,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!T1.isArrayOrTypedArray(l)||!l.length||!T1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||T1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.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"),S0e(t,r,a,s,{prefix:"",cLetter:"z"}),T1.coerceSelectionMarkerOpacity(r,s)}});var UA=me((c3e,BG)=>{"use strict";BG.exports={min:"zmin",max:"zmax"}});var HG=me((h3e,VG)=>{"use strict";var OG=Da(),C0e=Zi().BADNUM,E0e=Qy(),L0e=Qg(),D0e=Qx();function UG(e){return e&&typeof e=="string"}VG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return UG(m)||OG(m)}:s=UG;for(var l=0;l{"use strict";var P0e=Da(),Vc=Bt(),z0e=U0(),I0e=xi(),R0e=Ob().makeBlank,GG=zA();function F0e(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:R0e()};if(!r)return s;var l=GG.extractTraceFeature(e);if(!l)return s;var f=z0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Vc.isArrayOrTypedArray(h.opacity)&&(m=function(O){var q=O.mo;return P0e(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 XG=VA().convert,q0e=VA().convertOnSelect,WG=Oc().traceLayerPrefix;function jG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",WG+t+"-fill"],["line",WG+t+"-line"]],this.below=null}var Em=jG.prototype;Em.update=function(e){this._update(XG(e)),e[0].trace._glTrace=this};Em.updateOnSelect=function(e){this._update(q0e(e))};Em._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])};Em.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};JG.exports=function(t,r){var i=r[0].trace,a=new jG(t,i.uid),s=a.sourceId,l=XG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var $G=me((p3e,QG)=>{"use strict";var N0e=Xi(),B0e=BA(),O0e=Bt().fillText;QG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var tZ=me((m3e,eZ)=>{"use strict";eZ.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 aZ=me((y3e,rZ)=>{"use strict";rZ.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"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(" ");iZ.exports={attributes:OA(),supplyDefaults:NG(),colorbar:UA(),calc:HG(),plot:KG(),hoverPoints:$G(),eventData:tZ(),selectPoints:aZ(),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";oZ.exports=nZ()});var GA=me((b3e,uZ)=>{"use strict";var V0e=Sc(),{hovertemplateAttrs:H0e,templatefallbackAttrs:G0e}=kf(),lZ=ys(),i3=Bb(),HA=yn().extendFlat;uZ.exports=HA({lon:i3.lon,lat:i3.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:i3.text,hovertext:i3.hovertext,hoverinfo:HA({},lZ.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:H0e(),hovertemplatefallback:G0e(),showlegend:HA({},lZ.showlegend,{dflt:!1})},V0e("",{cLetter:"z",editTypeOverride:"calc"}))});var cZ=me((w3e,fZ)=>{"use strict";var Z0e=Bt(),Y0e=bd(),W0e=GA();fZ.exports=function(t,r,i,a){function s(v,m){return Z0e.coerce(t,r,W0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),Y0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var dZ=me((T3e,vZ)=>{"use strict";var ZA=Da(),X0e=Bt().isArrayOrTypedArray,YA=Zi().BADNUM,j0e=Qy(),hZ=Bt()._;vZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=X0e(s)&&s.length,f=0;f{"use strict";var J0e=Da(),WA=Bt(),pZ=Oa(),mZ=U0(),yZ=Zi().BADNUM,K0e=Ob().makeBlank;gZ.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:K0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=WA.isArrayOrTypedArray(h)&&h.length,_=WA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:C})}}var L=mZ.extractOpts(r),I=L.reversescale?mZ.flipScale(L.colorscale):L.colorscale,O=I[0][1],q=pZ.opacity(O)<1?O:pZ.addOpacity(O,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var xZ=_Z(),Q0e=Oc().traceLayerPrefix;function bZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Q0e+t+"-heatmap"]],this.below=null}var n3=bZ.prototype;n3.update=function(e){var t=this.subplot,r=this.layerList,i=xZ(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])};n3.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};wZ.exports=function(t,r){var i=r[0].trace,a=new bZ(t,i.uid),s=a.sourceId,l=xZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var MZ=me((S3e,AZ)=>{"use strict";var $0e=Xi(),eme=Zb().hoverPoints,tme=Zb().getExtraText;AZ.exports=function(t,r,i){var a=eme(t,r,i);if(a){var s=a[0],l=s.cd,f=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=$0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=tme(f,h,l[0].t.labels),[s]}}});var kZ=me((k3e,SZ)=>{"use strict";SZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var EZ=me((E3e,CZ)=>{"use strict";var C3e=["*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(" ");CZ.exports={attributes:GA(),supplyDefaults:cZ(),colorbar:UA(),formatLabels:mA(),calc:dZ(),plot:TZ(),hoverPoints:MZ(),eventData:kZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";LZ.exports=EZ()});var Vo=me((D3e,zZ)=>{"use strict";var PZ=Object.getOwnPropertySymbols,rme=Object.prototype.hasOwnProperty,ame=Object.prototype.propertyIsEnumerable;function ime(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nme(){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}}zZ.exports=nme()?Object.assign:function(e,t){for(var r,i=ime(e),a,s=1;s{var s3=Vo();function IZ(){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(IZ.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 XA(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 o3(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}s3(XA.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?"-":"")+o3(Math.abs(this.year()),4)+"-"+o3(this.month(),2)+"-"+o3(this.day(),2)}});function jA(){this.shortYearCutoff="+10"}s3(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 XA(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?"-":"")+o3(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(),f=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"&&(f(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,f)},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=RZ.exports=new IZ;ka.cdate=XA;ka.baseCalendar=jA;ka.calendars.gregorian=JA});var FZ=me(()=>{var KA=Vo(),po=Ho();KA(po.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"});po.local=po.regionalOptions[""];KA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});KA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.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 po.local.invalidFormat||po.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,f=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,V){var W=""+N;if(v(z,V))for(;W.length1},O=function(oe,fe){var le=I(oe,fe),Te=[2,3,le?4:2,le?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Se=new RegExp("^-?\\d{1,"+Te+"}"),Me=t.substring(W).match(Se);if(!Me)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Me[0].length,parseInt(Me[0],10)},q=this,z=function(){if(typeof f=="function"){I("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return O("m")},N=function(oe,fe,le,Te){for(var Se=I(oe,Te)?le:fe,Me=0;Me-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(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);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 qZ=me(()=>{var pv=Ho(),ome=Vo(),QA=pv.instance();function l3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l3.prototype=new pv.baseCalendar;ome(l3.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(lme);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(ume);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(fme);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,f=a&31,h;h=QA.newDate(s,l,f),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=hme(e,s,r,a);return QA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=QA.fromJD(e),r=cme(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(sme),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),f=Object.getPrototypeOf(l3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var sme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,lme=/^\d?\d[iI]?/m,ume=/^闰?十?[一二三四五六七八九]?月/m,fme=/^闰?十?[一二三四五六七八九]?/m;pv.calendars.chinese=l3;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 cme(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 f=typeof t=="number"&&t>=1&&t<=12;if(!f)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(!f)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 NZ=me(()=>{var tp=Ho(),vme=Vo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new tp.baseCalendar;vme($A.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,tp.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,tp.local.invalidYear||tp.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,tp.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,tp.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)}});tp.calendars.coptic=$A});var BZ=me(()=>{var Hc=Ho(),dme=Vo();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new Hc.baseCalendar;dme(eM.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:pme[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 pme={20:"Fruitbat",21:"Anchovy"};Hc.calendars.discworld=eM});var OZ=me(()=>{var rp=Ho(),mme=Vo();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new rp.baseCalendar;mme(tM.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,rp.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,rp.local.invalidYear||rp.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,rp.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,rp.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)}});rp.calendars.ethiopian=tM});var UZ=me(()=>{var gv=Ho(),yme=Vo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new gv.baseCalendar;yme(rM.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,u3(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&&u3(this.daysInYear(e),10)===5?30:t===9&&u3(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 u3(e,t){return e-t*Math.floor(e/t)}gv.calendars.hebrew=rM});var VZ=me(()=>{var A1=Ho(),gme=Vo();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new A1.baseCalendar;gme(aM.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=aM});var HZ=me(()=>{var M1=Ho(),_me=Vo();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new M1.baseCalendar;_me(iM.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),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});M1.calendars.julian=iM});var ZZ=me(()=>{var vu=Ho(),xme=Vo();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new vu.baseCalendar;xme(oM.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=nM(e+8+17*20,365);return[Math.floor(t/20)+1,nM(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[GZ(e+20,20),GZ(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 nM(e,t){return e-t*Math.floor(e/t)}function GZ(e,t){return nM(e-1,t)+1}vu.calendars.mayan=oM});var WZ=me(()=>{var ap=Ho(),bme=Vo();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new ap.baseCalendar;var YZ=ap.instance("gregorian");bme(sM.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,ap.local.invalidYear||ap.regionalOptions[""].invalidYear);return YZ.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,ap.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,ap.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)}});ap.calendars.nanakshahi=sM});var XZ=me(()=>{var ip=Ho(),wme=Vo();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new ip.baseCalendar;wme(lM.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,ip.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,ip.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,ip.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=ip.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=ip.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+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 Lm=Ho(),Tme=Vo();function c3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function f3(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}c3.prototype=new Lm.baseCalendar;Tme(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 t=this._validate(e,this.minMonth,this.minDay,Lm.local.invalidYear);return f3(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,Lm.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,Lm.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,f3(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)}});Lm.calendars.persian=c3;Lm.calendars.jalali=c3});var JZ=me(()=>{var np=Ho(),Ame=Vo(),h3=np.instance();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new np.baseCalendar;Ame(uM.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,np.local.invalidYear),r=this._t2gYear(t.year());return h3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,np.local.invalidYear),a=this._t2gYear(i.year());return h3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,np.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,np.local.invalidDate),a=this._t2gYear(i.year());return h3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=h3.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)}});np.calendars.taiwan=uM});var KZ=me(()=>{var op=Ho(),Mme=Vo(),v3=op.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new op.baseCalendar;Mme(fM.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,op.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,op.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,op.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,op.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>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});op.calendars.thai=fM});var QZ=me(()=>{var sp=Ho(),Sme=Vo();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new sp.baseCalendar;Sme(cM.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,sp.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,sp.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,sp.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,f=a-12*s,h=t-_v[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=sp.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=sp.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});sp.calendars.ummalqura=cM;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 eY=me((uwe,$Z)=>{"use strict";$Z.exports=Ho();FZ();qZ();NZ();BZ();OZ();UZ();VZ();HZ();ZZ();WZ();XZ();jZ();JZ();KZ();QZ()});var sY=me((fwe,oY)=>{"use strict";var rY=eY(),S1=Bt(),aY=Zi(),kme=aY.EPOCHJD,Cme=aY.ONEDAY,dM={valType:"enumerated",values:S1.sortObjectKeys(rY.calendars),editType:"calc",dflt:"gregorian"},iY=function(e,t,r,i){var a={};return a[r]=dM,S1.coerce(e,t,a,r,i)},Eme=function(e,t,r,i){for(var a=0;a{"use strict";lY.exports=sY()});var Rme=me((hwe,cY)=>{var fY=BV();fY.register([PG(),sZ(),DZ(),uY()]);cY.exports=fY});return Rme();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index 67d46432625..8cc18b76839 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -13795,9 +13795,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35925,7 +35925,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index b78aa43e949..d57515c4ed5 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var nrt=Object.create;var RM=Object.defineProperty,art=Object.defineProperties,ort=Object.getOwnPropertyDescriptor,srt=Object.getOwnPropertyDescriptors,lrt=Object.getOwnPropertyNames,vL=Object.getOwnPropertySymbols,urt=Object.getPrototypeOf,RO=Object.prototype.hasOwnProperty,Eee=Object.prototype.propertyIsEnumerable;var Mee=(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={}))RO.call(t,r)&&Mee(e,r,t[r]);if(vL)for(var r of vL(t))Eee.call(t,r)&&Mee(e,r,t[r]);return e},W1=(e,t)=>art(e,srt(t));var kee=(e,t)=>{var r={};for(var n in e)RO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vL)for(var n of vL(e))t.indexOf(n)<0&&Eee.call(e,n)&&(r[n]=e[n]);return r};var tc=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cee=(e,t)=>{for(var r in t)RM(e,r,{get:t[r],enumerable:!0})},Lee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lrt(t))!RO.call(e,i)&&i!==r&&RM(e,i,{get:()=>t[i],enumerable:!(n=ort(t,i))||n.enumerable});return e};var frt=(e,t,r)=>(r=e!=null?nrt(urt(e)):{},Lee(t||!e||!e.__esModule?RM(r,"default",{value:e,enumerable:!0}):r,e)),vb=e=>Lee(RM({},"__esModule",{value:!0}),e);var mL=Te(Pee=>{"use strict";Pee.version="3.4.0"});var Iee=Te((zee,yL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof yL!="undefined"&&yL.exports&&(yL.exports=r[t])})("Promise",typeof window!="undefined"?window:zee,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,T,L){return Object.defineProperty(C,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var C,E,T;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,M){T=new L(k,M),E?E.next=T:C=T,E=T,T=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(T){c.call(new d(E),T)}}}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,T){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(se){for(var Pe=se.length,Ze=new Array(Pe);Pe--;)Ze[Pe]=se[Pe];return Ze}}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(se,Pe){s.call(this,se,Pe+"")},o.setAttributeNS=function(se,Pe,Ze){u.call(this,se,Pe,Ze+"")},l.setProperty=function(se,Pe,Ze){f.call(this,se,Pe+"",Ze)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var Pe=-1,Ze=Z.length,et,st;if(arguments.length===1){for(;++Pe=st){et=st;break}for(;++Pest&&(et=st)}else{for(;++Pe=st){et=st;break}for(;++Pest&&(et=st)}return et},e.max=function(Z,se){var Pe=-1,Ze=Z.length,et,st;if(arguments.length===1){for(;++Pe=st){et=st;break}for(;++Peet&&(et=st)}else{for(;++Pe=st){et=st;break}for(;++Peet&&(et=st)}return et},e.extent=function(Z,se){var Pe=-1,Ze=Z.length,et,st,jt;if(arguments.length===1){for(;++Pe=st){et=jt=st;break}for(;++Pest&&(et=st),jt=st){et=jt=st;break}for(;++Pest&&(et=st),jt1)return jt/(hr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,Pe,Ze,et){for(arguments.length<3&&(Ze=0),arguments.length<4&&(et=se.length);Ze>>1;Z(se[st],Pe)<0?Ze=st+1:et=st}return Ze},right:function(se,Pe,Ze,et){for(arguments.length<3&&(Ze=0),arguments.length<4&&(et=se.length);Ze>>1;Z(se[st],Pe)>0?et=st:Ze=st+1}return Ze}}}var _=p(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(Z){return p(Z.length===1?function(se,Pe){return c(Z(se),Pe)}:Z)},e.shuffle=function(Z,se,Pe){(Ze=arguments.length)<3&&(Pe=Z.length,Ze<2&&(se=0));for(var Ze=Pe-se,et,st;Ze;)st=Math.random()*Ze--|0,et=Z[Ze+se],Z[Ze+se]=Z[st+se],Z[st+se]=et;return Z},e.permute=function(Z,se){for(var Pe=se.length,Ze=new Array(Pe);Pe--;)Ze[Pe]=Z[se[Pe]];return Ze},e.pairs=function(Z){for(var se=0,Pe=Z.length-1,Ze,et=Z[0],st=new Array(Pe<0?0:Pe);se=0;)for(jt=Z[se],Pe=jt.length;--Pe>=0;)st[--et]=jt[Pe];return st};var v=Math.abs;e.range=function(Z,se,Pe){if(arguments.length<3&&(Pe=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/Pe===1/0)throw new Error("infinite range");var Ze=[],et=C(v(Pe)),st=-1,jt;if(Z*=et,se*=et,Pe*=et,Pe<0)for(;(jt=Z+Pe*++st)>se;)Ze.push(jt/et);else for(;(jt=Z+Pe*++st)=se.length)return et?et.call(Z,hr):Ze?hr.sort(Ze):hr;for(var zr=-1,fi=hr.length,$r=se[Cr++],Bi,fn,mi,zi=new T,ji;++zr=se.length)return _t;var Cr=[],zr=Pe[hr++];return _t.forEach(function(fi,$r){Cr.push({key:fi,values:jt($r,hr)})}),zr?Cr.sort(function(fi,$r){return zr(fi.key,$r.key)}):Cr}return Z.map=function(_t,hr){return st(hr,_t,0)},Z.entries=function(_t){return jt(st(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return Pe[se.length-1]=_t,Z},Z.sortValues=function(_t){return Ze=_t,Z},Z.rollup=function(_t){return et=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var Pe=0,Ze=Z.length;Pe=0&&(Ze=Z.slice(Pe+1),Z=Z.slice(0,Pe)),Z)return arguments.length<2?this[Z].on(Ze):this[Z].on(Ze,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Ze,null);return this}};function ae(Z){var se=[],Pe=new T;function Ze(){for(var et=se,st=-1,jt=et.length,_t;++st=0&&(Pe=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),je.hasOwnProperty(Pe)?{space:je[Pe],local:Z}:Z}},De.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var Pe=this.node();return Z=e.ns.qualify(Z),Z.local?Pe.getAttributeNS(Z.space,Z.local):Pe.getAttribute(Z)}for(se in Z)this.each(Qe(se,Z[se]));return this}return this.each(Qe(Z,se))};function Qe(Z,se){Z=e.ns.qualify(Z);function Pe(){this.removeAttribute(Z)}function Ze(){this.removeAttributeNS(Z.space,Z.local)}function et(){this.setAttribute(Z,se)}function st(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var hr=se.apply(this,arguments);hr==null?this.removeAttribute(Z):this.setAttribute(Z,hr)}function _t(){var hr=se.apply(this,arguments);hr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,hr)}return se==null?Z.local?Ze:Pe:typeof se=="function"?Z.local?_t:jt:Z.local?st:et}function gt(Z){return Z.trim().replace(/\s+/g," ")}De.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var Pe=this.node(),Ze=(Z=at(Z)).length,et=-1;if(se=Pe.classList){for(;++et=0;)(st=Pe[Ze])&&(et&&et!==st.nextSibling&&et.parentNode.insertBefore(st,et),et=st);return this},De.sort=function(Z){Z=ot.apply(this,arguments);for(var se=-1,Pe=this.length;++se=se&&(se=et+1);!(hr=jt[se])&&++se<_t;);return hr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Se(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},De.on=function(Z,se,Pe){var Ze=arguments.length;if(Ze<3){if(typeof Z!="string"){Ze<2&&(se=!1);for(Pe in Z)this.each(nt(Pe,Z[Pe],se));return this}if(Ze<2)return(Ze=this.node()["__on"+Z])&&Ze._;Pe=!1}return this.each(nt(Z,se,Pe))};function nt(Z,se,Pe){var Ze="__on"+Z,et=Z.indexOf("."),st=It;et>0&&(Z=Z.slice(0,et));var jt=tt.get(Z);jt&&(Z=jt,st=Yt);function _t(){var zr=this[Ze];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Ze])}function hr(){var zr=st(se,r(arguments));_t.call(this),this.addEventListener(Z,this[Ze]=zr,zr.$=Pe),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),fi;for(var $r in this)if(fi=$r.match(zr)){var Bi=this[$r];this.removeEventListener(fi[1],Bi,Bi.$),delete this[$r]}}return et?se?hr:_t:se?H:Cr}var tt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&tt.forEach(function(Z){"on"+Z in n&&tt.remove(Z)});function It(Z,se){return function(Pe){var Ze=e.event;e.event=Pe,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=Ze}}}function Yt(Z,se){var Pe=It(Z,se);return function(Ze){var et=this,st=Ze.relatedTarget;(!st||st!==et&&!(st.compareDocumentPosition(et)&8))&&Pe.call(et,Ze)}}var cr,_r=0;function yr(Z){var se=".dragsuppress-"+ ++_r,Pe="click"+se,Ze=e.select(a(Z)).on("touchmove"+se,ge).on("dragstart"+se,ge).on("selectstart"+se,ge);if(cr==null&&(cr="onselectstart"in Z?!1:W(Z.style,"userSelect")),cr){var et=i(Z).style,st=et[cr];et[cr]="none"}return function(jt){if(Ze.on(se,null),cr&&(et[cr]=st),jt){var _t=function(){Ze.on(Pe,null)};Ze.on(Pe,function(){ge(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Re(Z,ze())};var Ut=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var Pe=Z.ownerSVGElement||Z;if(Pe.createSVGPoint){var Ze=Pe.createSVGPoint();if(Ut<0){var et=a(Z);if(et.scrollX||et.scrollY){Pe=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var st=Pe[0][0].getScreenCTM();Ut=!(st.f||st.e),Pe.remove()}}return Ut?(Ze.x=se.pageX,Ze.y=se.pageY):(Ze.x=se.clientX,Ze.y=se.clientY),Ze=Ze.matrixTransform(Z.getScreenCTM().inverse()),[Ze.x,Ze.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,Pe){if(arguments.length<3&&(Pe=se,se=ze().changedTouches),se){for(var Ze=0,et=se.length,st;Ze0?1:Z<0?-1:0}function zt(Z,se,Pe){return(se[0]-Z[0])*(Pe[1]-Z[1])-(se[1]-Z[1])*(Pe[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?Fe:Math.acos(Z)}function Gr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Br(Z){return((Z=Math.exp(Z))-1/Z)/2}function Er(Z){return((Z=Math.exp(Z))+1/Z)/2}function Rr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function pi(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,ni=2,$i=4;e.interpolateZoom=function(Z,se){var Pe=Z[0],Ze=Z[1],et=Z[2],st=se[0],jt=se[1],_t=se[2],hr=st-Pe,Cr=jt-Ze,zr=hr*hr+Cr*Cr,fi,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(mi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(mi.invert)),pn&&pn.domain(ji.range().map(function(ds){return(ds-Z.y)/Z.k}).map(ji.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),Pe=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Mf).on(zr,pf),lf=wi(e.mouse(ds)),hf=yr(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=fn.of(ds,arguments),Au={},Tu=0,lf,hf=".zoom-"+e.event.changedTouches[0].identifier,Mf="touchmove"+hf,pf="touchend"+hf,fc=[],Be=e.select(ds),Nt=yr(ds);Qr(),Pl(Wl),Be.on(hr,null).on($r,Qr);function ar(){var vi=e.touches(ds);return lf=Z.k,vi.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=wi(on))}),vi}function Qr(){var vi=e.event.target;e.select(vi).on(Mf,yi).on(pf,ci),fc.push(vi);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],qi=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=qi*qi+Wr*Wr}}function yi(){var vi=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=vi.length;Ls1?1:se,Pe=Pe<0?0:Pe>1?1:Pe,et=Pe<=.5?Pe*(1+se):Pe+se-Pe*se,Ze=2*Pe-et;function st(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?Ze+(et-Ze)*_t/60:_t<180?et:_t<240?Ze+(et-Ze)*(240-_t)/60:Ze}function jt(_t){return Math.round(st(_t)*255)}return new Fi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,Pe){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+Pe)):arguments.length<2?Z instanceof Wt?new Wt(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 Wt(Z,se,Pe)}var xr=Wt.prototype=new Ni;xr.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Or*(arguments.length?Z:1)))},xr.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Or*(arguments.length?Z:1)))},xr.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,Pe){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Nr(Pe,Math.cos(Z*=pe)*se,Math.sin(Z)*se)}e.lab=Nr;function Nr(Z,se,Pe){return this instanceof Nr?(this.l=+Z,this.a=+se,void(this.b=+Pe)):arguments.length<2?Z instanceof Nr?new Nr(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Fi(Z)).r,Z.g,Z.b):new Nr(Z,se,Pe)}var Or=18,Hr=.95047,jr=1,gi=1.08883,ki=Nr.prototype=new Ni;ki.brighter=function(Z){return new Nr(Math.min(100,this.l+Or*(arguments.length?Z:1)),this.a,this.b)},ki.darker=function(Z){return new Nr(Math.max(0,this.l-Or*(arguments.length?Z:1)),this.a,this.b)},ki.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,Pe){var Ze=(Z+16)/116,et=Ze+se/500,st=Ze-Pe/200;return et=tn(et)*Hr,Ze=tn(Ze)*jr,st=tn(st)*gi,new Fi(oi(3.2404542*et-1.5371385*Ze-.4985314*st),oi(-.969266*et+1.8760108*Ze+.041556*st),oi(.0556434*et-.2040259*Ze+1.0572252*st))}function ti(Z,se,Pe){return Z>0?new Wt(Math.atan2(Pe,se)*dt,Math.sqrt(se*se+Pe*Pe),Z):new Wt(NaN,NaN,Z)}function tn(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,se,Pe){return this instanceof Fi?(this.r=~~Z,this.g=~~se,void(this.b=~~Pe)):arguments.length<2?Z instanceof Fi?new Fi(Z.r,Z.g,Z.b):xn(""+Z,Fi,Gt):new Fi(Z,se,Pe)}function an(Z){return new Fi(Z>>16,Z>>8&255,Z&255)}function nn(Z){return an(Z)+""}var Ri=Fi.prototype=new Ni;Ri.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,Pe=this.g,Ze=this.b,et=30;return!se&&!Pe&&!Ze?new Fi(et,et,et):(se&&se>4,Ze=Ze>>4|Ze,et=hr&240,et=et>>4|et,st=hr&15,st=st<<4|st):Z.length===7&&(Ze=(hr&16711680)>>16,et=(hr&65280)>>8,st=hr&255)),se(Ze,et,st))}function bi(Z,se,Pe){var Ze=Math.min(Z/=255,se/=255,Pe/=255),et=Math.max(Z,se,Pe),st=et-Ze,jt,_t,hr=(et+Ze)/2;return st?(_t=hr<.5?st/(et+Ze):st/(2-et-Ze),Z==et?jt=(se-Pe)/st+(se0&&hr<1?0:jt),new Rt(jt,_t,hr)}function Xr(Z,se,Pe){Z=ct(Z),se=ct(se),Pe=ct(Pe);var Ze=Yr((.4124564*Z+.3575761*se+.1804375*Pe)/Hr),et=Yr((.2126729*Z+.7151522*se+.072175*Pe)/jr),st=Yr((.0193339*Z+.119192*se+.9503041*Pe)/gi);return Nr(116*et-16,500*(Ze-et),200*(et-st))}function ct(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=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});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,Pe,Ze){return arguments.length===2&&typeof Pe=="function"&&(Ze=Pe,Pe=null),Ai(se,Pe,Z,Ze)}}function Ai(Z,se,Pe,Ze){var et={},st=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,hr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,fi;if(!zr&&ii(_t)||zr>=200&&zr<300||zr===304){try{fi=Pe.call(et,_t)}catch($r){st.error.call(et,$r);return}st.load.call(et,fi)}else st.error.call(et,_t)}return _t.onprogress=function(zr){var fi=e.event;e.event=zr;try{st.progress.call(et,_t)}finally{e.event=fi}},et.header=function(zr,fi){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(fi==null?delete jt[zr]:jt[zr]=fi+"",et)},et.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",et):se},et.responseType=function(zr){return arguments.length?(hr=zr,et):hr},et.response=function(zr){return Pe=zr,et},["get","post"].forEach(function(zr){et[zr]=function(){return et.send.apply(et,[zr].concat(r(arguments)))}}),et.send=function(zr,fi,$r){if(arguments.length===2&&typeof fi=="function"&&($r=fi,fi=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Bi in jt)_t.setRequestHeader(Bi,jt[Bi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),hr!=null&&(_t.responseType=hr),$r!=null&&et.on("error",$r).on("load",function(fn){$r(null,fn)}),st.beforesend.call(et,_t),_t.send(fi==null?null:fi),et},et.abort=function(){return _t.abort(),et},e.rebind(et,st,"on"),Ze==null?et:et.get(en(Ze))}function en(Z){return Z.length===1?function(se,Pe){Z(se==null?Pe:null)}:Z}function ii(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var Pe=new RegExp('["'+Z+` +"use strict";var Plotly=(()=>{var nrt=Object.create;var RM=Object.defineProperty,art=Object.defineProperties,ort=Object.getOwnPropertyDescriptor,srt=Object.getOwnPropertyDescriptors,lrt=Object.getOwnPropertyNames,mL=Object.getOwnPropertySymbols,urt=Object.getPrototypeOf,RO=Object.prototype.hasOwnProperty,Eee=Object.prototype.propertyIsEnumerable;var Mee=(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={}))RO.call(t,r)&&Mee(e,r,t[r]);if(mL)for(var r of mL(t))Eee.call(t,r)&&Mee(e,r,t[r]);return e},W1=(e,t)=>art(e,srt(t));var kee=(e,t)=>{var r={};for(var n in e)RO.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&&Eee.call(e,n)&&(r[n]=e[n]);return r};var tc=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cee=(e,t)=>{for(var r in t)RM(e,r,{get:t[r],enumerable:!0})},Lee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lrt(t))!RO.call(e,i)&&i!==r&&RM(e,i,{get:()=>t[i],enumerable:!(n=ort(t,i))||n.enumerable});return e};var frt=(e,t,r)=>(r=e!=null?nrt(urt(e)):{},Lee(t||!e||!e.__esModule?RM(r,"default",{value:e,enumerable:!0}):r,e)),vb=e=>Lee(RM({},"__esModule",{value:!0}),e);var yL=Te(Pee=>{"use strict";Pee.version="3.4.0"});var Iee=Te((zee,gL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof gL!="undefined"&&gL.exports&&(gL.exports=r[t])})("Promise",typeof window!="undefined"?window:zee,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,T,L){return Object.defineProperty(C,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var C,E,T;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,M){T=new L(k,M),E?E.next=T:C=T,E=T,T=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(T){c.call(new d(E),T)}}}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,T){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(se){for(var Pe=se.length,Ze=new Array(Pe);Pe--;)Ze[Pe]=se[Pe];return Ze}}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(se,Pe){s.call(this,se,Pe+"")},o.setAttributeNS=function(se,Pe,Ze){u.call(this,se,Pe,Ze+"")},l.setProperty=function(se,Pe,Ze){f.call(this,se,Pe+"",Ze)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var Pe=-1,Ze=Z.length,et,st;if(arguments.length===1){for(;++Pe=st){et=st;break}for(;++Pest&&(et=st)}else{for(;++Pe=st){et=st;break}for(;++Pest&&(et=st)}return et},e.max=function(Z,se){var Pe=-1,Ze=Z.length,et,st;if(arguments.length===1){for(;++Pe=st){et=st;break}for(;++Peet&&(et=st)}else{for(;++Pe=st){et=st;break}for(;++Peet&&(et=st)}return et},e.extent=function(Z,se){var Pe=-1,Ze=Z.length,et,st,jt;if(arguments.length===1){for(;++Pe=st){et=jt=st;break}for(;++Pest&&(et=st),jt=st){et=jt=st;break}for(;++Pest&&(et=st),jt1)return jt/(hr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,Pe,Ze,et){for(arguments.length<3&&(Ze=0),arguments.length<4&&(et=se.length);Ze>>1;Z(se[st],Pe)<0?Ze=st+1:et=st}return Ze},right:function(se,Pe,Ze,et){for(arguments.length<3&&(Ze=0),arguments.length<4&&(et=se.length);Ze>>1;Z(se[st],Pe)>0?et=st:Ze=st+1}return Ze}}}var _=p(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(Z){return p(Z.length===1?function(se,Pe){return c(Z(se),Pe)}:Z)},e.shuffle=function(Z,se,Pe){(Ze=arguments.length)<3&&(Pe=Z.length,Ze<2&&(se=0));for(var Ze=Pe-se,et,st;Ze;)st=Math.random()*Ze--|0,et=Z[Ze+se],Z[Ze+se]=Z[st+se],Z[st+se]=et;return Z},e.permute=function(Z,se){for(var Pe=se.length,Ze=new Array(Pe);Pe--;)Ze[Pe]=Z[se[Pe]];return Ze},e.pairs=function(Z){for(var se=0,Pe=Z.length-1,Ze,et=Z[0],st=new Array(Pe<0?0:Pe);se=0;)for(jt=Z[se],Pe=jt.length;--Pe>=0;)st[--et]=jt[Pe];return st};var v=Math.abs;e.range=function(Z,se,Pe){if(arguments.length<3&&(Pe=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/Pe===1/0)throw new Error("infinite range");var Ze=[],et=C(v(Pe)),st=-1,jt;if(Z*=et,se*=et,Pe*=et,Pe<0)for(;(jt=Z+Pe*++st)>se;)Ze.push(jt/et);else for(;(jt=Z+Pe*++st)=se.length)return et?et.call(Z,hr):Ze?hr.sort(Ze):hr;for(var zr=-1,fi=hr.length,$r=se[Cr++],Bi,fn,mi,zi=new T,ji;++zr=se.length)return _t;var Cr=[],zr=Pe[hr++];return _t.forEach(function(fi,$r){Cr.push({key:fi,values:jt($r,hr)})}),zr?Cr.sort(function(fi,$r){return zr(fi.key,$r.key)}):Cr}return Z.map=function(_t,hr){return st(hr,_t,0)},Z.entries=function(_t){return jt(st(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return Pe[se.length-1]=_t,Z},Z.sortValues=function(_t){return Ze=_t,Z},Z.rollup=function(_t){return et=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var Pe=0,Ze=Z.length;Pe=0&&(Ze=Z.slice(Pe+1),Z=Z.slice(0,Pe)),Z)return arguments.length<2?this[Z].on(Ze):this[Z].on(Ze,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Ze,null);return this}};function ae(Z){var se=[],Pe=new T;function Ze(){for(var et=se,st=-1,jt=et.length,_t;++st=0&&(Pe=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),je.hasOwnProperty(Pe)?{space:je[Pe],local:Z}:Z}},De.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var Pe=this.node();return Z=e.ns.qualify(Z),Z.local?Pe.getAttributeNS(Z.space,Z.local):Pe.getAttribute(Z)}for(se in Z)this.each(Qe(se,Z[se]));return this}return this.each(Qe(Z,se))};function Qe(Z,se){Z=e.ns.qualify(Z);function Pe(){this.removeAttribute(Z)}function Ze(){this.removeAttributeNS(Z.space,Z.local)}function et(){this.setAttribute(Z,se)}function st(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var hr=se.apply(this,arguments);hr==null?this.removeAttribute(Z):this.setAttribute(Z,hr)}function _t(){var hr=se.apply(this,arguments);hr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,hr)}return se==null?Z.local?Ze:Pe:typeof se=="function"?Z.local?_t:jt:Z.local?st:et}function gt(Z){return Z.trim().replace(/\s+/g," ")}De.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var Pe=this.node(),Ze=(Z=at(Z)).length,et=-1;if(se=Pe.classList){for(;++et=0;)(st=Pe[Ze])&&(et&&et!==st.nextSibling&&et.parentNode.insertBefore(st,et),et=st);return this},De.sort=function(Z){Z=ot.apply(this,arguments);for(var se=-1,Pe=this.length;++se=se&&(se=et+1);!(hr=jt[se])&&++se<_t;);return hr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Se(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},De.on=function(Z,se,Pe){var Ze=arguments.length;if(Ze<3){if(typeof Z!="string"){Ze<2&&(se=!1);for(Pe in Z)this.each(nt(Pe,Z[Pe],se));return this}if(Ze<2)return(Ze=this.node()["__on"+Z])&&Ze._;Pe=!1}return this.each(nt(Z,se,Pe))};function nt(Z,se,Pe){var Ze="__on"+Z,et=Z.indexOf("."),st=It;et>0&&(Z=Z.slice(0,et));var jt=tt.get(Z);jt&&(Z=jt,st=Yt);function _t(){var zr=this[Ze];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Ze])}function hr(){var zr=st(se,r(arguments));_t.call(this),this.addEventListener(Z,this[Ze]=zr,zr.$=Pe),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),fi;for(var $r in this)if(fi=$r.match(zr)){var Bi=this[$r];this.removeEventListener(fi[1],Bi,Bi.$),delete this[$r]}}return et?se?hr:_t:se?H:Cr}var tt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&tt.forEach(function(Z){"on"+Z in n&&tt.remove(Z)});function It(Z,se){return function(Pe){var Ze=e.event;e.event=Pe,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=Ze}}}function Yt(Z,se){var Pe=It(Z,se);return function(Ze){var et=this,st=Ze.relatedTarget;(!st||st!==et&&!(st.compareDocumentPosition(et)&8))&&Pe.call(et,Ze)}}var cr,_r=0;function yr(Z){var se=".dragsuppress-"+ ++_r,Pe="click"+se,Ze=e.select(a(Z)).on("touchmove"+se,ge).on("dragstart"+se,ge).on("selectstart"+se,ge);if(cr==null&&(cr="onselectstart"in Z?!1:W(Z.style,"userSelect")),cr){var et=i(Z).style,st=et[cr];et[cr]="none"}return function(jt){if(Ze.on(se,null),cr&&(et[cr]=st),jt){var _t=function(){Ze.on(Pe,null)};Ze.on(Pe,function(){ge(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Re(Z,ze())};var Ut=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var Pe=Z.ownerSVGElement||Z;if(Pe.createSVGPoint){var Ze=Pe.createSVGPoint();if(Ut<0){var et=a(Z);if(et.scrollX||et.scrollY){Pe=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var st=Pe[0][0].getScreenCTM();Ut=!(st.f||st.e),Pe.remove()}}return Ut?(Ze.x=se.pageX,Ze.y=se.pageY):(Ze.x=se.clientX,Ze.y=se.clientY),Ze=Ze.matrixTransform(Z.getScreenCTM().inverse()),[Ze.x,Ze.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,Pe){if(arguments.length<3&&(Pe=se,se=ze().changedTouches),se){for(var Ze=0,et=se.length,st;Ze0?1:Z<0?-1:0}function zt(Z,se,Pe){return(se[0]-Z[0])*(Pe[1]-Z[1])-(se[1]-Z[1])*(Pe[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?Fe:Math.acos(Z)}function Gr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Br(Z){return((Z=Math.exp(Z))-1/Z)/2}function Er(Z){return((Z=Math.exp(Z))+1/Z)/2}function Rr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function pi(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,ni=2,$i=4;e.interpolateZoom=function(Z,se){var Pe=Z[0],Ze=Z[1],et=Z[2],st=se[0],jt=se[1],_t=se[2],hr=st-Pe,Cr=jt-Ze,zr=hr*hr+Cr*Cr,fi,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(mi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(mi.invert)),pn&&pn.domain(ji.range().map(function(ds){return(ds-Z.y)/Z.k}).map(ji.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),Pe=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Mf).on(zr,pf),lf=wi(e.mouse(ds)),hf=yr(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=fn.of(ds,arguments),Au={},Tu=0,lf,hf=".zoom-"+e.event.changedTouches[0].identifier,Mf="touchmove"+hf,pf="touchend"+hf,fc=[],Be=e.select(ds),Nt=yr(ds);Qr(),Pl(Wl),Be.on(hr,null).on($r,Qr);function ar(){var vi=e.touches(ds);return lf=Z.k,vi.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=wi(on))}),vi}function Qr(){var vi=e.event.target;e.select(vi).on(Mf,yi).on(pf,ci),fc.push(vi);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],qi=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=qi*qi+Wr*Wr}}function yi(){var vi=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=vi.length;Ls1?1:se,Pe=Pe<0?0:Pe>1?1:Pe,et=Pe<=.5?Pe*(1+se):Pe+se-Pe*se,Ze=2*Pe-et;function st(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?Ze+(et-Ze)*_t/60:_t<180?et:_t<240?Ze+(et-Ze)*(240-_t)/60:Ze}function jt(_t){return Math.round(st(_t)*255)}return new Fi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,Pe){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+Pe)):arguments.length<2?Z instanceof Wt?new Wt(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 Wt(Z,se,Pe)}var xr=Wt.prototype=new Ni;xr.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Or*(arguments.length?Z:1)))},xr.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Or*(arguments.length?Z:1)))},xr.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,Pe){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Nr(Pe,Math.cos(Z*=pe)*se,Math.sin(Z)*se)}e.lab=Nr;function Nr(Z,se,Pe){return this instanceof Nr?(this.l=+Z,this.a=+se,void(this.b=+Pe)):arguments.length<2?Z instanceof Nr?new Nr(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Fi(Z)).r,Z.g,Z.b):new Nr(Z,se,Pe)}var Or=18,Hr=.95047,jr=1,gi=1.08883,ki=Nr.prototype=new Ni;ki.brighter=function(Z){return new Nr(Math.min(100,this.l+Or*(arguments.length?Z:1)),this.a,this.b)},ki.darker=function(Z){return new Nr(Math.max(0,this.l-Or*(arguments.length?Z:1)),this.a,this.b)},ki.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,Pe){var Ze=(Z+16)/116,et=Ze+se/500,st=Ze-Pe/200;return et=tn(et)*Hr,Ze=tn(Ze)*jr,st=tn(st)*gi,new Fi(oi(3.2404542*et-1.5371385*Ze-.4985314*st),oi(-.969266*et+1.8760108*Ze+.041556*st),oi(.0556434*et-.2040259*Ze+1.0572252*st))}function ti(Z,se,Pe){return Z>0?new Wt(Math.atan2(Pe,se)*dt,Math.sqrt(se*se+Pe*Pe),Z):new Wt(NaN,NaN,Z)}function tn(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,se,Pe){return this instanceof Fi?(this.r=~~Z,this.g=~~se,void(this.b=~~Pe)):arguments.length<2?Z instanceof Fi?new Fi(Z.r,Z.g,Z.b):xn(""+Z,Fi,Gt):new Fi(Z,se,Pe)}function an(Z){return new Fi(Z>>16,Z>>8&255,Z&255)}function nn(Z){return an(Z)+""}var Ri=Fi.prototype=new Ni;Ri.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,Pe=this.g,Ze=this.b,et=30;return!se&&!Pe&&!Ze?new Fi(et,et,et):(se&&se>4,Ze=Ze>>4|Ze,et=hr&240,et=et>>4|et,st=hr&15,st=st<<4|st):Z.length===7&&(Ze=(hr&16711680)>>16,et=(hr&65280)>>8,st=hr&255)),se(Ze,et,st))}function bi(Z,se,Pe){var Ze=Math.min(Z/=255,se/=255,Pe/=255),et=Math.max(Z,se,Pe),st=et-Ze,jt,_t,hr=(et+Ze)/2;return st?(_t=hr<.5?st/(et+Ze):st/(2-et-Ze),Z==et?jt=(se-Pe)/st+(se0&&hr<1?0:jt),new Rt(jt,_t,hr)}function Xr(Z,se,Pe){Z=ct(Z),se=ct(se),Pe=ct(Pe);var Ze=Yr((.4124564*Z+.3575761*se+.1804375*Pe)/Hr),et=Yr((.2126729*Z+.7151522*se+.072175*Pe)/jr),st=Yr((.0193339*Z+.119192*se+.9503041*Pe)/gi);return Nr(116*et-16,500*(Ze-et),200*(et-st))}function ct(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=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});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,Pe,Ze){return arguments.length===2&&typeof Pe=="function"&&(Ze=Pe,Pe=null),Ai(se,Pe,Z,Ze)}}function Ai(Z,se,Pe,Ze){var et={},st=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,hr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,fi;if(!zr&&ii(_t)||zr>=200&&zr<300||zr===304){try{fi=Pe.call(et,_t)}catch($r){st.error.call(et,$r);return}st.load.call(et,fi)}else st.error.call(et,_t)}return _t.onprogress=function(zr){var fi=e.event;e.event=zr;try{st.progress.call(et,_t)}finally{e.event=fi}},et.header=function(zr,fi){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(fi==null?delete jt[zr]:jt[zr]=fi+"",et)},et.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",et):se},et.responseType=function(zr){return arguments.length?(hr=zr,et):hr},et.response=function(zr){return Pe=zr,et},["get","post"].forEach(function(zr){et[zr]=function(){return et.send.apply(et,[zr].concat(r(arguments)))}}),et.send=function(zr,fi,$r){if(arguments.length===2&&typeof fi=="function"&&($r=fi,fi=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Bi in jt)_t.setRequestHeader(Bi,jt[Bi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),hr!=null&&(_t.responseType=hr),$r!=null&&et.on("error",$r).on("load",function(fn){$r(null,fn)}),st.beforesend.call(et,_t),_t.send(fi==null?null:fi),et},et.abort=function(){return _t.abort(),et},e.rebind(et,st,"on"),Ze==null?et:et.get(en(Ze))}function en(Z){return Z.length===1?function(se,Pe){Z(se==null?Pe:null)}:Z}function ii(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var Pe=new RegExp('["'+Z+` ]`),Ze=Z.charCodeAt(0);function et(Cr,zr,fi){arguments.length<3&&(fi=zr,zr=null);var $r=Ai(Cr,se,zr==null?st:jt(zr),fi);return $r.row=function(Bi){return arguments.length?$r.response((zr=Bi)==null?st:jt(Bi)):zr},$r}function st(Cr){return et.parse(Cr.responseText)}function jt(Cr){return function(zr){return et.parse(zr.responseText,Cr)}}et.parse=function(Cr,zr){var fi;return et.parseRows(Cr,function($r,Bi){if(fi)return fi($r,Bi-1);var fn=function(mi){for(var zi={},ji=$r.length,pn=0;pn=fn)return $r;if(pn)return pn=!1,fi;var xo=mi;if(Cr.charCodeAt(xo)===34){for(var no=xo;no++24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Xi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Xi,Pe=1/0;se;)se.c?(se.t=0;--_t)mi.push(et[Cr[fi[_t]][2]]);for(_t=+Bi;_t<$r.length-fn;++_t)mi.push(et[Cr[$r[_t]][2]]);return mi}return Ze.x=function(et){return arguments.length?(se=et,Ze):se},Ze.y=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze};function Yo(Z){for(var se=Z.length,Pe=[0,1],Ze=2,et=2;et1&&zt(Z[Pe[Ze-2]],Z[Pe[Ze-1]],Z[et])<=0;)--Ze;Pe[Ze++]=et}return Pe.slice(0,Ze)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,Pe,Ze=this[se-1],et=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,Pe),jt>Oe){if(!_t.R){Ze=_t;break}_t=_t.R}else{st>-Oe?(Ze=_t.P,et=_t):jt>-Oe?(Ze=_t,et=_t.N):Ze=et=_t;break}var hr=Po(Z);if(fo.insert(Ze,hr),!(!Ze&&!et)){if(Ze===et){Sa(Ze),et=Po(Ze.site),fo.insert(hr,et),hr.edge=et.edge=vo(Ze.site,hr.site),Hi(Ze),Hi(et);return}if(!et){hr.edge=vo(Ze.site,hr.site);return}Sa(Ze),Sa(et);var Cr=Ze.site,zr=Cr.x,fi=Cr.y,$r=Z.x-zr,Bi=Z.y-fi,fn=et.site,mi=fn.x-zr,zi=fn.y-fi,ji=2*($r*zi-Bi*mi),pn=$r*$r+Bi*Bi,sn=mi*mi+zi*zi,wi={x:(zi*pn-Bi*sn)/ji+zr,y:($r*sn-mi*pn)/ji+fi};ps(et.edge,Cr,fn,wi),hr.edge=vo(Cr,Z,null,wi),et.edge=vo(Z,fn,null,wi),Hi(Ze),Hi(et)}}function Ha(Z,se){var Pe=Z.site,Ze=Pe.x,et=Pe.y,st=et-se;if(!st)return Ze;var jt=Z.P;if(!jt)return-1/0;Pe=jt.site;var _t=Pe.x,hr=Pe.y,Cr=hr-se;if(!Cr)return _t;var zr=_t-Ze,fi=1/st-1/Cr,$r=zr/Cr;return fi?(-$r+Math.sqrt($r*$r-2*fi*(zr*zr/(-2*Cr)-hr+Cr/2+et-st/2)))/fi+Ze:(Ze+_t)/2}function Sn(Z,se){var Pe=Z.N;if(Pe)return Ha(Pe,se);var Ze=Z.site;return Ze.y===se?Ze.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,Pe;se--;)Pe=Z[se].edge,(!Pe.b||!Pe.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],Pe=Z[1][0],Ze=Z[0][1],et=Z[1][1],st,jt,_t,hr,Cr=$a,zr=Cr.length,fi,$r,Bi,fn,mi,zi;zr--;)if(fi=Cr[zr],!(!fi||!fi.prepare()))for(Bi=fi.edges,fn=Bi.length,$r=0;$rOe||v(hr-jt)>Oe)&&(Bi.splice($r,0,new co(As(fi.site,zi,v(_t-se)Oe?{x:se,y:v(st-se)Oe?{x:v(jt-et)Oe?{x:Pe,y:v(st-Pe)Oe?{x:v(jt-Ze)=-Ie)){var $r=hr*hr+Cr*Cr,Bi=zr*zr+zi*zi,fn=(zi*$r-Cr*Bi)/fi,mi=(hr*Bi-zr*$r)/fi,zi=mi+_t,ji=ws.pop()||new Qo;ji.arc=Z,ji.site=et,ji.x=fn+jt,ji.y=zi+Math.sqrt(fn*fn+mi*mi),ji.cy=zi,Z.circle=ji;for(var pn=null,sn=wa._;sn;)if(ji.y0)){if(mi/=Bi,Bi<0){if(mi0){if(mi>$r)return;mi>fi&&(fi=mi)}if(mi=Pe-_t,!(!Bi&&mi<0)){if(mi/=Bi,Bi<0){if(mi>$r)return;mi>fi&&(fi=mi)}else if(Bi>0){if(mi0)){if(mi/=fn,fn<0){if(mi0){if(mi>$r)return;mi>fi&&(fi=mi)}if(mi=Ze-hr,!(!fn&&mi<0)){if(mi/=fn,fn<0){if(mi>$r)return;mi>fi&&(fi=mi)}else if(fn>0){if(mi0&&(et.a={x:_t+fi*Bi,y:hr+fi*fn}),$r<1&&(et.b={x:_t+$r*Bi,y:hr+$r*fn}),et}}}}}}function vn(Z){for(var se=ls,Pe=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Ze=se.length,et;Ze--;)et=se[Ze],(!da(et,Z)||!Pe(et)||v(et.a.x-et.b.x)=st)return;if(zr>$r){if(!Ze)Ze={x:fn,y:jt};else if(Ze.y>=_t)return;Pe={x:fn,y:_t}}else{if(!Ze)Ze={x:fn,y:_t};else if(Ze.y1)if(zr>$r){if(!Ze)Ze={x:(jt-ji)/zi,y:jt};else if(Ze.y>=_t)return;Pe={x:(_t-ji)/zi,y:_t}}else{if(!Ze)Ze={x:(_t-ji)/zi,y:_t};else if(Ze.y=st)return;Pe={x:st,y:zi*st+ji}}else{if(!Ze)Ze={x:st,y:zi*st+ji};else if(Ze.x=zr&&ji.x<=$r&&ji.y>=fi&&ji.y<=Bi?[[zr,Bi],[$r,Bi],[$r,fi],[zr,fi]]:[];pn.point=hr[mi]}),Cr}function _t(hr){return hr.map(function(Cr,zr){return{x:Math.round(Ze(Cr,zr)/Oe)*Oe,y:Math.round(et(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(hr){return qs(_t(hr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:hr[Cr.l.i],target:hr[Cr.r.i]}})},jt.triangles=function(hr){var Cr=[];return qs(_t(hr)).cells.forEach(function(zr,fi){for(var $r=zr.site,Bi=zr.edges.sort(Ko),fn=-1,mi=Bi.length,zi,ji,pn=Bi[mi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>wi&&(wi=zr.y),Bi.push(zr.x),fn.push(zr.y);else for(mi=0;misn&&(sn=xo),no>wi&&(wi=no),Bi.push(xo),fn.push(no)}var Xo=sn-ji,js=wi-pn;Xo>js?wi=pn+Xo:sn=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,+fi(Il,++mi),+$r(Il,mi),ji,pn,sn,wi)},pu.visit=function(Il){Vn(Il,pu,ji,pn,sn,wi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],ji,pn,sn,wi)},mi=-1,se==null){for(;++mist||$r>jt||Bi=xo,js=Pe>=no,El=js<<1|Xo,Pl=El+4;ElPe&&(st=se.slice(Pe,st),_t[jt]?_t[jt]+=st:_t[++jt]=st),(Ze=Ze[0])===(et=et[0])?_t[jt]?_t[jt]+=et:_t[++jt]=et:(_t[++jt]=null,hr.push({i:jt,x:un(Ze,et)})),Pe=qn.lastIndex;return Pe=0&&!(Ze=e.interpolators[Pe](Z,se)););return Ze}e.interpolators=[function(Z,se){var Pe=typeof se;return(Pe==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Ni?Ra:Array.isArray(se)?Ja:Pe==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var Pe=[],Ze=[],et=Z.length,st=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,Ze=se>=0?Z.slice(se+1):"in";return Pe=eo.get(Pe)||lo,Ze=sa.get(Ze)||G,es(Ze(Pe.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function rn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}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 se=Z*Z,Pe=se*Z;return 4*(Z<.5?Pe:3*(Z-se)+Pe-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var Pe;return arguments.length<2&&(se=.45),arguments.length?Pe=se/ft*Math.asin(1/Z):(Z=1,Pe=se/4),function(Ze){return 1+Z*Math.pow(2,-10*Ze)*Math.sin((Ze-Pe)*ft/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-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,se){Z=e.hcl(Z),se=e.hcl(se);var Pe=Z.h,Ze=Z.c,et=Z.l,st=se.h-Pe,jt=se.c-Ze,_t=se.l-et;return isNaN(jt)&&(jt=0,Ze=isNaN(Ze)?se.c:Ze),isNaN(st)?(st=0,Pe=isNaN(Pe)?se.h:Pe):st>180?st-=360:st<-180&&(st+=360),function(hr){return Lr(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var Pe=Z.h,Ze=Z.s,et=Z.l,st=se.h-Pe,jt=se.s-Ze,_t=se.l-et;return isNaN(jt)&&(jt=0,Ze=isNaN(Ze)?se.s:Ze),isNaN(st)?(st=0,Pe=isNaN(Pe)?se.h:Pe):st>180?st-=360:st<-180&&(st+=360),function(hr){return Gt(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var Pe=Z.l,Ze=Z.a,et=Z.b,st=se.l-Pe,jt=se.a-Ze,_t=se.b-et;return function(hr){return Vi(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(Pe){return Math.round(Z+se*Pe)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Pe){if(Pe!=null){se.setAttribute("transform",Pe);var Ze=se.transform.baseVal.consolidate()}return new ts(Ze?Ze.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],Pe=[Z.c,Z.d],Ze=qa(se),et=Wo(se,Pe),st=qa(ln(Pe,se,-et))||0;se[0]*Pe[1]180?se+=360:se-Z>180&&(Z+=360),Ze.push({i:Pe.push(ko(Pe)+"rotate(",null,")")-2,x:un(Z,se)})):se&&Pe.push(ko(Pe)+"rotate("+se+")")}function ea(Z,se,Pe,Ze){Z!==se?Ze.push({i:Pe.push(ko(Pe)+"skewX(",null,")")-2,x:un(Z,se)}):se&&Pe.push(ko(Pe)+"skewX("+se+")")}function rs(Z,se,Pe,Ze){if(Z[0]!==se[0]||Z[1]!==se[1]){var et=Pe.push(ko(Pe)+"scale(",null,",",null,")");Ze.push({i:et-4,x:un(Z[0],se[0])},{i:et-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Pe.push(ko(Pe)+"scale("+se+")")}function $s(Z,se){var Pe=[],Ze=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,Pe,Ze),za(Z.rotate,se.rotate,Pe,Ze),ea(Z.skew,se.skew,Pe,Ze),rs(Z.scale,se.scale,Pe,Ze),Z=se=null,function(et){for(var st=-1,jt=Ze.length,_t;++st0?st=wi:(Pe.c=null,Pe.t=NaN,Pe=null,se.end({type:"end",alpha:st=0})):wi>0&&(se.start({type:"start",alpha:st=wi}),Pe=ma(Z.tick)),Z):st},Z.start=function(){var wi,xo=Bi.length,no=fn.length,Xo=Ze[0],js=Ze[1],El,Pl;for(wi=0;wi=0;)st.push(zr=Cr[hr]),zr.parent=_t,zr.depth=_t.depth+1;Pe&&(_t.value=0),_t.children=Cr}else Pe&&(_t.value=+Pe.call(Ze,_t,_t.depth)||0),delete _t.children;return Oo(et,function(fi){var $r,Bi;Z&&($r=fi.children)&&$r.sort(Z),Pe&&(Bi=fi.parent)&&(Bi.value+=fi.value)}),jt}return Ze.sort=function(et){return arguments.length?(Z=et,Ze):Z},Ze.children=function(et){return arguments.length?(se=et,Ze):se},Ze.value=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze.revalue=function(et){return Pe&&(Jn(et,function(st){st.children&&(st.value=0)}),Oo(et,function(st){var jt;st.children||(st.value=+Pe.call(Ze,st,st.depth)||0),(jt=st.parent)&&(jt.value+=st.value)})),et},Ze};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var Pe=[Z];(Z=Pe.pop())!=null;)if(se(Z),(et=Z.children)&&(Ze=et.length))for(var Ze,et;--Ze>=0;)Pe.push(et[Ze])}function Oo(Z,se){for(var Pe=[Z],Ze=[];(Z=Pe.pop())!=null;)if(Ze.push(Z),(jt=Z.children)&&(st=jt.length))for(var et=-1,st,jt;++etet&&(et=_t),Ze.push(_t)}for(jt=0;jtZe&&(Pe=se,Ze=et);return Pe}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,Pe=vs,Ze=Io;function et(st,$r){for(var _t=[],hr=st.map(se,this),Cr=Pe.call(this,hr,$r),zr=Ze.call(this,Cr,hr,$r),fi,$r=-1,Bi=hr.length,fn=zr.length-1,mi=Z?1:1/Bi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(fi=_t[e.bisect(zr,zi,1,fn)-1],fi.y+=mi,fi.push(st[$r]));return _t}return et.value=function(st){return arguments.length?(se=st,et):se},et.range=function(st){return arguments.length?(Pe=gr(st),et):Pe},et.bins=function(st){return arguments.length?(Ze=typeof st=="number"?function(jt){return Da(jt,st)}:gr(st),et):Ze},et.frequency=function(st){return arguments.length?(Z=!!st,et):Z},et};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var Pe=-1,Ze=+Z[0],et=(Z[1]-Ze)/se,st=[];++Pe<=se;)st[Pe]=et*Pe+Ze;return st}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,Pe=[1,1],Ze;function et(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr=Pe[0],zr=Pe[1],fi=Ze==null?Math.sqrt:typeof Ze=="function"?Ze:function(){return Ze};if(hr.x=hr.y=0,Oo(hr,function(Bi){Bi.r=+fi(Bi.value)}),Oo(hr,Ro),se){var $r=se*(Ze?1:Math.max(2*hr.r/Cr,2*hr.r/zr))/2;Oo(hr,function(Bi){Bi.r+=$r}),Oo(hr,Ro),Oo(hr,function(Bi){Bi.r-=$r})}return hl(hr,Cr/2,zr/2,Ze?1:1/Math.max(2*hr.r/Cr,2*hr.r/zr)),_t}return et.size=function(st){return arguments.length?(Pe=st,et):Pe},et.radius=function(st){return arguments.length?(Ze=st==null||typeof st=="function"?st:+st,et):Ze},et.padding=function(st){return arguments.length?(se=+st,et):se},Ea(et,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var Pe=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=Pe,Pe._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var Pe=se.x-Z.x,Ze=se.y-Z.y,et=Z.r+se.r;return .999*et*et>Pe*Pe+Ze*Ze}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,Pe=1/0,Ze=-1/0,et=1/0,st=-1/0,jt,_t,hr,Cr,zr,fi,$r;function Bi(wi){Pe=Math.min(wi.x-wi.r,Pe),Ze=Math.max(wi.x+wi.r,Ze),et=Math.min(wi.y-wi.r,et),st=Math.max(wi.y+wi.r,st)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Bi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Bi(_t),$r>2))for(hr=se[2],Fa(jt,_t,hr),Bi(hr),cl(jt,hr),jt._pack_prev=hr,cl(hr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,hr=se[Cr]);var fn=0,mi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,mi++)if(Hs(zr,hr)){fn=1;break}if(fn==1)for(fi=jt._pack_prev;fi!==zr._pack_prev&&!Hs(fi,hr);fi=fi._pack_prev,zi++);fn?(mizi.x&&(zi=xo),xo.depth>ji.depth&&(ji=xo)});var pn=se(mi,zi)/2-mi.x,sn=Pe[0]/(zi.x+se(zi,mi)/2+pn),wi=Pe[1]/(ji.depth||1);Jn(Bi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*wi})}return $r}function st(zr){for(var fi={A:null,children:[zr]},$r=[fi],Bi;(Bi=$r.pop())!=null;)for(var fn=Bi.children,mi,zi=0,ji=fn.length;zi0&&(Is(Tt(mi,zr,$r),zr,xo),ji+=xo,pn+=xo),sn+=mi.m,ji+=Bi.m,wi+=zi.m,pn+=fn.m;mi&&!Rs(fn)&&(fn.t=mi,fn.m+=sn-pn),Bi&&!jo(zi)&&(zi.t=Bi,zi.m+=ji-wi,$r=zr)}return $r}function Cr(zr){zr.x*=Pe[0],zr.y=zr.depth*Pe[1]}return et.separation=function(zr){return arguments.length?(se=zr,et):se},et.size=function(zr){return arguments.length?(Ze=(Pe=zr)==null?Cr:null,et):Ze?null:Pe},et.nodeSize=function(zr){return arguments.length?(Ze=(Pe=zr)==null?null:Cr,et):Ze?Pe:null},Ea(et,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,Pe;return(Pe=se.length)?se[Pe-1]:Z.t}function Is(Z,se,Pe){var Ze=Pe/(se.i-Z.i);se.c-=Ze,se.s+=Pe,Z.c+=Ze,se.z+=Pe,se.m+=Pe}function Bs(Z){for(var se=0,Pe=0,Ze=Z.children,et=Ze.length,st;--et>=0;)st=Ze[et],st.z+=se,st.m+=se,se+=st.s+(Pe+=st.c)}function Tt(Z,se,Pe){return Z.a.parent===se.parent?Z.a:Pe}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,Pe=[1,1],Ze=!1;function et(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr,zr=0;Oo(hr,function(mi){var zi=mi.children;zi&&zi.length?(mi.x=wr(zi),mi.y=Vt(zi)):(mi.x=Cr?zr+=se(mi,Cr):0,mi.y=0,Cr=mi)});var fi=mr(hr),$r=Fr(hr),Bi=fi.x-se(fi,$r)/2,fn=$r.x+se($r,fi)/2;return Oo(hr,Ze?function(mi){mi.x=(mi.x-hr.x)*Pe[0],mi.y=(hr.y-mi.y)*Pe[1]}:function(mi){mi.x=(mi.x-Bi)/(fn-Bi)*Pe[0],mi.y=(1-(hr.y?mi.y/hr.y:1))*Pe[1]}),_t}return et.separation=function(st){return arguments.length?(se=st,et):se},et.size=function(st){return arguments.length?(Ze=(Pe=st)==null,et):Ze?null:Pe},et.nodeSize=function(st){return arguments.length?(Ze=(Pe=st)!=null,et):Ze?Pe:null},Ea(et,Z)};function Vt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,Pe){return se+Pe.x},0)/Z.length}function mr(Z){var se=Z.children;return se&&se.length?mr(se[0]):Z}function Fr(Z){var se=Z.children,Pe;return se&&(Pe=se.length)?Fr(se[Pe-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,Pe=[1,1],Ze=null,et=_i,st=!1,jt,_t="squarify",hr=.5*(1+Math.sqrt(5));function Cr(mi,zi){for(var ji=-1,pn=mi.length,sn,wi;++ji0;)pn.push(wi=sn[js-1]),pn.area+=wi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Bi(pn,Xo,ji,!1),Xo=Math.min(ji.dx,ji.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Bi(pn,Xo,ji,!0),pn.length=pn.area=0),zi.forEach(zr)}}function fi(mi){var zi=mi.children;if(zi&&zi.length){var ji=et(mi),pn=zi.slice(),sn,wi=[];for(Cr(pn,ji.dx*ji.dy/mi.value),wi.area=0;sn=pn.pop();)wi.push(sn),wi.area+=sn.area,sn.z!=null&&(Bi(wi,sn.z?ji.dx:ji.dy,ji,!pn.length),wi.length=wi.area=0);zi.forEach(fi)}}function $r(mi,zi){for(var ji=mi.area,pn,sn=0,wi=1/0,xo=-1,no=mi.length;++xosn&&(sn=pn));return ji*=ji,zi*=zi,ji?Math.max(zi*sn*hr/ji,ji/(zi*wi*hr)):1/0}function Bi(mi,zi,ji,pn){var sn=-1,wi=mi.length,xo=ji.x,no=ji.y,Xo=zi?se(mi.area/zi):0,js;if(zi==ji.dx){for((pn||Xo>ji.dy)&&(Xo=ji.dy);++snji.dx)&&(Xo=ji.dx);++sn1);return Z+se*Ze*Math.sqrt(-2*Math.log(st)/st)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,Pe=0;Pe2?Mi:Fn,Cr=Ze?Ds:us;return et=hr(Z,se,Cr,Pe),st=hr(se,Z,Cr,Eo),_t}function _t(hr){return et(hr)}return _t.invert=function(hr){return st(hr)},_t.domain=function(hr){return arguments.length?(Z=hr.map(Number),jt()):Z},_t.range=function(hr){return arguments.length?(se=hr,jt()):se},_t.rangeRound=function(hr){return _t.range(hr).interpolate(To)},_t.clamp=function(hr){return arguments.length?(Ze=hr,jt()):Ze},_t.interpolate=function(hr){return arguments.length?(Pe=hr,jt()):Pe},_t.ticks=function(hr){return pa(Z,hr)},_t.tickFormat=function(hr,Cr){return d3_scale_linearTickFormat(Z,hr,Cr)},_t.nice=function(hr){return ya(Z,hr),jt()},_t.copy=function(){return Gn(Z,se,Pe,Ze)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,di(ia(Z,se)[2])),Pi(Z,di(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var Pe=Ci(Z),Ze=Pe[1]-Pe[0],et=Math.pow(10,Math.floor(Math.log(Ze/se)/Math.LN10)),st=se/Ze*et;return st<=.15?et*=10:st<=.35?et*=5:st<=.75&&(et*=2),Pe[0]=Math.ceil(Pe[0]/et)*et,Pe[1]=Math.floor(Pe[1]/et)*et+et*.5,Pe[2]=et,Pe}function pa(Z,se){return e.range.apply(e,ia(Z,se))}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,se){var Pe=zn(se[2]);return Z in va?Math.abs(Pe-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):Pe-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,Pe,Ze){function et(_t){return(Pe?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function st(_t){return Pe?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z(et(_t))}return jt.invert=function(_t){return st(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(Pe=_t[0]>=0,Z.domain((Ze=_t.map(Number)).map(et)),jt):Ze},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(Ze.map(et)),jt):se},jt.nice=function(){var _t=Pi(Ze.map(et),Pe?Math:Ks);return Z.domain(_t),Ze=_t.map(st),jt},jt.ticks=function(){var _t=Ci(Ze),hr=[],Cr=_t[0],zr=_t[1],fi=Math.floor(et(Cr)),$r=Math.ceil(et(zr)),Bi=se%1?2:se;if(isFinite($r-fi)){if(Pe){for(;fi<$r;fi++)for(var fn=1;fn0;fn--)hr.push(st(fi)*fn);for(fi=0;hr[fi]zr;$r--);hr=hr.slice(fi,$r)}return hr},jt.copy=function(){return Cs(Z.copy(),se,Pe,Ze)},ta(jt,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,se,Pe){var Ze=xl(se),et=xl(1/se);function st(jt){return Z(Ze(jt))}return st.invert=function(jt){return et(Z.invert(jt))},st.domain=function(jt){return arguments.length?(Z.domain((Pe=jt.map(Number)).map(Ze)),st):Pe},st.ticks=function(jt){return pa(Pe,jt)},st.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(Pe,jt,_t)},st.nice=function(jt){return st.domain(ya(Pe,jt))},st.exponent=function(jt){return arguments.length?(Ze=xl(se=jt),et=xl(1/se),Z.domain(Pe.map(Ze)),st):se},st.copy=function(){return dl(Z.copy(),se,Pe)},ta(st,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Bl([],{t:"range",a:[[]]})};function Bl(Z,se){var Pe,Ze,et;function st(_t){return Ze[((Pe.get(_t)||(se.t==="range"?Pe.set(_t,Z.push(_t)):NaN))-1)%Ze.length]}function jt(_t,hr){return e.range(Z.length).map(function(Cr){return _t+hr*Cr})}return st.domain=function(_t){if(!arguments.length)return Z;Z=[],Pe=new T;for(var hr=-1,Cr=_t.length,zr;++hr0?Pe[st-1]:Z[0],st$r?0:1;if(zr=ye)return hr(zr,fn)+(Cr?hr(Cr,1-fn):"")+"Z";var mi,zi,ji,pn,sn=0,wi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(ji=Ze===ll?Math.sqrt(Cr*Cr+zr*zr):+Ze.apply(this,arguments),fn||(wi*=-1),zr&&(wi=Gr(ji/zr*Math.sin(pn))),Cr&&(sn=Gr(ji/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(fi+wi),no=zr*Math.sin(fi+wi),Xo=zr*Math.cos($r-wi),js=zr*Math.sin($r-wi);var Xu=Math.abs($r-fi-2*wi)<=Fe?0:1;if(wi&&Ll(xo,no,Xo,js)===fn^Xu){var Vu=(fi+$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-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(fi+sn),Il=Cr*Math.sin(fi+sn);var tf=Math.abs(fi-$r+2*sn)<=Fe?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^tf){var ds=(fi+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Bi>Oe&&(mi=Math.min(Math.abs(zr-Cr)/2,+Pe.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,Pe,Ze,et){var st=Z[0]-se[0],jt=Z[1]-se[1],_t=(et?Ze:-Ze)/Math.sqrt(st*st+jt*jt),hr=_t*jt,Cr=-_t*st,zr=Z[0]+hr,fi=Z[1]+Cr,$r=se[0]+hr,Bi=se[1]+Cr,fn=(zr+$r)/2,mi=(fi+Bi)/2,zi=$r-zr,ji=Bi-fi,pn=zi*zi+ji*ji,sn=Pe-Ze,wi=zr*Bi-$r*fi,xo=(ji<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-wi*wi)),no=(wi*ji-zi*xo)/pn,Xo=(-wi*zi-ji*xo)/pn,js=(wi*ji+zi*xo)/pn,El=(-wi*zi+ji*xo)/pn,Pl=no-fn,pu=Xo-mi,Il=js-fn,fu=El-mi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-hr,Xo-Cr],[no*Pe/sn,Xo*Pe/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,Pe=Ia,Ze=Os,et=Nl,st=et.key,jt=.7;function _t(hr){var Cr=[],zr=[],fi=-1,$r=hr.length,Bi,fn=gr(se),mi=gr(Pe);function zi(){Cr.push("M",et(Z(zr),jt))}for(;++fi<$r;)Ze.call(this,Bi=hr[fi],fi)?zr.push([+fn.call(this,Bi,fi),+mi.call(this,Bi,fi)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(hr){return arguments.length?(se=hr,_t):se},_t.y=function(hr){return arguments.length?(Pe=hr,_t):Pe},_t.defined=function(hr){return arguments.length?(Ze=hr,_t):Ze},_t.interpolate=function(hr){return arguments.length?(typeof hr=="function"?st=et=hr:st=(et=Gl.get(hr)||Nl).key,_t):st},_t.tension=function(hr){return arguments.length?(jt=hr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Nl,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Ft,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ue,"cardinal-open":ee,"cardinal-closed":ue,monotone:Ht});Gl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Nl(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,Pe=Z.length,Ze=Z[0],et=[Ze[0],",",Ze[1]];++se1&&et.push("H",Ze[0]),et.join("")}function q(Z){for(var se=0,Pe=Z.length,Ze=Z[0],et=[Ze[0],",",Ze[1]];++se1){_t=se[1],st=Z[hr],hr++,Ze+="C"+(et[0]+jt[0])+","+(et[1]+jt[1])+","+(st[0]-_t[0])+","+(st[1]-_t[1])+","+st[0]+","+st[1];for(var Cr=2;Cr9&&(st=Pe*3/Math.sqrt(st),jt[_t]=st*Ze,jt[_t+1]=st*et));for(_t=-1;++_t<=hr;)st=(Z[Math.min(hr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([st||0,jt[_t]*st||0]);return se}function Ht(Z){return Z.length<3?Nl(Z):Z[0]+rt(Z,pt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,Pe=-1,Ze=Z.length,et,st;++PeFe)+",1 "+fi}function Cr(zr,fi,$r,Bi){return"Q 0,0 "+Bi}return st.radius=function(zr){return arguments.length?(Pe=gr(zr),st):Pe},st.source=function(zr){return arguments.length?(Z=gr(zr),st):Z},st.target=function(zr){return arguments.length?(se=gr(zr),st):se},st.startAngle=function(zr){return arguments.length?(Ze=gr(zr),st):Ze},st.endAngle=function(zr){return arguments.length?(et=gr(zr),st):et},st};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Ir,Pe=li;function Ze(et,st){var jt=Z.call(this,et,st),_t=se.call(this,et,st),hr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:hr},{x:_t.x,y:hr},_t];return Cr=Cr.map(Pe),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Ze.source=function(et){return arguments.length?(Z=gr(et),Ze):Z},Ze.target=function(et){return arguments.length?(se=gr(et),Ze):se},Ze.projection=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze};function li(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=li,Pe=Z.projection;return Z.projection=function(Ze){return arguments.length?Pe(Ei(se=Ze)):se},Z};function Ei(Z){return function(){var se=Z.apply(this,arguments),Pe=se[0],Ze=se[1]-fe;return[Pe*Math.cos(Ze),Pe*Math.sin(Ze)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function Pe(Ze,et){return(Ua.get(Z.call(this,Ze,et))||Yn)(se.call(this,Ze,et))}return Pe.type=function(Ze){return arguments.length?(Z=gr(Ze),Pe):Z},Pe.size=function(Ze){return arguments.length?(se=gr(Ze),Pe):se},Pe};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/Fe);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/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(Z){var se=Math.sqrt(Z/(2*vl)),Pe=se*vl;return"M0,"+-se+"L"+Pe+",0 0,"+se+" "+-Pe+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),Pe=se*Fo/2;return"M0,"+Pe+"L"+se+","+-Pe+" "+-se+","+-Pe+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),Pe=se*Fo/2;return"M0,"+-Pe+"L"+se+","+Pe+" "+-se+","+Pe+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*pe);De.transition=function(Z){for(var se=Ol||++Yl,Pe=tu(Z),Ze=[],et,st,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,hr=this.length;++_t0;)fi[--pn].call(Z,ji);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--st.count?delete st[Ze]:delete Z[Pe],1}jt||(_t=et.time,hr=ma($r,0,_t),jt=st[Ze]={tween:new T,time:_t,timer:hr,delay:et.delay,duration:et.duration,ease:et.ease,index:se},et=null,++st.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=$u,Pe=6,Ze=6,et=3,st=[10],jt=null,_t;function hr(Cr){Cr.each(function(){var zr=e.select(this),fi=this.__chart__||Z,$r=this.__chart__=Z.copy(),Bi=jt==null?$r.ticks?$r.ticks.apply($r,st):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,st):G:_t,mi=zr.selectAll(".tick").data(Bi,$r),zi=mi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),ji=e.transition(mi.exit()).style("opacity",Oe).remove(),pn=e.transition(mi.order()).style("opacity",1),sn=Math.max(Pe,0)+et,wi,xo=Ki($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=mi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Xu,Vu,tf,ds;if(se==="bottom"||se==="top"?(wi=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*Ze+"V0H"+xo[1]+"V"+fu*Ze)):(wi=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*Ze+","+xo[0]+"H0V"+xo[1]+"H"+fu*Ze)),js.attr(ds,fu*Pe),pu.attr(tf,fu*sn),El.attr(Vu,0).attr(ds,fu*Pe),Il.attr(Xu,0).attr(tf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;fi=$r=function(Tu){return Wl(Tu)+Au}}else fi.rangeBand?fi=$r:ji.call(wi,$r,fi);zi.call(wi,fi,$r),pn.call(wi,$r,$r)})}return hr.scale=function(Cr){return arguments.length?(Z=Cr,hr):Z},hr.orient=function(Cr){return arguments.length?(se=Cr in Ku?Cr+"":$u,hr):se},hr.ticks=function(){return arguments.length?(st=r(arguments),hr):st},hr.tickValues=function(Cr){return arguments.length?(jt=Cr,hr):jt},hr.tickFormat=function(Cr){return arguments.length?(_t=Cr,hr):_t},hr.tickSize=function(Cr){var zr=arguments.length;return zr?(Pe=+Cr,Ze=+arguments[zr-1],hr):Pe},hr.innerTickSize=function(Cr){return arguments.length?(Pe=+Cr,hr):Pe},hr.outerTickSize=function(Cr){return arguments.length?(Ze=+Cr,hr):Ze},hr.tickPadding=function(Cr){return arguments.length?(et=+Cr,hr):et},hr.tickSubdivide=function(){return arguments.length&&hr},hr};var $u="bottom",Ku={top:1,right:1,bottom:1,left:1};function Wu(Z,se,Pe){Z.attr("transform",function(Ze){var et=se(Ze);return"translate("+(isFinite(et)?et:Pe(Ze))+",0)"})}function ju(Z,se,Pe){Z.attr("transform",function(Ze){var et=se(Ze);return"translate(0,"+(isFinite(et)?et:Pe(Ze))+")"})}e.svg.brush=function(){var Z=Le(zr,"brushstart","brush","brushend"),se=null,Pe=null,Ze=[0,0],et=[0,0],st,jt,_t=!0,hr=!0,Cr=_f[0];function zr(mi){mi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),ji=zi.selectAll(".background").data([0]);ji.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.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 sn=e.transition(zi),wi=e.transition(ji),xo;se&&(xo=Ki(se),wi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),Pe&&(xo=Ki(Pe),wi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Bi(sn)),fi(sn)})}zr.event=function(mi){mi.each(function(){var zi=Z.of(this,arguments),ji={x:Ze,y:et,i:st,j:jt},pn=this.__chart__||ji;this.__chart__=ji,Ol?e.select(this).transition().each("start.brush",function(){st=pn.i,jt=pn.j,Ze=pn.x,et=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(Ze,ji.x),wi=Ja(et,ji.y);return st=jt=null,function(xo){Ze=ji.x=sn(xo),et=ji.y=wi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){st=ji.i,jt=ji.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function fi(mi){mi.selectAll(".resize").attr("transform",function(zi){return"translate("+Ze[+/e$/.test(zi)]+","+et[+/^s/.test(zi)]+")"})}function $r(mi){mi.select(".extent").attr("x",Ze[0]),mi.selectAll(".extent,.n>rect,.s>rect").attr("width",Ze[1]-Ze[0])}function Bi(mi){mi.select(".extent").attr("y",et[0]),mi.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function fn(){var mi=this,zi=e.select(e.event.target),ji=Z.of(mi,arguments),pn=e.select(mi),sn=zi.datum(),wi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&Pe,no=zi.classed("extent"),Xo=yr(mi),js,El=e.mouse(mi),Pl,pu=e.select(a(mi)).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]=Ze[0]-El[0],El[1]=et[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[Ze[1-Il]-El[0],et[1-fu]-El[1]],El[0]=Ze[Il],El[1]=et[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),ji({type:"brushstart"}),tf();function Xu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Ze[1],El[1]-=et[1],no=2),ge())}function Vu(){e.event.keyCode==32&&no==2&&(El[0]+=Ze[1],El[1]+=et[1],no=0,ge())}function tf(){var Au=e.mouse(mi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Ze[0]+Ze[1])/2,(et[0]+et[1])/2]),El[0]=Ze[+(Au[0]{(function(e,t){typeof _L=="object"&&typeof Ree!="undefined"?t(_L):(e=e||self,t(e.d3=e.d3||{}))})(_L,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,ot,At,vt){function Je(He){return Ae(He=arguments.length===0?new Date:new Date(+He)),He}return Je.floor=function(He){return Ae(He=new Date(+He)),He},Je.ceil=function(He){return Ae(He=new Date(He-1)),ot(He,1),Ae(He),He},Je.round=function(He){var nt=Je(He),tt=Je.ceil(He);return He-nt0))return It;do It.push(Yt=new Date(+He)),ot(He,tt),Ae(He);while(Yt=nt)for(;Ae(nt),!He(nt);)nt.setTime(nt-1)},function(nt,tt){if(nt>=nt)if(tt<0)for(;++tt<=0;)for(;ot(nt,-1),!He(nt););else for(;--tt>=0;)for(;ot(nt,1),!He(nt););})},At&&(Je.count=function(He,nt){return t.setTime(+He),r.setTime(+nt),Ae(t),Ae(r),Math.floor(At(t,r))},Je.every=function(He){return He=Math.floor(He),!isFinite(He)||!(He>0)?null:He>1?Je.filter(vt?function(nt){return vt(nt)%He===0}:function(nt){return Je.count(0,nt)%He===0}):Je}),Je}var i=n(function(){},function(Ae,ot){Ae.setTime(+Ae+ot)},function(Ae,ot){return ot-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(ot){ot.setTime(Math.floor(ot/Ae)*Ae)},function(ot,At){ot.setTime(+ot+At*Ae)},function(ot,At){return(At-ot)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,ot){Ae.setTime(+Ae+ot*o)},function(Ae,ot){return(ot-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,_=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getHours()}),b=_.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setDate(Ae.getDate()+ot)},function(Ae,ot){return(ot-Ae-(ot.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),C=v.range;function E(Ae){return n(function(ot){ot.setDate(ot.getDate()-(ot.getDay()+7-Ae)%7),ot.setHours(0,0,0,0)},function(ot,At){ot.setDate(ot.getDate()+At*7)},function(ot,At){return(At-ot-(At.getTimezoneOffset()-ot.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),x=E(2),k=E(3),M=E(4),m=E(5),P=E(6),A=T.range,F=L.range,B=x.range,U=k.range,G=M.range,j=m.range,W=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setMonth(Ae.getMonth()+ot)},function(Ae,ot){return ot.getMonth()-Ae.getMonth()+(ot.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,ot){Ae.setFullYear(Ae.getFullYear()+ot)},function(Ae,ot){return ot.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setFullYear(Math.floor(ot.getFullYear()/Ae)*Ae),ot.setMonth(0,1),ot.setHours(0,0,0,0)},function(ot,At){ot.setFullYear(ot.getFullYear()+At*Ae)})};var ae=re.range,ge=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),ze=ge.range,Le=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getUTCHours()}),de=Le.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCDate(Ae.getUTCDate()+ot)},function(Ae,ot){return(ot-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(ot){ot.setUTCDate(ot.getUTCDate()-(ot.getUTCDay()+7-Ae)%7),ot.setUTCHours(0,0,0,0)},function(ot,At){ot.setUTCDate(ot.getUTCDate()+At*7)},function(ot,At){return(At-ot)/f})}var Se=Ee(0),Ge=Ee(1),De=Ee(2),xe=Ee(3),Ne=Ee(4),ce=Ee(5),je=Ee(6),Qe=Se.range,gt=Ge.range,qt=De.range,at=xe.range,Ke=Ne.range,Ct=ce.range,wt=je.range,Mt=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCMonth(Ae.getUTCMonth()+ot)},function(Ae,ot){return ot.getUTCMonth()-Ae.getUTCMonth()+(ot.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Bt=Mt.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCFullYear(Ae.getUTCFullYear()+ot)},function(Ae,ot){return ot.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setUTCFullYear(Math.floor(ot.getUTCFullYear()/Ae)*Ae),ot.setUTCMonth(0,1),ot.setUTCHours(0,0,0,0)},function(ot,At){ot.setUTCFullYear(ot.getUTCFullYear()+At*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=C,e.timeFriday=m,e.timeFridays=j,e.timeHour=_,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=F,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=W,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=B,e.timeWednesday=k,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=Ct,e.utcHour=Le,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=ge,e.utcMinutes=ze,e.utcMonday=Ge,e.utcMondays=gt,e.utcMonth=Mt,e.utcMonths=Bt,e.utcSaturday=je,e.utcSaturdays=wt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Se,e.utcSundays=Qe,e.utcThursday=Ne,e.utcThursdays=Ke,e.utcTuesday=De,e.utcTuesdays=qt,e.utcWednesday=xe,e.utcWednesdays=at,e.utcWeek=Se,e.utcWeeks=Qe,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var c3=Te((xL,Dee)=>{(function(e,t){typeof xL=="object"&&typeof Dee!="undefined"?t(xL,DO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(xL,function(e,t){"use strict";function r(be){if(0<=be.y&&be.y<100){var Oe=new Date(-1,be.m,be.d,be.H,be.M,be.S,be.L);return Oe.setFullYear(be.y),Oe}return new Date(be.y,be.m,be.d,be.H,be.M,be.S,be.L)}function n(be){if(0<=be.y&&be.y<100){var Oe=new Date(Date.UTC(-1,be.m,be.d,be.H,be.M,be.S,be.L));return Oe.setUTCFullYear(be.y),Oe}return new Date(Date.UTC(be.y,be.m,be.d,be.H,be.M,be.S,be.L))}function i(be,Oe,Ie){return{y:be,m:Oe,d:Ie,H:0,M:0,S:0,L:0}}function a(be){var Oe=be.dateTime,Ie=be.date,Fe=be.time,ft=be.periods,ye=be.days,fe=be.shortDays,pe=be.months,dt=be.shortMonths,Pt=h(ft),zt=d(ft),rr=h(ye),Gr=d(ye),Br=h(fe),Er=d(fe),Rr=h(pe),pi=d(pe),Di=h(dt),ni=d(dt),$i={a:jr,A:gi,b:ki,B:Vi,c:null,d:N,e:N,f:ze,H,I:re,j:ae,L:ge,m:Le,M:de,p:ti,q:tn,Q:nt,s:tt,S:te,u:ke,U:Ee,V:Se,w:Ge,W:De,x:null,X:null,y:xe,Y:Ne,Z:ce,"%":He},Qi={a:Yr,A:oi,b:Fi,B:an,c:null,d:je,e:je,f:Ke,H:Qe,I:gt,j:qt,L:at,m:Ct,M:wt,p:nn,q:Ri,Q:nt,s:tt,S:Mt,u:Bt,U:Zt,V:Et,w:Ae,W:ot,x:null,X:null,y:At,Y:vt,Z:Je,"%":He},si={a:Gt,A:Wt,b:xr,B:Lr,c:Nr,d:M,e:M,f:U,H:P,I:P,j:m,L:B,m:k,M:A,p:yt,q:x,Q:j,s:W,S:F,u:_,U:b,V:v,w:p,W:C,x:Or,X:Hr,y:T,Y:E,Z:L,"%":G};$i.x=Ti(Ie,$i),$i.X=Ti(Fe,$i),$i.c=Ti(Oe,$i),Qi.x=Ti(Ie,Qi),Qi.X=Ti(Fe,Qi),Qi.c=Ti(Oe,Qi);function Ti(Ii,xn){return function(bi){var Xr=[],ct=-1,tr=0,pr=Ii.length,gr,Zr,Ai;for(bi instanceof Date||(bi=new Date(+bi));++ct53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.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),pr="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-(pr+5)%7:Xr.w+Xr.U*7-(pr+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,bi,Xr){for(var ct=0,tr=xn.length,pr=bi.length,gr,Zr;ct=pr)return-1;if(gr=xn.charCodeAt(ct++),gr===37){if(gr=xn.charAt(ct++),Zr=si[gr in o?xn.charAt(ct++):gr],!Zr||(Xr=Zr(Ii,bi,Xr))<0)return-1}else if(gr!=bi.charCodeAt(Xr++))return-1}return Xr}function yt(Ii,xn,bi){var Xr=Pt.exec(xn.slice(bi));return Xr?(Ii.p=zt[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Gt(Ii,xn,bi){var Xr=Br.exec(xn.slice(bi));return Xr?(Ii.w=Er[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Wt(Ii,xn,bi){var Xr=rr.exec(xn.slice(bi));return Xr?(Ii.w=Gr[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function xr(Ii,xn,bi){var Xr=Di.exec(xn.slice(bi));return Xr?(Ii.m=ni[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Lr(Ii,xn,bi){var Xr=Rr.exec(xn.slice(bi));return Xr?(Ii.m=pi[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Nr(Ii,xn,bi){return Rt(Ii,Oe,xn,bi)}function Or(Ii,xn,bi){return Rt(Ii,Ie,xn,bi)}function Hr(Ii,xn,bi){return Rt(Ii,Fe,xn,bi)}function jr(Ii){return fe[Ii.getDay()]}function gi(Ii){return ye[Ii.getDay()]}function ki(Ii){return dt[Ii.getMonth()]}function Vi(Ii){return pe[Ii.getMonth()]}function ti(Ii){return ft[+(Ii.getHours()>=12)]}function tn(Ii){return 1+~~(Ii.getMonth()/3)}function Yr(Ii){return fe[Ii.getUTCDay()]}function oi(Ii){return ye[Ii.getUTCDay()]}function Fi(Ii){return dt[Ii.getUTCMonth()]}function an(Ii){return pe[Ii.getUTCMonth()]}function nn(Ii){return ft[+(Ii.getUTCHours()>=12)]}function Ri(Ii){return 1+~~(Ii.getUTCMonth()/3)}return{format:function(Ii){var xn=Ti(Ii+="",$i);return xn.toString=function(){return Ii},xn},parse:function(Ii){var xn=Ni(Ii+="",!1);return xn.toString=function(){return Ii},xn},utcFormat:function(Ii){var xn=Ti(Ii+="",Qi);return xn.toString=function(){return Ii},xn},utcParse:function(Ii){var xn=Ni(Ii+="",!0);return xn.toString=function(){return Ii},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(be,Oe,Ie){var Fe=be<0?"-":"",ft=(Fe?-be:be)+"",ye=ft.length;return Fe+(ye68?1900:2e3),Ie+Fe[0].length):-1}function L(be,Oe,Ie){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Ie,Ie+6));return Fe?(be.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Ie+Fe[0].length):-1}function x(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+1));return Fe?(be.q=Fe[0]*3-3,Ie+Fe[0].length):-1}function k(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.m=Fe[0]-1,Ie+Fe[0].length):-1}function M(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.d=+Fe[0],Ie+Fe[0].length):-1}function m(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+3));return Fe?(be.m=0,be.d=+Fe[0],Ie+Fe[0].length):-1}function P(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.H=+Fe[0],Ie+Fe[0].length):-1}function A(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.M=+Fe[0],Ie+Fe[0].length):-1}function F(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.S=+Fe[0],Ie+Fe[0].length):-1}function B(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+3));return Fe?(be.L=+Fe[0],Ie+Fe[0].length):-1}function U(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+6));return Fe?(be.L=Math.floor(Fe[0]/1e3),Ie+Fe[0].length):-1}function G(be,Oe,Ie){var Fe=u.exec(Oe.slice(Ie,Ie+1));return Fe?Ie+Fe[0].length:-1}function j(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie));return Fe?(be.Q=+Fe[0],Ie+Fe[0].length):-1}function W(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie));return Fe?(be.s=+Fe[0],Ie+Fe[0].length):-1}function N(be,Oe){return f(be.getDate(),Oe,2)}function H(be,Oe){return f(be.getHours(),Oe,2)}function re(be,Oe){return f(be.getHours()%12||12,Oe,2)}function ae(be,Oe){return f(1+t.timeDay.count(t.timeYear(be),be),Oe,3)}function ge(be,Oe){return f(be.getMilliseconds(),Oe,3)}function ze(be,Oe){return ge(be,Oe)+"000"}function Le(be,Oe){return f(be.getMonth()+1,Oe,2)}function de(be,Oe){return f(be.getMinutes(),Oe,2)}function te(be,Oe){return f(be.getSeconds(),Oe,2)}function ke(be){var Oe=be.getDay();return Oe===0?7:Oe}function Ee(be,Oe){return f(t.timeSunday.count(t.timeYear(be)-1,be),Oe,2)}function Se(be,Oe){var Ie=be.getDay();return be=Ie>=4||Ie===0?t.timeThursday(be):t.timeThursday.ceil(be),f(t.timeThursday.count(t.timeYear(be),be)+(t.timeYear(be).getDay()===4),Oe,2)}function Ge(be){return be.getDay()}function De(be,Oe){return f(t.timeMonday.count(t.timeYear(be)-1,be),Oe,2)}function xe(be,Oe){return f(be.getFullYear()%100,Oe,2)}function Ne(be,Oe){return f(be.getFullYear()%1e4,Oe,4)}function ce(be){var Oe=be.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function je(be,Oe){return f(be.getUTCDate(),Oe,2)}function Qe(be,Oe){return f(be.getUTCHours(),Oe,2)}function gt(be,Oe){return f(be.getUTCHours()%12||12,Oe,2)}function qt(be,Oe){return f(1+t.utcDay.count(t.utcYear(be),be),Oe,3)}function at(be,Oe){return f(be.getUTCMilliseconds(),Oe,3)}function Ke(be,Oe){return at(be,Oe)+"000"}function Ct(be,Oe){return f(be.getUTCMonth()+1,Oe,2)}function wt(be,Oe){return f(be.getUTCMinutes(),Oe,2)}function Mt(be,Oe){return f(be.getUTCSeconds(),Oe,2)}function Bt(be){var Oe=be.getUTCDay();return Oe===0?7:Oe}function Zt(be,Oe){return f(t.utcSunday.count(t.utcYear(be)-1,be),Oe,2)}function Et(be,Oe){var Ie=be.getUTCDay();return be=Ie>=4||Ie===0?t.utcThursday(be):t.utcThursday.ceil(be),f(t.utcThursday.count(t.utcYear(be),be)+(t.utcYear(be).getUTCDay()===4),Oe,2)}function Ae(be){return be.getUTCDay()}function ot(be,Oe){return f(t.utcMonday.count(t.utcYear(be)-1,be),Oe,2)}function At(be,Oe){return f(be.getUTCFullYear()%100,Oe,2)}function vt(be,Oe){return f(be.getUTCFullYear()%1e4,Oe,4)}function Je(){return"+0000"}function He(){return"%"}function nt(be){return+be}function tt(be){return Math.floor(+be/1e3)}var It;Yt({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 Yt(be){return It=a(be),e.timeFormat=It.format,e.timeParse=It.parse,e.utcFormat=It.utcFormat,e.utcParse=It.utcParse,It}var cr="%Y-%m-%dT%H:%M:%S.%LZ";function _r(be){return be.toISOString()}var yr=Date.prototype.toISOString?_r:e.utcFormat(cr);function Ut(be){var Oe=new Date(be);return isNaN(Oe)?null:Oe}var Re=+new Date("2000-01-01T00:00:00.000Z")?Ut:e.utcParse(cr);e.isoFormat=yr,e.isoParse=Re,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var FO=Te((bL,Fee)=>{(function(e,t){typeof bL=="object"&&typeof Fee!="undefined"?t(bL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(bL,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,M){if((m=(k=M?k.toExponential(M-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,M){return function(m,P){for(var A=m.length,F=[],B=0,U=k[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),F.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=k[B=(B+1)%k.length];return F.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(m){return k[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new u({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[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 M=k.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(A+1):k}var f;function c(k,M){var m=r(k,M);if(!m)return k+"";var P=m[0],A=m[1],F=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,B=P.length;return F===B?P:F>B?P+new Array(F-B+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+r(k,Math.max(0,M+F-1))[0]}function h(k,M){var m=r(k,M);if(!m)return k+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},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 _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(k){var M=k.grouping===void 0||k.thousands===void 0?p:i(_.call(k.grouping,Number),k.thousands+""),m=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",A=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?p:a(_.call(k.numerals,String)),B=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,ge=N.symbol,ze=N.zero,Le=N.width,de=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(de=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(ze||H==="0"&&re==="=")&&(ze=!0,H="0",re="=");var Se=ge==="$"?m:ge==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ge=ge==="$"?P:/[%p]/.test(Ee)?B:"",De=d[Ee],xe=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ne(ce){var je=Se,Qe=Ge,gt,qt,at;if(Ee==="c")Qe=De(ce)+Qe,ce="";else{ce=+ce;var Ke=ce<0||1/ce<0;if(ce=isNaN(ce)?G:De(Math.abs(ce),te),ke&&(ce=l(ce)),Ke&&+ce==0&&ae!=="+"&&(Ke=!1),je=(Ke?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+je,Qe=(Ee==="s"?b[8+f/3]:"")+Qe+(Ke&&ae==="("?")":""),xe){for(gt=-1,qt=ce.length;++gtat||at>57){Qe=(at===46?A+ce.slice(gt+1):ce.slice(gt))+Qe,ce=ce.slice(0,gt);break}}}de&&!ze&&(ce=M(ce,1/0));var Ct=je.length+ce.length+Qe.length,wt=Ct>1)+je+ce+Qe+wt.slice(Ct);break;default:ce=wt+je+ce+Qe;break}return F(ce)}return Ne.toString=function(){return N+""},Ne}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,ge=Math.pow(10,-ae),ze=b[8+ae/3];return function(Le){return re(ge*Le)+ze}}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 T(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function x(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Oee=Te((Uir,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=Te((Vir,qee)=>{"use strict";var crt=Oee();qee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&crt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var rf=Te((Gir,Nee)=>{"use strict";Nee.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 BO=Te((wL,Uee)=>{(function(e,t){typeof wL=="object"&&typeof Uee!="undefined"?t(wL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(wL,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 _=new ArrayBuffer(s),b=new Uint8Array(_);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ag=Te((Hir,Vee)=>{"use strict";Vee.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 mp=Te(xm=>{"use strict";var hrt=BO().decode,drt=Ag(),OO=Array.isArray,prt=ArrayBuffer,vrt=DataView;function Gee(e){return prt.isView(e)&&!(e instanceof vrt)}xm.isTypedArray=Gee;function AL(e){return OO(e)||Gee(e)}xm.isArrayOrTypedArray=AL;function mrt(e){return!AL(e[0])}xm.isArray1D=mrt;xm.ensureArray=function(e,t){return OO(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 qO(e){return e.constructor===ArrayBuffer}xm.isArrayBuffer=qO;xm.decodeTypedArraySpec=function(e){var t=[],r=yrt(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;qO(o)||(o=hrt(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 Wee=ku(),UO=mp().isArrayOrTypedArray;Yee.exports=function(t,r){if(Wee(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 h3=DM(),wrt=/^\w*$/,Art=0,Kee=1,TL=2,Jee=3,mb=4;$ee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=h3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|TL,c.set(h,null);if(f){for(a=d;a{"use strict";var Trt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Srt=/^[^\.\[\]]+$/;ete.exports=function(e,t){for(;t;){var r=e.match(Trt);if(r)e=r[1];else if(e.match(Srt))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 SL=Te((Yir,rte)=>{"use strict";var Mrt=ku();rte.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 Mrt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var ate=Te((Kir,nte)=>{"use strict";var ite=mp().isArrayOrTypedArray,FM=Ag();nte.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(ite(i)&&ite(a)&&FM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ert(e,t){var r=e%t;return r<0?r+t:r}function krt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}ote.exports={mod:Ert,modHalf:krt}});var hd=Te(($ir,ML)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(xe,Ne){if(xe=xe||"",Ne=Ne||{},xe instanceof u)return xe;if(!(this instanceof u))return new u(xe,Ne);var ce=l(xe);this._originalInput=xe,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=Ne.format||ce.format,this._gradientType=Ne.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 xe=this.toRgb();return(xe.r*299+xe.g*587+xe.b*114)/1e3},getLuminance:function(){var xe=this.toRgb(),Ne,ce,je,Qe,gt,qt;return Ne=xe.r/255,ce=xe.g/255,je=xe.b/255,Ne<=.03928?Qe=Ne/12.92:Qe=e.pow((Ne+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),je<=.03928?qt=je/12.92:qt=e.pow((je+.055)/1.055,2.4),.2126*Qe+.7152*gt+.0722*qt},setAlpha:function(xe){return this._a=N(xe),this._roundA=i(100*this._a)/100,this},toHsv:function(){var xe=d(this._r,this._g,this._b);return{h:xe.h*360,s:xe.s,v:xe.v,a:this._a}},toHsvString:function(){var xe=d(this._r,this._g,this._b),Ne=i(xe.h*360),ce=i(xe.s*100),je=i(xe.v*100);return this._a==1?"hsv("+Ne+", "+ce+"%, "+je+"%)":"hsva("+Ne+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHsl:function(){var xe=c(this._r,this._g,this._b);return{h:xe.h*360,s:xe.s,l:xe.l,a:this._a}},toHslString:function(){var xe=c(this._r,this._g,this._b),Ne=i(xe.h*360),ce=i(xe.s*100),je=i(xe.l*100);return this._a==1?"hsl("+Ne+", "+ce+"%, "+je+"%)":"hsla("+Ne+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(xe){return _(this._r,this._g,this._b,xe)},toHexString:function(xe){return"#"+this.toHex(xe)},toHex8:function(xe){return b(this._r,this._g,this._b,this._a,xe)},toHex8String:function(xe){return"#"+this.toHex8(xe)},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[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(xe){var Ne="#"+v(this._r,this._g,this._b,this._a),ce=Ne,je=this._gradientType?"GradientType = 1, ":"";if(xe){var Qe=u(xe);ce="#"+v(Qe._r,Qe._g,Qe._b,Qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+je+"startColorstr="+Ne+",endColorstr="+ce+")"},toString:function(xe){var Ne=!!xe;xe=xe||this._format;var ce=!1,je=this._a<1&&this._a>=0,Qe=!Ne&&je&&(xe==="hex"||xe==="hex6"||xe==="hex3"||xe==="hex4"||xe==="hex8"||xe==="name");return Qe?xe==="name"&&this._a===0?this.toName():this.toRgbString():(xe==="rgb"&&(ce=this.toRgbString()),xe==="prgb"&&(ce=this.toPercentageRgbString()),(xe==="hex"||xe==="hex6")&&(ce=this.toHexString()),xe==="hex3"&&(ce=this.toHexString(!0)),xe==="hex4"&&(ce=this.toHex8String(!0)),xe==="hex8"&&(ce=this.toHex8String()),xe==="name"&&(ce=this.toName()),xe==="hsl"&&(ce=this.toHslString()),xe==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(xe,Ne){var ce=xe.apply(null,[this].concat([].slice.call(Ne)));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(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(xe,Ne){return xe.apply(null,[this].concat([].slice.call(Ne)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(xe,Ne){if(typeof xe=="object"){var ce={};for(var je in xe)xe.hasOwnProperty(je)&&(je==="a"?ce[je]=xe[je]:ce[je]=de(xe[je]));xe=ce}return u(xe,Ne)};function l(xe){var Ne={r:0,g:0,b:0},ce=1,je=null,Qe=null,gt=null,qt=!1,at=!1;return typeof xe=="string"&&(xe=Ge(xe)),typeof xe=="object"&&(Se(xe.r)&&Se(xe.g)&&Se(xe.b)?(Ne=f(xe.r,xe.g,xe.b),qt=!0,at=String(xe.r).substr(-1)==="%"?"prgb":"rgb"):Se(xe.h)&&Se(xe.s)&&Se(xe.v)?(je=de(xe.s),Qe=de(xe.v),Ne=p(xe.h,je,Qe),qt=!0,at="hsv"):Se(xe.h)&&Se(xe.s)&&Se(xe.l)&&(je=de(xe.s),gt=de(xe.l),Ne=h(xe.h,je,gt),qt=!0,at="hsl"),xe.hasOwnProperty("a")&&(ce=xe.a)),ce=N(ce),{ok:qt,format:xe.format||at,r:a(255,o(Ne.r,0)),g:a(255,o(Ne.g,0)),b:a(255,o(Ne.b,0)),a:ce}}function f(xe,Ne,ce){return{r:H(xe,255)*255,g:H(Ne,255)*255,b:H(ce,255)*255}}function c(xe,Ne,ce){xe=H(xe,255),Ne=H(Ne,255),ce=H(ce,255);var je=o(xe,Ne,ce),Qe=a(xe,Ne,ce),gt,qt,at=(je+Qe)/2;if(je==Qe)gt=qt=0;else{var Ke=je-Qe;switch(qt=at>.5?Ke/(2-je-Qe):Ke/(je+Qe),je){case xe:gt=(Ne-ce)/Ke+(Ne1&&(Mt-=1),Mt<1/6?Ct+(wt-Ct)*6*Mt:Mt<1/2?wt:Mt<2/3?Ct+(wt-Ct)*(2/3-Mt)*6:Ct}if(Ne===0)je=Qe=gt=ce;else{var at=ce<.5?ce*(1+Ne):ce+Ne-ce*Ne,Ke=2*ce-at;je=qt(Ke,at,xe+1/3),Qe=qt(Ke,at,xe),gt=qt(Ke,at,xe-1/3)}return{r:je*255,g:Qe*255,b:gt*255}}function d(xe,Ne,ce){xe=H(xe,255),Ne=H(Ne,255),ce=H(ce,255);var je=o(xe,Ne,ce),Qe=a(xe,Ne,ce),gt,qt,at=je,Ke=je-Qe;if(qt=je===0?0:Ke/je,je==Qe)gt=0;else{switch(je){case xe:gt=(Ne-ce)/Ke+(Ne>1)+720)%360;--Ne;)je.h=(je.h+Qe)%360,gt.push(u(je));return gt}function U(xe,Ne){Ne=Ne||6;for(var ce=u(xe).toHsv(),je=ce.h,Qe=ce.s,gt=ce.v,qt=[],at=1/Ne;Ne--;)qt.push(u({h:je,s:Qe,v:gt})),gt=(gt+at)%1;return qt}u.mix=function(xe,Ne,ce){ce=ce===0?0:ce||50;var je=u(xe).toRgb(),Qe=u(Ne).toRgb(),gt=ce/100,qt={r:(Qe.r-je.r)*gt+je.r,g:(Qe.g-je.g)*gt+je.g,b:(Qe.b-je.b)*gt+je.b,a:(Qe.a-je.a)*gt+je.a};return u(qt)},u.readability=function(xe,Ne){var ce=u(xe),je=u(Ne);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},u.isReadable=function(xe,Ne,ce){var je=u.readability(xe,Ne),Qe,gt;switch(gt=!1,Qe=De(ce),Qe.level+Qe.size){case"AAsmall":case"AAAlarge":gt=je>=4.5;break;case"AAlarge":gt=je>=3;break;case"AAAsmall":gt=je>=7;break}return gt},u.mostReadable=function(xe,Ne,ce){var je=null,Qe=0,gt,qt,at,Ke;ce=ce||{},qt=ce.includeFallbackColors,at=ce.level,Ke=ce.size;for(var Ct=0;CtQe&&(Qe=gt,je=u(Ne[Ct]));return u.isReadable(xe,je,{level:at,size:Ke})||!qt?je:(ce.includeFallbackColors=!1,u.mostReadable(xe,["#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(xe){var Ne={};for(var ce in xe)xe.hasOwnProperty(ce)&&(Ne[xe[ce]]=ce);return Ne}function N(xe){return xe=parseFloat(xe),(isNaN(xe)||xe<0||xe>1)&&(xe=1),xe}function H(xe,Ne){ge(xe)&&(xe="100%");var ce=ze(xe);return xe=a(Ne,o(0,parseFloat(xe))),ce&&(xe=parseInt(xe*Ne,10)/100),e.abs(xe-Ne)<1e-6?1:xe%Ne/parseFloat(Ne)}function re(xe){return a(1,o(0,xe))}function ae(xe){return parseInt(xe,16)}function ge(xe){return typeof xe=="string"&&xe.indexOf(".")!=-1&&parseFloat(xe)===1}function ze(xe){return typeof xe=="string"&&xe.indexOf("%")!=-1}function Le(xe){return xe.length==1?"0"+xe:""+xe}function de(xe){return xe<=1&&(xe=xe*100+"%"),xe}function te(xe){return e.round(parseFloat(xe)*255).toString(16)}function ke(xe){return ae(xe)/255}var Ee=function(){var xe="[-\\+]?\\d+%?",Ne="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ne+")|(?:"+xe+")",je="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",Qe="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+je),rgba:new RegExp("rgba"+Qe),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+Qe),hsv:new RegExp("hsv"+je),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 Se(xe){return!!Ee.CSS_UNIT.exec(xe)}function Ge(xe){xe=xe.replace(t,"").replace(r,"").toLowerCase();var Ne=!1;if(G[xe])xe=G[xe],Ne=!0;else if(xe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(xe))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(xe))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(xe))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(xe))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(xe))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(xe))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(xe))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex6.exec(xe))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ne?"name":"hex"}:(ce=Ee.hex4.exec(xe))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex3.exec(xe))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ne?"name":"hex"}:!1}function De(xe){var Ne,ce;return xe=xe||{level:"AA",size:"small"},Ne=(xe.level||"AA").toUpperCase(),ce=(xe.size||"small").toLowerCase(),Ne!=="AA"&&Ne!=="AAA"&&(Ne="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ne,size:ce}}typeof ML!="undefined"&&ML.exports?ML.exports=u:window.tinycolor=u})(Math)});var Su=Te(qM=>{"use strict";var ste=Ag(),BM=Array.isArray;function Crt(e,t){var r,n;for(r=0;r{"use strict";lte.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 NM=Te((tnr,ute)=>{"use strict";ute.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var j1=Te((rnr,hte)=>{"use strict";var fte=NM(),cte=gc(),VO=cte({editType:"none"});VO.family.dflt=fte.HOVERFONT;VO.size.dflt=fte.HOVERFONTSIZE;hte.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:VO,grouptitlefont:cte({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 p3=Te((inr,dte)=>{"use strict";var Lrt=gc(),UM=j1().hoverlabel,VM=Su().extendFlat;dte.exports={hoverlabel:{bgcolor:VM({},UM.bgcolor,{arrayOk:!0}),bordercolor:VM({},UM.bordercolor,{arrayOk:!0}),font:Lrt({arrayOk:!0,editType:"none"}),align:VM({},UM.align,{arrayOk:!0}),namelength:VM({},UM.namelength,{arrayOk:!0}),showarrow:VM({},UM.showarrow),editType:"none"}}});var Gf=Te((nnr,pte)=>{"use strict";var Prt=gc(),zrt=p3();pte.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:Prt({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:zrt.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=Te((anr,yte)=>{"use strict";var Irt=hd(),EL={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)"]]},vte=EL.RdBu;function Rrt(e,t){if(t||(t=vte),!e)return t;function r(){try{e=EL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),mte(e)?e:t}function mte(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";gb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];gb.defaultLine="#444";gb.lightLine="#eee";gb.background="#fff";gb.borderLine="#BEC8D9";gb.lightFraction=100*10/11});var jl=Te((snr,gte)=>{"use strict";var wv=hd(),Frt=ku(),Brt=mp().isTypedArray,dd=gte.exports={},kL=Oh();dd.defaults=kL.defaults;var Ort=dd.defaultLine=kL.defaultLine;dd.lightLine=kL.lightLine;var HO=dd.background=kL.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||HO).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,HO)));var i=n.isDark()?t?n.lighten(t):HO:r?n.darken(r):Ort;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=Te((lnr,_te)=>{"use strict";_te.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var v3=Te(xte=>{"use strict";xte.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 Tte=Te(Av=>{"use strict";var WO=ku(),bte=hd(),wte=Su().extendFlat,qrt=Gf(),Nrt=yb(),Urt=jl(),Vrt=X1().DESELECTDIM,m3=DM(),Ate=v3().counter,Grt=d3().modHalf,bm=mp().isArrayOrTypedArray,Z1=mp().isTypedArraySpec,Y1=mp().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)),!WO(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||!WO(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)),bte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return bte(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"):WO(e)?t.set(Grt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||Ate(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:!!Ate(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 Ste={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},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:{}}},Mte={};function Ete(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),Ete(n,t[r]))}}Ete(Ste,Mte);kte.exports={configAttributes:Ste,dfltConfig:Mte}});var XO=Te((hnr,Cte)=>{"use strict";var jO=Jl(),Hrt=ku(),GM=[];Cte.exports=function(e,t){if(GM.indexOf(e)!==-1)return;GM.push(e);var r=1e3;Hrt(t)?r=t:t==="long"&&(r=3e3);var n=jO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(GM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=GM.indexOf(s);u!==-1&&GM.splice(u,1),jO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=jO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var y3=_b().dfltConfig,ZO=XO(),YO=Lte.exports={};YO.log=function(){var e;if(y3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};YO.warn=function(){var e;if(y3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};YO.error=function(){var e;if(y3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var LL=Te((pnr,Pte)=>{"use strict";Pte.exports=function(){}});var KO=Te((vnr,zte)=>{"use strict";zte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ite.exports=Wrt;function Wrt(){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 Fte=Te((ynr,Dte)=>{Dte.exports=jrt;function jrt(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 Ote=Te((gnr,Bte)=>{Bte.exports=Xrt;function Xrt(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 JO=Te((_nr,qte)=>{qte.exports=Zrt;function Zrt(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 Ute=Te((xnr,Nte)=>{Nte.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 Gte=Te((bnr,Vte)=>{Vte.exports=Krt;function Krt(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],_=t[13],b=t[14],v=t[15],C=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,x=n*l-a*s,k=i*l-a*u,M=f*_-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*_,F=c*v-d*_,B=h*v-d*b,U=C*B-E*F+T*A+L*P-x*m+k*M;return U?(U=1/U,e[0]=(s*B-u*F+l*A)*U,e[1]=(i*F-n*B-a*A)*U,e[2]=(_*k-b*x+v*L)*U,e[3]=(h*x-c*k-d*L)*U,e[4]=(u*P-o*B-l*m)*U,e[5]=(r*B-i*P+a*m)*U,e[6]=(b*T-p*k-v*E)*U,e[7]=(f*k-h*T+d*E)*U,e[8]=(o*F-s*P+l*M)*U,e[9]=(n*P-r*F-a*M)*U,e[10]=(p*x-_*T+v*C)*U,e[11]=(c*T-f*x-d*C)*U,e[12]=(s*m-o*A-u*M)*U,e[13]=(r*A-n*m+i*M)*U,e[14]=(_*E-p*L-b*C)*U,e[15]=(f*L-c*E+h*C)*U,e):null}});var Wte=Te((wnr,Hte)=>{Hte.exports=Jrt;function Jrt(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],_=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+_*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+_*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+_*(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*_)-f*(s*v-l*_)+p*(s*d-l*c),e[9]=-(r*(c*v-d*_)-f*(n*v-a*_)+p*(n*d-a*c)),e[10]=r*(s*v-l*_)-o*(n*v-a*_)+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*_)-f*(s*b-u*_)+p*(s*h-u*c)),e[13]=r*(c*b-h*_)-f*(n*b-i*_)+p*(n*h-i*c),e[14]=-(r*(s*b-u*_)-o*(n*b-i*_)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var Xte=Te((Anr,jte)=>{jte.exports=$rt;function $rt(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],_=e[14],b=e[15],v=t*o-r*a,C=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,x=n*u-i*s,k=l*p-f*d,M=l*_-c*d,m=l*b-h*d,P=f*_-c*p,A=f*b-h*p,F=c*b-h*_;return v*F-C*A+E*P+T*m-L*M+x*k}});var Yte=Te((Tnr,Zte)=>{Zte.exports=Qrt;function Qrt(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],_=t[12],b=t[13],v=t[14],C=t[15],E=r[0],T=r[1],L=r[2],x=r[3];return e[0]=E*n+T*s+L*c+x*_,e[1]=E*i+T*u+L*h+x*b,e[2]=E*a+T*l+L*d+x*v,e[3]=E*o+T*f+L*p+x*C,E=r[4],T=r[5],L=r[6],x=r[7],e[4]=E*n+T*s+L*c+x*_,e[5]=E*i+T*u+L*h+x*b,e[6]=E*a+T*l+L*d+x*v,e[7]=E*o+T*f+L*p+x*C,E=r[8],T=r[9],L=r[10],x=r[11],e[8]=E*n+T*s+L*c+x*_,e[9]=E*i+T*u+L*h+x*b,e[10]=E*a+T*l+L*d+x*v,e[11]=E*o+T*f+L*p+x*C,E=r[12],T=r[13],L=r[14],x=r[15],e[12]=E*n+T*s+L*c+x*_,e[13]=E*i+T*u+L*h+x*b,e[14]=E*a+T*l+L*d+x*v,e[15]=E*o+T*f+L*p+x*C,e}});var Jte=Te((Snr,Kte)=>{Kte.exports=eit;function eit(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,_,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],_=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]=_,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+_*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 Qte=Te((Mnr,$te)=>{$te.exports=tit;function tit(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 tre=Te((Enr,ere)=>{ere.exports=rit;function rit(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,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],_=t[4],b=t[5],v=t[6],C=t[7],E=t[8],T=t[9],L=t[10],x=t[11],k=i*i*f+l,M=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,F=o*a*f+i*u,B=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*k+_*M+E*m,e[1]=h*k+b*M+T*m,e[2]=d*k+v*M+L*m,e[3]=p*k+C*M+x*m,e[4]=c*P+_*A+E*F,e[5]=h*P+b*A+T*F,e[6]=d*P+v*A+L*F,e[7]=p*P+C*A+x*F,e[8]=c*B+_*U+E*G,e[9]=h*B+b*U+T*G,e[10]=d*B+v*U+L*G,e[11]=p*B+C*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var ire=Te((knr,rre)=>{rre.exports=iit;function iit(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 are=Te((Cnr,nre)=>{nre.exports=nit;function nit(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 sre=Te((Lnr,ore)=>{ore.exports=ait;function ait(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 ure=Te((Pnr,lre)=>{lre.exports=oit;function oit(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 cre=Te((znr,fre)=>{fre.exports=sit;function sit(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,_=a*l,b=o*s,v=o*u,C=o*l;return e[0]=1-(d+_),e[1]=c+C,e[2]=h-v,e[3]=0,e[4]=c-C,e[5]=1-(f+_),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 dre=Te((Inr,hre)=>{hre.exports=lit;function lit(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 vre=Te((Rnr,pre)=>{pre.exports=uit;function uit(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 yre=Te((Dnr,mre)=>{mre.exports=fit;function fit(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 _re=Te((Fnr,gre)=>{gre.exports=cit;function cit(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 bre=Te((Bnr,xre)=>{xre.exports=hit;function hit(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 Are=Te((Onr,wre)=>{wre.exports=dit;function dit(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,_=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+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Sre=Te((qnr,Tre)=>{Tre.exports=pit;function pit(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 Ere=Te((Nnr,Mre)=>{Mre.exports=vit;function vit(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 Cre=Te((Unr,kre)=>{kre.exports=mit;function mit(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 Pre=Te((Vnr,Lre)=>{Lre.exports=yit;function yit(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 Ire=Te((Gnr,zre)=>{var git=JO();zre.exports=_it;function _it(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],_=t[1],b=t[2],v=n[0],C=n[1],E=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(p-T)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?git(e):(f=p-T,c=_-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*_+o*b),e[13]=-(s*p+u*_+l*b),e[14]=-(f*p+c*_+h*b),e[15]=1,e)}});var Dre=Te((Hnr,Rre)=>{Rre.exports=xit;function xit(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 $O=Te((Wnr,Fre)=>{Fre.exports={create:Rte(),clone:Fte(),copy:Ote(),identity:JO(),transpose:Ute(),invert:Gte(),adjoint:Wte(),determinant:Xte(),multiply:Yte(),translate:Jte(),scale:Qte(),rotate:tre(),rotateX:ire(),rotateY:are(),rotateZ:sre(),fromRotation:ure(),fromRotationTranslation:cre(),fromScaling:dre(),fromTranslation:vre(),fromXRotation:yre(),fromYRotation:_re(),fromZRotation:bre(),fromQuat:Are(),frustum:Sre(),perspective:Ere(),perspectiveFromFieldOfView:Cre(),ortho:Pre(),lookAt:Ire(),str:Dre()}});var PL=Te(xh=>{"use strict";var bit=$O();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var wit=Jl(),Bre=K1(),Ait=PL(),Tit=$O();function Sit(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 Mit(e){var t=wit.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Ore(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Eit(e,t){qre("global",e,t)}function qre(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 kit(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Ore(r)}function Cit(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 Lit(e){var t=Ure(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=Nre(n);if(i){var a=Ait.convertCssMatrix(i);r=Tit.multiply(r,r,a)}}),r}function Nre(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 Ure(e){for(var t=[];Pit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Pit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function zit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Vre.exports={getGraphDiv:Sit,isPlotDiv:Mit,removeElement:Ore,addStyleRule:Eit,addRelatedStyleRule:qre,deleteRelatedStyleRule:kit,setStyleOnHover:Cit,getFullTransformMatrix:Lit,getElementTransformMatrix:Nre,getElementAndAncestors:Ure,equalDomRects:zit}});var WM=Te((Znr,Gre)=>{"use strict";Gre.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=Te((Ynr,Kre)=>{"use strict";var Wre=Su().extendFlat,Iit=Ag(),jre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Xre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Rit=jre.flags.slice().concat(["fullReplot"]),Dit=Xre.flags.slice().concat("layoutReplot");Kre.exports={traces:jre,layout:Xre,traceFlags:function(){return Hre(Rit)},layoutFlags:function(){return Hre(Dit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";QO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};QO.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 eq=Te((Jnr,Jre)=>{"use strict";Jre.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=Te(g3=>{"use strict";var{DATE_FORMAT_LINK:Fit,FORMAT_LINK:Bit}=eq(),Oit=["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 qit({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}".`,Bit,"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}".`,Fit,"for details on the date formatting syntax.",Oit].join(" ")}g3.templateFormatStringDescription=qit;g3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});g3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});g3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});g3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var RL=Te((ear,iie)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function $re(e,t){return t?t.l2d(e):e}function Nit(e){return e.x0}function Uit(e){return e.x1}function Vit(e){return e.y0}function Git(e){return e.y1}function Qre(e){return e.x0shift||0}function eie(e){return e.x1shift||0}function tie(e){return e.y0shift||0}function rie(e){return e.y1shift||0}function zL(e,t){return J1(e.x1,t)+eie(e)-J1(e.x0,t)-Qre(e)}function IL(e,t,r){return J1(e.y1,r)+rie(e)-J1(e.y0,r)-tie(e)}function Hit(e,t){return Math.abs(zL(e,t))}function Wit(e,t,r){return Math.abs(IL(e,t,r))}function jit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(zL(e,t),2)+Math.pow(IL(e,t,r),2))}function Xit(e,t){return $re((J1(e.x1,t)+eie(e)+J1(e.x0,t)+Qre(e))/2,t)}function Zit(e,t,r){return $re((J1(e.y1,r)+rie(e)+J1(e.y0,r)+tie(e))/2,r)}function Yit(e,t,r){return e.type!=="line"?void 0:IL(e,t,r)/zL(e,t)}var Kit=["x0","x1","y0","y1","dy","height","ycenter"],Jit=["x0","x1","y0","y1","dx","width","xcenter"];iie.exports={x0:Nit,x1:Uit,y0:Vit,y1:Git,slope:Yit,dx:zL,dy:IL,width:Hit,height:Wit,length:jit,xcenter:Xit,ycenter:Zit,simpleXVariables:Kit,simpleYVariables:Jit}});var oie=Te((tar,aie)=>{"use strict";var $it=Sc().overrideAll,xb=Gf(),nie=gc(),Qit=Id().dash,$1=Su().extendFlat,{shapeTexttemplateAttrs:ent,templatefallbackAttrs:tnt}=Ff(),rnt=RL();aie.exports=$it({newshape:{visible:$1({},xb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},xb.legend,{}),legendgroup:$1({},xb.legendgroup,{}),legendgrouptitle:{text:$1({},xb.legendgrouptitle.text,{}),font:nie({})},legendrank:$1({},xb.legendrank,{}),legendwidth:$1({},xb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},Qit,{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({},xb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:ent({newshape:!0},{keys:Object.keys(rnt)}),texttemplatefallback:tnt({editType:"arraydraw"}),font:nie({}),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 lie=Te((rar,sie)=>{"use strict";var int=Id().dash,nnt=Su().extendFlat;sie.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:nnt({},int,{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 DL=Te((iar,uie)=>{"use strict";uie.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 _3=Te((nar,die)=>{"use strict";var tq=gc(),ant=WM(),FL=Oh(),fie=oie(),cie=lie(),ont=DL(),hie=Su().extendFlat,BL=tq({editType:"calc"});BL.family.dflt='"Open Sans", verdana, arial, sans-serif';BL.size.dflt=12;BL.color.dflt=FL.defaultLine;die.exports={font:BL,title:{text:{valType:"string",editType:"layoutstyle"},font:tq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:tq({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:hie(ont({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:FL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:FL.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:FL.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:fie.newshape,activeshape:fie.activeshape,newselection:cie.newselection,activeselection:cie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:hie({},ant.transition,{editType:"none"})}});var pie=Te(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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=Te(Af=>{"use strict";var x3=K1(),vie=LL(),mie=KO(),snt=Ag(),lnt=HM().addStyleRule,yie=Su(),unt=Gf(),fnt=_3(),cnt=yie.extendFlat,rq=yie.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 ynt=c3().timeFormat,kie=ku(),iq=K1(),e_=d3().mod,A3=rf(),_0=A3.BADNUM,Tv=A3.ONEDAY,jM=A3.ONEHOUR,Q1=A3.ONEMIN,w3=A3.ONESEC,XM=A3.EPOCHJD,Tg=$l(),wie=c3().utcFormat,gnt=/^\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,_nt=/^\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,Aie=new Date().getFullYear()-70;function Sg(e){return e&&Tg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=xnt(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=Tv*(t-1),bh.ms2DateTime(n,0,e)};function xnt(e,t){return Sg(e)?t?Tg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Tg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return Sg(e)?Tg.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 qL,NL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*Q1,n=(e.getUTCMinutes()-e.getMinutes())*Q1+(e.getUTCSeconds()-e.getSeconds())*w3+(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>=qL&&e<=NL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=Sg(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?_nt:gnt);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 _;try{var b=Tg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),_=b.newDate(l,b.toMonthIndex(l,f,v),c)}else _=b.newDate(l,Number(f),c)}catch(E){return _0}return _?(_.toJD()-XM)*Tv+h*jM+d*Q1+p*w3:_0}l.length===2?l=(Number(l)+2e3-Aie)%100+Aie: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*w3};qL=bh.MIN_MS=bh.dateTime2ms("-9999");NL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function b3(e,t){return String(e+Math.pow(10,t)).slice(1)}var OL=90*Tv,Tie=3*jM,Sie=5*Q1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=qL&&e<=NL))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(Sg(r)){var c=Math.floor(i/Tv)+XM,h=Math.floor(e_(e,Tv));try{a=Tg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=wie("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=qL+Tv&&e<=NL-Tv))return _0;var t=Math.floor(e_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=ynt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return Cie(n,i,a,o,s)};function Cie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+b3(t,2)+":"+b3(r,2),(n||i)&&(e+=":"+b3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+b3(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(Sg(r))return iq.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 iq.error("unrecognized date",e),t;return e};var bnt=/%\d?f/g,wnt=/%h/g,Ant={1:"1",2:"1",3:"2",4:"2"};function Mie(e,t,r,n){e=e.replace(bnt,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(wnt,function(){return Ant[r("%q")(i)]}),Sg(n))try{e=Tg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Tnt=[59,59.9,59.99,59.999,59.9999];function Snt(e,t){var r=e_(e+.05,Tv),n=b3(Math.floor(r/jM),2)+":"+b3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){kie(t)||(t=0);var i=Math.min(e_(e/w3,60),Tnt[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=Sg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`)};function _t(Cr){return Cr.map(hr).join(Z)}function hr(Cr){return Pe.test(Cr)?'"'+Cr.replace(/\"/g,'""')+'"':Cr}return et},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Xi,aa,Mn,Un,Ga=this[W(this,"requestAnimationFrame")]||function(Z){setTimeout(Z,17)};e.timer=function(){ma.apply(this,arguments)};function ma(Z,se,Pe){var Ze=arguments.length;Ze<2&&(se=0),Ze<3&&(Pe=Date.now());var et=Pe+se,st={c:Z,t:et,n:null};return aa?aa.n=st:Xi=st,aa=st,Mn||(Un=clearTimeout(Un),Mn=1,Ga(oa)),st}function oa(){var Z=ka(),se=so()-Z;se>24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Xi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Xi,Pe=1/0;se;)se.c?(se.t=0;--_t)mi.push(et[Cr[fi[_t]][2]]);for(_t=+Bi;_t<$r.length-fn;++_t)mi.push(et[Cr[$r[_t]][2]]);return mi}return Ze.x=function(et){return arguments.length?(se=et,Ze):se},Ze.y=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze};function Yo(Z){for(var se=Z.length,Pe=[0,1],Ze=2,et=2;et1&&zt(Z[Pe[Ze-2]],Z[Pe[Ze-1]],Z[et])<=0;)--Ze;Pe[Ze++]=et}return Pe.slice(0,Ze)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,Pe,Ze=this[se-1],et=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,Pe),jt>Oe){if(!_t.R){Ze=_t;break}_t=_t.R}else{st>-Oe?(Ze=_t.P,et=_t):jt>-Oe?(Ze=_t,et=_t.N):Ze=et=_t;break}var hr=Po(Z);if(fo.insert(Ze,hr),!(!Ze&&!et)){if(Ze===et){Sa(Ze),et=Po(Ze.site),fo.insert(hr,et),hr.edge=et.edge=vo(Ze.site,hr.site),Hi(Ze),Hi(et);return}if(!et){hr.edge=vo(Ze.site,hr.site);return}Sa(Ze),Sa(et);var Cr=Ze.site,zr=Cr.x,fi=Cr.y,$r=Z.x-zr,Bi=Z.y-fi,fn=et.site,mi=fn.x-zr,zi=fn.y-fi,ji=2*($r*zi-Bi*mi),pn=$r*$r+Bi*Bi,sn=mi*mi+zi*zi,wi={x:(zi*pn-Bi*sn)/ji+zr,y:($r*sn-mi*pn)/ji+fi};ps(et.edge,Cr,fn,wi),hr.edge=vo(Cr,Z,null,wi),et.edge=vo(Z,fn,null,wi),Hi(Ze),Hi(et)}}function Ha(Z,se){var Pe=Z.site,Ze=Pe.x,et=Pe.y,st=et-se;if(!st)return Ze;var jt=Z.P;if(!jt)return-1/0;Pe=jt.site;var _t=Pe.x,hr=Pe.y,Cr=hr-se;if(!Cr)return _t;var zr=_t-Ze,fi=1/st-1/Cr,$r=zr/Cr;return fi?(-$r+Math.sqrt($r*$r-2*fi*(zr*zr/(-2*Cr)-hr+Cr/2+et-st/2)))/fi+Ze:(Ze+_t)/2}function Sn(Z,se){var Pe=Z.N;if(Pe)return Ha(Pe,se);var Ze=Z.site;return Ze.y===se?Ze.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,Pe;se--;)Pe=Z[se].edge,(!Pe.b||!Pe.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],Pe=Z[1][0],Ze=Z[0][1],et=Z[1][1],st,jt,_t,hr,Cr=$a,zr=Cr.length,fi,$r,Bi,fn,mi,zi;zr--;)if(fi=Cr[zr],!(!fi||!fi.prepare()))for(Bi=fi.edges,fn=Bi.length,$r=0;$rOe||v(hr-jt)>Oe)&&(Bi.splice($r,0,new co(As(fi.site,zi,v(_t-se)Oe?{x:se,y:v(st-se)Oe?{x:v(jt-et)Oe?{x:Pe,y:v(st-Pe)Oe?{x:v(jt-Ze)=-Ie)){var $r=hr*hr+Cr*Cr,Bi=zr*zr+zi*zi,fn=(zi*$r-Cr*Bi)/fi,mi=(hr*Bi-zr*$r)/fi,zi=mi+_t,ji=ws.pop()||new Qo;ji.arc=Z,ji.site=et,ji.x=fn+jt,ji.y=zi+Math.sqrt(fn*fn+mi*mi),ji.cy=zi,Z.circle=ji;for(var pn=null,sn=wa._;sn;)if(ji.y0)){if(mi/=Bi,Bi<0){if(mi0){if(mi>$r)return;mi>fi&&(fi=mi)}if(mi=Pe-_t,!(!Bi&&mi<0)){if(mi/=Bi,Bi<0){if(mi>$r)return;mi>fi&&(fi=mi)}else if(Bi>0){if(mi0)){if(mi/=fn,fn<0){if(mi0){if(mi>$r)return;mi>fi&&(fi=mi)}if(mi=Ze-hr,!(!fn&&mi<0)){if(mi/=fn,fn<0){if(mi>$r)return;mi>fi&&(fi=mi)}else if(fn>0){if(mi0&&(et.a={x:_t+fi*Bi,y:hr+fi*fn}),$r<1&&(et.b={x:_t+$r*Bi,y:hr+$r*fn}),et}}}}}}function vn(Z){for(var se=ls,Pe=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Ze=se.length,et;Ze--;)et=se[Ze],(!da(et,Z)||!Pe(et)||v(et.a.x-et.b.x)=st)return;if(zr>$r){if(!Ze)Ze={x:fn,y:jt};else if(Ze.y>=_t)return;Pe={x:fn,y:_t}}else{if(!Ze)Ze={x:fn,y:_t};else if(Ze.y1)if(zr>$r){if(!Ze)Ze={x:(jt-ji)/zi,y:jt};else if(Ze.y>=_t)return;Pe={x:(_t-ji)/zi,y:_t}}else{if(!Ze)Ze={x:(_t-ji)/zi,y:_t};else if(Ze.y=st)return;Pe={x:st,y:zi*st+ji}}else{if(!Ze)Ze={x:st,y:zi*st+ji};else if(Ze.x=zr&&ji.x<=$r&&ji.y>=fi&&ji.y<=Bi?[[zr,Bi],[$r,Bi],[$r,fi],[zr,fi]]:[];pn.point=hr[mi]}),Cr}function _t(hr){return hr.map(function(Cr,zr){return{x:Math.round(Ze(Cr,zr)/Oe)*Oe,y:Math.round(et(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(hr){return qs(_t(hr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:hr[Cr.l.i],target:hr[Cr.r.i]}})},jt.triangles=function(hr){var Cr=[];return qs(_t(hr)).cells.forEach(function(zr,fi){for(var $r=zr.site,Bi=zr.edges.sort(Ko),fn=-1,mi=Bi.length,zi,ji,pn=Bi[mi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>wi&&(wi=zr.y),Bi.push(zr.x),fn.push(zr.y);else for(mi=0;misn&&(sn=xo),no>wi&&(wi=no),Bi.push(xo),fn.push(no)}var Xo=sn-ji,js=wi-pn;Xo>js?wi=pn+Xo:sn=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,+fi(Il,++mi),+$r(Il,mi),ji,pn,sn,wi)},pu.visit=function(Il){Vn(Il,pu,ji,pn,sn,wi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],ji,pn,sn,wi)},mi=-1,se==null){for(;++mist||$r>jt||Bi=xo,js=Pe>=no,El=js<<1|Xo,Pl=El+4;ElPe&&(st=se.slice(Pe,st),_t[jt]?_t[jt]+=st:_t[++jt]=st),(Ze=Ze[0])===(et=et[0])?_t[jt]?_t[jt]+=et:_t[++jt]=et:(_t[++jt]=null,hr.push({i:jt,x:un(Ze,et)})),Pe=qn.lastIndex;return Pe=0&&!(Ze=e.interpolators[Pe](Z,se)););return Ze}e.interpolators=[function(Z,se){var Pe=typeof se;return(Pe==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Ni?Ra:Array.isArray(se)?Ja:Pe==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var Pe=[],Ze=[],et=Z.length,st=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,Ze=se>=0?Z.slice(se+1):"in";return Pe=eo.get(Pe)||lo,Ze=sa.get(Ze)||G,es(Ze(Pe.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function rn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}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 se=Z*Z,Pe=se*Z;return 4*(Z<.5?Pe:3*(Z-se)+Pe-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var Pe;return arguments.length<2&&(se=.45),arguments.length?Pe=se/ft*Math.asin(1/Z):(Z=1,Pe=se/4),function(Ze){return 1+Z*Math.pow(2,-10*Ze)*Math.sin((Ze-Pe)*ft/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-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,se){Z=e.hcl(Z),se=e.hcl(se);var Pe=Z.h,Ze=Z.c,et=Z.l,st=se.h-Pe,jt=se.c-Ze,_t=se.l-et;return isNaN(jt)&&(jt=0,Ze=isNaN(Ze)?se.c:Ze),isNaN(st)?(st=0,Pe=isNaN(Pe)?se.h:Pe):st>180?st-=360:st<-180&&(st+=360),function(hr){return Lr(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var Pe=Z.h,Ze=Z.s,et=Z.l,st=se.h-Pe,jt=se.s-Ze,_t=se.l-et;return isNaN(jt)&&(jt=0,Ze=isNaN(Ze)?se.s:Ze),isNaN(st)?(st=0,Pe=isNaN(Pe)?se.h:Pe):st>180?st-=360:st<-180&&(st+=360),function(hr){return Gt(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var Pe=Z.l,Ze=Z.a,et=Z.b,st=se.l-Pe,jt=se.a-Ze,_t=se.b-et;return function(hr){return Vi(Pe+st*hr,Ze+jt*hr,et+_t*hr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(Pe){return Math.round(Z+se*Pe)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Pe){if(Pe!=null){se.setAttribute("transform",Pe);var Ze=se.transform.baseVal.consolidate()}return new ts(Ze?Ze.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],Pe=[Z.c,Z.d],Ze=qa(se),et=Wo(se,Pe),st=qa(ln(Pe,se,-et))||0;se[0]*Pe[1]180?se+=360:se-Z>180&&(Z+=360),Ze.push({i:Pe.push(ko(Pe)+"rotate(",null,")")-2,x:un(Z,se)})):se&&Pe.push(ko(Pe)+"rotate("+se+")")}function ea(Z,se,Pe,Ze){Z!==se?Ze.push({i:Pe.push(ko(Pe)+"skewX(",null,")")-2,x:un(Z,se)}):se&&Pe.push(ko(Pe)+"skewX("+se+")")}function rs(Z,se,Pe,Ze){if(Z[0]!==se[0]||Z[1]!==se[1]){var et=Pe.push(ko(Pe)+"scale(",null,",",null,")");Ze.push({i:et-4,x:un(Z[0],se[0])},{i:et-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Pe.push(ko(Pe)+"scale("+se+")")}function $s(Z,se){var Pe=[],Ze=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,Pe,Ze),za(Z.rotate,se.rotate,Pe,Ze),ea(Z.skew,se.skew,Pe,Ze),rs(Z.scale,se.scale,Pe,Ze),Z=se=null,function(et){for(var st=-1,jt=Ze.length,_t;++st0?st=wi:(Pe.c=null,Pe.t=NaN,Pe=null,se.end({type:"end",alpha:st=0})):wi>0&&(se.start({type:"start",alpha:st=wi}),Pe=ma(Z.tick)),Z):st},Z.start=function(){var wi,xo=Bi.length,no=fn.length,Xo=Ze[0],js=Ze[1],El,Pl;for(wi=0;wi=0;)st.push(zr=Cr[hr]),zr.parent=_t,zr.depth=_t.depth+1;Pe&&(_t.value=0),_t.children=Cr}else Pe&&(_t.value=+Pe.call(Ze,_t,_t.depth)||0),delete _t.children;return Oo(et,function(fi){var $r,Bi;Z&&($r=fi.children)&&$r.sort(Z),Pe&&(Bi=fi.parent)&&(Bi.value+=fi.value)}),jt}return Ze.sort=function(et){return arguments.length?(Z=et,Ze):Z},Ze.children=function(et){return arguments.length?(se=et,Ze):se},Ze.value=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze.revalue=function(et){return Pe&&(Jn(et,function(st){st.children&&(st.value=0)}),Oo(et,function(st){var jt;st.children||(st.value=+Pe.call(Ze,st,st.depth)||0),(jt=st.parent)&&(jt.value+=st.value)})),et},Ze};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var Pe=[Z];(Z=Pe.pop())!=null;)if(se(Z),(et=Z.children)&&(Ze=et.length))for(var Ze,et;--Ze>=0;)Pe.push(et[Ze])}function Oo(Z,se){for(var Pe=[Z],Ze=[];(Z=Pe.pop())!=null;)if(Ze.push(Z),(jt=Z.children)&&(st=jt.length))for(var et=-1,st,jt;++etet&&(et=_t),Ze.push(_t)}for(jt=0;jtZe&&(Pe=se,Ze=et);return Pe}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,Pe=vs,Ze=Io;function et(st,$r){for(var _t=[],hr=st.map(se,this),Cr=Pe.call(this,hr,$r),zr=Ze.call(this,Cr,hr,$r),fi,$r=-1,Bi=hr.length,fn=zr.length-1,mi=Z?1:1/Bi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(fi=_t[e.bisect(zr,zi,1,fn)-1],fi.y+=mi,fi.push(st[$r]));return _t}return et.value=function(st){return arguments.length?(se=st,et):se},et.range=function(st){return arguments.length?(Pe=gr(st),et):Pe},et.bins=function(st){return arguments.length?(Ze=typeof st=="number"?function(jt){return Da(jt,st)}:gr(st),et):Ze},et.frequency=function(st){return arguments.length?(Z=!!st,et):Z},et};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var Pe=-1,Ze=+Z[0],et=(Z[1]-Ze)/se,st=[];++Pe<=se;)st[Pe]=et*Pe+Ze;return st}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,Pe=[1,1],Ze;function et(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr=Pe[0],zr=Pe[1],fi=Ze==null?Math.sqrt:typeof Ze=="function"?Ze:function(){return Ze};if(hr.x=hr.y=0,Oo(hr,function(Bi){Bi.r=+fi(Bi.value)}),Oo(hr,Ro),se){var $r=se*(Ze?1:Math.max(2*hr.r/Cr,2*hr.r/zr))/2;Oo(hr,function(Bi){Bi.r+=$r}),Oo(hr,Ro),Oo(hr,function(Bi){Bi.r-=$r})}return hl(hr,Cr/2,zr/2,Ze?1:1/Math.max(2*hr.r/Cr,2*hr.r/zr)),_t}return et.size=function(st){return arguments.length?(Pe=st,et):Pe},et.radius=function(st){return arguments.length?(Ze=st==null||typeof st=="function"?st:+st,et):Ze},et.padding=function(st){return arguments.length?(se=+st,et):se},Ea(et,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var Pe=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=Pe,Pe._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var Pe=se.x-Z.x,Ze=se.y-Z.y,et=Z.r+se.r;return .999*et*et>Pe*Pe+Ze*Ze}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,Pe=1/0,Ze=-1/0,et=1/0,st=-1/0,jt,_t,hr,Cr,zr,fi,$r;function Bi(wi){Pe=Math.min(wi.x-wi.r,Pe),Ze=Math.max(wi.x+wi.r,Ze),et=Math.min(wi.y-wi.r,et),st=Math.max(wi.y+wi.r,st)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Bi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Bi(_t),$r>2))for(hr=se[2],Fa(jt,_t,hr),Bi(hr),cl(jt,hr),jt._pack_prev=hr,cl(hr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,hr=se[Cr]);var fn=0,mi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,mi++)if(Hs(zr,hr)){fn=1;break}if(fn==1)for(fi=jt._pack_prev;fi!==zr._pack_prev&&!Hs(fi,hr);fi=fi._pack_prev,zi++);fn?(mizi.x&&(zi=xo),xo.depth>ji.depth&&(ji=xo)});var pn=se(mi,zi)/2-mi.x,sn=Pe[0]/(zi.x+se(zi,mi)/2+pn),wi=Pe[1]/(ji.depth||1);Jn(Bi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*wi})}return $r}function st(zr){for(var fi={A:null,children:[zr]},$r=[fi],Bi;(Bi=$r.pop())!=null;)for(var fn=Bi.children,mi,zi=0,ji=fn.length;zi0&&(Is(Tt(mi,zr,$r),zr,xo),ji+=xo,pn+=xo),sn+=mi.m,ji+=Bi.m,wi+=zi.m,pn+=fn.m;mi&&!Rs(fn)&&(fn.t=mi,fn.m+=sn-pn),Bi&&!jo(zi)&&(zi.t=Bi,zi.m+=ji-wi,$r=zr)}return $r}function Cr(zr){zr.x*=Pe[0],zr.y=zr.depth*Pe[1]}return et.separation=function(zr){return arguments.length?(se=zr,et):se},et.size=function(zr){return arguments.length?(Ze=(Pe=zr)==null?Cr:null,et):Ze?null:Pe},et.nodeSize=function(zr){return arguments.length?(Ze=(Pe=zr)==null?null:Cr,et):Ze?Pe:null},Ea(et,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,Pe;return(Pe=se.length)?se[Pe-1]:Z.t}function Is(Z,se,Pe){var Ze=Pe/(se.i-Z.i);se.c-=Ze,se.s+=Pe,Z.c+=Ze,se.z+=Pe,se.m+=Pe}function Bs(Z){for(var se=0,Pe=0,Ze=Z.children,et=Ze.length,st;--et>=0;)st=Ze[et],st.z+=se,st.m+=se,se+=st.s+(Pe+=st.c)}function Tt(Z,se,Pe){return Z.a.parent===se.parent?Z.a:Pe}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,Pe=[1,1],Ze=!1;function et(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr,zr=0;Oo(hr,function(mi){var zi=mi.children;zi&&zi.length?(mi.x=wr(zi),mi.y=Vt(zi)):(mi.x=Cr?zr+=se(mi,Cr):0,mi.y=0,Cr=mi)});var fi=mr(hr),$r=Fr(hr),Bi=fi.x-se(fi,$r)/2,fn=$r.x+se($r,fi)/2;return Oo(hr,Ze?function(mi){mi.x=(mi.x-hr.x)*Pe[0],mi.y=(hr.y-mi.y)*Pe[1]}:function(mi){mi.x=(mi.x-Bi)/(fn-Bi)*Pe[0],mi.y=(1-(hr.y?mi.y/hr.y:1))*Pe[1]}),_t}return et.separation=function(st){return arguments.length?(se=st,et):se},et.size=function(st){return arguments.length?(Ze=(Pe=st)==null,et):Ze?null:Pe},et.nodeSize=function(st){return arguments.length?(Ze=(Pe=st)!=null,et):Ze?Pe:null},Ea(et,Z)};function Vt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,Pe){return se+Pe.x},0)/Z.length}function mr(Z){var se=Z.children;return se&&se.length?mr(se[0]):Z}function Fr(Z){var se=Z.children,Pe;return se&&(Pe=se.length)?Fr(se[Pe-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,Pe=[1,1],Ze=null,et=_i,st=!1,jt,_t="squarify",hr=.5*(1+Math.sqrt(5));function Cr(mi,zi){for(var ji=-1,pn=mi.length,sn,wi;++ji0;)pn.push(wi=sn[js-1]),pn.area+=wi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Bi(pn,Xo,ji,!1),Xo=Math.min(ji.dx,ji.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Bi(pn,Xo,ji,!0),pn.length=pn.area=0),zi.forEach(zr)}}function fi(mi){var zi=mi.children;if(zi&&zi.length){var ji=et(mi),pn=zi.slice(),sn,wi=[];for(Cr(pn,ji.dx*ji.dy/mi.value),wi.area=0;sn=pn.pop();)wi.push(sn),wi.area+=sn.area,sn.z!=null&&(Bi(wi,sn.z?ji.dx:ji.dy,ji,!pn.length),wi.length=wi.area=0);zi.forEach(fi)}}function $r(mi,zi){for(var ji=mi.area,pn,sn=0,wi=1/0,xo=-1,no=mi.length;++xosn&&(sn=pn));return ji*=ji,zi*=zi,ji?Math.max(zi*sn*hr/ji,ji/(zi*wi*hr)):1/0}function Bi(mi,zi,ji,pn){var sn=-1,wi=mi.length,xo=ji.x,no=ji.y,Xo=zi?se(mi.area/zi):0,js;if(zi==ji.dx){for((pn||Xo>ji.dy)&&(Xo=ji.dy);++snji.dx)&&(Xo=ji.dx);++sn1);return Z+se*Ze*Math.sqrt(-2*Math.log(st)/st)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,Pe=0;Pe2?Mi:Fn,Cr=Ze?Ds:us;return et=hr(Z,se,Cr,Pe),st=hr(se,Z,Cr,Eo),_t}function _t(hr){return et(hr)}return _t.invert=function(hr){return st(hr)},_t.domain=function(hr){return arguments.length?(Z=hr.map(Number),jt()):Z},_t.range=function(hr){return arguments.length?(se=hr,jt()):se},_t.rangeRound=function(hr){return _t.range(hr).interpolate(To)},_t.clamp=function(hr){return arguments.length?(Ze=hr,jt()):Ze},_t.interpolate=function(hr){return arguments.length?(Pe=hr,jt()):Pe},_t.ticks=function(hr){return pa(Z,hr)},_t.tickFormat=function(hr,Cr){return d3_scale_linearTickFormat(Z,hr,Cr)},_t.nice=function(hr){return ya(Z,hr),jt()},_t.copy=function(){return Gn(Z,se,Pe,Ze)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,di(ia(Z,se)[2])),Pi(Z,di(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var Pe=Ci(Z),Ze=Pe[1]-Pe[0],et=Math.pow(10,Math.floor(Math.log(Ze/se)/Math.LN10)),st=se/Ze*et;return st<=.15?et*=10:st<=.35?et*=5:st<=.75&&(et*=2),Pe[0]=Math.ceil(Pe[0]/et)*et,Pe[1]=Math.floor(Pe[1]/et)*et+et*.5,Pe[2]=et,Pe}function pa(Z,se){return e.range.apply(e,ia(Z,se))}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,se){var Pe=zn(se[2]);return Z in va?Math.abs(Pe-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):Pe-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,Pe,Ze){function et(_t){return(Pe?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function st(_t){return Pe?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z(et(_t))}return jt.invert=function(_t){return st(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(Pe=_t[0]>=0,Z.domain((Ze=_t.map(Number)).map(et)),jt):Ze},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(Ze.map(et)),jt):se},jt.nice=function(){var _t=Pi(Ze.map(et),Pe?Math:Ks);return Z.domain(_t),Ze=_t.map(st),jt},jt.ticks=function(){var _t=Ci(Ze),hr=[],Cr=_t[0],zr=_t[1],fi=Math.floor(et(Cr)),$r=Math.ceil(et(zr)),Bi=se%1?2:se;if(isFinite($r-fi)){if(Pe){for(;fi<$r;fi++)for(var fn=1;fn0;fn--)hr.push(st(fi)*fn);for(fi=0;hr[fi]zr;$r--);hr=hr.slice(fi,$r)}return hr},jt.copy=function(){return Cs(Z.copy(),se,Pe,Ze)},ta(jt,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,se,Pe){var Ze=xl(se),et=xl(1/se);function st(jt){return Z(Ze(jt))}return st.invert=function(jt){return et(Z.invert(jt))},st.domain=function(jt){return arguments.length?(Z.domain((Pe=jt.map(Number)).map(Ze)),st):Pe},st.ticks=function(jt){return pa(Pe,jt)},st.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(Pe,jt,_t)},st.nice=function(jt){return st.domain(ya(Pe,jt))},st.exponent=function(jt){return arguments.length?(Ze=xl(se=jt),et=xl(1/se),Z.domain(Pe.map(Ze)),st):se},st.copy=function(){return dl(Z.copy(),se,Pe)},ta(st,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Bl([],{t:"range",a:[[]]})};function Bl(Z,se){var Pe,Ze,et;function st(_t){return Ze[((Pe.get(_t)||(se.t==="range"?Pe.set(_t,Z.push(_t)):NaN))-1)%Ze.length]}function jt(_t,hr){return e.range(Z.length).map(function(Cr){return _t+hr*Cr})}return st.domain=function(_t){if(!arguments.length)return Z;Z=[],Pe=new T;for(var hr=-1,Cr=_t.length,zr;++hr0?Pe[st-1]:Z[0],st$r?0:1;if(zr=ye)return hr(zr,fn)+(Cr?hr(Cr,1-fn):"")+"Z";var mi,zi,ji,pn,sn=0,wi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(ji=Ze===ll?Math.sqrt(Cr*Cr+zr*zr):+Ze.apply(this,arguments),fn||(wi*=-1),zr&&(wi=Gr(ji/zr*Math.sin(pn))),Cr&&(sn=Gr(ji/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(fi+wi),no=zr*Math.sin(fi+wi),Xo=zr*Math.cos($r-wi),js=zr*Math.sin($r-wi);var Xu=Math.abs($r-fi-2*wi)<=Fe?0:1;if(wi&&Ll(xo,no,Xo,js)===fn^Xu){var Vu=(fi+$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-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(fi+sn),Il=Cr*Math.sin(fi+sn);var tf=Math.abs(fi-$r+2*sn)<=Fe?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^tf){var ds=(fi+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Bi>Oe&&(mi=Math.min(Math.abs(zr-Cr)/2,+Pe.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,Pe,Ze,et){var st=Z[0]-se[0],jt=Z[1]-se[1],_t=(et?Ze:-Ze)/Math.sqrt(st*st+jt*jt),hr=_t*jt,Cr=-_t*st,zr=Z[0]+hr,fi=Z[1]+Cr,$r=se[0]+hr,Bi=se[1]+Cr,fn=(zr+$r)/2,mi=(fi+Bi)/2,zi=$r-zr,ji=Bi-fi,pn=zi*zi+ji*ji,sn=Pe-Ze,wi=zr*Bi-$r*fi,xo=(ji<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-wi*wi)),no=(wi*ji-zi*xo)/pn,Xo=(-wi*zi-ji*xo)/pn,js=(wi*ji+zi*xo)/pn,El=(-wi*zi+ji*xo)/pn,Pl=no-fn,pu=Xo-mi,Il=js-fn,fu=El-mi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-hr,Xo-Cr],[no*Pe/sn,Xo*Pe/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,Pe=Ia,Ze=Os,et=Nl,st=et.key,jt=.7;function _t(hr){var Cr=[],zr=[],fi=-1,$r=hr.length,Bi,fn=gr(se),mi=gr(Pe);function zi(){Cr.push("M",et(Z(zr),jt))}for(;++fi<$r;)Ze.call(this,Bi=hr[fi],fi)?zr.push([+fn.call(this,Bi,fi),+mi.call(this,Bi,fi)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(hr){return arguments.length?(se=hr,_t):se},_t.y=function(hr){return arguments.length?(Pe=hr,_t):Pe},_t.defined=function(hr){return arguments.length?(Ze=hr,_t):Ze},_t.interpolate=function(hr){return arguments.length?(typeof hr=="function"?st=et=hr:st=(et=Gl.get(hr)||Nl).key,_t):st},_t.tension=function(hr){return arguments.length?(jt=hr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Nl,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Ft,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ue,"cardinal-open":ee,"cardinal-closed":ue,monotone:Ht});Gl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Nl(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,Pe=Z.length,Ze=Z[0],et=[Ze[0],",",Ze[1]];++se1&&et.push("H",Ze[0]),et.join("")}function q(Z){for(var se=0,Pe=Z.length,Ze=Z[0],et=[Ze[0],",",Ze[1]];++se1){_t=se[1],st=Z[hr],hr++,Ze+="C"+(et[0]+jt[0])+","+(et[1]+jt[1])+","+(st[0]-_t[0])+","+(st[1]-_t[1])+","+st[0]+","+st[1];for(var Cr=2;Cr9&&(st=Pe*3/Math.sqrt(st),jt[_t]=st*Ze,jt[_t+1]=st*et));for(_t=-1;++_t<=hr;)st=(Z[Math.min(hr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([st||0,jt[_t]*st||0]);return se}function Ht(Z){return Z.length<3?Nl(Z):Z[0]+rt(Z,pt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,Pe=-1,Ze=Z.length,et,st;++PeFe)+",1 "+fi}function Cr(zr,fi,$r,Bi){return"Q 0,0 "+Bi}return st.radius=function(zr){return arguments.length?(Pe=gr(zr),st):Pe},st.source=function(zr){return arguments.length?(Z=gr(zr),st):Z},st.target=function(zr){return arguments.length?(se=gr(zr),st):se},st.startAngle=function(zr){return arguments.length?(Ze=gr(zr),st):Ze},st.endAngle=function(zr){return arguments.length?(et=gr(zr),st):et},st};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Ir,Pe=li;function Ze(et,st){var jt=Z.call(this,et,st),_t=se.call(this,et,st),hr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:hr},{x:_t.x,y:hr},_t];return Cr=Cr.map(Pe),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Ze.source=function(et){return arguments.length?(Z=gr(et),Ze):Z},Ze.target=function(et){return arguments.length?(se=gr(et),Ze):se},Ze.projection=function(et){return arguments.length?(Pe=et,Ze):Pe},Ze};function li(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=li,Pe=Z.projection;return Z.projection=function(Ze){return arguments.length?Pe(Ei(se=Ze)):se},Z};function Ei(Z){return function(){var se=Z.apply(this,arguments),Pe=se[0],Ze=se[1]-fe;return[Pe*Math.cos(Ze),Pe*Math.sin(Ze)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function Pe(Ze,et){return(Ua.get(Z.call(this,Ze,et))||Yn)(se.call(this,Ze,et))}return Pe.type=function(Ze){return arguments.length?(Z=gr(Ze),Pe):Z},Pe.size=function(Ze){return arguments.length?(se=gr(Ze),Pe):se},Pe};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/Fe);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/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(Z){var se=Math.sqrt(Z/(2*vl)),Pe=se*vl;return"M0,"+-se+"L"+Pe+",0 0,"+se+" "+-Pe+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),Pe=se*Fo/2;return"M0,"+Pe+"L"+se+","+-Pe+" "+-se+","+-Pe+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),Pe=se*Fo/2;return"M0,"+-Pe+"L"+se+","+Pe+" "+-se+","+Pe+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*pe);De.transition=function(Z){for(var se=Ol||++Yl,Pe=tu(Z),Ze=[],et,st,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,hr=this.length;++_t0;)fi[--pn].call(Z,ji);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--st.count?delete st[Ze]:delete Z[Pe],1}jt||(_t=et.time,hr=ma($r,0,_t),jt=st[Ze]={tween:new T,time:_t,timer:hr,delay:et.delay,duration:et.duration,ease:et.ease,index:se},et=null,++st.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=$u,Pe=6,Ze=6,et=3,st=[10],jt=null,_t;function hr(Cr){Cr.each(function(){var zr=e.select(this),fi=this.__chart__||Z,$r=this.__chart__=Z.copy(),Bi=jt==null?$r.ticks?$r.ticks.apply($r,st):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,st):G:_t,mi=zr.selectAll(".tick").data(Bi,$r),zi=mi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),ji=e.transition(mi.exit()).style("opacity",Oe).remove(),pn=e.transition(mi.order()).style("opacity",1),sn=Math.max(Pe,0)+et,wi,xo=Ki($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=mi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Xu,Vu,tf,ds;if(se==="bottom"||se==="top"?(wi=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*Ze+"V0H"+xo[1]+"V"+fu*Ze)):(wi=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*Ze+","+xo[0]+"H0V"+xo[1]+"H"+fu*Ze)),js.attr(ds,fu*Pe),pu.attr(tf,fu*sn),El.attr(Vu,0).attr(ds,fu*Pe),Il.attr(Xu,0).attr(tf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;fi=$r=function(Tu){return Wl(Tu)+Au}}else fi.rangeBand?fi=$r:ji.call(wi,$r,fi);zi.call(wi,fi,$r),pn.call(wi,$r,$r)})}return hr.scale=function(Cr){return arguments.length?(Z=Cr,hr):Z},hr.orient=function(Cr){return arguments.length?(se=Cr in Ku?Cr+"":$u,hr):se},hr.ticks=function(){return arguments.length?(st=r(arguments),hr):st},hr.tickValues=function(Cr){return arguments.length?(jt=Cr,hr):jt},hr.tickFormat=function(Cr){return arguments.length?(_t=Cr,hr):_t},hr.tickSize=function(Cr){var zr=arguments.length;return zr?(Pe=+Cr,Ze=+arguments[zr-1],hr):Pe},hr.innerTickSize=function(Cr){return arguments.length?(Pe=+Cr,hr):Pe},hr.outerTickSize=function(Cr){return arguments.length?(Ze=+Cr,hr):Ze},hr.tickPadding=function(Cr){return arguments.length?(et=+Cr,hr):et},hr.tickSubdivide=function(){return arguments.length&&hr},hr};var $u="bottom",Ku={top:1,right:1,bottom:1,left:1};function Wu(Z,se,Pe){Z.attr("transform",function(Ze){var et=se(Ze);return"translate("+(isFinite(et)?et:Pe(Ze))+",0)"})}function ju(Z,se,Pe){Z.attr("transform",function(Ze){var et=se(Ze);return"translate(0,"+(isFinite(et)?et:Pe(Ze))+")"})}e.svg.brush=function(){var Z=Le(zr,"brushstart","brush","brushend"),se=null,Pe=null,Ze=[0,0],et=[0,0],st,jt,_t=!0,hr=!0,Cr=_f[0];function zr(mi){mi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),ji=zi.selectAll(".background").data([0]);ji.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.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 sn=e.transition(zi),wi=e.transition(ji),xo;se&&(xo=Ki(se),wi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),Pe&&(xo=Ki(Pe),wi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Bi(sn)),fi(sn)})}zr.event=function(mi){mi.each(function(){var zi=Z.of(this,arguments),ji={x:Ze,y:et,i:st,j:jt},pn=this.__chart__||ji;this.__chart__=ji,Ol?e.select(this).transition().each("start.brush",function(){st=pn.i,jt=pn.j,Ze=pn.x,et=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(Ze,ji.x),wi=Ja(et,ji.y);return st=jt=null,function(xo){Ze=ji.x=sn(xo),et=ji.y=wi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){st=ji.i,jt=ji.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function fi(mi){mi.selectAll(".resize").attr("transform",function(zi){return"translate("+Ze[+/e$/.test(zi)]+","+et[+/^s/.test(zi)]+")"})}function $r(mi){mi.select(".extent").attr("x",Ze[0]),mi.selectAll(".extent,.n>rect,.s>rect").attr("width",Ze[1]-Ze[0])}function Bi(mi){mi.select(".extent").attr("y",et[0]),mi.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function fn(){var mi=this,zi=e.select(e.event.target),ji=Z.of(mi,arguments),pn=e.select(mi),sn=zi.datum(),wi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&Pe,no=zi.classed("extent"),Xo=yr(mi),js,El=e.mouse(mi),Pl,pu=e.select(a(mi)).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]=Ze[0]-El[0],El[1]=et[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[Ze[1-Il]-El[0],et[1-fu]-El[1]],El[0]=Ze[Il],El[1]=et[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),ji({type:"brushstart"}),tf();function Xu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Ze[1],El[1]-=et[1],no=2),ge())}function Vu(){e.event.keyCode==32&&no==2&&(El[0]+=Ze[1],El[1]+=et[1],no=0,ge())}function tf(){var Au=e.mouse(mi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Ze[0]+Ze[1])/2,(et[0]+et[1])/2]),El[0]=Ze[+(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(Ae,ot,At,vt){function Je(He){return Ae(He=arguments.length===0?new Date:new Date(+He)),He}return Je.floor=function(He){return Ae(He=new Date(+He)),He},Je.ceil=function(He){return Ae(He=new Date(He-1)),ot(He,1),Ae(He),He},Je.round=function(He){var nt=Je(He),tt=Je.ceil(He);return He-nt0))return It;do It.push(Yt=new Date(+He)),ot(He,tt),Ae(He);while(Yt=nt)for(;Ae(nt),!He(nt);)nt.setTime(nt-1)},function(nt,tt){if(nt>=nt)if(tt<0)for(;++tt<=0;)for(;ot(nt,-1),!He(nt););else for(;--tt>=0;)for(;ot(nt,1),!He(nt););})},At&&(Je.count=function(He,nt){return t.setTime(+He),r.setTime(+nt),Ae(t),Ae(r),Math.floor(At(t,r))},Je.every=function(He){return He=Math.floor(He),!isFinite(He)||!(He>0)?null:He>1?Je.filter(vt?function(nt){return vt(nt)%He===0}:function(nt){return Je.count(0,nt)%He===0}):Je}),Je}var i=n(function(){},function(Ae,ot){Ae.setTime(+Ae+ot)},function(Ae,ot){return ot-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(ot){ot.setTime(Math.floor(ot/Ae)*Ae)},function(ot,At){ot.setTime(+ot+At*Ae)},function(ot,At){return(At-ot)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,ot){Ae.setTime(+Ae+ot*o)},function(Ae,ot){return(ot-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,_=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getHours()}),b=_.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setDate(Ae.getDate()+ot)},function(Ae,ot){return(ot-Ae-(ot.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),C=v.range;function E(Ae){return n(function(ot){ot.setDate(ot.getDate()-(ot.getDay()+7-Ae)%7),ot.setHours(0,0,0,0)},function(ot,At){ot.setDate(ot.getDate()+At*7)},function(ot,At){return(At-ot-(At.getTimezoneOffset()-ot.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),x=E(2),k=E(3),M=E(4),m=E(5),P=E(6),A=T.range,F=L.range,B=x.range,U=k.range,G=M.range,j=m.range,W=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setMonth(Ae.getMonth()+ot)},function(Ae,ot){return ot.getMonth()-Ae.getMonth()+(ot.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,ot){Ae.setFullYear(Ae.getFullYear()+ot)},function(Ae,ot){return ot.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setFullYear(Math.floor(ot.getFullYear()/Ae)*Ae),ot.setMonth(0,1),ot.setHours(0,0,0,0)},function(ot,At){ot.setFullYear(ot.getFullYear()+At*Ae)})};var ae=re.range,ge=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),ze=ge.range,Le=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getUTCHours()}),de=Le.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCDate(Ae.getUTCDate()+ot)},function(Ae,ot){return(ot-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(ot){ot.setUTCDate(ot.getUTCDate()-(ot.getUTCDay()+7-Ae)%7),ot.setUTCHours(0,0,0,0)},function(ot,At){ot.setUTCDate(ot.getUTCDate()+At*7)},function(ot,At){return(At-ot)/f})}var Se=Ee(0),Ge=Ee(1),De=Ee(2),xe=Ee(3),Ne=Ee(4),ce=Ee(5),je=Ee(6),Qe=Se.range,gt=Ge.range,qt=De.range,at=xe.range,Ke=Ne.range,Ct=ce.range,wt=je.range,Mt=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCMonth(Ae.getUTCMonth()+ot)},function(Ae,ot){return ot.getUTCMonth()-Ae.getUTCMonth()+(ot.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Bt=Mt.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCFullYear(Ae.getUTCFullYear()+ot)},function(Ae,ot){return ot.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setUTCFullYear(Math.floor(ot.getUTCFullYear()/Ae)*Ae),ot.setUTCMonth(0,1),ot.setUTCHours(0,0,0,0)},function(ot,At){ot.setUTCFullYear(ot.getUTCFullYear()+At*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=C,e.timeFriday=m,e.timeFridays=j,e.timeHour=_,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=F,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=W,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=B,e.timeWednesday=k,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=Ct,e.utcHour=Le,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=ge,e.utcMinutes=ze,e.utcMonday=Ge,e.utcMondays=gt,e.utcMonth=Mt,e.utcMonths=Bt,e.utcSaturday=je,e.utcSaturdays=wt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Se,e.utcSundays=Qe,e.utcThursday=Ne,e.utcThursdays=Ke,e.utcTuesday=De,e.utcTuesdays=qt,e.utcWednesday=xe,e.utcWednesdays=at,e.utcWeek=Se,e.utcWeeks=Qe,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var c3=Te((bL,Dee)=>{(function(e,t){typeof bL=="object"&&typeof Dee!="undefined"?t(bL,DO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(bL,function(e,t){"use strict";function r(be){if(0<=be.y&&be.y<100){var Oe=new Date(-1,be.m,be.d,be.H,be.M,be.S,be.L);return Oe.setFullYear(be.y),Oe}return new Date(be.y,be.m,be.d,be.H,be.M,be.S,be.L)}function n(be){if(0<=be.y&&be.y<100){var Oe=new Date(Date.UTC(-1,be.m,be.d,be.H,be.M,be.S,be.L));return Oe.setUTCFullYear(be.y),Oe}return new Date(Date.UTC(be.y,be.m,be.d,be.H,be.M,be.S,be.L))}function i(be,Oe,Ie){return{y:be,m:Oe,d:Ie,H:0,M:0,S:0,L:0}}function a(be){var Oe=be.dateTime,Ie=be.date,Fe=be.time,ft=be.periods,ye=be.days,fe=be.shortDays,pe=be.months,dt=be.shortMonths,Pt=h(ft),zt=d(ft),rr=h(ye),Gr=d(ye),Br=h(fe),Er=d(fe),Rr=h(pe),pi=d(pe),Di=h(dt),ni=d(dt),$i={a:jr,A:gi,b:ki,B:Vi,c:null,d:N,e:N,f:ze,H,I:re,j:ae,L:ge,m:Le,M:de,p:ti,q:tn,Q:nt,s:tt,S:te,u:ke,U:Ee,V:Se,w:Ge,W:De,x:null,X:null,y:xe,Y:Ne,Z:ce,"%":He},Qi={a:Yr,A:oi,b:Fi,B:an,c:null,d:je,e:je,f:Ke,H:Qe,I:gt,j:qt,L:at,m:Ct,M:wt,p:nn,q:Ri,Q:nt,s:tt,S:Mt,u:Bt,U:Zt,V:Et,w:Ae,W:ot,x:null,X:null,y:At,Y:vt,Z:Je,"%":He},si={a:Gt,A:Wt,b:xr,B:Lr,c:Nr,d:M,e:M,f:U,H:P,I:P,j:m,L:B,m:k,M:A,p:yt,q:x,Q:j,s:W,S:F,u:_,U:b,V:v,w:p,W:C,x:Or,X:Hr,y:T,Y:E,Z:L,"%":G};$i.x=Ti(Ie,$i),$i.X=Ti(Fe,$i),$i.c=Ti(Oe,$i),Qi.x=Ti(Ie,Qi),Qi.X=Ti(Fe,Qi),Qi.c=Ti(Oe,Qi);function Ti(Ii,xn){return function(bi){var Xr=[],ct=-1,tr=0,pr=Ii.length,gr,Zr,Ai;for(bi instanceof Date||(bi=new Date(+bi));++ct53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.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),pr="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-(pr+5)%7:Xr.w+Xr.U*7-(pr+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,bi,Xr){for(var ct=0,tr=xn.length,pr=bi.length,gr,Zr;ct=pr)return-1;if(gr=xn.charCodeAt(ct++),gr===37){if(gr=xn.charAt(ct++),Zr=si[gr in o?xn.charAt(ct++):gr],!Zr||(Xr=Zr(Ii,bi,Xr))<0)return-1}else if(gr!=bi.charCodeAt(Xr++))return-1}return Xr}function yt(Ii,xn,bi){var Xr=Pt.exec(xn.slice(bi));return Xr?(Ii.p=zt[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Gt(Ii,xn,bi){var Xr=Br.exec(xn.slice(bi));return Xr?(Ii.w=Er[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Wt(Ii,xn,bi){var Xr=rr.exec(xn.slice(bi));return Xr?(Ii.w=Gr[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function xr(Ii,xn,bi){var Xr=Di.exec(xn.slice(bi));return Xr?(Ii.m=ni[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Lr(Ii,xn,bi){var Xr=Rr.exec(xn.slice(bi));return Xr?(Ii.m=pi[Xr[0].toLowerCase()],bi+Xr[0].length):-1}function Nr(Ii,xn,bi){return Rt(Ii,Oe,xn,bi)}function Or(Ii,xn,bi){return Rt(Ii,Ie,xn,bi)}function Hr(Ii,xn,bi){return Rt(Ii,Fe,xn,bi)}function jr(Ii){return fe[Ii.getDay()]}function gi(Ii){return ye[Ii.getDay()]}function ki(Ii){return dt[Ii.getMonth()]}function Vi(Ii){return pe[Ii.getMonth()]}function ti(Ii){return ft[+(Ii.getHours()>=12)]}function tn(Ii){return 1+~~(Ii.getMonth()/3)}function Yr(Ii){return fe[Ii.getUTCDay()]}function oi(Ii){return ye[Ii.getUTCDay()]}function Fi(Ii){return dt[Ii.getUTCMonth()]}function an(Ii){return pe[Ii.getUTCMonth()]}function nn(Ii){return ft[+(Ii.getUTCHours()>=12)]}function Ri(Ii){return 1+~~(Ii.getUTCMonth()/3)}return{format:function(Ii){var xn=Ti(Ii+="",$i);return xn.toString=function(){return Ii},xn},parse:function(Ii){var xn=Ni(Ii+="",!1);return xn.toString=function(){return Ii},xn},utcFormat:function(Ii){var xn=Ti(Ii+="",Qi);return xn.toString=function(){return Ii},xn},utcParse:function(Ii){var xn=Ni(Ii+="",!0);return xn.toString=function(){return Ii},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(be,Oe,Ie){var Fe=be<0?"-":"",ft=(Fe?-be:be)+"",ye=ft.length;return Fe+(ye68?1900:2e3),Ie+Fe[0].length):-1}function L(be,Oe,Ie){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Ie,Ie+6));return Fe?(be.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Ie+Fe[0].length):-1}function x(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+1));return Fe?(be.q=Fe[0]*3-3,Ie+Fe[0].length):-1}function k(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.m=Fe[0]-1,Ie+Fe[0].length):-1}function M(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.d=+Fe[0],Ie+Fe[0].length):-1}function m(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+3));return Fe?(be.m=0,be.d=+Fe[0],Ie+Fe[0].length):-1}function P(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.H=+Fe[0],Ie+Fe[0].length):-1}function A(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.M=+Fe[0],Ie+Fe[0].length):-1}function F(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+2));return Fe?(be.S=+Fe[0],Ie+Fe[0].length):-1}function B(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+3));return Fe?(be.L=+Fe[0],Ie+Fe[0].length):-1}function U(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie,Ie+6));return Fe?(be.L=Math.floor(Fe[0]/1e3),Ie+Fe[0].length):-1}function G(be,Oe,Ie){var Fe=u.exec(Oe.slice(Ie,Ie+1));return Fe?Ie+Fe[0].length:-1}function j(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie));return Fe?(be.Q=+Fe[0],Ie+Fe[0].length):-1}function W(be,Oe,Ie){var Fe=s.exec(Oe.slice(Ie));return Fe?(be.s=+Fe[0],Ie+Fe[0].length):-1}function N(be,Oe){return f(be.getDate(),Oe,2)}function H(be,Oe){return f(be.getHours(),Oe,2)}function re(be,Oe){return f(be.getHours()%12||12,Oe,2)}function ae(be,Oe){return f(1+t.timeDay.count(t.timeYear(be),be),Oe,3)}function ge(be,Oe){return f(be.getMilliseconds(),Oe,3)}function ze(be,Oe){return ge(be,Oe)+"000"}function Le(be,Oe){return f(be.getMonth()+1,Oe,2)}function de(be,Oe){return f(be.getMinutes(),Oe,2)}function te(be,Oe){return f(be.getSeconds(),Oe,2)}function ke(be){var Oe=be.getDay();return Oe===0?7:Oe}function Ee(be,Oe){return f(t.timeSunday.count(t.timeYear(be)-1,be),Oe,2)}function Se(be,Oe){var Ie=be.getDay();return be=Ie>=4||Ie===0?t.timeThursday(be):t.timeThursday.ceil(be),f(t.timeThursday.count(t.timeYear(be),be)+(t.timeYear(be).getDay()===4),Oe,2)}function Ge(be){return be.getDay()}function De(be,Oe){return f(t.timeMonday.count(t.timeYear(be)-1,be),Oe,2)}function xe(be,Oe){return f(be.getFullYear()%100,Oe,2)}function Ne(be,Oe){return f(be.getFullYear()%1e4,Oe,4)}function ce(be){var Oe=be.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function je(be,Oe){return f(be.getUTCDate(),Oe,2)}function Qe(be,Oe){return f(be.getUTCHours(),Oe,2)}function gt(be,Oe){return f(be.getUTCHours()%12||12,Oe,2)}function qt(be,Oe){return f(1+t.utcDay.count(t.utcYear(be),be),Oe,3)}function at(be,Oe){return f(be.getUTCMilliseconds(),Oe,3)}function Ke(be,Oe){return at(be,Oe)+"000"}function Ct(be,Oe){return f(be.getUTCMonth()+1,Oe,2)}function wt(be,Oe){return f(be.getUTCMinutes(),Oe,2)}function Mt(be,Oe){return f(be.getUTCSeconds(),Oe,2)}function Bt(be){var Oe=be.getUTCDay();return Oe===0?7:Oe}function Zt(be,Oe){return f(t.utcSunday.count(t.utcYear(be)-1,be),Oe,2)}function Et(be,Oe){var Ie=be.getUTCDay();return be=Ie>=4||Ie===0?t.utcThursday(be):t.utcThursday.ceil(be),f(t.utcThursday.count(t.utcYear(be),be)+(t.utcYear(be).getUTCDay()===4),Oe,2)}function Ae(be){return be.getUTCDay()}function ot(be,Oe){return f(t.utcMonday.count(t.utcYear(be)-1,be),Oe,2)}function At(be,Oe){return f(be.getUTCFullYear()%100,Oe,2)}function vt(be,Oe){return f(be.getUTCFullYear()%1e4,Oe,4)}function Je(){return"+0000"}function He(){return"%"}function nt(be){return+be}function tt(be){return Math.floor(+be/1e3)}var It;Yt({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 Yt(be){return It=a(be),e.timeFormat=It.format,e.timeParse=It.parse,e.utcFormat=It.utcFormat,e.utcParse=It.utcParse,It}var cr="%Y-%m-%dT%H:%M:%S.%LZ";function _r(be){return be.toISOString()}var yr=Date.prototype.toISOString?_r:e.utcFormat(cr);function Ut(be){var Oe=new Date(be);return isNaN(Oe)?null:Oe}var Re=+new Date("2000-01-01T00:00:00.000Z")?Ut:e.utcParse(cr);e.isoFormat=yr,e.isoParse=Re,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var FO=Te((wL,Fee)=>{(function(e,t){typeof wL=="object"&&typeof Fee!="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,M){if((m=(k=M?k.toExponential(M-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,M){return function(m,P){for(var A=m.length,F=[],B=0,U=k[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),F.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=k[B=(B+1)%k.length];return F.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(m){return k[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new u({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[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 M=k.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(A+1):k}var f;function c(k,M){var m=r(k,M);if(!m)return k+"";var P=m[0],A=m[1],F=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,B=P.length;return F===B?P:F>B?P+new Array(F-B+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+r(k,Math.max(0,M+F-1))[0]}function h(k,M){var m=r(k,M);if(!m)return k+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},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 _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(k){var M=k.grouping===void 0||k.thousands===void 0?p:i(_.call(k.grouping,Number),k.thousands+""),m=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",A=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?p:a(_.call(k.numerals,String)),B=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,ge=N.symbol,ze=N.zero,Le=N.width,de=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(de=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(ze||H==="0"&&re==="=")&&(ze=!0,H="0",re="=");var Se=ge==="$"?m:ge==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ge=ge==="$"?P:/[%p]/.test(Ee)?B:"",De=d[Ee],xe=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ne(ce){var je=Se,Qe=Ge,gt,qt,at;if(Ee==="c")Qe=De(ce)+Qe,ce="";else{ce=+ce;var Ke=ce<0||1/ce<0;if(ce=isNaN(ce)?G:De(Math.abs(ce),te),ke&&(ce=l(ce)),Ke&&+ce==0&&ae!=="+"&&(Ke=!1),je=(Ke?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+je,Qe=(Ee==="s"?b[8+f/3]:"")+Qe+(Ke&&ae==="("?")":""),xe){for(gt=-1,qt=ce.length;++gtat||at>57){Qe=(at===46?A+ce.slice(gt+1):ce.slice(gt))+Qe,ce=ce.slice(0,gt);break}}}de&&!ze&&(ce=M(ce,1/0));var Ct=je.length+ce.length+Qe.length,wt=Ct>1)+je+ce+Qe+wt.slice(Ct);break;default:ce=wt+je+ce+Qe;break}return F(ce)}return Ne.toString=function(){return N+""},Ne}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,ge=Math.pow(10,-ae),ze=b[8+ae/3];return function(Le){return re(ge*Le)+ze}}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 T(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function x(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Oee=Te((Uir,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=Te((Vir,qee)=>{"use strict";var crt=Oee();qee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&crt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var rf=Te((Gir,Nee)=>{"use strict";Nee.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 BO=Te((AL,Uee)=>{(function(e,t){typeof AL=="object"&&typeof Uee!="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 _=new ArrayBuffer(s),b=new Uint8Array(_);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ag=Te((Hir,Vee)=>{"use strict";Vee.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 mp=Te(xm=>{"use strict";var hrt=BO().decode,drt=Ag(),OO=Array.isArray,prt=ArrayBuffer,vrt=DataView;function Gee(e){return prt.isView(e)&&!(e instanceof vrt)}xm.isTypedArray=Gee;function TL(e){return OO(e)||Gee(e)}xm.isArrayOrTypedArray=TL;function mrt(e){return!TL(e[0])}xm.isArray1D=mrt;xm.ensureArray=function(e,t){return OO(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 qO(e){return e.constructor===ArrayBuffer}xm.isArrayBuffer=qO;xm.decodeTypedArraySpec=function(e){var t=[],r=yrt(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;qO(o)||(o=hrt(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 Wee=ku(),UO=mp().isArrayOrTypedArray;Yee.exports=function(t,r){if(Wee(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 h3=DM(),wrt=/^\w*$/,Art=0,Kee=1,SL=2,Jee=3,mb=4;$ee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=h3(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 Trt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Srt=/^[^\.\[\]]+$/;ete.exports=function(e,t){for(;t;){var r=e.match(Trt);if(r)e=r[1];else if(e.match(Srt))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=Te((Yir,rte)=>{"use strict";var Mrt=ku();rte.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 Mrt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var ate=Te((Kir,nte)=>{"use strict";var ite=mp().isArrayOrTypedArray,FM=Ag();nte.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(ite(i)&&ite(a)&&FM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ert(e,t){var r=e%t;return r<0?r+t:r}function krt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}ote.exports={mod:Ert,modHalf:krt}});var hd=Te(($ir,EL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(xe,Ne){if(xe=xe||"",Ne=Ne||{},xe instanceof u)return xe;if(!(this instanceof u))return new u(xe,Ne);var ce=l(xe);this._originalInput=xe,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=Ne.format||ce.format,this._gradientType=Ne.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 xe=this.toRgb();return(xe.r*299+xe.g*587+xe.b*114)/1e3},getLuminance:function(){var xe=this.toRgb(),Ne,ce,je,Qe,gt,qt;return Ne=xe.r/255,ce=xe.g/255,je=xe.b/255,Ne<=.03928?Qe=Ne/12.92:Qe=e.pow((Ne+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),je<=.03928?qt=je/12.92:qt=e.pow((je+.055)/1.055,2.4),.2126*Qe+.7152*gt+.0722*qt},setAlpha:function(xe){return this._a=N(xe),this._roundA=i(100*this._a)/100,this},toHsv:function(){var xe=d(this._r,this._g,this._b);return{h:xe.h*360,s:xe.s,v:xe.v,a:this._a}},toHsvString:function(){var xe=d(this._r,this._g,this._b),Ne=i(xe.h*360),ce=i(xe.s*100),je=i(xe.v*100);return this._a==1?"hsv("+Ne+", "+ce+"%, "+je+"%)":"hsva("+Ne+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHsl:function(){var xe=c(this._r,this._g,this._b);return{h:xe.h*360,s:xe.s,l:xe.l,a:this._a}},toHslString:function(){var xe=c(this._r,this._g,this._b),Ne=i(xe.h*360),ce=i(xe.s*100),je=i(xe.l*100);return this._a==1?"hsl("+Ne+", "+ce+"%, "+je+"%)":"hsla("+Ne+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(xe){return _(this._r,this._g,this._b,xe)},toHexString:function(xe){return"#"+this.toHex(xe)},toHex8:function(xe){return b(this._r,this._g,this._b,this._a,xe)},toHex8String:function(xe){return"#"+this.toHex8(xe)},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[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(xe){var Ne="#"+v(this._r,this._g,this._b,this._a),ce=Ne,je=this._gradientType?"GradientType = 1, ":"";if(xe){var Qe=u(xe);ce="#"+v(Qe._r,Qe._g,Qe._b,Qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+je+"startColorstr="+Ne+",endColorstr="+ce+")"},toString:function(xe){var Ne=!!xe;xe=xe||this._format;var ce=!1,je=this._a<1&&this._a>=0,Qe=!Ne&&je&&(xe==="hex"||xe==="hex6"||xe==="hex3"||xe==="hex4"||xe==="hex8"||xe==="name");return Qe?xe==="name"&&this._a===0?this.toName():this.toRgbString():(xe==="rgb"&&(ce=this.toRgbString()),xe==="prgb"&&(ce=this.toPercentageRgbString()),(xe==="hex"||xe==="hex6")&&(ce=this.toHexString()),xe==="hex3"&&(ce=this.toHexString(!0)),xe==="hex4"&&(ce=this.toHex8String(!0)),xe==="hex8"&&(ce=this.toHex8String()),xe==="name"&&(ce=this.toName()),xe==="hsl"&&(ce=this.toHslString()),xe==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(xe,Ne){var ce=xe.apply(null,[this].concat([].slice.call(Ne)));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(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(xe,Ne){return xe.apply(null,[this].concat([].slice.call(Ne)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(xe,Ne){if(typeof xe=="object"){var ce={};for(var je in xe)xe.hasOwnProperty(je)&&(je==="a"?ce[je]=xe[je]:ce[je]=de(xe[je]));xe=ce}return u(xe,Ne)};function l(xe){var Ne={r:0,g:0,b:0},ce=1,je=null,Qe=null,gt=null,qt=!1,at=!1;return typeof xe=="string"&&(xe=Ge(xe)),typeof xe=="object"&&(Se(xe.r)&&Se(xe.g)&&Se(xe.b)?(Ne=f(xe.r,xe.g,xe.b),qt=!0,at=String(xe.r).substr(-1)==="%"?"prgb":"rgb"):Se(xe.h)&&Se(xe.s)&&Se(xe.v)?(je=de(xe.s),Qe=de(xe.v),Ne=p(xe.h,je,Qe),qt=!0,at="hsv"):Se(xe.h)&&Se(xe.s)&&Se(xe.l)&&(je=de(xe.s),gt=de(xe.l),Ne=h(xe.h,je,gt),qt=!0,at="hsl"),xe.hasOwnProperty("a")&&(ce=xe.a)),ce=N(ce),{ok:qt,format:xe.format||at,r:a(255,o(Ne.r,0)),g:a(255,o(Ne.g,0)),b:a(255,o(Ne.b,0)),a:ce}}function f(xe,Ne,ce){return{r:H(xe,255)*255,g:H(Ne,255)*255,b:H(ce,255)*255}}function c(xe,Ne,ce){xe=H(xe,255),Ne=H(Ne,255),ce=H(ce,255);var je=o(xe,Ne,ce),Qe=a(xe,Ne,ce),gt,qt,at=(je+Qe)/2;if(je==Qe)gt=qt=0;else{var Ke=je-Qe;switch(qt=at>.5?Ke/(2-je-Qe):Ke/(je+Qe),je){case xe:gt=(Ne-ce)/Ke+(Ne1&&(Mt-=1),Mt<1/6?Ct+(wt-Ct)*6*Mt:Mt<1/2?wt:Mt<2/3?Ct+(wt-Ct)*(2/3-Mt)*6:Ct}if(Ne===0)je=Qe=gt=ce;else{var at=ce<.5?ce*(1+Ne):ce+Ne-ce*Ne,Ke=2*ce-at;je=qt(Ke,at,xe+1/3),Qe=qt(Ke,at,xe),gt=qt(Ke,at,xe-1/3)}return{r:je*255,g:Qe*255,b:gt*255}}function d(xe,Ne,ce){xe=H(xe,255),Ne=H(Ne,255),ce=H(ce,255);var je=o(xe,Ne,ce),Qe=a(xe,Ne,ce),gt,qt,at=je,Ke=je-Qe;if(qt=je===0?0:Ke/je,je==Qe)gt=0;else{switch(je){case xe:gt=(Ne-ce)/Ke+(Ne>1)+720)%360;--Ne;)je.h=(je.h+Qe)%360,gt.push(u(je));return gt}function U(xe,Ne){Ne=Ne||6;for(var ce=u(xe).toHsv(),je=ce.h,Qe=ce.s,gt=ce.v,qt=[],at=1/Ne;Ne--;)qt.push(u({h:je,s:Qe,v:gt})),gt=(gt+at)%1;return qt}u.mix=function(xe,Ne,ce){ce=ce===0?0:ce||50;var je=u(xe).toRgb(),Qe=u(Ne).toRgb(),gt=ce/100,qt={r:(Qe.r-je.r)*gt+je.r,g:(Qe.g-je.g)*gt+je.g,b:(Qe.b-je.b)*gt+je.b,a:(Qe.a-je.a)*gt+je.a};return u(qt)},u.readability=function(xe,Ne){var ce=u(xe),je=u(Ne);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},u.isReadable=function(xe,Ne,ce){var je=u.readability(xe,Ne),Qe,gt;switch(gt=!1,Qe=De(ce),Qe.level+Qe.size){case"AAsmall":case"AAAlarge":gt=je>=4.5;break;case"AAlarge":gt=je>=3;break;case"AAAsmall":gt=je>=7;break}return gt},u.mostReadable=function(xe,Ne,ce){var je=null,Qe=0,gt,qt,at,Ke;ce=ce||{},qt=ce.includeFallbackColors,at=ce.level,Ke=ce.size;for(var Ct=0;CtQe&&(Qe=gt,je=u(Ne[Ct]));return u.isReadable(xe,je,{level:at,size:Ke})||!qt?je:(ce.includeFallbackColors=!1,u.mostReadable(xe,["#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(xe){var Ne={};for(var ce in xe)xe.hasOwnProperty(ce)&&(Ne[xe[ce]]=ce);return Ne}function N(xe){return xe=parseFloat(xe),(isNaN(xe)||xe<0||xe>1)&&(xe=1),xe}function H(xe,Ne){ge(xe)&&(xe="100%");var ce=ze(xe);return xe=a(Ne,o(0,parseFloat(xe))),ce&&(xe=parseInt(xe*Ne,10)/100),e.abs(xe-Ne)<1e-6?1:xe%Ne/parseFloat(Ne)}function re(xe){return a(1,o(0,xe))}function ae(xe){return parseInt(xe,16)}function ge(xe){return typeof xe=="string"&&xe.indexOf(".")!=-1&&parseFloat(xe)===1}function ze(xe){return typeof xe=="string"&&xe.indexOf("%")!=-1}function Le(xe){return xe.length==1?"0"+xe:""+xe}function de(xe){return xe<=1&&(xe=xe*100+"%"),xe}function te(xe){return e.round(parseFloat(xe)*255).toString(16)}function ke(xe){return ae(xe)/255}var Ee=function(){var xe="[-\\+]?\\d+%?",Ne="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ne+")|(?:"+xe+")",je="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",Qe="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+je),rgba:new RegExp("rgba"+Qe),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+Qe),hsv:new RegExp("hsv"+je),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 Se(xe){return!!Ee.CSS_UNIT.exec(xe)}function Ge(xe){xe=xe.replace(t,"").replace(r,"").toLowerCase();var Ne=!1;if(G[xe])xe=G[xe],Ne=!0;else if(xe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(xe))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(xe))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(xe))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(xe))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(xe))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(xe))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(xe))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex6.exec(xe))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ne?"name":"hex"}:(ce=Ee.hex4.exec(xe))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex3.exec(xe))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ne?"name":"hex"}:!1}function De(xe){var Ne,ce;return xe=xe||{level:"AA",size:"small"},Ne=(xe.level||"AA").toUpperCase(),ce=(xe.size||"small").toLowerCase(),Ne!=="AA"&&Ne!=="AAA"&&(Ne="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ne,size:ce}}typeof EL!="undefined"&&EL.exports?EL.exports=u:window.tinycolor=u})(Math)});var Su=Te(qM=>{"use strict";var ste=Ag(),BM=Array.isArray;function Crt(e,t){var r,n;for(r=0;r{"use strict";lte.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 NM=Te((tnr,ute)=>{"use strict";ute.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var j1=Te((rnr,hte)=>{"use strict";var fte=NM(),cte=gc(),VO=cte({editType:"none"});VO.family.dflt=fte.HOVERFONT;VO.size.dflt=fte.HOVERFONTSIZE;hte.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:VO,grouptitlefont:cte({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 p3=Te((inr,dte)=>{"use strict";var Lrt=gc(),UM=j1().hoverlabel,VM=Su().extendFlat;dte.exports={hoverlabel:{bgcolor:VM({},UM.bgcolor,{arrayOk:!0}),bordercolor:VM({},UM.bordercolor,{arrayOk:!0}),font:Lrt({arrayOk:!0,editType:"none"}),align:VM({},UM.align,{arrayOk:!0}),namelength:VM({},UM.namelength,{arrayOk:!0}),showarrow:VM({},UM.showarrow),editType:"none"}}});var Gf=Te((nnr,pte)=>{"use strict";var Prt=gc(),zrt=p3();pte.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:Prt({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:zrt.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=Te((anr,yte)=>{"use strict";var Irt=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)"]]},vte=kL.RdBu;function Rrt(e,t){if(t||(t=vte),!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()),mte(e)?e:t}function mte(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";gb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];gb.defaultLine="#444";gb.lightLine="#eee";gb.background="#fff";gb.borderLine="#BEC8D9";gb.lightFraction=100*10/11});var jl=Te((snr,gte)=>{"use strict";var wv=hd(),Frt=ku(),Brt=mp().isTypedArray,dd=gte.exports={},CL=Oh();dd.defaults=CL.defaults;var Ort=dd.defaultLine=CL.defaultLine;dd.lightLine=CL.lightLine;var HO=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||HO).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,HO)));var i=n.isDark()?t?n.lighten(t):HO:r?n.darken(r):Ort;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=Te((lnr,_te)=>{"use strict";_te.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var v3=Te(xte=>{"use strict";xte.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 Tte=Te(Av=>{"use strict";var WO=ku(),bte=hd(),wte=Su().extendFlat,qrt=Gf(),Nrt=yb(),Urt=jl(),Vrt=X1().DESELECTDIM,m3=DM(),Ate=v3().counter,Grt=d3().modHalf,bm=mp().isArrayOrTypedArray,Z1=mp().isTypedArraySpec,Y1=mp().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)),!WO(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||!WO(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)),bte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return bte(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"):WO(e)?t.set(Grt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||Ate(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:!!Ate(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 Ste={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},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:{}}},Mte={};function Ete(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),Ete(n,t[r]))}}Ete(Ste,Mte);kte.exports={configAttributes:Ste,dfltConfig:Mte}});var XO=Te((hnr,Cte)=>{"use strict";var jO=Jl(),Hrt=ku(),GM=[];Cte.exports=function(e,t){if(GM.indexOf(e)!==-1)return;GM.push(e);var r=1e3;Hrt(t)?r=t:t==="long"&&(r=3e3);var n=jO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(GM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=GM.indexOf(s);u!==-1&&GM.splice(u,1),jO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=jO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var y3=_b().dfltConfig,ZO=XO(),YO=Lte.exports={};YO.log=function(){var e;if(y3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};YO.warn=function(){var e;if(y3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};YO.error=function(){var e;if(y3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var PL=Te((pnr,Pte)=>{"use strict";Pte.exports=function(){}});var KO=Te((vnr,zte)=>{"use strict";zte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ite.exports=Wrt;function Wrt(){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 Fte=Te((ynr,Dte)=>{Dte.exports=jrt;function jrt(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 Ote=Te((gnr,Bte)=>{Bte.exports=Xrt;function Xrt(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 JO=Te((_nr,qte)=>{qte.exports=Zrt;function Zrt(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 Ute=Te((xnr,Nte)=>{Nte.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 Gte=Te((bnr,Vte)=>{Vte.exports=Krt;function Krt(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],_=t[13],b=t[14],v=t[15],C=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,x=n*l-a*s,k=i*l-a*u,M=f*_-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*_,F=c*v-d*_,B=h*v-d*b,U=C*B-E*F+T*A+L*P-x*m+k*M;return U?(U=1/U,e[0]=(s*B-u*F+l*A)*U,e[1]=(i*F-n*B-a*A)*U,e[2]=(_*k-b*x+v*L)*U,e[3]=(h*x-c*k-d*L)*U,e[4]=(u*P-o*B-l*m)*U,e[5]=(r*B-i*P+a*m)*U,e[6]=(b*T-p*k-v*E)*U,e[7]=(f*k-h*T+d*E)*U,e[8]=(o*F-s*P+l*M)*U,e[9]=(n*P-r*F-a*M)*U,e[10]=(p*x-_*T+v*C)*U,e[11]=(c*T-f*x-d*C)*U,e[12]=(s*m-o*A-u*M)*U,e[13]=(r*A-n*m+i*M)*U,e[14]=(_*E-p*L-b*C)*U,e[15]=(f*L-c*E+h*C)*U,e):null}});var Wte=Te((wnr,Hte)=>{Hte.exports=Jrt;function Jrt(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],_=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+_*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+_*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+_*(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*_)-f*(s*v-l*_)+p*(s*d-l*c),e[9]=-(r*(c*v-d*_)-f*(n*v-a*_)+p*(n*d-a*c)),e[10]=r*(s*v-l*_)-o*(n*v-a*_)+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*_)-f*(s*b-u*_)+p*(s*h-u*c)),e[13]=r*(c*b-h*_)-f*(n*b-i*_)+p*(n*h-i*c),e[14]=-(r*(s*b-u*_)-o*(n*b-i*_)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var Xte=Te((Anr,jte)=>{jte.exports=$rt;function $rt(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],_=e[14],b=e[15],v=t*o-r*a,C=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,x=n*u-i*s,k=l*p-f*d,M=l*_-c*d,m=l*b-h*d,P=f*_-c*p,A=f*b-h*p,F=c*b-h*_;return v*F-C*A+E*P+T*m-L*M+x*k}});var Yte=Te((Tnr,Zte)=>{Zte.exports=Qrt;function Qrt(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],_=t[12],b=t[13],v=t[14],C=t[15],E=r[0],T=r[1],L=r[2],x=r[3];return e[0]=E*n+T*s+L*c+x*_,e[1]=E*i+T*u+L*h+x*b,e[2]=E*a+T*l+L*d+x*v,e[3]=E*o+T*f+L*p+x*C,E=r[4],T=r[5],L=r[6],x=r[7],e[4]=E*n+T*s+L*c+x*_,e[5]=E*i+T*u+L*h+x*b,e[6]=E*a+T*l+L*d+x*v,e[7]=E*o+T*f+L*p+x*C,E=r[8],T=r[9],L=r[10],x=r[11],e[8]=E*n+T*s+L*c+x*_,e[9]=E*i+T*u+L*h+x*b,e[10]=E*a+T*l+L*d+x*v,e[11]=E*o+T*f+L*p+x*C,E=r[12],T=r[13],L=r[14],x=r[15],e[12]=E*n+T*s+L*c+x*_,e[13]=E*i+T*u+L*h+x*b,e[14]=E*a+T*l+L*d+x*v,e[15]=E*o+T*f+L*p+x*C,e}});var Jte=Te((Snr,Kte)=>{Kte.exports=eit;function eit(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,_,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],_=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]=_,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+_*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 Qte=Te((Mnr,$te)=>{$te.exports=tit;function tit(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 tre=Te((Enr,ere)=>{ere.exports=rit;function rit(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,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],_=t[4],b=t[5],v=t[6],C=t[7],E=t[8],T=t[9],L=t[10],x=t[11],k=i*i*f+l,M=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,F=o*a*f+i*u,B=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*k+_*M+E*m,e[1]=h*k+b*M+T*m,e[2]=d*k+v*M+L*m,e[3]=p*k+C*M+x*m,e[4]=c*P+_*A+E*F,e[5]=h*P+b*A+T*F,e[6]=d*P+v*A+L*F,e[7]=p*P+C*A+x*F,e[8]=c*B+_*U+E*G,e[9]=h*B+b*U+T*G,e[10]=d*B+v*U+L*G,e[11]=p*B+C*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var ire=Te((knr,rre)=>{rre.exports=iit;function iit(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 are=Te((Cnr,nre)=>{nre.exports=nit;function nit(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 sre=Te((Lnr,ore)=>{ore.exports=ait;function ait(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 ure=Te((Pnr,lre)=>{lre.exports=oit;function oit(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 cre=Te((znr,fre)=>{fre.exports=sit;function sit(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,_=a*l,b=o*s,v=o*u,C=o*l;return e[0]=1-(d+_),e[1]=c+C,e[2]=h-v,e[3]=0,e[4]=c-C,e[5]=1-(f+_),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 dre=Te((Inr,hre)=>{hre.exports=lit;function lit(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 vre=Te((Rnr,pre)=>{pre.exports=uit;function uit(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 yre=Te((Dnr,mre)=>{mre.exports=fit;function fit(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 _re=Te((Fnr,gre)=>{gre.exports=cit;function cit(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 bre=Te((Bnr,xre)=>{xre.exports=hit;function hit(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 Are=Te((Onr,wre)=>{wre.exports=dit;function dit(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,_=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+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Sre=Te((qnr,Tre)=>{Tre.exports=pit;function pit(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 Ere=Te((Nnr,Mre)=>{Mre.exports=vit;function vit(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 Cre=Te((Unr,kre)=>{kre.exports=mit;function mit(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 Pre=Te((Vnr,Lre)=>{Lre.exports=yit;function yit(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 Ire=Te((Gnr,zre)=>{var git=JO();zre.exports=_it;function _it(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],_=t[1],b=t[2],v=n[0],C=n[1],E=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(p-T)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?git(e):(f=p-T,c=_-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*_+o*b),e[13]=-(s*p+u*_+l*b),e[14]=-(f*p+c*_+h*b),e[15]=1,e)}});var Dre=Te((Hnr,Rre)=>{Rre.exports=xit;function xit(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 $O=Te((Wnr,Fre)=>{Fre.exports={create:Rte(),clone:Fte(),copy:Ote(),identity:JO(),transpose:Ute(),invert:Gte(),adjoint:Wte(),determinant:Xte(),multiply:Yte(),translate:Jte(),scale:Qte(),rotate:tre(),rotateX:ire(),rotateY:are(),rotateZ:sre(),fromRotation:ure(),fromRotationTranslation:cre(),fromScaling:dre(),fromTranslation:vre(),fromXRotation:yre(),fromYRotation:_re(),fromZRotation:bre(),fromQuat:Are(),frustum:Sre(),perspective:Ere(),perspectiveFromFieldOfView:Cre(),ortho:Pre(),lookAt:Ire(),str:Dre()}});var zL=Te(xh=>{"use strict";var bit=$O();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var wit=Jl(),Bre=K1(),Ait=zL(),Tit=$O();function Sit(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 Mit(e){var t=wit.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Ore(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Eit(e,t){qre("global",e,t)}function qre(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 kit(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Ore(r)}function Cit(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 Lit(e){var t=Ure(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=Nre(n);if(i){var a=Ait.convertCssMatrix(i);r=Tit.multiply(r,r,a)}}),r}function Nre(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 Ure(e){for(var t=[];Pit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Pit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function zit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Vre.exports={getGraphDiv:Sit,isPlotDiv:Mit,removeElement:Ore,addStyleRule:Eit,addRelatedStyleRule:qre,deleteRelatedStyleRule:kit,setStyleOnHover:Cit,getFullTransformMatrix:Lit,getElementTransformMatrix:Nre,getElementAndAncestors:Ure,equalDomRects:zit}});var WM=Te((Znr,Gre)=>{"use strict";Gre.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=Te((Ynr,Kre)=>{"use strict";var Wre=Su().extendFlat,Iit=Ag(),jre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Xre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Rit=jre.flags.slice().concat(["fullReplot"]),Dit=Xre.flags.slice().concat("layoutReplot");Kre.exports={traces:jre,layout:Xre,traceFlags:function(){return Hre(Rit)},layoutFlags:function(){return Hre(Dit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";QO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};QO.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 eq=Te((Jnr,Jre)=>{"use strict";Jre.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=Te(g3=>{"use strict";var{DATE_FORMAT_LINK:Fit,FORMAT_LINK:Bit}=eq(),Oit=["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 qit({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}".`,Bit,"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}".`,Fit,"for details on the date formatting syntax.",Oit].join(" ")}g3.templateFormatStringDescription=qit;g3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});g3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});g3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});g3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var DL=Te((ear,iie)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function $re(e,t){return t?t.l2d(e):e}function Nit(e){return e.x0}function Uit(e){return e.x1}function Vit(e){return e.y0}function Git(e){return e.y1}function Qre(e){return e.x0shift||0}function eie(e){return e.x1shift||0}function tie(e){return e.y0shift||0}function rie(e){return e.y1shift||0}function IL(e,t){return J1(e.x1,t)+eie(e)-J1(e.x0,t)-Qre(e)}function RL(e,t,r){return J1(e.y1,r)+rie(e)-J1(e.y0,r)-tie(e)}function Hit(e,t){return Math.abs(IL(e,t))}function Wit(e,t,r){return Math.abs(RL(e,t,r))}function jit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(IL(e,t),2)+Math.pow(RL(e,t,r),2))}function Xit(e,t){return $re((J1(e.x1,t)+eie(e)+J1(e.x0,t)+Qre(e))/2,t)}function Zit(e,t,r){return $re((J1(e.y1,r)+rie(e)+J1(e.y0,r)+tie(e))/2,r)}function Yit(e,t,r){return e.type!=="line"?void 0:RL(e,t,r)/IL(e,t)}var Kit=["x0","x1","y0","y1","dy","height","ycenter"],Jit=["x0","x1","y0","y1","dx","width","xcenter"];iie.exports={x0:Nit,x1:Uit,y0:Vit,y1:Git,slope:Yit,dx:IL,dy:RL,width:Hit,height:Wit,length:jit,xcenter:Xit,ycenter:Zit,simpleXVariables:Kit,simpleYVariables:Jit}});var oie=Te((tar,aie)=>{"use strict";var $it=Sc().overrideAll,xb=Gf(),nie=gc(),Qit=Id().dash,$1=Su().extendFlat,{shapeTexttemplateAttrs:ent,templatefallbackAttrs:tnt}=Ff(),rnt=DL();aie.exports=$it({newshape:{visible:$1({},xb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},xb.legend,{}),legendgroup:$1({},xb.legendgroup,{}),legendgrouptitle:{text:$1({},xb.legendgrouptitle.text,{}),font:nie({})},legendrank:$1({},xb.legendrank,{}),legendwidth:$1({},xb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},Qit,{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({},xb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:ent({newshape:!0},{keys:Object.keys(rnt)}),texttemplatefallback:tnt({editType:"arraydraw"}),font:nie({}),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 lie=Te((rar,sie)=>{"use strict";var int=Id().dash,nnt=Su().extendFlat;sie.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:nnt({},int,{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=Te((iar,uie)=>{"use strict";uie.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 _3=Te((nar,die)=>{"use strict";var tq=gc(),ant=WM(),BL=Oh(),fie=oie(),cie=lie(),ont=FL(),hie=Su().extendFlat,OL=tq({editType:"calc"});OL.family.dflt='"Open Sans", verdana, arial, sans-serif';OL.size.dflt=12;OL.color.dflt=BL.defaultLine;die.exports={font:OL,title:{text:{valType:"string",editType:"layoutstyle"},font:tq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:tq({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:hie(ont({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:fie.newshape,activeshape:fie.activeshape,newselection:cie.newselection,activeselection:cie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:hie({},ant.transition,{editType:"none"})}});var pie=Te(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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=Te(Af=>{"use strict";var x3=K1(),vie=PL(),mie=KO(),snt=Ag(),lnt=HM().addStyleRule,yie=Su(),unt=Gf(),fnt=_3(),cnt=yie.extendFlat,rq=yie.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 ynt=c3().timeFormat,kie=ku(),iq=K1(),e_=d3().mod,A3=rf(),_0=A3.BADNUM,Tv=A3.ONEDAY,jM=A3.ONEHOUR,Q1=A3.ONEMIN,w3=A3.ONESEC,XM=A3.EPOCHJD,Tg=$l(),wie=c3().utcFormat,gnt=/^\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,_nt=/^\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,Aie=new Date().getFullYear()-70;function Sg(e){return e&&Tg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=xnt(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=Tv*(t-1),bh.ms2DateTime(n,0,e)};function xnt(e,t){return Sg(e)?t?Tg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Tg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return Sg(e)?Tg.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())*w3+(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=Sg(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?_nt:gnt);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 _;try{var b=Tg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),_=b.newDate(l,b.toMonthIndex(l,f,v),c)}else _=b.newDate(l,Number(f),c)}catch(E){return _0}return _?(_.toJD()-XM)*Tv+h*jM+d*Q1+p*w3:_0}l.length===2?l=(Number(l)+2e3-Aie)%100+Aie: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*w3};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 b3(e,t){return String(e+Math.pow(10,t)).slice(1)}var qL=90*Tv,Tie=3*jM,Sie=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(Sg(r)){var c=Math.floor(i/Tv)+XM,h=Math.floor(e_(e,Tv));try{a=Tg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=wie("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=ynt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return Cie(n,i,a,o,s)};function Cie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+b3(t,2)+":"+b3(r,2),(n||i)&&(e+=":"+b3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+b3(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(Sg(r))return iq.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 iq.error("unrecognized date",e),t;return e};var bnt=/%\d?f/g,wnt=/%h/g,Ant={1:"1",2:"1",3:"2",4:"2"};function Mie(e,t,r,n){e=e.replace(bnt,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(wnt,function(){return Ant[r("%q")(i)]}),Sg(n))try{e=Tg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Tnt=[59,59.9,59.99,59.999,59.9999];function Snt(e,t){var r=e_(e+.05,Tv),n=b3(Math.floor(r/jM),2)+":"+b3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){kie(t)||(t=0);var i=Math.min(e_(e/w3,60),Tnt[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=Sg(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 Snt(e,r)+` -`+Mie(a.dayMonthYear,e,n,i);return Mie(t,e,n,i)};var Eie=3*Tv;bh.incrementMonth=function(e,t,r){r=Sg(r)&&r;var n=e_(e,Tv);if(e=Math.round(e-n),r)try{var i=Math.round(e/Tv)+XM,a=Tg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-XM)*Tv+n}catch(u){iq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+Eie);return s.setUTCMonth(s.getUTCMonth()+t)+n-Eie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=Sg(t)&&Tg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Pie.exports=function(t){return t}});var UL=Te(Mg=>{"use strict";var Mnt=ku(),Ent=K1(),knt=ZM(),Cnt=rf().BADNUM,nq=1e-9;Mg.findBin=function(e,t,r){if(Mnt(t.start))return r?Math.ceil((e-t.start)/t.size-nq)-1:Math.floor((e-t.start)/t.size+nq);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?Lnt:Pnt:u=r?Int:znt,e+=o*nq*(r?-1:1)*(o>=0?1:-1);n90&&Ent.log("Long binary search..."),n-1};function Lnt(e,t){return et}function Int(e,t){return e>=t}Mg.sorterAsc=function(e,t){return e-t};Mg.sorterDes=function(e,t){return t-e};Mg.distinctVals=function(e){var t=e.slice();t.sort(Mg.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Cnt;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}};Mg.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()};Mg.findIndexOfMin=function(e,t){t=t||knt;for(var r=1/0,n,i=0;i{"use strict";zie.exports=function(t){return Object.keys(t).sort()}});var Iie=Te(wh=>{"use strict";var YM=ku(),Rnt=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),YM(t)||(t=!1),Rnt(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 Oie=Te((dar,Bie)=>{"use strict";var Rie=d3(),aq=Rie.mod,Dnt=Rie.modHalf,KM=Math.PI,r_=2*KM;function Fnt(e){return e/180*KM}function Bnt(e){return e/KM*180}function oq(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Die(e,t){return Dnt(t-e,r_)}function Ont(e,t){return Math.abs(Die(e,t))}function Fie(e,t){if(oq(t))return!0;var r,n;t[0]n&&(n+=r_);var i=aq(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function qnt(e,t,r,n){if(!Fie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function sq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=oq([r,n]),u,l,f,c,h;s?(u=0,l=KM,f=r_):r{"use strict";bb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};bb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};bb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};bb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};bb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};bb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Vie=Te(wb=>{"use strict";var lq=d3().mod;wb.segmentsIntersect=Uie;function Uie(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 _=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||_<0||_>1?null:{x:e+u*_,y:t+c*_}}wb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Uie(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,_=Math.min(VL(l,f,d,a-t,o-r),VL(l,f,d,s-t,u-r),VL(c,h,p,t-a,r-o),VL(c,h,p,n-a,i-o));return Math.sqrt(_)};function VL(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 GL,uq,Nie;wb.getTextLocation=function(t,r,n,i){if((t!==uq||i!==Nie)&&(GL={},uq=t,Nie=i),GL[n])return GL[n];var a=t.getPointAtLength(lq(n-i/2,r)),o=t.getPointAtLength(lq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(lq(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 GL[n]=c,c};wb.clearLocationCache=function(){uq=null};wb.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(_){var b=t.getPointAtLength(_);_===0?c=b:_===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}};wb.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 HL=Te(JM=>{"use strict";var Eg={};JM.throttle=function(t,r,n){var i=Eg[t],a=Date.now();if(!i){for(var o in Eg)Eg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};JM.done=function(e){var t=Eg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};JM.clear=function(e){if(e)Gie(Eg[e]),delete Eg[e];else for(var t in Eg)JM.clear(t)};function Gie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Wie=Te((gar,Hie)=>{"use strict";Hie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var jie=Te((_ar,WL)=>{"use strict";WL.exports=fq;WL.exports.isMobile=fq;WL.exports.default=fq;var Gnt=/(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,Hnt=/CrOS/,Wnt=/android|ipad|playbook|silk/i;function fq(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=Gnt.test(t)&&!Hnt.test(t)||!!e.tablet&&Wnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Zie=Te((xar,Xie)=>{"use strict";var jnt=ku(),Xnt=jie();Xie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Znt(),typeof r!="string")return!0;var n=Xnt({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(jnt(l)&&(l=+l),l>=13)return!0}}}return n};function Znt(){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 Kie=Te((bar,Yie)=>{"use strict";var Ynt=Jl();Yie.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 $ie=Te((war,Jie)=>{"use strict";var Knt=$l();Jie.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=Knt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var cq=Te((Aar,Qie)=>{"use strict";Qie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";ene.exports=function(t){for(var r=Qnt(t)?$nt:Jnt,n=[],i=0;i{"use strict";rne.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 ane=Te((Mar,nne)=>{"use strict";var eat=ku(),tat=rf().BADNUM,rat=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nne.exports=function(t){return typeof t=="string"&&(t=t.replace(rat,"")),eat(t)?Number(t):tat}});var ei=Te((Ear,gne)=>{"use strict";var $M=Jl(),iat=c3().utcFormat,nat=FO().format,cne=ku(),hne=rf(),dne=hne.FP_SAFE,aat=-dne,one=hne.BADNUM,An=gne.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 sne={};An.warnBadFormat=function(e){var t=String(e);sne[t]||(sne[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=nat(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=DM();An.keyedContainer=Qee();An.relativeAttr=tte();An.isPlainObject=Ag();An.toLogRange=SL();An.relinkPrivateKeys=ate();var i_=mp();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 pne=d3();An.mod=pne.mod;An.modHalf=pne.modHalf;var n_=Tte();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=Lie();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 Ab=UL();An.findBin=Ab.findBin;An.sorterAsc=Ab.sorterAsc;An.sorterDes=Ab.sorterDes;An.distinctVals=Ab.distinctVals;An.roundUp=Ab.roundUp;An.sort=Ab.sort;An.findIndexOfMin=Ab.findIndexOfMin;An.sortObjectKeys=t_();var kg=Iie();An.aggNums=kg.aggNums;An.len=kg.len;An.mean=kg.mean;An.geometricMean=kg.geometricMean;An.median=kg.median;An.midRange=kg.midRange;An.variance=kg.variance;An.stdev=kg.stdev;An.interp=kg.interp;var wm=PL();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=Oie();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 S3=qie();An.isLeftAnchor=S3.isLeftAnchor;An.isCenterAnchor=S3.isCenterAnchor;An.isRightAnchor=S3.isRightAnchor;An.isTopAnchor=S3.isTopAnchor;An.isMiddleAnchor=S3.isMiddleAnchor;An.isBottomAnchor=S3.isBottomAnchor;var M3=Vie();An.segmentsIntersect=M3.segmentsIntersect;An.segmentDistance=M3.segmentDistance;An.getTextLocation=M3.getTextLocation;An.clearLocationCache=M3.clearLocationCache;An.getVisibleSegment=M3.getVisibleSegment;An.findPointOnPath=M3.findPointOnPath;var ZL=Su();An.extendFlat=ZL.extendFlat;An.extendDeep=ZL.extendDeep;An.extendDeepAll=ZL.extendDeepAll;An.extendDeepNoArrays=ZL.extendDeepNoArrays;var hq=K1();An.log=hq.log;An.warn=hq.warn;An.error=hq.error;var oat=v3();An.counterRegex=oat.counter;var dq=HL();An.throttle=dq.throttle;An.throttleDone=dq.done;An.clearThrottle=dq.clear;var Am=HM();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=Wie();An.preserveDrawingBuffer=Zie();An.makeTraceGroups=Kie();An._=$ie();An.notifier=XO();An.filterUnique=cq();An.filterVisible=tne();An.pushUnique=KO();An.increment=ine();An.cleanNumber=ane();An.ensureNumber=function(t){return cne(t)?(t=Number(t),t>dne||t=t?!1:cne(e)&&e>=0&&e%1===0};An.noop=LL();An.identity=ZM();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;iuat.test(window.navigator.userAgent);var fat=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=fat.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 $M.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 yne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return yne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var dat={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=e=>pq(W1(_m({},e),{opts:dat}));var pat={max:10,count:0,name:"texttemplate"};An.texttemplateString=e=>pq(W1(_m({},e),{opts:pat}));var vat=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function mat(e){var t=e.match(vat);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var yat={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=e=>pq(W1(_m({},e),{opts:yat}));var lne=/^[:|\|]/;function pq({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,_=null;if(i.parseMultDiv){var b=mat(s);s=b.key,p=b.op,_=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(yne.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,M=r===!1?o:r;return L=XL&&o<=une,l=s>=XL&&s<=une;if(u&&(n=10*n+o-XL),l&&(i=10*i+s-XL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var T3=2e9;An.seedPseudoRandom=function(){T3=2e9};An.pseudoRandom=function(){var e=T3;return T3=(69069*T3+1)%4294967296,Math.abs(T3-e)<429496729?An.pseudoRandom():T3/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 fne=An.getFirefoxVersion(),gat=fne!==null&&fne<86;An.getPositionFromD3Event=function(){return gat?[$M.event.layerX,$M.event.layerY]:[$M.event.offsetX,$M.event.offsetY]}});var bne=Te(()=>{"use strict";var _at=ei(),_ne={"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(vq in _ne)xne=vq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),_at.addStyleRule(xne,_ne[vq]);var xne,vq});var mq=Te((Par,wne)=>{wne.exports=!0});var gq=Te((zar,Ane)=>{"use strict";var xat=mq(),yq;typeof window.matchMedia=="function"?yq=!window.matchMedia("(hover: none)").matches:yq=xat;Ane.exports=yq});var Tb=Te((Iar,_q)=>{"use strict";var E3=typeof Reflect=="object"?Reflect:null,Tne=E3&&typeof E3.apply=="function"?E3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},YL;E3&&typeof E3.ownKeys=="function"?YL=E3.ownKeys:Object.getOwnPropertySymbols?YL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:YL=function(t){return Object.getOwnPropertyNames(t)};function bat(e){console&&console.warn&&console.warn(e)}var Mne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}_q.exports=qc;_q.exports.once=Sat;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var Sne=10;function KL(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 Sne},set:function(e){if(typeof e!="number"||e<0||Mne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Sne=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||Mne(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 Ene(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return Ene(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")Tne(u,this,r);else for(var l=u.length,f=zne(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,bat(s)}return e}qc.prototype.addListener=function(t,r){return kne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return kne(this,t,r,!0)};function wat(){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 Cne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=wat.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return KL(r),this.on(t,Cne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return KL(r),this.prependListener(t,Cne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(KL(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():Aat(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 Lne(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?Tat(i):zne(i,i.length)}qc.prototype.listeners=function(t){return Lne(this,t,!0)};qc.prototype.rawListeners=function(t){return Lne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Pne.call(e,t)};qc.prototype.listenerCount=Pne;function Pne(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?YL(this._events):[]};function zne(e,t){for(var r=new Array(t),n=0;n{"use strict";var xq=Tb().EventEmitter,Eat={init:function(e){if(e._ev instanceof xq)return e;var t=new xq,r=new xq;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 Dne=ei(),kat=_b().dfltConfig;function Cat(e,t){for(var r=[],n,i=0;ikat.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Cg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Cg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Cg.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";One.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var P3=Te(id=>{"use strict";var x0=$l(),QM=ei(),$L=Gf(),wq=_3(),Lat=bq(),Pat=WM(),zat=_b().configAttributes,qne=Sc(),Tm=QM.extendDeepAll,C3=QM.isPlainObject,Iat=QM.isArrayOrTypedArray,QL=QM.nestedProperty,Rat=QM.valObjectMeta,Aq="_isSubplotObj",eP="_isLinkedToArray",Dat="_arrayAttrRegexps",Une="_deprecated",Tq=[Aq,eP,Dat,Une];id.IS_SUBPLOT_OBJ=Aq;id.IS_LINKED_TO_ARRAY=eP;id.DEPRECATED=Une;id.UNDERSCORE_ATTRS=Tq;id.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Bat(t)}),{defs:{valObjects:Rat,metaKeys:Tq.concat(["description","role","editType","impliedEdits"]),editType:{traces:qne.traces,layout:qne.layout},impliedEdits:{}},traces:e,layout:Oat(),frames:qat(),animation:L3(Pat),config:L3(zat)}};id.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(Tq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!id.isValObject(o)&&C3(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)Iat(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(!JL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function JL(e){return e===Math.round(e)&&e>=0}function Bat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Tm({},$L),a=Tm({},t.attributes);id.crawl(a,function(u,l,f,c,h){QL(i,h).set(void 0),u===void 0&&QL(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:L3(n)};if(t.layoutAttributes){var s={};Tm(s,t.layoutAttributes),o.layoutAttributes=L3(s)}return t.animatable||id.crawl(o,function(u){id.isValObject(u)&&"anim"in u&&delete u.anim}),o}function Oat(){var e={},t,r;Tm(e,wq);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=ei(),Hat=Gf(),a_="templateitemname",Sq={name:{valType:"string",editType:"none"}};Sq[a_]={valType:"string",editType:"calc"};Sb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Sq.name,t[a_]=Sq[a_],t};Sb.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,{},Hat,"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}};Sb.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};Sb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Hne(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(!Gne(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?z3.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 _=c();for(var b in _)z3.nestedProperty(e,b).set(_[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var qh=Te((qar,Wne)=>{"use strict";var e5=v3().counter;Wne.exports={idRegex:{x:e5("x","( domain)?"),y:e5("y","( domain)?")},attrRegex:e5("[xy]axis"),xAxisMatch:e5("xaxis"),yAxisMatch:e5("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 Wc=Te(Sv=>{"use strict";var Wat=$l(),Mq=qh();Sv.id2name=function(t){if(!(typeof t!="string"||!t.match(Mq.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(Mq.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(Mq.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 jne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function jat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Xat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Xne.exports={clearOutlineControllers:jat,clearOutline:Xat}});var tP=Te((Var,Zne)=>{"use strict";Zne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(iP=>{"use strict";var rP=$l(),Gar=qh().SUBPLOT_PATTERN;iP.getSubplotCalcData=function(e,t,r){var n=rP.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var Zat=$l(),I3=ei();Mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Mb.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){Yne(e,o,i.cache),i.check=function(){if(a){var f=Yne(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;I3.isPlainObject(a)?Eq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((jar,hae)=>{"use strict";var aae=Jl(),Kat=c3().timeFormatLocale,Jat=FO().formatLocale,t5=ku(),$at=BO(),Hf=$l(),oae=P3(),Qat=Lf(),iu=ei(),sae=jl(),Qne=rf().BADNUM,Mv=Wc(),eot=o_().clearOutline,tot=tP(),kq=WM(),rot=bq(),iot=Rd().getModuleCalcData,eae=iu.relinkPrivateKeys,Eb=iu._,ql=hae.exports={};iu.extendFlat(ql,Hf);ql.attributes=Gf();ql.attributes.type.values=ql.allTypes;ql.fontAttrs=gc();ql.layoutAttributes=_3();var aP=$ne();ql.executeAPICommand=aP.executeAPICommand;ql.computeAPICommandBindings=aP.computeAPICommandBindings;ql.manageCommandObserver=aP.manageCommandObserver;ql.hasSimpleAPICommandBindings=aP.hasSimpleAPICommandBindings;ql.redrawText=function(e){return e=iu.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(ql.previousPromises(e)))},300)})};ql.resize=function(e){e=iu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||iu.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||iu.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};ql.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ql.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=iu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:sae.defaultLine,"pointer-events":"all"}).each(function(){var l=aae.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&¬(e,a),o.text(a.text()&&s.text()?" - ":"")}};function not(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(){ql.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})}}ql.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=aae.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=ql.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var aot=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],oot=["year","month","dayMonth","dayMonthYear"];ql.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||ql.createTransitionData(e),i._dfltTitle={plot:Eb(e,"Click to enter Plot title"),subtitle:Eb(e,"Click to enter Plot subtitle"),x:Eb(e,"Click to enter X axis title"),y:Eb(e,"Click to enter Y axis title"),colorbar:Eb(e,"Click to enter Colorscale title"),annotation:Eb(e,"new text")},i._traceWord=Eb(e,"trace");var h=tae(e,aot);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;ql.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),ql.sanitizeMargins(i)}else{ql.supplyLayoutGlobalDefaults(a,i,h);var _=!a.width||!a.height,b=i.autosize,v=f.autosizable,C=_&&(b||v);C?ql.plotAutoSize(e,a,i):_&&ql.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=uot(h,i.separators),i._extraFormat=tae(e,oot),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=lot(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=sot(o,u),ql.supplyDataDefaults(u,s,a,i);var x=Object.keys(T.x),k=Object.keys(T.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,ql.linkSubplots(s,i,o,n),ql.cleanPlot(s,i,o,n);var F=!!(n._has&&n._has("cartesian")),B=!!(i._has&&i._has("cartesian")),U=F,G=B;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&eot({_fullLayout:n}),fot(s,i),eae(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=ql.layoutAttributes.width.min,h=ql.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}),ql.sanitizeMargins(n)};ql.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(iu.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,T=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+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:T,size:r.t+_}},p[t]=1}if(!n._replotting)return ql.doAutoMargin(e)}};function hot(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}ql.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),lae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=iu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,_=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 T=v[C][E];o[E]=Math.max(o[E],T)}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"&&t5(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},F=P.val,B=P.size,U=A.val,G=A.size,j=r-o.r-o.l,W=n-o.t-o.b;for(var N in h){if(t5(B)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>F){var ae=(B*H+(re-j)*F)/(H-F),ge=(re*(1-F)+(B-j)*(1-H))/(H-F);ae+ge>u+l&&(u=ae,l=ge)}}if(t5(G)&&h[N].t){var ze=h[N].t.val,Le=h[N].t.size;if(ze>U){var de=(G*ze+(Le-W)*U)/(ze-U),te=(Le*(1-U)+(G-W)*(1-ze))/(ze-U);de+te>c+f&&(c=de,f=te)}}}}}var ke=iu.constrain(r-a.l-a.r,uae,p),Ee=iu.constrain(n-a.t-a.b,fae,_),Se=Math.max(0,r-ke),Ge=Math.max(0,n-Ee);if(Se){var De=(u+l)/Se;De>1&&(u/=De,l/=De)}if(Ge){var xe=(c+f)/Ge;xe>1&&(c/=xe,f/=xe)}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&&(ql.didMarginChange(s,i)||hot(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ne=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ql.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ql.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(iu.isPlainObject(h)){var p={},_;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(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!iu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=iu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var C=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:iu.isArrayBuffer(C)?$at.encode(C):C},d)}return b?h.map(function(E){return l(E,d)}):v?iu.simpleMap(h,iu.identity):iu.isJSDate(h)?iu.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)};ql.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=[ql.previousPromises,u,r.prepareFn,ql.rehover,ql.reselect,o],f=iu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}ql.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&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Qne,y:Qne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[C]=T}}for(iae(r,n,i),s=0;s{"use strict";kb.xmlns="http://www.w3.org/2000/xmlns/";kb.svg="http://www.w3.org/2000/svg";kb.xlink="http://www.w3.org/1999/xlink";kb.svgAttrs={xmlns:kb.svg,"xmlns:xlink":kb.xlink}});var Nh=Te((Zar,dae)=>{"use strict";dae.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=Te(b0=>{"use strict";var Uh=Jl(),Lg=ei(),mot=Lg.strTranslate,Cq=jv(),yot=Nh().LINE_SPACING,got=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(got),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=Pot(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};wot(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 _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"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 T=E.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,x=T.height);var k=+e.attr("x"),M=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,k,M]+")"+mot(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var A=e.attr("text-anchor");k=k-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-x/2}p.attr({x:k,y:M}),r&&r.call(e,_),u(_)})})):s(),e};var _ot=/(<|<|<)/g,xot=/(>|>|>)/g;function bot(e){return e.replace(_ot,"\\lt ").replace(xot,"\\gt ")}var pae=[["$","$"],["\\(","\\)"]];function wot(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Lg.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Lg.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:pae},displayAlign:"left"})},l=function(){a=Lg.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=pae},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-"+Lg.randstr({},64);s=Uh.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(bot(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)Lg.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Uh.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},_=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(),_(),v()}))}var gae={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"},Aot={sub:"0.3em",sup:"-0.6em"},Tot={sub:"-0.21em",sup:"0.42em"},vae="\u200B",mae=["http:","https:","mailto:","",void 0,":"],_ae=b0.NEWLINES=/(\r\n?|\n)/g,Pq=/(<[^<>]*>)/,zq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Sot=//i;b0.BR_TAG_ALL=//gi;var xae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,bae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,wae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Mot=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&oP(n)}var Eot=/(^|;)\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(Pq),s=[],u="",l=0,f=0;fa?s.push(c.slice(0,Math.max(0,_-a))+i):s.push(c.slice(0,_));break}u=""}}return s.join("")};var kot={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Cot=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function oP(e){return e.replace(Cot,function(t,r){var n;return r.charAt(0)==="#"?n=Lot(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=kot[r],n||t})}b0.convertEntities=oP;function Lot(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 Pot(e,t){t=t.replace(_ae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(Cq.svg,"tspan");Uh.select(x).attr({class:"line",dy:a*yot+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();x!==k.type&&Lg.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Sot.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Pq),h=0;h{"use strict";var zot=Jl(),lP=hd(),i5=ku(),sP=ei(),Tae=jl(),Iot=yb().isValid;function Rot(e,t,r){var n=t?sP.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(sP.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function Lae(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 zae=eq(),Fot=zae.FORMAT_LINK,Bot=zae.DATE_FORMAT_LINK;function Oot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Iq:Iae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Iq(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: "+Fot+"."].join(" ")}function Iae(e,t){return Iq(e,t)+[" And for dates see: "+Bot+".","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:Oot,descriptionOnlyNumbers:Iq,descriptionWithDates:Iae}});var Dd=Te((Qar,Jae)=>{"use strict";var Dae=gc(),R3=Oh(),Kae=Id().dash,Dq=Su().extendFlat,Fae=Lf().templatedArray,$ar=Ff().templateFormatStringDescription,Bae=jc().descriptionWithDates,qot=rf().ONEDAY,yy=qh(),Not=yy.HOUR_PATTERN,Uot=yy.WEEKDAY_PATTERN,Rq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Vot=Dq({},Rq,{values:Rq.values.slice().concat(["sync"])});function Oae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var qae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Nae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Uae={valType:"data_array",editType:"ticks"},Vae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Gae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Hae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Wae={valType:"color",dflt:R3.defaultLine,editType:"ticks"},jae={valType:"color",dflt:R3.lightLine,editType:"ticks"};function Xae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Zae=Dq({},Kae,{editType:"ticks"}),Yae={valType:"boolean",editType:"ticks"};Jae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:R3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Dae({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:Fae("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:[Uot,Not,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:qot},editType:"calc"}),tickmode:Vot,nticks:Oae(),tick0:qae,dtick:Nae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Uae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Vae,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:Gae(),tickwidth:Hae(),tickcolor:Wae,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:Dq({},Kae,{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:Dae({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:Fae("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:R3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Yae,gridcolor:jae,gridwidth:Xae(),griddash:Zae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:R3.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:R3.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:Rq,nticks:Oae("minor"),tick0:qae,dtick:Nae,tickvals:Uae,ticks:Vae,ticklen:Gae("minor"),tickwidth:Hae("minor"),tickcolor:Wae,gridcolor:jae,gridwidth:Xae("minor"),griddash:Zae,showgrid:Yae,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((eor,eoe)=>{"use strict";var Nc=Dd(),$ae=gc(),Qae=Su().extendFlat,Got=Sc().overrideAll;eoe.exports=Got({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:Qae({},Nc.ticks,{dflt:""}),ticklabeloverflow:Qae({},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:$ae({}),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:$ae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((ror,roe)=>{"use strict";var Hot=uP(),Wot=v3().counter,jot=t_(),toe=yb().scales,tor=jot(toe);function fP(e){return"`"+e+"`"}roe.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"?toe[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 "+fP(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",_=n+"max",b=n+"mid",v=fP(l+d),C=fP(l+p),E=fP(l+_),T=C+" and "+E,L={};L[p]=L[_]=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[_]={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=Hot),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Wot("coloraxis"),dflt:null,editType:"calc"}),k}});var Bq=Te((ior,ioe)=>{"use strict";var Xot=Su().extendFlat,Zot=nc(),Fq=yb().scales;ioe.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Fq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Fq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Fq.RdBu,editType:"calc"}},coloraxis:Xot({_isSubplotObj:!0,editType:"calc"},Zot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Oq=Te((nor,noe)=>{"use strict";var Yot=ei();noe.exports=function(t){return Yot.isPlainObject(t.colorbar)}});var Uq=Te(Nq=>{"use strict";var qq=ku(),aoe=ei(),ooe=rf(),Kot=ooe.ONEDAY,Jot=ooe.ONEWEEK;Nq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Kot:1;if(!e)return a;if(qq(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=qq(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};Nq.tick0=function(e,t,r,n){if(t==="date")return aoe.cleanDate(e,aoe.dateTick0(r,n%Jot===0?1:0));if(!(n==="D1"||n==="D2"))return qq(e)?Number(e):0}});var Lb=Te((oor,loe)=>{"use strict";var soe=Uq(),$ot=ei().isArrayOrTypedArray,Qot=mp().isTypedArraySpec,est=mp().decodeTypedArraySpec;loe.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 Qot(E)&&(E=est(E)),E!==void 0?E:(u._template||{})[C]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=$ot(d)?"array":h?"linear":"auto",_=n(l+"tickmode",p);if(_==="auto"||_==="sync")n(l+"nticks");else if(_==="linear"){var b=u.dtick=soe.dtick(h,i);u.tick0=soe.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 D3=Te((sor,foe)=>{"use strict";var Vq=ei(),uoe=Dd();foe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?uoe.minor:uoe,l=a?"minor.":"",f=Vq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Vq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Vq.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 Gq=Te((lor,coe)=>{"use strict";coe.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=Te((uor,hoe)=>{"use strict";var cP=ei(),tst=Lf();hoe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=cP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=tst.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Hq=ei(),rst=jl().contrast,doe=Dd(),ist=Gq(),nst=Kd();poe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Hq.isPlainObject(o)||delete r.labelalias;var s=ist(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?rst(a.bgColor):f&&f!==doe.color.dflt?f:l.color;if(Hq.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");nst(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ast}),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 ast(e,t){function r(i,a){return Hq.coerce(e,t,doe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=Te((hor,voe)=>{"use strict";var ost=Gq();voe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=ost(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Wq=Te((dor,moe)=>{"use strict";var u_=ei(),sst=Lf(),lst=Lb(),ust=D3(),fst=s_(),cst=l_(),hst=uP();moe.exports=function(t,r,n){var i=sst.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,F){return u_.coerce(a,i,hst,A,F)}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"),_=o("xref"),b=p==="paper",v=_==="paper",C,E,T,L="left";c?(T="middle",L=v?"left":"right",C=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",C=.5,E=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:E}},"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: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"),lst(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(M.bgColor="black"),cst(a,i,o,"linear",M),fst(a,i,o,"linear",M),ust(a,i,o,"linear",M),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=Te((por,_oe)=>{"use strict";var yoe=ku(),Xq=ei(),dst=Oq(),pst=Wq(),goe=yb().isValid,vst=$l().traceIs;function jq(e,t){var r=t.slice(0,t.length-1);return t?Xq.nestedProperty(e,r).get()||{}:e}_oe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=jq(t,o),f=jq(r,o),c=jq(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 _=vst(r,"contour")&&Xq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Xq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[_,r,[h]];return}}var v=l[s+"min"],C=l[s+"max"],E=yoe(v)&&yoe(C)&&v{"use strict";var xoe=ei(),mst=Lf(),boe=Bq(),yst=nd();woe.exports=function(t,r){function n(c,h){return xoe.coerce(t,r,boe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return xoe.coerce(a,o,boe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=mst.newContainer(r,u,"coloraxis"),o._name=u,yst(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var gst=ei(),_st=yp().hasColorscale,xst=yp().extractOpts;Toe.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?gst.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=xst(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 Moe=ku(),Zq=ei(),bst=yp().extractOpts;Eoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Zq.nestedProperty(r,o).get():r,u=bst(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Zq.aggNums(Math.min,null,a)},p=function(){return Zq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&Moe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&Moe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,u._sync("colorscale",_)}}});var _c=Te((gor,koe)=>{"use strict";var hP=yb(),F3=yp();koe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Bq(),supplyLayoutDefaults:Aoe(),handleDefaults:nd(),crossTraceDefaults:Soe(),calc:gp(),scales:hP.scales,defaultScale:hP.defaultScale,getScale:hP.get,isValidScale:hP.isValid,hasColorscale:F3.hasColorscale,extractOpts:F3.extractOpts,extractScale:F3.extractScale,flipScale:F3.flipScale,makeColorScaleFunc:F3.makeColorScaleFunc,makeColorScaleFuncFromTrace:F3.makeColorScaleFuncFromTrace}});var lc=Te((_or,Loe)=>{"use strict";var Coe=ei(),wst=mp().isTypedArraySpec;Loe.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 Coe.isPlainObject(t)&&(Coe.isArrayOrTypedArray(t.size)||wst(t.size))}}});var B3=Te((xor,Poe)=>{"use strict";var Ast=ku();Poe.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 Ast(u)&&u>0?Math.max(u,a):0}}});var iv=Te(_p=>{"use strict";var dP=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=kst;var Yq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Est=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function kst(e){var t=[];return e.replace(Est,function(r,n,i){var a=n.toLowerCase();for(i=Lst(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Yq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Pst=n5(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},nf="M0,0Z",Doe=Math.sqrt(2),f_=Math.sqrt(3),Kq=Math.PI,Jq=Math.cos,$q=Math.sin;Noe.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/Doe,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/Doe,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=Kq/2.5,i=2*e*Jq(n),a=2*e*$q(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=Kq/4,i=2*e*Jq(n),a=2*e*$q(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 Foe,Boe,Ooe,qoe;function of(e,t,r){if((!e||e%360===0)&&!t)return r;if(Ooe===e&&qoe===t&&Foe===r)return Boe;Ooe=e,qoe=t,Foe=r;function n(b,v){var C=Jq(b),E=$q(b),T=v[0],L=v[1]+(t||0);return[T*C-L*E,T*E+L*C]}for(var i=e/180*Kq,a=0,o=0,s=Pst(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),zst=uc.numberFormat,Rb=ku(),nN=hd(),vP=$l(),Jd=jl(),Ist=_c(),o5=uc.strTranslate,mP=Wf(),Rst=jv(),Dst=Nh(),Fst=Dst.LINE_SPACING,Joe=X1().DESELECTDIM,Bst=lc(),Ost=B3(),qst=iv().appendArrayPointValue,Ul=sse.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(Jd.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",Qq(Ust(f))),u&&e.style("text-shadow",u==="auto"?mP.makeTextShadow(Jd.contrast(a)):Qq(u)),l&&e.style("text-decoration-line",Qq(Vst(l)))};function Qq(e){return e==="none"?void 0:e}var Nst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Ust(e){return Nst[e]}function Vst(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",o5(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=vP.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||"";Jd.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(Jd.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 $oe(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,_="scatterfill-"+t.uid;if(n&&(_="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(tse,r,_,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Ul.gradient,r,_,p,a.colorscale,"fill")}else t.fillcolor&&e.call(Jd.fill,t.fillcolor)}Ul.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};$oe(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&&$oe(i,n[0].trace,t,r)})};var Voe=Uoe();Ul.symbolNames=[];Ul.symbolFuncs=[];Ul.symbolBackOffs=[];Ul.symbolNeedLines={};Ul.symbolNoDot={};Ul.symbolNoFill={};Ul.symbolList=[];Object.keys(Voe).forEach(function(e){var t=Voe[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 Gst=Ul.symbolNames.length,Hst="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>=Gst||e>=400?0:Math.floor(Math.max(e,0))};function Qoe(e,t,r,n){var i=e%100;return Ul.symbolFuncs[i](t,r,n)+(e>=200?Hst:"")}var Goe=zst("~f"),ese={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=ese[n];return tse(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function tse(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=sN(e,r),c=oN(e,r);t.attr("d",Qoe(l,u,f,c))}var h=!1,d,p,_;if(e.so)_=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(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=Jd.defaultLine:p=s.color,uc.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 v=e.mld||(s||{}).dash;if(v&&Ul.dashLine(t,v,_),e.om)t.call(Jd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var C=o.gradient,E=e.mgt;E?h=!0:E=C&&C.type,uc.isArrayOrTypedArray(E)&&(E=E[0],ese[E]||(E=0));var T=o.pattern,L=Ul.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(E&&E!=="none"){var k=e.mgc;k?h=!0:k=C.color;var M=r.uid;h&&(M+="-"+e.i),Ul.gradient(t,i,M,E,[[0,k],[1,d]],"fill")}else if(x){var m=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,m=!0);var A=L(P,e.i,a&&a.color||null),F=L(T.bgcolor,e.i,null),B=T.fgopacity,U=L(T.size,e.i,8),G=L(T.solidity,e.i,.3);m=m||e.mcc||uc.isArrayOrTypedArray(T.shape)||uc.isArrayOrTypedArray(T.path)||uc.isArrayOrTypedArray(T.bgcolor)||uc.isArrayOrTypedArray(T.fgcolor)||uc.isArrayOrTypedArray(T.size)||uc.isArrayOrTypedArray(T.solidity);var j=r.uid;m&&(j+="-"+e.i),Ul.pattern(t,"point",i,j,x,U,G,e.mcc,T.fillmode,F,A,B)}else uc.isArrayOrTypedArray(d)?Jd.fill(t,d[e.i]):Jd.fill(t,d);_&&Jd.stroke(t,p)}};Ul.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ul.tryColorscale(r,""),t.lineScale=Ul.tryColorscale(r,"line"),vP.traceIs(e,"symbols")&&(t.ms2mrc=Bst.isBubble(e)?Ost(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(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Joe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var _=i.size,b=a.size,v=o.size,C=b!==void 0,E=v!==void 0;return vP.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||_/2;return T.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:Jd.addOpacity(c,Joe))},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){Jd.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",Qoe(Ul.symbolNumber(s),u,sN(o,t),oN(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={};qst(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=ise(s,t),_=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:_}).text(l).call(mP.convertToTspans,r).call(rse,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=ise(n,t);Jd.fill(i,a);var u=vP.traceIs(t,"bar-like");rse(i,o,s,n.mrc2||n.mrc,u)})}};var Hoe=.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||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Ul.applyBackoff=ose;Ul.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Rst.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 tN=0,Xst=1e4;Ul.bBox=function(e,t,r){r||(r=Woe(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=Woe(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(mP.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 tN>=Xst&&(Ul.savedBBoxes={},tN=0),r&&(Ul.savedBBoxes[r]=d),tN++,uc.extendFlat({},d)};function Woe(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",aN(t,r))};function aN(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+=o5(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 Zst=/\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(Zst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Yst=/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(Yst);t===1&&r===1?n=[]:n=[o5(o,s),"scale("+t+","+r+")",o5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function oN(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=oN;var a5=Math.atan2,Pb=Math.cos,q3=Math.sin;function joe(e,t){var r=t[0],n=t[1];return[r*Pb(e)-n*q3(e),r*q3(e)+n*Pb(e)]}var Xoe,Zoe,Yoe,Koe,rN,iN;function sN(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=a5(h[1]-i,h[0]-n),p=a5(c[1]-i,c[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,C=Xoe/180*Math.PI,E=Zoe/180*Math.PI,T=C-b,L=Pb(E)*q3(T),x=q3(E)*Pb(v)-Pb(E)*q3(v)*Pb(T);_=-a5(L,x)-Math.PI,Xoe=l,Zoe=f}var k=joe(d,[Pb(_),0]),M=joe(p,[q3(_),0]);r=a5(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(iN===t.uid&&e.i===rN+1)&&(r=null)}if(a==="previous"&&!t._geo)if(iN===t.uid&&e.i===rN+1&&Rb(n)&&Rb(i)){var m=n-Yoe,P=i-Koe,A=t.line&&t.line.shape||"",F=A.slice(A.length-1);F==="h"&&(P=0),F==="v"&&(m=0),r+=a5(P,m)/Math.PI*180+90}else r=null}return Yoe=n,Koe=i,rN=e.i,iN=t.uid,r}Ul.getMarkerAngle=sN});var Fb=Te((Sor,cse)=>{"use strict";var N3=Jl(),Kst=ku(),Jst=Cc(),lN=$l(),Db=ei(),lse=Db.strTranslate,yP=Mu(),gP=jl(),U3=Wf(),use=X1(),$st=Nh().OPPOSITE_SIDE,fse=/ [XY][0-9]* /,uN=1.6,fN=1.6;function Qst(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(),_=!1,b=d&&d.font?d.font:{},v=b.family,C=b.size,E=b.color,T=b.weight,L=b.style,x=b.variant,k=b.textcase,M=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,F=r.subtitlePlaceholder,B=(i.title||{}).subtitle||{text:"",font:{}},U=(B.text||"").trim(),G=!1,j=1,W=B.font,N=W.family,H=W.size,re=W.color,ae=W.weight,ge=W.style,ze=W.variant,Le=W.textcase,de=W.lineposition,te=W.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf("colorbar")!==-1&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Se(wt,Mt){return wt===void 0||Mt===void 0?!1:wt.replace(fse," % ")===Mt.replace(fse," % ")}p===""?h=0:Se(p,o)&&(Ee||(p=""),h=.2,_=!0),A&&(U===""?j=0:Se(U,F)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Db.templateString(p,r._meta):n._meta&&(p=Db.templateString(p,n._meta));var Ge=p||U||Ee,De;c||(c=Db.ensureSingle(n._infolayer,"g","g-"+t),De=n._hColorbarMoveTitle);var xe=c.selectAll("text."+t).data(Ge?[0]:[]);xe.enter().append("text"),xe.text(p).attr("class",t),xe.exit().remove();var Ne=null,ce=t+"-subtitle",je=U||Ee;if(A&&(Ne=c.selectAll("text."+ce).data(je?[0]:[]),Ne.enter().append("text"),Ne.text(U).attr("class",ce),Ne.exit().remove()),!Ge)return c;function Qe(wt,Mt){Db.syncOrAsync([gt,qt],{title:wt,subtitle:Mt})}function gt(wt){var Mt=wt.title,Bt=wt.subtitle,Zt;!f&&De&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||De)&&(Zt+=lse(0,(f.offset||0)-(De||0)))):Zt=null,Mt.attr("transform",Zt);function Et(He){if(He){var nt=N3.select(He.node().parentNode).select("."+ce);if(!nt.empty()){var tt=He.node().getBBox();if(tt.height){var It=tt.y+tt.height+uN*H;nt.attr("y",It)}}}}if(Mt.style("opacity",h*gP.opacity(E)).call(yP.font,{color:gP.rgb(E),size:N3.round(C,2),family:v,weight:T,style:L,variant:x,textcase:k,shadow:m,lineposition:M}).attr(l).call(U3.convertToTspans,e,Et),Bt&&!Bt.empty()){var Ae=c.select("."+t+"-math-group"),ot=Mt.node().getBBox(),At=Ae.node()?Ae.node().getBBox():void 0,vt=At?At.y+At.height+uN*H:ot.y+ot.height+fN*H,Je=Db.extendFlat({},l,{y:vt});Bt.attr("transform",Zt),Bt.style("opacity",j*gP.opacity(re)).call(yP.font,{color:gP.rgb(re),size:N3.round(H,2),family:N,weight:ae,style:ge,variant:ze,textcase:Le,shadow:te,lineposition:de}).attr(Je).call(U3.convertToTspans,e)}return Jst.previousPromises(e)}function qt(wt){var Mt=wt.title,Bt=N3.select(Mt.node().parentNode);if(u&&u.selection&&u.side&&p){Bt.attr("transform",null);var Zt=$st[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=Kst(u.pad)?u.pad:2,ot=yP.bBox(Bt.node()),At={t:0,b:0,l:0,r:0},vt=e._fullLayout._reservedMargin;for(var Je in vt)for(var He in vt[Je]){var nt=vt[Je][He];At[He]=Math.max(At[He],nt)}var tt={left:At.l,top:At.t,right:n.width-At.r,bottom:n.height-At.b},It=u.maxShift||Et*(tt[u.side]-ot[u.side]),Yt=0;if(It<0)Yt=It;else{var cr=u.offsetLeft||0,_r=u.offsetTop||0;ot.left-=cr,ot.right-=cr,ot.top-=_r,ot.bottom-=_r,u.selection.each(function(){var Ut=yP.bBox(this);Db.bBoxIntersect(ot,Ut,Ae)&&(Yt=Math.max(Yt,Et*(Ut[u.side]-ot[Zt])+Ae))}),Yt=Math.min(It,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||It<0){var yr={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Bt.attr("transform",lse(yr[0],yr[1]))}}}xe.call(Qe,Ne);function at(wt,Mt){wt.text(Mt).on("mouseover.opacity",function(){N3.select(this).transition().duration(use.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){N3.select(this).transition().duration(use.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?xe.on(".opacity",null):(at(xe,o),_=!0),xe.call(U3.makeEditable,{gd:e}).on("edit",function(wt){s!==void 0?lN.call("_guiRestyle",e,a,wt,s):lN.call("_guiRelayout",e,a,wt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(wt){this.text(wt||" ").call(U3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ke=xe.node().getBBox(),Ct=Ke.y+Ke.height+fN*H;Ne.attr("y",Ct)}U?Ne.on(".opacity",null):(at(Ne,F),G=!0),Ne.call(U3.makeEditable,{gd:e}).on("edit",function(wt){lN.call("_guiRelayout",e,"title.subtitle.text",wt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(wt){this.text(wt||" ").call(U3.positionText,Ne.attr("x"),Ne.attr("y"))})}return xe.classed("js-placeholder",_),Ne&&!Ne.empty()&&Ne.classed("js-placeholder",G),c}cse.exports={draw:Qst,SUBTITLE_PADDING_EM:fN,SUBTITLE_PADDING_MATHJAX_EM:uN}});var xy=Te((Mor,mse)=>{"use strict";var elt=Jl(),tlt=c3().utcFormat,Mc=ei(),rlt=Mc.numberFormat,gy=ku(),c_=Mc.cleanNumber,ilt=Mc.ms2DateTime,hse=Mc.dateTime2ms,_y=Mc.ensureNumber,dse=Mc.isArrayOrTypedArray,h_=rf(),_P=h_.FP_SAFE,Sm=h_.BADNUM,nlt=h_.LOG_CLIP,alt=h_.ONEWEEK,xP=h_.ONEDAY,bP=h_.ONEHOUR,pse=h_.ONEMIN,vse=h_.ONESEC,wP=Wc(),SP=qh(),AP=SP.HOUR_PATTERN,TP=SP.WEEKDAY_PATTERN;function s5(e){return Math.pow(10,e)}function cN(e){return e!=null}mse.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],k=t.range[1];return .5*(x+k-2*nlt*Math.abs(x-k))}else return Sm}function o(T,L,x,k){if((k||{}).msUTC&&gy(T))return+T;var M=hse(T,x||t.calendar);if(M===Sm)if(gy(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);M=hse(new Date(P))+m/10}else return Sm;return M}function s(T,L,x){return ilt(T,L,x||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(cN(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 Sm}function f(T,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,M=k*T,m=0,P=0;PF)m=P+1;else{m=M<(A+F)/2?P:P+1;break}}var B=t._B[m]||0;return isFinite(B)?p(T,t._m2,B):0},v=function(T){var L=t._rangebreaks.length;if(!L)return _(T,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return _(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_y,t.l2c=t.type==="log"?s5:_y,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return s5(v(T))}: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(T){return t.l2p(c_(T))},t.p2d=t.p2r=v,t.cleanPos=_y):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(c_(T),L)},t.r2d=t.r2c=function(T){return s5(c_(T))},t.d2c=t.r2l=c_,t.c2d=t.l2r=_y,t.c2r=a,t.l2d=s5,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return s5(v(T))},t.r2p=function(T){return t.l2p(c_(T))},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(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(v(T),L,x)},t.cleanPos=function(T){return Mc.cleanDate(T,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(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_y,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:_y(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,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=c,t.l2r=t.c2r=_y,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:_y(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var m in M)if(m!==n){var P=r[wP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],F=[];for(x=0;xP[1]&&(k[m?0:1]=x),k[0]===k[1]){var A=t.l2r(L),F=t.l2r(x);if(L!==void 0){var B=A+1;x!==void 0&&(B=Math.min(B,F)),k[m?1:0]=B}if(x!==void 0){var U=F+1;L!==void 0&&(U=Math.max(U,A)),k[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=Mc.nestedProperty(t,T).get(),k,M;if(t.type==="date"?M=Mc.dfltRange(t.calendar):i==="y"?M=SP.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||SP.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){Mc.nestedProperty(t,T).set(M);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[T]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var A=Mc.constrain(t.r2l(x[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);x[0]=t.l2r(A-1e3),x[1]=t.l2r(A+1e3);break}}else{if(!gy(x[k]))if(!(m||P)&&gy(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[T]=M;break}if(x[k]<-_P?x[k]=-_P:x[k]>_P&&(x[k]=_P),x[0]===x[1]){var F=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=F,x[1]+=F}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=wP.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=T&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var m=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),A=i==="y";if(A?(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 F,B;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(F=0;FP&&(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*(A?P:m)),F=0;FM&&(M+=7,mM&&(M+=24,m=k&&m=k&&T=te.min&&(gete.max&&(te.max=ze),Le=!1)}Le&&P.push({min:ge,max:ze})}};for(x=0;x{"use strict";var yse=ku(),hN=ei(),olt=rf().BADNUM,MP=hN.isArrayOrTypedArray,slt=hN.isDateTime,llt=hN.cleanNumber,gse=Math.round;xse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(MP(i)&&!i.length)return"-";if(!a&&dlt(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function _se(e){return Math.max(1,(e-1)/1e3)}function hlt(e,t){for(var r=e.length,n=_se(r),i=0,a=0,o={},s=0;si*2}function dlt(e){return MP(e[0])&&MP(e[1])}});var Mm=Te((kor,kse)=>{"use strict";var plt=Jl(),Tse=ku(),d_=ei(),EP=rf().FP_SAFE,vlt=$l(),mlt=Mu(),Sse=Wc(),ylt=Sse.getFromId,glt=Sse.isLinked;kse.exports={applyAutorangeOptions:Ese,getAutoRange:dN,makePadFn:pN,doAutoRange:xlt,findExtremes:blt,concatExtremes:yN};function dN(e,t){var r,n,i=[],a=e._fullLayout,o=pN(a,t,0),s=pN(a,t,1),u=yN(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=E-o(x)-s(k),P>T?A/P>L&&(M=x,m=k,L=A/P):A/E>L&&(M={val:x.val,nopad:1},m={val:k.val,nopad:1},L=A/E));function F(W,N){return Math.max(W,s(N))}if(c===h){var B=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(F,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else C?i=[Math.max(0,B),Math.max(1,U)]:i=[B,U]}else v?(M.val>=0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-M.val-bse(t,x.val,k.val))/(E-o(M)-s(m)),i=[M.val-L*o(M),m.val+L*s(m)];return i=Ese(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function bse(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),k=T(r.vpadplus||r.vpad),M=T(r.vpadminus||r.vpad);if(!l){if(C=1/0,E=-1/0,u)for(c=0;c0&&(C=h),h>E&&h-EP&&(C=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function vN(e,t,r,n){Mse(e,t,r,n,wlt)}function mN(e,t,r,n){Mse(e,t,r,n,Alt)}function Mse(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 Ase(e){return Tse(e)&&Math.abs(e)=t}function Tlt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&kP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&kP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Slt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&kP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&kP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function kP(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=Tlt(r,t),n=Slt(n,t),[r,n]}});var wu=Te((Lor,Jse)=>{"use strict";var w0=Jl(),Vh=ku(),G3=Cc(),u5=$l(),Du=ei(),H3=Du.strTranslate,Bb=Wf(),Mlt=Fb(),f5=jl(),Xv=Mu(),Elt=Dd(),Cse=Uq(),Cor=qh(),$d=rf(),klt=$d.ONEMAXYEAR,PP=$d.ONEAVGYEAR,zP=$d.ONEMINYEAR,Clt=$d.ONEMAXQUARTER,bN=$d.ONEAVGQUARTER,IP=$d.ONEMINQUARTER,Llt=$d.ONEMAXMONTH,W3=$d.ONEAVGMONTH,RP=$d.ONEMINMONTH,Zv=$d.ONEWEEK,Bp=$d.ONEDAY,p_=Bp/2,wy=$d.ONEHOUR,c5=$d.ONEMIN,DP=$d.ONESEC,Plt=$d.ONEMILLI,zlt=$d.ONEMICROSEC,Ob=$d.MINUS_SIGN,BP=$d.BADNUM,wN={K:"zeroline"},AN={K:"gridline",L:"path"},TN={K:"minor-gridline",L:"path"},Nse={K:"tick",L:"path"},Lse={K:"tick",L:"text"},Pse={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=Nh(),l5=OP.MID_SHIFT,qb=OP.CAP_SHIFT,h5=OP.LINE_SPACING,Ilt=OP.OPPOSITE_SIDE,FP=3,il=Jse.exports={};il.setConvert=xy();var Rlt=V3(),Ay=Wc(),Dlt=Ay.idSort,Flt=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 Use=Mm();il.getAutoRange=Use.getAutoRange;il.findExtremes=Use.findExtremes;var Blt=1e-4;function kN(e){var t=(e[1]-e[0])*Blt;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")+Bp*1.5:a.exactMonths>o?e=il.tickIncrement(e,"M1","reverse")+Bp*15.5:e-=p_;var u=il.tickIncrement(e,r);if(u<=n)return u}return e}il.prepMinorTicks=function(e,t,r){if(!t.minor.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?gN(l,f)?l===2*Zv&&f===2*Bp&&(e.dtick=Zv):l===2*Zv&&f===3*Bp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Bp:Rse(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":gN(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"?gN(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}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function gN(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=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>=zP?l>=zP&&l<=klt?c=l:c=PP:r===bN&&f>=IP?l>=IP&&l<=Clt?c=l:c=bN:f>=RP?l>=RP&&l<=Llt?c=l:c=W3:r===Zv&&f>=Zv?c=Zv:f>=Bp?c=Bp: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,_=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]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=T?t:Du.extendFlat({},t,t.minor);if(L?il.prepMinorTicks(x,t,r):il.prepTicks(x,r),x.tickmode==="array"){T?(b=[],p=Dse(t,!L)):(v=[],_=Dse(t,!L));continue}if(x.tickmode==="sync"){b=[],p=Glt(t);continue}var k=kN(l),M=k[0],m=k[1],P=Vh(x.dtick),A=n==="log"&&!(P||x.dtick.charAt(0)==="L"),F=il.tickFirst(x,r);if(T){if(t._tmin=F,F=m:U<=m;U=il.tickIncrement(U,W,f,i)){if(T&&G++,x.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===B)break;B=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var H=(v[1].value-v[0].value)*(s?-1:1);put(H,t.tickformat)||(u=!1)}if(!u)C=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Ct,wt){return Ct.value-wt.value}).filter(function(Ct,wt,Mt){return wt===0||Ct.value!==Mt[wt-1].value});var ae=re.map(function(Ct,wt){return Ct.minor===void 0&&!Ct.skipLabel?wt:null}).filter(function(Ct){return Ct!==null});ae.forEach(function(Ct){u.map(function(wt){var Mt=Ct+wt;Mt>=0&&Mt-1;Ge--){if(b[Ge].drop){b.splice(Ge,1);continue}b[Ge].value=xN(b[Ge].value,t);var ce=t.c2p(b[Ge].value);(De?Ne>ce-xe:Neh||Bth&&(Mt.periodX=h),Bti&&hPP)t/=PP,n=i(10),e.dtick="M"+12*by(t,n,CP);else if(a>W3)t/=W3,e.dtick="M"+by(t,1,Fse);else if(a>Bp){if(e.dtick=by(t,Bp,e._hasDayOfWeekBreaks?[1,2,7,14]:Hlt),!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,Fse):a>c5?e.dtick=by(t,c5,Bse):a>DP?e.dtick=by(t,DP,Bse):(n=i(10),e.dtick=by(t,n,CP))}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,CP)}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))):zN(e)?(e.tick0=0,n=1,e.dtick=by(t,n,Wlt)):(e.tick0=0,n=i(10),e.dtick=by(t,n,CP));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 Wse(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>=Bp&&i<=10||t>=Bp*15)e._tickround="d";else if(t>=c5&&i<=16||t>=wy)e._tickround="M";else if(t>=DP&&i<=19||t>=c5)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&&(j3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!CN(u)||j3(e.exponentformat)&&e.exponentformat==="SI extended"&&!LN(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"?Hse:Gse,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=p5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function Xlt(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=d5(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"||j3(p)&&p!=="SI extended"&&CN(h)||j3(p)&&p==="SI extended"&&LN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Ob)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":Ob)+d:(t.text=d5(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 _=String(t.text).charAt(0);(_==="0"||_==="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 Zlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Ylt(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 Klt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=d5(t.x,e,i,n)}function Jlt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=$lt(a);if(o[1]>=100)t.text=d5(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=Ob+t.text)}}}else t.text=d5(t.x,e,i,n)}function $lt(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 Xse=["f","p","n","\u03BC","m","","k","M","G","T"],Qlt=["q","r","y","z","a",...Xse,"P","E","Z","Y","R","Q"],j3=e=>["SI","SI extended","B"].includes(e);function CN(e){return e>14||e<-15}function LN(e){return e>32||e<-30}function eut(e,t){return j3(t)?!!(t==="SI extended"&&LN(e)||t!=="SI extended"&&CN(e)):!1}function d5(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]};Wse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,Ob);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":j3(o)&&(e+=o==="SI extended"?Qlt[s/3+10]:Xse[s/3+5])}return i?Ob+e:e}il.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*W3}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&&EN(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),EN(t,p,n,!0),EN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=dut(t,n));var _=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=il.calcTicks(t),T=[t.mirror,v,C].join("_");for(a=0;a0?Bt.bottom-wt:0,Mt))));var ot=0,At=0;if(t._shiftPusher&&(ot=Math.max(Mt,Bt.height>0?Ke==="l"?wt-Bt.left:Bt.right-wt:0),t.title.text!==u._dfltTitle[f]&&(At=(t._titleStandoff||0)+(t._titleScoot||0),Ke==="l"&&(At+=qse(t))),t._fullDepth=Math.max(ot,At)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var vt=[0,1],Je=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ke==="b"?Zt[Ke]=t._depth:(Zt[Ke]=t._depth=Math.max(Bt.width>0?wt-Bt.top:0,Mt),vt.reverse()),Bt.width>0){var He=Bt.right-(t._offset+t._length);He>0&&(Zt.xr=1,Zt.r=He);var nt=t._offset-Bt.left;nt>0&&(Zt.xl=0,Zt.l=nt)}}else if(Ke==="l"?(t._depth=Math.max(Bt.height>0?wt-Bt.left:0,Mt),Zt[Ke]=t._depth-Je):(t._depth=Math.max(Bt.height>0?Bt.right-wt:0,Mt),Zt[Ke]=t._depth+Je,vt.reverse()),Bt.height>0){var tt=Bt.bottom-(t._offset+t._length);tt>0&&(Zt.yb=0,Zt.b=tt);var It=t._offset-Bt.top;It>0&&(Zt.yt=1,Zt.t=It)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[vt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ke]+=qse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[Ct]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[Ct]+=Mt),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][vt[1]]))}at&&(Ae=u5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Ose(Zt,t.automargin),Ose(Et,t.automargin)),G3.autoMargin(e,PN(t),Zt),G3.autoMargin(e,Yse(t),Et),G3.autoMargin(e,Kse(t),Ae)}),Du.syncOrAsync(gt)}};function Ose(e,t){if(e){var r=Object.keys(Pse).reduce(function(n,i){return t.indexOf(i)!==-1&&Pse[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 tut(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 H3(i+e._offset+e.l2p(SN(h))+r,a+n)}:function(h){return H3(a+n,i+e._offset+e.l2p(SN(h))+r)}};function SN(e){return e.periodX!==void 0?e.periodX:e.x}function aut(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=FP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*qb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=FP),u&&f==="top"&&(h-=d*(1-qb)),(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(B){return n.indexOf(B)!==-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,_=h?e.ticklen:0;if(c?_*=-1:f&&(_=0),h&&(d+=_,r)){var b=Du.deg2rad(r);d=_*Math.cos(b)+1,p=_*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,T,L,x=0,k=e.side,M=e._id.charAt(0),m=e.tickangle,P;if(M==="x")P=!c&&k==="bottom"||c&&k==="top",L=P?1:-1,c&&(L*=-1),C=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=l5:m===-90&&k==="bottom"?T=qb:m===90&&k==="top"?T=l5:T=.5,x=l5/2*(m/90)),v.xFn=function(B){return B.dx+C+x*B.fontSize},v.yFn=function(B){return B.dy+E+B.fontSize*T},v.anchorFn=function(B,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(B,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(M==="y"){if(P=!c&&k==="left"||c&&k==="right",L=P?1:-1,c&&(L*=-1),C=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&k==="left"||m===90&&k==="right"?T=qb:T=.5),c){var A=Vh(m)?+m:0;if(A!==0){var F=Du.deg2rad(A);x=Math.abs(Math.sin(F))*qb*L,T=0}}v.xFn=function(B){return B.dx+t-(C+B.fontSize*T)*L+x*B.fontSize},v.yFn=function(B){return B.dy+E+B.fontSize*l5},v.anchorFn=function(B,U){return Vh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(B,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function qP(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,qP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return f5.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),NP(t,[Nse]),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 _=p?h:d;if(_){var b=_.selectAll("path."+n).data(p?o:a,qP);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 f5.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)}}NP(t,[AN,TN])}};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 Dlt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(f5.stroke,t.zerolinecolor||f5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),NP(t,[wN])};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:[],qP),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)}),NP(t,[Lse]),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 ge=w0.select(this),ze=ge.select(".text-math-group"),Le=u.anchorFn(ae,re),de=r.transFn.call(ge.node(),ae)+(Vh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Bb.lineCount(ge),ke=h5*ae.fontSize,Ee=u.heightFn(ae,Vh(re)?+re:0,(te-1)*ke);if(Ee&&(de+=H3(0,Ee)),ze.empty()){var Se=ge.select("text");Se.attr({transform:de,"text-anchor":Le}),Se.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ge=Xv.bBox(ze.node()).width,De=Ge*{end:-.5,start:.5}[Le];ze.attr("transform",de+H3(De,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",ge=0,ze=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Le=Du.simpleMap(t.range,t.r2l);ge=t.l2p(Le[0])+t._offset,ze=t.l2p(Le[1])+t._offset}var de=Math.min(ge,ze),te=Math.max(ge,ze),ke=t.side,Ee=1/0,Se=-1/0;c.each(function(Ne){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var Qe=Xv.bBox(ce.node()),gt=0;ae?(Qe.right>te||Qe.leftte||Qe.top+(t.tickangle?0:Ne.fontSize/4)t["_visibleLabelMin_"+Le._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 _=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var H=0,re=[],ae,ge=1;c.each(function(Zt){H=Math.max(H,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=MN(this),ot=Xv.bBox(Ae.node());ge=Math.max(ge,Bb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-ot.width/2,right:Et+ot.width/2+2,width:ot.width+2})});var ze=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Le=s.length,de=Math.abs((s[Le-1].x-s[0].x)*t._m)/(Le-1),te=ze?de/2:de,ke=ze?t.ticklen:H*1.25*ge,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Se=te/Ee,Ge=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),De=Ge.find(function(Zt){return Math.abs(Math.cos(Zt))<=Se});De===void 0&&(De=Ge.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(F=G,m[M]=P[M]=B[M])}var W=Math.abs(F-A);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 out(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,qP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(f5.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 qse(e){var t=e.title.font.size,r=(e.title.text.match(Bb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(qb+r*h5):r?t*(r+1)*h5:t}function sut(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*qb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(l5+s*h5));else{var u=p5(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 _=t._selections[t._id+"tick"];if(p={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xv.getTranslate(_.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Mlt.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)===BP)&&(Zse(t,0)||!lut(e,t,r,n)||uut(e,t))};il.clipEnds=function(e,t){return t.filter(function(r){return Zse(e,r.x)})};function Zse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=zlt:/%L/.test(t)?e>=Plt:/%[SX]/.test(t)?e>=DP:/%M/.test(t)?e>=c5:/%[HI]/.test(t)?e>=wy:/%p/.test(t)?e>=p_:/%[Aadejuwx]/.test(t)?e>=Bp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=RP:/%[q]/.test(t)?e>=IP:/%[Yy]/.test(t)?e>=zP:!0}});var IN=Te((Por,$se)=>{"use strict";$se.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 RN=Te((zor,Qse)=>{"use strict";var vut=IN();Qse.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&&(vut(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var tle=Te((Ior,ele)=>{var mut={left:0,top:0};ele.exports=yut;function yut(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=gut(t);return r[0]=n-a.left,r[1]=i-a.top,r}function gut(e){return e===window||e===document||e===document.body?mut:e.getBoundingClientRect()}});var UP=Te((Ror,rle)=>{"use strict";var _ut=mq();function xut(){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}rle.exports=_ut&&xut()});var nle=Te((Dor,ile)=>{"use strict";ile.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 sle=Te((For,ole)=>{"use strict";var ale=ei(),but=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ole.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=ale.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=ale.constrain(Math.floor(r*3),0,2),but[r][t]}});var ule=Te((Bor,lle)=>{"use strict";var wut=k3(),Aut=HL(),Tut=HM().getGraphDiv,Sut=NM(),DN=lle.exports={};DN.wrapped=function(e,t,r){e=Tut(e),e._fullLayout&&Aut.clear(e._fullLayout._uid+Sut.HOVERID),DN.raw(e,t,r)};DN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&wut.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=Te((Oor,dle)=>{"use strict";var Mut=tle(),FN=gq(),Eut=UP(),kut=ei().removeElement,Cut=qh(),Nb=dle.exports={};Nb.align=nle();Nb.getCursor=sle();var cle=ule();Nb.unhover=cle.wrapped;Nb.unhoverRaw=cle.raw;Nb.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,Eut?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var x=c[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function hle(){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}Nb.coverSlip=hle;function fle(e){return Mut(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Em=Te((qor,ple)=>{"use strict";ple.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 yle=Te((Nor,mle)=>{"use strict";var BN=Em(),v5="data-savedcursor",vle="!!";mle.exports=function(t,r){var n=t.attr(v5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var ON=gc(),Lut=Oh();gle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Lut.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ON({editType:"legend"}),grouptitlefont:ON({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:ON({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var y5=Te(m5=>{"use strict";m5.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};m5.isVertical=function(t){return t.orientation!=="h"};m5.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};m5.getId=function(t){return t._id||"legend"}});var UN=Te((Gor,_le)=>{"use strict";var VP=$l(),Yv=ei(),Put=Lf(),zut=Gf(),Iut=qN(),Rut=_3(),NN=y5();function Dut(e,t,r,n,i){var a=t[e]||{},o=Put.newContainer(r,e);function s(H,re){return Yv.coerce(a,o,Iut,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,ge=f;return Yv.coerce(ae,ge,zut,H,re)},h=r.font||{},d=Yv.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,_=!1,b="normal",v=(r.shapes||[]).filter(function(H){return H.showlegend});function C(H){return VP.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 ge=H.legend.length;ge(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"),M=s("yref"),m=s("xref"),P=k==="h",A=M==="paper",F=m==="paper",B,U,G,j="left";P?(B=0,VP.getComponentMethod("rangeslider","isVisible")(t.xaxis)?A?(U=1.1,G="bottom"):(U=1,G="top"):A?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",F?B=1.02:(B=1,j="right")),Yv.coerce(a,o,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:B}},"x"),Yv.coerce(a,o,{y:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:U}},"y"),s("traceorder",b),NN.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)}}}_le.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var v_=$l(),VN=ei(),Fut=VN.pushUnique,But=y5(),xle=!0;GN.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"&&xle&&r.data&&r._context.showTips&&(VN.notifier(VN._(r,"Double-click on legend to isolate one trace"),"long"),xle=!1);var u=s==="togglegroup",l=a.hiddenlabels?a.hiddenlabels.slice():[],f=r._fullData,c=(a.shapes||[]).filter(function(at){return at.showlegend}),h=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,_,b,v,C,E,T,L={},x=[],k=[],M=[];function m(at,Ke){var Ct=x.indexOf(at),wt=L.visible;return wt||(wt=L.visible=[]),x.indexOf(at)===-1&&(x.push(at),Ct=x.length-1),wt[Ct]=Ke,Ct}var P=(a.shapes||[]).map(function(at){return at._input}),A=!1;function F(at,Ke){P[at].visible=Ke,A=!0}function B(at,Ke){if(!(o.groupTitle&&!u)){var Ct=at._fullInput||at,wt=Ct._isShape,Mt=Ct.index;Mt===void 0&&(Mt=Ct._index);var Bt=Ct.visible===!1?!1:Ke;wt?F(Mt,Bt):m(Mt,Bt)}}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(_=0;_{"use strict";ble.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var Tle=Te((jor,Ale)=>{"use strict";var wle=$l(),jN=y5();Ale.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 _(H,re,ae){if(r.visible!==!1&&!(n&&H!==r._id))if(re===""||!jN.isGrouped(r)){var ge="~~i"+c;u.push(ge),s[ge]=[ae],c++}else u.indexOf(re)===-1?(u.push(re),l=!0,s[re]=[ae]):s[re].push(ae)}for(d=0;dF&&(A=F)}m[d][0]._groupMinRank=A,m[d][0]._preGroupSort=d}var B=function(H,re){return H[0]._groupMinRank-re[0]._groupMinRank||H[0]._preGroupSort-re[0]._preGroupSort},U=function(H,re){return H.trace.legendrank-re.trace.legendrank||H._preSort-re._preSort};for(m.forEach(function(H,re){H[0]._preGroupSort=re}),m.sort(B),d=0;d{"use strict";var GP=ei();function Sle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ub.formatPiePercent=function(t,r){var n=Sle((t*100).toPrecision(3));return GP.numSeparate(n,r)+"%"};Ub.formatPieValue=function(t,r){var n=Sle(t.toPrecision(10));return GP.numSeparate(n,r)};Ub.getFirstFilled=function(t,r){if(GP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var Out=Mu(),qut=jl();Mle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?Out.pointStyle(t,n,i,r):qut.fill(t,r.color)}});var X3=Te((Yor,Lle)=>{"use strict";var kle=jl(),Cle=m_().castOption,Nut=Ele();Lle.exports=function(t,r,n,i){var a=n.marker.line,o=Cle(a.color,r.pts)||kle.defaultLine,s=Cle(a.width,r.pts)||0;t.call(Nut,r,n,i).style("stroke-width",s).call(kle.stroke,o)}});var KN=Te((Kor,Fle)=>{"use strict";var Op=Jl(),XN=$l(),bp=ei(),Ple=bp.strTranslate,Kv=Mu(),A0=jl(),ZN=yp().extractOpts,HP=lc(),Uut=X3(),Vut=m_().castOption,Gut=WN(),zle=12,Ile=5,Vb=2,Hut=10,Z3=5;Fle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+Gut.itemGap*2)/2,u=Ple(s,0),l=function(k,M,m,P){var A;if(k+1)A=k;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,m)};t.each(function(k){var M=Op.select(this),m=bp.ensureSingle(M,"g","layers");m.style("opacity",k[0].trace.opacity);var P=n.indentation,A=n.valign,F=k[0].lineHeight,B=k[0].height;if(A==="middle"&&P===0||!F||!B)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(F-B+3))||0,j=n.indentation;m.attr("transform",Ple(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(T).each(E).each(f).each(c).each(v).each(C);function f(k){var M=Rle(k),m=M.showFill,P=M.showLine,A=M.showGradientLine,F=M.showGradientFill,B=M.anyFill,U=M.anyLine,G=k[0],j=G.trace,W,N,H=ZN(j),re=H.colorscale,ae=H.reversescale,ge=function(Se){if(Se.size())if(m)Kv.fillGroupStyle(Se,r,!0);else{var Ge="legendfill-"+j.uid;Kv.gradient(Se,r,Ge,YN(ae),re,"fill")}},ze=function(Se){if(Se.size()){var Ge="legendline-"+j.uid;Kv.lineGroupStyle(Se),Kv.gradient(Se,r,Ge,YN(ae),re,"stroke")}},Le=HP.hasMarkers(j)||!B?"M5,0":U?"M5,-2":"M5,-3",de=Op.select(this),te=de.select(".legendfill").selectAll("path").data(m||F?[k]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Le+"h"+o+"v6h-"+o+"z").call(ge),P||A){var ke=l(void 0,j.line,Hut,Ile);N=bp.minExtend(j,{line:{width:ke}}),W=[bp.minExtend(G,{trace:N})]}var Ee=de.select(".legendlines").selectAll("path").data(P||A?[W]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Le+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:ze)}function c(k){var M=Rle(k),m=M.anyFill,P=M.anyLine,A=M.showLine,F=M.showMarker,B=k[0],U=B.trace,G=!F&&!P&&!m&&HP.hasText(U),j,W;function N(te,ke,Ee,Se){var Ge=bp.nestedProperty(U,te).get(),De=bp.isArrayOrTypedArray(Ge)&&ke?ke(Ge):Ge;if(a&&De&&Se!==void 0&&(De=Se),Ee){if(DeEe[1])return Ee[1]}return De}function H(te){return B._distinct&&B.index&&te[B.index]?te[B.index]:te[0]}if(F||G||A){var re={},ae={};if(F){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],Vb),re.mld=U._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ge=N("marker.size",bp.mean,[2,16],zle);re.ms=ge,ae.marker.size=ge}A&&(ae.line={width:N("line.width",H,[0,10],Ile)}),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(B,re)],W=bp.minExtend(U,ae),W.selectedpoints=null,W.texttemplate=null}var ze=Op.select(this).select("g.legendpoints"),Le=ze.selectAll("path.scatterpts").data(F?j:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Le.exit().remove(),Le.call(Kv.pointStyle,W,r),F&&(j[0].mrc=3);var de=ze.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 M=k[0].trace,m=M.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,_(k,this,"waterfall")}var A=[];M.visible&&m&&(A=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=Op.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(B){var U=Op.select(this),G=M[B[0]].marker,j=l(void 0,G.line,Z3,Vb);U.attr("d",B[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(k){_(k,this)}function p(k){_(k,this,"funnel")}function _(k,M,m){var P=k[0].trace,A=P.marker||{},F=A.line||{},B=A.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:XN.traceIs(P,"bar"),G=Op.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(U?[k]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",B).attr("transform",u),G.exit().remove(),G.each(function(j){var W=Op.select(this),N=j[0],H=l(N.mlw,A.line,Z3,Vb);W.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=ZN(A),ge=ae.mid;ge===void 0&&(ge=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(ge)}var ze=re||N.mc||A.color,Le=A.pattern,de=Kv.getPatternAttr,te=Le&&(de(Le.shape,0,"")||de(Le.path,0,""));if(te){var ke=de(Le.bgcolor,0,null),Ee=de(Le.fgcolor,0,null),Se=Le.fgopacity,Ge=Dle(Le.size,8,10),De=Dle(Le.solidity,.5,1),xe="legend-"+P.uid;W.call(Kv.pattern,"legend",r,xe,te,Ge,De,re,Le.fillmode,ke,Ee,Se)}else W.call(A0.fill,ze);H&&A0.stroke(W,N.mlc||F.color)})}function b(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&XN.traceIs(M,"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=Op.select(this);if((M.boxpoints==="all"||M.points==="all")&&A0.opacity(M.fillcolor)===0&&A0.opacity((M.line||{}).color)===0){var A=bp.minExtend(M,{marker:{size:a?zle:bp.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var F=l(void 0,M.line,Z3,Vb);P.style("stroke-width",F+"px").call(A0.fill,M.fillcolor),F&&A0.stroke(P,M.line.color)}})}function v(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"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,A){var F=Op.select(this),B=M[A?"increasing":"decreasing"],U=l(void 0,B.line,Z3,Vb);F.style("stroke-width",U+"px").call(A0.fill,B.fillcolor),U&&A0.stroke(F,B.line.color)})}function C(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var F=Op.select(this),B=M[A?"increasing":"decreasing"],U=l(void 0,B.line,Z3,Vb);F.style("fill","none").call(Kv.dashLine,B.line.dash,U),U&&A0.stroke(F,B.line.color)})}function E(k){L(k,this,"pie")}function T(k){L(k,this,"funnelarea")}function L(k,M,m){var P=k[0],A=P.trace,F=m?A.visible&&A.type===m:XN.traceIs(A,m),B=Op.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(F?[k]:[]);if(B.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),B.exit().remove(),B.size()){var U=A.marker||{},G=l(Vut(U.line.width,P.pts),U.line,Z3,Vb),j="pieLike",W=bp.minExtend(A,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:W},j);Uut(B,N,W,r)}}function x(k){var M=k[0].trace,m,P=[];if(M.visible)switch(M.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 A=Op.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(F,B){var U=Op.select(this),G=ZN(M),j=G.colorscale,W=G.reversescale,N=function(ge){if(ge.size()){var ze="legendfill-"+M.uid;Kv.gradient(ge,r,ze,YN(W,m==="radial"),j,"fill")}},H;if(j){if(!m){var ae=j.length;H=B===0?j[W?ae-1:0][1]:B===1?j[W?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;H=bp.isArrayOrTypedArray(re)?re[B]||re[0]:re}U.attr("d",F[0]),H?U.call(A0.fill,H):U.call(N)})}};function YN(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Rle(e){var t=e[0].trace,r=t.contours,n=HP.hasLines(t),i=HP.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 Dle(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var e7=Te((Jor,Wle)=>{"use strict";var nv=Jl(),Ah=ei(),$N=Cc(),Gb=$l(),XP=k3(),JN=xp(),Th=Mu(),g5=jl(),Hb=Wf(),Ble=HN().handleItemClick,Ole=HN().handleTitleClick,Gh=WN(),QN=Nh(),Gle=QN.LINE_SPACING,K3=QN.FROM_TL,qle=QN.FROM_BR,Nle=Tle(),Wut=KN(),J3=y5(),Y3=1,jut=/^legend[0-9]*$/;Wle.exports=function(t,r){if(r)Ule(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(jut)&&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(),$N.autoMargin(e,i);var _=Ah.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Ah.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),v=Ah.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});v.call(g5.stroke,r.bordercolor).call(g5.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Ah.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Ah.ensureSingle(C,"text",i+"titletext"),T.attr("text-anchor","start").call(Th.font,E.font).text(E.text),jP(T,C,e,r,Y3),!s&&(r.titleclick||r.titledoubleclick)&&Kut(C,e,r,i)):(C.selectAll("."+i+"titletext").remove(),C.selectAll("."+i+"titletoggle").remove());var L=Ah.ensureSingle(_,"rect","scrollbar",function(M){M.attr(Gh.scrollBarEnterAttrs).call(g5.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(M){let m=M[0],P=m.trace;if(m.groupTitle){let A=P.legendgroup,F=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(F).some(function(U){return U.legendgroup===A&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Gb.traceIs(P,"pie-like")?p.indexOf(M[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){nv.select(this).call(Zut,e,r)}).call(Wut,e,r).each(function(M){s||M[0].groupTitle&&r.groupclick==="toggleitem"||nv.select(this).call(Yut,e,i)}),Ah.syncOrAsync([$N.previousPromises,function(){return Qut(e,x,k,r,C)},function(){var M=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text){let je=(n.shapes||[]).filter(function(gt){return gt.showlegend}),Qe=e._fullData.concat(je).some(function(gt){let qt=gt.legend||"legend";var at=Array.isArray(qt)?qt.includes(i):qt===i;return at&>.visible===!0});T.style("opacity",Qe?1:.5)}if(!s){var F,B;P?F=M.l+M.w*r.x-K3[ZP(r)]*r._width:F=n.width*r.x-K3[ZP(r)]*r._width,A?B=M.t+M.h*(1-r.y)-K3[YP(r)]*r._effHeight:B=n.height*(1-r.y)-K3[YP(r)]*r._effHeight;var U=eft(e,i,F,B);if(U)return;if(n.margin.autoexpand){var G=F,j=B;F=P?Ah.constrain(F,0,n.width-r._width):G,B=A?Ah.constrain(B,0,n.height-r._effHeight):j,F!==G&&Ah.log("Constrain "+i+".x to make legend fit inside graph"),B!==j&&Ah.log("Constrain "+i+".y to make legend fit inside graph")}Th.setTranslate(_,F,B)}if(L.on(".drag",null),_.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,ge=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+ge}),Th.setClipUrl(C,a,e),Ge(ge,N,ae),_.on("wheel",function(){ge=Ah.constrain(r._scrollY+nv.event.deltaY/re*H,0,re),Ge(ge,N,ae),ge!==0&&ge!==re&&nv.event.preventDefault()});var ze,Le,de,te=function(je,Qe,gt){var qt=(gt-Qe)/ae+je;return Ah.constrain(qt,0,re)},ke=function(je,Qe,gt){var qt=(Qe-gt)/ae+je;return Ah.constrain(qt,0,re)},Ee=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"?ze=je.changedTouches[0].clientY:ze=je.clientY,de=ge}).on("drag",function(){var je=nv.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Le=je.changedTouches[0].clientY:Le=je.clientY,ge=te(de,ze,Le),Ge(ge,N,ae))});L.call(Ee);var Se=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"&&(ze=je.changedTouches[0].clientY,de=ge)}).on("drag",function(){var je=nv.event.sourceEvent;je.type==="touchmove"&&(Le=je.changedTouches[0].clientY,ge=ke(de,ze,Le),Ge(ge,N,ae))});C.call(Se)}function Ge(je,Qe,gt){r._scrollY=e._fullLayout[i]._scrollY=je,Th.setTranslate(C,0,-je),Th.setRect(L,r._width,Gh.scrollBarMargin+je*gt,Gh.scrollBarWidth,Qe),b.select("rect").attr("y",m+je)}if(e._context.edits.legendPosition){var De,xe,Ne,ce;_.classed("cursor-move",!0),JN.init({element:_.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var Qe=Th.getTranslate(_);Ne=Qe.x,ce=Qe.y}},moveFn:function(je,Qe){if(Ne!==void 0&&ce!==void 0){var gt=Ne+je,qt=ce+Qe;Th.setTranslate(_,gt,qt),De=JN.align(gt,r._width,M.l,M.l+M.w,r.xanchor),xe=JN.align(qt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(De!==void 0&&xe!==void 0){var je={};je[i+".x"]=De,je[i+".y"]=xe,Gb.call("_guiRelayout",e,je)}},clickFn:function(je,Qe){var gt=o.selectAll("g.traces").filter(function(){var qt=this.getBoundingClientRect();return Qe.clientX>=qt.left&&Qe.clientX<=qt.right&&Qe.clientY>=qt.top&&Qe.clientY<=qt.bottom});gt.size()>0&&Hle(e,r,gt,je,Qe)}})}}],e)}}function WP(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 Hle(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),Gb.traceIs(o,"pie-like")&&(l.label=r.datum()[0].label);var f=XP.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=XP.triggerHandler(e,"plotly_legenddoubleclick",l);c!==!1&&f!==!1&&u&&Ble(r,e,t,u)}}function Zut(e,t,r){var n=J3.getId(r),i=e.data()[0][0],a=i.trace,o=Gb.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?Vle(l,u):l);var h=r.indentation+r.itemwidth+Gh.itemGap*2;Hb.positionText(c,h,0),s?c.call(Hb.makeEditable,{gd:t,text:l}).call(jP,e,t,r).on("edit",function(d){this.text(Vle(d,u)).call(jP,e,t,r);var p=i.trace._fullInput||{},_={};return _.name=d,p._isShape?Gb.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):Gb.call("_guiRestyle",t,_,a.index)}):jP(c,e,t,r)}function Vle(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 Yut(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(g5.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)),Hle(t,s,e,a,nv.event)}}))}function Kut(e,t,r,n){if(t._fullData.some(function(l){let f=l.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Gb.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(g5.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(XP.triggerHandler(t,"plotly_legendtitleclick",l)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Ole(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,XP.triggerHandler(t,"plotly_legendtitledoubleclick",l)!==!1&&r.titledoubleclick&&Ole(t,r,r.titledoubleclick))}))}function jP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Hb.convertToTspans(e,r,function(){Jut(t,r,n,i)})}function Jut(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=J3.getId(r);r||(r=t._fullLayout[u]);var l=r.borderwidth,f;n===Y3?f=r.title.font:i.groupTitle?f=i.groupTitle.font:f=r.font;var c=f.size*Gle,h,d;if(s){var p=Th.bBox(s);h=p.height,d=p.width,n===Y3?Th.setTranslate(o,l,l+h*.75):Th.setTranslate(o,0,h*.25)}else{var _="."+u+(n===Y3?"title":"")+"text",b=e.select(_),v=Hb.lineCount(b),C=b.node();if(h=c*v,d=C?Th.bBox(C).width:0,n===Y3)r.title.side==="left"&&(d+=Gh.itemGap*2),Hb.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),Hb.positionText(b,E,-c*((v-1)/2-.3))}}n===Y3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=c,i.height=Math.max(h,16)+3,i.width=d)}function $ut(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 Qut(e,t,r,n,i){var a=e._fullLayout,o=J3.getId(n);n||(n=a[o]);var s=a._size,u=J3.isVertical(n),l=J3.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,h=2*c,d=Gh.itemGap,p=n.indentation+n.itemwidth+d*2,_=2*(c+d),b=YP(n),v=n.y<0||n.y===0&&b==="top",C=n.y>1||n.y===1&&b==="bottom",E=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:k}=n,M=v||C||L!=="v"||x!=="paper";k||(k=M?.5:1);let m=M?a.height:s.h;n._maxHeight=Math.max(k>1?k:k*m,30);var P=0;n._width=0,n._height=0;var A=$ut(n);if(u)r.each(function(je){var Qe=je[0].height;Th.setTranslate(this,c+A[0],c+A[1]+n._height+Qe/2+d),n._height+=Qe,n._width=Math.max(n._width,je[0].width)}),P=p+n._width,n._width+=d+p+h,n._height+=_,l&&(t.each(function(je,Qe){Th.setTranslate(this,0,Qe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var F=ZP(n),B=n.x<0||n.x===0&&F==="right",U=n.x>1||n.x===1&&F==="left",G=C||v,j=a.width/2;n._maxWidth=Math.max(B?G&&F==="left"?s.l+s.w:j:U?G&&F==="right"?s.r+s.w:j:s.w,2*p);var W=0,N=0;r.each(function(je){var Qe=WP(je,n,p);W=Math.max(W,Qe),N+=Qe}),P=null;var H=0;if(l){var re=0,ae=0,ge=0;t.each(function(){var je=0,Qe=0;nv.select(this).selectAll("g.traces").each(function(qt){var at=WP(qt,n,p),Ke=qt[0].height;Th.setTranslate(this,A[0],A[1]+c+d+Ke/2+Qe),Qe+=Ke,je=Math.max(je,at),T[qt[0].trace.legendgroup]=je});var gt=je+d;ae>0&>+c+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,ge+=re+E,re=Qe):re=Math.max(re,Qe),Th.setTranslate(this,ae,ge),ae+=gt}),n._width=Math.max(H,ae)+c,n._height=ge+re+_}else{var ze=r.size(),Le=N+h+(ze-1)*d=n._maxWidth&&(H=Math.max(H,Ee),te=0,ke+=de,n._height+=de,de=0),Th.setTranslate(this,A[0]+c+te,A[1]+c+ke+Qe/2+d),Ee=te+gt+d,te+=qt,de=Math.max(de,Qe)}),Le?(n._width=te+h,n._height=de+_):(n._width=Math.max(H,Ee)+h,n._height+=de+_)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(c+Gh.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(c+Gh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Se=e._context.edits,Ge=Se.legendText||Se.legendPosition;r.each(function(je){var Qe=nv.select(this).select("."+o+"toggle"),gt=je[0].height,qt=je[0].trace.legendgroup,at=WP(je,n,p);l&&qt!==""&&(at=T[qt]);var Ke=Ge?p:P||at;!u&&!f&&(Ke+=d/2),Th.setRect(Qe,0,-gt/2,Ke,gt)});var De=i.select("."+o+"titletext");De.node()&&Xut(De,n,c);var xe=i.select("."+o+"titletoggle");if(xe.size()&&De.node()){var Ne=De.attr("x")||0,ce=Gh.titlePad;Th.setRect(xe,Ne-ce,c,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function eft(e,t,r,n){var i=e._fullLayout,a=i[t],o=ZP(a),s=YP(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 $N.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*K3[o],r:a._width*qle[o],b:a._effHeight*qle[s],t:a._effHeight*K3[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 ZP(e){return Ah.isRightAnchor(e)?"right":Ah.isCenterAnchor(e)?"center":"left"}function YP(e){return Ah.isBottomAnchor(e)?"bottom":Ah.isMiddleAnchor(e)?"middle":"top"}});var n7=Te(i7=>{"use strict";var Wb=Jl(),Pg=ku(),jle=hd(),ah=ei(),tft=ah.pushUnique,t7=ah.strTranslate,rft=ah.strRotate,ift=k3(),T0=Wf(),nft=yle(),Ty=Mu(),vd=jl(),KP=xp(),Sy=wu(),aft=qh().zindexSeparator,Q3=$l(),km=iv(),jb=NM(),oft=UN(),sft=e7(),eue=jb.YANGLE,r7=Math.PI*eue/180,lft=1/Math.sin(r7),uft=Math.cos(r7),fft=Math.sin(r7),Uc=jb.HOVERARROWSIZE,kf=jb.HOVERTEXTPAD,Xle={box:!0,ohlc:!0,violin:!0,candlestick:!0},cft={scatter:!0,scattergl:!0,splom:!0};function Zle(e,t){return e.distance-t.distance}i7.hover=function(t,r,n,i){t=ah.getGraphDiv(t);var a=r.target;ah.throttle(t._fullLayout._uid+jb.HOVERID,jb.HOVERMINTIME,function(){hft(t,r,n,i,a)})};i7.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=aue(i),o=oue(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,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(v,C),k=Math.max(v,C),M=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(Q3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,F=A.offsetLeft,B=A.offsetTop;x+=F,k+=F,M+=B,m+=B}L.bbox={x0:x+o,x1:k+o,y0:M+a,y1:m+a},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=rue(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Wb.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>M[0]._length)return KP.unhoverRaw(e,t)}if(t.pointerX=Ne+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?j=km.flat(a,t.xval):j=km.p2c(k,Ne),"yval"in t?W=km.flat(a,t.yval):W=km.p2c(M,ce),!Pg(j[0])||!Pg(W[0]))return ah.warn("Fx.hover failed",t,e),KP.unhoverRaw(e,t)}var gt=1/0;function qt(ni,$i){for(H=0;HEe&&(U.splice(0,Ee),gt=U[0].distance),c&&B!==0&&U.length===0){ke.distance=B,ke.index=!1;var Rt=ae._module.hoverPoints(ke,de,te,"closest",{hoverLayer:s._hoverlayer});if(Rt&&(Rt=Rt.filter(function(Nr){return Nr.spikeDistance<=B})),Rt&&Rt.length){var yt,Gt=Rt.filter(function(Nr){return Nr.xa.showspikes&&Nr.xa.spikesnap!=="hovered data"});if(Gt.length){var Wt=Gt[0];Pg(Wt.x0)&&Pg(Wt.y0)&&(yt=Ke(Wt),(!Se.vLinePoint||Se.vLinePoint.spikeDistance>yt.spikeDistance)&&(Se.vLinePoint=yt))}var xr=Rt.filter(function(Nr){return Nr.ya.showspikes&&Nr.ya.spikesnap!=="hovered data"});if(xr.length){var Lr=xr[0];Pg(Lr.x0)&&Pg(Lr.y0)&&(yt=Ke(Lr),(!Se.hLinePoint||Se.hLinePoint.spikeDistance>yt.spikeDistance)&&(Se.hLinePoint=yt))}}}}}qt();function at(ni,$i,Qi){for(var si=null,Ti=1/0,Ni,Rt=0;Rtni.trace.index===He.trace.index):U=[He];var nt=U.length,tt=Qle("x",He,s),It=Qle("y",He,s);qt(tt,It);var Yt=[],cr={},_r=0,yr=function(ni){var $i=Xle[ni.trace.type]?tue(ni):ni.trace.index;if(!cr[$i])_r++,cr[$i]=_r,Yt.push(ni);else{var Qi=cr[$i]-1,si=Yt[Qi];Qi>0&&Math.abs(ni.distance)nt-1;Ut--)yr(U[Ut]);U=Yt,Bt()}var Re=e._hoverdata,be=[],Oe=aue(e),Ie=oue(e);for(let ni of U){var Fe=km.makeEventData(ni,ni.trace,ni.cd);if(ni.hovertemplate!==!1){var ft=!1;ni.cd[ni.index]&&ni.cd[ni.index].ht&&(ft=ni.cd[ni.index].ht),ni.hovertemplate=ft||ni.trace.hovertemplate||!1}if(ni.xa&&ni.ya){var ye=ni.x0+ni.xa._offset,fe=ni.x1+ni.xa._offset,pe=ni.y0+ni.ya._offset,dt=ni.y1+ni.ya._offset,Pt=Math.min(ye,fe),zt=Math.max(ye,fe),rr=Math.min(pe,dt),Gr=Math.max(pe,dt);Fe.bbox={x0:Pt+Ie,x1:zt+Ie,y0:rr+Oe,y1:Gr+Oe}}ni.eventData=[Fe],be.push(Fe)}e._hoverdata=be;var Br=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&Ge&&U.length>1,Er=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Rr=rue(U,{gd:e,hovermode:h,rotateLabels:Br,bgColor:Er,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),pi=Rr.hoverLabels;if(km.isUnifiedHover(h)||(pft(pi,Br,s,Rr.commonLabelBoundingBox),nue(pi,Br,s._invScaleX,s._invScaleY)),i&&i.tagName){var Di=Q3.getComponentMethod("annotations","hasClickToShow")(e,be);nft(Wb.select(i),Di?"pointer":"")}!i||n||!yft(e,t,Re)||(Re&&e.emit("plotly_unhover",{event:t,points:Re}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:j,yvals:W}))}function tue(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 dft=/([\s\S]*)<\/extra>/;function rue(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||jb.HOVERFONT,c=t.fontSize||jb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,T=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Oe&&(Ie=n.width-Oe),He.attr("d","M"+(Ut-Ie)+",0L"+(Ut-Ie+Uc)+","+be+Uc+"H"+Oe+"v"+be+(kf*2+yr.height)+"H"+-Oe+"V"+be+Uc+"H"+(Ut-Ie-Uc)+"Z"),Ut=Ie,H.minX=Ut-Oe,H.maxX=Ut+Oe,E.side==="top"?(H.minY=Re-(kf*2+yr.height),H.maxY=Re-kf):(H.minY=Re+kf,H.maxY=Re+(kf*2+yr.height))}else{var Fe,ft,ye;T.side==="right"?(Fe="start",ft=1,ye="",Ut=E._offset+E._length):(Fe="end",ft=-1,ye="-",Ut=E._offset),Re=T._offset+(C.y0+C.y1)/2,nt.attr("text-anchor",Fe),He.attr("d","M0,0L"+ye+Uc+","+Uc+"V"+(kf+yr.height/2)+"h"+ye+(kf*2+yr.width)+"V-"+(kf+yr.height/2)+"H"+ye+Uc+"V-"+Uc+"Z"),H.minY=Re-(kf+yr.height/2),H.maxY=Re+(kf+yr.height/2),T.side==="right"?(H.minX=Ut+Uc,H.maxX=Ut+Uc+(kf*2+yr.width)):(H.minX=Ut-Uc-(kf*2+yr.width),H.maxX=Ut-Uc);var fe=yr.height/2,pe=P-yr.top-fe,dt="clip"+n._uid+"commonlabel"+T._id,Pt;if(UtHe.hoverinfo!=="none");if(Je.length===0)return[];var re=n.hoverlabel,ae=re.font,ge=Je[0],ze=((i==="x unified"?ge.xa:ge.ya).unifiedhovertitle||{}).text,Le=ze?ah.hovertemplateString({data:i==="x unified"?[{xa:ge.xa,x:ge.xVal}]:[{ya:ge.ya,y:ge.yVal}],fallback:ge.trace.hovertemplatefallback,locale:n._d3locale,template:ze}):k,de={showlegend:!0,legend:{title:{text:Le,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};oft(de,te,r._fullData);var ke=te.legend;ke.entries=[];for(var Ee=0;Ee=0?ot=Bt:Zt+Qe=0?ot=Zt:Et+Qe=0?At=wt:Mt+gt=0?At=Mt:Ae+gt=0,(Je.idealAlign==="top"||!Gr)&&Br?(ye-=pe/2,Je.anchor="end"):Gr?(ye+=pe/2,Je.anchor="start"):Je.anchor="middle",Je.crossPos=ye;else{if(Je.pos=ye,Gr=ft+fe/2+rr<=A,Br=ft-fe/2-rr>=0,(Je.idealAlign==="left"||!Gr)&&Br)ft-=fe/2,Je.anchor="end";else if(Gr)ft+=fe/2,Je.anchor="start";else{Je.anchor="middle";var Er=rr/2,Rr=ft+Er-A,pi=ft-Er;Rr>0&&(ft-=Rr),pi<0&&(ft+=-pi)}Je.crossPos=ft}Re.attr("text-anchor",Je.anchor),Oe&&be.attr("text-anchor",Je.anchor),He.attr("transform",t7(ft,ye)+(a?rft(eue):""))}),{hoverLabels:vt,commonLabelBoundingBox:H}}function Yle(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=$le(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(dft,(p,_)=>(o=$le(_,e.nameLength),""))}return[s,o]}function pft(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,_=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,ge=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var ze=iue(j,t),Le=j.anchor,de=Le==="end"?-1:1,te,ke;if(Le==="middle")te=j.crossPos+(H?b(ze.y-j.by/2):_(j.bx/2+j.tx2width/2)),ke=te+(H?b(j.by):_(j.bx));else if(H)te=j.crossPos+b(Uc+ze.y)-b(j.by/2-Uc),ke=te+b(j.by);else{var Ee=_(de*Uc+ze.x),Se=Ee+_(de*j.bx);te=j.crossPos+Math.min(Ee,Se),ke=j.crossPos+Math.max(Ee,Se)}H?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,ge=r.width):ge=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,ge=r.height):ge=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(H?lft:1)/2,pmin:ae,pmax:ge}]}),l.sort(function(j,W){return j[0].posref-W[0].posref||s*(W[0].traceIndex-j[0].traceIndex)});var v,C,E,T,L,x,k;function M(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(T=0;TW.pmax&&H++;for(T=j.length-1;T>=0&&!(H<=0);T--)x=j[T],x.pos>W.pmax-1&&(x.del=!0,H--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(H<=0);T--)x=j[T],x.pos+x.dp+x.size>W.pmax&&(x.del=!0,H--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(m.push.apply(m,P),l.splice(T+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 T++}l.forEach(M)}for(T=l.length-1;T>=0;T--){var B=l[T];for(L=B.length-1;L>=0;L--){var U=B[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function iue(e,t){var r=0,n=e.offset;return t&&(n*=-fft,r=e.offset*uft),{x:r,y:n}}function vft(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 nue(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 u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=vft(o),h=iue(o,t),d=h.x,p=h.y,_=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;_?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+kf,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&l!=="start"?(u.attr("text-anchor","start"),C=_?-o.bx/2-o.tx2width/2+kf:-o.bx-kf):T==="right"&&l!=="end"&&(u.attr("text-anchor","end"),C=_?o.bx/2-o.tx2width/2-kf:o.bx+kf)),u.call(T0.positionText,i(C),a(E)),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 mft(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Pg(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 _=s(d,p);o(_)&&(e[h]=_)}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 Kle(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 _=f.spikesnap;_==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=jle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,C=f.spikethickness,E=f.spikecolor||b,T=Sy.getPxPosition(e,f),L,x;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,x=d),v.indexOf("across")!==-1){var k=f._counterDomainMin,M=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),M=Math.max(M,f.position)),L=a.l+k*a.w,x=a.l+M*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:T+(f.side!=="right"?C:-C),cy:p,r:C,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var F=l.spikesnap;F==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var B=jle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||B,W=Sy.getPxPosition(e,l),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=W,H=A),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 yft(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 Jle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function $le(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function gft(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,oue=e=>e.offsetLeft+e.clientLeft;function $3(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 _5=Te((Qor,sue)=>{"use strict";var _ft=ei(),xft=jl(),bft=iv().isUnifiedHover;sue.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&&bft(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=xft.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),_ft.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var uue=Te((esr,lue)=>{"use strict";var wft=ei(),Aft=_5(),Tft=j1();lue.exports=function(t,r){function n(i,a){return wft.coerce(t,r,Tft,i,a)}Aft(t,r,n)}});var hue=Te((tsr,cue)=>{"use strict";var fue=ei(),Sft=p3(),Mft=_5();cue.exports=function(t,r,n,i){function a(s,u){return fue.coerce(t,r,Sft,s,u)}var o=fue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Mft(t,r,a,o)}});var a7=Te((rsr,due)=>{"use strict";var Eft=ei(),kft=j1();due.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Eft.coerce(t,r,kft,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var mue=Te((isr,vue)=>{"use strict";var pue=ei(),Cft=j1(),Lft=a7(),Pft=_5();vue.exports=function(t,r){function n(f,c){return pue.coerce(t,r,Cft,f,c)}var i=Lft(t,r);i&&(n("hoverdistance"),n("spikedistance"));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"),Pft(t,r,n),pue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var _ue=Te((nsr,gue)=>{"use strict";var o7=ei(),yue=$l();gue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return o7.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Ift=$l(),Rft=n7().hover;xue.exports=function(t,r,n){var i=Ift.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Rft(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Xc=Te((osr,Tue)=>{"use strict";var Dft=Jl(),JP=ei(),Fft=xp(),x5=iv(),wue=j1(),Aue=n7();Tue.exports={moduleType:"component",name:"fx",constants:NM(),schema:{layout:wue},attributes:p3(),layoutAttributes:wue,supplyLayoutGlobalDefaults:uue(),supplyDefaults:hue(),supplyLayoutDefaults:mue(),calc:_ue(),getDistanceFunction:x5.getDistanceFunction,getClosest:x5.getClosest,inbox:x5.inbox,quadrature:x5.quadrature,appendArrayPointValue:x5.appendArrayPointValue,castHoverOption:Oft,castHoverinfo:qft,hover:Aue.hover,unhover:Fft.unhover,loneHover:Aue.loneHover,loneUnhover:Bft,click:bue()};function Bft(e){var t=JP.isD3Selection(e)?e:Dft.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Oft(e,t,r){return JP.castOption(e,t,"hoverlabel."+r)}function qft(e,t,r){function n(i){return JP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return JP.castOption(e,r,"hoverinfo",n)}});var Cm=Te(zg=>{"use strict";zg.selectMode=function(e){return e==="lasso"||e==="select"};zg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};zg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};zg.selectingOrDrawing=function(e){return zg.freeMode(e)||zg.rectMode(e)}});var b5=Te((lsr,Sue)=>{"use strict";Sue.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 $P=Te((usr,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)"},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 ez=Te((fsr,Eue)=>{"use strict";var QP=32;Eue.exports={CIRCLE_SIDES:QP,i000:0,i090:QP/4,i180:QP/2,i270:QP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var tz=Te((csr,Cue)=>{"use strict";var Nft=ei().strTranslate;function kue(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 Uft(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 Vft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return kue(e,r[t])}}function Gft(e){return Nft(e.xaxis._offset,e.yaxis._offset)}Cue.exports={p2r:kue,r2p:Uft,axValue:Vft,getTransform:Gft}});var y_=Te(Ig=>{"use strict";var Hft=n5(),zue=ez(),eA=zue.CIRCLE_SIDES,s7=zue.SQRT2,Iue=tz(),Lue=Iue.p2r,Pue=Iue.r2p,Wft=[0,3,4,5,6,1,2],jft=[0,3,4,1,2];Ig.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Rue=Wc(),que=Cm(),Xft=que.drawMode,Zft=que.openMode,tA=ez(),Due=tA.i000,Fue=tA.i090,Bue=tA.i180,Oue=tA.i270,Yft=tA.cos45,Kft=tA.sin45,Nue=tz(),iz=Nue.p2r,g_=Nue.r2p,Jft=o_(),$ft=Jft.clearOutline,nz=y_(),Qft=nz.readPaths,ect=nz.writePaths,tct=nz.ellipseOver,rct=nz.fixDatesForPaths;function ict(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(!Xft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var nct=Cm(),act=nct.selectMode,oct=o_(),sct=oct.clearOutline,l7=y_(),lct=l7.readPaths,uct=l7.writePaths,fct=l7.fixDatesForPaths;Gue.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(!act(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Hue.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_=Te(Qd=>{"use strict";var My=A5(),Wue=ei(),__=wu();Qd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Qd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Qd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Qd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Qd.extractPathCoords=function(e,t,r){var n=[],i=e.match(My.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(My.paramRE);if(!(!s||s.length{let s=o.charAt(0),u=i[s].drawn!==void 0;return a+(u?1:0)},0)};Qd.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=Qd.shapePositionToRange(t);o=function(u){var l=Rg(t,r);return t._offset+t.r2p(s(u,!0))+l},t.type==="date"&&(o=Qd.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};Qd.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=Qd.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};Qd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Qd.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}};Qd.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}};Qd.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,_,b,v;function C(P,A,F,B){var U;if(P)if(A==="domain")B?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Qd.shapePositionToRange(P);U=function(j){return P._offset+P.r2p(G(j,!0))},F==="path"&&P.type==="date"&&(U=Qd.decodeDate(U))}else B?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,A){return C(o[A],__.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,A){return C(s[A],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=C(s,i,r,!0)),r==="path")return cct(t,h,d);if(n==="array")u=Rg(o[0],t.x0shift),l=Rg(o[1],t.x1shift),p=h[0](t.x0)+u,_=h[1](t.x1)+l;else if(u=Rg(o,t.x0shift),l=Rg(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);p=P+t.x0+u,_=P+t.x1+l}else p=h(t.x0)+u,_=h(t.x1)+l;if(i==="array")f=Rg(s[0],t.y0shift),c=Rg(s[1],t.y1shift),b=d[0](t.y0)+f,v=d[1](t.y1)+c;else if(f=Rg(s,t.y0shift),c=Rg(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"+_+","+v;if(r==="rect")return"M"+p+","+b+"H"+_+"V"+v+"H"+p+"Z";var E=(p+_)/2,T=(b+v)/2,L=Math.abs(E-p),x=Math.abs(T-b),k="A"+L+","+x,M=E+L+","+T,m=E+","+(T-x);return"M"+M+k+" 0 1,1 "+m+k+" 0 0,1 "+M+"Z"};function cct(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(My.segmentRE,function(h){var d=0,p=h.charAt(0),_=My.paramIsX[p],b=My.paramIsY[p],v=My.numParams[p];let C=_.drawn!==void 0,E=b.drawn!==void 0,T=u?t[f]:t,L=l?r[c]:r;var x=h.slice(1).replace(My.paramRE,function(k){return _[d]?i==="pixel"?k=T(o)+Number(k):k=T(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.*/,""),Wue.log("Ignoring extra params in segment "+h)),C&&f++,E&&c++,p+x})}function Rg(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 c7=Te((ysr,Zue)=>{"use strict";var hct=ei(),Ey=wu(),jue=Wf(),Xue=Mu(),dct=y_().readPaths,f7=x_(),pct=f7.getPathString,T5=RL(),vct=Nh().FROM_TL;Zue.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=Ey.getFromId(t,n.xref),u=Ey.getFromId(t,n.yref);let ae=Array.isArray(n.xref),ge=Array.isArray(n.yref);for(var l in T5){var f=typeof T5[l]=="function",c=!ae||T5.simpleXVariables.includes(l),h=!ge||T5.simpleYVariables.includes(l);if(f&&c&&h){var d=T5[l](n,s,u);d!==void 0&&(o[l]=d)}}}a=hct.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},_=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,T,L,x;if(n.path){var k=pct(t,n),M=dct(k,t);E=1/0,L=1/0,T=-1/0,x=-1/0;for(var m=0;m=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function yct(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,_=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 gct=ei(),_ct=gct.strTranslate,Yue=xp(),$ue=Cm(),xct=$ue.drawMode,Que=$ue.selectMode,efe=$l(),Kue=jl(),sz=ez(),bct=sz.i000,wct=sz.i090,Act=sz.i180,Tct=sz.i270,Sct=o_(),tfe=Sct.clearOutlineControllers,d7=y_(),oz=d7.pointsOnRectangle,h7=d7.pointsOnEllipse,Mct=d7.writePaths,Ect=az().newShapes,kct=az().createShapeObj,Cct=u7(),Lct=c7();rfe.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(h7(t[0])||n.hasText)&&s({redrawing:!0})}function s(W){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Ect(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Cct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&efe.call((W||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=xct(f),h=Que(f);(c||h)&&(a._fullLayout._outlining=!0),tfe(a),r.attr("d",Mct(t));var d,p,_,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Pct([],t);var C=l.append("g").attr("class","outline-controllers");P(C),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=kct(r,n,n.dragmode);Lct(a,"label-temp",T,E)}function L(W){_=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(W,N){if(t.length){var H=v[_][b][1],re=v[_][b][2],ae=t[_],ge=ae.length;if(oz(ae)){var ze=W,Le=N;if(n.isActiveSelection){var de=Jue(ae,b);de[1]===ae[b][1]?Le=0:ze=0}for(var te=0;te1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[_]=W,o(),s())}}function m(W,N){if(W===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[_];!oz(H)&&!h7(H)&&M()}}function P(W){d=[];for(var N=0;N{"use strict";var Ict=Jl(),sfe=$l(),v7=ei(),Xb=wu(),Rct=y_().readPaths,Dct=lz(),fz=c7(),lfe=o_().clearOutlineControllers,p7=jl(),cz=Mu(),Fct=Lf().arrayEditor,ife=xp(),nfe=Em(),Zb=A5(),Ev=x_(),m7=Ev.getPathString;cfe.exports={draw:y7,drawOne:ufe,eraseActiveShape:Nct,drawLabel:fz};function y7(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;iXb.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 Oct(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F=Ict.select(t.node().parentNode),B=Xb.getFromId(e,r.xref),U=Xb.getRefType(r.xref),G=Xb.getFromId(e,r.yref),j=Xb.getRefType(r.yref),W=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,ae=function(at,Ke){var Ct=Ev.getDataToPixel(e,B,Ke,!1,U);return Ct(at)},ge=function(at,Ke){var Ct=Ev.getDataToPixel(e,G,Ke,!0,j);return Ct(at)},ze=Ev.getPixelToData(e,B,!1,U),Le=Ev.getPixelToData(e,G,!0,j),de=Ee(),te={element:de.node(),gd:e,prepFn:De,doneFn:xe,clickFn:Ne},ke;ife.init(te),de.node().onmousemove=Ge;function Ee(){return f?Se():t}function Se(){var at=10,Ke=Math.max(r.line.width,at),Ct=i.append("g").attr("data-index",n).attr("drag-helper",!0);Ct.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":Ke,"stroke-opacity":"0"});var wt={"fill-opacity":"0"},Mt=Math.max(Ke/2,at);return Ct.append("circle").attr({"data-line-point":"start-point",cx:u?ae(r.xanchor)+r.x0:ae(r.x0,W),cy:l?ge(r.yanchor)-r.y0:ge(r.y0,H),r:Mt}).style(wt).classed("cursor-grab",!0),Ct.append("circle").attr({"data-line-point":"end-point",cx:u?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:l?ge(r.yanchor)-r.y1:ge(r.y1,re),r:Mt}).style(wt).classed("cursor-grab",!0),Ct}function Ge(at){if(uz(e)){ke=null;return}if(f)at.target.tagName==="path"?ke="move":ke=at.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ke=te.element.getBoundingClientRect(),Ct=Ke.right-Ke.left,wt=Ke.bottom-Ke.top,Mt=at.clientX-Ke.left,Bt=at.clientY-Ke.top,Zt=!c&&Ct>o&&wt>s&&!at.shiftKey?ife.getCursor(Mt/Ct,1-Bt/wt):"move";nfe(t,Zt),ke=Zt.split("-")[0]}}function De(at){uz(e)||(u&&(v=ae(r.xanchor)),l&&(C=ge(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:ge(r.y0),_=u?r.x1:ae(r.x1),b=l?r.y1:ge(r.y1)),d<_?(L=d,m="x0",x=_,P="x1"):(L=_,m="x1",x=d,P="x0"),!l&&pb?(E=p,k="y0",T=b,M="y1"):(E=b,k="y1",T=p,M="y0"),Ge(at),Qe(i,r),qt(t,r,e),te.moveFn=ke==="move"?ce:je,te.altKey=at.altKey)}function xe(){uz(e)||(nfe(t),gt(i),ffe(t,e,r),sfe.call("_guiRelayout",e,a.getUpdateObj()))}function Ne(){uz(e)||gt(i)}function ce(at,Ke){if(r.type==="path"){var Ct=function(Bt){return Bt},wt=Ct,Mt=Ct;u?h("xanchor",r.xanchor=ze(v+at)):(wt=function(Zt){return ze(ae(Zt)+at)},B&&B.type==="date"&&(wt=Ev.encodeDate(wt))),l?h("yanchor",r.yanchor=Le(C+Ke)):(Mt=function(Zt){return Le(ge(Zt)+Ke)},G&&G.type==="date"&&(Mt=Ev.encodeDate(Mt))),h("path",r.path=afe(A,wt,Mt))}else u?h("xanchor",r.xanchor=ze(v+at)):(h("x0",r.x0=ze(d+at)),h("x1",r.x1=ze(_+at))),l?h("yanchor",r.yanchor=Le(C+Ke)):(h("y0",r.y0=Le(p+Ke)),h("y1",r.y1=Le(b+Ke)));t.attr("d",m7(e,r)),Qe(i,r),fz(e,n,r,F)}function je(at,Ke){if(c){var Ct=function(cr){return cr},wt=Ct,Mt=Ct;u?h("xanchor",r.xanchor=ze(v+at)):(wt=function(_r){return ze(ae(_r)+at)},B&&B.type==="date"&&(wt=Ev.encodeDate(wt))),l?h("yanchor",r.yanchor=Le(C+Ke)):(Mt=function(_r){return Le(ge(_r)+Ke)},G&&G.type==="date"&&(Mt=Ev.encodeDate(Mt))),h("path",r.path=afe(A,wt,Mt))}else if(f){if(ke==="resize-over-start-point"){var Bt=d+at,Zt=l?p-Ke:p+Ke;h("x0",r.x0=u?Bt:ze(Bt)),h("y0",r.y0=l?Zt:Le(Zt))}else if(ke==="resize-over-end-point"){var Et=_+at,Ae=l?b-Ke:b+Ke;h("x1",r.x1=u?Et:ze(Et)),h("y1",r.y1=l?Ae:Le(Ae))}}else{var ot=function(cr){return ke.indexOf(cr)!==-1},At=ot("n"),vt=ot("s"),Je=ot("w"),He=ot("e"),nt=At?E+Ke:E,tt=vt?T+Ke:T,It=Je?L+at:L,Yt=He?x+at:x;l&&(At&&(nt=E-Ke),vt&&(tt=T-Ke)),(!l&&tt-nt>s||l&&nt-tt>s)&&(h(k,r[k]=l?nt:Le(nt)),h(M,r[M]=l?tt:Le(tt))),Yt-It>o&&(h(m,r[m]=u?It:ze(It)),h(P,r[P]=u?Yt:ze(Yt)))}t.attr("d",m7(e,r)),Qe(i,r),fz(e,n,r,F)}function Qe(at,Ke){(u||l)&&Ct();function Ct(){var wt=Ke.type!=="path",Mt=at.selectAll(".visual-cue").data([0]),Bt=1;Mt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Bt}).classed("visual-cue",!0);var Zt=ae(u?Ke.xanchor:v7.midRange(wt?[Ke.x0,Ke.x1]:Ev.extractPathCoords(Ke.path,Zb.paramIsX))),Et=ge(l?Ke.yanchor:v7.midRange(wt?[Ke.y0,Ke.y1]:Ev.extractPathCoords(Ke.path,Zb.paramIsY)));if(Zt=Ev.roundPositionForSharpStrokeRendering(Zt,Bt),Et=Ev.roundPositionForSharpStrokeRendering(Et,Bt),u&&l){var Ae="M"+(Zt-1-Bt)+","+(Et-1-Bt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Mt.attr("d",Ae)}else if(u){var ot="M"+(Zt-1-Bt)+","+(Et-9-Bt)+"v18 h2 v-18 Z";Mt.attr("d",ot)}else{var At="M"+(Zt-9-Bt)+","+(Et-1-Bt)+"h18 v2 h-18 Z";Mt.attr("d",At)}}}function gt(at){at.selectAll(".visual-cue").remove()}function qt(at,Ke,Ct){var wt=Ke.xref,Mt=Ke.yref,Bt=Xb.getFromId(Ct,wt),Zt=Xb.getFromId(Ct,Mt),Et="";wt!=="paper"&&!Bt.autorange&&(Et+=wt),Mt!=="paper"&&!Zt.autorange&&(Et+=Mt),cz.setClipUrl(at,Et?"clip"+Ct._fullLayout._uid+Et:null,Ct)}}function afe(e,t,r){return e.replace(Zb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Zb.paramIsX[a],s=Zb.paramIsY[a],u=Zb.numParams[a],l=n.slice(1).replace(Zb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function qct(e,t){if(hz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){ofe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=ofe,y7(e)}}}function ofe(e){if(hz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(lfe(e),delete e._fullLayout._activeShapeIndex,y7(e))}}function Nct(e){if(hz(e)){lfe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),hfe=Cc(),dfe=Wc(),Bf=$P(),Uct=dz().eraseActiveShape,pz=ei(),Tf=pz._,Of=xfe.exports={};Of.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:Bf.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};pz.notifier(Tf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){pz.notifier(Tf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){pz.notifier(Tf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Of.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Bf.disk,click:function(e){hfe.sendDataToCloud(e)}};Of.editInChartStudio={name:"editInChartStudio",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Bf.pencil,click:function(e){hfe.sendDataToCloud(e)}};Of.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Tf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bf.zoombox,click:qp};Of.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Tf(e,"Pan")},attr:"dragmode",val:"pan",icon:Bf.pan,click:qp};Of.select2d={name:"select2d",_cat:"select",title:function(e){return Tf(e,"Box Select")},attr:"dragmode",val:"select",icon:Bf.selectbox,click:qp};Of.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Tf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bf.lasso,click:qp};Of.drawclosedpath={name:"drawclosedpath",title:function(e){return Tf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bf.drawclosedpath,click:qp};Of.drawopenpath={name:"drawopenpath",title:function(e){return Tf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bf.drawopenpath,click:qp};Of.drawline={name:"drawline",title:function(e){return Tf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bf.drawline,click:qp};Of.drawrect={name:"drawrect",title:function(e){return Tf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bf.drawrect,click:qp};Of.drawcircle={name:"drawcircle",title:function(e){return Tf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bf.drawcircle,click:qp};Of.eraseshape={name:"eraseshape",title:function(e){return Tf(e,"Erase active shape")},icon:Bf.eraseshape,click:Uct};Of.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Tf(e,"Zoom in")},attr:"zoom",val:"in",icon:Bf.zoom_plus,click:qp};Of.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Tf(e,"Zoom out")},attr:"zoom",val:"out",icon:Bf.zoom_minus,click:qp};Of.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Tf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bf.autoscale,click:qp};Of.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Tf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bf.home,click:qp};Of.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Tf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bf.tooltip_basic,gravity:"ne",click:qp};Of.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:Bf.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=dfe.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,_;for(f=0;f{"use strict";var bfe=x7(),Hct=Object.keys(bfe),wfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Afe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(wfe),iA=[],Wct=function(e){if(Afe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();iA.indexOf(t)===-1&&iA.push(t),iA.indexOf(r)===-1&&iA.push(r)}};Hct.forEach(function(e){Wct(bfe[e])});iA.sort();Tfe.exports={DRAW_MODES:wfe,backButtons:Afe,foreButtons:iA}});var w7=Te((Asr,Sfe)=>{"use strict";var wsr=b7();Sfe.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 Efe=Te((Tsr,Mfe)=>{"use strict";var jct=ei(),S5=jl(),Xct=Lf(),Zct=w7();Mfe.exports=function(t,r){var n=t.modebar||{},i=Xct.newContainer(r,"modebar");function a(s,u){return jct.coerce(n,i,Zct,s,u)}a("orientation"),a("bgcolor",S5.addOpacity(r.paper_bgcolor,.5));var o=S5.contrast(S5.rgb(r.modebar.bgcolor));a("color",S5.addOpacity(o,.3)),a("activecolor",S5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Pfe=Te((Ssr,Lfe)=>{"use strict";var A7=Jl(),Yct=ku(),mz=ei(),kfe=$P(),Kct=mL().version,Jct=new DOMParser;function Cfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ky=Cfe.prototype;ky.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(),mz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};ky.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)})};ky.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};ky.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&&A7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||kfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};ky.createIcon=function(e){var t=Yct(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=Jct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ky.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=A7.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:mz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};ky.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var eht=Wc(),zfe=lc(),T7=$l(),tht=iv().isUnifiedHover,rht=Pfe(),yz=x7(),iht=b7().DRAW_MODES,nht=ei().extendDeep;Ife.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=fht(a):!n.displayModeBar&&n.watermark?o=[]:o=aht(t),i?i.update(t,o):r._modeBar=rht(t,o)};function aht(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"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(lht(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?F=["zoom2d","pan2d"]:_||b||c?F=["pan2d"]:v&&(F=["zoom2d"]),sht(r)&&F.push("select2d","lasso2d");var B=[],U=function(N){B.indexOf(N)===-1&&P.indexOf(N)!==-1&&B.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Dfe.exports={moduleType:"component",name:"modebar",layoutAttributes:w7(),supplyLayoutDefaults:Efe(),manage:Rfe()}});var M7=Te((ksr,Ffe)=>{"use strict";var cht=Nh().FROM_BL;Ffe.exports=function(t,r,n){n===void 0&&(n=cht[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 Kb=Te(M5=>{"use strict";var Yb=ei(),E7=Mm(),Lm=Wc().id2name,hht=Dd(),Bfe=M7(),dht=xy(),pht=rf().ALMOST_EQUAL,vht=Nh().FROM_BL;M5.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 yht(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;opht*p&&!C)){for(a=0;aF&&reP&&(P=re);var ge=(P-m)/(2*A);c/=ge,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=x{"use strict";var _z=Jl(),Np=$l(),Jv=Cc(),M0=ei(),L7=Wf(),P7=b5(),E5=jl(),nA=Mu(),Ufe=Fb(),jfe=S7(),k5=wu(),Dg=Nh(),Xfe=Kb(),ght=Xfe.enforce,_ht=Xfe.clean,Vfe=Mm().doAutoRange,Zfe="start",xht="middle",Yfe="end",bht=qh().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Aht],e)};function wht(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Aht(e){var t=e._fullLayout,r=t._size,n=r.p,i=k5.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(nA.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),jfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(De,xe,Ne){var ce=De._lw/2;if(De._id.charAt(0)==="x"){if(xe){if(Ne==="top")return xe._offset-n-ce}else return r.t+r.h*(1-(De.position||0))+ce%1;return xe._offset+xe._length+n+ce}if(xe){if(Ne==="right")return xe._offset+xe._length+n+ce}else return r.l+r.w*(De.position||0)+ce%1;return xe._offset-n-ce}for(a=0;a0){Eht(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Wfe(t.yanchor)}).call(L7.positionText,o,a);var f=(t.text.match(L7.BR_TAG_ALL)||[]).length;if(f){var c=Dg.LINE_SPACING*f+Dg.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=_z.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,_=p+Ufe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Wfe(t.yanchor)}).call(L7.positionText,o,_)}}}};function Tht(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=Sht(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Eht(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"&&Tht(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 kht(e,t){var r=e.title,n=e._size,i=0;switch(t===Zfe?i=r.pad.l:t===Yfe&&(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 Cht(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Dg.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 Wfe(e){return e==="top"?Dg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Dg.MID_SHIFT+"em"}function Lht(e){var t=e.title,r=xht;return M0.isRightAnchor(t)?r=Yfe:M0.isLeftAnchor(t)&&(r=Zfe),r}function Pht(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Dg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Dg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var zht=y_().readPaths,Iht=lz(),Kfe=o_().clearOutlineControllers,z7=jl(),Jfe=Mu(),Rht=Lf().arrayEditor,$fe=x_(),Dht=$fe.getPathString;ece.exports={draw:xz,drawOne:Qfe,activateLastSelection:Oht};function xz(e){var t=e._fullLayout;Kfe(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(z7.stroke,c).call(z7.fill,f).call(Jfe.dashLine,b?"solid":d,b?4+h:h);if(Fht(v,e,n),p){var C=Rht(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},T=zht(s,e);Iht(T,v,E)}else v.style("pointer-events",b?"all":"none");_[b]=v}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return Bht(e,L)})}}function Fht(e,t,r){var n=r.xref+r.yref;Jfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Bht(e,t){if(bz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){I7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=I7,xz(e)}}}function Oht(e){if(bz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=I7,xz(e)}}function I7(e){if(bz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Kfe(e),delete e._fullLayout._activeSelectionIndex,xz(e))}}});var rce=Te((zsr,tce)=>{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}tce.exports=qht});var nce=Te((Isr,ice)=>{function Nht(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}ice.exports=Nht});var oce=Te((Rsr,ace)=>{var Uht={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}};ace.exports=Uht});var lce=Te((Dsr,sce)=>{var L5=oce();function Vht(e,t,r){function n(p,_){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:null,below:null},otherFill:null}}function i(p,_,b){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=L5.create();function o(p,_,b,v,C,E){var T=t.pointsCompare(_,C);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?C:E,v?E:C)?1:-1}function s(p,_){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,_,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,_){var b=L5.node({isStart:!0,pt:p.start,seg:p,primary:_,other:null,status:null});return s(b,p.end),b}function l(p,_,b){var v=L5.node({isStart:!1,pt:_.end,seg:_,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,_){var b=u(p,_);return l(b,p,_),b}function c(p,_){r&&r.segmentChop(p.seg,_),p.other.remove(),p.seg.end=_,p.other.pt=_,s(p.other,p.pt)}function h(p,_){var b=i(_,p.seg.end,p.seg);return c(p,_),f(b,p.primary)}function d(p,_){var b=L5.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,ge=N.end;r&&r.checkIntersection(W,N);var ze=t.linesIntersect(H,re,ae,ge);if(ze===!1){if(!t.pointsCollinear(H,re,ae)||t.pointsSame(H,ge)||t.pointsSame(re,ae))return!1;var Le=t.pointsSame(H,ae),de=t.pointsSame(re,ge);if(Le&&de)return j;var te=!Le&&t.pointBetween(H,ae,ge),ke=!de&&t.pointBetween(re,ae,ge);if(Le)return ke?h(j,re):h(G,ge),j;te&&(de||(ke?h(j,re):h(G,ge)),h(j,H))}else ze.alongA===0&&(ze.alongB===-1?h(G,ae):ze.alongB===0?h(G,ze.pt):ze.alongB===1&&h(G,ge)),ze.alongB===0&&(ze.alongA===-1?h(j,H):ze.alongA===0?h(j,ze.pt):ze.alongA===1&&h(j,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(k){var j=E(L,k);if(j)return j}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.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,M?L.seg.myFill.below=M.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 A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?_:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=x.insert(L5.node({ev:L}))}else{var F=L.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(F.prev)&&b.exists(F.next)&&E(F.prev.ev,F.next.ev),r&&r.statusRemove(F.ev.seg),F.remove(),!L.primary){var B=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=B}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var _,b=p[p.length-1],v=0;v{function Ght(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 P5(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 Hht={union:function(e,t){return P5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return P5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return P5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return P5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return P5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};cce.exports=Hht});var pce=Te((Osr,dce)=>{var Wht={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=rce(),Xht=nce(),vce=lce(),Zht=fce(),z5=hce(),mce=pce(),E0=!1,I5=Xht(),kv;kv={buildLog:function(e){return e===!0?E0=jht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return I5.epsilon(e)},segments:function(e){var t=vce(!0,I5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=vce(!1,I5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:z5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:z5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:z5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:z5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:z5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Zht(e.segments,I5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mce.toPolygon(kv,e)},polygonToGeoJSON:function(e){return mce.fromPolygon(kv,I5,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);yce.exports=kv});var xce=Te((Nsr,_ce)=>{_ce.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;_&&(s=!s)}return s}});var D5=Te((Usr,bce)=>{"use strict";var D7=PL().dot,wz=rf().BADNUM,Az=bce.exports={};Az.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===wz||vo||_&&l(p))}function c(p,_){var b=p[0],v=p[1];if(b===wz||bi||v===wz||vo)return!1;var C=r.length,E=r[0][0],T=r[0][1],L=0,x,k,M,m,P;for(x=1;xMath.max(k,E)||v>Math.max(M,T)))if(vs||Math.abs(D7(c,l))>i)return!0;return!1};Az.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 Ace=Te((Vsr,wce)=>{"use strict";wce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Wce=Te((Gsr,Hce)=>{"use strict";var Tce=gce(),Yht=xce(),O5=$l(),Kht=Mu().dashStyle,F5=jl(),Jht=Xc(),$ht=iv().makeEventData,G5=Cm(),Qht=G5.freeMode,edt=G5.rectMode,q5=G5.drawMode,q7=G5.openMode,N7=G5.selectMode,Sce=x_(),Mce=A5(),Pce=lz(),zce=o_().clearOutline,Ice=y_(),F7=Ice.handleEllipse,tdt=Ice.readPaths,rdt=az().newShapes,idt=u7(),ndt=R7().activateLastSelection,Sz=ei(),adt=Sz.sorterAsc,Rce=D5(),B5=HL(),k0=Wc().getFromId,odt=b5(),sdt=C5().redrawReglTraces,Mz=Ace(),Cy=Mz.MINSELECT,ldt=Rce.filter,U7=Rce.tester,V7=tz(),Ece=V7.p2r,udt=V7.axValue,fdt=V7.getTransform;function G7(e){return e.subplot!==void 0}function cdt(e,t,r,n,i){var a=!G7(n),o=Qht(i),s=edt(i),u=q7(i),l=q5(i),f=N7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,_=p._fullLayout,b=f&&_.newselection.mode==="immediate"&&a,v=_._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,T=fdt(E),L=t-C.left,x=r-C.top;_._calcInverseTransform(p);var k=Sz.apply3DTransform(_._invTransform)(L,x);L=k[0],x=k[1];var M=_._invScaleX,m=_._invScaleY,P=L,A=x,F="M"+L+","+x,B=n.xaxes[0],U=n.yaxes[0],G=B._length,j=U._length,W=e.altKey&&!(q5(i)&&u),N,H,re,ae,ge,ze,Le;Fce(e,p,n),o&&(N=ldt([[L,x]],Mz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?_.newshape:_.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?F5.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":Kht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(F5.stroke,Ee).call(F5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",F+"Z");var Se=v.append("path").attr("class","zoombox-corners").style({fill:F5.background,stroke:F5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ge=v.select(".label-temp");Ge.empty()&&(Ge=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var De=_._uid+Mz.SELECTID,xe=[],Ne=Ez(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=B._id,Qe=U._id;Uce(p,je,Qe,Ne);for(var gt=(p.layout||{}).selections||[],qt=[],at=!1,Ke=0;Ke=0){p._fullLayout._deactivateShape(p);return}if(!l){var gt=_.clickmode;B5.done(De).then(function(){if(B5.clear(De),je===2){for(de.remove(),ge=0;ge-1&&Dce(Qe,p,n.xaxes,n.yaxes,n.subplot,n,de),gt==="event"&&V5(p,void 0);Jht.click(p,Qe,E.id)}).catch(Sz.error)}},n.doneFn=function(){Se.remove(),B5.done(De).then(function(){B5.clear(De),!b&&ae&&n.selectionDefs&&(ae.subtract=W,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&N5(n,b),n.doneFnCompleted&&n.doneFnCompleted(xe),f&&V5(p,Le)}).catch(Sz.error)}}function Dce(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,_,b,v,C,E,T,L;if(mdt(s)){Fce(e,t,a),h=Ez(t,r,n,i);var x=ydt(s,h),k=x.pointNumbers.length>0;if(k?gdt(h,x):_dt(h)&&(C=Cce(x))){for(o&&o.remove(),L=0;L=0}function vdt(e){return e._fullLayout._activeSelectionIndex>=0}function N5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;pdt(i)&&i._fullLayout._deactivateShape(i),vdt(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=q5(r),u=N7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=rdt(l,e)),f&&O5.call("_guiRelayout",i,{shapes:f});var c;u&&!G7(e)&&(c=idt(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,O5.call("_guiRelayout",i,{selections:c}).then(function(){t&&ndt(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function kce(e){return e._id}function Ez(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(kce),o=r.map(kce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function gdt(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 U5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var je=Lce(e,!0);if(je.length){var Qe=je[0].xref,gt=je[0].yref;if(Qe&>){var qt=Vce(je),at=Gce([k0(e,Qe,"x"),k0(e,gt,"y")]);at(xe,qt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&V5(e,xe),h._reselect=!1}if(!o&&h._deselect){var Ke=h._deselect;s=Ke.xref,u=Ke.yref,wdt(s,u,f)||Uce(e,s,u,n),ce&&(xe.points.length?V5(e,xe):j7(e)),h._deselect=!1}return{eventData:xe,selectionTesters:r}}function bdt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";jce.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 H5=Te((Wsr,Xce)=>{"use strict";Xce.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 Jb=Te((Xsr,Kce)=>{"use strict";var Zce=X7(),Yce=gc(),kz=qh(),Edt=Lf().templatedArray,jsr=H5();Kce.exports=Edt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Yce({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:Zce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Zce.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",kz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",kz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",kz.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",kz.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:Yce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ly=Te((Zsr,Jce)=>{"use strict";Jce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pm=Te((Ysr,$ce)=>{"use strict";$ce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=Te((Ksr,ohe)=>{"use strict";var Qce=jc().axisHoverFormat,{hovertemplateAttrs:kdt,texttemplateAttrs:Cdt,templatefallbackAttrs:ehe}=Ff(),the=nc(),Ldt=gc(),rhe=Id().dash,Pdt=Id().pattern,zdt=Mu(),Idt=Ly(),W5=Su().extendFlat,Rdt=Pm();function ihe(e){return{valType:"any",dflt:0,editType:"calc"}}function nhe(e){return{valType:"any",editType:"calc"}}function ahe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ohe.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:ihe("x"),yperiod:ihe("y"),xperiod0:nhe("x0"),yperiod0:nhe("y0"),xperiodalignment:ahe("x"),yperiodalignment:ahe("y"),xhoverformat:Qce("x"),yhoverformat:Qce("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:Cdt(),texttemplatefallback:ehe({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:kdt({},{keys:Idt.eventDataKeys}),hovertemplatefallback:ehe(),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:W5({},rhe,{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:Rdt(!0),fillgradient:W5({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:Pdt,marker:W5({symbol:{valType:"enumerated",values:zdt.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:W5({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:W5({},rhe,{arrayOk:!0}),editType:"calc"},the("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"},the("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:Ldt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Z7=Te(($sr,uhe)=>{"use strict";var she=Jb(),lhe=Zc().line,Ddt=Id().dash,Cz=Su().extendFlat,Fdt=Sc().overrideAll,Bdt=Lf().templatedArray,Jsr=H5();uhe.exports=Fdt(Bdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Cz({},she.xref,{}),yref:Cz({},she.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:lhe.color,width:Cz({},lhe.width,{min:1,dflt:1}),dash:Cz({},Ddt,{dflt:"dot"})}}),"arraydraw","from-root")});var dhe=Te((Qsr,hhe)=>{"use strict";var fhe=ei(),Lz=wu(),Odt=Kd(),qdt=Z7(),che=x_();hhe.exports=function(t,r){Odt(t,r,{name:"selections",handleItemDefaults:Ndt});for(var n=r.selections,i=0;i{"use strict";phe.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 j5=Te((tlr,ghe)=>{"use strict";var Udt=$l(),mhe=ei(),yhe=Wc();ghe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=Udt.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 _he=R7(),X5=Wce();xhe.exports={moduleType:"component",name:"selections",layoutAttributes:Z7(),supplyLayoutDefaults:dhe(),supplyDrawNewSelectionDefaults:vhe(),includeBasePlot:j5()("selections"),draw:_he.draw,drawOne:_he.drawOne,reselect:X5.reselect,prepSelect:X5.prepSelect,clearOutline:X5.clearOutline,clearSelectionsCache:X5.clearSelectionsCache,selectOnClick:X5.selectOnClick}});var tU=Te((ilr,Nhe)=>{"use strict";var Q7=Jl(),C0=ei(),bhe=C0.numberFormat,Vdt=hd(),Gdt=UP(),Pz=$l(),Lhe=C0.strTranslate,Hdt=Wf(),whe=jl(),w_=Mu(),Wdt=Xc(),Ahe=wu(),jdt=Em(),Xdt=xp(),Phe=Cm(),zz=Phe.selectingOrDrawing,Zdt=Phe.freeMode,Ydt=Nh().FROM_TL,Kdt=b5(),Jdt=C5().redrawReglTraces,$dt=Cc(),K7=Wc().getFromId,Qdt=oh().prepSelect,ept=oh().clearOutline,tpt=oh().selectOnClick,Y7=M7(),eU=qh(),The=eU.MINDRAG,av=eU.MINZOOM,She=!0;function rpt(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,C=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var He=t.overlays,nt=0;nt=0){tt._fullLayout._deactivateShape(tt);return}var It=tt._fullLayout.clickmode;if($7(tt),He===2&&!f&&Et(),l)It.indexOf("select")>-1&&tpt(nt,tt,_,b,t.id,ae),It.indexOf("event")>-1&&Wdt.click(tt,nt,t.id);else if(He===1&&f){var Yt=o?h:c,cr=o==="s"||s==="w"?0:1,_r=Yt._name+".range["+cr+"]",yr=ipt(Yt,cr),Ut="left",Re="middle";if(Yt.fixedrange)return;o?(Re=o==="n"?"top":"bottom",Yt.side==="right"&&(Ut="right")):s==="e"&&(Ut="right"),tt._context.showAxisRangeEntryBoxes&&Q7.select(re).call(Hdt.makeEditable,{gd:tt,immediate:!0,background:tt._fullLayout.paper_bgcolor,text:String(yr),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ut,verticalAlign:Re}).on("edit",function(be){var Oe=Yt.d2r(be);Oe!==void 0&&Pz.call("_guiRelayout",tt,_r,Oe)})}}Xdt.init(ae);var Le,de,te,ke,Ee,Se,Ge,De,xe,Ne;function ce(He,nt,tt){var It=re.getBoundingClientRect();Le=nt-It.left,de=tt-It.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Le,de);Le=Yt[0],de=Yt[1],te={l:Le,r:Le,w:0,t:de,b:de,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:Vdt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Se=!1,Ge="xy",Ne=!1,De=Rhe(u,ke,v,C,Ee),xe=Dhe(u,v,C)}function je(He,nt){if(e._transitioningWithDuration)return!1;var tt=Math.max(0,Math.min(E,j*He+Le)),It=Math.max(0,Math.min(T,W*nt+de)),Yt=Math.abs(tt-Le),cr=Math.abs(It-de);te.l=Math.min(Le,tt),te.r=Math.max(Le,tt),te.t=Math.min(de,It),te.b=Math.max(de,It);function _r(){Ge="",te.r=te.l,te.t=te.b,xe.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>av||cr>av?(Ge="xy",Yt/E>cr/T?(cr=Yt*T/E,de>It?te.t=de-cr:te.b=de+cr):(Yt=cr*E/T,Le>tt?te.l=Le-Yt:te.r=Le+Yt),xe.attr("d",Iz(te))):_r();else if(x.isSubplotConstrained)if(Yt>av||cr>av){Ge="xy";var yr=Math.min(te.l/E,(T-te.b)/T),Ut=Math.max(te.r/E,(T-te.t)/T);te.l=yr*E,te.r=Ut*E,te.b=(1-yr)*T,te.t=(1-Ut)*T,xe.attr("d",Iz(te))}else _r();else!M||cr0){var be;if(x.isSubplotConstrained||!k&&M.length===1){for(be=0;be<_.length;be++)_[be].range=_[be]._r.slice(),Y7(_[be],1-nt/T);He=nt*E/T,Ut=He/2}if(x.isSubplotConstrained||!M&&k.length===1){for(be=0;be1&&(_r.maxallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"e":"w")||_r.minallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"w":"e"))&&(ft=1,fe=0),Fe?(ye=Oe,pe=o||x.isSubplotConstrained?He[1]:Je(yr,ye)):x.yaHash[yr._id]?(ye=Oe,pe=He[1]*yr._length/h._length):x.xaHash[yr._id]?(ye=be,pe=k==="ew"?-He[0]*yr._length/c._length:Je(yr,ye,{e:"right",w:"left"}[k])):(ye=At(yr,be,Oe),pe=vt(yr,ye)),ye>1&&(yr.maxallowed!==void 0&&A===(yr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function apt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Rhe(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",Lhe(r,n)).attr("d",i+"Z")}function Dhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:whe.background,stroke:whe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Lhe(t,r)).attr("d","M0,0Z")}function Fhe(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"),Bhe(e,t,i,a)}function Bhe(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 $7(e){Q7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ohe(e){She&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),She=!1)}function opt(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 spt(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 Iz(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 khe(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 lpt=Jl(),Rz=Xc(),upt=xp(),fpt=Em(),zm=tU().makeDragBox,yd=qh().DRAGGERSIZE;Dz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){lpt.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,upt.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)},Dz.updateFx(t)}};Dz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";fpt(t._draggers,r)}});var Ghe=Te((alr,Vhe)=>{"use strict";var Uhe=$l();Vhe.exports=function(t){for(var r=Uhe.layoutArrayContainers,n=Uhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var cpt=Ag(),iU=LL(),Z5=K1(),hpt=UL().sorterAsc,nU=$l();Y5.containerArrayMatch=Ghe();var dpt=Y5.isAddVal=function(t){return t==="add"||cpt(t)},Hhe=Y5.isRemoveVal=function(t){return t===null||t==="remove"};Y5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=nU.getComponentMethod(o,"supplyLayoutDefaults"),u=nU.getComponentMethod(o,"draw"),l=nU.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===iU||u===iU,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&Z5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Hhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return Z5.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(hpt),_=r.get(),b=_||[],v=a(h,o).get(),C=[],E=-1,T=b.length,L,x,k,M,m,P,A,F;for(L=0;Lb.length-(A?0:1)){Z5.warn("index out of range",o,k);continue}if(P!==void 0)m.length>1&&Z5.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Hhe(P)?C.push(k):A?(P==="add"&&(P={}),b.splice(k,0,P),v&&v.splice(k,0,{})):Z5.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?_||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==iU){var B;if(E===-1)B=p;else{for(T=Math.max(b.length,T),B=[],L=0;L=E));L++)B.push(k);for(L=E;L{"use strict";var Yhe=ku(),Khe=$l(),Up=ei(),K5=Cc(),Jhe=Wc(),$he=jl(),J5=Jhe.cleanId,ppt=Jhe.getFromTrace,aU=Khe.traceIs,vpt=["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=(K5.subplotsRegistry.cartesian||{}).attrRegex,i=(K5.subplotsRegistry.polar||{}).attrRegex,a=(K5.subplotsRegistry.ternary||{}).attrRegex,o=(K5.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"),$he.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function aA(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=J5(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=Zhe(t);r;){if(r in e)return!0;r=Zhe(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)?oU(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=oU});var Zz=Te(zf=>{"use strict";var qz=Jl(),gpt=ku(),_pt=gq(),Hl=ei(),Lc=Hl.nestedProperty,uU=k3(),ov=Bne(),P0=$l(),jz=P3(),Nu=Cc(),Vp=wu(),xpt=RN(),bpt=Dd(),sU=Mu(),wpt=jl(),Apt=rU().initInteractions,Tpt=jv(),Spt=oh().clearOutline,nde=_b().dfltConfig,Bz=Whe(),Sh=Qhe(),ac=C5(),A_=Sc(),Mpt=qh().AX_NAME_PATTERN,lU=0,ede=5;function Ept(e,t,r,n){var i;if(e=Hl.getGraphDiv(e),uU.init(e),Hl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=uU.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)}ode(e,n),r||(r={}),qz.select(e).classed("js-plotly-plot",!0),sU.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)&&(Kpt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),sU.initGradients(e),sU.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 sde(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]),Uz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Uz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function zpt(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 M.parts[A]!="string";)A--;var F=M.parts[A],B=M.parts[A-1]+"."+F,U=M.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),W=M.get();if(m!==void 0){v[k]=m,C[k]=F==="reverse"?m:Fg(W);var N=jz.getLayoutValObject(n,M.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(B.match(mde))x(B),Lc(n,U+"._inputRange").set(null);else if(B.match(yde)){x(B),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else B.match(Fpt)&&Lc(n,U+"._inputDomain").set(null);if(F==="type"){L=G;var ge=j.type==="linear"&&m==="log",ze=j.type==="log"&&m==="linear";if(ge||ze){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)ge&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Le=L.range[0],de=L.range[1];ge?(Le<=0&&de<=0&&E(U+".autorange",!0),Le<=0?Le=de/1e6:de<=0&&(de=Le/1e6),E(U+".range[0]",Math.log(Le)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Le)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.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(F.match(Mpt)){var te=Lc(n,k).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),P0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),P0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Bz.containerArrayMatch(k);if(Ee){f=Ee.array,c=Ee.index;var Se=Ee.property,Ge=N||{editType:"calc"};c!==""&&Se===""&&(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,Ge),l[f]||(l[f]={});var De=l[f][c];De||(De=l[f][c]={}),De[Se]=m,delete t[k]}else F==="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?A_.update(b,N):b.calc=!0,M.set(m))}}for(f in l){var xe=Bz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);xe||(b.plot=!0)}for(var Ne in T){L=Vp.getFromId(e,Ne);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)T[je]||(Vp.getFromId(e,je)._constraintShrinkable=!0)}}(_de(e)||t.height||t.width)&&(b.plot=!0);var Qe=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=zf.newPlot(e,t,r,n).then(()=>{for(let[U,G]of B)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),Upt(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,_=Hpt(e,u,h,d,p),b=_.newDataRevision,v=Gpt(e,s,c,d,p,b);if(_de(e)&&(_.layoutReplot=!0),v.calc||_.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 Gpt(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=jz.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 F=n._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var B=0;Bn._timeToNext&&p()};F()}var b=0;function v(F){return Array.isArray(i)?b>=i.length?F.transitionOpts=i[b]:F.transitionOpts=i[0]:F.transitionOpts=i,b++,F}var C,E,T=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&Hl.isPlainObject(t);if(k)T.push({type:"object",data:v(Hl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(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,_=u[d]||c[d];d&&p&&typeof p=="number"&&_&&lUM.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 Zpt(e){e=Hl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Nu.cleanPlot([],{},r,t),Nu.purge(e),uU.purge(e),t._container&&t._container.remove(),delete e._context,e}function Ypt(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 Kpt(e){var t=qz.select(e),r=e._fullLayout;if(r._calcInverseTransform=Ypt,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={};qz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Hl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Tpt.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=Wpt;zf.addFrames=jpt;zf.deleteFrames=Xpt;zf.addTraces=hde;zf.deleteTraces=dde;zf.extendTraces=fde;zf.moveTraces=fU;zf.prependTraces=cde;zf.newPlot=Ppt;zf._doPlot=Ept;zf.purge=Zpt;zf.react=Vpt;zf.redraw=Lpt;zf.relayout=$5;zf.restyle=Vz;zf.setPlotConfig=kpt;zf.update=Hz;zf._guiRelayout=cU($5);zf._guiRestyle=cU(Vz);zf._guiUpdate=cU(Hz);zf._storeDirectGUIEdit=Dpt});var Bg=Te(Py=>{"use strict";var Jpt=$l();Py.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Py.getRedrawFunc=function(e){return function(){Jpt.getComponentMethod("colorbar","draw")(e)}};Py.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Py.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var xde=window.URL||window.webkitURL;Py.createObjectURL=function(e){return xde.createObjectURL(e)};Py.revokeObjectURL=function(e){return xde.revokeObjectURL(e)};Py.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=$pt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Py.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function $pt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var dU=Jl(),flr=ei(),Qpt=Mu(),evt=jl(),clr=jv(),hU=/"/g,eE="TOBESTRIPPED",tvt=new RegExp('("'+eE+")|("+eE+'")',"g");function rvt(e){var t=dU.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 ivt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}bde.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(Qpt.setRect,0,0,s,u).call(evt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var nvt=ei(),avt=Tb().EventEmitter,tE=Bg();function ovt(e){var t=e.emitter||new avt,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}),_=new a,b,v;s==="svg"||nvt.isSafari()?v=tE.encodeSVG(o):(b=tE.createBlob(o,"svg"),v=tE.createObjectURL(b)),u.width=h,u.height=d,_.onload=function(){var C;switch(b=null,tE.revokeObjectURL(v),s!=="svg"&&p.drawImage(_,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)},_.onerror=function(C){if(b=null,tE.revokeObjectURL(v),i(C),!e.promise)return t.emit("error",C)},_.src=v});return e.promise?r:t}wde.exports=ovt});var vU=Te((plr,Sde)=>{"use strict";var Ade=ku(),Tde=Zz(),svt=Cc(),zy=ei(),rE=Bg(),lvt=Yz(),uvt=Kz(),fvt=mL().version,pU={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 cvt(e,t){t=t||{};var r,n,i,a;zy.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=zy.getGraphDiv(e),r=zy.extendDeep([],e.data),n=zy.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||zy.validate(t[x],pU[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 "+zy.join2(pU.format.values,", "," or ")+".");var s={};function u(x,k){return zy.coerce(t,s,pU,x,k)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=zy.extendFlat({},n);f?b.width=f:t.width===null&&Ade(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&Ade(a.height)&&(b.height=a.height);var v=zy.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=rE.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,rE.getDelay(_._fullLayout))})}function T(){return new Promise(function(x,k){var M=lvt(_,l,h),m=_._fullLayout.width,P=_._fullLayout.height;function A(){Tde.purge(_),document.body.removeChild(_)}if(l==="full-json"){var F=svt.graphJson(_,!1,"keepdata","object",!0,!0);return F.version=fvt,F=JSON.stringify(F),A(),x(p?F:rE.encodeJSON(F))}if(A(),l==="svg")return x(p?M:rE.encodeSVG(M));var B=document.createElement("canvas");B.id=zy.randstr(),uvt({format:l,width:m,height:P,scale:h,canvas:B,svg:M,promise:!0}).then(x).catch(k)})}function L(x){return p?x.replace(rE.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){Tde.newPlot(_,r,b,v).then(C).then(E).then(T).then(function(M){x(L(M))}).catch(function(M){k(M)})})}Sde.exports=cvt});var kde=Te((vlr,Ede)=>{"use strict";var z0=ei(),hvt=Cc(),dvt=P3(),pvt=_b().dfltConfig,Im=z0.isPlainObject,Qb=Array.isArray,mU=z0.isArrayOrTypedArray;Ede.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=dvt.get(),i=[],a={_context:z0.extendFlat({},pvt)},o,s;Qb(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"))),hvt.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,T,L,x,k;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var M=c[T].length;for(E=0;E<(C?Math.min(M,b[T].length):M);E++)L=C?b[T][E]:b,x=f[T][E],k=c[T][E],z0.validate(x,L)?k!==x&&k!==+x&&n.push(gd("dynamic",i,l.concat(T,E),x,k)):n.push(gd("value",i,l.concat(T,E),x))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var bvt=ei(),$z=Bg();function wvt(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=$z.createBlob(e,r),l=$z.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),$z.revokeObjectURL(l),u=null,o(t);if(bvt.isSafari()){var f=r==="svg"?",":";base64,";return $z.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Cde.exports=wvt});var yU=Te((glr,zde)=>{"use strict";var Pde=ei(),Avt=vU(),Tvt=Lde(),ylr=Bg();function Svt(e,t){var r;return Pde.isPlainObject(e)||(r=Pde.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=Avt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Tvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}zde.exports=Svt});var Bde=Te(gU=>{"use strict";var Cv=ei(),Lv=Cv.isPlainObject,Ide=P3(),Rde=Cc(),Mvt=Gf(),Dde=Lf(),Fde=_b().dfltConfig;gU.makeTemplate=function(e){e=Cv.isPlainObject(e)?e:Cv.getGraphDiv(e),e=Cv.extendDeep({_context:Fde},{data:e.data,layout:e.layout}),Rde.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={};iE(d,p,kvt.bind(null,d));var _=Cv.coerce(d,{},Mvt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(p)}),iE(r,n.layout,Evt.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)&&Qz(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,T){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],k=I0(E,L,T);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)&&Cvt(x)&&C(x,k)}}if(C({data:u,layout:s},""),o.length)return o.map(Lvt)};function Cvt(e){for(var t=0;t{"use strict";var ad=Zz();Vc._doPlot=ad._doPlot;Vc.newPlot=ad.newPlot;Vc.restyle=ad.restyle;Vc.relayout=ad.relayout;Vc.redraw=ad.redraw;Vc.update=ad.update;Vc._guiRestyle=ad._guiRestyle;Vc._guiRelayout=ad._guiRelayout;Vc._guiUpdate=ad._guiUpdate;Vc._storeDirectGUIEdit=ad._storeDirectGUIEdit;Vc.react=ad.react;Vc.extendTraces=ad.extendTraces;Vc.prependTraces=ad.prependTraces;Vc.addTraces=ad.addTraces;Vc.deleteTraces=ad.deleteTraces;Vc.moveTraces=ad.moveTraces;Vc.purge=ad.purge;Vc.addFrames=ad.addFrames;Vc.deleteFrames=ad.deleteFrames;Vc.animate=ad.animate;Vc.setPlotConfig=ad.setPlotConfig;var Pvt=HM().getGraphDiv,zvt=dz().eraseActiveShape;Vc.deleteActiveShape=function(e){return zvt(Pvt(e))};Vc.toImage=vU();Vc.validate=kde();Vc.downloadImage=yU();var Ode=Bde();Vc.makeTemplate=Ode.makeTemplate;Vc.validateTemplate=Ode.validateTemplate});var oA=Te((blr,Nde)=>{"use strict";var _U=ei(),Ivt=$l();Nde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Ivt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=_U.minRowLength(a);o?s=Math.min(l,_U.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=_U.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Rm=Te((wlr,Gde)=>{"use strict";var Ude=ei().dateTick0,Rvt=rf(),Dvt=Rvt.ONEWEEK;function Vde(e,t){return e%Dvt===0?Ude(t,1):Ude(t,0)}Gde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Vde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Vde(s,r.ycalendar)),i("yperiodalignment"))}}});var jde=Te((Alr,Wde)=>{"use strict";var Hde=["orientation","groupnorm","stackgaps"];Wde.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 Xde=jl(),Zde=yp().hasColorscale,Yde=nd(),Fvt=lc();Kde.exports=function(t,r,n,i,a,o={}){var s=Fvt.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),Zde(t,"marker")&&Yde(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=Xde.background:l=Xde.defaultLine,a("marker.line.color",l),Zde(t,"marker.line")&&Yde(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=Te((Slr,Jde)=>{"use strict";var Bvt=ei().isArrayOrTypedArray,Ovt=yp().hasColorscale,qvt=nd();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),Ovt(t,"line"))qvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Bvt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var sA=Te((Mlr,$de)=>{"use strict";$de.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=Te((Elr,Qde)=>{"use strict";var Nvt=ei();Qde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),Nvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Dm=Te((klr,tpe)=>{"use strict";var tI=jl(),epe=ei().isArrayOrTypedArray;function Uvt(e){for(var t=tI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var rpe=ei(),Vvt=$l(),Gvt=Zc(),Hvt=Ly(),lA=lc(),Wvt=oA(),jvt=Rm(),Xvt=jde(),Zvt=$v(),Yvt=R0(),ipe=sA(),Kvt=D0(),Jvt=Dm(),$vt=ei().coercePattern;npe.exports=function(t,r,n,i){function a(d,p){return rpe.coerce(t,r,Gvt,d,p)}var o=Wvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){jvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Xvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var Qvt=Kb().getAxisGroup;ope.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=Qvt(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,_=p[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=_.offsetIndex)}});var xU=Te((Plr,spe)=>{"use strict";var e0t=ei(),t0t=e2(),r0t=Zc();spe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return e0t.coerce(i._input,i,r0t,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 upe=Te((zlr,lpe)=>{"use strict";var i0t=ei(),n0t=tP();lpe.exports=function(e,t){function r(i,a){return i0t.coerce(e,t,n0t,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Fm=Te((Ilr,cpe)=>{"use strict";var a0t=ku(),fpe=ei(),o0t=fpe.dateTime2ms,rI=fpe.incrementMonth,s0t=rf(),l0t=s0t.ONEAVGMONTH;cpe.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(a0t(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=o0t(h,l)||0,p=[],_=[],b=[],v=i.length,C=0;CE;)x=rI(x,-s,l);for(;x<=E;)x=rI(x,s,l);L=rI(x,-s,l)}else{for(T=Math.round((E-d)/o),x=d+T*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}p[C]=f?L:c?x:(L+x)/2,_[C]=L,b[C]=x}return{vals:p,starts:_,ends:b}}});var F0=Te((Rlr,dpe)=>{"use strict";var bU=yp().hasColorscale,wU=gp(),hpe=lc();dpe.exports=function(t,r){hpe.hasLines(r)&&bU(r,"line")&&wU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),hpe.hasMarkers(r)&&(bU(r,"marker")&&wU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),bU(r,"marker.line")&&wU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Iy=Te((Dlr,ppe)=>{"use strict";var sh=ei();ppe.exports=function(t,r){for(var n=0;n{"use strict";var vpe=ei();mpe.exports=function(t,r){vpe.isArrayOrTypedArray(r.selectedpoints)&&vpe.tagSelected(t,r)}});var O0=Te((Blr,Ape)=>{"use strict";var ype=ku(),TU=ei(),nE=wu(),gpe=Fm(),AU=rf().BADNUM,SU=lc(),u0t=F0(),f0t=Iy(),c0t=B0();function h0t(e,t){var r=e._fullLayout,n=t._xA=nE.getFromId(e,t.xaxis||"x","x"),i=t._yA=nE.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=gpe(t,n,"x",a),u=gpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=MU(t,r,n,i),_=!1,b,v,C,E,T,L;bpe(r,t);var x="x",k="y",M;if(p)TU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(k="s",M="x"):(x="s",M="y"),T=p.stackgaps==="interpolate";else{var m=xpe(t,c);_pe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!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";Tpe.exports=iI;var d0t=ei().distinctVals;function iI(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";Mpe.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var t2=Te((Nlr,Lpe)=>{"use strict";var q0=ku(),{isArrayOrTypedArray:Og}=ei(),{BADNUM:uA}=rf(),p0t=$l(),aE=wu(),{getAxisGroup:v0t}=Kb(),nI=Spe(),{TEXTPAD:m0t}=T_(),{LINE_SPACING:y0t}=Nh(),{BR_TAG_ALL:g0t}=Wf();function _0t(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*y0t*r+m0t;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 C0t(e,t,r,n){for(var i=fA(n),a=0;a{"use strict";var Ppe=O0(),zpe=t2().setGroupPositions;function P0t(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 I0t=Mu(),Ope=rf(),oE=Ope.BADNUM,qpe=Ope.LOG_CLIP,Dpe=qpe+.5,Fpe=qpe-.5,aI=ei(),R0t=aI.segmentsIntersect,Bpe=aI.constrain,IU=Ly();Npe.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,_=p==="linear",b=n.fill&&n.fill!=="none",v=[],C=IU.minTolerance,E=t.length,T=new Array(E),L=0,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae;function ge(Re){var be=t[Re];if(!be)return!1;var Oe=r.linearized?i.l2p(be.x):i.c2p(be.x),Ie=r.linearized?a.l2p(be.y):a.c2p(be.y);if(Oe===oE){if(o&&(Oe=i.c2p(be.x,!0)),Oe===oE)return!1;s&&Ie===oE&&(Oe*=Math.abs(i._m*l*(i._m>0?Dpe:Fpe)/(a._m*u*(a._m>0?Dpe:Fpe)))),Oe*=1e3}if(Ie===oE){if(s&&(Ie=a.c2p(be.y,!0)),Ie===oE)return!1;Ie*=1e3}return[Oe,Ie]}function ze(Re,be,Oe,Ie){var Fe=Oe-Re,ft=Ie-be,ye=.5-Re,fe=.5-be,pe=Fe*Fe+ft*ft,dt=Fe*ye+ft*fe;if(dt>0&&dt1||Math.abs(ye.y-Oe[0][1])>1)&&(ye=[ye.x,ye.y],Ie&&ke(ye,Re)Ge||Re[1]xe)return[Bpe(Re[0],Se,Ge),Bpe(Re[1],De,xe)]}function wt(Re,be){if(Re[0]===be[0]&&(Re[0]===Se||Re[0]===Ge)||Re[1]===be[1]&&(Re[1]===De||Re[1]===xe))return!0}function Mt(Re,be){var Oe=[],Ie=Ct(Re),Fe=Ct(be);return Ie&&Fe&&wt(Ie,Fe)||(Ie&&Oe.push(Ie),Fe&&Oe.push(Fe)),Oe}function Bt(Re,be,Oe){return function(Ie,Fe){var ft=Ct(Ie),ye=Ct(Fe),fe=[];if(ft&&ye&&wt(ft,ye))return fe;ft&&fe.push(ft),ye&&fe.push(ye);var pe=2*aI.constrain((Ie[Re]+Fe[Re])/2,be,Oe)-((ft||Ie)[Re]+(ye||Fe)[Re]);if(pe){var dt;ft&&ye?dt=pe>0==ft[Re]>ye[Re]?ft:ye:dt=ft||ye,dt[Re]+=pe}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ke:p==="hv"||p==="vh"?Zt=Mt:p==="hvh"?Zt=Bt(0,Se,Ge):p==="vhv"&&(Zt=Bt(1,De,xe));function Et(Re,be){var Oe=be[0]-Re[0],Ie=(be[1]-Re[1])/Oe,Fe=(Re[1]*be[0]-be[1]*Re[0])/Oe;return Fe>0?[Ie>0?Se:Ge,xe]:[Ie>0?Ge:Se,De]}function Ae(Re){var be=Re[0],Oe=Re[1],Ie=be===T[L-1][0],Fe=Oe===T[L-1][1];if(!(Ie&&Fe))if(L>1){var ft=be===T[L-2][0],ye=Oe===T[L-2][1];Ie&&(be===Se||be===Ge)&&ft?ye?L--:T[L-1]=Re:Fe&&(Oe===De||Oe===xe)&&ye?ft?L--:T[L-1]=Re:T[L++]=Re}else T[L++]=Re}function ot(Re){T[L-1][0]!==Re[0]&&T[L-1][1]!==Re[1]&&Ae([Qe,gt]),Ae(Re),qt=null,Qe=gt=0}var At=aI.isArrayOrTypedArray(c);function vt(Re){if(Re&&f&&(Re.i=x,Re.d=t,Re.trace=n,Re.marker=At?c[Re.i]:c,Re.backoff=f),Le=Re[0]/u,de=Re[1]/l,ce=Re[0]Ge?Ge:0,je=Re[1]xe?xe:0,ce||je){if(!L)T[L++]=[ce||Re[0],je||Re[1]];else if(qt){var be=Zt(qt,Re);be.length>1&&(ot(be[0]),T[L++]=be[1])}else at=Zt(T[L-1],Re)[0],T[L++]=at;var Oe=T[L-1];ce&&je&&(Oe[0]!==ce||Oe[1]!==je)?(qt&&(Qe!==ce&>!==je?Ae(Qe&>?Et(qt,Re):[Qe||ce,gt||je]):Qe&>&&Ae([Qe,gt])),Ae([ce,je])):Qe-ce&>-je&&Ae([ce||Qe,je||gt]),qt=Re,Qe=ce,gt=je}else qt&&ot(Zt(qt,Re)[0]),T[L++]=Re}for(x=0;xte(A,Je))break;M=A,N=U[0]*B[0]+U[1]*B[1],N>j?(j=N,m=A,F=!1):N=t.length||!A)break;vt(A),k=A}}qt&&Ae([Qe||qt[0],gt||qt[1]]),v.push(T.slice(0,L))}var He=p.slice(p.length-1);if(f&&He!=="h"&&He!=="v"){for(var nt=!1,tt=-1,It=[],Yt=0;Yt{"use strict";var Upe={tonextx:1,tonexty:1,tonext:1};Vpe.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 Bm=Jl(),D0t=$l(),sE=ei(),cA=sE.ensureSingle,Hpe=sE.identity,hh=Mu(),hA=lc(),F0t=RU(),B0t=DU(),oI=D5().tester;Wpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=B0t(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(),O0t(t,s,r),f){o&&(u=o());var h=Bm.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){Gpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Gpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function O0t(e,t,r){t.each(function(n){var i=cA(Bm.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,Hpe);s.enter().append("g"),s.exit().remove(),s.order().each(function(u){a[u]=cA(Bm.select(this),"path","js-fill")})})}function Gpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;q0t(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Bt){return l?Bt.transition():Bt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,_=Bm.select(a),b=cA(_,"g","errorbars"),v=cA(_,"g","lines"),C=cA(_,"g","points"),E=cA(_,"g","text");if(D0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(_).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,M;x==="y"?(k=1,M=h.c2p(0,!0)):x==="x"&&(k=0,M=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var m="",P=[],A=d._prevtrace,F=null,B=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,F=A._fillsegments,B=A._fillElement);var U,G,j="",W="",N,H,re,ae,ge,ze,Le=[];d._polygons=[];var de=[],te=[],ke=sE.noop;if(T=d._ownFill,hA.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(Bt){var Zt=Bt[Bt.length-1];return Bt.length>1&&Bt[0][0]===Zt[0]&&Bt[0][1]===Zt[1]?hh.smoothclosed(Bt.slice(1),p.smoothing):hh.smoothopen(Bt,p.smoothing)}:N=H=function(Bt){return"M"+Bt.join("L")},re=function(Bt){return H(Bt.reverse())},te=F0t(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 Ee=0;for(u=0;u=s[0]&&_.x<=s[1]&&_.y>=u[0]&&_.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(_,b){var v=_[0].trace;hA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";jpe.exports={container:"marker",min:"cmin",max:"cmax"}});var lI=Te((jlr,Xpe)=>{"use strict";var sI=wu();Xpe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=sI.getFromTrace(a,r,"x"),s=sI.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=sI.tickText(o,o.c2l(u),!0).text,i.yLabel=sI.tickText(s,s.c2l(l),!0).text,i}});var sv=Te((Xlr,Zpe)=>{"use strict";var FU=Jl(),pA=Mu(),N0t=$l();function U0t(e){var t=FU.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=FU.select(this),i=r.trace||r[0].trace;BU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=FU.select(this),i=r.trace||r[0].trace;OU(n,i,e)}),t.selectAll("g.trace path.js-line").call(pA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(pA.fillGroupStyle,e,!1),N0t.getComponentMethod("errorbars","style")(t)}function BU(e,t,r){pA.pointStyle(e.selectAll("path.point"),t,r)}function OU(e,t,r){pA.textPointStyle(e.selectAll("text"),t,r)}function V0t(e,t,r){var n=t[0].trace;n.selectedpoints?(pA.selectedPointStyle(r.selectAll("path.point"),n),pA.selectedTextStyle(r.selectAll("text"),n)):(BU(r,n,e),OU(r,n,e))}Zpe.exports={style:U0t,stylePoints:BU,styleText:OU,styleOnSelect:V0t}});var mA=Te((Zlr,Ype)=>{"use strict";var vA=jl(),G0t=lc();Ype.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&vA.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&&vA.opacity(a)?a:o&&vA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?vA.opacity(i)<.3?vA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&vA.opacity(n)&&G0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var yA=Te((Ylr,Jpe)=>{"use strict";var uI=ei(),Kpe=Xc(),H0t=$l(),W0t=mA(),qU=jl(),j0t=uI.fillText;Jpe.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,_=!!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,ge=Math.abs(s.c2p(W.x)-l);return ge=Math.min(N,H)&&f<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,ge=Math.abs(u.c2p(W.y)-f);return geLe!=xe>=Le&&(Se=ke[te-1][0],Ge=ke[te][0],xe-De&&(Ee=Se+(Ge-Se)*(Le-De)/(xe-De),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Le,y1:Le}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=F(o._fillElement)&&!F(o._fillExclusionElement);if(U){var G=B(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=qU.defaultLine;return qU.opacity(o.fillcolor)?j=o.fillcolor:qU.opacity((o.line||{}).color)&&(j=o.line.color),uI.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&&!uI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var gA=Te((Klr,Qpe)=>{"use strict";var $pe=lc();Qpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!$pe.hasMarkers(s)&&!$pe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";eve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var UU=Te(($lr,nve)=>{"use strict";var lE=$l().traceIs,NU=V3();nve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(X0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function X0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Z0t(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:!lE(a,"cartesian")||lE(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,ive(a,n)){var l=rve(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(ive(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function rve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function ive(e,t){var r=rve(e),n=lE(e,"box-violin"),i=lE(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var fI=Te((Qlr,ave)=>{"use strict";var Y0t=mp().isTypedArraySpec;function K0t(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||Y0t(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=K0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var uE=Te((eur,sve)=>{"use strict";var ove=hd().mix,J0t=Oh(),$0t=ei();sve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,m){return $0t.coerce2(t,r,i.attributes,M,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=ove(a,i.bgColor,i.blend||J0t.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 _=ove(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),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 T=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 cE=Te((tur,dve)=>{"use strict";var lve=ku(),Q0t=$l(),fE=ei(),emt=Lf(),tmt=Kd(),VU=Dd(),uve=Lb(),fve=D3(),rmt=s_(),imt=l_(),nmt=fI(),amt=uE(),omt=RN(),cve=xy(),cI=qh().WEEKDAY_PATTERN,smt=qh().HOUR_PATTERN;dve.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=Q0t.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=fE.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"),cve(r,a),omt(t,r,n,i),nmt(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==VU.color.dflt?_:s.color,v=u.label||a._dfltTitle[o];if(imt(t,r,n,c,i),!l)return r;n("title.text",v),fE.coerceFont(n,"title.font",s,{overrideDflt:{size:fE.bigFont(s.size),color:b}}),uve(t,r,n,c);var C=i.hasMinor;if(C&&(emt.newContainer(r,"minor"),uve(t,r,n,c,{isMinor:!0})),rmt(t,r,n,c,i),fve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,fve(t,r,n,i),i.isMinor=E}amt(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:VU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="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(c==="date")if(tmt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:lmt}),!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=hve(a[s]),u){o=cI;break}}var l=n("pattern",o);if(l===cI)for(s=0;s<2;s++)u=hve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case cI:if(!lve(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 smt:if(!lve(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 fmt=ku(),hI=ei();pve.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,_;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||(fmt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,_=!1;var b=hI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=hI.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],_=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=hI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),hI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var Ave=Te((iur,wve)=>{"use strict";var r2=ei(),vve=jl(),cmt=iv().isUnifiedHover,hmt=a7(),mve=Lf(),dmt=_3(),yve=Dd(),pmt=UU(),gve=cE(),vmt=Kb(),_ve=dI(),HU=Wc(),Ry=HU.id2name,xve=HU.name2id,mmt=qh().AX_ID_PATTERN,bve=$l(),pI=bve.traceIs,GU=bve.getComponentMethod;function vI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}wve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},_,b;for(_=0;_{"use strict";var ymt=Jl(),Tve=$l(),mI=ei(),Qv=Mu(),yI=wu();Sve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){yI.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,T=C.yaxis,L=E._length,x=T._length,k=!!b.xr1,M=!!b.yr1,m=[];if(k){var P=mI.simpleMap(b.xr0,E.r2l),A=mI.simpleMap(b.xr1,E.r2l),F=P[1]-P[0],B=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*B/F),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(M){var U=mI.simpleMap(b.yr0,T.r2l),G=mI.simpleMap(b.yr1,T.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),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=x;yI.drawOne(t,E,{skipTitle:!0}),yI.drawOne(t,T,{skipTitle:!0}),yI.redrawComponents(t,[E._id,T._id]);var N=k?L/m[2]:1,H=M?x/m[3]:1,re=k?m[0]:0,ae=M?m[1]:0,ge=k?m[0]/m[2]*L:0,ze=M?m[1]/m[3]*x:0,Le=E._offset-ge,de=T._offset-ze;C.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/H),C.plot.call(Qv.setTranslate,Le,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(_)):d=window.requestAnimationFrame(_)}return c=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var Mh=Te(wp=>{"use strict";var _I=Jl(),Eve=$l(),i2=ei(),gmt=Cc(),_mt=Mu(),kve=Rd().getModuleCalcData,S_=Wc(),Om=qh(),xmt=jv(),Zf=i2.ensureSingle;function gI(e,t,r){return i2.ensureSingle(e,t,r,function(n){n.datum(r)})}var n2=Om.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Om.idRegex;wp.attrRegex=Om.attrRegex;wp.attributes=tve();wp.layoutAttributes=Dd();wp.supplyLayoutDefaults=Ave();wp.transitionAxes=Mve();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(n2)!==-1)continue;d+=n2+(l+1),h=i2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],_,b=0;b1&&(L+=n2+T),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,_=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",_),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",_),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",_),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",_),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+_),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+_),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(gI(t.minorGridlayer,"g",t.xaxis._id),gI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(S_.idSort),gI(t.gridlayer,"g",t.xaxis._id),gI(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 Pve(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=_I.select(this);f.remove(),zve(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 xI=lc();Ive.exports={hasLines:xI.hasLines,hasMarkers:xI.hasMarkers,hasText:xI.hasText,isBubble:xI.isBubble,attributes:Zc(),layoutAttributes:tP(),supplyDefaults:ape(),crossTraceDefaults:xU(),supplyLayoutDefaults:upe(),calc:O0().calc,crossTraceCalc:Rpe(),arraysToCalcdata:Iy(),plot:dA(),colorbar:ep(),formatLabels:lI(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:yA(),selectPoints:gA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Bve=Te((sur,Fve)=>{"use strict";var wmt=Jl(),Amt=jl(),Dve=X7(),WU=ei(),Tmt=WU.strScale,Smt=WU.strRotate,Mmt=WU.strTranslate;Fve.exports=function(t,r,n){var i=t.node(),a=Dve[n.arrowhead||0],o=Dve[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,_,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(_=Math.atan2(C,v),b=_+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(_),T=c*Math.sin(_);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+C*C){U();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var Ove=Jl(),jU=$l(),Emt=Cc(),E_=ei(),XU=E_.strTranslate,dE=wu(),a2=jl(),qg=Mu(),qve=Xc(),ZU=Wf(),YU=Em(),hE=xp(),kmt=Lf().arrayEditor,Cmt=Bve();Vve.exports={draw:Lmt,drawOne:Nve,drawRaw:Uve};function Lmt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Fe="right":Fe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Fe]}for(var De=!1,xe=["x","y"],Ne=0;Ne1)&&(Qe===je?(Je=gt.r2fraction(t["a"+ce]),(Je<0||Je>1)&&(De=!0)):De=!0),Zt=gt._offset+gt.r2p(t[ce]),ot=.5}else{var He=vt==="domain";ce==="x"?(Ae=t[ce],Zt=He?gt._offset+gt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=He?gt._offset+gt._length*Ae:Zt=s.t+s.h*Ae),ot=t.showarrow?.5:Ae}if(t.showarrow){Bt.head=Zt;var nt=t["a"+ce];if(At=at*Ge(.5,t.xanchor)-Ke*Ge(.5,t.yanchor),Qe===je){var tt=dE.getRefType(Qe);tt==="domain"?(ce==="y"&&(nt=1-nt),Bt.tail=gt._offset+gt._length*nt):tt==="paper"?ce==="y"?(nt=1-nt,Bt.tail=s.t+s.h*nt):Bt.tail=s.l+s.w*nt:Bt.tail=gt._offset+gt.r2p(nt),Et=At}else Bt.tail=Zt+nt,Et=At+nt;Bt.text=Bt.tail+At;var It=o[ce==="x"?"width":"height"];if(je==="paper"&&(Bt.head=E_.constrain(Bt.head,1,It-1)),Qe==="pixel"){var Yt=-Math.max(Bt.tail-3,Bt.text),cr=Math.min(Bt.tail+3,Bt.text)-It;Yt>0?(Bt.tail+=Yt,Bt.text+=Yt):cr>0&&(Bt.tail-=cr,Bt.text-=cr)}Bt.tail+=Mt,Bt.head+=Mt}else At=Ct*Ge(ot,wt),Et=At,Bt.text=Zt+At;Bt.text+=Mt,At+=Mt,Et+=Mt,t["_"+ce+"padplus"]=Ct/2+Et,t["_"+ce+"padminus"]=Ct/2-Et,t["_"+ce+"size"]=Ct,t["_"+ce+"shift"]=At}if(De){k.remove();return}var _r=0,yr=0;if(t.align!=="left"&&(_r=(te-Le)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(ke-de)*(t.valign==="middle"?.5:1)),ge)ae.select("svg").attr({x:P+_r-1,y:P+yr}).call(qg.setClipUrl,F?_:null,e);else{var Ut=P+yr-ze.top,Re=P+_r-ze.left;j.call(ZU.positionText,Re,Ut).call(qg.setClipUrl,F?_:null,e)}B.select("rect").call(qg.setRect,P,P,te,ke),A.call(qg.setRect,M/2,M/2,Ee-M,Se-M),k.call(qg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Se/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var be=function(Ie,Fe){C.selectAll(".annotation-arrow-g").remove();var ft=b.x.head,ye=b.y.head,fe=b.x.tail+Ie,pe=b.y.tail+Fe,dt=b.x.text+Ie,Pt=b.y.text+Fe,zt=E_.rotationXYMatrix(v,dt,Pt),rr=E_.apply2DTransform(zt),Gr=E_.apply2DTransform2(zt),Br=+A.attr("width"),Er=+A.attr("height"),Rr=dt-.5*Br,pi=Rr+Br,Di=Pt-.5*Er,ni=Di+Er,$i=[[Rr,Di,Rr,ni],[Rr,ni,pi,ni],[pi,ni,pi,Di],[pi,Di,Rr,Di]].map(Gr);if(!$i.reduce(function(Or,Hr){return Or^!!E_.segmentsIntersect(ft,ye,ft+1e6,ye+1e6,Hr[0],Hr[1],Hr[2],Hr[3])},!1)){$i.forEach(function(Or){var Hr=E_.segmentsIntersect(fe,pe,ft,ye,Or[0],Or[1],Or[2],Or[3]);Hr&&(fe=Hr.x,pe=Hr.y)});var Qi=t.arrowwidth,si=t.arrowcolor,Ti=t.arrowside,Ni=C.append("g").style({opacity:a2.opacity(si)}).classed("annotation-arrow-g",!0),Rt=Ni.append("path").attr("d","M"+fe+","+pe+"L"+ft+","+ye).style("stroke-width",Qi+"px").call(a2.stroke,a2.rgb(si));if(Cmt(Rt,Ti,t),u.annotationPosition&&Rt.node().parentNode&&!n){var yt=ft,Gt=ye;if(t.standoff){var Wt=Math.sqrt(Math.pow(ft-fe,2)+Math.pow(ye-pe,2));yt+=t.standoff*(fe-ft)/Wt,Gt+=t.standoff*(pe-ye)/Wt}var xr=Ni.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-yt)+","+(pe-Gt),transform:XU(yt,Gt)}).style("stroke-width",Qi+6+"px").call(a2.stroke,"rgba(0,0,0,0)").call(a2.fill,"rgba(0,0,0,0)"),Lr,Nr;hE.init({element:xr.node(),gd:e,prepFn:function(){var Or=qg.getTranslate(k);Lr=Or.x,Nr=Or.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Or,Hr){var jr=rr(Lr,Nr),gi=jr[0]+Or,ki=jr[1]+Hr;k.call(qg.setTranslate,gi,ki),d("x",M_(i,Or,"x",s,t)),d("y",M_(a,Hr,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,Or,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Hr,"ay",s,t)),Ni.attr("transform",XU(Or,Hr)),E.attr({transform:"rotate("+v+","+gi+","+ki+")"})},doneFn:function(){jU.call("_guiRelayout",e,p());var Or=document.querySelector(".js-notes-box-panel");Or&&Or.redraw(Or.selectedObj)}})}}};if(t.showarrow&&be(0,0),T){var Oe;hE.init({element:k.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Ie,Fe){var ft="pointer";if(t.showarrow)t.axref===t.xref?d("ax",M_(i,Ie,"ax",s,t)):d("ax",t.ax+Ie),t.ayref===t.yref?d("ay",M_(a,Fe,"ay",s.w,t)):d("ay",t.ay+Fe),be(Ie,Fe);else{if(n)return;var ye,fe;if(i)ye=M_(i,Ie,"x",s,t);else{var pe=t._xsize/s.w,dt=t.x+(t._xshift-t.xshift)/s.w-pe/2;ye=hE.align(dt+Ie/s.w,pe,0,1,t.xanchor)}if(a)fe=M_(a,Fe,"y",s,t);else{var Pt=t._ysize/s.h,zt=t.y-(t._yshift+t.yshift)/s.h-Pt/2;fe=hE.align(zt-Fe/s.h,Pt,0,1,t.yanchor)}d("x",ye),d("y",fe),(!i||!a)&&(ft=hE.getCursor(i?.5:ye,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:XU(Ie,Fe)+Oe}),YU(k,ft)},clickFn:function(Ie,Fe){t.captureevents&&e.emit("plotly_clickannotation",x(Fe))},doneFn:function(){YU(k),jU.call("_guiRelayout",e,p());var Ie=document.querySelector(".js-notes-box-panel");Ie&&Ie.redraw(Ie.selectedObj)}})}}u.annotationText?j.call(ZU.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),jU.call("_guiRelayout",e,p())}):j.call(W)}});var Zve=Te((uur,Xve)=>{"use strict";var Gve=ei(),Pmt=$l(),Hve=Lf().arrayEditor;Xve.exports={hasClickToShow:zmt,onClick:Imt};function zmt(e,t){var r=jve(e,t);return r.on.length>0||r.explicitOff.length>0}function Imt(e,t){var r=jve(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 KU=ei(),_A=jl();Yve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=_A.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),KU.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:_A.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),_=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",_.bgcolor||(_A.opacity(a)?_A.rgb(a):_A.defaultLine)),v=i("hoverlabel.bordercolor",_.bordercolor||_A.contrast(b)),C=KU.extendFlat({},_.font);C.color||(C.color=v),KU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!p)}});var Jve=Te((cur,Kve)=>{"use strict";var $U=ei(),o2=wu(),Rmt=Kd(),Dmt=JU(),Fmt=Jb();Kve.exports=function(t,r){Rmt(t,r,{name:"annotations",handleItemDefaults:Bmt})};function Bmt(e,t,r){function n(E,T){return $U.coerce(e,t,Fmt,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Dmt(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=o2.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=o2.getFromId(l,h);d._annIndices.push(t._index)}if(o2.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,_=o2.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[p]="pixel");var b=_==="pixel"?u[f]:.4;o2.coercePosition(t,l,n,_,p,b)}n(c+"anchor"),n(c+"shift")}if($U.noneOrAll(e,t,["x","y"]),o&&$U.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),C=n("yclick");t._xclick=v===void 0?t.x:o2.cleanPosition(v,l,t.xref),t._yclick=C===void 0?t.y:o2.cleanPosition(C,l,t.yref)}}}});var e0e=Te((hur,Qve)=>{"use strict";var QU=ei(),s2=wu(),Omt=bI().draw;Qve.exports=function(t){var r=t._fullLayout,n=QU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return QU.syncOrAsync([Omt,qmt],t)};function qmt(e){var t=e._fullLayout;QU.filterVisible(t.annotations).forEach(function(r){var n=s2.getFromId(e,r.xref),i=s2.getFromId(e,r.yref),a=s2.getRefType(r.xref),o=s2.getRefType(r.yref);r._extremes={},a==="range"&&$ve(r,n),o==="range"&&$ve(r,i)})}function $ve(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,_=p+f,b=p-f,v;if(s===o){var C=s2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=s2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,_),ppadminus:Math.max(l,b)});v={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,v=s2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,_),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var r0e=Te((dur,t0e)=>{"use strict";var Nmt=ku(),Umt=SL();t0e.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],_=null;a?_=Umt(p,r.range):_=Math.pow(10,p),Nmt(_)||(_=null),i(f+d,_)}for(var h=0;h{"use strict";var eV=bI(),i0e=Zve();n0e.exports={moduleType:"component",name:"annotations",layoutAttributes:Jb(),supplyLayoutDefaults:Jve(),includeBasePlot:j5()("annotations"),calcAutorange:e0e(),draw:eV.draw,drawOne:eV.drawOne,drawRaw:eV.drawRaw,hasClickToShow:i0e.hasClickToShow,onClick:i0e.onClick,convertCoords:r0e()}});var wI=Te((vur,o0e)=>{"use strict";var Pc=Jb(),Vmt=Sc().overrideAll,Gmt=Lf().templatedArray;o0e.exports=Vmt(Gmt("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 l0e=Te((mur,s0e)=>{"use strict";var tV=ei(),Hmt=wu(),Wmt=Kd(),jmt=JU(),Xmt=wI();s0e.exports=function(t,r,n){Wmt(t,r,{name:"annotations",handleItemDefaults:Zmt,fullLayout:n.fullLayout})};function Zmt(e,t,r,n){function i(s,u){return tV.coerce(e,t,Xmt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],Hmt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(jmt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),tV.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),tV.noneOrAll(e,t,["ax","ay"])))}});var h0e=Te((yur,c0e)=>{"use strict";var u0e=ei(),f0e=wu();c0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function rV(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 Kmt(e,t){var r=rV(e.projection,rV(e.view,rV(e.model,[t[0],t[1],t[2],1])));return r}d0e.exports=Kmt});var v0e=Te((_ur,p0e)=>{"use strict";var Jmt=bI().drawRaw,$mt=iV(),Qmt=["x","y","z"];p0e.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=$mt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),Jmt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var g0e=Te((xur,y0e)=>{"use strict";var eyt=$l(),m0e=ei();y0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wI()}}},layoutAttributes:wI(),handleDefaults:l0e(),includeBasePlot:tyt,convert:h0e(),draw:v0e()};function tyt(e,t){var r=eyt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var bur=qh(),_0e=gc(),x0e=Zc().line,ryt=Id().dash,qm=Su().extendFlat,iyt=Lf().templatedArray,wur=H5(),xA=Gf(),b0e=Jb(),{shapeTexttemplateAttrs:nyt,templatefallbackAttrs:ayt}=Ff(),oyt=RL();w0e.exports=iyt("shape",{visible:qm({},xA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:qm({},xA.legend,{editType:"calc+arraydraw"}),legendgroup:qm({},xA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:qm({},xA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:_0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:qm({},xA.legendrank,{editType:"calc+arraydraw"}),legendwidth:qm({},xA.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({},b0e.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({},b0e.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({},x0e.color,{editType:"arraydraw"}),width:qm({},x0e.width,{editType:"calc+arraydraw"}),dash:qm({},ryt,{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:nyt({},{keys:Object.keys(oyt)}),texttemplatefallback:ayt({editType:"arraydraw"}),font:_0e({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 T0e=Te((Tur,A0e)=>{"use strict";var bA=ei(),e0=wu(),syt=Kd(),lyt=nV(),pE=x_();A0e.exports=function(t,r){syt(t,r,{name:"shapes",handleItemDefaults:fyt})};function uyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function fyt(e,t,r){function n(E,T){return bA.coerce(e,t,lyt,E,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),bA.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 T=E+"anchor",L=E==="x"?c:h,x={_fullLayout:r},k,M,m,P;let A=E+"ref",F=e[A];if(Array.isArray(F)&&F.length>0){let B=pE.countDefiningCoords(u,o,E);P=e0.coerceRefArray(e,t,x,E,void 0,"paper",B),t["_"+E+"refArray"]=!0}else P=e0.coerceRef(e,t,x,E,void 0,"paper");if(Array.isArray(P))P.forEach(function(B){e0.getRefType(B)==="range"&&(k=e0.getFromId(x,B),k&&k._shapeIndices.indexOf(t._index)===-1&&k._shapeIndices.push(t._index))}),l&&[0,1].forEach(function(B){let U=P[B];e0.getRefType(U)==="range"?(k=e0.getFromId(x,U),M=pE.shapePositionToRange(k),m=pE.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&n(E+B+"shift")):M=m=bA.identity;let j=E+B,W=e[j];if(e[j]=M(e[j],!0),L==="pixel"?n(j,p[B]):e0.coercePosition(t,x,n,U,j,d[B]),t[j]=m(t[j]),e[j]=W,B===0&&L==="pixel"){let N=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,U,T,.25),t[T]=m(t[T]),e[T]=N}});else{if(e0.getRefType(P)==="range"?(k=e0.getFromId(x,P),k._shapeIndices.push(t._index),m=pE.rangeToShapePosition(k),M=pE.shapePositionToRange(k),l&&(k.type==="category"||k.type==="multicategory")&&(n(E+"0shift"),n(E+"1shift"))):M=m=bA.identity,l){let U=E+"0",G=E+"1",j=e[U],W=e[G];e[U]=M(e[U],!0),e[G]=M(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[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=m(t[T]),e[T]=U}}}),l&&bA.noneOrAll(e,t,["x0","x1","y0","y1"]);var _=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",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",uyt(_,C)),n("label.padding"),bA.coerceFont(n,"label.font",r.font)}}});var E0e=Te((Sur,M0e)=>{"use strict";var cyt=jl(),S0e=ei();function hyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}M0e.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"),S0e.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",cyt.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",hyt(o,l)),n("newshape.label.padding"),S0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var R0e=Te((Mur,I0e)=>{"use strict";var aV=ei(),N0=wu(),Dy=A5(),oV=x_();I0e.exports=function(t){var r=t._fullLayout,n=aV.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,C0e(a))})}else a.xref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.xref),s=P0e(o,a,Dy.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,C0e(a))));if(l==="array"){let f=k0e(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,L0e(a))})}else a.yref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.yref),s=P0e(o,a,Dy.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,L0e(a))))}};function k0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Dy.paramIsX:Dy.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(Dy.segmentRE)||[];for(var s=0,u=0;up&&(a(n[s],_[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=oV.decodeDate(f)),l[h._id]=o[c].map(f)}}return l}function C0e(e){return z0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function L0e(e){return z0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function z0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var u=i?oV.extractPathCoords(i,a?Dy.paramIsY:Dy.paramIsX):[r,n],l=aV.aggNums(Math.max,null,u),f=aV.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 P0e(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(Dy.segmentRE),p,_,b,v,C;for(e.type==="date"&&(l=oV.decodeDate(l)),p=0;ph&&(h=C)));if(h>=c)return[c,h]}}});var B0e=Te((Eur,F0e)=>{"use strict";var D0e=dz();F0e.exports={moduleType:"component",name:"shapes",layoutAttributes:nV(),supplyLayoutDefaults:T0e(),supplyDrawNewShapeDefaults:E0e(),includeBasePlot:j5()("shapes"),calcAutorange:R0e(),draw:D0e.draw,drawOne:D0e.drawOne}});var sV=Te((Cur,q0e)=>{"use strict";var O0e=qh(),dyt=Lf().templatedArray,kur=H5();q0e.exports=dyt("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",O0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",O0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var U0e=Te((Lur,N0e)=>{"use strict";var pyt=ei(),lV=wu(),vyt=Kd(),myt=sV(),yyt="images";N0e.exports=function(t,r){var n={name:yyt,handleItemDefaults:gyt};vyt(t,r,n)};function gyt(e,t,r){function n(h,d){return pyt.coerce(e,t,myt,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=lV.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=lV.getFromId(o,f);c._imgIndices.push(t._index)}lV.coercePosition(t,o,n,f,l,0)}return t}});var W0e=Te((Pur,H0e)=>{"use strict";var V0e=Jl(),_yt=Mu(),wA=wu(),G0e=Wc(),xyt=jv();H0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var j0e=ku(),byt=SL();X0e.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";Y0e.exports={moduleType:"component",name:"images",layoutAttributes:sV(),supplyLayoutDefaults:U0e(),includeBasePlot:j5()("images"),draw:W0e(),convertCoords:Z0e()}});var AI=Te((Rur,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 uV=Te((Dur,Q0e)=>{"use strict";var wyt=gc(),Ayt=Oh(),Tyt=Su().extendFlat,Syt=Sc().overrideAll,Myt=DL(),$0e=Lf().templatedArray,Eyt=$0e("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}});Q0e.exports=Syt($0e("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:Eyt,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:Tyt(Myt({editType:"arraydraw"}),{}),font:wyt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ayt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ime=Te((Fur,rme)=>{"use strict";var TI=ei(),eme=Kd(),tme=uV(),kyt=AI(),Cyt=kyt.name,Lyt=tme.buttons;rme.exports=function(t,r){var n={name:Cyt,handleItemDefaults:Pyt};eme(t,r,n)};function Pyt(e,t,r){function n(o,s){return TI.coerce(e,t,tme,o,s)}var i=eme(e,t,{name:"buttons",handleItemDefaults:zyt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),TI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),TI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function zyt(e,t){function r(i,a){return TI.coerce(e,t,Lyt,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 ome=Te((Bur,ame)=>{"use strict";ame.exports=eh;var Nm=Jl(),nme=jl(),AA=Mu(),SI=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",_=c==="up",b=u,v=f,C,E,T,L;!h&&!d&&!p&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(C=s,E=C+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+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:T,w:b,h:v};var k=u>b,M=eh.barLength+2*eh.barPad,m=eh.barWidth+2*eh.barPad,P=s,A=l+f;A+m>o&&(A=o-m);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(nme.fill,eh.barColor),k?(this.hbar=F.attr({rx:eh.barRadius,ry:eh.barRadius,x:P,y:A,width:M,height:m}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=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(B?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(nme.fill,eh.barColor),B?(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=B?E+U+.5:E+.5,ge=T-.5,ze=k?L+m+.5:L+.5,Le=i._topdefs.selectAll("#"+H).data(k||B?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",H).append("rect"),k||B?(this._clipRect=Le.select("rect").attr({x:Math.floor(re),y:Math.floor(ge),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(ze)-Math.floor(ge)}),this.container.call(AA.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(AA.setClipUrl,null),delete this._clipRect),k||B){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),B&&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(AA.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=SI.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=SI.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=SI.constrain(t||0,0,n),r=SI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(AA.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(AA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(AA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var mme=Te((Our,vme)=>{"use strict";var TA=Jl(),vE=Cc(),mE=jl(),SA=Mu(),t0=ei(),MI=Wf(),Iyt=Lf().arrayEditor,lme=Nh().LINE_SPACING,Uu=AI(),Ryt=ome();vme.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[Uu.name]);function i(h){vE.autoMargin(t,dme(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(){TA.select(this).selectAll("g."+Uu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uu.headerGroupClassName).data(n,Dyt);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 Vyt=AI();yme.exports={moduleType:"component",name:Vyt.name,layoutAttributes:uV(),supplyLayoutDefaults:ime(),draw:mme()}});var gE=Te((Nur,_me)=>{"use strict";_me.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 dV=Te((Uur,wme)=>{"use strict";var xme=gc(),Gyt=DL(),Hyt=Su().extendDeepAll,Wyt=Sc().overrideAll,jyt=WM(),bme=Lf().templatedArray,l2=gE(),Xyt=bme("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}});wme.exports=Wyt(bme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Xyt,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:Hyt(Gyt({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:xme({})},font:xme({}),activebgcolor:{valType:"color",dflt:l2.gripBgActiveColor},bgcolor:{valType:"color",dflt:l2.railBgColor},bordercolor:{valType:"color",dflt:l2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l2.tickLength},tickcolor:{valType:"color",dflt:l2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l2.minorTickLength}}),"arraydraw","from-root")});var Mme=Te((Vur,Sme)=>{"use strict";var MA=ei(),Ame=Kd(),Tme=dV(),Zyt=gE(),Yyt=Zyt.name,Kyt=Tme.steps;Sme.exports=function(t,r){Ame(t,r,{name:Yyt,handleItemDefaults:Jyt})};function Jyt(e,t,r){function n(c,h){return MA.coerce(e,t,Tme,c,h)}for(var i=Ame(e,t,{name:"steps",handleItemDefaults:$yt}),a=0,o=0;o{"use strict";var Um=Jl(),EI=Cc(),k_=jl(),Vm=Mu(),r0=ei(),Qyt=r0.strTranslate,_E=Wf(),egt=Lf().arrayEditor,df=gE(),mV=Nh(),Cme=mV.LINE_SPACING,pV=mV.FROM_TL,vV=mV.FROM_BR;Dme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=tgt(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),EI.autoMargin(t,Lme(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,rgt);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",Qyt(o-df.gripWidth*.5,t._dims.currentValueTotalHeight))}}function yV(e,t){var r=e._dims;return r.inputAreaStart+df.stepInset+(r.inputAreaLength-2*df.stepInset)*Math.min(1,Math.max(0,t))}function kme(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 ugt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",df.railTouchRectClass,function(a){a.call(Ime,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 fgt(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 Ome=Te((Hur,Bme)=>{"use strict";var cgt=gE();Bme.exports={moduleType:"component",name:cgt.name,layoutAttributes:dV(),supplyLayoutDefaults:Mme(),draw:Fme()}});var CI=Te((Wur,Nme)=>{"use strict";var qme=Oh();Nme.exports={bgcolor:{valType:"color",dflt:qme.background,editType:"plot"},bordercolor:{valType:"color",dflt:qme.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 gV=Te((jur,Ume)=>{"use strict";Ume.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 LI=Te((Xur,Vme)=>{"use strict";Vme.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 Wme=Te(zI=>{"use strict";var hgt=Wc(),dgt=Wf(),Gme=LI(),pgt=Nh().LINE_SPACING,PI=Gme.name;function Hme(e){var t=e&&e[PI];return t&&t.visible}zI.isVisible=Hme;zI.makeData=function(e){for(var t=hgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var II=ei(),jme=Lf(),Xme=Wc(),vgt=CI(),mgt=gV();Zme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;II.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=jme.newContainer(a,"rangeslider");function u(L,x){return II.coerce(o,s,vgt,L,x)}var l,f;function c(L,x){return II.coerce(l,f,mgt,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")))===Xme.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),_=II.simpleMap(p,Xme.id2name),b=0;b<_.length;b++){var v=_[b];l=o[v]||{},f=jme.newContainer(s,v,"yaxis");var C=r[v],E;l.range&&C.isValidRange(l.range)&&(E="fixed");var T=c("rangemode",E);T!=="match"&&c("range",C.range.slice())}s._input=o}}});var Jme=Te((Kur,Kme)=>{"use strict";var ygt=Wc().list,ggt=Mm().getAutoRange,_gt=LI();Kme.exports=function(t){for(var r=ygt(t,"x",!0),n=0;n{"use strict";var RI=Jl(),xgt=$l(),bgt=Cc(),dh=ei(),DI=dh.strTranslate,Qme=Mu(),C_=jl(),wgt=Fb(),Agt=Mh(),_V=Wc(),Tgt=xp(),Sgt=Em(),Sf=LI();eye.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[W+1];else if(G=N.pmax)j=A[W+1];else if(G0?e.touches[0].clientX:0}function Mgt(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=$me(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Tgt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),p.addEventListener("mousemove",_),p.addEventListener("mouseup",b);function _(v){var C=$me(v),E=+C-f,T,L,x;switch(l){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;T=h,L=d+E;break;default:x="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Fgt=ei(),Bgt=CI(),Ogt=gV(),xV=Wme();rye.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Fgt.extendFlat({},Bgt,{yaxis:Ogt})}}},layoutAttributes:CI(),handleDefaults:Yme(),calcAutorange:Jme(),draw:tye(),isVisible:xV.isVisible,makeData:xV.makeData,autoMarginOpts:xV.autoMarginOpts}});var FI=Te((Qur,aye)=>{"use strict";var qgt=gc(),nye=Oh(),Ngt=Lf().templatedArray,Ugt=Ngt("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"});aye.exports={visible:{valType:"boolean",editType:"plot"},buttons:Ugt,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:qgt({editType:"plot"}),bgcolor:{valType:"color",dflt:nye.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:nye.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var bV=Te((efr,oye)=>{"use strict";oye.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uye=Te((tfr,lye)=>{"use strict";var BI=ei(),Vgt=jl(),Ggt=Lf(),Hgt=Kd(),sye=FI(),wV=bV();lye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=Ggt.newContainer(r,"rangeselector");function u(d,p){return BI.coerce(o,s,sye,d,p)}var l=Hgt(o,s,{name:"buttons",handleItemDefaults:Wgt,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",Vgt.contrast(h,wV.lightAmount,wV.darkAmount)),u("bordercolor"),u("borderwidth")}};function Wgt(e,t,r,n){var i=n.calendar;function a(u,l){return BI.coerce(e,t,sye.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 Xgt=DO(),Zgt=ei().titleCase;fye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Ygt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Ygt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Xgt["utc"+Zgt(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 _ye=Te((ifr,gye)=>{"use strict";var qI=Jl(),Kgt=$l(),Jgt=Cc(),hye=jl(),yye=Mu(),Ng=ei(),dye=Ng.strTranslate,OI=Wf(),$gt=Wc(),SV=Nh(),pye=SV.LINE_SPACING,vye=SV.FROM_TL,mye=SV.FROM_BR,TV=bV(),Qgt=cye();gye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(e1t(t),t1t);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=qI.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=qI.select(this),c=Qgt(o,l);l._isActive=r1t(o,l,c),f.call(AV,s,l),f.call(n1t,s,l,t),f.on("click",function(){t._dragged||Kgt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(AV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(AV,s,l)})}),o1t(t,u,s,o._name,a)})};function e1t(e){for(var t=$gt.list(e,"x",!0),r=[],n=0;n{"use strict";xye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:FI()}}},layoutAttributes:FI(),handleDefaults:uye(),draw:_ye()}});var zc=Te(MV=>{"use strict";var wye=Su().extendFlat;MV.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:wye({},r,{}),y:wye({},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};MV.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 s1t=ei(),l1t=v3().counter,u1t=zc().attributes,Aye=qh().idRegex,f1t=Lf(),EV={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:[l1t("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Aye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Aye.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:u1t({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 NI(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 c1t(e,t){var r=e.grid||{},n=NI(t,r,"x"),i=NI(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=f1t.newContainer(t,"grid");function h(x,k){return s1t.coerce(r,c,EV,x,k)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:Tye("x",h,C,T,p),y:Tye("y",h,E,L,d,v)}}function Tye(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";Eye.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 Lye=Te((lfr,Cye)=>{"use strict";var kye=ku(),d1t=$l(),p1t=ei(),v1t=Lf(),m1t=CV();Cye.exports=function(e,t,r,n){var i="error_"+n.axis,a=v1t.newContainer(t,i),o=e[i]||{};function s(p,_){return p1t.coerce(o,a,m1t,p,_)}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||kye(o.thickness)||kye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",d1t.traceIs(t,"gl3d")?0:4))}}});var LV=Te((ufr,zye)=>{"use strict";zye.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=Pye(r,t.value),s=Pye(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 Pye(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 Dye=Te((ffr,Rye)=>{"use strict";var PV=ku(),y1t=$l(),zV=wu(),g1t=ei(),_1t=LV();Rye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Fye=Jl(),L_=ku(),x1t=Mu(),b1t=lc();Bye.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 _=b1t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Fye.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),x1t.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=Fye.select(this),T=w1t(C,o,s);if(!(_&&!C.vis)){var L,x=E.select("path.yerror");if(d.visible&&L_(T.x)&&L_(T.yh)&&L_(T.ys)){var k=d.width;L="M"+(T.x-k)+","+T.yh+"h"+2*k+"m-"+k+",0V"+T.ys,T.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 M=E.select("path.xerror");if(h.visible&&L_(T.y)&&L_(T.xh)&&L_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!M.size(),a?M=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function w1t(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 Uye=Te((hfr,Nye)=>{"use strict";var A1t=Jl(),qye=jl();Nye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=A1t.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(qye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(qye.stroke,a.color)})}});var Hye=Te((dfr,Gye)=>{"use strict";var xE=ei(),Vye=Sc().overrideAll,bE=CV(),u2={error_x:xE.extendFlat({},bE),error_y:xE.extendFlat({},bE)};delete u2.error_x.copy_zstyle;delete u2.error_y.copy_zstyle;delete u2.error_y.copy_ystyle;var wE={error_x:xE.extendFlat({},bE),error_y:xE.extendFlat({},bE),error_z:xE.extendFlat({},bE)};delete wE.error_x.copy_ystyle;delete wE.error_y.copy_ystyle;delete wE.error_z.copy_ystyle;delete wE.error_z.copy_zstyle;Gye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:u2,bar:u2,histogram:u2,scatter3d:Vye(wE,"calc","nested"),scattergl:Vye(u2,"calc","nested")}},supplyDefaults:Lye(),calc:Dye(),makeComputeError:LV(),plot:Oye(),style:Uye(),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 jye=Te((pfr,Wye)=>{"use strict";Wye.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 Qye=Te((vfr,$ye)=>{"use strict";var P_=Jl(),IV=hd(),VI=Cc(),Xye=$l(),Ug=wu(),UI=xp(),U0=ei(),Hm=U0.strTranslate,Jye=Su().extendFlat,RV=Em(),Gm=Mu(),DV=jl(),S1t=Fb(),M1t=Wf(),E1t=yp().flipScale,k1t=cE(),C1t=dI(),L1t=Dd(),FV=Nh(),Zye=FV.LINE_SPACING,Yye=FV.FROM_TL,Kye=FV.FROM_BR,Yc=jye().cn;function P1t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(z1t(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=I1t(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&R1t(i,n,e)}),r.exit().each(function(n){VI.autoMargin(e,n._id)}).remove(),r.order()}function z1t(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Jye(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?E1t(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ne=Math.pow(10,Math.floor(Math.log(xe)/Math.LN10));Ge*=Ne*U0.roundUp(xe/Ne,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ge}Ee.domain=n?[te+p/T.h,te+H-p/T.h]:[te+d/T.w,te+H-d/T.w],Ee.setScale(),e.attr("transform",Hm(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Hm(-Math.round(T.l),-Math.round(T.t))),je=Ee.ticklabelposition,Qe=Ee.title.font.size,gt=e.select("."+Yc.cbaxis),qt,at=0,Ke=0;function Ct(Et,Ae){var ot={propContainer:Ee,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},At=Et.charAt(0)==="h"?Et.slice(1):"h"+Et;e.selectAll("."+At+",."+At+"-math-group").remove(),S1t.draw(r,Et,Jye(ot,Ae||{}))}function wt(){if(n&&Se||!n&&!Se){var Et,Ae;M==="top"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te-H)+3+Qe*.75),M==="bottom"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te)-3-Qe*.25),M==="right"&&(Ae=p+T.t+ae*b+3+Qe*.75,Et=d+T.l+re*te),Ct(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function Mt(){if(n&&!Se||!n&&Se){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,ot,At;if(M==="right")At=Ae,ot=T.l+re*Et+10+Qe*(Ee.showticklabels?1:.5);else if(ot=Ae,M==="bottom"&&(At=T.t+ae*Et+10+(je.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var vt=k.text.split("
").length;At=T.t+ae*Et+10-j-Zye*Qe*vt}Ct((n?"h":"v")+Ee._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:ot,y:At,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Bt(){if(!n&&!Se||n&&Se){var Et=e.select("."+Yc.cbtitle),Ae=Et.select("text"),ot=[-u/2,u/2],At=Et.select(".h"+Ee._id+"title-math-group").node(),vt=15.6;Ae.node()&&(vt=parseInt(Ae.node().style.fontSize,10)*Zye);var Je;if(At?(Je=Gm.bBox(At),Ke=Je.width,at=Je.height,at>vt&&(ot[1]-=(at-vt)/2)):Ae.node()&&!Ae.classed(Yc.jsPlaceholder)&&(Je=Gm.bBox(Ae.node()),Ke=Je.width,at=Je.height),n){if(at){if(at+=5,M==="top")Ee.domain[1]-=at/T.h,ot[1]*=-1;else{Ee.domain[0]+=at/T.h;var He=M1t.lineCount(Ae);ot[1]+=(1-He)*vt}Et.attr("transform",Hm(ot[0],ot[1])),Ee.setScale()}}else Ke&&(M==="right"&&(Ee.domain[0]+=(Ke+Qe/2)/T.w),Et.attr("transform",Hm(ot[0],ot[1])),Ee.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Hm(0,Math.round(T.h*(1-Ee.domain[1]))):Hm(Math.round(T.w*Ee.domain[0]),0)),gt.attr("transform",n?Hm(0,Math.round(-T.t)):Hm(Math.round(-T.l),0));var nt=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);nt.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),nt.exit().remove();var tt=m.map(Ee.c2p).map(Math.round).sort(function(yr,Ut){return yr-Ut});nt.each(function(yr,Ut){var Re=[Ut===0?m[0]:(U[Ut]+U[Ut-1])/2,Ut===U.length-1?m[1]:(U[Ut]+U[Ut+1])/2].map(Ee.c2p).map(Math.round);n&&(Re[1]=U0.constrain(Re[1]+(Re[1]>Re[0])?1:-1,tt[0],tt[1]));var be=P_.select(this).attr(n?"x":"y",ge).attr(n?"y":"x",P_.min(Re)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(P_.max(Re)-P_.min(Re),2));if(t._fillgradient)Gm.gradient(be,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(yr).replace("e-","");be.attr("fill",IV(Oe).toHexString())}});var It=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(x.color&&x.width?G:[]);It.enter().append("path").classed(Yc.cbline,!0),It.exit().remove(),It.each(function(yr){var Ut=ge,Re=Math.round(Ee.c2p(yr))+x.width/2%1;P_.select(this).attr("d","M"+(n?Ut+","+Re:Re+","+Ut)+(n?"h":"v")+j).call(Gm.lineGroupStyle,x.width,P(yr),x.dash)}),gt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=ge+j+(u||0)/2-(t.ticks==="outside"?1:0),cr=Ug.calcTicks(Ee),_r=Ug.getTickSigns(Ee)[2];return Ug.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ug.clipEnds(Ee,cr):cr,layer:gt,path:Ug.makeTickPath(Ee,Yt,_r),transFn:Ug.makeTransTickFn(Ee)}),Ug.drawLabels(r,Ee,{vals:cr,layer:gt,transFn:Ug.makeTransTickLabelFn(Ee),labelFns:Ug.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;je.indexOf("inside")===-1&&(Et=Gm.bBox(gt.node()),Ae+=n?Et.width:Et.height),qt=ce.select("text");var ot=0,At=n&&M==="top",vt=!n&&M==="right",Je=0;if(qt.node()&&!qt.classed(Yc.jsPlaceholder)){var He,nt=ce.select(".h"+Ee._id+"title-math-group").node();nt&&(n&&Se||!n&&!Se)?(Et=Gm.bBox(nt),ot=Et.width,He=Et.height):(Et=Gm.bBox(ce.node()),ot=Et.right-T.l-(n?ge:ke),He=Et.bottom-T.t-(n?ke:ge),!n&&M==="top"&&(Ae+=Et.height,Je=Et.height)),vt&&(qt.attr("transform",Hm(ot/2+Qe/2,0)),ot*=2),Ae=Math.max(Ae,n?ot:He)}var tt=(n?d:p)*2+Ae+l+u/2,It=0;!n&&k.text&&h==="bottom"&&b<=0&&(It=tt/2,tt+=It,Je+=It),E._hColorbarMoveTitle=It,E._hColorbarMoveCBTitle=Je;var Yt=l+u,cr=(n?ge:ke)-Yt/2-(n?d:0),_r=(n?ke:ge)-(n?N:p+Je-It);e.select("."+Yc.cbbg).attr("x",cr).attr("y",_r).attr(n?"width":"height",Math.max(tt-It,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(DV.fill,f).call(DV.stroke,t.bordercolor).style("stroke-width",l);var yr=vt?Math.max(ot-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?ge:ke+d)+yr).attr("y",(n?ke+p-N:ge)+(At?at:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+at:2*d+yr),2)).call(DV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ut=n?ze*tt:0,Re=n?0:(1-Le)*tt-Je;if(Ut=C?T.l-Ut:-Ut,Re=v?T.t-Re:-Re,e.attr("transform",Hm(Ut,Re)),!n&&(l||IV(f).getAlpha()&&!IV.equals(E.paper_bgcolor,f))){var be=gt.selectAll("text"),Oe=be[0].length,Ie=e.select("."+Yc.cbbg).node(),Fe=Gm.bBox(Ie),ft=Gm.getTranslate(e),ye=2;be.each(function(Rr,pi){var Di=0,ni=Oe-1;if(pi===Di||pi===ni){var $i=Gm.bBox(this),Qi=Gm.getTranslate(this),si;if(pi===ni){var Ti=$i.right+Qi.x,Ni=Fe.right+ft.x+ke-l-ye+_;si=Ni-Ti,si>0&&(si=0)}else if(pi===Di){var Rt=$i.left+Qi.x,yt=Fe.left+ft.x+ke+l+ye;si=yt-Rt,si<0&&(si=0)}si&&(Oe<3?this.setAttribute("transform","translate("+si+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},pe=Yye[c],dt=Kye[c],Pt=Yye[h],zt=Kye[h],rr=tt-j;n?(a==="pixels"?(fe.y=b,fe.t=N*Pt,fe.b=N*zt):(fe.t=fe.b=0,fe.yt=b+i*Pt,fe.yb=b-i*zt),s==="pixels"?(fe.x=_,fe.l=tt*pe,fe.r=tt*dt):(fe.l=rr*pe,fe.r=rr*dt,fe.xl=_-o*pe,fe.xr=_+o*dt)):(a==="pixels"?(fe.x=_,fe.l=N*pe,fe.r=N*dt):(fe.l=fe.r=0,fe.xl=_+i*pe,fe.xr=_-i*dt),s==="pixels"?(fe.y=1-b,fe.t=tt*Pt,fe.b=tt*zt):(fe.t=rr*Pt,fe.b=rr*zt,fe.yt=b-o*Pt,fe.yb=b+o*zt));var Gr=t.y<.5?"b":"t",Br=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Er={r:E.width-cr-Ut,l:cr+fe.r,b:E.height-_r-Re,t:_r+fe.b};C&&v?VI.autoMargin(r,t._id,fe):C?r._fullLayout._reservedMargin[t._id][Gr]=Er[Gr]:v||n?r._fullLayout._reservedMargin[t._id][Br]=Er[Br]:r._fullLayout._reservedMargin[t._id][Gr]=Er[Gr]}return U0.syncOrAsync([VI.previousPromises,wt,Bt,Mt,VI.previousPromises,Zt],r)}function R1t(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;UI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),RV(e)},moveFn:function(l,f){e.attr("transform",o+Hm(l,f)),s=UI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=UI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=UI.getCursor(s,u,t.xanchor,t.yanchor);RV(e,c)},doneFn:function(){if(RV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Xye.call("_guiRestyle",r,l,t._traceIndex):Xye.call("_guiRelayout",r,l)}}})}function D1t(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";ege.exports={moduleType:"component",name:"colorbar",attributes:uP(),supplyDefaults:Wq(),draw:Qye().draw,hasColorbar:Oq()}});var ige=Te((yfr,rge)=>{"use strict";rge.exports={moduleType:"component",name:"legend",layoutAttributes:qN(),supplyLayoutDefaults:UN(),draw:e7(),style:KN()}});var age=Te((gfr,nge)=>{"use strict";nge.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 sge=Te((_fr,oge)=>{"use strict";oge.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var OV=Te((xfr,cge)=>{"use strict";var B1t=$l(),fge=ei(),BV=fge.extendFlat,lge=fge.extendDeep;function uge(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 O1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}cge.exports=function(t,r){var n,i=t.data,a=t.layout,o=lge([],i),s=lge({},a,uge(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 q1t=Tb().EventEmitter,N1t=$l(),U1t=ei(),hge=Bg(),V1t=OV(),G1t=Yz(),H1t=Kz();function W1t(e,t){var r=new q1t,n=V1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=hge.getDelay(i._fullLayout);setTimeout(function(){var u=G1t(i),l=document.createElement("canvas");l.id=U1t.randstr(),r=H1t({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=hge.getRedrawFunc(i);return N1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}dge.exports=W1t});var yge=Te((wfr,mge)=>{"use strict";var vge=Bg(),j1t={getDelay:vge.getDelay,getRedrawFunc:vge.getRedrawFunc,clone:OV(),toSVG:Yz(),svgToImg:Kz(),toImage:pge(),downloadImage:yU()};mge.exports=j1t});var _ge=Te(Vg=>{"use strict";Vg.version=mL().version;Iee();bne();var X1t=$l(),AE=Vg.register=X1t.register,NV=qde(),gge=Object.keys(NV);for(GI=0;GI{"use strict";xge.exports=_ge()});var Fy=Te((Sfr,Mge)=>{"use strict";var lh=Zc(),wge=jc().axisHoverFormat,{hovertemplateAttrs:Z1t,texttemplateAttrs:Y1t,templatefallbackAttrs:Age}=Ff(),Sge=nc(),K1t=gc(),Tge=T_(),J1t=Id().pattern,f2=Su().extendFlat,UV=K1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),$1t=lh.marker,Q1t=$1t.line,e_t=f2({},Q1t.width,{dflt:0}),t_t=f2({width:e_t,editType:"calc"},Sge("marker.line")),r_t=f2({line:t_t,editType:"calc"},Sge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:J1t,cornerradius:{valType:"any",editType:"calc"}});Mge.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:wge("x"),yhoverformat:wge("y"),text:lh.text,texttemplate:Y1t({editType:"plot"},{keys:Tge.eventDataKeys}),texttemplatefallback:Age({editType:"plot"}),hovertext:lh.hovertext,hovertemplate:Z1t({},{keys:Tge.eventDataKeys}),hovertemplatefallback:Age(),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:f2({},UV,{}),insidetextfont:f2({},UV,{}),outsidetextfont:f2({},UV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:f2({},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:r_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 WI=Te((Mfr,Ege)=>{"use strict";Ege.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 jI=Te((Efr,Lge)=>{"use strict";var i_t=jl(),kge=yp().hasColorscale,Cge=nd(),n_t=ei().coercePattern;Lge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=kge(t,"marker");s&&Cge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",i_t.defaultLine),kge(t,"marker.line")&&Cge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n_t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=Te((kfr,Fge)=>{"use strict";var Pge=ku(),kA=ei(),zge=jl(),a_t=$l(),o_t=oA(),s_t=Rm(),l_t=jI(),u_t=e2(),Ige=Fy(),XI=kA.coerceFont;function f_t(e,t,r,n){function i(l,f){return kA.coerce(e,t,Ige,l,f)}var a=o_t(e,t,n,i);if(!a){t.visible=!1;return}s_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");Dge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l_t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=a_t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||zge.defaultLine,{axis:"y"}),u(e,t,s||zge.defaultLine,{axis:"x",inherit:"y"}),kA.coerceSelectionMarkerOpacity(t,i)}function c_t(e,t){var r,n;function i(s,u){return kA.coerce(n._input,n,Ige,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Pge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Dge(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",_=d||i==="outside";if(p||_){var b=XI(n,"textfont",r.font),v=kA.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete v.color,XI(n,"insidetextfont",v),h){var T=kA.extendFlat({},b);E&&delete T.color,XI(n,"pathbar.textfont",T)}_&&XI(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")}Fge.exports={supplyDefaults:f_t,crossTraceDefaults:c_t,handleText:Dge,validateCornerradius:Rge}});var VV=Te((Cfr,Bge)=>{"use strict";var h_t=$l(),d_t=wu(),p_t=ei(),v_t=WI(),m_t=i0().validateCornerradius;Bge.exports=function(e,t,r){function n(_,b){return p_t.coerce(e,t,v_t,_,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=d_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=m_t(p)}});var TE=Te((Lfr,Oge)=>{"use strict";var CA=ei();Oge.exports=function(t,r){for(var n=0;n{"use strict";var qge=wu(),Nge=Fm(),Uge=yp().hasColorscale,Vge=gp(),y_t=TE(),g_t=B0();Gge.exports=function(t,r){var n=qge.getFromId(t,r.xaxis||"x"),i=qge.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=Nge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Nge(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=Jl(),x_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=__t.select(this).select("text");x_t.setTransormAndDisplay(l,u)}})}}function w_t(e,t,r){if(r.uniformtext.mode){var n=Wge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var T_t=ku(),S_t=hd(),Xge=ei().isArrayOrTypedArray;c2.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};c2.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};c2.coerceColor=function(e,t,r){return S_t(t).isValid()?t:r!==void 0?r:e.dflt};c2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};c2.getValue=function(e,t){var r;return Xge(e)?t{"use strict";var SE=Jl(),M_t=jl(),ME=Mu(),Zge=ei(),Yge=$l(),Kge=Ap().resizeText,GV=Fy(),E_t=GV.textfont,k_t=GV.insidetextfont,C_t=GV.outsidetextfont,tp=ZI();function L_t(e){var t=SE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Kge(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)&&SE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=SE.select(this),o=i[0].trace;Jge(a,o,e)}),Yge.getComponentMethod("errorbars","style")(t)}function Jge(e,t,r){ME.pointStyle(e.selectAll("path"),t,r),$ge(e,t,r)}function $ge(e,t,r){e.selectAll("text").each(function(n){var i=SE.select(this),a=Zge.ensureUniformFontSize(r,Qge(i,n,t,r));ME.font(i,a)})}function P_t(e,t,r){var n=t[0].trace;n.selectedpoints?z_t(r,n,e):(Jge(r,n,e),Yge.getComponentMethod("errorbars","style")(r))}function z_t(e,t,r){ME.selectedPointStyle(e.selectAll("path"),t),I_t(e.selectAll("text"),t,r)}function I_t(e,t,r){e.each(function(n){var i=SE.select(this),a;if(n.selected){a=Zge.ensureUniformFontSize(r,Qge(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),ME.font(i,a)}else ME.selectedTextStyle(i,t)})}function Qge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=i1e(t,r);a=t1e(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=r1e(r,t.i,i));return a}function e1e(e,t,r){return HV(E_t,e.textfont,t,r)}function t1e(e,t,r,n){var i=e1e(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:M_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}),HV(k_t,e.insidetextfont,t,i)}function r1e(e,t,r){var n=e1e(e,t,r);return HV(C_t,e.outsidetextfont,t,n)}function HV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function i1e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}n1e.exports={style:L_t,styleTextPoints:$ge,styleOnSelect:P_t,getInsideTextFont:t1e,getOutsideTextFont:r1e,getBarColor:i1e,resizeText:Kge}});var d2=Te((Dfr,h1e)=>{"use strict";var YI=Jl(),KI=ku(),Fd=ei(),R_t=Wf(),D_t=jl(),z_=Mu(),F_t=$l(),JI=wu().tickText,a1e=Ap(),B_t=a1e.recordMinTextSize,O_t=a1e.clearMinTextSize,WV=V0(),LA=ZI(),q_t=T_(),o1e=Fy(),N_t=o1e.text,U_t=o1e.textposition,V_t=iv().appendArrayPointValue,Gp=q_t.TEXTPAD;function G_t(e){return e.id}function H_t(e){if(e.ids)return G_t}function jV(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},O_t("bar",u));var f=Fd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=YI.select(this),d=c[0].trace,p=c[0].t,_=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",C=d.type==="bar",E=C||b,T=0;_&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=l1e(i),k=Fd.ensureSingle(h,"g","points"),M=H_t(d),m=k.selectAll("g.point").data(Fd.identity,M);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,F){var B=YI.select(this),U=W_t(A,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&&LA.getLineWidth(d,A)&&(H=!1),H||(H=!KI(G)||!KI(j)||!KI(W)||!KI(N)),A.isBlank=H,H&&(L?j=G:N=W),T&&!H&&(L?(G-=By(G,j)*T,j+=By(G,j)*T):(W-=By(W,N)*T,N+=By(W,N)*T));var re,ae;if(d.type==="waterfall"){if(!H){var ge=d[A.dir].marker;re=ge.line.width,ae=ge.color}}else re=LA.getLineWidth(d,A),ae=A.mc||d.marker.color;function ze(Ae){var ot=YI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?YI.round(Math.round(Ae)-ot,2):Ae}function Le(Ae,ot,At){return At&&Ae===ot?Ae:Math.abs(Ae-ot)>=2?ze(Ae):Ae>ot?Math.ceil(Ae):Math.floor(Ae)}var de=D_t.opacity(ae),te=de<1||re>.01?ze:Le;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),W=te(W,N,!L),N=te(N,W,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Se(Ae,ot){if(!Ae)return 0;var At=Math.abs(L?N-W:j-G),vt=Math.abs(L?j-G:N-W),Je=te(Math.abs(ke(Ee,!0)-ke(0,!0))),He=A.hasB?Math.min(At/2,vt/2):Math.min(At/2,Je),nt;if(ot==="%"){var tt=Math.min(50,Ae);nt=At*(tt/100)}else nt=Ae;return te(Math.max(Math.min(nt,He),0))}var Ge=C||v?Se(p.cornerradiusvalue,p.cornerradiusform):0,De,xe,Ne="M"+G+","+W+"V"+N+"H"+j+"V"+W+"Z",ce=0;if(Ge&&A.s){var je=jV(A.s0)===0||jV(A.s)===jV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(je,!0))),ce0?Math.sqrt(ce*(2*Ge-ce)):0,Ct=Qe>0?Math.max:Math.min;De="M"+G+","+W+"V"+(N-at*gt)+"H"+Ct(j-(Ge-ce)*Qe,G)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+j+","+(N-Ge*gt-Ke)+"V"+(W+Ge*gt+Ke)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+Ct(j-(Ge-ce)*Qe,G)+","+(W+at*gt)+"Z"}else if(A.hasB)De="M"+(G+Ge*Qe)+","+W+"A "+Ge+","+Ge+" 0 0 "+qt+" "+G+","+(W+Ge*gt)+"V"+(N-Ge*gt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(G+Ge*Qe)+","+N+"H"+(j-Ge*Qe)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+j+","+(N-Ge*gt)+"V"+(W+Ge*gt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(j-Ge*Qe)+","+W+"Z";else{xe=Math.abs(N-W)+ce;var wt=xe0?Math.sqrt(ce*(2*Ge-ce)):0,Bt=gt>0?Math.max:Math.min;De="M"+(G+wt*Qe)+","+W+"V"+Bt(N-(Ge-ce)*gt,W)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(G+Ge*Qe-Mt)+","+N+"H"+(j-Ge*Qe+Mt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(j-wt*Qe)+","+Bt(N-(Ge-ce)*gt,W)+"V"+W+"Z"}}else De=Ne}else De=Ne;var Zt=s1e(Fd.ensureSingle(B,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-W))||H&&e._context.staticPlot?"M0,0Z":De).call(z_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&x){var Et=z_.makePointStyleFns(d);z_.singlePointStyle(A,Zt,d,Et,e)}X_t(e,t,B,c,F,G,j,W,N,Ge,ce,i,a),t.layerClipId&&z_.hideOutsideRangePoint(A,B.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;z_.setClipUrl(h,P?null:t.layerClipId,e)});F_t.getComponentMethod("errorbars","plot")(e,f,t,i)}function X_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,_=e._fullLayout,b;function v(xe,Ne,ce){var je=Fd.ensureSingle(xe,"text").text(Ne).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(z_.font,ce).call(R_t.convertToTspans,e);return je}var C=n[0].trace,E=C.orientation==="h",T=K_t(_,n,i,d,p);b=J_t(C,i);var L=c.mode==="stack"||c.mode==="relative",x=n[i],k=!L||x._outmost,M=x.hasB,m=l&&l-f>Gp;if(!T||b==="none"||(x.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=_.font,A=WV.getBarColor(n[i],C),F=WV.getInsideTextFont(C,i,P,A),B=WV.getOutsideTextFont(C,i,P),U=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&ze>0,te;m?M?te=h2(N-2*l,H,ge,ze,E)||h2(N,H-2*l,ge,ze,E):E?te=h2(N-(l-f),H,ge,ze,E)||h2(N,H-2*(l-f),ge,ze,E):te=h2(N,H-(l-f),ge,ze,E)||h2(N-2*(l-f),H,ge,ze,E):te=h2(N,H,ge,ze,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Le=Fd.ensureUniformFontSize(e,b==="outside"?B:F),re=v(r,T,Le);var ke=re.attr("transform");if(re.attr("transform",""),ae=z_.bBox(re.node()),ge=ae.width,ze=ae.height,re.attr("transform",ke),ge<=0||ze<=0){re.remove();return}}var Ee=C.textangle,Se,Ge;b==="outside"?(Ge=C.constraintext==="both"||C.constraintext==="outside",Se=Y_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ge,angle:Ee})):(Ge=C.constraintext==="both"||C.constraintext==="inside",Se=c1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ge,angle:Ee,anchor:U,hasB:M,r:l,overhead:f})),Se.fontSize=Le.size,B_t(C.type==="histogram"?"bar":C.type,Se,_),x.transform=Se;var De=s1e(re,_,c,h);Fd.setTransormAndDisplay(De,Se)}function h2(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 u1e(e){return e==="auto"?0:e}function f1e(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 c1e(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,_=a.hasB,b=a.r,v=a.overhead,C=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Gp&&L>2*Gp?Gp:0;T-=2*x,L-=2*x;var k=u1e(u);u==="auto"&&!(C<=T&&E<=L)&&(C>T||E>L)&&(!(C>L||E>T)||CGp){var A=Z_t(e,t,r,n,M,b,v,o,_);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/M.x,L/M.y)),P=0;var F=i.left*p+i.right*d,B=(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?M.x:M.y)/2;b&&(f||_)&&(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:F,textY:B,targetX:U,targetY:G,anchorX:j,anchorY:W,scale:m,rotate:k}}function Z_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,_,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?(_=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*_*v))/(2*_)):u?(_=(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*_*v))/(2*_)):(_=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*_*v))/(2*_)),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 Y_t(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 _=u1e(u),b=f1e(i,_),v=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,k=0,M=o?By(t,e):By(r,n);return o?(T=t-M*d,x=M*v):(L=n+M*d,k=-M*v),{textX:C,textY:E,targetX:T,targetY:L,anchorX:x,anchorY:k,scale:p,rotate:_}}function K_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=$_t(e,t,r,n,i):a.textinfo?s=Q_t(t,r,n,i):s=LA.getValue(a.text,r),LA.coerceString(N_t,s)}function J_t(e,t){var r=LA.getValue(e.textposition,t);return LA.coerceEnumerated(U_t,r)}function $_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",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 _(x){return JI(h,h.c2l(x),!0).text}function b(x){return JI(p,p.c2l(x),!0).text}var v=t[r],C={};C.label=v.p,C.labelLabel=C[c+"Label"]=_(v.p);var E=Fd.castOption(a,v.i,"text");(E===0||E)&&(C.text=E),C.value=v.s,C.valueLabel=C[d+"Label"]=b(v.s);var T={};V_t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?C.value:C.label),(s||T.y===void 0)&&(T.y=f?C.label:C.value),(s||T.xLabel===void 0)&&(T.xLabel=f?C.valueLabel:C.labelLabel),(s||T.yLabel===void 0)&&(T.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=Fd.formatPercent(v.begR),C.percentPrevious=v.difR,C.percentPreviousLabel=Fd.formatPercent(v.difR),C.percentTotal=v.sumR,C.percenTotalLabel=Fd.formatPercent(v.sumR));var L=Fd.castOption(a,v.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString({data:[T,C,a._meta],fallback:a.texttemplatefallback,labels:C,locale:e._d3locale,template:o})}function Q_t(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 JI(x,L,!0).text}function l(L){var x=a?r:n;return JI(x,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(u(e[t].p)),_("text")&&(p=Fd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,C=v-b;_("initial")&&d.push(l(C)),_("delta")&&d.push(l(b)),_("final")&&d.push(l(v))}if(s){_("value")&&d.push(l(c.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var T=E>1;_("percent initial")&&(p=Fd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),_("percent previous")&&(p=Fd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),_("percent total")&&(p=Fd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}h1e.exports={plot:j_t,toMoveInsideBar:c1e}});var PA=Te((Ffr,m1e)=>{"use strict";var EE=Xc(),ext=$l(),d1e=jl(),txt=ei().fillText,rxt=ZI().getLineWidth,XV=wu().hoverLabelText,ixt=rf().BADNUM;function nxt(e,t,r,n,i){var a=p1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=v1e(s,u),ext.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function p1e(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,_,b,v,C;o.orientation==="h"?(h=r,d=t,p="y",_="x",b=G,v=F):(h=t,d=r,p="x",_="y",v=G,b=F);var E=o[p+"period"],T=u||E;function L(te){return k(te,-1)}function x(te){return k(te,1)}function k(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function M(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-M(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?x:E?function(te){return te.p+M(te)/2}:function(te){return Math.max(x(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),EE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/C)-1)}function F(te){return A(m(te),P(te),f)}function B(te){return A(L(te),x(te),c)}function U(te){var ke=te[_];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Se=U(te);return EE.inbox(Ee-ke,Se-ke,f+(Se-ke)/(Se-Ee)-1)}function j(te){var ke=d,Ee=te.b,Se=U(te);return EE.inbox(Ee-ke,Se-ke,c+(Se-ke)/(Se-Ee)-1)}var W=e[p+"a"],N=e[_+"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=EE.getDistanceFunction(n,b,v,H);if(EE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==ixt){T||(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,ge=a[ae],ze=o.base?ge.b+ge.s:ge.s;e[_+"0"]=e[_+"1"]=N.c2p(ge[_],!0),e[_+"LabelVal"]=ze;var Le=s.extents[s.extents.round(ge.p)];e[p+"0"]=W.c2p(u?m(ge):Le[0],!0),e[p+"1"]=W.c2p(u?P(ge):Le[1],!0);var de=ge.orig_p!==void 0;return e[p+"LabelVal"]=de?ge.orig_p:ge.p,e.labelLabel=XV(W,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=XV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=XV(N,ge.b,o[_+"hoverformat"]),e.spikeDistance=(j(ge)+B(ge))/2,e[p+"Spike"]=W.c2p(ge.p,!0),txt(ge,o,e),e.hovertemplate=o.hovertemplate,e}}function v1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=rxt(e,t);if(d1e.opacity(r))return r;if(d1e.opacity(n)&&i)return n}m1e.exports={hoverPoints:nxt,hoverOnBars:p1e,getTraceColor:v1e}});var g1e=Te((Bfr,y1e)=>{"use strict";y1e.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 zA=Te((Ofr,_1e)=>{"use strict";_1e.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";x1e.exports={attributes:Fy(),layoutAttributes:WI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:VV(),calc:Hge(),crossTraceCalc:t2().crossTraceCalc,colorbar:ep(),arraysToCalcdata:TE(),plot:d2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:PA().hoverPoints,eventData:g1e(),selectPoints:zA(),moduleType:"trace",name:"bar",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var A1e=Te((Nfr,w1e)=>{"use strict";w1e.exports=b1e()});var kE=Te((Ufr,E1e)=>{"use strict";var oxt=Pm(),G0=Zc(),T1e=Fy(),sxt=Oh(),S1e=jc().axisHoverFormat,{hovertemplateAttrs:lxt,templatefallbackAttrs:uxt}=Ff(),Gg=Su().extendFlat,IA=G0.marker,M1e=IA.line;E1e.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:S1e("x"),yhoverformat:S1e("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({},IA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gg({},IA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gg({},IA.angle,{arrayOk:!1,editType:"calc"}),size:Gg({},IA.size,{arrayOk:!1,editType:"calc"}),color:Gg({},IA.color,{arrayOk:!1,editType:"style"}),line:{color:Gg({},M1e.color,{arrayOk:!1,dflt:sxt.defaultLine,editType:"style"}),width:Gg({},M1e.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:oxt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:T1e.offsetgroup,alignmentgroup:T1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gg({},G0.text,{}),hovertext:Gg({},G0.hovertext,{}),hovertemplate:lxt({}),hovertemplatefallback:uxt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var CE=Te((Vfr,k1e)=>{"use strict";k1e.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 PE=Te((Gfr,z1e)=>{"use strict";var H0=ei(),fxt=$l(),cxt=jl(),hxt=Rm(),dxt=e2(),C1e=V3(),LE=kE();function pxt(e,t,r,n){function i(p,_){return H0.coerce(e,t,LE,p,_)}if(L1e(e,t,i,n),t.visible!==!1){hxt(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",cxt.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,LE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),P1e(e,t,i,{prefix:"box"}),i("zorder")}}function L1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return H0.validate(e[P],LE[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))}var h=i(o),d=i(s),p=h&&H0.minRowLength(o),_=d&&H0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?C="h":C="v",E=u;break;case"10":C="v",E=Math.min(u,_);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,_,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(_,p):E=Math.min(p)):d>0?(C="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var m=fxt.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function P1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,LE,"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 vxt(e,t){var r,n;function i(u){return H0.coerce(n._input,n,LE,u)}for(var a=0;a{"use strict";var mxt=$l(),yxt=ei(),gxt=CE();function I1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var YV=ku(),QI=wu(),xxt=Fm(),Eh=ei(),n0=rf().BADNUM,Hg=Eh._;G1e.exports=function(t,r){var n=t._fullLayout,i=QI.getFromId(t,r.xaxis||"x"),a=QI.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 _=bxt(r,d,h,n[s]),b=_[0],v=_[1],C=Eh.distinctVals(b,h),E=C.vals,T=C.minDiff/2,L,x,k,M,m,P,A=(r.boxpoints||r.points)==="all"?Eh.identity:function(qt){return qt.vL.uf};if(r._hasPreCompStats){var F=r[c],B=function(qt){return f.d2c((r[qt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var W=B("lowerfence");L.lf=W!==n0&&W<=L.q1?W:O1e(L,k,M);var N=B("upperfence");L.uf=N!==n0&&N>=L.q3?N:q1e(L,k,M);var H=B("mean");L.mean=H!==n0?H:M?Eh.mean(k,M):(L.q1+L.q3)/2;var re=B("sd");L.sd=H!==n0&&re>=0?re:M?Eh.stdev(k,M,L.mean):L.q3-L.q1,L.lo=N1e(L),L.uo=U1e(L);var ae=B("notchspan");ae=ae!==n0&&ae>0?ae:V1e(L,M),L.ln=L.med-ae,L.un=L.med+ae;var ge=L.lf,ze=L.uf;r.boxpoints&&k.length&&(ge=Math.min(ge,k[0]),ze=Math.max(ze,k[M-1])),r.notched&&(ge=Math.min(ge,L.ln),ze=Math.max(ze,L.un)),L.min=ge,L.max=ze}else{Eh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Le;L.med!==n0?Le=L.med:L.q1!==n0?L.q3!==n0?Le=(L.q1+L.q3)/2:Le=L.q1:L.q3!==n0?Le=L.q3:Le=0,L.med=Le,L.q1=L.q3=Le,L.lf=L.uf=Le,L.mean=L.sd=Le,L.ln=L.un=Le,L.min=L.max=Le}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(A),o.push(L)}}r._extremes[f._id]=QI.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=wxt(E,T),ke=E.length,Ee=Axt(ke);for(u=0;u=0&&Se0){if(L={},L.pos=L[d]=E[u],x=L.pts=Ee[u].sort(F1e),k=L[c]=x.map(B1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=Eh.mean(k,M),L.sd=Eh.stdev(k,M,L.mean)*r.sdmultiple,L.med=Eh.interp(k,.5),M%2&&(Ne||ce)){var je,Qe;Ne?(je=k.slice(0,M/2),Qe=k.slice(M/2+1)):ce&&(je=k.slice(0,M/2+1),Qe=k.slice(M/2)),L.q1=Eh.interp(je,.5),L.q3=Eh.interp(Qe,.5)}else L.q1=Eh.interp(k,.25),L.q3=Eh.interp(k,.75);L.lf=O1e(L,k,M),L.uf=q1e(L,k,M),L.lo=N1e(L),L.uo=U1e(L);var gt=V1e(L,M);L.ln=L.med-gt,L.un=L.med+gt,Ge=Math.min(Ge,L.ln),De=Math.max(De,L.un),L.pts2=x.filter(A),o.push(L)}r.notched&&Eh.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=QI.findExtremes(f,r.notched?de.concat([Ge,De]):de,{padded:!0})}return Txt(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,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 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=xxt(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||YV(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 H1e=wu(),Sxt=ei(),Mxt=Kb().getAxisGroup,W1e=["v","h"];function Ext(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=M*(x?1:.5),ae=re,H=ae=P):k==="negative"?(N=ae=P,H=M*(x?1:.5),ge=re):(N=H=M,ae=ge=re),Ee){var Se=T.pointpos,Ge=T.jitter,De=T.marker.size/2,xe=0;Se+Ge>=0&&(xe=re*(Se+Ge),xe>N?(ke=!0,de=De,ze=xe):xe>ae&&(de=De,ze=N)),xe<=N&&(ze=N);var Ne=0;Se-Ge<=0&&(Ne=-re*(Se-Ge),Ne>H?(ke=!0,te=De,Le=Ne):Ne>ge&&(te=De,Le=H)),Ne<=H&&(Le=H)}else ze=N,Le=H;var ce=new Array(f.length);for(l=0;l{"use strict";var RA=Jl(),p2=ei(),kxt=Mu(),Z1e=5,Cxt=.01;function Lxt(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;p2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=RA.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),Y1e(u,{pos:h,val:d},c,f,i),K1e(u,{x:a,y:o},c,f),J1e(u,{pos:h,val:d},c,f)})}function Y1e(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,_=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?p2.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 RA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,x=s.l2p(T+v)+c,k=u?(L+x)/2:s.l2p(T)+c,M=r.whiskerwidth,m=u?L*M+(1-M)*k:s.l2p(T-f)+c,P=u?x*M+(1-M)*k:s.l2p(T+f)+c,A=s.l2p(T-b*_)+c,F=s.l2p(T+v*_)+c,B=r.sizemode==="sd",U=o.c2p(B?E.mean-E.sd:E.q1,!0),G=B?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=p2.constrain(B?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||B,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?RA.select(this).attr("d","M"+j+","+A+"V"+F+"M"+U+","+L+"V"+x+(p?"H"+re+"L"+j+","+F+"L"+ae+","+x:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"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):"")):RA.select(this).attr("d","M"+A+","+j+"H"+F+"M"+L+","+U+"H"+x+(p?"V"+re+"L"+F+","+j+"L"+x+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+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 K1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;p2.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,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,v=_*Cxt,C=[],E=0,T;if(r.jitter){if(_===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(kxt.translatePoints,i,a)}function J1e(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?p2.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),_=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(_+b)/2:a.l2p(p)+u,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?RA.select(this).attr("d","M"+C+","+_+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+C+","+_+"L"+T+","+v+"Z":"")):RA.select(this).attr("d","M"+_+","+C+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+_+","+C+"L"+v+","+T+"Z":""))})}$1e.exports={plot:Lxt,plotBoxAndWhiskers:Y1e,plotPoints:K1e,plotBoxMean:J1e}});var rR=Te((Zfr,Q1e)=>{"use strict";var JV=Jl(),$V=jl(),QV=Mu();function Pxt(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 u(c,h,d,p){c.style("stroke-width",h+"px").call($V.stroke,d).call($V.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=JV.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($V.stroke,o.line.color);var f=a.selectAll("path.point");QV.pointStyle(f,o,e)}})}function zxt(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?QV.selectedPointStyle(i,n):QV.pointStyle(i,n,e)}Q1e.exports={style:Pxt,styleOnSelect:zxt}});var tG=Te((Yfr,i_e)=>{"use strict";var Ixt=wu(),eG=ei(),I_=Xc(),e_e=jl(),Rxt=eG.fillText;function Dxt(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(t_e(e,t,r,n))),o.indexOf("points")!==-1&&(u=r_e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function t_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,_,b,v,C,E,T,L=u.bdPos,x,k,M=u.wHover,m=function(De){return h.c2l(De.pos)+u.bPos-h.c2l(_)};l&&s.side!=="both"?(s.side==="positive"&&(C=function(De){var xe=m(De);return I_.inbox(xe,xe+M,E)},x=L,k=0),s.side==="negative"&&(C=function(De){var xe=m(De);return I_.inbox(xe-M,xe,E)},x=0,k=L)):(C=function(De){var xe=m(De);return I_.inbox(xe-M,xe+M,E)},x=k=L);var P;l?P=function(De){return I_.inbox(De.span[0]-p,De.span[1]-p,E)}:P=function(De){return I_.inbox(De.min-p,De.max-p,E)},s.orientation==="h"?(p=t,_=r,b=P,v=C,f="y",h=o,c="x",d=a):(p=r,_=t,b=C,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function F(De){return(b(De)+v(De))/2}var B=I_.getDistanceFunction(n,b,v,F);if(I_.getClosest(i,B,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;e_e.opacity(G)&&s.line.width?e.color=G:e_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=F(U)*T/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";n_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 rG=Te((Jfr,o_e)=>{"use strict";o_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";s_e.exports={attributes:kE(),layoutAttributes:CE(),supplyDefaults:PE().supplyDefaults,crossTraceDefaults:PE().crossTraceDefaults,supplyLayoutDefaults:$I().supplyLayoutDefaults,calc:KV(),crossTraceCalc:eR().crossTraceCalc,plot:tR().plot,style:rR().style,styleOnSelect:rR().styleOnSelect,hoverPoints:tG().hoverPoints,eventData:a_e(),selectPoints:rG(),moduleType:"trace",name:"box",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var f_e=Te((Qfr,u_e)=>{"use strict";u_e.exports=l_e()});var DA=Te((ecr,h_e)=>{"use strict";var Fxt=nc(),{extendFlat:Pv}=Su(),Bxt=Gf(),{axisHoverFormat:iG}=jc(),Oxt=gc(),{hovertemplateAttrs:qxt,templatefallbackAttrs:c_e,texttemplateAttrs:Nxt}=Ff(),a0=Zc();h_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:iG("x"),yhoverformat:iG("y"),zhoverformat:iG("z",1),hovertemplate:qxt(),hovertemplatefallback:c_e(),texttemplate:Nxt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:c_e({editType:"plot"}),textfont:Oxt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pv({},Bxt.showlegend,{dflt:!1}),zorder:a0.zorder},Fxt("",{cLetter:"z",autoColorDflt:!1}))});var nR=Te((tcr,p_e)=>{"use strict";var Uxt=ku(),iR=ei(),Vxt=$l();p_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(iR.isArray1D(s)){u=n(a),l=n(o);var f=iR.minRowLength(u),c=iR.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=d_e(a,n),l=d_e(o,n),!Gxt(s))return 0;n("transpose"),r._length=null}var h=Vxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function d_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 Gxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var v_e=ei();m_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=v_e.extendFlat({},r.font,{color:"auto",size:"auto"});v_e.coerceFont(t,"textfont",n)}});var nG=Te((icr,y_e)=>{"use strict";y_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var x_e=Te((ncr,__e)=>{"use strict";var g_e=ei(),Hxt=nR(),Wxt=zE(),jxt=Rm(),Xxt=nG(),Zxt=nd(),Yxt=DA();__e.exports=function(t,r,n,i){function a(s,u){return g_e.coerce(t,r,Yxt,s,u)}var o=Hxt(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"),Wxt(a,i),Xxt(t,r,a,i),a("hoverongaps"),a("connectgaps",g_e.isArray1D(r.z)&&r.zsmooth!==!1),Zxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var aG=Te((acr,b_e)=>{"use strict";var FA=ku();b_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return FA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return FA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(FA(i))if(i=Number(i),FA(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(FA(i))if(i=Number(i),FA(r[e])){if(r[e]{"use strict";w_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";A_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var BA=rf(),v2=BA.ONEAVGYEAR,T_e=BA.ONEAVGMONTH,oR=BA.ONEDAY,S_e=BA.ONEHOUR,M_e=BA.ONEMIN,E_e=BA.ONESEC,k_e=wu().tickIncrement;P_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(aR(l+s,l+u,i,a),aR(f+s,f+u,i,a)),h=Math.min(aR(l+o,l+s,i,a),aR(f+o,f+s,i,a)),d,p;if(c>h&&hoR){var _=d===v2?1:6,b=d===v2?"M12":"M1";return function(v,C){var E=i.c2d(v,v2,a),T=E.indexOf("-",_);T>0&&(E=E.slice(0,T));var L=i.d2c(E,0,a);if(LE_e?e>oR?e>v2*1.1?v2:e>T_e*1.1?T_e:oR:e>S_e?S_e:e>M_e?M_e:E_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Kxt(e,t,r,n,i,a){if(n&&e>oR){var o=L_e(t,i,a),s=L_e(r,i,a),u=e===v2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function L_e(e,t,r){var n=t.c2d(e,v2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var cG=Te((ucr,F_e)=>{"use strict";var uG=ku(),Hp=ei(),z_e=$l(),W0=wu(),{hasColorscale:I_e}=yp(),R_e=gp(),Jxt=TE(),D_e=aG(),$xt=oG(),Qxt=sG(),ebt=lG();function tbt(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=fG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",_=[],b=p?_:h,v=[],C=[],E=[],T=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,M,m,P;l.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var A=x==="max"||x==="min",F=A?null:0,B=D_e.count,U=$xt[L],G=!1,j=function(xe){return a.r2c(xe,0,u)},W;for(Hp.isArrayOrTypedArray(t[s])&&x!=="count"&&(W=t[s],G=x==="avg",B=D_e[x]),f=j(h.start),m=j(h.end)+(f-W0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Se;f--)if(n[f]){Ge=f;break}for(f=Se;f<=Ge;f++)if(uG(r[f])&&uG(n[f])){var De={p:r[f],s:n[f],b:0};l.enabled||(De.pts=E[f],ae?De.ph0=De.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,De.ph0=te(_[f]),De.ph1=te(_[f+1],!0))),Ee.push(De)}return Ee.length===1&&(Ee[0].width1=W0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),I_e(t,"marker")&&R_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),I_e(t,"marker.line")&&R_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),Jxt(Ee,t),Hp.isArrayOrTypedArray(t.selectedpoints)&&Hp.tagSelected(Ee,t,Le),Ee}function fG(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,_,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 uG(de)?Number(de):null};function T(de,te,ke){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=ke[de])):(_[de]=te[de]=ke[de],Hp.nestedProperty(c[0],a+"."+de).set(ke[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],x=!0,k=!1,M=!1;for(f=0;fr.r2l(W)&&(H=W0.tickIncrement(H,u.size,!0,d)),B.start=r.l2r(H),j||Hp.nestedProperty(t,a+".start").set(B.start)}var re=u.end,ae=r.r2l(F.end),ge=ae!==void 0;if((u.endFound||ge)&&ae!==r.r2l(re)){var ze=ge?ae:Hp.aggNums(Math.max,null,p);B.end=r.l2r(ze),ge||Hp.nestedProperty(t,a+".start").set(B.end)}var Le="autobin"+n;return t._input[Le]===!1&&(t._input[a]=Hp.extendFlat({},t[a]||{}),delete t._input[Le],delete t[Le]),[B,p]}function rbt(e,t,r,n,i){var a=e._fullLayout,o=ibt(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())}}F_e.exports={calc:tbt,calcAllAutoBins:fG}});var H_e=Te((fcr,G_e)=>{"use strict";var B_e=ei(),OA=wu(),O_e=aG(),abt=oG(),obt=sG(),sbt=lG(),q_e=cG().calcAllAutoBins;G_e.exports=function(t,r){var n=OA.getFromId(t,r.xaxis),i=OA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(He){return n.r2c(He,0,a)},u=function(He){return i.r2c(He,0,o)},l=function(He){return n.c2r(He,0,a)},f=function(He){return i.c2r(He,0,o)},c,h,d,p,_=q_e(t,r,n,"x"),b=_[0],v=_[1],C=q_e(t,r,i,"y"),E=C[0],T=C[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],k=[],M=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],F=[],B=m?A:b,U=P?F:E,G=0,j=[],W=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,ae=H==="max"||H==="min",ge=ae?null:0,ze=O_e.count,Le=abt[N],de=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&H!=="count"&&(de=H==="avg",ze=O_e[H]);var Se=b.size,Ge=s(b.start),De=s(b.end)+(Ge-OA.tickIncrement(Ge,Se,!1,a))/1e6;for(c=Ge;c=0&&d=0&&p{"use strict";var Oy=ei(),W_e=rf().BADNUM,j_e=Fm();X_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=j_e(t,r,i,u).vals,l=j_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&Oy.isArray1D(f),h=t.hovertext,d=h!==void 0&&Oy.isArray1D(h),p,_,b=Oy.distinctVals(u),v=b.vals,C=Oy.distinctVals(l),E=C.vals,T=[],L,x,k=E.length,M=v.length;for(p=0;p{"use strict";var lbt=ku(),ubt=ei(),lR=rf().BADNUM;Z_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(lbt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var fbt=ei(),Y_e=.01,cbt=[[-1,0],[1,0],[0,-1],[0,1]];function hbt(e){return .5-.25*Math.min(1,e*.5)}J_e.exports=function(t,r){var n=1,i;for(K_e(t,r),i=0;iY_e;i++)n=K_e(t,r,hbt(n));return n>Y_e&&fbt.log("interp2d didn't converge quickly",n),t};function K_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-_))))}return n}});var cR=Te((pcr,$_e)=>{"use strict";var dbt=ei().maxRowLength;$_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=dbt(t),l,f,c,h,d,p,_,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&&(_[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(v,C){return C[2]-v[2]})}});var hG=Te((vcr,txe)=>{"use strict";var Q_e=$l(),exe=ei().isArrayOrTypedArray;txe.exports=function(t,r,n,i,a,o){var s=[],u=Q_e.traceIs(t,"contour"),l=Q_e.traceIs(t,"histogram"),f,c,h,d=exe(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 rxe=$l(),dG=ei(),hR=wu(),ixe=Fm(),pbt=H_e(),vbt=gp(),mbt=sR(),ybt=uR(),gbt=fR(),_bt=cR(),dR=hG(),pG=rf().BADNUM;axe.exports=function(t,r){var n=hR.getFromId(t,r.xaxis||"x"),i=hR.getFromId(t,r.yaxis||"y"),a=rxe.traceIs(r,"contour"),o=rxe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,_,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,_=C.orig_y,h=C.y,d=C.y0,p=C.dy,b=C.z;else{var E=r.z;dG.isArray1D(E)?(mbt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],u=ixe(r,n,"x",c).vals,h=ixe(r,i,"y",_).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=ybt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=xbt(u,h,b),o||(u=nxe(u),h=nxe(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=_bt(b),gbt(b,r._emptypoints));function T(B){s=r._input.zsmooth=r.zsmooth=!1,dG.warn('cannot use zsmooth: "fast": '+B)}function L(B){if(B.length>1){var U=(B[B.length-1]-B[0])/(B.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"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=dG.maxRowLength(b),k=r.xtype==="scaled"?"":u,M=dR(r,k,l,f,x,n),m=r.ytype==="scaled"?"":h,P=dR(r,m,d,p,b.length,i);r._extremes[n._id]=hR.findExtremes(n,M),r._extremes[i._id]=hR.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&_&&(A.orig_y=_),k&&k.length===M.length-1&&(A.xCenter=k),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=C.xRanges,A.yRanges=C.yRanges,A.pts=C.pts),a||vbt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var F={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=dR(F,k,l,f,x,n),A.yfill=dR(F,m,d,p,b.length,i)}return[A]};function nxe(e){for(var t=[],r=e.length,n=0;n{"use strict";vR.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"]];vR.STYLE=vR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var mG=Te((gcr,sxe)=>{"use strict";var oxe=mR(),bbt=Mu(),vG=ei(),qA=null;function wbt(){if(qA!==null)return qA;qA=!1;var e=vG.isSafari()||vG.isMacWKWebView()||vG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(oxe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")qA=t.some(function(o){return r.apply(null,o)});else{var n=bbt.tester.append("image").attr("style",oxe.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;qA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return qA}sxe.exports=wbt});var yR=Te((_cr,mxe)=>{"use strict";var lxe=Jl(),Abt=hd(),Tbt=$l(),Sbt=Mu(),Mbt=wu(),j0=ei(),uxe=Wf(),Ebt=lI(),kbt=jl(),Cbt=_c().extractOpts,Lbt=_c().makeColorScaleFuncFromTrace,Pbt=jv(),zbt=Nh(),yG=zbt.LINE_SPACING,Ibt=mG(),Rbt=mR().STYLE,pxe="heatmap-label";function vxe(e){return e.selectAll("g."+pxe)}function fxe(e){vxe(e).remove()}mxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;j0.makeTraceGroups(n,r,"hm").each(function(o){var s=lxe.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,_=u.xCenter,b=u.yCenter,v=Tbt.traceIs(l,"contour"),C=v?"best":l.zsmooth,E=h.length,T=j0.maxRowLength(h),L=!1,x=!1,k,M,m,P,A,F,B,U;for(F=0;k===void 0&&F0;)M=i.c2p(d[F]),F--;for(M0;)A=a.c2p(p[F]),F--;A=i._length||M<=0||P>=a._length||A<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),fxe(s);return}var ae,ge;G==="fast"?(ae=T,ge=E):(ae=W,ge=N);var ze=document.createElement("canvas");ze.width=ae,ze.height=ge;var Le=ze.getContext("2d",{willReadFrequently:!0}),de=Lbt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(ki){return T-1-ki}:j0.identity,ke=x?function(ki){return E-1-ki}:j0.identity):(te=function(ki){return j0.constrain(Math.round(i.c2p(d[ki])-k),0,W)},ke=function(ki){return j0.constrain(Math.round(a.c2p(p[ki])-P),0,N)});var Ee=ke(0),Se=[Ee,Ee],Ge=L?0:1,De=x?0:1,xe=0,Ne=0,ce=0,je=0,Qe,gt,qt,at,Ke;function Ct(ki,Vi){if(ki!==void 0){var ti=de(ki);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),xe+=Vi,Ne+=ti[0]*Vi,ce+=ti[1]*Vi,je+=ti[2]*Vi,ti}return[0,0,0,0]}function wt(ki,Vi,ti,tn){var Yr=ki[ti.bin0];if(Yr===void 0)return Ct(void 0,1);var oi=ki[ti.bin1],Fi=Vi[ti.bin0],an=Vi[ti.bin1],nn=oi-Yr||0,Ri=Fi-Yr||0,Ii;return oi===void 0?an===void 0?Ii=0:Fi===void 0?Ii=2*(an-Yr):Ii=(2*an-Fi-Yr)*2/3:an===void 0?Fi===void 0?Ii=0:Ii=(2*Yr-oi-Fi)*2/3:Fi===void 0?Ii=(2*an-oi-Yr)*2/3:Ii=an+Yr-oi-Fi,Ct(Yr+ti.frac*nn+tn.frac*(Ri+ti.frac*Ii))}if(G!=="default"){var Mt=0,Bt;try{Bt=new Uint8Array(ae*ge*4)}catch(ki){Bt=new Array(ae*ge*4)}if(G==="smooth"){var Zt=_||d,Et=b||p,Ae=new Array(Zt.length),ot=new Array(Et.length),At=new Array(W),vt=_?hxe:cxe,Je=b?hxe:cxe,He,nt,tt;for(F=0;Frr||rr>a._length))for(B=pe;BBr||Br>i._length)){var Er=Ebt({x:Gr,y:zt},l,e._fullLayout);Er.x=Gr,Er.y=zt;var Rr=u.z[F][B];Rr===void 0?(Er.z="",Er.zLabel=""):(Er.z=Rr,Er.zLabel=Mbt.tickText(Ie,Rr,"hover").text);var pi=u.text&&u.text[F]&&u.text[F][B];(pi===void 0||pi===!1)&&(pi=""),Er.text=pi;var Di=j0.texttemplateString({data:[Er,l._meta],fallback:l.texttemplatefallback,labels:Er,locale:e._fullLayout._d3locale,template:be});if(Di){var ni=Di.split("
"),$i=ni.length,Qi=0;for(U=0;U<$i;U++)Qi=Math.max(Qi,ni[U].length);Pt.push({l:$i,c:Qi,t:Di,x:Br,y:rr,z:Rr})}}}}var si=l.textfont,Ti=si.size,Ni=e._fullLayout.font.size;if(!Ti||Ti==="auto"){var Rt=1/0,yt=1/0,Gt=0,Wt=0;for(U=0;U{"use strict";yxe.exports={min:"zmin",max:"zmax"}});var gR=Te((bcr,gxe)=>{"use strict";var Dbt=Jl();gxe.exports=function(t){Dbt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var xR=Te((wcr,xxe)=>{"use strict";var _xe=Xc(),IE=ei(),_R=IE.isArrayOrTypedArray,Fbt=wu(),Bbt=_c().extractOpts;xxe.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,_=s.yCenter,b=s.zmask,v=u.zhoverformat,C=c,E=h,T,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){IE.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(_xe.inbox(r-c[0],r-c[c.length-1],0)>0||_xe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*c[0]-c[1]],M=1;M{"use strict";bxe.exports={attributes:DA(),supplyDefaults:x_e(),calc:pR(),plot:yR(),colorbar:R_(),style:gR(),hoverPoints:xR(),moduleType:"trace",name:"heatmap",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var Txe=Te((Tcr,Axe)=>{"use strict";Axe.exports=wxe()});var gG=Te((Scr,Sxe)=>{"use strict";Sxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var Exe=Te((Mcr,Mxe)=>{"use strict";Mxe.exports={eventDataKeys:["binNumber"]}});var bR=Te((Ecr,Pxe)=>{"use strict";var zv=Fy(),kxe=jc().axisHoverFormat,{hovertemplateAttrs:Obt,texttemplateAttrs:qbt,templatefallbackAttrs:Cxe}=Ff(),_G=gc(),Lxe=gG(),Nbt=Exe(),xG=Su().extendFlat;Pxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:kxe("x"),yhoverformat:kxe("y"),text:xG({},zv.text,{}),hovertext:xG({},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:Lxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:Lxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Obt({},{keys:Nbt.eventDataKeys}),hovertemplatefallback:Cxe(),texttemplate:qbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:Cxe({editType:"plot"}),textposition:xG({},zv.textposition,{arrayOk:!1}),textfont:_G({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:_G({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:_G({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 Dxe=Te((kcr,Rxe)=>{"use strict";var zxe=$l(),RE=ei(),Ixe=jl(),Ubt=i0().handleText,Vbt=jI(),Gbt=bR();Rxe.exports=function(t,r,n,i){function a(C,E){return RE.coerce(t,r,Gbt,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");Ubt(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=zxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+c),Vbt(t,r,a,n,i),RE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=zxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||Ixe.defaultLine,{axis:"y"}),v(t,r,b||Ixe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var AR=Te((Ccr,Oxe)=>{"use strict";var DE=ei(),Hbt=Wc(),wR=$l().traceIs,Wbt=e2(),jbt=i0().validateCornerradius,Fxe=DE.nestedProperty,bG=Kb().getAxisGroup,Bxe=[{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"}],Xbt=["x","y"];Oxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return DE.coerce(s._input,s,s._module.attributes,G,j)}function _(G){return G.orientation==="v"?"x":"y"}function b(G,j){var W=Hbt.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],ge=!0;ae&&(H===ae.axType&&re===ae.calendar?(ge=!1,ae.traces.push(G),ae.dirs.push(W)):(j=N,H!==ae.axType&&DE.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&&DE.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(" ")))),ge&&(n[j]={traces:[G],dirs:[W],axType:H,calendar:G[W+"calendar"]||""}),G["_"+W+"bingroup"]=j}for(c=0;c{"use strict";var Zbt=PA().hoverPoints,Ybt=wu().hoverLabelText;qxe.exports=function(t,r,n,i,a){var o=Zbt(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"]=Ybt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var wG=Te((Pcr,Uxe)=>{"use strict";Uxe.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";Vxe.exports={attributes:bR(),layoutAttributes:WI(),supplyDefaults:Dxe(),crossTraceDefaults:AR(),supplyLayoutDefaults:VV(),calc:cG().calc,crossTraceCalc:t2().crossTraceCalc,plot:d2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:ep(),hoverPoints:Nxe(),selectPoints:zA(),eventData:wG(),moduleType:"trace",name:"histogram",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Wxe=Te((Icr,Hxe)=>{"use strict";Hxe.exports=Gxe()});var SR=Te((Rcr,Zxe)=>{"use strict";var Wm=bR(),jxe=gG(),TR=DA(),Kbt=Gf(),AG=jc().axisHoverFormat,{hovertemplateAttrs:Jbt,texttemplateAttrs:$bt,templatefallbackAttrs:Xxe}=Ff(),Qbt=nc(),FE=Su().extendFlat;Zxe.exports=FE({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:jxe("x"),nbinsy:Wm.nbinsy,ybins:jxe("y"),autobinx:Wm.autobinx,autobiny:Wm.autobiny,bingroup:FE({},Wm.bingroup,{}),xbingroup:FE({},Wm.bingroup,{}),ybingroup:FE({},Wm.bingroup,{}),xgap:TR.xgap,ygap:TR.ygap,zsmooth:TR.zsmooth,xhoverformat:AG("x"),yhoverformat:AG("y"),zhoverformat:AG("z",1),hovertemplate:Jbt({},{keys:["z"]}),hovertemplatefallback:Xxe(),texttemplate:$bt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Xxe({editType:"plot"}),textfont:TR.textfont,showlegend:FE({},Kbt.showlegend,{dflt:!1})},Qbt("",{cLetter:"z",autoColorDflt:!1}))});var TG=Te((Dcr,Kxe)=>{"use strict";var e2t=$l(),Yxe=ei();Kxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Yxe.minRowLength(a),u=Yxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=e2t.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 $xe=Te((Fcr,Jxe)=>{"use strict";var t2t=ei(),r2t=TG(),i2t=nG(),n2t=nd(),a2t=zE(),o2t=SR();Jxe.exports=function(t,r,n,i){function a(o,s){return t2t.coerce(t,r,o2t,o,s)}r2t(t,r,a,i),r.visible!==!1&&(i2t(t,r,a,i),n2t(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),a2t(a,i),a("xhoverformat"),a("yhoverformat"))}});var tbe=Te((Bcr,ebe)=>{"use strict";var s2t=xR(),Qxe=wu().hoverLabelText;ebe.exports=function(t,r,n,i,a){var o=s2t(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=Qxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Qxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var ibe=Te((Ocr,rbe)=>{"use strict";rbe.exports={attributes:SR(),supplyDefaults:$xe(),crossTraceDefaults:AR(),calc:pR(),plot:yR(),layerName:"heatmaplayer",colorbar:R_(),style:gR(),hoverPoints:tbe(),eventData:wG(),moduleType:"trace",name:"histogram2d",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var abe=Te((qcr,nbe)=>{"use strict";nbe.exports=ibe()});var MR=Te((Ncr,obe)=>{"use strict";obe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var BE=Te((Ucr,fbe)=>{"use strict";var kh=DA(),ER=Zc(),lbe=jc(),SG=lbe.axisHoverFormat,l2t=lbe.descriptionOnlyNumbers,u2t=nc(),f2t=Id().dash,c2t=gc(),NA=Su().extendFlat,ube=MR(),h2t=ube.COMPARISON_OPS2,d2t=ube.INTERVAL_OPS,sbe=ER.line;fbe.exports=NA({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:ER.xperiod0,yperiod0:ER.yperiod0,xperiodalignment:kh.xperiodalignment,yperiodalignment:kh.yperiodalignment,text:kh.text,hovertext:kh.hovertext,transpose:kh.transpose,xtype:kh.xtype,ytype:kh.ytype,xhoverformat:SG("x"),yhoverformat:SG("y"),zhoverformat:SG("z",1),hovertemplate:kh.hovertemplate,hovertemplatefallback:kh.hovertemplatefallback,texttemplate:NA({},kh.texttemplate,{}),texttemplatefallback:kh.texttemplatefallback,textfont:NA({},kh.textfont,{}),hoverongaps:kh.hoverongaps,connectgaps:NA({},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:c2t({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:l2t("contour label")},operation:{valType:"enumerated",values:[].concat(h2t).concat(d2t),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:NA({},sbe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:f2t,smoothing:NA({},sbe.smoothing,{}),editType:"plot"},zorder:ER.zorder},u2t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var EG=Te((Vcr,hbe)=>{"use strict";var Tp=SR(),qy=BE(),p2t=nc(),MG=jc().axisHoverFormat,cbe=Su().extendFlat;hbe.exports=cbe({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:qy.autocontour,ncontours:qy.ncontours,contours:qy.contours,line:{color:qy.line.color,width:cbe({},qy.line.width,{dflt:.5}),dash:qy.line.dash,smoothing:qy.line.smoothing,editType:"plot"},xhoverformat:MG("x"),yhoverformat:MG("y"),zhoverformat:MG("z",1),hovertemplate:Tp.hovertemplate,hovertemplatefallback:Tp.hovertemplatefallback,texttemplate:qy.texttemplate,texttemplatefallback:qy.texttemplatefallback,textfont:qy.textfont},p2t("",{cLetter:"z",editTypeOverride:"calc"}))});var kR=Te((Gcr,dbe)=>{"use strict";dbe.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 kG=Te((Hcr,pbe)=>{"use strict";var v2t=ei();pbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;v2t.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var CR=Te((Wcr,vbe)=>{"use strict";var m2t=nd(),y2t=kG();vbe.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,m2t(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),y2t(n,i,u,a)}});var _be=Te((jcr,gbe)=>{"use strict";var mbe=ei(),g2t=TG(),_2t=kR(),x2t=CR(),b2t=zE(),ybe=EG();gbe.exports=function(t,r,n,i){function a(s,u){return mbe.coerce(t,r,ybe,s,u)}function o(s){return mbe.coerce2(t,r,ybe,s)}g2t(t,r,a,i),r.visible!==!1&&(_2t(t,r,a,o),x2t(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&b2t(a,i))}});var PG=Te((Xcr,bbe)=>{"use strict";var LG=wu(),CG=ei();bbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=CG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=CG.aggNums(Math.max,null,r));var o=xbe(i,a,t.ncontours);n.size=o.dtick,n.start=LG.tickFirst(o),o.range.reverse(),n.end=LG.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={}),CG.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=xbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function xbe(e,t,r){var n={type:"linear",range:[e,t]};return LG.autoTicks(n,(t-e)/(r||15)),n}});var OE=Te((Zcr,wbe)=>{"use strict";wbe.exports=function(t){return t.end+t.size/1e6}});var zG=Te((Ycr,Tbe)=>{"use strict";var Abe=_c(),w2t=pR(),A2t=PG(),T2t=OE();Tbe.exports=function(t,r){var n=w2t(t,r),i=n[0].z;A2t(r,i);var a=r.contours,o=Abe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=T2t(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 Abe.calc(t,r,{vals:s,cLetter:"z"}),n}});var qE=Te((Kcr,Sbe)=>{"use strict";Sbe.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 IG=Te((Jcr,Mbe)=>{"use strict";var LR=qE();Mbe.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 RG=Te(($cr,Cbe)=>{"use strict";var PR=ei(),UA=qE();Cbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=UA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=UA.SADDLEREMAINDER[o]):delete e.crossings[a],s=UA.NEWDELTA[o],!s){PR.log("Found bad marching index:",o,t,e.level);break}u.push(kbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),NE(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),_=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&p)break;o=e.crossings[a]}d===1e4&&PR.log("Infinite loop in contour?");var b=NE(u[0],u[u.length-1],n,i),v=0,C=.2*e.smoothing,E=[],T=0,L,x,k,M,m,P,A,F,B,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[x]F&&B--,e.edgepaths[B]=G.concat(u,U));break}H||(e.edgepaths[F]=u.concat(U))}for(F=0;F20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:UA.BOTTOMSTART.indexOf(e)!==-1?i=1:UA.LEFTSTART.indexOf(e)!==-1?n=1:UA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function kbe(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 Ibe=Te((Qcr,zbe)=>{"use strict";var DG=MR(),k2t=ku();zbe.exports={"[]":Lbe("[]"),"][":Lbe("]["),">":FG(">"),"<":FG("<"),"=":FG("=")};function Pbe(e,t){var r=Array.isArray(t),n;function i(a){return k2t(a)?+a:null}return DG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):DG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:DG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function Lbe(e){return function(t){t=Pbe(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 FG(e){return function(t){return t=Pbe(e,t),{start:t,end:1/0,size:1/0}}}});var BG=Te((ehr,Dbe)=>{"use strict";var Rbe=ei(),C2t=Ibe(),L2t=OE();Dbe.exports=function(t,r,n){for(var i=t.type==="constraint"?C2t[t._operation](t.value):t,a=i.size,o=[],s=L2t(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){Rbe.warn("Too many contours, clipping at 1000",t);break}return o}});var OG=Te((thr,Bbe)=>{"use strict";var VA=ei();Bbe.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&&VA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Obe.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 zR=Te(Wp=>{"use strict";var VE=Jl(),Bd=ei(),Wg=Mu(),P2t=_c(),Ube=Wf(),qbe=wu(),Nbe=xy(),z2t=yR(),Vbe=IG(),Gbe=RG(),I2t=BG(),R2t=OG(),Hbe=qG(),UE=qE(),Ny=UE.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=VE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=I2t(d,r,l),_=Bd.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),z2t(t,r,b,_),Vbe(p),Gbe(p);var v=a.c2p(c[0],!0),C=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[C,T],[C,E],[v,E]],x=p;d.type==="constraint"&&(x=R2t(p,d._operation)),D2t(u,L,d),F2t(u,x,L,d),B2t(u,p,t,l,d),q2t(u,r,t,l,L)})};function D2t(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 F2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Hbe(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:"")+Wbe(u,r);l?VE.select(this).attr("d",l).style("stroke","none"):VE.select(this).remove()})}function Wbe(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 _(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)&&!_(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:_(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;nNy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Ny.MAXCOST)return f};function O2t(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=Ny.EDGECOST*(1/(c-1)+1/(h-1));d+=Ny.ANGLECOST*u*u;for(var p=o-l,_=s-f,b=o+l,v=s+f,C=0;C{"use strict";var U2t=Jl(),NG=_c(),V2t=OE();jbe.exports=function(t){var r=t.contours,n=r.start,i=V2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=NG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?NG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,_=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;p_&&(c.unshift(_),h.unshift(h[0])),c[c.length-1]{"use strict";var IR=Jl(),Xbe=Mu(),G2t=gR(),H2t=UG();Zbe.exports=function(t){var r=IR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=IR.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?H2t(a):null;i.selectAll("g.contourlevel").each(function(b){IR.select(this).selectAll("path").call(Xbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Xbe.font(IR.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 _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*u)}),_===void 0&&(_=l),i.selectAll("g.contourbg path").style("fill",d(_-.5*u))}}),G2t(t)}});var DR=Te((ohr,Kbe)=>{"use strict";var Ybe=_c(),W2t=UG(),j2t=OE();function X2t(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 u=Ybe.extractOpts(t);r._fillgradient=u.reversescale?Ybe.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}}Kbe.exports={min:"zmin",max:"zmax",calc:X2t}});var VG=Te((shr,Jbe)=>{"use strict";var FR=jl(),Z2t=xR();Jbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Z2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&FR.opacity(u.fillcolor)?s.color=FR.addOpacity(u.fillcolor,1):u.contours.showlines&&FR.opacity(u.line.color)&&(s.color=FR.addOpacity(u.line.color,1)))}),o}});var Qbe=Te((lhr,$be)=>{"use strict";$be.exports={attributes:EG(),supplyDefaults:_be(),crossTraceDefaults:AR(),calc:zG(),plot:zR().plot,layerName:"contourlayer",style:RR(),colorbar:DR(),hoverPoints:VG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var t2e=Te((uhr,e2e)=>{"use strict";e2e.exports=Qbe()});var GG=Te((fhr,s2e)=>{"use strict";var r2e=ku(),Y2t=kG(),a2e=jl(),i2e=a2e.addOpacity,K2t=a2e.opacity,o2e=MR(),n2e=ei().isArrayOrTypedArray,J2t=o2e.CONSTRAINT_REDUCTION,$2t=o2e.COMPARISON_OPS2;s2e.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=J2t[c],Q2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",i2e((t.line||{}).color||a,.5))),u){var h=f&&K2t(f)?i2e(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),Y2t(n,i,l,o)};function Q2t(e,t){var r;$2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),n2e(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])]:r2e(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),r2e(t.value)||(n2e(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var f2e=Te((chr,u2e)=>{"use strict";var HG=ei(),ewt=nR(),twt=Rm(),rwt=GG(),iwt=kR(),nwt=CR(),awt=zE(),l2e=BE();u2e.exports=function(t,r,n,i){function a(l,f){return HG.coerce(t,r,l2e,l,f)}function o(l){return HG.coerce2(t,r,l2e,l)}var s=ewt(t,r,a,i);if(!s){r.visible=!1;return}twt(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",HG.isArray1D(r.z)),u?rwt(t,r,a,i,n):(iwt(t,r,a,o),nwt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&awt(a,i),a("zorder")}});var h2e=Te((hhr,c2e)=>{"use strict";c2e.exports={attributes:BE(),supplyDefaults:f2e(),calc:zG(),plot:zR().plot,style:RR(),colorbar:DR(),hoverPoints:VG(),moduleType:"trace",name:"contour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var p2e=Te((dhr,d2e)=>{"use strict";d2e.exports=h2e()});var WG=Te((phr,g2e)=>{"use strict";var{hovertemplateAttrs:owt,texttemplateAttrs:swt,templatefallbackAttrs:v2e}=Ff(),lwt=Pm(),o0=Zc(),uwt=Gf(),m2e=nc(),fwt=Id().dash,D_=Su().extendFlat,X0=o0.marker,GE=o0.line,y2e=X0.line;g2e.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:D_({},o0.mode,{dflt:"markers"}),text:D_({},o0.text,{}),texttemplate:swt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:v2e({editType:"plot"}),hovertext:D_({},o0.hovertext,{}),line:{color:GE.color,width:GE.width,dash:fwt,backoff:GE.backoff,shape:D_({},GE.shape,{values:["linear","spline"]}),smoothing:GE.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:D_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:lwt(),marker:D_({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:D_({width:y2e.width,dash:y2e.dash,editType:"calc"},m2e("marker.line")),gradient:X0.gradient,editType:"calc"},m2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:D_({},uwt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:owt(),hovertemplatefallback:v2e()}});var w2e=Te((vhr,b2e)=>{"use strict";var _2e=ei(),cwt=Ly(),GA=lc(),hwt=$v(),dwt=R0(),x2e=sA(),pwt=D0(),vwt=Dm(),mwt=WG();b2e.exports=function(t,r,n,i){function a(h,d){return _2e.coerce(t,r,mwt,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 jG=wu();A2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=jG.tickText(a.aaxis,t.a,!0).text,i.bLabel=jG.tickText(a.baxis,t.b,!0).text,i.cLabel=jG.tickText(a.caxis,t.c,!0).text,i}});var k2e=Te((yhr,E2e)=>{"use strict";var XG=ku(),ywt=F0(),gwt=Iy(),_wt=B0(),xwt=O0().calcMarkerSize,S2e=["a","b","c"],M2e={a:["b","c"],b:["a","c"],c:["a","b"]};E2e.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=dA();C2e.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 wwt=yA();P2e.exports=function(t,r,n,i){var a=wwt(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 _=h._module.formatLabels(c,h,p);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=c.hi||h.hoverinfo,v=[];function C(T,L){v.push(T._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 R2e=Te((xhr,I2e)=>{"use strict";I2e.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 W2e=Te((bhr,H2e)=>{"use strict";var N2e=Jl(),Awt=hd(),ZG=$l(),jg=ei(),Uy=jg.strTranslate,BR=jg._,WA=jl(),OR=Mu(),HE=xy(),YG=Su().extendFlat,Twt=Cc(),F_=wu(),D2e=xp(),F2e=Xc(),U2e=Cm(),B2e=U2e.freeMode,Swt=U2e.rectMode,KG=Fb(),Mwt=oh().prepSelect,Ewt=oh().selectOnClick,kwt=oh().clearOutline,Cwt=oh().clearSelectionsCache,V2e=qh();function G2e(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}H2e.exports=G2e;var Vy=G2e.prototype;Vy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aHA*l?(v=l,b=v*HA):(b=u,v=b/HA),C=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=_,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"},HE(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"},HE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=YG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*HA],anchor:"free",position:0,_id:"y",_length:b});HE(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=YG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});HE(x,r.graphDiv._fullLayout),x.setScale();var k=r.caxis=YG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*HA],anchor:"free",position:0,_id:"y",_length:b});HE(k,r.graphDiv._fullLayout),k.setScale();var M="M"+p+","+(_+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Uy(p,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Uy(p-x._offset,_+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var F=Uy(p+b/2,_)+"rotate(30)"+Uy(0,-L._offset);r.layers.aaxis.attr("transform",F),r.layers.agrid.attr("transform",F);var B=Uy(p+b/2,_)+"rotate(-30)"+Uy(0,-k._offset);r.layers.caxis.attr("transform",B),r.layers.cgrid.attr("transform",B),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(_+v)+"l"+b/2+",-"+v:"M0,0").call(WA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(_+v)+"h"+b:"M0,0").call(WA.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(p+b/2)+","+_+"l"+b/2+","+v:"M0,0").call(WA.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),OR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Vy.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"]=KG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:BR(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"]=KG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:BR(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"]=KG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:BR(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"}})}};Vy.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=Lwt(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),_=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,C=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+_+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={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:E,transFn:h,crisp:!1}),F_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),F_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:F_.makeLabelFns(e,0,s)})};function Lwt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=V2e.MINZOOM/2+.87,Pwt="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",zwt="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",Iwt="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",Rwt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",O2e=!0;Vy.clearOutline=function(){Cwt(this.dragOptions),kwt(this.dragOptions.gd)};Vy.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(A,F,B){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;B2e(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(A,F,B)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(Swt(U)||B2e(U))&&Mwt(A,F,B,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,_;function b(A){var F={};return F[e.id+".aaxis.min"]=A.a,F[e.id+".baxis.min"]=A.b,F[e.id+".caxis.min"]=A.c,F}function v(A,F){var B=r._fullLayout.clickmode;q2e(r),A===2&&(r.emit("plotly_doubleclick",null),ZG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),B.indexOf("select")>-1&&A===1&&Ewt(F,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),B.indexOf("event")>-1&&F2e.click(r,F,e.id)}function C(A,F,B){var U=t.getBoundingClientRect();o=F-U.left,s=B-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=Awt(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",Uy(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Uy(e.x0,e.y0)).style({fill:WA.background,stroke:WA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,F){return 1-F/e.h}function T(A,F){return 1-(A+(e.h-F)/Math.sqrt(3))/e.w}function L(A,F){return(A-(e.h-F)/Math.sqrt(3))/e.w}function x(A,F){var B=o+A*i,U=s+F*a,G=Math.max(0,Math.min(1,E(o,s),E(B,U))),j=Math.max(0,Math.min(1,T(o,s),T(B,U))),W=Math.max(0,Math.min(1,L(o,s),L(B,U))),N=(G/2+W)*e.w,H=(1-G/2-j)*e.w,re=(N+H)/2,ae=H-N,ge=(1-G)*e.h,ze=ge-ae/HA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function k(){q2e(r),f!==u&&(ZG.call("_guiRelayout",r,b(f)),O2e&&r.data&&r._context.showTips&&(jg.notifier(BR(r,"Double-click to zoom back out"),"long"),O2e=!1))}function M(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,F){var B=A/e.xaxis._m,U=F/e.yaxis._m;f={a:u.a-U,b:u.b+(B+U)/2,c:u.c-(B-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]},F=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var W=Uy(e.x0+A,e.y0+F);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",W);var N=Uy(-A,-F);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(OR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){ZG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){F2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||D2e.unhover(r,A)},D2e.init(this.dragOptions)};function q2e(e){N2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var QG=Te((whr,j2e)=>{"use strict";var Dwt=Oh(),Fwt=zc().attributes,Kf=Dd(),Bwt=Sc().overrideAll,JG=Su().extendFlat,$G={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:JG({},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:JG({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:JG({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},qR=j2e.exports=Bwt({domain:Fwt({name:"ternary"}),bgcolor:{valType:"color",dflt:Dwt.background},sum:{valType:"number",dflt:1,min:0},aaxis:$G,baxis:$G,caxis:$G},"plot","from-root");qR.uirevision={valType:"any",editType:"none"};qR.aaxis.uirevision=qR.baxis.uirevision=qR.caxis.uirevision={valType:"any",editType:"none"}});var B_=Te((Ahr,X2e)=>{"use strict";var Owt=ei(),qwt=Lf(),Nwt=zc().defaults;X2e.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 Owt.coerce(h,d,o,C,E)}for(var _=0;_{"use strict";var Uwt=jl(),Vwt=Lf(),NR=ei(),Gwt=B_(),Hwt=s_(),Wwt=l_(),jwt=D3(),Xwt=Lb(),Zwt=uE(),Y2e=QG(),Z2e=["aaxis","baxis","caxis"];K2e.exports=function(t,r,n){Gwt(t,r,n,{type:"ternary",attributes:Y2e,handleDefaults:Ywt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function Ywt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=Uwt.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 Kwt(e,t,r,n){var i=Y2e[t._name];function a(d,p){return NR.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,NR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:NR.bigFont(r.font.size),color:s}}),a("min"),Xwt(e,t,a,"linear"),Wwt(e,t,a,"linear"),Hwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),jwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(NR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),Zwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var $2e=Te(Z0=>{"use strict";var Jwt=W2e(),$wt=Rd().getSubplotCalcData,Qwt=ei().counterRegex,jA="ternary";Z0.name=jA;var e3t=Z0.attr="subplot";Z0.idRoot=jA;Z0.idRegex=Z0.attrRegex=Qwt(jA);var t3t=Z0.attributes={};t3t[e3t]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=QG();Z0.supplyLayoutDefaults=J2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[jA],a=0;a{"use strict";Q2e.exports={attributes:WG(),supplyDefaults:w2e(),colorbar:ep(),formatLabels:T2e(),calc:k2e(),plot:L2e(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:z2e(),selectPoints:gA(),eventData:R2e(),moduleType:"trace",name:"scatterternary",basePlotModule:$2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var rwe=Te((Ehr,twe)=>{"use strict";twe.exports=ewe()});var eH=Te((khr,nwe)=>{"use strict";var Hh=kE(),XA=Su().extendFlat,iwe=jc().axisHoverFormat;nwe.exports={y:Hh.y,x:Hh.x,x0:Hh.x0,y0:Hh.y0,xhoverformat:iwe("x"),yhoverformat:iwe("y"),name:XA({},Hh.name,{}),orientation:XA({},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:XA({},Hh.boxpoints,{}),jitter:XA({},Hh.jitter,{}),pointpos:XA({},Hh.pointpos,{}),width:XA({},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 iH=Te((Chr,awe)=>{"use strict";var tH=CE(),rH=ei().extendFlat;awe.exports={violinmode:rH({},tH.boxmode,{}),violingap:rH({},tH.boxgap,{}),violingroupgap:rH({},tH.boxgroupgap,{})}});var fwe=Te((Lhr,uwe)=>{"use strict";var owe=ei(),r3t=jl(),swe=PE(),lwe=eH();uwe.exports=function(t,r,n,i){function a(L,x){return owe.coerce(t,r,lwe,L,x)}function o(L,x){return owe.coerce2(t,r,lwe,L,x)}if(swe.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",r3t.addOpacity(r.line.color,.5));swe.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),_=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||_||b));v||(r.box={visible:!1});var C=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(C||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var hwe=Te((Phr,cwe)=>{"use strict";var i3t=ei(),n3t=iH(),a3t=$I();cwe.exports=function(t,r,n){function i(a,o){return i3t.coerce(t,r,n3t,a,o)}a3t._supply(t,r,n,i,"violin")}});var UR=Te(m2=>{"use strict";var o3t=ei(),s3t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};m2.makeKDE=function(e,t,r){var n=r.length,i=s3t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var nH=ei(),aH=wu(),l3t=KV(),dwe=UR(),u3t=rf().BADNUM;pwe.exports=function(t,r){var n=l3t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=aH.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var d3t=eR().setPositionOffset,mwe=["v","h"];ywe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var oH=Jl(),sH=ei(),p3t=Mu(),lH=tR(),v3t=RU(),m3t=UR();_we.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=v3t(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return p3t.smoothopen(h[0],1)}sH.makeTraceGroups(i,n,"trace violins").each(function(f){var c=oH.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var _=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",x=c.selectAll("path.violin").data(sH.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=oH.select(this),j=U.density,W=j.length,N=C.c2l(U.pos+_,!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 ge,ze,Le,de,te,ke,Ee;if(T){for(ke=new Array(W),de=0;de{"use strict";var bwe=Jl(),ZA=jl(),y3t=sv().stylePoints;wwe.exports=function(t){var r=bwe.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=bwe.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(ZA.stroke,i.line.color).call(ZA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(ZA.stroke,s.color).call(ZA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(ZA.stroke,u.color),a.selectAll("path.meanline").style(f).call(ZA.stroke,u.color),y3t(a,i,t)})}});var Ewe=Te((Bhr,Mwe)=>{"use strict";var g3t=jl(),uH=ei(),_3t=wu(),Twe=tG(),Swe=UR();Mwe.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 _=Twe.hoverOnBoxes(t,r,n,i);if(c&&_.length>0){var b=t.xa,v=t.ya,C,E,T,L,x;u.orientation==="h"?(x=r,C="y",T=v,E="x",L=b):(x=n,C="x",T=b,E="y",L=v);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var M=uH.extendFlat({},t),m=L.c2p(x,!0),P=Swe.getKdeValue(k,u,x),A=Swe.getPositionOnKdePath(k,u,m),F=T._offset,B=T._length;M[C+"0"]=A[0],M[C+"1"]=A[1],M[E+"0"]=M[E+"1"]=m,M[E+"Label"]=E+": "+_3t.hoverLabelText(L,x,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G<_.length;G++)if(_[G].attr==="med"){U=G;break}M.spikeDistance=_[U].spikeDistance;var j=C+"Spike";M[j]=_[U][j],_[U].spikeDistance=void 0,_[U][j]=void 0,M.hovertemplate=!1,h.push(M),p={},p[C+"1"]=uH.constrain(F+A[0],F,F+B),p[C+"2"]=uH.constrain(F+A[1],F,F+B),p[E+"1"]=p[E+"2"]=L._offset+m}}f&&(h=h.concat(_))}l.indexOf("points")!==-1&&(d=Twe.hoverOnPoints(t,r,n));var W=o.selectAll(".violinline-"+u.uid).data(p?[0]:[]);return W.enter().append("line").classed("violinline-"+u.uid,!0).attr("stroke-width",1.5),W.exit().remove(),W.attr(p).call(g3t.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var Cwe=Te((Ohr,kwe)=>{"use strict";kwe.exports={attributes:eH(),layoutAttributes:iH(),supplyDefaults:fwe(),crossTraceDefaults:PE().crossTraceDefaults,supplyLayoutDefaults:hwe(),calc:vwe(),crossTraceCalc:gwe(),plot:xwe(),style:Awe(),styleOnSelect:sv().styleOnSelect,hoverPoints:Ewe(),selectPoints:rG(),moduleType:"trace",name:"violin",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Pwe=Te((qhr,Lwe)=>{"use strict";Lwe.exports=Cwe()});var Iwe=Te((Nhr,zwe)=>{"use strict";zwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var cH=Te((Uhr,Bwe)=>{"use strict";var Fc=Fy(),fH=Zc().line,x3t=Gf(),Rwe=jc().axisHoverFormat,{hovertemplateAttrs:b3t,texttemplateAttrs:w3t,templatefallbackAttrs:Dwe}=Ff(),Fwe=Iwe(),Xg=Su().extendFlat,A3t=jl();Bwe.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:Rwe("x"),yhoverformat:Rwe("y"),hovertext:Fc.hovertext,hovertemplate:b3t({},{keys:Fwe.eventDataKeys}),hovertemplatefallback:Dwe(),hoverinfo:Xg({},x3t.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:w3t({editType:"plot"},{keys:Fwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Dwe({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:T3t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xg({},fH.color,{dflt:A3t.defaultLine}),width:Xg({},fH.width,{dflt:0,editType:"plot"}),dash:fH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function T3t(){var e=Xg({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var hH=Te((Vhr,Owe)=>{"use strict";Owe.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 pH=Te((Ghr,Nwe)=>{"use strict";var VR=ei(),S3t=e2(),M3t=i0().handleText,E3t=oA(),k3t=Rm(),qwe=cH(),dH=jl();function C3t(e,t,r,n){function i(c,h){return VR.coerce(e,t,qwe,c,h)}var a=E3t(e,t,n,i);if(!a){t.visible=!1;return}k3t(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");M3t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",VR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",dH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",L3t(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function L3t(e){var t=VR.isArrayOrTypedArray(e)?"#000":e;return dH.addOpacity(t,.5*dH.opacity(t))}function P3t(e,t){var r,n;function i(o){return VR.coerce(n._input,n,qwe,o)}for(var a=0;a{"use strict";var z3t=ei(),I3t=hH();Uwe.exports=function(e,t,r){var n=!1;function i(s,u){return z3t.coerce(e,t,I3t,s,u)}for(var a=0;a{"use strict";var YA=ei();Gwe.exports=function(t,r){for(var n=0;n{"use strict";var Wwe=wu(),jwe=Fm(),R3t=Hwe(),D3t=B0(),WE=rf().BADNUM;Xwe.exports=function(t,r){var n=Wwe.getFromId(t,r.xaxis||"x"),i=Wwe.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=jwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=jwe(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 Ywe=t2().setGroupPositions;Kwe.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 GR=Jl(),q_=ei(),$we=Mu(),O_=rf().BADNUM,F3t=d2(),B3t=Ap().clearMinTextSize;e3e.exports=function(t,r,n,i){var a=t._fullLayout;B3t("funnel",a),O3t(t,r,n,i),q3t(t,r,n,i),F3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function O3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=GR.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 _=Qwe(d,i,a,f),b=_[0],v=_[1],C="";b[0]!==O_&&v[0]!==O_&&b[1]!==O_&&v[1]!==O_&&b[2]!==O_&&v[2]!==O_&&b[3]!==O_&&v[3]!==O_&&(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(GR.select(this),"path").attr("d",C).call($we.setClipUrl,t.layerClipId,e)}})})}function q3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=GR.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 _=Qwe(d,i,a,f),b=_[0],v=_[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(GR.select(this),"path").attr("d",C).call($we.setClipUrl,t.layerClipId,e)}})})}function Qwe(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 n3e=Te((Yhr,i3e)=>{"use strict";var jE=Jl(),r3e=Mu(),mH=jl(),N3t=X1().DESELECTDIM,U3t=V0(),V3t=Ap().resizeText,G3t=U3t.styleTextPoints;function H3t(e,t,r){var n=r||jE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");V3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=jE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;jE.select(this).call(mH.fill,s.mc||u.color).call(mH.stroke,s.mlc||u.line.color).call(r3e.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?N3t:1)}}),G3t(a,o,e),a.selectAll(".regions").each(function(){jE.select(this).selectAll("path").style("stroke-width",0).call(mH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;r3e.lineGroupStyle(jE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}i3e.exports={style:H3t}});var s3e=Te((Khr,o3e)=>{"use strict";var a3e=jl().opacity,W3t=PA().hoverOnBars,yH=ei().formatPercent;o3e.exports=function(t,r,n,i,a){var o=W3t(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=yH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=yH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=yH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),v=function(C){return _||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(a3e(n))return n;if(a3e(i)&&a)return i}});var u3e=Te((Jhr,l3e)=>{"use strict";l3e.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 c3e=Te(($hr,f3e)=>{"use strict";f3e.exports={attributes:cH(),layoutAttributes:hH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:Vwe(),calc:Zwe(),crossTraceCalc:Jwe(),plot:t3e(),style:n3e().style,hoverPoints:s3e(),eventData:u3e(),selectPoints:zA(),moduleType:"trace",name:"funnel",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var d3e=Te((Qhr,h3e)=>{"use strict";h3e.exports=c3e()});var v3e=Te((edr,p3e)=>{"use strict";p3e.exports={eventDataKeys:["initial","delta","final"]}});var xH=Te((tdr,_3e)=>{"use strict";var Ec=Fy(),gH=Zc().line,X3t=Gf(),m3e=jc().axisHoverFormat,{hovertemplateAttrs:Z3t,texttemplateAttrs:Y3t,templatefallbackAttrs:y3e}=Ff(),g3e=v3e(),KA=Su().extendFlat,K3t=jl();function _H(e){return{marker:{color:KA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:KA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:KA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}_3e.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:m3e("x"),yhoverformat:m3e("y"),hovertext:Ec.hovertext,hovertemplate:Z3t({},{keys:g3e.eventDataKeys}),hovertemplatefallback:y3e(),hoverinfo:KA({},X3t.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:Y3t({editType:"plot"},{keys:g3e.eventDataKeys.concat(["label"])}),texttemplatefallback:y3e({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:_H("increasing"),decreasing:_H("decreasing"),totals:_H("intermediate sums and total"),connector:{line:{color:KA({},gH.color,{dflt:K3t.defaultLine}),width:KA({},gH.width,{editType:"plot"}),dash:gH.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 bH=Te((rdr,x3e)=>{"use strict";x3e.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 JA=Te((idr,b3e)=>{"use strict";b3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var AH=Te((ndr,S3e)=>{"use strict";var w3e=ei(),J3t=e2(),$3t=i0().handleText,Q3t=oA(),eAt=Rm(),A3e=xH(),tAt=jl(),T3e=JA(),rAt=T3e.INCREASING.COLOR,iAt=T3e.DECREASING.COLOR,nAt="#4499FF";function wH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",tAt.defaultLine),e(t+".marker.line.width")}function aAt(e,t,r,n){function i(l,f){return w3e.coerce(e,t,A3e,l,f)}var a=Q3t(e,t,n,i);if(!a){t.visible=!1;return}eAt(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");$3t(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")),wH(i,"increasing",rAt),wH(i,"decreasing",iAt),wH(i,"totals",nAt);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 oAt(e,t){var r,n;function i(o){return w3e.coerce(n._input,n,A3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var sAt=ei(),lAt=bH();M3e.exports=function(e,t,r){var n=!1;function i(s,u){return sAt.coerce(e,t,lAt,s,u)}for(var a=0;a{"use strict";var k3e=wu(),C3e=Fm(),L3e=ei().mergeArray,uAt=B0(),P3e=rf().BADNUM;function TH(e){return e==="a"||e==="absolute"}function SH(e){return e==="t"||e==="total"}z3e.exports=function(t,r){var n=k3e.getFromId(t,r.xaxis||"x"),i=k3e.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=C3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=C3e(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,_=!1,b=0;b{"use strict";var R3e=t2().setGroupPositions;D3e.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 B3e=Jl(),HR=ei(),fAt=Mu(),$A=rf().BADNUM,cAt=d2(),hAt=Ap().clearMinTextSize;O3e.exports=function(t,r,n,i){var a=t._fullLayout;hAt("waterfall",a),cAt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),dAt(t,r,n,i)};function dAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;HR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=B3e.select(this),u=o[0].trace,l=HR.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(HR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,_){if(!(_!==d-1&&!p.cNext)){var b=pAt(p,i,a,f),v=b[0],C=b[1],E="";v[0]!==$A&&C[0]!==$A&&v[1]!==$A&&C[1]!==$A&&(c==="spanning"&&!p.isSum&&_>0&&(f?E+="M"+v[0]+","+C[1]+"V"+C[0]:E+="M"+v[1]+","+C[0]+"H"+v[0]),c!=="between"&&(p.isSum||_{"use strict";var WR=Jl(),N3e=Mu(),U3e=jl(),vAt=X1().DESELECTDIM,mAt=V0(),yAt=Ap().resizeText,gAt=mAt.styleTextPoints;function _At(e,t,r){var n=r||WR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");yAt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=WR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;WR.select(this).call(U3e.fill,u.color).call(U3e.stroke,u.line.color).call(N3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?vAt:1)}}),gAt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;N3e.lineGroupStyle(WR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}V3e.exports={style:_At}});var Z3e=Te((fdr,X3e)=>{"use strict";var xAt=wu().hoverLabelText,H3e=jl().opacity,bAt=PA().hoverOnBars,W3e=JA(),j3e={increasing:W3e.INCREASING.SYMBOL,decreasing:W3e.DECREASING.SYMBOL};X3e.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 xAt(c,x,u[f+"hoverformat"])}var d=o.index,p=s[d],_=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<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",T=v.split("+"),L=function(x){return E||T.indexOf(x)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(_<0?C.push(o.deltaLabel+" "+j3e.decreasing):C.push(o.deltaLabel+" "+j3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=wAt(u,p),[o]};function wAt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(H3e(n))return n;if(H3e(i)&&a)return i}});var K3e=Te((cdr,Y3e)=>{"use strict";Y3e.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 $3e=Te((hdr,J3e)=>{"use strict";J3e.exports={attributes:xH(),layoutAttributes:bH(),supplyDefaults:AH().supplyDefaults,crossTraceDefaults:AH().crossTraceDefaults,supplyLayoutDefaults:E3e(),calc:I3e(),crossTraceCalc:F3e(),plot:q3e(),style:G3e().style,hoverPoints:Z3e(),eventData:K3e(),selectPoints:zA(),moduleType:"trace",name:"waterfall",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var eAe=Te((ddr,Q3e)=>{"use strict";Q3e.exports=$3e()});var QA=Te((pdr,tAe)=>{"use strict";tAe.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 MH=Te((vdr,iAe)=>{"use strict";var AAt=Gf(),TAt=Zc().zorder,{hovertemplateAttrs:SAt,templatefallbackAttrs:MAt}=Ff(),rAe=Su().extendFlat,EAt=QA().colormodel,ZE=["rgb","rgba","rgba256","hsl","hsla"],kAt=[],CAt=[];for(eT=0;eT{"use strict";var LAt=ei(),PAt=MH(),nAe=QA(),zAt=Bg().IMAGE_URL_PREFIX;aAe.exports=function(t,r){function n(o,s){return LAt.coerce(t,r,PAt,o,s)}n("source"),r.source&&!r.source.match(zAt)&&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=nAe.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=nAe.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=Te((ydr,EH)=>{typeof Object.create=="function"?EH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:EH.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 kH=Te((gdr,sAe)=>{sAe.exports=Tb().EventEmitter});var fAe=Te(jR=>{"use strict";jR.byteLength=RAt;jR.toByteArray=FAt;jR.fromByteArray=qAt;var Gy=[],Y0=[],IAt=typeof Uint8Array!="undefined"?Uint8Array:Array,CH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(y2=0,lAe=CH.length;y20)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 RAt(e){var t=uAe(e),r=t[0],n=t[1];return(r+n)*3/4-n}function DAt(e,t,r){return(t+r)*3/4-r}function FAt(e){var t,r=uAe(e),n=r[0],i=r[1],a=new IAt(DAt(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 BAt(e){return Gy[e>>18&63]+Gy[e>>12&63]+Gy[e>>6&63]+Gy[e&63]}function OAt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Gy[t>>2]+Gy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Gy[t>>10]+Gy[t>>4&63]+Gy[t<<2&63]+"=")),i.join("")}});var cAe=Te(LH=>{LH.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)};LH.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,_=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]|=_*128}});var _2=Te(nT=>{"use strict";var PH=fAe(),rT=cAe(),hAe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nT.Buffer=ol;nT.SlowBuffer=WAt;nT.INSPECT_MAX_BYTES=50;var XR=2147483647;nT.kMaxLength=XR;ol.TYPED_ARRAY_SUPPORT=NAt();!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 NAt(){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>XR)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 DH(e)}return mAe(e,t,r)}ol.poolSize=8192;function mAe(e,t,r){if(typeof e=="string")return VAt(e,t);if(ArrayBuffer.isView(e))return GAt(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(Hy(e,ArrayBuffer)||e&&Hy(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Hy(e,SharedArrayBuffer)||e&&Hy(e.buffer,SharedArrayBuffer)))return IH(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=HAt(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 mAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function yAe(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 UAt(e,t,r){return yAe(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 UAt(e,t,r)};function DH(e){return yAe(e),Yg(e<0?0:FH(e)|0)}ol.allocUnsafe=function(e){return DH(e)};ol.allocUnsafeSlow=function(e){return DH(e)};function VAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=gAe(e,t)|0,n=Yg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function zH(e){let t=e.length<0?0:FH(e.length)|0,r=Yg(t);for(let n=0;n=XR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+XR.toString(16)+" bytes");return e|0}function WAt(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(Hy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),Hy(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 gAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Hy(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 RH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return EAe(e).length;default:if(i)return n?-1:RH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=gAe;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 rTt(this,t,r);case"utf8":case"utf-8":return xAe(this,t,r);case"ascii":return eTt(this,t,r);case"latin1":case"binary":return tTt(this,t,r);case"base64":return $At(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return iTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function g2(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+=" ... "),""};hAe&&(ol.prototype[hAe]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(Hy(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,OH(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:dAe(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):dAe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function dAe(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 XAt(this,t,r,n);case"utf8":case"utf-8":return ZAt(this,t,r,n);case"ascii":case"latin1":case"binary":return YAt(this,t,r,n);case"base64":return KAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JAt(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 $At(e,t,r){return t===0&&r===e.length?PH.fromByteArray(e):PH.fromByteArray(e.slice(t,r))}function xAe(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 QAt(n)}var pAe=4096;function QAt(e){let t=e.length;if(t<=pAe)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||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(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||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(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||rp(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,iT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&YE(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,iT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&YE(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||rp(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||rp(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||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(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||rp(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||rp(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||rp(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,iT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&YE(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,iT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&YE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||rp(t,4,this.length),rT.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),rT.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),rT.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),rT.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 bAe(e,t,r,n,i){MAe(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 wAe(e,t,r,n,i){MAe(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 bAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=N_(function(t,r=0){return wAe(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 bAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=N_(function(t,r=0){return wAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function AAe(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 TAe(e,t,r,n,i){return t=+t,r=r>>>0,i||AAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),rT.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return TAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return TAe(this,t,r,!1,n)};function SAe(e,t,r,n,i){return t=+t,r=r>>>0,i||AAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),rT.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return SAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return SAe(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=vAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=vAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function vAe(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 nTt(e,t,r){iT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&YE(t,e.length-(r+1))}function MAe(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 tT.ERR_OUT_OF_RANGE("value",s,e)}nTt(n,i,a)}function iT(e,t){if(typeof e!="number")throw new tT.ERR_INVALID_ARG_TYPE(t,"number",e)}function YE(e,t,r){throw Math.floor(e)!==e?(iT(e,r),new tT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new tT.ERR_BUFFER_OUT_OF_BOUNDS:new tT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var aTt=/[^+/0-9A-Za-z-_]/g;function oTt(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 RH(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 sTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function EAe(e){return PH.toByteArray(oTt(e))}function ZR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Hy(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function OH(e){return e!==e}var uTt=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"?fTt:e}function fTt(){throw new Error("BigInt not supported")}});var YR=Te((Adr,kAe)=>{"use strict";kAe.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 KE=Te((Tdr,CAe)=>{"use strict";var cTt=YR();CAe.exports=function(){return cTt()&&!!Symbol.toStringTag}});var qH=Te((Sdr,LAe)=>{"use strict";LAe.exports=Object});var zAe=Te((Mdr,PAe)=>{"use strict";PAe.exports=Error});var RAe=Te((Edr,IAe)=>{"use strict";IAe.exports=EvalError});var FAe=Te((kdr,DAe)=>{"use strict";DAe.exports=RangeError});var OAe=Te((Cdr,BAe)=>{"use strict";BAe.exports=ReferenceError});var NH=Te((Ldr,qAe)=>{"use strict";qAe.exports=SyntaxError});var aT=Te((Pdr,NAe)=>{"use strict";NAe.exports=TypeError});var VAe=Te((zdr,UAe)=>{"use strict";UAe.exports=URIError});var HAe=Te((Idr,GAe)=>{"use strict";GAe.exports=Math.abs});var jAe=Te((Rdr,WAe)=>{"use strict";WAe.exports=Math.floor});var ZAe=Te((Ddr,XAe)=>{"use strict";XAe.exports=Math.max});var KAe=Te((Fdr,YAe)=>{"use strict";YAe.exports=Math.min});var $Ae=Te((Bdr,JAe)=>{"use strict";JAe.exports=Math.pow});var eTe=Te((Odr,QAe)=>{"use strict";QAe.exports=Math.round});var rTe=Te((qdr,tTe)=>{"use strict";tTe.exports=Number.isNaN||function(t){return t!==t}});var nTe=Te((Ndr,iTe)=>{"use strict";var hTt=rTe();iTe.exports=function(t){return hTt(t)||t===0?t:t<0?-1:1}});var oTe=Te((Udr,aTe)=>{"use strict";aTe.exports=Object.getOwnPropertyDescriptor});var x2=Te((Vdr,sTe)=>{"use strict";var KR=oTe();if(KR)try{KR([],"length")}catch(e){KR=null}sTe.exports=KR});var JE=Te((Gdr,lTe)=>{"use strict";var JR=Object.defineProperty||!1;if(JR)try{JR({},"a",{value:1})}catch(e){JR=!1}lTe.exports=JR});var cTe=Te((Hdr,fTe)=>{"use strict";var uTe=typeof Symbol!="undefined"&&Symbol,dTt=YR();fTe.exports=function(){return typeof uTe!="function"||typeof Symbol!="function"||typeof uTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:dTt()}});var UH=Te((Wdr,hTe)=>{"use strict";hTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var VH=Te((jdr,dTe)=>{"use strict";var pTt=qH();dTe.exports=pTt.getPrototypeOf||null});var mTe=Te((Xdr,vTe)=>{"use strict";var vTt="Function.prototype.bind called on incompatible ",mTt=Object.prototype.toString,yTt=Math.max,gTt="[object Function]",pTe=function(t,r){for(var n=[],i=0;i{"use strict";var bTt=mTe();yTe.exports=Function.prototype.bind||bTt});var $R=Te((Ydr,gTe)=>{"use strict";gTe.exports=Function.prototype.call});var GH=Te((Kdr,_Te)=>{"use strict";_Te.exports=Function.prototype.apply});var bTe=Te((Jdr,xTe)=>{"use strict";xTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var ATe=Te(($dr,wTe)=>{"use strict";var wTt=oT(),ATt=GH(),TTt=$R(),STt=bTe();wTe.exports=STt||wTt.call(TTt,ATt)});var STe=Te((Qdr,TTe)=>{"use strict";var MTt=oT(),ETt=aT(),kTt=$R(),CTt=ATe();TTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ETt("a function is required");return CTt(MTt,kTt,t)}});var PTe=Te((epr,LTe)=>{"use strict";var LTt=STe(),MTe=x2(),kTe;try{kTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var HH=!!kTe&&MTe&&MTe(Object.prototype,"__proto__"),CTe=Object,ETe=CTe.getPrototypeOf;LTe.exports=HH&&typeof HH.get=="function"?LTt([HH.get]):typeof ETe=="function"?function(t){return ETe(t==null?t:CTe(t))}:!1});var FTe=Te((tpr,DTe)=>{"use strict";var zTe=UH(),ITe=VH(),RTe=PTe();DTe.exports=zTe?function(t){return zTe(t)}:ITe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ITe(t)}:RTe?function(t){return RTe(t)}:null});var OTe=Te((rpr,BTe)=>{"use strict";var PTt=Function.prototype.call,zTt=Object.prototype.hasOwnProperty,ITt=oT();BTe.exports=ITt.call(PTt,zTt)});var tD=Te((ipr,HTe)=>{"use strict";var Jf,RTt=qH(),DTt=zAe(),FTt=RAe(),BTt=FAe(),OTt=OAe(),fT=NH(),uT=aT(),qTt=VAe(),NTt=HAe(),UTt=jAe(),VTt=ZAe(),GTt=KAe(),HTt=$Ae(),WTt=eTe(),jTt=nTe(),VTe=Function,WH=function(e){try{return VTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},$E=x2(),XTt=JE(),jH=function(){throw new uT},ZTt=$E?function(){try{return arguments.callee,jH}catch(e){try{return $E(arguments,"callee").get}catch(t){return jH}}}():jH,sT=cTe()(),ip=FTe(),YTt=VH(),KTt=UH(),GTe=GH(),QE=$R(),lT={},JTt=typeof Uint8Array=="undefined"||!ip?Jf:ip(Uint8Array),b2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":sT&&ip?ip([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":lT,"%AsyncGenerator%":lT,"%AsyncGeneratorFunction%":lT,"%AsyncIteratorPrototype%":lT,"%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%":DTt,"%eval%":eval,"%EvalError%":FTt,"%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%":VTe,"%GeneratorFunction%":lT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sT&&ip?ip(ip([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!sT||!ip?Jf:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":RTt,"%Object.getOwnPropertyDescriptor%":$E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":BTt,"%ReferenceError%":OTt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!sT||!ip?Jf:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sT&&ip?ip(""[Symbol.iterator]()):Jf,"%Symbol%":sT?Symbol:Jf,"%SyntaxError%":fT,"%ThrowTypeError%":ZTt,"%TypedArray%":JTt,"%TypeError%":uT,"%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%":qTt,"%WeakMap%":typeof WeakMap=="undefined"?Jf:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Jf:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Jf:WeakSet,"%Function.prototype.call%":QE,"%Function.prototype.apply%":GTe,"%Object.defineProperty%":XTt,"%Object.getPrototypeOf%":YTt,"%Math.abs%":NTt,"%Math.floor%":UTt,"%Math.max%":VTt,"%Math.min%":GTt,"%Math.pow%":HTt,"%Math.round%":WTt,"%Math.sign%":jTt,"%Reflect.getPrototypeOf%":KTt};if(ip)try{null.error}catch(e){qTe=ip(ip(e)),b2["%Error.prototype%"]=qTe}var qTe,$Tt=function e(t){var r;if(t==="%AsyncFunction%")r=WH("async function () {}");else if(t==="%GeneratorFunction%")r=WH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=WH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return b2[t]=r,r},NTe={__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"]},e4=oT(),QR=OTe(),QTt=e4.call(QE,Array.prototype.concat),eSt=e4.call(GTe,Array.prototype.splice),UTe=e4.call(QE,String.prototype.replace),eD=e4.call(QE,String.prototype.slice),tSt=e4.call(QE,RegExp.prototype.exec),rSt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iSt=/\\(\\)?/g,nSt=function(t){var r=eD(t,0,1),n=eD(t,-1);if(r==="%"&&n!=="%")throw new fT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new fT("invalid intrinsic syntax, expected opening `%`");var i=[];return UTe(t,rSt,function(a,o,s,u){i[i.length]=s?UTe(u,iSt,"$1"):o||a}),i},aSt=function(t,r){var n=t,i;if(QR(NTe,n)&&(i=NTe[n],n="%"+i[0]+"%"),QR(b2,n)){var a=b2[n];if(a===lT&&(a=$Tt(n)),typeof a=="undefined"&&!r)throw new uT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new fT("intrinsic "+t+" does not exist!")};HTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new uT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new uT('"allowMissing" argument must be a boolean');if(tSt(/^%?[^%]*%?$/,t)===null)throw new fT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=nSt(t),i=n.length>0?n[0]:"",a=aSt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],eSt(n,QTt([0,1],l)));for(var f=1,c=!0;f=n.length){var _=$E(s,h);c=!!_,c&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else c=QR(s,h),s=s[h];c&&!u&&(b2[o]=s)}}return s}});var ZTe=Te((npr,XTe)=>{"use strict";var WTe=JE(),oSt=NH(),cT=aT(),jTe=x2();XTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new cT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new cT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cT("`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=!!jTe&&jTe(t,r);if(WTe)WTe(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 oSt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ZH=Te((apr,KTe)=>{"use strict";var XH=JE(),YTe=function(){return!!XH};YTe.hasArrayLengthDefineBug=function(){if(!XH)return null;try{return XH([],"length",{value:1}).length!==1}catch(t){return!0}};KTe.exports=YTe});var tSe=Te((opr,eSe)=>{"use strict";var sSt=tD(),JTe=ZTe(),lSt=ZH()(),$Te=x2(),QTe=aT(),uSt=sSt("%Math.floor%");eSe.exports=function(t,r){if(typeof t!="function")throw new QTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||uSt(r)!==r)throw new QTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&$Te){var o=$Te(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(lSt?JTe(t,"length",r,!0,!0):JTe(t,"length",r)),t}});var t4=Te((spr,rD)=>{"use strict";var YH=oT(),iD=tD(),fSt=tSe(),cSt=aT(),nSe=iD("%Function.prototype.apply%"),aSe=iD("%Function.prototype.call%"),oSe=iD("%Reflect.apply%",!0)||YH.call(aSe,nSe),rSe=JE(),hSt=iD("%Math.max%");rD.exports=function(t){if(typeof t!="function")throw new cSt("a function is required");var r=oSe(YH,aSe,arguments);return fSt(r,1+hSt(0,t.length-(arguments.length-1)),!0)};var iSe=function(){return oSe(YH,nSe,arguments)};rSe?rSe(rD.exports,"apply",{value:iSe}):rD.exports.apply=iSe});var hT=Te((lpr,uSe)=>{"use strict";var sSe=tD(),lSe=t4(),dSt=lSe(sSe("String.prototype.indexOf"));uSe.exports=function(t,r){var n=sSe(t,!!r);return typeof n=="function"&&dSt(t,".prototype.")>-1?lSe(n):n}});var hSe=Te((upr,cSe)=>{"use strict";var pSt=KE()(),vSt=hT(),KH=vSt("Object.prototype.toString"),nD=function(t){return pSt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:KH(t)==="[object Arguments]"},fSe=function(t){return nD(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&KH(t)!=="[object Array]"&&KH(t.callee)==="[object Function]"},mSt=function(){return nD(arguments)}();nD.isLegacyArguments=fSe;cSe.exports=mSt?nD:fSe});var vSe=Te((fpr,pSe)=>{"use strict";var ySt=Object.prototype.toString,gSt=Function.prototype.toString,_St=/^\s*(?:function)?\*/,dSe=KE()(),JH=Object.getPrototypeOf,xSt=function(){if(!dSe)return!1;try{return Function("return function*() {}")()}catch(e){}},$H;pSe.exports=function(t){if(typeof t!="function")return!1;if(_St.test(gSt.call(t)))return!0;if(!dSe){var r=ySt.call(t);return r==="[object GeneratorFunction]"}if(!JH)return!1;if(typeof $H=="undefined"){var n=xSt();$H=n?JH(n):!1}return JH(t)===$H}});var _Se=Te((cpr,gSe)=>{"use strict";var ySe=Function.prototype.toString,dT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,eW,aD;if(typeof dT=="function"&&typeof Object.defineProperty=="function")try{eW=Object.defineProperty({},"length",{get:function(){throw aD}}),aD={},dT(function(){throw 42},null,eW)}catch(e){e!==aD&&(dT=null)}else dT=null;var bSt=/^\s*class\b/,tW=function(t){try{var r=ySe.call(t);return bSt.test(r)}catch(n){return!1}},QH=function(t){try{return tW(t)?!1:(ySe.call(t),!0)}catch(r){return!1}},oD=Object.prototype.toString,wSt="[object Object]",ASt="[object Function]",TSt="[object GeneratorFunction]",SSt="[object HTMLAllCollection]",MSt="[object HTML document.all class]",ESt="[object HTMLCollection]",kSt=typeof Symbol=="function"&&!!Symbol.toStringTag,CSt=!(0 in[,]),rW=function(){return!1};typeof document=="object"&&(mSe=document.all,oD.call(mSe)===oD.call(document.all)&&(rW=function(t){if((CSt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=oD.call(t);return(r===SSt||r===MSt||r===ESt||r===wSt)&&t("")==null}catch(n){}return!1}));var mSe;gSe.exports=dT?function(t){if(rW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{dT(t,null,eW)}catch(r){if(r!==aD)return!1}return!tW(t)&&QH(t)}:function(t){if(rW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(kSt)return QH(t);if(tW(t))return!1;var r=oD.call(t);return r!==ASt&&r!==TSt&&!/^\[object HTML/.test(r)?!1:QH(t)}});var iW=Te((hpr,bSe)=>{"use strict";var LSt=_Se(),PSt=Object.prototype.toString,xSe=Object.prototype.hasOwnProperty,zSt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),PSt.call(t)==="[object Array]"?zSt(t,r,i):typeof t=="string"?ISt(t,r,i):RSt(t,r,i)};bSe.exports=DSt});var aW=Te((dpr,wSe)=>{"use strict";var nW=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],FSt=typeof globalThis=="undefined"?window:globalThis;wSe.exports=function(){for(var t=[],r=0;r{"use strict";var lD=iW(),BSt=aW(),ASe=t4(),lW=hT(),sD=x2(),OSt=lW("Object.prototype.toString"),SSe=KE()(),TSe=typeof globalThis=="undefined"?window:globalThis,sW=BSt(),uW=lW("String.prototype.slice"),oW=Object.getPrototypeOf,qSt=lW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:USt(t)}return sD?NSt(t):null}});var ISe=Te((vpr,zSe)=>{"use strict";var kSe=iW(),VSt=aW(),cW=hT(),GSt=cW("Object.prototype.toString"),CSe=KE()(),fD=x2(),HSt=typeof globalThis=="undefined"?window:globalThis,LSe=VSt(),WSt=cW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return fD?XSt(t):!1}});var pW=Te($f=>{"use strict";var ZSt=hSe(),YSt=vSe(),jm=ESe(),RSe=ISe();function pT(e){return e.call.bind(e)}var DSe=typeof BigInt!="undefined",FSe=typeof Symbol!="undefined",K0=pT(Object.prototype.toString),KSt=pT(Number.prototype.valueOf),JSt=pT(String.prototype.valueOf),$St=pT(Boolean.prototype.valueOf);DSe&&(BSe=pT(BigInt.prototype.valueOf));var BSe;FSe&&(OSe=pT(Symbol.prototype.valueOf));var OSe;function i4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=ZSt;$f.isGeneratorFunction=YSt;$f.isTypedArray=RSe;function QSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=QSt;function eMt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):RSe(e)||NSe(e)}$f.isArrayBufferView=eMt;function tMt(e){return jm(e)==="Uint8Array"}$f.isUint8Array=tMt;function rMt(e){return jm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=rMt;function iMt(e){return jm(e)==="Uint16Array"}$f.isUint16Array=iMt;function nMt(e){return jm(e)==="Uint32Array"}$f.isUint32Array=nMt;function aMt(e){return jm(e)==="Int8Array"}$f.isInt8Array=aMt;function oMt(e){return jm(e)==="Int16Array"}$f.isInt16Array=oMt;function sMt(e){return jm(e)==="Int32Array"}$f.isInt32Array=sMt;function lMt(e){return jm(e)==="Float32Array"}$f.isFloat32Array=lMt;function uMt(e){return jm(e)==="Float64Array"}$f.isFloat64Array=uMt;function fMt(e){return jm(e)==="BigInt64Array"}$f.isBigInt64Array=fMt;function cMt(e){return jm(e)==="BigUint64Array"}$f.isBigUint64Array=cMt;function cD(e){return K0(e)==="[object Map]"}cD.working=typeof Map!="undefined"&&cD(new Map);function hMt(e){return typeof Map=="undefined"?!1:cD.working?cD(e):e instanceof Map}$f.isMap=hMt;function hD(e){return K0(e)==="[object Set]"}hD.working=typeof Set!="undefined"&&hD(new Set);function dMt(e){return typeof Set=="undefined"?!1:hD.working?hD(e):e instanceof Set}$f.isSet=dMt;function dD(e){return K0(e)==="[object WeakMap]"}dD.working=typeof WeakMap!="undefined"&&dD(new WeakMap);function pMt(e){return typeof WeakMap=="undefined"?!1:dD.working?dD(e):e instanceof WeakMap}$f.isWeakMap=pMt;function dW(e){return K0(e)==="[object WeakSet]"}dW.working=typeof WeakSet!="undefined"&&dW(new WeakSet);function vMt(e){return dW(e)}$f.isWeakSet=vMt;function pD(e){return K0(e)==="[object ArrayBuffer]"}pD.working=typeof ArrayBuffer!="undefined"&&pD(new ArrayBuffer);function qSe(e){return typeof ArrayBuffer=="undefined"?!1:pD.working?pD(e):e instanceof ArrayBuffer}$f.isArrayBuffer=qSe;function vD(e){return K0(e)==="[object DataView]"}vD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&vD(new DataView(new ArrayBuffer(1),0,1));function NSe(e){return typeof DataView=="undefined"?!1:vD.working?vD(e):e instanceof DataView}$f.isDataView=NSe;var hW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function r4(e){return K0(e)==="[object SharedArrayBuffer]"}function USe(e){return typeof hW=="undefined"?!1:(typeof r4.working=="undefined"&&(r4.working=r4(new hW)),r4.working?r4(e):e instanceof hW)}$f.isSharedArrayBuffer=USe;function mMt(e){return K0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=mMt;function yMt(e){return K0(e)==="[object Map Iterator]"}$f.isMapIterator=yMt;function gMt(e){return K0(e)==="[object Set Iterator]"}$f.isSetIterator=gMt;function _Mt(e){return K0(e)==="[object Generator]"}$f.isGeneratorObject=_Mt;function xMt(e){return K0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=xMt;function VSe(e){return i4(e,KSt)}$f.isNumberObject=VSe;function GSe(e){return i4(e,JSt)}$f.isStringObject=GSe;function HSe(e){return i4(e,$St)}$f.isBooleanObject=HSe;function WSe(e){return DSe&&i4(e,BSe)}$f.isBigIntObject=WSe;function jSe(e){return FSe&&i4(e,OSe)}$f.isSymbolObject=jSe;function bMt(e){return VSe(e)||GSe(e)||HSe(e)||WSe(e)||jSe(e)}$f.isBoxedPrimitive=bMt;function wMt(e){return typeof Uint8Array!="undefined"&&(qSe(e)||USe(e))}$f.isAnyArrayBuffer=wMt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var vW=Te((ypr,XSe)=>{XSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var bW=Te(Qf=>{var ZSe=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]),_W(t)?r.showHidden=t:t&&Qf._extend(r,t),A2(r.showHidden)&&(r.showHidden=!1),A2(r.depth)&&(r.depth=2),A2(r.colors)&&(r.colors=!1),A2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=TMt),_D(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 TMt(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function SMt(e,t){return e}function MMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _D(e,t,r){if(e.customInspect&&t&&gD(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return wD(n)||(n=_D(e,n,r)),n}var i=EMt(e,t);if(i)return i;var a=Object.keys(t),o=MMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),a4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return mW(t);if(a.length===0){if(gD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(n4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(a4(t))return mW(t)}var u="",l=!1,f=["{","}"];if(KSe(t)&&(l=!0,f=["[","]"]),gD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(n4(t)&&(u=" "+RegExp.prototype.toString.call(t)),xD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),a4(t)&&(u=" "+mW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return n4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=kMt(e,t,r,o,a):h=a.map(function(d){return gW(e,t,r,o,d,l)}),e.seen.pop(),CMt(h,u,f)}function EMt(e,t){if(A2(t))return e.stylize("undefined","undefined");if(wD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(JSe(t))return e.stylize(""+t,"number");if(_W(t))return e.stylize(""+t,"boolean");if(bD(t))return e.stylize("null","null")}function mW(e){return"["+Error.prototype.toString.call(e)+"]"}function kMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";Pie.exports=function(t){return t}});var VL=Te(Mg=>{"use strict";var Mnt=ku(),Ent=K1(),knt=ZM(),Cnt=rf().BADNUM,nq=1e-9;Mg.findBin=function(e,t,r){if(Mnt(t.start))return r?Math.ceil((e-t.start)/t.size-nq)-1:Math.floor((e-t.start)/t.size+nq);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?Lnt:Pnt:u=r?Int:znt,e+=o*nq*(r?-1:1)*(o>=0?1:-1);n90&&Ent.log("Long binary search..."),n-1};function Lnt(e,t){return et}function Int(e,t){return e>=t}Mg.sorterAsc=function(e,t){return e-t};Mg.sorterDes=function(e,t){return t-e};Mg.distinctVals=function(e){var t=e.slice();t.sort(Mg.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Cnt;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}};Mg.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()};Mg.findIndexOfMin=function(e,t){t=t||knt;for(var r=1/0,n,i=0;i{"use strict";zie.exports=function(t){return Object.keys(t).sort()}});var Iie=Te(wh=>{"use strict";var YM=ku(),Rnt=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),YM(t)||(t=!1),Rnt(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 Oie=Te((dar,Bie)=>{"use strict";var Rie=d3(),aq=Rie.mod,Dnt=Rie.modHalf,KM=Math.PI,r_=2*KM;function Fnt(e){return e/180*KM}function Bnt(e){return e/KM*180}function oq(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Die(e,t){return Dnt(t-e,r_)}function Ont(e,t){return Math.abs(Die(e,t))}function Fie(e,t){if(oq(t))return!0;var r,n;t[0]n&&(n+=r_);var i=aq(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function qnt(e,t,r,n){if(!Fie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function sq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=oq([r,n]),u,l,f,c,h;s?(u=0,l=KM,f=r_):r{"use strict";bb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};bb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};bb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};bb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};bb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};bb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Vie=Te(wb=>{"use strict";var lq=d3().mod;wb.segmentsIntersect=Uie;function Uie(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 _=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||_<0||_>1?null:{x:e+u*_,y:t+c*_}}wb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Uie(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,_=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(_)};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,uq,Nie;wb.getTextLocation=function(t,r,n,i){if((t!==uq||i!==Nie)&&(HL={},uq=t,Nie=i),HL[n])return HL[n];var a=t.getPointAtLength(lq(n-i/2,r)),o=t.getPointAtLength(lq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(lq(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};wb.clearLocationCache=function(){uq=null};wb.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(_){var b=t.getPointAtLength(_);_===0?c=b:_===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}};wb.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=Te(JM=>{"use strict";var Eg={};JM.throttle=function(t,r,n){var i=Eg[t],a=Date.now();if(!i){for(var o in Eg)Eg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};JM.done=function(e){var t=Eg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};JM.clear=function(e){if(e)Gie(Eg[e]),delete Eg[e];else for(var t in Eg)JM.clear(t)};function Gie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Wie=Te((gar,Hie)=>{"use strict";Hie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var jie=Te((_ar,jL)=>{"use strict";jL.exports=fq;jL.exports.isMobile=fq;jL.exports.default=fq;var Gnt=/(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,Hnt=/CrOS/,Wnt=/android|ipad|playbook|silk/i;function fq(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=Gnt.test(t)&&!Hnt.test(t)||!!e.tablet&&Wnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Zie=Te((xar,Xie)=>{"use strict";var jnt=ku(),Xnt=jie();Xie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Znt(),typeof r!="string")return!0;var n=Xnt({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(jnt(l)&&(l=+l),l>=13)return!0}}}return n};function Znt(){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 Kie=Te((bar,Yie)=>{"use strict";var Ynt=Jl();Yie.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 $ie=Te((war,Jie)=>{"use strict";var Knt=$l();Jie.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=Knt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var cq=Te((Aar,Qie)=>{"use strict";Qie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";ene.exports=function(t){for(var r=Qnt(t)?$nt:Jnt,n=[],i=0;i{"use strict";rne.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 ane=Te((Mar,nne)=>{"use strict";var eat=ku(),tat=rf().BADNUM,rat=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nne.exports=function(t){return typeof t=="string"&&(t=t.replace(rat,"")),eat(t)?Number(t):tat}});var ei=Te((Ear,gne)=>{"use strict";var $M=Jl(),iat=c3().utcFormat,nat=FO().format,cne=ku(),hne=rf(),dne=hne.FP_SAFE,aat=-dne,one=hne.BADNUM,An=gne.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 sne={};An.warnBadFormat=function(e){var t=String(e);sne[t]||(sne[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=nat(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=DM();An.keyedContainer=Qee();An.relativeAttr=tte();An.isPlainObject=Ag();An.toLogRange=ML();An.relinkPrivateKeys=ate();var i_=mp();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 pne=d3();An.mod=pne.mod;An.modHalf=pne.modHalf;var n_=Tte();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=Lie();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 Ab=VL();An.findBin=Ab.findBin;An.sorterAsc=Ab.sorterAsc;An.sorterDes=Ab.sorterDes;An.distinctVals=Ab.distinctVals;An.roundUp=Ab.roundUp;An.sort=Ab.sort;An.findIndexOfMin=Ab.findIndexOfMin;An.sortObjectKeys=t_();var kg=Iie();An.aggNums=kg.aggNums;An.len=kg.len;An.mean=kg.mean;An.geometricMean=kg.geometricMean;An.median=kg.median;An.midRange=kg.midRange;An.variance=kg.variance;An.stdev=kg.stdev;An.interp=kg.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=Oie();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 S3=qie();An.isLeftAnchor=S3.isLeftAnchor;An.isCenterAnchor=S3.isCenterAnchor;An.isRightAnchor=S3.isRightAnchor;An.isTopAnchor=S3.isTopAnchor;An.isMiddleAnchor=S3.isMiddleAnchor;An.isBottomAnchor=S3.isBottomAnchor;var M3=Vie();An.segmentsIntersect=M3.segmentsIntersect;An.segmentDistance=M3.segmentDistance;An.getTextLocation=M3.getTextLocation;An.clearLocationCache=M3.clearLocationCache;An.getVisibleSegment=M3.getVisibleSegment;An.findPointOnPath=M3.findPointOnPath;var YL=Su();An.extendFlat=YL.extendFlat;An.extendDeep=YL.extendDeep;An.extendDeepAll=YL.extendDeepAll;An.extendDeepNoArrays=YL.extendDeepNoArrays;var hq=K1();An.log=hq.log;An.warn=hq.warn;An.error=hq.error;var oat=v3();An.counterRegex=oat.counter;var dq=WL();An.throttle=dq.throttle;An.throttleDone=dq.done;An.clearThrottle=dq.clear;var Am=HM();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=Wie();An.preserveDrawingBuffer=Zie();An.makeTraceGroups=Kie();An._=$ie();An.notifier=XO();An.filterUnique=cq();An.filterVisible=tne();An.pushUnique=KO();An.increment=ine();An.cleanNumber=ane();An.ensureNumber=function(t){return cne(t)?(t=Number(t),t>dne||t=t?!1:cne(e)&&e>=0&&e%1===0};An.noop=PL();An.identity=ZM();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;iuat.test(window.navigator.userAgent);var fat=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=fat.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 $M.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 yne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return yne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var dat={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=e=>pq(W1(_m({},e),{opts:dat}));var pat={max:10,count:0,name:"texttemplate"};An.texttemplateString=e=>pq(W1(_m({},e),{opts:pat}));var vat=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function mat(e){var t=e.match(vat);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var yat={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=e=>pq(W1(_m({},e),{opts:yat}));var lne=/^[:|\|]/;function pq({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,_=null;if(i.parseMultDiv){var b=mat(s);s=b.key,p=b.op,_=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(yne.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,M=r===!1?o:r;return L=ZL&&o<=une,l=s>=ZL&&s<=une;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 T3=2e9;An.seedPseudoRandom=function(){T3=2e9};An.pseudoRandom=function(){var e=T3;return T3=(69069*T3+1)%4294967296,Math.abs(T3-e)<429496729?An.pseudoRandom():T3/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 fne=An.getFirefoxVersion(),gat=fne!==null&&fne<86;An.getPositionFromD3Event=function(){return gat?[$M.event.layerX,$M.event.layerY]:[$M.event.offsetX,$M.event.offsetY]}});var bne=Te(()=>{"use strict";var _at=ei(),_ne={"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(vq in _ne)xne=vq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),_at.addStyleRule(xne,_ne[vq]);var xne,vq});var mq=Te((Par,wne)=>{wne.exports=!0});var gq=Te((zar,Ane)=>{"use strict";var xat=mq(),yq;typeof window.matchMedia=="function"?yq=!window.matchMedia("(hover: none)").matches:yq=xat;Ane.exports=yq});var Tb=Te((Iar,_q)=>{"use strict";var E3=typeof Reflect=="object"?Reflect:null,Tne=E3&&typeof E3.apply=="function"?E3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},KL;E3&&typeof E3.ownKeys=="function"?KL=E3.ownKeys:Object.getOwnPropertySymbols?KL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:KL=function(t){return Object.getOwnPropertyNames(t)};function bat(e){console&&console.warn&&console.warn(e)}var Mne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}_q.exports=qc;_q.exports.once=Sat;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var Sne=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 Sne},set:function(e){if(typeof e!="number"||e<0||Mne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Sne=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||Mne(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 Ene(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return Ene(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")Tne(u,this,r);else for(var l=u.length,f=zne(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,bat(s)}return e}qc.prototype.addListener=function(t,r){return kne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return kne(this,t,r,!0)};function wat(){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 Cne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=wat.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return JL(r),this.on(t,Cne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return JL(r),this.prependListener(t,Cne(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():Aat(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 Lne(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?Tat(i):zne(i,i.length)}qc.prototype.listeners=function(t){return Lne(this,t,!0)};qc.prototype.rawListeners=function(t){return Lne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Pne.call(e,t)};qc.prototype.listenerCount=Pne;function Pne(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 zne(e,t){for(var r=new Array(t),n=0;n{"use strict";var xq=Tb().EventEmitter,Eat={init:function(e){if(e._ev instanceof xq)return e;var t=new xq,r=new xq;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 Dne=ei(),kat=_b().dfltConfig;function Cat(e,t){for(var r=[],n,i=0;ikat.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Cg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Cg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Cg.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";One.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var P3=Te(id=>{"use strict";var x0=$l(),QM=ei(),QL=Gf(),wq=_3(),Lat=bq(),Pat=WM(),zat=_b().configAttributes,qne=Sc(),Tm=QM.extendDeepAll,C3=QM.isPlainObject,Iat=QM.isArrayOrTypedArray,eP=QM.nestedProperty,Rat=QM.valObjectMeta,Aq="_isSubplotObj",tP="_isLinkedToArray",Dat="_arrayAttrRegexps",Une="_deprecated",Tq=[Aq,tP,Dat,Une];id.IS_SUBPLOT_OBJ=Aq;id.IS_LINKED_TO_ARRAY=tP;id.DEPRECATED=Une;id.UNDERSCORE_ATTRS=Tq;id.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Bat(t)}),{defs:{valObjects:Rat,metaKeys:Tq.concat(["description","role","editType","impliedEdits"]),editType:{traces:qne.traces,layout:qne.layout},impliedEdits:{}},traces:e,layout:Oat(),frames:qat(),animation:L3(Pat),config:L3(zat)}};id.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(Tq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!id.isValObject(o)&&C3(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)Iat(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 Bat(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:L3(n)};if(t.layoutAttributes){var s={};Tm(s,t.layoutAttributes),o.layoutAttributes=L3(s)}return t.animatable||id.crawl(o,function(u){id.isValObject(u)&&"anim"in u&&delete u.anim}),o}function Oat(){var e={},t,r;Tm(e,wq);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=ei(),Hat=Gf(),a_="templateitemname",Sq={name:{valType:"string",editType:"none"}};Sq[a_]={valType:"string",editType:"calc"};Sb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Sq.name,t[a_]=Sq[a_],t};Sb.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,{},Hat,"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}};Sb.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};Sb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Hne(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(!Gne(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?z3.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 _=c();for(var b in _)z3.nestedProperty(e,b).set(_[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var qh=Te((qar,Wne)=>{"use strict";var e5=v3().counter;Wne.exports={idRegex:{x:e5("x","( domain)?"),y:e5("y","( domain)?")},attrRegex:e5("[xy]axis"),xAxisMatch:e5("xaxis"),yAxisMatch:e5("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 Wc=Te(Sv=>{"use strict";var Wat=$l(),Mq=qh();Sv.id2name=function(t){if(!(typeof t!="string"||!t.match(Mq.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(Mq.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(Mq.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 jne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function jat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Xat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Xne.exports={clearOutlineControllers:jat,clearOutline:Xat}});var rP=Te((Var,Zne)=>{"use strict";Zne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(nP=>{"use strict";var iP=$l(),Gar=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 Zat=$l(),I3=ei();Mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Mb.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){Yne(e,o,i.cache),i.check=function(){if(a){var f=Yne(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;I3.isPlainObject(a)?Eq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((jar,hae)=>{"use strict";var aae=Jl(),Kat=c3().timeFormatLocale,Jat=FO().formatLocale,t5=ku(),$at=BO(),Hf=$l(),oae=P3(),Qat=Lf(),iu=ei(),sae=jl(),Qne=rf().BADNUM,Mv=Wc(),eot=o_().clearOutline,tot=rP(),kq=WM(),rot=bq(),iot=Rd().getModuleCalcData,eae=iu.relinkPrivateKeys,Eb=iu._,ql=hae.exports={};iu.extendFlat(ql,Hf);ql.attributes=Gf();ql.attributes.type.values=ql.allTypes;ql.fontAttrs=gc();ql.layoutAttributes=_3();var oP=$ne();ql.executeAPICommand=oP.executeAPICommand;ql.computeAPICommandBindings=oP.computeAPICommandBindings;ql.manageCommandObserver=oP.manageCommandObserver;ql.hasSimpleAPICommandBindings=oP.hasSimpleAPICommandBindings;ql.redrawText=function(e){return e=iu.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(ql.previousPromises(e)))},300)})};ql.resize=function(e){e=iu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||iu.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||iu.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};ql.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ql.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=iu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:sae.defaultLine,"pointer-events":"all"}).each(function(){var l=aae.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&¬(e,a),o.text(a.text()&&s.text()?" - ":"")}};function not(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(){ql.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})}}ql.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=aae.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=ql.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var aot=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],oot=["year","month","dayMonth","dayMonthYear"];ql.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||ql.createTransitionData(e),i._dfltTitle={plot:Eb(e,"Click to enter Plot title"),subtitle:Eb(e,"Click to enter Plot subtitle"),x:Eb(e,"Click to enter X axis title"),y:Eb(e,"Click to enter Y axis title"),colorbar:Eb(e,"Click to enter Colorscale title"),annotation:Eb(e,"new text")},i._traceWord=Eb(e,"trace");var h=tae(e,aot);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;ql.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),ql.sanitizeMargins(i)}else{ql.supplyLayoutGlobalDefaults(a,i,h);var _=!a.width||!a.height,b=i.autosize,v=f.autosizable,C=_&&(b||v);C?ql.plotAutoSize(e,a,i):_&&ql.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=uot(h,i.separators),i._extraFormat=tae(e,oot),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=lot(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=sot(o,u),ql.supplyDataDefaults(u,s,a,i);var x=Object.keys(T.x),k=Object.keys(T.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,ql.linkSubplots(s,i,o,n),ql.cleanPlot(s,i,o,n);var F=!!(n._has&&n._has("cartesian")),B=!!(i._has&&i._has("cartesian")),U=F,G=B;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&eot({_fullLayout:n}),fot(s,i),eae(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=ql.layoutAttributes.width.min,h=ql.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}),ql.sanitizeMargins(n)};ql.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(iu.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,T=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+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:T,size:r.t+_}},p[t]=1}if(!n._replotting)return ql.doAutoMargin(e)}};function hot(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}ql.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),lae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=iu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,_=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 T=v[C][E];o[E]=Math.max(o[E],T)}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"&&t5(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},F=P.val,B=P.size,U=A.val,G=A.size,j=r-o.r-o.l,W=n-o.t-o.b;for(var N in h){if(t5(B)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>F){var ae=(B*H+(re-j)*F)/(H-F),ge=(re*(1-F)+(B-j)*(1-H))/(H-F);ae+ge>u+l&&(u=ae,l=ge)}}if(t5(G)&&h[N].t){var ze=h[N].t.val,Le=h[N].t.size;if(ze>U){var de=(G*ze+(Le-W)*U)/(ze-U),te=(Le*(1-U)+(G-W)*(1-ze))/(ze-U);de+te>c+f&&(c=de,f=te)}}}}}var ke=iu.constrain(r-a.l-a.r,uae,p),Ee=iu.constrain(n-a.t-a.b,fae,_),Se=Math.max(0,r-ke),Ge=Math.max(0,n-Ee);if(Se){var De=(u+l)/Se;De>1&&(u/=De,l/=De)}if(Ge){var xe=(c+f)/Ge;xe>1&&(c/=xe,f/=xe)}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&&(ql.didMarginChange(s,i)||hot(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ne=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ql.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ql.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(iu.isPlainObject(h)){var p={},_;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(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!iu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=iu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var C=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:iu.isArrayBuffer(C)?$at.encode(C):C},d)}return b?h.map(function(E){return l(E,d)}):v?iu.simpleMap(h,iu.identity):iu.isJSDate(h)?iu.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)};ql.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=[ql.previousPromises,u,r.prepareFn,ql.rehover,ql.reselect,o],f=iu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}ql.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&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Qne,y:Qne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[C]=T}}for(iae(r,n,i),s=0;s{"use strict";kb.xmlns="http://www.w3.org/2000/xmlns/";kb.svg="http://www.w3.org/2000/svg";kb.xlink="http://www.w3.org/1999/xlink";kb.svgAttrs={xmlns:kb.svg,"xmlns:xlink":kb.xlink}});var Nh=Te((Zar,dae)=>{"use strict";dae.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=Te(b0=>{"use strict";var Uh=Jl(),Lg=ei(),mot=Lg.strTranslate,Cq=jv(),yot=Nh().LINE_SPACING,got=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(got),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=Pot(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};wot(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 _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"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 T=E.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,x=T.height);var k=+e.attr("x"),M=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,k,M]+")"+mot(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var A=e.attr("text-anchor");k=k-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-x/2}p.attr({x:k,y:M}),r&&r.call(e,_),u(_)})})):s(),e};var _ot=/(<|<|<)/g,xot=/(>|>|>)/g;function bot(e){return e.replace(_ot,"\\lt ").replace(xot,"\\gt ")}var pae=[["$","$"],["\\(","\\)"]];function wot(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Lg.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Lg.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:pae},displayAlign:"left"})},l=function(){a=Lg.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=pae},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-"+Lg.randstr({},64);s=Uh.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(bot(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)Lg.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Uh.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},_=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(),_(),v()}))}var gae={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"},Aot={sub:"0.3em",sup:"-0.6em"},Tot={sub:"-0.21em",sup:"0.42em"},vae="\u200B",mae=["http:","https:","mailto:","",void 0,":"],_ae=b0.NEWLINES=/(\r\n?|\n)/g,Pq=/(<[^<>]*>)/,zq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Sot=//i;b0.BR_TAG_ALL=//gi;var xae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,bae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,wae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Mot=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&sP(n)}var Eot=/(^|;)\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(Pq),s=[],u="",l=0,f=0;fa?s.push(c.slice(0,Math.max(0,_-a))+i):s.push(c.slice(0,_));break}u=""}}return s.join("")};var kot={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Cot=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sP(e){return e.replace(Cot,function(t,r){var n;return r.charAt(0)==="#"?n=Lot(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=kot[r],n||t})}b0.convertEntities=sP;function Lot(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 Pot(e,t){t=t.replace(_ae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(Cq.svg,"tspan");Uh.select(x).attr({class:"line",dy:a*yot+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();x!==k.type&&Lg.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Sot.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Pq),h=0;h{"use strict";var zot=Jl(),uP=hd(),i5=ku(),lP=ei(),Tae=jl(),Iot=yb().isValid;function Rot(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 Lae(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 zae=eq(),Fot=zae.FORMAT_LINK,Bot=zae.DATE_FORMAT_LINK;function Oot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Iq:Iae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Iq(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: "+Fot+"."].join(" ")}function Iae(e,t){return Iq(e,t)+[" And for dates see: "+Bot+".","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:Oot,descriptionOnlyNumbers:Iq,descriptionWithDates:Iae}});var Dd=Te((Qar,Jae)=>{"use strict";var Dae=gc(),R3=Oh(),Kae=Id().dash,Dq=Su().extendFlat,Fae=Lf().templatedArray,$ar=Ff().templateFormatStringDescription,Bae=jc().descriptionWithDates,qot=rf().ONEDAY,yy=qh(),Not=yy.HOUR_PATTERN,Uot=yy.WEEKDAY_PATTERN,Rq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Vot=Dq({},Rq,{values:Rq.values.slice().concat(["sync"])});function Oae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var qae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Nae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Uae={valType:"data_array",editType:"ticks"},Vae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Gae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Hae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Wae={valType:"color",dflt:R3.defaultLine,editType:"ticks"},jae={valType:"color",dflt:R3.lightLine,editType:"ticks"};function Xae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Zae=Dq({},Kae,{editType:"ticks"}),Yae={valType:"boolean",editType:"ticks"};Jae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:R3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Dae({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:Fae("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:[Uot,Not,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:qot},editType:"calc"}),tickmode:Vot,nticks:Oae(),tick0:qae,dtick:Nae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Uae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Vae,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:Gae(),tickwidth:Hae(),tickcolor:Wae,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:Dq({},Kae,{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:Dae({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:Fae("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:R3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Yae,gridcolor:jae,gridwidth:Xae(),griddash:Zae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:R3.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:R3.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:Rq,nticks:Oae("minor"),tick0:qae,dtick:Nae,tickvals:Uae,ticks:Vae,ticklen:Gae("minor"),tickwidth:Hae("minor"),tickcolor:Wae,gridcolor:jae,gridwidth:Xae("minor"),griddash:Zae,showgrid:Yae,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=Te((eor,eoe)=>{"use strict";var Nc=Dd(),$ae=gc(),Qae=Su().extendFlat,Got=Sc().overrideAll;eoe.exports=Got({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:Qae({},Nc.ticks,{dflt:""}),ticklabeloverflow:Qae({},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:$ae({}),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:$ae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((ror,roe)=>{"use strict";var Hot=fP(),Wot=v3().counter,jot=t_(),toe=yb().scales,tor=jot(toe);function cP(e){return"`"+e+"`"}roe.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"?toe[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",_=n+"max",b=n+"mid",v=cP(l+d),C=cP(l+p),E=cP(l+_),T=C+" and "+E,L={};L[p]=L[_]=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[_]={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=Hot),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Wot("coloraxis"),dflt:null,editType:"calc"}),k}});var Bq=Te((ior,ioe)=>{"use strict";var Xot=Su().extendFlat,Zot=nc(),Fq=yb().scales;ioe.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Fq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Fq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Fq.RdBu,editType:"calc"}},coloraxis:Xot({_isSubplotObj:!0,editType:"calc"},Zot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Oq=Te((nor,noe)=>{"use strict";var Yot=ei();noe.exports=function(t){return Yot.isPlainObject(t.colorbar)}});var Uq=Te(Nq=>{"use strict";var qq=ku(),aoe=ei(),ooe=rf(),Kot=ooe.ONEDAY,Jot=ooe.ONEWEEK;Nq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Kot:1;if(!e)return a;if(qq(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=qq(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};Nq.tick0=function(e,t,r,n){if(t==="date")return aoe.cleanDate(e,aoe.dateTick0(r,n%Jot===0?1:0));if(!(n==="D1"||n==="D2"))return qq(e)?Number(e):0}});var Lb=Te((oor,loe)=>{"use strict";var soe=Uq(),$ot=ei().isArrayOrTypedArray,Qot=mp().isTypedArraySpec,est=mp().decodeTypedArraySpec;loe.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 Qot(E)&&(E=est(E)),E!==void 0?E:(u._template||{})[C]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=$ot(d)?"array":h?"linear":"auto",_=n(l+"tickmode",p);if(_==="auto"||_==="sync")n(l+"nticks");else if(_==="linear"){var b=u.dtick=soe.dtick(h,i);u.tick0=soe.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 D3=Te((sor,foe)=>{"use strict";var Vq=ei(),uoe=Dd();foe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?uoe.minor:uoe,l=a?"minor.":"",f=Vq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Vq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Vq.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 Gq=Te((lor,coe)=>{"use strict";coe.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=Te((uor,hoe)=>{"use strict";var hP=ei(),tst=Lf();hoe.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=tst.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Hq=ei(),rst=jl().contrast,doe=Dd(),ist=Gq(),nst=Kd();poe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Hq.isPlainObject(o)||delete r.labelalias;var s=ist(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?rst(a.bgColor):f&&f!==doe.color.dflt?f:l.color;if(Hq.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");nst(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ast}),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 ast(e,t){function r(i,a){return Hq.coerce(e,t,doe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=Te((hor,voe)=>{"use strict";var ost=Gq();voe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=ost(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Wq=Te((dor,moe)=>{"use strict";var u_=ei(),sst=Lf(),lst=Lb(),ust=D3(),fst=s_(),cst=l_(),hst=fP();moe.exports=function(t,r,n){var i=sst.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,F){return u_.coerce(a,i,hst,A,F)}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"),_=o("xref"),b=p==="paper",v=_==="paper",C,E,T,L="left";c?(T="middle",L=v?"left":"right",C=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",C=.5,E=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:E}},"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: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"),lst(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(M.bgColor="black"),cst(a,i,o,"linear",M),fst(a,i,o,"linear",M),ust(a,i,o,"linear",M),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=Te((por,_oe)=>{"use strict";var yoe=ku(),Xq=ei(),dst=Oq(),pst=Wq(),goe=yb().isValid,vst=$l().traceIs;function jq(e,t){var r=t.slice(0,t.length-1);return t?Xq.nestedProperty(e,r).get()||{}:e}_oe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=jq(t,o),f=jq(r,o),c=jq(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 _=vst(r,"contour")&&Xq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Xq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[_,r,[h]];return}}var v=l[s+"min"],C=l[s+"max"],E=yoe(v)&&yoe(C)&&v{"use strict";var xoe=ei(),mst=Lf(),boe=Bq(),yst=nd();woe.exports=function(t,r){function n(c,h){return xoe.coerce(t,r,boe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return xoe.coerce(a,o,boe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=mst.newContainer(r,u,"coloraxis"),o._name=u,yst(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var gst=ei(),_st=yp().hasColorscale,xst=yp().extractOpts;Toe.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?gst.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=xst(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 Moe=ku(),Zq=ei(),bst=yp().extractOpts;Eoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Zq.nestedProperty(r,o).get():r,u=bst(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Zq.aggNums(Math.min,null,a)},p=function(){return Zq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&Moe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&Moe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,u._sync("colorscale",_)}}});var _c=Te((gor,koe)=>{"use strict";var dP=yb(),F3=yp();koe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Bq(),supplyLayoutDefaults:Aoe(),handleDefaults:nd(),crossTraceDefaults:Soe(),calc:gp(),scales:dP.scales,defaultScale:dP.defaultScale,getScale:dP.get,isValidScale:dP.isValid,hasColorscale:F3.hasColorscale,extractOpts:F3.extractOpts,extractScale:F3.extractScale,flipScale:F3.flipScale,makeColorScaleFunc:F3.makeColorScaleFunc,makeColorScaleFuncFromTrace:F3.makeColorScaleFuncFromTrace}});var lc=Te((_or,Loe)=>{"use strict";var Coe=ei(),wst=mp().isTypedArraySpec;Loe.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 Coe.isPlainObject(t)&&(Coe.isArrayOrTypedArray(t.size)||wst(t.size))}}});var B3=Te((xor,Poe)=>{"use strict";var Ast=ku();Poe.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 Ast(u)&&u>0?Math.max(u,a):0}}});var iv=Te(_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=kst;var Yq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Est=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function kst(e){var t=[];return e.replace(Est,function(r,n,i){var a=n.toLowerCase();for(i=Lst(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Yq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Pst=n5(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},nf="M0,0Z",Doe=Math.sqrt(2),f_=Math.sqrt(3),Kq=Math.PI,Jq=Math.cos,$q=Math.sin;Noe.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/Doe,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/Doe,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=Kq/2.5,i=2*e*Jq(n),a=2*e*$q(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=Kq/4,i=2*e*Jq(n),a=2*e*$q(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 Foe,Boe,Ooe,qoe;function of(e,t,r){if((!e||e%360===0)&&!t)return r;if(Ooe===e&&qoe===t&&Foe===r)return Boe;Ooe=e,qoe=t,Foe=r;function n(b,v){var C=Jq(b),E=$q(b),T=v[0],L=v[1]+(t||0);return[T*C-L*E,T*E+L*C]}for(var i=e/180*Kq,a=0,o=0,s=Pst(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),zst=uc.numberFormat,Rb=ku(),nN=hd(),mP=$l(),Jd=jl(),Ist=_c(),o5=uc.strTranslate,yP=Wf(),Rst=jv(),Dst=Nh(),Fst=Dst.LINE_SPACING,Joe=X1().DESELECTDIM,Bst=lc(),Ost=B3(),qst=iv().appendArrayPointValue,Ul=sse.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(Jd.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",Qq(Ust(f))),u&&e.style("text-shadow",u==="auto"?yP.makeTextShadow(Jd.contrast(a)):Qq(u)),l&&e.style("text-decoration-line",Qq(Vst(l)))};function Qq(e){return e==="none"?void 0:e}var Nst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Ust(e){return Nst[e]}function Vst(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",o5(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||"";Jd.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(Jd.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 $oe(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,_="scatterfill-"+t.uid;if(n&&(_="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(tse,r,_,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Ul.gradient,r,_,p,a.colorscale,"fill")}else t.fillcolor&&e.call(Jd.fill,t.fillcolor)}Ul.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};$oe(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&&$oe(i,n[0].trace,t,r)})};var Voe=Uoe();Ul.symbolNames=[];Ul.symbolFuncs=[];Ul.symbolBackOffs=[];Ul.symbolNeedLines={};Ul.symbolNoDot={};Ul.symbolNoFill={};Ul.symbolList=[];Object.keys(Voe).forEach(function(e){var t=Voe[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 Gst=Ul.symbolNames.length,Hst="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>=Gst||e>=400?0:Math.floor(Math.max(e,0))};function Qoe(e,t,r,n){var i=e%100;return Ul.symbolFuncs[i](t,r,n)+(e>=200?Hst:"")}var Goe=zst("~f"),ese={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=ese[n];return tse(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function tse(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=sN(e,r),c=oN(e,r);t.attr("d",Qoe(l,u,f,c))}var h=!1,d,p,_;if(e.so)_=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(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=Jd.defaultLine:p=s.color,uc.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 v=e.mld||(s||{}).dash;if(v&&Ul.dashLine(t,v,_),e.om)t.call(Jd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var C=o.gradient,E=e.mgt;E?h=!0:E=C&&C.type,uc.isArrayOrTypedArray(E)&&(E=E[0],ese[E]||(E=0));var T=o.pattern,L=Ul.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(E&&E!=="none"){var k=e.mgc;k?h=!0:k=C.color;var M=r.uid;h&&(M+="-"+e.i),Ul.gradient(t,i,M,E,[[0,k],[1,d]],"fill")}else if(x){var m=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,m=!0);var A=L(P,e.i,a&&a.color||null),F=L(T.bgcolor,e.i,null),B=T.fgopacity,U=L(T.size,e.i,8),G=L(T.solidity,e.i,.3);m=m||e.mcc||uc.isArrayOrTypedArray(T.shape)||uc.isArrayOrTypedArray(T.path)||uc.isArrayOrTypedArray(T.bgcolor)||uc.isArrayOrTypedArray(T.fgcolor)||uc.isArrayOrTypedArray(T.size)||uc.isArrayOrTypedArray(T.solidity);var j=r.uid;m&&(j+="-"+e.i),Ul.pattern(t,"point",i,j,x,U,G,e.mcc,T.fillmode,F,A,B)}else uc.isArrayOrTypedArray(d)?Jd.fill(t,d[e.i]):Jd.fill(t,d);_&&Jd.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=Bst.isBubble(e)?Ost(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(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Joe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var _=i.size,b=a.size,v=o.size,C=b!==void 0,E=v!==void 0;return mP.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||_/2;return T.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:Jd.addOpacity(c,Joe))},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){Jd.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",Qoe(Ul.symbolNumber(s),u,sN(o,t),oN(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={};qst(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=ise(s,t),_=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:_}).text(l).call(yP.convertToTspans,r).call(rse,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=ise(n,t);Jd.fill(i,a);var u=mP.traceIs(t,"bar-like");rse(i,o,s,n.mrc2||n.mrc,u)})}};var Hoe=.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||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Ul.applyBackoff=ose;Ul.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Rst.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 tN=0,Xst=1e4;Ul.bBox=function(e,t,r){r||(r=Woe(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=Woe(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 tN>=Xst&&(Ul.savedBBoxes={},tN=0),r&&(Ul.savedBBoxes[r]=d),tN++,uc.extendFlat({},d)};function Woe(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",aN(t,r))};function aN(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+=o5(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 Zst=/\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(Zst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Yst=/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(Yst);t===1&&r===1?n=[]:n=[o5(o,s),"scale("+t+","+r+")",o5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function oN(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=oN;var a5=Math.atan2,Pb=Math.cos,q3=Math.sin;function joe(e,t){var r=t[0],n=t[1];return[r*Pb(e)-n*q3(e),r*q3(e)+n*Pb(e)]}var Xoe,Zoe,Yoe,Koe,rN,iN;function sN(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=a5(h[1]-i,h[0]-n),p=a5(c[1]-i,c[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,C=Xoe/180*Math.PI,E=Zoe/180*Math.PI,T=C-b,L=Pb(E)*q3(T),x=q3(E)*Pb(v)-Pb(E)*q3(v)*Pb(T);_=-a5(L,x)-Math.PI,Xoe=l,Zoe=f}var k=joe(d,[Pb(_),0]),M=joe(p,[q3(_),0]);r=a5(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(iN===t.uid&&e.i===rN+1)&&(r=null)}if(a==="previous"&&!t._geo)if(iN===t.uid&&e.i===rN+1&&Rb(n)&&Rb(i)){var m=n-Yoe,P=i-Koe,A=t.line&&t.line.shape||"",F=A.slice(A.length-1);F==="h"&&(P=0),F==="v"&&(m=0),r+=a5(P,m)/Math.PI*180+90}else r=null}return Yoe=n,Koe=i,rN=e.i,iN=t.uid,r}Ul.getMarkerAngle=sN});var Fb=Te((Sor,cse)=>{"use strict";var N3=Jl(),Kst=ku(),Jst=Cc(),lN=$l(),Db=ei(),lse=Db.strTranslate,gP=Mu(),_P=jl(),U3=Wf(),use=X1(),$st=Nh().OPPOSITE_SIDE,fse=/ [XY][0-9]* /,uN=1.6,fN=1.6;function Qst(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(),_=!1,b=d&&d.font?d.font:{},v=b.family,C=b.size,E=b.color,T=b.weight,L=b.style,x=b.variant,k=b.textcase,M=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,F=r.subtitlePlaceholder,B=(i.title||{}).subtitle||{text:"",font:{}},U=(B.text||"").trim(),G=!1,j=1,W=B.font,N=W.family,H=W.size,re=W.color,ae=W.weight,ge=W.style,ze=W.variant,Le=W.textcase,de=W.lineposition,te=W.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf("colorbar")!==-1&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Se(wt,Mt){return wt===void 0||Mt===void 0?!1:wt.replace(fse," % ")===Mt.replace(fse," % ")}p===""?h=0:Se(p,o)&&(Ee||(p=""),h=.2,_=!0),A&&(U===""?j=0:Se(U,F)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Db.templateString(p,r._meta):n._meta&&(p=Db.templateString(p,n._meta));var Ge=p||U||Ee,De;c||(c=Db.ensureSingle(n._infolayer,"g","g-"+t),De=n._hColorbarMoveTitle);var xe=c.selectAll("text."+t).data(Ge?[0]:[]);xe.enter().append("text"),xe.text(p).attr("class",t),xe.exit().remove();var Ne=null,ce=t+"-subtitle",je=U||Ee;if(A&&(Ne=c.selectAll("text."+ce).data(je?[0]:[]),Ne.enter().append("text"),Ne.text(U).attr("class",ce),Ne.exit().remove()),!Ge)return c;function Qe(wt,Mt){Db.syncOrAsync([gt,qt],{title:wt,subtitle:Mt})}function gt(wt){var Mt=wt.title,Bt=wt.subtitle,Zt;!f&&De&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||De)&&(Zt+=lse(0,(f.offset||0)-(De||0)))):Zt=null,Mt.attr("transform",Zt);function Et(He){if(He){var nt=N3.select(He.node().parentNode).select("."+ce);if(!nt.empty()){var tt=He.node().getBBox();if(tt.height){var It=tt.y+tt.height+uN*H;nt.attr("y",It)}}}}if(Mt.style("opacity",h*_P.opacity(E)).call(gP.font,{color:_P.rgb(E),size:N3.round(C,2),family:v,weight:T,style:L,variant:x,textcase:k,shadow:m,lineposition:M}).attr(l).call(U3.convertToTspans,e,Et),Bt&&!Bt.empty()){var Ae=c.select("."+t+"-math-group"),ot=Mt.node().getBBox(),At=Ae.node()?Ae.node().getBBox():void 0,vt=At?At.y+At.height+uN*H:ot.y+ot.height+fN*H,Je=Db.extendFlat({},l,{y:vt});Bt.attr("transform",Zt),Bt.style("opacity",j*_P.opacity(re)).call(gP.font,{color:_P.rgb(re),size:N3.round(H,2),family:N,weight:ae,style:ge,variant:ze,textcase:Le,shadow:te,lineposition:de}).attr(Je).call(U3.convertToTspans,e)}return Jst.previousPromises(e)}function qt(wt){var Mt=wt.title,Bt=N3.select(Mt.node().parentNode);if(u&&u.selection&&u.side&&p){Bt.attr("transform",null);var Zt=$st[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=Kst(u.pad)?u.pad:2,ot=gP.bBox(Bt.node()),At={t:0,b:0,l:0,r:0},vt=e._fullLayout._reservedMargin;for(var Je in vt)for(var He in vt[Je]){var nt=vt[Je][He];At[He]=Math.max(At[He],nt)}var tt={left:At.l,top:At.t,right:n.width-At.r,bottom:n.height-At.b},It=u.maxShift||Et*(tt[u.side]-ot[u.side]),Yt=0;if(It<0)Yt=It;else{var cr=u.offsetLeft||0,_r=u.offsetTop||0;ot.left-=cr,ot.right-=cr,ot.top-=_r,ot.bottom-=_r,u.selection.each(function(){var Ut=gP.bBox(this);Db.bBoxIntersect(ot,Ut,Ae)&&(Yt=Math.max(Yt,Et*(Ut[u.side]-ot[Zt])+Ae))}),Yt=Math.min(It,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||It<0){var yr={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Bt.attr("transform",lse(yr[0],yr[1]))}}}xe.call(Qe,Ne);function at(wt,Mt){wt.text(Mt).on("mouseover.opacity",function(){N3.select(this).transition().duration(use.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){N3.select(this).transition().duration(use.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?xe.on(".opacity",null):(at(xe,o),_=!0),xe.call(U3.makeEditable,{gd:e}).on("edit",function(wt){s!==void 0?lN.call("_guiRestyle",e,a,wt,s):lN.call("_guiRelayout",e,a,wt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(wt){this.text(wt||" ").call(U3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ke=xe.node().getBBox(),Ct=Ke.y+Ke.height+fN*H;Ne.attr("y",Ct)}U?Ne.on(".opacity",null):(at(Ne,F),G=!0),Ne.call(U3.makeEditable,{gd:e}).on("edit",function(wt){lN.call("_guiRelayout",e,"title.subtitle.text",wt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(wt){this.text(wt||" ").call(U3.positionText,Ne.attr("x"),Ne.attr("y"))})}return xe.classed("js-placeholder",_),Ne&&!Ne.empty()&&Ne.classed("js-placeholder",G),c}cse.exports={draw:Qst,SUBTITLE_PADDING_EM:fN,SUBTITLE_PADDING_MATHJAX_EM:uN}});var xy=Te((Mor,mse)=>{"use strict";var elt=Jl(),tlt=c3().utcFormat,Mc=ei(),rlt=Mc.numberFormat,gy=ku(),c_=Mc.cleanNumber,ilt=Mc.ms2DateTime,hse=Mc.dateTime2ms,_y=Mc.ensureNumber,dse=Mc.isArrayOrTypedArray,h_=rf(),xP=h_.FP_SAFE,Sm=h_.BADNUM,nlt=h_.LOG_CLIP,alt=h_.ONEWEEK,bP=h_.ONEDAY,wP=h_.ONEHOUR,pse=h_.ONEMIN,vse=h_.ONESEC,AP=Wc(),MP=qh(),TP=MP.HOUR_PATTERN,SP=MP.WEEKDAY_PATTERN;function s5(e){return Math.pow(10,e)}function cN(e){return e!=null}mse.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],k=t.range[1];return .5*(x+k-2*nlt*Math.abs(x-k))}else return Sm}function o(T,L,x,k){if((k||{}).msUTC&&gy(T))return+T;var M=hse(T,x||t.calendar);if(M===Sm)if(gy(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);M=hse(new Date(P))+m/10}else return Sm;return M}function s(T,L,x){return ilt(T,L,x||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(cN(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 Sm}function f(T,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,M=k*T,m=0,P=0;PF)m=P+1;else{m=M<(A+F)/2?P:P+1;break}}var B=t._B[m]||0;return isFinite(B)?p(T,t._m2,B):0},v=function(T){var L=t._rangebreaks.length;if(!L)return _(T,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return _(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_y,t.l2c=t.type==="log"?s5:_y,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return s5(v(T))}: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(T){return t.l2p(c_(T))},t.p2d=t.p2r=v,t.cleanPos=_y):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(c_(T),L)},t.r2d=t.r2c=function(T){return s5(c_(T))},t.d2c=t.r2l=c_,t.c2d=t.l2r=_y,t.c2r=a,t.l2d=s5,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return s5(v(T))},t.r2p=function(T){return t.l2p(c_(T))},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(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(v(T),L,x)},t.cleanPos=function(T){return Mc.cleanDate(T,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(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_y,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:_y(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,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=c,t.l2r=t.c2r=_y,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:_y(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var m in M)if(m!==n){var P=r[AP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],F=[];for(x=0;xP[1]&&(k[m?0:1]=x),k[0]===k[1]){var A=t.l2r(L),F=t.l2r(x);if(L!==void 0){var B=A+1;x!==void 0&&(B=Math.min(B,F)),k[m?1:0]=B}if(x!==void 0){var U=F+1;L!==void 0&&(U=Math.max(U,A)),k[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=Mc.nestedProperty(t,T).get(),k,M;if(t.type==="date"?M=Mc.dfltRange(t.calendar):i==="y"?M=MP.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||MP.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){Mc.nestedProperty(t,T).set(M);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[T]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var A=Mc.constrain(t.r2l(x[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);x[0]=t.l2r(A-1e3),x[1]=t.l2r(A+1e3);break}}else{if(!gy(x[k]))if(!(m||P)&&gy(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[T]=M;break}if(x[k]<-xP?x[k]=-xP:x[k]>xP&&(x[k]=xP),x[0]===x[1]){var F=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=F,x[1]+=F}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=AP.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=T&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var m=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),A=i==="y";if(A?(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 F,B;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(F=0;FP&&(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*(A?P:m)),F=0;FM&&(M+=7,mM&&(M+=24,m=k&&m=k&&T=te.min&&(gete.max&&(te.max=ze),Le=!1)}Le&&P.push({min:ge,max:ze})}};for(x=0;x{"use strict";var yse=ku(),hN=ei(),olt=rf().BADNUM,EP=hN.isArrayOrTypedArray,slt=hN.isDateTime,llt=hN.cleanNumber,gse=Math.round;xse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(EP(i)&&!i.length)return"-";if(!a&&dlt(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function _se(e){return Math.max(1,(e-1)/1e3)}function hlt(e,t){for(var r=e.length,n=_se(r),i=0,a=0,o={},s=0;si*2}function dlt(e){return EP(e[0])&&EP(e[1])}});var Mm=Te((kor,kse)=>{"use strict";var plt=Jl(),Tse=ku(),d_=ei(),kP=rf().FP_SAFE,vlt=$l(),mlt=Mu(),Sse=Wc(),ylt=Sse.getFromId,glt=Sse.isLinked;kse.exports={applyAutorangeOptions:Ese,getAutoRange:dN,makePadFn:pN,doAutoRange:xlt,findExtremes:blt,concatExtremes:yN};function dN(e,t){var r,n,i=[],a=e._fullLayout,o=pN(a,t,0),s=pN(a,t,1),u=yN(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=E-o(x)-s(k),P>T?A/P>L&&(M=x,m=k,L=A/P):A/E>L&&(M={val:x.val,nopad:1},m={val:k.val,nopad:1},L=A/E));function F(W,N){return Math.max(W,s(N))}if(c===h){var B=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(F,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else C?i=[Math.max(0,B),Math.max(1,U)]:i=[B,U]}else v?(M.val>=0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-M.val-bse(t,x.val,k.val))/(E-o(M)-s(m)),i=[M.val-L*o(M),m.val+L*s(m)];return i=Ese(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function bse(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),k=T(r.vpadplus||r.vpad),M=T(r.vpadminus||r.vpad);if(!l){if(C=1/0,E=-1/0,u)for(c=0;c0&&(C=h),h>E&&h-kP&&(C=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function vN(e,t,r,n){Mse(e,t,r,n,wlt)}function mN(e,t,r,n){Mse(e,t,r,n,Alt)}function Mse(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 Ase(e){return Tse(e)&&Math.abs(e)=t}function Tlt(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 Slt(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=Tlt(r,t),n=Slt(n,t),[r,n]}});var wu=Te((Lor,Jse)=>{"use strict";var w0=Jl(),Vh=ku(),G3=Cc(),u5=$l(),Du=ei(),H3=Du.strTranslate,Bb=Wf(),Mlt=Fb(),f5=jl(),Xv=Mu(),Elt=Dd(),Cse=Uq(),Cor=qh(),$d=rf(),klt=$d.ONEMAXYEAR,zP=$d.ONEAVGYEAR,IP=$d.ONEMINYEAR,Clt=$d.ONEMAXQUARTER,bN=$d.ONEAVGQUARTER,RP=$d.ONEMINQUARTER,Llt=$d.ONEMAXMONTH,W3=$d.ONEAVGMONTH,DP=$d.ONEMINMONTH,Zv=$d.ONEWEEK,Bp=$d.ONEDAY,p_=Bp/2,wy=$d.ONEHOUR,c5=$d.ONEMIN,FP=$d.ONESEC,Plt=$d.ONEMILLI,zlt=$d.ONEMICROSEC,Ob=$d.MINUS_SIGN,OP=$d.BADNUM,wN={K:"zeroline"},AN={K:"gridline",L:"path"},TN={K:"minor-gridline",L:"path"},Nse={K:"tick",L:"path"},Lse={K:"tick",L:"text"},Pse={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(),l5=qP.MID_SHIFT,qb=qP.CAP_SHIFT,h5=qP.LINE_SPACING,Ilt=qP.OPPOSITE_SIDE,BP=3,il=Jse.exports={};il.setConvert=xy();var Rlt=V3(),Ay=Wc(),Dlt=Ay.idSort,Flt=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 Use=Mm();il.getAutoRange=Use.getAutoRange;il.findExtremes=Use.findExtremes;var Blt=1e-4;function kN(e){var t=(e[1]-e[0])*Blt;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")+Bp*1.5:a.exactMonths>o?e=il.tickIncrement(e,"M1","reverse")+Bp*15.5:e-=p_;var u=il.tickIncrement(e,r);if(u<=n)return u}return e}il.prepMinorTicks=function(e,t,r){if(!t.minor.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?gN(l,f)?l===2*Zv&&f===2*Bp&&(e.dtick=Zv):l===2*Zv&&f===3*Bp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Bp:Rse(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":gN(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"?gN(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}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function gN(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=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>=IP?l>=IP&&l<=klt?c=l:c=zP:r===bN&&f>=RP?l>=RP&&l<=Clt?c=l:c=bN:f>=DP?l>=DP&&l<=Llt?c=l:c=W3:r===Zv&&f>=Zv?c=Zv:f>=Bp?c=Bp: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,_=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]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=T?t:Du.extendFlat({},t,t.minor);if(L?il.prepMinorTicks(x,t,r):il.prepTicks(x,r),x.tickmode==="array"){T?(b=[],p=Dse(t,!L)):(v=[],_=Dse(t,!L));continue}if(x.tickmode==="sync"){b=[],p=Glt(t);continue}var k=kN(l),M=k[0],m=k[1],P=Vh(x.dtick),A=n==="log"&&!(P||x.dtick.charAt(0)==="L"),F=il.tickFirst(x,r);if(T){if(t._tmin=F,F=m:U<=m;U=il.tickIncrement(U,W,f,i)){if(T&&G++,x.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===B)break;B=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var H=(v[1].value-v[0].value)*(s?-1:1);put(H,t.tickformat)||(u=!1)}if(!u)C=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Ct,wt){return Ct.value-wt.value}).filter(function(Ct,wt,Mt){return wt===0||Ct.value!==Mt[wt-1].value});var ae=re.map(function(Ct,wt){return Ct.minor===void 0&&!Ct.skipLabel?wt:null}).filter(function(Ct){return Ct!==null});ae.forEach(function(Ct){u.map(function(wt){var Mt=Ct+wt;Mt>=0&&Mt-1;Ge--){if(b[Ge].drop){b.splice(Ge,1);continue}b[Ge].value=xN(b[Ge].value,t);var ce=t.c2p(b[Ge].value);(De?Ne>ce-xe:Neh||Bth&&(Mt.periodX=h),Bti&&hzP)t/=zP,n=i(10),e.dtick="M"+12*by(t,n,LP);else if(a>W3)t/=W3,e.dtick="M"+by(t,1,Fse);else if(a>Bp){if(e.dtick=by(t,Bp,e._hasDayOfWeekBreaks?[1,2,7,14]:Hlt),!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,Fse):a>c5?e.dtick=by(t,c5,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=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,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))):zN(e)?(e.tick0=0,n=1,e.dtick=by(t,n,Wlt)):(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 Wse(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>=Bp&&i<=10||t>=Bp*15)e._tickround="d";else if(t>=c5&&i<=16||t>=wy)e._tickround="M";else if(t>=FP&&i<=19||t>=c5)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&&(j3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!CN(u)||j3(e.exponentformat)&&e.exponentformat==="SI extended"&&!LN(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"?Hse:Gse,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=p5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function Xlt(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=d5(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"||j3(p)&&p!=="SI extended"&&CN(h)||j3(p)&&p==="SI extended"&&LN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Ob)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":Ob)+d:(t.text=d5(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 _=String(t.text).charAt(0);(_==="0"||_==="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 Zlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Ylt(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 Klt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=d5(t.x,e,i,n)}function Jlt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=$lt(a);if(o[1]>=100)t.text=d5(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=Ob+t.text)}}}else t.text=d5(t.x,e,i,n)}function $lt(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 Xse=["f","p","n","\u03BC","m","","k","M","G","T"],Qlt=["q","r","y","z","a",...Xse,"P","E","Z","Y","R","Q"],j3=e=>["SI","SI extended","B"].includes(e);function CN(e){return e>14||e<-15}function LN(e){return e>32||e<-30}function eut(e,t){return j3(t)?!!(t==="SI extended"&&LN(e)||t!=="SI extended"&&CN(e)):!1}function d5(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]};Wse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,Ob);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":j3(o)&&(e+=o==="SI extended"?Qlt[s/3+10]:Xse[s/3+5])}return i?Ob+e:e}il.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*W3}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&&EN(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),EN(t,p,n,!0),EN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=dut(t,n));var _=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=il.calcTicks(t),T=[t.mirror,v,C].join("_");for(a=0;a0?Bt.bottom-wt:0,Mt))));var ot=0,At=0;if(t._shiftPusher&&(ot=Math.max(Mt,Bt.height>0?Ke==="l"?wt-Bt.left:Bt.right-wt:0),t.title.text!==u._dfltTitle[f]&&(At=(t._titleStandoff||0)+(t._titleScoot||0),Ke==="l"&&(At+=qse(t))),t._fullDepth=Math.max(ot,At)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var vt=[0,1],Je=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ke==="b"?Zt[Ke]=t._depth:(Zt[Ke]=t._depth=Math.max(Bt.width>0?wt-Bt.top:0,Mt),vt.reverse()),Bt.width>0){var He=Bt.right-(t._offset+t._length);He>0&&(Zt.xr=1,Zt.r=He);var nt=t._offset-Bt.left;nt>0&&(Zt.xl=0,Zt.l=nt)}}else if(Ke==="l"?(t._depth=Math.max(Bt.height>0?wt-Bt.left:0,Mt),Zt[Ke]=t._depth-Je):(t._depth=Math.max(Bt.height>0?Bt.right-wt:0,Mt),Zt[Ke]=t._depth+Je,vt.reverse()),Bt.height>0){var tt=Bt.bottom-(t._offset+t._length);tt>0&&(Zt.yb=0,Zt.b=tt);var It=t._offset-Bt.top;It>0&&(Zt.yt=1,Zt.t=It)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[vt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ke]+=qse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[Ct]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[Ct]+=Mt),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][vt[1]]))}at&&(Ae=u5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Ose(Zt,t.automargin),Ose(Et,t.automargin)),G3.autoMargin(e,PN(t),Zt),G3.autoMargin(e,Yse(t),Et),G3.autoMargin(e,Kse(t),Ae)}),Du.syncOrAsync(gt)}};function Ose(e,t){if(e){var r=Object.keys(Pse).reduce(function(n,i){return t.indexOf(i)!==-1&&Pse[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 tut(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 H3(i+e._offset+e.l2p(SN(h))+r,a+n)}:function(h){return H3(a+n,i+e._offset+e.l2p(SN(h))+r)}};function SN(e){return e.periodX!==void 0?e.periodX:e.x}function aut(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*qb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=BP),u&&f==="top"&&(h-=d*(1-qb)),(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(B){return n.indexOf(B)!==-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,_=h?e.ticklen:0;if(c?_*=-1:f&&(_=0),h&&(d+=_,r)){var b=Du.deg2rad(r);d=_*Math.cos(b)+1,p=_*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,T,L,x=0,k=e.side,M=e._id.charAt(0),m=e.tickangle,P;if(M==="x")P=!c&&k==="bottom"||c&&k==="top",L=P?1:-1,c&&(L*=-1),C=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=l5:m===-90&&k==="bottom"?T=qb:m===90&&k==="top"?T=l5:T=.5,x=l5/2*(m/90)),v.xFn=function(B){return B.dx+C+x*B.fontSize},v.yFn=function(B){return B.dy+E+B.fontSize*T},v.anchorFn=function(B,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(B,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(M==="y"){if(P=!c&&k==="left"||c&&k==="right",L=P?1:-1,c&&(L*=-1),C=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&k==="left"||m===90&&k==="right"?T=qb:T=.5),c){var A=Vh(m)?+m:0;if(A!==0){var F=Du.deg2rad(A);x=Math.abs(Math.sin(F))*qb*L,T=0}}v.xFn=function(B){return B.dx+t-(C+B.fontSize*T)*L+x*B.fontSize},v.yFn=function(B){return B.dy+E+B.fontSize*l5},v.anchorFn=function(B,U){return Vh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(B,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 f5.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,[Nse]),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 _=p?h:d;if(_){var b=_.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 f5.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,[AN,TN])}};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 Dlt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(f5.stroke,t.zerolinecolor||f5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),UP(t,[wN])};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,[Lse]),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 ge=w0.select(this),ze=ge.select(".text-math-group"),Le=u.anchorFn(ae,re),de=r.transFn.call(ge.node(),ae)+(Vh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Bb.lineCount(ge),ke=h5*ae.fontSize,Ee=u.heightFn(ae,Vh(re)?+re:0,(te-1)*ke);if(Ee&&(de+=H3(0,Ee)),ze.empty()){var Se=ge.select("text");Se.attr({transform:de,"text-anchor":Le}),Se.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ge=Xv.bBox(ze.node()).width,De=Ge*{end:-.5,start:.5}[Le];ze.attr("transform",de+H3(De,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",ge=0,ze=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Le=Du.simpleMap(t.range,t.r2l);ge=t.l2p(Le[0])+t._offset,ze=t.l2p(Le[1])+t._offset}var de=Math.min(ge,ze),te=Math.max(ge,ze),ke=t.side,Ee=1/0,Se=-1/0;c.each(function(Ne){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var Qe=Xv.bBox(ce.node()),gt=0;ae?(Qe.right>te||Qe.leftte||Qe.top+(t.tickangle?0:Ne.fontSize/4)t["_visibleLabelMin_"+Le._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 _=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var H=0,re=[],ae,ge=1;c.each(function(Zt){H=Math.max(H,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=MN(this),ot=Xv.bBox(Ae.node());ge=Math.max(ge,Bb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-ot.width/2,right:Et+ot.width/2+2,width:ot.width+2})});var ze=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Le=s.length,de=Math.abs((s[Le-1].x-s[0].x)*t._m)/(Le-1),te=ze?de/2:de,ke=ze?t.ticklen:H*1.25*ge,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Se=te/Ee,Ge=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),De=Ge.find(function(Zt){return Math.abs(Math.cos(Zt))<=Se});De===void 0&&(De=Ge.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(F=G,m[M]=P[M]=B[M])}var W=Math.abs(F-A);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 out(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(f5.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 qse(e){var t=e.title.font.size,r=(e.title.text.match(Bb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(qb+r*h5):r?t*(r+1)*h5:t}function sut(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*qb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(l5+s*h5));else{var u=p5(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 _=t._selections[t._id+"tick"];if(p={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xv.getTranslate(_.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Mlt.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)===OP)&&(Zse(t,0)||!lut(e,t,r,n)||uut(e,t))};il.clipEnds=function(e,t){return t.filter(function(r){return Zse(e,r.x)})};function Zse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=zlt:/%L/.test(t)?e>=Plt:/%[SX]/.test(t)?e>=FP:/%M/.test(t)?e>=c5:/%[HI]/.test(t)?e>=wy:/%p/.test(t)?e>=p_:/%[Aadejuwx]/.test(t)?e>=Bp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=DP:/%[q]/.test(t)?e>=RP:/%[Yy]/.test(t)?e>=IP:!0}});var IN=Te((Por,$se)=>{"use strict";$se.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 RN=Te((zor,Qse)=>{"use strict";var vut=IN();Qse.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&&(vut(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var tle=Te((Ior,ele)=>{var mut={left:0,top:0};ele.exports=yut;function yut(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=gut(t);return r[0]=n-a.left,r[1]=i-a.top,r}function gut(e){return e===window||e===document||e===document.body?mut:e.getBoundingClientRect()}});var VP=Te((Ror,rle)=>{"use strict";var _ut=mq();function xut(){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}rle.exports=_ut&&xut()});var nle=Te((Dor,ile)=>{"use strict";ile.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 sle=Te((For,ole)=>{"use strict";var ale=ei(),but=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ole.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=ale.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=ale.constrain(Math.floor(r*3),0,2),but[r][t]}});var ule=Te((Bor,lle)=>{"use strict";var wut=k3(),Aut=WL(),Tut=HM().getGraphDiv,Sut=NM(),DN=lle.exports={};DN.wrapped=function(e,t,r){e=Tut(e),e._fullLayout&&Aut.clear(e._fullLayout._uid+Sut.HOVERID),DN.raw(e,t,r)};DN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&wut.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=Te((Oor,dle)=>{"use strict";var Mut=tle(),FN=gq(),Eut=VP(),kut=ei().removeElement,Cut=qh(),Nb=dle.exports={};Nb.align=nle();Nb.getCursor=sle();var cle=ule();Nb.unhover=cle.wrapped;Nb.unhoverRaw=cle.raw;Nb.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,Eut?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var x=c[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function hle(){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}Nb.coverSlip=hle;function fle(e){return Mut(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Em=Te((qor,ple)=>{"use strict";ple.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 yle=Te((Nor,mle)=>{"use strict";var BN=Em(),v5="data-savedcursor",vle="!!";mle.exports=function(t,r){var n=t.attr(v5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var ON=gc(),Lut=Oh();gle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Lut.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ON({editType:"legend"}),grouptitlefont:ON({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:ON({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var y5=Te(m5=>{"use strict";m5.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};m5.isVertical=function(t){return t.orientation!=="h"};m5.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};m5.getId=function(t){return t._id||"legend"}});var UN=Te((Gor,_le)=>{"use strict";var GP=$l(),Yv=ei(),Put=Lf(),zut=Gf(),Iut=qN(),Rut=_3(),NN=y5();function Dut(e,t,r,n,i){var a=t[e]||{},o=Put.newContainer(r,e);function s(H,re){return Yv.coerce(a,o,Iut,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,ge=f;return Yv.coerce(ae,ge,zut,H,re)},h=r.font||{},d=Yv.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,_=!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 ge=H.legend.length;ge(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"),M=s("yref"),m=s("xref"),P=k==="h",A=M==="paper",F=m==="paper",B,U,G,j="left";P?(B=0,GP.getComponentMethod("rangeslider","isVisible")(t.xaxis)?A?(U=1.1,G="bottom"):(U=1,G="top"):A?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",F?B=1.02:(B=1,j="right")),Yv.coerce(a,o,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:B}},"x"),Yv.coerce(a,o,{y:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:U}},"y"),s("traceorder",b),NN.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)}}}_le.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var v_=$l(),VN=ei(),Fut=VN.pushUnique,But=y5(),xle=!0;GN.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"&&xle&&r.data&&r._context.showTips&&(VN.notifier(VN._(r,"Double-click on legend to isolate one trace"),"long"),xle=!1);var u=s==="togglegroup",l=a.hiddenlabels?a.hiddenlabels.slice():[],f=r._fullData,c=(a.shapes||[]).filter(function(at){return at.showlegend}),h=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,_,b,v,C,E,T,L={},x=[],k=[],M=[];function m(at,Ke){var Ct=x.indexOf(at),wt=L.visible;return wt||(wt=L.visible=[]),x.indexOf(at)===-1&&(x.push(at),Ct=x.length-1),wt[Ct]=Ke,Ct}var P=(a.shapes||[]).map(function(at){return at._input}),A=!1;function F(at,Ke){P[at].visible=Ke,A=!0}function B(at,Ke){if(!(o.groupTitle&&!u)){var Ct=at._fullInput||at,wt=Ct._isShape,Mt=Ct.index;Mt===void 0&&(Mt=Ct._index);var Bt=Ct.visible===!1?!1:Ke;wt?F(Mt,Bt):m(Mt,Bt)}}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(_=0;_{"use strict";ble.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var Tle=Te((jor,Ale)=>{"use strict";var wle=$l(),jN=y5();Ale.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 _(H,re,ae){if(r.visible!==!1&&!(n&&H!==r._id))if(re===""||!jN.isGrouped(r)){var ge="~~i"+c;u.push(ge),s[ge]=[ae],c++}else u.indexOf(re)===-1?(u.push(re),l=!0,s[re]=[ae]):s[re].push(ae)}for(d=0;dF&&(A=F)}m[d][0]._groupMinRank=A,m[d][0]._preGroupSort=d}var B=function(H,re){return H[0]._groupMinRank-re[0]._groupMinRank||H[0]._preGroupSort-re[0]._preGroupSort},U=function(H,re){return H.trace.legendrank-re.trace.legendrank||H._preSort-re._preSort};for(m.forEach(function(H,re){H[0]._preGroupSort=re}),m.sort(B),d=0;d{"use strict";var HP=ei();function Sle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ub.formatPiePercent=function(t,r){var n=Sle((t*100).toPrecision(3));return HP.numSeparate(n,r)+"%"};Ub.formatPieValue=function(t,r){var n=Sle(t.toPrecision(10));return HP.numSeparate(n,r)};Ub.getFirstFilled=function(t,r){if(HP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var Out=Mu(),qut=jl();Mle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?Out.pointStyle(t,n,i,r):qut.fill(t,r.color)}});var X3=Te((Yor,Lle)=>{"use strict";var kle=jl(),Cle=m_().castOption,Nut=Ele();Lle.exports=function(t,r,n,i){var a=n.marker.line,o=Cle(a.color,r.pts)||kle.defaultLine,s=Cle(a.width,r.pts)||0;t.call(Nut,r,n,i).style("stroke-width",s).call(kle.stroke,o)}});var KN=Te((Kor,Fle)=>{"use strict";var Op=Jl(),XN=$l(),bp=ei(),Ple=bp.strTranslate,Kv=Mu(),A0=jl(),ZN=yp().extractOpts,WP=lc(),Uut=X3(),Vut=m_().castOption,Gut=WN(),zle=12,Ile=5,Vb=2,Hut=10,Z3=5;Fle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+Gut.itemGap*2)/2,u=Ple(s,0),l=function(k,M,m,P){var A;if(k+1)A=k;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,m)};t.each(function(k){var M=Op.select(this),m=bp.ensureSingle(M,"g","layers");m.style("opacity",k[0].trace.opacity);var P=n.indentation,A=n.valign,F=k[0].lineHeight,B=k[0].height;if(A==="middle"&&P===0||!F||!B)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(F-B+3))||0,j=n.indentation;m.attr("transform",Ple(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(T).each(E).each(f).each(c).each(v).each(C);function f(k){var M=Rle(k),m=M.showFill,P=M.showLine,A=M.showGradientLine,F=M.showGradientFill,B=M.anyFill,U=M.anyLine,G=k[0],j=G.trace,W,N,H=ZN(j),re=H.colorscale,ae=H.reversescale,ge=function(Se){if(Se.size())if(m)Kv.fillGroupStyle(Se,r,!0);else{var Ge="legendfill-"+j.uid;Kv.gradient(Se,r,Ge,YN(ae),re,"fill")}},ze=function(Se){if(Se.size()){var Ge="legendline-"+j.uid;Kv.lineGroupStyle(Se),Kv.gradient(Se,r,Ge,YN(ae),re,"stroke")}},Le=WP.hasMarkers(j)||!B?"M5,0":U?"M5,-2":"M5,-3",de=Op.select(this),te=de.select(".legendfill").selectAll("path").data(m||F?[k]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Le+"h"+o+"v6h-"+o+"z").call(ge),P||A){var ke=l(void 0,j.line,Hut,Ile);N=bp.minExtend(j,{line:{width:ke}}),W=[bp.minExtend(G,{trace:N})]}var Ee=de.select(".legendlines").selectAll("path").data(P||A?[W]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Le+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:ze)}function c(k){var M=Rle(k),m=M.anyFill,P=M.anyLine,A=M.showLine,F=M.showMarker,B=k[0],U=B.trace,G=!F&&!P&&!m&&WP.hasText(U),j,W;function N(te,ke,Ee,Se){var Ge=bp.nestedProperty(U,te).get(),De=bp.isArrayOrTypedArray(Ge)&&ke?ke(Ge):Ge;if(a&&De&&Se!==void 0&&(De=Se),Ee){if(DeEe[1])return Ee[1]}return De}function H(te){return B._distinct&&B.index&&te[B.index]?te[B.index]:te[0]}if(F||G||A){var re={},ae={};if(F){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],Vb),re.mld=U._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ge=N("marker.size",bp.mean,[2,16],zle);re.ms=ge,ae.marker.size=ge}A&&(ae.line={width:N("line.width",H,[0,10],Ile)}),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(B,re)],W=bp.minExtend(U,ae),W.selectedpoints=null,W.texttemplate=null}var ze=Op.select(this).select("g.legendpoints"),Le=ze.selectAll("path.scatterpts").data(F?j:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Le.exit().remove(),Le.call(Kv.pointStyle,W,r),F&&(j[0].mrc=3);var de=ze.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 M=k[0].trace,m=M.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,_(k,this,"waterfall")}var A=[];M.visible&&m&&(A=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=Op.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(B){var U=Op.select(this),G=M[B[0]].marker,j=l(void 0,G.line,Z3,Vb);U.attr("d",B[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(k){_(k,this)}function p(k){_(k,this,"funnel")}function _(k,M,m){var P=k[0].trace,A=P.marker||{},F=A.line||{},B=A.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:XN.traceIs(P,"bar"),G=Op.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(U?[k]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",B).attr("transform",u),G.exit().remove(),G.each(function(j){var W=Op.select(this),N=j[0],H=l(N.mlw,A.line,Z3,Vb);W.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=ZN(A),ge=ae.mid;ge===void 0&&(ge=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(ge)}var ze=re||N.mc||A.color,Le=A.pattern,de=Kv.getPatternAttr,te=Le&&(de(Le.shape,0,"")||de(Le.path,0,""));if(te){var ke=de(Le.bgcolor,0,null),Ee=de(Le.fgcolor,0,null),Se=Le.fgopacity,Ge=Dle(Le.size,8,10),De=Dle(Le.solidity,.5,1),xe="legend-"+P.uid;W.call(Kv.pattern,"legend",r,xe,te,Ge,De,re,Le.fillmode,ke,Ee,Se)}else W.call(A0.fill,ze);H&&A0.stroke(W,N.mlc||F.color)})}function b(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&XN.traceIs(M,"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=Op.select(this);if((M.boxpoints==="all"||M.points==="all")&&A0.opacity(M.fillcolor)===0&&A0.opacity((M.line||{}).color)===0){var A=bp.minExtend(M,{marker:{size:a?zle:bp.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var F=l(void 0,M.line,Z3,Vb);P.style("stroke-width",F+"px").call(A0.fill,M.fillcolor),F&&A0.stroke(P,M.line.color)}})}function v(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"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,A){var F=Op.select(this),B=M[A?"increasing":"decreasing"],U=l(void 0,B.line,Z3,Vb);F.style("stroke-width",U+"px").call(A0.fill,B.fillcolor),U&&A0.stroke(F,B.line.color)})}function C(k){var M=k[0].trace,m=Op.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var F=Op.select(this),B=M[A?"increasing":"decreasing"],U=l(void 0,B.line,Z3,Vb);F.style("fill","none").call(Kv.dashLine,B.line.dash,U),U&&A0.stroke(F,B.line.color)})}function E(k){L(k,this,"pie")}function T(k){L(k,this,"funnelarea")}function L(k,M,m){var P=k[0],A=P.trace,F=m?A.visible&&A.type===m:XN.traceIs(A,m),B=Op.select(M).select("g.legendpoints").selectAll("path.legend"+m).data(F?[k]:[]);if(B.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),B.exit().remove(),B.size()){var U=A.marker||{},G=l(Vut(U.line.width,P.pts),U.line,Z3,Vb),j="pieLike",W=bp.minExtend(A,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:W},j);Uut(B,N,W,r)}}function x(k){var M=k[0].trace,m,P=[];if(M.visible)switch(M.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 A=Op.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(F,B){var U=Op.select(this),G=ZN(M),j=G.colorscale,W=G.reversescale,N=function(ge){if(ge.size()){var ze="legendfill-"+M.uid;Kv.gradient(ge,r,ze,YN(W,m==="radial"),j,"fill")}},H;if(j){if(!m){var ae=j.length;H=B===0?j[W?ae-1:0][1]:B===1?j[W?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;H=bp.isArrayOrTypedArray(re)?re[B]||re[0]:re}U.attr("d",F[0]),H?U.call(A0.fill,H):U.call(N)})}};function YN(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 Dle(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var e7=Te((Jor,Wle)=>{"use strict";var nv=Jl(),Ah=ei(),$N=Cc(),Gb=$l(),ZP=k3(),JN=xp(),Th=Mu(),g5=jl(),Hb=Wf(),Ble=HN().handleItemClick,Ole=HN().handleTitleClick,Gh=WN(),QN=Nh(),Gle=QN.LINE_SPACING,K3=QN.FROM_TL,qle=QN.FROM_BR,Nle=Tle(),Wut=KN(),J3=y5(),Y3=1,jut=/^legend[0-9]*$/;Wle.exports=function(t,r){if(r)Ule(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(jut)&&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(),$N.autoMargin(e,i);var _=Ah.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Ah.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),v=Ah.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});v.call(g5.stroke,r.bordercolor).call(g5.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Ah.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Ah.ensureSingle(C,"text",i+"titletext"),T.attr("text-anchor","start").call(Th.font,E.font).text(E.text),XP(T,C,e,r,Y3),!s&&(r.titleclick||r.titledoubleclick)&&Kut(C,e,r,i)):(C.selectAll("."+i+"titletext").remove(),C.selectAll("."+i+"titletoggle").remove());var L=Ah.ensureSingle(_,"rect","scrollbar",function(M){M.attr(Gh.scrollBarEnterAttrs).call(g5.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(M){let m=M[0],P=m.trace;if(m.groupTitle){let A=P.legendgroup,F=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(F).some(function(U){return U.legendgroup===A&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Gb.traceIs(P,"pie-like")?p.indexOf(M[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){nv.select(this).call(Zut,e,r)}).call(Wut,e,r).each(function(M){s||M[0].groupTitle&&r.groupclick==="toggleitem"||nv.select(this).call(Yut,e,i)}),Ah.syncOrAsync([$N.previousPromises,function(){return Qut(e,x,k,r,C)},function(){var M=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text){let je=(n.shapes||[]).filter(function(gt){return gt.showlegend}),Qe=e._fullData.concat(je).some(function(gt){let qt=gt.legend||"legend";var at=Array.isArray(qt)?qt.includes(i):qt===i;return at&>.visible===!0});T.style("opacity",Qe?1:.5)}if(!s){var F,B;P?F=M.l+M.w*r.x-K3[YP(r)]*r._width:F=n.width*r.x-K3[YP(r)]*r._width,A?B=M.t+M.h*(1-r.y)-K3[KP(r)]*r._effHeight:B=n.height*(1-r.y)-K3[KP(r)]*r._effHeight;var U=eft(e,i,F,B);if(U)return;if(n.margin.autoexpand){var G=F,j=B;F=P?Ah.constrain(F,0,n.width-r._width):G,B=A?Ah.constrain(B,0,n.height-r._effHeight):j,F!==G&&Ah.log("Constrain "+i+".x to make legend fit inside graph"),B!==j&&Ah.log("Constrain "+i+".y to make legend fit inside graph")}Th.setTranslate(_,F,B)}if(L.on(".drag",null),_.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,ge=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+ge}),Th.setClipUrl(C,a,e),Ge(ge,N,ae),_.on("wheel",function(){ge=Ah.constrain(r._scrollY+nv.event.deltaY/re*H,0,re),Ge(ge,N,ae),ge!==0&&ge!==re&&nv.event.preventDefault()});var ze,Le,de,te=function(je,Qe,gt){var qt=(gt-Qe)/ae+je;return Ah.constrain(qt,0,re)},ke=function(je,Qe,gt){var qt=(Qe-gt)/ae+je;return Ah.constrain(qt,0,re)},Ee=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"?ze=je.changedTouches[0].clientY:ze=je.clientY,de=ge}).on("drag",function(){var je=nv.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Le=je.changedTouches[0].clientY:Le=je.clientY,ge=te(de,ze,Le),Ge(ge,N,ae))});L.call(Ee);var Se=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"&&(ze=je.changedTouches[0].clientY,de=ge)}).on("drag",function(){var je=nv.event.sourceEvent;je.type==="touchmove"&&(Le=je.changedTouches[0].clientY,ge=ke(de,ze,Le),Ge(ge,N,ae))});C.call(Se)}function Ge(je,Qe,gt){r._scrollY=e._fullLayout[i]._scrollY=je,Th.setTranslate(C,0,-je),Th.setRect(L,r._width,Gh.scrollBarMargin+je*gt,Gh.scrollBarWidth,Qe),b.select("rect").attr("y",m+je)}if(e._context.edits.legendPosition){var De,xe,Ne,ce;_.classed("cursor-move",!0),JN.init({element:_.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var Qe=Th.getTranslate(_);Ne=Qe.x,ce=Qe.y}},moveFn:function(je,Qe){if(Ne!==void 0&&ce!==void 0){var gt=Ne+je,qt=ce+Qe;Th.setTranslate(_,gt,qt),De=JN.align(gt,r._width,M.l,M.l+M.w,r.xanchor),xe=JN.align(qt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(De!==void 0&&xe!==void 0){var je={};je[i+".x"]=De,je[i+".y"]=xe,Gb.call("_guiRelayout",e,je)}},clickFn:function(je,Qe){var gt=o.selectAll("g.traces").filter(function(){var qt=this.getBoundingClientRect();return Qe.clientX>=qt.left&&Qe.clientX<=qt.right&&Qe.clientY>=qt.top&&Qe.clientY<=qt.bottom});gt.size()>0&&Hle(e,r,gt,je,Qe)}})}}],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 Hle(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),Gb.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 Zut(e,t,r){var n=J3.getId(r),i=e.data()[0][0],a=i.trace,o=Gb.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?Vle(l,u):l);var h=r.indentation+r.itemwidth+Gh.itemGap*2;Hb.positionText(c,h,0),s?c.call(Hb.makeEditable,{gd:t,text:l}).call(XP,e,t,r).on("edit",function(d){this.text(Vle(d,u)).call(XP,e,t,r);var p=i.trace._fullInput||{},_={};return _.name=d,p._isShape?Gb.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):Gb.call("_guiRestyle",t,_,a.index)}):XP(c,e,t,r)}function Vle(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 Yut(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(g5.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)),Hle(t,s,e,a,nv.event)}}))}function Kut(e,t,r,n){if(t._fullData.some(function(l){let f=l.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Gb.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(g5.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&&Ole(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&&Ole(t,r,r.titledoubleclick))}))}function XP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Hb.convertToTspans(e,r,function(){Jut(t,r,n,i)})}function Jut(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=J3.getId(r);r||(r=t._fullLayout[u]);var l=r.borderwidth,f;n===Y3?f=r.title.font:i.groupTitle?f=i.groupTitle.font:f=r.font;var c=f.size*Gle,h,d;if(s){var p=Th.bBox(s);h=p.height,d=p.width,n===Y3?Th.setTranslate(o,l,l+h*.75):Th.setTranslate(o,0,h*.25)}else{var _="."+u+(n===Y3?"title":"")+"text",b=e.select(_),v=Hb.lineCount(b),C=b.node();if(h=c*v,d=C?Th.bBox(C).width:0,n===Y3)r.title.side==="left"&&(d+=Gh.itemGap*2),Hb.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),Hb.positionText(b,E,-c*((v-1)/2-.3))}}n===Y3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=c,i.height=Math.max(h,16)+3,i.width=d)}function $ut(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 Qut(e,t,r,n,i){var a=e._fullLayout,o=J3.getId(n);n||(n=a[o]);var s=a._size,u=J3.isVertical(n),l=J3.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,h=2*c,d=Gh.itemGap,p=n.indentation+n.itemwidth+d*2,_=2*(c+d),b=KP(n),v=n.y<0||n.y===0&&b==="top",C=n.y>1||n.y===1&&b==="bottom",E=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:k}=n,M=v||C||L!=="v"||x!=="paper";k||(k=M?.5:1);let m=M?a.height:s.h;n._maxHeight=Math.max(k>1?k:k*m,30);var P=0;n._width=0,n._height=0;var A=$ut(n);if(u)r.each(function(je){var Qe=je[0].height;Th.setTranslate(this,c+A[0],c+A[1]+n._height+Qe/2+d),n._height+=Qe,n._width=Math.max(n._width,je[0].width)}),P=p+n._width,n._width+=d+p+h,n._height+=_,l&&(t.each(function(je,Qe){Th.setTranslate(this,0,Qe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var F=YP(n),B=n.x<0||n.x===0&&F==="right",U=n.x>1||n.x===1&&F==="left",G=C||v,j=a.width/2;n._maxWidth=Math.max(B?G&&F==="left"?s.l+s.w:j:U?G&&F==="right"?s.r+s.w:j:s.w,2*p);var W=0,N=0;r.each(function(je){var Qe=jP(je,n,p);W=Math.max(W,Qe),N+=Qe}),P=null;var H=0;if(l){var re=0,ae=0,ge=0;t.each(function(){var je=0,Qe=0;nv.select(this).selectAll("g.traces").each(function(qt){var at=jP(qt,n,p),Ke=qt[0].height;Th.setTranslate(this,A[0],A[1]+c+d+Ke/2+Qe),Qe+=Ke,je=Math.max(je,at),T[qt[0].trace.legendgroup]=je});var gt=je+d;ae>0&>+c+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,ge+=re+E,re=Qe):re=Math.max(re,Qe),Th.setTranslate(this,ae,ge),ae+=gt}),n._width=Math.max(H,ae)+c,n._height=ge+re+_}else{var ze=r.size(),Le=N+h+(ze-1)*d=n._maxWidth&&(H=Math.max(H,Ee),te=0,ke+=de,n._height+=de,de=0),Th.setTranslate(this,A[0]+c+te,A[1]+c+ke+Qe/2+d),Ee=te+gt+d,te+=qt,de=Math.max(de,Qe)}),Le?(n._width=te+h,n._height=de+_):(n._width=Math.max(H,Ee)+h,n._height+=de+_)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(c+Gh.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(c+Gh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Se=e._context.edits,Ge=Se.legendText||Se.legendPosition;r.each(function(je){var Qe=nv.select(this).select("."+o+"toggle"),gt=je[0].height,qt=je[0].trace.legendgroup,at=jP(je,n,p);l&&qt!==""&&(at=T[qt]);var Ke=Ge?p:P||at;!u&&!f&&(Ke+=d/2),Th.setRect(Qe,0,-gt/2,Ke,gt)});var De=i.select("."+o+"titletext");De.node()&&Xut(De,n,c);var xe=i.select("."+o+"titletoggle");if(xe.size()&&De.node()){var Ne=De.attr("x")||0,ce=Gh.titlePad;Th.setRect(xe,Ne-ce,c,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function eft(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 $N.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*K3[o],r:a._width*qle[o],b:a._effHeight*qle[s],t:a._effHeight*K3[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 n7=Te(i7=>{"use strict";var Wb=Jl(),Pg=ku(),jle=hd(),ah=ei(),tft=ah.pushUnique,t7=ah.strTranslate,rft=ah.strRotate,ift=k3(),T0=Wf(),nft=yle(),Ty=Mu(),vd=jl(),JP=xp(),Sy=wu(),aft=qh().zindexSeparator,Q3=$l(),km=iv(),jb=NM(),oft=UN(),sft=e7(),eue=jb.YANGLE,r7=Math.PI*eue/180,lft=1/Math.sin(r7),uft=Math.cos(r7),fft=Math.sin(r7),Uc=jb.HOVERARROWSIZE,kf=jb.HOVERTEXTPAD,Xle={box:!0,ohlc:!0,violin:!0,candlestick:!0},cft={scatter:!0,scattergl:!0,splom:!0};function Zle(e,t){return e.distance-t.distance}i7.hover=function(t,r,n,i){t=ah.getGraphDiv(t);var a=r.target;ah.throttle(t._fullLayout._uid+jb.HOVERID,jb.HOVERMINTIME,function(){hft(t,r,n,i,a)})};i7.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=aue(i),o=oue(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,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(v,C),k=Math.max(v,C),M=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(Q3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,F=A.offsetLeft,B=A.offsetTop;x+=F,k+=F,M+=B,m+=B}L.bbox={x0:x+o,x1:k+o,y0:M+a,y1:m+a},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=rue(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Wb.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>M[0]._length)return JP.unhoverRaw(e,t)}if(t.pointerX=Ne+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?j=km.flat(a,t.xval):j=km.p2c(k,Ne),"yval"in t?W=km.flat(a,t.yval):W=km.p2c(M,ce),!Pg(j[0])||!Pg(W[0]))return ah.warn("Fx.hover failed",t,e),JP.unhoverRaw(e,t)}var gt=1/0;function qt(ni,$i){for(H=0;HEe&&(U.splice(0,Ee),gt=U[0].distance),c&&B!==0&&U.length===0){ke.distance=B,ke.index=!1;var Rt=ae._module.hoverPoints(ke,de,te,"closest",{hoverLayer:s._hoverlayer});if(Rt&&(Rt=Rt.filter(function(Nr){return Nr.spikeDistance<=B})),Rt&&Rt.length){var yt,Gt=Rt.filter(function(Nr){return Nr.xa.showspikes&&Nr.xa.spikesnap!=="hovered data"});if(Gt.length){var Wt=Gt[0];Pg(Wt.x0)&&Pg(Wt.y0)&&(yt=Ke(Wt),(!Se.vLinePoint||Se.vLinePoint.spikeDistance>yt.spikeDistance)&&(Se.vLinePoint=yt))}var xr=Rt.filter(function(Nr){return Nr.ya.showspikes&&Nr.ya.spikesnap!=="hovered data"});if(xr.length){var Lr=xr[0];Pg(Lr.x0)&&Pg(Lr.y0)&&(yt=Ke(Lr),(!Se.hLinePoint||Se.hLinePoint.spikeDistance>yt.spikeDistance)&&(Se.hLinePoint=yt))}}}}}qt();function at(ni,$i,Qi){for(var si=null,Ti=1/0,Ni,Rt=0;Rtni.trace.index===He.trace.index):U=[He];var nt=U.length,tt=Qle("x",He,s),It=Qle("y",He,s);qt(tt,It);var Yt=[],cr={},_r=0,yr=function(ni){var $i=Xle[ni.trace.type]?tue(ni):ni.trace.index;if(!cr[$i])_r++,cr[$i]=_r,Yt.push(ni);else{var Qi=cr[$i]-1,si=Yt[Qi];Qi>0&&Math.abs(ni.distance)nt-1;Ut--)yr(U[Ut]);U=Yt,Bt()}var Re=e._hoverdata,be=[],Oe=aue(e),Ie=oue(e);for(let ni of U){var Fe=km.makeEventData(ni,ni.trace,ni.cd);if(ni.hovertemplate!==!1){var ft=!1;ni.cd[ni.index]&&ni.cd[ni.index].ht&&(ft=ni.cd[ni.index].ht),ni.hovertemplate=ft||ni.trace.hovertemplate||!1}if(ni.xa&&ni.ya){var ye=ni.x0+ni.xa._offset,fe=ni.x1+ni.xa._offset,pe=ni.y0+ni.ya._offset,dt=ni.y1+ni.ya._offset,Pt=Math.min(ye,fe),zt=Math.max(ye,fe),rr=Math.min(pe,dt),Gr=Math.max(pe,dt);Fe.bbox={x0:Pt+Ie,x1:zt+Ie,y0:rr+Oe,y1:Gr+Oe}}ni.eventData=[Fe],be.push(Fe)}e._hoverdata=be;var Br=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&Ge&&U.length>1,Er=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Rr=rue(U,{gd:e,hovermode:h,rotateLabels:Br,bgColor:Er,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),pi=Rr.hoverLabels;if(km.isUnifiedHover(h)||(pft(pi,Br,s,Rr.commonLabelBoundingBox),nue(pi,Br,s._invScaleX,s._invScaleY)),i&&i.tagName){var Di=Q3.getComponentMethod("annotations","hasClickToShow")(e,be);nft(Wb.select(i),Di?"pointer":"")}!i||n||!yft(e,t,Re)||(Re&&e.emit("plotly_unhover",{event:t,points:Re}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:j,yvals:W}))}function tue(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 dft=/([\s\S]*)<\/extra>/;function rue(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||jb.HOVERFONT,c=t.fontSize||jb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,T=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Oe&&(Ie=n.width-Oe),He.attr("d","M"+(Ut-Ie)+",0L"+(Ut-Ie+Uc)+","+be+Uc+"H"+Oe+"v"+be+(kf*2+yr.height)+"H"+-Oe+"V"+be+Uc+"H"+(Ut-Ie-Uc)+"Z"),Ut=Ie,H.minX=Ut-Oe,H.maxX=Ut+Oe,E.side==="top"?(H.minY=Re-(kf*2+yr.height),H.maxY=Re-kf):(H.minY=Re+kf,H.maxY=Re+(kf*2+yr.height))}else{var Fe,ft,ye;T.side==="right"?(Fe="start",ft=1,ye="",Ut=E._offset+E._length):(Fe="end",ft=-1,ye="-",Ut=E._offset),Re=T._offset+(C.y0+C.y1)/2,nt.attr("text-anchor",Fe),He.attr("d","M0,0L"+ye+Uc+","+Uc+"V"+(kf+yr.height/2)+"h"+ye+(kf*2+yr.width)+"V-"+(kf+yr.height/2)+"H"+ye+Uc+"V-"+Uc+"Z"),H.minY=Re-(kf+yr.height/2),H.maxY=Re+(kf+yr.height/2),T.side==="right"?(H.minX=Ut+Uc,H.maxX=Ut+Uc+(kf*2+yr.width)):(H.minX=Ut-Uc-(kf*2+yr.width),H.maxX=Ut-Uc);var fe=yr.height/2,pe=P-yr.top-fe,dt="clip"+n._uid+"commonlabel"+T._id,Pt;if(UtHe.hoverinfo!=="none");if(Je.length===0)return[];var re=n.hoverlabel,ae=re.font,ge=Je[0],ze=((i==="x unified"?ge.xa:ge.ya).unifiedhovertitle||{}).text,Le=ze?ah.hovertemplateString({data:i==="x unified"?[{xa:ge.xa,x:ge.xVal}]:[{ya:ge.ya,y:ge.yVal}],fallback:ge.trace.hovertemplatefallback,locale:n._d3locale,template:ze}):k,de={showlegend:!0,legend:{title:{text:Le,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};oft(de,te,r._fullData);var ke=te.legend;ke.entries=[];for(var Ee=0;Ee=0?ot=Bt:Zt+Qe=0?ot=Zt:Et+Qe=0?At=wt:Mt+gt=0?At=Mt:Ae+gt=0,(Je.idealAlign==="top"||!Gr)&&Br?(ye-=pe/2,Je.anchor="end"):Gr?(ye+=pe/2,Je.anchor="start"):Je.anchor="middle",Je.crossPos=ye;else{if(Je.pos=ye,Gr=ft+fe/2+rr<=A,Br=ft-fe/2-rr>=0,(Je.idealAlign==="left"||!Gr)&&Br)ft-=fe/2,Je.anchor="end";else if(Gr)ft+=fe/2,Je.anchor="start";else{Je.anchor="middle";var Er=rr/2,Rr=ft+Er-A,pi=ft-Er;Rr>0&&(ft-=Rr),pi<0&&(ft+=-pi)}Je.crossPos=ft}Re.attr("text-anchor",Je.anchor),Oe&&be.attr("text-anchor",Je.anchor),He.attr("transform",t7(ft,ye)+(a?rft(eue):""))}),{hoverLabels:vt,commonLabelBoundingBox:H}}function Yle(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=$le(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(dft,(p,_)=>(o=$le(_,e.nameLength),""))}return[s,o]}function pft(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,_=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,ge=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var ze=iue(j,t),Le=j.anchor,de=Le==="end"?-1:1,te,ke;if(Le==="middle")te=j.crossPos+(H?b(ze.y-j.by/2):_(j.bx/2+j.tx2width/2)),ke=te+(H?b(j.by):_(j.bx));else if(H)te=j.crossPos+b(Uc+ze.y)-b(j.by/2-Uc),ke=te+b(j.by);else{var Ee=_(de*Uc+ze.x),Se=Ee+_(de*j.bx);te=j.crossPos+Math.min(Ee,Se),ke=j.crossPos+Math.max(Ee,Se)}H?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,ge=r.width):ge=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,ge=r.height):ge=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(H?lft:1)/2,pmin:ae,pmax:ge}]}),l.sort(function(j,W){return j[0].posref-W[0].posref||s*(W[0].traceIndex-j[0].traceIndex)});var v,C,E,T,L,x,k;function M(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(T=0;TW.pmax&&H++;for(T=j.length-1;T>=0&&!(H<=0);T--)x=j[T],x.pos>W.pmax-1&&(x.del=!0,H--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(H<=0);T--)x=j[T],x.pos+x.dp+x.size>W.pmax&&(x.del=!0,H--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(m.push.apply(m,P),l.splice(T+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 T++}l.forEach(M)}for(T=l.length-1;T>=0;T--){var B=l[T];for(L=B.length-1;L>=0;L--){var U=B[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function iue(e,t){var r=0,n=e.offset;return t&&(n*=-fft,r=e.offset*uft),{x:r,y:n}}function vft(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 nue(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 u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=vft(o),h=iue(o,t),d=h.x,p=h.y,_=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;_?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+kf,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&l!=="start"?(u.attr("text-anchor","start"),C=_?-o.bx/2-o.tx2width/2+kf:-o.bx-kf):T==="right"&&l!=="end"&&(u.attr("text-anchor","end"),C=_?o.bx/2-o.tx2width/2-kf:o.bx+kf)),u.call(T0.positionText,i(C),a(E)),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 mft(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Pg(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 _=s(d,p);o(_)&&(e[h]=_)}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 Kle(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 _=f.spikesnap;_==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=jle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,C=f.spikethickness,E=f.spikecolor||b,T=Sy.getPxPosition(e,f),L,x;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,x=d),v.indexOf("across")!==-1){var k=f._counterDomainMin,M=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),M=Math.max(M,f.position)),L=a.l+k*a.w,x=a.l+M*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:T+(f.side!=="right"?C:-C),cy:p,r:C,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var F=l.spikesnap;F==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var B=jle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||B,W=Sy.getPxPosition(e,l),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=W,H=A),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 yft(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 Jle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function $le(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function gft(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,oue=e=>e.offsetLeft+e.clientLeft;function $3(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 _5=Te((Qor,sue)=>{"use strict";var _ft=ei(),xft=jl(),bft=iv().isUnifiedHover;sue.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&&bft(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=xft.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),_ft.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var uue=Te((esr,lue)=>{"use strict";var wft=ei(),Aft=_5(),Tft=j1();lue.exports=function(t,r){function n(i,a){return wft.coerce(t,r,Tft,i,a)}Aft(t,r,n)}});var hue=Te((tsr,cue)=>{"use strict";var fue=ei(),Sft=p3(),Mft=_5();cue.exports=function(t,r,n,i){function a(s,u){return fue.coerce(t,r,Sft,s,u)}var o=fue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Mft(t,r,a,o)}});var a7=Te((rsr,due)=>{"use strict";var Eft=ei(),kft=j1();due.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Eft.coerce(t,r,kft,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var mue=Te((isr,vue)=>{"use strict";var pue=ei(),Cft=j1(),Lft=a7(),Pft=_5();vue.exports=function(t,r){function n(f,c){return pue.coerce(t,r,Cft,f,c)}var i=Lft(t,r);i&&(n("hoverdistance"),n("spikedistance"));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"),Pft(t,r,n),pue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var _ue=Te((nsr,gue)=>{"use strict";var o7=ei(),yue=$l();gue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return o7.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Ift=$l(),Rft=n7().hover;xue.exports=function(t,r,n){var i=Ift.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Rft(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Xc=Te((osr,Tue)=>{"use strict";var Dft=Jl(),$P=ei(),Fft=xp(),x5=iv(),wue=j1(),Aue=n7();Tue.exports={moduleType:"component",name:"fx",constants:NM(),schema:{layout:wue},attributes:p3(),layoutAttributes:wue,supplyLayoutGlobalDefaults:uue(),supplyDefaults:hue(),supplyLayoutDefaults:mue(),calc:_ue(),getDistanceFunction:x5.getDistanceFunction,getClosest:x5.getClosest,inbox:x5.inbox,quadrature:x5.quadrature,appendArrayPointValue:x5.appendArrayPointValue,castHoverOption:Oft,castHoverinfo:qft,hover:Aue.hover,unhover:Fft.unhover,loneHover:Aue.loneHover,loneUnhover:Bft,click:bue()};function Bft(e){var t=$P.isD3Selection(e)?e:Dft.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Oft(e,t,r){return $P.castOption(e,t,"hoverlabel."+r)}function qft(e,t,r){function n(i){return $P.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return $P.castOption(e,r,"hoverinfo",n)}});var Cm=Te(zg=>{"use strict";zg.selectMode=function(e){return e==="lasso"||e==="select"};zg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};zg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};zg.selectingOrDrawing=function(e){return zg.freeMode(e)||zg.rectMode(e)}});var b5=Te((lsr,Sue)=>{"use strict";Sue.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=Te((usr,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)"},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=Te((fsr,Eue)=>{"use strict";var ez=32;Eue.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=Te((csr,Cue)=>{"use strict";var Nft=ei().strTranslate;function kue(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 Uft(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 Vft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return kue(e,r[t])}}function Gft(e){return Nft(e.xaxis._offset,e.yaxis._offset)}Cue.exports={p2r:kue,r2p:Uft,axValue:Vft,getTransform:Gft}});var y_=Te(Ig=>{"use strict";var Hft=n5(),zue=tz(),eA=zue.CIRCLE_SIDES,s7=zue.SQRT2,Iue=rz(),Lue=Iue.p2r,Pue=Iue.r2p,Wft=[0,3,4,5,6,1,2],jft=[0,3,4,1,2];Ig.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Rue=Wc(),que=Cm(),Xft=que.drawMode,Zft=que.openMode,tA=tz(),Due=tA.i000,Fue=tA.i090,Bue=tA.i180,Oue=tA.i270,Yft=tA.cos45,Kft=tA.sin45,Nue=rz(),nz=Nue.p2r,g_=Nue.r2p,Jft=o_(),$ft=Jft.clearOutline,az=y_(),Qft=az.readPaths,ect=az.writePaths,tct=az.ellipseOver,rct=az.fixDatesForPaths;function ict(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(!Xft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var nct=Cm(),act=nct.selectMode,oct=o_(),sct=oct.clearOutline,l7=y_(),lct=l7.readPaths,uct=l7.writePaths,fct=l7.fixDatesForPaths;Gue.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(!act(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Hue.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_=Te(Qd=>{"use strict";var My=A5(),Wue=ei(),__=wu();Qd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Qd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Qd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Qd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Qd.extractPathCoords=function(e,t,r){var n=[],i=e.match(My.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(My.paramRE);if(!(!s||s.length{let s=o.charAt(0),u=i[s].drawn!==void 0;return a+(u?1:0)},0)};Qd.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=Qd.shapePositionToRange(t);o=function(u){var l=Rg(t,r);return t._offset+t.r2p(s(u,!0))+l},t.type==="date"&&(o=Qd.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};Qd.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=Qd.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};Qd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Qd.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}};Qd.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}};Qd.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,_,b,v;function C(P,A,F,B){var U;if(P)if(A==="domain")B?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Qd.shapePositionToRange(P);U=function(j){return P._offset+P.r2p(G(j,!0))},F==="path"&&P.type==="date"&&(U=Qd.decodeDate(U))}else B?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,A){return C(o[A],__.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,A){return C(s[A],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=C(s,i,r,!0)),r==="path")return cct(t,h,d);if(n==="array")u=Rg(o[0],t.x0shift),l=Rg(o[1],t.x1shift),p=h[0](t.x0)+u,_=h[1](t.x1)+l;else if(u=Rg(o,t.x0shift),l=Rg(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);p=P+t.x0+u,_=P+t.x1+l}else p=h(t.x0)+u,_=h(t.x1)+l;if(i==="array")f=Rg(s[0],t.y0shift),c=Rg(s[1],t.y1shift),b=d[0](t.y0)+f,v=d[1](t.y1)+c;else if(f=Rg(s,t.y0shift),c=Rg(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"+_+","+v;if(r==="rect")return"M"+p+","+b+"H"+_+"V"+v+"H"+p+"Z";var E=(p+_)/2,T=(b+v)/2,L=Math.abs(E-p),x=Math.abs(T-b),k="A"+L+","+x,M=E+L+","+T,m=E+","+(T-x);return"M"+M+k+" 0 1,1 "+m+k+" 0 0,1 "+M+"Z"};function cct(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(My.segmentRE,function(h){var d=0,p=h.charAt(0),_=My.paramIsX[p],b=My.paramIsY[p],v=My.numParams[p];let C=_.drawn!==void 0,E=b.drawn!==void 0,T=u?t[f]:t,L=l?r[c]:r;var x=h.slice(1).replace(My.paramRE,function(k){return _[d]?i==="pixel"?k=T(o)+Number(k):k=T(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.*/,""),Wue.log("Ignoring extra params in segment "+h)),C&&f++,E&&c++,p+x})}function Rg(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 c7=Te((ysr,Zue)=>{"use strict";var hct=ei(),Ey=wu(),jue=Wf(),Xue=Mu(),dct=y_().readPaths,f7=x_(),pct=f7.getPathString,T5=DL(),vct=Nh().FROM_TL;Zue.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=Ey.getFromId(t,n.xref),u=Ey.getFromId(t,n.yref);let ae=Array.isArray(n.xref),ge=Array.isArray(n.yref);for(var l in T5){var f=typeof T5[l]=="function",c=!ae||T5.simpleXVariables.includes(l),h=!ge||T5.simpleYVariables.includes(l);if(f&&c&&h){var d=T5[l](n,s,u);d!==void 0&&(o[l]=d)}}}a=hct.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},_=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,T,L,x;if(n.path){var k=pct(t,n),M=dct(k,t);E=1/0,L=1/0,T=-1/0,x=-1/0;for(var m=0;m=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function yct(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,_=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 gct=ei(),_ct=gct.strTranslate,Yue=xp(),$ue=Cm(),xct=$ue.drawMode,Que=$ue.selectMode,efe=$l(),Kue=jl(),sz=tz(),bct=sz.i000,wct=sz.i090,Act=sz.i180,Tct=sz.i270,Sct=o_(),tfe=Sct.clearOutlineControllers,d7=y_(),S5=d7.pointsOnRectangle,h7=d7.pointsOnEllipse,Mct=d7.writePaths,Ect=oz().newShapes,kct=oz().createShapeObj,Cct=u7(),Lct=c7();rfe.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(h7(t[0])||S5(t[0])||n.hasText)&&s({redrawing:!0})}function s(W){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Ect(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Cct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&efe.call((W||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=xct(f),h=Que(f);(c||h)&&(a._fullLayout._outlining=!0),tfe(a),r.attr("d",Mct(t));var d,p,_,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Pct([],t);var C=l.append("g").attr("class","outline-controllers");P(C),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=kct(r,n,n.dragmode);Lct(a,"label-temp",T,E)}function L(W){_=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(W,N){if(t.length){var H=v[_][b][1],re=v[_][b][2],ae=t[_],ge=ae.length;if(S5(ae)){var ze=W,Le=N;if(n.isActiveSelection){var de=Jue(ae,b);de[1]===ae[b][1]?Le=0:ze=0}for(var te=0;te1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[_]=W,o(),s())}}function m(W,N){if(W===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[_];!S5(H)&&!h7(H)&&M()}}function P(W){d=[];for(var N=0;N{"use strict";var Ict=Jl(),sfe=$l(),v7=ei(),Xb=wu(),Rct=y_().readPaths,Dct=lz(),fz=c7(),lfe=o_().clearOutlineControllers,p7=jl(),cz=Mu(),Fct=Lf().arrayEditor,ife=xp(),nfe=Em(),Zb=A5(),Ev=x_(),m7=Ev.getPathString;cfe.exports={draw:y7,drawOne:ufe,eraseActiveShape:Nct,drawLabel:fz};function y7(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;iXb.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 Oct(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F=Ict.select(t.node().parentNode),B=Xb.getFromId(e,r.xref),U=Xb.getRefType(r.xref),G=Xb.getFromId(e,r.yref),j=Xb.getRefType(r.yref),W=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,ae=function(at,Ke){var Ct=Ev.getDataToPixel(e,B,Ke,!1,U);return Ct(at)},ge=function(at,Ke){var Ct=Ev.getDataToPixel(e,G,Ke,!0,j);return Ct(at)},ze=Ev.getPixelToData(e,B,!1,U),Le=Ev.getPixelToData(e,G,!0,j),de=Ee(),te={element:de.node(),gd:e,prepFn:De,doneFn:xe,clickFn:Ne},ke;ife.init(te),de.node().onmousemove=Ge;function Ee(){return f?Se():t}function Se(){var at=10,Ke=Math.max(r.line.width,at),Ct=i.append("g").attr("data-index",n).attr("drag-helper",!0);Ct.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":Ke,"stroke-opacity":"0"});var wt={"fill-opacity":"0"},Mt=Math.max(Ke/2,at);return Ct.append("circle").attr({"data-line-point":"start-point",cx:u?ae(r.xanchor)+r.x0:ae(r.x0,W),cy:l?ge(r.yanchor)-r.y0:ge(r.y0,H),r:Mt}).style(wt).classed("cursor-grab",!0),Ct.append("circle").attr({"data-line-point":"end-point",cx:u?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:l?ge(r.yanchor)-r.y1:ge(r.y1,re),r:Mt}).style(wt).classed("cursor-grab",!0),Ct}function Ge(at){if(uz(e)){ke=null;return}if(f)at.target.tagName==="path"?ke="move":ke=at.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ke=te.element.getBoundingClientRect(),Ct=Ke.right-Ke.left,wt=Ke.bottom-Ke.top,Mt=at.clientX-Ke.left,Bt=at.clientY-Ke.top,Zt=!c&&Ct>o&&wt>s&&!at.shiftKey?ife.getCursor(Mt/Ct,1-Bt/wt):"move";nfe(t,Zt),ke=Zt.split("-")[0]}}function De(at){uz(e)||(u&&(v=ae(r.xanchor)),l&&(C=ge(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:ge(r.y0),_=u?r.x1:ae(r.x1),b=l?r.y1:ge(r.y1)),d<_?(L=d,m="x0",x=_,P="x1"):(L=_,m="x1",x=d,P="x0"),!l&&pb?(E=p,k="y0",T=b,M="y1"):(E=b,k="y1",T=p,M="y0"),Ge(at),Qe(i,r),qt(t,r,e),te.moveFn=ke==="move"?ce:je,te.altKey=at.altKey)}function xe(){uz(e)||(nfe(t),gt(i),ffe(t,e,r),sfe.call("_guiRelayout",e,a.getUpdateObj()))}function Ne(){uz(e)||gt(i)}function ce(at,Ke){if(r.type==="path"){var Ct=function(Bt){return Bt},wt=Ct,Mt=Ct;u?h("xanchor",r.xanchor=ze(v+at)):(wt=function(Zt){return ze(ae(Zt)+at)},B&&B.type==="date"&&(wt=Ev.encodeDate(wt))),l?h("yanchor",r.yanchor=Le(C+Ke)):(Mt=function(Zt){return Le(ge(Zt)+Ke)},G&&G.type==="date"&&(Mt=Ev.encodeDate(Mt))),h("path",r.path=afe(A,wt,Mt))}else u?h("xanchor",r.xanchor=ze(v+at)):(h("x0",r.x0=ze(d+at)),h("x1",r.x1=ze(_+at))),l?h("yanchor",r.yanchor=Le(C+Ke)):(h("y0",r.y0=Le(p+Ke)),h("y1",r.y1=Le(b+Ke)));t.attr("d",m7(e,r)),Qe(i,r),fz(e,n,r,F)}function je(at,Ke){if(c){var Ct=function(cr){return cr},wt=Ct,Mt=Ct;u?h("xanchor",r.xanchor=ze(v+at)):(wt=function(_r){return ze(ae(_r)+at)},B&&B.type==="date"&&(wt=Ev.encodeDate(wt))),l?h("yanchor",r.yanchor=Le(C+Ke)):(Mt=function(_r){return Le(ge(_r)+Ke)},G&&G.type==="date"&&(Mt=Ev.encodeDate(Mt))),h("path",r.path=afe(A,wt,Mt))}else if(f){if(ke==="resize-over-start-point"){var Bt=d+at,Zt=l?p-Ke:p+Ke;h("x0",r.x0=u?Bt:ze(Bt)),h("y0",r.y0=l?Zt:Le(Zt))}else if(ke==="resize-over-end-point"){var Et=_+at,Ae=l?b-Ke:b+Ke;h("x1",r.x1=u?Et:ze(Et)),h("y1",r.y1=l?Ae:Le(Ae))}}else{var ot=function(cr){return ke.indexOf(cr)!==-1},At=ot("n"),vt=ot("s"),Je=ot("w"),He=ot("e"),nt=At?E+Ke:E,tt=vt?T+Ke:T,It=Je?L+at:L,Yt=He?x+at:x;l&&(At&&(nt=E-Ke),vt&&(tt=T-Ke)),(!l&&tt-nt>s||l&&nt-tt>s)&&(h(k,r[k]=l?nt:Le(nt)),h(M,r[M]=l?tt:Le(tt))),Yt-It>o&&(h(m,r[m]=u?It:ze(It)),h(P,r[P]=u?Yt:ze(Yt)))}t.attr("d",m7(e,r)),Qe(i,r),fz(e,n,r,F)}function Qe(at,Ke){(u||l)&&Ct();function Ct(){var wt=Ke.type!=="path",Mt=at.selectAll(".visual-cue").data([0]),Bt=1;Mt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Bt}).classed("visual-cue",!0);var Zt=ae(u?Ke.xanchor:v7.midRange(wt?[Ke.x0,Ke.x1]:Ev.extractPathCoords(Ke.path,Zb.paramIsX))),Et=ge(l?Ke.yanchor:v7.midRange(wt?[Ke.y0,Ke.y1]:Ev.extractPathCoords(Ke.path,Zb.paramIsY)));if(Zt=Ev.roundPositionForSharpStrokeRendering(Zt,Bt),Et=Ev.roundPositionForSharpStrokeRendering(Et,Bt),u&&l){var Ae="M"+(Zt-1-Bt)+","+(Et-1-Bt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Mt.attr("d",Ae)}else if(u){var ot="M"+(Zt-1-Bt)+","+(Et-9-Bt)+"v18 h2 v-18 Z";Mt.attr("d",ot)}else{var At="M"+(Zt-9-Bt)+","+(Et-1-Bt)+"h18 v2 h-18 Z";Mt.attr("d",At)}}}function gt(at){at.selectAll(".visual-cue").remove()}function qt(at,Ke,Ct){var wt=Ke.xref,Mt=Ke.yref,Bt=Xb.getFromId(Ct,wt),Zt=Xb.getFromId(Ct,Mt),Et="";wt!=="paper"&&!Bt.autorange&&(Et+=wt),Mt!=="paper"&&!Zt.autorange&&(Et+=Mt),cz.setClipUrl(at,Et?"clip"+Ct._fullLayout._uid+Et:null,Ct)}}function afe(e,t,r){return e.replace(Zb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Zb.paramIsX[a],s=Zb.paramIsY[a],u=Zb.numParams[a],l=n.slice(1).replace(Zb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function qct(e,t){if(hz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){ofe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=ofe,y7(e)}}}function ofe(e){if(hz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(lfe(e),delete e._fullLayout._activeShapeIndex,y7(e))}}function Nct(e){if(hz(e)){lfe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),hfe=Cc(),dfe=Wc(),Bf=QP(),Uct=dz().eraseActiveShape,pz=ei(),Tf=pz._,Of=xfe.exports={};Of.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:Bf.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};pz.notifier(Tf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){pz.notifier(Tf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){pz.notifier(Tf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Of.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Bf.disk,click:function(e){hfe.sendDataToCloud(e)}};Of.editInChartStudio={name:"editInChartStudio",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Bf.pencil,click:function(e){hfe.sendDataToCloud(e)}};Of.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Tf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bf.zoombox,click:qp};Of.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Tf(e,"Pan")},attr:"dragmode",val:"pan",icon:Bf.pan,click:qp};Of.select2d={name:"select2d",_cat:"select",title:function(e){return Tf(e,"Box Select")},attr:"dragmode",val:"select",icon:Bf.selectbox,click:qp};Of.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Tf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bf.lasso,click:qp};Of.drawclosedpath={name:"drawclosedpath",title:function(e){return Tf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bf.drawclosedpath,click:qp};Of.drawopenpath={name:"drawopenpath",title:function(e){return Tf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bf.drawopenpath,click:qp};Of.drawline={name:"drawline",title:function(e){return Tf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bf.drawline,click:qp};Of.drawrect={name:"drawrect",title:function(e){return Tf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bf.drawrect,click:qp};Of.drawcircle={name:"drawcircle",title:function(e){return Tf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bf.drawcircle,click:qp};Of.eraseshape={name:"eraseshape",title:function(e){return Tf(e,"Erase active shape")},icon:Bf.eraseshape,click:Uct};Of.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Tf(e,"Zoom in")},attr:"zoom",val:"in",icon:Bf.zoom_plus,click:qp};Of.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Tf(e,"Zoom out")},attr:"zoom",val:"out",icon:Bf.zoom_minus,click:qp};Of.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Tf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bf.autoscale,click:qp};Of.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Tf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bf.home,click:qp};Of.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Tf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bf.tooltip_basic,gravity:"ne",click:qp};Of.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:Bf.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=dfe.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,_;for(f=0;f{"use strict";var bfe=x7(),Hct=Object.keys(bfe),wfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Afe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(wfe),iA=[],Wct=function(e){if(Afe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();iA.indexOf(t)===-1&&iA.push(t),iA.indexOf(r)===-1&&iA.push(r)}};Hct.forEach(function(e){Wct(bfe[e])});iA.sort();Tfe.exports={DRAW_MODES:wfe,backButtons:Afe,foreButtons:iA}});var w7=Te((Asr,Sfe)=>{"use strict";var wsr=b7();Sfe.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 Efe=Te((Tsr,Mfe)=>{"use strict";var jct=ei(),M5=jl(),Xct=Lf(),Zct=w7();Mfe.exports=function(t,r){var n=t.modebar||{},i=Xct.newContainer(r,"modebar");function a(s,u){return jct.coerce(n,i,Zct,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 Pfe=Te((Ssr,Lfe)=>{"use strict";var A7=Jl(),Yct=ku(),mz=ei(),kfe=QP(),Kct=yL().version,Jct=new DOMParser;function Cfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ky=Cfe.prototype;ky.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(),mz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};ky.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)})};ky.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};ky.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&&A7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||kfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};ky.createIcon=function(e){var t=Yct(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=Jct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ky.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=A7.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:mz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};ky.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var eht=Wc(),zfe=lc(),T7=$l(),tht=iv().isUnifiedHover,rht=Pfe(),yz=x7(),iht=b7().DRAW_MODES,nht=ei().extendDeep;Ife.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=fht(a):!n.displayModeBar&&n.watermark?o=[]:o=aht(t),i?i.update(t,o):r._modeBar=rht(t,o)};function aht(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"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(lht(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?F=["zoom2d","pan2d"]:_||b||c?F=["pan2d"]:v&&(F=["zoom2d"]),sht(r)&&F.push("select2d","lasso2d");var B=[],U=function(N){B.indexOf(N)===-1&&P.indexOf(N)!==-1&&B.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Dfe.exports={moduleType:"component",name:"modebar",layoutAttributes:w7(),supplyLayoutDefaults:Efe(),manage:Rfe()}});var M7=Te((ksr,Ffe)=>{"use strict";var cht=Nh().FROM_BL;Ffe.exports=function(t,r,n){n===void 0&&(n=cht[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 Kb=Te(E5=>{"use strict";var Yb=ei(),E7=Mm(),Lm=Wc().id2name,hht=Dd(),Bfe=M7(),dht=xy(),pht=rf().ALMOST_EQUAL,vht=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 yht(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;opht*p&&!C)){for(a=0;aF&&reP&&(P=re);var ge=(P-m)/(2*A);c/=ge,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=x{"use strict";var _z=Jl(),Np=$l(),Jv=Cc(),M0=ei(),L7=Wf(),P7=b5(),k5=jl(),nA=Mu(),Ufe=Fb(),jfe=S7(),C5=wu(),Dg=Nh(),Xfe=Kb(),ght=Xfe.enforce,_ht=Xfe.clean,Vfe=Mm().doAutoRange,Zfe="start",xht="middle",Yfe="end",bht=qh().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Aht],e)};function wht(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Aht(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(nA.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),jfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(De,xe,Ne){var ce=De._lw/2;if(De._id.charAt(0)==="x"){if(xe){if(Ne==="top")return xe._offset-n-ce}else return r.t+r.h*(1-(De.position||0))+ce%1;return xe._offset+xe._length+n+ce}if(xe){if(Ne==="right")return xe._offset+xe._length+n+ce}else return r.l+r.w*(De.position||0)+ce%1;return xe._offset-n-ce}for(a=0;a0){Eht(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Wfe(t.yanchor)}).call(L7.positionText,o,a);var f=(t.text.match(L7.BR_TAG_ALL)||[]).length;if(f){var c=Dg.LINE_SPACING*f+Dg.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=_z.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,_=p+Ufe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Wfe(t.yanchor)}).call(L7.positionText,o,_)}}}};function Tht(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=Sht(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Eht(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"&&Tht(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 kht(e,t){var r=e.title,n=e._size,i=0;switch(t===Zfe?i=r.pad.l:t===Yfe&&(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 Cht(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Dg.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 Wfe(e){return e==="top"?Dg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Dg.MID_SHIFT+"em"}function Lht(e){var t=e.title,r=xht;return M0.isRightAnchor(t)?r=Yfe:M0.isLeftAnchor(t)&&(r=Zfe),r}function Pht(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Dg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Dg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var zht=y_().readPaths,Iht=lz(),Kfe=o_().clearOutlineControllers,z7=jl(),Jfe=Mu(),Rht=Lf().arrayEditor,$fe=x_(),Dht=$fe.getPathString;ece.exports={draw:xz,drawOne:Qfe,activateLastSelection:Oht};function xz(e){var t=e._fullLayout;Kfe(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(z7.stroke,c).call(z7.fill,f).call(Jfe.dashLine,b?"solid":d,b?4+h:h);if(Fht(v,e,n),p){var C=Rht(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},T=zht(s,e);Iht(T,v,E)}else v.style("pointer-events",b?"all":"none");_[b]=v}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return Bht(e,L)})}}function Fht(e,t,r){var n=r.xref+r.yref;Jfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Bht(e,t){if(bz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){I7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=I7,xz(e)}}}function Oht(e){if(bz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=I7,xz(e)}}function I7(e){if(bz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Kfe(e),delete e._fullLayout._activeSelectionIndex,xz(e))}}});var rce=Te((zsr,tce)=>{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}tce.exports=qht});var nce=Te((Isr,ice)=>{function Nht(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}ice.exports=Nht});var oce=Te((Rsr,ace)=>{var Uht={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}};ace.exports=Uht});var lce=Te((Dsr,sce)=>{var P5=oce();function Vht(e,t,r){function n(p,_){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:null,below:null},otherFill:null}}function i(p,_,b){return{id:r?r.segmentId():-1,start:p,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=P5.create();function o(p,_,b,v,C,E){var T=t.pointsCompare(_,C);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?C:E,v?E:C)?1:-1}function s(p,_){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,_,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,_){var b=P5.node({isStart:!0,pt:p.start,seg:p,primary:_,other:null,status:null});return s(b,p.end),b}function l(p,_,b){var v=P5.node({isStart:!1,pt:_.end,seg:_,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,_){var b=u(p,_);return l(b,p,_),b}function c(p,_){r&&r.segmentChop(p.seg,_),p.other.remove(),p.seg.end=_,p.other.pt=_,s(p.other,p.pt)}function h(p,_){var b=i(_,p.seg.end,p.seg);return c(p,_),f(b,p.primary)}function d(p,_){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 E(G,j){var W=G.seg,N=j.seg,H=W.start,re=W.end,ae=N.start,ge=N.end;r&&r.checkIntersection(W,N);var ze=t.linesIntersect(H,re,ae,ge);if(ze===!1){if(!t.pointsCollinear(H,re,ae)||t.pointsSame(H,ge)||t.pointsSame(re,ae))return!1;var Le=t.pointsSame(H,ae),de=t.pointsSame(re,ge);if(Le&&de)return j;var te=!Le&&t.pointBetween(H,ae,ge),ke=!de&&t.pointBetween(re,ae,ge);if(Le)return ke?h(j,re):h(G,ge),j;te&&(de||(ke?h(j,re):h(G,ge)),h(j,H))}else ze.alongA===0&&(ze.alongB===-1?h(G,ae):ze.alongB===0?h(G,ze.pt):ze.alongB===1&&h(G,ge)),ze.alongB===0&&(ze.alongA===-1?h(j,H):ze.alongA===0?h(j,ze.pt):ze.alongA===1&&h(j,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(k){var j=E(L,k);if(j)return j}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.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,M?L.seg.myFill.below=M.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 A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?_:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=x.insert(P5.node({ev:L}))}else{var F=L.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(F.prev)&&b.exists(F.next)&&E(F.prev.ev,F.next.ev),r&&r.statusRemove(F.ev.seg),F.remove(),!L.primary){var B=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=B}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var _,b=p[p.length-1],v=0;v{function Ght(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 Hht={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)}};cce.exports=Hht});var pce=Te((Osr,dce)=>{var Wht={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=rce(),Xht=nce(),vce=lce(),Zht=fce(),I5=hce(),mce=pce(),E0=!1,R5=Xht(),kv;kv={buildLog:function(e){return e===!0?E0=jht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return R5.epsilon(e)},segments:function(e){var t=vce(!0,R5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=vce(!1,R5,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:Zht(e.segments,R5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mce.toPolygon(kv,e)},polygonToGeoJSON:function(e){return mce.fromPolygon(kv,R5,e)},union:function(e,t){return D5(e,t,kv.selectUnion)},intersect:function(e,t){return D5(e,t,kv.selectIntersect)},difference:function(e,t){return D5(e,t,kv.selectDifference)},differenceRev:function(e,t){return D5(e,t,kv.selectDifferenceRev)},xor:function(e,t){return D5(e,t,kv.selectXor)}};function D5(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);yce.exports=kv});var xce=Te((Nsr,_ce)=>{_ce.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;_&&(s=!s)}return s}});var F5=Te((Usr,bce)=>{"use strict";var D7=zL().dot,wz=rf().BADNUM,Az=bce.exports={};Az.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===wz||vo||_&&l(p))}function c(p,_){var b=p[0],v=p[1];if(b===wz||bi||v===wz||vo)return!1;var C=r.length,E=r[0][0],T=r[0][1],L=0,x,k,M,m,P;for(x=1;xMath.max(k,E)||v>Math.max(M,T)))if(vs||Math.abs(D7(c,l))>i)return!0;return!1};Az.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 Ace=Te((Vsr,wce)=>{"use strict";wce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Wce=Te((Gsr,Hce)=>{"use strict";var Tce=gce(),Yht=xce(),q5=$l(),Kht=Mu().dashStyle,B5=jl(),Jht=Xc(),$ht=iv().makeEventData,H5=Cm(),Qht=H5.freeMode,edt=H5.rectMode,N5=H5.drawMode,q7=H5.openMode,N7=H5.selectMode,Sce=x_(),Mce=A5(),Pce=lz(),zce=o_().clearOutline,Ice=y_(),F7=Ice.handleEllipse,tdt=Ice.readPaths,rdt=oz().newShapes,idt=u7(),ndt=R7().activateLastSelection,Sz=ei(),adt=Sz.sorterAsc,Rce=F5(),O5=WL(),k0=Wc().getFromId,odt=b5(),sdt=L5().redrawReglTraces,Mz=Ace(),Cy=Mz.MINSELECT,ldt=Rce.filter,U7=Rce.tester,V7=rz(),Ece=V7.p2r,udt=V7.axValue,fdt=V7.getTransform;function G7(e){return e.subplot!==void 0}function cdt(e,t,r,n,i){var a=!G7(n),o=Qht(i),s=edt(i),u=q7(i),l=N5(i),f=N7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,_=p._fullLayout,b=f&&_.newselection.mode==="immediate"&&a,v=_._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,T=fdt(E),L=t-C.left,x=r-C.top;_._calcInverseTransform(p);var k=Sz.apply3DTransform(_._invTransform)(L,x);L=k[0],x=k[1];var M=_._invScaleX,m=_._invScaleY,P=L,A=x,F="M"+L+","+x,B=n.xaxes[0],U=n.yaxes[0],G=B._length,j=U._length,W=e.altKey&&!(N5(i)&&u),N,H,re,ae,ge,ze,Le;Fce(e,p,n),o&&(N=ldt([[L,x]],Mz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?_.newshape:_.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?B5.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":Kht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(B5.stroke,Ee).call(B5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",F+"Z");var Se=v.append("path").attr("class","zoombox-corners").style({fill:B5.background,stroke:B5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ge=v.select(".label-temp");Ge.empty()&&(Ge=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var De=_._uid+Mz.SELECTID,xe=[],Ne=Ez(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=B._id,Qe=U._id;Uce(p,je,Qe,Ne);for(var gt=(p.layout||{}).selections||[],qt=[],at=!1,Ke=0;Ke=0){p._fullLayout._deactivateShape(p);return}if(!l){var gt=_.clickmode;O5.done(De).then(function(){if(O5.clear(De),je===2){for(de.remove(),ge=0;ge-1&&Dce(Qe,p,n.xaxes,n.yaxes,n.subplot,n,de),gt==="event"&&G5(p,void 0);Jht.click(p,Qe,E.id)}).catch(Sz.error)}},n.doneFn=function(){Se.remove(),O5.done(De).then(function(){O5.clear(De),!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(xe),f&&G5(p,Le)}).catch(Sz.error)}}function Dce(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,_,b,v,C,E,T,L;if(mdt(s)){Fce(e,t,a),h=Ez(t,r,n,i);var x=ydt(s,h),k=x.pointNumbers.length>0;if(k?gdt(h,x):_dt(h)&&(C=Cce(x))){for(o&&o.remove(),L=0;L=0}function vdt(e){return e._fullLayout._activeSelectionIndex>=0}function U5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;pdt(i)&&i._fullLayout._deactivateShape(i),vdt(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=N5(r),u=N7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=rdt(l,e)),f&&q5.call("_guiRelayout",i,{shapes:f});var c;u&&!G7(e)&&(c=idt(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,q5.call("_guiRelayout",i,{selections:c}).then(function(){t&&ndt(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function kce(e){return e._id}function Ez(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(kce),o=r.map(kce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function gdt(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=Lce(e,!0);if(je.length){var Qe=je[0].xref,gt=je[0].yref;if(Qe&>){var qt=Vce(je),at=Gce([k0(e,Qe,"x"),k0(e,gt,"y")]);at(xe,qt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&G5(e,xe),h._reselect=!1}if(!o&&h._deselect){var Ke=h._deselect;s=Ke.xref,u=Ke.yref,wdt(s,u,f)||Uce(e,s,u,n),ce&&(xe.points.length?G5(e,xe):j7(e)),h._deselect=!1}return{eventData:xe,selectionTesters:r}}function bdt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";jce.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=Te((Wsr,Xce)=>{"use strict";Xce.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 Jb=Te((Xsr,Kce)=>{"use strict";var Zce=X7(),Yce=gc(),kz=qh(),Edt=Lf().templatedArray,jsr=W5();Kce.exports=Edt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Yce({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:Zce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Zce.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",kz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",kz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",kz.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",kz.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:Yce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ly=Te((Zsr,Jce)=>{"use strict";Jce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pm=Te((Ysr,$ce)=>{"use strict";$ce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=Te((Ksr,ohe)=>{"use strict";var Qce=jc().axisHoverFormat,{hovertemplateAttrs:kdt,texttemplateAttrs:Cdt,templatefallbackAttrs:ehe}=Ff(),the=nc(),Ldt=gc(),rhe=Id().dash,Pdt=Id().pattern,zdt=Mu(),Idt=Ly(),j5=Su().extendFlat,Rdt=Pm();function ihe(e){return{valType:"any",dflt:0,editType:"calc"}}function nhe(e){return{valType:"any",editType:"calc"}}function ahe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ohe.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:ihe("x"),yperiod:ihe("y"),xperiod0:nhe("x0"),yperiod0:nhe("y0"),xperiodalignment:ahe("x"),yperiodalignment:ahe("y"),xhoverformat:Qce("x"),yhoverformat:Qce("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:Cdt(),texttemplatefallback:ehe({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:kdt({},{keys:Idt.eventDataKeys}),hovertemplatefallback:ehe(),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({},rhe,{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:Rdt(!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:Pdt,marker:j5({symbol:{valType:"enumerated",values:zdt.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({},rhe,{arrayOk:!0}),editType:"calc"},the("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"},the("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:Ldt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Z7=Te(($sr,uhe)=>{"use strict";var she=Jb(),lhe=Zc().line,Ddt=Id().dash,Cz=Su().extendFlat,Fdt=Sc().overrideAll,Bdt=Lf().templatedArray,Jsr=W5();uhe.exports=Fdt(Bdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Cz({},she.xref,{}),yref:Cz({},she.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:lhe.color,width:Cz({},lhe.width,{min:1,dflt:1}),dash:Cz({},Ddt,{dflt:"dot"})}}),"arraydraw","from-root")});var dhe=Te((Qsr,hhe)=>{"use strict";var fhe=ei(),Lz=wu(),Odt=Kd(),qdt=Z7(),che=x_();hhe.exports=function(t,r){Odt(t,r,{name:"selections",handleItemDefaults:Ndt});for(var n=r.selections,i=0;i{"use strict";phe.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=Te((tlr,ghe)=>{"use strict";var Udt=$l(),mhe=ei(),yhe=Wc();ghe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=Udt.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 _he=R7(),Z5=Wce();xhe.exports={moduleType:"component",name:"selections",layoutAttributes:Z7(),supplyLayoutDefaults:dhe(),supplyDrawNewSelectionDefaults:vhe(),includeBasePlot:X5()("selections"),draw:_he.draw,drawOne:_he.drawOne,reselect:Z5.reselect,prepSelect:Z5.prepSelect,clearOutline:Z5.clearOutline,clearSelectionsCache:Z5.clearSelectionsCache,selectOnClick:Z5.selectOnClick}});var tU=Te((ilr,Nhe)=>{"use strict";var Q7=Jl(),C0=ei(),bhe=C0.numberFormat,Vdt=hd(),Gdt=VP(),Pz=$l(),Lhe=C0.strTranslate,Hdt=Wf(),whe=jl(),w_=Mu(),Wdt=Xc(),Ahe=wu(),jdt=Em(),Xdt=xp(),Phe=Cm(),zz=Phe.selectingOrDrawing,Zdt=Phe.freeMode,Ydt=Nh().FROM_TL,Kdt=b5(),Jdt=L5().redrawReglTraces,$dt=Cc(),K7=Wc().getFromId,Qdt=oh().prepSelect,ept=oh().clearOutline,tpt=oh().selectOnClick,Y7=M7(),eU=qh(),The=eU.MINDRAG,av=eU.MINZOOM,She=!0;function rpt(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,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,C=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var He=t.overlays,nt=0;nt=0){tt._fullLayout._deactivateShape(tt);return}var It=tt._fullLayout.clickmode;if($7(tt),He===2&&!f&&Et(),l)It.indexOf("select")>-1&&tpt(nt,tt,_,b,t.id,ae),It.indexOf("event")>-1&&Wdt.click(tt,nt,t.id);else if(He===1&&f){var Yt=o?h:c,cr=o==="s"||s==="w"?0:1,_r=Yt._name+".range["+cr+"]",yr=ipt(Yt,cr),Ut="left",Re="middle";if(Yt.fixedrange)return;o?(Re=o==="n"?"top":"bottom",Yt.side==="right"&&(Ut="right")):s==="e"&&(Ut="right"),tt._context.showAxisRangeEntryBoxes&&Q7.select(re).call(Hdt.makeEditable,{gd:tt,immediate:!0,background:tt._fullLayout.paper_bgcolor,text:String(yr),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ut,verticalAlign:Re}).on("edit",function(be){var Oe=Yt.d2r(be);Oe!==void 0&&Pz.call("_guiRelayout",tt,_r,Oe)})}}Xdt.init(ae);var Le,de,te,ke,Ee,Se,Ge,De,xe,Ne;function ce(He,nt,tt){var It=re.getBoundingClientRect();Le=nt-It.left,de=tt-It.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Le,de);Le=Yt[0],de=Yt[1],te={l:Le,r:Le,w:0,t:de,b:de,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:Vdt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Se=!1,Ge="xy",Ne=!1,De=Rhe(u,ke,v,C,Ee),xe=Dhe(u,v,C)}function je(He,nt){if(e._transitioningWithDuration)return!1;var tt=Math.max(0,Math.min(E,j*He+Le)),It=Math.max(0,Math.min(T,W*nt+de)),Yt=Math.abs(tt-Le),cr=Math.abs(It-de);te.l=Math.min(Le,tt),te.r=Math.max(Le,tt),te.t=Math.min(de,It),te.b=Math.max(de,It);function _r(){Ge="",te.r=te.l,te.t=te.b,xe.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>av||cr>av?(Ge="xy",Yt/E>cr/T?(cr=Yt*T/E,de>It?te.t=de-cr:te.b=de+cr):(Yt=cr*E/T,Le>tt?te.l=Le-Yt:te.r=Le+Yt),xe.attr("d",Iz(te))):_r();else if(x.isSubplotConstrained)if(Yt>av||cr>av){Ge="xy";var yr=Math.min(te.l/E,(T-te.b)/T),Ut=Math.max(te.r/E,(T-te.t)/T);te.l=yr*E,te.r=Ut*E,te.b=(1-yr)*T,te.t=(1-Ut)*T,xe.attr("d",Iz(te))}else _r();else!M||cr0){var be;if(x.isSubplotConstrained||!k&&M.length===1){for(be=0;be<_.length;be++)_[be].range=_[be]._r.slice(),Y7(_[be],1-nt/T);He=nt*E/T,Ut=He/2}if(x.isSubplotConstrained||!M&&k.length===1){for(be=0;be1&&(_r.maxallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"e":"w")||_r.minallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"w":"e"))&&(ft=1,fe=0),Fe?(ye=Oe,pe=o||x.isSubplotConstrained?He[1]:Je(yr,ye)):x.yaHash[yr._id]?(ye=Oe,pe=He[1]*yr._length/h._length):x.xaHash[yr._id]?(ye=be,pe=k==="ew"?-He[0]*yr._length/c._length:Je(yr,ye,{e:"right",w:"left"}[k])):(ye=At(yr,be,Oe),pe=vt(yr,ye)),ye>1&&(yr.maxallowed!==void 0&&A===(yr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function apt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Rhe(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",Lhe(r,n)).attr("d",i+"Z")}function Dhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:whe.background,stroke:whe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Lhe(t,r)).attr("d","M0,0Z")}function Fhe(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"),Bhe(e,t,i,a)}function Bhe(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 $7(e){Q7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ohe(e){She&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),She=!1)}function opt(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 spt(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 Iz(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 khe(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 lpt=Jl(),Rz=Xc(),upt=xp(),fpt=Em(),zm=tU().makeDragBox,yd=qh().DRAGGERSIZE;Dz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){lpt.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,upt.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)},Dz.updateFx(t)}};Dz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";fpt(t._draggers,r)}});var Ghe=Te((alr,Vhe)=>{"use strict";var Uhe=$l();Vhe.exports=function(t){for(var r=Uhe.layoutArrayContainers,n=Uhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var cpt=Ag(),iU=PL(),Y5=K1(),hpt=VL().sorterAsc,nU=$l();K5.containerArrayMatch=Ghe();var dpt=K5.isAddVal=function(t){return t==="add"||cpt(t)},Hhe=K5.isRemoveVal=function(t){return t===null||t==="remove"};K5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=nU.getComponentMethod(o,"supplyLayoutDefaults"),u=nU.getComponentMethod(o,"draw"),l=nU.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===iU||u===iU,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(Hhe(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(hpt),_=r.get(),b=_||[],v=a(h,o).get(),C=[],E=-1,T=b.length,L,x,k,M,m,P,A,F;for(L=0;Lb.length-(A?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),Hhe(P)?C.push(k):A?(P==="add"&&(P={}),b.splice(k,0,P),v&&v.splice(k,0,{})):Y5.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?_||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==iU){var B;if(E===-1)B=p;else{for(T=Math.max(b.length,T),B=[],L=0;L=E));L++)B.push(k);for(L=E;L{"use strict";var Yhe=ku(),Khe=$l(),Up=ei(),J5=Cc(),Jhe=Wc(),$he=jl(),$5=Jhe.cleanId,ppt=Jhe.getFromTrace,aU=Khe.traceIs,vpt=["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"),$he.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function aA(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=Zhe(t);r;){if(r in e)return!0;r=Zhe(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)?oU(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=oU});var Zz=Te(zf=>{"use strict";var qz=Jl(),gpt=ku(),_pt=gq(),Hl=ei(),Lc=Hl.nestedProperty,uU=k3(),ov=Bne(),P0=$l(),jz=P3(),Nu=Cc(),Vp=wu(),xpt=RN(),bpt=Dd(),sU=Mu(),wpt=jl(),Apt=rU().initInteractions,Tpt=jv(),Spt=oh().clearOutline,nde=_b().dfltConfig,Bz=Whe(),Sh=Qhe(),ac=L5(),A_=Sc(),Mpt=qh().AX_NAME_PATTERN,lU=0,ede=5;function Ept(e,t,r,n){var i;if(e=Hl.getGraphDiv(e),uU.init(e),Hl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=uU.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)}ode(e,n),r||(r={}),qz.select(e).classed("js-plotly-plot",!0),sU.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)&&(Kpt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),sU.initGradients(e),sU.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 sde(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]),Uz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Uz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function zpt(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 M.parts[A]!="string";)A--;var F=M.parts[A],B=M.parts[A-1]+"."+F,U=M.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),W=M.get();if(m!==void 0){v[k]=m,C[k]=F==="reverse"?m:Fg(W);var N=jz.getLayoutValObject(n,M.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(B.match(mde))x(B),Lc(n,U+"._inputRange").set(null);else if(B.match(yde)){x(B),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else B.match(Fpt)&&Lc(n,U+"._inputDomain").set(null);if(F==="type"){L=G;var ge=j.type==="linear"&&m==="log",ze=j.type==="log"&&m==="linear";if(ge||ze){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)ge&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Le=L.range[0],de=L.range[1];ge?(Le<=0&&de<=0&&E(U+".autorange",!0),Le<=0?Le=de/1e6:de<=0&&(de=Le/1e6),E(U+".range[0]",Math.log(Le)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Le)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.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(F.match(Mpt)){var te=Lc(n,k).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),P0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),P0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Bz.containerArrayMatch(k);if(Ee){f=Ee.array,c=Ee.index;var Se=Ee.property,Ge=N||{editType:"calc"};c!==""&&Se===""&&(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,Ge),l[f]||(l[f]={});var De=l[f][c];De||(De=l[f][c]={}),De[Se]=m,delete t[k]}else F==="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?A_.update(b,N):b.calc=!0,M.set(m))}}for(f in l){var xe=Bz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);xe||(b.plot=!0)}for(var Ne in T){L=Vp.getFromId(e,Ne);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)T[je]||(Vp.getFromId(e,je)._constraintShrinkable=!0)}}(_de(e)||t.height||t.width)&&(b.plot=!0);var Qe=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=zf.newPlot(e,t,r,n).then(()=>{for(let[U,G]of B)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),Upt(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,_=Hpt(e,u,h,d,p),b=_.newDataRevision,v=Gpt(e,s,c,d,p,b);if(_de(e)&&(_.layoutReplot=!0),v.calc||_.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 Gpt(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=jz.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 F=n._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var B=0;Bn._timeToNext&&p()};F()}var b=0;function v(F){return Array.isArray(i)?b>=i.length?F.transitionOpts=i[b]:F.transitionOpts=i[0]:F.transitionOpts=i,b++,F}var C,E,T=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&Hl.isPlainObject(t);if(k)T.push({type:"object",data:v(Hl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(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,_=u[d]||c[d];d&&p&&typeof p=="number"&&_&&lUM.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 Zpt(e){e=Hl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Nu.cleanPlot([],{},r,t),Nu.purge(e),uU.purge(e),t._container&&t._container.remove(),delete e._context,e}function Ypt(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 Kpt(e){var t=qz.select(e),r=e._fullLayout;if(r._calcInverseTransform=Ypt,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={};qz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Hl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Tpt.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=Wpt;zf.addFrames=jpt;zf.deleteFrames=Xpt;zf.addTraces=hde;zf.deleteTraces=dde;zf.extendTraces=fde;zf.moveTraces=fU;zf.prependTraces=cde;zf.newPlot=Ppt;zf._doPlot=Ept;zf.purge=Zpt;zf.react=Vpt;zf.redraw=Lpt;zf.relayout=Q5;zf.restyle=Vz;zf.setPlotConfig=kpt;zf.update=Hz;zf._guiRelayout=cU(Q5);zf._guiRestyle=cU(Vz);zf._guiUpdate=cU(Hz);zf._storeDirectGUIEdit=Dpt});var Bg=Te(Py=>{"use strict";var Jpt=$l();Py.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Py.getRedrawFunc=function(e){return function(){Jpt.getComponentMethod("colorbar","draw")(e)}};Py.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Py.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var xde=window.URL||window.webkitURL;Py.createObjectURL=function(e){return xde.createObjectURL(e)};Py.revokeObjectURL=function(e){return xde.revokeObjectURL(e)};Py.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=$pt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Py.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function $pt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var dU=Jl(),flr=ei(),Qpt=Mu(),evt=jl(),clr=jv(),hU=/"/g,tE="TOBESTRIPPED",tvt=new RegExp('("'+tE+")|("+tE+'")',"g");function rvt(e){var t=dU.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 ivt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}bde.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(Qpt.setRect,0,0,s,u).call(evt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var nvt=ei(),avt=Tb().EventEmitter,rE=Bg();function ovt(e){var t=e.emitter||new avt,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}),_=new a,b,v;s==="svg"||nvt.isSafari()?v=rE.encodeSVG(o):(b=rE.createBlob(o,"svg"),v=rE.createObjectURL(b)),u.width=h,u.height=d,_.onload=function(){var C;switch(b=null,rE.revokeObjectURL(v),s!=="svg"&&p.drawImage(_,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)},_.onerror=function(C){if(b=null,rE.revokeObjectURL(v),i(C),!e.promise)return t.emit("error",C)},_.src=v});return e.promise?r:t}wde.exports=ovt});var vU=Te((plr,Sde)=>{"use strict";var Ade=ku(),Tde=Zz(),svt=Cc(),zy=ei(),iE=Bg(),lvt=Yz(),uvt=Kz(),fvt=yL().version,pU={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 cvt(e,t){t=t||{};var r,n,i,a;zy.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=zy.getGraphDiv(e),r=zy.extendDeep([],e.data),n=zy.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||zy.validate(t[x],pU[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 "+zy.join2(pU.format.values,", "," or ")+".");var s={};function u(x,k){return zy.coerce(t,s,pU,x,k)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=zy.extendFlat({},n);f?b.width=f:t.width===null&&Ade(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&Ade(a.height)&&(b.height=a.height);var v=zy.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=iE.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,iE.getDelay(_._fullLayout))})}function T(){return new Promise(function(x,k){var M=lvt(_,l,h),m=_._fullLayout.width,P=_._fullLayout.height;function A(){Tde.purge(_),document.body.removeChild(_)}if(l==="full-json"){var F=svt.graphJson(_,!1,"keepdata","object",!0,!0);return F.version=fvt,F=JSON.stringify(F),A(),x(p?F:iE.encodeJSON(F))}if(A(),l==="svg")return x(p?M:iE.encodeSVG(M));var B=document.createElement("canvas");B.id=zy.randstr(),uvt({format:l,width:m,height:P,scale:h,canvas:B,svg:M,promise:!0}).then(x).catch(k)})}function L(x){return p?x.replace(iE.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){Tde.newPlot(_,r,b,v).then(C).then(E).then(T).then(function(M){x(L(M))}).catch(function(M){k(M)})})}Sde.exports=cvt});var kde=Te((vlr,Ede)=>{"use strict";var z0=ei(),hvt=Cc(),dvt=P3(),pvt=_b().dfltConfig,Im=z0.isPlainObject,Qb=Array.isArray,mU=z0.isArrayOrTypedArray;Ede.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=dvt.get(),i=[],a={_context:z0.extendFlat({},pvt)},o,s;Qb(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"))),hvt.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,T,L,x,k;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var M=c[T].length;for(E=0;E<(C?Math.min(M,b[T].length):M);E++)L=C?b[T][E]:b,x=f[T][E],k=c[T][E],z0.validate(x,L)?k!==x&&k!==+x&&n.push(gd("dynamic",i,l.concat(T,E),x,k)):n.push(gd("value",i,l.concat(T,E),x))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var bvt=ei(),$z=Bg();function wvt(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=$z.createBlob(e,r),l=$z.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),$z.revokeObjectURL(l),u=null,o(t);if(bvt.isSafari()){var f=r==="svg"?",":";base64,";return $z.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Cde.exports=wvt});var yU=Te((glr,zde)=>{"use strict";var Pde=ei(),Avt=vU(),Tvt=Lde(),ylr=Bg();function Svt(e,t){var r;return Pde.isPlainObject(e)||(r=Pde.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=Avt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Tvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}zde.exports=Svt});var Bde=Te(gU=>{"use strict";var Cv=ei(),Lv=Cv.isPlainObject,Ide=P3(),Rde=Cc(),Mvt=Gf(),Dde=Lf(),Fde=_b().dfltConfig;gU.makeTemplate=function(e){e=Cv.isPlainObject(e)?e:Cv.getGraphDiv(e),e=Cv.extendDeep({_context:Fde},{data:e.data,layout:e.layout}),Rde.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,kvt.bind(null,d));var _=Cv.coerce(d,{},Mvt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(p)}),nE(r,n.layout,Evt.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)&&Qz(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,T){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],k=I0(E,L,T);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)&&Cvt(x)&&C(x,k)}}if(C({data:u,layout:s},""),o.length)return o.map(Lvt)};function Cvt(e){for(var t=0;t{"use strict";var ad=Zz();Vc._doPlot=ad._doPlot;Vc.newPlot=ad.newPlot;Vc.restyle=ad.restyle;Vc.relayout=ad.relayout;Vc.redraw=ad.redraw;Vc.update=ad.update;Vc._guiRestyle=ad._guiRestyle;Vc._guiRelayout=ad._guiRelayout;Vc._guiUpdate=ad._guiUpdate;Vc._storeDirectGUIEdit=ad._storeDirectGUIEdit;Vc.react=ad.react;Vc.extendTraces=ad.extendTraces;Vc.prependTraces=ad.prependTraces;Vc.addTraces=ad.addTraces;Vc.deleteTraces=ad.deleteTraces;Vc.moveTraces=ad.moveTraces;Vc.purge=ad.purge;Vc.addFrames=ad.addFrames;Vc.deleteFrames=ad.deleteFrames;Vc.animate=ad.animate;Vc.setPlotConfig=ad.setPlotConfig;var Pvt=HM().getGraphDiv,zvt=dz().eraseActiveShape;Vc.deleteActiveShape=function(e){return zvt(Pvt(e))};Vc.toImage=vU();Vc.validate=kde();Vc.downloadImage=yU();var Ode=Bde();Vc.makeTemplate=Ode.makeTemplate;Vc.validateTemplate=Ode.validateTemplate});var oA=Te((blr,Nde)=>{"use strict";var _U=ei(),Ivt=$l();Nde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Ivt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=_U.minRowLength(a);o?s=Math.min(l,_U.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=_U.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Rm=Te((wlr,Gde)=>{"use strict";var Ude=ei().dateTick0,Rvt=rf(),Dvt=Rvt.ONEWEEK;function Vde(e,t){return e%Dvt===0?Ude(t,1):Ude(t,0)}Gde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Vde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Vde(s,r.ycalendar)),i("yperiodalignment"))}}});var jde=Te((Alr,Wde)=>{"use strict";var Hde=["orientation","groupnorm","stackgaps"];Wde.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 Xde=jl(),Zde=yp().hasColorscale,Yde=nd(),Fvt=lc();Kde.exports=function(t,r,n,i,a,o={}){var s=Fvt.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),Zde(t,"marker")&&Yde(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=Xde.background:l=Xde.defaultLine,a("marker.line.color",l),Zde(t,"marker.line")&&Yde(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=Te((Slr,Jde)=>{"use strict";var Bvt=ei().isArrayOrTypedArray,Ovt=yp().hasColorscale,qvt=nd();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),Ovt(t,"line"))qvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Bvt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var sA=Te((Mlr,$de)=>{"use strict";$de.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=Te((Elr,Qde)=>{"use strict";var Nvt=ei();Qde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),Nvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Dm=Te((klr,tpe)=>{"use strict";var tI=jl(),epe=ei().isArrayOrTypedArray;function Uvt(e){for(var t=tI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var rpe=ei(),Vvt=$l(),Gvt=Zc(),Hvt=Ly(),lA=lc(),Wvt=oA(),jvt=Rm(),Xvt=jde(),Zvt=$v(),Yvt=R0(),ipe=sA(),Kvt=D0(),Jvt=Dm(),$vt=ei().coercePattern;npe.exports=function(t,r,n,i){function a(d,p){return rpe.coerce(t,r,Gvt,d,p)}var o=Wvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){jvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Xvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var Qvt=Kb().getAxisGroup;ope.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=Qvt(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,_=p[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=_.offsetIndex)}});var xU=Te((Plr,spe)=>{"use strict";var e0t=ei(),t0t=e2(),r0t=Zc();spe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return e0t.coerce(i._input,i,r0t,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 upe=Te((zlr,lpe)=>{"use strict";var i0t=ei(),n0t=rP();lpe.exports=function(e,t){function r(i,a){return i0t.coerce(e,t,n0t,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Fm=Te((Ilr,cpe)=>{"use strict";var a0t=ku(),fpe=ei(),o0t=fpe.dateTime2ms,rI=fpe.incrementMonth,s0t=rf(),l0t=s0t.ONEAVGMONTH;cpe.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(a0t(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=o0t(h,l)||0,p=[],_=[],b=[],v=i.length,C=0;CE;)x=rI(x,-s,l);for(;x<=E;)x=rI(x,s,l);L=rI(x,-s,l)}else{for(T=Math.round((E-d)/o),x=d+T*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}p[C]=f?L:c?x:(L+x)/2,_[C]=L,b[C]=x}return{vals:p,starts:_,ends:b}}});var F0=Te((Rlr,dpe)=>{"use strict";var bU=yp().hasColorscale,wU=gp(),hpe=lc();dpe.exports=function(t,r){hpe.hasLines(r)&&bU(r,"line")&&wU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),hpe.hasMarkers(r)&&(bU(r,"marker")&&wU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),bU(r,"marker.line")&&wU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Iy=Te((Dlr,ppe)=>{"use strict";var sh=ei();ppe.exports=function(t,r){for(var n=0;n{"use strict";var vpe=ei();mpe.exports=function(t,r){vpe.isArrayOrTypedArray(r.selectedpoints)&&vpe.tagSelected(t,r)}});var O0=Te((Blr,Ape)=>{"use strict";var ype=ku(),TU=ei(),aE=wu(),gpe=Fm(),AU=rf().BADNUM,SU=lc(),u0t=F0(),f0t=Iy(),c0t=B0();function h0t(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=gpe(t,n,"x",a),u=gpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=MU(t,r,n,i),_=!1,b,v,C,E,T,L;bpe(r,t);var x="x",k="y",M;if(p)TU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(k="s",M="x"):(x="s",M="y"),T=p.stackgaps==="interpolate";else{var m=xpe(t,c);_pe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!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";Tpe.exports=iI;var d0t=ei().distinctVals;function iI(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";Mpe.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var t2=Te((Nlr,Lpe)=>{"use strict";var q0=ku(),{isArrayOrTypedArray:Og}=ei(),{BADNUM:uA}=rf(),p0t=$l(),oE=wu(),{getAxisGroup:v0t}=Kb(),nI=Spe(),{TEXTPAD:m0t}=T_(),{LINE_SPACING:y0t}=Nh(),{BR_TAG_ALL:g0t}=Wf();function _0t(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*y0t*r+m0t;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 C0t(e,t,r,n){for(var i=fA(n),a=0;a{"use strict";var Ppe=O0(),zpe=t2().setGroupPositions;function P0t(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 I0t=Mu(),Ope=rf(),sE=Ope.BADNUM,qpe=Ope.LOG_CLIP,Dpe=qpe+.5,Fpe=qpe-.5,aI=ei(),R0t=aI.segmentsIntersect,Bpe=aI.constrain,IU=Ly();Npe.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,_=p==="linear",b=n.fill&&n.fill!=="none",v=[],C=IU.minTolerance,E=t.length,T=new Array(E),L=0,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae;function ge(Re){var be=t[Re];if(!be)return!1;var Oe=r.linearized?i.l2p(be.x):i.c2p(be.x),Ie=r.linearized?a.l2p(be.y):a.c2p(be.y);if(Oe===sE){if(o&&(Oe=i.c2p(be.x,!0)),Oe===sE)return!1;s&&Ie===sE&&(Oe*=Math.abs(i._m*l*(i._m>0?Dpe:Fpe)/(a._m*u*(a._m>0?Dpe:Fpe)))),Oe*=1e3}if(Ie===sE){if(s&&(Ie=a.c2p(be.y,!0)),Ie===sE)return!1;Ie*=1e3}return[Oe,Ie]}function ze(Re,be,Oe,Ie){var Fe=Oe-Re,ft=Ie-be,ye=.5-Re,fe=.5-be,pe=Fe*Fe+ft*ft,dt=Fe*ye+ft*fe;if(dt>0&&dt1||Math.abs(ye.y-Oe[0][1])>1)&&(ye=[ye.x,ye.y],Ie&&ke(ye,Re)Ge||Re[1]xe)return[Bpe(Re[0],Se,Ge),Bpe(Re[1],De,xe)]}function wt(Re,be){if(Re[0]===be[0]&&(Re[0]===Se||Re[0]===Ge)||Re[1]===be[1]&&(Re[1]===De||Re[1]===xe))return!0}function Mt(Re,be){var Oe=[],Ie=Ct(Re),Fe=Ct(be);return Ie&&Fe&&wt(Ie,Fe)||(Ie&&Oe.push(Ie),Fe&&Oe.push(Fe)),Oe}function Bt(Re,be,Oe){return function(Ie,Fe){var ft=Ct(Ie),ye=Ct(Fe),fe=[];if(ft&&ye&&wt(ft,ye))return fe;ft&&fe.push(ft),ye&&fe.push(ye);var pe=2*aI.constrain((Ie[Re]+Fe[Re])/2,be,Oe)-((ft||Ie)[Re]+(ye||Fe)[Re]);if(pe){var dt;ft&&ye?dt=pe>0==ft[Re]>ye[Re]?ft:ye:dt=ft||ye,dt[Re]+=pe}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ke:p==="hv"||p==="vh"?Zt=Mt:p==="hvh"?Zt=Bt(0,Se,Ge):p==="vhv"&&(Zt=Bt(1,De,xe));function Et(Re,be){var Oe=be[0]-Re[0],Ie=(be[1]-Re[1])/Oe,Fe=(Re[1]*be[0]-be[1]*Re[0])/Oe;return Fe>0?[Ie>0?Se:Ge,xe]:[Ie>0?Ge:Se,De]}function Ae(Re){var be=Re[0],Oe=Re[1],Ie=be===T[L-1][0],Fe=Oe===T[L-1][1];if(!(Ie&&Fe))if(L>1){var ft=be===T[L-2][0],ye=Oe===T[L-2][1];Ie&&(be===Se||be===Ge)&&ft?ye?L--:T[L-1]=Re:Fe&&(Oe===De||Oe===xe)&&ye?ft?L--:T[L-1]=Re:T[L++]=Re}else T[L++]=Re}function ot(Re){T[L-1][0]!==Re[0]&&T[L-1][1]!==Re[1]&&Ae([Qe,gt]),Ae(Re),qt=null,Qe=gt=0}var At=aI.isArrayOrTypedArray(c);function vt(Re){if(Re&&f&&(Re.i=x,Re.d=t,Re.trace=n,Re.marker=At?c[Re.i]:c,Re.backoff=f),Le=Re[0]/u,de=Re[1]/l,ce=Re[0]Ge?Ge:0,je=Re[1]xe?xe:0,ce||je){if(!L)T[L++]=[ce||Re[0],je||Re[1]];else if(qt){var be=Zt(qt,Re);be.length>1&&(ot(be[0]),T[L++]=be[1])}else at=Zt(T[L-1],Re)[0],T[L++]=at;var Oe=T[L-1];ce&&je&&(Oe[0]!==ce||Oe[1]!==je)?(qt&&(Qe!==ce&>!==je?Ae(Qe&>?Et(qt,Re):[Qe||ce,gt||je]):Qe&>&&Ae([Qe,gt])),Ae([ce,je])):Qe-ce&>-je&&Ae([ce||Qe,je||gt]),qt=Re,Qe=ce,gt=je}else qt&&ot(Zt(qt,Re)[0]),T[L++]=Re}for(x=0;xte(A,Je))break;M=A,N=U[0]*B[0]+U[1]*B[1],N>j?(j=N,m=A,F=!1):N=t.length||!A)break;vt(A),k=A}}qt&&Ae([Qe||qt[0],gt||qt[1]]),v.push(T.slice(0,L))}var He=p.slice(p.length-1);if(f&&He!=="h"&&He!=="v"){for(var nt=!1,tt=-1,It=[],Yt=0;Yt{"use strict";var Upe={tonextx:1,tonexty:1,tonext:1};Vpe.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 Bm=Jl(),D0t=$l(),lE=ei(),cA=lE.ensureSingle,Hpe=lE.identity,hh=Mu(),hA=lc(),F0t=RU(),B0t=DU(),oI=F5().tester;Wpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=B0t(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(),O0t(t,s,r),f){o&&(u=o());var h=Bm.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){Gpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Gpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function O0t(e,t,r){t.each(function(n){var i=cA(Bm.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,Hpe);s.enter().append("g"),s.exit().remove(),s.order().each(function(u){a[u]=cA(Bm.select(this),"path","js-fill")})})}function Gpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;q0t(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Bt){return l?Bt.transition():Bt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,_=Bm.select(a),b=cA(_,"g","errorbars"),v=cA(_,"g","lines"),C=cA(_,"g","points"),E=cA(_,"g","text");if(D0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(_).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,M;x==="y"?(k=1,M=h.c2p(0,!0)):x==="x"&&(k=0,M=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var m="",P=[],A=d._prevtrace,F=null,B=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,F=A._fillsegments,B=A._fillElement);var U,G,j="",W="",N,H,re,ae,ge,ze,Le=[];d._polygons=[];var de=[],te=[],ke=lE.noop;if(T=d._ownFill,hA.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(Bt){var Zt=Bt[Bt.length-1];return Bt.length>1&&Bt[0][0]===Zt[0]&&Bt[0][1]===Zt[1]?hh.smoothclosed(Bt.slice(1),p.smoothing):hh.smoothopen(Bt,p.smoothing)}:N=H=function(Bt){return"M"+Bt.join("L")},re=function(Bt){return H(Bt.reverse())},te=F0t(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 Ee=0;for(u=0;u=s[0]&&_.x<=s[1]&&_.y>=u[0]&&_.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(_,b){var v=_[0].trace;hA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";jpe.exports={container:"marker",min:"cmin",max:"cmax"}});var lI=Te((jlr,Xpe)=>{"use strict";var sI=wu();Xpe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=sI.getFromTrace(a,r,"x"),s=sI.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=sI.tickText(o,o.c2l(u),!0).text,i.yLabel=sI.tickText(s,s.c2l(l),!0).text,i}});var sv=Te((Xlr,Zpe)=>{"use strict";var FU=Jl(),pA=Mu(),N0t=$l();function U0t(e){var t=FU.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=FU.select(this),i=r.trace||r[0].trace;BU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=FU.select(this),i=r.trace||r[0].trace;OU(n,i,e)}),t.selectAll("g.trace path.js-line").call(pA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(pA.fillGroupStyle,e,!1),N0t.getComponentMethod("errorbars","style")(t)}function BU(e,t,r){pA.pointStyle(e.selectAll("path.point"),t,r)}function OU(e,t,r){pA.textPointStyle(e.selectAll("text"),t,r)}function V0t(e,t,r){var n=t[0].trace;n.selectedpoints?(pA.selectedPointStyle(r.selectAll("path.point"),n),pA.selectedTextStyle(r.selectAll("text"),n)):(BU(r,n,e),OU(r,n,e))}Zpe.exports={style:U0t,stylePoints:BU,styleText:OU,styleOnSelect:V0t}});var mA=Te((Zlr,Ype)=>{"use strict";var vA=jl(),G0t=lc();Ype.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&vA.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&&vA.opacity(a)?a:o&&vA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?vA.opacity(i)<.3?vA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&vA.opacity(n)&&G0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var yA=Te((Ylr,Jpe)=>{"use strict";var uI=ei(),Kpe=Xc(),H0t=$l(),W0t=mA(),qU=jl(),j0t=uI.fillText;Jpe.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,_=!!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,ge=Math.abs(s.c2p(W.x)-l);return ge=Math.min(N,H)&&f<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,ge=Math.abs(u.c2p(W.y)-f);return geLe!=xe>=Le&&(Se=ke[te-1][0],Ge=ke[te][0],xe-De&&(Ee=Se+(Ge-Se)*(Le-De)/(xe-De),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Le,y1:Le}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=F(o._fillElement)&&!F(o._fillExclusionElement);if(U){var G=B(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=qU.defaultLine;return qU.opacity(o.fillcolor)?j=o.fillcolor:qU.opacity((o.line||{}).color)&&(j=o.line.color),uI.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&&!uI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var gA=Te((Klr,Qpe)=>{"use strict";var $pe=lc();Qpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!$pe.hasMarkers(s)&&!$pe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";eve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var UU=Te(($lr,nve)=>{"use strict";var uE=$l().traceIs,NU=V3();nve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(X0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function X0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Z0t(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,ive(a,n)){var l=rve(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(ive(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function rve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function ive(e,t){var r=rve(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 fI=Te((Qlr,ave)=>{"use strict";var Y0t=mp().isTypedArraySpec;function K0t(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||Y0t(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=K0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var fE=Te((eur,sve)=>{"use strict";var ove=hd().mix,J0t=Oh(),$0t=ei();sve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,m){return $0t.coerce2(t,r,i.attributes,M,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=ove(a,i.bgColor,i.blend||J0t.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 _=ove(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),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 T=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=Te((tur,dve)=>{"use strict";var lve=ku(),Q0t=$l(),cE=ei(),emt=Lf(),tmt=Kd(),VU=Dd(),uve=Lb(),fve=D3(),rmt=s_(),imt=l_(),nmt=fI(),amt=fE(),omt=RN(),cve=xy(),cI=qh().WEEKDAY_PATTERN,smt=qh().HOUR_PATTERN;dve.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=Q0t.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"),cve(r,a),omt(t,r,n,i),nmt(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==VU.color.dflt?_:s.color,v=u.label||a._dfltTitle[o];if(imt(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}}),uve(t,r,n,c);var C=i.hasMinor;if(C&&(emt.newContainer(r,"minor"),uve(t,r,n,c,{isMinor:!0})),rmt(t,r,n,c,i),fve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,fve(t,r,n,i),i.isMinor=E}amt(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:VU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="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(c==="date")if(tmt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:lmt}),!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=hve(a[s]),u){o=cI;break}}var l=n("pattern",o);if(l===cI)for(s=0;s<2;s++)u=hve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case cI:if(!lve(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 smt:if(!lve(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 fmt=ku(),hI=ei();pve.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,_;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||(fmt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,_=!1;var b=hI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=hI.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],_=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=hI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),hI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var Ave=Te((iur,wve)=>{"use strict";var r2=ei(),vve=jl(),cmt=iv().isUnifiedHover,hmt=a7(),mve=Lf(),dmt=_3(),yve=Dd(),pmt=UU(),gve=hE(),vmt=Kb(),_ve=dI(),HU=Wc(),Ry=HU.id2name,xve=HU.name2id,mmt=qh().AX_ID_PATTERN,bve=$l(),pI=bve.traceIs,GU=bve.getComponentMethod;function vI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}wve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},_,b;for(_=0;_{"use strict";var ymt=Jl(),Tve=$l(),mI=ei(),Qv=Mu(),yI=wu();Sve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){yI.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,T=C.yaxis,L=E._length,x=T._length,k=!!b.xr1,M=!!b.yr1,m=[];if(k){var P=mI.simpleMap(b.xr0,E.r2l),A=mI.simpleMap(b.xr1,E.r2l),F=P[1]-P[0],B=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*B/F),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(M){var U=mI.simpleMap(b.yr0,T.r2l),G=mI.simpleMap(b.yr1,T.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),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=x;yI.drawOne(t,E,{skipTitle:!0}),yI.drawOne(t,T,{skipTitle:!0}),yI.redrawComponents(t,[E._id,T._id]);var N=k?L/m[2]:1,H=M?x/m[3]:1,re=k?m[0]:0,ae=M?m[1]:0,ge=k?m[0]/m[2]*L:0,ze=M?m[1]/m[3]*x:0,Le=E._offset-ge,de=T._offset-ze;C.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/H),C.plot.call(Qv.setTranslate,Le,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(_)):d=window.requestAnimationFrame(_)}return c=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var Mh=Te(wp=>{"use strict";var _I=Jl(),Eve=$l(),i2=ei(),gmt=Cc(),_mt=Mu(),kve=Rd().getModuleCalcData,S_=Wc(),Om=qh(),xmt=jv(),Zf=i2.ensureSingle;function gI(e,t,r){return i2.ensureSingle(e,t,r,function(n){n.datum(r)})}var n2=Om.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Om.idRegex;wp.attrRegex=Om.attrRegex;wp.attributes=tve();wp.layoutAttributes=Dd();wp.supplyLayoutDefaults=Ave();wp.transitionAxes=Mve();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(n2)!==-1)continue;d+=n2+(l+1),h=i2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],_,b=0;b1&&(L+=n2+T),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,_=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",_),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",_),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",_),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",_),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+_),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+_),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(gI(t.minorGridlayer,"g",t.xaxis._id),gI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(S_.idSort),gI(t.gridlayer,"g",t.xaxis._id),gI(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 Pve(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=_I.select(this);f.remove(),zve(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 xI=lc();Ive.exports={hasLines:xI.hasLines,hasMarkers:xI.hasMarkers,hasText:xI.hasText,isBubble:xI.isBubble,attributes:Zc(),layoutAttributes:rP(),supplyDefaults:ape(),crossTraceDefaults:xU(),supplyLayoutDefaults:upe(),calc:O0().calc,crossTraceCalc:Rpe(),arraysToCalcdata:Iy(),plot:dA(),colorbar:ep(),formatLabels:lI(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:yA(),selectPoints:gA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Bve=Te((sur,Fve)=>{"use strict";var wmt=Jl(),Amt=jl(),Dve=X7(),WU=ei(),Tmt=WU.strScale,Smt=WU.strRotate,Mmt=WU.strTranslate;Fve.exports=function(t,r,n){var i=t.node(),a=Dve[n.arrowhead||0],o=Dve[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,_,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(_=Math.atan2(C,v),b=_+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(_),T=c*Math.sin(_);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+C*C){U();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var Ove=Jl(),jU=$l(),Emt=Cc(),E_=ei(),XU=E_.strTranslate,pE=wu(),a2=jl(),qg=Mu(),qve=Xc(),ZU=Wf(),YU=Em(),dE=xp(),kmt=Lf().arrayEditor,Cmt=Bve();Vve.exports={draw:Lmt,drawOne:Nve,drawRaw:Uve};function Lmt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Fe="right":Fe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Fe]}for(var De=!1,xe=["x","y"],Ne=0;Ne1)&&(Qe===je?(Je=gt.r2fraction(t["a"+ce]),(Je<0||Je>1)&&(De=!0)):De=!0),Zt=gt._offset+gt.r2p(t[ce]),ot=.5}else{var He=vt==="domain";ce==="x"?(Ae=t[ce],Zt=He?gt._offset+gt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=He?gt._offset+gt._length*Ae:Zt=s.t+s.h*Ae),ot=t.showarrow?.5:Ae}if(t.showarrow){Bt.head=Zt;var nt=t["a"+ce];if(At=at*Ge(.5,t.xanchor)-Ke*Ge(.5,t.yanchor),Qe===je){var tt=pE.getRefType(Qe);tt==="domain"?(ce==="y"&&(nt=1-nt),Bt.tail=gt._offset+gt._length*nt):tt==="paper"?ce==="y"?(nt=1-nt,Bt.tail=s.t+s.h*nt):Bt.tail=s.l+s.w*nt:Bt.tail=gt._offset+gt.r2p(nt),Et=At}else Bt.tail=Zt+nt,Et=At+nt;Bt.text=Bt.tail+At;var It=o[ce==="x"?"width":"height"];if(je==="paper"&&(Bt.head=E_.constrain(Bt.head,1,It-1)),Qe==="pixel"){var Yt=-Math.max(Bt.tail-3,Bt.text),cr=Math.min(Bt.tail+3,Bt.text)-It;Yt>0?(Bt.tail+=Yt,Bt.text+=Yt):cr>0&&(Bt.tail-=cr,Bt.text-=cr)}Bt.tail+=Mt,Bt.head+=Mt}else At=Ct*Ge(ot,wt),Et=At,Bt.text=Zt+At;Bt.text+=Mt,At+=Mt,Et+=Mt,t["_"+ce+"padplus"]=Ct/2+Et,t["_"+ce+"padminus"]=Ct/2-Et,t["_"+ce+"size"]=Ct,t["_"+ce+"shift"]=At}if(De){k.remove();return}var _r=0,yr=0;if(t.align!=="left"&&(_r=(te-Le)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(ke-de)*(t.valign==="middle"?.5:1)),ge)ae.select("svg").attr({x:P+_r-1,y:P+yr}).call(qg.setClipUrl,F?_:null,e);else{var Ut=P+yr-ze.top,Re=P+_r-ze.left;j.call(ZU.positionText,Re,Ut).call(qg.setClipUrl,F?_:null,e)}B.select("rect").call(qg.setRect,P,P,te,ke),A.call(qg.setRect,M/2,M/2,Ee-M,Se-M),k.call(qg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Se/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var be=function(Ie,Fe){C.selectAll(".annotation-arrow-g").remove();var ft=b.x.head,ye=b.y.head,fe=b.x.tail+Ie,pe=b.y.tail+Fe,dt=b.x.text+Ie,Pt=b.y.text+Fe,zt=E_.rotationXYMatrix(v,dt,Pt),rr=E_.apply2DTransform(zt),Gr=E_.apply2DTransform2(zt),Br=+A.attr("width"),Er=+A.attr("height"),Rr=dt-.5*Br,pi=Rr+Br,Di=Pt-.5*Er,ni=Di+Er,$i=[[Rr,Di,Rr,ni],[Rr,ni,pi,ni],[pi,ni,pi,Di],[pi,Di,Rr,Di]].map(Gr);if(!$i.reduce(function(Or,Hr){return Or^!!E_.segmentsIntersect(ft,ye,ft+1e6,ye+1e6,Hr[0],Hr[1],Hr[2],Hr[3])},!1)){$i.forEach(function(Or){var Hr=E_.segmentsIntersect(fe,pe,ft,ye,Or[0],Or[1],Or[2],Or[3]);Hr&&(fe=Hr.x,pe=Hr.y)});var Qi=t.arrowwidth,si=t.arrowcolor,Ti=t.arrowside,Ni=C.append("g").style({opacity:a2.opacity(si)}).classed("annotation-arrow-g",!0),Rt=Ni.append("path").attr("d","M"+fe+","+pe+"L"+ft+","+ye).style("stroke-width",Qi+"px").call(a2.stroke,a2.rgb(si));if(Cmt(Rt,Ti,t),u.annotationPosition&&Rt.node().parentNode&&!n){var yt=ft,Gt=ye;if(t.standoff){var Wt=Math.sqrt(Math.pow(ft-fe,2)+Math.pow(ye-pe,2));yt+=t.standoff*(fe-ft)/Wt,Gt+=t.standoff*(pe-ye)/Wt}var xr=Ni.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-yt)+","+(pe-Gt),transform:XU(yt,Gt)}).style("stroke-width",Qi+6+"px").call(a2.stroke,"rgba(0,0,0,0)").call(a2.fill,"rgba(0,0,0,0)"),Lr,Nr;dE.init({element:xr.node(),gd:e,prepFn:function(){var Or=qg.getTranslate(k);Lr=Or.x,Nr=Or.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Or,Hr){var jr=rr(Lr,Nr),gi=jr[0]+Or,ki=jr[1]+Hr;k.call(qg.setTranslate,gi,ki),d("x",M_(i,Or,"x",s,t)),d("y",M_(a,Hr,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,Or,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Hr,"ay",s,t)),Ni.attr("transform",XU(Or,Hr)),E.attr({transform:"rotate("+v+","+gi+","+ki+")"})},doneFn:function(){jU.call("_guiRelayout",e,p());var Or=document.querySelector(".js-notes-box-panel");Or&&Or.redraw(Or.selectedObj)}})}}};if(t.showarrow&&be(0,0),T){var Oe;dE.init({element:k.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Ie,Fe){var ft="pointer";if(t.showarrow)t.axref===t.xref?d("ax",M_(i,Ie,"ax",s,t)):d("ax",t.ax+Ie),t.ayref===t.yref?d("ay",M_(a,Fe,"ay",s.w,t)):d("ay",t.ay+Fe),be(Ie,Fe);else{if(n)return;var ye,fe;if(i)ye=M_(i,Ie,"x",s,t);else{var pe=t._xsize/s.w,dt=t.x+(t._xshift-t.xshift)/s.w-pe/2;ye=dE.align(dt+Ie/s.w,pe,0,1,t.xanchor)}if(a)fe=M_(a,Fe,"y",s,t);else{var Pt=t._ysize/s.h,zt=t.y-(t._yshift+t.yshift)/s.h-Pt/2;fe=dE.align(zt-Fe/s.h,Pt,0,1,t.yanchor)}d("x",ye),d("y",fe),(!i||!a)&&(ft=dE.getCursor(i?.5:ye,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:XU(Ie,Fe)+Oe}),YU(k,ft)},clickFn:function(Ie,Fe){t.captureevents&&e.emit("plotly_clickannotation",x(Fe))},doneFn:function(){YU(k),jU.call("_guiRelayout",e,p());var Ie=document.querySelector(".js-notes-box-panel");Ie&&Ie.redraw(Ie.selectedObj)}})}}u.annotationText?j.call(ZU.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),jU.call("_guiRelayout",e,p())}):j.call(W)}});var Zve=Te((uur,Xve)=>{"use strict";var Gve=ei(),Pmt=$l(),Hve=Lf().arrayEditor;Xve.exports={hasClickToShow:zmt,onClick:Imt};function zmt(e,t){var r=jve(e,t);return r.on.length>0||r.explicitOff.length>0}function Imt(e,t){var r=jve(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 KU=ei(),_A=jl();Yve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=_A.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),KU.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:_A.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),_=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",_.bgcolor||(_A.opacity(a)?_A.rgb(a):_A.defaultLine)),v=i("hoverlabel.bordercolor",_.bordercolor||_A.contrast(b)),C=KU.extendFlat({},_.font);C.color||(C.color=v),KU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!p)}});var Jve=Te((cur,Kve)=>{"use strict";var $U=ei(),o2=wu(),Rmt=Kd(),Dmt=JU(),Fmt=Jb();Kve.exports=function(t,r){Rmt(t,r,{name:"annotations",handleItemDefaults:Bmt})};function Bmt(e,t,r){function n(E,T){return $U.coerce(e,t,Fmt,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Dmt(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=o2.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=o2.getFromId(l,h);d._annIndices.push(t._index)}if(o2.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,_=o2.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[p]="pixel");var b=_==="pixel"?u[f]:.4;o2.coercePosition(t,l,n,_,p,b)}n(c+"anchor"),n(c+"shift")}if($U.noneOrAll(e,t,["x","y"]),o&&$U.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),C=n("yclick");t._xclick=v===void 0?t.x:o2.cleanPosition(v,l,t.xref),t._yclick=C===void 0?t.y:o2.cleanPosition(C,l,t.yref)}}}});var e0e=Te((hur,Qve)=>{"use strict";var QU=ei(),s2=wu(),Omt=bI().draw;Qve.exports=function(t){var r=t._fullLayout,n=QU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return QU.syncOrAsync([Omt,qmt],t)};function qmt(e){var t=e._fullLayout;QU.filterVisible(t.annotations).forEach(function(r){var n=s2.getFromId(e,r.xref),i=s2.getFromId(e,r.yref),a=s2.getRefType(r.xref),o=s2.getRefType(r.yref);r._extremes={},a==="range"&&$ve(r,n),o==="range"&&$ve(r,i)})}function $ve(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,_=p+f,b=p-f,v;if(s===o){var C=s2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=s2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,_),ppadminus:Math.max(l,b)});v={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,v=s2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,_),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var r0e=Te((dur,t0e)=>{"use strict";var Nmt=ku(),Umt=ML();t0e.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],_=null;a?_=Umt(p,r.range):_=Math.pow(10,p),Nmt(_)||(_=null),i(f+d,_)}for(var h=0;h{"use strict";var eV=bI(),i0e=Zve();n0e.exports={moduleType:"component",name:"annotations",layoutAttributes:Jb(),supplyLayoutDefaults:Jve(),includeBasePlot:X5()("annotations"),calcAutorange:e0e(),draw:eV.draw,drawOne:eV.drawOne,drawRaw:eV.drawRaw,hasClickToShow:i0e.hasClickToShow,onClick:i0e.onClick,convertCoords:r0e()}});var wI=Te((vur,o0e)=>{"use strict";var Pc=Jb(),Vmt=Sc().overrideAll,Gmt=Lf().templatedArray;o0e.exports=Vmt(Gmt("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 l0e=Te((mur,s0e)=>{"use strict";var tV=ei(),Hmt=wu(),Wmt=Kd(),jmt=JU(),Xmt=wI();s0e.exports=function(t,r,n){Wmt(t,r,{name:"annotations",handleItemDefaults:Zmt,fullLayout:n.fullLayout})};function Zmt(e,t,r,n){function i(s,u){return tV.coerce(e,t,Xmt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],Hmt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(jmt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),tV.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),tV.noneOrAll(e,t,["ax","ay"])))}});var h0e=Te((yur,c0e)=>{"use strict";var u0e=ei(),f0e=wu();c0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function rV(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 Kmt(e,t){var r=rV(e.projection,rV(e.view,rV(e.model,[t[0],t[1],t[2],1])));return r}d0e.exports=Kmt});var v0e=Te((_ur,p0e)=>{"use strict";var Jmt=bI().drawRaw,$mt=iV(),Qmt=["x","y","z"];p0e.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=$mt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),Jmt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var g0e=Te((xur,y0e)=>{"use strict";var eyt=$l(),m0e=ei();y0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wI()}}},layoutAttributes:wI(),handleDefaults:l0e(),includeBasePlot:tyt,convert:h0e(),draw:v0e()};function tyt(e,t){var r=eyt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var bur=qh(),_0e=gc(),x0e=Zc().line,ryt=Id().dash,qm=Su().extendFlat,iyt=Lf().templatedArray,wur=W5(),xA=Gf(),b0e=Jb(),{shapeTexttemplateAttrs:nyt,templatefallbackAttrs:ayt}=Ff(),oyt=DL();w0e.exports=iyt("shape",{visible:qm({},xA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:qm({},xA.legend,{editType:"calc+arraydraw"}),legendgroup:qm({},xA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:qm({},xA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:_0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:qm({},xA.legendrank,{editType:"calc+arraydraw"}),legendwidth:qm({},xA.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({},b0e.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({},b0e.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({},x0e.color,{editType:"arraydraw"}),width:qm({},x0e.width,{editType:"calc+arraydraw"}),dash:qm({},ryt,{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:nyt({},{keys:Object.keys(oyt)}),texttemplatefallback:ayt({editType:"arraydraw"}),font:_0e({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 T0e=Te((Tur,A0e)=>{"use strict";var bA=ei(),e0=wu(),syt=Kd(),lyt=nV(),vE=x_();A0e.exports=function(t,r){syt(t,r,{name:"shapes",handleItemDefaults:fyt})};function uyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function fyt(e,t,r){function n(E,T){return bA.coerce(e,t,lyt,E,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),bA.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 T=E+"anchor",L=E==="x"?c:h,x={_fullLayout:r},k,M,m,P;let A=E+"ref",F=e[A];if(Array.isArray(F)&&F.length>0){let B=vE.countDefiningCoords(u,o,E);P=e0.coerceRefArray(e,t,x,E,void 0,"paper",B),t["_"+E+"refArray"]=!0}else P=e0.coerceRef(e,t,x,E,void 0,"paper");if(Array.isArray(P))P.forEach(function(B){e0.getRefType(B)==="range"&&(k=e0.getFromId(x,B),k&&k._shapeIndices.indexOf(t._index)===-1&&k._shapeIndices.push(t._index))}),l&&[0,1].forEach(function(B){let U=P[B];e0.getRefType(U)==="range"?(k=e0.getFromId(x,U),M=vE.shapePositionToRange(k),m=vE.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&n(E+B+"shift")):M=m=bA.identity;let j=E+B,W=e[j];if(e[j]=M(e[j],!0),L==="pixel"?n(j,p[B]):e0.coercePosition(t,x,n,U,j,d[B]),t[j]=m(t[j]),e[j]=W,B===0&&L==="pixel"){let N=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,U,T,.25),t[T]=m(t[T]),e[T]=N}});else{if(e0.getRefType(P)==="range"?(k=e0.getFromId(x,P),k._shapeIndices.push(t._index),m=vE.rangeToShapePosition(k),M=vE.shapePositionToRange(k),l&&(k.type==="category"||k.type==="multicategory")&&(n(E+"0shift"),n(E+"1shift"))):M=m=bA.identity,l){let U=E+"0",G=E+"1",j=e[U],W=e[G];e[U]=M(e[U],!0),e[G]=M(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[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=m(t[T]),e[T]=U}}}),l&&bA.noneOrAll(e,t,["x0","x1","y0","y1"]);var _=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",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",uyt(_,C)),n("label.padding"),bA.coerceFont(n,"label.font",r.font)}}});var E0e=Te((Sur,M0e)=>{"use strict";var cyt=jl(),S0e=ei();function hyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}M0e.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"),S0e.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",cyt.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",hyt(o,l)),n("newshape.label.padding"),S0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var R0e=Te((Mur,I0e)=>{"use strict";var aV=ei(),N0=wu(),Dy=A5(),oV=x_();I0e.exports=function(t){var r=t._fullLayout,n=aV.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,C0e(a))})}else a.xref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.xref),s=P0e(o,a,Dy.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,C0e(a))));if(l==="array"){let f=k0e(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,L0e(a))})}else a.yref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.yref),s=P0e(o,a,Dy.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,L0e(a))))}};function k0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Dy.paramIsX:Dy.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(Dy.segmentRE)||[];for(var s=0,u=0;up&&(a(n[s],_[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=oV.decodeDate(f)),l[h._id]=o[c].map(f)}}return l}function C0e(e){return z0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function L0e(e){return z0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function z0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var u=i?oV.extractPathCoords(i,a?Dy.paramIsY:Dy.paramIsX):[r,n],l=aV.aggNums(Math.max,null,u),f=aV.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 P0e(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(Dy.segmentRE),p,_,b,v,C;for(e.type==="date"&&(l=oV.decodeDate(l)),p=0;ph&&(h=C)));if(h>=c)return[c,h]}}});var B0e=Te((Eur,F0e)=>{"use strict";var D0e=dz();F0e.exports={moduleType:"component",name:"shapes",layoutAttributes:nV(),supplyLayoutDefaults:T0e(),supplyDrawNewShapeDefaults:E0e(),includeBasePlot:X5()("shapes"),calcAutorange:R0e(),draw:D0e.draw,drawOne:D0e.drawOne}});var sV=Te((Cur,q0e)=>{"use strict";var O0e=qh(),dyt=Lf().templatedArray,kur=W5();q0e.exports=dyt("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",O0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",O0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var U0e=Te((Lur,N0e)=>{"use strict";var pyt=ei(),lV=wu(),vyt=Kd(),myt=sV(),yyt="images";N0e.exports=function(t,r){var n={name:yyt,handleItemDefaults:gyt};vyt(t,r,n)};function gyt(e,t,r){function n(h,d){return pyt.coerce(e,t,myt,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=lV.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=lV.getFromId(o,f);c._imgIndices.push(t._index)}lV.coercePosition(t,o,n,f,l,0)}return t}});var W0e=Te((Pur,H0e)=>{"use strict";var V0e=Jl(),_yt=Mu(),wA=wu(),G0e=Wc(),xyt=jv();H0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var j0e=ku(),byt=ML();X0e.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";Y0e.exports={moduleType:"component",name:"images",layoutAttributes:sV(),supplyLayoutDefaults:U0e(),includeBasePlot:X5()("images"),draw:W0e(),convertCoords:Z0e()}});var AI=Te((Rur,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 uV=Te((Dur,Q0e)=>{"use strict";var wyt=gc(),Ayt=Oh(),Tyt=Su().extendFlat,Syt=Sc().overrideAll,Myt=FL(),$0e=Lf().templatedArray,Eyt=$0e("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}});Q0e.exports=Syt($0e("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:Eyt,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:Tyt(Myt({editType:"arraydraw"}),{}),font:wyt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ayt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ime=Te((Fur,rme)=>{"use strict";var TI=ei(),eme=Kd(),tme=uV(),kyt=AI(),Cyt=kyt.name,Lyt=tme.buttons;rme.exports=function(t,r){var n={name:Cyt,handleItemDefaults:Pyt};eme(t,r,n)};function Pyt(e,t,r){function n(o,s){return TI.coerce(e,t,tme,o,s)}var i=eme(e,t,{name:"buttons",handleItemDefaults:zyt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),TI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),TI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function zyt(e,t){function r(i,a){return TI.coerce(e,t,Lyt,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 ome=Te((Bur,ame)=>{"use strict";ame.exports=eh;var Nm=Jl(),nme=jl(),AA=Mu(),SI=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",_=c==="up",b=u,v=f,C,E,T,L;!h&&!d&&!p&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(C=s,E=C+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+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:T,w:b,h:v};var k=u>b,M=eh.barLength+2*eh.barPad,m=eh.barWidth+2*eh.barPad,P=s,A=l+f;A+m>o&&(A=o-m);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(nme.fill,eh.barColor),k?(this.hbar=F.attr({rx:eh.barRadius,ry:eh.barRadius,x:P,y:A,width:M,height:m}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=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(B?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(nme.fill,eh.barColor),B?(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=B?E+U+.5:E+.5,ge=T-.5,ze=k?L+m+.5:L+.5,Le=i._topdefs.selectAll("#"+H).data(k||B?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",H).append("rect"),k||B?(this._clipRect=Le.select("rect").attr({x:Math.floor(re),y:Math.floor(ge),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(ze)-Math.floor(ge)}),this.container.call(AA.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(AA.setClipUrl,null),delete this._clipRect),k||B){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),B&&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(AA.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=SI.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=SI.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=SI.constrain(t||0,0,n),r=SI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(AA.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(AA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(AA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var mme=Te((Our,vme)=>{"use strict";var TA=Jl(),mE=Cc(),yE=jl(),SA=Mu(),t0=ei(),MI=Wf(),Iyt=Lf().arrayEditor,lme=Nh().LINE_SPACING,Uu=AI(),Ryt=ome();vme.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[Uu.name]);function i(h){mE.autoMargin(t,dme(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(){TA.select(this).selectAll("g."+Uu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uu.headerGroupClassName).data(n,Dyt);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 Vyt=AI();yme.exports={moduleType:"component",name:Vyt.name,layoutAttributes:uV(),supplyLayoutDefaults:ime(),draw:mme()}});var _E=Te((Nur,_me)=>{"use strict";_me.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 dV=Te((Uur,wme)=>{"use strict";var xme=gc(),Gyt=FL(),Hyt=Su().extendDeepAll,Wyt=Sc().overrideAll,jyt=WM(),bme=Lf().templatedArray,l2=_E(),Xyt=bme("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}});wme.exports=Wyt(bme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Xyt,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:Hyt(Gyt({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:xme({})},font:xme({}),activebgcolor:{valType:"color",dflt:l2.gripBgActiveColor},bgcolor:{valType:"color",dflt:l2.railBgColor},bordercolor:{valType:"color",dflt:l2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l2.tickLength},tickcolor:{valType:"color",dflt:l2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l2.minorTickLength}}),"arraydraw","from-root")});var Mme=Te((Vur,Sme)=>{"use strict";var MA=ei(),Ame=Kd(),Tme=dV(),Zyt=_E(),Yyt=Zyt.name,Kyt=Tme.steps;Sme.exports=function(t,r){Ame(t,r,{name:Yyt,handleItemDefaults:Jyt})};function Jyt(e,t,r){function n(c,h){return MA.coerce(e,t,Tme,c,h)}for(var i=Ame(e,t,{name:"steps",handleItemDefaults:$yt}),a=0,o=0;o{"use strict";var Um=Jl(),EI=Cc(),k_=jl(),Vm=Mu(),r0=ei(),Qyt=r0.strTranslate,xE=Wf(),egt=Lf().arrayEditor,df=_E(),mV=Nh(),Cme=mV.LINE_SPACING,pV=mV.FROM_TL,vV=mV.FROM_BR;Dme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=tgt(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),EI.autoMargin(t,Lme(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,rgt);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",Qyt(o-df.gripWidth*.5,t._dims.currentValueTotalHeight))}}function yV(e,t){var r=e._dims;return r.inputAreaStart+df.stepInset+(r.inputAreaLength-2*df.stepInset)*Math.min(1,Math.max(0,t))}function kme(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 ugt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",df.railTouchRectClass,function(a){a.call(Ime,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 fgt(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 Ome=Te((Hur,Bme)=>{"use strict";var cgt=_E();Bme.exports={moduleType:"component",name:cgt.name,layoutAttributes:dV(),supplyLayoutDefaults:Mme(),draw:Fme()}});var CI=Te((Wur,Nme)=>{"use strict";var qme=Oh();Nme.exports={bgcolor:{valType:"color",dflt:qme.background,editType:"plot"},bordercolor:{valType:"color",dflt:qme.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 gV=Te((jur,Ume)=>{"use strict";Ume.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 LI=Te((Xur,Vme)=>{"use strict";Vme.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 Wme=Te(zI=>{"use strict";var hgt=Wc(),dgt=Wf(),Gme=LI(),pgt=Nh().LINE_SPACING,PI=Gme.name;function Hme(e){var t=e&&e[PI];return t&&t.visible}zI.isVisible=Hme;zI.makeData=function(e){for(var t=hgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var II=ei(),jme=Lf(),Xme=Wc(),vgt=CI(),mgt=gV();Zme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;II.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=jme.newContainer(a,"rangeslider");function u(L,x){return II.coerce(o,s,vgt,L,x)}var l,f;function c(L,x){return II.coerce(l,f,mgt,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")))===Xme.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),_=II.simpleMap(p,Xme.id2name),b=0;b<_.length;b++){var v=_[b];l=o[v]||{},f=jme.newContainer(s,v,"yaxis");var C=r[v],E;l.range&&C.isValidRange(l.range)&&(E="fixed");var T=c("rangemode",E);T!=="match"&&c("range",C.range.slice())}s._input=o}}});var Jme=Te((Kur,Kme)=>{"use strict";var ygt=Wc().list,ggt=Mm().getAutoRange,_gt=LI();Kme.exports=function(t){for(var r=ygt(t,"x",!0),n=0;n{"use strict";var RI=Jl(),xgt=$l(),bgt=Cc(),dh=ei(),DI=dh.strTranslate,Qme=Mu(),C_=jl(),wgt=Fb(),Agt=Mh(),_V=Wc(),Tgt=xp(),Sgt=Em(),Sf=LI();eye.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[W+1];else if(G=N.pmax)j=A[W+1];else if(G0?e.touches[0].clientX:0}function Mgt(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=$me(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Tgt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),p.addEventListener("mousemove",_),p.addEventListener("mouseup",b);function _(v){var C=$me(v),E=+C-f,T,L,x;switch(l){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;T=h,L=d+E;break;default:x="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Fgt=ei(),Bgt=CI(),Ogt=gV(),xV=Wme();rye.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Fgt.extendFlat({},Bgt,{yaxis:Ogt})}}},layoutAttributes:CI(),handleDefaults:Yme(),calcAutorange:Jme(),draw:tye(),isVisible:xV.isVisible,makeData:xV.makeData,autoMarginOpts:xV.autoMarginOpts}});var FI=Te((Qur,aye)=>{"use strict";var qgt=gc(),nye=Oh(),Ngt=Lf().templatedArray,Ugt=Ngt("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"});aye.exports={visible:{valType:"boolean",editType:"plot"},buttons:Ugt,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:qgt({editType:"plot"}),bgcolor:{valType:"color",dflt:nye.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:nye.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var bV=Te((efr,oye)=>{"use strict";oye.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uye=Te((tfr,lye)=>{"use strict";var BI=ei(),Vgt=jl(),Ggt=Lf(),Hgt=Kd(),sye=FI(),wV=bV();lye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=Ggt.newContainer(r,"rangeselector");function u(d,p){return BI.coerce(o,s,sye,d,p)}var l=Hgt(o,s,{name:"buttons",handleItemDefaults:Wgt,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",Vgt.contrast(h,wV.lightAmount,wV.darkAmount)),u("bordercolor"),u("borderwidth")}};function Wgt(e,t,r,n){var i=n.calendar;function a(u,l){return BI.coerce(e,t,sye.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 Xgt=DO(),Zgt=ei().titleCase;fye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Ygt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Ygt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Xgt["utc"+Zgt(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 _ye=Te((ifr,gye)=>{"use strict";var qI=Jl(),Kgt=$l(),Jgt=Cc(),hye=jl(),yye=Mu(),Ng=ei(),dye=Ng.strTranslate,OI=Wf(),$gt=Wc(),SV=Nh(),pye=SV.LINE_SPACING,vye=SV.FROM_TL,mye=SV.FROM_BR,TV=bV(),Qgt=cye();gye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(e1t(t),t1t);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=qI.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=qI.select(this),c=Qgt(o,l);l._isActive=r1t(o,l,c),f.call(AV,s,l),f.call(n1t,s,l,t),f.on("click",function(){t._dragged||Kgt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(AV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(AV,s,l)})}),o1t(t,u,s,o._name,a)})};function e1t(e){for(var t=$gt.list(e,"x",!0),r=[],n=0;n{"use strict";xye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:FI()}}},layoutAttributes:FI(),handleDefaults:uye(),draw:_ye()}});var zc=Te(MV=>{"use strict";var wye=Su().extendFlat;MV.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:wye({},r,{}),y:wye({},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};MV.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 s1t=ei(),l1t=v3().counter,u1t=zc().attributes,Aye=qh().idRegex,f1t=Lf(),EV={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:[l1t("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Aye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Aye.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:u1t({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 NI(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 c1t(e,t){var r=e.grid||{},n=NI(t,r,"x"),i=NI(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=f1t.newContainer(t,"grid");function h(x,k){return s1t.coerce(r,c,EV,x,k)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:Tye("x",h,C,T,p),y:Tye("y",h,E,L,d,v)}}function Tye(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";Eye.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 Lye=Te((lfr,Cye)=>{"use strict";var kye=ku(),d1t=$l(),p1t=ei(),v1t=Lf(),m1t=CV();Cye.exports=function(e,t,r,n){var i="error_"+n.axis,a=v1t.newContainer(t,i),o=e[i]||{};function s(p,_){return p1t.coerce(o,a,m1t,p,_)}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||kye(o.thickness)||kye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",d1t.traceIs(t,"gl3d")?0:4))}}});var LV=Te((ufr,zye)=>{"use strict";zye.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=Pye(r,t.value),s=Pye(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 Pye(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 Dye=Te((ffr,Rye)=>{"use strict";var PV=ku(),y1t=$l(),zV=wu(),g1t=ei(),_1t=LV();Rye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Fye=Jl(),L_=ku(),x1t=Mu(),b1t=lc();Bye.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 _=b1t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Fye.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),x1t.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=Fye.select(this),T=w1t(C,o,s);if(!(_&&!C.vis)){var L,x=E.select("path.yerror");if(d.visible&&L_(T.x)&&L_(T.yh)&&L_(T.ys)){var k=d.width;L="M"+(T.x-k)+","+T.yh+"h"+2*k+"m-"+k+",0V"+T.ys,T.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 M=E.select("path.xerror");if(h.visible&&L_(T.y)&&L_(T.xh)&&L_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!M.size(),a?M=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function w1t(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 Uye=Te((hfr,Nye)=>{"use strict";var A1t=Jl(),qye=jl();Nye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=A1t.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(qye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(qye.stroke,a.color)})}});var Hye=Te((dfr,Gye)=>{"use strict";var bE=ei(),Vye=Sc().overrideAll,wE=CV(),u2={error_x:bE.extendFlat({},wE),error_y:bE.extendFlat({},wE)};delete u2.error_x.copy_zstyle;delete u2.error_y.copy_zstyle;delete u2.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;Gye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:u2,bar:u2,histogram:u2,scatter3d:Vye(AE,"calc","nested"),scattergl:Vye(u2,"calc","nested")}},supplyDefaults:Lye(),calc:Dye(),makeComputeError:LV(),plot:Oye(),style:Uye(),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 jye=Te((pfr,Wye)=>{"use strict";Wye.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 Qye=Te((vfr,$ye)=>{"use strict";var P_=Jl(),IV=hd(),VI=Cc(),Xye=$l(),Ug=wu(),UI=xp(),U0=ei(),Hm=U0.strTranslate,Jye=Su().extendFlat,RV=Em(),Gm=Mu(),DV=jl(),S1t=Fb(),M1t=Wf(),E1t=yp().flipScale,k1t=hE(),C1t=dI(),L1t=Dd(),FV=Nh(),Zye=FV.LINE_SPACING,Yye=FV.FROM_TL,Kye=FV.FROM_BR,Yc=jye().cn;function P1t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(z1t(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=I1t(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&R1t(i,n,e)}),r.exit().each(function(n){VI.autoMargin(e,n._id)}).remove(),r.order()}function z1t(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Jye(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?E1t(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ne=Math.pow(10,Math.floor(Math.log(xe)/Math.LN10));Ge*=Ne*U0.roundUp(xe/Ne,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ge}Ee.domain=n?[te+p/T.h,te+H-p/T.h]:[te+d/T.w,te+H-d/T.w],Ee.setScale(),e.attr("transform",Hm(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Hm(-Math.round(T.l),-Math.round(T.t))),je=Ee.ticklabelposition,Qe=Ee.title.font.size,gt=e.select("."+Yc.cbaxis),qt,at=0,Ke=0;function Ct(Et,Ae){var ot={propContainer:Ee,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},At=Et.charAt(0)==="h"?Et.slice(1):"h"+Et;e.selectAll("."+At+",."+At+"-math-group").remove(),S1t.draw(r,Et,Jye(ot,Ae||{}))}function wt(){if(n&&Se||!n&&!Se){var Et,Ae;M==="top"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te-H)+3+Qe*.75),M==="bottom"&&(Et=d+T.l+re*_,Ae=p+T.t+ae*(1-te)-3-Qe*.25),M==="right"&&(Ae=p+T.t+ae*b+3+Qe*.75,Et=d+T.l+re*te),Ct(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function Mt(){if(n&&!Se||!n&&Se){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,ot,At;if(M==="right")At=Ae,ot=T.l+re*Et+10+Qe*(Ee.showticklabels?1:.5);else if(ot=Ae,M==="bottom"&&(At=T.t+ae*Et+10+(je.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var vt=k.text.split("
").length;At=T.t+ae*Et+10-j-Zye*Qe*vt}Ct((n?"h":"v")+Ee._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:ot,y:At,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Bt(){if(!n&&!Se||n&&Se){var Et=e.select("."+Yc.cbtitle),Ae=Et.select("text"),ot=[-u/2,u/2],At=Et.select(".h"+Ee._id+"title-math-group").node(),vt=15.6;Ae.node()&&(vt=parseInt(Ae.node().style.fontSize,10)*Zye);var Je;if(At?(Je=Gm.bBox(At),Ke=Je.width,at=Je.height,at>vt&&(ot[1]-=(at-vt)/2)):Ae.node()&&!Ae.classed(Yc.jsPlaceholder)&&(Je=Gm.bBox(Ae.node()),Ke=Je.width,at=Je.height),n){if(at){if(at+=5,M==="top")Ee.domain[1]-=at/T.h,ot[1]*=-1;else{Ee.domain[0]+=at/T.h;var He=M1t.lineCount(Ae);ot[1]+=(1-He)*vt}Et.attr("transform",Hm(ot[0],ot[1])),Ee.setScale()}}else Ke&&(M==="right"&&(Ee.domain[0]+=(Ke+Qe/2)/T.w),Et.attr("transform",Hm(ot[0],ot[1])),Ee.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Hm(0,Math.round(T.h*(1-Ee.domain[1]))):Hm(Math.round(T.w*Ee.domain[0]),0)),gt.attr("transform",n?Hm(0,Math.round(-T.t)):Hm(Math.round(-T.l),0));var nt=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);nt.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),nt.exit().remove();var tt=m.map(Ee.c2p).map(Math.round).sort(function(yr,Ut){return yr-Ut});nt.each(function(yr,Ut){var Re=[Ut===0?m[0]:(U[Ut]+U[Ut-1])/2,Ut===U.length-1?m[1]:(U[Ut]+U[Ut+1])/2].map(Ee.c2p).map(Math.round);n&&(Re[1]=U0.constrain(Re[1]+(Re[1]>Re[0])?1:-1,tt[0],tt[1]));var be=P_.select(this).attr(n?"x":"y",ge).attr(n?"y":"x",P_.min(Re)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(P_.max(Re)-P_.min(Re),2));if(t._fillgradient)Gm.gradient(be,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(yr).replace("e-","");be.attr("fill",IV(Oe).toHexString())}});var It=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(x.color&&x.width?G:[]);It.enter().append("path").classed(Yc.cbline,!0),It.exit().remove(),It.each(function(yr){var Ut=ge,Re=Math.round(Ee.c2p(yr))+x.width/2%1;P_.select(this).attr("d","M"+(n?Ut+","+Re:Re+","+Ut)+(n?"h":"v")+j).call(Gm.lineGroupStyle,x.width,P(yr),x.dash)}),gt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=ge+j+(u||0)/2-(t.ticks==="outside"?1:0),cr=Ug.calcTicks(Ee),_r=Ug.getTickSigns(Ee)[2];return Ug.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ug.clipEnds(Ee,cr):cr,layer:gt,path:Ug.makeTickPath(Ee,Yt,_r),transFn:Ug.makeTransTickFn(Ee)}),Ug.drawLabels(r,Ee,{vals:cr,layer:gt,transFn:Ug.makeTransTickLabelFn(Ee),labelFns:Ug.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;je.indexOf("inside")===-1&&(Et=Gm.bBox(gt.node()),Ae+=n?Et.width:Et.height),qt=ce.select("text");var ot=0,At=n&&M==="top",vt=!n&&M==="right",Je=0;if(qt.node()&&!qt.classed(Yc.jsPlaceholder)){var He,nt=ce.select(".h"+Ee._id+"title-math-group").node();nt&&(n&&Se||!n&&!Se)?(Et=Gm.bBox(nt),ot=Et.width,He=Et.height):(Et=Gm.bBox(ce.node()),ot=Et.right-T.l-(n?ge:ke),He=Et.bottom-T.t-(n?ke:ge),!n&&M==="top"&&(Ae+=Et.height,Je=Et.height)),vt&&(qt.attr("transform",Hm(ot/2+Qe/2,0)),ot*=2),Ae=Math.max(Ae,n?ot:He)}var tt=(n?d:p)*2+Ae+l+u/2,It=0;!n&&k.text&&h==="bottom"&&b<=0&&(It=tt/2,tt+=It,Je+=It),E._hColorbarMoveTitle=It,E._hColorbarMoveCBTitle=Je;var Yt=l+u,cr=(n?ge:ke)-Yt/2-(n?d:0),_r=(n?ke:ge)-(n?N:p+Je-It);e.select("."+Yc.cbbg).attr("x",cr).attr("y",_r).attr(n?"width":"height",Math.max(tt-It,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(DV.fill,f).call(DV.stroke,t.bordercolor).style("stroke-width",l);var yr=vt?Math.max(ot-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?ge:ke+d)+yr).attr("y",(n?ke+p-N:ge)+(At?at:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+at:2*d+yr),2)).call(DV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ut=n?ze*tt:0,Re=n?0:(1-Le)*tt-Je;if(Ut=C?T.l-Ut:-Ut,Re=v?T.t-Re:-Re,e.attr("transform",Hm(Ut,Re)),!n&&(l||IV(f).getAlpha()&&!IV.equals(E.paper_bgcolor,f))){var be=gt.selectAll("text"),Oe=be[0].length,Ie=e.select("."+Yc.cbbg).node(),Fe=Gm.bBox(Ie),ft=Gm.getTranslate(e),ye=2;be.each(function(Rr,pi){var Di=0,ni=Oe-1;if(pi===Di||pi===ni){var $i=Gm.bBox(this),Qi=Gm.getTranslate(this),si;if(pi===ni){var Ti=$i.right+Qi.x,Ni=Fe.right+ft.x+ke-l-ye+_;si=Ni-Ti,si>0&&(si=0)}else if(pi===Di){var Rt=$i.left+Qi.x,yt=Fe.left+ft.x+ke+l+ye;si=yt-Rt,si<0&&(si=0)}si&&(Oe<3?this.setAttribute("transform","translate("+si+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},pe=Yye[c],dt=Kye[c],Pt=Yye[h],zt=Kye[h],rr=tt-j;n?(a==="pixels"?(fe.y=b,fe.t=N*Pt,fe.b=N*zt):(fe.t=fe.b=0,fe.yt=b+i*Pt,fe.yb=b-i*zt),s==="pixels"?(fe.x=_,fe.l=tt*pe,fe.r=tt*dt):(fe.l=rr*pe,fe.r=rr*dt,fe.xl=_-o*pe,fe.xr=_+o*dt)):(a==="pixels"?(fe.x=_,fe.l=N*pe,fe.r=N*dt):(fe.l=fe.r=0,fe.xl=_+i*pe,fe.xr=_-i*dt),s==="pixels"?(fe.y=1-b,fe.t=tt*Pt,fe.b=tt*zt):(fe.t=rr*Pt,fe.b=rr*zt,fe.yt=b-o*Pt,fe.yb=b+o*zt));var Gr=t.y<.5?"b":"t",Br=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Er={r:E.width-cr-Ut,l:cr+fe.r,b:E.height-_r-Re,t:_r+fe.b};C&&v?VI.autoMargin(r,t._id,fe):C?r._fullLayout._reservedMargin[t._id][Gr]=Er[Gr]:v||n?r._fullLayout._reservedMargin[t._id][Br]=Er[Br]:r._fullLayout._reservedMargin[t._id][Gr]=Er[Gr]}return U0.syncOrAsync([VI.previousPromises,wt,Bt,Mt,VI.previousPromises,Zt],r)}function R1t(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;UI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),RV(e)},moveFn:function(l,f){e.attr("transform",o+Hm(l,f)),s=UI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=UI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=UI.getCursor(s,u,t.xanchor,t.yanchor);RV(e,c)},doneFn:function(){if(RV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Xye.call("_guiRestyle",r,l,t._traceIndex):Xye.call("_guiRelayout",r,l)}}})}function D1t(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";ege.exports={moduleType:"component",name:"colorbar",attributes:fP(),supplyDefaults:Wq(),draw:Qye().draw,hasColorbar:Oq()}});var ige=Te((yfr,rge)=>{"use strict";rge.exports={moduleType:"component",name:"legend",layoutAttributes:qN(),supplyLayoutDefaults:UN(),draw:e7(),style:KN()}});var age=Te((gfr,nge)=>{"use strict";nge.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 sge=Te((_fr,oge)=>{"use strict";oge.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var OV=Te((xfr,cge)=>{"use strict";var B1t=$l(),fge=ei(),BV=fge.extendFlat,lge=fge.extendDeep;function uge(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 O1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}cge.exports=function(t,r){var n,i=t.data,a=t.layout,o=lge([],i),s=lge({},a,uge(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 q1t=Tb().EventEmitter,N1t=$l(),U1t=ei(),hge=Bg(),V1t=OV(),G1t=Yz(),H1t=Kz();function W1t(e,t){var r=new q1t,n=V1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=hge.getDelay(i._fullLayout);setTimeout(function(){var u=G1t(i),l=document.createElement("canvas");l.id=U1t.randstr(),r=H1t({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=hge.getRedrawFunc(i);return N1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}dge.exports=W1t});var yge=Te((wfr,mge)=>{"use strict";var vge=Bg(),j1t={getDelay:vge.getDelay,getRedrawFunc:vge.getRedrawFunc,clone:OV(),toSVG:Yz(),svgToImg:Kz(),toImage:pge(),downloadImage:yU()};mge.exports=j1t});var _ge=Te(Vg=>{"use strict";Vg.version=yL().version;Iee();bne();var X1t=$l(),TE=Vg.register=X1t.register,NV=qde(),gge=Object.keys(NV);for(GI=0;GI{"use strict";xge.exports=_ge()});var Fy=Te((Sfr,Mge)=>{"use strict";var lh=Zc(),wge=jc().axisHoverFormat,{hovertemplateAttrs:Z1t,texttemplateAttrs:Y1t,templatefallbackAttrs:Age}=Ff(),Sge=nc(),K1t=gc(),Tge=T_(),J1t=Id().pattern,f2=Su().extendFlat,UV=K1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),$1t=lh.marker,Q1t=$1t.line,e_t=f2({},Q1t.width,{dflt:0}),t_t=f2({width:e_t,editType:"calc"},Sge("marker.line")),r_t=f2({line:t_t,editType:"calc"},Sge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:J1t,cornerradius:{valType:"any",editType:"calc"}});Mge.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:wge("x"),yhoverformat:wge("y"),text:lh.text,texttemplate:Y1t({editType:"plot"},{keys:Tge.eventDataKeys}),texttemplatefallback:Age({editType:"plot"}),hovertext:lh.hovertext,hovertemplate:Z1t({},{keys:Tge.eventDataKeys}),hovertemplatefallback:Age(),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:f2({},UV,{}),insidetextfont:f2({},UV,{}),outsidetextfont:f2({},UV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:f2({},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:r_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 WI=Te((Mfr,Ege)=>{"use strict";Ege.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 jI=Te((Efr,Lge)=>{"use strict";var i_t=jl(),kge=yp().hasColorscale,Cge=nd(),n_t=ei().coercePattern;Lge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=kge(t,"marker");s&&Cge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",i_t.defaultLine),kge(t,"marker.line")&&Cge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n_t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=Te((kfr,Fge)=>{"use strict";var Pge=ku(),kA=ei(),zge=jl(),a_t=$l(),o_t=oA(),s_t=Rm(),l_t=jI(),u_t=e2(),Ige=Fy(),XI=kA.coerceFont;function f_t(e,t,r,n){function i(l,f){return kA.coerce(e,t,Ige,l,f)}var a=o_t(e,t,n,i);if(!a){t.visible=!1;return}s_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");Dge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l_t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=a_t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||zge.defaultLine,{axis:"y"}),u(e,t,s||zge.defaultLine,{axis:"x",inherit:"y"}),kA.coerceSelectionMarkerOpacity(t,i)}function c_t(e,t){var r,n;function i(s,u){return kA.coerce(n._input,n,Ige,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Pge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Dge(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",_=d||i==="outside";if(p||_){var b=XI(n,"textfont",r.font),v=kA.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete v.color,XI(n,"insidetextfont",v),h){var T=kA.extendFlat({},b);E&&delete T.color,XI(n,"pathbar.textfont",T)}_&&XI(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")}Fge.exports={supplyDefaults:f_t,crossTraceDefaults:c_t,handleText:Dge,validateCornerradius:Rge}});var VV=Te((Cfr,Bge)=>{"use strict";var h_t=$l(),d_t=wu(),p_t=ei(),v_t=WI(),m_t=i0().validateCornerradius;Bge.exports=function(e,t,r){function n(_,b){return p_t.coerce(e,t,v_t,_,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=d_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=m_t(p)}});var SE=Te((Lfr,Oge)=>{"use strict";var CA=ei();Oge.exports=function(t,r){for(var n=0;n{"use strict";var qge=wu(),Nge=Fm(),Uge=yp().hasColorscale,Vge=gp(),y_t=SE(),g_t=B0();Gge.exports=function(t,r){var n=qge.getFromId(t,r.xaxis||"x"),i=qge.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=Nge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Nge(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=Jl(),x_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=__t.select(this).select("text");x_t.setTransormAndDisplay(l,u)}})}}function w_t(e,t,r){if(r.uniformtext.mode){var n=Wge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var T_t=ku(),S_t=hd(),Xge=ei().isArrayOrTypedArray;c2.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};c2.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};c2.coerceColor=function(e,t,r){return S_t(t).isValid()?t:r!==void 0?r:e.dflt};c2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};c2.getValue=function(e,t){var r;return Xge(e)?t{"use strict";var ME=Jl(),M_t=jl(),EE=Mu(),Zge=ei(),Yge=$l(),Kge=Ap().resizeText,GV=Fy(),E_t=GV.textfont,k_t=GV.insidetextfont,C_t=GV.outsidetextfont,tp=ZI();function L_t(e){var t=ME.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Kge(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;Jge(a,o,e)}),Yge.getComponentMethod("errorbars","style")(t)}function Jge(e,t,r){EE.pointStyle(e.selectAll("path"),t,r),$ge(e,t,r)}function $ge(e,t,r){e.selectAll("text").each(function(n){var i=ME.select(this),a=Zge.ensureUniformFontSize(r,Qge(i,n,t,r));EE.font(i,a)})}function P_t(e,t,r){var n=t[0].trace;n.selectedpoints?z_t(r,n,e):(Jge(r,n,e),Yge.getComponentMethod("errorbars","style")(r))}function z_t(e,t,r){EE.selectedPointStyle(e.selectAll("path"),t),I_t(e.selectAll("text"),t,r)}function I_t(e,t,r){e.each(function(n){var i=ME.select(this),a;if(n.selected){a=Zge.ensureUniformFontSize(r,Qge(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 Qge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=i1e(t,r);a=t1e(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=r1e(r,t.i,i));return a}function e1e(e,t,r){return HV(E_t,e.textfont,t,r)}function t1e(e,t,r,n){var i=e1e(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:M_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}),HV(k_t,e.insidetextfont,t,i)}function r1e(e,t,r){var n=e1e(e,t,r);return HV(C_t,e.outsidetextfont,t,n)}function HV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function i1e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}n1e.exports={style:L_t,styleTextPoints:$ge,styleOnSelect:P_t,getInsideTextFont:t1e,getOutsideTextFont:r1e,getBarColor:i1e,resizeText:Kge}});var d2=Te((Dfr,h1e)=>{"use strict";var YI=Jl(),KI=ku(),Fd=ei(),R_t=Wf(),D_t=jl(),z_=Mu(),F_t=$l(),JI=wu().tickText,a1e=Ap(),B_t=a1e.recordMinTextSize,O_t=a1e.clearMinTextSize,WV=V0(),LA=ZI(),q_t=T_(),o1e=Fy(),N_t=o1e.text,U_t=o1e.textposition,V_t=iv().appendArrayPointValue,Gp=q_t.TEXTPAD;function G_t(e){return e.id}function H_t(e){if(e.ids)return G_t}function jV(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},O_t("bar",u));var f=Fd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=YI.select(this),d=c[0].trace,p=c[0].t,_=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",C=d.type==="bar",E=C||b,T=0;_&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=l1e(i),k=Fd.ensureSingle(h,"g","points"),M=H_t(d),m=k.selectAll("g.point").data(Fd.identity,M);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,F){var B=YI.select(this),U=W_t(A,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&&LA.getLineWidth(d,A)&&(H=!1),H||(H=!KI(G)||!KI(j)||!KI(W)||!KI(N)),A.isBlank=H,H&&(L?j=G:N=W),T&&!H&&(L?(G-=By(G,j)*T,j+=By(G,j)*T):(W-=By(W,N)*T,N+=By(W,N)*T));var re,ae;if(d.type==="waterfall"){if(!H){var ge=d[A.dir].marker;re=ge.line.width,ae=ge.color}}else re=LA.getLineWidth(d,A),ae=A.mc||d.marker.color;function ze(Ae){var ot=YI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?YI.round(Math.round(Ae)-ot,2):Ae}function Le(Ae,ot,At){return At&&Ae===ot?Ae:Math.abs(Ae-ot)>=2?ze(Ae):Ae>ot?Math.ceil(Ae):Math.floor(Ae)}var de=D_t.opacity(ae),te=de<1||re>.01?ze:Le;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),W=te(W,N,!L),N=te(N,W,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Se(Ae,ot){if(!Ae)return 0;var At=Math.abs(L?N-W:j-G),vt=Math.abs(L?j-G:N-W),Je=te(Math.abs(ke(Ee,!0)-ke(0,!0))),He=A.hasB?Math.min(At/2,vt/2):Math.min(At/2,Je),nt;if(ot==="%"){var tt=Math.min(50,Ae);nt=At*(tt/100)}else nt=Ae;return te(Math.max(Math.min(nt,He),0))}var Ge=C||v?Se(p.cornerradiusvalue,p.cornerradiusform):0,De,xe,Ne="M"+G+","+W+"V"+N+"H"+j+"V"+W+"Z",ce=0;if(Ge&&A.s){var je=jV(A.s0)===0||jV(A.s)===jV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(je,!0))),ce0?Math.sqrt(ce*(2*Ge-ce)):0,Ct=Qe>0?Math.max:Math.min;De="M"+G+","+W+"V"+(N-at*gt)+"H"+Ct(j-(Ge-ce)*Qe,G)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+j+","+(N-Ge*gt-Ke)+"V"+(W+Ge*gt+Ke)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+Ct(j-(Ge-ce)*Qe,G)+","+(W+at*gt)+"Z"}else if(A.hasB)De="M"+(G+Ge*Qe)+","+W+"A "+Ge+","+Ge+" 0 0 "+qt+" "+G+","+(W+Ge*gt)+"V"+(N-Ge*gt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(G+Ge*Qe)+","+N+"H"+(j-Ge*Qe)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+j+","+(N-Ge*gt)+"V"+(W+Ge*gt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(j-Ge*Qe)+","+W+"Z";else{xe=Math.abs(N-W)+ce;var wt=xe0?Math.sqrt(ce*(2*Ge-ce)):0,Bt=gt>0?Math.max:Math.min;De="M"+(G+wt*Qe)+","+W+"V"+Bt(N-(Ge-ce)*gt,W)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(G+Ge*Qe-Mt)+","+N+"H"+(j-Ge*Qe+Mt)+"A "+Ge+","+Ge+" 0 0 "+qt+" "+(j-wt*Qe)+","+Bt(N-(Ge-ce)*gt,W)+"V"+W+"Z"}}else De=Ne}else De=Ne;var Zt=s1e(Fd.ensureSingle(B,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-W))||H&&e._context.staticPlot?"M0,0Z":De).call(z_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&x){var Et=z_.makePointStyleFns(d);z_.singlePointStyle(A,Zt,d,Et,e)}X_t(e,t,B,c,F,G,j,W,N,Ge,ce,i,a),t.layerClipId&&z_.hideOutsideRangePoint(A,B.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;z_.setClipUrl(h,P?null:t.layerClipId,e)});F_t.getComponentMethod("errorbars","plot")(e,f,t,i)}function X_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,_=e._fullLayout,b;function v(xe,Ne,ce){var je=Fd.ensureSingle(xe,"text").text(Ne).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(z_.font,ce).call(R_t.convertToTspans,e);return je}var C=n[0].trace,E=C.orientation==="h",T=K_t(_,n,i,d,p);b=J_t(C,i);var L=c.mode==="stack"||c.mode==="relative",x=n[i],k=!L||x._outmost,M=x.hasB,m=l&&l-f>Gp;if(!T||b==="none"||(x.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=_.font,A=WV.getBarColor(n[i],C),F=WV.getInsideTextFont(C,i,P,A),B=WV.getOutsideTextFont(C,i,P),U=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&ze>0,te;m?M?te=h2(N-2*l,H,ge,ze,E)||h2(N,H-2*l,ge,ze,E):E?te=h2(N-(l-f),H,ge,ze,E)||h2(N,H-2*(l-f),ge,ze,E):te=h2(N,H-(l-f),ge,ze,E)||h2(N-2*(l-f),H,ge,ze,E):te=h2(N,H,ge,ze,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Le=Fd.ensureUniformFontSize(e,b==="outside"?B:F),re=v(r,T,Le);var ke=re.attr("transform");if(re.attr("transform",""),ae=z_.bBox(re.node()),ge=ae.width,ze=ae.height,re.attr("transform",ke),ge<=0||ze<=0){re.remove();return}}var Ee=C.textangle,Se,Ge;b==="outside"?(Ge=C.constraintext==="both"||C.constraintext==="outside",Se=Y_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ge,angle:Ee})):(Ge=C.constraintext==="both"||C.constraintext==="inside",Se=c1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ge,angle:Ee,anchor:U,hasB:M,r:l,overhead:f})),Se.fontSize=Le.size,B_t(C.type==="histogram"?"bar":C.type,Se,_),x.transform=Se;var De=s1e(re,_,c,h);Fd.setTransormAndDisplay(De,Se)}function h2(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 u1e(e){return e==="auto"?0:e}function f1e(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 c1e(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,_=a.hasB,b=a.r,v=a.overhead,C=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Gp&&L>2*Gp?Gp:0;T-=2*x,L-=2*x;var k=u1e(u);u==="auto"&&!(C<=T&&E<=L)&&(C>T||E>L)&&(!(C>L||E>T)||CGp){var A=Z_t(e,t,r,n,M,b,v,o,_);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/M.x,L/M.y)),P=0;var F=i.left*p+i.right*d,B=(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?M.x:M.y)/2;b&&(f||_)&&(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:F,textY:B,targetX:U,targetY:G,anchorX:j,anchorY:W,scale:m,rotate:k}}function Z_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,_,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?(_=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*_*v))/(2*_)):u?(_=(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*_*v))/(2*_)):(_=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*_*v))/(2*_)),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 Y_t(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 _=u1e(u),b=f1e(i,_),v=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,k=0,M=o?By(t,e):By(r,n);return o?(T=t-M*d,x=M*v):(L=n+M*d,k=-M*v),{textX:C,textY:E,targetX:T,targetY:L,anchorX:x,anchorY:k,scale:p,rotate:_}}function K_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=$_t(e,t,r,n,i):a.textinfo?s=Q_t(t,r,n,i):s=LA.getValue(a.text,r),LA.coerceString(N_t,s)}function J_t(e,t){var r=LA.getValue(e.textposition,t);return LA.coerceEnumerated(U_t,r)}function $_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",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 _(x){return JI(h,h.c2l(x),!0).text}function b(x){return JI(p,p.c2l(x),!0).text}var v=t[r],C={};C.label=v.p,C.labelLabel=C[c+"Label"]=_(v.p);var E=Fd.castOption(a,v.i,"text");(E===0||E)&&(C.text=E),C.value=v.s,C.valueLabel=C[d+"Label"]=b(v.s);var T={};V_t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?C.value:C.label),(s||T.y===void 0)&&(T.y=f?C.label:C.value),(s||T.xLabel===void 0)&&(T.xLabel=f?C.valueLabel:C.labelLabel),(s||T.yLabel===void 0)&&(T.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=Fd.formatPercent(v.begR),C.percentPrevious=v.difR,C.percentPreviousLabel=Fd.formatPercent(v.difR),C.percentTotal=v.sumR,C.percenTotalLabel=Fd.formatPercent(v.sumR));var L=Fd.castOption(a,v.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString({data:[T,C,a._meta],fallback:a.texttemplatefallback,labels:C,locale:e._d3locale,template:o})}function Q_t(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 JI(x,L,!0).text}function l(L){var x=a?r:n;return JI(x,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(u(e[t].p)),_("text")&&(p=Fd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,C=v-b;_("initial")&&d.push(l(C)),_("delta")&&d.push(l(b)),_("final")&&d.push(l(v))}if(s){_("value")&&d.push(l(c.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var T=E>1;_("percent initial")&&(p=Fd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),_("percent previous")&&(p=Fd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),_("percent total")&&(p=Fd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}h1e.exports={plot:j_t,toMoveInsideBar:c1e}});var PA=Te((Ffr,m1e)=>{"use strict";var kE=Xc(),ext=$l(),d1e=jl(),txt=ei().fillText,rxt=ZI().getLineWidth,XV=wu().hoverLabelText,ixt=rf().BADNUM;function nxt(e,t,r,n,i){var a=p1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=v1e(s,u),ext.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function p1e(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,_,b,v,C;o.orientation==="h"?(h=r,d=t,p="y",_="x",b=G,v=F):(h=t,d=r,p="x",_="y",v=G,b=F);var E=o[p+"period"],T=u||E;function L(te){return k(te,-1)}function x(te){return k(te,1)}function k(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function M(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-M(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?x:E?function(te){return te.p+M(te)/2}:function(te){return Math.max(x(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),kE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/C)-1)}function F(te){return A(m(te),P(te),f)}function B(te){return A(L(te),x(te),c)}function U(te){var ke=te[_];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Se=U(te);return kE.inbox(Ee-ke,Se-ke,f+(Se-ke)/(Se-Ee)-1)}function j(te){var ke=d,Ee=te.b,Se=U(te);return kE.inbox(Ee-ke,Se-ke,c+(Se-ke)/(Se-Ee)-1)}var W=e[p+"a"],N=e[_+"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!==ixt){T||(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,ge=a[ae],ze=o.base?ge.b+ge.s:ge.s;e[_+"0"]=e[_+"1"]=N.c2p(ge[_],!0),e[_+"LabelVal"]=ze;var Le=s.extents[s.extents.round(ge.p)];e[p+"0"]=W.c2p(u?m(ge):Le[0],!0),e[p+"1"]=W.c2p(u?P(ge):Le[1],!0);var de=ge.orig_p!==void 0;return e[p+"LabelVal"]=de?ge.orig_p:ge.p,e.labelLabel=XV(W,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=XV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=XV(N,ge.b,o[_+"hoverformat"]),e.spikeDistance=(j(ge)+B(ge))/2,e[p+"Spike"]=W.c2p(ge.p,!0),txt(ge,o,e),e.hovertemplate=o.hovertemplate,e}}function v1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=rxt(e,t);if(d1e.opacity(r))return r;if(d1e.opacity(n)&&i)return n}m1e.exports={hoverPoints:nxt,hoverOnBars:p1e,getTraceColor:v1e}});var g1e=Te((Bfr,y1e)=>{"use strict";y1e.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 zA=Te((Ofr,_1e)=>{"use strict";_1e.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";x1e.exports={attributes:Fy(),layoutAttributes:WI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:VV(),calc:Hge(),crossTraceCalc:t2().crossTraceCalc,colorbar:ep(),arraysToCalcdata:SE(),plot:d2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:PA().hoverPoints,eventData:g1e(),selectPoints:zA(),moduleType:"trace",name:"bar",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var A1e=Te((Nfr,w1e)=>{"use strict";w1e.exports=b1e()});var CE=Te((Ufr,E1e)=>{"use strict";var oxt=Pm(),G0=Zc(),T1e=Fy(),sxt=Oh(),S1e=jc().axisHoverFormat,{hovertemplateAttrs:lxt,templatefallbackAttrs:uxt}=Ff(),Gg=Su().extendFlat,IA=G0.marker,M1e=IA.line;E1e.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:S1e("x"),yhoverformat:S1e("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({},IA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gg({},IA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gg({},IA.angle,{arrayOk:!1,editType:"calc"}),size:Gg({},IA.size,{arrayOk:!1,editType:"calc"}),color:Gg({},IA.color,{arrayOk:!1,editType:"style"}),line:{color:Gg({},M1e.color,{arrayOk:!1,dflt:sxt.defaultLine,editType:"style"}),width:Gg({},M1e.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:oxt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:T1e.offsetgroup,alignmentgroup:T1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gg({},G0.text,{}),hovertext:Gg({},G0.hovertext,{}),hovertemplate:lxt({}),hovertemplatefallback:uxt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var LE=Te((Vfr,k1e)=>{"use strict";k1e.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=Te((Gfr,z1e)=>{"use strict";var H0=ei(),fxt=$l(),cxt=jl(),hxt=Rm(),dxt=e2(),C1e=V3(),PE=CE();function pxt(e,t,r,n){function i(p,_){return H0.coerce(e,t,PE,p,_)}if(L1e(e,t,i,n),t.visible!==!1){hxt(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",cxt.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"),P1e(e,t,i,{prefix:"box"}),i("zorder")}}function L1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}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))}var h=i(o),d=i(s),p=h&&H0.minRowLength(o),_=d&&H0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?C="h":C="v",E=u;break;case"10":C="v",E=Math.min(u,_);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,_,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(_,p):E=Math.min(p)):d>0?(C="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var m=fxt.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function P1e(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 vxt(e,t){var r,n;function i(u){return H0.coerce(n._input,n,PE,u)}for(var a=0;a{"use strict";var mxt=$l(),yxt=ei(),gxt=LE();function I1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var YV=ku(),QI=wu(),xxt=Fm(),Eh=ei(),n0=rf().BADNUM,Hg=Eh._;G1e.exports=function(t,r){var n=t._fullLayout,i=QI.getFromId(t,r.xaxis||"x"),a=QI.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 _=bxt(r,d,h,n[s]),b=_[0],v=_[1],C=Eh.distinctVals(b,h),E=C.vals,T=C.minDiff/2,L,x,k,M,m,P,A=(r.boxpoints||r.points)==="all"?Eh.identity:function(qt){return qt.vL.uf};if(r._hasPreCompStats){var F=r[c],B=function(qt){return f.d2c((r[qt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var W=B("lowerfence");L.lf=W!==n0&&W<=L.q1?W:O1e(L,k,M);var N=B("upperfence");L.uf=N!==n0&&N>=L.q3?N:q1e(L,k,M);var H=B("mean");L.mean=H!==n0?H:M?Eh.mean(k,M):(L.q1+L.q3)/2;var re=B("sd");L.sd=H!==n0&&re>=0?re:M?Eh.stdev(k,M,L.mean):L.q3-L.q1,L.lo=N1e(L),L.uo=U1e(L);var ae=B("notchspan");ae=ae!==n0&&ae>0?ae:V1e(L,M),L.ln=L.med-ae,L.un=L.med+ae;var ge=L.lf,ze=L.uf;r.boxpoints&&k.length&&(ge=Math.min(ge,k[0]),ze=Math.max(ze,k[M-1])),r.notched&&(ge=Math.min(ge,L.ln),ze=Math.max(ze,L.un)),L.min=ge,L.max=ze}else{Eh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Le;L.med!==n0?Le=L.med:L.q1!==n0?L.q3!==n0?Le=(L.q1+L.q3)/2:Le=L.q1:L.q3!==n0?Le=L.q3:Le=0,L.med=Le,L.q1=L.q3=Le,L.lf=L.uf=Le,L.mean=L.sd=Le,L.ln=L.un=Le,L.min=L.max=Le}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(A),o.push(L)}}r._extremes[f._id]=QI.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=wxt(E,T),ke=E.length,Ee=Axt(ke);for(u=0;u=0&&Se0){if(L={},L.pos=L[d]=E[u],x=L.pts=Ee[u].sort(F1e),k=L[c]=x.map(B1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=Eh.mean(k,M),L.sd=Eh.stdev(k,M,L.mean)*r.sdmultiple,L.med=Eh.interp(k,.5),M%2&&(Ne||ce)){var je,Qe;Ne?(je=k.slice(0,M/2),Qe=k.slice(M/2+1)):ce&&(je=k.slice(0,M/2+1),Qe=k.slice(M/2)),L.q1=Eh.interp(je,.5),L.q3=Eh.interp(Qe,.5)}else L.q1=Eh.interp(k,.25),L.q3=Eh.interp(k,.75);L.lf=O1e(L,k,M),L.uf=q1e(L,k,M),L.lo=N1e(L),L.uo=U1e(L);var gt=V1e(L,M);L.ln=L.med-gt,L.un=L.med+gt,Ge=Math.min(Ge,L.ln),De=Math.max(De,L.un),L.pts2=x.filter(A),o.push(L)}r.notched&&Eh.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=QI.findExtremes(f,r.notched?de.concat([Ge,De]):de,{padded:!0})}return Txt(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,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 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=xxt(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||YV(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 H1e=wu(),Sxt=ei(),Mxt=Kb().getAxisGroup,W1e=["v","h"];function Ext(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=M*(x?1:.5),ae=re,H=ae=P):k==="negative"?(N=ae=P,H=M*(x?1:.5),ge=re):(N=H=M,ae=ge=re),Ee){var Se=T.pointpos,Ge=T.jitter,De=T.marker.size/2,xe=0;Se+Ge>=0&&(xe=re*(Se+Ge),xe>N?(ke=!0,de=De,ze=xe):xe>ae&&(de=De,ze=N)),xe<=N&&(ze=N);var Ne=0;Se-Ge<=0&&(Ne=-re*(Se-Ge),Ne>H?(ke=!0,te=De,Le=Ne):Ne>ge&&(te=De,Le=H)),Ne<=H&&(Le=H)}else ze=N,Le=H;var ce=new Array(f.length);for(l=0;l{"use strict";var RA=Jl(),p2=ei(),kxt=Mu(),Z1e=5,Cxt=.01;function Lxt(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;p2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=RA.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),Y1e(u,{pos:h,val:d},c,f,i),K1e(u,{x:a,y:o},c,f),J1e(u,{pos:h,val:d},c,f)})}function Y1e(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,_=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?p2.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 RA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,x=s.l2p(T+v)+c,k=u?(L+x)/2:s.l2p(T)+c,M=r.whiskerwidth,m=u?L*M+(1-M)*k:s.l2p(T-f)+c,P=u?x*M+(1-M)*k:s.l2p(T+f)+c,A=s.l2p(T-b*_)+c,F=s.l2p(T+v*_)+c,B=r.sizemode==="sd",U=o.c2p(B?E.mean-E.sd:E.q1,!0),G=B?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=p2.constrain(B?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||B,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?RA.select(this).attr("d","M"+j+","+A+"V"+F+"M"+U+","+L+"V"+x+(p?"H"+re+"L"+j+","+F+"L"+ae+","+x:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"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):"")):RA.select(this).attr("d","M"+A+","+j+"H"+F+"M"+L+","+U+"H"+x+(p?"V"+re+"L"+F+","+j+"L"+x+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+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 K1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;p2.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,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,v=_*Cxt,C=[],E=0,T;if(r.jitter){if(_===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(kxt.translatePoints,i,a)}function J1e(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?p2.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),_=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(_+b)/2:a.l2p(p)+u,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?RA.select(this).attr("d","M"+C+","+_+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+C+","+_+"L"+T+","+v+"Z":"")):RA.select(this).attr("d","M"+_+","+C+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+_+","+C+"L"+v+","+T+"Z":""))})}$1e.exports={plot:Lxt,plotBoxAndWhiskers:Y1e,plotPoints:K1e,plotBoxMean:J1e}});var rR=Te((Zfr,Q1e)=>{"use strict";var JV=Jl(),$V=jl(),QV=Mu();function Pxt(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 u(c,h,d,p){c.style("stroke-width",h+"px").call($V.stroke,d).call($V.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=JV.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($V.stroke,o.line.color);var f=a.selectAll("path.point");QV.pointStyle(f,o,e)}})}function zxt(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?QV.selectedPointStyle(i,n):QV.pointStyle(i,n,e)}Q1e.exports={style:Pxt,styleOnSelect:zxt}});var tG=Te((Yfr,i_e)=>{"use strict";var Ixt=wu(),eG=ei(),I_=Xc(),e_e=jl(),Rxt=eG.fillText;function Dxt(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(t_e(e,t,r,n))),o.indexOf("points")!==-1&&(u=r_e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function t_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,_,b,v,C,E,T,L=u.bdPos,x,k,M=u.wHover,m=function(De){return h.c2l(De.pos)+u.bPos-h.c2l(_)};l&&s.side!=="both"?(s.side==="positive"&&(C=function(De){var xe=m(De);return I_.inbox(xe,xe+M,E)},x=L,k=0),s.side==="negative"&&(C=function(De){var xe=m(De);return I_.inbox(xe-M,xe,E)},x=0,k=L)):(C=function(De){var xe=m(De);return I_.inbox(xe-M,xe+M,E)},x=k=L);var P;l?P=function(De){return I_.inbox(De.span[0]-p,De.span[1]-p,E)}:P=function(De){return I_.inbox(De.min-p,De.max-p,E)},s.orientation==="h"?(p=t,_=r,b=P,v=C,f="y",h=o,c="x",d=a):(p=r,_=t,b=C,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function F(De){return(b(De)+v(De))/2}var B=I_.getDistanceFunction(n,b,v,F);if(I_.getClosest(i,B,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;e_e.opacity(G)&&s.line.width?e.color=G:e_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=F(U)*T/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";n_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 rG=Te((Jfr,o_e)=>{"use strict";o_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";s_e.exports={attributes:CE(),layoutAttributes:LE(),supplyDefaults:zE().supplyDefaults,crossTraceDefaults:zE().crossTraceDefaults,supplyLayoutDefaults:$I().supplyLayoutDefaults,calc:KV(),crossTraceCalc:eR().crossTraceCalc,plot:tR().plot,style:rR().style,styleOnSelect:rR().styleOnSelect,hoverPoints:tG().hoverPoints,eventData:a_e(),selectPoints:rG(),moduleType:"trace",name:"box",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var f_e=Te((Qfr,u_e)=>{"use strict";u_e.exports=l_e()});var DA=Te((ecr,h_e)=>{"use strict";var Fxt=nc(),{extendFlat:Pv}=Su(),Bxt=Gf(),{axisHoverFormat:iG}=jc(),Oxt=gc(),{hovertemplateAttrs:qxt,templatefallbackAttrs:c_e,texttemplateAttrs:Nxt}=Ff(),a0=Zc();h_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:iG("x"),yhoverformat:iG("y"),zhoverformat:iG("z",1),hovertemplate:qxt(),hovertemplatefallback:c_e(),texttemplate:Nxt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:c_e({editType:"plot"}),textfont:Oxt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pv({},Bxt.showlegend,{dflt:!1}),zorder:a0.zorder},Fxt("",{cLetter:"z",autoColorDflt:!1}))});var nR=Te((tcr,p_e)=>{"use strict";var Uxt=ku(),iR=ei(),Vxt=$l();p_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(iR.isArray1D(s)){u=n(a),l=n(o);var f=iR.minRowLength(u),c=iR.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=d_e(a,n),l=d_e(o,n),!Gxt(s))return 0;n("transpose"),r._length=null}var h=Vxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function d_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 Gxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var v_e=ei();m_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=v_e.extendFlat({},r.font,{color:"auto",size:"auto"});v_e.coerceFont(t,"textfont",n)}});var nG=Te((icr,y_e)=>{"use strict";y_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var x_e=Te((ncr,__e)=>{"use strict";var g_e=ei(),Hxt=nR(),Wxt=IE(),jxt=Rm(),Xxt=nG(),Zxt=nd(),Yxt=DA();__e.exports=function(t,r,n,i){function a(s,u){return g_e.coerce(t,r,Yxt,s,u)}var o=Hxt(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"),Wxt(a,i),Xxt(t,r,a,i),a("hoverongaps"),a("connectgaps",g_e.isArray1D(r.z)&&r.zsmooth!==!1),Zxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var aG=Te((acr,b_e)=>{"use strict";var FA=ku();b_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return FA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return FA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(FA(i))if(i=Number(i),FA(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(FA(i))if(i=Number(i),FA(r[e])){if(r[e]{"use strict";w_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";A_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var BA=rf(),v2=BA.ONEAVGYEAR,T_e=BA.ONEAVGMONTH,oR=BA.ONEDAY,S_e=BA.ONEHOUR,M_e=BA.ONEMIN,E_e=BA.ONESEC,k_e=wu().tickIncrement;P_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(aR(l+s,l+u,i,a),aR(f+s,f+u,i,a)),h=Math.min(aR(l+o,l+s,i,a),aR(f+o,f+s,i,a)),d,p;if(c>h&&hoR){var _=d===v2?1:6,b=d===v2?"M12":"M1";return function(v,C){var E=i.c2d(v,v2,a),T=E.indexOf("-",_);T>0&&(E=E.slice(0,T));var L=i.d2c(E,0,a);if(LE_e?e>oR?e>v2*1.1?v2:e>T_e*1.1?T_e:oR:e>S_e?S_e:e>M_e?M_e:E_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Kxt(e,t,r,n,i,a){if(n&&e>oR){var o=L_e(t,i,a),s=L_e(r,i,a),u=e===v2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function L_e(e,t,r){var n=t.c2d(e,v2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var cG=Te((ucr,F_e)=>{"use strict";var uG=ku(),Hp=ei(),z_e=$l(),W0=wu(),{hasColorscale:I_e}=yp(),R_e=gp(),Jxt=SE(),D_e=aG(),$xt=oG(),Qxt=sG(),ebt=lG();function tbt(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=fG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",_=[],b=p?_:h,v=[],C=[],E=[],T=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,M,m,P;l.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var A=x==="max"||x==="min",F=A?null:0,B=D_e.count,U=$xt[L],G=!1,j=function(xe){return a.r2c(xe,0,u)},W;for(Hp.isArrayOrTypedArray(t[s])&&x!=="count"&&(W=t[s],G=x==="avg",B=D_e[x]),f=j(h.start),m=j(h.end)+(f-W0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Se;f--)if(n[f]){Ge=f;break}for(f=Se;f<=Ge;f++)if(uG(r[f])&&uG(n[f])){var De={p:r[f],s:n[f],b:0};l.enabled||(De.pts=E[f],ae?De.ph0=De.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,De.ph0=te(_[f]),De.ph1=te(_[f+1],!0))),Ee.push(De)}return Ee.length===1&&(Ee[0].width1=W0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),I_e(t,"marker")&&R_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),I_e(t,"marker.line")&&R_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),Jxt(Ee,t),Hp.isArrayOrTypedArray(t.selectedpoints)&&Hp.tagSelected(Ee,t,Le),Ee}function fG(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,_,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 uG(de)?Number(de):null};function T(de,te,ke){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=ke[de])):(_[de]=te[de]=ke[de],Hp.nestedProperty(c[0],a+"."+de).set(ke[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],x=!0,k=!1,M=!1;for(f=0;fr.r2l(W)&&(H=W0.tickIncrement(H,u.size,!0,d)),B.start=r.l2r(H),j||Hp.nestedProperty(t,a+".start").set(B.start)}var re=u.end,ae=r.r2l(F.end),ge=ae!==void 0;if((u.endFound||ge)&&ae!==r.r2l(re)){var ze=ge?ae:Hp.aggNums(Math.max,null,p);B.end=r.l2r(ze),ge||Hp.nestedProperty(t,a+".start").set(B.end)}var Le="autobin"+n;return t._input[Le]===!1&&(t._input[a]=Hp.extendFlat({},t[a]||{}),delete t._input[Le],delete t[Le]),[B,p]}function rbt(e,t,r,n,i){var a=e._fullLayout,o=ibt(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())}}F_e.exports={calc:tbt,calcAllAutoBins:fG}});var H_e=Te((fcr,G_e)=>{"use strict";var B_e=ei(),OA=wu(),O_e=aG(),abt=oG(),obt=sG(),sbt=lG(),q_e=cG().calcAllAutoBins;G_e.exports=function(t,r){var n=OA.getFromId(t,r.xaxis),i=OA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(He){return n.r2c(He,0,a)},u=function(He){return i.r2c(He,0,o)},l=function(He){return n.c2r(He,0,a)},f=function(He){return i.c2r(He,0,o)},c,h,d,p,_=q_e(t,r,n,"x"),b=_[0],v=_[1],C=q_e(t,r,i,"y"),E=C[0],T=C[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],k=[],M=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],F=[],B=m?A:b,U=P?F:E,G=0,j=[],W=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,ae=H==="max"||H==="min",ge=ae?null:0,ze=O_e.count,Le=abt[N],de=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&H!=="count"&&(de=H==="avg",ze=O_e[H]);var Se=b.size,Ge=s(b.start),De=s(b.end)+(Ge-OA.tickIncrement(Ge,Se,!1,a))/1e6;for(c=Ge;c=0&&d=0&&p{"use strict";var Oy=ei(),W_e=rf().BADNUM,j_e=Fm();X_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=j_e(t,r,i,u).vals,l=j_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&Oy.isArray1D(f),h=t.hovertext,d=h!==void 0&&Oy.isArray1D(h),p,_,b=Oy.distinctVals(u),v=b.vals,C=Oy.distinctVals(l),E=C.vals,T=[],L,x,k=E.length,M=v.length;for(p=0;p{"use strict";var lbt=ku(),ubt=ei(),lR=rf().BADNUM;Z_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(lbt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var fbt=ei(),Y_e=.01,cbt=[[-1,0],[1,0],[0,-1],[0,1]];function hbt(e){return .5-.25*Math.min(1,e*.5)}J_e.exports=function(t,r){var n=1,i;for(K_e(t,r),i=0;iY_e;i++)n=K_e(t,r,hbt(n));return n>Y_e&&fbt.log("interp2d didn't converge quickly",n),t};function K_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-_))))}return n}});var cR=Te((pcr,$_e)=>{"use strict";var dbt=ei().maxRowLength;$_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=dbt(t),l,f,c,h,d,p,_,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&&(_[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(v,C){return C[2]-v[2]})}});var hG=Te((vcr,txe)=>{"use strict";var Q_e=$l(),exe=ei().isArrayOrTypedArray;txe.exports=function(t,r,n,i,a,o){var s=[],u=Q_e.traceIs(t,"contour"),l=Q_e.traceIs(t,"histogram"),f,c,h,d=exe(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 rxe=$l(),dG=ei(),hR=wu(),ixe=Fm(),pbt=H_e(),vbt=gp(),mbt=sR(),ybt=uR(),gbt=fR(),_bt=cR(),dR=hG(),pG=rf().BADNUM;axe.exports=function(t,r){var n=hR.getFromId(t,r.xaxis||"x"),i=hR.getFromId(t,r.yaxis||"y"),a=rxe.traceIs(r,"contour"),o=rxe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,_,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,_=C.orig_y,h=C.y,d=C.y0,p=C.dy,b=C.z;else{var E=r.z;dG.isArray1D(E)?(mbt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],u=ixe(r,n,"x",c).vals,h=ixe(r,i,"y",_).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=ybt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=xbt(u,h,b),o||(u=nxe(u),h=nxe(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=_bt(b),gbt(b,r._emptypoints));function T(B){s=r._input.zsmooth=r.zsmooth=!1,dG.warn('cannot use zsmooth: "fast": '+B)}function L(B){if(B.length>1){var U=(B[B.length-1]-B[0])/(B.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"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=dG.maxRowLength(b),k=r.xtype==="scaled"?"":u,M=dR(r,k,l,f,x,n),m=r.ytype==="scaled"?"":h,P=dR(r,m,d,p,b.length,i);r._extremes[n._id]=hR.findExtremes(n,M),r._extremes[i._id]=hR.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&_&&(A.orig_y=_),k&&k.length===M.length-1&&(A.xCenter=k),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=C.xRanges,A.yRanges=C.yRanges,A.pts=C.pts),a||vbt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var F={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=dR(F,k,l,f,x,n),A.yfill=dR(F,m,d,p,b.length,i)}return[A]};function nxe(e){for(var t=[],r=e.length,n=0;n{"use strict";vR.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"]];vR.STYLE=vR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var mG=Te((gcr,sxe)=>{"use strict";var oxe=mR(),bbt=Mu(),vG=ei(),qA=null;function wbt(){if(qA!==null)return qA;qA=!1;var e=vG.isSafari()||vG.isMacWKWebView()||vG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(oxe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")qA=t.some(function(o){return r.apply(null,o)});else{var n=bbt.tester.append("image").attr("style",oxe.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;qA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return qA}sxe.exports=wbt});var yR=Te((_cr,mxe)=>{"use strict";var lxe=Jl(),Abt=hd(),Tbt=$l(),Sbt=Mu(),Mbt=wu(),j0=ei(),uxe=Wf(),Ebt=lI(),kbt=jl(),Cbt=_c().extractOpts,Lbt=_c().makeColorScaleFuncFromTrace,Pbt=jv(),zbt=Nh(),yG=zbt.LINE_SPACING,Ibt=mG(),Rbt=mR().STYLE,pxe="heatmap-label";function vxe(e){return e.selectAll("g."+pxe)}function fxe(e){vxe(e).remove()}mxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;j0.makeTraceGroups(n,r,"hm").each(function(o){var s=lxe.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,_=u.xCenter,b=u.yCenter,v=Tbt.traceIs(l,"contour"),C=v?"best":l.zsmooth,E=h.length,T=j0.maxRowLength(h),L=!1,x=!1,k,M,m,P,A,F,B,U;for(F=0;k===void 0&&F0;)M=i.c2p(d[F]),F--;for(M0;)A=a.c2p(p[F]),F--;A=i._length||M<=0||P>=a._length||A<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),fxe(s);return}var ae,ge;G==="fast"?(ae=T,ge=E):(ae=W,ge=N);var ze=document.createElement("canvas");ze.width=ae,ze.height=ge;var Le=ze.getContext("2d",{willReadFrequently:!0}),de=Lbt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(ki){return T-1-ki}:j0.identity,ke=x?function(ki){return E-1-ki}:j0.identity):(te=function(ki){return j0.constrain(Math.round(i.c2p(d[ki])-k),0,W)},ke=function(ki){return j0.constrain(Math.round(a.c2p(p[ki])-P),0,N)});var Ee=ke(0),Se=[Ee,Ee],Ge=L?0:1,De=x?0:1,xe=0,Ne=0,ce=0,je=0,Qe,gt,qt,at,Ke;function Ct(ki,Vi){if(ki!==void 0){var ti=de(ki);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),xe+=Vi,Ne+=ti[0]*Vi,ce+=ti[1]*Vi,je+=ti[2]*Vi,ti}return[0,0,0,0]}function wt(ki,Vi,ti,tn){var Yr=ki[ti.bin0];if(Yr===void 0)return Ct(void 0,1);var oi=ki[ti.bin1],Fi=Vi[ti.bin0],an=Vi[ti.bin1],nn=oi-Yr||0,Ri=Fi-Yr||0,Ii;return oi===void 0?an===void 0?Ii=0:Fi===void 0?Ii=2*(an-Yr):Ii=(2*an-Fi-Yr)*2/3:an===void 0?Fi===void 0?Ii=0:Ii=(2*Yr-oi-Fi)*2/3:Fi===void 0?Ii=(2*an-oi-Yr)*2/3:Ii=an+Yr-oi-Fi,Ct(Yr+ti.frac*nn+tn.frac*(Ri+ti.frac*Ii))}if(G!=="default"){var Mt=0,Bt;try{Bt=new Uint8Array(ae*ge*4)}catch(ki){Bt=new Array(ae*ge*4)}if(G==="smooth"){var Zt=_||d,Et=b||p,Ae=new Array(Zt.length),ot=new Array(Et.length),At=new Array(W),vt=_?hxe:cxe,Je=b?hxe:cxe,He,nt,tt;for(F=0;Frr||rr>a._length))for(B=pe;BBr||Br>i._length)){var Er=Ebt({x:Gr,y:zt},l,e._fullLayout);Er.x=Gr,Er.y=zt;var Rr=u.z[F][B];Rr===void 0?(Er.z="",Er.zLabel=""):(Er.z=Rr,Er.zLabel=Mbt.tickText(Ie,Rr,"hover").text);var pi=u.text&&u.text[F]&&u.text[F][B];(pi===void 0||pi===!1)&&(pi=""),Er.text=pi;var Di=j0.texttemplateString({data:[Er,l._meta],fallback:l.texttemplatefallback,labels:Er,locale:e._fullLayout._d3locale,template:be});if(Di){var ni=Di.split("
"),$i=ni.length,Qi=0;for(U=0;U<$i;U++)Qi=Math.max(Qi,ni[U].length);Pt.push({l:$i,c:Qi,t:Di,x:Br,y:rr,z:Rr})}}}}var si=l.textfont,Ti=si.size,Ni=e._fullLayout.font.size;if(!Ti||Ti==="auto"){var Rt=1/0,yt=1/0,Gt=0,Wt=0;for(U=0;U{"use strict";yxe.exports={min:"zmin",max:"zmax"}});var gR=Te((bcr,gxe)=>{"use strict";var Dbt=Jl();gxe.exports=function(t){Dbt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var xR=Te((wcr,xxe)=>{"use strict";var _xe=Xc(),RE=ei(),_R=RE.isArrayOrTypedArray,Fbt=wu(),Bbt=_c().extractOpts;xxe.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,_=s.yCenter,b=s.zmask,v=u.zhoverformat,C=c,E=h,T,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){RE.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(_xe.inbox(r-c[0],r-c[c.length-1],0)>0||_xe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*c[0]-c[1]],M=1;M{"use strict";bxe.exports={attributes:DA(),supplyDefaults:x_e(),calc:pR(),plot:yR(),colorbar:R_(),style:gR(),hoverPoints:xR(),moduleType:"trace",name:"heatmap",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var Txe=Te((Tcr,Axe)=>{"use strict";Axe.exports=wxe()});var gG=Te((Scr,Sxe)=>{"use strict";Sxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var Exe=Te((Mcr,Mxe)=>{"use strict";Mxe.exports={eventDataKeys:["binNumber"]}});var bR=Te((Ecr,Pxe)=>{"use strict";var zv=Fy(),kxe=jc().axisHoverFormat,{hovertemplateAttrs:Obt,texttemplateAttrs:qbt,templatefallbackAttrs:Cxe}=Ff(),_G=gc(),Lxe=gG(),Nbt=Exe(),xG=Su().extendFlat;Pxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:kxe("x"),yhoverformat:kxe("y"),text:xG({},zv.text,{}),hovertext:xG({},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:Lxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:Lxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Obt({},{keys:Nbt.eventDataKeys}),hovertemplatefallback:Cxe(),texttemplate:qbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:Cxe({editType:"plot"}),textposition:xG({},zv.textposition,{arrayOk:!1}),textfont:_G({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:_G({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:_G({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 Dxe=Te((kcr,Rxe)=>{"use strict";var zxe=$l(),DE=ei(),Ixe=jl(),Ubt=i0().handleText,Vbt=jI(),Gbt=bR();Rxe.exports=function(t,r,n,i){function a(C,E){return DE.coerce(t,r,Gbt,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");Ubt(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(DE.minRowLength(o)&&DE.minRowLength(s)):DE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=zxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+c),Vbt(t,r,a,n,i),DE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=zxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||Ixe.defaultLine,{axis:"y"}),v(t,r,b||Ixe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var AR=Te((Ccr,Oxe)=>{"use strict";var FE=ei(),Hbt=Wc(),wR=$l().traceIs,Wbt=e2(),jbt=i0().validateCornerradius,Fxe=FE.nestedProperty,bG=Kb().getAxisGroup,Bxe=[{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"}],Xbt=["x","y"];Oxe.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 _(G){return G.orientation==="v"?"x":"y"}function b(G,j){var W=Hbt.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],ge=!0;ae&&(H===ae.axType&&re===ae.calendar?(ge=!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(" ")))),ge&&(n[j]={traces:[G],dirs:[W],axType:H,calendar:G[W+"calendar"]||""}),G["_"+W+"bingroup"]=j}for(c=0;c{"use strict";var Zbt=PA().hoverPoints,Ybt=wu().hoverLabelText;qxe.exports=function(t,r,n,i,a){var o=Zbt(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"]=Ybt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var wG=Te((Pcr,Uxe)=>{"use strict";Uxe.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";Vxe.exports={attributes:bR(),layoutAttributes:WI(),supplyDefaults:Dxe(),crossTraceDefaults:AR(),supplyLayoutDefaults:VV(),calc:cG().calc,crossTraceCalc:t2().crossTraceCalc,plot:d2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:ep(),hoverPoints:Nxe(),selectPoints:zA(),eventData:wG(),moduleType:"trace",name:"histogram",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Wxe=Te((Icr,Hxe)=>{"use strict";Hxe.exports=Gxe()});var SR=Te((Rcr,Zxe)=>{"use strict";var Wm=bR(),jxe=gG(),TR=DA(),Kbt=Gf(),AG=jc().axisHoverFormat,{hovertemplateAttrs:Jbt,texttemplateAttrs:$bt,templatefallbackAttrs:Xxe}=Ff(),Qbt=nc(),BE=Su().extendFlat;Zxe.exports=BE({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:jxe("x"),nbinsy:Wm.nbinsy,ybins:jxe("y"),autobinx:Wm.autobinx,autobiny:Wm.autobiny,bingroup:BE({},Wm.bingroup,{}),xbingroup:BE({},Wm.bingroup,{}),ybingroup:BE({},Wm.bingroup,{}),xgap:TR.xgap,ygap:TR.ygap,zsmooth:TR.zsmooth,xhoverformat:AG("x"),yhoverformat:AG("y"),zhoverformat:AG("z",1),hovertemplate:Jbt({},{keys:["z"]}),hovertemplatefallback:Xxe(),texttemplate:$bt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Xxe({editType:"plot"}),textfont:TR.textfont,showlegend:BE({},Kbt.showlegend,{dflt:!1})},Qbt("",{cLetter:"z",autoColorDflt:!1}))});var TG=Te((Dcr,Kxe)=>{"use strict";var e2t=$l(),Yxe=ei();Kxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Yxe.minRowLength(a),u=Yxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=e2t.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 $xe=Te((Fcr,Jxe)=>{"use strict";var t2t=ei(),r2t=TG(),i2t=nG(),n2t=nd(),a2t=IE(),o2t=SR();Jxe.exports=function(t,r,n,i){function a(o,s){return t2t.coerce(t,r,o2t,o,s)}r2t(t,r,a,i),r.visible!==!1&&(i2t(t,r,a,i),n2t(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),a2t(a,i),a("xhoverformat"),a("yhoverformat"))}});var tbe=Te((Bcr,ebe)=>{"use strict";var s2t=xR(),Qxe=wu().hoverLabelText;ebe.exports=function(t,r,n,i,a){var o=s2t(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=Qxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Qxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var ibe=Te((Ocr,rbe)=>{"use strict";rbe.exports={attributes:SR(),supplyDefaults:$xe(),crossTraceDefaults:AR(),calc:pR(),plot:yR(),layerName:"heatmaplayer",colorbar:R_(),style:gR(),hoverPoints:tbe(),eventData:wG(),moduleType:"trace",name:"histogram2d",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var abe=Te((qcr,nbe)=>{"use strict";nbe.exports=ibe()});var MR=Te((Ncr,obe)=>{"use strict";obe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var OE=Te((Ucr,fbe)=>{"use strict";var kh=DA(),ER=Zc(),lbe=jc(),SG=lbe.axisHoverFormat,l2t=lbe.descriptionOnlyNumbers,u2t=nc(),f2t=Id().dash,c2t=gc(),NA=Su().extendFlat,ube=MR(),h2t=ube.COMPARISON_OPS2,d2t=ube.INTERVAL_OPS,sbe=ER.line;fbe.exports=NA({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:ER.xperiod0,yperiod0:ER.yperiod0,xperiodalignment:kh.xperiodalignment,yperiodalignment:kh.yperiodalignment,text:kh.text,hovertext:kh.hovertext,transpose:kh.transpose,xtype:kh.xtype,ytype:kh.ytype,xhoverformat:SG("x"),yhoverformat:SG("y"),zhoverformat:SG("z",1),hovertemplate:kh.hovertemplate,hovertemplatefallback:kh.hovertemplatefallback,texttemplate:NA({},kh.texttemplate,{}),texttemplatefallback:kh.texttemplatefallback,textfont:NA({},kh.textfont,{}),hoverongaps:kh.hoverongaps,connectgaps:NA({},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:c2t({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:l2t("contour label")},operation:{valType:"enumerated",values:[].concat(h2t).concat(d2t),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:NA({},sbe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:f2t,smoothing:NA({},sbe.smoothing,{}),editType:"plot"},zorder:ER.zorder},u2t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var EG=Te((Vcr,hbe)=>{"use strict";var Tp=SR(),qy=OE(),p2t=nc(),MG=jc().axisHoverFormat,cbe=Su().extendFlat;hbe.exports=cbe({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:qy.autocontour,ncontours:qy.ncontours,contours:qy.contours,line:{color:qy.line.color,width:cbe({},qy.line.width,{dflt:.5}),dash:qy.line.dash,smoothing:qy.line.smoothing,editType:"plot"},xhoverformat:MG("x"),yhoverformat:MG("y"),zhoverformat:MG("z",1),hovertemplate:Tp.hovertemplate,hovertemplatefallback:Tp.hovertemplatefallback,texttemplate:qy.texttemplate,texttemplatefallback:qy.texttemplatefallback,textfont:qy.textfont},p2t("",{cLetter:"z",editTypeOverride:"calc"}))});var kR=Te((Gcr,dbe)=>{"use strict";dbe.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 kG=Te((Hcr,pbe)=>{"use strict";var v2t=ei();pbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;v2t.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var CR=Te((Wcr,vbe)=>{"use strict";var m2t=nd(),y2t=kG();vbe.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,m2t(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),y2t(n,i,u,a)}});var _be=Te((jcr,gbe)=>{"use strict";var mbe=ei(),g2t=TG(),_2t=kR(),x2t=CR(),b2t=IE(),ybe=EG();gbe.exports=function(t,r,n,i){function a(s,u){return mbe.coerce(t,r,ybe,s,u)}function o(s){return mbe.coerce2(t,r,ybe,s)}g2t(t,r,a,i),r.visible!==!1&&(_2t(t,r,a,o),x2t(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&b2t(a,i))}});var PG=Te((Xcr,bbe)=>{"use strict";var LG=wu(),CG=ei();bbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=CG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=CG.aggNums(Math.max,null,r));var o=xbe(i,a,t.ncontours);n.size=o.dtick,n.start=LG.tickFirst(o),o.range.reverse(),n.end=LG.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={}),CG.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=xbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function xbe(e,t,r){var n={type:"linear",range:[e,t]};return LG.autoTicks(n,(t-e)/(r||15)),n}});var qE=Te((Zcr,wbe)=>{"use strict";wbe.exports=function(t){return t.end+t.size/1e6}});var zG=Te((Ycr,Tbe)=>{"use strict";var Abe=_c(),w2t=pR(),A2t=PG(),T2t=qE();Tbe.exports=function(t,r){var n=w2t(t,r),i=n[0].z;A2t(r,i);var a=r.contours,o=Abe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=T2t(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 Abe.calc(t,r,{vals:s,cLetter:"z"}),n}});var NE=Te((Kcr,Sbe)=>{"use strict";Sbe.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 IG=Te((Jcr,Mbe)=>{"use strict";var LR=NE();Mbe.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 RG=Te(($cr,Cbe)=>{"use strict";var PR=ei(),UA=NE();Cbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=UA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=UA.SADDLEREMAINDER[o]):delete e.crossings[a],s=UA.NEWDELTA[o],!s){PR.log("Found bad marching index:",o,t,e.level);break}u.push(kbe(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),_=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&p)break;o=e.crossings[a]}d===1e4&&PR.log("Infinite loop in contour?");var b=UE(u[0],u[u.length-1],n,i),v=0,C=.2*e.smoothing,E=[],T=0,L,x,k,M,m,P,A,F,B,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[x]F&&B--,e.edgepaths[B]=G.concat(u,U));break}H||(e.edgepaths[F]=u.concat(U))}for(F=0;F20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:UA.BOTTOMSTART.indexOf(e)!==-1?i=1:UA.LEFTSTART.indexOf(e)!==-1?n=1:UA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function kbe(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 Ibe=Te((Qcr,zbe)=>{"use strict";var DG=MR(),k2t=ku();zbe.exports={"[]":Lbe("[]"),"][":Lbe("]["),">":FG(">"),"<":FG("<"),"=":FG("=")};function Pbe(e,t){var r=Array.isArray(t),n;function i(a){return k2t(a)?+a:null}return DG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):DG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:DG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function Lbe(e){return function(t){t=Pbe(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 FG(e){return function(t){return t=Pbe(e,t),{start:t,end:1/0,size:1/0}}}});var BG=Te((ehr,Dbe)=>{"use strict";var Rbe=ei(),C2t=Ibe(),L2t=qE();Dbe.exports=function(t,r,n){for(var i=t.type==="constraint"?C2t[t._operation](t.value):t,a=i.size,o=[],s=L2t(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){Rbe.warn("Too many contours, clipping at 1000",t);break}return o}});var OG=Te((thr,Bbe)=>{"use strict";var VA=ei();Bbe.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&&VA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Obe.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 zR=Te(Wp=>{"use strict";var GE=Jl(),Bd=ei(),Wg=Mu(),P2t=_c(),Ube=Wf(),qbe=wu(),Nbe=xy(),z2t=yR(),Vbe=IG(),Gbe=RG(),I2t=BG(),R2t=OG(),Hbe=qG(),VE=NE(),Ny=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=I2t(d,r,l),_=Bd.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),z2t(t,r,b,_),Vbe(p),Gbe(p);var v=a.c2p(c[0],!0),C=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[C,T],[C,E],[v,E]],x=p;d.type==="constraint"&&(x=R2t(p,d._operation)),D2t(u,L,d),F2t(u,x,L,d),B2t(u,p,t,l,d),q2t(u,r,t,l,L)})};function D2t(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 F2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Hbe(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:"")+Wbe(u,r);l?GE.select(this).attr("d",l).style("stroke","none"):GE.select(this).remove()})}function Wbe(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 _(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)&&!_(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:_(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;nNy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Ny.MAXCOST)return f};function O2t(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=Ny.EDGECOST*(1/(c-1)+1/(h-1));d+=Ny.ANGLECOST*u*u;for(var p=o-l,_=s-f,b=o+l,v=s+f,C=0;C{"use strict";var U2t=Jl(),NG=_c(),V2t=qE();jbe.exports=function(t){var r=t.contours,n=r.start,i=V2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=NG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?NG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,_=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;p_&&(c.unshift(_),h.unshift(h[0])),c[c.length-1]{"use strict";var IR=Jl(),Xbe=Mu(),G2t=gR(),H2t=UG();Zbe.exports=function(t){var r=IR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=IR.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?H2t(a):null;i.selectAll("g.contourlevel").each(function(b){IR.select(this).selectAll("path").call(Xbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Xbe.font(IR.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 _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*u)}),_===void 0&&(_=l),i.selectAll("g.contourbg path").style("fill",d(_-.5*u))}}),G2t(t)}});var DR=Te((ohr,Kbe)=>{"use strict";var Ybe=_c(),W2t=UG(),j2t=qE();function X2t(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 u=Ybe.extractOpts(t);r._fillgradient=u.reversescale?Ybe.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}}Kbe.exports={min:"zmin",max:"zmax",calc:X2t}});var VG=Te((shr,Jbe)=>{"use strict";var FR=jl(),Z2t=xR();Jbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Z2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&FR.opacity(u.fillcolor)?s.color=FR.addOpacity(u.fillcolor,1):u.contours.showlines&&FR.opacity(u.line.color)&&(s.color=FR.addOpacity(u.line.color,1)))}),o}});var Qbe=Te((lhr,$be)=>{"use strict";$be.exports={attributes:EG(),supplyDefaults:_be(),crossTraceDefaults:AR(),calc:zG(),plot:zR().plot,layerName:"contourlayer",style:RR(),colorbar:DR(),hoverPoints:VG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var t2e=Te((uhr,e2e)=>{"use strict";e2e.exports=Qbe()});var GG=Te((fhr,s2e)=>{"use strict";var r2e=ku(),Y2t=kG(),a2e=jl(),i2e=a2e.addOpacity,K2t=a2e.opacity,o2e=MR(),n2e=ei().isArrayOrTypedArray,J2t=o2e.CONSTRAINT_REDUCTION,$2t=o2e.COMPARISON_OPS2;s2e.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=J2t[c],Q2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",i2e((t.line||{}).color||a,.5))),u){var h=f&&K2t(f)?i2e(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),Y2t(n,i,l,o)};function Q2t(e,t){var r;$2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),n2e(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])]:r2e(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),r2e(t.value)||(n2e(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var f2e=Te((chr,u2e)=>{"use strict";var HG=ei(),ewt=nR(),twt=Rm(),rwt=GG(),iwt=kR(),nwt=CR(),awt=IE(),l2e=OE();u2e.exports=function(t,r,n,i){function a(l,f){return HG.coerce(t,r,l2e,l,f)}function o(l){return HG.coerce2(t,r,l2e,l)}var s=ewt(t,r,a,i);if(!s){r.visible=!1;return}twt(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",HG.isArray1D(r.z)),u?rwt(t,r,a,i,n):(iwt(t,r,a,o),nwt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&awt(a,i),a("zorder")}});var h2e=Te((hhr,c2e)=>{"use strict";c2e.exports={attributes:OE(),supplyDefaults:f2e(),calc:zG(),plot:zR().plot,style:RR(),colorbar:DR(),hoverPoints:VG(),moduleType:"trace",name:"contour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var p2e=Te((dhr,d2e)=>{"use strict";d2e.exports=h2e()});var WG=Te((phr,g2e)=>{"use strict";var{hovertemplateAttrs:owt,texttemplateAttrs:swt,templatefallbackAttrs:v2e}=Ff(),lwt=Pm(),o0=Zc(),uwt=Gf(),m2e=nc(),fwt=Id().dash,D_=Su().extendFlat,X0=o0.marker,HE=o0.line,y2e=X0.line;g2e.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:D_({},o0.mode,{dflt:"markers"}),text:D_({},o0.text,{}),texttemplate:swt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:v2e({editType:"plot"}),hovertext:D_({},o0.hovertext,{}),line:{color:HE.color,width:HE.width,dash:fwt,backoff:HE.backoff,shape:D_({},HE.shape,{values:["linear","spline"]}),smoothing:HE.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:D_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:lwt(),marker:D_({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:D_({width:y2e.width,dash:y2e.dash,editType:"calc"},m2e("marker.line")),gradient:X0.gradient,editType:"calc"},m2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:D_({},uwt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:owt(),hovertemplatefallback:v2e()}});var w2e=Te((vhr,b2e)=>{"use strict";var _2e=ei(),cwt=Ly(),GA=lc(),hwt=$v(),dwt=R0(),x2e=sA(),pwt=D0(),vwt=Dm(),mwt=WG();b2e.exports=function(t,r,n,i){function a(h,d){return _2e.coerce(t,r,mwt,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 jG=wu();A2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=jG.tickText(a.aaxis,t.a,!0).text,i.bLabel=jG.tickText(a.baxis,t.b,!0).text,i.cLabel=jG.tickText(a.caxis,t.c,!0).text,i}});var k2e=Te((yhr,E2e)=>{"use strict";var XG=ku(),ywt=F0(),gwt=Iy(),_wt=B0(),xwt=O0().calcMarkerSize,S2e=["a","b","c"],M2e={a:["b","c"],b:["a","c"],c:["a","b"]};E2e.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=dA();C2e.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 wwt=yA();P2e.exports=function(t,r,n,i){var a=wwt(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 _=h._module.formatLabels(c,h,p);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=c.hi||h.hoverinfo,v=[];function C(T,L){v.push(T._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 R2e=Te((xhr,I2e)=>{"use strict";I2e.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 W2e=Te((bhr,H2e)=>{"use strict";var N2e=Jl(),Awt=hd(),ZG=$l(),jg=ei(),Uy=jg.strTranslate,BR=jg._,WA=jl(),OR=Mu(),WE=xy(),YG=Su().extendFlat,Twt=Cc(),F_=wu(),D2e=xp(),F2e=Xc(),U2e=Cm(),B2e=U2e.freeMode,Swt=U2e.rectMode,KG=Fb(),Mwt=oh().prepSelect,Ewt=oh().selectOnClick,kwt=oh().clearOutline,Cwt=oh().clearSelectionsCache,V2e=qh();function G2e(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}H2e.exports=G2e;var Vy=G2e.prototype;Vy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aHA*l?(v=l,b=v*HA):(b=u,v=b/HA),C=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=_,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-E/2,a+E/2],_id:"y"},WE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=YG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*HA],anchor:"free",position:0,_id:"y",_length:b});WE(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=YG({},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=YG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*HA],anchor:"free",position:0,_id:"y",_length:b});WE(k,r.graphDiv._fullLayout),k.setScale();var M="M"+p+","+(_+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Uy(p,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Uy(p-x._offset,_+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var F=Uy(p+b/2,_)+"rotate(30)"+Uy(0,-L._offset);r.layers.aaxis.attr("transform",F),r.layers.agrid.attr("transform",F);var B=Uy(p+b/2,_)+"rotate(-30)"+Uy(0,-k._offset);r.layers.caxis.attr("transform",B),r.layers.cgrid.attr("transform",B),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(_+v)+"l"+b/2+",-"+v:"M0,0").call(WA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(_+v)+"h"+b:"M0,0").call(WA.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(p+b/2)+","+_+"l"+b/2+","+v:"M0,0").call(WA.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),OR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Vy.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"]=KG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:BR(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"]=KG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:BR(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"]=KG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:BR(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"}})}};Vy.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=Lwt(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),_=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,C=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+_+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={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:E,transFn:h,crisp:!1}),F_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),F_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:F_.makeLabelFns(e,0,s)})};function Lwt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=V2e.MINZOOM/2+.87,Pwt="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",zwt="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",Iwt="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",Rwt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",O2e=!0;Vy.clearOutline=function(){Cwt(this.dragOptions),kwt(this.dragOptions.gd)};Vy.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(A,F,B){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;B2e(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(A,F,B)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(Swt(U)||B2e(U))&&Mwt(A,F,B,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,_;function b(A){var F={};return F[e.id+".aaxis.min"]=A.a,F[e.id+".baxis.min"]=A.b,F[e.id+".caxis.min"]=A.c,F}function v(A,F){var B=r._fullLayout.clickmode;q2e(r),A===2&&(r.emit("plotly_doubleclick",null),ZG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),B.indexOf("select")>-1&&A===1&&Ewt(F,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),B.indexOf("event")>-1&&F2e.click(r,F,e.id)}function C(A,F,B){var U=t.getBoundingClientRect();o=F-U.left,s=B-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=Awt(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",Uy(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Uy(e.x0,e.y0)).style({fill:WA.background,stroke:WA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,F){return 1-F/e.h}function T(A,F){return 1-(A+(e.h-F)/Math.sqrt(3))/e.w}function L(A,F){return(A-(e.h-F)/Math.sqrt(3))/e.w}function x(A,F){var B=o+A*i,U=s+F*a,G=Math.max(0,Math.min(1,E(o,s),E(B,U))),j=Math.max(0,Math.min(1,T(o,s),T(B,U))),W=Math.max(0,Math.min(1,L(o,s),L(B,U))),N=(G/2+W)*e.w,H=(1-G/2-j)*e.w,re=(N+H)/2,ae=H-N,ge=(1-G)*e.h,ze=ge-ae/HA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function k(){q2e(r),f!==u&&(ZG.call("_guiRelayout",r,b(f)),O2e&&r.data&&r._context.showTips&&(jg.notifier(BR(r,"Double-click to zoom back out"),"long"),O2e=!1))}function M(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,F){var B=A/e.xaxis._m,U=F/e.yaxis._m;f={a:u.a-U,b:u.b+(B+U)/2,c:u.c-(B-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]},F=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var W=Uy(e.x0+A,e.y0+F);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",W);var N=Uy(-A,-F);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(OR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){ZG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){F2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||D2e.unhover(r,A)},D2e.init(this.dragOptions)};function q2e(e){N2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var QG=Te((whr,j2e)=>{"use strict";var Dwt=Oh(),Fwt=zc().attributes,Kf=Dd(),Bwt=Sc().overrideAll,JG=Su().extendFlat,$G={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:JG({},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:JG({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:JG({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},qR=j2e.exports=Bwt({domain:Fwt({name:"ternary"}),bgcolor:{valType:"color",dflt:Dwt.background},sum:{valType:"number",dflt:1,min:0},aaxis:$G,baxis:$G,caxis:$G},"plot","from-root");qR.uirevision={valType:"any",editType:"none"};qR.aaxis.uirevision=qR.baxis.uirevision=qR.caxis.uirevision={valType:"any",editType:"none"}});var B_=Te((Ahr,X2e)=>{"use strict";var Owt=ei(),qwt=Lf(),Nwt=zc().defaults;X2e.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 Owt.coerce(h,d,o,C,E)}for(var _=0;_{"use strict";var Uwt=jl(),Vwt=Lf(),NR=ei(),Gwt=B_(),Hwt=s_(),Wwt=l_(),jwt=D3(),Xwt=Lb(),Zwt=fE(),Y2e=QG(),Z2e=["aaxis","baxis","caxis"];K2e.exports=function(t,r,n){Gwt(t,r,n,{type:"ternary",attributes:Y2e,handleDefaults:Ywt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function Ywt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=Uwt.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 Kwt(e,t,r,n){var i=Y2e[t._name];function a(d,p){return NR.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,NR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:NR.bigFont(r.font.size),color:s}}),a("min"),Xwt(e,t,a,"linear"),Wwt(e,t,a,"linear"),Hwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),jwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(NR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),Zwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var $2e=Te(Z0=>{"use strict";var Jwt=W2e(),$wt=Rd().getSubplotCalcData,Qwt=ei().counterRegex,jA="ternary";Z0.name=jA;var e3t=Z0.attr="subplot";Z0.idRoot=jA;Z0.idRegex=Z0.attrRegex=Qwt(jA);var t3t=Z0.attributes={};t3t[e3t]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=QG();Z0.supplyLayoutDefaults=J2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[jA],a=0;a{"use strict";Q2e.exports={attributes:WG(),supplyDefaults:w2e(),colorbar:ep(),formatLabels:T2e(),calc:k2e(),plot:L2e(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:z2e(),selectPoints:gA(),eventData:R2e(),moduleType:"trace",name:"scatterternary",basePlotModule:$2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var rwe=Te((Ehr,twe)=>{"use strict";twe.exports=ewe()});var eH=Te((khr,nwe)=>{"use strict";var Hh=CE(),XA=Su().extendFlat,iwe=jc().axisHoverFormat;nwe.exports={y:Hh.y,x:Hh.x,x0:Hh.x0,y0:Hh.y0,xhoverformat:iwe("x"),yhoverformat:iwe("y"),name:XA({},Hh.name,{}),orientation:XA({},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:XA({},Hh.boxpoints,{}),jitter:XA({},Hh.jitter,{}),pointpos:XA({},Hh.pointpos,{}),width:XA({},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 iH=Te((Chr,awe)=>{"use strict";var tH=LE(),rH=ei().extendFlat;awe.exports={violinmode:rH({},tH.boxmode,{}),violingap:rH({},tH.boxgap,{}),violingroupgap:rH({},tH.boxgroupgap,{})}});var fwe=Te((Lhr,uwe)=>{"use strict";var owe=ei(),r3t=jl(),swe=zE(),lwe=eH();uwe.exports=function(t,r,n,i){function a(L,x){return owe.coerce(t,r,lwe,L,x)}function o(L,x){return owe.coerce2(t,r,lwe,L,x)}if(swe.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",r3t.addOpacity(r.line.color,.5));swe.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),_=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||_||b));v||(r.box={visible:!1});var C=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(C||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var hwe=Te((Phr,cwe)=>{"use strict";var i3t=ei(),n3t=iH(),a3t=$I();cwe.exports=function(t,r,n){function i(a,o){return i3t.coerce(t,r,n3t,a,o)}a3t._supply(t,r,n,i,"violin")}});var UR=Te(m2=>{"use strict";var o3t=ei(),s3t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};m2.makeKDE=function(e,t,r){var n=r.length,i=s3t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var nH=ei(),aH=wu(),l3t=KV(),dwe=UR(),u3t=rf().BADNUM;pwe.exports=function(t,r){var n=l3t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=aH.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var d3t=eR().setPositionOffset,mwe=["v","h"];ywe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var oH=Jl(),sH=ei(),p3t=Mu(),lH=tR(),v3t=RU(),m3t=UR();_we.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=v3t(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return p3t.smoothopen(h[0],1)}sH.makeTraceGroups(i,n,"trace violins").each(function(f){var c=oH.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var _=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",x=c.selectAll("path.violin").data(sH.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=oH.select(this),j=U.density,W=j.length,N=C.c2l(U.pos+_,!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 ge,ze,Le,de,te,ke,Ee;if(T){for(ke=new Array(W),de=0;de{"use strict";var bwe=Jl(),ZA=jl(),y3t=sv().stylePoints;wwe.exports=function(t){var r=bwe.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=bwe.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(ZA.stroke,i.line.color).call(ZA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(ZA.stroke,s.color).call(ZA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(ZA.stroke,u.color),a.selectAll("path.meanline").style(f).call(ZA.stroke,u.color),y3t(a,i,t)})}});var Ewe=Te((Bhr,Mwe)=>{"use strict";var g3t=jl(),uH=ei(),_3t=wu(),Twe=tG(),Swe=UR();Mwe.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 _=Twe.hoverOnBoxes(t,r,n,i);if(c&&_.length>0){var b=t.xa,v=t.ya,C,E,T,L,x;u.orientation==="h"?(x=r,C="y",T=v,E="x",L=b):(x=n,C="x",T=b,E="y",L=v);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var M=uH.extendFlat({},t),m=L.c2p(x,!0),P=Swe.getKdeValue(k,u,x),A=Swe.getPositionOnKdePath(k,u,m),F=T._offset,B=T._length;M[C+"0"]=A[0],M[C+"1"]=A[1],M[E+"0"]=M[E+"1"]=m,M[E+"Label"]=E+": "+_3t.hoverLabelText(L,x,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G<_.length;G++)if(_[G].attr==="med"){U=G;break}M.spikeDistance=_[U].spikeDistance;var j=C+"Spike";M[j]=_[U][j],_[U].spikeDistance=void 0,_[U][j]=void 0,M.hovertemplate=!1,h.push(M),p={},p[C+"1"]=uH.constrain(F+A[0],F,F+B),p[C+"2"]=uH.constrain(F+A[1],F,F+B),p[E+"1"]=p[E+"2"]=L._offset+m}}f&&(h=h.concat(_))}l.indexOf("points")!==-1&&(d=Twe.hoverOnPoints(t,r,n));var W=o.selectAll(".violinline-"+u.uid).data(p?[0]:[]);return W.enter().append("line").classed("violinline-"+u.uid,!0).attr("stroke-width",1.5),W.exit().remove(),W.attr(p).call(g3t.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var Cwe=Te((Ohr,kwe)=>{"use strict";kwe.exports={attributes:eH(),layoutAttributes:iH(),supplyDefaults:fwe(),crossTraceDefaults:zE().crossTraceDefaults,supplyLayoutDefaults:hwe(),calc:vwe(),crossTraceCalc:gwe(),plot:xwe(),style:Awe(),styleOnSelect:sv().styleOnSelect,hoverPoints:Ewe(),selectPoints:rG(),moduleType:"trace",name:"violin",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Pwe=Te((qhr,Lwe)=>{"use strict";Lwe.exports=Cwe()});var Iwe=Te((Nhr,zwe)=>{"use strict";zwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var cH=Te((Uhr,Bwe)=>{"use strict";var Fc=Fy(),fH=Zc().line,x3t=Gf(),Rwe=jc().axisHoverFormat,{hovertemplateAttrs:b3t,texttemplateAttrs:w3t,templatefallbackAttrs:Dwe}=Ff(),Fwe=Iwe(),Xg=Su().extendFlat,A3t=jl();Bwe.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:Rwe("x"),yhoverformat:Rwe("y"),hovertext:Fc.hovertext,hovertemplate:b3t({},{keys:Fwe.eventDataKeys}),hovertemplatefallback:Dwe(),hoverinfo:Xg({},x3t.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:w3t({editType:"plot"},{keys:Fwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Dwe({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:T3t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xg({},fH.color,{dflt:A3t.defaultLine}),width:Xg({},fH.width,{dflt:0,editType:"plot"}),dash:fH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function T3t(){var e=Xg({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var hH=Te((Vhr,Owe)=>{"use strict";Owe.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 pH=Te((Ghr,Nwe)=>{"use strict";var VR=ei(),S3t=e2(),M3t=i0().handleText,E3t=oA(),k3t=Rm(),qwe=cH(),dH=jl();function C3t(e,t,r,n){function i(c,h){return VR.coerce(e,t,qwe,c,h)}var a=E3t(e,t,n,i);if(!a){t.visible=!1;return}k3t(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");M3t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",VR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",dH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",L3t(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function L3t(e){var t=VR.isArrayOrTypedArray(e)?"#000":e;return dH.addOpacity(t,.5*dH.opacity(t))}function P3t(e,t){var r,n;function i(o){return VR.coerce(n._input,n,qwe,o)}for(var a=0;a{"use strict";var z3t=ei(),I3t=hH();Uwe.exports=function(e,t,r){var n=!1;function i(s,u){return z3t.coerce(e,t,I3t,s,u)}for(var a=0;a{"use strict";var YA=ei();Gwe.exports=function(t,r){for(var n=0;n{"use strict";var Wwe=wu(),jwe=Fm(),R3t=Hwe(),D3t=B0(),jE=rf().BADNUM;Xwe.exports=function(t,r){var n=Wwe.getFromId(t,r.xaxis||"x"),i=Wwe.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=jwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=jwe(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 Ywe=t2().setGroupPositions;Kwe.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 GR=Jl(),q_=ei(),$we=Mu(),O_=rf().BADNUM,F3t=d2(),B3t=Ap().clearMinTextSize;e3e.exports=function(t,r,n,i){var a=t._fullLayout;B3t("funnel",a),O3t(t,r,n,i),q3t(t,r,n,i),F3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function O3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=GR.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 _=Qwe(d,i,a,f),b=_[0],v=_[1],C="";b[0]!==O_&&v[0]!==O_&&b[1]!==O_&&v[1]!==O_&&b[2]!==O_&&v[2]!==O_&&b[3]!==O_&&v[3]!==O_&&(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(GR.select(this),"path").attr("d",C).call($we.setClipUrl,t.layerClipId,e)}})})}function q3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=GR.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 _=Qwe(d,i,a,f),b=_[0],v=_[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(GR.select(this),"path").attr("d",C).call($we.setClipUrl,t.layerClipId,e)}})})}function Qwe(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 n3e=Te((Yhr,i3e)=>{"use strict";var XE=Jl(),r3e=Mu(),mH=jl(),N3t=X1().DESELECTDIM,U3t=V0(),V3t=Ap().resizeText,G3t=U3t.styleTextPoints;function H3t(e,t,r){var n=r||XE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");V3t(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(mH.fill,s.mc||u.color).call(mH.stroke,s.mlc||u.line.color).call(r3e.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?N3t:1)}}),G3t(a,o,e),a.selectAll(".regions").each(function(){XE.select(this).selectAll("path").style("stroke-width",0).call(mH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;r3e.lineGroupStyle(XE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}i3e.exports={style:H3t}});var s3e=Te((Khr,o3e)=>{"use strict";var a3e=jl().opacity,W3t=PA().hoverOnBars,yH=ei().formatPercent;o3e.exports=function(t,r,n,i,a){var o=W3t(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=yH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=yH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=yH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),v=function(C){return _||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(a3e(n))return n;if(a3e(i)&&a)return i}});var u3e=Te((Jhr,l3e)=>{"use strict";l3e.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 c3e=Te(($hr,f3e)=>{"use strict";f3e.exports={attributes:cH(),layoutAttributes:hH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:Vwe(),calc:Zwe(),crossTraceCalc:Jwe(),plot:t3e(),style:n3e().style,hoverPoints:s3e(),eventData:u3e(),selectPoints:zA(),moduleType:"trace",name:"funnel",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var d3e=Te((Qhr,h3e)=>{"use strict";h3e.exports=c3e()});var v3e=Te((edr,p3e)=>{"use strict";p3e.exports={eventDataKeys:["initial","delta","final"]}});var xH=Te((tdr,_3e)=>{"use strict";var Ec=Fy(),gH=Zc().line,X3t=Gf(),m3e=jc().axisHoverFormat,{hovertemplateAttrs:Z3t,texttemplateAttrs:Y3t,templatefallbackAttrs:y3e}=Ff(),g3e=v3e(),KA=Su().extendFlat,K3t=jl();function _H(e){return{marker:{color:KA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:KA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:KA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}_3e.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:m3e("x"),yhoverformat:m3e("y"),hovertext:Ec.hovertext,hovertemplate:Z3t({},{keys:g3e.eventDataKeys}),hovertemplatefallback:y3e(),hoverinfo:KA({},X3t.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:Y3t({editType:"plot"},{keys:g3e.eventDataKeys.concat(["label"])}),texttemplatefallback:y3e({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:_H("increasing"),decreasing:_H("decreasing"),totals:_H("intermediate sums and total"),connector:{line:{color:KA({},gH.color,{dflt:K3t.defaultLine}),width:KA({},gH.width,{editType:"plot"}),dash:gH.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 bH=Te((rdr,x3e)=>{"use strict";x3e.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 JA=Te((idr,b3e)=>{"use strict";b3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var AH=Te((ndr,S3e)=>{"use strict";var w3e=ei(),J3t=e2(),$3t=i0().handleText,Q3t=oA(),eAt=Rm(),A3e=xH(),tAt=jl(),T3e=JA(),rAt=T3e.INCREASING.COLOR,iAt=T3e.DECREASING.COLOR,nAt="#4499FF";function wH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",tAt.defaultLine),e(t+".marker.line.width")}function aAt(e,t,r,n){function i(l,f){return w3e.coerce(e,t,A3e,l,f)}var a=Q3t(e,t,n,i);if(!a){t.visible=!1;return}eAt(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");$3t(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")),wH(i,"increasing",rAt),wH(i,"decreasing",iAt),wH(i,"totals",nAt);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 oAt(e,t){var r,n;function i(o){return w3e.coerce(n._input,n,A3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var sAt=ei(),lAt=bH();M3e.exports=function(e,t,r){var n=!1;function i(s,u){return sAt.coerce(e,t,lAt,s,u)}for(var a=0;a{"use strict";var k3e=wu(),C3e=Fm(),L3e=ei().mergeArray,uAt=B0(),P3e=rf().BADNUM;function TH(e){return e==="a"||e==="absolute"}function SH(e){return e==="t"||e==="total"}z3e.exports=function(t,r){var n=k3e.getFromId(t,r.xaxis||"x"),i=k3e.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=C3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=C3e(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,_=!1,b=0;b{"use strict";var R3e=t2().setGroupPositions;D3e.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 B3e=Jl(),HR=ei(),fAt=Mu(),$A=rf().BADNUM,cAt=d2(),hAt=Ap().clearMinTextSize;O3e.exports=function(t,r,n,i){var a=t._fullLayout;hAt("waterfall",a),cAt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),dAt(t,r,n,i)};function dAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;HR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=B3e.select(this),u=o[0].trace,l=HR.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(HR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,_){if(!(_!==d-1&&!p.cNext)){var b=pAt(p,i,a,f),v=b[0],C=b[1],E="";v[0]!==$A&&C[0]!==$A&&v[1]!==$A&&C[1]!==$A&&(c==="spanning"&&!p.isSum&&_>0&&(f?E+="M"+v[0]+","+C[1]+"V"+C[0]:E+="M"+v[1]+","+C[0]+"H"+v[0]),c!=="between"&&(p.isSum||_{"use strict";var WR=Jl(),N3e=Mu(),U3e=jl(),vAt=X1().DESELECTDIM,mAt=V0(),yAt=Ap().resizeText,gAt=mAt.styleTextPoints;function _At(e,t,r){var n=r||WR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");yAt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=WR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;WR.select(this).call(U3e.fill,u.color).call(U3e.stroke,u.line.color).call(N3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?vAt:1)}}),gAt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;N3e.lineGroupStyle(WR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}V3e.exports={style:_At}});var Z3e=Te((fdr,X3e)=>{"use strict";var xAt=wu().hoverLabelText,H3e=jl().opacity,bAt=PA().hoverOnBars,W3e=JA(),j3e={increasing:W3e.INCREASING.SYMBOL,decreasing:W3e.DECREASING.SYMBOL};X3e.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 xAt(c,x,u[f+"hoverformat"])}var d=o.index,p=s[d],_=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<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",T=v.split("+"),L=function(x){return E||T.indexOf(x)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(_<0?C.push(o.deltaLabel+" "+j3e.decreasing):C.push(o.deltaLabel+" "+j3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=wAt(u,p),[o]};function wAt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(H3e(n))return n;if(H3e(i)&&a)return i}});var K3e=Te((cdr,Y3e)=>{"use strict";Y3e.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 $3e=Te((hdr,J3e)=>{"use strict";J3e.exports={attributes:xH(),layoutAttributes:bH(),supplyDefaults:AH().supplyDefaults,crossTraceDefaults:AH().crossTraceDefaults,supplyLayoutDefaults:E3e(),calc:I3e(),crossTraceCalc:F3e(),plot:q3e(),style:G3e().style,hoverPoints:Z3e(),eventData:K3e(),selectPoints:zA(),moduleType:"trace",name:"waterfall",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var eAe=Te((ddr,Q3e)=>{"use strict";Q3e.exports=$3e()});var QA=Te((pdr,tAe)=>{"use strict";tAe.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 MH=Te((vdr,iAe)=>{"use strict";var AAt=Gf(),TAt=Zc().zorder,{hovertemplateAttrs:SAt,templatefallbackAttrs:MAt}=Ff(),rAe=Su().extendFlat,EAt=QA().colormodel,YE=["rgb","rgba","rgba256","hsl","hsla"],kAt=[],CAt=[];for(eT=0;eT{"use strict";var LAt=ei(),PAt=MH(),nAe=QA(),zAt=Bg().IMAGE_URL_PREFIX;aAe.exports=function(t,r){function n(o,s){return LAt.coerce(t,r,PAt,o,s)}n("source"),r.source&&!r.source.match(zAt)&&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=nAe.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=nAe.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=Te((ydr,EH)=>{typeof Object.create=="function"?EH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:EH.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 kH=Te((gdr,sAe)=>{sAe.exports=Tb().EventEmitter});var fAe=Te(jR=>{"use strict";jR.byteLength=RAt;jR.toByteArray=FAt;jR.fromByteArray=qAt;var Gy=[],Y0=[],IAt=typeof Uint8Array!="undefined"?Uint8Array:Array,CH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(y2=0,lAe=CH.length;y20)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 RAt(e){var t=uAe(e),r=t[0],n=t[1];return(r+n)*3/4-n}function DAt(e,t,r){return(t+r)*3/4-r}function FAt(e){var t,r=uAe(e),n=r[0],i=r[1],a=new IAt(DAt(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 BAt(e){return Gy[e>>18&63]+Gy[e>>12&63]+Gy[e>>6&63]+Gy[e&63]}function OAt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Gy[t>>2]+Gy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Gy[t>>10]+Gy[t>>4&63]+Gy[t<<2&63]+"=")),i.join("")}});var cAe=Te(LH=>{LH.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)};LH.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,_=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]|=_*128}});var _2=Te(nT=>{"use strict";var PH=fAe(),rT=cAe(),hAe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nT.Buffer=ol;nT.SlowBuffer=WAt;nT.INSPECT_MAX_BYTES=50;var XR=2147483647;nT.kMaxLength=XR;ol.TYPED_ARRAY_SUPPORT=NAt();!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 NAt(){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>XR)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 DH(e)}return mAe(e,t,r)}ol.poolSize=8192;function mAe(e,t,r){if(typeof e=="string")return VAt(e,t);if(ArrayBuffer.isView(e))return GAt(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(Hy(e,ArrayBuffer)||e&&Hy(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Hy(e,SharedArrayBuffer)||e&&Hy(e.buffer,SharedArrayBuffer)))return IH(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=HAt(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 mAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function yAe(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 UAt(e,t,r){return yAe(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 UAt(e,t,r)};function DH(e){return yAe(e),Yg(e<0?0:FH(e)|0)}ol.allocUnsafe=function(e){return DH(e)};ol.allocUnsafeSlow=function(e){return DH(e)};function VAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=gAe(e,t)|0,n=Yg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function zH(e){let t=e.length<0?0:FH(e.length)|0,r=Yg(t);for(let n=0;n=XR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+XR.toString(16)+" bytes");return e|0}function WAt(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(Hy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),Hy(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 gAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Hy(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 RH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return EAe(e).length;default:if(i)return n?-1:RH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=gAe;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 rTt(this,t,r);case"utf8":case"utf-8":return xAe(this,t,r);case"ascii":return eTt(this,t,r);case"latin1":case"binary":return tTt(this,t,r);case"base64":return $At(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return iTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function g2(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+=" ... "),""};hAe&&(ol.prototype[hAe]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(Hy(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,OH(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:dAe(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):dAe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function dAe(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 XAt(this,t,r,n);case"utf8":case"utf-8":return ZAt(this,t,r,n);case"ascii":case"latin1":case"binary":return YAt(this,t,r,n);case"base64":return KAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JAt(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 $At(e,t,r){return t===0&&r===e.length?PH.fromByteArray(e):PH.fromByteArray(e.slice(t,r))}function xAe(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 QAt(n)}var pAe=4096;function QAt(e){let t=e.length;if(t<=pAe)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||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(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||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(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||rp(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,iT(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,iT(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||rp(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||rp(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||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(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||rp(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||rp(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||rp(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,iT(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,iT(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||rp(t,4,this.length),rT.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),rT.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),rT.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),rT.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 bAe(e,t,r,n,i){MAe(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 wAe(e,t,r,n,i){MAe(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 bAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=N_(function(t,r=0){return wAe(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 bAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=N_(function(t,r=0){return wAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function AAe(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 TAe(e,t,r,n,i){return t=+t,r=r>>>0,i||AAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),rT.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return TAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return TAe(this,t,r,!1,n)};function SAe(e,t,r,n,i){return t=+t,r=r>>>0,i||AAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),rT.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return SAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return SAe(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=vAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=vAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function vAe(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 nTt(e,t,r){iT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&KE(t,e.length-(r+1))}function MAe(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 tT.ERR_OUT_OF_RANGE("value",s,e)}nTt(n,i,a)}function iT(e,t){if(typeof e!="number")throw new tT.ERR_INVALID_ARG_TYPE(t,"number",e)}function KE(e,t,r){throw Math.floor(e)!==e?(iT(e,r),new tT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new tT.ERR_BUFFER_OUT_OF_BOUNDS:new tT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var aTt=/[^+/0-9A-Za-z-_]/g;function oTt(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 RH(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 sTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function EAe(e){return PH.toByteArray(oTt(e))}function ZR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Hy(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function OH(e){return e!==e}var uTt=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"?fTt:e}function fTt(){throw new Error("BigInt not supported")}});var YR=Te((Adr,kAe)=>{"use strict";kAe.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=Te((Tdr,CAe)=>{"use strict";var cTt=YR();CAe.exports=function(){return cTt()&&!!Symbol.toStringTag}});var qH=Te((Sdr,LAe)=>{"use strict";LAe.exports=Object});var zAe=Te((Mdr,PAe)=>{"use strict";PAe.exports=Error});var RAe=Te((Edr,IAe)=>{"use strict";IAe.exports=EvalError});var FAe=Te((kdr,DAe)=>{"use strict";DAe.exports=RangeError});var OAe=Te((Cdr,BAe)=>{"use strict";BAe.exports=ReferenceError});var NH=Te((Ldr,qAe)=>{"use strict";qAe.exports=SyntaxError});var aT=Te((Pdr,NAe)=>{"use strict";NAe.exports=TypeError});var VAe=Te((zdr,UAe)=>{"use strict";UAe.exports=URIError});var HAe=Te((Idr,GAe)=>{"use strict";GAe.exports=Math.abs});var jAe=Te((Rdr,WAe)=>{"use strict";WAe.exports=Math.floor});var ZAe=Te((Ddr,XAe)=>{"use strict";XAe.exports=Math.max});var KAe=Te((Fdr,YAe)=>{"use strict";YAe.exports=Math.min});var $Ae=Te((Bdr,JAe)=>{"use strict";JAe.exports=Math.pow});var eTe=Te((Odr,QAe)=>{"use strict";QAe.exports=Math.round});var rTe=Te((qdr,tTe)=>{"use strict";tTe.exports=Number.isNaN||function(t){return t!==t}});var nTe=Te((Ndr,iTe)=>{"use strict";var hTt=rTe();iTe.exports=function(t){return hTt(t)||t===0?t:t<0?-1:1}});var oTe=Te((Udr,aTe)=>{"use strict";aTe.exports=Object.getOwnPropertyDescriptor});var x2=Te((Vdr,sTe)=>{"use strict";var KR=oTe();if(KR)try{KR([],"length")}catch(e){KR=null}sTe.exports=KR});var $E=Te((Gdr,lTe)=>{"use strict";var JR=Object.defineProperty||!1;if(JR)try{JR({},"a",{value:1})}catch(e){JR=!1}lTe.exports=JR});var cTe=Te((Hdr,fTe)=>{"use strict";var uTe=typeof Symbol!="undefined"&&Symbol,dTt=YR();fTe.exports=function(){return typeof uTe!="function"||typeof Symbol!="function"||typeof uTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:dTt()}});var UH=Te((Wdr,hTe)=>{"use strict";hTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var VH=Te((jdr,dTe)=>{"use strict";var pTt=qH();dTe.exports=pTt.getPrototypeOf||null});var mTe=Te((Xdr,vTe)=>{"use strict";var vTt="Function.prototype.bind called on incompatible ",mTt=Object.prototype.toString,yTt=Math.max,gTt="[object Function]",pTe=function(t,r){for(var n=[],i=0;i{"use strict";var bTt=mTe();yTe.exports=Function.prototype.bind||bTt});var $R=Te((Ydr,gTe)=>{"use strict";gTe.exports=Function.prototype.call});var GH=Te((Kdr,_Te)=>{"use strict";_Te.exports=Function.prototype.apply});var bTe=Te((Jdr,xTe)=>{"use strict";xTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var ATe=Te(($dr,wTe)=>{"use strict";var wTt=oT(),ATt=GH(),TTt=$R(),STt=bTe();wTe.exports=STt||wTt.call(TTt,ATt)});var STe=Te((Qdr,TTe)=>{"use strict";var MTt=oT(),ETt=aT(),kTt=$R(),CTt=ATe();TTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new ETt("a function is required");return CTt(MTt,kTt,t)}});var PTe=Te((epr,LTe)=>{"use strict";var LTt=STe(),MTe=x2(),kTe;try{kTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var HH=!!kTe&&MTe&&MTe(Object.prototype,"__proto__"),CTe=Object,ETe=CTe.getPrototypeOf;LTe.exports=HH&&typeof HH.get=="function"?LTt([HH.get]):typeof ETe=="function"?function(t){return ETe(t==null?t:CTe(t))}:!1});var FTe=Te((tpr,DTe)=>{"use strict";var zTe=UH(),ITe=VH(),RTe=PTe();DTe.exports=zTe?function(t){return zTe(t)}:ITe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ITe(t)}:RTe?function(t){return RTe(t)}:null});var OTe=Te((rpr,BTe)=>{"use strict";var PTt=Function.prototype.call,zTt=Object.prototype.hasOwnProperty,ITt=oT();BTe.exports=ITt.call(PTt,zTt)});var tD=Te((ipr,HTe)=>{"use strict";var Jf,RTt=qH(),DTt=zAe(),FTt=RAe(),BTt=FAe(),OTt=OAe(),fT=NH(),uT=aT(),qTt=VAe(),NTt=HAe(),UTt=jAe(),VTt=ZAe(),GTt=KAe(),HTt=$Ae(),WTt=eTe(),jTt=nTe(),VTe=Function,WH=function(e){try{return VTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},QE=x2(),XTt=$E(),jH=function(){throw new uT},ZTt=QE?function(){try{return arguments.callee,jH}catch(e){try{return QE(arguments,"callee").get}catch(t){return jH}}}():jH,sT=cTe()(),ip=FTe(),YTt=VH(),KTt=UH(),GTe=GH(),e4=$R(),lT={},JTt=typeof Uint8Array=="undefined"||!ip?Jf:ip(Uint8Array),b2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":sT&&ip?ip([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":lT,"%AsyncGenerator%":lT,"%AsyncGeneratorFunction%":lT,"%AsyncIteratorPrototype%":lT,"%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%":DTt,"%eval%":eval,"%EvalError%":FTt,"%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%":VTe,"%GeneratorFunction%":lT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sT&&ip?ip(ip([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!sT||!ip?Jf:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":RTt,"%Object.getOwnPropertyDescriptor%":QE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":BTt,"%ReferenceError%":OTt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!sT||!ip?Jf:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sT&&ip?ip(""[Symbol.iterator]()):Jf,"%Symbol%":sT?Symbol:Jf,"%SyntaxError%":fT,"%ThrowTypeError%":ZTt,"%TypedArray%":JTt,"%TypeError%":uT,"%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%":qTt,"%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%":GTe,"%Object.defineProperty%":XTt,"%Object.getPrototypeOf%":YTt,"%Math.abs%":NTt,"%Math.floor%":UTt,"%Math.max%":VTt,"%Math.min%":GTt,"%Math.pow%":HTt,"%Math.round%":WTt,"%Math.sign%":jTt,"%Reflect.getPrototypeOf%":KTt};if(ip)try{null.error}catch(e){qTe=ip(ip(e)),b2["%Error.prototype%"]=qTe}var qTe,$Tt=function e(t){var r;if(t==="%AsyncFunction%")r=WH("async function () {}");else if(t==="%GeneratorFunction%")r=WH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=WH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return b2[t]=r,r},NTe={__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=oT(),QR=OTe(),QTt=t4.call(e4,Array.prototype.concat),eSt=t4.call(GTe,Array.prototype.splice),UTe=t4.call(e4,String.prototype.replace),eD=t4.call(e4,String.prototype.slice),tSt=t4.call(e4,RegExp.prototype.exec),rSt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iSt=/\\(\\)?/g,nSt=function(t){var r=eD(t,0,1),n=eD(t,-1);if(r==="%"&&n!=="%")throw new fT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new fT("invalid intrinsic syntax, expected opening `%`");var i=[];return UTe(t,rSt,function(a,o,s,u){i[i.length]=s?UTe(u,iSt,"$1"):o||a}),i},aSt=function(t,r){var n=t,i;if(QR(NTe,n)&&(i=NTe[n],n="%"+i[0]+"%"),QR(b2,n)){var a=b2[n];if(a===lT&&(a=$Tt(n)),typeof a=="undefined"&&!r)throw new uT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new fT("intrinsic "+t+" does not exist!")};HTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new uT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new uT('"allowMissing" argument must be a boolean');if(tSt(/^%?[^%]*%?$/,t)===null)throw new fT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=nSt(t),i=n.length>0?n[0]:"",a=aSt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],eSt(n,QTt([0,1],l)));for(var f=1,c=!0;f=n.length){var _=QE(s,h);c=!!_,c&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else c=QR(s,h),s=s[h];c&&!u&&(b2[o]=s)}}return s}});var ZTe=Te((npr,XTe)=>{"use strict";var WTe=$E(),oSt=NH(),cT=aT(),jTe=x2();XTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new cT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new cT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new cT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new cT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new cT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new cT("`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=!!jTe&&jTe(t,r);if(WTe)WTe(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 oSt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ZH=Te((apr,KTe)=>{"use strict";var XH=$E(),YTe=function(){return!!XH};YTe.hasArrayLengthDefineBug=function(){if(!XH)return null;try{return XH([],"length",{value:1}).length!==1}catch(t){return!0}};KTe.exports=YTe});var tSe=Te((opr,eSe)=>{"use strict";var sSt=tD(),JTe=ZTe(),lSt=ZH()(),$Te=x2(),QTe=aT(),uSt=sSt("%Math.floor%");eSe.exports=function(t,r){if(typeof t!="function")throw new QTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||uSt(r)!==r)throw new QTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&$Te){var o=$Te(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(lSt?JTe(t,"length",r,!0,!0):JTe(t,"length",r)),t}});var r4=Te((spr,rD)=>{"use strict";var YH=oT(),iD=tD(),fSt=tSe(),cSt=aT(),nSe=iD("%Function.prototype.apply%"),aSe=iD("%Function.prototype.call%"),oSe=iD("%Reflect.apply%",!0)||YH.call(aSe,nSe),rSe=$E(),hSt=iD("%Math.max%");rD.exports=function(t){if(typeof t!="function")throw new cSt("a function is required");var r=oSe(YH,aSe,arguments);return fSt(r,1+hSt(0,t.length-(arguments.length-1)),!0)};var iSe=function(){return oSe(YH,nSe,arguments)};rSe?rSe(rD.exports,"apply",{value:iSe}):rD.exports.apply=iSe});var hT=Te((lpr,uSe)=>{"use strict";var sSe=tD(),lSe=r4(),dSt=lSe(sSe("String.prototype.indexOf"));uSe.exports=function(t,r){var n=sSe(t,!!r);return typeof n=="function"&&dSt(t,".prototype.")>-1?lSe(n):n}});var hSe=Te((upr,cSe)=>{"use strict";var pSt=JE()(),vSt=hT(),KH=vSt("Object.prototype.toString"),nD=function(t){return pSt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:KH(t)==="[object Arguments]"},fSe=function(t){return nD(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&KH(t)!=="[object Array]"&&KH(t.callee)==="[object Function]"},mSt=function(){return nD(arguments)}();nD.isLegacyArguments=fSe;cSe.exports=mSt?nD:fSe});var vSe=Te((fpr,pSe)=>{"use strict";var ySt=Object.prototype.toString,gSt=Function.prototype.toString,_St=/^\s*(?:function)?\*/,dSe=JE()(),JH=Object.getPrototypeOf,xSt=function(){if(!dSe)return!1;try{return Function("return function*() {}")()}catch(e){}},$H;pSe.exports=function(t){if(typeof t!="function")return!1;if(_St.test(gSt.call(t)))return!0;if(!dSe){var r=ySt.call(t);return r==="[object GeneratorFunction]"}if(!JH)return!1;if(typeof $H=="undefined"){var n=xSt();$H=n?JH(n):!1}return JH(t)===$H}});var _Se=Te((cpr,gSe)=>{"use strict";var ySe=Function.prototype.toString,dT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,eW,aD;if(typeof dT=="function"&&typeof Object.defineProperty=="function")try{eW=Object.defineProperty({},"length",{get:function(){throw aD}}),aD={},dT(function(){throw 42},null,eW)}catch(e){e!==aD&&(dT=null)}else dT=null;var bSt=/^\s*class\b/,tW=function(t){try{var r=ySe.call(t);return bSt.test(r)}catch(n){return!1}},QH=function(t){try{return tW(t)?!1:(ySe.call(t),!0)}catch(r){return!1}},oD=Object.prototype.toString,wSt="[object Object]",ASt="[object Function]",TSt="[object GeneratorFunction]",SSt="[object HTMLAllCollection]",MSt="[object HTML document.all class]",ESt="[object HTMLCollection]",kSt=typeof Symbol=="function"&&!!Symbol.toStringTag,CSt=!(0 in[,]),rW=function(){return!1};typeof document=="object"&&(mSe=document.all,oD.call(mSe)===oD.call(document.all)&&(rW=function(t){if((CSt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=oD.call(t);return(r===SSt||r===MSt||r===ESt||r===wSt)&&t("")==null}catch(n){}return!1}));var mSe;gSe.exports=dT?function(t){if(rW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{dT(t,null,eW)}catch(r){if(r!==aD)return!1}return!tW(t)&&QH(t)}:function(t){if(rW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(kSt)return QH(t);if(tW(t))return!1;var r=oD.call(t);return r!==ASt&&r!==TSt&&!/^\[object HTML/.test(r)?!1:QH(t)}});var iW=Te((hpr,bSe)=>{"use strict";var LSt=_Se(),PSt=Object.prototype.toString,xSe=Object.prototype.hasOwnProperty,zSt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),PSt.call(t)==="[object Array]"?zSt(t,r,i):typeof t=="string"?ISt(t,r,i):RSt(t,r,i)};bSe.exports=DSt});var aW=Te((dpr,wSe)=>{"use strict";var nW=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],FSt=typeof globalThis=="undefined"?window:globalThis;wSe.exports=function(){for(var t=[],r=0;r{"use strict";var lD=iW(),BSt=aW(),ASe=r4(),lW=hT(),sD=x2(),OSt=lW("Object.prototype.toString"),SSe=JE()(),TSe=typeof globalThis=="undefined"?window:globalThis,sW=BSt(),uW=lW("String.prototype.slice"),oW=Object.getPrototypeOf,qSt=lW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:USt(t)}return sD?NSt(t):null}});var ISe=Te((vpr,zSe)=>{"use strict";var kSe=iW(),VSt=aW(),cW=hT(),GSt=cW("Object.prototype.toString"),CSe=JE()(),fD=x2(),HSt=typeof globalThis=="undefined"?window:globalThis,LSe=VSt(),WSt=cW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return fD?XSt(t):!1}});var pW=Te($f=>{"use strict";var ZSt=hSe(),YSt=vSe(),jm=ESe(),RSe=ISe();function pT(e){return e.call.bind(e)}var DSe=typeof BigInt!="undefined",FSe=typeof Symbol!="undefined",K0=pT(Object.prototype.toString),KSt=pT(Number.prototype.valueOf),JSt=pT(String.prototype.valueOf),$St=pT(Boolean.prototype.valueOf);DSe&&(BSe=pT(BigInt.prototype.valueOf));var BSe;FSe&&(OSe=pT(Symbol.prototype.valueOf));var OSe;function n4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=ZSt;$f.isGeneratorFunction=YSt;$f.isTypedArray=RSe;function QSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=QSt;function eMt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):RSe(e)||NSe(e)}$f.isArrayBufferView=eMt;function tMt(e){return jm(e)==="Uint8Array"}$f.isUint8Array=tMt;function rMt(e){return jm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=rMt;function iMt(e){return jm(e)==="Uint16Array"}$f.isUint16Array=iMt;function nMt(e){return jm(e)==="Uint32Array"}$f.isUint32Array=nMt;function aMt(e){return jm(e)==="Int8Array"}$f.isInt8Array=aMt;function oMt(e){return jm(e)==="Int16Array"}$f.isInt16Array=oMt;function sMt(e){return jm(e)==="Int32Array"}$f.isInt32Array=sMt;function lMt(e){return jm(e)==="Float32Array"}$f.isFloat32Array=lMt;function uMt(e){return jm(e)==="Float64Array"}$f.isFloat64Array=uMt;function fMt(e){return jm(e)==="BigInt64Array"}$f.isBigInt64Array=fMt;function cMt(e){return jm(e)==="BigUint64Array"}$f.isBigUint64Array=cMt;function cD(e){return K0(e)==="[object Map]"}cD.working=typeof Map!="undefined"&&cD(new Map);function hMt(e){return typeof Map=="undefined"?!1:cD.working?cD(e):e instanceof Map}$f.isMap=hMt;function hD(e){return K0(e)==="[object Set]"}hD.working=typeof Set!="undefined"&&hD(new Set);function dMt(e){return typeof Set=="undefined"?!1:hD.working?hD(e):e instanceof Set}$f.isSet=dMt;function dD(e){return K0(e)==="[object WeakMap]"}dD.working=typeof WeakMap!="undefined"&&dD(new WeakMap);function pMt(e){return typeof WeakMap=="undefined"?!1:dD.working?dD(e):e instanceof WeakMap}$f.isWeakMap=pMt;function dW(e){return K0(e)==="[object WeakSet]"}dW.working=typeof WeakSet!="undefined"&&dW(new WeakSet);function vMt(e){return dW(e)}$f.isWeakSet=vMt;function pD(e){return K0(e)==="[object ArrayBuffer]"}pD.working=typeof ArrayBuffer!="undefined"&&pD(new ArrayBuffer);function qSe(e){return typeof ArrayBuffer=="undefined"?!1:pD.working?pD(e):e instanceof ArrayBuffer}$f.isArrayBuffer=qSe;function vD(e){return K0(e)==="[object DataView]"}vD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&vD(new DataView(new ArrayBuffer(1),0,1));function NSe(e){return typeof DataView=="undefined"?!1:vD.working?vD(e):e instanceof DataView}$f.isDataView=NSe;var hW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function i4(e){return K0(e)==="[object SharedArrayBuffer]"}function USe(e){return typeof hW=="undefined"?!1:(typeof i4.working=="undefined"&&(i4.working=i4(new hW)),i4.working?i4(e):e instanceof hW)}$f.isSharedArrayBuffer=USe;function mMt(e){return K0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=mMt;function yMt(e){return K0(e)==="[object Map Iterator]"}$f.isMapIterator=yMt;function gMt(e){return K0(e)==="[object Set Iterator]"}$f.isSetIterator=gMt;function _Mt(e){return K0(e)==="[object Generator]"}$f.isGeneratorObject=_Mt;function xMt(e){return K0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=xMt;function VSe(e){return n4(e,KSt)}$f.isNumberObject=VSe;function GSe(e){return n4(e,JSt)}$f.isStringObject=GSe;function HSe(e){return n4(e,$St)}$f.isBooleanObject=HSe;function WSe(e){return DSe&&n4(e,BSe)}$f.isBigIntObject=WSe;function jSe(e){return FSe&&n4(e,OSe)}$f.isSymbolObject=jSe;function bMt(e){return VSe(e)||GSe(e)||HSe(e)||WSe(e)||jSe(e)}$f.isBoxedPrimitive=bMt;function wMt(e){return typeof Uint8Array!="undefined"&&(qSe(e)||USe(e))}$f.isAnyArrayBuffer=wMt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var vW=Te((ypr,XSe)=>{XSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var bW=Te(Qf=>{var ZSe=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]),_W(t)?r.showHidden=t:t&&Qf._extend(r,t),A2(r.showHidden)&&(r.showHidden=!1),A2(r.depth)&&(r.depth=2),A2(r.colors)&&(r.colors=!1),A2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=TMt),_D(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 TMt(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function SMt(e,t){return e}function MMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _D(e,t,r){if(e.customInspect&&t&&gD(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return wD(n)||(n=_D(e,n,r)),n}var i=EMt(e,t);if(i)return i;var a=Object.keys(t),o=MMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),o4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return mW(t);if(a.length===0){if(gD(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(xD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(o4(t))return mW(t)}var u="",l=!1,f=["{","}"];if(KSe(t)&&(l=!0,f=["[","]"]),gD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(a4(t)&&(u=" "+RegExp.prototype.toString.call(t)),xD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),o4(t)&&(u=" "+mW(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=kMt(e,t,r,o,a):h=a.map(function(d){return gW(e,t,r,o,d,l)}),e.seen.pop(),CMt(h,u,f)}function EMt(e,t){if(A2(t))return e.stylize("undefined","undefined");if(wD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(JSe(t))return e.stylize(""+t,"number");if(_W(t))return e.stylize(""+t,"boolean");if(bD(t))return e.stylize("null","null")}function mW(e){return"["+Error.prototype.toString.call(e)+"]"}function kMt(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=` @@ -28,7 +28,7 @@ `))):s=e.stylize("[Circular]","special")),A2(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 CMt(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=pW();function KSe(e){return Array.isArray(e)}Qf.isArray=KSe;function _W(e){return typeof e=="boolean"}Qf.isBoolean=_W;function bD(e){return e===null}Qf.isNull=bD;function LMt(e){return e==null}Qf.isNullOrUndefined=LMt;function JSe(e){return typeof e=="number"}Qf.isNumber=JSe;function wD(e){return typeof e=="string"}Qf.isString=wD;function PMt(e){return typeof e=="symbol"}Qf.isSymbol=PMt;function A2(e){return e===void 0}Qf.isUndefined=A2;function n4(e){return vT(e)&&xW(e)==="[object RegExp]"}Qf.isRegExp=n4;Qf.types.isRegExp=n4;function vT(e){return typeof e=="object"&&e!==null}Qf.isObject=vT;function xD(e){return vT(e)&&xW(e)==="[object Date]"}Qf.isDate=xD;Qf.types.isDate=xD;function a4(e){return vT(e)&&(xW(e)==="[object Error]"||e instanceof Error)}Qf.isError=a4;Qf.types.isNativeError=a4;function gD(e){return typeof e=="function"}Qf.isFunction=gD;function zMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Qf.isPrimitive=zMt;Qf.isBuffer=vW();function xW(e){return Object.prototype.toString.call(e)}function yW(e){return e<10?"0"+e.toString(10):e.toString(10)}var IMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function RMt(){var e=new Date,t=[yW(e.getHours()),yW(e.getMinutes()),yW(e.getSeconds())].join(":");return[e.getDate(),IMt[e.getMonth()],t].join(" ")}Qf.log=function(){console.log("%s - %s",RMt(),Qf.format.apply(Qf,arguments))};Qf.inherits=Zg();Qf._extend=function(e,t){if(!t||!vT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function $Se(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var w2=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(w2&&t[w2]){var r=t[w2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,w2,{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 QSe(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 BMt(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 AD.alloc(0);for(var n=AD.allocUnsafe(r>>>0),i=this.head,a=0;i;)HMt(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=AD.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:GMt,value:function(r,n){return wW(this,BMt({},n,{depth:0,customInspect:!1}))}}]),e}()});var TW=Te((xpr,nMe)=>{"use strict";function WMt(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(AW,this,e)):process.nextTick(AW,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(TD,r):(r._writableState.errorEmitted=!0,process.nextTick(iMe,r,a)):process.nextTick(iMe,r,a):t?(process.nextTick(TD,r),t(a)):process.nextTick(TD,r)}),this)}function iMe(e,t){AW(e,t),TD(e)}function TD(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 AW(e,t){e.emit("error",t)}function XMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}nMe.exports={destroy:WMt,undestroy:jMt,errorOrDestroy:XMt}});var T2=Te((bpr,sMe)=>{"use strict";function ZMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var oMe={};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){ZMt(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,oMe[e]=i}function aMe(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 YMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function KMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function JMt(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"&&YMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(KMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(aMe(t,"type"));else{var a=JMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(aMe(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");sMe.exports.codes=oMe});var SW=Te((wpr,lMe)=>{"use strict";var $Mt=T2().codes.ERR_INVALID_OPT_VALUE;function QMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function e5t(e,t,r,n){var i=QMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new $Mt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}lMe.exports={getHighWaterMark:e5t}});var fMe=Te((Apr,uMe)=>{uMe.exports=t5t;function t5t(e,t){if(MW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(MW("throwDeprecation"))throw new Error(t);MW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function MW(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 CW=Te((Tpr,mMe)=>{"use strict";mMe.exports=Wh;function hMe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){k5t(t,e)}}var mT;Wh.WritableState=s4;var r5t={deprecate:fMe()},dMe=kH(),MD=_2().Buffer,i5t=window.Uint8Array||function(){};function n5t(e){return MD.from(e)}function a5t(e){return MD.isBuffer(e)||e instanceof i5t}var kW=TW(),o5t=SW(),s5t=o5t.getHighWaterMark,V_=T2().codes,l5t=V_.ERR_INVALID_ARG_TYPE,u5t=V_.ERR_METHOD_NOT_IMPLEMENTED,f5t=V_.ERR_MULTIPLE_CALLBACK,c5t=V_.ERR_STREAM_CANNOT_PIPE,h5t=V_.ERR_STREAM_DESTROYED,d5t=V_.ERR_STREAM_NULL_VALUES,p5t=V_.ERR_STREAM_WRITE_AFTER_END,v5t=V_.ERR_UNKNOWN_ENCODING,yT=kW.errorOrDestroy;Zg()(Wh,dMe);function m5t(){}function s4(e,t,r){mT=mT||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof mT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=s5t(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){A5t(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 hMe(this)}s4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(s4.prototype,"buffer",{get:r5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var SD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(SD=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wh,Symbol.hasInstance,{value:function(t){return SD.call(this,t)?!0:this!==Wh?!1:t&&t._writableState instanceof s4}})):SD=function(t){return t instanceof this};function Wh(e){mT=mT||S2();var t=this instanceof mT;if(!t&&!SD.call(Wh,this))return new Wh(e);this._writableState=new s4(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)),dMe.call(this)}Wh.prototype.pipe=function(){yT(this,new c5t)};function y5t(e,t){var r=new p5t;yT(e,r),process.nextTick(t,r)}function g5t(e,t,r,n){var i;return r===null?i=new d5t:typeof r!="string"&&!t.objectMode&&(i=new l5t("chunk",["string","Buffer"],r)),i?(yT(e,i),process.nextTick(n,i),!1):!0}Wh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&a5t(e);return a&&!MD.isBuffer(e)&&(e=n5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=m5t),n.ending?y5t(this,r):(a||g5t(this,n,e,r))&&(n.pendingcb++,i=x5t(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&&pMe(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 v5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Wh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=MD.from(t,r)),t}Object.defineProperty(Wh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x5t(e,t,r,n,i,a){if(!r){var o=_5t(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 C5t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};gMe.exports=Wy;var yMe=zW(),PW=CW();Zg()(Wy,yMe);for(LW=C5t(PW.prototype),ED=0;ED{var CD=_2(),jy=CD.Buffer;function _Me(e,t){for(var r in e)t[r]=e[r]}jy.from&&jy.alloc&&jy.allocUnsafe&&jy.allocUnsafeSlow?xMe.exports=CD:(_Me(CD,IW),IW.Buffer=M2);function M2(e,t,r){return jy(e,t,r)}M2.prototype=Object.create(jy.prototype);_Me(jy,M2);M2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return jy(e,t,r)};M2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=jy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};M2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return jy(e)};M2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return CD.SlowBuffer(e)}});var FW=Te(AMe=>{"use strict";var DW=bMe().Buffer,wMe=DW.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 z5t(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 I5t(e){var t=z5t(e);if(typeof t!="string"&&(DW.isEncoding===wMe||!wMe(e)))throw new Error("Unknown encoding: "+e);return t||e}AMe.StringDecoder=l4;function l4(e){this.encoding=I5t(e);var t;switch(this.encoding){case"utf16le":this.text=q5t,this.end=N5t,t=4;break;case"utf8":this.fillLast=F5t,t=4;break;case"base64":this.text=U5t,this.end=V5t,t=3;break;default:this.write=G5t,this.end=H5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=DW.allocUnsafe(t)}l4.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 R5t(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 D5t(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 F5t(e){var t=this.lastTotal-this.lastNeed,r=D5t(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 B5t(e,t){var r=R5t(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 O5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function q5t(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 N5t(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 U5t(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 V5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function G5t(e){return e.toString(this.encoding)}function H5t(e){return e&&e.length?this.write(e):""}});var LD=Te((Epr,MMe)=>{"use strict";var TMe=T2().codes.ERR_STREAM_PREMATURE_CLOSE;function W5t(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 PD;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 Z5t=LD(),H_=Symbol("lastResolve"),E2=Symbol("lastReject"),u4=Symbol("error"),zD=Symbol("ended"),k2=Symbol("lastPromise"),BW=Symbol("handlePromise"),C2=Symbol("stream");function W_(e,t){return{value:e,done:t}}function Y5t(e){var t=e[H_];if(t!==null){var r=e[C2].read();r!==null&&(e[k2]=null,e[H_]=null,e[E2]=null,t(W_(r,!1)))}}function K5t(e){process.nextTick(Y5t,e)}function J5t(e,t){return function(r,n){e.then(function(){if(t[zD]){r(W_(void 0,!0));return}t[BW](r,n)},n)}}var $5t=Object.getPrototypeOf(function(){}),Q5t=Object.setPrototypeOf((PD={get stream(){return this[C2]},next:function(){var t=this,r=this[u4];if(r!==null)return Promise.reject(r);if(this[zD])return Promise.resolve(W_(void 0,!0));if(this[C2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[u4]?s(t[u4]):o(W_(void 0,!0))})});var n=this[k2],i;if(n)i=new Promise(J5t(n,this));else{var a=this[C2].read();if(a!==null)return Promise.resolve(W_(a,!1));i=new Promise(this[BW])}return this[k2]=i,i}},G_(PD,Symbol.asyncIterator,function(){return this}),G_(PD,"return",function(){var t=this;return new Promise(function(r,n){t[C2].destroy(null,function(i){if(i){n(i);return}r(W_(void 0,!0))})})}),PD),$5t),eEt=function(t){var r,n=Object.create(Q5t,(r={},G_(r,C2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,E2,{value:null,writable:!0}),G_(r,u4,{value:null,writable:!0}),G_(r,zD,{value:t._readableState.endEmitted,writable:!0}),G_(r,BW,{value:function(a,o){var s=n[C2].read();s?(n[k2]=null,n[H_]=null,n[E2]=null,a(W_(s,!1))):(n[H_]=a,n[E2]=o)},writable:!0}),r));return n[k2]=null,Z5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[E2];a!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,a(i)),n[u4]=i;return}var o=n[H_];o!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,o(W_(void 0,!0))),n[zD]=!0}),t.on("readable",K5t.bind(null,n)),n};EMe.exports=eEt});var LMe=Te((Cpr,CMe)=>{CMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var zW=Te((Ppr,NMe)=>{"use strict";NMe.exports=hc;var gT;hc.ReadableState=RMe;var Lpr=Tb().EventEmitter,IMe=function(t,r){return t.listeners(r).length},c4=kH(),ID=_2().Buffer,tEt=window.Uint8Array||function(){};function rEt(e){return ID.from(e)}function iEt(e){return ID.isBuffer(e)||e instanceof tEt}var OW=bW(),Yf;OW&&OW.debuglog?Yf=OW.debuglog("stream"):Yf=function(){};var nEt=rMe(),WW=TW(),aEt=SW(),oEt=aEt.getHighWaterMark,RD=T2().codes,sEt=RD.ERR_INVALID_ARG_TYPE,lEt=RD.ERR_STREAM_PUSH_AFTER_EOF,uEt=RD.ERR_METHOD_NOT_IMPLEMENTED,fEt=RD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_T,qW,NW;Zg()(hc,c4);var f4=WW.errorOrDestroy,UW=["error","close","destroy","pause","resume"];function cEt(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 RMe(e,t,r){gT=gT||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof gT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=oEt(this,e,"readableHighWaterMark",r),this.buffer=new nEt,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&&(_T||(_T=FW().StringDecoder),this.decoder=new _T(e.encoding),this.encoding=e.encoding)}function hc(e){if(gT=gT||S2(),!(this instanceof hc))return new hc(e);var t=this instanceof gT;this._readableState=new RMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),c4.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=WW.destroy;hc.prototype._undestroy=WW.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=ID.from(e,t),t=""),n=!0),DMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return DMe(this,e,null,!0,!1)};function DMe(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=hEt(a,t)),o)f4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ID.prototype&&(t=rEt(t)),n)a.endEmitted?f4(e,new fEt):VW(e,a,t,!0);else if(a.ended)f4(e,new lEt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?VW(e,a,t,!1):HW(e,a)):VW(e,a,t,!1)}else n||(a.reading=!1,HW(e,a))}return!a.ended&&(a.length=PMe?e=PMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zMe(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=dEt(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?GW(this):DD(this),null;if(e=zMe(e,t),e===0&&t.ended)return t.length===0&&GW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=OMe(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&&GW(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?DD(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,FMe(e)))}}function DD(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(FMe,e))}function FMe(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,jW(e)}function HW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(vEt,e,t))}function vEt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&qMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),_(),e.removeListener("error",h),IMe(e,"error")===0&&f4(e,b)}cEt(e,"error",h);function d(){e.removeListener("finish",p),_()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),_()}e.once("finish",p);function _(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function mEt(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&IMe(e,"data")&&(r.flowing=!0,jW(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?DD(this):n.reading||process.nextTick(yEt,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=c4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(BMe,this),r};hc.prototype.removeAllListeners=function(e){var t=c4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(BMe,this),t};function BMe(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 yEt(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,gEt(this,e)),e.paused=!1,this};function gEt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(_Et,e,t))}function _Et(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),jW(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 jW(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 GW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(xEt,t,e))}function xEt(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 NW===void 0&&(NW=LMe()),NW(hc,e,t)});function qMe(e,t){for(var r=0,n=e.length;r{"use strict";VMe.exports=Kg;var FD=T2().codes,bEt=FD.ERR_METHOD_NOT_IMPLEMENTED,wEt=FD.ERR_MULTIPLE_CALLBACK,AEt=FD.ERR_TRANSFORM_ALREADY_TRANSFORMING,TEt=FD.ERR_TRANSFORM_WITH_LENGTH_0,BD=S2();Zg()(Kg,BD);function SEt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new wEt);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";HMe.exports=h4;var GMe=XW();Zg()(h4,GMe);function h4(e){if(!(this instanceof h4))return new h4(e);GMe.call(this,e)}h4.prototype._transform=function(e,t,r){r(null,e)}});var KMe=Te((Rpr,YMe)=>{"use strict";var ZW;function EEt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var ZMe=T2().codes,kEt=ZMe.ERR_MISSING_ARGS,CEt=ZMe.ERR_STREAM_DESTROYED;function jMe(e){if(e)throw e}function LEt(e){return e.setHeader&&typeof e.abort=="function"}function PEt(e,t,r,n){n=EEt(n);var i=!1;e.on("close",function(){i=!0}),ZW===void 0&&(ZW=LD()),ZW(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,LEt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new CEt("pipe"))}}}function XMe(e){e()}function zEt(e,t){return e.pipe(t)}function IEt(e){return!e.length||typeof e[e.length-1]!="function"?jMe:e.pop()}function REt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return PEt(o,u,l,function(f){i||(i=f),f&&a.forEach(XMe),!u&&(a.forEach(XMe),n(i))})});return t.reduce(zEt)}YMe.exports=REt});var $Me=Te((Dpr,JMe)=>{JMe.exports=$0;var YW=Tb().EventEmitter,DEt=Zg();DEt($0,YW);$0.Readable=zW();$0.Writable=CW();$0.Duplex=S2();$0.Transform=XW();$0.PassThrough=WMe();$0.finished=LD();$0.pipeline=KMe();$0.Stream=$0;function $0(){YW.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(),YW.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 bT=Te(ec=>{var QMe=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]),QW(t)?r.showHidden=t:t&&ec._extend(r,t),P2(r.showHidden)&&(r.showHidden=!1),P2(r.depth)&&(r.depth=2),P2(r.colors)&&(r.colors=!1),P2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=BEt),UD(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 BEt(e,t){var r=j_.styles[t];return r?"\x1B["+j_.colors[r][0]+"m"+e+"\x1B["+j_.colors[r][1]+"m":e}function OEt(e,t){return e}function qEt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function UD(e,t,r){if(e.customInspect&&t&&ND(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return HD(n)||(n=UD(e,n,r)),n}var i=NEt(e,t);if(i)return i;var a=Object.keys(t),o=qEt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),p4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return KW(t);if(a.length===0){if(ND(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(d4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(VD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(p4(t))return KW(t)}var u="",l=!1,f=["{","}"];if(t5e(t)&&(l=!0,f=["[","]"]),ND(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(d4(t)&&(u=" "+RegExp.prototype.toString.call(t)),VD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),p4(t)&&(u=" "+KW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return d4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=UEt(e,t,r,o,a):h=a.map(function(d){return $W(e,t,r,o,d,l)}),e.seen.pop(),VEt(h,u,f)}function NEt(e,t){if(P2(t))return e.stylize("undefined","undefined");if(HD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(r5e(t))return e.stylize(""+t,"number");if(QW(t))return e.stylize(""+t,"boolean");if(GD(t))return e.stylize("null","null")}function KW(e){return"["+Error.prototype.toString.call(e)+"]"}function UEt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function QSe(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 BMt(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 AD.alloc(0);for(var n=AD.allocUnsafe(r>>>0),i=this.head,a=0;i;)HMt(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=AD.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:GMt,value:function(r,n){return wW(this,BMt({},n,{depth:0,customInspect:!1}))}}]),e}()});var TW=Te((xpr,nMe)=>{"use strict";function WMt(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(AW,this,e)):process.nextTick(AW,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(TD,r):(r._writableState.errorEmitted=!0,process.nextTick(iMe,r,a)):process.nextTick(iMe,r,a):t?(process.nextTick(TD,r),t(a)):process.nextTick(TD,r)}),this)}function iMe(e,t){AW(e,t),TD(e)}function TD(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 AW(e,t){e.emit("error",t)}function XMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}nMe.exports={destroy:WMt,undestroy:jMt,errorOrDestroy:XMt}});var T2=Te((bpr,sMe)=>{"use strict";function ZMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var oMe={};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){ZMt(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,oMe[e]=i}function aMe(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 YMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function KMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function JMt(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"&&YMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(KMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(aMe(t,"type"));else{var a=JMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(aMe(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");sMe.exports.codes=oMe});var SW=Te((wpr,lMe)=>{"use strict";var $Mt=T2().codes.ERR_INVALID_OPT_VALUE;function QMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function e5t(e,t,r,n){var i=QMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new $Mt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}lMe.exports={getHighWaterMark:e5t}});var fMe=Te((Apr,uMe)=>{uMe.exports=t5t;function t5t(e,t){if(MW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(MW("throwDeprecation"))throw new Error(t);MW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function MW(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 CW=Te((Tpr,mMe)=>{"use strict";mMe.exports=Wh;function hMe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){k5t(t,e)}}var mT;Wh.WritableState=l4;var r5t={deprecate:fMe()},dMe=kH(),MD=_2().Buffer,i5t=window.Uint8Array||function(){};function n5t(e){return MD.from(e)}function a5t(e){return MD.isBuffer(e)||e instanceof i5t}var kW=TW(),o5t=SW(),s5t=o5t.getHighWaterMark,V_=T2().codes,l5t=V_.ERR_INVALID_ARG_TYPE,u5t=V_.ERR_METHOD_NOT_IMPLEMENTED,f5t=V_.ERR_MULTIPLE_CALLBACK,c5t=V_.ERR_STREAM_CANNOT_PIPE,h5t=V_.ERR_STREAM_DESTROYED,d5t=V_.ERR_STREAM_NULL_VALUES,p5t=V_.ERR_STREAM_WRITE_AFTER_END,v5t=V_.ERR_UNKNOWN_ENCODING,yT=kW.errorOrDestroy;Zg()(Wh,dMe);function m5t(){}function l4(e,t,r){mT=mT||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof mT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=s5t(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){A5t(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 hMe(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:r5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var SD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(SD=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wh,Symbol.hasInstance,{value:function(t){return SD.call(this,t)?!0:this!==Wh?!1:t&&t._writableState instanceof l4}})):SD=function(t){return t instanceof this};function Wh(e){mT=mT||S2();var t=this instanceof mT;if(!t&&!SD.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)),dMe.call(this)}Wh.prototype.pipe=function(){yT(this,new c5t)};function y5t(e,t){var r=new p5t;yT(e,r),process.nextTick(t,r)}function g5t(e,t,r,n){var i;return r===null?i=new d5t:typeof r!="string"&&!t.objectMode&&(i=new l5t("chunk",["string","Buffer"],r)),i?(yT(e,i),process.nextTick(n,i),!1):!0}Wh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&a5t(e);return a&&!MD.isBuffer(e)&&(e=n5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=m5t),n.ending?y5t(this,r):(a||g5t(this,n,e,r))&&(n.pendingcb++,i=x5t(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&&pMe(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 v5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Wh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=MD.from(t,r)),t}Object.defineProperty(Wh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x5t(e,t,r,n,i,a){if(!r){var o=_5t(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 C5t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};gMe.exports=Wy;var yMe=zW(),PW=CW();Zg()(Wy,yMe);for(LW=C5t(PW.prototype),ED=0;ED{var CD=_2(),jy=CD.Buffer;function _Me(e,t){for(var r in e)t[r]=e[r]}jy.from&&jy.alloc&&jy.allocUnsafe&&jy.allocUnsafeSlow?xMe.exports=CD:(_Me(CD,IW),IW.Buffer=M2);function M2(e,t,r){return jy(e,t,r)}M2.prototype=Object.create(jy.prototype);_Me(jy,M2);M2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return jy(e,t,r)};M2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=jy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};M2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return jy(e)};M2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return CD.SlowBuffer(e)}});var FW=Te(AMe=>{"use strict";var DW=bMe().Buffer,wMe=DW.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 z5t(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 I5t(e){var t=z5t(e);if(typeof t!="string"&&(DW.isEncoding===wMe||!wMe(e)))throw new Error("Unknown encoding: "+e);return t||e}AMe.StringDecoder=u4;function u4(e){this.encoding=I5t(e);var t;switch(this.encoding){case"utf16le":this.text=q5t,this.end=N5t,t=4;break;case"utf8":this.fillLast=F5t,t=4;break;case"base64":this.text=U5t,this.end=V5t,t=3;break;default:this.write=G5t,this.end=H5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=DW.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 R5t(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 D5t(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 F5t(e){var t=this.lastTotal-this.lastNeed,r=D5t(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 B5t(e,t){var r=R5t(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 O5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function q5t(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 N5t(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 U5t(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 V5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function G5t(e){return e.toString(this.encoding)}function H5t(e){return e&&e.length?this.write(e):""}});var LD=Te((Epr,MMe)=>{"use strict";var TMe=T2().codes.ERR_STREAM_PREMATURE_CLOSE;function W5t(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 PD;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 Z5t=LD(),H_=Symbol("lastResolve"),E2=Symbol("lastReject"),f4=Symbol("error"),zD=Symbol("ended"),k2=Symbol("lastPromise"),BW=Symbol("handlePromise"),C2=Symbol("stream");function W_(e,t){return{value:e,done:t}}function Y5t(e){var t=e[H_];if(t!==null){var r=e[C2].read();r!==null&&(e[k2]=null,e[H_]=null,e[E2]=null,t(W_(r,!1)))}}function K5t(e){process.nextTick(Y5t,e)}function J5t(e,t){return function(r,n){e.then(function(){if(t[zD]){r(W_(void 0,!0));return}t[BW](r,n)},n)}}var $5t=Object.getPrototypeOf(function(){}),Q5t=Object.setPrototypeOf((PD={get stream(){return this[C2]},next:function(){var t=this,r=this[f4];if(r!==null)return Promise.reject(r);if(this[zD])return Promise.resolve(W_(void 0,!0));if(this[C2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[f4]?s(t[f4]):o(W_(void 0,!0))})});var n=this[k2],i;if(n)i=new Promise(J5t(n,this));else{var a=this[C2].read();if(a!==null)return Promise.resolve(W_(a,!1));i=new Promise(this[BW])}return this[k2]=i,i}},G_(PD,Symbol.asyncIterator,function(){return this}),G_(PD,"return",function(){var t=this;return new Promise(function(r,n){t[C2].destroy(null,function(i){if(i){n(i);return}r(W_(void 0,!0))})})}),PD),$5t),eEt=function(t){var r,n=Object.create(Q5t,(r={},G_(r,C2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,E2,{value:null,writable:!0}),G_(r,f4,{value:null,writable:!0}),G_(r,zD,{value:t._readableState.endEmitted,writable:!0}),G_(r,BW,{value:function(a,o){var s=n[C2].read();s?(n[k2]=null,n[H_]=null,n[E2]=null,a(W_(s,!1))):(n[H_]=a,n[E2]=o)},writable:!0}),r));return n[k2]=null,Z5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[E2];a!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,a(i)),n[f4]=i;return}var o=n[H_];o!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,o(W_(void 0,!0))),n[zD]=!0}),t.on("readable",K5t.bind(null,n)),n};EMe.exports=eEt});var LMe=Te((Cpr,CMe)=>{CMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var zW=Te((Ppr,NMe)=>{"use strict";NMe.exports=hc;var gT;hc.ReadableState=RMe;var Lpr=Tb().EventEmitter,IMe=function(t,r){return t.listeners(r).length},h4=kH(),ID=_2().Buffer,tEt=window.Uint8Array||function(){};function rEt(e){return ID.from(e)}function iEt(e){return ID.isBuffer(e)||e instanceof tEt}var OW=bW(),Yf;OW&&OW.debuglog?Yf=OW.debuglog("stream"):Yf=function(){};var nEt=rMe(),WW=TW(),aEt=SW(),oEt=aEt.getHighWaterMark,RD=T2().codes,sEt=RD.ERR_INVALID_ARG_TYPE,lEt=RD.ERR_STREAM_PUSH_AFTER_EOF,uEt=RD.ERR_METHOD_NOT_IMPLEMENTED,fEt=RD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_T,qW,NW;Zg()(hc,h4);var c4=WW.errorOrDestroy,UW=["error","close","destroy","pause","resume"];function cEt(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 RMe(e,t,r){gT=gT||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof gT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=oEt(this,e,"readableHighWaterMark",r),this.buffer=new nEt,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&&(_T||(_T=FW().StringDecoder),this.decoder=new _T(e.encoding),this.encoding=e.encoding)}function hc(e){if(gT=gT||S2(),!(this instanceof hc))return new hc(e);var t=this instanceof gT;this._readableState=new RMe(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=WW.destroy;hc.prototype._undestroy=WW.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=ID.from(e,t),t=""),n=!0),DMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return DMe(this,e,null,!0,!1)};function DMe(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=hEt(a,t)),o)c4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==ID.prototype&&(t=rEt(t)),n)a.endEmitted?c4(e,new fEt):VW(e,a,t,!0);else if(a.ended)c4(e,new lEt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?VW(e,a,t,!1):HW(e,a)):VW(e,a,t,!1)}else n||(a.reading=!1,HW(e,a))}return!a.ended&&(a.length=PMe?e=PMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zMe(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=dEt(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?GW(this):DD(this),null;if(e=zMe(e,t),e===0&&t.ended)return t.length===0&&GW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=OMe(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&&GW(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?DD(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,FMe(e)))}}function DD(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(FMe,e))}function FMe(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,jW(e)}function HW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(vEt,e,t))}function vEt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&qMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),_(),e.removeListener("error",h),IMe(e,"error")===0&&c4(e,b)}cEt(e,"error",h);function d(){e.removeListener("finish",p),_()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),_()}e.once("finish",p);function _(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function mEt(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&IMe(e,"data")&&(r.flowing=!0,jW(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?DD(this):n.reading||process.nextTick(yEt,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(BMe,this),r};hc.prototype.removeAllListeners=function(e){var t=h4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(BMe,this),t};function BMe(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 yEt(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,gEt(this,e)),e.paused=!1,this};function gEt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(_Et,e,t))}function _Et(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),jW(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 jW(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 GW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(xEt,t,e))}function xEt(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 NW===void 0&&(NW=LMe()),NW(hc,e,t)});function qMe(e,t){for(var r=0,n=e.length;r{"use strict";VMe.exports=Kg;var FD=T2().codes,bEt=FD.ERR_METHOD_NOT_IMPLEMENTED,wEt=FD.ERR_MULTIPLE_CALLBACK,AEt=FD.ERR_TRANSFORM_ALREADY_TRANSFORMING,TEt=FD.ERR_TRANSFORM_WITH_LENGTH_0,BD=S2();Zg()(Kg,BD);function SEt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new wEt);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";HMe.exports=d4;var GMe=XW();Zg()(d4,GMe);function d4(e){if(!(this instanceof d4))return new d4(e);GMe.call(this,e)}d4.prototype._transform=function(e,t,r){r(null,e)}});var KMe=Te((Rpr,YMe)=>{"use strict";var ZW;function EEt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var ZMe=T2().codes,kEt=ZMe.ERR_MISSING_ARGS,CEt=ZMe.ERR_STREAM_DESTROYED;function jMe(e){if(e)throw e}function LEt(e){return e.setHeader&&typeof e.abort=="function"}function PEt(e,t,r,n){n=EEt(n);var i=!1;e.on("close",function(){i=!0}),ZW===void 0&&(ZW=LD()),ZW(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,LEt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new CEt("pipe"))}}}function XMe(e){e()}function zEt(e,t){return e.pipe(t)}function IEt(e){return!e.length||typeof e[e.length-1]!="function"?jMe:e.pop()}function REt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return PEt(o,u,l,function(f){i||(i=f),f&&a.forEach(XMe),!u&&(a.forEach(XMe),n(i))})});return t.reduce(zEt)}YMe.exports=REt});var $Me=Te((Dpr,JMe)=>{JMe.exports=$0;var YW=Tb().EventEmitter,DEt=Zg();DEt($0,YW);$0.Readable=zW();$0.Writable=CW();$0.Duplex=S2();$0.Transform=XW();$0.PassThrough=WMe();$0.finished=LD();$0.pipeline=KMe();$0.Stream=$0;function $0(){YW.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(),YW.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 bT=Te(ec=>{var QMe=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]),QW(t)?r.showHidden=t:t&&ec._extend(r,t),P2(r.showHidden)&&(r.showHidden=!1),P2(r.depth)&&(r.depth=2),P2(r.colors)&&(r.colors=!1),P2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=BEt),UD(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 BEt(e,t){var r=j_.styles[t];return r?"\x1B["+j_.colors[r][0]+"m"+e+"\x1B["+j_.colors[r][1]+"m":e}function OEt(e,t){return e}function qEt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function UD(e,t,r){if(e.customInspect&&t&&ND(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return HD(n)||(n=UD(e,n,r)),n}var i=NEt(e,t);if(i)return i;var a=Object.keys(t),o=qEt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),v4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return KW(t);if(a.length===0){if(ND(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(VD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(v4(t))return KW(t)}var u="",l=!1,f=["{","}"];if(t5e(t)&&(l=!0,f=["[","]"]),ND(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(p4(t)&&(u=" "+RegExp.prototype.toString.call(t)),VD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),v4(t)&&(u=" "+KW(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=UEt(e,t,r,o,a):h=a.map(function(d){return $W(e,t,r,o,d,l)}),e.seen.pop(),VEt(h,u,f)}function NEt(e,t){if(P2(t))return e.stylize("undefined","undefined");if(HD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(r5e(t))return e.stylize(""+t,"number");if(QW(t))return e.stylize(""+t,"boolean");if(GD(t))return e.stylize("null","null")}function KW(e){return"["+Error.prototype.toString.call(e)+"]"}function UEt(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=` @@ -37,8 +37,8 @@ `))):s=e.stylize("[Circular]","special")),P2(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 VEt(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=pW();function t5e(e){return Array.isArray(e)}ec.isArray=t5e;function QW(e){return typeof e=="boolean"}ec.isBoolean=QW;function GD(e){return e===null}ec.isNull=GD;function GEt(e){return e==null}ec.isNullOrUndefined=GEt;function r5e(e){return typeof e=="number"}ec.isNumber=r5e;function HD(e){return typeof e=="string"}ec.isString=HD;function HEt(e){return typeof e=="symbol"}ec.isSymbol=HEt;function P2(e){return e===void 0}ec.isUndefined=P2;function d4(e){return xT(e)&&ej(e)==="[object RegExp]"}ec.isRegExp=d4;ec.types.isRegExp=d4;function xT(e){return typeof e=="object"&&e!==null}ec.isObject=xT;function VD(e){return xT(e)&&ej(e)==="[object Date]"}ec.isDate=VD;ec.types.isDate=VD;function p4(e){return xT(e)&&(ej(e)==="[object Error]"||e instanceof Error)}ec.isError=p4;ec.types.isNativeError=p4;function ND(e){return typeof e=="function"}ec.isFunction=ND;function WEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=WEt;ec.isBuffer=vW();function ej(e){return Object.prototype.toString.call(e)}function JW(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 XEt(){var e=new Date,t=[JW(e.getHours()),JW(e.getMinutes()),JW(e.getSeconds())].join(":");return[e.getDate(),jEt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",XEt(),ec.format.apply(ec,arguments))};ec.inherits=Zg();ec._extend=function(e,t){if(!t||!xT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function i5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var L2=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(L2&&t[L2]){var r=t[L2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,L2,{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 n5e(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 o4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}v4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);v4("ERR_INVALID_ARG_TYPE",function(e,t,r){wT===void 0&&(wT=m4()),wT(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(o4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(a5e(t,"type"));else{var a=s4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(a5e(t,"type"))}return i+=". Received type ".concat(X_(r)),i},TypeError);v4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";tj===void 0&&(tj=bT());var n=tj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);v4("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);v4("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);s5e.exports.codes=o5e});var y5e=Te((Opr,m5e)=>{"use strict";function l5e(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 u5e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function g4t(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="",y4="",g4="",Sp="",z2={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:"},_4t=10;function h5e(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 _4(e){return oj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x4t(e,t,r){var n="",i="",a=0,o="",s=!1,u=_4(e),l=u.split(` -`),f=_4(t).split(` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=pW();function t5e(e){return Array.isArray(e)}ec.isArray=t5e;function QW(e){return typeof e=="boolean"}ec.isBoolean=QW;function GD(e){return e===null}ec.isNull=GD;function GEt(e){return e==null}ec.isNullOrUndefined=GEt;function r5e(e){return typeof e=="number"}ec.isNumber=r5e;function HD(e){return typeof e=="string"}ec.isString=HD;function HEt(e){return typeof e=="symbol"}ec.isSymbol=HEt;function P2(e){return e===void 0}ec.isUndefined=P2;function p4(e){return xT(e)&&ej(e)==="[object RegExp]"}ec.isRegExp=p4;ec.types.isRegExp=p4;function xT(e){return typeof e=="object"&&e!==null}ec.isObject=xT;function VD(e){return xT(e)&&ej(e)==="[object Date]"}ec.isDate=VD;ec.types.isDate=VD;function v4(e){return xT(e)&&(ej(e)==="[object Error]"||e instanceof Error)}ec.isError=v4;ec.types.isNativeError=v4;function ND(e){return typeof e=="function"}ec.isFunction=ND;function WEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=WEt;ec.isBuffer=vW();function ej(e){return Object.prototype.toString.call(e)}function JW(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 XEt(){var e=new Date,t=[JW(e.getHours()),JW(e.getMinutes()),JW(e.getSeconds())].join(":");return[e.getDate(),jEt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",XEt(),ec.format.apply(ec,arguments))};ec.inherits=Zg();ec._extend=function(e,t){if(!t||!xT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function i5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var L2=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(L2&&t[L2]){var r=t[L2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,L2,{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 n5e(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 o4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s4t(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){wT===void 0&&(wT=y4()),wT(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(o4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(a5e(t,"type"));else{var a=s4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(a5e(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";tj===void 0&&(tj=bT());var n=tj.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);s5e.exports.codes=o5e});var y5e=Te((Opr,m5e)=>{"use strict";function l5e(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 u5e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function g4t(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="",z2={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:"},_4t=10;function h5e(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 oj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x4t(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"&&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<=_4t){if((Rv(e)!=="object"||e===null)&&(Rv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(z2[r],` `)+"".concat(l[0]," !== ").concat(f[0],` @@ -52,39 +52,39 @@ `)}c>3&&(o=` `.concat(Xm,"...").concat(Sp).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,T=z2[r]+` -`.concat(y4,"+ actual").concat(Sp," ").concat(g4,"- expected").concat(Sp),L=" ".concat(Xm,"...").concat(Sp," Lines skipped");for(c=0;c1&&c>2&&(x>4?(i+=` +`.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(Xm,"...").concat(Sp),s=!0):x>3&&(i+=` `.concat(f[c-2]),E++),i+=` `.concat(f[c-1]),E++),a=c,n+=` -`.concat(g4,"-").concat(Sp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(x>4?(i+=` +`.concat(_4,"-").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]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(y4,"+").concat(Sp," ").concat(l[c]),E++;else{var k=f[c],M=l[c],m=M!==k&&(!c5e(M,",")||M.slice(0,-1)!==k);m&&c5e(k,",")&&k.slice(0,-1)===M&&(m=!1,M+=","),m?(x>1&&c>2&&(x>4?(i+=` +`.concat(g4,"+").concat(Sp," ").concat(l[c]),E++;else{var k=f[c],M=l[c],m=M!==k&&(!c5e(M,",")||M.slice(0,-1)!==k);m&&c5e(k,",")&&k.slice(0,-1)===M&&(m=!1,M+=","),m?(x>1&&c>2&&(x>4?(i+=` `.concat(Xm,"...").concat(Sp),s=!0):x>3&&(i+=` `.concat(l[c-2]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(y4,"+").concat(Sp," ").concat(M),n+=` -`.concat(g4,"-").concat(Sp," ").concat(k),E+=2):(i+=n,n="",(x===1||c===0)&&(i+=` +`.concat(g4,"+").concat(Sp," ").concat(M),n+=` +`.concat(_4,"-").concat(Sp," ").concat(k),E+=2):(i+=n,n="",(x===1||c===0)&&(i+=` `.concat(M),E++))}if(E>20&&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(d.join(` `),` -`))}else{var p=_4(l),_="",b=z2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(z2[s],` +`))}else{var p=x4(l),_="",b=z2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(z2[s],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(_="".concat(_4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(_="".concat(x4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` `).concat(p,` should equal -`):_=" ".concat(s," ").concat(_)),a=r.call(this,"".concat(p).concat(_))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(nj(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(nj(a),u),a.stack,a.name="AssertionError",p5e(a)}return f4t(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return oj(this,u5e(u5e({},o),{},{customInspect:!1,depth:0}))}}]),n}(aj(Error),oj.custom);m5e.exports=b4t});var sj=Te((qpr,_5e)=>{"use strict";var g5e=Object.prototype.toString;_5e.exports=function(t){var r=g5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&g5e.call(t.callee)==="[object Function]"),n}});var k5e=Te((Npr,E5e)=>{"use strict";var M5e;Object.keys||(w4=Object.prototype.hasOwnProperty,lj=Object.prototype.toString,x5e=sj(),uj=Object.prototype.propertyIsEnumerable,b5e=!uj.call({toString:null},"toString"),w5e=uj.call(function(){},"prototype"),A4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],XD=function(e){var t=e.constructor;return t&&t.prototype===e},A5e={$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},T5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!A5e["$"+e]&&w4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{XD(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),S5e=function(e){if(typeof window=="undefined"||!T5e)return XD(e);try{return XD(e)}catch(t){return!1}},M5e=function(t){var r=t!==null&&typeof t=="object",n=lj.call(t)==="[object Function]",i=x5e(t),a=r&&lj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=w5e&&n;if(a&&t.length>0&&!w4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var w4t=Array.prototype.slice,A4t=sj(),C5e=Object.keys,ZD=C5e?function(t){return C5e(t)}:k5e(),L5e=Object.keys;ZD.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 A4t(n)?L5e(w4t.call(n)):L5e(n)})}else Object.keys=ZD;return Object.keys||ZD};P5e.exports=ZD});var B5e=Te((Vpr,F5e)=>{"use strict";var T4t=fj(),R5e=YR()(),D5e=hT(),z5e=Object,S4t=D5e("Array.prototype.push"),I5e=D5e("Object.prototype.propertyIsEnumerable"),M4t=R5e?Object.getOwnPropertySymbols:null;F5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=z5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var cj=B5e(),E4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var N5e=function(e){return e!==e};U5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||N5e(t)&&N5e(r))}});var YD=Te((Wpr,V5e)=>{"use strict";var C4t=hj();V5e.exports=function(){return typeof Object.is=="function"?Object.is:C4t}});var T4=Te((jpr,j5e)=>{"use strict";var L4t=fj(),P4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",z4t=Object.prototype.toString,I4t=Array.prototype.concat,G5e=Object.defineProperty,R4t=function(e){return typeof e=="function"&&z4t.call(e)==="[object Function]"},D4t=ZH()(),H5e=G5e&&D4t,F4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!R4t(n)||!n())return}H5e?G5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},W5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=L4t(t);P4t&&(n=I4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var B4t=YD(),O4t=T4();X5e.exports=function(){var t=B4t();return O4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var $5e=Te((Zpr,J5e)=>{"use strict";var q4t=T4(),N4t=t4(),U4t=hj(),Y5e=YD(),V4t=Z5e(),K5e=N4t(Y5e(),Object);q4t(K5e,{getPolyfill:Y5e,implementation:U4t,shim:V4t});J5e.exports=K5e});var dj=Te((Ypr,Q5e)=>{"use strict";Q5e.exports=function(t){return t!==t}});var pj=Te((Kpr,eEe)=>{"use strict";var G4t=dj();eEe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:G4t}});var rEe=Te((Jpr,tEe)=>{"use strict";var H4t=T4(),W4t=pj();tEe.exports=function(){var t=W4t();return H4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var oEe=Te(($pr,aEe)=>{"use strict";var j4t=t4(),X4t=T4(),Z4t=dj(),iEe=pj(),Y4t=rEe(),nEe=j4t(iEe(),Number);X4t(nEe,{getPolyfill:iEe,implementation:Z4t,shim:Y4t});aEe.exports=nEe});var MEe=Te((Qpr,SEe)=>{"use strict";function sEe(e,t){return Q4t(e)||$4t(e,t)||J4t(e,t)||K4t()}function K4t(){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 J4t(e,t){if(e){if(typeof e=="string")return lEe(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 lEe(e,t)}}function lEe(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 $D(e){return Object.keys(e).filter(lkt).concat(e6(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function bEe(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 EEe(e,t){for(var r=0;r{"use strict";var g5e=Object.prototype.toString;_5e.exports=function(t){var r=g5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&g5e.call(t.callee)==="[object Function]"),n}});var k5e=Te((Npr,E5e)=>{"use strict";var M5e;Object.keys||(A4=Object.prototype.hasOwnProperty,lj=Object.prototype.toString,x5e=sj(),uj=Object.prototype.propertyIsEnumerable,b5e=!uj.call({toString:null},"toString"),w5e=uj.call(function(){},"prototype"),T4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],XD=function(e){var t=e.constructor;return t&&t.prototype===e},A5e={$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},T5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!A5e["$"+e]&&A4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{XD(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),S5e=function(e){if(typeof window=="undefined"||!T5e)return XD(e);try{return XD(e)}catch(t){return!1}},M5e=function(t){var r=t!==null&&typeof t=="object",n=lj.call(t)==="[object Function]",i=x5e(t),a=r&&lj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=w5e&&n;if(a&&t.length>0&&!A4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var w4t=Array.prototype.slice,A4t=sj(),C5e=Object.keys,ZD=C5e?function(t){return C5e(t)}:k5e(),L5e=Object.keys;ZD.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 A4t(n)?L5e(w4t.call(n)):L5e(n)})}else Object.keys=ZD;return Object.keys||ZD};P5e.exports=ZD});var B5e=Te((Vpr,F5e)=>{"use strict";var T4t=fj(),R5e=YR()(),D5e=hT(),z5e=Object,S4t=D5e("Array.prototype.push"),I5e=D5e("Object.prototype.propertyIsEnumerable"),M4t=R5e?Object.getOwnPropertySymbols:null;F5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=z5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var cj=B5e(),E4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var N5e=function(e){return e!==e};U5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||N5e(t)&&N5e(r))}});var YD=Te((Wpr,V5e)=>{"use strict";var C4t=hj();V5e.exports=function(){return typeof Object.is=="function"?Object.is:C4t}});var S4=Te((jpr,j5e)=>{"use strict";var L4t=fj(),P4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",z4t=Object.prototype.toString,I4t=Array.prototype.concat,G5e=Object.defineProperty,R4t=function(e){return typeof e=="function"&&z4t.call(e)==="[object Function]"},D4t=ZH()(),H5e=G5e&&D4t,F4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!R4t(n)||!n())return}H5e?G5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},W5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=L4t(t);P4t&&(n=I4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var B4t=YD(),O4t=S4();X5e.exports=function(){var t=B4t();return O4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var $5e=Te((Zpr,J5e)=>{"use strict";var q4t=S4(),N4t=r4(),U4t=hj(),Y5e=YD(),V4t=Z5e(),K5e=N4t(Y5e(),Object);q4t(K5e,{getPolyfill:Y5e,implementation:U4t,shim:V4t});J5e.exports=K5e});var dj=Te((Ypr,Q5e)=>{"use strict";Q5e.exports=function(t){return t!==t}});var pj=Te((Kpr,eEe)=>{"use strict";var G4t=dj();eEe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:G4t}});var rEe=Te((Jpr,tEe)=>{"use strict";var H4t=S4(),W4t=pj();tEe.exports=function(){var t=W4t();return H4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var oEe=Te(($pr,aEe)=>{"use strict";var j4t=r4(),X4t=S4(),Z4t=dj(),iEe=pj(),Y4t=rEe(),nEe=j4t(iEe(),Number);X4t(nEe,{getPolyfill:iEe,implementation:Z4t,shim:Y4t});aEe.exports=nEe});var MEe=Te((Qpr,SEe)=>{"use strict";function sEe(e,t){return Q4t(e)||$4t(e,t)||J4t(e,t)||K4t()}function K4t(){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 J4t(e,t){if(e){if(typeof e=="string")return lEe(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 lEe(e,t)}}function lEe(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 $D(e){return Object.keys(e).filter(lkt).concat(e6(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function bEe(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 EEe(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 C4=1e3,L4=C4*60,P4=L4*60,z4=P4*24,Rkt=z4*365.25;WEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Dkt(e);if(r==="number"&&isNaN(e)===!1)return t.long?Bkt(e):Fkt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Dkt(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*Rkt;case"days":case"day":case"d":return r*z4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*P4;case"minutes":case"minute":case"mins":case"min":case"m":return r*L4;case"seconds":case"second":case"secs":case"sec":case"s":return r*C4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Fkt(e){return e>=z4?Math.round(e/z4)+"d":e>=P4?Math.round(e/P4)+"h":e>=L4?Math.round(e/L4)+"m":e>=C4?Math.round(e/C4)+"s":e+"ms"}function Bkt(e){return l6(e,z4,"day")||l6(e,P4,"hour")||l6(e,L4,"minute")||l6(e,C4,"second")||e+" ms"}function l6(e,t,r){if(!(e{Ic=XEe.exports=bj.debug=bj.default=bj;Ic.coerce=Vkt;Ic.disable=Nkt;Ic.enable=qkt;Ic.enabled=Ukt;Ic.humanize=jEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var xj;function Okt(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 bj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(xj||n);r.diff=i,r.prev=xj,r.curr=n,xj=n;for(var a=new Array(arguments.length),o=0;o{uv=KEe.exports=ZEe();uv.log=Wkt;uv.formatArgs=Hkt;uv.save=jkt;uv.load=YEe;uv.useColors=Gkt;uv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:Xkt();uv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function Gkt(){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 Hkt(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 Wkt(){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 YEe(){var e;try{e=uv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}uv.enable(YEe());function Xkt(){try{return window.localStorage}catch(e){}}});var a4e=Te((rvr,n4e)=>{var TT=m4(),J_=JEe()("stream-parser");n4e.exports=Ykt;var QEe=-1,u6=0,Zkt=1,e4e=2;function Ykt(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=Kkt,e._skipBytes=Jkt,t&&(e._passthrough=$kt),t?e._transform=eCt:e._write=Qkt}function I4(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=QEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function Kkt(e,t){TT(!this._parserCallback,'there is already a "callback" set!'),TT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||I4(this),J_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=u6}function Jkt(e,t){TT(!this._parserCallback,'there is already a "callback" set!'),TT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||I4(this),J_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Zkt}function $kt(e,t){TT(!this._parserCallback,'There is already a "callback" set!'),TT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||I4(this),J_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=e4e}function Qkt(e,t,r){this._parserInit||I4(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),r4e(this,e,null,r)}function eCt(e,t,r){this._parserInit||I4(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),r4e(this,e,t,r)}function t4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return $Ee(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return $Ee(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return t4e(e,t.slice(i.length),r,n)}})}}function $Ee(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===u6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===e4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===u6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==u6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=QEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(i4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var r4e=i4e(t4e);function i4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Jg=>{"use strict";var o4e=$Me().Transform,tCt=a4e();function R4(){o4e.call(this,{readableObjectMode:!0})}R4.prototype=Object.create(o4e.prototype);R4.prototype.constructor=R4;tCt(R4.prototype);Jg.ParserStream=R4;Jg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var ST=xc().readUInt16BE,Aj=xc().readUInt32BE;function D4(e,t){if(e.length<4+t)return null;var r=Aj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=ST(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}c6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(oCt(e,t),!!t.sizes.length){var r=sCt(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 h6(e,t){var r=new Error(e);return r.code=t,r}function lCt(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 h6("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 h6("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 h6("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 h6("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)})};Tj.exports.ExifParser=$g;Tj.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 u4e=Te((ovr,l4e)=>{"use strict";var uCt=xc().str2arr,fCt=xc().sliceEq,cCt=xc().readUInt32BE,p6=s4e(),hCt=d6(),dCt=uCt("ftyp");l4e.exports=function(e){if(fCt(e,4,dCt)){var t=p6.unbox(e,0);if(t){var r=p6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=p6.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=p6.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=cCt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=hCt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var h4e=Te((svr,c4e)=>{"use strict";var pCt=xc().str2arr,vCt=xc().sliceEq,f4e=xc().readUInt16LE,mCt=pCt("BM");c4e.exports=function(e){if(!(e.length<26)&&vCt(e,0,mCt))return{width:f4e(e,18),height:f4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var y4e=Te((lvr,m4e)=>{"use strict";var v4e=xc().str2arr,d4e=xc().sliceEq,p4e=xc().readUInt16LE,yCt=v4e("GIF87a"),gCt=v4e("GIF89a");m4e.exports=function(e){if(!(e.length<10)&&!(!d4e(e,0,yCt)&&!d4e(e,0,gCt)))return{width:p4e(e,6),height:p4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var x4e=Te((uvr,_4e)=>{"use strict";var Sj=xc().readUInt16LE,_Ct=0,xCt=1,g4e=16;_4e.exports=function(e){var t=Sj(e,0),r=Sj(e,2),n=Sj(e,4);if(!(t!==_Ct||r!==xCt||!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 w4e=Te((fvr,b4e)=>{"use strict";var Mj=xc().readUInt16BE,bCt=xc().str2arr,wCt=xc().sliceEq,ACt=d6(),TCt=bCt("Exif\0\0");b4e.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=Mj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&wCt(e,t,TCt)&&(i=ACt.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 E4e=Te((cvr,M4e)=>{"use strict";var S4e=xc().str2arr,A4e=xc().sliceEq,T4e=xc().readUInt32BE,SCt=S4e(`\x89PNG\r +`));var s=new K_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}th.match=function e(t,r,n){VEe(t,r,n,e,"match")};th.doesNotMatch=function e(t,r,n){VEe(t,r,n,e,"doesNotMatch")};function GEe(){for(var e=arguments.length,t=new Array(e),r=0;r{var L4=1e3,P4=L4*60,z4=P4*60,I4=z4*24,Rkt=I4*365.25;WEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Dkt(e);if(r==="number"&&isNaN(e)===!1)return t.long?Bkt(e):Fkt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Dkt(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*Rkt;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 Fkt(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 Bkt(e){return l6(e,I4,"day")||l6(e,z4,"hour")||l6(e,P4,"minute")||l6(e,L4,"second")||e+" ms"}function l6(e,t,r){if(!(e{Ic=XEe.exports=bj.debug=bj.default=bj;Ic.coerce=Vkt;Ic.disable=Nkt;Ic.enable=qkt;Ic.enabled=Ukt;Ic.humanize=jEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var xj;function Okt(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 bj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(xj||n);r.diff=i,r.prev=xj,r.curr=n,xj=n;for(var a=new Array(arguments.length),o=0;o{uv=KEe.exports=ZEe();uv.log=Wkt;uv.formatArgs=Hkt;uv.save=jkt;uv.load=YEe;uv.useColors=Gkt;uv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:Xkt();uv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function Gkt(){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 Hkt(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 Wkt(){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 YEe(){var e;try{e=uv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}uv.enable(YEe());function Xkt(){try{return window.localStorage}catch(e){}}});var a4e=Te((rvr,n4e)=>{var TT=y4(),J_=JEe()("stream-parser");n4e.exports=Ykt;var QEe=-1,u6=0,Zkt=1,e4e=2;function Ykt(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=Kkt,e._skipBytes=Jkt,t&&(e._passthrough=$kt),t?e._transform=eCt:e._write=Qkt}function R4(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=QEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function Kkt(e,t){TT(!this._parserCallback,'there is already a "callback" set!'),TT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||R4(this),J_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=u6}function Jkt(e,t){TT(!this._parserCallback,'there is already a "callback" set!'),TT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||R4(this),J_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Zkt}function $kt(e,t){TT(!this._parserCallback,'There is already a "callback" set!'),TT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||R4(this),J_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=e4e}function Qkt(e,t,r){this._parserInit||R4(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),r4e(this,e,null,r)}function eCt(e,t,r){this._parserInit||R4(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),r4e(this,e,t,r)}function t4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return $Ee(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return $Ee(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return t4e(e,t.slice(i.length),r,n)}})}}function $Ee(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===u6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===e4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===u6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==u6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=QEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(i4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var r4e=i4e(t4e);function i4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Jg=>{"use strict";var o4e=$Me().Transform,tCt=a4e();function D4(){o4e.call(this,{readableObjectMode:!0})}D4.prototype=Object.create(o4e.prototype);D4.prototype.constructor=D4;tCt(D4.prototype);Jg.ParserStream=D4;Jg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var ST=xc().readUInt16BE,Aj=xc().readUInt32BE;function F4(e,t){if(e.length<4+t)return null;var r=Aj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=ST(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}c6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(oCt(e,t),!!t.sizes.length){var r=sCt(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 h6(e,t){var r=new Error(e);return r.code=t,r}function lCt(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 h6("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 h6("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 h6("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 h6("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)})};Tj.exports.ExifParser=$g;Tj.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 u4e=Te((ovr,l4e)=>{"use strict";var uCt=xc().str2arr,fCt=xc().sliceEq,cCt=xc().readUInt32BE,p6=s4e(),hCt=d6(),dCt=uCt("ftyp");l4e.exports=function(e){if(fCt(e,4,dCt)){var t=p6.unbox(e,0);if(t){var r=p6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=p6.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=p6.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=cCt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=hCt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var h4e=Te((svr,c4e)=>{"use strict";var pCt=xc().str2arr,vCt=xc().sliceEq,f4e=xc().readUInt16LE,mCt=pCt("BM");c4e.exports=function(e){if(!(e.length<26)&&vCt(e,0,mCt))return{width:f4e(e,18),height:f4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var y4e=Te((lvr,m4e)=>{"use strict";var v4e=xc().str2arr,d4e=xc().sliceEq,p4e=xc().readUInt16LE,yCt=v4e("GIF87a"),gCt=v4e("GIF89a");m4e.exports=function(e){if(!(e.length<10)&&!(!d4e(e,0,yCt)&&!d4e(e,0,gCt)))return{width:p4e(e,6),height:p4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var x4e=Te((uvr,_4e)=>{"use strict";var Sj=xc().readUInt16LE,_Ct=0,xCt=1,g4e=16;_4e.exports=function(e){var t=Sj(e,0),r=Sj(e,2),n=Sj(e,4);if(!(t!==_Ct||r!==xCt||!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 w4e=Te((fvr,b4e)=>{"use strict";var Mj=xc().readUInt16BE,bCt=xc().str2arr,wCt=xc().sliceEq,ACt=d6(),TCt=bCt("Exif\0\0");b4e.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=Mj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&wCt(e,t,TCt)&&(i=ACt.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 E4e=Te((cvr,M4e)=>{"use strict";var S4e=xc().str2arr,A4e=xc().sliceEq,T4e=xc().readUInt32BE,SCt=S4e(`\x89PNG\r  -`),MCt=S4e("IHDR");M4e.exports=function(e){if(!(e.length<24)&&A4e(e,0,SCt)&&A4e(e,12,MCt))return{width:T4e(e,16),height:T4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var L4e=Te((hvr,C4e)=>{"use strict";var ECt=xc().str2arr,kCt=xc().sliceEq,k4e=xc().readUInt32BE,CCt=ECt("8BPS\0");C4e.exports=function(e){if(!(e.length<22)&&kCt(e,0,CCt))return{width:k4e(e,18),height:k4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var I4e=Te((dvr,z4e)=>{"use strict";function LCt(e){return e===32||e===9||e===13||e===10}function MT(e){return typeof e=="number"&&isFinite(e)&&e>0}function PCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,ICt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,RCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,DCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,FCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,P4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function BCt(e){var t=e.match(RCt),r=e.match(DCt),n=e.match(FCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Xy(e){return P4e.test(e)?e.match(P4e)[0]:"px"}z4e.exports=function(e){if(PCt(e)){for(var t="",r=0;r{"use strict";var F4e=xc().str2arr,R4e=xc().sliceEq,OCt=xc().readUInt16LE,qCt=xc().readUInt16BE,NCt=xc().readUInt32LE,UCt=xc().readUInt32BE,VCt=F4e("II*\0"),GCt=F4e("MM\0*");function v6(e,t,r){return r?qCt(e,t):OCt(e,t)}function Ej(e,t,r){return r?UCt(e,t):NCt(e,t)}function D4e(e,t,r){var n=v6(e,t+2,r),i=Ej(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?v6(e,t+8,r):Ej(e,t+8,r)}B4e.exports=function(e){if(!(e.length<8)&&!(!R4e(e,0,VCt)&&!R4e(e,0,GCt))){var t=e[0]===77,r=Ej(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=v6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var U4e=xc().str2arr,q4e=xc().sliceEq,N4e=xc().readUInt16LE,kj=xc().readUInt32LE,HCt=d6(),WCt=U4e("RIFF"),jCt=U4e("WEBP");function XCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:N4e(e,t+6)&16383,height:N4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function ZCt(e,t){if(e[t]===47){var r=kj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function YCt(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||XCt(e,t+8):a==="VP8L"&&o>=9?r=r||ZCt(e,t+8):a==="VP8X"&&o>=10?r=r||YCt(e,t+8):a==="EXIF"&&(n=HCt.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 W4e=Te((mvr,H4e)=>{"use strict";H4e.exports={avif:u4e(),bmp:h4e(),gif:y4e(),ico:x4e(),jpeg:w4e(),png:E4e(),psd:L4e(),svg:I4e(),tiff:O4e(),webp:G4e()}});var j4e=Te((yvr,Lj)=>{"use strict";var Cj=W4e();function KCt(e){for(var t=Object.keys(Cj),r=0;r{"use strict";var JCt=j4e(),$Ct=Bg().IMAGE_URL_PREFIX,QCt=_2().Buffer;X4e.getImageSize=function(e){var t=e.replace($Ct,""),r=new QCt(t,"base64");return JCt(r)}});var J4e=Te((_vr,K4e)=>{"use strict";var Y4e=ei(),eLt=QA(),tLt=ku(),m6=wu(),rLt=ei().maxRowLength,iLt=Z4e().getImageSize;K4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=rLt(r.z);else if(r._hasSource){var a=iLt(r.source);n=a.height,i=a.width}var o=m6.getFromId(t,r.xaxis||"x"),s=m6.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 sLt=Jl(),I2=ei(),$4e=I2.strTranslate,lLt=jv(),uLt=QA(),fLt=mG(),cLt=mR().STYLE;Q4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&fLt();I2.makeTraceGroups(i,n,"im").each(function(u){var l=sLt.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,_=f.y0,b=f.w,v=f.h,C=c.dx,E=c.dy,T,L,x,k,M,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*C),m--;for(m=0;k===void 0&&m0;)M=o.c2p(_+m*E),m--;if(LH[0];if(re||ae){var ge=T+A/2,ze=k+F/2;W+="transform:"+$4e(ge+"px",ze+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+$4e(-ge+"px",-ze+"px")+";"}}j.attr("style",W);var Le=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 ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},de()},Ee.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(Se,Ge){var De=d[Ge][Se];return I2.isTypedArray(De)&&(De=Array.from(De)),De}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Se,Ge){var De=4*(Ge*b+Se);return[Ee[De],Ee[De+1],Ee[De+2],Ee[De+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:F,width:A,x:T,y:k})});t._promises.push(Le)})}});var rke=Te((bvr,tke)=>{"use strict";var hLt=Jl();tke.exports=function(t){hLt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var oke=Te((wvr,ake)=>{"use strict";var ike=Xc(),nke=ei(),y6=nke.isArrayOrTypedArray,dLt=QA();ake.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(ike.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||ike.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=dLt.colormodel[a.colormodel],_=p.colormodel||a.colormodel,b=_.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=_.toUpperCase()+": "+E);var T;y6(a.hovertext)&&y6(a.hovertext[l])?T=a.hovertext[l][u]:y6(a.text)&&y6(a.text[l])&&(T=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,M="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[nke.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:M,text:T,hovertemplateLabels:{zLabel:M,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 lke=Te((Avr,ske)=>{"use strict";ske.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 fke=Te((Tvr,uke)=>{"use strict";uke.exports={attributes:MH(),supplyDefaults:oAe(),calc:J4e(),plot:eke(),style:rke(),hoverPoints:oke(),eventData:lke(),moduleType:"trace",name:"image",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var hke=Te((Svr,cke)=>{"use strict";cke.exports=fke()});var D2=Te((Mvr,pke)=>{"use strict";var Pj=Gf(),pLt=zc().attributes,vLt=gc(),mLt=Oh(),{hovertemplateAttrs:yLt,texttemplateAttrs:gLt,templatefallbackAttrs:dke}=Ff(),R2=Su().extendFlat,_Lt=Id().pattern,g6=vLt({editType:"plot",arrayOk:!0,colorEditType:"plot"});pke.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:mLt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:_Lt,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:R2({},Pj.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:yLt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:dke(),texttemplate:gLt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:dke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:R2({},g6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:R2({},g6,{}),outsidetextfont:R2({},g6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:R2({},Pj.showlegend,{arrayOk:!0}),legend:R2({},Pj.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:R2({},g6,{}),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 F2=Te((Evr,yke)=>{"use strict";var xLt=ku(),F4=ei(),bLt=D2(),wLt=zc().defaults,ALt=i0().handleText,TLt=ei().coercePattern;function vke(e,t){var r=F4.isArrayOrTypedArray(e),n=F4.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 mke(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");TLt(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 SLt(e,t,r,n){function i(C,E){return F4.coerce(e,t,bLt,C,E)}var a=i("labels"),o=i("values"),s=vke(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,mke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate");i("texttemplatefallback");var c;if(f||(c=i("textinfo",F4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),f||c&&c!=="none"){var h=i("textposition");ALt(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");wLt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var v=i("title.position",_?"middle center":"top center");!_&&v==="middle center"&&(t.title.position="top center"),F4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}yke.exports={handleLabelsAndValues:vke,handleMarkerDefaults:mke,supplyDefaults:SLt}});var _6=Te((kvr,gke)=>{"use strict";gke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var xke=Te((Cvr,_ke)=>{"use strict";var MLt=ei(),ELt=_6();_ke.exports=function(t,r){function n(i,a){return MLt.coerce(t,r,ELt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var ET=Te((Lvr,Ake)=>{"use strict";var kLt=ku(),zj=hd(),CLt=jl(),LLt={};function PLt(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 T=t.type==="funnelarea"?_:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=p),r}function bke(e){return function(r,n){return!r||(r=zj(r),!r.isValid())?!1:(r=CLt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function zLt(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=wke(a,LLt));for(var s=0,u=0;u{"use strict";var ILt=iv().appendArrayMultiPointValues;Tke.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]),ILt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var A6=Te((zvr,jke)=>{"use strict";var Dv=Jl(),RLt=Cc(),x6=Xc(),Pke=jl(),Qg=Mu(),np=ei(),DLt=np.strScale,Mke=np.strTranslate,Ij=Wf(),zke=Ap(),FLt=zke.recordMinTextSize,BLt=zke.clearMinTextSize,Ike=T_().TEXTPAD,Zu=m_(),b6=Ske(),Eke=ei().isValidTextValue;function OLt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;BLt("pie",n),Fke(t,e),Gke(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dv.select(this),u=o[0],l=u.trace;XLt(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(T,L){if(T.hidden){Dv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var x=u.cx,k=u.cy,M=Dv.select(this),m=M.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(Rke,e,o),l.pull){var P=+Zu.castOption(l.pull,T.pts)||0;P>0&&(x+=P*T.pxmid[0],k+=P*T.pxmid[1])}T.cxFinal=x,T.cyFinal=k;function A(N,H,re,ae){var ge=ae*(H[0]-N[0]),ze=ae*(H[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+ge+","+ze}var F=l.hole;if(T.v===u.vTotal){var B="M"+(x+T.px0[0])+","+(k+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";F?m.attr("d","M"+(x+F*T.px0[0])+","+(k+F*T.px0[1])+A(T.px0,T.pxmid,!1,F)+A(T.pxmid,T.px0,!1,F)+"Z"+B):m.attr("d",B)}else{var U=A(T.px0,T.px1,!0,1);if(F){var G=1-F;m.attr("d","M"+(x+F*T.px1[0])+","+(k+F*T.px1[1])+A(T.px1,T.px0,!1,F)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+x+","+k+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Hke(e,T,u);var j=Zu.castOption(l.textposition,T.pts),W=M.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);W.enter().append("g").classed("slicetext",!0),W.exit().remove(),W.each(function(){var N=np.ensureSingle(Dv.select(this),"text","",function(te){te.attr("data-notex",1)}),H=np.ensureUniformFontSize(e,j==="outside"?NLt(l,T,n.font):Dke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qg.font,H).call(Ij.convertToTspans,e);var re=Qg.bBox(N.node()),ae;if(j==="outside")ae=Lke(re,T);else if(ae=Bke(re,T,u),j==="auto"&&ae.scale<1){var ge=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(Qg.font,ge),re=Qg.bBox(N.node()),ae=Lke(re,T)}var ze=ae.textPosAngle,Le=ze===void 0?T.pxmid:w6(u.r,ze);if(ae.targetX=x+Le[0]*ae.rCenter+(ae.x||0),ae.targetY=k+Le[1]*ae.rCenter+(ae.y||0),Wke(ae,re),ae.outside){var de=ae.targetY;T.yLabelMin=de-re.height/2,T.yLabelMid=de,T.yLabelMax=de+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=H.size,FLt(l.type,ae,n),o[L].transform=ae,np.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 T=np.ensureSingle(Dv.select(this),"text","",function(k){k.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qg.font,l.title.font).call(Ij.convertToTspans,e);var x;l.title.position==="middle center"?x=GLt(u):x=Uke(u,i),T.attr("transform",Mke(x.x,x.y)+DLt(Math.min(1,x.scale))+Mke(x.tx,x.ty))}),h&&WLt(c,l),qLt(f,l),h&&l.automargin){var p=Qg.bBox(s.node()),_=l.domain,b=i.w*(_.x[1]-_.x[0]),v=i.h*(_.y[1]-_.y[0]),C=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;RLt.autoMargin(e,"pie."+l.uid+".automargin",{xl:_.x[0]-C,xr:_.x[1]+C,yb:_.y[0]-E,yt:_.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 qLt(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,np.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;np.ensureSingle(n,"path","textline").call(Pke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function Rke(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=x6.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),_=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;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Zu.formatPieValue(u.v,_),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Zu.formatPiePercent(u.percent,_),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var C=f.hoverlabel,E=C.font,T=[];x6.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:[b6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[b6(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:[b6(c,f)],event:Dv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(x6.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=[b6(u,f)],x6.click(t,Dv.event))})}function NLt(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 Dke(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||Pke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Fke(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;_.push(b)}(p||d)&&(b=kke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(p||h)&&(b=Cke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var T=0,L=0,x=0;x<_.length;x++){var k=_[x].scale;if(L=1)break}return _[T]}function ULt(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 GLt(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 Uke(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=Vke(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=HLt(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 HLt(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 Vke(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function WLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function _(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-x,P,A,F,B,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Zu.castOption(t.pull,F.pts)||0))&&((E.pxmid[1]-F.pxmid[1])*u>0?(B=F.cyFinal+o(F.px0[1],F.px1[1]),m=B-x-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(k+E.labelExtraY-M)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=F.cxFinal+a(F.px0[0],F.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?_: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=VLt(l,t))}function w6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Hke(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(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var _=Zu.getFirstFilled(i.text,t.pts);Eke(_)&&p.push(_)}c&&p.push(Zu.formatPieValue(t.v,d)),h&&p.push(Zu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Zu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Zu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var C=b(t),E=Zu.getFirstFilled(i.text,t.pts);(Eke(E)||E==="")&&(C.text=E),t.text=np.texttemplateString({data:[C,i._meta],fallback:i.texttemplatefallback,labels:C,locale:e._fullLayout._d3locale,template:v})}}}function Wke(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}jke.exports={plot:OLt,formatSliceLabel:Hke,transformInsideText:Bke,determineInsideTextFont:Dke,positionTitleOutside:Uke,prerenderTitles:Fke,layoutAreas:Gke,attachFxHandlers:Rke,computeTransform:Wke}});var Yke=Te((Ivr,Zke)=>{"use strict";var Xke=Jl(),ZLt=X3(),YLt=Ap().resizeText;Zke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");YLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Xke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Xke.select(this).call(ZLt,s,a,t)})})}});var Jke=Te(kT=>{"use strict";var Kke=Cc();kT.name="pie";kT.plot=function(e,t,r,n){Kke.plotBasePlot(kT.name,e,t,r,n)};kT.clean=function(e,t,r,n){Kke.cleanBasePlot(kT.name,e,t,r,n)}});var Qke=Te((Dvr,$ke)=>{"use strict";$ke.exports={attributes:D2(),supplyDefaults:F2().supplyDefaults,supplyLayoutDefaults:xke(),layoutAttributes:_6(),calc:ET().calc,crossTraceCalc:ET().crossTraceCalc,plot:A6().plot,style:Yke(),styleOne:X3(),moduleType:"trace",name:"pie",basePlotModule:Jke(),categories:["pie-like","pie","showLegend"],meta:{}}});var tCe=Te((Fvr,eCe)=>{"use strict";eCe.exports=Qke()});var iCe=Te(CT=>{"use strict";var rCe=Cc();CT.name="sunburst";CT.plot=function(e,t,r,n){rCe.plotBasePlot(CT.name,e,t,r,n)};CT.clean=function(e,t,r,n){rCe.cleanBasePlot(CT.name,e,t,r,n)}});var Dj=Te((Ovr,nCe)=>{"use strict";nCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var O4=Te((qvr,sCe)=>{"use strict";var KLt=Gf(),{hovertemplateAttrs:JLt,texttemplateAttrs:$Lt,templatefallbackAttrs:aCe}=Ff(),QLt=nc(),ePt=zc().attributes,e1=D2(),oCe=Dj(),B4=Su().extendFlat,tPt=Id().pattern;sCe.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:tPt,editType:"calc"},QLt("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:$Lt({editType:"plot"},{keys:oCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:aCe({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:B4({},KLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:JLt({},{keys:oCe.eventDataKeys}),hovertemplatefallback:aCe(),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:ePt({name:"sunburst",trace:!0,editType:"calc"})}});var Fj=Te((Nvr,lCe)=>{"use strict";lCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var hCe=Te((Uvr,cCe)=>{"use strict";var uCe=ei(),rPt=O4(),iPt=zc().defaults,nPt=i0().handleText,aPt=F2().handleMarkerDefaults,fCe=_c(),oPt=fCe.hasColorscale,sPt=fCe.handleDefaults;cCe.exports=function(t,r,n,i){function a(h,d){return uCe.coerce(t,r,rPt,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"),aPt(t,r,i,a);var l=r._hasColorscale=oPt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&sPt(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",uCe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";nPt(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"),iPt(r,i,a),r._length=null}});var pCe=Te((Vvr,dCe)=>{"use strict";var lPt=ei(),uPt=Fj();dCe.exports=function(t,r){function n(i,a){return lPt.coerce(t,r,uPt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var q4=Te((T6,vCe)=>{(function(e,t){typeof T6=="object"&&typeof vCe!="undefined"?t(T6):(e=e||self,t(e.d3=e.d3||{}))})(T6,function(e){"use strict";function t(Ie,Fe){return Ie.parent===Fe.parent?1:2}function r(Ie){return Ie.reduce(n,0)/Ie.length}function n(Ie,Fe){return Ie+Fe.x}function i(Ie){return 1+Ie.reduce(a,0)}function a(Ie,Fe){return Math.max(Ie,Fe.y)}function o(Ie){for(var Fe;Fe=Ie.children;)Ie=Fe[0];return Ie}function s(Ie){for(var Fe;Fe=Ie.children;)Ie=Fe[Fe.length-1];return Ie}function u(){var Ie=t,Fe=1,ft=1,ye=!1;function fe(pe){var dt,Pt=0;pe.eachAfter(function(Er){var Rr=Er.children;Rr?(Er.x=r(Rr),Er.y=i(Rr)):(Er.x=dt?Pt+=Ie(Er,dt):0,Er.y=0,dt=Er)});var zt=o(pe),rr=s(pe),Gr=zt.x-Ie(zt,rr)/2,Br=rr.x+Ie(rr,zt)/2;return pe.eachAfter(ye?function(Er){Er.x=(Er.x-pe.x)*Fe,Er.y=(pe.y-Er.y)*ft}:function(Er){Er.x=(Er.x-Gr)/(Br-Gr)*Fe,Er.y=(1-(pe.y?Er.y/pe.y:1))*ft})}return fe.separation=function(pe){return arguments.length?(Ie=pe,fe):Ie},fe.size=function(pe){return arguments.length?(ye=!1,Fe=+pe[0],ft=+pe[1],fe):ye?null:[Fe,ft]},fe.nodeSize=function(pe){return arguments.length?(ye=!0,Fe=+pe[0],ft=+pe[1],fe):ye?[Fe,ft]:null},fe}function l(Ie){var Fe=0,ft=Ie.children,ye=ft&&ft.length;if(!ye)Fe=1;else for(;--ye>=0;)Fe+=ft[ye].value;Ie.value=Fe}function f(){return this.eachAfter(l)}function c(Ie){var Fe=this,ft,ye=[Fe],fe,pe,dt;do for(ft=ye.reverse(),ye=[];Fe=ft.pop();)if(Ie(Fe),fe=Fe.children,fe)for(pe=0,dt=fe.length;pe=0;--fe)ft.push(ye[fe]);return this}function d(Ie){for(var Fe=this,ft=[Fe],ye=[],fe,pe,dt;Fe=ft.pop();)if(ye.push(Fe),fe=Fe.children,fe)for(pe=0,dt=fe.length;pe=0;)ft+=ye[fe].value;Fe.value=ft})}function _(Ie){return this.eachBefore(function(Fe){Fe.children&&Fe.children.sort(Ie)})}function b(Ie){for(var Fe=this,ft=v(Fe,Ie),ye=[Fe];Fe!==ft;)Fe=Fe.parent,ye.push(Fe);for(var fe=ye.length;Ie!==ft;)ye.splice(fe,0,Ie),Ie=Ie.parent;return ye}function v(Ie,Fe){if(Ie===Fe)return Ie;var ft=Ie.ancestors(),ye=Fe.ancestors(),fe=null;for(Ie=ft.pop(),Fe=ye.pop();Ie===Fe;)fe=Ie,Ie=ft.pop(),Fe=ye.pop();return fe}function C(){for(var Ie=this,Fe=[Ie];Ie=Ie.parent;)Fe.push(Ie);return Fe}function E(){var Ie=[];return this.each(function(Fe){Ie.push(Fe)}),Ie}function T(){var Ie=[];return this.eachBefore(function(Fe){Fe.children||Ie.push(Fe)}),Ie}function L(){var Ie=this,Fe=[];return Ie.each(function(ft){ft!==Ie&&Fe.push({source:ft.parent,target:ft})}),Fe}function x(Ie,Fe){var ft=new A(Ie),ye=+Ie.value&&(ft.value=Ie.value),fe,pe=[ft],dt,Pt,zt,rr;for(Fe==null&&(Fe=M);fe=pe.pop();)if(ye&&(fe.value=+fe.data.value),(Pt=Fe(fe.data))&&(rr=Pt.length))for(fe.children=new Array(rr),zt=rr-1;zt>=0;--zt)pe.push(dt=fe.children[zt]=new A(Pt[zt])),dt.parent=fe,dt.depth=fe.depth+1;return ft.eachBefore(P)}function k(){return x(this).eachBefore(m)}function M(Ie){return Ie.children}function m(Ie){Ie.data=Ie.data.data}function P(Ie){var Fe=0;do Ie.height=Fe;while((Ie=Ie.parent)&&Ie.height<++Fe)}function A(Ie){this.data=Ie,this.depth=this.height=0,this.parent=null}A.prototype=x.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:_,path:b,ancestors:C,descendants:E,leaves:T,links:L,copy:k};var F=Array.prototype.slice;function B(Ie){for(var Fe=Ie.length,ft,ye;Fe;)ye=Math.random()*Fe--|0,ft=Ie[Fe],Ie[Fe]=Ie[ye],Ie[ye]=ft;return Ie}function U(Ie){for(var Fe=0,ft=(Ie=B(F.call(Ie))).length,ye=[],fe,pe;Fe0&&ft*ft>ye*ye+fe*fe}function N(Ie,Fe){for(var ft=0;ftzt?(fe=(rr+zt-pe)/(2*rr),Pt=Math.sqrt(Math.max(0,zt/rr-fe*fe)),ft.x=Ie.x-fe*ye-Pt*dt,ft.y=Ie.y-fe*dt+Pt*ye):(fe=(rr+pe-zt)/(2*rr),Pt=Math.sqrt(Math.max(0,pe/rr-fe*fe)),ft.x=Fe.x+fe*ye-Pt*dt,ft.y=Fe.y+fe*dt+Pt*ye)):(ft.x=Fe.x+ft.r,ft.y=Fe.y)}function Le(Ie,Fe){var ft=Ie.r+Fe.r-1e-6,ye=Fe.x-Ie.x,fe=Fe.y-Ie.y;return ft>0&&ft*ft>ye*ye+fe*fe}function de(Ie){var Fe=Ie._,ft=Ie.next._,ye=Fe.r+ft.r,fe=(Fe.x*ft.r+ft.x*Fe.r)/ye,pe=(Fe.y*ft.r+ft.y*Fe.r)/ye;return fe*fe+pe*pe}function te(Ie){this._=Ie,this.next=null,this.previous=null}function ke(Ie){if(!(fe=Ie.length))return 0;var Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br;if(Fe=Ie[0],Fe.x=0,Fe.y=0,!(fe>1))return Fe.r;if(ft=Ie[1],Fe.x=-ft.r,ft.x=Fe.r,ft.y=0,!(fe>2))return Fe.r+ft.r;ze(ft,Fe,ye=Ie[2]),Fe=new te(Fe),ft=new te(ft),ye=new te(ye),Fe.next=ye.previous=ft,ft.next=Fe.previous=ye,ye.next=ft.previous=Fe;e:for(Pt=3;Pt0)throw new Error("cycle");return Pt}return ft.id=function(ye){return arguments.length?(Ie=Ge(ye),ft):Ie},ft.parentId=function(ye){return arguments.length?(Fe=Ge(ye),ft):Fe},ft}function Ae(Ie,Fe){return Ie.parent===Fe.parent?1:2}function ot(Ie){var Fe=Ie.children;return Fe?Fe[0]:Ie.t}function At(Ie){var Fe=Ie.children;return Fe?Fe[Fe.length-1]:Ie.t}function vt(Ie,Fe,ft){var ye=ft/(Fe.i-Ie.i);Fe.c-=ye,Fe.s+=ft,Ie.c+=ye,Fe.z+=ft,Fe.m+=ft}function Je(Ie){for(var Fe=0,ft=0,ye=Ie.children,fe=ye.length,pe;--fe>=0;)pe=ye[fe],pe.z+=Fe,pe.m+=Fe,Fe+=pe.s+(ft+=pe.c)}function He(Ie,Fe,ft){return Ie.a.parent===Fe.parent?Ie.a:ft}function nt(Ie,Fe){this._=Ie,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=Fe}nt.prototype=Object.create(A.prototype);function tt(Ie){for(var Fe=new nt(Ie,0),ft,ye=[Fe],fe,pe,dt,Pt;ft=ye.pop();)if(pe=ft._.children)for(ft.children=new Array(Pt=pe.length),dt=Pt-1;dt>=0;--dt)ye.push(fe=ft.children[dt]=new nt(pe[dt],dt)),fe.parent=ft;return(Fe.parent=new nt(null,0)).children=[Fe],Fe}function It(){var Ie=Ae,Fe=1,ft=1,ye=null;function fe(rr){var Gr=tt(rr);if(Gr.eachAfter(pe),Gr.parent.m=-Gr.z,Gr.eachBefore(dt),ye)rr.eachBefore(zt);else{var Br=rr,Er=rr,Rr=rr;rr.eachBefore(function(Qi){Qi.xEr.x&&(Er=Qi),Qi.depth>Rr.depth&&(Rr=Qi)});var pi=Br===Er?1:Ie(Br,Er)/2,Di=pi-Br.x,ni=Fe/(Er.x+pi+Di),$i=ft/(Rr.depth||1);rr.eachBefore(function(Qi){Qi.x=(Qi.x+Di)*ni,Qi.y=Qi.depth*$i})}return rr}function pe(rr){var Gr=rr.children,Br=rr.parent.children,Er=rr.i?Br[rr.i-1]:null;if(Gr){Je(rr);var Rr=(Gr[0].z+Gr[Gr.length-1].z)/2;Er?(rr.z=Er.z+Ie(rr._,Er._),rr.m=rr.z-Rr):rr.z=Rr}else Er&&(rr.z=Er.z+Ie(rr._,Er._));rr.parent.A=Pt(rr,Er,rr.parent.A||Br[0])}function dt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function Pt(rr,Gr,Br){if(Gr){for(var Er=rr,Rr=rr,pi=Gr,Di=Er.parent.children[0],ni=Er.m,$i=Rr.m,Qi=pi.m,si=Di.m,Ti;pi=At(pi),Er=ot(Er),pi&&Er;)Di=ot(Di),Rr=At(Rr),Rr.a=rr,Ti=pi.z+Qi-Er.z-ni+Ie(pi._,Er._),Ti>0&&(vt(He(pi,rr,Br),rr,Ti),ni+=Ti,$i+=Ti),Qi+=pi.m,ni+=Er.m,si+=Di.m,$i+=Rr.m;pi&&!At(Rr)&&(Rr.t=pi,Rr.m+=Qi-$i),Er&&!ot(Di)&&(Di.t=Er,Di.m+=ni-si,Br=rr)}return Br}function zt(rr){rr.x*=Fe,rr.y=rr.depth*ft}return fe.separation=function(rr){return arguments.length?(Ie=rr,fe):Ie},fe.size=function(rr){return arguments.length?(ye=!1,Fe=+rr[0],ft=+rr[1],fe):ye?null:[Fe,ft]},fe.nodeSize=function(rr){return arguments.length?(ye=!0,Fe=+rr[0],ft=+rr[1],fe):ye?[Fe,ft]:null},fe}function Yt(Ie,Fe,ft,ye,fe){for(var pe=Ie.children,dt,Pt=-1,zt=pe.length,rr=Ie.value&&(fe-ft)/Ie.value;++PtQi&&(Qi=rr),Rt=ni*ni*Ni,si=Math.max(Qi/Rt,Rt/$i),si>Ti){ni-=rr;break}Ti=si}dt.push(zt={value:ni,dice:Rr1?ye:1)},ft}(cr);function Ut(){var Ie=yr,Fe=!1,ft=1,ye=1,fe=[0],pe=De,dt=De,Pt=De,zt=De,rr=De;function Gr(Er){return Er.x0=Er.y0=0,Er.x1=ft,Er.y1=ye,Er.eachBefore(Br),fe=[0],Fe&&Er.eachBefore(qt),Er}function Br(Er){var Rr=fe[Er.depth],pi=Er.x0+Rr,Di=Er.y0+Rr,ni=Er.x1-Rr,$i=Er.y1-Rr;ni=Er-1){var Qi=pe[Br];Qi.x0=pi,Qi.y0=Di,Qi.x1=ni,Qi.y1=$i;return}for(var si=rr[Br],Ti=Rr/2+si,Ni=Br+1,Rt=Er-1;Ni>>1;rr[yt]$i-Di){var xr=(pi*Wt+ni*Gt)/Rr;Gr(Br,Ni,Gt,pi,Di,xr,$i),Gr(Ni,Er,Wt,xr,Di,ni,$i)}else{var Lr=(Di*Wt+$i*Gt)/Rr;Gr(Br,Ni,Gt,pi,Di,ni,Lr),Gr(Ni,Er,Wt,pi,Lr,ni,$i)}}}function be(Ie,Fe,ft,ye,fe){(Ie.depth&1?Yt:at)(Ie,Fe,ft,ye,fe)}var Oe=function Ie(Fe){function ft(ye,fe,pe,dt,Pt){if((zt=ye._squarify)&&zt.ratio===Fe)for(var zt,rr,Gr,Br,Er=-1,Rr,pi=zt.length,Di=ye.value;++Er1?ye:1)},ft}(cr);e.cluster=u,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ke,e.stratify=Et,e.tree=It,e.treemap=Ut,e.treemapBinary=Re,e.treemapDice=at,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=be,e.treemapSquarify=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var U4=Te(N4=>{"use strict";var mCe=q4(),fPt=ku(),LT=ei(),cPt=_c().makeColorScaleFuncFromTrace,hPt=ET().makePullColorFn,dPt=ET().generateExtendedColors,pPt=_c().calc,vPt=rf().ALMOST_EQUAL,mPt={},yPt={},gPt={};N4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=LT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=LT.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||fPt(s[W])&&s[W]>=0},_,b,v;i?(_=Math.min(n.length,o.length),b=function(W){return d(n[W])&&p(W)},v=function(W){return String(n[W])}):(_=Math.min(a.length,o.length),b=function(W){return d(a[W])&&p(W)},v=function(W){return String(a[W])}),u&&(_=Math.min(_,s.length));for(var C=0;C<_;C++)if(b(C)){var E=v(C),T=d(o[C])?String(o[C]):"",L={i:C,id:E,pid:T,label:d(a[C])?String(a[C]):""};u&&(L.v=+s[C]),l.push(L),h(T,E)}if(f[""]){if(f[""].length>1){for(var M=LT.randstr(),m=0;m{"use strict";var ECt=xc().str2arr,kCt=xc().sliceEq,k4e=xc().readUInt32BE,CCt=ECt("8BPS\0");C4e.exports=function(e){if(!(e.length<22)&&kCt(e,0,CCt))return{width:k4e(e,18),height:k4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var I4e=Te((dvr,z4e)=>{"use strict";function LCt(e){return e===32||e===9||e===13||e===10}function MT(e){return typeof e=="number"&&isFinite(e)&&e>0}function PCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,ICt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,RCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,DCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,FCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,P4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function BCt(e){var t=e.match(RCt),r=e.match(DCt),n=e.match(FCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Xy(e){return P4e.test(e)?e.match(P4e)[0]:"px"}z4e.exports=function(e){if(PCt(e)){for(var t="",r=0;r{"use strict";var F4e=xc().str2arr,R4e=xc().sliceEq,OCt=xc().readUInt16LE,qCt=xc().readUInt16BE,NCt=xc().readUInt32LE,UCt=xc().readUInt32BE,VCt=F4e("II*\0"),GCt=F4e("MM\0*");function v6(e,t,r){return r?qCt(e,t):OCt(e,t)}function Ej(e,t,r){return r?UCt(e,t):NCt(e,t)}function D4e(e,t,r){var n=v6(e,t+2,r),i=Ej(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?v6(e,t+8,r):Ej(e,t+8,r)}B4e.exports=function(e){if(!(e.length<8)&&!(!R4e(e,0,VCt)&&!R4e(e,0,GCt))){var t=e[0]===77,r=Ej(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=v6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var U4e=xc().str2arr,q4e=xc().sliceEq,N4e=xc().readUInt16LE,kj=xc().readUInt32LE,HCt=d6(),WCt=U4e("RIFF"),jCt=U4e("WEBP");function XCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:N4e(e,t+6)&16383,height:N4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function ZCt(e,t){if(e[t]===47){var r=kj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function YCt(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||XCt(e,t+8):a==="VP8L"&&o>=9?r=r||ZCt(e,t+8):a==="VP8X"&&o>=10?r=r||YCt(e,t+8):a==="EXIF"&&(n=HCt.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 W4e=Te((mvr,H4e)=>{"use strict";H4e.exports={avif:u4e(),bmp:h4e(),gif:y4e(),ico:x4e(),jpeg:w4e(),png:E4e(),psd:L4e(),svg:I4e(),tiff:O4e(),webp:G4e()}});var j4e=Te((yvr,Lj)=>{"use strict";var Cj=W4e();function KCt(e){for(var t=Object.keys(Cj),r=0;r{"use strict";var JCt=j4e(),$Ct=Bg().IMAGE_URL_PREFIX,QCt=_2().Buffer;X4e.getImageSize=function(e){var t=e.replace($Ct,""),r=new QCt(t,"base64");return JCt(r)}});var J4e=Te((_vr,K4e)=>{"use strict";var Y4e=ei(),eLt=QA(),tLt=ku(),m6=wu(),rLt=ei().maxRowLength,iLt=Z4e().getImageSize;K4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=rLt(r.z);else if(r._hasSource){var a=iLt(r.source);n=a.height,i=a.width}var o=m6.getFromId(t,r.xaxis||"x"),s=m6.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 sLt=Jl(),I2=ei(),$4e=I2.strTranslate,lLt=jv(),uLt=QA(),fLt=mG(),cLt=mR().STYLE;Q4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&fLt();I2.makeTraceGroups(i,n,"im").each(function(u){var l=sLt.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,_=f.y0,b=f.w,v=f.h,C=c.dx,E=c.dy,T,L,x,k,M,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*C),m--;for(m=0;k===void 0&&m0;)M=o.c2p(_+m*E),m--;if(LH[0];if(re||ae){var ge=T+A/2,ze=k+F/2;W+="transform:"+$4e(ge+"px",ze+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+$4e(-ge+"px",-ze+"px")+";"}}j.attr("style",W);var Le=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 ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},de()},Ee.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(Se,Ge){var De=d[Ge][Se];return I2.isTypedArray(De)&&(De=Array.from(De)),De}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Se,Ge){var De=4*(Ge*b+Se);return[Ee[De],Ee[De+1],Ee[De+2],Ee[De+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:F,width:A,x:T,y:k})});t._promises.push(Le)})}});var rke=Te((bvr,tke)=>{"use strict";var hLt=Jl();tke.exports=function(t){hLt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var oke=Te((wvr,ake)=>{"use strict";var ike=Xc(),nke=ei(),y6=nke.isArrayOrTypedArray,dLt=QA();ake.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(ike.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||ike.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=dLt.colormodel[a.colormodel],_=p.colormodel||a.colormodel,b=_.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=_.toUpperCase()+": "+E);var T;y6(a.hovertext)&&y6(a.hovertext[l])?T=a.hovertext[l][u]:y6(a.text)&&y6(a.text[l])&&(T=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,M="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[nke.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:M,text:T,hovertemplateLabels:{zLabel:M,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 lke=Te((Avr,ske)=>{"use strict";ske.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 fke=Te((Tvr,uke)=>{"use strict";uke.exports={attributes:MH(),supplyDefaults:oAe(),calc:J4e(),plot:eke(),style:rke(),hoverPoints:oke(),eventData:lke(),moduleType:"trace",name:"image",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var hke=Te((Svr,cke)=>{"use strict";cke.exports=fke()});var D2=Te((Mvr,pke)=>{"use strict";var Pj=Gf(),pLt=zc().attributes,vLt=gc(),mLt=Oh(),{hovertemplateAttrs:yLt,texttemplateAttrs:gLt,templatefallbackAttrs:dke}=Ff(),R2=Su().extendFlat,_Lt=Id().pattern,g6=vLt({editType:"plot",arrayOk:!0,colorEditType:"plot"});pke.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:mLt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:_Lt,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:R2({},Pj.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:yLt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:dke(),texttemplate:gLt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:dke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:R2({},g6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:R2({},g6,{}),outsidetextfont:R2({},g6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:R2({},Pj.showlegend,{arrayOk:!0}),legend:R2({},Pj.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:R2({},g6,{}),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 F2=Te((Evr,yke)=>{"use strict";var xLt=ku(),B4=ei(),bLt=D2(),wLt=zc().defaults,ALt=i0().handleText,TLt=ei().coercePattern;function vke(e,t){var r=B4.isArrayOrTypedArray(e),n=B4.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 mke(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");TLt(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 SLt(e,t,r,n){function i(C,E){return B4.coerce(e,t,bLt,C,E)}var a=i("labels"),o=i("values"),s=vke(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,mke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate");i("texttemplatefallback");var c;if(f||(c=i("textinfo",B4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),f||c&&c!=="none"){var h=i("textposition");ALt(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");wLt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var v=i("title.position",_?"middle center":"top center");!_&&v==="middle center"&&(t.title.position="top center"),B4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}yke.exports={handleLabelsAndValues:vke,handleMarkerDefaults:mke,supplyDefaults:SLt}});var _6=Te((kvr,gke)=>{"use strict";gke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var xke=Te((Cvr,_ke)=>{"use strict";var MLt=ei(),ELt=_6();_ke.exports=function(t,r){function n(i,a){return MLt.coerce(t,r,ELt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var ET=Te((Lvr,Ake)=>{"use strict";var kLt=ku(),zj=hd(),CLt=jl(),LLt={};function PLt(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 T=t.type==="funnelarea"?_:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=p),r}function bke(e){return function(r,n){return!r||(r=zj(r),!r.isValid())?!1:(r=CLt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function zLt(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=wke(a,LLt));for(var s=0,u=0;u{"use strict";var ILt=iv().appendArrayMultiPointValues;Tke.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]),ILt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var A6=Te((zvr,jke)=>{"use strict";var Dv=Jl(),RLt=Cc(),x6=Xc(),Pke=jl(),Qg=Mu(),np=ei(),DLt=np.strScale,Mke=np.strTranslate,Ij=Wf(),zke=Ap(),FLt=zke.recordMinTextSize,BLt=zke.clearMinTextSize,Ike=T_().TEXTPAD,Zu=m_(),b6=Ske(),Eke=ei().isValidTextValue;function OLt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;BLt("pie",n),Fke(t,e),Gke(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dv.select(this),u=o[0],l=u.trace;XLt(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(T,L){if(T.hidden){Dv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var x=u.cx,k=u.cy,M=Dv.select(this),m=M.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(Rke,e,o),l.pull){var P=+Zu.castOption(l.pull,T.pts)||0;P>0&&(x+=P*T.pxmid[0],k+=P*T.pxmid[1])}T.cxFinal=x,T.cyFinal=k;function A(N,H,re,ae){var ge=ae*(H[0]-N[0]),ze=ae*(H[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+ge+","+ze}var F=l.hole;if(T.v===u.vTotal){var B="M"+(x+T.px0[0])+","+(k+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";F?m.attr("d","M"+(x+F*T.px0[0])+","+(k+F*T.px0[1])+A(T.px0,T.pxmid,!1,F)+A(T.pxmid,T.px0,!1,F)+"Z"+B):m.attr("d",B)}else{var U=A(T.px0,T.px1,!0,1);if(F){var G=1-F;m.attr("d","M"+(x+F*T.px1[0])+","+(k+F*T.px1[1])+A(T.px1,T.px0,!1,F)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+x+","+k+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Hke(e,T,u);var j=Zu.castOption(l.textposition,T.pts),W=M.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);W.enter().append("g").classed("slicetext",!0),W.exit().remove(),W.each(function(){var N=np.ensureSingle(Dv.select(this),"text","",function(te){te.attr("data-notex",1)}),H=np.ensureUniformFontSize(e,j==="outside"?NLt(l,T,n.font):Dke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qg.font,H).call(Ij.convertToTspans,e);var re=Qg.bBox(N.node()),ae;if(j==="outside")ae=Lke(re,T);else if(ae=Bke(re,T,u),j==="auto"&&ae.scale<1){var ge=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(Qg.font,ge),re=Qg.bBox(N.node()),ae=Lke(re,T)}var ze=ae.textPosAngle,Le=ze===void 0?T.pxmid:w6(u.r,ze);if(ae.targetX=x+Le[0]*ae.rCenter+(ae.x||0),ae.targetY=k+Le[1]*ae.rCenter+(ae.y||0),Wke(ae,re),ae.outside){var de=ae.targetY;T.yLabelMin=de-re.height/2,T.yLabelMid=de,T.yLabelMax=de+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=H.size,FLt(l.type,ae,n),o[L].transform=ae,np.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 T=np.ensureSingle(Dv.select(this),"text","",function(k){k.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qg.font,l.title.font).call(Ij.convertToTspans,e);var x;l.title.position==="middle center"?x=GLt(u):x=Uke(u,i),T.attr("transform",Mke(x.x,x.y)+DLt(Math.min(1,x.scale))+Mke(x.tx,x.ty))}),h&&WLt(c,l),qLt(f,l),h&&l.automargin){var p=Qg.bBox(s.node()),_=l.domain,b=i.w*(_.x[1]-_.x[0]),v=i.h*(_.y[1]-_.y[0]),C=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;RLt.autoMargin(e,"pie."+l.uid+".automargin",{xl:_.x[0]-C,xr:_.x[1]+C,yb:_.y[0]-E,yt:_.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 qLt(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,np.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;np.ensureSingle(n,"path","textline").call(Pke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function Rke(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=x6.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),_=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;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Zu.formatPieValue(u.v,_),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Zu.formatPiePercent(u.percent,_),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var C=f.hoverlabel,E=C.font,T=[];x6.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:[b6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[b6(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:[b6(c,f)],event:Dv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(x6.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=[b6(u,f)],x6.click(t,Dv.event))})}function NLt(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 Dke(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||Pke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Fke(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;_.push(b)}(p||d)&&(b=kke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(p||h)&&(b=Cke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var T=0,L=0,x=0;x<_.length;x++){var k=_[x].scale;if(L=1)break}return _[T]}function ULt(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 GLt(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 Uke(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=Vke(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=HLt(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 HLt(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 Vke(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function WLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function _(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-x,P,A,F,B,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Zu.castOption(t.pull,F.pts)||0))&&((E.pxmid[1]-F.pxmid[1])*u>0?(B=F.cyFinal+o(F.px0[1],F.px1[1]),m=B-x-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(k+E.labelExtraY-M)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=F.cxFinal+a(F.px0[0],F.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?_: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=VLt(l,t))}function w6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Hke(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(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var _=Zu.getFirstFilled(i.text,t.pts);Eke(_)&&p.push(_)}c&&p.push(Zu.formatPieValue(t.v,d)),h&&p.push(Zu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Zu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Zu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var C=b(t),E=Zu.getFirstFilled(i.text,t.pts);(Eke(E)||E==="")&&(C.text=E),t.text=np.texttemplateString({data:[C,i._meta],fallback:i.texttemplatefallback,labels:C,locale:e._fullLayout._d3locale,template:v})}}}function Wke(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}jke.exports={plot:OLt,formatSliceLabel:Hke,transformInsideText:Bke,determineInsideTextFont:Dke,positionTitleOutside:Uke,prerenderTitles:Fke,layoutAreas:Gke,attachFxHandlers:Rke,computeTransform:Wke}});var Yke=Te((Ivr,Zke)=>{"use strict";var Xke=Jl(),ZLt=X3(),YLt=Ap().resizeText;Zke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");YLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Xke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Xke.select(this).call(ZLt,s,a,t)})})}});var Jke=Te(kT=>{"use strict";var Kke=Cc();kT.name="pie";kT.plot=function(e,t,r,n){Kke.plotBasePlot(kT.name,e,t,r,n)};kT.clean=function(e,t,r,n){Kke.cleanBasePlot(kT.name,e,t,r,n)}});var Qke=Te((Dvr,$ke)=>{"use strict";$ke.exports={attributes:D2(),supplyDefaults:F2().supplyDefaults,supplyLayoutDefaults:xke(),layoutAttributes:_6(),calc:ET().calc,crossTraceCalc:ET().crossTraceCalc,plot:A6().plot,style:Yke(),styleOne:X3(),moduleType:"trace",name:"pie",basePlotModule:Jke(),categories:["pie-like","pie","showLegend"],meta:{}}});var tCe=Te((Fvr,eCe)=>{"use strict";eCe.exports=Qke()});var iCe=Te(CT=>{"use strict";var rCe=Cc();CT.name="sunburst";CT.plot=function(e,t,r,n){rCe.plotBasePlot(CT.name,e,t,r,n)};CT.clean=function(e,t,r,n){rCe.cleanBasePlot(CT.name,e,t,r,n)}});var Dj=Te((Ovr,nCe)=>{"use strict";nCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var q4=Te((qvr,sCe)=>{"use strict";var KLt=Gf(),{hovertemplateAttrs:JLt,texttemplateAttrs:$Lt,templatefallbackAttrs:aCe}=Ff(),QLt=nc(),ePt=zc().attributes,e1=D2(),oCe=Dj(),O4=Su().extendFlat,tPt=Id().pattern;sCe.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:O4({colors:{valType:"data_array",editType:"calc"},line:{color:O4({},e1.marker.line.color,{dflt:null}),width:O4({},e1.marker.line.width,{dflt:1}),editType:"calc"},pattern:tPt,editType:"calc"},QLt("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:$Lt({editType:"plot"},{keys:oCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:aCe({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:O4({},KLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:JLt({},{keys:oCe.eventDataKeys}),hovertemplatefallback:aCe(),textfont:e1.textfont,insidetextorientation:e1.insidetextorientation,insidetextfont:e1.insidetextfont,outsidetextfont:O4({},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:ePt({name:"sunburst",trace:!0,editType:"calc"})}});var Fj=Te((Nvr,lCe)=>{"use strict";lCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var hCe=Te((Uvr,cCe)=>{"use strict";var uCe=ei(),rPt=q4(),iPt=zc().defaults,nPt=i0().handleText,aPt=F2().handleMarkerDefaults,fCe=_c(),oPt=fCe.hasColorscale,sPt=fCe.handleDefaults;cCe.exports=function(t,r,n,i){function a(h,d){return uCe.coerce(t,r,rPt,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"),aPt(t,r,i,a);var l=r._hasColorscale=oPt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&sPt(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",uCe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";nPt(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"),iPt(r,i,a),r._length=null}});var pCe=Te((Vvr,dCe)=>{"use strict";var lPt=ei(),uPt=Fj();dCe.exports=function(t,r){function n(i,a){return lPt.coerce(t,r,uPt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var N4=Te((T6,vCe)=>{(function(e,t){typeof T6=="object"&&typeof vCe!="undefined"?t(T6):(e=e||self,t(e.d3=e.d3||{}))})(T6,function(e){"use strict";function t(Ie,Fe){return Ie.parent===Fe.parent?1:2}function r(Ie){return Ie.reduce(n,0)/Ie.length}function n(Ie,Fe){return Ie+Fe.x}function i(Ie){return 1+Ie.reduce(a,0)}function a(Ie,Fe){return Math.max(Ie,Fe.y)}function o(Ie){for(var Fe;Fe=Ie.children;)Ie=Fe[0];return Ie}function s(Ie){for(var Fe;Fe=Ie.children;)Ie=Fe[Fe.length-1];return Ie}function u(){var Ie=t,Fe=1,ft=1,ye=!1;function fe(pe){var dt,Pt=0;pe.eachAfter(function(Er){var Rr=Er.children;Rr?(Er.x=r(Rr),Er.y=i(Rr)):(Er.x=dt?Pt+=Ie(Er,dt):0,Er.y=0,dt=Er)});var zt=o(pe),rr=s(pe),Gr=zt.x-Ie(zt,rr)/2,Br=rr.x+Ie(rr,zt)/2;return pe.eachAfter(ye?function(Er){Er.x=(Er.x-pe.x)*Fe,Er.y=(pe.y-Er.y)*ft}:function(Er){Er.x=(Er.x-Gr)/(Br-Gr)*Fe,Er.y=(1-(pe.y?Er.y/pe.y:1))*ft})}return fe.separation=function(pe){return arguments.length?(Ie=pe,fe):Ie},fe.size=function(pe){return arguments.length?(ye=!1,Fe=+pe[0],ft=+pe[1],fe):ye?null:[Fe,ft]},fe.nodeSize=function(pe){return arguments.length?(ye=!0,Fe=+pe[0],ft=+pe[1],fe):ye?[Fe,ft]:null},fe}function l(Ie){var Fe=0,ft=Ie.children,ye=ft&&ft.length;if(!ye)Fe=1;else for(;--ye>=0;)Fe+=ft[ye].value;Ie.value=Fe}function f(){return this.eachAfter(l)}function c(Ie){var Fe=this,ft,ye=[Fe],fe,pe,dt;do for(ft=ye.reverse(),ye=[];Fe=ft.pop();)if(Ie(Fe),fe=Fe.children,fe)for(pe=0,dt=fe.length;pe=0;--fe)ft.push(ye[fe]);return this}function d(Ie){for(var Fe=this,ft=[Fe],ye=[],fe,pe,dt;Fe=ft.pop();)if(ye.push(Fe),fe=Fe.children,fe)for(pe=0,dt=fe.length;pe=0;)ft+=ye[fe].value;Fe.value=ft})}function _(Ie){return this.eachBefore(function(Fe){Fe.children&&Fe.children.sort(Ie)})}function b(Ie){for(var Fe=this,ft=v(Fe,Ie),ye=[Fe];Fe!==ft;)Fe=Fe.parent,ye.push(Fe);for(var fe=ye.length;Ie!==ft;)ye.splice(fe,0,Ie),Ie=Ie.parent;return ye}function v(Ie,Fe){if(Ie===Fe)return Ie;var ft=Ie.ancestors(),ye=Fe.ancestors(),fe=null;for(Ie=ft.pop(),Fe=ye.pop();Ie===Fe;)fe=Ie,Ie=ft.pop(),Fe=ye.pop();return fe}function C(){for(var Ie=this,Fe=[Ie];Ie=Ie.parent;)Fe.push(Ie);return Fe}function E(){var Ie=[];return this.each(function(Fe){Ie.push(Fe)}),Ie}function T(){var Ie=[];return this.eachBefore(function(Fe){Fe.children||Ie.push(Fe)}),Ie}function L(){var Ie=this,Fe=[];return Ie.each(function(ft){ft!==Ie&&Fe.push({source:ft.parent,target:ft})}),Fe}function x(Ie,Fe){var ft=new A(Ie),ye=+Ie.value&&(ft.value=Ie.value),fe,pe=[ft],dt,Pt,zt,rr;for(Fe==null&&(Fe=M);fe=pe.pop();)if(ye&&(fe.value=+fe.data.value),(Pt=Fe(fe.data))&&(rr=Pt.length))for(fe.children=new Array(rr),zt=rr-1;zt>=0;--zt)pe.push(dt=fe.children[zt]=new A(Pt[zt])),dt.parent=fe,dt.depth=fe.depth+1;return ft.eachBefore(P)}function k(){return x(this).eachBefore(m)}function M(Ie){return Ie.children}function m(Ie){Ie.data=Ie.data.data}function P(Ie){var Fe=0;do Ie.height=Fe;while((Ie=Ie.parent)&&Ie.height<++Fe)}function A(Ie){this.data=Ie,this.depth=this.height=0,this.parent=null}A.prototype=x.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:_,path:b,ancestors:C,descendants:E,leaves:T,links:L,copy:k};var F=Array.prototype.slice;function B(Ie){for(var Fe=Ie.length,ft,ye;Fe;)ye=Math.random()*Fe--|0,ft=Ie[Fe],Ie[Fe]=Ie[ye],Ie[ye]=ft;return Ie}function U(Ie){for(var Fe=0,ft=(Ie=B(F.call(Ie))).length,ye=[],fe,pe;Fe0&&ft*ft>ye*ye+fe*fe}function N(Ie,Fe){for(var ft=0;ftzt?(fe=(rr+zt-pe)/(2*rr),Pt=Math.sqrt(Math.max(0,zt/rr-fe*fe)),ft.x=Ie.x-fe*ye-Pt*dt,ft.y=Ie.y-fe*dt+Pt*ye):(fe=(rr+pe-zt)/(2*rr),Pt=Math.sqrt(Math.max(0,pe/rr-fe*fe)),ft.x=Fe.x+fe*ye-Pt*dt,ft.y=Fe.y+fe*dt+Pt*ye)):(ft.x=Fe.x+ft.r,ft.y=Fe.y)}function Le(Ie,Fe){var ft=Ie.r+Fe.r-1e-6,ye=Fe.x-Ie.x,fe=Fe.y-Ie.y;return ft>0&&ft*ft>ye*ye+fe*fe}function de(Ie){var Fe=Ie._,ft=Ie.next._,ye=Fe.r+ft.r,fe=(Fe.x*ft.r+ft.x*Fe.r)/ye,pe=(Fe.y*ft.r+ft.y*Fe.r)/ye;return fe*fe+pe*pe}function te(Ie){this._=Ie,this.next=null,this.previous=null}function ke(Ie){if(!(fe=Ie.length))return 0;var Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br;if(Fe=Ie[0],Fe.x=0,Fe.y=0,!(fe>1))return Fe.r;if(ft=Ie[1],Fe.x=-ft.r,ft.x=Fe.r,ft.y=0,!(fe>2))return Fe.r+ft.r;ze(ft,Fe,ye=Ie[2]),Fe=new te(Fe),ft=new te(ft),ye=new te(ye),Fe.next=ye.previous=ft,ft.next=Fe.previous=ye,ye.next=ft.previous=Fe;e:for(Pt=3;Pt0)throw new Error("cycle");return Pt}return ft.id=function(ye){return arguments.length?(Ie=Ge(ye),ft):Ie},ft.parentId=function(ye){return arguments.length?(Fe=Ge(ye),ft):Fe},ft}function Ae(Ie,Fe){return Ie.parent===Fe.parent?1:2}function ot(Ie){var Fe=Ie.children;return Fe?Fe[0]:Ie.t}function At(Ie){var Fe=Ie.children;return Fe?Fe[Fe.length-1]:Ie.t}function vt(Ie,Fe,ft){var ye=ft/(Fe.i-Ie.i);Fe.c-=ye,Fe.s+=ft,Ie.c+=ye,Fe.z+=ft,Fe.m+=ft}function Je(Ie){for(var Fe=0,ft=0,ye=Ie.children,fe=ye.length,pe;--fe>=0;)pe=ye[fe],pe.z+=Fe,pe.m+=Fe,Fe+=pe.s+(ft+=pe.c)}function He(Ie,Fe,ft){return Ie.a.parent===Fe.parent?Ie.a:ft}function nt(Ie,Fe){this._=Ie,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=Fe}nt.prototype=Object.create(A.prototype);function tt(Ie){for(var Fe=new nt(Ie,0),ft,ye=[Fe],fe,pe,dt,Pt;ft=ye.pop();)if(pe=ft._.children)for(ft.children=new Array(Pt=pe.length),dt=Pt-1;dt>=0;--dt)ye.push(fe=ft.children[dt]=new nt(pe[dt],dt)),fe.parent=ft;return(Fe.parent=new nt(null,0)).children=[Fe],Fe}function It(){var Ie=Ae,Fe=1,ft=1,ye=null;function fe(rr){var Gr=tt(rr);if(Gr.eachAfter(pe),Gr.parent.m=-Gr.z,Gr.eachBefore(dt),ye)rr.eachBefore(zt);else{var Br=rr,Er=rr,Rr=rr;rr.eachBefore(function(Qi){Qi.xEr.x&&(Er=Qi),Qi.depth>Rr.depth&&(Rr=Qi)});var pi=Br===Er?1:Ie(Br,Er)/2,Di=pi-Br.x,ni=Fe/(Er.x+pi+Di),$i=ft/(Rr.depth||1);rr.eachBefore(function(Qi){Qi.x=(Qi.x+Di)*ni,Qi.y=Qi.depth*$i})}return rr}function pe(rr){var Gr=rr.children,Br=rr.parent.children,Er=rr.i?Br[rr.i-1]:null;if(Gr){Je(rr);var Rr=(Gr[0].z+Gr[Gr.length-1].z)/2;Er?(rr.z=Er.z+Ie(rr._,Er._),rr.m=rr.z-Rr):rr.z=Rr}else Er&&(rr.z=Er.z+Ie(rr._,Er._));rr.parent.A=Pt(rr,Er,rr.parent.A||Br[0])}function dt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function Pt(rr,Gr,Br){if(Gr){for(var Er=rr,Rr=rr,pi=Gr,Di=Er.parent.children[0],ni=Er.m,$i=Rr.m,Qi=pi.m,si=Di.m,Ti;pi=At(pi),Er=ot(Er),pi&&Er;)Di=ot(Di),Rr=At(Rr),Rr.a=rr,Ti=pi.z+Qi-Er.z-ni+Ie(pi._,Er._),Ti>0&&(vt(He(pi,rr,Br),rr,Ti),ni+=Ti,$i+=Ti),Qi+=pi.m,ni+=Er.m,si+=Di.m,$i+=Rr.m;pi&&!At(Rr)&&(Rr.t=pi,Rr.m+=Qi-$i),Er&&!ot(Di)&&(Di.t=Er,Di.m+=ni-si,Br=rr)}return Br}function zt(rr){rr.x*=Fe,rr.y=rr.depth*ft}return fe.separation=function(rr){return arguments.length?(Ie=rr,fe):Ie},fe.size=function(rr){return arguments.length?(ye=!1,Fe=+rr[0],ft=+rr[1],fe):ye?null:[Fe,ft]},fe.nodeSize=function(rr){return arguments.length?(ye=!0,Fe=+rr[0],ft=+rr[1],fe):ye?[Fe,ft]:null},fe}function Yt(Ie,Fe,ft,ye,fe){for(var pe=Ie.children,dt,Pt=-1,zt=pe.length,rr=Ie.value&&(fe-ft)/Ie.value;++PtQi&&(Qi=rr),Rt=ni*ni*Ni,si=Math.max(Qi/Rt,Rt/$i),si>Ti){ni-=rr;break}Ti=si}dt.push(zt={value:ni,dice:Rr1?ye:1)},ft}(cr);function Ut(){var Ie=yr,Fe=!1,ft=1,ye=1,fe=[0],pe=De,dt=De,Pt=De,zt=De,rr=De;function Gr(Er){return Er.x0=Er.y0=0,Er.x1=ft,Er.y1=ye,Er.eachBefore(Br),fe=[0],Fe&&Er.eachBefore(qt),Er}function Br(Er){var Rr=fe[Er.depth],pi=Er.x0+Rr,Di=Er.y0+Rr,ni=Er.x1-Rr,$i=Er.y1-Rr;ni=Er-1){var Qi=pe[Br];Qi.x0=pi,Qi.y0=Di,Qi.x1=ni,Qi.y1=$i;return}for(var si=rr[Br],Ti=Rr/2+si,Ni=Br+1,Rt=Er-1;Ni>>1;rr[yt]$i-Di){var xr=(pi*Wt+ni*Gt)/Rr;Gr(Br,Ni,Gt,pi,Di,xr,$i),Gr(Ni,Er,Wt,xr,Di,ni,$i)}else{var Lr=(Di*Wt+$i*Gt)/Rr;Gr(Br,Ni,Gt,pi,Di,ni,Lr),Gr(Ni,Er,Wt,pi,Lr,ni,$i)}}}function be(Ie,Fe,ft,ye,fe){(Ie.depth&1?Yt:at)(Ie,Fe,ft,ye,fe)}var Oe=function Ie(Fe){function ft(ye,fe,pe,dt,Pt){if((zt=ye._squarify)&&zt.ratio===Fe)for(var zt,rr,Gr,Br,Er=-1,Rr,pi=zt.length,Di=ye.value;++Er1?ye:1)},ft}(cr);e.cluster=u,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ke,e.stratify=Et,e.tree=It,e.treemap=Ut,e.treemapBinary=Re,e.treemapDice=at,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=be,e.treemapSquarify=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var V4=Te(U4=>{"use strict";var mCe=N4(),fPt=ku(),LT=ei(),cPt=_c().makeColorScaleFuncFromTrace,hPt=ET().makePullColorFn,dPt=ET().generateExtendedColors,pPt=_c().calc,vPt=rf().ALMOST_EQUAL,mPt={},yPt={},gPt={};U4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=LT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=LT.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||fPt(s[W])&&s[W]>=0},_,b,v;i?(_=Math.min(n.length,o.length),b=function(W){return d(n[W])&&p(W)},v=function(W){return String(n[W])}):(_=Math.min(a.length,o.length),b=function(W){return d(a[W])&&p(W)},v=function(W){return String(a[W])}),u&&(_=Math.min(_,s.length));for(var C=0;C<_;C++)if(b(C)){var E=v(C),T=d(o[C])?String(o[C]):"",L={i:C,id:E,pid:T,label:d(a[C])?String(a[C]):""};u&&(L.v=+s[C]),l.push(L),h(T,E)}if(f[""]){if(f[""].length>1){for(var M=LT.randstr(),m=0;m{});function Yy(){}function _Ce(){return this.rgb().formatHex()}function MPt(){return this.rgb().formatHex8()}function EPt(){return MCe(this).formatHsl()}function xCe(){return this.rgb().formatRgb()}function ex(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_Pt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?bCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?M6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?M6(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=xPt.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=wPt.exec(e))?M6(t[1],t[2],t[3],t[4]):(t=APt.exec(e))?M6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TPt.exec(e))?TCe(t[1],t[2]/100,t[3]/100,1):(t=SPt.exec(e))?TCe(t[1],t[2]/100,t[3]/100,t[4]):gCe.hasOwnProperty(e)?bCe(gCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function bCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function M6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function G4(e){return e instanceof Yy||(e=ex(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function zT(e,t,r,n){return arguments.length===1?G4(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 wCe(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}`}function kPt(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}${B2((isNaN(this.opacity)?1:this.opacity)*255)}`}function ACe(){let e=k6(this.opacity);return`${e===1?"rgb(":"rgba("}${O2(this.r)}, ${O2(this.g)}, ${O2(this.b)}${e===1?")":`, ${e})`}`}function k6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function O2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B2(e){return e=O2(e),(e<16?"0":"")+e.toString(16)}function TCe(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 MCe(e){if(e instanceof Km)return new Km(e.h,e.s,e.l,e.opacity);if(e instanceof Yy||(e=ex(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 H4(e,t,r,n){return arguments.length===1?MCe(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 SCe(e){return e=(e||0)%360,e<0?e+360:e}function E6(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 Q_,q2,PT,V4,Zy,_Pt,xPt,bPt,wPt,APt,TPt,SPt,gCe,C6=tc(()=>{S6();Q_=.7,q2=1/Q_,PT="\\s*([+-]?\\d+)\\s*",V4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_Pt=/^#([0-9a-f]{3,8})$/,xPt=new RegExp(`^rgb\\(${PT},${PT},${PT}\\)$`),bPt=new RegExp(`^rgb\\(${Zy},${Zy},${Zy}\\)$`),wPt=new RegExp(`^rgba\\(${PT},${PT},${PT},${V4}\\)$`),APt=new RegExp(`^rgba\\(${Zy},${Zy},${Zy},${V4}\\)$`),TPt=new RegExp(`^hsl\\(${V4},${Zy},${Zy}\\)$`),SPt=new RegExp(`^hsla\\(${V4},${Zy},${Zy},${V4}\\)$`),gCe={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(Yy,ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_Ce,formatHex:_Ce,formatHex8:MPt,formatHsl:EPt,formatRgb:xCe,toString:xCe});t1(xd,zT,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(O2(this.r),O2(this.g),O2(this.b),k6(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:wCe,formatHex:wCe,formatHex8:kPt,formatRgb:ACe,toString:ACe}));t1(Km,H4,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new Km(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,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(SCe(this.h),E6(this.s),E6(this.l),k6(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=k6(this.opacity);return`${e===1?"hsl(":"hsla("}${SCe(this.h)}, ${E6(this.s)*100}%, ${E6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var L6,P6,Oj=tc(()=>{L6=Math.PI/180,P6=180/Math.PI});function zCe(e){if(e instanceof Ky)return new Ky(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return ICe(e);e instanceof xd||(e=G4(e));var t=Vj(e.r),r=Vj(e.g),n=Vj(e.b),i=qj((.2225045*t+.7168786*r+.0606169*n)/kCe),a,o;return t===r&&r===n?a=o=i:(a=qj((.4360747*t+.3850649*r+.1430804*n)/ECe),o=qj((.0139322*t+.0971045*r+.7141733*n)/CCe)),new Ky(116*i-16,500*(a-i),200*(i-o),e.opacity)}function RT(e,t,r,n){return arguments.length===1?zCe(e):new Ky(e,t,r,n==null?1:n)}function Ky(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function qj(e){return e>CPt?Math.pow(e,1/3):e/PCe+LCe}function Nj(e){return e>IT?e*e*e:PCe*(e-LCe)}function Uj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Vj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function LPt(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Ky||(e=zCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{S6();C6();Oj();z6=18,ECe=.96422,kCe=1,CCe=.82521,LCe=4/29,IT=6/29,PCe=3*IT*IT,CPt=IT*IT*IT;t1(Ky,RT,$_(Yy,{brighter(e){return new Ky(this.l+z6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ky(this.l-z6*(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=ECe*Nj(t),e=kCe*Nj(e),r=CCe*Nj(r),new xd(Uj(3.1338561*t-1.6168667*e-.4906146*r),Uj(-.9787684*t+1.9161415*e+.033454*r),Uj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,W4,$_(Yy,{brighter(e){return new r1(this.h,this.c,this.l+z6*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-z6*(e==null?1:e),this.opacity)},rgb(){return ICe(this).rgb()}}))});function PPt(e){if(e instanceof N2)return new N2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=G4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(BCe*n+DCe*t-FCe*r)/(BCe+DCe-FCe),a=n-i,o=(j4*(r-i)-Hj*a)/I6,s=Math.sqrt(o*o+a*a)/(j4*i*(1-i)),u=s?Math.atan2(o,a)*P6-120:NaN;return new N2(u<0?u+360:u,s,i,e.opacity)}function DT(e,t,r,n){return arguments.length===1?PPt(e):new N2(e,t,r,n==null?1:n)}function N2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var OCe,Gj,Hj,I6,j4,DCe,FCe,BCe,qCe=tc(()=>{S6();C6();Oj();OCe=-.14861,Gj=1.78277,Hj=-.29227,I6=-.90649,j4=1.97294,DCe=j4*I6,FCe=j4*Gj,BCe=Gj*Hj-I6*OCe;t1(N2,DT,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new N2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new N2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*L6,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*(OCe*n+Gj*i)),255*(t+r*(Hj*n+I6*i)),255*(t+r*(j4*n)),this.opacity)}}))});var U2=tc(()=>{C6();RCe();qCe()});function Wj(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 R6(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 F6(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 Wj((r-n/t)*t,i,a,o,s)}}var jj=tc(()=>{D6()});var FT,Xj=tc(()=>{FT=e=>()=>e});function NCe(e,t){return function(r){return e+r*t}}function zPt(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 tx(e,t){var r=t-e;return r?NCe(e,r>180||r<-180?r-360*Math.round(r/360):r):FT(isNaN(e)?t:e)}function UCe(e){return(e=+e)==1?ph:function(t,r){return r-t?zPt(t,r,e):FT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?NCe(e,r):FT(isNaN(e)?t:e)}var V2=tc(()=>{Xj()});function VCe(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{U2();D6();jj();V2();X4=function e(t){var r=UCe(t);function n(i,a){var o=r((i=zT(i)).r,(a=zT(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);GCe=VCe(R6),HCe=VCe(F6)});function BT(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 WCe(e,t){return(B6(t)?BT:Yj)(e,t)}function Yj(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{Z4();O6()});function q6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Jj=tc(()=>{});function Fv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Y4=tc(()=>{});function N6(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]=rx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var $j=tc(()=>{Z4()});function IPt(e){return function(){return e}}function RPt(e){return function(t){return e(t)+""}}function U6(e,t){var r=eX.lastIndex=Qj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=eX.exec(e))&&(i=Qj.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=Qj.lastIndex;return r{Y4();eX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qj=new RegExp(eX.source,"g")});function rx(e,t){var r=typeof t,n;return t==null||r==="boolean"?FT(t):(r==="number"?Fv:r==="string"?(n=ex(t))?(t=n,X4):U6:t instanceof ex?X4:t instanceof Date?q6:B6(t)?BT:Array.isArray(t)?Yj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?N6:Fv)(e,t)}var Z4=tc(()=>{U2();Zj();Kj();Jj();Y4();$j();tX();Xj();O6()});function jCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var XCe=tc(()=>{});function ZCe(e,t){var r=tx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var YCe=tc(()=>{V2()});function KCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var JCe=tc(()=>{});function rX(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{$Ce=180/Math.PI,V6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function eLe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?V6:rX(t.a,t.b,t.c,t.d,t.e,t.f)}function tLe(e){return e==null?V6:(G6||(G6=document.createElementNS("http://www.w3.org/2000/svg","g")),G6.setAttribute("transform",e),(e=G6.transform.baseVal.consolidate())?(e=e.matrix,rX(e.a,e.b,e.c,e.d,e.e,e.f)):V6)}var G6,rLe=tc(()=>{QCe()});function iLe(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 _=d.push("translate(",null,t,null,r);p.push({i:_-4,x:Fv(l,c)},{i:_-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 _=d.push(i(d)+"scale(",null,",",null,")");p.push({i:_-4,x:Fv(l,c)},{i:_-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,_=h.length,b;++p<_;)c[(b=h[p]).i]=b.x(d);return c.join("")}}}var nLe,aLe,oLe=tc(()=>{Y4();rLe();nLe=iLe(eLe,"px, ","px)","deg)"),aLe=iLe(tLe,", ",")",")")});function sLe(e){return((e=Math.exp(e))+1/e)/2}function FPt(e){return((e=Math.exp(e))-1/e)/2}function BPt(e){return((e=Math.exp(2*e))-1)/(e+1)}var DPt,lLe,uLe=tc(()=>{DPt=1e-12;lLe=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,_=d*d+p*p,b,v;if(_{U2();V2();cLe=fLe(tx),hLe=fLe(ph)});function iX(e,t){var r=ph((e=RT(e)).l,(t=RT(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 pLe=tc(()=>{U2();V2()});function vLe(e){return function(t,r){var n=e((t=W4(t)).h,(r=W4(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 mLe,yLe,gLe=tc(()=>{U2();V2();mLe=vLe(tx),yLe=vLe(ph)});function _Le(e){return function t(r){r=+r;function n(i,a){var o=e((i=DT(i)).h,(a=DT(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 xLe,bLe,wLe=tc(()=>{U2();V2();xLe=_Le(tx),bLe=_Le(ph)});function nX(e,t){t===void 0&&(t=e,e=rx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{Z4()});function TLe(e,t){for(var r=new Array(t),n=0;n{});var G2={};Cee(G2,{interpolate:()=>rx,interpolateArray:()=>WCe,interpolateBasis:()=>R6,interpolateBasisClosed:()=>F6,interpolateCubehelix:()=>xLe,interpolateCubehelixLong:()=>bLe,interpolateDate:()=>q6,interpolateDiscrete:()=>jCe,interpolateHcl:()=>mLe,interpolateHclLong:()=>yLe,interpolateHsl:()=>cLe,interpolateHslLong:()=>hLe,interpolateHue:()=>ZCe,interpolateLab:()=>iX,interpolateNumber:()=>Fv,interpolateNumberArray:()=>BT,interpolateObject:()=>N6,interpolateRgb:()=>X4,interpolateRgbBasis:()=>GCe,interpolateRgbBasisClosed:()=>HCe,interpolateRound:()=>KCe,interpolateString:()=>U6,interpolateTransformCss:()=>nLe,interpolateTransformSvg:()=>aLe,interpolateZoom:()=>lLe,piecewise:()=>nX,quantize:()=>TLe});var H2=tc(()=>{Z4();Kj();D6();jj();Jj();XCe();YCe();Y4();O6();$j();JCe();tX();oLe();uLe();Zj();dLe();pLe();gLe();wLe();ALe();SLe()});var H6=Te((zmr,MLe)=>{"use strict";var OPt=Mu(),qPt=jl();MLe.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),OPt.pointStyle(t,n,i,r)}else qPt.fill(t,u)}});var aX=Te((Imr,PLe)=>{"use strict";var ELe=Jl(),kLe=jl(),CLe=ei(),NPt=Ap().resizeText,UPt=H6();function VPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");NPt(e,t,"sunburst"),t.each(function(r){var n=ELe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){ELe.select(this).call(LLe,o,a,e)})})}function LLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=CLe.castOption(r,o,"marker.line.color")||kLe.defaultLine,u=CLe.castOption(r,o,"marker.line.width")||0;e.call(UPt,t,r,n).style("stroke-width",u).call(kLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}PLe.exports={style:VPt,styleOne:LLe}});var i1=Te(yf=>{"use strict";var W2=ei(),GPt=jl(),HPt=Em(),zLe=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 ILe(e){return e.data.data.pid}yf.getParent=function(e,t){return yf.findEntryWithLevel(e,ILe(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=zLe.formatPieValue;yf.formatPercent=function(e,t){var r=W2.formatPercent(e,0);return r==="0%"&&(r=zLe.formatPiePercent(e,t)),r}});var $4=Te((Dmr,FLe)=>{"use strict";var OT=Jl(),RLe=$l(),XPt=iv().appendArrayPointValue,K4=Xc(),DLe=ei(),ZPt=k3(),od=i1(),YPt=m_(),KPt=YPt.formatPieValue;FLe.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 _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,C=v.i,E=od.isHierarchyRoot(p),T=od.getParent(u,p),L=od.getValue(p),x=function(ze){return DLe.castOption(b,C,ze)},k=x("hovertemplate"),M=K4.castHoverinfo(b,_,C),m=_.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var A,F;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),F=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,F=p._hoverY);var B={},U=[],G=[],j=function(ze){return U.indexOf(ze)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),B.label=v.label,j("label")&&B.label&&G.push(B.label),v.hasOwnProperty("v")&&(B.value=v.v,B.valueLabel=KPt(B.value,m),j("value")&&G.push(B.valueLabel)),B.currentPath=p.currentPath=od.getPath(p.data),j("current path")&&!E&&G.push(B.currentPath);var W,N=[],H=function(){N.indexOf(W)===-1&&(G.push(W),N.push(W))};B.percentParent=p.percentParent=L/od.getValue(T),B.parent=p.parentString=od.getPtLabel(T),j("percent parent")&&(W=od.formatPercent(B.percentParent,m)+" of "+B.parent,H()),B.percentEntry=p.percentEntry=L/od.getValue(r),B.entry=p.entry=od.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(W=od.formatPercent(B.percentEntry,m)+" of "+B.entry,H()),B.percentRoot=p.percentRoot=L/od.getValue(u),B.root=p.root=od.getPtLabel(u),j("percent root")&&!E&&(W=od.formatPercent(B.percentRoot,m)+" of "+B.root,H()),B.text=x("hovertext")||x("text"),j("text")&&(W=B.text,DLe.isValidTextValue(W)&&G.push(W)),P=[J4(p,b,a.eventDataKeys)];var re={trace:b,y:F,_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:B,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];K4.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var ge=t.select("path.surface");a.styleOne(ge,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[J4(p,b,a.eventDataKeys)],event:OT.event})}},h=function(p){var _=n._fullLayout,b=n._fullData[s.index],v=OT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=OT.event,n.emit("plotly_unhover",{points:[J4(v,b,a.eventDataKeys)],event:OT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(K4.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),f){var C=t.select("path.surface");a.styleOne(C,v,b,n,{hovered:!1})}},d=function(p){var _=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),T=od.getPtId(E),L={points:[J4(p,b,a.eventDataKeys)],event:OT.event};v||(L.nextLevel=T);var x=ZPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[J4(p,b,a.eventDataKeys)],K4.click(n,OT.event)),!v&&x!==!1&&!n._dragging&&!n._transitioning){RLe.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};K4.loneUnhover(_._hoverlayer.node()),RLe.call("animate",n,k,M)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function J4(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 Q4=Jl(),JPt=q4(),Jm=(H2(),vb(G2)).interpolate,BLe=Mu(),Mp=ei(),$Pt=Wf(),ULe=Ap(),OLe=ULe.recordMinTextSize,QPt=ULe.clearMinTextSize,VLe=A6(),ezt=m_().getRotationAngle,tzt=VLe.computeTransform,rzt=VLe.transformInsideText,izt=aX().styleOne,nzt=V0().resizeText,azt=$4(),oX=Dj(),qf=i1();W6.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(QPt("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=Q4.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){qLe(e,c,this,r)})})}else o.each(function(c){qLe(e,c,this,r)}),i.uniformtext.mode&&nzt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function qLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&qf.hasTransition(n),s=Q4.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,_=f.domain,b=p.w*(_.x[1]-_.x[0]),v=p.h*(_.y[1]-_.y[0]),C=.5*Math.min(b,v),E=l.cx=p.l+p.w*(_.x[1]+_.x[0])/2,T=l.cy=p.t+p.h*(1-_.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=ozt(h).descendants(),M=h.height+1,m=0,P=d;l.hasMultipleRoots&&qf.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,m=1,P+=1),k=k.filter(function(de){return de.y1<=P});var A=ezt(f.rotation);A&&k.forEach(function(de){de.x0+=A,de.x1+=A});var F=Math.min(M,d),B=function(de){return(de-m)/F*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,T)},j=function(de){return E+NLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},W=function(de){return T+NLe(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=Q4.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Ee){var Se=ae(Ee);return function(Ge){return G(Se(Ge))}});var ke=de.select("g.slicetext");ke.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=Q4.select(this);qf.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=Q4.select(this),ke=Mp.ensureSingle(te,"path","surface",function(Ne){Ne.style("pointer-events",i?"none":"all")});de.rpx0=B(de.y0),de.rpx1=B(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=szt(de,f),o?ke.transition().attrTween("d",function(Ne){var ce=ge(Ne);return function(je){return G(ce(je))}}):ke.attr("d",G),te.call(azt,h,e,t,{eventDataKeys:oX.eventDataKeys,transitionTime:oX.CLICK_TRANSITION_TIME,transitionEasing:oX.CLICK_TRANSITION_EASING}).call(qf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(izt,de,f,e);var Ee=Mp.ensureSingle(te,"g","slicetext"),Se=Mp.ensureSingle(Ee,"text","",function(Ne){Ne.attr("data-notex",1)}),Ge=Mp.ensureUniformFontSize(e,qf.determineTextFont(f,de,a.font));Se.text(W6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(BLe.font,Ge).call($Pt.convertToTspans,e);var De=BLe.bBox(Se.node());de.transform=rzt(De,de,l),de.transform.targetX=j(de),de.transform.targetY=W(de);var xe=function(Ne,ce){var je=Ne.transform;return tzt(je,ce),je.fontSize=Ge.size,OLe(f.type,je,a),Mp.getTextTransform(je)};o?Se.transition().attrTween("transform",function(Ne){var ce=ze(Ne);return function(je){return xe(ce(je),De)}}):Se.attr("transform",xe(de,De))});function ae(de){var te=qf.getPtId(de),ke=x[te],Ee=x[qf.getPtId(h)],Se;if(Ee){var Ge=(de.x1>Ee.x1?2*Math.PI:0)+A;Se=de.rpx1N?2*Math.PI:0)+A;ke={x0:Se,x1:Se}}else ke={rpx0:C,rpx1:C},Mp.extendFlat(ke,Le(de));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Jm(ke,Ee)}function ze(de){var te=x[qf.getPtId(de)],ke,Ee=de.transform;if(te)ke=te;else if(ke={rpx1:de.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(de.parent)if(N){var Se=de.x1>N?2*Math.PI:0;ke.x0=ke.x1=Se}else Mp.extendFlat(ke,Le(de));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ge=Jm(ke.transform.textPosAngle,de.transform.textPosAngle),De=Jm(ke.rpx1,de.rpx1),xe=Jm(ke.x0,de.x0),Ne=Jm(ke.x1,de.x1),ce=Jm(ke.transform.scale,Ee.scale),je=Jm(ke.transform.rotate,Ee.rotate),Qe=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,gt=Jm(ke.transform.rCenter,Ee.rCenter),qt=function(at){return gt(Math.pow(at,Qe))};return function(at){var Ke=De(at),Ct=xe(at),wt=Ne(at),Mt=qt(at),Bt=U(Ke,(Ct+wt)/2),Zt=Ge(at),Et={pxmid:Bt,rpx1:Ke,transform:{textPosAngle:Zt,rCenter:Mt,x:Ee.x,y:Ee.y}};return OLe(f.type,Ee,a),{transform:{targetX:j(Et),targetY:W(Et),scale:ce(at),rotate:je(at),rCenter:Mt}}}}function Le(de){var te=de.parent,ke=x[qf.getPtId(te)],Ee={};if(ke){var Se=te.children,Ge=Se.indexOf(de),De=Se.length,xe=Jm(ke.x0,ke.x1);Ee.x0=xe(Ge/De),Ee.x1=xe(Ge/De)}else Ee.x0=Ee.x1=0;return Ee}}function ozt(e){return JPt.partition().size([2*Math.PI,e.height+1])(e)}W6.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("+"),_=function(m){return p.indexOf(m)!==-1},b=[],v;if(_("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&_("value")&&b.push(qf.formatValue(l.v,s)),!c){_("current path")&&b.push(qf.getPath(e.data));var C=0;_("percent parent")&&C++,_("percent entry")&&C++,_("percent root")&&C++;var E=C>1;if(C){var T,L=function(m){v=qf.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};_("percent parent")&&!c&&(T=d/qf.getValue(h),L("parent")),_("percent entry")&&(T=d/qf.getValue(t),L("entry")),_("percent root")&&(T=d/qf.getValue(f),L("root"))}}return _("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 M=Mp.castOption(r,l.i,"text");return(Mp.isValidTextValue(M)||M==="")&&(k.text=M),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 szt(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 NLe(e){return lzt(e.rpx1,e.transform.textPosAngle)}function lzt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var HLe=Te((Bmr,GLe)=>{"use strict";GLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:iCe(),categories:[],animatable:!0,attributes:O4(),layoutAttributes:Fj(),supplyDefaults:hCe(),supplyLayoutDefaults:pCe(),calc:U4().calc,crossTraceCalc:U4().crossTraceCalc,plot:j6().plot,style:aX().style,colorbar:ep(),meta:{}}});var jLe=Te((Omr,WLe)=>{"use strict";WLe.exports=HLe()});var ZLe=Te(qT=>{"use strict";var XLe=Cc();qT.name="treemap";qT.plot=function(e,t,r,n){XLe.plotBasePlot(qT.name,e,t,r,n)};qT.clean=function(e,t,r,n){XLe.cleanBasePlot(qT.name,e,t,r,n)}});var j2=Te((Nmr,YLe)=>{"use strict";YLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var X6=Te((Umr,$Le)=>{"use strict";var{hovertemplateAttrs:uzt,texttemplateAttrs:fzt,templatefallbackAttrs:KLe}=Ff(),czt=nc(),hzt=zc().attributes,X2=D2(),tm=O4(),JLe=j2(),sX=Su().extendFlat,dzt=Id().pattern;$Le.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:sX({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:dzt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tm.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},czt("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:sX({},X2.textfont,{}),editType:"calc"},text:X2.text,textinfo:tm.textinfo,texttemplate:fzt({editType:"plot"},{keys:JLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:KLe({editType:"plot"}),hovertext:X2.hovertext,hoverinfo:tm.hoverinfo,hovertemplate:uzt({},{keys:JLe.eventDataKeys}),hovertemplatefallback:KLe(),textfont:X2.textfont,insidetextfont:X2.insidetextfont,outsidetextfont:sX({},X2.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:X2.sort,root:tm.root,domain:hzt({name:"treemap",trace:!0,editType:"calc"})}});var lX=Te((Vmr,QLe)=>{"use strict";QLe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var iPe=Te((Gmr,rPe)=>{"use strict";var ePe=ei(),pzt=X6(),vzt=jl(),mzt=zc().defaults,yzt=i0().handleText,gzt=T_().TEXTPAD,_zt=F2().handleMarkerDefaults,tPe=_c(),xzt=tPe.hasColorscale,bzt=tPe.handleDefaults;rPe.exports=function(t,r,n,i){function a(b,v){return ePe.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",ePe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";yzt(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;_zt(t,r,i,a);var p=r._hasColorscale=xzt(t,"marker","colors")||(t.marker||{}).coloraxis;p?bzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:vzt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*gzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),mzt(r,i,a),r._length=null}});var aPe=Te((Hmr,nPe)=>{"use strict";var wzt=ei(),Azt=lX();nPe.exports=function(t,r){function n(i,a){return wzt.coerce(t,r,Azt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var fX=Te(uX=>{"use strict";var oPe=U4();uX.calc=function(e,t){return oPe.calc(e,t)};uX.crossTraceCalc=function(e){return oPe._runCrossTraceCalc("treemap",e)}});var cX=Te((jmr,sPe)=>{"use strict";sPe.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 NT=q4(),Tzt=cX();lPe.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=NT.treemap().tile(Szt(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)&&Tzt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Szt(e,t){switch(e){case"squarify":return NT.treemapSquarify.ratio(t);case"binary":return NT.treemapBinary;case"dice":return NT.treemapDice;case"slice":return NT.treemapSlice;default:return NT.treemapSliceDice}}});var Z6=Te((Zmr,hPe)=>{"use strict";var uPe=Jl(),UT=jl(),fPe=ei(),dX=i1(),Mzt=Ap().resizeText,Ezt=H6();function kzt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Mzt(e,t,"treemap"),t.each(function(r){var n=uPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){uPe.select(this).call(cPe,o,a,e,{hovered:!1})})})}function cPe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=dX.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=fPe.castOption(r,s,"marker.line.color")||UT.defaultLine,l=fPe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=UT.combine(UT.addOpacity(r._backgroundColor,.75),f),_;if(d===!0){var b=dX.getMaxDepth(r);isFinite(b)?dX.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var v=0;v<_;v++){var C=.5*v/_;f=UT.combine(UT.addOpacity(p,C),f)}}}e.call(Ezt,t,r,n,f).style("stroke-width",l).call(UT.stroke,u).style("opacity",h)}hPe.exports={style:kzt,styleOne:cPe}});var yPe=Te((Ymr,mPe)=>{"use strict";var dPe=Jl(),Y6=ei(),pPe=Mu(),Czt=Wf(),Lzt=hX(),vPe=Z6().styleOne,pX=j2(),VT=i1(),Pzt=$4(),vX=!0;mPe.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,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,M=s/x._entryDepth,m=VT.listPath(n.data,"id"),P=Lzt(k.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(F){var B=m.indexOf(F.data.id);return B===-1?!1:(F.x0=M*B,F.x1=M*(B+1),F.y0=o,F.y1=o+u,F.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,VT.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,vX,C,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var F=dPe.select(this);VT.setSliceCursor(F,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(F){F._x0=l(F.x0),F._x1=l(F.x1),F._y0=f(F.y0),F._y1=f(F.y1),F._hoverX=l(F.x1-Math.min(s,u)/2),F._hoverY=f(F.y1-u/2);var B=dPe.select(this),U=Y6.ensureSingle(B,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var H=b(N,vX,C,[s,u]);return function(re){return c(H(re))}}):U.attr("d",c),B.call(Pzt,n,t,r,{styleOne:vPe,eventDataKeys:pX.eventDataKeys,transitionTime:pX.CLICK_TRANSITION_TIME,transitionEasing:pX.CLICK_TRANSITION_EASING}).call(VT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(vPe,F,x,t,{hovered:!1}),F._text=(VT.getPtLabel(F)||"").split("
").join(" ")||"";var G=Y6.ensureSingle(B,"g","slicetext"),j=Y6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),W=Y6.ensureUniformFontSize(t,VT.determineTextFont(x,F,T.font,{onPathbar:!0}));j.text(F._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(pPe.font,W).call(Czt.convertToTspans,t),F.textBB=pPe.bBox(j.node()),F.transform=h(F,{fontSize:W.size,onPathbar:!0}),F.transform.fontSize=W.size,p?j.transition().attrTween("transform",function(N){var H=v(N,vX,C,[s,u]);return function(re){return d(H(re))}}):j.attr("transform",d(F))})}});var bPe=Te((Kmr,xPe)=>{"use strict";var gPe=Jl(),mX=(H2(),vb(G2)).interpolate,ix=i1(),ek=ei(),_Pe=T_().TEXTPAD,zzt=d2(),Izt=zzt.toMoveInsideBar,Rzt=Ap(),yX=Rzt.recordMinTextSize,Dzt=j2(),Fzt=yPe();function Z2(e){return ix.isHierarchyRoot(e)?"":ix.getPtId(e)}xPe.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=ix.findEntryWithLevel(c,u.level),d=gPe.select(n),p=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){p.remove(),_.remove();return}var b=ix.isHierarchyRoot(h),v=!o.uniformtext.mode&&ix.hasTransition(i),C=ix.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?k+P:-(m+P):0,F={x0:M,x1:M,y0:A,y1:A+m},B=function(Ae,ot,At){var vt=u.tiling.pad,Je=function(It){return It-vt<=ot.x0},He=function(It){return It+vt>=ot.x1},nt=function(It){return It-vt<=ot.y0},tt=function(It){return It+vt>=ot.y1};return Ae.x0===ot.x0&&Ae.x1===ot.x1&&Ae.y0===ot.y0&&Ae.y1===ot.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:Je(Ae.x0-vt)?0:He(Ae.x0-vt)?At[0]:Ae.x0,x1:Je(Ae.x1+vt)?0:He(Ae.x1+vt)?At[0]:Ae.x1,y0:nt(Ae.y0-vt)?0:tt(Ae.y0-vt)?At[1]:Ae.y0,y1:nt(Ae.y1+vt)?0:tt(Ae.y1+vt)?At[1]:Ae.y1}},U=null,G={},j={},W=null,N=function(Ae,ot){return ot?G[Z2(Ae)]:j[Z2(Ae)]},H=function(Ae,ot,At,vt){if(ot)return G[Z2(c)]||F;var Je=j[u.level]||At;return E(Ae)?B(Ae,Je,vt):{}};s.hasMultipleRoots&&b&&C++,u._maxDepth=C,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-x/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-k/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),ge=function(Ae){return re+Ae},ze=function(Ae){return ae+Ae},Le=ze(0),de=ge(0),te=function(Ae){return de+Ae},ke=function(Ae){return Le+Ae};function Ee(Ae,ot){return Ae+","+ot}var Se=te(0),Ge=function(Ae){Ae.x=Math.max(Se,Ae.x)},De=u.pathbar.edgeshape,xe=function(Ae){var ot=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),At=te(Math.min(Math.max(Ae.x1,Ae.x1),M)),vt=ke(Ae.y0),Je=ke(Ae.y1),He=m/2,nt={},tt={};nt.x=ot,tt.x=At,nt.y=tt.y=(vt+Je)/2;var It={x:ot,y:vt},Yt={x:At,y:vt},cr={x:At,y:Je},_r={x:ot,y:Je};return De===">"?(It.x-=He,Yt.x-=He,cr.x-=He,_r.x-=He):De==="/"?(cr.x-=He,_r.x-=He,nt.x-=He/2,tt.x-=He/2):De==="\\"?(It.x-=He,Yt.x-=He,nt.x-=He/2,tt.x-=He/2):De==="<"&&(nt.x-=He,tt.x-=He),Ge(It),Ge(_r),Ge(nt),Ge(Yt),Ge(cr),Ge(tt),"M"+Ee(It.x,It.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee(tt.x,tt.y)+"L"+Ee(cr.x,cr.y)+"L"+Ee(_r.x,_r.y)+"L"+Ee(nt.x,nt.y)+"Z"},Ne=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},je=ce("top"),Qe=ce("left"),gt=ce("right"),qt=ce("bottom"),at=function(Ae){var ot=ge(Ae.x0),At=ge(Ae.x1),vt=ze(Ae.y0),Je=ze(Ae.y1),He=At-ot,nt=Je-vt;if(!He||!nt)return"";var tt=u.marker.cornerradius||0,It=Math.min(tt,He/2,nt/2);It&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(je&&(It=Math.min(It,Ne.t)),Qe&&(It=Math.min(It,Ne.l)),gt&&(It=Math.min(It,Ne.r)),qt&&(It=Math.min(It,Ne.b)));var Yt=function(cr,_r){return It?"a"+Ee(It,It)+" 0 0 1 "+Ee(cr,_r):""};return"M"+Ee(ot,vt+It)+Yt(It,-It)+"L"+Ee(At-It,vt)+Yt(It,It)+"L"+Ee(At,Je-It)+Yt(-It,It)+"L"+Ee(ot+It,Je)+Yt(-It,-It)+"Z"},Ke=function(Ae,ot){var At=Ae.x0,vt=Ae.x1,Je=Ae.y0,He=Ae.y1,nt=Ae.textBB,tt=je||ot.isHeader&&!qt,It=tt?"start":qt?"end":"middle",Yt=ce("right"),cr=ce("left")||ot.onPathbar,_r=cr?-1:Yt?1:0;if(ot.isHeader){if(At+=(f?Ne:Ne.l)-_Pe,vt-=(f?Ne:Ne.r)-_Pe,At>=vt){var yr=(At+vt)/2;At=yr,vt=yr}var Ut;qt?(Ut=He-(f?Ne:Ne.b),Je{"use strict";var Bzt=Jl(),Ozt=i1(),qzt=Ap(),Nzt=qzt.clearMinTextSize,Uzt=V0().resizeText,wPe=bPe();APe.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(Nzt(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&&Ozt.hasTransition(n)){i&&(c=i());var d=Bzt.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){wPe(t,p,this,n,s)})})}else f.each(function(p){wPe(t,p,this,n,s)}),u.uniformtext.mode&&Uzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var kPe=Te(($mr,EPe)=>{"use strict";var TPe=Jl(),K6=ei(),SPe=Mu(),Vzt=Wf(),Gzt=hX(),MPe=Z6().styleOne,_X=j2(),nx=i1(),Hzt=$4(),Wzt=j6().formatSliceLabel,xX=!1;EPe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=!m&&!x.marker.pad.t||m&&!x.marker.pad.b,A=Gzt(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}}),F=A.descendants(),B=1/0,U=-1/0;F.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):(B=Math.min(B,re),U=Math.max(U,re))}),i=i.data(F,nx.getPtId),x._maxVisibleLayers=isFinite(U)?U-B+1:0,i.enter().append("g").classed("slice",!0),p(i,xX,C,[o,s],f),i.order();var G=null;if(d&&v){var j=nx.getPtId(v);i.each(function(H){G===null&&nx.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=TPe.select(this);nx.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=nx.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=TPe.select(this),ge=K6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?ge.transition().attrTween("d",function(Ee){var Se=_(Ee,xX,W(),[o,s]);return function(Ge){return f(Se(Ge))}}):ge.attr("d",f),ae.call(Hzt,n,t,r,{styleOne:MPe,eventDataKeys:_X.eventDataKeys,transitionTime:_X.CLICK_TRANSITION_TIME,transitionEasing:_X.CLICK_TRANSITION_EASING}).call(nx.setSliceCursor,t,{isTransitioning:t._transitioning}),ge.call(MPe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":nx.getPtLabel(H)||"":H._text=Wzt(H,n,x,r,T)||"";var ze=K6.ensureSingle(ae,"g","slicetext"),Le=K6.ensureSingle(ze,"text","",function(Ee){Ee.attr("data-notex",1)}),de=K6.ensureUniformFontSize(t,nx.determineTextFont(x,H,T.font)),te=H._text||" ",ke=re&&te.indexOf("
")===-1;Le.text(te).classed("slicetext",!0).attr("text-anchor",M?"end":k||ke?"start":"middle").call(SPe.font,de).call(Vzt.convertToTspans,t),H.textBB=SPe.bBox(Le.node()),H.transform=c(H,{fontSize:de.size,isHeader:re}),H.transform.fontSize=de.size,d?Le.transition().attrTween("transform",function(Ee){var Se=b(Ee,xX,W(),[o,s]);return function(Ge){return h(Se(Ge))}}):Le.attr("transform",h(H))}),G}});var LPe=Te((Qmr,CPe)=>{"use strict";var jzt=gX(),Xzt=kPe();CPe.exports=function(t,r,n,i){return jzt(t,r,n,i,{type:"treemap",drawDescendants:Xzt})}});var zPe=Te((eyr,PPe)=>{"use strict";PPe.exports={moduleType:"trace",name:"treemap",basePlotModule:ZLe(),categories:[],animatable:!0,attributes:X6(),layoutAttributes:lX(),supplyDefaults:iPe(),supplyLayoutDefaults:aPe(),calc:fX().calc,crossTraceCalc:fX().crossTraceCalc,plot:LPe(),style:Z6().style,colorbar:ep(),meta:{}}});var RPe=Te((tyr,IPe)=>{"use strict";IPe.exports=zPe()});var FPe=Te(GT=>{"use strict";var DPe=Cc();GT.name="icicle";GT.plot=function(e,t,r,n){DPe.plotBasePlot(GT.name,e,t,r,n)};GT.clean=function(e,t,r,n){DPe.cleanBasePlot(GT.name,e,t,r,n)}});var bX=Te((iyr,qPe)=>{"use strict";var{hovertemplateAttrs:Zzt,texttemplateAttrs:Yzt,templatefallbackAttrs:BPe}=Ff(),Kzt=nc(),Jzt=zc().attributes,tk=D2(),s0=O4(),J6=X6(),OPe=j2(),$zt=Su().extendFlat,Qzt=Id().pattern;qPe.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:J6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:$zt({colors:s0.marker.colors,line:s0.marker.line,pattern:Qzt,editType:"calc"},Kzt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:J6.pathbar,text:tk.text,textinfo:s0.textinfo,texttemplate:Yzt({editType:"plot"},{keys:OPe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:BPe({editType:"plot"}),hovertext:tk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:Zzt({},{keys:OPe.eventDataKeys}),hovertemplatefallback:BPe(),textfont:tk.textfont,insidetextfont:tk.insidetextfont,outsidetextfont:J6.outsidetextfont,textposition:J6.textposition,sort:tk.sort,root:s0.root,domain:Jzt({name:"icicle",trace:!0,editType:"calc"})}});var wX=Te((nyr,NPe)=>{"use strict";NPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var HPe=Te((ayr,GPe)=>{"use strict";var UPe=ei(),eIt=bX(),tIt=jl(),rIt=zc().defaults,iIt=i0().handleText,nIt=T_().TEXTPAD,aIt=F2().handleMarkerDefaults,VPe=_c(),oIt=VPe.hasColorscale,sIt=VPe.handleDefaults;GPe.exports=function(t,r,n,i){function a(d,p){return UPe.coerce(t,r,eIt,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",UPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";iIt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),aIt(t,r,i,a);var h=r._hasColorscale=oIt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&sIt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:tIt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*nIt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),rIt(r,i,a),r._length=null}});var jPe=Te((oyr,WPe)=>{"use strict";var lIt=ei(),uIt=wX();WPe.exports=function(t,r){function n(i,a){return lIt.coerce(t,r,uIt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var TX=Te(AX=>{"use strict";var XPe=U4();AX.calc=function(e,t){return XPe.calc(e,t)};AX.crossTraceCalc=function(e){return XPe._runCrossTraceCalc("icicle",e)}});var YPe=Te((lyr,ZPe)=>{"use strict";var fIt=q4(),cIt=cX();ZPe.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=fIt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&cIt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var SX=Te((uyr,eze)=>{"use strict";var KPe=Jl(),JPe=jl(),$Pe=ei(),hIt=Ap().resizeText,dIt=H6();function pIt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");hIt(e,t,"icicle"),t.each(function(r){var n=KPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){KPe.select(this).call(QPe,o,a,e)})})}function QPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=$Pe.castOption(r,o,"marker.line.color")||JPe.defaultLine,u=$Pe.castOption(r,o,"marker.line.width")||0;e.call(dIt,t,r,n).style("stroke-width",u).call(JPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}eze.exports={style:pIt,styleOne:QPe}});var aze=Te((fyr,nze)=>{"use strict";var tze=Jl(),$6=ei(),rze=Mu(),vIt=Wf(),mIt=YPe(),ize=SX().styleOne,MX=j2(),HT=i1(),yIt=$4(),gIt=j6().formatSliceLabel,EX=!1;nze.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=mIt(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}),A=P.descendants(),F=1/0,B=-1/0;A.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):(F=Math.min(F,H),B=Math.max(B,H))}),i=i.data(A,HT.getPtId),x._maxVisibleLayers=isFinite(B)?B-F+1:0,i.enter().append("g").classed("slice",!0),p(i,EX,C,[o,s],f),i.order();var U=null;if(d&&v){var G=HT.getPtId(v);i.each(function(N){U===null&&HT.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=tze.select(this);HT.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=tze.select(this),re=$6.ensureSingle(H,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Le){var de=_(Le,EX,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(yIt,n,t,r,{styleOne:ize,eventDataKeys:MX.eventDataKeys,transitionTime:MX.CLICK_TRANSITION_TIME,transitionEasing:MX.CLICK_TRANSITION_EASING}).call(HT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(ize,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=gIt(N,n,x,r,T)||"";var ae=$6.ensureSingle(H,"g","slicetext"),ge=$6.ensureSingle(ae,"text","",function(Le){Le.attr("data-notex",1)}),ze=$6.ensureUniformFontSize(t,HT.determineTextFont(x,N,T.font));ge.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(rze.font,ze).call(vIt.convertToTspans,t),N.textBB=rze.bBox(ge.node()),N.transform=c(N,{fontSize:ze.size}),N.transform.fontSize=ze.size,d?ge.transition().attrTween("transform",function(Le){var de=b(Le,EX,j(),[o,s]);return function(te){return h(de(te))}}):ge.attr("transform",h(N))}),U}});var sze=Te((cyr,oze)=>{"use strict";var _It=gX(),xIt=aze();oze.exports=function(t,r,n,i){return _It(t,r,n,i,{type:"icicle",drawDescendants:xIt})}});var uze=Te((hyr,lze)=>{"use strict";lze.exports={moduleType:"trace",name:"icicle",basePlotModule:FPe(),categories:[],animatable:!0,attributes:bX(),layoutAttributes:wX(),supplyDefaults:HPe(),supplyLayoutDefaults:jPe(),calc:TX().calc,crossTraceCalc:TX().crossTraceCalc,plot:sze(),style:SX().style,colorbar:ep(),meta:{}}});var cze=Te((dyr,fze)=>{"use strict";fze.exports=uze()});var dze=Te(WT=>{"use strict";var hze=Cc();WT.name="funnelarea";WT.plot=function(e,t,r,n){hze.plotBasePlot(WT.name,e,t,r,n)};WT.clean=function(e,t,r,n){hze.cleanBasePlot(WT.name,e,t,r,n)}});var kX=Te((vyr,vze)=>{"use strict";var ap=D2(),bIt=Gf(),wIt=zc().attributes,{hovertemplateAttrs:AIt,texttemplateAttrs:TIt,templatefallbackAttrs:pze}=Ff(),Y2=Su().extendFlat;vze.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:Y2({},ap.marker.line.color,{dflt:null}),width:Y2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:Y2({},ap.scalegroup,{}),textinfo:Y2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:TIt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:pze({editType:"plot"}),hoverinfo:Y2({},bIt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:AIt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:pze(),textposition:Y2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:Y2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:wIt({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 CX=Te((myr,mze)=>{"use strict";var SIt=_6().hiddenlabels;mze.exports={hiddenlabels:SIt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var _ze=Te((yyr,gze)=>{"use strict";var yze=ei(),MIt=kX(),EIt=zc().defaults,kIt=i0().handleText,CIt=F2().handleLabelsAndValues,LIt=F2().handleMarkerDefaults;gze.exports=function(t,r,n,i){function a(_,b){return yze.coerce(t,r,MIt,_,b)}var o=a("labels"),s=a("values"),u=CIt(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,LIt(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");kIt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");EIt(r,i,a);var p=a("title.text");p&&(a("title.position"),yze.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var bze=Te((gyr,xze)=>{"use strict";var PIt=ei(),zIt=CX();xze.exports=function(t,r){function n(i,a){return PIt.coerce(t,r,zIt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var LX=Te((_yr,Aze)=>{"use strict";var wze=ET();function IIt(e,t){return wze.calc(e,t)}function RIt(e){wze.crossTraceCalc(e,{type:"funnelarea"})}Aze.exports={calc:IIt,crossTraceCalc:RIt}});var kze=Te((xyr,Eze)=>{"use strict";var K2=Jl(),PX=Mu(),ax=ei(),DIt=ax.strScale,Tze=ax.strTranslate,Sze=Wf(),FIt=d2(),BIt=FIt.toMoveInsideBar,Mze=Ap(),OIt=Mze.recordMinTextSize,qIt=Mze.clearMinTextSize,NIt=m_(),jT=A6(),UIt=jT.attachFxHandlers,VIt=jT.determineInsideTextFont,GIt=jT.layoutAreas,HIt=jT.prerenderTitles,WIt=jT.positionTitleOutside,jIt=jT.formatSliceLabel;Eze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;qIt("funnelarea",i),HIt(r,t),GIt(r,i._size),ax.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=K2.select(this),s=a[0],u=s.trace;ZIt(a),o.each(function(){var l=K2.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){K2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,_=K2.select(this),b=_.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(UIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+zX(c.TR,c.BR)+zX(c.BR,c.BL)+zX(c.BL,c.TL)+"Z";b.attr("d",v),jIt(t,c,s);var C=NIt.castOption(u.textposition,c.pts),E=_.selectAll("g.slicetext").data(c.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=ax.ensureSingle(K2.select(this),"text","",function(F){F.attr("data-notex",1)}),L=ax.ensureUniformFontSize(t,VIt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(PX.font,L).call(Sze.convertToTspans,t);var x=PX.bBox(T.node()),k,M,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;M=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,k=BIt(M,m,P,A,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,OIt(u.type,k,i),a[h].transform=k,ax.setTransormAndDisplay(T,k)})});var f=K2.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=ax.ensureSingle(K2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=ax.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(PX.font,u.title.font).call(Sze.convertToTspans,t);var d=WIt(s,i._size);c.attr("transform",Tze(d.x,d.y)+DIt(Math.min(1,d.scale))+Tze(d.tx,d.ty))})})})};function zX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function XIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function ZIt(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 B=Math.sqrt(l);return{x:B,y:-B}}function c(){var B=f();return[B.x,B.y]}var h,d=[];d.push(c());var p,_;for(p=e.length-1;p>-1;p--)if(_=e[p],!_.hidden){var b=_.v/u;l+=b,d.push(c())}var v=1/0,C=-1/0;for(p=0;p-1;p--)if(_=e[p],!_.hidden){P+=1;var A=d[P][0],F=d[P][1];_.TL=[-A,F],_.TR=[A,F],_.BL=M,_.BR=m,_.pxmid=XIt(_.TR,_.BR),M=_.TL,m=_.TR}}});var Pze=Te((byr,Lze)=>{"use strict";var Cze=Jl(),YIt=X3(),KIt=Ap().resizeText;Lze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");KIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=Cze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Cze.select(this).call(YIt,s,a,t)})})}});var Ize=Te((wyr,zze)=>{"use strict";zze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:dze(),categories:["pie-like","funnelarea","showLegend"],attributes:kX(),layoutAttributes:CX(),supplyDefaults:_ze(),supplyLayoutDefaults:bze(),calc:LX().calc,crossTraceCalc:LX().crossTraceCalc,plot:kze(),style:Pze(),styleOne:X3(),meta:{}}});var Dze=Te((Ayr,Rze)=>{"use strict";Rze.exports=Ize()});var Od=Te((Tyr,Fze)=>{(function(){var e={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()}},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),_=Math.cos(l);return o[0]=f+d*p+h*_,o[1]=s[1],o[2]=c+d*_-h*p,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}},216:function(i){"use strict";i.exports=a;function a(o,s){for(var u={},l=0;l1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var _=1;_=0;--N){var ke=j[N];H=ke[0];var Ee=U[H],Se=Ee[0],Ge=Ee[1],De=B[Se],xe=B[Ge];if((De[0]-xe[0]||De[1]-xe[1])<0){var Ne=Se;Se=Ge,Ge=Ne}Ee[0]=Se;var ce=Ee[1]=ke[1],je;for(W&&(je=Ee[2]);N>0&&j[N-1][0]===H;){var ke=j[--N],Qe=ke[1];W?U.push([ce,Qe,je]):U.push([ce,Qe]),ce=Qe}W?U.push([ce,Ge,je]):U.push([ce,Ge])}return re}function x(B,U,G){for(var j=U.length,W=new s(j),N=[],H=0;HU[2]?1:0)}function m(B,U,G){if(B.length!==0){if(U)for(var j=0;j0||H.length>0}function F(B,U,G){var j;if(G){j=U;for(var W=new Array(U.length),N=0;N{});function Yy(){}function _Ce(){return this.rgb().formatHex()}function MPt(){return this.rgb().formatHex8()}function EPt(){return MCe(this).formatHsl()}function xCe(){return this.rgb().formatRgb()}function ex(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=_Pt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?bCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?M6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?M6(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=xPt.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=wPt.exec(e))?M6(t[1],t[2],t[3],t[4]):(t=APt.exec(e))?M6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TPt.exec(e))?TCe(t[1],t[2]/100,t[3]/100,1):(t=SPt.exec(e))?TCe(t[1],t[2]/100,t[3]/100,t[4]):gCe.hasOwnProperty(e)?bCe(gCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function bCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function M6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function H4(e){return e instanceof Yy||(e=ex(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function zT(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 wCe(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}`}function kPt(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}${B2((isNaN(this.opacity)?1:this.opacity)*255)}`}function ACe(){let e=k6(this.opacity);return`${e===1?"rgb(":"rgba("}${O2(this.r)}, ${O2(this.g)}, ${O2(this.b)}${e===1?")":`, ${e})`}`}function k6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function O2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B2(e){return e=O2(e),(e<16?"0":"")+e.toString(16)}function TCe(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 MCe(e){if(e instanceof Km)return new Km(e.h,e.s,e.l,e.opacity);if(e instanceof Yy||(e=ex(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?MCe(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 SCe(e){return e=(e||0)%360,e<0?e+360:e}function E6(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 Q_,q2,PT,G4,Zy,_Pt,xPt,bPt,wPt,APt,TPt,SPt,gCe,C6=tc(()=>{S6();Q_=.7,q2=1/Q_,PT="\\s*([+-]?\\d+)\\s*",G4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_Pt=/^#([0-9a-f]{3,8})$/,xPt=new RegExp(`^rgb\\(${PT},${PT},${PT}\\)$`),bPt=new RegExp(`^rgb\\(${Zy},${Zy},${Zy}\\)$`),wPt=new RegExp(`^rgba\\(${PT},${PT},${PT},${G4}\\)$`),APt=new RegExp(`^rgba\\(${Zy},${Zy},${Zy},${G4}\\)$`),TPt=new RegExp(`^hsl\\(${G4},${Zy},${Zy}\\)$`),SPt=new RegExp(`^hsla\\(${G4},${Zy},${Zy},${G4}\\)$`),gCe={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(Yy,ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_Ce,formatHex:_Ce,formatHex8:MPt,formatHsl:EPt,formatRgb:xCe,toString:xCe});t1(xd,zT,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(O2(this.r),O2(this.g),O2(this.b),k6(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:wCe,formatHex:wCe,formatHex8:kPt,formatRgb:ACe,toString:ACe}));t1(Km,W4,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new Km(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,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(SCe(this.h),E6(this.s),E6(this.l),k6(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=k6(this.opacity);return`${e===1?"hsl(":"hsla("}${SCe(this.h)}, ${E6(this.s)*100}%, ${E6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var L6,P6,Oj=tc(()=>{L6=Math.PI/180,P6=180/Math.PI});function zCe(e){if(e instanceof Ky)return new Ky(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return ICe(e);e instanceof xd||(e=H4(e));var t=Vj(e.r),r=Vj(e.g),n=Vj(e.b),i=qj((.2225045*t+.7168786*r+.0606169*n)/kCe),a,o;return t===r&&r===n?a=o=i:(a=qj((.4360747*t+.3850649*r+.1430804*n)/ECe),o=qj((.0139322*t+.0971045*r+.7141733*n)/CCe)),new Ky(116*i-16,500*(a-i),200*(i-o),e.opacity)}function RT(e,t,r,n){return arguments.length===1?zCe(e):new Ky(e,t,r,n==null?1:n)}function Ky(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function qj(e){return e>CPt?Math.pow(e,1/3):e/PCe+LCe}function Nj(e){return e>IT?e*e*e:PCe*(e-LCe)}function Uj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Vj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function LPt(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Ky||(e=zCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{S6();C6();Oj();z6=18,ECe=.96422,kCe=1,CCe=.82521,LCe=4/29,IT=6/29,PCe=3*IT*IT,CPt=IT*IT*IT;t1(Ky,RT,$_(Yy,{brighter(e){return new Ky(this.l+z6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ky(this.l-z6*(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=ECe*Nj(t),e=kCe*Nj(e),r=CCe*Nj(r),new xd(Uj(3.1338561*t-1.6168667*e-.4906146*r),Uj(-.9787684*t+1.9161415*e+.033454*r),Uj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,j4,$_(Yy,{brighter(e){return new r1(this.h,this.c,this.l+z6*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-z6*(e==null?1:e),this.opacity)},rgb(){return ICe(this).rgb()}}))});function PPt(e){if(e instanceof N2)return new N2(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=(BCe*n+DCe*t-FCe*r)/(BCe+DCe-FCe),a=n-i,o=(X4*(r-i)-Hj*a)/I6,s=Math.sqrt(o*o+a*a)/(X4*i*(1-i)),u=s?Math.atan2(o,a)*P6-120:NaN;return new N2(u<0?u+360:u,s,i,e.opacity)}function DT(e,t,r,n){return arguments.length===1?PPt(e):new N2(e,t,r,n==null?1:n)}function N2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var OCe,Gj,Hj,I6,X4,DCe,FCe,BCe,qCe=tc(()=>{S6();C6();Oj();OCe=-.14861,Gj=1.78277,Hj=-.29227,I6=-.90649,X4=1.97294,DCe=X4*I6,FCe=X4*Gj,BCe=Gj*Hj-I6*OCe;t1(N2,DT,$_(Yy,{brighter(e){return e=e==null?q2:Math.pow(q2,e),new N2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new N2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*L6,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*(OCe*n+Gj*i)),255*(t+r*(Hj*n+I6*i)),255*(t+r*(X4*n)),this.opacity)}}))});var U2=tc(()=>{C6();RCe();qCe()});function Wj(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 R6(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 F6(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 Wj((r-n/t)*t,i,a,o,s)}}var jj=tc(()=>{D6()});var FT,Xj=tc(()=>{FT=e=>()=>e});function NCe(e,t){return function(r){return e+r*t}}function zPt(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 tx(e,t){var r=t-e;return r?NCe(e,r>180||r<-180?r-360*Math.round(r/360):r):FT(isNaN(e)?t:e)}function UCe(e){return(e=+e)==1?ph:function(t,r){return r-t?zPt(t,r,e):FT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?NCe(e,r):FT(isNaN(e)?t:e)}var V2=tc(()=>{Xj()});function VCe(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{U2();D6();jj();V2();Z4=function e(t){var r=UCe(t);function n(i,a){var o=r((i=zT(i)).r,(a=zT(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);GCe=VCe(R6),HCe=VCe(F6)});function BT(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 WCe(e,t){return(B6(t)?BT:Yj)(e,t)}function Yj(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();O6()});function q6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Jj=tc(()=>{});function Fv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var K4=tc(()=>{});function N6(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]=rx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var $j=tc(()=>{Y4()});function IPt(e){return function(){return e}}function RPt(e){return function(t){return e(t)+""}}function U6(e,t){var r=eX.lastIndex=Qj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=eX.exec(e))&&(i=Qj.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=Qj.lastIndex;return r{K4();eX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qj=new RegExp(eX.source,"g")});function rx(e,t){var r=typeof t,n;return t==null||r==="boolean"?FT(t):(r==="number"?Fv:r==="string"?(n=ex(t))?(t=n,Z4):U6:t instanceof ex?Z4:t instanceof Date?q6:B6(t)?BT:Array.isArray(t)?Yj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?N6:Fv)(e,t)}var Y4=tc(()=>{U2();Zj();Kj();Jj();K4();$j();tX();Xj();O6()});function jCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var XCe=tc(()=>{});function ZCe(e,t){var r=tx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var YCe=tc(()=>{V2()});function KCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var JCe=tc(()=>{});function rX(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{$Ce=180/Math.PI,V6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function eLe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?V6:rX(t.a,t.b,t.c,t.d,t.e,t.f)}function tLe(e){return e==null?V6:(G6||(G6=document.createElementNS("http://www.w3.org/2000/svg","g")),G6.setAttribute("transform",e),(e=G6.transform.baseVal.consolidate())?(e=e.matrix,rX(e.a,e.b,e.c,e.d,e.e,e.f)):V6)}var G6,rLe=tc(()=>{QCe()});function iLe(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 _=d.push("translate(",null,t,null,r);p.push({i:_-4,x:Fv(l,c)},{i:_-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 _=d.push(i(d)+"scale(",null,",",null,")");p.push({i:_-4,x:Fv(l,c)},{i:_-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,_=h.length,b;++p<_;)c[(b=h[p]).i]=b.x(d);return c.join("")}}}var nLe,aLe,oLe=tc(()=>{K4();rLe();nLe=iLe(eLe,"px, ","px)","deg)"),aLe=iLe(tLe,", ",")",")")});function sLe(e){return((e=Math.exp(e))+1/e)/2}function FPt(e){return((e=Math.exp(e))-1/e)/2}function BPt(e){return((e=Math.exp(2*e))-1)/(e+1)}var DPt,lLe,uLe=tc(()=>{DPt=1e-12;lLe=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,_=d*d+p*p,b,v;if(_{U2();V2();cLe=fLe(tx),hLe=fLe(ph)});function iX(e,t){var r=ph((e=RT(e)).l,(t=RT(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 pLe=tc(()=>{U2();V2()});function vLe(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 mLe,yLe,gLe=tc(()=>{U2();V2();mLe=vLe(tx),yLe=vLe(ph)});function _Le(e){return function t(r){r=+r;function n(i,a){var o=e((i=DT(i)).h,(a=DT(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 xLe,bLe,wLe=tc(()=>{U2();V2();xLe=_Le(tx),bLe=_Le(ph)});function nX(e,t){t===void 0&&(t=e,e=rx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{Y4()});function TLe(e,t){for(var r=new Array(t),n=0;n{});var G2={};Cee(G2,{interpolate:()=>rx,interpolateArray:()=>WCe,interpolateBasis:()=>R6,interpolateBasisClosed:()=>F6,interpolateCubehelix:()=>xLe,interpolateCubehelixLong:()=>bLe,interpolateDate:()=>q6,interpolateDiscrete:()=>jCe,interpolateHcl:()=>mLe,interpolateHclLong:()=>yLe,interpolateHsl:()=>cLe,interpolateHslLong:()=>hLe,interpolateHue:()=>ZCe,interpolateLab:()=>iX,interpolateNumber:()=>Fv,interpolateNumberArray:()=>BT,interpolateObject:()=>N6,interpolateRgb:()=>Z4,interpolateRgbBasis:()=>GCe,interpolateRgbBasisClosed:()=>HCe,interpolateRound:()=>KCe,interpolateString:()=>U6,interpolateTransformCss:()=>nLe,interpolateTransformSvg:()=>aLe,interpolateZoom:()=>lLe,piecewise:()=>nX,quantize:()=>TLe});var H2=tc(()=>{Y4();Kj();D6();jj();Jj();XCe();YCe();K4();O6();$j();JCe();tX();oLe();uLe();Zj();dLe();pLe();gLe();wLe();ALe();SLe()});var H6=Te((zmr,MLe)=>{"use strict";var OPt=Mu(),qPt=jl();MLe.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),OPt.pointStyle(t,n,i,r)}else qPt.fill(t,u)}});var aX=Te((Imr,PLe)=>{"use strict";var ELe=Jl(),kLe=jl(),CLe=ei(),NPt=Ap().resizeText,UPt=H6();function VPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");NPt(e,t,"sunburst"),t.each(function(r){var n=ELe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){ELe.select(this).call(LLe,o,a,e)})})}function LLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=CLe.castOption(r,o,"marker.line.color")||kLe.defaultLine,u=CLe.castOption(r,o,"marker.line.width")||0;e.call(UPt,t,r,n).style("stroke-width",u).call(kLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}PLe.exports={style:VPt,styleOne:LLe}});var i1=Te(yf=>{"use strict";var W2=ei(),GPt=jl(),HPt=Em(),zLe=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 ILe(e){return e.data.data.pid}yf.getParent=function(e,t){return yf.findEntryWithLevel(e,ILe(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=zLe.formatPieValue;yf.formatPercent=function(e,t){var r=W2.formatPercent(e,0);return r==="0%"&&(r=zLe.formatPiePercent(e,t)),r}});var Q4=Te((Dmr,FLe)=>{"use strict";var OT=Jl(),RLe=$l(),XPt=iv().appendArrayPointValue,J4=Xc(),DLe=ei(),ZPt=k3(),od=i1(),YPt=m_(),KPt=YPt.formatPieValue;FLe.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 _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,C=v.i,E=od.isHierarchyRoot(p),T=od.getParent(u,p),L=od.getValue(p),x=function(ze){return DLe.castOption(b,C,ze)},k=x("hovertemplate"),M=J4.castHoverinfo(b,_,C),m=_.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var A,F;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),F=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,F=p._hoverY);var B={},U=[],G=[],j=function(ze){return U.indexOf(ze)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),B.label=v.label,j("label")&&B.label&&G.push(B.label),v.hasOwnProperty("v")&&(B.value=v.v,B.valueLabel=KPt(B.value,m),j("value")&&G.push(B.valueLabel)),B.currentPath=p.currentPath=od.getPath(p.data),j("current path")&&!E&&G.push(B.currentPath);var W,N=[],H=function(){N.indexOf(W)===-1&&(G.push(W),N.push(W))};B.percentParent=p.percentParent=L/od.getValue(T),B.parent=p.parentString=od.getPtLabel(T),j("percent parent")&&(W=od.formatPercent(B.percentParent,m)+" of "+B.parent,H()),B.percentEntry=p.percentEntry=L/od.getValue(r),B.entry=p.entry=od.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(W=od.formatPercent(B.percentEntry,m)+" of "+B.entry,H()),B.percentRoot=p.percentRoot=L/od.getValue(u),B.root=p.root=od.getPtLabel(u),j("percent root")&&!E&&(W=od.formatPercent(B.percentRoot,m)+" of "+B.root,H()),B.text=x("hovertext")||x("text"),j("text")&&(W=B.text,DLe.isValidTextValue(W)&&G.push(W)),P=[$4(p,b,a.eventDataKeys)];var re={trace:b,y:F,_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:B,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];J4.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var ge=t.select("path.surface");a.styleOne(ge,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[$4(p,b,a.eventDataKeys)],event:OT.event})}},h=function(p){var _=n._fullLayout,b=n._fullData[s.index],v=OT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=OT.event,n.emit("plotly_unhover",{points:[$4(v,b,a.eventDataKeys)],event:OT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(J4.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),f){var C=t.select("path.surface");a.styleOne(C,v,b,n,{hovered:!1})}},d=function(p){var _=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),T=od.getPtId(E),L={points:[$4(p,b,a.eventDataKeys)],event:OT.event};v||(L.nextLevel=T);var x=ZPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[$4(p,b,a.eventDataKeys)],J4.click(n,OT.event)),!v&&x!==!1&&!n._dragging&&!n._transitioning){RLe.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};J4.loneUnhover(_._hoverlayer.node()),RLe.call("animate",n,k,M)}};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(),JPt=N4(),Jm=(H2(),vb(G2)).interpolate,BLe=Mu(),Mp=ei(),$Pt=Wf(),ULe=Ap(),OLe=ULe.recordMinTextSize,QPt=ULe.clearMinTextSize,VLe=A6(),ezt=m_().getRotationAngle,tzt=VLe.computeTransform,rzt=VLe.transformInsideText,izt=aX().styleOne,nzt=V0().resizeText,azt=Q4(),oX=Dj(),qf=i1();W6.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(QPt("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){qLe(e,c,this,r)})})}else o.each(function(c){qLe(e,c,this,r)}),i.uniformtext.mode&&nzt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function qLe(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,_=f.domain,b=p.w*(_.x[1]-_.x[0]),v=p.h*(_.y[1]-_.y[0]),C=.5*Math.min(b,v),E=l.cx=p.l+p.w*(_.x[1]+_.x[0])/2,T=l.cy=p.t+p.h*(1-_.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=ozt(h).descendants(),M=h.height+1,m=0,P=d;l.hasMultipleRoots&&qf.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,m=1,P+=1),k=k.filter(function(de){return de.y1<=P});var A=ezt(f.rotation);A&&k.forEach(function(de){de.x0+=A,de.x1+=A});var F=Math.min(M,d),B=function(de){return(de-m)/F*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,T)},j=function(de){return E+NLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},W=function(de){return T+NLe(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(Ee){var Se=ae(Ee);return function(Ge){return G(Se(Ge))}});var ke=de.select("g.slicetext");ke.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),ke=Mp.ensureSingle(te,"path","surface",function(Ne){Ne.style("pointer-events",i?"none":"all")});de.rpx0=B(de.y0),de.rpx1=B(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=szt(de,f),o?ke.transition().attrTween("d",function(Ne){var ce=ge(Ne);return function(je){return G(ce(je))}}):ke.attr("d",G),te.call(azt,h,e,t,{eventDataKeys:oX.eventDataKeys,transitionTime:oX.CLICK_TRANSITION_TIME,transitionEasing:oX.CLICK_TRANSITION_EASING}).call(qf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(izt,de,f,e);var Ee=Mp.ensureSingle(te,"g","slicetext"),Se=Mp.ensureSingle(Ee,"text","",function(Ne){Ne.attr("data-notex",1)}),Ge=Mp.ensureUniformFontSize(e,qf.determineTextFont(f,de,a.font));Se.text(W6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(BLe.font,Ge).call($Pt.convertToTspans,e);var De=BLe.bBox(Se.node());de.transform=rzt(De,de,l),de.transform.targetX=j(de),de.transform.targetY=W(de);var xe=function(Ne,ce){var je=Ne.transform;return tzt(je,ce),je.fontSize=Ge.size,OLe(f.type,je,a),Mp.getTextTransform(je)};o?Se.transition().attrTween("transform",function(Ne){var ce=ze(Ne);return function(je){return xe(ce(je),De)}}):Se.attr("transform",xe(de,De))});function ae(de){var te=qf.getPtId(de),ke=x[te],Ee=x[qf.getPtId(h)],Se;if(Ee){var Ge=(de.x1>Ee.x1?2*Math.PI:0)+A;Se=de.rpx1N?2*Math.PI:0)+A;ke={x0:Se,x1:Se}}else ke={rpx0:C,rpx1:C},Mp.extendFlat(ke,Le(de));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Jm(ke,Ee)}function ze(de){var te=x[qf.getPtId(de)],ke,Ee=de.transform;if(te)ke=te;else if(ke={rpx1:de.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(de.parent)if(N){var Se=de.x1>N?2*Math.PI:0;ke.x0=ke.x1=Se}else Mp.extendFlat(ke,Le(de));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ge=Jm(ke.transform.textPosAngle,de.transform.textPosAngle),De=Jm(ke.rpx1,de.rpx1),xe=Jm(ke.x0,de.x0),Ne=Jm(ke.x1,de.x1),ce=Jm(ke.transform.scale,Ee.scale),je=Jm(ke.transform.rotate,Ee.rotate),Qe=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,gt=Jm(ke.transform.rCenter,Ee.rCenter),qt=function(at){return gt(Math.pow(at,Qe))};return function(at){var Ke=De(at),Ct=xe(at),wt=Ne(at),Mt=qt(at),Bt=U(Ke,(Ct+wt)/2),Zt=Ge(at),Et={pxmid:Bt,rpx1:Ke,transform:{textPosAngle:Zt,rCenter:Mt,x:Ee.x,y:Ee.y}};return OLe(f.type,Ee,a),{transform:{targetX:j(Et),targetY:W(Et),scale:ce(at),rotate:je(at),rCenter:Mt}}}}function Le(de){var te=de.parent,ke=x[qf.getPtId(te)],Ee={};if(ke){var Se=te.children,Ge=Se.indexOf(de),De=Se.length,xe=Jm(ke.x0,ke.x1);Ee.x0=xe(Ge/De),Ee.x1=xe(Ge/De)}else Ee.x0=Ee.x1=0;return Ee}}function ozt(e){return JPt.partition().size([2*Math.PI,e.height+1])(e)}W6.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("+"),_=function(m){return p.indexOf(m)!==-1},b=[],v;if(_("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&_("value")&&b.push(qf.formatValue(l.v,s)),!c){_("current path")&&b.push(qf.getPath(e.data));var C=0;_("percent parent")&&C++,_("percent entry")&&C++,_("percent root")&&C++;var E=C>1;if(C){var T,L=function(m){v=qf.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};_("percent parent")&&!c&&(T=d/qf.getValue(h),L("parent")),_("percent entry")&&(T=d/qf.getValue(t),L("entry")),_("percent root")&&(T=d/qf.getValue(f),L("root"))}}return _("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 M=Mp.castOption(r,l.i,"text");return(Mp.isValidTextValue(M)||M==="")&&(k.text=M),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 szt(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 NLe(e){return lzt(e.rpx1,e.transform.textPosAngle)}function lzt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var HLe=Te((Bmr,GLe)=>{"use strict";GLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:iCe(),categories:[],animatable:!0,attributes:q4(),layoutAttributes:Fj(),supplyDefaults:hCe(),supplyLayoutDefaults:pCe(),calc:V4().calc,crossTraceCalc:V4().crossTraceCalc,plot:j6().plot,style:aX().style,colorbar:ep(),meta:{}}});var jLe=Te((Omr,WLe)=>{"use strict";WLe.exports=HLe()});var ZLe=Te(qT=>{"use strict";var XLe=Cc();qT.name="treemap";qT.plot=function(e,t,r,n){XLe.plotBasePlot(qT.name,e,t,r,n)};qT.clean=function(e,t,r,n){XLe.cleanBasePlot(qT.name,e,t,r,n)}});var j2=Te((Nmr,YLe)=>{"use strict";YLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var X6=Te((Umr,$Le)=>{"use strict";var{hovertemplateAttrs:uzt,texttemplateAttrs:fzt,templatefallbackAttrs:KLe}=Ff(),czt=nc(),hzt=zc().attributes,X2=D2(),tm=q4(),JLe=j2(),sX=Su().extendFlat,dzt=Id().pattern;$Le.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:sX({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:dzt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tm.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},czt("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:sX({},X2.textfont,{}),editType:"calc"},text:X2.text,textinfo:tm.textinfo,texttemplate:fzt({editType:"plot"},{keys:JLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:KLe({editType:"plot"}),hovertext:X2.hovertext,hoverinfo:tm.hoverinfo,hovertemplate:uzt({},{keys:JLe.eventDataKeys}),hovertemplatefallback:KLe(),textfont:X2.textfont,insidetextfont:X2.insidetextfont,outsidetextfont:sX({},X2.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:X2.sort,root:tm.root,domain:hzt({name:"treemap",trace:!0,editType:"calc"})}});var lX=Te((Vmr,QLe)=>{"use strict";QLe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var iPe=Te((Gmr,rPe)=>{"use strict";var ePe=ei(),pzt=X6(),vzt=jl(),mzt=zc().defaults,yzt=i0().handleText,gzt=T_().TEXTPAD,_zt=F2().handleMarkerDefaults,tPe=_c(),xzt=tPe.hasColorscale,bzt=tPe.handleDefaults;rPe.exports=function(t,r,n,i){function a(b,v){return ePe.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",ePe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";yzt(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;_zt(t,r,i,a);var p=r._hasColorscale=xzt(t,"marker","colors")||(t.marker||{}).coloraxis;p?bzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:vzt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*gzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),mzt(r,i,a),r._length=null}});var aPe=Te((Hmr,nPe)=>{"use strict";var wzt=ei(),Azt=lX();nPe.exports=function(t,r){function n(i,a){return wzt.coerce(t,r,Azt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var fX=Te(uX=>{"use strict";var oPe=V4();uX.calc=function(e,t){return oPe.calc(e,t)};uX.crossTraceCalc=function(e){return oPe._runCrossTraceCalc("treemap",e)}});var cX=Te((jmr,sPe)=>{"use strict";sPe.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 NT=N4(),Tzt=cX();lPe.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=NT.treemap().tile(Szt(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)&&Tzt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Szt(e,t){switch(e){case"squarify":return NT.treemapSquarify.ratio(t);case"binary":return NT.treemapBinary;case"dice":return NT.treemapDice;case"slice":return NT.treemapSlice;default:return NT.treemapSliceDice}}});var Z6=Te((Zmr,hPe)=>{"use strict";var uPe=Jl(),UT=jl(),fPe=ei(),dX=i1(),Mzt=Ap().resizeText,Ezt=H6();function kzt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Mzt(e,t,"treemap"),t.each(function(r){var n=uPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){uPe.select(this).call(cPe,o,a,e,{hovered:!1})})})}function cPe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=dX.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=fPe.castOption(r,s,"marker.line.color")||UT.defaultLine,l=fPe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=UT.combine(UT.addOpacity(r._backgroundColor,.75),f),_;if(d===!0){var b=dX.getMaxDepth(r);isFinite(b)?dX.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var v=0;v<_;v++){var C=.5*v/_;f=UT.combine(UT.addOpacity(p,C),f)}}}e.call(Ezt,t,r,n,f).style("stroke-width",l).call(UT.stroke,u).style("opacity",h)}hPe.exports={style:kzt,styleOne:cPe}});var yPe=Te((Ymr,mPe)=>{"use strict";var dPe=Jl(),Y6=ei(),pPe=Mu(),Czt=Wf(),Lzt=hX(),vPe=Z6().styleOne,pX=j2(),VT=i1(),Pzt=Q4(),vX=!0;mPe.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,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,M=s/x._entryDepth,m=VT.listPath(n.data,"id"),P=Lzt(k.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(F){var B=m.indexOf(F.data.id);return B===-1?!1:(F.x0=M*B,F.x1=M*(B+1),F.y0=o,F.y1=o+u,F.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,VT.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,vX,C,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var F=dPe.select(this);VT.setSliceCursor(F,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(F){F._x0=l(F.x0),F._x1=l(F.x1),F._y0=f(F.y0),F._y1=f(F.y1),F._hoverX=l(F.x1-Math.min(s,u)/2),F._hoverY=f(F.y1-u/2);var B=dPe.select(this),U=Y6.ensureSingle(B,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var H=b(N,vX,C,[s,u]);return function(re){return c(H(re))}}):U.attr("d",c),B.call(Pzt,n,t,r,{styleOne:vPe,eventDataKeys:pX.eventDataKeys,transitionTime:pX.CLICK_TRANSITION_TIME,transitionEasing:pX.CLICK_TRANSITION_EASING}).call(VT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(vPe,F,x,t,{hovered:!1}),F._text=(VT.getPtLabel(F)||"").split("
").join(" ")||"";var G=Y6.ensureSingle(B,"g","slicetext"),j=Y6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),W=Y6.ensureUniformFontSize(t,VT.determineTextFont(x,F,T.font,{onPathbar:!0}));j.text(F._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(pPe.font,W).call(Czt.convertToTspans,t),F.textBB=pPe.bBox(j.node()),F.transform=h(F,{fontSize:W.size,onPathbar:!0}),F.transform.fontSize=W.size,p?j.transition().attrTween("transform",function(N){var H=v(N,vX,C,[s,u]);return function(re){return d(H(re))}}):j.attr("transform",d(F))})}});var bPe=Te((Kmr,xPe)=>{"use strict";var gPe=Jl(),mX=(H2(),vb(G2)).interpolate,ix=i1(),tk=ei(),_Pe=T_().TEXTPAD,zzt=d2(),Izt=zzt.toMoveInsideBar,Rzt=Ap(),yX=Rzt.recordMinTextSize,Dzt=j2(),Fzt=yPe();function Z2(e){return ix.isHierarchyRoot(e)?"":ix.getPtId(e)}xPe.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=ix.findEntryWithLevel(c,u.level),d=gPe.select(n),p=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){p.remove(),_.remove();return}var b=ix.isHierarchyRoot(h),v=!o.uniformtext.mode&&ix.hasTransition(i),C=ix.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?k+P:-(m+P):0,F={x0:M,x1:M,y0:A,y1:A+m},B=function(Ae,ot,At){var vt=u.tiling.pad,Je=function(It){return It-vt<=ot.x0},He=function(It){return It+vt>=ot.x1},nt=function(It){return It-vt<=ot.y0},tt=function(It){return It+vt>=ot.y1};return Ae.x0===ot.x0&&Ae.x1===ot.x1&&Ae.y0===ot.y0&&Ae.y1===ot.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:Je(Ae.x0-vt)?0:He(Ae.x0-vt)?At[0]:Ae.x0,x1:Je(Ae.x1+vt)?0:He(Ae.x1+vt)?At[0]:Ae.x1,y0:nt(Ae.y0-vt)?0:tt(Ae.y0-vt)?At[1]:Ae.y0,y1:nt(Ae.y1+vt)?0:tt(Ae.y1+vt)?At[1]:Ae.y1}},U=null,G={},j={},W=null,N=function(Ae,ot){return ot?G[Z2(Ae)]:j[Z2(Ae)]},H=function(Ae,ot,At,vt){if(ot)return G[Z2(c)]||F;var Je=j[u.level]||At;return E(Ae)?B(Ae,Je,vt):{}};s.hasMultipleRoots&&b&&C++,u._maxDepth=C,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-x/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-k/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),ge=function(Ae){return re+Ae},ze=function(Ae){return ae+Ae},Le=ze(0),de=ge(0),te=function(Ae){return de+Ae},ke=function(Ae){return Le+Ae};function Ee(Ae,ot){return Ae+","+ot}var Se=te(0),Ge=function(Ae){Ae.x=Math.max(Se,Ae.x)},De=u.pathbar.edgeshape,xe=function(Ae){var ot=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),At=te(Math.min(Math.max(Ae.x1,Ae.x1),M)),vt=ke(Ae.y0),Je=ke(Ae.y1),He=m/2,nt={},tt={};nt.x=ot,tt.x=At,nt.y=tt.y=(vt+Je)/2;var It={x:ot,y:vt},Yt={x:At,y:vt},cr={x:At,y:Je},_r={x:ot,y:Je};return De===">"?(It.x-=He,Yt.x-=He,cr.x-=He,_r.x-=He):De==="/"?(cr.x-=He,_r.x-=He,nt.x-=He/2,tt.x-=He/2):De==="\\"?(It.x-=He,Yt.x-=He,nt.x-=He/2,tt.x-=He/2):De==="<"&&(nt.x-=He,tt.x-=He),Ge(It),Ge(_r),Ge(nt),Ge(Yt),Ge(cr),Ge(tt),"M"+Ee(It.x,It.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee(tt.x,tt.y)+"L"+Ee(cr.x,cr.y)+"L"+Ee(_r.x,_r.y)+"L"+Ee(nt.x,nt.y)+"Z"},Ne=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},je=ce("top"),Qe=ce("left"),gt=ce("right"),qt=ce("bottom"),at=function(Ae){var ot=ge(Ae.x0),At=ge(Ae.x1),vt=ze(Ae.y0),Je=ze(Ae.y1),He=At-ot,nt=Je-vt;if(!He||!nt)return"";var tt=u.marker.cornerradius||0,It=Math.min(tt,He/2,nt/2);It&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(je&&(It=Math.min(It,Ne.t)),Qe&&(It=Math.min(It,Ne.l)),gt&&(It=Math.min(It,Ne.r)),qt&&(It=Math.min(It,Ne.b)));var Yt=function(cr,_r){return It?"a"+Ee(It,It)+" 0 0 1 "+Ee(cr,_r):""};return"M"+Ee(ot,vt+It)+Yt(It,-It)+"L"+Ee(At-It,vt)+Yt(It,It)+"L"+Ee(At,Je-It)+Yt(-It,It)+"L"+Ee(ot+It,Je)+Yt(-It,-It)+"Z"},Ke=function(Ae,ot){var At=Ae.x0,vt=Ae.x1,Je=Ae.y0,He=Ae.y1,nt=Ae.textBB,tt=je||ot.isHeader&&!qt,It=tt?"start":qt?"end":"middle",Yt=ce("right"),cr=ce("left")||ot.onPathbar,_r=cr?-1:Yt?1:0;if(ot.isHeader){if(At+=(f?Ne:Ne.l)-_Pe,vt-=(f?Ne:Ne.r)-_Pe,At>=vt){var yr=(At+vt)/2;At=yr,vt=yr}var Ut;qt?(Ut=He-(f?Ne:Ne.b),Je{"use strict";var Bzt=Jl(),Ozt=i1(),qzt=Ap(),Nzt=qzt.clearMinTextSize,Uzt=V0().resizeText,wPe=bPe();APe.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(Nzt(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&&Ozt.hasTransition(n)){i&&(c=i());var d=Bzt.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){wPe(t,p,this,n,s)})})}else f.each(function(p){wPe(t,p,this,n,s)}),u.uniformtext.mode&&Uzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var kPe=Te(($mr,EPe)=>{"use strict";var TPe=Jl(),K6=ei(),SPe=Mu(),Vzt=Wf(),Gzt=hX(),MPe=Z6().styleOne,_X=j2(),nx=i1(),Hzt=Q4(),Wzt=j6().formatSliceLabel,xX=!1;EPe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=!m&&!x.marker.pad.t||m&&!x.marker.pad.b,A=Gzt(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}}),F=A.descendants(),B=1/0,U=-1/0;F.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):(B=Math.min(B,re),U=Math.max(U,re))}),i=i.data(F,nx.getPtId),x._maxVisibleLayers=isFinite(U)?U-B+1:0,i.enter().append("g").classed("slice",!0),p(i,xX,C,[o,s],f),i.order();var G=null;if(d&&v){var j=nx.getPtId(v);i.each(function(H){G===null&&nx.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=TPe.select(this);nx.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=nx.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=TPe.select(this),ge=K6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?ge.transition().attrTween("d",function(Ee){var Se=_(Ee,xX,W(),[o,s]);return function(Ge){return f(Se(Ge))}}):ge.attr("d",f),ae.call(Hzt,n,t,r,{styleOne:MPe,eventDataKeys:_X.eventDataKeys,transitionTime:_X.CLICK_TRANSITION_TIME,transitionEasing:_X.CLICK_TRANSITION_EASING}).call(nx.setSliceCursor,t,{isTransitioning:t._transitioning}),ge.call(MPe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":nx.getPtLabel(H)||"":H._text=Wzt(H,n,x,r,T)||"";var ze=K6.ensureSingle(ae,"g","slicetext"),Le=K6.ensureSingle(ze,"text","",function(Ee){Ee.attr("data-notex",1)}),de=K6.ensureUniformFontSize(t,nx.determineTextFont(x,H,T.font)),te=H._text||" ",ke=re&&te.indexOf("
")===-1;Le.text(te).classed("slicetext",!0).attr("text-anchor",M?"end":k||ke?"start":"middle").call(SPe.font,de).call(Vzt.convertToTspans,t),H.textBB=SPe.bBox(Le.node()),H.transform=c(H,{fontSize:de.size,isHeader:re}),H.transform.fontSize=de.size,d?Le.transition().attrTween("transform",function(Ee){var Se=b(Ee,xX,W(),[o,s]);return function(Ge){return h(Se(Ge))}}):Le.attr("transform",h(H))}),G}});var LPe=Te((Qmr,CPe)=>{"use strict";var jzt=gX(),Xzt=kPe();CPe.exports=function(t,r,n,i){return jzt(t,r,n,i,{type:"treemap",drawDescendants:Xzt})}});var zPe=Te((eyr,PPe)=>{"use strict";PPe.exports={moduleType:"trace",name:"treemap",basePlotModule:ZLe(),categories:[],animatable:!0,attributes:X6(),layoutAttributes:lX(),supplyDefaults:iPe(),supplyLayoutDefaults:aPe(),calc:fX().calc,crossTraceCalc:fX().crossTraceCalc,plot:LPe(),style:Z6().style,colorbar:ep(),meta:{}}});var RPe=Te((tyr,IPe)=>{"use strict";IPe.exports=zPe()});var FPe=Te(GT=>{"use strict";var DPe=Cc();GT.name="icicle";GT.plot=function(e,t,r,n){DPe.plotBasePlot(GT.name,e,t,r,n)};GT.clean=function(e,t,r,n){DPe.cleanBasePlot(GT.name,e,t,r,n)}});var bX=Te((iyr,qPe)=>{"use strict";var{hovertemplateAttrs:Zzt,texttemplateAttrs:Yzt,templatefallbackAttrs:BPe}=Ff(),Kzt=nc(),Jzt=zc().attributes,rk=D2(),s0=q4(),J6=X6(),OPe=j2(),$zt=Su().extendFlat,Qzt=Id().pattern;qPe.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:J6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:$zt({colors:s0.marker.colors,line:s0.marker.line,pattern:Qzt,editType:"calc"},Kzt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:J6.pathbar,text:rk.text,textinfo:s0.textinfo,texttemplate:Yzt({editType:"plot"},{keys:OPe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:BPe({editType:"plot"}),hovertext:rk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:Zzt({},{keys:OPe.eventDataKeys}),hovertemplatefallback:BPe(),textfont:rk.textfont,insidetextfont:rk.insidetextfont,outsidetextfont:J6.outsidetextfont,textposition:J6.textposition,sort:rk.sort,root:s0.root,domain:Jzt({name:"icicle",trace:!0,editType:"calc"})}});var wX=Te((nyr,NPe)=>{"use strict";NPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var HPe=Te((ayr,GPe)=>{"use strict";var UPe=ei(),eIt=bX(),tIt=jl(),rIt=zc().defaults,iIt=i0().handleText,nIt=T_().TEXTPAD,aIt=F2().handleMarkerDefaults,VPe=_c(),oIt=VPe.hasColorscale,sIt=VPe.handleDefaults;GPe.exports=function(t,r,n,i){function a(d,p){return UPe.coerce(t,r,eIt,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",UPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";iIt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),aIt(t,r,i,a);var h=r._hasColorscale=oIt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&sIt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:tIt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*nIt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),rIt(r,i,a),r._length=null}});var jPe=Te((oyr,WPe)=>{"use strict";var lIt=ei(),uIt=wX();WPe.exports=function(t,r){function n(i,a){return lIt.coerce(t,r,uIt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var TX=Te(AX=>{"use strict";var XPe=V4();AX.calc=function(e,t){return XPe.calc(e,t)};AX.crossTraceCalc=function(e){return XPe._runCrossTraceCalc("icicle",e)}});var YPe=Te((lyr,ZPe)=>{"use strict";var fIt=N4(),cIt=cX();ZPe.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=fIt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&cIt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var SX=Te((uyr,eze)=>{"use strict";var KPe=Jl(),JPe=jl(),$Pe=ei(),hIt=Ap().resizeText,dIt=H6();function pIt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");hIt(e,t,"icicle"),t.each(function(r){var n=KPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){KPe.select(this).call(QPe,o,a,e)})})}function QPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=$Pe.castOption(r,o,"marker.line.color")||JPe.defaultLine,u=$Pe.castOption(r,o,"marker.line.width")||0;e.call(dIt,t,r,n).style("stroke-width",u).call(JPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}eze.exports={style:pIt,styleOne:QPe}});var aze=Te((fyr,nze)=>{"use strict";var tze=Jl(),$6=ei(),rze=Mu(),vIt=Wf(),mIt=YPe(),ize=SX().styleOne,MX=j2(),HT=i1(),yIt=Q4(),gIt=j6().formatSliceLabel,EX=!1;nze.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=mIt(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}),A=P.descendants(),F=1/0,B=-1/0;A.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):(F=Math.min(F,H),B=Math.max(B,H))}),i=i.data(A,HT.getPtId),x._maxVisibleLayers=isFinite(B)?B-F+1:0,i.enter().append("g").classed("slice",!0),p(i,EX,C,[o,s],f),i.order();var U=null;if(d&&v){var G=HT.getPtId(v);i.each(function(N){U===null&&HT.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=tze.select(this);HT.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=tze.select(this),re=$6.ensureSingle(H,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Le){var de=_(Le,EX,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(yIt,n,t,r,{styleOne:ize,eventDataKeys:MX.eventDataKeys,transitionTime:MX.CLICK_TRANSITION_TIME,transitionEasing:MX.CLICK_TRANSITION_EASING}).call(HT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(ize,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=gIt(N,n,x,r,T)||"";var ae=$6.ensureSingle(H,"g","slicetext"),ge=$6.ensureSingle(ae,"text","",function(Le){Le.attr("data-notex",1)}),ze=$6.ensureUniformFontSize(t,HT.determineTextFont(x,N,T.font));ge.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(rze.font,ze).call(vIt.convertToTspans,t),N.textBB=rze.bBox(ge.node()),N.transform=c(N,{fontSize:ze.size}),N.transform.fontSize=ze.size,d?ge.transition().attrTween("transform",function(Le){var de=b(Le,EX,j(),[o,s]);return function(te){return h(de(te))}}):ge.attr("transform",h(N))}),U}});var sze=Te((cyr,oze)=>{"use strict";var _It=gX(),xIt=aze();oze.exports=function(t,r,n,i){return _It(t,r,n,i,{type:"icicle",drawDescendants:xIt})}});var uze=Te((hyr,lze)=>{"use strict";lze.exports={moduleType:"trace",name:"icicle",basePlotModule:FPe(),categories:[],animatable:!0,attributes:bX(),layoutAttributes:wX(),supplyDefaults:HPe(),supplyLayoutDefaults:jPe(),calc:TX().calc,crossTraceCalc:TX().crossTraceCalc,plot:sze(),style:SX().style,colorbar:ep(),meta:{}}});var cze=Te((dyr,fze)=>{"use strict";fze.exports=uze()});var dze=Te(WT=>{"use strict";var hze=Cc();WT.name="funnelarea";WT.plot=function(e,t,r,n){hze.plotBasePlot(WT.name,e,t,r,n)};WT.clean=function(e,t,r,n){hze.cleanBasePlot(WT.name,e,t,r,n)}});var kX=Te((vyr,vze)=>{"use strict";var ap=D2(),bIt=Gf(),wIt=zc().attributes,{hovertemplateAttrs:AIt,texttemplateAttrs:TIt,templatefallbackAttrs:pze}=Ff(),Y2=Su().extendFlat;vze.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:Y2({},ap.marker.line.color,{dflt:null}),width:Y2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:Y2({},ap.scalegroup,{}),textinfo:Y2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:TIt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:pze({editType:"plot"}),hoverinfo:Y2({},bIt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:AIt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:pze(),textposition:Y2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:Y2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:wIt({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 CX=Te((myr,mze)=>{"use strict";var SIt=_6().hiddenlabels;mze.exports={hiddenlabels:SIt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var _ze=Te((yyr,gze)=>{"use strict";var yze=ei(),MIt=kX(),EIt=zc().defaults,kIt=i0().handleText,CIt=F2().handleLabelsAndValues,LIt=F2().handleMarkerDefaults;gze.exports=function(t,r,n,i){function a(_,b){return yze.coerce(t,r,MIt,_,b)}var o=a("labels"),s=a("values"),u=CIt(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,LIt(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");kIt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");EIt(r,i,a);var p=a("title.text");p&&(a("title.position"),yze.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var bze=Te((gyr,xze)=>{"use strict";var PIt=ei(),zIt=CX();xze.exports=function(t,r){function n(i,a){return PIt.coerce(t,r,zIt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var LX=Te((_yr,Aze)=>{"use strict";var wze=ET();function IIt(e,t){return wze.calc(e,t)}function RIt(e){wze.crossTraceCalc(e,{type:"funnelarea"})}Aze.exports={calc:IIt,crossTraceCalc:RIt}});var kze=Te((xyr,Eze)=>{"use strict";var K2=Jl(),PX=Mu(),ax=ei(),DIt=ax.strScale,Tze=ax.strTranslate,Sze=Wf(),FIt=d2(),BIt=FIt.toMoveInsideBar,Mze=Ap(),OIt=Mze.recordMinTextSize,qIt=Mze.clearMinTextSize,NIt=m_(),jT=A6(),UIt=jT.attachFxHandlers,VIt=jT.determineInsideTextFont,GIt=jT.layoutAreas,HIt=jT.prerenderTitles,WIt=jT.positionTitleOutside,jIt=jT.formatSliceLabel;Eze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;qIt("funnelarea",i),HIt(r,t),GIt(r,i._size),ax.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=K2.select(this),s=a[0],u=s.trace;ZIt(a),o.each(function(){var l=K2.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){K2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,_=K2.select(this),b=_.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(UIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+zX(c.TR,c.BR)+zX(c.BR,c.BL)+zX(c.BL,c.TL)+"Z";b.attr("d",v),jIt(t,c,s);var C=NIt.castOption(u.textposition,c.pts),E=_.selectAll("g.slicetext").data(c.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=ax.ensureSingle(K2.select(this),"text","",function(F){F.attr("data-notex",1)}),L=ax.ensureUniformFontSize(t,VIt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(PX.font,L).call(Sze.convertToTspans,t);var x=PX.bBox(T.node()),k,M,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;M=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,k=BIt(M,m,P,A,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,OIt(u.type,k,i),a[h].transform=k,ax.setTransormAndDisplay(T,k)})});var f=K2.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=ax.ensureSingle(K2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=ax.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(PX.font,u.title.font).call(Sze.convertToTspans,t);var d=WIt(s,i._size);c.attr("transform",Tze(d.x,d.y)+DIt(Math.min(1,d.scale))+Tze(d.tx,d.ty))})})})};function zX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function XIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function ZIt(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 B=Math.sqrt(l);return{x:B,y:-B}}function c(){var B=f();return[B.x,B.y]}var h,d=[];d.push(c());var p,_;for(p=e.length-1;p>-1;p--)if(_=e[p],!_.hidden){var b=_.v/u;l+=b,d.push(c())}var v=1/0,C=-1/0;for(p=0;p-1;p--)if(_=e[p],!_.hidden){P+=1;var A=d[P][0],F=d[P][1];_.TL=[-A,F],_.TR=[A,F],_.BL=M,_.BR=m,_.pxmid=XIt(_.TR,_.BR),M=_.TL,m=_.TR}}});var Pze=Te((byr,Lze)=>{"use strict";var Cze=Jl(),YIt=X3(),KIt=Ap().resizeText;Lze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");KIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=Cze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Cze.select(this).call(YIt,s,a,t)})})}});var Ize=Te((wyr,zze)=>{"use strict";zze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:dze(),categories:["pie-like","funnelarea","showLegend"],attributes:kX(),layoutAttributes:CX(),supplyDefaults:_ze(),supplyLayoutDefaults:bze(),calc:LX().calc,crossTraceCalc:LX().crossTraceCalc,plot:kze(),style:Pze(),styleOne:X3(),meta:{}}});var Dze=Te((Ayr,Rze)=>{"use strict";Rze.exports=Ize()});var Od=Te((Tyr,Fze)=>{(function(){var e={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()}},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),_=Math.cos(l);return o[0]=f+d*p+h*_,o[1]=s[1],o[2]=c+d*_-h*p,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}},216:function(i){"use strict";i.exports=a;function a(o,s){for(var u={},l=0;l1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var _=1;_=0;--N){var ke=j[N];H=ke[0];var Ee=U[H],Se=Ee[0],Ge=Ee[1],De=B[Se],xe=B[Ge];if((De[0]-xe[0]||De[1]-xe[1])<0){var Ne=Se;Se=Ge,Ge=Ne}Ee[0]=Se;var ce=Ee[1]=ke[1],je;for(W&&(je=Ee[2]);N>0&&j[N-1][0]===H;){var ke=j[--N],Qe=ke[1];W?U.push([ce,Qe,je]):U.push([ce,Qe]),ce=Qe}W?U.push([ce,Ge,je]):U.push([ce,Ge])}return re}function x(B,U,G){for(var j=U.length,W=new s(j),N=[],H=0;HU[2]?1:0)}function m(B,U,G){if(B.length!==0){if(U)for(var j=0;j0||H.length>0}function F(B,U,G){var j;if(G){j=U;for(var W=new Array(U.length),N=0;N/g," ");var re="",ae=[];for(xe=0;xe-1?parseInt(Ae[1+vt]):0,nt=Je>-1?parseInt(ot[1+Je]):0;He!==nt&&(At=At.replace(at(),"?px "),je*=Math.pow(.75,nt-He),At=At.replace("?px ",at())),ce+=.25*te*(nt-He)}if(H.superscripts===!0){var tt=Ae.indexOf(C),It=ot.indexOf(C),Yt=tt>-1?parseInt(Ae[1+tt]):0,cr=It>-1?parseInt(ot[1+It]):0;Yt!==cr&&(At=At.replace(at(),"?px "),je*=Math.pow(.75,cr-Yt),At=At.replace("?px ",at())),ce-=.25*te*(cr-Yt)}if(H.bolds===!0){var _r=Ae.indexOf(p)>-1,yr=ot.indexOf(p)>-1;!_r&&yr&&(Ut?At=At.replace("italic ","italic bold "):At="bold "+At),_r&&!yr&&(At=At.replace("bold ",""))}if(H.italics===!0){var Ut=Ae.indexOf(b)>-1,Re=ot.indexOf(b)>-1;!Ut&&Re&&(At="italic "+At),Ut&&!Re&&(At=At.replace("italic ",""))}G.font=At}for(De=0;De0&&(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(ge){return ge}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,H,re);return F(ae,W,N)}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},7765:function(i,a,o){"use strict";i.exports=v;var s=o(9618),u=o(1888),l=o(446),f=o(1570);function c(C){for(var E=C.length,T=0,L=0;LU||F<0||F>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,F],P.bind(),B.texImage2D(B.TEXTURE_2D,0,P.format,A,F,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,A,F,B,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[F,B],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 A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==this._anisoSamples){var F=this.gl.getExtension("EXT_texture_filter_anisotropic");F&&this.gl.texParameterf(this.gl.TEXTURE_2D,F.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 A=0;A<2;++A)if(h.indexOf(P[A])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var F=this.gl;return this.bind(),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,this._wrapS),F.texParameteri(F.TEXTURE_2D,F.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 A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.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]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},C.setPixels=function(P,A,F,B){var U=this.gl;this.bind(),Array.isArray(A)?(B=F,F=A[1]|0,A=A[0]|0):(A=A||0,F=F||0),B=B||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(B)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(B)):U.texSubImage2D(U.TEXTURE_2D,B,A,F,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>B||F+P.shape[0]>this._shape[0]>>>B||A<0||F<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,F,B,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,F,B,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,ge=E(H,W.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,ge=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,ge=!1,N="uint8");var ze=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");ze=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 Le=W.size,de=j.indexOf(B)<0;if(de&&j.push(B),re===G&&ge)W.offset===0&&W.data.length===Le?de?P.texImage2D(P.TEXTURE_2D,B,U,H[0],H[1],0,U,G,W.data):P.texSubImage2D(P.TEXTURE_2D,B,A,F,H[0],H[1],U,G,W.data):de?P.texImage2D(P.TEXTURE_2D,B,U,H[0],H[1],0,U,G,W.data.subarray(W.offset,W.offset+Le)):P.texSubImage2D(P.TEXTURE_2D,B,A,F,H[0],H[1],U,G,W.data.subarray(W.offset,W.offset+Le));else{var te;G===P.FLOAT?te=l.mallocFloat32(Le):te=l.mallocUint8(Le);var ke=s(te,H,[H[2],H[2]*H[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?_(ke,W):u.assign(ke,W),de?P.texImage2D(P.TEXTURE_2D,B,U,H[0],H[1],0,U,G,te.subarray(0,Le)):P.texSubImage2D(P.TEXTURE_2D,B,A,F,H[0],H[1],U,G,te.subarray(0,Le)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),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),A}function x(P,A,F,B,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||F<0||F>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,B,A,F,0,B,U,null),new v(P,j,A,F,B,U)}function k(P,A,F,B,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new v(P,j,F,B,U,G)}function M(P,A){var F=A.dtype,B=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(B[0]<0||B[0]>U||B[1]<0||B[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(B,A.stride.slice()),j=0;F==="float32"?j=P.FLOAT:F==="float64"?(j=P.FLOAT,G=!1,F="float32"):F==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,F="uint8");var W=0;if(B.length===2)W=P.LUMINANCE,B=[B[0],B[1],1],A=s(A.data,B,[A.stride[0],A.stride[1],1],A.offset);else if(B.length===3)if(B[2]===1)W=P.ALPHA;else if(B[2]===2)W=P.LUMINANCE_ALPHA;else if(B[2]===3)W=P.RGB;else if(B[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=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var ae=[B[2],B[2]*B[0],1];H=l.malloc(re,F);var ge=s(H,B,ae,0);(F==="float32"||F==="float64")&&j===P.UNSIGNED_BYTE?_(ge,A):u.assign(ge,A),N=H.subarray(0,re)}var ze=L(P);return P.texImage2D(P.TEXTURE_2D,0,W,B[0],B[1],0,W,j,N),G||l.free(H),new v(P,ze,B[0],B[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 A=arguments[1],F=p(A)?A:A.raw;if(F)return k(P,F,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return M(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},7790:function(){},7815:function(i,a,o){"use strict";var s=o(2931),u=o(9970),l=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(T,L,x,k){for(var M=T.points,m=T.velocities,P=T.divergences,A=[],F=[],B=[],U=[],G=[],j=[],W=0,N=0,H=u.create(),re=u.create(),ae=8,ge=0;ge0)for(var te=0;teL)return k-1}return k},d=function(T,L,x){return Tx?x:T},p=function(T,L,x){var k=L.vectors,M=L.meshgrid,m=T[0],P=T[1],A=T[2],F=M[0].length,B=M[1].length,U=M[2].length,G=h(M[0],m),j=h(M[1],P),W=h(M[2],A),N=G+1,H=j+1,re=W+1;if(G=d(G,0,F-1),N=d(N,0,F-1),j=d(j,0,B-1),H=d(H,0,B-1),W=d(W,0,U-1),re=d(re,0,U-1),G<0||j<0||W<0||N>F-1||H>B-1||re>U-1)return s.create();var ae=M[0][G],ge=M[0][N],ze=M[1][j],Le=M[1][H],de=M[2][W],te=M[2][re],ke=(m-ae)/(ge-ae),Ee=(P-ze)/(Le-ze),Se=(A-de)/(te-de);isFinite(ke)||(ke=.5),isFinite(Ee)||(Ee=.5),isFinite(Se)||(Se=.5);var Ge,De,xe,Ne,ce,je;switch(x.reversedX&&(G=F-1-G,N=F-1-N),x.reversedY&&(j=B-1-j,H=B-1-H),x.reversedZ&&(W=U-1-W,re=U-1-re),x.filled){case 5:ce=W,je=re,xe=j*U,Ne=H*U,Ge=G*U*B,De=N*U*B;break;case 4:ce=W,je=re,Ge=G*U,De=N*U,xe=j*U*F,Ne=H*U*F;break;case 3:xe=j,Ne=H,ce=W*B,je=re*B,Ge=G*B*U,De=N*B*U;break;case 2:xe=j,Ne=H,Ge=G*B,De=N*B,ce=W*B*F,je=re*B*F;break;case 1:Ge=G,De=N,ce=W*F,je=re*F,xe=j*F*U,Ne=H*F*U;break;default:Ge=G,De=N,xe=j*F,Ne=H*F,ce=W*F*B,je=re*F*B;break}var Qe=k[Ge+xe+ce],gt=k[Ge+xe+je],qt=k[Ge+Ne+ce],at=k[Ge+Ne+je],Ke=k[De+xe+ce],Ct=k[De+xe+je],wt=k[De+Ne+ce],Mt=k[De+Ne+je],Bt=s.create(),Zt=s.create(),Et=s.create(),Ae=s.create();s.lerp(Bt,Qe,Ke,ke),s.lerp(Zt,gt,Ct,ke),s.lerp(Et,qt,wt,ke),s.lerp(Ae,at,Mt,ke);var ot=s.create(),At=s.create();s.lerp(ot,Bt,Et,Ee),s.lerp(At,Zt,Ae,Ee);var vt=s.create();return s.lerp(vt,ot,At,Se),vt},_=function(T,L){var x=L[0],k=L[1],M=L[2];return T[0]=x<0?-x:x,T[1]=k<0?-k:k,T[2]=M<0?-M:M,T},b=function(T){var L=1/0;T.sort(function(m,P){return m-P});for(var x=T.length,k=1;kN||MtH||Btre)},ge=s.distance(L[0],L[1]),ze=10*ge/k,Le=ze*ze,de=1,te=0,ke=x.length;ke>1&&(de=v(x));for(var Ee=0;Eete&&(te=Qe),ce.push(Qe),U.push({points:Ge,velocities:De,divergences:ce});for(var gt=0;gtLe&&s.scale(qt,qt,ze/Math.sqrt(at)),s.add(qt,qt,Se),xe=F(qt),s.squaredDistance(Ne,qt)-Le>-1e-4*Le){Ge.push(qt),Ne=qt,De.push(xe);var je=B(qt,xe),Qe=s.length(je);isFinite(Qe)&&Qe>te&&(te=Qe),ce.push(Qe)}Se=qt}}var Ke=c(U,T.colormap,te,de);return m?Ke.tubeScale=m:(te===0&&(te=1),Ke.tubeScale=M*.5*de/te),Ke};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:C,traceType:"streamtube"})}},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},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,_){if(s(p))return _?h(p,d(_)):[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(_))v.mul(_[1]),C=_[0].clone();else if(u(_))C=_.clone();else if(typeof _=="string")C=f(_);else if(!_)C=l(1);else if(_===Math.floor(_))C=l(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),b+=256;C=l(_)}return b>0?v=v.ushln(b):b<0&&(C=C.ushln(-b)),c(v,C)}},7894:function(i){i.exports=a;function a(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},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"])},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}},8105:function(i){"use strict";i.exports=o;var a={"lo===p0":s,"lo=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+m];if(F===T)if(M===A)M+=1,k+=L;else{for(var B=0;L>B;++B){var U=C[x+B];C[x+B]=C[k],C[k++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function u(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+m];if(FB;++B){var U=C[x+B];C[x+B]=C[k],C[k++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function l(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+P];if(F<=T)if(M===A)M+=1,k+=L;else{for(var B=0;L>B;++B){var U=C[x+B];C[x+B]=C[k],C[k++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function f(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+P];if(F<=T)if(M===A)M+=1,k+=L;else{for(var B=0;L>B;++B){var U=C[x+B];C[x+B]=C[k],C[k++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function c(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+m],B=C[x+P];if(F<=T&&T<=B)if(M===A)M+=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[A];E[A]=E[M],E[M++]=j}}return M}function h(p,_,b,v,C,E,T){for(var L=2*p,x=L*b,k=x,M=b,m=_,P=p+_,A=b;v>A;++A,x+=L){var F=C[x+m],B=C[x+P];if(FU;++U){var G=C[x+U];C[x+U]=C[k],C[k++]=G}var j=E[A];E[A]=E[M],E[M++]=j}}return M}function d(p,_,b,v,C,E,T,L){for(var x=2*p,k=x*b,M=k,m=b,P=_,A=p+_,F=b;v>F;++F,k+=x){var B=C[k+P],U=C[k+A];if(!(B>=T)&&!(L>=U))if(m===F)m+=1,M+=x;else{for(var G=0;x>G;++G){var j=C[k+G];C[k+G]=C[M],C[M++]=j}var W=E[F];E[F]=E[m],E[m++]=W}}return m}},8107: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}},8116:function(i,a,o){"use strict";var s=o(7518),u=o(870);function l(c){this.bindVertexArrayOES=c.bindVertexArray.bind(c),this.createVertexArrayOES=c.createVertexArray.bind(c),this.deleteVertexArrayOES=c.deleteVertexArray.bind(c)}function f(c,h,d,p){var _=c.createVertexArray?new l(c):c.getExtension("OES_vertex_array_object"),b;return _?b=s(c,_):b=u(c),b.update(h,d,p),b}i.exports=f},8192:function(i,a,o){i.exports=f;var s=o(2825),u=o(3536),l=o(244);function f(c,h){var d=s(c[0],c[1],c[2]),p=s(h[0],h[1],h[2]);u(d,d),u(p,p);var _=l(d,p);return _>1?0:Math.acos(_)}},8210: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,_=0,b=Math.abs,v=s[p],C=b(v),E=u[_],T=b(E),L,x;C=f?(L=v,p+=1,pd)for(var F=h[v],B=1/Math.sqrt(M*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;F[A]+=B*(m[U]*k[G]-m[G]*k[U])}}for(var p=0;pd)for(var B=1/Math.sqrt(j),A=0;A<3;++A)F[A]*=B;else for(var A=0;A<3;++A)F[A]=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)T[v]*=L;h[p]=T}return h}},8418:function(i,a,o){"use strict";var s=o(5219),u=o(2762),l=o(8116),f=o(1888),c=o(6760),h=o(1283),d=o(9366),p=o(5964),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],b=ArrayBuffer,v=DataView;function C(Se){return b.isView(Se)&&!(Se instanceof v)}function E(Se){return Array.isArray(Se)||C(Se)}i.exports=Ee;function T(Se,Ge){var De=Se[0],xe=Se[1],Ne=Se[2],ce=Se[3];return Se[0]=Ge[0]*De+Ge[4]*xe+Ge[8]*Ne+Ge[12]*ce,Se[1]=Ge[1]*De+Ge[5]*xe+Ge[9]*Ne+Ge[13]*ce,Se[2]=Ge[2]*De+Ge[6]*xe+Ge[10]*Ne+Ge[14]*ce,Se[3]=Ge[3]*De+Ge[7]*xe+Ge[11]*Ne+Ge[15]*ce,Se}function L(Se,Ge,De,xe){return T(xe,xe,De),T(xe,xe,Ge),T(xe,xe,Se)}function x(Se,Ge){this.index=Se,this.dataCoordinate=this.position=Ge}function k(Se){return Se===!0||Se>1?1:Se}function M(Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke){this.gl=Se,this.pixelRatio=1,this.shader=Ge,this.orthoShader=De,this.projectShader=xe,this.pointBuffer=Ne,this.colorBuffer=ce,this.glyphBuffer=je,this.idBuffer=Qe,this.vao=gt,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=qt,this.pickOrthoShader=at,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=M.prototype;m.pickSlots=1,m.setPickBase=function(Se){this.pickId=Se},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var Se=0;Se<3;++Se)if(this.axesProject[Se]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Se=0;Se<3;++Se)if(this.axesProject[Se]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],F=[0,0,0],B=[0,0,0,1],U=[0,0,0,1],G=_.slice(),j=[0,0,0],W=[[0,0,0],[0,0,0]];function N(Se){return Se[0]=Se[1]=Se[2]=0,Se}function H(Se,Ge){return Se[0]=Ge[0],Se[1]=Ge[1],Se[2]=Ge[2],Se[3]=1,Se}function re(Se,Ge,De,xe){return Se[0]=Ge[0],Se[1]=Ge[1],Se[2]=Ge[2],Se[De]=xe,Se}function ae(Se){for(var Ge=W,De=0;De<2;++De)for(var xe=0;xe<3;++xe)Ge[De][xe]=Math.max(Math.min(Se[De][xe],1e8),-1e8);return Ge}function ge(Se,Ge,De,xe){var Ne=Ge.axesProject,ce=Ge.gl,je=Se.uniforms,Qe=De.model||_,gt=De.view||_,qt=De.projection||_,at=Ge.axesBounds,Ke=ae(Ge.clipBounds),Ct;Ge.axes&&Ge.axes.lastCubeProps?Ct=Ge.axes.lastCubeProps.axis:Ct=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Se.bind(),je.view=gt,je.projection=qt,je.screenSize=P,je.highlightId=Ge.highlightId,je.highlightScale=Ge.highlightScale,je.clipBounds=Ke,je.pickGroup=Ge.pickId/255,je.pixelRatio=xe;for(var wt=0;wt<3;++wt)if(Ne[wt]){je.scale=Ge.projectScale[wt],je.opacity=Ge.projectOpacity[wt];for(var Mt=G,Bt=0;Bt<16;++Bt)Mt[Bt]=0;for(var Bt=0;Bt<4;++Bt)Mt[5*Bt]=1;Mt[5*wt]=0,Ct[wt]<0?Mt[12+wt]=at[0][wt]:Mt[12+wt]=at[1][wt],c(Mt,Qe,Mt),je.model=Mt;var Zt=(wt+1)%3,Et=(wt+2)%3,Ae=N(A),ot=N(F);Ae[Zt]=1,ot[Et]=1;var At=L(qt,gt,Qe,H(B,Ae)),vt=L(qt,gt,Qe,H(U,ot));if(Math.abs(At[1])>Math.abs(vt[1])){var Je=At;At=vt,vt=Je,Je=Ae,Ae=ot,ot=Je;var He=Zt;Zt=Et,Et=He}At[0]<0&&(Ae[Zt]=-1),vt[1]>0&&(ot[Et]=-1);for(var nt=0,tt=0,Bt=0;Bt<4;++Bt)nt+=Math.pow(Qe[4*Zt+Bt],2),tt+=Math.pow(Qe[4*Et+Bt],2);Ae[Zt]/=Math.sqrt(nt),ot[Et]/=Math.sqrt(tt),je.axes[0]=Ae,je.axes[1]=ot,je.fragClipBounds[0]=re(j,Ke[0],wt,-1e8),je.fragClipBounds[1]=re(j,Ke[1],wt,1e8),Ge.vao.bind(),Ge.vao.draw(ce.TRIANGLES,Ge.vertexCount),Ge.lineWidth>0&&(ce.lineWidth(Ge.lineWidth*xe),Ge.vao.draw(ce.LINES,Ge.lineVertexCount,Ge.vertexCount)),Ge.vao.unbind()}}var ze=[-1e8,-1e8,-1e8],Le=[1e8,1e8,1e8],de=[ze,Le];function te(Se,Ge,De,xe,Ne,ce,je){var Qe=De.gl;if((ce===De.projectHasAlpha||je)&&ge(Ge,De,xe,Ne),ce===De.hasAlpha||je){Se.bind();var gt=Se.uniforms;gt.model=xe.model||_,gt.view=xe.view||_,gt.projection=xe.projection||_,P[0]=2/Qe.drawingBufferWidth,P[1]=2/Qe.drawingBufferHeight,gt.screenSize=P,gt.highlightId=De.highlightId,gt.highlightScale=De.highlightScale,gt.fragClipBounds=de,gt.clipBounds=De.axes.bounds,gt.opacity=De.opacity,gt.pickGroup=De.pickId/255,gt.pixelRatio=Ne,De.vao.bind(),De.vao.draw(Qe.TRIANGLES,De.vertexCount),De.lineWidth>0&&(Qe.lineWidth(De.lineWidth*Ne),De.vao.draw(Qe.LINES,De.lineVertexCount,De.vertexCount)),De.vao.unbind()}}m.draw=function(Se){var Ge=this.useOrtho?this.orthoShader:this.shader;te(Ge,this.projectShader,this,Se,this.pixelRatio,!1,!1)},m.drawTransparent=function(Se){var Ge=this.useOrtho?this.orthoShader:this.shader;te(Ge,this.projectShader,this,Se,this.pixelRatio,!0,!1)},m.drawPick=function(Se){var Ge=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(Ge,this.pickProjectShader,this,Se,1,!0,!0)},m.pick=function(Se){if(!Se||Se.id!==this.pickId)return null;var Ge=Se.value[2]+(Se.value[1]<<8)+(Se.value[0]<<16);if(Ge>=this.pointCount||Ge<0)return null;var De=this.points[Ge],xe=this._selectResult;xe.index=Ge;for(var Ne=0;Ne<3;++Ne)xe.position[Ne]=xe.dataCoordinate[Ne]=De[Ne];return xe},m.highlight=function(Se){if(!Se)this.highlightId=[1,1,1,1];else{var Ge=Se.index,De=Ge&255,xe=Ge>>8&255,Ne=Ge>>16&255;this.highlightId=[De/255,xe/255,Ne/255,0]}};function ke(Se,Ge,De,xe){var Ne;E(Se)?Ge0){var Ut=0,Re=Et,be=[0,0,0,1],Oe=[0,0,0,1],Ie=E(Ct)&&E(Ct[0]),Fe=E(Bt)&&E(Bt[0]);e:for(var xe=0;xe0?1-tt[0][0]:zt<0?1+tt[1][0]:1,rr*=rr>0?1-tt[0][1]:rr<0?1+tt[1][1]:1;for(var Gr=[zt,rr],Di=He.cells||[],ni=He.positions||[],vt=0;vt=f?(L=v,p+=1,p0?1:0}},8648:function(i,a,o){i.exports=o(783)},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),_=Math.cos(l);return o[0]=f+h*_-d*p,o[1]=c+h*p+d*_,o[2]=s[2],o}},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]))}},8731:function(i,a,o){"use strict";i.exports=d;var s=o(8866);function u(p,_,b,v,C,E){this._gl=p,this._wrapper=_,this._index=b,this._locations=v,this._dimension=C,this._constFunc=E}var l=u.prototype;l.pointer=function(_,b,v,C){var E=this,T=E._gl,L=E._locations[E._index];T.vertexAttribPointer(L,E._dimension,_||T.FLOAT,!!b,v||0,C||0),T.enableVertexAttribArray(L)},l.set=function(p,_,b,v){return this._constFunc(this._locations[this._index],p,_,b,v)},Object.defineProperty(l,"location",{get:function(){return this._locations[this._index]},set:function(p){return p!==this._locations[this._index]&&(this._locations[this._index]=p|0,this._wrapper.program=null),p|0}});var f=[function(p,_,b){return b.length===void 0?p.vertexAttrib1f(_,b):p.vertexAttrib1fv(_,b)},function(p,_,b,v){return b.length===void 0?p.vertexAttrib2f(_,b,v):p.vertexAttrib2fv(_,b)},function(p,_,b,v,C){return b.length===void 0?p.vertexAttrib3f(_,b,v,C):p.vertexAttrib3fv(_,b)},function(p,_,b,v,C,E){return b.length===void 0?p.vertexAttrib4f(_,b,v,C,E):p.vertexAttrib4fv(_,b)}];function c(p,_,b,v,C,E,T){var L=f[C],x=new u(p,_,b,v,C,L);Object.defineProperty(E,T,{set:function(k){return p.disableVertexAttribArray(v[b]),L(p,v[b],k),k},get:function(){return x},enumerable:!0})}function h(p,_,b,v,C,E,T){for(var L=new Array(C),x=new Array(C),k=0;k=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,_,M[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,_,M,v,m,C,x)}else throw new s("","Unknown data type for attribute "+x+": "+k);break}}return C}},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}},8866:function(i){function a(o,s,u){this.shortMessage=s||"",this.longMessage=u||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(u?` -`+u:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,i.exports=a},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=T;function h(L,x,k,M,m){this.a=L,this.b=x,this.idx=k,this.lowerIds=M,this.upperIds=m}function d(L,x,k,M){this.a=L,this.b=x,this.type=k,this.idx=M}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 _(L,x){return u(L.a,L.b,x)}function b(L,x,k,M,m){for(var P=s.lt(x,M,_),A=s.gt(x,M,_),F=P;F1&&u(k[U[j-2]],k[U[j-1]],M)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=B.upperIds,j=G.length;j>1&&u(k[G[j-2]],k[G[j-1]],M)<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]B[0]&&m.push(new d(B,F,c,P),new d(F,B,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;P0;){C=M.pop();for(var m=C.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var F=A.vertices,B=0;B<=T;++B){var U=F[B];U<0?x[B]=E:x[B]=k[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(C,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[M];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,F=0;F<=L;++F)k[F]=x[P[F]];m.lastVisited=T;for(var F=0;F<=L;++F){var B=A[F];if(!(B.lastVisited>=T)){var U=k[F];k[F]=C;var G=this.orient();if(k[F]=U,G<0){m=B;continue e}else B.boundary?B.lastVisited=-T:B.lastVisited=T}}return}return m},b.addPeaks=function(C,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),F=E.vertices,B=E.adjacent,U=F.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=B[G];if(!(!j.boundary||j.lastVisited>=T)){var W=j.vertices;if(j.lastVisited!==-T){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]=T,j.boundary=!1,M.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,ge=F.slice(),ze=B.slice(),Le=new l(ge,ze,!0);m.push(Le);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Le,ze[U]=j,ge[G]=-1,ze[G]=E,B[G]=Le,Le.flip();for(var H=0;H<=L;++H){var te=ge[H];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Se=0;Se<=L;++Se){var Ge=ge[Se];Ge<0||Se===H||(ke[Ee++]=Ge)}A.push(new f(ke,Le,H))}}}}}}}A.sort(c);for(var G=0;G+1=0?M[P++]=m[F]:A=F&1;if(A===(C&1)){var B=M[0];M[0]=M[1],M[1]=B}E.push(M)}}return E};function v(C,E){var T=C.length;if(T===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(T<=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 M=new Array(L+1),m=0;m<=L;++m)M[m]=m;k<0&&(M[0]=1,M[1]=0);for(var P=new l(M,new Array(L+1),!1),A=P.adjacent,F=new Array(L+2),m=0;m<=L;++m){for(var B=M.slice(),U=0;U<=L;++U)U===m&&(B[U]=-1);var G=B[0];B[0]=B[1],B[1]=G;var j=new l(B,new Array(L+1),!0);A[m]=j,F[m]=j}F[L+1]=P;for(var m=0;m<=L;++m)for(var B=A[m].vertices,W=A[m].adjacent,U=0;U<=L;++U){var N=B[U];if(N<0){W[U]=P;continue}for(var H=0;H<=L;++H)A[H].vertices.indexOf(N)<0&&(W[U]=A[H])}for(var re=new _(L,x,F),ae=!!E,m=L+1;m=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(k){this.pickId=k};function C(k){for(var M=p({colormap:k,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],F=0;F<3;++F)m[4*P+F]=A[F];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,m=new Array(M),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(k){k=k||{};for(var M=this.gl,m=k.model||_,P=k.view||_,A=k.projection||_,F=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],B=0;B<3;++B)F[0][B]=Math.max(F[0][B],this.clipBounds[0][B]),F[1][B]=Math.min(F[1][B],this.clipBounds[1][B]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:F,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(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],m=this.cells[M],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=M),A},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 T(k,M){var m=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.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,M){var m=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function x(k,M,m){var P=m.shaders;arguments.length===1&&(M=k,k=M.gl);var A=T(k,P),F=L(k,P),B=f(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));B.generateMipmap(),B.minFilter=k.LINEAR_MIPMAP_LINEAR,B.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,B,A,F,U,G,N,j,W,H,m.traceType||"cone");return re.update(M),re}i.exports=x},9127:function(i,a,o){"use strict";i.exports=l;var s=o(6204),u=o(5771);function l(f){return u(s(f))}},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}},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,T){this.gl=v,this.shader=T,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 T=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=T[12],k=T[13],M=T[14],m=T[15],P=v._ortho||!1,A=P?2:1,F=A*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*M+L[15]*m)/C.drawingBufferHeight;this.vao.bind();for(var B=0;B<3;++B)C.lineWidth(this.lineWidth[B]*this.pixelRatio),E.capSize=this.capSize[B]*F,this.lineCount[B]&&C.drawArrays(C.LINES,this.lineOffset[B],this.lineCount[B]);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=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var x=(T+C)%3,k=[0,0,0];k[x]=L,E.push(k)}v[C]=E}return v}();function _(v,C,E,T){for(var L=p[T],x=0;x0){var U=P.slice();U[M]+=F[1][M],L.push(P[0],P[1],P[2],B[0],B[1],B[2],B[3],0,0,0,U[0],U[1],U[2],B[0],B[1],B[2],B[3],0,0,0),d(this.bounds,U),k+=2+_(L,U,B,M)}}}this.lineCount[M]=k-this.lineOffset[M]}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),T=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,T,L);return x.update(v),x}},9215:function(i,a,o){"use strict";i.exports=d;var s=o(4769),u=o(2478);function l(p,_,b){return Math.min(_,Math.max(p,b))}function f(p,_,b){this.dimension=p.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var v=0;v=b-1)for(var k=E.length-1,m=p-_[b-1],M=0;M=b-1)for(var x=E.length-1,k=p-_[b-1],M=0;M=0;--b)if(p[--_])return!1;return!0},c.jump=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1];this._time.push(_,p);for(var k=0;k<2;++k)for(var M=0;M0;--M)v.push(l(L[M-1],x[M-1],arguments[M])),C.push(0)}},c.push=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=p-_,L=this.bounds,x=L[0],k=L[1],M=T>1e-6?1/T: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++])*M)}}},c.set=function(p){var _=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var _=this.lastT(),b=this.dimension;if(!(p<=_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1],k=p-_,M=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*M)}}},c.idle=function(p){var _=this.lastT();if(!(p<_)){var b=this.dimension,v=this._state,C=this._velocity,E=v.length-b,T=this.bounds,L=T[0],x=T[1],k=p-_;this._time.push(p);for(var M=b-1;M>=0;--M)v.push(l(L[M],x[M],v[E]+k*C[E])),C.push(0),E+=1}};function h(p){for(var _=new Array(p),b=0;b1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},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}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},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}},9346:function(i){"use strict";var a=new Float64Array(4),o=new Float64Array(4),s=new Float64Array(4);function u(l,f,c,h,d){a.length=_?(m=1,A=_+2*C+T):(m=-C/_,A=C*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,C>=0?(m=0,A=T):-C>=_?(m=1,A=_+2*C+T):(m=-C/_,A=C*m+T);else{var F=1/M;m*=F,P*=F,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T}else{var B,U,G,j;m<0?(B=b+C,U=v+E,U>B?(G=U-B,j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*C+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(B=b+E,U=_+C,U>B?(G=U-B,j=_-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=_+2*C+T):C>=0?(m=0,A=T):(m=-C/_,A=C*m+T))):(G=v+E-b-C,G<=0?(m=0,P=1,A=v+2*E+T):(j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*C+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)))}for(var W=1-m-P,p=0;pE)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 ge(){x.program=f.program(k,x._vref,x._fref,B,U);for(var ze=0;zeDe&&Ne>0){var ce=(xe[Ne][0]-De)/(xe[Ne][0]-xe[Ne-1][0]);return xe[Ne][1]*(1-ce)+ce*xe[Ne-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(De,xe){var Ne,ce,je,Qe=xe.axes&&xe.axes.lastCubeProps.axis||H,gt=xe.showSurface,qt=xe.showContour;for(Ne=0;Ne<3;++Ne)for(gt=gt||xe.surfaceProject[Ne],ce=0;ce<3;++ce)qt=qt||xe.contourProject[Ne][ce];for(Ne=0;Ne<3;++Ne){var at=re.projections[Ne];for(ce=0;ce<16;++ce)at[ce]=0;for(ce=0;ce<4;++ce)at[5*ce]=1;at[5*Ne]=0,at[12+Ne]=xe.axesBounds[+(Qe[Ne]>0)][Ne],v(at,De.model,at);var Ke=re.clipBounds[Ne];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)Ke[je][ce]=De.clipBounds[je][ce];Ke[0][Ne]=-1e8,Ke[1][Ne]=1e8}return re.showSurface=gt,re.showContour=qt,re}var ge={model:A,view:A,projection:A,inverseModel:A.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},ze=A.slice(),Le=[1,0,0,0,1,0,0,0,1];function de(De,xe){De=De||{};var Ne=this.gl;Ne.disable(Ne.CULL_FACE),this._colorMap.bind(0);var ce=ge;ce.model=De.model||A,ce.view=De.view||A,ce.projection=De.projection||A,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 Qe=ce.clipBounds[je],gt=0;gt<3;++gt)Qe[gt]=Math.min(Math.max(this.clipBounds[je][gt],-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=Le,ce.vertexColor=this.vertexColor;var qt=ze;for(v(qt,ce.view,ce.model),v(qt,ce.projection,qt),C(qt,qt),je=0;je<3;++je)ce.eyePosition[je]=qt[12+je]/qt[15];var at=qt[15];for(je=0;je<3;++je)at+=this.lightPosition[je]*qt[4*je+3];for(je=0;je<3;++je){var Ke=qt[12+je];for(gt=0;gt<3;++gt)Ke+=qt[4*gt+je]*this.lightPosition[gt];ce.lightPosition[je]=Ke/at}var Ct=ae(ce,this);if(Ct.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ne.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=Ct.projections[je],this._shader.uniforms.clipBounds=Ct.clipBounds[je],this._vao.draw(Ne.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ct.showContour){var wt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,wt.bind(),wt.uniforms=ce;var Mt=this._contourVAO;for(Mt.bind(),je=0;je<3;++je)for(wt.uniforms.permutation=B[je],Ne.lineWidth(this.contourWidth[je]*this.pixelRatio),gt=0;gt>4)/16)/255,je=Math.floor(ce),Qe=ce-je,gt=xe[1]*(De.value[1]+(De.value[2]&15)/16)/255,qt=Math.floor(gt),at=gt-qt;je+=1,qt+=1;var Ke=Ne.position;Ke[0]=Ke[1]=Ke[2]=0;for(var Ct=0;Ct<2;++Ct)for(var wt=Ct?Qe:1-Qe,Mt=0;Mt<2;++Mt)for(var Bt=Mt?at:1-at,Zt=je+Ct,Et=qt+Mt,Ae=wt*Bt,ot=0;ot<3;++ot)Ke[ot]+=this._field[ot].get(Zt,Et)*Ae;for(var At=this._pickResult.level,vt=0;vt<3;++vt)if(At[vt]=E.le(this.contourLevels[vt],Ke[vt]),At[vt]<0)this.contourLevels[vt].length>0&&(At[vt]=0);else if(At[vt]Math.abs(He-Ke[vt])&&(At[vt]+=1)}for(Ne.index[0]=Qe<.5?je:je+1,Ne.index[1]=at<.5?qt:qt+1,Ne.uv[0]=ce/xe[0],Ne.uv[1]=gt/xe[1],ot=0;ot<3;++ot)Ne.dataCoordinate[ot]=this._field[ot].get(Ne.index[0],Ne.index[1]);return Ne},W.padField=function(De,xe){var Ne=xe.shape.slice(),ce=De.shape.slice();d.assign(De.lo(1,1).hi(Ne[0],Ne[1]),xe),d.assign(De.lo(1).hi(Ne[0],1),xe.hi(Ne[0],1)),d.assign(De.lo(1,ce[1]-1).hi(Ne[0],1),xe.lo(0,Ne[1]-1).hi(Ne[0],1)),d.assign(De.lo(0,1).hi(1,Ne[1]),xe.hi(1)),d.assign(De.lo(ce[0]-1,1).hi(1,Ne[1]),xe.lo(Ne[0]-1)),De.set(0,0,xe.get(0,0)),De.set(0,ce[1]-1,xe.get(0,Ne[1]-1)),De.set(ce[0]-1,0,xe.get(Ne[0]-1,0)),De.set(ce[0]-1,ce[1]-1,xe.get(Ne[0]-1,Ne[1]-1))};function ke(De,xe){return Array.isArray(De)?[xe(De[0]),xe(De[1]),xe(De[2])]:[xe(De),xe(De),xe(De)]}function Ee(De){return Array.isArray(De)?De.length===3?[De[0],De[1],De[2],1]:[De[0],De[1],De[2],De[3]]:[0,0,0,1]}function Se(De){if(Array.isArray(De)){if(Array.isArray(De))return[Ee(De[0]),Ee(De[1]),Ee(De[2])];var xe=Ee(De);return[xe.slice(),xe.slice(),xe.slice()]}}W.update=function(De){De=De||{},this.objectOffset=De.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in De&&(this.contourWidth=ke(De.contourWidth,Number)),"showContour"in De&&(this.showContour=ke(De.showContour,Boolean)),"showSurface"in De&&(this.showSurface=!!De.showSurface),"contourTint"in De&&(this.contourTint=ke(De.contourTint,Boolean)),"contourColor"in De&&(this.contourColor=Se(De.contourColor)),"contourProject"in De&&(this.contourProject=ke(De.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in De&&(this.surfaceProject=De.surfaceProject),"dynamicColor"in De&&(this.dynamicColor=Se(De.dynamicColor)),"dynamicTint"in De&&(this.dynamicTint=ke(De.dynamicTint,Number)),"dynamicWidth"in De&&(this.dynamicWidth=ke(De.dynamicWidth,Number)),"opacity"in De&&(this.opacity=De.opacity),"opacityscale"in De&&(this.opacityscale=De.opacityscale),"colorBounds"in De&&(this.colorBounds=De.colorBounds),"vertexColor"in De&&(this.vertexColor=De.vertexColor?1:0),"colormap"in De&&this._colorMap.setPixels(this.genColormap(De.colormap,this.opacityscale));var xe=De.field||De.coords&&De.coords[2]||null,Ne=!1;if(xe||(this._field[2].shape[0]||this._field[2].shape[2]?xe=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):xe=this._field[2].hi(0,0)),"field"in De||"coords"in De){var ce=(xe.shape[0]+2)*(xe.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]=_(this._field[2].data,[xe.shape[0]+2,xe.shape[1]+2]),this.padField(this._field[2],xe),this.shape=xe.shape.slice();for(var je=this.shape,Qe=0;Qe<2;++Qe)this._field[2].size>this._field[Qe].data.length&&(c.freeFloat(this._field[Qe].data),this._field[Qe].data=c.mallocFloat(this._field[2].size)),this._field[Qe]=_(this._field[Qe].data,[je[0]+2,je[1]+2]);if(De.coords){var gt=De.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(Qe=0;Qe<2;++Qe){var qt=gt[Qe];for(Mt=0;Mt<2;++Mt)if(qt.shape[Mt]!==je[Mt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[Qe],qt)}}else if(De.ticks){var at=De.ticks;if(!Array.isArray(at)||at.length!==2)throw new Error("gl-surface: invalid ticks");for(Qe=0;Qe<2;++Qe){var Ke=at[Qe];if((Array.isArray(Ke)||Ke.length)&&(Ke=_(Ke)),Ke.shape[0]!==je[Qe])throw new Error("gl-surface: invalid tick length");var Ct=_(Ke.data,je);Ct.stride[Qe]=Ke.stride[0],Ct.stride[Qe^1]=0,this.padField(this._field[Qe],Ct)}}else{for(Qe=0;Qe<2;++Qe){var wt=[0,0];wt[Qe]=1,this._field[Qe]=_(this._field[Qe].data,[je[0]+2,je[1]+2],wt,0)}this._field[0].set(0,0,0);for(var Mt=0;Mt0){for(var gi=0;gi<5;++gi)Br.pop();Ie-=1}continue e}}}Di.push(Ie)}this._contourOffsets[Er]=pi,this._contourCounts[Er]=Di}var ki=c.mallocFloat(Br.length);for(Qe=0;Qe=0&&(M=x|0,k+=P*M,m-=M),new E(this.data,m,P,k)},T.step=function(x){var k=this.shape[0],M=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(m+=M*(k-1),k=A(-k/P)):k=A(k/P),M*=P),new E(this.data,k,M,m)},T.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,M=this.stride;return new E(this.data,k[x],M[x],this.offset)},T.pick=function(x){var k=[],M=[],m=this.offset;typeof x=="number"&&x>=0?m=m+this.stride[0]*x|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=v[k.length+1];return P(this.data,k,M,m)},function(x,k,M,m){return new E(x,k[0],M[0],m)}},2:function(b,v,C){function E(L,x,k,M,m,P){this.data=L,this.shape=[x,k],this.stride=[M,m],this.offset=P|0}var T=E.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,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=M},T.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]},T.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},T.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)},T.lo=function(x,k){var M=this.offset,m=0,P=this.shape[0],A=this.shape[1],F=this.stride[0],B=this.stride[1];return typeof x=="number"&&x>=0&&(m=x|0,M+=F*m,P-=m),typeof k=="number"&&k>=0&&(m=k|0,M+=B*m,A-=m),new E(this.data,P,A,F,B,M)},T.step=function(x,k){var M=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],F=this.offset,B=0,U=Math.ceil;return typeof x=="number"&&(B=x|0,B<0?(F+=P*(M-1),M=U(-M/B)):M=U(M/B),P*=B),typeof k=="number"&&(B=k|0,B<0?(F+=A*(m-1),m=U(-m/B)):m=U(m/B),A*=B),new E(this.data,M,m,P,A,F)},T.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var M=this.shape,m=this.stride;return new E(this.data,M[x],M[k],m[x],m[k],this.offset)},T.pick=function(x,k){var M=[],m=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),m.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),m.push(this.stride[1]));var A=v[M.length+1];return A(this.data,M,m,P)},function(x,k,M,m){return new E(x,k[0],k[1],M[0],M[1],m)}},3:function(b,v,C){function E(L,x,k,M,m,P,A,F){this.data=L,this.shape=[x,k,M],this.stride=[m,P,A],this.offset=F|0}var T=E.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]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return x>k?k>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),T.set=function(x,k,M,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M,m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]=m},T.get=function(x,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]},T.index=function(x,k,M){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M},T.hi=function(x,k,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 M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,k,M){var m=this.offset,P=0,A=this.shape[0],F=this.shape[1],B=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,A-=P),typeof k=="number"&&k>=0&&(P=k|0,m+=G*P,F-=P),typeof M=="number"&&M>=0&&(P=M|0,m+=j*P,B-=P),new E(this.data,A,F,B,U,G,j,m)},T.step=function(x,k,M){var m=this.shape[0],P=this.shape[1],A=this.shape[2],F=this.stride[0],B=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+=F*(m-1),m=W(-m/j)):m=W(m/j),F*=j),typeof k=="number"&&(j=k|0,j<0?(G+=B*(P-1),P=W(-P/j)):P=W(P/j),B*=j),typeof M=="number"&&(j=M|0,j<0?(G+=U*(A-1),A=W(-A/j)):A=W(A/j),U*=j),new E(this.data,m,P,A,F,B,U,G)},T.transpose=function(x,k,M){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var m=this.shape,P=this.stride;return new E(this.data,m[x],m[k],m[M],P[x],P[k],P[M],this.offset)},T.pick=function(x,k,M){var m=[],P=[],A=this.offset;typeof x=="number"&&x>=0?A=A+this.stride[0]*x|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?A=A+this.stride[1]*k|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(m.push(this.shape[2]),P.push(this.stride[2]));var F=v[m.length+1];return F(this.data,m,P,A)},function(x,k,M,m){return new E(x,k[0],k[1],k[2],M[0],M[1],M[2],m)}},4:function(b,v,C){function E(L,x,k,M,m,P,A,F,B,U){this.data=L,this.shape=[x,k,M,m],this.stride=[P,A,F,B],this.offset=U|0}var T=E.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:C}),T.set=function(x,k,M,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m]=P},T.get=function(x,k,M,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m]},T.index=function(x,k,M,m){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m},T.hi=function(x,k,M,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 M!="number"||M<0?this.shape[2]:M|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)},T.lo=function(x,k,M,m){var P=this.offset,A=0,F=this.shape[0],B=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&&(A=x|0,P+=j*A,F-=A),typeof k=="number"&&k>=0&&(A=k|0,P+=W*A,B-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=H*A,G-=A),new E(this.data,F,B,U,G,j,W,N,H,P)},T.step=function(x,k,M,m){var P=this.shape[0],A=this.shape[1],F=this.shape[2],B=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*(A-1),A=re(-A/H)):A=re(A/H),G*=H),typeof M=="number"&&(H=M|0,H<0?(N+=j*(F-1),F=re(-F/H)):F=re(F/H),j*=H),typeof m=="number"&&(H=m|0,H<0?(N+=W*(B-1),B=re(-B/H)):B=re(B/H),W*=H),new E(this.data,P,A,F,B,U,G,j,W,N)},T.transpose=function(x,k,M,m){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[x],P[k],P[M],P[m],A[x],A[k],A[M],A[m],this.offset)},T.pick=function(x,k,M,m){var P=[],A=[],F=this.offset;typeof x=="number"&&x>=0?F=F+this.stride[0]*x|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof k=="number"&&k>=0?F=F+this.stride[1]*k|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?F=F+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?F=F+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var B=v[P.length+1];return B(this.data,P,A,F)},function(x,k,M,m){return new E(x,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],m)}},5:function(v,C,E){function T(x,k,M,m,P,A,F,B,U,G,j,W){this.data=x,this.shape=[k,M,m,P,A],this.stride=[F,B,U,G,j],this.offset=W|0}var L=T.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,M,m,P,A,F){return v==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,F):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=F},L.get=function(k,M,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(k,M,m,P,A){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(k,M,m,P,A){return new T(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,m,P,A){var F=this.offset,B=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],ge=this.stride[3],ze=this.stride[4];return typeof k=="number"&&k>=0&&(B=k|0,F+=H*B,U-=B),typeof M=="number"&&M>=0&&(B=M|0,F+=re*B,G-=B),typeof m=="number"&&m>=0&&(B=m|0,F+=ae*B,j-=B),typeof P=="number"&&P>=0&&(B=P|0,F+=ge*B,W-=B),typeof A=="number"&&A>=0&&(B=A|0,F+=ze*B,N-=B),new T(this.data,U,G,j,W,N,H,re,ae,ge,ze,F)},L.step=function(k,M,m,P,A){var F=this.shape[0],B=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],ge=this.offset,ze=0,Le=Math.ceil;return typeof k=="number"&&(ze=k|0,ze<0?(ge+=W*(F-1),F=Le(-F/ze)):F=Le(F/ze),W*=ze),typeof M=="number"&&(ze=M|0,ze<0?(ge+=N*(B-1),B=Le(-B/ze)):B=Le(B/ze),N*=ze),typeof m=="number"&&(ze=m|0,ze<0?(ge+=H*(U-1),U=Le(-U/ze)):U=Le(U/ze),H*=ze),typeof P=="number"&&(ze=P|0,ze<0?(ge+=re*(G-1),G=Le(-G/ze)):G=Le(G/ze),re*=ze),typeof A=="number"&&(ze=A|0,ze<0?(ge+=ae*(j-1),j=Le(-j/ze)):j=Le(j/ze),ae*=ze),new T(this.data,F,B,U,G,j,W,N,H,re,ae,ge)},L.transpose=function(k,M,m,P,A){k=k===void 0?0:k|0,M=M===void 0?1:M|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var F=this.shape,B=this.stride;return new T(this.data,F[k],F[M],F[m],F[P],F[A],B[k],B[M],B[m],B[P],B[A],this.offset)},L.pick=function(k,M,m,P,A){var F=[],B=[],U=this.offset;typeof k=="number"&&k>=0?U=U+this.stride[0]*k|0:(F.push(this.shape[0]),B.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(F.push(this.shape[1]),B.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(F.push(this.shape[2]),B.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(F.push(this.shape[3]),B.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(F.push(this.shape[4]),B.push(this.stride[4]));var G=C[F.length+1];return G(this.data,F,B,U)},function(k,M,m,P){return new T(k,M[0],M[1],M[2],M[3],M[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 _(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 T=v.length;if(C===void 0){C=new Array(T);for(var L=T-1,x=1;L>=0;--L)C[L]=x,x*=v[L]}if(E===void 0){E=0;for(var L=0;L1e-6?(C[0]=T/M,C[1]=L/M,C[2]=x/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function _(C,E,T){this.radius=s([T]),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=_.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 T=this.computedMatrix;l(T,E);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*T[2],x[1]=L[1]+M*T[6],x[2]=L[2]+M*T[10],k[0]=T[1],k[1]=T[5],k[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*x[A];T[12+m]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},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,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],M=x[5],m=x[9],P=h(k,M,m);k/=P,M/=P,m/=P;var A=x[0],F=x[4],B=x[8],U=A*k+F*M+B*m;A-=k*U,F-=M*U,B-=m*U;var G=h(A,F,B);A/=G,F/=G,B/=G;var j=x[2],W=x[6],N=x[10],H=j*k+W*M+N*m,re=j*A+W*F+N*B;j-=H*k+re*A,W-=H*M+re*F,N-=H*m+re*B;var ae=h(j,W,N);j/=ae,W/=ae,N/=ae;var ge=A*E+k*T,ze=F*E+M*T,Le=B*E+m*T;this.center.move(C,ge,ze,Le);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,T,L){this.recalcMatrix(C),E=E||0,T=T||0;var x=this.computedMatrix,k=x[0],M=x[4],m=x[8],P=x[1],A=x[5],F=x[9],B=x[2],U=x[6],G=x[10],j=E*k+T*P,W=E*M+T*A,N=E*m+T*F,H=-(U*N-G*W),re=-(G*j-B*N),ae=-(B*W-U*j),ge=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(ae,2))),ze=d(H,re,ae,ge);ze>1e-6?(H/=ze,re/=ze,ae/=ze,ge/=ze):(H=re=ae=0,ge=1);var Le=this.computedRotation,de=Le[0],te=Le[1],ke=Le[2],Ee=Le[3],Se=de*ge+Ee*H+te*ae-ke*re,Ge=te*ge+Ee*re+ke*H-de*ae,De=ke*ge+Ee*ae+de*re-te*H,xe=Ee*ge-de*H-te*re-ke*ae;if(L){H=B,re=U,ae=G;var Ne=Math.sin(L)/h(H,re,ae);H*=Ne,re*=Ne,ae*=Ne,ge=Math.cos(E),Se=Se*ge+xe*H+Ge*ae-De*re,Ge=Ge*ge+xe*re+De*H-Se*ae,De=De*ge+xe*ae+Se*re-Ge*H,xe=xe*ge-Se*H-Ge*re-De*ae}var ce=d(Se,Ge,De,xe);ce>1e-6?(Se/=ce,Ge/=ce,De/=ce,xe/=ce):(Se=Ge=De=0,xe=1),this.rotation.set(C,Se,Ge,De,xe)},b.lookAt=function(C,E,T,L){this.recalcMatrix(C),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;u(x,E,T,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 M=0,m=0;m<3;++m)M+=Math.pow(T[m]-E[m],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,T[0],T[1],T[2])},b.translate=function(C,E,T,L){this.center.move(C,E||0,T||0,L||0)},b.setMatrix=function(C,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(C,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,M=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,M-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(),T=C.center;T&&this.center.set(E,T[0],T[1],T[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],T=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var x=new _(T,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}},9994:function(i,a,o){"use strict";var s=o(9618),u=o(8277);i.exports=function(f,c){for(var h=[],d=f,p=1;Array.isArray(d);)h.push(d.length),p*=d.length,d=d[0];return h.length===0?s():(c||(c=s(new Float64Array(p),h)),u(c,f),c)}}},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);Fze.exports=n})()});var IX=Te((Syr,Bze)=>{"use strict";Bze.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 Uze=Te((Myr,Nze)=>{"use strict";var Oze=IX();Nze.exports=JIt;var qze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function JIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),Oze[e])r=Oze[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(qze[h]!==void 0)return qze[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 Gze=Te((Eyr,Vze)=>{"use strict";var $It=Uze();Vze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=$It(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=QIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function QIt(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 rk=Te((kyr,Hze)=>{Hze.exports=eRt;function eRt(e,t,r){return tr?r:e:et?t:e}});var Q6=Te((Cyr,Wze)=>{Wze.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 ox=Te((Lyr,jze)=>{"use strict";var tRt=Gze(),eF=rk(),rRt=Q6();jze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=rRt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=tRt(t),t[0]/=255,t[1]/=255,t[2]/=255),iRt(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]=eF(Math.floor(t[0]*255),0,255),i[1]=eF(Math.floor(t[1]*255),0,255),i[2]=eF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:eF(Math.floor(t[3]*255),0,255)),i)};function iRt(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=Te((Pyr,Xze)=>{"use strict";var nRt=ox();function aRt(e){return e?nRt(e):[0,0,0,1]}Xze.exports=aRt});var a1=Te((zyr,eIe)=>{"use strict";var $ze=ku(),oRt=hd(),tF=ox(),rF=_c(),sRt=Oh().defaultLine,Zze=mp().isArrayOrTypedArray,RX=tF(sRt),Qze=1;function Yze(e,t){var r=e;return r[3]*=t,r}function Kze(e){if($ze(e))return RX;var t=tF(e);return t.length?t:RX}function Jze(e){return $ze(e)?e:Qze}function lRt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Zze(n),a=Zze(t),o=rF.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=rF.makeColorScaleFuncFromTrace(e):u=Kze,i?l=function(p,_){return p[_]===void 0?RX:tF(u(p[_]))}:l=Kze,a?f=function(p,_){return p[_]===void 0?Qze:Jze(p[_])}:f=Jze,i||a)for(var d=0;d{"use strict";tIe.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 iF=Te((Ryr,rIe)=>{"use strict";rIe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var nIe=Te((Dyr,iIe)=>{"use strict";var fRt=$l();function FX(e,t,r,n){if(!t||!t.visible)return null;for(var i=fRt.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 cRt(e){for(var t=0;t{"use strict";var dRt=Od().gl_line3d,aIe=Od().gl_scatter3d,pRt=Od().gl_error3d,vRt=Od().gl_mesh3d,mRt=Od().delaunay_triangulate,o1=ei(),fIe=n1(),nF=a1().formatColor,yRt=B3(),BX=DX(),gRt=iF(),_Rt=wu(),xRt=iv().appendArrayPointValue,bRt=nIe();function cIe(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 qX=cIe.prototype;qX.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 wRt(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 sIe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function TRt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=wRt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=vRt(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)};qX.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 kRt(e,t){var r=new cIe(e,t.uid);return r.update(t),r}hIe.exports=kRt});var HX=Te((Byr,yIe)=>{"use strict";var s1=Zc(),CRt=gc(),GX=nc(),NX=jc().axisHoverFormat,{hovertemplateAttrs:LRt,texttemplateAttrs:PRt,templatefallbackAttrs:pIe}=Ff(),vIe=Gf(),zRt=DX(),IRt=iF(),$m=Su().extendFlat,RRt=Sc().overrideAll,mIe=t_(),DRt=s1.line,J2=s1.marker,FRt=J2.line,BRt=$m({width:DRt.width,dash:{valType:"enumerated",values:mIe(zRt),dflt:"solid"}},GX("line"));function UX(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 VX=yIe.exports=RRt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$m({},s1.text,{}),texttemplate:PRt(),texttemplatefallback:pIe({editType:"calc"}),hovertext:$m({},s1.hovertext,{}),hovertemplate:LRt(),hovertemplatefallback:pIe(),xhoverformat:NX("x"),yhoverformat:NX("y"),zhoverformat:NX("z"),mode:$m({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:UX("x"),y:UX("y"),z:UX("z")},connectgaps:s1.connectgaps,line:BRt,marker:$m({symbol:{valType:"enumerated",values:mIe(IRt),dflt:"circle",arrayOk:!0},size:$m({},J2.size,{dflt:8}),sizeref:J2.sizeref,sizemin:J2.sizemin,sizemode:J2.sizemode,opacity:$m({},J2.opacity,{arrayOk:!1}),colorbar:J2.colorbar,line:$m({width:$m({},FRt.width,{arrayOk:!1})},GX("marker.line"))},GX("marker")),textposition:$m({},s1.textposition,{dflt:"top center"}),textfont:CRt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:vIe.opacity,hoverinfo:$m({},vIe.hoverinfo)},"calc","nested");VX.x.editType=VX.y.editType=VX.z.editType="calc+clearAxisTypes"});var xIe=Te((Oyr,_Ie)=>{"use strict";var gIe=$l(),ORt=ei(),WX=lc(),qRt=$v(),NRt=R0(),URt=D0(),VRt=HX();_Ie.exports=function(t,r,n,i){function a(d,p){return ORt.coerce(t,r,VRt,d,p)}var o=GRt(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"),WX.hasMarkers(r)&&qRt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),WX.hasLines(r)&&(a("connectgaps"),NRt(t,r,n,i,a)),WX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),URt(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=gIe.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 GRt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=gIe.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 wIe=Te((qyr,bIe)=>{"use strict";var HRt=Iy(),WRt=F0();bIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return HRt(n,r),WRt(t,r),n}});var TIe=Te((Nyr,AIe)=>{AIe.exports=jRt;function jRt(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 XRt=TIe();SIe.exports=function(t){return XRt("webgl",t)}});var jX=Te((Vyr,kIe)=>{"use strict";var EIe=jl(),ZRt=function(){};kIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=ZRt);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=EIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=EIe.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 PIe=Te((Gyr,LIe)=>{"use strict";var $2=n1(),YRt=ei(),KRt=["xaxis","yaxis","zaxis"];function CIe(){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 JRt=CIe.prototype;JRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[KRt[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?YRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=$2(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]=$2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=$2(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]=$2(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]=$2(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]=$2(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]=$2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function $Rt(e,t){var r=new CIe;return r.merge(e,t),r}LIe.exports=$Rt});var RIe=Te((Hyr,IIe)=>{"use strict";var QRt=n1(),eDt=["xaxis","yaxis","zaxis"];function zIe(){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 tDt=zIe.prototype;tDt.merge=function(e){for(var t=0;t<3;++t){var r=e[eDt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=QRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function rDt(e){var t=new zIe;return t.merge(e),t}IIe.exports=rDt});var BIe=Te((Wyr,FIe)=>{"use strict";FIe.exports=sDt;var DIe=wu(),iDt=ei(),nDt=["xaxis","yaxis","zaxis"],aDt=[0,0,0];function oDt(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){aDt[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=oDt(i)}});var HIe=Te((jyr,GIe)=>{"use strict";var NIe=Od().gl_plot3d,lDt=NIe.createCamera,OIe=NIe.createScene,uDt=MIe(),fDt=UP(),sF=$l(),fv=ei(),oF=fv.preserveDrawingBuffer(),lF=wu(),Qm=Xc(),cDt=n1(),hDt=jX(),dDt=iV(),pDt=PIe(),vDt=RIe(),mDt=BIe(),yDt=Mm().applyAutorangeOptions,ik,aF,UIe=!1;function VIe(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=vDt(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=sF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Ep=VIe.prototype;Ep.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oF,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(!aF&&(ik=document.createElement("canvas"),aF=uDt({canvas:ik,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aF))throw new Error("error creating static canvas/context for image server");t.gl=aF,t.canvas=ik}return t};var qIe=!0;Ep.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=OIe(t)}catch(n){if(e.staticMode||!qIe||oF)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{oF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=OIe(t)}catch(i){oF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return qIe=!1,r};Ep.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=lDt(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 hDt(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(){UIe=!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)}},fDt?{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),mDt(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=lF.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:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Qm.appendArrayPointValue(k,_,b),r._module.eventData&&(k=_._module.eventData(k,c,_,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var m=[];Qm.loneHover({trace:_,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(_,b,"bgcolor")||f.color,borderColor:Qm.castHoverOption(_,b,"bordercolor"),fontFamily:Qm.castHoverOption(_,b,"font.family"),fontSize:Qm.castHoverOption(_,b,"font.size"),fontColor:Qm.castHoverOption(_,b,"font.color"),nameLength:Qm.castHoverOption(_,b,"namelength"),textAlign:Qm.castHoverOption(_,b,"align"),hovertemplate:fv.castOption(_,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||UIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}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 nk=["xaxis","yaxis","zaxis"];function gDt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=nk[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;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var A=_[1][o]-_[0][o];_[0][o]-=A/32,_[1][o]+=A/32}if(C=[_[0][o],_[1][o]],C=yDt(C,u),_[0][o]=C[0],_[1][o]=C[1],u.isReversed()){var F=_[0][o];_[0][o]=_[1][o],_[1][o]=F}}else C=u.range,_[0][o]=u.r2l(C[0]),_[1][o]=u.r2l(C[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],u.range=[_[0][o],_[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var B,U=f.aspectmode;if(U==="cube")B=[1,1,1];else if(U==="manual"){var G=f.aspectratio;B=[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[nk[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?B=j:B=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=B[0],f.aspectratio.y=c.aspectratio.y=B[1],f.aspectratio.z=c.aspectratio.z=B[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 xDt(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,xDt(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),sF.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;sF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,fv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function wDt(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(ik),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),wDt(a,n,i),ADt(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(ik),l};Ep.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[nk[t]];lF.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"},lF.setConvert(e._mockAxis,r)};GIe.exports=VIe});var jIe=Te((Xyr,WIe)=>{"use strict";WIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var ZX=Te((Zyr,XIe)=>{"use strict";var TDt=jl(),ff=Dd(),XX=Su().extendFlat,SDt=Sc().overrideAll;XIe.exports=SDt({visible:ff.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:TDt.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:XX({},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:XX({},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:XX({},ff.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:ff.gridwidth,zeroline:ff.zeroline,zerolinecolor:ff.zerolinecolor,zerolinewidth:ff.zerolinewidth},"plot","from-root")});var $X=Te((Yyr,ZIe)=>{"use strict";var YX=ZX(),MDt=zc().attributes,KX=Su().extendFlat,EDt=ei().counterRegex;function JX(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"}}ZIe.exports={_arrayAttrRegexps:[EDt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:KX(JX(0,0,1),{}),center:KX(JX(0,0,0),{}),eye:KX(JX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:MDt({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:YX,yaxis:YX,zaxis:YX,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 $Ie=Te((Kyr,JIe)=>{"use strict";var kDt=hd().mix,YIe=ei(),CDt=Lf(),LDt=ZX(),PDt=UU(),zDt=cE(),KIe=["xaxis","yaxis","zaxis"],IDt=100*136/187;JIe.exports=function(t,r,n){var i,a;function o(l,f){return YIe.coerce(i,a,LDt,l,f)}for(var s=0;s{"use strict";var RDt=ei(),DDt=jl(),FDt=$l(),BDt=B_(),ODt=$Ie(),QIe=$X(),qDt=Rd().getSubplotData,eRe="gl3d";tRe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=RDt.validate(t[o],QIe[o]);if(s)return t[o]}}BDt(t,r,n,{type:eRe,attributes:QIe,handleDefaults:NDt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function NDt(e,t,r,n){for(var i=r("bgcolor"),a=DDt.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 sx=Te(cv=>{"use strict";var UDt=Sc().overrideAll,VDt=j1(),GDt=HIe(),HDt=Rd().getSubplotData,WDt=ei(),jDt=jv(),XT="gl3d",QX="scene";cv.name=XT;cv.attr=QX;cv.idRoot=QX;cv.idRegex=cv.attrRegex=WDt.counterRegex("scene");cv.attributes=jIe();cv.layoutAttributes=$X();cv.baseLayoutAttrOverrides=UDt({hoverlabel:VDt.hoverlabel},"plot","nested");cv.supplyLayoutDefaults=rRe();cv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[XT],a=0;a{"use strict";iRe.exports={plot:dIe(),attributes:HX(),markerSymbols:iF(),supplyDefaults:xIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:wIe(),moduleType:"trace",name:"scatter3d",basePlotModule:sx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var oRe=Te((egr,aRe)=>{"use strict";aRe.exports=nRe()});var ak=Te((tgr,uRe)=>{"use strict";var sRe=jl(),XDt=nc(),eZ=jc().axisHoverFormat,{hovertemplateAttrs:ZDt,templatefallbackAttrs:YDt}=Ff(),lRe=Gf(),tZ=Su().extendFlat,KDt=Sc().overrideAll;function rZ(e){return{valType:"boolean",dflt:!1}}function iZ(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:rZ("x"),y:rZ("y"),z:rZ("z")},color:{valType:"color",dflt:sRe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:sRe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var nZ=uRe.exports=KDt(tZ({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:ZDt(),hovertemplatefallback:YDt(),xhoverformat:eZ("x"),yhoverformat:eZ("y"),zhoverformat:eZ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},XDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:iZ("x"),y:iZ("y"),z:iZ("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:tZ({},lRe.hoverinfo),showlegend:tZ({},lRe.showlegend,{dflt:!1})}),"calc","nested");nZ.x.editType=nZ.y.editType=nZ.z.editType="calc+clearAxisTypes"});var oZ=Te((rgr,hRe)=>{"use strict";var JDt=$l(),fRe=ei(),$Dt=nd(),QDt=ak(),aZ=.1;function e6t(e,t){for(var r=[],n=32,i=0;i{"use strict";var dRe=gp();pRe.exports=function(t,r){r.surfacecolor?dRe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):dRe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var bRe=Te((ngr,xRe)=>{"use strict";var i6t=Od().gl_surface3d,ZT=Od().ndarray,n6t=Od().ndarray_linear_interpolate.d2,a6t=fR(),o6t=cR(),ok=ei().isArrayOrTypedArray,s6t=a1().parseColorScale,mRe=n1(),l6t=_c().extractOpts;function gRe(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=gRe.prototype;ey.getXat=function(e,t,r,n){var i=ok(this.data.x)?ok(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=ok(this.data.y)?ok(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 ok(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 u6t(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 YT=[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 f6t(e,t){if(e0){r=YT[n];break}return r}function h6t(e,t){if(!(e<1||t<1)){for(var r=sZ(e),n=sZ(t),i=1,a=0;auF;)n--,n/=c6t(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 v6t(e,t,r){return m6t(e,t,p6t,r),e}function m6t(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";wRe.exports={attributes:ak(),supplyDefaults:oZ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:vRe(),plot:bRe(),moduleType:"trace",name:"surface",basePlotModule:sx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var SRe=Te((ogr,TRe)=>{"use strict";TRe.exports=ARe()});var KT=Te((sgr,ERe)=>{"use strict";var _6t=nc(),lZ=jc().axisHoverFormat,{hovertemplateAttrs:x6t,templatefallbackAttrs:b6t}=Ff(),lx=ak(),MRe=Gf(),ux=Su().extendFlat;ERe.exports=ux({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:x6t({editType:"calc"}),hovertemplatefallback:b6t({editType:"calc"}),xhoverformat:lZ("x"),yhoverformat:lZ("y"),zhoverformat:lZ("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"}},_6t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ux({},lx.contours.x.show,{}),color:lx.contours.x.color,width:lx.contours.x.width,editType:"calc"},lightposition:{x:ux({},lx.lightposition.x,{dflt:1e5}),y:ux({},lx.lightposition.y,{dflt:1e5}),z:ux({},lx.lightposition.z,{dflt:0}),editType:"calc"},lighting:ux({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"},lx.lighting),hoverinfo:ux({},MRe.hoverinfo,{editType:"calc"}),showlegend:ux({},MRe.showlegend,{dflt:!1})})});var cF=Te((lgr,CRe)=>{"use strict";var w6t=nc(),fF=jc().axisHoverFormat,{hovertemplateAttrs:A6t,templatefallbackAttrs:T6t}=Ff(),sk=KT(),kRe=Gf(),uZ=Su().extendFlat,S6t=Sc().overrideAll;function fZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function cZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var JT=CRe.exports=S6t(uZ({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:fZ("x"),y:fZ("y"),z:fZ("z")},caps:{x:cZ("x"),y:cZ("y"),z:cZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:A6t(),hovertemplatefallback:T6t(),xhoverformat:fF("x"),yhoverformat:fF("y"),zhoverformat:fF("z"),valuehoverformat:fF("value",1),showlegend:uZ({},kRe.showlegend,{dflt:!1})},w6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:sk.opacity,lightposition:sk.lightposition,lighting:sk.lighting,flatshading:sk.flatshading,contour:sk.contour,hoverinfo:uZ({},kRe.hoverinfo)}),"calc","nested");JT.flatshading.dflt=!0;JT.lighting.facenormalsepsilon.dflt=0;JT.x.editType=JT.y.editType=JT.z.editType=JT.value.editType="calc+clearAxisTypes"});var hZ=Te((ugr,PRe)=>{"use strict";var M6t=ei(),E6t=$l(),k6t=cF(),C6t=nd();function L6t(e,t,r,n){function i(a,o){return M6t.coerce(e,t,k6t,a,o)}LRe(e,t,r,n,i)}function LRe(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=E6t.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,v=i(b+".show");v&&i(b+".fill");var C="slices."+_,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(_){i(_)}),C6t(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}PRe.exports={supplyDefaults:L6t,supplyIsoDefaults:LRe}});var hF=Te((fgr,IRe)=>{"use strict";var pZ=ei(),P6t=gp();function z6t(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=Jy(t.u,t._len),t._v=Jy(t.v,t._len),t._w=Jy(t.w,t._len),t._x=Jy(t.x,t._len),t._y=Jy(t.y,t._len),t._z=Jy(t.z,t._len);var r=zRe(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=Jy(t.starts.x||[]),a=Jy(t.starts.y||[]),o=Jy(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",(T>L?"-":"+")+"y"),p=p.replace("z",(x>k?"-":"+")+"z");var A=function(){i=0,M=[],m=[],P=[]};(!i||i{"use strict";var I6t=gp(),R6t=hF().processGrid,dF=hF().filter;RRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dF(r.x,r._len),r._y=dF(r.y,r._len),r._z=dF(r.z,r._len),r._value=dF(r.value,r._len);var n=R6t(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";DRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var D6t=Od().gl_mesh3d,F6t=a1().parseColorScale,B6t=ei().isArrayOrTypedArray,O6t=n1(),q6t=_c().extractOpts,FRe=$T(),lk=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(At,vt){return At===null?vt:At}function ge(At,vt,Je){A();var He=[vt],nt=[Je];if(W>=1)He=[vt],nt=[Je];else if(W>0){var tt=H(vt,Je);He=tt.xyzv,nt=tt.abc}for(var It=0;It-1?Je[cr]:P(_r,yr,Ut);be>-1?Yt[cr]=be:Yt[cr]=B(_r,yr,Ut,ae(At,Re))}U(Yt[0],Yt[1],Yt[2])}}function ze(At,vt,Je){var He=function(nt,tt,It){ge(At,[vt[nt],vt[tt],vt[It]],[Je[nt],Je[tt],Je[It]])};He(0,1,2),He(2,3,0)}function Le(At,vt,Je){var He=function(nt,tt,It){ge(At,[vt[nt],vt[tt],vt[It]],[Je[nt],Je[tt],Je[It]])};He(0,1,2),He(3,0,1),He(2,3,0),He(1,2,3)}function de(At,vt,Je,He){var nt=At[3];ntHe&&(nt=He);for(var tt=(At[3]-nt)/(At[3]-vt[3]+1e-9),It=[],Yt=0;Yt<4;Yt++)It[Yt]=(1-tt)*At[Yt]+tt*vt[Yt];return It}function te(At,vt,Je){return At>=vt&&At<=Je}function ke(At){var vt=.001*(L-T);return At>=T-vt&&At<=L+vt}function Ee(At){for(var vt=[],Je=0;Je<4;Je++){var He=At[Je];vt.push([e._x[He],e._y[He],e._z[He],e._value[He]])}return vt}var Se=3;function Ge(At,vt,Je,He,nt,tt){tt||(tt=1),Je=[-1,-1,-1];var It=!1,Yt=[te(vt[0][3],He,nt),te(vt[1][3],He,nt),te(vt[2][3],He,nt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var cr=function(yr,Ut,Re){return ke(Ut[0][3])&&ke(Ut[1][3])&&ke(Ut[2][3])?(ge(yr,Ut,Re),!0):ttYt?[C,tt]:[tt,E];wt(vt,cr[0],cr[1])}}var _r=[[Math.min(T,E),Math.max(T,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(yr){for(var Ut=[],Re=0;Re<_r.length;Re++){var be=0,Oe=_r[Re][0],Ie=_r[Re][1],Fe=e.slices[yr];if(Fe.show&&Fe.fill){N(Fe.fill);var ft=[],ye=[],fe=[];if(Fe.locations.length)for(var pe=0;pe0&&(ye.push(dt.id),yr==="x"?fe.push([dt.distRatio,0,0]):yr==="y"?fe.push([0,dt.distRatio,0]):fe.push([0,0,dt.distRatio]))}else yr==="x"?ft=Et(1,d-1):yr==="y"?ft=Et(1,p-1):ft=Et(1,_-1);ye.length>0&&(yr==="x"?Ut[be]=Mt(At,ye,Oe,Ie,fe,Ut[be]):yr==="y"?Ut[be]=Bt(At,ye,Oe,Ie,fe,Ut[be]):Ut[be]=Zt(At,ye,Oe,Ie,fe,Ut[be]),be++),ft.length>0&&(yr==="x"?Ut[be]=gt(At,ft,Oe,Ie,Ut[be]):yr==="y"?Ut[be]=qt(At,ft,Oe,Ie,Ut[be]):Ut[be]=at(At,ft,Oe,Ie,Ut[be]),be++)}var Pt=e.caps[yr];Pt.show&&Pt.fill&&(N(Pt.fill),yr==="x"?Ut[be]=gt(At,[0,d-1],Oe,Ie,Ut[be]):yr==="y"?Ut[be]=qt(At,[0,p-1],Oe,Ie,Ut[be]):Ut[be]=at(At,[0,_-1],Oe,Ie,Ut[be]),be++)}}),s===0&&F(),e._meshX=x,e._meshY=k,e._meshZ=M,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return ot(),e}function U6t(e,t){var r=e.glplot.gl,n=D6t({gl:r}),i=new BRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}qRe.exports={findNearestOnAxis:lk,generateIsoMeshes:ORe,createIsosurfaceTrace:U6t}});var URe=Te((pgr,NRe)=>{"use strict";NRe.exports={attributes:cF(),supplyDefaults:hZ().supplyDefaults,calc:vZ(),colorbar:{min:"cmin",max:"cmax"},plot:pF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var GRe=Te((vgr,VRe)=>{"use strict";VRe.exports=URe()});var gZ=Te((mgr,WRe)=>{"use strict";var V6t=nc(),Ch=cF(),G6t=ak(),HRe=Gf(),yZ=Su().extendFlat,H6t=Sc().overrideAll,vF=WRe.exports=H6t(yZ({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},V6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ch.colorbar,opacity:Ch.opacity,opacityscale:G6t.opacityscale,lightposition:Ch.lightposition,lighting:Ch.lighting,flatshading:Ch.flatshading,contour:Ch.contour,hoverinfo:yZ({},HRe.hoverinfo),showlegend:yZ({},HRe.showlegend,{dflt:!1})}),"calc","nested");vF.x.editType=vF.y.editType=vF.z.editType=vF.value.editType="calc+clearAxisTypes"});var XRe=Te((ygr,jRe)=>{"use strict";var W6t=ei(),j6t=gZ(),X6t=hZ().supplyIsoDefaults,Z6t=oZ().opacityscaleDefaults;jRe.exports=function(t,r,n,i){function a(o,s){return W6t.coerce(t,r,j6t,o,s)}X6t(t,r,n,i,a),Z6t(t,r,i,a)}});var JRe=Te((ggr,KRe)=>{"use strict";var Y6t=Od().gl_mesh3d,K6t=a1().parseColorScale,J6t=ei().isArrayOrTypedArray,$6t=n1(),Q6t=_c().extractOpts,ZRe=$T(),_Z=pF().findNearestOnAxis,eFt=pF().generateIsoMeshes;function YRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var xZ=YRe.prototype;xZ.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=_Z(r,this.data._Xs).id,u=_Z(n,this.data._Ys).id,l=_Z(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 J6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};xZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=eFt(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=ZRe(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=ZRe(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:$6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Q6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=K6t(e),this.mesh.update(o)};xZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function tFt(e,t){var r=e.glplot.gl,n=Y6t({gl:r}),i=new YRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}KRe.exports=tFt});var QRe=Te((_gr,$Re)=>{"use strict";$Re.exports={attributes:gZ(),supplyDefaults:XRe(),calc:vZ(),colorbar:{min:"cmin",max:"cmax"},plot:JRe(),moduleType:"trace",name:"volume",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var tDe=Te((xgr,eDe)=>{"use strict";eDe.exports=QRe()});var nDe=Te((bgr,iDe)=>{"use strict";var rFt=$l(),rDe=ei(),iFt=nd(),nFt=KT();iDe.exports=function(t,r,n,i){function a(f,c){return rDe.coerce(t,r,nFt,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&rDe.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=rFt.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"),iFt(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 oDe=Te((wgr,aDe)=>{"use strict";var aFt=gp();aDe.exports=function(t,r){r.intensity&&aFt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var cDe=Te((Agr,fDe)=>{"use strict";var oFt=Od().gl_mesh3d,sFt=Od().delaunay_triangulate,lFt=Od().alpha_shape,uFt=Od().convex_hull,fFt=a1().parseColorScale,cFt=ei().isArrayOrTypedArray,TZ=n1(),hFt=_c().extractOpts,sDe=$T();function uDe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var SZ=uDe.prototype;SZ.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 cFt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function lDe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}SZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=sDe(bZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),bZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),bZ(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||!AZ(e.i,n)||!AZ(e.j,n)||!AZ(e.k,n))return;a=sDe(wZ(e.i),wZ(e.j),wZ(e.k))}else e.alphahull===0?a=uFt(i):e.alphahull>0?a=lFt(e.alphahull,i):a=dFt(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:TZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=hFt(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=fFt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=lDe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=lDe(e.facecolor)):(this.color=e.color,o.meshColor=TZ(e.color));this.mesh.update(o)};SZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function pFt(e,t){var r=e.glplot.gl,n=oFt({gl:r}),i=new uDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}fDe.exports=pFt});var dDe=Te((Tgr,hDe)=>{"use strict";hDe.exports={attributes:KT(),supplyDefaults:nDe(),calc:oDe(),colorbar:{min:"cmin",max:"cmax"},plot:cDe(),moduleType:"trace",name:"mesh3d",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var vDe=Te((Sgr,pDe)=>{"use strict";pDe.exports=dDe()});var EZ=Te((Mgr,yDe)=>{"use strict";var vFt=nc(),QT=jc().axisHoverFormat,{hovertemplateAttrs:mFt,templatefallbackAttrs:yFt}=Ff(),gFt=KT(),mDe=Gf(),MZ=Su().extendFlat,mF={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:mFt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:yFt({editType:"calc"}),uhoverformat:QT("u",1),vhoverformat:QT("v",1),whoverformat:QT("w",1),xhoverformat:QT("x"),yhoverformat:QT("y"),zhoverformat:QT("z"),showlegend:MZ({},mDe.showlegend,{dflt:!1})};MZ(mF,vFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var _Ft=["opacity","lightposition","lighting"];_Ft.forEach(function(e){mF[e]=gFt[e]});mF.hoverinfo=MZ({},mDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});yDe.exports=mF});var _De=Te((Egr,gDe)=>{"use strict";var xFt=ei(),bFt=nd(),wFt=EZ();gDe.exports=function(t,r,n,i){function a(d,p){return xFt.coerce(t,r,wFt,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 bDe=Te((kgr,xDe)=>{"use strict";var AFt=gp();xDe.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 TFt=Od().gl_cone3d,SFt=Od().gl_cone3d.createConeMesh,MFt=ei().simpleMap,EFt=a1().parseColorScale,kFt=_c().extractOpts,CFt=ei().isArrayOrTypedArray,wDe=$T();function ADe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var kZ=ADe.prototype;kZ.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 CFt(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var LFt={xaxis:0,yaxis:1,zaxis:2},PFt={tip:1,tail:0,cm:.25,center:.5},zFt={tip:1,tail:1,cm:.75,center:.5};function TDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[LFt[c]];return MFt(f,function(p){return h.d2l(p)*d})}i.vectors=wDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=wDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=kFt(t);i.colormap=EFt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=PFt[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=TFt(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=zFt[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}kZ.update=function(e){this.data=e;var t=TDe(this.scene,e);this.mesh.update(t)};kZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function IFt(e,t){var r=e.glplot.gl,n=TDe(e,t),i=SFt(r,n),a=new ADe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}SDe.exports=IFt});var kDe=Te((Lgr,EDe)=>{"use strict";EDe.exports={moduleType:"trace",name:"cone",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:EZ(),supplyDefaults:_De(),colorbar:{min:"cmin",max:"cmax"},calc:bDe(),plot:MDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var LDe=Te((Pgr,CDe)=>{"use strict";CDe.exports=kDe()});var LZ=Te((zgr,zDe)=>{"use strict";var RFt=nc(),eS=jc().axisHoverFormat,{hovertemplateAttrs:DFt,templatefallbackAttrs:FFt}=Ff(),BFt=KT(),PDe=Gf(),CZ=Su().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"},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:DFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:FFt({editType:"calc"}),uhoverformat:eS("u",1),vhoverformat:eS("v",1),whoverformat:eS("w",1),xhoverformat:eS("x"),yhoverformat:eS("y"),zhoverformat:eS("z"),showlegend:CZ({},PDe.showlegend,{dflt:!1})};CZ(yF,RFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var OFt=["opacity","lightposition","lighting"];OFt.forEach(function(e){yF[e]=BFt[e]});yF.hoverinfo=CZ({},PDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});zDe.exports=yF});var RDe=Te((Igr,IDe)=>{"use strict";var qFt=ei(),NFt=nd(),UFt=LZ();IDe.exports=function(t,r,n,i){function a(h,d){return qFt.coerce(t,r,UFt,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"),NFt(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 VDe=Te((Rgr,UDe)=>{"use strict";var BDe=Od().gl_streamtube3d,VFt=BDe.createTubeMesh,GFt=ei(),HFt=a1().parseColorScale,WFt=_c().extractOpts,DDe=$T(),ODe={xaxis:0,yaxis:1,zaxis:2};function qDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var zZ=qDe.prototype;zZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[ODe[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 FDe(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 PZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function NDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(F,B){var U=r[B],G=n[ODe[B]];return GFt.simpleMap(F,function(j){return U.d2l(j)*G})}if(a.vectors=DDe(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=DDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=FDe(s),d=FDe(l),p=new Array(h.length*d.length),_=0,b=0;b{"use strict";GDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:LZ(),supplyDefaults:RDe(),colorbar:{min:"cmin",max:"cmax"},calc:hF().calc,plot:VDe(),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 jDe=Te((Fgr,WDe)=>{"use strict";WDe.exports=HDe()});var ew=Te((Ogr,JDe)=>{"use strict";var{hovertemplateAttrs:XFt,texttemplateAttrs:ZFt,templatefallbackAttrs:XDe}=Ff(),YFt=Pm(),$y=Zc(),KFt=Gf(),ZDe=nc(),JFt=Id().dash,Q2=Su().extendFlat,$Ft=Sc().overrideAll,rm=$y.marker,YDe=$y.line,KDe=rm.line,Bgr=["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(" ");JDe.exports=$Ft({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:Q2({},$y.mode,{dflt:"markers"}),text:Q2({},$y.text,{}),texttemplate:ZFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:XDe({editType:"plot"}),hovertext:Q2({},$y.hovertext,{}),textfont:$y.textfont,textposition:$y.textposition,line:{color:YDe.color,width:YDe.width,dash:JFt},connectgaps:$y.connectgaps,marker:Q2({symbol:rm.symbol,opacity:rm.opacity,angle:rm.angle,angleref:Q2({},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:Q2({width:KDe.width,dash:KDe.dash},ZDe("marker.line")),gradient:rm.gradient},ZDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:YFt(),selected:$y.selected,unselected:$y.unselected,hoverinfo:Q2({},KFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:XFt(),hovertemplatefallback:XDe()},"calc","nested")});var QDe=Te((qgr,$De)=>{"use strict";var gF=ei(),IZ=lc(),QFt=$v(),e8t=R0(),t8t=D0(),r8t=Dm(),i8t=ew(),n8t=["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(" ");$De.exports=function(t,r,n,i){function a(d,p){return gF.coerce(t,r,i8t,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||gF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&gF.warn(n8t),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"),IZ.hasMarkers(r)&&QFt(t,r,n,i,a,{gradient:!0}),IZ.hasLines(r)&&(e8t(t,r,n,i,a),a("connectgaps")),IZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),t8t(t,r,i,a)),a("fill"),r.fill!=="none"&&r8t(t,r,n,a),gF.coerceSelectionMarkerOpacity(r,a)}});var r6e=Te((Ngr,t6e)=>{"use strict";var e6e=wu();t6e.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=e6e.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=e6e.tickText(o,o.c2l(s[1]),!0).text,i}});var _F=Te((Ugr,o6e)=>{"use strict";var RZ=ku(),i6e=rf().BADNUM,a8t=F0(),o8t=Iy(),s8t=B0(),l8t=ei().isArrayOrTypedArray,n6e=ei()._;function a6e(e){return e&&typeof e=="string"}o6e.exports=function(t,r){var n=l8t(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return a6e(h)||RZ(h)}:o=a6e;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 DZ=Te((xF,s6e)=>{(function(e,t){typeof xF=="object"&&typeof s6e!="undefined"?t(xF):(e=e||self,t(e.topojson=e.topojson||{}))})(xF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,x=E.scale[0],k=E.scale[1],M=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var F=2,B=P.length,U=new Array(B);for(U[0]=(T+=P[0])*x+M,U[1]=(L+=P[1])*k+m;FM&&(M=F[0]),F[1]m&&(m=F[1])}function A(F){switch(F.type){case"GeometryCollection":F.geometries.forEach(A);break;case"Point":P(F.coordinates);break;case"MultiPoint":F.coordinates.forEach(P);break}}E.arcs.forEach(function(F){for(var B=-1,U=F.length,G;++BM&&(M=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[x,k,M,m]}function i(E,T){for(var L,x=E.length,k=x-T;k<--x;)L=E[k],E[k++]=E[x],E[x]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,x=T.bbox,k=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&x==null?{type:"Feature",properties:k,geometry:M}:x==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:x,properties:k,geometry:M}}function s(E,T){var L=r(E.transform),x=E.arcs;function k(B,U){U.length&&U.pop();for(var G=x[B<0?~B:B],j=0,W=G.length;j1)x=c(E,T,L);else for(k=0,x=new Array(M=E.arcs.length);k1)for(var U=1,G=P(F[0]),j,W;UG&&(W=F[0],F[0]=F[U],F[U]=W,G=j);return F}).filter(function(A){return A.length>0})}}function _(E,T){for(var L=0,x=E.length;L>>1;E[k]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],x=A[1],k=A[2],M=A[3],m;T={scale:[k-L?(k-L)/(m-1):1,M-x?(M-x)/(m-1):1],translate:[L,x]}}else A=E.bbox;var P=v(T),A,F,B=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,ge,ze=new Array(ae);for(ze[0]=P(N[0],0);++H{"use strict";var FZ=l6e.exports={},u8t=uk().locationmodeToLayer,f8t=DZ().feature;FZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};FZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};FZ.getTopojsonFeatures=function(e,t){var r=u8t[e.locationmode],n=t.objects[r];return f8t(t,n).features}});var fx=Te(fk=>{"use strict";var c8t=rf().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{u6e.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 TF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Bv=63710088e-1,OZ={centimeters:Bv*100,centimetres:Bv*100,degrees:360/(2*Math.PI),feet:Bv*3.28084,inches:Bv*39.37,kilometers:Bv/1e3,kilometres:Bv/1e3,meters:Bv,metres:Bv,miles:Bv/1609.344,millimeters:Bv*1e3,millimetres:Bv*1e3,nauticalmiles:Bv/1852,radians:1,yards:Bv*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 cx(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 h8t(e,t,r={}){switch(e){case"Point":return qZ(t).geometry;case"LineString":return UZ(t).geometry;case"Polygon":return NZ(t).geometry;case"MultiPoint":return h6e(t).geometry;case"MultiLineString":return c6e(t).geometry;case"MultiPolygon":return d6e(t).geometry;default:throw new Error(e+" is invalid")}}function qZ(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(!wF(e[0])||!wF(e[1]))throw new Error("coordinates must contain numbers");return cx({type:"Point",coordinates:e},t,r)}function d8t(e,t,r={}){return AF(e.map(n=>qZ(n,t)),r)}function NZ(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;aNZ(n,t)),r)}function UZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return cx({type:"LineString",coordinates:e},t,r)}function v8t(e,t,r={}){return AF(e.map(n=>UZ(n,t)),r)}function AF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function c6e(e,t,r={}){return cx({type:"MultiLineString",coordinates:e},t,r)}function h6e(e,t,r={}){return cx({type:"MultiPoint",coordinates:e},t,r)}function d6e(e,t,r={}){return cx({type:"MultiPolygon",coordinates:e},t,r)}function m8t(e,t,r={}){return cx({type:"GeometryCollection",geometries:e},t,r)}function y8t(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 p6e(e,t="kilometers"){let r=OZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function VZ(e,t="kilometers"){let r=OZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function g8t(e,t){return v6e(VZ(e,t))}function _8t(e){let t=e%360;return t<0&&(t+=360),t}function x8t(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function v6e(e){return e%(2*Math.PI)*180/Math.PI}function b8t(e){return e%360*Math.PI/180}function w8t(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return p6e(VZ(e,t),r)}function A8t(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 wF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function T8t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function S8t(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(!wF(t))throw new Error("bbox must only contain numbers")})}function M8t(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=x8t;bc.bearingToAzimuth=_8t;bc.convertArea=A8t;bc.convertLength=w8t;bc.degreesToRadians=b8t;bc.earthRadius=Bv;bc.factors=OZ;bc.feature=cx;bc.featureCollection=AF;bc.geometry=h8t;bc.geometryCollection=m8t;bc.isNumber=wF;bc.isObject=T8t;bc.lengthToDegrees=g8t;bc.lengthToRadians=VZ;bc.lineString=UZ;bc.lineStrings=v8t;bc.multiLineString=c6e;bc.multiPoint=h6e;bc.multiPolygon=d6e;bc.point=qZ;bc.points=d8t;bc.polygon=NZ;bc.polygons=p8t;bc.radiansToDegrees=v6e;bc.radiansToLength=p6e;bc.round=y8t;bc.validateBBox=S8t;bc.validateId=M8t});var MF=Te(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jp=TF();function ck(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",_=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||_>f){s=c,u=n,l=p,f=_,a=0;return}var b=jp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function I8t(e,t,r){var n=r,i=!1;return g6e(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 _6e(e,t){if(!e)throw new Error("geojson is required");SF(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(EF,"__esModule",{value:!0});var x6e=TF(),B8t=MF();function A6e(e){return B8t.geomReduce.call(void 0,e,(t,r)=>t+O8t(r),0)}function O8t(e){let t=0,r;switch(e.type){case"Polygon":return b6e(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(w6e(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*HZ,u=a[1]*HZ,l=o[0]*HZ;r+=(l-s)*Math.sin(u),n++}return r*q8t}var N8t=A6e;EF.area=A6e;EF.default=N8t});var M6e=Te(kF=>{"use strict";Object.defineProperty(kF,"__esModule",{value:!0});var U8t=TF(),V8t=MF();function S6e(e,t={}){let r=0,n=0,i=0;return V8t.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),U8t.point.call(void 0,[r/i,n/i],t.properties)}var G8t=S6e;kF.centroid=S6e;kF.default=G8t});var k6e=Te(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var H8t=MF();function E6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return H8t.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 j8t=Jl(),P6e=f6e(),{area:X8t}=T6e(),{centroid:Z8t}=M6e(),{bbox:Y8t}=k6e(),C6e=ZM(),tS=K1(),K8t=Ag(),J8t=DM(),LF=D5(),L6e=Object.keys(P6e),$8t={"ISO-3":C6e,"USA-states":C6e,"country names":Q8t};function Q8t(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=LF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(LF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=iBt(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else tS.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 Z8t(r).geometry.coordinates}function nBt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){j8t.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 oBt=Jl(),sBt=Mu(),R6e=jl(),D6e=sv(),lBt=D6e.stylePoints,uBt=D6e.styleText;F6e.exports=function(t,r){r&&fBt(t,r)};function fBt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),lBt(n,r,e),uBt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=oBt.select(this),o=i.trace,s=o.line||{};a.call(R6e.stroke,s.color).call(sBt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(R6e.fill,o.fillcolor)})}});var YZ=Te((Qgr,q6e)=>{"use strict";var B6e=Jl(),zF=ei(),cBt=bF().getTopojsonFeatures,jZ=fx(),PF=hx(),O6e=Mm().findExtremes,ZZ=rf().BADNUM,hBt=O0().calcMarkerSize,XZ=lc(),dBt=WZ();function pBt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=zF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===ZZ&&B6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=B6e.select(this),u=o[0].trace;if(XZ.hasLines(u)||u.fill!=="none"){var l=jZ.calcTraceToLineCoords(o),f=u.fill!=="none"?jZ.makePolygon(l):jZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}XZ.hasMarkers(u)&&s.selectAll("path.point").data(zF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),XZ.hasText(u)&&s.selectAll("g").data(zF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),dBt(e,o)})}function vBt(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 u=r.locationmode,l=u==="geojson-id"?PF.extractTraceFeature(e):cBt(r,i.topojson);for(o=0;o{"use strict";var mBt=Xc(),yBt=rf().BADNUM,gBt=mA(),_Bt=ei().fillText,xBt=ew();N6e.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]===yBt||l(E))return 1/0;var T=f(E),L=f([r,n]),x=Math.abs(T[0]-L[0]),k=Math.abs(T[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-M,1-3/M)}if(mBt.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=p[0]-_,t.x1=p[0]+_,t.y0=p[1]-_,t.y1=p[1]+_,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=gBt(a,h),t.extraText=bBt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function bBt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?xBt.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&&_Bt(t,e,f),f.join("
")}});var G6e=Te((t1r,V6e)=>{"use strict";V6e.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 j6e=Te((r1r,W6e)=>{"use strict";var H6e=lc(),wBt=rf().BADNUM;W6e.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=!H6e.hasMarkers(s)&&!H6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof IF=="object"&&typeof X6e!="undefined"?IF:e.d3=e.d3||{})})(IF,function(e){"use strict";function t(Ee,Se){return EeSe?1:Ee>=Se?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Se,Ge,De,xe){for(De==null&&(De=0),xe==null&&(xe=Se.length);De>>1;Ee(Se[Ne],Ge)<0?De=Ne+1:xe=Ne}return De},right:function(Se,Ge,De,xe){for(De==null&&(De=0),xe==null&&(xe=Se.length);De>>1;Ee(Se[Ne],Ge)>0?xe=Ne:De=Ne+1}return De}}}function n(Ee){return function(Se,Ge){return t(Ee(Se),Ge)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Se){Se==null&&(Se=u);for(var Ge=0,De=Ee.length-1,xe=Ee[0],Ne=new Array(De<0?0:De);GeEe?1:Se>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Se){var Ge=Ee.length,De=0,xe=-1,Ne=0,ce,je,Qe=0;if(Se==null)for(;++xe1)return Qe/(De-1)}function d(Ee,Se){var Ge=h(Ee,Se);return Ge&&Math.sqrt(Ge)}function p(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne,ce;if(Se==null){for(;++De=xe)for(Ne=ce=xe;++Dexe&&(Ne=xe),ce=xe)for(Ne=ce=xe;++Dexe&&(Ne=xe),ce0)return[Ee];if((De=Se0)for(Ee=Math.ceil(Ee/je),Se=Math.floor(Se/je),ce=new Array(Ne=Math.ceil(Se-Ee+1));++xe=0?(Ne>=L?10:Ne>=x?5:Ne>=k?2:1)*Math.pow(10,xe):-Math.pow(10,-xe)/(Ne>=L?10:Ne>=x?5:Ne>=k?2:1)}function P(Ee,Se,Ge){var De=Math.abs(Se-Ee)/Math.max(0,Ge),xe=Math.pow(10,Math.floor(Math.log(De)/Math.LN10)),Ne=De/xe;return Ne>=L?xe*=10:Ne>=x?xe*=5:Ne>=k&&(xe*=2),Seat;)Ke.pop(),--Ct;var wt=new Array(Ct+1),Mt;for(Ne=0;Ne<=Ct;++Ne)Mt=wt[Ne]=[],Mt.x0=Ne>0?Ke[Ne-1]:qt,Mt.x1=Ne=1)return+Ge(Ee[De-1],De-1,Ee);var De,xe=(De-1)*Se,Ne=Math.floor(xe),ce=+Ge(Ee[Ne],Ne,Ee),je=+Ge(Ee[Ne+1],Ne+1,Ee);return ce+(je-ce)*(xe-Ne)}}function U(Ee,Se,Ge){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ge-Se)/(2*(B(Ee,.75)-B(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Se,Ge){return Math.ceil((Ge-Se)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne;if(Se==null){for(;++De=xe)for(Ne=xe;++DeNe&&(Ne=xe)}else for(;++De=xe)for(Ne=xe;++DeNe&&(Ne=xe);return Ne}function W(Ee,Se){var Ge=Ee.length,De=Ge,xe=-1,Ne,ce=0;if(Se==null)for(;++xe=0;)for(ce=Ee[Se],Ge=ce.length;--Ge>=0;)Ne[--xe]=ce[Ge];return Ne}function re(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne;if(Se==null){for(;++De=xe)for(Ne=xe;++Dexe&&(Ne=xe)}else for(;++De=xe)for(Ne=xe;++Dexe&&(Ne=xe);return Ne}function ae(Ee,Se){for(var Ge=Se.length,De=new Array(Ge);Ge--;)De[Ge]=Ee[Se[Ge]];return De}function ge(Ee,Se){if(Ge=Ee.length){var Ge,De=0,xe=0,Ne,ce=Ee[xe];for(Se==null&&(Se=t);++De{(function(e,t){typeof RF=="object"&&typeof Z6e!="undefined"?t(RF,hk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(RF,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(Tt){a(i,Tt,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(Tt,Vt,wr){var mr=Tt.s=Vt+wr,Fr=mr-Vt,_i=mr-Fr;Tt.t=Vt-_i+(wr-Fr)}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,_=Math.atan,b=Math.atan2,v=Math.cos,C=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(Tt){return Tt>0?1:Tt<0?-1:0},M=Math.sqrt,m=Math.tan;function P(Tt){return Tt>1?0:Tt<-1?u:Math.acos(Tt)}function A(Tt){return Tt>1?l:Tt<-1?-l:Math.asin(Tt)}function F(Tt){return(Tt=x(Tt/2))*Tt}function B(){}function U(Tt,Vt){Tt&&j.hasOwnProperty(Tt.type)&&j[Tt.type](Tt,Vt)}var G={Feature:function(Tt,Vt){U(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,mr=-1,Fr=wr.length;++mr=0?1:-1,Fr=mr*wr,_i=v(Vt),Si=x(Vt),Ci=te*Si,Ki=de*_i+Ci*v(Fr),Fn=Ci*mr*x(Fr);re.add(b(Fn,Ki)),Le=Tt,de=_i,te=Si}function xe(Tt){return ae.reset(),H(Tt,ke),ae*2}function Ne(Tt){return[b(Tt[1],Tt[0]),A(Tt[2])]}function ce(Tt){var Vt=Tt[0],wr=Tt[1],mr=v(wr);return[mr*v(Vt),mr*x(Vt),x(wr)]}function je(Tt,Vt){return Tt[0]*Vt[0]+Tt[1]*Vt[1]+Tt[2]*Vt[2]}function Qe(Tt,Vt){return[Tt[1]*Vt[2]-Tt[2]*Vt[1],Tt[2]*Vt[0]-Tt[0]*Vt[2],Tt[0]*Vt[1]-Tt[1]*Vt[0]]}function gt(Tt,Vt){Tt[0]+=Vt[0],Tt[1]+=Vt[1],Tt[2]+=Vt[2]}function qt(Tt,Vt){return[Tt[0]*Vt,Tt[1]*Vt,Tt[2]*Vt]}function at(Tt){var Vt=M(Tt[0]*Tt[0]+Tt[1]*Tt[1]+Tt[2]*Tt[2]);Tt[0]/=Vt,Tt[1]/=Vt,Tt[2]/=Vt}var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot=r(),At,vt,Je={point:He,lineStart:tt,lineEnd:It,polygonStart:function(){Je.point=Yt,Je.lineStart=cr,Je.lineEnd=_r,ot.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),Je.point=He,Je.lineStart=tt,Je.lineEnd=It,re<0?(Ke=-(wt=180),Ct=-(Mt=90)):ot>o?Mt=90:ot<-o&&(Ct=-90),vt[0]=Ke,vt[1]=wt},sphere:function(){Ke=-(wt=180),Ct=-(Mt=90)}};function He(Tt,Vt){At.push(vt=[Ke=Tt,wt=Tt]),VtMt&&(Mt=Vt)}function nt(Tt,Vt){var wr=ce([Tt*d,Vt*d]);if(Ae){var mr=Qe(Ae,wr),Fr=[mr[1],-mr[0],0],_i=Qe(Fr,mr);at(_i),_i=Ne(_i);var Si=Tt-Bt,Ci=Si>0?1:-1,Ki=_i[0]*h*Ci,Fn,Pi=p(Si)>180;Pi^(Ci*BtMt&&(Mt=Fn)):(Ki=(Ki+360)%360-180,Pi^(Ci*BtMt&&(Mt=Vt))),Pi?Ttyr(Ke,wt)&&(wt=Tt):yr(Tt,wt)>yr(Ke,wt)&&(Ke=Tt):wt>=Ke?(Ttwt&&(wt=Tt)):Tt>Bt?yr(Ke,Tt)>yr(Ke,wt)&&(wt=Tt):yr(Tt,wt)>yr(Ke,wt)&&(Ke=Tt)}else At.push(vt=[Ke=Tt,wt=Tt]);VtMt&&(Mt=Vt),Ae=wr,Bt=Tt}function tt(){Je.point=nt}function It(){vt[0]=Ke,vt[1]=wt,Je.point=He,Ae=null}function Yt(Tt,Vt){if(Ae){var wr=Tt-Bt;ot.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=Tt,Et=Vt;ke.point(Tt,Vt),nt(Tt,Vt)}function cr(){ke.lineStart()}function _r(){Yt(Zt,Et),ke.lineEnd(),p(ot)>o&&(Ke=-(wt=180)),vt[0]=Ke,vt[1]=wt,Ae=null}function yr(Tt,Vt){return(Vt-=Tt)<0?Vt+360:Vt}function Ut(Tt,Vt){return Tt[0]-Vt[0]}function Re(Tt,Vt){return Tt[0]<=Tt[1]?Tt[0]<=Vt&&Vt<=Tt[1]:Vtyr(mr[0],mr[1])&&(mr[1]=Fr[1]),yr(Fr[0],mr[1])>yr(mr[0],mr[1])&&(mr[0]=Fr[0])):_i.push(mr=Fr);for(Si=-1/0,wr=_i.length-1,Vt=0,mr=_i[wr];Vt<=wr;mr=Fr,++Vt)Fr=_i[Vt],(Ci=yr(mr[1],Fr[0]))>Si&&(Si=Ci,Ke=Fr[0],wt=mr[1])}return At=vt=null,Ke===1/0||Ct===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ke,Ct],[wt,Mt]]}var Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di={sphere:B,point:ni,lineStart:Qi,lineEnd:Ni,polygonStart:function(){Di.lineStart=Rt,Di.lineEnd=yt},polygonEnd:function(){Di.lineStart=Qi,Di.lineEnd=Ni}};function ni(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);$i(wr*v(Tt),wr*x(Tt),x(Vt))}function $i(Tt,Vt,wr){++Oe,Fe+=(Tt-Fe)/Oe,ft+=(Vt-ft)/Oe,ye+=(wr-ye)/Oe}function Qi(){Di.point=si}function si(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);Er=wr*v(Tt),Rr=wr*x(Tt),pi=x(Vt),Di.point=Ti,$i(Er,Rr,pi)}function Ti(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),mr=wr*v(Tt),Fr=wr*x(Tt),_i=x(Vt),Si=b(M((Si=Rr*_i-pi*Fr)*Si+(Si=pi*mr-Er*_i)*Si+(Si=Er*Fr-Rr*mr)*Si),Er*mr+Rr*Fr+pi*_i);Ie+=Si,fe+=Si*(Er+(Er=mr)),pe+=Si*(Rr+(Rr=Fr)),dt+=Si*(pi+(pi=_i)),$i(Er,Rr,pi)}function Ni(){Di.point=ni}function Rt(){Di.point=Gt}function yt(){Wt(Gr,Br),Di.point=ni}function Gt(Tt,Vt){Gr=Tt,Br=Vt,Tt*=d,Vt*=d,Di.point=Wt;var wr=v(Vt);Er=wr*v(Tt),Rr=wr*x(Tt),pi=x(Vt),$i(Er,Rr,pi)}function Wt(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),mr=wr*v(Tt),Fr=wr*x(Tt),_i=x(Vt),Si=Rr*_i-pi*Fr,Ci=pi*mr-Er*_i,Ki=Er*Fr-Rr*mr,Fn=M(Si*Si+Ci*Ci+Ki*Ki),Pi=A(Fn),di=Fn&&-Pi/Fn;Pt+=di*Si,zt+=di*Ci,rr+=di*Ki,Ie+=Pi,fe+=Pi*(Er+(Er=mr)),pe+=Pi*(Rr+(Rr=Fr)),dt+=Pi*(pi+(pi=_i)),$i(Er,Rr,pi)}function xr(Tt){Oe=Ie=Fe=ft=ye=fe=pe=dt=Pt=zt=rr=0,H(Tt,Di);var Vt=Pt,wr=zt,mr=rr,Fr=Vt*Vt+wr*wr+mr*mr;return Fru?Tt+Math.round(-Tt/c)*c:Tt,Vt]}Or.invert=Or;function Hr(Tt,Vt,wr){return(Tt%=c)?Vt||wr?Nr(gi(Tt),ki(Vt,wr)):gi(Tt):Vt||wr?ki(Vt,wr):Or}function jr(Tt){return function(Vt,wr){return Vt+=Tt,[Vt>u?Vt-c:Vt<-u?Vt+c:Vt,wr]}}function gi(Tt){var Vt=jr(Tt);return Vt.invert=jr(-Tt),Vt}function ki(Tt,Vt){var wr=v(Tt),mr=x(Tt),Fr=v(Vt),_i=x(Vt);function Si(Ci,Ki){var Fn=v(Ki),Pi=v(Ci)*Fn,di=x(Ci)*Fn,Li=x(Ki),Mi=Li*wr+Pi*mr;return[b(di*Fr-Mi*_i,Pi*wr-Li*mr),A(Mi*Fr+di*_i)]}return Si.invert=function(Ci,Ki){var Fn=v(Ki),Pi=v(Ci)*Fn,di=x(Ci)*Fn,Li=x(Ki),Mi=Li*Fr-di*_i;return[b(di*Fr+Li*_i,Pi*wr+Mi*mr),A(Mi*wr-Pi*mr)]},Si}function Vi(Tt){Tt=Hr(Tt[0]*d,Tt[1]*d,Tt.length>2?Tt[2]*d:0);function Vt(wr){return wr=Tt(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Vt.invert=function(wr){return wr=Tt.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Vt}function ti(Tt,Vt,wr,mr,Fr,_i){if(wr){var Si=v(Vt),Ci=x(Vt),Ki=mr*wr;Fr==null?(Fr=Vt+mr*c,_i=Vt-Ki/2):(Fr=tn(Si,Fr),_i=tn(Si,_i),(mr>0?Fr<_i:Fr>_i)&&(Fr+=mr*c));for(var Fn,Pi=Fr;mr>0?Pi>_i:Pi<_i;Pi-=Ki)Fn=Ne([Si,-Ci*v(Pi),-Ci*x(Pi)]),Tt.point(Fn[0],Fn[1])}}function tn(Tt,Vt){Vt=ce(Vt),Vt[0]-=Tt,at(Vt);var wr=P(-Vt[1]);return((-Vt[2]<0?-wr:wr)+c-o)%c}function Yr(){var Tt=Lr([0,0]),Vt=Lr(90),wr=Lr(6),mr,Fr,_i={point:Si};function Si(Ki,Fn){mr.push(Ki=Fr(Ki,Fn)),Ki[0]*=h,Ki[1]*=h}function Ci(){var Ki=Tt.apply(this,arguments),Fn=Vt.apply(this,arguments)*d,Pi=wr.apply(this,arguments)*d;return mr=[],Fr=Hr(-Ki[0]*d,-Ki[1]*d,0).invert,ti(_i,Fn,Pi,1),Ki={type:"Polygon",coordinates:[mr]},mr=Fr=null,Ki}return Ci.center=function(Ki){return arguments.length?(Tt=typeof Ki=="function"?Ki:Lr([+Ki[0],+Ki[1]]),Ci):Tt},Ci.radius=function(Ki){return arguments.length?(Vt=typeof Ki=="function"?Ki:Lr(+Ki),Ci):Vt},Ci.precision=function(Ki){return arguments.length?(wr=typeof Ki=="function"?Ki:Lr(+Ki),Ci):wr},Ci}function oi(){var Tt=[],Vt;return{point:function(wr,mr,Fr){Vt.push([wr,mr,Fr])},lineStart:function(){Tt.push(Vt=[])},lineEnd:B,rejoin:function(){Tt.length>1&&Tt.push(Tt.pop().concat(Tt.shift()))},result:function(){var wr=Tt;return Tt=[],Vt=null,wr}}}function Fi(Tt,Vt){return p(Tt[0]-Vt[0])=0;--Ci)Fr.point((di=Pi[Ci])[0],di[1]);else mr(Li.x,Li.p.x,-1,Fr);Li=Li.p}Li=Li.o,Pi=Li.z,Mi=!Mi}while(!Li.v);Fr.lineEnd()}}}function Ri(Tt){if(Vt=Tt.length){for(var Vt,wr=0,mr=Tt[0],Fr;++wr=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))),Si+=Bl?Ks+dl*c:Ks,Bl^Mi>=wr^va>=wr){var eu=Qe(ce(Li),ce(pa));at(eu);var Zl=Qe(_i,eu);at(Zl);var Vl=(Bl^Ks>=0?-1:1)*A(Zl[2]);(mr>Vl||mr===Vl&&(eu[0]||eu[1]))&&(Ci+=Bl^Ks>=0?1:-1)}}return(Si<-o||Si0){for(Ki||(Fr.polygonStart(),Ki=!0),Fr.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ct))}}return Li}}function ct(Tt){return Tt.length>1}function tr(Tt,Vt){return((Tt=Tt.x)[0]<0?Tt[1]-l-o:l-Tt[1])-((Vt=Vt.x)[0]<0?Vt[1]-l-o:l-Vt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(Tt){var Vt=NaN,wr=NaN,mr=NaN,Fr;return{lineStart:function(){Tt.lineStart(),Fr=1},point:function(_i,Si){var Ci=_i>0?u:-u,Ki=p(_i-Vt);p(Ki-u)0?l:-l),Tt.point(mr,wr),Tt.lineEnd(),Tt.lineStart(),Tt.point(Ci,wr),Tt.point(_i,wr),Fr=0):mr!==Ci&&Ki>=u&&(p(Vt-mr)o?_((x(Vt)*(_i=v(mr))*x(wr)-x(mr)*(Fr=v(Vt))*x(Tt))/(Fr*_i*Si)):(Vt+mr)/2}function Ai(Tt,Vt,wr,mr){var Fr;if(Tt==null)Fr=wr*l,mr.point(-u,Fr),mr.point(0,Fr),mr.point(u,Fr),mr.point(u,0),mr.point(u,-Fr),mr.point(0,-Fr),mr.point(-u,-Fr),mr.point(-u,0),mr.point(-u,Fr);else if(p(Tt[0]-Vt[0])>o){var _i=Tt[0]0,Fr=p(Vt)>o;function _i(Pi,di,Li,Mi){ti(Mi,Tt,wr,Li,Pi,di)}function Si(Pi,di){return v(Pi)*v(di)>Vt}function Ci(Pi){var di,Li,Mi,Gn,ta;return{lineStart:function(){Gn=Mi=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Si(ya,ia),is=mr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!di&&(Gn=Mi=zn)&&Pi.lineStart(),zn!==Mi&&(va=Ki(di,pa),(!va||Fi(di,va)||Fi(pa,va))&&(pa[2]=1)),zn!==Mi)ta=0,zn?(Pi.lineStart(),va=Ki(pa,di),Pi.point(va[0],va[1])):(va=Ki(di,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),di=va;else if(Fr&&di&&mr^zn){var Cs;!(is&Li)&&(Cs=Ki(pa,di,!0))&&(ta=0,mr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!di||!Fi(di,pa))&&Pi.point(pa[0],pa[1]),di=pa,Mi=zn,Li=is},lineEnd:function(){Mi&&Pi.lineEnd(),di=null},clean:function(){return ta|(Gn&&Mi)<<1}}}function Ki(Pi,di,Li){var Mi=ce(Pi),Gn=ce(di),ta=[1,0,0],ya=Qe(Mi,Gn),ia=je(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Vt*ia/va,is=-Vt*pa/va,Cs=Qe(ta,ya),Ks=qt(ta,zn),dl=qt(ya,is);gt(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=M(eu),Vl=qt(xl,(-Bl-Zl)/bl);if(gt(Vl,Ks),Vl=Ne(Vl),!Li)return Vl;var ja=Pi[0],ns=di[0],Js=Pi[1],cs=di[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=qt(xl,(-Bl+Zl)/bl);return gt(Ml,Ks),[Vl,Ne(Ml)]}}}function Fn(Pi,di){var Li=mr?Tt:u-Tt,Mi=0;return Pi<-Li?Mi|=1:Pi>Li&&(Mi|=2),di<-Li?Mi|=4:di>Li&&(Mi|=8),Mi}return Xr(Si,Ci,_i,mr?[0,-Tt]:[-u,Tt-u])}function ii(Tt,Vt,wr,mr,Fr,_i){var Si=Tt[0],Ci=Tt[1],Ki=Vt[0],Fn=Vt[1],Pi=0,di=1,Li=Ki-Si,Mi=Fn-Ci,Gn;if(Gn=wr-Si,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}if(Gn=Fr-Si,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Mi,Mi<0){if(Gn0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}if(Gn=_i-Ci,!(!Mi&&Gn<0)){if(Gn/=Mi,Mi<0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}else if(Mi>0){if(Gn0&&(Tt[0]=Si+Pi*Li,Tt[1]=Ci+Pi*Mi),di<1&&(Vt[0]=Si+di*Li,Vt[1]=Ci+di*Mi),!0}}}}}var Xi=1e9,aa=-Xi;function Mn(Tt,Vt,wr,mr){function Fr(Fn,Pi){return Tt<=Fn&&Fn<=wr&&Vt<=Pi&&Pi<=mr}function _i(Fn,Pi,di,Li){var Mi=0,Gn=0;if(Fn==null||(Mi=Si(Fn,di))!==(Gn=Si(Pi,di))||Ki(Fn,Pi)<0^di>0)do Li.point(Mi===0||Mi===3?Tt:wr,Mi>1?mr:Vt);while((Mi=(Mi+di+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Si(Fn,Pi){return p(Fn[0]-Tt)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Vt)0?1:0:Pi>0?3:2}function Ci(Fn,Pi){return Ki(Fn.x,Pi.x)}function Ki(Fn,Pi){var di=Si(Fn,1),Li=Si(Pi,1);return di!==Li?di-Li:di===0?Pi[1]-Fn[1]:di===1?Fn[0]-Pi[0]:di===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,di=oi(),Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Bl,polygonEnd:bl};function dl(ja,ns){Fr(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Mi.length;nsmr&&(Rl-zl)*(mr-Ml)>(Al-Ml)*(Tt-zl)&&++ja:Al<=mr&&(Rl-zl)*(mr-Ml)<(Al-Ml)*(Tt-zl)&&--ja;return ja}function Bl(){Pi=di,Li=[],Mi=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),_i(null,null,1,Fn),Fn.lineEnd()),Js&&nn(Li,Ci,ja,_i,Fn),Fn.polygonEnd()),Pi=Fn,Li=Mi=Gn=null}function eu(){Ks.point=Vl,Mi&&Mi.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Vl(ta,ya),ia&&zn&&di.rejoin(),Li.push(di.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Vl(ja,ns){var Js=Fr(ja,ns);if(Mi&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.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))];ii(cs,sl,Tt,Vt,wr,mr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var Tt=0,Vt=0,wr=960,mr=500,Fr,_i,Si;return Si={stream:function(Ci){return Fr&&_i===Ci?Fr:Fr=Mn(Tt,Vt,wr,mr)(_i=Ci)},extent:function(Ci){return arguments.length?(Tt=+Ci[0][0],Vt=+Ci[0][1],wr=+Ci[1][0],mr=+Ci[1][1],Fr=_i=null,Si):[[Tt,Vt],[wr,mr]]}}}var Ga=r(),ma,oa,ka,so={sphere:B,point:B,lineStart:Kr,lineEnd:B,polygonStart:B,polygonEnd:B};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=B}function Yo(Tt,Vt){Tt*=d,Vt*=d,ma=Tt,oa=x(Vt),ka=v(Vt),so.point=fa}function fa(Tt,Vt){Tt*=d,Vt*=d;var wr=x(Vt),mr=v(Vt),Fr=p(Tt-ma),_i=v(Fr),Si=x(Fr),Ci=mr*Si,Ki=ka*wr-oa*mr*_i,Fn=oa*wr+ka*mr*_i;Ga.add(b(M(Ci*Ci+Ki*Ki),Fn)),ma=Tt,oa=wr,ka=mr}function kn(Tt){return Ga.reset(),H(Tt,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(Tt,Vt){return Ta[0]=Tt,Ta[1]=Vt,kn(ys)}var ls={Feature:function(Tt,Vt){return fo(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,mr=-1,Fr=wr.length;++mr0&&(Fr=uo(Tt[_i],Tt[_i-1]),Fr>0&&wr<=Fr&&mr<=Fr&&(wr+mr-Fr)*(1-Math.pow((wr-mr)/Fr,2))o}).map(Li)).concat(t.range(C(_i/Fn)*Fn,Fr,Fn).filter(function(va){return p(va%di)>o}).map(Mi))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(mr).concat(ta(Si).slice(1),Gn(wr).reverse().slice(1),ta(Ci).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(mr=+va[0][0],wr=+va[1][0],Ci=+va[0][1],Si=+va[1][1],mr>wr&&(va=mr,mr=wr,wr=va),Ci>Si&&(va=Ci,Ci=Si,Si=va),ia.precision(ya)):[[mr,Ci],[wr,Si]]},ia.extentMinor=function(va){return arguments.length?(Vt=+va[0][0],Tt=+va[1][0],_i=+va[0][1],Fr=+va[1][1],Vt>Tt&&(va=Vt,Vt=Tt,Tt=va),_i>Fr&&(va=_i,_i=Fr,Fr=va),ia.precision(ya)):[[Vt,_i],[Tt,Fr]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],di=+va[1],ia):[Pi,di]},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,Li=Wi(_i,Fr,90),Mi=gn(Vt,Tt,ya),Gn=Wi(Ci,Si,90),ta=gn(mr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(Tt,Vt){var wr=Tt[0]*d,mr=Tt[1]*d,Fr=Vt[0]*d,_i=Vt[1]*d,Si=v(mr),Ci=x(mr),Ki=v(_i),Fn=x(_i),Pi=Si*v(wr),di=Si*x(wr),Li=Ki*v(Fr),Mi=Ki*x(Fr),Gn=2*A(M(F(_i-mr)+Si*Ki*F(Fr-wr))),ta=x(Gn),ya=Gn?function(ia){var pa=x(ia*=Gn)/ta,va=x(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*di+pa*Mi,Cs=va*Ci+pa*Fn;return[b(is,zn)*h,b(Cs,M(zn*zn+is*is))*h]}:function(){return[wr*h,mr*h]};return ya.distance=Gn,ya}function ao(Tt){return Tt}var Ba=r(),Ko=r(),Qo,Hi,Sa,Qa,vn={point:B,lineStart:B,lineEnd:B,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=B,Ba.add(p(Ko)),Ko.reset()},result:function(){var Tt=Ba/2;return Ba.reset(),Tt}};function da(){vn.point=la}function la(Tt,Vt){vn.point=vo,Qo=Sa=Tt,Hi=Qa=Vt}function vo(Tt,Vt){Ko.add(Qa*Tt-Sa*Vt),Sa=Tt,Qa=Vt}function As(){vo(Qo,Hi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var Tt=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),Tt}};function Go(Tt,Vt){Ttmo&&(mo=Tt),VtNo&&(No=Vt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$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 Tt=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,Tt}};function Ka(Tt,Vt){Ys+=Tt,qs+=Vt,++Ns}function qn(){$n.point=Eo}function Eo(Tt,Vt){$n.point=Ja,Ka(Xn=Tt,un=Vt)}function Ja(Tt,Vt){var wr=Tt-Xn,mr=Vt-un,Fr=M(wr*wr+mr*mr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Ka(Xn=Tt,un=Vt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(Tt,Vt){$n.point=Na,Ka(wo=Xn=Tt,Ra=un=Vt)}function Na(Tt,Vt){var wr=Tt-Xn,mr=Vt-un,Fr=M(wr*wr+mr*mr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Fr=un*Tt-Xn*Vt,Ya+=Fr*(Xn+Tt),_n+=Fr*(un+Vt),Vn+=Fr*3,Ka(Xn=Tt,un=Vt)}function rn(Tt){this._context=Tt}rn.prototype={_radius:4.5,pointRadius:function(Tt){return this._radius=Tt,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(Tt,Vt){switch(this._point){case 0:{this._context.moveTo(Tt,Vt),this._point=1;break}case 1:{this._context.lineTo(Tt,Vt);break}default:{this._context.moveTo(Tt+this._radius,Vt),this._context.arc(Tt,Vt,this._radius,0,c);break}}},result:B};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:B,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=B},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var Tt=+Pa;return Pa.reset(),Tt}};function Ws(Tt,Vt){_a.point=Ca,yo=Ao=Tt,Jo=Dn=Vt}function Ca(Tt,Vt){Ao-=Tt,Dn-=Vt,Pa.add(M(Ao*Ao+Dn*Dn)),Ao=Tt,Dn=Vt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(Tt){return(Tt=+Tt)!==this._radius&&(this._radius=Tt,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(Tt,Vt){switch(this._point){case 0:{this._string.push("M",Tt,",",Vt),this._point=1;break}case 1:{this._string.push("L",Tt,",",Vt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",Tt,",",Vt,this._circle);break}}},result:function(){if(this._string.length){var Tt=this._string.join("");return this._string=[],Tt}else return null}};function Ts(Tt){return"m0,"+Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+-2*Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+2*Tt+"z"}function Ho(Tt,Vt){var wr=4.5,mr,Fr;function _i(Si){return Si&&(typeof wr=="function"&&Fr.pointRadius(+wr.apply(this,arguments)),H(Si,mr(Fr))),Fr.result()}return _i.area=function(Si){return H(Si,mr(vn)),vn.result()},_i.measure=function(Si){return H(Si,mr(_a)),_a.result()},_i.bounds=function(Si){return H(Si,mr(jn)),jn.result()},_i.centroid=function(Si){return H(Si,mr($n)),$n.result()},_i.projection=function(Si){return arguments.length?(mr=Si==null?(Tt=null,ao):(Tt=Si).stream,_i):Tt},_i.context=function(Si){return arguments.length?(Fr=Si==null?(Vt=null,new Es):new rn(Vt=Si),typeof wr!="function"&&Fr.pointRadius(wr),_i):Vt},_i.pointRadius=function(Si){return arguments.length?(wr=typeof Si=="function"?Si:(Fr.pointRadius(+Si),+Si),_i):wr},_i.projection(Tt).context(Vt)}function Wa(Tt){return{stream:To(Tt)}}function To(Tt){return function(Vt){var wr=new ts;for(var mr in Tt)wr[mr]=Tt[mr];return wr.stream=Vt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(Tt,Vt){this.stream.point(Tt,Vt)},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(Tt,Vt,wr){var mr=Tt.clipExtent&&Tt.clipExtent();return Tt.scale(150).translate([0,0]),mr!=null&&Tt.clipExtent(null),H(wr,Tt.stream(jn)),Vt(jn.result()),mr!=null&&Tt.clipExtent(mr),Tt}function qa(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=Vt[1][0]-Vt[0][0],_i=Vt[1][1]-Vt[0][1],Si=Math.min(Fr/(mr[1][0]-mr[0][0]),_i/(mr[1][1]-mr[0][1])),Ci=+Vt[0][0]+(Fr-Si*(mr[1][0]+mr[0][0]))/2,Ki=+Vt[0][1]+(_i-Si*(mr[1][1]+mr[0][1]))/2;Tt.scale(150*Si).translate([Ci,Ki])},wr)}function ln(Tt,Vt,wr){return qa(Tt,[[0,0],Vt],wr)}function Bo(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=+Vt,_i=Fr/(mr[1][0]-mr[0][0]),Si=(Fr-_i*(mr[1][0]+mr[0][0]))/2,Ci=-_i*mr[0][1];Tt.scale(150*_i).translate([Si,Ci])},wr)}function ko(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=+Vt,_i=Fr/(mr[1][1]-mr[0][1]),Si=-_i*mr[0][0],Ci=(Fr-_i*(mr[1][1]+mr[0][1]))/2;Tt.scale(150*_i).translate([Si,Ci])},wr)}var oo=16,za=v(30*d);function ea(Tt,Vt){return+Vt?$s(Tt,Vt):rs(Tt)}function rs(Tt){return To({point:function(Vt,wr){Vt=Tt(Vt,wr),this.stream.point(Vt[0],Vt[1])}})}function $s(Tt,Vt){function wr(mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya){var ia=Fn-mr,pa=Pi-Fr,va=ia*ia+pa*pa;if(va>4*Vt&&ta--){var zn=Si+Li,is=Ci+Mi,Cs=Ki+Gn,Ks=M(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Vt||p((ia*Zl+pa*Vl)/va-.5)>.3||Si*Li+Ci*Mi+Ki*Gn2?ja[2]%360*d:0,Zl()):[Ci*h,Ki*h,Fn*h]},bl.angle=function(ja){return arguments.length?(di=ja%360*d,Zl()):di*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Mi=ja?-1:1,Zl()):Mi<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):M(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Mi,di).apply(null,Vt(_i,Si)),ns=(di?as:fl)(wr,mr-ja[0],Fr-ja[1],Li,Mi,di);return Pi=Hr(Ci,Ki,Fn),Ks=Nr(Vt,ns),dl=Nr(Pi,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Bl=null,bl}return function(){return Vt=Tt.apply(this,arguments),bl.invert=Vt.invert&&eu,Zl()}}function ho(Tt){var Vt=0,wr=u/3,mr=Qs(Tt),Fr=mr(Vt,wr);return Fr.parallels=function(_i){return arguments.length?mr(Vt=_i[0]*d,wr=_i[1]*d):[Vt*h,wr*h]},Fr}function gs(Tt){var Vt=v(Tt);function wr(mr,Fr){return[mr*Vt,x(Fr)/Vt]}return wr.invert=function(mr,Fr){return[mr/Vt,A(Fr*Vt)]},wr}function Vo(Tt,Vt){var wr=x(Tt),mr=(wr+x(Vt))/2;if(p(mr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Fr:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Si:wr).invert(Li)},Pi.stream=function(Li){return Tt&&Vt===Li?Tt:Tt=xs([wr.stream(Vt=Li),Fr.stream(Li),Si.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Fr.precision(Li),Si.precision(Li),di()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Fr.scale(Li*.35),Si.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Mi=wr.scale(),Gn=+Li[0],ta=+Li[1];return mr=wr.translate(Li).clipExtent([[Gn-.455*Mi,ta-.238*Mi],[Gn+.455*Mi,ta+.238*Mi]]).stream(Fn),_i=Fr.translate([Gn-.307*Mi,ta+.201*Mi]).clipExtent([[Gn-.425*Mi+o,ta+.12*Mi+o],[Gn-.214*Mi-o,ta+.234*Mi-o]]).stream(Fn),Ci=Si.translate([Gn-.205*Mi,ta+.212*Mi]).clipExtent([[Gn-.214*Mi+o,ta+.166*Mi+o],[Gn-.115*Mi-o,ta+.234*Mi-o]]).stream(Fn),di()},Pi.fitExtent=function(Li,Mi){return qa(Pi,Li,Mi)},Pi.fitSize=function(Li,Mi){return ln(Pi,Li,Mi)},Pi.fitWidth=function(Li,Mi){return Bo(Pi,Li,Mi)},Pi.fitHeight=function(Li,Mi){return ko(Pi,Li,Mi)};function di(){return Tt=Vt=null,Pi}return Pi.scale(1070)}function Ea(Tt){return function(Vt,wr){var mr=v(Vt),Fr=v(wr),_i=Tt(mr*Fr);return[_i*Fr*x(Vt),_i*x(wr)]}}function Jn(Tt){return function(Vt,wr){var mr=M(Vt*Vt+wr*wr),Fr=Tt(mr),_i=x(Fr),Si=v(Fr);return[b(Vt*_i,mr*Si),A(mr&&wr*_i/mr)]}}var Oo=Ea(function(Tt){return M(2/(1+Tt))});Oo.invert=Jn(function(Tt){return 2*A(Tt/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(Tt){return(Tt=P(Tt))&&Tt/x(Tt)});Gs.invert=Jn(function(Tt){return Tt});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(Tt,Vt){return[Tt,T(m((l+Vt)/2))]}zs.invert=function(Tt,Vt){return[Tt,2*_(E(Vt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(Tt){var Vt=Ma(Tt),wr=Vt.center,mr=Vt.scale,Fr=Vt.translate,_i=Vt.clipExtent,Si=null,Ci,Ki,Fn;Vt.scale=function(di){return arguments.length?(mr(di),Pi()):mr()},Vt.translate=function(di){return arguments.length?(Fr(di),Pi()):Fr()},Vt.center=function(di){return arguments.length?(wr(di),Pi()):wr()},Vt.clipExtent=function(di){return arguments.length?(di==null?Si=Ci=Ki=Fn=null:(Si=+di[0][0],Ci=+di[0][1],Ki=+di[1][0],Fn=+di[1][1]),Pi()):Si==null?null:[[Si,Ci],[Ki,Fn]]};function Pi(){var di=u*mr(),Li=Vt(Vi(Vt.rotate()).invert([0,0]));return _i(Si==null?[[Li[0]-di,Li[1]-di],[Li[0]+di,Li[1]+di]]:Tt===zs?[[Math.max(Li[0]-di,Si),Ci],[Math.min(Li[0]+di,Ki),Fn]]:[[Si,Math.max(Li[1]-di,Ci)],[Ki,Math.min(Li[1]+di,Fn)]])}return Pi()}function os(Tt){return m((l+Tt)/2)}function _l(Tt,Vt){var wr=v(Tt),mr=Tt===Vt?x(Tt):T(wr/v(Vt))/T(os(Vt)/os(Tt)),Fr=wr*L(os(Tt),mr)/mr;if(!mr)return zs;function _i(Si,Ci){Fr>0?Ci<-l+o&&(Ci=-l+o):Ci>l-o&&(Ci=l-o);var Ki=Fr/L(os(Ci),mr);return[Ki*x(mr*Si),Fr-Ki*v(mr*Si)]}return _i.invert=function(Si,Ci){var Ki=Fr-Ci,Fn=k(mr)*M(Si*Si+Ki*Ki),Pi=b(Si,p(Ki))*k(Ki);return Ki*mr<0&&(Pi-=u*k(Si)*k(Ki)),[Pi/mr,2*_(L(Fr/Fn,1/mr))-l]},_i}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(Tt,Vt){return[Tt,Vt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(Tt,Vt){var wr=v(Tt),mr=Tt===Vt?x(Tt):(wr-v(Vt))/(Vt-Tt),Fr=wr/mr+Tt;if(p(mr)o&&--mr>0);return[Tt/(.8707+(_i=wr*wr)*(-.131979+_i*(-.013791+_i*_i*_i*(.003971-.001529*_i)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(Tt,Vt){return[v(Vt)*x(Tt),x(Vt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(Tt,Vt){var wr=v(Vt),mr=1+v(Tt)*wr;return[wr*x(Tt)/mr,x(Vt)/mr]}jo.invert=Jn(function(Tt){return 2*_(Tt)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(Tt,Vt){return[T(m((l+Vt)/2)),-Tt]}Is.invert=function(Tt,Vt){return[-Vt,2*_(E(Tt))-l]};function Bs(){var Tt=Aa(Is),Vt=Tt.center,wr=Tt.rotate;return Tt.center=function(mr){return arguments.length?Vt([-mr[1],mr[0]]):(mr=Vt(),[mr[1],-mr[0]])},Tt.rotate=function(mr){return arguments.length?wr([mr[0],mr[1],mr.length>2?mr[2]+90:90]):(mr=wr(),[mr[0],mr[1],mr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=xe,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=be,e.geoCentroid=xr,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=en,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=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var K6e=Te((DF,Y6e)=>{(function(e,t){typeof DF=="object"&&typeof Y6e!="undefined"?t(DF,KZ(),hk()):t(e.d3=e.d3||{},e.d3,e.d3)})(DF,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},_=Math.sin,b=Math.tan,v=1e-6,C=1e-12,E=Math.PI,T=E/2,L=E/4,x=Math.SQRT1_2,k=G(2),M=G(E),m=E*2,P=180/E,A=E/180;function F(he){return he?he/Math.sin(he):1}function B(he){return he>1?T:he<-1?-T: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 Me=b(he/2),qe=2*l(o(he/2))/(Me*Me);function Ve(lt,it){var pt=o(lt),Ht=o(it),nr=_(it),fr=Ht*pt,Ar=-((1-fr?l((1+fr)/2)/(1-fr):-.5)+qe/(1+fr));return[Ar*Ht*_(lt),Ar*nr]}return Ve.invert=function(lt,it){var pt=G(lt*lt+it*it),Ht=-he/2,nr=50,fr;if(!pt)return[0,0];do{var Ar=Ht/2,Ir=o(Ar),ri=_(Ar),li=ri/Ir,Ei=-l(n(Ir));Ht-=fr=(2/li*Ei-qe*li-pt)/(-Ei/(ri*ri)+1-qe/(2*Ir*Ir))*(Ir<0?.7:1)}while(n(fr)>v&&--nr>0);var hn=_(Ht);return[a(lt*hn,pt*o(Ht)),B(it*hn/pt)]},Ve}function ge(){var he=T,Me=t.geoProjectionMutator(ae),qe=Me(he);return qe.radius=function(Ve){return arguments.length?Me(he=Ve*A):he*P},qe.scale(179.976).clipAngle(147)}function ze(he,Me){var qe=o(Me),Ve=F(U(qe*o(he/=2)));return[2*qe*_(he)*Ve,_(Me)*Ve]}ze.invert=function(he,Me){if(!(he*he+4*Me*Me>E*E+v)){var qe=he,Ve=Me,lt=25;do{var it=_(qe),pt=_(qe/2),Ht=o(qe/2),nr=_(Ve),fr=o(Ve),Ar=_(2*Ve),Ir=nr*nr,ri=fr*fr,li=pt*pt,Ei=1-ri*Ht*Ht,hn=Ei?U(fr*Ht)*G(Zn=1/Ei):Zn=0,Zn,Yn=2*hn*fr*pt-he,Ua=hn*nr-Me,Fo=Zn*(ri*li+hn*fr*Ht*Ir),vl=Zn*(.5*it*Ar-hn*2*nr*pt),Us=Zn*.25*(Ar*pt-hn*nr*ri*it),ml=Zn*(Ir*Ht+hn*li*fr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ve-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ve]}};function Le(){return t.geoProjection(ze).scale(152.63)}function de(he){var Me=_(he),qe=o(he),Ve=he>=0?1:-1,lt=b(Ve*he),it=(1+Me-qe)/2;function pt(Ht,nr){var fr=o(nr),Ar=o(Ht/=2);return[(1+fr)*_(Ht),(Ve*nr>-a(Ar,lt)-.001?0:-Ve*10)+it+_(nr)*qe-(1+fr)*Me*Ar]}return pt.invert=function(Ht,nr){var fr=0,Ar=0,Ir=50;do{var ri=o(fr),li=_(fr),Ei=o(Ar),hn=_(Ar),Zn=1+Ei,Yn=Zn*li-Ht,Ua=it+hn*qe-Zn*Me*ri-nr,Fo=Zn*ri/2,vl=-li*hn,Us=Me*Zn*li/2,ml=qe*Ei+Me*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),fr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Ir>0);return Ve*Ar>-a(o(fr),lt)-.001?[fr*2,Ar]:null},pt}function te(){var he=20*A,Me=he>=0?1:-1,qe=b(Me*he),Ve=t.geoProjectionMutator(de),lt=Ve(he),it=lt.stream;return lt.parallel=function(pt){return arguments.length?(qe=b((Me=(he=pt*A)>=0?1:-1)*he),Ve(he)):he*P},lt.stream=function(pt){var Ht=lt.rotate(),nr=it(pt),fr=(lt.rotate([0,0]),it(pt)),Ar=lt.precision();return lt.rotate(Ht),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var Ir=Me*-180;Me*Ir<180;Ir+=Me*90)fr.point(Ir,Me*90);if(he)for(;Me*(Ir-=3*Me*Ar)>=-180;)fr.point(Ir,Me*-a(o(Ir*A/2),qe)*P);fr.lineEnd(),fr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Me){var qe=b(Me/2),Ve=G(1-qe*qe),lt=1+Ve*o(he/=2),it=_(he)*Ve/lt,pt=qe/lt,Ht=it*it,nr=pt*pt;return[4/3*it*(3+Ht-3*nr),4/3*pt*(3+3*Ht-nr)]}ke.invert=function(he,Me){if(he*=3/8,Me*=3/8,!he&&n(Me)>1)return null;var qe=he*he,Ve=Me*Me,lt=1+qe+Ve,it=G((lt-G(lt*lt-4*Me*Me))/2),pt=B(it)/3,Ht=it?re(n(Me/it))/3:H(n(he))/3,nr=o(pt),fr=N(Ht),Ar=fr*fr-nr*nr;return[p(he)*2*a(W(Ht)*nr,.25-Ar),p(Me)*2*a(fr*_(pt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Se=G(8),Ge=l(1+k);function De(he,Me){var qe=n(Me);return qeC&&--Ve>0);return[he/(o(qe)*(Se-1/_(qe))),p(Me)*qe]};function xe(){return t.geoProjection(De).scale(112.314)}function Ne(he){var Me=2*E/he;function qe(Ve,lt){var it=t.geoAzimuthalEquidistantRaw(Ve,lt);if(n(Ve)>T){var pt=a(it[1],it[0]),Ht=G(it[0]*it[0]+it[1]*it[1]),nr=Me*d((pt-T)/Me)+T,fr=a(_(pt-=nr),2-o(pt));pt=nr+B(E/Ht*_(fr))-fr,it[0]=Ht*o(pt),it[1]=Ht*_(pt)}return it}return qe.invert=function(Ve,lt){var it=G(Ve*Ve+lt*lt);if(it>T){var pt=a(lt,Ve),Ht=Me*d((pt-T)/Me)+T,nr=pt>Ht?-1:1,fr=it*o(Ht-pt),Ar=1/b(nr*U((fr-E)/G(E*(E-2*fr)+it*it)));pt=Ht+2*i((Ar+nr*G(Ar*Ar-3))/3),Ve=it*o(pt),lt=it*_(pt)}return t.geoAzimuthalEquidistantRaw.invert(Ve,lt)},qe}function ce(){var he=5,Me=t.geoProjectionMutator(Ne),qe=Me(he),Ve=qe.stream,lt=.01,it=-o(lt*A),pt=_(lt*A);return qe.lobes=function(Ht){return arguments.length?Me(he=+Ht):he},qe.stream=function(Ht){var nr=qe.rotate(),fr=Ve(Ht),Ar=(qe.rotate([0,0]),Ve(Ht));return qe.rotate(nr),fr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Ir=0,ri=360/he,li=2*E/he,Ei=90-180/he,hn=T;Ir0&&n(lt)>v);return Ve<0?NaN:qe}function at(he,Me,qe){return Me===void 0&&(Me=40),qe===void 0&&(qe=C),function(Ve,lt,it,pt){var Ht,nr,fr;it=it===void 0?0:+it,pt=pt===void 0?0:+pt;for(var Ar=0;ArHt){it-=nr/=2,pt-=fr/=2;continue}Ht=Ei;var hn=(it>0?-1:1)*qe,Zn=(pt>0?-1:1)*qe,Yn=he(it+hn,pt),Ua=he(it,pt+Zn),Fo=(Yn[0]-Ir[0])/hn,vl=(Yn[1]-Ir[1])/hn,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(nr=(li*Us-ri*ml)*Sl,fr=(ri*vl-li*Fo)*Sl,it+=nr,pt+=fr,n(nr)0&&(Ht[1]*=1+nr/1.5*Ht[0]*Ht[0]),Ht}return Ve.invert=at(Ve),Ve}function Ct(){return t.geoProjection(Ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function wt(he,Me){var qe=he*_(Me),Ve=30,lt;do Me-=lt=(Me+_(Me)-qe)/(1+o(Me));while(n(lt)>v&&--Ve>0);return Me/2}function Mt(he,Me,qe){function Ve(lt,it){return[he*lt*o(it=wt(qe,it)),Me*_(it)]}return Ve.invert=function(lt,it){return it=B(it/Me),[lt/(he*o(it)),B((2*it+_(2*it))/qe)]},Ve}var Bt=Mt(k/T,k,E);function Zt(){return t.geoProjection(Bt).scale(169.529)}var Et=2.00276,Ae=1.11072;function ot(he,Me){var qe=wt(E,Me);return[Et*he/(1/o(Me)+Ae/o(qe)),(Me+k*_(qe))/Et]}ot.invert=function(he,Me){var qe=Et*Me,Ve=Me<0?-L:L,lt=25,it,pt;do pt=qe-k*_(Ve),Ve-=it=(_(2*Ve)+2*Ve-E*_(pt))/(2*o(2*Ve)+2+E*o(pt)*k*o(Ve));while(n(it)>v&&--lt>0);return pt=qe-k*_(Ve),[he*(1/o(pt)+Ae/o(Ve))/Et,pt]};function At(){return t.geoProjection(ot).scale(160.857)}function vt(he){var Me=0,qe=t.geoProjectionMutator(he),Ve=qe(Me);return Ve.parallel=function(lt){return arguments.length?qe(Me=lt*A):Me*P},Ve}function Je(he,Me){return[he*o(Me),Me]}Je.invert=function(he,Me){return[he/o(Me),Me]};function He(){return t.geoProjection(Je).scale(152.63)}function nt(he){if(!he)return Je;var Me=1/b(he);function qe(Ve,lt){var it=Me+he-lt,pt=it&&Ve*o(lt)/it;return[it*_(pt),Me-it*o(pt)]}return qe.invert=function(Ve,lt){var it=G(Ve*Ve+(lt=Me-lt)*lt),pt=Me+he-it;return[it/o(pt)*a(Ve,lt),pt]},qe}function tt(){return vt(nt).scale(123.082).center([0,26.1441]).parallel(45)}function It(he){function Me(qe,Ve){var lt=T-Ve,it=lt&&qe*he*_(lt)/lt;return[lt*_(it)/he,T-lt*o(it)]}return Me.invert=function(qe,Ve){var lt=qe*he,it=T-Ve,pt=G(lt*lt+it*it),Ht=a(lt,it);return[(pt?pt/_(pt):1)*Ht/he,T-pt]},Me}function Yt(){var he=.5,Me=t.geoProjectionMutator(It),qe=Me(he);return qe.fraction=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(158.837)}var cr=Mt(1,4/E,E);function _r(){return t.geoProjection(cr).scale(152.63)}function yr(he,Me,qe,Ve,lt,it){var pt=o(it),Ht;if(n(he)>1||n(it)>1)Ht=U(qe*lt+Me*Ve*pt);else{var nr=_(he/2),fr=_(it/2);Ht=2*B(G(nr*nr+Me*Ve*fr*fr))}return n(Ht)>v?[Ht,a(Ve*_(it),Me*lt-qe*Ve*pt)]:[0,0]}function Ut(he,Me,qe){return U((he*he+Me*Me-qe*qe)/(2*he*Me))}function Re(he){return he-2*E*u((he+E)/(2*E))}function be(he,Me,qe){for(var Ve=[[he[0],he[1],_(he[1]),o(he[1])],[Me[0],Me[1],_(Me[1]),o(Me[1])],[qe[0],qe[1],_(qe[1]),o(qe[1])]],lt=Ve[2],it,pt=0;pt<3;++pt,lt=it)it=Ve[pt],lt.v=yr(it[1]-lt[1],lt[3],lt[2],it[3],it[2],it[0]-lt[0]),lt.point=[0,0];var Ht=Ut(Ve[0].v[0],Ve[2].v[0],Ve[1].v[0]),nr=Ut(Ve[0].v[0],Ve[1].v[0],Ve[2].v[0]),fr=E-Ht;Ve[2].point[1]=0,Ve[0].point[0]=-(Ve[1].point[0]=Ve[0].v[0]/2);var Ar=[Ve[2].point[0]=Ve[0].point[0]+Ve[2].v[0]*o(Ht),2*(Ve[0].point[1]=Ve[1].point[1]=Ve[2].v[0]*_(Ht))];function Ir(ri,li){var Ei=_(li),hn=o(li),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=Ve[Yn];if(Zn[Yn]=yr(li-Ua[1],Ua[3],Ua[2],hn,Ei,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Re(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ut(Ve[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us)):(Us=fr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*_(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Ir}function Oe(he){return he[0]*=A,he[1]*=A,he}function Ie(){return Fe([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Fe(he,Me,qe){var Ve=t.geoCentroid({type:"MultiPoint",coordinates:[he,Me,qe]}),lt=[-Ve[0],-Ve[1]],it=t.geoRotation(lt),pt=be(Oe(it(he)),Oe(it(Me)),Oe(it(qe)));pt.invert=at(pt);var Ht=t.geoProjection(pt).rotate(lt),nr=Ht.center;return delete Ht.rotate,Ht.center=function(fr){return arguments.length?nr(it(fr)):it.invert(nr())},Ht.clipAngle(90)}function ft(he,Me){var qe=G(1-_(Me));return[2/M*he*qe,M*(1-qe)]}ft.invert=function(he,Me){var qe=(qe=Me/M-1)*qe;return[qe>0?he*G(E/qe)/2:0,B(1-qe)]};function ye(){return t.geoProjection(ft).scale(95.6464).center([0,30])}function fe(he){var Me=b(he);function qe(Ve,lt){return[Ve,(Ve?Ve/_(Ve):1)*(_(lt)*o(Ve)-Me*o(lt))]}return qe.invert=Me?function(Ve,lt){Ve&&(lt*=_(Ve)/Ve);var it=o(Ve);return[Ve,2*a(G(it*it+Me*Me-lt*lt)-it,Me-lt)]}:function(Ve,lt){return[Ve,B(Ve?lt*b(Ve)/Ve:lt)]},qe}function pe(){return vt(fe).scale(249.828).clipAngle(90)}var dt=G(3);function Pt(he,Me){return[dt*he*(2*o(2*Me/3)-1)/M,dt*M*_(Me/3)]}Pt.invert=function(he,Me){var qe=3*B(Me/(dt*M));return[M*he/(dt*(2*o(2*qe/3)-1)),qe]};function zt(){return t.geoProjection(Pt).scale(156.19)}function rr(he){var Me=o(he);function qe(Ve,lt){return[Ve*Me,_(lt)/Me]}return qe.invert=function(Ve,lt){return[Ve/Me,B(lt*Me)]},qe}function Gr(){return vt(rr).parallel(38.58).scale(195.044)}function Br(he){var Me=o(he);function qe(Ve,lt){return[Ve*Me,(1+Me)*b(lt/2)]}return qe.invert=function(Ve,lt){return[Ve/Me,i(lt/(1+Me))*2]},qe}function Er(){return vt(Br).scale(124.75)}function Rr(he,Me){var qe=G(8/(3*E));return[qe*he*(1-n(Me)/E),qe*Me]}Rr.invert=function(he,Me){var qe=G(8/(3*E)),Ve=Me/qe;return[he/(qe*(1-n(Ve)/E)),Ve]};function pi(){return t.geoProjection(Rr).scale(165.664)}function Di(he,Me){var qe=G(4-3*_(n(Me)));return[2/G(6*E)*he*qe,p(Me)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Me){var qe=2-n(Me)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Me)*B((4-qe*qe)/3)]};function ni(){return t.geoProjection(Di).scale(165.664)}function $i(he,Me){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Me*Me/(E*E))),4/qe*Me]}$i.invert=function(he,Me){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Me*Me*(4+E)/(4*E))),Me*qe/2]};function Qi(){return t.geoProjection($i).scale(180.739)}function si(he,Me){var qe=(2+T)*_(Me);Me/=2;for(var Ve=0,lt=1/0;Ve<10&&n(lt)>v;Ve++){var it=o(Me);Me-=lt=(Me+_(Me)*(it+2)-qe)/(2*it*(1+it))}return[2/G(E*(4+E))*he*(1+o(Me)),2*G(E/(4+E))*_(Me)]}si.invert=function(he,Me){var qe=Me*G((4+E)/E)/2,Ve=B(qe),lt=o(Ve);return[he/(2/G(E*(4+E))*(1+lt)),B((Ve+qe*(lt+2))/(2+T))]};function Ti(){return t.geoProjection(si).scale(180.739)}function Ni(he,Me){return[he*(1+o(Me))/G(2+E),2*Me/G(2+E)]}Ni.invert=function(he,Me){var qe=G(2+E),Ve=Me*qe/2;return[qe*he/(1+o(Ve)),Ve]};function Rt(){return t.geoProjection(Ni).scale(173.044)}function yt(he,Me){for(var qe=(1+T)*_(Me),Ve=0,lt=1/0;Ve<10&&n(lt)>v;Ve++)Me-=lt=(Me+_(Me)-qe)/(1+o(Me));return qe=G(2+E),[he*(1+o(Me))/qe,2*Me/qe]}yt.invert=function(he,Me){var qe=1+T,Ve=G(qe/2);return[he*2*Ve/(1+o(Me*=Ve)),B((Me+_(Me))/qe)]};function Gt(){return t.geoProjection(yt).scale(173.044)}var Wt=3+2*k;function xr(he,Me){var qe=_(he/=2),Ve=o(he),lt=G(o(Me)),it=o(Me/=2),pt=_(Me)/(it+k*Ve*lt),Ht=G(2/(1+pt*pt)),nr=G((k*it+(Ve+qe)*lt)/(k*it+(Ve-qe)*lt));return[Wt*(Ht*(nr-1/nr)-2*l(nr)),Wt*(Ht*pt*(nr+1/nr)-2*i(pt))]}xr.invert=function(he,Me){if(!(it=ke.invert(he/1.2,Me*1.065)))return null;var qe=it[0],Ve=it[1],lt=20,it;he/=Wt,Me/=Wt;do{var pt=qe/2,Ht=Ve/2,nr=_(pt),fr=o(pt),Ar=_(Ht),Ir=o(Ht),ri=o(Ve),li=G(ri),Ei=Ar/(Ir+k*fr*li),hn=Ei*Ei,Zn=G(2/(1+hn)),Yn=k*Ir+(fr+nr)*li,Ua=k*Ir+(fr-nr)*li,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Ei*ml-2*i(Ei)-Me,Yl=Ar&&x*li*nr*hn/Ar,Ol=(k*fr*Ir+li)/(2*(Ir+k*fr*li)*(Ir+k*fr*li)*li),ou=-.5*Ei*Zn*Zn*Zn,Pu=ou*Yl,nu=ou*Ol,tu=(tu=2*Ir+k*li*(fr-nr))*tu*vl,Hu=(k*fr*Ir*li+ri)/tu,$u=-(k*nr*Ar)/(li*tu),Ku=Us*Pu-2*Hu/vl+Zn*(Hu+Hu/Fo),Wu=Us*nu-2*$u/vl+Zn*($u+$u/Fo),ju=Ei*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Ei*(Hu-Hu/Fo),sf=Ei*ml*nu-2*Ol/(1+hn)+Zn*ml*Ol+Zn*Ei*($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,Ve=f(-T,c(T,Ve-ef))}while((n(Qu)>v||n(ef)>v)&&--lt>0);return n(n(Ve)-T)Ve){var Ir=G(Ar),ri=a(fr,nr),li=qe*d(ri/qe),Ei=ri-li,hn=he*o(Ei),Zn=(he*_(Ei)-Ei*_(hn))/(T-hn),Yn=Fi(Ei,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Ir;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Ir)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);fr=Ei*_(nr),nrVe){var nr=G(Ht),fr=a(pt,it),Ar=qe*d(fr/qe),Ir=fr-Ar;it=nr*o(Ir),pt=nr*_(Ir);for(var ri=it-T,li=_(it),Ei=pt/li,hn=itv||n(Ei)>v)&&--hn>0);return[Ir,ri]},nr}var Ii=Ri(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ii).scale(149.995)}var bi=Ri(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(bi).scale(153.93)}var ct=Ri(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ct).scale(130.945)}function pr(he,Me){var qe=he*he,Ve=Me*Me;return[he*(1-.162388*Ve)*(.87-952426e-9*qe*qe),Me*(1+Ve/12)]}pr.invert=function(he,Me){var qe=he,Ve=Me,lt=50,it;do{var pt=Ve*Ve;Ve-=it=(Ve*(1+pt/12)-Me)/(1+pt/4)}while(n(it)>v&&--lt>0);lt=50,he/=1-.162388*pt;do{var Ht=(Ht=qe*qe)*Ht;qe-=it=(qe*(.87-952426e-9*Ht)-he)/(.87-.00476213*Ht)}while(n(it)>v&&--lt>0);return[qe,Ve]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Ri(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function en(he){var Me=he(T,0)[0]-he(-T,0)[0];function qe(Ve,lt){var it=Ve>0?-.5:.5,pt=he(Ve+it*E,lt);return pt[0]-=it*Me,pt}return he.invert&&(qe.invert=function(Ve,lt){var it=Ve>0?-.5:.5,pt=he.invert(Ve+it*Me,lt),Ht=pt[0]-it*E;return Ht<-E?Ht+=2*E:Ht>E&&(Ht-=2*E),pt[0]=Ht,pt}),qe}function ii(he,Me){var qe=p(he),Ve=p(Me),lt=o(Me),it=o(he)*lt,pt=_(he)*lt,Ht=_(Ve*Me);he=n(a(pt,Ht)),Me=B(it),n(he-T)>v&&(he%=T);var nr=Xi(he>E/4?T-he:he,Me);return he>E/4&&(Ht=nr[0],nr[0]=-nr[1],nr[1]=-Ht),nr[0]*=qe,nr[1]*=-Ve,nr}ii.invert=function(he,Me){n(he)>1&&(he=p(he)*2-he),n(Me)>1&&(Me=p(Me)*2-Me);var qe=p(he),Ve=p(Me),lt=-qe*he,it=-Ve*Me,pt=it/lt<1,Ht=aa(pt?it:lt,pt?lt:it),nr=Ht[0],fr=Ht[1],Ar=o(fr);return pt&&(nr=-T-nr),[qe*(a(_(nr)*Ar,-_(fr))+E),Ve*B(o(nr)*Ar)]};function Xi(he,Me){if(Me===T)return[0,0];var qe=_(Me),Ve=qe*qe,lt=Ve*Ve,it=1+lt,pt=1+3*lt,Ht=1-lt,nr=B(1/G(it)),fr=Ht+Ve*it*nr,Ar=(1-qe)/fr,Ir=G(Ar),ri=Ar*it,li=G(ri),Ei=Ir*Ht,hn,Zn;if(he===0)return[0,-(Ei+Ve*li)];var Yn=o(Me),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*Ve+nr*pt)*Fo,Us=(-fr*Yn-(1-qe)*vl)/(fr*fr),ml=.5*Us/Ir,au=Ht*ml-2*Ve*Ir*Fo,Sl=Ve*it*Us+Ar*pt*Fo,Yl=-Ua*Fo,Ol=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,nu;if(he>.222*E||Me.175*E){if(hn=(Ei+Ve*G(ri*(1+lt)-Ei*Ei))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Hu=.5*hn;hn=.5*(Hu+tu),Zn=50;do{var $u=G(ri-hn*hn),Ku=hn*(ou+Yl*$u)+Ol*B(hn/li)-Pu;if(!Ku)break;Ku<0?Hu=hn:tu=hn,hn=.5*(Hu+tu)}while(n(tu-Hu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var Wu=hn*hn,ju=G(ri-Wu),sf=ou+Yl*ju,_f=hn*sf+Ol*B(hn/li)-Pu,Qu=sf+(Ol-Yl*Wu)/ju;hn-=nu=ju?_f/Qu:0}while(n(nu)>v&&--Zn>0)}return[hn,-Ei-Ve*G(ri-hn*hn)]}function aa(he,Me){for(var qe=0,Ve=1,lt=.5,it=50;;){var pt=lt*lt,Ht=G(lt),nr=B(1/G(1+pt)),fr=1-pt+lt*(1+pt)*nr,Ar=(1-Ht)/fr,Ir=G(Ar),ri=Ar*(1+pt),li=Ir*(1-pt),Ei=ri-he*he,hn=G(Ei),Zn=Me+li+lt*hn;if(n(Ve-qe)0?qe=lt:Ve=lt,lt=.5*(qe+Ve)}if(!it)return null;var Yn=B(Ht),Ua=o(Yn),Fo=1/Ua,vl=2*Ht*Ua,Us=(-3*lt+nr*(1+3*pt))*vl,ml=(-fr*Ua-(1-Ht)*Us)/(fr*fr),au=.5*ml/Ir,Sl=(1-pt)*au-2*lt*Ir*vl,Yl=-2*Fo*Sl,Ol=-Fo*vl,ou=-Fo*(lt*(1+pt)*ml+Ar*(1+3*pt)*vl);return[E/4*(he*(Yl+Ol*hn)+ou*B(he/G(ri))),Yn]}function Mn(){return t.geoProjection(en(ii)).scale(239.75)}function Un(he,Me,qe){var Ve,lt,it;return he?(Ve=Ga(he,qe),Me?(lt=Ga(Me,1-qe),it=lt[1]*lt[1]+qe*Ve[0]*Ve[0]*lt[0]*lt[0],[[Ve[0]*lt[2]/it,Ve[1]*Ve[2]*lt[0]*lt[1]/it],[Ve[1]*lt[1]/it,-Ve[0]*Ve[2]*lt[0]*lt[2]/it],[Ve[2]*lt[1]*lt[2]/it,-qe*Ve[0]*Ve[1]*lt[0]/it]]):[[Ve[0],0],[Ve[1],0],[Ve[2],0]]):(lt=Ga(Me,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Me){var qe,Ve,lt,it,pt;if(Me=1-v)return qe=(1-Me)/4,Ve=N(he),it=j(he),lt=1/Ve,pt=Ve*W(he),[it+qe*(pt-he)/(Ve*Ve),lt-qe*it*lt*(pt-he),lt+qe*it*lt*(pt+he),2*i(s(he))-T+qe*(pt-he)/Ve];var Ht=[1,0,0,0,0,0,0,0,0],nr=[G(Me),0,0,0,0,0,0,0,0],fr=0;for(Ve=G(1-Me),pt=1;n(nr[fr]/Ht[fr])>v&&fr<8;)qe=Ht[fr++],nr[fr]=(qe-Ve)/2,Ht[fr]=(qe+Ve)/2,Ve=G(qe*Ve),pt*=2;lt=pt*Ht[fr]*he;do it=nr[fr]*_(Ve=lt)/Ht[fr],lt=(B(it)+lt)/2;while(--fr);return[_(lt),it=o(lt),it/o(lt-Ve),lt]}function ma(he,Me,qe){var Ve=n(he),lt=n(Me),it=W(lt);if(Ve){var pt=1/_(Ve),Ht=1/(b(Ve)*b(Ve)),nr=-(Ht+qe*(it*it*pt*pt)-1+qe),fr=(qe-1)*Ht,Ar=(-nr+G(nr*nr-4*fr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Ht-1)/qe)),1-qe)*p(Me)]}return[0,oa(i(it),1-qe)*p(Me)]}function oa(he,Me){if(!Me)return he;if(Me===1)return l(b(he/2+L));for(var qe=1,Ve=G(1-Me),lt=G(Me),it=0;n(lt)>v;it++){if(he%E){var pt=i(Ve*b(he)/qe);pt<0&&(pt+=E),he+=pt+~~(he/E)*E}else he+=he;lt=(qe+Ve)/2,Ve=G(qe*Ve),lt=((qe=lt)-Ve)/2}return he/(h(2,it)*qe)}function ka(he,Me){var qe=(k-1)/(k+1),Ve=G(1-qe*qe),lt=oa(T,Ve*Ve),it=-1,pt=l(b(E/4+n(Me)/2)),Ht=s(it*pt)/G(qe),nr=so(Ht*o(it*he),Ht*_(it*he)),fr=ma(nr[0],nr[1],Ve*Ve);return[-fr[1],(Me>=0?1:-1)*(.5*lt-fr[0])]}function so(he,Me){var qe=he*he,Ve=Me+1,lt=1-qe-Me*Me;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(Ve*Ve+qe)]}function Kr(he,Me){var qe=Me[0]*Me[0]+Me[1]*Me[1];return[(he[0]*Me[0]+he[1]*Me[1])/qe,(he[1]*Me[0]-he[0]*Me[1])/qe]}ka.invert=function(he,Me){var qe=(k-1)/(k+1),Ve=G(1-qe*qe),lt=oa(T,Ve*Ve),it=-1,pt=Un(.5*lt-Me,-he,Ve*Ve),Ht=Kr(pt[0],pt[1]),nr=a(Ht[1],Ht[0])/it;return[nr,2*i(s(.5/it*l(qe*Ht[0]*Ht[0]+qe*Ht[1]*Ht[1])))-T]};function Ia(){return t.geoProjection(en(ka)).scale(151.496)}function Yo(he){var Me=_(he),qe=o(he),Ve=fa(he);Ve.invert=fa(-he);function lt(it,pt){var Ht=Ve(it,pt);it=Ht[0],pt=Ht[1];var nr=_(pt),fr=o(pt),Ar=o(it),Ir=U(Me*nr+qe*fr*Ar),ri=_(Ir),li=n(ri)>v?Ir/ri:1;return[li*qe*_(it),(n(it)>T?li:-li)*(Me*fr-qe*nr*Ar)]}return lt.invert=function(it,pt){var Ht=G(it*it+pt*pt),nr=-_(Ht),fr=o(Ht),Ar=Ht*fr,Ir=-pt*nr,ri=Ht*Me,li=G(Ar*Ar+Ir*Ir-ri*ri),Ei=a(Ar*ri+Ir*li,Ir*ri-Ar*li),hn=(Ht>T?-1:1)*a(it*nr,Ht*o(Ei)*fr+pt*_(Ei)*nr);return Ve.invert(hn,Ei)},lt}function fa(he){var Me=_(he),qe=o(he);return function(Ve,lt){var it=o(lt),pt=o(Ve)*it,Ht=_(Ve)*it,nr=_(lt);return[a(Ht,pt*qe-nr*Me),B(nr*qe+pt*Me)]}}function kn(){var he=0,Me=t.geoProjectionMutator(Yo),qe=Me(he),Ve=qe.rotate,lt=qe.stream,it=t.geoCircle();return qe.parallel=function(pt){if(!arguments.length)return he*P;var Ht=qe.rotate();return Me(he=pt*A).rotate(Ht)},qe.rotate=function(pt){return arguments.length?(Ve.call(qe,[pt[0],pt[1]-he*P]),it.center([-pt[0],-pt[1]]),qe):(pt=Ve.call(qe),pt[1]+=he*P,pt)},qe.stream=function(pt){return pt=lt(pt),pt.sphere=function(){pt.polygonStart();var Ht=.01,nr=it.radius(90-Ht)().coordinates[0],fr=nr.length-1,Ar=-1,Ir;for(pt.lineStart();++Ar=0;)pt.point((Ir=nr[Ar])[0],Ir[1]);pt.lineEnd(),pt.polygonEnd()},pt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=B(1-1/Ta)*P,uo=rr(0);function ls(he){var Me=ys*A,qe=ft(E,Me)[0]-ft(-E,Me)[0],Ve=uo(0,Me)[1],lt=ft(0,Me)[1],it=M-lt,pt=m/he,Ht=4/m,nr=Ve+it*it*4/m;function fr(Ar,Ir){var ri,li=n(Ir);if(li>Me){var Ei=c(he-1,f(0,u((Ar+E)/pt)));Ar+=E*(he-1)/he-Ei*pt,ri=ft(Ar,li),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Ei*m/he,ri[1]=Ve+(ri[1]-lt)*4*it/m,Ir<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Ir);return ri[0]*=Ht,ri[1]/=nr,ri}return fr.invert=function(Ar,Ir){Ar/=Ht,Ir*=nr;var ri=n(Ir);if(ri>Ve){var li=c(he-1,f(0,u((Ar+E)/pt)));Ar=(Ar+E*(he-1)/he-li*pt)*qe/m;var Ei=ft.invert(Ar,.25*(ri-Ve)*m/it+lt);return Ei[0]-=E*(he-1)/he-li*pt,Ir<0&&(Ei[1]=-Ei[1]),Ei}return uo.invert(Ar,Ir)},fr}function $a(he,Me){return[he,Me&1?90-v:ys]}function fo(he,Me){return[he,Me&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Me=[].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?Me.map(mn):Me]}}function wa(){var he=4,Me=t.geoProjectionMutator(ls),qe=Me(he),Ve=qe.stream;return qe.lobes=function(lt){return arguments.length?Me(he=+lt):he},qe.stream=function(lt){var it=qe.rotate(),pt=Ve(lt),Ht=(qe.rotate([0,0]),Ve(lt));return qe.rotate(it),pt.sphere=function(){t.geoStream(ra(180/he),Ht)},pt},qe.scale(239.75)}function ws(he){var Me=1+he,qe=_(1/Me),Ve=B(qe),lt=2*G(E/(it=E+4*Ve*Me)),it,pt=.5*lt*(Me+G(he*(2+he))),Ht=he*he,nr=Me*Me;function fr(Ar,Ir){var ri=1-_(Ir),li,Ei;if(ri&&ri<2){var hn=T-Ir,Zn=25,Yn;do{var Ua=_(hn),Fo=o(hn),vl=Ve+a(Ua,Me-Fo),Us=1+nr-2*Me*Fo;hn-=Yn=(hn-Ht*Ve-Me*Ua+Us*vl-.5*ri*it)/(2*Me*Ua*vl)}while(n(Yn)>C&&--Zn>0);li=lt*G(Us),Ei=Ar*vl/E}else li=lt*(he+ri),Ei=Ar*Ve/E;return[li*_(Ei),pt-li*o(Ei)]}return fr.invert=function(Ar,Ir){var ri=Ar*Ar+(Ir-=pt)*Ir,li=(1+nr-ri/(lt*lt))/(2*Me),Ei=U(li),hn=_(Ei),Zn=Ve+a(hn,Me-li);return[B(Ar/G(ri))*E/Zn,B(1-2*(Ei-Ht*Ve-Me*hn+(1+nr-2*Me*li)*Zn)/it)]},fr}function Co(){var he=1,Me=t.geoProjectionMutator(ws),qe=Me(he);return qe.ratio=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,Wi=.0528035274542;function gn(he,Me){return Me>-Po?(he=Bt(he,Me),he[1]+=Wi,he):Je(he,Me)}gn.invert=function(he,Me){return Me>-Po?Bt.invert(he,Me-Wi):Je.invert(he,Me)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Me){return n(Me)>Po?(he=Bt(he,Me),he[1]-=Me>0?Wi:-Wi,he):Je(he,Me)}Ha.invert=function(he,Me){return n(Me)>Po?Bt.invert(he,Me+(Me>0?Wi:-Wi)):Je.invert(he,Me)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Me,qe,Ve){var lt=G(4*E/(2*qe+(1+he-Me/2)*_(2*qe)+(he+Me)/2*_(4*qe)+Me/2*_(6*qe))),it=G(Ve*_(qe)*G((1+he*o(2*qe)+Me*o(4*qe))/(1+he+Me))),pt=qe*nr(1);function Ht(Ir){return G(1+he*o(2*Ir)+Me*o(4*Ir))}function nr(Ir){var ri=Ir*qe;return(2*ri+(1+he-Me/2)*_(2*ri)+(he+Me)/2*_(4*ri)+Me/2*_(6*ri))/qe}function fr(Ir){return Ht(Ir)*_(Ir)}var Ar=function(Ir,ri){var li=qe*qt(nr,pt*_(ri)/qe,ri/E);isNaN(li)&&(li=qe*p(ri));var Ei=lt*Ht(li);return[Ei*it*Ir/E*o(li),Ei/it*_(li)]};return Ar.invert=function(Ir,ri){var li=qt(fr,ri*it/lt);return[Ir*E/(o(li)*lt*it*Ht(li)),B(qe*nr(li/qe)/pt)]},qe===0&&(lt=G(Ve/E),Ar=function(Ir,ri){return[Ir*lt,_(ri)/lt]},Ar.invert=function(Ir,ri){return[Ir/lt,B(ri*lt)]}),Ar}function Ba(){var he=1,Me=0,qe=45*A,Ve=2,lt=t.geoProjectionMutator(ao),it=lt(he,Me,qe,Ve);return it.a=function(pt){return arguments.length?lt(he=+pt,Me,qe,Ve):he},it.b=function(pt){return arguments.length?lt(he,Me=+pt,qe,Ve):Me},it.psiMax=function(pt){return arguments.length?lt(he,Me,qe=+pt*A,Ve):qe*P},it.ratio=function(pt){return arguments.length?lt(he,Me,qe,Ve=+pt):Ve},it.scale(180.739)}function Ko(he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar){if(Ar.nanEncountered)return NaN;var Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl;if(Ir=qe-Me,ri=he(Me+Ir*.25),li=he(qe-Ir*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(li)){Ar.nanEncountered=!0;return}return Ei=Ir*(Ve+4*ri+lt)/12,hn=Ir*(lt+4*li+it)/12,Zn=Ei+hn,vl=(Zn-pt)/15,fr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>li?hn=Zn:Ei=Zn,Zn=Ei+hn>>1;while(Zn>Ei);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(li-nr[Zn+1])/Yn),(Zn+1+Yn)/pt}var Ir=2*Ar(1)/E*it/qe,ri=function(li,Ei){var hn=Ar(n(_(Ei))),Zn=Ve(hn)*li;return hn/=Ir,[Zn,Ei>=0?hn:-hn]};return ri.invert=function(li,Ei){var hn;return Ei*=Ir,n(Ei)<1&&(hn=p(Ei)*B(lt(n(Ei))*it)),[li/Ve(n(Ei)),hn]},ri}function Sa(){var he=0,Me=2.5,qe=1.183136,Ve=t.geoProjectionMutator(Hi),lt=Ve(he,Me,qe);return lt.alpha=function(it){return arguments.length?Ve(he=+it,Me,qe):he},lt.k=function(it){return arguments.length?Ve(he,Me=+it,qe):Me},lt.gamma=function(it){return arguments.length?Ve(he,Me,qe=+it):qe},lt.scale(152.63)}function Qa(he,Me){return n(he[0]-Me[0])=0;--nr)qe=he[1][nr],Ve=qe[0][0],lt=qe[0][1],it=qe[1][1],pt=qe[2][0],Ht=qe[2][1],Me.push(vn([[pt-v,Ht-v],[pt-v,it+v],[Ve+v,it+v],[Ve+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Me)]}}function la(he,Me,qe){var Ve,lt;function it(nr,fr){for(var Ar=fr<0?-1:1,Ir=Me[+(fr<0)],ri=0,li=Ir.length-1;riIr[ri][2][0];++ri);var Ei=he(nr-Ir[ri][1][0],fr);return Ei[0]+=he(Ir[ri][1][0],Ar*fr>Ar*Ir[ri][0][1]?Ir[ri][0][1]:fr)[0],Ei}qe?it.invert=qe(it):he.invert&&(it.invert=function(nr,fr){for(var Ar=lt[+(fr<0)],Ir=Me[+(fr<0)],ri=0,li=Ar.length;riEi&&(hn=li,li=Ei,Ei=hn),[[Ir,li],[ri,Ei]]})}),pt):Me.map(function(fr){return fr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Me!=null&&pt.lobes(Me),pt}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(ot,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(Bt,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(Bt,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,at).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 Oa(){return la(Je,Ns).scale(152.63).rotate([-20,0])}function ha(he,Me){return[3/m*he*G(E*E/3-Me*Me),Me]}ha.invert=function(he,Me){return[m/3*he/G(E*E/3-Me*Me),Me]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Me(qe,Ve){if(n(n(Ve)-T)2)return null;qe/=2,Ve/=2;var it=qe*qe,pt=Ve*Ve,Ht=2*Ve/(1+it+pt);return Ht=h((1+Ht)/(1-Ht),1/he),[a(2*qe,1-it-pt)/he,B((Ht-1)/(Ht+1))]},Me}function _n(){var he=.5,Me=t.geoProjectionMutator(Ya),qe=Me(he);return qe.spacing=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(124.75)}var Vn=E/k;function wo(he,Me){return[he*(1+G(o(Me)))/2,Me/(o(Me/2)*o(he/6))]}wo.invert=function(he,Me){var qe=n(he),Ve=n(Me),lt=v,it=T;Vev||n(Zn)>v)&&--lt>0);return lt&&[qe,Ve]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Me){return[_(he)/o(Me),b(Me)*o(he)]}$n.invert=function(he,Me){var qe=he*he,Ve=Me*Me,lt=Ve+1,it=qe+lt,pt=he?x*G((it-G(it*it-4*qe))/qe):1/G(lt);return[B(he*pt),p(Me)*U(pt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Me=o(he),qe=b(L+he/2);function Ve(lt,it){var pt=it-he,Ht=n(pt)=0;)Ar=he[fr],Ir=Ar[0]+Ht*(li=Ir)-nr*ri,ri=Ar[1]+Ht*ri+nr*li;return Ir=Ht*(li=Ir)-nr*ri,ri=Ht*ri+nr*li,[Ir,ri]}return qe.invert=function(Ve,lt){var it=20,pt=Ve,Ht=lt;do{for(var nr=Me,fr=he[nr],Ar=fr[0],Ir=fr[1],ri=0,li=0,Ei;--nr>=0;)fr=he[nr],ri=Ar+pt*(Ei=ri)-Ht*li,li=Ir+pt*li+Ht*Ei,Ar=fr[0]+pt*(Ei=Ar)-Ht*Ir,Ir=fr[1]+pt*Ir+Ht*Ei;ri=Ar+pt*(Ei=ri)-Ht*li,li=Ir+pt*li+Ht*Ei,Ar=pt*(Ei=Ar)-Ht*Ir-Ve,Ir=pt*Ir+Ht*Ei-lt;var hn=ri*ri+li*li,Zn,Yn;pt-=Zn=(Ar*ri+Ir*li)/hn,Ht-=Yn=(Ir*ri-Ar*li)/hn}while(n(Zn)+n(Yn)>v*v&&--it>0);if(it){var Ua=G(pt*pt+Ht*Ht),Fo=2*i(Ua*.5),vl=_(Fo);return[a(pt*vl,Ua*o(Fo)),Ua?B(Ht*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]],rn=[[.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(rn,[-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,Me){var qe=t.geoProjection(eo(he)).rotate(Me).clipAngle(90),Ve=t.geoRotation(Me),lt=qe.center;return delete qe.rotate,qe.center=function(it){return arguments.length?lt(Ve(it)):Ve.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Me){var qe=B(7*_(Me)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*_(qe/3)/Ca]}Es.invert=function(he,Me){var qe=3*B(Me*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),B(_(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Me){for(var qe=(1+x)*_(Me),Ve=Me,lt=0,it;lt<25&&(Ve-=it=(_(Ve/2)+_(Ve)-qe)/(.5*o(Ve/2)+o(Ve)),!(n(it)C&&--Ve>0);return it=qe*qe,pt=it*it,Ht=it*pt,[he/(.84719-.13063*it+Ht*Ht*(-.04515+.05494*it-.02326*pt+.00331*Ht)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Me){return[he*(1+o(Me))/2,2*(Me-b(Me/2))]}ln.invert=function(he,Me){for(var qe=Me/2,Ve=0,lt=1/0;Ve<10&&n(lt)>v;++Ve){var it=o(Me/2);Me-=lt=(Me-b(Me/2)-qe)/(1-.5/(it*it))}return[2*he/(1+o(Me)),Me]};function Bo(){return t.geoProjection(ln).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,Me){var qe=_(Me),Ve=o(Me),lt=p(he);if(he===0||n(Me)===T)return[0,Me];if(Me===0)return[he,0];if(n(he)===T)return[he*Ve,T*qe];var it=E/(2*he)-2*he/E,pt=2*Me/E,Ht=(1-pt*pt)/(qe-pt),nr=it*it,fr=Ht*Ht,Ar=1+nr/fr,Ir=1+fr/nr,ri=(it*qe/Ht-it/2)/Ar,li=(fr*qe/nr+Ht/2)/Ir,Ei=ri*ri+Ve*Ve/Ar,hn=li*li-(fr*qe*qe/nr+Ht*qe-1)/Ir;return[T*(ri+G(Ei)*lt),T*(li+G(hn<0?0:hn)*p(-Me*it)*lt)]}za.invert=function(he,Me){he/=T,Me/=T;var qe=he*he,Ve=Me*Me,lt=qe+Ve,it=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,qt(function(pt){return lt*(E*_(pt)-2*pt)*E+4*pt*pt*(Me-_(pt))+2*E*pt-it*Me},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,Me){var qe=Me*Me;return[he,Me*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Me){Me>ho?Me=ho:Me<-ho&&(Me=-ho);var qe=Me,Ve;do{var lt=qe*qe;qe-=Ve=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Me)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(Ve)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Me){if(n(Me)v&&--lt>0);return pt=b(Ve),[(n(Me)=0;)if(Ve=Me[Ht],qe[0]===Ve[0]&&qe[1]===Ve[1]){if(it)return[it,qe];it=qe}}}function Aa(he){for(var Me=he.length,qe=[],Ve=he[Me-1],lt=0;lt0?[-Ve[0],0]:[180-Ve[0],180])};var Me=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,Ve){var lt=Me[qe];lt&&(lt.children||(lt.children=[])).push(Me[Ve])}),Gs(Me[0],function(qe,Ve){return Me[qe<-E/2?Ve<0?6:4:qe<0?Ve<0?2:0:qeVe^li>Ve&&qe<(ri-fr)*(Ve-Ar)/(li-Ar)+fr&&(lt=!lt)}return lt}function Hs(he,Me){var qe=Me.stream,Ve;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":Ve=tl;break;case"FeatureCollection":Ve=Ro;break;default:Ve=hl;break}return Ve(he,qe)}function Ro(he,Me){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Me)})}}function tl(he,Me){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Me)}}function Fs(he,Me){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Me)})}}function hl(he,Me){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Me);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,Me(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Me){Fa.push([he,Me])},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,Me){Fa.push([he,Me])},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,Me){Fa.push([he,Me])},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=[],Me=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Me.push(qe)}),Me.forEach(function(qe){var Ve=qe[0];he.some(function(lt){if(el(lt[0],Ve))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Me=he(T,0)[0]-he(-T,0)[0];function qe(Ve,lt){var it=n(Ve)0?Ve-E:Ve+E,lt),Ht=(pt[0]-pt[1])*x,nr=(pt[0]+pt[1])*x;if(it)return[Ht,nr];var fr=Me*x,Ar=Ht>0^nr>0?-1:1;return[Ar*Ht-p(nr)*fr,Ar*nr-p(Ht)*fr]}return he.invert&&(qe.invert=function(Ve,lt){var it=(Ve+lt)*x,pt=(lt-Ve)*x,Ht=n(it)<.5*Me&&n(pt)<.5*Me;if(!Ht){var nr=Me*x,fr=it>0^pt>0?-1:1,Ar=-fr*Ve+(pt>0?1:-1)*nr,Ir=-fr*lt+(it>0?1:-1)*nr;it=(-Ar-Ir)*x,pt=(Ar-Ir)*x}var ri=he.invert(it,pt);return Ht||(ri[0]+=it>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function Tt(){return Bs(ii).scale(176.423)}function Vt(){return Bs(ka).scale(111.48)}function wr(he,Me){if(!(0<=(Me=+Me)&&Me<=20))throw new Error("invalid digits");function qe(fr){var Ar=fr.length,Ir=2,ri=new Array(Ar);for(ri[0]=+fr[0].toFixed(Me),ri[1]=+fr[1].toFixed(Me);Ir2||li[0]!=Ar[0]||li[1]!=Ar[1])&&(Ir.push(li),Ar=li)}return Ir.length===1&&fr.length>1&&Ir.push(qe(fr[fr.length-1])),Ir}function it(fr){return fr.map(lt)}function pt(fr){if(fr==null)return fr;var Ar;switch(fr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:fr.geometries.map(pt)};break;case"Point":Ar={type:"Point",coordinates:qe(fr.coordinates)};break;case"MultiPoint":Ar={type:fr.type,coordinates:Ve(fr.coordinates)};break;case"LineString":Ar={type:fr.type,coordinates:lt(fr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:fr.type,coordinates:it(fr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:fr.coordinates.map(it)};break;default:return fr}return fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}function Ht(fr){var Ar={type:"Feature",properties:fr.properties,geometry:pt(fr.geometry)};return fr.id!=null&&(Ar.id=fr.id),fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Ht(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Ht)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return pt(he)}return he}function mr(he){var Me=_(he);function qe(Ve,lt){var it=Me?b(Ve*Me/2)/Me:Ve/2;if(!lt)return[2*it,-he];var pt=2*i(it*_(lt)),Ht=1/b(lt);return[_(pt)*Ht,lt+(1-o(pt))*Ht-he]}return qe.invert=function(Ve,lt){if(n(lt+=he)v&&--Ht>0);var ri=Ve*(fr=b(pt)),li=b(n(lt)0?T:-T)*(nr+lt*(Ar-pt)/2+lt*lt*(Ar-2*nr+pt)/2)]}Si.invert=function(he,Me){var qe=Me/T,Ve=qe*90,lt=c(18,n(Ve/5)),it=f(0,u(lt));do{var pt=_i[it][1],Ht=_i[it+1][1],nr=_i[c(19,it+2)][1],fr=nr-pt,Ar=nr-2*Ht+pt,Ir=2*(n(qe)-Ht)/fr,ri=Ar/fr,li=Ir*(1-ri*Ir*(1-2*ri*Ir));if(li>=0||it===1){Ve=(Me>=0?5:-5)*(li+lt);var Ei=50,hn;do lt=c(18,n(Ve)/5),it=u(lt),li=lt-it,pt=_i[it][1],Ht=_i[it+1][1],nr=_i[c(19,it+2)][1],Ve-=(hn=(Me>=0?T:-T)*(Ht+li*(nr-pt)/2+li*li*(nr-2*Ht+pt)/2)-Me)*P;while(n(hn)>C&&--Ei>0);break}}while(--it>=0);var Zn=_i[it][0],Yn=_i[it+1][0],Ua=_i[c(19,it+2)][0];return[he/(Yn+li*(Ua-Zn)/2+li*li*(Ua-2*Yn+Zn)/2),Ve*A]};function Ci(){return t.geoProjection(Si).scale(152.63)}function Ki(he){function Me(qe,Ve){var lt=o(Ve),it=(he-1)/(he-lt*o(qe));return[it*lt*_(qe),it*_(Ve)]}return Me.invert=function(qe,Ve){var lt=qe*qe+Ve*Ve,it=G(lt),pt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/it+it/(he-1));return[a(qe*pt,it*G(1-pt*pt)),it?B(Ve*pt/it):0]},Me}function Fn(he,Me){var qe=Ki(he);if(!Me)return qe;var Ve=o(Me),lt=_(Me);function it(pt,Ht){var nr=qe(pt,Ht),fr=nr[1],Ar=fr*lt/(he-1)+Ve;return[nr[0]*Ve/Ar,fr/Ar]}return it.invert=function(pt,Ht){var nr=(he-1)/(he-1-Ht*lt);return qe.invert(nr*pt,nr*Ht*Ve)},it}function Pi(){var he=2,Me=0,qe=t.geoProjectionMutator(Fn),Ve=qe(he,Me);return Ve.distance=function(lt){return arguments.length?qe(he=+lt,Me):he},Ve.tilt=function(lt){return arguments.length?qe(he,Me=lt*A):Me*P},Ve.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var di=1e-4,Li=1e4,Mi=-180,Gn=Mi+di,ta=180,ya=ta-di,ia=-90,pa=ia+di,va=90,zn=va-di;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Mi,Cs(he)]}function dl(he){var Me=he[0],qe=he[1],Ve=!1;return Me<=Gn?(Me=Mi,Ve=!0):Me>=ya&&(Me=ta,Ve=!0),qe<=pa?(qe=ia,Ve=!0):qe>=zn&&(qe=va,Ve=!0),Ve?[Me,qe]:he}function xl(he){return he.map(dl)}function Bl(he,Me,qe){for(var Ve=0,lt=he.length;Ve=ya||Ar<=pa||Ar>=zn){it[pt]=dl(nr);for(var Ir=pt+1;IrGn&&lipa&&Ei=Ht)break;qe.push({index:-1,polygon:Me,ring:it=it.slice(Ir-1)}),it[0]=Ks(it[0][1]),pt=-1,Ht=it.length}}}}function bl(he){var Me,qe=he.length,Ve={},lt={},it,pt,Ht,nr,fr;for(Me=0;Me0?E-Ht:Ht)*P],fr=t.geoProjection(he(pt)).rotate(nr),Ar=t.geoRotation(nr),Ir=fr.center;return delete fr.rotate,fr.center=function(ri){return arguments.length?Ir(Ar(ri)):Ar.invert(Ir())},fr.clipAngle(90)}function cs(he){var Me=o(he);function qe(Ve,lt){var it=t.geoGnomonicRaw(Ve,lt);return it[0]*=Me,it}return qe.invert=function(Ve,lt){return t.geoGnomonicRaw.invert(Ve/Me,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Me){return Js(cs,he,Me)}function nl(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Me=-he/2,qe=-Me,Ve=he*he,lt=b(qe),it=.5/_(qe);function pt(Ht,nr){var fr=U(o(nr)*o(Ht-Me)),Ar=U(o(nr)*o(Ht-qe)),Ir=nr<0?-1:1;return fr*=fr,Ar*=Ar,[(fr-Ar)/(2*he),Ir*G(4*Ve*Ar-(Ve-fr+Ar)*(Ve-fr+Ar))/(2*he)]}return pt.invert=function(Ht,nr){var fr=nr*nr,Ar=o(G(fr+(ri=Ht+Me)*ri)),Ir=o(G(fr+(ri=Ht+qe)*ri)),ri,li;return[a(li=Ar-Ir,ri=(Ar+Ir)*lt),(nr<0?-1:1)*U(G(ri*ri+li*li)*it)]},pt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Me){return Js(nl,he,Me)}function Rl(he,Me){if(n(Me)v&&--Ht>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*pt]};function Nl(){return t.geoProjection(Gl).scale(127.16)}function le(he,Me,qe,Ve,lt){function it(pt,Ht){var nr=qe*_(Ve*Ht),fr=G(1-nr*nr),Ar=G(2/(1+fr*o(pt*=lt)));return[he*fr*Ar*_(pt),Me*nr*Ar]}return it.invert=function(pt,Ht){var nr=pt/he,fr=Ht/Me,Ar=G(nr*nr+fr*fr),Ir=2*B(Ar/2);return[a(pt*b(Ir),he*Ar)/lt,Ar&&B(Ht*_(Ir)/(Me*qe*Ar))/Ve]},it}function w(he,Me,qe,Ve){var lt=E/3;he=f(he,v),Me=f(Me,v),he=c(he,T),Me=c(Me,E-v),qe=f(qe,0),qe=c(qe,100-v),Ve=f(Ve,v);var it=qe/100+1,pt=Ve/100,Ht=U(it*o(lt))/lt,nr=_(he)/_(Ht*T),fr=Me/E,Ar=G(pt*_(he/2)/_(Me/2)),Ir=Ar/G(fr*nr*Ht),ri=1/(Ar*G(fr*nr*Ht));return le(Ir,ri,nr,Ht,fr)}function q(){var he=65*A,Me=60*A,qe=20,Ve=200,lt=t.geoProjectionMutator(w),it=lt(he,Me,qe,Ve);return it.poleline=function(pt){return arguments.length?lt(he=+pt*A,Me,qe,Ve):he*P},it.parallels=function(pt){return arguments.length?lt(he,Me=+pt*A,qe,Ve):Me*P},it.inflation=function(pt){return arguments.length?lt(he,Me,qe=+pt,Ve):qe},it.ratio=function(pt){return arguments.length?lt(he,Me,qe,Ve=+pt):Ve},it.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),ue=2*G(2*E*G(3)/ee),Ue=Mt(ue*G(3)/E,ue,ee/6);function rt(){return t.geoProjection(Ue).scale(176.84)}function mt(he,Me){return[he*G(1-3*Me*Me/(E*E)),Me]}mt.invert=function(he,Me){return[he/G(1-3*Me*Me/(E*E)),Me]};function Ft(){return t.geoProjection(mt).scale(152.63)}function ir(he,Me){var qe=o(Me),Ve=o(he)*qe,lt=1-Ve,it=o(he=a(_(he)*qe,-_(Me))),pt=_(he);return qe=G(1-Ve*Ve),[pt*qe-it*lt,-it*qe-pt*lt]}ir.invert=function(he,Me){var qe=(he*he+Me*Me)/-2,Ve=G(-qe*(2+qe)),lt=Me*qe+he*Ve,it=he*qe-Me*Ve,pt=G(it*it+lt*lt);return[a(Ve*lt,pt*(1+qe)),pt?-B(Ve*it/pt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Me){var qe=ze(he,Me);return[(qe[0]+he/T)/2,(qe[1]+Me)/2]}kr.invert=function(he,Me){var qe=he,Ve=Me,lt=25;do{var it=o(Ve),pt=_(Ve),Ht=_(2*Ve),nr=pt*pt,fr=it*it,Ar=_(qe),Ir=o(qe/2),ri=_(qe/2),li=ri*ri,Ei=1-fr*Ir*Ir,hn=Ei?U(it*Ir)*G(Zn=1/Ei):Zn=0,Zn,Yn=.5*(2*hn*it*ri+qe/T)-he,Ua=.5*(hn*pt+Ve)-Me,Fo=.5*Zn*(fr*li+hn*it*Ir*nr)+.5/T,vl=Zn*(Ar*Ht/4-hn*pt*ri),Us=.125*Zn*(Ht*ri-hn*pt*fr*Ar),ml=.5*Zn*(nr*Ir+hn*li*it)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ve-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ve]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=ge,e.geoAiryRaw=ae,e.geoAitoff=Le,e.geoAitoffRaw=ze,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=xe,e.geoBakerRaw=De,e.geoBerghaus=ce,e.geoBerghausRaw=Ne,e.geoBertin1953=Ct,e.geoBertin1953Raw=Ke,e.geoBoggs=At,e.geoBoggsRaw=ot,e.geoBonne=tt,e.geoBonneRaw=nt,e.geoBottomley=Yt,e.geoBottomleyRaw=It,e.geoBromley=_r,e.geoBromleyRaw=cr,e.geoChamberlin=Fe,e.geoChamberlinRaw=be,e.geoChamberlinAfrica=Ie,e.geoCollignon=ye,e.geoCollignonRaw=ft,e.geoCraig=pe,e.geoCraigRaw=fe,e.geoCraster=zt,e.geoCrasterRaw=Pt,e.geoCylindricalEqualArea=Gr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Er,e.geoCylindricalStereographicRaw=Br,e.geoEckert1=pi,e.geoEckert1Raw=Rr,e.geoEckert2=ni,e.geoEckert2Raw=Di,e.geoEckert3=Qi,e.geoEckert3Raw=$i,e.geoEckert4=Ti,e.geoEckert4Raw=si,e.geoEckert5=Rt,e.geoEckert5Raw=Ni,e.geoEckert6=Gt,e.geoEckert6Raw=yt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=xr,e.geoFahey=Hr,e.geoFaheyRaw=Or,e.geoFoucaut=gi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=ki,e.geoGilbert=Yr,e.geoGingery=nn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ii,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=bi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ct,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ii,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=gt,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=Ba,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=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,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=Zt,e.geoMollweideRaw=Bt,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=Bo,e.geoNellHammerRaw=ln,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=Tt,e.geoPeirceQuincuncial=Vt,e.geoPierceQuincuncial=Vt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Fr,e.geoRectangularPolyconicRaw=mr,e.geoRobinson=Ci,e.geoRobinsonRaw=Si,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=He,e.geoSinusoidalRaw=Je,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=Os,e.geoVanDerGrinten4=Nl,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=rt,e.geoWagner4Raw=Ue,e.geoWagner6=Ft,e.geoWagner6Raw=mt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var tFe=Te((i1r,eFe)=>{"use strict";var sd=Jl(),JZ=ei(),ABt=$l(),rS=Math.PI/180,tw=180/Math.PI,QZ={cursor:"pointer"},eY={cursor:"auto"};function TBt(e,t){var r=e.projection,n;return t._isScoped?n=SBt:t._isClipped?n=EBt:n=MBt,n(e,r)}eFe.exports=TBt;function tY(e,t){return sd.behavior.zoom().translate(t.translate()).scale(t.scale())}function rY(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]=JZ.nestedProperty(o,h).get(),ABt.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=JZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),JZ.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 SBt(e,t){var r=tY(e,t);function n(){sd.select(this).style(QZ)}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(eY),rY(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function MBt(e,t){var r=tY(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){sd.select(this).style(QZ),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(),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":-E[0]})}function v(){sd.select(this).style(eY),h&&rY(e,t,C)}function C(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",v),r}function EBt(e,t){var r={r:t.rotate(),k:t.scale()},n=tY(e,t),i=DBt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){sd.select(this).style(QZ);var h=sd.mouse(this),d=t.rotate(),p=d,_=t.translate(),b=kBt(d);s=FF(t,h),o.call(n,"zoom",function(){var v=sd.mouse(this);if(t.scale(r.k=sd.event.scale),!s)h=v,s=FF(t,h);else if(FF(t,v)){t.rotate(d).translate(_);var C=FF(t,v),E=LBt(s,C),T=zBt(CBt(b,E)),L=r.r=PBt(T,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(eY),o.call(n,"zoom",null),f(i.of(this,arguments)),rY(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 FF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&IBt(r)}function kBt(e){var t=.5*e[0]*rS,r=.5*e[1]*rS,n=.5*e[2]*rS,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 CBt(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 LBt(e,t){if(!(!e||!t)){var r=RBt(e,t),n=Math.sqrt(Q6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,Q6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function PBt(e,t,r){var n=$Z(t,2,e[0]);n=$Z(n,1,e[1]),n=$Z(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)*tw,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)*tw-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,_=(Math.atan2(l,s)-Math.atan2(o,h))*tw,b=(Math.atan2(l,s)-Math.atan2(o,-h))*tw,v=J6e(r[0],r[1],d,_),C=J6e(r[0],r[1],p,b);return v<=C?[d,_,r[2]]:[p,b,r[2]]}function J6e(e,t,r,n){var i=$6e(r-e),a=$6e(n-t);return Math.sqrt(i*i+a*a)}function $6e(e){return(e%360+540)%360-180}function $Z(e,t,r){var n=r*rS,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 zBt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*tw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*tw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*tw]}function IBt(e){var t=e[0]*rS,r=e[1]*rS,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function Q6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=Jl(),aY=KZ(),FBt=aY.geoPath,BBt=aY.geoDistance,OBt=K6e(),qBt=$l(),pk=ei(),NBt=pk.strTranslate,BF=jl(),dk=Mu(),rFe=Xc(),UBt=Cc(),nY=wu(),iFe=Mm().getAutoRange,iY=xp(),VBt=oh().prepSelect,GBt=oh().clearOutline,HBt=oh().selectOnClick,WBt=tFe(),hv=uk(),jBt=hx(),aFe=bF(),XBt=DZ().feature;function oFe(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=oFe.prototype;sFe.exports=function(t){return new oFe(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),UBt.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=ZBt(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||{},_=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=iFe(r,l),f.range=iFe(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 E=o.type,T=hv.lonaxisSpan[E]/2||180,L=hv.lataxisSpan[E]/2||90;_=[v-T,v+T],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=nFe(_,b);c.fitExtent(h,x);var k=this.bounds=c.getBounds(x),M=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(nFe(l.range,f.range)),A=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(A)?c.scale(A*M):pk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*M);var F=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(c.translate([m[0]+(F[0]-m[0]),m[1]+(F[1]-m[1])]).clipExtent(k),n._isAlbersUsa){var B=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(B[0]-U[0]),U[1]-(B[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(XBt(n,n.objects[h])):o(h)&&d.datum(YBt(h,t,e)).call(BF.stroke,t[h].gridcolor).call(dk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(BF.stroke,t[p+"color"]).call(dk.dashLine,"",t[p+"width"]):u(h)&&d.call(BF.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;dk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(dk.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};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];qBt.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&&GBt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(WBt(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){VBt(c,h,d,f,a)},iY.init(f)),i.on("mousemove",function(){var c=r.projection.invert(pk.getPositionFromD3Event());if(!c)return iY.unhover(n,l1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},rFe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||iY.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&HBt(l1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&rFe.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(dk.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"},nY.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},pk.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?NBt(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 ZBt(e){var t=e.projection,r=t.type,n=hv.projNames[r];n="geo"+pk.titleCase(n);for(var i=aY[n]||OBt[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 FBt().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 YBt(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};nY.setConvert(f,r);var c=nY.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 oY=Te((a1r,cFe)=>{"use strict";var nS=Oh(),KBt=zc().attributes,JBt=Id().dash,iS=uk(),$Bt=Sc().overrideAll,uFe=t_(),fFe={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:nS.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:JBt},QBt=cFe.exports=$Bt({domain:KBt({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:uFe(iS.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:uFe(iS.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:nS.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:iS.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:iS.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:iS.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:iS.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:nS.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:nS.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:nS.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:nS.background},lonaxis:fFe,lataxis:fFe},"plot","from-root");QBt.uirevision={valType:"any",editType:"none"}});var pFe=Te((o1r,dFe)=>{"use strict";var OF=ei(),e9t=B_(),t9t=Rd().getSubplotData,qF=uk(),r9t=oY(),hFe=qF.axesNames;dFe.exports=function(t,r,n){e9t(t,r,n,{type:"geo",attributes:r9t,handleDefaults:i9t,fullData:n,partition:"y"})};function i9t(e,t,r,n){var i=t9t(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=qF.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=!!qF.lonaxisSpan[l];if(e.visible===!1){var _=OF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),v,C=0;C0&&B<0&&(B+=360);var U=(F+B)/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=(A[0]+A[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 sY=Te((s1r,yFe)=>{"use strict";var n9t=Rd().getSubplotCalcData,a9t=ei().counterRegex,o9t=lFe(),Qy="geo",vFe=a9t(Qy),mFe={};mFe[Qy]={valType:"subplotid",dflt:Qy,editType:"calc"};function s9t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Qy],i=0;i{"use strict";gFe.exports={attributes:ew(),supplyDefaults:QDe(),colorbar:ep(),formatLabels:r6e(),calc:_F(),calcGeoJSON:YZ().calcGeoJSON,plot:YZ().plot,style:WZ(),styleOnSelect:sv().styleOnSelect,hoverPoints:U6e(),eventData:G6e(),selectPoints:j6e(),moduleType:"trace",name:"scattergeo",basePlotModule:sY(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var bFe=Te((u1r,xFe)=>{"use strict";xFe.exports=_Fe()});var aS=Te((f1r,TFe)=>{"use strict";var{hovertemplateAttrs:f9t,templatefallbackAttrs:c9t}=Ff(),px=ew(),h9t=nc(),wFe=Gf(),d9t=Oh().defaultLine,dx=Su().extendFlat,AFe=px.marker.line;TFe.exports=dx({locations:{valType:"data_array",editType:"calc"},locationmode:px.locationmode,z:{valType:"data_array",editType:"calc"},geojson:dx({},px.geojson,{}),featureidkey:px.featureidkey,text:dx({},px.text,{}),hovertext:dx({},px.hovertext,{}),marker:{line:{color:dx({},AFe.color,{dflt:d9t}),width:dx({},AFe.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:dx({},wFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:f9t(),hovertemplatefallback:c9t(),showlegend:dx({},wFe.showlegend,{dflt:!1})},h9t("",{cLetter:"z",editTypeOverride:"calc"}))});var MFe=Te((c1r,SFe)=>{"use strict";var vk=ei(),p9t=nd(),v9t=aS(),m9t=["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(" ");SFe.exports=function(t,r,n,i){function a(h,d){return vk.coerce(t,r,v9t,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&vk.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!==""||vk.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&vk.warn(m9t),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"),p9t(t,r,i,a,{prefix:"",cLetter:"z"}),vk.coerceSelectionMarkerOpacity(r,a)}});var NF=Te((h1r,CFe)=>{"use strict";var EFe=ku(),y9t=rf().BADNUM,g9t=gp(),_9t=Iy(),x9t=B0();function kFe(e){return e&&typeof e=="string"}CFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return kFe(f)||EFe(f)}:a=kFe;for(var o=0;o{"use strict";var b9t=Jl(),w9t=jl(),lY=Mu(),A9t=_c();function T9t(e,t){t&&LFe(e,t)}function LFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=A9t.makeColorScaleFuncFromTrace(r);i.each(function(u){b9t.select(this).attr("fill",s(u.z)).call(w9t.stroke,u.mlc||o.color).call(lY.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),lY.selectedPointStyle(i,r)}function S9t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?lY.selectedPointStyle(r.selectAll(".choroplethlocation"),n):LFe(e,t)}PFe.exports={style:T9t,styleOnSelect:S9t}});var uY=Te((p1r,RFe)=>{"use strict";var M9t=Jl(),zFe=ei(),oS=hx(),E9t=bF().getTopojsonFeatures,IFe=Mm().findExtremes,k9t=UF().style;function C9t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");zFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=M9t.select(this),o=a.selectAll("path.choroplethlocation").data(zFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),k9t(e,i)})}function L9t(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"?oS.extractTraceFeature(e):E9t(r,i.topojson),u=[],l=[],f=0;f{"use strict";var P9t=wu(),z9t=aS(),I9t=ei().fillText;DFe.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 GF=Te((m1r,FFe)=>{"use strict";FFe.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 HF=Te((y1r,BFe)=>{"use strict";BFe.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";OFe.exports={attributes:aS(),supplyDefaults:MFe(),colorbar:R_(),calc:NF(),calcGeoJSON:uY().calcGeoJSON,plot:uY().plot,style:UF().style,styleOnSelect:UF().styleOnSelect,hoverPoints:VF(),eventData:GF(),selectPoints:HF(),moduleType:"trace",name:"choropleth",basePlotModule:sY(),categories:["geo","noOpacity","showLegend"],meta:{}}});var UFe=Te((_1r,NFe)=>{"use strict";NFe.exports=qFe()});var WF=Te((x1r,GFe)=>{"use strict";var D9t=$l(),l0=ei(),F9t=mA();function B9t(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 _=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(_,b),Math.min(u._rl[0],u._rl[1]),Math.max(_,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(_,b),Math.min(v,C),Math.max(_,b),Math.max(v,C))}else p=a.ids;var E,T,L,x,k,M,m,P,A,F=d;if(n==="x"){var B=!!o.xperiodalignment,U=!!o.yperiodalignment;for(k=0;k=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(M=Math.min(W,N)&&h<=Math.max(W,N)?0:1/0}A=Math.sqrt(M*M+m*m),T=p[k]}}}else for(k=p.length-1;k>-1;k--)E=p[k],L=l[E],x=f[E],M=s.c2p(L)-c,m=u.c2p(x)-h,P=Math.sqrt(M*M+m*m),P{"use strict";var HFe=20;WFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:HFe,SYMBOL_STROKE:HFe/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=Te((w1r,YFe)=>{"use strict";var O9t=Gf(),q9t=gc(),N9t=Pm(),Kc=Zc(),jFe=jc().axisHoverFormat,XFe=nc(),U9t=t_(),fY=Su().extendFlat,V9t=Sc().overrideAll,G9t=vx().DASHES,ZFe=Kc.line,u1=Kc.marker,H9t=u1.line,mx=YFe.exports=V9t({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:jFe("x"),yhoverformat:jFe("y"),text:Kc.text,hovertext:Kc.hovertext,textposition:Kc.textposition,textfont:q9t({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:ZFe.color,width:ZFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:U9t(G9t),dflt:"solid"}},marker:fY({},XFe("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:fY({},XFe("marker.line"),{width:H9t.width})}),connectgaps:Kc.connectgaps,fill:fY({},Kc.fill,{dflt:"none"}),fillcolor:N9t(),selected:{marker:Kc.selected.marker,textfont:Kc.selected.textfont},unselected:{marker:Kc.unselected.marker,textfont:Kc.unselected.textfont},opacity:O9t.opacity},"calc","nested");mx.x.editType=mx.y.editType=mx.x0.editType=mx.y0.editType="calc+clearAxisTypes";mx.hovertemplate=Kc.hovertemplate;mx.hovertemplatefallback=Kc.hovertemplatefallback;mx.texttemplate=Kc.texttemplate;mx.texttemplatefallback=Kc.texttemplatefallback});var jF=Te(cY=>{"use strict";var KFe=vx();cY.isOpenSymbol=function(e){return typeof e=="string"?KFe.OPEN_RE.test(e):e%200>100};cY.isDotSymbol=function(e){return typeof e=="string"?KFe.DOT_RE.test(e):e>200}});var QFe=Te((T1r,$Fe)=>{"use strict";var JFe=ei(),W9t=$l(),j9t=jF(),X9t=mk(),Z9t=Ly(),XF=lc(),Y9t=oA(),K9t=Rm(),J9t=$v(),$9t=R0(),Q9t=Dm(),eOt=D0();$Fe.exports=function(t,r,n,i){function a(d,p){return JFe.coerce(t,r,X9t,d,p)}var o=t.marker?j9t.isOpenSymbol(t.marker.symbol):!1,s=XF.isBubble(t),u=Y9t(t,r,i,a);if(!u){r.visible=!1;return}K9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var tOt=lI();e8e.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]),tOt(t,r,n)}});var i8e=Te((M1r,r8e)=>{"use strict";function rOt(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 iOt(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 nOt(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 aOt(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 oOt(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)}r8e.exports={ge:function(e,t,r,n,i){return yk(e,t,r,n,i,rOt)},gt:function(e,t,r,n,i){return yk(e,t,r,n,i,iOt)},lt:function(e,t,r,n,i){return yk(e,t,r,n,i,nOt)},le:function(e,t,r,n,i){return yk(e,t,r,n,i,aOt)},eq:function(e,t,r,n,i){return yk(e,t,r,n,i,oOt)}}});var eg=Te((E1r,a8e)=>{"use strict";a8e.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=n8e(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var sOt=eg();o8e.exports=lOt;function lOt(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=sOt(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 rw=Te((C1r,s8e)=>{"use strict";s8e.exports=uOt;function uOt(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]{l8e.exports=function(){for(var e=0;e{var f8e=Q6();c8e.exports=fOt;function fOt(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(f8e(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";h8e.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var v8e=Te((I1r,p8e)=>{"use strict";p8e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var w8e=Te((R1r,b8e)=>{"use strict";var m8e=i8e(),y8e=rk(),cOt=sS(),hOt=rw(),g8e=eg(),dY=u8e(),dOt=iw(),pOt=d8e(),vOt=Q6(),_8e=v8e(),mOt=1073741824;b8e.exports=function(t,r){r||(r={}),t=dOt(t,"float64"),r=g8e(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=dY(r.maxDepth,255),i=dY(r.bounds,hOt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=x8e(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(vOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||x>mOt){for(let N=0;Nge||m>ze||P=F||re===ae)return;let Le=u[H];ae===void 0&&(ae=Le.length);for(let Ne=re;Ne=T&&je<=x&&Qe>=L&&Qe<=k&&B.push(ce)}let de=l[H],te=de[re*4+0],ke=de[re*4+1],Ee=de[re*4+2],Se=de[re*4+3],Ge=G(de,re+1),De=N*.5,xe=H+1;U(j,W,De,xe,te,ke||Ee||Se||Ge),U(j,W+De,De,xe,ke,Ee||Se||Ge),U(j+De,W,De,xe,Ee,Se||Ge),U(j+De,W+De,De,xe,Se,Ge)}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 B}function _(v,C,E,T,L){let x=[];for(let k=0;k{"use strict";A8e.exports=w8e()});var pY=Te((F1r,T8e)=>{T8e.exports=yOt;function yOt(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(YF,"__esModule",{value:!0});var gOt=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")}}(),gk=Math.PI*2,vY=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}},_Ot=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}]},S8e=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)},xOt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),_=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*_;v<0&&(v=0),v/=d*b+p*_,v=Math.sqrt(v)*(s===u?-1:1);var C=v*a/o*h,E=v*-o/a*c,T=f*C-l*E+(t+n)/2,L=l*C+f*E+(r+i)/2,x=(c-C)/a,k=(h-E)/o,M=(-c-C)/a,m=(-h-E)/o,P=S8e(1,0,x,k),A=S8e(x,k,M,m);return u===0&&A>0&&(A-=gk),u===1&&A<0&&(A+=gk),[T,L,P,A]},bOt=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 _=Math.sin(l*gk/360),b=Math.cos(l*gk/360),v=b*(r-i)/2+_*(n-a)/2,C=-_*(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 T=xOt(r,n,i,a,o,s,c,d,_,b,v,C),L=gOt(T,4),x=L[0],k=L[1],M=L[2],m=L[3],P=Math.abs(m)/(gk/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var F=0;F{"use strict";C8e.exports=AOt;var wOt=E8e();function AOt(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 KF(e,t,r,n){return["C",e,t,r,n,r,n]}function k8e(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 mY=Te((O1r,P8e)=>{"use strict";P8e.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 R8e=Te((q1r,I8e)=>{"use strict";var TOt=n5(),SOt=pY(),MOt=L8e(),EOt=mY(),z8e=m4();I8e.exports=kOt;function kOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(z8e(EOt(e),"String is not an SVG path."),e=TOt(e)),z8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=SOt(e),e=MOt(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 N8e=Te((N1r,q8e)=>{var nw=Math.PI,D8e=O8e(120);q8e.exports=COt;function COt(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 _=l,b=f;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,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=F8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=F8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=JF(l,f,d[1],d[2]);break;case"H":d=JF(l,f,d[1],f);break;case"V":d=JF(l,f,l,d[1]);break;case"Z":d=JF(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 JF(e,t,r,n){return["C",e,t,r,n,r,n]}function F8e(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 B8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],C=l[3];else{var f=yY(e,t,-i);e=f.x,t=f.y,f=yY(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,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*_-p*h*h-_*c*c)/(p*h*h+_*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)),T=Math.asin(((u-C)/n).toFixed(9));E=eT&&(E=E-nw*2),!o&&T>E&&(T=T-nw*2)}if(Math.abs(T-E)>D8e){var L=T,x=s,k=u;T=E+D8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=C+n*Math.sin(T);var M=B8e(s,u,r,n,i,0,o,x,k,[T,L,v,C])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,F=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return F;M&&(F=F.concat(M));for(var B=0;B{var LOt=pY(),POt=N8e(),zOt={M:"moveTo",C:"bezierCurveTo"};U8e.exports=function(e,t){e.beginPath(),POt(LOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[zOt[n]].apply(e,i)}),e.closePath()}});var j8e=Te((V1r,W8e)=>{"use strict";var IOt=rk();W8e.exports=ROt;var _k=1e20;function ROt(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,_;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,_=l.length;p<_;p++)u[p]=l[p*f+i]/255;else if(f!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),v=Array(a*o),C=Array(s),E=Array(s),T=Array(s+1),L=Array(s);for(p=0,_=a*o;p<_;p++){var x=u[p];b[p]=x===1?0:x===0?_k:Math.pow(Math.max(0,.5-x),2),v[p]=x===1?_k:x===0?0:Math.pow(Math.max(0,x-.5),2)}G8e(b,a,o,C,E,L,T),G8e(v,a,o,C,E,L,T);var k=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(p=0,_=a*o;p<_;p++)k[p]=IOt(1-((b[p]-v[p])/n+r),0,1);return k}function G8e(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var DOt=R8e(),FOt=n5(),BOt=V8e(),OOt=mY(),qOt=j8e(),gY=document.createElement("canvas"),dv=gY.getContext("2d");X8e.exports=NOt;function NOt(e,t){if(!OOt(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=gY.width=t.w||t.width||200,n=gY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||DOt(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),UOt()){var l=new Path2D(e);dv.fill(l),a&&dv.stroke(l)}else{var f=FOt(e);BOt(dv,f),dv.fill(),a&&dv.stroke()}dv.setTransform(1,0,0,1,0,0);var c=qOt(dv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var $F;function UOt(){if($F!=null)return $F;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return $F=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return $F=r&&r.data&&r.data[3]===255}});var ow=Te((H1r,aBe)=>{"use strict";var e8=ku(),VOt=Z8e(),QF=ox(),GOt=$l(),fS=ei(),Lh=fS.isArrayOrTypedArray,lS=Mu(),Y8e=Wc(),K8e=a1().formatColor,uS=lc(),HOt=B3(),xY=jF(),xk=vx(),WOt=X1().DESELECTDIM,J8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},jOt=iv().appendArrayPointValue;function XOt(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(uS.hasText(t)&&(n.text=nBe(e,t),n.textSel=Q8e(e,t,t.selected),n.textUnsel=Q8e(e,t,t.unselected)),uS.hasMarkers(t)&&(n.marker=wY(e,t),n.markerSel=bY(e,t,t.selected),n.markerUnsel=bY(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 wY(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=xY.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,_=n.angle,b=K8e(n,n.opacity,r),v=K8e(n.line,n.opacity,r);if(!Lh(v[0])){var C=v;for(v=Array(r),a=0;axk.TOO_MANY_POINTS||uS.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=J8e[h],_=J8e[d],b=f?f/.8+1:0,v=-_*b-_*.5;a.offset[o]=[p*b/c,v/c]}}return a}aBe.exports={style:XOt,markerStyle:wY,markerSelection:bY,linePositions:YOt,errorBarPositions:KOt,textPosition:JOt}});var AY=Te((W1r,oBe)=>{"use strict";var t8=ei();oBe.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(){t8.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=t8.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 $Ot=ZF(),cS=ei(),sBe=Wc(),QOt=Mm().findExtremes,lBe=Fm(),TY=O0(),eqt=TY.calcMarkerSize,tqt=TY.calcAxisExpansion,rqt=TY.setFirstScatter,iqt=F0(),hS=ow(),nqt=AY(),uBe=rf().BADNUM,aqt=vx().TOO_MANY_POINTS;cBe.exports=function(t,r){var n=t._fullLayout,i=r._xA=sBe.getFromId(t,r.xaxis,"x"),a=r._yA=sBe.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=aqt,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=lBe(r,i,"x",h),_=lBe(r,a,"y",d),b=p.vals,v=_.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=_.starts,r._yEnds=_.ends);var C=new Array(l),E=new Array(s);for(c=0;c1&&cS.extendFlat(o.line,hS.linePositions(e,r,n)),o.errorX||o.errorY){var s=hS.errorBarPositions(e,r,n,i,a);o.errorX&&cS.extendFlat(o.errorX,s.x),o.errorY&&cS.extendFlat(o.errorY,s.y)}return o.text&&(cS.extendFlat(o.text,{positions:n},hS.textPosition(e,r,o.text,o.marker)),cS.extendFlat(o.textSel,{positions:n},hS.textPosition(e,r,o.text,o.markerSel)),cS.extendFlat(o.textUnsel,{positions:n},hS.textPosition(e,r,o.text,o.markerUnsel))),o}});var SY=Te((X1r,pBe)=>{"use strict";var dBe=ei(),sqt=jl(),lqt=X1().DESELECTDIM;function uqt(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=dBe.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,_=f.color,b=u.color,v=dBe.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var vBe=lc(),fqt=SY().styleTextSelection;mBe.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=vBe.hasText(s),_=vBe.hasMarkers(s),b=!_&&!p;if(s.visible!==!0||b)return o;var v=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var cqt=WF();yBe.exports={moduleType:"trace",name:"scattergl",basePlotModule:Mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mk(),supplyDefaults:QFe(),crossTraceDefaults:xU(),colorbar:ep(),formatLabels:t8e(),calc:hBe(),hoverPoints:cqt.hoverPoints,selectPoints:MY(),meta:{}}});var xBe=Te((K1r,i8)=>{"use strict";var r8=rk();i8.exports=_Be;i8.exports.to=_Be;i8.exports.from=hqt;function _Be(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=r8(r,0,255)&255,n=r8(n,0,255)&255,i=r8(i,0,255)&255,a=r8(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function hqt(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=Te((J1r,wBe)=>{"use strict";var bBe=Object.getOwnPropertySymbols,dqt=Object.prototype.hasOwnProperty,pqt=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 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}}wBe.exports=mqt()?Object.assign:function(e,t){for(var r,n=vqt(e),i,a=1;a{ABe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";SBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";MBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var n8=Te((t_r,dS)=>{"use strict";dS.exports=bk;dS.exports.float32=dS.exports.float=bk;dS.exports.fract32=dS.exports.fract=yqt;var kBe=new Float32Array(1);function yqt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=bk(e));for(var r=0,n=t.length;r{"use strict";function gqt(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 _qt(e,t){return wqt(e)||gqt(e,t)||LBe(e,t)||Sqt()}function xqt(e){return bqt(e)||Aqt(e)||LBe(e)||Tqt()}function bqt(e){if(Array.isArray(e))return kY(e)}function wqt(e){if(Array.isArray(e))return e}function Aqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LBe(e,t){if(e){if(typeof e=="string")return kY(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 kY(e,t)}}function kY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&u(k[U[j-2]],k[U[j-1]],M)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=B.upperIds,j=G.length;j>1&&u(k[G[j-2]],k[G[j-1]],M)<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]B[0]&&m.push(new d(B,F,c,P),new d(F,B,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;P0;){C=M.pop();for(var m=C.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var F=A.vertices,B=0;B<=T;++B){var U=F[B];U<0?x[B]=E:x[B]=k[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(C,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[M];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,F=0;F<=L;++F)k[F]=x[P[F]];m.lastVisited=T;for(var F=0;F<=L;++F){var B=A[F];if(!(B.lastVisited>=T)){var U=k[F];k[F]=C;var G=this.orient();if(k[F]=U,G<0){m=B;continue e}else B.boundary?B.lastVisited=-T:B.lastVisited=T}}return}return m},b.addPeaks=function(C,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),F=E.vertices,B=E.adjacent,U=F.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=B[G];if(!(!j.boundary||j.lastVisited>=T)){var W=j.vertices;if(j.lastVisited!==-T){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]=T,j.boundary=!1,M.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,ge=F.slice(),ze=B.slice(),Le=new l(ge,ze,!0);m.push(Le);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Le,ze[U]=j,ge[G]=-1,ze[G]=E,B[G]=Le,Le.flip();for(var H=0;H<=L;++H){var te=ge[H];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Se=0;Se<=L;++Se){var Ge=ge[Se];Ge<0||Se===H||(ke[Ee++]=Ge)}A.push(new f(ke,Le,H))}}}}}}}A.sort(c);for(var G=0;G+1=0?M[P++]=m[F]:A=F&1;if(A===(C&1)){var B=M[0];M[0]=M[1],M[1]=B}E.push(M)}}return E};function v(C,E){var T=C.length;if(T===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(T<=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 M=new Array(L+1),m=0;m<=L;++m)M[m]=m;k<0&&(M[0]=1,M[1]=0);for(var P=new l(M,new Array(L+1),!1),A=P.adjacent,F=new Array(L+2),m=0;m<=L;++m){for(var B=M.slice(),U=0;U<=L;++U)U===m&&(B[U]=-1);var G=B[0];B[0]=B[1],B[1]=G;var j=new l(B,new Array(L+1),!0);A[m]=j,F[m]=j}F[L+1]=P;for(var m=0;m<=L;++m)for(var B=A[m].vertices,W=A[m].adjacent,U=0;U<=L;++U){var N=B[U];if(N<0){W[U]=P;continue}for(var H=0;H<=L;++H)A[H].vertices.indexOf(N)<0&&(W[U]=A[H])}for(var re=new _(L,x,F),ae=!!E,m=L+1;m=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(k){this.pickId=k};function C(k){for(var M=p({colormap:k,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],F=0;F<3;++F)m[4*P+F]=A[F];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,m=new Array(M),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(k){k=k||{};for(var M=this.gl,m=k.model||_,P=k.view||_,A=k.projection||_,F=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],B=0;B<3;++B)F[0][B]=Math.max(F[0][B],this.clipBounds[0][B]),F[1][B]=Math.min(F[1][B],this.clipBounds[1][B]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:F,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(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],m=this.cells[M],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=M),A},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 T(k,M){var m=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.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,M){var m=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function x(k,M,m){var P=m.shaders;arguments.length===1&&(M=k,k=M.gl);var A=T(k,P),F=L(k,P),B=f(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));B.generateMipmap(),B.minFilter=k.LINEAR_MIPMAP_LINEAR,B.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,B,A,F,U,G,N,j,W,H,m.traceType||"cone");return re.update(M),re}i.exports=x},9127:function(i,a,o){"use strict";i.exports=l;var s=o(6204),u=o(5771);function l(f){return u(s(f))}},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}},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,T){this.gl=v,this.shader=T,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 T=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=T[12],k=T[13],M=T[14],m=T[15],P=v._ortho||!1,A=P?2:1,F=A*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*M+L[15]*m)/C.drawingBufferHeight;this.vao.bind();for(var B=0;B<3;++B)C.lineWidth(this.lineWidth[B]*this.pixelRatio),E.capSize=this.capSize[B]*F,this.lineCount[B]&&C.drawArrays(C.LINES,this.lineOffset[B],this.lineCount[B]);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=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var x=(T+C)%3,k=[0,0,0];k[x]=L,E.push(k)}v[C]=E}return v}();function _(v,C,E,T){for(var L=p[T],x=0;x0){var U=P.slice();U[M]+=F[1][M],L.push(P[0],P[1],P[2],B[0],B[1],B[2],B[3],0,0,0,U[0],U[1],U[2],B[0],B[1],B[2],B[3],0,0,0),d(this.bounds,U),k+=2+_(L,U,B,M)}}}this.lineCount[M]=k-this.lineOffset[M]}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),T=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,T,L);return x.update(v),x}},9215:function(i,a,o){"use strict";i.exports=d;var s=o(4769),u=o(2478);function l(p,_,b){return Math.min(_,Math.max(p,b))}function f(p,_,b){this.dimension=p.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var v=0;v=b-1)for(var k=E.length-1,m=p-_[b-1],M=0;M=b-1)for(var x=E.length-1,k=p-_[b-1],M=0;M=0;--b)if(p[--_])return!1;return!0},c.jump=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1];this._time.push(_,p);for(var k=0;k<2;++k)for(var M=0;M0;--M)v.push(l(L[M-1],x[M-1],arguments[M])),C.push(0)}},c.push=function(p){var _=this.lastT(),b=this.dimension;if(!(p<_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=p-_,L=this.bounds,x=L[0],k=L[1],M=T>1e-6?1/T: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++])*M)}}},c.set=function(p){var _=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var _=this.lastT(),b=this.dimension;if(!(p<=_||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],x=T[1],k=p-_,M=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*M)}}},c.idle=function(p){var _=this.lastT();if(!(p<_)){var b=this.dimension,v=this._state,C=this._velocity,E=v.length-b,T=this.bounds,L=T[0],x=T[1],k=p-_;this._time.push(p);for(var M=b-1;M>=0;--M)v.push(l(L[M],x[M],v[E]+k*C[E])),C.push(0),E+=1}};function h(p){for(var _=new Array(p),b=0;b1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},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}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},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}},9346:function(i){"use strict";var a=new Float64Array(4),o=new Float64Array(4),s=new Float64Array(4);function u(l,f,c,h,d){a.length=_?(m=1,A=_+2*C+T):(m=-C/_,A=C*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,C>=0?(m=0,A=T):-C>=_?(m=1,A=_+2*C+T):(m=-C/_,A=C*m+T);else{var F=1/M;m*=F,P*=F,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T}else{var B,U,G,j;m<0?(B=b+C,U=v+E,U>B?(G=U-B,j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*C+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(B=b+E,U=_+C,U>B?(G=U-B,j=_-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=_+2*C+T):C>=0?(m=0,A=T):(m=-C/_,A=C*m+T))):(G=v+E-b-C,G<=0?(m=0,P=1,A=v+2*E+T):(j=_-2*b+v,G>=j?(m=1,P=0,A=_+2*C+T):(m=G/j,P=1-m,A=m*(_*m+b*P+2*C)+P*(b*m+v*P+2*E)+T)))}for(var W=1-m-P,p=0;pE)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 ge(){x.program=f.program(k,x._vref,x._fref,B,U);for(var ze=0;zeDe&&Ne>0){var ce=(xe[Ne][0]-De)/(xe[Ne][0]-xe[Ne-1][0]);return xe[Ne][1]*(1-ce)+ce*xe[Ne-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(De,xe){var Ne,ce,je,Qe=xe.axes&&xe.axes.lastCubeProps.axis||H,gt=xe.showSurface,qt=xe.showContour;for(Ne=0;Ne<3;++Ne)for(gt=gt||xe.surfaceProject[Ne],ce=0;ce<3;++ce)qt=qt||xe.contourProject[Ne][ce];for(Ne=0;Ne<3;++Ne){var at=re.projections[Ne];for(ce=0;ce<16;++ce)at[ce]=0;for(ce=0;ce<4;++ce)at[5*ce]=1;at[5*Ne]=0,at[12+Ne]=xe.axesBounds[+(Qe[Ne]>0)][Ne],v(at,De.model,at);var Ke=re.clipBounds[Ne];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)Ke[je][ce]=De.clipBounds[je][ce];Ke[0][Ne]=-1e8,Ke[1][Ne]=1e8}return re.showSurface=gt,re.showContour=qt,re}var ge={model:A,view:A,projection:A,inverseModel:A.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},ze=A.slice(),Le=[1,0,0,0,1,0,0,0,1];function de(De,xe){De=De||{};var Ne=this.gl;Ne.disable(Ne.CULL_FACE),this._colorMap.bind(0);var ce=ge;ce.model=De.model||A,ce.view=De.view||A,ce.projection=De.projection||A,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 Qe=ce.clipBounds[je],gt=0;gt<3;++gt)Qe[gt]=Math.min(Math.max(this.clipBounds[je][gt],-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=Le,ce.vertexColor=this.vertexColor;var qt=ze;for(v(qt,ce.view,ce.model),v(qt,ce.projection,qt),C(qt,qt),je=0;je<3;++je)ce.eyePosition[je]=qt[12+je]/qt[15];var at=qt[15];for(je=0;je<3;++je)at+=this.lightPosition[je]*qt[4*je+3];for(je=0;je<3;++je){var Ke=qt[12+je];for(gt=0;gt<3;++gt)Ke+=qt[4*gt+je]*this.lightPosition[gt];ce.lightPosition[je]=Ke/at}var Ct=ae(ce,this);if(Ct.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ne.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=Ct.projections[je],this._shader.uniforms.clipBounds=Ct.clipBounds[je],this._vao.draw(Ne.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ct.showContour){var wt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,wt.bind(),wt.uniforms=ce;var Mt=this._contourVAO;for(Mt.bind(),je=0;je<3;++je)for(wt.uniforms.permutation=B[je],Ne.lineWidth(this.contourWidth[je]*this.pixelRatio),gt=0;gt>4)/16)/255,je=Math.floor(ce),Qe=ce-je,gt=xe[1]*(De.value[1]+(De.value[2]&15)/16)/255,qt=Math.floor(gt),at=gt-qt;je+=1,qt+=1;var Ke=Ne.position;Ke[0]=Ke[1]=Ke[2]=0;for(var Ct=0;Ct<2;++Ct)for(var wt=Ct?Qe:1-Qe,Mt=0;Mt<2;++Mt)for(var Bt=Mt?at:1-at,Zt=je+Ct,Et=qt+Mt,Ae=wt*Bt,ot=0;ot<3;++ot)Ke[ot]+=this._field[ot].get(Zt,Et)*Ae;for(var At=this._pickResult.level,vt=0;vt<3;++vt)if(At[vt]=E.le(this.contourLevels[vt],Ke[vt]),At[vt]<0)this.contourLevels[vt].length>0&&(At[vt]=0);else if(At[vt]Math.abs(He-Ke[vt])&&(At[vt]+=1)}for(Ne.index[0]=Qe<.5?je:je+1,Ne.index[1]=at<.5?qt:qt+1,Ne.uv[0]=ce/xe[0],Ne.uv[1]=gt/xe[1],ot=0;ot<3;++ot)Ne.dataCoordinate[ot]=this._field[ot].get(Ne.index[0],Ne.index[1]);return Ne},W.padField=function(De,xe){var Ne=xe.shape.slice(),ce=De.shape.slice();d.assign(De.lo(1,1).hi(Ne[0],Ne[1]),xe),d.assign(De.lo(1).hi(Ne[0],1),xe.hi(Ne[0],1)),d.assign(De.lo(1,ce[1]-1).hi(Ne[0],1),xe.lo(0,Ne[1]-1).hi(Ne[0],1)),d.assign(De.lo(0,1).hi(1,Ne[1]),xe.hi(1)),d.assign(De.lo(ce[0]-1,1).hi(1,Ne[1]),xe.lo(Ne[0]-1)),De.set(0,0,xe.get(0,0)),De.set(0,ce[1]-1,xe.get(0,Ne[1]-1)),De.set(ce[0]-1,0,xe.get(Ne[0]-1,0)),De.set(ce[0]-1,ce[1]-1,xe.get(Ne[0]-1,Ne[1]-1))};function ke(De,xe){return Array.isArray(De)?[xe(De[0]),xe(De[1]),xe(De[2])]:[xe(De),xe(De),xe(De)]}function Ee(De){return Array.isArray(De)?De.length===3?[De[0],De[1],De[2],1]:[De[0],De[1],De[2],De[3]]:[0,0,0,1]}function Se(De){if(Array.isArray(De)){if(Array.isArray(De))return[Ee(De[0]),Ee(De[1]),Ee(De[2])];var xe=Ee(De);return[xe.slice(),xe.slice(),xe.slice()]}}W.update=function(De){De=De||{},this.objectOffset=De.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in De&&(this.contourWidth=ke(De.contourWidth,Number)),"showContour"in De&&(this.showContour=ke(De.showContour,Boolean)),"showSurface"in De&&(this.showSurface=!!De.showSurface),"contourTint"in De&&(this.contourTint=ke(De.contourTint,Boolean)),"contourColor"in De&&(this.contourColor=Se(De.contourColor)),"contourProject"in De&&(this.contourProject=ke(De.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in De&&(this.surfaceProject=De.surfaceProject),"dynamicColor"in De&&(this.dynamicColor=Se(De.dynamicColor)),"dynamicTint"in De&&(this.dynamicTint=ke(De.dynamicTint,Number)),"dynamicWidth"in De&&(this.dynamicWidth=ke(De.dynamicWidth,Number)),"opacity"in De&&(this.opacity=De.opacity),"opacityscale"in De&&(this.opacityscale=De.opacityscale),"colorBounds"in De&&(this.colorBounds=De.colorBounds),"vertexColor"in De&&(this.vertexColor=De.vertexColor?1:0),"colormap"in De&&this._colorMap.setPixels(this.genColormap(De.colormap,this.opacityscale));var xe=De.field||De.coords&&De.coords[2]||null,Ne=!1;if(xe||(this._field[2].shape[0]||this._field[2].shape[2]?xe=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):xe=this._field[2].hi(0,0)),"field"in De||"coords"in De){var ce=(xe.shape[0]+2)*(xe.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]=_(this._field[2].data,[xe.shape[0]+2,xe.shape[1]+2]),this.padField(this._field[2],xe),this.shape=xe.shape.slice();for(var je=this.shape,Qe=0;Qe<2;++Qe)this._field[2].size>this._field[Qe].data.length&&(c.freeFloat(this._field[Qe].data),this._field[Qe].data=c.mallocFloat(this._field[2].size)),this._field[Qe]=_(this._field[Qe].data,[je[0]+2,je[1]+2]);if(De.coords){var gt=De.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(Qe=0;Qe<2;++Qe){var qt=gt[Qe];for(Mt=0;Mt<2;++Mt)if(qt.shape[Mt]!==je[Mt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[Qe],qt)}}else if(De.ticks){var at=De.ticks;if(!Array.isArray(at)||at.length!==2)throw new Error("gl-surface: invalid ticks");for(Qe=0;Qe<2;++Qe){var Ke=at[Qe];if((Array.isArray(Ke)||Ke.length)&&(Ke=_(Ke)),Ke.shape[0]!==je[Qe])throw new Error("gl-surface: invalid tick length");var Ct=_(Ke.data,je);Ct.stride[Qe]=Ke.stride[0],Ct.stride[Qe^1]=0,this.padField(this._field[Qe],Ct)}}else{for(Qe=0;Qe<2;++Qe){var wt=[0,0];wt[Qe]=1,this._field[Qe]=_(this._field[Qe].data,[je[0]+2,je[1]+2],wt,0)}this._field[0].set(0,0,0);for(var Mt=0;Mt0){for(var gi=0;gi<5;++gi)Br.pop();Ie-=1}continue e}}}Di.push(Ie)}this._contourOffsets[Er]=pi,this._contourCounts[Er]=Di}var ki=c.mallocFloat(Br.length);for(Qe=0;Qe=0&&(M=x|0,k+=P*M,m-=M),new E(this.data,m,P,k)},T.step=function(x){var k=this.shape[0],M=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(m+=M*(k-1),k=A(-k/P)):k=A(k/P),M*=P),new E(this.data,k,M,m)},T.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,M=this.stride;return new E(this.data,k[x],M[x],this.offset)},T.pick=function(x){var k=[],M=[],m=this.offset;typeof x=="number"&&x>=0?m=m+this.stride[0]*x|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=v[k.length+1];return P(this.data,k,M,m)},function(x,k,M,m){return new E(x,k[0],M[0],m)}},2:function(b,v,C){function E(L,x,k,M,m,P){this.data=L,this.shape=[x,k],this.stride=[M,m],this.offset=P|0}var T=E.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,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=M},T.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]},T.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},T.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)},T.lo=function(x,k){var M=this.offset,m=0,P=this.shape[0],A=this.shape[1],F=this.stride[0],B=this.stride[1];return typeof x=="number"&&x>=0&&(m=x|0,M+=F*m,P-=m),typeof k=="number"&&k>=0&&(m=k|0,M+=B*m,A-=m),new E(this.data,P,A,F,B,M)},T.step=function(x,k){var M=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],F=this.offset,B=0,U=Math.ceil;return typeof x=="number"&&(B=x|0,B<0?(F+=P*(M-1),M=U(-M/B)):M=U(M/B),P*=B),typeof k=="number"&&(B=k|0,B<0?(F+=A*(m-1),m=U(-m/B)):m=U(m/B),A*=B),new E(this.data,M,m,P,A,F)},T.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var M=this.shape,m=this.stride;return new E(this.data,M[x],M[k],m[x],m[k],this.offset)},T.pick=function(x,k){var M=[],m=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),m.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),m.push(this.stride[1]));var A=v[M.length+1];return A(this.data,M,m,P)},function(x,k,M,m){return new E(x,k[0],k[1],M[0],M[1],m)}},3:function(b,v,C){function E(L,x,k,M,m,P,A,F){this.data=L,this.shape=[x,k,M],this.stride=[m,P,A],this.offset=F|0}var T=E.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]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return x>k?k>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),T.set=function(x,k,M,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M,m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]=m},T.get=function(x,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]},T.index=function(x,k,M){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M},T.hi=function(x,k,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 M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,k,M){var m=this.offset,P=0,A=this.shape[0],F=this.shape[1],B=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,A-=P),typeof k=="number"&&k>=0&&(P=k|0,m+=G*P,F-=P),typeof M=="number"&&M>=0&&(P=M|0,m+=j*P,B-=P),new E(this.data,A,F,B,U,G,j,m)},T.step=function(x,k,M){var m=this.shape[0],P=this.shape[1],A=this.shape[2],F=this.stride[0],B=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+=F*(m-1),m=W(-m/j)):m=W(m/j),F*=j),typeof k=="number"&&(j=k|0,j<0?(G+=B*(P-1),P=W(-P/j)):P=W(P/j),B*=j),typeof M=="number"&&(j=M|0,j<0?(G+=U*(A-1),A=W(-A/j)):A=W(A/j),U*=j),new E(this.data,m,P,A,F,B,U,G)},T.transpose=function(x,k,M){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var m=this.shape,P=this.stride;return new E(this.data,m[x],m[k],m[M],P[x],P[k],P[M],this.offset)},T.pick=function(x,k,M){var m=[],P=[],A=this.offset;typeof x=="number"&&x>=0?A=A+this.stride[0]*x|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?A=A+this.stride[1]*k|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(m.push(this.shape[2]),P.push(this.stride[2]));var F=v[m.length+1];return F(this.data,m,P,A)},function(x,k,M,m){return new E(x,k[0],k[1],k[2],M[0],M[1],M[2],m)}},4:function(b,v,C){function E(L,x,k,M,m,P,A,F,B,U){this.data=L,this.shape=[x,k,M,m],this.stride=[P,A,F,B],this.offset=U|0}var T=E.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:C}),T.set=function(x,k,M,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m]=P},T.get=function(x,k,M,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m]},T.index=function(x,k,M,m){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*m},T.hi=function(x,k,M,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 M!="number"||M<0?this.shape[2]:M|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)},T.lo=function(x,k,M,m){var P=this.offset,A=0,F=this.shape[0],B=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&&(A=x|0,P+=j*A,F-=A),typeof k=="number"&&k>=0&&(A=k|0,P+=W*A,B-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=H*A,G-=A),new E(this.data,F,B,U,G,j,W,N,H,P)},T.step=function(x,k,M,m){var P=this.shape[0],A=this.shape[1],F=this.shape[2],B=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*(A-1),A=re(-A/H)):A=re(A/H),G*=H),typeof M=="number"&&(H=M|0,H<0?(N+=j*(F-1),F=re(-F/H)):F=re(F/H),j*=H),typeof m=="number"&&(H=m|0,H<0?(N+=W*(B-1),B=re(-B/H)):B=re(B/H),W*=H),new E(this.data,P,A,F,B,U,G,j,W,N)},T.transpose=function(x,k,M,m){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[x],P[k],P[M],P[m],A[x],A[k],A[M],A[m],this.offset)},T.pick=function(x,k,M,m){var P=[],A=[],F=this.offset;typeof x=="number"&&x>=0?F=F+this.stride[0]*x|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof k=="number"&&k>=0?F=F+this.stride[1]*k|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?F=F+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?F=F+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var B=v[P.length+1];return B(this.data,P,A,F)},function(x,k,M,m){return new E(x,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],m)}},5:function(v,C,E){function T(x,k,M,m,P,A,F,B,U,G,j,W){this.data=x,this.shape=[k,M,m,P,A],this.stride=[F,B,U,G,j],this.offset=W|0}var L=T.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,M,m,P,A,F){return v==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,F):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=F},L.get=function(k,M,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(k,M,m,P,A){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(k,M,m,P,A){return new T(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,m,P,A){var F=this.offset,B=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],ge=this.stride[3],ze=this.stride[4];return typeof k=="number"&&k>=0&&(B=k|0,F+=H*B,U-=B),typeof M=="number"&&M>=0&&(B=M|0,F+=re*B,G-=B),typeof m=="number"&&m>=0&&(B=m|0,F+=ae*B,j-=B),typeof P=="number"&&P>=0&&(B=P|0,F+=ge*B,W-=B),typeof A=="number"&&A>=0&&(B=A|0,F+=ze*B,N-=B),new T(this.data,U,G,j,W,N,H,re,ae,ge,ze,F)},L.step=function(k,M,m,P,A){var F=this.shape[0],B=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],ge=this.offset,ze=0,Le=Math.ceil;return typeof k=="number"&&(ze=k|0,ze<0?(ge+=W*(F-1),F=Le(-F/ze)):F=Le(F/ze),W*=ze),typeof M=="number"&&(ze=M|0,ze<0?(ge+=N*(B-1),B=Le(-B/ze)):B=Le(B/ze),N*=ze),typeof m=="number"&&(ze=m|0,ze<0?(ge+=H*(U-1),U=Le(-U/ze)):U=Le(U/ze),H*=ze),typeof P=="number"&&(ze=P|0,ze<0?(ge+=re*(G-1),G=Le(-G/ze)):G=Le(G/ze),re*=ze),typeof A=="number"&&(ze=A|0,ze<0?(ge+=ae*(j-1),j=Le(-j/ze)):j=Le(j/ze),ae*=ze),new T(this.data,F,B,U,G,j,W,N,H,re,ae,ge)},L.transpose=function(k,M,m,P,A){k=k===void 0?0:k|0,M=M===void 0?1:M|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var F=this.shape,B=this.stride;return new T(this.data,F[k],F[M],F[m],F[P],F[A],B[k],B[M],B[m],B[P],B[A],this.offset)},L.pick=function(k,M,m,P,A){var F=[],B=[],U=this.offset;typeof k=="number"&&k>=0?U=U+this.stride[0]*k|0:(F.push(this.shape[0]),B.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(F.push(this.shape[1]),B.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(F.push(this.shape[2]),B.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(F.push(this.shape[3]),B.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(F.push(this.shape[4]),B.push(this.stride[4]));var G=C[F.length+1];return G(this.data,F,B,U)},function(k,M,m,P){return new T(k,M[0],M[1],M[2],M[3],M[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 _(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 T=v.length;if(C===void 0){C=new Array(T);for(var L=T-1,x=1;L>=0;--L)C[L]=x,x*=v[L]}if(E===void 0){E=0;for(var L=0;L1e-6?(C[0]=T/M,C[1]=L/M,C[2]=x/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function _(C,E,T){this.radius=s([T]),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=_.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 T=this.computedMatrix;l(T,E);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*T[2],x[1]=L[1]+M*T[6],x[2]=L[2]+M*T[10],k[0]=T[1],k[1]=T[5],k[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*x[A];T[12+m]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},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,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],M=x[5],m=x[9],P=h(k,M,m);k/=P,M/=P,m/=P;var A=x[0],F=x[4],B=x[8],U=A*k+F*M+B*m;A-=k*U,F-=M*U,B-=m*U;var G=h(A,F,B);A/=G,F/=G,B/=G;var j=x[2],W=x[6],N=x[10],H=j*k+W*M+N*m,re=j*A+W*F+N*B;j-=H*k+re*A,W-=H*M+re*F,N-=H*m+re*B;var ae=h(j,W,N);j/=ae,W/=ae,N/=ae;var ge=A*E+k*T,ze=F*E+M*T,Le=B*E+m*T;this.center.move(C,ge,ze,Le);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,T,L){this.recalcMatrix(C),E=E||0,T=T||0;var x=this.computedMatrix,k=x[0],M=x[4],m=x[8],P=x[1],A=x[5],F=x[9],B=x[2],U=x[6],G=x[10],j=E*k+T*P,W=E*M+T*A,N=E*m+T*F,H=-(U*N-G*W),re=-(G*j-B*N),ae=-(B*W-U*j),ge=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(ae,2))),ze=d(H,re,ae,ge);ze>1e-6?(H/=ze,re/=ze,ae/=ze,ge/=ze):(H=re=ae=0,ge=1);var Le=this.computedRotation,de=Le[0],te=Le[1],ke=Le[2],Ee=Le[3],Se=de*ge+Ee*H+te*ae-ke*re,Ge=te*ge+Ee*re+ke*H-de*ae,De=ke*ge+Ee*ae+de*re-te*H,xe=Ee*ge-de*H-te*re-ke*ae;if(L){H=B,re=U,ae=G;var Ne=Math.sin(L)/h(H,re,ae);H*=Ne,re*=Ne,ae*=Ne,ge=Math.cos(E),Se=Se*ge+xe*H+Ge*ae-De*re,Ge=Ge*ge+xe*re+De*H-Se*ae,De=De*ge+xe*ae+Se*re-Ge*H,xe=xe*ge-Se*H-Ge*re-De*ae}var ce=d(Se,Ge,De,xe);ce>1e-6?(Se/=ce,Ge/=ce,De/=ce,xe/=ce):(Se=Ge=De=0,xe=1),this.rotation.set(C,Se,Ge,De,xe)},b.lookAt=function(C,E,T,L){this.recalcMatrix(C),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;u(x,E,T,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 M=0,m=0;m<3;++m)M+=Math.pow(T[m]-E[m],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,T[0],T[1],T[2])},b.translate=function(C,E,T,L){this.center.move(C,E||0,T||0,L||0)},b.setMatrix=function(C,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(C,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,M=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,M-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(),T=C.center;T&&this.center.set(E,T[0],T[1],T[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],T=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var x=new _(T,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}},9994:function(i,a,o){"use strict";var s=o(9618),u=o(8277);i.exports=function(f,c){for(var h=[],d=f,p=1;Array.isArray(d);)h.push(d.length),p*=d.length,d=d[0];return h.length===0?s():(c||(c=s(new Float64Array(p),h)),u(c,f),c)}}},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);Fze.exports=n})()});var IX=Te((Syr,Bze)=>{"use strict";Bze.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 Uze=Te((Myr,Nze)=>{"use strict";var Oze=IX();Nze.exports=JIt;var qze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function JIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),Oze[e])r=Oze[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(qze[h]!==void 0)return qze[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 Gze=Te((Eyr,Vze)=>{"use strict";var $It=Uze();Vze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=$It(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=QIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function QIt(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=Te((kyr,Hze)=>{Hze.exports=eRt;function eRt(e,t,r){return tr?r:e:et?t:e}});var Q6=Te((Cyr,Wze)=>{Wze.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 ox=Te((Lyr,jze)=>{"use strict";var tRt=Gze(),eF=ik(),rRt=Q6();jze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=rRt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=tRt(t),t[0]/=255,t[1]/=255,t[2]/=255),iRt(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]=eF(Math.floor(t[0]*255),0,255),i[1]=eF(Math.floor(t[1]*255),0,255),i[2]=eF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:eF(Math.floor(t[3]*255),0,255)),i)};function iRt(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=Te((Pyr,Xze)=>{"use strict";var nRt=ox();function aRt(e){return e?nRt(e):[0,0,0,1]}Xze.exports=aRt});var a1=Te((zyr,eIe)=>{"use strict";var $ze=ku(),oRt=hd(),tF=ox(),rF=_c(),sRt=Oh().defaultLine,Zze=mp().isArrayOrTypedArray,RX=tF(sRt),Qze=1;function Yze(e,t){var r=e;return r[3]*=t,r}function Kze(e){if($ze(e))return RX;var t=tF(e);return t.length?t:RX}function Jze(e){return $ze(e)?e:Qze}function lRt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Zze(n),a=Zze(t),o=rF.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=rF.makeColorScaleFuncFromTrace(e):u=Kze,i?l=function(p,_){return p[_]===void 0?RX:tF(u(p[_]))}:l=Kze,a?f=function(p,_){return p[_]===void 0?Qze:Jze(p[_])}:f=Jze,i||a)for(var d=0;d{"use strict";tIe.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 iF=Te((Ryr,rIe)=>{"use strict";rIe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var nIe=Te((Dyr,iIe)=>{"use strict";var fRt=$l();function FX(e,t,r,n){if(!t||!t.visible)return null;for(var i=fRt.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 cRt(e){for(var t=0;t{"use strict";var dRt=Od().gl_line3d,aIe=Od().gl_scatter3d,pRt=Od().gl_error3d,vRt=Od().gl_mesh3d,mRt=Od().delaunay_triangulate,o1=ei(),fIe=n1(),nF=a1().formatColor,yRt=B3(),BX=DX(),gRt=iF(),_Rt=wu(),xRt=iv().appendArrayPointValue,bRt=nIe();function cIe(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 qX=cIe.prototype;qX.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 wRt(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 sIe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function TRt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=wRt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=vRt(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)};qX.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 kRt(e,t){var r=new cIe(e,t.uid);return r.update(t),r}hIe.exports=kRt});var HX=Te((Byr,yIe)=>{"use strict";var s1=Zc(),CRt=gc(),GX=nc(),NX=jc().axisHoverFormat,{hovertemplateAttrs:LRt,texttemplateAttrs:PRt,templatefallbackAttrs:pIe}=Ff(),vIe=Gf(),zRt=DX(),IRt=iF(),$m=Su().extendFlat,RRt=Sc().overrideAll,mIe=t_(),DRt=s1.line,J2=s1.marker,FRt=J2.line,BRt=$m({width:DRt.width,dash:{valType:"enumerated",values:mIe(zRt),dflt:"solid"}},GX("line"));function UX(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 VX=yIe.exports=RRt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$m({},s1.text,{}),texttemplate:PRt(),texttemplatefallback:pIe({editType:"calc"}),hovertext:$m({},s1.hovertext,{}),hovertemplate:LRt(),hovertemplatefallback:pIe(),xhoverformat:NX("x"),yhoverformat:NX("y"),zhoverformat:NX("z"),mode:$m({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:UX("x"),y:UX("y"),z:UX("z")},connectgaps:s1.connectgaps,line:BRt,marker:$m({symbol:{valType:"enumerated",values:mIe(IRt),dflt:"circle",arrayOk:!0},size:$m({},J2.size,{dflt:8}),sizeref:J2.sizeref,sizemin:J2.sizemin,sizemode:J2.sizemode,opacity:$m({},J2.opacity,{arrayOk:!1}),colorbar:J2.colorbar,line:$m({width:$m({},FRt.width,{arrayOk:!1})},GX("marker.line"))},GX("marker")),textposition:$m({},s1.textposition,{dflt:"top center"}),textfont:CRt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:vIe.opacity,hoverinfo:$m({},vIe.hoverinfo)},"calc","nested");VX.x.editType=VX.y.editType=VX.z.editType="calc+clearAxisTypes"});var xIe=Te((Oyr,_Ie)=>{"use strict";var gIe=$l(),ORt=ei(),WX=lc(),qRt=$v(),NRt=R0(),URt=D0(),VRt=HX();_Ie.exports=function(t,r,n,i){function a(d,p){return ORt.coerce(t,r,VRt,d,p)}var o=GRt(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"),WX.hasMarkers(r)&&qRt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),WX.hasLines(r)&&(a("connectgaps"),NRt(t,r,n,i,a)),WX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),URt(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=gIe.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 GRt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=gIe.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 wIe=Te((qyr,bIe)=>{"use strict";var HRt=Iy(),WRt=F0();bIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return HRt(n,r),WRt(t,r),n}});var TIe=Te((Nyr,AIe)=>{AIe.exports=jRt;function jRt(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 XRt=TIe();SIe.exports=function(t){return XRt("webgl",t)}});var jX=Te((Vyr,kIe)=>{"use strict";var EIe=jl(),ZRt=function(){};kIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=ZRt);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=EIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=EIe.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 PIe=Te((Gyr,LIe)=>{"use strict";var $2=n1(),YRt=ei(),KRt=["xaxis","yaxis","zaxis"];function CIe(){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 JRt=CIe.prototype;JRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[KRt[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?YRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=$2(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]=$2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=$2(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]=$2(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]=$2(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]=$2(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]=$2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function $Rt(e,t){var r=new CIe;return r.merge(e,t),r}LIe.exports=$Rt});var RIe=Te((Hyr,IIe)=>{"use strict";var QRt=n1(),eDt=["xaxis","yaxis","zaxis"];function zIe(){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 tDt=zIe.prototype;tDt.merge=function(e){for(var t=0;t<3;++t){var r=e[eDt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=QRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function rDt(e){var t=new zIe;return t.merge(e),t}IIe.exports=rDt});var BIe=Te((Wyr,FIe)=>{"use strict";FIe.exports=sDt;var DIe=wu(),iDt=ei(),nDt=["xaxis","yaxis","zaxis"],aDt=[0,0,0];function oDt(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){aDt[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=oDt(i)}});var HIe=Te((jyr,GIe)=>{"use strict";var NIe=Od().gl_plot3d,lDt=NIe.createCamera,OIe=NIe.createScene,uDt=MIe(),fDt=VP(),sF=$l(),fv=ei(),oF=fv.preserveDrawingBuffer(),lF=wu(),Qm=Xc(),cDt=n1(),hDt=jX(),dDt=iV(),pDt=PIe(),vDt=RIe(),mDt=BIe(),yDt=Mm().applyAutorangeOptions,nk,aF,UIe=!1;function VIe(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=vDt(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=sF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Ep=VIe.prototype;Ep.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oF,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(!aF&&(nk=document.createElement("canvas"),aF=uDt({canvas:nk,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aF))throw new Error("error creating static canvas/context for image server");t.gl=aF,t.canvas=nk}return t};var qIe=!0;Ep.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=OIe(t)}catch(n){if(e.staticMode||!qIe||oF)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{oF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=OIe(t)}catch(i){oF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return qIe=!1,r};Ep.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=lDt(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 hDt(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(){UIe=!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)}},fDt?{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),mDt(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=lF.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:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Qm.appendArrayPointValue(k,_,b),r._module.eventData&&(k=_._module.eventData(k,c,_,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var m=[];Qm.loneHover({trace:_,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(_,b,"bgcolor")||f.color,borderColor:Qm.castHoverOption(_,b,"bordercolor"),fontFamily:Qm.castHoverOption(_,b,"font.family"),fontSize:Qm.castHoverOption(_,b,"font.size"),fontColor:Qm.castHoverOption(_,b,"font.color"),nameLength:Qm.castHoverOption(_,b,"namelength"),textAlign:Qm.castHoverOption(_,b,"align"),hovertemplate:fv.castOption(_,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||UIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}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 gDt(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;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var A=_[1][o]-_[0][o];_[0][o]-=A/32,_[1][o]+=A/32}if(C=[_[0][o],_[1][o]],C=yDt(C,u),_[0][o]=C[0],_[1][o]=C[1],u.isReversed()){var F=_[0][o];_[0][o]=_[1][o],_[1][o]=F}}else C=u.range,_[0][o]=u.r2l(C[0]),_[1][o]=u.r2l(C[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],u.range=[_[0][o],_[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var B,U=f.aspectmode;if(U==="cube")B=[1,1,1];else if(U==="manual"){var G=f.aspectratio;B=[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?B=j:B=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=B[0],f.aspectratio.y=c.aspectratio.y=B[1],f.aspectratio.z=c.aspectratio.z=B[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 xDt(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,xDt(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),sF.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;sF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,fv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function wDt(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),wDt(a,n,i),ADt(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]];lF.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"},lF.setConvert(e._mockAxis,r)};GIe.exports=VIe});var jIe=Te((Xyr,WIe)=>{"use strict";WIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var ZX=Te((Zyr,XIe)=>{"use strict";var TDt=jl(),ff=Dd(),XX=Su().extendFlat,SDt=Sc().overrideAll;XIe.exports=SDt({visible:ff.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:TDt.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:XX({},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:XX({},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:XX({},ff.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:ff.gridwidth,zeroline:ff.zeroline,zerolinecolor:ff.zerolinecolor,zerolinewidth:ff.zerolinewidth},"plot","from-root")});var $X=Te((Yyr,ZIe)=>{"use strict";var YX=ZX(),MDt=zc().attributes,KX=Su().extendFlat,EDt=ei().counterRegex;function JX(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"}}ZIe.exports={_arrayAttrRegexps:[EDt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:KX(JX(0,0,1),{}),center:KX(JX(0,0,0),{}),eye:KX(JX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:MDt({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:YX,yaxis:YX,zaxis:YX,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 $Ie=Te((Kyr,JIe)=>{"use strict";var kDt=hd().mix,YIe=ei(),CDt=Lf(),LDt=ZX(),PDt=UU(),zDt=hE(),KIe=["xaxis","yaxis","zaxis"],IDt=100*136/187;JIe.exports=function(t,r,n){var i,a;function o(l,f){return YIe.coerce(i,a,LDt,l,f)}for(var s=0;s{"use strict";var RDt=ei(),DDt=jl(),FDt=$l(),BDt=B_(),ODt=$Ie(),QIe=$X(),qDt=Rd().getSubplotData,eRe="gl3d";tRe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=RDt.validate(t[o],QIe[o]);if(s)return t[o]}}BDt(t,r,n,{type:eRe,attributes:QIe,handleDefaults:NDt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function NDt(e,t,r,n){for(var i=r("bgcolor"),a=DDt.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 sx=Te(cv=>{"use strict";var UDt=Sc().overrideAll,VDt=j1(),GDt=HIe(),HDt=Rd().getSubplotData,WDt=ei(),jDt=jv(),XT="gl3d",QX="scene";cv.name=XT;cv.attr=QX;cv.idRoot=QX;cv.idRegex=cv.attrRegex=WDt.counterRegex("scene");cv.attributes=jIe();cv.layoutAttributes=$X();cv.baseLayoutAttrOverrides=UDt({hoverlabel:VDt.hoverlabel},"plot","nested");cv.supplyLayoutDefaults=rRe();cv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[XT],a=0;a{"use strict";iRe.exports={plot:dIe(),attributes:HX(),markerSymbols:iF(),supplyDefaults:xIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:wIe(),moduleType:"trace",name:"scatter3d",basePlotModule:sx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var oRe=Te((egr,aRe)=>{"use strict";aRe.exports=nRe()});var ok=Te((tgr,uRe)=>{"use strict";var sRe=jl(),XDt=nc(),eZ=jc().axisHoverFormat,{hovertemplateAttrs:ZDt,templatefallbackAttrs:YDt}=Ff(),lRe=Gf(),tZ=Su().extendFlat,KDt=Sc().overrideAll;function rZ(e){return{valType:"boolean",dflt:!1}}function iZ(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:rZ("x"),y:rZ("y"),z:rZ("z")},color:{valType:"color",dflt:sRe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:sRe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var nZ=uRe.exports=KDt(tZ({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:ZDt(),hovertemplatefallback:YDt(),xhoverformat:eZ("x"),yhoverformat:eZ("y"),zhoverformat:eZ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},XDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:iZ("x"),y:iZ("y"),z:iZ("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:tZ({},lRe.hoverinfo),showlegend:tZ({},lRe.showlegend,{dflt:!1})}),"calc","nested");nZ.x.editType=nZ.y.editType=nZ.z.editType="calc+clearAxisTypes"});var oZ=Te((rgr,hRe)=>{"use strict";var JDt=$l(),fRe=ei(),$Dt=nd(),QDt=ok(),aZ=.1;function e6t(e,t){for(var r=[],n=32,i=0;i{"use strict";var dRe=gp();pRe.exports=function(t,r){r.surfacecolor?dRe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):dRe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var bRe=Te((ngr,xRe)=>{"use strict";var i6t=Od().gl_surface3d,ZT=Od().ndarray,n6t=Od().ndarray_linear_interpolate.d2,a6t=fR(),o6t=cR(),sk=ei().isArrayOrTypedArray,s6t=a1().parseColorScale,mRe=n1(),l6t=_c().extractOpts;function gRe(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=gRe.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 u6t(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 YT=[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 f6t(e,t){if(e0){r=YT[n];break}return r}function h6t(e,t){if(!(e<1||t<1)){for(var r=sZ(e),n=sZ(t),i=1,a=0;auF;)n--,n/=c6t(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 v6t(e,t,r){return m6t(e,t,p6t,r),e}function m6t(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";wRe.exports={attributes:ok(),supplyDefaults:oZ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:vRe(),plot:bRe(),moduleType:"trace",name:"surface",basePlotModule:sx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var SRe=Te((ogr,TRe)=>{"use strict";TRe.exports=ARe()});var KT=Te((sgr,ERe)=>{"use strict";var _6t=nc(),lZ=jc().axisHoverFormat,{hovertemplateAttrs:x6t,templatefallbackAttrs:b6t}=Ff(),lx=ok(),MRe=Gf(),ux=Su().extendFlat;ERe.exports=ux({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:x6t({editType:"calc"}),hovertemplatefallback:b6t({editType:"calc"}),xhoverformat:lZ("x"),yhoverformat:lZ("y"),zhoverformat:lZ("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"}},_6t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ux({},lx.contours.x.show,{}),color:lx.contours.x.color,width:lx.contours.x.width,editType:"calc"},lightposition:{x:ux({},lx.lightposition.x,{dflt:1e5}),y:ux({},lx.lightposition.y,{dflt:1e5}),z:ux({},lx.lightposition.z,{dflt:0}),editType:"calc"},lighting:ux({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"},lx.lighting),hoverinfo:ux({},MRe.hoverinfo,{editType:"calc"}),showlegend:ux({},MRe.showlegend,{dflt:!1})})});var cF=Te((lgr,CRe)=>{"use strict";var w6t=nc(),fF=jc().axisHoverFormat,{hovertemplateAttrs:A6t,templatefallbackAttrs:T6t}=Ff(),lk=KT(),kRe=Gf(),uZ=Su().extendFlat,S6t=Sc().overrideAll;function fZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function cZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var JT=CRe.exports=S6t(uZ({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:fZ("x"),y:fZ("y"),z:fZ("z")},caps:{x:cZ("x"),y:cZ("y"),z:cZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:A6t(),hovertemplatefallback:T6t(),xhoverformat:fF("x"),yhoverformat:fF("y"),zhoverformat:fF("z"),valuehoverformat:fF("value",1),showlegend:uZ({},kRe.showlegend,{dflt:!1})},w6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lk.opacity,lightposition:lk.lightposition,lighting:lk.lighting,flatshading:lk.flatshading,contour:lk.contour,hoverinfo:uZ({},kRe.hoverinfo)}),"calc","nested");JT.flatshading.dflt=!0;JT.lighting.facenormalsepsilon.dflt=0;JT.x.editType=JT.y.editType=JT.z.editType=JT.value.editType="calc+clearAxisTypes"});var hZ=Te((ugr,PRe)=>{"use strict";var M6t=ei(),E6t=$l(),k6t=cF(),C6t=nd();function L6t(e,t,r,n){function i(a,o){return M6t.coerce(e,t,k6t,a,o)}LRe(e,t,r,n,i)}function LRe(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=E6t.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,v=i(b+".show");v&&i(b+".fill");var C="slices."+_,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(_){i(_)}),C6t(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}PRe.exports={supplyDefaults:L6t,supplyIsoDefaults:LRe}});var hF=Te((fgr,IRe)=>{"use strict";var pZ=ei(),P6t=gp();function z6t(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=Jy(t.u,t._len),t._v=Jy(t.v,t._len),t._w=Jy(t.w,t._len),t._x=Jy(t.x,t._len),t._y=Jy(t.y,t._len),t._z=Jy(t.z,t._len);var r=zRe(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=Jy(t.starts.x||[]),a=Jy(t.starts.y||[]),o=Jy(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",(T>L?"-":"+")+"y"),p=p.replace("z",(x>k?"-":"+")+"z");var A=function(){i=0,M=[],m=[],P=[]};(!i||i{"use strict";var I6t=gp(),R6t=hF().processGrid,dF=hF().filter;RRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dF(r.x,r._len),r._y=dF(r.y,r._len),r._z=dF(r.z,r._len),r._value=dF(r.value,r._len);var n=R6t(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";DRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var D6t=Od().gl_mesh3d,F6t=a1().parseColorScale,B6t=ei().isArrayOrTypedArray,O6t=n1(),q6t=_c().extractOpts,FRe=$T(),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(At,vt){return At===null?vt:At}function ge(At,vt,Je){A();var He=[vt],nt=[Je];if(W>=1)He=[vt],nt=[Je];else if(W>0){var tt=H(vt,Je);He=tt.xyzv,nt=tt.abc}for(var It=0;It-1?Je[cr]:P(_r,yr,Ut);be>-1?Yt[cr]=be:Yt[cr]=B(_r,yr,Ut,ae(At,Re))}U(Yt[0],Yt[1],Yt[2])}}function ze(At,vt,Je){var He=function(nt,tt,It){ge(At,[vt[nt],vt[tt],vt[It]],[Je[nt],Je[tt],Je[It]])};He(0,1,2),He(2,3,0)}function Le(At,vt,Je){var He=function(nt,tt,It){ge(At,[vt[nt],vt[tt],vt[It]],[Je[nt],Je[tt],Je[It]])};He(0,1,2),He(3,0,1),He(2,3,0),He(1,2,3)}function de(At,vt,Je,He){var nt=At[3];ntHe&&(nt=He);for(var tt=(At[3]-nt)/(At[3]-vt[3]+1e-9),It=[],Yt=0;Yt<4;Yt++)It[Yt]=(1-tt)*At[Yt]+tt*vt[Yt];return It}function te(At,vt,Je){return At>=vt&&At<=Je}function ke(At){var vt=.001*(L-T);return At>=T-vt&&At<=L+vt}function Ee(At){for(var vt=[],Je=0;Je<4;Je++){var He=At[Je];vt.push([e._x[He],e._y[He],e._z[He],e._value[He]])}return vt}var Se=3;function Ge(At,vt,Je,He,nt,tt){tt||(tt=1),Je=[-1,-1,-1];var It=!1,Yt=[te(vt[0][3],He,nt),te(vt[1][3],He,nt),te(vt[2][3],He,nt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var cr=function(yr,Ut,Re){return ke(Ut[0][3])&&ke(Ut[1][3])&&ke(Ut[2][3])?(ge(yr,Ut,Re),!0):ttYt?[C,tt]:[tt,E];wt(vt,cr[0],cr[1])}}var _r=[[Math.min(T,E),Math.max(T,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(yr){for(var Ut=[],Re=0;Re<_r.length;Re++){var be=0,Oe=_r[Re][0],Ie=_r[Re][1],Fe=e.slices[yr];if(Fe.show&&Fe.fill){N(Fe.fill);var ft=[],ye=[],fe=[];if(Fe.locations.length)for(var pe=0;pe0&&(ye.push(dt.id),yr==="x"?fe.push([dt.distRatio,0,0]):yr==="y"?fe.push([0,dt.distRatio,0]):fe.push([0,0,dt.distRatio]))}else yr==="x"?ft=Et(1,d-1):yr==="y"?ft=Et(1,p-1):ft=Et(1,_-1);ye.length>0&&(yr==="x"?Ut[be]=Mt(At,ye,Oe,Ie,fe,Ut[be]):yr==="y"?Ut[be]=Bt(At,ye,Oe,Ie,fe,Ut[be]):Ut[be]=Zt(At,ye,Oe,Ie,fe,Ut[be]),be++),ft.length>0&&(yr==="x"?Ut[be]=gt(At,ft,Oe,Ie,Ut[be]):yr==="y"?Ut[be]=qt(At,ft,Oe,Ie,Ut[be]):Ut[be]=at(At,ft,Oe,Ie,Ut[be]),be++)}var Pt=e.caps[yr];Pt.show&&Pt.fill&&(N(Pt.fill),yr==="x"?Ut[be]=gt(At,[0,d-1],Oe,Ie,Ut[be]):yr==="y"?Ut[be]=qt(At,[0,p-1],Oe,Ie,Ut[be]):Ut[be]=at(At,[0,_-1],Oe,Ie,Ut[be]),be++)}}),s===0&&F(),e._meshX=x,e._meshY=k,e._meshZ=M,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return ot(),e}function U6t(e,t){var r=e.glplot.gl,n=D6t({gl:r}),i=new BRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}qRe.exports={findNearestOnAxis:uk,generateIsoMeshes:ORe,createIsosurfaceTrace:U6t}});var URe=Te((pgr,NRe)=>{"use strict";NRe.exports={attributes:cF(),supplyDefaults:hZ().supplyDefaults,calc:vZ(),colorbar:{min:"cmin",max:"cmax"},plot:pF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var GRe=Te((vgr,VRe)=>{"use strict";VRe.exports=URe()});var gZ=Te((mgr,WRe)=>{"use strict";var V6t=nc(),Ch=cF(),G6t=ok(),HRe=Gf(),yZ=Su().extendFlat,H6t=Sc().overrideAll,vF=WRe.exports=H6t(yZ({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},V6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ch.colorbar,opacity:Ch.opacity,opacityscale:G6t.opacityscale,lightposition:Ch.lightposition,lighting:Ch.lighting,flatshading:Ch.flatshading,contour:Ch.contour,hoverinfo:yZ({},HRe.hoverinfo),showlegend:yZ({},HRe.showlegend,{dflt:!1})}),"calc","nested");vF.x.editType=vF.y.editType=vF.z.editType=vF.value.editType="calc+clearAxisTypes"});var XRe=Te((ygr,jRe)=>{"use strict";var W6t=ei(),j6t=gZ(),X6t=hZ().supplyIsoDefaults,Z6t=oZ().opacityscaleDefaults;jRe.exports=function(t,r,n,i){function a(o,s){return W6t.coerce(t,r,j6t,o,s)}X6t(t,r,n,i,a),Z6t(t,r,i,a)}});var JRe=Te((ggr,KRe)=>{"use strict";var Y6t=Od().gl_mesh3d,K6t=a1().parseColorScale,J6t=ei().isArrayOrTypedArray,$6t=n1(),Q6t=_c().extractOpts,ZRe=$T(),_Z=pF().findNearestOnAxis,eFt=pF().generateIsoMeshes;function YRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var xZ=YRe.prototype;xZ.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=_Z(r,this.data._Xs).id,u=_Z(n,this.data._Ys).id,l=_Z(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 J6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};xZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=eFt(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=ZRe(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=ZRe(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:$6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Q6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=K6t(e),this.mesh.update(o)};xZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function tFt(e,t){var r=e.glplot.gl,n=Y6t({gl:r}),i=new YRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}KRe.exports=tFt});var QRe=Te((_gr,$Re)=>{"use strict";$Re.exports={attributes:gZ(),supplyDefaults:XRe(),calc:vZ(),colorbar:{min:"cmin",max:"cmax"},plot:JRe(),moduleType:"trace",name:"volume",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var tDe=Te((xgr,eDe)=>{"use strict";eDe.exports=QRe()});var nDe=Te((bgr,iDe)=>{"use strict";var rFt=$l(),rDe=ei(),iFt=nd(),nFt=KT();iDe.exports=function(t,r,n,i){function a(f,c){return rDe.coerce(t,r,nFt,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&rDe.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=rFt.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"),iFt(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 oDe=Te((wgr,aDe)=>{"use strict";var aFt=gp();aDe.exports=function(t,r){r.intensity&&aFt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var cDe=Te((Agr,fDe)=>{"use strict";var oFt=Od().gl_mesh3d,sFt=Od().delaunay_triangulate,lFt=Od().alpha_shape,uFt=Od().convex_hull,fFt=a1().parseColorScale,cFt=ei().isArrayOrTypedArray,TZ=n1(),hFt=_c().extractOpts,sDe=$T();function uDe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var SZ=uDe.prototype;SZ.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 cFt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function lDe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}SZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=sDe(bZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),bZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),bZ(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||!AZ(e.i,n)||!AZ(e.j,n)||!AZ(e.k,n))return;a=sDe(wZ(e.i),wZ(e.j),wZ(e.k))}else e.alphahull===0?a=uFt(i):e.alphahull>0?a=lFt(e.alphahull,i):a=dFt(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:TZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=hFt(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=fFt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=lDe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=lDe(e.facecolor)):(this.color=e.color,o.meshColor=TZ(e.color));this.mesh.update(o)};SZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function pFt(e,t){var r=e.glplot.gl,n=oFt({gl:r}),i=new uDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}fDe.exports=pFt});var dDe=Te((Tgr,hDe)=>{"use strict";hDe.exports={attributes:KT(),supplyDefaults:nDe(),calc:oDe(),colorbar:{min:"cmin",max:"cmax"},plot:cDe(),moduleType:"trace",name:"mesh3d",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var vDe=Te((Sgr,pDe)=>{"use strict";pDe.exports=dDe()});var EZ=Te((Mgr,yDe)=>{"use strict";var vFt=nc(),QT=jc().axisHoverFormat,{hovertemplateAttrs:mFt,templatefallbackAttrs:yFt}=Ff(),gFt=KT(),mDe=Gf(),MZ=Su().extendFlat,mF={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:mFt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:yFt({editType:"calc"}),uhoverformat:QT("u",1),vhoverformat:QT("v",1),whoverformat:QT("w",1),xhoverformat:QT("x"),yhoverformat:QT("y"),zhoverformat:QT("z"),showlegend:MZ({},mDe.showlegend,{dflt:!1})};MZ(mF,vFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var _Ft=["opacity","lightposition","lighting"];_Ft.forEach(function(e){mF[e]=gFt[e]});mF.hoverinfo=MZ({},mDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});yDe.exports=mF});var _De=Te((Egr,gDe)=>{"use strict";var xFt=ei(),bFt=nd(),wFt=EZ();gDe.exports=function(t,r,n,i){function a(d,p){return xFt.coerce(t,r,wFt,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 bDe=Te((kgr,xDe)=>{"use strict";var AFt=gp();xDe.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 TFt=Od().gl_cone3d,SFt=Od().gl_cone3d.createConeMesh,MFt=ei().simpleMap,EFt=a1().parseColorScale,kFt=_c().extractOpts,CFt=ei().isArrayOrTypedArray,wDe=$T();function ADe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var kZ=ADe.prototype;kZ.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 CFt(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var LFt={xaxis:0,yaxis:1,zaxis:2},PFt={tip:1,tail:0,cm:.25,center:.5},zFt={tip:1,tail:1,cm:.75,center:.5};function TDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[LFt[c]];return MFt(f,function(p){return h.d2l(p)*d})}i.vectors=wDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=wDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=kFt(t);i.colormap=EFt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=PFt[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=TFt(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=zFt[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}kZ.update=function(e){this.data=e;var t=TDe(this.scene,e);this.mesh.update(t)};kZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function IFt(e,t){var r=e.glplot.gl,n=TDe(e,t),i=SFt(r,n),a=new ADe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}SDe.exports=IFt});var kDe=Te((Lgr,EDe)=>{"use strict";EDe.exports={moduleType:"trace",name:"cone",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:EZ(),supplyDefaults:_De(),colorbar:{min:"cmin",max:"cmax"},calc:bDe(),plot:MDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var LDe=Te((Pgr,CDe)=>{"use strict";CDe.exports=kDe()});var LZ=Te((zgr,zDe)=>{"use strict";var RFt=nc(),eS=jc().axisHoverFormat,{hovertemplateAttrs:DFt,templatefallbackAttrs:FFt}=Ff(),BFt=KT(),PDe=Gf(),CZ=Su().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"},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:DFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:FFt({editType:"calc"}),uhoverformat:eS("u",1),vhoverformat:eS("v",1),whoverformat:eS("w",1),xhoverformat:eS("x"),yhoverformat:eS("y"),zhoverformat:eS("z"),showlegend:CZ({},PDe.showlegend,{dflt:!1})};CZ(yF,RFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var OFt=["opacity","lightposition","lighting"];OFt.forEach(function(e){yF[e]=BFt[e]});yF.hoverinfo=CZ({},PDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});zDe.exports=yF});var RDe=Te((Igr,IDe)=>{"use strict";var qFt=ei(),NFt=nd(),UFt=LZ();IDe.exports=function(t,r,n,i){function a(h,d){return qFt.coerce(t,r,UFt,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"),NFt(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 VDe=Te((Rgr,UDe)=>{"use strict";var BDe=Od().gl_streamtube3d,VFt=BDe.createTubeMesh,GFt=ei(),HFt=a1().parseColorScale,WFt=_c().extractOpts,DDe=$T(),ODe={xaxis:0,yaxis:1,zaxis:2};function qDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var zZ=qDe.prototype;zZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[ODe[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 FDe(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 PZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function NDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(F,B){var U=r[B],G=n[ODe[B]];return GFt.simpleMap(F,function(j){return U.d2l(j)*G})}if(a.vectors=DDe(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=DDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=FDe(s),d=FDe(l),p=new Array(h.length*d.length),_=0,b=0;b{"use strict";GDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:LZ(),supplyDefaults:RDe(),colorbar:{min:"cmin",max:"cmax"},calc:hF().calc,plot:VDe(),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 jDe=Te((Fgr,WDe)=>{"use strict";WDe.exports=HDe()});var ew=Te((Ogr,JDe)=>{"use strict";var{hovertemplateAttrs:XFt,texttemplateAttrs:ZFt,templatefallbackAttrs:XDe}=Ff(),YFt=Pm(),$y=Zc(),KFt=Gf(),ZDe=nc(),JFt=Id().dash,Q2=Su().extendFlat,$Ft=Sc().overrideAll,rm=$y.marker,YDe=$y.line,KDe=rm.line,Bgr=["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(" ");JDe.exports=$Ft({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:Q2({},$y.mode,{dflt:"markers"}),text:Q2({},$y.text,{}),texttemplate:ZFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:XDe({editType:"plot"}),hovertext:Q2({},$y.hovertext,{}),textfont:$y.textfont,textposition:$y.textposition,line:{color:YDe.color,width:YDe.width,dash:JFt},connectgaps:$y.connectgaps,marker:Q2({symbol:rm.symbol,opacity:rm.opacity,angle:rm.angle,angleref:Q2({},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:Q2({width:KDe.width,dash:KDe.dash},ZDe("marker.line")),gradient:rm.gradient},ZDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:YFt(),selected:$y.selected,unselected:$y.unselected,hoverinfo:Q2({},KFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:XFt(),hovertemplatefallback:XDe()},"calc","nested")});var QDe=Te((qgr,$De)=>{"use strict";var gF=ei(),IZ=lc(),QFt=$v(),e8t=R0(),t8t=D0(),r8t=Dm(),i8t=ew(),n8t=["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(" ");$De.exports=function(t,r,n,i){function a(d,p){return gF.coerce(t,r,i8t,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||gF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&gF.warn(n8t),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"),IZ.hasMarkers(r)&&QFt(t,r,n,i,a,{gradient:!0}),IZ.hasLines(r)&&(e8t(t,r,n,i,a),a("connectgaps")),IZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),t8t(t,r,i,a)),a("fill"),r.fill!=="none"&&r8t(t,r,n,a),gF.coerceSelectionMarkerOpacity(r,a)}});var r6e=Te((Ngr,t6e)=>{"use strict";var e6e=wu();t6e.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=e6e.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=e6e.tickText(o,o.c2l(s[1]),!0).text,i}});var _F=Te((Ugr,o6e)=>{"use strict";var RZ=ku(),i6e=rf().BADNUM,a8t=F0(),o8t=Iy(),s8t=B0(),l8t=ei().isArrayOrTypedArray,n6e=ei()._;function a6e(e){return e&&typeof e=="string"}o6e.exports=function(t,r){var n=l8t(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return a6e(h)||RZ(h)}:o=a6e;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 DZ=Te((xF,s6e)=>{(function(e,t){typeof xF=="object"&&typeof s6e!="undefined"?t(xF):(e=e||self,t(e.topojson=e.topojson||{}))})(xF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,x=E.scale[0],k=E.scale[1],M=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var F=2,B=P.length,U=new Array(B);for(U[0]=(T+=P[0])*x+M,U[1]=(L+=P[1])*k+m;FM&&(M=F[0]),F[1]m&&(m=F[1])}function A(F){switch(F.type){case"GeometryCollection":F.geometries.forEach(A);break;case"Point":P(F.coordinates);break;case"MultiPoint":F.coordinates.forEach(P);break}}E.arcs.forEach(function(F){for(var B=-1,U=F.length,G;++BM&&(M=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[x,k,M,m]}function i(E,T){for(var L,x=E.length,k=x-T;k<--x;)L=E[k],E[k++]=E[x],E[x]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,x=T.bbox,k=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&x==null?{type:"Feature",properties:k,geometry:M}:x==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:x,properties:k,geometry:M}}function s(E,T){var L=r(E.transform),x=E.arcs;function k(B,U){U.length&&U.pop();for(var G=x[B<0?~B:B],j=0,W=G.length;j1)x=c(E,T,L);else for(k=0,x=new Array(M=E.arcs.length);k1)for(var U=1,G=P(F[0]),j,W;UG&&(W=F[0],F[0]=F[U],F[U]=W,G=j);return F}).filter(function(A){return A.length>0})}}function _(E,T){for(var L=0,x=E.length;L>>1;E[k]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],x=A[1],k=A[2],M=A[3],m;T={scale:[k-L?(k-L)/(m-1):1,M-x?(M-x)/(m-1):1],translate:[L,x]}}else A=E.bbox;var P=v(T),A,F,B=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,ge,ze=new Array(ae);for(ze[0]=P(N[0],0);++H{"use strict";var FZ=l6e.exports={},u8t=fk().locationmodeToLayer,f8t=DZ().feature;FZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};FZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};FZ.getTopojsonFeatures=function(e,t){var r=u8t[e.locationmode],n=t.objects[r];return f8t(t,n).features}});var fx=Te(ck=>{"use strict";var c8t=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{u6e.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 TF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Bv=63710088e-1,OZ={centimeters:Bv*100,centimetres:Bv*100,degrees:360/(2*Math.PI),feet:Bv*3.28084,inches:Bv*39.37,kilometers:Bv/1e3,kilometres:Bv/1e3,meters:Bv,metres:Bv,miles:Bv/1609.344,millimeters:Bv*1e3,millimetres:Bv*1e3,nauticalmiles:Bv/1852,radians:1,yards:Bv*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 cx(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 h8t(e,t,r={}){switch(e){case"Point":return qZ(t).geometry;case"LineString":return UZ(t).geometry;case"Polygon":return NZ(t).geometry;case"MultiPoint":return h6e(t).geometry;case"MultiLineString":return c6e(t).geometry;case"MultiPolygon":return d6e(t).geometry;default:throw new Error(e+" is invalid")}}function qZ(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(!wF(e[0])||!wF(e[1]))throw new Error("coordinates must contain numbers");return cx({type:"Point",coordinates:e},t,r)}function d8t(e,t,r={}){return AF(e.map(n=>qZ(n,t)),r)}function NZ(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;aNZ(n,t)),r)}function UZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return cx({type:"LineString",coordinates:e},t,r)}function v8t(e,t,r={}){return AF(e.map(n=>UZ(n,t)),r)}function AF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function c6e(e,t,r={}){return cx({type:"MultiLineString",coordinates:e},t,r)}function h6e(e,t,r={}){return cx({type:"MultiPoint",coordinates:e},t,r)}function d6e(e,t,r={}){return cx({type:"MultiPolygon",coordinates:e},t,r)}function m8t(e,t,r={}){return cx({type:"GeometryCollection",geometries:e},t,r)}function y8t(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 p6e(e,t="kilometers"){let r=OZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function VZ(e,t="kilometers"){let r=OZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function g8t(e,t){return v6e(VZ(e,t))}function _8t(e){let t=e%360;return t<0&&(t+=360),t}function x8t(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function v6e(e){return e%(2*Math.PI)*180/Math.PI}function b8t(e){return e%360*Math.PI/180}function w8t(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return p6e(VZ(e,t),r)}function A8t(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 wF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function T8t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function S8t(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(!wF(t))throw new Error("bbox must only contain numbers")})}function M8t(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=x8t;bc.bearingToAzimuth=_8t;bc.convertArea=A8t;bc.convertLength=w8t;bc.degreesToRadians=b8t;bc.earthRadius=Bv;bc.factors=OZ;bc.feature=cx;bc.featureCollection=AF;bc.geometry=h8t;bc.geometryCollection=m8t;bc.isNumber=wF;bc.isObject=T8t;bc.lengthToDegrees=g8t;bc.lengthToRadians=VZ;bc.lineString=UZ;bc.lineStrings=v8t;bc.multiLineString=c6e;bc.multiPoint=h6e;bc.multiPolygon=d6e;bc.point=qZ;bc.points=d8t;bc.polygon=NZ;bc.polygons=p8t;bc.radiansToDegrees=v6e;bc.radiansToLength=p6e;bc.round=y8t;bc.validateBBox=S8t;bc.validateId=M8t});var MF=Te(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jp=TF();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",_=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||_>f){s=c,u=n,l=p,f=_,a=0;return}var b=jp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function I8t(e,t,r){var n=r,i=!1;return g6e(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 _6e(e,t){if(!e)throw new Error("geojson is required");SF(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(EF,"__esModule",{value:!0});var x6e=TF(),B8t=MF();function A6e(e){return B8t.geomReduce.call(void 0,e,(t,r)=>t+O8t(r),0)}function O8t(e){let t=0,r;switch(e.type){case"Polygon":return b6e(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(w6e(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*HZ,u=a[1]*HZ,l=o[0]*HZ;r+=(l-s)*Math.sin(u),n++}return r*q8t}var N8t=A6e;EF.area=A6e;EF.default=N8t});var M6e=Te(kF=>{"use strict";Object.defineProperty(kF,"__esModule",{value:!0});var U8t=TF(),V8t=MF();function S6e(e,t={}){let r=0,n=0,i=0;return V8t.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),U8t.point.call(void 0,[r/i,n/i],t.properties)}var G8t=S6e;kF.centroid=S6e;kF.default=G8t});var k6e=Te(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var H8t=MF();function E6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return H8t.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 j8t=Jl(),P6e=f6e(),{area:X8t}=T6e(),{centroid:Z8t}=M6e(),{bbox:Y8t}=k6e(),C6e=ZM(),tS=K1(),K8t=Ag(),J8t=DM(),LF=F5(),L6e=Object.keys(P6e),$8t={"ISO-3":C6e,"USA-states":C6e,"country names":Q8t};function Q8t(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=LF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(LF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=iBt(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else tS.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 Z8t(r).geometry.coordinates}function nBt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){j8t.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 oBt=Jl(),sBt=Mu(),R6e=jl(),D6e=sv(),lBt=D6e.stylePoints,uBt=D6e.styleText;F6e.exports=function(t,r){r&&fBt(t,r)};function fBt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),lBt(n,r,e),uBt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=oBt.select(this),o=i.trace,s=o.line||{};a.call(R6e.stroke,s.color).call(sBt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(R6e.fill,o.fillcolor)})}});var YZ=Te((Qgr,q6e)=>{"use strict";var B6e=Jl(),zF=ei(),cBt=bF().getTopojsonFeatures,jZ=fx(),PF=hx(),O6e=Mm().findExtremes,ZZ=rf().BADNUM,hBt=O0().calcMarkerSize,XZ=lc(),dBt=WZ();function pBt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=zF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===ZZ&&B6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=B6e.select(this),u=o[0].trace;if(XZ.hasLines(u)||u.fill!=="none"){var l=jZ.calcTraceToLineCoords(o),f=u.fill!=="none"?jZ.makePolygon(l):jZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}XZ.hasMarkers(u)&&s.selectAll("path.point").data(zF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),XZ.hasText(u)&&s.selectAll("g").data(zF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),dBt(e,o)})}function vBt(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 u=r.locationmode,l=u==="geojson-id"?PF.extractTraceFeature(e):cBt(r,i.topojson);for(o=0;o{"use strict";var mBt=Xc(),yBt=rf().BADNUM,gBt=mA(),_Bt=ei().fillText,xBt=ew();N6e.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]===yBt||l(E))return 1/0;var T=f(E),L=f([r,n]),x=Math.abs(T[0]-L[0]),k=Math.abs(T[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-M,1-3/M)}if(mBt.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=p[0]-_,t.x1=p[0]+_,t.y0=p[1]-_,t.y1=p[1]+_,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=gBt(a,h),t.extraText=bBt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function bBt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?xBt.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&&_Bt(t,e,f),f.join("
")}});var G6e=Te((t1r,V6e)=>{"use strict";V6e.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 j6e=Te((r1r,W6e)=>{"use strict";var H6e=lc(),wBt=rf().BADNUM;W6e.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=!H6e.hasMarkers(s)&&!H6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof IF=="object"&&typeof X6e!="undefined"?IF:e.d3=e.d3||{})})(IF,function(e){"use strict";function t(Ee,Se){return EeSe?1:Ee>=Se?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Se,Ge,De,xe){for(De==null&&(De=0),xe==null&&(xe=Se.length);De>>1;Ee(Se[Ne],Ge)<0?De=Ne+1:xe=Ne}return De},right:function(Se,Ge,De,xe){for(De==null&&(De=0),xe==null&&(xe=Se.length);De>>1;Ee(Se[Ne],Ge)>0?xe=Ne:De=Ne+1}return De}}}function n(Ee){return function(Se,Ge){return t(Ee(Se),Ge)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Se){Se==null&&(Se=u);for(var Ge=0,De=Ee.length-1,xe=Ee[0],Ne=new Array(De<0?0:De);GeEe?1:Se>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Se){var Ge=Ee.length,De=0,xe=-1,Ne=0,ce,je,Qe=0;if(Se==null)for(;++xe1)return Qe/(De-1)}function d(Ee,Se){var Ge=h(Ee,Se);return Ge&&Math.sqrt(Ge)}function p(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne,ce;if(Se==null){for(;++De=xe)for(Ne=ce=xe;++Dexe&&(Ne=xe),ce=xe)for(Ne=ce=xe;++Dexe&&(Ne=xe),ce0)return[Ee];if((De=Se0)for(Ee=Math.ceil(Ee/je),Se=Math.floor(Se/je),ce=new Array(Ne=Math.ceil(Se-Ee+1));++xe=0?(Ne>=L?10:Ne>=x?5:Ne>=k?2:1)*Math.pow(10,xe):-Math.pow(10,-xe)/(Ne>=L?10:Ne>=x?5:Ne>=k?2:1)}function P(Ee,Se,Ge){var De=Math.abs(Se-Ee)/Math.max(0,Ge),xe=Math.pow(10,Math.floor(Math.log(De)/Math.LN10)),Ne=De/xe;return Ne>=L?xe*=10:Ne>=x?xe*=5:Ne>=k&&(xe*=2),Seat;)Ke.pop(),--Ct;var wt=new Array(Ct+1),Mt;for(Ne=0;Ne<=Ct;++Ne)Mt=wt[Ne]=[],Mt.x0=Ne>0?Ke[Ne-1]:qt,Mt.x1=Ne=1)return+Ge(Ee[De-1],De-1,Ee);var De,xe=(De-1)*Se,Ne=Math.floor(xe),ce=+Ge(Ee[Ne],Ne,Ee),je=+Ge(Ee[Ne+1],Ne+1,Ee);return ce+(je-ce)*(xe-Ne)}}function U(Ee,Se,Ge){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ge-Se)/(2*(B(Ee,.75)-B(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Se,Ge){return Math.ceil((Ge-Se)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne;if(Se==null){for(;++De=xe)for(Ne=xe;++DeNe&&(Ne=xe)}else for(;++De=xe)for(Ne=xe;++DeNe&&(Ne=xe);return Ne}function W(Ee,Se){var Ge=Ee.length,De=Ge,xe=-1,Ne,ce=0;if(Se==null)for(;++xe=0;)for(ce=Ee[Se],Ge=ce.length;--Ge>=0;)Ne[--xe]=ce[Ge];return Ne}function re(Ee,Se){var Ge=Ee.length,De=-1,xe,Ne;if(Se==null){for(;++De=xe)for(Ne=xe;++Dexe&&(Ne=xe)}else for(;++De=xe)for(Ne=xe;++Dexe&&(Ne=xe);return Ne}function ae(Ee,Se){for(var Ge=Se.length,De=new Array(Ge);Ge--;)De[Ge]=Ee[Se[Ge]];return De}function ge(Ee,Se){if(Ge=Ee.length){var Ge,De=0,xe=0,Ne,ce=Ee[xe];for(Se==null&&(Se=t);++De{(function(e,t){typeof RF=="object"&&typeof Z6e!="undefined"?t(RF,dk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(RF,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(Tt){a(i,Tt,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(Tt,Vt,wr){var mr=Tt.s=Vt+wr,Fr=mr-Vt,_i=mr-Fr;Tt.t=Vt-_i+(wr-Fr)}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,_=Math.atan,b=Math.atan2,v=Math.cos,C=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(Tt){return Tt>0?1:Tt<0?-1:0},M=Math.sqrt,m=Math.tan;function P(Tt){return Tt>1?0:Tt<-1?u:Math.acos(Tt)}function A(Tt){return Tt>1?l:Tt<-1?-l:Math.asin(Tt)}function F(Tt){return(Tt=x(Tt/2))*Tt}function B(){}function U(Tt,Vt){Tt&&j.hasOwnProperty(Tt.type)&&j[Tt.type](Tt,Vt)}var G={Feature:function(Tt,Vt){U(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,mr=-1,Fr=wr.length;++mr=0?1:-1,Fr=mr*wr,_i=v(Vt),Si=x(Vt),Ci=te*Si,Ki=de*_i+Ci*v(Fr),Fn=Ci*mr*x(Fr);re.add(b(Fn,Ki)),Le=Tt,de=_i,te=Si}function xe(Tt){return ae.reset(),H(Tt,ke),ae*2}function Ne(Tt){return[b(Tt[1],Tt[0]),A(Tt[2])]}function ce(Tt){var Vt=Tt[0],wr=Tt[1],mr=v(wr);return[mr*v(Vt),mr*x(Vt),x(wr)]}function je(Tt,Vt){return Tt[0]*Vt[0]+Tt[1]*Vt[1]+Tt[2]*Vt[2]}function Qe(Tt,Vt){return[Tt[1]*Vt[2]-Tt[2]*Vt[1],Tt[2]*Vt[0]-Tt[0]*Vt[2],Tt[0]*Vt[1]-Tt[1]*Vt[0]]}function gt(Tt,Vt){Tt[0]+=Vt[0],Tt[1]+=Vt[1],Tt[2]+=Vt[2]}function qt(Tt,Vt){return[Tt[0]*Vt,Tt[1]*Vt,Tt[2]*Vt]}function at(Tt){var Vt=M(Tt[0]*Tt[0]+Tt[1]*Tt[1]+Tt[2]*Tt[2]);Tt[0]/=Vt,Tt[1]/=Vt,Tt[2]/=Vt}var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot=r(),At,vt,Je={point:He,lineStart:tt,lineEnd:It,polygonStart:function(){Je.point=Yt,Je.lineStart=cr,Je.lineEnd=_r,ot.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),Je.point=He,Je.lineStart=tt,Je.lineEnd=It,re<0?(Ke=-(wt=180),Ct=-(Mt=90)):ot>o?Mt=90:ot<-o&&(Ct=-90),vt[0]=Ke,vt[1]=wt},sphere:function(){Ke=-(wt=180),Ct=-(Mt=90)}};function He(Tt,Vt){At.push(vt=[Ke=Tt,wt=Tt]),VtMt&&(Mt=Vt)}function nt(Tt,Vt){var wr=ce([Tt*d,Vt*d]);if(Ae){var mr=Qe(Ae,wr),Fr=[mr[1],-mr[0],0],_i=Qe(Fr,mr);at(_i),_i=Ne(_i);var Si=Tt-Bt,Ci=Si>0?1:-1,Ki=_i[0]*h*Ci,Fn,Pi=p(Si)>180;Pi^(Ci*BtMt&&(Mt=Fn)):(Ki=(Ki+360)%360-180,Pi^(Ci*BtMt&&(Mt=Vt))),Pi?Ttyr(Ke,wt)&&(wt=Tt):yr(Tt,wt)>yr(Ke,wt)&&(Ke=Tt):wt>=Ke?(Ttwt&&(wt=Tt)):Tt>Bt?yr(Ke,Tt)>yr(Ke,wt)&&(wt=Tt):yr(Tt,wt)>yr(Ke,wt)&&(Ke=Tt)}else At.push(vt=[Ke=Tt,wt=Tt]);VtMt&&(Mt=Vt),Ae=wr,Bt=Tt}function tt(){Je.point=nt}function It(){vt[0]=Ke,vt[1]=wt,Je.point=He,Ae=null}function Yt(Tt,Vt){if(Ae){var wr=Tt-Bt;ot.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=Tt,Et=Vt;ke.point(Tt,Vt),nt(Tt,Vt)}function cr(){ke.lineStart()}function _r(){Yt(Zt,Et),ke.lineEnd(),p(ot)>o&&(Ke=-(wt=180)),vt[0]=Ke,vt[1]=wt,Ae=null}function yr(Tt,Vt){return(Vt-=Tt)<0?Vt+360:Vt}function Ut(Tt,Vt){return Tt[0]-Vt[0]}function Re(Tt,Vt){return Tt[0]<=Tt[1]?Tt[0]<=Vt&&Vt<=Tt[1]:Vtyr(mr[0],mr[1])&&(mr[1]=Fr[1]),yr(Fr[0],mr[1])>yr(mr[0],mr[1])&&(mr[0]=Fr[0])):_i.push(mr=Fr);for(Si=-1/0,wr=_i.length-1,Vt=0,mr=_i[wr];Vt<=wr;mr=Fr,++Vt)Fr=_i[Vt],(Ci=yr(mr[1],Fr[0]))>Si&&(Si=Ci,Ke=Fr[0],wt=mr[1])}return At=vt=null,Ke===1/0||Ct===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ke,Ct],[wt,Mt]]}var Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di={sphere:B,point:ni,lineStart:Qi,lineEnd:Ni,polygonStart:function(){Di.lineStart=Rt,Di.lineEnd=yt},polygonEnd:function(){Di.lineStart=Qi,Di.lineEnd=Ni}};function ni(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);$i(wr*v(Tt),wr*x(Tt),x(Vt))}function $i(Tt,Vt,wr){++Oe,Fe+=(Tt-Fe)/Oe,ft+=(Vt-ft)/Oe,ye+=(wr-ye)/Oe}function Qi(){Di.point=si}function si(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);Er=wr*v(Tt),Rr=wr*x(Tt),pi=x(Vt),Di.point=Ti,$i(Er,Rr,pi)}function Ti(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),mr=wr*v(Tt),Fr=wr*x(Tt),_i=x(Vt),Si=b(M((Si=Rr*_i-pi*Fr)*Si+(Si=pi*mr-Er*_i)*Si+(Si=Er*Fr-Rr*mr)*Si),Er*mr+Rr*Fr+pi*_i);Ie+=Si,fe+=Si*(Er+(Er=mr)),pe+=Si*(Rr+(Rr=Fr)),dt+=Si*(pi+(pi=_i)),$i(Er,Rr,pi)}function Ni(){Di.point=ni}function Rt(){Di.point=Gt}function yt(){Wt(Gr,Br),Di.point=ni}function Gt(Tt,Vt){Gr=Tt,Br=Vt,Tt*=d,Vt*=d,Di.point=Wt;var wr=v(Vt);Er=wr*v(Tt),Rr=wr*x(Tt),pi=x(Vt),$i(Er,Rr,pi)}function Wt(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),mr=wr*v(Tt),Fr=wr*x(Tt),_i=x(Vt),Si=Rr*_i-pi*Fr,Ci=pi*mr-Er*_i,Ki=Er*Fr-Rr*mr,Fn=M(Si*Si+Ci*Ci+Ki*Ki),Pi=A(Fn),di=Fn&&-Pi/Fn;Pt+=di*Si,zt+=di*Ci,rr+=di*Ki,Ie+=Pi,fe+=Pi*(Er+(Er=mr)),pe+=Pi*(Rr+(Rr=Fr)),dt+=Pi*(pi+(pi=_i)),$i(Er,Rr,pi)}function xr(Tt){Oe=Ie=Fe=ft=ye=fe=pe=dt=Pt=zt=rr=0,H(Tt,Di);var Vt=Pt,wr=zt,mr=rr,Fr=Vt*Vt+wr*wr+mr*mr;return Fru?Tt+Math.round(-Tt/c)*c:Tt,Vt]}Or.invert=Or;function Hr(Tt,Vt,wr){return(Tt%=c)?Vt||wr?Nr(gi(Tt),ki(Vt,wr)):gi(Tt):Vt||wr?ki(Vt,wr):Or}function jr(Tt){return function(Vt,wr){return Vt+=Tt,[Vt>u?Vt-c:Vt<-u?Vt+c:Vt,wr]}}function gi(Tt){var Vt=jr(Tt);return Vt.invert=jr(-Tt),Vt}function ki(Tt,Vt){var wr=v(Tt),mr=x(Tt),Fr=v(Vt),_i=x(Vt);function Si(Ci,Ki){var Fn=v(Ki),Pi=v(Ci)*Fn,di=x(Ci)*Fn,Li=x(Ki),Mi=Li*wr+Pi*mr;return[b(di*Fr-Mi*_i,Pi*wr-Li*mr),A(Mi*Fr+di*_i)]}return Si.invert=function(Ci,Ki){var Fn=v(Ki),Pi=v(Ci)*Fn,di=x(Ci)*Fn,Li=x(Ki),Mi=Li*Fr-di*_i;return[b(di*Fr+Li*_i,Pi*wr+Mi*mr),A(Mi*wr-Pi*mr)]},Si}function Vi(Tt){Tt=Hr(Tt[0]*d,Tt[1]*d,Tt.length>2?Tt[2]*d:0);function Vt(wr){return wr=Tt(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Vt.invert=function(wr){return wr=Tt.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Vt}function ti(Tt,Vt,wr,mr,Fr,_i){if(wr){var Si=v(Vt),Ci=x(Vt),Ki=mr*wr;Fr==null?(Fr=Vt+mr*c,_i=Vt-Ki/2):(Fr=tn(Si,Fr),_i=tn(Si,_i),(mr>0?Fr<_i:Fr>_i)&&(Fr+=mr*c));for(var Fn,Pi=Fr;mr>0?Pi>_i:Pi<_i;Pi-=Ki)Fn=Ne([Si,-Ci*v(Pi),-Ci*x(Pi)]),Tt.point(Fn[0],Fn[1])}}function tn(Tt,Vt){Vt=ce(Vt),Vt[0]-=Tt,at(Vt);var wr=P(-Vt[1]);return((-Vt[2]<0?-wr:wr)+c-o)%c}function Yr(){var Tt=Lr([0,0]),Vt=Lr(90),wr=Lr(6),mr,Fr,_i={point:Si};function Si(Ki,Fn){mr.push(Ki=Fr(Ki,Fn)),Ki[0]*=h,Ki[1]*=h}function Ci(){var Ki=Tt.apply(this,arguments),Fn=Vt.apply(this,arguments)*d,Pi=wr.apply(this,arguments)*d;return mr=[],Fr=Hr(-Ki[0]*d,-Ki[1]*d,0).invert,ti(_i,Fn,Pi,1),Ki={type:"Polygon",coordinates:[mr]},mr=Fr=null,Ki}return Ci.center=function(Ki){return arguments.length?(Tt=typeof Ki=="function"?Ki:Lr([+Ki[0],+Ki[1]]),Ci):Tt},Ci.radius=function(Ki){return arguments.length?(Vt=typeof Ki=="function"?Ki:Lr(+Ki),Ci):Vt},Ci.precision=function(Ki){return arguments.length?(wr=typeof Ki=="function"?Ki:Lr(+Ki),Ci):wr},Ci}function oi(){var Tt=[],Vt;return{point:function(wr,mr,Fr){Vt.push([wr,mr,Fr])},lineStart:function(){Tt.push(Vt=[])},lineEnd:B,rejoin:function(){Tt.length>1&&Tt.push(Tt.pop().concat(Tt.shift()))},result:function(){var wr=Tt;return Tt=[],Vt=null,wr}}}function Fi(Tt,Vt){return p(Tt[0]-Vt[0])=0;--Ci)Fr.point((di=Pi[Ci])[0],di[1]);else mr(Li.x,Li.p.x,-1,Fr);Li=Li.p}Li=Li.o,Pi=Li.z,Mi=!Mi}while(!Li.v);Fr.lineEnd()}}}function Ri(Tt){if(Vt=Tt.length){for(var Vt,wr=0,mr=Tt[0],Fr;++wr=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))),Si+=Bl?Ks+dl*c:Ks,Bl^Mi>=wr^va>=wr){var eu=Qe(ce(Li),ce(pa));at(eu);var Zl=Qe(_i,eu);at(Zl);var Vl=(Bl^Ks>=0?-1:1)*A(Zl[2]);(mr>Vl||mr===Vl&&(eu[0]||eu[1]))&&(Ci+=Bl^Ks>=0?1:-1)}}return(Si<-o||Si0){for(Ki||(Fr.polygonStart(),Ki=!0),Fr.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ct))}}return Li}}function ct(Tt){return Tt.length>1}function tr(Tt,Vt){return((Tt=Tt.x)[0]<0?Tt[1]-l-o:l-Tt[1])-((Vt=Vt.x)[0]<0?Vt[1]-l-o:l-Vt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(Tt){var Vt=NaN,wr=NaN,mr=NaN,Fr;return{lineStart:function(){Tt.lineStart(),Fr=1},point:function(_i,Si){var Ci=_i>0?u:-u,Ki=p(_i-Vt);p(Ki-u)0?l:-l),Tt.point(mr,wr),Tt.lineEnd(),Tt.lineStart(),Tt.point(Ci,wr),Tt.point(_i,wr),Fr=0):mr!==Ci&&Ki>=u&&(p(Vt-mr)o?_((x(Vt)*(_i=v(mr))*x(wr)-x(mr)*(Fr=v(Vt))*x(Tt))/(Fr*_i*Si)):(Vt+mr)/2}function Ai(Tt,Vt,wr,mr){var Fr;if(Tt==null)Fr=wr*l,mr.point(-u,Fr),mr.point(0,Fr),mr.point(u,Fr),mr.point(u,0),mr.point(u,-Fr),mr.point(0,-Fr),mr.point(-u,-Fr),mr.point(-u,0),mr.point(-u,Fr);else if(p(Tt[0]-Vt[0])>o){var _i=Tt[0]0,Fr=p(Vt)>o;function _i(Pi,di,Li,Mi){ti(Mi,Tt,wr,Li,Pi,di)}function Si(Pi,di){return v(Pi)*v(di)>Vt}function Ci(Pi){var di,Li,Mi,Gn,ta;return{lineStart:function(){Gn=Mi=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Si(ya,ia),is=mr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!di&&(Gn=Mi=zn)&&Pi.lineStart(),zn!==Mi&&(va=Ki(di,pa),(!va||Fi(di,va)||Fi(pa,va))&&(pa[2]=1)),zn!==Mi)ta=0,zn?(Pi.lineStart(),va=Ki(pa,di),Pi.point(va[0],va[1])):(va=Ki(di,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),di=va;else if(Fr&&di&&mr^zn){var Cs;!(is&Li)&&(Cs=Ki(pa,di,!0))&&(ta=0,mr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!di||!Fi(di,pa))&&Pi.point(pa[0],pa[1]),di=pa,Mi=zn,Li=is},lineEnd:function(){Mi&&Pi.lineEnd(),di=null},clean:function(){return ta|(Gn&&Mi)<<1}}}function Ki(Pi,di,Li){var Mi=ce(Pi),Gn=ce(di),ta=[1,0,0],ya=Qe(Mi,Gn),ia=je(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Vt*ia/va,is=-Vt*pa/va,Cs=Qe(ta,ya),Ks=qt(ta,zn),dl=qt(ya,is);gt(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=M(eu),Vl=qt(xl,(-Bl-Zl)/bl);if(gt(Vl,Ks),Vl=Ne(Vl),!Li)return Vl;var ja=Pi[0],ns=di[0],Js=Pi[1],cs=di[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=qt(xl,(-Bl+Zl)/bl);return gt(Ml,Ks),[Vl,Ne(Ml)]}}}function Fn(Pi,di){var Li=mr?Tt:u-Tt,Mi=0;return Pi<-Li?Mi|=1:Pi>Li&&(Mi|=2),di<-Li?Mi|=4:di>Li&&(Mi|=8),Mi}return Xr(Si,Ci,_i,mr?[0,-Tt]:[-u,Tt-u])}function ii(Tt,Vt,wr,mr,Fr,_i){var Si=Tt[0],Ci=Tt[1],Ki=Vt[0],Fn=Vt[1],Pi=0,di=1,Li=Ki-Si,Mi=Fn-Ci,Gn;if(Gn=wr-Si,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}if(Gn=Fr-Si,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Mi,Mi<0){if(Gn0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}if(Gn=_i-Ci,!(!Mi&&Gn<0)){if(Gn/=Mi,Mi<0){if(Gn>di)return;Gn>Pi&&(Pi=Gn)}else if(Mi>0){if(Gn0&&(Tt[0]=Si+Pi*Li,Tt[1]=Ci+Pi*Mi),di<1&&(Vt[0]=Si+di*Li,Vt[1]=Ci+di*Mi),!0}}}}}var Xi=1e9,aa=-Xi;function Mn(Tt,Vt,wr,mr){function Fr(Fn,Pi){return Tt<=Fn&&Fn<=wr&&Vt<=Pi&&Pi<=mr}function _i(Fn,Pi,di,Li){var Mi=0,Gn=0;if(Fn==null||(Mi=Si(Fn,di))!==(Gn=Si(Pi,di))||Ki(Fn,Pi)<0^di>0)do Li.point(Mi===0||Mi===3?Tt:wr,Mi>1?mr:Vt);while((Mi=(Mi+di+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Si(Fn,Pi){return p(Fn[0]-Tt)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Vt)0?1:0:Pi>0?3:2}function Ci(Fn,Pi){return Ki(Fn.x,Pi.x)}function Ki(Fn,Pi){var di=Si(Fn,1),Li=Si(Pi,1);return di!==Li?di-Li:di===0?Pi[1]-Fn[1]:di===1?Fn[0]-Pi[0]:di===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,di=oi(),Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Bl,polygonEnd:bl};function dl(ja,ns){Fr(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Mi.length;nsmr&&(Rl-zl)*(mr-Ml)>(Al-Ml)*(Tt-zl)&&++ja:Al<=mr&&(Rl-zl)*(mr-Ml)<(Al-Ml)*(Tt-zl)&&--ja;return ja}function Bl(){Pi=di,Li=[],Mi=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),_i(null,null,1,Fn),Fn.lineEnd()),Js&&nn(Li,Ci,ja,_i,Fn),Fn.polygonEnd()),Pi=Fn,Li=Mi=Gn=null}function eu(){Ks.point=Vl,Mi&&Mi.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Vl(ta,ya),ia&&zn&&di.rejoin(),Li.push(di.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Vl(ja,ns){var Js=Fr(ja,ns);if(Mi&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.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))];ii(cs,sl,Tt,Vt,wr,mr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var Tt=0,Vt=0,wr=960,mr=500,Fr,_i,Si;return Si={stream:function(Ci){return Fr&&_i===Ci?Fr:Fr=Mn(Tt,Vt,wr,mr)(_i=Ci)},extent:function(Ci){return arguments.length?(Tt=+Ci[0][0],Vt=+Ci[0][1],wr=+Ci[1][0],mr=+Ci[1][1],Fr=_i=null,Si):[[Tt,Vt],[wr,mr]]}}}var Ga=r(),ma,oa,ka,so={sphere:B,point:B,lineStart:Kr,lineEnd:B,polygonStart:B,polygonEnd:B};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=B}function Yo(Tt,Vt){Tt*=d,Vt*=d,ma=Tt,oa=x(Vt),ka=v(Vt),so.point=fa}function fa(Tt,Vt){Tt*=d,Vt*=d;var wr=x(Vt),mr=v(Vt),Fr=p(Tt-ma),_i=v(Fr),Si=x(Fr),Ci=mr*Si,Ki=ka*wr-oa*mr*_i,Fn=oa*wr+ka*mr*_i;Ga.add(b(M(Ci*Ci+Ki*Ki),Fn)),ma=Tt,oa=wr,ka=mr}function kn(Tt){return Ga.reset(),H(Tt,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(Tt,Vt){return Ta[0]=Tt,Ta[1]=Vt,kn(ys)}var ls={Feature:function(Tt,Vt){return fo(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,mr=-1,Fr=wr.length;++mr0&&(Fr=uo(Tt[_i],Tt[_i-1]),Fr>0&&wr<=Fr&&mr<=Fr&&(wr+mr-Fr)*(1-Math.pow((wr-mr)/Fr,2))o}).map(Li)).concat(t.range(C(_i/Fn)*Fn,Fr,Fn).filter(function(va){return p(va%di)>o}).map(Mi))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(mr).concat(ta(Si).slice(1),Gn(wr).reverse().slice(1),ta(Ci).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(mr=+va[0][0],wr=+va[1][0],Ci=+va[0][1],Si=+va[1][1],mr>wr&&(va=mr,mr=wr,wr=va),Ci>Si&&(va=Ci,Ci=Si,Si=va),ia.precision(ya)):[[mr,Ci],[wr,Si]]},ia.extentMinor=function(va){return arguments.length?(Vt=+va[0][0],Tt=+va[1][0],_i=+va[0][1],Fr=+va[1][1],Vt>Tt&&(va=Vt,Vt=Tt,Tt=va),_i>Fr&&(va=_i,_i=Fr,Fr=va),ia.precision(ya)):[[Vt,_i],[Tt,Fr]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],di=+va[1],ia):[Pi,di]},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,Li=Wi(_i,Fr,90),Mi=gn(Vt,Tt,ya),Gn=Wi(Ci,Si,90),ta=gn(mr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(Tt,Vt){var wr=Tt[0]*d,mr=Tt[1]*d,Fr=Vt[0]*d,_i=Vt[1]*d,Si=v(mr),Ci=x(mr),Ki=v(_i),Fn=x(_i),Pi=Si*v(wr),di=Si*x(wr),Li=Ki*v(Fr),Mi=Ki*x(Fr),Gn=2*A(M(F(_i-mr)+Si*Ki*F(Fr-wr))),ta=x(Gn),ya=Gn?function(ia){var pa=x(ia*=Gn)/ta,va=x(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*di+pa*Mi,Cs=va*Ci+pa*Fn;return[b(is,zn)*h,b(Cs,M(zn*zn+is*is))*h]}:function(){return[wr*h,mr*h]};return ya.distance=Gn,ya}function ao(Tt){return Tt}var Ba=r(),Ko=r(),Qo,Hi,Sa,Qa,vn={point:B,lineStart:B,lineEnd:B,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=B,Ba.add(p(Ko)),Ko.reset()},result:function(){var Tt=Ba/2;return Ba.reset(),Tt}};function da(){vn.point=la}function la(Tt,Vt){vn.point=vo,Qo=Sa=Tt,Hi=Qa=Vt}function vo(Tt,Vt){Ko.add(Qa*Tt-Sa*Vt),Sa=Tt,Qa=Vt}function As(){vo(Qo,Hi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var Tt=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),Tt}};function Go(Tt,Vt){Ttmo&&(mo=Tt),VtNo&&(No=Vt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$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 Tt=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,Tt}};function Ka(Tt,Vt){Ys+=Tt,qs+=Vt,++Ns}function qn(){$n.point=Eo}function Eo(Tt,Vt){$n.point=Ja,Ka(Xn=Tt,un=Vt)}function Ja(Tt,Vt){var wr=Tt-Xn,mr=Vt-un,Fr=M(wr*wr+mr*mr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Ka(Xn=Tt,un=Vt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(Tt,Vt){$n.point=Na,Ka(wo=Xn=Tt,Ra=un=Vt)}function Na(Tt,Vt){var wr=Tt-Xn,mr=Vt-un,Fr=M(wr*wr+mr*mr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Fr=un*Tt-Xn*Vt,Ya+=Fr*(Xn+Tt),_n+=Fr*(un+Vt),Vn+=Fr*3,Ka(Xn=Tt,un=Vt)}function rn(Tt){this._context=Tt}rn.prototype={_radius:4.5,pointRadius:function(Tt){return this._radius=Tt,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(Tt,Vt){switch(this._point){case 0:{this._context.moveTo(Tt,Vt),this._point=1;break}case 1:{this._context.lineTo(Tt,Vt);break}default:{this._context.moveTo(Tt+this._radius,Vt),this._context.arc(Tt,Vt,this._radius,0,c);break}}},result:B};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:B,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=B},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var Tt=+Pa;return Pa.reset(),Tt}};function Ws(Tt,Vt){_a.point=Ca,yo=Ao=Tt,Jo=Dn=Vt}function Ca(Tt,Vt){Ao-=Tt,Dn-=Vt,Pa.add(M(Ao*Ao+Dn*Dn)),Ao=Tt,Dn=Vt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(Tt){return(Tt=+Tt)!==this._radius&&(this._radius=Tt,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(Tt,Vt){switch(this._point){case 0:{this._string.push("M",Tt,",",Vt),this._point=1;break}case 1:{this._string.push("L",Tt,",",Vt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",Tt,",",Vt,this._circle);break}}},result:function(){if(this._string.length){var Tt=this._string.join("");return this._string=[],Tt}else return null}};function Ts(Tt){return"m0,"+Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+-2*Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+2*Tt+"z"}function Ho(Tt,Vt){var wr=4.5,mr,Fr;function _i(Si){return Si&&(typeof wr=="function"&&Fr.pointRadius(+wr.apply(this,arguments)),H(Si,mr(Fr))),Fr.result()}return _i.area=function(Si){return H(Si,mr(vn)),vn.result()},_i.measure=function(Si){return H(Si,mr(_a)),_a.result()},_i.bounds=function(Si){return H(Si,mr(jn)),jn.result()},_i.centroid=function(Si){return H(Si,mr($n)),$n.result()},_i.projection=function(Si){return arguments.length?(mr=Si==null?(Tt=null,ao):(Tt=Si).stream,_i):Tt},_i.context=function(Si){return arguments.length?(Fr=Si==null?(Vt=null,new Es):new rn(Vt=Si),typeof wr!="function"&&Fr.pointRadius(wr),_i):Vt},_i.pointRadius=function(Si){return arguments.length?(wr=typeof Si=="function"?Si:(Fr.pointRadius(+Si),+Si),_i):wr},_i.projection(Tt).context(Vt)}function Wa(Tt){return{stream:To(Tt)}}function To(Tt){return function(Vt){var wr=new ts;for(var mr in Tt)wr[mr]=Tt[mr];return wr.stream=Vt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(Tt,Vt){this.stream.point(Tt,Vt)},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(Tt,Vt,wr){var mr=Tt.clipExtent&&Tt.clipExtent();return Tt.scale(150).translate([0,0]),mr!=null&&Tt.clipExtent(null),H(wr,Tt.stream(jn)),Vt(jn.result()),mr!=null&&Tt.clipExtent(mr),Tt}function qa(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=Vt[1][0]-Vt[0][0],_i=Vt[1][1]-Vt[0][1],Si=Math.min(Fr/(mr[1][0]-mr[0][0]),_i/(mr[1][1]-mr[0][1])),Ci=+Vt[0][0]+(Fr-Si*(mr[1][0]+mr[0][0]))/2,Ki=+Vt[0][1]+(_i-Si*(mr[1][1]+mr[0][1]))/2;Tt.scale(150*Si).translate([Ci,Ki])},wr)}function ln(Tt,Vt,wr){return qa(Tt,[[0,0],Vt],wr)}function Bo(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=+Vt,_i=Fr/(mr[1][0]-mr[0][0]),Si=(Fr-_i*(mr[1][0]+mr[0][0]))/2,Ci=-_i*mr[0][1];Tt.scale(150*_i).translate([Si,Ci])},wr)}function ko(Tt,Vt,wr){return Wo(Tt,function(mr){var Fr=+Vt,_i=Fr/(mr[1][1]-mr[0][1]),Si=-_i*mr[0][0],Ci=(Fr-_i*(mr[1][1]+mr[0][1]))/2;Tt.scale(150*_i).translate([Si,Ci])},wr)}var oo=16,za=v(30*d);function ea(Tt,Vt){return+Vt?$s(Tt,Vt):rs(Tt)}function rs(Tt){return To({point:function(Vt,wr){Vt=Tt(Vt,wr),this.stream.point(Vt[0],Vt[1])}})}function $s(Tt,Vt){function wr(mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya){var ia=Fn-mr,pa=Pi-Fr,va=ia*ia+pa*pa;if(va>4*Vt&&ta--){var zn=Si+Li,is=Ci+Mi,Cs=Ki+Gn,Ks=M(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Vt||p((ia*Zl+pa*Vl)/va-.5)>.3||Si*Li+Ci*Mi+Ki*Gn2?ja[2]%360*d:0,Zl()):[Ci*h,Ki*h,Fn*h]},bl.angle=function(ja){return arguments.length?(di=ja%360*d,Zl()):di*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Mi=ja?-1:1,Zl()):Mi<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):M(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Mi,di).apply(null,Vt(_i,Si)),ns=(di?as:fl)(wr,mr-ja[0],Fr-ja[1],Li,Mi,di);return Pi=Hr(Ci,Ki,Fn),Ks=Nr(Vt,ns),dl=Nr(Pi,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Bl=null,bl}return function(){return Vt=Tt.apply(this,arguments),bl.invert=Vt.invert&&eu,Zl()}}function ho(Tt){var Vt=0,wr=u/3,mr=Qs(Tt),Fr=mr(Vt,wr);return Fr.parallels=function(_i){return arguments.length?mr(Vt=_i[0]*d,wr=_i[1]*d):[Vt*h,wr*h]},Fr}function gs(Tt){var Vt=v(Tt);function wr(mr,Fr){return[mr*Vt,x(Fr)/Vt]}return wr.invert=function(mr,Fr){return[mr/Vt,A(Fr*Vt)]},wr}function Vo(Tt,Vt){var wr=x(Tt),mr=(wr+x(Vt))/2;if(p(mr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Fr:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Si:wr).invert(Li)},Pi.stream=function(Li){return Tt&&Vt===Li?Tt:Tt=xs([wr.stream(Vt=Li),Fr.stream(Li),Si.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Fr.precision(Li),Si.precision(Li),di()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Fr.scale(Li*.35),Si.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Mi=wr.scale(),Gn=+Li[0],ta=+Li[1];return mr=wr.translate(Li).clipExtent([[Gn-.455*Mi,ta-.238*Mi],[Gn+.455*Mi,ta+.238*Mi]]).stream(Fn),_i=Fr.translate([Gn-.307*Mi,ta+.201*Mi]).clipExtent([[Gn-.425*Mi+o,ta+.12*Mi+o],[Gn-.214*Mi-o,ta+.234*Mi-o]]).stream(Fn),Ci=Si.translate([Gn-.205*Mi,ta+.212*Mi]).clipExtent([[Gn-.214*Mi+o,ta+.166*Mi+o],[Gn-.115*Mi-o,ta+.234*Mi-o]]).stream(Fn),di()},Pi.fitExtent=function(Li,Mi){return qa(Pi,Li,Mi)},Pi.fitSize=function(Li,Mi){return ln(Pi,Li,Mi)},Pi.fitWidth=function(Li,Mi){return Bo(Pi,Li,Mi)},Pi.fitHeight=function(Li,Mi){return ko(Pi,Li,Mi)};function di(){return Tt=Vt=null,Pi}return Pi.scale(1070)}function Ea(Tt){return function(Vt,wr){var mr=v(Vt),Fr=v(wr),_i=Tt(mr*Fr);return[_i*Fr*x(Vt),_i*x(wr)]}}function Jn(Tt){return function(Vt,wr){var mr=M(Vt*Vt+wr*wr),Fr=Tt(mr),_i=x(Fr),Si=v(Fr);return[b(Vt*_i,mr*Si),A(mr&&wr*_i/mr)]}}var Oo=Ea(function(Tt){return M(2/(1+Tt))});Oo.invert=Jn(function(Tt){return 2*A(Tt/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(Tt){return(Tt=P(Tt))&&Tt/x(Tt)});Gs.invert=Jn(function(Tt){return Tt});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(Tt,Vt){return[Tt,T(m((l+Vt)/2))]}zs.invert=function(Tt,Vt){return[Tt,2*_(E(Vt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(Tt){var Vt=Ma(Tt),wr=Vt.center,mr=Vt.scale,Fr=Vt.translate,_i=Vt.clipExtent,Si=null,Ci,Ki,Fn;Vt.scale=function(di){return arguments.length?(mr(di),Pi()):mr()},Vt.translate=function(di){return arguments.length?(Fr(di),Pi()):Fr()},Vt.center=function(di){return arguments.length?(wr(di),Pi()):wr()},Vt.clipExtent=function(di){return arguments.length?(di==null?Si=Ci=Ki=Fn=null:(Si=+di[0][0],Ci=+di[0][1],Ki=+di[1][0],Fn=+di[1][1]),Pi()):Si==null?null:[[Si,Ci],[Ki,Fn]]};function Pi(){var di=u*mr(),Li=Vt(Vi(Vt.rotate()).invert([0,0]));return _i(Si==null?[[Li[0]-di,Li[1]-di],[Li[0]+di,Li[1]+di]]:Tt===zs?[[Math.max(Li[0]-di,Si),Ci],[Math.min(Li[0]+di,Ki),Fn]]:[[Si,Math.max(Li[1]-di,Ci)],[Ki,Math.min(Li[1]+di,Fn)]])}return Pi()}function os(Tt){return m((l+Tt)/2)}function _l(Tt,Vt){var wr=v(Tt),mr=Tt===Vt?x(Tt):T(wr/v(Vt))/T(os(Vt)/os(Tt)),Fr=wr*L(os(Tt),mr)/mr;if(!mr)return zs;function _i(Si,Ci){Fr>0?Ci<-l+o&&(Ci=-l+o):Ci>l-o&&(Ci=l-o);var Ki=Fr/L(os(Ci),mr);return[Ki*x(mr*Si),Fr-Ki*v(mr*Si)]}return _i.invert=function(Si,Ci){var Ki=Fr-Ci,Fn=k(mr)*M(Si*Si+Ki*Ki),Pi=b(Si,p(Ki))*k(Ki);return Ki*mr<0&&(Pi-=u*k(Si)*k(Ki)),[Pi/mr,2*_(L(Fr/Fn,1/mr))-l]},_i}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(Tt,Vt){return[Tt,Vt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(Tt,Vt){var wr=v(Tt),mr=Tt===Vt?x(Tt):(wr-v(Vt))/(Vt-Tt),Fr=wr/mr+Tt;if(p(mr)o&&--mr>0);return[Tt/(.8707+(_i=wr*wr)*(-.131979+_i*(-.013791+_i*_i*_i*(.003971-.001529*_i)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(Tt,Vt){return[v(Vt)*x(Tt),x(Vt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(Tt,Vt){var wr=v(Vt),mr=1+v(Tt)*wr;return[wr*x(Tt)/mr,x(Vt)/mr]}jo.invert=Jn(function(Tt){return 2*_(Tt)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(Tt,Vt){return[T(m((l+Vt)/2)),-Tt]}Is.invert=function(Tt,Vt){return[-Vt,2*_(E(Tt))-l]};function Bs(){var Tt=Aa(Is),Vt=Tt.center,wr=Tt.rotate;return Tt.center=function(mr){return arguments.length?Vt([-mr[1],mr[0]]):(mr=Vt(),[mr[1],-mr[0]])},Tt.rotate=function(mr){return arguments.length?wr([mr[0],mr[1],mr.length>2?mr[2]+90:90]):(mr=wr(),[mr[0],mr[1],mr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=xe,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=be,e.geoCentroid=xr,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=en,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=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var K6e=Te((DF,Y6e)=>{(function(e,t){typeof DF=="object"&&typeof Y6e!="undefined"?t(DF,KZ(),dk()):t(e.d3=e.d3||{},e.d3,e.d3)})(DF,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},_=Math.sin,b=Math.tan,v=1e-6,C=1e-12,E=Math.PI,T=E/2,L=E/4,x=Math.SQRT1_2,k=G(2),M=G(E),m=E*2,P=180/E,A=E/180;function F(he){return he?he/Math.sin(he):1}function B(he){return he>1?T:he<-1?-T: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 Me=b(he/2),qe=2*l(o(he/2))/(Me*Me);function Ve(lt,it){var pt=o(lt),Ht=o(it),nr=_(it),fr=Ht*pt,Ar=-((1-fr?l((1+fr)/2)/(1-fr):-.5)+qe/(1+fr));return[Ar*Ht*_(lt),Ar*nr]}return Ve.invert=function(lt,it){var pt=G(lt*lt+it*it),Ht=-he/2,nr=50,fr;if(!pt)return[0,0];do{var Ar=Ht/2,Ir=o(Ar),ri=_(Ar),li=ri/Ir,Ei=-l(n(Ir));Ht-=fr=(2/li*Ei-qe*li-pt)/(-Ei/(ri*ri)+1-qe/(2*Ir*Ir))*(Ir<0?.7:1)}while(n(fr)>v&&--nr>0);var hn=_(Ht);return[a(lt*hn,pt*o(Ht)),B(it*hn/pt)]},Ve}function ge(){var he=T,Me=t.geoProjectionMutator(ae),qe=Me(he);return qe.radius=function(Ve){return arguments.length?Me(he=Ve*A):he*P},qe.scale(179.976).clipAngle(147)}function ze(he,Me){var qe=o(Me),Ve=F(U(qe*o(he/=2)));return[2*qe*_(he)*Ve,_(Me)*Ve]}ze.invert=function(he,Me){if(!(he*he+4*Me*Me>E*E+v)){var qe=he,Ve=Me,lt=25;do{var it=_(qe),pt=_(qe/2),Ht=o(qe/2),nr=_(Ve),fr=o(Ve),Ar=_(2*Ve),Ir=nr*nr,ri=fr*fr,li=pt*pt,Ei=1-ri*Ht*Ht,hn=Ei?U(fr*Ht)*G(Zn=1/Ei):Zn=0,Zn,Yn=2*hn*fr*pt-he,Ua=hn*nr-Me,Fo=Zn*(ri*li+hn*fr*Ht*Ir),vl=Zn*(.5*it*Ar-hn*2*nr*pt),Us=Zn*.25*(Ar*pt-hn*nr*ri*it),ml=Zn*(Ir*Ht+hn*li*fr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ve-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ve]}};function Le(){return t.geoProjection(ze).scale(152.63)}function de(he){var Me=_(he),qe=o(he),Ve=he>=0?1:-1,lt=b(Ve*he),it=(1+Me-qe)/2;function pt(Ht,nr){var fr=o(nr),Ar=o(Ht/=2);return[(1+fr)*_(Ht),(Ve*nr>-a(Ar,lt)-.001?0:-Ve*10)+it+_(nr)*qe-(1+fr)*Me*Ar]}return pt.invert=function(Ht,nr){var fr=0,Ar=0,Ir=50;do{var ri=o(fr),li=_(fr),Ei=o(Ar),hn=_(Ar),Zn=1+Ei,Yn=Zn*li-Ht,Ua=it+hn*qe-Zn*Me*ri-nr,Fo=Zn*ri/2,vl=-li*hn,Us=Me*Zn*li/2,ml=qe*Ei+Me*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),fr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Ir>0);return Ve*Ar>-a(o(fr),lt)-.001?[fr*2,Ar]:null},pt}function te(){var he=20*A,Me=he>=0?1:-1,qe=b(Me*he),Ve=t.geoProjectionMutator(de),lt=Ve(he),it=lt.stream;return lt.parallel=function(pt){return arguments.length?(qe=b((Me=(he=pt*A)>=0?1:-1)*he),Ve(he)):he*P},lt.stream=function(pt){var Ht=lt.rotate(),nr=it(pt),fr=(lt.rotate([0,0]),it(pt)),Ar=lt.precision();return lt.rotate(Ht),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var Ir=Me*-180;Me*Ir<180;Ir+=Me*90)fr.point(Ir,Me*90);if(he)for(;Me*(Ir-=3*Me*Ar)>=-180;)fr.point(Ir,Me*-a(o(Ir*A/2),qe)*P);fr.lineEnd(),fr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Me){var qe=b(Me/2),Ve=G(1-qe*qe),lt=1+Ve*o(he/=2),it=_(he)*Ve/lt,pt=qe/lt,Ht=it*it,nr=pt*pt;return[4/3*it*(3+Ht-3*nr),4/3*pt*(3+3*Ht-nr)]}ke.invert=function(he,Me){if(he*=3/8,Me*=3/8,!he&&n(Me)>1)return null;var qe=he*he,Ve=Me*Me,lt=1+qe+Ve,it=G((lt-G(lt*lt-4*Me*Me))/2),pt=B(it)/3,Ht=it?re(n(Me/it))/3:H(n(he))/3,nr=o(pt),fr=N(Ht),Ar=fr*fr-nr*nr;return[p(he)*2*a(W(Ht)*nr,.25-Ar),p(Me)*2*a(fr*_(pt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Se=G(8),Ge=l(1+k);function De(he,Me){var qe=n(Me);return qeC&&--Ve>0);return[he/(o(qe)*(Se-1/_(qe))),p(Me)*qe]};function xe(){return t.geoProjection(De).scale(112.314)}function Ne(he){var Me=2*E/he;function qe(Ve,lt){var it=t.geoAzimuthalEquidistantRaw(Ve,lt);if(n(Ve)>T){var pt=a(it[1],it[0]),Ht=G(it[0]*it[0]+it[1]*it[1]),nr=Me*d((pt-T)/Me)+T,fr=a(_(pt-=nr),2-o(pt));pt=nr+B(E/Ht*_(fr))-fr,it[0]=Ht*o(pt),it[1]=Ht*_(pt)}return it}return qe.invert=function(Ve,lt){var it=G(Ve*Ve+lt*lt);if(it>T){var pt=a(lt,Ve),Ht=Me*d((pt-T)/Me)+T,nr=pt>Ht?-1:1,fr=it*o(Ht-pt),Ar=1/b(nr*U((fr-E)/G(E*(E-2*fr)+it*it)));pt=Ht+2*i((Ar+nr*G(Ar*Ar-3))/3),Ve=it*o(pt),lt=it*_(pt)}return t.geoAzimuthalEquidistantRaw.invert(Ve,lt)},qe}function ce(){var he=5,Me=t.geoProjectionMutator(Ne),qe=Me(he),Ve=qe.stream,lt=.01,it=-o(lt*A),pt=_(lt*A);return qe.lobes=function(Ht){return arguments.length?Me(he=+Ht):he},qe.stream=function(Ht){var nr=qe.rotate(),fr=Ve(Ht),Ar=(qe.rotate([0,0]),Ve(Ht));return qe.rotate(nr),fr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Ir=0,ri=360/he,li=2*E/he,Ei=90-180/he,hn=T;Ir0&&n(lt)>v);return Ve<0?NaN:qe}function at(he,Me,qe){return Me===void 0&&(Me=40),qe===void 0&&(qe=C),function(Ve,lt,it,pt){var Ht,nr,fr;it=it===void 0?0:+it,pt=pt===void 0?0:+pt;for(var Ar=0;ArHt){it-=nr/=2,pt-=fr/=2;continue}Ht=Ei;var hn=(it>0?-1:1)*qe,Zn=(pt>0?-1:1)*qe,Yn=he(it+hn,pt),Ua=he(it,pt+Zn),Fo=(Yn[0]-Ir[0])/hn,vl=(Yn[1]-Ir[1])/hn,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(nr=(li*Us-ri*ml)*Sl,fr=(ri*vl-li*Fo)*Sl,it+=nr,pt+=fr,n(nr)0&&(Ht[1]*=1+nr/1.5*Ht[0]*Ht[0]),Ht}return Ve.invert=at(Ve),Ve}function Ct(){return t.geoProjection(Ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function wt(he,Me){var qe=he*_(Me),Ve=30,lt;do Me-=lt=(Me+_(Me)-qe)/(1+o(Me));while(n(lt)>v&&--Ve>0);return Me/2}function Mt(he,Me,qe){function Ve(lt,it){return[he*lt*o(it=wt(qe,it)),Me*_(it)]}return Ve.invert=function(lt,it){return it=B(it/Me),[lt/(he*o(it)),B((2*it+_(2*it))/qe)]},Ve}var Bt=Mt(k/T,k,E);function Zt(){return t.geoProjection(Bt).scale(169.529)}var Et=2.00276,Ae=1.11072;function ot(he,Me){var qe=wt(E,Me);return[Et*he/(1/o(Me)+Ae/o(qe)),(Me+k*_(qe))/Et]}ot.invert=function(he,Me){var qe=Et*Me,Ve=Me<0?-L:L,lt=25,it,pt;do pt=qe-k*_(Ve),Ve-=it=(_(2*Ve)+2*Ve-E*_(pt))/(2*o(2*Ve)+2+E*o(pt)*k*o(Ve));while(n(it)>v&&--lt>0);return pt=qe-k*_(Ve),[he*(1/o(pt)+Ae/o(Ve))/Et,pt]};function At(){return t.geoProjection(ot).scale(160.857)}function vt(he){var Me=0,qe=t.geoProjectionMutator(he),Ve=qe(Me);return Ve.parallel=function(lt){return arguments.length?qe(Me=lt*A):Me*P},Ve}function Je(he,Me){return[he*o(Me),Me]}Je.invert=function(he,Me){return[he/o(Me),Me]};function He(){return t.geoProjection(Je).scale(152.63)}function nt(he){if(!he)return Je;var Me=1/b(he);function qe(Ve,lt){var it=Me+he-lt,pt=it&&Ve*o(lt)/it;return[it*_(pt),Me-it*o(pt)]}return qe.invert=function(Ve,lt){var it=G(Ve*Ve+(lt=Me-lt)*lt),pt=Me+he-it;return[it/o(pt)*a(Ve,lt),pt]},qe}function tt(){return vt(nt).scale(123.082).center([0,26.1441]).parallel(45)}function It(he){function Me(qe,Ve){var lt=T-Ve,it=lt&&qe*he*_(lt)/lt;return[lt*_(it)/he,T-lt*o(it)]}return Me.invert=function(qe,Ve){var lt=qe*he,it=T-Ve,pt=G(lt*lt+it*it),Ht=a(lt,it);return[(pt?pt/_(pt):1)*Ht/he,T-pt]},Me}function Yt(){var he=.5,Me=t.geoProjectionMutator(It),qe=Me(he);return qe.fraction=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(158.837)}var cr=Mt(1,4/E,E);function _r(){return t.geoProjection(cr).scale(152.63)}function yr(he,Me,qe,Ve,lt,it){var pt=o(it),Ht;if(n(he)>1||n(it)>1)Ht=U(qe*lt+Me*Ve*pt);else{var nr=_(he/2),fr=_(it/2);Ht=2*B(G(nr*nr+Me*Ve*fr*fr))}return n(Ht)>v?[Ht,a(Ve*_(it),Me*lt-qe*Ve*pt)]:[0,0]}function Ut(he,Me,qe){return U((he*he+Me*Me-qe*qe)/(2*he*Me))}function Re(he){return he-2*E*u((he+E)/(2*E))}function be(he,Me,qe){for(var Ve=[[he[0],he[1],_(he[1]),o(he[1])],[Me[0],Me[1],_(Me[1]),o(Me[1])],[qe[0],qe[1],_(qe[1]),o(qe[1])]],lt=Ve[2],it,pt=0;pt<3;++pt,lt=it)it=Ve[pt],lt.v=yr(it[1]-lt[1],lt[3],lt[2],it[3],it[2],it[0]-lt[0]),lt.point=[0,0];var Ht=Ut(Ve[0].v[0],Ve[2].v[0],Ve[1].v[0]),nr=Ut(Ve[0].v[0],Ve[1].v[0],Ve[2].v[0]),fr=E-Ht;Ve[2].point[1]=0,Ve[0].point[0]=-(Ve[1].point[0]=Ve[0].v[0]/2);var Ar=[Ve[2].point[0]=Ve[0].point[0]+Ve[2].v[0]*o(Ht),2*(Ve[0].point[1]=Ve[1].point[1]=Ve[2].v[0]*_(Ht))];function Ir(ri,li){var Ei=_(li),hn=o(li),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=Ve[Yn];if(Zn[Yn]=yr(li-Ua[1],Ua[3],Ua[2],hn,Ei,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Re(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ut(Ve[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us)):(Us=fr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*_(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*_(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Ir}function Oe(he){return he[0]*=A,he[1]*=A,he}function Ie(){return Fe([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Fe(he,Me,qe){var Ve=t.geoCentroid({type:"MultiPoint",coordinates:[he,Me,qe]}),lt=[-Ve[0],-Ve[1]],it=t.geoRotation(lt),pt=be(Oe(it(he)),Oe(it(Me)),Oe(it(qe)));pt.invert=at(pt);var Ht=t.geoProjection(pt).rotate(lt),nr=Ht.center;return delete Ht.rotate,Ht.center=function(fr){return arguments.length?nr(it(fr)):it.invert(nr())},Ht.clipAngle(90)}function ft(he,Me){var qe=G(1-_(Me));return[2/M*he*qe,M*(1-qe)]}ft.invert=function(he,Me){var qe=(qe=Me/M-1)*qe;return[qe>0?he*G(E/qe)/2:0,B(1-qe)]};function ye(){return t.geoProjection(ft).scale(95.6464).center([0,30])}function fe(he){var Me=b(he);function qe(Ve,lt){return[Ve,(Ve?Ve/_(Ve):1)*(_(lt)*o(Ve)-Me*o(lt))]}return qe.invert=Me?function(Ve,lt){Ve&&(lt*=_(Ve)/Ve);var it=o(Ve);return[Ve,2*a(G(it*it+Me*Me-lt*lt)-it,Me-lt)]}:function(Ve,lt){return[Ve,B(Ve?lt*b(Ve)/Ve:lt)]},qe}function pe(){return vt(fe).scale(249.828).clipAngle(90)}var dt=G(3);function Pt(he,Me){return[dt*he*(2*o(2*Me/3)-1)/M,dt*M*_(Me/3)]}Pt.invert=function(he,Me){var qe=3*B(Me/(dt*M));return[M*he/(dt*(2*o(2*qe/3)-1)),qe]};function zt(){return t.geoProjection(Pt).scale(156.19)}function rr(he){var Me=o(he);function qe(Ve,lt){return[Ve*Me,_(lt)/Me]}return qe.invert=function(Ve,lt){return[Ve/Me,B(lt*Me)]},qe}function Gr(){return vt(rr).parallel(38.58).scale(195.044)}function Br(he){var Me=o(he);function qe(Ve,lt){return[Ve*Me,(1+Me)*b(lt/2)]}return qe.invert=function(Ve,lt){return[Ve/Me,i(lt/(1+Me))*2]},qe}function Er(){return vt(Br).scale(124.75)}function Rr(he,Me){var qe=G(8/(3*E));return[qe*he*(1-n(Me)/E),qe*Me]}Rr.invert=function(he,Me){var qe=G(8/(3*E)),Ve=Me/qe;return[he/(qe*(1-n(Ve)/E)),Ve]};function pi(){return t.geoProjection(Rr).scale(165.664)}function Di(he,Me){var qe=G(4-3*_(n(Me)));return[2/G(6*E)*he*qe,p(Me)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Me){var qe=2-n(Me)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Me)*B((4-qe*qe)/3)]};function ni(){return t.geoProjection(Di).scale(165.664)}function $i(he,Me){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Me*Me/(E*E))),4/qe*Me]}$i.invert=function(he,Me){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Me*Me*(4+E)/(4*E))),Me*qe/2]};function Qi(){return t.geoProjection($i).scale(180.739)}function si(he,Me){var qe=(2+T)*_(Me);Me/=2;for(var Ve=0,lt=1/0;Ve<10&&n(lt)>v;Ve++){var it=o(Me);Me-=lt=(Me+_(Me)*(it+2)-qe)/(2*it*(1+it))}return[2/G(E*(4+E))*he*(1+o(Me)),2*G(E/(4+E))*_(Me)]}si.invert=function(he,Me){var qe=Me*G((4+E)/E)/2,Ve=B(qe),lt=o(Ve);return[he/(2/G(E*(4+E))*(1+lt)),B((Ve+qe*(lt+2))/(2+T))]};function Ti(){return t.geoProjection(si).scale(180.739)}function Ni(he,Me){return[he*(1+o(Me))/G(2+E),2*Me/G(2+E)]}Ni.invert=function(he,Me){var qe=G(2+E),Ve=Me*qe/2;return[qe*he/(1+o(Ve)),Ve]};function Rt(){return t.geoProjection(Ni).scale(173.044)}function yt(he,Me){for(var qe=(1+T)*_(Me),Ve=0,lt=1/0;Ve<10&&n(lt)>v;Ve++)Me-=lt=(Me+_(Me)-qe)/(1+o(Me));return qe=G(2+E),[he*(1+o(Me))/qe,2*Me/qe]}yt.invert=function(he,Me){var qe=1+T,Ve=G(qe/2);return[he*2*Ve/(1+o(Me*=Ve)),B((Me+_(Me))/qe)]};function Gt(){return t.geoProjection(yt).scale(173.044)}var Wt=3+2*k;function xr(he,Me){var qe=_(he/=2),Ve=o(he),lt=G(o(Me)),it=o(Me/=2),pt=_(Me)/(it+k*Ve*lt),Ht=G(2/(1+pt*pt)),nr=G((k*it+(Ve+qe)*lt)/(k*it+(Ve-qe)*lt));return[Wt*(Ht*(nr-1/nr)-2*l(nr)),Wt*(Ht*pt*(nr+1/nr)-2*i(pt))]}xr.invert=function(he,Me){if(!(it=ke.invert(he/1.2,Me*1.065)))return null;var qe=it[0],Ve=it[1],lt=20,it;he/=Wt,Me/=Wt;do{var pt=qe/2,Ht=Ve/2,nr=_(pt),fr=o(pt),Ar=_(Ht),Ir=o(Ht),ri=o(Ve),li=G(ri),Ei=Ar/(Ir+k*fr*li),hn=Ei*Ei,Zn=G(2/(1+hn)),Yn=k*Ir+(fr+nr)*li,Ua=k*Ir+(fr-nr)*li,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Ei*ml-2*i(Ei)-Me,Yl=Ar&&x*li*nr*hn/Ar,Ol=(k*fr*Ir+li)/(2*(Ir+k*fr*li)*(Ir+k*fr*li)*li),ou=-.5*Ei*Zn*Zn*Zn,Pu=ou*Yl,nu=ou*Ol,tu=(tu=2*Ir+k*li*(fr-nr))*tu*vl,Hu=(k*fr*Ir*li+ri)/tu,$u=-(k*nr*Ar)/(li*tu),Ku=Us*Pu-2*Hu/vl+Zn*(Hu+Hu/Fo),Wu=Us*nu-2*$u/vl+Zn*($u+$u/Fo),ju=Ei*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Ei*(Hu-Hu/Fo),sf=Ei*ml*nu-2*Ol/(1+hn)+Zn*ml*Ol+Zn*Ei*($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,Ve=f(-T,c(T,Ve-ef))}while((n(Qu)>v||n(ef)>v)&&--lt>0);return n(n(Ve)-T)Ve){var Ir=G(Ar),ri=a(fr,nr),li=qe*d(ri/qe),Ei=ri-li,hn=he*o(Ei),Zn=(he*_(Ei)-Ei*_(hn))/(T-hn),Yn=Fi(Ei,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Ir;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Ir)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);fr=Ei*_(nr),nrVe){var nr=G(Ht),fr=a(pt,it),Ar=qe*d(fr/qe),Ir=fr-Ar;it=nr*o(Ir),pt=nr*_(Ir);for(var ri=it-T,li=_(it),Ei=pt/li,hn=itv||n(Ei)>v)&&--hn>0);return[Ir,ri]},nr}var Ii=Ri(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ii).scale(149.995)}var bi=Ri(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(bi).scale(153.93)}var ct=Ri(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ct).scale(130.945)}function pr(he,Me){var qe=he*he,Ve=Me*Me;return[he*(1-.162388*Ve)*(.87-952426e-9*qe*qe),Me*(1+Ve/12)]}pr.invert=function(he,Me){var qe=he,Ve=Me,lt=50,it;do{var pt=Ve*Ve;Ve-=it=(Ve*(1+pt/12)-Me)/(1+pt/4)}while(n(it)>v&&--lt>0);lt=50,he/=1-.162388*pt;do{var Ht=(Ht=qe*qe)*Ht;qe-=it=(qe*(.87-952426e-9*Ht)-he)/(.87-.00476213*Ht)}while(n(it)>v&&--lt>0);return[qe,Ve]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Ri(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function en(he){var Me=he(T,0)[0]-he(-T,0)[0];function qe(Ve,lt){var it=Ve>0?-.5:.5,pt=he(Ve+it*E,lt);return pt[0]-=it*Me,pt}return he.invert&&(qe.invert=function(Ve,lt){var it=Ve>0?-.5:.5,pt=he.invert(Ve+it*Me,lt),Ht=pt[0]-it*E;return Ht<-E?Ht+=2*E:Ht>E&&(Ht-=2*E),pt[0]=Ht,pt}),qe}function ii(he,Me){var qe=p(he),Ve=p(Me),lt=o(Me),it=o(he)*lt,pt=_(he)*lt,Ht=_(Ve*Me);he=n(a(pt,Ht)),Me=B(it),n(he-T)>v&&(he%=T);var nr=Xi(he>E/4?T-he:he,Me);return he>E/4&&(Ht=nr[0],nr[0]=-nr[1],nr[1]=-Ht),nr[0]*=qe,nr[1]*=-Ve,nr}ii.invert=function(he,Me){n(he)>1&&(he=p(he)*2-he),n(Me)>1&&(Me=p(Me)*2-Me);var qe=p(he),Ve=p(Me),lt=-qe*he,it=-Ve*Me,pt=it/lt<1,Ht=aa(pt?it:lt,pt?lt:it),nr=Ht[0],fr=Ht[1],Ar=o(fr);return pt&&(nr=-T-nr),[qe*(a(_(nr)*Ar,-_(fr))+E),Ve*B(o(nr)*Ar)]};function Xi(he,Me){if(Me===T)return[0,0];var qe=_(Me),Ve=qe*qe,lt=Ve*Ve,it=1+lt,pt=1+3*lt,Ht=1-lt,nr=B(1/G(it)),fr=Ht+Ve*it*nr,Ar=(1-qe)/fr,Ir=G(Ar),ri=Ar*it,li=G(ri),Ei=Ir*Ht,hn,Zn;if(he===0)return[0,-(Ei+Ve*li)];var Yn=o(Me),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*Ve+nr*pt)*Fo,Us=(-fr*Yn-(1-qe)*vl)/(fr*fr),ml=.5*Us/Ir,au=Ht*ml-2*Ve*Ir*Fo,Sl=Ve*it*Us+Ar*pt*Fo,Yl=-Ua*Fo,Ol=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,nu;if(he>.222*E||Me.175*E){if(hn=(Ei+Ve*G(ri*(1+lt)-Ei*Ei))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Hu=.5*hn;hn=.5*(Hu+tu),Zn=50;do{var $u=G(ri-hn*hn),Ku=hn*(ou+Yl*$u)+Ol*B(hn/li)-Pu;if(!Ku)break;Ku<0?Hu=hn:tu=hn,hn=.5*(Hu+tu)}while(n(tu-Hu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var Wu=hn*hn,ju=G(ri-Wu),sf=ou+Yl*ju,_f=hn*sf+Ol*B(hn/li)-Pu,Qu=sf+(Ol-Yl*Wu)/ju;hn-=nu=ju?_f/Qu:0}while(n(nu)>v&&--Zn>0)}return[hn,-Ei-Ve*G(ri-hn*hn)]}function aa(he,Me){for(var qe=0,Ve=1,lt=.5,it=50;;){var pt=lt*lt,Ht=G(lt),nr=B(1/G(1+pt)),fr=1-pt+lt*(1+pt)*nr,Ar=(1-Ht)/fr,Ir=G(Ar),ri=Ar*(1+pt),li=Ir*(1-pt),Ei=ri-he*he,hn=G(Ei),Zn=Me+li+lt*hn;if(n(Ve-qe)0?qe=lt:Ve=lt,lt=.5*(qe+Ve)}if(!it)return null;var Yn=B(Ht),Ua=o(Yn),Fo=1/Ua,vl=2*Ht*Ua,Us=(-3*lt+nr*(1+3*pt))*vl,ml=(-fr*Ua-(1-Ht)*Us)/(fr*fr),au=.5*ml/Ir,Sl=(1-pt)*au-2*lt*Ir*vl,Yl=-2*Fo*Sl,Ol=-Fo*vl,ou=-Fo*(lt*(1+pt)*ml+Ar*(1+3*pt)*vl);return[E/4*(he*(Yl+Ol*hn)+ou*B(he/G(ri))),Yn]}function Mn(){return t.geoProjection(en(ii)).scale(239.75)}function Un(he,Me,qe){var Ve,lt,it;return he?(Ve=Ga(he,qe),Me?(lt=Ga(Me,1-qe),it=lt[1]*lt[1]+qe*Ve[0]*Ve[0]*lt[0]*lt[0],[[Ve[0]*lt[2]/it,Ve[1]*Ve[2]*lt[0]*lt[1]/it],[Ve[1]*lt[1]/it,-Ve[0]*Ve[2]*lt[0]*lt[2]/it],[Ve[2]*lt[1]*lt[2]/it,-qe*Ve[0]*Ve[1]*lt[0]/it]]):[[Ve[0],0],[Ve[1],0],[Ve[2],0]]):(lt=Ga(Me,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Me){var qe,Ve,lt,it,pt;if(Me=1-v)return qe=(1-Me)/4,Ve=N(he),it=j(he),lt=1/Ve,pt=Ve*W(he),[it+qe*(pt-he)/(Ve*Ve),lt-qe*it*lt*(pt-he),lt+qe*it*lt*(pt+he),2*i(s(he))-T+qe*(pt-he)/Ve];var Ht=[1,0,0,0,0,0,0,0,0],nr=[G(Me),0,0,0,0,0,0,0,0],fr=0;for(Ve=G(1-Me),pt=1;n(nr[fr]/Ht[fr])>v&&fr<8;)qe=Ht[fr++],nr[fr]=(qe-Ve)/2,Ht[fr]=(qe+Ve)/2,Ve=G(qe*Ve),pt*=2;lt=pt*Ht[fr]*he;do it=nr[fr]*_(Ve=lt)/Ht[fr],lt=(B(it)+lt)/2;while(--fr);return[_(lt),it=o(lt),it/o(lt-Ve),lt]}function ma(he,Me,qe){var Ve=n(he),lt=n(Me),it=W(lt);if(Ve){var pt=1/_(Ve),Ht=1/(b(Ve)*b(Ve)),nr=-(Ht+qe*(it*it*pt*pt)-1+qe),fr=(qe-1)*Ht,Ar=(-nr+G(nr*nr-4*fr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Ht-1)/qe)),1-qe)*p(Me)]}return[0,oa(i(it),1-qe)*p(Me)]}function oa(he,Me){if(!Me)return he;if(Me===1)return l(b(he/2+L));for(var qe=1,Ve=G(1-Me),lt=G(Me),it=0;n(lt)>v;it++){if(he%E){var pt=i(Ve*b(he)/qe);pt<0&&(pt+=E),he+=pt+~~(he/E)*E}else he+=he;lt=(qe+Ve)/2,Ve=G(qe*Ve),lt=((qe=lt)-Ve)/2}return he/(h(2,it)*qe)}function ka(he,Me){var qe=(k-1)/(k+1),Ve=G(1-qe*qe),lt=oa(T,Ve*Ve),it=-1,pt=l(b(E/4+n(Me)/2)),Ht=s(it*pt)/G(qe),nr=so(Ht*o(it*he),Ht*_(it*he)),fr=ma(nr[0],nr[1],Ve*Ve);return[-fr[1],(Me>=0?1:-1)*(.5*lt-fr[0])]}function so(he,Me){var qe=he*he,Ve=Me+1,lt=1-qe-Me*Me;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(Ve*Ve+qe)]}function Kr(he,Me){var qe=Me[0]*Me[0]+Me[1]*Me[1];return[(he[0]*Me[0]+he[1]*Me[1])/qe,(he[1]*Me[0]-he[0]*Me[1])/qe]}ka.invert=function(he,Me){var qe=(k-1)/(k+1),Ve=G(1-qe*qe),lt=oa(T,Ve*Ve),it=-1,pt=Un(.5*lt-Me,-he,Ve*Ve),Ht=Kr(pt[0],pt[1]),nr=a(Ht[1],Ht[0])/it;return[nr,2*i(s(.5/it*l(qe*Ht[0]*Ht[0]+qe*Ht[1]*Ht[1])))-T]};function Ia(){return t.geoProjection(en(ka)).scale(151.496)}function Yo(he){var Me=_(he),qe=o(he),Ve=fa(he);Ve.invert=fa(-he);function lt(it,pt){var Ht=Ve(it,pt);it=Ht[0],pt=Ht[1];var nr=_(pt),fr=o(pt),Ar=o(it),Ir=U(Me*nr+qe*fr*Ar),ri=_(Ir),li=n(ri)>v?Ir/ri:1;return[li*qe*_(it),(n(it)>T?li:-li)*(Me*fr-qe*nr*Ar)]}return lt.invert=function(it,pt){var Ht=G(it*it+pt*pt),nr=-_(Ht),fr=o(Ht),Ar=Ht*fr,Ir=-pt*nr,ri=Ht*Me,li=G(Ar*Ar+Ir*Ir-ri*ri),Ei=a(Ar*ri+Ir*li,Ir*ri-Ar*li),hn=(Ht>T?-1:1)*a(it*nr,Ht*o(Ei)*fr+pt*_(Ei)*nr);return Ve.invert(hn,Ei)},lt}function fa(he){var Me=_(he),qe=o(he);return function(Ve,lt){var it=o(lt),pt=o(Ve)*it,Ht=_(Ve)*it,nr=_(lt);return[a(Ht,pt*qe-nr*Me),B(nr*qe+pt*Me)]}}function kn(){var he=0,Me=t.geoProjectionMutator(Yo),qe=Me(he),Ve=qe.rotate,lt=qe.stream,it=t.geoCircle();return qe.parallel=function(pt){if(!arguments.length)return he*P;var Ht=qe.rotate();return Me(he=pt*A).rotate(Ht)},qe.rotate=function(pt){return arguments.length?(Ve.call(qe,[pt[0],pt[1]-he*P]),it.center([-pt[0],-pt[1]]),qe):(pt=Ve.call(qe),pt[1]+=he*P,pt)},qe.stream=function(pt){return pt=lt(pt),pt.sphere=function(){pt.polygonStart();var Ht=.01,nr=it.radius(90-Ht)().coordinates[0],fr=nr.length-1,Ar=-1,Ir;for(pt.lineStart();++Ar=0;)pt.point((Ir=nr[Ar])[0],Ir[1]);pt.lineEnd(),pt.polygonEnd()},pt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=B(1-1/Ta)*P,uo=rr(0);function ls(he){var Me=ys*A,qe=ft(E,Me)[0]-ft(-E,Me)[0],Ve=uo(0,Me)[1],lt=ft(0,Me)[1],it=M-lt,pt=m/he,Ht=4/m,nr=Ve+it*it*4/m;function fr(Ar,Ir){var ri,li=n(Ir);if(li>Me){var Ei=c(he-1,f(0,u((Ar+E)/pt)));Ar+=E*(he-1)/he-Ei*pt,ri=ft(Ar,li),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Ei*m/he,ri[1]=Ve+(ri[1]-lt)*4*it/m,Ir<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Ir);return ri[0]*=Ht,ri[1]/=nr,ri}return fr.invert=function(Ar,Ir){Ar/=Ht,Ir*=nr;var ri=n(Ir);if(ri>Ve){var li=c(he-1,f(0,u((Ar+E)/pt)));Ar=(Ar+E*(he-1)/he-li*pt)*qe/m;var Ei=ft.invert(Ar,.25*(ri-Ve)*m/it+lt);return Ei[0]-=E*(he-1)/he-li*pt,Ir<0&&(Ei[1]=-Ei[1]),Ei}return uo.invert(Ar,Ir)},fr}function $a(he,Me){return[he,Me&1?90-v:ys]}function fo(he,Me){return[he,Me&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Me=[].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?Me.map(mn):Me]}}function wa(){var he=4,Me=t.geoProjectionMutator(ls),qe=Me(he),Ve=qe.stream;return qe.lobes=function(lt){return arguments.length?Me(he=+lt):he},qe.stream=function(lt){var it=qe.rotate(),pt=Ve(lt),Ht=(qe.rotate([0,0]),Ve(lt));return qe.rotate(it),pt.sphere=function(){t.geoStream(ra(180/he),Ht)},pt},qe.scale(239.75)}function ws(he){var Me=1+he,qe=_(1/Me),Ve=B(qe),lt=2*G(E/(it=E+4*Ve*Me)),it,pt=.5*lt*(Me+G(he*(2+he))),Ht=he*he,nr=Me*Me;function fr(Ar,Ir){var ri=1-_(Ir),li,Ei;if(ri&&ri<2){var hn=T-Ir,Zn=25,Yn;do{var Ua=_(hn),Fo=o(hn),vl=Ve+a(Ua,Me-Fo),Us=1+nr-2*Me*Fo;hn-=Yn=(hn-Ht*Ve-Me*Ua+Us*vl-.5*ri*it)/(2*Me*Ua*vl)}while(n(Yn)>C&&--Zn>0);li=lt*G(Us),Ei=Ar*vl/E}else li=lt*(he+ri),Ei=Ar*Ve/E;return[li*_(Ei),pt-li*o(Ei)]}return fr.invert=function(Ar,Ir){var ri=Ar*Ar+(Ir-=pt)*Ir,li=(1+nr-ri/(lt*lt))/(2*Me),Ei=U(li),hn=_(Ei),Zn=Ve+a(hn,Me-li);return[B(Ar/G(ri))*E/Zn,B(1-2*(Ei-Ht*Ve-Me*hn+(1+nr-2*Me*li)*Zn)/it)]},fr}function Co(){var he=1,Me=t.geoProjectionMutator(ws),qe=Me(he);return qe.ratio=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,Wi=.0528035274542;function gn(he,Me){return Me>-Po?(he=Bt(he,Me),he[1]+=Wi,he):Je(he,Me)}gn.invert=function(he,Me){return Me>-Po?Bt.invert(he,Me-Wi):Je.invert(he,Me)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Me){return n(Me)>Po?(he=Bt(he,Me),he[1]-=Me>0?Wi:-Wi,he):Je(he,Me)}Ha.invert=function(he,Me){return n(Me)>Po?Bt.invert(he,Me+(Me>0?Wi:-Wi)):Je.invert(he,Me)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Me,qe,Ve){var lt=G(4*E/(2*qe+(1+he-Me/2)*_(2*qe)+(he+Me)/2*_(4*qe)+Me/2*_(6*qe))),it=G(Ve*_(qe)*G((1+he*o(2*qe)+Me*o(4*qe))/(1+he+Me))),pt=qe*nr(1);function Ht(Ir){return G(1+he*o(2*Ir)+Me*o(4*Ir))}function nr(Ir){var ri=Ir*qe;return(2*ri+(1+he-Me/2)*_(2*ri)+(he+Me)/2*_(4*ri)+Me/2*_(6*ri))/qe}function fr(Ir){return Ht(Ir)*_(Ir)}var Ar=function(Ir,ri){var li=qe*qt(nr,pt*_(ri)/qe,ri/E);isNaN(li)&&(li=qe*p(ri));var Ei=lt*Ht(li);return[Ei*it*Ir/E*o(li),Ei/it*_(li)]};return Ar.invert=function(Ir,ri){var li=qt(fr,ri*it/lt);return[Ir*E/(o(li)*lt*it*Ht(li)),B(qe*nr(li/qe)/pt)]},qe===0&&(lt=G(Ve/E),Ar=function(Ir,ri){return[Ir*lt,_(ri)/lt]},Ar.invert=function(Ir,ri){return[Ir/lt,B(ri*lt)]}),Ar}function Ba(){var he=1,Me=0,qe=45*A,Ve=2,lt=t.geoProjectionMutator(ao),it=lt(he,Me,qe,Ve);return it.a=function(pt){return arguments.length?lt(he=+pt,Me,qe,Ve):he},it.b=function(pt){return arguments.length?lt(he,Me=+pt,qe,Ve):Me},it.psiMax=function(pt){return arguments.length?lt(he,Me,qe=+pt*A,Ve):qe*P},it.ratio=function(pt){return arguments.length?lt(he,Me,qe,Ve=+pt):Ve},it.scale(180.739)}function Ko(he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar){if(Ar.nanEncountered)return NaN;var Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl;if(Ir=qe-Me,ri=he(Me+Ir*.25),li=he(qe-Ir*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(li)){Ar.nanEncountered=!0;return}return Ei=Ir*(Ve+4*ri+lt)/12,hn=Ir*(lt+4*li+it)/12,Zn=Ei+hn,vl=(Zn-pt)/15,fr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>li?hn=Zn:Ei=Zn,Zn=Ei+hn>>1;while(Zn>Ei);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(li-nr[Zn+1])/Yn),(Zn+1+Yn)/pt}var Ir=2*Ar(1)/E*it/qe,ri=function(li,Ei){var hn=Ar(n(_(Ei))),Zn=Ve(hn)*li;return hn/=Ir,[Zn,Ei>=0?hn:-hn]};return ri.invert=function(li,Ei){var hn;return Ei*=Ir,n(Ei)<1&&(hn=p(Ei)*B(lt(n(Ei))*it)),[li/Ve(n(Ei)),hn]},ri}function Sa(){var he=0,Me=2.5,qe=1.183136,Ve=t.geoProjectionMutator(Hi),lt=Ve(he,Me,qe);return lt.alpha=function(it){return arguments.length?Ve(he=+it,Me,qe):he},lt.k=function(it){return arguments.length?Ve(he,Me=+it,qe):Me},lt.gamma=function(it){return arguments.length?Ve(he,Me,qe=+it):qe},lt.scale(152.63)}function Qa(he,Me){return n(he[0]-Me[0])=0;--nr)qe=he[1][nr],Ve=qe[0][0],lt=qe[0][1],it=qe[1][1],pt=qe[2][0],Ht=qe[2][1],Me.push(vn([[pt-v,Ht-v],[pt-v,it+v],[Ve+v,it+v],[Ve+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Me)]}}function la(he,Me,qe){var Ve,lt;function it(nr,fr){for(var Ar=fr<0?-1:1,Ir=Me[+(fr<0)],ri=0,li=Ir.length-1;riIr[ri][2][0];++ri);var Ei=he(nr-Ir[ri][1][0],fr);return Ei[0]+=he(Ir[ri][1][0],Ar*fr>Ar*Ir[ri][0][1]?Ir[ri][0][1]:fr)[0],Ei}qe?it.invert=qe(it):he.invert&&(it.invert=function(nr,fr){for(var Ar=lt[+(fr<0)],Ir=Me[+(fr<0)],ri=0,li=Ar.length;riEi&&(hn=li,li=Ei,Ei=hn),[[Ir,li],[ri,Ei]]})}),pt):Me.map(function(fr){return fr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Me!=null&&pt.lobes(Me),pt}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(ot,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(Bt,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(Bt,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,at).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 Oa(){return la(Je,Ns).scale(152.63).rotate([-20,0])}function ha(he,Me){return[3/m*he*G(E*E/3-Me*Me),Me]}ha.invert=function(he,Me){return[m/3*he/G(E*E/3-Me*Me),Me]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Me(qe,Ve){if(n(n(Ve)-T)2)return null;qe/=2,Ve/=2;var it=qe*qe,pt=Ve*Ve,Ht=2*Ve/(1+it+pt);return Ht=h((1+Ht)/(1-Ht),1/he),[a(2*qe,1-it-pt)/he,B((Ht-1)/(Ht+1))]},Me}function _n(){var he=.5,Me=t.geoProjectionMutator(Ya),qe=Me(he);return qe.spacing=function(Ve){return arguments.length?Me(he=+Ve):he},qe.scale(124.75)}var Vn=E/k;function wo(he,Me){return[he*(1+G(o(Me)))/2,Me/(o(Me/2)*o(he/6))]}wo.invert=function(he,Me){var qe=n(he),Ve=n(Me),lt=v,it=T;Vev||n(Zn)>v)&&--lt>0);return lt&&[qe,Ve]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Me){return[_(he)/o(Me),b(Me)*o(he)]}$n.invert=function(he,Me){var qe=he*he,Ve=Me*Me,lt=Ve+1,it=qe+lt,pt=he?x*G((it-G(it*it-4*qe))/qe):1/G(lt);return[B(he*pt),p(Me)*U(pt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Me=o(he),qe=b(L+he/2);function Ve(lt,it){var pt=it-he,Ht=n(pt)=0;)Ar=he[fr],Ir=Ar[0]+Ht*(li=Ir)-nr*ri,ri=Ar[1]+Ht*ri+nr*li;return Ir=Ht*(li=Ir)-nr*ri,ri=Ht*ri+nr*li,[Ir,ri]}return qe.invert=function(Ve,lt){var it=20,pt=Ve,Ht=lt;do{for(var nr=Me,fr=he[nr],Ar=fr[0],Ir=fr[1],ri=0,li=0,Ei;--nr>=0;)fr=he[nr],ri=Ar+pt*(Ei=ri)-Ht*li,li=Ir+pt*li+Ht*Ei,Ar=fr[0]+pt*(Ei=Ar)-Ht*Ir,Ir=fr[1]+pt*Ir+Ht*Ei;ri=Ar+pt*(Ei=ri)-Ht*li,li=Ir+pt*li+Ht*Ei,Ar=pt*(Ei=Ar)-Ht*Ir-Ve,Ir=pt*Ir+Ht*Ei-lt;var hn=ri*ri+li*li,Zn,Yn;pt-=Zn=(Ar*ri+Ir*li)/hn,Ht-=Yn=(Ir*ri-Ar*li)/hn}while(n(Zn)+n(Yn)>v*v&&--it>0);if(it){var Ua=G(pt*pt+Ht*Ht),Fo=2*i(Ua*.5),vl=_(Fo);return[a(pt*vl,Ua*o(Fo)),Ua?B(Ht*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]],rn=[[.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(rn,[-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,Me){var qe=t.geoProjection(eo(he)).rotate(Me).clipAngle(90),Ve=t.geoRotation(Me),lt=qe.center;return delete qe.rotate,qe.center=function(it){return arguments.length?lt(Ve(it)):Ve.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Me){var qe=B(7*_(Me)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*_(qe/3)/Ca]}Es.invert=function(he,Me){var qe=3*B(Me*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),B(_(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Me){for(var qe=(1+x)*_(Me),Ve=Me,lt=0,it;lt<25&&(Ve-=it=(_(Ve/2)+_(Ve)-qe)/(.5*o(Ve/2)+o(Ve)),!(n(it)C&&--Ve>0);return it=qe*qe,pt=it*it,Ht=it*pt,[he/(.84719-.13063*it+Ht*Ht*(-.04515+.05494*it-.02326*pt+.00331*Ht)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Me){return[he*(1+o(Me))/2,2*(Me-b(Me/2))]}ln.invert=function(he,Me){for(var qe=Me/2,Ve=0,lt=1/0;Ve<10&&n(lt)>v;++Ve){var it=o(Me/2);Me-=lt=(Me-b(Me/2)-qe)/(1-.5/(it*it))}return[2*he/(1+o(Me)),Me]};function Bo(){return t.geoProjection(ln).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,Me){var qe=_(Me),Ve=o(Me),lt=p(he);if(he===0||n(Me)===T)return[0,Me];if(Me===0)return[he,0];if(n(he)===T)return[he*Ve,T*qe];var it=E/(2*he)-2*he/E,pt=2*Me/E,Ht=(1-pt*pt)/(qe-pt),nr=it*it,fr=Ht*Ht,Ar=1+nr/fr,Ir=1+fr/nr,ri=(it*qe/Ht-it/2)/Ar,li=(fr*qe/nr+Ht/2)/Ir,Ei=ri*ri+Ve*Ve/Ar,hn=li*li-(fr*qe*qe/nr+Ht*qe-1)/Ir;return[T*(ri+G(Ei)*lt),T*(li+G(hn<0?0:hn)*p(-Me*it)*lt)]}za.invert=function(he,Me){he/=T,Me/=T;var qe=he*he,Ve=Me*Me,lt=qe+Ve,it=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,qt(function(pt){return lt*(E*_(pt)-2*pt)*E+4*pt*pt*(Me-_(pt))+2*E*pt-it*Me},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,Me){var qe=Me*Me;return[he,Me*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Me){Me>ho?Me=ho:Me<-ho&&(Me=-ho);var qe=Me,Ve;do{var lt=qe*qe;qe-=Ve=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Me)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(Ve)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Me){if(n(Me)v&&--lt>0);return pt=b(Ve),[(n(Me)=0;)if(Ve=Me[Ht],qe[0]===Ve[0]&&qe[1]===Ve[1]){if(it)return[it,qe];it=qe}}}function Aa(he){for(var Me=he.length,qe=[],Ve=he[Me-1],lt=0;lt0?[-Ve[0],0]:[180-Ve[0],180])};var Me=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,Ve){var lt=Me[qe];lt&&(lt.children||(lt.children=[])).push(Me[Ve])}),Gs(Me[0],function(qe,Ve){return Me[qe<-E/2?Ve<0?6:4:qe<0?Ve<0?2:0:qeVe^li>Ve&&qe<(ri-fr)*(Ve-Ar)/(li-Ar)+fr&&(lt=!lt)}return lt}function Hs(he,Me){var qe=Me.stream,Ve;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":Ve=tl;break;case"FeatureCollection":Ve=Ro;break;default:Ve=hl;break}return Ve(he,qe)}function Ro(he,Me){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Me)})}}function tl(he,Me){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Me)}}function Fs(he,Me){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Me)})}}function hl(he,Me){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Me);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,Me(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Me){Fa.push([he,Me])},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,Me){Fa.push([he,Me])},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,Me){Fa.push([he,Me])},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=[],Me=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Me.push(qe)}),Me.forEach(function(qe){var Ve=qe[0];he.some(function(lt){if(el(lt[0],Ve))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Me=he(T,0)[0]-he(-T,0)[0];function qe(Ve,lt){var it=n(Ve)0?Ve-E:Ve+E,lt),Ht=(pt[0]-pt[1])*x,nr=(pt[0]+pt[1])*x;if(it)return[Ht,nr];var fr=Me*x,Ar=Ht>0^nr>0?-1:1;return[Ar*Ht-p(nr)*fr,Ar*nr-p(Ht)*fr]}return he.invert&&(qe.invert=function(Ve,lt){var it=(Ve+lt)*x,pt=(lt-Ve)*x,Ht=n(it)<.5*Me&&n(pt)<.5*Me;if(!Ht){var nr=Me*x,fr=it>0^pt>0?-1:1,Ar=-fr*Ve+(pt>0?1:-1)*nr,Ir=-fr*lt+(it>0?1:-1)*nr;it=(-Ar-Ir)*x,pt=(Ar-Ir)*x}var ri=he.invert(it,pt);return Ht||(ri[0]+=it>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function Tt(){return Bs(ii).scale(176.423)}function Vt(){return Bs(ka).scale(111.48)}function wr(he,Me){if(!(0<=(Me=+Me)&&Me<=20))throw new Error("invalid digits");function qe(fr){var Ar=fr.length,Ir=2,ri=new Array(Ar);for(ri[0]=+fr[0].toFixed(Me),ri[1]=+fr[1].toFixed(Me);Ir2||li[0]!=Ar[0]||li[1]!=Ar[1])&&(Ir.push(li),Ar=li)}return Ir.length===1&&fr.length>1&&Ir.push(qe(fr[fr.length-1])),Ir}function it(fr){return fr.map(lt)}function pt(fr){if(fr==null)return fr;var Ar;switch(fr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:fr.geometries.map(pt)};break;case"Point":Ar={type:"Point",coordinates:qe(fr.coordinates)};break;case"MultiPoint":Ar={type:fr.type,coordinates:Ve(fr.coordinates)};break;case"LineString":Ar={type:fr.type,coordinates:lt(fr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:fr.type,coordinates:it(fr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:fr.coordinates.map(it)};break;default:return fr}return fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}function Ht(fr){var Ar={type:"Feature",properties:fr.properties,geometry:pt(fr.geometry)};return fr.id!=null&&(Ar.id=fr.id),fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Ht(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Ht)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return pt(he)}return he}function mr(he){var Me=_(he);function qe(Ve,lt){var it=Me?b(Ve*Me/2)/Me:Ve/2;if(!lt)return[2*it,-he];var pt=2*i(it*_(lt)),Ht=1/b(lt);return[_(pt)*Ht,lt+(1-o(pt))*Ht-he]}return qe.invert=function(Ve,lt){if(n(lt+=he)v&&--Ht>0);var ri=Ve*(fr=b(pt)),li=b(n(lt)0?T:-T)*(nr+lt*(Ar-pt)/2+lt*lt*(Ar-2*nr+pt)/2)]}Si.invert=function(he,Me){var qe=Me/T,Ve=qe*90,lt=c(18,n(Ve/5)),it=f(0,u(lt));do{var pt=_i[it][1],Ht=_i[it+1][1],nr=_i[c(19,it+2)][1],fr=nr-pt,Ar=nr-2*Ht+pt,Ir=2*(n(qe)-Ht)/fr,ri=Ar/fr,li=Ir*(1-ri*Ir*(1-2*ri*Ir));if(li>=0||it===1){Ve=(Me>=0?5:-5)*(li+lt);var Ei=50,hn;do lt=c(18,n(Ve)/5),it=u(lt),li=lt-it,pt=_i[it][1],Ht=_i[it+1][1],nr=_i[c(19,it+2)][1],Ve-=(hn=(Me>=0?T:-T)*(Ht+li*(nr-pt)/2+li*li*(nr-2*Ht+pt)/2)-Me)*P;while(n(hn)>C&&--Ei>0);break}}while(--it>=0);var Zn=_i[it][0],Yn=_i[it+1][0],Ua=_i[c(19,it+2)][0];return[he/(Yn+li*(Ua-Zn)/2+li*li*(Ua-2*Yn+Zn)/2),Ve*A]};function Ci(){return t.geoProjection(Si).scale(152.63)}function Ki(he){function Me(qe,Ve){var lt=o(Ve),it=(he-1)/(he-lt*o(qe));return[it*lt*_(qe),it*_(Ve)]}return Me.invert=function(qe,Ve){var lt=qe*qe+Ve*Ve,it=G(lt),pt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/it+it/(he-1));return[a(qe*pt,it*G(1-pt*pt)),it?B(Ve*pt/it):0]},Me}function Fn(he,Me){var qe=Ki(he);if(!Me)return qe;var Ve=o(Me),lt=_(Me);function it(pt,Ht){var nr=qe(pt,Ht),fr=nr[1],Ar=fr*lt/(he-1)+Ve;return[nr[0]*Ve/Ar,fr/Ar]}return it.invert=function(pt,Ht){var nr=(he-1)/(he-1-Ht*lt);return qe.invert(nr*pt,nr*Ht*Ve)},it}function Pi(){var he=2,Me=0,qe=t.geoProjectionMutator(Fn),Ve=qe(he,Me);return Ve.distance=function(lt){return arguments.length?qe(he=+lt,Me):he},Ve.tilt=function(lt){return arguments.length?qe(he,Me=lt*A):Me*P},Ve.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var di=1e-4,Li=1e4,Mi=-180,Gn=Mi+di,ta=180,ya=ta-di,ia=-90,pa=ia+di,va=90,zn=va-di;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Mi,Cs(he)]}function dl(he){var Me=he[0],qe=he[1],Ve=!1;return Me<=Gn?(Me=Mi,Ve=!0):Me>=ya&&(Me=ta,Ve=!0),qe<=pa?(qe=ia,Ve=!0):qe>=zn&&(qe=va,Ve=!0),Ve?[Me,qe]:he}function xl(he){return he.map(dl)}function Bl(he,Me,qe){for(var Ve=0,lt=he.length;Ve=ya||Ar<=pa||Ar>=zn){it[pt]=dl(nr);for(var Ir=pt+1;IrGn&&lipa&&Ei=Ht)break;qe.push({index:-1,polygon:Me,ring:it=it.slice(Ir-1)}),it[0]=Ks(it[0][1]),pt=-1,Ht=it.length}}}}function bl(he){var Me,qe=he.length,Ve={},lt={},it,pt,Ht,nr,fr;for(Me=0;Me0?E-Ht:Ht)*P],fr=t.geoProjection(he(pt)).rotate(nr),Ar=t.geoRotation(nr),Ir=fr.center;return delete fr.rotate,fr.center=function(ri){return arguments.length?Ir(Ar(ri)):Ar.invert(Ir())},fr.clipAngle(90)}function cs(he){var Me=o(he);function qe(Ve,lt){var it=t.geoGnomonicRaw(Ve,lt);return it[0]*=Me,it}return qe.invert=function(Ve,lt){return t.geoGnomonicRaw.invert(Ve/Me,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Me){return Js(cs,he,Me)}function nl(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Me=-he/2,qe=-Me,Ve=he*he,lt=b(qe),it=.5/_(qe);function pt(Ht,nr){var fr=U(o(nr)*o(Ht-Me)),Ar=U(o(nr)*o(Ht-qe)),Ir=nr<0?-1:1;return fr*=fr,Ar*=Ar,[(fr-Ar)/(2*he),Ir*G(4*Ve*Ar-(Ve-fr+Ar)*(Ve-fr+Ar))/(2*he)]}return pt.invert=function(Ht,nr){var fr=nr*nr,Ar=o(G(fr+(ri=Ht+Me)*ri)),Ir=o(G(fr+(ri=Ht+qe)*ri)),ri,li;return[a(li=Ar-Ir,ri=(Ar+Ir)*lt),(nr<0?-1:1)*U(G(ri*ri+li*li)*it)]},pt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Me){return Js(nl,he,Me)}function Rl(he,Me){if(n(Me)v&&--Ht>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*pt]};function Nl(){return t.geoProjection(Gl).scale(127.16)}function le(he,Me,qe,Ve,lt){function it(pt,Ht){var nr=qe*_(Ve*Ht),fr=G(1-nr*nr),Ar=G(2/(1+fr*o(pt*=lt)));return[he*fr*Ar*_(pt),Me*nr*Ar]}return it.invert=function(pt,Ht){var nr=pt/he,fr=Ht/Me,Ar=G(nr*nr+fr*fr),Ir=2*B(Ar/2);return[a(pt*b(Ir),he*Ar)/lt,Ar&&B(Ht*_(Ir)/(Me*qe*Ar))/Ve]},it}function w(he,Me,qe,Ve){var lt=E/3;he=f(he,v),Me=f(Me,v),he=c(he,T),Me=c(Me,E-v),qe=f(qe,0),qe=c(qe,100-v),Ve=f(Ve,v);var it=qe/100+1,pt=Ve/100,Ht=U(it*o(lt))/lt,nr=_(he)/_(Ht*T),fr=Me/E,Ar=G(pt*_(he/2)/_(Me/2)),Ir=Ar/G(fr*nr*Ht),ri=1/(Ar*G(fr*nr*Ht));return le(Ir,ri,nr,Ht,fr)}function q(){var he=65*A,Me=60*A,qe=20,Ve=200,lt=t.geoProjectionMutator(w),it=lt(he,Me,qe,Ve);return it.poleline=function(pt){return arguments.length?lt(he=+pt*A,Me,qe,Ve):he*P},it.parallels=function(pt){return arguments.length?lt(he,Me=+pt*A,qe,Ve):Me*P},it.inflation=function(pt){return arguments.length?lt(he,Me,qe=+pt,Ve):qe},it.ratio=function(pt){return arguments.length?lt(he,Me,qe,Ve=+pt):Ve},it.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),ue=2*G(2*E*G(3)/ee),Ue=Mt(ue*G(3)/E,ue,ee/6);function rt(){return t.geoProjection(Ue).scale(176.84)}function mt(he,Me){return[he*G(1-3*Me*Me/(E*E)),Me]}mt.invert=function(he,Me){return[he/G(1-3*Me*Me/(E*E)),Me]};function Ft(){return t.geoProjection(mt).scale(152.63)}function ir(he,Me){var qe=o(Me),Ve=o(he)*qe,lt=1-Ve,it=o(he=a(_(he)*qe,-_(Me))),pt=_(he);return qe=G(1-Ve*Ve),[pt*qe-it*lt,-it*qe-pt*lt]}ir.invert=function(he,Me){var qe=(he*he+Me*Me)/-2,Ve=G(-qe*(2+qe)),lt=Me*qe+he*Ve,it=he*qe-Me*Ve,pt=G(it*it+lt*lt);return[a(Ve*lt,pt*(1+qe)),pt?-B(Ve*it/pt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Me){var qe=ze(he,Me);return[(qe[0]+he/T)/2,(qe[1]+Me)/2]}kr.invert=function(he,Me){var qe=he,Ve=Me,lt=25;do{var it=o(Ve),pt=_(Ve),Ht=_(2*Ve),nr=pt*pt,fr=it*it,Ar=_(qe),Ir=o(qe/2),ri=_(qe/2),li=ri*ri,Ei=1-fr*Ir*Ir,hn=Ei?U(it*Ir)*G(Zn=1/Ei):Zn=0,Zn,Yn=.5*(2*hn*it*ri+qe/T)-he,Ua=.5*(hn*pt+Ve)-Me,Fo=.5*Zn*(fr*li+hn*it*Ir*nr)+.5/T,vl=Zn*(Ar*Ht/4-hn*pt*ri),Us=.125*Zn*(Ht*ri-hn*pt*fr*Ar),ml=.5*Zn*(nr*Ir+hn*li*it)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ve-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ve]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=ge,e.geoAiryRaw=ae,e.geoAitoff=Le,e.geoAitoffRaw=ze,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=xe,e.geoBakerRaw=De,e.geoBerghaus=ce,e.geoBerghausRaw=Ne,e.geoBertin1953=Ct,e.geoBertin1953Raw=Ke,e.geoBoggs=At,e.geoBoggsRaw=ot,e.geoBonne=tt,e.geoBonneRaw=nt,e.geoBottomley=Yt,e.geoBottomleyRaw=It,e.geoBromley=_r,e.geoBromleyRaw=cr,e.geoChamberlin=Fe,e.geoChamberlinRaw=be,e.geoChamberlinAfrica=Ie,e.geoCollignon=ye,e.geoCollignonRaw=ft,e.geoCraig=pe,e.geoCraigRaw=fe,e.geoCraster=zt,e.geoCrasterRaw=Pt,e.geoCylindricalEqualArea=Gr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Er,e.geoCylindricalStereographicRaw=Br,e.geoEckert1=pi,e.geoEckert1Raw=Rr,e.geoEckert2=ni,e.geoEckert2Raw=Di,e.geoEckert3=Qi,e.geoEckert3Raw=$i,e.geoEckert4=Ti,e.geoEckert4Raw=si,e.geoEckert5=Rt,e.geoEckert5Raw=Ni,e.geoEckert6=Gt,e.geoEckert6Raw=yt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=xr,e.geoFahey=Hr,e.geoFaheyRaw=Or,e.geoFoucaut=gi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=ki,e.geoGilbert=Yr,e.geoGingery=nn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ii,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=bi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ct,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ii,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=gt,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=Ba,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=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,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=Zt,e.geoMollweideRaw=Bt,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=Bo,e.geoNellHammerRaw=ln,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=Tt,e.geoPeirceQuincuncial=Vt,e.geoPierceQuincuncial=Vt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Fr,e.geoRectangularPolyconicRaw=mr,e.geoRobinson=Ci,e.geoRobinsonRaw=Si,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=He,e.geoSinusoidalRaw=Je,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=Os,e.geoVanDerGrinten4=Nl,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=rt,e.geoWagner4Raw=Ue,e.geoWagner6=Ft,e.geoWagner6Raw=mt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var tFe=Te((i1r,eFe)=>{"use strict";var sd=Jl(),JZ=ei(),ABt=$l(),rS=Math.PI/180,tw=180/Math.PI,QZ={cursor:"pointer"},eY={cursor:"auto"};function TBt(e,t){var r=e.projection,n;return t._isScoped?n=SBt:t._isClipped?n=EBt:n=MBt,n(e,r)}eFe.exports=TBt;function tY(e,t){return sd.behavior.zoom().translate(t.translate()).scale(t.scale())}function rY(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]=JZ.nestedProperty(o,h).get(),ABt.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=JZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),JZ.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 SBt(e,t){var r=tY(e,t);function n(){sd.select(this).style(QZ)}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(eY),rY(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function MBt(e,t){var r=tY(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){sd.select(this).style(QZ),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(),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":-E[0]})}function v(){sd.select(this).style(eY),h&&rY(e,t,C)}function C(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",v),r}function EBt(e,t){var r={r:t.rotate(),k:t.scale()},n=tY(e,t),i=DBt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){sd.select(this).style(QZ);var h=sd.mouse(this),d=t.rotate(),p=d,_=t.translate(),b=kBt(d);s=FF(t,h),o.call(n,"zoom",function(){var v=sd.mouse(this);if(t.scale(r.k=sd.event.scale),!s)h=v,s=FF(t,h);else if(FF(t,v)){t.rotate(d).translate(_);var C=FF(t,v),E=LBt(s,C),T=zBt(CBt(b,E)),L=r.r=PBt(T,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(eY),o.call(n,"zoom",null),f(i.of(this,arguments)),rY(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 FF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&IBt(r)}function kBt(e){var t=.5*e[0]*rS,r=.5*e[1]*rS,n=.5*e[2]*rS,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 CBt(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 LBt(e,t){if(!(!e||!t)){var r=RBt(e,t),n=Math.sqrt(Q6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,Q6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function PBt(e,t,r){var n=$Z(t,2,e[0]);n=$Z(n,1,e[1]),n=$Z(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)*tw,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)*tw-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,_=(Math.atan2(l,s)-Math.atan2(o,h))*tw,b=(Math.atan2(l,s)-Math.atan2(o,-h))*tw,v=J6e(r[0],r[1],d,_),C=J6e(r[0],r[1],p,b);return v<=C?[d,_,r[2]]:[p,b,r[2]]}function J6e(e,t,r,n){var i=$6e(r-e),a=$6e(n-t);return Math.sqrt(i*i+a*a)}function $6e(e){return(e%360+540)%360-180}function $Z(e,t,r){var n=r*rS,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 zBt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*tw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*tw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*tw]}function IBt(e){var t=e[0]*rS,r=e[1]*rS,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function Q6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=Jl(),aY=KZ(),FBt=aY.geoPath,BBt=aY.geoDistance,OBt=K6e(),qBt=$l(),vk=ei(),NBt=vk.strTranslate,BF=jl(),pk=Mu(),rFe=Xc(),UBt=Cc(),nY=wu(),iFe=Mm().getAutoRange,iY=xp(),VBt=oh().prepSelect,GBt=oh().clearOutline,HBt=oh().selectOnClick,WBt=tFe(),hv=fk(),jBt=hx(),aFe=bF(),XBt=DZ().feature;function oFe(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=oFe.prototype;sFe.exports=function(t){return new oFe(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),UBt.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=ZBt(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||{},_=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=iFe(r,l),f.range=iFe(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 E=o.type,T=hv.lonaxisSpan[E]/2||180,L=hv.lataxisSpan[E]/2||90;_=[v-T,v+T],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=nFe(_,b);c.fitExtent(h,x);var k=this.bounds=c.getBounds(x),M=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(nFe(l.range,f.range)),A=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(A)?c.scale(A*M):vk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*M);var F=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(c.translate([m[0]+(F[0]-m[0]),m[1]+(F[1]-m[1])]).clipExtent(k),n._isAlbersUsa){var B=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(B[0]-U[0]),U[1]-(B[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(XBt(n,n.objects[h])):o(h)&&d.datum(YBt(h,t,e)).call(BF.stroke,t[h].gridcolor).call(pk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(BF.stroke,t[p+"color"]).call(pk.dashLine,"",t[p+"width"]):u(h)&&d.call(BF.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(BF.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];qBt.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&&GBt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(WBt(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){VBt(c,h,d,f,a)},iY.init(f)),i.on("mousemove",function(){var c=r.projection.invert(vk.getPositionFromD3Event());if(!c)return iY.unhover(n,l1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},rFe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||iY.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&HBt(l1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&rFe.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"},nY.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?NBt(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 ZBt(e){var t=e.projection,r=t.type,n=hv.projNames[r];n="geo"+vk.titleCase(n);for(var i=aY[n]||OBt[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 FBt().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 YBt(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};nY.setConvert(f,r);var c=nY.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 oY=Te((a1r,cFe)=>{"use strict";var nS=Oh(),KBt=zc().attributes,JBt=Id().dash,iS=fk(),$Bt=Sc().overrideAll,uFe=t_(),fFe={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:nS.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:JBt},QBt=cFe.exports=$Bt({domain:KBt({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:uFe(iS.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:uFe(iS.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:nS.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:iS.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:iS.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:iS.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:iS.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:nS.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:nS.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:nS.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:nS.background},lonaxis:fFe,lataxis:fFe},"plot","from-root");QBt.uirevision={valType:"any",editType:"none"}});var pFe=Te((o1r,dFe)=>{"use strict";var OF=ei(),e9t=B_(),t9t=Rd().getSubplotData,qF=fk(),r9t=oY(),hFe=qF.axesNames;dFe.exports=function(t,r,n){e9t(t,r,n,{type:"geo",attributes:r9t,handleDefaults:i9t,fullData:n,partition:"y"})};function i9t(e,t,r,n){var i=t9t(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=qF.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=!!qF.lonaxisSpan[l];if(e.visible===!1){var _=OF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),v,C=0;C0&&B<0&&(B+=360);var U=(F+B)/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=(A[0]+A[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 sY=Te((s1r,yFe)=>{"use strict";var n9t=Rd().getSubplotCalcData,a9t=ei().counterRegex,o9t=lFe(),Qy="geo",vFe=a9t(Qy),mFe={};mFe[Qy]={valType:"subplotid",dflt:Qy,editType:"calc"};function s9t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Qy],i=0;i{"use strict";gFe.exports={attributes:ew(),supplyDefaults:QDe(),colorbar:ep(),formatLabels:r6e(),calc:_F(),calcGeoJSON:YZ().calcGeoJSON,plot:YZ().plot,style:WZ(),styleOnSelect:sv().styleOnSelect,hoverPoints:U6e(),eventData:G6e(),selectPoints:j6e(),moduleType:"trace",name:"scattergeo",basePlotModule:sY(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var bFe=Te((u1r,xFe)=>{"use strict";xFe.exports=_Fe()});var aS=Te((f1r,TFe)=>{"use strict";var{hovertemplateAttrs:f9t,templatefallbackAttrs:c9t}=Ff(),px=ew(),h9t=nc(),wFe=Gf(),d9t=Oh().defaultLine,dx=Su().extendFlat,AFe=px.marker.line;TFe.exports=dx({locations:{valType:"data_array",editType:"calc"},locationmode:px.locationmode,z:{valType:"data_array",editType:"calc"},geojson:dx({},px.geojson,{}),featureidkey:px.featureidkey,text:dx({},px.text,{}),hovertext:dx({},px.hovertext,{}),marker:{line:{color:dx({},AFe.color,{dflt:d9t}),width:dx({},AFe.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:dx({},wFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:f9t(),hovertemplatefallback:c9t(),showlegend:dx({},wFe.showlegend,{dflt:!1})},h9t("",{cLetter:"z",editTypeOverride:"calc"}))});var MFe=Te((c1r,SFe)=>{"use strict";var mk=ei(),p9t=nd(),v9t=aS(),m9t=["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(" ");SFe.exports=function(t,r,n,i){function a(h,d){return mk.coerce(t,r,v9t,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(m9t),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"),p9t(t,r,i,a,{prefix:"",cLetter:"z"}),mk.coerceSelectionMarkerOpacity(r,a)}});var NF=Te((h1r,CFe)=>{"use strict";var EFe=ku(),y9t=rf().BADNUM,g9t=gp(),_9t=Iy(),x9t=B0();function kFe(e){return e&&typeof e=="string"}CFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return kFe(f)||EFe(f)}:a=kFe;for(var o=0;o{"use strict";var b9t=Jl(),w9t=jl(),lY=Mu(),A9t=_c();function T9t(e,t){t&&LFe(e,t)}function LFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=A9t.makeColorScaleFuncFromTrace(r);i.each(function(u){b9t.select(this).attr("fill",s(u.z)).call(w9t.stroke,u.mlc||o.color).call(lY.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),lY.selectedPointStyle(i,r)}function S9t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?lY.selectedPointStyle(r.selectAll(".choroplethlocation"),n):LFe(e,t)}PFe.exports={style:T9t,styleOnSelect:S9t}});var uY=Te((p1r,RFe)=>{"use strict";var M9t=Jl(),zFe=ei(),oS=hx(),E9t=bF().getTopojsonFeatures,IFe=Mm().findExtremes,k9t=UF().style;function C9t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");zFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=M9t.select(this),o=a.selectAll("path.choroplethlocation").data(zFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),k9t(e,i)})}function L9t(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"?oS.extractTraceFeature(e):E9t(r,i.topojson),u=[],l=[],f=0;f{"use strict";var P9t=wu(),z9t=aS(),I9t=ei().fillText;DFe.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 GF=Te((m1r,FFe)=>{"use strict";FFe.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 HF=Te((y1r,BFe)=>{"use strict";BFe.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";OFe.exports={attributes:aS(),supplyDefaults:MFe(),colorbar:R_(),calc:NF(),calcGeoJSON:uY().calcGeoJSON,plot:uY().plot,style:UF().style,styleOnSelect:UF().styleOnSelect,hoverPoints:VF(),eventData:GF(),selectPoints:HF(),moduleType:"trace",name:"choropleth",basePlotModule:sY(),categories:["geo","noOpacity","showLegend"],meta:{}}});var UFe=Te((_1r,NFe)=>{"use strict";NFe.exports=qFe()});var WF=Te((x1r,GFe)=>{"use strict";var D9t=$l(),l0=ei(),F9t=mA();function B9t(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 _=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(_,b),Math.min(u._rl[0],u._rl[1]),Math.max(_,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(_,b),Math.min(v,C),Math.max(_,b),Math.max(v,C))}else p=a.ids;var E,T,L,x,k,M,m,P,A,F=d;if(n==="x"){var B=!!o.xperiodalignment,U=!!o.yperiodalignment;for(k=0;k=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(M=Math.min(W,N)&&h<=Math.max(W,N)?0:1/0}A=Math.sqrt(M*M+m*m),T=p[k]}}}else for(k=p.length-1;k>-1;k--)E=p[k],L=l[E],x=f[E],M=s.c2p(L)-c,m=u.c2p(x)-h,P=Math.sqrt(M*M+m*m),P{"use strict";var HFe=20;WFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:HFe,SYMBOL_STROKE:HFe/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=Te((w1r,YFe)=>{"use strict";var O9t=Gf(),q9t=gc(),N9t=Pm(),Kc=Zc(),jFe=jc().axisHoverFormat,XFe=nc(),U9t=t_(),fY=Su().extendFlat,V9t=Sc().overrideAll,G9t=vx().DASHES,ZFe=Kc.line,u1=Kc.marker,H9t=u1.line,mx=YFe.exports=V9t({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:jFe("x"),yhoverformat:jFe("y"),text:Kc.text,hovertext:Kc.hovertext,textposition:Kc.textposition,textfont:q9t({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:ZFe.color,width:ZFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:U9t(G9t),dflt:"solid"}},marker:fY({},XFe("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:fY({},XFe("marker.line"),{width:H9t.width})}),connectgaps:Kc.connectgaps,fill:fY({},Kc.fill,{dflt:"none"}),fillcolor:N9t(),selected:{marker:Kc.selected.marker,textfont:Kc.selected.textfont},unselected:{marker:Kc.unselected.marker,textfont:Kc.unselected.textfont},opacity:O9t.opacity},"calc","nested");mx.x.editType=mx.y.editType=mx.x0.editType=mx.y0.editType="calc+clearAxisTypes";mx.hovertemplate=Kc.hovertemplate;mx.hovertemplatefallback=Kc.hovertemplatefallback;mx.texttemplate=Kc.texttemplate;mx.texttemplatefallback=Kc.texttemplatefallback});var jF=Te(cY=>{"use strict";var KFe=vx();cY.isOpenSymbol=function(e){return typeof e=="string"?KFe.OPEN_RE.test(e):e%200>100};cY.isDotSymbol=function(e){return typeof e=="string"?KFe.DOT_RE.test(e):e>200}});var QFe=Te((T1r,$Fe)=>{"use strict";var JFe=ei(),W9t=$l(),j9t=jF(),X9t=yk(),Z9t=Ly(),XF=lc(),Y9t=oA(),K9t=Rm(),J9t=$v(),$9t=R0(),Q9t=Dm(),eOt=D0();$Fe.exports=function(t,r,n,i){function a(d,p){return JFe.coerce(t,r,X9t,d,p)}var o=t.marker?j9t.isOpenSymbol(t.marker.symbol):!1,s=XF.isBubble(t),u=Y9t(t,r,i,a);if(!u){r.visible=!1;return}K9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var tOt=lI();e8e.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]),tOt(t,r,n)}});var i8e=Te((M1r,r8e)=>{"use strict";function rOt(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 iOt(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 nOt(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 aOt(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 oOt(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)}r8e.exports={ge:function(e,t,r,n,i){return gk(e,t,r,n,i,rOt)},gt:function(e,t,r,n,i){return gk(e,t,r,n,i,iOt)},lt:function(e,t,r,n,i){return gk(e,t,r,n,i,nOt)},le:function(e,t,r,n,i){return gk(e,t,r,n,i,aOt)},eq:function(e,t,r,n,i){return gk(e,t,r,n,i,oOt)}}});var eg=Te((E1r,a8e)=>{"use strict";a8e.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=n8e(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var sOt=eg();o8e.exports=lOt;function lOt(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=sOt(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 rw=Te((C1r,s8e)=>{"use strict";s8e.exports=uOt;function uOt(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]{l8e.exports=function(){for(var e=0;e{var f8e=Q6();c8e.exports=fOt;function fOt(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(f8e(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";h8e.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var v8e=Te((I1r,p8e)=>{"use strict";p8e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var w8e=Te((R1r,b8e)=>{"use strict";var m8e=i8e(),y8e=ik(),cOt=sS(),hOt=rw(),g8e=eg(),dY=u8e(),dOt=iw(),pOt=d8e(),vOt=Q6(),_8e=v8e(),mOt=1073741824;b8e.exports=function(t,r){r||(r={}),t=dOt(t,"float64"),r=g8e(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=dY(r.maxDepth,255),i=dY(r.bounds,hOt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=x8e(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(vOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||x>mOt){for(let N=0;Nge||m>ze||P=F||re===ae)return;let Le=u[H];ae===void 0&&(ae=Le.length);for(let Ne=re;Ne=T&&je<=x&&Qe>=L&&Qe<=k&&B.push(ce)}let de=l[H],te=de[re*4+0],ke=de[re*4+1],Ee=de[re*4+2],Se=de[re*4+3],Ge=G(de,re+1),De=N*.5,xe=H+1;U(j,W,De,xe,te,ke||Ee||Se||Ge),U(j,W+De,De,xe,ke,Ee||Se||Ge),U(j+De,W,De,xe,Ee,Se||Ge),U(j+De,W+De,De,xe,Se,Ge)}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 B}function _(v,C,E,T,L){let x=[];for(let k=0;k{"use strict";A8e.exports=w8e()});var pY=Te((F1r,T8e)=>{T8e.exports=yOt;function yOt(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(YF,"__esModule",{value:!0});var gOt=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,vY=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}},_Ot=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}]},S8e=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)},xOt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),_=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*_;v<0&&(v=0),v/=d*b+p*_,v=Math.sqrt(v)*(s===u?-1:1);var C=v*a/o*h,E=v*-o/a*c,T=f*C-l*E+(t+n)/2,L=l*C+f*E+(r+i)/2,x=(c-C)/a,k=(h-E)/o,M=(-c-C)/a,m=(-h-E)/o,P=S8e(1,0,x,k),A=S8e(x,k,M,m);return u===0&&A>0&&(A-=_k),u===1&&A<0&&(A+=_k),[T,L,P,A]},bOt=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 _=Math.sin(l*_k/360),b=Math.cos(l*_k/360),v=b*(r-i)/2+_*(n-a)/2,C=-_*(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 T=xOt(r,n,i,a,o,s,c,d,_,b,v,C),L=gOt(T,4),x=L[0],k=L[1],M=L[2],m=L[3],P=Math.abs(m)/(_k/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var F=0;F{"use strict";C8e.exports=AOt;var wOt=E8e();function AOt(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 KF(e,t,r,n){return["C",e,t,r,n,r,n]}function k8e(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 mY=Te((O1r,P8e)=>{"use strict";P8e.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 R8e=Te((q1r,I8e)=>{"use strict";var TOt=n5(),SOt=pY(),MOt=L8e(),EOt=mY(),z8e=y4();I8e.exports=kOt;function kOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(z8e(EOt(e),"String is not an SVG path."),e=TOt(e)),z8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=SOt(e),e=MOt(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 N8e=Te((N1r,q8e)=>{var nw=Math.PI,D8e=O8e(120);q8e.exports=COt;function COt(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 _=l,b=f;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,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=F8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=F8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=JF(l,f,d[1],d[2]);break;case"H":d=JF(l,f,d[1],f);break;case"V":d=JF(l,f,l,d[1]);break;case"Z":d=JF(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 JF(e,t,r,n){return["C",e,t,r,n,r,n]}function F8e(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 B8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],C=l[3];else{var f=yY(e,t,-i);e=f.x,t=f.y,f=yY(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,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*_-p*h*h-_*c*c)/(p*h*h+_*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)),T=Math.asin(((u-C)/n).toFixed(9));E=eT&&(E=E-nw*2),!o&&T>E&&(T=T-nw*2)}if(Math.abs(T-E)>D8e){var L=T,x=s,k=u;T=E+D8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=C+n*Math.sin(T);var M=B8e(s,u,r,n,i,0,o,x,k,[T,L,v,C])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,F=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return F;M&&(F=F.concat(M));for(var B=0;B{var LOt=pY(),POt=N8e(),zOt={M:"moveTo",C:"bezierCurveTo"};U8e.exports=function(e,t){e.beginPath(),POt(LOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[zOt[n]].apply(e,i)}),e.closePath()}});var j8e=Te((V1r,W8e)=>{"use strict";var IOt=ik();W8e.exports=ROt;var xk=1e20;function ROt(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,_;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,_=l.length;p<_;p++)u[p]=l[p*f+i]/255;else if(f!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),v=Array(a*o),C=Array(s),E=Array(s),T=Array(s+1),L=Array(s);for(p=0,_=a*o;p<_;p++){var x=u[p];b[p]=x===1?0:x===0?xk:Math.pow(Math.max(0,.5-x),2),v[p]=x===1?xk:x===0?0:Math.pow(Math.max(0,x-.5),2)}G8e(b,a,o,C,E,L,T),G8e(v,a,o,C,E,L,T);var k=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(p=0,_=a*o;p<_;p++)k[p]=IOt(1-((b[p]-v[p])/n+r),0,1);return k}function G8e(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var DOt=R8e(),FOt=n5(),BOt=V8e(),OOt=mY(),qOt=j8e(),gY=document.createElement("canvas"),dv=gY.getContext("2d");X8e.exports=NOt;function NOt(e,t){if(!OOt(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=gY.width=t.w||t.width||200,n=gY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||DOt(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),UOt()){var l=new Path2D(e);dv.fill(l),a&&dv.stroke(l)}else{var f=FOt(e);BOt(dv,f),dv.fill(),a&&dv.stroke()}dv.setTransform(1,0,0,1,0,0);var c=qOt(dv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var $F;function UOt(){if($F!=null)return $F;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return $F=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return $F=r&&r.data&&r.data[3]===255}});var ow=Te((H1r,aBe)=>{"use strict";var e8=ku(),VOt=Z8e(),QF=ox(),GOt=$l(),fS=ei(),Lh=fS.isArrayOrTypedArray,lS=Mu(),Y8e=Wc(),K8e=a1().formatColor,uS=lc(),HOt=B3(),xY=jF(),bk=vx(),WOt=X1().DESELECTDIM,J8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},jOt=iv().appendArrayPointValue;function XOt(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(uS.hasText(t)&&(n.text=nBe(e,t),n.textSel=Q8e(e,t,t.selected),n.textUnsel=Q8e(e,t,t.unselected)),uS.hasMarkers(t)&&(n.marker=wY(e,t),n.markerSel=bY(e,t,t.selected),n.markerUnsel=bY(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 wY(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=xY.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,_=n.angle,b=K8e(n,n.opacity,r),v=K8e(n.line,n.opacity,r);if(!Lh(v[0])){var C=v;for(v=Array(r),a=0;abk.TOO_MANY_POINTS||uS.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=J8e[h],_=J8e[d],b=f?f/.8+1:0,v=-_*b-_*.5;a.offset[o]=[p*b/c,v/c]}}return a}aBe.exports={style:XOt,markerStyle:wY,markerSelection:bY,linePositions:YOt,errorBarPositions:KOt,textPosition:JOt}});var AY=Te((W1r,oBe)=>{"use strict";var t8=ei();oBe.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(){t8.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=t8.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 $Ot=ZF(),cS=ei(),sBe=Wc(),QOt=Mm().findExtremes,lBe=Fm(),TY=O0(),eqt=TY.calcMarkerSize,tqt=TY.calcAxisExpansion,rqt=TY.setFirstScatter,iqt=F0(),hS=ow(),nqt=AY(),uBe=rf().BADNUM,aqt=vx().TOO_MANY_POINTS;cBe.exports=function(t,r){var n=t._fullLayout,i=r._xA=sBe.getFromId(t,r.xaxis,"x"),a=r._yA=sBe.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=aqt,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=lBe(r,i,"x",h),_=lBe(r,a,"y",d),b=p.vals,v=_.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=_.starts,r._yEnds=_.ends);var C=new Array(l),E=new Array(s);for(c=0;c1&&cS.extendFlat(o.line,hS.linePositions(e,r,n)),o.errorX||o.errorY){var s=hS.errorBarPositions(e,r,n,i,a);o.errorX&&cS.extendFlat(o.errorX,s.x),o.errorY&&cS.extendFlat(o.errorY,s.y)}return o.text&&(cS.extendFlat(o.text,{positions:n},hS.textPosition(e,r,o.text,o.marker)),cS.extendFlat(o.textSel,{positions:n},hS.textPosition(e,r,o.text,o.markerSel)),cS.extendFlat(o.textUnsel,{positions:n},hS.textPosition(e,r,o.text,o.markerUnsel))),o}});var SY=Te((X1r,pBe)=>{"use strict";var dBe=ei(),sqt=jl(),lqt=X1().DESELECTDIM;function uqt(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=dBe.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,_=f.color,b=u.color,v=dBe.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var vBe=lc(),fqt=SY().styleTextSelection;mBe.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=vBe.hasText(s),_=vBe.hasMarkers(s),b=!_&&!p;if(s.visible!==!0||b)return o;var v=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var cqt=WF();yBe.exports={moduleType:"trace",name:"scattergl",basePlotModule:Mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:yk(),supplyDefaults:QFe(),crossTraceDefaults:xU(),colorbar:ep(),formatLabels:t8e(),calc:hBe(),hoverPoints:cqt.hoverPoints,selectPoints:MY(),meta:{}}});var xBe=Te((K1r,i8)=>{"use strict";var r8=ik();i8.exports=_Be;i8.exports.to=_Be;i8.exports.from=hqt;function _Be(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=r8(r,0,255)&255,n=r8(n,0,255)&255,i=r8(i,0,255)&255,a=r8(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function hqt(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=Te((J1r,wBe)=>{"use strict";var bBe=Object.getOwnPropertySymbols,dqt=Object.prototype.hasOwnProperty,pqt=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 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}}wBe.exports=mqt()?Object.assign:function(e,t){for(var r,n=vqt(e),i,a=1;a{ABe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";SBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";MBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var n8=Te((t_r,dS)=>{"use strict";dS.exports=wk;dS.exports.float32=dS.exports.float=wk;dS.exports.fract32=dS.exports.fract=yqt;var kBe=new Float32Array(1);function yqt(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 gqt(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 _qt(e,t){return wqt(e)||gqt(e,t)||LBe(e,t)||Sqt()}function xqt(e){return bqt(e)||Aqt(e)||LBe(e)||Tqt()}function bqt(e){if(Array.isArray(e))return kY(e)}function wqt(e){if(Array.isArray(e))return e}function Aqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LBe(e,t){if(e){if(typeof e=="string")return kY(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 kY(e,t)}}function kY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=Cqt(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 ke=o8.float32(W);ae({data:ke,usage:"dynamic"});var Ee=o8.fract32(W,ke);return ge({data:Ee,usage:"dynamic"}),ze({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),W}},{marker:function(W,N,H){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!W||typeof W[0]=="number"){var ae=e.addMarker(W);re[ae]=!0}else{for(var ge=[],ze=0,Le=Math.min(W.length,N.count);ze=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};op.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";IY.exports=u8;IY.exports.default=u8;function u8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=IBe(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=Uqt(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 wk(a,o,r,s,u,d,0),o}function IBe(e,t,r,n,i){var a,o;if(i===zY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=zBe(a,e[a],e[a+1],o);return o&&f8(o,o.next)&&(Tk(o),o=o.next),o}function lw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(f8(r,r.next)||Ph(r.prev,r,r.next)===0)){if(Tk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function wk(e,t,r,n,i,a,o){if(e){!o&&a&&jqt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?Oqt(e,n,i,a):Bqt(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),Tk(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=qqt(lw(e),t,r),wk(e,t,r,n,i,a,2)):o===2&&Nqt(e,t,r,n,i,a):wk(lw(e),t,r,n,i,a,1);break}}}}function Bqt(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&&pS(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 Oqt(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=LY(d,p,t,r,n),C=LY(_,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=C;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&pS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&pS(s,f,u,c,l,h,T.x,T.y)&&Ph(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&pS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=C;){if(T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&pS(s,f,u,c,l,h,T.x,T.y)&&Ph(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function qqt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!f8(i,a)&&RBe(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),Tk(n),Tk(n.next),n=e=a),n=n.next}while(n!==e);return lw(n)}function Nqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Yqt(o,s)){var u=DBe(o,s);o=lw(o,o.next),u=lw(u,u.next),wk(o,t,r,n,i,a,0),wk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function Uqt(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&&pS(io.x||r.x===o.x&&Wqt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function Wqt(e,t){return Ph(e.prev,e,t.prev)<0&&Ph(t.next,e,e.next)<0}function jqt(e,t,r,n){var i=e;do i.z===0&&(i.z=LY(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,Xqt(i)}function Xqt(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 LY(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 Zqt(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 Yqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Kqt(e,t)&&(Ak(e,t)&&Ak(t,e)&&Jqt(e,t)&&(Ph(e.prev,e,t.prev)||Ph(e,t.prev,t))||f8(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 f8(e,t){return e.x===t.x&&e.y===t.y}function RBe(e,t,r,n){var i=l8(Ph(e,t,r)),a=l8(Ph(e,t,n)),o=l8(Ph(r,n,e)),s=l8(Ph(r,n,t));return!!(i!==a&&o!==s||i===0&&s8(e,r,t)||a===0&&s8(e,n,t)||o===0&&s8(r,e,n)||s===0&&s8(r,t,n))}function s8(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 l8(e){return e>0?1:e<0?-1:0}function Kqt(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&&RBe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Ak(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 Jqt(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 DBe(e,t){var r=new PY(e.i,e.x,e.y),n=new PY(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 zBe(e,t,r,n){var i=new PY(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 Tk(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 PY(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}u8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(zY(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 OBe=Te((n_r,BBe)=>{"use strict";var $qt=rw();BBe.exports=Qqt;function Qqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=$qt(e,t));for(var n=0;n{"use strict";qBe.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 VBe=Te((o_r,UBe)=>{"use strict";UBe.exports=function(){}});var yx=Te((s_r,GBe)=>{"use strict";var eNt=VBe()();GBe.exports=function(e){return e!==eNt&&e!==null}});var RY=Te((l_r,WBe)=>{"use strict";var tNt=Object.create,rNt=Object.getPrototypeOf,HBe={};WBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||tNt;return typeof e!="function"?!1:rNt(e(t(null),HBe))===HBe}});var DY=Te((u_r,jBe)=>{"use strict";var iNt=yx(),nNt={function:!0,object:!0};jBe.exports=function(e){return iNt(e)&&nNt[typeof e]||!1}});var f1=Te((f_r,XBe)=>{"use strict";var aNt=yx();XBe.exports=function(e){if(!aNt(e))throw new TypeError("Cannot use null or undefined");return e}});var YBe=Te((c_r,ZBe)=>{"use strict";var FY=Object.create,c8;RY()()||(c8=BY());ZBe.exports=function(){var e,t,r;return!c8||c8.level!==1?FY:(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(c8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return FY(n===null?e:n,i)})}()});var BY=Te((h_r,KBe)=>{"use strict";var oNt=DY(),sNt=f1(),lNt=Object.prototype.isPrototypeOf,uNt=Object.defineProperty,fNt={configurable:!0,enumerable:!1,writable:!0,value:void 0},h8;h8=function(e,t){if(sNt(e),t===null||oNt(t))return e;throw new TypeError("Prototype must be null or an object")};KBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(h8(n,i),i),n}):t=function(n,i){return h8(n,i).__proto__=i,n}:t=function n(i,a){var o;return h8(i,a),o=lNt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&uNt(n.nullPolyfill,"__proto__",fNt),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)}());YBe()});var d8=Te((d_r,JBe)=>{"use strict";JBe.exports=RY()()?Object.setPrototypeOf:BY()});var QBe=Te((p_r,$Be)=>{"use strict";var cNt=DY();$Be.exports=function(e){if(!cNt(e))throw new TypeError(e+" is not an Object");return e}});var t9e=Te((v_r,e9e)=>{"use strict";var hNt=Object.create(null),dNt=Math.random;e9e.exports=function(){var e;do e=dNt().toString(36).slice(2);while(hNt[e]);return e}});var uw=Te((m_r,r9e)=>{"use strict";var pNt=void 0;r9e.exports=function(e){return e!==pNt&&e!==null}});var p8=Te((y_r,i9e)=>{"use strict";var vNt=uw(),mNt={object:!0,function:!0,undefined:!0};i9e.exports=function(e){return vNt(e)?hasOwnProperty.call(mNt,typeof e):!1}});var a9e=Te((g_r,n9e)=>{"use strict";var yNt=p8();n9e.exports=function(e){if(!yNt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var s9e=Te((__r,o9e)=>{"use strict";var gNt=a9e();o9e.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!gNt(e)}});var OY=Te((x_r,l9e)=>{"use strict";var _Nt=s9e(),xNt=/^\s*class[\s{/}]/,bNt=Function.prototype.toString;l9e.exports=function(e){return!(!_Nt(e)||xNt.test(bNt.call(e)))}});var f9e=Te((b_r,u9e)=>{"use strict";u9e.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 h9e=Te((w_r,c9e)=>{"use strict";c9e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var p9e=Te((A_r,d9e)=>{"use strict";var wNt=yx(),ANt=Object.keys;d9e.exports=function(e){return ANt(wNt(e)?Object(e):e)}});var m9e=Te((T_r,v9e)=>{"use strict";v9e.exports=h9e()()?Object.keys:p9e()});var g9e=Te((S_r,y9e)=>{"use strict";var TNt=m9e(),SNt=f1(),MNt=Math.max;y9e.exports=function(e,t){var r,n,i=MNt(arguments.length,2),a;for(e=Object(SNt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";_9e.exports=f9e()()?Object.assign:g9e()});var qY=Te((E_r,x9e)=>{"use strict";var ENt=yx(),kNt=Array.prototype.forEach,CNt=Object.create,LNt=function(e,t){var r;for(r in e)t[r]=e[r]};x9e.exports=function(e){var t=CNt(null);return kNt.call(arguments,function(r){ENt(r)&&LNt(Object(r),t)}),t}});var w9e=Te((k_r,b9e)=>{"use strict";var NY="razdwatrzy";b9e.exports=function(){return typeof NY.contains!="function"?!1:NY.contains("dwa")===!0&&NY.contains("foo")===!1}});var T9e=Te((C_r,A9e)=>{"use strict";var PNt=String.prototype.indexOf;A9e.exports=function(e){return PNt.call(this,e,arguments[1])>-1}});var UY=Te((L_r,S9e)=>{"use strict";S9e.exports=w9e()()?String.prototype.contains:T9e()});var c1=Te((P_r,C9e)=>{"use strict";var m8=uw(),M9e=OY(),E9e=v8(),k9e=qY(),Sk=UY(),zNt=C9e.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],m8(e)?(r=Sk.call(e,"c"),n=Sk.call(e,"e"),i=Sk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?E9e(k9e(a),o):o};zNt.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],m8(t)?M9e(t)?m8(r)?M9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,m8(e)?(n=Sk.call(e,"c"),i=Sk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?E9e(k9e(a),o):o}});var Mk=Te((z_r,P9e)=>{"use strict";var L9e=Object.prototype.toString,INt=L9e.call(function(){return arguments}());P9e.exports=function(e){return L9e.call(e)===INt}});var Ek=Te((I_r,I9e)=>{"use strict";var z9e=Object.prototype.toString,RNt=z9e.call("");I9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||z9e.call(e)===RNt)||!1}});var D9e=Te((R_r,R9e)=>{"use strict";R9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var O9e=Te((D_r,B9e)=>{var F9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};B9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return F9e()}try{return __global__||F9e()}finally{delete Object.prototype.__global__}}()});var kk=Te((F_r,q9e)=>{"use strict";q9e.exports=D9e()()?globalThis:O9e()});var U9e=Te((B_r,N9e)=>{"use strict";var DNt=kk(),VY={object:!0,symbol:!0};N9e.exports=function(){var e=DNt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!VY[typeof e.iterator]||!VY[typeof e.toPrimitive]||!VY[typeof e.toStringTag])}});var G9e=Te((O_r,V9e)=>{"use strict";V9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var GY=Te((q_r,H9e)=>{"use strict";var FNt=G9e();H9e.exports=function(e){if(!FNt(e))throw new TypeError(e+" is not a symbol");return e}});var Y9e=Te((N_r,Z9e)=>{"use strict";var W9e=c1(),BNt=Object.create,j9e=Object.defineProperty,ONt=Object.prototype,X9e=BNt(null);Z9e.exports=function(e){for(var t=0,r,n;X9e[e+(t||"")];)++t;return e+=t||"",X9e[e]=!0,r="@@"+e,j9e(ONt,r,W9e.gs(null,function(i){n||(n=!0,j9e(this,r,W9e(i)),n=!1)})),r}});var J9e=Te((U_r,K9e)=>{"use strict";var ry=c1(),Xh=kk().Symbol;K9e.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 eOe=Te((V_r,Q9e)=>{"use strict";var $9e=c1(),qNt=GY(),Ck=Object.create(null);Q9e.exports=function(e){return Object.defineProperties(e,{for:$9e(function(t){return Ck[t]?Ck[t]:Ck[t]=e(String(t))}),keyFor:$9e(function(t){var r;qNt(t);for(r in Ck)if(Ck[r]===t)return r})})}});var iOe=Te((G_r,rOe)=>{"use strict";var tg=c1(),HY=GY(),y8=kk().Symbol,NNt=Y9e(),UNt=J9e(),VNt=eOe(),GNt=Object.create,WY=Object.defineProperties,g8=Object.defineProperty,Xp,vS,tOe;if(typeof y8=="function")try{String(y8()),tOe=!0}catch(e){}else y8=null;vS=function(t){if(this instanceof vS)throw new TypeError("Symbol is not a constructor");return Xp(t)};rOe.exports=Xp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return tOe?y8(t):(r=GNt(vS.prototype),t=t===void 0?"":String(t),WY(r,{__description__:tg("",t),__name__:tg("",NNt(t))}))};UNt(Xp);VNt(Xp);WY(vS.prototype,{constructor:tg(Xp),toString:tg("",function(){return this.__name__})});WY(Xp.prototype,{toString:tg(function(){return"Symbol ("+HY(this).__description__+")"}),valueOf:tg(function(){return HY(this)})});g8(Xp.prototype,Xp.toPrimitive,tg("",function(){var e=HY(this);return typeof e=="symbol"?e:e.toString()}));g8(Xp.prototype,Xp.toStringTag,tg("c","Symbol"));g8(vS.prototype,Xp.toStringTag,tg("c",Xp.prototype[Xp.toStringTag]));g8(vS.prototype,Xp.toPrimitive,tg("c",Xp.prototype[Xp.toPrimitive]))});var gx=Te((H_r,nOe)=>{"use strict";nOe.exports=U9e()()?kk().Symbol:iOe()});var oOe=Te((W_r,aOe)=>{"use strict";var HNt=f1();aOe.exports=function(){return HNt(this).length=0,this}});var mS=Te((j_r,sOe)=>{"use strict";sOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var uOe=Te((X_r,lOe)=>{"use strict";var WNt=uw(),jNt=p8(),XNt=Object.prototype.toString;lOe.exports=function(e){if(!WNt(e))return null;if(jNt(e)){var t=e.toString;if(typeof t!="function"||t===XNt)return null}try{return""+e}catch(r){return null}}});var cOe=Te((Z_r,fOe)=>{"use strict";fOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var dOe=Te((Y_r,hOe)=>{"use strict";var ZNt=cOe(),YNt=/[\n\r\u2028\u2029]/g;hOe.exports=function(e){var t=ZNt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(YNt,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 jY=Te((K_r,mOe)=>{"use strict";var pOe=uw(),KNt=p8(),JNt=uOe(),$Nt=dOe(),vOe=function(e,t){return e.replace("%v",$Nt(t))};mOe.exports=function(e,t,r){if(!KNt(r))throw new TypeError(vOe(t,e));if(!pOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=JNt(r.errorMessage);throw pOe(n)||(n=t),new TypeError(vOe(n,e))}});var gOe=Te((J_r,yOe)=>{"use strict";var QNt=jY(),e7t=uw();yOe.exports=function(e){return e7t(e)?e:QNt(e,"Cannot use %v",arguments[1])}});var xOe=Te(($_r,_Oe)=>{"use strict";var t7t=jY(),r7t=OY();_Oe.exports=function(e){return r7t(e)?e:t7t(e,"%v is not a plain function",arguments[1])}});var wOe=Te((Q_r,bOe)=>{"use strict";bOe.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 TOe=Te((exr,AOe)=>{"use strict";var i7t=Object.prototype.toString,n7t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);AOe.exports=function(e){return typeof e=="function"&&n7t(i7t.call(e))}});var MOe=Te((txr,SOe)=>{"use strict";SOe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var kOe=Te((rxr,EOe)=>{"use strict";EOe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var LOe=Te((ixr,COe)=>{"use strict";COe.exports=MOe()()?Math.sign:kOe()});var zOe=Te((nxr,POe)=>{"use strict";var a7t=LOe(),o7t=Math.abs,s7t=Math.floor;POe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:a7t(e)*s7t(o7t(e)))}});var ROe=Te((axr,IOe)=>{"use strict";var l7t=zOe(),u7t=Math.max;IOe.exports=function(e){return u7t(0,l7t(e))}});var OOe=Te((oxr,BOe)=>{"use strict";var f7t=gx().iterator,c7t=Mk(),h7t=TOe(),d7t=ROe(),DOe=mS(),p7t=f1(),v7t=yx(),m7t=Ek(),FOe=Array.isArray,XY=Function.prototype.call,fw={configurable:!0,enumerable:!0,writable:!0,value:null},ZY=Object.defineProperty;BOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(p7t(e)),v7t(t)&&DOe(t),!this||this===Array||!h7t(this)){if(!t){if(c7t(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(FOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?XY.call(t,r,h,a):h,n?(fw.value=h,ZY(o,a,fw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=d7t(e.length),n&&(o=new n(s)),i=0;i{"use strict";qOe.exports=wOe()()?Array.from:OOe()});var VOe=Te((lxr,UOe)=>{"use strict";var y7t=NOe(),g7t=v8(),_7t=f1();UOe.exports=function(e){var t=Object(_7t(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?y7t(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):g7t(i,e),i}});var WOe=Te((uxr,HOe)=>{"use strict";var x7t=mS(),b7t=f1(),w7t=Function.prototype.bind,GOe=Function.prototype.call,A7t=Object.keys,T7t=Object.prototype.propertyIsEnumerable;HOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(b7t(r)),x7t(n),i=A7t(r),o&&i.sort(typeof o=="function"?w7t.call(o,r):void 0),typeof e!="function"&&(e=i[e]),GOe.call(e,i,function(s,u){return T7t.call(r,s)?GOe.call(n,a,r[s],s,r,u):t})}}});var XOe=Te((fxr,jOe)=>{"use strict";jOe.exports=WOe()("forEach")});var YOe=Te((cxr,ZOe)=>{"use strict";var S7t=mS(),M7t=XOe(),E7t=Function.prototype.call;ZOe.exports=function(e,t){var r={},n=arguments[2];return S7t(t),M7t(e,function(i,a,o,s){r[a]=E7t.call(t,n,i,a,o,s)}),r}});var QOe=Te((hxr,$Oe)=>{"use strict";var k7t=uw(),C7t=gOe(),KOe=xOe(),L7t=VOe(),P7t=qY(),z7t=YOe(),I7t=Function.prototype.bind,R7t=Object.defineProperty,D7t=Object.prototype.hasOwnProperty,JOe;JOe=function(e,t,r){var n=C7t(t)&&KOe(t.value),i;return i=L7t(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&D7t.call(this,e)?n:(t.value=I7t.call(n,r.resolveContext?r.resolveContext(this):this),R7t(this,e,t),this[e])},i};$Oe.exports=function(e){var t=P7t(arguments[1]);return k7t(t.resolveContext)&&KOe(t.resolveContext),z7t(e,function(r,n){return JOe(n,r,t)})}});var YY=Te((dxr,iqe)=>{"use strict";var F7t=oOe(),B7t=v8(),O7t=mS(),q7t=f1(),Ov=c1(),N7t=QOe(),eqe=gx(),tqe=Object.defineProperty,rqe=Object.defineProperties,Lk;iqe.exports=Lk=function(e,t){if(!(this instanceof Lk))throw new TypeError("Constructor requires 'new'");rqe(this,{__list__:Ov("w",q7t(e)),__context__:Ov("w",t),__nextIndex__:Ov("w",0)}),t&&(O7t(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Lk.prototype.constructor;rqe(Lk.prototype,B7t({_next:Ov(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__){tqe(this,"__redo__",Ov("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Ov(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:Ov(function(){this.__redo__&&F7t.call(this.__redo__),this.__nextIndex__=0})})));tqe(Lk.prototype,eqe.iterator,Ov(function(){return this}))});var lqe=Te((pxr,sqe)=>{"use strict";var nqe=d8(),aqe=UY(),KY=c1(),U7t=gx(),JY=YY(),oqe=Object.defineProperty,yS;yS=sqe.exports=function(e,t){if(!(this instanceof yS))throw new TypeError("Constructor requires 'new'");JY.call(this,e),t?aqe.call(t,"key+value")?t="key+value":aqe.call(t,"key")?t="key":t="value":t="value",oqe(this,"__kind__",KY("",t))};nqe&&nqe(yS,JY);delete yS.prototype.constructor;yS.prototype=Object.create(JY.prototype,{_resolve:KY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});oqe(yS.prototype,U7t.toStringTag,KY("c","Array Iterator"))});var hqe=Te((vxr,cqe)=>{"use strict";var uqe=d8(),_8=c1(),V7t=gx(),$Y=YY(),fqe=Object.defineProperty,gS;gS=cqe.exports=function(e){if(!(this instanceof gS))throw new TypeError("Constructor requires 'new'");e=String(e),$Y.call(this,e),fqe(this,"__length__",_8("",e.length))};uqe&&uqe(gS,$Y);delete gS.prototype.constructor;gS.prototype=Object.create($Y.prototype,{_next:_8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});fqe(gS.prototype,V7t.toStringTag,_8("c","String Iterator"))});var pqe=Te((mxr,dqe)=>{"use strict";var G7t=Mk(),H7t=yx(),W7t=Ek(),j7t=gx().iterator,X7t=Array.isArray;dqe.exports=function(e){return H7t(e)?X7t(e)||W7t(e)||G7t(e)?!0:typeof e[j7t]=="function":!1}});var mqe=Te((yxr,vqe)=>{"use strict";var Z7t=pqe();vqe.exports=function(e){if(!Z7t(e))throw new TypeError(e+" is not iterable");return e}});var QY=Te((gxr,_qe)=>{"use strict";var Y7t=Mk(),K7t=Ek(),yqe=lqe(),J7t=hqe(),$7t=mqe(),gqe=gx().iterator;_qe.exports=function(e){return typeof $7t(e)[gqe]=="function"?e[gqe]():Y7t(e)?new yqe(e):K7t(e)?new J7t(e):new yqe(e)}});var bqe=Te((_xr,xqe)=>{"use strict";var Q7t=Mk(),eUt=mS(),tUt=Ek(),rUt=QY(),iUt=Array.isArray,eK=Function.prototype.call,nUt=Array.prototype.some;xqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(iUt(e)||Q7t(e)?r="array":tUt(e)?r="string":e=rUt(e),eUt(t),a=function(){o=!0},r==="array"){nUt.call(e,function(c){return eK.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),eK.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(eK.call(t,n,i.value,a),o)return;i=e.next()}}});var Aqe=Te((xxr,wqe)=>{"use strict";wqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var Mqe=Te((bxr,Sqe)=>{"use strict";var aUt=yx(),b8=d8(),x8=QBe(),oUt=f1(),sUt=t9e(),h1=c1(),lUt=QY(),uUt=bqe(),fUt=gx().toStringTag,Tqe=Aqe(),cUt=Array.isArray,rK=Object.defineProperty,tK=Object.prototype.hasOwnProperty,hUt=Object.getPrototypeOf,_x;Sqe.exports=_x=function(){var e=arguments[0],t;if(!(this instanceof _x))throw new TypeError("Constructor requires 'new'");return t=Tqe&&b8&&WeakMap!==_x?b8(new WeakMap,hUt(this)):this,aUt(e)&&(cUt(e)||(e=lUt(e))),rK(t,"__weakMapData__",h1("c","$weakMap$"+sUt())),e&&uUt(e,function(r){oUt(r),t.set(r[0],r[1])}),t};Tqe&&(b8&&b8(_x,WeakMap),_x.prototype=Object.create(WeakMap.prototype,{constructor:h1(_x)}));Object.defineProperties(_x.prototype,{delete:h1(function(e){return tK.call(x8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(tK.call(x8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return tK.call(x8(e),this.__weakMapData__)}),set:h1(function(e,t){return rK(x8(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});rK(_x.prototype,fUt,h1("c","WeakMap"))});var iK=Te((wxr,Eqe)=>{"use strict";Eqe.exports=NBe()()?WeakMap:Mqe()});var Cqe=Te((Axr,kqe)=>{"use strict";kqe.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 w8=ox(),dUt=rw(),aK=jh(),pUt=eg(),vUt=iw(),Lqe=FBe(),mUt=OBe(),{float32:yUt,fract32:nK}=n8(),gUt=iK(),Pqe=sS(),_Ut=Cqe(),xUt=` +`]),CBe&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}op.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};op.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};op.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=Cqt(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 ke=o8.float32(W);ae({data:ke,usage:"dynamic"});var Ee=o8.fract32(W,ke);return ge({data:Ee,usage:"dynamic"}),ze({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),W}},{marker:function(W,N,H){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!W||typeof W[0]=="number"){var ae=e.addMarker(W);re[ae]=!0}else{for(var ge=[],ze=0,Le=Math.min(W.length,N.count);ze=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};op.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";IY.exports=u8;IY.exports.default=u8;function u8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=IBe(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=Uqt(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 IBe(e,t,r,n,i){var a,o;if(i===zY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=zBe(a,e[a],e[a+1],o);return o&&f8(o,o.next)&&(Sk(o),o=o.next),o}function lw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(f8(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&&jqt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?Oqt(e,n,i,a):Bqt(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=qqt(lw(e),t,r),Ak(e,t,r,n,i,a,2)):o===2&&Nqt(e,t,r,n,i,a):Ak(lw(e),t,r,n,i,a,1);break}}}}function Bqt(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&&pS(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 Oqt(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=LY(d,p,t,r,n),C=LY(_,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=C;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&pS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&pS(s,f,u,c,l,h,T.x,T.y)&&Ph(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=_&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&pS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=C;){if(T.x>=d&&T.x<=_&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&pS(s,f,u,c,l,h,T.x,T.y)&&Ph(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function qqt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!f8(i,a)&&RBe(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 lw(n)}function Nqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Yqt(o,s)){var u=DBe(o,s);o=lw(o,o.next),u=lw(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 Uqt(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&&pS(io.x||r.x===o.x&&Wqt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function Wqt(e,t){return Ph(e.prev,e,t.prev)<0&&Ph(t.next,e,e.next)<0}function jqt(e,t,r,n){var i=e;do i.z===0&&(i.z=LY(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,Xqt(i)}function Xqt(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 LY(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 Zqt(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 Yqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Kqt(e,t)&&(Tk(e,t)&&Tk(t,e)&&Jqt(e,t)&&(Ph(e.prev,e,t.prev)||Ph(e,t.prev,t))||f8(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 f8(e,t){return e.x===t.x&&e.y===t.y}function RBe(e,t,r,n){var i=l8(Ph(e,t,r)),a=l8(Ph(e,t,n)),o=l8(Ph(r,n,e)),s=l8(Ph(r,n,t));return!!(i!==a&&o!==s||i===0&&s8(e,r,t)||a===0&&s8(e,n,t)||o===0&&s8(r,e,n)||s===0&&s8(r,t,n))}function s8(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 l8(e){return e>0?1:e<0?-1:0}function Kqt(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&&RBe(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 Jqt(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 DBe(e,t){var r=new PY(e.i,e.x,e.y),n=new PY(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 zBe(e,t,r,n){var i=new PY(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 PY(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}u8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(zY(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 OBe=Te((n_r,BBe)=>{"use strict";var $qt=rw();BBe.exports=Qqt;function Qqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=$qt(e,t));for(var n=0;n{"use strict";qBe.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 VBe=Te((o_r,UBe)=>{"use strict";UBe.exports=function(){}});var yx=Te((s_r,GBe)=>{"use strict";var eNt=VBe()();GBe.exports=function(e){return e!==eNt&&e!==null}});var RY=Te((l_r,WBe)=>{"use strict";var tNt=Object.create,rNt=Object.getPrototypeOf,HBe={};WBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||tNt;return typeof e!="function"?!1:rNt(e(t(null),HBe))===HBe}});var DY=Te((u_r,jBe)=>{"use strict";var iNt=yx(),nNt={function:!0,object:!0};jBe.exports=function(e){return iNt(e)&&nNt[typeof e]||!1}});var f1=Te((f_r,XBe)=>{"use strict";var aNt=yx();XBe.exports=function(e){if(!aNt(e))throw new TypeError("Cannot use null or undefined");return e}});var YBe=Te((c_r,ZBe)=>{"use strict";var FY=Object.create,c8;RY()()||(c8=BY());ZBe.exports=function(){var e,t,r;return!c8||c8.level!==1?FY:(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(c8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return FY(n===null?e:n,i)})}()});var BY=Te((h_r,KBe)=>{"use strict";var oNt=DY(),sNt=f1(),lNt=Object.prototype.isPrototypeOf,uNt=Object.defineProperty,fNt={configurable:!0,enumerable:!1,writable:!0,value:void 0},h8;h8=function(e,t){if(sNt(e),t===null||oNt(t))return e;throw new TypeError("Prototype must be null or an object")};KBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(h8(n,i),i),n}):t=function(n,i){return h8(n,i).__proto__=i,n}:t=function n(i,a){var o;return h8(i,a),o=lNt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&uNt(n.nullPolyfill,"__proto__",fNt),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)}());YBe()});var d8=Te((d_r,JBe)=>{"use strict";JBe.exports=RY()()?Object.setPrototypeOf:BY()});var QBe=Te((p_r,$Be)=>{"use strict";var cNt=DY();$Be.exports=function(e){if(!cNt(e))throw new TypeError(e+" is not an Object");return e}});var t9e=Te((v_r,e9e)=>{"use strict";var hNt=Object.create(null),dNt=Math.random;e9e.exports=function(){var e;do e=dNt().toString(36).slice(2);while(hNt[e]);return e}});var uw=Te((m_r,r9e)=>{"use strict";var pNt=void 0;r9e.exports=function(e){return e!==pNt&&e!==null}});var p8=Te((y_r,i9e)=>{"use strict";var vNt=uw(),mNt={object:!0,function:!0,undefined:!0};i9e.exports=function(e){return vNt(e)?hasOwnProperty.call(mNt,typeof e):!1}});var a9e=Te((g_r,n9e)=>{"use strict";var yNt=p8();n9e.exports=function(e){if(!yNt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var s9e=Te((__r,o9e)=>{"use strict";var gNt=a9e();o9e.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!gNt(e)}});var OY=Te((x_r,l9e)=>{"use strict";var _Nt=s9e(),xNt=/^\s*class[\s{/}]/,bNt=Function.prototype.toString;l9e.exports=function(e){return!(!_Nt(e)||xNt.test(bNt.call(e)))}});var f9e=Te((b_r,u9e)=>{"use strict";u9e.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 h9e=Te((w_r,c9e)=>{"use strict";c9e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var p9e=Te((A_r,d9e)=>{"use strict";var wNt=yx(),ANt=Object.keys;d9e.exports=function(e){return ANt(wNt(e)?Object(e):e)}});var m9e=Te((T_r,v9e)=>{"use strict";v9e.exports=h9e()()?Object.keys:p9e()});var g9e=Te((S_r,y9e)=>{"use strict";var TNt=m9e(),SNt=f1(),MNt=Math.max;y9e.exports=function(e,t){var r,n,i=MNt(arguments.length,2),a;for(e=Object(SNt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";_9e.exports=f9e()()?Object.assign:g9e()});var qY=Te((E_r,x9e)=>{"use strict";var ENt=yx(),kNt=Array.prototype.forEach,CNt=Object.create,LNt=function(e,t){var r;for(r in e)t[r]=e[r]};x9e.exports=function(e){var t=CNt(null);return kNt.call(arguments,function(r){ENt(r)&&LNt(Object(r),t)}),t}});var w9e=Te((k_r,b9e)=>{"use strict";var NY="razdwatrzy";b9e.exports=function(){return typeof NY.contains!="function"?!1:NY.contains("dwa")===!0&&NY.contains("foo")===!1}});var T9e=Te((C_r,A9e)=>{"use strict";var PNt=String.prototype.indexOf;A9e.exports=function(e){return PNt.call(this,e,arguments[1])>-1}});var UY=Te((L_r,S9e)=>{"use strict";S9e.exports=w9e()()?String.prototype.contains:T9e()});var c1=Te((P_r,C9e)=>{"use strict";var m8=uw(),M9e=OY(),E9e=v8(),k9e=qY(),Mk=UY(),zNt=C9e.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],m8(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?E9e(k9e(a),o):o};zNt.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],m8(t)?M9e(t)?m8(r)?M9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,m8(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?E9e(k9e(a),o):o}});var Ek=Te((z_r,P9e)=>{"use strict";var L9e=Object.prototype.toString,INt=L9e.call(function(){return arguments}());P9e.exports=function(e){return L9e.call(e)===INt}});var kk=Te((I_r,I9e)=>{"use strict";var z9e=Object.prototype.toString,RNt=z9e.call("");I9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||z9e.call(e)===RNt)||!1}});var D9e=Te((R_r,R9e)=>{"use strict";R9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var O9e=Te((D_r,B9e)=>{var F9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};B9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return F9e()}try{return __global__||F9e()}finally{delete Object.prototype.__global__}}()});var Ck=Te((F_r,q9e)=>{"use strict";q9e.exports=D9e()()?globalThis:O9e()});var U9e=Te((B_r,N9e)=>{"use strict";var DNt=Ck(),VY={object:!0,symbol:!0};N9e.exports=function(){var e=DNt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!VY[typeof e.iterator]||!VY[typeof e.toPrimitive]||!VY[typeof e.toStringTag])}});var G9e=Te((O_r,V9e)=>{"use strict";V9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var GY=Te((q_r,H9e)=>{"use strict";var FNt=G9e();H9e.exports=function(e){if(!FNt(e))throw new TypeError(e+" is not a symbol");return e}});var Y9e=Te((N_r,Z9e)=>{"use strict";var W9e=c1(),BNt=Object.create,j9e=Object.defineProperty,ONt=Object.prototype,X9e=BNt(null);Z9e.exports=function(e){for(var t=0,r,n;X9e[e+(t||"")];)++t;return e+=t||"",X9e[e]=!0,r="@@"+e,j9e(ONt,r,W9e.gs(null,function(i){n||(n=!0,j9e(this,r,W9e(i)),n=!1)})),r}});var J9e=Te((U_r,K9e)=>{"use strict";var ry=c1(),Xh=Ck().Symbol;K9e.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 eOe=Te((V_r,Q9e)=>{"use strict";var $9e=c1(),qNt=GY(),Lk=Object.create(null);Q9e.exports=function(e){return Object.defineProperties(e,{for:$9e(function(t){return Lk[t]?Lk[t]:Lk[t]=e(String(t))}),keyFor:$9e(function(t){var r;qNt(t);for(r in Lk)if(Lk[r]===t)return r})})}});var iOe=Te((G_r,rOe)=>{"use strict";var tg=c1(),HY=GY(),y8=Ck().Symbol,NNt=Y9e(),UNt=J9e(),VNt=eOe(),GNt=Object.create,WY=Object.defineProperties,g8=Object.defineProperty,Xp,vS,tOe;if(typeof y8=="function")try{String(y8()),tOe=!0}catch(e){}else y8=null;vS=function(t){if(this instanceof vS)throw new TypeError("Symbol is not a constructor");return Xp(t)};rOe.exports=Xp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return tOe?y8(t):(r=GNt(vS.prototype),t=t===void 0?"":String(t),WY(r,{__description__:tg("",t),__name__:tg("",NNt(t))}))};UNt(Xp);VNt(Xp);WY(vS.prototype,{constructor:tg(Xp),toString:tg("",function(){return this.__name__})});WY(Xp.prototype,{toString:tg(function(){return"Symbol ("+HY(this).__description__+")"}),valueOf:tg(function(){return HY(this)})});g8(Xp.prototype,Xp.toPrimitive,tg("",function(){var e=HY(this);return typeof e=="symbol"?e:e.toString()}));g8(Xp.prototype,Xp.toStringTag,tg("c","Symbol"));g8(vS.prototype,Xp.toStringTag,tg("c",Xp.prototype[Xp.toStringTag]));g8(vS.prototype,Xp.toPrimitive,tg("c",Xp.prototype[Xp.toPrimitive]))});var gx=Te((H_r,nOe)=>{"use strict";nOe.exports=U9e()()?Ck().Symbol:iOe()});var oOe=Te((W_r,aOe)=>{"use strict";var HNt=f1();aOe.exports=function(){return HNt(this).length=0,this}});var mS=Te((j_r,sOe)=>{"use strict";sOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var uOe=Te((X_r,lOe)=>{"use strict";var WNt=uw(),jNt=p8(),XNt=Object.prototype.toString;lOe.exports=function(e){if(!WNt(e))return null;if(jNt(e)){var t=e.toString;if(typeof t!="function"||t===XNt)return null}try{return""+e}catch(r){return null}}});var cOe=Te((Z_r,fOe)=>{"use strict";fOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var dOe=Te((Y_r,hOe)=>{"use strict";var ZNt=cOe(),YNt=/[\n\r\u2028\u2029]/g;hOe.exports=function(e){var t=ZNt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(YNt,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 jY=Te((K_r,mOe)=>{"use strict";var pOe=uw(),KNt=p8(),JNt=uOe(),$Nt=dOe(),vOe=function(e,t){return e.replace("%v",$Nt(t))};mOe.exports=function(e,t,r){if(!KNt(r))throw new TypeError(vOe(t,e));if(!pOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=JNt(r.errorMessage);throw pOe(n)||(n=t),new TypeError(vOe(n,e))}});var gOe=Te((J_r,yOe)=>{"use strict";var QNt=jY(),e7t=uw();yOe.exports=function(e){return e7t(e)?e:QNt(e,"Cannot use %v",arguments[1])}});var xOe=Te(($_r,_Oe)=>{"use strict";var t7t=jY(),r7t=OY();_Oe.exports=function(e){return r7t(e)?e:t7t(e,"%v is not a plain function",arguments[1])}});var wOe=Te((Q_r,bOe)=>{"use strict";bOe.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 TOe=Te((exr,AOe)=>{"use strict";var i7t=Object.prototype.toString,n7t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);AOe.exports=function(e){return typeof e=="function"&&n7t(i7t.call(e))}});var MOe=Te((txr,SOe)=>{"use strict";SOe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var kOe=Te((rxr,EOe)=>{"use strict";EOe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var LOe=Te((ixr,COe)=>{"use strict";COe.exports=MOe()()?Math.sign:kOe()});var zOe=Te((nxr,POe)=>{"use strict";var a7t=LOe(),o7t=Math.abs,s7t=Math.floor;POe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:a7t(e)*s7t(o7t(e)))}});var ROe=Te((axr,IOe)=>{"use strict";var l7t=zOe(),u7t=Math.max;IOe.exports=function(e){return u7t(0,l7t(e))}});var OOe=Te((oxr,BOe)=>{"use strict";var f7t=gx().iterator,c7t=Ek(),h7t=TOe(),d7t=ROe(),DOe=mS(),p7t=f1(),v7t=yx(),m7t=kk(),FOe=Array.isArray,XY=Function.prototype.call,fw={configurable:!0,enumerable:!0,writable:!0,value:null},ZY=Object.defineProperty;BOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(p7t(e)),v7t(t)&&DOe(t),!this||this===Array||!h7t(this)){if(!t){if(c7t(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(FOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?XY.call(t,r,h,a):h,n?(fw.value=h,ZY(o,a,fw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=d7t(e.length),n&&(o=new n(s)),i=0;i{"use strict";qOe.exports=wOe()()?Array.from:OOe()});var VOe=Te((lxr,UOe)=>{"use strict";var y7t=NOe(),g7t=v8(),_7t=f1();UOe.exports=function(e){var t=Object(_7t(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?y7t(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):g7t(i,e),i}});var WOe=Te((uxr,HOe)=>{"use strict";var x7t=mS(),b7t=f1(),w7t=Function.prototype.bind,GOe=Function.prototype.call,A7t=Object.keys,T7t=Object.prototype.propertyIsEnumerable;HOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(b7t(r)),x7t(n),i=A7t(r),o&&i.sort(typeof o=="function"?w7t.call(o,r):void 0),typeof e!="function"&&(e=i[e]),GOe.call(e,i,function(s,u){return T7t.call(r,s)?GOe.call(n,a,r[s],s,r,u):t})}}});var XOe=Te((fxr,jOe)=>{"use strict";jOe.exports=WOe()("forEach")});var YOe=Te((cxr,ZOe)=>{"use strict";var S7t=mS(),M7t=XOe(),E7t=Function.prototype.call;ZOe.exports=function(e,t){var r={},n=arguments[2];return S7t(t),M7t(e,function(i,a,o,s){r[a]=E7t.call(t,n,i,a,o,s)}),r}});var QOe=Te((hxr,$Oe)=>{"use strict";var k7t=uw(),C7t=gOe(),KOe=xOe(),L7t=VOe(),P7t=qY(),z7t=YOe(),I7t=Function.prototype.bind,R7t=Object.defineProperty,D7t=Object.prototype.hasOwnProperty,JOe;JOe=function(e,t,r){var n=C7t(t)&&KOe(t.value),i;return i=L7t(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&D7t.call(this,e)?n:(t.value=I7t.call(n,r.resolveContext?r.resolveContext(this):this),R7t(this,e,t),this[e])},i};$Oe.exports=function(e){var t=P7t(arguments[1]);return k7t(t.resolveContext)&&KOe(t.resolveContext),z7t(e,function(r,n){return JOe(n,r,t)})}});var YY=Te((dxr,iqe)=>{"use strict";var F7t=oOe(),B7t=v8(),O7t=mS(),q7t=f1(),Ov=c1(),N7t=QOe(),eqe=gx(),tqe=Object.defineProperty,rqe=Object.defineProperties,Pk;iqe.exports=Pk=function(e,t){if(!(this instanceof Pk))throw new TypeError("Constructor requires 'new'");rqe(this,{__list__:Ov("w",q7t(e)),__context__:Ov("w",t),__nextIndex__:Ov("w",0)}),t&&(O7t(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Pk.prototype.constructor;rqe(Pk.prototype,B7t({_next:Ov(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__){tqe(this,"__redo__",Ov("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Ov(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:Ov(function(){this.__redo__&&F7t.call(this.__redo__),this.__nextIndex__=0})})));tqe(Pk.prototype,eqe.iterator,Ov(function(){return this}))});var lqe=Te((pxr,sqe)=>{"use strict";var nqe=d8(),aqe=UY(),KY=c1(),U7t=gx(),JY=YY(),oqe=Object.defineProperty,yS;yS=sqe.exports=function(e,t){if(!(this instanceof yS))throw new TypeError("Constructor requires 'new'");JY.call(this,e),t?aqe.call(t,"key+value")?t="key+value":aqe.call(t,"key")?t="key":t="value":t="value",oqe(this,"__kind__",KY("",t))};nqe&&nqe(yS,JY);delete yS.prototype.constructor;yS.prototype=Object.create(JY.prototype,{_resolve:KY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});oqe(yS.prototype,U7t.toStringTag,KY("c","Array Iterator"))});var hqe=Te((vxr,cqe)=>{"use strict";var uqe=d8(),_8=c1(),V7t=gx(),$Y=YY(),fqe=Object.defineProperty,gS;gS=cqe.exports=function(e){if(!(this instanceof gS))throw new TypeError("Constructor requires 'new'");e=String(e),$Y.call(this,e),fqe(this,"__length__",_8("",e.length))};uqe&&uqe(gS,$Y);delete gS.prototype.constructor;gS.prototype=Object.create($Y.prototype,{_next:_8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});fqe(gS.prototype,V7t.toStringTag,_8("c","String Iterator"))});var pqe=Te((mxr,dqe)=>{"use strict";var G7t=Ek(),H7t=yx(),W7t=kk(),j7t=gx().iterator,X7t=Array.isArray;dqe.exports=function(e){return H7t(e)?X7t(e)||W7t(e)||G7t(e)?!0:typeof e[j7t]=="function":!1}});var mqe=Te((yxr,vqe)=>{"use strict";var Z7t=pqe();vqe.exports=function(e){if(!Z7t(e))throw new TypeError(e+" is not iterable");return e}});var QY=Te((gxr,_qe)=>{"use strict";var Y7t=Ek(),K7t=kk(),yqe=lqe(),J7t=hqe(),$7t=mqe(),gqe=gx().iterator;_qe.exports=function(e){return typeof $7t(e)[gqe]=="function"?e[gqe]():Y7t(e)?new yqe(e):K7t(e)?new J7t(e):new yqe(e)}});var bqe=Te((_xr,xqe)=>{"use strict";var Q7t=Ek(),eUt=mS(),tUt=kk(),rUt=QY(),iUt=Array.isArray,eK=Function.prototype.call,nUt=Array.prototype.some;xqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(iUt(e)||Q7t(e)?r="array":tUt(e)?r="string":e=rUt(e),eUt(t),a=function(){o=!0},r==="array"){nUt.call(e,function(c){return eK.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),eK.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(eK.call(t,n,i.value,a),o)return;i=e.next()}}});var Aqe=Te((xxr,wqe)=>{"use strict";wqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var Mqe=Te((bxr,Sqe)=>{"use strict";var aUt=yx(),b8=d8(),x8=QBe(),oUt=f1(),sUt=t9e(),h1=c1(),lUt=QY(),uUt=bqe(),fUt=gx().toStringTag,Tqe=Aqe(),cUt=Array.isArray,rK=Object.defineProperty,tK=Object.prototype.hasOwnProperty,hUt=Object.getPrototypeOf,_x;Sqe.exports=_x=function(){var e=arguments[0],t;if(!(this instanceof _x))throw new TypeError("Constructor requires 'new'");return t=Tqe&&b8&&WeakMap!==_x?b8(new WeakMap,hUt(this)):this,aUt(e)&&(cUt(e)||(e=lUt(e))),rK(t,"__weakMapData__",h1("c","$weakMap$"+sUt())),e&&uUt(e,function(r){oUt(r),t.set(r[0],r[1])}),t};Tqe&&(b8&&b8(_x,WeakMap),_x.prototype=Object.create(WeakMap.prototype,{constructor:h1(_x)}));Object.defineProperties(_x.prototype,{delete:h1(function(e){return tK.call(x8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(tK.call(x8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return tK.call(x8(e),this.__weakMapData__)}),set:h1(function(e,t){return rK(x8(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});rK(_x.prototype,fUt,h1("c","WeakMap"))});var iK=Te((wxr,Eqe)=>{"use strict";Eqe.exports=NBe()()?WeakMap:Mqe()});var Cqe=Te((Axr,kqe)=>{"use strict";kqe.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 w8=ox(),dUt=rw(),aK=jh(),pUt=eg(),vUt=iw(),Lqe=FBe(),mUt=OBe(),{float32:yUt,fract32:nK}=n8(),gUt=iK(),Pqe=sS(),_Ut=Cqe(),xUt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -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:Dqe.length}),Iqe(c,{update:p,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&_(),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=CUt(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=Iqe({},l,L)),kUt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=Rqe(M),C+=M.length,M),positions:(M,m)=>(M=Rqe(M,"float64"),m.count=Math.floor(M.length/2),m.bounds=MUt(M,2),m.offset=v,v+=m.count,M)},{color:(M,m)=>{let P=m.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let F=M;M=Array(P);for(let B=0;B{let A=m.bounds;return M||(M=A),m.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],m.translate=[-M[0],-M[1]],m.scaleFract=sK(m.scale),m.translateFract=sK(m.translate),M},viewport:M=>{let m;return Array.isArray(M)?m={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(m={x:M.x||M.left||0,y:M.y||M.top||0},M.right?m.width=M.right-m.x:m.width=M.w||M.width||0,M.bottom?m.height=M.bottom-m.y:m.height=M.h||M.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),k}),v||C){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:F,offset:B,color:U,errors:G}=m;F&&(k.set(U,B*4),M.set(G,B*4),x.set(A,B*2))});var E=LUt(x);i(E);var T=sK(x,E);a(T),o(k),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var Nqe=Te((Mxr,qqe)=>{var Oqe=/[\'\"]/;qqe.exports=function(t){return t?(Oqe.test(t.charAt(0))&&(t=t.substr(1)),Oqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var lK=Te((Exr,zUt)=>{zUt.exports=["inherit","initial","unset"]});var uK=Te((kxr,IUt)=>{IUt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var fK=Te((Cxr,RUt)=>{RUt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var cK=Te((Lxr,DUt)=>{DUt.exports=["normal","italic","oblique"]});var hK=Te((Pxr,FUt)=>{FUt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Hqe=Te((zxr,Gqe)=>{"use strict";function Uqe(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 _=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(_),i+_+i}r.forEach(function(h,d){for(var p,_=0;h!=p;)if(p=h,h=h.replace(l,c),_++>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 Vqe(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 dK(e,t){return Array.isArray(e)?Vqe(e,t):Uqe(e,t)}dK.parse=Uqe;dK.stringify=Vqe;Gqe.exports=dK});var Xqe=Te((Ixr,jqe)=>{"use strict";var Wqe=Hqe();jqe.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=Wqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{BUt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var pK=Te((Dxr,Yqe)=>{"use strict";var OUt=Zqe();Yqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||OUt.indexOf(t)!==-1}}});var Qqe=Te((Fxr,$qe)=>{"use strict";var qUt=Nqe(),NUt=lK(),UUt=uK(),VUt=fK(),GUt=cK(),HUt=hK(),vK=Xqe(),WUt=pK().isSize;$qe.exports=Jqe;var Pk=Jqe.cache={};function Jqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Pk[e])return Pk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(UUt.indexOf(e)!==-1)return Pk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=vK(e,/\s+/),n;n=r.shift();){if(NUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Pk[e]=t;if(GUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(HUt.indexOf(n)!==-1){t.stretch=n;continue}if(VUt.indexOf(n)!==-1){t.weight=n;continue}if(WUt(n)){var i=vK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Kqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Kqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=vK(r.join(" "),/\s*,\s*/).map(qUt),Pk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Kqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var yK=Te((Bxr,eNe)=>{"use strict";var jUt=eg(),XUt=pK().isSize,ZUt=Ik(lK()),YUt=Ik(uK()),KUt=Ik(fK()),JUt=Ik(cK()),$Ut=Ik(hK()),QUt={normal:1,"small-caps":1},eVt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},mK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};eNe.exports=function(t){if(t=jUt(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&&zk(t.system,YUt),t.system;if(zk(t.style,JUt),zk(t.variant,QUt),zk(t.weight,KUt),zk(t.stretch,$Ut),t.size==null&&(t.size=mK.size),typeof t.size=="number"&&(t.size+="px"),!XUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=mK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[mK.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 zk(e,t){if(e&&!t[e]&&!ZUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Ik(e){for(var t={},r=0;r{"use strict";tNe.exports={parse:Qqe(),stringify:yK()}});var iNe=Te((gK,_K)=>{(function(e,t){typeof gK=="object"&&typeof _K!="undefined"?_K.exports=t():e.createREGL=t()})(gK,function(){"use strict";var e=function(Be,Nt){for(var ar=Object.keys(Nt),Qr=0;Qr1&&Nt===ar&&(Nt==='"'||Nt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var yi=Be.split(".");if(yi.length===1)return['"'+o(Be)+'"'];for(var ci=[],vi=0;vi65535)<<4,Be>>>=Nt,ar=(Be>255)<<3,Be>>>=ar,Nt|=ar,ar=(Be>15)<<2,Be>>>=ar,Nt|=ar,ar=(Be>3)<<1,Be>>>=ar,Nt|=ar,Nt|Be>>1}function N(){var Be=M(8,function(){return[]});function Nt(ci){var vi=j(ci),on=Be[W(vi)>>2];return on.length>0?on.pop():new ArrayBuffer(vi)}function ar(ci){Be[W(ci.byteLength)>>2].push(ci)}function Qr(ci,vi){var on=null;switch(ci){case m:on=new Int8Array(Nt(vi),0,vi);break;case P:on=new Uint8Array(Nt(vi),0,vi);break;case A:on=new Int16Array(Nt(2*vi),0,vi);break;case F:on=new Uint16Array(Nt(2*vi),0,vi);break;case B:on=new Int32Array(Nt(4*vi),0,vi);break;case U:on=new Uint32Array(Nt(4*vi),0,vi);break;case G:on=new Float32Array(Nt(4*vi),0,vi);break;default:return null}return on.length!==vi?on.subarray(0,vi):on}function yi(ci){ar(ci.buffer)}return{alloc:Nt,free:ar,allocType:Qr,freeType:yi}}var H=N();H.zero=N();var re=3408,ae=3410,ge=3411,ze=3412,Le=3413,de=3414,te=3415,ke=33901,Ee=33902,Se=3379,Ge=3386,De=34921,xe=36347,Ne=36348,ce=35661,je=35660,Qe=34930,gt=36349,qt=34076,at=34024,Ke=7936,Ct=7937,wt=7938,Mt=35724,Bt=34047,Zt=36063,Et=34852,Ae=3553,ot=34067,At=34069,vt=33984,Je=6408,He=5126,nt=5121,tt=36160,It=36053,Yt=36064,cr=16384,_r=function(Be,Nt){var ar=1;Nt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Bt));var Qr=1,yi=1;Nt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),yi=Be.getParameter(Zt));var ci=!!Nt.oes_texture_float;if(ci){var vi=Be.createTexture();Be.bindTexture(Ae,vi),Be.texImage2D(Ae,0,Je,1,1,0,Je,He,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer(tt,on),Be.framebufferTexture2D(tt,Yt,Ae,vi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus(tt)!==It)ci=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(cr);var Bn=H.allocType(He,4);Be.readPixels(0,0,1,1,Je,He,Bn),Be.getError()?ci=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(vi),ci=Bn[0]===1),H.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=H.allocType(nt,36);Be.activeTexture(vt),Be.bindTexture(ot,Ls),Be.texImage2D(At,0,Je,3,3,0,Je,nt,ua),H.freeType(ua),Be.bindTexture(ot,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(ge),Be.getParameter(ze),Be.getParameter(Le)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(Nt).filter(function(Hn){return!!Nt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:yi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ge),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(qt),maxRenderbufferSize:Be.getParameter(at),maxTextureUnits:Be.getParameter(Qe),maxTextureSize:Be.getParameter(Se),maxAttributes:Be.getParameter(De),maxVertexUniforms:Be.getParameter(xe),maxVertexTextureUnits:Be.getParameter(je),maxVaryingVectors:Be.getParameter(Ne),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(Mt),renderer:Be.getParameter(Ct),vendor:Be.getParameter(Ke),version:Be.getParameter(wt),readFloat:ci,npotTextureCube:wn}},yr=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||yr(Be.data))}var Re=function(Be){return Object.keys(Be).map(function(Nt){return Be[Nt]})},be={shape:fe,flatten:ye};function Oe(Be,Nt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(xi[0])){Kn=si(xi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var On=H.allocType(Zi.dtype,Ji.length);xr(On,Ji),Kn(On,ro),H.freeType(On)}else if(Array.isArray(Ji[0])||yr(Ji[0])){na=si(Ji);var In=Qi(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Ut(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:Wt(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,ar.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function qi(){Re(ci).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(Nt.getTotalBufferSize=function(){var Wr=0;return Object.keys(ci).forEach(function(xi){Wr+=ci[xi].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Re(ci).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof vi?Wr._buffer:null},restore:qi,_initBuffer:Ls}}var Or=0,Hr=0,jr=1,gi=1,ki=4,Vi=4,ti={points:Or,point:Hr,lines:jr,line:gi,triangles:ki,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tn=0,Yr=1,oi=4,Fi=5120,an=5121,nn=5122,Ri=5123,Ii=5124,xn=5125,bi=34963,Xr=35040,ct=35044;function tr(Be,Nt,ar,Qr){var yi={},ci=0,vi={uint8:an,uint16:Ri};Nt.oes_element_index_uint&&(vi.uint32=xn);function on(qi){this.id=ci++,yi[this.id]=this,this.buffer=qi,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(qi){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,bi,!0,!1)._buffer)),Ls(Wr,qi,Xr,-1,-1,0,0),Wr}function wn(qi){Bn.push(qi)}function Ls(qi,Wr,xi,dn,En,Zi,ga){qi.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!yr(Wr)||Ut(Wr)&&!yr(Wr.data))&&(hs=Nt.oes_element_index_uint?xn:Ri),ar._initBuffer(qi.buffer,Wr,xi,hs,3)}else Be.bufferData(bi,Zi,xi),qi.buffer.dtype=Kn||an,qi.buffer.usage=xi,qi.buffer.dimension=3,qi.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(qi.buffer.dtype){case an:case Fi:Kn=an;break;case Ri:case nn:Kn=Ri;break;case xn:case Ii:Kn=xn;break;default:}qi.buffer.dtype=Kn}qi.type=Kn;var Ji=En;Ji<0&&(Ji=qi.buffer.byteLength,Kn===Ri?Ji>>=1:Kn===xn&&(Ji>>=2)),qi.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=qi.buffer.dimension;ro===1&&(Ui=tn),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}qi.primType=Ui}function ua(qi){Qr.elementsCount--,delete yi[qi.id],qi.buffer.destroy(),qi.buffer=null}function Hn(qi,Wr){var xi=ar.create(null,bi,!0),dn=new on(xi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)xi(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Zi=="number")xi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=an;else{var ga=null,Kn=ct,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||yr(Zi)||Ut(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=$i[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=vi[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Ri||ro===nn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(qi),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return xi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(qi){return typeof qi=="function"&&qi._elements instanceof on?qi._elements:null},clear:function(){Re(yi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var Nt=H.allocType(Zr,Be.length),ar=0;ar>>31<<15,ci=(Qr<<1>>>24)-127,vi=Qr>>13&1023;if(ci<-24)Nt[ar]=yi;else if(ci<-14){var on=-14-ci;Nt[ar]=yi+(vi+1024>>on)}else ci>15?Nt[ar]=yi+31744:Nt[ar]=yi+(ci+15<<10)+vi}return Nt}function en(Be){return Array.isArray(Be)||yr(Be)}var ii=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,Ba=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,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[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(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var rn=[];rn[so]=2,rn[Kr]=2,rn[Ia]=2,rn[uo]=4,rn[mn]=.5,rn[ra]=.5,rn[wa]=1,rn[ws]=1,rn[Co]=.5,rn[Po]=1,rn[Wi]=1,rn[gn]=.5,rn[Ps]=.25,rn[Ha]=.5,rn[Sn]=.25,rn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var Nt=Be.length;return!(Nt===0||!en(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var Nt=yo(Be);return es.indexOf(Nt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,Nt){var ar=Nt.length;switch(Be.type){case Ba:case Ko:case Qo:case Hi:var Qr=H.allocType(Be.type,ar);Qr.set(Nt),Be.data=Qr;break;case fo:Be.data=Ai(Nt);break;default:}}function Wa(Be,Nt){return H.allocType(Be.type===fo?Hi:Be.type,Nt)}function To(Be,Nt){Be.type===fo?(Be.data=Ai(Nt),H.freeType(Nt)):Be.data=Nt}function ts(Be,Nt,ar,Qr,yi,ci){for(var vi=Be.width,on=Be.height,Bn=Be.channels,Ln=vi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=vi*Bn*Bn,Bn/=2;return on}else return vi*ar*Qr}function qa(Be,Nt,ar,Qr,yi,ci,vi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={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:Ba,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},qi={};Nt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Nt.oes_texture_float&&(ua.float32=ua.float=Hi),Nt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Nt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Nt.webgl_compressed_texture_s3tc&&e(qi,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Nt.webgl_compressed_texture_atc&&e(qi,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Nt.webgl_compressed_texture_pvrtc&&e(qi,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Nt.webgl_compressed_texture_etc1&&(qi["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ii));Object.keys(qi).forEach(function(ne){var Ce=qi[ne];Wr.indexOf(Ce)>=0&&(Hn[ne]=Ce)});var xi=Object.keys(Hn);ar.textureFormats=xi;var dn=[];Object.keys(Hn).forEach(function(ne){var Ce=Hn[ne];dn[Ce]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Ce=ua[ne];En[Ce]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var Ce=Ln[ne];Zi[Ce]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Ce=wn[ne];ga[Ce]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Ce=Bn[ne];Kn[Ce]=ne});var hs=xi.reduce(function(ne,Ce){var Ye=Hn[Ce];return Ye===oa||Ye===Ga||Ye===oa||Ye===ka||Ye===ys||Ye===uo||Nt.ext_srgb&&(Ye===ls||Ye===$a)?ne[Ye]=Ye:Ye===Kr||Ce.indexOf("rgba")>=0?ne[Ye]=Un:ne[Ye]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Ba,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,Ce){ne.internalformat=Ce.internalformat,ne.format=Ce.format,ne.type=Ce.type,ne.compressed=Ce.compressed,ne.premultiplyAlpha=Ce.premultiplyAlpha,ne.flipY=Ce.flipY,ne.unpackAlignment=Ce.unpackAlignment,ne.colorSpace=Ce.colorSpace,ne.width=Ce.width,ne.height=Ce.height,ne.channels=Ce.channels}function ro(ne,Ce){if(!(typeof Ce!="object"||!Ce)){if("premultiplyAlpha"in Ce&&(ne.premultiplyAlpha=Ce.premultiplyAlpha),"flipY"in Ce&&(ne.flipY=Ce.flipY),"alignment"in Ce&&(ne.unpackAlignment=Ce.alignment),"colorSpace"in Ce&&(ne.colorSpace=Ls[Ce.colorSpace]),"type"in Ce){var Ye=Ce.type;ne.type=ua[Ye]}var kt=ne.width,dr=ne.height,Mr=ne.channels,lr=!1;"shape"in Ce?(kt=Ce.shape[0],dr=Ce.shape[1],Ce.shape.length===3&&(Mr=Ce.shape[2],lr=!0)):("radius"in Ce&&(kt=dr=Ce.radius),"width"in Ce&&(kt=Ce.width),"height"in Ce&&(dr=Ce.height),"channels"in Ce&&(Mr=Ce.channels,lr=!0)),ne.width=kt|0,ne.height=dr|0,ne.channels=Mr|0;var $e=!1;if("format"in Ce){var ht=Ce.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Ce||(ne.type=ua[ht])),ht in qi&&(ne.compressed=!0),$e=!0}!lr&&$e?ne.channels=$n[ne.format]:lr&&!$e&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Ce){var Ye=null;if(Es(Ce)?Ye=Ce:Ce&&(ro(ne,Ce),"x"in Ce&&(ne.xOffset=Ce.x|0),"y"in Ce&&(ne.yOffset=Ce.y|0),Es(Ce.data)&&(Ye=Ce.data)),Ce.copy){var kt=yi.viewportWidth,dr=yi.viewportHeight;ne.width=ne.width||kt-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ye)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(yr(Ye))ne.channels=ne.channels||4,ne.data=Ye,!("type"in Ce)&&ne.type===Ba&&(ne.type=Ts(Ye));else if(Pa(Ye))ne.channels=ne.channels||4,Ho(ne,Ye),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ye)){var Mr=Ye.data;!Array.isArray(Mr)&&ne.type===Ba&&(ne.type=Ts(Mr));var lr=Ye.shape,$e=Ye.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=$e[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=$e[0],Qt=$e[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Mr,sr,Qt,ur,Ye.offset)}else if(Jo(Ye)||Ao(Ye)||Dn(Ye))Jo(Ye)||Ao(Ye)?ne.element=Ye:ne.element=Ye.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ye))ne.element=Ye,ne.width=Ye.width,ne.height=Ye.height,ne.channels=4;else if(Ws(Ye))ne.element=Ye,ne.width=Ye.naturalWidth,ne.height=Ye.naturalHeight,ne.channels=4;else if(Ca(Ye))ne.element=Ye,ne.width=Ye.videoWidth,ne.height=Ye.videoHeight,ne.channels=4;else if(to(Ye)){var er=ne.width||Ye[0].length,Ot=ne.height||Ye.length,Jt=ne.channels;en(Ye[0][0])?Jt=Jt||Ye[0][0].length:Jt=Jt||1;for(var Lt=be.shape(Ye),Tr=1,Ur=0;Ur>=dr,Ye.height>>=dr,In(Ye,kt[dr]),ne.mipmask|=1<=0&&!("faces"in Ce)&&(ne.genMipmaps=!0)}if("mag"in Ce){var kt=Ce.mag;ne.magFilter=Ln[kt]}var dr=ne.wrapS,Mr=ne.wrapT;if("wrap"in Ce){var lr=Ce.wrap;typeof lr=="string"?dr=Mr=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Mr=Bn[lr[1]])}else{if("wrapS"in Ce){var $e=Ce.wrapS;dr=Bn[$e]}if("wrapT"in Ce){var ht=Ce.wrapT;Mr=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Mr,"anisotropic"in Ce){var bt=Ce.anisotropic;ne.anisotropic=Ce.anisotropic}if("mipmap"in Ce){var Kt=!1;switch(typeof Ce.mipmap){case"string":ne.mipmapHint=on[Ce.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Ce.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Ce)&&(ne.minFilter=mo)}}function xf(ne,Ce){Be.texParameteri(Ce,As,ne.minFilter),Be.texParameteri(Ce,vo,ne.magFilter),Be.texParameteri(Ce,Sa,ne.wrapS),Be.texParameteri(Ce,Qa,ne.wrapT),Nt.ext_texture_filter_anisotropic&&Be.texParameteri(Ce,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Ce))}var Cf=0,Gu={},cf=ar.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=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,vi.profile&&(this.stats={size:0})}function bf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Xi,null)}function Y(ne){var Ce=ne.texture,Ye=ne.unit,kt=ne.target;Ye>=0&&(Be.activeTexture(Ra+Ye),Be.bindTexture(kt,null),mf[Ye]=null),Be.deleteTexture(Ce),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],ci.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Ce=ne.unit;if(Ce<0){for(var Ye=0;Ye0)continue;kt.unit=-1}mf[Ye]=ne,Ce=Ye;break}Ce>=cf,vi.profile&&ci.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ye.height>>Qt)-sr,bf(Ye),_s(ur,Xi,Kt,sr,Qt),cu(),Mo(ur),kt}function Mr(lr,$e){var ht=lr|0,bt=$e|0||ht;if(ht===Ye.width&&bt===Ye.height)return kt;kt.width=Ye.width=ht,kt.height=Ye.height=bt,bf(Ye);for(var Kt=0;Ye.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Xi,Kt,Ye.format,sr,Qt,0,Ye.format,Ye.type,null)}return cu(),vi.profile&&(Ye.stats.size=Wo(Ye.internalformat,Ye.type,ht,bt,!1,!1)),kt}return kt(ne,Ce),kt.subimage=dr,kt.resize=Mr,kt._reglType="texture2d",kt._texture=Ye,vi.profile&&(kt.stats=Ye.stats),kt.destroy=function(){Ye.decRef()},kt}function J(ne,Ce,Ye,kt,dr,Mr){var lr=new Fl(aa);Gu[lr.id]=lr,ci.cubeCount++;var $e=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)$e[Lt]=Ql();if(typeof sr=="number"||!sr){var Ur=sr|0||1;for(Lt=0;Lt<6;++Lt)pl($e[Lt],Ur,Ur)}else if(typeof sr=="object")if(Qt)Dl($e[0],sr),Dl($e[1],Qt),Dl($e[2],ur),Dl($e[3],er),Dl($e[4],Ot),Dl($e[5],Jt);else if(gf(Tr,sr),ro(lr,sr),"faces"in sr){var hi=sr.faces;for(Lt=0;Lt<6;++Lt)Ui($e[Lt],lr),Dl($e[Lt],hi[Lt])}else for(Lt=0;Lt<6;++Lt)Dl($e[Lt],sr);for(Ui(lr,$e[0]),Tr.genMipmaps?lr.mipmask=($e[0].width<<1)-1:lr.mipmask=$e[0].mipmask,lr.internalformat=$e[0].internalformat,ht.width=$e[0].width,ht.height=$e[0].height,bf(lr),Lt=0;Lt<6;++Lt)Bu($e[Lt],Mn+Lt);for(xf(Tr,aa),cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Zi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)Ef($e[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Ur=Qn();return Ui(Ur,lr),Ur.width=0,Ur.height=0,In(Ur,Qt),Ur.width=Ur.width||(lr.width>>Tr)-Jt,Ur.height=Ur.height||(lr.height>>Tr)-Lt,bf(lr),_s(Ur,Mn+sr,Jt,Lt,Tr),cu(),Mo(Ur),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,bf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Ce,Ye,kt,dr,Mr),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,vi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,kt,Ye.internalformat,Ye.width>>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);xf(Ye.texInfo,Ye.target)})}function _e(){for(var ne=0;ne=0?Ef=!0:Bn.indexOf(Cu)>=0&&(Ef=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Bu=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Bu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Bu=vf=Fl.depthStencil:(cf=Fl.depthStencil,Bu=!1,vf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(qi);else if(Ql)cu=[qi(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]=yi.create(Qn,Ss,!1,!0)),Mo.buffer=yi.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 yi.getBuffer(Qn)?(Mo.buffer=yi.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):yi.getBuffer(Qn.buffer)?(Mo.buffer=yi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=pi[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=xi.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(xi){xi.stats.attributesCount>Wr&&(Wr=xi.stats.attributesCount)}),Wr});function qi(){yi={},ci={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),yi=Array(16),ci=0;ci<16;ci++)Qr[ci]=ar[ci]^909522486,yi[ci]=ar[ci]^1549556828;var vi=Pi(Qr.concat(Bs(Nt)),512+Nt.length*8);return Tt(Pi(yi.concat(vi),768))}function Ms(Be){for(var Nt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,yi=0;yi>>4&15)+Nt.charAt(Qr&15);return ar}function jo(Be){for(var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,yi=0;yiBe.length*8?ar+=tl:ar+=Nt.charAt(ci>>>6*(3-vi)&63);return ar}function Rs(Be,Nt){var ar=Nt.length,Qr=Array(),yi,ci,vi,on,Bn=Array(Math.ceil(Be.length/2));for(yi=0;yi0;){for(on=Array(),vi=0,yi=0;yi0||ci>0)&&(on[on.length]=ci);Qr[Qr.length]=vi,Bn=on}var Ln="";for(yi=Qr.length-1;yi>=0;yi--)Ln+=Nt.charAt(Qr[yi]);var wn=Math.ceil(Be.length*8/(Math.log(Nt.length)/Math.log(2)));for(yi=Ln.length;yi>>6&31,128|Qr&63):Qr<=65535?Nt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Nt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Nt}function Bs(Be){for(var Nt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return Nt}function Tt(Be){for(var Nt="",ar=0;ar>5]>>>24-ar%32&255);return Nt}function Vt(Be,Nt){return Be>>>Nt|Be<<32-Nt}function wr(Be,Nt){return Be>>>Nt}function mr(Be,Nt,ar){return Be&Nt^~Be&ar}function Fr(Be,Nt,ar){return Be&Nt^Be&ar^Nt&ar}function _i(Be){return Vt(Be,2)^Vt(Be,13)^Vt(Be,22)}function Si(Be){return Vt(Be,6)^Vt(Be,11)^Vt(Be,25)}function Ci(Be){return Vt(Be,7)^Vt(Be,18)^wr(Be,3)}function Ki(Be){return Vt(Be,17)^Vt(Be,19)^wr(Be,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 Pi(Be,Nt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr;for(Be[Nt>>5]|=128<<24-Nt%32,Be[(Nt+64>>9<<4)+15]=Nt,ua=0;ua>16)+(Nt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Mi(Be){return Li(Be).join("")}function Gn(Be){var Nt=Be&&Be.cache,ar=0,Qr=[],yi=[],ci=[];function vi(qi,Wr){var xi=Wr&&Wr.stable;if(!xi){for(var dn=0;dn0&&(qi.push(En,"="),qi.push.apply(qi,Li(arguments)),qi.push(";")),En}return e(Wr,{def:dn,toString:function(){return Mi([xi.length>0?"var "+xi.join(",")+";":"",Mi(qi)])}})}function Bn(){var qi=on(),Wr=on(),xi=qi.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",qi.def(Zi,ga),";")}return e(function(){qi.apply(qi,Li(arguments))},{def:qi.def,entry:qi,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),qi(Zi,ga,"=",Kn,";")},toString:function(){return xi()+dn()}})}function Ln(){var qi=Mi(arguments),Wr=Bn(),xi=Bn(),dn=Wr.toString,En=xi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return xi.apply(xi,Li(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Mi(["if(",qi,"){",dn(),"}",Zi])}})}var wn=on(),Ls={};function ua(qi,Wr){var xi=[];function dn(){var hs="a"+xi.length;return xi.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:Dqe.length}),Iqe(c,{update:p,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&_(),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=CUt(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=Iqe({},l,L)),kUt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=Rqe(M),C+=M.length,M),positions:(M,m)=>(M=Rqe(M,"float64"),m.count=Math.floor(M.length/2),m.bounds=MUt(M,2),m.offset=v,v+=m.count,M)},{color:(M,m)=>{let P=m.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let F=M;M=Array(P);for(let B=0;B{let A=m.bounds;return M||(M=A),m.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],m.translate=[-M[0],-M[1]],m.scaleFract=sK(m.scale),m.translateFract=sK(m.translate),M},viewport:M=>{let m;return Array.isArray(M)?m={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(m={x:M.x||M.left||0,y:M.y||M.top||0},M.right?m.width=M.right-m.x:m.width=M.w||M.width||0,M.bottom?m.height=M.bottom-m.y:m.height=M.h||M.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),k}),v||C){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:F,offset:B,color:U,errors:G}=m;F&&(k.set(U,B*4),M.set(G,B*4),x.set(A,B*2))});var E=LUt(x);i(E);var T=sK(x,E);a(T),o(k),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var Nqe=Te((Mxr,qqe)=>{var Oqe=/[\'\"]/;qqe.exports=function(t){return t?(Oqe.test(t.charAt(0))&&(t=t.substr(1)),Oqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var lK=Te((Exr,zUt)=>{zUt.exports=["inherit","initial","unset"]});var uK=Te((kxr,IUt)=>{IUt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var fK=Te((Cxr,RUt)=>{RUt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var cK=Te((Lxr,DUt)=>{DUt.exports=["normal","italic","oblique"]});var hK=Te((Pxr,FUt)=>{FUt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Hqe=Te((zxr,Gqe)=>{"use strict";function Uqe(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 _=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(_),i+_+i}r.forEach(function(h,d){for(var p,_=0;h!=p;)if(p=h,h=h.replace(l,c),_++>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 Vqe(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 dK(e,t){return Array.isArray(e)?Vqe(e,t):Uqe(e,t)}dK.parse=Uqe;dK.stringify=Vqe;Gqe.exports=dK});var Xqe=Te((Ixr,jqe)=>{"use strict";var Wqe=Hqe();jqe.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=Wqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{BUt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var pK=Te((Dxr,Yqe)=>{"use strict";var OUt=Zqe();Yqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||OUt.indexOf(t)!==-1}}});var Qqe=Te((Fxr,$qe)=>{"use strict";var qUt=Nqe(),NUt=lK(),UUt=uK(),VUt=fK(),GUt=cK(),HUt=hK(),vK=Xqe(),WUt=pK().isSize;$qe.exports=Jqe;var zk=Jqe.cache={};function Jqe(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(UUt.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=vK(e,/\s+/),n;n=r.shift();){if(NUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),zk[e]=t;if(GUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(HUt.indexOf(n)!==-1){t.stretch=n;continue}if(VUt.indexOf(n)!==-1){t.weight=n;continue}if(WUt(n)){var i=vK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Kqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Kqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=vK(r.join(" "),/\s*,\s*/).map(qUt),zk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Kqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var yK=Te((Bxr,eNe)=>{"use strict";var jUt=eg(),XUt=pK().isSize,ZUt=Rk(lK()),YUt=Rk(uK()),KUt=Rk(fK()),JUt=Rk(cK()),$Ut=Rk(hK()),QUt={normal:1,"small-caps":1},eVt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},mK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};eNe.exports=function(t){if(t=jUt(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,YUt),t.system;if(Ik(t.style,JUt),Ik(t.variant,QUt),Ik(t.weight,KUt),Ik(t.stretch,$Ut),t.size==null&&(t.size=mK.size),typeof t.size=="number"&&(t.size+="px"),!XUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=mK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[mK.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 Ik(e,t){if(e&&!t[e]&&!ZUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Rk(e){for(var t={},r=0;r{"use strict";tNe.exports={parse:Qqe(),stringify:yK()}});var iNe=Te((gK,_K)=>{(function(e,t){typeof gK=="object"&&typeof _K!="undefined"?_K.exports=t():e.createREGL=t()})(gK,function(){"use strict";var e=function(Be,Nt){for(var ar=Object.keys(Nt),Qr=0;Qr1&&Nt===ar&&(Nt==='"'||Nt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var yi=Be.split(".");if(yi.length===1)return['"'+o(Be)+'"'];for(var ci=[],vi=0;vi65535)<<4,Be>>>=Nt,ar=(Be>255)<<3,Be>>>=ar,Nt|=ar,ar=(Be>15)<<2,Be>>>=ar,Nt|=ar,ar=(Be>3)<<1,Be>>>=ar,Nt|=ar,Nt|Be>>1}function N(){var Be=M(8,function(){return[]});function Nt(ci){var vi=j(ci),on=Be[W(vi)>>2];return on.length>0?on.pop():new ArrayBuffer(vi)}function ar(ci){Be[W(ci.byteLength)>>2].push(ci)}function Qr(ci,vi){var on=null;switch(ci){case m:on=new Int8Array(Nt(vi),0,vi);break;case P:on=new Uint8Array(Nt(vi),0,vi);break;case A:on=new Int16Array(Nt(2*vi),0,vi);break;case F:on=new Uint16Array(Nt(2*vi),0,vi);break;case B:on=new Int32Array(Nt(4*vi),0,vi);break;case U:on=new Uint32Array(Nt(4*vi),0,vi);break;case G:on=new Float32Array(Nt(4*vi),0,vi);break;default:return null}return on.length!==vi?on.subarray(0,vi):on}function yi(ci){ar(ci.buffer)}return{alloc:Nt,free:ar,allocType:Qr,freeType:yi}}var H=N();H.zero=N();var re=3408,ae=3410,ge=3411,ze=3412,Le=3413,de=3414,te=3415,ke=33901,Ee=33902,Se=3379,Ge=3386,De=34921,xe=36347,Ne=36348,ce=35661,je=35660,Qe=34930,gt=36349,qt=34076,at=34024,Ke=7936,Ct=7937,wt=7938,Mt=35724,Bt=34047,Zt=36063,Et=34852,Ae=3553,ot=34067,At=34069,vt=33984,Je=6408,He=5126,nt=5121,tt=36160,It=36053,Yt=36064,cr=16384,_r=function(Be,Nt){var ar=1;Nt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Bt));var Qr=1,yi=1;Nt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),yi=Be.getParameter(Zt));var ci=!!Nt.oes_texture_float;if(ci){var vi=Be.createTexture();Be.bindTexture(Ae,vi),Be.texImage2D(Ae,0,Je,1,1,0,Je,He,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer(tt,on),Be.framebufferTexture2D(tt,Yt,Ae,vi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus(tt)!==It)ci=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(cr);var Bn=H.allocType(He,4);Be.readPixels(0,0,1,1,Je,He,Bn),Be.getError()?ci=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(vi),ci=Bn[0]===1),H.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=H.allocType(nt,36);Be.activeTexture(vt),Be.bindTexture(ot,Ls),Be.texImage2D(At,0,Je,3,3,0,Je,nt,ua),H.freeType(ua),Be.bindTexture(ot,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(ge),Be.getParameter(ze),Be.getParameter(Le)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(Nt).filter(function(Hn){return!!Nt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:yi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ge),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(qt),maxRenderbufferSize:Be.getParameter(at),maxTextureUnits:Be.getParameter(Qe),maxTextureSize:Be.getParameter(Se),maxAttributes:Be.getParameter(De),maxVertexUniforms:Be.getParameter(xe),maxVertexTextureUnits:Be.getParameter(je),maxVaryingVectors:Be.getParameter(Ne),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(Mt),renderer:Be.getParameter(Ct),vendor:Be.getParameter(Ke),version:Be.getParameter(wt),readFloat:ci,npotTextureCube:wn}},yr=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||yr(Be.data))}var Re=function(Be){return Object.keys(Be).map(function(Nt){return Be[Nt]})},be={shape:fe,flatten:ye};function Oe(Be,Nt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(xi[0])){Kn=si(xi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var On=H.allocType(Zi.dtype,Ji.length);xr(On,Ji),Kn(On,ro),H.freeType(On)}else if(Array.isArray(Ji[0])||yr(Ji[0])){na=si(Ji);var In=Qi(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Ut(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:Wt(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,ar.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function qi(){Re(ci).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(Nt.getTotalBufferSize=function(){var Wr=0;return Object.keys(ci).forEach(function(xi){Wr+=ci[xi].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Re(ci).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof vi?Wr._buffer:null},restore:qi,_initBuffer:Ls}}var Or=0,Hr=0,jr=1,gi=1,ki=4,Vi=4,ti={points:Or,point:Hr,lines:jr,line:gi,triangles:ki,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tn=0,Yr=1,oi=4,Fi=5120,an=5121,nn=5122,Ri=5123,Ii=5124,xn=5125,bi=34963,Xr=35040,ct=35044;function tr(Be,Nt,ar,Qr){var yi={},ci=0,vi={uint8:an,uint16:Ri};Nt.oes_element_index_uint&&(vi.uint32=xn);function on(qi){this.id=ci++,yi[this.id]=this,this.buffer=qi,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(qi){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,bi,!0,!1)._buffer)),Ls(Wr,qi,Xr,-1,-1,0,0),Wr}function wn(qi){Bn.push(qi)}function Ls(qi,Wr,xi,dn,En,Zi,ga){qi.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!yr(Wr)||Ut(Wr)&&!yr(Wr.data))&&(hs=Nt.oes_element_index_uint?xn:Ri),ar._initBuffer(qi.buffer,Wr,xi,hs,3)}else Be.bufferData(bi,Zi,xi),qi.buffer.dtype=Kn||an,qi.buffer.usage=xi,qi.buffer.dimension=3,qi.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(qi.buffer.dtype){case an:case Fi:Kn=an;break;case Ri:case nn:Kn=Ri;break;case xn:case Ii:Kn=xn;break;default:}qi.buffer.dtype=Kn}qi.type=Kn;var Ji=En;Ji<0&&(Ji=qi.buffer.byteLength,Kn===Ri?Ji>>=1:Kn===xn&&(Ji>>=2)),qi.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=qi.buffer.dimension;ro===1&&(Ui=tn),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}qi.primType=Ui}function ua(qi){Qr.elementsCount--,delete yi[qi.id],qi.buffer.destroy(),qi.buffer=null}function Hn(qi,Wr){var xi=ar.create(null,bi,!0),dn=new on(xi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)xi(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Zi=="number")xi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=an;else{var ga=null,Kn=ct,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||yr(Zi)||Ut(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=$i[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=vi[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Ri||ro===nn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(qi),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return xi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(qi){return typeof qi=="function"&&qi._elements instanceof on?qi._elements:null},clear:function(){Re(yi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var Nt=H.allocType(Zr,Be.length),ar=0;ar>>31<<15,ci=(Qr<<1>>>24)-127,vi=Qr>>13&1023;if(ci<-24)Nt[ar]=yi;else if(ci<-14){var on=-14-ci;Nt[ar]=yi+(vi+1024>>on)}else ci>15?Nt[ar]=yi+31744:Nt[ar]=yi+(ci+15<<10)+vi}return Nt}function en(Be){return Array.isArray(Be)||yr(Be)}var ii=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,Ba=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,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[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(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var rn=[];rn[so]=2,rn[Kr]=2,rn[Ia]=2,rn[uo]=4,rn[mn]=.5,rn[ra]=.5,rn[wa]=1,rn[ws]=1,rn[Co]=.5,rn[Po]=1,rn[Wi]=1,rn[gn]=.5,rn[Ps]=.25,rn[Ha]=.5,rn[Sn]=.25,rn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var Nt=Be.length;return!(Nt===0||!en(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var Nt=yo(Be);return es.indexOf(Nt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,Nt){var ar=Nt.length;switch(Be.type){case Ba:case Ko:case Qo:case Hi:var Qr=H.allocType(Be.type,ar);Qr.set(Nt),Be.data=Qr;break;case fo:Be.data=Ai(Nt);break;default:}}function Wa(Be,Nt){return H.allocType(Be.type===fo?Hi:Be.type,Nt)}function To(Be,Nt){Be.type===fo?(Be.data=Ai(Nt),H.freeType(Nt)):Be.data=Nt}function ts(Be,Nt,ar,Qr,yi,ci){for(var vi=Be.width,on=Be.height,Bn=Be.channels,Ln=vi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=vi*Bn*Bn,Bn/=2;return on}else return vi*ar*Qr}function qa(Be,Nt,ar,Qr,yi,ci,vi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={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:Ba,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},qi={};Nt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Nt.oes_texture_float&&(ua.float32=ua.float=Hi),Nt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Nt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Nt.webgl_compressed_texture_s3tc&&e(qi,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Nt.webgl_compressed_texture_atc&&e(qi,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Nt.webgl_compressed_texture_pvrtc&&e(qi,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Nt.webgl_compressed_texture_etc1&&(qi["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ii));Object.keys(qi).forEach(function(ne){var Ce=qi[ne];Wr.indexOf(Ce)>=0&&(Hn[ne]=Ce)});var xi=Object.keys(Hn);ar.textureFormats=xi;var dn=[];Object.keys(Hn).forEach(function(ne){var Ce=Hn[ne];dn[Ce]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Ce=ua[ne];En[Ce]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var Ce=Ln[ne];Zi[Ce]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Ce=wn[ne];ga[Ce]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Ce=Bn[ne];Kn[Ce]=ne});var hs=xi.reduce(function(ne,Ce){var Ye=Hn[Ce];return Ye===oa||Ye===Ga||Ye===oa||Ye===ka||Ye===ys||Ye===uo||Nt.ext_srgb&&(Ye===ls||Ye===$a)?ne[Ye]=Ye:Ye===Kr||Ce.indexOf("rgba")>=0?ne[Ye]=Un:ne[Ye]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Ba,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,Ce){ne.internalformat=Ce.internalformat,ne.format=Ce.format,ne.type=Ce.type,ne.compressed=Ce.compressed,ne.premultiplyAlpha=Ce.premultiplyAlpha,ne.flipY=Ce.flipY,ne.unpackAlignment=Ce.unpackAlignment,ne.colorSpace=Ce.colorSpace,ne.width=Ce.width,ne.height=Ce.height,ne.channels=Ce.channels}function ro(ne,Ce){if(!(typeof Ce!="object"||!Ce)){if("premultiplyAlpha"in Ce&&(ne.premultiplyAlpha=Ce.premultiplyAlpha),"flipY"in Ce&&(ne.flipY=Ce.flipY),"alignment"in Ce&&(ne.unpackAlignment=Ce.alignment),"colorSpace"in Ce&&(ne.colorSpace=Ls[Ce.colorSpace]),"type"in Ce){var Ye=Ce.type;ne.type=ua[Ye]}var kt=ne.width,dr=ne.height,Mr=ne.channels,lr=!1;"shape"in Ce?(kt=Ce.shape[0],dr=Ce.shape[1],Ce.shape.length===3&&(Mr=Ce.shape[2],lr=!0)):("radius"in Ce&&(kt=dr=Ce.radius),"width"in Ce&&(kt=Ce.width),"height"in Ce&&(dr=Ce.height),"channels"in Ce&&(Mr=Ce.channels,lr=!0)),ne.width=kt|0,ne.height=dr|0,ne.channels=Mr|0;var $e=!1;if("format"in Ce){var ht=Ce.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Ce||(ne.type=ua[ht])),ht in qi&&(ne.compressed=!0),$e=!0}!lr&&$e?ne.channels=$n[ne.format]:lr&&!$e&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Ce){var Ye=null;if(Es(Ce)?Ye=Ce:Ce&&(ro(ne,Ce),"x"in Ce&&(ne.xOffset=Ce.x|0),"y"in Ce&&(ne.yOffset=Ce.y|0),Es(Ce.data)&&(Ye=Ce.data)),Ce.copy){var kt=yi.viewportWidth,dr=yi.viewportHeight;ne.width=ne.width||kt-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ye)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(yr(Ye))ne.channels=ne.channels||4,ne.data=Ye,!("type"in Ce)&&ne.type===Ba&&(ne.type=Ts(Ye));else if(Pa(Ye))ne.channels=ne.channels||4,Ho(ne,Ye),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ye)){var Mr=Ye.data;!Array.isArray(Mr)&&ne.type===Ba&&(ne.type=Ts(Mr));var lr=Ye.shape,$e=Ye.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=$e[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=$e[0],Qt=$e[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Mr,sr,Qt,ur,Ye.offset)}else if(Jo(Ye)||Ao(Ye)||Dn(Ye))Jo(Ye)||Ao(Ye)?ne.element=Ye:ne.element=Ye.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ye))ne.element=Ye,ne.width=Ye.width,ne.height=Ye.height,ne.channels=4;else if(Ws(Ye))ne.element=Ye,ne.width=Ye.naturalWidth,ne.height=Ye.naturalHeight,ne.channels=4;else if(Ca(Ye))ne.element=Ye,ne.width=Ye.videoWidth,ne.height=Ye.videoHeight,ne.channels=4;else if(to(Ye)){var er=ne.width||Ye[0].length,Ot=ne.height||Ye.length,Jt=ne.channels;en(Ye[0][0])?Jt=Jt||Ye[0][0].length:Jt=Jt||1;for(var Lt=be.shape(Ye),Tr=1,Ur=0;Ur>=dr,Ye.height>>=dr,In(Ye,kt[dr]),ne.mipmask|=1<=0&&!("faces"in Ce)&&(ne.genMipmaps=!0)}if("mag"in Ce){var kt=Ce.mag;ne.magFilter=Ln[kt]}var dr=ne.wrapS,Mr=ne.wrapT;if("wrap"in Ce){var lr=Ce.wrap;typeof lr=="string"?dr=Mr=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Mr=Bn[lr[1]])}else{if("wrapS"in Ce){var $e=Ce.wrapS;dr=Bn[$e]}if("wrapT"in Ce){var ht=Ce.wrapT;Mr=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Mr,"anisotropic"in Ce){var bt=Ce.anisotropic;ne.anisotropic=Ce.anisotropic}if("mipmap"in Ce){var Kt=!1;switch(typeof Ce.mipmap){case"string":ne.mipmapHint=on[Ce.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Ce.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Ce)&&(ne.minFilter=mo)}}function xf(ne,Ce){Be.texParameteri(Ce,As,ne.minFilter),Be.texParameteri(Ce,vo,ne.magFilter),Be.texParameteri(Ce,Sa,ne.wrapS),Be.texParameteri(Ce,Qa,ne.wrapT),Nt.ext_texture_filter_anisotropic&&Be.texParameteri(Ce,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Ce))}var Cf=0,Gu={},cf=ar.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=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,vi.profile&&(this.stats={size:0})}function bf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Xi,null)}function Y(ne){var Ce=ne.texture,Ye=ne.unit,kt=ne.target;Ye>=0&&(Be.activeTexture(Ra+Ye),Be.bindTexture(kt,null),mf[Ye]=null),Be.deleteTexture(Ce),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],ci.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Ce=ne.unit;if(Ce<0){for(var Ye=0;Ye0)continue;kt.unit=-1}mf[Ye]=ne,Ce=Ye;break}Ce>=cf,vi.profile&&ci.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ye.height>>Qt)-sr,bf(Ye),_s(ur,Xi,Kt,sr,Qt),cu(),Mo(ur),kt}function Mr(lr,$e){var ht=lr|0,bt=$e|0||ht;if(ht===Ye.width&&bt===Ye.height)return kt;kt.width=Ye.width=ht,kt.height=Ye.height=bt,bf(Ye);for(var Kt=0;Ye.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Xi,Kt,Ye.format,sr,Qt,0,Ye.format,Ye.type,null)}return cu(),vi.profile&&(Ye.stats.size=Wo(Ye.internalformat,Ye.type,ht,bt,!1,!1)),kt}return kt(ne,Ce),kt.subimage=dr,kt.resize=Mr,kt._reglType="texture2d",kt._texture=Ye,vi.profile&&(kt.stats=Ye.stats),kt.destroy=function(){Ye.decRef()},kt}function J(ne,Ce,Ye,kt,dr,Mr){var lr=new Fl(aa);Gu[lr.id]=lr,ci.cubeCount++;var $e=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)$e[Lt]=Ql();if(typeof sr=="number"||!sr){var Ur=sr|0||1;for(Lt=0;Lt<6;++Lt)pl($e[Lt],Ur,Ur)}else if(typeof sr=="object")if(Qt)Dl($e[0],sr),Dl($e[1],Qt),Dl($e[2],ur),Dl($e[3],er),Dl($e[4],Ot),Dl($e[5],Jt);else if(gf(Tr,sr),ro(lr,sr),"faces"in sr){var hi=sr.faces;for(Lt=0;Lt<6;++Lt)Ui($e[Lt],lr),Dl($e[Lt],hi[Lt])}else for(Lt=0;Lt<6;++Lt)Dl($e[Lt],sr);for(Ui(lr,$e[0]),Tr.genMipmaps?lr.mipmask=($e[0].width<<1)-1:lr.mipmask=$e[0].mipmask,lr.internalformat=$e[0].internalformat,ht.width=$e[0].width,ht.height=$e[0].height,bf(lr),Lt=0;Lt<6;++Lt)Bu($e[Lt],Mn+Lt);for(xf(Tr,aa),cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Zi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)Ef($e[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Ur=Qn();return Ui(Ur,lr),Ur.width=0,Ur.height=0,In(Ur,Qt),Ur.width=Ur.width||(lr.width>>Tr)-Jt,Ur.height=Ur.height||(lr.height>>Tr)-Lt,bf(lr),_s(Ur,Mn+sr,Jt,Lt,Tr),cu(),Mo(Ur),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,bf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Ce,Ye,kt,dr,Mr),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,vi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,kt,Ye.internalformat,Ye.width>>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);xf(Ye.texInfo,Ye.target)})}function _e(){for(var ne=0;ne=0?Ef=!0:Bn.indexOf(Cu)>=0&&(Ef=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Bu=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Bu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Bu=vf=Fl.depthStencil:(cf=Fl.depthStencil,Bu=!1,vf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(qi);else if(Ql)cu=[qi(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]=yi.create(Qn,Ss,!1,!0)),Mo.buffer=yi.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 yi.getBuffer(Qn)?(Mo.buffer=yi.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):yi.getBuffer(Qn.buffer)?(Mo.buffer=yi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=pi[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=xi.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(xi){xi.stats.attributesCount>Wr&&(Wr=xi.stats.attributesCount)}),Wr});function qi(){yi={},ci={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),yi=Array(16),ci=0;ci<16;ci++)Qr[ci]=ar[ci]^909522486,yi[ci]=ar[ci]^1549556828;var vi=Pi(Qr.concat(Bs(Nt)),512+Nt.length*8);return Tt(Pi(yi.concat(vi),768))}function Ms(Be){for(var Nt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,yi=0;yi>>4&15)+Nt.charAt(Qr&15);return ar}function jo(Be){for(var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,yi=0;yiBe.length*8?ar+=tl:ar+=Nt.charAt(ci>>>6*(3-vi)&63);return ar}function Rs(Be,Nt){var ar=Nt.length,Qr=Array(),yi,ci,vi,on,Bn=Array(Math.ceil(Be.length/2));for(yi=0;yi0;){for(on=Array(),vi=0,yi=0;yi0||ci>0)&&(on[on.length]=ci);Qr[Qr.length]=vi,Bn=on}var Ln="";for(yi=Qr.length-1;yi>=0;yi--)Ln+=Nt.charAt(Qr[yi]);var wn=Math.ceil(Be.length*8/(Math.log(Nt.length)/Math.log(2)));for(yi=Ln.length;yi>>6&31,128|Qr&63):Qr<=65535?Nt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Nt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Nt}function Bs(Be){for(var Nt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return Nt}function Tt(Be){for(var Nt="",ar=0;ar>5]>>>24-ar%32&255);return Nt}function Vt(Be,Nt){return Be>>>Nt|Be<<32-Nt}function wr(Be,Nt){return Be>>>Nt}function mr(Be,Nt,ar){return Be&Nt^~Be&ar}function Fr(Be,Nt,ar){return Be&Nt^Be&ar^Nt&ar}function _i(Be){return Vt(Be,2)^Vt(Be,13)^Vt(Be,22)}function Si(Be){return Vt(Be,6)^Vt(Be,11)^Vt(Be,25)}function Ci(Be){return Vt(Be,7)^Vt(Be,18)^wr(Be,3)}function Ki(Be){return Vt(Be,17)^Vt(Be,19)^wr(Be,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 Pi(Be,Nt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr;for(Be[Nt>>5]|=128<<24-Nt%32,Be[(Nt+64>>9<<4)+15]=Nt,ua=0;ua>16)+(Nt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Mi(Be){return Li(Be).join("")}function Gn(Be){var Nt=Be&&Be.cache,ar=0,Qr=[],yi=[],ci=[];function vi(qi,Wr){var xi=Wr&&Wr.stable;if(!xi){for(var dn=0;dn0&&(qi.push(En,"="),qi.push.apply(qi,Li(arguments)),qi.push(";")),En}return e(Wr,{def:dn,toString:function(){return Mi([xi.length>0?"var "+xi.join(",")+";":"",Mi(qi)])}})}function Bn(){var qi=on(),Wr=on(),xi=qi.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",qi.def(Zi,ga),";")}return e(function(){qi.apply(qi,Li(arguments))},{def:qi.def,entry:qi,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),qi(Zi,ga,"=",Kn,";")},toString:function(){return xi()+dn()}})}function Ln(){var qi=Mi(arguments),Wr=Bn(),xi=Bn(),dn=Wr.toString,En=xi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return xi.apply(xi,Li(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Mi(["if(",qi,"){",dn(),"}",Zi])}})}var wn=on(),Ls={};function ua(qi,Wr){var xi=[];function dn(){var hs="a"+xi.length;return xi.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Pe,ccw:Ze};function pn(Be){return Array.isArray(Be)||yr(Be)||Ut(Be)}function sn(Be){return Be.sort(function(Nt,ar){return Nt===ee?-1:ar===ee?1:Nt=1,Qr>=2,Nt)}else if(ar===Ks){var yi=Be.data;return new wi(yi.thisDep,yi.contextDep,yi.propDep,Nt)}else{if(ar===dl)return new wi(!1,!1,!1,Nt);if(ar===xl){for(var ci=!1,vi=!1,on=!1,Bn=0;Bn=1&&(vi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(ci=ci||Ln.data.thisDep,vi=vi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new wi(ci,vi,on,Nt)}else return new wi(ar===Cs,ar===is,ar===zn,Nt)}}var js=new wi(!1,!1,!1,function(){});function El(Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr){var xi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=et,dn.max=st);var En=ar.angle_instanced_arrays,Zi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na($e){return $e.replace(".","_")}function On($e,ht,bt){var Kt=na($e);Ji.push($e),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In($e,ht,bt){var Kt=na($e);Ji.push($e),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va($e){return!!isNaN($e)}On(Bl,hn),On(bl,Ei),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",fi),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,li),In(nl,"cullFace",se),In(zl,zl,Ze),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:Nt,next:hs,current:Kn,draw:Ls,elements:ci,buffer:yi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:mi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:pi,orientationType:ji};Zi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function($e){return $e===0?[0]:M($e,function(ht){return Bi+ht})}));var Qn=0;function Mo(){var $e=Gn({cache:qi}),ht=$e.link,bt=$e.global;$e.id=Qn++,$e.batchId="0";var Kt=ht(_s),sr=$e.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=$e.next={},ur=$e.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=$e.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),$e.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,$e.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append($e,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Ur){return $e.invoke(Jt,Ur)})}},$e.attribCache={};var Ot={};return $e.scopeAttrib=function(Jt){var Lt=Nt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new xi);var Ur=Ot[Lt]=ht(Tr);return Ur},$e}function al($e){var ht=$e.static,bt=$e.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl($e,ht){var bt=$e.static,Kt=$e.dynamic;if(Ue in bt){var sr=bt[Ue];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ve,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ve,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ue in Kt){var Qt=Kt[Ue];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Ur=Jt.context;return er.set(Ur,"."+Ve,Tr+"?"+Tr+".width:"+Ur+"."+nr),er.set(Ur,"."+lt,Tr+"?"+Tr+".height:"+Ur+"."+fr),Tr})}else return null}function Dl($e,ht,bt){var Kt=$e.static,sr=$e.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Ur=Jt.y|0,hi,Cn;return"width"in Jt?hi=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new wi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=hi;"width"in Jt||(Pn=ca.def(Tn,".",Ve,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Ur)),[Tr,Ur,Pn,Nn]})}else if(Ot in sr){var Yi=sr[Ot],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,".",Ve,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new wi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ve),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new wi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+it,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Bu($e,ht){var bt=$e.static,Kt=typeof bt[mt]=="string"&&typeof bt[rt]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",hi,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Ur.glTypes,"[",Lt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Yi[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}sr[Qt]=Xo(ur,er)}),sr}function xf($e){var ht=$e.static,bt=$e.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Cf($e,ht,bt,Kt,sr){var Qt=$e.static,ur=$e.dynamic,er=Bu($e,ht),Ot=pl($e,sr),Jt=Dl($e,Ot,sr),Lt=Ql($e,sr),Tr=Ef($e,sr),Ur=vf($e,sr,er);function hi(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}hi(ee),hi(na(Q));var Cn=Object.keys(Tr).length>0,Yi={framebuffer:Ot,draw:Lt,shader:Ur,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al($e,sr),Yi.uniforms=Cu(bt,sr),Yi.drawVAO=Yi.scopeVAO=Lt.vao,!Yi.drawVAO&&Ur.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Ur.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Yi.drawVAO=new wi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return er?Yi.useVAO=!0:Yi.attributes=gf(ht,sr),Yi.context=xf(Kt,sr),Yi}function Gu($e,ht,bt){var Kt=$e.shared,sr=Kt.context,Qt=$e.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append($e,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function cf($e,ht,bt,Kt){var sr=$e.shared,Qt=sr.gl,ur=sr.framebuffer,er;Zi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=$e.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append($e,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Zi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Zi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function mf($e,ht,bt){var Kt=$e.shared,sr=Kt.gl,Qt=$e.current,ur=$e.next,er=Kt.current,Ot=Kt.next,Jt=$e.cond(er,".dirty");Ji.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Ur,hi;if(Tr in ur){Ur=ur[Tr],hi=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Ur,"[",yn,"]")});Jt($e.cond(Cn.map(function(yn,Xa){return yn+"!=="+hi+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return hi+"["+Xa+"]="+yn}).join(";"),";"))}else{Ur=Jt.def(Ot,".",Tr);var Yi=$e.cond(Ur,"!==",er,".",Tr);Jt(Yi),Tr in Ui?Yi($e.cond(Ur).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Ur,";"):Yi(sr,".",ro[Tr],"(",Ur,");",er,".",Tr,"=",Ur,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl($e,ht,bt,Kt){var sr=$e.shared,Qt=$e.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append($e,ht);if(Ui[Jt]){var Ur=Ui[Jt];xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht($e.cond(Ot).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Ot,";")):(ht($e.cond(Tr).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(en(Tr)){var hi=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Yi){return hi+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function bf($e,ht){En&&($e.instancing=ht.def($e.shared.extensions,".angle_instanced_arrays"))}function cu($e,ht,bt,Kt,sr){var Qt=$e.shared,ur=$e.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Ur;function hi(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Ur=ht.def(),Tn(Ur,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Ur,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Yi(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(hi(ht),Cn(ht.exit),Yi("true")):Yi("false");return}yn=Jt.append($e,ht),Yi(yn)}else yn=ht.def(er,".profile");var Xa=$e.block();hi(Xa),ht("if(",yn,"){",Xa,"}");var ca=$e.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y($e,ht,bt,Kt,sr){var Qt=$e.shared;function ur(Ot){switch(Ot){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 er(Ot,Jt,Lt){var Tr=Qt.gl,Ur=ht.def(Ot,".location"),hi=ht.def(Qt.attributes,"[",Ur,"]"),Cn=Lt.state,Yi=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",hi,".buffer){",Tr,".enableVertexAttribArray(",Ur,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",hi,".type!==",Pn,"||",hi,".size!==",Nn,"||",Xa.map(function(Zo){return hi+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Ir,",",Yi,".buffer);",Tr,".vertexAttribPointer(",[Ur,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",hi,".type=",Pn,";",hi,".size=",Nn,";",Xa.map(function(Zo){return hi+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",hi,".divisor!==",xa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[Ur,xa],");",hi,".divisor=",xa,";}")}}function Tn(){ht("if(",hi,".buffer){",Tr,".disableVertexAttribArray(",Ur,");",hi,".buffer=null;","}if(",ta.map(function(Pn,Nn){return hi+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Ur,",",yn,");",ta.map(function(Pn,Nn){return hi+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append($e,ht)}else{if(!sr(js))return;var Ur=$e.scopeAttrib(Jt);Tr={},Object.keys(new xi).forEach(function(hi){Tr[hi]=ht.def(Ur,".",hi)})}er($e.link(Ot),ur(Ot.info.type),Tr)})}function R($e,ht,bt,Kt,sr,Qt){for(var ur=$e.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Ur,hi,Cn,Yi],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Ur,Cn,Xa,hi+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Ur,hi,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(bt("if(",Yi,">0){"),Tn(),bt("}else if(",Yi,"<0){"),Pn(),bt("}")):Tn():Pn()}function O($e,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),$e(Qt,ur,bt,Kt),Qt.compile().body}function K($e,ht,bt,Kt){bf($e,ht),bt.useVAO?bt.drawVAO?ht($e.shared.vao,".setVAO(",bt.drawVAO.append($e,ht),");"):ht($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(ht($e.shared.vao,".setVAO(null);"),Y($e,ht,bt,Kt.attributes,function(){return!0})),R($e,ht,bt,Kt.uniforms,function(){return!0},!1),J($e,ht,ht,bt)}function _e($e,ht){var bt=$e.proc("draw",1);bf($e,bt),Gu($e,bt,ht.context),cf($e,bt,ht.framebuffer),mf($e,bt,ht),Fl($e,bt,ht.state),cu($e,bt,ht,!1,!0);var Kt=ht.shader.progVar.append($e,bt);if(bt($e.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var sr=$e.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt($e.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",$e.link(function(er){return O(K,$e,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function ne($e,ht,bt,Kt){$e.batchId="a1",bf($e,ht);function sr(){return!0}Y($e,ht,bt,Kt.attributes,sr),R($e,ht,bt,Kt.uniforms,sr,!1),J($e,ht,ht,bt)}function Ce($e,ht,bt,Kt){bf($e,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();$e.shared.props=Ot,$e.batchId=Qt;var Jt=$e.scope(),Lt=$e.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Ur(Xa){return!Tr(Xa)}if(bt.needsContext&&Gu($e,Lt,bt.context),bt.needsFramebuffer&&cf($e,Lt,bt.framebuffer),Fl($e,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu($e,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Lt),");"):Jt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Jt),");"):Jt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Jt($e.shared.vao,".setVAO(null);"),Y($e,Jt,bt,Kt.attributes,Ur),Y($e,Lt,bt,Kt.attributes,Tr)),R($e,Jt,bt,Kt.uniforms,Ur,!1),R($e,Lt,bt,Kt.uniforms,Tr,!0),J($e,Jt,Lt,bt);else{var hi=$e.global.def("{}"),Cn=bt.shader.progVar.append($e,Lt),Yi=Lt.def(Cn,".id"),yn=Lt.def(hi,"[",Yi,"]");Lt($e.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",hi,"[",Yi,"]=",$e.link(function(Xa){return O(ne,$e,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ye($e,ht){var bt=$e.proc("batch",2);$e.batchId="0",bf($e,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(hi){Kt=Kt||ht.context[hi].propDep}),Kt||(Gu($e,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||cf($e,bt,Qt)):cf($e,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(hi){return hi.contextDep&&Kt||hi.propDep}mf($e,bt,ht),Fl($e,bt,ht.state,function(hi){return!er(hi)}),(!ht.profile||!er(ht.profile))&&cu($e,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Ce($e,bt,ht,null);else{var Jt=Ot.append($e,bt);if(bt($e.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Ce($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var Lt=$e.global.def("{}"),Tr=bt.def(Jt,".id"),Ur=bt.def(Lt,"[",Tr,"]");bt($e.cond(Ur).then(Ur,".call(this,a0,a1);").else(Ur,"=",Lt,"[",Tr,"]=",$e.link(function(hi){return O(Ce,$e,ht,hi,2)}),"(",Jt,");",Ur,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function kt($e,ht){var bt=$e.proc("scope",3);$e.batchId="a2";var Kt=$e.shared,sr=Kt.current;if(Gu($e,bt,ht.context),ht.framebuffer&&ht.framebuffer.append($e,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append($e,bt);en(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set($e.next[er],"["+Tr+"]",Lt):bt.set($e.next[er],"["+Tr+"]",$e.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,$e.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu($e,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,$e.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append($e,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:$e.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+$e.link(Nt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append($e,bt),Jt=$e.scopeAttrib(er);Object.keys(new xi).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append($e,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",$e.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,$e.link(Jt,{stable:!0}))}}ur(rt),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function dr($e){if(!(typeof $e!="object"||en($e))){for(var ht=Object.keys($e),bt=0;bt=0;--O){var K=_s[O];K&&K(qi,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Bu(){al&&(d.cancel(pl),al=null)}function vf(O){O.preventDefault(),yi=!0,Bu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),yi=!1,ci.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 Ef(){_s.length=0,Bu(),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(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return $e.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return $e.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=tf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Cf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:O.framebuffer.faces[K]},O),xf);else gf(O,xf);else xf(null,O)}function Gu(O){_s.push(O);function K(){var _e=pf(_s,O);function ne(){var Ce=pf(_s,ne);_s[Ce]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Bu()}_s[_e]=ne}return Dl(),{cancel:K}}function cf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,qi.viewportWidth=qi.framebufferWidth=qi.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,qi.viewportHeight=qi.framebufferHeight=qi.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function mf(){qi.tick+=1,qi.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(O,K){var _e;switch(O){case"frame":return Gu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Cf,prop:h.define.bind(null,lf),context:h.define.bind(null,hf),this:h.define.bind(null,Mf),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Zi.create(O,!1)},texture:Ji.create2D,cube:Ji.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Gu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:Ef,_gl:ar,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:on,getCachedCode:Y,preloadCachedCode:R});return Nt.onDone(null,J),J}return fc})});var lNe=Te((qxr,sNe)=>{"use strict";var tVt=eg();sNe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},aNe(t)?t={container:t}:rVt(t)?t={container:t}:iVt(t)?t={gl:t}:t=tVt(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}aNe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=oNe(),t.container.appendChild(t.canvas),nNe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=oNe(),t.container.appendChild(t.canvas),nNe(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 nNe(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 aNe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function rVt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function iVt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function oNe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var fNe=Te((Nxr,uNe)=>{"use strict";var nVt=yK(),aVt=[32,126];uNe.exports=oVt;function oVt(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||aVt;if(n&&typeof n!="string"&&(n=nVt(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 bK=Te(Zh=>{"use strict";"use restrict";var xK=32;Zh.INT_BITS=xK;Zh.INT_MAX=2147483647;Zh.INT_MIN=-1<0)-(e<0)};Zh.abs=function(e){var t=e>>xK-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 cNe(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=cNe;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>>>cNe(e)+1}});var pNe=Te((Vxr,dNe)=>{"use strict";function hNe(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 sVt(e|0,t);break;case"object":if(typeof e.length=="number")return hNe(e,t,0);break}return[]}dNe.exports=lVt});var CNe=Te(rc=>{"use strict";var xx=bK(),Cp=pNe(),vNe=_2().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 uVt=typeof Uint8ClampedArray!="undefined",fVt=typeof BigUint64Array!="undefined",cVt=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 A8=ld.DATA,T8=ld.BUFFER;rc.free=function(t){if(vNe.isBuffer(t))T8[xx.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=xx.log2(r)|0;A8[n].push(t)}};function mNe(e){if(e){var t=e.length||e.byteLength,r=xx.log2(t);A8[r].push(e)}}function hVt(e){mNe(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=hVt;rc.freeArrayBuffer=mNe;rc.freeBuffer=function(t){T8[xx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qv(t);switch(r){case"uint8":return wK(t);case"uint16":return yNe(t);case"uint32":return gNe(t);case"int8":return _Ne(t);case"int16":return xNe(t);case"int32":return bNe(t);case"float":case"float32":return wNe(t);case"double":case"float64":return ANe(t);case"uint8_clamped":return TNe(t);case"bigint64":return MNe(t);case"biguint64":return SNe(t);case"buffer":return kNe(t);case"data":case"dataview":return ENe(t);default:return null}return null};function qv(t){var t=xx.nextPow2(t),r=xx.log2(t),n=A8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=qv;function wK(e){return new Uint8Array(qv(e),0,e)}rc.mallocUint8=wK;function yNe(e){return new Uint16Array(qv(2*e),0,e)}rc.mallocUint16=yNe;function gNe(e){return new Uint32Array(qv(4*e),0,e)}rc.mallocUint32=gNe;function _Ne(e){return new Int8Array(qv(e),0,e)}rc.mallocInt8=_Ne;function xNe(e){return new Int16Array(qv(2*e),0,e)}rc.mallocInt16=xNe;function bNe(e){return new Int32Array(qv(4*e),0,e)}rc.mallocInt32=bNe;function wNe(e){return new Float32Array(qv(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=wNe;function ANe(e){return new Float64Array(qv(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=ANe;function TNe(e){return uVt?new Uint8ClampedArray(qv(e),0,e):wK(e)}rc.mallocUint8Clamped=TNe;function SNe(e){return fVt?new BigUint64Array(qv(8*e),0,e):null}rc.mallocBigUint64=SNe;function MNe(e){return cVt?new BigInt64Array(qv(8*e),0,e):null}rc.mallocBigInt64=MNe;function ENe(e){return new DataView(qv(e),0,e)}rc.mallocDataView=ENe;function kNe(e){e=xx.nextPow2(e);var t=xx.log2(e),r=T8[t];return r.length>0?r.pop():new vNe(e)}rc.mallocBuffer=kNe;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,A8[t].length=0,T8[t].length=0}});var PNe=Te((Hxr,LNe)=>{"use strict";var dVt=Object.prototype.toString;LNe.exports=function(e){var t;return dVt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var AK=Te((Wxr,zNe)=>{zNe.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 DNe=Te((jxr,RNe)=>{"use strict";var pVt=AK();RNe.exports=INe;var Dk=96;function TK(e,t){var r=pVt(getComputedStyle(e).getPropertyValue(t));return r[0]*INe(r[1],e)}function vVt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=TK(r,"font-size")/128;return t.removeChild(r),n}function INe(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 TK(t,"font-size");case"rem":return TK(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 Dk;case"cm":return Dk/2.54;case"mm":return Dk/25.4;case"pt":return Dk/72;case"pc":return Dk/6}return 1}});var ONe=Te((Xxr,BNe)=>{"use strict";BNe.exports=E8;var mVt=E8.canvas=document.createElement("canvas"),S8=mVt.getContext("2d"),FNe=M8([32,126]);E8.createPairs=M8;E8.ascii=FNe;function E8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=M8(t):Array.isArray(t)?n=t:(t.o?n=M8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=FNe),S8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function M8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";UNe.exports=bx;bx.canvas=document.createElement("canvas");bx.cache={};function bx(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(bx.cache[r]&&n<=bx.cache[r].em)return qNe(bx.cache[r],s);var u=t.canvas||bx.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=rg(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var _=rg(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-_+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=rg(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=rg(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=rg(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 T=rg(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=rg(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=rg(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=rg(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=rg(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=NNe(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=NNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var x in d)d[x]/=n;return d.em=n,bx.cache[r]=d,qNe(d,s)}function qNe(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 rg(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 jNe=Te((Yxr,WNe)=>{"use strict";var _S=rNe(),yVt=eg(),gVt=iNe(),_Vt=lNe(),xVt=iK(),SK=ox(),bVt=fNe(),wx=CNe(),wVt=sS(),AVt=PNe(),TVt=AK(),SVt=DNe(),MVt=ONe(),EVt=jh(),kVt=VNe(),CVt=iw(),LVt=bK(),GNe=LVt.nextPow2,HNe=new xVt,C8=!1;document.body&&(k8=document.body.appendChild(document.createElement("div")),k8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(k8).fontStretch&&(C8=!0),document.body.removeChild(k8));var k8,kc=function(t){PVt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=_Vt(t),this.shader=HNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||gVt({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(),HNe.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(AVt(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:` +`),xi;if(Nt&&(xi=Fs(Wr),Nt[xi]))return Nt[xi].apply(null,yi);var dn=Function.apply(null,Qr.concat(Wr));return Nt&&(Nt[xi]=dn),dn.apply(null,yi)}return{global:wn,link:vi,block:on,proc:ua,scope:Bn,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",Os="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Nl="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ue="framebuffer",rt="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Me="Width",qe="Height",Ve=Ue+Me,lt=Ue+qe,it=ee+Me,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Me,fr=Ht+qe,Ar=[Vl,Zl,Nl,le,w,Os,ee,Q,Al],Ir=34962,ri=34963,li=2884,Ei=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,Ol=5124,ou=35667,Pu=35668,nu=35669,tu=35670,Hu=35671,$u=35672,Ku=35673,Wu=35674,ju=35675,sf=35676,_f=35678,Qu=35680,ef=4,Z=1028,se=1029,Pe=2304,Ze=2305,et=32775,st=32776,jt=519,_t=7680,hr=0,Cr=1,zr=32774,fi=513,$r=36160,Bi=36064,fn={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},mi={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},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Pe,ccw:Ze};function pn(Be){return Array.isArray(Be)||yr(Be)||Ut(Be)}function sn(Be){return Be.sort(function(Nt,ar){return Nt===ee?-1:ar===ee?1:Nt=1,Qr>=2,Nt)}else if(ar===Ks){var yi=Be.data;return new wi(yi.thisDep,yi.contextDep,yi.propDep,Nt)}else{if(ar===dl)return new wi(!1,!1,!1,Nt);if(ar===xl){for(var ci=!1,vi=!1,on=!1,Bn=0;Bn=1&&(vi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(ci=ci||Ln.data.thisDep,vi=vi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new wi(ci,vi,on,Nt)}else return new wi(ar===Cs,ar===is,ar===zn,Nt)}}var js=new wi(!1,!1,!1,function(){});function El(Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr){var xi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=et,dn.max=st);var En=ar.angle_instanced_arrays,Zi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na($e){return $e.replace(".","_")}function On($e,ht,bt){var Kt=na($e);Ji.push($e),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In($e,ht,bt){var Kt=na($e);Ji.push($e),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va($e){return!!isNaN($e)}On(Bl,hn),On(bl,Ei),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",fi),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,li),In(nl,"cullFace",se),In(zl,zl,Ze),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:Nt,next:hs,current:Kn,draw:Ls,elements:ci,buffer:yi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:mi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:pi,orientationType:ji};Zi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function($e){return $e===0?[0]:M($e,function(ht){return Bi+ht})}));var Qn=0;function Mo(){var $e=Gn({cache:qi}),ht=$e.link,bt=$e.global;$e.id=Qn++,$e.batchId="0";var Kt=ht(_s),sr=$e.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=$e.next={},ur=$e.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=$e.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),$e.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,$e.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append($e,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Ur){return $e.invoke(Jt,Ur)})}},$e.attribCache={};var Ot={};return $e.scopeAttrib=function(Jt){var Lt=Nt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new xi);var Ur=Ot[Lt]=ht(Tr);return Ur},$e}function al($e){var ht=$e.static,bt=$e.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl($e,ht){var bt=$e.static,Kt=$e.dynamic;if(Ue in bt){var sr=bt[Ue];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ve,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ve,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ue in Kt){var Qt=Kt[Ue];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Ur=Jt.context;return er.set(Ur,"."+Ve,Tr+"?"+Tr+".width:"+Ur+"."+nr),er.set(Ur,"."+lt,Tr+"?"+Tr+".height:"+Ur+"."+fr),Tr})}else return null}function Dl($e,ht,bt){var Kt=$e.static,sr=$e.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Ur=Jt.y|0,hi,Cn;return"width"in Jt?hi=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new wi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=hi;"width"in Jt||(Pn=ca.def(Tn,".",Ve,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Ur)),[Tr,Ur,Pn,Nn]})}else if(Ot in sr){var Yi=sr[Ot],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,".",Ve,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new wi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ve),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new wi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+it,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Bu($e,ht){var bt=$e.static,Kt=typeof bt[mt]=="string"&&typeof bt[rt]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",hi,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Ur.glTypes,"[",Lt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Yi[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}sr[Qt]=Xo(ur,er)}),sr}function xf($e){var ht=$e.static,bt=$e.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Cf($e,ht,bt,Kt,sr){var Qt=$e.static,ur=$e.dynamic,er=Bu($e,ht),Ot=pl($e,sr),Jt=Dl($e,Ot,sr),Lt=Ql($e,sr),Tr=Ef($e,sr),Ur=vf($e,sr,er);function hi(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}hi(ee),hi(na(Q));var Cn=Object.keys(Tr).length>0,Yi={framebuffer:Ot,draw:Lt,shader:Ur,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al($e,sr),Yi.uniforms=Cu(bt,sr),Yi.drawVAO=Yi.scopeVAO=Lt.vao,!Yi.drawVAO&&Ur.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Ur.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Yi.drawVAO=new wi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return er?Yi.useVAO=!0:Yi.attributes=gf(ht,sr),Yi.context=xf(Kt,sr),Yi}function Gu($e,ht,bt){var Kt=$e.shared,sr=Kt.context,Qt=$e.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append($e,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function cf($e,ht,bt,Kt){var sr=$e.shared,Qt=sr.gl,ur=sr.framebuffer,er;Zi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=$e.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append($e,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Zi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Zi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function mf($e,ht,bt){var Kt=$e.shared,sr=Kt.gl,Qt=$e.current,ur=$e.next,er=Kt.current,Ot=Kt.next,Jt=$e.cond(er,".dirty");Ji.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Ur,hi;if(Tr in ur){Ur=ur[Tr],hi=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Ur,"[",yn,"]")});Jt($e.cond(Cn.map(function(yn,Xa){return yn+"!=="+hi+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return hi+"["+Xa+"]="+yn}).join(";"),";"))}else{Ur=Jt.def(Ot,".",Tr);var Yi=$e.cond(Ur,"!==",er,".",Tr);Jt(Yi),Tr in Ui?Yi($e.cond(Ur).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Ur,";"):Yi(sr,".",ro[Tr],"(",Ur,");",er,".",Tr,"=",Ur,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl($e,ht,bt,Kt){var sr=$e.shared,Qt=$e.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append($e,ht);if(Ui[Jt]){var Ur=Ui[Jt];xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht($e.cond(Ot).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Ot,";")):(ht($e.cond(Tr).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(en(Tr)){var hi=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Yi){return hi+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function bf($e,ht){En&&($e.instancing=ht.def($e.shared.extensions,".angle_instanced_arrays"))}function cu($e,ht,bt,Kt,sr){var Qt=$e.shared,ur=$e.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Ur;function hi(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Ur=ht.def(),Tn(Ur,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Ur,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Yi(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(hi(ht),Cn(ht.exit),Yi("true")):Yi("false");return}yn=Jt.append($e,ht),Yi(yn)}else yn=ht.def(er,".profile");var Xa=$e.block();hi(Xa),ht("if(",yn,"){",Xa,"}");var ca=$e.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y($e,ht,bt,Kt,sr){var Qt=$e.shared;function ur(Ot){switch(Ot){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 er(Ot,Jt,Lt){var Tr=Qt.gl,Ur=ht.def(Ot,".location"),hi=ht.def(Qt.attributes,"[",Ur,"]"),Cn=Lt.state,Yi=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",hi,".buffer){",Tr,".enableVertexAttribArray(",Ur,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",hi,".type!==",Pn,"||",hi,".size!==",Nn,"||",Xa.map(function(Zo){return hi+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Ir,",",Yi,".buffer);",Tr,".vertexAttribPointer(",[Ur,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",hi,".type=",Pn,";",hi,".size=",Nn,";",Xa.map(function(Zo){return hi+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",hi,".divisor!==",xa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[Ur,xa],");",hi,".divisor=",xa,";}")}}function Tn(){ht("if(",hi,".buffer){",Tr,".disableVertexAttribArray(",Ur,");",hi,".buffer=null;","}if(",ta.map(function(Pn,Nn){return hi+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Ur,",",yn,");",ta.map(function(Pn,Nn){return hi+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append($e,ht)}else{if(!sr(js))return;var Ur=$e.scopeAttrib(Jt);Tr={},Object.keys(new xi).forEach(function(hi){Tr[hi]=ht.def(Ur,".",hi)})}er($e.link(Ot),ur(Ot.info.type),Tr)})}function R($e,ht,bt,Kt,sr,Qt){for(var ur=$e.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Ur,hi,Cn,Yi],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Ur,Cn,Xa,hi+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Ur,hi,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(bt("if(",Yi,">0){"),Tn(),bt("}else if(",Yi,"<0){"),Pn(),bt("}")):Tn():Pn()}function O($e,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),$e(Qt,ur,bt,Kt),Qt.compile().body}function K($e,ht,bt,Kt){bf($e,ht),bt.useVAO?bt.drawVAO?ht($e.shared.vao,".setVAO(",bt.drawVAO.append($e,ht),");"):ht($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(ht($e.shared.vao,".setVAO(null);"),Y($e,ht,bt,Kt.attributes,function(){return!0})),R($e,ht,bt,Kt.uniforms,function(){return!0},!1),J($e,ht,ht,bt)}function _e($e,ht){var bt=$e.proc("draw",1);bf($e,bt),Gu($e,bt,ht.context),cf($e,bt,ht.framebuffer),mf($e,bt,ht),Fl($e,bt,ht.state),cu($e,bt,ht,!1,!0);var Kt=ht.shader.progVar.append($e,bt);if(bt($e.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var sr=$e.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt($e.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",$e.link(function(er){return O(K,$e,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function ne($e,ht,bt,Kt){$e.batchId="a1",bf($e,ht);function sr(){return!0}Y($e,ht,bt,Kt.attributes,sr),R($e,ht,bt,Kt.uniforms,sr,!1),J($e,ht,ht,bt)}function Ce($e,ht,bt,Kt){bf($e,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();$e.shared.props=Ot,$e.batchId=Qt;var Jt=$e.scope(),Lt=$e.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Ur(Xa){return!Tr(Xa)}if(bt.needsContext&&Gu($e,Lt,bt.context),bt.needsFramebuffer&&cf($e,Lt,bt.framebuffer),Fl($e,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu($e,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Lt),");"):Jt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Jt),");"):Jt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Jt($e.shared.vao,".setVAO(null);"),Y($e,Jt,bt,Kt.attributes,Ur),Y($e,Lt,bt,Kt.attributes,Tr)),R($e,Jt,bt,Kt.uniforms,Ur,!1),R($e,Lt,bt,Kt.uniforms,Tr,!0),J($e,Jt,Lt,bt);else{var hi=$e.global.def("{}"),Cn=bt.shader.progVar.append($e,Lt),Yi=Lt.def(Cn,".id"),yn=Lt.def(hi,"[",Yi,"]");Lt($e.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",hi,"[",Yi,"]=",$e.link(function(Xa){return O(ne,$e,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ye($e,ht){var bt=$e.proc("batch",2);$e.batchId="0",bf($e,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(hi){Kt=Kt||ht.context[hi].propDep}),Kt||(Gu($e,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||cf($e,bt,Qt)):cf($e,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(hi){return hi.contextDep&&Kt||hi.propDep}mf($e,bt,ht),Fl($e,bt,ht.state,function(hi){return!er(hi)}),(!ht.profile||!er(ht.profile))&&cu($e,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Ce($e,bt,ht,null);else{var Jt=Ot.append($e,bt);if(bt($e.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Ce($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var Lt=$e.global.def("{}"),Tr=bt.def(Jt,".id"),Ur=bt.def(Lt,"[",Tr,"]");bt($e.cond(Ur).then(Ur,".call(this,a0,a1);").else(Ur,"=",Lt,"[",Tr,"]=",$e.link(function(hi){return O(Ce,$e,ht,hi,2)}),"(",Jt,");",Ur,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function kt($e,ht){var bt=$e.proc("scope",3);$e.batchId="a2";var Kt=$e.shared,sr=Kt.current;if(Gu($e,bt,ht.context),ht.framebuffer&&ht.framebuffer.append($e,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append($e,bt);en(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set($e.next[er],"["+Tr+"]",Lt):bt.set($e.next[er],"["+Tr+"]",$e.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,$e.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu($e,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,$e.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append($e,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:$e.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+$e.link(Nt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append($e,bt),Jt=$e.scopeAttrib(er);Object.keys(new xi).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append($e,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",$e.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,$e.link(Jt,{stable:!0}))}}ur(rt),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function dr($e){if(!(typeof $e!="object"||en($e))){for(var ht=Object.keys($e),bt=0;bt=0;--O){var K=_s[O];K&&K(qi,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Bu(){al&&(d.cancel(pl),al=null)}function vf(O){O.preventDefault(),yi=!0,Bu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),yi=!1,ci.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 Ef(){_s.length=0,Bu(),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(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return $e.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return $e.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=tf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Cf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:O.framebuffer.faces[K]},O),xf);else gf(O,xf);else xf(null,O)}function Gu(O){_s.push(O);function K(){var _e=pf(_s,O);function ne(){var Ce=pf(_s,ne);_s[Ce]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Bu()}_s[_e]=ne}return Dl(),{cancel:K}}function cf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,qi.viewportWidth=qi.framebufferWidth=qi.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,qi.viewportHeight=qi.framebufferHeight=qi.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function mf(){qi.tick+=1,qi.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(O,K){var _e;switch(O){case"frame":return Gu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Cf,prop:h.define.bind(null,lf),context:h.define.bind(null,hf),this:h.define.bind(null,Mf),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Zi.create(O,!1)},texture:Ji.create2D,cube:Ji.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Gu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:Ef,_gl:ar,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:on,getCachedCode:Y,preloadCachedCode:R});return Nt.onDone(null,J),J}return fc})});var lNe=Te((qxr,sNe)=>{"use strict";var tVt=eg();sNe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},aNe(t)?t={container:t}:rVt(t)?t={container:t}:iVt(t)?t={gl:t}:t=tVt(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}aNe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=oNe(),t.container.appendChild(t.canvas),nNe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=oNe(),t.container.appendChild(t.canvas),nNe(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 nNe(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 aNe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function rVt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function iVt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function oNe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var fNe=Te((Nxr,uNe)=>{"use strict";var nVt=yK(),aVt=[32,126];uNe.exports=oVt;function oVt(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||aVt;if(n&&typeof n!="string"&&(n=nVt(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 bK=Te(Zh=>{"use strict";"use restrict";var xK=32;Zh.INT_BITS=xK;Zh.INT_MAX=2147483647;Zh.INT_MIN=-1<0)-(e<0)};Zh.abs=function(e){var t=e>>xK-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 cNe(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=cNe;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 Dk=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|Dk[e>>>16&255]<<8|Dk[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>>>cNe(e)+1}});var pNe=Te((Vxr,dNe)=>{"use strict";function hNe(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 sVt(e|0,t);break;case"object":if(typeof e.length=="number")return hNe(e,t,0);break}return[]}dNe.exports=lVt});var CNe=Te(rc=>{"use strict";var xx=bK(),Cp=pNe(),vNe=_2().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 uVt=typeof Uint8ClampedArray!="undefined",fVt=typeof BigUint64Array!="undefined",cVt=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 A8=ld.DATA,T8=ld.BUFFER;rc.free=function(t){if(vNe.isBuffer(t))T8[xx.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=xx.log2(r)|0;A8[n].push(t)}};function mNe(e){if(e){var t=e.length||e.byteLength,r=xx.log2(t);A8[r].push(e)}}function hVt(e){mNe(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=hVt;rc.freeArrayBuffer=mNe;rc.freeBuffer=function(t){T8[xx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qv(t);switch(r){case"uint8":return wK(t);case"uint16":return yNe(t);case"uint32":return gNe(t);case"int8":return _Ne(t);case"int16":return xNe(t);case"int32":return bNe(t);case"float":case"float32":return wNe(t);case"double":case"float64":return ANe(t);case"uint8_clamped":return TNe(t);case"bigint64":return MNe(t);case"biguint64":return SNe(t);case"buffer":return kNe(t);case"data":case"dataview":return ENe(t);default:return null}return null};function qv(t){var t=xx.nextPow2(t),r=xx.log2(t),n=A8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=qv;function wK(e){return new Uint8Array(qv(e),0,e)}rc.mallocUint8=wK;function yNe(e){return new Uint16Array(qv(2*e),0,e)}rc.mallocUint16=yNe;function gNe(e){return new Uint32Array(qv(4*e),0,e)}rc.mallocUint32=gNe;function _Ne(e){return new Int8Array(qv(e),0,e)}rc.mallocInt8=_Ne;function xNe(e){return new Int16Array(qv(2*e),0,e)}rc.mallocInt16=xNe;function bNe(e){return new Int32Array(qv(4*e),0,e)}rc.mallocInt32=bNe;function wNe(e){return new Float32Array(qv(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=wNe;function ANe(e){return new Float64Array(qv(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=ANe;function TNe(e){return uVt?new Uint8ClampedArray(qv(e),0,e):wK(e)}rc.mallocUint8Clamped=TNe;function SNe(e){return fVt?new BigUint64Array(qv(8*e),0,e):null}rc.mallocBigUint64=SNe;function MNe(e){return cVt?new BigInt64Array(qv(8*e),0,e):null}rc.mallocBigInt64=MNe;function ENe(e){return new DataView(qv(e),0,e)}rc.mallocDataView=ENe;function kNe(e){e=xx.nextPow2(e);var t=xx.log2(e),r=T8[t];return r.length>0?r.pop():new vNe(e)}rc.mallocBuffer=kNe;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,A8[t].length=0,T8[t].length=0}});var PNe=Te((Hxr,LNe)=>{"use strict";var dVt=Object.prototype.toString;LNe.exports=function(e){var t;return dVt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var AK=Te((Wxr,zNe)=>{zNe.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 DNe=Te((jxr,RNe)=>{"use strict";var pVt=AK();RNe.exports=INe;var Fk=96;function TK(e,t){var r=pVt(getComputedStyle(e).getPropertyValue(t));return r[0]*INe(r[1],e)}function vVt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=TK(r,"font-size")/128;return t.removeChild(r),n}function INe(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 TK(t,"font-size");case"rem":return TK(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 ONe=Te((Xxr,BNe)=>{"use strict";BNe.exports=E8;var mVt=E8.canvas=document.createElement("canvas"),S8=mVt.getContext("2d"),FNe=M8([32,126]);E8.createPairs=M8;E8.ascii=FNe;function E8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=M8(t):Array.isArray(t)?n=t:(t.o?n=M8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=FNe),S8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function M8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";UNe.exports=bx;bx.canvas=document.createElement("canvas");bx.cache={};function bx(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(bx.cache[r]&&n<=bx.cache[r].em)return qNe(bx.cache[r],s);var u=t.canvas||bx.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=rg(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var _=rg(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-_+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=rg(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=rg(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=rg(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 T=rg(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=rg(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=rg(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=rg(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=rg(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=NNe(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=NNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var x in d)d[x]/=n;return d.em=n,bx.cache[r]=d,qNe(d,s)}function qNe(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 rg(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 jNe=Te((Yxr,WNe)=>{"use strict";var _S=rNe(),yVt=eg(),gVt=iNe(),_Vt=lNe(),xVt=iK(),SK=ox(),bVt=fNe(),wx=CNe(),wVt=sS(),AVt=PNe(),TVt=AK(),SVt=DNe(),MVt=ONe(),EVt=jh(),kVt=VNe(),CVt=iw(),LVt=bK(),GNe=LVt.nextPow2,HNe=new xVt,C8=!1;document.body&&(k8=document.body.appendChild(document.createElement("div")),k8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(k8).fontStretch&&(C8=!0),document.body.removeChild(k8));var k8,kc=function(t){PVt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=_Vt(t),this.shader=HNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||gVt({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(),HNe.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(AVt(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; @@ -2708,14 +2708,14 @@ void main() { }`}),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=yVt(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(Le){return parseFloat(Le)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=wVt(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=CVt(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(Le,de){if(typeof Le=="string")try{Le=_S.parse(Le)}catch(je){Le=_S.parse(kc.baseFontSize+"px "+Le)}else{var te=Le.style,ke=Le.weight,Ee=Le.stretch,Se=Le.variant;Le=_S.parse(_S.stringify(Le)),te&&(Le.style=te),ke&&(Le.weight=ke),Ee&&(Le.stretch=Ee),Se&&(Le.variant=Se)}var Ge=_S.stringify({size:kc.baseFontSize,family:Le.family,stretch:C8?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style}),De=TVt(Le.size),xe=Math.round(De[0]*SVt(De[1]));if(xe!==r.fontSize[de]&&(i=!0,r.fontSize[de]=xe),(!r.font[de]||Ge!=r.font[de].baseString)&&(n=!0,r.font[de]=kc.fonts[Ge],!r.font[de])){var Ne=Le.family.join(", "),ce=[Le.style];Le.style!=Le.variant&&ce.push(Le.variant),Le.variant!=Le.weight&&ce.push(Le.weight),C8&&Le.weight!=Le.stretch&&ce.push(Le.stretch),r.font[de]={baseString:Ge,family:Ne,weight:Le.weight,stretch:Le.stretch,style:Le.style,variant:Le.variant,width:{},kerning:{},metrics:kVt(Ne,{origin:"top",fontSize:kc.baseFontSize,fontStyle:ce.join(" ")})},kc.fonts[Ge]=r.font[de]}}),(n||i)&&this.font.forEach(function(Le,de){var te=_S.stringify({size:r.fontSize[de],family:Le.family,stretch:C8?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style});if(r.fontAtlas[de]=r.shader.atlas[te],!r.fontAtlas[de]){var ke=Le.metrics;r.shader.atlas[te]=r.fontAtlas[de]={fontString:te,step:Math.ceil(r.fontSize[de]*ke.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=wx.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-Le;case"center":case"centre":case"middle":return-Le*.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(Le,de){var te=(r.font[de]||r.font[0]).metrics,ke=0;return ke+=te.bottom*.5,typeof Le=="number"?ke+=Le-te.baseline:ke+=-te[Le],ke*=-1,ke})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=SK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=wx.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 ge=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(ge);for(var ze=0;ze1?this.counts[ze]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[ze]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(ze*4,ze*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[ze]:this.opacity,baseline:this.baselineOffset[ze]!=null?this.baselineOffset[ze]:this.baselineOffset[0],align:this.align?this.alignOffset[ze]!=null?this.alignOffset[ze]:this.alignOffset[0]:0,atlas:this.fontAtlas[ze]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(ze*2,ze*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 PVt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}WNe.exports=kc});var XNe=Te((MK,EK)=>{(function(e,t){typeof MK=="object"&&typeof EK!="undefined"?EK.exports=t():e.createREGL=t()})(MK,function(){"use strict";var e=function(Be,Nt){for(var ar=Object.keys(Nt),Qr=0;Qr1&&Nt===ar&&(Nt==='"'||Nt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var yi=Be.split(".");if(yi.length===1)return['"'+o(Be)+'"'];for(var ci=[],vi=0;vi65535)<<4,Be>>>=Nt,ar=(Be>255)<<3,Be>>>=ar,Nt|=ar,ar=(Be>15)<<2,Be>>>=ar,Nt|=ar,ar=(Be>3)<<1,Be>>>=ar,Nt|=ar,Nt|Be>>1}function N(){var Be=M(8,function(){return[]});function Nt(ci){var vi=j(ci),on=Be[W(vi)>>2];return on.length>0?on.pop():new ArrayBuffer(vi)}function ar(ci){Be[W(ci.byteLength)>>2].push(ci)}function Qr(ci,vi){var on=null;switch(ci){case m:on=new Int8Array(Nt(vi),0,vi);break;case P:on=new Uint8Array(Nt(vi),0,vi);break;case A:on=new Int16Array(Nt(2*vi),0,vi);break;case F:on=new Uint16Array(Nt(2*vi),0,vi);break;case B:on=new Int32Array(Nt(4*vi),0,vi);break;case U:on=new Uint32Array(Nt(4*vi),0,vi);break;case G:on=new Float32Array(Nt(4*vi),0,vi);break;default:return null}return on.length!==vi?on.subarray(0,vi):on}function yi(ci){ar(ci.buffer)}return{alloc:Nt,free:ar,allocType:Qr,freeType:yi}}var H=N();H.zero=N();var re=3408,ae=3410,ge=3411,ze=3412,Le=3413,de=3414,te=3415,ke=33901,Ee=33902,Se=3379,Ge=3386,De=34921,xe=36347,Ne=36348,ce=35661,je=35660,Qe=34930,gt=36349,qt=34076,at=34024,Ke=7936,Ct=7937,wt=7938,Mt=35724,Bt=34047,Zt=36063,Et=34852,Ae=3553,ot=34067,At=34069,vt=33984,Je=6408,He=5126,nt=5121,tt=36160,It=36053,Yt=36064,cr=16384,_r=function(Be,Nt){var ar=1;Nt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Bt));var Qr=1,yi=1;Nt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),yi=Be.getParameter(Zt));var ci=!!Nt.oes_texture_float;if(ci){var vi=Be.createTexture();Be.bindTexture(Ae,vi),Be.texImage2D(Ae,0,Je,1,1,0,Je,He,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer(tt,on),Be.framebufferTexture2D(tt,Yt,Ae,vi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus(tt)!==It)ci=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(cr);var Bn=H.allocType(He,4);Be.readPixels(0,0,1,1,Je,He,Bn),Be.getError()?ci=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(vi),ci=Bn[0]===1),H.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=H.allocType(nt,36);Be.activeTexture(vt),Be.bindTexture(ot,Ls),Be.texImage2D(At,0,Je,3,3,0,Je,nt,ua),H.freeType(ua),Be.bindTexture(ot,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(ge),Be.getParameter(ze),Be.getParameter(Le)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(Nt).filter(function(Hn){return!!Nt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:yi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ge),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(qt),maxRenderbufferSize:Be.getParameter(at),maxTextureUnits:Be.getParameter(Qe),maxTextureSize:Be.getParameter(Se),maxAttributes:Be.getParameter(De),maxVertexUniforms:Be.getParameter(xe),maxVertexTextureUnits:Be.getParameter(je),maxVaryingVectors:Be.getParameter(Ne),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(Mt),renderer:Be.getParameter(Ct),vendor:Be.getParameter(Ke),version:Be.getParameter(wt),readFloat:ci,npotTextureCube:wn}},yr=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||yr(Be.data))}var Re=function(Be){return Object.keys(Be).map(function(Nt){return Be[Nt]})},be={shape:fe,flatten:ye};function Oe(Be,Nt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(xi[0])){Kn=si(xi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var On=H.allocType(Zi.dtype,Ji.length);xr(On,Ji),Kn(On,ro),H.freeType(On)}else if(Array.isArray(Ji[0])||yr(Ji[0])){na=si(Ji);var In=Qi(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Ut(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:Wt(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,ar.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function qi(){Re(ci).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(Nt.getTotalBufferSize=function(){var Wr=0;return Object.keys(ci).forEach(function(xi){Wr+=ci[xi].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Re(ci).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof vi?Wr._buffer:null},restore:qi,_initBuffer:Ls}}var Or=0,Hr=0,jr=1,gi=1,ki=4,Vi=4,ti={points:Or,point:Hr,lines:jr,line:gi,triangles:ki,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tn=0,Yr=1,oi=4,Fi=5120,an=5121,nn=5122,Ri=5123,Ii=5124,xn=5125,bi=34963,Xr=35040,ct=35044;function tr(Be,Nt,ar,Qr){var yi={},ci=0,vi={uint8:an,uint16:Ri};Nt.oes_element_index_uint&&(vi.uint32=xn);function on(qi){this.id=ci++,yi[this.id]=this,this.buffer=qi,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(qi){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,bi,!0,!1)._buffer)),Ls(Wr,qi,Xr,-1,-1,0,0),Wr}function wn(qi){Bn.push(qi)}function Ls(qi,Wr,xi,dn,En,Zi,ga){qi.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!yr(Wr)||Ut(Wr)&&!yr(Wr.data))&&(hs=Nt.oes_element_index_uint?xn:Ri),ar._initBuffer(qi.buffer,Wr,xi,hs,3)}else Be.bufferData(bi,Zi,xi),qi.buffer.dtype=Kn||an,qi.buffer.usage=xi,qi.buffer.dimension=3,qi.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(qi.buffer.dtype){case an:case Fi:Kn=an;break;case Ri:case nn:Kn=Ri;break;case xn:case Ii:Kn=xn;break;default:}qi.buffer.dtype=Kn}qi.type=Kn;var Ji=En;Ji<0&&(Ji=qi.buffer.byteLength,Kn===Ri?Ji>>=1:Kn===xn&&(Ji>>=2)),qi.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=qi.buffer.dimension;ro===1&&(Ui=tn),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}qi.primType=Ui}function ua(qi){Qr.elementsCount--,delete yi[qi.id],qi.buffer.destroy(),qi.buffer=null}function Hn(qi,Wr){var xi=ar.create(null,bi,!0),dn=new on(xi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)xi(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Zi=="number")xi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=an;else{var ga=null,Kn=ct,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||yr(Zi)||Ut(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=$i[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=vi[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Ri||ro===nn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(qi),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return xi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(qi){return typeof qi=="function"&&qi._elements instanceof on?qi._elements:null},clear:function(){Re(yi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var Nt=H.allocType(Zr,Be.length),ar=0;ar>>31<<15,ci=(Qr<<1>>>24)-127,vi=Qr>>13&1023;if(ci<-24)Nt[ar]=yi;else if(ci<-14){var on=-14-ci;Nt[ar]=yi+(vi+1024>>on)}else ci>15?Nt[ar]=yi+31744:Nt[ar]=yi+(ci+15<<10)+vi}return Nt}function en(Be){return Array.isArray(Be)||yr(Be)}var ii=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,Ba=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,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[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(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var rn=[];rn[so]=2,rn[Kr]=2,rn[Ia]=2,rn[uo]=4,rn[mn]=.5,rn[ra]=.5,rn[wa]=1,rn[ws]=1,rn[Co]=.5,rn[Po]=1,rn[Wi]=1,rn[gn]=.5,rn[Ps]=.25,rn[Ha]=.5,rn[Sn]=.25,rn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var Nt=Be.length;return!(Nt===0||!en(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var Nt=yo(Be);return es.indexOf(Nt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,Nt){var ar=Nt.length;switch(Be.type){case Ba:case Ko:case Qo:case Hi:var Qr=H.allocType(Be.type,ar);Qr.set(Nt),Be.data=Qr;break;case fo:Be.data=Ai(Nt);break;default:}}function Wa(Be,Nt){return H.allocType(Be.type===fo?Hi:Be.type,Nt)}function To(Be,Nt){Be.type===fo?(Be.data=Ai(Nt),H.freeType(Nt)):Be.data=Nt}function ts(Be,Nt,ar,Qr,yi,ci){for(var vi=Be.width,on=Be.height,Bn=Be.channels,Ln=vi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=vi*Bn*Bn,Bn/=2;return on}else return vi*ar*Qr}function qa(Be,Nt,ar,Qr,yi,ci,vi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={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:Ba,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},qi={};Nt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Nt.oes_texture_float&&(ua.float32=ua.float=Hi),Nt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Nt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Nt.webgl_compressed_texture_s3tc&&e(qi,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Nt.webgl_compressed_texture_atc&&e(qi,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Nt.webgl_compressed_texture_pvrtc&&e(qi,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Nt.webgl_compressed_texture_etc1&&(qi["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ii));Object.keys(qi).forEach(function(ne){var Ce=qi[ne];Wr.indexOf(Ce)>=0&&(Hn[ne]=Ce)});var xi=Object.keys(Hn);ar.textureFormats=xi;var dn=[];Object.keys(Hn).forEach(function(ne){var Ce=Hn[ne];dn[Ce]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Ce=ua[ne];En[Ce]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var Ce=Ln[ne];Zi[Ce]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Ce=wn[ne];ga[Ce]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Ce=Bn[ne];Kn[Ce]=ne});var hs=xi.reduce(function(ne,Ce){var Ye=Hn[Ce];return Ye===oa||Ye===Ga||Ye===oa||Ye===ka||Ye===ys||Ye===uo||Nt.ext_srgb&&(Ye===ls||Ye===$a)?ne[Ye]=Ye:Ye===Kr||Ce.indexOf("rgba")>=0?ne[Ye]=Un:ne[Ye]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Ba,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,Ce){ne.internalformat=Ce.internalformat,ne.format=Ce.format,ne.type=Ce.type,ne.compressed=Ce.compressed,ne.premultiplyAlpha=Ce.premultiplyAlpha,ne.flipY=Ce.flipY,ne.unpackAlignment=Ce.unpackAlignment,ne.colorSpace=Ce.colorSpace,ne.width=Ce.width,ne.height=Ce.height,ne.channels=Ce.channels}function ro(ne,Ce){if(!(typeof Ce!="object"||!Ce)){if("premultiplyAlpha"in Ce&&(ne.premultiplyAlpha=Ce.premultiplyAlpha),"flipY"in Ce&&(ne.flipY=Ce.flipY),"alignment"in Ce&&(ne.unpackAlignment=Ce.alignment),"colorSpace"in Ce&&(ne.colorSpace=Ls[Ce.colorSpace]),"type"in Ce){var Ye=Ce.type;ne.type=ua[Ye]}var kt=ne.width,dr=ne.height,Mr=ne.channels,lr=!1;"shape"in Ce?(kt=Ce.shape[0],dr=Ce.shape[1],Ce.shape.length===3&&(Mr=Ce.shape[2],lr=!0)):("radius"in Ce&&(kt=dr=Ce.radius),"width"in Ce&&(kt=Ce.width),"height"in Ce&&(dr=Ce.height),"channels"in Ce&&(Mr=Ce.channels,lr=!0)),ne.width=kt|0,ne.height=dr|0,ne.channels=Mr|0;var $e=!1;if("format"in Ce){var ht=Ce.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Ce||(ne.type=ua[ht])),ht in qi&&(ne.compressed=!0),$e=!0}!lr&&$e?ne.channels=$n[ne.format]:lr&&!$e&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Ce){var Ye=null;if(Es(Ce)?Ye=Ce:Ce&&(ro(ne,Ce),"x"in Ce&&(ne.xOffset=Ce.x|0),"y"in Ce&&(ne.yOffset=Ce.y|0),Es(Ce.data)&&(Ye=Ce.data)),Ce.copy){var kt=yi.viewportWidth,dr=yi.viewportHeight;ne.width=ne.width||kt-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ye)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(yr(Ye))ne.channels=ne.channels||4,ne.data=Ye,!("type"in Ce)&&ne.type===Ba&&(ne.type=Ts(Ye));else if(Pa(Ye))ne.channels=ne.channels||4,Ho(ne,Ye),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ye)){var Mr=Ye.data;!Array.isArray(Mr)&&ne.type===Ba&&(ne.type=Ts(Mr));var lr=Ye.shape,$e=Ye.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=$e[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=$e[0],Qt=$e[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Mr,sr,Qt,ur,Ye.offset)}else if(Jo(Ye)||Ao(Ye)||Dn(Ye))Jo(Ye)||Ao(Ye)?ne.element=Ye:ne.element=Ye.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ye))ne.element=Ye,ne.width=Ye.width,ne.height=Ye.height,ne.channels=4;else if(Ws(Ye))ne.element=Ye,ne.width=Ye.naturalWidth,ne.height=Ye.naturalHeight,ne.channels=4;else if(Ca(Ye))ne.element=Ye,ne.width=Ye.videoWidth,ne.height=Ye.videoHeight,ne.channels=4;else if(to(Ye)){var er=ne.width||Ye[0].length,Ot=ne.height||Ye.length,Jt=ne.channels;en(Ye[0][0])?Jt=Jt||Ye[0][0].length:Jt=Jt||1;for(var Lt=be.shape(Ye),Tr=1,Ur=0;Ur>=dr,Ye.height>>=dr,In(Ye,kt[dr]),ne.mipmask|=1<=0&&!("faces"in Ce)&&(ne.genMipmaps=!0)}if("mag"in Ce){var kt=Ce.mag;ne.magFilter=Ln[kt]}var dr=ne.wrapS,Mr=ne.wrapT;if("wrap"in Ce){var lr=Ce.wrap;typeof lr=="string"?dr=Mr=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Mr=Bn[lr[1]])}else{if("wrapS"in Ce){var $e=Ce.wrapS;dr=Bn[$e]}if("wrapT"in Ce){var ht=Ce.wrapT;Mr=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Mr,"anisotropic"in Ce){var bt=Ce.anisotropic;ne.anisotropic=Ce.anisotropic}if("mipmap"in Ce){var Kt=!1;switch(typeof Ce.mipmap){case"string":ne.mipmapHint=on[Ce.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Ce.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Ce)&&(ne.minFilter=mo)}}function xf(ne,Ce){Be.texParameteri(Ce,As,ne.minFilter),Be.texParameteri(Ce,vo,ne.magFilter),Be.texParameteri(Ce,Sa,ne.wrapS),Be.texParameteri(Ce,Qa,ne.wrapT),Nt.ext_texture_filter_anisotropic&&Be.texParameteri(Ce,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Ce))}var Cf=0,Gu={},cf=ar.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=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,vi.profile&&(this.stats={size:0})}function bf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Xi,null)}function Y(ne){var Ce=ne.texture,Ye=ne.unit,kt=ne.target;Ye>=0&&(Be.activeTexture(Ra+Ye),Be.bindTexture(kt,null),mf[Ye]=null),Be.deleteTexture(Ce),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],ci.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Ce=ne.unit;if(Ce<0){for(var Ye=0;Ye0)continue;kt.unit=-1}mf[Ye]=ne,Ce=Ye;break}Ce>=cf,vi.profile&&ci.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ye.height>>Qt)-sr,bf(Ye),_s(ur,Xi,Kt,sr,Qt),cu(),Mo(ur),kt}function Mr(lr,$e){var ht=lr|0,bt=$e|0||ht;if(ht===Ye.width&&bt===Ye.height)return kt;kt.width=Ye.width=ht,kt.height=Ye.height=bt,bf(Ye);for(var Kt=0;Ye.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Xi,Kt,Ye.format,sr,Qt,0,Ye.format,Ye.type,null)}return cu(),vi.profile&&(Ye.stats.size=Wo(Ye.internalformat,Ye.type,ht,bt,!1,!1)),kt}return kt(ne,Ce),kt.subimage=dr,kt.resize=Mr,kt._reglType="texture2d",kt._texture=Ye,vi.profile&&(kt.stats=Ye.stats),kt.destroy=function(){Ye.decRef()},kt}function J(ne,Ce,Ye,kt,dr,Mr){var lr=new Fl(aa);Gu[lr.id]=lr,ci.cubeCount++;var $e=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)$e[Lt]=Ql();if(typeof sr=="number"||!sr){var Ur=sr|0||1;for(Lt=0;Lt<6;++Lt)pl($e[Lt],Ur,Ur)}else if(typeof sr=="object")if(Qt)Dl($e[0],sr),Dl($e[1],Qt),Dl($e[2],ur),Dl($e[3],er),Dl($e[4],Ot),Dl($e[5],Jt);else if(gf(Tr,sr),ro(lr,sr),"faces"in sr){var hi=sr.faces;for(Lt=0;Lt<6;++Lt)Ui($e[Lt],lr),Dl($e[Lt],hi[Lt])}else for(Lt=0;Lt<6;++Lt)Dl($e[Lt],sr);for(Ui(lr,$e[0]),Tr.genMipmaps?lr.mipmask=($e[0].width<<1)-1:lr.mipmask=$e[0].mipmask,lr.internalformat=$e[0].internalformat,ht.width=$e[0].width,ht.height=$e[0].height,bf(lr),Lt=0;Lt<6;++Lt)Bu($e[Lt],Mn+Lt);for(xf(Tr,aa),cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Zi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)Ef($e[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Ur=Qn();return Ui(Ur,lr),Ur.width=0,Ur.height=0,In(Ur,Qt),Ur.width=Ur.width||(lr.width>>Tr)-Jt,Ur.height=Ur.height||(lr.height>>Tr)-Lt,bf(lr),_s(Ur,Mn+sr,Jt,Lt,Tr),cu(),Mo(Ur),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,bf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),vi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Ce,Ye,kt,dr,Mr),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,vi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,kt,Ye.internalformat,Ye.width>>kt,Ye.height>>kt,0,Ye.internalformat,Ye.type,null);xf(Ye.texInfo,Ye.target)})}function _e(){for(var ne=0;ne=0?Ef=!0:Bn.indexOf(Cu)>=0&&(Ef=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Bu=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Bu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Bu=vf=Fl.depthStencil:(cf=Fl.depthStencil,Bu=!1,vf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(qi);else if(Ql)cu=[qi(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]=yi.create(Qn,Ss,!1,!0)),Mo.buffer=yi.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 yi.getBuffer(Qn)?(Mo.buffer=yi.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):yi.getBuffer(Qn.buffer)?(Mo.buffer=yi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=pi[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=xi.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(xi){xi.stats.attributesCount>Wr&&(Wr=xi.stats.attributesCount)}),Wr});function qi(){yi={},ci={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),yi=Array(16),ci=0;ci<16;ci++)Qr[ci]=ar[ci]^909522486,yi[ci]=ar[ci]^1549556828;var vi=Pi(Qr.concat(Bs(Nt)),512+Nt.length*8);return Tt(Pi(yi.concat(vi),768))}function Ms(Be){for(var Nt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,yi=0;yi>>4&15)+Nt.charAt(Qr&15);return ar}function jo(Be){for(var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,yi=0;yiBe.length*8?ar+=tl:ar+=Nt.charAt(ci>>>6*(3-vi)&63);return ar}function Rs(Be,Nt){var ar=Nt.length,Qr=Array(),yi,ci,vi,on,Bn=Array(Math.ceil(Be.length/2));for(yi=0;yi0;){for(on=Array(),vi=0,yi=0;yi0||ci>0)&&(on[on.length]=ci);Qr[Qr.length]=vi,Bn=on}var Ln="";for(yi=Qr.length-1;yi>=0;yi--)Ln+=Nt.charAt(Qr[yi]);var wn=Math.ceil(Be.length*8/(Math.log(Nt.length)/Math.log(2)));for(yi=Ln.length;yi>>6&31,128|Qr&63):Qr<=65535?Nt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Nt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Nt}function Bs(Be){for(var Nt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return Nt}function Tt(Be){for(var Nt="",ar=0;ar>5]>>>24-ar%32&255);return Nt}function Vt(Be,Nt){return Be>>>Nt|Be<<32-Nt}function wr(Be,Nt){return Be>>>Nt}function mr(Be,Nt,ar){return Be&Nt^~Be&ar}function Fr(Be,Nt,ar){return Be&Nt^Be&ar^Nt&ar}function _i(Be){return Vt(Be,2)^Vt(Be,13)^Vt(Be,22)}function Si(Be){return Vt(Be,6)^Vt(Be,11)^Vt(Be,25)}function Ci(Be){return Vt(Be,7)^Vt(Be,18)^wr(Be,3)}function Ki(Be){return Vt(Be,17)^Vt(Be,19)^wr(Be,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 Pi(Be,Nt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr;for(Be[Nt>>5]|=128<<24-Nt%32,Be[(Nt+64>>9<<4)+15]=Nt,ua=0;ua>16)+(Nt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Mi(Be){return Li(Be).join("")}function Gn(Be){var Nt=Be&&Be.cache,ar=0,Qr=[],yi=[],ci=[];function vi(qi,Wr){var xi=Wr&&Wr.stable;if(!xi){for(var dn=0;dn0&&(qi.push(En,"="),qi.push.apply(qi,Li(arguments)),qi.push(";")),En}return e(Wr,{def:dn,toString:function(){return Mi([xi.length>0?"var "+xi.join(",")+";":"",Mi(qi)])}})}function Bn(){var qi=on(),Wr=on(),xi=qi.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",qi.def(Zi,ga),";")}return e(function(){qi.apply(qi,Li(arguments))},{def:qi.def,entry:qi,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),qi(Zi,ga,"=",Kn,";")},toString:function(){return xi()+dn()}})}function Ln(){var qi=Mi(arguments),Wr=Bn(),xi=Bn(),dn=Wr.toString,En=xi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return xi.apply(xi,Li(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Mi(["if(",qi,"){",dn(),"}",Zi])}})}var wn=on(),Ls={};function ua(qi,Wr){var xi=[];function dn(){var hs="a"+xi.length;return xi.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Pe,ccw:Ze};function pn(Be){return Array.isArray(Be)||yr(Be)||Ut(Be)}function sn(Be){return Be.sort(function(Nt,ar){return Nt===ee?-1:ar===ee?1:Nt=1,Qr>=2,Nt)}else if(ar===Ks){var yi=Be.data;return new wi(yi.thisDep,yi.contextDep,yi.propDep,Nt)}else{if(ar===dl)return new wi(!1,!1,!1,Nt);if(ar===xl){for(var ci=!1,vi=!1,on=!1,Bn=0;Bn=1&&(vi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(ci=ci||Ln.data.thisDep,vi=vi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new wi(ci,vi,on,Nt)}else return new wi(ar===Cs,ar===is,ar===zn,Nt)}}var js=new wi(!1,!1,!1,function(){});function El(Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr){var xi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=et,dn.max=st);var En=ar.angle_instanced_arrays,Zi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na($e){return $e.replace(".","_")}function On($e,ht,bt){var Kt=na($e);Ji.push($e),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In($e,ht,bt){var Kt=na($e);Ji.push($e),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va($e){return!!isNaN($e)}On(Bl,hn),On(bl,Ei),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",fi),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,li),In(nl,"cullFace",se),In(zl,zl,Ze),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:Nt,next:hs,current:Kn,draw:Ls,elements:ci,buffer:yi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:mi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:pi,orientationType:ji};Zi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function($e){return $e===0?[0]:M($e,function(ht){return Bi+ht})}));var Qn=0;function Mo(){var $e=Gn({cache:qi}),ht=$e.link,bt=$e.global;$e.id=Qn++,$e.batchId="0";var Kt=ht(_s),sr=$e.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=$e.next={},ur=$e.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=$e.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),$e.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,$e.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append($e,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Ur){return $e.invoke(Jt,Ur)})}},$e.attribCache={};var Ot={};return $e.scopeAttrib=function(Jt){var Lt=Nt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new xi);var Ur=Ot[Lt]=ht(Tr);return Ur},$e}function al($e){var ht=$e.static,bt=$e.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl($e,ht){var bt=$e.static,Kt=$e.dynamic;if(Ue in bt){var sr=bt[Ue];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ve,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ve,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ue in Kt){var Qt=Kt[Ue];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Ur=Jt.context;return er.set(Ur,"."+Ve,Tr+"?"+Tr+".width:"+Ur+"."+nr),er.set(Ur,"."+lt,Tr+"?"+Tr+".height:"+Ur+"."+fr),Tr})}else return null}function Dl($e,ht,bt){var Kt=$e.static,sr=$e.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Ur=Jt.y|0,hi,Cn;return"width"in Jt?hi=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new wi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=hi;"width"in Jt||(Pn=ca.def(Tn,".",Ve,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Ur)),[Tr,Ur,Pn,Nn]})}else if(Ot in sr){var Yi=sr[Ot],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,".",Ve,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new wi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ve),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new wi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+it,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Bu($e,ht){var bt=$e.static,Kt=typeof bt[mt]=="string"&&typeof bt[rt]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",hi,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Ur.glTypes,"[",Lt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Yi[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}sr[Qt]=Xo(ur,er)}),sr}function xf($e){var ht=$e.static,bt=$e.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Cf($e,ht,bt,Kt,sr){var Qt=$e.static,ur=$e.dynamic,er=Bu($e,ht),Ot=pl($e,sr),Jt=Dl($e,Ot,sr),Lt=Ql($e,sr),Tr=Ef($e,sr),Ur=vf($e,sr,er);function hi(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}hi(ee),hi(na(Q));var Cn=Object.keys(Tr).length>0,Yi={framebuffer:Ot,draw:Lt,shader:Ur,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al($e,sr),Yi.uniforms=Cu(bt,sr),Yi.drawVAO=Yi.scopeVAO=Lt.vao,!Yi.drawVAO&&Ur.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Ur.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Yi.drawVAO=new wi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return er?Yi.useVAO=!0:Yi.attributes=gf(ht,sr),Yi.context=xf(Kt,sr),Yi}function Gu($e,ht,bt){var Kt=$e.shared,sr=Kt.context,Qt=$e.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append($e,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function cf($e,ht,bt,Kt){var sr=$e.shared,Qt=sr.gl,ur=sr.framebuffer,er;Zi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=$e.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append($e,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Zi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Zi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function mf($e,ht,bt){var Kt=$e.shared,sr=Kt.gl,Qt=$e.current,ur=$e.next,er=Kt.current,Ot=Kt.next,Jt=$e.cond(er,".dirty");Ji.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Ur,hi;if(Tr in ur){Ur=ur[Tr],hi=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Ur,"[",yn,"]")});Jt($e.cond(Cn.map(function(yn,Xa){return yn+"!=="+hi+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return hi+"["+Xa+"]="+yn}).join(";"),";"))}else{Ur=Jt.def(Ot,".",Tr);var Yi=$e.cond(Ur,"!==",er,".",Tr);Jt(Yi),Tr in Ui?Yi($e.cond(Ur).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Ur,";"):Yi(sr,".",ro[Tr],"(",Ur,");",er,".",Tr,"=",Ur,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl($e,ht,bt,Kt){var sr=$e.shared,Qt=$e.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append($e,ht);if(Ui[Jt]){var Ur=Ui[Jt];xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht($e.cond(Ot).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Ot,";")):(ht($e.cond(Tr).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(en(Tr)){var hi=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Yi){return hi+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function bf($e,ht){En&&($e.instancing=ht.def($e.shared.extensions,".angle_instanced_arrays"))}function cu($e,ht,bt,Kt,sr){var Qt=$e.shared,ur=$e.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Ur;function hi(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Ur=ht.def(),Tn(Ur,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Ur,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Yi(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(hi(ht),Cn(ht.exit),Yi("true")):Yi("false");return}yn=Jt.append($e,ht),Yi(yn)}else yn=ht.def(er,".profile");var Xa=$e.block();hi(Xa),ht("if(",yn,"){",Xa,"}");var ca=$e.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y($e,ht,bt,Kt,sr){var Qt=$e.shared;function ur(Ot){switch(Ot){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 er(Ot,Jt,Lt){var Tr=Qt.gl,Ur=ht.def(Ot,".location"),hi=ht.def(Qt.attributes,"[",Ur,"]"),Cn=Lt.state,Yi=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",hi,".buffer){",Tr,".enableVertexAttribArray(",Ur,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",hi,".type!==",Pn,"||",hi,".size!==",Nn,"||",Xa.map(function(Zo){return hi+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Ir,",",Yi,".buffer);",Tr,".vertexAttribPointer(",[Ur,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",hi,".type=",Pn,";",hi,".size=",Nn,";",Xa.map(function(Zo){return hi+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",hi,".divisor!==",xa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[Ur,xa],");",hi,".divisor=",xa,";}")}}function Tn(){ht("if(",hi,".buffer){",Tr,".disableVertexAttribArray(",Ur,");",hi,".buffer=null;","}if(",ta.map(function(Pn,Nn){return hi+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Ur,",",yn,");",ta.map(function(Pn,Nn){return hi+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append($e,ht)}else{if(!sr(js))return;var Ur=$e.scopeAttrib(Jt);Tr={},Object.keys(new xi).forEach(function(hi){Tr[hi]=ht.def(Ur,".",hi)})}er($e.link(Ot),ur(Ot.info.type),Tr)})}function R($e,ht,bt,Kt,sr,Qt){for(var ur=$e.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Ur,hi,Cn,Yi],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Ur,Cn,Xa,hi+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Ur,hi,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(bt("if(",Yi,">0){"),Tn(),bt("}else if(",Yi,"<0){"),Pn(),bt("}")):Tn():Pn()}function O($e,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),$e(Qt,ur,bt,Kt),Qt.compile().body}function K($e,ht,bt,Kt){bf($e,ht),bt.useVAO?bt.drawVAO?ht($e.shared.vao,".setVAO(",bt.drawVAO.append($e,ht),");"):ht($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(ht($e.shared.vao,".setVAO(null);"),Y($e,ht,bt,Kt.attributes,function(){return!0})),R($e,ht,bt,Kt.uniforms,function(){return!0},!1),J($e,ht,ht,bt)}function _e($e,ht){var bt=$e.proc("draw",1);bf($e,bt),Gu($e,bt,ht.context),cf($e,bt,ht.framebuffer),mf($e,bt,ht),Fl($e,bt,ht.state),cu($e,bt,ht,!1,!0);var Kt=ht.shader.progVar.append($e,bt);if(bt($e.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var sr=$e.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt($e.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",$e.link(function(er){return O(K,$e,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function ne($e,ht,bt,Kt){$e.batchId="a1",bf($e,ht);function sr(){return!0}Y($e,ht,bt,Kt.attributes,sr),R($e,ht,bt,Kt.uniforms,sr,!1),J($e,ht,ht,bt)}function Ce($e,ht,bt,Kt){bf($e,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();$e.shared.props=Ot,$e.batchId=Qt;var Jt=$e.scope(),Lt=$e.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Ur(Xa){return!Tr(Xa)}if(bt.needsContext&&Gu($e,Lt,bt.context),bt.needsFramebuffer&&cf($e,Lt,bt.framebuffer),Fl($e,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu($e,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Lt),");"):Jt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Jt),");"):Jt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Jt($e.shared.vao,".setVAO(null);"),Y($e,Jt,bt,Kt.attributes,Ur),Y($e,Lt,bt,Kt.attributes,Tr)),R($e,Jt,bt,Kt.uniforms,Ur,!1),R($e,Lt,bt,Kt.uniforms,Tr,!0),J($e,Jt,Lt,bt);else{var hi=$e.global.def("{}"),Cn=bt.shader.progVar.append($e,Lt),Yi=Lt.def(Cn,".id"),yn=Lt.def(hi,"[",Yi,"]");Lt($e.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",hi,"[",Yi,"]=",$e.link(function(Xa){return O(ne,$e,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ye($e,ht){var bt=$e.proc("batch",2);$e.batchId="0",bf($e,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(hi){Kt=Kt||ht.context[hi].propDep}),Kt||(Gu($e,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||cf($e,bt,Qt)):cf($e,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(hi){return hi.contextDep&&Kt||hi.propDep}mf($e,bt,ht),Fl($e,bt,ht.state,function(hi){return!er(hi)}),(!ht.profile||!er(ht.profile))&&cu($e,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Ce($e,bt,ht,null);else{var Jt=Ot.append($e,bt);if(bt($e.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Ce($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var Lt=$e.global.def("{}"),Tr=bt.def(Jt,".id"),Ur=bt.def(Lt,"[",Tr,"]");bt($e.cond(Ur).then(Ur,".call(this,a0,a1);").else(Ur,"=",Lt,"[",Tr,"]=",$e.link(function(hi){return O(Ce,$e,ht,hi,2)}),"(",Jt,");",Ur,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function kt($e,ht){var bt=$e.proc("scope",3);$e.batchId="a2";var Kt=$e.shared,sr=Kt.current;if(Gu($e,bt,ht.context),ht.framebuffer&&ht.framebuffer.append($e,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append($e,bt);en(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set($e.next[er],"["+Tr+"]",Lt):bt.set($e.next[er],"["+Tr+"]",$e.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,$e.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu($e,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,$e.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append($e,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:$e.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+$e.link(Nt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append($e,bt),Jt=$e.scopeAttrib(er);Object.keys(new xi).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append($e,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",$e.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,$e.link(Jt,{stable:!0}))}}ur(rt),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function dr($e){if(!(typeof $e!="object"||en($e))){for(var ht=Object.keys($e),bt=0;bt=0;--O){var K=_s[O];K&&K(qi,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Bu(){al&&(d.cancel(pl),al=null)}function vf(O){O.preventDefault(),yi=!0,Bu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),yi=!1,ci.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 Ef(){_s.length=0,Bu(),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(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return $e.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return $e.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=tf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Cf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:O.framebuffer.faces[K]},O),xf);else gf(O,xf);else xf(null,O)}function Gu(O){_s.push(O);function K(){var _e=pf(_s,O);function ne(){var Ce=pf(_s,ne);_s[Ce]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Bu()}_s[_e]=ne}return Dl(),{cancel:K}}function cf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,qi.viewportWidth=qi.framebufferWidth=qi.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,qi.viewportHeight=qi.framebufferHeight=qi.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function mf(){qi.tick+=1,qi.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(O,K){var _e;switch(O){case"frame":return Gu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Cf,prop:h.define.bind(null,lf),context:h.define.bind(null,hf),this:h.define.bind(null,Mf),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Zi.create(O,!1)},texture:Ji.create2D,cube:Ji.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Gu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:Ef,_gl:ar,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:on,getCachedCode:Y,preloadCachedCode:R});return Nt.onDone(null,J),J}return fc})});var L8=Te((Kxr,ZNe)=>{"use strict";var zVt=jX(),IVt=XNe();ZNe.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||zVt({container:i._glcontainer.node()}),a}});var LK=Te((CK,QNe)=>{"use strict";var YNe=CY(),KNe=oK(),RVt=Bqe(),JNe=jNe(),kK=ei(),DVt=Cm().selectMode,FVt=L8(),BVt=lc(),OVt=DU(),qVt=SY().styleTextSelection,$Ne={};function NVt(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 CK=QNe.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=FVt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],$Ne);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(OVt(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=RVt(h)),a.line2d===!0&&(a.line2d=KNe(h)),a.scatter2d===!0&&(a.scatter2d=YNe(h)),a.fill2d===!0&&(a.fill2d=KNe(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=kK.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],ge=ae.trace,ze=ae.t,Le=a.lineOptions[H],de,te,ke=[];ge._ownfill&&ke.push(H),ge._nexttrace&&ke.push(H+1),ke.length&&(a.fillOrder[H]=ke);var Ee=[],Se=Le&&Le.positions||ze.positions,Ge,De;if(ge.fill==="tozeroy"){for(Ge=0;GeGe&&isNaN(Se[De+1]);)De-=2;Se[Ge+1]!==0&&(Ee=[Se[Ge],0]),Ee=Ee.concat(Se.slice(Ge,De+2)),Se[De+1]!==0&&(Ee=Ee.concat([Se[De],0]))}else if(ge.fill==="tozerox"){for(Ge=0;GeGe&&isNaN(Se[De]);)De-=2;Se[Ge]!==0&&(Ee=[0,Se[Ge+1]]),Ee=Ee.concat(Se.slice(Ge,De+2)),Se[De]!==0&&(Ee=Ee.concat([0,Se[De+1]]))}else if(ge.fill==="toself"||ge.fill==="tonext"){for(Ee=[],de=0,N.splitNull=!0,te=0;te-1;for(let[N]of n)if(N){var T=N.trace,L=N.t,x=L.index,k=T._length,M=L.x,m=L.y;if(T.selectedpoints||C||E){if(C||(C=!0),T.selectedpoints){var P=a.selectBatch[x]=kK.selIndices2selPoints(T),A={};for(l=0;l{e7e.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r;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,_=t.uniforms,b=t.framebuffer,v=t.extensions,C=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,x=s.blend_equation,k=u.blend_equation,M=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,F=s.colorMask,B=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,ge=s.stencil_opBack,ze=u.stencil_opBack,Le=s.scissor_box,de=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Se={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},Ge={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},De={add:32774,subtract:32778,"reverse subtract":32779},xe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ne={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,Qe=u.blend_color,gt=s.blend_equation,qt=u.blend_equation,at=s.blend_func,Ke=u.blend_func,Ct=s.depth_range,wt=u.depth_range,Mt=s.colorMask,Bt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,ot=u.sample_coverage,At=s.stencil_func,vt=u.stencil_func,Je=s.stencil_opFront,He=u.stencil_opFront,nt=s.stencil_opBack,tt=u.stencil_opBack,It=s.scissor_box,Yt=u.scissor_box,cr=s.viewport,_r=u.viewport,{poll:function(){var yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni;u.dirty=!1,Ut=s.dither,Re=s.blend_enable,be=s.depth_enable,Oe=s.cull_enable,Ie=s.polygonOffset_enable,Fe=s.sample_alpha,ft=s.sample_enable,ye=s.stencil_enable,fe=s.scissor_enable,pe=s.depth_func,dt=u.depth_func,Pt=s.depth_mask,zt=u.depth_mask,rr=s.cull_face,Gr=u.cull_face,Br=s.frontFace,Er=u.frontFace,Rr=s.lineWidth,pi=u.lineWidth,Di=s.stencil_mask,ni=u.stencil_mask,yr=b.next,yr!==b.cur&&(yr?i.bindFramebuffer(36160,yr.framebuffer):i.bindFramebuffer(36160,null),b.cur=yr),Ut!==u.dither&&(Ut?i.enable(3024):i.disable(3024),u.dither=Ut),Re!==u.blend_enable&&(Re?i.enable(3042):i.disable(3042),u.blend_enable=Re),be!==u.depth_enable&&(be?i.enable(2929):i.disable(2929),u.depth_enable=be),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Ie!==u.polygonOffset_enable&&(Ie?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Ie),Fe!==u.sample_alpha&&(Fe?i.enable(32926):i.disable(32926),u.sample_alpha=Fe),ft!==u.sample_enable&&(ft?i.enable(32928):i.disable(32928),u.sample_enable=ft),ye!==u.stencil_enable&&(ye?i.enable(2960):i.disable(2960),u.stencil_enable=ye),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(je[0]!==Qe[0]||je[1]!==Qe[1]||je[2]!==Qe[2]||je[3]!==Qe[3])&&(i.blendColor(je[0],je[1],je[2],je[3]),Qe[0]=je[0],Qe[1]=je[1],Qe[2]=je[2],Qe[3]=je[3]),(gt[0]!==qt[0]||gt[1]!==qt[1])&&(i.blendEquationSeparate(gt[0],gt[1]),qt[0]=gt[0],qt[1]=gt[1]),(at[0]!==Ke[0]||at[1]!==Ke[1]||at[2]!==Ke[2]||at[3]!==Ke[3])&&(i.blendFuncSeparate(at[0],at[1],at[2],at[3]),Ke[0]=at[0],Ke[1]=at[1],Ke[2]=at[2],Ke[3]=at[3]),pe!==dt&&(i.depthFunc(pe),u.depth_func=pe),(Ct[0]!==wt[0]||Ct[1]!==wt[1])&&(i.depthRange(Ct[0],Ct[1]),wt[0]=Ct[0],wt[1]=Ct[1]),Pt!==zt&&(i.depthMask(Pt),u.depth_mask=Pt),(Mt[0]!==Bt[0]||Mt[1]!==Bt[1]||Mt[2]!==Bt[2]||Mt[3]!==Bt[3])&&(i.colorMask(Mt[0],Mt[1],Mt[2],Mt[3]),Bt[0]=Mt[0],Bt[1]=Mt[1],Bt[2]=Mt[2],Bt[3]=Mt[3]),rr!==Gr&&(i.cullFace(rr),u.cull_face=rr),Br!==Er&&(i.frontFace(Br),u.frontFace=Br),Rr!==pi&&(i.lineWidth(Rr),u.lineWidth=Rr),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==ot[0]||Ae[1]!==ot[1])&&(i.sampleCoverage(Ae[0],Ae[1]),ot[0]=Ae[0],ot[1]=Ae[1]),Di!==ni&&(i.stencilMask(Di),u.stencil_mask=Di),(At[0]!==vt[0]||At[1]!==vt[1]||At[2]!==vt[2])&&(i.stencilFunc(At[0],At[1],At[2]),vt[0]=At[0],vt[1]=At[1],vt[2]=At[2]),(Je[0]!==He[0]||Je[1]!==He[1]||Je[2]!==He[2]||Je[3]!==He[3])&&(i.stencilOpSeparate(Je[0],Je[1],Je[2],Je[3]),He[0]=Je[0],He[1]=Je[1],He[2]=Je[2],He[3]=Je[3]),(nt[0]!==tt[0]||nt[1]!==tt[1]||nt[2]!==tt[2]||nt[3]!==tt[3])&&(i.stencilOpSeparate(nt[0],nt[1],nt[2],nt[3]),tt[0]=nt[0],tt[1]=nt[1],tt[2]=nt[2],tt[3]=nt[3]),(It[0]!==Yt[0]||It[1]!==Yt[1]||It[2]!==Yt[2]||It[3]!==Yt[3])&&(i.scissor(It[0],It[1],It[2],It[3]),Yt[0]=It[0],Yt[1]=It[1],Yt[2]=It[2],Yt[3]=It[3]),(cr[0]!==_r[0]||cr[1]!==_r[1]||cr[2]!==_r[2]||cr[3]!==_r[3])&&(i.viewport(cr[0],cr[1],cr[2],cr[3]),_r[0]=cr[0],_r[1]=cr[1],_r[2]=cr[2],_r[3]=cr[3])},refresh:function(){var yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi;u.dirty=!1,be=s.dither,Oe=s.blend_enable,Ie=s.depth_enable,Fe=s.cull_enable,ft=s.polygonOffset_enable,ye=s.sample_alpha,fe=s.sample_enable,pe=s.stencil_enable,dt=s.scissor_enable,Pt=s.depth_func,zt=u.depth_func,rr=s.depth_mask,Gr=u.depth_mask,Br=s.cull_face,Er=u.cull_face,Rr=s.frontFace,pi=u.frontFace,Di=s.lineWidth,ni=u.lineWidth,$i=s.stencil_mask,Qi=u.stencil_mask,yr=b.next,yr?i.bindFramebuffer(36160,yr.framebuffer):i.bindFramebuffer(36160,null),b.cur=yr,Ut=d,Re=0;for(var si=0;si{t7e.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,F=d.blend_equation,B=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,ge=d.sample_coverage,ze=h.stencil_func,Le=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Se=h.scissor_box,Ge=d.scissor_box,De=h.viewport,xe=d.viewport,Ne={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},Qe={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},qt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},at={cw:2304,ccw:2305},Ke={},Ct={},{draw:function(wt){var Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re;if(Mt=x.angle_instanced_arrays,Bt=wt.framebuffer,Zt=L.getFramebuffer(Bt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,ot=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii;be=h.dither,be!==d.dither&&(be?l.enable(3024):l.disable(3024),d.dither=be),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Ie=m[0],Fe=m[1],ft=m[2],ye=m[3],(Ie!==P[0]||Fe!==P[1]||ft!==P[2]||ye!==P[3])&&(l.blendColor(Ie,Fe,ft,ye),P[0]=Ie,P[1]=Fe,P[2]=ft,P[3]=ye),fe=A[0],pe=A[1],(fe!==F[0]||pe!==F[1])&&(l.blendEquationSeparate(fe,pe),F[0]=fe,F[1]=pe),dt=B[0],Pt=B[1],zt=B[2],rr=B[3],(dt!==U[0]||Pt!==U[1]||zt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(dt,Pt,zt,rr),U[0]=dt,U[1]=Pt,U[2]=zt,U[3]=rr),Gr=h.depth_enable,Gr!==d.depth_enable&&(Gr?l.enable(2929):l.disable(2929),d.depth_enable=Gr),Br=h.depth_func,Br!==d.depth_func&&(l.depthFunc(Br),d.depth_func=Br),Er=G[0],Rr=G[1],(Er!==j[0]||Rr!==j[1])&&(l.depthRange(Er,Rr),j[0]=Er,j[1]=Rr),pi=h.depth_mask,pi!==d.depth_mask&&(l.depthMask(pi),d.depth_mask=pi),Di=W[0],ni=W[1],$i=W[2],Qi=W[3],(Di!==N[0]||ni!==N[1]||$i!==N[2]||Qi!==N[3])&&(l.colorMask(Di,ni,$i,Qi),N[0]=Di,N[1]=ni,N[2]=$i,N[3]=Qi),si=h.cull_enable,si!==d.cull_enable&&(si?l.enable(2884):l.disable(2884),d.cull_enable=si),Ti=h.cull_face,Ti!==d.cull_face&&(l.cullFace(Ti),d.cull_face=Ti),Ni=h.frontFace,Ni!==d.frontFace&&(l.frontFace(Ni),d.frontFace=Ni),Rt=h.lineWidth,Rt!==d.lineWidth&&(l.lineWidth(Rt),d.lineWidth=Rt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=yt),Gt=H[0],Wt=H[1],(Gt!==re[0]||Wt!==re[1])&&(l.polygonOffset(Gt,Wt),re[0]=Gt,re[1]=Wt),xr=h.sample_alpha,xr!==d.sample_alpha&&(xr?l.enable(32926):l.disable(32926),d.sample_alpha=xr),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Nr=ae[0],Or=ae[1],(Nr!==ge[0]||Or!==ge[1])&&(l.sampleCoverage(Nr,Or),ge[0]=Nr,ge[1]=Or),Hr=h.stencil_enable,Hr!==d.stencil_enable&&(Hr?l.enable(2960):l.disable(2960),d.stencil_enable=Hr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),gi=ze[0],ki=ze[1],Vi=ze[2],(gi!==Le[0]||ki!==Le[1]||Vi!==Le[2])&&(l.stencilFunc(gi,ki,Vi),Le[0]=gi,Le[1]=ki,Le[2]=Vi),ti=de[0],tn=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||tn!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,tn,Yr,oi),te[0]=ti,te[1]=tn,te[2]=Yr,te[3]=oi),Fi=ke[0],an=ke[1],nn=ke[2],Ri=ke[3],(Fi!==Ee[0]||an!==Ee[1]||nn!==Ee[2]||Ri!==Ee[3])&&(l.stencilOpSeparate(Fi,an,nn,Ri),Ee[0]=Fi,Ee[1]=an,Ee[2]=nn,Ee[3]=Ri),Ii=h.scissor_enable,Ii!==d.scissor_enable&&(Ii?l.enable(3089):l.disable(3089),d.scissor_enable=Ii)}At=f.framebufferWidth,vt=f.framebufferHeight,Je=f.viewportWidth,f.viewportWidth=At,He=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,At,vt),xe[0]=0,xe[1]=0,xe[2]=At,xe[3]=vt,nt=f.framebufferWidth,tt=f.framebufferHeight,l.scissor(0,0,nt,tt),Ge[0]=0,Ge[1]=0,Ge[2]=nt,Ge[3]=tt,It=d.profile,It&&(Yt=performance.now(),r.count++),cr=v.frag,_r=v.vert,yr=v.program(_r,cr),l.useProgram(yr.program),E.setVAO(null),Ut=yr.id,Re=Ke[Ut],Re?Re.call(this,wt):(Re=Ke[Ut]=n(yr),Re.call(this,wt)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=ot,f.viewportWidth=Je,f.viewportHeight=He,It&&(r.cpuTime+=performance.now()-Yt)},scope:function(wt,Mt,Bt){var Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe;Zt=wt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,At=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,Je=f.framebufferHeight,He=f.viewportWidth,f.viewportWidth=vt,nt=f.viewportHeight,f.viewportHeight=Je,tt=De[0],De[0]=i,It=De[1],De[1]=a,Yt=De[2],De[2]=vt,cr=De[3],De[3]=Je,_r=f.framebufferWidth,yr=f.framebufferHeight,Ut=Se[0],Se[0]=o,Re=Se[1],Se[1]=s,be=Se[2],Se[2]=_r,Oe=Se[3],Se[3]=yr,Ie=d.profile,Ie&&(Fe=performance.now(),r.count++),d.dirty=!0,Mt(f,wt,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=At,f.viewportWidth=He,f.viewportHeight=nt,De[0]=tt,De[1]=It,De[2]=Yt,De[3]=cr,Se[0]=Ut,Se[1]=Re,Se[2]=be,Se[3]=Oe,Ie&&(r.cpuTime+=performance.now()-Fe),d.dirty=!0},batch:function(wt,Mt){var Bt,Zt,Et,Ae,ot,At,vt,Je;if(Bt=x.angle_instanced_arrays,d.dirty){var He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki;He=h.dither,He!==d.dither&&(He?l.enable(3024):l.disable(3024),d.dither=He),nt=h.blend_enable,nt!==d.blend_enable&&(nt?l.enable(3042):l.disable(3042),d.blend_enable=nt),tt=m[0],It=m[1],Yt=m[2],cr=m[3],(tt!==P[0]||It!==P[1]||Yt!==P[2]||cr!==P[3])&&(l.blendColor(tt,It,Yt,cr),P[0]=tt,P[1]=It,P[2]=Yt,P[3]=cr),_r=A[0],yr=A[1],(_r!==F[0]||yr!==F[1])&&(l.blendEquationSeparate(_r,yr),F[0]=_r,F[1]=yr),Ut=B[0],Re=B[1],be=B[2],Oe=B[3],(Ut!==U[0]||Re!==U[1]||be!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ut,Re,be,Oe),U[0]=Ut,U[1]=Re,U[2]=be,U[3]=Oe),Ie=h.depth_enable,Ie!==d.depth_enable&&(Ie?l.enable(2929):l.disable(2929),d.depth_enable=Ie),Fe=h.depth_func,Fe!==d.depth_func&&(l.depthFunc(Fe),d.depth_func=Fe),ft=G[0],ye=G[1],(ft!==j[0]||ye!==j[1])&&(l.depthRange(ft,ye),j[0]=ft,j[1]=ye),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),pe=W[0],dt=W[1],Pt=W[2],zt=W[3],(pe!==N[0]||dt!==N[1]||Pt!==N[2]||zt!==N[3])&&(l.colorMask(pe,dt,Pt,zt),N[0]=pe,N[1]=dt,N[2]=Pt,N[3]=zt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Gr=h.cull_face,Gr!==d.cull_face&&(l.cullFace(Gr),d.cull_face=Gr),Br=h.frontFace,Br!==d.frontFace&&(l.frontFace(Br),d.frontFace=Br),Er=h.lineWidth,Er!==d.lineWidth&&(l.lineWidth(Er),d.lineWidth=Er),Rr=h.polygonOffset_enable,Rr!==d.polygonOffset_enable&&(Rr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Rr),pi=H[0],Di=H[1],(pi!==re[0]||Di!==re[1])&&(l.polygonOffset(pi,Di),re[0]=pi,re[1]=Di),ni=h.sample_alpha,ni!==d.sample_alpha&&(ni?l.enable(32926):l.disable(32926),d.sample_alpha=ni),$i=h.sample_enable,$i!==d.sample_enable&&($i?l.enable(32928):l.disable(32928),d.sample_enable=$i),Qi=ae[0],si=ae[1],(Qi!==ge[0]||si!==ge[1])&&(l.sampleCoverage(Qi,si),ge[0]=Qi,ge[1]=si),Ti=h.stencil_enable,Ti!==d.stencil_enable&&(Ti?l.enable(2960):l.disable(2960),d.stencil_enable=Ti),Ni=h.stencil_mask,Ni!==d.stencil_mask&&(l.stencilMask(Ni),d.stencil_mask=Ni),Rt=ze[0],yt=ze[1],Gt=ze[2],(Rt!==Le[0]||yt!==Le[1]||Gt!==Le[2])&&(l.stencilFunc(Rt,yt,Gt),Le[0]=Rt,Le[1]=yt,Le[2]=Gt),Wt=de[0],xr=de[1],Lr=de[2],Nr=de[3],(Wt!==te[0]||xr!==te[1]||Lr!==te[2]||Nr!==te[3])&&(l.stencilOpSeparate(Wt,xr,Lr,Nr),te[0]=Wt,te[1]=xr,te[2]=Lr,te[3]=Nr),Or=ke[0],Hr=ke[1],jr=ke[2],gi=ke[3],(Or!==Ee[0]||Hr!==Ee[1]||jr!==Ee[2]||gi!==Ee[3])&&(l.stencilOpSeparate(Or,Hr,jr,gi),Ee[0]=Or,Ee[1]=Hr,Ee[2]=jr,Ee[3]=gi),ki=h.scissor_enable,ki!==d.scissor_enable&&(ki?l.enable(3089):l.disable(3089),d.scissor_enable=ki)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=Mt),Ae=v.frag,ot=v.vert,At=v.program(ot,Ae),l.useProgram(At.program),E.setVAO(null),vt=At.id,Je=Ct[vt],Je?Je.call(this,wt,Mt):(Je=Ct[vt]=u(At),Je.call(this,wt,Mt)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var I8=Te((Qxr,r7e)=>{r7e.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt;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,_=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,F=l.depth_range,B=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,ge=l.stencil_opFront,ze=u.stencil_opBack,Le=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.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},Ge={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},De={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},xe={add:32774,subtract:32778,"reverse subtract":32779},Ne={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},Qe={},gt={},{draw:function(qt){var at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae;if(at=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 ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),At=u.blend_enable,At!==l.blend_enable&&(At?a.enable(3042):a.disable(3042),l.blend_enable=At),vt=L[0],Je=L[1],He=L[2],nt=L[3],(vt!==x[0]||Je!==x[1]||He!==x[2]||nt!==x[3])&&(a.blendColor(vt,Je,He,nt),x[0]=vt,x[1]=Je,x[2]=He,x[3]=nt),tt=k[0],It=k[1],(tt!==M[0]||It!==M[1])&&(a.blendEquationSeparate(tt,It),M[0]=tt,M[1]=It),Yt=m[0],cr=m[1],_r=m[2],yr=m[3],(Yt!==P[0]||cr!==P[1]||_r!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Yt,cr,_r,yr),P[0]=Yt,P[1]=cr,P[2]=_r,P[3]=yr),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),be=A[0],Oe=A[1],(be!==F[0]||Oe!==F[1])&&(a.depthRange(be,Oe),F[0]=be,F[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),Fe=B[0],ft=B[1],ye=B[2],fe=B[3],(Fe!==U[0]||ft!==U[1]||ye!==U[2]||fe!==U[3])&&(a.colorMask(Fe,ft,ye,fe),U[0]=Fe,U[1]=ft,U[2]=ye,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),zt=u.lineWidth,zt!==l.lineWidth&&(a.lineWidth(zt),l.lineWidth=zt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Gr=G[0],Br=G[1],(Gr!==j[0]||Br!==j[1])&&(a.polygonOffset(Gr,Br),j[0]=Gr,j[1]=Br),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Rr=u.sample_enable,Rr!==l.sample_enable&&(Rr?a.enable(32928):a.disable(32928),l.sample_enable=Rr),pi=W[0],Di=W[1],(pi!==N[0]||Di!==N[1])&&(a.sampleCoverage(pi,Di),N[0]=pi,N[1]=Di),ni=u.stencil_enable,ni!==l.stencil_enable&&(ni?a.enable(2960):a.disable(2960),l.stencil_enable=ni),$i=u.stencil_mask,$i!==l.stencil_mask&&(a.stencilMask($i),l.stencil_mask=$i),Qi=H[0],si=H[1],Ti=H[2],(Qi!==re[0]||si!==re[1]||Ti!==re[2])&&(a.stencilFunc(Qi,si,Ti),re[0]=Qi,re[1]=si,re[2]=Ti),Ni=ae[0],Rt=ae[1],yt=ae[2],Gt=ae[3],(Ni!==ge[0]||Rt!==ge[1]||yt!==ge[2]||Gt!==ge[3])&&(a.stencilOpSeparate(Ni,Rt,yt,Gt),ge[0]=Ni,ge[1]=Rt,ge[2]=yt,ge[3]=Gt),Wt=ze[0],xr=ze[1],Lr=ze[2],Nr=ze[3],(Wt!==Le[0]||xr!==Le[1]||Lr!==Le[2]||Nr!==Le[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Nr),Le[0]=Wt,Le[1]=xr,Le[2]=Lr,Le[3]=Nr),Or=u.scissor_enable,Or!==l.scissor_enable&&(Or?a.enable(3089):a.disable(3089),l.scissor_enable=Or),Hr=de[0],jr=de[1],gi=de[2],ki=de[3],(Hr!==te[0]||jr!==te[1]||gi!==te[2]||ki!==te[3])&&(a.scissor(Hr,jr,gi,ki),te[0]=Hr,te[1]=jr,te[2]=gi,te[3]=ki),Vi=ke[0],ti=ke[1],tn=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||tn!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,tn,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=tn,Ee[3]=Yr),l.dirty=!1}Ct=l.profile,Ct&&(wt=performance.now(),r.count++),Mt=d.frag,Bt=d.vert,Zt=d.program(Bt,Mt),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=Qe[Et],Ae?Ae.call(this,qt):(Ae=Qe[Et]=n(Zt),Ae.call(this,qt)),_.setVAO(null),Ct&&(r.cpuTime+=performance.now()-wt)},scope:function(qt,at,Ke){var Ct,wt;Ct=l.profile,Ct&&(wt=performance.now(),r.count++),at(o,qt,Ke),Ct&&(r.cpuTime+=performance.now()-wt)},batch:function(qt,at){var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot;if(Ke=C.angle_instanced_arrays,Ct=v.next,Ct!==v.cur&&(Ct?a.bindFramebuffer(36160,Ct.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ct),l.dirty){var At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi;At=u.dither,At!==l.dither&&(At?a.enable(3024):a.disable(3024),l.dither=At),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),Je=L[0],He=L[1],nt=L[2],tt=L[3],(Je!==x[0]||He!==x[1]||nt!==x[2]||tt!==x[3])&&(a.blendColor(Je,He,nt,tt),x[0]=Je,x[1]=He,x[2]=nt,x[3]=tt),It=k[0],Yt=k[1],(It!==M[0]||Yt!==M[1])&&(a.blendEquationSeparate(It,Yt),M[0]=It,M[1]=Yt),cr=m[0],_r=m[1],yr=m[2],Ut=m[3],(cr!==P[0]||_r!==P[1]||yr!==P[2]||Ut!==P[3])&&(a.blendFuncSeparate(cr,_r,yr,Ut),P[0]=cr,P[1]=_r,P[2]=yr,P[3]=Ut),Re=u.depth_enable,Re!==l.depth_enable&&(Re?a.enable(2929):a.disable(2929),l.depth_enable=Re),be=u.depth_func,be!==l.depth_func&&(a.depthFunc(be),l.depth_func=be),Oe=A[0],Ie=A[1],(Oe!==F[0]||Ie!==F[1])&&(a.depthRange(Oe,Ie),F[0]=Oe,F[1]=Ie),Fe=u.depth_mask,Fe!==l.depth_mask&&(a.depthMask(Fe),l.depth_mask=Fe),ft=B[0],ye=B[1],fe=B[2],pe=B[3],(ft!==U[0]||ye!==U[1]||fe!==U[2]||pe!==U[3])&&(a.colorMask(ft,ye,fe,pe),U[0]=ft,U[1]=ye,U[2]=fe,U[3]=pe),dt=u.cull_enable,dt!==l.cull_enable&&(dt?a.enable(2884):a.disable(2884),l.cull_enable=dt),Pt=u.cull_face,Pt!==l.cull_face&&(a.cullFace(Pt),l.cull_face=Pt),zt=u.frontFace,zt!==l.frontFace&&(a.frontFace(zt),l.frontFace=zt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Gr=u.polygonOffset_enable,Gr!==l.polygonOffset_enable&&(Gr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Gr),Br=G[0],Er=G[1],(Br!==j[0]||Er!==j[1])&&(a.polygonOffset(Br,Er),j[0]=Br,j[1]=Er),Rr=u.sample_alpha,Rr!==l.sample_alpha&&(Rr?a.enable(32926):a.disable(32926),l.sample_alpha=Rr),pi=u.sample_enable,pi!==l.sample_enable&&(pi?a.enable(32928):a.disable(32928),l.sample_enable=pi),Di=W[0],ni=W[1],(Di!==N[0]||ni!==N[1])&&(a.sampleCoverage(Di,ni),N[0]=Di,N[1]=ni),$i=u.stencil_enable,$i!==l.stencil_enable&&($i?a.enable(2960):a.disable(2960),l.stencil_enable=$i),Qi=u.stencil_mask,Qi!==l.stencil_mask&&(a.stencilMask(Qi),l.stencil_mask=Qi),si=H[0],Ti=H[1],Ni=H[2],(si!==re[0]||Ti!==re[1]||Ni!==re[2])&&(a.stencilFunc(si,Ti,Ni),re[0]=si,re[1]=Ti,re[2]=Ni),Rt=ae[0],yt=ae[1],Gt=ae[2],Wt=ae[3],(Rt!==ge[0]||yt!==ge[1]||Gt!==ge[2]||Wt!==ge[3])&&(a.stencilOpSeparate(Rt,yt,Gt,Wt),ge[0]=Rt,ge[1]=yt,ge[2]=Gt,ge[3]=Wt),xr=ze[0],Lr=ze[1],Nr=ze[2],Or=ze[3],(xr!==Le[0]||Lr!==Le[1]||Nr!==Le[2]||Or!==Le[3])&&(a.stencilOpSeparate(xr,Lr,Nr,Or),Le[0]=xr,Le[1]=Lr,Le[2]=Nr,Le[3]=Or),Hr=u.scissor_enable,Hr!==l.scissor_enable&&(Hr?a.enable(3089):a.disable(3089),l.scissor_enable=Hr),jr=de[0],gi=de[1],ki=de[2],Vi=de[3],(jr!==te[0]||gi!==te[1]||ki!==te[2]||Vi!==te[3])&&(a.scissor(jr,gi,ki,Vi),te[0]=jr,te[1]=gi,te[2]=ki,te[3]=Vi),ti=ke[0],tn=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||tn!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,tn,Yr,oi),Ee[0]=ti,Ee[1]=tn,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}wt=l.profile,wt&&(Mt=performance.now(),r.count+=at),Bt=d.frag,Zt=d.vert,Et=d.program(Zt,Bt),a.useProgram(Et.program),_.setVAO(null),Ae=Et.id,ot=gt[Ae],ot?ot.call(this,qt,at):(ot=gt[Ae]=i(Et),ot.call(this,qt,at)),_.setVAO(null),wt&&(r.cpuTime+=performance.now()-Mt)}}}});var R8=Te((ebr,i7e)=>{i7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt){"use strict";var tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn;return tt=t.gl,It=t.context,Yt=t.strings,cr=t.next,_r=t.current,yr=t.draw,Ut=t.elements,Re=t.buffer,be=t.shader,Oe=t.attributes,Ie=t.vao,Fe=t.uniforms,ft=t.framebuffer,ye=t.extensions,fe=t.timer,pe=t.isBufferArgs,dt=cr.blend_color,Pt=_r.blend_color,zt=cr.blend_equation,rr=_r.blend_equation,Gr=cr.blend_func,Br=_r.blend_func,Er=cr.depth_range,Rr=_r.depth_range,pi=cr.colorMask,Di=_r.colorMask,ni=cr.polygonOffset_offset,$i=_r.polygonOffset_offset,Qi=cr.sample_coverage,si=_r.sample_coverage,Ti=cr.stencil_func,Ni=_r.stencil_func,Rt=cr.stencil_opFront,yt=_r.stencil_opFront,Gt=cr.stencil_opBack,Wt=_r.stencil_opBack,xr=cr.scissor_box,Lr=_r.scissor_box,Nr=cr.viewport,Or=_r.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},jr={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},gi={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},ki={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},tn={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,an={},an.stride=8,an.offset=16,an.divisor=1,nn={},nn.stride=4,nn.offset=0,nn.divisor=1,{draw:function(Ri){var Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ii=ye.angle_instanced_arrays,xn=ft.next,xn!==ft.cur&&(xn?tt.bindFramebuffer(36160,xn.framebuffer):tt.bindFramebuffer(36160,null),ft.cur=xn),_r.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,Bs,Tt,Vt,wr,mr,Fr,_i;os=cr.dither,os!==_r.dither&&(os?tt.enable(3024):tt.disable(3024),_r.dither=os),_l=cr.depth_func,_l!==_r.depth_func&&(tt.depthFunc(_l),_r.depth_func=_l),Ss=Er[0],po=Er[1],(Ss!==Rr[0]||po!==Rr[1])&&(tt.depthRange(Ss,po),Rr[0]=Ss,Rr[1]=po),go=cr.depth_mask,go!==_r.depth_mask&&(tt.depthMask(go),_r.depth_mask=go),ss=pi[0],qo=pi[1],zo=pi[2],io=pi[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&(tt.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=cr.cull_enable,Io!==_r.cull_enable&&(Io?tt.enable(2884):tt.disable(2884),_r.cull_enable=Io),Da=cr.cull_face,Da!==_r.cull_face&&(tt.cullFace(Da),_r.cull_face=Da),vs=cr.frontFace,vs!==_r.frontFace&&(tt.frontFace(vs),_r.frontFace=vs),fs=cr.lineWidth,fs!==_r.lineWidth&&(tt.lineWidth(fs),_r.lineWidth=fs),cl=cr.polygonOffset_enable,cl!==_r.polygonOffset_enable&&(cl?tt.enable(32823):tt.disable(32823),_r.polygonOffset_enable=cl),el=ni[0],Hs=ni[1],(el!==$i[0]||Hs!==$i[1])&&(tt.polygonOffset(el,Hs),$i[0]=el,$i[1]=Hs),Ro=cr.sample_alpha,Ro!==_r.sample_alpha&&(Ro?tt.enable(32926):tt.disable(32926),_r.sample_alpha=Ro),tl=cr.sample_enable,tl!==_r.sample_enable&&(tl?tt.enable(32928):tt.disable(32928),_r.sample_enable=tl),Fs=Qi[0],hl=Qi[1],(Fs!==si[0]||hl!==si[1])&&(tt.sampleCoverage(Fs,hl),si[0]=Fs,si[1]=hl),Fa=cr.stencil_mask,Fa!==_r.stencil_mask&&(tt.stencilMask(Fa),_r.stencil_mask=Fa),Ms=Ti[0],jo=Ti[1],Rs=Ti[2],(Ms!==Ni[0]||jo!==Ni[1]||Rs!==Ni[2])&&(tt.stencilFunc(Ms,jo,Rs),Ni[0]=Ms,Ni[1]=jo,Ni[2]=Rs),Is=Rt[0],Bs=Rt[1],Tt=Rt[2],Vt=Rt[3],(Is!==yt[0]||Bs!==yt[1]||Tt!==yt[2]||Vt!==yt[3])&&(tt.stencilOpSeparate(Is,Bs,Tt,Vt),yt[0]=Is,yt[1]=Bs,yt[2]=Tt,yt[3]=Vt),wr=Gt[0],mr=Gt[1],Fr=Gt[2],_i=Gt[3],(wr!==Wt[0]||mr!==Wt[1]||Fr!==Wt[2]||_i!==Wt[3])&&(tt.stencilOpSeparate(wr,mr,Fr,_i),Wt[0]=wr,Wt[1]=mr,Wt[2]=Fr,Wt[3]=_i)}bi=Ri.viewport,Xr=bi.x|0,ct=bi.y|0,tr="width"in bi?bi.width|0:It.framebufferWidth-Xr,pr="height"in bi?bi.height|0:It.framebufferHeight-ct,gr=It.viewportWidth,It.viewportWidth=tr,Zr=It.viewportHeight,It.viewportHeight=pr,tt.viewport(Xr,ct,tr,pr),Or[0]=Xr,Or[1]=ct,Or[2]=tr,Or[3]=pr,tt.blendColor(0,0,0,0),Pt[0]=0,Pt[1]=0,Pt[2]=0,Pt[3]=0,n?tt.enable(3042):tt.disable(3042),_r.blend_enable=n,tt.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,tt.blendFuncSeparate(770,771,773,1),Br[0]=770,Br[1]=771,Br[2]=773,Br[3]=1,Ai=i.call(this,It,Ri,0),Ai?tt.enable(2929):tt.disable(2929),_r.depth_enable=Ai,en=Ri.viewport,ii=en.x|0,Xi=en.y|0,aa="width"in en?en.width|0:It.framebufferWidth-ii,Mn="height"in en?en.height|0:It.framebufferHeight-Xi,tt.scissor(ii,Xi,aa,Mn),Lr[0]=ii,Lr[1]=Xi,Lr[2]=aa,Lr[3]=Mn,a?tt.enable(3089):tt.disable(3089),_r.scissor_enable=a,o?tt.enable(2960):tt.disable(2960),_r.stencil_enable=o,Un=_r.profile,Un&&(Ga=performance.now(),r.count++),tt.useProgram(s.program),ma=ye.angle_instanced_arrays,Ie.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,pe(Yr)?(ka=!0,kn=Re.createStream(34962,Yr),uo=kn.dtype):(kn=Re.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)):(pe(Yr.buffer)?kn=Re.createStream(34962,Yr.buffer):kn=Re.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,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,pe(Fi)?(Co=!0,Sn=Re.createStream(34962,Fi),Ko=Sn.dtype):(Sn=Re.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)):(pe(Fi.buffer)?Sn=Re.createStream(34962,Fi.buffer):Sn=Re.getBuffer(Fi.buffer),Ko="type"in Fi?ti[Fi.type]:Sn.dtype,Ba=!!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!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(tt.bindBuffer(34962,Sn.buffer),tt.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,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,Oa=0,ha=0,pe(oi)?(vo=!0,jn=Re.createStream(34962,oi),qs=jn.dtype):(jn=Re.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)):(pe(oi.buffer)?jn=Re.createStream(34962,oi.buffer):jn=Re.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=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!==Oa)&&(tt.bindBuffer(34962,jn.buffer),tt.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),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,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,pe(an)?(wo=!0,qn=Re.createStream(34962,an),lo=qn.dtype):(qn=Re.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?qn=Re.createStream(34962,an.buffer):qn=Re.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,rn=Oe[Na],Ra===1?(rn.buffer||tt.enableVertexAttribArray(Na),Pa=Eo||2,(rn.type!==lo||rn.size!==Pa||rn.buffer!==qn||rn.normalized!==Ja||rn.offset!==eo||rn.stride!==sa)&&(tt.bindBuffer(34962,qn.buffer),tt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),rn.type=lo,rn.size=Pa,rn.buffer=qn,rn.normalized=Ja,rn.offset=eo,rn.stride=sa),rn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),rn.divisor=es)):(rn.buffer&&(tt.disableVertexAttribArray(Na),rn.buffer=null),(rn.x!==Xn||rn.y!==un||rn.z!==$n||rn.w!==Ka)&&(tt.vertexAttrib4f(Na,Xn,un,$n,Ka),rn.x=Xn,rn.y=un,rn.z=$n,rn.w=Ka)),to=Ri.colorBuffer,nn.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,pe(nn)?(yo=!0,Ca=Re.createStream(34962,nn),Ho=Ca.dtype):(Ca=Re.getBuffer(nn),Ca?Ho=Ca.dtype:"constant"in nn?(Jo=2,typeof nn.constant=="number"?(Ao=nn.constant,Dn=_a=Ws=0):(Ao=nn.constant.length>0?nn.constant[0]:0,Dn=nn.constant.length>1?nn.constant[1]:0,_a=nn.constant.length>2?nn.constant[2]:0,Ws=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?Ca=Re.createStream(34962,nn.buffer):Ca=Re.getBuffer(nn.buffer),Ho="type"in nn?ti[nn.type]:Ca.dtype,Ts=!!nn.normalized,Es=nn.size|0,Wa=nn.offset|0,To=nn.stride|0,ts=nn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||tt.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(tt.bindBuffer(34962,Ca.buffer),tt.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,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)),Bo=p.location,ko=Oe[Bo],ko.buffer||tt.enableVertexAttribArray(Bo),(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(Bo,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(Bo,0),ko.divisor=0),oo=_.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),Ds=Ri.opacity,tt.uniform1f(E.location,Ds),fl=Ri.scale,as=fl[0],Ma=fl[1],tt.uniform2f(T.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),Do=Ri.translate,Lo=Do[0],xs=Do[1],tt.uniform2f(k.location,Lo,xs),ks=Ri.translateFract,Ea=ks[0],Jn=ks[1],tt.uniform2f(M.location,Ea,Jn),Oo=P.call(this,It,Ri,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],tt.uniform4f(m.location,rl,Gs,bs,zs),$o=yr.elements,$o?tt.bindBuffer(34963,$o.buffer.buffer):Ie.currentVAO&&($o=Ut.getElements(Ie.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)),_r.dirty=!0,Ie.setVAO(null),It.viewportWidth=gr,It.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Re.destroyStream(kn),Co&&Re.destroyStream(Sn),vo&&Re.destroyStream(jn),wo&&Re.destroyStream(qn),yo&&Re.destroyStream(Ca),$s.unbind()},scope:function(Ri,Ii,xn){var bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht;bi=Ri.viewport,Xr=bi.x|0,ct=bi.y|0,tr="width"in bi?bi.width|0:It.framebufferWidth-Xr,pr="height"in bi?bi.height|0:It.framebufferHeight-ct,gr=It.viewportWidth,It.viewportWidth=tr,Zr=It.viewportHeight,It.viewportHeight=pr,Ai=Nr[0],Nr[0]=Xr,en=Nr[1],Nr[1]=ct,ii=Nr[2],Nr[2]=tr,Xi=Nr[3],Nr[3]=pr,aa=dt[0],dt[0]=A,Mn=dt[1],dt[1]=F,Un=dt[2],dt[2]=B,Ga=dt[3],dt[3]=U,ma=cr.blend_enable,cr.blend_enable=G,oa=zt[0],zt[0]=j,ka=zt[1],zt[1]=W,so=Gr[0],Gr[0]=N,Kr=Gr[1],Gr[1]=H,Ia=Gr[2],Gr[2]=re,Yo=Gr[3],Gr[3]=ae,fa=i.call(this,It,Ri,xn),kn=cr.depth_enable,cr.depth_enable=fa,Ta=Ri.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:It.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:It.framebufferHeight-uo,fo=xr[0],xr[0]=ys,mn=xr[1],xr[1]=uo,ra=xr[2],xr[2]=ls,wa=xr[3],xr[3]=$a,ws=cr.scissor_enable,cr.scissor_enable=ge,Co=cr.stencil_enable,cr.stencil_enable=ze,Po=_r.profile,Po&&(Wi=performance.now(),r.count++),gn=yr.offset,yr.offset=Le,Ps=yr.count,yr.count=de,Ha=Ri.count,Sn=yr.instances,yr.instances=Ha,ao=yr.primitive,yr.primitive=te,Ba=ke.call(this,It,Ri,xn),Ko=Fe[Ee],Fe[Ee]=Ba,Qo=Ri.miterLimit,Hi=Fe[Se],Fe[Se]=Qo,Sa=Ri.scale,Qa=Fe[Ge],Fe[Ge]=Sa,vn=Ri.scaleFract,da=Fe[De],Fe[De]=vn,la=Ri.translateFract,vo=Fe[xe],Fe[xe]=la,As=Ri.translate,ps=Fe[Ne],Fe[Ne]=As,co=Ri.thickness,mo=Fe[ce],Fe[ce]=co,No=Ri.dashTexture,jn=Fe[je],Fe[je]=No,Go=Ri.opacity,Ys=Fe[Qe],Fe[Qe]=Go,qs=It.pixelRatio,Ns=Fe[gt],Fe[gt]=qs,Oa=Ri.id,ha=Fe[qt],Fe[qt]=Oa,Vs=Ri.dashLength,Ya=Fe[at],Fe[at]=Vs,_n=P.call(this,It,Ri,xn),Vn=Fe[Ke],Fe[Ke]=_n,wo=Ri.depth,Ra=Fe[Ct],Fe[Ct]=wo,Xn=wt.state,wt.state=1,un=wt.x,wt.x=0,$n=wt.y,wt.y=0,Ka=wt.z,wt.z=0,qn=wt.w,wt.w=0,Eo=wt.buffer,wt.buffer=d,Ja=wt.size,wt.size=0,lo=wt.normalized,wt.normalized=!1,eo=wt.type,wt.type=5126,sa=wt.offset,wt.offset=0,es=wt.stride,wt.stride=8,Na=wt.divisor,wt.divisor=0,rn=Mt.state,Mt.state=1,Pa=Mt.x,Mt.x=0,to=Mt.y,Mt.y=0,yo=Mt.z,Mt.z=0,Jo=Mt.w,Mt.w=0,Ao=Mt.buffer,Mt.buffer=d,Dn=Mt.size,Mt.size=0,_a=Mt.normalized,Mt.normalized=!1,Ws=Mt.type,Mt.type=5126,Ca=Mt.offset,Mt.offset=4,Es=Mt.stride,Mt.stride=8,Ts=Mt.divisor,Mt.divisor=0,Ho=Ri.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,pe(Yr)?(Wa=!0,Bo=Re.createStream(34962,Yr),za=Bo.dtype):(Bo=Re.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=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,ln=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?Bo=Re.createStream(34962,Yr.buffer):Bo=Re.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Bt.state,Bt.state=To,Ds=Bt.x,Bt.x=ts,fl=Bt.y,Bt.y=Wo,as=Bt.z,Bt.z=qa,Ma=Bt.w,Bt.w=ln,Qs=Bt.buffer,Bt.buffer=Bo,ho=Bt.size,Bt.size=ko,gs=Bt.normalized,Bt.normalized=oo,Vo=Bt.type,Bt.type=za,Do=Bt.offset,Bt.offset=ea,Lo=Bt.stride,Bt.stride=rs,xs=Bt.divisor,Bt.divisor=$s,ks=Ri.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,pe(oi)?(Ea=!0,zs=Re.createStream(34962,oi),os=zs.dtype):(zs=Re.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=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)):(pe(oi.buffer)?zs=Re.createStream(34962,oi.buffer):zs=Re.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=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Ri.positionFractBuffer,Fi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,Tt=5126,Vt=0,wr=0,mr=0,pe(Fi)?(tl=!0,Rs=Re.createStream(34962,Fi),Tt=Rs.dtype):(Rs=Re.getBuffer(Fi),Rs?Tt=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)):(pe(Fi.buffer)?Rs=Re.createStream(34962,Fi.buffer):Rs=Re.getBuffer(Fi.buffer),Tt="type"in Fi?ti[Fi.type]:Rs.dtype,Bs=!!Fi.normalized,Is=Fi.size|0,Vt=Fi.offset|0,wr=Fi.stride|0,mr=Fi.divisor|0)),Fr=Et.state,Et.state=Fs,_i=Et.x,Et.x=hl,Si=Et.y,Et.y=Fa,Ci=Et.z,Et.z=Ms,Ki=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,di=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=Tt,Mi=Et.offset,Et.offset=Vt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=mr,ya=Ri.positionFractBuffer,an.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,pe(an)?(ia=!0,Ks=Re.createStream(34962,an),Bl=Ks.dtype):(Ks=Re.getBuffer(an),Ks?Bl=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?Ks=Re.createStream(34962,an.buffer):Ks=Re.getBuffer(an.buffer),Bl="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Vl=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,nl=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Bl,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Ri.colorBuffer,nn.buffer=Ll,ms=!1,Os=1,Xl=0,Gl=0,Nl=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ue=0,rt=0,pe(nn)?(ms=!0,w=Re.createStream(34962,nn),ee=w.dtype):(w=Re.getBuffer(nn),w?ee=w.dtype:"constant"in nn?(Os=2,typeof nn.constant=="number"?(Xl=nn.constant,Gl=Nl=le=0):(Xl=nn.constant.length>0?nn.constant[0]:0,Gl=nn.constant.length>1?nn.constant[1]:0,Nl=nn.constant.length>2?nn.constant[2]:0,le=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?w=Re.createStream(34962,nn.buffer):w=Re.getBuffer(nn.buffer),ee="type"in nn?ti[nn.type]:w.dtype,Q=!!nn.normalized,q=nn.size|0,ue=nn.offset|0,Ue=nn.stride|0,rt=nn.divisor|0)),mt=ot.state,ot.state=Os,Ft=ot.x,ot.x=Xl,ir=ot.y,ot.y=Gl,or=ot.z,ot.z=Nl,kr=ot.w,ot.w=le,Vr=ot.buffer,ot.buffer=w,he=ot.size,ot.size=q,Me=ot.normalized,ot.normalized=Q,qe=ot.type,ot.type=ee,Ve=ot.offset,ot.offset=ue,lt=ot.stride,ot.stride=Ue,it=ot.divisor,ot.divisor=rt,pt=be.vert,be.vert=At,Ht=be.frag,be.frag=vt,_r.dirty=!0,Ii(It,Ri,xn),It.viewportWidth=gr,It.viewportHeight=Zr,Nr[0]=Ai,Nr[1]=en,Nr[2]=ii,Nr[3]=Xi,dt[0]=aa,dt[1]=Mn,dt[2]=Un,dt[3]=Ga,cr.blend_enable=ma,zt[0]=oa,zt[1]=ka,Gr[0]=so,Gr[1]=Kr,Gr[2]=Ia,Gr[3]=Yo,cr.depth_enable=kn,xr[0]=fo,xr[1]=mn,xr[2]=ra,xr[3]=wa,cr.scissor_enable=ws,cr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-Wi),yr.offset=gn,yr.count=Ps,yr.instances=Sn,yr.primitive=ao,Fe[Ee]=Ko,Fe[Se]=Hi,Fe[Ge]=Qa,Fe[De]=da,Fe[xe]=vo,Fe[Ne]=ps,Fe[ce]=mo,Fe[je]=jn,Fe[Qe]=Ys,Fe[gt]=Ns,Fe[qt]=ha,Fe[at]=Ya,Fe[Ke]=Vn,Fe[Ct]=Ra,wt.state=Xn,wt.x=un,wt.y=$n,wt.z=Ka,wt.w=qn,wt.buffer=Eo,wt.size=Ja,wt.normalized=lo,wt.type=eo,wt.offset=sa,wt.stride=es,wt.divisor=Na,Mt.state=rn,Mt.x=Pa,Mt.y=to,Mt.z=yo,Mt.w=Jo,Mt.buffer=Ao,Mt.size=Dn,Mt.normalized=_a,Mt.type=Ws,Mt.offset=Ca,Mt.stride=Es,Mt.divisor=Ts,Wa&&Re.destroyStream(Bo),Bt.state=us,Bt.x=Ds,Bt.y=fl,Bt.z=as,Bt.w=Ma,Bt.buffer=Qs,Bt.size=ho,Bt.normalized=gs,Bt.type=Vo,Bt.offset=Do,Bt.stride=Lo,Bt.divisor=xs,Ea&&Re.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Re.destroyStream(Rs),Et.state=Fr,Et.x=_i,Et.y=Si,Et.z=Ci,Et.w=Ki,Et.buffer=Fn,Et.size=Pi,Et.normalized=di,Et.type=Li,Et.offset=Mi,Et.stride=Gn,Et.divisor=ta,ia&&Re.destroyStream(Ks),Ae.state=Vl,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=nl,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Re.destroyStream(w),ot.state=mt,ot.x=Ft,ot.y=ir,ot.z=or,ot.w=kr,ot.buffer=Vr,ot.size=he,ot.normalized=Me,ot.type=qe,ot.offset=Ve,ot.stride=lt,ot.divisor=it,be.vert=pt,be.frag=Ht,_r.dirty=!0},batch:function(Ri,Ii){var xn,bi,Xr,ct,tr,pr,gr;if(xn=ye.angle_instanced_arrays,bi=ft.next,bi!==ft.cur&&(bi?tt.bindFramebuffer(36160,bi.framebuffer):tt.bindFramebuffer(36160,null),ft.cur=bi),_r.dirty){var Zr,Ai,en,ii,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=cr.dither,Zr!==_r.dither&&(Zr?tt.enable(3024):tt.disable(3024),_r.dither=Zr),Ai=cr.depth_func,Ai!==_r.depth_func&&(tt.depthFunc(Ai),_r.depth_func=Ai),en=Er[0],ii=Er[1],(en!==Rr[0]||ii!==Rr[1])&&(tt.depthRange(en,ii),Rr[0]=en,Rr[1]=ii),Xi=cr.depth_mask,Xi!==_r.depth_mask&&(tt.depthMask(Xi),_r.depth_mask=Xi),aa=pi[0],Mn=pi[1],Un=pi[2],Ga=pi[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&(tt.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=cr.cull_enable,ma!==_r.cull_enable&&(ma?tt.enable(2884):tt.disable(2884),_r.cull_enable=ma),oa=cr.cull_face,oa!==_r.cull_face&&(tt.cullFace(oa),_r.cull_face=oa),ka=cr.frontFace,ka!==_r.frontFace&&(tt.frontFace(ka),_r.frontFace=ka),so=cr.lineWidth,so!==_r.lineWidth&&(tt.lineWidth(so),_r.lineWidth=so),Kr=cr.polygonOffset_enable,Kr!==_r.polygonOffset_enable&&(Kr?tt.enable(32823):tt.disable(32823),_r.polygonOffset_enable=Kr),Ia=ni[0],Yo=ni[1],(Ia!==$i[0]||Yo!==$i[1])&&(tt.polygonOffset(Ia,Yo),$i[0]=Ia,$i[1]=Yo),fa=cr.sample_alpha,fa!==_r.sample_alpha&&(fa?tt.enable(32926):tt.disable(32926),_r.sample_alpha=fa),kn=cr.sample_enable,kn!==_r.sample_enable&&(kn?tt.enable(32928):tt.disable(32928),_r.sample_enable=kn),Ta=Qi[0],ys=Qi[1],(Ta!==si[0]||ys!==si[1])&&(tt.sampleCoverage(Ta,ys),si[0]=Ta,si[1]=ys),uo=cr.stencil_mask,uo!==_r.stencil_mask&&(tt.stencilMask(uo),_r.stencil_mask=uo),ls=Ti[0],$a=Ti[1],fo=Ti[2],(ls!==Ni[0]||$a!==Ni[1]||fo!==Ni[2])&&(tt.stencilFunc(ls,$a,fo),Ni[0]=ls,Ni[1]=$a,Ni[2]=fo),mn=Rt[0],ra=Rt[1],wa=Rt[2],ws=Rt[3],(mn!==yt[0]||ra!==yt[1]||wa!==yt[2]||ws!==yt[3])&&(tt.stencilOpSeparate(mn,ra,wa,ws),yt[0]=mn,yt[1]=ra,yt[2]=wa,yt[3]=ws),Co=Gt[0],Po=Gt[1],Wi=Gt[2],gn=Gt[3],(Co!==Wt[0]||Po!==Wt[1]||Wi!==Wt[2]||gn!==Wt[3])&&(tt.stencilOpSeparate(Co,Po,Wi,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=Wi,Wt[3]=gn)}tt.blendColor(0,0,0,0),Pt[0]=0,Pt[1]=0,Pt[2]=0,Pt[3]=0,Je?tt.enable(3042):tt.disable(3042),_r.blend_enable=Je,tt.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,tt.blendFuncSeparate(770,771,773,1),Br[0]=770,Br[1]=771,Br[2]=773,Br[3]=1,He?tt.enable(3089):tt.disable(3089),_r.scissor_enable=He,nt?tt.enable(2960):tt.disable(2960),_r.stencil_enable=nt,Xr=_r.profile,Xr&&(ct=performance.now(),r.count+=Ii),tt.useProgram(s.program),tr=ye.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Ie.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&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=_.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&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=yr.elements,Ba?tt.bindBuffer(34963,Ba.buffer.buffer):Ie.currentVAO&&(Ba=Ut.getElements(Ie.currentVAO.elements),Ba&&tt.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?ha=Re.createStream(34962,Yr.buffer):ha=Re.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,un=Oe[Xn],Go===1?(un.buffer||tt.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(tt.bindBuffer(34962,ha.buffer),tt.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(tt.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(tt.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Fi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,rn=!1,Pa=5126,to=0,yo=0,Jo=0,pe(Fi)?(qn=!0,es=Re.createStream(34962,Fi),Pa=es.dtype):(es=Re.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)):(pe(Fi.buffer)?es=Re.createStream(34962,Fi.buffer):es=Re.getBuffer(Fi.buffer),Pa="type"in Fi?ti[Fi.type]:es.dtype,rn=!!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!==rn||Dn.offset!==to||Dn.stride!==yo)&&(tt.bindBuffer(34962,es.buffer),tt.vertexAttribPointer(Ao,_a,Pa,rn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=rn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.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,ln=5126,Bo=0,ko=0,oo=0,pe(oi)?(Ca=!0,ts=Re.createStream(34962,oi),ln=ts.dtype):(ts=Re.getBuffer(oi),ts?ln=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)):(pe(oi.buffer)?ts=Re.createStream(34962,oi.buffer):ts=Re.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=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!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(tt.bindBuffer(34962,ts.buffer),tt.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.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,an.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,pe(an)?(us=!0,ho=Re.createStream(34962,an),Do=ho.dtype):(ho=Re.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?ho=Re.createStream(34962,an.buffer):ho=Re.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||tt.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(tt.bindBuffer(34962,ho.buffer),tt.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.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,nn.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,pe(nn)?(Gs=!0,_l=Re.createStream(34962,nn),go=_l.dtype):(_l=Re.getBuffer(nn),_l?go=_l.dtype:"constant"in nn?(bs=2,typeof nn.constant=="number"?(zs=nn.constant,$o=Aa=os=0):(zs=nn.constant.length>0?nn.constant[0]:0,$o=nn.constant.length>1?nn.constant[1]:0,Aa=nn.constant.length>2?nn.constant[2]:0,os=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?_l=Re.createStream(34962,nn.buffer):_l=Re.getBuffer(nn.buffer),go="type"in nn?ti[nn.type]:_l.dtype,po=!!nn.normalized,Ss=nn.size|0,ss=nn.offset|0,qo=nn.stride|0,zo=nn.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&&(tr.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,(!pr||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,(!pr||Ro!==Hs)&&(Ro=Hs,tt.uniform1f(C.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,tt.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,tt.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Vt=Is[1],(!pr||Tt!==Bs||wr!==Vt)&&(Tt=Bs,wr=Vt,tt.uniform2f(L.location,Bs,Vt)),mr=gr.thickness,(!pr||Fr!==mr)&&(Fr=mr,tt.uniform1f(x.location,mr)),_i=gr.translate,Si=_i[0],Ki=_i[1],(!pr||Ci!==Si||Fn!==Ki)&&(Ci=Si,Fn=Ki,tt.uniform2f(k.location,Si,Ki)),Pi=gr.translateFract,di=Pi[0],Mi=Pi[1],(!pr||Li!==di||Gn!==Mi)&&(Li=di,Gn=Mi,tt.uniform2f(M.location,di,Mi)),ta=P.call(this,It,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||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?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?tt.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):tt.drawArrays(5,0,4)),It.viewportWidth=vn,It.viewportHeight=da,jn&&Re.destroyStream(ha),qn&&Re.destroyStream(es),Ca&&Re.destroyStream(ts),us&&Re.destroyStream(ho),Gs&&Re.destroyStream(_l),el.unbind()}_r.dirty=!0,Ie.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ct)}}}});var D8=Te((tbr,n7e)=>{n7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re){"use strict";var be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr;return be=t.gl,Oe=t.context,Ie=t.strings,Fe=t.next,ft=t.current,ye=t.draw,fe=t.elements,pe=t.buffer,dt=t.shader,Pt=t.attributes,zt=t.vao,rr=t.uniforms,Gr=t.framebuffer,Br=t.extensions,Er=t.timer,Rr=t.isBufferArgs,pi=Fe.blend_color,Di=ft.blend_color,ni=Fe.blend_equation,$i=ft.blend_equation,Qi=Fe.blend_func,si=ft.blend_func,Ti=Fe.depth_range,Ni=ft.depth_range,Rt=Fe.colorMask,yt=ft.colorMask,Gt=Fe.polygonOffset_offset,Wt=ft.polygonOffset_offset,xr=Fe.sample_coverage,Lr=ft.sample_coverage,Nr=Fe.stencil_func,Or=ft.stencil_func,Hr=Fe.stencil_opFront,jr=ft.stencil_opFront,gi=Fe.stencil_opBack,ki=ft.stencil_opBack,Vi=Fe.scissor_box,ti=ft.scissor_box,tn=Fe.viewport,Yr=ft.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},an={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},nn={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},bi={},bi.stride=4,bi.offset=0,bi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ct={},ct.stride=8,ct.offset=0,ct.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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(Ai=Br.angle_instanced_arrays,en=Gr.next,en!==Gr.cur&&(en?be.bindFramebuffer(36160,en.framebuffer):be.bindFramebuffer(36160,null),Gr.cur=en),ft.dirty){var jo,Rs,Is,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=Fe.dither,jo!==ft.dither&&(jo?be.enable(3024):be.disable(3024),ft.dither=jo),Rs=Fe.depth_func,Rs!==ft.depth_func&&(be.depthFunc(Rs),ft.depth_func=Rs),Is=Ti[0],Bs=Ti[1],(Is!==Ni[0]||Bs!==Ni[1])&&(be.depthRange(Is,Bs),Ni[0]=Is,Ni[1]=Bs),Tt=Fe.depth_mask,Tt!==ft.depth_mask&&(be.depthMask(Tt),ft.depth_mask=Tt),Vt=Rt[0],wr=Rt[1],mr=Rt[2],Fr=Rt[3],(Vt!==yt[0]||wr!==yt[1]||mr!==yt[2]||Fr!==yt[3])&&(be.colorMask(Vt,wr,mr,Fr),yt[0]=Vt,yt[1]=wr,yt[2]=mr,yt[3]=Fr),_i=Fe.frontFace,_i!==ft.frontFace&&(be.frontFace(_i),ft.frontFace=_i),Si=Fe.lineWidth,Si!==ft.lineWidth&&(be.lineWidth(Si),ft.lineWidth=Si),Ci=Fe.polygonOffset_enable,Ci!==ft.polygonOffset_enable&&(Ci?be.enable(32823):be.disable(32823),ft.polygonOffset_enable=Ci),Ki=Gt[0],Fn=Gt[1],(Ki!==Wt[0]||Fn!==Wt[1])&&(be.polygonOffset(Ki,Fn),Wt[0]=Ki,Wt[1]=Fn),Pi=Fe.sample_alpha,Pi!==ft.sample_alpha&&(Pi?be.enable(32926):be.disable(32926),ft.sample_alpha=Pi),di=Fe.sample_enable,di!==ft.sample_enable&&(di?be.enable(32928):be.disable(32928),ft.sample_enable=di),Li=xr[0],Mi=xr[1],(Li!==Lr[0]||Mi!==Lr[1])&&(be.sampleCoverage(Li,Mi),Lr[0]=Li,Lr[1]=Mi),Gn=Fe.stencil_mask,Gn!==ft.stencil_mask&&(be.stencilMask(Gn),ft.stencil_mask=Gn),ta=Nr[0],ya=Nr[1],ia=Nr[2],(ta!==Or[0]||ya!==Or[1]||ia!==Or[2])&&(be.stencilFunc(ta,ya,ia),Or[0]=ta,Or[1]=ya,Or[2]=ia),pa=Hr[0],va=Hr[1],zn=Hr[2],is=Hr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(be.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=gi[0],Ks=gi[1],dl=gi[2],xl=gi[3],(Cs!==ki[0]||Ks!==ki[1]||dl!==ki[2]||xl!==ki[3])&&(be.stencilOpSeparate(Cs,Ks,dl,xl),ki[0]=Cs,ki[1]=Ks,ki[2]=dl,ki[3]=xl)}ii=Zr.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:Oe.framebufferWidth-Xi,Un="height"in ii?ii.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,be.viewport(Xi,aa,Mn,Un),Yr[0]=Xi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,be.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?be.enable(3042):be.disable(3042),ft.blend_enable=n,be.blendEquationSeparate(32774,32774),$i[0]=32774,$i[1]=32774,be.blendFuncSeparate(770,771,773,1),si[0]=770,si[1]=771,si[2]=773,si[3]=1,i?be.enable(2884):be.disable(2884),ft.cull_enable=i,be.cullFace(a),ft.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?be.enable(2929):be.disable(2929),ft.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,be.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?be.enable(3089):be.disable(3089),ft.scissor_enable=s,u?be.enable(2960):be.disable(2960),ft.stencil_enable=u,fa=ft.profile,fa&&(kn=performance.now(),r.count++),be.useProgram(l.program),Ta=Br.angle_instanced_arrays,zt.setVAO(null),ys=Zr.colorBuffer,bi.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,Rr(bi)?(uo=!0,wa=pe.createStream(34962,bi),Po=wa.dtype):(wa=pe.getBuffer(bi),wa?Po=wa.dtype:"constant"in bi?(ls=2,typeof bi.constant=="number"?($a=bi.constant,fo=mn=ra=0):($a=bi.constant.length>0?bi.constant[0]:0,fo=bi.constant.length>1?bi.constant[1]:0,mn=bi.constant.length>2?bi.constant[2]:0,ra=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?wa=pe.createStream(34962,bi.buffer):wa=pe.getBuffer(bi.buffer),Po="type"in bi?Ii[bi.type]:wa.dtype,Co=!!bi.normalized,ws=bi.size|0,Wi=bi.offset|0,gn=bi.stride|0,Ps=bi.divisor|0)),Ha=f.location,Sn=Pt[Ha],ls===1?(Sn.buffer||be.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==Wi||Sn.stride!==gn)&&(be.bindBuffer(34962,wa.buffer),be.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&&(be.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(be.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,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,Rr(tr)?(Ko=!0,da=pe.createStream(34962,tr),As=da.dtype):(da=pe.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Hi=tr.constant,Sa=Qa=vn=0):(Hi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?da=pe.createStream(34962,tr.buffer):da=pe.getBuffer(tr.buffer),As="type"in tr?Ii[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=Pt[No],Qo===1?(jn.buffer||be.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(be.bindBuffer(34962,da.buffer),be.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&&(be.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(be.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,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Rr(Xr)?(qs=!0,_n=pe.createStream(34962,Xr),Ra=_n.dtype):(_n=pe.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=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)):(Rr(Xr.buffer)?_n=pe.createStream(34962,Xr.buffer):_n=pe.getBuffer(Xr.buffer),Ra="type"in Xr?Ii[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=Pt[Ka],Ns===1?(qn.buffer||be.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(be.bindBuffer(34962,_n.buffer),be.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(be.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(be.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,rn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Rr(pr)?(lo=!0,Pa=pe.createStream(34962,pr),Jo=Pa.dtype):(Pa=pe.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=rn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,rn=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?Pa=pe.createStream(34962,pr.buffer):Pa=pe.getBuffer(pr.buffer),Jo="type"in pr?Ii[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=Pt[Ws],eo===1?(Ca.buffer||be.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(be.bindBuffer(34962,Pa.buffer),be.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&&(be.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==rn)&&(be.vertexAttrib4f(Ws,sa,es,Na,rn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=rn)),Ts=_.location,Ho=Pt[Ts],Ho.buffer||be.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=Pt[Wa],To.buffer||be.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Rr(gr)?(Wo=!0,za=pe.createStream(34962,gr),$s=za.dtype):(za=pe.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=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)):(Rr(gr.buffer)?za=pe.createStream(34962,gr.buffer):za=pe.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=Pt[as],qa===1?(Ma.buffer||be.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(be.bindBuffer(34962,za.buffer),be.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&&(be.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(be.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ct.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Rr(ct)?(gs=!0,Ea=pe.createStream(34962,ct),rl=Ea.dtype):(Ea=pe.getBuffer(ct),Ea?rl=Ea.dtype:"constant"in ct?(Vo=2,typeof ct.constant=="number"?(Do=ct.constant,Lo=xs=ks=0):(Do=ct.constant.length>0?ct.constant[0]:0,Lo=ct.constant.length>1?ct.constant[1]:0,xs=ct.constant.length>2?ct.constant[2]:0,ks=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Ea=pe.createStream(34962,ct.buffer):Ea=pe.getBuffer(ct.buffer),rl="type"in ct?Ii[ct.type]:Ea.dtype,Oo=!!ct.normalized,Jn=ct.size|0,Gs=ct.offset|0,bs=ct.stride|0,zs=ct.divisor|0)),$o=C.location,Aa=Pt[$o],Vo===1?(Aa.buffer||be.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(be.bindBuffer(34962,Ea.buffer),be.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(be.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(be.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,be.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,be.uniform1i(T.location,po.bind()),go=Zr.depth,be.uniform1f(L.location,go),ss=Zr.miterLimit,be.uniform1f(x.location,ss),qo=M.call(this,Oe,Zr,0),be.uniform1f(k.location,qo),zo=Zr.opacity,be.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],be.uniform2f(P.location,Io,Da),vs=Zr.thickness,be.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],be.uniform2f(F.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],be.uniform4f(B.location,Ro,tl,Fs,hl),Fa=ye.elements,Fa?be.bindBuffer(34963,Fa.buffer.buffer):zt.currentVAO&&(Fa=fe.getElements(zt.currentVAO.elements),Fa&&be.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?be.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):be.drawArrays(5,0,4)),ft.dirty=!0,zt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&pe.destroyStream(wa),Ko&&pe.destroyStream(da),qs&&pe.destroyStream(_n),lo&&pe.destroyStream(Pa),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,en){var ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et;ii=Zr.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:Oe.framebufferWidth-Xi,Un="height"in ii?ii.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=tn[0],tn[0]=Xi,ka=tn[1],tn[1]=aa,so=tn[2],tn[2]=Mn,Kr=tn[3],tn[3]=Un,Ia=pi[0],pi[0]=G,Yo=pi[1],pi[1]=j,fa=pi[2],pi[2]=W,kn=pi[3],pi[3]=N,Ta=Fe.blend_enable,Fe.blend_enable=H,ys=ni[0],ni[0]=re,uo=ni[1],ni[1]=ae,ls=Qi[0],Qi[0]=ge,$a=Qi[1],Qi[1]=ze,fo=Qi[2],Qi[2]=Le,mn=Qi[3],Qi[3]=de,ra=Fe.cull_enable,Fe.cull_enable=te,wa=Fe.cull_face,Fe.cull_face=ke,ws=o.call(this,Oe,Zr,en),Co=Fe.depth_enable,Fe.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,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=Fe.scissor_enable,Fe.scissor_enable=Ee,Hi=Fe.stencil_enable,Fe.stencil_enable=Se,Sa=ft.profile,Sa&&(Qa=performance.now(),r.count++),vn=ye.offset,ye.offset=Ge,da=ye.count,ye.count=De,la=Zr.count,vo=ye.instances,ye.instances=la,As=ye.primitive,ye.primitive=xe,ps=M.call(this,Oe,Zr,en),co=rr[Ne],rr[Ne]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[je],rr[je]=jn,Ys=Zr.scaleFract,qs=rr[Qe],rr[Qe]=Ys,Ns=Zr.translateFract,Oa=rr[gt],rr[gt]=Ns,ha=Zr.translate,Vs=rr[qt],rr[qt]=ha,Ya=Zr.thickness,_n=rr[at],rr[at]=Ya,Vn=Zr.dashTexture,wo=rr[Ke],rr[Ke]=Vn,Ra=Zr.opacity,Xn=rr[Ct],rr[Ct]=Ra,un=Oe.pixelRatio,$n=rr[wt],rr[wt]=un,Ka=Zr.id,qn=rr[Mt],rr[Mt]=Ka,Eo=Zr.dashLength,Ja=rr[Bt],rr[Bt]=Eo,lo=U.call(this,Oe,Zr,en),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,rn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=ot.state,ot.state=1,Ho=ot.x,ot.x=0,Wa=ot.y,ot.y=0,To=ot.z,ot.z=0,ts=ot.w,ot.w=0,Wo=ot.buffer,ot.buffer=p,qa=ot.size,ot.size=0,ln=ot.normalized,ot.normalized=!1,Bo=ot.type,ot.type=5126,ko=ot.offset,ot.offset=4,oo=ot.stride,ot.stride=8,za=ot.divisor,ot.divisor=0,ea=Zr.colorBuffer,bi.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,Rr(bi)?(rs=!0,Ma=pe.createStream(34962,bi),gs=Ma.dtype):(Ma=pe.getBuffer(bi),Ma?gs=Ma.dtype:"constant"in bi?($s=2,typeof bi.constant=="number"?(us=bi.constant,Ds=fl=as=0):(us=bi.constant.length>0?bi.constant[0]:0,Ds=bi.constant.length>1?bi.constant[1]:0,fl=bi.constant.length>2?bi.constant[2]:0,as=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?Ma=pe.createStream(34962,bi.buffer):Ma=pe.getBuffer(bi.buffer),gs="type"in bi?Ii[bi.type]:Ma.dtype,ho=!!bi.normalized,Qs=bi.size|0,Vo=bi.offset|0,Do=bi.stride|0,Lo=bi.divisor|0)),xs=At.state,At.state=$s,ks=At.x,At.x=us,Ea=At.y,At.y=Ds,Jn=At.z,At.z=fl,Oo=At.w,At.w=as,rl=At.buffer,At.buffer=Ma,Gs=At.size,At.size=Qs,bs=At.normalized,At.normalized=ho,zs=At.type,At.type=gs,$o=At.offset,At.offset=Vo,Aa=At.stride,At.stride=Do,os=At.divisor,At.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,Rr(Xr)?(Ss=!0,io=pe.createStream(34962,Xr),vs=io.dtype):(io=pe.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)):(Rr(Xr.buffer)?io=pe.createStream(34962,Xr.buffer):io=pe.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=vt.state,vt.state=po,Ro=vt.x,vt.x=go,tl=vt.y,vt.y=ss,Fs=vt.z,vt.z=qo,hl=vt.w,vt.w=zo,Fa=vt.buffer,vt.buffer=io,Ms=vt.size,vt.size=Io,jo=vt.normalized,vt.normalized=Da,Rs=vt.type,vt.type=vs,Is=vt.offset,vt.offset=fs,Bs=vt.stride,vt.stride=cl,Tt=vt.divisor,vt.divisor=el,Vt=Zr.positionBuffer,ct.buffer=Vt,wr=!1,mr=1,Fr=0,_i=0,Si=0,Ci=0,Ki=null,Fn=0,Pi=!1,di=5126,Li=0,Mi=0,Gn=0,Rr(ct)?(wr=!0,Ki=pe.createStream(34962,ct),di=Ki.dtype):(Ki=pe.getBuffer(ct),Ki?di=Ki.dtype:"constant"in ct?(mr=2,typeof ct.constant=="number"?(Fr=ct.constant,_i=Si=Ci=0):(Fr=ct.constant.length>0?ct.constant[0]:0,_i=ct.constant.length>1?ct.constant[1]:0,Si=ct.constant.length>2?ct.constant[2]:0,Ci=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Ki=pe.createStream(34962,ct.buffer):Ki=pe.getBuffer(ct.buffer),di="type"in ct?Ii[ct.type]:Ki.dtype,Pi=!!ct.normalized,Fn=ct.size|0,Li=ct.offset|0,Mi=ct.stride|0,Gn=ct.divisor|0)),ta=Je.state,Je.state=mr,ya=Je.x,Je.x=Fr,ia=Je.y,Je.y=_i,pa=Je.z,Je.z=Si,va=Je.w,Je.w=Ci,zn=Je.buffer,Je.buffer=Ki,is=Je.size,Je.size=Fn,Cs=Je.normalized,Je.normalized=Pi,Ks=Je.type,Je.type=di,dl=Je.offset,Je.offset=Li,xl=Je.stride,Je.stride=Mi,Bl=Je.divisor,Je.divisor=Gn,bl=Zr.positionBuffer,tr.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,Rr(tr)?(eu=!0,cs=pe.createStream(34962,tr),nl=cs.dtype):(cs=pe.getBuffer(tr),cs?nl=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Vl=tr.constant,ja=ns=Js=0):(Vl=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?cs=pe.createStream(34962,tr.buffer):cs=pe.getBuffer(tr.buffer),nl="type"in tr?Ii[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=He.state,He.state=Zl,Ll=He.x,He.x=Vl,ms=He.y,He.y=ja,Os=He.z,He.z=ns,Xl=He.w,He.w=Js,Gl=He.buffer,He.buffer=cs,Nl=He.size,He.size=sl,le=He.normalized,He.normalized=ll,w=He.type,He.type=nl,q=He.offset,He.offset=zl,Q=He.stride,He.stride=Ml,ee=He.divisor,He.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ue=!1,rt=1,mt=0,Ft=0,ir=0,or=0,kr=null,Vr=0,he=!1,Me=5126,qe=0,Ve=0,lt=0,Rr(pr)?(Ue=!0,kr=pe.createStream(34962,pr),Me=kr.dtype):(kr=pe.getBuffer(pr),kr?Me=kr.dtype:"constant"in pr?(rt=2,typeof pr.constant=="number"?(mt=pr.constant,Ft=ir=or=0):(mt=pr.constant.length>0?pr.constant[0]:0,Ft=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?kr=pe.createStream(34962,pr.buffer):kr=pe.getBuffer(pr.buffer),Me="type"in pr?Ii[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,Ve=pr.stride|0,lt=pr.divisor|0)),it=nt.state,nt.state=rt,pt=nt.x,nt.x=mt,Ht=nt.y,nt.y=Ft,nr=nt.z,nt.z=ir,fr=nt.w,nt.w=or,Ar=nt.buffer,nt.buffer=kr,Ir=nt.size,nt.size=Vr,ri=nt.normalized,nt.normalized=he,li=nt.type,nt.type=Me,Ei=nt.offset,nt.offset=qe,hn=nt.stride,nt.stride=Ve,Zn=nt.divisor,nt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,Ol=!1,ou=5126,Pu=0,nu=0,tu=0,Rr(gr)?(Ua=!0,Sl=pe.createStream(34962,gr),ou=Sl.dtype):(Sl=pe.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)):(Rr(gr.buffer)?Sl=pe.createStream(34962,gr.buffer):Sl=pe.getBuffer(gr.buffer),ou="type"in gr?Ii[gr.type]:Sl.dtype,Ol=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,nu=gr.stride|0,tu=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=Ol,ef=tt.type,tt.type=ou,Z=tt.offset,tt.offset=Pu,se=tt.stride,tt.stride=nu,Pe=tt.divisor,tt.divisor=tu,Ze=dt.vert,dt.vert=It,et=dt.frag,dt.frag=Yt,ft.dirty=!0,Ai(Oe,Zr,en),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,tn[0]=oa,tn[1]=ka,tn[2]=so,tn[3]=Kr,pi[0]=Ia,pi[1]=Yo,pi[2]=fa,pi[3]=kn,Fe.blend_enable=Ta,ni[0]=ys,ni[1]=uo,Qi[0]=ls,Qi[1]=$a,Qi[2]=fo,Qi[3]=mn,Fe.cull_enable=ra,Fe.cull_face=wa,Fe.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,Fe.scissor_enable=Qo,Fe.stencil_enable=Hi,Sa&&(r.cpuTime+=performance.now()-Qa),ye.offset=vn,ye.count=da,ye.instances=vo,ye.primitive=As,rr[Ne]=co,rr[ce]=No,rr[je]=Go,rr[Qe]=qs,rr[gt]=Oa,rr[qt]=Vs,rr[at]=_n,rr[Ke]=wo,rr[Ct]=Xn,rr[wt]=$n,rr[Mt]=qn,rr[Bt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=rn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,ot.state=Ts,ot.x=Ho,ot.y=Wa,ot.z=To,ot.w=ts,ot.buffer=Wo,ot.size=qa,ot.normalized=ln,ot.type=Bo,ot.offset=ko,ot.stride=oo,ot.divisor=za,rs&&pe.destroyStream(Ma),At.state=xs,At.x=ks,At.y=Ea,At.z=Jn,At.w=Oo,At.buffer=rl,At.size=Gs,At.normalized=bs,At.type=zs,At.offset=$o,At.stride=Aa,At.divisor=os,Ss&&pe.destroyStream(io),vt.state=Hs,vt.x=Ro,vt.y=tl,vt.z=Fs,vt.w=hl,vt.buffer=Fa,vt.size=Ms,vt.normalized=jo,vt.type=Rs,vt.offset=Is,vt.stride=Bs,vt.divisor=Tt,wr&&pe.destroyStream(Ki),Je.state=ta,Je.x=ya,Je.y=ia,Je.z=pa,Je.w=va,Je.buffer=zn,Je.size=is,Je.normalized=Cs,Je.type=Ks,Je.offset=dl,Je.stride=xl,Je.divisor=Bl,eu&&pe.destroyStream(cs),He.state=Al,He.x=Ll,He.y=ms,He.z=Os,He.w=Xl,He.buffer=Gl,He.size=Nl,He.normalized=le,He.type=w,He.offset=q,He.stride=Q,He.divisor=ee,Ue&&pe.destroyStream(kr),nt.state=it,nt.x=pt,nt.y=Ht,nt.z=nr,nt.w=fr,nt.buffer=Ar,nt.size=Ir,nt.normalized=ri,nt.type=li,nt.offset=Ei,nt.stride=hn,nt.divisor=Zn,Ua&&pe.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=se,tt.divisor=Pe,dt.vert=Ze,dt.frag=et,ft.dirty=!0},batch:function(Zr,Ai){var en,ii,Xi,aa,Mn,Un,Ga;if(en=Br.angle_instanced_arrays,ii=Gr.next,ii!==Gr.cur&&(ii?be.bindFramebuffer(36160,ii.framebuffer):be.bindFramebuffer(36160,null),Gr.cur=ii),ft.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,Ba,Ko,Qo;ma=Fe.dither,ma!==ft.dither&&(ma?be.enable(3024):be.disable(3024),ft.dither=ma),oa=Fe.depth_func,oa!==ft.depth_func&&(be.depthFunc(oa),ft.depth_func=oa),ka=Ti[0],so=Ti[1],(ka!==Ni[0]||so!==Ni[1])&&(be.depthRange(ka,so),Ni[0]=ka,Ni[1]=so),Kr=Fe.depth_mask,Kr!==ft.depth_mask&&(be.depthMask(Kr),ft.depth_mask=Kr),Ia=Rt[0],Yo=Rt[1],fa=Rt[2],kn=Rt[3],(Ia!==yt[0]||Yo!==yt[1]||fa!==yt[2]||kn!==yt[3])&&(be.colorMask(Ia,Yo,fa,kn),yt[0]=Ia,yt[1]=Yo,yt[2]=fa,yt[3]=kn),Ta=Fe.frontFace,Ta!==ft.frontFace&&(be.frontFace(Ta),ft.frontFace=Ta),ys=Fe.lineWidth,ys!==ft.lineWidth&&(be.lineWidth(ys),ft.lineWidth=ys),uo=Fe.polygonOffset_enable,uo!==ft.polygonOffset_enable&&(uo?be.enable(32823):be.disable(32823),ft.polygonOffset_enable=uo),ls=Gt[0],$a=Gt[1],(ls!==Wt[0]||$a!==Wt[1])&&(be.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Fe.sample_alpha,fo!==ft.sample_alpha&&(fo?be.enable(32926):be.disable(32926),ft.sample_alpha=fo),mn=Fe.sample_enable,mn!==ft.sample_enable&&(mn?be.enable(32928):be.disable(32928),ft.sample_enable=mn),ra=xr[0],wa=xr[1],(ra!==Lr[0]||wa!==Lr[1])&&(be.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=Fe.stencil_mask,ws!==ft.stencil_mask&&(be.stencilMask(ws),ft.stencil_mask=ws),Co=Nr[0],Po=Nr[1],Wi=Nr[2],(Co!==Or[0]||Po!==Or[1]||Wi!==Or[2])&&(be.stencilFunc(Co,Po,Wi),Or[0]=Co,Or[1]=Po,Or[2]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(be.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=gi[0],Ba=gi[1],Ko=gi[2],Qo=gi[3],(ao!==ki[0]||Ba!==ki[1]||Ko!==ki[2]||Qo!==ki[3])&&(be.stencilOpSeparate(ao,Ba,Ko,Qo),ki[0]=ao,ki[1]=Ba,ki[2]=Ko,ki[3]=Qo)}be.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,cr?be.enable(3042):be.disable(3042),ft.blend_enable=cr,be.blendEquationSeparate(32774,32774),$i[0]=32774,$i[1]=32774,be.blendFuncSeparate(770,771,773,1),si[0]=770,si[1]=771,si[2]=773,si[3]=1,_r?be.enable(2884):be.disable(2884),ft.cull_enable=_r,be.cullFace(yr),ft.cull_face=yr,Ut?be.enable(3089):be.disable(3089),ft.scissor_enable=Ut,Re?be.enable(2960):be.disable(2960),ft.stencil_enable=Re,Xi=ft.profile,Xi&&(aa=performance.now(),r.count+=Ai),be.useProgram(l.program),Mn=Br.angle_instanced_arrays;var Hi,Sa,Qa,vn,da;for(zt.setVAO(null),Hi=_.location,Sa=Pt[Hi],Sa.buffer||be.enableVertexAttribArray(Hi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=Pt[Qa],vn.buffer||be.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=ye.elements,da?be.bindBuffer(34963,da.buffer.buffer):zt.currentVAO&&(da=fe.getElements(zt.currentVAO.elements),da&&be.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?bi.constant[0]:0,Vn=bi.constant.length>1?bi.constant[1]:0,wo=bi.constant.length>2?bi.constant[2]:0,Ra=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?Xn=pe.createStream(34962,bi.buffer):Xn=pe.getBuffer(bi.buffer),Ka="type"in bi?Ii[bi.type]:Xn.dtype,$n=!!bi.normalized,un=bi.size|0,qn=bi.offset|0,Eo=bi.stride|0,Ja=bi.divisor|0)),lo=f.location,eo=Pt[lo],Ya===1?(eo.buffer||be.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(be.bindBuffer(34962,Xn.buffer),be.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&&(be.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(be.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,rn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Rr(tr)?(Na=!0,Ao=pe.createStream(34962,tr),Ws=Ao.dtype):(Ao=pe.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(rn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?Ao=pe.createStream(34962,tr.buffer):Ao=pe.getBuffer(tr.buffer),Ws="type"in tr?Ii[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=Pt[Ho],rn===1?(Wa.buffer||be.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(be.bindBuffer(34962,Ao.buffer),be.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&&(be.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(be.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,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Rr(Xr)?(Wo=!0,za=pe.createStream(34962,Xr),$s=za.dtype):(za=pe.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=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)):(Rr(Xr.buffer)?za=pe.createStream(34962,Xr.buffer):za=pe.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=Pt[as],qa===1?(Ma.buffer||be.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(be.bindBuffer(34962,za.buffer),be.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&&(be.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(be.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Rr(pr)?(gs=!0,Ea=pe.createStream(34962,pr),rl=Ea.dtype):(Ea=pe.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?Ea=pe.createStream(34962,pr.buffer):Ea=pe.getBuffer(pr.buffer),rl="type"in pr?Ii[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=Pt[$o],Vo===1?(Aa.buffer||be.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(be.bindBuffer(34962,Ea.buffer),be.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(be.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(be.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,Rr(gr)?(Ss=!0,io=pe.createStream(34962,gr),vs=io.dtype):(io=pe.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)):(Rr(gr.buffer)?io=pe.createStream(34962,gr.buffer):io=pe.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=Pt[Hs],po===1?(Ro.buffer||be.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(be.bindBuffer(34962,io.buffer),be.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&&(be.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(be.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ct.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,Tt=0,Vt=!1,wr=5126,mr=0,Fr=0,_i=0,Rr(ct)?(hl=!0,Bs=pe.createStream(34962,ct),wr=Bs.dtype):(Bs=pe.getBuffer(ct),Bs?wr=Bs.dtype:"constant"in ct?(Fa=2,typeof ct.constant=="number"?(Ms=ct.constant,jo=Rs=Is=0):(Ms=ct.constant.length>0?ct.constant[0]:0,jo=ct.constant.length>1?ct.constant[1]:0,Rs=ct.constant.length>2?ct.constant[2]:0,Is=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Bs=pe.createStream(34962,ct.buffer):Bs=pe.getBuffer(ct.buffer),wr="type"in ct?Ii[ct.type]:Bs.dtype,Vt=!!ct.normalized,Tt=ct.size|0,mr=ct.offset|0,Fr=ct.stride|0,_i=ct.divisor|0)),Si=C.location,Ci=Pt[Si],Fa===1?(Ci.buffer||be.enableVertexAttribArray(Si),Ki=Tt||2,(Ci.type!==wr||Ci.size!==Ki||Ci.buffer!==Bs||Ci.normalized!==Vt||Ci.offset!==mr||Ci.stride!==Fr)&&(be.bindBuffer(34962,Bs.buffer),be.vertexAttribPointer(Si,Ki,wr,Vt,Fr,mr),Ci.type=wr,Ci.size=Ki,Ci.buffer=Bs,Ci.normalized=Vt,Ci.offset=mr,Ci.stride=Fr),Ci.divisor!==_i&&(Mn.vertexAttribDivisorANGLE(Si,_i),Ci.divisor=_i)):(Ci.buffer&&(be.disableVertexAttribArray(Si),Ci.buffer=null),(Ci.x!==Ms||Ci.y!==jo||Ci.z!==Rs||Ci.w!==Is)&&(be.vertexAttrib4f(Si,Ms,jo,Rs,Is),Ci.x=Ms,Ci.y=jo,Ci.z=Rs,Ci.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,be.uniform1f(E.location,Fn)),di=Ga.dashTexture,di&&di._reglType==="framebuffer"&&(di=di.color[0]),Li=di._texture,be.uniform1i(T.location,Li.bind()),Mi=Ga.depth,(!Un||Gn!==Mi)&&(Gn=Mi,be.uniform1f(L.location,Mi)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,be.uniform1f(x.location,ta)),ia=M.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,be.uniform1f(k.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,be.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,be.uniform2f(P.location,Cs,dl)),Bl=Ga.thickness,(!Un||bl!==Bl)&&(bl=Bl,be.uniform1f(A.location,Bl)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,be.uniform2f(F.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,be.uniform4f(B.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?be.drawElements(5,4,da.type,0<<(da.type-5121>>1)):be.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&pe.destroyStream(Xn),Na&&pe.destroyStream(Ao),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),Ss&&pe.destroyStream(io),hl&&pe.destroyStream(Bs),Li.unbind()}ft.dirty=!0,zt.setVAO(null),Xi&&(r.cpuTime+=performance.now()-aa)}}}});var F8=Te((rbr,a7e)=>{a7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je){"use strict";var Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti;return Qe=t.gl,gt=t.context,qt=t.strings,at=t.next,Ke=t.current,Ct=t.draw,wt=t.elements,Mt=t.buffer,Bt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,ot=t.framebuffer,At=t.extensions,vt=t.timer,Je=t.isBufferArgs,He=at.blend_color,nt=Ke.blend_color,tt=at.blend_equation,It=Ke.blend_equation,Yt=at.blend_func,cr=Ke.blend_func,_r=at.depth_range,yr=Ke.depth_range,Ut=at.colorMask,Re=Ke.colorMask,be=at.polygonOffset_offset,Oe=Ke.polygonOffset_offset,Ie=at.sample_coverage,Fe=Ke.sample_coverage,ft=at.stencil_func,ye=Ke.stencil_func,fe=at.stencil_opFront,pe=Ke.stencil_opFront,dt=at.stencil_opBack,Pt=Ke.stencil_opBack,zt=at.scissor_box,rr=Ke.scissor_box,Gr=at.viewport,Br=Ke.viewport,Er={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Rr={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,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},Di={add:32774,subtract:32778,"reverse subtract":32779},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},$i={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Qi={cw:2304,ccw:2305},si={},si.stride=8,si.offset=8,Ti={},Ti.stride=8,Ti.offset=8,{draw:function(Ni){var Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo;if(Rt=At.angle_instanced_arrays,yt=ot.next,yt!==ot.cur&&(yt?Qe.bindFramebuffer(36160,yt.framebuffer):Qe.bindFramebuffer(36160,null),ot.cur=yt),Ke.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa;As=at.dither,As!==Ke.dither&&(As?Qe.enable(3024):Qe.disable(3024),Ke.dither=As),ps=at.depth_func,ps!==Ke.depth_func&&(Qe.depthFunc(ps),Ke.depth_func=ps),co=_r[0],mo=_r[1],(co!==yr[0]||mo!==yr[1])&&(Qe.depthRange(co,mo),yr[0]=co,yr[1]=mo),No=at.depth_mask,No!==Ke.depth_mask&&(Qe.depthMask(No),Ke.depth_mask=No),jn=Ut[0],Go=Ut[1],Ys=Ut[2],qs=Ut[3],(jn!==Re[0]||Go!==Re[1]||Ys!==Re[2]||qs!==Re[3])&&(Qe.colorMask(jn,Go,Ys,qs),Re[0]=jn,Re[1]=Go,Re[2]=Ys,Re[3]=qs),Ns=at.cull_enable,Ns!==Ke.cull_enable&&(Ns?Qe.enable(2884):Qe.disable(2884),Ke.cull_enable=Ns),Oa=at.cull_face,Oa!==Ke.cull_face&&(Qe.cullFace(Oa),Ke.cull_face=Oa),ha=at.frontFace,ha!==Ke.frontFace&&(Qe.frontFace(ha),Ke.frontFace=ha),Vs=at.lineWidth,Vs!==Ke.lineWidth&&(Qe.lineWidth(Vs),Ke.lineWidth=Vs),Ya=at.polygonOffset_enable,Ya!==Ke.polygonOffset_enable&&(Ya?Qe.enable(32823):Qe.disable(32823),Ke.polygonOffset_enable=Ya),_n=be[0],Vn=be[1],(_n!==Oe[0]||Vn!==Oe[1])&&(Qe.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=at.sample_alpha,wo!==Ke.sample_alpha&&(wo?Qe.enable(32926):Qe.disable(32926),Ke.sample_alpha=wo),Ra=at.sample_enable,Ra!==Ke.sample_enable&&(Ra?Qe.enable(32928):Qe.disable(32928),Ke.sample_enable=Ra),Xn=Ie[0],un=Ie[1],(Xn!==Fe[0]||un!==Fe[1])&&(Qe.sampleCoverage(Xn,un),Fe[0]=Xn,Fe[1]=un),$n=at.stencil_mask,$n!==Ke.stencil_mask&&(Qe.stencilMask($n),Ke.stencil_mask=$n),Ka=ft[0],qn=ft[1],Eo=ft[2],(Ka!==ye[0]||qn!==ye[1]||Eo!==ye[2])&&(Qe.stencilFunc(Ka,qn,Eo),ye[0]=Ka,ye[1]=qn,ye[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==pe[0]||lo!==pe[1]||eo!==pe[2]||sa!==pe[3])&&(Qe.stencilOpSeparate(Ja,lo,eo,sa),pe[0]=Ja,pe[1]=lo,pe[2]=eo,pe[3]=sa),es=dt[0],Na=dt[1],rn=dt[2],Pa=dt[3],(es!==Pt[0]||Na!==Pt[1]||rn!==Pt[2]||Pa!==Pt[3])&&(Qe.stencilOpSeparate(es,Na,rn,Pa),Pt[0]=es,Pt[1]=Na,Pt[2]=rn,Pt[3]=Pa)}Gt=Ni.viewport,Wt=Gt.x|0,xr=Gt.y|0,Lr="width"in Gt?Gt.width|0:gt.framebufferWidth-Wt,Nr="height"in Gt?Gt.height|0:gt.framebufferHeight-xr,Or=gt.viewportWidth,gt.viewportWidth=Lr,Hr=gt.viewportHeight,gt.viewportHeight=Nr,Qe.viewport(Wt,xr,Lr,Nr),Br[0]=Wt,Br[1]=xr,Br[2]=Lr,Br[3]=Nr,Qe.blendColor(0,0,0,0),nt[0]=0,nt[1]=0,nt[2]=0,nt[3]=0,n?Qe.enable(3042):Qe.disable(3042),Ke.blend_enable=n,Qe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Qe.blendFuncSeparate(770,771,773,1),cr[0]=770,cr[1]=771,cr[2]=773,cr[3]=1,i?Qe.enable(2929):Qe.disable(2929),Ke.depth_enable=i,jr=Ni.viewport,gi=jr.x|0,ki=jr.y|0,Vi="width"in jr?jr.width|0:gt.framebufferWidth-gi,ti="height"in jr?jr.height|0:gt.framebufferHeight-ki,Qe.scissor(gi,ki,Vi,ti),rr[0]=gi,rr[1]=ki,rr[2]=Vi,rr[3]=ti,a?Qe.enable(3089):Qe.disable(3089),Ke.scissor_enable=a,o?Qe.enable(2960):Qe.disable(2960),Ke.stencil_enable=o,tn=Ke.profile,tn&&(Yr=performance.now(),r.count++),Qe.useProgram(s.program),oi=At.angle_instanced_arrays,Et.setVAO(null),Fi=Ni.positionBuffer,si.buffer=Fi,an=!1,nn=1,Ri=0,Ii=0,xn=0,bi=0,Xr=null,ct=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,Je(si)?(an=!0,Xr=Mt.createStream(34962,si),pr=Xr.dtype):(Xr=Mt.getBuffer(si),Xr?pr=Xr.dtype:"constant"in si?(nn=2,typeof si.constant=="number"?(Ri=si.constant,Ii=xn=bi=0):(Ri=si.constant.length>0?si.constant[0]:0,Ii=si.constant.length>1?si.constant[1]:0,xn=si.constant.length>2?si.constant[2]:0,bi=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?Xr=Mt.createStream(34962,si.buffer):Xr=Mt.getBuffer(si.buffer),pr="type"in si?$i[si.type]:Xr.dtype,tr=!!si.normalized,ct=si.size|0,gr=si.offset|0,Zr=si.stride|0,Ai=si.divisor|0)),en=u.location,ii=Zt[en],nn===1?(ii.buffer||Qe.enableVertexAttribArray(en),Xi=ct||2,(ii.type!==pr||ii.size!==Xi||ii.buffer!==Xr||ii.normalized!==tr||ii.offset!==gr||ii.stride!==Zr)&&(Qe.bindBuffer(34962,Xr.buffer),Qe.vertexAttribPointer(en,Xi,pr,tr,Zr,gr),ii.type=pr,ii.size=Xi,ii.buffer=Xr,ii.normalized=tr,ii.offset=gr,ii.stride=Zr),ii.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(en,Ai),ii.divisor=Ai)):(ii.buffer&&(Qe.disableVertexAttribArray(en),ii.buffer=null),(ii.x!==Ri||ii.y!==Ii||ii.z!==xn||ii.w!==bi)&&(Qe.vertexAttrib4f(en,Ri,Ii,xn,bi),ii.x=Ri,ii.y=Ii,ii.z=xn,ii.w=bi)),aa=Ni.positionFractBuffer,Ti.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,Je(Ti)?(Mn=!0,so=Mt.createStream(34962,Ti),Yo=so.dtype):(so=Mt.getBuffer(Ti),so?Yo=so.dtype:"constant"in Ti?(Un=2,typeof Ti.constant=="number"?(Ga=Ti.constant,ma=oa=ka=0):(Ga=Ti.constant.length>0?Ti.constant[0]:0,ma=Ti.constant.length>1?Ti.constant[1]:0,oa=Ti.constant.length>2?Ti.constant[2]:0,ka=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?so=Mt.createStream(34962,Ti.buffer):so=Mt.getBuffer(Ti.buffer),Yo="type"in Ti?$i[Ti.type]:so.dtype,Ia=!!Ti.normalized,Kr=Ti.size|0,fa=Ti.offset|0,kn=Ti.stride|0,Ta=Ti.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||Qe.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(Qe.bindBuffer(34962,so.buffer),Qe.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&&(Qe.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(Qe.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Ni.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],Qe.uniform4f(f.location,fo,mn,ra,wa),ws=Ni.id,Qe.uniform1f(c.location,ws),Co=Ni.opacity,Qe.uniform1f(h.location,Co),Po=Ni.scale,Wi=Po[0],gn=Po[1],Qe.uniform2f(d.location,Wi,gn),Ps=Ni.scaleFract,Ha=Ps[0],Sn=Ps[1],Qe.uniform2f(p.location,Ha,Sn),ao=Ni.translate,Ba=ao[0],Ko=ao[1],Qe.uniform2f(_.location,Ba,Ko),Qo=Ni.translateFract,Hi=Qo[0],Sa=Qo[1],Qe.uniform2f(b.location,Hi,Sa),Qa=v.call(this,gt,Ni,0),vn=null,da=Je(Qa),da?vn=wt.createStream(Qa):vn=wt.getElements(Qa),vn&&Qe.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=Ct.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?Qe.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):Qe.drawArrays(4,0,la)),Ke.dirty=!0,Et.setVAO(null),gt.viewportWidth=Or,gt.viewportHeight=Hr,tn&&(r.cpuTime+=performance.now()-Yr),an&&Mt.destroyStream(Xr),Mn&&Mt.destroyStream(so),da&&wt.destroyStream(vn))},scope:function(Ni,Rt,yt){var Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Gt=Ni.viewport,Wt=Gt.x|0,xr=Gt.y|0,Lr="width"in Gt?Gt.width|0:gt.framebufferWidth-Wt,Nr="height"in Gt?Gt.height|0:gt.framebufferHeight-xr,Or=gt.viewportWidth,gt.viewportWidth=Lr,Hr=gt.viewportHeight,gt.viewportHeight=Nr,jr=Gr[0],Gr[0]=Wt,gi=Gr[1],Gr[1]=xr,ki=Gr[2],Gr[2]=Lr,Vi=Gr[3],Gr[3]=Nr,ti=He[0],He[0]=C,tn=He[1],He[1]=E,Yr=He[2],He[2]=T,oi=He[3],He[3]=L,Fi=at.blend_enable,at.blend_enable=x,an=tt[0],tt[0]=k,nn=tt[1],tt[1]=M,Ri=Yt[0],Yt[0]=m,Ii=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,bi=Yt[3],Yt[3]=F,Xr=at.depth_enable,at.depth_enable=B,ct=Ni.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:gt.framebufferWidth-tr,Zr="height"in ct?ct.height|0:gt.framebufferHeight-pr,Ai=zt[0],zt[0]=tr,en=zt[1],zt[1]=pr,ii=zt[2],zt[2]=gr,Xi=zt[3],zt[3]=Zr,aa=at.scissor_enable,at.scissor_enable=U,Mn=at.stencil_enable,at.stencil_enable=G,Un=Ke.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,gt,Ni,yt),oa=null,ka=Je(ma),ka?oa=wt.createStream(ma):oa=wt.getElements(ma),so=Ct.elements,Ct.elements=oa,Kr=Ct.offset,Ct.offset=j,Ia=oa?oa.vertCount:-1,Yo=Ct.count,Ct.count=Ia,fa=Ct.primitive,Ct.primitive=W,kn=Ni.scale,Ta=Ae[N],Ae[N]=kn,ys=Ni.fill,uo=Ae[H],Ae[H]=ys,ls=Ni.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Ni.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Ni.translate,wa=Ae[ge],Ae[ge]=ra,ws=Ni.opacity,Co=Ae[ze],Ae[ze]=ws,Po=gt.pixelRatio,Wi=Ae[Le],Ae[Le]=Po,gn=Ni.id,Ps=Ae[de],Ae[de]=gn,Ha=te.call(this,gt,Ni,yt),Sn=Ae[ke],Ae[ke]=Ha,ao=Ni.positionBuffer,si.buffer=ao,Ba=!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,Je(si)?(Ba=!0,vn=Mt.createStream(34962,si),vo=vn.dtype):(vn=Mt.getBuffer(si),vn?vo=vn.dtype:"constant"in si?(Ko=2,typeof si.constant=="number"?(Qo=si.constant,Hi=Sa=Qa=0):(Qo=si.constant.length>0?si.constant[0]:0,Hi=si.constant.length>1?si.constant[1]:0,Sa=si.constant.length>2?si.constant[2]:0,Qa=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?vn=Mt.createStream(34962,si.buffer):vn=Mt.getBuffer(si.buffer),vo="type"in si?$i[si.type]:vn.dtype,la=!!si.normalized,da=si.size|0,As=si.offset|0,ps=si.stride|0,co=si.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Hi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Ni.positionFractBuffer,Ti.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Je(Ti)?(wo=!0,qn=Mt.createStream(34962,Ti),lo=qn.dtype):(qn=Mt.getBuffer(Ti),qn?lo=qn.dtype:"constant"in Ti?(Ra=2,typeof Ti.constant=="number"?(Xn=Ti.constant,un=$n=Ka=0):(Xn=Ti.constant.length>0?Ti.constant[0]:0,un=Ti.constant.length>1?Ti.constant[1]:0,$n=Ti.constant.length>2?Ti.constant[2]:0,Ka=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?qn=Mt.createStream(34962,Ti.buffer):qn=Mt.getBuffer(Ti.buffer),lo="type"in Ti?$i[Ti.type]:qn.dtype,Ja=!!Ti.normalized,Eo=Ti.size|0,eo=Ti.offset|0,sa=Ti.stride|0,es=Ti.divisor|0)),Na=Se.state,Se.state=Ra,rn=Se.x,Se.x=Xn,Pa=Se.y,Se.y=un,to=Se.z,Se.z=$n,yo=Se.w,Se.w=Ka,Jo=Se.buffer,Se.buffer=qn,Ao=Se.size,Se.size=Eo,Dn=Se.normalized,Se.normalized=Ja,_a=Se.type,Se.type=lo,Ws=Se.offset,Se.offset=eo,Ca=Se.stride,Se.stride=sa,Es=Se.divisor,Se.divisor=es,Ts=Bt.vert,Bt.vert=Ge,Ho=Bt.frag,Bt.frag=De,Ke.dirty=!0,Rt(gt,Ni,yt),gt.viewportWidth=Or,gt.viewportHeight=Hr,Gr[0]=jr,Gr[1]=gi,Gr[2]=ki,Gr[3]=Vi,He[0]=ti,He[1]=tn,He[2]=Yr,He[3]=oi,at.blend_enable=Fi,tt[0]=an,tt[1]=nn,Yt[0]=Ri,Yt[1]=Ii,Yt[2]=xn,Yt[3]=bi,at.depth_enable=Xr,zt[0]=Ai,zt[1]=en,zt[2]=ii,zt[3]=Xi,at.scissor_enable=aa,at.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&wt.destroyStream(oa),Ct.elements=so,Ct.offset=Kr,Ct.count=Yo,Ct.primitive=fa,Ae[N]=Ta,Ae[H]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[ge]=wa,Ae[ze]=Co,Ae[Le]=Wi,Ae[de]=Ps,Ae[ke]=Sn,Ba&&Mt.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&Mt.destroyStream(qn),Se.state=Na,Se.x=rn,Se.y=Pa,Se.z=to,Se.w=yo,Se.buffer=Jo,Se.size=Ao,Se.normalized=Dn,Se.type=_a,Se.offset=Ws,Se.stride=Ca,Se.divisor=Es,Bt.vert=Ts,Bt.frag=Ho,Ke.dirty=!0},batch:function(Ni,Rt){var yt,Gt,Wt,xr,Lr,Nr,Or;if(yt=At.angle_instanced_arrays,Gt=ot.next,Gt!==ot.cur&&(Gt?Qe.bindFramebuffer(36160,Gt.framebuffer):Qe.bindFramebuffer(36160,null),ot.cur=Gt),Ke.dirty){var Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,Xi,aa,Mn,Un,Ga,ma,oa;Hr=at.dither,Hr!==Ke.dither&&(Hr?Qe.enable(3024):Qe.disable(3024),Ke.dither=Hr),jr=at.depth_func,jr!==Ke.depth_func&&(Qe.depthFunc(jr),Ke.depth_func=jr),gi=_r[0],ki=_r[1],(gi!==yr[0]||ki!==yr[1])&&(Qe.depthRange(gi,ki),yr[0]=gi,yr[1]=ki),Vi=at.depth_mask,Vi!==Ke.depth_mask&&(Qe.depthMask(Vi),Ke.depth_mask=Vi),ti=Ut[0],tn=Ut[1],Yr=Ut[2],oi=Ut[3],(ti!==Re[0]||tn!==Re[1]||Yr!==Re[2]||oi!==Re[3])&&(Qe.colorMask(ti,tn,Yr,oi),Re[0]=ti,Re[1]=tn,Re[2]=Yr,Re[3]=oi),Fi=at.cull_enable,Fi!==Ke.cull_enable&&(Fi?Qe.enable(2884):Qe.disable(2884),Ke.cull_enable=Fi),an=at.cull_face,an!==Ke.cull_face&&(Qe.cullFace(an),Ke.cull_face=an),nn=at.frontFace,nn!==Ke.frontFace&&(Qe.frontFace(nn),Ke.frontFace=nn),Ri=at.lineWidth,Ri!==Ke.lineWidth&&(Qe.lineWidth(Ri),Ke.lineWidth=Ri),Ii=at.polygonOffset_enable,Ii!==Ke.polygonOffset_enable&&(Ii?Qe.enable(32823):Qe.disable(32823),Ke.polygonOffset_enable=Ii),xn=be[0],bi=be[1],(xn!==Oe[0]||bi!==Oe[1])&&(Qe.polygonOffset(xn,bi),Oe[0]=xn,Oe[1]=bi),Xr=at.sample_alpha,Xr!==Ke.sample_alpha&&(Xr?Qe.enable(32926):Qe.disable(32926),Ke.sample_alpha=Xr),ct=at.sample_enable,ct!==Ke.sample_enable&&(ct?Qe.enable(32928):Qe.disable(32928),Ke.sample_enable=ct),tr=Ie[0],pr=Ie[1],(tr!==Fe[0]||pr!==Fe[1])&&(Qe.sampleCoverage(tr,pr),Fe[0]=tr,Fe[1]=pr),gr=at.stencil_mask,gr!==Ke.stencil_mask&&(Qe.stencilMask(gr),Ke.stencil_mask=gr),Zr=ft[0],Ai=ft[1],en=ft[2],(Zr!==ye[0]||Ai!==ye[1]||en!==ye[2])&&(Qe.stencilFunc(Zr,Ai,en),ye[0]=Zr,ye[1]=Ai,ye[2]=en),ii=fe[0],Xi=fe[1],aa=fe[2],Mn=fe[3],(ii!==pe[0]||Xi!==pe[1]||aa!==pe[2]||Mn!==pe[3])&&(Qe.stencilOpSeparate(ii,Xi,aa,Mn),pe[0]=ii,pe[1]=Xi,pe[2]=aa,pe[3]=Mn),Un=dt[0],Ga=dt[1],ma=dt[2],oa=dt[3],(Un!==Pt[0]||Ga!==Pt[1]||ma!==Pt[2]||oa!==Pt[3])&&(Qe.stencilOpSeparate(Un,Ga,ma,oa),Pt[0]=Un,Pt[1]=Ga,Pt[2]=ma,Pt[3]=oa)}Qe.blendColor(0,0,0,0),nt[0]=0,nt[1]=0,nt[2]=0,nt[3]=0,xe?Qe.enable(3042):Qe.disable(3042),Ke.blend_enable=xe,Qe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Qe.blendFuncSeparate(770,771,773,1),cr[0]=770,cr[1]=771,cr[2]=773,cr[3]=1,Ne?Qe.enable(2929):Qe.disable(2929),Ke.depth_enable=Ne,ce?Qe.enable(3089):Qe.disable(3089),Ke.scissor_enable=ce,je?Qe.enable(2960):Qe.disable(2960),Ke.stencil_enable=je,Wt=Ke.profile,Wt&&(xr=performance.now(),r.count+=Rt),Qe.useProgram(s.program),Lr=At.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=Ct.instances,Nr=0;Nr0?si.constant[0]:0,Co=si.constant.length>1?si.constant[1]:0,Po=si.constant.length>2?si.constant[2]:0,Wi=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?gn=Mt.createStream(34962,si.buffer):gn=Mt.getBuffer(si.buffer),Sn="type"in si?$i[si.type]:gn.dtype,Ha=!!si.normalized,Ps=si.size|0,ao=si.offset|0,Ba=si.stride|0,Ko=si.divisor|0)),Qo=u.location,Hi=Zt[Qo],wa===1?(Hi.buffer||Qe.enableVertexAttribArray(Qo),Sa=Ps||2,(Hi.type!==Sn||Hi.size!==Sa||Hi.buffer!==gn||Hi.normalized!==Ha||Hi.offset!==ao||Hi.stride!==Ba)&&(Qe.bindBuffer(34962,gn.buffer),Qe.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Hi.type=Sn,Hi.size=Sa,Hi.buffer=gn,Hi.normalized=Ha,Hi.offset=ao,Hi.stride=Ba),Hi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Hi.divisor=Ko)):(Hi.buffer&&(Qe.disableVertexAttribArray(Qo),Hi.buffer=null),(Hi.x!==ws||Hi.y!==Co||Hi.z!==Po||Hi.w!==Wi)&&(Qe.vertexAttrib4f(Qo,ws,Co,Po,Wi),Hi.x=ws,Hi.y=Co,Hi.z=Po,Hi.w=Wi)),Qa=Or.positionFractBuffer,Ti.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,Je(Ti)?(vn=!0,co=Mt.createStream(34962,Ti),jn=co.dtype):(co=Mt.getBuffer(Ti),co?jn=co.dtype:"constant"in Ti?(da=2,typeof Ti.constant=="number"?(la=Ti.constant,vo=As=ps=0):(la=Ti.constant.length>0?Ti.constant[0]:0,vo=Ti.constant.length>1?Ti.constant[1]:0,As=Ti.constant.length>2?Ti.constant[2]:0,ps=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?co=Mt.createStream(34962,Ti.buffer):co=Mt.getBuffer(Ti.buffer),jn="type"in Ti?$i[Ti.type]:co.dtype,No=!!Ti.normalized,mo=Ti.size|0,Go=Ti.offset|0,Ys=Ti.stride|0,qs=Ti.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||Qe.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(Qe.bindBuffer(34962,co.buffer),Qe.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(Qe.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(Qe.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Or.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Nr||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,Qe.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Or.id,(!Nr||qn!==Ka)&&(qn=Ka,Qe.uniform1f(c.location,Ka)),Eo=Or.opacity,(!Nr||Ja!==Eo)&&(Ja=Eo,Qe.uniform1f(h.location,Eo)),lo=Or.scale,eo=lo[0],es=lo[1],(!Nr||sa!==eo||Na!==es)&&(sa=eo,Na=es,Qe.uniform2f(d.location,eo,es)),rn=Or.scaleFract,Pa=rn[0],yo=rn[1],(!Nr||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,Qe.uniform2f(p.location,Pa,yo)),Ao=Or.translate,Dn=Ao[0],Ws=Ao[1],(!Nr||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,Qe.uniform2f(_.location,Dn,Ws)),Es=Or.translateFract,Ts=Es[0],Wa=Es[1],(!Nr||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,Qe.uniform2f(b.location,Ts,Wa)),ts=v.call(this,gt,Or,Nr),Wo=null,qa=Je(ts),qa?Wo=wt.createStream(ts):Wo=wt.getElements(ts),Wo&&Qe.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?Qe.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):Qe.drawArrays(4,0,ln)),gt.viewportWidth=kn,gt.viewportHeight=Ta,ra&&Mt.destroyStream(gn),vn&&Mt.destroyStream(co),qa&&wt.destroyStream(Wo))}Ke.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-xr)}}}});var B8=Te((ibr,o7e)=>{o7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut){"use strict";var Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii;return Re=t.gl,be=t.context,Oe=t.strings,Ie=t.next,Fe=t.current,ft=t.draw,ye=t.elements,fe=t.buffer,pe=t.shader,dt=t.attributes,Pt=t.vao,zt=t.uniforms,rr=t.framebuffer,Gr=t.extensions,Br=t.timer,Er=t.isBufferArgs,Rr=Ie.blend_color,pi=Fe.blend_color,Di=Ie.blend_equation,ni=Fe.blend_equation,$i=Ie.blend_func,Qi=Fe.blend_func,si=Ie.depth_range,Ti=Fe.depth_range,Ni=Ie.colorMask,Rt=Fe.colorMask,yt=Ie.polygonOffset_offset,Gt=Fe.polygonOffset_offset,Wt=Ie.sample_coverage,xr=Fe.sample_coverage,Lr=Ie.stencil_func,Nr=Fe.stencil_func,Or=Ie.stencil_opFront,Hr=Fe.stencil_opFront,jr=Ie.stencil_opBack,gi=Fe.stencil_opBack,ki=Ie.scissor_box,Vi=Fe.scissor_box,ti=Ie.viewport,tn=Fe.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},an={add:32774,subtract:32778,"reverse subtract":32779},nn={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 bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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(bi=Gr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Re.bindFramebuffer(36160,Xr.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=Xr),Fe.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar;Ml=Ie.dither,Ml!==Fe.dither&&(Ml?Re.enable(3024):Re.disable(3024),Fe.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==ni[0]||Al!==ni[1])&&(Re.blendEquationSeparate(Rl,Al),ni[0]=Rl,ni[1]=Al),Ll=Ie.depth_func,Ll!==Fe.depth_func&&(Re.depthFunc(Ll),Fe.depth_func=Ll),ms=si[0],Os=si[1],(ms!==Ti[0]||Os!==Ti[1])&&(Re.depthRange(ms,Os),Ti[0]=ms,Ti[1]=Os),Xl=Ie.depth_mask,Xl!==Fe.depth_mask&&(Re.depthMask(Xl),Fe.depth_mask=Xl),Gl=Ni[0],Nl=Ni[1],le=Ni[2],w=Ni[3],(Gl!==Rt[0]||Nl!==Rt[1]||le!==Rt[2]||w!==Rt[3])&&(Re.colorMask(Gl,Nl,le,w),Rt[0]=Gl,Rt[1]=Nl,Rt[2]=le,Rt[3]=w),q=Ie.cull_enable,q!==Fe.cull_enable&&(q?Re.enable(2884):Re.disable(2884),Fe.cull_enable=q),Q=Ie.cull_face,Q!==Fe.cull_face&&(Re.cullFace(Q),Fe.cull_face=Q),ee=Ie.frontFace,ee!==Fe.frontFace&&(Re.frontFace(ee),Fe.frontFace=ee),ue=Ie.lineWidth,ue!==Fe.lineWidth&&(Re.lineWidth(ue),Fe.lineWidth=ue),Ue=Ie.polygonOffset_enable,Ue!==Fe.polygonOffset_enable&&(Ue?Re.enable(32823):Re.disable(32823),Fe.polygonOffset_enable=Ue),rt=yt[0],mt=yt[1],(rt!==Gt[0]||mt!==Gt[1])&&(Re.polygonOffset(rt,mt),Gt[0]=rt,Gt[1]=mt),Ft=Ie.sample_alpha,Ft!==Fe.sample_alpha&&(Ft?Re.enable(32926):Re.disable(32926),Fe.sample_alpha=Ft),ir=Ie.sample_enable,ir!==Fe.sample_enable&&(ir?Re.enable(32928):Re.disable(32928),Fe.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==xr[0]||kr!==xr[1])&&(Re.sampleCoverage(or,kr),xr[0]=or,xr[1]=kr),Vr=Ie.stencil_mask,Vr!==Fe.stencil_mask&&(Re.stencilMask(Vr),Fe.stencil_mask=Vr),he=Lr[0],Me=Lr[1],qe=Lr[2],(he!==Nr[0]||Me!==Nr[1]||qe!==Nr[2])&&(Re.stencilFunc(he,Me,qe),Nr[0]=he,Nr[1]=Me,Nr[2]=qe),Ve=Or[0],lt=Or[1],it=Or[2],pt=Or[3],(Ve!==Hr[0]||lt!==Hr[1]||it!==Hr[2]||pt!==Hr[3])&&(Re.stencilOpSeparate(Ve,lt,it,pt),Hr[0]=Ve,Hr[1]=lt,Hr[2]=it,Hr[3]=pt),Ht=jr[0],nr=jr[1],fr=jr[2],Ar=jr[3],(Ht!==gi[0]||nr!==gi[1]||fr!==gi[2]||Ar!==gi[3])&&(Re.stencilOpSeparate(Ht,nr,fr,Ar),gi[0]=Ht,gi[1]=nr,gi[2]=fr,gi[3]=Ar)}ct=xn.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:be.framebufferWidth-tr,Zr="height"in ct?ct.height|0:be.framebufferHeight-pr,Ai=be.viewportWidth,be.viewportWidth=gr,en=be.viewportHeight,be.viewportHeight=Zr,Re.viewport(tr,pr,gr,Zr),tn[0]=tr,tn[1]=pr,tn[2]=gr,tn[3]=Zr,Re.blendColor(0,0,0,1),pi[0]=0,pi[1]=0,pi[2]=0,pi[3]=1,n?Re.enable(3042):Re.disable(3042),Fe.blend_enable=n,Re.blendFuncSeparate(770,771,773,1),Qi[0]=770,Qi[1]=771,Qi[2]=773,Qi[3]=1,i?Re.enable(2929):Re.disable(2929),Fe.depth_enable=i,ii=xn.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:be.framebufferWidth-Xi,Un="height"in ii?ii.height|0:be.framebufferHeight-aa,Re.scissor(Xi,aa,Mn,Un),Vi[0]=Xi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Re.enable(3089):Re.disable(3089),Fe.scissor_enable=a,o?Re.enable(2960):Re.disable(2960),Fe.stencil_enable=o,Ga=Fe.profile,Ga&&(ma=performance.now(),r.count++),Re.useProgram(s.program),oa=Gr.angle_instanced_arrays,Pt.setVAO(null),ka=u.call(this,be,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,Er(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.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)):(Er(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.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=dt[ra],Kr===1?(wa.buffer||Re.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Re.bindBuffer(34962,Ta.buffer),Re.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&&(Re.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Re.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,be,xn,0),Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,Er(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.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)):(Er(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Ri[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=dt[vn],Wi===1?(da.buffer||Re.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Re.bindBuffer(34962,ao.buffer),Re.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&&(Re.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Re.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,be,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Er(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.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)):(Er(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Ri[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=dt[Ya],ps===1?(_n.buffer||Re.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Re.bindBuffer(34962,Go.buffer),Re.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Re.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Re.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,be,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Er(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=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)):(Er(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.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)),rn=_.location,Pa=dt[rn],Xn===1?(Pa.buffer||Re.enableVertexAttribArray(rn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Re.bindBuffer(34962,Eo.buffer),Re.vertexAttribPointer(rn,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(rn,Na),Pa.divisor=Na)):(Pa.buffer&&(Re.disableVertexAttribArray(rn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Re.vertexAttrib4f(rn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,be,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,Er(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.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)):(Er(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.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,ln=dt[qa],Ao===1?(ln.buffer||Re.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Re.bindBuffer(34962,Es.buffer),Re.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Re.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Re.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=C.call(this,be,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,Er(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.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)):(Er(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Ri[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=dt[Vo],za===1?(Do.buffer||Re.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Re.bindBuffer(34962,Ds.buffer),Re.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&&(Re.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Re.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,be,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Er(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=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)):(Er(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.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=dt[po],Ea===1?(go.buffer||Re.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Re.bindBuffer(34962,bs.buffer),Re.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&&(Re.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Re.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=x.call(this,be,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,Er(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.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)):(Er(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="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=dt[Fa],io===1?(Ms.buffer||Re.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Re.bindBuffer(34962,cl.buffer),Re.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&&(Re.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Re.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=M.call(this,be,xn,0),Is=!1,Bs=1,Tt=0,Vt=0,wr=0,mr=0,Fr=null,_i=0,Si=!1,Ci=5126,Ki=0,Fn=0,Pi=0,Er(Rs)?(Is=!0,Fr=fe.createStream(34962,Rs),Ci=Fr.dtype):(Fr=fe.getBuffer(Rs),Fr?Ci=Fr.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(Tt=Rs.constant,Vt=wr=mr=0):(Tt=Rs.constant.length>0?Rs.constant[0]:0,Vt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,mr=Rs.constant.length>3?Rs.constant[3]:0)):(Er(Rs.buffer)?Fr=fe.createStream(34962,Rs.buffer):Fr=fe.getBuffer(Rs.buffer),Ci="type"in Rs?Ri[Rs.type]:Fr.dtype,Si=!!Rs.normalized,_i=Rs.size|0,Ki=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),di=m.location,Li=dt[di],Bs===1?(Li.buffer||Re.enableVertexAttribArray(di),Mi=_i||1,(Li.type!==Ci||Li.size!==Mi||Li.buffer!==Fr||Li.normalized!==Si||Li.offset!==Ki||Li.stride!==Fn)&&(Re.bindBuffer(34962,Fr.buffer),Re.vertexAttribPointer(di,Mi,Ci,Si,Fn,Ki),Li.type=Ci,Li.size=Mi,Li.buffer=Fr,Li.normalized=Si,Li.offset=Ki,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(di,Pi),Li.divisor=Pi)):(Li.buffer&&(Re.disableVertexAttribArray(di),Li.buffer=null),(Li.x!==Tt||Li.y!==Vt||Li.z!==wr||Li.w!==mr)&&(Re.vertexAttrib4f(di,Tt,Vt,wr,mr),Li.x=Tt,Li.y=Vt,Li.z=wr,Li.w=mr)),Re.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Re.uniform1i(A.location,ta.bind()),ya=xn.opacity,Re.uniform1f(F.location,ya),ia=U.call(this,be,xn,0),pa=ia[0],va=ia[1],Re.uniform2f(B.location,pa,va),Re.uniform1i(G.location,j.bind()),zn=be.pixelRatio,Re.uniform1f(W.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Re.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Bl=dl[1],Re.uniform2f(H.location,xl,Bl),bl=xn.translate,eu=bl[0],Zl=bl[1],Re.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Re.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Er(Js),sl?cs=ye.createStream(Js):cs=ye.getElements(Js),cs&&Re.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,nl=xn.count,nl&&(zl=ft.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?Re.drawElements(0,nl,cs.type,ll<<(cs.type-5121>>1)):Re.drawArrays(0,ll,nl)),Fe.dirty=!0,Pt.setVAO(null),be.viewportWidth=Ai,be.viewportHeight=en,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Fr),ta.unbind(),j.unbind(),sl&&ye.destroyStream(cs))},scope:function(xn,bi,Xr){var ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf;ct=xn.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:be.framebufferWidth-tr,Zr="height"in ct?ct.height|0:be.framebufferHeight-pr,Ai=be.viewportWidth,be.viewportWidth=gr,en=be.viewportHeight,be.viewportHeight=Zr,ii=ti[0],ti[0]=tr,Xi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Rr[0],Rr[0]=ge,Ga=Rr[1],Rr[1]=ze,ma=Rr[2],Rr[2]=Le,oa=Rr[3],Rr[3]=de,ka=Ie.blend_enable,Ie.blend_enable=te,so=$i[0],$i[0]=ke,Kr=$i[1],$i[1]=Ee,Ia=$i[2],$i[2]=Se,Yo=$i[3],$i[3]=Ge,fa=Ie.depth_enable,Ie.depth_enable=De,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:be.framebufferWidth-Ta,ls="height"in kn?kn.height|0:be.framebufferHeight-ys,$a=ki[0],ki[0]=Ta,fo=ki[1],ki[1]=ys,mn=ki[2],ki[2]=uo,ra=ki[3],ki[3]=ls,wa=Ie.scissor_enable,Ie.scissor_enable=xe,ws=Ie.stencil_enable,Ie.stencil_enable=Ne,Co=Fe.profile,Co&&(Po=performance.now(),r.count++),Wi=xn.elements,gn=null,Ps=Er(Wi),Ps?gn=ye.createStream(Wi):gn=ye.getElements(Wi),Ha=ft.elements,ft.elements=gn,Sn=xn.offset,ao=ft.offset,ft.offset=Sn,Ba=xn.count,Ko=ft.count,ft.count=Ba,Qo=ft.primitive,ft.primitive=ce,Hi=zt[je],zt[je]=!1,Sa=zt[gt],zt[gt]=Qe,Qa=xn.opacity,vn=zt[qt],zt[qt]=Qa,da=U.call(this,be,xn,Xr),la=zt[at],zt[at]=da,vo=be.pixelRatio,As=zt[Ke],zt[Ke]=vo,ps=xn.scale,co=zt[Ct],zt[Ct]=ps,mo=xn.scaleFract,No=zt[wt],zt[wt]=mo,jn=xn.translate,Go=zt[Mt],zt[Mt]=jn,Ys=xn.translateFract,qs=zt[Bt],zt[Bt]=Ys,Ns=xn.markerTexture,Oa=zt[Zt],zt[Zt]=Ns,ha=C.call(this,be,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Er(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.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)):(Er(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Ri[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,rn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=x.call(this,be,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.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)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,be,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Er(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.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)):(Er(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Ri[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=ot.state,ot.state=Do,os=ot.x,ot.x=Lo,_l=ot.y,ot.y=xs,Ss=ot.z,ot.z=ks,po=ot.w,ot.w=Ea,go=ot.buffer,ot.buffer=Jn,ss=ot.size,ot.size=Oo,qo=ot.normalized,ot.normalized=rl,zo=ot.type,ot.type=Gs,io=ot.offset,ot.offset=bs,Io=ot.stride,ot.stride=zs,Da=ot.divisor,ot.divisor=$o,vs=M.call(this,be,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,Er(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.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)):(Er(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Ri[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=At.state,At.state=cl,Tt=At.x,At.x=el,Vt=At.y,At.y=Hs,wr=At.z,At.z=Ro,mr=At.w,At.w=tl,Fr=At.buffer,At.buffer=Fs,_i=At.size,At.size=hl,Si=At.normalized,At.normalized=Fa,Ci=At.type,At.type=Ms,Ki=At.offset,At.offset=jo,Fn=At.stride,At.stride=Rs,Pi=At.divisor,At.divisor=Is,di=b.call(this,be,xn,Xr),Li=!1,Mi=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Er(di)?(Li=!0,pa=fe.createStream(34962,di),is=pa.dtype):(pa=fe.getBuffer(di),pa?is=pa.dtype:"constant"in di?(Mi=2,typeof di.constant=="number"?(Gn=di.constant,ta=ya=ia=0):(Gn=di.constant.length>0?di.constant[0]:0,ta=di.constant.length>1?di.constant[1]:0,ya=di.constant.length>2?di.constant[2]:0,ia=di.constant.length>3?di.constant[3]:0)):(Er(di.buffer)?pa=fe.createStream(34962,di.buffer):pa=fe.getBuffer(di.buffer),is="type"in di?Ri[di.type]:pa.dtype,zn=!!di.normalized,va=di.size|0,Cs=di.offset|0,Ks=di.stride|0,dl=di.divisor|0)),xl=vt.state,vt.state=Mi,Bl=vt.x,vt.x=Gn,bl=vt.y,vt.y=ta,eu=vt.z,vt.z=ya,Zl=vt.w,vt.w=ia,Vl=vt.buffer,vt.buffer=pa,ja=vt.size,vt.size=va,ns=vt.normalized,vt.normalized=zn,Js=vt.type,vt.type=is,cs=vt.offset,vt.offset=Cs,sl=vt.stride,vt.stride=Ks,ll=vt.divisor,vt.divisor=dl,nl=f.call(this,be,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Gl=!1,Nl=5126,le=0,w=0,q=0,Er(nl)?(zl=!0,Os=fe.createStream(34962,nl),Nl=Os.dtype):(Os=fe.getBuffer(nl),Os?Nl=Os.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)):(Er(nl.buffer)?Os=fe.createStream(34962,nl.buffer):Os=fe.getBuffer(nl.buffer),Nl="type"in nl?Ri[nl.type]:Os.dtype,Gl=!!nl.normalized,Xl=nl.size|0,le=nl.offset|0,w=nl.stride|0,q=nl.divisor|0)),Q=Je.state,Je.state=Ml,ee=Je.x,Je.x=Rl,ue=Je.y,Je.y=Al,Ue=Je.z,Je.z=Ll,rt=Je.w,Je.w=ms,mt=Je.buffer,Je.buffer=Os,Ft=Je.size,Je.size=Xl,ir=Je.normalized,Je.normalized=Gl,or=Je.type,Je.type=Nl,kr=Je.offset,Je.offset=le,Vr=Je.stride,Je.stride=w,he=Je.divisor,Je.divisor=q,Me=h.call(this,be,xn,Xr),qe=!1,Ve=1,lt=0,it=0,pt=0,Ht=0,nr=null,fr=0,Ar=!1,Ir=5126,ri=0,li=0,Ei=0,Er(Me)?(qe=!0,nr=fe.createStream(34962,Me),Ir=nr.dtype):(nr=fe.getBuffer(Me),nr?Ir=nr.dtype:"constant"in Me?(Ve=2,typeof Me.constant=="number"?(lt=Me.constant,it=pt=Ht=0):(lt=Me.constant.length>0?Me.constant[0]:0,it=Me.constant.length>1?Me.constant[1]:0,pt=Me.constant.length>2?Me.constant[2]:0,Ht=Me.constant.length>3?Me.constant[3]:0)):(Er(Me.buffer)?nr=fe.createStream(34962,Me.buffer):nr=fe.getBuffer(Me.buffer),Ir="type"in Me?Ri[Me.type]:nr.dtype,Ar=!!Me.normalized,fr=Me.size|0,ri=Me.offset|0,li=Me.stride|0,Ei=Me.divisor|0)),hn=He.state,He.state=Ve,Zn=He.x,He.x=lt,Yn=He.y,He.y=it,Ua=He.z,He.z=pt,Fo=He.w,He.w=Ht,vl=He.buffer,He.buffer=nr,Us=He.size,He.size=fr,ml=He.normalized,He.normalized=Ar,au=He.type,He.type=Ir,Sl=He.offset,He.offset=ri,Yl=He.stride,He.stride=li,Ol=He.divisor,He.divisor=Ei,ou=u.call(this,be,xn,Xr),Pu=!1,nu=1,tu=0,Hu=0,$u=0,Ku=0,Wu=null,ju=0,sf=!1,_f=5126,Qu=0,ef=0,Z=0,Er(ou)?(Pu=!0,Wu=fe.createStream(34962,ou),_f=Wu.dtype):(Wu=fe.getBuffer(ou),Wu?_f=Wu.dtype:"constant"in ou?(nu=2,typeof ou.constant=="number"?(tu=ou.constant,Hu=$u=Ku=0):(tu=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)):(Er(ou.buffer)?Wu=fe.createStream(34962,ou.buffer):Wu=fe.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)),se=nt.state,nt.state=nu,Pe=nt.x,nt.x=tu,Ze=nt.y,nt.y=Hu,et=nt.z,nt.z=$u,st=nt.w,nt.w=Ku,jt=nt.buffer,nt.buffer=Wu,_t=nt.size,nt.size=ju,hr=nt.normalized,nt.normalized=sf,Cr=nt.type,nt.type=_f,zr=nt.offset,nt.offset=Qu,fi=nt.stride,nt.stride=ef,$r=nt.divisor,nt.divisor=Z,Bi=p.call(this,be,xn,Xr),fn=!1,mi=1,zi=0,ji=0,pn=0,sn=0,wi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Er(Bi)?(fn=!0,wi=fe.createStream(34962,Bi),Xo=wi.dtype):(wi=fe.getBuffer(Bi),wi?Xo=wi.dtype:"constant"in Bi?(mi=2,typeof Bi.constant=="number"?(zi=Bi.constant,ji=pn=sn=0):(zi=Bi.constant.length>0?Bi.constant[0]:0,ji=Bi.constant.length>1?Bi.constant[1]:0,pn=Bi.constant.length>2?Bi.constant[2]:0,sn=Bi.constant.length>3?Bi.constant[3]:0)):(Er(Bi.buffer)?wi=fe.createStream(34962,Bi.buffer):wi=fe.getBuffer(Bi.buffer),Xo="type"in Bi?Ri[Bi.type]:wi.dtype,no=!!Bi.normalized,xo=Bi.size|0,js=Bi.offset|0,El=Bi.stride|0,Pl=Bi.divisor|0)),pu=tt.state,tt.state=mi,Il=tt.x,tt.x=zi,fu=tt.y,tt.y=ji,Xu=tt.z,tt.z=pn,Vu=tt.w,tt.w=sn,tf=tt.buffer,tt.buffer=wi,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=pe.vert,pe.vert=It,pf=pe.frag,pe.frag=Yt,Fe.dirty=!0,bi(be,xn,Xr),be.viewportWidth=Ai,be.viewportHeight=en,ti[0]=ii,ti[1]=Xi,ti[2]=aa,ti[3]=Mn,Rr[0]=Un,Rr[1]=Ga,Rr[2]=ma,Rr[3]=oa,Ie.blend_enable=ka,$i[0]=so,$i[1]=Kr,$i[2]=Ia,$i[3]=Yo,Ie.depth_enable=fa,ki[0]=$a,ki[1]=fo,ki[2]=mn,ki[3]=ra,Ie.scissor_enable=wa,Ie.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&ye.destroyStream(gn),ft.elements=Ha,ft.offset=ao,ft.count=Ko,ft.primitive=Qo,zt[je]=Hi,zt[gt]=Sa,zt[qt]=vn,zt[at]=la,zt[Ke]=As,zt[Ct]=co,zt[wt]=No,zt[Mt]=Go,zt[Bt]=qs,zt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=rn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),ot.state=Aa,ot.x=os,ot.y=_l,ot.z=Ss,ot.w=po,ot.buffer=go,ot.size=ss,ot.normalized=qo,ot.type=zo,ot.offset=io,ot.stride=Io,ot.divisor=Da,fs&&fe.destroyStream(Fs),At.state=Bs,At.x=Tt,At.y=Vt,At.z=wr,At.w=mr,At.buffer=Fr,At.size=_i,At.normalized=Si,At.type=Ci,At.offset=Ki,At.stride=Fn,At.divisor=Pi,Li&&fe.destroyStream(pa),vt.state=xl,vt.x=Bl,vt.y=bl,vt.z=eu,vt.w=Zl,vt.buffer=Vl,vt.size=ja,vt.normalized=ns,vt.type=Js,vt.offset=cs,vt.stride=sl,vt.divisor=ll,zl&&fe.destroyStream(Os),Je.state=Q,Je.x=ee,Je.y=ue,Je.z=Ue,Je.w=rt,Je.buffer=mt,Je.size=Ft,Je.normalized=ir,Je.type=or,Je.offset=kr,Je.stride=Vr,Je.divisor=he,qe&&fe.destroyStream(nr),He.state=hn,He.x=Zn,He.y=Yn,He.z=Ua,He.w=Fo,He.buffer=vl,He.size=Us,He.normalized=ml,He.type=au,He.offset=Sl,He.stride=Yl,He.divisor=Ol,Pu&&fe.destroyStream(Wu),nt.state=se,nt.x=Pe,nt.y=Ze,nt.z=et,nt.w=st,nt.buffer=jt,nt.size=_t,nt.normalized=hr,nt.type=Cr,nt.offset=zr,nt.stride=fi,nt.divisor=$r,fn&&fe.destroyStream(wi),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,pe.vert=Mf,pe.frag=pf,Fe.dirty=!0},batch:function(xn,bi){var Xr,ct,tr,pr,gr,Zr,Ai;if(Xr=Gr.angle_instanced_arrays,ct=rr.next,ct!==rr.cur&&(ct?Re.bindFramebuffer(36160,ct.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=ct),Fe.dirty){var en,ii,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;en=Ie.dither,en!==Fe.dither&&(en?Re.enable(3024):Re.disable(3024),Fe.dither=en),ii=Di[0],Xi=Di[1],(ii!==ni[0]||Xi!==ni[1])&&(Re.blendEquationSeparate(ii,Xi),ni[0]=ii,ni[1]=Xi),aa=Ie.depth_func,aa!==Fe.depth_func&&(Re.depthFunc(aa),Fe.depth_func=aa),Mn=si[0],Un=si[1],(Mn!==Ti[0]||Un!==Ti[1])&&(Re.depthRange(Mn,Un),Ti[0]=Mn,Ti[1]=Un),Ga=Ie.depth_mask,Ga!==Fe.depth_mask&&(Re.depthMask(Ga),Fe.depth_mask=Ga),ma=Ni[0],oa=Ni[1],ka=Ni[2],so=Ni[3],(ma!==Rt[0]||oa!==Rt[1]||ka!==Rt[2]||so!==Rt[3])&&(Re.colorMask(ma,oa,ka,so),Rt[0]=ma,Rt[1]=oa,Rt[2]=ka,Rt[3]=so),Kr=Ie.cull_enable,Kr!==Fe.cull_enable&&(Kr?Re.enable(2884):Re.disable(2884),Fe.cull_enable=Kr),Ia=Ie.cull_face,Ia!==Fe.cull_face&&(Re.cullFace(Ia),Fe.cull_face=Ia),Yo=Ie.frontFace,Yo!==Fe.frontFace&&(Re.frontFace(Yo),Fe.frontFace=Yo),fa=Ie.lineWidth,fa!==Fe.lineWidth&&(Re.lineWidth(fa),Fe.lineWidth=fa),kn=Ie.polygonOffset_enable,kn!==Fe.polygonOffset_enable&&(kn?Re.enable(32823):Re.disable(32823),Fe.polygonOffset_enable=kn),Ta=yt[0],ys=yt[1],(Ta!==Gt[0]||ys!==Gt[1])&&(Re.polygonOffset(Ta,ys),Gt[0]=Ta,Gt[1]=ys),uo=Ie.sample_alpha,uo!==Fe.sample_alpha&&(uo?Re.enable(32926):Re.disable(32926),Fe.sample_alpha=uo),ls=Ie.sample_enable,ls!==Fe.sample_enable&&(ls?Re.enable(32928):Re.disable(32928),Fe.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==xr[0]||fo!==xr[1])&&(Re.sampleCoverage($a,fo),xr[0]=$a,xr[1]=fo),mn=Ie.stencil_mask,mn!==Fe.stencil_mask&&(Re.stencilMask(mn),Fe.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Nr[0]||wa!==Nr[1]||ws!==Nr[2])&&(Re.stencilFunc(ra,wa,ws),Nr[0]=ra,Nr[1]=wa,Nr[2]=ws),Co=Or[0],Po=Or[1],Wi=Or[2],gn=Or[3],(Co!==Hr[0]||Po!==Hr[1]||Wi!==Hr[2]||gn!==Hr[3])&&(Re.stencilOpSeparate(Co,Po,Wi,gn),Hr[0]=Co,Hr[1]=Po,Hr[2]=Wi,Hr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==gi[0]||Ha!==gi[1]||Sn!==gi[2]||ao!==gi[3])&&(Re.stencilOpSeparate(Ps,Ha,Sn,ao),gi[0]=Ps,gi[1]=Ha,gi[2]=Sn,gi[3]=ao)}Re.blendColor(0,0,0,1),pi[0]=0,pi[1]=0,pi[2]=0,pi[3]=1,cr?Re.enable(3042):Re.disable(3042),Fe.blend_enable=cr,Re.blendFuncSeparate(770,771,773,1),Qi[0]=770,Qi[1]=771,Qi[2]=773,Qi[3]=1,_r?Re.enable(2929):Re.disable(2929),Fe.depth_enable=_r,yr?Re.enable(3089):Re.disable(3089),Fe.scissor_enable=yr,Ut?Re.enable(2960):Re.disable(2960),Fe.stencil_enable=Ut,tr=Fe.profile,tr&&(pr=performance.now(),r.count+=bi),Re.useProgram(s.program),gr=Gr.angle_instanced_arrays;var Ba;for(Pt.setVAO(null),Re.uniform1i(P.location,!1),Re.uniform1i(G.location,j.bind()),Ba=ft.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)):(Er(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Ri[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=dt[Ra],jn===1?(Xn.buffer||Re.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Re.bindBuffer(34962,Oa.buffer),Re.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Re.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Re.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,be,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,rn=5126,Pa=0,to=0,yo=0,Er($n)?(Ka=!0,sa=fe.createStream(34962,$n),rn=sa.dtype):(sa=fe.getBuffer($n),sa?rn=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)):(Er($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),rn="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=dt[Jo],qn===1?(Ao.buffer||Re.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==rn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Re.bindBuffer(34962,sa.buffer),Re.vertexAttribPointer(Jo,Dn,rn,Na,to,Pa),Ao.type=rn,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&&(Re.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Re.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,be,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.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)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=dt[oo],Ca===1?(za.buffer||Re.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Re.bindBuffer(34962,To.buffer),Re.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Re.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Re.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,be,Ai,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,Er(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.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)):(Er(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Ri[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=_.location,Ea=dt[ks],us===1?(Ea.buffer||Re.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Re.bindBuffer(34962,Qs.buffer),Re.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&&(Re.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Re.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,be,Ai,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,Er(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Er(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Ri[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=dt[zo],Gs===1?(io.buffer||Re.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Re.bindBuffer(34962,os.buffer),Re.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&&(Re.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Re.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=C.call(this,be,Ai,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,Er(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.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)):(Er(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Ri[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,Bs=dt[Is],fs===1?(Bs.buffer||Re.enableVertexAttribArray(Is),Tt=Fs||1,(Bs.type!==Fa||Bs.size!==Tt||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Re.bindBuffer(34962,tl.buffer),Re.vertexAttribPointer(Is,Tt,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=Tt,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Re.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Re.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Vt=T.call(this,be,Ai,Zr),wr=!1,mr=1,Fr=0,_i=0,Si=0,Ci=0,Ki=null,Fn=0,Pi=!1,di=5126,Li=0,Mi=0,Gn=0,Er(Vt)?(wr=!0,Ki=fe.createStream(34962,Vt),di=Ki.dtype):(Ki=fe.getBuffer(Vt),Ki?di=Ki.dtype:"constant"in Vt?(mr=2,typeof Vt.constant=="number"?(Fr=Vt.constant,_i=Si=Ci=0):(Fr=Vt.constant.length>0?Vt.constant[0]:0,_i=Vt.constant.length>1?Vt.constant[1]:0,Si=Vt.constant.length>2?Vt.constant[2]:0,Ci=Vt.constant.length>3?Vt.constant[3]:0)):(Er(Vt.buffer)?Ki=fe.createStream(34962,Vt.buffer):Ki=fe.getBuffer(Vt.buffer),di="type"in Vt?Ri[Vt.type]:Ki.dtype,Pi=!!Vt.normalized,Fn=Vt.size|0,Li=Vt.offset|0,Mi=Vt.stride|0,Gn=Vt.divisor|0)),ta=L.location,ya=dt[ta],mr===1?(ya.buffer||Re.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==di||ya.size!==ia||ya.buffer!==Ki||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Mi)&&(Re.bindBuffer(34962,Ki.buffer),Re.vertexAttribPointer(ta,ia,di,Pi,Mi,Li),ya.type=di,ya.size=ia,ya.buffer=Ki,ya.normalized=Pi,ya.offset=Li,ya.stride=Mi),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Re.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Fr||ya.y!==_i||ya.z!==Si||ya.w!==Ci)&&(Re.vertexAttrib4f(ta,Fr,_i,Si,Ci),ya.x=Fr,ya.y=_i,ya.z=Si,ya.w=Ci)),pa=x.call(this,be,Ai,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,Er(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.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)):(Er(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.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=dt[ns],zn===1?(Js.buffer||Re.enableVertexAttribArray(ns),cs=Bl||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Re.bindBuffer(34962,xl.buffer),Re.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&&(Re.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Re.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=M.call(this,be,Ai,Zr),ll=!1,nl=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Gl=0,Nl=0,le=0,Er(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.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)):(Er(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Ri[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Nl=sl.stride|0,le=sl.divisor|0)),w=m.location,q=dt[w],nl===1?(q.buffer||Re.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Gl||q.stride!==Nl)&&(Re.bindBuffer(34962,Ll.buffer),Re.vertexAttribPointer(w,Q,Xl,Os,Nl,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Gl,q.stride=Nl),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Re.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Re.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Re.uniform1i(A.location,ue.bind()),Ue=Ai.opacity,(!Zr||rt!==Ue)&&(rt=Ue,Re.uniform1f(F.location,Ue)),mt=U.call(this,be,Ai,Zr),Ft=mt[0],or=mt[1],(!Zr||ir!==Ft||kr!==or)&&(ir=Ft,kr=or,Re.uniform2f(B.location,Ft,or)),Vr=be.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Re.uniform1f(W.location,Vr)),Me=Ai.scale,qe=Me[0],lt=Me[1],(!Zr||Ve!==qe||it!==lt)&&(Ve=qe,it=lt,Re.uniform2f(N.location,qe,lt)),pt=Ai.scaleFract,Ht=pt[0],fr=pt[1],(!Zr||nr!==Ht||Ar!==fr)&&(nr=Ht,Ar=fr,Re.uniform2f(H.location,Ht,fr)),Ir=Ai.translate,ri=Ir[0],Ei=Ir[1],(!Zr||li!==ri||hn!==Ei)&&(li=ri,hn=Ei,Re.uniform2f(re.location,ri,Ei)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Re.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Er(Us),au?ml=ye.createStream(Us):ml=ye.getElements(Us),ml&&Re.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Re.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Re.drawArrays(0,Sl,Yl)),be.viewportWidth=vn,be.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ki),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&ye.destroyStream(ml))}j.unbind(),Fe.dirty=!0,Pt.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var O8=Te((nbr,s7e)=>{s7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr){"use strict";var Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri;return Ut=t.gl,Re=t.context,be=t.strings,Oe=t.next,Ie=t.current,Fe=t.draw,ft=t.elements,ye=t.buffer,fe=t.shader,pe=t.attributes,dt=t.vao,Pt=t.uniforms,zt=t.framebuffer,rr=t.extensions,Gr=t.timer,Br=t.isBufferArgs,Er=Oe.blend_color,Rr=Ie.blend_color,pi=Oe.blend_equation,Di=Ie.blend_equation,ni=Oe.blend_func,$i=Ie.blend_func,Qi=Oe.depth_range,si=Ie.depth_range,Ti=Oe.colorMask,Ni=Ie.colorMask,Rt=Oe.polygonOffset_offset,yt=Ie.polygonOffset_offset,Gt=Oe.sample_coverage,Wt=Ie.sample_coverage,xr=Oe.stencil_func,Lr=Ie.stencil_func,Nr=Oe.stencil_opFront,Or=Ie.stencil_opFront,Hr=Oe.stencil_opBack,jr=Ie.stencil_opBack,gi=Oe.scissor_box,ki=Ie.scissor_box,Vi=Oe.viewport,ti=Ie.viewport,tn={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},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},nn={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,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,bi=zt.next,bi!==zt.cur&&(bi?Ut.bindFramebuffer(36160,bi.framebuffer):Ut.bindFramebuffer(36160,null),zt.cur=bi),Ie.dirty){var ll,nl,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht;ll=Oe.dither,ll!==Ie.dither&&(ll?Ut.enable(3024):Ut.disable(3024),Ie.dither=ll),nl=pi[0],zl=pi[1],(nl!==Di[0]||zl!==Di[1])&&(Ut.blendEquationSeparate(nl,zl),Di[0]=nl,Di[1]=zl),Ml=Oe.depth_func,Ml!==Ie.depth_func&&(Ut.depthFunc(Ml),Ie.depth_func=Ml),Rl=Qi[0],Al=Qi[1],(Rl!==si[0]||Al!==si[1])&&(Ut.depthRange(Rl,Al),si[0]=Rl,si[1]=Al),Ll=Oe.depth_mask,Ll!==Ie.depth_mask&&(Ut.depthMask(Ll),Ie.depth_mask=Ll),ms=Ti[0],Os=Ti[1],Xl=Ti[2],Gl=Ti[3],(ms!==Ni[0]||Os!==Ni[1]||Xl!==Ni[2]||Gl!==Ni[3])&&(Ut.colorMask(ms,Os,Xl,Gl),Ni[0]=ms,Ni[1]=Os,Ni[2]=Xl,Ni[3]=Gl),Nl=Oe.cull_enable,Nl!==Ie.cull_enable&&(Nl?Ut.enable(2884):Ut.disable(2884),Ie.cull_enable=Nl),le=Oe.cull_face,le!==Ie.cull_face&&(Ut.cullFace(le),Ie.cull_face=le),w=Oe.frontFace,w!==Ie.frontFace&&(Ut.frontFace(w),Ie.frontFace=w),q=Oe.lineWidth,q!==Ie.lineWidth&&(Ut.lineWidth(q),Ie.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Ie.polygonOffset_enable&&(Q?Ut.enable(32823):Ut.disable(32823),Ie.polygonOffset_enable=Q),ee=Rt[0],ue=Rt[1],(ee!==yt[0]||ue!==yt[1])&&(Ut.polygonOffset(ee,ue),yt[0]=ee,yt[1]=ue),Ue=Oe.sample_alpha,Ue!==Ie.sample_alpha&&(Ue?Ut.enable(32926):Ut.disable(32926),Ie.sample_alpha=Ue),rt=Oe.sample_enable,rt!==Ie.sample_enable&&(rt?Ut.enable(32928):Ut.disable(32928),Ie.sample_enable=rt),mt=Gt[0],Ft=Gt[1],(mt!==Wt[0]||Ft!==Wt[1])&&(Ut.sampleCoverage(mt,Ft),Wt[0]=mt,Wt[1]=Ft),ir=Oe.stencil_mask,ir!==Ie.stencil_mask&&(Ut.stencilMask(ir),Ie.stencil_mask=ir),or=xr[0],kr=xr[1],Vr=xr[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ut.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Nr[0],Me=Nr[1],qe=Nr[2],Ve=Nr[3],(he!==Or[0]||Me!==Or[1]||qe!==Or[2]||Ve!==Or[3])&&(Ut.stencilOpSeparate(he,Me,qe,Ve),Or[0]=he,Or[1]=Me,Or[2]=qe,Or[3]=Ve),lt=Hr[0],it=Hr[1],pt=Hr[2],Ht=Hr[3],(lt!==jr[0]||it!==jr[1]||pt!==jr[2]||Ht!==jr[3])&&(Ut.stencilOpSeparate(lt,it,pt,Ht),jr[0]=lt,jr[1]=it,jr[2]=pt,jr[3]=Ht)}Xr=Ii.viewport,ct=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ct,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,Ut.viewport(ct,tr,pr,gr),ti[0]=ct,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ut.blendColor(0,0,0,1),Rr[0]=0,Rr[1]=0,Rr[2]=0,Rr[3]=1,n?Ut.enable(3042):Ut.disable(3042),Ie.blend_enable=n,Ut.blendFuncSeparate(770,771,773,1),$i[0]=770,$i[1]=771,$i[2]=773,$i[3]=1,i?Ut.enable(2929):Ut.disable(2929),Ie.depth_enable=i,en=Ii.viewport,ii=en.x|0,Xi=en.y|0,aa="width"in en?en.width|0:Re.framebufferWidth-ii,Mn="height"in en?en.height|0:Re.framebufferHeight-Xi,Ut.scissor(ii,Xi,aa,Mn),ki[0]=ii,ki[1]=Xi,ki[2]=aa,ki[3]=Mn,a?Ut.enable(3089):Ut.disable(3089),Ie.scissor_enable=a,o?Ut.enable(2960):Ut.disable(2960),Ie.stencil_enable=o,Un=Ie.profile,Un&&(Ga=performance.now(),r.count++),Ut.useProgram(s.program),ma=rr.angle_instanced_arrays,dt.setVAO(null),oa=u.call(this,Re,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,Br(oa)?(ka=!0,kn=ye.createStream(34962,oa),uo=kn.dtype):(kn=ye.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)):(Br(oa.buffer)?kn=ye.createStream(34962,oa.buffer):kn=ye.getBuffer(oa.buffer),uo="type"in oa?nn[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=pe[mn],so===1?(ra.buffer||Ut.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ut.bindBuffer(34962,kn.buffer),Ut.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&&(Ut.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ut.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Re,Ii,0),Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,Br(ws)?(Co=!0,Sn=ye.createStream(34962,ws),Ko=Sn.dtype):(Sn=ye.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)):(Br(ws.buffer)?Sn=ye.createStream(34962,ws.buffer):Sn=ye.getBuffer(ws.buffer),Ko="type"in ws?nn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Hi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=pe[Qa],Po===1?(vn.buffer||Ut.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(Ut.bindBuffer(34962,Sn.buffer),Ut.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ut.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ut.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Re,Ii,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Br(la)?(vo=!0,jn=ye.createStream(34962,la),qs=jn.dtype):(jn=ye.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)):(Br(la.buffer)?jn=ye.createStream(34962,la.buffer):jn=ye.getBuffer(la.buffer),qs="type"in la?nn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=pe[Vs],As===1?(Ya.buffer||Ut.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ut.bindBuffer(34962,jn.buffer),Ut.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ut.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ut.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Re,Ii,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Br(Vn)?(wo=!0,qn=ye.createStream(34962,Vn),lo=qn.dtype):(qn=ye.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=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)):(Br(Vn.buffer)?qn=ye.createStream(34962,Vn.buffer):qn=ye.getBuffer(Vn.buffer),lo="type"in Vn?nn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=_.location,rn=pe[Na],Ra===1?(rn.buffer||Ut.enableVertexAttribArray(Na),Pa=Eo||1,(rn.type!==lo||rn.size!==Pa||rn.buffer!==qn||rn.normalized!==Ja||rn.offset!==eo||rn.stride!==sa)&&(Ut.bindBuffer(34962,qn.buffer),Ut.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),rn.type=lo,rn.size=Pa,rn.buffer=qn,rn.normalized=Ja,rn.offset=eo,rn.stride=sa),rn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),rn.divisor=es)):(rn.buffer&&(Ut.disableVertexAttribArray(Na),rn.buffer=null),(rn.x!==Xn||rn.y!==un||rn.z!==$n||rn.w!==Ka)&&(Ut.vertexAttrib4f(Na,Xn,un,$n,Ka),rn.x=Xn,rn.y=un,rn.z=$n,rn.w=Ka)),to=b.call(this,Re,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,Br(to)?(yo=!0,Ca=ye.createStream(34962,to),Ho=Ca.dtype):(Ca=ye.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)):(Br(to.buffer)?Ca=ye.createStream(34962,to.buffer):Ca=ye.getBuffer(to.buffer),Ho="type"in to?nn[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=pe[Wo],Jo===1?(qa.buffer||Ut.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ut.bindBuffer(34962,Ca.buffer),Ut.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ut.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ut.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=C.call(this,Re,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,Br(Bo)?(ko=!0,us=ye.createStream(34962,Bo),as=us.dtype):(us=ye.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Br(Bo.buffer)?us=ye.createStream(34962,Bo.buffer):us=ye.getBuffer(Bo.buffer),as="type"in Bo?nn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=pe[gs],oo===1?(Vo.buffer||Ut.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ut.bindBuffer(34962,us.buffer),Ut.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&&(Ut.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ut.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Re,Ii,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Br(Lo)?(xs=!0,Gs=ye.createStream(34962,Lo),$o=Gs.dtype):(Gs=ye.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Br(Lo.buffer)?Gs=ye.createStream(34962,Lo.buffer):Gs=ye.getBuffer(Lo.buffer),$o="type"in Lo?nn[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=pe[Ss],ks===1?(po.buffer||Ut.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ut.bindBuffer(34962,Gs.buffer),Ut.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&&(Ut.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ut.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=x.call(this,Re,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,Br(ss)?(qo=!0,fs=ye.createStream(34962,ss),Hs=fs.dtype):(fs=ye.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)):(Br(ss.buffer)?fs=ye.createStream(34962,ss.buffer):fs=ye.getBuffer(ss.buffer),Hs="type"in ss?nn[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=pe[hl],zo===1?(Fa.buffer||Ut.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ut.bindBuffer(34962,fs.buffer),Ut.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&&(Ut.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ut.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=M.call(this,Re,Ii,0),Rs=!1,Is=1,Bs=0,Tt=0,Vt=0,wr=0,mr=null,Fr=0,_i=!1,Si=5126,Ci=0,Ki=0,Fn=0,Br(jo)?(Rs=!0,mr=ye.createStream(34962,jo),Si=mr.dtype):(mr=ye.getBuffer(jo),mr?Si=mr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,Tt=Vt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,Tt=jo.constant.length>1?jo.constant[1]:0,Vt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Br(jo.buffer)?mr=ye.createStream(34962,jo.buffer):mr=ye.getBuffer(jo.buffer),Si="type"in jo?nn[jo.type]:mr.dtype,_i=!!jo.normalized,Fr=jo.size|0,Ci=jo.offset|0,Ki=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,di=pe[Pi],Is===1?(di.buffer||Ut.enableVertexAttribArray(Pi),Li=Fr||1,(di.type!==Si||di.size!==Li||di.buffer!==mr||di.normalized!==_i||di.offset!==Ci||di.stride!==Ki)&&(Ut.bindBuffer(34962,mr.buffer),Ut.vertexAttribPointer(Pi,Li,Si,_i,Ki,Ci),di.type=Si,di.size=Li,di.buffer=mr,di.normalized=_i,di.offset=Ci,di.stride=Ki),di.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),di.divisor=Fn)):(di.buffer&&(Ut.disableVertexAttribArray(Pi),di.buffer=null),(di.x!==Bs||di.y!==Tt||di.z!==Vt||di.w!==wr)&&(Ut.vertexAttrib4f(Pi,Bs,Tt,Vt,wr),di.x=Bs,di.y=Tt,di.z=Vt,di.w=wr)),Ut.uniform1i(P.location,!1),Mi=Ii.opacity,Ut.uniform1f(A.location,Mi),Gn=B.call(this,Re,Ii,0),ta=Gn[0],ya=Gn[1],Ut.uniform2f(F.location,ta,ya),Ut.uniform1i(U.location,G.bind()),ia=Re.pixelRatio,Ut.uniform1f(j.location,ia),pa=Ii.scale,va=pa[0],zn=pa[1],Ut.uniform2f(W.location,va,zn),is=Ii.scaleFract,Cs=is[0],Ks=is[1],Ut.uniform2f(N.location,Cs,Ks),dl=Ii.translate,xl=dl[0],Bl=dl[1],Ut.uniform2f(H.location,xl,Bl),bl=Ii.translateFract,eu=bl[0],Zl=bl[1],Ut.uniform2f(re.location,eu,Zl),Vl=Ii.elements,ja=null,ns=Br(Vl),ns?ja=ft.createStream(Vl):ja=ft.getElements(Vl),ja&&Ut.bindBuffer(34963,ja.buffer.buffer),Js=Ii.offset,cs=Ii.count,cs&&(sl=Fe.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?Ut.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ut.drawArrays(0,Js,cs)),Ie.dirty=!0,dt.setVAO(null),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&ye.destroyStream(kn),Co&&ye.destroyStream(Sn),vo&&ye.destroyStream(jn),wo&&ye.destroyStream(qn),yo&&ye.destroyStream(Ca),ko&&ye.destroyStream(us),xs&&ye.destroyStream(Gs),qo&&ye.destroyStream(fs),Rs&&ye.destroyStream(mr),G.unbind(),ns&&ft.destroyStream(ja))},scope:function(Ii,xn,bi){var Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf;Xr=Ii.viewport,ct=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ct,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,en=Vi[0],Vi[0]=ct,ii=Vi[1],Vi[1]=tr,Xi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Er[0],Er[0]=ae,Un=Er[1],Er[1]=ge,Ga=Er[2],Er[2]=ze,ma=Er[3],Er[3]=Le,oa=Oe.blend_enable,Oe.blend_enable=de,ka=ni[0],ni[0]=te,so=ni[1],ni[1]=ke,Kr=ni[2],ni[2]=Ee,Ia=ni[3],ni[3]=Se,Yo=Oe.depth_enable,Oe.depth_enable=Ge,fa=Ii.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Re.framebufferWidth-kn,uo="height"in fa?fa.height|0:Re.framebufferHeight-Ta,ls=gi[0],gi[0]=kn,$a=gi[1],gi[1]=Ta,fo=gi[2],gi[2]=ys,mn=gi[3],gi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=De,wa=Oe.stencil_enable,Oe.stencil_enable=xe,ws=Ie.profile,ws&&(Co=performance.now(),r.count++),Po=Ii.elements,Wi=null,gn=Br(Po),gn?Wi=ft.createStream(Po):Wi=ft.getElements(Po),Ps=Fe.elements,Fe.elements=Wi,Ha=Ii.offset,Sn=Fe.offset,Fe.offset=Ha,ao=Ii.count,Ba=Fe.count,Fe.count=ao,Ko=Fe.primitive,Fe.primitive=Ne,Qo=Pt[ce],Pt[ce]=!1,Hi=Pt[Qe],Pt[Qe]=je,Sa=Ii.opacity,Qa=Pt[gt],Pt[gt]=Sa,vn=B.call(this,Re,Ii,bi),da=Pt[qt],Pt[qt]=vn,la=Re.pixelRatio,vo=Pt[at],Pt[at]=la,As=Ii.scale,ps=Pt[Ke],Pt[Ke]=As,co=Ii.scaleFract,mo=Pt[Ct],Pt[Ct]=co,No=Ii.translate,jn=Pt[wt],Pt[wt]=No,Go=Ii.translateFract,Ys=Pt[Mt],Pt[Mt]=Go,qs=Ii.markerTexture,Ns=Pt[Bt],Pt[Bt]=qs,Oa=C.call(this,Re,Ii,bi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Br(Oa)?(ha=!0,Ra=ye.createStream(34962,Oa),$n=Ra.dtype):(Ra=ye.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Br(Oa.buffer)?Ra=ye.createStream(34962,Oa.buffer):Ra=ye.getBuffer(Oa.buffer),$n="type"in Oa?nn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,rn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=x.call(this,Re,Ii,bi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Br(Dn)?(_a=!0,Wa=ye.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ye.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)):(Br(Dn.buffer)?Wa=ye.createStream(34962,Dn.buffer):Wa=ye.getBuffer(Dn.buffer),Wo="type"in Dn?nn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Re,Ii,bi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Br(ho)?(gs=!0,Ea=ye.createStream(34962,ho),rl=Ea.dtype):(Ea=ye.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)):(Br(ho.buffer)?Ea=ye.createStream(34962,ho.buffer):Ea=ye.getBuffer(ho.buffer),rl="type"in ho?nn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=M.call(this,Re,Ii,bi),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,Br(Da)?(vs=!0,tl=ye.createStream(34962,Da),Fa=tl.dtype):(tl=ye.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)):(Br(Da.buffer)?tl=ye.createStream(34962,Da.buffer):tl=ye.getBuffer(Da.buffer),Fa="type"in Da?nn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=ot.state,ot.state=fs,Bs=ot.x,ot.x=cl,Tt=ot.y,ot.y=el,Vt=ot.z,ot.z=Hs,wr=ot.w,ot.w=Ro,mr=ot.buffer,ot.buffer=tl,Fr=ot.size,ot.size=Fs,_i=ot.normalized,ot.normalized=hl,Si=ot.type,ot.type=Fa,Ci=ot.offset,ot.offset=Ms,Ki=ot.stride,ot.stride=jo,Fn=ot.divisor,ot.divisor=Rs,Pi=b.call(this,Re,Ii,bi),di=!1,Li=1,Mi=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Br(Pi)?(di=!0,ia=ye.createStream(34962,Pi),zn=ia.dtype):(ia=ye.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Mi=Pi.constant,Gn=ta=ya=0):(Mi=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Br(Pi.buffer)?ia=ye.createStream(34962,Pi.buffer):ia=ye.getBuffer(Pi.buffer),zn="type"in Pi?nn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=At.state,At.state=Li,xl=At.x,At.x=Mi,Bl=At.y,At.y=Gn,bl=At.z,At.z=ta,eu=At.w,At.w=ya,Zl=At.buffer,At.buffer=ia,Vl=At.size,At.size=pa,ja=At.normalized,At.normalized=va,ns=At.type,At.type=zn,Js=At.offset,At.offset=is,cs=At.stride,At.stride=Cs,sl=At.divisor,At.divisor=Ks,ll=f.call(this,Re,Ii,bi),nl=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Gl=5126,Nl=0,le=0,w=0,Br(ll)?(nl=!0,ms=ye.createStream(34962,ll),Gl=ms.dtype):(ms=ye.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)):(Br(ll.buffer)?ms=ye.createStream(34962,ll.buffer):ms=ye.getBuffer(ll.buffer),Gl="type"in ll?nn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Nl=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=vt.state,vt.state=zl,Q=vt.x,vt.x=Ml,ee=vt.y,vt.y=Rl,ue=vt.z,vt.z=Al,Ue=vt.w,vt.w=Ll,rt=vt.buffer,vt.buffer=ms,mt=vt.size,vt.size=Os,Ft=vt.normalized,vt.normalized=Xl,ir=vt.type,vt.type=Gl,or=vt.offset,vt.offset=Nl,kr=vt.stride,vt.stride=le,Vr=vt.divisor,vt.divisor=w,he=h.call(this,Re,Ii,bi),Me=!1,qe=1,Ve=0,lt=0,it=0,pt=0,Ht=null,nr=0,fr=!1,Ar=5126,Ir=0,ri=0,li=0,Br(he)?(Me=!0,Ht=ye.createStream(34962,he),Ar=Ht.dtype):(Ht=ye.getBuffer(he),Ht?Ar=Ht.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(Ve=he.constant,lt=it=pt=0):(Ve=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,it=he.constant.length>2?he.constant[2]:0,pt=he.constant.length>3?he.constant[3]:0)):(Br(he.buffer)?Ht=ye.createStream(34962,he.buffer):Ht=ye.getBuffer(he.buffer),Ar="type"in he?nn[he.type]:Ht.dtype,fr=!!he.normalized,nr=he.size|0,Ir=he.offset|0,ri=he.stride|0,li=he.divisor|0)),Ei=Je.state,Je.state=qe,hn=Je.x,Je.x=Ve,Zn=Je.y,Je.y=lt,Yn=Je.z,Je.z=it,Ua=Je.w,Je.w=pt,Fo=Je.buffer,Je.buffer=Ht,vl=Je.size,Je.size=nr,Us=Je.normalized,Je.normalized=fr,ml=Je.type,Je.type=Ar,au=Je.offset,Je.offset=Ir,Sl=Je.stride,Je.stride=ri,Yl=Je.divisor,Je.divisor=li,Ol=u.call(this,Re,Ii,bi),ou=!1,Pu=1,nu=0,tu=0,Hu=0,$u=0,Ku=null,Wu=0,ju=!1,sf=5126,_f=0,Qu=0,ef=0,Br(Ol)?(ou=!0,Ku=ye.createStream(34962,Ol),sf=Ku.dtype):(Ku=ye.getBuffer(Ol),Ku?sf=Ku.dtype:"constant"in Ol?(Pu=2,typeof Ol.constant=="number"?(nu=Ol.constant,tu=Hu=$u=0):(nu=Ol.constant.length>0?Ol.constant[0]:0,tu=Ol.constant.length>1?Ol.constant[1]:0,Hu=Ol.constant.length>2?Ol.constant[2]:0,$u=Ol.constant.length>3?Ol.constant[3]:0)):(Br(Ol.buffer)?Ku=ye.createStream(34962,Ol.buffer):Ku=ye.getBuffer(Ol.buffer),sf="type"in Ol?nn[Ol.type]:Ku.dtype,ju=!!Ol.normalized,Wu=Ol.size|0,_f=Ol.offset|0,Qu=Ol.stride|0,ef=Ol.divisor|0)),Z=He.state,He.state=Pu,se=He.x,He.x=nu,Pe=He.y,He.y=tu,Ze=He.z,He.z=Hu,et=He.w,He.w=$u,st=He.buffer,He.buffer=Ku,jt=He.size,He.size=Wu,_t=He.normalized,He.normalized=ju,hr=He.type,He.type=sf,Cr=He.offset,He.offset=_f,zr=He.stride,He.stride=Qu,fi=He.divisor,He.divisor=ef,$r=p.call(this,Re,Ii,bi),Bi=!1,fn=1,mi=0,zi=0,ji=0,pn=0,sn=null,wi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Br($r)?(Bi=!0,sn=ye.createStream(34962,$r),no=sn.dtype):(sn=ye.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(mi=$r.constant,zi=ji=pn=0):(mi=$r.constant.length>0?$r.constant[0]:0,zi=$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)):(Br($r.buffer)?sn=ye.createStream(34962,$r.buffer):sn=ye.getBuffer($r.buffer),no="type"in $r?nn[$r.type]:sn.dtype,xo=!!$r.normalized,wi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=nt.state,nt.state=fn,pu=nt.x,nt.x=mi,Il=nt.y,nt.y=zi,fu=nt.z,nt.z=ji,Xu=nt.w,nt.w=pn,Vu=nt.buffer,nt.buffer=sn,tf=nt.size,nt.size=wi,ds=nt.normalized,nt.normalized=xo,Wl=nt.type,nt.type=no,Au=nt.offset,nt.offset=Xo,Tu=nt.stride,nt.stride=js,lf=nt.divisor,nt.divisor=El,hf=fe.vert,fe.vert=tt,Mf=fe.frag,fe.frag=It,Ie.dirty=!0,xn(Re,Ii,bi),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Vi[0]=en,Vi[1]=ii,Vi[2]=Xi,Vi[3]=aa,Er[0]=Mn,Er[1]=Un,Er[2]=Ga,Er[3]=ma,Oe.blend_enable=oa,ni[0]=ka,ni[1]=so,ni[2]=Kr,ni[3]=Ia,Oe.depth_enable=Yo,gi[0]=ls,gi[1]=$a,gi[2]=fo,gi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ft.destroyStream(Wi),Fe.elements=Ps,Fe.offset=Sn,Fe.count=Ba,Fe.primitive=Ko,Pt[ce]=Qo,Pt[Qe]=Hi,Pt[gt]=Qa,Pt[qt]=da,Pt[at]=vo,Pt[Ke]=ps,Pt[Ct]=mo,Pt[wt]=jn,Pt[Mt]=Ys,Pt[Bt]=Ns,ha&&ye.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=rn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&ye.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&ye.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&ye.destroyStream(tl),ot.state=Is,ot.x=Bs,ot.y=Tt,ot.z=Vt,ot.w=wr,ot.buffer=mr,ot.size=Fr,ot.normalized=_i,ot.type=Si,ot.offset=Ci,ot.stride=Ki,ot.divisor=Fn,di&&ye.destroyStream(ia),At.state=dl,At.x=xl,At.y=Bl,At.z=bl,At.w=eu,At.buffer=Zl,At.size=Vl,At.normalized=ja,At.type=ns,At.offset=Js,At.stride=cs,At.divisor=sl,nl&&ye.destroyStream(ms),vt.state=q,vt.x=Q,vt.y=ee,vt.z=ue,vt.w=Ue,vt.buffer=rt,vt.size=mt,vt.normalized=Ft,vt.type=ir,vt.offset=or,vt.stride=kr,vt.divisor=Vr,Me&&ye.destroyStream(Ht),Je.state=Ei,Je.x=hn,Je.y=Zn,Je.z=Yn,Je.w=Ua,Je.buffer=Fo,Je.size=vl,Je.normalized=Us,Je.type=ml,Je.offset=au,Je.stride=Sl,Je.divisor=Yl,ou&&ye.destroyStream(Ku),He.state=Z,He.x=se,He.y=Pe,He.z=Ze,He.w=et,He.buffer=st,He.size=jt,He.normalized=_t,He.type=hr,He.offset=Cr,He.stride=zr,He.divisor=fi,Bi&&ye.destroyStream(sn),nt.state=Pl,nt.x=pu,nt.y=Il,nt.z=fu,nt.w=Xu,nt.buffer=Vu,nt.size=tf,nt.normalized=ds,nt.type=Wl,nt.offset=Au,nt.stride=Tu,nt.divisor=lf,fe.vert=hf,fe.frag=Mf,Ie.dirty=!0},batch:function(Ii,xn){var bi,Xr,ct,tr,pr,gr,Zr;if(bi=rr.angle_instanced_arrays,Xr=zt.next,Xr!==zt.cur&&(Xr?Ut.bindFramebuffer(36160,Xr.framebuffer):Ut.bindFramebuffer(36160,null),zt.cur=Xr),Ie.dirty){var Ai,en,ii,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;Ai=Oe.dither,Ai!==Ie.dither&&(Ai?Ut.enable(3024):Ut.disable(3024),Ie.dither=Ai),en=pi[0],ii=pi[1],(en!==Di[0]||ii!==Di[1])&&(Ut.blendEquationSeparate(en,ii),Di[0]=en,Di[1]=ii),Xi=Oe.depth_func,Xi!==Ie.depth_func&&(Ut.depthFunc(Xi),Ie.depth_func=Xi),aa=Qi[0],Mn=Qi[1],(aa!==si[0]||Mn!==si[1])&&(Ut.depthRange(aa,Mn),si[0]=aa,si[1]=Mn),Un=Oe.depth_mask,Un!==Ie.depth_mask&&(Ut.depthMask(Un),Ie.depth_mask=Un),Ga=Ti[0],ma=Ti[1],oa=Ti[2],ka=Ti[3],(Ga!==Ni[0]||ma!==Ni[1]||oa!==Ni[2]||ka!==Ni[3])&&(Ut.colorMask(Ga,ma,oa,ka),Ni[0]=Ga,Ni[1]=ma,Ni[2]=oa,Ni[3]=ka),so=Oe.cull_enable,so!==Ie.cull_enable&&(so?Ut.enable(2884):Ut.disable(2884),Ie.cull_enable=so),Kr=Oe.cull_face,Kr!==Ie.cull_face&&(Ut.cullFace(Kr),Ie.cull_face=Kr),Ia=Oe.frontFace,Ia!==Ie.frontFace&&(Ut.frontFace(Ia),Ie.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Ie.lineWidth&&(Ut.lineWidth(Yo),Ie.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Ie.polygonOffset_enable&&(fa?Ut.enable(32823):Ut.disable(32823),Ie.polygonOffset_enable=fa),kn=Rt[0],Ta=Rt[1],(kn!==yt[0]||Ta!==yt[1])&&(Ut.polygonOffset(kn,Ta),yt[0]=kn,yt[1]=Ta),ys=Oe.sample_alpha,ys!==Ie.sample_alpha&&(ys?Ut.enable(32926):Ut.disable(32926),Ie.sample_alpha=ys),uo=Oe.sample_enable,uo!==Ie.sample_enable&&(uo?Ut.enable(32928):Ut.disable(32928),Ie.sample_enable=uo),ls=Gt[0],$a=Gt[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ut.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Ie.stencil_mask&&(Ut.stencilMask(fo),Ie.stencil_mask=fo),mn=xr[0],ra=xr[1],wa=xr[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ut.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!==Or[0]||Co!==Or[1]||Po!==Or[2]||Wi!==Or[3])&&(Ut.stencilOpSeparate(ws,Co,Po,Wi),Or[0]=ws,Or[1]=Co,Or[2]=Po,Or[3]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ut.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ut.blendColor(0,0,0,1),Rr[0]=0,Rr[1]=0,Rr[2]=0,Rr[3]=1,Yt?Ut.enable(3042):Ut.disable(3042),Ie.blend_enable=Yt,Ut.blendFuncSeparate(770,771,773,1),$i[0]=770,$i[1]=771,$i[2]=773,$i[3]=1,cr?Ut.enable(2929):Ut.disable(2929),Ie.depth_enable=cr,_r?Ut.enable(3089):Ut.disable(3089),Ie.scissor_enable=_r,yr?Ut.enable(2960):Ut.disable(2960),Ie.stencil_enable=yr,ct=Ie.profile,ct&&(tr=performance.now(),r.count+=xn),Ut.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(dt.setVAO(null),Ut.uniform1i(P.location,!1),Ut.uniform1i(U.location,G.bind()),ao=Fe.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)):(Br(co.buffer)?Ns=ye.createStream(34962,co.buffer):Ns=ye.getBuffer(co.buffer),Vs="type"in co?nn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=pe[wo],No===1?(Ra.buffer||Ut.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ut.bindBuffer(34962,Ns.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ut.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ut.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Re,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,rn=0,Pa=0,to=0,Br(un)?($n=!0,eo=ye.createStream(34962,un),Na=eo.dtype):(eo=ye.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Br(un.buffer)?eo=ye.createStream(34962,un.buffer):eo=ye.getBuffer(un.buffer),Na="type"in un?nn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,rn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=pe[yo],Ka===1?(Jo.buffer||Ut.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==rn||Jo.stride!==Pa)&&(Ut.bindBuffer(34962,eo.buffer),Ut.vertexAttribPointer(yo,Ao,Na,es,Pa,rn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=rn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ut.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ut.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Re,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Br(Dn)?(_a=!0,Wa=ye.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ye.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)):(Br(Dn.buffer)?Wa=ye.createStream(34962,Dn.buffer):Wa=ye.getBuffer(Dn.buffer),Wo="type"in Dn?nn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=pe[ko],Ws===1?(oo.buffer||Ut.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ut.bindBuffer(34962,Wa.buffer),Ut.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ut.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ut.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Re,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,Br(ea)?(rs=!0,Ma=ye.createStream(34962,ea),gs=Ma.dtype):(Ma=ye.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)):(Br(ea.buffer)?Ma=ye.createStream(34962,ea.buffer):Ma=ye.getBuffer(ea.buffer),gs="type"in ea?nn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=_.location,ks=pe[xs],$s===1?(ks.buffer||Ut.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ut.bindBuffer(34962,Ma.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ut.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ut.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Re,Zr,gr),Oo=!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,Br(Jn)?(Oo=!0,Aa=ye.createStream(34962,Jn),Ss=Aa.dtype):(Aa=ye.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)):(Br(Jn.buffer)?Aa=ye.createStream(34962,Jn.buffer):Aa=ye.getBuffer(Jn.buffer),Ss="type"in Jn?nn[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=pe[qo],rl===1?(zo.buffer||Ut.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ut.bindBuffer(34962,Aa.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ut.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ut.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=C.call(this,Re,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,Br(Io)?(Da=!0,Ro=ye.createStream(34962,Io),hl=Ro.dtype):(Ro=ye.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)):(Br(Io.buffer)?Ro=ye.createStream(34962,Io.buffer):Ro=ye.getBuffer(Io.buffer),hl="type"in Io?nn[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=pe[Rs],vs===1?(Is.buffer||Ut.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ut.bindBuffer(34962,Ro.buffer),Ut.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ut.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ut.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),Tt=T.call(this,Re,Zr,gr),Vt=!1,wr=1,mr=0,Fr=0,_i=0,Si=0,Ci=null,Ki=0,Fn=!1,Pi=5126,di=0,Li=0,Mi=0,Br(Tt)?(Vt=!0,Ci=ye.createStream(34962,Tt),Pi=Ci.dtype):(Ci=ye.getBuffer(Tt),Ci?Pi=Ci.dtype:"constant"in Tt?(wr=2,typeof Tt.constant=="number"?(mr=Tt.constant,Fr=_i=Si=0):(mr=Tt.constant.length>0?Tt.constant[0]:0,Fr=Tt.constant.length>1?Tt.constant[1]:0,_i=Tt.constant.length>2?Tt.constant[2]:0,Si=Tt.constant.length>3?Tt.constant[3]:0)):(Br(Tt.buffer)?Ci=ye.createStream(34962,Tt.buffer):Ci=ye.getBuffer(Tt.buffer),Pi="type"in Tt?nn[Tt.type]:Ci.dtype,Fn=!!Tt.normalized,Ki=Tt.size|0,di=Tt.offset|0,Li=Tt.stride|0,Mi=Tt.divisor|0)),Gn=L.location,ta=pe[Gn],wr===1?(ta.buffer||Ut.enableVertexAttribArray(Gn),ya=Ki||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==Ci||ta.normalized!==Fn||ta.offset!==di||ta.stride!==Li)&&(Ut.bindBuffer(34962,Ci.buffer),Ut.vertexAttribPointer(Gn,ya,Pi,Fn,Li,di),ta.type=Pi,ta.size=ya,ta.buffer=Ci,ta.normalized=Fn,ta.offset=di,ta.stride=Li),ta.divisor!==Mi&&(pr.vertexAttribDivisorANGLE(Gn,Mi),ta.divisor=Mi)):(ta.buffer&&(Ut.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==mr||ta.y!==Fr||ta.z!==_i||ta.w!==Si)&&(Ut.vertexAttrib4f(Gn,mr,Fr,_i,Si),ta.x=mr,ta.y=Fr,ta.z=_i,ta.w=Si)),ia=x.call(this,Re,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,Br(ia)?(pa=!0,dl=ye.createStream(34962,ia),bl=dl.dtype):(dl=ye.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)):(Br(ia.buffer)?dl=ye.createStream(34962,ia.buffer):dl=ye.getBuffer(ia.buffer),bl="type"in ia?nn[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=pe[ja],va===1?(ns.buffer||Ut.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Bl||ns.offset!==eu||ns.stride!==Zl)&&(Ut.bindBuffer(34962,dl.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Ut.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ut.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=M.call(this,Re,Zr,gr),sl=!1,ll=1,nl=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Gl=0,Nl=0,Br(cs)?(sl=!0,Al=ye.createStream(34962,cs),Os=Al.dtype):(Al=ye.getBuffer(cs),Al?Os=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)):(Br(cs.buffer)?Al=ye.createStream(34962,cs.buffer):Al=ye.getBuffer(cs.buffer),Os="type"in cs?nn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Nl=cs.divisor|0)),le=m.location,w=pe[le],ll===1?(w.buffer||Ut.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Ut.bindBuffer(34962,Al.buffer),Ut.vertexAttribPointer(le,q,Os,ms,Gl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Nl&&(pr.vertexAttribDivisorANGLE(le,Nl),w.divisor=Nl)):(w.buffer&&(Ut.disableVertexAttribArray(le),w.buffer=null),(w.x!==nl||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ut.vertexAttrib4f(le,nl,zl,Ml,Rl),w.x=nl,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ut.uniform1f(A.location,Q)),ue=B.call(this,Re,Zr,gr),Ue=ue[0],mt=ue[1],(!gr||rt!==Ue||Ft!==mt)&&(rt=Ue,Ft=mt,Ut.uniform2f(F.location,Ue,mt)),ir=Re.pixelRatio,(!gr||or!==ir)&&(or=ir,Ut.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Me=kr[1],(!gr||he!==Vr||qe!==Me)&&(he=Vr,qe=Me,Ut.uniform2f(W.location,Vr,Me)),Ve=Zr.scaleFract,lt=Ve[0],pt=Ve[1],(!gr||it!==lt||Ht!==pt)&&(it=lt,Ht=pt,Ut.uniform2f(N.location,lt,pt)),nr=Zr.translate,fr=nr[0],Ir=nr[1],(!gr||Ar!==fr||ri!==Ir)&&(Ar=fr,ri=Ir,Ut.uniform2f(H.location,fr,Ir)),li=Zr.translateFract,Ei=li[0],Zn=li[1],(!gr||hn!==Ei||Yn!==Zn)&&(hn=Ei,Yn=Zn,Ut.uniform2f(re.location,Ei,Zn)),Ua=Zr.elements,Fo=null,vl=Br(Ua),vl?Fo=ft.createStream(Ua):Fo=ft.getElements(Ua),Fo&&Ut.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ut.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ut.drawArrays(0,Us,ml)),Re.viewportWidth=Qa,Re.viewportHeight=vn,mo&&ye.destroyStream(Ns),$n&&ye.destroyStream(eo),_a&&ye.destroyStream(Wa),rs&&ye.destroyStream(Ma),Oo&&ye.destroyStream(Aa),Da&&ye.destroyStream(Ro),Vt&&ye.destroyStream(Ci),pa&&ye.destroyStream(dl),sl&&ye.destroyStream(Al),vl&&ft.destroyStream(Fo))}G.unbind(),Ie.dirty=!0,dt.setVAO(null),ct&&(r.cpuTime+=performance.now()-tr)}}}});var q8=Te((abr,l7e)=>{l7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je){"use strict";var He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi;return He=t.gl,nt=t.context,tt=t.strings,It=t.next,Yt=t.current,cr=t.draw,_r=t.elements,yr=t.buffer,Ut=t.shader,Re=t.attributes,be=t.vao,Oe=t.uniforms,Ie=t.framebuffer,Fe=t.extensions,ft=t.timer,ye=t.isBufferArgs,fe=It.blend_color,pe=Yt.blend_color,dt=It.blend_equation,Pt=Yt.blend_equation,zt=It.blend_func,rr=Yt.blend_func,Gr=It.depth_range,Br=Yt.depth_range,Er=It.colorMask,Rr=Yt.colorMask,pi=It.polygonOffset_offset,Di=Yt.polygonOffset_offset,ni=It.sample_coverage,$i=Yt.sample_coverage,Qi=It.stencil_func,si=Yt.stencil_func,Ti=It.stencil_opFront,Ni=Yt.stencil_opFront,Rt=It.stencil_opBack,yt=Yt.stencil_opBack,Gt=It.scissor_box,Wt=Yt.scissor_box,xr=It.viewport,Lr=Yt.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},Or={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},jr={add:32774,subtract:32778,"reverse subtract":32779},gi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ki={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,tn={},tn.buffer=i,tn.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Fi){var an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=Fe.angle_instanced_arrays,nn=Ie.next,nn!==Ie.cur&&(nn?He.bindFramebuffer(36160,nn.framebuffer):He.bindFramebuffer(36160,null),Ie.cur=nn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=It.dither,Ds!==Yt.dither&&(Ds?He.enable(3024):He.disable(3024),Yt.dither=Ds),fl=It.depth_func,fl!==Yt.depth_func&&(He.depthFunc(fl),Yt.depth_func=fl),as=Gr[0],Ma=Gr[1],(as!==Br[0]||Ma!==Br[1])&&(He.depthRange(as,Ma),Br[0]=as,Br[1]=Ma),Qs=It.depth_mask,Qs!==Yt.depth_mask&&(He.depthMask(Qs),Yt.depth_mask=Qs),ho=Er[0],gs=Er[1],Vo=Er[2],Do=Er[3],(ho!==Rr[0]||gs!==Rr[1]||Vo!==Rr[2]||Do!==Rr[3])&&(He.colorMask(ho,gs,Vo,Do),Rr[0]=ho,Rr[1]=gs,Rr[2]=Vo,Rr[3]=Do),Lo=It.cull_enable,Lo!==Yt.cull_enable&&(Lo?He.enable(2884):He.disable(2884),Yt.cull_enable=Lo),xs=It.cull_face,xs!==Yt.cull_face&&(He.cullFace(xs),Yt.cull_face=xs),ks=It.frontFace,ks!==Yt.frontFace&&(He.frontFace(ks),Yt.frontFace=ks),Ea=It.lineWidth,Ea!==Yt.lineWidth&&(He.lineWidth(Ea),Yt.lineWidth=Ea),Jn=It.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?He.enable(32823):He.disable(32823),Yt.polygonOffset_enable=Jn),Oo=pi[0],rl=pi[1],(Oo!==Di[0]||rl!==Di[1])&&(He.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=It.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?He.enable(32926):He.disable(32926),Yt.sample_alpha=Gs),bs=It.sample_enable,bs!==Yt.sample_enable&&(bs?He.enable(32928):He.disable(32928),Yt.sample_enable=bs),zs=ni[0],$o=ni[1],(zs!==$i[0]||$o!==$i[1])&&(He.sampleCoverage(zs,$o),$i[0]=zs,$i[1]=$o),Aa=It.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?He.enable(2960):He.disable(2960),Yt.stencil_enable=Aa),os=It.stencil_mask,os!==Yt.stencil_mask&&(He.stencilMask(os),Yt.stencil_mask=os),_l=Qi[0],Ss=Qi[1],po=Qi[2],(_l!==si[0]||Ss!==si[1]||po!==si[2])&&(He.stencilFunc(_l,Ss,po),si[0]=_l,si[1]=Ss,si[2]=po),go=Ti[0],ss=Ti[1],qo=Ti[2],zo=Ti[3],(go!==Ni[0]||ss!==Ni[1]||qo!==Ni[2]||zo!==Ni[3])&&(He.stencilOpSeparate(go,ss,qo,zo),Ni[0]=go,Ni[1]=ss,Ni[2]=qo,Ni[3]=zo),io=Rt[0],Io=Rt[1],Da=Rt[2],vs=Rt[3],(io!==yt[0]||Io!==yt[1]||Da!==yt[2]||vs!==yt[3])&&(He.stencilOpSeparate(io,Io,Da,vs),yt[0]=io,yt[1]=Io,yt[2]=Da,yt[3]=vs)}Ri=Fi.viewport,Ii=Ri.x|0,xn=Ri.y|0,bi="width"in Ri?Ri.width|0:nt.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:nt.framebufferHeight-xn,ct=nt.viewportWidth,nt.viewportWidth=bi,tr=nt.viewportHeight,nt.viewportHeight=Xr,He.viewport(Ii,xn,bi,Xr),Lr[0]=Ii,Lr[1]=xn,Lr[2]=bi,Lr[3]=Xr,He.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,s?He.enable(3042):He.disable(3042),Yt.blend_enable=s,He.blendEquationSeparate(32774,32774),Pt[0]=32774,Pt[1]=32774,He.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?He.enable(2929):He.disable(2929),Yt.depth_enable=u,pr=Fi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:nt.framebufferWidth-gr,en="height"in pr?pr.height|0:nt.framebufferHeight-Zr,He.scissor(gr,Zr,Ai,en),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=en,l?He.enable(3089):He.disable(3089),Yt.scissor_enable=l,ii=Yt.profile,ii&&(Xi=performance.now(),r.count++),He.useProgram(f.program),aa=Fe.angle_instanced_arrays,be.setVAO(null),Mn=h.location,Un=Re[Mn],Un.buffer||He.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,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,ye(ti)?(ma=!0,Yo=yr.createStream(34962,ti),Ta=Yo.dtype):(Yo=yr.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)):(ye(ti.buffer)?Yo=yr.createStream(34962,ti.buffer):Yo=yr.getBuffer(ti.buffer),Ta="type"in ti?ki[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=Re[$a],oa===1?(fo.buffer||He.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(He.bindBuffer(34962,Yo.buffer),He.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&&(He.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(He.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=_.location,wa=Re[ra],wa.buffer||He.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,Fi,0),oi.offset=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,ye(oi)?(Co=!0,Sn=yr.createStream(34962,oi),Ko=Sn.dtype):(Sn=yr.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)):(ye(oi.buffer)?Sn=yr.createStream(34962,oi.buffer):Sn=yr.getBuffer(oi.buffer),Ko="type"in oi?ki[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Hi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Re[Qa],Po===1?(vn.buffer||He.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(He.bindBuffer(34962,Sn.buffer),He.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(He.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(He.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=C.location,vo=Re[la],vo.buffer||He.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,Fi,0),tn.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,ye(tn)?(ps=!0,Ys=yr.createStream(34962,tn),Oa=Ys.dtype):(Ys=yr.getBuffer(tn),Ys?Oa=Ys.dtype:"constant"in tn?(co=2,typeof tn.constant=="number"?(mo=tn.constant,No=jn=Go=0):(mo=tn.constant.length>0?tn.constant[0]:0,No=tn.constant.length>1?tn.constant[1]:0,jn=tn.constant.length>2?tn.constant[2]:0,Go=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?Ys=yr.createStream(34962,tn.buffer):Ys=yr.getBuffer(tn.buffer),Oa="type"in tn?ki[tn.type]:Ys.dtype,Ns=!!tn.normalized,qs=tn.size|0,ha=tn.offset|0,Vs=tn.stride|0,Ya=tn.divisor|0)),_n=T.location,Vn=Re[_n],co===1?(Vn.buffer||He.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(He.bindBuffer(34962,Ys.buffer),He.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,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&&(He.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(He.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,nt,Fi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,rn=0,ye(Yr)?(Xn=!0,Ja=yr.createStream(34962,Yr),sa=Ja.dtype):(Ja=yr.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=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)):(ye(Yr.buffer)?Ja=yr.createStream(34962,Yr.buffer):Ja=yr.getBuffer(Yr.buffer),sa="type"in Yr?ki[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,rn=Yr.divisor|0)),Pa=x.location,to=Re[Pa],un===1?(to.buffer||He.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(He.bindBuffer(34962,Ja.buffer),He.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!==rn&&(aa.vertexAttribDivisorANGLE(Pa,rn),to.divisor=rn)):(to.buffer&&(He.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(He.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Fi.capSize,He.uniform1f(k.location,Jo),Ao=Fi.lineWidth,He.uniform1f(M.location,Ao),Dn=Fi.opacity,He.uniform1f(m.location,Dn),_a=Fi.scale,Ws=_a[0],Ca=_a[1],He.uniform2f(P.location,Ws,Ca),Es=Fi.scaleFract,Ts=Es[0],Ho=Es[1],He.uniform2f(A.location,Ts,Ho),Wa=Fi.translate,To=Wa[0],ts=Wa[1],He.uniform2f(F.location,To,ts),Wo=Fi.translateFract,qa=Wo[0],ln=Wo[1],He.uniform2f(B.location,qa,ln),Bo=G.call(this,nt,Fi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],He.uniform4f(U.location,ko,oo,za,ea),rs=cr.elements,rs?He.bindBuffer(34963,rs.buffer.buffer):be.currentVAO&&(rs=_r.getElements(be.currentVAO.elements),rs&&He.bindBuffer(34963,rs.buffer.buffer)),$s=cr.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?He.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):He.drawArrays(4,$s,36)),Yt.dirty=!0,be.setVAO(null),nt.viewportWidth=ct,nt.viewportHeight=tr,ii&&(r.cpuTime+=performance.now()-Xi),ma&&yr.destroyStream(Yo),Co&&yr.destroyStream(Sn),ps&&yr.destroyStream(Ys),Xn&&yr.destroyStream(Ja)},scope:function(Fi,an,nn){var Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,bi="width"in Ri?Ri.width|0:nt.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:nt.framebufferHeight-xn,ct=nt.viewportWidth,nt.viewportWidth=bi,tr=nt.viewportHeight,nt.viewportHeight=Xr,pr=xr[0],xr[0]=Ii,gr=xr[1],xr[1]=xn,Zr=xr[2],xr[2]=bi,Ai=xr[3],xr[3]=Xr,en=fe[0],fe[0]=j,ii=fe[1],fe[1]=W,Xi=fe[2],fe[2]=N,aa=fe[3],fe[3]=H,Mn=It.blend_enable,It.blend_enable=re,Un=dt[0],dt[0]=ae,Ga=dt[1],dt[1]=ge,ma=zt[0],zt[0]=ze,oa=zt[1],zt[1]=Le,ka=zt[2],zt[2]=de,so=zt[3],zt[3]=te,Kr=It.depth_enable,It.depth_enable=ke,Ia=Fi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:nt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:nt.framebufferHeight-fa,ys=Gt[0],Gt[0]=Yo,uo=Gt[1],Gt[1]=fa,ls=Gt[2],Gt[2]=kn,$a=Gt[3],Gt[3]=Ta,fo=It.scissor_enable,It.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=cr.count,cr.count=Se,ws=Fi.count,Co=cr.instances,cr.instances=ws,Po=cr.primitive,cr.primitive=Ge,Wi=Fi.range,gn=Oe[De],Oe[De]=Wi,Ps=Fi.lineWidth,Ha=Oe[xe],Oe[xe]=Ps,Sn=Fi.capSize,ao=Oe[Ne],Oe[Ne]=Sn,Ba=Fi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Fi.scale,Hi=Oe[je],Oe[je]=Qo,Sa=Fi.translate,Qa=Oe[Qe],Oe[Qe]=Sa,vn=Fi.scaleFract,da=Oe[gt],Oe[gt]=vn,la=Fi.translateFract,vo=Oe[qt],Oe[qt]=la,As=G.call(this,nt,Fi,nn),ps=Oe[at],Oe[at]=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,Oa=Ke.type,Ke.type=5126,ha=Ke.offset,Ke.offset=0,Vs=Ke.stride,Ke.stride=24,Ya=Ke.divisor,Ke.divisor=0,_n=Ct.state,Ct.state=1,Vn=Ct.x,Ct.x=0,wo=Ct.y,Ct.y=0,Ra=Ct.z,Ct.z=0,Xn=Ct.w,Ct.w=0,un=Ct.buffer,Ct.buffer=c,$n=Ct.size,Ct.size=0,Ka=Ct.normalized,Ct.normalized=!1,qn=Ct.type,Ct.type=5126,Eo=Ct.offset,Ct.offset=8,Ja=Ct.stride,Ct.stride=24,lo=Ct.divisor,Ct.divisor=0,eo=wt.state,wt.state=1,sa=wt.x,wt.x=0,es=wt.y,wt.y=0,Na=wt.z,wt.z=0,rn=wt.w,wt.w=0,Pa=wt.buffer,wt.buffer=c,to=wt.size,wt.size=0,yo=wt.normalized,wt.normalized=!1,Jo=wt.type,wt.type=5126,Ao=wt.offset,wt.offset=16,Dn=wt.stride,wt.stride=24,_a=wt.divisor,wt.divisor=0,Ws=d.call(this,nt,Fi,nn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ye(ti)?(Ca=!0,ts=yr.createStream(34962,ti),ln=ts.dtype):(ts=yr.getBuffer(ti),ts?ln=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)):(ye(ti.buffer)?ts=yr.createStream(34962,ti.buffer):ts=yr.getBuffer(ti.buffer),ln="type"in ti?ki[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=Mt.state,Mt.state=Es,ea=Mt.x,Mt.x=Ts,rs=Mt.y,Mt.y=Ho,$s=Mt.z,Mt.z=Wa,us=Mt.w,Mt.w=To,Ds=Mt.buffer,Mt.buffer=ts,fl=Mt.size,Mt.size=Wo,as=Mt.normalized,Mt.normalized=qa,Ma=Mt.type,Mt.type=ln,Qs=Mt.offset,Mt.offset=Bo,ho=Mt.stride,Mt.stride=ko,gs=Mt.divisor,Mt.divisor=oo,Vo=E.call(this,nt,Fi,nn),tn.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,ye(tn)?(Do=!0,Oo=yr.createStream(34962,tn),bs=Oo.dtype):(Oo=yr.getBuffer(tn),Oo?bs=Oo.dtype:"constant"in tn?(Lo=2,typeof tn.constant=="number"?(xs=tn.constant,ks=Ea=Jn=0):(xs=tn.constant.length>0?tn.constant[0]:0,ks=tn.constant.length>1?tn.constant[1]:0,Ea=tn.constant.length>2?tn.constant[2]:0,Jn=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?Oo=yr.createStream(34962,tn.buffer):Oo=yr.getBuffer(tn.buffer),bs="type"in tn?ki[tn.type]:Oo.dtype,Gs=!!tn.normalized,rl=tn.size|0,zs=tn.offset|0,$o=tn.stride|0,Aa=tn.divisor|0)),os=Bt.state,Bt.state=Lo,_l=Bt.x,Bt.x=xs,Ss=Bt.y,Bt.y=ks,po=Bt.z,Bt.z=Ea,go=Bt.w,Bt.w=Jn,ss=Bt.buffer,Bt.buffer=Oo,qo=Bt.size,Bt.size=rl,zo=Bt.normalized,Bt.normalized=Gs,io=Bt.type,Bt.type=bs,Io=Bt.offset,Bt.offset=zs,Da=Bt.stride,Bt.stride=$o,vs=Bt.divisor,Bt.divisor=Aa,fs=L.call(this,nt,Fi,nn),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,Bs=0,ye(Yr)?(cl=!0,hl=yr.createStream(34962,Yr),jo=hl.dtype):(hl=yr.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)):(ye(Yr.buffer)?hl=yr.createStream(34962,Yr.buffer):hl=yr.getBuffer(Yr.buffer),jo="type"in Yr?ki[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),Tt=Zt.state,Zt.state=el,Vt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,mr=Zt.z,Zt.z=tl,Fr=Zt.w,Zt.w=Fs,_i=Zt.buffer,Zt.buffer=hl,Si=Zt.size,Zt.size=Fa,Ci=Zt.normalized,Zt.normalized=Ms,Ki=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,di=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,nt,Fi,nn),oi.offset=Li,Mi=!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,ye(oi)?(Mi=!0,va=yr.createStream(34962,oi),Cs=va.dtype):(va=yr.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)):(ye(oi.buffer)?va=yr.createStream(34962,oi.buffer):va=yr.getBuffer(oi.buffer),Cs="type"in oi?ki[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Bl=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Vl=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,nl=Et.divisor,Et.divisor=xl,zl=Ut.vert,Ut.vert=Ae,Ml=Ut.frag,Ut.frag=ot,Yt.dirty=!0,an(nt,Fi,nn),nt.viewportWidth=ct,nt.viewportHeight=tr,xr[0]=pr,xr[1]=gr,xr[2]=Zr,xr[3]=Ai,fe[0]=en,fe[1]=ii,fe[2]=Xi,fe[3]=aa,It.blend_enable=Mn,dt[0]=Un,dt[1]=Ga,zt[0]=ma,zt[1]=oa,zt[2]=ka,zt[3]=so,It.depth_enable=Kr,Gt[0]=ys,Gt[1]=uo,Gt[2]=ls,Gt[3]=$a,It.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),cr.count=wa,cr.instances=Co,cr.primitive=Po,Oe[De]=gn,Oe[xe]=Ha,Oe[Ne]=ao,Oe[ce]=Ko,Oe[je]=Hi,Oe[Qe]=Qa,Oe[gt]=da,Oe[qt]=vo,Oe[at]=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=Oa,Ke.offset=ha,Ke.stride=Vs,Ke.divisor=Ya,Ct.state=_n,Ct.x=Vn,Ct.y=wo,Ct.z=Ra,Ct.w=Xn,Ct.buffer=un,Ct.size=$n,Ct.normalized=Ka,Ct.type=qn,Ct.offset=Eo,Ct.stride=Ja,Ct.divisor=lo,wt.state=eo,wt.x=sa,wt.y=es,wt.z=Na,wt.w=rn,wt.buffer=Pa,wt.size=to,wt.normalized=yo,wt.type=Jo,wt.offset=Ao,wt.stride=Dn,wt.divisor=_a,Ca&&yr.destroyStream(ts),Mt.state=za,Mt.x=ea,Mt.y=rs,Mt.z=$s,Mt.w=us,Mt.buffer=Ds,Mt.size=fl,Mt.normalized=as,Mt.type=Ma,Mt.offset=Qs,Mt.stride=ho,Mt.divisor=gs,Do&&yr.destroyStream(Oo),Bt.state=os,Bt.x=_l,Bt.y=Ss,Bt.z=po,Bt.w=go,Bt.buffer=ss,Bt.size=qo,Bt.normalized=zo,Bt.type=io,Bt.offset=Io,Bt.stride=Da,Bt.divisor=vs,cl&&yr.destroyStream(hl),Zt.state=Tt,Zt.x=Vt,Zt.y=wr,Zt.z=mr,Zt.w=Fr,Zt.buffer=_i,Zt.size=Si,Zt.normalized=Ci,Zt.type=Ki,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=di,Mi&&yr.destroyStream(va),Et.state=Bl,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Vl,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=nl,Ut.vert=zl,Ut.frag=Ml,Yt.dirty=!0},batch:function(Fi,an){var nn,Ri,Ii,xn,bi,Xr,ct;if(nn=Fe.angle_instanced_arrays,Ri=Ie.next,Ri!==Ie.cur&&(Ri?He.bindFramebuffer(36160,Ri.framebuffer):He.bindFramebuffer(36160,null),Ie.cur=Ri),Yt.dirty){var tr,pr,gr,Zr,Ai,en,ii,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;tr=It.dither,tr!==Yt.dither&&(tr?He.enable(3024):He.disable(3024),Yt.dither=tr),pr=It.depth_func,pr!==Yt.depth_func&&(He.depthFunc(pr),Yt.depth_func=pr),gr=Gr[0],Zr=Gr[1],(gr!==Br[0]||Zr!==Br[1])&&(He.depthRange(gr,Zr),Br[0]=gr,Br[1]=Zr),Ai=It.depth_mask,Ai!==Yt.depth_mask&&(He.depthMask(Ai),Yt.depth_mask=Ai),en=Er[0],ii=Er[1],Xi=Er[2],aa=Er[3],(en!==Rr[0]||ii!==Rr[1]||Xi!==Rr[2]||aa!==Rr[3])&&(He.colorMask(en,ii,Xi,aa),Rr[0]=en,Rr[1]=ii,Rr[2]=Xi,Rr[3]=aa),Mn=It.cull_enable,Mn!==Yt.cull_enable&&(Mn?He.enable(2884):He.disable(2884),Yt.cull_enable=Mn),Un=It.cull_face,Un!==Yt.cull_face&&(He.cullFace(Un),Yt.cull_face=Un),Ga=It.frontFace,Ga!==Yt.frontFace&&(He.frontFace(Ga),Yt.frontFace=Ga),ma=It.lineWidth,ma!==Yt.lineWidth&&(He.lineWidth(ma),Yt.lineWidth=ma),oa=It.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?He.enable(32823):He.disable(32823),Yt.polygonOffset_enable=oa),ka=pi[0],so=pi[1],(ka!==Di[0]||so!==Di[1])&&(He.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=It.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?He.enable(32926):He.disable(32926),Yt.sample_alpha=Kr),Ia=It.sample_enable,Ia!==Yt.sample_enable&&(Ia?He.enable(32928):He.disable(32928),Yt.sample_enable=Ia),Yo=ni[0],fa=ni[1],(Yo!==$i[0]||fa!==$i[1])&&(He.sampleCoverage(Yo,fa),$i[0]=Yo,$i[1]=fa),kn=It.stencil_enable,kn!==Yt.stencil_enable&&(kn?He.enable(2960):He.disable(2960),Yt.stencil_enable=kn),Ta=It.stencil_mask,Ta!==Yt.stencil_mask&&(He.stencilMask(Ta),Yt.stencil_mask=Ta),ys=Qi[0],uo=Qi[1],ls=Qi[2],(ys!==si[0]||uo!==si[1]||ls!==si[2])&&(He.stencilFunc(ys,uo,ls),si[0]=ys,si[1]=uo,si[2]=ls),$a=Ti[0],fo=Ti[1],mn=Ti[2],ra=Ti[3],($a!==Ni[0]||fo!==Ni[1]||mn!==Ni[2]||ra!==Ni[3])&&(He.stencilOpSeparate($a,fo,mn,ra),Ni[0]=$a,Ni[1]=fo,Ni[2]=mn,Ni[3]=ra),wa=Rt[0],ws=Rt[1],Co=Rt[2],Po=Rt[3],(wa!==yt[0]||ws!==yt[1]||Co!==yt[2]||Po!==yt[3])&&(He.stencilOpSeparate(wa,ws,Co,Po),yt[0]=wa,yt[1]=ws,yt[2]=Co,yt[3]=Po)}He.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,At?He.enable(3042):He.disable(3042),Yt.blend_enable=At,He.blendEquationSeparate(32774,32774),Pt[0]=32774,Pt[1]=32774,He.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,vt?He.enable(2929):He.disable(2929),Yt.depth_enable=vt,Je?He.enable(3089):He.disable(3089),Yt.scissor_enable=Je,Ii=Yt.profile,Ii&&(xn=performance.now(),r.count+=an),He.useProgram(f.program),bi=Fe.angle_instanced_arrays;var Wi,gn,Ps,Ha,Sn,ao,Ba,Ko;for(be.setVAO(null),Wi=h.location,gn=Re[Wi],gn.buffer||He.enableVertexAttribArray(Wi),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Wi,0),gn.divisor=0),Ps=_.location,Ha=Re[Ps],Ha.buffer||He.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=C.location,ao=Re[Sn],ao.buffer||He.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=cr.elements,Ba?He.bindBuffer(34963,Ba.buffer.buffer):be.currentVAO&&(Ba=_r.getElements(be.currentVAO.elements),Ba&&He.bindBuffer(34963,Ba.buffer.buffer)),Ko=cr.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,Oa=ti.constant.length>3?ti.constant[3]:0)):(ye(ti.buffer)?ha=yr.createStream(34962,ti.buffer):ha=yr.getBuffer(ti.buffer),_n="type"in ti?ki[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,un=Re[Xn],Go===1?(un.buffer||He.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(He.bindBuffer(34962,ha.buffer),He.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(bi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(He.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(He.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,nt,ct,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,rn=!1,Pa=5126,to=0,yo=0,Jo=0,ye(oi)?(qn=!0,es=yr.createStream(34962,oi),Pa=es.dtype):(es=yr.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)):(ye(oi.buffer)?es=yr.createStream(34962,oi.buffer):es=yr.getBuffer(oi.buffer),Pa="type"in oi?ki[oi.type]:es.dtype,rn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Re[Ao],Eo===1?(Dn.buffer||He.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==rn||Dn.offset!==to||Dn.stride!==yo)&&(He.bindBuffer(34962,es.buffer),He.vertexAttribPointer(Ao,_a,Pa,rn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=rn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(bi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(He.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(He.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,nt,ct,Xr),tn.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ye(tn)?(Ca=!0,ts=yr.createStream(34962,tn),ln=ts.dtype):(ts=yr.getBuffer(tn),ts?ln=ts.dtype:"constant"in tn?(Es=2,typeof tn.constant=="number"?(Ts=tn.constant,Ho=Wa=To=0):(Ts=tn.constant.length>0?tn.constant[0]:0,Ho=tn.constant.length>1?tn.constant[1]:0,Wa=tn.constant.length>2?tn.constant[2]:0,To=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?ts=yr.createStream(34962,tn.buffer):ts=yr.getBuffer(tn.buffer),ln="type"in tn?ki[tn.type]:ts.dtype,qa=!!tn.normalized,Wo=tn.size|0,Bo=tn.offset|0,ko=tn.stride|0,oo=tn.divisor|0)),za=T.location,ea=Re[za],Es===1?(ea.buffer||He.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(He.bindBuffer(34962,ts.buffer),He.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(bi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(He.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(He.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,nt,ct,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,ye(Yr)?(us=!0,ho=yr.createStream(34962,Yr),Do=ho.dtype):(ho=yr.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)):(ye(Yr.buffer)?ho=yr.createStream(34962,Yr.buffer):ho=yr.getBuffer(Yr.buffer),Do="type"in Yr?ki[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=Re[Ea],Ds===1?(Jn.buffer||He.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(He.bindBuffer(34962,ho.buffer),He.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(bi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(He.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(He.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ct.capSize,(!Xr||Gs!==rl)&&(Gs=rl,He.uniform1f(k.location,rl)),bs=ct.lineWidth,(!Xr||zs!==bs)&&(zs=bs,He.uniform1f(M.location,bs)),$o=ct.opacity,(!Xr||Aa!==$o)&&(Aa=$o,He.uniform1f(m.location,$o)),os=ct.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,He.uniform2f(P.location,_l,po)),ss=ct.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,He.uniform2f(A.location,qo,io)),Da=ct.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,He.uniform2f(F.location,vs,cl)),Hs=ct.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,He.uniform2f(B.location,Ro,Fs)),Fa=G.call(this,nt,ct,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Vt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||Tt!==Bs||wr!==Vt)&&(jo=Ms,Is=Rs,Tt=Bs,wr=Vt,He.uniform4f(U.location,Ms,Rs,Bs,Vt)),mr=ct.count,mr>0?Ba?bi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),mr):bi.drawArraysInstancedANGLE(4,Ko,36,mr):mr<0&&(Ba?He.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):He.drawArrays(4,Ko,36)),nt.viewportWidth=da,nt.viewportHeight=la,jn&&yr.destroyStream(ha),qn&&yr.destroyStream(es),Ca&&yr.destroyStream(ts),us&&yr.destroyStream(ho)}Yt.dirty=!0,be.setVAO(null),Ii&&(r.cpuTime+=performance.now()-xn)}}}});var N8=Te((obr,u7e)=>{u7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et){"use strict";var Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr;return Ae=t.gl,ot=t.context,At=t.strings,vt=t.next,Je=t.current,He=t.draw,nt=t.elements,tt=t.buffer,It=t.shader,Yt=t.attributes,cr=t.vao,_r=t.uniforms,yr=t.framebuffer,Ut=t.extensions,Re=t.timer,be=t.isBufferArgs,Oe=vt.blend_color,Ie=Je.blend_color,Fe=vt.blend_equation,ft=Je.blend_equation,ye=vt.blend_func,fe=Je.blend_func,pe=vt.depth_range,dt=Je.depth_range,Pt=vt.colorMask,zt=Je.colorMask,rr=vt.polygonOffset_offset,Gr=Je.polygonOffset_offset,Br=vt.sample_coverage,Er=Je.sample_coverage,Rr=vt.stencil_func,pi=Je.stencil_func,Di=vt.stencil_opFront,ni=Je.stencil_opFront,$i=vt.stencil_opBack,Qi=Je.stencil_opBack,si=vt.scissor_box,Ti=Je.scissor_box,Ni=vt.viewport,Rt=Je.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Gt={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},Wt={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},xr={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},Or={cw:2304,ccw:2305},Hr={},Hr.offset=4,Hr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(gi){var ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(ki=Ut.angle_instanced_arrays,Vi=yr.next,Vi!==yr.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),yr.cur=Vi),Je.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=vt.dither,za!==Je.dither&&(za?Ae.enable(3024):Ae.disable(3024),Je.dither=za),ea=Fe[0],rs=Fe[1],(ea!==ft[0]||rs!==ft[1])&&(Ae.blendEquationSeparate(ea,rs),ft[0]=ea,ft[1]=rs),$s=vt.depth_func,$s!==Je.depth_func&&(Ae.depthFunc($s),Je.depth_func=$s),us=pe[0],Ds=pe[1],(us!==dt[0]||Ds!==dt[1])&&(Ae.depthRange(us,Ds),dt[0]=us,dt[1]=Ds),fl=vt.depth_mask,fl!==Je.depth_mask&&(Ae.depthMask(fl),Je.depth_mask=fl),as=Pt[0],Ma=Pt[1],Qs=Pt[2],ho=Pt[3],(as!==zt[0]||Ma!==zt[1]||Qs!==zt[2]||ho!==zt[3])&&(Ae.colorMask(as,Ma,Qs,ho),zt[0]=as,zt[1]=Ma,zt[2]=Qs,zt[3]=ho),gs=vt.cull_enable,gs!==Je.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),Je.cull_enable=gs),Vo=vt.cull_face,Vo!==Je.cull_face&&(Ae.cullFace(Vo),Je.cull_face=Vo),Do=vt.frontFace,Do!==Je.frontFace&&(Ae.frontFace(Do),Je.frontFace=Do),Lo=vt.lineWidth,Lo!==Je.lineWidth&&(Ae.lineWidth(Lo),Je.lineWidth=Lo),xs=vt.polygonOffset_enable,xs!==Je.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),Je.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Gr[0]||Ea!==Gr[1])&&(Ae.polygonOffset(ks,Ea),Gr[0]=ks,Gr[1]=Ea),Jn=vt.sample_alpha,Jn!==Je.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),Je.sample_alpha=Jn),Oo=vt.sample_enable,Oo!==Je.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),Je.sample_enable=Oo),rl=Br[0],Gs=Br[1],(rl!==Er[0]||Gs!==Er[1])&&(Ae.sampleCoverage(rl,Gs),Er[0]=rl,Er[1]=Gs),bs=vt.stencil_mask,bs!==Je.stencil_mask&&(Ae.stencilMask(bs),Je.stencil_mask=bs),zs=Rr[0],$o=Rr[1],Aa=Rr[2],(zs!==pi[0]||$o!==pi[1]||Aa!==pi[2])&&(Ae.stencilFunc(zs,$o,Aa),pi[0]=zs,pi[1]=$o,pi[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==ni[0]||_l!==ni[1]||Ss!==ni[2]||po!==ni[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),ni[0]=os,ni[1]=_l,ni[2]=Ss,ni[3]=po),go=$i[0],ss=$i[1],qo=$i[2],zo=$i[3],(go!==Qi[0]||ss!==Qi[1]||qo!==Qi[2]||zo!==Qi[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),Qi[0]=go,Qi[1]=ss,Qi[2]=qo,Qi[3]=zo),io=vt.scissor_enable,io!==Je.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),Je.scissor_enable=io),Io=si[0],Da=si[1],vs=si[2],fs=si[3],(Io!==Ti[0]||Da!==Ti[1]||vs!==Ti[2]||fs!==Ti[3])&&(Ae.scissor(Io,Da,vs,fs),Ti[0]=Io,Ti[1]=Da,Ti[2]=vs,Ti[3]=fs)}ti=this.viewport,tn=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-tn,Fi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,nn=ot.viewportHeight,ot.viewportHeight=Fi,Ae.viewport(tn,Yr,oi,Fi),Rt[0]=tn,Rt[1]=Yr,Rt[2]=oi,Rt[3]=Fi,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,n?Ae.enable(3042):Ae.disable(3042),Je.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),Je.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),Je.stencil_enable=a,Ri=Je.profile,Ri&&(Ii=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ut.angle_instanced_arrays,cr.setVAO(null),bi=this.charBuffer,Xr=!1,ct=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,en=0,ii=!1,Xi=5126,aa=0,Mn=0,Un=0,be(bi)?(Xr=!0,Ai=tt.createStream(34962,bi),Xi=Ai.dtype):(Ai=tt.getBuffer(bi),Ai?Xi=Ai.dtype:"constant"in bi?(ct=2,typeof bi.constant=="number"?(tr=bi.constant,pr=gr=Zr=0):(tr=bi.constant.length>0?bi.constant[0]:0,pr=bi.constant.length>1?bi.constant[1]:0,gr=bi.constant.length>2?bi.constant[2]:0,Zr=bi.constant.length>3?bi.constant[3]:0)):(be(bi.buffer)?Ai=tt.createStream(34962,bi.buffer):Ai=tt.getBuffer(bi.buffer),Xi="type"in bi?Nr[bi.type]:Ai.dtype,ii=!!bi.normalized,en=bi.size|0,aa=bi.offset|0,Mn=bi.stride|0,Un=bi.divisor|0)),Ga=s.location,ma=Yt[Ga],ct===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=en||1,(ma.type!==Xi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ii||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Xi,ii,Mn,aa),ma.type=Xi,ma.size=oa,ma.buffer=Ai,ma.normalized=ii,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,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,be(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)):(be(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=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.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&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.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,Ba=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,be(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)):(be(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,Ba=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],Wi===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.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&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,be(jr)?(As=!0,Go=tt.createStream(34962,jr),Ns=Go.dtype):(Go=tt.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?Go=tt.createStream(34962,jr.buffer):Go=tt.getBuffer(jr.buffer),Ns="type"in jr?Nr[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=gi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,ot,gi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=_.call(this,ot,gi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,ot,gi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=gi.baseline,Ae.uniform1f(C.location,lo),eo=T.call(this,ot,gi,0),Ae.uniform1f(E.location,eo),sa=gi.color,es=sa[0],Na=sa[1],rn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,rn,Pa),to=k.call(this,ot,gi,0),Ae.uniform1f(x.location,to),yo=gi.opacity,Ae.uniform1f(M.location,yo),Jo=gi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(F.location,To,ts,Wo,qa),ln=He.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):cr.currentVAO&&(ln=nt.getElements(cr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=gi.offset,ko=gi.count,ko&&(oo=He.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),Je.dirty=!0,cr.setVAO(null),ot.viewportWidth=an,ot.viewportHeight=nn,Ri&&(r.cpuTime+=performance.now()-Ii),Xr&&tt.destroyStream(Ai),so&&tt.destroyStream(Ta),Po&&tt.destroyStream(ao),As&&tt.destroyStream(Go),Xn.unbind())},scope:function(gi,ki,Vi){var ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,tn=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-tn,Fi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,nn=ot.viewportHeight,ot.viewportHeight=Fi,Ri=Ni[0],Ni[0]=tn,Ii=Ni[1],Ni[1]=Yr,xn=Ni[2],Ni[2]=oi,bi=Ni[3],Ni[3]=Fi,Xr=Oe[0],Oe[0]=B,ct=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=vt.blend_enable,vt.blend_enable=W,Zr=ye[0],ye[0]=N,Ai=ye[1],ye[1]=H,en=ye[2],ye[2]=re,ii=ye[3],ye[3]=ae,Xi=vt.depth_enable,vt.depth_enable=ge,aa=vt.stencil_enable,vt.stencil_enable=ze,Mn=Je.profile,Mn&&(Un=performance.now(),r.count++),Ga=gi.offset,ma=He.offset,He.offset=Ga,oa=gi.count,ka=He.count,He.count=oa,so=He.primitive,He.primitive=Le,Kr=v.call(this,ot,gi,Vi),Ia=_r[de],_r[de]=Kr,Yo=_.call(this,ot,gi,Vi),fa=_r[te],_r[te]=Yo,kn=d.call(this,ot,gi,Vi),Ta=_r[ke],_r[ke]=kn,ys=T.call(this,ot,gi,Vi),uo=_r[Ee],_r[Ee]=ys,ls=k.call(this,ot,gi,Vi),$a=_r[Se],_r[Se]=ls,fo=gi.color,mn=_r[Ge],_r[Ge]=fo,ra=gi.opacity,wa=_r[De],_r[De]=ra,ws=this.viewportArray,Co=_r[xe],_r[xe]=ws,Po=this.scale,Wi=_r[Ne],_r[Ne]=Po,gn=gi.align,Ps=_r[ce],_r[ce]=gn,Ha=gi.baseline,Sn=_r[je],_r[je]=Ha,ao=this.translate,Ba=_r[Qe],_r[Qe]=ao,Ko=gi.positionOffset,Qo=_r[gt],_r[gt]=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,be(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)):(be(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=qt.state,qt.state=Qa,qs=qt.x,qt.x=vn,Ns=qt.y,qt.y=da,Oa=qt.z,qt.z=la,ha=qt.w,qt.w=vo,Vs=qt.buffer,qt.buffer=As,Ya=qt.size,qt.size=ps,_n=qt.normalized,qt.normalized=co,Vn=qt.type,qt.type=mo,wo=qt.offset,qt.offset=No,Ra=qt.stride,qt.stride=jn,Xn=qt.divisor,qt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,rn=0,Pa=0,to=0,be(un)?($n=!0,eo=tt.createStream(34962,un),Na=eo.dtype):(eo=tt.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(be(un.buffer)?eo=tt.createStream(34962,un.buffer):eo=tt.getBuffer(un.buffer),Na="type"in un?Nr[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,rn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=at.state,at.state=Ka,Jo=at.x,at.x=qn,Ao=at.y,at.y=Eo,Dn=at.z,at.z=Ja,_a=at.w,at.w=lo,Ws=at.buffer,at.buffer=eo,Ca=at.size,at.size=sa,Es=at.normalized,at.normalized=es,Ts=at.type,at.type=Na,Ho=at.offset,at.offset=rn,Wa=at.stride,at.stride=Pa,To=at.divisor,at.divisor=to,ts=this.sizeBuffer,Hr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,be(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"?(ln=Hr.constant,Bo=ko=oo=0):(ln=Hr.constant.length>0?Hr.constant[0]:0,Bo=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)):(be(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=ln,Qs=Ke.y,Ke.y=Bo,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,Oo=this.sizeBuffer,jr.buffer=Oo,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,be(jr)?(rl=!0,os=tt.createStream(34962,jr),po=os.dtype):(os=tt.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?os=tt.createStream(34962,jr.buffer):os=tt.getBuffer(jr.buffer),po="type"in jr?Nr[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=Ct.state,Ct.state=Gs,io=Ct.x,Ct.x=bs,Io=Ct.y,Ct.y=zs,Da=Ct.z,Ct.z=$o,vs=Ct.w,Ct.w=Aa,fs=Ct.buffer,Ct.buffer=os,cl=Ct.size,Ct.size=_l,el=Ct.normalized,Ct.normalized=Ss,Hs=Ct.type,Ct.type=po,Ro=Ct.offset,Ct.offset=go,tl=Ct.stride,Ct.stride=ss,Fs=Ct.divisor,Ct.divisor=qo,hl=It.vert,It.vert=wt,Fa=It.frag,It.frag=Mt,Je.dirty=!0,ki(ot,gi,Vi),ot.viewportWidth=an,ot.viewportHeight=nn,Ni[0]=Ri,Ni[1]=Ii,Ni[2]=xn,Ni[3]=bi,Oe[0]=Xr,Oe[1]=ct,Oe[2]=tr,Oe[3]=pr,vt.blend_enable=gr,ye[0]=Zr,ye[1]=Ai,ye[2]=en,ye[3]=ii,vt.depth_enable=Xi,vt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),He.offset=ma,He.count=ka,He.primitive=so,_r[de]=Ia,_r[te]=fa,_r[ke]=Ta,_r[Ee]=uo,_r[Se]=$a,_r[Ge]=mn,_r[De]=wa,_r[xe]=Co,_r[Ne]=Wi,_r[ce]=Ps,_r[je]=Sn,_r[Qe]=Ba,_r[gt]=Qo,Sa&&tt.destroyStream(As),qt.state=Ys,qt.x=qs,qt.y=Ns,qt.z=Oa,qt.w=ha,qt.buffer=Vs,qt.size=Ya,qt.normalized=_n,qt.type=Vn,qt.offset=wo,qt.stride=Ra,qt.divisor=Xn,$n&&tt.destroyStream(eo),at.state=yo,at.x=Jo,at.y=Ao,at.z=Dn,at.w=_a,at.buffer=Ws,at.size=Ca,at.normalized=Es,at.type=Ts,at.offset=Ho,at.stride=Wa,at.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),Ct.state=zo,Ct.x=io,Ct.y=Io,Ct.z=Da,Ct.w=vs,Ct.buffer=fs,Ct.size=cl,Ct.normalized=el,Ct.type=Hs,Ct.offset=Ro,Ct.stride=tl,Ct.divisor=Fs,It.vert=hl,It.frag=Fa,Je.dirty=!0},batch:function(gi,ki){var Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct;if(Vi=Ut.angle_instanced_arrays,ti=yr.next,ti!==yr.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),yr.cur=ti),Je.dirty){var tr,pr,gr,Zr,Ai,en,ii,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;tr=vt.dither,tr!==Je.dither&&(tr?Ae.enable(3024):Ae.disable(3024),Je.dither=tr),pr=Fe[0],gr=Fe[1],(pr!==ft[0]||gr!==ft[1])&&(Ae.blendEquationSeparate(pr,gr),ft[0]=pr,ft[1]=gr),Zr=vt.depth_func,Zr!==Je.depth_func&&(Ae.depthFunc(Zr),Je.depth_func=Zr),Ai=pe[0],en=pe[1],(Ai!==dt[0]||en!==dt[1])&&(Ae.depthRange(Ai,en),dt[0]=Ai,dt[1]=en),ii=vt.depth_mask,ii!==Je.depth_mask&&(Ae.depthMask(ii),Je.depth_mask=ii),Xi=Pt[0],aa=Pt[1],Mn=Pt[2],Un=Pt[3],(Xi!==zt[0]||aa!==zt[1]||Mn!==zt[2]||Un!==zt[3])&&(Ae.colorMask(Xi,aa,Mn,Un),zt[0]=Xi,zt[1]=aa,zt[2]=Mn,zt[3]=Un),Ga=vt.cull_enable,Ga!==Je.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),Je.cull_enable=Ga),ma=vt.cull_face,ma!==Je.cull_face&&(Ae.cullFace(ma),Je.cull_face=ma),oa=vt.frontFace,oa!==Je.frontFace&&(Ae.frontFace(oa),Je.frontFace=oa),ka=vt.lineWidth,ka!==Je.lineWidth&&(Ae.lineWidth(ka),Je.lineWidth=ka),so=vt.polygonOffset_enable,so!==Je.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),Je.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Gr[0]||Ia!==Gr[1])&&(Ae.polygonOffset(Kr,Ia),Gr[0]=Kr,Gr[1]=Ia),Yo=vt.sample_alpha,Yo!==Je.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),Je.sample_alpha=Yo),fa=vt.sample_enable,fa!==Je.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),Je.sample_enable=fa),kn=Br[0],Ta=Br[1],(kn!==Er[0]||Ta!==Er[1])&&(Ae.sampleCoverage(kn,Ta),Er[0]=kn,Er[1]=Ta),ys=vt.stencil_mask,ys!==Je.stencil_mask&&(Ae.stencilMask(ys),Je.stencil_mask=ys),uo=Rr[0],ls=Rr[1],$a=Rr[2],(uo!==pi[0]||ls!==pi[1]||$a!==pi[2])&&(Ae.stencilFunc(uo,ls,$a),pi[0]=uo,pi[1]=ls,pi[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==ni[0]||mn!==ni[1]||ra!==ni[2]||wa!==ni[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),ni[0]=fo,ni[1]=mn,ni[2]=ra,ni[3]=wa),ws=$i[0],Co=$i[1],Po=$i[2],Wi=$i[3],(ws!==Qi[0]||Co!==Qi[1]||Po!==Qi[2]||Wi!==Qi[3])&&(Ae.stencilOpSeparate(ws,Co,Po,Wi),Qi[0]=ws,Qi[1]=Co,Qi[2]=Po,Qi[3]=Wi),gn=vt.scissor_enable,gn!==Je.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),Je.scissor_enable=gn),Ps=si[0],Ha=si[1],Sn=si[2],ao=si[3],(Ps!==Ti[0]||Ha!==Ti[1]||Sn!==Ti[2]||ao!==Ti[3])&&(Ae.scissor(Ps,Ha,Sn,ao),Ti[0]=Ps,Ti[1]=Ha,Ti[2]=Sn,Ti[3]=ao)}tn=this.viewport,Yr=tn.x|0,oi=tn.y|0,Fi="width"in tn?tn.width|0:ot.framebufferWidth-Yr,an="height"in tn?tn.height|0:ot.framebufferHeight-oi,nn=ot.viewportWidth,ot.viewportWidth=Fi,Ri=ot.viewportHeight,ot.viewportHeight=an,Ae.viewport(Yr,oi,Fi,an),Rt[0]=Yr,Rt[1]=oi,Rt[2]=Fi,Rt[3]=an,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Bt?Ae.enable(3042):Ae.disable(3042),Je.blend_enable=Bt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),Je.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),Je.stencil_enable=Et,Ii=Je.profile,Ii&&(xn=performance.now(),r.count+=ki),Ae.useProgram(o.program),bi=Ut.angle_instanced_arrays;var Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(cr.setVAO(null),Ba=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,be(Ba)?(Ko=!0,da=tt.createStream(34962,Ba),As=da.dtype):(da=tt.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Hi=Ba.constant,Sa=Qa=vn=0):(Hi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(be(Ba.buffer)?da=tt.createStream(34962,Ba.buffer):da=tt.getBuffer(Ba.buffer),As="type"in Ba?Nr[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.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&&(bi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.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,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,be(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"?(Oa=Hr.constant,ha=Vs=Ya=0):(Oa=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)):(be(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,un=Hr.stride|0,$n=Hr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(bi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,rn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,be(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=rn=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,rn=Ja.constant.length>3?Ja.constant[3]:0)):(be(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=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.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&&(bi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==rn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,rn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=rn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,be(jr)?(Ho=!0,ln=tt.createStream(34962,jr),oo=ln.dtype):(ln=tt.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?ln=tt.createStream(34962,jr.buffer):ln=tt.getBuffer(jr.buffer),oo="type"in jr?Nr[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(bi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.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],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(F.location,Do,Lo,xs,ks),Ea=He.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):cr.currentVAO&&(Ea=nt.getElements(cr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=He.instances,Xr=0;Xr0?Ea?bi.drawElementsInstancedANGLE(0,Fr,Ea.type,mr<<(Ea.type-5121>>1),Jn):bi.drawArraysInstancedANGLE(0,mr,Fr,Jn):Jn<0&&(Ea?Ae.drawElements(0,Fr,Ea.type,mr<<(Ea.type-5121>>1)):Ae.drawArrays(0,mr,Fr)),bs.unbind())}Ko&&tt.destroyStream(da),qs&&tt.destroyStream(_n),lo&&tt.destroyStream(Pa),Ho&&tt.destroyStream(ln),Je.dirty=!0,cr.setVAO(null),ot.viewportWidth=nn,ot.viewportHeight=Ri,Ii&&(r.cpuTime+=performance.now()-xn)}}}});var PK=Te((sbr,f7e)=>{"use strict";var UVt=P8(),VVt=z8(),GVt=I8(),HVt=R8(),WVt=D8(),jVt=F8(),XVt=B8(),ZVt=O8(),YVt=q8(),KVt=N8();f7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":UVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:VVt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":GVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:HVt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:WVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":jVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:XVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:ZVt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":YVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":KVt}});var d7e=Te((lbr,h7e)=>{"use strict";var c7e=LK(),JVt=PK();Object.assign(c7e.reglPrecompiled,JVt);h7e.exports=c7e});var m7e=Te((ubr,v7e)=>{"use strict";var p7e=gBe();p7e.plot=d7e();v7e.exports=p7e});var zK=Te((fbr,x7e)=>{"use strict";var $Vt=Zc(),_7e=nc(),y7e=jc().axisHoverFormat,{hovertemplateAttrs:QVt,templatefallbackAttrs:eGt}=Ff(),Fk=mk(),tGt=qh().idRegex,rGt=Lf().templatedArray,xS=Su().extendFlat,d1=$Vt.marker,iGt=d1.line,nGt=xS(_7e("marker.line",{editTypeOverride:"calc"}),{width:xS({},iGt.width,{editType:"calc"}),editType:"calc"}),U8=xS(_7e("marker"),{symbol:d1.symbol,angle:d1.angle,size:xS({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:nGt,editType:"calc"});U8.color.editType=U8.cmin.editType=U8.cmax.editType="style";function g7e(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:tGt[e],editType:"plot"}}}x7e.exports={dimensions:rGt("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:xS({},Fk.text,{}),hovertext:xS({},Fk.hovertext,{}),hovertemplate:QVt(),hovertemplatefallback:eGt(),xhoverformat:y7e("x"),yhoverformat:y7e("y"),marker:U8,xaxes:g7e("x"),yaxes:g7e("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:Fk.selected.marker,editType:"calc"},unselected:{marker:Fk.unselected.marker,editType:"calc"},opacity:Fk.opacity}});var V8=Te((cbr,b7e)=>{"use strict";b7e.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var IK=ei(),aGt=Kd(),w7e=zK(),oGt=lc(),sGt=$v(),lGt=V8(),uGt=jF().isOpenSymbol;A7e.exports=function(t,r,n,i){function a(d,p){return IK.coerce(t,r,w7e,d,p)}var o=aGt(t,r,{name:"dimensions",handleItemDefaults:fGt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=lGt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),sGt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=uGt(r.marker.symbol),h=oGt.isBubble(r);a("marker.line.width",c||h?1:0),cGt(t,r,i,a),IK.coerceSelectionMarkerOpacity(r,a)};function fGt(e,t){function r(i,a){return IK.coerce(e,t,w7e.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function cGt(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 S7e=ei();M7e.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]=S7e.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||S7e.extendFlat(u,o),u}});var L7e=Te((pbr,C7e)=>{"use strict";var RK=ei(),G8=Wc(),hGt=O0().calcMarkerSize,dGt=O0().calcAxisExpansion,pGt=F0(),k7e=ow().markerSelection,vGt=ow().markerStyle,mGt=E7e(),yGt=rf().BADNUM,gGt=vx().TOO_MANY_POINTS;C7e.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,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xgGt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=hGt(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(P7e)});var R7e=Te((vbr,j8)=>{var _Gt=z7e(),p1=window,H8=["moz","webkit"],wS="AnimationFrame",AS=p1["request"+wS],Ok=p1["cancel"+wS]||p1["cancelRequest"+wS];for(bS=0;!AS&&bS{D7e.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=CY(),bGt=eg(),wGt=rw(),B7e=R7e(),AGt=F7e(),FK=sS(),TGt=iw();q7e.exports=Tx;function Tx(e,t){if(!(this instanceof Tx))return new Tx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=xGt(e),this.canvas=this.scatter.canvas}Tx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=B7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,B7e(()=>{this.dirty=!1})),this)};Tx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};Tx.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 SGt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function X8(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 O7e(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=FK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var V7e=Te((gbr,U7e)=>{"use strict";var MGt=N7e(),BK=ei(),Z8=Wc(),EGt=Cm().selectMode;U7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=EGt(f)||!!i.selectedpoints||P,F=!0;if(A){var B=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";G7e.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 H7e=OK(),CGt=WF().calcHover,W7e=wu().getFromId,LGt=Su().extendFlat;function PGt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=j7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=LGt({},e),c=0;c{"use strict";var $7e=ei(),Y7e=$7e.pushUnique,K7e=lc(),J7e=OK();Q7e.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=!K7e.hasMarkers(i)&&!K7e.hasText(i);if(i.visible!==!0||c)return f;var h=J7e.getDimIndex(i,u),d=J7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],_=a.ypx[d],b=s[h],v=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var tUe=ei(),zGt=F0(),IGt=ow().markerStyle;rUe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){zGt(t,n),tUe.extendFlat(i.matrixOptions,IGt(t,n));var a=tUe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var aUe=Te((Abr,nUe)=>{"use strict";var RGt=$l(),DGt=kV();nUe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:zK(),supplyDefaults:T7e(),colorbar:ep(),calc:L7e(),plot:V7e(),hoverPoints:Z7e().hoverPoints,selectPoints:eUe(),editStyle:iUe(),meta:{}};RGt.register(DGt)});var cUe=Te((Tbr,fUe)=>{"use strict";var FGt=oK(),BGt=$l(),OGt=L8(),qGt=Rd().getModuleCalcData,Sx=Mh(),oUe=Wc().getFromId,sUe=wu().shouldShowZeroLine,lUe="splom",uUe={};function NGt(e){var t=e._fullLayout,r=BGt.getModule(lUe),n=qGt(e.calcdata,r)[0],i=OGt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],uUe);i&&(t._hasOnlyLargeSploms&&qK(e),r.plot(e,{},n))}function UGt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&qK(e);for(var n=0;n{"use strict";var WGt=P8(),jGt=z8(),XGt=I8(),ZGt=B8(),YGt=O8(),KGt=R8(),JGt=D8(),$Gt=F8(),QGt=q8(),eHt=N8();hUe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":WGt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:jGt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":XGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:ZGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:YGt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:KGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:JGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":$Gt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":QGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":eHt}});var mUe=Te((Mbr,vUe)=>{"use strict";var pUe=cUe(),tHt=dUe();Object.assign(pUe.reglPrecompiled,tHt);vUe.exports=pUe});var _Ue=Te((Ebr,gUe)=>{"use strict";var yUe=aUe();yUe.basePlotModule=mUe(),gUe.exports=yUe});var VK=Te((kbr,xUe)=>{"use strict";var rHt=nc(),NK=Dd(),UK=gc(),iHt=zc().attributes,Y8=Su().extendFlat,nHt=Lf().templatedArray;xUe.exports={domain:iHt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:UK({editType:"plot"}),tickfont:UK({autoShadowDflt:!0,editType:"plot"}),rangefont:UK({editType:"plot"}),dimensions:nHt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Y8({},NK.tickvals,{editType:"plot"}),ticktext:Y8({},NK.ticktext,{editType:"plot"}),tickformat:Y8({},NK.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:Y8({editType:"calc"},rHt("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 qk=Te((Cbr,bUe)=>{"use strict";bUe.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 ig=Te((Lbr,AUe)=>{"use strict";var aHt=ZM();function wUe(e){return[e]}AUe.exports={keyFun:function(e){return e.key},repeat:wUe,descend:aHt,wrap:wUe,unwrap:function(e){return e[0]}}});var WK=Te((Pbr,RUe)=>{"use strict";var zh=qk(),iy=Jl(),oHt=ig().keyFun,K8=ig().repeat,TS=ei().sorterAsc,sHt=ei().strTranslate,TUe=zh.bar.snapRatio;function SUe(e,t){return e*(1-TUe)+t*TUe}var MUe=zh.bar.snapClose;function lHt(e,t){return e*(1-MUe)+t*MUe}function $8(e,t,r,n){if(uHt(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 fHt(e){e.attr("x",-zh.bar.captureWidth/2).attr("width",zh.bar.captureWidth)}function cHt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function hHt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=EUe(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 kUe(){iy.select(document.body).style("cursor",null)}function HK(e){e.attr("stroke-dasharray",hHt)}function J8(e,t){var r=iy.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(zh.bar.snapDuration).each("end",t):r;HK(n)}function CUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=EUe(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 pHt(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=CUe(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 LUe(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(TS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),J8(e.parentNode)}function vHt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(PUe(e,t),LUe(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,kUe(),!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&&GK(r)):GK(r),i.brushCallback(t),J8(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||GK(r),i.brushCallback(t),l?J8(e.parentNode,s):(s(),J8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function PUe(e,t){var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=CUe(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||PUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||kUe()}).call(iy.behavior.drag().on("dragstart",function(t){pHt(this,t)}).on("drag",function(t){LUe(this,t)}).on("dragend",function(t){vHt(this,t)}))}function zUe(e,t){return e[0]-t[0]}function yHt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(K8);i.enter().append("rect").classed("background",!0).call(fHt).call(cHt).style("pointer-events",n?"none":"auto").attr("transform",sHt(0,zh.verticalPadding)),i.call(mHt).attr("height",function(s){return s.height-zh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(K8);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(HK);var o=e.selectAll(".highlight").data(K8);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(HK)}function gHt(e,t,r){var n=e.selectAll("."+zh.cn.axisBrush).data(K8,oHt);n.enter().append("g").classed(zh.cn.axisBrush,!0),yHt(n,t,r)}function _Ht(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function GK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function xHt(e){return function(r){var n=r.brush,i=_Ht(n),a=i.slice();n.filter.set(a),e()}}function IUe(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 bHt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(TS)}).sort(zUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=IUe(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 wHt(e,t,r,n,i,a){var o=bHt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:xHt(i),brushEndCallback:a}}}function AHt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(TS)}),t.multiselect?e=IUe(e.sort(zUe)):e=[e[0]]):e=[e.sort(TS)],t.tickvals){var r=t.tickvals.slice().sort(TS);if(e=e.map(function(n){var i=[$8(0,r,n[0],[]),$8(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]}RUe.exports={makeBrush:wHt,ensureAxisBrush:gHt,cleanRanges:AHt}});var BUe=Te((zbr,FUe)=>{"use strict";var Mx=ei(),THt=yp().hasColorscale,SHt=nd(),MHt=zc().defaults,EHt=Kd(),kHt=wu(),DUe=VK(),CHt=WK(),jK=qk().maxDimensionCount,LHt=V8();function PHt(e,t,r,n,i){var a=i("line.color",r);if(THt(e,"line")&&Mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function zHt(e,t,r,n){function i(l,f){return Mx.coerce(e,t,DUe.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},kHt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=CHt.cleanRanges(u,t))}}FUe.exports=function(t,r,n,i){function a(f,c){return Mx.coerce(t,r,DUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>jK&&(Mx.log("parcoords traces support up to "+jK+" dimensions at the moment"),o.splice(jK));var s=EHt(t,r,{name:"dimensions",layout:i,handleItemDefaults:zHt}),u=PHt(t,r,n,i,a);MHt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),LHt(r,s,"values",u);var l=Mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Mx.coerceFont(a,"labelfont",l),Mx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),Mx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var qUe=Te((Ibr,OUe)=>{"use strict";var IHt=ei().isArrayOrTypedArray,XK=_c(),RHt=ig().wrap;OUe.exports=function(t,r){var n,i;return XK.hasColorscale(r,"line")&&IHt(r.line.color)?(n=r.line.color,i=XK.extractOpts(r.line).colorscale,XK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=DHt(r._length),i=[[0,r.line.color],[1,r.line.color]]),RHt({lineColor:n,cscale:i})};function DHt(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(),ZK.default[e])r=ZK.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(NUe[h]!==void 0)return NUe[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 ZK,UUe,NUe,VUe=tc(()=>{ZK=frt(IX(),1),UUe=FHt,NUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Nk,YK=tc(()=>{Nk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Q8,GUe=tc(()=>{YK();Q8={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}};Nk.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 WUe={};Cee(WUe,{default:()=>HUe});function HUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=UUe(e);if(!i.space)return[];let a=i.space[0]==="h"?Q8.min:Nk.min,o=i.space[0]==="h"?Q8.max:Nk.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=Q8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var jUe=tc(()=>{VUe();YK();GUe()});var KK=Te(eB=>{"use strict";var BHt=ei().isTypedArray;eB.convertTypedArray=function(e){return BHt(e)?Array.prototype.slice.call(e):e};eB.isOrdinal=function(e){return!!e.tickvals};eB.isVisible=function(e){return e.visible||!("visible"in e)}});var rVe=Te((Vbr,tVe)=>{"use strict";var OHt=["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(` +`),xi;if(Nt&&(xi=Fs(Wr),Nt[xi]))return Nt[xi].apply(null,yi);var dn=Function.apply(null,Qr.concat(Wr));return Nt&&(Nt[xi]=dn),dn.apply(null,yi)}return{global:wn,link:vi,block:on,proc:ua,scope:Bn,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",Os="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Nl="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ue="framebuffer",rt="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Me="Width",qe="Height",Ve=Ue+Me,lt=Ue+qe,it=ee+Me,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Me,fr=Ht+qe,Ar=[Vl,Zl,Nl,le,w,Os,ee,Q,Al],Ir=34962,ri=34963,li=2884,Ei=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,Ol=5124,ou=35667,Pu=35668,nu=35669,tu=35670,Hu=35671,$u=35672,Ku=35673,Wu=35674,ju=35675,sf=35676,_f=35678,Qu=35680,ef=4,Z=1028,se=1029,Pe=2304,Ze=2305,et=32775,st=32776,jt=519,_t=7680,hr=0,Cr=1,zr=32774,fi=513,$r=36160,Bi=36064,fn={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},mi={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},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Pe,ccw:Ze};function pn(Be){return Array.isArray(Be)||yr(Be)||Ut(Be)}function sn(Be){return Be.sort(function(Nt,ar){return Nt===ee?-1:ar===ee?1:Nt=1,Qr>=2,Nt)}else if(ar===Ks){var yi=Be.data;return new wi(yi.thisDep,yi.contextDep,yi.propDep,Nt)}else{if(ar===dl)return new wi(!1,!1,!1,Nt);if(ar===xl){for(var ci=!1,vi=!1,on=!1,Bn=0;Bn=1&&(vi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(ci=ci||Ln.data.thisDep,vi=vi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new wi(ci,vi,on,Nt)}else return new wi(ar===Cs,ar===is,ar===zn,Nt)}}var js=new wi(!1,!1,!1,function(){});function El(Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr){var xi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=et,dn.max=st);var En=ar.angle_instanced_arrays,Zi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na($e){return $e.replace(".","_")}function On($e,ht,bt){var Kt=na($e);Ji.push($e),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In($e,ht,bt){var Kt=na($e);Ji.push($e),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va($e){return!!isNaN($e)}On(Bl,hn),On(bl,Ei),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",fi),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,li),In(nl,"cullFace",se),In(zl,zl,Ze),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:Nt,next:hs,current:Kn,draw:Ls,elements:ci,buffer:yi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:mi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:pi,orientationType:ji};Zi&&(ul.backBuffer=[se],ul.drawBuffer=M(Qr.maxDrawbuffers,function($e){return $e===0?[0]:M($e,function(ht){return Bi+ht})}));var Qn=0;function Mo(){var $e=Gn({cache:qi}),ht=$e.link,bt=$e.global;$e.id=Qn++,$e.batchId="0";var Kt=ht(_s),sr=$e.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=$e.next={},ur=$e.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=$e.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),$e.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,$e.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append($e,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Ur){return $e.invoke(Jt,Ur)})}},$e.attribCache={};var Ot={};return $e.scopeAttrib=function(Jt){var Lt=Nt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new xi);var Ur=Ot[Lt]=ht(Tr);return Ur},$e}function al($e){var ht=$e.static,bt=$e.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl($e,ht){var bt=$e.static,Kt=$e.dynamic;if(Ue in bt){var sr=bt[Ue];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ve,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ve,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ue in Kt){var Qt=Kt[Ue];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Ur=Jt.context;return er.set(Ur,"."+Ve,Tr+"?"+Tr+".width:"+Ur+"."+nr),er.set(Ur,"."+lt,Tr+"?"+Tr+".height:"+Ur+"."+fr),Tr})}else return null}function Dl($e,ht,bt){var Kt=$e.static,sr=$e.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Ur=Jt.y|0,hi,Cn;return"width"in Jt?hi=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new wi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=hi;"width"in Jt||(Pn=ca.def(Tn,".",Ve,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Ur)),[Tr,Ur,Pn,Nn]})}else if(Ot in sr){var Yi=sr[Ot],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,".",Ve,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new wi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ve),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new wi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+it,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Bu($e,ht){var bt=$e.static,Kt=typeof bt[mt]=="string"&&typeof bt[rt]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",hi,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Ur.glTypes,"[",Lt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Yi[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}sr[Qt]=Xo(ur,er)}),sr}function xf($e){var ht=$e.static,bt=$e.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Cf($e,ht,bt,Kt,sr){var Qt=$e.static,ur=$e.dynamic,er=Bu($e,ht),Ot=pl($e,sr),Jt=Dl($e,Ot,sr),Lt=Ql($e,sr),Tr=Ef($e,sr),Ur=vf($e,sr,er);function hi(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}hi(ee),hi(na(Q));var Cn=Object.keys(Tr).length>0,Yi={framebuffer:Ot,draw:Lt,shader:Ur,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al($e,sr),Yi.uniforms=Cu(bt,sr),Yi.drawVAO=Yi.scopeVAO=Lt.vao,!Yi.drawVAO&&Ur.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Ur.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Yi.drawVAO=new wi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return er?Yi.useVAO=!0:Yi.attributes=gf(ht,sr),Yi.context=xf(Kt,sr),Yi}function Gu($e,ht,bt){var Kt=$e.shared,sr=Kt.context,Qt=$e.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append($e,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function cf($e,ht,bt,Kt){var sr=$e.shared,Qt=sr.gl,ur=sr.framebuffer,er;Zi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=$e.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append($e,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Zi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Zi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function mf($e,ht,bt){var Kt=$e.shared,sr=Kt.gl,Qt=$e.current,ur=$e.next,er=Kt.current,Ot=Kt.next,Jt=$e.cond(er,".dirty");Ji.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Ur,hi;if(Tr in ur){Ur=ur[Tr],hi=Qt[Tr];var Cn=M(Kn[Tr].length,function(yn){return Jt.def(Ur,"[",yn,"]")});Jt($e.cond(Cn.map(function(yn,Xa){return yn+"!=="+hi+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return hi+"["+Xa+"]="+yn}).join(";"),";"))}else{Ur=Jt.def(Ot,".",Tr);var Yi=$e.cond(Ur,"!==",er,".",Tr);Jt(Yi),Tr in Ui?Yi($e.cond(Ur).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Ur,";"):Yi(sr,".",ro[Tr],"(",Ur,");",er,".",Tr,"=",Ur,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl($e,ht,bt,Kt){var sr=$e.shared,Qt=$e.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append($e,ht);if(Ui[Jt]){var Ur=Ui[Jt];xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht($e.cond(Ot).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Ot,";")):(ht($e.cond(Tr).then(er,".enable(",Ur,");").else(er,".disable(",Ur,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(en(Tr)){var hi=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Yi){return hi+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=$e.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function bf($e,ht){En&&($e.instancing=ht.def($e.shared.extensions,".angle_instanced_arrays"))}function cu($e,ht,bt,Kt,sr){var Qt=$e.shared,ur=$e.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Ur;function hi(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Ur=ht.def(),Tn(Ur,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Ur,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Yi(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(hi(ht),Cn(ht.exit),Yi("true")):Yi("false");return}yn=Jt.append($e,ht),Yi(yn)}else yn=ht.def(er,".profile");var Xa=$e.block();hi(Xa),ht("if(",yn,"){",Xa,"}");var ca=$e.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y($e,ht,bt,Kt,sr){var Qt=$e.shared;function ur(Ot){switch(Ot){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 er(Ot,Jt,Lt){var Tr=Qt.gl,Ur=ht.def(Ot,".location"),hi=ht.def(Qt.attributes,"[",Ur,"]"),Cn=Lt.state,Yi=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",hi,".buffer){",Tr,".enableVertexAttribArray(",Ur,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",hi,".type!==",Pn,"||",hi,".size!==",Nn,"||",Xa.map(function(Zo){return hi+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Ir,",",Yi,".buffer);",Tr,".vertexAttribPointer(",[Ur,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",hi,".type=",Pn,";",hi,".size=",Nn,";",Xa.map(function(Zo){return hi+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",hi,".divisor!==",xa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[Ur,xa],");",hi,".divisor=",xa,";}")}}function Tn(){ht("if(",hi,".buffer){",Tr,".disableVertexAttribArray(",Ur,");",hi,".buffer=null;","}if(",ta.map(function(Pn,Nn){return hi+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Ur,",",yn,");",ta.map(function(Pn,Nn){return hi+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append($e,ht)}else{if(!sr(js))return;var Ur=$e.scopeAttrib(Jt);Tr={},Object.keys(new xi).forEach(function(hi){Tr[hi]=ht.def(Ur,".",hi)})}er($e.link(Ot),ur(Ot.info.type),Tr)})}function R($e,ht,bt,Kt,sr,Qt){for(var ur=$e.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Ur,hi,Cn,Yi],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Ur,Cn,Xa,hi+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Ur,hi,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(bt("if(",Yi,">0){"),Tn(),bt("}else if(",Yi,"<0){"),Pn(),bt("}")):Tn():Pn()}function O($e,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),$e(Qt,ur,bt,Kt),Qt.compile().body}function K($e,ht,bt,Kt){bf($e,ht),bt.useVAO?bt.drawVAO?ht($e.shared.vao,".setVAO(",bt.drawVAO.append($e,ht),");"):ht($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(ht($e.shared.vao,".setVAO(null);"),Y($e,ht,bt,Kt.attributes,function(){return!0})),R($e,ht,bt,Kt.uniforms,function(){return!0},!1),J($e,ht,ht,bt)}function _e($e,ht){var bt=$e.proc("draw",1);bf($e,bt),Gu($e,bt,ht.context),cf($e,bt,ht.framebuffer),mf($e,bt,ht),Fl($e,bt,ht.state),cu($e,bt,ht,!1,!0);var Kt=ht.shader.progVar.append($e,bt);if(bt($e.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var sr=$e.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt($e.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",$e.link(function(er){return O(K,$e,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function ne($e,ht,bt,Kt){$e.batchId="a1",bf($e,ht);function sr(){return!0}Y($e,ht,bt,Kt.attributes,sr),R($e,ht,bt,Kt.uniforms,sr,!1),J($e,ht,ht,bt)}function Ce($e,ht,bt,Kt){bf($e,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();$e.shared.props=Ot,$e.batchId=Qt;var Jt=$e.scope(),Lt=$e.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Ur(Xa){return!Tr(Xa)}if(bt.needsContext&&Gu($e,Lt,bt.context),bt.needsFramebuffer&&cf($e,Lt,bt.framebuffer),Fl($e,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu($e,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Lt),");"):Jt($e.shared.vao,".setVAO(",bt.drawVAO.append($e,Jt),");"):Jt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Jt($e.shared.vao,".setVAO(null);"),Y($e,Jt,bt,Kt.attributes,Ur),Y($e,Lt,bt,Kt.attributes,Tr)),R($e,Jt,bt,Kt.uniforms,Ur,!1),R($e,Lt,bt,Kt.uniforms,Tr,!0),J($e,Jt,Lt,bt);else{var hi=$e.global.def("{}"),Cn=bt.shader.progVar.append($e,Lt),Yi=Lt.def(Cn,".id"),yn=Lt.def(hi,"[",Yi,"]");Lt($e.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",hi,"[",Yi,"]=",$e.link(function(Xa){return O(ne,$e,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ye($e,ht){var bt=$e.proc("batch",2);$e.batchId="0",bf($e,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(hi){Kt=Kt||ht.context[hi].propDep}),Kt||(Gu($e,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||cf($e,bt,Qt)):cf($e,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(hi){return hi.contextDep&&Kt||hi.propDep}mf($e,bt,ht),Fl($e,bt,ht.state,function(hi){return!er(hi)}),(!ht.profile||!er(ht.profile))&&cu($e,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Ce($e,bt,ht,null);else{var Jt=Ot.append($e,bt);if(bt($e.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Ce($e,bt,ht,ht.shader.program);else{bt($e.shared.vao,".setVAO(null);");var Lt=$e.global.def("{}"),Tr=bt.def(Jt,".id"),Ur=bt.def(Lt,"[",Tr,"]");bt($e.cond(Ur).then(Ur,".call(this,a0,a1);").else(Ur,"=",Lt,"[",Tr,"]=",$e.link(function(hi){return O(Ce,$e,ht,hi,2)}),"(",Jt,");",Ur,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt($e.shared.current,".dirty=true;"),$e.shared.vao&&bt($e.shared.vao,".setVAO(null);")}function kt($e,ht){var bt=$e.proc("scope",3);$e.batchId="a2";var Kt=$e.shared,sr=Kt.current;if(Gu($e,bt,ht.context),ht.framebuffer&&ht.framebuffer.append($e,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append($e,bt);en(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set($e.next[er],"["+Tr+"]",Lt):bt.set($e.next[er],"["+Tr+"]",$e.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,$e.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu($e,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,$e.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append($e,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:$e.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+$e.link(Nt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append($e,bt),Jt=$e.scopeAttrib(er);Object.keys(new xi).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append($e,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",$e.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append($e,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,$e.link(Jt,{stable:!0}))}}ur(rt),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function dr($e){if(!(typeof $e!="object"||en($e))){for(var ht=Object.keys($e),bt=0;bt=0;--O){var K=_s[O];K&&K(qi,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Bu(){al&&(d.cancel(pl),al=null)}function vf(O){O.preventDefault(),yi=!0,Bu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),yi=!1,ci.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 Ef(){_s.length=0,Bu(),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(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return $e.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return $e.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=tf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Cf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:O.framebuffer.faces[K]},O),xf);else gf(O,xf);else xf(null,O)}function Gu(O){_s.push(O);function K(){var _e=pf(_s,O);function ne(){var Ce=pf(_s,ne);_s[Ce]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Bu()}_s[_e]=ne}return Dl(),{cancel:K}}function cf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,qi.viewportWidth=qi.framebufferWidth=qi.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,qi.viewportHeight=qi.framebufferHeight=qi.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function mf(){qi.tick+=1,qi.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(O,K){var _e;switch(O){case"frame":return Gu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Cf,prop:h.define.bind(null,lf),context:h.define.bind(null,hf),this:h.define.bind(null,Mf),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Zi.create(O,!1)},texture:Ji.create2D,cube:Ji.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Gu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:Ef,_gl:ar,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:on,getCachedCode:Y,preloadCachedCode:R});return Nt.onDone(null,J),J}return fc})});var L8=Te((Kxr,ZNe)=>{"use strict";var zVt=jX(),IVt=XNe();ZNe.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||zVt({container:i._glcontainer.node()}),a}});var LK=Te((CK,QNe)=>{"use strict";var YNe=CY(),KNe=oK(),RVt=Bqe(),JNe=jNe(),kK=ei(),DVt=Cm().selectMode,FVt=L8(),BVt=lc(),OVt=DU(),qVt=SY().styleTextSelection,$Ne={};function NVt(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 CK=QNe.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=FVt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],$Ne);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(OVt(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=RVt(h)),a.line2d===!0&&(a.line2d=KNe(h)),a.scatter2d===!0&&(a.scatter2d=YNe(h)),a.fill2d===!0&&(a.fill2d=KNe(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=kK.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],ge=ae.trace,ze=ae.t,Le=a.lineOptions[H],de,te,ke=[];ge._ownfill&&ke.push(H),ge._nexttrace&&ke.push(H+1),ke.length&&(a.fillOrder[H]=ke);var Ee=[],Se=Le&&Le.positions||ze.positions,Ge,De;if(ge.fill==="tozeroy"){for(Ge=0;GeGe&&isNaN(Se[De+1]);)De-=2;Se[Ge+1]!==0&&(Ee=[Se[Ge],0]),Ee=Ee.concat(Se.slice(Ge,De+2)),Se[De+1]!==0&&(Ee=Ee.concat([Se[De],0]))}else if(ge.fill==="tozerox"){for(Ge=0;GeGe&&isNaN(Se[De]);)De-=2;Se[Ge]!==0&&(Ee=[0,Se[Ge+1]]),Ee=Ee.concat(Se.slice(Ge,De+2)),Se[De]!==0&&(Ee=Ee.concat([0,Se[De+1]]))}else if(ge.fill==="toself"||ge.fill==="tonext"){for(Ee=[],de=0,N.splitNull=!0,te=0;te-1;for(let[N]of n)if(N){var T=N.trace,L=N.t,x=L.index,k=T._length,M=L.x,m=L.y;if(T.selectedpoints||C||E){if(C||(C=!0),T.selectedpoints){var P=a.selectBatch[x]=kK.selIndices2selPoints(T),A={};for(l=0;l{e7e.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r;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,_=t.uniforms,b=t.framebuffer,v=t.extensions,C=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,x=s.blend_equation,k=u.blend_equation,M=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,F=s.colorMask,B=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,ge=s.stencil_opBack,ze=u.stencil_opBack,Le=s.scissor_box,de=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Se={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},Ge={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},De={add:32774,subtract:32778,"reverse subtract":32779},xe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ne={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,Qe=u.blend_color,gt=s.blend_equation,qt=u.blend_equation,at=s.blend_func,Ke=u.blend_func,Ct=s.depth_range,wt=u.depth_range,Mt=s.colorMask,Bt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,ot=u.sample_coverage,At=s.stencil_func,vt=u.stencil_func,Je=s.stencil_opFront,He=u.stencil_opFront,nt=s.stencil_opBack,tt=u.stencil_opBack,It=s.scissor_box,Yt=u.scissor_box,cr=s.viewport,_r=u.viewport,{poll:function(){var yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni;u.dirty=!1,Ut=s.dither,Re=s.blend_enable,be=s.depth_enable,Oe=s.cull_enable,Ie=s.polygonOffset_enable,Fe=s.sample_alpha,ft=s.sample_enable,ye=s.stencil_enable,fe=s.scissor_enable,pe=s.depth_func,dt=u.depth_func,Pt=s.depth_mask,zt=u.depth_mask,rr=s.cull_face,Gr=u.cull_face,Br=s.frontFace,Er=u.frontFace,Rr=s.lineWidth,pi=u.lineWidth,Di=s.stencil_mask,ni=u.stencil_mask,yr=b.next,yr!==b.cur&&(yr?i.bindFramebuffer(36160,yr.framebuffer):i.bindFramebuffer(36160,null),b.cur=yr),Ut!==u.dither&&(Ut?i.enable(3024):i.disable(3024),u.dither=Ut),Re!==u.blend_enable&&(Re?i.enable(3042):i.disable(3042),u.blend_enable=Re),be!==u.depth_enable&&(be?i.enable(2929):i.disable(2929),u.depth_enable=be),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Ie!==u.polygonOffset_enable&&(Ie?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Ie),Fe!==u.sample_alpha&&(Fe?i.enable(32926):i.disable(32926),u.sample_alpha=Fe),ft!==u.sample_enable&&(ft?i.enable(32928):i.disable(32928),u.sample_enable=ft),ye!==u.stencil_enable&&(ye?i.enable(2960):i.disable(2960),u.stencil_enable=ye),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(je[0]!==Qe[0]||je[1]!==Qe[1]||je[2]!==Qe[2]||je[3]!==Qe[3])&&(i.blendColor(je[0],je[1],je[2],je[3]),Qe[0]=je[0],Qe[1]=je[1],Qe[2]=je[2],Qe[3]=je[3]),(gt[0]!==qt[0]||gt[1]!==qt[1])&&(i.blendEquationSeparate(gt[0],gt[1]),qt[0]=gt[0],qt[1]=gt[1]),(at[0]!==Ke[0]||at[1]!==Ke[1]||at[2]!==Ke[2]||at[3]!==Ke[3])&&(i.blendFuncSeparate(at[0],at[1],at[2],at[3]),Ke[0]=at[0],Ke[1]=at[1],Ke[2]=at[2],Ke[3]=at[3]),pe!==dt&&(i.depthFunc(pe),u.depth_func=pe),(Ct[0]!==wt[0]||Ct[1]!==wt[1])&&(i.depthRange(Ct[0],Ct[1]),wt[0]=Ct[0],wt[1]=Ct[1]),Pt!==zt&&(i.depthMask(Pt),u.depth_mask=Pt),(Mt[0]!==Bt[0]||Mt[1]!==Bt[1]||Mt[2]!==Bt[2]||Mt[3]!==Bt[3])&&(i.colorMask(Mt[0],Mt[1],Mt[2],Mt[3]),Bt[0]=Mt[0],Bt[1]=Mt[1],Bt[2]=Mt[2],Bt[3]=Mt[3]),rr!==Gr&&(i.cullFace(rr),u.cull_face=rr),Br!==Er&&(i.frontFace(Br),u.frontFace=Br),Rr!==pi&&(i.lineWidth(Rr),u.lineWidth=Rr),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==ot[0]||Ae[1]!==ot[1])&&(i.sampleCoverage(Ae[0],Ae[1]),ot[0]=Ae[0],ot[1]=Ae[1]),Di!==ni&&(i.stencilMask(Di),u.stencil_mask=Di),(At[0]!==vt[0]||At[1]!==vt[1]||At[2]!==vt[2])&&(i.stencilFunc(At[0],At[1],At[2]),vt[0]=At[0],vt[1]=At[1],vt[2]=At[2]),(Je[0]!==He[0]||Je[1]!==He[1]||Je[2]!==He[2]||Je[3]!==He[3])&&(i.stencilOpSeparate(Je[0],Je[1],Je[2],Je[3]),He[0]=Je[0],He[1]=Je[1],He[2]=Je[2],He[3]=Je[3]),(nt[0]!==tt[0]||nt[1]!==tt[1]||nt[2]!==tt[2]||nt[3]!==tt[3])&&(i.stencilOpSeparate(nt[0],nt[1],nt[2],nt[3]),tt[0]=nt[0],tt[1]=nt[1],tt[2]=nt[2],tt[3]=nt[3]),(It[0]!==Yt[0]||It[1]!==Yt[1]||It[2]!==Yt[2]||It[3]!==Yt[3])&&(i.scissor(It[0],It[1],It[2],It[3]),Yt[0]=It[0],Yt[1]=It[1],Yt[2]=It[2],Yt[3]=It[3]),(cr[0]!==_r[0]||cr[1]!==_r[1]||cr[2]!==_r[2]||cr[3]!==_r[3])&&(i.viewport(cr[0],cr[1],cr[2],cr[3]),_r[0]=cr[0],_r[1]=cr[1],_r[2]=cr[2],_r[3]=cr[3])},refresh:function(){var yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi;u.dirty=!1,be=s.dither,Oe=s.blend_enable,Ie=s.depth_enable,Fe=s.cull_enable,ft=s.polygonOffset_enable,ye=s.sample_alpha,fe=s.sample_enable,pe=s.stencil_enable,dt=s.scissor_enable,Pt=s.depth_func,zt=u.depth_func,rr=s.depth_mask,Gr=u.depth_mask,Br=s.cull_face,Er=u.cull_face,Rr=s.frontFace,pi=u.frontFace,Di=s.lineWidth,ni=u.lineWidth,$i=s.stencil_mask,Qi=u.stencil_mask,yr=b.next,yr?i.bindFramebuffer(36160,yr.framebuffer):i.bindFramebuffer(36160,null),b.cur=yr,Ut=d,Re=0;for(var si=0;si{t7e.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,F=d.blend_equation,B=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,ge=d.sample_coverage,ze=h.stencil_func,Le=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Se=h.scissor_box,Ge=d.scissor_box,De=h.viewport,xe=d.viewport,Ne={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},Qe={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},qt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},at={cw:2304,ccw:2305},Ke={},Ct={},{draw:function(wt){var Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re;if(Mt=x.angle_instanced_arrays,Bt=wt.framebuffer,Zt=L.getFramebuffer(Bt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,ot=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii;be=h.dither,be!==d.dither&&(be?l.enable(3024):l.disable(3024),d.dither=be),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Ie=m[0],Fe=m[1],ft=m[2],ye=m[3],(Ie!==P[0]||Fe!==P[1]||ft!==P[2]||ye!==P[3])&&(l.blendColor(Ie,Fe,ft,ye),P[0]=Ie,P[1]=Fe,P[2]=ft,P[3]=ye),fe=A[0],pe=A[1],(fe!==F[0]||pe!==F[1])&&(l.blendEquationSeparate(fe,pe),F[0]=fe,F[1]=pe),dt=B[0],Pt=B[1],zt=B[2],rr=B[3],(dt!==U[0]||Pt!==U[1]||zt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(dt,Pt,zt,rr),U[0]=dt,U[1]=Pt,U[2]=zt,U[3]=rr),Gr=h.depth_enable,Gr!==d.depth_enable&&(Gr?l.enable(2929):l.disable(2929),d.depth_enable=Gr),Br=h.depth_func,Br!==d.depth_func&&(l.depthFunc(Br),d.depth_func=Br),Er=G[0],Rr=G[1],(Er!==j[0]||Rr!==j[1])&&(l.depthRange(Er,Rr),j[0]=Er,j[1]=Rr),pi=h.depth_mask,pi!==d.depth_mask&&(l.depthMask(pi),d.depth_mask=pi),Di=W[0],ni=W[1],$i=W[2],Qi=W[3],(Di!==N[0]||ni!==N[1]||$i!==N[2]||Qi!==N[3])&&(l.colorMask(Di,ni,$i,Qi),N[0]=Di,N[1]=ni,N[2]=$i,N[3]=Qi),si=h.cull_enable,si!==d.cull_enable&&(si?l.enable(2884):l.disable(2884),d.cull_enable=si),Ti=h.cull_face,Ti!==d.cull_face&&(l.cullFace(Ti),d.cull_face=Ti),Ni=h.frontFace,Ni!==d.frontFace&&(l.frontFace(Ni),d.frontFace=Ni),Rt=h.lineWidth,Rt!==d.lineWidth&&(l.lineWidth(Rt),d.lineWidth=Rt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=yt),Gt=H[0],Wt=H[1],(Gt!==re[0]||Wt!==re[1])&&(l.polygonOffset(Gt,Wt),re[0]=Gt,re[1]=Wt),xr=h.sample_alpha,xr!==d.sample_alpha&&(xr?l.enable(32926):l.disable(32926),d.sample_alpha=xr),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Nr=ae[0],Or=ae[1],(Nr!==ge[0]||Or!==ge[1])&&(l.sampleCoverage(Nr,Or),ge[0]=Nr,ge[1]=Or),Hr=h.stencil_enable,Hr!==d.stencil_enable&&(Hr?l.enable(2960):l.disable(2960),d.stencil_enable=Hr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),gi=ze[0],ki=ze[1],Vi=ze[2],(gi!==Le[0]||ki!==Le[1]||Vi!==Le[2])&&(l.stencilFunc(gi,ki,Vi),Le[0]=gi,Le[1]=ki,Le[2]=Vi),ti=de[0],tn=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||tn!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,tn,Yr,oi),te[0]=ti,te[1]=tn,te[2]=Yr,te[3]=oi),Fi=ke[0],an=ke[1],nn=ke[2],Ri=ke[3],(Fi!==Ee[0]||an!==Ee[1]||nn!==Ee[2]||Ri!==Ee[3])&&(l.stencilOpSeparate(Fi,an,nn,Ri),Ee[0]=Fi,Ee[1]=an,Ee[2]=nn,Ee[3]=Ri),Ii=h.scissor_enable,Ii!==d.scissor_enable&&(Ii?l.enable(3089):l.disable(3089),d.scissor_enable=Ii)}At=f.framebufferWidth,vt=f.framebufferHeight,Je=f.viewportWidth,f.viewportWidth=At,He=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,At,vt),xe[0]=0,xe[1]=0,xe[2]=At,xe[3]=vt,nt=f.framebufferWidth,tt=f.framebufferHeight,l.scissor(0,0,nt,tt),Ge[0]=0,Ge[1]=0,Ge[2]=nt,Ge[3]=tt,It=d.profile,It&&(Yt=performance.now(),r.count++),cr=v.frag,_r=v.vert,yr=v.program(_r,cr),l.useProgram(yr.program),E.setVAO(null),Ut=yr.id,Re=Ke[Ut],Re?Re.call(this,wt):(Re=Ke[Ut]=n(yr),Re.call(this,wt)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=ot,f.viewportWidth=Je,f.viewportHeight=He,It&&(r.cpuTime+=performance.now()-Yt)},scope:function(wt,Mt,Bt){var Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe;Zt=wt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,At=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,Je=f.framebufferHeight,He=f.viewportWidth,f.viewportWidth=vt,nt=f.viewportHeight,f.viewportHeight=Je,tt=De[0],De[0]=i,It=De[1],De[1]=a,Yt=De[2],De[2]=vt,cr=De[3],De[3]=Je,_r=f.framebufferWidth,yr=f.framebufferHeight,Ut=Se[0],Se[0]=o,Re=Se[1],Se[1]=s,be=Se[2],Se[2]=_r,Oe=Se[3],Se[3]=yr,Ie=d.profile,Ie&&(Fe=performance.now(),r.count++),d.dirty=!0,Mt(f,wt,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=At,f.viewportWidth=He,f.viewportHeight=nt,De[0]=tt,De[1]=It,De[2]=Yt,De[3]=cr,Se[0]=Ut,Se[1]=Re,Se[2]=be,Se[3]=Oe,Ie&&(r.cpuTime+=performance.now()-Fe),d.dirty=!0},batch:function(wt,Mt){var Bt,Zt,Et,Ae,ot,At,vt,Je;if(Bt=x.angle_instanced_arrays,d.dirty){var He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki;He=h.dither,He!==d.dither&&(He?l.enable(3024):l.disable(3024),d.dither=He),nt=h.blend_enable,nt!==d.blend_enable&&(nt?l.enable(3042):l.disable(3042),d.blend_enable=nt),tt=m[0],It=m[1],Yt=m[2],cr=m[3],(tt!==P[0]||It!==P[1]||Yt!==P[2]||cr!==P[3])&&(l.blendColor(tt,It,Yt,cr),P[0]=tt,P[1]=It,P[2]=Yt,P[3]=cr),_r=A[0],yr=A[1],(_r!==F[0]||yr!==F[1])&&(l.blendEquationSeparate(_r,yr),F[0]=_r,F[1]=yr),Ut=B[0],Re=B[1],be=B[2],Oe=B[3],(Ut!==U[0]||Re!==U[1]||be!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ut,Re,be,Oe),U[0]=Ut,U[1]=Re,U[2]=be,U[3]=Oe),Ie=h.depth_enable,Ie!==d.depth_enable&&(Ie?l.enable(2929):l.disable(2929),d.depth_enable=Ie),Fe=h.depth_func,Fe!==d.depth_func&&(l.depthFunc(Fe),d.depth_func=Fe),ft=G[0],ye=G[1],(ft!==j[0]||ye!==j[1])&&(l.depthRange(ft,ye),j[0]=ft,j[1]=ye),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),pe=W[0],dt=W[1],Pt=W[2],zt=W[3],(pe!==N[0]||dt!==N[1]||Pt!==N[2]||zt!==N[3])&&(l.colorMask(pe,dt,Pt,zt),N[0]=pe,N[1]=dt,N[2]=Pt,N[3]=zt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Gr=h.cull_face,Gr!==d.cull_face&&(l.cullFace(Gr),d.cull_face=Gr),Br=h.frontFace,Br!==d.frontFace&&(l.frontFace(Br),d.frontFace=Br),Er=h.lineWidth,Er!==d.lineWidth&&(l.lineWidth(Er),d.lineWidth=Er),Rr=h.polygonOffset_enable,Rr!==d.polygonOffset_enable&&(Rr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Rr),pi=H[0],Di=H[1],(pi!==re[0]||Di!==re[1])&&(l.polygonOffset(pi,Di),re[0]=pi,re[1]=Di),ni=h.sample_alpha,ni!==d.sample_alpha&&(ni?l.enable(32926):l.disable(32926),d.sample_alpha=ni),$i=h.sample_enable,$i!==d.sample_enable&&($i?l.enable(32928):l.disable(32928),d.sample_enable=$i),Qi=ae[0],si=ae[1],(Qi!==ge[0]||si!==ge[1])&&(l.sampleCoverage(Qi,si),ge[0]=Qi,ge[1]=si),Ti=h.stencil_enable,Ti!==d.stencil_enable&&(Ti?l.enable(2960):l.disable(2960),d.stencil_enable=Ti),Ni=h.stencil_mask,Ni!==d.stencil_mask&&(l.stencilMask(Ni),d.stencil_mask=Ni),Rt=ze[0],yt=ze[1],Gt=ze[2],(Rt!==Le[0]||yt!==Le[1]||Gt!==Le[2])&&(l.stencilFunc(Rt,yt,Gt),Le[0]=Rt,Le[1]=yt,Le[2]=Gt),Wt=de[0],xr=de[1],Lr=de[2],Nr=de[3],(Wt!==te[0]||xr!==te[1]||Lr!==te[2]||Nr!==te[3])&&(l.stencilOpSeparate(Wt,xr,Lr,Nr),te[0]=Wt,te[1]=xr,te[2]=Lr,te[3]=Nr),Or=ke[0],Hr=ke[1],jr=ke[2],gi=ke[3],(Or!==Ee[0]||Hr!==Ee[1]||jr!==Ee[2]||gi!==Ee[3])&&(l.stencilOpSeparate(Or,Hr,jr,gi),Ee[0]=Or,Ee[1]=Hr,Ee[2]=jr,Ee[3]=gi),ki=h.scissor_enable,ki!==d.scissor_enable&&(ki?l.enable(3089):l.disable(3089),d.scissor_enable=ki)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=Mt),Ae=v.frag,ot=v.vert,At=v.program(ot,Ae),l.useProgram(At.program),E.setVAO(null),vt=At.id,Je=Ct[vt],Je?Je.call(this,wt,Mt):(Je=Ct[vt]=u(At),Je.call(this,wt,Mt)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var I8=Te((Qxr,r7e)=>{r7e.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt;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,_=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,F=l.depth_range,B=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,ge=l.stencil_opFront,ze=u.stencil_opBack,Le=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.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},Ge={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},De={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},xe={add:32774,subtract:32778,"reverse subtract":32779},Ne={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},Qe={},gt={},{draw:function(qt){var at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae;if(at=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 ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),At=u.blend_enable,At!==l.blend_enable&&(At?a.enable(3042):a.disable(3042),l.blend_enable=At),vt=L[0],Je=L[1],He=L[2],nt=L[3],(vt!==x[0]||Je!==x[1]||He!==x[2]||nt!==x[3])&&(a.blendColor(vt,Je,He,nt),x[0]=vt,x[1]=Je,x[2]=He,x[3]=nt),tt=k[0],It=k[1],(tt!==M[0]||It!==M[1])&&(a.blendEquationSeparate(tt,It),M[0]=tt,M[1]=It),Yt=m[0],cr=m[1],_r=m[2],yr=m[3],(Yt!==P[0]||cr!==P[1]||_r!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Yt,cr,_r,yr),P[0]=Yt,P[1]=cr,P[2]=_r,P[3]=yr),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),be=A[0],Oe=A[1],(be!==F[0]||Oe!==F[1])&&(a.depthRange(be,Oe),F[0]=be,F[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),Fe=B[0],ft=B[1],ye=B[2],fe=B[3],(Fe!==U[0]||ft!==U[1]||ye!==U[2]||fe!==U[3])&&(a.colorMask(Fe,ft,ye,fe),U[0]=Fe,U[1]=ft,U[2]=ye,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),zt=u.lineWidth,zt!==l.lineWidth&&(a.lineWidth(zt),l.lineWidth=zt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Gr=G[0],Br=G[1],(Gr!==j[0]||Br!==j[1])&&(a.polygonOffset(Gr,Br),j[0]=Gr,j[1]=Br),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Rr=u.sample_enable,Rr!==l.sample_enable&&(Rr?a.enable(32928):a.disable(32928),l.sample_enable=Rr),pi=W[0],Di=W[1],(pi!==N[0]||Di!==N[1])&&(a.sampleCoverage(pi,Di),N[0]=pi,N[1]=Di),ni=u.stencil_enable,ni!==l.stencil_enable&&(ni?a.enable(2960):a.disable(2960),l.stencil_enable=ni),$i=u.stencil_mask,$i!==l.stencil_mask&&(a.stencilMask($i),l.stencil_mask=$i),Qi=H[0],si=H[1],Ti=H[2],(Qi!==re[0]||si!==re[1]||Ti!==re[2])&&(a.stencilFunc(Qi,si,Ti),re[0]=Qi,re[1]=si,re[2]=Ti),Ni=ae[0],Rt=ae[1],yt=ae[2],Gt=ae[3],(Ni!==ge[0]||Rt!==ge[1]||yt!==ge[2]||Gt!==ge[3])&&(a.stencilOpSeparate(Ni,Rt,yt,Gt),ge[0]=Ni,ge[1]=Rt,ge[2]=yt,ge[3]=Gt),Wt=ze[0],xr=ze[1],Lr=ze[2],Nr=ze[3],(Wt!==Le[0]||xr!==Le[1]||Lr!==Le[2]||Nr!==Le[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Nr),Le[0]=Wt,Le[1]=xr,Le[2]=Lr,Le[3]=Nr),Or=u.scissor_enable,Or!==l.scissor_enable&&(Or?a.enable(3089):a.disable(3089),l.scissor_enable=Or),Hr=de[0],jr=de[1],gi=de[2],ki=de[3],(Hr!==te[0]||jr!==te[1]||gi!==te[2]||ki!==te[3])&&(a.scissor(Hr,jr,gi,ki),te[0]=Hr,te[1]=jr,te[2]=gi,te[3]=ki),Vi=ke[0],ti=ke[1],tn=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||tn!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,tn,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=tn,Ee[3]=Yr),l.dirty=!1}Ct=l.profile,Ct&&(wt=performance.now(),r.count++),Mt=d.frag,Bt=d.vert,Zt=d.program(Bt,Mt),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=Qe[Et],Ae?Ae.call(this,qt):(Ae=Qe[Et]=n(Zt),Ae.call(this,qt)),_.setVAO(null),Ct&&(r.cpuTime+=performance.now()-wt)},scope:function(qt,at,Ke){var Ct,wt;Ct=l.profile,Ct&&(wt=performance.now(),r.count++),at(o,qt,Ke),Ct&&(r.cpuTime+=performance.now()-wt)},batch:function(qt,at){var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot;if(Ke=C.angle_instanced_arrays,Ct=v.next,Ct!==v.cur&&(Ct?a.bindFramebuffer(36160,Ct.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ct),l.dirty){var At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi;At=u.dither,At!==l.dither&&(At?a.enable(3024):a.disable(3024),l.dither=At),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),Je=L[0],He=L[1],nt=L[2],tt=L[3],(Je!==x[0]||He!==x[1]||nt!==x[2]||tt!==x[3])&&(a.blendColor(Je,He,nt,tt),x[0]=Je,x[1]=He,x[2]=nt,x[3]=tt),It=k[0],Yt=k[1],(It!==M[0]||Yt!==M[1])&&(a.blendEquationSeparate(It,Yt),M[0]=It,M[1]=Yt),cr=m[0],_r=m[1],yr=m[2],Ut=m[3],(cr!==P[0]||_r!==P[1]||yr!==P[2]||Ut!==P[3])&&(a.blendFuncSeparate(cr,_r,yr,Ut),P[0]=cr,P[1]=_r,P[2]=yr,P[3]=Ut),Re=u.depth_enable,Re!==l.depth_enable&&(Re?a.enable(2929):a.disable(2929),l.depth_enable=Re),be=u.depth_func,be!==l.depth_func&&(a.depthFunc(be),l.depth_func=be),Oe=A[0],Ie=A[1],(Oe!==F[0]||Ie!==F[1])&&(a.depthRange(Oe,Ie),F[0]=Oe,F[1]=Ie),Fe=u.depth_mask,Fe!==l.depth_mask&&(a.depthMask(Fe),l.depth_mask=Fe),ft=B[0],ye=B[1],fe=B[2],pe=B[3],(ft!==U[0]||ye!==U[1]||fe!==U[2]||pe!==U[3])&&(a.colorMask(ft,ye,fe,pe),U[0]=ft,U[1]=ye,U[2]=fe,U[3]=pe),dt=u.cull_enable,dt!==l.cull_enable&&(dt?a.enable(2884):a.disable(2884),l.cull_enable=dt),Pt=u.cull_face,Pt!==l.cull_face&&(a.cullFace(Pt),l.cull_face=Pt),zt=u.frontFace,zt!==l.frontFace&&(a.frontFace(zt),l.frontFace=zt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Gr=u.polygonOffset_enable,Gr!==l.polygonOffset_enable&&(Gr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Gr),Br=G[0],Er=G[1],(Br!==j[0]||Er!==j[1])&&(a.polygonOffset(Br,Er),j[0]=Br,j[1]=Er),Rr=u.sample_alpha,Rr!==l.sample_alpha&&(Rr?a.enable(32926):a.disable(32926),l.sample_alpha=Rr),pi=u.sample_enable,pi!==l.sample_enable&&(pi?a.enable(32928):a.disable(32928),l.sample_enable=pi),Di=W[0],ni=W[1],(Di!==N[0]||ni!==N[1])&&(a.sampleCoverage(Di,ni),N[0]=Di,N[1]=ni),$i=u.stencil_enable,$i!==l.stencil_enable&&($i?a.enable(2960):a.disable(2960),l.stencil_enable=$i),Qi=u.stencil_mask,Qi!==l.stencil_mask&&(a.stencilMask(Qi),l.stencil_mask=Qi),si=H[0],Ti=H[1],Ni=H[2],(si!==re[0]||Ti!==re[1]||Ni!==re[2])&&(a.stencilFunc(si,Ti,Ni),re[0]=si,re[1]=Ti,re[2]=Ni),Rt=ae[0],yt=ae[1],Gt=ae[2],Wt=ae[3],(Rt!==ge[0]||yt!==ge[1]||Gt!==ge[2]||Wt!==ge[3])&&(a.stencilOpSeparate(Rt,yt,Gt,Wt),ge[0]=Rt,ge[1]=yt,ge[2]=Gt,ge[3]=Wt),xr=ze[0],Lr=ze[1],Nr=ze[2],Or=ze[3],(xr!==Le[0]||Lr!==Le[1]||Nr!==Le[2]||Or!==Le[3])&&(a.stencilOpSeparate(xr,Lr,Nr,Or),Le[0]=xr,Le[1]=Lr,Le[2]=Nr,Le[3]=Or),Hr=u.scissor_enable,Hr!==l.scissor_enable&&(Hr?a.enable(3089):a.disable(3089),l.scissor_enable=Hr),jr=de[0],gi=de[1],ki=de[2],Vi=de[3],(jr!==te[0]||gi!==te[1]||ki!==te[2]||Vi!==te[3])&&(a.scissor(jr,gi,ki,Vi),te[0]=jr,te[1]=gi,te[2]=ki,te[3]=Vi),ti=ke[0],tn=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||tn!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,tn,Yr,oi),Ee[0]=ti,Ee[1]=tn,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}wt=l.profile,wt&&(Mt=performance.now(),r.count+=at),Bt=d.frag,Zt=d.vert,Et=d.program(Zt,Bt),a.useProgram(Et.program),_.setVAO(null),Ae=Et.id,ot=gt[Ae],ot?ot.call(this,qt,at):(ot=gt[Ae]=i(Et),ot.call(this,qt,at)),_.setVAO(null),wt&&(r.cpuTime+=performance.now()-Mt)}}}});var R8=Te((ebr,i7e)=>{i7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt){"use strict";var tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn;return tt=t.gl,It=t.context,Yt=t.strings,cr=t.next,_r=t.current,yr=t.draw,Ut=t.elements,Re=t.buffer,be=t.shader,Oe=t.attributes,Ie=t.vao,Fe=t.uniforms,ft=t.framebuffer,ye=t.extensions,fe=t.timer,pe=t.isBufferArgs,dt=cr.blend_color,Pt=_r.blend_color,zt=cr.blend_equation,rr=_r.blend_equation,Gr=cr.blend_func,Br=_r.blend_func,Er=cr.depth_range,Rr=_r.depth_range,pi=cr.colorMask,Di=_r.colorMask,ni=cr.polygonOffset_offset,$i=_r.polygonOffset_offset,Qi=cr.sample_coverage,si=_r.sample_coverage,Ti=cr.stencil_func,Ni=_r.stencil_func,Rt=cr.stencil_opFront,yt=_r.stencil_opFront,Gt=cr.stencil_opBack,Wt=_r.stencil_opBack,xr=cr.scissor_box,Lr=_r.scissor_box,Nr=cr.viewport,Or=_r.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},jr={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},gi={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},ki={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},tn={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,an={},an.stride=8,an.offset=16,an.divisor=1,nn={},nn.stride=4,nn.offset=0,nn.divisor=1,{draw:function(Ri){var Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ii=ye.angle_instanced_arrays,xn=ft.next,xn!==ft.cur&&(xn?tt.bindFramebuffer(36160,xn.framebuffer):tt.bindFramebuffer(36160,null),ft.cur=xn),_r.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,Bs,Tt,Vt,wr,mr,Fr,_i;os=cr.dither,os!==_r.dither&&(os?tt.enable(3024):tt.disable(3024),_r.dither=os),_l=cr.depth_func,_l!==_r.depth_func&&(tt.depthFunc(_l),_r.depth_func=_l),Ss=Er[0],po=Er[1],(Ss!==Rr[0]||po!==Rr[1])&&(tt.depthRange(Ss,po),Rr[0]=Ss,Rr[1]=po),go=cr.depth_mask,go!==_r.depth_mask&&(tt.depthMask(go),_r.depth_mask=go),ss=pi[0],qo=pi[1],zo=pi[2],io=pi[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&(tt.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=cr.cull_enable,Io!==_r.cull_enable&&(Io?tt.enable(2884):tt.disable(2884),_r.cull_enable=Io),Da=cr.cull_face,Da!==_r.cull_face&&(tt.cullFace(Da),_r.cull_face=Da),vs=cr.frontFace,vs!==_r.frontFace&&(tt.frontFace(vs),_r.frontFace=vs),fs=cr.lineWidth,fs!==_r.lineWidth&&(tt.lineWidth(fs),_r.lineWidth=fs),cl=cr.polygonOffset_enable,cl!==_r.polygonOffset_enable&&(cl?tt.enable(32823):tt.disable(32823),_r.polygonOffset_enable=cl),el=ni[0],Hs=ni[1],(el!==$i[0]||Hs!==$i[1])&&(tt.polygonOffset(el,Hs),$i[0]=el,$i[1]=Hs),Ro=cr.sample_alpha,Ro!==_r.sample_alpha&&(Ro?tt.enable(32926):tt.disable(32926),_r.sample_alpha=Ro),tl=cr.sample_enable,tl!==_r.sample_enable&&(tl?tt.enable(32928):tt.disable(32928),_r.sample_enable=tl),Fs=Qi[0],hl=Qi[1],(Fs!==si[0]||hl!==si[1])&&(tt.sampleCoverage(Fs,hl),si[0]=Fs,si[1]=hl),Fa=cr.stencil_mask,Fa!==_r.stencil_mask&&(tt.stencilMask(Fa),_r.stencil_mask=Fa),Ms=Ti[0],jo=Ti[1],Rs=Ti[2],(Ms!==Ni[0]||jo!==Ni[1]||Rs!==Ni[2])&&(tt.stencilFunc(Ms,jo,Rs),Ni[0]=Ms,Ni[1]=jo,Ni[2]=Rs),Is=Rt[0],Bs=Rt[1],Tt=Rt[2],Vt=Rt[3],(Is!==yt[0]||Bs!==yt[1]||Tt!==yt[2]||Vt!==yt[3])&&(tt.stencilOpSeparate(Is,Bs,Tt,Vt),yt[0]=Is,yt[1]=Bs,yt[2]=Tt,yt[3]=Vt),wr=Gt[0],mr=Gt[1],Fr=Gt[2],_i=Gt[3],(wr!==Wt[0]||mr!==Wt[1]||Fr!==Wt[2]||_i!==Wt[3])&&(tt.stencilOpSeparate(wr,mr,Fr,_i),Wt[0]=wr,Wt[1]=mr,Wt[2]=Fr,Wt[3]=_i)}bi=Ri.viewport,Xr=bi.x|0,ct=bi.y|0,tr="width"in bi?bi.width|0:It.framebufferWidth-Xr,pr="height"in bi?bi.height|0:It.framebufferHeight-ct,gr=It.viewportWidth,It.viewportWidth=tr,Zr=It.viewportHeight,It.viewportHeight=pr,tt.viewport(Xr,ct,tr,pr),Or[0]=Xr,Or[1]=ct,Or[2]=tr,Or[3]=pr,tt.blendColor(0,0,0,0),Pt[0]=0,Pt[1]=0,Pt[2]=0,Pt[3]=0,n?tt.enable(3042):tt.disable(3042),_r.blend_enable=n,tt.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,tt.blendFuncSeparate(770,771,773,1),Br[0]=770,Br[1]=771,Br[2]=773,Br[3]=1,Ai=i.call(this,It,Ri,0),Ai?tt.enable(2929):tt.disable(2929),_r.depth_enable=Ai,en=Ri.viewport,ii=en.x|0,Xi=en.y|0,aa="width"in en?en.width|0:It.framebufferWidth-ii,Mn="height"in en?en.height|0:It.framebufferHeight-Xi,tt.scissor(ii,Xi,aa,Mn),Lr[0]=ii,Lr[1]=Xi,Lr[2]=aa,Lr[3]=Mn,a?tt.enable(3089):tt.disable(3089),_r.scissor_enable=a,o?tt.enable(2960):tt.disable(2960),_r.stencil_enable=o,Un=_r.profile,Un&&(Ga=performance.now(),r.count++),tt.useProgram(s.program),ma=ye.angle_instanced_arrays,Ie.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,pe(Yr)?(ka=!0,kn=Re.createStream(34962,Yr),uo=kn.dtype):(kn=Re.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)):(pe(Yr.buffer)?kn=Re.createStream(34962,Yr.buffer):kn=Re.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,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,pe(Fi)?(Co=!0,Sn=Re.createStream(34962,Fi),Ko=Sn.dtype):(Sn=Re.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)):(pe(Fi.buffer)?Sn=Re.createStream(34962,Fi.buffer):Sn=Re.getBuffer(Fi.buffer),Ko="type"in Fi?ti[Fi.type]:Sn.dtype,Ba=!!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!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(tt.bindBuffer(34962,Sn.buffer),tt.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,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,Oa=0,ha=0,pe(oi)?(vo=!0,jn=Re.createStream(34962,oi),qs=jn.dtype):(jn=Re.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)):(pe(oi.buffer)?jn=Re.createStream(34962,oi.buffer):jn=Re.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=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!==Oa)&&(tt.bindBuffer(34962,jn.buffer),tt.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),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,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,pe(an)?(wo=!0,qn=Re.createStream(34962,an),lo=qn.dtype):(qn=Re.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?qn=Re.createStream(34962,an.buffer):qn=Re.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,rn=Oe[Na],Ra===1?(rn.buffer||tt.enableVertexAttribArray(Na),Pa=Eo||2,(rn.type!==lo||rn.size!==Pa||rn.buffer!==qn||rn.normalized!==Ja||rn.offset!==eo||rn.stride!==sa)&&(tt.bindBuffer(34962,qn.buffer),tt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),rn.type=lo,rn.size=Pa,rn.buffer=qn,rn.normalized=Ja,rn.offset=eo,rn.stride=sa),rn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),rn.divisor=es)):(rn.buffer&&(tt.disableVertexAttribArray(Na),rn.buffer=null),(rn.x!==Xn||rn.y!==un||rn.z!==$n||rn.w!==Ka)&&(tt.vertexAttrib4f(Na,Xn,un,$n,Ka),rn.x=Xn,rn.y=un,rn.z=$n,rn.w=Ka)),to=Ri.colorBuffer,nn.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,pe(nn)?(yo=!0,Ca=Re.createStream(34962,nn),Ho=Ca.dtype):(Ca=Re.getBuffer(nn),Ca?Ho=Ca.dtype:"constant"in nn?(Jo=2,typeof nn.constant=="number"?(Ao=nn.constant,Dn=_a=Ws=0):(Ao=nn.constant.length>0?nn.constant[0]:0,Dn=nn.constant.length>1?nn.constant[1]:0,_a=nn.constant.length>2?nn.constant[2]:0,Ws=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?Ca=Re.createStream(34962,nn.buffer):Ca=Re.getBuffer(nn.buffer),Ho="type"in nn?ti[nn.type]:Ca.dtype,Ts=!!nn.normalized,Es=nn.size|0,Wa=nn.offset|0,To=nn.stride|0,ts=nn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||tt.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(tt.bindBuffer(34962,Ca.buffer),tt.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,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)),Bo=p.location,ko=Oe[Bo],ko.buffer||tt.enableVertexAttribArray(Bo),(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(Bo,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(Bo,0),ko.divisor=0),oo=_.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),Ds=Ri.opacity,tt.uniform1f(E.location,Ds),fl=Ri.scale,as=fl[0],Ma=fl[1],tt.uniform2f(T.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),Do=Ri.translate,Lo=Do[0],xs=Do[1],tt.uniform2f(k.location,Lo,xs),ks=Ri.translateFract,Ea=ks[0],Jn=ks[1],tt.uniform2f(M.location,Ea,Jn),Oo=P.call(this,It,Ri,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],tt.uniform4f(m.location,rl,Gs,bs,zs),$o=yr.elements,$o?tt.bindBuffer(34963,$o.buffer.buffer):Ie.currentVAO&&($o=Ut.getElements(Ie.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)),_r.dirty=!0,Ie.setVAO(null),It.viewportWidth=gr,It.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Re.destroyStream(kn),Co&&Re.destroyStream(Sn),vo&&Re.destroyStream(jn),wo&&Re.destroyStream(qn),yo&&Re.destroyStream(Ca),$s.unbind()},scope:function(Ri,Ii,xn){var bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht;bi=Ri.viewport,Xr=bi.x|0,ct=bi.y|0,tr="width"in bi?bi.width|0:It.framebufferWidth-Xr,pr="height"in bi?bi.height|0:It.framebufferHeight-ct,gr=It.viewportWidth,It.viewportWidth=tr,Zr=It.viewportHeight,It.viewportHeight=pr,Ai=Nr[0],Nr[0]=Xr,en=Nr[1],Nr[1]=ct,ii=Nr[2],Nr[2]=tr,Xi=Nr[3],Nr[3]=pr,aa=dt[0],dt[0]=A,Mn=dt[1],dt[1]=F,Un=dt[2],dt[2]=B,Ga=dt[3],dt[3]=U,ma=cr.blend_enable,cr.blend_enable=G,oa=zt[0],zt[0]=j,ka=zt[1],zt[1]=W,so=Gr[0],Gr[0]=N,Kr=Gr[1],Gr[1]=H,Ia=Gr[2],Gr[2]=re,Yo=Gr[3],Gr[3]=ae,fa=i.call(this,It,Ri,xn),kn=cr.depth_enable,cr.depth_enable=fa,Ta=Ri.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:It.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:It.framebufferHeight-uo,fo=xr[0],xr[0]=ys,mn=xr[1],xr[1]=uo,ra=xr[2],xr[2]=ls,wa=xr[3],xr[3]=$a,ws=cr.scissor_enable,cr.scissor_enable=ge,Co=cr.stencil_enable,cr.stencil_enable=ze,Po=_r.profile,Po&&(Wi=performance.now(),r.count++),gn=yr.offset,yr.offset=Le,Ps=yr.count,yr.count=de,Ha=Ri.count,Sn=yr.instances,yr.instances=Ha,ao=yr.primitive,yr.primitive=te,Ba=ke.call(this,It,Ri,xn),Ko=Fe[Ee],Fe[Ee]=Ba,Qo=Ri.miterLimit,Hi=Fe[Se],Fe[Se]=Qo,Sa=Ri.scale,Qa=Fe[Ge],Fe[Ge]=Sa,vn=Ri.scaleFract,da=Fe[De],Fe[De]=vn,la=Ri.translateFract,vo=Fe[xe],Fe[xe]=la,As=Ri.translate,ps=Fe[Ne],Fe[Ne]=As,co=Ri.thickness,mo=Fe[ce],Fe[ce]=co,No=Ri.dashTexture,jn=Fe[je],Fe[je]=No,Go=Ri.opacity,Ys=Fe[Qe],Fe[Qe]=Go,qs=It.pixelRatio,Ns=Fe[gt],Fe[gt]=qs,Oa=Ri.id,ha=Fe[qt],Fe[qt]=Oa,Vs=Ri.dashLength,Ya=Fe[at],Fe[at]=Vs,_n=P.call(this,It,Ri,xn),Vn=Fe[Ke],Fe[Ke]=_n,wo=Ri.depth,Ra=Fe[Ct],Fe[Ct]=wo,Xn=wt.state,wt.state=1,un=wt.x,wt.x=0,$n=wt.y,wt.y=0,Ka=wt.z,wt.z=0,qn=wt.w,wt.w=0,Eo=wt.buffer,wt.buffer=d,Ja=wt.size,wt.size=0,lo=wt.normalized,wt.normalized=!1,eo=wt.type,wt.type=5126,sa=wt.offset,wt.offset=0,es=wt.stride,wt.stride=8,Na=wt.divisor,wt.divisor=0,rn=Mt.state,Mt.state=1,Pa=Mt.x,Mt.x=0,to=Mt.y,Mt.y=0,yo=Mt.z,Mt.z=0,Jo=Mt.w,Mt.w=0,Ao=Mt.buffer,Mt.buffer=d,Dn=Mt.size,Mt.size=0,_a=Mt.normalized,Mt.normalized=!1,Ws=Mt.type,Mt.type=5126,Ca=Mt.offset,Mt.offset=4,Es=Mt.stride,Mt.stride=8,Ts=Mt.divisor,Mt.divisor=0,Ho=Ri.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,pe(Yr)?(Wa=!0,Bo=Re.createStream(34962,Yr),za=Bo.dtype):(Bo=Re.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=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,ln=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?Bo=Re.createStream(34962,Yr.buffer):Bo=Re.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Bt.state,Bt.state=To,Ds=Bt.x,Bt.x=ts,fl=Bt.y,Bt.y=Wo,as=Bt.z,Bt.z=qa,Ma=Bt.w,Bt.w=ln,Qs=Bt.buffer,Bt.buffer=Bo,ho=Bt.size,Bt.size=ko,gs=Bt.normalized,Bt.normalized=oo,Vo=Bt.type,Bt.type=za,Do=Bt.offset,Bt.offset=ea,Lo=Bt.stride,Bt.stride=rs,xs=Bt.divisor,Bt.divisor=$s,ks=Ri.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,pe(oi)?(Ea=!0,zs=Re.createStream(34962,oi),os=zs.dtype):(zs=Re.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=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)):(pe(oi.buffer)?zs=Re.createStream(34962,oi.buffer):zs=Re.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=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Ri.positionFractBuffer,Fi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,Tt=5126,Vt=0,wr=0,mr=0,pe(Fi)?(tl=!0,Rs=Re.createStream(34962,Fi),Tt=Rs.dtype):(Rs=Re.getBuffer(Fi),Rs?Tt=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)):(pe(Fi.buffer)?Rs=Re.createStream(34962,Fi.buffer):Rs=Re.getBuffer(Fi.buffer),Tt="type"in Fi?ti[Fi.type]:Rs.dtype,Bs=!!Fi.normalized,Is=Fi.size|0,Vt=Fi.offset|0,wr=Fi.stride|0,mr=Fi.divisor|0)),Fr=Et.state,Et.state=Fs,_i=Et.x,Et.x=hl,Si=Et.y,Et.y=Fa,Ci=Et.z,Et.z=Ms,Ki=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,di=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=Tt,Mi=Et.offset,Et.offset=Vt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=mr,ya=Ri.positionFractBuffer,an.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,pe(an)?(ia=!0,Ks=Re.createStream(34962,an),Bl=Ks.dtype):(Ks=Re.getBuffer(an),Ks?Bl=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?Ks=Re.createStream(34962,an.buffer):Ks=Re.getBuffer(an.buffer),Bl="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Vl=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,nl=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Bl,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Ri.colorBuffer,nn.buffer=Ll,ms=!1,Os=1,Xl=0,Gl=0,Nl=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ue=0,rt=0,pe(nn)?(ms=!0,w=Re.createStream(34962,nn),ee=w.dtype):(w=Re.getBuffer(nn),w?ee=w.dtype:"constant"in nn?(Os=2,typeof nn.constant=="number"?(Xl=nn.constant,Gl=Nl=le=0):(Xl=nn.constant.length>0?nn.constant[0]:0,Gl=nn.constant.length>1?nn.constant[1]:0,Nl=nn.constant.length>2?nn.constant[2]:0,le=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?w=Re.createStream(34962,nn.buffer):w=Re.getBuffer(nn.buffer),ee="type"in nn?ti[nn.type]:w.dtype,Q=!!nn.normalized,q=nn.size|0,ue=nn.offset|0,Ue=nn.stride|0,rt=nn.divisor|0)),mt=ot.state,ot.state=Os,Ft=ot.x,ot.x=Xl,ir=ot.y,ot.y=Gl,or=ot.z,ot.z=Nl,kr=ot.w,ot.w=le,Vr=ot.buffer,ot.buffer=w,he=ot.size,ot.size=q,Me=ot.normalized,ot.normalized=Q,qe=ot.type,ot.type=ee,Ve=ot.offset,ot.offset=ue,lt=ot.stride,ot.stride=Ue,it=ot.divisor,ot.divisor=rt,pt=be.vert,be.vert=At,Ht=be.frag,be.frag=vt,_r.dirty=!0,Ii(It,Ri,xn),It.viewportWidth=gr,It.viewportHeight=Zr,Nr[0]=Ai,Nr[1]=en,Nr[2]=ii,Nr[3]=Xi,dt[0]=aa,dt[1]=Mn,dt[2]=Un,dt[3]=Ga,cr.blend_enable=ma,zt[0]=oa,zt[1]=ka,Gr[0]=so,Gr[1]=Kr,Gr[2]=Ia,Gr[3]=Yo,cr.depth_enable=kn,xr[0]=fo,xr[1]=mn,xr[2]=ra,xr[3]=wa,cr.scissor_enable=ws,cr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-Wi),yr.offset=gn,yr.count=Ps,yr.instances=Sn,yr.primitive=ao,Fe[Ee]=Ko,Fe[Se]=Hi,Fe[Ge]=Qa,Fe[De]=da,Fe[xe]=vo,Fe[Ne]=ps,Fe[ce]=mo,Fe[je]=jn,Fe[Qe]=Ys,Fe[gt]=Ns,Fe[qt]=ha,Fe[at]=Ya,Fe[Ke]=Vn,Fe[Ct]=Ra,wt.state=Xn,wt.x=un,wt.y=$n,wt.z=Ka,wt.w=qn,wt.buffer=Eo,wt.size=Ja,wt.normalized=lo,wt.type=eo,wt.offset=sa,wt.stride=es,wt.divisor=Na,Mt.state=rn,Mt.x=Pa,Mt.y=to,Mt.z=yo,Mt.w=Jo,Mt.buffer=Ao,Mt.size=Dn,Mt.normalized=_a,Mt.type=Ws,Mt.offset=Ca,Mt.stride=Es,Mt.divisor=Ts,Wa&&Re.destroyStream(Bo),Bt.state=us,Bt.x=Ds,Bt.y=fl,Bt.z=as,Bt.w=Ma,Bt.buffer=Qs,Bt.size=ho,Bt.normalized=gs,Bt.type=Vo,Bt.offset=Do,Bt.stride=Lo,Bt.divisor=xs,Ea&&Re.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Re.destroyStream(Rs),Et.state=Fr,Et.x=_i,Et.y=Si,Et.z=Ci,Et.w=Ki,Et.buffer=Fn,Et.size=Pi,Et.normalized=di,Et.type=Li,Et.offset=Mi,Et.stride=Gn,Et.divisor=ta,ia&&Re.destroyStream(Ks),Ae.state=Vl,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=nl,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Re.destroyStream(w),ot.state=mt,ot.x=Ft,ot.y=ir,ot.z=or,ot.w=kr,ot.buffer=Vr,ot.size=he,ot.normalized=Me,ot.type=qe,ot.offset=Ve,ot.stride=lt,ot.divisor=it,be.vert=pt,be.frag=Ht,_r.dirty=!0},batch:function(Ri,Ii){var xn,bi,Xr,ct,tr,pr,gr;if(xn=ye.angle_instanced_arrays,bi=ft.next,bi!==ft.cur&&(bi?tt.bindFramebuffer(36160,bi.framebuffer):tt.bindFramebuffer(36160,null),ft.cur=bi),_r.dirty){var Zr,Ai,en,ii,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=cr.dither,Zr!==_r.dither&&(Zr?tt.enable(3024):tt.disable(3024),_r.dither=Zr),Ai=cr.depth_func,Ai!==_r.depth_func&&(tt.depthFunc(Ai),_r.depth_func=Ai),en=Er[0],ii=Er[1],(en!==Rr[0]||ii!==Rr[1])&&(tt.depthRange(en,ii),Rr[0]=en,Rr[1]=ii),Xi=cr.depth_mask,Xi!==_r.depth_mask&&(tt.depthMask(Xi),_r.depth_mask=Xi),aa=pi[0],Mn=pi[1],Un=pi[2],Ga=pi[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&(tt.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=cr.cull_enable,ma!==_r.cull_enable&&(ma?tt.enable(2884):tt.disable(2884),_r.cull_enable=ma),oa=cr.cull_face,oa!==_r.cull_face&&(tt.cullFace(oa),_r.cull_face=oa),ka=cr.frontFace,ka!==_r.frontFace&&(tt.frontFace(ka),_r.frontFace=ka),so=cr.lineWidth,so!==_r.lineWidth&&(tt.lineWidth(so),_r.lineWidth=so),Kr=cr.polygonOffset_enable,Kr!==_r.polygonOffset_enable&&(Kr?tt.enable(32823):tt.disable(32823),_r.polygonOffset_enable=Kr),Ia=ni[0],Yo=ni[1],(Ia!==$i[0]||Yo!==$i[1])&&(tt.polygonOffset(Ia,Yo),$i[0]=Ia,$i[1]=Yo),fa=cr.sample_alpha,fa!==_r.sample_alpha&&(fa?tt.enable(32926):tt.disable(32926),_r.sample_alpha=fa),kn=cr.sample_enable,kn!==_r.sample_enable&&(kn?tt.enable(32928):tt.disable(32928),_r.sample_enable=kn),Ta=Qi[0],ys=Qi[1],(Ta!==si[0]||ys!==si[1])&&(tt.sampleCoverage(Ta,ys),si[0]=Ta,si[1]=ys),uo=cr.stencil_mask,uo!==_r.stencil_mask&&(tt.stencilMask(uo),_r.stencil_mask=uo),ls=Ti[0],$a=Ti[1],fo=Ti[2],(ls!==Ni[0]||$a!==Ni[1]||fo!==Ni[2])&&(tt.stencilFunc(ls,$a,fo),Ni[0]=ls,Ni[1]=$a,Ni[2]=fo),mn=Rt[0],ra=Rt[1],wa=Rt[2],ws=Rt[3],(mn!==yt[0]||ra!==yt[1]||wa!==yt[2]||ws!==yt[3])&&(tt.stencilOpSeparate(mn,ra,wa,ws),yt[0]=mn,yt[1]=ra,yt[2]=wa,yt[3]=ws),Co=Gt[0],Po=Gt[1],Wi=Gt[2],gn=Gt[3],(Co!==Wt[0]||Po!==Wt[1]||Wi!==Wt[2]||gn!==Wt[3])&&(tt.stencilOpSeparate(Co,Po,Wi,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=Wi,Wt[3]=gn)}tt.blendColor(0,0,0,0),Pt[0]=0,Pt[1]=0,Pt[2]=0,Pt[3]=0,Je?tt.enable(3042):tt.disable(3042),_r.blend_enable=Je,tt.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,tt.blendFuncSeparate(770,771,773,1),Br[0]=770,Br[1]=771,Br[2]=773,Br[3]=1,He?tt.enable(3089):tt.disable(3089),_r.scissor_enable=He,nt?tt.enable(2960):tt.disable(2960),_r.stencil_enable=nt,Xr=_r.profile,Xr&&(ct=performance.now(),r.count+=Ii),tt.useProgram(s.program),tr=ye.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Ie.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&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=_.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&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=yr.elements,Ba?tt.bindBuffer(34963,Ba.buffer.buffer):Ie.currentVAO&&(Ba=Ut.getElements(Ie.currentVAO.elements),Ba&&tt.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?ha=Re.createStream(34962,Yr.buffer):ha=Re.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,un=Oe[Xn],Go===1?(un.buffer||tt.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(tt.bindBuffer(34962,ha.buffer),tt.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(tt.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(tt.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Fi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,rn=!1,Pa=5126,to=0,yo=0,Jo=0,pe(Fi)?(qn=!0,es=Re.createStream(34962,Fi),Pa=es.dtype):(es=Re.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)):(pe(Fi.buffer)?es=Re.createStream(34962,Fi.buffer):es=Re.getBuffer(Fi.buffer),Pa="type"in Fi?ti[Fi.type]:es.dtype,rn=!!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!==rn||Dn.offset!==to||Dn.stride!==yo)&&(tt.bindBuffer(34962,es.buffer),tt.vertexAttribPointer(Ao,_a,Pa,rn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=rn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.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,ln=5126,Bo=0,ko=0,oo=0,pe(oi)?(Ca=!0,ts=Re.createStream(34962,oi),ln=ts.dtype):(ts=Re.getBuffer(oi),ts?ln=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)):(pe(oi.buffer)?ts=Re.createStream(34962,oi.buffer):ts=Re.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=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!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(tt.bindBuffer(34962,ts.buffer),tt.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.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,an.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,pe(an)?(us=!0,ho=Re.createStream(34962,an),Do=ho.dtype):(ho=Re.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?ho=Re.createStream(34962,an.buffer):ho=Re.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||tt.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(tt.bindBuffer(34962,ho.buffer),tt.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.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,nn.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,pe(nn)?(Gs=!0,_l=Re.createStream(34962,nn),go=_l.dtype):(_l=Re.getBuffer(nn),_l?go=_l.dtype:"constant"in nn?(bs=2,typeof nn.constant=="number"?(zs=nn.constant,$o=Aa=os=0):(zs=nn.constant.length>0?nn.constant[0]:0,$o=nn.constant.length>1?nn.constant[1]:0,Aa=nn.constant.length>2?nn.constant[2]:0,os=nn.constant.length>3?nn.constant[3]:0)):(pe(nn.buffer)?_l=Re.createStream(34962,nn.buffer):_l=Re.getBuffer(nn.buffer),go="type"in nn?ti[nn.type]:_l.dtype,po=!!nn.normalized,Ss=nn.size|0,ss=nn.offset|0,qo=nn.stride|0,zo=nn.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&&(tr.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,(!pr||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,(!pr||Ro!==Hs)&&(Ro=Hs,tt.uniform1f(C.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,tt.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,tt.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Vt=Is[1],(!pr||Tt!==Bs||wr!==Vt)&&(Tt=Bs,wr=Vt,tt.uniform2f(L.location,Bs,Vt)),mr=gr.thickness,(!pr||Fr!==mr)&&(Fr=mr,tt.uniform1f(x.location,mr)),_i=gr.translate,Si=_i[0],Ki=_i[1],(!pr||Ci!==Si||Fn!==Ki)&&(Ci=Si,Fn=Ki,tt.uniform2f(k.location,Si,Ki)),Pi=gr.translateFract,di=Pi[0],Mi=Pi[1],(!pr||Li!==di||Gn!==Mi)&&(Li=di,Gn=Mi,tt.uniform2f(M.location,di,Mi)),ta=P.call(this,It,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||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?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?tt.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):tt.drawArrays(5,0,4)),It.viewportWidth=vn,It.viewportHeight=da,jn&&Re.destroyStream(ha),qn&&Re.destroyStream(es),Ca&&Re.destroyStream(ts),us&&Re.destroyStream(ho),Gs&&Re.destroyStream(_l),el.unbind()}_r.dirty=!0,Ie.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ct)}}}});var D8=Te((tbr,n7e)=>{n7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re){"use strict";var be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr;return be=t.gl,Oe=t.context,Ie=t.strings,Fe=t.next,ft=t.current,ye=t.draw,fe=t.elements,pe=t.buffer,dt=t.shader,Pt=t.attributes,zt=t.vao,rr=t.uniforms,Gr=t.framebuffer,Br=t.extensions,Er=t.timer,Rr=t.isBufferArgs,pi=Fe.blend_color,Di=ft.blend_color,ni=Fe.blend_equation,$i=ft.blend_equation,Qi=Fe.blend_func,si=ft.blend_func,Ti=Fe.depth_range,Ni=ft.depth_range,Rt=Fe.colorMask,yt=ft.colorMask,Gt=Fe.polygonOffset_offset,Wt=ft.polygonOffset_offset,xr=Fe.sample_coverage,Lr=ft.sample_coverage,Nr=Fe.stencil_func,Or=ft.stencil_func,Hr=Fe.stencil_opFront,jr=ft.stencil_opFront,gi=Fe.stencil_opBack,ki=ft.stencil_opBack,Vi=Fe.scissor_box,ti=ft.scissor_box,tn=Fe.viewport,Yr=ft.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},an={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},nn={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},bi={},bi.stride=4,bi.offset=0,bi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ct={},ct.stride=8,ct.offset=0,ct.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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(Ai=Br.angle_instanced_arrays,en=Gr.next,en!==Gr.cur&&(en?be.bindFramebuffer(36160,en.framebuffer):be.bindFramebuffer(36160,null),Gr.cur=en),ft.dirty){var jo,Rs,Is,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=Fe.dither,jo!==ft.dither&&(jo?be.enable(3024):be.disable(3024),ft.dither=jo),Rs=Fe.depth_func,Rs!==ft.depth_func&&(be.depthFunc(Rs),ft.depth_func=Rs),Is=Ti[0],Bs=Ti[1],(Is!==Ni[0]||Bs!==Ni[1])&&(be.depthRange(Is,Bs),Ni[0]=Is,Ni[1]=Bs),Tt=Fe.depth_mask,Tt!==ft.depth_mask&&(be.depthMask(Tt),ft.depth_mask=Tt),Vt=Rt[0],wr=Rt[1],mr=Rt[2],Fr=Rt[3],(Vt!==yt[0]||wr!==yt[1]||mr!==yt[2]||Fr!==yt[3])&&(be.colorMask(Vt,wr,mr,Fr),yt[0]=Vt,yt[1]=wr,yt[2]=mr,yt[3]=Fr),_i=Fe.frontFace,_i!==ft.frontFace&&(be.frontFace(_i),ft.frontFace=_i),Si=Fe.lineWidth,Si!==ft.lineWidth&&(be.lineWidth(Si),ft.lineWidth=Si),Ci=Fe.polygonOffset_enable,Ci!==ft.polygonOffset_enable&&(Ci?be.enable(32823):be.disable(32823),ft.polygonOffset_enable=Ci),Ki=Gt[0],Fn=Gt[1],(Ki!==Wt[0]||Fn!==Wt[1])&&(be.polygonOffset(Ki,Fn),Wt[0]=Ki,Wt[1]=Fn),Pi=Fe.sample_alpha,Pi!==ft.sample_alpha&&(Pi?be.enable(32926):be.disable(32926),ft.sample_alpha=Pi),di=Fe.sample_enable,di!==ft.sample_enable&&(di?be.enable(32928):be.disable(32928),ft.sample_enable=di),Li=xr[0],Mi=xr[1],(Li!==Lr[0]||Mi!==Lr[1])&&(be.sampleCoverage(Li,Mi),Lr[0]=Li,Lr[1]=Mi),Gn=Fe.stencil_mask,Gn!==ft.stencil_mask&&(be.stencilMask(Gn),ft.stencil_mask=Gn),ta=Nr[0],ya=Nr[1],ia=Nr[2],(ta!==Or[0]||ya!==Or[1]||ia!==Or[2])&&(be.stencilFunc(ta,ya,ia),Or[0]=ta,Or[1]=ya,Or[2]=ia),pa=Hr[0],va=Hr[1],zn=Hr[2],is=Hr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(be.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=gi[0],Ks=gi[1],dl=gi[2],xl=gi[3],(Cs!==ki[0]||Ks!==ki[1]||dl!==ki[2]||xl!==ki[3])&&(be.stencilOpSeparate(Cs,Ks,dl,xl),ki[0]=Cs,ki[1]=Ks,ki[2]=dl,ki[3]=xl)}ii=Zr.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:Oe.framebufferWidth-Xi,Un="height"in ii?ii.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,be.viewport(Xi,aa,Mn,Un),Yr[0]=Xi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,be.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?be.enable(3042):be.disable(3042),ft.blend_enable=n,be.blendEquationSeparate(32774,32774),$i[0]=32774,$i[1]=32774,be.blendFuncSeparate(770,771,773,1),si[0]=770,si[1]=771,si[2]=773,si[3]=1,i?be.enable(2884):be.disable(2884),ft.cull_enable=i,be.cullFace(a),ft.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?be.enable(2929):be.disable(2929),ft.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,be.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?be.enable(3089):be.disable(3089),ft.scissor_enable=s,u?be.enable(2960):be.disable(2960),ft.stencil_enable=u,fa=ft.profile,fa&&(kn=performance.now(),r.count++),be.useProgram(l.program),Ta=Br.angle_instanced_arrays,zt.setVAO(null),ys=Zr.colorBuffer,bi.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,Rr(bi)?(uo=!0,wa=pe.createStream(34962,bi),Po=wa.dtype):(wa=pe.getBuffer(bi),wa?Po=wa.dtype:"constant"in bi?(ls=2,typeof bi.constant=="number"?($a=bi.constant,fo=mn=ra=0):($a=bi.constant.length>0?bi.constant[0]:0,fo=bi.constant.length>1?bi.constant[1]:0,mn=bi.constant.length>2?bi.constant[2]:0,ra=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?wa=pe.createStream(34962,bi.buffer):wa=pe.getBuffer(bi.buffer),Po="type"in bi?Ii[bi.type]:wa.dtype,Co=!!bi.normalized,ws=bi.size|0,Wi=bi.offset|0,gn=bi.stride|0,Ps=bi.divisor|0)),Ha=f.location,Sn=Pt[Ha],ls===1?(Sn.buffer||be.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==Wi||Sn.stride!==gn)&&(be.bindBuffer(34962,wa.buffer),be.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&&(be.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(be.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,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,Rr(tr)?(Ko=!0,da=pe.createStream(34962,tr),As=da.dtype):(da=pe.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Hi=tr.constant,Sa=Qa=vn=0):(Hi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?da=pe.createStream(34962,tr.buffer):da=pe.getBuffer(tr.buffer),As="type"in tr?Ii[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=Pt[No],Qo===1?(jn.buffer||be.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(be.bindBuffer(34962,da.buffer),be.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&&(be.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(be.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,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Rr(Xr)?(qs=!0,_n=pe.createStream(34962,Xr),Ra=_n.dtype):(_n=pe.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=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)):(Rr(Xr.buffer)?_n=pe.createStream(34962,Xr.buffer):_n=pe.getBuffer(Xr.buffer),Ra="type"in Xr?Ii[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=Pt[Ka],Ns===1?(qn.buffer||be.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(be.bindBuffer(34962,_n.buffer),be.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(be.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(be.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,rn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Rr(pr)?(lo=!0,Pa=pe.createStream(34962,pr),Jo=Pa.dtype):(Pa=pe.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=rn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,rn=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?Pa=pe.createStream(34962,pr.buffer):Pa=pe.getBuffer(pr.buffer),Jo="type"in pr?Ii[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=Pt[Ws],eo===1?(Ca.buffer||be.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(be.bindBuffer(34962,Pa.buffer),be.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&&(be.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==rn)&&(be.vertexAttrib4f(Ws,sa,es,Na,rn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=rn)),Ts=_.location,Ho=Pt[Ts],Ho.buffer||be.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=Pt[Wa],To.buffer||be.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Rr(gr)?(Wo=!0,za=pe.createStream(34962,gr),$s=za.dtype):(za=pe.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=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)):(Rr(gr.buffer)?za=pe.createStream(34962,gr.buffer):za=pe.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=Pt[as],qa===1?(Ma.buffer||be.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(be.bindBuffer(34962,za.buffer),be.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&&(be.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(be.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ct.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Rr(ct)?(gs=!0,Ea=pe.createStream(34962,ct),rl=Ea.dtype):(Ea=pe.getBuffer(ct),Ea?rl=Ea.dtype:"constant"in ct?(Vo=2,typeof ct.constant=="number"?(Do=ct.constant,Lo=xs=ks=0):(Do=ct.constant.length>0?ct.constant[0]:0,Lo=ct.constant.length>1?ct.constant[1]:0,xs=ct.constant.length>2?ct.constant[2]:0,ks=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Ea=pe.createStream(34962,ct.buffer):Ea=pe.getBuffer(ct.buffer),rl="type"in ct?Ii[ct.type]:Ea.dtype,Oo=!!ct.normalized,Jn=ct.size|0,Gs=ct.offset|0,bs=ct.stride|0,zs=ct.divisor|0)),$o=C.location,Aa=Pt[$o],Vo===1?(Aa.buffer||be.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(be.bindBuffer(34962,Ea.buffer),be.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(be.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(be.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,be.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,be.uniform1i(T.location,po.bind()),go=Zr.depth,be.uniform1f(L.location,go),ss=Zr.miterLimit,be.uniform1f(x.location,ss),qo=M.call(this,Oe,Zr,0),be.uniform1f(k.location,qo),zo=Zr.opacity,be.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],be.uniform2f(P.location,Io,Da),vs=Zr.thickness,be.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],be.uniform2f(F.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],be.uniform4f(B.location,Ro,tl,Fs,hl),Fa=ye.elements,Fa?be.bindBuffer(34963,Fa.buffer.buffer):zt.currentVAO&&(Fa=fe.getElements(zt.currentVAO.elements),Fa&&be.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?be.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):be.drawArrays(5,0,4)),ft.dirty=!0,zt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&pe.destroyStream(wa),Ko&&pe.destroyStream(da),qs&&pe.destroyStream(_n),lo&&pe.destroyStream(Pa),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,en){var ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et;ii=Zr.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:Oe.framebufferWidth-Xi,Un="height"in ii?ii.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=tn[0],tn[0]=Xi,ka=tn[1],tn[1]=aa,so=tn[2],tn[2]=Mn,Kr=tn[3],tn[3]=Un,Ia=pi[0],pi[0]=G,Yo=pi[1],pi[1]=j,fa=pi[2],pi[2]=W,kn=pi[3],pi[3]=N,Ta=Fe.blend_enable,Fe.blend_enable=H,ys=ni[0],ni[0]=re,uo=ni[1],ni[1]=ae,ls=Qi[0],Qi[0]=ge,$a=Qi[1],Qi[1]=ze,fo=Qi[2],Qi[2]=Le,mn=Qi[3],Qi[3]=de,ra=Fe.cull_enable,Fe.cull_enable=te,wa=Fe.cull_face,Fe.cull_face=ke,ws=o.call(this,Oe,Zr,en),Co=Fe.depth_enable,Fe.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,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=Fe.scissor_enable,Fe.scissor_enable=Ee,Hi=Fe.stencil_enable,Fe.stencil_enable=Se,Sa=ft.profile,Sa&&(Qa=performance.now(),r.count++),vn=ye.offset,ye.offset=Ge,da=ye.count,ye.count=De,la=Zr.count,vo=ye.instances,ye.instances=la,As=ye.primitive,ye.primitive=xe,ps=M.call(this,Oe,Zr,en),co=rr[Ne],rr[Ne]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[je],rr[je]=jn,Ys=Zr.scaleFract,qs=rr[Qe],rr[Qe]=Ys,Ns=Zr.translateFract,Oa=rr[gt],rr[gt]=Ns,ha=Zr.translate,Vs=rr[qt],rr[qt]=ha,Ya=Zr.thickness,_n=rr[at],rr[at]=Ya,Vn=Zr.dashTexture,wo=rr[Ke],rr[Ke]=Vn,Ra=Zr.opacity,Xn=rr[Ct],rr[Ct]=Ra,un=Oe.pixelRatio,$n=rr[wt],rr[wt]=un,Ka=Zr.id,qn=rr[Mt],rr[Mt]=Ka,Eo=Zr.dashLength,Ja=rr[Bt],rr[Bt]=Eo,lo=U.call(this,Oe,Zr,en),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,rn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=ot.state,ot.state=1,Ho=ot.x,ot.x=0,Wa=ot.y,ot.y=0,To=ot.z,ot.z=0,ts=ot.w,ot.w=0,Wo=ot.buffer,ot.buffer=p,qa=ot.size,ot.size=0,ln=ot.normalized,ot.normalized=!1,Bo=ot.type,ot.type=5126,ko=ot.offset,ot.offset=4,oo=ot.stride,ot.stride=8,za=ot.divisor,ot.divisor=0,ea=Zr.colorBuffer,bi.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,Rr(bi)?(rs=!0,Ma=pe.createStream(34962,bi),gs=Ma.dtype):(Ma=pe.getBuffer(bi),Ma?gs=Ma.dtype:"constant"in bi?($s=2,typeof bi.constant=="number"?(us=bi.constant,Ds=fl=as=0):(us=bi.constant.length>0?bi.constant[0]:0,Ds=bi.constant.length>1?bi.constant[1]:0,fl=bi.constant.length>2?bi.constant[2]:0,as=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?Ma=pe.createStream(34962,bi.buffer):Ma=pe.getBuffer(bi.buffer),gs="type"in bi?Ii[bi.type]:Ma.dtype,ho=!!bi.normalized,Qs=bi.size|0,Vo=bi.offset|0,Do=bi.stride|0,Lo=bi.divisor|0)),xs=At.state,At.state=$s,ks=At.x,At.x=us,Ea=At.y,At.y=Ds,Jn=At.z,At.z=fl,Oo=At.w,At.w=as,rl=At.buffer,At.buffer=Ma,Gs=At.size,At.size=Qs,bs=At.normalized,At.normalized=ho,zs=At.type,At.type=gs,$o=At.offset,At.offset=Vo,Aa=At.stride,At.stride=Do,os=At.divisor,At.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,Rr(Xr)?(Ss=!0,io=pe.createStream(34962,Xr),vs=io.dtype):(io=pe.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)):(Rr(Xr.buffer)?io=pe.createStream(34962,Xr.buffer):io=pe.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=vt.state,vt.state=po,Ro=vt.x,vt.x=go,tl=vt.y,vt.y=ss,Fs=vt.z,vt.z=qo,hl=vt.w,vt.w=zo,Fa=vt.buffer,vt.buffer=io,Ms=vt.size,vt.size=Io,jo=vt.normalized,vt.normalized=Da,Rs=vt.type,vt.type=vs,Is=vt.offset,vt.offset=fs,Bs=vt.stride,vt.stride=cl,Tt=vt.divisor,vt.divisor=el,Vt=Zr.positionBuffer,ct.buffer=Vt,wr=!1,mr=1,Fr=0,_i=0,Si=0,Ci=0,Ki=null,Fn=0,Pi=!1,di=5126,Li=0,Mi=0,Gn=0,Rr(ct)?(wr=!0,Ki=pe.createStream(34962,ct),di=Ki.dtype):(Ki=pe.getBuffer(ct),Ki?di=Ki.dtype:"constant"in ct?(mr=2,typeof ct.constant=="number"?(Fr=ct.constant,_i=Si=Ci=0):(Fr=ct.constant.length>0?ct.constant[0]:0,_i=ct.constant.length>1?ct.constant[1]:0,Si=ct.constant.length>2?ct.constant[2]:0,Ci=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Ki=pe.createStream(34962,ct.buffer):Ki=pe.getBuffer(ct.buffer),di="type"in ct?Ii[ct.type]:Ki.dtype,Pi=!!ct.normalized,Fn=ct.size|0,Li=ct.offset|0,Mi=ct.stride|0,Gn=ct.divisor|0)),ta=Je.state,Je.state=mr,ya=Je.x,Je.x=Fr,ia=Je.y,Je.y=_i,pa=Je.z,Je.z=Si,va=Je.w,Je.w=Ci,zn=Je.buffer,Je.buffer=Ki,is=Je.size,Je.size=Fn,Cs=Je.normalized,Je.normalized=Pi,Ks=Je.type,Je.type=di,dl=Je.offset,Je.offset=Li,xl=Je.stride,Je.stride=Mi,Bl=Je.divisor,Je.divisor=Gn,bl=Zr.positionBuffer,tr.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,Rr(tr)?(eu=!0,cs=pe.createStream(34962,tr),nl=cs.dtype):(cs=pe.getBuffer(tr),cs?nl=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Vl=tr.constant,ja=ns=Js=0):(Vl=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?cs=pe.createStream(34962,tr.buffer):cs=pe.getBuffer(tr.buffer),nl="type"in tr?Ii[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=He.state,He.state=Zl,Ll=He.x,He.x=Vl,ms=He.y,He.y=ja,Os=He.z,He.z=ns,Xl=He.w,He.w=Js,Gl=He.buffer,He.buffer=cs,Nl=He.size,He.size=sl,le=He.normalized,He.normalized=ll,w=He.type,He.type=nl,q=He.offset,He.offset=zl,Q=He.stride,He.stride=Ml,ee=He.divisor,He.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ue=!1,rt=1,mt=0,Ft=0,ir=0,or=0,kr=null,Vr=0,he=!1,Me=5126,qe=0,Ve=0,lt=0,Rr(pr)?(Ue=!0,kr=pe.createStream(34962,pr),Me=kr.dtype):(kr=pe.getBuffer(pr),kr?Me=kr.dtype:"constant"in pr?(rt=2,typeof pr.constant=="number"?(mt=pr.constant,Ft=ir=or=0):(mt=pr.constant.length>0?pr.constant[0]:0,Ft=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?kr=pe.createStream(34962,pr.buffer):kr=pe.getBuffer(pr.buffer),Me="type"in pr?Ii[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,Ve=pr.stride|0,lt=pr.divisor|0)),it=nt.state,nt.state=rt,pt=nt.x,nt.x=mt,Ht=nt.y,nt.y=Ft,nr=nt.z,nt.z=ir,fr=nt.w,nt.w=or,Ar=nt.buffer,nt.buffer=kr,Ir=nt.size,nt.size=Vr,ri=nt.normalized,nt.normalized=he,li=nt.type,nt.type=Me,Ei=nt.offset,nt.offset=qe,hn=nt.stride,nt.stride=Ve,Zn=nt.divisor,nt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,Ol=!1,ou=5126,Pu=0,nu=0,tu=0,Rr(gr)?(Ua=!0,Sl=pe.createStream(34962,gr),ou=Sl.dtype):(Sl=pe.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)):(Rr(gr.buffer)?Sl=pe.createStream(34962,gr.buffer):Sl=pe.getBuffer(gr.buffer),ou="type"in gr?Ii[gr.type]:Sl.dtype,Ol=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,nu=gr.stride|0,tu=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=Ol,ef=tt.type,tt.type=ou,Z=tt.offset,tt.offset=Pu,se=tt.stride,tt.stride=nu,Pe=tt.divisor,tt.divisor=tu,Ze=dt.vert,dt.vert=It,et=dt.frag,dt.frag=Yt,ft.dirty=!0,Ai(Oe,Zr,en),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,tn[0]=oa,tn[1]=ka,tn[2]=so,tn[3]=Kr,pi[0]=Ia,pi[1]=Yo,pi[2]=fa,pi[3]=kn,Fe.blend_enable=Ta,ni[0]=ys,ni[1]=uo,Qi[0]=ls,Qi[1]=$a,Qi[2]=fo,Qi[3]=mn,Fe.cull_enable=ra,Fe.cull_face=wa,Fe.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,Fe.scissor_enable=Qo,Fe.stencil_enable=Hi,Sa&&(r.cpuTime+=performance.now()-Qa),ye.offset=vn,ye.count=da,ye.instances=vo,ye.primitive=As,rr[Ne]=co,rr[ce]=No,rr[je]=Go,rr[Qe]=qs,rr[gt]=Oa,rr[qt]=Vs,rr[at]=_n,rr[Ke]=wo,rr[Ct]=Xn,rr[wt]=$n,rr[Mt]=qn,rr[Bt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=rn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,ot.state=Ts,ot.x=Ho,ot.y=Wa,ot.z=To,ot.w=ts,ot.buffer=Wo,ot.size=qa,ot.normalized=ln,ot.type=Bo,ot.offset=ko,ot.stride=oo,ot.divisor=za,rs&&pe.destroyStream(Ma),At.state=xs,At.x=ks,At.y=Ea,At.z=Jn,At.w=Oo,At.buffer=rl,At.size=Gs,At.normalized=bs,At.type=zs,At.offset=$o,At.stride=Aa,At.divisor=os,Ss&&pe.destroyStream(io),vt.state=Hs,vt.x=Ro,vt.y=tl,vt.z=Fs,vt.w=hl,vt.buffer=Fa,vt.size=Ms,vt.normalized=jo,vt.type=Rs,vt.offset=Is,vt.stride=Bs,vt.divisor=Tt,wr&&pe.destroyStream(Ki),Je.state=ta,Je.x=ya,Je.y=ia,Je.z=pa,Je.w=va,Je.buffer=zn,Je.size=is,Je.normalized=Cs,Je.type=Ks,Je.offset=dl,Je.stride=xl,Je.divisor=Bl,eu&&pe.destroyStream(cs),He.state=Al,He.x=Ll,He.y=ms,He.z=Os,He.w=Xl,He.buffer=Gl,He.size=Nl,He.normalized=le,He.type=w,He.offset=q,He.stride=Q,He.divisor=ee,Ue&&pe.destroyStream(kr),nt.state=it,nt.x=pt,nt.y=Ht,nt.z=nr,nt.w=fr,nt.buffer=Ar,nt.size=Ir,nt.normalized=ri,nt.type=li,nt.offset=Ei,nt.stride=hn,nt.divisor=Zn,Ua&&pe.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=se,tt.divisor=Pe,dt.vert=Ze,dt.frag=et,ft.dirty=!0},batch:function(Zr,Ai){var en,ii,Xi,aa,Mn,Un,Ga;if(en=Br.angle_instanced_arrays,ii=Gr.next,ii!==Gr.cur&&(ii?be.bindFramebuffer(36160,ii.framebuffer):be.bindFramebuffer(36160,null),Gr.cur=ii),ft.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,Ba,Ko,Qo;ma=Fe.dither,ma!==ft.dither&&(ma?be.enable(3024):be.disable(3024),ft.dither=ma),oa=Fe.depth_func,oa!==ft.depth_func&&(be.depthFunc(oa),ft.depth_func=oa),ka=Ti[0],so=Ti[1],(ka!==Ni[0]||so!==Ni[1])&&(be.depthRange(ka,so),Ni[0]=ka,Ni[1]=so),Kr=Fe.depth_mask,Kr!==ft.depth_mask&&(be.depthMask(Kr),ft.depth_mask=Kr),Ia=Rt[0],Yo=Rt[1],fa=Rt[2],kn=Rt[3],(Ia!==yt[0]||Yo!==yt[1]||fa!==yt[2]||kn!==yt[3])&&(be.colorMask(Ia,Yo,fa,kn),yt[0]=Ia,yt[1]=Yo,yt[2]=fa,yt[3]=kn),Ta=Fe.frontFace,Ta!==ft.frontFace&&(be.frontFace(Ta),ft.frontFace=Ta),ys=Fe.lineWidth,ys!==ft.lineWidth&&(be.lineWidth(ys),ft.lineWidth=ys),uo=Fe.polygonOffset_enable,uo!==ft.polygonOffset_enable&&(uo?be.enable(32823):be.disable(32823),ft.polygonOffset_enable=uo),ls=Gt[0],$a=Gt[1],(ls!==Wt[0]||$a!==Wt[1])&&(be.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Fe.sample_alpha,fo!==ft.sample_alpha&&(fo?be.enable(32926):be.disable(32926),ft.sample_alpha=fo),mn=Fe.sample_enable,mn!==ft.sample_enable&&(mn?be.enable(32928):be.disable(32928),ft.sample_enable=mn),ra=xr[0],wa=xr[1],(ra!==Lr[0]||wa!==Lr[1])&&(be.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=Fe.stencil_mask,ws!==ft.stencil_mask&&(be.stencilMask(ws),ft.stencil_mask=ws),Co=Nr[0],Po=Nr[1],Wi=Nr[2],(Co!==Or[0]||Po!==Or[1]||Wi!==Or[2])&&(be.stencilFunc(Co,Po,Wi),Or[0]=Co,Or[1]=Po,Or[2]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(be.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=gi[0],Ba=gi[1],Ko=gi[2],Qo=gi[3],(ao!==ki[0]||Ba!==ki[1]||Ko!==ki[2]||Qo!==ki[3])&&(be.stencilOpSeparate(ao,Ba,Ko,Qo),ki[0]=ao,ki[1]=Ba,ki[2]=Ko,ki[3]=Qo)}be.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,cr?be.enable(3042):be.disable(3042),ft.blend_enable=cr,be.blendEquationSeparate(32774,32774),$i[0]=32774,$i[1]=32774,be.blendFuncSeparate(770,771,773,1),si[0]=770,si[1]=771,si[2]=773,si[3]=1,_r?be.enable(2884):be.disable(2884),ft.cull_enable=_r,be.cullFace(yr),ft.cull_face=yr,Ut?be.enable(3089):be.disable(3089),ft.scissor_enable=Ut,Re?be.enable(2960):be.disable(2960),ft.stencil_enable=Re,Xi=ft.profile,Xi&&(aa=performance.now(),r.count+=Ai),be.useProgram(l.program),Mn=Br.angle_instanced_arrays;var Hi,Sa,Qa,vn,da;for(zt.setVAO(null),Hi=_.location,Sa=Pt[Hi],Sa.buffer||be.enableVertexAttribArray(Hi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=Pt[Qa],vn.buffer||be.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(be.bindBuffer(34962,p.buffer),be.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=ye.elements,da?be.bindBuffer(34963,da.buffer.buffer):zt.currentVAO&&(da=fe.getElements(zt.currentVAO.elements),da&&be.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?bi.constant[0]:0,Vn=bi.constant.length>1?bi.constant[1]:0,wo=bi.constant.length>2?bi.constant[2]:0,Ra=bi.constant.length>3?bi.constant[3]:0)):(Rr(bi.buffer)?Xn=pe.createStream(34962,bi.buffer):Xn=pe.getBuffer(bi.buffer),Ka="type"in bi?Ii[bi.type]:Xn.dtype,$n=!!bi.normalized,un=bi.size|0,qn=bi.offset|0,Eo=bi.stride|0,Ja=bi.divisor|0)),lo=f.location,eo=Pt[lo],Ya===1?(eo.buffer||be.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(be.bindBuffer(34962,Xn.buffer),be.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&&(be.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(be.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,rn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Rr(tr)?(Na=!0,Ao=pe.createStream(34962,tr),Ws=Ao.dtype):(Ao=pe.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(rn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Rr(tr.buffer)?Ao=pe.createStream(34962,tr.buffer):Ao=pe.getBuffer(tr.buffer),Ws="type"in tr?Ii[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=Pt[Ho],rn===1?(Wa.buffer||be.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(be.bindBuffer(34962,Ao.buffer),be.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&&(be.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(be.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,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Rr(Xr)?(Wo=!0,za=pe.createStream(34962,Xr),$s=za.dtype):(za=pe.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=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)):(Rr(Xr.buffer)?za=pe.createStream(34962,Xr.buffer):za=pe.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=Pt[as],qa===1?(Ma.buffer||be.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(be.bindBuffer(34962,za.buffer),be.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&&(be.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(be.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Rr(pr)?(gs=!0,Ea=pe.createStream(34962,pr),rl=Ea.dtype):(Ea=pe.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Rr(pr.buffer)?Ea=pe.createStream(34962,pr.buffer):Ea=pe.getBuffer(pr.buffer),rl="type"in pr?Ii[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=Pt[$o],Vo===1?(Aa.buffer||be.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(be.bindBuffer(34962,Ea.buffer),be.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(be.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(be.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,Rr(gr)?(Ss=!0,io=pe.createStream(34962,gr),vs=io.dtype):(io=pe.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)):(Rr(gr.buffer)?io=pe.createStream(34962,gr.buffer):io=pe.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=Pt[Hs],po===1?(Ro.buffer||be.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(be.bindBuffer(34962,io.buffer),be.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&&(be.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(be.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ct.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,Tt=0,Vt=!1,wr=5126,mr=0,Fr=0,_i=0,Rr(ct)?(hl=!0,Bs=pe.createStream(34962,ct),wr=Bs.dtype):(Bs=pe.getBuffer(ct),Bs?wr=Bs.dtype:"constant"in ct?(Fa=2,typeof ct.constant=="number"?(Ms=ct.constant,jo=Rs=Is=0):(Ms=ct.constant.length>0?ct.constant[0]:0,jo=ct.constant.length>1?ct.constant[1]:0,Rs=ct.constant.length>2?ct.constant[2]:0,Is=ct.constant.length>3?ct.constant[3]:0)):(Rr(ct.buffer)?Bs=pe.createStream(34962,ct.buffer):Bs=pe.getBuffer(ct.buffer),wr="type"in ct?Ii[ct.type]:Bs.dtype,Vt=!!ct.normalized,Tt=ct.size|0,mr=ct.offset|0,Fr=ct.stride|0,_i=ct.divisor|0)),Si=C.location,Ci=Pt[Si],Fa===1?(Ci.buffer||be.enableVertexAttribArray(Si),Ki=Tt||2,(Ci.type!==wr||Ci.size!==Ki||Ci.buffer!==Bs||Ci.normalized!==Vt||Ci.offset!==mr||Ci.stride!==Fr)&&(be.bindBuffer(34962,Bs.buffer),be.vertexAttribPointer(Si,Ki,wr,Vt,Fr,mr),Ci.type=wr,Ci.size=Ki,Ci.buffer=Bs,Ci.normalized=Vt,Ci.offset=mr,Ci.stride=Fr),Ci.divisor!==_i&&(Mn.vertexAttribDivisorANGLE(Si,_i),Ci.divisor=_i)):(Ci.buffer&&(be.disableVertexAttribArray(Si),Ci.buffer=null),(Ci.x!==Ms||Ci.y!==jo||Ci.z!==Rs||Ci.w!==Is)&&(be.vertexAttrib4f(Si,Ms,jo,Rs,Is),Ci.x=Ms,Ci.y=jo,Ci.z=Rs,Ci.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,be.uniform1f(E.location,Fn)),di=Ga.dashTexture,di&&di._reglType==="framebuffer"&&(di=di.color[0]),Li=di._texture,be.uniform1i(T.location,Li.bind()),Mi=Ga.depth,(!Un||Gn!==Mi)&&(Gn=Mi,be.uniform1f(L.location,Mi)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,be.uniform1f(x.location,ta)),ia=M.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,be.uniform1f(k.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,be.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,be.uniform2f(P.location,Cs,dl)),Bl=Ga.thickness,(!Un||bl!==Bl)&&(bl=Bl,be.uniform1f(A.location,Bl)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,be.uniform2f(F.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,be.uniform4f(B.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?be.drawElements(5,4,da.type,0<<(da.type-5121>>1)):be.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&pe.destroyStream(Xn),Na&&pe.destroyStream(Ao),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),Ss&&pe.destroyStream(io),hl&&pe.destroyStream(Bs),Li.unbind()}ft.dirty=!0,zt.setVAO(null),Xi&&(r.cpuTime+=performance.now()-aa)}}}});var F8=Te((rbr,a7e)=>{a7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je){"use strict";var Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti;return Qe=t.gl,gt=t.context,qt=t.strings,at=t.next,Ke=t.current,Ct=t.draw,wt=t.elements,Mt=t.buffer,Bt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,ot=t.framebuffer,At=t.extensions,vt=t.timer,Je=t.isBufferArgs,He=at.blend_color,nt=Ke.blend_color,tt=at.blend_equation,It=Ke.blend_equation,Yt=at.blend_func,cr=Ke.blend_func,_r=at.depth_range,yr=Ke.depth_range,Ut=at.colorMask,Re=Ke.colorMask,be=at.polygonOffset_offset,Oe=Ke.polygonOffset_offset,Ie=at.sample_coverage,Fe=Ke.sample_coverage,ft=at.stencil_func,ye=Ke.stencil_func,fe=at.stencil_opFront,pe=Ke.stencil_opFront,dt=at.stencil_opBack,Pt=Ke.stencil_opBack,zt=at.scissor_box,rr=Ke.scissor_box,Gr=at.viewport,Br=Ke.viewport,Er={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Rr={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,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},Di={add:32774,subtract:32778,"reverse subtract":32779},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},$i={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Qi={cw:2304,ccw:2305},si={},si.stride=8,si.offset=8,Ti={},Ti.stride=8,Ti.offset=8,{draw:function(Ni){var Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo;if(Rt=At.angle_instanced_arrays,yt=ot.next,yt!==ot.cur&&(yt?Qe.bindFramebuffer(36160,yt.framebuffer):Qe.bindFramebuffer(36160,null),ot.cur=yt),Ke.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa;As=at.dither,As!==Ke.dither&&(As?Qe.enable(3024):Qe.disable(3024),Ke.dither=As),ps=at.depth_func,ps!==Ke.depth_func&&(Qe.depthFunc(ps),Ke.depth_func=ps),co=_r[0],mo=_r[1],(co!==yr[0]||mo!==yr[1])&&(Qe.depthRange(co,mo),yr[0]=co,yr[1]=mo),No=at.depth_mask,No!==Ke.depth_mask&&(Qe.depthMask(No),Ke.depth_mask=No),jn=Ut[0],Go=Ut[1],Ys=Ut[2],qs=Ut[3],(jn!==Re[0]||Go!==Re[1]||Ys!==Re[2]||qs!==Re[3])&&(Qe.colorMask(jn,Go,Ys,qs),Re[0]=jn,Re[1]=Go,Re[2]=Ys,Re[3]=qs),Ns=at.cull_enable,Ns!==Ke.cull_enable&&(Ns?Qe.enable(2884):Qe.disable(2884),Ke.cull_enable=Ns),Oa=at.cull_face,Oa!==Ke.cull_face&&(Qe.cullFace(Oa),Ke.cull_face=Oa),ha=at.frontFace,ha!==Ke.frontFace&&(Qe.frontFace(ha),Ke.frontFace=ha),Vs=at.lineWidth,Vs!==Ke.lineWidth&&(Qe.lineWidth(Vs),Ke.lineWidth=Vs),Ya=at.polygonOffset_enable,Ya!==Ke.polygonOffset_enable&&(Ya?Qe.enable(32823):Qe.disable(32823),Ke.polygonOffset_enable=Ya),_n=be[0],Vn=be[1],(_n!==Oe[0]||Vn!==Oe[1])&&(Qe.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=at.sample_alpha,wo!==Ke.sample_alpha&&(wo?Qe.enable(32926):Qe.disable(32926),Ke.sample_alpha=wo),Ra=at.sample_enable,Ra!==Ke.sample_enable&&(Ra?Qe.enable(32928):Qe.disable(32928),Ke.sample_enable=Ra),Xn=Ie[0],un=Ie[1],(Xn!==Fe[0]||un!==Fe[1])&&(Qe.sampleCoverage(Xn,un),Fe[0]=Xn,Fe[1]=un),$n=at.stencil_mask,$n!==Ke.stencil_mask&&(Qe.stencilMask($n),Ke.stencil_mask=$n),Ka=ft[0],qn=ft[1],Eo=ft[2],(Ka!==ye[0]||qn!==ye[1]||Eo!==ye[2])&&(Qe.stencilFunc(Ka,qn,Eo),ye[0]=Ka,ye[1]=qn,ye[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==pe[0]||lo!==pe[1]||eo!==pe[2]||sa!==pe[3])&&(Qe.stencilOpSeparate(Ja,lo,eo,sa),pe[0]=Ja,pe[1]=lo,pe[2]=eo,pe[3]=sa),es=dt[0],Na=dt[1],rn=dt[2],Pa=dt[3],(es!==Pt[0]||Na!==Pt[1]||rn!==Pt[2]||Pa!==Pt[3])&&(Qe.stencilOpSeparate(es,Na,rn,Pa),Pt[0]=es,Pt[1]=Na,Pt[2]=rn,Pt[3]=Pa)}Gt=Ni.viewport,Wt=Gt.x|0,xr=Gt.y|0,Lr="width"in Gt?Gt.width|0:gt.framebufferWidth-Wt,Nr="height"in Gt?Gt.height|0:gt.framebufferHeight-xr,Or=gt.viewportWidth,gt.viewportWidth=Lr,Hr=gt.viewportHeight,gt.viewportHeight=Nr,Qe.viewport(Wt,xr,Lr,Nr),Br[0]=Wt,Br[1]=xr,Br[2]=Lr,Br[3]=Nr,Qe.blendColor(0,0,0,0),nt[0]=0,nt[1]=0,nt[2]=0,nt[3]=0,n?Qe.enable(3042):Qe.disable(3042),Ke.blend_enable=n,Qe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Qe.blendFuncSeparate(770,771,773,1),cr[0]=770,cr[1]=771,cr[2]=773,cr[3]=1,i?Qe.enable(2929):Qe.disable(2929),Ke.depth_enable=i,jr=Ni.viewport,gi=jr.x|0,ki=jr.y|0,Vi="width"in jr?jr.width|0:gt.framebufferWidth-gi,ti="height"in jr?jr.height|0:gt.framebufferHeight-ki,Qe.scissor(gi,ki,Vi,ti),rr[0]=gi,rr[1]=ki,rr[2]=Vi,rr[3]=ti,a?Qe.enable(3089):Qe.disable(3089),Ke.scissor_enable=a,o?Qe.enable(2960):Qe.disable(2960),Ke.stencil_enable=o,tn=Ke.profile,tn&&(Yr=performance.now(),r.count++),Qe.useProgram(s.program),oi=At.angle_instanced_arrays,Et.setVAO(null),Fi=Ni.positionBuffer,si.buffer=Fi,an=!1,nn=1,Ri=0,Ii=0,xn=0,bi=0,Xr=null,ct=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,Je(si)?(an=!0,Xr=Mt.createStream(34962,si),pr=Xr.dtype):(Xr=Mt.getBuffer(si),Xr?pr=Xr.dtype:"constant"in si?(nn=2,typeof si.constant=="number"?(Ri=si.constant,Ii=xn=bi=0):(Ri=si.constant.length>0?si.constant[0]:0,Ii=si.constant.length>1?si.constant[1]:0,xn=si.constant.length>2?si.constant[2]:0,bi=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?Xr=Mt.createStream(34962,si.buffer):Xr=Mt.getBuffer(si.buffer),pr="type"in si?$i[si.type]:Xr.dtype,tr=!!si.normalized,ct=si.size|0,gr=si.offset|0,Zr=si.stride|0,Ai=si.divisor|0)),en=u.location,ii=Zt[en],nn===1?(ii.buffer||Qe.enableVertexAttribArray(en),Xi=ct||2,(ii.type!==pr||ii.size!==Xi||ii.buffer!==Xr||ii.normalized!==tr||ii.offset!==gr||ii.stride!==Zr)&&(Qe.bindBuffer(34962,Xr.buffer),Qe.vertexAttribPointer(en,Xi,pr,tr,Zr,gr),ii.type=pr,ii.size=Xi,ii.buffer=Xr,ii.normalized=tr,ii.offset=gr,ii.stride=Zr),ii.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(en,Ai),ii.divisor=Ai)):(ii.buffer&&(Qe.disableVertexAttribArray(en),ii.buffer=null),(ii.x!==Ri||ii.y!==Ii||ii.z!==xn||ii.w!==bi)&&(Qe.vertexAttrib4f(en,Ri,Ii,xn,bi),ii.x=Ri,ii.y=Ii,ii.z=xn,ii.w=bi)),aa=Ni.positionFractBuffer,Ti.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,Je(Ti)?(Mn=!0,so=Mt.createStream(34962,Ti),Yo=so.dtype):(so=Mt.getBuffer(Ti),so?Yo=so.dtype:"constant"in Ti?(Un=2,typeof Ti.constant=="number"?(Ga=Ti.constant,ma=oa=ka=0):(Ga=Ti.constant.length>0?Ti.constant[0]:0,ma=Ti.constant.length>1?Ti.constant[1]:0,oa=Ti.constant.length>2?Ti.constant[2]:0,ka=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?so=Mt.createStream(34962,Ti.buffer):so=Mt.getBuffer(Ti.buffer),Yo="type"in Ti?$i[Ti.type]:so.dtype,Ia=!!Ti.normalized,Kr=Ti.size|0,fa=Ti.offset|0,kn=Ti.stride|0,Ta=Ti.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||Qe.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(Qe.bindBuffer(34962,so.buffer),Qe.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&&(Qe.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(Qe.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Ni.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],Qe.uniform4f(f.location,fo,mn,ra,wa),ws=Ni.id,Qe.uniform1f(c.location,ws),Co=Ni.opacity,Qe.uniform1f(h.location,Co),Po=Ni.scale,Wi=Po[0],gn=Po[1],Qe.uniform2f(d.location,Wi,gn),Ps=Ni.scaleFract,Ha=Ps[0],Sn=Ps[1],Qe.uniform2f(p.location,Ha,Sn),ao=Ni.translate,Ba=ao[0],Ko=ao[1],Qe.uniform2f(_.location,Ba,Ko),Qo=Ni.translateFract,Hi=Qo[0],Sa=Qo[1],Qe.uniform2f(b.location,Hi,Sa),Qa=v.call(this,gt,Ni,0),vn=null,da=Je(Qa),da?vn=wt.createStream(Qa):vn=wt.getElements(Qa),vn&&Qe.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=Ct.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?Qe.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):Qe.drawArrays(4,0,la)),Ke.dirty=!0,Et.setVAO(null),gt.viewportWidth=Or,gt.viewportHeight=Hr,tn&&(r.cpuTime+=performance.now()-Yr),an&&Mt.destroyStream(Xr),Mn&&Mt.destroyStream(so),da&&wt.destroyStream(vn))},scope:function(Ni,Rt,yt){var Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Gt=Ni.viewport,Wt=Gt.x|0,xr=Gt.y|0,Lr="width"in Gt?Gt.width|0:gt.framebufferWidth-Wt,Nr="height"in Gt?Gt.height|0:gt.framebufferHeight-xr,Or=gt.viewportWidth,gt.viewportWidth=Lr,Hr=gt.viewportHeight,gt.viewportHeight=Nr,jr=Gr[0],Gr[0]=Wt,gi=Gr[1],Gr[1]=xr,ki=Gr[2],Gr[2]=Lr,Vi=Gr[3],Gr[3]=Nr,ti=He[0],He[0]=C,tn=He[1],He[1]=E,Yr=He[2],He[2]=T,oi=He[3],He[3]=L,Fi=at.blend_enable,at.blend_enable=x,an=tt[0],tt[0]=k,nn=tt[1],tt[1]=M,Ri=Yt[0],Yt[0]=m,Ii=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,bi=Yt[3],Yt[3]=F,Xr=at.depth_enable,at.depth_enable=B,ct=Ni.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:gt.framebufferWidth-tr,Zr="height"in ct?ct.height|0:gt.framebufferHeight-pr,Ai=zt[0],zt[0]=tr,en=zt[1],zt[1]=pr,ii=zt[2],zt[2]=gr,Xi=zt[3],zt[3]=Zr,aa=at.scissor_enable,at.scissor_enable=U,Mn=at.stencil_enable,at.stencil_enable=G,Un=Ke.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,gt,Ni,yt),oa=null,ka=Je(ma),ka?oa=wt.createStream(ma):oa=wt.getElements(ma),so=Ct.elements,Ct.elements=oa,Kr=Ct.offset,Ct.offset=j,Ia=oa?oa.vertCount:-1,Yo=Ct.count,Ct.count=Ia,fa=Ct.primitive,Ct.primitive=W,kn=Ni.scale,Ta=Ae[N],Ae[N]=kn,ys=Ni.fill,uo=Ae[H],Ae[H]=ys,ls=Ni.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Ni.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Ni.translate,wa=Ae[ge],Ae[ge]=ra,ws=Ni.opacity,Co=Ae[ze],Ae[ze]=ws,Po=gt.pixelRatio,Wi=Ae[Le],Ae[Le]=Po,gn=Ni.id,Ps=Ae[de],Ae[de]=gn,Ha=te.call(this,gt,Ni,yt),Sn=Ae[ke],Ae[ke]=Ha,ao=Ni.positionBuffer,si.buffer=ao,Ba=!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,Je(si)?(Ba=!0,vn=Mt.createStream(34962,si),vo=vn.dtype):(vn=Mt.getBuffer(si),vn?vo=vn.dtype:"constant"in si?(Ko=2,typeof si.constant=="number"?(Qo=si.constant,Hi=Sa=Qa=0):(Qo=si.constant.length>0?si.constant[0]:0,Hi=si.constant.length>1?si.constant[1]:0,Sa=si.constant.length>2?si.constant[2]:0,Qa=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?vn=Mt.createStream(34962,si.buffer):vn=Mt.getBuffer(si.buffer),vo="type"in si?$i[si.type]:vn.dtype,la=!!si.normalized,da=si.size|0,As=si.offset|0,ps=si.stride|0,co=si.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Hi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Ni.positionFractBuffer,Ti.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Je(Ti)?(wo=!0,qn=Mt.createStream(34962,Ti),lo=qn.dtype):(qn=Mt.getBuffer(Ti),qn?lo=qn.dtype:"constant"in Ti?(Ra=2,typeof Ti.constant=="number"?(Xn=Ti.constant,un=$n=Ka=0):(Xn=Ti.constant.length>0?Ti.constant[0]:0,un=Ti.constant.length>1?Ti.constant[1]:0,$n=Ti.constant.length>2?Ti.constant[2]:0,Ka=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?qn=Mt.createStream(34962,Ti.buffer):qn=Mt.getBuffer(Ti.buffer),lo="type"in Ti?$i[Ti.type]:qn.dtype,Ja=!!Ti.normalized,Eo=Ti.size|0,eo=Ti.offset|0,sa=Ti.stride|0,es=Ti.divisor|0)),Na=Se.state,Se.state=Ra,rn=Se.x,Se.x=Xn,Pa=Se.y,Se.y=un,to=Se.z,Se.z=$n,yo=Se.w,Se.w=Ka,Jo=Se.buffer,Se.buffer=qn,Ao=Se.size,Se.size=Eo,Dn=Se.normalized,Se.normalized=Ja,_a=Se.type,Se.type=lo,Ws=Se.offset,Se.offset=eo,Ca=Se.stride,Se.stride=sa,Es=Se.divisor,Se.divisor=es,Ts=Bt.vert,Bt.vert=Ge,Ho=Bt.frag,Bt.frag=De,Ke.dirty=!0,Rt(gt,Ni,yt),gt.viewportWidth=Or,gt.viewportHeight=Hr,Gr[0]=jr,Gr[1]=gi,Gr[2]=ki,Gr[3]=Vi,He[0]=ti,He[1]=tn,He[2]=Yr,He[3]=oi,at.blend_enable=Fi,tt[0]=an,tt[1]=nn,Yt[0]=Ri,Yt[1]=Ii,Yt[2]=xn,Yt[3]=bi,at.depth_enable=Xr,zt[0]=Ai,zt[1]=en,zt[2]=ii,zt[3]=Xi,at.scissor_enable=aa,at.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&wt.destroyStream(oa),Ct.elements=so,Ct.offset=Kr,Ct.count=Yo,Ct.primitive=fa,Ae[N]=Ta,Ae[H]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[ge]=wa,Ae[ze]=Co,Ae[Le]=Wi,Ae[de]=Ps,Ae[ke]=Sn,Ba&&Mt.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&Mt.destroyStream(qn),Se.state=Na,Se.x=rn,Se.y=Pa,Se.z=to,Se.w=yo,Se.buffer=Jo,Se.size=Ao,Se.normalized=Dn,Se.type=_a,Se.offset=Ws,Se.stride=Ca,Se.divisor=Es,Bt.vert=Ts,Bt.frag=Ho,Ke.dirty=!0},batch:function(Ni,Rt){var yt,Gt,Wt,xr,Lr,Nr,Or;if(yt=At.angle_instanced_arrays,Gt=ot.next,Gt!==ot.cur&&(Gt?Qe.bindFramebuffer(36160,Gt.framebuffer):Qe.bindFramebuffer(36160,null),ot.cur=Gt),Ke.dirty){var Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,Xi,aa,Mn,Un,Ga,ma,oa;Hr=at.dither,Hr!==Ke.dither&&(Hr?Qe.enable(3024):Qe.disable(3024),Ke.dither=Hr),jr=at.depth_func,jr!==Ke.depth_func&&(Qe.depthFunc(jr),Ke.depth_func=jr),gi=_r[0],ki=_r[1],(gi!==yr[0]||ki!==yr[1])&&(Qe.depthRange(gi,ki),yr[0]=gi,yr[1]=ki),Vi=at.depth_mask,Vi!==Ke.depth_mask&&(Qe.depthMask(Vi),Ke.depth_mask=Vi),ti=Ut[0],tn=Ut[1],Yr=Ut[2],oi=Ut[3],(ti!==Re[0]||tn!==Re[1]||Yr!==Re[2]||oi!==Re[3])&&(Qe.colorMask(ti,tn,Yr,oi),Re[0]=ti,Re[1]=tn,Re[2]=Yr,Re[3]=oi),Fi=at.cull_enable,Fi!==Ke.cull_enable&&(Fi?Qe.enable(2884):Qe.disable(2884),Ke.cull_enable=Fi),an=at.cull_face,an!==Ke.cull_face&&(Qe.cullFace(an),Ke.cull_face=an),nn=at.frontFace,nn!==Ke.frontFace&&(Qe.frontFace(nn),Ke.frontFace=nn),Ri=at.lineWidth,Ri!==Ke.lineWidth&&(Qe.lineWidth(Ri),Ke.lineWidth=Ri),Ii=at.polygonOffset_enable,Ii!==Ke.polygonOffset_enable&&(Ii?Qe.enable(32823):Qe.disable(32823),Ke.polygonOffset_enable=Ii),xn=be[0],bi=be[1],(xn!==Oe[0]||bi!==Oe[1])&&(Qe.polygonOffset(xn,bi),Oe[0]=xn,Oe[1]=bi),Xr=at.sample_alpha,Xr!==Ke.sample_alpha&&(Xr?Qe.enable(32926):Qe.disable(32926),Ke.sample_alpha=Xr),ct=at.sample_enable,ct!==Ke.sample_enable&&(ct?Qe.enable(32928):Qe.disable(32928),Ke.sample_enable=ct),tr=Ie[0],pr=Ie[1],(tr!==Fe[0]||pr!==Fe[1])&&(Qe.sampleCoverage(tr,pr),Fe[0]=tr,Fe[1]=pr),gr=at.stencil_mask,gr!==Ke.stencil_mask&&(Qe.stencilMask(gr),Ke.stencil_mask=gr),Zr=ft[0],Ai=ft[1],en=ft[2],(Zr!==ye[0]||Ai!==ye[1]||en!==ye[2])&&(Qe.stencilFunc(Zr,Ai,en),ye[0]=Zr,ye[1]=Ai,ye[2]=en),ii=fe[0],Xi=fe[1],aa=fe[2],Mn=fe[3],(ii!==pe[0]||Xi!==pe[1]||aa!==pe[2]||Mn!==pe[3])&&(Qe.stencilOpSeparate(ii,Xi,aa,Mn),pe[0]=ii,pe[1]=Xi,pe[2]=aa,pe[3]=Mn),Un=dt[0],Ga=dt[1],ma=dt[2],oa=dt[3],(Un!==Pt[0]||Ga!==Pt[1]||ma!==Pt[2]||oa!==Pt[3])&&(Qe.stencilOpSeparate(Un,Ga,ma,oa),Pt[0]=Un,Pt[1]=Ga,Pt[2]=ma,Pt[3]=oa)}Qe.blendColor(0,0,0,0),nt[0]=0,nt[1]=0,nt[2]=0,nt[3]=0,xe?Qe.enable(3042):Qe.disable(3042),Ke.blend_enable=xe,Qe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Qe.blendFuncSeparate(770,771,773,1),cr[0]=770,cr[1]=771,cr[2]=773,cr[3]=1,Ne?Qe.enable(2929):Qe.disable(2929),Ke.depth_enable=Ne,ce?Qe.enable(3089):Qe.disable(3089),Ke.scissor_enable=ce,je?Qe.enable(2960):Qe.disable(2960),Ke.stencil_enable=je,Wt=Ke.profile,Wt&&(xr=performance.now(),r.count+=Rt),Qe.useProgram(s.program),Lr=At.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=Ct.instances,Nr=0;Nr0?si.constant[0]:0,Co=si.constant.length>1?si.constant[1]:0,Po=si.constant.length>2?si.constant[2]:0,Wi=si.constant.length>3?si.constant[3]:0)):(Je(si.buffer)?gn=Mt.createStream(34962,si.buffer):gn=Mt.getBuffer(si.buffer),Sn="type"in si?$i[si.type]:gn.dtype,Ha=!!si.normalized,Ps=si.size|0,ao=si.offset|0,Ba=si.stride|0,Ko=si.divisor|0)),Qo=u.location,Hi=Zt[Qo],wa===1?(Hi.buffer||Qe.enableVertexAttribArray(Qo),Sa=Ps||2,(Hi.type!==Sn||Hi.size!==Sa||Hi.buffer!==gn||Hi.normalized!==Ha||Hi.offset!==ao||Hi.stride!==Ba)&&(Qe.bindBuffer(34962,gn.buffer),Qe.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Hi.type=Sn,Hi.size=Sa,Hi.buffer=gn,Hi.normalized=Ha,Hi.offset=ao,Hi.stride=Ba),Hi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Hi.divisor=Ko)):(Hi.buffer&&(Qe.disableVertexAttribArray(Qo),Hi.buffer=null),(Hi.x!==ws||Hi.y!==Co||Hi.z!==Po||Hi.w!==Wi)&&(Qe.vertexAttrib4f(Qo,ws,Co,Po,Wi),Hi.x=ws,Hi.y=Co,Hi.z=Po,Hi.w=Wi)),Qa=Or.positionFractBuffer,Ti.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,Je(Ti)?(vn=!0,co=Mt.createStream(34962,Ti),jn=co.dtype):(co=Mt.getBuffer(Ti),co?jn=co.dtype:"constant"in Ti?(da=2,typeof Ti.constant=="number"?(la=Ti.constant,vo=As=ps=0):(la=Ti.constant.length>0?Ti.constant[0]:0,vo=Ti.constant.length>1?Ti.constant[1]:0,As=Ti.constant.length>2?Ti.constant[2]:0,ps=Ti.constant.length>3?Ti.constant[3]:0)):(Je(Ti.buffer)?co=Mt.createStream(34962,Ti.buffer):co=Mt.getBuffer(Ti.buffer),jn="type"in Ti?$i[Ti.type]:co.dtype,No=!!Ti.normalized,mo=Ti.size|0,Go=Ti.offset|0,Ys=Ti.stride|0,qs=Ti.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||Qe.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(Qe.bindBuffer(34962,co.buffer),Qe.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(Qe.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(Qe.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Or.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Nr||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,Qe.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Or.id,(!Nr||qn!==Ka)&&(qn=Ka,Qe.uniform1f(c.location,Ka)),Eo=Or.opacity,(!Nr||Ja!==Eo)&&(Ja=Eo,Qe.uniform1f(h.location,Eo)),lo=Or.scale,eo=lo[0],es=lo[1],(!Nr||sa!==eo||Na!==es)&&(sa=eo,Na=es,Qe.uniform2f(d.location,eo,es)),rn=Or.scaleFract,Pa=rn[0],yo=rn[1],(!Nr||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,Qe.uniform2f(p.location,Pa,yo)),Ao=Or.translate,Dn=Ao[0],Ws=Ao[1],(!Nr||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,Qe.uniform2f(_.location,Dn,Ws)),Es=Or.translateFract,Ts=Es[0],Wa=Es[1],(!Nr||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,Qe.uniform2f(b.location,Ts,Wa)),ts=v.call(this,gt,Or,Nr),Wo=null,qa=Je(ts),qa?Wo=wt.createStream(ts):Wo=wt.getElements(ts),Wo&&Qe.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?Qe.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):Qe.drawArrays(4,0,ln)),gt.viewportWidth=kn,gt.viewportHeight=Ta,ra&&Mt.destroyStream(gn),vn&&Mt.destroyStream(co),qa&&wt.destroyStream(Wo))}Ke.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-xr)}}}});var B8=Te((ibr,o7e)=>{o7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut){"use strict";var Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii;return Re=t.gl,be=t.context,Oe=t.strings,Ie=t.next,Fe=t.current,ft=t.draw,ye=t.elements,fe=t.buffer,pe=t.shader,dt=t.attributes,Pt=t.vao,zt=t.uniforms,rr=t.framebuffer,Gr=t.extensions,Br=t.timer,Er=t.isBufferArgs,Rr=Ie.blend_color,pi=Fe.blend_color,Di=Ie.blend_equation,ni=Fe.blend_equation,$i=Ie.blend_func,Qi=Fe.blend_func,si=Ie.depth_range,Ti=Fe.depth_range,Ni=Ie.colorMask,Rt=Fe.colorMask,yt=Ie.polygonOffset_offset,Gt=Fe.polygonOffset_offset,Wt=Ie.sample_coverage,xr=Fe.sample_coverage,Lr=Ie.stencil_func,Nr=Fe.stencil_func,Or=Ie.stencil_opFront,Hr=Fe.stencil_opFront,jr=Ie.stencil_opBack,gi=Fe.stencil_opBack,ki=Ie.scissor_box,Vi=Fe.scissor_box,ti=Ie.viewport,tn=Fe.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},an={add:32774,subtract:32778,"reverse subtract":32779},nn={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 bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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(bi=Gr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Re.bindFramebuffer(36160,Xr.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=Xr),Fe.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar;Ml=Ie.dither,Ml!==Fe.dither&&(Ml?Re.enable(3024):Re.disable(3024),Fe.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==ni[0]||Al!==ni[1])&&(Re.blendEquationSeparate(Rl,Al),ni[0]=Rl,ni[1]=Al),Ll=Ie.depth_func,Ll!==Fe.depth_func&&(Re.depthFunc(Ll),Fe.depth_func=Ll),ms=si[0],Os=si[1],(ms!==Ti[0]||Os!==Ti[1])&&(Re.depthRange(ms,Os),Ti[0]=ms,Ti[1]=Os),Xl=Ie.depth_mask,Xl!==Fe.depth_mask&&(Re.depthMask(Xl),Fe.depth_mask=Xl),Gl=Ni[0],Nl=Ni[1],le=Ni[2],w=Ni[3],(Gl!==Rt[0]||Nl!==Rt[1]||le!==Rt[2]||w!==Rt[3])&&(Re.colorMask(Gl,Nl,le,w),Rt[0]=Gl,Rt[1]=Nl,Rt[2]=le,Rt[3]=w),q=Ie.cull_enable,q!==Fe.cull_enable&&(q?Re.enable(2884):Re.disable(2884),Fe.cull_enable=q),Q=Ie.cull_face,Q!==Fe.cull_face&&(Re.cullFace(Q),Fe.cull_face=Q),ee=Ie.frontFace,ee!==Fe.frontFace&&(Re.frontFace(ee),Fe.frontFace=ee),ue=Ie.lineWidth,ue!==Fe.lineWidth&&(Re.lineWidth(ue),Fe.lineWidth=ue),Ue=Ie.polygonOffset_enable,Ue!==Fe.polygonOffset_enable&&(Ue?Re.enable(32823):Re.disable(32823),Fe.polygonOffset_enable=Ue),rt=yt[0],mt=yt[1],(rt!==Gt[0]||mt!==Gt[1])&&(Re.polygonOffset(rt,mt),Gt[0]=rt,Gt[1]=mt),Ft=Ie.sample_alpha,Ft!==Fe.sample_alpha&&(Ft?Re.enable(32926):Re.disable(32926),Fe.sample_alpha=Ft),ir=Ie.sample_enable,ir!==Fe.sample_enable&&(ir?Re.enable(32928):Re.disable(32928),Fe.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==xr[0]||kr!==xr[1])&&(Re.sampleCoverage(or,kr),xr[0]=or,xr[1]=kr),Vr=Ie.stencil_mask,Vr!==Fe.stencil_mask&&(Re.stencilMask(Vr),Fe.stencil_mask=Vr),he=Lr[0],Me=Lr[1],qe=Lr[2],(he!==Nr[0]||Me!==Nr[1]||qe!==Nr[2])&&(Re.stencilFunc(he,Me,qe),Nr[0]=he,Nr[1]=Me,Nr[2]=qe),Ve=Or[0],lt=Or[1],it=Or[2],pt=Or[3],(Ve!==Hr[0]||lt!==Hr[1]||it!==Hr[2]||pt!==Hr[3])&&(Re.stencilOpSeparate(Ve,lt,it,pt),Hr[0]=Ve,Hr[1]=lt,Hr[2]=it,Hr[3]=pt),Ht=jr[0],nr=jr[1],fr=jr[2],Ar=jr[3],(Ht!==gi[0]||nr!==gi[1]||fr!==gi[2]||Ar!==gi[3])&&(Re.stencilOpSeparate(Ht,nr,fr,Ar),gi[0]=Ht,gi[1]=nr,gi[2]=fr,gi[3]=Ar)}ct=xn.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:be.framebufferWidth-tr,Zr="height"in ct?ct.height|0:be.framebufferHeight-pr,Ai=be.viewportWidth,be.viewportWidth=gr,en=be.viewportHeight,be.viewportHeight=Zr,Re.viewport(tr,pr,gr,Zr),tn[0]=tr,tn[1]=pr,tn[2]=gr,tn[3]=Zr,Re.blendColor(0,0,0,1),pi[0]=0,pi[1]=0,pi[2]=0,pi[3]=1,n?Re.enable(3042):Re.disable(3042),Fe.blend_enable=n,Re.blendFuncSeparate(770,771,773,1),Qi[0]=770,Qi[1]=771,Qi[2]=773,Qi[3]=1,i?Re.enable(2929):Re.disable(2929),Fe.depth_enable=i,ii=xn.viewport,Xi=ii.x|0,aa=ii.y|0,Mn="width"in ii?ii.width|0:be.framebufferWidth-Xi,Un="height"in ii?ii.height|0:be.framebufferHeight-aa,Re.scissor(Xi,aa,Mn,Un),Vi[0]=Xi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Re.enable(3089):Re.disable(3089),Fe.scissor_enable=a,o?Re.enable(2960):Re.disable(2960),Fe.stencil_enable=o,Ga=Fe.profile,Ga&&(ma=performance.now(),r.count++),Re.useProgram(s.program),oa=Gr.angle_instanced_arrays,Pt.setVAO(null),ka=u.call(this,be,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,Er(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.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)):(Er(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.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=dt[ra],Kr===1?(wa.buffer||Re.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Re.bindBuffer(34962,Ta.buffer),Re.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&&(Re.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Re.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,be,xn,0),Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,Er(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.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)):(Er(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Ri[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=dt[vn],Wi===1?(da.buffer||Re.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Re.bindBuffer(34962,ao.buffer),Re.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&&(Re.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Re.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,be,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Er(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.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)):(Er(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Ri[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=dt[Ya],ps===1?(_n.buffer||Re.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Re.bindBuffer(34962,Go.buffer),Re.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Re.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Re.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,be,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Er(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=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)):(Er(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.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)),rn=_.location,Pa=dt[rn],Xn===1?(Pa.buffer||Re.enableVertexAttribArray(rn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Re.bindBuffer(34962,Eo.buffer),Re.vertexAttribPointer(rn,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(rn,Na),Pa.divisor=Na)):(Pa.buffer&&(Re.disableVertexAttribArray(rn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Re.vertexAttrib4f(rn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,be,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,Er(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.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)):(Er(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.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,ln=dt[qa],Ao===1?(ln.buffer||Re.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Re.bindBuffer(34962,Es.buffer),Re.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Re.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Re.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=C.call(this,be,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,Er(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.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)):(Er(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Ri[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=dt[Vo],za===1?(Do.buffer||Re.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Re.bindBuffer(34962,Ds.buffer),Re.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&&(Re.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Re.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,be,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Er(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=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)):(Er(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.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=dt[po],Ea===1?(go.buffer||Re.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Re.bindBuffer(34962,bs.buffer),Re.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&&(Re.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Re.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=x.call(this,be,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,Er(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.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)):(Er(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="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=dt[Fa],io===1?(Ms.buffer||Re.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Re.bindBuffer(34962,cl.buffer),Re.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&&(Re.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Re.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=M.call(this,be,xn,0),Is=!1,Bs=1,Tt=0,Vt=0,wr=0,mr=0,Fr=null,_i=0,Si=!1,Ci=5126,Ki=0,Fn=0,Pi=0,Er(Rs)?(Is=!0,Fr=fe.createStream(34962,Rs),Ci=Fr.dtype):(Fr=fe.getBuffer(Rs),Fr?Ci=Fr.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(Tt=Rs.constant,Vt=wr=mr=0):(Tt=Rs.constant.length>0?Rs.constant[0]:0,Vt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,mr=Rs.constant.length>3?Rs.constant[3]:0)):(Er(Rs.buffer)?Fr=fe.createStream(34962,Rs.buffer):Fr=fe.getBuffer(Rs.buffer),Ci="type"in Rs?Ri[Rs.type]:Fr.dtype,Si=!!Rs.normalized,_i=Rs.size|0,Ki=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),di=m.location,Li=dt[di],Bs===1?(Li.buffer||Re.enableVertexAttribArray(di),Mi=_i||1,(Li.type!==Ci||Li.size!==Mi||Li.buffer!==Fr||Li.normalized!==Si||Li.offset!==Ki||Li.stride!==Fn)&&(Re.bindBuffer(34962,Fr.buffer),Re.vertexAttribPointer(di,Mi,Ci,Si,Fn,Ki),Li.type=Ci,Li.size=Mi,Li.buffer=Fr,Li.normalized=Si,Li.offset=Ki,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(di,Pi),Li.divisor=Pi)):(Li.buffer&&(Re.disableVertexAttribArray(di),Li.buffer=null),(Li.x!==Tt||Li.y!==Vt||Li.z!==wr||Li.w!==mr)&&(Re.vertexAttrib4f(di,Tt,Vt,wr,mr),Li.x=Tt,Li.y=Vt,Li.z=wr,Li.w=mr)),Re.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Re.uniform1i(A.location,ta.bind()),ya=xn.opacity,Re.uniform1f(F.location,ya),ia=U.call(this,be,xn,0),pa=ia[0],va=ia[1],Re.uniform2f(B.location,pa,va),Re.uniform1i(G.location,j.bind()),zn=be.pixelRatio,Re.uniform1f(W.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Re.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Bl=dl[1],Re.uniform2f(H.location,xl,Bl),bl=xn.translate,eu=bl[0],Zl=bl[1],Re.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Re.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Er(Js),sl?cs=ye.createStream(Js):cs=ye.getElements(Js),cs&&Re.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,nl=xn.count,nl&&(zl=ft.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?Re.drawElements(0,nl,cs.type,ll<<(cs.type-5121>>1)):Re.drawArrays(0,ll,nl)),Fe.dirty=!0,Pt.setVAO(null),be.viewportWidth=Ai,be.viewportHeight=en,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Fr),ta.unbind(),j.unbind(),sl&&ye.destroyStream(cs))},scope:function(xn,bi,Xr){var ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf;ct=xn.viewport,tr=ct.x|0,pr=ct.y|0,gr="width"in ct?ct.width|0:be.framebufferWidth-tr,Zr="height"in ct?ct.height|0:be.framebufferHeight-pr,Ai=be.viewportWidth,be.viewportWidth=gr,en=be.viewportHeight,be.viewportHeight=Zr,ii=ti[0],ti[0]=tr,Xi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Rr[0],Rr[0]=ge,Ga=Rr[1],Rr[1]=ze,ma=Rr[2],Rr[2]=Le,oa=Rr[3],Rr[3]=de,ka=Ie.blend_enable,Ie.blend_enable=te,so=$i[0],$i[0]=ke,Kr=$i[1],$i[1]=Ee,Ia=$i[2],$i[2]=Se,Yo=$i[3],$i[3]=Ge,fa=Ie.depth_enable,Ie.depth_enable=De,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:be.framebufferWidth-Ta,ls="height"in kn?kn.height|0:be.framebufferHeight-ys,$a=ki[0],ki[0]=Ta,fo=ki[1],ki[1]=ys,mn=ki[2],ki[2]=uo,ra=ki[3],ki[3]=ls,wa=Ie.scissor_enable,Ie.scissor_enable=xe,ws=Ie.stencil_enable,Ie.stencil_enable=Ne,Co=Fe.profile,Co&&(Po=performance.now(),r.count++),Wi=xn.elements,gn=null,Ps=Er(Wi),Ps?gn=ye.createStream(Wi):gn=ye.getElements(Wi),Ha=ft.elements,ft.elements=gn,Sn=xn.offset,ao=ft.offset,ft.offset=Sn,Ba=xn.count,Ko=ft.count,ft.count=Ba,Qo=ft.primitive,ft.primitive=ce,Hi=zt[je],zt[je]=!1,Sa=zt[gt],zt[gt]=Qe,Qa=xn.opacity,vn=zt[qt],zt[qt]=Qa,da=U.call(this,be,xn,Xr),la=zt[at],zt[at]=da,vo=be.pixelRatio,As=zt[Ke],zt[Ke]=vo,ps=xn.scale,co=zt[Ct],zt[Ct]=ps,mo=xn.scaleFract,No=zt[wt],zt[wt]=mo,jn=xn.translate,Go=zt[Mt],zt[Mt]=jn,Ys=xn.translateFract,qs=zt[Bt],zt[Bt]=Ys,Ns=xn.markerTexture,Oa=zt[Zt],zt[Zt]=Ns,ha=C.call(this,be,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Er(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.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)):(Er(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Ri[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,rn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=x.call(this,be,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.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)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,be,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Er(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.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)):(Er(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Ri[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=ot.state,ot.state=Do,os=ot.x,ot.x=Lo,_l=ot.y,ot.y=xs,Ss=ot.z,ot.z=ks,po=ot.w,ot.w=Ea,go=ot.buffer,ot.buffer=Jn,ss=ot.size,ot.size=Oo,qo=ot.normalized,ot.normalized=rl,zo=ot.type,ot.type=Gs,io=ot.offset,ot.offset=bs,Io=ot.stride,ot.stride=zs,Da=ot.divisor,ot.divisor=$o,vs=M.call(this,be,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,Er(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.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)):(Er(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Ri[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=At.state,At.state=cl,Tt=At.x,At.x=el,Vt=At.y,At.y=Hs,wr=At.z,At.z=Ro,mr=At.w,At.w=tl,Fr=At.buffer,At.buffer=Fs,_i=At.size,At.size=hl,Si=At.normalized,At.normalized=Fa,Ci=At.type,At.type=Ms,Ki=At.offset,At.offset=jo,Fn=At.stride,At.stride=Rs,Pi=At.divisor,At.divisor=Is,di=b.call(this,be,xn,Xr),Li=!1,Mi=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Er(di)?(Li=!0,pa=fe.createStream(34962,di),is=pa.dtype):(pa=fe.getBuffer(di),pa?is=pa.dtype:"constant"in di?(Mi=2,typeof di.constant=="number"?(Gn=di.constant,ta=ya=ia=0):(Gn=di.constant.length>0?di.constant[0]:0,ta=di.constant.length>1?di.constant[1]:0,ya=di.constant.length>2?di.constant[2]:0,ia=di.constant.length>3?di.constant[3]:0)):(Er(di.buffer)?pa=fe.createStream(34962,di.buffer):pa=fe.getBuffer(di.buffer),is="type"in di?Ri[di.type]:pa.dtype,zn=!!di.normalized,va=di.size|0,Cs=di.offset|0,Ks=di.stride|0,dl=di.divisor|0)),xl=vt.state,vt.state=Mi,Bl=vt.x,vt.x=Gn,bl=vt.y,vt.y=ta,eu=vt.z,vt.z=ya,Zl=vt.w,vt.w=ia,Vl=vt.buffer,vt.buffer=pa,ja=vt.size,vt.size=va,ns=vt.normalized,vt.normalized=zn,Js=vt.type,vt.type=is,cs=vt.offset,vt.offset=Cs,sl=vt.stride,vt.stride=Ks,ll=vt.divisor,vt.divisor=dl,nl=f.call(this,be,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Gl=!1,Nl=5126,le=0,w=0,q=0,Er(nl)?(zl=!0,Os=fe.createStream(34962,nl),Nl=Os.dtype):(Os=fe.getBuffer(nl),Os?Nl=Os.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)):(Er(nl.buffer)?Os=fe.createStream(34962,nl.buffer):Os=fe.getBuffer(nl.buffer),Nl="type"in nl?Ri[nl.type]:Os.dtype,Gl=!!nl.normalized,Xl=nl.size|0,le=nl.offset|0,w=nl.stride|0,q=nl.divisor|0)),Q=Je.state,Je.state=Ml,ee=Je.x,Je.x=Rl,ue=Je.y,Je.y=Al,Ue=Je.z,Je.z=Ll,rt=Je.w,Je.w=ms,mt=Je.buffer,Je.buffer=Os,Ft=Je.size,Je.size=Xl,ir=Je.normalized,Je.normalized=Gl,or=Je.type,Je.type=Nl,kr=Je.offset,Je.offset=le,Vr=Je.stride,Je.stride=w,he=Je.divisor,Je.divisor=q,Me=h.call(this,be,xn,Xr),qe=!1,Ve=1,lt=0,it=0,pt=0,Ht=0,nr=null,fr=0,Ar=!1,Ir=5126,ri=0,li=0,Ei=0,Er(Me)?(qe=!0,nr=fe.createStream(34962,Me),Ir=nr.dtype):(nr=fe.getBuffer(Me),nr?Ir=nr.dtype:"constant"in Me?(Ve=2,typeof Me.constant=="number"?(lt=Me.constant,it=pt=Ht=0):(lt=Me.constant.length>0?Me.constant[0]:0,it=Me.constant.length>1?Me.constant[1]:0,pt=Me.constant.length>2?Me.constant[2]:0,Ht=Me.constant.length>3?Me.constant[3]:0)):(Er(Me.buffer)?nr=fe.createStream(34962,Me.buffer):nr=fe.getBuffer(Me.buffer),Ir="type"in Me?Ri[Me.type]:nr.dtype,Ar=!!Me.normalized,fr=Me.size|0,ri=Me.offset|0,li=Me.stride|0,Ei=Me.divisor|0)),hn=He.state,He.state=Ve,Zn=He.x,He.x=lt,Yn=He.y,He.y=it,Ua=He.z,He.z=pt,Fo=He.w,He.w=Ht,vl=He.buffer,He.buffer=nr,Us=He.size,He.size=fr,ml=He.normalized,He.normalized=Ar,au=He.type,He.type=Ir,Sl=He.offset,He.offset=ri,Yl=He.stride,He.stride=li,Ol=He.divisor,He.divisor=Ei,ou=u.call(this,be,xn,Xr),Pu=!1,nu=1,tu=0,Hu=0,$u=0,Ku=0,Wu=null,ju=0,sf=!1,_f=5126,Qu=0,ef=0,Z=0,Er(ou)?(Pu=!0,Wu=fe.createStream(34962,ou),_f=Wu.dtype):(Wu=fe.getBuffer(ou),Wu?_f=Wu.dtype:"constant"in ou?(nu=2,typeof ou.constant=="number"?(tu=ou.constant,Hu=$u=Ku=0):(tu=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)):(Er(ou.buffer)?Wu=fe.createStream(34962,ou.buffer):Wu=fe.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)),se=nt.state,nt.state=nu,Pe=nt.x,nt.x=tu,Ze=nt.y,nt.y=Hu,et=nt.z,nt.z=$u,st=nt.w,nt.w=Ku,jt=nt.buffer,nt.buffer=Wu,_t=nt.size,nt.size=ju,hr=nt.normalized,nt.normalized=sf,Cr=nt.type,nt.type=_f,zr=nt.offset,nt.offset=Qu,fi=nt.stride,nt.stride=ef,$r=nt.divisor,nt.divisor=Z,Bi=p.call(this,be,xn,Xr),fn=!1,mi=1,zi=0,ji=0,pn=0,sn=0,wi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Er(Bi)?(fn=!0,wi=fe.createStream(34962,Bi),Xo=wi.dtype):(wi=fe.getBuffer(Bi),wi?Xo=wi.dtype:"constant"in Bi?(mi=2,typeof Bi.constant=="number"?(zi=Bi.constant,ji=pn=sn=0):(zi=Bi.constant.length>0?Bi.constant[0]:0,ji=Bi.constant.length>1?Bi.constant[1]:0,pn=Bi.constant.length>2?Bi.constant[2]:0,sn=Bi.constant.length>3?Bi.constant[3]:0)):(Er(Bi.buffer)?wi=fe.createStream(34962,Bi.buffer):wi=fe.getBuffer(Bi.buffer),Xo="type"in Bi?Ri[Bi.type]:wi.dtype,no=!!Bi.normalized,xo=Bi.size|0,js=Bi.offset|0,El=Bi.stride|0,Pl=Bi.divisor|0)),pu=tt.state,tt.state=mi,Il=tt.x,tt.x=zi,fu=tt.y,tt.y=ji,Xu=tt.z,tt.z=pn,Vu=tt.w,tt.w=sn,tf=tt.buffer,tt.buffer=wi,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=pe.vert,pe.vert=It,pf=pe.frag,pe.frag=Yt,Fe.dirty=!0,bi(be,xn,Xr),be.viewportWidth=Ai,be.viewportHeight=en,ti[0]=ii,ti[1]=Xi,ti[2]=aa,ti[3]=Mn,Rr[0]=Un,Rr[1]=Ga,Rr[2]=ma,Rr[3]=oa,Ie.blend_enable=ka,$i[0]=so,$i[1]=Kr,$i[2]=Ia,$i[3]=Yo,Ie.depth_enable=fa,ki[0]=$a,ki[1]=fo,ki[2]=mn,ki[3]=ra,Ie.scissor_enable=wa,Ie.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&ye.destroyStream(gn),ft.elements=Ha,ft.offset=ao,ft.count=Ko,ft.primitive=Qo,zt[je]=Hi,zt[gt]=Sa,zt[qt]=vn,zt[at]=la,zt[Ke]=As,zt[Ct]=co,zt[wt]=No,zt[Mt]=Go,zt[Bt]=qs,zt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=rn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),ot.state=Aa,ot.x=os,ot.y=_l,ot.z=Ss,ot.w=po,ot.buffer=go,ot.size=ss,ot.normalized=qo,ot.type=zo,ot.offset=io,ot.stride=Io,ot.divisor=Da,fs&&fe.destroyStream(Fs),At.state=Bs,At.x=Tt,At.y=Vt,At.z=wr,At.w=mr,At.buffer=Fr,At.size=_i,At.normalized=Si,At.type=Ci,At.offset=Ki,At.stride=Fn,At.divisor=Pi,Li&&fe.destroyStream(pa),vt.state=xl,vt.x=Bl,vt.y=bl,vt.z=eu,vt.w=Zl,vt.buffer=Vl,vt.size=ja,vt.normalized=ns,vt.type=Js,vt.offset=cs,vt.stride=sl,vt.divisor=ll,zl&&fe.destroyStream(Os),Je.state=Q,Je.x=ee,Je.y=ue,Je.z=Ue,Je.w=rt,Je.buffer=mt,Je.size=Ft,Je.normalized=ir,Je.type=or,Je.offset=kr,Je.stride=Vr,Je.divisor=he,qe&&fe.destroyStream(nr),He.state=hn,He.x=Zn,He.y=Yn,He.z=Ua,He.w=Fo,He.buffer=vl,He.size=Us,He.normalized=ml,He.type=au,He.offset=Sl,He.stride=Yl,He.divisor=Ol,Pu&&fe.destroyStream(Wu),nt.state=se,nt.x=Pe,nt.y=Ze,nt.z=et,nt.w=st,nt.buffer=jt,nt.size=_t,nt.normalized=hr,nt.type=Cr,nt.offset=zr,nt.stride=fi,nt.divisor=$r,fn&&fe.destroyStream(wi),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,pe.vert=Mf,pe.frag=pf,Fe.dirty=!0},batch:function(xn,bi){var Xr,ct,tr,pr,gr,Zr,Ai;if(Xr=Gr.angle_instanced_arrays,ct=rr.next,ct!==rr.cur&&(ct?Re.bindFramebuffer(36160,ct.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=ct),Fe.dirty){var en,ii,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;en=Ie.dither,en!==Fe.dither&&(en?Re.enable(3024):Re.disable(3024),Fe.dither=en),ii=Di[0],Xi=Di[1],(ii!==ni[0]||Xi!==ni[1])&&(Re.blendEquationSeparate(ii,Xi),ni[0]=ii,ni[1]=Xi),aa=Ie.depth_func,aa!==Fe.depth_func&&(Re.depthFunc(aa),Fe.depth_func=aa),Mn=si[0],Un=si[1],(Mn!==Ti[0]||Un!==Ti[1])&&(Re.depthRange(Mn,Un),Ti[0]=Mn,Ti[1]=Un),Ga=Ie.depth_mask,Ga!==Fe.depth_mask&&(Re.depthMask(Ga),Fe.depth_mask=Ga),ma=Ni[0],oa=Ni[1],ka=Ni[2],so=Ni[3],(ma!==Rt[0]||oa!==Rt[1]||ka!==Rt[2]||so!==Rt[3])&&(Re.colorMask(ma,oa,ka,so),Rt[0]=ma,Rt[1]=oa,Rt[2]=ka,Rt[3]=so),Kr=Ie.cull_enable,Kr!==Fe.cull_enable&&(Kr?Re.enable(2884):Re.disable(2884),Fe.cull_enable=Kr),Ia=Ie.cull_face,Ia!==Fe.cull_face&&(Re.cullFace(Ia),Fe.cull_face=Ia),Yo=Ie.frontFace,Yo!==Fe.frontFace&&(Re.frontFace(Yo),Fe.frontFace=Yo),fa=Ie.lineWidth,fa!==Fe.lineWidth&&(Re.lineWidth(fa),Fe.lineWidth=fa),kn=Ie.polygonOffset_enable,kn!==Fe.polygonOffset_enable&&(kn?Re.enable(32823):Re.disable(32823),Fe.polygonOffset_enable=kn),Ta=yt[0],ys=yt[1],(Ta!==Gt[0]||ys!==Gt[1])&&(Re.polygonOffset(Ta,ys),Gt[0]=Ta,Gt[1]=ys),uo=Ie.sample_alpha,uo!==Fe.sample_alpha&&(uo?Re.enable(32926):Re.disable(32926),Fe.sample_alpha=uo),ls=Ie.sample_enable,ls!==Fe.sample_enable&&(ls?Re.enable(32928):Re.disable(32928),Fe.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==xr[0]||fo!==xr[1])&&(Re.sampleCoverage($a,fo),xr[0]=$a,xr[1]=fo),mn=Ie.stencil_mask,mn!==Fe.stencil_mask&&(Re.stencilMask(mn),Fe.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Nr[0]||wa!==Nr[1]||ws!==Nr[2])&&(Re.stencilFunc(ra,wa,ws),Nr[0]=ra,Nr[1]=wa,Nr[2]=ws),Co=Or[0],Po=Or[1],Wi=Or[2],gn=Or[3],(Co!==Hr[0]||Po!==Hr[1]||Wi!==Hr[2]||gn!==Hr[3])&&(Re.stencilOpSeparate(Co,Po,Wi,gn),Hr[0]=Co,Hr[1]=Po,Hr[2]=Wi,Hr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==gi[0]||Ha!==gi[1]||Sn!==gi[2]||ao!==gi[3])&&(Re.stencilOpSeparate(Ps,Ha,Sn,ao),gi[0]=Ps,gi[1]=Ha,gi[2]=Sn,gi[3]=ao)}Re.blendColor(0,0,0,1),pi[0]=0,pi[1]=0,pi[2]=0,pi[3]=1,cr?Re.enable(3042):Re.disable(3042),Fe.blend_enable=cr,Re.blendFuncSeparate(770,771,773,1),Qi[0]=770,Qi[1]=771,Qi[2]=773,Qi[3]=1,_r?Re.enable(2929):Re.disable(2929),Fe.depth_enable=_r,yr?Re.enable(3089):Re.disable(3089),Fe.scissor_enable=yr,Ut?Re.enable(2960):Re.disable(2960),Fe.stencil_enable=Ut,tr=Fe.profile,tr&&(pr=performance.now(),r.count+=bi),Re.useProgram(s.program),gr=Gr.angle_instanced_arrays;var Ba;for(Pt.setVAO(null),Re.uniform1i(P.location,!1),Re.uniform1i(G.location,j.bind()),Ba=ft.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)):(Er(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Ri[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=dt[Ra],jn===1?(Xn.buffer||Re.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Re.bindBuffer(34962,Oa.buffer),Re.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Re.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Re.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,be,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,rn=5126,Pa=0,to=0,yo=0,Er($n)?(Ka=!0,sa=fe.createStream(34962,$n),rn=sa.dtype):(sa=fe.getBuffer($n),sa?rn=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)):(Er($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),rn="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=dt[Jo],qn===1?(Ao.buffer||Re.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==rn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Re.bindBuffer(34962,sa.buffer),Re.vertexAttribPointer(Jo,Dn,rn,Na,to,Pa),Ao.type=rn,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&&(Re.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Re.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,be,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.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)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=dt[oo],Ca===1?(za.buffer||Re.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Re.bindBuffer(34962,To.buffer),Re.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Re.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Re.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,be,Ai,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,Er(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.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)):(Er(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Ri[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=_.location,Ea=dt[ks],us===1?(Ea.buffer||Re.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Re.bindBuffer(34962,Qs.buffer),Re.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&&(Re.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Re.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,be,Ai,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,Er(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Er(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Ri[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=dt[zo],Gs===1?(io.buffer||Re.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Re.bindBuffer(34962,os.buffer),Re.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&&(Re.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Re.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=C.call(this,be,Ai,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,Er(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.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)):(Er(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Ri[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,Bs=dt[Is],fs===1?(Bs.buffer||Re.enableVertexAttribArray(Is),Tt=Fs||1,(Bs.type!==Fa||Bs.size!==Tt||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Re.bindBuffer(34962,tl.buffer),Re.vertexAttribPointer(Is,Tt,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=Tt,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Re.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Re.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Vt=T.call(this,be,Ai,Zr),wr=!1,mr=1,Fr=0,_i=0,Si=0,Ci=0,Ki=null,Fn=0,Pi=!1,di=5126,Li=0,Mi=0,Gn=0,Er(Vt)?(wr=!0,Ki=fe.createStream(34962,Vt),di=Ki.dtype):(Ki=fe.getBuffer(Vt),Ki?di=Ki.dtype:"constant"in Vt?(mr=2,typeof Vt.constant=="number"?(Fr=Vt.constant,_i=Si=Ci=0):(Fr=Vt.constant.length>0?Vt.constant[0]:0,_i=Vt.constant.length>1?Vt.constant[1]:0,Si=Vt.constant.length>2?Vt.constant[2]:0,Ci=Vt.constant.length>3?Vt.constant[3]:0)):(Er(Vt.buffer)?Ki=fe.createStream(34962,Vt.buffer):Ki=fe.getBuffer(Vt.buffer),di="type"in Vt?Ri[Vt.type]:Ki.dtype,Pi=!!Vt.normalized,Fn=Vt.size|0,Li=Vt.offset|0,Mi=Vt.stride|0,Gn=Vt.divisor|0)),ta=L.location,ya=dt[ta],mr===1?(ya.buffer||Re.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==di||ya.size!==ia||ya.buffer!==Ki||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Mi)&&(Re.bindBuffer(34962,Ki.buffer),Re.vertexAttribPointer(ta,ia,di,Pi,Mi,Li),ya.type=di,ya.size=ia,ya.buffer=Ki,ya.normalized=Pi,ya.offset=Li,ya.stride=Mi),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Re.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Fr||ya.y!==_i||ya.z!==Si||ya.w!==Ci)&&(Re.vertexAttrib4f(ta,Fr,_i,Si,Ci),ya.x=Fr,ya.y=_i,ya.z=Si,ya.w=Ci)),pa=x.call(this,be,Ai,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,Er(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.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)):(Er(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.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=dt[ns],zn===1?(Js.buffer||Re.enableVertexAttribArray(ns),cs=Bl||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Re.bindBuffer(34962,xl.buffer),Re.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&&(Re.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Re.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=M.call(this,be,Ai,Zr),ll=!1,nl=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Gl=0,Nl=0,le=0,Er(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.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)):(Er(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Ri[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Nl=sl.stride|0,le=sl.divisor|0)),w=m.location,q=dt[w],nl===1?(q.buffer||Re.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Gl||q.stride!==Nl)&&(Re.bindBuffer(34962,Ll.buffer),Re.vertexAttribPointer(w,Q,Xl,Os,Nl,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Gl,q.stride=Nl),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Re.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Re.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Re.uniform1i(A.location,ue.bind()),Ue=Ai.opacity,(!Zr||rt!==Ue)&&(rt=Ue,Re.uniform1f(F.location,Ue)),mt=U.call(this,be,Ai,Zr),Ft=mt[0],or=mt[1],(!Zr||ir!==Ft||kr!==or)&&(ir=Ft,kr=or,Re.uniform2f(B.location,Ft,or)),Vr=be.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Re.uniform1f(W.location,Vr)),Me=Ai.scale,qe=Me[0],lt=Me[1],(!Zr||Ve!==qe||it!==lt)&&(Ve=qe,it=lt,Re.uniform2f(N.location,qe,lt)),pt=Ai.scaleFract,Ht=pt[0],fr=pt[1],(!Zr||nr!==Ht||Ar!==fr)&&(nr=Ht,Ar=fr,Re.uniform2f(H.location,Ht,fr)),Ir=Ai.translate,ri=Ir[0],Ei=Ir[1],(!Zr||li!==ri||hn!==Ei)&&(li=ri,hn=Ei,Re.uniform2f(re.location,ri,Ei)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Re.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Er(Us),au?ml=ye.createStream(Us):ml=ye.getElements(Us),ml&&Re.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Re.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Re.drawArrays(0,Sl,Yl)),be.viewportWidth=vn,be.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ki),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&ye.destroyStream(ml))}j.unbind(),Fe.dirty=!0,Pt.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var O8=Te((nbr,s7e)=>{s7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr){"use strict";var Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri;return Ut=t.gl,Re=t.context,be=t.strings,Oe=t.next,Ie=t.current,Fe=t.draw,ft=t.elements,ye=t.buffer,fe=t.shader,pe=t.attributes,dt=t.vao,Pt=t.uniforms,zt=t.framebuffer,rr=t.extensions,Gr=t.timer,Br=t.isBufferArgs,Er=Oe.blend_color,Rr=Ie.blend_color,pi=Oe.blend_equation,Di=Ie.blend_equation,ni=Oe.blend_func,$i=Ie.blend_func,Qi=Oe.depth_range,si=Ie.depth_range,Ti=Oe.colorMask,Ni=Ie.colorMask,Rt=Oe.polygonOffset_offset,yt=Ie.polygonOffset_offset,Gt=Oe.sample_coverage,Wt=Ie.sample_coverage,xr=Oe.stencil_func,Lr=Ie.stencil_func,Nr=Oe.stencil_opFront,Or=Ie.stencil_opFront,Hr=Oe.stencil_opBack,jr=Ie.stencil_opBack,gi=Oe.scissor_box,ki=Ie.scissor_box,Vi=Oe.viewport,ti=Ie.viewport,tn={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},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},nn={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,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,bi=zt.next,bi!==zt.cur&&(bi?Ut.bindFramebuffer(36160,bi.framebuffer):Ut.bindFramebuffer(36160,null),zt.cur=bi),Ie.dirty){var ll,nl,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht;ll=Oe.dither,ll!==Ie.dither&&(ll?Ut.enable(3024):Ut.disable(3024),Ie.dither=ll),nl=pi[0],zl=pi[1],(nl!==Di[0]||zl!==Di[1])&&(Ut.blendEquationSeparate(nl,zl),Di[0]=nl,Di[1]=zl),Ml=Oe.depth_func,Ml!==Ie.depth_func&&(Ut.depthFunc(Ml),Ie.depth_func=Ml),Rl=Qi[0],Al=Qi[1],(Rl!==si[0]||Al!==si[1])&&(Ut.depthRange(Rl,Al),si[0]=Rl,si[1]=Al),Ll=Oe.depth_mask,Ll!==Ie.depth_mask&&(Ut.depthMask(Ll),Ie.depth_mask=Ll),ms=Ti[0],Os=Ti[1],Xl=Ti[2],Gl=Ti[3],(ms!==Ni[0]||Os!==Ni[1]||Xl!==Ni[2]||Gl!==Ni[3])&&(Ut.colorMask(ms,Os,Xl,Gl),Ni[0]=ms,Ni[1]=Os,Ni[2]=Xl,Ni[3]=Gl),Nl=Oe.cull_enable,Nl!==Ie.cull_enable&&(Nl?Ut.enable(2884):Ut.disable(2884),Ie.cull_enable=Nl),le=Oe.cull_face,le!==Ie.cull_face&&(Ut.cullFace(le),Ie.cull_face=le),w=Oe.frontFace,w!==Ie.frontFace&&(Ut.frontFace(w),Ie.frontFace=w),q=Oe.lineWidth,q!==Ie.lineWidth&&(Ut.lineWidth(q),Ie.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Ie.polygonOffset_enable&&(Q?Ut.enable(32823):Ut.disable(32823),Ie.polygonOffset_enable=Q),ee=Rt[0],ue=Rt[1],(ee!==yt[0]||ue!==yt[1])&&(Ut.polygonOffset(ee,ue),yt[0]=ee,yt[1]=ue),Ue=Oe.sample_alpha,Ue!==Ie.sample_alpha&&(Ue?Ut.enable(32926):Ut.disable(32926),Ie.sample_alpha=Ue),rt=Oe.sample_enable,rt!==Ie.sample_enable&&(rt?Ut.enable(32928):Ut.disable(32928),Ie.sample_enable=rt),mt=Gt[0],Ft=Gt[1],(mt!==Wt[0]||Ft!==Wt[1])&&(Ut.sampleCoverage(mt,Ft),Wt[0]=mt,Wt[1]=Ft),ir=Oe.stencil_mask,ir!==Ie.stencil_mask&&(Ut.stencilMask(ir),Ie.stencil_mask=ir),or=xr[0],kr=xr[1],Vr=xr[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ut.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Nr[0],Me=Nr[1],qe=Nr[2],Ve=Nr[3],(he!==Or[0]||Me!==Or[1]||qe!==Or[2]||Ve!==Or[3])&&(Ut.stencilOpSeparate(he,Me,qe,Ve),Or[0]=he,Or[1]=Me,Or[2]=qe,Or[3]=Ve),lt=Hr[0],it=Hr[1],pt=Hr[2],Ht=Hr[3],(lt!==jr[0]||it!==jr[1]||pt!==jr[2]||Ht!==jr[3])&&(Ut.stencilOpSeparate(lt,it,pt,Ht),jr[0]=lt,jr[1]=it,jr[2]=pt,jr[3]=Ht)}Xr=Ii.viewport,ct=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ct,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,Ut.viewport(ct,tr,pr,gr),ti[0]=ct,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ut.blendColor(0,0,0,1),Rr[0]=0,Rr[1]=0,Rr[2]=0,Rr[3]=1,n?Ut.enable(3042):Ut.disable(3042),Ie.blend_enable=n,Ut.blendFuncSeparate(770,771,773,1),$i[0]=770,$i[1]=771,$i[2]=773,$i[3]=1,i?Ut.enable(2929):Ut.disable(2929),Ie.depth_enable=i,en=Ii.viewport,ii=en.x|0,Xi=en.y|0,aa="width"in en?en.width|0:Re.framebufferWidth-ii,Mn="height"in en?en.height|0:Re.framebufferHeight-Xi,Ut.scissor(ii,Xi,aa,Mn),ki[0]=ii,ki[1]=Xi,ki[2]=aa,ki[3]=Mn,a?Ut.enable(3089):Ut.disable(3089),Ie.scissor_enable=a,o?Ut.enable(2960):Ut.disable(2960),Ie.stencil_enable=o,Un=Ie.profile,Un&&(Ga=performance.now(),r.count++),Ut.useProgram(s.program),ma=rr.angle_instanced_arrays,dt.setVAO(null),oa=u.call(this,Re,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,Br(oa)?(ka=!0,kn=ye.createStream(34962,oa),uo=kn.dtype):(kn=ye.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)):(Br(oa.buffer)?kn=ye.createStream(34962,oa.buffer):kn=ye.getBuffer(oa.buffer),uo="type"in oa?nn[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=pe[mn],so===1?(ra.buffer||Ut.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ut.bindBuffer(34962,kn.buffer),Ut.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&&(Ut.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ut.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Re,Ii,0),Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,Br(ws)?(Co=!0,Sn=ye.createStream(34962,ws),Ko=Sn.dtype):(Sn=ye.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)):(Br(ws.buffer)?Sn=ye.createStream(34962,ws.buffer):Sn=ye.getBuffer(ws.buffer),Ko="type"in ws?nn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Hi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=pe[Qa],Po===1?(vn.buffer||Ut.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(Ut.bindBuffer(34962,Sn.buffer),Ut.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ut.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ut.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Re,Ii,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Br(la)?(vo=!0,jn=ye.createStream(34962,la),qs=jn.dtype):(jn=ye.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)):(Br(la.buffer)?jn=ye.createStream(34962,la.buffer):jn=ye.getBuffer(la.buffer),qs="type"in la?nn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=pe[Vs],As===1?(Ya.buffer||Ut.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ut.bindBuffer(34962,jn.buffer),Ut.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ut.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ut.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Re,Ii,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Br(Vn)?(wo=!0,qn=ye.createStream(34962,Vn),lo=qn.dtype):(qn=ye.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=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)):(Br(Vn.buffer)?qn=ye.createStream(34962,Vn.buffer):qn=ye.getBuffer(Vn.buffer),lo="type"in Vn?nn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=_.location,rn=pe[Na],Ra===1?(rn.buffer||Ut.enableVertexAttribArray(Na),Pa=Eo||1,(rn.type!==lo||rn.size!==Pa||rn.buffer!==qn||rn.normalized!==Ja||rn.offset!==eo||rn.stride!==sa)&&(Ut.bindBuffer(34962,qn.buffer),Ut.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),rn.type=lo,rn.size=Pa,rn.buffer=qn,rn.normalized=Ja,rn.offset=eo,rn.stride=sa),rn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),rn.divisor=es)):(rn.buffer&&(Ut.disableVertexAttribArray(Na),rn.buffer=null),(rn.x!==Xn||rn.y!==un||rn.z!==$n||rn.w!==Ka)&&(Ut.vertexAttrib4f(Na,Xn,un,$n,Ka),rn.x=Xn,rn.y=un,rn.z=$n,rn.w=Ka)),to=b.call(this,Re,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,Br(to)?(yo=!0,Ca=ye.createStream(34962,to),Ho=Ca.dtype):(Ca=ye.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)):(Br(to.buffer)?Ca=ye.createStream(34962,to.buffer):Ca=ye.getBuffer(to.buffer),Ho="type"in to?nn[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=pe[Wo],Jo===1?(qa.buffer||Ut.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ut.bindBuffer(34962,Ca.buffer),Ut.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ut.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ut.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=C.call(this,Re,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,Br(Bo)?(ko=!0,us=ye.createStream(34962,Bo),as=us.dtype):(us=ye.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Br(Bo.buffer)?us=ye.createStream(34962,Bo.buffer):us=ye.getBuffer(Bo.buffer),as="type"in Bo?nn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=pe[gs],oo===1?(Vo.buffer||Ut.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ut.bindBuffer(34962,us.buffer),Ut.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&&(Ut.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ut.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Re,Ii,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Br(Lo)?(xs=!0,Gs=ye.createStream(34962,Lo),$o=Gs.dtype):(Gs=ye.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Br(Lo.buffer)?Gs=ye.createStream(34962,Lo.buffer):Gs=ye.getBuffer(Lo.buffer),$o="type"in Lo?nn[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=pe[Ss],ks===1?(po.buffer||Ut.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ut.bindBuffer(34962,Gs.buffer),Ut.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&&(Ut.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ut.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=x.call(this,Re,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,Br(ss)?(qo=!0,fs=ye.createStream(34962,ss),Hs=fs.dtype):(fs=ye.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)):(Br(ss.buffer)?fs=ye.createStream(34962,ss.buffer):fs=ye.getBuffer(ss.buffer),Hs="type"in ss?nn[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=pe[hl],zo===1?(Fa.buffer||Ut.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ut.bindBuffer(34962,fs.buffer),Ut.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&&(Ut.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ut.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=M.call(this,Re,Ii,0),Rs=!1,Is=1,Bs=0,Tt=0,Vt=0,wr=0,mr=null,Fr=0,_i=!1,Si=5126,Ci=0,Ki=0,Fn=0,Br(jo)?(Rs=!0,mr=ye.createStream(34962,jo),Si=mr.dtype):(mr=ye.getBuffer(jo),mr?Si=mr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,Tt=Vt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,Tt=jo.constant.length>1?jo.constant[1]:0,Vt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Br(jo.buffer)?mr=ye.createStream(34962,jo.buffer):mr=ye.getBuffer(jo.buffer),Si="type"in jo?nn[jo.type]:mr.dtype,_i=!!jo.normalized,Fr=jo.size|0,Ci=jo.offset|0,Ki=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,di=pe[Pi],Is===1?(di.buffer||Ut.enableVertexAttribArray(Pi),Li=Fr||1,(di.type!==Si||di.size!==Li||di.buffer!==mr||di.normalized!==_i||di.offset!==Ci||di.stride!==Ki)&&(Ut.bindBuffer(34962,mr.buffer),Ut.vertexAttribPointer(Pi,Li,Si,_i,Ki,Ci),di.type=Si,di.size=Li,di.buffer=mr,di.normalized=_i,di.offset=Ci,di.stride=Ki),di.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),di.divisor=Fn)):(di.buffer&&(Ut.disableVertexAttribArray(Pi),di.buffer=null),(di.x!==Bs||di.y!==Tt||di.z!==Vt||di.w!==wr)&&(Ut.vertexAttrib4f(Pi,Bs,Tt,Vt,wr),di.x=Bs,di.y=Tt,di.z=Vt,di.w=wr)),Ut.uniform1i(P.location,!1),Mi=Ii.opacity,Ut.uniform1f(A.location,Mi),Gn=B.call(this,Re,Ii,0),ta=Gn[0],ya=Gn[1],Ut.uniform2f(F.location,ta,ya),Ut.uniform1i(U.location,G.bind()),ia=Re.pixelRatio,Ut.uniform1f(j.location,ia),pa=Ii.scale,va=pa[0],zn=pa[1],Ut.uniform2f(W.location,va,zn),is=Ii.scaleFract,Cs=is[0],Ks=is[1],Ut.uniform2f(N.location,Cs,Ks),dl=Ii.translate,xl=dl[0],Bl=dl[1],Ut.uniform2f(H.location,xl,Bl),bl=Ii.translateFract,eu=bl[0],Zl=bl[1],Ut.uniform2f(re.location,eu,Zl),Vl=Ii.elements,ja=null,ns=Br(Vl),ns?ja=ft.createStream(Vl):ja=ft.getElements(Vl),ja&&Ut.bindBuffer(34963,ja.buffer.buffer),Js=Ii.offset,cs=Ii.count,cs&&(sl=Fe.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?Ut.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ut.drawArrays(0,Js,cs)),Ie.dirty=!0,dt.setVAO(null),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&ye.destroyStream(kn),Co&&ye.destroyStream(Sn),vo&&ye.destroyStream(jn),wo&&ye.destroyStream(qn),yo&&ye.destroyStream(Ca),ko&&ye.destroyStream(us),xs&&ye.destroyStream(Gs),qo&&ye.destroyStream(fs),Rs&&ye.destroyStream(mr),G.unbind(),ns&&ft.destroyStream(ja))},scope:function(Ii,xn,bi){var Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf;Xr=Ii.viewport,ct=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ct,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,en=Vi[0],Vi[0]=ct,ii=Vi[1],Vi[1]=tr,Xi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Er[0],Er[0]=ae,Un=Er[1],Er[1]=ge,Ga=Er[2],Er[2]=ze,ma=Er[3],Er[3]=Le,oa=Oe.blend_enable,Oe.blend_enable=de,ka=ni[0],ni[0]=te,so=ni[1],ni[1]=ke,Kr=ni[2],ni[2]=Ee,Ia=ni[3],ni[3]=Se,Yo=Oe.depth_enable,Oe.depth_enable=Ge,fa=Ii.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Re.framebufferWidth-kn,uo="height"in fa?fa.height|0:Re.framebufferHeight-Ta,ls=gi[0],gi[0]=kn,$a=gi[1],gi[1]=Ta,fo=gi[2],gi[2]=ys,mn=gi[3],gi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=De,wa=Oe.stencil_enable,Oe.stencil_enable=xe,ws=Ie.profile,ws&&(Co=performance.now(),r.count++),Po=Ii.elements,Wi=null,gn=Br(Po),gn?Wi=ft.createStream(Po):Wi=ft.getElements(Po),Ps=Fe.elements,Fe.elements=Wi,Ha=Ii.offset,Sn=Fe.offset,Fe.offset=Ha,ao=Ii.count,Ba=Fe.count,Fe.count=ao,Ko=Fe.primitive,Fe.primitive=Ne,Qo=Pt[ce],Pt[ce]=!1,Hi=Pt[Qe],Pt[Qe]=je,Sa=Ii.opacity,Qa=Pt[gt],Pt[gt]=Sa,vn=B.call(this,Re,Ii,bi),da=Pt[qt],Pt[qt]=vn,la=Re.pixelRatio,vo=Pt[at],Pt[at]=la,As=Ii.scale,ps=Pt[Ke],Pt[Ke]=As,co=Ii.scaleFract,mo=Pt[Ct],Pt[Ct]=co,No=Ii.translate,jn=Pt[wt],Pt[wt]=No,Go=Ii.translateFract,Ys=Pt[Mt],Pt[Mt]=Go,qs=Ii.markerTexture,Ns=Pt[Bt],Pt[Bt]=qs,Oa=C.call(this,Re,Ii,bi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Br(Oa)?(ha=!0,Ra=ye.createStream(34962,Oa),$n=Ra.dtype):(Ra=ye.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Br(Oa.buffer)?Ra=ye.createStream(34962,Oa.buffer):Ra=ye.getBuffer(Oa.buffer),$n="type"in Oa?nn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,rn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=x.call(this,Re,Ii,bi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Br(Dn)?(_a=!0,Wa=ye.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ye.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)):(Br(Dn.buffer)?Wa=ye.createStream(34962,Dn.buffer):Wa=ye.getBuffer(Dn.buffer),Wo="type"in Dn?nn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Re,Ii,bi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Br(ho)?(gs=!0,Ea=ye.createStream(34962,ho),rl=Ea.dtype):(Ea=ye.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)):(Br(ho.buffer)?Ea=ye.createStream(34962,ho.buffer):Ea=ye.getBuffer(ho.buffer),rl="type"in ho?nn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=M.call(this,Re,Ii,bi),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,Br(Da)?(vs=!0,tl=ye.createStream(34962,Da),Fa=tl.dtype):(tl=ye.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)):(Br(Da.buffer)?tl=ye.createStream(34962,Da.buffer):tl=ye.getBuffer(Da.buffer),Fa="type"in Da?nn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=ot.state,ot.state=fs,Bs=ot.x,ot.x=cl,Tt=ot.y,ot.y=el,Vt=ot.z,ot.z=Hs,wr=ot.w,ot.w=Ro,mr=ot.buffer,ot.buffer=tl,Fr=ot.size,ot.size=Fs,_i=ot.normalized,ot.normalized=hl,Si=ot.type,ot.type=Fa,Ci=ot.offset,ot.offset=Ms,Ki=ot.stride,ot.stride=jo,Fn=ot.divisor,ot.divisor=Rs,Pi=b.call(this,Re,Ii,bi),di=!1,Li=1,Mi=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Br(Pi)?(di=!0,ia=ye.createStream(34962,Pi),zn=ia.dtype):(ia=ye.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Mi=Pi.constant,Gn=ta=ya=0):(Mi=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Br(Pi.buffer)?ia=ye.createStream(34962,Pi.buffer):ia=ye.getBuffer(Pi.buffer),zn="type"in Pi?nn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=At.state,At.state=Li,xl=At.x,At.x=Mi,Bl=At.y,At.y=Gn,bl=At.z,At.z=ta,eu=At.w,At.w=ya,Zl=At.buffer,At.buffer=ia,Vl=At.size,At.size=pa,ja=At.normalized,At.normalized=va,ns=At.type,At.type=zn,Js=At.offset,At.offset=is,cs=At.stride,At.stride=Cs,sl=At.divisor,At.divisor=Ks,ll=f.call(this,Re,Ii,bi),nl=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Gl=5126,Nl=0,le=0,w=0,Br(ll)?(nl=!0,ms=ye.createStream(34962,ll),Gl=ms.dtype):(ms=ye.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)):(Br(ll.buffer)?ms=ye.createStream(34962,ll.buffer):ms=ye.getBuffer(ll.buffer),Gl="type"in ll?nn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Nl=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=vt.state,vt.state=zl,Q=vt.x,vt.x=Ml,ee=vt.y,vt.y=Rl,ue=vt.z,vt.z=Al,Ue=vt.w,vt.w=Ll,rt=vt.buffer,vt.buffer=ms,mt=vt.size,vt.size=Os,Ft=vt.normalized,vt.normalized=Xl,ir=vt.type,vt.type=Gl,or=vt.offset,vt.offset=Nl,kr=vt.stride,vt.stride=le,Vr=vt.divisor,vt.divisor=w,he=h.call(this,Re,Ii,bi),Me=!1,qe=1,Ve=0,lt=0,it=0,pt=0,Ht=null,nr=0,fr=!1,Ar=5126,Ir=0,ri=0,li=0,Br(he)?(Me=!0,Ht=ye.createStream(34962,he),Ar=Ht.dtype):(Ht=ye.getBuffer(he),Ht?Ar=Ht.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(Ve=he.constant,lt=it=pt=0):(Ve=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,it=he.constant.length>2?he.constant[2]:0,pt=he.constant.length>3?he.constant[3]:0)):(Br(he.buffer)?Ht=ye.createStream(34962,he.buffer):Ht=ye.getBuffer(he.buffer),Ar="type"in he?nn[he.type]:Ht.dtype,fr=!!he.normalized,nr=he.size|0,Ir=he.offset|0,ri=he.stride|0,li=he.divisor|0)),Ei=Je.state,Je.state=qe,hn=Je.x,Je.x=Ve,Zn=Je.y,Je.y=lt,Yn=Je.z,Je.z=it,Ua=Je.w,Je.w=pt,Fo=Je.buffer,Je.buffer=Ht,vl=Je.size,Je.size=nr,Us=Je.normalized,Je.normalized=fr,ml=Je.type,Je.type=Ar,au=Je.offset,Je.offset=Ir,Sl=Je.stride,Je.stride=ri,Yl=Je.divisor,Je.divisor=li,Ol=u.call(this,Re,Ii,bi),ou=!1,Pu=1,nu=0,tu=0,Hu=0,$u=0,Ku=null,Wu=0,ju=!1,sf=5126,_f=0,Qu=0,ef=0,Br(Ol)?(ou=!0,Ku=ye.createStream(34962,Ol),sf=Ku.dtype):(Ku=ye.getBuffer(Ol),Ku?sf=Ku.dtype:"constant"in Ol?(Pu=2,typeof Ol.constant=="number"?(nu=Ol.constant,tu=Hu=$u=0):(nu=Ol.constant.length>0?Ol.constant[0]:0,tu=Ol.constant.length>1?Ol.constant[1]:0,Hu=Ol.constant.length>2?Ol.constant[2]:0,$u=Ol.constant.length>3?Ol.constant[3]:0)):(Br(Ol.buffer)?Ku=ye.createStream(34962,Ol.buffer):Ku=ye.getBuffer(Ol.buffer),sf="type"in Ol?nn[Ol.type]:Ku.dtype,ju=!!Ol.normalized,Wu=Ol.size|0,_f=Ol.offset|0,Qu=Ol.stride|0,ef=Ol.divisor|0)),Z=He.state,He.state=Pu,se=He.x,He.x=nu,Pe=He.y,He.y=tu,Ze=He.z,He.z=Hu,et=He.w,He.w=$u,st=He.buffer,He.buffer=Ku,jt=He.size,He.size=Wu,_t=He.normalized,He.normalized=ju,hr=He.type,He.type=sf,Cr=He.offset,He.offset=_f,zr=He.stride,He.stride=Qu,fi=He.divisor,He.divisor=ef,$r=p.call(this,Re,Ii,bi),Bi=!1,fn=1,mi=0,zi=0,ji=0,pn=0,sn=null,wi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Br($r)?(Bi=!0,sn=ye.createStream(34962,$r),no=sn.dtype):(sn=ye.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(mi=$r.constant,zi=ji=pn=0):(mi=$r.constant.length>0?$r.constant[0]:0,zi=$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)):(Br($r.buffer)?sn=ye.createStream(34962,$r.buffer):sn=ye.getBuffer($r.buffer),no="type"in $r?nn[$r.type]:sn.dtype,xo=!!$r.normalized,wi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=nt.state,nt.state=fn,pu=nt.x,nt.x=mi,Il=nt.y,nt.y=zi,fu=nt.z,nt.z=ji,Xu=nt.w,nt.w=pn,Vu=nt.buffer,nt.buffer=sn,tf=nt.size,nt.size=wi,ds=nt.normalized,nt.normalized=xo,Wl=nt.type,nt.type=no,Au=nt.offset,nt.offset=Xo,Tu=nt.stride,nt.stride=js,lf=nt.divisor,nt.divisor=El,hf=fe.vert,fe.vert=tt,Mf=fe.frag,fe.frag=It,Ie.dirty=!0,xn(Re,Ii,bi),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Vi[0]=en,Vi[1]=ii,Vi[2]=Xi,Vi[3]=aa,Er[0]=Mn,Er[1]=Un,Er[2]=Ga,Er[3]=ma,Oe.blend_enable=oa,ni[0]=ka,ni[1]=so,ni[2]=Kr,ni[3]=Ia,Oe.depth_enable=Yo,gi[0]=ls,gi[1]=$a,gi[2]=fo,gi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ft.destroyStream(Wi),Fe.elements=Ps,Fe.offset=Sn,Fe.count=Ba,Fe.primitive=Ko,Pt[ce]=Qo,Pt[Qe]=Hi,Pt[gt]=Qa,Pt[qt]=da,Pt[at]=vo,Pt[Ke]=ps,Pt[Ct]=mo,Pt[wt]=jn,Pt[Mt]=Ys,Pt[Bt]=Ns,ha&&ye.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=rn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&ye.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&ye.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&ye.destroyStream(tl),ot.state=Is,ot.x=Bs,ot.y=Tt,ot.z=Vt,ot.w=wr,ot.buffer=mr,ot.size=Fr,ot.normalized=_i,ot.type=Si,ot.offset=Ci,ot.stride=Ki,ot.divisor=Fn,di&&ye.destroyStream(ia),At.state=dl,At.x=xl,At.y=Bl,At.z=bl,At.w=eu,At.buffer=Zl,At.size=Vl,At.normalized=ja,At.type=ns,At.offset=Js,At.stride=cs,At.divisor=sl,nl&&ye.destroyStream(ms),vt.state=q,vt.x=Q,vt.y=ee,vt.z=ue,vt.w=Ue,vt.buffer=rt,vt.size=mt,vt.normalized=Ft,vt.type=ir,vt.offset=or,vt.stride=kr,vt.divisor=Vr,Me&&ye.destroyStream(Ht),Je.state=Ei,Je.x=hn,Je.y=Zn,Je.z=Yn,Je.w=Ua,Je.buffer=Fo,Je.size=vl,Je.normalized=Us,Je.type=ml,Je.offset=au,Je.stride=Sl,Je.divisor=Yl,ou&&ye.destroyStream(Ku),He.state=Z,He.x=se,He.y=Pe,He.z=Ze,He.w=et,He.buffer=st,He.size=jt,He.normalized=_t,He.type=hr,He.offset=Cr,He.stride=zr,He.divisor=fi,Bi&&ye.destroyStream(sn),nt.state=Pl,nt.x=pu,nt.y=Il,nt.z=fu,nt.w=Xu,nt.buffer=Vu,nt.size=tf,nt.normalized=ds,nt.type=Wl,nt.offset=Au,nt.stride=Tu,nt.divisor=lf,fe.vert=hf,fe.frag=Mf,Ie.dirty=!0},batch:function(Ii,xn){var bi,Xr,ct,tr,pr,gr,Zr;if(bi=rr.angle_instanced_arrays,Xr=zt.next,Xr!==zt.cur&&(Xr?Ut.bindFramebuffer(36160,Xr.framebuffer):Ut.bindFramebuffer(36160,null),zt.cur=Xr),Ie.dirty){var Ai,en,ii,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;Ai=Oe.dither,Ai!==Ie.dither&&(Ai?Ut.enable(3024):Ut.disable(3024),Ie.dither=Ai),en=pi[0],ii=pi[1],(en!==Di[0]||ii!==Di[1])&&(Ut.blendEquationSeparate(en,ii),Di[0]=en,Di[1]=ii),Xi=Oe.depth_func,Xi!==Ie.depth_func&&(Ut.depthFunc(Xi),Ie.depth_func=Xi),aa=Qi[0],Mn=Qi[1],(aa!==si[0]||Mn!==si[1])&&(Ut.depthRange(aa,Mn),si[0]=aa,si[1]=Mn),Un=Oe.depth_mask,Un!==Ie.depth_mask&&(Ut.depthMask(Un),Ie.depth_mask=Un),Ga=Ti[0],ma=Ti[1],oa=Ti[2],ka=Ti[3],(Ga!==Ni[0]||ma!==Ni[1]||oa!==Ni[2]||ka!==Ni[3])&&(Ut.colorMask(Ga,ma,oa,ka),Ni[0]=Ga,Ni[1]=ma,Ni[2]=oa,Ni[3]=ka),so=Oe.cull_enable,so!==Ie.cull_enable&&(so?Ut.enable(2884):Ut.disable(2884),Ie.cull_enable=so),Kr=Oe.cull_face,Kr!==Ie.cull_face&&(Ut.cullFace(Kr),Ie.cull_face=Kr),Ia=Oe.frontFace,Ia!==Ie.frontFace&&(Ut.frontFace(Ia),Ie.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Ie.lineWidth&&(Ut.lineWidth(Yo),Ie.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Ie.polygonOffset_enable&&(fa?Ut.enable(32823):Ut.disable(32823),Ie.polygonOffset_enable=fa),kn=Rt[0],Ta=Rt[1],(kn!==yt[0]||Ta!==yt[1])&&(Ut.polygonOffset(kn,Ta),yt[0]=kn,yt[1]=Ta),ys=Oe.sample_alpha,ys!==Ie.sample_alpha&&(ys?Ut.enable(32926):Ut.disable(32926),Ie.sample_alpha=ys),uo=Oe.sample_enable,uo!==Ie.sample_enable&&(uo?Ut.enable(32928):Ut.disable(32928),Ie.sample_enable=uo),ls=Gt[0],$a=Gt[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ut.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Ie.stencil_mask&&(Ut.stencilMask(fo),Ie.stencil_mask=fo),mn=xr[0],ra=xr[1],wa=xr[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ut.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!==Or[0]||Co!==Or[1]||Po!==Or[2]||Wi!==Or[3])&&(Ut.stencilOpSeparate(ws,Co,Po,Wi),Or[0]=ws,Or[1]=Co,Or[2]=Po,Or[3]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ut.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ut.blendColor(0,0,0,1),Rr[0]=0,Rr[1]=0,Rr[2]=0,Rr[3]=1,Yt?Ut.enable(3042):Ut.disable(3042),Ie.blend_enable=Yt,Ut.blendFuncSeparate(770,771,773,1),$i[0]=770,$i[1]=771,$i[2]=773,$i[3]=1,cr?Ut.enable(2929):Ut.disable(2929),Ie.depth_enable=cr,_r?Ut.enable(3089):Ut.disable(3089),Ie.scissor_enable=_r,yr?Ut.enable(2960):Ut.disable(2960),Ie.stencil_enable=yr,ct=Ie.profile,ct&&(tr=performance.now(),r.count+=xn),Ut.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(dt.setVAO(null),Ut.uniform1i(P.location,!1),Ut.uniform1i(U.location,G.bind()),ao=Fe.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)):(Br(co.buffer)?Ns=ye.createStream(34962,co.buffer):Ns=ye.getBuffer(co.buffer),Vs="type"in co?nn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=pe[wo],No===1?(Ra.buffer||Ut.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ut.bindBuffer(34962,Ns.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ut.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ut.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Re,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,rn=0,Pa=0,to=0,Br(un)?($n=!0,eo=ye.createStream(34962,un),Na=eo.dtype):(eo=ye.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Br(un.buffer)?eo=ye.createStream(34962,un.buffer):eo=ye.getBuffer(un.buffer),Na="type"in un?nn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,rn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=pe[yo],Ka===1?(Jo.buffer||Ut.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==rn||Jo.stride!==Pa)&&(Ut.bindBuffer(34962,eo.buffer),Ut.vertexAttribPointer(yo,Ao,Na,es,Pa,rn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=rn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ut.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ut.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Re,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Br(Dn)?(_a=!0,Wa=ye.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ye.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)):(Br(Dn.buffer)?Wa=ye.createStream(34962,Dn.buffer):Wa=ye.getBuffer(Dn.buffer),Wo="type"in Dn?nn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=pe[ko],Ws===1?(oo.buffer||Ut.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ut.bindBuffer(34962,Wa.buffer),Ut.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ut.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ut.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Re,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,Br(ea)?(rs=!0,Ma=ye.createStream(34962,ea),gs=Ma.dtype):(Ma=ye.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)):(Br(ea.buffer)?Ma=ye.createStream(34962,ea.buffer):Ma=ye.getBuffer(ea.buffer),gs="type"in ea?nn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=_.location,ks=pe[xs],$s===1?(ks.buffer||Ut.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ut.bindBuffer(34962,Ma.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ut.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ut.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Re,Zr,gr),Oo=!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,Br(Jn)?(Oo=!0,Aa=ye.createStream(34962,Jn),Ss=Aa.dtype):(Aa=ye.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)):(Br(Jn.buffer)?Aa=ye.createStream(34962,Jn.buffer):Aa=ye.getBuffer(Jn.buffer),Ss="type"in Jn?nn[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=pe[qo],rl===1?(zo.buffer||Ut.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ut.bindBuffer(34962,Aa.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ut.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ut.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=C.call(this,Re,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,Br(Io)?(Da=!0,Ro=ye.createStream(34962,Io),hl=Ro.dtype):(Ro=ye.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)):(Br(Io.buffer)?Ro=ye.createStream(34962,Io.buffer):Ro=ye.getBuffer(Io.buffer),hl="type"in Io?nn[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=pe[Rs],vs===1?(Is.buffer||Ut.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ut.bindBuffer(34962,Ro.buffer),Ut.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ut.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ut.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),Tt=T.call(this,Re,Zr,gr),Vt=!1,wr=1,mr=0,Fr=0,_i=0,Si=0,Ci=null,Ki=0,Fn=!1,Pi=5126,di=0,Li=0,Mi=0,Br(Tt)?(Vt=!0,Ci=ye.createStream(34962,Tt),Pi=Ci.dtype):(Ci=ye.getBuffer(Tt),Ci?Pi=Ci.dtype:"constant"in Tt?(wr=2,typeof Tt.constant=="number"?(mr=Tt.constant,Fr=_i=Si=0):(mr=Tt.constant.length>0?Tt.constant[0]:0,Fr=Tt.constant.length>1?Tt.constant[1]:0,_i=Tt.constant.length>2?Tt.constant[2]:0,Si=Tt.constant.length>3?Tt.constant[3]:0)):(Br(Tt.buffer)?Ci=ye.createStream(34962,Tt.buffer):Ci=ye.getBuffer(Tt.buffer),Pi="type"in Tt?nn[Tt.type]:Ci.dtype,Fn=!!Tt.normalized,Ki=Tt.size|0,di=Tt.offset|0,Li=Tt.stride|0,Mi=Tt.divisor|0)),Gn=L.location,ta=pe[Gn],wr===1?(ta.buffer||Ut.enableVertexAttribArray(Gn),ya=Ki||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==Ci||ta.normalized!==Fn||ta.offset!==di||ta.stride!==Li)&&(Ut.bindBuffer(34962,Ci.buffer),Ut.vertexAttribPointer(Gn,ya,Pi,Fn,Li,di),ta.type=Pi,ta.size=ya,ta.buffer=Ci,ta.normalized=Fn,ta.offset=di,ta.stride=Li),ta.divisor!==Mi&&(pr.vertexAttribDivisorANGLE(Gn,Mi),ta.divisor=Mi)):(ta.buffer&&(Ut.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==mr||ta.y!==Fr||ta.z!==_i||ta.w!==Si)&&(Ut.vertexAttrib4f(Gn,mr,Fr,_i,Si),ta.x=mr,ta.y=Fr,ta.z=_i,ta.w=Si)),ia=x.call(this,Re,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,Br(ia)?(pa=!0,dl=ye.createStream(34962,ia),bl=dl.dtype):(dl=ye.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)):(Br(ia.buffer)?dl=ye.createStream(34962,ia.buffer):dl=ye.getBuffer(ia.buffer),bl="type"in ia?nn[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=pe[ja],va===1?(ns.buffer||Ut.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Bl||ns.offset!==eu||ns.stride!==Zl)&&(Ut.bindBuffer(34962,dl.buffer),Ut.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&&(pr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Ut.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ut.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=M.call(this,Re,Zr,gr),sl=!1,ll=1,nl=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Gl=0,Nl=0,Br(cs)?(sl=!0,Al=ye.createStream(34962,cs),Os=Al.dtype):(Al=ye.getBuffer(cs),Al?Os=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)):(Br(cs.buffer)?Al=ye.createStream(34962,cs.buffer):Al=ye.getBuffer(cs.buffer),Os="type"in cs?nn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Nl=cs.divisor|0)),le=m.location,w=pe[le],ll===1?(w.buffer||Ut.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Ut.bindBuffer(34962,Al.buffer),Ut.vertexAttribPointer(le,q,Os,ms,Gl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Nl&&(pr.vertexAttribDivisorANGLE(le,Nl),w.divisor=Nl)):(w.buffer&&(Ut.disableVertexAttribArray(le),w.buffer=null),(w.x!==nl||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ut.vertexAttrib4f(le,nl,zl,Ml,Rl),w.x=nl,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ut.uniform1f(A.location,Q)),ue=B.call(this,Re,Zr,gr),Ue=ue[0],mt=ue[1],(!gr||rt!==Ue||Ft!==mt)&&(rt=Ue,Ft=mt,Ut.uniform2f(F.location,Ue,mt)),ir=Re.pixelRatio,(!gr||or!==ir)&&(or=ir,Ut.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Me=kr[1],(!gr||he!==Vr||qe!==Me)&&(he=Vr,qe=Me,Ut.uniform2f(W.location,Vr,Me)),Ve=Zr.scaleFract,lt=Ve[0],pt=Ve[1],(!gr||it!==lt||Ht!==pt)&&(it=lt,Ht=pt,Ut.uniform2f(N.location,lt,pt)),nr=Zr.translate,fr=nr[0],Ir=nr[1],(!gr||Ar!==fr||ri!==Ir)&&(Ar=fr,ri=Ir,Ut.uniform2f(H.location,fr,Ir)),li=Zr.translateFract,Ei=li[0],Zn=li[1],(!gr||hn!==Ei||Yn!==Zn)&&(hn=Ei,Yn=Zn,Ut.uniform2f(re.location,Ei,Zn)),Ua=Zr.elements,Fo=null,vl=Br(Ua),vl?Fo=ft.createStream(Ua):Fo=ft.getElements(Ua),Fo&&Ut.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ut.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ut.drawArrays(0,Us,ml)),Re.viewportWidth=Qa,Re.viewportHeight=vn,mo&&ye.destroyStream(Ns),$n&&ye.destroyStream(eo),_a&&ye.destroyStream(Wa),rs&&ye.destroyStream(Ma),Oo&&ye.destroyStream(Aa),Da&&ye.destroyStream(Ro),Vt&&ye.destroyStream(Ci),pa&&ye.destroyStream(dl),sl&&ye.destroyStream(Al),vl&&ft.destroyStream(Fo))}G.unbind(),Ie.dirty=!0,dt.setVAO(null),ct&&(r.cpuTime+=performance.now()-tr)}}}});var q8=Te((abr,l7e)=>{l7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je){"use strict";var He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi;return He=t.gl,nt=t.context,tt=t.strings,It=t.next,Yt=t.current,cr=t.draw,_r=t.elements,yr=t.buffer,Ut=t.shader,Re=t.attributes,be=t.vao,Oe=t.uniforms,Ie=t.framebuffer,Fe=t.extensions,ft=t.timer,ye=t.isBufferArgs,fe=It.blend_color,pe=Yt.blend_color,dt=It.blend_equation,Pt=Yt.blend_equation,zt=It.blend_func,rr=Yt.blend_func,Gr=It.depth_range,Br=Yt.depth_range,Er=It.colorMask,Rr=Yt.colorMask,pi=It.polygonOffset_offset,Di=Yt.polygonOffset_offset,ni=It.sample_coverage,$i=Yt.sample_coverage,Qi=It.stencil_func,si=Yt.stencil_func,Ti=It.stencil_opFront,Ni=Yt.stencil_opFront,Rt=It.stencil_opBack,yt=Yt.stencil_opBack,Gt=It.scissor_box,Wt=Yt.scissor_box,xr=It.viewport,Lr=Yt.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},Or={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},jr={add:32774,subtract:32778,"reverse subtract":32779},gi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ki={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,tn={},tn.buffer=i,tn.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Fi){var an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=Fe.angle_instanced_arrays,nn=Ie.next,nn!==Ie.cur&&(nn?He.bindFramebuffer(36160,nn.framebuffer):He.bindFramebuffer(36160,null),Ie.cur=nn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=It.dither,Ds!==Yt.dither&&(Ds?He.enable(3024):He.disable(3024),Yt.dither=Ds),fl=It.depth_func,fl!==Yt.depth_func&&(He.depthFunc(fl),Yt.depth_func=fl),as=Gr[0],Ma=Gr[1],(as!==Br[0]||Ma!==Br[1])&&(He.depthRange(as,Ma),Br[0]=as,Br[1]=Ma),Qs=It.depth_mask,Qs!==Yt.depth_mask&&(He.depthMask(Qs),Yt.depth_mask=Qs),ho=Er[0],gs=Er[1],Vo=Er[2],Do=Er[3],(ho!==Rr[0]||gs!==Rr[1]||Vo!==Rr[2]||Do!==Rr[3])&&(He.colorMask(ho,gs,Vo,Do),Rr[0]=ho,Rr[1]=gs,Rr[2]=Vo,Rr[3]=Do),Lo=It.cull_enable,Lo!==Yt.cull_enable&&(Lo?He.enable(2884):He.disable(2884),Yt.cull_enable=Lo),xs=It.cull_face,xs!==Yt.cull_face&&(He.cullFace(xs),Yt.cull_face=xs),ks=It.frontFace,ks!==Yt.frontFace&&(He.frontFace(ks),Yt.frontFace=ks),Ea=It.lineWidth,Ea!==Yt.lineWidth&&(He.lineWidth(Ea),Yt.lineWidth=Ea),Jn=It.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?He.enable(32823):He.disable(32823),Yt.polygonOffset_enable=Jn),Oo=pi[0],rl=pi[1],(Oo!==Di[0]||rl!==Di[1])&&(He.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=It.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?He.enable(32926):He.disable(32926),Yt.sample_alpha=Gs),bs=It.sample_enable,bs!==Yt.sample_enable&&(bs?He.enable(32928):He.disable(32928),Yt.sample_enable=bs),zs=ni[0],$o=ni[1],(zs!==$i[0]||$o!==$i[1])&&(He.sampleCoverage(zs,$o),$i[0]=zs,$i[1]=$o),Aa=It.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?He.enable(2960):He.disable(2960),Yt.stencil_enable=Aa),os=It.stencil_mask,os!==Yt.stencil_mask&&(He.stencilMask(os),Yt.stencil_mask=os),_l=Qi[0],Ss=Qi[1],po=Qi[2],(_l!==si[0]||Ss!==si[1]||po!==si[2])&&(He.stencilFunc(_l,Ss,po),si[0]=_l,si[1]=Ss,si[2]=po),go=Ti[0],ss=Ti[1],qo=Ti[2],zo=Ti[3],(go!==Ni[0]||ss!==Ni[1]||qo!==Ni[2]||zo!==Ni[3])&&(He.stencilOpSeparate(go,ss,qo,zo),Ni[0]=go,Ni[1]=ss,Ni[2]=qo,Ni[3]=zo),io=Rt[0],Io=Rt[1],Da=Rt[2],vs=Rt[3],(io!==yt[0]||Io!==yt[1]||Da!==yt[2]||vs!==yt[3])&&(He.stencilOpSeparate(io,Io,Da,vs),yt[0]=io,yt[1]=Io,yt[2]=Da,yt[3]=vs)}Ri=Fi.viewport,Ii=Ri.x|0,xn=Ri.y|0,bi="width"in Ri?Ri.width|0:nt.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:nt.framebufferHeight-xn,ct=nt.viewportWidth,nt.viewportWidth=bi,tr=nt.viewportHeight,nt.viewportHeight=Xr,He.viewport(Ii,xn,bi,Xr),Lr[0]=Ii,Lr[1]=xn,Lr[2]=bi,Lr[3]=Xr,He.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,s?He.enable(3042):He.disable(3042),Yt.blend_enable=s,He.blendEquationSeparate(32774,32774),Pt[0]=32774,Pt[1]=32774,He.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?He.enable(2929):He.disable(2929),Yt.depth_enable=u,pr=Fi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:nt.framebufferWidth-gr,en="height"in pr?pr.height|0:nt.framebufferHeight-Zr,He.scissor(gr,Zr,Ai,en),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=en,l?He.enable(3089):He.disable(3089),Yt.scissor_enable=l,ii=Yt.profile,ii&&(Xi=performance.now(),r.count++),He.useProgram(f.program),aa=Fe.angle_instanced_arrays,be.setVAO(null),Mn=h.location,Un=Re[Mn],Un.buffer||He.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,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,ye(ti)?(ma=!0,Yo=yr.createStream(34962,ti),Ta=Yo.dtype):(Yo=yr.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)):(ye(ti.buffer)?Yo=yr.createStream(34962,ti.buffer):Yo=yr.getBuffer(ti.buffer),Ta="type"in ti?ki[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=Re[$a],oa===1?(fo.buffer||He.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(He.bindBuffer(34962,Yo.buffer),He.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&&(He.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(He.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=_.location,wa=Re[ra],wa.buffer||He.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,Fi,0),oi.offset=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Hi=0,Sa=0,ye(oi)?(Co=!0,Sn=yr.createStream(34962,oi),Ko=Sn.dtype):(Sn=yr.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)):(ye(oi.buffer)?Sn=yr.createStream(34962,oi.buffer):Sn=yr.getBuffer(oi.buffer),Ko="type"in oi?ki[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Hi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Re[Qa],Po===1?(vn.buffer||He.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Hi)&&(He.bindBuffer(34962,Sn.buffer),He.vertexAttribPointer(Qa,da,Ko,Ba,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(He.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(He.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=C.location,vo=Re[la],vo.buffer||He.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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,nt,Fi,0),tn.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,ye(tn)?(ps=!0,Ys=yr.createStream(34962,tn),Oa=Ys.dtype):(Ys=yr.getBuffer(tn),Ys?Oa=Ys.dtype:"constant"in tn?(co=2,typeof tn.constant=="number"?(mo=tn.constant,No=jn=Go=0):(mo=tn.constant.length>0?tn.constant[0]:0,No=tn.constant.length>1?tn.constant[1]:0,jn=tn.constant.length>2?tn.constant[2]:0,Go=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?Ys=yr.createStream(34962,tn.buffer):Ys=yr.getBuffer(tn.buffer),Oa="type"in tn?ki[tn.type]:Ys.dtype,Ns=!!tn.normalized,qs=tn.size|0,ha=tn.offset|0,Vs=tn.stride|0,Ya=tn.divisor|0)),_n=T.location,Vn=Re[_n],co===1?(Vn.buffer||He.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(He.bindBuffer(34962,Ys.buffer),He.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,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&&(He.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(He.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,nt,Fi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,rn=0,ye(Yr)?(Xn=!0,Ja=yr.createStream(34962,Yr),sa=Ja.dtype):(Ja=yr.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=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)):(ye(Yr.buffer)?Ja=yr.createStream(34962,Yr.buffer):Ja=yr.getBuffer(Yr.buffer),sa="type"in Yr?ki[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,rn=Yr.divisor|0)),Pa=x.location,to=Re[Pa],un===1?(to.buffer||He.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(He.bindBuffer(34962,Ja.buffer),He.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!==rn&&(aa.vertexAttribDivisorANGLE(Pa,rn),to.divisor=rn)):(to.buffer&&(He.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(He.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Fi.capSize,He.uniform1f(k.location,Jo),Ao=Fi.lineWidth,He.uniform1f(M.location,Ao),Dn=Fi.opacity,He.uniform1f(m.location,Dn),_a=Fi.scale,Ws=_a[0],Ca=_a[1],He.uniform2f(P.location,Ws,Ca),Es=Fi.scaleFract,Ts=Es[0],Ho=Es[1],He.uniform2f(A.location,Ts,Ho),Wa=Fi.translate,To=Wa[0],ts=Wa[1],He.uniform2f(F.location,To,ts),Wo=Fi.translateFract,qa=Wo[0],ln=Wo[1],He.uniform2f(B.location,qa,ln),Bo=G.call(this,nt,Fi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],He.uniform4f(U.location,ko,oo,za,ea),rs=cr.elements,rs?He.bindBuffer(34963,rs.buffer.buffer):be.currentVAO&&(rs=_r.getElements(be.currentVAO.elements),rs&&He.bindBuffer(34963,rs.buffer.buffer)),$s=cr.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?He.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):He.drawArrays(4,$s,36)),Yt.dirty=!0,be.setVAO(null),nt.viewportWidth=ct,nt.viewportHeight=tr,ii&&(r.cpuTime+=performance.now()-Xi),ma&&yr.destroyStream(Yo),Co&&yr.destroyStream(Sn),ps&&yr.destroyStream(Ys),Xn&&yr.destroyStream(Ja)},scope:function(Fi,an,nn){var Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,bi="width"in Ri?Ri.width|0:nt.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:nt.framebufferHeight-xn,ct=nt.viewportWidth,nt.viewportWidth=bi,tr=nt.viewportHeight,nt.viewportHeight=Xr,pr=xr[0],xr[0]=Ii,gr=xr[1],xr[1]=xn,Zr=xr[2],xr[2]=bi,Ai=xr[3],xr[3]=Xr,en=fe[0],fe[0]=j,ii=fe[1],fe[1]=W,Xi=fe[2],fe[2]=N,aa=fe[3],fe[3]=H,Mn=It.blend_enable,It.blend_enable=re,Un=dt[0],dt[0]=ae,Ga=dt[1],dt[1]=ge,ma=zt[0],zt[0]=ze,oa=zt[1],zt[1]=Le,ka=zt[2],zt[2]=de,so=zt[3],zt[3]=te,Kr=It.depth_enable,It.depth_enable=ke,Ia=Fi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:nt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:nt.framebufferHeight-fa,ys=Gt[0],Gt[0]=Yo,uo=Gt[1],Gt[1]=fa,ls=Gt[2],Gt[2]=kn,$a=Gt[3],Gt[3]=Ta,fo=It.scissor_enable,It.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=cr.count,cr.count=Se,ws=Fi.count,Co=cr.instances,cr.instances=ws,Po=cr.primitive,cr.primitive=Ge,Wi=Fi.range,gn=Oe[De],Oe[De]=Wi,Ps=Fi.lineWidth,Ha=Oe[xe],Oe[xe]=Ps,Sn=Fi.capSize,ao=Oe[Ne],Oe[Ne]=Sn,Ba=Fi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Fi.scale,Hi=Oe[je],Oe[je]=Qo,Sa=Fi.translate,Qa=Oe[Qe],Oe[Qe]=Sa,vn=Fi.scaleFract,da=Oe[gt],Oe[gt]=vn,la=Fi.translateFract,vo=Oe[qt],Oe[qt]=la,As=G.call(this,nt,Fi,nn),ps=Oe[at],Oe[at]=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,Oa=Ke.type,Ke.type=5126,ha=Ke.offset,Ke.offset=0,Vs=Ke.stride,Ke.stride=24,Ya=Ke.divisor,Ke.divisor=0,_n=Ct.state,Ct.state=1,Vn=Ct.x,Ct.x=0,wo=Ct.y,Ct.y=0,Ra=Ct.z,Ct.z=0,Xn=Ct.w,Ct.w=0,un=Ct.buffer,Ct.buffer=c,$n=Ct.size,Ct.size=0,Ka=Ct.normalized,Ct.normalized=!1,qn=Ct.type,Ct.type=5126,Eo=Ct.offset,Ct.offset=8,Ja=Ct.stride,Ct.stride=24,lo=Ct.divisor,Ct.divisor=0,eo=wt.state,wt.state=1,sa=wt.x,wt.x=0,es=wt.y,wt.y=0,Na=wt.z,wt.z=0,rn=wt.w,wt.w=0,Pa=wt.buffer,wt.buffer=c,to=wt.size,wt.size=0,yo=wt.normalized,wt.normalized=!1,Jo=wt.type,wt.type=5126,Ao=wt.offset,wt.offset=16,Dn=wt.stride,wt.stride=24,_a=wt.divisor,wt.divisor=0,Ws=d.call(this,nt,Fi,nn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ye(ti)?(Ca=!0,ts=yr.createStream(34962,ti),ln=ts.dtype):(ts=yr.getBuffer(ti),ts?ln=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)):(ye(ti.buffer)?ts=yr.createStream(34962,ti.buffer):ts=yr.getBuffer(ti.buffer),ln="type"in ti?ki[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=Mt.state,Mt.state=Es,ea=Mt.x,Mt.x=Ts,rs=Mt.y,Mt.y=Ho,$s=Mt.z,Mt.z=Wa,us=Mt.w,Mt.w=To,Ds=Mt.buffer,Mt.buffer=ts,fl=Mt.size,Mt.size=Wo,as=Mt.normalized,Mt.normalized=qa,Ma=Mt.type,Mt.type=ln,Qs=Mt.offset,Mt.offset=Bo,ho=Mt.stride,Mt.stride=ko,gs=Mt.divisor,Mt.divisor=oo,Vo=E.call(this,nt,Fi,nn),tn.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,ye(tn)?(Do=!0,Oo=yr.createStream(34962,tn),bs=Oo.dtype):(Oo=yr.getBuffer(tn),Oo?bs=Oo.dtype:"constant"in tn?(Lo=2,typeof tn.constant=="number"?(xs=tn.constant,ks=Ea=Jn=0):(xs=tn.constant.length>0?tn.constant[0]:0,ks=tn.constant.length>1?tn.constant[1]:0,Ea=tn.constant.length>2?tn.constant[2]:0,Jn=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?Oo=yr.createStream(34962,tn.buffer):Oo=yr.getBuffer(tn.buffer),bs="type"in tn?ki[tn.type]:Oo.dtype,Gs=!!tn.normalized,rl=tn.size|0,zs=tn.offset|0,$o=tn.stride|0,Aa=tn.divisor|0)),os=Bt.state,Bt.state=Lo,_l=Bt.x,Bt.x=xs,Ss=Bt.y,Bt.y=ks,po=Bt.z,Bt.z=Ea,go=Bt.w,Bt.w=Jn,ss=Bt.buffer,Bt.buffer=Oo,qo=Bt.size,Bt.size=rl,zo=Bt.normalized,Bt.normalized=Gs,io=Bt.type,Bt.type=bs,Io=Bt.offset,Bt.offset=zs,Da=Bt.stride,Bt.stride=$o,vs=Bt.divisor,Bt.divisor=Aa,fs=L.call(this,nt,Fi,nn),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,Bs=0,ye(Yr)?(cl=!0,hl=yr.createStream(34962,Yr),jo=hl.dtype):(hl=yr.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)):(ye(Yr.buffer)?hl=yr.createStream(34962,Yr.buffer):hl=yr.getBuffer(Yr.buffer),jo="type"in Yr?ki[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),Tt=Zt.state,Zt.state=el,Vt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,mr=Zt.z,Zt.z=tl,Fr=Zt.w,Zt.w=Fs,_i=Zt.buffer,Zt.buffer=hl,Si=Zt.size,Zt.size=Fa,Ci=Zt.normalized,Zt.normalized=Ms,Ki=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,di=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,nt,Fi,nn),oi.offset=Li,Mi=!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,ye(oi)?(Mi=!0,va=yr.createStream(34962,oi),Cs=va.dtype):(va=yr.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)):(ye(oi.buffer)?va=yr.createStream(34962,oi.buffer):va=yr.getBuffer(oi.buffer),Cs="type"in oi?ki[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Bl=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Vl=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,nl=Et.divisor,Et.divisor=xl,zl=Ut.vert,Ut.vert=Ae,Ml=Ut.frag,Ut.frag=ot,Yt.dirty=!0,an(nt,Fi,nn),nt.viewportWidth=ct,nt.viewportHeight=tr,xr[0]=pr,xr[1]=gr,xr[2]=Zr,xr[3]=Ai,fe[0]=en,fe[1]=ii,fe[2]=Xi,fe[3]=aa,It.blend_enable=Mn,dt[0]=Un,dt[1]=Ga,zt[0]=ma,zt[1]=oa,zt[2]=ka,zt[3]=so,It.depth_enable=Kr,Gt[0]=ys,Gt[1]=uo,Gt[2]=ls,Gt[3]=$a,It.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),cr.count=wa,cr.instances=Co,cr.primitive=Po,Oe[De]=gn,Oe[xe]=Ha,Oe[Ne]=ao,Oe[ce]=Ko,Oe[je]=Hi,Oe[Qe]=Qa,Oe[gt]=da,Oe[qt]=vo,Oe[at]=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=Oa,Ke.offset=ha,Ke.stride=Vs,Ke.divisor=Ya,Ct.state=_n,Ct.x=Vn,Ct.y=wo,Ct.z=Ra,Ct.w=Xn,Ct.buffer=un,Ct.size=$n,Ct.normalized=Ka,Ct.type=qn,Ct.offset=Eo,Ct.stride=Ja,Ct.divisor=lo,wt.state=eo,wt.x=sa,wt.y=es,wt.z=Na,wt.w=rn,wt.buffer=Pa,wt.size=to,wt.normalized=yo,wt.type=Jo,wt.offset=Ao,wt.stride=Dn,wt.divisor=_a,Ca&&yr.destroyStream(ts),Mt.state=za,Mt.x=ea,Mt.y=rs,Mt.z=$s,Mt.w=us,Mt.buffer=Ds,Mt.size=fl,Mt.normalized=as,Mt.type=Ma,Mt.offset=Qs,Mt.stride=ho,Mt.divisor=gs,Do&&yr.destroyStream(Oo),Bt.state=os,Bt.x=_l,Bt.y=Ss,Bt.z=po,Bt.w=go,Bt.buffer=ss,Bt.size=qo,Bt.normalized=zo,Bt.type=io,Bt.offset=Io,Bt.stride=Da,Bt.divisor=vs,cl&&yr.destroyStream(hl),Zt.state=Tt,Zt.x=Vt,Zt.y=wr,Zt.z=mr,Zt.w=Fr,Zt.buffer=_i,Zt.size=Si,Zt.normalized=Ci,Zt.type=Ki,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=di,Mi&&yr.destroyStream(va),Et.state=Bl,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Vl,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=nl,Ut.vert=zl,Ut.frag=Ml,Yt.dirty=!0},batch:function(Fi,an){var nn,Ri,Ii,xn,bi,Xr,ct;if(nn=Fe.angle_instanced_arrays,Ri=Ie.next,Ri!==Ie.cur&&(Ri?He.bindFramebuffer(36160,Ri.framebuffer):He.bindFramebuffer(36160,null),Ie.cur=Ri),Yt.dirty){var tr,pr,gr,Zr,Ai,en,ii,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;tr=It.dither,tr!==Yt.dither&&(tr?He.enable(3024):He.disable(3024),Yt.dither=tr),pr=It.depth_func,pr!==Yt.depth_func&&(He.depthFunc(pr),Yt.depth_func=pr),gr=Gr[0],Zr=Gr[1],(gr!==Br[0]||Zr!==Br[1])&&(He.depthRange(gr,Zr),Br[0]=gr,Br[1]=Zr),Ai=It.depth_mask,Ai!==Yt.depth_mask&&(He.depthMask(Ai),Yt.depth_mask=Ai),en=Er[0],ii=Er[1],Xi=Er[2],aa=Er[3],(en!==Rr[0]||ii!==Rr[1]||Xi!==Rr[2]||aa!==Rr[3])&&(He.colorMask(en,ii,Xi,aa),Rr[0]=en,Rr[1]=ii,Rr[2]=Xi,Rr[3]=aa),Mn=It.cull_enable,Mn!==Yt.cull_enable&&(Mn?He.enable(2884):He.disable(2884),Yt.cull_enable=Mn),Un=It.cull_face,Un!==Yt.cull_face&&(He.cullFace(Un),Yt.cull_face=Un),Ga=It.frontFace,Ga!==Yt.frontFace&&(He.frontFace(Ga),Yt.frontFace=Ga),ma=It.lineWidth,ma!==Yt.lineWidth&&(He.lineWidth(ma),Yt.lineWidth=ma),oa=It.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?He.enable(32823):He.disable(32823),Yt.polygonOffset_enable=oa),ka=pi[0],so=pi[1],(ka!==Di[0]||so!==Di[1])&&(He.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=It.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?He.enable(32926):He.disable(32926),Yt.sample_alpha=Kr),Ia=It.sample_enable,Ia!==Yt.sample_enable&&(Ia?He.enable(32928):He.disable(32928),Yt.sample_enable=Ia),Yo=ni[0],fa=ni[1],(Yo!==$i[0]||fa!==$i[1])&&(He.sampleCoverage(Yo,fa),$i[0]=Yo,$i[1]=fa),kn=It.stencil_enable,kn!==Yt.stencil_enable&&(kn?He.enable(2960):He.disable(2960),Yt.stencil_enable=kn),Ta=It.stencil_mask,Ta!==Yt.stencil_mask&&(He.stencilMask(Ta),Yt.stencil_mask=Ta),ys=Qi[0],uo=Qi[1],ls=Qi[2],(ys!==si[0]||uo!==si[1]||ls!==si[2])&&(He.stencilFunc(ys,uo,ls),si[0]=ys,si[1]=uo,si[2]=ls),$a=Ti[0],fo=Ti[1],mn=Ti[2],ra=Ti[3],($a!==Ni[0]||fo!==Ni[1]||mn!==Ni[2]||ra!==Ni[3])&&(He.stencilOpSeparate($a,fo,mn,ra),Ni[0]=$a,Ni[1]=fo,Ni[2]=mn,Ni[3]=ra),wa=Rt[0],ws=Rt[1],Co=Rt[2],Po=Rt[3],(wa!==yt[0]||ws!==yt[1]||Co!==yt[2]||Po!==yt[3])&&(He.stencilOpSeparate(wa,ws,Co,Po),yt[0]=wa,yt[1]=ws,yt[2]=Co,yt[3]=Po)}He.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,At?He.enable(3042):He.disable(3042),Yt.blend_enable=At,He.blendEquationSeparate(32774,32774),Pt[0]=32774,Pt[1]=32774,He.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,vt?He.enable(2929):He.disable(2929),Yt.depth_enable=vt,Je?He.enable(3089):He.disable(3089),Yt.scissor_enable=Je,Ii=Yt.profile,Ii&&(xn=performance.now(),r.count+=an),He.useProgram(f.program),bi=Fe.angle_instanced_arrays;var Wi,gn,Ps,Ha,Sn,ao,Ba,Ko;for(be.setVAO(null),Wi=h.location,gn=Re[Wi],gn.buffer||He.enableVertexAttribArray(Wi),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Wi,0),gn.divisor=0),Ps=_.location,Ha=Re[Ps],Ha.buffer||He.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=C.location,ao=Re[Sn],ao.buffer||He.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(He.bindBuffer(34962,c.buffer),He.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&&(bi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=cr.elements,Ba?He.bindBuffer(34963,Ba.buffer.buffer):be.currentVAO&&(Ba=_r.getElements(be.currentVAO.elements),Ba&&He.bindBuffer(34963,Ba.buffer.buffer)),Ko=cr.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,Oa=ti.constant.length>3?ti.constant[3]:0)):(ye(ti.buffer)?ha=yr.createStream(34962,ti.buffer):ha=yr.getBuffer(ti.buffer),_n="type"in ti?ki[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,un=Re[Xn],Go===1?(un.buffer||He.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(He.bindBuffer(34962,ha.buffer),He.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(bi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(He.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(He.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,nt,ct,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,rn=!1,Pa=5126,to=0,yo=0,Jo=0,ye(oi)?(qn=!0,es=yr.createStream(34962,oi),Pa=es.dtype):(es=yr.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)):(ye(oi.buffer)?es=yr.createStream(34962,oi.buffer):es=yr.getBuffer(oi.buffer),Pa="type"in oi?ki[oi.type]:es.dtype,rn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Re[Ao],Eo===1?(Dn.buffer||He.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==rn||Dn.offset!==to||Dn.stride!==yo)&&(He.bindBuffer(34962,es.buffer),He.vertexAttribPointer(Ao,_a,Pa,rn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=rn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(bi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(He.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(He.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,nt,ct,Xr),tn.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ye(tn)?(Ca=!0,ts=yr.createStream(34962,tn),ln=ts.dtype):(ts=yr.getBuffer(tn),ts?ln=ts.dtype:"constant"in tn?(Es=2,typeof tn.constant=="number"?(Ts=tn.constant,Ho=Wa=To=0):(Ts=tn.constant.length>0?tn.constant[0]:0,Ho=tn.constant.length>1?tn.constant[1]:0,Wa=tn.constant.length>2?tn.constant[2]:0,To=tn.constant.length>3?tn.constant[3]:0)):(ye(tn.buffer)?ts=yr.createStream(34962,tn.buffer):ts=yr.getBuffer(tn.buffer),ln="type"in tn?ki[tn.type]:ts.dtype,qa=!!tn.normalized,Wo=tn.size|0,Bo=tn.offset|0,ko=tn.stride|0,oo=tn.divisor|0)),za=T.location,ea=Re[za],Es===1?(ea.buffer||He.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(He.bindBuffer(34962,ts.buffer),He.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(bi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(He.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(He.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,nt,ct,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,ye(Yr)?(us=!0,ho=yr.createStream(34962,Yr),Do=ho.dtype):(ho=yr.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)):(ye(Yr.buffer)?ho=yr.createStream(34962,Yr.buffer):ho=yr.getBuffer(Yr.buffer),Do="type"in Yr?ki[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=Re[Ea],Ds===1?(Jn.buffer||He.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(He.bindBuffer(34962,ho.buffer),He.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(bi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(He.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(He.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ct.capSize,(!Xr||Gs!==rl)&&(Gs=rl,He.uniform1f(k.location,rl)),bs=ct.lineWidth,(!Xr||zs!==bs)&&(zs=bs,He.uniform1f(M.location,bs)),$o=ct.opacity,(!Xr||Aa!==$o)&&(Aa=$o,He.uniform1f(m.location,$o)),os=ct.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,He.uniform2f(P.location,_l,po)),ss=ct.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,He.uniform2f(A.location,qo,io)),Da=ct.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,He.uniform2f(F.location,vs,cl)),Hs=ct.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,He.uniform2f(B.location,Ro,Fs)),Fa=G.call(this,nt,ct,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Vt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||Tt!==Bs||wr!==Vt)&&(jo=Ms,Is=Rs,Tt=Bs,wr=Vt,He.uniform4f(U.location,Ms,Rs,Bs,Vt)),mr=ct.count,mr>0?Ba?bi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),mr):bi.drawArraysInstancedANGLE(4,Ko,36,mr):mr<0&&(Ba?He.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):He.drawArrays(4,Ko,36)),nt.viewportWidth=da,nt.viewportHeight=la,jn&&yr.destroyStream(ha),qn&&yr.destroyStream(es),Ca&&yr.destroyStream(ts),us&&yr.destroyStream(ho)}Yt.dirty=!0,be.setVAO(null),Ii&&(r.cpuTime+=performance.now()-xn)}}}});var N8=Te((obr,u7e)=>{u7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et){"use strict";var Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr;return Ae=t.gl,ot=t.context,At=t.strings,vt=t.next,Je=t.current,He=t.draw,nt=t.elements,tt=t.buffer,It=t.shader,Yt=t.attributes,cr=t.vao,_r=t.uniforms,yr=t.framebuffer,Ut=t.extensions,Re=t.timer,be=t.isBufferArgs,Oe=vt.blend_color,Ie=Je.blend_color,Fe=vt.blend_equation,ft=Je.blend_equation,ye=vt.blend_func,fe=Je.blend_func,pe=vt.depth_range,dt=Je.depth_range,Pt=vt.colorMask,zt=Je.colorMask,rr=vt.polygonOffset_offset,Gr=Je.polygonOffset_offset,Br=vt.sample_coverage,Er=Je.sample_coverage,Rr=vt.stencil_func,pi=Je.stencil_func,Di=vt.stencil_opFront,ni=Je.stencil_opFront,$i=vt.stencil_opBack,Qi=Je.stencil_opBack,si=vt.scissor_box,Ti=Je.scissor_box,Ni=vt.viewport,Rt=Je.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Gt={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},Wt={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},xr={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},Or={cw:2304,ccw:2305},Hr={},Hr.offset=4,Hr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(gi){var ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(ki=Ut.angle_instanced_arrays,Vi=yr.next,Vi!==yr.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),yr.cur=Vi),Je.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=vt.dither,za!==Je.dither&&(za?Ae.enable(3024):Ae.disable(3024),Je.dither=za),ea=Fe[0],rs=Fe[1],(ea!==ft[0]||rs!==ft[1])&&(Ae.blendEquationSeparate(ea,rs),ft[0]=ea,ft[1]=rs),$s=vt.depth_func,$s!==Je.depth_func&&(Ae.depthFunc($s),Je.depth_func=$s),us=pe[0],Ds=pe[1],(us!==dt[0]||Ds!==dt[1])&&(Ae.depthRange(us,Ds),dt[0]=us,dt[1]=Ds),fl=vt.depth_mask,fl!==Je.depth_mask&&(Ae.depthMask(fl),Je.depth_mask=fl),as=Pt[0],Ma=Pt[1],Qs=Pt[2],ho=Pt[3],(as!==zt[0]||Ma!==zt[1]||Qs!==zt[2]||ho!==zt[3])&&(Ae.colorMask(as,Ma,Qs,ho),zt[0]=as,zt[1]=Ma,zt[2]=Qs,zt[3]=ho),gs=vt.cull_enable,gs!==Je.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),Je.cull_enable=gs),Vo=vt.cull_face,Vo!==Je.cull_face&&(Ae.cullFace(Vo),Je.cull_face=Vo),Do=vt.frontFace,Do!==Je.frontFace&&(Ae.frontFace(Do),Je.frontFace=Do),Lo=vt.lineWidth,Lo!==Je.lineWidth&&(Ae.lineWidth(Lo),Je.lineWidth=Lo),xs=vt.polygonOffset_enable,xs!==Je.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),Je.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Gr[0]||Ea!==Gr[1])&&(Ae.polygonOffset(ks,Ea),Gr[0]=ks,Gr[1]=Ea),Jn=vt.sample_alpha,Jn!==Je.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),Je.sample_alpha=Jn),Oo=vt.sample_enable,Oo!==Je.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),Je.sample_enable=Oo),rl=Br[0],Gs=Br[1],(rl!==Er[0]||Gs!==Er[1])&&(Ae.sampleCoverage(rl,Gs),Er[0]=rl,Er[1]=Gs),bs=vt.stencil_mask,bs!==Je.stencil_mask&&(Ae.stencilMask(bs),Je.stencil_mask=bs),zs=Rr[0],$o=Rr[1],Aa=Rr[2],(zs!==pi[0]||$o!==pi[1]||Aa!==pi[2])&&(Ae.stencilFunc(zs,$o,Aa),pi[0]=zs,pi[1]=$o,pi[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==ni[0]||_l!==ni[1]||Ss!==ni[2]||po!==ni[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),ni[0]=os,ni[1]=_l,ni[2]=Ss,ni[3]=po),go=$i[0],ss=$i[1],qo=$i[2],zo=$i[3],(go!==Qi[0]||ss!==Qi[1]||qo!==Qi[2]||zo!==Qi[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),Qi[0]=go,Qi[1]=ss,Qi[2]=qo,Qi[3]=zo),io=vt.scissor_enable,io!==Je.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),Je.scissor_enable=io),Io=si[0],Da=si[1],vs=si[2],fs=si[3],(Io!==Ti[0]||Da!==Ti[1]||vs!==Ti[2]||fs!==Ti[3])&&(Ae.scissor(Io,Da,vs,fs),Ti[0]=Io,Ti[1]=Da,Ti[2]=vs,Ti[3]=fs)}ti=this.viewport,tn=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-tn,Fi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,nn=ot.viewportHeight,ot.viewportHeight=Fi,Ae.viewport(tn,Yr,oi,Fi),Rt[0]=tn,Rt[1]=Yr,Rt[2]=oi,Rt[3]=Fi,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,n?Ae.enable(3042):Ae.disable(3042),Je.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),Je.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),Je.stencil_enable=a,Ri=Je.profile,Ri&&(Ii=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ut.angle_instanced_arrays,cr.setVAO(null),bi=this.charBuffer,Xr=!1,ct=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,en=0,ii=!1,Xi=5126,aa=0,Mn=0,Un=0,be(bi)?(Xr=!0,Ai=tt.createStream(34962,bi),Xi=Ai.dtype):(Ai=tt.getBuffer(bi),Ai?Xi=Ai.dtype:"constant"in bi?(ct=2,typeof bi.constant=="number"?(tr=bi.constant,pr=gr=Zr=0):(tr=bi.constant.length>0?bi.constant[0]:0,pr=bi.constant.length>1?bi.constant[1]:0,gr=bi.constant.length>2?bi.constant[2]:0,Zr=bi.constant.length>3?bi.constant[3]:0)):(be(bi.buffer)?Ai=tt.createStream(34962,bi.buffer):Ai=tt.getBuffer(bi.buffer),Xi="type"in bi?Nr[bi.type]:Ai.dtype,ii=!!bi.normalized,en=bi.size|0,aa=bi.offset|0,Mn=bi.stride|0,Un=bi.divisor|0)),Ga=s.location,ma=Yt[Ga],ct===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=en||1,(ma.type!==Xi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ii||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Xi,ii,Mn,aa),ma.type=Xi,ma.size=oa,ma.buffer=Ai,ma.normalized=ii,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,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,be(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)):(be(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=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.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&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.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,Ba=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,be(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)):(be(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,Ba=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],Wi===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.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&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,be(jr)?(As=!0,Go=tt.createStream(34962,jr),Ns=Go.dtype):(Go=tt.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?Go=tt.createStream(34962,jr.buffer):Go=tt.getBuffer(jr.buffer),Ns="type"in jr?Nr[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=gi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,ot,gi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=_.call(this,ot,gi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,ot,gi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=gi.baseline,Ae.uniform1f(C.location,lo),eo=T.call(this,ot,gi,0),Ae.uniform1f(E.location,eo),sa=gi.color,es=sa[0],Na=sa[1],rn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,rn,Pa),to=k.call(this,ot,gi,0),Ae.uniform1f(x.location,to),yo=gi.opacity,Ae.uniform1f(M.location,yo),Jo=gi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(F.location,To,ts,Wo,qa),ln=He.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):cr.currentVAO&&(ln=nt.getElements(cr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=gi.offset,ko=gi.count,ko&&(oo=He.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),Je.dirty=!0,cr.setVAO(null),ot.viewportWidth=an,ot.viewportHeight=nn,Ri&&(r.cpuTime+=performance.now()-Ii),Xr&&tt.destroyStream(Ai),so&&tt.destroyStream(Ta),Po&&tt.destroyStream(ao),As&&tt.destroyStream(Go),Xn.unbind())},scope:function(gi,ki,Vi){var ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,tn=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-tn,Fi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,nn=ot.viewportHeight,ot.viewportHeight=Fi,Ri=Ni[0],Ni[0]=tn,Ii=Ni[1],Ni[1]=Yr,xn=Ni[2],Ni[2]=oi,bi=Ni[3],Ni[3]=Fi,Xr=Oe[0],Oe[0]=B,ct=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=vt.blend_enable,vt.blend_enable=W,Zr=ye[0],ye[0]=N,Ai=ye[1],ye[1]=H,en=ye[2],ye[2]=re,ii=ye[3],ye[3]=ae,Xi=vt.depth_enable,vt.depth_enable=ge,aa=vt.stencil_enable,vt.stencil_enable=ze,Mn=Je.profile,Mn&&(Un=performance.now(),r.count++),Ga=gi.offset,ma=He.offset,He.offset=Ga,oa=gi.count,ka=He.count,He.count=oa,so=He.primitive,He.primitive=Le,Kr=v.call(this,ot,gi,Vi),Ia=_r[de],_r[de]=Kr,Yo=_.call(this,ot,gi,Vi),fa=_r[te],_r[te]=Yo,kn=d.call(this,ot,gi,Vi),Ta=_r[ke],_r[ke]=kn,ys=T.call(this,ot,gi,Vi),uo=_r[Ee],_r[Ee]=ys,ls=k.call(this,ot,gi,Vi),$a=_r[Se],_r[Se]=ls,fo=gi.color,mn=_r[Ge],_r[Ge]=fo,ra=gi.opacity,wa=_r[De],_r[De]=ra,ws=this.viewportArray,Co=_r[xe],_r[xe]=ws,Po=this.scale,Wi=_r[Ne],_r[Ne]=Po,gn=gi.align,Ps=_r[ce],_r[ce]=gn,Ha=gi.baseline,Sn=_r[je],_r[je]=Ha,ao=this.translate,Ba=_r[Qe],_r[Qe]=ao,Ko=gi.positionOffset,Qo=_r[gt],_r[gt]=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,be(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)):(be(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=qt.state,qt.state=Qa,qs=qt.x,qt.x=vn,Ns=qt.y,qt.y=da,Oa=qt.z,qt.z=la,ha=qt.w,qt.w=vo,Vs=qt.buffer,qt.buffer=As,Ya=qt.size,qt.size=ps,_n=qt.normalized,qt.normalized=co,Vn=qt.type,qt.type=mo,wo=qt.offset,qt.offset=No,Ra=qt.stride,qt.stride=jn,Xn=qt.divisor,qt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,rn=0,Pa=0,to=0,be(un)?($n=!0,eo=tt.createStream(34962,un),Na=eo.dtype):(eo=tt.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(be(un.buffer)?eo=tt.createStream(34962,un.buffer):eo=tt.getBuffer(un.buffer),Na="type"in un?Nr[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,rn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=at.state,at.state=Ka,Jo=at.x,at.x=qn,Ao=at.y,at.y=Eo,Dn=at.z,at.z=Ja,_a=at.w,at.w=lo,Ws=at.buffer,at.buffer=eo,Ca=at.size,at.size=sa,Es=at.normalized,at.normalized=es,Ts=at.type,at.type=Na,Ho=at.offset,at.offset=rn,Wa=at.stride,at.stride=Pa,To=at.divisor,at.divisor=to,ts=this.sizeBuffer,Hr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,be(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"?(ln=Hr.constant,Bo=ko=oo=0):(ln=Hr.constant.length>0?Hr.constant[0]:0,Bo=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)):(be(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=ln,Qs=Ke.y,Ke.y=Bo,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,Oo=this.sizeBuffer,jr.buffer=Oo,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,be(jr)?(rl=!0,os=tt.createStream(34962,jr),po=os.dtype):(os=tt.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?os=tt.createStream(34962,jr.buffer):os=tt.getBuffer(jr.buffer),po="type"in jr?Nr[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=Ct.state,Ct.state=Gs,io=Ct.x,Ct.x=bs,Io=Ct.y,Ct.y=zs,Da=Ct.z,Ct.z=$o,vs=Ct.w,Ct.w=Aa,fs=Ct.buffer,Ct.buffer=os,cl=Ct.size,Ct.size=_l,el=Ct.normalized,Ct.normalized=Ss,Hs=Ct.type,Ct.type=po,Ro=Ct.offset,Ct.offset=go,tl=Ct.stride,Ct.stride=ss,Fs=Ct.divisor,Ct.divisor=qo,hl=It.vert,It.vert=wt,Fa=It.frag,It.frag=Mt,Je.dirty=!0,ki(ot,gi,Vi),ot.viewportWidth=an,ot.viewportHeight=nn,Ni[0]=Ri,Ni[1]=Ii,Ni[2]=xn,Ni[3]=bi,Oe[0]=Xr,Oe[1]=ct,Oe[2]=tr,Oe[3]=pr,vt.blend_enable=gr,ye[0]=Zr,ye[1]=Ai,ye[2]=en,ye[3]=ii,vt.depth_enable=Xi,vt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),He.offset=ma,He.count=ka,He.primitive=so,_r[de]=Ia,_r[te]=fa,_r[ke]=Ta,_r[Ee]=uo,_r[Se]=$a,_r[Ge]=mn,_r[De]=wa,_r[xe]=Co,_r[Ne]=Wi,_r[ce]=Ps,_r[je]=Sn,_r[Qe]=Ba,_r[gt]=Qo,Sa&&tt.destroyStream(As),qt.state=Ys,qt.x=qs,qt.y=Ns,qt.z=Oa,qt.w=ha,qt.buffer=Vs,qt.size=Ya,qt.normalized=_n,qt.type=Vn,qt.offset=wo,qt.stride=Ra,qt.divisor=Xn,$n&&tt.destroyStream(eo),at.state=yo,at.x=Jo,at.y=Ao,at.z=Dn,at.w=_a,at.buffer=Ws,at.size=Ca,at.normalized=Es,at.type=Ts,at.offset=Ho,at.stride=Wa,at.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),Ct.state=zo,Ct.x=io,Ct.y=Io,Ct.z=Da,Ct.w=vs,Ct.buffer=fs,Ct.size=cl,Ct.normalized=el,Ct.type=Hs,Ct.offset=Ro,Ct.stride=tl,Ct.divisor=Fs,It.vert=hl,It.frag=Fa,Je.dirty=!0},batch:function(gi,ki){var Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct;if(Vi=Ut.angle_instanced_arrays,ti=yr.next,ti!==yr.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),yr.cur=ti),Je.dirty){var tr,pr,gr,Zr,Ai,en,ii,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;tr=vt.dither,tr!==Je.dither&&(tr?Ae.enable(3024):Ae.disable(3024),Je.dither=tr),pr=Fe[0],gr=Fe[1],(pr!==ft[0]||gr!==ft[1])&&(Ae.blendEquationSeparate(pr,gr),ft[0]=pr,ft[1]=gr),Zr=vt.depth_func,Zr!==Je.depth_func&&(Ae.depthFunc(Zr),Je.depth_func=Zr),Ai=pe[0],en=pe[1],(Ai!==dt[0]||en!==dt[1])&&(Ae.depthRange(Ai,en),dt[0]=Ai,dt[1]=en),ii=vt.depth_mask,ii!==Je.depth_mask&&(Ae.depthMask(ii),Je.depth_mask=ii),Xi=Pt[0],aa=Pt[1],Mn=Pt[2],Un=Pt[3],(Xi!==zt[0]||aa!==zt[1]||Mn!==zt[2]||Un!==zt[3])&&(Ae.colorMask(Xi,aa,Mn,Un),zt[0]=Xi,zt[1]=aa,zt[2]=Mn,zt[3]=Un),Ga=vt.cull_enable,Ga!==Je.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),Je.cull_enable=Ga),ma=vt.cull_face,ma!==Je.cull_face&&(Ae.cullFace(ma),Je.cull_face=ma),oa=vt.frontFace,oa!==Je.frontFace&&(Ae.frontFace(oa),Je.frontFace=oa),ka=vt.lineWidth,ka!==Je.lineWidth&&(Ae.lineWidth(ka),Je.lineWidth=ka),so=vt.polygonOffset_enable,so!==Je.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),Je.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Gr[0]||Ia!==Gr[1])&&(Ae.polygonOffset(Kr,Ia),Gr[0]=Kr,Gr[1]=Ia),Yo=vt.sample_alpha,Yo!==Je.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),Je.sample_alpha=Yo),fa=vt.sample_enable,fa!==Je.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),Je.sample_enable=fa),kn=Br[0],Ta=Br[1],(kn!==Er[0]||Ta!==Er[1])&&(Ae.sampleCoverage(kn,Ta),Er[0]=kn,Er[1]=Ta),ys=vt.stencil_mask,ys!==Je.stencil_mask&&(Ae.stencilMask(ys),Je.stencil_mask=ys),uo=Rr[0],ls=Rr[1],$a=Rr[2],(uo!==pi[0]||ls!==pi[1]||$a!==pi[2])&&(Ae.stencilFunc(uo,ls,$a),pi[0]=uo,pi[1]=ls,pi[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==ni[0]||mn!==ni[1]||ra!==ni[2]||wa!==ni[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),ni[0]=fo,ni[1]=mn,ni[2]=ra,ni[3]=wa),ws=$i[0],Co=$i[1],Po=$i[2],Wi=$i[3],(ws!==Qi[0]||Co!==Qi[1]||Po!==Qi[2]||Wi!==Qi[3])&&(Ae.stencilOpSeparate(ws,Co,Po,Wi),Qi[0]=ws,Qi[1]=Co,Qi[2]=Po,Qi[3]=Wi),gn=vt.scissor_enable,gn!==Je.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),Je.scissor_enable=gn),Ps=si[0],Ha=si[1],Sn=si[2],ao=si[3],(Ps!==Ti[0]||Ha!==Ti[1]||Sn!==Ti[2]||ao!==Ti[3])&&(Ae.scissor(Ps,Ha,Sn,ao),Ti[0]=Ps,Ti[1]=Ha,Ti[2]=Sn,Ti[3]=ao)}tn=this.viewport,Yr=tn.x|0,oi=tn.y|0,Fi="width"in tn?tn.width|0:ot.framebufferWidth-Yr,an="height"in tn?tn.height|0:ot.framebufferHeight-oi,nn=ot.viewportWidth,ot.viewportWidth=Fi,Ri=ot.viewportHeight,ot.viewportHeight=an,Ae.viewport(Yr,oi,Fi,an),Rt[0]=Yr,Rt[1]=oi,Rt[2]=Fi,Rt[3]=an,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Bt?Ae.enable(3042):Ae.disable(3042),Je.blend_enable=Bt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),Je.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),Je.stencil_enable=Et,Ii=Je.profile,Ii&&(xn=performance.now(),r.count+=ki),Ae.useProgram(o.program),bi=Ut.angle_instanced_arrays;var Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(cr.setVAO(null),Ba=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,be(Ba)?(Ko=!0,da=tt.createStream(34962,Ba),As=da.dtype):(da=tt.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Hi=Ba.constant,Sa=Qa=vn=0):(Hi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(be(Ba.buffer)?da=tt.createStream(34962,Ba.buffer):da=tt.getBuffer(Ba.buffer),As="type"in Ba?Nr[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.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&&(bi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.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,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,be(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"?(Oa=Hr.constant,ha=Vs=Ya=0):(Oa=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)):(be(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,un=Hr.stride|0,$n=Hr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(bi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,rn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,be(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=rn=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,rn=Ja.constant.length>3?Ja.constant[3]:0)):(be(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=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.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&&(bi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==rn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,rn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=rn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,be(jr)?(Ho=!0,ln=tt.createStream(34962,jr),oo=ln.dtype):(ln=tt.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(be(jr.buffer)?ln=tt.createStream(34962,jr.buffer):ln=tt.getBuffer(jr.buffer),oo="type"in jr?Nr[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(bi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.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],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(F.location,Do,Lo,xs,ks),Ea=He.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):cr.currentVAO&&(Ea=nt.getElements(cr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=He.instances,Xr=0;Xr0?Ea?bi.drawElementsInstancedANGLE(0,Fr,Ea.type,mr<<(Ea.type-5121>>1),Jn):bi.drawArraysInstancedANGLE(0,mr,Fr,Jn):Jn<0&&(Ea?Ae.drawElements(0,Fr,Ea.type,mr<<(Ea.type-5121>>1)):Ae.drawArrays(0,mr,Fr)),bs.unbind())}Ko&&tt.destroyStream(da),qs&&tt.destroyStream(_n),lo&&tt.destroyStream(Pa),Ho&&tt.destroyStream(ln),Je.dirty=!0,cr.setVAO(null),ot.viewportWidth=nn,ot.viewportHeight=Ri,Ii&&(r.cpuTime+=performance.now()-xn)}}}});var PK=Te((sbr,f7e)=>{"use strict";var UVt=P8(),VVt=z8(),GVt=I8(),HVt=R8(),WVt=D8(),jVt=F8(),XVt=B8(),ZVt=O8(),YVt=q8(),KVt=N8();f7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":UVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:VVt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":GVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:HVt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:WVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":jVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:XVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:ZVt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":YVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":KVt}});var d7e=Te((lbr,h7e)=>{"use strict";var c7e=LK(),JVt=PK();Object.assign(c7e.reglPrecompiled,JVt);h7e.exports=c7e});var m7e=Te((ubr,v7e)=>{"use strict";var p7e=gBe();p7e.plot=d7e();v7e.exports=p7e});var zK=Te((fbr,x7e)=>{"use strict";var $Vt=Zc(),_7e=nc(),y7e=jc().axisHoverFormat,{hovertemplateAttrs:QVt,templatefallbackAttrs:eGt}=Ff(),Bk=yk(),tGt=qh().idRegex,rGt=Lf().templatedArray,xS=Su().extendFlat,d1=$Vt.marker,iGt=d1.line,nGt=xS(_7e("marker.line",{editTypeOverride:"calc"}),{width:xS({},iGt.width,{editType:"calc"}),editType:"calc"}),U8=xS(_7e("marker"),{symbol:d1.symbol,angle:d1.angle,size:xS({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:nGt,editType:"calc"});U8.color.editType=U8.cmin.editType=U8.cmax.editType="style";function g7e(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:tGt[e],editType:"plot"}}}x7e.exports={dimensions:rGt("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:xS({},Bk.text,{}),hovertext:xS({},Bk.hovertext,{}),hovertemplate:QVt(),hovertemplatefallback:eGt(),xhoverformat:y7e("x"),yhoverformat:y7e("y"),marker:U8,xaxes:g7e("x"),yaxes:g7e("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 V8=Te((cbr,b7e)=>{"use strict";b7e.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var IK=ei(),aGt=Kd(),w7e=zK(),oGt=lc(),sGt=$v(),lGt=V8(),uGt=jF().isOpenSymbol;A7e.exports=function(t,r,n,i){function a(d,p){return IK.coerce(t,r,w7e,d,p)}var o=aGt(t,r,{name:"dimensions",handleItemDefaults:fGt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=lGt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),sGt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=uGt(r.marker.symbol),h=oGt.isBubble(r);a("marker.line.width",c||h?1:0),cGt(t,r,i,a),IK.coerceSelectionMarkerOpacity(r,a)};function fGt(e,t){function r(i,a){return IK.coerce(e,t,w7e.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function cGt(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 S7e=ei();M7e.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]=S7e.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||S7e.extendFlat(u,o),u}});var L7e=Te((pbr,C7e)=>{"use strict";var RK=ei(),G8=Wc(),hGt=O0().calcMarkerSize,dGt=O0().calcAxisExpansion,pGt=F0(),k7e=ow().markerSelection,vGt=ow().markerStyle,mGt=E7e(),yGt=rf().BADNUM,gGt=vx().TOO_MANY_POINTS;C7e.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,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xgGt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=hGt(r,i),f=0;f{(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(P7e)});var R7e=Te((vbr,j8)=>{var _Gt=z7e(),p1=window,H8=["moz","webkit"],wS="AnimationFrame",AS=p1["request"+wS],qk=p1["cancel"+wS]||p1["cancelRequest"+wS];for(bS=0;!AS&&bS{D7e.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=CY(),bGt=eg(),wGt=rw(),B7e=R7e(),AGt=F7e(),FK=sS(),TGt=iw();q7e.exports=Tx;function Tx(e,t){if(!(this instanceof Tx))return new Tx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=xGt(e),this.canvas=this.scatter.canvas}Tx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=B7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,B7e(()=>{this.dirty=!1})),this)};Tx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};Tx.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 SGt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function X8(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 O7e(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=FK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var V7e=Te((gbr,U7e)=>{"use strict";var MGt=N7e(),BK=ei(),Z8=Wc(),EGt=Cm().selectMode;U7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=EGt(f)||!!i.selectedpoints||P,F=!0;if(A){var B=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";G7e.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 H7e=OK(),CGt=WF().calcHover,W7e=wu().getFromId,LGt=Su().extendFlat;function PGt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=j7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=LGt({},e),c=0;c{"use strict";var $7e=ei(),Y7e=$7e.pushUnique,K7e=lc(),J7e=OK();Q7e.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=!K7e.hasMarkers(i)&&!K7e.hasText(i);if(i.visible!==!0||c)return f;var h=J7e.getDimIndex(i,u),d=J7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],_=a.ypx[d],b=s[h],v=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var tUe=ei(),zGt=F0(),IGt=ow().markerStyle;rUe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){zGt(t,n),tUe.extendFlat(i.matrixOptions,IGt(t,n));var a=tUe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var aUe=Te((Abr,nUe)=>{"use strict";var RGt=$l(),DGt=kV();nUe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:zK(),supplyDefaults:T7e(),colorbar:ep(),calc:L7e(),plot:V7e(),hoverPoints:Z7e().hoverPoints,selectPoints:eUe(),editStyle:iUe(),meta:{}};RGt.register(DGt)});var cUe=Te((Tbr,fUe)=>{"use strict";var FGt=oK(),BGt=$l(),OGt=L8(),qGt=Rd().getModuleCalcData,Sx=Mh(),oUe=Wc().getFromId,sUe=wu().shouldShowZeroLine,lUe="splom",uUe={};function NGt(e){var t=e._fullLayout,r=BGt.getModule(lUe),n=qGt(e.calcdata,r)[0],i=OGt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],uUe);i&&(t._hasOnlyLargeSploms&&qK(e),r.plot(e,{},n))}function UGt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&qK(e);for(var n=0;n{"use strict";var WGt=P8(),jGt=z8(),XGt=I8(),ZGt=B8(),YGt=O8(),KGt=R8(),JGt=D8(),$Gt=F8(),QGt=q8(),eHt=N8();hUe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":WGt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:jGt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":XGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:ZGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:YGt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:KGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:JGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":$Gt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":QGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":eHt}});var mUe=Te((Mbr,vUe)=>{"use strict";var pUe=cUe(),tHt=dUe();Object.assign(pUe.reglPrecompiled,tHt);vUe.exports=pUe});var _Ue=Te((Ebr,gUe)=>{"use strict";var yUe=aUe();yUe.basePlotModule=mUe(),gUe.exports=yUe});var VK=Te((kbr,xUe)=>{"use strict";var rHt=nc(),NK=Dd(),UK=gc(),iHt=zc().attributes,Y8=Su().extendFlat,nHt=Lf().templatedArray;xUe.exports={domain:iHt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:UK({editType:"plot"}),tickfont:UK({autoShadowDflt:!0,editType:"plot"}),rangefont:UK({editType:"plot"}),dimensions:nHt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Y8({},NK.tickvals,{editType:"plot"}),ticktext:Y8({},NK.ticktext,{editType:"plot"}),tickformat:Y8({},NK.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:Y8({editType:"calc"},rHt("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=Te((Cbr,bUe)=>{"use strict";bUe.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 ig=Te((Lbr,AUe)=>{"use strict";var aHt=ZM();function wUe(e){return[e]}AUe.exports={keyFun:function(e){return e.key},repeat:wUe,descend:aHt,wrap:wUe,unwrap:function(e){return e[0]}}});var WK=Te((Pbr,RUe)=>{"use strict";var zh=Nk(),iy=Jl(),oHt=ig().keyFun,K8=ig().repeat,TS=ei().sorterAsc,sHt=ei().strTranslate,TUe=zh.bar.snapRatio;function SUe(e,t){return e*(1-TUe)+t*TUe}var MUe=zh.bar.snapClose;function lHt(e,t){return e*(1-MUe)+t*MUe}function $8(e,t,r,n){if(uHt(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 fHt(e){e.attr("x",-zh.bar.captureWidth/2).attr("width",zh.bar.captureWidth)}function cHt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function hHt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=EUe(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 kUe(){iy.select(document.body).style("cursor",null)}function HK(e){e.attr("stroke-dasharray",hHt)}function J8(e,t){var r=iy.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(zh.bar.snapDuration).each("end",t):r;HK(n)}function CUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=EUe(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 pHt(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=CUe(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 LUe(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(TS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),J8(e.parentNode)}function vHt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(PUe(e,t),LUe(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,kUe(),!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&&GK(r)):GK(r),i.brushCallback(t),J8(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||GK(r),i.brushCallback(t),l?J8(e.parentNode,s):(s(),J8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function PUe(e,t){var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=CUe(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||PUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||kUe()}).call(iy.behavior.drag().on("dragstart",function(t){pHt(this,t)}).on("drag",function(t){LUe(this,t)}).on("dragend",function(t){vHt(this,t)}))}function zUe(e,t){return e[0]-t[0]}function yHt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(K8);i.enter().append("rect").classed("background",!0).call(fHt).call(cHt).style("pointer-events",n?"none":"auto").attr("transform",sHt(0,zh.verticalPadding)),i.call(mHt).attr("height",function(s){return s.height-zh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(K8);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(HK);var o=e.selectAll(".highlight").data(K8);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(HK)}function gHt(e,t,r){var n=e.selectAll("."+zh.cn.axisBrush).data(K8,oHt);n.enter().append("g").classed(zh.cn.axisBrush,!0),yHt(n,t,r)}function _Ht(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function GK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function xHt(e){return function(r){var n=r.brush,i=_Ht(n),a=i.slice();n.filter.set(a),e()}}function IUe(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 bHt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(TS)}).sort(zUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=IUe(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 wHt(e,t,r,n,i,a){var o=bHt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:xHt(i),brushEndCallback:a}}}function AHt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(TS)}),t.multiselect?e=IUe(e.sort(zUe)):e=[e[0]]):e=[e.sort(TS)],t.tickvals){var r=t.tickvals.slice().sort(TS);if(e=e.map(function(n){var i=[$8(0,r,n[0],[]),$8(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]}RUe.exports={makeBrush:wHt,ensureAxisBrush:gHt,cleanRanges:AHt}});var BUe=Te((zbr,FUe)=>{"use strict";var Mx=ei(),THt=yp().hasColorscale,SHt=nd(),MHt=zc().defaults,EHt=Kd(),kHt=wu(),DUe=VK(),CHt=WK(),jK=Nk().maxDimensionCount,LHt=V8();function PHt(e,t,r,n,i){var a=i("line.color",r);if(THt(e,"line")&&Mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function zHt(e,t,r,n){function i(l,f){return Mx.coerce(e,t,DUe.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},kHt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=CHt.cleanRanges(u,t))}}FUe.exports=function(t,r,n,i){function a(f,c){return Mx.coerce(t,r,DUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>jK&&(Mx.log("parcoords traces support up to "+jK+" dimensions at the moment"),o.splice(jK));var s=EHt(t,r,{name:"dimensions",layout:i,handleItemDefaults:zHt}),u=PHt(t,r,n,i,a);MHt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),LHt(r,s,"values",u);var l=Mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Mx.coerceFont(a,"labelfont",l),Mx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),Mx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var qUe=Te((Ibr,OUe)=>{"use strict";var IHt=ei().isArrayOrTypedArray,XK=_c(),RHt=ig().wrap;OUe.exports=function(t,r){var n,i;return XK.hasColorscale(r,"line")&&IHt(r.line.color)?(n=r.line.color,i=XK.extractOpts(r.line).colorscale,XK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=DHt(r._length),i=[[0,r.line.color],[1,r.line.color]]),RHt({lineColor:n,cscale:i})};function DHt(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(),ZK.default[e])r=ZK.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(NUe[h]!==void 0)return NUe[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 ZK,UUe,NUe,VUe=tc(()=>{ZK=frt(IX(),1),UUe=FHt,NUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Uk,YK=tc(()=>{Uk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Q8,GUe=tc(()=>{YK();Q8={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 WUe={};Cee(WUe,{default:()=>HUe});function HUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=UUe(e);if(!i.space)return[];let a=i.space[0]==="h"?Q8.min:Uk.min,o=i.space[0]==="h"?Q8.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=Q8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var jUe=tc(()=>{VUe();YK();GUe()});var KK=Te(eB=>{"use strict";var BHt=ei().isTypedArray;eB.convertTypedArray=function(e){return BHt(e)?Array.prototype.slice.call(e):e};eB.isOrdinal=function(e){return!!e.tickvals};eB.isVisible=function(e){return e.visible||!("visible"in e)}});var rVe=Te((Vbr,tVe)=>{"use strict";var OHt=["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(` `),qHt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Uk=qk().maxDimensionCount,$Ue=ei(),XUe=1e-6,tB=2048,NHt=new Uint8Array(4),ZUe=new Uint8Array(4),YUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function UHt(e){e.read({x:0,y:0,width:1,height:1,data:NHt})}function QUe(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 VHt(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],QUe(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 WHt(e,t,r){for(var n=new Array(e*(Uk+4)),i=0,a=0;aj&&(j=M[F].dim1.canvasX,U=F);A===0&&QUe(i,0,0,l.canvasWidth,l.canvasHeight);var W=E(r);for(F=0;F{"use strict";var Nd=Jl(),v1=ei(),$K=v1.isArrayOrTypedArray,lVe=v1.numberFormat,uVe=(jUe(),vb(WUe)).default,fVe=wu(),KHt=v1.strRotate,ng=v1.strTranslate,JHt=Wf(),rB=Mu(),iVe=_c(),tJ=ig(),im=tJ.keyFun,ag=tJ.repeat,cVe=tJ.unwrap,SS=KK(),Nf=qk(),hVe=WK(),$Ht=rVe();function nVe(e,t,r){return v1.aggNums(e,null,t,r)}function dVe(e,t){return rJ(nVe(Math.min,e,t),nVe(Math.max,e,t))}function iB(e){var t=e.range;return t?rJ(t[0],t[1]):dVe(e.values,e._length)}function rJ(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 QHt(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=iB(r);return n?Nd.scale.ordinal().domain(n.map(QHt(lVe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Nd.scale.linear().domain(a).range([e-t,t])}function tWt(e,t){return Nd.scale.linear().range([t,e-t])}function rWt(e,t){return Nd.scale.linear().domain(iB(e)).range([t,1-t])}function iWt(e){if(e.tickvals){var t=iB(e);return Nd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function nWt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=uVe(a[1]);return Nd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Nd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function eJ(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function aWt(e,t,r){var n=cVe(t),i=n.trace,a=SS.convertTypedArray(n.lineColor),o=i.line,s={color:uVe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=iVe.extractOpts(o),l=u.reversescale?iVe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,_=i.labelfont,b=i.tickfont,v=i.rangefont,C=v1.extendDeepNoArrays({},o,{color:a.map(Nd.scale.linear().domain(iB({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:Nf.blockLineCount,canvasOverdrag:Nf.overdrag*Nf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,k=T;return{key:r,colCount:c.filter(SS.isVisible).length,dimensions:c,tickDistance:Nf.tickDistance,unitToColor:nWt(l),lines:C,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:_,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 oWt(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=tWt(i,Nf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(SS.isVisible).map(function(h,d){var p=rWt(h,u),_=c[h.label];c[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),v=h.constraintrange,C=v&&v.length;C&&!$K(v[0])&&(v=[v]);var E=C?v.map(function(B){return B.map(p)}):[[-1/0,1/0]],T=function(){var B=f;B.focusLayer&&B.focusLayer.render(B.panels,!0);var U=eJ(B);!e.contextShown()&&U?(B.contextLayer&&B.contextLayer.render(B.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(B.contextLayer&&B.contextLayer.render(B.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 M(B,U){return{val:B,text:k[U]}}function m(B,U){return B.val-U.val}if($K(x)&&x.length){v1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!$K(k)||!k.length?k=x.map(lVe(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=F.lineLayer.readPixel(W,G-1-N),re=H[3]!==0,ae=re?H[2]+256*(H[1]+256*H[0]):null,ge={x:W,y:N,clientX:B.clientX,clientY:B.clientY,dataIndex:F.model.key,curveNumber:ae};ae!==p&&(re?i.hover(ge):i.unhover&&i.unhover(ge),p=ae)}}),d.style("opacity",function(F){return F.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(F){return ng(F.model.translateX,F.model.translateY)});var v=b.selectAll("."+Nf.cn.parcoordsControlView).data(ag,im);v.enter().append("g").classed(Nf.cn.parcoordsControlView,!0),v.attr("transform",function(F){return ng(F.model.pad.l,F.model.pad.t)});var C=v.selectAll("."+Nf.cn.yAxis).data(function(F){return F.dimensions},im);C.enter().append("g").classed(Nf.cn.yAxis,!0),v.each(function(F){QK(C,F,l)}),d.each(function(F){if(F.viewModel){!F.lineLayer||i?F.lineLayer=$Ht(this,F):F.lineLayer.update(F),(F.key||F.key===0)&&(F.viewModel[F.key]=F.lineLayer);var B=!F.context||i;F.lineLayer.render(F.viewModel.panels,B)}}),C.attr("transform",function(F){return ng(F.xScale(F.xIndex),0)}),C.call(Nd.behavior.drag().origin(function(F){return F}).on("drag",function(F){var B=F.parent;c.linePickActive(!1),F.x=Math.max(-Nf.overdrag,Math.min(F.model.width+Nf.overdrag,Nd.event.x)),F.canvasX=F.x*F.model.canvasPixelRatio,C.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=F===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),QK(C,B,l),C.filter(function(U){return Math.abs(F.xIndex-U.xIndex)!==0}).attr("transform",function(U){return ng(U.xScale(U.xIndex),0)}),Nd.select(this).attr("transform",ng(F.x,0)),C.each(function(U,G,j){j===F.parent.key&&(B.dimensions[G]=U)}),B.contextLayer&&B.contextLayer.render(B.panels,!1,!eJ(B)),B.focusLayer.render&&B.focusLayer.render(B.panels)}).on("dragend",function(F){var B=F.parent;F.x=F.xScale(F.xIndex),F.canvasX=F.x*F.model.canvasPixelRatio,QK(C,B,l),Nd.select(this).attr("transform",function(U){return ng(U.x,0)}),B.contextLayer&&B.contextLayer.render(B.panels,!1,!eJ(B)),B.focusLayer&&B.focusLayer.render(B.panels),B.pickLayer&&B.pickLayer.render(B.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(B.key,B.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Nf.cn.axisOverlays).data(ag,im);E.enter().append("g").classed(Nf.cn.axisOverlays,!0),E.selectAll("."+Nf.cn.axis).remove();var T=E.selectAll("."+Nf.cn.axis).data(ag,im);T.enter().append("g").classed(Nf.cn.axis,!0),T.each(function(F){var B=F.model.height/F.model.tickDistance,U=F.domainScale,G=U.domain();Nd.select(this).call(Nd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(B,F.tickFormat).tickValues(F.ordinal?G:null).tickFormat(function(j){return SS.isOrdinal(F)?j:pVe(F.model.dimensions[F.visibleIndex],j)}).scale(U)),rB.font(T.selectAll("text"),F.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=E.selectAll("."+Nf.cn.axisHeading).data(ag,im);L.enter().append("g").classed(Nf.cn.axisHeading,!0);var x=L.selectAll("."+Nf.cn.axisTitle).data(ag,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(F){return F.label}).each(function(F){var B=Nd.select(this);rB.font(B,F.model.labelFont),JHt.convertToTspans(B,t)}).attr("transform",function(F){var B=oVe(F.model.labelAngle,F.model.labelSide),U=Nf.axisTitleOffset;return(B.dir>0?"":ng(0,2*U+F.model.height))+KHt(B.degrees)+ng(-U*B.dx,-U*B.dy)}).attr("text-anchor",function(F){var B=oVe(F.model.labelAngle,F.model.labelSide),U=Math.abs(B.dx),G=Math.abs(B.dy);return 2*U>G?B.dir*B.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Nf.cn.axisExtent).data(ag,im);k.enter().append("g").classed(Nf.cn.axisExtent,!0);var M=k.selectAll("."+Nf.cn.axisExtentTop).data(ag,im);M.enter().append("g").classed(Nf.cn.axisExtentTop,!0),M.attr("transform",ng(0,-Nf.axisExtentOffset));var m=M.selectAll("."+Nf.cn.axisExtentTopText).data(ag,im);m.enter().append("text").classed(Nf.cn.axisExtentTopText,!0).call(aVe),m.text(function(F){return sVe(F,!0)}).each(function(F){rB.font(Nd.select(this),F.model.rangeFont)});var P=k.selectAll("."+Nf.cn.axisExtentBottom).data(ag,im);P.enter().append("g").classed(Nf.cn.axisExtentBottom,!0),P.attr("transform",function(F){return ng(0,F.model.height+Nf.axisExtentOffset)});var A=P.selectAll("."+Nf.cn.axisExtentBottomText).data(ag,im);A.enter().append("text").classed(Nf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(aVe),A.text(function(F){return sVe(F,!1)}).each(function(F){rB.font(Nd.select(this),F.model.rangeFont)}),hVe.ensureAxisBrush(E,f,t)}});var nJ=Te((iJ,xVe)=>{"use strict";var uWt=mVe(),fWt=L8(),yVe=KK().isVisible,_Ve={};function gVe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function cWt(e,t){return function(n,i){return gVe(e,t,n)-gVe(e,t,i)}}var iJ=xVe.exports=function(t,r){var n=t._fullLayout,i=fWt(t,[],_Ve);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,_){var b=p[0].trace;s[_]=b.index;var v=u[_]=b.index;a[_]=t.data[v].dimensions,o[_]=t.data[v].dimensions.slice()});var f=function(p,_,b){var v=o[p][_],C=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var x=t._fullData[s[p]].dimensions[_];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,_){var b=cWt(_,o[p].filter(yVe));a[p].sort(b),o[p].filter(function(v){return!yVe(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]]])};uWt(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})}};iJ.reglPrecompiled=_Ve});var wVe=Te(Vk=>{"use strict";var bVe=Jl(),hWt=Rd().getModuleCalcData,dWt=nJ(),pWt=jv();Vk.name="parcoords";Vk.plot=function(e){var t=hWt(e.calcdata,"parcoords")[0];t.length&&dWt(e,t)};Vk.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())};Vk.toSVG=function(e){var t=e._fullLayout._glimages,r=bVe.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:pWt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){bVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var TVe=Te((Wbr,AVe)=>{"use strict";AVe.exports={attributes:VK(),supplyDefaults:BUe(),calc:qUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:wVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var MVe=Te((jbr,SVe)=>{SVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr;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,_=t.framebuffer,b=t.extensions,v=t.timer,C=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,x=s.blend_equation,k=o.blend_func,M=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,F=s.colorMask,B=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,ge=s.stencil_opBack,ze=o.scissor_box,Le=s.scissor_box,de=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={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},Se={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},De={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},xe={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ne={cw:2304,ccw:2305},ce=o.blend_color,je=s.blend_color,Qe=o.blend_equation,gt=s.blend_equation,qt=o.blend_func,at=s.blend_func,Ke=o.depth_range,Ct=s.depth_range,wt=o.colorMask,Mt=s.colorMask,Bt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,ot=o.stencil_func,At=s.stencil_func,vt=o.stencil_opFront,Je=s.stencil_opFront,He=o.stencil_opBack,nt=s.stencil_opBack,tt=o.scissor_box,It=s.scissor_box,Yt=o.viewport,cr=s.viewport,{poll:function(){var _r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di;s.dirty=!1,yr=o.dither,Ut=o.blend_enable,Re=o.depth_enable,be=o.cull_enable,Oe=o.polygonOffset_enable,Ie=o.sample_alpha,Fe=o.sample_enable,ft=o.stencil_enable,ye=o.scissor_enable,fe=o.depth_func,pe=s.depth_func,dt=o.depth_mask,Pt=s.depth_mask,zt=o.cull_face,rr=s.cull_face,Gr=o.frontFace,Br=s.frontFace,Er=o.lineWidth,Rr=s.lineWidth,pi=o.stencil_mask,Di=s.stencil_mask,_r=_.next,_r!==_.cur&&(_r?n.bindFramebuffer(36160,_r.framebuffer):n.bindFramebuffer(36160,null),_.cur=_r),yr!==s.dither&&(yr?n.enable(3024):n.disable(3024),s.dither=yr),Ut!==s.blend_enable&&(Ut?n.enable(3042):n.disable(3042),s.blend_enable=Ut),Re!==s.depth_enable&&(Re?n.enable(2929):n.disable(2929),s.depth_enable=Re),be!==s.cull_enable&&(be?n.enable(2884):n.disable(2884),s.cull_enable=be),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Ie!==s.sample_alpha&&(Ie?n.enable(32926):n.disable(32926),s.sample_alpha=Ie),Fe!==s.sample_enable&&(Fe?n.enable(32928):n.disable(32928),s.sample_enable=Fe),ft!==s.stencil_enable&&(ft?n.enable(2960):n.disable(2960),s.stencil_enable=ft),ye!==s.scissor_enable&&(ye?n.enable(3089):n.disable(3089),s.scissor_enable=ye),(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]),(Qe[0]!==gt[0]||Qe[1]!==gt[1])&&(n.blendEquationSeparate(Qe[0],Qe[1]),gt[0]=Qe[0],gt[1]=Qe[1]),(qt[0]!==at[0]||qt[1]!==at[1]||qt[2]!==at[2]||qt[3]!==at[3])&&(n.blendFuncSeparate(qt[0],qt[1],qt[2],qt[3]),at[0]=qt[0],at[1]=qt[1],at[2]=qt[2],at[3]=qt[3]),fe!==pe&&(n.depthFunc(fe),s.depth_func=fe),(Ke[0]!==Ct[0]||Ke[1]!==Ct[1])&&(n.depthRange(Ke[0],Ke[1]),Ct[0]=Ke[0],Ct[1]=Ke[1]),dt!==Pt&&(n.depthMask(dt),s.depth_mask=dt),(wt[0]!==Mt[0]||wt[1]!==Mt[1]||wt[2]!==Mt[2]||wt[3]!==Mt[3])&&(n.colorMask(wt[0],wt[1],wt[2],wt[3]),Mt[0]=wt[0],Mt[1]=wt[1],Mt[2]=wt[2],Mt[3]=wt[3]),zt!==rr&&(n.cullFace(zt),s.cull_face=zt),Gr!==Br&&(n.frontFace(Gr),s.frontFace=Gr),Er!==Rr&&(n.lineWidth(Er),s.lineWidth=Er),(Bt[0]!==Zt[0]||Bt[1]!==Zt[1])&&(n.polygonOffset(Bt[0],Bt[1]),Zt[0]=Bt[0],Zt[1]=Bt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),pi!==Di&&(n.stencilMask(pi),s.stencil_mask=pi),(ot[0]!==At[0]||ot[1]!==At[1]||ot[2]!==At[2])&&(n.stencilFunc(ot[0],ot[1],ot[2]),At[0]=ot[0],At[1]=ot[1],At[2]=ot[2]),(vt[0]!==Je[0]||vt[1]!==Je[1]||vt[2]!==Je[2]||vt[3]!==Je[3])&&(n.stencilOpSeparate(vt[0],vt[1],vt[2],vt[3]),Je[0]=vt[0],Je[1]=vt[1],Je[2]=vt[2],Je[3]=vt[3]),(He[0]!==nt[0]||He[1]!==nt[1]||He[2]!==nt[2]||He[3]!==nt[3])&&(n.stencilOpSeparate(He[0],He[1],He[2],He[3]),nt[0]=He[0],nt[1]=He[1],nt[2]=He[2],nt[3]=He[3]),(tt[0]!==It[0]||tt[1]!==It[1]||tt[2]!==It[2]||tt[3]!==It[3])&&(n.scissor(tt[0],tt[1],tt[2],tt[3]),It[0]=tt[0],It[1]=tt[1],It[2]=tt[2],It[3]=tt[3]),(Yt[0]!==cr[0]||Yt[1]!==cr[1]||Yt[2]!==cr[2]||Yt[3]!==cr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),cr[0]=Yt[0],cr[1]=Yt[1],cr[2]=Yt[2],cr[3]=Yt[3])},refresh:function(){var _r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i;s.dirty=!1,Re=o.dither,be=o.blend_enable,Oe=o.depth_enable,Ie=o.cull_enable,Fe=o.polygonOffset_enable,ft=o.sample_alpha,ye=o.sample_enable,fe=o.stencil_enable,pe=o.scissor_enable,dt=o.depth_func,Pt=s.depth_func,zt=o.depth_mask,rr=s.depth_mask,Gr=o.cull_face,Br=s.cull_face,Er=o.frontFace,Rr=s.frontFace,pi=o.lineWidth,Di=s.lineWidth,ni=o.stencil_mask,$i=s.stencil_mask,_r=_.next,_r?n.bindFramebuffer(36160,_r.framebuffer):n.bindFramebuffer(36160,null),_.cur=_r,yr=h,Ut=0;for(var Qi=0;Qi{EVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,F=d.blend_equation,B=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,ge=d.sample_coverage,ze=h.stencil_func,Le=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Se=h.scissor_box,Ge=d.scissor_box,De=h.viewport,xe=d.viewport,Ne={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},Qe={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},qt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},at={cw:2304,ccw:2305},Ke={},Ct={},{draw:function(wt){var Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut;if(Mt=wt.framebuffer,Bt=L.getFramebuffer(Mt),Zt=L.next,L.next=Bt,Et=f.framebufferWidth,f.framebufferWidth=Bt?Bt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Bt?Bt.height:f.drawingBufferHeight,Bt!==L.cur&&(Bt?l.bindFramebuffer(36160,Bt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Bt),d.dirty){var Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri;Re=h.dither,Re!==d.dither&&(Re?l.enable(3024):l.disable(3024),d.dither=Re),be=h.blend_enable,be!==d.blend_enable&&(be?l.enable(3042):l.disable(3042),d.blend_enable=be),Oe=m[0],Ie=m[1],Fe=m[2],ft=m[3],(Oe!==P[0]||Ie!==P[1]||Fe!==P[2]||ft!==P[3])&&(l.blendColor(Oe,Ie,Fe,ft),P[0]=Oe,P[1]=Ie,P[2]=Fe,P[3]=ft),ye=A[0],fe=A[1],(ye!==F[0]||fe!==F[1])&&(l.blendEquationSeparate(ye,fe),F[0]=ye,F[1]=fe),pe=B[0],dt=B[1],Pt=B[2],zt=B[3],(pe!==U[0]||dt!==U[1]||Pt!==U[2]||zt!==U[3])&&(l.blendFuncSeparate(pe,dt,Pt,zt),U[0]=pe,U[1]=dt,U[2]=Pt,U[3]=zt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Gr=h.depth_func,Gr!==d.depth_func&&(l.depthFunc(Gr),d.depth_func=Gr),Br=G[0],Er=G[1],(Br!==j[0]||Er!==j[1])&&(l.depthRange(Br,Er),j[0]=Br,j[1]=Er),Rr=h.depth_mask,Rr!==d.depth_mask&&(l.depthMask(Rr),d.depth_mask=Rr),pi=W[0],Di=W[1],ni=W[2],$i=W[3],(pi!==N[0]||Di!==N[1]||ni!==N[2]||$i!==N[3])&&(l.colorMask(pi,Di,ni,$i),N[0]=pi,N[1]=Di,N[2]=ni,N[3]=$i),Qi=h.cull_enable,Qi!==d.cull_enable&&(Qi?l.enable(2884):l.disable(2884),d.cull_enable=Qi),si=h.cull_face,si!==d.cull_face&&(l.cullFace(si),d.cull_face=si),Ti=h.frontFace,Ti!==d.frontFace&&(l.frontFace(Ti),d.frontFace=Ti),Ni=h.lineWidth,Ni!==d.lineWidth&&(l.lineWidth(Ni),d.lineWidth=Ni),Rt=h.polygonOffset_enable,Rt!==d.polygonOffset_enable&&(Rt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Rt),yt=H[0],Gt=H[1],(yt!==re[0]||Gt!==re[1])&&(l.polygonOffset(yt,Gt),re[0]=yt,re[1]=Gt),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),xr=h.sample_enable,xr!==d.sample_enable&&(xr?l.enable(32928):l.disable(32928),d.sample_enable=xr),Lr=ae[0],Nr=ae[1],(Lr!==ge[0]||Nr!==ge[1])&&(l.sampleCoverage(Lr,Nr),ge[0]=Lr,ge[1]=Nr),Or=h.stencil_enable,Or!==d.stencil_enable&&(Or?l.enable(2960):l.disable(2960),d.stencil_enable=Or),Hr=h.stencil_mask,Hr!==d.stencil_mask&&(l.stencilMask(Hr),d.stencil_mask=Hr),jr=ze[0],gi=ze[1],ki=ze[2],(jr!==Le[0]||gi!==Le[1]||ki!==Le[2])&&(l.stencilFunc(jr,gi,ki),Le[0]=jr,Le[1]=gi,Le[2]=ki),Vi=de[0],ti=de[1],tn=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||tn!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,tn,Yr),te[0]=Vi,te[1]=ti,te[2]=tn,te[3]=Yr),oi=ke[0],Fi=ke[1],an=ke[2],nn=ke[3],(oi!==Ee[0]||Fi!==Ee[1]||an!==Ee[2]||nn!==Ee[3])&&(l.stencilOpSeparate(oi,Fi,an,nn),Ee[0]=oi,Ee[1]=Fi,Ee[2]=an,Ee[3]=nn),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}ot=f.framebufferWidth,At=f.framebufferHeight,vt=f.viewportWidth,f.viewportWidth=ot,Je=f.viewportHeight,f.viewportHeight=At,l.viewport(0,0,ot,At),xe[0]=0,xe[1]=0,xe[2]=ot,xe[3]=At,He=f.framebufferWidth,nt=f.framebufferHeight,l.scissor(0,0,He,nt),Ge[0]=0,Ge[1]=0,Ge[2]=He,Ge[3]=nt,tt=d.profile,tt&&(It=performance.now(),r.count++),Yt=v.frag,cr=v.vert,_r=v.program(cr,Yt),l.useProgram(_r.program),E.setVAO(null),yr=_r.id,Ut=Ke[yr],Ut?Ut.call(this,wt):(Ut=Ke[yr]=n(_r),Ut.call(this,wt)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=vt,f.viewportHeight=Je,tt&&(r.cpuTime+=performance.now()-It)},scope:function(wt,Mt,Bt){var Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe;Zt=wt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,At=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,Je=f.framebufferHeight,He=f.viewportWidth,f.viewportWidth=vt,nt=f.viewportHeight,f.viewportHeight=Je,tt=De[0],De[0]=i,It=De[1],De[1]=a,Yt=De[2],De[2]=vt,cr=De[3],De[3]=Je,_r=f.framebufferWidth,yr=f.framebufferHeight,Ut=Se[0],Se[0]=o,Re=Se[1],Se[1]=s,be=Se[2],Se[2]=_r,Oe=Se[3],Se[3]=yr,Ie=d.profile,Ie&&(Fe=performance.now(),r.count++),d.dirty=!0,Mt(f,wt,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=At,f.viewportWidth=He,f.viewportHeight=nt,De[0]=tt,De[1]=It,De[2]=Yt,De[3]=cr,Se[0]=Ut,Se[1]=Re,Se[2]=be,Se[3]=Oe,Ie&&(r.cpuTime+=performance.now()-Fe),d.dirty=!0},batch:function(wt,Mt){var Bt,Zt,Et,Ae,ot,At,vt;if(d.dirty){var Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi;Je=h.dither,Je!==d.dither&&(Je?l.enable(3024):l.disable(3024),d.dither=Je),He=h.blend_enable,He!==d.blend_enable&&(He?l.enable(3042):l.disable(3042),d.blend_enable=He),nt=m[0],tt=m[1],It=m[2],Yt=m[3],(nt!==P[0]||tt!==P[1]||It!==P[2]||Yt!==P[3])&&(l.blendColor(nt,tt,It,Yt),P[0]=nt,P[1]=tt,P[2]=It,P[3]=Yt),cr=A[0],_r=A[1],(cr!==F[0]||_r!==F[1])&&(l.blendEquationSeparate(cr,_r),F[0]=cr,F[1]=_r),yr=B[0],Ut=B[1],Re=B[2],be=B[3],(yr!==U[0]||Ut!==U[1]||Re!==U[2]||be!==U[3])&&(l.blendFuncSeparate(yr,Ut,Re,be),U[0]=yr,U[1]=Ut,U[2]=Re,U[3]=be),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Ie=h.depth_func,Ie!==d.depth_func&&(l.depthFunc(Ie),d.depth_func=Ie),Fe=G[0],ft=G[1],(Fe!==j[0]||ft!==j[1])&&(l.depthRange(Fe,ft),j[0]=Fe,j[1]=ft),ye=h.depth_mask,ye!==d.depth_mask&&(l.depthMask(ye),d.depth_mask=ye),fe=W[0],pe=W[1],dt=W[2],Pt=W[3],(fe!==N[0]||pe!==N[1]||dt!==N[2]||Pt!==N[3])&&(l.colorMask(fe,pe,dt,Pt),N[0]=fe,N[1]=pe,N[2]=dt,N[3]=Pt),zt=h.cull_enable,zt!==d.cull_enable&&(zt?l.enable(2884):l.disable(2884),d.cull_enable=zt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Gr=h.frontFace,Gr!==d.frontFace&&(l.frontFace(Gr),d.frontFace=Gr),Br=h.lineWidth,Br!==d.lineWidth&&(l.lineWidth(Br),d.lineWidth=Br),Er=h.polygonOffset_enable,Er!==d.polygonOffset_enable&&(Er?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Er),Rr=H[0],pi=H[1],(Rr!==re[0]||pi!==re[1])&&(l.polygonOffset(Rr,pi),re[0]=Rr,re[1]=pi),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),ni=h.sample_enable,ni!==d.sample_enable&&(ni?l.enable(32928):l.disable(32928),d.sample_enable=ni),$i=ae[0],Qi=ae[1],($i!==ge[0]||Qi!==ge[1])&&(l.sampleCoverage($i,Qi),ge[0]=$i,ge[1]=Qi),si=h.stencil_enable,si!==d.stencil_enable&&(si?l.enable(2960):l.disable(2960),d.stencil_enable=si),Ti=h.stencil_mask,Ti!==d.stencil_mask&&(l.stencilMask(Ti),d.stencil_mask=Ti),Ni=ze[0],Rt=ze[1],yt=ze[2],(Ni!==Le[0]||Rt!==Le[1]||yt!==Le[2])&&(l.stencilFunc(Ni,Rt,yt),Le[0]=Ni,Le[1]=Rt,Le[2]=yt),Gt=de[0],Wt=de[1],xr=de[2],Lr=de[3],(Gt!==te[0]||Wt!==te[1]||xr!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Gt,Wt,xr,Lr),te[0]=Gt,te[1]=Wt,te[2]=xr,te[3]=Lr),Nr=ke[0],Or=ke[1],Hr=ke[2],jr=ke[3],(Nr!==Ee[0]||Or!==Ee[1]||Hr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Nr,Or,Hr,jr),Ee[0]=Nr,Ee[1]=Or,Ee[2]=Hr,Ee[3]=jr),gi=h.scissor_enable,gi!==d.scissor_enable&&(gi?l.enable(3089):l.disable(3089),d.scissor_enable=gi)}Bt=d.profile,Bt&&(Zt=performance.now(),r.count+=Mt),Et=v.frag,Ae=v.vert,ot=v.program(Ae,Et),l.useProgram(ot.program),E.setVAO(null),At=ot.id,vt=Ct[At],vt?vt.call(this,wt,Mt):(vt=Ct[At]=u(ot),vt.call(this,wt,Mt)),d.dirty=!0,E.setVAO(null),Bt&&(r.cpuTime+=performance.now()-Zt)}}}});var LVe=Te((Zbr,CVe)=>{CVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt;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,_=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,F=l.depth_range,B=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,ge=l.stencil_opFront,ze=u.stencil_opBack,Le=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.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},Ge={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},De={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},xe={add:32774,subtract:32778,"reverse subtract":32779},Ne={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},Qe={},gt={},{draw:function(qt){var at,Ke,Ct,wt,Mt,Bt,Zt,Et;if(at=v.next,at!==v.cur&&(at?a.bindFramebuffer(36160,at.framebuffer):a.bindFramebuffer(36160,null),v.cur=at),l.dirty){var Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),ot=u.blend_enable,ot!==l.blend_enable&&(ot?a.enable(3042):a.disable(3042),l.blend_enable=ot),At=L[0],vt=L[1],Je=L[2],He=L[3],(At!==x[0]||vt!==x[1]||Je!==x[2]||He!==x[3])&&(a.blendColor(At,vt,Je,He),x[0]=At,x[1]=vt,x[2]=Je,x[3]=He),nt=k[0],tt=k[1],(nt!==M[0]||tt!==M[1])&&(a.blendEquationSeparate(nt,tt),M[0]=nt,M[1]=tt),It=m[0],Yt=m[1],cr=m[2],_r=m[3],(It!==P[0]||Yt!==P[1]||cr!==P[2]||_r!==P[3])&&(a.blendFuncSeparate(It,Yt,cr,_r),P[0]=It,P[1]=Yt,P[2]=cr,P[3]=_r),yr=u.depth_enable,yr!==l.depth_enable&&(yr?a.enable(2929):a.disable(2929),l.depth_enable=yr),Ut=u.depth_func,Ut!==l.depth_func&&(a.depthFunc(Ut),l.depth_func=Ut),Re=A[0],be=A[1],(Re!==F[0]||be!==F[1])&&(a.depthRange(Re,be),F[0]=Re,F[1]=be),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Ie=B[0],Fe=B[1],ft=B[2],ye=B[3],(Ie!==U[0]||Fe!==U[1]||ft!==U[2]||ye!==U[3])&&(a.colorMask(Ie,Fe,ft,ye),U[0]=Ie,U[1]=Fe,U[2]=ft,U[3]=ye),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),pe=u.cull_face,pe!==l.cull_face&&(a.cullFace(pe),l.cull_face=pe),dt=u.frontFace,dt!==l.frontFace&&(a.frontFace(dt),l.frontFace=dt),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),zt=u.polygonOffset_enable,zt!==l.polygonOffset_enable&&(zt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=zt),rr=G[0],Gr=G[1],(rr!==j[0]||Gr!==j[1])&&(a.polygonOffset(rr,Gr),j[0]=rr,j[1]=Gr),Br=u.sample_alpha,Br!==l.sample_alpha&&(Br?a.enable(32926):a.disable(32926),l.sample_alpha=Br),Er=u.sample_enable,Er!==l.sample_enable&&(Er?a.enable(32928):a.disable(32928),l.sample_enable=Er),Rr=W[0],pi=W[1],(Rr!==N[0]||pi!==N[1])&&(a.sampleCoverage(Rr,pi),N[0]=Rr,N[1]=pi),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),ni=u.stencil_mask,ni!==l.stencil_mask&&(a.stencilMask(ni),l.stencil_mask=ni),$i=H[0],Qi=H[1],si=H[2],($i!==re[0]||Qi!==re[1]||si!==re[2])&&(a.stencilFunc($i,Qi,si),re[0]=$i,re[1]=Qi,re[2]=si),Ti=ae[0],Ni=ae[1],Rt=ae[2],yt=ae[3],(Ti!==ge[0]||Ni!==ge[1]||Rt!==ge[2]||yt!==ge[3])&&(a.stencilOpSeparate(Ti,Ni,Rt,yt),ge[0]=Ti,ge[1]=Ni,ge[2]=Rt,ge[3]=yt),Gt=ze[0],Wt=ze[1],xr=ze[2],Lr=ze[3],(Gt!==Le[0]||Wt!==Le[1]||xr!==Le[2]||Lr!==Le[3])&&(a.stencilOpSeparate(Gt,Wt,xr,Lr),Le[0]=Gt,Le[1]=Wt,Le[2]=xr,Le[3]=Lr),Nr=u.scissor_enable,Nr!==l.scissor_enable&&(Nr?a.enable(3089):a.disable(3089),l.scissor_enable=Nr),Or=de[0],Hr=de[1],jr=de[2],gi=de[3],(Or!==te[0]||Hr!==te[1]||jr!==te[2]||gi!==te[3])&&(a.scissor(Or,Hr,jr,gi),te[0]=Or,te[1]=Hr,te[2]=jr,te[3]=gi),ki=ke[0],Vi=ke[1],ti=ke[2],tn=ke[3],(ki!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||tn!==Ee[3])&&(a.viewport(ki,Vi,ti,tn),Ee[0]=ki,Ee[1]=Vi,Ee[2]=ti,Ee[3]=tn),l.dirty=!1}Ke=l.profile,Ke&&(Ct=performance.now(),r.count++),wt=d.frag,Mt=d.vert,Bt=d.program(Mt,wt),a.useProgram(Bt.program),_.setVAO(null),Zt=Bt.id,Et=Qe[Zt],Et?Et.call(this,qt):(Et=Qe[Zt]=n(Bt),Et.call(this,qt)),_.setVAO(null),Ke&&(r.cpuTime+=performance.now()-Ct)},scope:function(qt,at,Ke){var Ct,wt;Ct=l.profile,Ct&&(wt=performance.now(),r.count++),at(o,qt,Ke),Ct&&(r.cpuTime+=performance.now()-wt)},batch:function(qt,at){var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae;if(Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),At=u.blend_enable,At!==l.blend_enable&&(At?a.enable(3042):a.disable(3042),l.blend_enable=At),vt=L[0],Je=L[1],He=L[2],nt=L[3],(vt!==x[0]||Je!==x[1]||He!==x[2]||nt!==x[3])&&(a.blendColor(vt,Je,He,nt),x[0]=vt,x[1]=Je,x[2]=He,x[3]=nt),tt=k[0],It=k[1],(tt!==M[0]||It!==M[1])&&(a.blendEquationSeparate(tt,It),M[0]=tt,M[1]=It),Yt=m[0],cr=m[1],_r=m[2],yr=m[3],(Yt!==P[0]||cr!==P[1]||_r!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Yt,cr,_r,yr),P[0]=Yt,P[1]=cr,P[2]=_r,P[3]=yr),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),be=A[0],Oe=A[1],(be!==F[0]||Oe!==F[1])&&(a.depthRange(be,Oe),F[0]=be,F[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),Fe=B[0],ft=B[1],ye=B[2],fe=B[3],(Fe!==U[0]||ft!==U[1]||ye!==U[2]||fe!==U[3])&&(a.colorMask(Fe,ft,ye,fe),U[0]=Fe,U[1]=ft,U[2]=ye,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),zt=u.lineWidth,zt!==l.lineWidth&&(a.lineWidth(zt),l.lineWidth=zt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Gr=G[0],Br=G[1],(Gr!==j[0]||Br!==j[1])&&(a.polygonOffset(Gr,Br),j[0]=Gr,j[1]=Br),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Rr=u.sample_enable,Rr!==l.sample_enable&&(Rr?a.enable(32928):a.disable(32928),l.sample_enable=Rr),pi=W[0],Di=W[1],(pi!==N[0]||Di!==N[1])&&(a.sampleCoverage(pi,Di),N[0]=pi,N[1]=Di),ni=u.stencil_enable,ni!==l.stencil_enable&&(ni?a.enable(2960):a.disable(2960),l.stencil_enable=ni),$i=u.stencil_mask,$i!==l.stencil_mask&&(a.stencilMask($i),l.stencil_mask=$i),Qi=H[0],si=H[1],Ti=H[2],(Qi!==re[0]||si!==re[1]||Ti!==re[2])&&(a.stencilFunc(Qi,si,Ti),re[0]=Qi,re[1]=si,re[2]=Ti),Ni=ae[0],Rt=ae[1],yt=ae[2],Gt=ae[3],(Ni!==ge[0]||Rt!==ge[1]||yt!==ge[2]||Gt!==ge[3])&&(a.stencilOpSeparate(Ni,Rt,yt,Gt),ge[0]=Ni,ge[1]=Rt,ge[2]=yt,ge[3]=Gt),Wt=ze[0],xr=ze[1],Lr=ze[2],Nr=ze[3],(Wt!==Le[0]||xr!==Le[1]||Lr!==Le[2]||Nr!==Le[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Nr),Le[0]=Wt,Le[1]=xr,Le[2]=Lr,Le[3]=Nr),Or=u.scissor_enable,Or!==l.scissor_enable&&(Or?a.enable(3089):a.disable(3089),l.scissor_enable=Or),Hr=de[0],jr=de[1],gi=de[2],ki=de[3],(Hr!==te[0]||jr!==te[1]||gi!==te[2]||ki!==te[3])&&(a.scissor(Hr,jr,gi,ki),te[0]=Hr,te[1]=jr,te[2]=gi,te[3]=ki),Vi=ke[0],ti=ke[1],tn=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||tn!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,tn,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=tn,Ee[3]=Yr),l.dirty=!1}Ct=l.profile,Ct&&(wt=performance.now(),r.count+=at),Mt=d.frag,Bt=d.vert,Zt=d.program(Bt,Mt),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=gt[Et],Ae?Ae.call(this,qt,at):(Ae=gt[Et]=i(Zt),Ae.call(this,qt,at)),_.setVAO(null),Ct&&(r.cpuTime+=performance.now()-wt)}}}});var zVe=Te((Ybr,PVe)=>{PVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,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,Ba=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},Oa={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),un=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),rn=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(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir;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),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,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),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ue=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ue!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ue),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ue),rt=ps[0],mt=ps[1],Ft=ps[2],ir=ps[3],(rt!==co[0]||mt!==co[1]||Ft!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(rt,mt,Ft,ir),co[0]=rt,co[1]=mt,co[2]=Ft,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.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),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.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),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==_.dtype||rl.size!==4||rl.buffer!==_||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(Oo,4,_.dtype,!1,0,0),rl.type=_.dtype,rl.size=4,rl.buffer=_,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=T.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=M.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=F.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==B.dtype||io.size!==4||io.buffer!==B||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,B.buffer),Kr.vertexAttribPointer(zo,4,B.dtype,!1,0,0),io.type=B.dtype,io.size=4,io.buffer=B,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=ge.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=Le.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==ze.dtype||Fs.size!==4||Fs.buffer!==ze||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,ze.buffer),Kr.vertexAttribPointer(tl,4,ze.dtype,!1,0,0),Fs.type=ze.dtype,Fs.size=4,Fs.buffer=ze,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=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],Tt=Rs[2],Vt=Rs[3],Kr.uniform4f(Se.location,Is,Bs,Tt,Vt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ge.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),mr=ln.dim0B,Kr.uniformMatrix4fv(De.location,!1,Array.isArray(mr)||mr instanceof Float32Array?mr:(Ra[0]=mr[0],Ra[1]=mr[1],Ra[2]=mr[2],Ra[3]=mr[3],Ra[4]=mr[4],Ra[5]=mr[5],Ra[6]=mr[6],Ra[7]=mr[7],Ra[8]=mr[8],Ra[9]=mr[9],Ra[10]=mr[10],Ra[11]=mr[11],Ra[12]=mr[12],Ra[13]=mr[13],Ra[14]=mr[14],Ra[15]=mr[15],Ra)),Fr=ln.dim0C,Kr.uniformMatrix4fv(xe.location,!1,Array.isArray(Fr)||Fr instanceof Float32Array?Fr:(Xn[0]=Fr[0],Xn[1]=Fr[1],Xn[2]=Fr[2],Xn[3]=Fr[3],Xn[4]=Fr[4],Xn[5]=Fr[5],Xn[6]=Fr[6],Xn[7]=Fr[7],Xn[8]=Fr[8],Xn[9]=Fr[9],Xn[10]=Fr[10],Xn[11]=Fr[11],Xn[12]=Fr[12],Xn[13]=Fr[13],Xn[14]=Fr[14],Xn[15]=Fr[15],Xn)),_i=ln.dim0D,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(_i)||_i instanceof Float32Array?_i:(un[0]=_i[0],un[1]=_i[1],un[2]=_i[2],un[3]=_i[3],un[4]=_i[4],un[5]=_i[5],un[6]=_i[6],un[7]=_i[7],un[8]=_i[8],un[9]=_i[9],un[10]=_i[10],un[11]=_i[11],un[12]=_i[12],un[13]=_i[13],un[14]=_i[14],un[15]=_i[15],un)),Si=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:($n[0]=Si[0],$n[1]=Si[1],$n[2]=Si[2],$n[3]=Si[3],$n[4]=Si[4],$n[5]=Si[5],$n[6]=Si[6],$n[7]=Si[7],$n[8]=Si[8],$n[9]=Si[9],$n[10]=Si[10],$n[11]=Si[11],$n[12]=Si[12],$n[13]=Si[13],$n[14]=Si[14],$n[15]=Si[15],$n)),Ci=ln.dim1B,Kr.uniformMatrix4fv(je.location,!1,Array.isArray(Ci)||Ci instanceof Float32Array?Ci:(Ka[0]=Ci[0],Ka[1]=Ci[1],Ka[2]=Ci[2],Ka[3]=Ci[3],Ka[4]=Ci[4],Ka[5]=Ci[5],Ka[6]=Ci[6],Ka[7]=Ci[7],Ka[8]=Ci[8],Ka[9]=Ci[9],Ka[10]=Ci[10],Ka[11]=Ci[11],Ka[12]=Ci[12],Ka[13]=Ci[13],Ka[14]=Ci[14],Ka[15]=Ci[15],Ka)),Ki=ln.dim1C,Kr.uniformMatrix4fv(Qe.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=ln.dim1D,Kr.uniformMatrix4fv(gt.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)),Pi=ln.drwLayer,Kr.uniform1f(qt.location,Pi),di=ln.hiA,Kr.uniformMatrix4fv(at.location,!1,Array.isArray(di)||di instanceof Float32Array?di:(Ja[0]=di[0],Ja[1]=di[1],Ja[2]=di[2],Ja[3]=di[3],Ja[4]=di[4],Ja[5]=di[5],Ja[6]=di[6],Ja[7]=di[7],Ja[8]=di[8],Ja[9]=di[9],Ja[10]=di[10],Ja[11]=di[11],Ja[12]=di[12],Ja[13]=di[13],Ja[14]=di[14],Ja[15]=di[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Mi=ln.hiC,Kr.uniformMatrix4fv(Ct.location,!1,Array.isArray(Mi)||Mi instanceof Float32Array?Mi:(eo[0]=Mi[0],eo[1]=Mi[1],eo[2]=Mi[2],eo[3]=Mi[3],eo[4]=Mi[4],eo[5]=Mi[5],eo[6]=Mi[6],eo[7]=Mi[7],eo[8]=Mi[8],eo[9]=Mi[9],eo[10]=Mi[10],eo[11]=Mi[11],eo[12]=Mi[12],eo[13]=Mi[13],eo[14]=Mi[14],eo[15]=Mi[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(wt.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=ln.loA,Kr.uniformMatrix4fv(Mt.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=ln.loB,Kr.uniformMatrix4fv(Bt.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=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(rn[0]=ia[0],rn[1]=ia[1],rn[2]=ia[2],rn[3]=ia[3],rn[4]=ia[4],rn[5]=ia[5],rn[6]=ia[6],rn[7]=ia[7],rn[8]=ia[8],rn[9]=ia[9],rn[10]=ia[10],rn[11]=ia[11],rn[12]=ia[12],rn[13]=ia[13],rn[14]=ia[14],rn[15]=ia[15],rn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.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=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(ot.location,is.bind()),Kr.uniform1i(At.location,vt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(Je.location,Ks,dl),xl=ln.viewBoxPos,Bl=xl[0],bl=xl[1],Kr.uniform2f(He.location,Bl,bl),eu=ln.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(nt.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=ln.offset,Js=ln.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(),vt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf,fc,Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr,xi,dn,En,Zi,ga,Kn,hs,Ji,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,al,pl,Dl,Bu,vf,Ql,Ef,Cu,gf,xf,Cf,Gu,cf,mf,Fl,bf,cu,Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr,Mr,lr,$e,ht,bt,Kt,sr,Qt,ur,er,Ot,Jt,Lt,Tr,Ur,hi,Cn,Yi,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,ru,yu,Fu,vu,zu,Ju,Vf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.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]=It,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=cr,Ea=fa.blend_enable,fa.blend_enable=_r,Jn=gn[0],gn[0]=yr,Oo=gn[1],gn[1]=Ut,rl=Ha[0],Ha[0]=Re,Gs=Ha[1],Ha[1]=be,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Ie,$o=fa.cull_enable,fa.cull_enable=Fe,Aa=fa.cull_face,fa.cull_face=ft,os=fa.depth_enable,fa.depth_enable=ye,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=pe,po=ao[0],ao[0]=dt,go=ao[1],ao[1]=Pt,ss=fa.dither,fa.dither=zt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.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=Gr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Br,Tt=mn[Rr],mn[Rr]=Er,Vt=ln.resolution,wr=mn[pi],mn[pi]=Vt,mr=ln.viewBoxPos,Fr=mn[Di],mn[Di]=mr,_i=ln.viewBoxSize,Si=mn[ni],mn[ni]=_i,Ci=ln.dim0A,Ki=mn[$i],mn[$i]=Ci,Fn=ln.dim1A,Pi=mn[Qi],mn[Qi]=Fn,di=ln.dim0B,Li=mn[si],mn[si]=di,Mi=ln.dim1B,Gn=mn[Ti],mn[Ti]=Mi,ta=ln.dim0C,ya=mn[Ni],mn[Ni]=ta,ia=ln.dim1C,pa=mn[Rt],mn[Rt]=ia,va=ln.dim0D,zn=mn[yt],mn[yt]=va,is=ln.dim1D,Cs=mn[Gt],mn[Gt]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Bl=mn[xr],mn[xr]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Vl=mn[Nr],mn[Nr]=Zl,ja=ln.loC,ns=mn[Or],mn[Or]=ja,Js=ln.hiC,cs=mn[Hr],mn[Hr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,nl=ln.hiD,zl=mn[gi],mn[gi]=nl,Ml=ln.contextColor,Rl=mn[ki],mn[ki]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Gl=mn[tn],mn[tn]=Xl,Nl=Yr.state,Yr.state=1,le=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=_,ue=Yr.size,Yr.size=0,Ue=Yr.normalized,Yr.normalized=!1,rt=Yr.type,Yr.type=_.dtype,mt=Yr.offset,Yr.offset=0,Ft=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Me=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,Ve=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,it=oi.type,oi.type=v.dtype,pt=oi.offset,oi.offset=0,Ht=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,fr=Fi.state,Fi.state=1,Ar=Fi.x,Fi.x=0,Ir=Fi.y,Fi.y=0,ri=Fi.z,Fi.z=0,li=Fi.w,Fi.w=0,Ei=Fi.buffer,Fi.buffer=E,hn=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=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,Ol=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,nu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Hu=an.stride,an.stride=0,$u=an.divisor,an.divisor=0,Ku=nn.state,nn.state=1,Wu=nn.x,nn.x=0,ju=nn.y,nn.y=0,sf=nn.z,nn.z=0,_f=nn.w,nn.w=0,Qu=nn.buffer,nn.buffer=k,ef=nn.size,nn.size=0,Z=nn.normalized,nn.normalized=!1,se=nn.type,nn.type=k.dtype,Pe=nn.offset,nn.offset=0,Ze=nn.stride,nn.stride=0,et=nn.divisor,nn.divisor=0,st=Ri.state,Ri.state=1,jt=Ri.x,Ri.x=0,_t=Ri.y,Ri.y=0,hr=Ri.z,Ri.z=0,Cr=Ri.w,Ri.w=0,zr=Ri.buffer,Ri.buffer=m,fi=Ri.size,Ri.size=0,$r=Ri.normalized,Ri.normalized=!1,Bi=Ri.type,Ri.type=m.dtype,fn=Ri.offset,Ri.offset=0,mi=Ri.stride,Ri.stride=0,zi=Ri.divisor,Ri.divisor=0,ji=Ii.state,Ii.state=1,pn=Ii.x,Ii.x=0,sn=Ii.y,Ii.y=0,wi=Ii.z,Ii.z=0,xo=Ii.w,Ii.w=0,no=Ii.buffer,Ii.buffer=A,Xo=Ii.size,Ii.size=0,js=Ii.normalized,Ii.normalized=!1,El=Ii.type,Ii.type=A.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=B,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,lf=xn.type,xn.type=B.dtype,hf=xn.offset,xn.offset=0,Mf=xn.stride,xn.stride=0,pf=xn.divisor,xn.divisor=0,fc=bi.state,bi.state=1,Be=bi.x,bi.x=0,Nt=bi.y,bi.y=0,ar=bi.z,bi.z=0,Qr=bi.w,bi.w=0,yi=bi.buffer,bi.buffer=G,ci=bi.size,bi.size=0,vi=bi.normalized,bi.normalized=!1,on=bi.type,bi.type=G.dtype,Bn=bi.offset,bi.offset=0,Ln=bi.stride,bi.stride=0,wn=bi.divisor,bi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,qi=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,xi=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=ct.state,ct.state=1,Ui=ct.x,ct.x=0,ro=ct.y,ct.y=0,na=ct.z,ct.z=0,On=ct.w,ct.w=0,In=ct.buffer,ct.buffer=H,Va=ct.size,ct.size=0,_s=ct.normalized,ct.normalized=!1,ul=ct.type,ct.type=H.dtype,Qn=ct.offset,ct.offset=0,Mo=ct.stride,ct.stride=0,al=ct.divisor,ct.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Bu=tr.y,tr.y=0,vf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,Ef=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,gf=tr.normalized,tr.normalized=!1,xf=tr.type,tr.type=ae.dtype,Cf=tr.offset,tr.offset=0,Gu=tr.stride,tr.stride=0,cf=tr.divisor,tr.divisor=0,mf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,bf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=ze,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=ze.dtype,_e=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Ce=pr.divisor,pr.divisor=0,Ye=gr.state,gr.state=1,kt=gr.x,gr.x=0,dr=gr.y,gr.y=0,Mr=gr.z,gr.z=0,lr=gr.w,gr.w=0,$e=gr.buffer,gr.buffer=de,ht=gr.size,gr.size=0,bt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=de.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,ur=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,Ur=Zr.buffer,Zr.buffer=ke,hi=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Yi=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Fu=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,Ju=Ai.stride,Ai.stride=0,Vf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=en,Ad=ls.frag,ls.frag=ii,kn.dirty=!0,Bo(Ia,ln,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]=Oo,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=Bs,mn[Rr]=Tt,mn[pi]=wr,mn[Di]=Fr,mn[ni]=Si,mn[$i]=Ki,mn[Qi]=Pi,mn[si]=Li,mn[Ti]=Gn,mn[Ni]=ya,mn[Rt]=pa,mn[yt]=zn,mn[Gt]=Cs,mn[Wt]=dl,mn[xr]=Bl,mn[Lr]=eu,mn[Nr]=Vl,mn[Or]=ns,mn[Hr]=cs,mn[jr]=ll,mn[gi]=zl,mn[ki]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[tn]=Gl,Yr.state=Nl,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ue,Yr.type=rt,Yr.offset=mt,Yr.stride=Ft,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Me,oi.buffer=qe,oi.size=Ve,oi.normalized=lt,oi.type=it,oi.offset=pt,oi.stride=Ht,oi.divisor=nr,Fi.state=fr,Fi.x=Ar,Fi.y=Ir,Fi.z=ri,Fi.w=li,Fi.buffer=Ei,Fi.size=hn,Fi.normalized=Zn,Fi.type=Yn,Fi.offset=Ua,Fi.stride=Fo,Fi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=Ol,an.size=ou,an.normalized=Pu,an.type=nu,an.offset=tu,an.stride=Hu,an.divisor=$u,nn.state=Ku,nn.x=Wu,nn.y=ju,nn.z=sf,nn.w=_f,nn.buffer=Qu,nn.size=ef,nn.normalized=Z,nn.type=se,nn.offset=Pe,nn.stride=Ze,nn.divisor=et,Ri.state=st,Ri.x=jt,Ri.y=_t,Ri.z=hr,Ri.w=Cr,Ri.buffer=zr,Ri.size=fi,Ri.normalized=$r,Ri.type=Bi,Ri.offset=fn,Ri.stride=mi,Ri.divisor=zi,Ii.state=ji,Ii.x=pn,Ii.y=sn,Ii.z=wi,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,bi.state=fc,bi.x=Be,bi.y=Nt,bi.z=ar,bi.w=Qr,bi.buffer=yi,bi.size=ci,bi.normalized=vi,bi.type=on,bi.offset=Bn,bi.stride=Ln,bi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=qi,Xr.w=Wr,Xr.buffer=xi,Xr.size=dn,Xr.normalized=En,Xr.type=Zi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ct.state=Ji,ct.x=Ui,ct.y=ro,ct.z=na,ct.w=On,ct.buffer=In,ct.size=Va,ct.normalized=_s,ct.type=ul,ct.offset=Qn,ct.stride=Mo,ct.divisor=al,tr.state=pl,tr.x=Dl,tr.y=Bu,tr.z=vf,tr.w=Ql,tr.buffer=Ef,tr.size=Cu,tr.normalized=gf,tr.type=xf,tr.offset=Cf,tr.stride=Gu,tr.divisor=cf,pr.state=mf,pr.x=Fl,pr.y=bf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=_e,pr.stride=ne,pr.divisor=Ce,gr.state=Ye,gr.x=kt,gr.y=dr,gr.z=Mr,gr.w=lr,gr.buffer=$e,gr.size=ht,gr.normalized=bt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=ur,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=Ur,Zr.size=hi,Zr.normalized=Cn,Zr.type=Yi,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=Tn,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Fu,Ai.type=vu,Ai.offset=zu,Ai.stride=Ju,Ai.divisor=Vf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){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,Oo,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),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,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),Ba[0]=0,Ba[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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci;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!==_.dtype||go.size!==4||go.buffer!==_||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(po,4,_.dtype,!1,0,0),go.type=_.dtype,go.size=4,go.buffer=_,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=T.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=M.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=F.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==B.dtype||Fs.size!==4||Fs.buffer!==B||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,B.buffer),Kr.vertexAttribPointer(tl,4,B.dtype,!1,0,0),Fs.type=B.dtype,Fs.size=4,Fs.buffer=B,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),Bs=ge.location,Tt=$a[Bs],Tt.buffer||Kr.enableVertexAttribArray(Bs),(Tt.type!==ae.dtype||Tt.size!==4||Tt.buffer!==ae||Tt.normalized!==!1||Tt.offset!==0||Tt.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),Tt.type=ae.dtype,Tt.size=4,Tt.buffer=ae,Tt.normalized=!1,Tt.offset=0,Tt.stride=0),Vt=Le.location,wr=$a[Vt],wr.buffer||Kr.enableVertexAttribArray(Vt),(wr.type!==ze.dtype||wr.size!==4||wr.buffer!==ze||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,ze.buffer),Kr.vertexAttribPointer(Vt,4,ze.dtype,!1,0,0),wr.type=ze.dtype,wr.size=4,wr.buffer=ze,wr.normalized=!1,wr.offset=0,wr.stride=0),mr=te.location,Fr=$a[mr],Fr.buffer||Kr.enableVertexAttribArray(mr),(Fr.type!==de.dtype||Fr.size!==4||Fr.buffer!==de||Fr.normalized!==!1||Fr.offset!==0||Fr.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(mr,4,de.dtype,!1,0,0),Fr.type=de.dtype,Fr.size=4,Fr.buffer=de,Fr.normalized=!1,Fr.offset=0,Fr.stride=0),_i=Ee.location,Si=$a[_i],Si.buffer||Kr.enableVertexAttribArray(_i),(Si.type!==ke.dtype||Si.size!==4||Si.buffer!==ke||Si.normalized!==!1||Si.offset!==0||Si.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(_i,4,ke.dtype,!1,0,0),Si.type=ke.dtype,Si.size=4,Si.buffer=ke,Si.normalized=!1,Si.offset=0,Si.stride=0),Kr.uniform1i(At.location,vt.bind()),Ci=Ta.elements,Ci?Kr.bindBuffer(34963,Ci.buffer.buffer):fo.currentVAO&&(Ci=ys.getElements(fo.currentVAO.elements),Ci&&Kr.bindBuffer(34963,Ci.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Ir),Ia.viewportWidth=ya,Ia.viewportHeight=ia,mt.unbind())}vt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var RVe=Te((Kbr,IVe)=>{"use strict";var vWt=MVe(),mWt=kVe(),yWt=LVe(),gWt=zVe();IVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":vWt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":mWt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:yWt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":gWt}});var BVe=Te((Jbr,FVe)=>{"use strict";var DVe=nJ(),_Wt=RVe();Object.assign(DVe.reglPrecompiled,_Wt);FVe.exports=DVe});var NVe=Te(($br,qVe)=>{"use strict";var OVe=TVe();OVe.plot=BVe();qVe.exports=OVe});var aJ=Te((Qbr,WVe)=>{"use strict";var VVe=Su().extendFlat,xWt=Gf(),UVe=gc(),bWt=nc(),{hovertemplateAttrs:GVe,templatefallbackAttrs:HVe}=Ff(),wWt=zc().attributes,AWt=VVe({editType:"calc"},bWt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:GVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:HVe({editType:"plot"})});WVe.exports={domain:wWt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:VVe({},xWt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:GVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:HVe({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:UVe({editType:"calc"}),tickfont:UVe({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:AWt,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 ZVe=Te((e2r,XVe)=>{"use strict";var MS=ei(),TWt=yp().hasColorscale,SWt=nd(),MWt=zc().defaults,EWt=Kd(),jVe=aJ(),kWt=V8(),CWt=mp().isTypedArraySpec;function LWt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(TWt(e,"line")&&MS.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SWt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function PWt(e,t){function r(l,f){return MS.coerce(e,t,jVe.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=MS.isArrayOrTypedArray(a)&&a.length>0||CWt(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")}}XVe.exports=function(t,r,n,i){function a(l,f){return MS.coerce(t,r,jVe,l,f)}var o=EWt(t,r,{name:"dimensions",handleItemDefaults:PWt}),s=LWt(t,r,n,i,a);MWt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),kWt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;MS.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),MS.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var KVe=Te((t2r,YVe)=>{"use strict";var zWt=ig().wrap,IWt=yp().hasColorscale,RWt=gp(),DWt=cq(),FWt=Mu(),Gk=ei(),BWt=ku();YVe.exports=function(t,r){var n=Gk.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=DWt(m.values);for(var A=!0,F=0;F=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var aGe=Te((r2r,nGe)=>{"use strict";var Uf=Jl(),ZWt=(H2(),vb(G2)).interpolateNumber,YWt=Zz(),jk=Xc(),Ex=ei(),Hk=Ex.strTranslate,JVe=Mu(),oJ=hd(),KWt=Wf();function JWt(e,t,r,n){var i=t._context.staticPlot,a=e.map(hjt.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 Hk(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);uJ(c),f.attr("d",function(C){return C.svgD}),c.empty()||f.sort(sJ),f.exit().remove(),f.on("mouseover",$Wt).on("mouseout",QWt).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},m1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return Hk(C.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(C){return C.categories},m1),_=p.enter().append("g").attr("class","category");p.attr("transform",function(C){return Hk(0,C.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}),QVe(_);var b=p.selectAll("rect.bandrect").data(function(C){return C.bands},m1);b.each(function(){Ex.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"}),cJ(v),b.exit().remove(),_.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(C){return Wk(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return Wk(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){JVe.font(Uf.select(this),C.parcatsViewModel.categorylabelfont),KWt.convertToTspans(Uf.select(this),t)}),_.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){JVe.font(Uf.select(this),C.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",sjt).on("mouseout",ljt),p.exit().remove(),d.call(Uf.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",ujt).on("drag",fjt).on("dragend",cjt)),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()}nGe.exports=function(e,t,r,n){JWt(r,e,n,t)};function m1(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 sJ(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Uf.mouse(i)[0];jk.loneHover({trace:a,x:p-s.left+u.left,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,_=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:_,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:_,probability:b}]}}function ajt(e,t,r){var n=[];return Uf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(eGe(e,t,i))}),n}function ojt(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,_=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/_,T=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): "+T.toFixed(3)),k.push("P(color | "+p+"): "+L.toFixed(3)));var M=k.join("
"),m=oJ.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:M,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:_,probability:E,categorycount:v,colorcount:C,bandcolorcount:b}]}}function sjt(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"?(njt(o),dJ(o,"plotly_hover",Uf.event)):(ijt(o),hJ(o,"plotly_hover",Uf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=eGe(r,i,o):a==="color"?s=ojt(r,i,o):a==="dimension"&&(s=ajt(r,i,o)),s&&jk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function ljt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(uJ(t.pathSelection),QVe(t.dimensionSelection.selectAll("g.category")),cJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),jk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(sJ),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?dJ(n,"plotly_unhover",Uf.event):hJ(n,"plotly_unhover",Uf.event)}}function ujt(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,Ex.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}vJ(e.parcatsViewModel),pJ(e.parcatsViewModel),iGe(e.parcatsViewModel),rGe(e.parcatsViewModel)}}function cjt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Uf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=tGe(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"?dJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent):hJ(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,vJ(e.parcatsViewModel),pJ(e.parcatsViewModel);var c=Uf.transition().duration(300).ease("cubic-in-out");c.each(function(){iGe(e.parcatsViewModel,!0),rGe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&YWt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function tGe(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 pJ(e){var t=e.dimensions,r=e.model,n=t.map(function(B){return B.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(B){return B.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(B){return B.displayInd}),o=e.dimensions.map(function(B){return B.model.dimensionInd}),s=t.map(function(B){return B.x}),u=t.map(function(B){return B.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(B){var U=B.categoryInds.map(function(j,W){return i[W][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(B,U){var G=c(B),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(B.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(B.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(B){return B.height}).reduce(function(B,U){return B+U}),_=0;_0?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),_,b,v,C,E,T=(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?_=b.count/d*p:_=0,v={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+_+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 mJ=Te((i2r,oGe)=>{"use strict";var pjt=aGe();oGe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;pjt(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 lGe=Te(aB=>{"use strict";var vjt=Rd().getModuleCalcData,mjt=mJ(),sGe="parcats";aB.name=sGe;aB.plot=function(e,t,r,n){var i=vjt(e.calcdata,sGe);if(i.length){var a=i[0];mjt(e,a,r,n)}};aB.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 fGe=Te((a2r,uGe)=>{"use strict";uGe.exports={attributes:aJ(),supplyDefaults:ZVe(),calc:KVe(),plot:mJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:lGe(),categories:["noOpacity"],meta:{}}});var hGe=Te((o2r,cGe)=>{"use strict";cGe.exports=fGe()});var y1=Te((s2r,_Ge)=>{"use strict";var yjt=t_(),dGe="1.13.4",yGe='\xA9 OpenStreetMap contributors',pGe=['\xA9 Carto',yGe].join(" "),vGe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),gjt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),gGe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:yGe,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:pGe,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:pGe,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:vGe,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:vGe,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:gjt,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"}},mGe=yjt(gGe);_Ge.exports={requiredVersion:dGe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:gGe,styleValuesNonMapbox:mGe,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@"+dGe+"."].join(` +`),Vk=Nk().maxDimensionCount,$Ue=ei(),XUe=1e-6,tB=2048,NHt=new Uint8Array(4),ZUe=new Uint8Array(4),YUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function UHt(e){e.read({x:0,y:0,width:1,height:1,data:NHt})}function QUe(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 VHt(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],QUe(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 WHt(e,t,r){for(var n=new Array(e*(Vk+4)),i=0,a=0;aj&&(j=M[F].dim1.canvasX,U=F);A===0&&QUe(i,0,0,l.canvasWidth,l.canvasHeight);var W=E(r);for(F=0;F{"use strict";var Nd=Jl(),v1=ei(),$K=v1.isArrayOrTypedArray,lVe=v1.numberFormat,uVe=(jUe(),vb(WUe)).default,fVe=wu(),KHt=v1.strRotate,ng=v1.strTranslate,JHt=Wf(),rB=Mu(),iVe=_c(),tJ=ig(),im=tJ.keyFun,ag=tJ.repeat,cVe=tJ.unwrap,SS=KK(),Nf=Nk(),hVe=WK(),$Ht=rVe();function nVe(e,t,r){return v1.aggNums(e,null,t,r)}function dVe(e,t){return rJ(nVe(Math.min,e,t),nVe(Math.max,e,t))}function iB(e){var t=e.range;return t?rJ(t[0],t[1]):dVe(e.values,e._length)}function rJ(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 QHt(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=iB(r);return n?Nd.scale.ordinal().domain(n.map(QHt(lVe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Nd.scale.linear().domain(a).range([e-t,t])}function tWt(e,t){return Nd.scale.linear().range([t,e-t])}function rWt(e,t){return Nd.scale.linear().domain(iB(e)).range([t,1-t])}function iWt(e){if(e.tickvals){var t=iB(e);return Nd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function nWt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=uVe(a[1]);return Nd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Nd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function eJ(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function aWt(e,t,r){var n=cVe(t),i=n.trace,a=SS.convertTypedArray(n.lineColor),o=i.line,s={color:uVe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=iVe.extractOpts(o),l=u.reversescale?iVe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,_=i.labelfont,b=i.tickfont,v=i.rangefont,C=v1.extendDeepNoArrays({},o,{color:a.map(Nd.scale.linear().domain(iB({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:Nf.blockLineCount,canvasOverdrag:Nf.overdrag*Nf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,k=T;return{key:r,colCount:c.filter(SS.isVisible).length,dimensions:c,tickDistance:Nf.tickDistance,unitToColor:nWt(l),lines:C,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:_,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 oWt(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=tWt(i,Nf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(SS.isVisible).map(function(h,d){var p=rWt(h,u),_=c[h.label];c[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),v=h.constraintrange,C=v&&v.length;C&&!$K(v[0])&&(v=[v]);var E=C?v.map(function(B){return B.map(p)}):[[-1/0,1/0]],T=function(){var B=f;B.focusLayer&&B.focusLayer.render(B.panels,!0);var U=eJ(B);!e.contextShown()&&U?(B.contextLayer&&B.contextLayer.render(B.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(B.contextLayer&&B.contextLayer.render(B.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 M(B,U){return{val:B,text:k[U]}}function m(B,U){return B.val-U.val}if($K(x)&&x.length){v1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!$K(k)||!k.length?k=x.map(lVe(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=F.lineLayer.readPixel(W,G-1-N),re=H[3]!==0,ae=re?H[2]+256*(H[1]+256*H[0]):null,ge={x:W,y:N,clientX:B.clientX,clientY:B.clientY,dataIndex:F.model.key,curveNumber:ae};ae!==p&&(re?i.hover(ge):i.unhover&&i.unhover(ge),p=ae)}}),d.style("opacity",function(F){return F.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(F){return ng(F.model.translateX,F.model.translateY)});var v=b.selectAll("."+Nf.cn.parcoordsControlView).data(ag,im);v.enter().append("g").classed(Nf.cn.parcoordsControlView,!0),v.attr("transform",function(F){return ng(F.model.pad.l,F.model.pad.t)});var C=v.selectAll("."+Nf.cn.yAxis).data(function(F){return F.dimensions},im);C.enter().append("g").classed(Nf.cn.yAxis,!0),v.each(function(F){QK(C,F,l)}),d.each(function(F){if(F.viewModel){!F.lineLayer||i?F.lineLayer=$Ht(this,F):F.lineLayer.update(F),(F.key||F.key===0)&&(F.viewModel[F.key]=F.lineLayer);var B=!F.context||i;F.lineLayer.render(F.viewModel.panels,B)}}),C.attr("transform",function(F){return ng(F.xScale(F.xIndex),0)}),C.call(Nd.behavior.drag().origin(function(F){return F}).on("drag",function(F){var B=F.parent;c.linePickActive(!1),F.x=Math.max(-Nf.overdrag,Math.min(F.model.width+Nf.overdrag,Nd.event.x)),F.canvasX=F.x*F.model.canvasPixelRatio,C.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=F===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),QK(C,B,l),C.filter(function(U){return Math.abs(F.xIndex-U.xIndex)!==0}).attr("transform",function(U){return ng(U.xScale(U.xIndex),0)}),Nd.select(this).attr("transform",ng(F.x,0)),C.each(function(U,G,j){j===F.parent.key&&(B.dimensions[G]=U)}),B.contextLayer&&B.contextLayer.render(B.panels,!1,!eJ(B)),B.focusLayer.render&&B.focusLayer.render(B.panels)}).on("dragend",function(F){var B=F.parent;F.x=F.xScale(F.xIndex),F.canvasX=F.x*F.model.canvasPixelRatio,QK(C,B,l),Nd.select(this).attr("transform",function(U){return ng(U.x,0)}),B.contextLayer&&B.contextLayer.render(B.panels,!1,!eJ(B)),B.focusLayer&&B.focusLayer.render(B.panels),B.pickLayer&&B.pickLayer.render(B.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(B.key,B.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Nf.cn.axisOverlays).data(ag,im);E.enter().append("g").classed(Nf.cn.axisOverlays,!0),E.selectAll("."+Nf.cn.axis).remove();var T=E.selectAll("."+Nf.cn.axis).data(ag,im);T.enter().append("g").classed(Nf.cn.axis,!0),T.each(function(F){var B=F.model.height/F.model.tickDistance,U=F.domainScale,G=U.domain();Nd.select(this).call(Nd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(B,F.tickFormat).tickValues(F.ordinal?G:null).tickFormat(function(j){return SS.isOrdinal(F)?j:pVe(F.model.dimensions[F.visibleIndex],j)}).scale(U)),rB.font(T.selectAll("text"),F.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=E.selectAll("."+Nf.cn.axisHeading).data(ag,im);L.enter().append("g").classed(Nf.cn.axisHeading,!0);var x=L.selectAll("."+Nf.cn.axisTitle).data(ag,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(F){return F.label}).each(function(F){var B=Nd.select(this);rB.font(B,F.model.labelFont),JHt.convertToTspans(B,t)}).attr("transform",function(F){var B=oVe(F.model.labelAngle,F.model.labelSide),U=Nf.axisTitleOffset;return(B.dir>0?"":ng(0,2*U+F.model.height))+KHt(B.degrees)+ng(-U*B.dx,-U*B.dy)}).attr("text-anchor",function(F){var B=oVe(F.model.labelAngle,F.model.labelSide),U=Math.abs(B.dx),G=Math.abs(B.dy);return 2*U>G?B.dir*B.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Nf.cn.axisExtent).data(ag,im);k.enter().append("g").classed(Nf.cn.axisExtent,!0);var M=k.selectAll("."+Nf.cn.axisExtentTop).data(ag,im);M.enter().append("g").classed(Nf.cn.axisExtentTop,!0),M.attr("transform",ng(0,-Nf.axisExtentOffset));var m=M.selectAll("."+Nf.cn.axisExtentTopText).data(ag,im);m.enter().append("text").classed(Nf.cn.axisExtentTopText,!0).call(aVe),m.text(function(F){return sVe(F,!0)}).each(function(F){rB.font(Nd.select(this),F.model.rangeFont)});var P=k.selectAll("."+Nf.cn.axisExtentBottom).data(ag,im);P.enter().append("g").classed(Nf.cn.axisExtentBottom,!0),P.attr("transform",function(F){return ng(0,F.model.height+Nf.axisExtentOffset)});var A=P.selectAll("."+Nf.cn.axisExtentBottomText).data(ag,im);A.enter().append("text").classed(Nf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(aVe),A.text(function(F){return sVe(F,!1)}).each(function(F){rB.font(Nd.select(this),F.model.rangeFont)}),hVe.ensureAxisBrush(E,f,t)}});var nJ=Te((iJ,xVe)=>{"use strict";var uWt=mVe(),fWt=L8(),yVe=KK().isVisible,_Ve={};function gVe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function cWt(e,t){return function(n,i){return gVe(e,t,n)-gVe(e,t,i)}}var iJ=xVe.exports=function(t,r){var n=t._fullLayout,i=fWt(t,[],_Ve);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,_){var b=p[0].trace;s[_]=b.index;var v=u[_]=b.index;a[_]=t.data[v].dimensions,o[_]=t.data[v].dimensions.slice()});var f=function(p,_,b){var v=o[p][_],C=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var x=t._fullData[s[p]].dimensions[_];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,_){var b=cWt(_,o[p].filter(yVe));a[p].sort(b),o[p].filter(function(v){return!yVe(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]]])};uWt(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})}};iJ.reglPrecompiled=_Ve});var wVe=Te(Gk=>{"use strict";var bVe=Jl(),hWt=Rd().getModuleCalcData,dWt=nJ(),pWt=jv();Gk.name="parcoords";Gk.plot=function(e){var t=hWt(e.calcdata,"parcoords")[0];t.length&&dWt(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=bVe.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:pWt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){bVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var TVe=Te((Wbr,AVe)=>{"use strict";AVe.exports={attributes:VK(),supplyDefaults:BUe(),calc:qUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:wVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var MVe=Te((jbr,SVe)=>{SVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr;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,_=t.framebuffer,b=t.extensions,v=t.timer,C=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,x=s.blend_equation,k=o.blend_func,M=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,F=s.colorMask,B=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,ge=s.stencil_opBack,ze=o.scissor_box,Le=s.scissor_box,de=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={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},Se={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},De={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},xe={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ne={cw:2304,ccw:2305},ce=o.blend_color,je=s.blend_color,Qe=o.blend_equation,gt=s.blend_equation,qt=o.blend_func,at=s.blend_func,Ke=o.depth_range,Ct=s.depth_range,wt=o.colorMask,Mt=s.colorMask,Bt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,ot=o.stencil_func,At=s.stencil_func,vt=o.stencil_opFront,Je=s.stencil_opFront,He=o.stencil_opBack,nt=s.stencil_opBack,tt=o.scissor_box,It=s.scissor_box,Yt=o.viewport,cr=s.viewport,{poll:function(){var _r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di;s.dirty=!1,yr=o.dither,Ut=o.blend_enable,Re=o.depth_enable,be=o.cull_enable,Oe=o.polygonOffset_enable,Ie=o.sample_alpha,Fe=o.sample_enable,ft=o.stencil_enable,ye=o.scissor_enable,fe=o.depth_func,pe=s.depth_func,dt=o.depth_mask,Pt=s.depth_mask,zt=o.cull_face,rr=s.cull_face,Gr=o.frontFace,Br=s.frontFace,Er=o.lineWidth,Rr=s.lineWidth,pi=o.stencil_mask,Di=s.stencil_mask,_r=_.next,_r!==_.cur&&(_r?n.bindFramebuffer(36160,_r.framebuffer):n.bindFramebuffer(36160,null),_.cur=_r),yr!==s.dither&&(yr?n.enable(3024):n.disable(3024),s.dither=yr),Ut!==s.blend_enable&&(Ut?n.enable(3042):n.disable(3042),s.blend_enable=Ut),Re!==s.depth_enable&&(Re?n.enable(2929):n.disable(2929),s.depth_enable=Re),be!==s.cull_enable&&(be?n.enable(2884):n.disable(2884),s.cull_enable=be),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Ie!==s.sample_alpha&&(Ie?n.enable(32926):n.disable(32926),s.sample_alpha=Ie),Fe!==s.sample_enable&&(Fe?n.enable(32928):n.disable(32928),s.sample_enable=Fe),ft!==s.stencil_enable&&(ft?n.enable(2960):n.disable(2960),s.stencil_enable=ft),ye!==s.scissor_enable&&(ye?n.enable(3089):n.disable(3089),s.scissor_enable=ye),(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]),(Qe[0]!==gt[0]||Qe[1]!==gt[1])&&(n.blendEquationSeparate(Qe[0],Qe[1]),gt[0]=Qe[0],gt[1]=Qe[1]),(qt[0]!==at[0]||qt[1]!==at[1]||qt[2]!==at[2]||qt[3]!==at[3])&&(n.blendFuncSeparate(qt[0],qt[1],qt[2],qt[3]),at[0]=qt[0],at[1]=qt[1],at[2]=qt[2],at[3]=qt[3]),fe!==pe&&(n.depthFunc(fe),s.depth_func=fe),(Ke[0]!==Ct[0]||Ke[1]!==Ct[1])&&(n.depthRange(Ke[0],Ke[1]),Ct[0]=Ke[0],Ct[1]=Ke[1]),dt!==Pt&&(n.depthMask(dt),s.depth_mask=dt),(wt[0]!==Mt[0]||wt[1]!==Mt[1]||wt[2]!==Mt[2]||wt[3]!==Mt[3])&&(n.colorMask(wt[0],wt[1],wt[2],wt[3]),Mt[0]=wt[0],Mt[1]=wt[1],Mt[2]=wt[2],Mt[3]=wt[3]),zt!==rr&&(n.cullFace(zt),s.cull_face=zt),Gr!==Br&&(n.frontFace(Gr),s.frontFace=Gr),Er!==Rr&&(n.lineWidth(Er),s.lineWidth=Er),(Bt[0]!==Zt[0]||Bt[1]!==Zt[1])&&(n.polygonOffset(Bt[0],Bt[1]),Zt[0]=Bt[0],Zt[1]=Bt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),pi!==Di&&(n.stencilMask(pi),s.stencil_mask=pi),(ot[0]!==At[0]||ot[1]!==At[1]||ot[2]!==At[2])&&(n.stencilFunc(ot[0],ot[1],ot[2]),At[0]=ot[0],At[1]=ot[1],At[2]=ot[2]),(vt[0]!==Je[0]||vt[1]!==Je[1]||vt[2]!==Je[2]||vt[3]!==Je[3])&&(n.stencilOpSeparate(vt[0],vt[1],vt[2],vt[3]),Je[0]=vt[0],Je[1]=vt[1],Je[2]=vt[2],Je[3]=vt[3]),(He[0]!==nt[0]||He[1]!==nt[1]||He[2]!==nt[2]||He[3]!==nt[3])&&(n.stencilOpSeparate(He[0],He[1],He[2],He[3]),nt[0]=He[0],nt[1]=He[1],nt[2]=He[2],nt[3]=He[3]),(tt[0]!==It[0]||tt[1]!==It[1]||tt[2]!==It[2]||tt[3]!==It[3])&&(n.scissor(tt[0],tt[1],tt[2],tt[3]),It[0]=tt[0],It[1]=tt[1],It[2]=tt[2],It[3]=tt[3]),(Yt[0]!==cr[0]||Yt[1]!==cr[1]||Yt[2]!==cr[2]||Yt[3]!==cr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),cr[0]=Yt[0],cr[1]=Yt[1],cr[2]=Yt[2],cr[3]=Yt[3])},refresh:function(){var _r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i;s.dirty=!1,Re=o.dither,be=o.blend_enable,Oe=o.depth_enable,Ie=o.cull_enable,Fe=o.polygonOffset_enable,ft=o.sample_alpha,ye=o.sample_enable,fe=o.stencil_enable,pe=o.scissor_enable,dt=o.depth_func,Pt=s.depth_func,zt=o.depth_mask,rr=s.depth_mask,Gr=o.cull_face,Br=s.cull_face,Er=o.frontFace,Rr=s.frontFace,pi=o.lineWidth,Di=s.lineWidth,ni=o.stencil_mask,$i=s.stencil_mask,_r=_.next,_r?n.bindFramebuffer(36160,_r.framebuffer):n.bindFramebuffer(36160,null),_.cur=_r,yr=h,Ut=0;for(var Qi=0;Qi{EVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,_=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,M=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,F=d.blend_equation,B=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,ge=d.sample_coverage,ze=h.stencil_func,Le=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Se=h.scissor_box,Ge=d.scissor_box,De=h.viewport,xe=d.viewport,Ne={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},Qe={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},qt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},at={cw:2304,ccw:2305},Ke={},Ct={},{draw:function(wt){var Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut;if(Mt=wt.framebuffer,Bt=L.getFramebuffer(Mt),Zt=L.next,L.next=Bt,Et=f.framebufferWidth,f.framebufferWidth=Bt?Bt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Bt?Bt.height:f.drawingBufferHeight,Bt!==L.cur&&(Bt?l.bindFramebuffer(36160,Bt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Bt),d.dirty){var Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri;Re=h.dither,Re!==d.dither&&(Re?l.enable(3024):l.disable(3024),d.dither=Re),be=h.blend_enable,be!==d.blend_enable&&(be?l.enable(3042):l.disable(3042),d.blend_enable=be),Oe=m[0],Ie=m[1],Fe=m[2],ft=m[3],(Oe!==P[0]||Ie!==P[1]||Fe!==P[2]||ft!==P[3])&&(l.blendColor(Oe,Ie,Fe,ft),P[0]=Oe,P[1]=Ie,P[2]=Fe,P[3]=ft),ye=A[0],fe=A[1],(ye!==F[0]||fe!==F[1])&&(l.blendEquationSeparate(ye,fe),F[0]=ye,F[1]=fe),pe=B[0],dt=B[1],Pt=B[2],zt=B[3],(pe!==U[0]||dt!==U[1]||Pt!==U[2]||zt!==U[3])&&(l.blendFuncSeparate(pe,dt,Pt,zt),U[0]=pe,U[1]=dt,U[2]=Pt,U[3]=zt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Gr=h.depth_func,Gr!==d.depth_func&&(l.depthFunc(Gr),d.depth_func=Gr),Br=G[0],Er=G[1],(Br!==j[0]||Er!==j[1])&&(l.depthRange(Br,Er),j[0]=Br,j[1]=Er),Rr=h.depth_mask,Rr!==d.depth_mask&&(l.depthMask(Rr),d.depth_mask=Rr),pi=W[0],Di=W[1],ni=W[2],$i=W[3],(pi!==N[0]||Di!==N[1]||ni!==N[2]||$i!==N[3])&&(l.colorMask(pi,Di,ni,$i),N[0]=pi,N[1]=Di,N[2]=ni,N[3]=$i),Qi=h.cull_enable,Qi!==d.cull_enable&&(Qi?l.enable(2884):l.disable(2884),d.cull_enable=Qi),si=h.cull_face,si!==d.cull_face&&(l.cullFace(si),d.cull_face=si),Ti=h.frontFace,Ti!==d.frontFace&&(l.frontFace(Ti),d.frontFace=Ti),Ni=h.lineWidth,Ni!==d.lineWidth&&(l.lineWidth(Ni),d.lineWidth=Ni),Rt=h.polygonOffset_enable,Rt!==d.polygonOffset_enable&&(Rt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Rt),yt=H[0],Gt=H[1],(yt!==re[0]||Gt!==re[1])&&(l.polygonOffset(yt,Gt),re[0]=yt,re[1]=Gt),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),xr=h.sample_enable,xr!==d.sample_enable&&(xr?l.enable(32928):l.disable(32928),d.sample_enable=xr),Lr=ae[0],Nr=ae[1],(Lr!==ge[0]||Nr!==ge[1])&&(l.sampleCoverage(Lr,Nr),ge[0]=Lr,ge[1]=Nr),Or=h.stencil_enable,Or!==d.stencil_enable&&(Or?l.enable(2960):l.disable(2960),d.stencil_enable=Or),Hr=h.stencil_mask,Hr!==d.stencil_mask&&(l.stencilMask(Hr),d.stencil_mask=Hr),jr=ze[0],gi=ze[1],ki=ze[2],(jr!==Le[0]||gi!==Le[1]||ki!==Le[2])&&(l.stencilFunc(jr,gi,ki),Le[0]=jr,Le[1]=gi,Le[2]=ki),Vi=de[0],ti=de[1],tn=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||tn!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,tn,Yr),te[0]=Vi,te[1]=ti,te[2]=tn,te[3]=Yr),oi=ke[0],Fi=ke[1],an=ke[2],nn=ke[3],(oi!==Ee[0]||Fi!==Ee[1]||an!==Ee[2]||nn!==Ee[3])&&(l.stencilOpSeparate(oi,Fi,an,nn),Ee[0]=oi,Ee[1]=Fi,Ee[2]=an,Ee[3]=nn),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}ot=f.framebufferWidth,At=f.framebufferHeight,vt=f.viewportWidth,f.viewportWidth=ot,Je=f.viewportHeight,f.viewportHeight=At,l.viewport(0,0,ot,At),xe[0]=0,xe[1]=0,xe[2]=ot,xe[3]=At,He=f.framebufferWidth,nt=f.framebufferHeight,l.scissor(0,0,He,nt),Ge[0]=0,Ge[1]=0,Ge[2]=He,Ge[3]=nt,tt=d.profile,tt&&(It=performance.now(),r.count++),Yt=v.frag,cr=v.vert,_r=v.program(cr,Yt),l.useProgram(_r.program),E.setVAO(null),yr=_r.id,Ut=Ke[yr],Ut?Ut.call(this,wt):(Ut=Ke[yr]=n(_r),Ut.call(this,wt)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=vt,f.viewportHeight=Je,tt&&(r.cpuTime+=performance.now()-It)},scope:function(wt,Mt,Bt){var Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe;Zt=wt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,At=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,Je=f.framebufferHeight,He=f.viewportWidth,f.viewportWidth=vt,nt=f.viewportHeight,f.viewportHeight=Je,tt=De[0],De[0]=i,It=De[1],De[1]=a,Yt=De[2],De[2]=vt,cr=De[3],De[3]=Je,_r=f.framebufferWidth,yr=f.framebufferHeight,Ut=Se[0],Se[0]=o,Re=Se[1],Se[1]=s,be=Se[2],Se[2]=_r,Oe=Se[3],Se[3]=yr,Ie=d.profile,Ie&&(Fe=performance.now(),r.count++),d.dirty=!0,Mt(f,wt,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=At,f.viewportWidth=He,f.viewportHeight=nt,De[0]=tt,De[1]=It,De[2]=Yt,De[3]=cr,Se[0]=Ut,Se[1]=Re,Se[2]=be,Se[3]=Oe,Ie&&(r.cpuTime+=performance.now()-Fe),d.dirty=!0},batch:function(wt,Mt){var Bt,Zt,Et,Ae,ot,At,vt;if(d.dirty){var Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi;Je=h.dither,Je!==d.dither&&(Je?l.enable(3024):l.disable(3024),d.dither=Je),He=h.blend_enable,He!==d.blend_enable&&(He?l.enable(3042):l.disable(3042),d.blend_enable=He),nt=m[0],tt=m[1],It=m[2],Yt=m[3],(nt!==P[0]||tt!==P[1]||It!==P[2]||Yt!==P[3])&&(l.blendColor(nt,tt,It,Yt),P[0]=nt,P[1]=tt,P[2]=It,P[3]=Yt),cr=A[0],_r=A[1],(cr!==F[0]||_r!==F[1])&&(l.blendEquationSeparate(cr,_r),F[0]=cr,F[1]=_r),yr=B[0],Ut=B[1],Re=B[2],be=B[3],(yr!==U[0]||Ut!==U[1]||Re!==U[2]||be!==U[3])&&(l.blendFuncSeparate(yr,Ut,Re,be),U[0]=yr,U[1]=Ut,U[2]=Re,U[3]=be),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Ie=h.depth_func,Ie!==d.depth_func&&(l.depthFunc(Ie),d.depth_func=Ie),Fe=G[0],ft=G[1],(Fe!==j[0]||ft!==j[1])&&(l.depthRange(Fe,ft),j[0]=Fe,j[1]=ft),ye=h.depth_mask,ye!==d.depth_mask&&(l.depthMask(ye),d.depth_mask=ye),fe=W[0],pe=W[1],dt=W[2],Pt=W[3],(fe!==N[0]||pe!==N[1]||dt!==N[2]||Pt!==N[3])&&(l.colorMask(fe,pe,dt,Pt),N[0]=fe,N[1]=pe,N[2]=dt,N[3]=Pt),zt=h.cull_enable,zt!==d.cull_enable&&(zt?l.enable(2884):l.disable(2884),d.cull_enable=zt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Gr=h.frontFace,Gr!==d.frontFace&&(l.frontFace(Gr),d.frontFace=Gr),Br=h.lineWidth,Br!==d.lineWidth&&(l.lineWidth(Br),d.lineWidth=Br),Er=h.polygonOffset_enable,Er!==d.polygonOffset_enable&&(Er?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Er),Rr=H[0],pi=H[1],(Rr!==re[0]||pi!==re[1])&&(l.polygonOffset(Rr,pi),re[0]=Rr,re[1]=pi),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),ni=h.sample_enable,ni!==d.sample_enable&&(ni?l.enable(32928):l.disable(32928),d.sample_enable=ni),$i=ae[0],Qi=ae[1],($i!==ge[0]||Qi!==ge[1])&&(l.sampleCoverage($i,Qi),ge[0]=$i,ge[1]=Qi),si=h.stencil_enable,si!==d.stencil_enable&&(si?l.enable(2960):l.disable(2960),d.stencil_enable=si),Ti=h.stencil_mask,Ti!==d.stencil_mask&&(l.stencilMask(Ti),d.stencil_mask=Ti),Ni=ze[0],Rt=ze[1],yt=ze[2],(Ni!==Le[0]||Rt!==Le[1]||yt!==Le[2])&&(l.stencilFunc(Ni,Rt,yt),Le[0]=Ni,Le[1]=Rt,Le[2]=yt),Gt=de[0],Wt=de[1],xr=de[2],Lr=de[3],(Gt!==te[0]||Wt!==te[1]||xr!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Gt,Wt,xr,Lr),te[0]=Gt,te[1]=Wt,te[2]=xr,te[3]=Lr),Nr=ke[0],Or=ke[1],Hr=ke[2],jr=ke[3],(Nr!==Ee[0]||Or!==Ee[1]||Hr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Nr,Or,Hr,jr),Ee[0]=Nr,Ee[1]=Or,Ee[2]=Hr,Ee[3]=jr),gi=h.scissor_enable,gi!==d.scissor_enable&&(gi?l.enable(3089):l.disable(3089),d.scissor_enable=gi)}Bt=d.profile,Bt&&(Zt=performance.now(),r.count+=Mt),Et=v.frag,Ae=v.vert,ot=v.program(Ae,Et),l.useProgram(ot.program),E.setVAO(null),At=ot.id,vt=Ct[At],vt?vt.call(this,wt,Mt):(vt=Ct[At]=u(ot),vt.call(this,wt,Mt)),d.dirty=!0,E.setVAO(null),Bt&&(r.cpuTime+=performance.now()-Zt)}}}});var LVe=Te((Zbr,CVe)=>{CVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt;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,_=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,M=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,F=l.depth_range,B=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,ge=l.stencil_opFront,ze=u.stencil_opBack,Le=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.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},Ge={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},De={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},xe={add:32774,subtract:32778,"reverse subtract":32779},Ne={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},Qe={},gt={},{draw:function(qt){var at,Ke,Ct,wt,Mt,Bt,Zt,Et;if(at=v.next,at!==v.cur&&(at?a.bindFramebuffer(36160,at.framebuffer):a.bindFramebuffer(36160,null),v.cur=at),l.dirty){var Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),ot=u.blend_enable,ot!==l.blend_enable&&(ot?a.enable(3042):a.disable(3042),l.blend_enable=ot),At=L[0],vt=L[1],Je=L[2],He=L[3],(At!==x[0]||vt!==x[1]||Je!==x[2]||He!==x[3])&&(a.blendColor(At,vt,Je,He),x[0]=At,x[1]=vt,x[2]=Je,x[3]=He),nt=k[0],tt=k[1],(nt!==M[0]||tt!==M[1])&&(a.blendEquationSeparate(nt,tt),M[0]=nt,M[1]=tt),It=m[0],Yt=m[1],cr=m[2],_r=m[3],(It!==P[0]||Yt!==P[1]||cr!==P[2]||_r!==P[3])&&(a.blendFuncSeparate(It,Yt,cr,_r),P[0]=It,P[1]=Yt,P[2]=cr,P[3]=_r),yr=u.depth_enable,yr!==l.depth_enable&&(yr?a.enable(2929):a.disable(2929),l.depth_enable=yr),Ut=u.depth_func,Ut!==l.depth_func&&(a.depthFunc(Ut),l.depth_func=Ut),Re=A[0],be=A[1],(Re!==F[0]||be!==F[1])&&(a.depthRange(Re,be),F[0]=Re,F[1]=be),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Ie=B[0],Fe=B[1],ft=B[2],ye=B[3],(Ie!==U[0]||Fe!==U[1]||ft!==U[2]||ye!==U[3])&&(a.colorMask(Ie,Fe,ft,ye),U[0]=Ie,U[1]=Fe,U[2]=ft,U[3]=ye),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),pe=u.cull_face,pe!==l.cull_face&&(a.cullFace(pe),l.cull_face=pe),dt=u.frontFace,dt!==l.frontFace&&(a.frontFace(dt),l.frontFace=dt),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),zt=u.polygonOffset_enable,zt!==l.polygonOffset_enable&&(zt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=zt),rr=G[0],Gr=G[1],(rr!==j[0]||Gr!==j[1])&&(a.polygonOffset(rr,Gr),j[0]=rr,j[1]=Gr),Br=u.sample_alpha,Br!==l.sample_alpha&&(Br?a.enable(32926):a.disable(32926),l.sample_alpha=Br),Er=u.sample_enable,Er!==l.sample_enable&&(Er?a.enable(32928):a.disable(32928),l.sample_enable=Er),Rr=W[0],pi=W[1],(Rr!==N[0]||pi!==N[1])&&(a.sampleCoverage(Rr,pi),N[0]=Rr,N[1]=pi),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),ni=u.stencil_mask,ni!==l.stencil_mask&&(a.stencilMask(ni),l.stencil_mask=ni),$i=H[0],Qi=H[1],si=H[2],($i!==re[0]||Qi!==re[1]||si!==re[2])&&(a.stencilFunc($i,Qi,si),re[0]=$i,re[1]=Qi,re[2]=si),Ti=ae[0],Ni=ae[1],Rt=ae[2],yt=ae[3],(Ti!==ge[0]||Ni!==ge[1]||Rt!==ge[2]||yt!==ge[3])&&(a.stencilOpSeparate(Ti,Ni,Rt,yt),ge[0]=Ti,ge[1]=Ni,ge[2]=Rt,ge[3]=yt),Gt=ze[0],Wt=ze[1],xr=ze[2],Lr=ze[3],(Gt!==Le[0]||Wt!==Le[1]||xr!==Le[2]||Lr!==Le[3])&&(a.stencilOpSeparate(Gt,Wt,xr,Lr),Le[0]=Gt,Le[1]=Wt,Le[2]=xr,Le[3]=Lr),Nr=u.scissor_enable,Nr!==l.scissor_enable&&(Nr?a.enable(3089):a.disable(3089),l.scissor_enable=Nr),Or=de[0],Hr=de[1],jr=de[2],gi=de[3],(Or!==te[0]||Hr!==te[1]||jr!==te[2]||gi!==te[3])&&(a.scissor(Or,Hr,jr,gi),te[0]=Or,te[1]=Hr,te[2]=jr,te[3]=gi),ki=ke[0],Vi=ke[1],ti=ke[2],tn=ke[3],(ki!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||tn!==Ee[3])&&(a.viewport(ki,Vi,ti,tn),Ee[0]=ki,Ee[1]=Vi,Ee[2]=ti,Ee[3]=tn),l.dirty=!1}Ke=l.profile,Ke&&(Ct=performance.now(),r.count++),wt=d.frag,Mt=d.vert,Bt=d.program(Mt,wt),a.useProgram(Bt.program),_.setVAO(null),Zt=Bt.id,Et=Qe[Zt],Et?Et.call(this,qt):(Et=Qe[Zt]=n(Bt),Et.call(this,qt)),_.setVAO(null),Ke&&(r.cpuTime+=performance.now()-Ct)},scope:function(qt,at,Ke){var Ct,wt;Ct=l.profile,Ct&&(wt=performance.now(),r.count++),at(o,qt,Ke),Ct&&(r.cpuTime+=performance.now()-wt)},batch:function(qt,at){var Ke,Ct,wt,Mt,Bt,Zt,Et,Ae;if(Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),At=u.blend_enable,At!==l.blend_enable&&(At?a.enable(3042):a.disable(3042),l.blend_enable=At),vt=L[0],Je=L[1],He=L[2],nt=L[3],(vt!==x[0]||Je!==x[1]||He!==x[2]||nt!==x[3])&&(a.blendColor(vt,Je,He,nt),x[0]=vt,x[1]=Je,x[2]=He,x[3]=nt),tt=k[0],It=k[1],(tt!==M[0]||It!==M[1])&&(a.blendEquationSeparate(tt,It),M[0]=tt,M[1]=It),Yt=m[0],cr=m[1],_r=m[2],yr=m[3],(Yt!==P[0]||cr!==P[1]||_r!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Yt,cr,_r,yr),P[0]=Yt,P[1]=cr,P[2]=_r,P[3]=yr),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),be=A[0],Oe=A[1],(be!==F[0]||Oe!==F[1])&&(a.depthRange(be,Oe),F[0]=be,F[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),Fe=B[0],ft=B[1],ye=B[2],fe=B[3],(Fe!==U[0]||ft!==U[1]||ye!==U[2]||fe!==U[3])&&(a.colorMask(Fe,ft,ye,fe),U[0]=Fe,U[1]=ft,U[2]=ye,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),zt=u.lineWidth,zt!==l.lineWidth&&(a.lineWidth(zt),l.lineWidth=zt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Gr=G[0],Br=G[1],(Gr!==j[0]||Br!==j[1])&&(a.polygonOffset(Gr,Br),j[0]=Gr,j[1]=Br),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Rr=u.sample_enable,Rr!==l.sample_enable&&(Rr?a.enable(32928):a.disable(32928),l.sample_enable=Rr),pi=W[0],Di=W[1],(pi!==N[0]||Di!==N[1])&&(a.sampleCoverage(pi,Di),N[0]=pi,N[1]=Di),ni=u.stencil_enable,ni!==l.stencil_enable&&(ni?a.enable(2960):a.disable(2960),l.stencil_enable=ni),$i=u.stencil_mask,$i!==l.stencil_mask&&(a.stencilMask($i),l.stencil_mask=$i),Qi=H[0],si=H[1],Ti=H[2],(Qi!==re[0]||si!==re[1]||Ti!==re[2])&&(a.stencilFunc(Qi,si,Ti),re[0]=Qi,re[1]=si,re[2]=Ti),Ni=ae[0],Rt=ae[1],yt=ae[2],Gt=ae[3],(Ni!==ge[0]||Rt!==ge[1]||yt!==ge[2]||Gt!==ge[3])&&(a.stencilOpSeparate(Ni,Rt,yt,Gt),ge[0]=Ni,ge[1]=Rt,ge[2]=yt,ge[3]=Gt),Wt=ze[0],xr=ze[1],Lr=ze[2],Nr=ze[3],(Wt!==Le[0]||xr!==Le[1]||Lr!==Le[2]||Nr!==Le[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Nr),Le[0]=Wt,Le[1]=xr,Le[2]=Lr,Le[3]=Nr),Or=u.scissor_enable,Or!==l.scissor_enable&&(Or?a.enable(3089):a.disable(3089),l.scissor_enable=Or),Hr=de[0],jr=de[1],gi=de[2],ki=de[3],(Hr!==te[0]||jr!==te[1]||gi!==te[2]||ki!==te[3])&&(a.scissor(Hr,jr,gi,ki),te[0]=Hr,te[1]=jr,te[2]=gi,te[3]=ki),Vi=ke[0],ti=ke[1],tn=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||tn!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,tn,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=tn,Ee[3]=Yr),l.dirty=!1}Ct=l.profile,Ct&&(wt=performance.now(),r.count+=at),Mt=d.frag,Bt=d.vert,Zt=d.program(Bt,Mt),a.useProgram(Zt.program),_.setVAO(null),Et=Zt.id,Ae=gt[Et],Ae?Ae.call(this,qt,at):(Ae=gt[Et]=i(Zt),Ae.call(this,qt,at)),_.setVAO(null),Ct&&(r.cpuTime+=performance.now()-wt)}}}});var zVe=Te((Ybr,PVe)=>{PVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,_,b,v,C,E,T,L,x,k,M,m,P,A,F,B,U,G,j,W,N,H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De,xe,Ne,ce,je,Qe,gt,qt,at,Ke,Ct,wt,Mt,Bt,Zt,Et,Ae,ot,At,vt,Je,He,nt,tt,It,Yt,cr,_r,yr,Ut,Re,be,Oe,Ie,Fe,ft,ye,fe,pe,dt,Pt,zt,rr,Gr,Br,Er,Rr,pi,Di,ni,$i,Qi,si,Ti,Ni,Rt,yt,Gt,Wt,xr,Lr,Nr,Or,Hr,jr,gi,ki,Vi,ti,tn,Yr,oi,Fi,an,nn,Ri,Ii,xn,bi,Xr,ct,tr,pr,gr,Zr,Ai,en,ii,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,Ba,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,rn,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,Ba=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},Oa={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),un=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),rn=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(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir;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),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,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),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ue=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ue!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ue),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ue),rt=ps[0],mt=ps[1],Ft=ps[2],ir=ps[3],(rt!==co[0]||mt!==co[1]||Ft!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(rt,mt,Ft,ir),co[0]=rt,co[1]=mt,co[2]=Ft,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.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),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.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),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==_.dtype||rl.size!==4||rl.buffer!==_||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(Oo,4,_.dtype,!1,0,0),rl.type=_.dtype,rl.size=4,rl.buffer=_,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=T.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=M.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=F.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==B.dtype||io.size!==4||io.buffer!==B||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,B.buffer),Kr.vertexAttribPointer(zo,4,B.dtype,!1,0,0),io.type=B.dtype,io.size=4,io.buffer=B,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=ge.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=Le.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==ze.dtype||Fs.size!==4||Fs.buffer!==ze||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,ze.buffer),Kr.vertexAttribPointer(tl,4,ze.dtype,!1,0,0),Fs.type=ze.dtype,Fs.size=4,Fs.buffer=ze,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=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],Tt=Rs[2],Vt=Rs[3],Kr.uniform4f(Se.location,Is,Bs,Tt,Vt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ge.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),mr=ln.dim0B,Kr.uniformMatrix4fv(De.location,!1,Array.isArray(mr)||mr instanceof Float32Array?mr:(Ra[0]=mr[0],Ra[1]=mr[1],Ra[2]=mr[2],Ra[3]=mr[3],Ra[4]=mr[4],Ra[5]=mr[5],Ra[6]=mr[6],Ra[7]=mr[7],Ra[8]=mr[8],Ra[9]=mr[9],Ra[10]=mr[10],Ra[11]=mr[11],Ra[12]=mr[12],Ra[13]=mr[13],Ra[14]=mr[14],Ra[15]=mr[15],Ra)),Fr=ln.dim0C,Kr.uniformMatrix4fv(xe.location,!1,Array.isArray(Fr)||Fr instanceof Float32Array?Fr:(Xn[0]=Fr[0],Xn[1]=Fr[1],Xn[2]=Fr[2],Xn[3]=Fr[3],Xn[4]=Fr[4],Xn[5]=Fr[5],Xn[6]=Fr[6],Xn[7]=Fr[7],Xn[8]=Fr[8],Xn[9]=Fr[9],Xn[10]=Fr[10],Xn[11]=Fr[11],Xn[12]=Fr[12],Xn[13]=Fr[13],Xn[14]=Fr[14],Xn[15]=Fr[15],Xn)),_i=ln.dim0D,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(_i)||_i instanceof Float32Array?_i:(un[0]=_i[0],un[1]=_i[1],un[2]=_i[2],un[3]=_i[3],un[4]=_i[4],un[5]=_i[5],un[6]=_i[6],un[7]=_i[7],un[8]=_i[8],un[9]=_i[9],un[10]=_i[10],un[11]=_i[11],un[12]=_i[12],un[13]=_i[13],un[14]=_i[14],un[15]=_i[15],un)),Si=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:($n[0]=Si[0],$n[1]=Si[1],$n[2]=Si[2],$n[3]=Si[3],$n[4]=Si[4],$n[5]=Si[5],$n[6]=Si[6],$n[7]=Si[7],$n[8]=Si[8],$n[9]=Si[9],$n[10]=Si[10],$n[11]=Si[11],$n[12]=Si[12],$n[13]=Si[13],$n[14]=Si[14],$n[15]=Si[15],$n)),Ci=ln.dim1B,Kr.uniformMatrix4fv(je.location,!1,Array.isArray(Ci)||Ci instanceof Float32Array?Ci:(Ka[0]=Ci[0],Ka[1]=Ci[1],Ka[2]=Ci[2],Ka[3]=Ci[3],Ka[4]=Ci[4],Ka[5]=Ci[5],Ka[6]=Ci[6],Ka[7]=Ci[7],Ka[8]=Ci[8],Ka[9]=Ci[9],Ka[10]=Ci[10],Ka[11]=Ci[11],Ka[12]=Ci[12],Ka[13]=Ci[13],Ka[14]=Ci[14],Ka[15]=Ci[15],Ka)),Ki=ln.dim1C,Kr.uniformMatrix4fv(Qe.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=ln.dim1D,Kr.uniformMatrix4fv(gt.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)),Pi=ln.drwLayer,Kr.uniform1f(qt.location,Pi),di=ln.hiA,Kr.uniformMatrix4fv(at.location,!1,Array.isArray(di)||di instanceof Float32Array?di:(Ja[0]=di[0],Ja[1]=di[1],Ja[2]=di[2],Ja[3]=di[3],Ja[4]=di[4],Ja[5]=di[5],Ja[6]=di[6],Ja[7]=di[7],Ja[8]=di[8],Ja[9]=di[9],Ja[10]=di[10],Ja[11]=di[11],Ja[12]=di[12],Ja[13]=di[13],Ja[14]=di[14],Ja[15]=di[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Mi=ln.hiC,Kr.uniformMatrix4fv(Ct.location,!1,Array.isArray(Mi)||Mi instanceof Float32Array?Mi:(eo[0]=Mi[0],eo[1]=Mi[1],eo[2]=Mi[2],eo[3]=Mi[3],eo[4]=Mi[4],eo[5]=Mi[5],eo[6]=Mi[6],eo[7]=Mi[7],eo[8]=Mi[8],eo[9]=Mi[9],eo[10]=Mi[10],eo[11]=Mi[11],eo[12]=Mi[12],eo[13]=Mi[13],eo[14]=Mi[14],eo[15]=Mi[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(wt.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=ln.loA,Kr.uniformMatrix4fv(Mt.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=ln.loB,Kr.uniformMatrix4fv(Bt.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=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(rn[0]=ia[0],rn[1]=ia[1],rn[2]=ia[2],rn[3]=ia[3],rn[4]=ia[4],rn[5]=ia[5],rn[6]=ia[6],rn[7]=ia[7],rn[8]=ia[8],rn[9]=ia[9],rn[10]=ia[10],rn[11]=ia[11],rn[12]=ia[12],rn[13]=ia[13],rn[14]=ia[14],rn[15]=ia[15],rn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.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=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(ot.location,is.bind()),Kr.uniform1i(At.location,vt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(Je.location,Ks,dl),xl=ln.viewBoxPos,Bl=xl[0],bl=xl[1],Kr.uniform2f(He.location,Bl,bl),eu=ln.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(nt.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=ln.offset,Js=ln.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(),vt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci,Ki,Fn,Pi,di,Li,Mi,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,Os,Xl,Gl,Nl,le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it,pt,Ht,nr,fr,Ar,Ir,ri,li,Ei,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,Ol,ou,Pu,nu,tu,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,se,Pe,Ze,et,st,jt,_t,hr,Cr,zr,fi,$r,Bi,fn,mi,zi,ji,pn,sn,wi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf,fc,Be,Nt,ar,Qr,yi,ci,vi,on,Bn,Ln,wn,Ls,ua,Hn,qi,Wr,xi,dn,En,Zi,ga,Kn,hs,Ji,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,al,pl,Dl,Bu,vf,Ql,Ef,Cu,gf,xf,Cf,Gu,cf,mf,Fl,bf,cu,Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr,Mr,lr,$e,ht,bt,Kt,sr,Qt,ur,er,Ot,Jt,Lt,Tr,Ur,hi,Cn,Yi,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,ru,yu,Fu,vu,zu,Ju,Vf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.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]=It,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=cr,Ea=fa.blend_enable,fa.blend_enable=_r,Jn=gn[0],gn[0]=yr,Oo=gn[1],gn[1]=Ut,rl=Ha[0],Ha[0]=Re,Gs=Ha[1],Ha[1]=be,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Ie,$o=fa.cull_enable,fa.cull_enable=Fe,Aa=fa.cull_face,fa.cull_face=ft,os=fa.depth_enable,fa.depth_enable=ye,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=pe,po=ao[0],ao[0]=dt,go=ao[1],ao[1]=Pt,ss=fa.dither,fa.dither=zt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.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=Gr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Br,Tt=mn[Rr],mn[Rr]=Er,Vt=ln.resolution,wr=mn[pi],mn[pi]=Vt,mr=ln.viewBoxPos,Fr=mn[Di],mn[Di]=mr,_i=ln.viewBoxSize,Si=mn[ni],mn[ni]=_i,Ci=ln.dim0A,Ki=mn[$i],mn[$i]=Ci,Fn=ln.dim1A,Pi=mn[Qi],mn[Qi]=Fn,di=ln.dim0B,Li=mn[si],mn[si]=di,Mi=ln.dim1B,Gn=mn[Ti],mn[Ti]=Mi,ta=ln.dim0C,ya=mn[Ni],mn[Ni]=ta,ia=ln.dim1C,pa=mn[Rt],mn[Rt]=ia,va=ln.dim0D,zn=mn[yt],mn[yt]=va,is=ln.dim1D,Cs=mn[Gt],mn[Gt]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Bl=mn[xr],mn[xr]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Vl=mn[Nr],mn[Nr]=Zl,ja=ln.loC,ns=mn[Or],mn[Or]=ja,Js=ln.hiC,cs=mn[Hr],mn[Hr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,nl=ln.hiD,zl=mn[gi],mn[gi]=nl,Ml=ln.contextColor,Rl=mn[ki],mn[ki]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Gl=mn[tn],mn[tn]=Xl,Nl=Yr.state,Yr.state=1,le=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=_,ue=Yr.size,Yr.size=0,Ue=Yr.normalized,Yr.normalized=!1,rt=Yr.type,Yr.type=_.dtype,mt=Yr.offset,Yr.offset=0,Ft=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Me=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,Ve=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,it=oi.type,oi.type=v.dtype,pt=oi.offset,oi.offset=0,Ht=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,fr=Fi.state,Fi.state=1,Ar=Fi.x,Fi.x=0,Ir=Fi.y,Fi.y=0,ri=Fi.z,Fi.z=0,li=Fi.w,Fi.w=0,Ei=Fi.buffer,Fi.buffer=E,hn=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=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,Ol=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,nu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Hu=an.stride,an.stride=0,$u=an.divisor,an.divisor=0,Ku=nn.state,nn.state=1,Wu=nn.x,nn.x=0,ju=nn.y,nn.y=0,sf=nn.z,nn.z=0,_f=nn.w,nn.w=0,Qu=nn.buffer,nn.buffer=k,ef=nn.size,nn.size=0,Z=nn.normalized,nn.normalized=!1,se=nn.type,nn.type=k.dtype,Pe=nn.offset,nn.offset=0,Ze=nn.stride,nn.stride=0,et=nn.divisor,nn.divisor=0,st=Ri.state,Ri.state=1,jt=Ri.x,Ri.x=0,_t=Ri.y,Ri.y=0,hr=Ri.z,Ri.z=0,Cr=Ri.w,Ri.w=0,zr=Ri.buffer,Ri.buffer=m,fi=Ri.size,Ri.size=0,$r=Ri.normalized,Ri.normalized=!1,Bi=Ri.type,Ri.type=m.dtype,fn=Ri.offset,Ri.offset=0,mi=Ri.stride,Ri.stride=0,zi=Ri.divisor,Ri.divisor=0,ji=Ii.state,Ii.state=1,pn=Ii.x,Ii.x=0,sn=Ii.y,Ii.y=0,wi=Ii.z,Ii.z=0,xo=Ii.w,Ii.w=0,no=Ii.buffer,Ii.buffer=A,Xo=Ii.size,Ii.size=0,js=Ii.normalized,Ii.normalized=!1,El=Ii.type,Ii.type=A.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=B,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,lf=xn.type,xn.type=B.dtype,hf=xn.offset,xn.offset=0,Mf=xn.stride,xn.stride=0,pf=xn.divisor,xn.divisor=0,fc=bi.state,bi.state=1,Be=bi.x,bi.x=0,Nt=bi.y,bi.y=0,ar=bi.z,bi.z=0,Qr=bi.w,bi.w=0,yi=bi.buffer,bi.buffer=G,ci=bi.size,bi.size=0,vi=bi.normalized,bi.normalized=!1,on=bi.type,bi.type=G.dtype,Bn=bi.offset,bi.offset=0,Ln=bi.stride,bi.stride=0,wn=bi.divisor,bi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,qi=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,xi=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=ct.state,ct.state=1,Ui=ct.x,ct.x=0,ro=ct.y,ct.y=0,na=ct.z,ct.z=0,On=ct.w,ct.w=0,In=ct.buffer,ct.buffer=H,Va=ct.size,ct.size=0,_s=ct.normalized,ct.normalized=!1,ul=ct.type,ct.type=H.dtype,Qn=ct.offset,ct.offset=0,Mo=ct.stride,ct.stride=0,al=ct.divisor,ct.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Bu=tr.y,tr.y=0,vf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,Ef=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,gf=tr.normalized,tr.normalized=!1,xf=tr.type,tr.type=ae.dtype,Cf=tr.offset,tr.offset=0,Gu=tr.stride,tr.stride=0,cf=tr.divisor,tr.divisor=0,mf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,bf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=ze,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=ze.dtype,_e=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Ce=pr.divisor,pr.divisor=0,Ye=gr.state,gr.state=1,kt=gr.x,gr.x=0,dr=gr.y,gr.y=0,Mr=gr.z,gr.z=0,lr=gr.w,gr.w=0,$e=gr.buffer,gr.buffer=de,ht=gr.size,gr.size=0,bt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=de.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,ur=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,Ur=Zr.buffer,Zr.buffer=ke,hi=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Yi=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Fu=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,Ju=Ai.stride,Ai.stride=0,Vf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=en,Ad=ls.frag,ls.frag=ii,kn.dirty=!0,Bo(Ia,ln,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]=Oo,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=Bs,mn[Rr]=Tt,mn[pi]=wr,mn[Di]=Fr,mn[ni]=Si,mn[$i]=Ki,mn[Qi]=Pi,mn[si]=Li,mn[Ti]=Gn,mn[Ni]=ya,mn[Rt]=pa,mn[yt]=zn,mn[Gt]=Cs,mn[Wt]=dl,mn[xr]=Bl,mn[Lr]=eu,mn[Nr]=Vl,mn[Or]=ns,mn[Hr]=cs,mn[jr]=ll,mn[gi]=zl,mn[ki]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[tn]=Gl,Yr.state=Nl,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ue,Yr.type=rt,Yr.offset=mt,Yr.stride=Ft,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Me,oi.buffer=qe,oi.size=Ve,oi.normalized=lt,oi.type=it,oi.offset=pt,oi.stride=Ht,oi.divisor=nr,Fi.state=fr,Fi.x=Ar,Fi.y=Ir,Fi.z=ri,Fi.w=li,Fi.buffer=Ei,Fi.size=hn,Fi.normalized=Zn,Fi.type=Yn,Fi.offset=Ua,Fi.stride=Fo,Fi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=Ol,an.size=ou,an.normalized=Pu,an.type=nu,an.offset=tu,an.stride=Hu,an.divisor=$u,nn.state=Ku,nn.x=Wu,nn.y=ju,nn.z=sf,nn.w=_f,nn.buffer=Qu,nn.size=ef,nn.normalized=Z,nn.type=se,nn.offset=Pe,nn.stride=Ze,nn.divisor=et,Ri.state=st,Ri.x=jt,Ri.y=_t,Ri.z=hr,Ri.w=Cr,Ri.buffer=zr,Ri.size=fi,Ri.normalized=$r,Ri.type=Bi,Ri.offset=fn,Ri.stride=mi,Ri.divisor=zi,Ii.state=ji,Ii.x=pn,Ii.y=sn,Ii.z=wi,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,bi.state=fc,bi.x=Be,bi.y=Nt,bi.z=ar,bi.w=Qr,bi.buffer=yi,bi.size=ci,bi.normalized=vi,bi.type=on,bi.offset=Bn,bi.stride=Ln,bi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=qi,Xr.w=Wr,Xr.buffer=xi,Xr.size=dn,Xr.normalized=En,Xr.type=Zi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ct.state=Ji,ct.x=Ui,ct.y=ro,ct.z=na,ct.w=On,ct.buffer=In,ct.size=Va,ct.normalized=_s,ct.type=ul,ct.offset=Qn,ct.stride=Mo,ct.divisor=al,tr.state=pl,tr.x=Dl,tr.y=Bu,tr.z=vf,tr.w=Ql,tr.buffer=Ef,tr.size=Cu,tr.normalized=gf,tr.type=xf,tr.offset=Cf,tr.stride=Gu,tr.divisor=cf,pr.state=mf,pr.x=Fl,pr.y=bf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=_e,pr.stride=ne,pr.divisor=Ce,gr.state=Ye,gr.x=kt,gr.y=dr,gr.z=Mr,gr.w=lr,gr.buffer=$e,gr.size=ht,gr.normalized=bt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=ur,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=Ur,Zr.size=hi,Zr.normalized=Cn,Zr.type=Yi,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=Tn,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Fu,Ai.type=vu,Ai.offset=zu,Ai.stride=Ju,Ai.divisor=Vf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){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,Oo,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),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,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),Ba[0]=0,Ba[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,Bs,Tt,Vt,wr,mr,Fr,_i,Si,Ci;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!==_.dtype||go.size!==4||go.buffer!==_||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,_.buffer),Kr.vertexAttribPointer(po,4,_.dtype,!1,0,0),go.type=_.dtype,go.size=4,go.buffer=_,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=T.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=M.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=F.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==B.dtype||Fs.size!==4||Fs.buffer!==B||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,B.buffer),Kr.vertexAttribPointer(tl,4,B.dtype,!1,0,0),Fs.type=B.dtype,Fs.size=4,Fs.buffer=B,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),Bs=ge.location,Tt=$a[Bs],Tt.buffer||Kr.enableVertexAttribArray(Bs),(Tt.type!==ae.dtype||Tt.size!==4||Tt.buffer!==ae||Tt.normalized!==!1||Tt.offset!==0||Tt.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),Tt.type=ae.dtype,Tt.size=4,Tt.buffer=ae,Tt.normalized=!1,Tt.offset=0,Tt.stride=0),Vt=Le.location,wr=$a[Vt],wr.buffer||Kr.enableVertexAttribArray(Vt),(wr.type!==ze.dtype||wr.size!==4||wr.buffer!==ze||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,ze.buffer),Kr.vertexAttribPointer(Vt,4,ze.dtype,!1,0,0),wr.type=ze.dtype,wr.size=4,wr.buffer=ze,wr.normalized=!1,wr.offset=0,wr.stride=0),mr=te.location,Fr=$a[mr],Fr.buffer||Kr.enableVertexAttribArray(mr),(Fr.type!==de.dtype||Fr.size!==4||Fr.buffer!==de||Fr.normalized!==!1||Fr.offset!==0||Fr.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(mr,4,de.dtype,!1,0,0),Fr.type=de.dtype,Fr.size=4,Fr.buffer=de,Fr.normalized=!1,Fr.offset=0,Fr.stride=0),_i=Ee.location,Si=$a[_i],Si.buffer||Kr.enableVertexAttribArray(_i),(Si.type!==ke.dtype||Si.size!==4||Si.buffer!==ke||Si.normalized!==!1||Si.offset!==0||Si.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(_i,4,ke.dtype,!1,0,0),Si.type=ke.dtype,Si.size=4,Si.buffer=ke,Si.normalized=!1,Si.offset=0,Si.stride=0),Kr.uniform1i(At.location,vt.bind()),Ci=Ta.elements,Ci?Kr.bindBuffer(34963,Ci.buffer.buffer):fo.currentVAO&&(Ci=ys.getElements(fo.currentVAO.elements),Ci&&Kr.bindBuffer(34963,Ci.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Ir),Ia.viewportWidth=ya,Ia.viewportHeight=ia,mt.unbind())}vt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var RVe=Te((Kbr,IVe)=>{"use strict";var vWt=MVe(),mWt=kVe(),yWt=LVe(),gWt=zVe();IVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":vWt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":mWt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:yWt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":gWt}});var BVe=Te((Jbr,FVe)=>{"use strict";var DVe=nJ(),_Wt=RVe();Object.assign(DVe.reglPrecompiled,_Wt);FVe.exports=DVe});var NVe=Te(($br,qVe)=>{"use strict";var OVe=TVe();OVe.plot=BVe();qVe.exports=OVe});var aJ=Te((Qbr,WVe)=>{"use strict";var VVe=Su().extendFlat,xWt=Gf(),UVe=gc(),bWt=nc(),{hovertemplateAttrs:GVe,templatefallbackAttrs:HVe}=Ff(),wWt=zc().attributes,AWt=VVe({editType:"calc"},bWt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:GVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:HVe({editType:"plot"})});WVe.exports={domain:wWt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:VVe({},xWt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:GVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:HVe({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:UVe({editType:"calc"}),tickfont:UVe({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:AWt,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 ZVe=Te((e2r,XVe)=>{"use strict";var MS=ei(),TWt=yp().hasColorscale,SWt=nd(),MWt=zc().defaults,EWt=Kd(),jVe=aJ(),kWt=V8(),CWt=mp().isTypedArraySpec;function LWt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(TWt(e,"line")&&MS.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SWt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function PWt(e,t){function r(l,f){return MS.coerce(e,t,jVe.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=MS.isArrayOrTypedArray(a)&&a.length>0||CWt(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")}}XVe.exports=function(t,r,n,i){function a(l,f){return MS.coerce(t,r,jVe,l,f)}var o=EWt(t,r,{name:"dimensions",handleItemDefaults:PWt}),s=LWt(t,r,n,i,a);MWt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),kWt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;MS.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),MS.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var KVe=Te((t2r,YVe)=>{"use strict";var zWt=ig().wrap,IWt=yp().hasColorscale,RWt=gp(),DWt=cq(),FWt=Mu(),Hk=ei(),BWt=ku();YVe.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=DWt(m.values);for(var A=!0,F=0;F=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var aGe=Te((r2r,nGe)=>{"use strict";var Uf=Jl(),ZWt=(H2(),vb(G2)).interpolateNumber,YWt=Zz(),Xk=Xc(),Ex=ei(),Wk=Ex.strTranslate,JVe=Mu(),oJ=hd(),KWt=Wf();function JWt(e,t,r,n){var i=t._context.staticPlot,a=e.map(hjt.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);uJ(c),f.attr("d",function(C){return C.svgD}),c.empty()||f.sort(sJ),f.exit().remove(),f.on("mouseover",$Wt).on("mouseout",QWt).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},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),_=p.enter().append("g").attr("class","category");p.attr("transform",function(C){return Wk(0,C.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}),QVe(_);var b=p.selectAll("rect.bandrect").data(function(C){return C.bands},m1);b.each(function(){Ex.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"}),cJ(v),b.exit().remove(),_.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){JVe.font(Uf.select(this),C.parcatsViewModel.categorylabelfont),KWt.convertToTspans(Uf.select(this),t)}),_.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){JVe.font(Uf.select(this),C.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",sjt).on("mouseout",ljt),p.exit().remove(),d.call(Uf.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",ujt).on("drag",fjt).on("dragend",cjt)),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()}nGe.exports=function(e,t,r,n){JWt(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 sJ(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:_-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,_=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:_,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:_,probability:b}]}}function ajt(e,t,r){var n=[];return Uf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(eGe(e,t,i))}),n}function ojt(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,_=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/_,T=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): "+T.toFixed(3)),k.push("P(color | "+p+"): "+L.toFixed(3)));var M=k.join("
"),m=oJ.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:M,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:_,probability:E,categorycount:v,colorcount:C,bandcolorcount:b}]}}function sjt(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"?(njt(o),dJ(o,"plotly_hover",Uf.event)):(ijt(o),hJ(o,"plotly_hover",Uf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=eGe(r,i,o):a==="color"?s=ojt(r,i,o):a==="dimension"&&(s=ajt(r,i,o)),s&&Xk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function ljt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(uJ(t.pathSelection),QVe(t.dimensionSelection.selectAll("g.category")),cJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Xk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(sJ),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?dJ(n,"plotly_unhover",Uf.event):hJ(n,"plotly_unhover",Uf.event)}}function ujt(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,Ex.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}vJ(e.parcatsViewModel),pJ(e.parcatsViewModel),iGe(e.parcatsViewModel),rGe(e.parcatsViewModel)}}function cjt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Uf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=tGe(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"?dJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent):hJ(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,vJ(e.parcatsViewModel),pJ(e.parcatsViewModel);var c=Uf.transition().duration(300).ease("cubic-in-out");c.each(function(){iGe(e.parcatsViewModel,!0),rGe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&YWt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function tGe(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 pJ(e){var t=e.dimensions,r=e.model,n=t.map(function(B){return B.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(B){return B.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(B){return B.displayInd}),o=e.dimensions.map(function(B){return B.model.dimensionInd}),s=t.map(function(B){return B.x}),u=t.map(function(B){return B.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(B){var U=B.categoryInds.map(function(j,W){return i[W][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(B,U){var G=c(B),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(B.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(B.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(B){return B.height}).reduce(function(B,U){return B+U}),_=0;_0?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),_,b,v,C,E,T=(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?_=b.count/d*p:_=0,v={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+_+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 mJ=Te((i2r,oGe)=>{"use strict";var pjt=aGe();oGe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;pjt(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 lGe=Te(aB=>{"use strict";var vjt=Rd().getModuleCalcData,mjt=mJ(),sGe="parcats";aB.name=sGe;aB.plot=function(e,t,r,n){var i=vjt(e.calcdata,sGe);if(i.length){var a=i[0];mjt(e,a,r,n)}};aB.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 fGe=Te((a2r,uGe)=>{"use strict";uGe.exports={attributes:aJ(),supplyDefaults:ZVe(),calc:KVe(),plot:mJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:lGe(),categories:["noOpacity"],meta:{}}});var hGe=Te((o2r,cGe)=>{"use strict";cGe.exports=fGe()});var y1=Te((s2r,_Ge)=>{"use strict";var yjt=t_(),dGe="1.13.4",yGe='\xA9 OpenStreetMap contributors',pGe=['\xA9 Carto',yGe].join(" "),vGe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),gjt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),gGe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:yGe,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:pGe,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:pGe,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:vGe,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:vGe,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:gjt,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"}},mGe=yjt(gGe);_Ge.exports={requiredVersion:dGe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:gGe,styleValuesNonMapbox:mGe,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@"+dGe+"."].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:",mGe.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 Zk=Te((l2r,AGe)=>{"use strict";var xGe=ei(),bGe=jl().defaultLine,_jt=zc().attributes,xjt=gc(),bjt=Zc().textposition,wjt=Sc().overrideAll,Ajt=Lf().templatedArray,yJ=y1(),wGe=xjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});wGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Tjt=AGe.exports=wjt({_arrayAttrRegexps:[xGe.counterRegex("mapbox",".layers",!0)],domain:_jt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:yJ.styleValuesMapbox.concat(yJ.styleValuesNonMapbox),dflt:yJ.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:Ajt("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:bGe},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:bGe}},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:wGe,textposition:xGe.extendFlat({},bjt,{arrayOk:!1})}})},"plot","from-root");Tjt.uirevision={valType:"any",editType:"none"}});var oB=Te((u2r,EGe)=>{"use strict";var{hovertemplateAttrs:Sjt,texttemplateAttrs:Mjt,templatefallbackAttrs:TGe}=Ff(),Ejt=Pm(),Yk=ew(),ES=Zc(),SGe=Zk(),kjt=Gf(),Cjt=nc(),cw=Su().extendFlat,Ljt=Sc().overrideAll,Pjt=Zk(),MGe=Yk.line,kS=Yk.marker;EGe.exports=Ljt({lon:Yk.lon,lat:Yk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:cw({},Pjt.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:cw({},kS.opacity,{dflt:1})},mode:cw({},ES.mode,{dflt:"markers"}),text:cw({},ES.text,{}),texttemplate:Mjt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:TGe({editType:"plot"}),hovertext:cw({},ES.hovertext,{}),line:{color:MGe.color,width:MGe.width},connectgaps:ES.connectgaps,marker:cw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:kS.opacity,size:kS.size,sizeref:kS.sizeref,sizemin:kS.sizemin,sizemode:kS.sizemode},Cjt("marker")),fill:Yk.fill,fillcolor:Ejt(),textfont:SGe.layers.symbol.textfont,textposition:SGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:ES.selected.marker},unselected:{marker:ES.unselected.marker},hoverinfo:cw({},kjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Sjt(),hovertemplatefallback:TGe()},"calc","nested")});var gJ=Te((f2r,kGe)=>{"use strict";var zjt=["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"];kGe.exports={isSupportedFont:function(e){return zjt.indexOf(e)!==-1}}});var PGe=Te((c2r,LGe)=>{"use strict";var Kk=ei(),_J=lc(),Ijt=$v(),Rjt=R0(),Djt=D0(),Fjt=Dm(),CGe=oB(),Bjt=gJ().isSupportedFont;LGe.exports=function(t,r,n,i){function a(v,C){return Kk.coerce(t,r,CGe,v,C)}function o(v,C){return Kk.coerce2(t,r,CGe,v,C)}var s=Ojt(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"),_J.hasMarkers(r)){Ijt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Kk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Kk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}_J.hasLines(r)&&(Rjt(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,_=a("cluster.enabled",p);if(_||_J.hasText(r)){var b=i.font.family;Djt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Bjt(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"&&Fjt(t,r,n,a),Kk.coerceSelectionMarkerOpacity(r,a)};function Ojt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var xJ=Te((h2r,IGe)=>{"use strict";var zGe=wu();IGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=zGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=zGe.tickText(o,o.c2l(s[1]),!0).text,i}});var bJ=Te((d2r,DGe)=>{"use strict";var RGe=ei();DGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=RGe.isArrayOrTypedArray(r)?RGe.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 UGe=Te((p2r,NGe)=>{"use strict";var OGe=ku(),sp=ei(),qjt=rf().BADNUM,lB=fx(),FGe=_c(),Njt=Mu(),Ujt=B3(),uB=lc(),Vjt=gJ().isSupportedFont,Gjt=bJ(),Hjt=iv().appendArrayPointValue,Wjt=Wf().NEWLINES,jjt=Wf().BR_TAG_ALL;NGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=uB.hasLines(n),s=uB.hasMarkers(n),u=uB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=sB("fill"),d=sB("line"),p=sB("circle"),_=sB("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=lB.calcTraceToLineCoords(r)),a&&(h.geojson=lB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=lB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=Xjt(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":AJ(n.cluster.color,n.cluster.step),"circle-radius":AJ(n.cluster.size,n.cluster.step),"circle-opacity":AJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":BGe(n),"text-size":12}}),sp.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)&&(_.geojson=Zjt(r,t),sp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=Gjt(n.textposition,E);sp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":BGe(n)}),sp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function sB(e){return{type:e,geojson:lB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Xjt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(FGe.hasColorscale(t,"marker")?f=FGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=Ujt(t));var h;o&&(h=function(E){var T=OGe(E)?+sp.constrain(E,0,1):0;return u(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"),Vjt(s)||(s=r);var u=s.split(", ");return u}});var WGe=Te((v2r,HGe)=>{"use strict";var Yjt=ei(),VGe=UGe(),CS=y1().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function GGe(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:CS+t+"-fill",line:CS+t+"-line",circle:CS+t+"-circle",symbol:CS+t+"-symbol",cluster:CS+t+"-cluster",clusterCount:CS+t+"-cluster-count"},this.below=null}var Jk=GGe.prototype;Jk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&Yjt.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)};Jk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Jk.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(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=nm.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};HGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new GGe(t,n.uid,i,a),s=VGe(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 Kjt=Xc(),TJ=ei(),Jjt=mA(),$jt=TJ.fillText,Qjt=rf().BADNUM,eXt=y1().traceLayerPrefix;function tXt(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(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===Qjt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=TJ.modHalf(m[0],360),A=m[1],F=s.project([P,A]),B=F.x-a.c2p([p,A]),U=F.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(B*B+U*U)-G,1-3/G)}if(Kjt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[TJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),T=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+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=Jjt(i,b),e.extraText=jGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function jGe(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)&&$jt(t,e,l),l.join("
")}XGe.exports={hoverPoints:tXt,getExtraText:jGe}});var YGe=Te((y2r,ZGe)=>{"use strict";ZGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var JGe=Te((g2r,KGe)=>{"use strict";var rXt=ei(),iXt=lc(),nXt=rf().BADNUM;KGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!iXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof SJ=="object"&&typeof MJ!="undefined"?MJ.exports=t():(e=e||self,e.mapboxgl=t())})(SJ,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,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,me;for($=y,me=0;me<8;me++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(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,g){return this.clone()._rotateAround(y,g)},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 g=y.x-this.x,z=y.y-this.y;return g*g+z*z},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,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,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 g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function _(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=_(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function C(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(me,Xe){g(me,function(xt,Dt){xt&&(oe=xt),$[Xe]=Dt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function x(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function k(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function F(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 B(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function W(y){return Array.isArray(y)?y.map(W):typeof y=="object"&&y?G(y,W):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var H={};function re(y){H[y]||(typeof console!="undefined"&&console.warn(y),H[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function ge(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,me=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,me,Xe){var xt=me||Xe;return z[oe]=xt?xt.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 ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Se(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ge(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var De=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),xe=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ne=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,je,Qe={now:De,frame:function(g){var z=xe(g);return{cancel:function(){return Ne(z)}}},getImageData:function(g,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=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,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}},gt={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},qt={supported:!1,testSupport:Mt},at,Ke=!1,Ct,wt=!1;c.document&&(Ct=c.document.createElement("img"),Ct.onload=function(){at&&Bt(at),at=null,wt=!0},Ct.onerror=function(){Ke=!0,at=null},Ct.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Mt(y){Ke||!Ct||(wt?Bt(y):at=y)}function Bt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,Ct),y.isContextLost())return;qt.supported=!0}catch(z){}y.deleteTexture(g),Ke=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),me=Date.now()+$;return{token:oe,tokenExpiresAt:me}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=tt(g);return ot(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,It(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!ot(g))return g;var V=tt(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,me=Qe.devicePixelRatio>=2||z===512?"@2x":"",Xe=qt.supported?".webp":"$1";V.path=V.path.replace($,""+me+Xe),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||He(V.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=tt(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var me="mapbox://tiles/";me+=oe.path.replace(V,"");var Xe=oe.params;return z&&(Xe=Xe.filter(function(xt){return!xt.match(/^access_token=/)})),Xe.length&&(me+="?"+Xe.join("&")),me},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?ot(z):!1,$=[],oe=0,me=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!gt.REQUIRE_ACCESS_TOKEN)return It(g);if(z=z||gt.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 g.params=g.params.filter(function(me){return me.indexOf("access_token")===-1}),g.params.push("access_token="+z),It(g)};function ot(y){return y.indexOf("mapbox:")===0}var At=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function vt(y){return At.test(y)}function Je(y){return y.indexOf("sku=")>0&&vt(y)}function He(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},_r.prototype.processRequests=function(g){},_r.prototype.postEvent=function(g,z,V,$){var oe=this;if(gt.EVENTS_URL){var me=tt(gt.EVENTS_URL);me.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var Xe={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?x(Xe,z):Xe,Dt={url:It(me),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Or(Dt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},_r.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var yr=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,me){this.skuToken=oe,(gt.EVENTS_URL&&me||gt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(Xe){return ot(Xe)||vt(Xe)}))&&this.queueRequest({id:$,timestamp:Date.now()},me)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),me=oe.id,Xe=oe.timestamp;me&&this.success[me]||(this.anonId||this.fetchEventData(),F(this.anonId)||(this.anonId=P()),this.postEvent(Xe,{skuToken:this.skuToken},function(xt){xt||me&&($.success[me]=!0)},V))}},g}(_r),Ut=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return ot(oe)||vt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=cr(gt.ACCESS_TOKEN),me=oe?oe.u:gt.ACCESS_TOKEN,Xe=me!==this.eventData.tokenU;F(this.anonId)||(this.anonId=P(),Xe=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Dt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),br=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);Xe=Xe||br>=1||br<-1||Dt.getDate()!==Xt.getDate()}else Xe=!0;if(!Xe)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(qr){qr||($.eventData.lastSuccess=xt,$.eventData.tokenU=me)},V)}},g}(_r),Re=new Ut,be=Re.postTurnstileEvent.bind(Re),Oe=new yr,Ie=Oe.postMapLoadEvent.bind(Oe),Fe="mapbox-tiles",ft=500,ye=50,fe=1e3*60*7,pe;function dt(){c.caches&&!pe&&(pe=c.caches.open(Fe))}var Pt;function zt(y,g){if(Pt===void 0)try{new Response(new ReadableStream),Pt=!0}catch(z){Pt=!1}Pt?g(y.body):y.blob().then(g)}function rr(y,g,z){if(dt(),!!pe){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(me,Xe){return V.headers.set(Xe,me)});var $=de(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Rr=1/0;function pi(y){Rr++,Rr>ye&&(y.getActor().send("enforceCacheSizeLimit",ft),Rr=0)}function Di(y){dt(),pe&&pe.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Ni(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var xr=function(y,g){if(!yt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Gt(y,g);if(Le()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return xr(x(y,{type:"json"}),g)},Nr=function(y,g){return xr(x(y,{type:"arrayBuffer"}),g)},Or=function(y,g){return xr(x(y,{method:"POST"}),g)};function Hr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function gi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(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 me=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(me):jr}function ki(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(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,tn=function(){Vi=[],ti=0};tn();var Yr=function(y,g){if(qt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,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[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ii.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,bi={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"}},ct=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={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:"*"}},pr={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"}},Ai={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"}}},ii={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:bi,sources:Xr,source:ct,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:en,layer:ii,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(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],me=oe[0],Xe=oe[1];this.bindings[me]=Xe}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!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(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Hi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Dt}function $(Dt){return Dt<0?0:Dt>1?1:Dt}function oe(Dt){return Dt[Dt.length-1]==="%"?V(parseFloat(Dt)/100*255):V(parseInt(Dt))}function me(Dt){return Dt[Dt.length-1]==="%"?$(parseFloat(Dt)/100):$(parseFloat(Dt))}function Xe(Dt,Xt,br){return br<0?br+=1:br>1&&(br-=1),br*6<1?Dt+(Xt-Dt)*br*6:br*2<1?Xt:br*3<2?Dt+(Xt-Dt)*(2/3-br)*6:Dt}function xt(Dt){var Xt=Dt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=4095?[(br&3840)>>4|(br&3840)>>8,br&240|(br&240)>>4,br&15|(br&15)<<4,1]:null}else if(Xt.length===7){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=16777215?[(br&16711680)>>16,(br&65280)>>8,br&255,1]:null}return null}var qr=Xt.indexOf("("),Pr=Xt.indexOf(")");if(qr!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,qr),Oi=Xt.substr(qr+1,Pr-(qr+1)).split(","),Wn=1;switch(ai){case"rgba":if(Oi.length!==4)return null;Wn=me(Oi.pop());case"rgb":return Oi.length!==3?null:[oe(Oi[0]),oe(Oi[1]),oe(Oi[2]),Wn];case"hsla":if(Oi.length!==4)return null;Wn=me(Oi.pop());case"hsl":if(Oi.length!==3)return null;var bn=(parseFloat(Oi[0])%360+360)%360/360,bo=me(Oi[1]),ba=me(Oi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(Xe(Uo,_o,bn+1/3)*255),V(Xe(Uo,_o,bn)*255),V(Xe(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Dt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);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 g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},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(g,z,V){g?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(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,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 ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(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 ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var Xe=g[1];if(typeof Xe!="string"||!(Xe in qn)||Xe==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);me=qn[Xe],V++}else me=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(me,xt)}else $=qn[oe];for(var Dt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,me=1;me<=g.length-1;++me){var Xe=g[me];if(oe&&typeof Xe=="object"&&!Array.isArray(Xe)){oe=!1;var xt=null;if(Xe["font-scale"]&&(xt=z.parse(Xe["font-scale"],1,Hi),!xt))return null;var Dt=null;if(Xe["text-font"]&&(Dt=z.parse(Xe["text-font"],1,mo(Sa)),!Dt))return null;var Xt=null;if(Xe["text-color"]&&(Xt=z.parse(Xe["text-color"],1,vn),!Xt))return null;var br=$[$.length-1];br.scale=xt,br.font=Dt,br.textColor=Xt}else{var qr=z.parse(g[me],1,la);if(!qr)return null;var Pr=qr.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:qr,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(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(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],me=1;me4?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 xt=null,Dt=0,Xt=this.args;Dt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],me=y[1]-z[1];return V*me-oe*$===0&&V*oe<=0&&$*me<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],me=0,Xe=oe.length;me0&&br<0||Xt<0&&br>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],me=0;mez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],me=[],Xe=0,xt=y;Xe=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[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(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(me){return"["+me+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,br,qr){return qr==="assert"?new Eo(br,[Xt]):qr==="coerce"?new sa(br,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[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 me=oe.parse(g,this);if(!me)return null;if(this.expectedType){var Xe=this.expectedType,xt=me.type;if((Xe.kind==="string"||Xe.kind==="number"||Xe.kind==="boolean"||Xe.kind==="object"||Xe.kind==="array")&&xt.kind==="value")me=V(me,Xe,z.typeAnnotation||"assert");else if((Xe.kind==="color"||Xe.kind==="formatted"||Xe.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))me=V(me,Xe,z.typeAnnotation||"coerce");else if(this.checkSubtype(Xe,xt))return null}if(!(me instanceof $n)&&me.type.kind!=="resolvedImage"&&gs(me)){var Dt=new Na;try{me=new $n(me.type,me.evaluate(Dt))}catch(Xt){return this.error(Xt.message),null}}return me}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof rn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,me,Xe;V<=$;)if(oe=Math.floor((V+$)/2),me=y[oe],Xe=y[oe+1],me<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=Xe)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Dt);var br=z.parse(xt,Xt,oe);if(!br)return null;oe=oe||br.type,$.push([Xe,br])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$);return V[me].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=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(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),me=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-me),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.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(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var me=0,Xe=oe;me1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Hi),!oe)return null;var Dt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var br=0;br=qr)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,Oi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Dt.push([qr,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Dt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$),Xe=z[me],xt=z[me+1],Dt=Hs.interpolationFactor(this.interpolation,$,Xe,xt),Xt=V[me].evaluate(g),br=V[me+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,br,Dt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(br),Dt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(br),Dt))},Hs.prototype.eachChild=function(g){g(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(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);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(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Hi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g.length===4){var oe=z.parse(g[3],3,Hi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);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(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,me){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=me};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},me=[],Xe=2;XeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=me.length}var ai=z.parse(Dt,Xe,$);if(!ai)return null;$=$||ai.type,me.push(ai)}var Oi=z.parse(g[1],1,la);if(!Oi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||Oi.type.kind!=="value"&&z.concat(1).checkSubtype(V,Oi.type)?null:new jo(V,$,Oi,oe,me,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},me=0,Xe=V;me=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g.length===4){var oe=z.parse(g[3],3,Hi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);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(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function Tt(y,g,z){return g===z}function Vt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Fr(y,g,z){return g<=z}function _i(y,g,z){return g>=z}function Si(y,g,z,V){return V.compare(g,z)===0}function Ci(y,g,z,V){return!Si(y,g,z,V)}function Ki(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function di(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,me,Xe){this.type=Qa,this.lhs=oe,this.rhs=me,this.collator=Xe,this.hasUntypedArgument=oe.type.kind==="value"||me.type.kind==="value"}return $.parse=function(me,Xe){if(me.length!==3&&me.length!==4)return Xe.error("Expected two or three arguments.");var xt=me[0],Dt=Xe.parse(me[1],1,la);if(!Dt)return null;if(!Bs(xt,Dt.type))return Xe.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Dt.type)+"'.");var Xt=Xe.parse(me[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return Xe.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Dt.type.kind!==Xt.type.kind&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return Xe.error("Cannot compare types '"+No(Dt.type)+"' and '"+No(Xt.type)+"'.");V&&(Dt.type.kind==="value"&&Xt.type.kind!=="value"?Dt=new Eo(Xt.type,[Dt]):Dt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Dt.type,[Xt])));var br=null;if(me.length===4){if(Dt.type.kind!=="string"&&Xt.type.kind!=="string"&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return Xe.error("Cannot use collator to compare non-string types.");if(br=Xe.parse(me[3],3,As),!br)return null}return new $(Dt,Xt,br)},$.prototype.evaluate=function(me){var Xe=this.lhs.evaluate(me),xt=this.rhs.evaluate(me);if(V&&this.hasUntypedArgument){var Dt=Xn(Xe),Xt=Xn(xt);if(Dt.kind!==Xt.kind||!(Dt.kind==="string"||Dt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Dt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var br=Xn(Xe),qr=Xn(xt);if(br.kind!=="string"||qr.kind!=="string")return g(me,Xe,xt)}return this.collator?z(me,Xe,xt,this.collator.evaluate(me)):g(me,Xe,xt)},$.prototype.eachChild=function(me){me(this.lhs),me(this.rhs),this.collator&&me(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var me=[y];return this.eachChild(function(Xe){me.push(Xe.serialize())}),me},$}()}var Mi=Li("==",Tt,Si),Gn=Li("!=",Vt,Ci),ta=Li("<",wr,Ki),ya=Li(">",mr,Fn),ia=Li("<=",Fr,Pi),pa=Li(">=",_i,di),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Hi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var me=null;if($.currency&&(me=z.parse($.currency,1,Sa),!me))return null;var Xe=null;if($["min-fraction-digits"]&&(Xe=z.parse($["min-fraction-digits"],1,Hi),!Xe))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Hi),!xt)?null:new va(V,oe,me,Xe,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Hi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[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(g){var z=this.input.evaluate(g);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(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Mi,"!=":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(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var me=oe?oe.evaluate(y):1,Xe=wo(z,V,$,me);if(Xe)throw new Ka(Xe);return new ha(z/255*me,V/255*me,$/255*me,me)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Bl(y){return{type:y}}rn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Hi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Hi,Hi,Hi],Cs],rgba:[vn,[Hi,Hi,Hi,Hi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Hi,[],function(y){return y.globals.zoom}],"heatmap-density":[Hi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Hi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Hi,Bl(Hi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Hi,Bl(Hi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Hi,overloads:[[[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Hi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Hi,[],function(){return Math.LN2}],pi:[Hi,[],function(){return Math.PI}],e:[Hi,[],function(){return Math.E}],"^":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Hi,[Hi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Hi,[Hi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Hi,[Hi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Hi,[Hi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Hi,[Hi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Hi,[Hi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Hi,[Hi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Hi,Bl(Hi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Hi,Bl(Hi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Hi,[Hi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Hi,[Hi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Hi,[Hi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Hi,[Hi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Bl(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,me=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var Xe,xt,Dt;if(me==="exponential")Xe=Ml;else if(me==="interval")Xe=zl;else if(me==="categorical"){Xe=nl,xt=Object.create(null);for(var Xt=0,br=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(br){return br[0]}),z),me=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),Xe=y.stops[oe][1],xt=y.stops[oe+1][1],Dt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Dt=function(br,qr){return Xt.reverse(Xt.interpolate(Xt.forward(br),Xt.forward(qr),me))}}return typeof Xe.evaluate=="function"?{evaluate:function(){for(var qr=[],Pr=arguments.length;Pr--;)qr[Pr]=arguments[Pr];var ai=Xe.evaluate.apply(void 0,qr),Oi=xt.evaluate.apply(void 0,qr);if(!(ai===void 0||Oi===void 0))return Dt(ai,Oi,me)}}:Dt(Xe,xt,me)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,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(g,z,V,$,oe,me){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,me){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me||null;try{var 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 Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(Xe)+" instead.");return Xe}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Xl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)};var Gl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Gl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)},Gl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Nl(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var me=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Gl("camera",y.value,oe.labels,me):new Gl("composite",y.value,oe.labels,me))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Nl(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function mt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,me,Xe=z!=="categorical"&&y.value.property===void 0,xt=!Xe,Dt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:br,default:ai}});return z==="identity"&&Xe&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):Xe&&!Vl(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Dt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function br(Oi){if(z==="identity")return[new gn(Oi.key,Oi.value,'identity function may not have a "stops" property')];var Wn=[],bn=Oi.value;return Wn=Wn.concat(Ue({key:Oi.key,value:bn,valueSpec:Oi.valueSpec,style:Oi.style,styleSpec:Oi.styleSpec,arrayElementValidator:qr})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(Oi.key,bn,"array must have at least one stop")),Wn}function qr(Oi){var Wn=[],bn=Oi.value,bo=Oi.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(Dt){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(me&&me>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==me&&(me=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:Oi.style,styleSpec:Oi.styleSpec,objectElementValidators:{zoom:rt,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:Oi.style,styleSpec:Oi.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:g,style:Oi.style,styleSpec:Oi.styleSpec}))}function Pr(Oi,Wn){var bn=ns(Oi.value),bo=Sn(Oi.value),ba=Oi.value!==null?Oi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(Oi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(Oi.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(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(Oi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(Oi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=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 g=0,z=y.slice(1);gg?1:0}function Ve(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?it(y[1],y[2],g):g==="any"?pt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(fr)):g==="in"?Ht(y[1],y.slice(2)):g==="!in"?fr(Ht(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?fr(nr(y[1])):g==="within"?y:!0;return z}function it(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function pt(y){return["any"].concat(y.map(lt))}function Ht(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function fr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Ft(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ir(y)}function Ir(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var me=2;me=Xt[Pr+0]&&V>=Xt[Pr+1])?(me[qr]=!0,oe.push(Dt[qr])):me[qr]=!1}}},sf.prototype._forEachCell=function(y,g,z,V,$,oe,me,Xe){for(var xt=this._convertToCellCoord(y),Dt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),br=this._convertToCellCoord(V),qr=xt;qr<=Xt;qr++)for(var Pr=Dt;Pr<=br;Pr++){var ai=this.d*Pr+qr;if(!(Xe&&!Xe(this._convertFromCellCoord(qr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(qr+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,me,Xe))return}},sf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},sf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=ju+this.cells.length+1+1,z=0,V=0;V=0)){var br=y[Xt];Dt[Xt]=ef[xt].shallow.indexOf(Xt)>=0?br:et(br,g)}y instanceof Error&&(Dt.message=y.message)}if(Dt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Dt.$name=xt),Dt}throw new Error("can't serialize object of type "+typeof y)}function st(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||Pe(y)||Ze(y)||ArrayBuffer.isView(y)||y instanceof _f)return y;if(Array.isArray(y))return y.map(st);if(typeof y=="object"){var g=y.$name||"Object",z=ef[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,me=Object.keys(y);oe=0?xt:st(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):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 hr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["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)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Bi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["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)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["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)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Bi(y))}function mi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function ji(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=wi.error),xo&&xo(y)};function El(){Pl.fire(new nn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ii,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===wi.deferred||no===wi.loading||no===wi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=Qe.resolveURL(y),no=wi.deferred,xo=g,El(),z||Xu()},Xu=function(){if(no!==wi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=wi.loading,El(),Xo&&Nr({url:Xo},function(y){y?js(y):(no=wi.loaded,El())})},Vu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===wi.loaded||Vu.applyArabicShaping!=null},isLoading:function(){return no===wi.loading},setState:function(g){no=g.pluginStatus,Xo=g.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(g,z){this.zoom=g,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 jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,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 g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new lf(this.property,this.value,z,x({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new lf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return W(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:W(z))},Tu.prototype.getTransition=function(g){return W(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=W(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($me.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(Nt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var yi=function(g){this.specification=g};yi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},yi.prototype.interpolate=function(){return!1};var ci=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",Nt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",yi);var vi="-transition",on=function(y){function g(z,V){if(y.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 oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".layout."+V;if(this._validate($u,me,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,vi)?this._transitionablePaint.getTransition(V.slice(0,-vi.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".paint."+V;if(this._validate(Hu,me,V,$,oe))return!1}if(U(V,vi))return this._transitionablePaint.setTransition(V.slice(0,-vi.length),$||void 0),!1;var Xe=this._transitionablePaint._values[V],xt=Xe.property.specification["property-type"]==="cross-faded-data-driven",Dt=Xe.value.isDataDriven(),Xt=Xe.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var br=this._transitionablePaint._values[V].value,qr=br.isDataDriven();return qr||Dt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,br)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.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,$)},g.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($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,me,Xe){return Xe===void 0&&(Xe={}),Xe&&Xe.validate===!1?!1:Ku(this,V.call(nu,{key:$,layerType:this.type,objectKey:oe,value:me,styleSpec:Wi,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.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},g}(Ii),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,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(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.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(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,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(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(me){var Xe=qi(me.type),xt=z=Wr(z,Math.max(g,Xe)),Dt=me.components||1;return V=Math.max(V,Xe),z+=Xe*Dt,{name:me.name,type:me.type,components:Dt,offset:xt}}),oe=Wr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function qi(y){return Bn[y].BYTES_PER_ELEMENT}function Wr(y,g){return Math.ceil(y/g)*g}var xi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.int16[me+0]=$,this.int16[me+1]=oe,V},g}(ua);xi.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",xi);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=me,this.int16[xt+3]=Xe,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=Xe,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Zi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*4,br=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[br+4]=me,this.uint8[br+5]=Xe,this.uint8[br+6]=xt,this.uint8[br+7]=Dt,V},g}(ua);Zi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Zi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.float32[me+0]=$,this.float32[me+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,me,Xe,xt,Dt,Xt,br,qr)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=me,this.uint16[ai+3]=Xe,this.uint16[ai+4]=xt,this.uint16[ai+5]=Dt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=br,this.uint16[ai+8]=qr,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai){var Oi=this.length;return this.resize(Oi+1),this.emplace(Oi,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=me,this.int16[Wn+3]=Xe,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Dt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=br,this.int16[Wn+8]=qr,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=Oi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var Ji=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.float32[Xe+0]=$,this.float32[Xe+1]=oe,this.float32[Xe+2]=me,V},g}(ua);Ji.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",Ji);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br){var qr=this.length;return this.resize(qr+1),this.emplace(qr,V,$,oe,me,Xe,xt,Dt,Xt,br)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=me,this.int16[Pr+3]=Xe,this.int16[Pr+4]=xt,this.int16[Pr+5]=Dt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=br,this.uint16[Pr+9]=qr,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=Xe,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,me,Xe)},g.prototype.emplace=function(V,$,oe,me,Xe,xt){var Dt=V*4,Xt=V*8;return this.float32[Dt+0]=$,this.float32[Dt+1]=oe,this.float32[Dt+2]=me,this.int16[Xt+6]=Xe,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*12,Dt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Dt+1]=me,this.float32[Dt+2]=Xe,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.uint16[Xe+0]=$,this.uint16[Xe+1]=oe,this.uint16[Xe+2]=me,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=me,this.uint16[Uo+3]=Xe,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Dt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=br,this.uint16[Uo+11]=qr,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=Oi,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},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu){var uf=this.length;return this.resize(uf+1),this.emplace(uf,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu,uf){var Ru=V*34,If=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=me,this.int16[Ru+3]=Xe,this.int16[Ru+4]=xt,this.int16[Ru+5]=Dt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=br,this.uint16[Ru+8]=qr,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=Oi,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]=Kl,this.uint32[If+12]=lu,this.float32[If+13]=Ou,this.float32[If+14]=du,this.float32[If+15]=gu,this.float32[If+16]=uf,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.int16[Xe+0]=$,this.int16[Xe+1]=oe,this.int16[Xe+2]=me,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var al=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*2,xt=V*4;return this.uint32[Xe+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=me,V},g}(ua);al.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",al);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.uint16[me+0]=$,this.uint16[me+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Bu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=me,this.float32[xt+3]=Xe,V},g}(ua);Bu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Bu);var vf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);vf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new vf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var Ef=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);Ef.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new Ef(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var gf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);gf.prototype.size=68;var xf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new gf(this,V)},g}(ul);Z("SymbolInstanceArray",xf);var Cf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Cf);var Gu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Gu);var cf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);cf.prototype.size=8;var mf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new cf(this,V)},g}(al);Z("FeatureIndexArray",mf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),bf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt,me=me<<13|me>>>19,Xe=(me&65535)*5+(((me>>>16)*5&65535)<<16)&4294967295,me=(Xe&65535)+27492+(((Xe>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(br+2)&255)<<16;case 2:Xt^=(z.charCodeAt(br+1)&255)<<8;case 1:Xt^=z.charCodeAt(br)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt}return me^=z.length,me^=me>>>16,me=(me&65535)*2246822507+(((me>>>16)*2246822507&65535)<<16)&4294967295,me^=me>>>13,me=(me&65535)*3266489909+(((me>>>16)*3266489909&65535)<<16)&4294967295,me^=me>>>16,me>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,me=0,Xe;$>=4;)Xe=z.charCodeAt(me)&255|(z.charCodeAt(++me)&255)<<8|(z.charCodeAt(++me)&255)<<16|(z.charCodeAt(++me)&255)<<24,Xe=(Xe&65535)*1540483477+(((Xe>>>16)*1540483477&65535)<<16),Xe^=Xe>>>24,Xe=(Xe&65535)*1540483477+(((Xe>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^Xe,$-=4,++me;switch($){case 3:oe^=(z.charCodeAt(me+2)&255)<<16;case 2:oe^=(z.charCodeAt(me+1)&255)<<8;case 1:oe^=z.charCodeAt(me)&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=g}),K=J,_e=J,ne=O;K.murmur3=_e,K.murmur2=ne;var Ce=function(){this.ids=[],this.positions=[],this.indexed=!1};Ce.prototype.add=function(g,z,V,$){this.ids.push(kt(g)),this.positions.push(z,V,$)},Ce.prototype.getPositions=function(g){for(var z=kt(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var me=[];this.ids[V]===z;){var Xe=this.positions[3*V],xt=this.positions[3*V+1],Dt=this.positions[3*V+2];me.push({index:Xe,start:xt,end:Dt}),V++}return me},Ce.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Ce.deserialize=function(g){var z=new Ce;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ye=Math.pow(2,53)-1;function kt(y){var g=+y;return!isNaN(g)&&g<=Ye?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,me=V+1;;){do oe++;while(y[oe]<$);do me--;while(y[me]>$);if(oe>=me)break;Mr(y,oe,me),Mr(g,3*oe,3*me),Mr(g,3*oe+1,3*me+1),Mr(g,3*oe+2,3*me+2)}me-zme.x+1||xtme.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Fu=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new xi,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Yi(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Fu.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],me=null;$.type==="circle"&&(me=$.layout.get("circle-sort-key"));for(var Xe=0,xt=g;Xe=Tn||qr<0||qr>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,br,qr,-1,-1),yu(this.layoutVertexArray,br,qr,1,-1),yu(this.layoutVertexArray,br,qr,1,1),yu(this.layoutVertexArray,br,qr,-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,g,V,{},$)},Z("CircleBucket",Fu,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function mv(y,g){for(var z=!1,V,$,oe,me=0;meg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=me.y>g.y&&g.x<(me.x-oe.x)*(g.y-oe.y)/(me.y-oe.y)+oe.x&&(z=!z)}return z}function yv(y,g,z,V,$){for(var oe=0,me=y;oe=Xe.x&&$>=Xe.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Dt=0,Xt=xt;Dt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function Pp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Jp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var me=[],Xe=0;Xe0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function $9(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function Q9(y,g,z){var V=g[0],$=g[1],oe=g[2],me=z[0],Xe=z[1],xt=z[2];return y[0]=$*xt-oe*Xe,y[1]=oe*me-V*xt,y[2]=V*Xe-$*me,y}function eO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var tO=uy,YQ=function(){var y=ly();return function(g,z,V,$,oe,me){var Xe,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,Xe=V;Xey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var me=y.data,Xe=g.data,xt=0;xt<$.height;xt++)for(var Dt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,br=0;br<$.width*oe;br++)Xe[Xt+br]=me[Dt+br];return g}var Rp=function(g,z){kd(this,g,1,z)};Rp.prototype.resize=function(g){qw(this,g,1)},Rp.prototype.clone=function(){return new Rp({width:this.width,height:this.height},new Uint8Array(this.data))},Rp.copy=function(g,z,V,$,oe){Nw(g,z,V,$,oe,1)};var Ih=function(g,z){kd(this,g,4,z)};Ih.prototype.resize=function(g){qw(this,g,4)},Ih.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},Ih.prototype.clone=function(){return new Ih({width:this.width,height:this.height},new Uint8Array(this.data))},Ih.copy=function(g,z,V,$,oe){Nw(g,z,V,$,oe,4)},Z("AlphaImage",Rp),Z("RGBAImage",Ih);var $x=new ci({"heatmap-radius":new Nt(Wi.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Nt(Wi.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(Wi.paint_heatmap["heatmap-intensity"]),"heatmap-color":new yi(Wi.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(Wi.paint_heatmap["heatmap-opacity"])}),P1={paint:$x};function Qx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new Ih({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.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(y.clips)for(var Dt=0,Xt=0;Dt80*z){Xe=Dt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)br=y[ai],qr=y[ai+1],brDt&&(Dt=br),qr>Xt&&(Xt=qr);Pr=Math.max(Dt-Xe,Xt-xt),Pr=Pr!==0?1/Pr:0}return eb(oe,me,z,Xe,xt,Pr),me}function Gw(y,g,z,V,$){var oe,me;if($===yM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)me=DC(oe,y[oe],y[oe+1],me);return me&&rb(me,me.next)&&(ab(me),me=me.next),me}function fy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(rb(z,z.next)||Jc(z.prev,z,z.next)===0)){if(ab(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function eb(y,g,z,V,$,oe,me){if(y){!me&&oe&&Hw(y,V,$,oe);for(var Xe=y,xt,Dt;y.prev!==y.next;){if(xt=y.prev,Dt=y.next,oe?zC(y,V,$,oe):PC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Dt.i/z),ab(y),y=Dt.next,Xe=Dt.next;continue}if(y=Dt,y===Xe){me?me===1?(y=tb(fy(y),g,z),eb(y,g,z,V,$,oe,2)):me===2&&p0(y,g,z,V,$,oe):eb(fy(y),g,z,V,$,oe,1);break}}}}function PC(y){var g=y.prev,z=y,V=y.next;if(Jc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(hy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Jc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function zC(y,g,z,V){var $=y.prev,oe=y,me=y.next;if(Jc($,oe,me)>=0)return!1;for(var Xe=$.xoe.x?$.x>me.x?$.x:me.x:oe.x>me.x?oe.x:me.x,Xt=$.y>oe.y?$.y>me.y?$.y:me.y:oe.y>me.y?oe.y:me.y,br=dM(Xe,xt,g,z,V),qr=dM(Dt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=br&&ai&&ai.z<=qr;){if(Pr!==y.prev&&Pr!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=br;){if(Pr!==y.prev&&Pr!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=qr;){if(ai!==y.prev&&ai!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function tb(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!rb($,oe)&&Ww($,V,V.next,oe)&&nb($,oe)&&nb(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),ab(V),ab(V.next),V=y=oe),V=V.next}while(V!==y);return fy(V)}function p0(y,g,z,V,$,oe){var me=y;do{for(var Xe=me.next.next;Xe!==me.prev;){if(me.i!==Xe.i&&I1(me,Xe)){var xt=vM(me,Xe);me=fy(me,me.next),xt=fy(xt,xt.next),eb(me,g,z,V,$,oe),eb(xt,g,z,V,$,oe);return}Xe=Xe.next}me=me.next}while(me!==y)}function cy(y,g,z,V){var $=[],oe,me,Xe,xt,Dt;for(oe=0,me=g.length;oe=z.next.y&&z.next.y!==z.y){var Xe=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(Xe<=V&&Xe>oe){if(oe=Xe,Xe===V){if($===z.y)return z;if($===z.next.y)return z.next}me=z.x=z.x&&z.x>=Dt&&V!==z.x&&hy($me.x||z.x===me.x&&fO(me,z)))&&(me=z,br=qr)),z=z.next;while(z!==xt);return me}function fO(y,g){return Jc(y.prev,y,g.prev)<0&&Jc(g.next,y,y.next)<0}function Hw(y,g,z,V){var $=y;do $.z===null&&($.z=dM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,hM($)}function hM(y){var g,z,V,$,oe,me,Xe,xt,Dt=1;do{for(z=y,y=null,oe=null,me=0;z;){for(me++,V=z,Xe=0,g=0;g0||xt>0&&V;)Xe!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,Xe--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Dt*=2}while(me>1);return y}function dM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function pM(y){var g=y,z=y;do(g.x=0&&(y-me)*(V-Xe)-(z-me)*(g-Xe)>=0&&(z-me)*(oe-Xe)-($-me)*(V-Xe)>=0}function I1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!RC(y,g)&&(nb(y,g)&&nb(g,y)&&cO(y,g)&&(Jc(y.prev,y,g.prev)||Jc(y,g.prev,g))||rb(y,g)&&Jc(y.prev,y,y.next)>0&&Jc(g.prev,g,g.next)>0)}function Jc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function rb(y,g){return y.x===g.x&&y.y===g.y}function Ww(y,g,z,V){var $=mg(Jc(y,g,z)),oe=mg(Jc(y,g,V)),me=mg(Jc(z,V,y)),Xe=mg(Jc(z,V,g));return!!($!==oe&&me!==Xe||$===0&&ib(y,z,g)||oe===0&&ib(y,V,g)||me===0&&ib(z,y,V)||Xe===0&&ib(z,g,V))}function ib(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function mg(y){return y>0?1:y<0?-1:0}function RC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Ww(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function nb(y,g){return Jc(y.prev,y,y.next)<0?Jc(y,g,y.next)>=0&&Jc(y,y.prev,g)>=0:Jc(y,g,y.prev)<0||Jc(y,y.next,g)<0}function cO(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function vM(y,g){var z=new mM(y.i,y.x,y.y),V=new mM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function DC(y,g,z,V){var $=new mM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ab(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 mM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}z1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,me=Math.abs(yM(y,0,oe,z));if($)for(var Xe=0,xt=g.length;Xe0&&(V+=y[$-1].length,z.holes.push(V))}return z},Vw.default=LC;function gM(y,g,z,V,$){vm(y,g,z||0,V||y.length-1,$||FC)}function vm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,me=g-z+1,Xe=Math.log(oe),xt=.5*Math.exp(2*Xe/3),Dt=.5*Math.sqrt(Xe*xt*(oe-xt)/oe)*(me-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-me*xt/oe+Dt)),br=Math.min(V,Math.floor(g+(oe-me)*xt/oe+Dt));vm(y,g,Xt,br,$)}var qr=y[g],Pr=z,ai=V;for(R1(y,z,g),$(y[V],qr)>0&&R1(y,z,V);Pr0;)ai--}$(y[z],qr)===0?R1(y,z,ai):(ai++,R1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function R1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function FC(y,g){return yg?1:0}function jw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,me=0;me1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(Xe&&me.push(Xe),Xe=[]),Xe.push(new l($,oe));else if(z===7)Xe&&Xe.push(Xe[0].clone());else throw new Error("unknown command "+z)}return Xe&&me.push(Xe),me},yg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,me=1/0,Xe=-1/0,xt=1/0,Dt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$Xe&&(Xe=$),oeDt&&(Dt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[me,xt,Xe,Dt]},yg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,me=this.loadGeometry(),Xe=yg.types[this.type],xt,Dt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}bM.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 g=this._pbf.readVarint()+this._pbf.pos;return new xM(this._pbf,g,this.extent,this._keys,this._values)};var jC=dO;function dO(y,g){this.layers=y.readFields(pO,{},g)}function pO(y,g,z){if(y===3){var V=new mm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var XC=jC,D1=xM,ZC=mm,ym={VectorTile:XC,VectorTileFeature:D1,VectorTileLayer:ZC},YC=ym.VectorTileFeature.types,Zw=500,F1=Math.pow(2,13);function dy(y,g,z,V,$,oe,me,Xe){y.emplaceBack(g,z,Math.floor(V*F1)*2+me,$*F1*2,oe*F1*2,Math.round(Xe))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Yi(g.layers,g.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(g,z,V){this.features=[],this.hasPattern=Xw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!vO(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+Dt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Dt,this.layoutVertexArray,this.indexArray)),YC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Ou=xt;luTn)||y.y===g.y&&(y.y<0||y.y>Tn)}function mO(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>Tn})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>Tn})}var B1=new ci({"fill-extrusion-opacity":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(Wi["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ud={paint:B1},py=function(y){function g(z){y.call(this,z,ud)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return Pp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,me,Xe,xt,Dt,Xt){var br=Jp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Dt),qr=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=yO(br,Xt,xt,0),Oi=AM(me,Pr,qr,Xt),Wn=Oi[0],bn=Oi[1];return KC(Wn,bn,ai)},g}(on);function gg(y,g){return y.x*g.x+y.y*g.y}function wM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Dt-1].equals(g[Dt-2]);)Dt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*br){var lu=Pr.sub(Pr.sub(ai)._mult(br/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,qr),ai=lu}}var Ou=ai&&Oi,du=Ou?V:xt?"butt":$;if(Ou&&du==="round"&&(Zsoe&&(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,qr),this.addCurrentVertex(Pr,ba.mult(-1),0,0,qr)}else if(du==="bevel"||du==="fakeround"){var uf=-Math.sqrt(Zs*Zs-1),Ru=hu?uf:0,If=hu?0:uf;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,If,qr),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/SM),Rf=1;Rf2*br){var _h=Pr.add(Oi.sub(Pr)._mult(br/td)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,qr),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,me){me===void 0&&(me=!1);var Xe=z.x+z.y*V,xt=z.y-z.x*V,Dt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,Xe,xt,me,!1,V,oe),this.addHalfVertex(g,Dt,Xt,me,!0,-$,oe),this.distance>fb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,me))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,me,Xe){var xt=g.x,Dt=g.y,Xt=this.lineClips?this.scaledDistance*(fb-1):this.scaledDistance,br=Xt*Kw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Dt<<1)+(oe?1:0),Math.round(Yw*z)+128,Math.round(Yw*V)+128,(me===0?0:me<0?-1:1)+1|(br&63)<<2,br>>6),this.lineClips){var qr=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=qr/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var Oi=Xe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Oi),Xe.primitiveLength++),oe?this.e2=Oi:this.e1=Oi},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(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var MM=new ci({"line-cap":new Be(Wi.layout_line["line-cap"]),"line-join":new Nt(Wi.layout_line["line-join"]),"line-miter-limit":new Be(Wi.layout_line["line-miter-limit"]),"line-round-limit":new Be(Wi.layout_line["line-round-limit"]),"line-sort-key":new Nt(Wi.layout_line["line-sort-key"])}),EM=new ci({"line-opacity":new Nt(Wi.paint_line["line-opacity"]),"line-color":new Nt(Wi.paint_line["line-color"]),"line-translate":new Be(Wi.paint_line["line-translate"]),"line-translate-anchor":new Be(Wi.paint_line["line-translate-anchor"]),"line-width":new Nt(Wi.paint_line["line-width"]),"line-gap-width":new Nt(Wi.paint_line["line-gap-width"]),"line-offset":new Nt(Wi.paint_line["line-offset"]),"line-blur":new Nt(Wi.paint_line["line-blur"]),"line-dasharray":new Qr(Wi.paint_line["line-dasharray"]),"line-pattern":new ar(Wi.paint_line["line-pattern"]),"line-gradient":new yi(Wi.paint_line["line-gradient"])}),Jw={paint:EM,layout:MM},_O=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,me){return $=x({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,me)},g}(Nt),I=new _O(Jw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var S=function(y){function g(z){y.call(this,z,Jw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),me=Md("line-offset",this,$);return oe/2+Math.abs(me)+Pp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,me,Xe,xt,Dt){var Xt=Jp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Dt),br=Dt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),qr=this.paint.get("line-offset").evaluate($,oe);return qr&&(me=X(me,qr*Dt)),Vf(Xt,me,br)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,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(y){for(var g="",z=0;z>1,Xt=-7,br=z?$-1:0,qr=z?-1:1,Pr=y[g+br];for(br+=qr,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=Xe;Xt>0;oe=oe*256+y[g+br],br+=qr,Xt-=8);for(me=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;me=me*256+y[g+br],br+=qr,Xt-=8);if(oe===0)oe=1-Dt;else{if(oe===xt)return me?NaN:(Pr?-1:1)*(1/0);me=me+Math.pow(2,V),oe=oe-Dt}return(Pr?-1:1)*me*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var me,Xe,xt,Dt=oe*8-$-1,Xt=(1<>1,qr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,Oi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(Xe=isNaN(g)?1:0,me=Xt):(me=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-me))<1&&(me--,xt*=2),me+br>=1?g+=qr/xt:g+=qr*Math.pow(2,1-br),g*xt>=2&&(me++,xt/=2),me+br>=Xt?(Xe=0,me=Xt):me+br>=1?(Xe=(g*xt-1)*Math.pow(2,$),me=me+br):(Xe=g*Math.pow(2,br-1)*Math.pow(2,$),me=0));$>=8;y[z+Pr]=Xe&255,Pr+=ai,Xe/=256,$-=8);for(me=me<<$|Xe,Dt+=$;Dt>0;y[z+Pr]=me&255,Pr+=ai,me/=256,Dt-=8);y[z+Pr-ai]|=Oi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||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(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=$h(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Dp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=$h(this.buf,this.pos)+$h(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=$h(this.buf,this.pos)+Dp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,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,g=this.pos;return this.pos=y,y-g>=_u&&Xs?Xf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(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 g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&Qp(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&Qp(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,fd,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Dh,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Hd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,$c,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,Fh,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,cd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return qu(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function qu(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Rh(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Rh(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function Qp(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function fd(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function Dp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+Xe>z)break;var xt,Dt,Xt;Xe===1?oe<128&&(me=oe):Xe===2?(xt=y[$+1],(xt&192)===128&&(me=(oe&31)<<6|xt&63,me<=127&&(me=null))):Xe===3?(xt=y[$+1],Dt=y[$+2],(xt&192)===128&&(Dt&192)===128&&(me=(oe&15)<<12|(xt&63)<<6|Dt&63,(me<=2047||me>=55296&&me<=57343)&&(me=null))):Xe===4&&(xt=y[$+1],Dt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Dt&192)===128&&(Xt&192)===128&&(me=(oe&15)<<18|(xt&63)<<12|(Dt&63)<<6|Xt&63,(me<=65535||me>=1114112)&&(me=null))),me===null?(me=65533,Xe=1):me>65535&&(me-=65536,V+=String.fromCharCode(me>>>10&1023|55296),me=56320|me&1023),V+=String.fromCharCode(me),$+=Xe}return V}function Xf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Fp(y,g,z){y===1&&z.readMessage(Hc,g)}function Hc(y,g,z){if(y===3){var V=z.readMessage(O1,{}),$=V.id,oe=V.bitmap,me=V.width,Xe=V.height,xt=V.left,Dt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Rp({width:me+2*mc,height:Xe+2*mc},oe),metrics:{width:me,height:Xe,left:xt,top:Dt,advance:Xt}})}}function O1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Fp,[])}var Gv=mc;function ev(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var me=Math.max(Math.ceil(Math.sqrt(g/.95)),z),Xe=[{x:0,y:0,w:me,h:1/0}],xt=0,Dt=0,Xt=0,br=y;Xt=0;Pr--){var ai=Xe[Pr];if(!(qr.w>ai.w||qr.h>ai.h)){if(qr.x=ai.x,qr.y=ai.y,Dt=Math.max(Dt,qr.y+qr.h),xt=Math.max(xt,qr.x+qr.w),qr.w===ai.w&&qr.h===ai.h){var Oi=Xe.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Qh.prototype.substring=function(g,z){var V=new Qh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Qh.prototype.toString=function(){return this.text},Qh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Qh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(_g.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=$w,this.imageSectionID)};function xO(y,g){for(var z=[],V=y.text,$=0,oe=0,me=g;oe=0,Xt=0,br=0;br0&&_h>hu&&(hu=_h)}else{var Df=z[lu.fontStack],Pf=Df&&Df[du];if(Pf&&Pf.rect)Ru=Pf.rect,uf=Pf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;uf=Tc.metrics}gu=(Uo-lu.scale)*So}Rf?(y.verticalizable=!0,Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Ou,metrics:uf,rect:Ru}),qr+=sc*lu.scale+Dt):(Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Ou,metrics:uf,rect:Ru}),qr+=uf.advance*lu.scale+Dt)}if(Tl.length!==0){var Zd=qr-Dt;ai=Math.max(Zd,ai),TO(Tl,0,Tl.length-1,Wn,hu)}qr=0;var Yd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Yd,Oi=Math.max(Yd,Oi),++bn}var rd=Pr-q1,dp=CM(me),pp=dp.horizontalAlign,Bh=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,Bh,ai,Oi,oe,rd,$.length),y.top+=-Bh*rd,y.bottom=y.top+rd,y.left+=-pp*ai,y.right=y.left+ai}function TO(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],me=oe.metrics.advance*oe.scale,Xe=(y[z].x+me)*V,xt=g;xt<=z;xt++)y[xt].x-=Xe,y[xt].y+=$}function Ld(y,g,z,V,$,oe,me,Xe,xt){var Dt=(g-z)*$,Xt=0;oe!==me?Xt=-Xe*V-q1:Xt=(-V*xt+.5)*me;for(var br=0,qr=y;br-z/2;){if(me--,me<0)return!1;Xe-=y[me].dist(oe),oe=y[me]}Xe+=y[me].dist(y[me+1]),me++;for(var xt=[],Dt=0;XeV;)Dt-=xt.shift().angleDelta;if(Dt>$)return!1;me++,Xe+=br.dist(qr)}return!0}function eee(y){for(var g=0,z=0;zDt){var ai=(Dt-xt)/Pr,Oi=Lo(br.x,qr.x,ai),Wn=Lo(br.y,qr.y,ai),bn=new Xd(Oi,Wn,qr.angleTo(br),Xt);return bn._round(),!me||QQ(y,bn,Xe,me,g)?bn:void 0}xt+=Pr}}function btt(y,g,z,V,$,oe,me,Xe,xt){var Dt=tee(V,oe,me),Xt=ree(V,$),br=Xt*me,qr=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-br=0&&_o=0&&Uo=0&&qr+Dt<=Xt){var Zs=new Xd(_o,Uo,bo,ai);Zs._round(),(!V||QQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}br+=bn}return!Xe&&!Pr.length&&!me&&(Pr=iee(y,br/2,z,V,$,oe,me,!0,xt)),Pr}function nee(y,g,z,V,$){for(var oe=[],me=0;me=V&&br.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round():br.x>=V&&(br=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round()),!(Xt.y>=$&&br.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round():br.y>=$&&(br=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(br)))))}return oe}var t3=Rc;function aee(y,g,z,V){var $=[],oe=y.image,me=oe.pixelRatio,Xe=oe.paddedRect.w-2*t3,xt=oe.paddedRect.h-2*t3,Dt=y.right-y.left,Xt=y.bottom-y.top,br=oe.stretchX||[[0,Xe]],qr=oe.stretchY||[[0,xt]],Pr=function(Df,Pf){return Df+Pf[1]-Pf[0]},ai=br.reduce(Pr,0),Oi=qr.reduce(Pr,0),Wn=Xe-ai,bn=xt-Oi,bo=0,ba=ai,_o=0,Uo=Oi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=nL(br,0,Kl[0]),_o=nL(qr,0,Kl[1]),ba=nL(br,Kl[0],Kl[2]),Uo=nL(qr,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(Df,Pf,yc,Tc){var Qc=aL(Df.stretch-bo,ba,Dt,y.left),nh=oL(Df.fixed-Zs,Cl,Df.stretch,ai),td=aL(Pf.stretch-_o,Uo,Xt,y.top),_h=oL(Pf.fixed-Tl,hu,Pf.stretch,Oi),Zd=aL(yc.stretch-bo,ba,Dt,y.left),Yd=oL(yc.fixed-Zs,Cl,yc.stretch,ai),rd=aL(Tc.stretch-_o,Uo,Xt,y.top),dp=oL(Tc.fixed-Tl,hu,Tc.stretch,Oi),pp=new l(Qc,td),Bh=new l(Zd,td),vp=new l(Zd,rd),bv=new l(Qc,rd),wg=new l(nh/me,_h/me),V1=new l(Yd/me,dp/me),G1=g*Math.PI/180;if(G1){var H1=Math.sin(G1),u3=Math.cos(G1),g0=[u3,-H1,H1,u3];pp._matMult(g0),Bh._matMult(g0),bv._matMult(g0),vp._matMult(g0)}var hL=Df.stretch+Df.fixed,zO=yc.stretch+yc.fixed,dL=Pf.stretch+Pf.fixed,IO=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+t3+hL,y:oe.paddedRect.y+t3+dL,w:zO-hL,h:IO-dL},f3=Cl/me/Dt,pL=hu/me/Xt;return{tl:pp,tr:Bh,bl:bv,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:wg,pixelOffsetBR:V1,minFontScaleX:f3,minFontScaleY:pL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Xe+1},{fixed:0,stretch:xt+1}));else for(var Ou=oee(br,Wn,ai),du=oee(qr,bn,Oi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var Oi=me.top*Xe-xt,Wn=me.bottom*Xe+xt,bn=me.left*Xe-xt,bo=me.right*Xe+xt,ba=me.collisionPadding;if(ba&&(bn-=ba[0]*Xe,Oi-=ba[1]*Xe,bo+=ba[2]*Xe,Wn+=ba[3]*Xe),Xt){var _o=new l(bn,Oi),Uo=new l(bo,Oi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*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),Oi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,Oi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},r3=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Att),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};r3.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},r3.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},r3.prototype.peek=function(){return this.data[0]},r3.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var me=g-1>>1,Xe=V[me];if($(oe,Xe)>=0)break;V[g]=Xe,g=me}V[g]=oe},r3.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,me=V[g];g=0)break;V[g]=xt,g=Xe}V[g]=me};function Att(y,g){return yg?1:0}function Ttt(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,me=-1/0,Xe=y[0],xt=0;xtoe)&&(oe=Dt.x),(!xt||Dt.y>me)&&(me=Dt.y)}var Xt=oe-V,br=me-$,qr=Math.min(Xt,br),Pr=qr/2,ai=new r3([],Stt);if(qr===0)return new l(V,$);for(var Oi=V;Oibn.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<=g)&&(Pr=ba.h/2,ai.push(new i3(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new i3(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new i3(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new i3(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Stt(y,g){return g.max-y.max}function i3(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=Mtt(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Mtt(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Dt.x)*(y.y-Dt.y)/(Xt.y-Dt.y)+Dt.x&&(z=!z),V=Math.min(V,hm(y,Dt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Ett(y){for(var g=0,z=0,V=0,$=y[0],oe=0,me=$.length,Xe=me-1;oe=Tn||g0.y<0||g0.y>=Tn||Ltt(y,g0,u3,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Dt,Xt,me)};if(Kl==="line")for(var uf=0,Ru=nee(g.geometry,0,0,Tn,Tn);uf1){var td=xtt(nh,Cl,z.vertical||ai,V,Oi,bo);td&&gu(nh,td)}}else if(g.type==="Polygon")for(var _h=0,Zd=jw(g.geometry,0);_hN1&&re(y.layerIds[0]+': Value for "text-size" is >= '+LM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(me,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(me,{},ai)],(bn[0]>N1||bn[1]>N1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+LM+'. Reduce your "text-size".')),y.addSymbols(y.text,Oi,bn,Xe,oe,me,Dt,g,xt.lineStartIndex,xt.lineLength,qr,ai);for(var bo=0,ba=Xt;boN1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+LM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(Bh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(Bh[0]>N1||Bh[1]>N1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+LM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,rd,Bh,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Rf=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,Bh,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var bv=V.horizontal[vp];if(!lu){yc=K(bv.text);var wg=Xe.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new sL(xt,g,Dt,Xt,br,bv,qr,Pr,ai,wg)}var V1=bv.positionedLines.length===1;if(If+=lee(y,g,bv,oe,Xe,ai,_o,Oi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,V1?Object.keys(V.horizontal):[vp],Pf,Rf,Uo,Cl),V1)break}V.vertical&&(sc+=lee(y,g,V.vertical,oe,Xe,ai,_o,Oi,Kl,cp.vertical,["vertical"],Pf,Df,Uo,Cl));var G1=lu?lu.boxStartIndex:y.collisionBoxArray.length,H1=lu?lu.boxEndIndex:y.collisionBoxArray.length,u3=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,hL=Ou?Ou.boxStartIndex:y.collisionBoxArray.length,zO=Ou?Ou.boxEndIndex:y.collisionBoxArray.length,dL=gu?gu.boxStartIndex:y.collisionBoxArray.length,IO=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,f3=function(IM,See){return IM&&IM.circleDiameter?Math.max(IM.circleDiameter,See):See};Hv=f3(lu,Hv),Hv=f3(du,Hv),Hv=f3(Ou,Hv),Hv=f3(gu,Hv);var pL=Hv>-1?1:0;pL&&(Hv*=Tl/So),y.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&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,Pf.right>=0?Pf.right:-1,Pf.center>=0?Pf.center:-1,Pf.left>=0?Pf.left:-1,Pf.vertical||-1,Rf,Df,yc,G1,H1,u3,g0,hL,zO,dL,IO,Dt,If,sc,uf,Ru,pL,0,qr,Tc,Qc,Hv)}function Ptt(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],me=oe.length-1;me>=0;me--)if(V.dist(oe[me])0)&&(me.value.kind!=="constant"||me.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,br=oe.get("symbol-sort-key");if(this.features=[],!(!Dt&&!Xt)){for(var qr=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,Oi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Rf=hu.sections;sc=0;xt--)me[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Dt=0;Dt0},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(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],me=[],Xe=0;Xe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],me=this.symbolInstances.get(oe);this.featureSortOrder.push(me.featureIndex),[me.rightJustifiedTextSymbolIndex,me.centerJustifiedTextSymbolIndex,me.leftJustifiedTextSymbolIndex].forEach(function(Xe,xt,Dt){Xe>=0&&Dt.indexOf(Xe)===xt&&z.addIndicesForPlacedSymbol(z.text,Xe)}),me.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,me.verticalPlacedTextSymbolIndex),me.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.placedIconSymbolIndex),me.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.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=EO;function Dtt(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var Ftt=new ci({"symbol-placement":new Be(Wi.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(Wi.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(Wi.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Nt(Wi.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(Wi.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(Wi.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(Wi.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(Wi.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(Wi.layout_symbol["icon-rotation-alignment"]),"icon-size":new Nt(Wi.layout_symbol["icon-size"]),"icon-text-fit":new Be(Wi.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(Wi.layout_symbol["icon-text-fit-padding"]),"icon-image":new Nt(Wi.layout_symbol["icon-image"]),"icon-rotate":new Nt(Wi.layout_symbol["icon-rotate"]),"icon-padding":new Be(Wi.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(Wi.layout_symbol["icon-keep-upright"]),"icon-offset":new Nt(Wi.layout_symbol["icon-offset"]),"icon-anchor":new Nt(Wi.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(Wi.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(Wi.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(Wi.layout_symbol["text-rotation-alignment"]),"text-field":new Nt(Wi.layout_symbol["text-field"]),"text-font":new Nt(Wi.layout_symbol["text-font"]),"text-size":new Nt(Wi.layout_symbol["text-size"]),"text-max-width":new Nt(Wi.layout_symbol["text-max-width"]),"text-line-height":new Be(Wi.layout_symbol["text-line-height"]),"text-letter-spacing":new Nt(Wi.layout_symbol["text-letter-spacing"]),"text-justify":new Nt(Wi.layout_symbol["text-justify"]),"text-radial-offset":new Nt(Wi.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(Wi.layout_symbol["text-variable-anchor"]),"text-anchor":new Nt(Wi.layout_symbol["text-anchor"]),"text-max-angle":new Be(Wi.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(Wi.layout_symbol["text-writing-mode"]),"text-rotate":new Nt(Wi.layout_symbol["text-rotate"]),"text-padding":new Be(Wi.layout_symbol["text-padding"]),"text-keep-upright":new Be(Wi.layout_symbol["text-keep-upright"]),"text-transform":new Nt(Wi.layout_symbol["text-transform"]),"text-offset":new Nt(Wi.layout_symbol["text-offset"]),"text-allow-overlap":new Be(Wi.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(Wi.layout_symbol["text-ignore-placement"]),"text-optional":new Be(Wi.layout_symbol["text-optional"])}),Btt=new ci({"icon-opacity":new Nt(Wi.paint_symbol["icon-opacity"]),"icon-color":new Nt(Wi.paint_symbol["icon-color"]),"icon-halo-color":new Nt(Wi.paint_symbol["icon-halo-color"]),"icon-halo-width":new Nt(Wi.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Nt(Wi.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(Wi.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(Wi.paint_symbol["icon-translate-anchor"]),"text-opacity":new Nt(Wi.paint_symbol["text-opacity"]),"text-color":new Nt(Wi.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new Nt(Wi.paint_symbol["text-halo-color"]),"text-halo-width":new Nt(Wi.paint_symbol["text-halo-width"]),"text-halo-blur":new Nt(Wi.paint_symbol["text-halo-blur"]),"text-translate":new Be(Wi.paint_symbol["text-translate"]),"text-translate-anchor":new Be(Wi.paint_symbol["text-translate-anchor"])}),kO={paint:Btt,layout:Ftt},o3=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};o3.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},o3.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},o3.prototype.outputDefined=function(){return!1},o3.prototype.serialize=function(){return null},Z("FormatSectionOverride",o3,{omit:["defaultValue"]});var Ott=function(y){function g(z){y.call(this,z,kO)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.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 oe=this.layout.get("text-writing-mode");if(oe){for(var me=[],Xe=0,xt=oe;Xe",targetMapId:$,sourceMapId:me.mapId})}}},s3.prototype.receive=function(g){var z=g.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 Le()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},s3.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},s3.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(st(z.error)):$(null,st(z.data)))}else{var oe=!1,me=ke(this.globalScope)?void 0:[],Xe=z.hasCallback?function(qr,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:qr?et(qr):null,data:et(Pr,me)},me)}:function(qr){oe=!0},xt=null,Dt=st(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Dt,Xe);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),br=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Dt.source);xt=br[Xt[1]](Dt,Xe)}else Xe(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},s3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Ytt(y,g,z){g=Math.pow(2,z)-g-1;var V=pee(y*256,g*256,z),$=pee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function pee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var me=g;return this.extend(yh.convert(me))}else{var Xe=g;return this.extend(Dc.convert(Xe))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.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(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,me=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(me=this._sw.lng>=V&&V>=this._ne.lng),oe&&me},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var vee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,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(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),me=vee*Math.acos(Math.min(oe,1));return me},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/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(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.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 mee=2*Math.PI*vee;function yee(y){return mee*Math.cos(y*Math.PI/180)}function gee(y){return(180+y)/360}function _ee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function xee(y,g){return y/yee(g)}function Ktt(y){return y*360-180}function LO(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function Jtt(y,g){return y*yee(LO(g))}function $tt(y){return 1/Math.cos(y*Math.PI/180)}var db=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};db.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new db(gee(V.lng),_ee(V.lat),xee(z,V.lat))},db.prototype.toLngLat=function(){return new Dc(Ktt(this.x),LO(this.y))},db.prototype.toAltitude=function(){return Jtt(this.z,this.y)},db.prototype.meterInMercatorCoordinateUnits=function(){return 1/mee*$tt(LO(this.y))};var pb=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=zM(0,g,g,z,V)};pb.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},pb.prototype.url=function(g,z){var V=Ytt(this.x,this.y,this.z),$=Qtt(this.z,this.x,this.y);return g[(this.x+this.y)%g.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)},pb.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*Tn,(g.y*z-this.y)*Tn)},pb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var bee=function(g,z){this.wrap=g,this.canonical=z,this.key=zM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new pb(V,+$,+oe),this.key=zM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?zM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):zM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)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(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=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+(g+1)},xg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},xg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},xg.prototype.getPixels=function(){return new Ih({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},xg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,me=V*this.dim,Xe=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:me=Xe-1;break;case 1:Xe=me+1;break}for(var xt=-z*this.dim,Dt=-V*this.dim,Xt=me;Xt=0&&br[3]>=0&&xt.insert(Xe,br[0],br[1],br[2],br[3])}},bg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ym.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new fL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},bg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var me=g.params||{},Xe=Tn/g.tileSize/g.scale,xt=Me(me.filter),Dt=g.queryGeometry,Xt=g.queryPadding*Xe,br=Aee(Dt),qr=this.grid.query(br.minX-Xt,br.minY-Xt,br.maxX+Xt,br.maxY+Xt),Pr=Aee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return yv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),Oi=0,Wn=ai;Oi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ii,this.zoom,Wt);var bi=jr[xn.id]=xn.createBucket({index:Hr.bucketLayerIDs.length,layers:Ii,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:tn,sourceID:this.source});bi.populate(Yr,gi,this.tileID.canonical),Hr.bucketLayerIDs.push(Ii.map(function(ii){return ii.id}))}}}}var Xr,ct,tr,pr,gr=i.mapObject(gi.glyphDependencies,function(ii){return Object.keys(ii).map(Number)});Object.keys(gr).length?xr.send("getGlyphs",{uid:this.uid,stacks:gr},function(ii,Xi){Xr||(Xr=ii,ct=Xi,en.call(Nr))}):ct={};var Zr=Object.keys(gi.iconDependencies);Zr.length?xr.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ii,Xi){Xr||(Xr=ii,tr=Xi,en.call(Nr))}):tr={};var Ai=Object.keys(gi.patternDependencies);Ai.length?xr.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ii,Xi){Xr||(Xr=ii,pr=Xi,en.call(Nr))}):pr={},en.call(this);function en(){if(Xr)return Lr(Xr);if(ct&&tr&&pr){var ii=new f(ct),Xi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ct,ii.positions,tr,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,Wt),Mn.addFeatures(gi,this.tileID.canonical,Xi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Hr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ii.image,imageAtlas:Xi,glyphMap:this.returnDependencies?ct:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ii.positions:null})}}};function h(Rt,yt,Gt){for(var Wt=new i.EvaluationParameters(yt),xr=0,Lr=Rt;xr=0!=!!yt&&Rt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],Gt=0,Wt=this._feature.geometry;Gt>31}function Le(Rt,yt){for(var Gt=Rt.loadGeometry(),Wt=Rt.type,xr=0,Lr=0,Nr=Gt.length,Or=0;Or>1;ke(Rt,yt,Nr,Wt,xr,Lr%2),te(Rt,yt,Gt,Wt,Nr-1,Lr+1),te(Rt,yt,Gt,Nr+1,xr,Lr+1)}}function ke(Rt,yt,Gt,Wt,xr,Lr){for(;xr>Wt;){if(xr-Wt>600){var Nr=xr-Wt+1,Or=Gt-Wt+1,Hr=Math.log(Nr),jr=.5*Math.exp(2*Hr/3),gi=.5*Math.sqrt(Hr*jr*(Nr-jr)/Nr)*(Or-Nr/2<0?-1:1),ki=Math.max(Wt,Math.floor(Gt-Or*jr/Nr+gi)),Vi=Math.min(xr,Math.floor(Gt+(Nr-Or)*jr/Nr+gi));ke(Rt,yt,Gt,ki,Vi,Lr)}var ti=yt[2*Gt+Lr],tn=Wt,Yr=xr;for(Ee(Rt,yt,Wt,Gt),yt[2*xr+Lr]>ti&&Ee(Rt,yt,Wt,xr);tnti;)Yr--}yt[2*Wt+Lr]===ti?Ee(Rt,yt,Wt,Yr):(Yr++,Ee(Rt,yt,Yr,xr)),Yr<=Gt&&(Wt=Yr+1),Gt<=Yr&&(xr=Yr-1)}}function Ee(Rt,yt,Gt,Wt){Se(Rt,Gt,Wt),Se(yt,2*Gt,2*Wt),Se(yt,2*Gt+1,2*Wt+1)}function Se(Rt,yt,Gt){var Wt=Rt[yt];Rt[yt]=Rt[Gt],Rt[Gt]=Wt}function Ge(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=[0,Rt.length-1,0],Hr=[],jr,gi;Or.length;){var ki=Or.pop(),Vi=Or.pop(),ti=Or.pop();if(Vi-ti<=Nr){for(var tn=ti;tn<=Vi;tn++)jr=yt[2*tn],gi=yt[2*tn+1],jr>=Gt&&jr<=xr&&gi>=Wt&&gi<=Lr&&Hr.push(Rt[tn]);continue}var Yr=Math.floor((ti+Vi)/2);jr=yt[2*Yr],gi=yt[2*Yr+1],jr>=Gt&&jr<=xr&&gi>=Wt&&gi<=Lr&&Hr.push(Rt[Yr]);var oi=(ki+1)%2;(ki===0?Gt<=jr:Wt<=gi)&&(Or.push(ti),Or.push(Yr-1),Or.push(oi)),(ki===0?xr>=jr:Lr>=gi)&&(Or.push(Yr+1),Or.push(Vi),Or.push(oi))}return Hr}function De(Rt,yt,Gt,Wt,xr,Lr){for(var Nr=[0,Rt.length-1,0],Or=[],Hr=xr*xr;Nr.length;){var jr=Nr.pop(),gi=Nr.pop(),ki=Nr.pop();if(gi-ki<=Lr){for(var Vi=ki;Vi<=gi;Vi++)xe(yt[2*Vi],yt[2*Vi+1],Gt,Wt)<=Hr&&Or.push(Rt[Vi]);continue}var ti=Math.floor((ki+gi)/2),tn=yt[2*ti],Yr=yt[2*ti+1];xe(tn,Yr,Gt,Wt)<=Hr&&Or.push(Rt[ti]);var oi=(jr+1)%2;(jr===0?Gt-xr<=tn:Wt-xr<=Yr)&&(Nr.push(ki),Nr.push(ti-1),Nr.push(oi)),(jr===0?Gt+xr>=tn:Wt+xr>=Yr)&&(Nr.push(ti+1),Nr.push(gi),Nr.push(oi))}return Or}function xe(Rt,yt,Gt,Wt){var xr=Rt-Gt,Lr=yt-Wt;return xr*xr+Lr*Lr}var Ne=function(Rt){return Rt[0]},ce=function(Rt){return Rt[1]},je=function(yt,Gt,Wt,xr,Lr){Gt===void 0&&(Gt=Ne),Wt===void 0&&(Wt=ce),xr===void 0&&(xr=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=xr,this.points=yt;for(var Nr=yt.length<65536?Uint16Array:Uint32Array,Or=this.ids=new Nr(yt.length),Hr=this.coords=new Lr(yt.length*2),jr=0;jr=xr;gi--){var ki=+Date.now();Hr=this._cluster(Hr,gi),this.trees[gi]=new je(Hr,Ae,ot,Nr,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",gi,Hr.length,+Date.now()-ki)}return Wt&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,Gt){var Wt=((yt[0]+180)%360+360)%360-180,xr=Math.max(-90,Math.min(90,yt[1])),Lr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Or=this.getClusters([Wt,xr,180,Nr],Gt),Hr=this.getClusters([-180,xr,Lr,Nr],Gt);return Or.concat(Hr)}for(var jr=this.trees[this._limitZoom(Gt)],gi=jr.range(wt(Wt),Mt(Nr),wt(Lr),Mt(xr)),ki=[],Vi=0,ti=gi;ViGt&&(Yr+=nn.numPoints||1)}if(Yr>=Hr){for(var Ri=ki.x*tn,Ii=ki.y*tn,xn=Or&&tn>1?this._map(ki,!0):null,bi=(gi<<5)+(Gt+1)+this.points.length,Xr=0,ct=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,Gt){if(yt.numPoints)return Gt?Et({},yt.properties):yt.properties;var Wt=this.points[yt.index].properties,xr=this.options.map(Wt);return Gt&&xr===Wt?Et({},xr):xr};function qt(Rt,yt,Gt,Wt,xr){return{x:Rt,y:yt,zoom:1/0,id:Gt,parentId:-1,numPoints:Wt,properties:xr}}function at(Rt,yt){var Gt=Rt.geometry.coordinates,Wt=Gt[0],xr=Gt[1];return{x:wt(Wt),y:Mt(xr),zoom:1/0,index:yt,parentId:-1}}function Ke(Rt){return{type:"Feature",id:Rt.id,properties:Ct(Rt),geometry:{type:"Point",coordinates:[Bt(Rt.x),Zt(Rt.y)]}}}function Ct(Rt){var yt=Rt.numPoints,Gt=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return Et(Et({},Rt.properties),{cluster:!0,cluster_id:Rt.id,point_count:yt,point_count_abbreviated:Gt})}function wt(Rt){return Rt/360+.5}function Mt(Rt){var yt=Math.sin(Rt*Math.PI/180),Gt=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return Gt<0?0:Gt>1?1:Gt}function Bt(Rt){return(Rt-.5)*360}function Zt(Rt){var yt=(180-Rt*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function Et(Rt,yt){for(var Gt in yt)Rt[Gt]=yt[Gt];return Rt}function Ae(Rt){return Rt.x}function ot(Rt){return Rt.y}function At(Rt,yt,Gt,Wt){for(var xr=Wt,Lr=Gt-yt>>1,Nr=Gt-yt,Or,Hr=Rt[yt],jr=Rt[yt+1],gi=Rt[Gt],ki=Rt[Gt+1],Vi=yt+3;Vixr)Or=Vi,xr=ti;else if(ti===xr){var tn=Math.abs(Vi-Lr);tnWt&&(Or-yt>3&&At(Rt,yt,Or,Wt),Rt[Or+2]=xr,Gt-Or>3&&At(Rt,Or,Gt,Wt))}function vt(Rt,yt,Gt,Wt,xr,Lr){var Nr=xr-Gt,Or=Lr-Wt;if(Nr!==0||Or!==0){var Hr=((Rt-Gt)*Nr+(yt-Wt)*Or)/(Nr*Nr+Or*Or);Hr>1?(Gt=xr,Wt=Lr):Hr>0&&(Gt+=Nr*Hr,Wt+=Or*Hr)}return Nr=Rt-Gt,Or=yt-Wt,Nr*Nr+Or*Or}function Je(Rt,yt,Gt,Wt){var xr={id:typeof Rt=="undefined"?null:Rt,type:yt,geometry:Gt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return He(xr),xr}function He(Rt){var yt=Rt.geometry,Gt=Rt.type;if(Gt==="Point"||Gt==="MultiPoint"||Gt==="LineString")nt(Rt,yt);else if(Gt==="Polygon"||Gt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Nr+=(xr*jr-Hr*Lr)/2:Nr+=Math.sqrt(Math.pow(Hr-xr,2)+Math.pow(jr-Lr,2))),xr=Hr,Lr=jr}var gi=yt.length-3;yt[2]=1,At(yt,0,gi,Gt),yt[gi+2]=1,yt.size=Math.abs(Nr),yt.start=0,yt.end=yt.size}function _r(Rt,yt,Gt,Wt){for(var xr=0;xr1?1:Gt}function Re(Rt,yt,Gt,Wt,xr,Lr,Nr,Or){if(Gt/=yt,Wt/=yt,Lr>=Gt&&Nr=Wt)return null;for(var Hr=[],jr=0;jr=Gt&&tn=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")be(ki,Yr,Gt,Wt,xr);else if(Vi==="LineString")Oe(ki,Yr,Gt,Wt,xr,!1,Or.lineMetrics);else if(Vi==="MultiLineString")Fe(ki,Yr,Gt,Wt,xr,!1);else if(Vi==="Polygon")Fe(ki,Yr,Gt,Wt,xr,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Gt&&Nr<=Wt&&(yt.push(Rt[Lr]),yt.push(Rt[Lr+1]),yt.push(Rt[Lr+2]))}}function Oe(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=Ie(Rt),Hr=xr===0?ye:fe,jr=Rt.start,gi,ki,Vi=0;ViGt&&(ki=Hr(Or,ti,tn,oi,Fi,Gt),Nr&&(Or.start=jr+gi*ki)):an>Wt?nn=Gt&&(ki=Hr(Or,ti,tn,oi,Fi,Gt),Ri=!0),nn>Wt&&an<=Wt&&(ki=Hr(Or,ti,tn,oi,Fi,Wt),Ri=!0),!Lr&&Ri&&(Nr&&(Or.end=jr+gi*ki),yt.push(Or),Or=Ie(Rt)),Nr&&(jr+=gi)}var Ii=Rt.length-3;ti=Rt[Ii],tn=Rt[Ii+1],Yr=Rt[Ii+2],an=xr===0?ti:tn,an>=Gt&&an<=Wt&&ft(Or,ti,tn,Yr),Ii=Or.length-3,Lr&&Ii>=3&&(Or[Ii]!==Or[0]||Or[Ii+1]!==Or[1])&&ft(Or,Or[0],Or[1],Or[2]),Or.length&&yt.push(Or)}function Ie(Rt){var yt=[];return yt.size=Rt.size,yt.start=Rt.start,yt.end=Rt.end,yt}function Fe(Rt,yt,Gt,Wt,xr,Lr){for(var Nr=0;NrNr.maxX&&(Nr.maxX=gi),ki>Nr.maxY&&(Nr.maxY=ki)}return Nr}function Br(Rt,yt,Gt,Wt){var xr=yt.geometry,Lr=yt.type,Nr=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Or=0;Or0&&yt.size<(xr?Nr:Wt)){Gt.numPoints+=yt.length/3;return}for(var Or=[],Hr=0;HrNr)&&(Gt.numSimplified++,Or.push(yt[Hr]),Or.push(yt[Hr+1])),Gt.numPoints++;xr&&Rr(Or,Lr),Rt.push(Or)}function Rr(Rt,yt){for(var Gt=0,Wt=0,xr=Rt.length,Lr=xr-2;Wt0===yt)for(Wt=0,xr=Rt.length;Wt24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=tt(Rt,yt);this.tiles={},this.tileCoords=[],Gt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=pe(Wt,yt),Wt.length&&this.splitTile(Wt,0,0,0),Gt&&(Wt.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)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=[Rt,yt,Gt,Wt],Hr=this.options,jr=Hr.debug;Or.length;){Wt=Or.pop(),Gt=Or.pop(),yt=Or.pop(),Rt=Or.pop();var gi=1<1&&console.time("creation"),Vi=this.tiles[ki]=Gr(Rt,yt,Gt,Wt,Hr),this.tileCoords.push({z:yt,x:Gt,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,Gt,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+yt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Rt,xr){if(yt===Hr.maxZoom||yt===xr)continue;var tn=1<1&&console.time("clipping");var Yr=.5*Hr.buffer/Hr.extent,oi=.5-Yr,Fi=.5+Yr,an=1+Yr,nn,Ri,Ii,xn,bi,Xr;nn=Ri=Ii=xn=null,bi=Re(Rt,gi,Gt-Yr,Gt+Fi,0,Vi.minX,Vi.maxX,Hr),Xr=Re(Rt,gi,Gt+oi,Gt+an,0,Vi.minX,Vi.maxX,Hr),Rt=null,bi&&(nn=Re(bi,gi,Wt-Yr,Wt+Fi,1,Vi.minY,Vi.maxY,Hr),Ri=Re(bi,gi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Hr),bi=null),Xr&&(Ii=Re(Xr,gi,Wt-Yr,Wt+Fi,1,Vi.minY,Vi.maxY,Hr),xn=Re(Xr,gi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Hr),Xr=null),jr>1&&console.timeEnd("clipping"),Or.push(nn||[],yt+1,Gt*2,Wt*2),Or.push(Ri||[],yt+1,Gt*2,Wt*2+1),Or.push(Ii||[],yt+1,Gt*2+1,Wt*2),Or.push(xn||[],yt+1,Gt*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Rt,yt,Gt){var Wt=this.options,xr=Wt.extent,Lr=Wt.debug;if(Rt<0||Rt>24)return null;var Nr=1<1&&console.log("drilling down to z%d-%d-%d",Rt,yt,Gt);for(var Hr=Rt,jr=yt,gi=Gt,ki;!ki&&Hr>0;)Hr--,jr=Math.floor(jr/2),gi=Math.floor(gi/2),ki=this.tiles[ni(Hr,jr,gi)];return!ki||!ki.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Hr,jr,gi),Lr>1&&console.time("drilling down"),this.splitTile(ki.source,Hr,jr,gi,Rt,yt,Gt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Or]?zt(this.tiles[Or],xr):null)};function ni(Rt,yt,Gt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,R,J){var O,K,_e,ne=i.browser.devicePixelRatio>1?"@2x":"",Ce=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Mr){Ce=null,_e||(_e=dr,O=Mr,kt())}),Ye=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Mr){Ye=null,_e||(_e=dr,K=Mr,kt())});function kt(){if(_e)J(_e);else if(O&&K){var dr=i.browser.getImageData(K),Mr={};for(var lr in O){var $e=O[lr],ht=$e.width,bt=$e.height,Kt=$e.x,sr=$e.y,Qt=$e.sdf,ur=$e.pixelRatio,er=$e.stretchX,Ot=$e.stretchY,Jt=$e.content,Lt=new i.RGBAImage({width:ht,height:bt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:bt}),Mr[lr]={data:Lt,pixelRatio:ur,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Mr)}}return{cancel:function(){Ce&&(Ce.cancel(),Ce=null),Ye&&(Ye.cancel(),Ye=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(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,_e=this.requestors;K<_e.length;K+=1){var ne=_e[K],Ce=ne.ids,Ye=ne.callback;this._notify(Ce,Ye)}this.requestors=[]}},R.prototype.getImage=function(O){return this.images[O]},R.prototype.addImage=function(O,K){this._validate(O,K)&&(this.images[O]=K)},R.prototype._validate=function(O,K){var _e=!0;return this._validateStretch(K.stretchX,K.data&&K.data.width)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchX" value'))),_e=!1),this._validateStretch(K.stretchY,K.data&&K.data.height)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchY" value'))),_e=!1),this._validateContent(K.content,K)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "content" value'))),_e=!1),_e},R.prototype._validateStretch=function(O,K){if(!O)return!0;for(var _e=0,ne=0,Ce=O;ne=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),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if($e.ranges[bt]){dr(null,{stack:Mr,id:lr,glyph:ht});return}var Kt=$e.requests[bt];Kt||(Kt=$e.requests[bt]=[],P.loadGlyphRange(Mr,bt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var ur in Qt)O._doesCharSupportLocalGlyph(+ur)||($e.glyphs[+ur]=Qt[+ur]);$e.ranges[bt]=!0}for(var er=0,Ot=Kt;er1&&(kt=R[++Ye]);var Mr=Math.abs(dr-kt.left),lr=Math.abs(dr-kt.right),$e=Math.min(Mr,lr),ht=void 0,bt=_e/O*(K+1);if(kt.isDash){var Kt=K-Math.abs(bt);ht=Math.sqrt($e*$e+Kt*Kt)}else ht=K-Math.sqrt($e*$e+bt*bt);this.data[Ce+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var _e=R[0],ne=R[R.length-1];_e.isDash===ne.isDash&&(_e.left=ne.left-this.width,ne.right=_e.right+this.width);for(var Ce=this.width*this.nextRow,Ye=0,kt=R[Ye],dr=0;dr1&&(kt=R[++Ye]);var Mr=Math.abs(dr-kt.left),lr=Math.abs(dr-kt.right),$e=Math.min(Mr,lr),ht=kt.isDash?$e:-$e;this.data[Ce+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,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 _e=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Ce,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,kt,K.z,Ye,K.y-1).key]={backfilled:!1}),K.y+1<_e&&(dr[new i.OverscaledTileID(O.overscaledZ,Ce,K.z,ne,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,kt,K.z,Ye,K.y+1).key]={backfilled:!1}),dr},R.prototype.unloadTile=function(O){O.demTexture&&this.map.painter.saveTileTexture(O.demTexture),O.fbo&&(O.fbo.destroy(),delete O.fbo),O.dem&&delete O.dem,delete O.neighboringTiles,O.state="unloaded",O.actor&&O.actor.send("removeDEMTile",{uid:O.uid,source:this.id})},R}(re),ge=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=K.getActor(),this.setEventedParent(_e),this._data=O.data,this._options=i.extend({},O),this._collectResourceTiming=O.collectResourceTiming,this._resourceTiming=[],O.maxzoom!==void 0&&(this.maxzoom=O.maxzoom),O.type&&(this.type=O.type),O.attribution&&(this.attribution=O.attribution),this.promoteId=O.promoteId;var ne=i.EXTENT/this.tileSize;this.workerOptions=i.extend({source:this.id,cluster:O.cluster||!1,geojsonVtOptions:{buffer:(O.buffer!==void 0?O.buffer:128)*ne,tolerance:(O.tolerance!==void 0?O.tolerance:.375)*ne,extent:i.EXTENT,maxZoom:this.maxzoom,lineMetrics:O.lineMetrics||!1,generateId:O.generateId||!1},superclusterOptions:{maxZoom:O.clusterMaxZoom!==void 0?Math.min(O.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,O.clusterMinPoints||2),extent:i.EXTENT,radius:(O.clusterRadius||50)*ne,log:!1,generateId:O.generateId||!1},clusterProperties:O.clusterProperties,filter:O.filter},O.workerOptions)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){var O=this;this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(K){if(K){O.fire(new i.ErrorEvent(K));return}var _e={dataType:"source",sourceDataType:"metadata"};O._collectResourceTiming&&O._resourceTiming&&O._resourceTiming.length>0&&(_e.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",_e))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(_e){if(_e){K.fire(new i.ErrorEvent(_e));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(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,_e,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:_e},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var _e=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(_e.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),_e.request.collectResourceTiming=this._collectResourceTiming):_e.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",_e,function(Ce,Ye){K._removed||Ye&&Ye.abandoned||(K._loaded=!0,Ye&&Ye.resourceTiming&&Ye.resourceTiming[K.id]&&(K._resourceTiming=Ye.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:_e.source},null),O(Ce))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var _e=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Ce={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,Ce,function(Ye,kt){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ye?K(Ye):(O.loadVectorData(kt,_e.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.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),ze=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Le=function(Y){function R(J,O,K,_e){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(_e),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var _e=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,Ce){_e._loaded=!0,ne?_e.fire(new i.ErrorEvent(ne)):Ce&&(_e.image=Ce,O&&(_e.coordinates=O),K&&K(),_e._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.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)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var _e=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(_e),this.minzoom=this.maxzoom=this.tileID.z;var ne=_e.map(function(Ce){return K.tileID.getTilePoint(Ce)._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 O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,ze.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 _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.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))},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,O=-1/0,K=-1/0,_e=0,ne=Y;_eK.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}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,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 O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,ze.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 _e in this.tiles){var ne=this.tiles[_e];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}(Le),ke=function(Y){function R(J,O,K,_e){Y.call(this,J,O,K,_e),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(Ce){return typeof Ce!="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&&(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(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.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,_e=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,ze.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,_e.RGBA,{premultiply:!0});for(var ne in this.tiles){var Ce=this.tiles[ne];Ce.state!=="loaded"&&(Ce.state="loaded",Ce.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 O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Ce=this._getAndRemoveByKey(this.order[0]);Ce&&this.onRemove(Ce)}return this},at.prototype.has=function(R){return R.wrapped().key in this.data},at.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},at.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},at.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},at.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},at.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),_e=this.data[O][K];return this.data[O].splice(K,1),_e.timeout&&clearTimeout(_e.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(_e.value),this.order.splice(this.order.indexOf(O),1),this},at.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},at.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,_e=this.data[O];K<_e.length;K+=1){var ne=_e[K];R(ne.value)||J.push(ne)}for(var Ce=0,Ye=J;Ce1||(Math.abs(Mr)>1&&(Math.abs(Mr+$e)===1?Mr+=$e:Math.abs(Mr-$e)===1&&(Mr-=$e)),!(!dr.dem||!kt.dem)&&(kt.dem.backfillBorder(dr.dem,Mr,lr),kt.neighboringTiles&&kt.neighboringTiles[ht]&&(kt.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,_e,ne){for(var Ce in this._tiles){var Ye=this._tiles[Ce];if(!(ne[Ce]||!Ye.hasData()||Ye.tileID.overscaledZ<=K||Ye.tileID.overscaledZ>_e)){for(var kt=Ye.tileID;Ye&&Ye.tileID.overscaledZ>K+1;){var dr=Ye.tileID.scaledTo(Ye.tileID.overscaledZ-1);Ye=this._tiles[dr.key],Ye&&Ye.hasData()&&(kt=dr)}for(var Mr=kt;Mr.overscaledZ>K;)if(Mr=Mr.scaledTo(Mr.overscaledZ-1),O[Mr.key]){ne[kt.key]=kt;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var _e=this._loadedParentTiles[O.key];return _e&&_e.tileID.overscaledZ>=K?_e:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Ce=O.scaledTo(ne),Ye=this._getLoadedTile(Ce);if(Ye)return Ye}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var _e=this._cache.getByKey(O.wrapped().key);return _e},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,_e=Math.ceil(O.height/this._source.tileSize)+1,ne=K*_e,Ce=5,Ye=Math.floor(ne*Ce),kt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ye):Ye;this._cache.setMaxSize(kt)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,_e=O-K,ne=_e/360,Ce=Math.round(ne);if(this._prevLng=O,Ce){var Ye={};for(var kt in this._tiles){var dr=this._tiles[kt];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Ce),Ye[dr.tileID.key]=dr}this._tiles=Ye;for(var Mr in this._timers)clearTimeout(this._timers[Mr]),delete this._timers[Mr];for(var lr in this._tiles){var $e=this._tiles[lr];this._setTileReloadTimer(lr,$e)}}},R.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 _e;this.used?this._source.tileID?_e=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(hi){return new i.OverscaledTileID(hi.canonical.z,hi.wrap,hi.canonical.z,hi.canonical.x,hi.canonical.y)}):(_e=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&&(_e=_e.filter(function(hi){return K._source.hasTile(hi)}))):_e=[];var ne=O.coveringZoomLevel(this._source),Ce=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ye=Math.max(ne+R.maxUnderzooming,this._source.minzoom),kt=this._updateRetainedTiles(_e,ne);if(Hr(this._source.type)){for(var dr={},Mr={},lr=Object.keys(kt),$e=0,ht=lr;$ethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],ur=this.getTile(Qt);if(ur&&ur.hasData()){_e[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(_e[er[0].key]&&_e[er[1].key]&&_e[er[2].key]&&_e[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Ce;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(_e[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return _e},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],_e=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){_e=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Ce=ne.scaledTo(ne.overscaledZ-1);if(_e=this._getLoadedTile(Ce),_e)break;ne=Ce}for(var Ye=0,kt=K;Ye0)&&(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 O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,_e){var ne=this,Ce=[],Ye=this.transform;if(!Ye)return Ce;for(var kt=_e?Ye.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ye.pointCoordinate(Jt)}),Mr=kt.map(function(Jt){return Ye.pointCoordinate(Jt)}),lr=this.getIds(),$e=1/0,ht=1/0,bt=-1/0,Kt=-1/0,sr=0,Qt=Mr;sr=0&&Cn[1].y+hi>=0){var Yi=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Mr.map(function(Xa){return Tr.getTilePoint(Xa)});Ce.push({tile:Lt,tileID:Tr,queryGeometry:Yi,cameraQueryGeometry:yn,scale:Ur})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.updateState(O,K,_e)},R.prototype.removeFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,_e)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,_e){var ne=this._tiles[O];ne&&ne.setDependencies(K,_e)},R.prototype.reloadTilesForDependencies=function(O,K){for(var _e in this._tiles){var ne=this._tiles[_e];ne.hasDependency(O,K)&&this._reloadTile(_e,"reloading")}this._cache.filter(function(Ce){return!Ce.hasDependency(O,K)})},R}(i.Evented);Nr.maxOverzooming=10,Nr.maxUnderzooming=3;function Or(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Hr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var gi="mapboxgl_preloaded_worker_pool",ki=function(){this.active={}};ki.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Ce:0;return this.points[_e].mult(1-Ye).add(this.points[J].mult(Ye))};var ii=function(R,J,O){var K=this.boxCells=[],_e=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return _e?!1:[];var Ce=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(_e)return!0;for(var Ye=0;Ye0:Ce}},ii.prototype._queryCircle=function(R,J,O,K,_e){var ne=R-O,Ce=R+O,Ye=J-O,kt=J+O;if(Ce<0||ne>this.width||kt<0||Ye>this.height)return K?!1:[];var dr=[],Mr={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ye,Ce,kt,this._queryCellCircle,dr,Mr,_e),K?dr.length>0:dr},ii.prototype.query=function(R,J,O,K,_e){return this._query(R,J,O,K,!1,_e)},ii.prototype.hitTest=function(R,J,O,K,_e){return this._query(R,J,O,K,!0,_e)},ii.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ii.prototype._queryCell=function(R,J,O,K,_e,ne,Ce,Ye){var kt=Ce.seenUids,dr=this.boxCells[_e];if(dr!==null)for(var Mr=this.bboxes,lr=0,$e=dr;lr<$e.length;lr+=1){var ht=$e[lr];if(!kt.box[ht]){kt.box[ht]=!0;var bt=ht*4;if(R<=Mr[bt+2]&&J<=Mr[bt+3]&&O>=Mr[bt+0]&&K>=Mr[bt+1]&&(!Ye||Ye(this.boxKeys[ht]))){if(Ce.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Mr[bt],y1:Mr[bt+1],x2:Mr[bt+2],y2:Mr[bt+3]})}}}var Kt=this.circleCells[_e];if(Kt!==null)for(var sr=this.circles,Qt=0,ur=Kt;QtCe*Ce+Ye*Ye},ii.prototype._circleAndRectCollide=function(R,J,O,K,_e,ne,Ce){var Ye=(ne-K)/2,kt=Math.abs(R-(K+Ye));if(kt>Ye+O)return!1;var dr=(Ce-_e)/2,Mr=Math.abs(J-(_e+dr));if(Mr>dr+O)return!1;if(kt<=Ye||Mr<=dr)return!0;var lr=kt-Ye,$e=Mr-dr;return lr*lr+$e*$e<=O*O};function Xi(Y,R,J,O,K){var _e=i.create();return R?(i.scale(_e,_e,[1/K,1/K,1]),J||i.rotateZ(_e,_e,O.angle)):i.multiply(_e,O.labelPlaneMatrix,Y),_e}function aa(Y,R,J,O,K){if(R){var _e=i.clone(Y);return i.scale(_e,_e,[K,K,1]),J||i.rotateZ(_e,_e,-O.angle),_e}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,_e,ne,Ce){var Ye=O?Y.textSizeData:Y.iconSizeData,kt=i.evaluateSizeForZoom(Ye,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Mr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Mr.clear();for(var lr=Y.lineVertexArray,$e=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,bt=!1,Kt=0;Kt<$e.length;Kt++){var sr=$e.get(Kt);if(sr.hidden||sr.writingMode===i.WritingMode.vertical&&!bt){fa(sr.numGlyphs,Mr);continue}bt=!1;var Qt=[sr.anchorX,sr.anchorY,0,1];if(i.transformMat4(Qt,Qt,R),!Ga(Qt,dr)){fa(sr.numGlyphs,Mr);continue}var ur=Qt[3],er=Un(J.transform.cameraToCenterDistance,ur),Ot=i.evaluateSizeForFeature(Ye,kt,sr),Jt=ne?Ot/er:Ot*er,Lt=new i.Point(sr.anchorX,sr.anchorY),Tr=Mn(Lt,K).point,Ur={},hi=so(sr,Jt,!1,Ce,R,K,_e,Y.glyphOffsetArray,lr,Mr,Tr,Lt,Ur,ht);bt=hi.useVertical,(hi.notEnoughRoom||bt||hi.needsFlipping&&so(sr,Jt,!0,Ce,R,K,_e,Y.glyphOffsetArray,lr,Mr,Tr,Lt,Ur,ht).notEnoughRoom)&&fa(sr.numGlyphs,Mr)}O?Y.text.dynamicLayoutVertexBuffer.updateData(Mr):Y.icon.dynamicLayoutVertexBuffer.updateData(Mr)}function oa(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr){var Mr=Ce.glyphStartIndex+Ce.numGlyphs,lr=Ce.lineStartIndex,$e=Ce.lineStartIndex+Ce.lineLength,ht=R.getoffsetX(Ce.glyphStartIndex),bt=R.getoffsetX(Mr-1),Kt=Ia(Y*ht,J,O,K,_e,ne,Ce.segment,lr,$e,Ye,kt,dr);if(!Kt)return null;var sr=Ia(Y*bt,J,O,K,_e,ne,Ce.segment,lr,$e,Ye,kt,dr);return sr?{first:Kt,last:sr}:null}function ka(Y,R,J,O){if(Y===i.WritingMode.horizontal){var K=Math.abs(J.y-R.y),_e=Math.abs(J.x-R.x)*O;if(K>_e)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr,Mr,lr,$e){var ht=R/24,bt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,ur=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Ce,bt,Kt,J,dr,Mr,Y,Ye,_e,lr);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,$e);if(Tr)return Tr}sr=[Ot.first];for(var Ur=Y.glyphStartIndex+1;Ur0?yn.point:Kr(Mr,Yi,hi,1,K),ca=ka(Y.writingMode,hi,Xa,$e);if(ca)return ca}var Tn=Ia(ht*Ce.getoffsetX(Y.glyphStartIndex),bt,Kt,J,dr,Mr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ye,_e,lr);if(!Tn)return{notEnoughRoom:!0};sr=[Tn]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&($e*=-1,ht=Math.PI),$e<0&&(ht+=Math.PI);for(var bt=$e>0?Ce+ne:Ce+ne+1,Kt=K,sr=K,Qt=0,ur=0,er=Math.abs(lr),Ot=[];Qt+ur<=er;){if(bt+=$e,bt=Ye)return null;if(sr=Kt,Ot.push(Kt),Kt=Mr[bt],Kt===void 0){var Jt=new i.Point(kt.getx(bt),kt.gety(bt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Mr[bt]=Lt.point;else{var Tr=bt-$e,Ur=Qt===0?_e:new i.Point(kt.getx(Tr),kt.gety(Tr));Kt=Kr(Ur,Jt,sr,er-Qt+1,dr)}}Qt+=ur,ur=sr.dist(Kt)}var hi=(er-Qt)/ur,Cn=Kt.sub(sr),Yi=Cn.mult(hi)._add(sr);Yi._add(Cn._unit()._perp()._mult(J*$e));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Yi),{point:Yi,angle:yn,path:Ot}}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 Vf=0,wd=Fu;Vf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(er=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:_e,prevAnchor:er},this.markUsedJustification($e,R,lr,ht),$e.allowVerticalPlacement&&(this.markUsedOrientation($e,ht,lr),this.placedOrientations[lr.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,_e=R.parameters,ne=_e.bucket,Ce=_e.layout,Ye=_e.posMatrix,kt=_e.textLabelPlaneMatrix,dr=_e.labelToScreenMatrix,Mr=_e.textPixelRatio,lr=_e.holdingForFade,$e=_e.collisionBoxArray,ht=_e.partiallyEvaluatedTextSize,bt=_e.collisionGroup,Kt=Ce.get("text-optional"),sr=Ce.get("icon-optional"),Qt=Ce.get("text-allow-overlap"),ur=Ce.get("icon-allow-overlap"),er=Ce.get("text-rotation-alignment")==="map",Ot=Ce.get("text-pitch-alignment")==="map",Jt=Ce.get("icon-text-fit")!=="none",Lt=Ce.get("symbol-z-order")==="viewport-y",Tr=Qt&&(ur||!ne.hasIconData()||sr),Ur=ur&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&$e&&ne.deserializeCollisionBoxes($e);var hi=function(Tn,Pn){if(!J[Tn.crossTileID]){if(lr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=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,pg=ne.writingModes;Ed0&&(Gd=Gd.filter(function(wc){return wc!==Md.anchor}),Gd.unshift(Md.anchor))}var Pp=function(wc,jf,Ed){for(var pg=wc.x2-wc.x1,L1=wc.y2-wc.y1,ic=Tn.textBoxScale,Yx=Jt&&!ur?jf:null,ly={box:[],offscreen:!1},Bw=Qt?Gd.length*2:Gd.length,Ip=0;Ip=Gd.length,Kx=K.attemptAnchorPlacement(uy,wc,pg,L1,ic,er,Ot,Mr,Ye,bt,Ow,Tn,ne,Ed,Yx);if(Kx&&(ly=Kx.placedGlyphBoxes,ly&&ly.box&&ly.box.length)){Nn=!0,ru=Kx.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 cg=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,cg))}}else{var mv=function(wc,jf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Mr,Ye,bt.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,ht,vh),hg=Ce.get("text-padding"),Jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,pm,Ye,kt,dr,O,Ot,bt.predicate,Jh,hg),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ay=function(wc){var jf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(jf,ur,Mr,Ye,bt.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=Kt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,C1=sr||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,Ce.get("text-ignore-placement"),ne.bucketInstanceId,wd,bt.ID):K.collisionIndex.insertCollisionBox(vu.box,Ce.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID)),xa&&Ju&&K.collisionIndex.insertCollisionBox(Ju.box,Ce.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,bt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Ce.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID),O)){var dg=ne.bucketInstanceId,oy=K.collisionCircleArrays[dg];oy===void 0&&(oy=K.collisionCircleArrays[dg]=new mn);for(var sy=0;sy=0;--Yi){var yn=Cn[Yi];hi(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,_e=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Ce=0,Ye=ne;Ce0||Ot>0,hi=ur.numIconVertices>0,Cn=K.placedOrientations[ur.crossTileID],Yi=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Ur){var Xa=Qo(Tr.text),ca=Yi?Hi:Xa;ht(R.text,er,ca);var Tn=yn?Hi:Xa;ht(R.text,Ot,Tn);var Pn=Tr.text.isHidden();[ur.rightJustifiedTextSymbolIndex,ur.centerJustifiedTextSymbolIndex,ur.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Yi?1:0)}),ur.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ur.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ur.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ur,Cn);var xa=K.placedOrientations[ur.crossTileID];xa&&(K.markUsedJustification(R,"left",ur,xa),K.markUsedOrientation(R,xa,ur))}if(hi){var Zo=Qo(Tr.icon),ru=!(lr&&ur.verticalPlacedIconSymbolIndex&&Yi);if(ur.placedIconSymbolIndex>=0){var yu=ru?Zo:Hi;ht(R.icon,ur.numIconVertices,yu),R.icon.placedSymbolArray.get(ur.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(ur.verticalPlacedIconSymbolIndex>=0){var Fu=ru?Hi:Zo;ht(R.icon,ur.numVerticalIconVertices,Fu),R.icon.placedSymbolArray.get(ur.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var Ju=!0;if(kt){var Vf=K.variableOffsets[Jt];Vf?(zu=ws(Vf.anchor,Vf.width,Vf.height,Vf.textOffset,Vf.textBoxScale),dr&&zu._rotate(Mr?K.transform.angle:-K.transform.angle)):Ju=!1}vu.textBox&&Wi(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||Yi,zu.x,zu.y),vu.verticalTextBox&&Wi(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,lr?zu.x:0,lr?zu.y:0),vu.verticalIconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,lr?zu.x:0,lr?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function Wi(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||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),Ba=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*Ba+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,O,K,_e){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Ce=R[this._currentPlacementIndex],Ye=J[Ce],kt=this.placement.collisionIndex.transform.zoom;if(Ye.type==="symbol"&&(!Ye.minzoom||Ye.minzoom<=kt)&&(!Ye.maxzoom||Ye.maxzoom>kt)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ye));var dr=this._inProgressLayer.continuePlacement(O[Ye.source],this.placement,this._showCollisionBoxes,Ye,ne);if(dr)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,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var kt in Ye){var dr=Ye[kt];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Mr=R.scaledTo(Number(Ce)),lr=Ye[Mr.key];lr&&lr.findMatches(J.symbolInstances,R,ne)}}for(var $e=0;$e0)throw new Error("Unimplemented: "+ne.map(function(Ce){return Ce.command}).join(", ")+".");return _e.forEach(function(Ce){Ce.command!=="setTransition"&&K[Ce.command].apply(K,Ce.args)}),this.stylesheet=O,!0},R.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)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.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)},R.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"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,_e){var ne=this;if(_e===void 0&&(_e={}),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 Ce=["vector","raster","geojson","video","image"],Ye=Ce.indexOf(K.type)>=0;if(!(Ye&&this._validate(i.validateStyle.source,"sources."+O,K,null,_e))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var kt=this.sourceCaches[O]=new Nr(O,K,this.dispatcher);kt.style=this,kt.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:kt.serialize(),sourceId:O}}),kt.onAdd(this.map),this._changed=!0}},R.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 _e=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],_e.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),_e.setEventedParent(null),_e.clearTiles(),_e.onRemove&&_e.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var _e=this.sourceCaches[O].getSource();_e.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,_e){_e===void 0&&(_e={}),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 Ce;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Ce=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},_e))return;Ce=i.createStyleLayer(O),this._validateLayer(Ce),Ce.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Ce.id]=Ce.serialize()}var Ye=K?this._order.indexOf(K):this._order.length;if(K&&Ye===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ye,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Ce,this._removedLayers[ne]&&Ce.source&&Ce.type!=="custom"){var kt=this._removedLayers[ne];delete this._removedLayers[ne],kt.type!==Ce.type?this._updatedSources[Ce.source]="clear":(this._updatedSources[Ce.source]="reload",this.sourceCaches[Ce.source].pause())}this._updateLayer(Ce),Ce.onAdd&&Ce.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var _e=this._layers[O];if(!_e){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 Ce=K?this._order.indexOf(K):this._order.length;if(K&&Ce===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Ce,0,O),this._layerOrderChanged=!0}},R.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 _e=this._order.indexOf(O);this._order.splice(_e,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)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,_e){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===_e||(K!=null&&(ne.minzoom=K),_e!=null&&(ne.maxzoom=_e),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,_e){_e===void 0&&(_e={}),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,_e)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ce=this.getLayer(O);if(!Ce){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(Ce.getLayoutProperty(K),_e)||(Ce.setLayoutProperty(K,_e,ne),this._updateLayer(Ce))},R.prototype.getLayoutProperty=function(O,K){var _e=this.getLayer(O);if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return _e.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ce=this.getLayer(O);if(!Ce){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(Ce.getPaintProperty(K),_e)){var Ye=Ce.setPaintProperty(K,_e,ne);Ye&&this._updateLayer(Ce),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=O.sourceLayer,Ce=this.sourceCaches[_e];if(Ce===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ye=Ce.getSource().type;if(Ye==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ye==="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."))),Ce.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=this.sourceCaches[_e];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ce=ne.getSource().type,Ye=Ce==="vector"?O.sourceLayer:void 0;if(Ce==="vector"&&!Ye){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(Ye,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,_e=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 Ce=ne.getSource().type;if(Ce==="vector"&&!_e){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(_e,O.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(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.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},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,_e=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Ce=[],Ye=this._order.length-1;Ye>=0;Ye--){var kt=this._order[Ye];if(_e(kt)){ne[kt]=Ye;for(var dr=0,Mr=O;dr=0;Qt--){var ur=this._order[Qt];if(_e(ur))for(var er=Ce.length-1;er>=0;er--){var Ot=Ce[er].feature;if(ne[Ot.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 Yk=Te((l2r,AGe)=>{"use strict";var xGe=ei(),bGe=jl().defaultLine,_jt=zc().attributes,xjt=gc(),bjt=Zc().textposition,wjt=Sc().overrideAll,Ajt=Lf().templatedArray,yJ=y1(),wGe=xjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});wGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Tjt=AGe.exports=wjt({_arrayAttrRegexps:[xGe.counterRegex("mapbox",".layers",!0)],domain:_jt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:yJ.styleValuesMapbox.concat(yJ.styleValuesNonMapbox),dflt:yJ.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:Ajt("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:bGe},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:bGe}},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:wGe,textposition:xGe.extendFlat({},bjt,{arrayOk:!1})}})},"plot","from-root");Tjt.uirevision={valType:"any",editType:"none"}});var oB=Te((u2r,EGe)=>{"use strict";var{hovertemplateAttrs:Sjt,texttemplateAttrs:Mjt,templatefallbackAttrs:TGe}=Ff(),Ejt=Pm(),Kk=ew(),ES=Zc(),SGe=Yk(),kjt=Gf(),Cjt=nc(),cw=Su().extendFlat,Ljt=Sc().overrideAll,Pjt=Yk(),MGe=Kk.line,kS=Kk.marker;EGe.exports=Ljt({lon:Kk.lon,lat:Kk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:cw({},Pjt.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:cw({},kS.opacity,{dflt:1})},mode:cw({},ES.mode,{dflt:"markers"}),text:cw({},ES.text,{}),texttemplate:Mjt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:TGe({editType:"plot"}),hovertext:cw({},ES.hovertext,{}),line:{color:MGe.color,width:MGe.width},connectgaps:ES.connectgaps,marker:cw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:kS.opacity,size:kS.size,sizeref:kS.sizeref,sizemin:kS.sizemin,sizemode:kS.sizemode},Cjt("marker")),fill:Kk.fill,fillcolor:Ejt(),textfont:SGe.layers.symbol.textfont,textposition:SGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:ES.selected.marker},unselected:{marker:ES.unselected.marker},hoverinfo:cw({},kjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Sjt(),hovertemplatefallback:TGe()},"calc","nested")});var gJ=Te((f2r,kGe)=>{"use strict";var zjt=["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"];kGe.exports={isSupportedFont:function(e){return zjt.indexOf(e)!==-1}}});var PGe=Te((c2r,LGe)=>{"use strict";var Jk=ei(),_J=lc(),Ijt=$v(),Rjt=R0(),Djt=D0(),Fjt=Dm(),CGe=oB(),Bjt=gJ().isSupportedFont;LGe.exports=function(t,r,n,i){function a(v,C){return Jk.coerce(t,r,CGe,v,C)}function o(v,C){return Jk.coerce2(t,r,CGe,v,C)}var s=Ojt(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"),_J.hasMarkers(r)){Ijt(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]))}_J.hasLines(r)&&(Rjt(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,_=a("cluster.enabled",p);if(_||_J.hasText(r)){var b=i.font.family;Djt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Bjt(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"&&Fjt(t,r,n,a),Jk.coerceSelectionMarkerOpacity(r,a)};function Ojt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var xJ=Te((h2r,IGe)=>{"use strict";var zGe=wu();IGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=zGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=zGe.tickText(o,o.c2l(s[1]),!0).text,i}});var bJ=Te((d2r,DGe)=>{"use strict";var RGe=ei();DGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=RGe.isArrayOrTypedArray(r)?RGe.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 UGe=Te((p2r,NGe)=>{"use strict";var OGe=ku(),sp=ei(),qjt=rf().BADNUM,lB=fx(),FGe=_c(),Njt=Mu(),Ujt=B3(),uB=lc(),Vjt=gJ().isSupportedFont,Gjt=bJ(),Hjt=iv().appendArrayPointValue,Wjt=Wf().NEWLINES,jjt=Wf().BR_TAG_ALL;NGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=uB.hasLines(n),s=uB.hasMarkers(n),u=uB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=sB("fill"),d=sB("line"),p=sB("circle"),_=sB("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=lB.calcTraceToLineCoords(r)),a&&(h.geojson=lB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=lB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=Xjt(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":AJ(n.cluster.color,n.cluster.step),"circle-radius":AJ(n.cluster.size,n.cluster.step),"circle-opacity":AJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":BGe(n),"text-size":12}}),sp.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)&&(_.geojson=Zjt(r,t),sp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=Gjt(n.textposition,E);sp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":BGe(n)}),sp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function sB(e){return{type:e,geojson:lB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Xjt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(FGe.hasColorscale(t,"marker")?f=FGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=Ujt(t));var h;o&&(h=function(E){var T=OGe(E)?+sp.constrain(E,0,1):0;return u(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"),Vjt(s)||(s=r);var u=s.split(", ");return u}});var WGe=Te((v2r,HGe)=>{"use strict";var Yjt=ei(),VGe=UGe(),CS=y1().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function GGe(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:CS+t+"-fill",line:CS+t+"-line",circle:CS+t+"-circle",symbol:CS+t+"-symbol",cluster:CS+t+"-cluster",clusterCount:CS+t+"-cluster-count"},this.below=null}var $k=GGe.prototype;$k.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&Yjt.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(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=nm.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};HGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new GGe(t,n.uid,i,a),s=VGe(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 Kjt=Xc(),TJ=ei(),Jjt=mA(),$jt=TJ.fillText,Qjt=rf().BADNUM,eXt=y1().traceLayerPrefix;function tXt(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(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===Qjt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=TJ.modHalf(m[0],360),A=m[1],F=s.project([P,A]),B=F.x-a.c2p([p,A]),U=F.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(B*B+U*U)-G,1-3/G)}if(Kjt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[TJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),T=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+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=Jjt(i,b),e.extraText=jGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function jGe(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)&&$jt(t,e,l),l.join("
")}XGe.exports={hoverPoints:tXt,getExtraText:jGe}});var YGe=Te((y2r,ZGe)=>{"use strict";ZGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var JGe=Te((g2r,KGe)=>{"use strict";var rXt=ei(),iXt=lc(),nXt=rf().BADNUM;KGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!iXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof SJ=="object"&&typeof MJ!="undefined"?MJ.exports=t():(e=e||self,e.mapboxgl=t())})(SJ,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,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,me;for($=y,me=0;me<8;me++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(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,g){return this.clone()._rotateAround(y,g)},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 g=y.x-this.x,z=y.y-this.y;return g*g+z*z},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,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,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 g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function _(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=_(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function C(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(me,Xe){g(me,function(xt,Dt){xt&&(oe=xt),$[Xe]=Dt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function x(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function k(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function F(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 B(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function W(y){return Array.isArray(y)?y.map(W):typeof y=="object"&&y?G(y,W):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var H={};function re(y){H[y]||(typeof console!="undefined"&&console.warn(y),H[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function ge(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,me=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,me,Xe){var xt=me||Xe;return z[oe]=xt?xt.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 ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Se(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ge(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var De=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),xe=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ne=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,je,Qe={now:De,frame:function(g){var z=xe(g);return{cancel:function(){return Ne(z)}}},getImageData:function(g,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=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,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}},gt={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},qt={supported:!1,testSupport:Mt},at,Ke=!1,Ct,wt=!1;c.document&&(Ct=c.document.createElement("img"),Ct.onload=function(){at&&Bt(at),at=null,wt=!0},Ct.onerror=function(){Ke=!0,at=null},Ct.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Mt(y){Ke||!Ct||(wt?Bt(y):at=y)}function Bt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,Ct),y.isContextLost())return;qt.supported=!0}catch(z){}y.deleteTexture(g),Ke=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),me=Date.now()+$;return{token:oe,tokenExpiresAt:me}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!ot(g))return g;var V=tt(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=tt(g);return ot(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,It(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!ot(g))return g;var V=tt(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,me=Qe.devicePixelRatio>=2||z===512?"@2x":"",Xe=qt.supported?".webp":"$1";V.path=V.path.replace($,""+me+Xe),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||He(V.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=tt(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var me="mapbox://tiles/";me+=oe.path.replace(V,"");var Xe=oe.params;return z&&(Xe=Xe.filter(function(xt){return!xt.match(/^access_token=/)})),Xe.length&&(me+="?"+Xe.join("&")),me},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?ot(z):!1,$=[],oe=0,me=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!gt.REQUIRE_ACCESS_TOKEN)return It(g);if(z=z||gt.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 g.params=g.params.filter(function(me){return me.indexOf("access_token")===-1}),g.params.push("access_token="+z),It(g)};function ot(y){return y.indexOf("mapbox:")===0}var At=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function vt(y){return At.test(y)}function Je(y){return y.indexOf("sku=")>0&&vt(y)}function He(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},_r.prototype.processRequests=function(g){},_r.prototype.postEvent=function(g,z,V,$){var oe=this;if(gt.EVENTS_URL){var me=tt(gt.EVENTS_URL);me.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var Xe={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?x(Xe,z):Xe,Dt={url:It(me),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Or(Dt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},_r.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var yr=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,me){this.skuToken=oe,(gt.EVENTS_URL&&me||gt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(Xe){return ot(Xe)||vt(Xe)}))&&this.queueRequest({id:$,timestamp:Date.now()},me)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),me=oe.id,Xe=oe.timestamp;me&&this.success[me]||(this.anonId||this.fetchEventData(),F(this.anonId)||(this.anonId=P()),this.postEvent(Xe,{skuToken:this.skuToken},function(xt){xt||me&&($.success[me]=!0)},V))}},g}(_r),Ut=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return ot(oe)||vt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=cr(gt.ACCESS_TOKEN),me=oe?oe.u:gt.ACCESS_TOKEN,Xe=me!==this.eventData.tokenU;F(this.anonId)||(this.anonId=P(),Xe=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Dt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),br=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);Xe=Xe||br>=1||br<-1||Dt.getDate()!==Xt.getDate()}else Xe=!0;if(!Xe)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(qr){qr||($.eventData.lastSuccess=xt,$.eventData.tokenU=me)},V)}},g}(_r),Re=new Ut,be=Re.postTurnstileEvent.bind(Re),Oe=new yr,Ie=Oe.postMapLoadEvent.bind(Oe),Fe="mapbox-tiles",ft=500,ye=50,fe=1e3*60*7,pe;function dt(){c.caches&&!pe&&(pe=c.caches.open(Fe))}var Pt;function zt(y,g){if(Pt===void 0)try{new Response(new ReadableStream),Pt=!0}catch(z){Pt=!1}Pt?g(y.body):y.blob().then(g)}function rr(y,g,z){if(dt(),!!pe){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(me,Xe){return V.headers.set(Xe,me)});var $=de(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Rr=1/0;function pi(y){Rr++,Rr>ye&&(y.getActor().send("enforceCacheSizeLimit",ft),Rr=0)}function Di(y){dt(),pe&&pe.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Ni(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var xr=function(y,g){if(!yt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Gt(y,g);if(Le()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return xr(x(y,{type:"json"}),g)},Nr=function(y,g){return xr(x(y,{type:"arrayBuffer"}),g)},Or=function(y,g){return xr(x(y,{method:"POST"}),g)};function Hr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function gi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(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 me=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(me):jr}function ki(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(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,tn=function(){Vi=[],ti=0};tn();var Yr=function(y,g){if(qt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,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[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ii.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,bi={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"}},ct=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={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:"*"}},pr={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"}},Ai={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"}}},ii={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:bi,sources:Xr,source:ct,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:en,layer:ii,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(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],me=oe[0],Xe=oe[1];this.bindings[me]=Xe}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!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(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Hi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Dt}function $(Dt){return Dt<0?0:Dt>1?1:Dt}function oe(Dt){return Dt[Dt.length-1]==="%"?V(parseFloat(Dt)/100*255):V(parseInt(Dt))}function me(Dt){return Dt[Dt.length-1]==="%"?$(parseFloat(Dt)/100):$(parseFloat(Dt))}function Xe(Dt,Xt,br){return br<0?br+=1:br>1&&(br-=1),br*6<1?Dt+(Xt-Dt)*br*6:br*2<1?Xt:br*3<2?Dt+(Xt-Dt)*(2/3-br)*6:Dt}function xt(Dt){var Xt=Dt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=4095?[(br&3840)>>4|(br&3840)>>8,br&240|(br&240)>>4,br&15|(br&15)<<4,1]:null}else if(Xt.length===7){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=16777215?[(br&16711680)>>16,(br&65280)>>8,br&255,1]:null}return null}var qr=Xt.indexOf("("),Pr=Xt.indexOf(")");if(qr!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,qr),Oi=Xt.substr(qr+1,Pr-(qr+1)).split(","),Wn=1;switch(ai){case"rgba":if(Oi.length!==4)return null;Wn=me(Oi.pop());case"rgb":return Oi.length!==3?null:[oe(Oi[0]),oe(Oi[1]),oe(Oi[2]),Wn];case"hsla":if(Oi.length!==4)return null;Wn=me(Oi.pop());case"hsl":if(Oi.length!==3)return null;var bn=(parseFloat(Oi[0])%360+360)%360/360,bo=me(Oi[1]),ba=me(Oi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(Xe(Uo,_o,bn+1/3)*255),V(Xe(Uo,_o,bn)*255),V(Xe(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Dt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);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 g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},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(g,z,V){g?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(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,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 ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(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 ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var Xe=g[1];if(typeof Xe!="string"||!(Xe in qn)||Xe==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);me=qn[Xe],V++}else me=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(me,xt)}else $=qn[oe];for(var Dt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,me=1;me<=g.length-1;++me){var Xe=g[me];if(oe&&typeof Xe=="object"&&!Array.isArray(Xe)){oe=!1;var xt=null;if(Xe["font-scale"]&&(xt=z.parse(Xe["font-scale"],1,Hi),!xt))return null;var Dt=null;if(Xe["text-font"]&&(Dt=z.parse(Xe["text-font"],1,mo(Sa)),!Dt))return null;var Xt=null;if(Xe["text-color"]&&(Xt=z.parse(Xe["text-color"],1,vn),!Xt))return null;var br=$[$.length-1];br.scale=xt,br.font=Dt,br.textColor=Xt}else{var qr=z.parse(g[me],1,la);if(!qr)return null;var Pr=qr.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:qr,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(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(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],me=1;me4?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 xt=null,Dt=0,Xt=this.args;Dt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],me=y[1]-z[1];return V*me-oe*$===0&&V*oe<=0&&$*me<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],me=0,Xe=oe.length;me0&&br<0||Xt<0&&br>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],me=0;mez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],me=[],Xe=0,xt=y;Xe=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[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(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(me){return"["+me+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,br,qr){return qr==="assert"?new Eo(br,[Xt]):qr==="coerce"?new sa(br,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[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 me=oe.parse(g,this);if(!me)return null;if(this.expectedType){var Xe=this.expectedType,xt=me.type;if((Xe.kind==="string"||Xe.kind==="number"||Xe.kind==="boolean"||Xe.kind==="object"||Xe.kind==="array")&&xt.kind==="value")me=V(me,Xe,z.typeAnnotation||"assert");else if((Xe.kind==="color"||Xe.kind==="formatted"||Xe.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))me=V(me,Xe,z.typeAnnotation||"coerce");else if(this.checkSubtype(Xe,xt))return null}if(!(me instanceof $n)&&me.type.kind!=="resolvedImage"&&gs(me)){var Dt=new Na;try{me=new $n(me.type,me.evaluate(Dt))}catch(Xt){return this.error(Xt.message),null}}return me}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof rn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,me,Xe;V<=$;)if(oe=Math.floor((V+$)/2),me=y[oe],Xe=y[oe+1],me<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=Xe)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Dt);var br=z.parse(xt,Xt,oe);if(!br)return null;oe=oe||br.type,$.push([Xe,br])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$);return V[me].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=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(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),me=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-me),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.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(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var me=0,Xe=oe;me1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Hi),!oe)return null;var Dt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var br=0;br=qr)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,Oi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Dt.push([qr,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Dt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$),Xe=z[me],xt=z[me+1],Dt=Hs.interpolationFactor(this.interpolation,$,Xe,xt),Xt=V[me].evaluate(g),br=V[me+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,br,Dt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(br),Dt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(br),Dt))},Hs.prototype.eachChild=function(g){g(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(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);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(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Hi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g.length===4){var oe=z.parse(g[3],3,Hi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);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(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,me){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=me};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},me=[],Xe=2;XeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=me.length}var ai=z.parse(Dt,Xe,$);if(!ai)return null;$=$||ai.type,me.push(ai)}var Oi=z.parse(g[1],1,la);if(!Oi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||Oi.type.kind!=="value"&&z.concat(1).checkSubtype(V,Oi.type)?null:new jo(V,$,Oi,oe,me,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},me=0,Xe=V;me=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[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(g.length===4){var oe=z.parse(g[3],3,Hi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);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(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function Tt(y,g,z){return g===z}function Vt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Fr(y,g,z){return g<=z}function _i(y,g,z){return g>=z}function Si(y,g,z,V){return V.compare(g,z)===0}function Ci(y,g,z,V){return!Si(y,g,z,V)}function Ki(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function di(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,me,Xe){this.type=Qa,this.lhs=oe,this.rhs=me,this.collator=Xe,this.hasUntypedArgument=oe.type.kind==="value"||me.type.kind==="value"}return $.parse=function(me,Xe){if(me.length!==3&&me.length!==4)return Xe.error("Expected two or three arguments.");var xt=me[0],Dt=Xe.parse(me[1],1,la);if(!Dt)return null;if(!Bs(xt,Dt.type))return Xe.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Dt.type)+"'.");var Xt=Xe.parse(me[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return Xe.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Dt.type.kind!==Xt.type.kind&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return Xe.error("Cannot compare types '"+No(Dt.type)+"' and '"+No(Xt.type)+"'.");V&&(Dt.type.kind==="value"&&Xt.type.kind!=="value"?Dt=new Eo(Xt.type,[Dt]):Dt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Dt.type,[Xt])));var br=null;if(me.length===4){if(Dt.type.kind!=="string"&&Xt.type.kind!=="string"&&Dt.type.kind!=="value"&&Xt.type.kind!=="value")return Xe.error("Cannot use collator to compare non-string types.");if(br=Xe.parse(me[3],3,As),!br)return null}return new $(Dt,Xt,br)},$.prototype.evaluate=function(me){var Xe=this.lhs.evaluate(me),xt=this.rhs.evaluate(me);if(V&&this.hasUntypedArgument){var Dt=Xn(Xe),Xt=Xn(xt);if(Dt.kind!==Xt.kind||!(Dt.kind==="string"||Dt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Dt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var br=Xn(Xe),qr=Xn(xt);if(br.kind!=="string"||qr.kind!=="string")return g(me,Xe,xt)}return this.collator?z(me,Xe,xt,this.collator.evaluate(me)):g(me,Xe,xt)},$.prototype.eachChild=function(me){me(this.lhs),me(this.rhs),this.collator&&me(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var me=[y];return this.eachChild(function(Xe){me.push(Xe.serialize())}),me},$}()}var Mi=Li("==",Tt,Si),Gn=Li("!=",Vt,Ci),ta=Li("<",wr,Ki),ya=Li(">",mr,Fn),ia=Li("<=",Fr,Pi),pa=Li(">=",_i,di),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Hi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var me=null;if($.currency&&(me=z.parse($.currency,1,Sa),!me))return null;var Xe=null;if($["min-fraction-digits"]&&(Xe=z.parse($["min-fraction-digits"],1,Hi),!Xe))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Hi),!xt)?null:new va(V,oe,me,Xe,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Hi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[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(g){var z=this.input.evaluate(g);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(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Mi,"!=":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(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var me=oe?oe.evaluate(y):1,Xe=wo(z,V,$,me);if(Xe)throw new Ka(Xe);return new ha(z/255*me,V/255*me,$/255*me,me)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Bl(y){return{type:y}}rn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Hi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Hi,Hi,Hi],Cs],rgba:[vn,[Hi,Hi,Hi,Hi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Hi,[],function(y){return y.globals.zoom}],"heatmap-density":[Hi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Hi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Hi,Bl(Hi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Hi,Bl(Hi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Hi,overloads:[[[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Hi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Hi,[],function(){return Math.LN2}],pi:[Hi,[],function(){return Math.PI}],e:[Hi,[],function(){return Math.E}],"^":[Hi,[Hi,Hi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Hi,[Hi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Hi,[Hi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Hi,[Hi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Hi,[Hi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Hi,[Hi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Hi,[Hi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Hi,[Hi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Hi,[Hi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Hi,Bl(Hi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Hi,Bl(Hi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Hi,[Hi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Hi,[Hi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Hi,[Hi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Hi,[Hi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Bl(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,me=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var Xe,xt,Dt;if(me==="exponential")Xe=Ml;else if(me==="interval")Xe=zl;else if(me==="categorical"){Xe=nl,xt=Object.create(null);for(var Xt=0,br=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(br){return br[0]}),z),me=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),Xe=y.stops[oe][1],xt=y.stops[oe+1][1],Dt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Dt=function(br,qr){return Xt.reverse(Xt.interpolate(Xt.forward(br),Xt.forward(qr),me))}}return typeof Xe.evaluate=="function"?{evaluate:function(){for(var qr=[],Pr=arguments.length;Pr--;)qr[Pr]=arguments[Pr];var ai=Xe.evaluate.apply(void 0,qr),Oi=xt.evaluate.apply(void 0,qr);if(!(ai===void 0||Oi===void 0))return Dt(ai,Oi,me)}}:Dt(Xe,xt,me)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,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(g,z,V,$,oe,me){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,me){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me||null;try{var 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 Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(Xe)+" instead.");return Xe}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Xl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)};var Gl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Gl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)},Gl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Nl(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var me=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Gl("camera",y.value,oe.labels,me):new Gl("composite",y.value,oe.labels,me))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Nl(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function mt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,me,Xe=z!=="categorical"&&y.value.property===void 0,xt=!Xe,Dt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:br,default:ai}});return z==="identity"&&Xe&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):Xe&&!Vl(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Dt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function br(Oi){if(z==="identity")return[new gn(Oi.key,Oi.value,'identity function may not have a "stops" property')];var Wn=[],bn=Oi.value;return Wn=Wn.concat(Ue({key:Oi.key,value:bn,valueSpec:Oi.valueSpec,style:Oi.style,styleSpec:Oi.styleSpec,arrayElementValidator:qr})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(Oi.key,bn,"array must have at least one stop")),Wn}function qr(Oi){var Wn=[],bn=Oi.value,bo=Oi.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(Dt){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(me&&me>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==me&&(me=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:Oi.style,styleSpec:Oi.styleSpec,objectElementValidators:{zoom:rt,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:Oi.style,styleSpec:Oi.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:g,style:Oi.style,styleSpec:Oi.styleSpec}))}function Pr(Oi,Wn){var bn=ns(Oi.value),bo=Sn(Oi.value),ba=Oi.value!==null?Oi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(Oi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(Oi.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(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(Oi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(Oi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=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 g=0,z=y.slice(1);gg?1:0}function Ve(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?it(y[1],y[2],g):g==="any"?pt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(fr)):g==="in"?Ht(y[1],y.slice(2)):g==="!in"?fr(Ht(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?fr(nr(y[1])):g==="within"?y:!0;return z}function it(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function pt(y){return["any"].concat(y.map(lt))}function Ht(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function fr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Ft(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ir(y)}function Ir(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var me=2;me=Xt[Pr+0]&&V>=Xt[Pr+1])?(me[qr]=!0,oe.push(Dt[qr])):me[qr]=!1}}},sf.prototype._forEachCell=function(y,g,z,V,$,oe,me,Xe){for(var xt=this._convertToCellCoord(y),Dt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),br=this._convertToCellCoord(V),qr=xt;qr<=Xt;qr++)for(var Pr=Dt;Pr<=br;Pr++){var ai=this.d*Pr+qr;if(!(Xe&&!Xe(this._convertFromCellCoord(qr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(qr+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,me,Xe))return}},sf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},sf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=ju+this.cells.length+1+1,z=0,V=0;V=0)){var br=y[Xt];Dt[Xt]=ef[xt].shallow.indexOf(Xt)>=0?br:et(br,g)}y instanceof Error&&(Dt.message=y.message)}if(Dt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Dt.$name=xt),Dt}throw new Error("can't serialize object of type "+typeof y)}function st(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||Pe(y)||Ze(y)||ArrayBuffer.isView(y)||y instanceof _f)return y;if(Array.isArray(y))return y.map(st);if(typeof y=="object"){var g=y.$name||"Object",z=ef[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,me=Object.keys(y);oe=0?xt:st(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):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 hr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["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)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Bi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["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)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["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)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Bi(y))}function mi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function ji(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=wi.error),xo&&xo(y)};function El(){Pl.fire(new nn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ii,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===wi.deferred||no===wi.loading||no===wi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=Qe.resolveURL(y),no=wi.deferred,xo=g,El(),z||Xu()},Xu=function(){if(no!==wi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=wi.loading,El(),Xo&&Nr({url:Xo},function(y){y?js(y):(no=wi.loaded,El())})},Vu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===wi.loaded||Vu.applyArabicShaping!=null},isLoading:function(){return no===wi.loading},setState:function(g){no=g.pluginStatus,Xo=g.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(g,z){this.zoom=g,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 jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,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 g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new lf(this.property,this.value,z,x({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new lf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return W(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:W(z))},Tu.prototype.getTransition=function(g){return W(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=W(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($me.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(Nt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var yi=function(g){this.specification=g};yi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},yi.prototype.interpolate=function(){return!1};var ci=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",Nt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",yi);var vi="-transition",on=function(y){function g(z,V){if(y.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 oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".layout."+V;if(this._validate($u,me,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,vi)?this._transitionablePaint.getTransition(V.slice(0,-vi.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".paint."+V;if(this._validate(Hu,me,V,$,oe))return!1}if(U(V,vi))return this._transitionablePaint.setTransition(V.slice(0,-vi.length),$||void 0),!1;var Xe=this._transitionablePaint._values[V],xt=Xe.property.specification["property-type"]==="cross-faded-data-driven",Dt=Xe.value.isDataDriven(),Xt=Xe.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var br=this._transitionablePaint._values[V].value,qr=br.isDataDriven();return qr||Dt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,br)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.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,$)},g.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($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,me,Xe){return Xe===void 0&&(Xe={}),Xe&&Xe.validate===!1?!1:Ku(this,V.call(nu,{key:$,layerType:this.type,objectKey:oe,value:me,styleSpec:Wi,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.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},g}(Ii),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,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(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.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(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,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(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(me){var Xe=qi(me.type),xt=z=Wr(z,Math.max(g,Xe)),Dt=me.components||1;return V=Math.max(V,Xe),z+=Xe*Dt,{name:me.name,type:me.type,components:Dt,offset:xt}}),oe=Wr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function qi(y){return Bn[y].BYTES_PER_ELEMENT}function Wr(y,g){return Math.ceil(y/g)*g}var xi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.int16[me+0]=$,this.int16[me+1]=oe,V},g}(ua);xi.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",xi);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=me,this.int16[xt+3]=Xe,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=Xe,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Zi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*4,br=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[br+4]=me,this.uint8[br+5]=Xe,this.uint8[br+6]=xt,this.uint8[br+7]=Dt,V},g}(ua);Zi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Zi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.float32[me+0]=$,this.float32[me+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,me,Xe,xt,Dt,Xt,br,qr)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=me,this.uint16[ai+3]=Xe,this.uint16[ai+4]=xt,this.uint16[ai+5]=Dt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=br,this.uint16[ai+8]=qr,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai){var Oi=this.length;return this.resize(Oi+1),this.emplace(Oi,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=me,this.int16[Wn+3]=Xe,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Dt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=br,this.int16[Wn+8]=qr,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=Oi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var Ji=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.float32[Xe+0]=$,this.float32[Xe+1]=oe,this.float32[Xe+2]=me,V},g}(ua);Ji.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",Ji);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br){var qr=this.length;return this.resize(qr+1),this.emplace(qr,V,$,oe,me,Xe,xt,Dt,Xt,br)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=me,this.int16[Pr+3]=Xe,this.int16[Pr+4]=xt,this.int16[Pr+5]=Dt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=br,this.uint16[Pr+9]=qr,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,V,$,oe,me,Xe,xt)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=Xe,this.int16[Xt+4]=xt,this.int16[Xt+5]=Dt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,Xe){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,me,Xe)},g.prototype.emplace=function(V,$,oe,me,Xe,xt){var Dt=V*4,Xt=V*8;return this.float32[Dt+0]=$,this.float32[Dt+1]=oe,this.float32[Dt+2]=me,this.int16[Xt+6]=Xe,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*12,Dt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Dt+1]=me,this.float32[Dt+2]=Xe,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.uint16[Xe+0]=$,this.uint16[Xe+1]=oe,this.uint16[Xe+2]=me,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=me,this.uint16[Uo+3]=Xe,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Dt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=br,this.uint16[Uo+11]=qr,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=Oi,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},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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)},g.prototype.emplaceBack=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu){var uf=this.length;return this.resize(uf+1),this.emplace(uf,V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu)},g.prototype.emplace=function(V,$,oe,me,Xe,xt,Dt,Xt,br,qr,Pr,ai,Oi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Ou,du,gu,uf){var Ru=V*34,If=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=me,this.int16[Ru+3]=Xe,this.int16[Ru+4]=xt,this.int16[Ru+5]=Dt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=br,this.uint16[Ru+8]=qr,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=Oi,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]=Kl,this.uint32[If+12]=lu,this.float32[If+13]=Ou,this.float32[If+14]=du,this.float32[If+15]=gu,this.float32[If+16]=uf,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*3;return this.int16[Xe+0]=$,this.int16[Xe+1]=oe,this.int16[Xe+2]=me,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var al=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var Xe=V*2,xt=V*4;return this.uint32[Xe+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=me,V},g}(ua);al.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",al);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.uint16[me+0]=$,this.uint16[me+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Bu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,Xe){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=me,this.float32[xt+3]=Xe,V},g}(ua);Bu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Bu);var vf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);vf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new vf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var Ef=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);Ef.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new Ef(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var gf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);gf.prototype.size=68;var xf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new gf(this,V)},g}(ul);Z("SymbolInstanceArray",xf);var Cf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Cf);var Gu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Gu);var cf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;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(g.prototype,z),g}(Ln);cf.prototype.size=8;var mf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new cf(this,V)},g}(al);Z("FeatureIndexArray",mf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),bf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt,me=me<<13|me>>>19,Xe=(me&65535)*5+(((me>>>16)*5&65535)<<16)&4294967295,me=(Xe&65535)+27492+(((Xe>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(br+2)&255)<<16;case 2:Xt^=(z.charCodeAt(br+1)&255)<<8;case 1:Xt^=z.charCodeAt(br)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Dt+(((Xt>>>16)*Dt&65535)<<16)&4294967295,me^=Xt}return me^=z.length,me^=me>>>16,me=(me&65535)*2246822507+(((me>>>16)*2246822507&65535)<<16)&4294967295,me^=me>>>13,me=(me&65535)*3266489909+(((me>>>16)*3266489909&65535)<<16)&4294967295,me^=me>>>16,me>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,me=0,Xe;$>=4;)Xe=z.charCodeAt(me)&255|(z.charCodeAt(++me)&255)<<8|(z.charCodeAt(++me)&255)<<16|(z.charCodeAt(++me)&255)<<24,Xe=(Xe&65535)*1540483477+(((Xe>>>16)*1540483477&65535)<<16),Xe^=Xe>>>24,Xe=(Xe&65535)*1540483477+(((Xe>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^Xe,$-=4,++me;switch($){case 3:oe^=(z.charCodeAt(me+2)&255)<<16;case 2:oe^=(z.charCodeAt(me+1)&255)<<8;case 1:oe^=z.charCodeAt(me)&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=g}),K=J,_e=J,ne=O;K.murmur3=_e,K.murmur2=ne;var Ce=function(){this.ids=[],this.positions=[],this.indexed=!1};Ce.prototype.add=function(g,z,V,$){this.ids.push(kt(g)),this.positions.push(z,V,$)},Ce.prototype.getPositions=function(g){for(var z=kt(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var me=[];this.ids[V]===z;){var Xe=this.positions[3*V],xt=this.positions[3*V+1],Dt=this.positions[3*V+2];me.push({index:Xe,start:xt,end:Dt}),V++}return me},Ce.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Ce.deserialize=function(g){var z=new Ce;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ye=Math.pow(2,53)-1;function kt(y){var g=+y;return!isNaN(g)&&g<=Ye?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,me=V+1;;){do oe++;while(y[oe]<$);do me--;while(y[me]>$);if(oe>=me)break;Mr(y,oe,me),Mr(g,3*oe,3*me),Mr(g,3*oe+1,3*me+1),Mr(g,3*oe+2,3*me+2)}me-zme.x+1||xtme.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Fu=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new xi,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Yi(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Fu.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],me=null;$.type==="circle"&&(me=$.layout.get("circle-sort-key"));for(var Xe=0,xt=g;Xe=Tn||qr<0||qr>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,br,qr,-1,-1),yu(this.layoutVertexArray,br,qr,1,-1),yu(this.layoutVertexArray,br,qr,1,1),yu(this.layoutVertexArray,br,qr,-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,g,V,{},$)},Z("CircleBucket",Fu,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function mv(y,g){for(var z=!1,V,$,oe,me=0;meg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=me.y>g.y&&g.x<(me.x-oe.x)*(g.y-oe.y)/(me.y-oe.y)+oe.x&&(z=!z)}return z}function yv(y,g,z,V,$){for(var oe=0,me=y;oe=Xe.x&&$>=Xe.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Dt=0,Xt=xt;Dt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function Pp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Jp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var me=[],Xe=0;Xe0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function $9(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function Q9(y,g,z){var V=g[0],$=g[1],oe=g[2],me=z[0],Xe=z[1],xt=z[2];return y[0]=$*xt-oe*Xe,y[1]=oe*me-V*xt,y[2]=V*Xe-$*me,y}function eO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var tO=uy,YQ=function(){var y=ly();return function(g,z,V,$,oe,me){var Xe,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,Xe=V;Xey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var me=y.data,Xe=g.data,xt=0;xt<$.height;xt++)for(var Dt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,br=0;br<$.width*oe;br++)Xe[Xt+br]=me[Dt+br];return g}var Rp=function(g,z){kd(this,g,1,z)};Rp.prototype.resize=function(g){qw(this,g,1)},Rp.prototype.clone=function(){return new Rp({width:this.width,height:this.height},new Uint8Array(this.data))},Rp.copy=function(g,z,V,$,oe){Nw(g,z,V,$,oe,1)};var Ih=function(g,z){kd(this,g,4,z)};Ih.prototype.resize=function(g){qw(this,g,4)},Ih.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},Ih.prototype.clone=function(){return new Ih({width:this.width,height:this.height},new Uint8Array(this.data))},Ih.copy=function(g,z,V,$,oe){Nw(g,z,V,$,oe,4)},Z("AlphaImage",Rp),Z("RGBAImage",Ih);var $x=new ci({"heatmap-radius":new Nt(Wi.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Nt(Wi.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(Wi.paint_heatmap["heatmap-intensity"]),"heatmap-color":new yi(Wi.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(Wi.paint_heatmap["heatmap-opacity"])}),P1={paint:$x};function Qx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new Ih({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.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(y.clips)for(var Dt=0,Xt=0;Dt80*z){Xe=Dt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)br=y[ai],qr=y[ai+1],brDt&&(Dt=br),qr>Xt&&(Xt=qr);Pr=Math.max(Dt-Xe,Xt-xt),Pr=Pr!==0?1/Pr:0}return eb(oe,me,z,Xe,xt,Pr),me}function Gw(y,g,z,V,$){var oe,me;if($===yM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)me=FC(oe,y[oe],y[oe+1],me);return me&&rb(me,me.next)&&(ab(me),me=me.next),me}function fy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(rb(z,z.next)||Jc(z.prev,z,z.next)===0)){if(ab(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function eb(y,g,z,V,$,oe,me){if(y){!me&&oe&&Hw(y,V,$,oe);for(var Xe=y,xt,Dt;y.prev!==y.next;){if(xt=y.prev,Dt=y.next,oe?IC(y,V,$,oe):zC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Dt.i/z),ab(y),y=Dt.next,Xe=Dt.next;continue}if(y=Dt,y===Xe){me?me===1?(y=tb(fy(y),g,z),eb(y,g,z,V,$,oe,2)):me===2&&p0(y,g,z,V,$,oe):eb(fy(y),g,z,V,$,oe,1);break}}}}function zC(y){var g=y.prev,z=y,V=y.next;if(Jc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(hy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Jc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function IC(y,g,z,V){var $=y.prev,oe=y,me=y.next;if(Jc($,oe,me)>=0)return!1;for(var Xe=$.xoe.x?$.x>me.x?$.x:me.x:oe.x>me.x?oe.x:me.x,Xt=$.y>oe.y?$.y>me.y?$.y:me.y:oe.y>me.y?oe.y:me.y,br=dM(Xe,xt,g,z,V),qr=dM(Dt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=br&&ai&&ai.z<=qr;){if(Pr!==y.prev&&Pr!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=br;){if(Pr!==y.prev&&Pr!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=qr;){if(ai!==y.prev&&ai!==y.next&&hy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function tb(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!rb($,oe)&&Ww($,V,V.next,oe)&&nb($,oe)&&nb(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),ab(V),ab(V.next),V=y=oe),V=V.next}while(V!==y);return fy(V)}function p0(y,g,z,V,$,oe){var me=y;do{for(var Xe=me.next.next;Xe!==me.prev;){if(me.i!==Xe.i&&I1(me,Xe)){var xt=vM(me,Xe);me=fy(me,me.next),xt=fy(xt,xt.next),eb(me,g,z,V,$,oe),eb(xt,g,z,V,$,oe);return}Xe=Xe.next}me=me.next}while(me!==y)}function cy(y,g,z,V){var $=[],oe,me,Xe,xt,Dt;for(oe=0,me=g.length;oe=z.next.y&&z.next.y!==z.y){var Xe=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(Xe<=V&&Xe>oe){if(oe=Xe,Xe===V){if($===z.y)return z;if($===z.next.y)return z.next}me=z.x=z.x&&z.x>=Dt&&V!==z.x&&hy($me.x||z.x===me.x&&fO(me,z)))&&(me=z,br=qr)),z=z.next;while(z!==xt);return me}function fO(y,g){return Jc(y.prev,y,g.prev)<0&&Jc(g.next,y,y.next)<0}function Hw(y,g,z,V){var $=y;do $.z===null&&($.z=dM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,hM($)}function hM(y){var g,z,V,$,oe,me,Xe,xt,Dt=1;do{for(z=y,y=null,oe=null,me=0;z;){for(me++,V=z,Xe=0,g=0;g0||xt>0&&V;)Xe!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,Xe--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Dt*=2}while(me>1);return y}function dM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function pM(y){var g=y,z=y;do(g.x=0&&(y-me)*(V-Xe)-(z-me)*(g-Xe)>=0&&(z-me)*(oe-Xe)-($-me)*(V-Xe)>=0}function I1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!DC(y,g)&&(nb(y,g)&&nb(g,y)&&cO(y,g)&&(Jc(y.prev,y,g.prev)||Jc(y,g.prev,g))||rb(y,g)&&Jc(y.prev,y,y.next)>0&&Jc(g.prev,g,g.next)>0)}function Jc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function rb(y,g){return y.x===g.x&&y.y===g.y}function Ww(y,g,z,V){var $=mg(Jc(y,g,z)),oe=mg(Jc(y,g,V)),me=mg(Jc(z,V,y)),Xe=mg(Jc(z,V,g));return!!($!==oe&&me!==Xe||$===0&&ib(y,z,g)||oe===0&&ib(y,V,g)||me===0&&ib(z,y,V)||Xe===0&&ib(z,g,V))}function ib(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function mg(y){return y>0?1:y<0?-1:0}function DC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Ww(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function nb(y,g){return Jc(y.prev,y,y.next)<0?Jc(y,g,y.next)>=0&&Jc(y,y.prev,g)>=0:Jc(y,g,y.prev)<0||Jc(y,y.next,g)<0}function cO(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function vM(y,g){var z=new mM(y.i,y.x,y.y),V=new mM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function FC(y,g,z,V){var $=new mM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ab(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 mM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}z1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,me=Math.abs(yM(y,0,oe,z));if($)for(var Xe=0,xt=g.length;Xe0&&(V+=y[$-1].length,z.holes.push(V))}return z},Vw.default=PC;function gM(y,g,z,V,$){vm(y,g,z||0,V||y.length-1,$||BC)}function vm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,me=g-z+1,Xe=Math.log(oe),xt=.5*Math.exp(2*Xe/3),Dt=.5*Math.sqrt(Xe*xt*(oe-xt)/oe)*(me-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-me*xt/oe+Dt)),br=Math.min(V,Math.floor(g+(oe-me)*xt/oe+Dt));vm(y,g,Xt,br,$)}var qr=y[g],Pr=z,ai=V;for(R1(y,z,g),$(y[V],qr)>0&&R1(y,z,V);Pr0;)ai--}$(y[z],qr)===0?R1(y,z,ai):(ai++,R1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function R1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function BC(y,g){return yg?1:0}function jw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,me=0;me1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(Xe&&me.push(Xe),Xe=[]),Xe.push(new l($,oe));else if(z===7)Xe&&Xe.push(Xe[0].clone());else throw new Error("unknown command "+z)}return Xe&&me.push(Xe),me},yg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,me=1/0,Xe=-1/0,xt=1/0,Dt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$Xe&&(Xe=$),oeDt&&(Dt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[me,xt,Xe,Dt]},yg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,me=this.loadGeometry(),Xe=yg.types[this.type],xt,Dt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}bM.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 g=this._pbf.readVarint()+this._pbf.pos;return new xM(this._pbf,g,this.extent,this._keys,this._values)};var XC=dO;function dO(y,g){this.layers=y.readFields(pO,{},g)}function pO(y,g,z){if(y===3){var V=new mm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var ZC=XC,D1=xM,YC=mm,ym={VectorTile:ZC,VectorTileFeature:D1,VectorTileLayer:YC},KC=ym.VectorTileFeature.types,Zw=500,F1=Math.pow(2,13);function dy(y,g,z,V,$,oe,me,Xe){y.emplaceBack(g,z,Math.floor(V*F1)*2+me,$*F1*2,oe*F1*2,Math.round(Xe))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Yi(g.layers,g.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(g,z,V){this.features=[],this.hasPattern=Xw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!vO(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+Dt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Dt,this.layoutVertexArray,this.indexArray)),KC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Ou=xt;luTn)||y.y===g.y&&(y.y<0||y.y>Tn)}function mO(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>Tn})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>Tn})}var B1=new ci({"fill-extrusion-opacity":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(Wi["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Nt(Wi["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(Wi["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ud={paint:B1},py=function(y){function g(z){y.call(this,z,ud)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return Pp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,me,Xe,xt,Dt,Xt){var br=Jp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Dt),qr=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=yO(br,Xt,xt,0),Oi=AM(me,Pr,qr,Xt),Wn=Oi[0],bn=Oi[1];return JC(Wn,bn,ai)},g}(on);function gg(y,g){return y.x*g.x+y.y*g.y}function wM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Dt-1].equals(g[Dt-2]);)Dt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*br){var lu=Pr.sub(Pr.sub(ai)._mult(br/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,qr),ai=lu}}var Ou=ai&&Oi,du=Ou?V:xt?"butt":$;if(Ou&&du==="round"&&(Zsoe&&(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,qr),this.addCurrentVertex(Pr,ba.mult(-1),0,0,qr)}else if(du==="bevel"||du==="fakeround"){var uf=-Math.sqrt(Zs*Zs-1),Ru=hu?uf:0,If=hu?0:uf;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,If,qr),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/SM),Rf=1;Rf2*br){var _h=Pr.add(Oi.sub(Pr)._mult(br/td)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,qr),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,me){me===void 0&&(me=!1);var Xe=z.x+z.y*V,xt=z.y-z.x*V,Dt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,Xe,xt,me,!1,V,oe),this.addHalfVertex(g,Dt,Xt,me,!0,-$,oe),this.distance>fb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,me))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,me,Xe){var xt=g.x,Dt=g.y,Xt=this.lineClips?this.scaledDistance*(fb-1):this.scaledDistance,br=Xt*Kw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Dt<<1)+(oe?1:0),Math.round(Yw*z)+128,Math.round(Yw*V)+128,(me===0?0:me<0?-1:1)+1|(br&63)<<2,br>>6),this.lineClips){var qr=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=qr/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var Oi=Xe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Oi),Xe.primitiveLength++),oe?this.e2=Oi:this.e1=Oi},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(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var MM=new ci({"line-cap":new Be(Wi.layout_line["line-cap"]),"line-join":new Nt(Wi.layout_line["line-join"]),"line-miter-limit":new Be(Wi.layout_line["line-miter-limit"]),"line-round-limit":new Be(Wi.layout_line["line-round-limit"]),"line-sort-key":new Nt(Wi.layout_line["line-sort-key"])}),EM=new ci({"line-opacity":new Nt(Wi.paint_line["line-opacity"]),"line-color":new Nt(Wi.paint_line["line-color"]),"line-translate":new Be(Wi.paint_line["line-translate"]),"line-translate-anchor":new Be(Wi.paint_line["line-translate-anchor"]),"line-width":new Nt(Wi.paint_line["line-width"]),"line-gap-width":new Nt(Wi.paint_line["line-gap-width"]),"line-offset":new Nt(Wi.paint_line["line-offset"]),"line-blur":new Nt(Wi.paint_line["line-blur"]),"line-dasharray":new Qr(Wi.paint_line["line-dasharray"]),"line-pattern":new ar(Wi.paint_line["line-pattern"]),"line-gradient":new yi(Wi.paint_line["line-gradient"])}),Jw={paint:EM,layout:MM},_O=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,me){return $=x({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,me)},g}(Nt),I=new _O(Jw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var S=function(y){function g(z){y.call(this,z,Jw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.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}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),me=Md("line-offset",this,$);return oe/2+Math.abs(me)+Pp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,me,Xe,xt,Dt){var Xt=Jp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Dt),br=Dt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),qr=this.paint.get("line-offset").evaluate($,oe);return qr&&(me=X(me,qr*Dt)),Vf(Xt,me,br)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,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(y){for(var g="",z=0;z>1,Xt=-7,br=z?$-1:0,qr=z?-1:1,Pr=y[g+br];for(br+=qr,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=Xe;Xt>0;oe=oe*256+y[g+br],br+=qr,Xt-=8);for(me=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;me=me*256+y[g+br],br+=qr,Xt-=8);if(oe===0)oe=1-Dt;else{if(oe===xt)return me?NaN:(Pr?-1:1)*(1/0);me=me+Math.pow(2,V),oe=oe-Dt}return(Pr?-1:1)*me*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var me,Xe,xt,Dt=oe*8-$-1,Xt=(1<>1,qr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,Oi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(Xe=isNaN(g)?1:0,me=Xt):(me=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-me))<1&&(me--,xt*=2),me+br>=1?g+=qr/xt:g+=qr*Math.pow(2,1-br),g*xt>=2&&(me++,xt/=2),me+br>=Xt?(Xe=0,me=Xt):me+br>=1?(Xe=(g*xt-1)*Math.pow(2,$),me=me+br):(Xe=g*Math.pow(2,br-1)*Math.pow(2,$),me=0));$>=8;y[z+Pr]=Xe&255,Pr+=ai,Xe/=256,$-=8);for(me=me<<$|Xe,Dt+=$;Dt>0;y[z+Pr]=me&255,Pr+=ai,me/=256,Dt-=8);y[z+Pr-ai]|=Oi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||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(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=$h(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Dp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=$h(this.buf,this.pos)+$h(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=$h(this.buf,this.pos)+Dp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,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,g=this.pos;return this.pos=y,y-g>=_u&&Xs?Xf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(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 g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&Qp(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&Qp(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,fd,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Dh,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Hd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,$c,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,Fh,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,cd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return qu(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function qu(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Rh(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Rh(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function Qp(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function fd(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function Dp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+Xe>z)break;var xt,Dt,Xt;Xe===1?oe<128&&(me=oe):Xe===2?(xt=y[$+1],(xt&192)===128&&(me=(oe&31)<<6|xt&63,me<=127&&(me=null))):Xe===3?(xt=y[$+1],Dt=y[$+2],(xt&192)===128&&(Dt&192)===128&&(me=(oe&15)<<12|(xt&63)<<6|Dt&63,(me<=2047||me>=55296&&me<=57343)&&(me=null))):Xe===4&&(xt=y[$+1],Dt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Dt&192)===128&&(Xt&192)===128&&(me=(oe&15)<<18|(xt&63)<<12|(Dt&63)<<6|Xt&63,(me<=65535||me>=1114112)&&(me=null))),me===null?(me=65533,Xe=1):me>65535&&(me-=65536,V+=String.fromCharCode(me>>>10&1023|55296),me=56320|me&1023),V+=String.fromCharCode(me),$+=Xe}return V}function Xf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Fp(y,g,z){y===1&&z.readMessage(Hc,g)}function Hc(y,g,z){if(y===3){var V=z.readMessage(O1,{}),$=V.id,oe=V.bitmap,me=V.width,Xe=V.height,xt=V.left,Dt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Rp({width:me+2*mc,height:Xe+2*mc},oe),metrics:{width:me,height:Xe,left:xt,top:Dt,advance:Xt}})}}function O1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Fp,[])}var Gv=mc;function ev(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var me=Math.max(Math.ceil(Math.sqrt(g/.95)),z),Xe=[{x:0,y:0,w:me,h:1/0}],xt=0,Dt=0,Xt=0,br=y;Xt=0;Pr--){var ai=Xe[Pr];if(!(qr.w>ai.w||qr.h>ai.h)){if(qr.x=ai.x,qr.y=ai.y,Dt=Math.max(Dt,qr.y+qr.h),xt=Math.max(xt,qr.x+qr.w),qr.w===ai.w&&qr.h===ai.h){var Oi=Xe.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Qh.prototype.substring=function(g,z){var V=new Qh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Qh.prototype.toString=function(){return this.text},Qh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Qh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(_g.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=$w,this.imageSectionID)};function xO(y,g){for(var z=[],V=y.text,$=0,oe=0,me=g;oe=0,Xt=0,br=0;br0&&_h>hu&&(hu=_h)}else{var Df=z[lu.fontStack],Pf=Df&&Df[du];if(Pf&&Pf.rect)Ru=Pf.rect,uf=Pf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;uf=Tc.metrics}gu=(Uo-lu.scale)*So}Rf?(y.verticalizable=!0,Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Ou,metrics:uf,rect:Ru}),qr+=sc*lu.scale+Dt):(Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Ou,metrics:uf,rect:Ru}),qr+=uf.advance*lu.scale+Dt)}if(Tl.length!==0){var Zd=qr-Dt;ai=Math.max(Zd,ai),TO(Tl,0,Tl.length-1,Wn,hu)}qr=0;var Yd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Yd,Oi=Math.max(Yd,Oi),++bn}var rd=Pr-q1,dp=CM(me),pp=dp.horizontalAlign,Bh=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,Bh,ai,Oi,oe,rd,$.length),y.top+=-Bh*rd,y.bottom=y.top+rd,y.left+=-pp*ai,y.right=y.left+ai}function TO(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],me=oe.metrics.advance*oe.scale,Xe=(y[z].x+me)*V,xt=g;xt<=z;xt++)y[xt].x-=Xe,y[xt].y+=$}function Ld(y,g,z,V,$,oe,me,Xe,xt){var Dt=(g-z)*$,Xt=0;oe!==me?Xt=-Xe*V-q1:Xt=(-V*xt+.5)*me;for(var br=0,qr=y;br-z/2;){if(me--,me<0)return!1;Xe-=y[me].dist(oe),oe=y[me]}Xe+=y[me].dist(y[me+1]),me++;for(var xt=[],Dt=0;XeV;)Dt-=xt.shift().angleDelta;if(Dt>$)return!1;me++,Xe+=br.dist(qr)}return!0}function eee(y){for(var g=0,z=0;zDt){var ai=(Dt-xt)/Pr,Oi=Lo(br.x,qr.x,ai),Wn=Lo(br.y,qr.y,ai),bn=new Xd(Oi,Wn,qr.angleTo(br),Xt);return bn._round(),!me||QQ(y,bn,Xe,me,g)?bn:void 0}xt+=Pr}}function btt(y,g,z,V,$,oe,me,Xe,xt){var Dt=tee(V,oe,me),Xt=ree(V,$),br=Xt*me,qr=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-br=0&&_o=0&&Uo=0&&qr+Dt<=Xt){var Zs=new Xd(_o,Uo,bo,ai);Zs._round(),(!V||QQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}br+=bn}return!Xe&&!Pr.length&&!me&&(Pr=iee(y,br/2,z,V,$,oe,me,!0,xt)),Pr}function nee(y,g,z,V,$){for(var oe=[],me=0;me=V&&br.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round():br.x>=V&&(br=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round()),!(Xt.y>=$&&br.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round():br.y>=$&&(br=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(br)))))}return oe}var t3=Rc;function aee(y,g,z,V){var $=[],oe=y.image,me=oe.pixelRatio,Xe=oe.paddedRect.w-2*t3,xt=oe.paddedRect.h-2*t3,Dt=y.right-y.left,Xt=y.bottom-y.top,br=oe.stretchX||[[0,Xe]],qr=oe.stretchY||[[0,xt]],Pr=function(Df,Pf){return Df+Pf[1]-Pf[0]},ai=br.reduce(Pr,0),Oi=qr.reduce(Pr,0),Wn=Xe-ai,bn=xt-Oi,bo=0,ba=ai,_o=0,Uo=Oi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=aL(br,0,Kl[0]),_o=aL(qr,0,Kl[1]),ba=aL(br,Kl[0],Kl[2]),Uo=aL(qr,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(Df,Pf,yc,Tc){var Qc=oL(Df.stretch-bo,ba,Dt,y.left),nh=sL(Df.fixed-Zs,Cl,Df.stretch,ai),td=oL(Pf.stretch-_o,Uo,Xt,y.top),_h=sL(Pf.fixed-Tl,hu,Pf.stretch,Oi),Zd=oL(yc.stretch-bo,ba,Dt,y.left),Yd=sL(yc.fixed-Zs,Cl,yc.stretch,ai),rd=oL(Tc.stretch-_o,Uo,Xt,y.top),dp=sL(Tc.fixed-Tl,hu,Tc.stretch,Oi),pp=new l(Qc,td),Bh=new l(Zd,td),vp=new l(Zd,rd),bv=new l(Qc,rd),wg=new l(nh/me,_h/me),V1=new l(Yd/me,dp/me),G1=g*Math.PI/180;if(G1){var H1=Math.sin(G1),u3=Math.cos(G1),g0=[u3,-H1,H1,u3];pp._matMult(g0),Bh._matMult(g0),bv._matMult(g0),vp._matMult(g0)}var dL=Df.stretch+Df.fixed,zO=yc.stretch+yc.fixed,pL=Pf.stretch+Pf.fixed,IO=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+t3+dL,y:oe.paddedRect.y+t3+pL,w:zO-dL,h:IO-pL},f3=Cl/me/Dt,vL=hu/me/Xt;return{tl:pp,tr:Bh,bl:bv,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:wg,pixelOffsetBR:V1,minFontScaleX:f3,minFontScaleY:vL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Xe+1},{fixed:0,stretch:xt+1}));else for(var Ou=oee(br,Wn,ai),du=oee(qr,bn,Oi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var Oi=me.top*Xe-xt,Wn=me.bottom*Xe+xt,bn=me.left*Xe-xt,bo=me.right*Xe+xt,ba=me.collisionPadding;if(ba&&(bn-=ba[0]*Xe,Oi-=ba[1]*Xe,bo+=ba[2]*Xe,Wn+=ba[3]*Xe),Xt){var _o=new l(bn,Oi),Uo=new l(bo,Oi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*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),Oi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,Oi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},r3=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Att),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};r3.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},r3.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},r3.prototype.peek=function(){return this.data[0]},r3.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var me=g-1>>1,Xe=V[me];if($(oe,Xe)>=0)break;V[g]=Xe,g=me}V[g]=oe},r3.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,me=V[g];g=0)break;V[g]=xt,g=Xe}V[g]=me};function Att(y,g){return yg?1:0}function Ttt(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,me=-1/0,Xe=y[0],xt=0;xtoe)&&(oe=Dt.x),(!xt||Dt.y>me)&&(me=Dt.y)}var Xt=oe-V,br=me-$,qr=Math.min(Xt,br),Pr=qr/2,ai=new r3([],Stt);if(qr===0)return new l(V,$);for(var Oi=V;Oibn.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<=g)&&(Pr=ba.h/2,ai.push(new i3(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new i3(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new i3(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new i3(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Stt(y,g){return g.max-y.max}function i3(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=Mtt(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Mtt(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Dt.x)*(y.y-Dt.y)/(Xt.y-Dt.y)+Dt.x&&(z=!z),V=Math.min(V,hm(y,Dt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Ett(y){for(var g=0,z=0,V=0,$=y[0],oe=0,me=$.length,Xe=me-1;oe=Tn||g0.y<0||g0.y>=Tn||Ltt(y,g0,u3,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Dt,Xt,me)};if(Kl==="line")for(var uf=0,Ru=nee(g.geometry,0,0,Tn,Tn);uf1){var td=xtt(nh,Cl,z.vertical||ai,V,Oi,bo);td&&gu(nh,td)}}else if(g.type==="Polygon")for(var _h=0,Zd=jw(g.geometry,0);_hN1&&re(y.layerIds[0]+': Value for "text-size" is >= '+LM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(me,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(me,{},ai)],(bn[0]>N1||bn[1]>N1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+LM+'. Reduce your "text-size".')),y.addSymbols(y.text,Oi,bn,Xe,oe,me,Dt,g,xt.lineStartIndex,xt.lineLength,qr,ai);for(var bo=0,ba=Xt;boN1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+LM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(Bh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(Bh[0]>N1||Bh[1]>N1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+LM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,rd,Bh,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Rf=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,Bh,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var bv=V.horizontal[vp];if(!lu){yc=K(bv.text);var wg=Xe.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new lL(xt,g,Dt,Xt,br,bv,qr,Pr,ai,wg)}var V1=bv.positionedLines.length===1;if(If+=lee(y,g,bv,oe,Xe,ai,_o,Oi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,V1?Object.keys(V.horizontal):[vp],Pf,Rf,Uo,Cl),V1)break}V.vertical&&(sc+=lee(y,g,V.vertical,oe,Xe,ai,_o,Oi,Kl,cp.vertical,["vertical"],Pf,Df,Uo,Cl));var G1=lu?lu.boxStartIndex:y.collisionBoxArray.length,H1=lu?lu.boxEndIndex:y.collisionBoxArray.length,u3=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,dL=Ou?Ou.boxStartIndex:y.collisionBoxArray.length,zO=Ou?Ou.boxEndIndex:y.collisionBoxArray.length,pL=gu?gu.boxStartIndex:y.collisionBoxArray.length,IO=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,f3=function(IM,See){return IM&&IM.circleDiameter?Math.max(IM.circleDiameter,See):See};Hv=f3(lu,Hv),Hv=f3(du,Hv),Hv=f3(Ou,Hv),Hv=f3(gu,Hv);var vL=Hv>-1?1:0;vL&&(Hv*=Tl/So),y.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&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,Pf.right>=0?Pf.right:-1,Pf.center>=0?Pf.center:-1,Pf.left>=0?Pf.left:-1,Pf.vertical||-1,Rf,Df,yc,G1,H1,u3,g0,dL,zO,pL,IO,Dt,If,sc,uf,Ru,vL,0,qr,Tc,Qc,Hv)}function Ptt(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],me=oe.length-1;me>=0;me--)if(V.dist(oe[me])0)&&(me.value.kind!=="constant"||me.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,br=oe.get("symbol-sort-key");if(this.features=[],!(!Dt&&!Xt)){for(var qr=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,Oi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Rf=hu.sections;sc=0;xt--)me[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Dt=0;Dt0},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(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],me=[],Xe=0;Xe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],me=this.symbolInstances.get(oe);this.featureSortOrder.push(me.featureIndex),[me.rightJustifiedTextSymbolIndex,me.centerJustifiedTextSymbolIndex,me.leftJustifiedTextSymbolIndex].forEach(function(Xe,xt,Dt){Xe>=0&&Dt.indexOf(Xe)===xt&&z.addIndicesForPlacedSymbol(z.text,Xe)}),me.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,me.verticalPlacedTextSymbolIndex),me.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.placedIconSymbolIndex),me.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.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=EO;function Dtt(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var Ftt=new ci({"symbol-placement":new Be(Wi.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(Wi.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(Wi.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Nt(Wi.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(Wi.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(Wi.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(Wi.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(Wi.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(Wi.layout_symbol["icon-rotation-alignment"]),"icon-size":new Nt(Wi.layout_symbol["icon-size"]),"icon-text-fit":new Be(Wi.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(Wi.layout_symbol["icon-text-fit-padding"]),"icon-image":new Nt(Wi.layout_symbol["icon-image"]),"icon-rotate":new Nt(Wi.layout_symbol["icon-rotate"]),"icon-padding":new Be(Wi.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(Wi.layout_symbol["icon-keep-upright"]),"icon-offset":new Nt(Wi.layout_symbol["icon-offset"]),"icon-anchor":new Nt(Wi.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(Wi.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(Wi.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(Wi.layout_symbol["text-rotation-alignment"]),"text-field":new Nt(Wi.layout_symbol["text-field"]),"text-font":new Nt(Wi.layout_symbol["text-font"]),"text-size":new Nt(Wi.layout_symbol["text-size"]),"text-max-width":new Nt(Wi.layout_symbol["text-max-width"]),"text-line-height":new Be(Wi.layout_symbol["text-line-height"]),"text-letter-spacing":new Nt(Wi.layout_symbol["text-letter-spacing"]),"text-justify":new Nt(Wi.layout_symbol["text-justify"]),"text-radial-offset":new Nt(Wi.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(Wi.layout_symbol["text-variable-anchor"]),"text-anchor":new Nt(Wi.layout_symbol["text-anchor"]),"text-max-angle":new Be(Wi.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(Wi.layout_symbol["text-writing-mode"]),"text-rotate":new Nt(Wi.layout_symbol["text-rotate"]),"text-padding":new Be(Wi.layout_symbol["text-padding"]),"text-keep-upright":new Be(Wi.layout_symbol["text-keep-upright"]),"text-transform":new Nt(Wi.layout_symbol["text-transform"]),"text-offset":new Nt(Wi.layout_symbol["text-offset"]),"text-allow-overlap":new Be(Wi.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(Wi.layout_symbol["text-ignore-placement"]),"text-optional":new Be(Wi.layout_symbol["text-optional"])}),Btt=new ci({"icon-opacity":new Nt(Wi.paint_symbol["icon-opacity"]),"icon-color":new Nt(Wi.paint_symbol["icon-color"]),"icon-halo-color":new Nt(Wi.paint_symbol["icon-halo-color"]),"icon-halo-width":new Nt(Wi.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Nt(Wi.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(Wi.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(Wi.paint_symbol["icon-translate-anchor"]),"text-opacity":new Nt(Wi.paint_symbol["text-opacity"]),"text-color":new Nt(Wi.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new Nt(Wi.paint_symbol["text-halo-color"]),"text-halo-width":new Nt(Wi.paint_symbol["text-halo-width"]),"text-halo-blur":new Nt(Wi.paint_symbol["text-halo-blur"]),"text-translate":new Be(Wi.paint_symbol["text-translate"]),"text-translate-anchor":new Be(Wi.paint_symbol["text-translate-anchor"])}),kO={paint:Btt,layout:Ftt},o3=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};o3.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},o3.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},o3.prototype.outputDefined=function(){return!1},o3.prototype.serialize=function(){return null},Z("FormatSectionOverride",o3,{omit:["defaultValue"]});var Ott=function(y){function g(z){y.call(this,z,kO)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.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 oe=this.layout.get("text-writing-mode");if(oe){for(var me=[],Xe=0,xt=oe;Xe",targetMapId:$,sourceMapId:me.mapId})}}},s3.prototype.receive=function(g){var z=g.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 Le()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},s3.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},s3.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(st(z.error)):$(null,st(z.data)))}else{var oe=!1,me=ke(this.globalScope)?void 0:[],Xe=z.hasCallback?function(qr,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:qr?et(qr):null,data:et(Pr,me)},me)}:function(qr){oe=!0},xt=null,Dt=st(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Dt,Xe);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),br=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Dt.source);xt=br[Xt[1]](Dt,Xe)}else Xe(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},s3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Ytt(y,g,z){g=Math.pow(2,z)-g-1;var V=pee(y*256,g*256,z),$=pee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function pee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var me=g;return this.extend(yh.convert(me))}else{var Xe=g;return this.extend(Dc.convert(Xe))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.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(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,me=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(me=this._sw.lng>=V&&V>=this._ne.lng),oe&&me},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var vee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,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(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),me=vee*Math.acos(Math.min(oe,1));return me},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/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(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.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 mee=2*Math.PI*vee;function yee(y){return mee*Math.cos(y*Math.PI/180)}function gee(y){return(180+y)/360}function _ee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function xee(y,g){return y/yee(g)}function Ktt(y){return y*360-180}function LO(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function Jtt(y,g){return y*yee(LO(g))}function $tt(y){return 1/Math.cos(y*Math.PI/180)}var db=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};db.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new db(gee(V.lng),_ee(V.lat),xee(z,V.lat))},db.prototype.toLngLat=function(){return new Dc(Ktt(this.x),LO(this.y))},db.prototype.toAltitude=function(){return Jtt(this.z,this.y)},db.prototype.meterInMercatorCoordinateUnits=function(){return 1/mee*$tt(LO(this.y))};var pb=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=zM(0,g,g,z,V)};pb.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},pb.prototype.url=function(g,z){var V=Ytt(this.x,this.y,this.z),$=Qtt(this.z,this.x,this.y);return g[(this.x+this.y)%g.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)},pb.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*Tn,(g.y*z-this.y)*Tn)},pb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var bee=function(g,z){this.wrap=g,this.canonical=z,this.key=zM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new pb(V,+$,+oe),this.key=zM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?zM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):zM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)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(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=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+(g+1)},xg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},xg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},xg.prototype.getPixels=function(){return new Ih({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},xg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,me=V*this.dim,Xe=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:me=Xe-1;break;case 1:Xe=me+1;break}for(var xt=-z*this.dim,Dt=-V*this.dim,Xt=me;Xt=0&&br[3]>=0&&xt.insert(Xe,br[0],br[1],br[2],br[3])}},bg.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},bg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var me=g.params||{},Xe=Tn/g.tileSize/g.scale,xt=Me(me.filter),Dt=g.queryGeometry,Xt=g.queryPadding*Xe,br=Aee(Dt),qr=this.grid.query(br.minX-Xt,br.minY-Xt,br.maxX+Xt,br.maxY+Xt),Pr=Aee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return yv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),Oi=0,Wn=ai;Oi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ii,this.zoom,Wt);var bi=jr[xn.id]=xn.createBucket({index:Hr.bucketLayerIDs.length,layers:Ii,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:tn,sourceID:this.source});bi.populate(Yr,gi,this.tileID.canonical),Hr.bucketLayerIDs.push(Ii.map(function(ii){return ii.id}))}}}}var Xr,ct,tr,pr,gr=i.mapObject(gi.glyphDependencies,function(ii){return Object.keys(ii).map(Number)});Object.keys(gr).length?xr.send("getGlyphs",{uid:this.uid,stacks:gr},function(ii,Xi){Xr||(Xr=ii,ct=Xi,en.call(Nr))}):ct={};var Zr=Object.keys(gi.iconDependencies);Zr.length?xr.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ii,Xi){Xr||(Xr=ii,tr=Xi,en.call(Nr))}):tr={};var Ai=Object.keys(gi.patternDependencies);Ai.length?xr.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ii,Xi){Xr||(Xr=ii,pr=Xi,en.call(Nr))}):pr={},en.call(this);function en(){if(Xr)return Lr(Xr);if(ct&&tr&&pr){var ii=new f(ct),Xi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ct,ii.positions,tr,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,Wt),Mn.addFeatures(gi,this.tileID.canonical,Xi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Hr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ii.image,imageAtlas:Xi,glyphMap:this.returnDependencies?ct:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ii.positions:null})}}};function h(Rt,yt,Gt){for(var Wt=new i.EvaluationParameters(yt),xr=0,Lr=Rt;xr=0!=!!yt&&Rt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],Gt=0,Wt=this._feature.geometry;Gt>31}function Le(Rt,yt){for(var Gt=Rt.loadGeometry(),Wt=Rt.type,xr=0,Lr=0,Nr=Gt.length,Or=0;Or>1;ke(Rt,yt,Nr,Wt,xr,Lr%2),te(Rt,yt,Gt,Wt,Nr-1,Lr+1),te(Rt,yt,Gt,Nr+1,xr,Lr+1)}}function ke(Rt,yt,Gt,Wt,xr,Lr){for(;xr>Wt;){if(xr-Wt>600){var Nr=xr-Wt+1,Or=Gt-Wt+1,Hr=Math.log(Nr),jr=.5*Math.exp(2*Hr/3),gi=.5*Math.sqrt(Hr*jr*(Nr-jr)/Nr)*(Or-Nr/2<0?-1:1),ki=Math.max(Wt,Math.floor(Gt-Or*jr/Nr+gi)),Vi=Math.min(xr,Math.floor(Gt+(Nr-Or)*jr/Nr+gi));ke(Rt,yt,Gt,ki,Vi,Lr)}var ti=yt[2*Gt+Lr],tn=Wt,Yr=xr;for(Ee(Rt,yt,Wt,Gt),yt[2*xr+Lr]>ti&&Ee(Rt,yt,Wt,xr);tnti;)Yr--}yt[2*Wt+Lr]===ti?Ee(Rt,yt,Wt,Yr):(Yr++,Ee(Rt,yt,Yr,xr)),Yr<=Gt&&(Wt=Yr+1),Gt<=Yr&&(xr=Yr-1)}}function Ee(Rt,yt,Gt,Wt){Se(Rt,Gt,Wt),Se(yt,2*Gt,2*Wt),Se(yt,2*Gt+1,2*Wt+1)}function Se(Rt,yt,Gt){var Wt=Rt[yt];Rt[yt]=Rt[Gt],Rt[Gt]=Wt}function Ge(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=[0,Rt.length-1,0],Hr=[],jr,gi;Or.length;){var ki=Or.pop(),Vi=Or.pop(),ti=Or.pop();if(Vi-ti<=Nr){for(var tn=ti;tn<=Vi;tn++)jr=yt[2*tn],gi=yt[2*tn+1],jr>=Gt&&jr<=xr&&gi>=Wt&&gi<=Lr&&Hr.push(Rt[tn]);continue}var Yr=Math.floor((ti+Vi)/2);jr=yt[2*Yr],gi=yt[2*Yr+1],jr>=Gt&&jr<=xr&&gi>=Wt&&gi<=Lr&&Hr.push(Rt[Yr]);var oi=(ki+1)%2;(ki===0?Gt<=jr:Wt<=gi)&&(Or.push(ti),Or.push(Yr-1),Or.push(oi)),(ki===0?xr>=jr:Lr>=gi)&&(Or.push(Yr+1),Or.push(Vi),Or.push(oi))}return Hr}function De(Rt,yt,Gt,Wt,xr,Lr){for(var Nr=[0,Rt.length-1,0],Or=[],Hr=xr*xr;Nr.length;){var jr=Nr.pop(),gi=Nr.pop(),ki=Nr.pop();if(gi-ki<=Lr){for(var Vi=ki;Vi<=gi;Vi++)xe(yt[2*Vi],yt[2*Vi+1],Gt,Wt)<=Hr&&Or.push(Rt[Vi]);continue}var ti=Math.floor((ki+gi)/2),tn=yt[2*ti],Yr=yt[2*ti+1];xe(tn,Yr,Gt,Wt)<=Hr&&Or.push(Rt[ti]);var oi=(jr+1)%2;(jr===0?Gt-xr<=tn:Wt-xr<=Yr)&&(Nr.push(ki),Nr.push(ti-1),Nr.push(oi)),(jr===0?Gt+xr>=tn:Wt+xr>=Yr)&&(Nr.push(ti+1),Nr.push(gi),Nr.push(oi))}return Or}function xe(Rt,yt,Gt,Wt){var xr=Rt-Gt,Lr=yt-Wt;return xr*xr+Lr*Lr}var Ne=function(Rt){return Rt[0]},ce=function(Rt){return Rt[1]},je=function(yt,Gt,Wt,xr,Lr){Gt===void 0&&(Gt=Ne),Wt===void 0&&(Wt=ce),xr===void 0&&(xr=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=xr,this.points=yt;for(var Nr=yt.length<65536?Uint16Array:Uint32Array,Or=this.ids=new Nr(yt.length),Hr=this.coords=new Lr(yt.length*2),jr=0;jr=xr;gi--){var ki=+Date.now();Hr=this._cluster(Hr,gi),this.trees[gi]=new je(Hr,Ae,ot,Nr,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",gi,Hr.length,+Date.now()-ki)}return Wt&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,Gt){var Wt=((yt[0]+180)%360+360)%360-180,xr=Math.max(-90,Math.min(90,yt[1])),Lr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Or=this.getClusters([Wt,xr,180,Nr],Gt),Hr=this.getClusters([-180,xr,Lr,Nr],Gt);return Or.concat(Hr)}for(var jr=this.trees[this._limitZoom(Gt)],gi=jr.range(wt(Wt),Mt(Nr),wt(Lr),Mt(xr)),ki=[],Vi=0,ti=gi;ViGt&&(Yr+=nn.numPoints||1)}if(Yr>=Hr){for(var Ri=ki.x*tn,Ii=ki.y*tn,xn=Or&&tn>1?this._map(ki,!0):null,bi=(gi<<5)+(Gt+1)+this.points.length,Xr=0,ct=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,Gt){if(yt.numPoints)return Gt?Et({},yt.properties):yt.properties;var Wt=this.points[yt.index].properties,xr=this.options.map(Wt);return Gt&&xr===Wt?Et({},xr):xr};function qt(Rt,yt,Gt,Wt,xr){return{x:Rt,y:yt,zoom:1/0,id:Gt,parentId:-1,numPoints:Wt,properties:xr}}function at(Rt,yt){var Gt=Rt.geometry.coordinates,Wt=Gt[0],xr=Gt[1];return{x:wt(Wt),y:Mt(xr),zoom:1/0,index:yt,parentId:-1}}function Ke(Rt){return{type:"Feature",id:Rt.id,properties:Ct(Rt),geometry:{type:"Point",coordinates:[Bt(Rt.x),Zt(Rt.y)]}}}function Ct(Rt){var yt=Rt.numPoints,Gt=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return Et(Et({},Rt.properties),{cluster:!0,cluster_id:Rt.id,point_count:yt,point_count_abbreviated:Gt})}function wt(Rt){return Rt/360+.5}function Mt(Rt){var yt=Math.sin(Rt*Math.PI/180),Gt=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return Gt<0?0:Gt>1?1:Gt}function Bt(Rt){return(Rt-.5)*360}function Zt(Rt){var yt=(180-Rt*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function Et(Rt,yt){for(var Gt in yt)Rt[Gt]=yt[Gt];return Rt}function Ae(Rt){return Rt.x}function ot(Rt){return Rt.y}function At(Rt,yt,Gt,Wt){for(var xr=Wt,Lr=Gt-yt>>1,Nr=Gt-yt,Or,Hr=Rt[yt],jr=Rt[yt+1],gi=Rt[Gt],ki=Rt[Gt+1],Vi=yt+3;Vixr)Or=Vi,xr=ti;else if(ti===xr){var tn=Math.abs(Vi-Lr);tnWt&&(Or-yt>3&&At(Rt,yt,Or,Wt),Rt[Or+2]=xr,Gt-Or>3&&At(Rt,Or,Gt,Wt))}function vt(Rt,yt,Gt,Wt,xr,Lr){var Nr=xr-Gt,Or=Lr-Wt;if(Nr!==0||Or!==0){var Hr=((Rt-Gt)*Nr+(yt-Wt)*Or)/(Nr*Nr+Or*Or);Hr>1?(Gt=xr,Wt=Lr):Hr>0&&(Gt+=Nr*Hr,Wt+=Or*Hr)}return Nr=Rt-Gt,Or=yt-Wt,Nr*Nr+Or*Or}function Je(Rt,yt,Gt,Wt){var xr={id:typeof Rt=="undefined"?null:Rt,type:yt,geometry:Gt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return He(xr),xr}function He(Rt){var yt=Rt.geometry,Gt=Rt.type;if(Gt==="Point"||Gt==="MultiPoint"||Gt==="LineString")nt(Rt,yt);else if(Gt==="Polygon"||Gt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Nr+=(xr*jr-Hr*Lr)/2:Nr+=Math.sqrt(Math.pow(Hr-xr,2)+Math.pow(jr-Lr,2))),xr=Hr,Lr=jr}var gi=yt.length-3;yt[2]=1,At(yt,0,gi,Gt),yt[gi+2]=1,yt.size=Math.abs(Nr),yt.start=0,yt.end=yt.size}function _r(Rt,yt,Gt,Wt){for(var xr=0;xr1?1:Gt}function Re(Rt,yt,Gt,Wt,xr,Lr,Nr,Or){if(Gt/=yt,Wt/=yt,Lr>=Gt&&Nr=Wt)return null;for(var Hr=[],jr=0;jr=Gt&&tn=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")be(ki,Yr,Gt,Wt,xr);else if(Vi==="LineString")Oe(ki,Yr,Gt,Wt,xr,!1,Or.lineMetrics);else if(Vi==="MultiLineString")Fe(ki,Yr,Gt,Wt,xr,!1);else if(Vi==="Polygon")Fe(ki,Yr,Gt,Wt,xr,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Gt&&Nr<=Wt&&(yt.push(Rt[Lr]),yt.push(Rt[Lr+1]),yt.push(Rt[Lr+2]))}}function Oe(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=Ie(Rt),Hr=xr===0?ye:fe,jr=Rt.start,gi,ki,Vi=0;ViGt&&(ki=Hr(Or,ti,tn,oi,Fi,Gt),Nr&&(Or.start=jr+gi*ki)):an>Wt?nn=Gt&&(ki=Hr(Or,ti,tn,oi,Fi,Gt),Ri=!0),nn>Wt&&an<=Wt&&(ki=Hr(Or,ti,tn,oi,Fi,Wt),Ri=!0),!Lr&&Ri&&(Nr&&(Or.end=jr+gi*ki),yt.push(Or),Or=Ie(Rt)),Nr&&(jr+=gi)}var Ii=Rt.length-3;ti=Rt[Ii],tn=Rt[Ii+1],Yr=Rt[Ii+2],an=xr===0?ti:tn,an>=Gt&&an<=Wt&&ft(Or,ti,tn,Yr),Ii=Or.length-3,Lr&&Ii>=3&&(Or[Ii]!==Or[0]||Or[Ii+1]!==Or[1])&&ft(Or,Or[0],Or[1],Or[2]),Or.length&&yt.push(Or)}function Ie(Rt){var yt=[];return yt.size=Rt.size,yt.start=Rt.start,yt.end=Rt.end,yt}function Fe(Rt,yt,Gt,Wt,xr,Lr){for(var Nr=0;NrNr.maxX&&(Nr.maxX=gi),ki>Nr.maxY&&(Nr.maxY=ki)}return Nr}function Br(Rt,yt,Gt,Wt){var xr=yt.geometry,Lr=yt.type,Nr=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Or=0;Or0&&yt.size<(xr?Nr:Wt)){Gt.numPoints+=yt.length/3;return}for(var Or=[],Hr=0;HrNr)&&(Gt.numSimplified++,Or.push(yt[Hr]),Or.push(yt[Hr+1])),Gt.numPoints++;xr&&Rr(Or,Lr),Rt.push(Or)}function Rr(Rt,yt){for(var Gt=0,Wt=0,xr=Rt.length,Lr=xr-2;Wt0===yt)for(Wt=0,xr=Rt.length;Wt24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=tt(Rt,yt);this.tiles={},this.tileCoords=[],Gt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=pe(Wt,yt),Wt.length&&this.splitTile(Wt,0,0,0),Gt&&(Wt.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)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Rt,yt,Gt,Wt,xr,Lr,Nr){for(var Or=[Rt,yt,Gt,Wt],Hr=this.options,jr=Hr.debug;Or.length;){Wt=Or.pop(),Gt=Or.pop(),yt=Or.pop(),Rt=Or.pop();var gi=1<1&&console.time("creation"),Vi=this.tiles[ki]=Gr(Rt,yt,Gt,Wt,Hr),this.tileCoords.push({z:yt,x:Gt,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,Gt,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+yt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Rt,xr){if(yt===Hr.maxZoom||yt===xr)continue;var tn=1<1&&console.time("clipping");var Yr=.5*Hr.buffer/Hr.extent,oi=.5-Yr,Fi=.5+Yr,an=1+Yr,nn,Ri,Ii,xn,bi,Xr;nn=Ri=Ii=xn=null,bi=Re(Rt,gi,Gt-Yr,Gt+Fi,0,Vi.minX,Vi.maxX,Hr),Xr=Re(Rt,gi,Gt+oi,Gt+an,0,Vi.minX,Vi.maxX,Hr),Rt=null,bi&&(nn=Re(bi,gi,Wt-Yr,Wt+Fi,1,Vi.minY,Vi.maxY,Hr),Ri=Re(bi,gi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Hr),bi=null),Xr&&(Ii=Re(Xr,gi,Wt-Yr,Wt+Fi,1,Vi.minY,Vi.maxY,Hr),xn=Re(Xr,gi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Hr),Xr=null),jr>1&&console.timeEnd("clipping"),Or.push(nn||[],yt+1,Gt*2,Wt*2),Or.push(Ri||[],yt+1,Gt*2,Wt*2+1),Or.push(Ii||[],yt+1,Gt*2+1,Wt*2),Or.push(xn||[],yt+1,Gt*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Rt,yt,Gt){var Wt=this.options,xr=Wt.extent,Lr=Wt.debug;if(Rt<0||Rt>24)return null;var Nr=1<1&&console.log("drilling down to z%d-%d-%d",Rt,yt,Gt);for(var Hr=Rt,jr=yt,gi=Gt,ki;!ki&&Hr>0;)Hr--,jr=Math.floor(jr/2),gi=Math.floor(gi/2),ki=this.tiles[ni(Hr,jr,gi)];return!ki||!ki.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Hr,jr,gi),Lr>1&&console.time("drilling down"),this.splitTile(ki.source,Hr,jr,gi,Rt,yt,Gt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Or]?zt(this.tiles[Or],xr):null)};function ni(Rt,yt,Gt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,R,J){var O,K,_e,ne=i.browser.devicePixelRatio>1?"@2x":"",Ce=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Mr){Ce=null,_e||(_e=dr,O=Mr,kt())}),Ye=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Mr){Ye=null,_e||(_e=dr,K=Mr,kt())});function kt(){if(_e)J(_e);else if(O&&K){var dr=i.browser.getImageData(K),Mr={};for(var lr in O){var $e=O[lr],ht=$e.width,bt=$e.height,Kt=$e.x,sr=$e.y,Qt=$e.sdf,ur=$e.pixelRatio,er=$e.stretchX,Ot=$e.stretchY,Jt=$e.content,Lt=new i.RGBAImage({width:ht,height:bt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:bt}),Mr[lr]={data:Lt,pixelRatio:ur,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Mr)}}return{cancel:function(){Ce&&(Ce.cancel(),Ce=null),Ye&&(Ye.cancel(),Ye=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(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,_e=this.requestors;K<_e.length;K+=1){var ne=_e[K],Ce=ne.ids,Ye=ne.callback;this._notify(Ce,Ye)}this.requestors=[]}},R.prototype.getImage=function(O){return this.images[O]},R.prototype.addImage=function(O,K){this._validate(O,K)&&(this.images[O]=K)},R.prototype._validate=function(O,K){var _e=!0;return this._validateStretch(K.stretchX,K.data&&K.data.width)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchX" value'))),_e=!1),this._validateStretch(K.stretchY,K.data&&K.data.height)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchY" value'))),_e=!1),this._validateContent(K.content,K)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "content" value'))),_e=!1),_e},R.prototype._validateStretch=function(O,K){if(!O)return!0;for(var _e=0,ne=0,Ce=O;ne=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),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if($e.ranges[bt]){dr(null,{stack:Mr,id:lr,glyph:ht});return}var Kt=$e.requests[bt];Kt||(Kt=$e.requests[bt]=[],P.loadGlyphRange(Mr,bt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var ur in Qt)O._doesCharSupportLocalGlyph(+ur)||($e.glyphs[+ur]=Qt[+ur]);$e.ranges[bt]=!0}for(var er=0,Ot=Kt;er1&&(kt=R[++Ye]);var Mr=Math.abs(dr-kt.left),lr=Math.abs(dr-kt.right),$e=Math.min(Mr,lr),ht=void 0,bt=_e/O*(K+1);if(kt.isDash){var Kt=K-Math.abs(bt);ht=Math.sqrt($e*$e+Kt*Kt)}else ht=K-Math.sqrt($e*$e+bt*bt);this.data[Ce+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var _e=R[0],ne=R[R.length-1];_e.isDash===ne.isDash&&(_e.left=ne.left-this.width,ne.right=_e.right+this.width);for(var Ce=this.width*this.nextRow,Ye=0,kt=R[Ye],dr=0;dr1&&(kt=R[++Ye]);var Mr=Math.abs(dr-kt.left),lr=Math.abs(dr-kt.right),$e=Math.min(Mr,lr),ht=kt.isDash?$e:-$e;this.data[Ce+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,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 _e=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Ce,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,kt,K.z,Ye,K.y-1).key]={backfilled:!1}),K.y+1<_e&&(dr[new i.OverscaledTileID(O.overscaledZ,Ce,K.z,ne,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,kt,K.z,Ye,K.y+1).key]={backfilled:!1}),dr},R.prototype.unloadTile=function(O){O.demTexture&&this.map.painter.saveTileTexture(O.demTexture),O.fbo&&(O.fbo.destroy(),delete O.fbo),O.dem&&delete O.dem,delete O.neighboringTiles,O.state="unloaded",O.actor&&O.actor.send("removeDEMTile",{uid:O.uid,source:this.id})},R}(re),ge=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=K.getActor(),this.setEventedParent(_e),this._data=O.data,this._options=i.extend({},O),this._collectResourceTiming=O.collectResourceTiming,this._resourceTiming=[],O.maxzoom!==void 0&&(this.maxzoom=O.maxzoom),O.type&&(this.type=O.type),O.attribution&&(this.attribution=O.attribution),this.promoteId=O.promoteId;var ne=i.EXTENT/this.tileSize;this.workerOptions=i.extend({source:this.id,cluster:O.cluster||!1,geojsonVtOptions:{buffer:(O.buffer!==void 0?O.buffer:128)*ne,tolerance:(O.tolerance!==void 0?O.tolerance:.375)*ne,extent:i.EXTENT,maxZoom:this.maxzoom,lineMetrics:O.lineMetrics||!1,generateId:O.generateId||!1},superclusterOptions:{maxZoom:O.clusterMaxZoom!==void 0?Math.min(O.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,O.clusterMinPoints||2),extent:i.EXTENT,radius:(O.clusterRadius||50)*ne,log:!1,generateId:O.generateId||!1},clusterProperties:O.clusterProperties,filter:O.filter},O.workerOptions)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){var O=this;this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(K){if(K){O.fire(new i.ErrorEvent(K));return}var _e={dataType:"source",sourceDataType:"metadata"};O._collectResourceTiming&&O._resourceTiming&&O._resourceTiming.length>0&&(_e.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",_e))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(_e){if(_e){K.fire(new i.ErrorEvent(_e));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(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,_e,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:_e},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var _e=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(_e.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),_e.request.collectResourceTiming=this._collectResourceTiming):_e.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",_e,function(Ce,Ye){K._removed||Ye&&Ye.abandoned||(K._loaded=!0,Ye&&Ye.resourceTiming&&Ye.resourceTiming[K.id]&&(K._resourceTiming=Ye.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:_e.source},null),O(Ce))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var _e=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Ce={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,Ce,function(Ye,kt){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ye?K(Ye):(O.loadVectorData(kt,_e.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.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),ze=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Le=function(Y){function R(J,O,K,_e){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(_e),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var _e=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,Ce){_e._loaded=!0,ne?_e.fire(new i.ErrorEvent(ne)):Ce&&(_e.image=Ce,O&&(_e.coordinates=O),K&&K(),_e._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.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)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var _e=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(_e),this.minzoom=this.maxzoom=this.tileID.z;var ne=_e.map(function(Ce){return K.tileID.getTilePoint(Ce)._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 O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,ze.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 _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.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))},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,O=-1/0,K=-1/0,_e=0,ne=Y;_eK.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}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,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 O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,ze.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 _e in this.tiles){var ne=this.tiles[_e];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}(Le),ke=function(Y){function R(J,O,K,_e){Y.call(this,J,O,K,_e),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(Ce){return typeof Ce!="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&&(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(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.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,_e=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,ze.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,_e.RGBA,{premultiply:!0});for(var ne in this.tiles){var Ce=this.tiles[ne];Ce.state!=="loaded"&&(Ce.state="loaded",Ce.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 O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Ce=this._getAndRemoveByKey(this.order[0]);Ce&&this.onRemove(Ce)}return this},at.prototype.has=function(R){return R.wrapped().key in this.data},at.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},at.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},at.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},at.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},at.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),_e=this.data[O][K];return this.data[O].splice(K,1),_e.timeout&&clearTimeout(_e.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(_e.value),this.order.splice(this.order.indexOf(O),1),this},at.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},at.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,_e=this.data[O];K<_e.length;K+=1){var ne=_e[K];R(ne.value)||J.push(ne)}for(var Ce=0,Ye=J;Ce1||(Math.abs(Mr)>1&&(Math.abs(Mr+$e)===1?Mr+=$e:Math.abs(Mr-$e)===1&&(Mr-=$e)),!(!dr.dem||!kt.dem)&&(kt.dem.backfillBorder(dr.dem,Mr,lr),kt.neighboringTiles&&kt.neighboringTiles[ht]&&(kt.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,_e,ne){for(var Ce in this._tiles){var Ye=this._tiles[Ce];if(!(ne[Ce]||!Ye.hasData()||Ye.tileID.overscaledZ<=K||Ye.tileID.overscaledZ>_e)){for(var kt=Ye.tileID;Ye&&Ye.tileID.overscaledZ>K+1;){var dr=Ye.tileID.scaledTo(Ye.tileID.overscaledZ-1);Ye=this._tiles[dr.key],Ye&&Ye.hasData()&&(kt=dr)}for(var Mr=kt;Mr.overscaledZ>K;)if(Mr=Mr.scaledTo(Mr.overscaledZ-1),O[Mr.key]){ne[kt.key]=kt;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var _e=this._loadedParentTiles[O.key];return _e&&_e.tileID.overscaledZ>=K?_e:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Ce=O.scaledTo(ne),Ye=this._getLoadedTile(Ce);if(Ye)return Ye}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var _e=this._cache.getByKey(O.wrapped().key);return _e},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,_e=Math.ceil(O.height/this._source.tileSize)+1,ne=K*_e,Ce=5,Ye=Math.floor(ne*Ce),kt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ye):Ye;this._cache.setMaxSize(kt)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,_e=O-K,ne=_e/360,Ce=Math.round(ne);if(this._prevLng=O,Ce){var Ye={};for(var kt in this._tiles){var dr=this._tiles[kt];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Ce),Ye[dr.tileID.key]=dr}this._tiles=Ye;for(var Mr in this._timers)clearTimeout(this._timers[Mr]),delete this._timers[Mr];for(var lr in this._tiles){var $e=this._tiles[lr];this._setTileReloadTimer(lr,$e)}}},R.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 _e;this.used?this._source.tileID?_e=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(hi){return new i.OverscaledTileID(hi.canonical.z,hi.wrap,hi.canonical.z,hi.canonical.x,hi.canonical.y)}):(_e=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&&(_e=_e.filter(function(hi){return K._source.hasTile(hi)}))):_e=[];var ne=O.coveringZoomLevel(this._source),Ce=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ye=Math.max(ne+R.maxUnderzooming,this._source.minzoom),kt=this._updateRetainedTiles(_e,ne);if(Hr(this._source.type)){for(var dr={},Mr={},lr=Object.keys(kt),$e=0,ht=lr;$ethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],ur=this.getTile(Qt);if(ur&&ur.hasData()){_e[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(_e[er[0].key]&&_e[er[1].key]&&_e[er[2].key]&&_e[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Ce;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(_e[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return _e},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],_e=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){_e=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Ce=ne.scaledTo(ne.overscaledZ-1);if(_e=this._getLoadedTile(Ce),_e)break;ne=Ce}for(var Ye=0,kt=K;Ye0)&&(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 O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,_e){var ne=this,Ce=[],Ye=this.transform;if(!Ye)return Ce;for(var kt=_e?Ye.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ye.pointCoordinate(Jt)}),Mr=kt.map(function(Jt){return Ye.pointCoordinate(Jt)}),lr=this.getIds(),$e=1/0,ht=1/0,bt=-1/0,Kt=-1/0,sr=0,Qt=Mr;sr=0&&Cn[1].y+hi>=0){var Yi=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Mr.map(function(Xa){return Tr.getTilePoint(Xa)});Ce.push({tile:Lt,tileID:Tr,queryGeometry:Yi,cameraQueryGeometry:yn,scale:Ur})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.updateState(O,K,_e)},R.prototype.removeFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,_e)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,_e){var ne=this._tiles[O];ne&&ne.setDependencies(K,_e)},R.prototype.reloadTilesForDependencies=function(O,K){for(var _e in this._tiles){var ne=this._tiles[_e];ne.hasDependency(O,K)&&this._reloadTile(_e,"reloading")}this._cache.filter(function(Ce){return!Ce.hasDependency(O,K)})},R}(i.Evented);Nr.maxOverzooming=10,Nr.maxUnderzooming=3;function Or(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Hr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var gi="mapboxgl_preloaded_worker_pool",ki=function(){this.active={}};ki.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Ce:0;return this.points[_e].mult(1-Ye).add(this.points[J].mult(Ye))};var ii=function(R,J,O){var K=this.boxCells=[],_e=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return _e?!1:[];var Ce=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(_e)return!0;for(var Ye=0;Ye0:Ce}},ii.prototype._queryCircle=function(R,J,O,K,_e){var ne=R-O,Ce=R+O,Ye=J-O,kt=J+O;if(Ce<0||ne>this.width||kt<0||Ye>this.height)return K?!1:[];var dr=[],Mr={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ye,Ce,kt,this._queryCellCircle,dr,Mr,_e),K?dr.length>0:dr},ii.prototype.query=function(R,J,O,K,_e){return this._query(R,J,O,K,!1,_e)},ii.prototype.hitTest=function(R,J,O,K,_e){return this._query(R,J,O,K,!0,_e)},ii.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ii.prototype._queryCell=function(R,J,O,K,_e,ne,Ce,Ye){var kt=Ce.seenUids,dr=this.boxCells[_e];if(dr!==null)for(var Mr=this.bboxes,lr=0,$e=dr;lr<$e.length;lr+=1){var ht=$e[lr];if(!kt.box[ht]){kt.box[ht]=!0;var bt=ht*4;if(R<=Mr[bt+2]&&J<=Mr[bt+3]&&O>=Mr[bt+0]&&K>=Mr[bt+1]&&(!Ye||Ye(this.boxKeys[ht]))){if(Ce.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Mr[bt],y1:Mr[bt+1],x2:Mr[bt+2],y2:Mr[bt+3]})}}}var Kt=this.circleCells[_e];if(Kt!==null)for(var sr=this.circles,Qt=0,ur=Kt;QtCe*Ce+Ye*Ye},ii.prototype._circleAndRectCollide=function(R,J,O,K,_e,ne,Ce){var Ye=(ne-K)/2,kt=Math.abs(R-(K+Ye));if(kt>Ye+O)return!1;var dr=(Ce-_e)/2,Mr=Math.abs(J-(_e+dr));if(Mr>dr+O)return!1;if(kt<=Ye||Mr<=dr)return!0;var lr=kt-Ye,$e=Mr-dr;return lr*lr+$e*$e<=O*O};function Xi(Y,R,J,O,K){var _e=i.create();return R?(i.scale(_e,_e,[1/K,1/K,1]),J||i.rotateZ(_e,_e,O.angle)):i.multiply(_e,O.labelPlaneMatrix,Y),_e}function aa(Y,R,J,O,K){if(R){var _e=i.clone(Y);return i.scale(_e,_e,[K,K,1]),J||i.rotateZ(_e,_e,-O.angle),_e}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,_e,ne,Ce){var Ye=O?Y.textSizeData:Y.iconSizeData,kt=i.evaluateSizeForZoom(Ye,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Mr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Mr.clear();for(var lr=Y.lineVertexArray,$e=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,bt=!1,Kt=0;Kt<$e.length;Kt++){var sr=$e.get(Kt);if(sr.hidden||sr.writingMode===i.WritingMode.vertical&&!bt){fa(sr.numGlyphs,Mr);continue}bt=!1;var Qt=[sr.anchorX,sr.anchorY,0,1];if(i.transformMat4(Qt,Qt,R),!Ga(Qt,dr)){fa(sr.numGlyphs,Mr);continue}var ur=Qt[3],er=Un(J.transform.cameraToCenterDistance,ur),Ot=i.evaluateSizeForFeature(Ye,kt,sr),Jt=ne?Ot/er:Ot*er,Lt=new i.Point(sr.anchorX,sr.anchorY),Tr=Mn(Lt,K).point,Ur={},hi=so(sr,Jt,!1,Ce,R,K,_e,Y.glyphOffsetArray,lr,Mr,Tr,Lt,Ur,ht);bt=hi.useVertical,(hi.notEnoughRoom||bt||hi.needsFlipping&&so(sr,Jt,!0,Ce,R,K,_e,Y.glyphOffsetArray,lr,Mr,Tr,Lt,Ur,ht).notEnoughRoom)&&fa(sr.numGlyphs,Mr)}O?Y.text.dynamicLayoutVertexBuffer.updateData(Mr):Y.icon.dynamicLayoutVertexBuffer.updateData(Mr)}function oa(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr){var Mr=Ce.glyphStartIndex+Ce.numGlyphs,lr=Ce.lineStartIndex,$e=Ce.lineStartIndex+Ce.lineLength,ht=R.getoffsetX(Ce.glyphStartIndex),bt=R.getoffsetX(Mr-1),Kt=Ia(Y*ht,J,O,K,_e,ne,Ce.segment,lr,$e,Ye,kt,dr);if(!Kt)return null;var sr=Ia(Y*bt,J,O,K,_e,ne,Ce.segment,lr,$e,Ye,kt,dr);return sr?{first:Kt,last:sr}:null}function ka(Y,R,J,O){if(Y===i.WritingMode.horizontal){var K=Math.abs(J.y-R.y),_e=Math.abs(J.x-R.x)*O;if(K>_e)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr,Mr,lr,$e){var ht=R/24,bt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,ur=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Ce,bt,Kt,J,dr,Mr,Y,Ye,_e,lr);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,$e);if(Tr)return Tr}sr=[Ot.first];for(var Ur=Y.glyphStartIndex+1;Ur0?yn.point:Kr(Mr,Yi,hi,1,K),ca=ka(Y.writingMode,hi,Xa,$e);if(ca)return ca}var Tn=Ia(ht*Ce.getoffsetX(Y.glyphStartIndex),bt,Kt,J,dr,Mr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ye,_e,lr);if(!Tn)return{notEnoughRoom:!0};sr=[Tn]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&($e*=-1,ht=Math.PI),$e<0&&(ht+=Math.PI);for(var bt=$e>0?Ce+ne:Ce+ne+1,Kt=K,sr=K,Qt=0,ur=0,er=Math.abs(lr),Ot=[];Qt+ur<=er;){if(bt+=$e,bt=Ye)return null;if(sr=Kt,Ot.push(Kt),Kt=Mr[bt],Kt===void 0){var Jt=new i.Point(kt.getx(bt),kt.gety(bt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Mr[bt]=Lt.point;else{var Tr=bt-$e,Ur=Qt===0?_e:new i.Point(kt.getx(Tr),kt.gety(Tr));Kt=Kr(Ur,Jt,sr,er-Qt+1,dr)}}Qt+=ur,ur=sr.dist(Kt)}var hi=(er-Qt)/ur,Cn=Kt.sub(sr),Yi=Cn.mult(hi)._add(sr);Yi._add(Cn._unit()._perp()._mult(J*$e));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Yi),{point:Yi,angle:yn,path:Ot}}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 Vf=0,wd=Fu;Vf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(er=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:_e,prevAnchor:er},this.markUsedJustification($e,R,lr,ht),$e.allowVerticalPlacement&&(this.markUsedOrientation($e,ht,lr),this.placedOrientations[lr.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,_e=R.parameters,ne=_e.bucket,Ce=_e.layout,Ye=_e.posMatrix,kt=_e.textLabelPlaneMatrix,dr=_e.labelToScreenMatrix,Mr=_e.textPixelRatio,lr=_e.holdingForFade,$e=_e.collisionBoxArray,ht=_e.partiallyEvaluatedTextSize,bt=_e.collisionGroup,Kt=Ce.get("text-optional"),sr=Ce.get("icon-optional"),Qt=Ce.get("text-allow-overlap"),ur=Ce.get("icon-allow-overlap"),er=Ce.get("text-rotation-alignment")==="map",Ot=Ce.get("text-pitch-alignment")==="map",Jt=Ce.get("icon-text-fit")!=="none",Lt=Ce.get("symbol-z-order")==="viewport-y",Tr=Qt&&(ur||!ne.hasIconData()||sr),Ur=ur&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&$e&&ne.deserializeCollisionBoxes($e);var hi=function(Tn,Pn){if(!J[Tn.crossTileID]){if(lr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=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,pg=ne.writingModes;Ed0&&(Gd=Gd.filter(function(wc){return wc!==Md.anchor}),Gd.unshift(Md.anchor))}var Pp=function(wc,jf,Ed){for(var pg=wc.x2-wc.x1,L1=wc.y2-wc.y1,ic=Tn.textBoxScale,Yx=Jt&&!ur?jf:null,ly={box:[],offscreen:!1},Bw=Qt?Gd.length*2:Gd.length,Ip=0;Ip=Gd.length,Kx=K.attemptAnchorPlacement(uy,wc,pg,L1,ic,er,Ot,Mr,Ye,bt,Ow,Tn,ne,Ed,Yx);if(Kx&&(ly=Kx.placedGlyphBoxes,ly&&ly.box&&ly.box.length)){Nn=!0,ru=Kx.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 cg=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,cg))}}else{var mv=function(wc,jf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Mr,Ye,bt.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,ht,vh),hg=Ce.get("text-padding"),Jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,pm,Ye,kt,dr,O,Ot,bt.predicate,Jh,hg),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ay=function(wc){var jf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(jf,ur,Mr,Ye,bt.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=Kt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,C1=sr||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,Ce.get("text-ignore-placement"),ne.bucketInstanceId,wd,bt.ID):K.collisionIndex.insertCollisionBox(vu.box,Ce.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID)),xa&&Ju&&K.collisionIndex.insertCollisionBox(Ju.box,Ce.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,bt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Ce.get("text-ignore-placement"),ne.bucketInstanceId,Vf,bt.ID),O)){var dg=ne.bucketInstanceId,oy=K.collisionCircleArrays[dg];oy===void 0&&(oy=K.collisionCircleArrays[dg]=new mn);for(var sy=0;sy=0;--Yi){var yn=Cn[Yi];hi(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,_e=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Ce=0,Ye=ne;Ce0||Ot>0,hi=ur.numIconVertices>0,Cn=K.placedOrientations[ur.crossTileID],Yi=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Ur){var Xa=Qo(Tr.text),ca=Yi?Hi:Xa;ht(R.text,er,ca);var Tn=yn?Hi:Xa;ht(R.text,Ot,Tn);var Pn=Tr.text.isHidden();[ur.rightJustifiedTextSymbolIndex,ur.centerJustifiedTextSymbolIndex,ur.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Yi?1:0)}),ur.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ur.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ur.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ur,Cn);var xa=K.placedOrientations[ur.crossTileID];xa&&(K.markUsedJustification(R,"left",ur,xa),K.markUsedOrientation(R,xa,ur))}if(hi){var Zo=Qo(Tr.icon),ru=!(lr&&ur.verticalPlacedIconSymbolIndex&&Yi);if(ur.placedIconSymbolIndex>=0){var yu=ru?Zo:Hi;ht(R.icon,ur.numIconVertices,yu),R.icon.placedSymbolArray.get(ur.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(ur.verticalPlacedIconSymbolIndex>=0){var Fu=ru?Hi:Zo;ht(R.icon,ur.numVerticalIconVertices,Fu),R.icon.placedSymbolArray.get(ur.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var Ju=!0;if(kt){var Vf=K.variableOffsets[Jt];Vf?(zu=ws(Vf.anchor,Vf.width,Vf.height,Vf.textOffset,Vf.textBoxScale),dr&&zu._rotate(Mr?K.transform.angle:-K.transform.angle)):Ju=!1}vu.textBox&&Wi(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||Yi,zu.x,zu.y),vu.verticalTextBox&&Wi(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,lr?zu.x:0,lr?zu.y:0),vu.verticalIconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,lr?zu.x:0,lr?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function Wi(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||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),Ba=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*Ba+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,O,K,_e){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Ce=R[this._currentPlacementIndex],Ye=J[Ce],kt=this.placement.collisionIndex.transform.zoom;if(Ye.type==="symbol"&&(!Ye.minzoom||Ye.minzoom<=kt)&&(!Ye.maxzoom||Ye.maxzoom>kt)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ye));var dr=this._inProgressLayer.continuePlacement(O[Ye.source],this.placement,this._showCollisionBoxes,Ye,ne);if(dr)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,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var kt in Ye){var dr=Ye[kt];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Mr=R.scaledTo(Number(Ce)),lr=Ye[Mr.key];lr&&lr.findMatches(J.symbolInstances,R,ne)}}for(var $e=0;$e0)throw new Error("Unimplemented: "+ne.map(function(Ce){return Ce.command}).join(", ")+".");return _e.forEach(function(Ce){Ce.command!=="setTransition"&&K[Ce.command].apply(K,Ce.args)}),this.stylesheet=O,!0},R.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)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.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)},R.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"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,_e){var ne=this;if(_e===void 0&&(_e={}),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 Ce=["vector","raster","geojson","video","image"],Ye=Ce.indexOf(K.type)>=0;if(!(Ye&&this._validate(i.validateStyle.source,"sources."+O,K,null,_e))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var kt=this.sourceCaches[O]=new Nr(O,K,this.dispatcher);kt.style=this,kt.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:kt.serialize(),sourceId:O}}),kt.onAdd(this.map),this._changed=!0}},R.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 _e=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],_e.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),_e.setEventedParent(null),_e.clearTiles(),_e.onRemove&&_e.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var _e=this.sourceCaches[O].getSource();_e.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,_e){_e===void 0&&(_e={}),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 Ce;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Ce=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},_e))return;Ce=i.createStyleLayer(O),this._validateLayer(Ce),Ce.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Ce.id]=Ce.serialize()}var Ye=K?this._order.indexOf(K):this._order.length;if(K&&Ye===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ye,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Ce,this._removedLayers[ne]&&Ce.source&&Ce.type!=="custom"){var kt=this._removedLayers[ne];delete this._removedLayers[ne],kt.type!==Ce.type?this._updatedSources[Ce.source]="clear":(this._updatedSources[Ce.source]="reload",this.sourceCaches[Ce.source].pause())}this._updateLayer(Ce),Ce.onAdd&&Ce.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var _e=this._layers[O];if(!_e){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 Ce=K?this._order.indexOf(K):this._order.length;if(K&&Ce===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Ce,0,O),this._layerOrderChanged=!0}},R.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 _e=this._order.indexOf(O);this._order.splice(_e,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)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,_e){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===_e||(K!=null&&(ne.minzoom=K),_e!=null&&(ne.maxzoom=_e),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,_e){_e===void 0&&(_e={}),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,_e)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ce=this.getLayer(O);if(!Ce){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(Ce.getLayoutProperty(K),_e)||(Ce.setLayoutProperty(K,_e,ne),this._updateLayer(Ce))},R.prototype.getLayoutProperty=function(O,K){var _e=this.getLayer(O);if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return _e.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ce=this.getLayer(O);if(!Ce){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(Ce.getPaintProperty(K),_e)){var Ye=Ce.setPaintProperty(K,_e,ne);Ye&&this._updateLayer(Ce),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=O.sourceLayer,Ce=this.sourceCaches[_e];if(Ce===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ye=Ce.getSource().type;if(Ye==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ye==="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."))),Ce.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=this.sourceCaches[_e];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ce=ne.getSource().type,Ye=Ce==="vector"?O.sourceLayer:void 0;if(Ce==="vector"&&!Ye){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(Ye,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,_e=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 Ce=ne.getSource().type;if(Ce==="vector"&&!_e){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(_e,O.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(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.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},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,_e=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Ce=[],Ye=this._order.length-1;Ye>=0;Ye--){var kt=this._order[Ye];if(_e(kt)){ne[kt]=Ye;for(var dr=0,Mr=O;dr=0;Qt--){var ur=this._order[Qt];if(_e(ur))for(var er=Ce.length-1;er>=0;er--){var Ot=Ce[er].feature;if(ne[Ot.layer.id]>16,Ce>>16],u_pixel_coord_lower:[ne&65535,Ce&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),_e=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Ce=ne.width,Ye=ne.height,kt=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/kt,Mr=dr*(O.tileID.canonical.x+O.tileID.wrap*kt),lr=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Ce,Ye],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Mr>>16,lr>>16],u_pixel_coord_lower:[Mr&65535,lr&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,O){var K=R.style.light,_e=K.properties.get("position"),ne=[_e.x,_e.y,_e.z],Ce=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Ce,-R.transform.angle),i.transformMat3(ne,ne,Ce);var Ye=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ye.r,Ye.g,Ye.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,_e,ne){return i.extend(Ro(Y,R,J,O),fs(_e,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,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},Tt=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)}},Vt=function(Y,R,J,O){var K=Y.transform,_e,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Ce=uo(J,1,K.zoom);_e=!0,ne=[Ce,Ce]}else _e=!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(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+_e,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=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)}},mr=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)}},Fr=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),_e=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:_e}},_i=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]}},Si=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)}},Ci=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}},Pi=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)}},di=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)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Mi=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var _e=Y.context.gl;return{u_matrix:K,u_world:[_e.drawingBufferWidth,_e.drawingBufferHeight],u_image:J,u_color_ramp:O,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 O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),_e=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 Ce=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Ce),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:_e}},ia=function(Y,R){var J=R.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:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+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 O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,_e=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:[_e,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Bl=function(Y,R,J,O,K){var _e=Y.transform,ne=Y.lineAtlas,Ce=bl(R,_e),Ye=J.layout.get("line-cap")==="round",kt=ne.getDash(O.from,Ye),dr=ne.getDash(O.to,Ye),Mr=kt.width*K.fromScale,lr=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Ce/Mr,-kt.height/2],u_patternscale_b:[Ce/lr,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Mr,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:kt.y,u_tex_y_b:dr.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,O,K){return{u_matrix:Y,u_tl_parent:R,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: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,O,K,_e,ne,Ce,Ye,kt){var dr=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:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:_e,u_label_plane_matrix:ne,u_coord_matrix:Ce,u_is_text:+Ye,u_pitch_with_map:+O,u_texsize:kt,u_texture:0}},zl=function(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr){var Mr=K.transform;return i.extend(nl(Y,R,J,O,K,_e,ne,Ce,Ye,kt),{u_gamma_scale:O?Math.cos(Mr._pitch)*Mr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,_e,ne,Ce,Ye,kt){return i.extend(zl(Y,R,J,O,K,_e,ne,Ce,!0,Ye,!0),{u_texsize_icon:kt,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,O,K,_e){return i.extend(cl(O,_e,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:Tt,collisionBox:wr,collisionCircle:mr,debug:Si,clippingMask:Ki,heatmap:Pi,heatmapTexture:di,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,O,K,_e,ne){for(var Ce=Y.context,Ye=Ce.gl,kt=Y.useProgram("collisionBox"),dr=[],Mr=0,lr=0,$e=0;$e0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:ur,circleOffset:lr,transform:Ot,invTransform:er}),Mr+=ur.length/4,lr=Mr}Qt&&kt.draw(Ce,Ye.LINES,ni.disabled,si.disabled,Y.colorModeForRenderPass(),xr.disabled,Fr(sr,Y.transform,bt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Mr*4),Lt._trim();for(var Tr=0,Ur=0,hi=dr;Ur=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){$e.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Ce=(ne-Y.timeAdded)/_e,Ye=R?(ne-R.timeAdded)/_e:-1,kt=J.getSource(),dr=K.coveringZoomLevel({tileSize:kt.tileSize,roundZoom:kt.roundZoom}),Mr=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),lr=Mr&&Y.refreshedUponExpiration?1:i.clamp(Mr?Ce:1-Ye,0,1);return Y.refreshedUponExpiration&&Ce>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function fr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var _e=Y.context,ne=_e.gl,Ce=Y.transform,Ye=Ce.tileSize,kt=J.paint.get("background-pattern");if(!Y.isPatternMissing(kt)){var dr=!kt&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Mr=si.disabled,lr=Y.depthModeForSublayer(0,dr==="opaque"?ni.ReadWrite:ni.ReadOnly),$e=Y.colorModeForRenderPass(),ht=Y.useProgram(kt?"backgroundPattern":"background"),bt=Ce.coveringTiles({tileSize:Ye});kt&&(_e.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=bt;sr "+J.overscaledZ);var sr=Kt+" "+$e+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Ce,Ye,yt.alphaBlended,xr.disabled,Ci(_e,i.Color.transparent,bt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){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(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var _e=K.prerender;_e&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),_e.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(si.disabled);var ne=K.renderingMode==="3d"?new ni(Y.context.gl.LEQUAL,ni.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,ni.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:mt,heatmap:Ft,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Ht,background:fr,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 O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(yt.disabled),O.setDepthMode(ni.disabled);var _e=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Ce=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new si({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 si({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(kt,dr){return dr.overscaledZ-kt.overscaledZ}),_e=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-_e+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Ce={},Ye=0;Ye=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=_e[er.source],Jt=Ye[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}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()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},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 Ol=function(R,J){this.points=R,this.planes=J};Ol.fromInvProjectionMatrix=function(R,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]],_e=Math.pow(2,O),ne=K.map(function(kt){return i.transformMat4([],kt,R)}).map(function(kt){return i.scale$1([],kt,1/kt[3]/J*_e)}),Ce=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ye=Ce.map(function(kt){var dr=i.sub([],ne[kt[0]],ne[kt[1]]),Mr=i.sub([],ne[kt[2]],ne[kt[1]]),lr=i.normalize([],i.cross([],dr,Mr)),$e=-i.dot(lr,ne[kt[1]]);return lr.concat($e)});return new Ol(ne,Ye)};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],O=i.clone$2(this.min),K=i.clone$2(this.max),_e=0;_e=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ye=0;Ye<3;Ye++){for(var kt=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Mr=0;Mrthis.max[Ye]-this.min[Ye])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<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=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=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(O,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,O,K,_e){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=_e===void 0?!0:_e,this._minZoom=R||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 Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={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},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.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))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.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())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.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())},tu.zoom.get=function(){return this._zoom},tu.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())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.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,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),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 O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),_e=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Ce=Math.floor(Math.min(O.x,K.x,_e.x,ne.x)),Ye=Math.floor(Math.max(O.x,K.x,_e.x,ne.x)),kt=1,dr=Ce-kt;dr<=Ye+kt;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},nu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),_e=Math.pow(2,J),ne=[_e*K.x,_e*K.y,0],Ce=Ol.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ye=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ye=J);var kt=3,dr=function(Yi){return{aabb:new ou([Yi*_e,0,0],[(Yi+1)*_e,_e,0]),zoom:0,x:0,y:0,wrap:Yi,fullyVisible:!1}},Mr=[],lr=[],$e=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var bt=1;bt<=3;bt++)Mr.push(dr(-bt)),Mr.push(dr(bt));for(Mr.push(dr(0));Mr.length>0;){var Kt=Mr.pop(),sr=Kt.x,Qt=Kt.y,ur=Kt.fullyVisible;if(!ur){var er=Kt.aabb.intersects(Ce);if(er===0)continue;ur=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=kt+(1<<$e-Kt.zoom)-2;if(Kt.zoom===$e||Lt>Tr&&Kt.zoom>=Ye){lr.push({tileID:new i.OverscaledTileID(Kt.zoom===$e?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var Ur=0;Ur<4;Ur++){var hi=(sr<<1)+Ur%2,Cn=(Qt<<1)+(Ur>>1);Mr.push({aabb:Kt.aabb.quadrant(Ur),zoom:Kt.zoom+1,x:hi,y:Cn,wrap:Kt.wrap,fullyVisible:ur})}}return lr.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()},tu.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()},tu.point.get=function(){return this.project(this.center)},nu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),_e=this.locationCoordinate(R),ne=new i.MercatorCoordinate(_e.x-(O.x-K.x),_e.y-(O.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,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var _e=O[3],ne=K[3],Ce=O[0]/_e,Ye=K[0]/ne,kt=O[1]/_e,dr=K[1]/ne,Mr=O[2]/_e,lr=K[2]/ne,$e=Mr===lr?0:(J-Mr)/(lr-Mr);return new i.MercatorCoordinate(i.number(Ce,Ye,$e)/this.worldSize,i.number(kt,dr,$e)/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 O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var _e=R.canonical,ne=this.worldSize/this.zoomScale(_e.z),Ce=_e.x+Math.pow(2,_e.z)*R.wrap,Ye=i.identity(new Float64Array(16));return i.translate(Ye,Ye,[Ce*ne,_e.y*ne,0]),i.scale(Ye,Ye,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ye,J?this.alignedProjMatrix:this.projMatrix,Ye),K[O]=new Float32Array(Ye),K[O]},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,O=-180,K=180,_e,ne,Ce,Ye,kt=this.size,dr=this._unmodified;if(this.latRange){var Mr=this.latRange;R=i.mercatorYfromLat(Mr[1])*this.worldSize,J=i.mercatorYfromLat(Mr[0])*this.worldSize,_e=J-RJ&&(Ye=J-Kt)}if(this.lngRange){var sr=$e.x,Qt=kt.x/2;sr-QtK&&(Ce=K-Qt)}(Ce!==void 0||Ye!==void 0)&&(this.center=this.unproject(new i.Point(Ce!==void 0?Ce:$e.x,Ye!==void 0?Ye:$e.y))),this._unmodified=dr,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 O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),_e=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Ce=ne.x,Ye=ne.y,kt=Math.cos(Math.PI/2-this._pitch)*_e+this.cameraToCenterDistance,dr=kt*1.01,Mr=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,Mr,dr),lr[8]=-J.x*2/this.width,lr[9]=J.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-Ce,-Ye,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var $e=this.width%2/2,ht=this.height%2/2,bt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Ce-Math.round(Ce)+bt*$e+Kt*ht,Qt=Ye-Math.round(Ye)+bt*ht+Kt*$e,ur=new Float64Array(lr);if(i.translate(ur,ur,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=ur,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,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],O=i.transformMat4(J,J,this.pixelMatrix);return O[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 O=J.x,K=J.y,_e=J.x,ne=J.y,Ce=0,Ye=R;Ce=3&&!R.some(function(O){return isNaN(O)})){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(),O=160;R.length>0&&J-R[0].time>O;)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},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},et.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},et.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},et.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},et.prototype.touchstart=function(R){return this._firePreventable(new Pe(R.type,this._map,R))},et.prototype.touchmove=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype.touchend=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype.touchcancel=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},et.prototype.isEnabled=function(){return!0},et.prototype.isActive=function(){return!1},et.prototype.enable=function(){},et.prototype.disable=function(){};var st=function(R){this._map=R};st.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},st.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},st.prototype.mousedown=function(){this._delayContextMenu=!0},st.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},st.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},st.prototype.isEnabled=function(){return!0},st.prototype.isActive=function(){return!1},st.prototype.enable=function(){},st.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,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=R.timeStamp),O.length===this.numTouches&&(this.centroid=hr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var _e in this.touches){var ne=this.touches[_e],Ce=K[_e];(!Ce||Ce.dist(ne)>fi)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Bi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Bi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Bi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Bi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Bi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var _e=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),_e=new i.Point(0,0),ne=new i.Point(0,0),Ce=0;for(var Ye in K){var kt=K[Ye],dr=this._touches[Ye];dr&&(_e._add(kt),ne._add(kt.sub(dr)),Ce++,K[Ye]=kt)}if(this._touches=K,!(CeMath.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(O){this._lastPoints=O,tf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,_e){var ne=O[0].sub(this._lastPoints[0]),Ce=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Ce,_e.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ye=(ne.y+Ce.y)/2,kt=-.5;return{pitchDelta:Ye*kt}}},R.prototype.gestureBeginsVertically=function(O,K,_e){if(this._valid!==void 0)return this._valid;var ne=2,Ce=O.mag()>=ne,Ye=K.mag()>=ne;if(!(!Ce&&!Ye)){if(!Ce||!Ye)return this._firstMove===void 0&&(this._firstMove=_e),_e-this._firstMove0==K.y>0;return tf(O)&&tf(K)&&kt}},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 O=0,K=0,_e=0,ne=0,Ce=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-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?_e=1:(R.preventDefault(),Ce=-1);break;case 40:R.shiftKey?_e=-1:(R.preventDefault(),Ce=1);break;default:return}return this._rotationDisabled&&(K=0,_e=0),{cameraAnimation:function(Ye){var kt=Ye.getZoom();Ye.easeTo({duration:300,easeId:"keyboardHandler",easing:lf,zoom:O?Math.round(kt)+O*(R.shiftKey?2:1):kt,bearing:Ye.getBearing()+K*J._bearingStep,pitch:Ye.getPitch()+_e*J._pitchStep,offset:[-ne*J._panStep,-Ce*J._panStep],center:Ye.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,Mf=1/100,pf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Mf,this._wheelZoomRate=pf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,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()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.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())}},Be.prototype.renderFrame=function(){var R=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)>hf?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var _e=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(_e*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,Ce=this._startZoom,Ye=this._easing,kt=!1,dr;if(this._type==="wheel"&&Ce&&Ye){var Mr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Ye(Mr);dr=i.number(Ce,ne,lr),Mr<1?this._frameId||(this._frameId=!0):kt=!0}else dr=ne,kt=!0;return this._active=!0,kt&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!kt,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,_e=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(_e*_e+1e-4)*.01,Ce=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Ce,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var Nt=function(R,J){this._clickZoom=R,this._tapZoom=J};Nt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Nt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Nt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Nt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Bi({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,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],_e=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:_e/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);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 yi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};yi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},yi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},yi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},yi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ci=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};ci.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},ci.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ci.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},ci.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var vi=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};vi.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")},vi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},vi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},vi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},vi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},vi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=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 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,_e=this._listeners;K<_e.length;K+=1){var ne=_e[K],Ce=ne[0],Ye=ne[1],kt=ne[2];o.addEventListener(Ce,Ye,Ce===i.window.document?this.handleWindowEvent:this.handleEvent,kt)}};wn.prototype.destroy=function(){for(var R=0,J=this._listeners;RCe?Math.min(2,Ot):Math.max(.5,Ot),Yi=Math.pow(Cn,1-Ur),yn=ne.unproject(ur.add(er.mult(Ur*Yi)).mult(hi));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}_e._fireMoveEvents(K)},function(Ur){_e._afterEase(K,Ur)},O),this},R.prototype._prepareEase=function(O,K,_e){_e===void 0&&(_e={}),this._moving=!0,!K&&!_e.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!_e.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!_e.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!_e.pitching&&this.fire(new i.Event("pitchstart",O))},R.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))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var _e=this._zooming,ne=this._rotating,Ce=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,_e&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Ce&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var _e=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 Ce=this.transform,Ye=this.getZoom(),kt=this.getBearing(),dr=this.getPitch(),Mr=this.getPadding(),lr="zoom"in O?i.clamp(+O.zoom,Ce.minZoom,Ce.maxZoom):Ye,$e="bearing"in O?this._normalizeBearing(O.bearing,kt):kt,ht="pitch"in O?+O.pitch:dr,bt="padding"in O?O.padding:Ce.padding,Kt=Ce.zoomScale(lr-Ye),sr=i.Point.convert(O.offset),Qt=Ce.centerPoint.add(sr),ur=Ce.pointLocation(Qt),er=i.LngLat.convert(O.center||ur);this._normalizeCenter(er);var Ot=Ce.project(ur),Jt=Ce.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Ce.width,Ce.height),Ur=Tr/Kt,hi=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ye,lr),Ce.minZoom,Ce.maxZoom),Yi=Tr/Ce.zoomScale(Cn-Ye);Lt=Math.sqrt(Yi/hi*2)}var yn=Lt*Lt;function Xa(vu){var zu=(Ur*Ur-Tr*Tr+(vu?-1:1)*yn*yn*hi*hi)/(2*(vu?Ur:Tr)*yn*hi);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+Lt*vu)},Zo=function(vu){return Tr*((Tn(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/hi},ru=(Xa(1)-Nn)/Lt;if(Math.abs(hi)<1e-6||!isFinite(ru)){if(Math.abs(Tr-Ur)<1e-6)return this.easeTo(O,K);var yu=UrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=kt!==$e,this._pitching=ht!==dr,this._padding=!Ce.isPaddingEqual(bt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,Ju=1/xa(zu);Ce.zoom=vu===1?lr:Ye+Ce.scaleZoom(Ju),_e._rotating&&(Ce.bearing=i.number(kt,$e,vu)),_e._pitching&&(Ce.pitch=i.number(dr,ht,vu)),_e._padding&&(Ce.interpolatePadding(Mr,bt,vu),Qt=Ce.centerPoint.add(sr));var Vf=vu===1?er:Ce.unproject(Ot.add(Jt.mult(Zo(zu))).mult(Ju));Ce.setLocationAtPoint(Ce.renderWorldCopies?Vf.wrap():Vf,Qt),_e._fireMoveEvents(K)},function(){return _e._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var _e=this._onEaseEnd;delete this._onEaseEnd,_e.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,_e){_e.animate===!1||_e.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=_e,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.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()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var _e=Math.abs(O-K);return Math.abs(O-360-K)<_e&&(O-=360),Math.abs(O+360-K)<_e&&(O+=360),O},R.prototype._normalizeCenter=function(O){var K=this.transform;if(!(!K.renderWorldCopies||K.lngRange)){var _e=O.lng-K.center.lng;O.lng+=_e>180?-360:_e<-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 O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},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 O=J.reduce(function(K,_e,ne){return _e.value&&(K+=_e.key+"="+_e.value+(ne=0)return!1;return!0});var Ce=R.join(" | ");Ce!==this._attribHTML&&(this._attribHTML=Ce,R.length?(this._innerContainer.innerHTML=Ce,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 O=R[J].getSource();if(O.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 qi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};qi.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},qi.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,_e=O;K<_e.length;K+=1){var ne=_e[K];if(ne.id===R){ne.cancelled=!0;return}}},qi.prototype.run=function(R){R===void 0&&(R=0);var J=this._currentlyRunning=this._queue;this._queue=[];for(var O=0,K=J;OO.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.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var _e=new nu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,_e,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 qi,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,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 dn)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 wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new $u(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 ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Ce){K._update(Ce.dataType==="style"),K.fire(new i.Event(Ce.dataType+"data",Ce))}),this.on("dataloading",function(Ce){K.fire(new i.Event(Ce.dataType+"dataloading",Ce))})}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,_e){if(_e===void 0&&(K.getDefaultPosition?_e=K.getDefaultPosition():_e="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 Ce=this._controlPositions[_e];return _e.indexOf("bottom")!==-1?Ce.insertBefore(ne,Ce.firstChild):Ce.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 _e=this._controls.indexOf(K);return _e>-1&&this._controls.splice(_e,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var _e=this._containerDimensions(),ne=_e[0],Ce=_e[1];this._resizeCanvas(ne,Ce),this.transform.resize(ne,Ce),this.painter.resize(ne,Ce);var Ye=!this._moving;return Ye&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ye&&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,_e,ne){var Ce=this,Ye;if(K==="mouseenter"||K==="mouseover"){var kt=!1,dr=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?kt||(kt=!0,ne.call(Ce,new se(K,Ce,Kt.originalEvent,{features:sr}))):kt=!1},Mr=function(){kt=!1};return{layer:_e,listener:ne,delegates:{mousemove:dr,mouseout:Mr}}}else if(K==="mouseleave"||K==="mouseout"){var lr=!1,$e=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?lr=!0:lr&&(lr=!1,ne.call(Ce,new se(K,Ce,Kt.originalEvent)))},ht=function(Kt){lr&&(lr=!1,ne.call(Ce,new se(K,Ce,Kt.originalEvent)))};return{layer:_e,listener:ne,delegates:{mousemove:$e,mouseout:ht}}}else{var bt=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length&&(Kt.features=sr,ne.call(Ce,Kt),delete Kt.features)};return{layer:_e,listener:ne,delegates:(Ye={},Ye[K]=bt,Ye)}}},R.prototype.on=function(K,_e,ne){if(ne===void 0)return Y.prototype.on.call(this,K,_e);var Ce=this._createDelegatedListener(K,_e,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Ce);for(var Ye in Ce.delegates)this.on(Ye,Ce.delegates[Ye]);return this},R.prototype.once=function(K,_e,ne){if(ne===void 0)return Y.prototype.once.call(this,K,_e);var Ce=this._createDelegatedListener(K,_e,ne);for(var Ye in Ce.delegates)this.once(Ye,Ce.delegates[Ye]);return this},R.prototype.off=function(K,_e,ne){var Ce=this;if(ne===void 0)return Y.prototype.off.call(this,K,_e);var Ye=function(kt){for(var dr=kt[K],Mr=0;Mr180;){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 O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(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"),_e=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",_e+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+_e);var Ce=o.createNS("http://www.w3.org/2000/svg","g");Ce.setAttributeNS(null,"stroke","none"),Ce.setAttributeNS(null,"stroke-width","1"),Ce.setAttributeNS(null,"fill","none"),Ce.setAttributeNS(null,"fill-rule","evenodd");var Ye=o.createNS("http://www.w3.org/2000/svg","g");Ye.setAttributeNS(null,"fill-rule","nonzero");var kt=o.createNS("http://www.w3.org/2000/svg","g");kt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),kt.setAttributeNS(null,"fill","#000000");for(var dr=[{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"}],Mr=0,lr=dr;Mr=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")))},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(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))},R.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},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O: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,Bu=!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(O){return this._map=O,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,Bu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),_e=O.coords;return K&&(_e.longitudeK.getEast()||_e.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(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()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),_e=O.coords.accuracy,ne=this._map.getBearing(),Ce=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(_e),Ce,{geolocateSource:!0})},R.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()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),_e=this._map.unproject([1,O]),ne=K.distanceTo(_e),Ce=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Ce+"px",this._circleElement.style.height=Ce+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.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&&Bu)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()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Ce){return Ce.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 _e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=_e,this._geolocateButton.setAttribute("aria-label",_e)}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(Ce){var Ye=Ce.originalEvent&&Ce.originalEvent.type==="resize";!Ce.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ye&&(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--,Bu=!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 O;Dl>1?(O={maximumAge:6e5,timeout:0},Bu=!0):(O=this.options.positionOptions,Bu=!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},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"},Ef=function(R){this.options=i.extend({},Ql,R),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(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},Ef.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ef.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,_e=Y.unproject([0,K]),ne=Y.unproject([O,K]),Ce=_e.distanceTo(ne);if(J&&J.unit==="imperial"){var Ye=3.2808*Ce;if(Ye>5280){var kt=Ye/5280;gf(R,O,kt,Y._getUIString("ScaleControl.Miles"))}else gf(R,O,Ye,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Ce/1852;gf(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Ce>=1e3?gf(R,O,Ce/1e3,Y._getUIString("ScaleControl.Kilometers")):gf(R,O,Ce,Y._getUIString("ScaleControl.Meters"))}function gf(Y,R,J,O){var K=Cf(J),_e=K/J;Y.style.width=R*_e+"px",Y.innerHTML=K+" "+O}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(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},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(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},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(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),_e=i.window.document.createElement("body"),ne;for(_e.innerHTML=O;ne=_e.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.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},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},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(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,_e=this._lngLat||this._trackPointer;if(!(!this._map||!_e||!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($e){return K._container.classList.add($e)}),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&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Ce=this.options.anchor,Ye=bf(this.options.offset);if(!Ce){var kt=this._container.offsetWidth,dr=this._container.offsetHeight,Mr;ne.y+Ye.bottom.ythis._map.transform.height-dr?Mr=["bottom"]:Mr=[],ne.xthis._map.transform.width-kt/2&&Mr.push("right"),Mr.length===0?Ce="bottom":Ce=Mr.join("-")}var lr=ne.add(Ye[Ce]).round();o.setTransform(this._container,_s[Ce]+" translate("+lr.x+"px,"+lr.y+"px)"),ul(this._container,Ce,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(mf);O&&O.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:On,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 ki.workerCount},set workerCount(Y){ki.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 rHe=Te((_2r,tHe)=>{"use strict";var hw=ei(),aXt=Wf().sanitizeHTML,oXt=bJ(),$Ge=y1();function QGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=$Ge.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=QGe.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=hB(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,!!hB(e)){var r=sXt(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 eHe(e){var t={},r={};switch(e.type){case"circle":hw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":hw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":hw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=oXt(n.textposition,n.iconsize);hw.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}),hw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":hw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function sXt(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=aXt(e.sourceattribution)),n}tHe.exports=function(t,r,n){var i=new QGe(t,r);return i.update(n),i}});var cHe=Te((x2r,fHe)=>{"use strict";var kJ=EJ(),CJ=ei(),oHe=hx(),iHe=$l(),lXt=wu(),uXt=xp(),dB=Xc(),sHe=Cm(),fXt=sHe.drawMode,cXt=sHe.selectMode,hXt=oh().prepSelect,dXt=oh().clearOutline,pXt=oh().clearSelectionsCache,vXt=oh().selectOnClick,kx=y1(),mXt=rHe();function lHe(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=lHe.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=uHe(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 kJ.Map({container:i.div,style:o.style,center:LJ(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}));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(oHe.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=uHe(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(oHe.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&&dB.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=CJ.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),cXt(a)||fXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){hXt(u,l,f,t.dragOptions,a)},uXt.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 PJ=ei(),yXt=B_(),gXt=Kd(),hHe=Zk();dHe.exports=function(t,r,n){yXt(t,r,n,{type:"mapbox",attributes:hHe,handleDefaults:_Xt,partition:"y",accessToken:r._mapboxAccessToken})};function _Xt(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,gXt(e,t,{name:"layers",handleItemDefaults:xXt}),t._input=e}function xXt(e,t){function r(u,l){return PJ.coerce(e,t,hHe.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",PJ.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"),PJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var pB=Te(Nv=>{"use strict";var vHe=EJ(),ny=ei(),zJ=ny.strTranslate,bXt=ny.strScale,wXt=Rd().getSubplotCalcData,AXt=jv(),TXt=Jl(),mHe=Mu(),SXt=Wf(),MXt=cHe(),Cx="mapbox",og=Nv.constants=y1();Nv.name=Cx;Nv.attr="subplot";Nv.idRoot=Cx;Nv.idRegex=Nv.attrRegex=ny.counterRegex(Cx);var EXt=["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=Zk();Nv.supplyLayoutDefaults=pHe();var yHe=!0;Nv.plot=function(t){yHe&&(yHe=!1,ny.warn(EXt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Cx];if(vHe.version!==og.requiredVersion)throw new Error(og.wrongVersionErrorMsg);var a=kXt(t,i);vHe.accessToken=a;for(var o=0;ov/2){var C=d.split("|").join("
");_.text(C).attr("data-unformatted",C).call(SXt.convertToTspans,e),b=mHe.bBox(_.node())}_.attr("transform",zJ(-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 T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",zJ(T[0],T[1])+bXt(E))}};function kXt(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(og.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 gHe(e){return typeof e=="string"&&(og.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Nv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Cx],n=0;n{"use strict";var A2r=["*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(" ");_He.exports={attributes:oB(),supplyDefaults:PGe(),colorbar:ep(),formatLabels:xJ(),calc:_F(),plot:WGe(),hoverPoints:cB().hoverPoints,eventData:YGe(),selectPoints:JGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:pB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var wHe=Te((S2r,bHe)=>{"use strict";bHe.exports=xHe()});var IJ=Te((M2r,AHe)=>{"use strict";var g1=aS(),CXt=nc(),{hovertemplateAttrs:LXt,templatefallbackAttrs:PXt}=Ff(),zXt=Gf(),Lx=Su().extendFlat;AHe.exports=Lx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Lx({},g1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:g1.text,hovertext:g1.hovertext,marker:{line:{color:Lx({},g1.marker.line.color,{editType:"plot"}),width:Lx({},g1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Lx({},g1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Lx({},g1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Lx({},g1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:g1.hoverinfo,hovertemplate:LXt({},{keys:["properties"]}),hovertemplatefallback:PXt(),showlegend:Lx({},zXt.showlegend,{dflt:!1})},CXt("",{cLetter:"z",editTypeOverride:"calc"}))});var SHe=Te((E2r,THe)=>{"use strict";var $k=ei(),IXt=nd(),RXt=IJ();THe.exports=function(t,r,n,i){function a(f,c){return $k.coerce(t,r,RXt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!$k.isArrayOrTypedArray(o)||!o.length||!$k.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||$k.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"),IXt(t,r,i,a,{prefix:"",cLetter:"z"}),$k.coerceSelectionMarkerOpacity(r,a)}});var RJ=Te((k2r,kHe)=>{"use strict";var DXt=ku(),_1=ei(),FXt=_c(),BXt=Mu(),OXt=fx().makeBlank,MHe=hx();function qXt(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:OXt()};if(!r)return a;var o=MHe.extractTraceFeature(e);if(!o)return a;var s=FXt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;_1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return DXt(E)?+_1.constrain(E,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 LHe=RJ().convert,NXt=RJ().convertOnSelect,CHe=y1().traceLayerPrefix;function PHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",CHe+t+"-fill"],["line",CHe+t+"-line"]],this.below=null}var LS=PHe.prototype;LS.update=function(e){this._update(LHe(e)),e[0].trace._glTrace=this};LS.updateOnSelect=function(e){this._update(NXt(e))};LS._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])};LS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};zHe.exports=function(t,r){var n=r[0].trace,i=new PHe(t,n.uid),a=i.sourceId,o=LHe(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 DHe=Te((P2r,RHe)=>{"use strict";var L2r=["*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(" ");RHe.exports={attributes:IJ(),supplyDefaults:SHe(),colorbar:R_(),calc:NF(),plot:IHe(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";FHe.exports=DHe()});var FJ=Te((I2r,qHe)=>{"use strict";var UXt=nc(),{hovertemplateAttrs:VXt,templatefallbackAttrs:GXt}=Ff(),OHe=Gf(),vB=oB(),DJ=Su().extendFlat;qHe.exports=DJ({lon:vB.lon,lat:vB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:vB.text,hovertext:vB.hovertext,hoverinfo:DJ({},OHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:VXt(),hovertemplatefallback:GXt(),showlegend:DJ({},OHe.showlegend,{dflt:!1})},UXt("",{cLetter:"z",editTypeOverride:"calc"}))});var UHe=Te((R2r,NHe)=>{"use strict";var HXt=ei(),WXt=nd(),jXt=FJ();NHe.exports=function(t,r,n,i){function a(l,f){return HXt.coerce(t,r,jXt,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"),WXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var HHe=Te((D2r,GHe)=>{"use strict";var BJ=ku(),XXt=ei().isArrayOrTypedArray,OJ=rf().BADNUM,ZXt=gp(),VHe=ei()._;GHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=XXt(a)&&a.length,s=0;s{"use strict";var YXt=ku(),qJ=ei(),WHe=jl(),jHe=_c(),XHe=rf().BADNUM,KXt=fx().makeBlank;ZHe.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:KXt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=qJ.isArrayOrTypedArray(u)&&u.length,c=qJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=jHe.extractOpts(r),v=b.reversescale?jHe.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=WHe.opacity(C)<1?C:WHe.addOpacity(C,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var KHe=YHe(),JXt=y1().traceLayerPrefix;function JHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",JXt+t+"-heatmap"]],this.below=null}var mB=JHe.prototype;mB.update=function(e){var t=this.subplot,r=this.layerList,n=KHe(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])};mB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};$He.exports=function(t,r){var n=r[0].trace,i=new JHe(t,n.uid),a=i.sourceId,o=KHe(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=Te((O2r,eWe)=>{"use strict";var $Xt=wu(),QXt=cB().hoverPoints,eZt=cB().getExtraText;eWe.exports=function(t,r,n){var i=QXt(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=$Xt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=eZt(s,u,o[0].t.labels),[a]}}});var iWe=Te((q2r,rWe)=>{"use strict";rWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var aWe=Te((U2r,nWe)=>{"use strict";var N2r=["*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(" ");nWe.exports={attributes:FJ(),supplyDefaults:UHe(),colorbar:R_(),formatLabels:xJ(),calc:HHe(),plot:QHe(),hoverPoints:tWe(),eventData:iWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";oWe.exports=aWe()});var uWe=Te((G2r,lWe)=>{lWe.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} +`),Ot=Ce.createShader(Ce.FRAGMENT_SHADER);if(Ce.isContextLost()){this.failedToCreate=!0;return}Ce.shaderSource(Ot,ur),Ce.compileShader(Ot),Ce.attachShader(this.program,Ot);var Jt=Ce.createShader(Ce.VERTEX_SHADER);if(Ce.isContextLost()){this.failedToCreate=!0;return}Ce.shaderSource(Jt,er),Ce.compileShader(Jt),Ce.attachShader(this.program,Jt),this.attributes={};var Lt={};this.numAttributes=dr.length;for(var Tr=0;Tr>16,Ce>>16],u_pixel_coord_lower:[ne&65535,Ce&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),_e=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Ce=ne.width,Ye=ne.height,kt=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/kt,Mr=dr*(O.tileID.canonical.x+O.tileID.wrap*kt),lr=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Ce,Ye],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Mr>>16,lr>>16],u_pixel_coord_lower:[Mr&65535,lr&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,O){var K=R.style.light,_e=K.properties.get("position"),ne=[_e.x,_e.y,_e.z],Ce=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Ce,-R.transform.angle),i.transformMat3(ne,ne,Ce);var Ye=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ye.r,Ye.g,Ye.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,_e,ne){return i.extend(Ro(Y,R,J,O),fs(_e,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,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},Tt=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)}},Vt=function(Y,R,J,O){var K=Y.transform,_e,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Ce=uo(J,1,K.zoom);_e=!0,ne=[Ce,Ce]}else _e=!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(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+_e,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=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)}},mr=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)}},Fr=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),_e=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:_e}},_i=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]}},Si=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)}},Ci=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}},Pi=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)}},di=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)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Mi=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var _e=Y.context.gl;return{u_matrix:K,u_world:[_e.drawingBufferWidth,_e.drawingBufferHeight],u_image:J,u_color_ramp:O,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 O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),_e=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 Ce=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Ce),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:_e}},ia=function(Y,R){var J=R.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:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+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 O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,_e=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:[_e,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Bl=function(Y,R,J,O,K){var _e=Y.transform,ne=Y.lineAtlas,Ce=bl(R,_e),Ye=J.layout.get("line-cap")==="round",kt=ne.getDash(O.from,Ye),dr=ne.getDash(O.to,Ye),Mr=kt.width*K.fromScale,lr=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Ce/Mr,-kt.height/2],u_patternscale_b:[Ce/lr,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Mr,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:kt.y,u_tex_y_b:dr.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,O,K){return{u_matrix:Y,u_tl_parent:R,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: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,O,K,_e,ne,Ce,Ye,kt){var dr=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:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:_e,u_label_plane_matrix:ne,u_coord_matrix:Ce,u_is_text:+Ye,u_pitch_with_map:+O,u_texsize:kt,u_texture:0}},zl=function(Y,R,J,O,K,_e,ne,Ce,Ye,kt,dr){var Mr=K.transform;return i.extend(nl(Y,R,J,O,K,_e,ne,Ce,Ye,kt),{u_gamma_scale:O?Math.cos(Mr._pitch)*Mr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,_e,ne,Ce,Ye,kt){return i.extend(zl(Y,R,J,O,K,_e,ne,Ce,!0,Ye,!0),{u_texsize_icon:kt,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,O,K,_e){return i.extend(cl(O,_e,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:Tt,collisionBox:wr,collisionCircle:mr,debug:Si,clippingMask:Ki,heatmap:Pi,heatmapTexture:di,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,O,K,_e,ne){for(var Ce=Y.context,Ye=Ce.gl,kt=Y.useProgram("collisionBox"),dr=[],Mr=0,lr=0,$e=0;$e0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:ur,circleOffset:lr,transform:Ot,invTransform:er}),Mr+=ur.length/4,lr=Mr}Qt&&kt.draw(Ce,Ye.LINES,ni.disabled,si.disabled,Y.colorModeForRenderPass(),xr.disabled,Fr(sr,Y.transform,bt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Mr*4),Lt._trim();for(var Tr=0,Ur=0,hi=dr;Ur=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){$e.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Ce=(ne-Y.timeAdded)/_e,Ye=R?(ne-R.timeAdded)/_e:-1,kt=J.getSource(),dr=K.coveringZoomLevel({tileSize:kt.tileSize,roundZoom:kt.roundZoom}),Mr=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),lr=Mr&&Y.refreshedUponExpiration?1:i.clamp(Mr?Ce:1-Ye,0,1);return Y.refreshedUponExpiration&&Ce>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function fr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var _e=Y.context,ne=_e.gl,Ce=Y.transform,Ye=Ce.tileSize,kt=J.paint.get("background-pattern");if(!Y.isPatternMissing(kt)){var dr=!kt&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Mr=si.disabled,lr=Y.depthModeForSublayer(0,dr==="opaque"?ni.ReadWrite:ni.ReadOnly),$e=Y.colorModeForRenderPass(),ht=Y.useProgram(kt?"backgroundPattern":"background"),bt=Ce.coveringTiles({tileSize:Ye});kt&&(_e.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=bt;sr "+J.overscaledZ);var sr=Kt+" "+$e+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Ce,Ye,yt.alphaBlended,xr.disabled,Ci(_e,i.Color.transparent,bt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){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(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var _e=K.prerender;_e&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),_e.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(si.disabled);var ne=K.renderingMode==="3d"?new ni(Y.context.gl.LEQUAL,ni.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,ni.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:mt,heatmap:Ft,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Ht,background:fr,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 O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(yt.disabled),O.setDepthMode(ni.disabled);var _e=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Ce=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new si({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 si({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(kt,dr){return dr.overscaledZ-kt.overscaledZ}),_e=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-_e+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Ce={},Ye=0;Ye=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=_e[er.source],Jt=Ye[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}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()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},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 Ol=function(R,J){this.points=R,this.planes=J};Ol.fromInvProjectionMatrix=function(R,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]],_e=Math.pow(2,O),ne=K.map(function(kt){return i.transformMat4([],kt,R)}).map(function(kt){return i.scale$1([],kt,1/kt[3]/J*_e)}),Ce=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ye=Ce.map(function(kt){var dr=i.sub([],ne[kt[0]],ne[kt[1]]),Mr=i.sub([],ne[kt[2]],ne[kt[1]]),lr=i.normalize([],i.cross([],dr,Mr)),$e=-i.dot(lr,ne[kt[1]]);return lr.concat($e)});return new Ol(ne,Ye)};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],O=i.clone$2(this.min),K=i.clone$2(this.max),_e=0;_e=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ye=0;Ye<3;Ye++){for(var kt=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Mr=0;Mrthis.max[Ye]-this.min[Ye])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<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=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=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(O,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,O,K,_e){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=_e===void 0?!0:_e,this._minZoom=R||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 Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={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},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.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))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.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())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.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())},tu.zoom.get=function(){return this._zoom},tu.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())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.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,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),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 O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),_e=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Ce=Math.floor(Math.min(O.x,K.x,_e.x,ne.x)),Ye=Math.floor(Math.max(O.x,K.x,_e.x,ne.x)),kt=1,dr=Ce-kt;dr<=Ye+kt;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},nu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),_e=Math.pow(2,J),ne=[_e*K.x,_e*K.y,0],Ce=Ol.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ye=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ye=J);var kt=3,dr=function(Yi){return{aabb:new ou([Yi*_e,0,0],[(Yi+1)*_e,_e,0]),zoom:0,x:0,y:0,wrap:Yi,fullyVisible:!1}},Mr=[],lr=[],$e=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var bt=1;bt<=3;bt++)Mr.push(dr(-bt)),Mr.push(dr(bt));for(Mr.push(dr(0));Mr.length>0;){var Kt=Mr.pop(),sr=Kt.x,Qt=Kt.y,ur=Kt.fullyVisible;if(!ur){var er=Kt.aabb.intersects(Ce);if(er===0)continue;ur=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=kt+(1<<$e-Kt.zoom)-2;if(Kt.zoom===$e||Lt>Tr&&Kt.zoom>=Ye){lr.push({tileID:new i.OverscaledTileID(Kt.zoom===$e?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var Ur=0;Ur<4;Ur++){var hi=(sr<<1)+Ur%2,Cn=(Qt<<1)+(Ur>>1);Mr.push({aabb:Kt.aabb.quadrant(Ur),zoom:Kt.zoom+1,x:hi,y:Cn,wrap:Kt.wrap,fullyVisible:ur})}}return lr.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()},tu.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()},tu.point.get=function(){return this.project(this.center)},nu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),_e=this.locationCoordinate(R),ne=new i.MercatorCoordinate(_e.x-(O.x-K.x),_e.y-(O.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,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var _e=O[3],ne=K[3],Ce=O[0]/_e,Ye=K[0]/ne,kt=O[1]/_e,dr=K[1]/ne,Mr=O[2]/_e,lr=K[2]/ne,$e=Mr===lr?0:(J-Mr)/(lr-Mr);return new i.MercatorCoordinate(i.number(Ce,Ye,$e)/this.worldSize,i.number(kt,dr,$e)/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 O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var _e=R.canonical,ne=this.worldSize/this.zoomScale(_e.z),Ce=_e.x+Math.pow(2,_e.z)*R.wrap,Ye=i.identity(new Float64Array(16));return i.translate(Ye,Ye,[Ce*ne,_e.y*ne,0]),i.scale(Ye,Ye,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ye,J?this.alignedProjMatrix:this.projMatrix,Ye),K[O]=new Float32Array(Ye),K[O]},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,O=-180,K=180,_e,ne,Ce,Ye,kt=this.size,dr=this._unmodified;if(this.latRange){var Mr=this.latRange;R=i.mercatorYfromLat(Mr[1])*this.worldSize,J=i.mercatorYfromLat(Mr[0])*this.worldSize,_e=J-RJ&&(Ye=J-Kt)}if(this.lngRange){var sr=$e.x,Qt=kt.x/2;sr-QtK&&(Ce=K-Qt)}(Ce!==void 0||Ye!==void 0)&&(this.center=this.unproject(new i.Point(Ce!==void 0?Ce:$e.x,Ye!==void 0?Ye:$e.y))),this._unmodified=dr,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 O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),_e=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Ce=ne.x,Ye=ne.y,kt=Math.cos(Math.PI/2-this._pitch)*_e+this.cameraToCenterDistance,dr=kt*1.01,Mr=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,Mr,dr),lr[8]=-J.x*2/this.width,lr[9]=J.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-Ce,-Ye,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var $e=this.width%2/2,ht=this.height%2/2,bt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Ce-Math.round(Ce)+bt*$e+Kt*ht,Qt=Ye-Math.round(Ye)+bt*ht+Kt*$e,ur=new Float64Array(lr);if(i.translate(ur,ur,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=ur,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,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],O=i.transformMat4(J,J,this.pixelMatrix);return O[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 O=J.x,K=J.y,_e=J.x,ne=J.y,Ce=0,Ye=R;Ce=3&&!R.some(function(O){return isNaN(O)})){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(),O=160;R.length>0&&J-R[0].time>O;)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},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},et.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},et.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},et.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},et.prototype.touchstart=function(R){return this._firePreventable(new Pe(R.type,this._map,R))},et.prototype.touchmove=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype.touchend=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype.touchcancel=function(R){this._map.fire(new Pe(R.type,this._map,R))},et.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},et.prototype.isEnabled=function(){return!0},et.prototype.isActive=function(){return!1},et.prototype.enable=function(){},et.prototype.disable=function(){};var st=function(R){this._map=R};st.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},st.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},st.prototype.mousedown=function(){this._delayContextMenu=!0},st.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},st.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},st.prototype.isEnabled=function(){return!0},st.prototype.isActive=function(){return!1},st.prototype.enable=function(){},st.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,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=R.timeStamp),O.length===this.numTouches&&(this.centroid=hr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var _e in this.touches){var ne=this.touches[_e],Ce=K[_e];(!Ce||Ce.dist(ne)>fi)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Bi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Bi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Bi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Bi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Bi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var _e=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),_e=new i.Point(0,0),ne=new i.Point(0,0),Ce=0;for(var Ye in K){var kt=K[Ye],dr=this._touches[Ye];dr&&(_e._add(kt),ne._add(kt.sub(dr)),Ce++,K[Ye]=kt)}if(this._touches=K,!(CeMath.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(O){this._lastPoints=O,tf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,_e){var ne=O[0].sub(this._lastPoints[0]),Ce=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Ce,_e.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ye=(ne.y+Ce.y)/2,kt=-.5;return{pitchDelta:Ye*kt}}},R.prototype.gestureBeginsVertically=function(O,K,_e){if(this._valid!==void 0)return this._valid;var ne=2,Ce=O.mag()>=ne,Ye=K.mag()>=ne;if(!(!Ce&&!Ye)){if(!Ce||!Ye)return this._firstMove===void 0&&(this._firstMove=_e),_e-this._firstMove0==K.y>0;return tf(O)&&tf(K)&&kt}},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 O=0,K=0,_e=0,ne=0,Ce=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-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?_e=1:(R.preventDefault(),Ce=-1);break;case 40:R.shiftKey?_e=-1:(R.preventDefault(),Ce=1);break;default:return}return this._rotationDisabled&&(K=0,_e=0),{cameraAnimation:function(Ye){var kt=Ye.getZoom();Ye.easeTo({duration:300,easeId:"keyboardHandler",easing:lf,zoom:O?Math.round(kt)+O*(R.shiftKey?2:1):kt,bearing:Ye.getBearing()+K*J._bearingStep,pitch:Ye.getPitch()+_e*J._pitchStep,offset:[-ne*J._panStep,-Ce*J._panStep],center:Ye.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,Mf=1/100,pf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Mf,this._wheelZoomRate=pf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,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()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.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())}},Be.prototype.renderFrame=function(){var R=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)>hf?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var _e=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(_e*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,Ce=this._startZoom,Ye=this._easing,kt=!1,dr;if(this._type==="wheel"&&Ce&&Ye){var Mr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Ye(Mr);dr=i.number(Ce,ne,lr),Mr<1?this._frameId||(this._frameId=!0):kt=!0}else dr=ne,kt=!0;return this._active=!0,kt&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!kt,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,_e=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(_e*_e+1e-4)*.01,Ce=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Ce,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var Nt=function(R,J){this._clickZoom=R,this._tapZoom=J};Nt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Nt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Nt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Nt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Bi({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,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],_e=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:_e/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);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 yi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};yi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},yi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},yi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},yi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ci=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};ci.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},ci.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ci.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},ci.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var vi=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};vi.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")},vi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},vi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},vi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},vi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},vi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=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 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,_e=this._listeners;K<_e.length;K+=1){var ne=_e[K],Ce=ne[0],Ye=ne[1],kt=ne[2];o.addEventListener(Ce,Ye,Ce===i.window.document?this.handleWindowEvent:this.handleEvent,kt)}};wn.prototype.destroy=function(){for(var R=0,J=this._listeners;RCe?Math.min(2,Ot):Math.max(.5,Ot),Yi=Math.pow(Cn,1-Ur),yn=ne.unproject(ur.add(er.mult(Ur*Yi)).mult(hi));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}_e._fireMoveEvents(K)},function(Ur){_e._afterEase(K,Ur)},O),this},R.prototype._prepareEase=function(O,K,_e){_e===void 0&&(_e={}),this._moving=!0,!K&&!_e.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!_e.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!_e.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!_e.pitching&&this.fire(new i.Event("pitchstart",O))},R.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))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var _e=this._zooming,ne=this._rotating,Ce=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,_e&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Ce&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var _e=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 Ce=this.transform,Ye=this.getZoom(),kt=this.getBearing(),dr=this.getPitch(),Mr=this.getPadding(),lr="zoom"in O?i.clamp(+O.zoom,Ce.minZoom,Ce.maxZoom):Ye,$e="bearing"in O?this._normalizeBearing(O.bearing,kt):kt,ht="pitch"in O?+O.pitch:dr,bt="padding"in O?O.padding:Ce.padding,Kt=Ce.zoomScale(lr-Ye),sr=i.Point.convert(O.offset),Qt=Ce.centerPoint.add(sr),ur=Ce.pointLocation(Qt),er=i.LngLat.convert(O.center||ur);this._normalizeCenter(er);var Ot=Ce.project(ur),Jt=Ce.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Ce.width,Ce.height),Ur=Tr/Kt,hi=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ye,lr),Ce.minZoom,Ce.maxZoom),Yi=Tr/Ce.zoomScale(Cn-Ye);Lt=Math.sqrt(Yi/hi*2)}var yn=Lt*Lt;function Xa(vu){var zu=(Ur*Ur-Tr*Tr+(vu?-1:1)*yn*yn*hi*hi)/(2*(vu?Ur:Tr)*yn*hi);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+Lt*vu)},Zo=function(vu){return Tr*((Tn(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/hi},ru=(Xa(1)-Nn)/Lt;if(Math.abs(hi)<1e-6||!isFinite(ru)){if(Math.abs(Tr-Ur)<1e-6)return this.easeTo(O,K);var yu=UrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=kt!==$e,this._pitching=ht!==dr,this._padding=!Ce.isPaddingEqual(bt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,Ju=1/xa(zu);Ce.zoom=vu===1?lr:Ye+Ce.scaleZoom(Ju),_e._rotating&&(Ce.bearing=i.number(kt,$e,vu)),_e._pitching&&(Ce.pitch=i.number(dr,ht,vu)),_e._padding&&(Ce.interpolatePadding(Mr,bt,vu),Qt=Ce.centerPoint.add(sr));var Vf=vu===1?er:Ce.unproject(Ot.add(Jt.mult(Zo(zu))).mult(Ju));Ce.setLocationAtPoint(Ce.renderWorldCopies?Vf.wrap():Vf,Qt),_e._fireMoveEvents(K)},function(){return _e._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var _e=this._onEaseEnd;delete this._onEaseEnd,_e.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,_e){_e.animate===!1||_e.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=_e,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.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()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var _e=Math.abs(O-K);return Math.abs(O-360-K)<_e&&(O-=360),Math.abs(O+360-K)<_e&&(O+=360),O},R.prototype._normalizeCenter=function(O){var K=this.transform;if(!(!K.renderWorldCopies||K.lngRange)){var _e=O.lng-K.center.lng;O.lng+=_e>180?-360:_e<-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 O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},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 O=J.reduce(function(K,_e,ne){return _e.value&&(K+=_e.key+"="+_e.value+(ne=0)return!1;return!0});var Ce=R.join(" | ");Ce!==this._attribHTML&&(this._attribHTML=Ce,R.length?(this._innerContainer.innerHTML=Ce,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 O=R[J].getSource();if(O.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 qi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};qi.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},qi.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,_e=O;K<_e.length;K+=1){var ne=_e[K];if(ne.id===R){ne.cancelled=!0;return}}},qi.prototype.run=function(R){R===void 0&&(R=0);var J=this._currentlyRunning=this._queue;this._queue=[];for(var O=0,K=J;OO.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.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var _e=new nu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,_e,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 qi,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,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 dn)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 wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new $u(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 ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Ce){K._update(Ce.dataType==="style"),K.fire(new i.Event(Ce.dataType+"data",Ce))}),this.on("dataloading",function(Ce){K.fire(new i.Event(Ce.dataType+"dataloading",Ce))})}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,_e){if(_e===void 0&&(K.getDefaultPosition?_e=K.getDefaultPosition():_e="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 Ce=this._controlPositions[_e];return _e.indexOf("bottom")!==-1?Ce.insertBefore(ne,Ce.firstChild):Ce.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 _e=this._controls.indexOf(K);return _e>-1&&this._controls.splice(_e,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var _e=this._containerDimensions(),ne=_e[0],Ce=_e[1];this._resizeCanvas(ne,Ce),this.transform.resize(ne,Ce),this.painter.resize(ne,Ce);var Ye=!this._moving;return Ye&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ye&&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,_e,ne){var Ce=this,Ye;if(K==="mouseenter"||K==="mouseover"){var kt=!1,dr=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?kt||(kt=!0,ne.call(Ce,new se(K,Ce,Kt.originalEvent,{features:sr}))):kt=!1},Mr=function(){kt=!1};return{layer:_e,listener:ne,delegates:{mousemove:dr,mouseout:Mr}}}else if(K==="mouseleave"||K==="mouseout"){var lr=!1,$e=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?lr=!0:lr&&(lr=!1,ne.call(Ce,new se(K,Ce,Kt.originalEvent)))},ht=function(Kt){lr&&(lr=!1,ne.call(Ce,new se(K,Ce,Kt.originalEvent)))};return{layer:_e,listener:ne,delegates:{mousemove:$e,mouseout:ht}}}else{var bt=function(Kt){var sr=Ce.getLayer(_e)?Ce.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length&&(Kt.features=sr,ne.call(Ce,Kt),delete Kt.features)};return{layer:_e,listener:ne,delegates:(Ye={},Ye[K]=bt,Ye)}}},R.prototype.on=function(K,_e,ne){if(ne===void 0)return Y.prototype.on.call(this,K,_e);var Ce=this._createDelegatedListener(K,_e,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Ce);for(var Ye in Ce.delegates)this.on(Ye,Ce.delegates[Ye]);return this},R.prototype.once=function(K,_e,ne){if(ne===void 0)return Y.prototype.once.call(this,K,_e);var Ce=this._createDelegatedListener(K,_e,ne);for(var Ye in Ce.delegates)this.once(Ye,Ce.delegates[Ye]);return this},R.prototype.off=function(K,_e,ne){var Ce=this;if(ne===void 0)return Y.prototype.off.call(this,K,_e);var Ye=function(kt){for(var dr=kt[K],Mr=0;Mr180;){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 O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(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"),_e=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",_e+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+_e);var Ce=o.createNS("http://www.w3.org/2000/svg","g");Ce.setAttributeNS(null,"stroke","none"),Ce.setAttributeNS(null,"stroke-width","1"),Ce.setAttributeNS(null,"fill","none"),Ce.setAttributeNS(null,"fill-rule","evenodd");var Ye=o.createNS("http://www.w3.org/2000/svg","g");Ye.setAttributeNS(null,"fill-rule","nonzero");var kt=o.createNS("http://www.w3.org/2000/svg","g");kt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),kt.setAttributeNS(null,"fill","#000000");for(var dr=[{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"}],Mr=0,lr=dr;Mr=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")))},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(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))},R.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},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O: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,Bu=!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(O){return this._map=O,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,Bu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),_e=O.coords;return K&&(_e.longitudeK.getEast()||_e.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(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()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),_e=O.coords.accuracy,ne=this._map.getBearing(),Ce=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(_e),Ce,{geolocateSource:!0})},R.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()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),_e=this._map.unproject([1,O]),ne=K.distanceTo(_e),Ce=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Ce+"px",this._circleElement.style.height=Ce+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.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&&Bu)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()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Ce){return Ce.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 _e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=_e,this._geolocateButton.setAttribute("aria-label",_e)}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(Ce){var Ye=Ce.originalEvent&&Ce.originalEvent.type==="resize";!Ce.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ye&&(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--,Bu=!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 O;Dl>1?(O={maximumAge:6e5,timeout:0},Bu=!0):(O=this.options.positionOptions,Bu=!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},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"},Ef=function(R){this.options=i.extend({},Ql,R),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(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},Ef.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ef.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,_e=Y.unproject([0,K]),ne=Y.unproject([O,K]),Ce=_e.distanceTo(ne);if(J&&J.unit==="imperial"){var Ye=3.2808*Ce;if(Ye>5280){var kt=Ye/5280;gf(R,O,kt,Y._getUIString("ScaleControl.Miles"))}else gf(R,O,Ye,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Ce/1852;gf(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Ce>=1e3?gf(R,O,Ce/1e3,Y._getUIString("ScaleControl.Kilometers")):gf(R,O,Ce,Y._getUIString("ScaleControl.Meters"))}function gf(Y,R,J,O){var K=Cf(J),_e=K/J;Y.style.width=R*_e+"px",Y.innerHTML=K+" "+O}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(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},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(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},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(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),_e=i.window.document.createElement("body"),ne;for(_e.innerHTML=O;ne=_e.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.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},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},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(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,_e=this._lngLat||this._trackPointer;if(!(!this._map||!_e||!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($e){return K._container.classList.add($e)}),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&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Ce=this.options.anchor,Ye=bf(this.options.offset);if(!Ce){var kt=this._container.offsetWidth,dr=this._container.offsetHeight,Mr;ne.y+Ye.bottom.ythis._map.transform.height-dr?Mr=["bottom"]:Mr=[],ne.xthis._map.transform.width-kt/2&&Mr.push("right"),Mr.length===0?Ce="bottom":Ce=Mr.join("-")}var lr=ne.add(Ye[Ce]).round();o.setTransform(this._container,_s[Ce]+" translate("+lr.x+"px,"+lr.y+"px)"),ul(this._container,Ce,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(mf);O&&O.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:On,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 ki.workerCount},set workerCount(Y){ki.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 rHe=Te((_2r,tHe)=>{"use strict";var hw=ei(),aXt=Wf().sanitizeHTML,oXt=bJ(),$Ge=y1();function QGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=$Ge.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=QGe.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=hB(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,!!hB(e)){var r=sXt(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 eHe(e){var t={},r={};switch(e.type){case"circle":hw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":hw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":hw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=oXt(n.textposition,n.iconsize);hw.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}),hw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":hw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function sXt(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=aXt(e.sourceattribution)),n}tHe.exports=function(t,r,n){var i=new QGe(t,r);return i.update(n),i}});var cHe=Te((x2r,fHe)=>{"use strict";var kJ=EJ(),CJ=ei(),oHe=hx(),iHe=$l(),lXt=wu(),uXt=xp(),dB=Xc(),sHe=Cm(),fXt=sHe.drawMode,cXt=sHe.selectMode,hXt=oh().prepSelect,dXt=oh().clearOutline,pXt=oh().clearSelectionsCache,vXt=oh().selectOnClick,kx=y1(),mXt=rHe();function lHe(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=lHe.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=uHe(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 kJ.Map({container:i.div,style:o.style,center:LJ(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}));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(oHe.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=uHe(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(oHe.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&&dB.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=CJ.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),cXt(a)||fXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){hXt(u,l,f,t.dragOptions,a)},uXt.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 PJ=ei(),yXt=B_(),gXt=Kd(),hHe=Yk();dHe.exports=function(t,r,n){yXt(t,r,n,{type:"mapbox",attributes:hHe,handleDefaults:_Xt,partition:"y",accessToken:r._mapboxAccessToken})};function _Xt(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,gXt(e,t,{name:"layers",handleItemDefaults:xXt}),t._input=e}function xXt(e,t){function r(u,l){return PJ.coerce(e,t,hHe.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",PJ.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"),PJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var pB=Te(Nv=>{"use strict";var vHe=EJ(),ny=ei(),zJ=ny.strTranslate,bXt=ny.strScale,wXt=Rd().getSubplotCalcData,AXt=jv(),TXt=Jl(),mHe=Mu(),SXt=Wf(),MXt=cHe(),Cx="mapbox",og=Nv.constants=y1();Nv.name=Cx;Nv.attr="subplot";Nv.idRoot=Cx;Nv.idRegex=Nv.attrRegex=ny.counterRegex(Cx);var EXt=["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=pHe();var yHe=!0;Nv.plot=function(t){yHe&&(yHe=!1,ny.warn(EXt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Cx];if(vHe.version!==og.requiredVersion)throw new Error(og.wrongVersionErrorMsg);var a=kXt(t,i);vHe.accessToken=a;for(var o=0;ov/2){var C=d.split("|").join("
");_.text(C).attr("data-unformatted",C).call(SXt.convertToTspans,e),b=mHe.bBox(_.node())}_.attr("transform",zJ(-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 T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",zJ(T[0],T[1])+bXt(E))}};function kXt(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(og.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 gHe(e){return typeof e=="string"&&(og.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Nv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Cx],n=0;n{"use strict";var A2r=["*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(" ");_He.exports={attributes:oB(),supplyDefaults:PGe(),colorbar:ep(),formatLabels:xJ(),calc:_F(),plot:WGe(),hoverPoints:cB().hoverPoints,eventData:YGe(),selectPoints:JGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:pB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var wHe=Te((S2r,bHe)=>{"use strict";bHe.exports=xHe()});var IJ=Te((M2r,AHe)=>{"use strict";var g1=aS(),CXt=nc(),{hovertemplateAttrs:LXt,templatefallbackAttrs:PXt}=Ff(),zXt=Gf(),Lx=Su().extendFlat;AHe.exports=Lx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Lx({},g1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:g1.text,hovertext:g1.hovertext,marker:{line:{color:Lx({},g1.marker.line.color,{editType:"plot"}),width:Lx({},g1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Lx({},g1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Lx({},g1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Lx({},g1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:g1.hoverinfo,hovertemplate:LXt({},{keys:["properties"]}),hovertemplatefallback:PXt(),showlegend:Lx({},zXt.showlegend,{dflt:!1})},CXt("",{cLetter:"z",editTypeOverride:"calc"}))});var SHe=Te((E2r,THe)=>{"use strict";var Qk=ei(),IXt=nd(),RXt=IJ();THe.exports=function(t,r,n,i){function a(f,c){return Qk.coerce(t,r,RXt,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"),IXt(t,r,i,a,{prefix:"",cLetter:"z"}),Qk.coerceSelectionMarkerOpacity(r,a)}});var RJ=Te((k2r,kHe)=>{"use strict";var DXt=ku(),_1=ei(),FXt=_c(),BXt=Mu(),OXt=fx().makeBlank,MHe=hx();function qXt(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:OXt()};if(!r)return a;var o=MHe.extractTraceFeature(e);if(!o)return a;var s=FXt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;_1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return DXt(E)?+_1.constrain(E,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 LHe=RJ().convert,NXt=RJ().convertOnSelect,CHe=y1().traceLayerPrefix;function PHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",CHe+t+"-fill"],["line",CHe+t+"-line"]],this.below=null}var LS=PHe.prototype;LS.update=function(e){this._update(LHe(e)),e[0].trace._glTrace=this};LS.updateOnSelect=function(e){this._update(NXt(e))};LS._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])};LS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};zHe.exports=function(t,r){var n=r[0].trace,i=new PHe(t,n.uid),a=i.sourceId,o=LHe(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 DHe=Te((P2r,RHe)=>{"use strict";var L2r=["*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(" ");RHe.exports={attributes:IJ(),supplyDefaults:SHe(),colorbar:R_(),calc:NF(),plot:IHe(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";FHe.exports=DHe()});var FJ=Te((I2r,qHe)=>{"use strict";var UXt=nc(),{hovertemplateAttrs:VXt,templatefallbackAttrs:GXt}=Ff(),OHe=Gf(),vB=oB(),DJ=Su().extendFlat;qHe.exports=DJ({lon:vB.lon,lat:vB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:vB.text,hovertext:vB.hovertext,hoverinfo:DJ({},OHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:VXt(),hovertemplatefallback:GXt(),showlegend:DJ({},OHe.showlegend,{dflt:!1})},UXt("",{cLetter:"z",editTypeOverride:"calc"}))});var UHe=Te((R2r,NHe)=>{"use strict";var HXt=ei(),WXt=nd(),jXt=FJ();NHe.exports=function(t,r,n,i){function a(l,f){return HXt.coerce(t,r,jXt,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"),WXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var HHe=Te((D2r,GHe)=>{"use strict";var BJ=ku(),XXt=ei().isArrayOrTypedArray,OJ=rf().BADNUM,ZXt=gp(),VHe=ei()._;GHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=XXt(a)&&a.length,s=0;s{"use strict";var YXt=ku(),qJ=ei(),WHe=jl(),jHe=_c(),XHe=rf().BADNUM,KXt=fx().makeBlank;ZHe.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:KXt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=qJ.isArrayOrTypedArray(u)&&u.length,c=qJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=jHe.extractOpts(r),v=b.reversescale?jHe.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=WHe.opacity(C)<1?C:WHe.addOpacity(C,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var KHe=YHe(),JXt=y1().traceLayerPrefix;function JHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",JXt+t+"-heatmap"]],this.below=null}var mB=JHe.prototype;mB.update=function(e){var t=this.subplot,r=this.layerList,n=KHe(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])};mB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};$He.exports=function(t,r){var n=r[0].trace,i=new JHe(t,n.uid),a=i.sourceId,o=KHe(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=Te((O2r,eWe)=>{"use strict";var $Xt=wu(),QXt=cB().hoverPoints,eZt=cB().getExtraText;eWe.exports=function(t,r,n){var i=QXt(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=$Xt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=eZt(s,u,o[0].t.labels),[a]}}});var iWe=Te((q2r,rWe)=>{"use strict";rWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var aWe=Te((U2r,nWe)=>{"use strict";var N2r=["*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(" ");nWe.exports={attributes:FJ(),supplyDefaults:UHe(),colorbar:R_(),formatLabels:xJ(),calc:HHe(),plot:QHe(),hoverPoints:tWe(),eventData:iWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";oWe.exports=aWe()});var uWe=Te((G2r,lWe)=>{lWe.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} @@ -3223,9 +3223,9 @@ uniform `+dr+" "+Mr+" u_"+lr+`; {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 cWe=Te((H2r,fWe)=>{fWe.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 Px=Te((W2r,mWe)=>{"use strict";var tZt=t_(),rZt=uWe(),iZt=cWe(),nZt='\xA9 OpenStreetMap contributors',hWe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",dWe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",yB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",aZt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",oZt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",sZt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",vWe={basic:yB,streets:yB,outdoors:yB,light:hWe,dark:dWe,satellite:iZt,"satellite-streets":rZt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:nZt,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":hWe,"carto-darkmatter":dWe,"carto-voyager":yB,"carto-positron-nolabels":aZt,"carto-darkmatter-nolabels":oZt,"carto-voyager-nolabels":sZt},pWe=tZt(vWe);mWe.exports={styleValueDflt:"basic",stylesMap:vWe,styleValuesMap:pWe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",pWe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var Qk=Te((j2r,bWe)=>{"use strict";var yWe=ei(),gWe=jl().defaultLine,lZt=zc().attributes,uZt=gc(),fZt=Zc().textposition,cZt=Sc().overrideAll,hZt=Lf().templatedArray,_We=Px(),xWe=uZt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});xWe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var dZt=bWe.exports=cZt({_arrayAttrRegexps:[yWe.counterRegex("map",".layers",!0)],domain:lZt({name:"map"}),style:{valType:"any",values:_We.styleValuesMap,dflt:_We.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:hZt("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:gWe},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:gWe}},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:xWe,textposition:yWe.extendFlat({},fZt,{arrayOk:!1})}})},"plot","from-root");dZt.uirevision={valType:"any",editType:"none"}});var gB=Te((X2r,SWe)=>{"use strict";var{hovertemplateAttrs:pZt,texttemplateAttrs:vZt,templatefallbackAttrs:wWe}=Ff(),mZt=Pm(),eC=ew(),PS=Zc(),AWe=Qk(),yZt=Gf(),gZt=nc(),dw=Su().extendFlat,_Zt=Sc().overrideAll,xZt=Qk(),TWe=eC.line,zS=eC.marker;SWe.exports=_Zt({lon:eC.lon,lat:eC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},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:dw({},zS.opacity,{dflt:1})},mode:dw({},PS.mode,{dflt:"markers"}),text:dw({},PS.text,{}),texttemplate:vZt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:wWe({editType:"plot"}),hovertext:dw({},PS.hovertext,{}),line:{color:TWe.color,width:TWe.width},connectgaps:PS.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:zS.opacity,size:zS.size,sizeref:zS.sizeref,sizemin:zS.sizemin,sizemode:zS.sizemode},gZt("marker")),fill:eC.fill,fillcolor:mZt(),textfont:AWe.layers.symbol.textfont,textposition:AWe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:PS.selected.marker},unselected:{marker:PS.unselected.marker},hoverinfo:dw({},yZt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:pZt(),hovertemplatefallback:wWe()},"calc","nested")});var NJ=Te((Z2r,MWe)=>{"use strict";var bZt=["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"];MWe.exports={isSupportedFont:function(e){return bZt.indexOf(e)!==-1}}});var CWe=Te((Y2r,kWe)=>{"use strict";var tC=ei(),UJ=lc(),wZt=$v(),AZt=R0(),TZt=D0(),SZt=Dm(),EWe=gB(),MZt=NJ().isSupportedFont;kWe.exports=function(t,r,n,i){function a(v,C){return tC.coerce(t,r,EWe,v,C)}function o(v,C){return tC.coerce2(t,r,EWe,v,C)}var s=EZt(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)){wZt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(tC.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),tC.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}UJ.hasLines(r)&&(AZt(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,_=a("cluster.enabled",p);if(_||UJ.hasText(r)){var b=i.font.family;TZt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:MZt(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"&&SZt(t,r,n,a),tC.coerceSelectionMarkerOpacity(r,a)};function EZt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var VJ=Te((K2r,PWe)=>{"use strict";var LWe=wu();PWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=LWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=LWe.tickText(o,o.c2l(s[1]),!0).text,i}});var GJ=Te((J2r,IWe)=>{"use strict";var zWe=ei();IWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=zWe.isArrayOrTypedArray(r)?zWe.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 qWe=Te(($2r,OWe)=>{"use strict";var FWe=ku(),lp=ei(),kZt=rf().BADNUM,xB=fx(),RWe=_c(),CZt=Mu(),LZt=B3(),bB=lc(),PZt=NJ().isSupportedFont,zZt=GJ(),IZt=iv().appendArrayPointValue,RZt=Wf().NEWLINES,DZt=Wf().BR_TAG_ALL;OWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=bB.hasLines(n),s=bB.hasMarkers(n),u=bB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=_B("fill"),d=_B("line"),p=_B("circle"),_=_B("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=xB.calcTraceToLineCoords(r)),a&&(h.geojson=xB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=xB.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=FZt(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":WJ(n.cluster.color,n.cluster.step),"circle-radius":WJ(n.cluster.size,n.cluster.step),"circle-opacity":WJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":DWe(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)&&(_.geojson=BZt(r,t),lp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=zZt(n.textposition,E);lp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":DWe(n)}),lp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function _B(e){return{type:e,geojson:xB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function FZt(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&&(RWe.hasColorscale(t,"marker")?f=RWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=LZt(t));var h;o&&(h=function(E){var T=FWe(E)?+lp.constrain(E,0,1):0;return u(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"),PZt(s)||(s=r);var u=s.split(", ");return u}});var GWe=Te((Q2r,VWe)=>{"use strict";var OZt=ei(),NWe=qWe(),IS=Px().traceLayerPrefix,om={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function UWe(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:IS+t+"-fill",line:IS+t+"-line",circle:IS+t+"-circle",symbol:IS+t+"-symbol",cluster:IS+t+"-cluster",clusterCount:IS+t+"-cluster-count"},this.below=null}var rC=UWe.prototype;rC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&OZt.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)};rC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};rC.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(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=om.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?om.cluster:om.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};VWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new UWe(t,n.uid,i,a),s=NWe(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 qZt=Xc(),jJ=ei(),NZt=mA(),UZt=jJ.fillText,VZt=rf().BADNUM,GZt=Px().traceLayerPrefix;function HZt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=GZt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===VZt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=jJ.modHalf(m[0],360),A=m[1],F=s.project([P,A]),B=F.x-a.c2p([p,A]),U=F.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(B*B+U*U)-G,1-3/G)}if(qZt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[jJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),T=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+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=NZt(i,b),e.extraText=HWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function HWe(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)&&UZt(t,e,l),l.join("
")}WWe.exports={hoverPoints:HZt,getExtraText:HWe}});var XWe=Te((twr,jWe)=>{"use strict";jWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var YWe=Te((rwr,ZWe)=>{"use strict";var WZt=ei(),jZt=lc(),XZt=rf().BADNUM;ZWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!jZt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof XJ=="object"&&typeof ZJ!="undefined"?ZJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(XJ,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,S,D,X){return new(D||(D=Promise))(function(ie,ve){function we(St){try{ut(X.next(St))}catch($t){ve($t)}}function We(St){try{ut(X.throw(St))}catch($t){ve($t)}}function ut(St){var $t;St.done?ie(St.value):($t=St.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,We)}ut((X=X.apply(I,S||[])).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,S){this.x=I,this.y=S}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,S){return this.clone()._rotateAround(I,S)},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 S=I.x-this.x,D=I.y-this.y;return S*S+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,S){return Math.atan2(this.x*S-this.y*I,this.x*I+this.y*S)},_matMult:function(I){var S=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=S,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 S=Math.cos(I),D=Math.sin(I),X=D*this.x+S*this.y;return this.x=S*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,S){var D=Math.cos(I),X=Math.sin(I),ie=S.y+X*(this.x-S.x)+D*(this.y-S.y);return this.x=S.x+D*(this.x-S.x)-X*(this.y-S.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,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,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,S){if(S===void 0&&(S=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?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var h=o(f);let d,p;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let X=0;X<5*5;X++){let ie=4*X;S.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,S.fillRect(X%5,Math.floor(X/5),1,1)}let D=S.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,S,D,X){let ie=new h(I,S,D,X);return ve=>ie.solve(ve)}let C=v(.25,.1,.25,1);function E(I,S,D){return Math.min(D,Math.max(S,I))}function T(I,S,D){let X=D-S,ie=((I-S)%X+X)%X+S;return ie===S?D:ie}function L(I,...S){for(let D of S)for(let X in D)I[X]=D[X];return I}let x=1;function k(I,S,D){let X={};for(let ie in I)X[ie]=S.call(this,I[ie],ie,I);return X}function M(I,S,D){let X={};for(let ie in I)S.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 A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function F(I,S,D){return(D.y-I.y)*(S.x-I.x)>(S.y-I.y)*(D.x-I.x)}function B(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,S,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let We=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(St,$t,vr,Sr,Dr){let Jr=4*Math.max(-$t,0),ui=(Math.max(0,vr)-vr)*Sr*4+Jr,Gi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(St.width,$t+Sr)-cn,height:Math.min(St.height,vr+Dr)-Za},layout:[{offset:ui,stride:Gi}]}}(I,S,D,X,ie)),We)for(let St=0;StB(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,S){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=ze(I.url);if(X)return X(I,S);if(B(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Le},S)}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 ve=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"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let St=yield we.blob();throw new de(we.status,we.statusText,X.url,St)}let We;We=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield We;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,S);if(B(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Le},S)}var D;return function(X,ie){return new Promise((ve,we)=>{var We;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let St in X.headers)ut.setRequestHeader(St,X.headers[St]);X.type==="json"&&(ut.responseType="text",!((We=X.headers)===null||We===void 0)&&We.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let St=ut.response;if(X.type==="json")try{St=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:St,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let St=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new de(ut.status,ut.statusText,X.url,St))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,S)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let S=new URL(I),D=window.location;return S.protocol===D.protocol&&S.host===D.host}function Se(I,S,D){D[I]&&D[I].indexOf(S)!==-1||(D[I]=D[I]||[],D[I].push(S))}function Ge(I,S,D){if(D&&D[I]){let X=D[I].indexOf(S);X!==-1&&D[I].splice(X,1)}}class De{constructor(S,D={}){L(this,D),this.type=S}}class xe extends De{constructor(S,D={}){super("error",L({error:S},D))}}class Ne{on(S,D){return this._listeners=this._listeners||{},Se(S,D,this._listeners),this}off(S,D){return Ge(S,D,this._listeners),Ge(S,D,this._oneTimeListeners),this}once(S,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Se(S,D,this._oneTimeListeners),this):new Promise(X=>this.once(S,X))}fire(S,D){typeof S=="string"&&(S=new De(S,D||{}));let X=S.type;if(this.listens(X)){S.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let We of ie)We.call(this,S);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let We of ve)Ge(X,We,this._oneTimeListeners),We.call(this,S);let we=this._eventedParent;we&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(S))}else S instanceof xe&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,D){return this._eventedParent=S,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 Qe(I,S){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return je.forEach(X=>{X in S&&(D[X]=S[X])}),D}function gt(I,S){if(Array.isArray(I)){if(!Array.isArray(S)||I.length!==S.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${S}>`}return I.kind}let Ie=[vt,Je,He,nt,tt,_r,It,be(Yt),yr,Ut,Re];function Fe(I,S){if(S.kind==="error")return null;if(I.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!Fe(I.itemType,S.itemType))&&(typeof I.N!="number"||I.N===S.N))return null}else{if(I.kind===S.kind)return null;if(I.kind==="value"){for(let D of Ie)if(!Fe(D,S))return null}}return`Expected ${Oe(I)} but found ${Oe(S)} instead.`}function ft(I,S){return S.some(D=>D.kind===I.kind)}function ye(I,S){return S.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,S){return I.kind==="array"&&S.kind==="array"?I.itemType.kind===S.itemType.kind&&typeof I.N=="number":I.kind===S.kind}let pe=.96422,dt=.82521,Pt=4/29,zt=6/29,rr=3*zt*zt,Gr=zt*zt*zt,Br=Math.PI/180,Er=180/Math.PI;function Rr(I){return(I%=360)<0&&(I+=360),I}function pi([I,S,D,X]){let ie,ve,we=ni((.2225045*(I=Di(I))+.7168786*(S=Di(S))+.0606169*(D=Di(D)))/1);I===S&&S===D?ie=ve=we:(ie=ni((.4360747*I+.3850649*S+.1430804*D)/pe),ve=ni((.0139322*I+.0971045*S+.7141733*D)/dt));let We=116*we-16;return[We<0?0:We,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function ni(I){return I>Gr?Math.pow(I,1/3):I/rr+Pt}function $i([I,S,D,X]){let ie=(I+16)/116,ve=isNaN(S)?ie:ie+S/500,we=isNaN(D)?ie:ie-D/200;return ie=1*si(ie),ve=pe*si(ve),we=dt*si(we),[Qi(3.1338561*ve-1.6168667*ie-.4906146*we),Qi(-.9787684*ve+1.9161415*ie+.033454*we),Qi(.0719453*ve-.2289914*ie+1.4052427*we),X]}function Qi(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function si(I){return I>zt?I*I*I:rr*(I-Pt)}function Ti(I){return parseInt(I.padEnd(2,I),16)/255}function Ni(I,S){return Rt(S?I/100:I,0,1)}function Rt(I,S,D){return Math.min(Math.max(S,I),D)}function yt(I){return!I.some(Number.isNaN)}let Gt={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 Wt{constructor(S,D,X,ie=1,ve=!0){this.r=S,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[S,D,X,ie]))}static parse(S){if(S instanceof Wt)return S;if(typeof S!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Gt[X];if(ie){let[we,We,ut]=ie;return[we/255,We/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,We=1;return[Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za]=we,Rn=[$t||" ",Dr||" ",Gi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[St,Sr,ui].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Rt(+ut/So,0,1),Rt(+vr/So,0,1),Rt(+Jr/So,0,1),cn?Ni(+cn,Za):1];if(yt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,We,ut,St,$t,vr,Sr,Dr,Jr]=ve,ui=[ut||" ",$t||" ",Sr].join("");if(ui===" "||ui===" /"||ui===",,"||ui===",,,"){let Gi=[+We,Rt(+St,0,100),Rt(+vr,0,100),Dr?Ni(+Dr,Jr):1];if(yt(Gi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Rr(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Gi)}}}(S);return D?new Wt(...D,!1):void 0}get rgb(){let{r:S,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[S/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(S){let[D,X,ie,ve]=pi(S),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Rr(Math.atan2(ie,X)*Er):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",pi(this.rgb))}overwriteGetter(S,D){return Object.defineProperty(this,S,{value:D}),D}toString(){let[S,D,X,ie]=this.rgb;return`rgba(${[S,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class xr{constructor(S,D,X){this.sensitivity=S?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,D){return this.collator.compare(S,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(S,D,X,ie,ve){this.text=S,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Nr{constructor(S){this.sections=S}static fromString(S){return new Nr([new Lr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof Nr?S:Nr.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Or{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Or)return S;if(typeof S=="number")return new Or([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let D of S)if(typeof D!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Or(S)}}toString(){return JSON.stringify(this.values)}}let Hr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof jr)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let D=0;D=0&&I<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,S,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,S,D,X]:[I,S,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 Wt||I instanceof xr||I instanceof Nr||I instanceof Or||I instanceof jr||I instanceof gi)return!0;if(Array.isArray(I)){for(let S of I)if(!Vi(S))return!1;return!0}if(typeof I=="object"){for(let S in I)if(!Vi(I[S]))return!1;return!0}return!1}function ti(I){if(I===null)return vt;if(typeof I=="string")return He;if(typeof I=="boolean")return nt;if(typeof I=="number")return Je;if(I instanceof Wt)return tt;if(I instanceof xr)return cr;if(I instanceof Nr)return _r;if(I instanceof Or)return yr;if(I instanceof jr)return Re;if(I instanceof gi)return Ut;if(Array.isArray(I)){let S=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return be(D||Yt,S)}return It}function tn(I){let S=typeof I;return I===null?"":S==="string"||S==="number"||S==="boolean"?String(I):I instanceof Wt||I instanceof Nr||I instanceof Or||I instanceof jr||I instanceof gi?I.toString():JSON.stringify(I)}class Yr{constructor(S,D){this.type=S,this.value=D}static parse(S,D){if(S.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!Vi(S[1]))return D.error("invalid value");let X=S[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Fi={string:He,number:Je,boolean:nt,object:It};class an{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=S[0];if(ve==="array"){let We,ut;if(S.length>2){let St=S[1];if(typeof St!="string"||!(St in Fi)||St==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);We=Fi[St],ie++}else We=Yt;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=S[2],ie++}X=be(We,ut)}else{if(!Fi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Fi[ve]}let we=[];for(;ieS.outputDefined())}}let nn={"to-boolean":nt,"to-color":tt,"to-number":Je,"to-string":He};class Ri{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[0];if(!nn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&S.length!==2)return D.error("Expected one argument.");let ie=nn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:ki(D[0],D[1],D[2],D[3]),!X))return new Wt(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(S);let ie=Or.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(S);let ie=jr.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(S),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(tn(this.args[0].evaluate(S)));case"resolvedImage":return gi.fromString(tn(this.args[0].evaluate(S)));default:return tn(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.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(S){let D=this._parseColorCache[S];return D||(D=this._parseColorCache[S]=Wt.parse(S)),D}}class bi{constructor(S,D,X=[],ie,ve=new At,we=[]){this.registry=S,this.path=X,this.key=X.map(We=>`[${We}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(S,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(S,ve):this._parse(S,ve)}_parse(S,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Ri(ve,[ie]):ie}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=S[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 ve=this.registry[ie];if(ve){let we=ve.parse(S,this);if(!we)return null;if(this.expectedType){let We=this.expectedType,ut=we.type;if(We.kind!=="string"&&We.kind!=="number"&&We.kind!=="boolean"&&We.kind!=="object"&&We.kind!=="array"||ut.kind!=="value")if(We.kind!=="color"&&We.kind!=="formatted"&&We.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(We.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(We.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(We,ut))return null}else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let We=new xn;try{we=new Yr(we.type,we.evaluate(We))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,D,X){let ie=typeof S=="number"?this.path.concat(S):this.path,ve=X?this.scope.concat(X):this.scope;return new bi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(S,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new ot(X,S))}checkSubtype(S,D){let X=Fe(S,D);return X&&this.error(X),X}}class Xr{constructor(S,D){this.type=D.type,this.bindings=[].concat(S),this.result=D}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let D of this.bindings)S(D[1]);S(this.result)}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let X=[];for(let ve=1;ve=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(S){S(this.index),S(this.input)}outputDefined(){return!1}}class pr{constructor(S,D){this.type=nt,this.needle=S,this.haystack=D}static parse(S,D){if(S.length!==3)return D.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);return X&&ie?ft(X.type,[nt,He,Je,vt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!X)return!1;if(!ye(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(!ye(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(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class gr{constructor(S,D,X){this.type=Je,this.needle=S,this.haystack=D,this.fromIndex=X}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);if(!X||!ie)return null;if(!ft(X.type,[nt,He,Je,vt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,Je);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!ye(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(S)),ye(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(ye(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(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(S,D,X,ie,ve,we){this.inputType=S,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(S,D){if(S.length<5)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.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 ve={},we=[];for(let St=2;StNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Dr=D.parse(vr,St,ie);if(!Dr)return null;ie=ie||Dr.type,we.push(Dr)}let We=D.parse(S[1],1,Yt);if(!We)return null;let ut=D.parse(S[S.length-1],S.length-1,ie);return ut?We.type.kind!=="value"&&D.concat(1).checkSubtype(X,We.type)?null:new Zr(X,ie,We,ve,we,ut):null}evaluate(S){let D=this.input.evaluate(S);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(S,D,X){this.type=S,this.branches=D,this.otherwise=X}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.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 we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class en{constructor(S,D,X,ie){this.type=S,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Je);if(!X||!ie)return null;if(!ft(X.type,[be(Yt),He,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,Je);return ve?new en(X.type,X,ie,ve):null}return new en(X.type,X,ie)}evaluate(S){let D=this.input.evaluate(S),X=this.beginIndex.evaluate(S),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(S)),ye(D,["string"]))return[...D].slice(X,ie).join("");if(ye(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(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ii(I,S){let D=I.length-1,X,ie,ve=0,we=D,We=0;for(;ve<=we;)if(We=Math.floor((ve+we)/2),X=I[We],ie=I[We+1],X<=S){if(We===D||SS))throw new oi("Input is not a number.");we=We-1}return 0}class Xi{constructor(S,D,X){this.type=S,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(S,D){if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(S[1],1,Je);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=We)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',St);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([We,vr])}return new Xi(ve,X,ie)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(S):X[ii(D,ie)].evaluate(S)}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,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,S){if(S===void 0&&(S=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?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var Ga=aa(Mn);function ma(I,S,D){return I+D*(S-I)}function oa(I,S,D){return I.map((X,ie)=>ma(X,S[ie],D))}let ka={number:ma,color:function(I,S,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,We]=oa(I.rgb,S.rgb,D);return new Wt(ie,ve,we,We,!1)}case"hcl":{let[ie,ve,we,We]=I.hcl,[ut,St,$t,vr]=S.hcl,Sr,Dr;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Dr=St)):(Sr=ie,$t!==1&&$t!==0||(Dr=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,ui,Gi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Br,$i([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Dr!=null?Dr:ma(ve,St,D),ma(we,$t,D),ma(We,vr,D)]);return new Wt(Jr,ui,Gi,cn,!1)}case"lab":{let[ie,ve,we,We]=$i(oa(I.lab,S.lab,D));return new Wt(ie,ve,we,We,!1)}}},array:oa,padding:function(I,S,D){return new Or(oa(I.values,S.values,D))},variableAnchorOffsetCollection:function(I,S,D){let X=I.values,ie=S.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${S.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:St}}}if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,Je),!ve)return null;let We=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=tt:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let St=0;St=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Dr,ut);if(!Jr)return null;ut=ut||Jr.type,We.push([$t,Jr])}return fe(ut,Je)||fe(ut,tt)||fe(ut,yr)||fe(ut,Re)||fe(ut,be(Je))?new so(ut,X,ie,ve,We):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(S);let we=ii(D,ie),We=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(S),St=X[we+1].evaluate(S);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,St,We);case"interpolate-hcl":return ka.color(ut,St,We,"hcl");case"interpolate-lab":return ka.color(ut,St,We,"lab")}}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Kr(I,S,D,X){let ie=X-D,ve=I-D;return ie===0?0:S===1?ve/ie:(Math.pow(S,ve)-1)/(Math.pow(S,ie)-1)}class Ia{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let We of S.slice(1)){let ut=D.parse(We,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(We=>Fe(ie,We.type));return new Ia(we?Yt:X,ve)}evaluate(S){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(S),X&&X instanceof gi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function Yo(I,S){return I==="=="||I==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function fa(I,S,D,X){return X.compare(S,D)===0}function kn(I,S,D){let X=I!=="=="&&I!=="!=";return class KWe{constructor(ve,we,We){this.type=nt,this.lhs=ve,this.rhs=we,this.collator=We,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let We=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(We,ut.type))return we.concat(1).error(`"${We}" comparisons are not supported for type '${Oe(ut.type)}'.`);let St=we.parse(ve[2],2,Yt);if(!St)return null;if(!Yo(We,St.type))return we.concat(2).error(`"${We}" comparisons are not supported for type '${Oe(St.type)}'.`);if(ut.type.kind!==St.type.kind&&ut.type.kind!=="value"&&St.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(St.type)}'.`);X&&(ut.type.kind==="value"&&St.type.kind!=="value"?ut=new an(St.type,[ut]):ut.type.kind!=="value"&&St.type.kind==="value"&&(St=new an(ut.type,[St])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&St.type.kind!=="string"&&ut.type.kind!=="value"&&St.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,cr),!$t)return null}return new KWe(ut,St,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),We=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),St=ti(We);if(ut.kind!==St.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${St.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),St=ti(We);if(ut.kind!=="string"||St.kind!=="string")return S(ve,we,We)}return this.collator?D(ve,we,We,this.collator.evaluate(ve)):S(ve,we,We)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,S,D){return S===D},fa),ys=kn("!=",function(I,S,D){return S!==D},function(I,S,D,X){return!fa(0,S,D,X)}),uo=kn("<",function(I,S,D){return S",function(I,S,D){return S>D},function(I,S,D,X){return X.compare(S,D)>0}),$a=kn("<=",function(I,S,D){return S<=D},function(I,S,D,X){return X.compare(S,D)<=0}),fo=kn(">=",function(I,S,D){return S>=D},function(I,S,D,X){return X.compare(S,D)>=0});class mn{constructor(S,D,X){this.type=cr,this.locale=X,this.caseSensitive=S,this.diacriticSensitive=D}static parse(S,D){if(S.length!==2)return D.error("Expected one argument.");let X=S[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,nt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,nt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,He),!we)?null:new mn(ie,ve,we)}evaluate(S){return new xr(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ra{constructor(S,D,X,ie,ve){this.type=He,this.number=S,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(S,D){if(S.length!==3)return D.error("Expected two arguments.");let X=D.parse(S[1],1,Je);if(!X)return null;let ie=S[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,He),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,He),!we))return null;let We=null;if(ie["min-fraction-digits"]&&(We=D.parse(ie["min-fraction-digits"],1,Je),!We))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,Je),!ut)?null:new ra(X,ve,we,We,ut)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(S){this.type=_r,this.sections=S}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=S.length-1;++we){let We=S[we];if(ve&&typeof We=="object"&&!Array.isArray(We)){ve=!1;let ut=null;if(We["font-scale"]&&(ut=D.parse(We["font-scale"],1,Je),!ut))return null;let St=null;if(We["text-font"]&&(St=D.parse(We["text-font"],1,be(He)),!St))return null;let $t=null;if(We["text-color"]&&($t=D.parse(We["text-color"],1,tt),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=St,vr.textColor=$t}else{let ut=D.parse(S[we],1,Yt);if(!ut)return null;let St=ut.type.kind;if(St!=="string"&&St!=="value"&&St!=="null"&&St!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(S){return new Nr(this.sections.map(D=>{let X=D.content.evaluate(S);return ti(X)===Ut?new Lr("",X,null,null,null):new Lr(tn(X),null,D.scale?D.scale.evaluate(S):null,D.font?D.font.evaluate(S).join(","):null,D.textColor?D.textColor.evaluate(S):null)}))}eachChild(S){for(let D of this.sections)S(D.content),D.scale&&S(D.scale),D.font&&S(D.font),D.textColor&&S(D.textColor)}outputDefined(){return!1}}class ws{constructor(S){this.type=Ut,this.input=S}static parse(S,D){if(S.length!==2)return D.error("Expected two arguments.");let X=D.parse(S[1],1,He);return X?new ws(X):D.error("No image name provided.")}evaluate(S){let D=this.input.evaluate(S),X=gi.fromString(D);return X&&S.availableImages&&(X.available=S.availableImages.indexOf(D)>-1),X}eachChild(S){S(this.input)}outputDefined(){return!1}}class Co{constructor(S){this.type=Je,this.input=S}static parse(S,D){if(S.length!==2)return D.error(`Expected 1 argument, but found ${S.length-1} instead.`);let X=D.parse(S[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(S){let D=this.input.evaluate(S);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(S){S(this.input)}outputDefined(){return!1}}let Po=8192;function Wi(I,S){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,S.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,S){let D=Math.pow(2,S.z);return[(ie=(I[0]/Po+S.x)/D,360*ie-180),(X=(I[1]/Po+S.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,S){I[0]=Math.min(I[0],S[0]),I[1]=Math.min(I[1],S[1]),I[2]=Math.max(I[2],S[0]),I[3]=Math.max(I[3],S[1])}function Ha(I,S){return!(I[0]<=S[0]||I[2]>=S[2]||I[1]<=S[1]||I[3]>=S[3])}function Sn(I,S,D){let X=I[0]-S[0],ie=I[1]-S[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,S,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[S[0]-I[0],S[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,S,D,X)||!Qa(D,X,I,S));var ie,ve}function Ba(I,S,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=We[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,S){for(let D of S)if(Ko(I,D))return!0;return!1}function Hi(I,S){for(let D of I)if(!Ko(D,S))return!1;for(let D=0;D0&&We<0||we<0&&We>0}function vn(I,S,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(S,I)}function vo(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let We of I)for(let ut of We){let St=[ut.x+ve[0],ut.y+ve[1]];la(St,S,D,ie),we.push(St)}return we}function As(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let St=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(S,vr),St.push(vr)}we.push(St)}if(S[2]-S[0]<=ie/2){(We=S)[0]=We[1]=1/0,We[2]=We[3]=-1/0;for(let ut of we)for(let St of ut)la(St,S,D,ie)}var We;return we}class ps{constructor(S,D){this.type=nt,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:We}=ve.geometry;we==="Polygon"&&ie.push(We),we==="MultiPolygon"&&ie.push(...We)}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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Ko(St,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Qo(St,We))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Hi(St,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Sa(St,We))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],S=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=S,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],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:S,compare:D}=this,X=S[I];for(;I>0;){let ie=I-1>>1,ve=S[ie];if(D(X,ve)>=0)break;S[I]=ve,I=ie}S[I]=X}_down(I){let{data:S,compare:D}=this,X=this.length>>1,ie=S[I];for(;I=0)break;S[I]=S[ve],I=ve}S[I]=ie}};function mo(I,S,D,X,ie){No(I,S,D,X||I.length-1,ie||Go)}function No(I,S,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=S-D+1,We=Math.log(ve),ut=.5*Math.exp(2*We/3),St=.5*Math.sqrt(We*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,S,Math.max(D,Math.floor(S-we*ut/ve+St)),Math.min(X,Math.floor(S+(ve-we)*ut/ve+St)),ie)}var $t=I[S],vr=D,Sr=X;for(jn(I,D,S),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=S&&(D=Sr+1),S<=Sr&&(X=Sr-1)}}function jn(I,S,D){var X=I[S];I[S]=I[D],I[D]=X}function Go(I,S){return IS?1:0}function Ys(I,S){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),S>1)for(let ve=0;ve1?(St=S[ut+1][0],$t=S[ut+1][1]):Dr>0&&(St+=vr/this.kx*Dr,$t+=Sr/this.ky*Dr)),vr=this.wrap(D[0]-St)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)S-=360;return S}}function _n(I,S){return S[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,S){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(S){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,S){if(!wo(S,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=S[0];X<=S[1];++X)Ps(D,I[X]);return D}function un(I){let S=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(S,X);return S}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,S,D){if(!$n(I)||!$n(S))return NaN;let X=0,ie=0;return I[2]S[2]&&(X=I[0]-S[2]),I[1]>S[3]&&(ie=I[1]-S[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,S))return 0}else if(es(S,I))return 0;let we=1/0;for(let We of I)for(let ut=0,St=We.length,$t=St-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let St=ut[1],$t=S?50:100;if(Vn(St)<=$t){if(!wo(St,I.length))return NaN;if(S){let vr=sa(I,St,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=St[0];vr<=St[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(St,S);rn(we,ve,X,I,We,vr[0]),rn(we,ve,X,I,We,vr[1])}}return ve}function yo(I,S,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let We=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;We.length>0;){let ut=We.pop();if(ut[0]>=we)continue;let St=ut[1],$t=ut[2],vr=S?50:100,Sr=X?50:100;if(Vn(St)<=vr&&Vn($t)<=Sr){if(!wo(St,I.length)&&wo($t,D.length))return NaN;let Dr;if(S&&X)Dr=Ja(I,St,D,$t,ie),we=Math.min(we,Dr);else if(S&&!X){let Jr=I.slice(St[0],St[1]+1);for(let ui=$t[0];ui<=$t[1];++ui)if(Dr=qn(D[ui],Jr,ie),we=Math.min(we,Dr),we===0)return we}else if(!S&&X){let Jr=D.slice($t[0],$t[1]+1);for(let ui=St[0];ui<=St[1];++ui)if(Dr=qn(I[ui],Jr,ie),we=Math.min(we,Dr),we===0)return we}else Dr=lo(I,St,D,$t,ie),we=Math.min(we,Dr)}else{let Dr=Ra(St,S),Jr=Ra($t,X);Pa(We,we,ie,I,D,Dr[0],Jr[0]),Pa(We,we,ie,I,D,Dr[0],Jr[1]),Pa(We,we,ie,I,D,Dr[1],Jr[0]),Pa(We,we,ie,I,D,Dr[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(S=>({type:"Polygon",coordinates:S})):I.type==="MultiLineString"?I.coordinates.map(S=>({type:"LineString",coordinates:S})):I.type==="MultiPoint"?I.coordinates.map(S=>({type:"Point",coordinates:S})):[I]}class Ao{constructor(S,D){this.type=Je,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!1,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!1,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!1,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!0,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!0,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!0,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(St=>St.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),We=1/0;for(let ut of X)for(let St of ve){switch(ut.type){case"Point":We=Math.min(We,to([ut.coordinates],!1,St,we,We));break;case"LineString":We=Math.min(We,to(ut.coordinates,!0,St,we,We));break;case"Polygon":We=Math.min(We,Na(St,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:en,step:Xi,string:an,"to-boolean":Ri,"to-color":Ri,"to-number":Ri,"to-string":Ri,var:ct,within:ps,distance:Ao};class _a{constructor(S,D,X,ie){this.name=S,this.type=D,this._evaluate=X,this.args=ie}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,D){let X=S[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,We=we.filter(([St])=>!Array.isArray(St)||St.length===S.length-1),ut=null;for(let[St,$t]of We){ut=new bi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Dr=1;Dr{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=S?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 S=!0;return I.eachChild(D=>{S&&!Wa(D)&&(S=!1)}),S}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let S=!0;return I.eachChild(D=>{S&&!To(D)&&(S=!1)}),S}function ts(I,S){if(I instanceof _a&&S.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,S)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(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,S){let D=S.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(S)?"exponential":"interval");if(D||S.type==="padding"){let $t=D?Wt.parse:Or.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:S.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let We,ut,St;if(ve==="exponential")We=fl;else if(ve==="interval")We=Ds;else if(ve==="categorical"){We=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];St=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);We=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},ui)=>fl({stops:Sr,base:I.base},S,Jr).evaluate(Jr,ui)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>We(I,S,vr,ut,St)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,S.default):We(I,S,Sr,ut,St)}}}function $s(I,S,D){return I!==void 0?I:S!==void 0?S:D!==void 0?D:void 0}function us(I,S,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,S.default)}function Ds(I,S,D){if(oo(D)!=="number")return $s(I.default,S.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=ii(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,S,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,S.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 ve=ii(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Dr){let Jr=Dr-Sr,ui=$t-Sr;return Jr===0?0:vr===1?ui/Jr:(Math.pow(vr,ui)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),We=I.stops[ve][1],ut=I.stops[ve+1][1],St=ka[S.type]||ea;return typeof We.evaluate=="function"?{evaluate(...$t){let vr=We.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return St(vr,Sr,we,I.colorSpace)}}:St(We,ut,we,I.colorSpace)}function as(I,S,D){switch(S.type){case"color":D=Wt.parse(D);break;case"formatted":D=Nr.fromString(D.toString());break;case"resolvedImage":D=gi.fromString(D.toString());break;case"padding":D=Or.parse(D);break;default:oo(D)===S.type||S.type==="enum"&&S.values[D]||(D=void 0)}return $s(D,I.default,S.default)}_a.register(Dn,{error:[{kind:"error"},[He],(I,[S])=>{throw new oi(S.evaluate(I))}],typeof:[He,[Yt],(I,[S])=>Oe(ti(S.evaluate(I)))],"to-rgba":[be(Je,4),[tt],(I,[S])=>{let[D,X,ie,ve]=S.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[tt,[Je,Je,Je],Ws],rgba:[tt,[Je,Je,Je,Je],Ws],has:{type:nt,overloads:[[[He],(I,[S])=>Ca(S.evaluate(I),I.properties())],[[He,It],(I,[S,D])=>Ca(S.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[He],(I,[S])=>Es(S.evaluate(I),I.properties())],[[He,It],(I,[S,D])=>Es(S.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[He],(I,[S])=>Es(S.evaluate(I),I.featureState||{})],properties:[It,[],I=>I.properties()],"geometry-type":[He,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[Je,[],I=>I.globals.zoom],"heatmap-density":[Je,[],I=>I.globals.heatmapDensity||0],"line-progress":[Je,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[Je,Ts(Je),(I,S)=>{let D=0;for(let X of S)D+=X.evaluate(I);return D}],"*":[Je,Ts(Je),(I,S)=>{let D=1;for(let X of S)D*=X.evaluate(I);return D}],"-":{type:Je,overloads:[[[Je,Je],(I,[S,D])=>S.evaluate(I)-D.evaluate(I)],[[Je],(I,[S])=>-S.evaluate(I)]]},"/":[Je,[Je,Je],(I,[S,D])=>S.evaluate(I)/D.evaluate(I)],"%":[Je,[Je,Je],(I,[S,D])=>S.evaluate(I)%D.evaluate(I)],ln2:[Je,[],()=>Math.LN2],pi:[Je,[],()=>Math.PI],e:[Je,[],()=>Math.E],"^":[Je,[Je,Je],(I,[S,D])=>Math.pow(S.evaluate(I),D.evaluate(I))],sqrt:[Je,[Je],(I,[S])=>Math.sqrt(S.evaluate(I))],log10:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))/Math.LN10],ln:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))],log2:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))/Math.LN2],sin:[Je,[Je],(I,[S])=>Math.sin(S.evaluate(I))],cos:[Je,[Je],(I,[S])=>Math.cos(S.evaluate(I))],tan:[Je,[Je],(I,[S])=>Math.tan(S.evaluate(I))],asin:[Je,[Je],(I,[S])=>Math.asin(S.evaluate(I))],acos:[Je,[Je],(I,[S])=>Math.acos(S.evaluate(I))],atan:[Je,[Je],(I,[S])=>Math.atan(S.evaluate(I))],min:[Je,Ts(Je),(I,S)=>Math.min(...S.map(D=>D.evaluate(I)))],max:[Je,Ts(Je),(I,S)=>Math.max(...S.map(D=>D.evaluate(I)))],abs:[Je,[Je],(I,[S])=>Math.abs(S.evaluate(I))],round:[Je,[Je],(I,[S])=>{let D=S.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[Je,[Je],(I,[S])=>Math.floor(S.evaluate(I))],ceil:[Je,[Je],(I,[S])=>Math.ceil(S.evaluate(I))],"filter-==":[nt,[He,Yt],(I,[S,D])=>I.properties()[S.value]===D.value],"filter-id-==":[nt,[Yt],(I,[S])=>I.id()===S.value],"filter-type-==":[nt,[He],(I,[S])=>I.geometryType()===S.value],"filter-<":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=S.value;return typeof D==typeof X&&D":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>X}],"filter-<=":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D<=X}],"filter->=":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>=X}],"filter-has":[nt,[Yt],(I,[S])=>S.value in I.properties()],"filter-has-id":[nt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[nt,[be(He)],(I,[S])=>S.value.indexOf(I.geometryType())>=0],"filter-id-in":[nt,[be(Yt)],(I,[S])=>S.value.indexOf(I.id())>=0],"filter-in-small":[nt,[He,be(Yt)],(I,[S,D])=>D.value.indexOf(I.properties()[S.value])>=0],"filter-in-large":[nt,[He,be(Yt)],(I,[S,D])=>function(X,ie,ve,we){for(;ve<=we;){let We=ve+we>>1;if(ie[We]===X)return!0;ie[We]>X?we=We-1:ve=We+1}return!1}(I.properties()[S.value],D.value,0,D.value.length-1)],all:{type:nt,overloads:[[[nt,nt],(I,[S,D])=>S.evaluate(I)&&D.evaluate(I)],[Ts(nt),(I,S)=>{for(let D of S)if(!D.evaluate(I))return!1;return!0}]]},any:{type:nt,overloads:[[[nt,nt],(I,[S,D])=>S.evaluate(I)||D.evaluate(I)],[Ts(nt),(I,S)=>{for(let D of S)if(D.evaluate(I))return!0;return!1}]]},"!":[nt,[nt],(I,[S])=>!S.evaluate(I)],"is-supported-script":[nt,[He],(I,[S])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(S.evaluate(I))}],upcase:[He,[He],(I,[S])=>S.evaluate(I).toUpperCase()],downcase:[He,[He],(I,[S])=>S.evaluate(I).toLowerCase()],concat:[He,Ts(Yt),(I,S)=>S.map(D=>tn(D.evaluate(I))).join("")],"resolved-locale":[He,[cr],(I,[S])=>S.evaluate(I).resolvedLocale()]});class Ma{constructor(S,D){var X;this.expression=S,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Or.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._evaluator.globals=S,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(S,D,X,ie,ve,we){this._evaluator.globals=S,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!=We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(We)} instead.`);return We}catch(We){return this._warningHistory[We.message]||(this._warningHistory[We.message]=!0,typeof console!="undefined"&&console.warn(We.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,S){let D=new bi(Dn,Ho,[],S?function(ie){let ve={color:tt,string:He,number:Je,enum:He,boolean:nt,formatted:_r,padding:yr,resolvedImage:Ut,variableAnchorOffsetCollection:Re};return ie.type==="array"?be(ve[ie.value]||Yt,ie.length):ve[ie.type]}(S):void 0),X=D.parse(I,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,S)):qa(D.errors)}class gs{constructor(S,D){this.kind=S,this._styleExpression=D,this.isStateDependent=S!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}}class Vo{constructor(S,D,X,ie){this.kind=S,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=S!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}interpolationFactor(S,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,S,D,X):0}}function Do(I,S){let D=ho(I,S);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(S))return qa([new ot("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(S))return qa([new ot("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof ot?qa([we]):we instanceof so&&!ko(S)?qa([new ot("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(S,D){this._parameters=S,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(S){return new Lo(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function xs(I){let S=null;if(I instanceof Xr)S=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(S=xs(D),S)break}else(I instanceof Xi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(S=I);return S instanceof ot||I.eachChild(D=>{let X=xs(D);X instanceof ot?S=X:!S&&X?S=new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&X&&S!==X&&(S=new ot("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}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 S of I.slice(1))if(!ks(S)&&typeof S!="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 S=ho(I,Ea);if(S.result==="error")throw new Error(S.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>S.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,S){return IS?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?bs(I[1],I[2],S):S==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):S==="all"?["all"].concat(I.slice(1).map(Gs)):S==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):S==="in"?zs(I[1],I.slice(2)):S==="!in"?Aa(zs(I[1],I.slice(2))):S==="has"?$o(I[1]):S!=="!has"||Aa($o(I[1]));var D}function bs(I,S,D){switch(I){case"$type":return[`filter-type-${D}`,S];case"$id":return[`filter-id-${D}`,S];default:return[`filter-${D}`,I,S]}}function zs(I,S){if(S.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(D=>typeof D!=typeof S[0])?["filter-in-large",I,["literal",S.sort(Oo)]]:["filter-in-small",I,["literal",S]]}}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 S=typeof I;if(S==="number"||S==="boolean"||S==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(S,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let S=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},We=D!=="categorical"&&I.value.property===void 0,ut=!We,St=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=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(D==="identity")return[new Et(Dr.key,Dr.value,'identity function may not have a "stops" property')];let Jr=[],ui=Dr.value;return Jr=Jr.concat(qo({key:Dr.key,value:ui,valueSpec:Dr.valueSpec,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,arrayElementValidator:vr})),oo(ui)==="array"&&ui.length===0&&Jr.push(new Et(Dr.key,ui,"array must have at least one stop")),Jr},default:function(Dr){return Dr.validateSpec({key:Dr.key,value:Dr.value,valueSpec:S,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec})}}});return D==="identity"&&We&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):We&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!St||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Dr){let Jr=[],ui=Dr.value,Gi=Dr.key;if(oo(ui)!=="array")return[new Et(Gi,ui,`array expected, ${oo(ui)} found`)];if(ui.length!==2)return[new Et(Gi,ui,`array length 2 expected, length ${ui.length} found`)];if(St){if(oo(ui[0])!=="object")return[new Et(Gi,ui,`object expected, ${oo(ui[0])} found`)];if(ui[0].zoom===void 0)return[new Et(Gi,ui,"object stop key must have zoom")];if(ui[0].value===void 0)return[new Et(Gi,ui,"object stop key must have value")];if(ve&&ve>po(ui[0].zoom))return[new Et(Gi,ui[0].zoom,"stop zoom values must appear in ascending order")];po(ui[0].zoom)!==ve&&(ve=po(ui[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Gi}[0]`,value:ui[0],valueSpec:{zoom:{}},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Gi}[0]`,value:ui[0],valueSpec:{},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec},ui));return Qs(go(ui[1]))?Jr.concat([new Et(`${Gi}[1]`,ui[1],"expressions are not allowed in function stops.")]):Jr.concat(Dr.validateSpec({key:`${Gi}[1]`,value:ui[1],valueSpec:S,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec}))}function Sr(Dr,Jr){let ui=oo(Dr.value),Gi=po(Dr.value),cn=Dr.value!==null?Dr.value:Jr;if(X){if(ui!==X)return[new Et(Dr.key,cn,`${ui} stop domain type must match previous stop domain type ${X}`)]}else X=ui;if(ui!=="number"&&ui!=="string"&&ui!=="boolean")return[new Et(Dr.key,cn,"stop domain value must be a number, string, or boolean")];if(ui!=="number"&&D!=="categorical"){let Za=`number expected, ${ui} found`;return ln(S)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Dr.key,cn,Za)]}return D!=="categorical"||ui!=="number"||isFinite(Gi)&&Math.floor(Gi)===Gi?D!=="categorical"&&ui==="number"&&ie!==void 0&&Ginew Et(`${I.key}${X.key}`,I.value,X.message));let D=S.value.expression||S.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(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 Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(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 Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let S=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let S=I.value,D=I.key;if(oo(S)!=="array")return[new Et(D,S,`array expected, ${oo(S)} found`)];let X=I.styleSpec,ie,ve=[];if(S.length<1)return[new Et(D,S,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:S[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&po(S[1])==="$type"&&ve.push(new Et(D,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&ve.push(new Et(D,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(ie=oo(S[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,S[1],`string expected, ${ie} found`)));for(let we=2;we{St in D&&S.push(new Et(X,D[St],`"${St}" is prohibited for ref layers`))}),ie.layers.forEach(St=>{po(St.id)===We&&(ut=St)}),ut?ut.ref?S.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):S.push(new Et(X,D.ref,`ref layer "${We}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],St=ut&&po(ut.type);ut?St==="vector"&&we==="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):St!=="raster-dem"&&we==="hillshade"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):St==="raster"&&we!=="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):St!=="vector"||D["source-layer"]?St==="raster-dem"&&we!=="hillshade"?S.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||St==="geojson"&&ut.lineMetrics||S.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):S.push(new Et(X,D.source,`source "${D.source}" not found`))}else S.push(new Et(X,D,'missing required property "source"'));return S=S.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":St=>Hs(Ae({layerType:we},St))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":St=>el(Ae({layerType:we},St))}})}})),S}function tl(I){let S=I.value,D=I.key,X=oo(S);return X!=="string"?[new Et(D,S,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:S}){if(oo(S)==="string")return tl({key:I,value:S});{let D=[];for(let X in S)D.push(...tl({key:`${I}.${X}`,value:S[X]}));return D}}};function hl(I){let S=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!S.type)return[new Et(D,S,'"type" is required')];let we=po(S.type),We;switch(we){case"vector":case"raster":return We=ss({key:D,value:S,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),We;case"raster-dem":return We=function(ut){var St;let $t=(St=ut.sourceName)!==null&&St!==void 0?St:"",vr=ut.value,Sr=ut.styleSpec,Dr=Sr.source_raster_dem,Jr=ut.style,ui=[],Gi=oo(vr);if(vr===void 0)return ui;if(Gi!=="object")return ui.push(new Et("source_raster_dem",vr,`object expected, ${Gi} found`)),ui;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?ui.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Dr[La]?ui=ui.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Dr[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):ui.push(new Et(La,vr[La],`unknown property "${La}"`));return ui}({sourceName:D,value:S,style:I.style,styleSpec:X,validateSpec:ve}),We;case"geojson":if(We=ss({key:D,value:S,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),S.cluster)for(let ut in S.clusterProperties){let[St,$t]=S.clusterProperties[ut],vr=typeof St=="string"?[St,["accumulated"],["get",ut]]:St;We.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),We.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return We;case"video":return ss({key:D,value:S,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:S,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(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:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let S=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",S,`object expected, ${we} found`)]),ve;for(let We in S){let ut=We.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:We,value:S[We],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)])}return ve}function Ms(I){let S=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("sky",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we}function jo(I){let S=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",S,`object expected, ${we} found`)]),ve;for(let We in S)ve=ve.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return ve}function Rs(I){let S=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&S.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&S.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),S=S.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return S}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let S=I.value,D=I.key,X=oo(S);return X!=="boolean"?[new Et(D,S,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let S=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(S,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(S,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 S=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("projection",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we},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 S=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(S,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:S,validateSpec:Bs}))),mr(D)}function wr(I){return function(S){return I(W1(_m({},S),{validateSpec:Bs}))}}function mr(I){return[].concat(I).sort((S,D)=>S.line-D.line)}function Fr(I){return function(...S){return mr(I.apply(this,S))}}Vt.source=Fr(wr(hl)),Vt.sprite=Fr(wr(Rs)),Vt.glyphs=Fr(wr(Tt)),Vt.light=Fr(wr(Fa)),Vt.sky=Fr(wr(Ms)),Vt.terrain=Fr(wr(jo)),Vt.layer=Fr(wr(Ro)),Vt.filter=Fr(wr(vs)),Vt.paintProperty=Fr(wr(el)),Vt.layoutProperty=Fr(wr(Hs));let _i=Vt,Si=_i.light,Ci=_i.sky,Ki=_i.paintProperty,Fn=_i.layoutProperty;function Pi(I,S){let D=!1;if(S&&S.length)for(let X of S)I.fire(new xe(new Error(X.message))),D=!0;return D}class di{constructor(S,D,X){let ie=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let we=new Int32Array(this.arrayBuffer);S=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(We[Dr]=!0,we.push($t[Dr])):We[Dr]=!1}}}}_forEachCell(S,D,X,ie,ve,we,We,ut){let St=this._convertToCellCoord(S),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Dr=St;Dr<=vr;Dr++)for(let Jr=$t;Jr<=Sr;Jr++){let ui=this.d*Jr+Dr;if((!ut||ut(this._convertFromCellCoord(Dr),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Dr+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,S,D,X,ie,ui,we,We,ut))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,S)}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 S=ta(I)||"Object";if(!Li[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:D}=Li[S];if(!D)throw new Error(`can't deserialize unregistered class ${S}`);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 ve=I[ie];X[ie]=Li[S].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(S,D){let X=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=S,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 S of I)if(bl(S.charCodeAt(0)))return!0;return!1}function Cs(I){for(let S of I)if(!xl(S.charCodeAt(0)))return!1;return!0}function Ks(I){let S=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(S.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(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===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,S){return!(!S&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let S of I)if(Vl(S.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(S,D){this.zoom=S,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(S){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(S,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,D=S-Math.floor(S),X=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(S,D){this.property=S,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Or.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?S.specification.default:D,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,D,X){return this.property.possiblyEvaluate(this,S,D,X)}}class ll{constructor(S){this.property=S,this.value=new sl(S,void 0)}transitioned(S,D){return new zl(this.property,this.value,D,L({},S.transition,this.transition),S.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class nl{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return m(this._values[S].value.value)}setValue(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].value=new sl(this._values[S].property,D===null?void 0:m(D))}getTransition(S){return m(this._values[S].transition)}setTransition(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].transition=m(D)||void 0}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X);let ie=this.getTransition(D);ie!==void 0&&(S[`${D}-transition`]=ie)}return S}transitioned(S,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(S,D._values[ie]);return X}untransitioned(){let S=new Ml(this._properties);for(let D of Object.keys(this._values))S._values[D]=this._values[D].untransitioned();return S}}class zl{constructor(S,D,X,ie,ve){this.property=S,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,S.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(S,D,X){let ie=S.now||0,ve=this.value.possiblyEvaluate(S,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let St=ut*ut,$t=St*ut;return 4*(ut<.5?$t:3*(ut-St)+$t-.75)}(We))}}return ve}}class Ml{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Rl{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return m(this._values[S].value)}setValue(S,D){this._values[S]=new sl(this._values[S].property,D===null?void 0:m(D))}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X)}return S}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}}class Al{constructor(S,D,X){this.property=S,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,D,X,ie){return this.property.evaluate(this.value,this.parameters,S,D,X,ie)}}class Ll{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class ms{constructor(S){this.specification=S}possiblyEvaluate(S,D){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(D)}interpolate(S,D,X){let ie=ka[this.specification.type];return ie?ie(S,D,X):S}}class Os{constructor(S,D){this.specification=S,this.overrides=D}possiblyEvaluate(S,D,X,ie){return new Al(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(D,null,{},X,ie)}:S.expression,D)}interpolate(S,D,X){if(S.value.kind!=="constant"||D.value.kind!=="constant")return S;if(S.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},S.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(S.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},S.parameters)}return S}evaluate(S,D,X,ie,ve,we){return S.kind==="constant"?S.value:S.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(S,D,X,ie){if(S.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie),we=S.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,We=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:We},D)}if(S.expression.kind==="camera"){let ve=this._calculate(S.expression.evaluate({zoom:D.zoom-1}),S.expression.evaluate({zoom:D.zoom}),S.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,S.expression,D)}evaluate(S,D,X,ie,ve,we){if(S.kind==="source"){let We=S.evaluate(D,X,ie,ve,we);return this._calculate(We,We,We,D)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),S.evaluate({zoom:Math.floor(D.zoom)},X,ie),S.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):S.value}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Gl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){if(S.value!==void 0){if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(S.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),S.expression.evaluate(new cs(Math.floor(D.zoom),D)),S.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Nl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){return!!S.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in S){let X=S[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Mi("DataDrivenProperty",Os),Mi("DataConstantProperty",ms),Mi("CrossFadedDataDrivenProperty",Xl),Mi("CrossFadedProperty",Gl),Mi("ColorRampProperty",Nl);let w="-transition";class q extends Ne{constructor(S,D){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new nl(D.paint);for(let X in S.paint)this.setPaintProperty(X,S.paint[X],{validate:!1});for(let X in S.layout)this.setLayoutProperty(X,S.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${S}`,S,D,X)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,D):this.visibility=D)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,D,X={}){if(D!=null&&this._validate(Ki,`layers.${this.id}.paint.${S}`,S,D,X))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[S],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),We=ie.value;this._transitionablePaint.setValue(S,D),this._handleSpecialPaintPropertyUpdate(S);let ut=this._transitionablePaint._values[S].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(S,We,ut)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,D,X){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,D){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,D)}serialize(){let S={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&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(S,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,S.call(_i,{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 S in this.paint._values){let D=this.paint.get(S);if(D instanceof Al&&ln(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(S,D){this._structArray=S,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,D){return S._trim(),D&&(S.isTransferred=!0,D.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let D=Object.create(this.prototype);return D.arrayBuffer=S.arrayBuffer,D.length=S.length,D.capacity=S.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(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,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,S=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=rt(D,Math.max(S,ve)),We=ie.components||1;return X=Math.max(X,ve),D+=ve*We,{name:ie.name,type:ie.type,components:We,offset:we}}),size:rt(D,Math.max(X,S)),alignment:S}}function rt(I,S){return Math.ceil(I/S)*S}class mt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.int16[ie+0]=D,this.int16[ie+1]=X,S}}mt.prototype.bytesPerElement=4,Mi("StructArrayLayout2i4",mt);class Ft extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,S}}Ft.prototype.bytesPerElement=6,Mi("StructArrayLayout3i6",Ft);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,S}}ir.prototype.bytesPerElement=8,Mi("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}or.prototype.bytesPerElement=12,Mi("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=4*S,St=8*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[St+4]=ie,this.uint8[St+5]=ve,this.uint8[St+6]=we,this.uint8[St+7]=We,S}}kr.prototype.bytesPerElement=8,Mi("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.float32[ie+0]=D,this.float32[ie+1]=X,S}}Vr.prototype.bytesPerElement=8,Mi("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,St,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,S,D,X,ie,ve,we,We,ut,St,$t)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr){let Sr=10*S;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=We,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=St,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,S}}he.prototype.bytesPerElement=20,Mi("StructArrayLayout10ui20",he);class Me extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr){let Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr){let Jr=12*S;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=We,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=St,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Dr,S}}Me.prototype.bytesPerElement=24,Mi("StructArrayLayout4i4ui4i24",Me);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}qe.prototype.bytesPerElement=12,Mi("StructArrayLayout3f12",qe);class Ve extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint32[1*S+0]=D,S}}Ve.prototype.bytesPerElement=4,Mi("StructArrayLayout1ul4",Ve);class lt extends ue{_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(S,D,X,ie,ve,we,We,ut,St){let $t=this.length;return this.resize($t+1),this.emplace($t,S,D,X,ie,ve,we,We,ut,St)}emplace(S,D,X,ie,ve,we,We,ut,St,$t){let vr=10*S,Sr=5*S;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=We,this.uint32[Sr+3]=ut,this.uint16[vr+8]=St,this.uint16[vr+9]=$t,S}}lt.prototype.bytesPerElement=20,Mi("StructArrayLayout6i1ul2ui20",lt);class it extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}it.prototype.bytesPerElement=12,Mi("StructArrayLayout2i2i2i12",it);class pt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,S,D,X,ie,ve)}emplace(S,D,X,ie,ve,we){let We=4*S,ut=8*S;return this.float32[We+0]=D,this.float32[We+1]=X,this.float32[We+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,S}}pt.prototype.bytesPerElement=16,Mi("StructArrayLayout2f1f2i16",pt);class Ht extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=16*S,St=4*S,$t=8*S;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[St+1]=ie,this.float32[St+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=We,S}}Ht.prototype.bytesPerElement=16,Mi("StructArrayLayout2ub2f2i16",Ht);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,S}}nr.prototype.bytesPerElement=6,Mi("StructArrayLayout3ui6",nr);class fr extends ue{_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(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za){let Rn=24*S,La=12*S,So=48*S;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=We,this.uint32[La+4]=ut,this.uint16[Rn+10]=St,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Dr,this.uint8[So+36]=Jr,this.uint8[So+37]=ui,this.uint8[So+38]=Gi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,S}}fr.prototype.bytesPerElement=48,Mi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fr);class Ar extends ue{_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(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*S,Lu=16*S;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=We,this.int16[Xs+6]=ut,this.int16[Xs+7]=St,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Dr,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=ui,this.uint16[Xs+14]=Gi,this.uint16[Xs+15]=cn,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,S}}Ar.prototype.bytesPerElement=64,Mi("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.float32[1*S+0]=D,S}}Ir.prototype.bytesPerElement=4,Mi("StructArrayLayout1f4",Ir);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[6*S+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}ri.prototype.bytesPerElement=12,Mi("StructArrayLayout1ui2f12",ri);class li extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=4*S;return this.uint32[2*S+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,S}}li.prototype.bytesPerElement=8,Mi("StructArrayLayout1ul2ui8",li);class Ei extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,S}}Ei.prototype.bytesPerElement=4,Mi("StructArrayLayout2ui4",Ei);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint16[1*S+0]=D,S}}hn.prototype.bytesPerElement=2,Mi("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,S}}Zn.prototype.bytesPerElement=16,Mi("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 lt{get(S){return new Yn(this,S)}}Mi("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(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends fr{get(S){return new Fo(this,S)}}Mi("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(S){this._structArray.uint32[this._pos4+12]=S}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 Ar{get(S){return new Us(this,S)}}Mi("SymbolInstanceArray",ml);class au extends Ir{getoffsetX(S){return this.float32[1*S+0]}}Mi("GlyphOffsetArray",au);class Sl extends Ft{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Mi("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 Ol extends ri{get(S){return new Yl(this,S)}}Mi("TextAnchorOffsetArray",Ol);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 li{get(S){return new ou(this,S)}}Mi("FeatureIndexArray",Pu);class nu extends mt{}class tu extends mt{}class Hu extends mt{}class $u extends or{}class Ku extends kr{}class Wu extends Vr{}class ju extends he{}class sf extends Me{}class _f extends qe{}class Qu extends Ve{}class ef extends it{}class Z extends Ht{}class se extends nr{}class Pe extends Ei{}let Ze=Ue([{name:"a_pos",components:2,type:"Int16"}],4),{members:et}=Ze;class st{constructor(S=[]){this.segments=S}prepareSegment(S,D,X,ie){let ve=this.segments[this.segments.length-1];return S>st.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${st.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!ve||ve.vertexLength+S>st.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let S of this.segments)for(let D in S.vaos)S.vaos[D].destroy()}static simpleSegment(S,D,X,ie){return new st([{vertexOffset:S,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,S){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(S),0,255)}st.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Mi("SegmentVector",st);let _t=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 hr={exports:{}},Cr={exports:{}};Cr.exports=function(I,S){var D,X,ie,ve,we,We,ut,St;for(X=I.length-(D=3&I.length),ie=S,we=3432918353,We=461845907,St=0;St>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(St+2))<<16;case 2:ut^=(255&I.charCodeAt(St+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(St)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&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,fi={exports:{}};fi.exports=function(I,S){for(var D,X=I.length,ie=S^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<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,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Bi=fi.exports;hr.exports=$r,hr.exports.murmur3=$r,hr.exports.murmur2=Bi;var fn=o(hr.exports);class mi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,D,X,ie){this.ids.push(zi(S)),this.positions.push(D,X,ie)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(S),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(S,D){let X=new Float64Array(S.ids),ie=new Uint32Array(S.positions);return ji(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(S){let D=new mi;return D.ids=S.ids,D.positions=S.positions,D.indexed=!0,D}}function zi(I){let S=+I;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:fn(String(I))}function ji(I,S,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(S,3*ve,3*we),pn(S,3*ve+1,3*we+1),pn(S,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(S,D,X){S.set(X.constantOr(this.value))}getBinding(S,D,X){return this.type==="color"?new no(S,D):new wi(S,D)}}class Pl{constructor(S,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=S.tlbr}setUniform(S,D,X,ie){let ve=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;ve&&S.set(ve)}getBinding(S,D,X){return X.substr(0,9)==="u_pattern"?new xo(S,D):new wi(S,D)}}class pu{constructor(S,D,X,ie){this.expression=S,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(S,D,X,ie,ve){let we=this.paintVertexArray.length,We=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(S),this._setPaintValue(we,S,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(S,D,ve)}_setPaintValue(S,D,X){if(this.type==="color"){let ie=js(X);for(let ve=S;ve`u_${We}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(We=>({name:`a_${We}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(S,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),We=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(ut,S,we,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(S,D,ve,we)}_setPaintValue(S,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let We=S;We`#define HAS_UNIFORM_${ie}`))}return S}getBinderAttributes(){let S=[];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 S)this.programConfigurations[ie.id]=new Xu(ie,D,X);this.needsUpload=!1,this._featureMap=new mi,this._bufferOffset=0}populatePaintArrays(S,D,X,ie,ve,we){for(let We in this.programConfigurations)this.programConfigurations[We].populatePaintArrays(S,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(S,this._featureMap,D,ve,ie)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function tf(I,S){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(`${S}-`,"").replace(/-/g,"_")]}function ds(I,S,D){let X={color:{source:Vr,composite:Zn},number:{source:Ir,composite:Vr}},ie=function(ve){return{"line-pattern":{source:ju,composite:ju},"fill-pattern":{source:ju,composite:ju},"fill-extrusion-pattern":{source:ju,composite:ju}}[ve]}(I);return ie&&ie[D]||X[S][D]}Mi("ConstantBinder",El),Mi("CrossFadedConstantBinder",Pl),Mi("SourceExpressionBinder",pu),Mi("CrossFadedCompositeBinder",fu),Mi("CompositeExpressionBinder",Il),Mi("ProgramConfiguration",Xu,{omit:["_buffers"]}),Mi("ProgramConfigurationSet",Vu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function lf(I){let S=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function hf(I,S){return{type:I.type,id:I.id,properties:I.properties,geometry:S?lf(I):[]}}function Mf(I,S,D,X,ie){I.emplaceBack(2*S+(X+1)/2,2*D+(ie+1)/2)}class pf{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new st,this.programConfigurations=new Vu(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){let ie=this.layers[0],ve=[],we=null,We=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),We=!we.isConstant());for(let{feature:ut,id:St,index:$t,sourceLayerIndex:vr}of S){let Sr=this.layers[0]._featureFilter.needGeometry,Dr=hf(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Dr,X))continue;let Jr=We?we.evaluate(Dr,{},X):void 0,ui={id:St,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Dr.geometry:lf(ut),patterns:{},sortKey:Jr};ve.push(ui)}We&&ve.sort((ut,St)=>ut.sortKey-St.sortKey);for(let ut of ve){let{geometry:St,index:$t,sourceLayerIndex:vr}=ut,Sr=S[$t].feature;this.addFeature(ut,St,$t,X),D.featureIndex.insert(Sr,St,$t,vr,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,et),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,D,X,ie){for(let ve of D)for(let we of ve){let We=we.x,ut=we.y;if(We<0||We>=Wl||ut<0||ut>=Wl)continue;let St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),$t=St.vertexLength;Mf(this.layoutVertexArray,We,ut,-1,-1),Mf(this.layoutVertexArray,We,ut,1,-1),Mf(this.layoutVertexArray,We,ut,1,1),Mf(this.layoutVertexArray,We,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),St.vertexLength+=4,St.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,{},ie)}}function fc(I,S){for(let D=0;D1){if(Qr(I,S))return!0;for(let X=0;X1?D:D.sub(S)._mult(ie)._add(S))}function on(I,S){let D,X,ie,ve=!1;for(let we=0;weS.y!=ie.y>S.y&&S.x<(ie.x-X.x)*(S.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,S){let D=!1;for(let X=0,ie=I.length-1;XS.y!=we.y>S.y&&S.x<(we.x-ve.x)*(S.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,S,D){let X=D[0],ie=D[2];if(I.xie.x&&S.x>ie.x||I.yie.y&&S.y>ie.y)return!1;let ve=F(I,S,D[0]);return ve!==F(I,S,D[1])||ve!==F(I,S,D[2])||ve!==F(I,S,D[3])}function wn(I,S,D){let X=S.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(S.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,S,D,X,ie){if(!S[0]&&!S[1])return I;let ve=l.convert(S)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let We=0;WeUi(Gi,ui))}(St,ut),Dr=vr?$t*We:$t;for(let Jr of ie)for(let ui of Jr){let Gi=vr?ui:Ui(ui,ut),cn=Dr,Za=hs([],[ui.x,ui.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Gi,cn))return!0}return!1}}function Ui(I,S){let D=hs([],[I.x,I.y,0,1],S);return new l(D[0]/D[3],D[1]/D[3])}class ro extends pf{}let na;Mi("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(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:S,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==S*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${S*D*X}`)}else ie=new Uint8Array(S*D*X);return I.width=S,I.height=D,I.data=ie,I}function Va(I,{width:S,height:D},X){if(S===I.width&&D===I.height)return;let ie=In({},{width:S,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,S),height:Math.min(I.height,D)},X),I.width=S,I.height=D,I.data=ie.data}function _s(I,S,D,X,ie,ve){if(ie.width===0||ie.height===0)return S;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>S.width||ie.height>S.height||X.x>S.width-ie.width||X.y>S.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,We=S.data;if(we===We)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{S[I.evaluationKey]=ut;let St=I.expression.evaluate(S);ie.data[we+We+0]=Math.floor(255*St.r/St.a),ie.data[we+We+1]=Math.floor(255*St.g/St.a),ie.data[we+We+2]=Math.floor(255*St.b/St.a),ie.data[we+We+3]=Math.floor(255*St.a)};if(I.clips)for(let we=0,We=0;we80*D){We=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Dr),Jr>vr&&(vr=Jr)}St=Math.max($t-We,vr-ut),St=St!==0?32767/St:0}return Cf(ve,we,D,We,ut,St,0),we}function gf(I,S,D,X,ie){let ve;if(ie===function(we,We,ut,St){let $t=0;for(let vr=We,Sr=ut-St;vr0)for(let we=S;we=S;we-=X)ve=lr(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&($e(ve),ve=ve.next),ve}function xf(I,S){if(!I)return I;S||(S=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&_e(X.prev,X,X.next)!==0)X=X.next;else{if($e(X),X=S=X.prev,X===X.next)break;D=!0}while(D||X!==S);return S}function Cf(I,S,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,St,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,St,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Dr){let Jr,ui=1;do{let Gi,cn=Dr;Dr=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Gi=cn,cn=cn.nextZ,La--):(Gi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Gi:Dr=Gi,Gi.prevZ=Za,Za=Gi;cn=Rn}Za.nextZ=null,ui*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let We=I;for(;I.prev!==I.next;){let ut=I.prev,St=I.next;if(ve?cf(I,X,ie,ve):Gu(I))S.push(ut.i,I.i,St.i),$e(I),I=St.next,We=St.next;else if((I=St)===We){we?we===1?Cf(I=mf(xf(I),S),S,D,X,ie,ve,2):we===2&&Fl(I,S,D,X,ie,ve):Cf(xf(I),S,D,X,ie,ve,1);break}}}function Gu(I){let S=I.prev,D=I,X=I.next;if(_e(S,D,X)>=0)return!1;let ie=S.x,ve=D.x,we=X.x,We=S.y,ut=D.y,St=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Dr=We>ut?We>St?We:St:ut>St?ut:St,Jr=X.next;for(;Jr!==S;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Dr&&O(ie,We,ve,ut,we,St,Jr.x,Jr.y)&&_e(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function cf(I,S,D,X){let ie=I.prev,ve=I,we=I.next;if(_e(ie,ve,we)>=0)return!1;let We=ie.x,ut=ve.x,St=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Dr=Weut?We>St?We:St:ut>St?ut:St,Gi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Dr,Jr,S,D,X),Za=R(ui,Gi,S,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Dr&&Rn.x<=ui&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,St,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Dr&&La.x<=ui&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==we&&O(We,$t,ut,vr,St,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Dr&&Rn.x<=ui&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,St,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Dr&&La.x<=ui&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==we&&O(We,$t,ut,vr,St,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function mf(I,S){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Ce(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(S.push(X.i,D.i,ie.i),$e(D),$e(D.next),D=I=ie),D=D.next}while(D!==I);return xf(D)}function Fl(I,S,D,X,ie,ve){let we=I;do{let We=we.next.next;for(;We!==we.prev;){if(we.i!==We.i&&K(we,We)){let ut=Mr(we,We);return we=xf(we,we.next),ut=xf(ut,ut.next),Cf(we,S,D,X,ie,ve,0),void Cf(ut,S,D,X,ie,ve,0)}We=We.next}we=we.next}while(we!==I)}function bf(I,S){return I.x-S.x}function cu(I,S){let D=function(ie,ve){let we=ve,We=ie.x,ut=ie.y,St,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let ui=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(ui<=We&&ui>$t&&($t=ui,St=we.x=we.x&&we.x>=Sr&&We!==we.x&&O(utSt.x||we.x===St.x&&Y(St,we)))&&(St=we,Jr=ui)}we=we.next}while(we!==vr);return St}(I,S);if(!D)return S;let X=Mr(D,I);return xf(X,X.next),xf(D,D.next)}function Y(I,S){return _e(I.prev,I,S.prev)<0&&_e(S.next,I,I.next)<0}function R(I,S,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))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-X)*ie|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(I){let S=I,D=I;do(S.x=(I-we)*(ve-We)&&(I-we)*(X-We)>=(D-we)*(S-We)&&(D-we)*(ve-We)>=(ie-we)*(X-We)}function K(I,S){return I.next.i!==S.i&&I.prev.i!==S.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&&Ce(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,S)&&(dr(I,S)&&dr(S,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,We=(D.y+X.y)/2;do ie.y>We!=ie.next.y>We&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(We-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,S)&&(_e(I.prev,I,S.prev)||_e(I,S.prev,S))||ne(I,S)&&_e(I.prev,I,I.next)>0&&_e(S.prev,S,S.next)>0)}function _e(I,S,D){return(S.y-I.y)*(D.x-S.x)-(S.x-I.x)*(D.y-S.y)}function ne(I,S){return I.x===S.x&&I.y===S.y}function Ce(I,S,D,X){let ie=kt(_e(I,S,D)),ve=kt(_e(I,S,X)),we=kt(_e(D,X,I)),We=kt(_e(D,X,S));return ie!==ve&&we!==We||!(ie!==0||!Ye(I,D,S))||!(ve!==0||!Ye(I,X,S))||!(we!==0||!Ye(D,I,X))||!(We!==0||!Ye(D,S,X))}function Ye(I,S,D){return S.x<=Math.max(I.x,D.x)&&S.x>=Math.min(I.x,D.x)&&S.y<=Math.max(I.y,D.y)&&S.y>=Math.min(I.y,D.y)}function kt(I){return I>0?1:I<0?-1:0}function dr(I,S){return _e(I.prev,I,I.next)<0?_e(I,S,I.next)>=0&&_e(I,I.prev,S)>=0:_e(I,S,I.prev)<0||_e(I,I.next,S)<0}function Mr(I,S){let D=ht(I.i,I.x,I.y),X=ht(S.i,S.x,S.y),ie=I.next,ve=S.prev;return I.next=S,S.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function lr(I,S,D,X){let ie=ht(I,S,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 $e(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 ht(I,S,D){return{i:I,x:S,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function bt(I,S,D){let X=D.patternDependencies,ie=!1;for(let ve of S){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let We=we.constantOr(null);We&&(ie=!0,X[We.to]=!0,X[We.from]=!0)}return ie}function Kt(I,S,D,X,ie){let ve=ie.patternDependencies;for(let we of S){let We=we.paint.get(`${I}-pattern`).value;if(We.kind!=="constant"){let ut=We.evaluate({zoom:X-1},D,{},ie.availableImages),St=We.evaluate({zoom:X},D,{},ie.availableImages),$t=We.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,St=St&&St.name?St.name:St,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[St]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:St,max:$t}}}return D}class sr{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Hu,this.indexArray=new se,this.indexArray2=new Pe,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.segments2=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:St,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=hf(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:St,geometry:vr?Sr.geometry:lf(We),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:St,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("fill",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,St,X,{});D.featureIndex.insert(S[St].feature,ut,St,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ef),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),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(S,D,X,ie,ve){for(let we of Ys(D,500)){let We=0;for(let Dr of we)We+=Dr.length;let ut=this.segments.prepareSegment(We,this.layoutVertexArray,this.indexArray),St=ut.vertexLength,$t=[],vr=[];for(let Dr of we){if(Dr.length===0)continue;Dr!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Dr.length,this.layoutVertexArray,this.indexArray2),ui=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Dr[0].x,Dr[0].y),this.indexArray2.emplaceBack(ui+Dr.length-1,ui),$t.push(Dr[0].x),$t.push(Dr[0].y);for(let Gi=1;Gi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(S&&We.push(S),S=[]),S.push(new hi(ve,we));else{if(X!==7)throw new Error("unknown command "+X);S&&S.push(S[0].clone())}}return S&&We.push(S),We},Yi.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var S=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,We=-1/0,ut=1/0,St=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())We&&(We=ie),(ve+=I.readSVarint())St&&(St=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,We,St]},Yi.prototype.toGeoJSON=function(I,S,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,We=this.extent*S,ut=this.loadGeometry(),St=Yi.types[this.type];function $t(Dr){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===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 S=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,S,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,S,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(S[X.name]=X)}}Ur.VectorTile=function(I,S){this.layers=I.readFields(Zo,{},S)},Ur.VectorTileFeature=Cn,Ur.VectorTileLayer=Tn;let ru=Ur.VectorTileFeature.types,yu=Math.pow(2,13);function Fu(I,S,D,X,ie,ve,we,We){I.emplaceBack(S,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(We))}class vu{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new $u,this.centroidVertexArray=new nu,this.indexArray=new se,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.features=[],this.hasPattern=bt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:We}of S){let ut=this.layers[0]._featureFilter.needGeometry,St=hf(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),St,X))continue;let $t={id:ve,sourceLayerIndex:We,index:we,geometry:ut?St.geometry:lf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,We,this.index,!0)}}addFeatures(S,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||Ju(Jr))continue;let ui=0;for(let Gi=0;Gi=1){let Za=Jr[Gi-1];if(!zu(cn,Za)){St.vertexLength+4>st.MAX_VERTEX_ARRAY_LENGTH&&(St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);ui+La>32768&&(ui=0),Fu(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,ui),Fu(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,ui),We.x+=2*cn.x,We.y+=2*cn.y,We.vertexCount+=2,ui+=La,Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,ui),Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,ui),We.x+=2*Za.x,We.y+=2*Za.y,We.vertexCount+=2;let So=St.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),St.vertexLength+=4,St.primitiveLength+=2}}}}if(St.vertexLength+ut>st.MAX_VERTEX_ARRAY_LENGTH&&(St=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[S.type]!=="Polygon")continue;let $t=[],vr=[],Sr=St.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let ui=0;uiWl)||I.y===S.y&&(I.y<0||I.y>Wl)}function Ju(I){return I.every(S=>S.x<0)||I.every(S=>S.x>Wl)||I.every(S=>S.y<0)||I.every(S=>S.y>Wl)}let Vf;Mi("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Vf=Vf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(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 Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(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(S){super(S,wd)}createBucket(S){return new vu(S)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,D,X,ie,ve,we,We,ut){let St=ua(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,We),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,ui,Gi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,ui),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(St,ut),Dr=function(Jr,ui,Gi,cn){let Za=[],Rn=[],La=cn[8]*ui,So=cn[9]*ui,kl=cn[10]*ui,mu=cn[11]*ui,Iu=cn[8]*Gi,su=cn[9]*Gi,yl=cn[10]*Gi,Eu=cn[11]*Gi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=cn[0]*xu+cn[4]*qu+cn[12],cc=cn[1]*xu+cn[5]*qu+cn[13],Rh=cn[2]*xu+cn[6]*qu+cn[14],Qp=cn[3]*xu+cn[7]*qu+cn[15],fd=Rh+kl,Dh=Qp+mu,Hd=vc+Iu,Wd=cc+su,jd=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(Hd/$c,Wd/$c);Cd.z=jd/$c,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,ui,Gi){let cn=1/0;Nt(Gi,ui)&&(cn=Kp(Gi,ui[0]));for(let Za=0;ZaD.id),this.index=S.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 se,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:St,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=hf(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:St,geometry:vr?Sr.geometry:lf(We),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:St,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("line",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,St,X,{});D.featureIndex.insert(S[St].feature,ut,St,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,yv)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,mv),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,D,X,ie,ve){let we=this.layers[0].layout,We=we.get("line-join").evaluate(S,{}),ut=we.get("line-cap"),St=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let vr of D)this.addLine(vr,S,We,ut,St,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,ve,ie)}addLine(S,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&S[ut-1].equals(S[ut-2]);)ut--;let St=0;for(;St0;if(mu&&cn>St){let Eu=Sr.dist(Dr);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Dr)._mult($t/Eu)._round());this.updateDistance(Dr,bu),this.addCurrentVertex(bu,ui,0,0,vr),Dr=bu}}let su=Dr&&Jr,yl=su?X:We?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Gi.mult(-1);else{let Eu=So*ui.add(Gi).mag()/ui.sub(Gi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}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(Sr,ui,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Gi,0,0,vr),Sr=bu}}}}addCurrentVertex(S,D,X,ie,ve,we=!1){let We=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(S,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(S,We,ut,we,!0,-ie,ve),this.distance>Pp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,D,X,ie,ve,we))}addHalfVertex({x:S,y:D},X,ie,ve,we,We,ut){let St=.5*(this.lineClips?this.scaledDistance*(Pp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(We===0?0:We<0?-1:1)|(63&St)<<2,St>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,D){this.distance+=S.dist(D),this.updateScaledDistance()}}let zp,cg;Mi("LineBucket",Jp,{omit:["layers","patternFeatures"]});var dm={get paint(){return cg=cg||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(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 Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(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 le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(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 Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(S,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(S,D)}evaluate(S,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(S,D,X,ie)}}let pm;class hg extends q{constructor(S){super(S,dm),this.gradientVersion=0,pm||(pm=new vh(dm.paint.properties["line-width"].specification),pm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="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(S,D){super.recalculate(S,D),this.paint._values["line-floorwidth"]=pm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jp(S)}queryRadius(S){let D=S,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(S,D,X,ie,ve,we,We){let ut=ua(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,We),St=We/2*Jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Dr=[];for(let Jr=0;Jr=3){for(let Gi=0;Gi0?S+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 dg=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,S,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let We=ve.layout.get("text-transform").evaluate(we,{});return We==="uppercase"?ie=ie.toLocaleUpperCase():We==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,S,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,pg=function(I,S,D,X,ie){var ve,we,We=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Dr=I[S+vr];for(vr+=Sr,ve=Dr&(1<<-$t)-1,Dr>>=-$t,$t+=We;$t>0;ve=256*ve+I[S+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[S+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-St;else{if(ve===ut)return we?NaN:1/0*(Dr?-1:1);we+=Math.pow(2,X),ve-=St}return(Dr?-1:1)*we*Math.pow(2,ve-X)},L1=function(I,S,D,X,ie,ve){var we,We,ut,St=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Dr=X?0:ve-1,Jr=X?1:-1,ui=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(We=isNaN(S)?1:0,we=$t):(we=Math.floor(Math.log(S)/Math.LN2),S*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(S+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(We=0,we=$t):we+vr>=1?(We=(S*ut-1)*Math.pow(2,ie),we+=vr):(We=S*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Dr]=255&We,Dr+=Jr,We/=256,ie-=8);for(we=we<0;I[D+Dr]=255&we,Dr+=Jr,we/=256,St-=8);I[D+Dr-Jr]|=128*ui};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 Yx=4294967296,ly=1/Yx,Bw=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,S,D){return D?4294967296*S+(I>>>0):4294967296*(S>>>0)+(I>>>0)}function Ow(I,S,D){var X=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Kx(I,S){for(var D=0;D>>8,I[D+2]=S>>>16,I[D+3]=S>>>24}function SC(I,S){return(I[S]|I[S+1]<<8|I[S+2]<<16)+(I[S+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,S,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,S,this),this.pos===ve&&this.skip(X)}return S},readMessage:function(I,S){return this.readFields(I,S,this.readVarint()+this.pos)},readFixed32:function(){var I=vg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=SC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=vg(this.buf,this.pos)+vg(this.buf,this.pos+4)*Yx;return this.pos+=8,I},readSFixed64:function(){var I=vg(this.buf,this.pos)+SC(this.buf,this.pos+4)*Yx;return this.pos+=8,I},readFloat:function(){var I=pg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=pg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var S,D,X=this.buf;return S=127&(D=X[this.pos++]),D<128?S:(S|=(127&(D=X[this.pos++]))<<7,D<128?S:(S|=(127&(D=X[this.pos++]))<<14,D<128?S:(S|=(127&(D=X[this.pos++]))<<21,D<128?S:function(ie,ve,we){var We,ut,St=we.buf;if(We=(112&(ut=St[we.pos++]))>>4,ut<128||(We|=(127&(ut=St[we.pos++]))<<3,ut<128)||(We|=(127&(ut=St[we.pos++]))<<10,ut<128)||(We|=(127&(ut=St[we.pos++]))<<17,ut<128)||(We|=(127&(ut=St[we.pos++]))<<24,ut<128)||(We|=(1&(ut=St[we.pos++]))<<31,ut<128))return uy(ie,We,ve);throw new Error("Expected varint not more than 10 bytes")}(S|=(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,S=this.pos;return this.pos=I,I-S>=12&&Bw?function(D,X,ie){return Bw.decode(D.subarray(X,ie))}(this.buf,S,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(We=D[we+1]))==128&&(vr=(31&$t)<<6|63&We)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(We=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&We)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],St=D[we+3],(192&(We=D[we+1]))==128&&(192&ut)==128&&(192&St)==128&&((vr=(15&$t)<<18|(63&We)<<12|(63&ut)<<6|63&St)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,S,I)},readBytes:function(){var I=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,I);return this.pos=I,S},readPackedVarint:function(I,S){if(this.type!==ic.Bytes)return I.push(this.readVarint(S));var D=Ip(this);for(I=I||[];this.pos127;);else if(S===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(S===ic.Fixed32)this.pos+=4;else{if(S!==ic.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(I,S){this.writeVarint(I<<3|S)},realloc:function(I){for(var S=this.length||16;S268435455||I<0?function(S,D){var X,ie;if(S>=0?(X=S%4294967296|0,ie=S/4294967296|0):(ie=~(-S/4294967296),4294967295^(X=~(-S%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,We){We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,We.buf[We.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var We=(7&ve)<<4;we.buf[we.pos++]|=We|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(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 S=this.pos;this.pos=function(X,ie,ve){for(var we,We,ut=0;ut55295&&we<57344){if(!We){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):We=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,We=we;continue}we=We-55296<<10|we-56320|65536,We=null}else We&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,We=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-S;D>=128&&Ow(S,D,this),this.pos=S-1,this.writeVarint(D),this.pos+=D},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 S=I.length;this.writeVarint(S),this.realloc(S);for(var D=0;D=128&&Ow(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,S,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(S,D)},writePackedVarint:function(I,S){S.length&&this.writeMessage(I,Kx,S)},writePackedSVarint:function(I,S){S.length&&this.writeMessage(I,$9,S)},writePackedBoolean:function(I,S){S.length&&this.writeMessage(I,tO,S)},writePackedFloat:function(I,S){S.length&&this.writeMessage(I,Q9,S)},writePackedDouble:function(I,S){S.length&&this.writeMessage(I,eO,S)},writePackedFixed32:function(I,S){S.length&&this.writeMessage(I,YQ,S)},writePackedSFixed32:function(I,S){S.length&&this.writeMessage(I,rO,S)},writePackedFixed64:function(I,S){S.length&&this.writeMessage(I,iO,S)},writePackedSFixed64:function(I,S){S.length&&this.writeMessage(I,nO,S)},writeBytesField:function(I,S){this.writeTag(I,ic.Bytes),this.writeBytes(S)},writeFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeSFixed64(S)},writeVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeVarint(S)},writeSVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeSVarint(S)},writeStringField:function(I,S){this.writeTag(I,ic.Bytes),this.writeString(S)},writeFloatField:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFloat(S)},writeDoubleField:function(I,S){this.writeTag(I,ic.Fixed64),this.writeDouble(S)},writeBooleanField:function(I,S){this.writeVarintField(I,!!S)}};var lM=o(Ed);let uM=3;function KQ(I,S,D){I===1&&D.readMessage(aO,S)}function aO(I,S,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:We,top:ut,advance:St}=D.readMessage(MC,{});S.push({id:X,bitmap:new ul({width:ve+2*uM,height:we+2*uM},ie),metrics:{width:ve,height:we,left:We,top:ut,advance:St}})}}function MC(I,S,D){I===1?S.id=D.readVarint():I===2?S.bitmap=D.readBytes():I===3?S.width=D.readVarint():I===4?S.height=D.readVarint():I===5?S.left=D.readSVarint():I===6?S.top=D.readSVarint():I===7&&(S.advance=D.readVarint())}let EC=uM;function fM(I){let S=0,D=0;for(let we of I)S+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,We)=>We.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let We=X.length-1;We>=0;We--){let ut=X[We];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let St=X.pop();We=0&&X>=S&&Uw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(S,D),this.sectionIndex=this.sectionIndex.slice(S,D)}substring(S,D){let X=new P1;return X.text=this.text.substring(S,D),X.sectionIndex=this.sectionIndex.slice(S,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,D)=>Math.max(S,this.sections[D].scale),0)}addTextSection(S,D){this.text+=S.text,this.sections.push($x.forText(S.scale,S.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Qx(I,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr){let ui=P1.fromFeature(I,ie),Gi;vr===i.ah.vertical&&ui.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&ui.sections.length===1){Gi=[];let So=cn(ui.toString(),z1(ui,St,ve,S,X,Dr));for(let kl of So){let mu=new P1;mu.text=kl,mu.sections=ui.sections;for(let Iu=0;Iu0&&tv>ih&&(ih=tv)}else{let Rc=mu[Xf.fontStack],ch=Rc&&Rc[mc];if(ch&&ch.rect)O1=ch.rect,Hc=ch.metrics;else{let tv=kl[Xf.fontStack],gm=tv&&tv[mc];if(!gm)continue;Hc=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:Hc,rect:O1}),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:Hc,rect:O1}),qu+=Hc.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 Hd=vc-Ih,{horizontalAlign:Wd,verticalAlign:jd}=Gw(Eu);(function($c,Fh,Cd,cd,$h,ih,Dp,fp,Xf){let Ac=(Fh-Cd)*$h,mc=0;mc=ih!==Dp?-fp*cd-Ih:(-cd*Xf+.5)*Dp;for(let Fp of $c)for(let Hc of Fp.positionedGlyphs)Hc.x+=Ac,Hc.y+=mc})(So.positionedLines,Qp,Wd,jd,cc,Rh,yl,Hd,su.length),So.top+=-jd*Hd,So.bottom=So.top+Hd,So.left+=-Wd*cc,So.right=So.left+cc}(La,S,D,X,Gi,we,We,ut,vr,St,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Uw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},oO={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},sO={40:!0};function kC(I,S,D,X,ie,ve){if(S.imageName){let we=X[S.imageName];return we?we.displaySize[0]*S.scale*jf/ve+ie:0}{let we=D[S.fontStack],We=we&&we[I];return We?We.metrics.advance*S.scale+ie:0}}function CC(I,S,D,X){let ie=Math.pow(I-S,2);return X?I=0,St=0;for(let vr=0;vrSt){let $t=Math.ceil(ve/St);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function zC(I,S,D,X,ie,ve){let we=I.image,We;if(we.content){let Gi=we.content,cn=we.pixelRatio||1;We=[Gi[0]/cn,Gi[1]/cn,we.displaySize[0]-Gi[2]/cn,we.displaySize[1]-Gi[3]/cn]}let ut=S.left*ve,St=S.right*ve,$t,vr,Sr,Dr;D==="width"||D==="both"?(Dr=ie[0]+ut-X[3],vr=ie[0]+St+X[1]):(Dr=ie[0]+(ut+St-we.displaySize[0])/2,vr=Dr+we.displaySize[0]);let Jr=S.top*ve,ui=S.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+ui+X[2]):($t=ie[1]+(Jr+ui-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Dr,collisionPadding:We}}let tb=255,p0=128,cy=tb*p0;function IC(I,S){let{expression:D}=S;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,ve=0;for(;vewe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.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=IC(this.zoom,D["text-size"]),this.iconSizeData=IC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=cM(X,"text-overlap","text-allow-overlap")!=="never"||cM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=S.sourceID}createArrays(){this.text=new pM(new Vu(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new pM(new Vu(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new Ol}calculateGlyphDependencies(S,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!St&&!$t)return;let Sr=D.iconDependencies,Dr=D.glyphDependencies,Jr=D.availableImages,ui=new cs(this.zoom);for(let{feature:Gi,id:cn,index:Za,sourceLayerIndex:Rn}of S){let La=ie._featureFilter.needGeometry,So=hf(Gi,La);if(!ie._featureFilter.filter(ui,So,X))continue;let kl,mu;if(La||(So.geometry=lf(Gi)),St){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Nr.factory(su),Eu=this.hasRTLText=this.hasRTLText||dM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=sy(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof gi?su:gi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Gi.properties,type:uO[Gi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[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)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Gi){let cn={},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=cn[yl];return delete cn[yl],cn[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,cn)=>Gi.sortKey-cn.sortKey)}update(S,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(S,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(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,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(S,D){let X=this.lineVertexArray.length;if(S.segment!==void 0){let ie=S.dist(D[S.segment+1]),ve=S.dist(D[S.segment]),we={};for(let We=S.segment+1;We=0;We--)we[We]={x:D[We].x,y:D[We].y,tileUnitDistanceFromAnchor:ve},We>0&&(ve+=D[We-1].dist(D[We]));for(let We=0;We0}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(S,D){let X=S.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[We]-ie[ut]||ve[ut]-ve[We]),we}addToSortKeyRanges(S,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,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,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&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,rb;Mi("SymbolBucket",I1,{omit:["layers","collisionBoxArray","features","compareText"]}),I1.MAX_GLYPHS=65535,I1.addDynamicAttributes=hM;var Ww={get paint(){return rb=rb||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(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 Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:tt,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(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 le({"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 Os(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 Os(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 Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(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 Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(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 Os(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 Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(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 ib{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:vt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(S.formattedSection))return D.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Mi("FormatSectionOverride",ib,{omit:["defaultValue"]});class mg extends q{constructor(S){super(S,Ww)}recalculate(S,D){if(super.recalculate(S,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 ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,D,X,ie){let ve=this.layout.get(S).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[S];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(We,ut){return ut.replace(/{([^{}]+)}/g,(St,$t)=>We&&$t in We?String(We[$t]):"")}(D.properties,ve)}createBucket(S){return new I1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Ww.paint.overridableProperties){if(!mg.hasPaintOverride(this.layout,S))continue;let D=this.paint.get(S),X=new ib(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[S]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(S,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&mg.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,D){let X=S.get("text-field"),ie=Ww.paint.properties[D],ve=!1,we=We=>{for(let ut of We)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Nr)we(X.value.value.sections);else if(X.value.kind==="source"){let We=St=>{ve||(St instanceof Yr&&ti(St.value)===_r?we(St.value.sections):St instanceof wa?we(St.sections):St.eachChild(We))},ut=X.value;ut._styleExpression&&We(ut._styleExpression.expression)}return ve}}let RC;var nb={get paint(){return RC=RC||new le({"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 cO extends q{constructor(S){super(S,nb)}}let vM;var DC={get paint(){return vM=vM||new le({"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 ab extends q{constructor(S){super(S,DC)}}class mM extends q{constructor(S){super(S,{}),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=S}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 yM{constructor(S){this._methodToThrottle=S,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 gM=63710088e-1;class vm{constructor(S,D){if(isNaN(S)||isNaN(D))throw new Error(`Invalid LngLat object: (${S}, ${D})`);if(this.lng=+S,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(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let D=Math.PI/180,X=this.lat*D,ie=S.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((S.lng-this.lng)*D);return gM*Math.acos(Math.min(ve,1))}static convert(S){if(S instanceof vm)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new vm(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new vm(Number("lng"in S?S.lng:S.lon),Number(S.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 R1=2*Math.PI*gM;function FC(I){return R1*Math.cos(I*Math.PI/180)}function jw(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 Xw(I,S){return I/FC(S)}function ob(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class sb{constructor(S,D,X=0){this.x=+S,this.y=+D,this.z=+X}static fromLngLat(S,D=0){let X=vm.convert(S);return new sb(jw(X.lng),BC(X.lat),Xw(D,X.lat))}toLngLat(){return new vm(360*this.x-180,ob(this.y))}toAltitude(){return this.z*FC(ob(this.y))}meterInMercatorCoordinateUnits(){return 1/R1*(S=ob(this.y),1/Math.cos(S*Math.PI/180));var S}}function gv(I,S,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,S*X-2*Math.PI*6378137/2]}class _M{constructor(S,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(S,D,X))throw new Error(`x=${D}, y=${X}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=D,this.y=X,this.key=lb(0,S,S,D,X)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,D,X){let ie=(we=this.y,We=this.z,ut=gv(256*(ve=this.x),256*(we=Math.pow(2,We)-we-1),We),St=gv(256*(ve+1),256*(we+1),We),ut[0]+","+ut[1]+","+St[0]+","+St[1]);var ve,we,We,ut,St;let $t=function(vr,Sr,Dr){let Jr,ui="";for(let Gi=vr;Gi>0;Gi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(S){let D=this.z-S.z;return D>0&&S.x===this.x>>D&&S.y===this.y>>D}getTilePoint(S){let D=Math.pow(2,this.z);return new l((S.x*D-this.x)*Wl,(S.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class OC{constructor(S,D){this.wrap=S,this.canonical=D,this.key=lb(S,D.z,D.z,D.x,D.y)}}class $p{constructor(S,D,X,ie,ve){if(S= z; overscaledZ = ${S}; z = ${X}`);this.overscaledZ=S,this.wrap=D,this.canonical=new _M(X,+ie,+ve),this.key=lb(D,S,X,ie,ve)}clone(){return new $p(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-S;return S>this.canonical.z?new $p(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $p(S,this.wrap,S,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(S,D){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-S;return S>this.canonical.z?lb(this.wrap*+D,S,this.canonical.z,this.canonical.x,this.canonical.y):lb(this.wrap*+D,S,S,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let D=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>D&&S.canonical.y===this.canonical.y>>D}children(S){if(this.overscaledZ>=S)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(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=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+(S+1)}unpack(S,D,X){return S*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(S,D,X){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,We=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=We-1;break;case 1:We=we+1}let ut=-D*this.dim,St=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class xM{constructor(S,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=S,S._z=D,S._x=X,S._y=ie,this.properties=S.properties,this.id=ve}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(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(S[D]=this[D]);return S}}class yg{constructor(S,D){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new di(Wl,16,0),this.grid3D=new di(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(S,D,X,ie,ve,we){let We=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let St=0;St=0&&vr[3]>=0&&ut.insert(We,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Ur.VectorTile(new lM(this.rawTileData)).layers,this.sourceLayerCoder=new NC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,D,X,ie){this.loadVTLayers();let ve=S.params||{},we=Wl/S.tileSize/S.scale,We=Jn(ve.filter),ut=S.queryGeometry,St=S.queryPadding*we,$t=VC(ut),vr=this.grid.query($t.minX-St,$t.minY-St,$t.maxX+St,$t.maxY+St),Sr=VC(S.cameraQueryGeometry),Dr=this.grid3D.query(Sr.minX-St,Sr.minY-St,Sr.maxX+St,Sr.maxY+St,(Gi,cn,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(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=lf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,S.transform,we,S.pixelPosMatrix)))}return Jr}loadMatchingFeature(S,D,X,ie,ve,we,We,ut,St,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Gi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Dr=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Dr].feature(ie);if(ve.needGeometry){let Gi=hf(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Gi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let ui=this.getId(Jr,Dr);for(let Gi=0;Gi{let We=S instanceof Ll?S.get(we):null;return We&&We.evaluate?We.evaluate(D,X,ie):We})}function VC(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:S,minY:D,maxX:X,maxY:ie}}function hO(I,S){return S-I}function GC(I,S,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Mi("FeatureIndex",yg,{omit:["rawTileData","sourceLayerCoder"]});class mm extends l{constructor(S,D,X,ie){super(S,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new mm(this.x,this.y,this.angle,this.segment)}}function bM(I,S,D,X,ie){if(S.segment===void 0||D===0)return!0;let ve=S,we=S.segment+1,We=0;for(;We>-D/2;){if(we--,we<0)return!1;We-=I[we].dist(ve),ve=I[we]}We+=I[we].dist(I[we+1]),we++;let ut=[],St=0;for(;WeX;)St-=ut.shift().angleDelta;if(St>ie)return!1;we++,We+=$t.dist(vr)}return!0}function HC(I){let S=0;for(let D=0;DSt){let Jr=(St-ut)/Dr,ui=ka.number(vr.x,Sr.x,Jr),Gi=ka.number(vr.y,Sr.y,Jr),cn=new mm(ui,Gi,Sr.angleTo(vr),$t);return cn._round(),!we||bM(I,cn,We,we,S)?cn:void 0}ut+=Dr}}function pO(I,S,D,X,ie,ve,we,We,ut){let St=WC(X,ve,we),$t=jC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return S-vr=0&&La=0&&So=0&&Sr+St<=$t){let kl=new mm(La,So,Za,Jr);kl._round(),X&&!bM(I,kl,ve,X,ie)||Dr.push(kl)}}vr+=cn}return We||Dr.length||we||(Dr=XC(I,vr/2,D,X,ie,ve,we,!0,ut)),Dr}Mi("Anchor",mm);let D1=kd;function ZC(I,S,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,We=ve.paddedRect.w-2*D1,ut=ve.paddedRect.h-2*D1,St={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,We]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Dr=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),ui=We-Dr,Gi=ut-Jr,cn=0,Za=Dr,Rn=0,La=Jr,So=0,kl=ui,mu=0,Iu=Gi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(St=PC(I)),cn=ym($t,0,Xs[0]),Rn=ym(vr,0,Xs[1]),Za=ym($t,Xs[0],Xs[2]),La=ym(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=St.x1,yl=St.y1,Eu=St.x2-su,bu=St.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Zw(Xs.stretch-cn,Za,Eu,su),cc=F1(Xs.fixed-So,kl,Xs.stretch,Dr),Rh=Zw(Lu.stretch-Rn,La,bu,yl),Qp=F1(Lu.fixed-mu,Iu,Lu.stretch,Jr),fd=Zw(xu.stretch-cn,Za,Eu,su),Dh=F1(xu.fixed-So,kl,xu.stretch,Dr),Hd=Zw(qu.stretch-Rn,La,bu,yl),Wd=F1(qu.fixed-mu,Iu,qu.stretch,Jr),jd=new l(vc,Rh),$c=new l(fd,Rh),Fh=new l(fd,Hd),Cd=new l(vc,Hd),cd=new l(cc/we,Qp/we),$h=new l(Dh/we,Wd/we),ih=S*Math.PI/180;if(ih){let Xf=Math.sin(ih),Ac=Math.cos(ih),mc=[Ac,-Xf,Xf,Ac];jd._matMult(mc),$c._matMult(mc),Cd._matMult(mc),Fh._matMult(mc)}let Dp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:jd,tr:$c,bl:Cd,br:Fh,tex:{x:ve.paddedRect.x+D1+Dp,y:ve.paddedRect.y+D1+fp,w:xu.stretch+xu.fixed-Dp,h:qu.stretch+qu.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:$h,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=YC($t,ui,Dr),Lu=YC(vr,Gi,Jr);for(let xu=0;xu0&&(ui=Math.max(10,ui),this.circleDiameter=ui)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?PC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*We-ut[0],Sr.y2=Sr.y2*We+ut[2],Sr.x1=Sr.x1*We-ut[3],Sr.x2=Sr.x2*We+ut[1];let Dr=we.collisionPadding;if(Dr&&(Sr.x1-=Dr[0]*We,Sr.y1-=Dr[1]*We,Sr.x2+=Dr[2]*We,Sr.y2+=Dr[3]*We),$t){let Jr=new l(Sr.x1,Sr.y1),ui=new l(Sr.x2,Sr.y1),Gi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),ui._rotate(Za),Gi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,ui.x,Gi.x,cn.x),Sr.x2=Math.max(Jr.x,ui.x,Gi.x,cn.x),Sr.y1=Math.min(Jr.y,ui.y,Gi.y,cn.y),Sr.y2=Math.max(Jr.y,ui.y,Gi.y,cn.y)}S.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=S.length}}class Vv{constructor(S=[],D=(X,ie)=>Xie?1:0){if(this.data=S,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(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:D,compare:X}=this,ie=D[S];for(;S>0;){let ve=S-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[S]=we,S=ve}D[S]=ie}_down(S){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[S];for(;S=0)break;D[S]=D[we],S=we}D[S]=ve}}function vO(I,S=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,We=I[0];for(let Dr=0;Drve)&&(ve=Jr.x),(!Dr||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),St=ut/2,$t=new Vv([],mO);if(ut===0)return new l(X,ie);for(let Dr=X;Drvr.d||!vr.d)&&(vr=Dr,D&&console.log("found best %d after %d probes",Math.round(1e4*Dr.d)/1e4,Sr)),Dr.max-vr.d<=S||(St=Dr.h/2,$t.push(new B1(Dr.p.x-St,Dr.p.y-St,St,I)),$t.push(new B1(Dr.p.x+St,Dr.p.y-St,St,I)),$t.push(new B1(Dr.p.x-St,Dr.p.y+St,St,I)),$t.push(new B1(Dr.p.x+St,Dr.p.y+St,St,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function mO(I,S){return S.max-I.max}function B1(I,S,D,X){this.p=new l(I,S),this.h=D,this.d=function(ie,ve){let we=!1,We=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Dr.x)*(ie.y-Dr.y)/(Jr.y-Dr.y)+Dr.x&&(we=!we),We=Math.min(We,vi(ie,Dr,Jr))}}return(we?1:-1)*Math.sqrt(We)}(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,gg=Number.POSITIVE_INFINITY;function wM(I,S){return S[1]!==gg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-py;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+py}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,S[0],S[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-py;break;case"bottom-right":case"bottom-left":ve=-we+py;break;case"bottom":ve=-X+py;break;case"top":ve=X-py}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,S[0])}function KC(I,S,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(S,{},D);if(ve){let We=ve.values,ut=[];for(let St=0;StSr*jf);$t.startsWith("top")?vr[1]-=py:$t.startsWith("bottom")&&(vr[1]+=py),ut[St+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let We;We=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(S,{},D)*jf,gg]:ie.get("text-offset").evaluate(S,{},D).map(St=>St*jf);let ut=[];for(let St of we)ut.push(St,wM(St,We));return new jr(ut)}return null}function AM(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 yO(I,S,D,X,ie,ve,we,We,ut,St,$t){let vr=ve.textMaxSize.evaluate(S,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Dr=Sr.get("icon-offset").evaluate(S,{},$t),Jr=$C(D.horizontal),ui=we/24,Gi=I.tilePixelRatio*ui,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*We,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.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]}(Sr,S,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=zC(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Dr,ui)),Jr&&(X=zC(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Dr,ui)));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,Hd,Wd,jd,$c,Fh,Cd,cd,$h,ih,Dp,fp,Xf,Ac,mc,Fp,Hc,O1){let v0=xu.addToLineVertexArray(qu,vc),Gv,ev,Rc,ch,tv=0,gm=0,cp=0,q1=0,kM=-1,$w=-1,m0={},_g=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Dh.layout.get("text-rotate").evaluate(Ac,{},Hc)+90;Rc=new dy(Hd,qu,Wd,jd,$c,cc.vertical,Fh,Cd,cd,Ld),fd&&(ch=new dy(Hd,qu,Wd,jd,$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=ZC(Rh,Ld,Fp,rv),Xd=fd?ZC(fd,Ld,Fp,rv):void 0;ev=new dy(Hd,qu,Wd,jd,$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&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(xv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Hc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Hc)],(xv[0]>cy||xv[1]>cy)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,vy,xv,Xf,fp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),kM=xu.icon.placedSymbolArray.length-1,Xd&&(gm=4*Xd.length,xu.addSymbols(xu.icon,Xd,xv,Xf,fp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),$w=xu.icon.placedSymbolArray.length-1)}let Qh=Object.keys(cc.horizontal);for(let Ld of Qh){let rv=cc.horizontal[Ld];if(!Gv){_g=fn(rv.text);let Xd=Dh.layout.get("text-rotate").evaluate(Ac,{},Hc);Gv=new dy(Hd,qu,Wd,jd,$c,rv,Fh,Cd,cd,Xd)}let vy=rv.positionedLines.length===1;if(cp+=JC(xu,qu,rv,Qp,Dh,cd,Ac,$h,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,vy?Qh:[Ld],m0,kM,mc,Hc),vy)break}cc.vertical&&(q1+=JC(xu,qu,cc.vertical,Qp,Dh,cd,Ac,$h,v0,i.ah.vertical,["vertical"],m0,$w,mc,Hc));let xO=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Qw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,rL=ev?ev.boxStartIndex:xu.collisionBoxArray.length,bO=ev?ev.boxEndIndex:xu.collisionBoxArray.length,iL=ch?ch.boxStartIndex:xu.collisionBoxArray.length,wO=ch?ch.boxEndIndex:xu.collisionBoxArray.length,_v=-1,cb=(Ld,rv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,rv):rv;_v=cb(Gv,_v),_v=cb(Rc,_v),_v=cb(ev,_v),_v=cb(ch,_v);let e3=_v>-1?1:0;e3&&(_v*=O1/jf),xu.glyphOffsetArray.length>=I1.MAX_GLYPHS&&A("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 CM=KC(Dh,Ac,Hc),[AO,TO]=function(Ld,rv){let vy=Ld.length,Xd=rv==null?void 0:rv.values;if((Xd==null?void 0:Xd.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,kM,$w,_g,xO,Qw,y0,hp,rL,bO,iL,wO,Wd,cp,q1,tv,gm,e3,0,Fh,_v,AO,TO)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,S.index,S.sourceLayerIndex,I.index,Gi,[La,La,La,La],mu,ut,Za,So,Iu,Dr,S,ve,St,$t,we)};if(su==="line")for(let Xs of GC(S.geometry,0,0,Wl,Wl)){let Lu=pO(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&gO(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of S.geometry)if(Xs.length>1){let Lu=dO(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(S.type==="Polygon")for(let Xs of Ys(S.geometry,0)){let Lu=vO(Xs,16);_u(Xs[0],new mm(Lu.x,Lu.y,0))}else if(S.type==="LineString")for(let Xs of S.geometry)_u(Xs,new mm(Xs[0].x,Xs[0].y,0));else if(S.type==="Point")for(let Xs of S.geometry)for(let Lu of Xs)_u([Lu],new mm(Lu.x,Lu.y,0))}function JC(I,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr){let ui=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=EC+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 Hd=_u.metrics.isDoubleResolution?2:1,Wd=(_u.metrics.left-Lu)*_u.scale-Rh+fd[0],jd=(-_u.metrics.top-Lu)*_u.scale+fd[1],$c=Wd+Xs.w/Hd*_u.scale/qu,Fh=jd+Xs.h/Hd*_u.scale/qu,Cd=new l(Wd,jd),cd=new l($c,jd),$h=new l(Wd,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)),Hc=new l(...Dh);Cd._rotateAround(Ac,Xf)._add(Fp)._add(Hc),cd._rotateAround(Ac,Xf)._add(Fp)._add(Hc),$h._rotateAround(Ac,Xf)._add(Fp)._add(Hc),ih._rotateAround(Ac,Xf)._add(Fp)._add(Hc)}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),fp=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:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,We,ie,ve,we,X,I.allowVerticalPlacement),Gi=I.textSizeData,cn=null;Gi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>cy&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)):Gi.kind==="composite"&&(cn=[p0*Dr.compositeTextSizes[0].evaluate(we,{},Jr),p0*Dr.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>cy||cn[1]>cy)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)),I.addSymbols(I.text,ui,cn,We,ve,we,St,S,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*ui.length}function $C(I){for(let S in I)return I[S];return null}function gO(I,S,D,X){let ie=I.compareText;if(S in ie){let ve=ie[S];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=QC[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(S,2,1),[We]=new Uint32Array(S,4,1);return new TM(We,we,ve,S)}constructor(S,D=64,X=Float64Array,ie){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let ve=QC.indexOf(this.ArrayType),we=2*S*this.ArrayType.BYTES_PER_ELEMENT,We=S*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-We%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+we+We+ut),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=S)}add(S,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=S,this.coords[this._pos++]=D,X}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Yw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:We}=this,ut=[0,ve.length-1,0],St=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=We){for(let Gi=Sr;Gi<=vr;Gi++){let cn=we[2*Gi],Za=we[2*Gi+1];cn>=S&&cn<=X&&Za>=D&&Za<=ie&&St.push(ve[Gi])}continue}let Dr=Sr+vr>>1,Jr=we[2*Dr],ui=we[2*Dr+1];Jr>=S&&Jr<=X&&ui>=D&&ui<=ie&&St.push(ve[Dr]),($t===0?S<=Jr:D<=ui)&&(ut.push(Sr),ut.push(Dr-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=ui)&&(ut.push(Dr+1),ut.push(vr),ut.push(1-$t))}return St}within(S,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,We=[0,ie.length-1,0],ut=[],St=X*X;for(;We.length;){let $t=We.pop()||0,vr=We.pop()||0,Sr=We.pop()||0;if(vr-Sr<=we){for(let Gi=Sr;Gi<=vr;Gi++)tL(ve[2*Gi],ve[2*Gi+1],S,D)<=St&&ut.push(ie[Gi]);continue}let Dr=Sr+vr>>1,Jr=ve[2*Dr],ui=ve[2*Dr+1];tL(Jr,ui,S,D)<=St&&ut.push(ie[Dr]),($t===0?S-X<=Jr:D-X<=ui)&&(We.push(Sr),We.push(Dr-1),We.push(1-$t)),($t===0?S+X>=Jr:D+X>=ui)&&(We.push(Dr+1),We.push(vr),We.push(1-$t))}return ut}}function Yw(I,S,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;eL(I,S,we,X,ie,ve),Yw(I,S,D,X,we-1,1-ve),Yw(I,S,D,we+1,ie,1-ve)}function eL(I,S,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let St=ie-X+1,$t=D-X+1,vr=Math.log(St),Sr=.5*Math.exp(2*vr/3),Dr=.5*Math.sqrt(vr*Sr*(St-Sr)/St)*($t-St/2<0?-1:1);eL(I,S,D,Math.max(X,Math.floor(D-$t*Sr/St+Dr)),Math.min(ie,Math.floor(D+(St-$t)*Sr/St+Dr)),ve)}let we=S[2*D+ve],We=X,ut=ie;for(ub(I,S,X,D),S[2*ie+ve]>we&&ub(I,S,X,ie);Wewe;)ut--}S[2*X+ve]===we?ub(I,S,X,ut):(ut++,ub(I,S,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function ub(I,S,D,X){SM(I,D,X),SM(S,2*D,2*X),SM(S,2*D+1,2*X+1)}function SM(I,S,D){let X=I[S];I[S]=I[D],I[D]=X}function tL(I,S,D,X){let ie=I-D,ve=S-X;return ie*ie+ve*ve}var Kw;i.bg=void 0,(Kw=i.bg||(i.bg={})).create="create",Kw.load="load",Kw.fullLoad="fullLoad";let fb=null,mh=[],MM=1e3/60,EM="loadTime",Jw="fullLoadTime",_O={mark(I){performance.mark(I)},frame(I){let S=I;fb!=null&&mh.push(S-fb),fb=S},clearMetrics(){fb=null,mh=[],performance.clearMeasures(EM),performance.clearMeasures(Jw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(EM,i.bg.create,i.bg.load),performance.measure(Jw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(EM)[0].duration,S=performance.getEntriesByName(Jw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>MM).reduce((ve,we)=>ve+(we-MM)/MM,0);return{loadTime:I,fullLoadTime:S,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=Ci,i.C=function(I){if(U==null){let S=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=ms,i.E=Ne,i.F=class{constructor(I,S){this.target=I,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new yM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=B(self)?I:window}registerMessageHandler(I,S){this.messageHandlers[I]=S}sendAsync(I,S){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let We={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(We)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let S=I.data,D=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(B(self)||S.mustQueue)return this.tasks[D]=S,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,S)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),S=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(I,S)}processTask(I,S){return a(this,void 0,void 0,function*(){if(S.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(S.error?ie.reject(pa(S.error)):ie.resolve(pa(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(S.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[S.type](S.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,S,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?ia(S):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Le,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=qw,i.J=function(I,S,D){var X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui=D[0],Gi=D[1],cn=D[2];return S===I?(I[12]=S[0]*ui+S[4]*Gi+S[8]*cn+S[12],I[13]=S[1]*ui+S[5]*Gi+S[9]*cn+S[13],I[14]=S[2]*ui+S[6]*Gi+S[10]*cn+S[14],I[15]=S[3]*ui+S[7]*Gi+S[11]*cn+S[15]):(ie=S[1],ve=S[2],we=S[3],We=S[4],ut=S[5],St=S[6],$t=S[7],vr=S[8],Sr=S[9],Dr=S[10],Jr=S[11],I[0]=X=S[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=We,I[5]=ut,I[6]=St,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Dr,I[11]=Jr,I[12]=X*ui+We*Gi+vr*cn+S[12],I[13]=ie*ui+ut*Gi+Sr*cn+S[13],I[14]=ve*ui+St*Gi+Dr*cn+S[14],I[15]=we*ui+$t*Gi+Jr*cn+S[15]),I},i.K=function(I,S,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=S[0]*X,I[1]=S[1]*X,I[2]=S[2]*X,I[3]=S[3]*X,I[4]=S[4]*ie,I[5]=S[5]*ie,I[6]=S[6]*ie,I[7]=S[7]*ie,I[8]=S[8]*ve,I[9]=S[9]*ve,I[10]=S[10]*ve,I[11]=S[11]*ve,I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15],I},i.L=Zi,i.M=function(I,S){let D={};for(let X=0;X{let S=window.document.createElement("video");return S.muted=!0,new Promise(D=>{S.onloadstart=()=>{D(S)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(S.crossOrigin="Anonymous"),ie.src=X,S.appendChild(ie)}})},i.a4=function(){return x++},i.a5=Ua,i.a6=I1,i.a7=Jn,i.a8=hf,i.a9=xM,i.aA=function(I){if(I.type==="custom")return new mM(I);switch(I.type){case"background":return new cO(I);case"circle":return new Ji(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new vf(I);case"line":return new hg(I);case"raster":return new ab(I);case"symbol":return new mg(I)}},i.aB=m,i.aC=function(I,S){if(!I)return[{command:"setStyle",args:[S]}];let D=[];try{if(!gt(I.version,S.version))return[{command:"setStyle",args:[S]}];gt(I.center,S.center)||D.push({command:"setCenter",args:[S.center]}),gt(I.zoom,S.zoom)||D.push({command:"setZoom",args:[S.zoom]}),gt(I.bearing,S.bearing)||D.push({command:"setBearing",args:[S.bearing]}),gt(I.pitch,S.pitch)||D.push({command:"setPitch",args:[S.pitch]}),gt(I.sprite,S.sprite)||D.push({command:"setSprite",args:[S.sprite]}),gt(I.glyphs,S.glyphs)||D.push({command:"setGlyphs",args:[S.glyphs]}),gt(I.transition,S.transition)||D.push({command:"setTransition",args:[S.transition]}),gt(I.light,S.light)||D.push({command:"setLight",args:[S.light]}),gt(I.terrain,S.terrain)||D.push({command:"setTerrain",args:[S.terrain]}),gt(I.sky,S.sky)||D.push({command:"setSky",args:[S.sky]}),gt(I.projection,S.projection)||D.push({command:"setProjection",args:[S.projection]});let X={},ie=[];(function(we,We,ut,St){let $t;for($t in We=We||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(We,$t)||Ke($t,ut,St));for($t in We)Object.prototype.hasOwnProperty.call(We,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?gt(we[$t],We[$t])||(we[$t].type==="geojson"&&We[$t].type==="geojson"&&wt(we,We,$t)?qt(ut,{command:"setGeoJSONSourceData",args:[$t,We[$t].data]}):Ct($t,We,ut,St)):at($t,We,ut))})(I.sources,S.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,We,ut){We=We||[];let St=(we=we||[]).map(Bt),$t=We.map(Bt),vr=we.reduce(Zt,{}),Sr=We.reduce(Zt,{}),Dr=St.slice(),Jr=Object.create(null),ui,Gi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return S[X]=!we||we.toLowerCase(),""}),S["max-age"]){let D=parseInt(S["max-age"],10);isNaN(D)?delete S["max-age"]:S["max-age"]=D}return S},i.ab=function(I,S){let D=[];for(let X in I)X in S||D.push(X);return D},i.ac=E,i.ad=function(I,S,D){var X=Math.sin(D),ie=Math.cos(D),ve=S[0],we=S[1],We=S[2],ut=S[3],St=S[4],$t=S[5],vr=S[6],Sr=S[7];return S!==I&&(I[8]=S[8],I[9]=S[9],I[10]=S[10],I[11]=S[11],I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15]),I[0]=ve*ie+St*X,I[1]=we*ie+$t*X,I[2]=We*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=St*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-We*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var S=new dn(16);return S[0]=I[0],S[1]=I[1],S[2]=I[2],S[3]=I[3],S[4]=I[4],S[5]=I[5],S[6]=I[6],S[7]=I[7],S[8]=I[8],S[9]=I[9],S[10]=I[10],S[11]=I[11],S[12]=I[12],S[13]=I[13],S[14]=I[14],S[15]=I[15],S},i.af=hs,i.ag=function(I,S){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,We=ie?E(so.interpolationFactor(ie,S,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,We):D=We}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:S,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):S},i.aj=hM,i.ak=function(I,S,D,X){let ie=S.y-I.y,ve=S.x-I.x,we=X.y-D.y,We=X.x-D.x,ut=we*ve-We*ie;if(ut===0)return null;let St=(We*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+St*ve,I.y+St*ie)},i.al=GC,i.am=fc,i.an=En,i.ao=function(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[S,D,X,ie]},i.ap=jf,i.ar=cM,i.as=function(I,S){var D=S[0],X=S[1],ie=S[2],ve=S[3],we=S[4],We=S[5],ut=S[6],St=S[7],$t=S[8],vr=S[9],Sr=S[10],Dr=S[11],Jr=S[12],ui=S[13],Gi=S[14],cn=S[15],Za=D*We-X*we,Rn=D*ut-ie*we,La=D*St-ve*we,So=X*ut-ie*We,kl=X*St-ve*We,mu=ie*St-ve*ut,Iu=$t*ui-vr*Jr,su=$t*Gi-Sr*Jr,yl=$t*cn-Dr*Jr,Eu=vr*Gi-Sr*ui,bu=vr*cn-Dr*ui,_u=Sr*cn-Dr*Gi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(We*_u-ut*bu+St*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(ui*mu-Gi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Dr*So)*Xs,I[4]=(ut*yl-we*_u-St*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Gi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Dr*Rn)*Xs,I[8]=(we*bu-We*yl+St*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-ui*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Dr*Za)*Xs,I[12]=(We*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(ui*Rn-Jr*So-Gi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=AM,i.au=Gw,i.av=TM,i.aw=function(){let I={},S=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?S:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let S=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,S){return I[0]=S[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=S[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=S[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Ft{},i.be=gM,i.bf=_O,i.bh=de,i.bi=function(I,S){ge.REGISTERED_PROTOCOLS[I]=S},i.bj=function(I){delete ge.REGISTERED_PROTOCOLS[I]},i.bk=function(I,S){let D={};for(let ie=0;ie_u*jf)}let su=we?"center":D.get("text-justify").evaluate(St,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(St,{},I.canonical)*jf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Qx(ui,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&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 S=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(S)}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((S,D)=>{let X=new Image;X.onload=()=>{S(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=ze,i.h=(I,S)=>ke(L(I,{type:"json"}),S),i.i=B,i.j=xe,i.k=De,i.l=(I,S)=>ke(L(I,{type:"arrayBuffer"}),S),i.m=ke,i.n=function(I){return new lM(I).readFields(KQ,[])},i.o=ul,i.p=fM,i.q=le,i.r=Si,i.s=Ee,i.t=Pi,i.u=_i,i.v=ce,i.w=A,i.x=function([I,S,D]){return S+=90,S*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(S)*Math.sin(D),y:I*Math.sin(S)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(be){this.keyCache={},be&&this.replace(be)}replace(be){this._layerConfigs={},this._layers={},this.update(be,[])}update(be,Oe){for(let Fe of be){this._layerConfigs[Fe.id]=Fe;let ft=this._layers[Fe.id]=i.aA(Fe);ft._featureFilter=i.a7(ft.filter),this.keyCache[Fe.id]&&delete this.keyCache[Fe.id]}for(let Fe of Oe)delete this.keyCache[Fe],delete this._layerConfigs[Fe],delete this._layers[Fe];this.familiesBySource={};let Ie=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let Fe of Ie){let ft=Fe.map(zt=>this._layers[zt.id]),ye=ft[0];if(ye.visibility==="none")continue;let fe=ye.source||"",pe=this.familiesBySource[fe];pe||(pe=this.familiesBySource[fe]={});let dt=ye.sourceLayer||"_geojsonTileLayer",Pt=pe[dt];Pt||(Pt=pe[dt]=[]),Pt.push(ft)}}}class o{constructor(be){let Oe={},Ie=[];for(let fe in be){let pe=be[fe],dt=Oe[fe]={};for(let Pt in pe){let zt=pe[+Pt];if(!zt||zt.bitmap.width===0||zt.bitmap.height===0)continue;let rr={x:0,y:0,w:zt.bitmap.width+2,h:zt.bitmap.height+2};Ie.push(rr),dt[Pt]={rect:rr,metrics:zt.metrics}}}let{w:Fe,h:ft}=i.p(Ie),ye=new i.o({width:Fe||1,height:ft||1});for(let fe in be){let pe=be[fe];for(let dt in pe){let Pt=pe[+dt];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let zt=Oe[fe][dt].rect;i.o.copy(Pt.bitmap,ye,{x:0,y:0},{x:zt.x+1,y:zt.y+1},Pt.bitmap)}}this.image=ye,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(be){this.tileID=new i.S(be.tileID.overscaledZ,be.tileID.wrap,be.tileID.canonical.z,be.tileID.canonical.x,be.tileID.canonical.y),this.uid=be.uid,this.zoom=be.zoom,this.pixelRatio=be.pixelRatio,this.tileSize=be.tileSize,this.source=be.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=be.showCollisionBoxes,this.collectResourceTiming=!!be.collectResourceTiming,this.returnDependencies=!!be.returnDependencies,this.promoteId=be.promoteId,this.inFlightDependencies=[]}parse(be,Oe,Ie,Fe){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=be,this.collisionBoxArray=new i.a5;let ft=new i.bm(Object.keys(be.layers).sort()),ye=new i.bn(this.tileID,this.promoteId);ye.bucketLayerIDs=[];let fe={},pe={featureIndex:ye,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Ie},dt=Oe.familiesBySource[this.source];for(let Qi in dt){let si=be.layers[Qi];if(!si)continue;si.version===1&&i.w(`Vector tile source "${this.source}" layer "${Qi}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let Ti=ft.encode(Qi),Ni=[];for(let Rt=0;Rt=yt.maxzoom||yt.visibility!=="none"&&(u(Rt,this.zoom,Ie),(fe[yt.id]=yt.createBucket({index:ye.bucketLayerIDs.length,layers:Rt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ti,sourceID:this.source})).populate(Ni,pe,this.tileID.canonical),ye.bucketLayerIDs.push(Rt.map(Gt=>Gt.id)))}}let Pt=i.aF(pe.glyphDependencies,Qi=>Object.keys(Qi).map(Number));this.inFlightDependencies.forEach(Qi=>Qi==null?void 0:Qi.abort()),this.inFlightDependencies=[];let zt=Promise.resolve({});if(Object.keys(Pt).length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),zt=Fe.sendAsync({type:"GG",data:{stacks:Pt,source:this.source,tileID:this.tileID,type:"glyphs"}},Qi)}let rr=Object.keys(pe.iconDependencies),Gr=Promise.resolve({});if(rr.length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),Gr=Fe.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},Qi)}let Br=Object.keys(pe.patternDependencies),Er=Promise.resolve({});if(Br.length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),Er=Fe.sendAsync({type:"GI",data:{icons:Br,source:this.source,tileID:this.tileID,type:"patterns"}},Qi)}let[Rr,pi,Di]=yield Promise.all([zt,Gr,Er]),ni=new o(Rr),$i=new i.bo(pi,Di);for(let Qi in fe){let si=fe[Qi];si instanceof i.a6?(u(si.layers,this.zoom,Ie),i.bp({bucket:si,glyphMap:Rr,glyphPositions:ni.positions,imageMap:pi,imagePositions:$i.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):si.hasPattern&&(si instanceof i.bq||si instanceof i.br||si instanceof i.bs)&&(u(si.layers,this.zoom,Ie),si.addFeatures(pe,this.tileID.canonical,$i.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(Qi=>!Qi.isEmpty()),featureIndex:ye,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:$i,glyphMap:this.returnDependencies?Rr:null,iconMap:this.returnDependencies?pi:null,glyphPositions:this.returnDependencies?ni.positions:null}})}}function u(Re,be,Oe){let Ie=new i.z(be);for(let Fe of Re)Fe.recalculate(Ie,Oe)}class l{constructor(be,Oe,Ie){this.actor=be,this.layerIndex=Oe,this.availableImages=Ie,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(be,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield i.l(be.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Ie.data)),rawData:Ie.data,cacheControl:Ie.cacheControl,expires:Ie.expires}}catch(Fe){let ft=new Uint8Array(Ie.data),ye=`Unable to parse the tile at ${be.request.url}, `;throw ye+=ft[0]===31&&ft[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Fe.message}`,new Error(ye)}})}loadTile(be){return i._(this,void 0,void 0,function*(){let Oe=be.uid,Ie=!!(be&&be.request&&be.request.collectResourceTiming)&&new i.bv(be.request),Fe=new s(be);this.loading[Oe]=Fe;let ft=new AbortController;Fe.abort=ft;try{let ye=yield this.loadVectorTile(be,ft);if(delete this.loading[Oe],!ye)return null;let fe=ye.rawData,pe={};ye.expires&&(pe.expires=ye.expires),ye.cacheControl&&(pe.cacheControl=ye.cacheControl);let dt={};if(Ie){let zt=Ie.finish();zt&&(dt.resourceTiming=JSON.parse(JSON.stringify(zt)))}Fe.vectorTile=ye.vectorTile;let Pt=Fe.parse(ye.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=Fe,this.fetching[Oe]={rawTileData:fe,cacheControl:pe,resourceTiming:dt};try{let zt=yield Pt;return i.e({rawTileData:fe.slice(0)},zt,pe,dt)}finally{delete this.fetching[Oe]}}catch(ye){throw delete this.loading[Oe],Fe.status="done",this.loaded[Oe]=Fe,ye}})}reloadTile(be){return i._(this,void 0,void 0,function*(){let Oe=be.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 Ie=this.loaded[Oe];if(Ie.showCollisionBoxes=be.showCollisionBoxes,Ie.status==="parsing"){let Fe=yield Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor),ft;if(this.fetching[Oe]){let{rawTileData:ye,cacheControl:fe,resourceTiming:pe}=this.fetching[Oe];delete this.fetching[Oe],ft=i.e({rawTileData:ye.slice(0)},Fe,fe,pe)}else ft=Fe;return ft}if(Ie.status==="done"&&Ie.vectorTile)return Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(be){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Ie=be.uid;Oe&&Oe[Ie]&&Oe[Ie].abort&&(Oe[Ie].abort.abort(),delete Oe[Ie])})}removeTile(be){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[be.uid]&&delete this.loaded[be.uid]})}}class f{constructor(){this.loaded={}}loadTile(be){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Ie,rawImageData:Fe,redFactor:ft,greenFactor:ye,blueFactor:fe,baseShift:pe}=be,dt=Fe.width+2,Pt=Fe.height+2,zt=i.b(Fe)?new i.R({width:dt,height:Pt},yield i.bw(Fe,-1,-1,dt,Pt)):Fe,rr=new i.bx(Oe,zt,Ie,ft,ye,fe,pe);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(be){let Oe=this.loaded,Ie=be.uid;Oe&&Oe[Ie]&&delete Oe[Ie]}}function c(Re,be){if(Re.length!==0){h(Re[0],be);for(var Oe=1;Oe=Math.abs(fe)?Oe-pe+fe:fe-pe+Oe,Oe=pe}Oe+Ie>=0!=!!be&&Re.reverse()}var d=i.by(function Re(be,Oe){var Ie,Fe=be&&be.type;if(Fe==="FeatureCollection")for(Ie=0;Ie>31}function B(Re,be){for(var Oe=Re.loadGeometry(),Ie=Re.type,Fe=0,ft=0,ye=Oe.length,fe=0;feRe},W=Math.fround||(N=new Float32Array(1),Re=>(N[0]=+Re,N[0]));var N;let H=3,re=5,ae=6;class ge{constructor(be){this.options=Object.assign(Object.create(j),be),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(be){let{log:Oe,minZoom:Ie,maxZoom:Fe}=this.options;Oe&&console.time("total time");let ft=`prepare ${be.length} points`;Oe&&console.time(ft),this.points=be;let ye=[];for(let pe=0;pe=Ie;pe--){let dt=+Date.now();fe=this.trees[pe]=this._createTree(this._cluster(fe,pe)),Oe&&console.log("z%d: %d clusters in %dms",pe,fe.numItems,+Date.now()-dt)}return Oe&&console.timeEnd("total time"),this}getClusters(be,Oe){let Ie=((be[0]+180)%360+360)%360-180,Fe=Math.max(-90,Math.min(90,be[1])),ft=be[2]===180?180:((be[2]+180)%360+360)%360-180,ye=Math.max(-90,Math.min(90,be[3]));if(be[2]-be[0]>=360)Ie=-180,ft=180;else if(Ie>ft){let zt=this.getClusters([Ie,Fe,180,ye],Oe),rr=this.getClusters([-180,Fe,ft,ye],Oe);return zt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],pe=fe.range(de(Ie),te(ye),de(ft),te(Fe)),dt=fe.data,Pt=[];for(let zt of pe){let rr=this.stride*zt;Pt.push(dt[rr+re]>1?ze(dt,rr,this.clusterProps):this.points[dt[rr+H]])}return Pt}getChildren(be){let Oe=this._getOriginId(be),Ie=this._getOriginZoom(be),Fe="No cluster with the specified id.",ft=this.trees[Ie];if(!ft)throw new Error(Fe);let ye=ft.data;if(Oe*this.stride>=ye.length)throw new Error(Fe);let fe=this.options.radius/(this.options.extent*Math.pow(2,Ie-1)),pe=ft.within(ye[Oe*this.stride],ye[Oe*this.stride+1],fe),dt=[];for(let Pt of pe){let zt=Pt*this.stride;ye[zt+4]===be&&dt.push(ye[zt+re]>1?ze(ye,zt,this.clusterProps):this.points[ye[zt+H]])}if(dt.length===0)throw new Error(Fe);return dt}getLeaves(be,Oe,Ie){let Fe=[];return this._appendLeaves(Fe,be,Oe=Oe||10,Ie=Ie||0,0),Fe}getTile(be,Oe,Ie){let Fe=this.trees[this._limitZoom(be)],ft=Math.pow(2,be),{extent:ye,radius:fe}=this.options,pe=fe/ye,dt=(Ie-pe)/ft,Pt=(Ie+1+pe)/ft,zt={features:[]};return this._addTileFeatures(Fe.range((Oe-pe)/ft,dt,(Oe+1+pe)/ft,Pt),Fe.data,Oe,Ie,ft,zt),Oe===0&&this._addTileFeatures(Fe.range(1-pe/ft,dt,1,Pt),Fe.data,ft,Ie,ft,zt),Oe===ft-1&&this._addTileFeatures(Fe.range(0,dt,pe/ft,Pt),Fe.data,-1,Ie,ft,zt),zt.features.length?zt:null}getClusterExpansionZoom(be){let Oe=this._getOriginZoom(be)-1;for(;Oe<=this.options.maxZoom;){let Ie=this.getChildren(be);if(Oe++,Ie.length!==1)break;be=Ie[0].properties.cluster_id}return Oe}_appendLeaves(be,Oe,Ie,Fe,ft){let ye=this.getChildren(Oe);for(let fe of ye){let pe=fe.properties;if(pe&&pe.cluster?ft+pe.point_count<=Fe?ft+=pe.point_count:ft=this._appendLeaves(be,pe.cluster_id,Ie,Fe,ft):ft1,Pt,zt,rr;if(dt)Pt=Le(Oe,pe,this.clusterProps),zt=Oe[pe],rr=Oe[pe+1];else{let Er=this.points[Oe[pe+H]];Pt=Er.properties;let[Rr,pi]=Er.geometry.coordinates;zt=de(Rr),rr=te(pi)}let Gr={type:1,geometry:[[Math.round(this.options.extent*(zt*ft-Ie)),Math.round(this.options.extent*(rr*ft-Fe))]],tags:Pt},Br;Br=dt||this.options.generateId?Oe[pe+H]:this.points[Oe[pe+H]].id,Br!==void 0&&(Gr.id=Br),ye.features.push(Gr)}}_limitZoom(be){return Math.max(this.options.minZoom,Math.min(Math.floor(+be),this.options.maxZoom+1))}_cluster(be,Oe){let{radius:Ie,extent:Fe,reduce:ft,minPoints:ye}=this.options,fe=Ie/(Fe*Math.pow(2,Oe)),pe=be.data,dt=[],Pt=this.stride;for(let zt=0;ztOe&&(Rr+=pe[Di+re])}if(Rr>Er&&Rr>=ye){let pi,Di=rr*Er,ni=Gr*Er,$i=-1,Qi=((zt/Pt|0)<<5)+(Oe+1)+this.points.length;for(let si of Br){let Ti=si*Pt;if(pe[Ti+2]<=Oe)continue;pe[Ti+2]=Oe;let Ni=pe[Ti+re];Di+=pe[Ti]*Ni,ni+=pe[Ti+1]*Ni,pe[Ti+4]=Qi,ft&&(pi||(pi=this._map(pe,zt,!0),$i=this.clusterProps.length,this.clusterProps.push(pi)),ft(pi,this._map(pe,Ti)))}pe[zt+4]=Qi,dt.push(Di/Rr,ni/Rr,1/0,Qi,-1,Rr),ft&&dt.push($i)}else{for(let pi=0;pi1)for(let pi of Br){let Di=pi*Pt;if(!(pe[Di+2]<=Oe)){pe[Di+2]=Oe;for(let ni=0;ni>5}_getOriginZoom(be){return(be-this.points.length)%32}_map(be,Oe,Ie){if(be[Oe+re]>1){let ye=this.clusterProps[be[Oe+ae]];return Ie?Object.assign({},ye):ye}let Fe=this.points[be[Oe+H]].properties,ft=this.options.map(Fe);return Ie&&ft===Fe?Object.assign({},ft):ft}}function ze(Re,be,Oe){return{type:"Feature",id:Re[be+H],properties:Le(Re,be,Oe),geometry:{type:"Point",coordinates:[(Ie=Re[be],360*(Ie-.5)),ke(Re[be+1])]}};var Ie}function Le(Re,be,Oe){let Ie=Re[be+re],Fe=Ie>=1e4?`${Math.round(Ie/1e3)}k`:Ie>=1e3?Math.round(Ie/100)/10+"k":Ie,ft=Re[be+ae],ye=ft===-1?{}:Object.assign({},Oe[ft]);return Object.assign(ye,{cluster:!0,cluster_id:Re[be+H],point_count:Ie,point_count_abbreviated:Fe})}function de(Re){return Re/360+.5}function te(Re){let be=Math.sin(Re*Math.PI/180),Oe=.5-.25*Math.log((1+be)/(1-be))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Re){let be=(180-360*Re)*Math.PI/180;return 360*Math.atan(Math.exp(be))/Math.PI-90}function Ee(Re,be,Oe,Ie){let Fe=Ie,ft=be+(Oe-be>>1),ye,fe=Oe-be,pe=Re[be],dt=Re[be+1],Pt=Re[Oe],zt=Re[Oe+1];for(let rr=be+3;rrFe)ye=rr,Fe=Gr;else if(Gr===Fe){let Br=Math.abs(rr-ft);BrIe&&(ye-be>3&&Ee(Re,be,ye,Ie),Re[ye+2]=Fe,Oe-ye>3&&Ee(Re,ye,Oe,Ie))}function Se(Re,be,Oe,Ie,Fe,ft){let ye=Fe-Oe,fe=ft-Ie;if(ye!==0||fe!==0){let pe=((Re-Oe)*ye+(be-Ie)*fe)/(ye*ye+fe*fe);pe>1?(Oe=Fe,Ie=ft):pe>0&&(Oe+=ye*pe,Ie+=fe*pe)}return ye=Re-Oe,fe=be-Ie,ye*ye+fe*fe}function Ge(Re,be,Oe,Ie){let Fe={id:Re==null?null:Re,type:be,geometry:Oe,tags:Ie,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(be==="Point"||be==="MultiPoint"||be==="LineString")De(Fe,Oe);else if(be==="Polygon")De(Fe,Oe[0]);else if(be==="MultiLineString")for(let ft of Oe)De(Fe,ft);else if(be==="MultiPolygon")for(let ft of Oe)De(Fe,ft[0]);return Fe}function De(Re,be){for(let Oe=0;Oe0&&(ye+=Ie?(Fe*Pt-dt*ft)/2:Math.sqrt(Math.pow(dt-Fe,2)+Math.pow(Pt-ft,2))),Fe=dt,ft=Pt}let fe=be.length-3;be[2]=1,Ee(be,0,fe,Oe),be[fe+2]=1,be.size=Math.abs(ye),be.start=0,be.end=be.size}function je(Re,be,Oe,Ie){for(let Fe=0;Fe1?1:Oe}function qt(Re,be,Oe,Ie,Fe,ft,ye,fe){if(Ie/=be,ft>=(Oe/=be)&&ye=Ie)return null;let pe=[];for(let dt of Re){let Pt=dt.geometry,zt=dt.type,rr=Fe===0?dt.minX:dt.minY,Gr=Fe===0?dt.maxX:dt.maxY;if(rr>=Oe&&Gr=Ie)continue;let Br=[];if(zt==="Point"||zt==="MultiPoint")at(Pt,Br,Oe,Ie,Fe);else if(zt==="LineString")Ke(Pt,Br,Oe,Ie,Fe,!1,fe.lineMetrics);else if(zt==="MultiLineString")wt(Pt,Br,Oe,Ie,Fe,!1);else if(zt==="Polygon")wt(Pt,Br,Oe,Ie,Fe,!0);else if(zt==="MultiPolygon")for(let Er of Pt){let Rr=[];wt(Er,Rr,Oe,Ie,Fe,!0),Rr.length&&Br.push(Rr)}if(Br.length){if(fe.lineMetrics&&zt==="LineString"){for(let Er of Br)pe.push(Ge(dt.id,zt,Er,dt.tags));continue}zt!=="LineString"&&zt!=="MultiLineString"||(Br.length===1?(zt="LineString",Br=Br[0]):zt="MultiLineString"),zt!=="Point"&&zt!=="MultiPoint"||(zt=Br.length===3?"Point":"MultiPoint"),pe.push(Ge(dt.id,zt,Br,dt.tags))}}return pe.length?pe:null}function at(Re,be,Oe,Ie,Fe){for(let ft=0;ft=Oe&&ye<=Ie&&Mt(be,Re[ft],Re[ft+1],Re[ft+2])}}function Ke(Re,be,Oe,Ie,Fe,ft,ye){let fe=Ct(Re),pe=Fe===0?Bt:Zt,dt,Pt,zt=Re.start;for(let Rr=0;RrOe&&(Pt=pe(fe,pi,Di,$i,Qi,Oe),ye&&(fe.start=zt+dt*Pt)):si>Ie?Ti=Oe&&(Pt=pe(fe,pi,Di,$i,Qi,Oe),Ni=!0),Ti>Ie&&si<=Ie&&(Pt=pe(fe,pi,Di,$i,Qi,Ie),Ni=!0),!ft&&Ni&&(ye&&(fe.end=zt+dt*Pt),be.push(fe),fe=Ct(Re)),ye&&(zt+=dt)}let rr=Re.length-3,Gr=Re[rr],Br=Re[rr+1],Er=Fe===0?Gr:Br;Er>=Oe&&Er<=Ie&&Mt(fe,Gr,Br,Re[rr+2]),rr=fe.length-3,ft&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&Mt(fe,fe[0],fe[1],fe[2]),fe.length&&be.push(fe)}function Ct(Re){let be=[];return be.size=Re.size,be.start=Re.start,be.end=Re.end,be}function wt(Re,be,Oe,Ie,Fe,ft){for(let ye of Re)Ke(ye,be,Oe,Ie,Fe,ft,!1)}function Mt(Re,be,Oe,Ie){Re.push(be,Oe,Ie)}function Bt(Re,be,Oe,Ie,Fe,ft){let ye=(ft-be)/(Ie-be);return Mt(Re,ft,Oe+(Fe-Oe)*ye,1),ye}function Zt(Re,be,Oe,Ie,Fe,ft){let ye=(ft-Oe)/(Fe-Oe);return Mt(Re,be+(Ie-be)*ye,ft,1),ye}function Et(Re,be){let Oe=[];for(let Ie=0;Ie0&&be.size<(Fe?ye:Ie))return void(Oe.numPoints+=be.length/3);let fe=[];for(let pe=0;peye)&&(Oe.numSimplified++,fe.push(be[pe],be[pe+1])),Oe.numPoints++;Fe&&function(pe,dt){let Pt=0;for(let zt=0,rr=pe.length,Gr=rr-2;zt0===dt)for(let zt=0,rr=pe.length;zt24)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 Fe=function(ft,ye){let fe=[];if(ft.type==="FeatureCollection")for(let pe=0;pe1&&console.time("creation"),Gr=this.tiles[rr]=vt(be,Oe,Ie,Fe,dt),this.tileCoords.push({z:Oe,x:Ie,y:Fe}),Pt)){Pt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Ie,Fe,Gr.numFeatures,Gr.numPoints,Gr.numSimplified),console.timeEnd("creation"));let Ni=`z${Oe}`;this.stats[Ni]=(this.stats[Ni]||0)+1,this.total++}if(Gr.source=be,ft==null){if(Oe===dt.indexMaxZoom||Gr.numPoints<=dt.indexMaxPoints)continue}else{if(Oe===dt.maxZoom||Oe===ft)continue;if(ft!=null){let Ni=ft-Oe;if(Ie!==ye>>Ni||Fe!==fe>>Ni)continue}}if(Gr.source=null,be.length===0)continue;Pt>1&&console.time("clipping");let Br=.5*dt.buffer/dt.extent,Er=.5-Br,Rr=.5+Br,pi=1+Br,Di=null,ni=null,$i=null,Qi=null,si=qt(be,zt,Ie-Br,Ie+Rr,0,Gr.minX,Gr.maxX,dt),Ti=qt(be,zt,Ie+Er,Ie+pi,0,Gr.minX,Gr.maxX,dt);be=null,si&&(Di=qt(si,zt,Fe-Br,Fe+Rr,1,Gr.minY,Gr.maxY,dt),ni=qt(si,zt,Fe+Er,Fe+pi,1,Gr.minY,Gr.maxY,dt),si=null),Ti&&($i=qt(Ti,zt,Fe-Br,Fe+Rr,1,Gr.minY,Gr.maxY,dt),Qi=qt(Ti,zt,Fe+Er,Fe+pi,1,Gr.minY,Gr.maxY,dt),Ti=null),Pt>1&&console.timeEnd("clipping"),pe.push(Di||[],Oe+1,2*Ie,2*Fe),pe.push(ni||[],Oe+1,2*Ie,2*Fe+1),pe.push($i||[],Oe+1,2*Ie+1,2*Fe),pe.push(Qi||[],Oe+1,2*Ie+1,2*Fe+1)}}getTile(be,Oe,Ie){be=+be,Oe=+Oe,Ie=+Ie;let Fe=this.options,{extent:ft,debug:ye}=Fe;if(be<0||be>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",be,Oe,Ie);let dt,Pt=be,zt=Oe,rr=Ie;for(;!dt&&Pt>0;)Pt--,zt>>=1,rr>>=1,dt=this.tiles[It(Pt,zt,rr)];return dt&&dt.source?(ye>1&&(console.log("found parent tile z%d-%d-%d",Pt,zt,rr),console.time("drilling down")),this.splitTile(dt.source,Pt,zt,rr,be,Oe,Ie),ye>1&&console.timeEnd("drilling down"),this.tiles[pe]?ot(this.tiles[pe],ft):null):null}}function It(Re,be,Oe){return 32*((1<{zt.properties=Gr;let Br={};for(let Er of rr)Br[Er]=pe[Er].evaluate(Pt,zt);return Br},ye.reduce=(Gr,Br)=>{zt.properties=Br;for(let Er of rr)Pt.accumulated=Gr[Er],Gr[Er]=dt[Er].evaluate(Pt,zt)},ye}(be)).load((yield this._pendingData).features):(Fe=yield this._pendingData,new tt(Fe,be.geojsonVtOptions)),this.loaded={};let ft={};if(Ie){let ye=Ie.finish();ye&&(ft.resourceTiming={},ft.resourceTiming[be.source]=JSON.parse(JSON.stringify(ye)))}return ft}catch(ft){if(delete this._pendingRequest,i.bB(ft))return{abandoned:!0};throw ft}var Fe})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(be){let Oe=this.loaded;return Oe&&Oe[be.uid]?super.reloadTile(be):this.loadTile(be)}loadAndProcessGeoJSON(be,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield this.loadGeoJSON(be,Oe);if(delete this._pendingRequest,typeof Ie!="object")throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`);if(d(Ie,!0),be.filter){let Fe=i.bC(be.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Fe.result==="error")throw new Error(Fe.value.map(ye=>`${ye.key}: ${ye.message}`).join(", "));Ie={type:"FeatureCollection",features:Ie.features.filter(ye=>Fe.value.evaluate({zoom:0},ye))}}return Ie})}loadGeoJSON(be,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Ie}=be;if(be.request){let Fe=yield i.h(be.request,Oe);return this._dataUpdateable=cr(Fe.data,Ie)?_r(Fe.data,Ie):void 0,Fe.data}if(typeof be.data=="string")try{let Fe=JSON.parse(be.data);return this._dataUpdateable=cr(Fe,Ie)?_r(Fe,Ie):void 0,Fe}catch(Fe){throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`)}if(!be.dataDiff)throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${be.source}`);return function(Fe,ft,ye){var fe,pe,dt,Pt;if(ft.removeAll&&Fe.clear(),ft.remove)for(let zt of ft.remove)Fe.delete(zt);if(ft.add)for(let zt of ft.add){let rr=Yt(zt,ye);rr!=null&&Fe.set(rr,zt)}if(ft.update)for(let zt of ft.update){let rr=Fe.get(zt.id);if(rr==null)continue;let Gr=!zt.removeAllProperties&&(((fe=zt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=zt.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((zt.newGeometry||zt.removeAllProperties||Gr)&&(rr=Object.assign({},rr),Fe.set(zt.id,rr),Gr&&(rr.properties=Object.assign({},rr.properties))),zt.newGeometry&&(rr.geometry=zt.newGeometry),zt.removeAllProperties)rr.properties={};else if(((dt=zt.removeProperties)===null||dt===void 0?void 0:dt.length)>0)for(let Br of zt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Br)&&delete rr.properties[Br];if(((Pt=zt.addOrUpdateProperties)===null||Pt===void 0?void 0:Pt.length)>0)for(let{key:Br,value:Er}of zt.addOrUpdateProperties)rr.properties[Br]=Er}}(this._dataUpdateable,be.dataDiff,Ie),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(be){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(be){return this._geoJSONIndex.getClusterExpansionZoom(be.clusterId)}getClusterChildren(be){return this._geoJSONIndex.getChildren(be.clusterId)}getClusterLeaves(be){return this._geoJSONIndex.getLeaves(be.clusterId,be.limit,be.offset)}}class Ut{constructor(be){this.self=be,this.actor=new i.F(be),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Ie)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Ie},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,Ie)=>this._getDEMWorkerSource(Oe,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RDT",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Ie.source).removeTile(Ie)})),this.actor.registerMessageHandler("GCEZ",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterExpansionZoom(Ie)})),this.actor.registerMessageHandler("GCC",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterChildren(Ie)})),this.actor.registerMessageHandler("GCL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterLeaves(Ie)})),this.actor.registerMessageHandler("LD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadData(Ie)),this.actor.registerMessageHandler("GD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).reloadTile(Ie)),this.actor.registerMessageHandler("AT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).abortTile(Ie)),this.actor.registerMessageHandler("RMT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).removeTile(Ie)),this.actor.registerMessageHandler("RS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Ie.type]||!this.workerSources[Oe][Ie.type][Ie.source])return;let Fe=this.workerSources[Oe][Ie.type][Ie.source];delete this.workerSources[Oe][Ie.type][Ie.source],Fe.removeSource!==void 0&&Fe.removeSource(Ie)})),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,Ie)=>i._(this,void 0,void 0,function*(){this.referrer=Ie})),this.actor.registerMessageHandler("SRPS",(Oe,Ie)=>this._syncRTLPluginState(Oe,Ie)),this.actor.registerMessageHandler("IS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Ie)})),this.actor.registerMessageHandler("SI",(Oe,Ie)=>this._setImages(Oe,Ie)),this.actor.registerMessageHandler("UL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Ie.layers,Ie.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Ie)}))}_setImages(be,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[be]=Oe;for(let Ie in this.workerSources[be]){let Fe=this.workerSources[be][Ie];for(let ft in Fe)Fe[ft].availableImages=Oe}})}_syncRTLPluginState(be,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 Ie=Oe.pluginURL;if(this.self.importScripts(Ie),i.bD.isParsed()){let Fe={pluginStatus:"loaded",pluginURL:Ie};return i.bD.setState(Fe),Fe}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Ie}`)})}_getAvailableImages(be){let Oe=this.availableImages[be];return Oe||(Oe=[]),Oe}_getLayerIndex(be){let Oe=this.layerIndexes[be];return Oe||(Oe=this.layerIndexes[be]=new a),Oe}_getWorkerSource(be,Oe,Ie){if(this.workerSources[be]||(this.workerSources[be]={}),this.workerSources[be][Oe]||(this.workerSources[be][Oe]={}),!this.workerSources[be][Oe][Ie]){let Fe={sendAsync:(ft,ye)=>(ft.targetMapId=be,this.actor.sendAsync(ft,ye))};switch(Oe){case"vector":this.workerSources[be][Oe][Ie]=new l(Fe,this._getLayerIndex(be),this._getAvailableImages(be));break;case"geojson":this.workerSources[be][Oe][Ie]=new yr(Fe,this._getLayerIndex(be),this._getAvailableImages(be));break;default:this.workerSources[be][Oe][Ie]=new this.externalWorkerSourceTypes[Oe](Fe,this._getLayerIndex(be),this._getAvailableImages(be))}}return this.workerSources[be][Oe][Ie]}_getDEMWorkerSource(be,Oe){return this.demWorkerSources[be]||(this.demWorkerSources[be]={}),this.demWorkerSources[be][Oe]||(this.demWorkerSources[be][Oe]=new f),this.demWorkerSources[be][Oe]}}return i.i(self)&&(self.worker=new Ut(self)),Ut}),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:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){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=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,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 ue=0;ue{h&&b(h),h=null,_=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=mt=>{let Ft=Q++;return ee[Ft]=mt,Ft},le.removeThrottleControl=mt=>{delete ee[mt],Ue()},le.getImage=(mt,Ft,ir=!0)=>new Promise((or,kr)=>{c.supported&&(mt.headers||(mt.headers={}),mt.headers.accept="image/webp,*/*"),a.e(mt,{type:"image"}),w.push({abortController:Ft,requestParameters:mt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ue()});let ue=mt=>a._(this,void 0,void 0,function*(){mt.state="running";let{requestParameters:Ft,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=mt,he=ir===!1&&!a.i(self)&&!a.g(Ft.url)&&(!Ft.headers||Object.keys(Ft.headers).reduce((Ve,lt)=>Ve&<==="accept",!0));q++;let Me=he?rt(Ft,Vr):a.m(Ft,Vr);try{let Ve=yield Me;delete mt.abortController,mt.state="completed",Ve.data instanceof HTMLImageElement||a.b(Ve.data)?kr(Ve):Ve.data&&kr({data:yield(qe=Ve.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:Ve.cacheControl,expires:Ve.expires})}catch(Ve){delete mt.abortController,or(Ve)}finally{q--,Ue()}var qe}),Ue=()=>{let mt=(()=>{for(let Ft of Object.keys(ee))if(ee[Ft]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Ft=q;Ft0;Ft++){let ir=w.shift();ir.abortController.signal.aborted?Ft--:ue(ir)}},rt=(mt,Ft)=>new Promise((ir,or)=>{let kr=new Image,Vr=mt.url,he=mt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Ft.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Ft.signal.aborted||or(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."))},kr.src=Vr})}(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(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var x=function(le){var w=le[0],q=le[1];return w*w+q*q};function k(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function M(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[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:ue}=w,Ue=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:rt}=this,{gl:mt}=rt;if(this.useMipmap=!!(q&&q.useMipmap),mt.bindTexture(mt.TEXTURE_2D,this.texture),rt.pixelStoreUnpackFlipY.set(!1),rt.pixelStoreUnpack.set(1),rt.pixelStoreUnpackPremultiplyAlpha.set(this.format===mt.RGBA&&(!q||q.premultiply!==!1)),Ue)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texImage2D(mt.TEXTURE_2D,0,this.format,this.format,mt.UNSIGNED_BYTE,w):mt.texImage2D(mt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,mt.UNSIGNED_BYTE,w.data);else{let{x:Ft,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,mt.RGBA,mt.UNSIGNED_BYTE,w):mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,ee,ue,mt.RGBA,mt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&mt.generateMipmap(mt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.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(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A 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 ue of w)this.images[ue]||(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},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}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 ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ue}=this.patterns[ue],rt=Ue.x+1,mt=Ue.y+1,Ft=this.getImage(ue).data,ir=Ft.width,or=Ft.height;a.R.copy(Ft,ee,{x:0,y:0},{x:rt,y:mt},{width:ir,height:or}),a.R.copy(Ft,ee,{x:0,y:or-1},{x:rt,y:mt-1},{width:ir,height:1}),a.R.copy(Ft,ee,{x:0,y:0},{x:rt,y:mt+or},{width:ir,height:1}),a.R.copy(Ft,ee,{x:ir-1,y:0},{x:rt-1,y:mt},{width:1,height:or}),a.R.copy(Ft,ee,{x:0,y:0},{x:rt+ir,y:mt},{width:1,height:or})}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 F=1e20;function B(le,w,q,Q,ee,ue,Ue,rt,mt){for(let Ft=w;Ft-1);mt++,ue[mt]=rt,Ue[mt]=Ft,Ue[mt+1]=F}for(let rt=0,mt=0;rt65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let rt=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=rt}let Ue=yield Q.requests[ue];for(let rt in Ue)this._doesCharSupportLocalGlyph(+rt)||(Q.glyphs[+rt]=Ue[+rt]);return Q.ranges[ue]=!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 ue=w.tinySDF;if(!ue){let rt="400";/bold/i.test(q)?rt="900":/medium/i.test(q)?rt="500":/light/i.test(q)&&(rt="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:rt})}let Ue=ue.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(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ue=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),rt=yield a.l(Ue,new AbortController);if(!rt||!rt.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let mt={};for(let Ft of a.n(rt.data))mt[Ft.id]=Ft;return mt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ue="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let rt=this.size=le+4*w,mt=this._createCanvas(rt),Ft=this.ctx=mt.getContext("2d",{willReadFrequently:!0});Ft.font=`${Ue} ${ue} ${le}px ${ee}`,Ft.textBaseline="alphabetic",Ft.textAlign="left",Ft.fillStyle="black",this.gridOuter=new Float64Array(rt*rt),this.gridInner=new Float64Array(rt*rt),this.f=new Float64Array(rt),this.z=new Float64Array(rt+1),this.v=new Uint16Array(rt)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ue=Math.ceil(q),rt=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),mt=Math.min(this.size-this.buffer,Ue+Math.ceil(Q)),Ft=rt+2*this.buffer,ir=mt+2*this.buffer,or=Math.max(Ft*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Ft,height:ir,glyphWidth:rt,glyphHeight:mt,glyphTop:Ue,glyphLeft:0,glyphAdvance:w};if(rt===0||mt===0)return Vr;let{ctx:he,buffer:Me,gridInner:qe,gridOuter:Ve}=this;he.clearRect(Me,Me,rt,mt),he.fillText(le,Me,Me+Ue);let lt=he.getImageData(Me,Me,rt,mt);Ve.fill(F,0,or),qe.fill(0,0,or);for(let it=0;it0?fr*fr:0,qe[nr]=fr<0?fr*fr:0}}B(Ve,0,0,Ft,ir,Ft,this.f,this.v,this.z),B(qe,Me,Me,rt,mt,Ft,this.f,this.v,this.z);for(let it=0;it1&&(mt=w[++rt]);let ir=Math.abs(Ft-mt.left),or=Math.abs(Ft-mt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(mt.isDash){let Me=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Me*Me)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ue+Ft]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let rt=w.length-1;rt>=0;--rt){let mt=w[rt],Ft=w[rt+1];mt.zeroLength?w.splice(rt,1):Ft&&Ft.isDash===mt.isDash&&(Ft.left=mt.left,w.splice(rt,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,ue=0,Ue=w[ue];for(let rt=0;rt1&&(Ue=w[++ue]);let mt=Math.abs(rt-Ue.left),Ft=Math.abs(rt-Ue.right),ir=Math.min(mt,Ft);this.data[ee+rt]=Math.max(0,Math.min(255,(Ue.isDash?ir:-ir)+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 ue=0;for(let rt=0;rt{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[ge]}numActive(){return Object.keys(this.active).length}}let Le=Math.floor(l.hardwareConcurrency/2),de,te;function ke(){return de||(de=new ze),de}ze.workerCount=a.C(globalThis)?Math.max(Math.min(Le,3),1):1;class Ee{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 Se(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ge(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function De(le,w,q,Q,ee,ue){let Ue=function(or,kr,Vr){if(or)for(let he of or){let Me=kr[he];if(Me&&Me.source===Vr&&Me.type==="fill-extrusion")return!0}else for(let he in kr){let Me=kr[he];if(Me.source===Vr&&Me.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),rt=ue.maxPitchScaleFactor(),mt=le.tilesIn(Q,rt,Ue);mt.sort(xe);let Ft=[];for(let or of mt)Ft.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,rt,Ge(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Me=he.queryResults,qe=he.wrappedTileID,Ve=Vr[qe]=Vr[qe]||{};for(let lt in Me){let it=Me[lt],pt=Ve[lt]=Ve[lt]||{},Ht=kr[lt]=kr[lt]||[];for(let nr of it)pt[nr.featureIndex]||(pt[nr.featureIndex]=!0,Ht.push(nr))}}return kr}(Ft);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function xe(le,w){let q=le.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 Ne(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.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,ue;if(w instanceof a.N)ee=w,ue=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,ue=w._ne,!ee||!ue)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(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.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),ue=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((ue,Ue)=>{w.reloadPromise={resolve:ue,reject:Ue}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;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 gt 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 Ne(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,ue=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,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.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 qt extends gt{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 ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ue=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),rt={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 mt=yield w.actor.sendAsync({type:"LDT",data:rt});w.dem=mt,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,ue=q.x===0?w.wrap-1:w.wrap,Ue=(q.x+1+Q)%Q,rt=q.x+1===Q?w.wrap+1:w.wrap,mt={};return mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},mt[new a.S(w.overscaledZ,rt,q.z,Ue,q.y).key]={backfilled:!1},q.y>0&&(mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,rt,q.z,Ue,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{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 Ct 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 ue=1/0,Ue=1/0,rt=-1/0,mt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ue=Math.min(Ue,kr.y),rt=Math.max(rt,kr.x),mt=Math.max(mt,kr.y);let Ft=Math.max(rt-ue,mt-Ue),ir=Math.max(0,Math.floor(-Math.log(Ft)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+rt)/2*or),Math.floor((Ue+mt)/2*or))}(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 ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.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 wt extends Ct{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 ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.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 Mt extends Ct{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.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 ue in this.tiles){let Ue=this.tiles[ue];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 Bt={},Zt=le=>{switch(le){case"geojson":return at;case"image":return Ct;case"raster":return gt;case"raster-dem":return qt;case"vector":return Qe;case"video":return wt;case"canvas":return Mt}return Bt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Se()}_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(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let ot=null;function At(){return ot||(ot=new Ae),ot}class vt{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;que.getLayer(Ft)).filter(Boolean);if(mt.length!==0){rt.layers=mt,rt.stateDependentLayerIds&&(rt.stateDependentLayers=rt.stateDependentLayerIds.map(Ft=>mt.filter(ir=>ir.id===Ft)[0]));for(let Ft of mt)Ue[Ft.id]=rt}}return Ue}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,At().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}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,ue,Ue,rt,mt,Ft,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ue,tileSize:this.tileSize,pixelPosMatrix:ir,transform:mt,params:rt,queryPadding:this.queryPadding*Ft},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ue=ee._geojsonTileLayer||ee[ue];if(!Ue)return;let rt=a.a7(q&&q.filter),{z:mt,x:Ft,y:ir}=this.tileID.canonical,or={z:mt,x:Ft,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),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),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.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 He{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 ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}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 ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ue in ue)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 ue={};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]),ue[Ue]=this.state[ee][Ue];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ue in this.state[ee])ue[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 rt of Object.keys(this.deletedStates[ee][Ue]))delete this.state[ee][Ue][rt];ue[Ue]=this.state[ee][Ue]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class nt 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,ue,Ue,rt)=>{let mt=new(Zt(ue.type))(ee,ue,Ue,rt);if(mt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${mt.id}`);return mt})(w,q,Q,this),this._tiles={},this._cache=new Je(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new He,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 ue=Q.tileID,Ue=ee.tileID,rt=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),mt=new a.P(Ue.canonical.x,Ue.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ue.overscaledZ||mt.y-rt.y||mt.x-rt.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+mt)===1?Ue+=mt:Math.abs(Ue-mt)===1&&(Ue-=mt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ue,rt),ee.neighboringTiles&&ee.neighboringTiles[Ft]&&(ee.neighboringTiles[Ft].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ue=this._tiles[ue];if(ee[ue]||!Ue.hasData()||Ue.tileID.overscaledZ<=q||Ue.tileID.overscaledZ>Q)continue;let rt=Ue.tileID;for(;Ue&&Ue.tileID.overscaledZ>q+1;){let Ft=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Ft.key],Ue&&Ue.hasData()&&(rt=Ft)}let mt=rt;for(;mt.overscaledZ>q;)if(mt=mt.scaledTo(mt.overscaledZ-1),w[mt.key]){ee[rt.key]=rt;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),ue=this._getLoadedTile(ee);if(ue)return ue}}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)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}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 ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}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,ue,Ue){let rt={},mt={},Ft=Object.keys(w),ir=l.now();for(let or of Ft){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Me=this.findLoadedSibling(kr),qe=he||Me||null;qe&&(this._addTile(qe.tileID),rt[qe.tileID.key]=qe.tileID),mt[or]=kr}this._retainLoadedChildren(mt,ee,Q,w);for(let or in rt)w[or]||(this._coveredTiles[or]=!0,w[or]=rt[or]);if(Ue){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Me=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),Ve=Me||qe||null;if(Ve){or[Ve.tileID.key]=w[Ve.tileID.key]=Ve.tileID;for(let lt in or)or[lt].isChildOf(Ve.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!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(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.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(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-nt.maxOverzooming,this._source.minzoom),Ue=Math.max(ee+nt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let rt=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,rt&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let mt=this._updateRetainedTiles(Q,ee);It(this._source.type)&&this._updateCoveredAndRetainedTiles(mt,ue,Ue,ee,Q,q);for(let ir in mt)this._tiles[ir].clearFadeHold();let Ft=a.ab(this._tiles,mt);for(let ir of Ft){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}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={},ue={},Ue=Math.max(q-nt.maxOverzooming,this._source.minzoom),rt=Math.max(q+nt.maxUnderzooming,this._source.minzoom),mt={};for(let Ft of w){let ir=this._addTile(Ft);ee[Ft.key]=Ft,ir.hasData()||qthis._source.maxzoom){let kr=Ft.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Ft.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Ft.overscaledZ-1;kr>=Ue;--kr){let Vr=Ft.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.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 ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=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 vt(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=[],ue=this.transform;if(!ue)return ee;let Ue=Q?ue.getCameraQueryGeometry(w):w,rt=w.map(he=>ue.pointCoordinate(he,this.terrain)),mt=Ue.map(he=>ue.pointCoordinate(he,this.terrain)),Ft=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of mt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&it[1].y+lt>=0){let pt=rt.map(nr=>qe.getTilePoint(nr)),Ht=mt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Me,tileID:qe,queryGeometry:pt,cameraQueryGeometry:Ht,scale:Ve})}}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(It(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(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function It(le){return le==="raster"||le==="image"||le==="video"}nt.maxOverzooming=10,nt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ue)/rt:0;return this.points[ue].mult(1-mt).add(this.points[q].mult(mt))}}function cr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class _r{constructor(w,q,Q){let ee=this.boxCells=[],ue=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 mt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Ft=0;Ft0}hitTestCircle(w,q,Q,ee,ue){let Ue=w-Q,rt=w+Q,mt=q-Q,Ft=q+Q;if(rt<0||Ue>this.width||Ft<0||mt>this.height)return!1;let ir=[];return this._forEachCell(Ue,mt,rt,Ft,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ue,rt,mt){let{seenUids:Ft,hitTest:ir,overlapMode:or}=rt,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Me of kr)if(!Ft.box[Me]){Ft.box[Me]=!0;let qe=4*Me,Ve=this.boxKeys[Me];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!mt||mt(Ve))&&(!ir||!cr(or,Ve.overlapMode))&&(Ue.push({key:Ve,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Me of Vr)if(!Ft.circle[Me]){Ft.circle[Me]=!0;let qe=3*Me,Ve=this.circleKeys[Me];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!mt||mt(Ve))&&(!ir||!cr(or,Ve.overlapMode))){let lt=he[qe],it=he[qe+1],pt=he[qe+2];if(Ue.push({key:Ve,x1:lt-pt,y1:it-pt,x2:lt+pt,y2:it+pt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ue,rt,mt){let{circle:Ft,seenUids:ir,overlapMode:or}=rt,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Me of kr)if(!ir.box[Me]){ir.box[Me]=!0;let qe=4*Me,Ve=this.boxKeys[Me];if(this._circleAndRectCollide(Ft.x,Ft.y,Ft.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!mt||mt(Ve))&&!cr(or,Ve.overlapMode))return Ue.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Me of Vr)if(!ir.circle[Me]){ir.circle[Me]=!0;let qe=3*Me,Ve=this.circleKeys[Me];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Ft.x,Ft.y,Ft.radius)&&(!mt||mt(Ve))&&!cr(or,Ve.overlapMode))return Ue.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ue,rt,mt){let Ft=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Ft;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ue,rt,mt))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,ue,Ue){let rt=ee-w,mt=ue-q,Ft=Q+Ue;return Ft*Ft>rt*rt+mt*mt}_circleAndRectCollide(w,q,Q,ee,ue,Ue,rt){let mt=(Ue-ee)/2,Ft=Math.abs(w-(ee+mt));if(Ft>mt+Q)return!1;let ir=(rt-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Ft<=mt||or<=ir)return!0;let kr=Ft-mt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function yr(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ut(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Re(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Er(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function be(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Ie(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he){let Me=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Me,q.transform.zoom),Ve=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let it=le.lineVertexArray,pt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Ht=q.transform.width/q.transform.height,nr=!1;for(let fr=0;frMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function ye(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Me=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,Ve=w.lineStartIndex+w.lineLength,lt=Fe(or,rt,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let it=Re(lt.first.point.x,lt.first.point.y,Ue,le.getElevation).point,pt=Re(lt.last.point.x,lt.last.point.y,Ue,le.getElevation).point;if(ee&&!Q){let Ht=ft(w.writingMode,it,pt,Ft);if(Ht)return Ht}he=[lt.first];for(let Ht=w.glyphStartIndex+1;Ht0?it.point:function(nr,fr,Ar,Ir,ri,li){return fe(nr,fr,Ar,1,ri,li)}(le.tileAnchorPoint,lt,qe,0,ue,le),Ht=ft(w.writingMode,qe,pt,Ft);if(Ht)return Ht}let Me=rr(or*rt.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Me||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Me]}for(let Me of he)a.aj(mt,Me.point,Me.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ue=le.add(le.sub(w)._unit()),rt=ee!==void 0?Re(Ue.x,Ue.y,ee,ue.getElevation).point:dt(Ue.x,Ue.y,ue).point,mt=q.sub(rt);return q.add(mt._mult(Q/mt.mag()))}function pe(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=dt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ue=le-q.direction;return function(rt,mt,Ft,ir,or){return fe(rt,mt,Ft,ir,void 0,or)}(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 dt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Re(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function Pt(le,w,q){return le._unit()._perp()._mult(w*q)}function zt(le,w,q,Q,ee,ue,Ue,rt,mt){if(rt.projectionCache.offsets[le])return rt.projectionCache.offsets[le];let Ft=q.add(w);if(le+mt.direction=ee)return rt.projectionCache.offsets[le]=Ft,Ft;let ir=pe(le+mt.direction,rt,mt),or=Pt(ir.sub(q),Ue,mt.direction),kr=q.add(or),Vr=ir.add(or);return rt.projectionCache.offsets[le]=a.ak(ue,Ft,kr,Vr)||Ft,rt.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ue,rt,mt){let Ft=Q?le-w:le+w,ir=Ft>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;rt.projectionCache.cachedAnchorPoint?kr=rt.projectionCache.cachedAnchorPoint:(kr=dt(rt.tileAnchorPoint.x,rt.tileAnchorPoint.y,rt).point,rt.projectionCache.cachedAnchorPoint=kr);let he,Me,qe=kr,Ve=kr,lt=0,it=0,pt=Math.abs(Ft),Ht=[],nr;for(;lt+it<=pt;){if(Vr+=ir,Vr=Ue)return null;lt+=it,Ve=qe,Me=he;let Ir={absOffsetX:pt,direction:ir,distanceFromAnchor:lt,previousVertex:Ve};if(qe=pe(Vr,rt,Ir),q===0)Ht.push(Ve),nr=qe.sub(Ve);else{let ri,li=qe.sub(Ve);ri=li.mag()===0?Pt(pe(Vr+ir,rt,Ir).sub(qe),q,ir):Pt(li,q,ir),Me||(Me=Ve.add(ri)),he=zt(Vr,ri,qe,ue,Ue,Me,q,rt,Ir),Ht.push(Me),nr=he.sub(Me)}it=nr.mag()}let fr=nr._mult((pt-lt)/it)._add(Me||Ve),Ar=or+Math.atan2(qe.y-Ve.y,qe.x-Ve.x);return Ht.push(fr),{point:fr,angle:mt?Ar:0,path:Ht}}let Gr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Br(le,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=li.x&&ml.x<=Ei.x&&Us.y>=li.y&&ml.y<=Ei.y?[Ua]:ml.xEi.x||ml.yEi.y?[]:a.al([Ua],li.x,li.y,Ei.x,Ei.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auRe(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,ue=-1/0,Ue=-1/0;for(let ir of w){let or=new a.P(ir.x+Rr,ir.y+Rr);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ue=Math.max(Ue,or.y),q.push(or)}let rt=this.grid.query(Q,ee,ue,Ue).concat(this.ignoredGrid.query(Q,ee,ue,Ue)),mt={},Ft={};for(let ir of rt){let or=ir.key;if(mt[or.bucketInstanceId]===void 0&&(mt[or.bucketInstanceId]={}),mt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(mt[or.bucketInstanceId][or.featureIndex]=!0,Ft[or.bucketInstanceId]===void 0&&(Ft[or.bucketInstanceId]=[]),Ft[or.bucketInstanceId].push(or.featureIndex))}return Ft}insertCollisionBox(w,q,Q,ee,ue,Ue){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ue,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ue){let rt=Q?this.ignoredGrid:this.grid,mt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ue,overlapMode:q};for(let Ft=0;Ft=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Ft));Ar=Ir.some(ri=>!ri.isOccluded),fr=Ir.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(fr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class ni{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 $i{constructor(w,q,Q,ee,ue){this.text=new ni(w?w.text:null,q,Q,ue),this.icon=new ni(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Qi{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class si{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class Ti{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Ni{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(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ue}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ue-.5)*q+Q[1]*ee)}class yt{constructor(w,q,Q,ee,ue,Ue){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new pi(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Ni(ue),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 ue=Q.getBucket(q),Ue=Q.latestFeatureIndex;if(!ue||!Ue||q.id!==ue.layerIds[0])return;let rt=Q.collisionBoxArray,mt=ue.layers[0].layout,Ft=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=mt.get("text-pitch-alignment")==="map",Me=mt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),Ve=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("text-translate"),Ft.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("icon-translate"),Ft.get("icon-translate-anchor")),it=yr(Vr,he,Me,this.transform,qe),pt=null;if(he){let nr=Ut(Vr,he,Me,this.transform,qe);pt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new Ti(ue.bucketInstanceId,Ue,ue.sourceLayerIndex,ue.index,Q.tileID);let Ht={bucket:ue,layout:mt,translationText:Ve,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:it,labelToScreenMatrix:pt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:rt,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Ir}=nr;w.push({sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Ir,parameters:Ht})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Ht})}attemptAnchorPlacement(w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it){let pt=a.aq[w.textAnchor],Ht=[w.textOffset0,w.textOffset1],nr=Rt(pt,Q,ee,Ht,ue),fr=this.collisionIndex.placeCollisionBox(q,kr,mt,Ft,ir,rt,Ue,qe,or.predicate,it,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,mt,Ft,ir,rt,Ue,Ve,or.predicate,it,nr).placeable)&&fr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Ht,width:Q,height:ee,anchor:pt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,pt,Vr,Me),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Me,Vr),this.placedOrientations[Vr.crossTileID]=Me),{shift:nr,placedGlyphBoxes:fr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ue,translationIcon:rt,posMatrix:mt,unwrappedTileID:Ft,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Me,collisionGroup:qe}=w.parameters,Ve=ue.get("text-optional"),lt=ue.get("icon-optional"),it=a.ar(ue,"text-overlap","text-allow-overlap"),pt=it==="always",Ht=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Ht==="always",fr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Ir=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",li=pt&&(nr||!ee.hasIconData()||lt),Ei=nr&&(pt||!ee.hasTextData()||Ve);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new Qi(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,Ol={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,nu=null,tu=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=Pe=>{let Ze=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Pe&&this.prevPlacement){let et=this.prevPlacement.placedOrientations[Yn.crossTileID];et&&(this.placedOrientations[Yn.crossTileID]=et,Ze=et,this.markUsedOrientation(ee,Ze,Yn))}return Ze},ef=(Pe,Ze)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let et of ee.writingModes)if(et===a.ah.vertical?(Ol=Ze(),ou=Ol):Ol=Pe(),Ol&&Ol.placeable)break}else Ol=Pe()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let Pe=(Ze,et)=>{let st=this.collisionIndex.placeCollisionBox(Ze,it,kr,mt,Ft,Ar,fr,Ue,qe.predicate,hn);return st&&st.placeable&&(this.markUsedOrientation(ee,et,Yn),this.placedOrientations[Yn.crossTileID]=et),st};ef(()=>Pe(Wu,a.ah.horizontal),()=>{let Ze=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ze?Pe(Ze,a.ah.vertical):{box:null,offscreen:null}}),Qu(Ol&&Ol.placeable)}else{let Pe=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Ze=(st,jt,_t)=>{let hr=st.x2-st.x1,Cr=st.y2-st.y1,zr=Yn.textBoxScale,fi=Ir&&Ht==="never"?jt:null,$r=null,Bi=it==="never"?1:2,fn="never";Pe&&Bi++;for(let mi=0;miZe(Wu,Ua.iconBox,a.ah.horizontal),()=>{let st=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!Ol||!Ol.placeable)&&Yn.numVerticalGlyphVertices>0&&st?Ze(st,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Ol&&(ml=Ol.placeable,Sl=Ol.offscreen);let et=Qu(Ol&&Ol.placeable);if(!ml&&this.prevPlacement){let st=this.prevPlacement.variableOffsets[Yn.crossTileID];st&&(this.variableOffsets[Yn.crossTileID]=st,this.markUsedJustification(ee,st.anchor,Yn,et))}}}if(Pu=Ol,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let Qu=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),ef=a.ai(ee.textSizeData,Me,Qu),Z=ue.get("text-padding");nu=this.collisionIndex.placeCollisionCircles(it,Qu,ee.lineVertexArray,ee.glyphOffsetArray,ef,mt,Ft,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ue,hn),nu.circles.length&&nu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=pt||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,Ht,kr,mt,Ft,Ar,fr,rt,qe.predicate,hn,Ir&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=Qu(Ua.verticalIconBox),au=tu.placeable):(tu=Qu(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let ju=Ve||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,sf=lt||Yn.numIconVertices===0;ju||sf?sf?ju||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let _f=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,it,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&$u?$u:Hu,qe.ID),_f&&this.collisionIndex.insertCollisionBox(tu.box,Ht,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ku,qe.ID),nu&&ml&&this.collisionIndex.insertCollisionCircles(nu.circles,it,ue.get("text-ignore-placement"),ee.bucketInstanceId,Hu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,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 Qi(ml||li,au||Ei,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(rt).crossTileID=ue>=0&&rt!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ue=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let rt of Ue)w.text.placedSymbolArray.get(rt).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}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,ue=q?q.opacities:{},Ue=q?q.variableOffsets:{},rt=q?q.placedOrientations:{};for(let mt in this.placements){let Ft=this.placements[mt],ir=ue[mt];ir?(this.opacities[mt]=new $i(ir,ee,Ft.text,Ft.icon),Q=Q||Ft.text!==ir.text.placed||Ft.icon!==ir.icon.placed):(this.opacities[mt]=new $i(null,ee,Ft.text,Ft.icon,Ft.skipFade),Q=Q||Ft.text||Ft.icon)}for(let mt in ue){let Ft=ue[mt];if(!this.opacities[mt]){let ir=new $i(Ft,ee,!1,!1);ir.isHidden()||(this.opacities[mt]=ir,Q=Q||Ft.text.placed||Ft.icon.placed)}}for(let mt in Ue)this.variableOffsets[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.variableOffsets[mt]=Ue[mt]);for(let mt in rt)this.placedOrientations[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.placedOrientations[mt]=rt[mt]);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 ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,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 ue=w.layers[0],Ue=ue.layout,rt=new $i(null,0,!1,!1,!0),mt=Ue.get("text-allow-overlap"),Ft=Ue.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ue.get("text-rotation-alignment")==="map",kr=Ue.get("text-pitch-alignment")==="map",Vr=Ue.get("icon-text-fit")!=="none",he=new $i(null,0,mt&&(Ft||!w.hasIconData()||Ue.get("icon-optional")),Ft&&(mt||!w.hasTextData()||Ue.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Me=(Ve,lt,it)=>{for(let pt=0;pt0,Ar=this.placedOrientations[lt.crossTileID],Ir=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(it>0||pt>0){let Ei=gi(nr.text);Me(w.text,it,Ir?ki:Ei),Me(w.text,pt,ri?ki:Ei);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Ir?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(fr){let Ei=gi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Ir);lt.placedIconSymbolIndex>=0&&(Me(w.icon,lt.numIconVertices,hn?Ei:ki),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Me(w.icon,lt.numVerticalIconVertices,hn?ki:Ei),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let li=qe&&qe.has(Ve)?qe.get(Ve):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Ei=w.collisionArrays[Ve];if(Ei){let hn=new a.P(0,0);if(Ei.textBox||Ei.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Ht];Yn?(hn=Rt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Ei.textBox||Ei.verticalTextBox){let Yn;Ei.textBox&&(Yn=Ir),Ei.verticalTextBox&&(Yn=ri),Gt(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,li.text,hn.x,hn.y)}}if(Ei.iconBox||Ei.verticalIconBox){let Zn=!!(!ri&&Ei.verticalIconBox),Yn;Ei.iconBox&&(Yn=Zn),Ei.verticalIconBox&&(Yn=!Zn),Gt(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,li.icon,Vr?hn.x:0,Vr?hn.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 Ve=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Ve.invProjMatrix,w.placementViewportMatrix=Ve.viewportMatrix,w.collisionCircleArray=Ve.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 Gt(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ue=Q[0]-Rr,rt=Q[1]-Rr,mt=Q[2]-Rr,Ft=Q[3]-Rr;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ue,rt),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,rt),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,Ft),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ue,Ft)}let Wt=Math.pow(2,25),xr=Math.pow(2,24),Lr=Math.pow(2,17),Nr=Math.pow(2,16),Or=Math.pow(2,9),Hr=Math.pow(2,8),jr=Math.pow(2,1);function gi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*xr+q*Lr+w*Nr+q*Or+w*Hr+q*jr+w}let ki=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ue,rt,mt=!1){if(!Ue[0]&&!Ue[1])return[0,0];let Ft=mt?rt==="map"?ee.angle:0:rt==="viewport"?-ee.angle:0;if(Ft){let ir=Math.sin(Ft),or=Math.cos(Ft);Ue=[Ue[0]*or-Ue[1]*ir,Ue[0]*ir+Ue[1]*or]}return[mt?Ue[0]:Di(ue,Ue[0],ee.zoom),mt?Ue[1]:Di(ue,Ue[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>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,ue){let Ue=this._bucketParts;for(;this._currentTileIndexrt.sortKey-mt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ue=q[w[this._currentPlacementIndex]],rt=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=rt)&&(!Ue.maxzoom||Ue.maxzoom>rt)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ue)),this._inProgressLayer.continuePlacement(Q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ue))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 ue=0;ue({x:Math.floor(mt.anchorX*Yr),y:Math.floor(mt.anchorY*Yr)})),crossTileIDs:Ue.map(mt=>mt.crossTileID)};if(rt.positions.length>128){let mt=new a.av(rt.positions.length,16,Uint16Array);for(let{x:Ft,y:ir}of rt.positions)mt.add(Ft,ir);mt.finish(),delete rt.positions,rt.index=mt}this._symbolsByKey[ue]=rt}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ue,y:rt,z:mt}=q.canonical,Ft=Yr/Math.pow(2,mt-ue),ir=(rt*a.X+w.anchorY)*Ft,or=ee*a.X*Yr;return{x:Math.floor((Ue*a.X+w.anchorX)*Ft-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Fi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{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],ue={};for(let Ue in ee){let rt=ee[Ue];rt.tileID=rt.tileID.unwrapTo(rt.tileID.wrap+q),ue[rt.tileID.key]=rt}this.indexes[Q]=ue}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 ue=0;uew.overscaledZ)for(let rt in Ue){let mt=Ue[rt];mt.tileID.isChildOf(w)&&mt.findMatches(q.symbolInstances,w,ee)}else{let rt=Ue[w.scaledTo(Number(ue)).key];rt&&rt.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Ri=(le,w)=>a.t(le,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 Ee(ke(),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 A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new nn,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()),At().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ue in this._layers){let rt=this._layers[Ue];rt.source===ue.id&&this._validateLayer(rt)}})}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 ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ue=>{this._loadStyleRequest=null,this._load(Ue.data,q,Q)}).catch(Ue=>{this._loadStyleRequest=null,Ue&&!ue.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 ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Ri(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ue in ue.sources)this.addSource(Ue,ue.sources[Ue],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.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(ue,Ue,rt,mt){return a._(this,void 0,void 0,function*(){let Ft=k(ue),ir=rt>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Ft){let Me=Ue.transformRequest(M(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Me,mt);let qe=Ue.transformRequest(M(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,mt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Me={};for(let qe in Vr){Me[qe]={};let Ve=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let it in lt){let{width:pt,height:Ht,x:nr,y:fr,sdf:Ar,pixelRatio:Ir,stretchX:ri,stretchY:li,content:Ei,textFitWidth:hn,textFitHeight:Zn}=lt[it];Me[qe][it]={data:null,pixelRatio:Ir,sdf:Ar,stretchX:ri,stretchY:li,content:Ei,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:pt,height:Ht,x:nr,y:fr,context:Ve}}}}return Me})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ue in ue){this._spritesImagesIds[Ue]=[];let rt=this._spritesImagesIds[Ue]?this._spritesImagesIds[Ue].filter(mt=>!(mt in ue)):[];for(let mt of rt)this.imageManager.removeImage(mt),this._changedImages[mt]=!0;for(let mt in ue[Ue]){let Ft=Ue==="default"?mt:`${Ue}:${mt}`;this._spritesImagesIds[Ue].push(Ft),Ft in this.imageManager.images?this.imageManager.updateImage(Ft,ue[Ue][mt],!1):this.imageManager.addImage(Ft,ue[Ue][mt]),q&&(this._changedImages[Ft]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,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 ue of w)if(Q[ue]){let Ue=q?a.aB(Q[ue]):Q[ue];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),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ue in this._updatedSources){let rt=this._updatedSources[Ue];if(rt==="reload")this._reloadSource(Ue);else{if(rt!=="clear")throw new Error(`Invalid action ${rt}`);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 ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.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 ue=a.aC(ee,w),Ue=this._getOperationsToPerform(ue);if(Ue.unimplemented.length>0)throw new Error(`Unimplemented: ${Ue.unimplemented.join(", ")}.`);if(Ue.operations.length===0)return!1;for(let rt of Ue.operations)rt();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 nt(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 ue;if(w.type==="custom"){if(Ri(this,a.aD(w)))return;ue=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;ue=a.aA(w),this._validateLayer(ue),ue.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]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let rt=this._removedLayers[ee];delete this._removedLayers[ee],rt.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.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 ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):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 ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),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,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ue=ue.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."))),ue.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 ue=ee.getSource().type,Ue=ue==="vector"?w.sourceLayer:void 0;ue!=="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,ue=>ue.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},ue=>ue!==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 rt=this._order[Ue];if(q(rt)){Q[rt]=Ue;for(let mt of w){let Ft=mt[rt];if(Ft)for(let ir of Ft)ee.push(ir)}}}ee.sort((Ue,rt)=>rt.intersectionZ-Ue.intersectionZ);let ue=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let rt=this._order[Ue];if(q(rt))for(let mt=ee.length-1;mt>=0;mt--){let Ft=ee[mt].feature;if(Q[Ft.layer.id]{let Ar=Ve.featureSortOrder;if(Ar){let Ir=Ar.indexOf(nr.featureIndex);return Ar.indexOf(fr.featureIndex)-Ir}return fr.featureIndex-nr.featureIndex});for(let nr of Ht)pt.push(nr)}}for(let Ve in he)he[Ve].forEach(lt=>{let it=lt.feature,pt=Ft[rt[Ve].source].getFeatureState(it.layer["source-layer"],it.id);it.source=it.layer.source,it.layer["source-layer"]&&(it.sourceLayer=it.layer["source-layer"]),it.state=pt});return he}(this._layers,Ue,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}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,ue){let Ue=ee.getRenderableIds().map(Ft=>ee.getTileByID(Ft)),rt=[],mt={};for(let Ft=0;Ftkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,mt[ir.source],w.center.lng);Ue=Ue||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new tn(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),rt=!0),Ue&&this.pauseablePlacement.placement.setStale()),rt||Ue)for(let Ft of this._order){let ir=this._layers[Ft];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,mt[ir.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 ue=[{id:w,url:q}],Ue=[...k(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ue,null,Q)||(this.stylesheet.sprite=Ue,this._loadSprite(ue,!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 bi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ct(`#ifdef GL_ES +`),mapOnErrorMsg:"Map error."}});var eC=Te((j2r,bWe)=>{"use strict";var yWe=ei(),gWe=jl().defaultLine,lZt=zc().attributes,uZt=gc(),fZt=Zc().textposition,cZt=Sc().overrideAll,hZt=Lf().templatedArray,_We=Px(),xWe=uZt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});xWe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var dZt=bWe.exports=cZt({_arrayAttrRegexps:[yWe.counterRegex("map",".layers",!0)],domain:lZt({name:"map"}),style:{valType:"any",values:_We.styleValuesMap,dflt:_We.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:hZt("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:gWe},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:gWe}},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:xWe,textposition:yWe.extendFlat({},fZt,{arrayOk:!1})}})},"plot","from-root");dZt.uirevision={valType:"any",editType:"none"}});var gB=Te((X2r,SWe)=>{"use strict";var{hovertemplateAttrs:pZt,texttemplateAttrs:vZt,templatefallbackAttrs:wWe}=Ff(),mZt=Pm(),tC=ew(),PS=Zc(),AWe=eC(),yZt=Gf(),gZt=nc(),dw=Su().extendFlat,_Zt=Sc().overrideAll,xZt=eC(),TWe=tC.line,zS=tC.marker;SWe.exports=_Zt({lon:tC.lon,lat:tC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},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:dw({},zS.opacity,{dflt:1})},mode:dw({},PS.mode,{dflt:"markers"}),text:dw({},PS.text,{}),texttemplate:vZt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:wWe({editType:"plot"}),hovertext:dw({},PS.hovertext,{}),line:{color:TWe.color,width:TWe.width},connectgaps:PS.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:zS.opacity,size:zS.size,sizeref:zS.sizeref,sizemin:zS.sizemin,sizemode:zS.sizemode},gZt("marker")),fill:tC.fill,fillcolor:mZt(),textfont:AWe.layers.symbol.textfont,textposition:AWe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:PS.selected.marker},unselected:{marker:PS.unselected.marker},hoverinfo:dw({},yZt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:pZt(),hovertemplatefallback:wWe()},"calc","nested")});var NJ=Te((Z2r,MWe)=>{"use strict";var bZt=["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"];MWe.exports={isSupportedFont:function(e){return bZt.indexOf(e)!==-1}}});var CWe=Te((Y2r,kWe)=>{"use strict";var rC=ei(),UJ=lc(),wZt=$v(),AZt=R0(),TZt=D0(),SZt=Dm(),EWe=gB(),MZt=NJ().isSupportedFont;kWe.exports=function(t,r,n,i){function a(v,C){return rC.coerce(t,r,EWe,v,C)}function o(v,C){return rC.coerce2(t,r,EWe,v,C)}var s=EZt(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)){wZt(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]))}UJ.hasLines(r)&&(AZt(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,_=a("cluster.enabled",p);if(_||UJ.hasText(r)){var b=i.font.family;TZt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:MZt(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"&&SZt(t,r,n,a),rC.coerceSelectionMarkerOpacity(r,a)};function EZt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var VJ=Te((K2r,PWe)=>{"use strict";var LWe=wu();PWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=LWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=LWe.tickText(o,o.c2l(s[1]),!0).text,i}});var GJ=Te((J2r,IWe)=>{"use strict";var zWe=ei();IWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=zWe.isArrayOrTypedArray(r)?zWe.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 qWe=Te(($2r,OWe)=>{"use strict";var FWe=ku(),lp=ei(),kZt=rf().BADNUM,xB=fx(),RWe=_c(),CZt=Mu(),LZt=B3(),bB=lc(),PZt=NJ().isSupportedFont,zZt=GJ(),IZt=iv().appendArrayPointValue,RZt=Wf().NEWLINES,DZt=Wf().BR_TAG_ALL;OWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=bB.hasLines(n),s=bB.hasMarkers(n),u=bB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=_B("fill"),d=_B("line"),p=_B("circle"),_=_B("symbol"),b={fill:h,line:d,circle:p,symbol:_};if(!i)return b;var v;if((a||o)&&(v=xB.calcTraceToLineCoords(r)),a&&(h.geojson=xB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=xB.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=FZt(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":WJ(n.cluster.color,n.cluster.step),"circle-radius":WJ(n.cluster.size,n.cluster.step),"circle-opacity":WJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":DWe(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)&&(_.geojson=BZt(r,t),lp.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=zZt(n.textposition,E);lp.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":DWe(n)}),lp.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function _B(e){return{type:e,geojson:xB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function FZt(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&&(RWe.hasColorscale(t,"marker")?f=RWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=LZt(t));var h;o&&(h=function(E){var T=FWe(E)?+lp.constrain(E,0,1):0;return u(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"),PZt(s)||(s=r);var u=s.split(", ");return u}});var GWe=Te((Q2r,VWe)=>{"use strict";var OZt=ei(),NWe=qWe(),IS=Px().traceLayerPrefix,om={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function UWe(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:IS+t+"-fill",line:IS+t+"-line",circle:IS+t+"-circle",symbol:IS+t+"-symbol",cluster:IS+t+"-cluster",clusterCount:IS+t+"-cluster-count"},this.below=null}var iC=UWe.prototype;iC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&OZt.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(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=om.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function _(E){s?f(E):h(E)}function b(){for(var E=s?om.cluster:om.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};VWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new UWe(t,n.uid,i,a),s=NWe(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 qZt=Xc(),jJ=ei(),NZt=mA(),UZt=jJ.fillText,VZt=rf().BADNUM,GZt=Px().traceLayerPrefix;function HZt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=GZt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function _(M){var m=M.lonlat;if(m[0]===VZt||f&&u.indexOf(M.i+1)===-1)return 1/0;var P=jJ.modHalf(m[0],360),A=m[1],F=s.project([P,A]),B=F.x-a.c2p([p,A]),U=F.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(B*B+U*U)-G,1-3/G)}if(qZt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[jJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),T=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+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=NZt(i,b),e.extraText=HWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function HWe(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)&&UZt(t,e,l),l.join("
")}WWe.exports={hoverPoints:HZt,getExtraText:HWe}});var XWe=Te((twr,jWe)=>{"use strict";jWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var YWe=Te((rwr,ZWe)=>{"use strict";var WZt=ei(),jZt=lc(),XZt=rf().BADNUM;ZWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!jZt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof XJ=="object"&&typeof ZJ!="undefined"?ZJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(XJ,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,S,D,X){return new(D||(D=Promise))(function(ie,ve){function we(St){try{ut(X.next(St))}catch($t){ve($t)}}function We(St){try{ut(X.throw(St))}catch($t){ve($t)}}function ut(St){var $t;St.done?ie(St.value):($t=St.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,We)}ut((X=X.apply(I,S||[])).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,S){this.x=I,this.y=S}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,S){return this.clone()._rotateAround(I,S)},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 S=I.x-this.x,D=I.y-this.y;return S*S+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,S){return Math.atan2(this.x*S-this.y*I,this.x*I+this.y*S)},_matMult:function(I){var S=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=S,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 S=Math.cos(I),D=Math.sin(I),X=D*this.x+S*this.y;return this.x=S*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,S){var D=Math.cos(I),X=Math.sin(I),ie=S.y+X*(this.x-S.x)+D*(this.y-S.y);return this.x=S.x+D*(this.x-S.x)-X*(this.y-S.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,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,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,S){if(S===void 0&&(S=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?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var h=o(f);let d,p;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let X=0;X<5*5;X++){let ie=4*X;S.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,S.fillRect(X%5,Math.floor(X/5),1,1)}let D=S.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,S,D,X){let ie=new h(I,S,D,X);return ve=>ie.solve(ve)}let C=v(.25,.1,.25,1);function E(I,S,D){return Math.min(D,Math.max(S,I))}function T(I,S,D){let X=D-S,ie=((I-S)%X+X)%X+S;return ie===S?D:ie}function L(I,...S){for(let D of S)for(let X in D)I[X]=D[X];return I}let x=1;function k(I,S,D){let X={};for(let ie in I)X[ie]=S.call(this,I[ie],ie,I);return X}function M(I,S,D){let X={};for(let ie in I)S.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 A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function F(I,S,D){return(D.y-I.y)*(S.x-I.x)>(S.y-I.y)*(D.x-I.x)}function B(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,S,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let We=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(St,$t,vr,Sr,Dr){let Jr=4*Math.max(-$t,0),ui=(Math.max(0,vr)-vr)*Sr*4+Jr,Gi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(St.width,$t+Sr)-cn,height:Math.min(St.height,vr+Dr)-Za},layout:[{offset:ui,stride:Gi}]}}(I,S,D,X,ie)),We)for(let St=0;StB(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,S){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=ze(I.url);if(X)return X(I,S);if(B(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Le},S)}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 ve=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"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let St=yield we.blob();throw new de(we.status,we.statusText,X.url,St)}let We;We=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield We;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,S);if(B(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Le},S)}var D;return function(X,ie){return new Promise((ve,we)=>{var We;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let St in X.headers)ut.setRequestHeader(St,X.headers[St]);X.type==="json"&&(ut.responseType="text",!((We=X.headers)===null||We===void 0)&&We.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let St=ut.response;if(X.type==="json")try{St=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:St,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let St=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new de(ut.status,ut.statusText,X.url,St))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,S)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let S=new URL(I),D=window.location;return S.protocol===D.protocol&&S.host===D.host}function Se(I,S,D){D[I]&&D[I].indexOf(S)!==-1||(D[I]=D[I]||[],D[I].push(S))}function Ge(I,S,D){if(D&&D[I]){let X=D[I].indexOf(S);X!==-1&&D[I].splice(X,1)}}class De{constructor(S,D={}){L(this,D),this.type=S}}class xe extends De{constructor(S,D={}){super("error",L({error:S},D))}}class Ne{on(S,D){return this._listeners=this._listeners||{},Se(S,D,this._listeners),this}off(S,D){return Ge(S,D,this._listeners),Ge(S,D,this._oneTimeListeners),this}once(S,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Se(S,D,this._oneTimeListeners),this):new Promise(X=>this.once(S,X))}fire(S,D){typeof S=="string"&&(S=new De(S,D||{}));let X=S.type;if(this.listens(X)){S.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let We of ie)We.call(this,S);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let We of ve)Ge(X,We,this._oneTimeListeners),We.call(this,S);let we=this._eventedParent;we&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(S))}else S instanceof xe&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,D){return this._eventedParent=S,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 Qe(I,S){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return je.forEach(X=>{X in S&&(D[X]=S[X])}),D}function gt(I,S){if(Array.isArray(I)){if(!Array.isArray(S)||I.length!==S.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${S}>`}return I.kind}let Ie=[vt,Je,He,nt,tt,_r,It,be(Yt),yr,Ut,Re];function Fe(I,S){if(S.kind==="error")return null;if(I.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!Fe(I.itemType,S.itemType))&&(typeof I.N!="number"||I.N===S.N))return null}else{if(I.kind===S.kind)return null;if(I.kind==="value"){for(let D of Ie)if(!Fe(D,S))return null}}return`Expected ${Oe(I)} but found ${Oe(S)} instead.`}function ft(I,S){return S.some(D=>D.kind===I.kind)}function ye(I,S){return S.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,S){return I.kind==="array"&&S.kind==="array"?I.itemType.kind===S.itemType.kind&&typeof I.N=="number":I.kind===S.kind}let pe=.96422,dt=.82521,Pt=4/29,zt=6/29,rr=3*zt*zt,Gr=zt*zt*zt,Br=Math.PI/180,Er=180/Math.PI;function Rr(I){return(I%=360)<0&&(I+=360),I}function pi([I,S,D,X]){let ie,ve,we=ni((.2225045*(I=Di(I))+.7168786*(S=Di(S))+.0606169*(D=Di(D)))/1);I===S&&S===D?ie=ve=we:(ie=ni((.4360747*I+.3850649*S+.1430804*D)/pe),ve=ni((.0139322*I+.0971045*S+.7141733*D)/dt));let We=116*we-16;return[We<0?0:We,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function ni(I){return I>Gr?Math.pow(I,1/3):I/rr+Pt}function $i([I,S,D,X]){let ie=(I+16)/116,ve=isNaN(S)?ie:ie+S/500,we=isNaN(D)?ie:ie-D/200;return ie=1*si(ie),ve=pe*si(ve),we=dt*si(we),[Qi(3.1338561*ve-1.6168667*ie-.4906146*we),Qi(-.9787684*ve+1.9161415*ie+.033454*we),Qi(.0719453*ve-.2289914*ie+1.4052427*we),X]}function Qi(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function si(I){return I>zt?I*I*I:rr*(I-Pt)}function Ti(I){return parseInt(I.padEnd(2,I),16)/255}function Ni(I,S){return Rt(S?I/100:I,0,1)}function Rt(I,S,D){return Math.min(Math.max(S,I),D)}function yt(I){return!I.some(Number.isNaN)}let Gt={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 Wt{constructor(S,D,X,ie=1,ve=!0){this.r=S,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[S,D,X,ie]))}static parse(S){if(S instanceof Wt)return S;if(typeof S!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Gt[X];if(ie){let[we,We,ut]=ie;return[we/255,We/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,We=1;return[Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+=we)),Ti(X.slice(We,We+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za]=we,Rn=[$t||" ",Dr||" ",Gi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[St,Sr,ui].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Rt(+ut/So,0,1),Rt(+vr/So,0,1),Rt(+Jr/So,0,1),cn?Ni(+cn,Za):1];if(yt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,We,ut,St,$t,vr,Sr,Dr,Jr]=ve,ui=[ut||" ",$t||" ",Sr].join("");if(ui===" "||ui===" /"||ui===",,"||ui===",,,"){let Gi=[+We,Rt(+St,0,100),Rt(+vr,0,100),Dr?Ni(+Dr,Jr):1];if(yt(Gi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Rr(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Gi)}}}(S);return D?new Wt(...D,!1):void 0}get rgb(){let{r:S,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[S/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(S){let[D,X,ie,ve]=pi(S),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Rr(Math.atan2(ie,X)*Er):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",pi(this.rgb))}overwriteGetter(S,D){return Object.defineProperty(this,S,{value:D}),D}toString(){let[S,D,X,ie]=this.rgb;return`rgba(${[S,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class xr{constructor(S,D,X){this.sensitivity=S?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,D){return this.collator.compare(S,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(S,D,X,ie,ve){this.text=S,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Nr{constructor(S){this.sections=S}static fromString(S){return new Nr([new Lr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof Nr?S:Nr.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Or{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Or)return S;if(typeof S=="number")return new Or([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let D of S)if(typeof D!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Or(S)}}toString(){return JSON.stringify(this.values)}}let Hr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof jr)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let D=0;D=0&&I<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,S,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,S,D,X]:[I,S,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 Wt||I instanceof xr||I instanceof Nr||I instanceof Or||I instanceof jr||I instanceof gi)return!0;if(Array.isArray(I)){for(let S of I)if(!Vi(S))return!1;return!0}if(typeof I=="object"){for(let S in I)if(!Vi(I[S]))return!1;return!0}return!1}function ti(I){if(I===null)return vt;if(typeof I=="string")return He;if(typeof I=="boolean")return nt;if(typeof I=="number")return Je;if(I instanceof Wt)return tt;if(I instanceof xr)return cr;if(I instanceof Nr)return _r;if(I instanceof Or)return yr;if(I instanceof jr)return Re;if(I instanceof gi)return Ut;if(Array.isArray(I)){let S=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return be(D||Yt,S)}return It}function tn(I){let S=typeof I;return I===null?"":S==="string"||S==="number"||S==="boolean"?String(I):I instanceof Wt||I instanceof Nr||I instanceof Or||I instanceof jr||I instanceof gi?I.toString():JSON.stringify(I)}class Yr{constructor(S,D){this.type=S,this.value=D}static parse(S,D){if(S.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!Vi(S[1]))return D.error("invalid value");let X=S[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Fi={string:He,number:Je,boolean:nt,object:It};class an{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=S[0];if(ve==="array"){let We,ut;if(S.length>2){let St=S[1];if(typeof St!="string"||!(St in Fi)||St==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);We=Fi[St],ie++}else We=Yt;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=S[2],ie++}X=be(We,ut)}else{if(!Fi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Fi[ve]}let we=[];for(;ieS.outputDefined())}}let nn={"to-boolean":nt,"to-color":tt,"to-number":Je,"to-string":He};class Ri{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[0];if(!nn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&S.length!==2)return D.error("Expected one argument.");let ie=nn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:ki(D[0],D[1],D[2],D[3]),!X))return new Wt(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(S);let ie=Or.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(S);let ie=jr.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(S),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(tn(this.args[0].evaluate(S)));case"resolvedImage":return gi.fromString(tn(this.args[0].evaluate(S)));default:return tn(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.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(S){let D=this._parseColorCache[S];return D||(D=this._parseColorCache[S]=Wt.parse(S)),D}}class bi{constructor(S,D,X=[],ie,ve=new At,we=[]){this.registry=S,this.path=X,this.key=X.map(We=>`[${We}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(S,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(S,ve):this._parse(S,ve)}_parse(S,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Ri(ve,[ie]):ie}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=S[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 ve=this.registry[ie];if(ve){let we=ve.parse(S,this);if(!we)return null;if(this.expectedType){let We=this.expectedType,ut=we.type;if(We.kind!=="string"&&We.kind!=="number"&&We.kind!=="boolean"&&We.kind!=="object"&&We.kind!=="array"||ut.kind!=="value")if(We.kind!=="color"&&We.kind!=="formatted"&&We.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(We.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(We.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(We,ut))return null}else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let We=new xn;try{we=new Yr(we.type,we.evaluate(We))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,D,X){let ie=typeof S=="number"?this.path.concat(S):this.path,ve=X?this.scope.concat(X):this.scope;return new bi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(S,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new ot(X,S))}checkSubtype(S,D){let X=Fe(S,D);return X&&this.error(X),X}}class Xr{constructor(S,D){this.type=D.type,this.bindings=[].concat(S),this.result=D}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let D of this.bindings)S(D[1]);S(this.result)}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let X=[];for(let ve=1;ve=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(S){S(this.index),S(this.input)}outputDefined(){return!1}}class pr{constructor(S,D){this.type=nt,this.needle=S,this.haystack=D}static parse(S,D){if(S.length!==3)return D.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);return X&&ie?ft(X.type,[nt,He,Je,vt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!X)return!1;if(!ye(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(!ye(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(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class gr{constructor(S,D,X){this.type=Je,this.needle=S,this.haystack=D,this.fromIndex=X}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Yt);if(!X||!ie)return null;if(!ft(X.type,[nt,He,Je,vt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,Je);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(S){let D=this.needle.evaluate(S),X=this.haystack.evaluate(S);if(!ye(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(S)),ye(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(ye(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(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(S,D,X,ie,ve,we){this.inputType=S,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(S,D){if(S.length<5)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.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 ve={},we=[];for(let St=2;StNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Dr=D.parse(vr,St,ie);if(!Dr)return null;ie=ie||Dr.type,we.push(Dr)}let We=D.parse(S[1],1,Yt);if(!We)return null;let ut=D.parse(S[S.length-1],S.length-1,ie);return ut?We.type.kind!=="value"&&D.concat(1).checkSubtype(X,We.type)?null:new Zr(X,ie,We,ve,we,ut):null}evaluate(S){let D=this.input.evaluate(S);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(S,D,X){this.type=S,this.branches=D,this.otherwise=X}static parse(S,D){if(S.length<4)return D.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.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 we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class en{constructor(S,D,X,ie){this.type=S,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(S,D){if(S.length<=2||S.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let X=D.parse(S[1],1,Yt),ie=D.parse(S[2],2,Je);if(!X||!ie)return null;if(!ft(X.type,[be(Yt),He,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(S.length===4){let ve=D.parse(S[3],3,Je);return ve?new en(X.type,X,ie,ve):null}return new en(X.type,X,ie)}evaluate(S){let D=this.input.evaluate(S),X=this.beginIndex.evaluate(S),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(S)),ye(D,["string"]))return[...D].slice(X,ie).join("");if(ye(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(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ii(I,S){let D=I.length-1,X,ie,ve=0,we=D,We=0;for(;ve<=we;)if(We=Math.floor((ve+we)/2),X=I[We],ie=I[We+1],X<=S){if(We===D||SS))throw new oi("Input is not a number.");we=We-1}return 0}class Xi{constructor(S,D,X){this.type=S,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(S,D){if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(S[1],1,Je);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=We)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',St);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([We,vr])}return new Xi(ve,X,ie)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(S):X[ii(D,ie)].evaluate(S)}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,S,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(X-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=S,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,S){if(S===void 0&&(S=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?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,S){return this.sampleCurveY(this.solveCurveX(I,S))}};var Ga=aa(Mn);function ma(I,S,D){return I+D*(S-I)}function oa(I,S,D){return I.map((X,ie)=>ma(X,S[ie],D))}let ka={number:ma,color:function(I,S,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,We]=oa(I.rgb,S.rgb,D);return new Wt(ie,ve,we,We,!1)}case"hcl":{let[ie,ve,we,We]=I.hcl,[ut,St,$t,vr]=S.hcl,Sr,Dr;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Dr=St)):(Sr=ie,$t!==1&&$t!==0||(Dr=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,ui,Gi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Br,$i([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Dr!=null?Dr:ma(ve,St,D),ma(we,$t,D),ma(We,vr,D)]);return new Wt(Jr,ui,Gi,cn,!1)}case"lab":{let[ie,ve,we,We]=$i(oa(I.lab,S.lab,D));return new Wt(ie,ve,we,We,!1)}}},array:oa,padding:function(I,S,D){return new Or(oa(I.values,S.values,D))},variableAnchorOffsetCollection:function(I,S,D){let X=I.values,ie=S.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${S.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:St}}}if(S.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,Je),!ve)return null;let We=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=tt:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let St=0;St=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Dr,ut);if(!Jr)return null;ut=ut||Jr.type,We.push([$t,Jr])}return fe(ut,Je)||fe(ut,tt)||fe(ut,yr)||fe(ut,Re)||fe(ut,be(Je))?new so(ut,X,ie,ve,We):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(S){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(S);let ie=this.input.evaluate(S);if(ie<=D[0])return X[0].evaluate(S);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(S);let we=ii(D,ie),We=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(S),St=X[we+1].evaluate(S);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,St,We);case"interpolate-hcl":return ka.color(ut,St,We,"hcl");case"interpolate-lab":return ka.color(ut,St,We,"lab")}}eachChild(S){S(this.input);for(let D of this.outputs)S(D)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Kr(I,S,D,X){let ie=X-D,ve=I-D;return ie===0?0:S===1?ve/ie:(Math.pow(S,ve)-1)/(Math.pow(S,ie)-1)}class Ia{constructor(S,D){this.type=S,this.args=D}static parse(S,D){if(S.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let We of S.slice(1)){let ut=D.parse(We,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(We=>Fe(ie,We.type));return new Ia(we?Yt:X,ve)}evaluate(S){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(S),X&&X instanceof gi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function Yo(I,S){return I==="=="||I==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function fa(I,S,D,X){return X.compare(S,D)===0}function kn(I,S,D){let X=I!=="=="&&I!=="!=";return class KWe{constructor(ve,we,We){this.type=nt,this.lhs=ve,this.rhs=we,this.collator=We,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let We=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(We,ut.type))return we.concat(1).error(`"${We}" comparisons are not supported for type '${Oe(ut.type)}'.`);let St=we.parse(ve[2],2,Yt);if(!St)return null;if(!Yo(We,St.type))return we.concat(2).error(`"${We}" comparisons are not supported for type '${Oe(St.type)}'.`);if(ut.type.kind!==St.type.kind&&ut.type.kind!=="value"&&St.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(St.type)}'.`);X&&(ut.type.kind==="value"&&St.type.kind!=="value"?ut=new an(St.type,[ut]):ut.type.kind!=="value"&&St.type.kind==="value"&&(St=new an(ut.type,[St])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&St.type.kind!=="string"&&ut.type.kind!=="value"&&St.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,cr),!$t)return null}return new KWe(ut,St,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),We=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),St=ti(We);if(ut.kind!==St.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${St.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),St=ti(We);if(ut.kind!=="string"||St.kind!=="string")return S(ve,we,We)}return this.collator?D(ve,we,We,this.collator.evaluate(ve)):S(ve,we,We)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,S,D){return S===D},fa),ys=kn("!=",function(I,S,D){return S!==D},function(I,S,D,X){return!fa(0,S,D,X)}),uo=kn("<",function(I,S,D){return S",function(I,S,D){return S>D},function(I,S,D,X){return X.compare(S,D)>0}),$a=kn("<=",function(I,S,D){return S<=D},function(I,S,D,X){return X.compare(S,D)<=0}),fo=kn(">=",function(I,S,D){return S>=D},function(I,S,D,X){return X.compare(S,D)>=0});class mn{constructor(S,D,X){this.type=cr,this.locale=X,this.caseSensitive=S,this.diacriticSensitive=D}static parse(S,D){if(S.length!==2)return D.error("Expected one argument.");let X=S[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,nt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,nt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,He),!we)?null:new mn(ie,ve,we)}evaluate(S){return new xr(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ra{constructor(S,D,X,ie,ve){this.type=He,this.number=S,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(S,D){if(S.length!==3)return D.error("Expected two arguments.");let X=D.parse(S[1],1,Je);if(!X)return null;let ie=S[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,He),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,He),!we))return null;let We=null;if(ie["min-fraction-digits"]&&(We=D.parse(ie["min-fraction-digits"],1,Je),!We))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,Je),!ut)?null:new ra(X,ve,we,We,ut)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(S){this.type=_r,this.sections=S}static parse(S,D){if(S.length<2)return D.error("Expected at least one argument.");let X=S[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=S.length-1;++we){let We=S[we];if(ve&&typeof We=="object"&&!Array.isArray(We)){ve=!1;let ut=null;if(We["font-scale"]&&(ut=D.parse(We["font-scale"],1,Je),!ut))return null;let St=null;if(We["text-font"]&&(St=D.parse(We["text-font"],1,be(He)),!St))return null;let $t=null;if(We["text-color"]&&($t=D.parse(We["text-color"],1,tt),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=St,vr.textColor=$t}else{let ut=D.parse(S[we],1,Yt);if(!ut)return null;let St=ut.type.kind;if(St!=="string"&&St!=="value"&&St!=="null"&&St!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(S){return new Nr(this.sections.map(D=>{let X=D.content.evaluate(S);return ti(X)===Ut?new Lr("",X,null,null,null):new Lr(tn(X),null,D.scale?D.scale.evaluate(S):null,D.font?D.font.evaluate(S).join(","):null,D.textColor?D.textColor.evaluate(S):null)}))}eachChild(S){for(let D of this.sections)S(D.content),D.scale&&S(D.scale),D.font&&S(D.font),D.textColor&&S(D.textColor)}outputDefined(){return!1}}class ws{constructor(S){this.type=Ut,this.input=S}static parse(S,D){if(S.length!==2)return D.error("Expected two arguments.");let X=D.parse(S[1],1,He);return X?new ws(X):D.error("No image name provided.")}evaluate(S){let D=this.input.evaluate(S),X=gi.fromString(D);return X&&S.availableImages&&(X.available=S.availableImages.indexOf(D)>-1),X}eachChild(S){S(this.input)}outputDefined(){return!1}}class Co{constructor(S){this.type=Je,this.input=S}static parse(S,D){if(S.length!==2)return D.error(`Expected 1 argument, but found ${S.length-1} instead.`);let X=D.parse(S[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(S){let D=this.input.evaluate(S);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(S){S(this.input)}outputDefined(){return!1}}let Po=8192;function Wi(I,S){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,S.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,S){let D=Math.pow(2,S.z);return[(ie=(I[0]/Po+S.x)/D,360*ie-180),(X=(I[1]/Po+S.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,S){I[0]=Math.min(I[0],S[0]),I[1]=Math.min(I[1],S[1]),I[2]=Math.max(I[2],S[0]),I[3]=Math.max(I[3],S[1])}function Ha(I,S){return!(I[0]<=S[0]||I[2]>=S[2]||I[1]<=S[1]||I[3]>=S[3])}function Sn(I,S,D){let X=I[0]-S[0],ie=I[1]-S[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,S,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[S[0]-I[0],S[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,S,D,X)||!Qa(D,X,I,S));var ie,ve}function Ba(I,S,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=We[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,S){for(let D of S)if(Ko(I,D))return!0;return!1}function Hi(I,S){for(let D of I)if(!Ko(D,S))return!1;for(let D=0;D0&&We<0||we<0&&We>0}function vn(I,S,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(S,I)}function vo(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let We of I)for(let ut of We){let St=[ut.x+ve[0],ut.y+ve[1]];la(St,S,D,ie),we.push(St)}return we}function As(I,S,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let St=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(S,vr),St.push(vr)}we.push(St)}if(S[2]-S[0]<=ie/2){(We=S)[0]=We[1]=1/0,We[2]=We[3]=-1/0;for(let ut of we)for(let St of ut)la(St,S,D,ie)}var We;return we}class ps{constructor(S,D){this.type=nt,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:We}=ve.geometry;we==="Polygon"&&ie.push(We),we==="MultiPolygon"&&ie.push(...We)}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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Ko(St,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Qo(St,We))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Hi(St,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let St of ut)if(!Sa(St,We))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],S=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=S,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],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:S,compare:D}=this,X=S[I];for(;I>0;){let ie=I-1>>1,ve=S[ie];if(D(X,ve)>=0)break;S[I]=ve,I=ie}S[I]=X}_down(I){let{data:S,compare:D}=this,X=this.length>>1,ie=S[I];for(;I=0)break;S[I]=S[ve],I=ve}S[I]=ie}};function mo(I,S,D,X,ie){No(I,S,D,X||I.length-1,ie||Go)}function No(I,S,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=S-D+1,We=Math.log(ve),ut=.5*Math.exp(2*We/3),St=.5*Math.sqrt(We*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,S,Math.max(D,Math.floor(S-we*ut/ve+St)),Math.min(X,Math.floor(S+(ve-we)*ut/ve+St)),ie)}var $t=I[S],vr=D,Sr=X;for(jn(I,D,S),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=S&&(D=Sr+1),S<=Sr&&(X=Sr-1)}}function jn(I,S,D){var X=I[S];I[S]=I[D],I[D]=X}function Go(I,S){return IS?1:0}function Ys(I,S){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),S>1)for(let ve=0;ve1?(St=S[ut+1][0],$t=S[ut+1][1]):Dr>0&&(St+=vr/this.kx*Dr,$t+=Sr/this.ky*Dr)),vr=this.wrap(D[0]-St)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)S-=360;return S}}function _n(I,S){return S[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,S){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(S){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,S){if(!wo(S,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=S[0];X<=S[1];++X)Ps(D,I[X]);return D}function un(I){let S=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(S,X);return S}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,S,D){if(!$n(I)||!$n(S))return NaN;let X=0,ie=0;return I[2]S[2]&&(X=I[0]-S[2]),I[1]>S[3]&&(ie=I[1]-S[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,S))return 0}else if(es(S,I))return 0;let we=1/0;for(let We of I)for(let ut=0,St=We.length,$t=St-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let St=ut[1],$t=S?50:100;if(Vn(St)<=$t){if(!wo(St,I.length))return NaN;if(S){let vr=sa(I,St,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=St[0];vr<=St[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(St,S);rn(we,ve,X,I,We,vr[0]),rn(we,ve,X,I,We,vr[1])}}return ve}function yo(I,S,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let We=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;We.length>0;){let ut=We.pop();if(ut[0]>=we)continue;let St=ut[1],$t=ut[2],vr=S?50:100,Sr=X?50:100;if(Vn(St)<=vr&&Vn($t)<=Sr){if(!wo(St,I.length)&&wo($t,D.length))return NaN;let Dr;if(S&&X)Dr=Ja(I,St,D,$t,ie),we=Math.min(we,Dr);else if(S&&!X){let Jr=I.slice(St[0],St[1]+1);for(let ui=$t[0];ui<=$t[1];++ui)if(Dr=qn(D[ui],Jr,ie),we=Math.min(we,Dr),we===0)return we}else if(!S&&X){let Jr=D.slice($t[0],$t[1]+1);for(let ui=St[0];ui<=St[1];++ui)if(Dr=qn(I[ui],Jr,ie),we=Math.min(we,Dr),we===0)return we}else Dr=lo(I,St,D,$t,ie),we=Math.min(we,Dr)}else{let Dr=Ra(St,S),Jr=Ra($t,X);Pa(We,we,ie,I,D,Dr[0],Jr[0]),Pa(We,we,ie,I,D,Dr[0],Jr[1]),Pa(We,we,ie,I,D,Dr[1],Jr[0]),Pa(We,we,ie,I,D,Dr[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(S=>({type:"Polygon",coordinates:S})):I.type==="MultiLineString"?I.coordinates.map(S=>({type:"LineString",coordinates:S})):I.type==="MultiPoint"?I.coordinates.map(S=>({type:"Point",coordinates:S})):[I]}class Ao{constructor(S,D){this.type=Je,this.geojson=S,this.geometries=D}static parse(S,D){if(S.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(Vi(S[1])){let X=S[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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!1,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!1,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!1,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!0,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!0,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!0,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries);if(S.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(St=>St.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),We=1/0;for(let ut of X)for(let St of ve){switch(ut.type){case"Point":We=Math.min(We,to([ut.coordinates],!1,St,we,We));break;case"LineString":We=Math.min(We,to(ut.coordinates,!0,St,we,We));break;case"Polygon":We=Math.min(We,Na(St,ut.coordinates,we,We))}if(We===0)return We}return We}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:en,step:Xi,string:an,"to-boolean":Ri,"to-color":Ri,"to-number":Ri,"to-string":Ri,var:ct,within:ps,distance:Ao};class _a{constructor(S,D,X,ie){this.name=S,this.type=D,this._evaluate=X,this.args=ie}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,D){let X=S[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,We=we.filter(([St])=>!Array.isArray(St)||St.length===S.length-1),ut=null;for(let[St,$t]of We){ut=new bi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Dr=1;Dr{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=S?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 S=!0;return I.eachChild(D=>{S&&!Wa(D)&&(S=!1)}),S}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let S=!0;return I.eachChild(D=>{S&&!To(D)&&(S=!1)}),S}function ts(I,S){if(I instanceof _a&&S.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,S)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(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,S){let D=S.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(S)?"exponential":"interval");if(D||S.type==="padding"){let $t=D?Wt.parse:Or.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:S.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let We,ut,St;if(ve==="exponential")We=fl;else if(ve==="interval")We=Ds;else if(ve==="categorical"){We=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];St=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);We=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},ui)=>fl({stops:Sr,base:I.base},S,Jr).evaluate(Jr,ui)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>We(I,S,vr,ut,St)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,S.default):We(I,S,Sr,ut,St)}}}function $s(I,S,D){return I!==void 0?I:S!==void 0?S:D!==void 0?D:void 0}function us(I,S,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,S.default)}function Ds(I,S,D){if(oo(D)!=="number")return $s(I.default,S.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=ii(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,S,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,S.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 ve=ii(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Dr){let Jr=Dr-Sr,ui=$t-Sr;return Jr===0?0:vr===1?ui/Jr:(Math.pow(vr,ui)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),We=I.stops[ve][1],ut=I.stops[ve+1][1],St=ka[S.type]||ea;return typeof We.evaluate=="function"?{evaluate(...$t){let vr=We.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return St(vr,Sr,we,I.colorSpace)}}:St(We,ut,we,I.colorSpace)}function as(I,S,D){switch(S.type){case"color":D=Wt.parse(D);break;case"formatted":D=Nr.fromString(D.toString());break;case"resolvedImage":D=gi.fromString(D.toString());break;case"padding":D=Or.parse(D);break;default:oo(D)===S.type||S.type==="enum"&&S.values[D]||(D=void 0)}return $s(D,I.default,S.default)}_a.register(Dn,{error:[{kind:"error"},[He],(I,[S])=>{throw new oi(S.evaluate(I))}],typeof:[He,[Yt],(I,[S])=>Oe(ti(S.evaluate(I)))],"to-rgba":[be(Je,4),[tt],(I,[S])=>{let[D,X,ie,ve]=S.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[tt,[Je,Je,Je],Ws],rgba:[tt,[Je,Je,Je,Je],Ws],has:{type:nt,overloads:[[[He],(I,[S])=>Ca(S.evaluate(I),I.properties())],[[He,It],(I,[S,D])=>Ca(S.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[He],(I,[S])=>Es(S.evaluate(I),I.properties())],[[He,It],(I,[S,D])=>Es(S.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[He],(I,[S])=>Es(S.evaluate(I),I.featureState||{})],properties:[It,[],I=>I.properties()],"geometry-type":[He,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[Je,[],I=>I.globals.zoom],"heatmap-density":[Je,[],I=>I.globals.heatmapDensity||0],"line-progress":[Je,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[Je,Ts(Je),(I,S)=>{let D=0;for(let X of S)D+=X.evaluate(I);return D}],"*":[Je,Ts(Je),(I,S)=>{let D=1;for(let X of S)D*=X.evaluate(I);return D}],"-":{type:Je,overloads:[[[Je,Je],(I,[S,D])=>S.evaluate(I)-D.evaluate(I)],[[Je],(I,[S])=>-S.evaluate(I)]]},"/":[Je,[Je,Je],(I,[S,D])=>S.evaluate(I)/D.evaluate(I)],"%":[Je,[Je,Je],(I,[S,D])=>S.evaluate(I)%D.evaluate(I)],ln2:[Je,[],()=>Math.LN2],pi:[Je,[],()=>Math.PI],e:[Je,[],()=>Math.E],"^":[Je,[Je,Je],(I,[S,D])=>Math.pow(S.evaluate(I),D.evaluate(I))],sqrt:[Je,[Je],(I,[S])=>Math.sqrt(S.evaluate(I))],log10:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))/Math.LN10],ln:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))],log2:[Je,[Je],(I,[S])=>Math.log(S.evaluate(I))/Math.LN2],sin:[Je,[Je],(I,[S])=>Math.sin(S.evaluate(I))],cos:[Je,[Je],(I,[S])=>Math.cos(S.evaluate(I))],tan:[Je,[Je],(I,[S])=>Math.tan(S.evaluate(I))],asin:[Je,[Je],(I,[S])=>Math.asin(S.evaluate(I))],acos:[Je,[Je],(I,[S])=>Math.acos(S.evaluate(I))],atan:[Je,[Je],(I,[S])=>Math.atan(S.evaluate(I))],min:[Je,Ts(Je),(I,S)=>Math.min(...S.map(D=>D.evaluate(I)))],max:[Je,Ts(Je),(I,S)=>Math.max(...S.map(D=>D.evaluate(I)))],abs:[Je,[Je],(I,[S])=>Math.abs(S.evaluate(I))],round:[Je,[Je],(I,[S])=>{let D=S.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[Je,[Je],(I,[S])=>Math.floor(S.evaluate(I))],ceil:[Je,[Je],(I,[S])=>Math.ceil(S.evaluate(I))],"filter-==":[nt,[He,Yt],(I,[S,D])=>I.properties()[S.value]===D.value],"filter-id-==":[nt,[Yt],(I,[S])=>I.id()===S.value],"filter-type-==":[nt,[He],(I,[S])=>I.geometryType()===S.value],"filter-<":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=S.value;return typeof D==typeof X&&D":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>X}],"filter-<=":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D<=X}],"filter->=":[nt,[He,Yt],(I,[S,D])=>{let X=I.properties()[S.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[nt,[Yt],(I,[S])=>{let D=I.id(),X=S.value;return typeof D==typeof X&&D>=X}],"filter-has":[nt,[Yt],(I,[S])=>S.value in I.properties()],"filter-has-id":[nt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[nt,[be(He)],(I,[S])=>S.value.indexOf(I.geometryType())>=0],"filter-id-in":[nt,[be(Yt)],(I,[S])=>S.value.indexOf(I.id())>=0],"filter-in-small":[nt,[He,be(Yt)],(I,[S,D])=>D.value.indexOf(I.properties()[S.value])>=0],"filter-in-large":[nt,[He,be(Yt)],(I,[S,D])=>function(X,ie,ve,we){for(;ve<=we;){let We=ve+we>>1;if(ie[We]===X)return!0;ie[We]>X?we=We-1:ve=We+1}return!1}(I.properties()[S.value],D.value,0,D.value.length-1)],all:{type:nt,overloads:[[[nt,nt],(I,[S,D])=>S.evaluate(I)&&D.evaluate(I)],[Ts(nt),(I,S)=>{for(let D of S)if(!D.evaluate(I))return!1;return!0}]]},any:{type:nt,overloads:[[[nt,nt],(I,[S,D])=>S.evaluate(I)||D.evaluate(I)],[Ts(nt),(I,S)=>{for(let D of S)if(D.evaluate(I))return!0;return!1}]]},"!":[nt,[nt],(I,[S])=>!S.evaluate(I)],"is-supported-script":[nt,[He],(I,[S])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(S.evaluate(I))}],upcase:[He,[He],(I,[S])=>S.evaluate(I).toUpperCase()],downcase:[He,[He],(I,[S])=>S.evaluate(I).toLowerCase()],concat:[He,Ts(Yt),(I,S)=>S.map(D=>tn(D.evaluate(I))).join("")],"resolved-locale":[He,[cr],(I,[S])=>S.evaluate(I).resolvedLocale()]});class Ma{constructor(S,D){var X;this.expression=S,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Or.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._evaluator.globals=S,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(S,D,X,ie,ve,we){this._evaluator.globals=S,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!=We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(We)} instead.`);return We}catch(We){return this._warningHistory[We.message]||(this._warningHistory[We.message]=!0,typeof console!="undefined"&&console.warn(We.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,S){let D=new bi(Dn,Ho,[],S?function(ie){let ve={color:tt,string:He,number:Je,enum:He,boolean:nt,formatted:_r,padding:yr,resolvedImage:Ut,variableAnchorOffsetCollection:Re};return ie.type==="array"?be(ve[ie.value]||Yt,ie.length):ve[ie.type]}(S):void 0),X=D.parse(I,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,S)):qa(D.errors)}class gs{constructor(S,D){this.kind=S,this._styleExpression=D,this.isStateDependent=S!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}}class Vo{constructor(S,D,X,ie){this.kind=S,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=S!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(S,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(S,D,X,ie,ve,we)}evaluate(S,D,X,ie,ve,we){return this._styleExpression.evaluate(S,D,X,ie,ve,we)}interpolationFactor(S,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,S,D,X):0}}function Do(I,S){let D=ho(I,S);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(S))return qa([new ot("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(S))return qa([new ot("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof ot?qa([we]):we instanceof so&&!ko(S)?qa([new ot("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(S,D){this._parameters=S,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(S){return new Lo(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function xs(I){let S=null;if(I instanceof Xr)S=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(S=xs(D),S)break}else(I instanceof Xi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(S=I);return S instanceof ot||I.eachChild(D=>{let X=xs(D);X instanceof ot?S=X:!S&&X?S=new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&X&&S!==X&&(S=new ot("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}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 S of I.slice(1))if(!ks(S)&&typeof S!="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 S=ho(I,Ea);if(S.result==="error")throw new Error(S.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>S.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,S){return IS?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?bs(I[1],I[2],S):S==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):S==="all"?["all"].concat(I.slice(1).map(Gs)):S==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):S==="in"?zs(I[1],I.slice(2)):S==="!in"?Aa(zs(I[1],I.slice(2))):S==="has"?$o(I[1]):S!=="!has"||Aa($o(I[1]));var D}function bs(I,S,D){switch(I){case"$type":return[`filter-type-${D}`,S];case"$id":return[`filter-id-${D}`,S];default:return[`filter-${D}`,I,S]}}function zs(I,S){if(S.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(D=>typeof D!=typeof S[0])?["filter-in-large",I,["literal",S.sort(Oo)]]:["filter-in-small",I,["literal",S]]}}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 S=typeof I;if(S==="number"||S==="boolean"||S==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(S,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let S=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},We=D!=="categorical"&&I.value.property===void 0,ut=!We,St=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=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(D==="identity")return[new Et(Dr.key,Dr.value,'identity function may not have a "stops" property')];let Jr=[],ui=Dr.value;return Jr=Jr.concat(qo({key:Dr.key,value:ui,valueSpec:Dr.valueSpec,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,arrayElementValidator:vr})),oo(ui)==="array"&&ui.length===0&&Jr.push(new Et(Dr.key,ui,"array must have at least one stop")),Jr},default:function(Dr){return Dr.validateSpec({key:Dr.key,value:Dr.value,valueSpec:S,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec})}}});return D==="identity"&&We&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):We&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!St||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Dr){let Jr=[],ui=Dr.value,Gi=Dr.key;if(oo(ui)!=="array")return[new Et(Gi,ui,`array expected, ${oo(ui)} found`)];if(ui.length!==2)return[new Et(Gi,ui,`array length 2 expected, length ${ui.length} found`)];if(St){if(oo(ui[0])!=="object")return[new Et(Gi,ui,`object expected, ${oo(ui[0])} found`)];if(ui[0].zoom===void 0)return[new Et(Gi,ui,"object stop key must have zoom")];if(ui[0].value===void 0)return[new Et(Gi,ui,"object stop key must have value")];if(ve&&ve>po(ui[0].zoom))return[new Et(Gi,ui[0].zoom,"stop zoom values must appear in ascending order")];po(ui[0].zoom)!==ve&&(ve=po(ui[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Gi}[0]`,value:ui[0],valueSpec:{zoom:{}},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Gi}[0]`,value:ui[0],valueSpec:{},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec},ui));return Qs(go(ui[1]))?Jr.concat([new Et(`${Gi}[1]`,ui[1],"expressions are not allowed in function stops.")]):Jr.concat(Dr.validateSpec({key:`${Gi}[1]`,value:ui[1],valueSpec:S,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec}))}function Sr(Dr,Jr){let ui=oo(Dr.value),Gi=po(Dr.value),cn=Dr.value!==null?Dr.value:Jr;if(X){if(ui!==X)return[new Et(Dr.key,cn,`${ui} stop domain type must match previous stop domain type ${X}`)]}else X=ui;if(ui!=="number"&&ui!=="string"&&ui!=="boolean")return[new Et(Dr.key,cn,"stop domain value must be a number, string, or boolean")];if(ui!=="number"&&D!=="categorical"){let Za=`number expected, ${ui} found`;return ln(S)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Dr.key,cn,Za)]}return D!=="categorical"||ui!=="number"||isFinite(Gi)&&Math.floor(Gi)===Gi?D!=="categorical"&&ui==="number"&&ie!==void 0&&Ginew Et(`${I.key}${X.key}`,I.value,X.message));let D=S.value.expression||S.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(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 Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(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 Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let S=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(S,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let S=I.value,D=I.key;if(oo(S)!=="array")return[new Et(D,S,`array expected, ${oo(S)} found`)];let X=I.styleSpec,ie,ve=[];if(S.length<1)return[new Et(D,S,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:S[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&po(S[1])==="$type"&&ve.push(new Et(D,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&ve.push(new Et(D,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(ie=oo(S[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,S[1],`string expected, ${ie} found`)));for(let we=2;we{St in D&&S.push(new Et(X,D[St],`"${St}" is prohibited for ref layers`))}),ie.layers.forEach(St=>{po(St.id)===We&&(ut=St)}),ut?ut.ref?S.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):S.push(new Et(X,D.ref,`ref layer "${We}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],St=ut&&po(ut.type);ut?St==="vector"&&we==="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):St!=="raster-dem"&&we==="hillshade"?S.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):St==="raster"&&we!=="raster"?S.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):St!=="vector"||D["source-layer"]?St==="raster-dem"&&we!=="hillshade"?S.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||St==="geojson"&&ut.lineMetrics||S.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):S.push(new Et(X,D.source,`source "${D.source}" not found`))}else S.push(new Et(X,D,'missing required property "source"'));return S=S.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":St=>Hs(Ae({layerType:we},St))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":St=>el(Ae({layerType:we},St))}})}})),S}function tl(I){let S=I.value,D=I.key,X=oo(S);return X!=="string"?[new Et(D,S,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:S}){if(oo(S)==="string")return tl({key:I,value:S});{let D=[];for(let X in S)D.push(...tl({key:`${I}.${X}`,value:S[X]}));return D}}};function hl(I){let S=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!S.type)return[new Et(D,S,'"type" is required')];let we=po(S.type),We;switch(we){case"vector":case"raster":return We=ss({key:D,value:S,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),We;case"raster-dem":return We=function(ut){var St;let $t=(St=ut.sourceName)!==null&&St!==void 0?St:"",vr=ut.value,Sr=ut.styleSpec,Dr=Sr.source_raster_dem,Jr=ut.style,ui=[],Gi=oo(vr);if(vr===void 0)return ui;if(Gi!=="object")return ui.push(new Et("source_raster_dem",vr,`object expected, ${Gi} found`)),ui;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?ui.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Dr[La]?ui=ui.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Dr[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):ui.push(new Et(La,vr[La],`unknown property "${La}"`));return ui}({sourceName:D,value:S,style:I.style,styleSpec:X,validateSpec:ve}),We;case"geojson":if(We=ss({key:D,value:S,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),S.cluster)for(let ut in S.clusterProperties){let[St,$t]=S.clusterProperties[ut],vr=typeof St=="string"?[St,["accumulated"],["get",ut]]:St;We.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),We.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return We;case"video":return ss({key:D,value:S,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:S,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(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:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let S=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",S,`object expected, ${we} found`)]),ve;for(let We in S){let ut=We.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:We,value:S[We],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)])}return ve}function Ms(I){let S=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("sky",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we}function jo(I){let S=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(S);if(S===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",S,`object expected, ${we} found`)]),ve;for(let We in S)ve=ve.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return ve}function Rs(I){let S=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&S.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&S.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),S=S.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return S}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let S=I.value,D=I.key,X=oo(S);return X!=="boolean"?[new Et(D,S,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let S=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(S,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(S,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 S=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(S);if(S===void 0)return[];if(ve!=="object")return[new Et("projection",S,`object expected, ${ve} found`)];let we=[];for(let We in S)we=we.concat(X[We]?I.validateSpec({key:We,value:S[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,S[We],`unknown property "${We}"`)]);return we},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 S=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(S,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:S,validateSpec:Bs}))),mr(D)}function wr(I){return function(S){return I(W1(_m({},S),{validateSpec:Bs}))}}function mr(I){return[].concat(I).sort((S,D)=>S.line-D.line)}function Fr(I){return function(...S){return mr(I.apply(this,S))}}Vt.source=Fr(wr(hl)),Vt.sprite=Fr(wr(Rs)),Vt.glyphs=Fr(wr(Tt)),Vt.light=Fr(wr(Fa)),Vt.sky=Fr(wr(Ms)),Vt.terrain=Fr(wr(jo)),Vt.layer=Fr(wr(Ro)),Vt.filter=Fr(wr(vs)),Vt.paintProperty=Fr(wr(el)),Vt.layoutProperty=Fr(wr(Hs));let _i=Vt,Si=_i.light,Ci=_i.sky,Ki=_i.paintProperty,Fn=_i.layoutProperty;function Pi(I,S){let D=!1;if(S&&S.length)for(let X of S)I.fire(new xe(new Error(X.message))),D=!0;return D}class di{constructor(S,D,X){let ie=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let we=new Int32Array(this.arrayBuffer);S=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(We[Dr]=!0,we.push($t[Dr])):We[Dr]=!1}}}}_forEachCell(S,D,X,ie,ve,we,We,ut){let St=this._convertToCellCoord(S),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Dr=St;Dr<=vr;Dr++)for(let Jr=$t;Jr<=Sr;Jr++){let ui=this.d*Jr+Dr;if((!ut||ut(this._convertFromCellCoord(Dr),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Dr+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,S,D,X,ie,ui,we,We,ut))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,S)}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 S=ta(I)||"Object";if(!Li[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:D}=Li[S];if(!D)throw new Error(`can't deserialize unregistered class ${S}`);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 ve=I[ie];X[ie]=Li[S].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(S,D){let X=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=S,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 S of I)if(bl(S.charCodeAt(0)))return!0;return!1}function Cs(I){for(let S of I)if(!xl(S.charCodeAt(0)))return!1;return!0}function Ks(I){let S=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(S.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(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===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,S){return!(!S&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let S of I)if(Vl(S.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(S,D){this.zoom=S,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(S){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(S,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,D=S-Math.floor(S),X=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(S,D){this.property=S,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Or.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?S.specification.default:D,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,D,X){return this.property.possiblyEvaluate(this,S,D,X)}}class ll{constructor(S){this.property=S,this.value=new sl(S,void 0)}transitioned(S,D){return new zl(this.property,this.value,D,L({},S.transition,this.transition),S.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class nl{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return m(this._values[S].value.value)}setValue(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].value=new sl(this._values[S].property,D===null?void 0:m(D))}getTransition(S){return m(this._values[S].transition)}setTransition(S,D){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ll(this._values[S].property)),this._values[S].transition=m(D)||void 0}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X);let ie=this.getTransition(D);ie!==void 0&&(S[`${D}-transition`]=ie)}return S}transitioned(S,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(S,D._values[ie]);return X}untransitioned(){let S=new Ml(this._properties);for(let D of Object.keys(this._values))S._values[D]=this._values[D].untransitioned();return S}}class zl{constructor(S,D,X,ie,ve){this.property=S,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,S.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(S,D,X){let ie=S.now||0,ve=this.value.possiblyEvaluate(S,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let St=ut*ut,$t=St*ut;return 4*(ut<.5?$t:3*(ut-St)+$t-.75)}(We))}}return ve}}class Ml{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Rl{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return m(this._values[S].value)}setValue(S,D){this._values[S]=new sl(this._values[S].property,D===null?void 0:m(D))}serialize(){let S={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(S[D]=X)}return S}possiblyEvaluate(S,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(S,D,X);return ie}}class Al{constructor(S,D,X){this.property=S,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,D,X,ie){return this.property.evaluate(this.value,this.parameters,S,D,X,ie)}}class Ll{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class ms{constructor(S){this.specification=S}possiblyEvaluate(S,D){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(D)}interpolate(S,D,X){let ie=ka[this.specification.type];return ie?ie(S,D,X):S}}class Os{constructor(S,D){this.specification=S,this.overrides=D}possiblyEvaluate(S,D,X,ie){return new Al(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(D,null,{},X,ie)}:S.expression,D)}interpolate(S,D,X){if(S.value.kind!=="constant"||D.value.kind!=="constant")return S;if(S.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},S.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(S.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},S.parameters)}return S}evaluate(S,D,X,ie,ve,we){return S.kind==="constant"?S.value:S.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(S,D,X,ie){if(S.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie),we=S.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,We=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:We},D)}if(S.expression.kind==="camera"){let ve=this._calculate(S.expression.evaluate({zoom:D.zoom-1}),S.expression.evaluate({zoom:D.zoom}),S.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,S.expression,D)}evaluate(S,D,X,ie,ve,we){if(S.kind==="source"){let We=S.evaluate(D,X,ie,ve,we);return this._calculate(We,We,We,D)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),S.evaluate({zoom:Math.floor(D.zoom)},X,ie),S.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):S.value}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Gl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){if(S.value!==void 0){if(S.expression.kind==="constant"){let ve=S.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(S.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),S.expression.evaluate(new cs(Math.floor(D.zoom),D)),S.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(S,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:S,to:D}:{from:X,to:D}}interpolate(S){return S}}class Nl{constructor(S){this.specification=S}possiblyEvaluate(S,D,X,ie){return!!S.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in S){let X=S[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Mi("DataDrivenProperty",Os),Mi("DataConstantProperty",ms),Mi("CrossFadedDataDrivenProperty",Xl),Mi("CrossFadedProperty",Gl),Mi("ColorRampProperty",Nl);let w="-transition";class q extends Ne{constructor(S,D){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new nl(D.paint);for(let X in S.paint)this.setPaintProperty(X,S.paint[X],{validate:!1});for(let X in S.layout)this.setLayoutProperty(X,S.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${S}`,S,D,X)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,D):this.visibility=D)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,D,X={}){if(D!=null&&this._validate(Ki,`layers.${this.id}.paint.${S}`,S,D,X))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[S],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),We=ie.value;this._transitionablePaint.setValue(S,D),this._handleSpecialPaintPropertyUpdate(S);let ut=this._transitionablePaint._values[S].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(S,We,ut)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,D,X){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,D){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,D)}serialize(){let S={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&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(S,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,S.call(_i,{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 S in this.paint._values){let D=this.paint.get(S);if(D instanceof Al&&ln(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(S,D){this._structArray=S,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,D){return S._trim(),D&&(S.isTransferred=!0,D.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let D=Object.create(this.prototype);return D.arrayBuffer=S.arrayBuffer,D.length=S.length,D.capacity=S.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(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,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,S=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=rt(D,Math.max(S,ve)),We=ie.components||1;return X=Math.max(X,ve),D+=ve*We,{name:ie.name,type:ie.type,components:We,offset:we}}),size:rt(D,Math.max(X,S)),alignment:S}}function rt(I,S){return Math.ceil(I/S)*S}class mt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.int16[ie+0]=D,this.int16[ie+1]=X,S}}mt.prototype.bytesPerElement=4,Mi("StructArrayLayout2i4",mt);class Ft extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,S}}Ft.prototype.bytesPerElement=6,Mi("StructArrayLayout3i6",Ft);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,S}}ir.prototype.bytesPerElement=8,Mi("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}or.prototype.bytesPerElement=12,Mi("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=4*S,St=8*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[St+4]=ie,this.uint8[St+5]=ve,this.uint8[St+6]=we,this.uint8[St+7]=We,S}}kr.prototype.bytesPerElement=8,Mi("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.float32[ie+0]=D,this.float32[ie+1]=X,S}}Vr.prototype.bytesPerElement=8,Mi("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,St,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,S,D,X,ie,ve,we,We,ut,St,$t)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr){let Sr=10*S;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=We,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=St,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,S}}he.prototype.bytesPerElement=20,Mi("StructArrayLayout10ui20",he);class Me extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr){let Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr){let Jr=12*S;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=We,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=St,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Dr,S}}Me.prototype.bytesPerElement=24,Mi("StructArrayLayout4i4ui4i24",Me);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}qe.prototype.bytesPerElement=12,Mi("StructArrayLayout3f12",qe);class Ve extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint32[1*S+0]=D,S}}Ve.prototype.bytesPerElement=4,Mi("StructArrayLayout1ul4",Ve);class lt extends ue{_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(S,D,X,ie,ve,we,We,ut,St){let $t=this.length;return this.resize($t+1),this.emplace($t,S,D,X,ie,ve,we,We,ut,St)}emplace(S,D,X,ie,ve,we,We,ut,St,$t){let vr=10*S,Sr=5*S;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=We,this.uint32[Sr+3]=ut,this.uint16[vr+8]=St,this.uint16[vr+9]=$t,S}}lt.prototype.bytesPerElement=20,Mi("StructArrayLayout6i1ul2ui20",lt);class it extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=6*S;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,S}}it.prototype.bytesPerElement=12,Mi("StructArrayLayout2i2i2i12",it);class pt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,S,D,X,ie,ve)}emplace(S,D,X,ie,ve,we){let We=4*S,ut=8*S;return this.float32[We+0]=D,this.float32[We+1]=X,this.float32[We+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,S}}pt.prototype.bytesPerElement=16,Mi("StructArrayLayout2f1f2i16",pt);class Ht extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,S,D,X,ie,ve,we)}emplace(S,D,X,ie,ve,we,We){let ut=16*S,St=4*S,$t=8*S;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[St+1]=ie,this.float32[St+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=We,S}}Ht.prototype.bytesPerElement=16,Mi("StructArrayLayout2ub2f2i16",Ht);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,S}}nr.prototype.bytesPerElement=6,Mi("StructArrayLayout3ui6",nr);class fr extends ue{_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(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za){let Rn=24*S,La=12*S,So=48*S;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=We,this.uint32[La+4]=ut,this.uint16[Rn+10]=St,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Dr,this.uint8[So+36]=Jr,this.uint8[So+37]=ui,this.uint8[So+38]=Gi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,S}}fr.prototype.bytesPerElement=48,Mi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fr);class Ar extends ue{_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(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui,Gi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*S,Lu=16*S;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=We,this.int16[Xs+6]=ut,this.int16[Xs+7]=St,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Dr,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=ui,this.uint16[Xs+14]=Gi,this.uint16[Xs+15]=cn,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,S}}Ar.prototype.bytesPerElement=64,Mi("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.float32[1*S+0]=D,S}}Ir.prototype.bytesPerElement=4,Mi("StructArrayLayout1f4",Ir);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=3*S;return this.uint16[6*S+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,S}}ri.prototype.bytesPerElement=12,Mi("StructArrayLayout1ui2f12",ri);class li extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,S,D,X)}emplace(S,D,X,ie){let ve=4*S;return this.uint32[2*S+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,S}}li.prototype.bytesPerElement=8,Mi("StructArrayLayout1ul2ui8",li);class Ei extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,D){let X=this.length;return this.resize(X+1),this.emplace(X,S,D)}emplace(S,D,X){let ie=2*S;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,S}}Ei.prototype.bytesPerElement=4,Mi("StructArrayLayout2ui4",Ei);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let D=this.length;return this.resize(D+1),this.emplace(D,S)}emplace(S,D){return this.uint16[1*S+0]=D,S}}hn.prototype.bytesPerElement=2,Mi("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,S,D,X,ie)}emplace(S,D,X,ie,ve){let we=4*S;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,S}}Zn.prototype.bytesPerElement=16,Mi("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 lt{get(S){return new Yn(this,S)}}Mi("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(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends fr{get(S){return new Fo(this,S)}}Mi("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(S){this._structArray.uint32[this._pos4+12]=S}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 Ar{get(S){return new Us(this,S)}}Mi("SymbolInstanceArray",ml);class au extends Ir{getoffsetX(S){return this.float32[1*S+0]}}Mi("GlyphOffsetArray",au);class Sl extends Ft{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Mi("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 Ol extends ri{get(S){return new Yl(this,S)}}Mi("TextAnchorOffsetArray",Ol);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 li{get(S){return new ou(this,S)}}Mi("FeatureIndexArray",Pu);class nu extends mt{}class tu extends mt{}class Hu extends mt{}class $u extends or{}class Ku extends kr{}class Wu extends Vr{}class ju extends he{}class sf extends Me{}class _f extends qe{}class Qu extends Ve{}class ef extends it{}class Z extends Ht{}class se extends nr{}class Pe extends Ei{}let Ze=Ue([{name:"a_pos",components:2,type:"Int16"}],4),{members:et}=Ze;class st{constructor(S=[]){this.segments=S}prepareSegment(S,D,X,ie){let ve=this.segments[this.segments.length-1];return S>st.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${st.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!ve||ve.vertexLength+S>st.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let S of this.segments)for(let D in S.vaos)S.vaos[D].destroy()}static simpleSegment(S,D,X,ie){return new st([{vertexOffset:S,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,S){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(S),0,255)}st.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Mi("SegmentVector",st);let _t=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 hr={exports:{}},Cr={exports:{}};Cr.exports=function(I,S){var D,X,ie,ve,we,We,ut,St;for(X=I.length-(D=3&I.length),ie=S,we=3432918353,We=461845907,St=0;St>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(St+2))<<16;case 2:ut^=(255&I.charCodeAt(St+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(St)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&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,fi={exports:{}};fi.exports=function(I,S){for(var D,X=I.length,ie=S^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<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,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Bi=fi.exports;hr.exports=$r,hr.exports.murmur3=$r,hr.exports.murmur2=Bi;var fn=o(hr.exports);class mi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,D,X,ie){this.ids.push(zi(S)),this.positions.push(D,X,ie)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(S),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(S,D){let X=new Float64Array(S.ids),ie=new Uint32Array(S.positions);return ji(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(S){let D=new mi;return D.ids=S.ids,D.positions=S.positions,D.indexed=!0,D}}function zi(I){let S=+I;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:fn(String(I))}function ji(I,S,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(S,3*ve,3*we),pn(S,3*ve+1,3*we+1),pn(S,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(S,D,X){S.set(X.constantOr(this.value))}getBinding(S,D,X){return this.type==="color"?new no(S,D):new wi(S,D)}}class Pl{constructor(S,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=S.tlbr}setUniform(S,D,X,ie){let ve=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;ve&&S.set(ve)}getBinding(S,D,X){return X.substr(0,9)==="u_pattern"?new xo(S,D):new wi(S,D)}}class pu{constructor(S,D,X,ie){this.expression=S,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(S,D,X,ie,ve){let we=this.paintVertexArray.length,We=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(S),this._setPaintValue(we,S,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(S,D,ve)}_setPaintValue(S,D,X){if(this.type==="color"){let ie=js(X);for(let ve=S;ve`u_${We}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(We=>({name:`a_${We}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(S,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),We=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(ut,S,we,We)}updatePaintArray(S,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(S,D,ve,we)}_setPaintValue(S,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let We=S;We`#define HAS_UNIFORM_${ie}`))}return S}getBinderAttributes(){let S=[];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 S)this.programConfigurations[ie.id]=new Xu(ie,D,X);this.needsUpload=!1,this._featureMap=new mi,this._bufferOffset=0}populatePaintArrays(S,D,X,ie,ve,we){for(let We in this.programConfigurations)this.programConfigurations[We].populatePaintArrays(S,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(S,this._featureMap,D,ve,ie)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function tf(I,S){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(`${S}-`,"").replace(/-/g,"_")]}function ds(I,S,D){let X={color:{source:Vr,composite:Zn},number:{source:Ir,composite:Vr}},ie=function(ve){return{"line-pattern":{source:ju,composite:ju},"fill-pattern":{source:ju,composite:ju},"fill-extrusion-pattern":{source:ju,composite:ju}}[ve]}(I);return ie&&ie[D]||X[S][D]}Mi("ConstantBinder",El),Mi("CrossFadedConstantBinder",Pl),Mi("SourceExpressionBinder",pu),Mi("CrossFadedCompositeBinder",fu),Mi("CompositeExpressionBinder",Il),Mi("ProgramConfiguration",Xu,{omit:["_buffers"]}),Mi("ProgramConfigurationSet",Vu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function lf(I){let S=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function hf(I,S){return{type:I.type,id:I.id,properties:I.properties,geometry:S?lf(I):[]}}function Mf(I,S,D,X,ie){I.emplaceBack(2*S+(X+1)/2,2*D+(ie+1)/2)}class pf{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new st,this.programConfigurations=new Vu(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){let ie=this.layers[0],ve=[],we=null,We=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),We=!we.isConstant());for(let{feature:ut,id:St,index:$t,sourceLayerIndex:vr}of S){let Sr=this.layers[0]._featureFilter.needGeometry,Dr=hf(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Dr,X))continue;let Jr=We?we.evaluate(Dr,{},X):void 0,ui={id:St,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Dr.geometry:lf(ut),patterns:{},sortKey:Jr};ve.push(ui)}We&&ve.sort((ut,St)=>ut.sortKey-St.sortKey);for(let ut of ve){let{geometry:St,index:$t,sourceLayerIndex:vr}=ut,Sr=S[$t].feature;this.addFeature(ut,St,$t,X),D.featureIndex.insert(Sr,St,$t,vr,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,et),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,D,X,ie){for(let ve of D)for(let we of ve){let We=we.x,ut=we.y;if(We<0||We>=Wl||ut<0||ut>=Wl)continue;let St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),$t=St.vertexLength;Mf(this.layoutVertexArray,We,ut,-1,-1),Mf(this.layoutVertexArray,We,ut,1,-1),Mf(this.layoutVertexArray,We,ut,1,1),Mf(this.layoutVertexArray,We,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),St.vertexLength+=4,St.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,{},ie)}}function fc(I,S){for(let D=0;D1){if(Qr(I,S))return!0;for(let X=0;X1?D:D.sub(S)._mult(ie)._add(S))}function on(I,S){let D,X,ie,ve=!1;for(let we=0;weS.y!=ie.y>S.y&&S.x<(ie.x-X.x)*(S.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,S){let D=!1;for(let X=0,ie=I.length-1;XS.y!=we.y>S.y&&S.x<(we.x-ve.x)*(S.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,S,D){let X=D[0],ie=D[2];if(I.xie.x&&S.x>ie.x||I.yie.y&&S.y>ie.y)return!1;let ve=F(I,S,D[0]);return ve!==F(I,S,D[1])||ve!==F(I,S,D[2])||ve!==F(I,S,D[3])}function wn(I,S,D){let X=S.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(S.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,S,D,X,ie){if(!S[0]&&!S[1])return I;let ve=l.convert(S)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let We=0;WeUi(Gi,ui))}(St,ut),Dr=vr?$t*We:$t;for(let Jr of ie)for(let ui of Jr){let Gi=vr?ui:Ui(ui,ut),cn=Dr,Za=hs([],[ui.x,ui.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Gi,cn))return!0}return!1}}function Ui(I,S){let D=hs([],[I.x,I.y,0,1],S);return new l(D[0]/D[3],D[1]/D[3])}class ro extends pf{}let na;Mi("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(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:S,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==S*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${S*D*X}`)}else ie=new Uint8Array(S*D*X);return I.width=S,I.height=D,I.data=ie,I}function Va(I,{width:S,height:D},X){if(S===I.width&&D===I.height)return;let ie=In({},{width:S,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,S),height:Math.min(I.height,D)},X),I.width=S,I.height=D,I.data=ie.data}function _s(I,S,D,X,ie,ve){if(ie.width===0||ie.height===0)return S;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>S.width||ie.height>S.height||X.x>S.width-ie.width||X.y>S.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,We=S.data;if(we===We)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{S[I.evaluationKey]=ut;let St=I.expression.evaluate(S);ie.data[we+We+0]=Math.floor(255*St.r/St.a),ie.data[we+We+1]=Math.floor(255*St.g/St.a),ie.data[we+We+2]=Math.floor(255*St.b/St.a),ie.data[we+We+3]=Math.floor(255*St.a)};if(I.clips)for(let we=0,We=0;we80*D){We=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Dr),Jr>vr&&(vr=Jr)}St=Math.max($t-We,vr-ut),St=St!==0?32767/St:0}return Cf(ve,we,D,We,ut,St,0),we}function gf(I,S,D,X,ie){let ve;if(ie===function(we,We,ut,St){let $t=0;for(let vr=We,Sr=ut-St;vr0)for(let we=S;we=S;we-=X)ve=lr(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&($e(ve),ve=ve.next),ve}function xf(I,S){if(!I)return I;S||(S=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&_e(X.prev,X,X.next)!==0)X=X.next;else{if($e(X),X=S=X.prev,X===X.next)break;D=!0}while(D||X!==S);return S}function Cf(I,S,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,St,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,St,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Dr){let Jr,ui=1;do{let Gi,cn=Dr;Dr=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Gi=cn,cn=cn.nextZ,La--):(Gi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Gi:Dr=Gi,Gi.prevZ=Za,Za=Gi;cn=Rn}Za.nextZ=null,ui*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let We=I;for(;I.prev!==I.next;){let ut=I.prev,St=I.next;if(ve?cf(I,X,ie,ve):Gu(I))S.push(ut.i,I.i,St.i),$e(I),I=St.next,We=St.next;else if((I=St)===We){we?we===1?Cf(I=mf(xf(I),S),S,D,X,ie,ve,2):we===2&&Fl(I,S,D,X,ie,ve):Cf(xf(I),S,D,X,ie,ve,1);break}}}function Gu(I){let S=I.prev,D=I,X=I.next;if(_e(S,D,X)>=0)return!1;let ie=S.x,ve=D.x,we=X.x,We=S.y,ut=D.y,St=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Dr=We>ut?We>St?We:St:ut>St?ut:St,Jr=X.next;for(;Jr!==S;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Dr&&O(ie,We,ve,ut,we,St,Jr.x,Jr.y)&&_e(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function cf(I,S,D,X){let ie=I.prev,ve=I,we=I.next;if(_e(ie,ve,we)>=0)return!1;let We=ie.x,ut=ve.x,St=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Dr=Weut?We>St?We:St:ut>St?ut:St,Gi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Dr,Jr,S,D,X),Za=R(ui,Gi,S,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Dr&&Rn.x<=ui&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,St,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Dr&&La.x<=ui&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==we&&O(We,$t,ut,vr,St,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Dr&&Rn.x<=ui&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,St,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Dr&&La.x<=ui&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==we&&O(We,$t,ut,vr,St,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function mf(I,S){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Ce(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(S.push(X.i,D.i,ie.i),$e(D),$e(D.next),D=I=ie),D=D.next}while(D!==I);return xf(D)}function Fl(I,S,D,X,ie,ve){let we=I;do{let We=we.next.next;for(;We!==we.prev;){if(we.i!==We.i&&K(we,We)){let ut=Mr(we,We);return we=xf(we,we.next),ut=xf(ut,ut.next),Cf(we,S,D,X,ie,ve,0),void Cf(ut,S,D,X,ie,ve,0)}We=We.next}we=we.next}while(we!==I)}function bf(I,S){return I.x-S.x}function cu(I,S){let D=function(ie,ve){let we=ve,We=ie.x,ut=ie.y,St,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let ui=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(ui<=We&&ui>$t&&($t=ui,St=we.x=we.x&&we.x>=Sr&&We!==we.x&&O(utSt.x||we.x===St.x&&Y(St,we)))&&(St=we,Jr=ui)}we=we.next}while(we!==vr);return St}(I,S);if(!D)return S;let X=Mr(D,I);return xf(X,X.next),xf(D,D.next)}function Y(I,S){return _e(I.prev,I,S.prev)<0&&_e(S.next,I,I.next)<0}function R(I,S,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))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-X)*ie|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(I){let S=I,D=I;do(S.x=(I-we)*(ve-We)&&(I-we)*(X-We)>=(D-we)*(S-We)&&(D-we)*(ve-We)>=(ie-we)*(X-We)}function K(I,S){return I.next.i!==S.i&&I.prev.i!==S.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&&Ce(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,S)&&(dr(I,S)&&dr(S,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,We=(D.y+X.y)/2;do ie.y>We!=ie.next.y>We&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(We-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,S)&&(_e(I.prev,I,S.prev)||_e(I,S.prev,S))||ne(I,S)&&_e(I.prev,I,I.next)>0&&_e(S.prev,S,S.next)>0)}function _e(I,S,D){return(S.y-I.y)*(D.x-S.x)-(S.x-I.x)*(D.y-S.y)}function ne(I,S){return I.x===S.x&&I.y===S.y}function Ce(I,S,D,X){let ie=kt(_e(I,S,D)),ve=kt(_e(I,S,X)),we=kt(_e(D,X,I)),We=kt(_e(D,X,S));return ie!==ve&&we!==We||!(ie!==0||!Ye(I,D,S))||!(ve!==0||!Ye(I,X,S))||!(we!==0||!Ye(D,I,X))||!(We!==0||!Ye(D,S,X))}function Ye(I,S,D){return S.x<=Math.max(I.x,D.x)&&S.x>=Math.min(I.x,D.x)&&S.y<=Math.max(I.y,D.y)&&S.y>=Math.min(I.y,D.y)}function kt(I){return I>0?1:I<0?-1:0}function dr(I,S){return _e(I.prev,I,I.next)<0?_e(I,S,I.next)>=0&&_e(I,I.prev,S)>=0:_e(I,S,I.prev)<0||_e(I,I.next,S)<0}function Mr(I,S){let D=ht(I.i,I.x,I.y),X=ht(S.i,S.x,S.y),ie=I.next,ve=S.prev;return I.next=S,S.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function lr(I,S,D,X){let ie=ht(I,S,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 $e(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 ht(I,S,D){return{i:I,x:S,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function bt(I,S,D){let X=D.patternDependencies,ie=!1;for(let ve of S){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let We=we.constantOr(null);We&&(ie=!0,X[We.to]=!0,X[We.from]=!0)}return ie}function Kt(I,S,D,X,ie){let ve=ie.patternDependencies;for(let we of S){let We=we.paint.get(`${I}-pattern`).value;if(We.kind!=="constant"){let ut=We.evaluate({zoom:X-1},D,{},ie.availableImages),St=We.evaluate({zoom:X},D,{},ie.availableImages),$t=We.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,St=St&&St.name?St.name:St,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[St]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:St,max:$t}}}return D}class sr{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Hu,this.indexArray=new se,this.indexArray2=new Pe,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.segments2=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:St,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=hf(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:St,geometry:vr?Sr.geometry:lf(We),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:St,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("fill",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,St,X,{});D.featureIndex.insert(S[St].feature,ut,St,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ef),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),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(S,D,X,ie,ve){for(let we of Ys(D,500)){let We=0;for(let Dr of we)We+=Dr.length;let ut=this.segments.prepareSegment(We,this.layoutVertexArray,this.indexArray),St=ut.vertexLength,$t=[],vr=[];for(let Dr of we){if(Dr.length===0)continue;Dr!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Dr.length,this.layoutVertexArray,this.indexArray2),ui=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Dr[0].x,Dr[0].y),this.indexArray2.emplaceBack(ui+Dr.length-1,ui),$t.push(Dr[0].x),$t.push(Dr[0].y);for(let Gi=1;Gi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(S&&We.push(S),S=[]),S.push(new hi(ve,we));else{if(X!==7)throw new Error("unknown command "+X);S&&S.push(S[0].clone())}}return S&&We.push(S),We},Yi.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var S=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,We=-1/0,ut=1/0,St=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())We&&(We=ie),(ve+=I.readSVarint())St&&(St=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,We,St]},Yi.prototype.toGeoJSON=function(I,S,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,We=this.extent*S,ut=this.loadGeometry(),St=Yi.types[this.type];function $t(Dr){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===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 S=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,S,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,S,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(S[X.name]=X)}}Ur.VectorTile=function(I,S){this.layers=I.readFields(Zo,{},S)},Ur.VectorTileFeature=Cn,Ur.VectorTileLayer=Tn;let ru=Ur.VectorTileFeature.types,yu=Math.pow(2,13);function Fu(I,S,D,X,ie,ve,we,We){I.emplaceBack(S,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(We))}class vu{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(D=>D.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new $u,this.centroidVertexArray=new nu,this.indexArray=new se,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.features=[],this.hasPattern=bt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:We}of S){let ut=this.layers[0]._featureFilter.needGeometry,St=hf(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),St,X))continue;let $t={id:ve,sourceLayerIndex:We,index:we,geometry:ut?St.geometry:lf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,We,this.index,!0)}}addFeatures(S,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,D,X,ie,ve){for(let we of Ys(D,500)){let We={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||Ju(Jr))continue;let ui=0;for(let Gi=0;Gi=1){let Za=Jr[Gi-1];if(!zu(cn,Za)){St.vertexLength+4>st.MAX_VERTEX_ARRAY_LENGTH&&(St=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);ui+La>32768&&(ui=0),Fu(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,ui),Fu(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,ui),We.x+=2*cn.x,We.y+=2*cn.y,We.vertexCount+=2,ui+=La,Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,ui),Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,ui),We.x+=2*Za.x,We.y+=2*Za.y,We.vertexCount+=2;let So=St.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),St.vertexLength+=4,St.primitiveLength+=2}}}}if(St.vertexLength+ut>st.MAX_VERTEX_ARRAY_LENGTH&&(St=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[S.type]!=="Polygon")continue;let $t=[],vr=[],Sr=St.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let ui=0;uiWl)||I.y===S.y&&(I.y<0||I.y>Wl)}function Ju(I){return I.every(S=>S.x<0)||I.every(S=>S.x>Wl)||I.every(S=>S.y<0)||I.every(S=>S.y>Wl)}let Vf;Mi("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Vf=Vf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(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 Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(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(S){super(S,wd)}createBucket(S){return new vu(S)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,D,X,ie,ve,we,We,ut){let St=ua(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,We),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,ui,Gi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,ui),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(St,ut),Dr=function(Jr,ui,Gi,cn){let Za=[],Rn=[],La=cn[8]*ui,So=cn[9]*ui,kl=cn[10]*ui,mu=cn[11]*ui,Iu=cn[8]*Gi,su=cn[9]*Gi,yl=cn[10]*Gi,Eu=cn[11]*Gi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=cn[0]*xu+cn[4]*qu+cn[12],cc=cn[1]*xu+cn[5]*qu+cn[13],Rh=cn[2]*xu+cn[6]*qu+cn[14],Qp=cn[3]*xu+cn[7]*qu+cn[15],fd=Rh+kl,Dh=Qp+mu,Hd=vc+Iu,Wd=cc+su,jd=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(Hd/$c,Wd/$c);Cd.z=jd/$c,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,ui,Gi){let cn=1/0;Nt(Gi,ui)&&(cn=Kp(Gi,ui[0]));for(let Za=0;ZaD.id),this.index=S.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 se,this.programConfigurations=new Vu(S.layers,S.zoom),this.segments=new st,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(S,D,X){this.hasPattern=bt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:St,sourceLayerIndex:$t}of S){let vr=this.layers[0]._featureFilter.needGeometry,Sr=hf(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:St,geometry:vr?Sr.geometry:lf(We),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:St,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("line",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,St,X,{});D.featureIndex.insert(S[St].feature,ut,St,$t,this.index)}}update(S,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,D,this.stateDependentLayers,X)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,yv)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,mv),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,D,X,ie,ve){let we=this.layers[0].layout,We=we.get("line-join").evaluate(S,{}),ut=we.get("line-cap"),St=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let vr of D)this.addLine(vr,S,We,ut,St,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,X,ve,ie)}addLine(S,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&S[ut-1].equals(S[ut-2]);)ut--;let St=0;for(;St0;if(mu&&cn>St){let Eu=Sr.dist(Dr);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Dr)._mult($t/Eu)._round());this.updateDistance(Dr,bu),this.addCurrentVertex(bu,ui,0,0,vr),Dr=bu}}let su=Dr&&Jr,yl=su?X:We?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Gi.mult(-1);else{let Eu=So*ui.add(Gi).mag()/ui.sub(Gi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}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(Sr,ui,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Gi,0,0,vr),Sr=bu}}}}addCurrentVertex(S,D,X,ie,ve,we=!1){let We=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(S,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(S,We,ut,we,!0,-ie,ve),this.distance>Pp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,D,X,ie,ve,we))}addHalfVertex({x:S,y:D},X,ie,ve,we,We,ut){let St=.5*(this.lineClips?this.scaledDistance*(Pp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(We===0?0:We<0?-1:1)|(63&St)<<2,St>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,D){this.distance+=S.dist(D),this.updateScaledDistance()}}let zp,cg;Mi("LineBucket",Jp,{omit:["layers","patternFeatures"]});var dm={get paint(){return cg=cg||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(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 Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(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 le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(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 Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(S,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(S,D)}evaluate(S,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(S,D,X,ie)}}let pm;class hg extends q{constructor(S){super(S,dm),this.gradientVersion=0,pm||(pm=new vh(dm.paint.properties["line-width"].specification),pm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="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(S,D){super.recalculate(S,D),this.paint._values["line-floorwidth"]=pm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jp(S)}queryRadius(S){let D=S,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(S,D,X,ie,ve,we,We){let ut=ua(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,We),St=We/2*Jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Dr=[];for(let Jr=0;Jr=3){for(let Gi=0;Gi0?S+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 dg=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,S,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let We=ve.layout.get("text-transform").evaluate(we,{});return We==="uppercase"?ie=ie.toLocaleUpperCase():We==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,S,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,pg=function(I,S,D,X,ie){var ve,we,We=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Dr=I[S+vr];for(vr+=Sr,ve=Dr&(1<<-$t)-1,Dr>>=-$t,$t+=We;$t>0;ve=256*ve+I[S+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[S+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-St;else{if(ve===ut)return we?NaN:1/0*(Dr?-1:1);we+=Math.pow(2,X),ve-=St}return(Dr?-1:1)*we*Math.pow(2,ve-X)},L1=function(I,S,D,X,ie,ve){var we,We,ut,St=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Dr=X?0:ve-1,Jr=X?1:-1,ui=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(We=isNaN(S)?1:0,we=$t):(we=Math.floor(Math.log(S)/Math.LN2),S*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(S+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(We=0,we=$t):we+vr>=1?(We=(S*ut-1)*Math.pow(2,ie),we+=vr):(We=S*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Dr]=255&We,Dr+=Jr,We/=256,ie-=8);for(we=we<0;I[D+Dr]=255&we,Dr+=Jr,we/=256,St-=8);I[D+Dr-Jr]|=128*ui};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 Yx=4294967296,ly=1/Yx,Bw=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,S,D){return D?4294967296*S+(I>>>0):4294967296*(S>>>0)+(I>>>0)}function Ow(I,S,D){var X=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Kx(I,S){for(var D=0;D>>8,I[D+2]=S>>>16,I[D+3]=S>>>24}function MC(I,S){return(I[S]|I[S+1]<<8|I[S+2]<<16)+(I[S+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,S,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,S,this),this.pos===ve&&this.skip(X)}return S},readMessage:function(I,S){return this.readFields(I,S,this.readVarint()+this.pos)},readFixed32:function(){var I=vg(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=vg(this.buf,this.pos)+vg(this.buf,this.pos+4)*Yx;return this.pos+=8,I},readSFixed64:function(){var I=vg(this.buf,this.pos)+MC(this.buf,this.pos+4)*Yx;return this.pos+=8,I},readFloat:function(){var I=pg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=pg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var S,D,X=this.buf;return S=127&(D=X[this.pos++]),D<128?S:(S|=(127&(D=X[this.pos++]))<<7,D<128?S:(S|=(127&(D=X[this.pos++]))<<14,D<128?S:(S|=(127&(D=X[this.pos++]))<<21,D<128?S:function(ie,ve,we){var We,ut,St=we.buf;if(We=(112&(ut=St[we.pos++]))>>4,ut<128||(We|=(127&(ut=St[we.pos++]))<<3,ut<128)||(We|=(127&(ut=St[we.pos++]))<<10,ut<128)||(We|=(127&(ut=St[we.pos++]))<<17,ut<128)||(We|=(127&(ut=St[we.pos++]))<<24,ut<128)||(We|=(1&(ut=St[we.pos++]))<<31,ut<128))return uy(ie,We,ve);throw new Error("Expected varint not more than 10 bytes")}(S|=(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,S=this.pos;return this.pos=I,I-S>=12&&Bw?function(D,X,ie){return Bw.decode(D.subarray(X,ie))}(this.buf,S,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(We=D[we+1]))==128&&(vr=(31&$t)<<6|63&We)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(We=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&We)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],St=D[we+3],(192&(We=D[we+1]))==128&&(192&ut)==128&&(192&St)==128&&((vr=(15&$t)<<18|(63&We)<<12|(63&ut)<<6|63&St)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,S,I)},readBytes:function(){var I=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,I);return this.pos=I,S},readPackedVarint:function(I,S){if(this.type!==ic.Bytes)return I.push(this.readVarint(S));var D=Ip(this);for(I=I||[];this.pos127;);else if(S===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(S===ic.Fixed32)this.pos+=4;else{if(S!==ic.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(I,S){this.writeVarint(I<<3|S)},realloc:function(I){for(var S=this.length||16;S268435455||I<0?function(S,D){var X,ie;if(S>=0?(X=S%4294967296|0,ie=S/4294967296|0):(ie=~(-S/4294967296),4294967295^(X=~(-S%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,We){We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,We.buf[We.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var We=(7&ve)<<4;we.buf[we.pos++]|=We|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(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 S=this.pos;this.pos=function(X,ie,ve){for(var we,We,ut=0;ut55295&&we<57344){if(!We){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):We=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,We=we;continue}we=We-55296<<10|we-56320|65536,We=null}else We&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,We=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-S;D>=128&&Ow(S,D,this),this.pos=S-1,this.writeVarint(D),this.pos+=D},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 S=I.length;this.writeVarint(S),this.realloc(S);for(var D=0;D=128&&Ow(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,S,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(S,D)},writePackedVarint:function(I,S){S.length&&this.writeMessage(I,Kx,S)},writePackedSVarint:function(I,S){S.length&&this.writeMessage(I,$9,S)},writePackedBoolean:function(I,S){S.length&&this.writeMessage(I,tO,S)},writePackedFloat:function(I,S){S.length&&this.writeMessage(I,Q9,S)},writePackedDouble:function(I,S){S.length&&this.writeMessage(I,eO,S)},writePackedFixed32:function(I,S){S.length&&this.writeMessage(I,YQ,S)},writePackedSFixed32:function(I,S){S.length&&this.writeMessage(I,rO,S)},writePackedFixed64:function(I,S){S.length&&this.writeMessage(I,iO,S)},writePackedSFixed64:function(I,S){S.length&&this.writeMessage(I,nO,S)},writeBytesField:function(I,S){this.writeTag(I,ic.Bytes),this.writeBytes(S)},writeFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(I,S){this.writeTag(I,ic.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(I,S){this.writeTag(I,ic.Fixed64),this.writeSFixed64(S)},writeVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeVarint(S)},writeSVarintField:function(I,S){this.writeTag(I,ic.Varint),this.writeSVarint(S)},writeStringField:function(I,S){this.writeTag(I,ic.Bytes),this.writeString(S)},writeFloatField:function(I,S){this.writeTag(I,ic.Fixed32),this.writeFloat(S)},writeDoubleField:function(I,S){this.writeTag(I,ic.Fixed64),this.writeDouble(S)},writeBooleanField:function(I,S){this.writeVarintField(I,!!S)}};var lM=o(Ed);let uM=3;function KQ(I,S,D){I===1&&D.readMessage(aO,S)}function aO(I,S,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:We,top:ut,advance:St}=D.readMessage(EC,{});S.push({id:X,bitmap:new ul({width:ve+2*uM,height:we+2*uM},ie),metrics:{width:ve,height:we,left:We,top:ut,advance:St}})}}function EC(I,S,D){I===1?S.id=D.readVarint():I===2?S.bitmap=D.readBytes():I===3?S.width=D.readVarint():I===4?S.height=D.readVarint():I===5?S.left=D.readSVarint():I===6?S.top=D.readSVarint():I===7&&(S.advance=D.readVarint())}let kC=uM;function fM(I){let S=0,D=0;for(let we of I)S+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,We)=>We.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let We=X.length-1;We>=0;We--){let ut=X[We];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let St=X.pop();We=0&&X>=S&&Uw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(S,D),this.sectionIndex=this.sectionIndex.slice(S,D)}substring(S,D){let X=new P1;return X.text=this.text.substring(S,D),X.sectionIndex=this.sectionIndex.slice(S,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,D)=>Math.max(S,this.sections[D].scale),0)}addTextSection(S,D){this.text+=S.text,this.sections.push($x.forText(S.scale,S.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Qx(I,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr){let ui=P1.fromFeature(I,ie),Gi;vr===i.ah.vertical&&ui.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&ui.sections.length===1){Gi=[];let So=cn(ui.toString(),z1(ui,St,ve,S,X,Dr));for(let kl of So){let mu=new P1;mu.text=kl,mu.sections=ui.sections;for(let Iu=0;Iu0&&tv>ih&&(ih=tv)}else{let Rc=mu[Xf.fontStack],ch=Rc&&Rc[mc];if(ch&&ch.rect)O1=ch.rect,Hc=ch.metrics;else{let tv=kl[Xf.fontStack],gm=tv&&tv[mc];if(!gm)continue;Hc=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:Hc,rect:O1}),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:Hc,rect:O1}),qu+=Hc.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 Hd=vc-Ih,{horizontalAlign:Wd,verticalAlign:jd}=Gw(Eu);(function($c,Fh,Cd,cd,$h,ih,Dp,fp,Xf){let Ac=(Fh-Cd)*$h,mc=0;mc=ih!==Dp?-fp*cd-Ih:(-cd*Xf+.5)*Dp;for(let Fp of $c)for(let Hc of Fp.positionedGlyphs)Hc.x+=Ac,Hc.y+=mc})(So.positionedLines,Qp,Wd,jd,cc,Rh,yl,Hd,su.length),So.top+=-jd*Hd,So.bottom=So.top+Hd,So.left+=-Wd*cc,So.right=So.left+cc}(La,S,D,X,Gi,we,We,ut,vr,St,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Uw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},oO={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},sO={40:!0};function CC(I,S,D,X,ie,ve){if(S.imageName){let we=X[S.imageName];return we?we.displaySize[0]*S.scale*jf/ve+ie:0}{let we=D[S.fontStack],We=we&&we[I];return We?We.metrics.advance*S.scale+ie:0}}function LC(I,S,D,X){let ie=Math.pow(I-S,2);return X?I=0,St=0;for(let vr=0;vrSt){let $t=Math.ceil(ve/St);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function IC(I,S,D,X,ie,ve){let we=I.image,We;if(we.content){let Gi=we.content,cn=we.pixelRatio||1;We=[Gi[0]/cn,Gi[1]/cn,we.displaySize[0]-Gi[2]/cn,we.displaySize[1]-Gi[3]/cn]}let ut=S.left*ve,St=S.right*ve,$t,vr,Sr,Dr;D==="width"||D==="both"?(Dr=ie[0]+ut-X[3],vr=ie[0]+St+X[1]):(Dr=ie[0]+(ut+St-we.displaySize[0])/2,vr=Dr+we.displaySize[0]);let Jr=S.top*ve,ui=S.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+ui+X[2]):($t=ie[1]+(Jr+ui-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Dr,collisionPadding:We}}let tb=255,p0=128,cy=tb*p0;function RC(I,S){let{expression:D}=S;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,ve=0;for(;vewe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.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=RC(this.zoom,D["text-size"]),this.iconSizeData=RC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=cM(X,"text-overlap","text-allow-overlap")!=="never"||cM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=S.sourceID}createArrays(){this.text=new pM(new Vu(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new pM(new Vu(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new Ol}calculateGlyphDependencies(S,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!St&&!$t)return;let Sr=D.iconDependencies,Dr=D.glyphDependencies,Jr=D.availableImages,ui=new cs(this.zoom);for(let{feature:Gi,id:cn,index:Za,sourceLayerIndex:Rn}of S){let La=ie._featureFilter.needGeometry,So=hf(Gi,La);if(!ie._featureFilter.filter(ui,So,X))continue;let kl,mu;if(La||(So.geometry=lf(Gi)),St){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Nr.factory(su),Eu=this.hasRTLText=this.hasRTLText||dM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=sy(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof gi?su:gi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Gi.properties,type:uO[Gi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[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)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Gi){let cn={},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=cn[yl];return delete cn[yl],cn[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,cn)=>Gi.sortKey-cn.sortKey)}update(S,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(S,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(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,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(S,D){let X=this.lineVertexArray.length;if(S.segment!==void 0){let ie=S.dist(D[S.segment+1]),ve=S.dist(D[S.segment]),we={};for(let We=S.segment+1;We=0;We--)we[We]={x:D[We].x,y:D[We].y,tileUnitDistanceFromAnchor:ve},We>0&&(ve+=D[We-1].dist(D[We]));for(let We=0;We0}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(S,D){let X=S.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[We]-ie[ut]||ve[ut]-ve[We]),we}addToSortKeyRanges(S,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,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,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&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,rb;Mi("SymbolBucket",I1,{omit:["layers","collisionBoxArray","features","compareText"]}),I1.MAX_GLYPHS=65535,I1.addDynamicAttributes=hM;var Ww={get paint(){return rb=rb||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(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 Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:tt,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(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 le({"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 Os(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 Os(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 Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(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 Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(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 Os(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 Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(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 ib{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:vt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(S.formattedSection))return D.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Mi("FormatSectionOverride",ib,{omit:["defaultValue"]});class mg extends q{constructor(S){super(S,Ww)}recalculate(S,D){if(super.recalculate(S,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 ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,D,X,ie){let ve=this.layout.get(S).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[S];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(We,ut){return ut.replace(/{([^{}]+)}/g,(St,$t)=>We&&$t in We?String(We[$t]):"")}(D.properties,ve)}createBucket(S){return new I1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Ww.paint.overridableProperties){if(!mg.hasPaintOverride(this.layout,S))continue;let D=this.paint.get(S),X=new ib(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[S]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(S,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&mg.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,D){let X=S.get("text-field"),ie=Ww.paint.properties[D],ve=!1,we=We=>{for(let ut of We)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Nr)we(X.value.value.sections);else if(X.value.kind==="source"){let We=St=>{ve||(St instanceof Yr&&ti(St.value)===_r?we(St.value.sections):St instanceof wa?we(St.sections):St.eachChild(We))},ut=X.value;ut._styleExpression&&We(ut._styleExpression.expression)}return ve}}let DC;var nb={get paint(){return DC=DC||new le({"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 cO extends q{constructor(S){super(S,nb)}}let vM;var FC={get paint(){return vM=vM||new le({"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 ab extends q{constructor(S){super(S,FC)}}class mM extends q{constructor(S){super(S,{}),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=S}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 yM{constructor(S){this._methodToThrottle=S,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 gM=63710088e-1;class vm{constructor(S,D){if(isNaN(S)||isNaN(D))throw new Error(`Invalid LngLat object: (${S}, ${D})`);if(this.lng=+S,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(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let D=Math.PI/180,X=this.lat*D,ie=S.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((S.lng-this.lng)*D);return gM*Math.acos(Math.min(ve,1))}static convert(S){if(S instanceof vm)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new vm(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new vm(Number("lng"in S?S.lng:S.lon),Number(S.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 R1=2*Math.PI*gM;function BC(I){return R1*Math.cos(I*Math.PI/180)}function jw(I){return(180+I)/360}function OC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Xw(I,S){return I/BC(S)}function ob(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class sb{constructor(S,D,X=0){this.x=+S,this.y=+D,this.z=+X}static fromLngLat(S,D=0){let X=vm.convert(S);return new sb(jw(X.lng),OC(X.lat),Xw(D,X.lat))}toLngLat(){return new vm(360*this.x-180,ob(this.y))}toAltitude(){return this.z*BC(ob(this.y))}meterInMercatorCoordinateUnits(){return 1/R1*(S=ob(this.y),1/Math.cos(S*Math.PI/180));var S}}function gv(I,S,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,S*X-2*Math.PI*6378137/2]}class _M{constructor(S,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(S,D,X))throw new Error(`x=${D}, y=${X}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=D,this.y=X,this.key=lb(0,S,S,D,X)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,D,X){let ie=(we=this.y,We=this.z,ut=gv(256*(ve=this.x),256*(we=Math.pow(2,We)-we-1),We),St=gv(256*(ve+1),256*(we+1),We),ut[0]+","+ut[1]+","+St[0]+","+St[1]);var ve,we,We,ut,St;let $t=function(vr,Sr,Dr){let Jr,ui="";for(let Gi=vr;Gi>0;Gi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(S){let D=this.z-S.z;return D>0&&S.x===this.x>>D&&S.y===this.y>>D}getTilePoint(S){let D=Math.pow(2,this.z);return new l((S.x*D-this.x)*Wl,(S.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class qC{constructor(S,D){this.wrap=S,this.canonical=D,this.key=lb(S,D.z,D.z,D.x,D.y)}}class $p{constructor(S,D,X,ie,ve){if(S= z; overscaledZ = ${S}; z = ${X}`);this.overscaledZ=S,this.wrap=D,this.canonical=new _M(X,+ie,+ve),this.key=lb(D,S,X,ie,ve)}clone(){return new $p(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-S;return S>this.canonical.z?new $p(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $p(S,this.wrap,S,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(S,D){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-S;return S>this.canonical.z?lb(this.wrap*+D,S,this.canonical.z,this.canonical.x,this.canonical.y):lb(this.wrap*+D,S,S,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let D=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>D&&S.canonical.y===this.canonical.y>>D}children(S){if(this.overscaledZ>=S)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(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=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+(S+1)}unpack(S,D,X){return S*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(S,D,X){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,We=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=We-1;break;case 1:We=we+1}let ut=-D*this.dim,St=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class xM{constructor(S,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=S,S._z=D,S._x=X,S._y=ie,this.properties=S.properties,this.id=ve}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(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(S[D]=this[D]);return S}}class yg{constructor(S,D){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new di(Wl,16,0),this.grid3D=new di(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(S,D,X,ie,ve,we){let We=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let St=0;St=0&&vr[3]>=0&&ut.insert(We,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Ur.VectorTile(new lM(this.rawTileData)).layers,this.sourceLayerCoder=new UC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,D,X,ie){this.loadVTLayers();let ve=S.params||{},we=Wl/S.tileSize/S.scale,We=Jn(ve.filter),ut=S.queryGeometry,St=S.queryPadding*we,$t=GC(ut),vr=this.grid.query($t.minX-St,$t.minY-St,$t.maxX+St,$t.maxY+St),Sr=GC(S.cameraQueryGeometry),Dr=this.grid3D.query(Sr.minX-St,Sr.minY-St,Sr.maxX+St,Sr.maxY+St,(Gi,cn,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(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=lf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,S.transform,we,S.pixelPosMatrix)))}return Jr}loadMatchingFeature(S,D,X,ie,ve,we,We,ut,St,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Gi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Dr=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Dr].feature(ie);if(ve.needGeometry){let Gi=hf(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Gi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let ui=this.getId(Jr,Dr);for(let Gi=0;Gi{let We=S instanceof Ll?S.get(we):null;return We&&We.evaluate?We.evaluate(D,X,ie):We})}function GC(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:S,minY:D,maxX:X,maxY:ie}}function hO(I,S){return S-I}function HC(I,S,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Mi("FeatureIndex",yg,{omit:["rawTileData","sourceLayerCoder"]});class mm extends l{constructor(S,D,X,ie){super(S,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new mm(this.x,this.y,this.angle,this.segment)}}function bM(I,S,D,X,ie){if(S.segment===void 0||D===0)return!0;let ve=S,we=S.segment+1,We=0;for(;We>-D/2;){if(we--,we<0)return!1;We-=I[we].dist(ve),ve=I[we]}We+=I[we].dist(I[we+1]),we++;let ut=[],St=0;for(;WeX;)St-=ut.shift().angleDelta;if(St>ie)return!1;we++,We+=$t.dist(vr)}return!0}function WC(I){let S=0;for(let D=0;DSt){let Jr=(St-ut)/Dr,ui=ka.number(vr.x,Sr.x,Jr),Gi=ka.number(vr.y,Sr.y,Jr),cn=new mm(ui,Gi,Sr.angleTo(vr),$t);return cn._round(),!we||bM(I,cn,We,we,S)?cn:void 0}ut+=Dr}}function pO(I,S,D,X,ie,ve,we,We,ut){let St=jC(X,ve,we),$t=XC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return S-vr=0&&La=0&&So=0&&Sr+St<=$t){let kl=new mm(La,So,Za,Jr);kl._round(),X&&!bM(I,kl,ve,X,ie)||Dr.push(kl)}}vr+=cn}return We||Dr.length||we||(Dr=ZC(I,vr/2,D,X,ie,ve,we,!0,ut)),Dr}Mi("Anchor",mm);let D1=kd;function YC(I,S,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,We=ve.paddedRect.w-2*D1,ut=ve.paddedRect.h-2*D1,St={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,We]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Dr=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),ui=We-Dr,Gi=ut-Jr,cn=0,Za=Dr,Rn=0,La=Jr,So=0,kl=ui,mu=0,Iu=Gi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(St=zC(I)),cn=ym($t,0,Xs[0]),Rn=ym(vr,0,Xs[1]),Za=ym($t,Xs[0],Xs[2]),La=ym(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=St.x1,yl=St.y1,Eu=St.x2-su,bu=St.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Zw(Xs.stretch-cn,Za,Eu,su),cc=F1(Xs.fixed-So,kl,Xs.stretch,Dr),Rh=Zw(Lu.stretch-Rn,La,bu,yl),Qp=F1(Lu.fixed-mu,Iu,Lu.stretch,Jr),fd=Zw(xu.stretch-cn,Za,Eu,su),Dh=F1(xu.fixed-So,kl,xu.stretch,Dr),Hd=Zw(qu.stretch-Rn,La,bu,yl),Wd=F1(qu.fixed-mu,Iu,qu.stretch,Jr),jd=new l(vc,Rh),$c=new l(fd,Rh),Fh=new l(fd,Hd),Cd=new l(vc,Hd),cd=new l(cc/we,Qp/we),$h=new l(Dh/we,Wd/we),ih=S*Math.PI/180;if(ih){let Xf=Math.sin(ih),Ac=Math.cos(ih),mc=[Ac,-Xf,Xf,Ac];jd._matMult(mc),$c._matMult(mc),Cd._matMult(mc),Fh._matMult(mc)}let Dp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:jd,tr:$c,bl:Cd,br:Fh,tex:{x:ve.paddedRect.x+D1+Dp,y:ve.paddedRect.y+D1+fp,w:xu.stretch+xu.fixed-Dp,h:qu.stretch+qu.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:$h,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=KC($t,ui,Dr),Lu=KC(vr,Gi,Jr);for(let xu=0;xu0&&(ui=Math.max(10,ui),this.circleDiameter=ui)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?zC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*We-ut[0],Sr.y2=Sr.y2*We+ut[2],Sr.x1=Sr.x1*We-ut[3],Sr.x2=Sr.x2*We+ut[1];let Dr=we.collisionPadding;if(Dr&&(Sr.x1-=Dr[0]*We,Sr.y1-=Dr[1]*We,Sr.x2+=Dr[2]*We,Sr.y2+=Dr[3]*We),$t){let Jr=new l(Sr.x1,Sr.y1),ui=new l(Sr.x2,Sr.y1),Gi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),ui._rotate(Za),Gi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,ui.x,Gi.x,cn.x),Sr.x2=Math.max(Jr.x,ui.x,Gi.x,cn.x),Sr.y1=Math.min(Jr.y,ui.y,Gi.y,cn.y),Sr.y2=Math.max(Jr.y,ui.y,Gi.y,cn.y)}S.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=S.length}}class Vv{constructor(S=[],D=(X,ie)=>Xie?1:0){if(this.data=S,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(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:D,compare:X}=this,ie=D[S];for(;S>0;){let ve=S-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[S]=we,S=ve}D[S]=ie}_down(S){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[S];for(;S=0)break;D[S]=D[we],S=we}D[S]=ve}}function vO(I,S=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,We=I[0];for(let Dr=0;Drve)&&(ve=Jr.x),(!Dr||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),St=ut/2,$t=new Vv([],mO);if(ut===0)return new l(X,ie);for(let Dr=X;Drvr.d||!vr.d)&&(vr=Dr,D&&console.log("found best %d after %d probes",Math.round(1e4*Dr.d)/1e4,Sr)),Dr.max-vr.d<=S||(St=Dr.h/2,$t.push(new B1(Dr.p.x-St,Dr.p.y-St,St,I)),$t.push(new B1(Dr.p.x+St,Dr.p.y-St,St,I)),$t.push(new B1(Dr.p.x-St,Dr.p.y+St,St,I)),$t.push(new B1(Dr.p.x+St,Dr.p.y+St,St,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function mO(I,S){return S.max-I.max}function B1(I,S,D,X){this.p=new l(I,S),this.h=D,this.d=function(ie,ve){let we=!1,We=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Dr.x)*(ie.y-Dr.y)/(Jr.y-Dr.y)+Dr.x&&(we=!we),We=Math.min(We,vi(ie,Dr,Jr))}}return(we?1:-1)*Math.sqrt(We)}(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,gg=Number.POSITIVE_INFINITY;function wM(I,S){return S[1]!==gg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-py;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+py}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,S[0],S[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-py;break;case"bottom-right":case"bottom-left":ve=-we+py;break;case"bottom":ve=-X+py;break;case"top":ve=X-py}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,S[0])}function JC(I,S,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(S,{},D);if(ve){let We=ve.values,ut=[];for(let St=0;StSr*jf);$t.startsWith("top")?vr[1]-=py:$t.startsWith("bottom")&&(vr[1]+=py),ut[St+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let We;We=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(S,{},D)*jf,gg]:ie.get("text-offset").evaluate(S,{},D).map(St=>St*jf);let ut=[];for(let St of we)ut.push(St,wM(St,We));return new jr(ut)}return null}function AM(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 yO(I,S,D,X,ie,ve,we,We,ut,St,$t){let vr=ve.textMaxSize.evaluate(S,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Dr=Sr.get("icon-offset").evaluate(S,{},$t),Jr=QC(D.horizontal),ui=we/24,Gi=I.tilePixelRatio*ui,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*We,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.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]}(Sr,S,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=IC(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Dr,ui)),Jr&&(X=IC(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Dr,ui)));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,Hd,Wd,jd,$c,Fh,Cd,cd,$h,ih,Dp,fp,Xf,Ac,mc,Fp,Hc,O1){let v0=xu.addToLineVertexArray(qu,vc),Gv,ev,Rc,ch,tv=0,gm=0,cp=0,q1=0,kM=-1,$w=-1,m0={},_g=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Dh.layout.get("text-rotate").evaluate(Ac,{},Hc)+90;Rc=new dy(Hd,qu,Wd,jd,$c,cc.vertical,Fh,Cd,cd,Ld),fd&&(ch=new dy(Hd,qu,Wd,jd,$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=YC(Rh,Ld,Fp,rv),Xd=fd?YC(fd,Ld,Fp,rv):void 0;ev=new dy(Hd,qu,Wd,jd,$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&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(xv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Hc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Hc)],(xv[0]>cy||xv[1]>cy)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,vy,xv,Xf,fp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),kM=xu.icon.placedSymbolArray.length-1,Xd&&(gm=4*Xd.length,xu.addSymbols(xu.icon,Xd,xv,Xf,fp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),$w=xu.icon.placedSymbolArray.length-1)}let Qh=Object.keys(cc.horizontal);for(let Ld of Qh){let rv=cc.horizontal[Ld];if(!Gv){_g=fn(rv.text);let Xd=Dh.layout.get("text-rotate").evaluate(Ac,{},Hc);Gv=new dy(Hd,qu,Wd,jd,$c,rv,Fh,Cd,cd,Xd)}let vy=rv.positionedLines.length===1;if(cp+=$C(xu,qu,rv,Qp,Dh,cd,Ac,$h,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,vy?Qh:[Ld],m0,kM,mc,Hc),vy)break}cc.vertical&&(q1+=$C(xu,qu,cc.vertical,Qp,Dh,cd,Ac,$h,v0,i.ah.vertical,["vertical"],m0,$w,mc,Hc));let xO=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Qw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,iL=ev?ev.boxStartIndex:xu.collisionBoxArray.length,bO=ev?ev.boxEndIndex:xu.collisionBoxArray.length,nL=ch?ch.boxStartIndex:xu.collisionBoxArray.length,wO=ch?ch.boxEndIndex:xu.collisionBoxArray.length,_v=-1,cb=(Ld,rv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,rv):rv;_v=cb(Gv,_v),_v=cb(Rc,_v),_v=cb(ev,_v),_v=cb(ch,_v);let e3=_v>-1?1:0;e3&&(_v*=O1/jf),xu.glyphOffsetArray.length>=I1.MAX_GLYPHS&&A("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 CM=JC(Dh,Ac,Hc),[AO,TO]=function(Ld,rv){let vy=Ld.length,Xd=rv==null?void 0:rv.values;if((Xd==null?void 0:Xd.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,kM,$w,_g,xO,Qw,y0,hp,iL,bO,nL,wO,Wd,cp,q1,tv,gm,e3,0,Fh,_v,AO,TO)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,S.index,S.sourceLayerIndex,I.index,Gi,[La,La,La,La],mu,ut,Za,So,Iu,Dr,S,ve,St,$t,we)};if(su==="line")for(let Xs of HC(S.geometry,0,0,Wl,Wl)){let Lu=pO(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&gO(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of S.geometry)if(Xs.length>1){let Lu=dO(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(S.type==="Polygon")for(let Xs of Ys(S.geometry,0)){let Lu=vO(Xs,16);_u(Xs[0],new mm(Lu.x,Lu.y,0))}else if(S.type==="LineString")for(let Xs of S.geometry)_u(Xs,new mm(Xs[0].x,Xs[0].y,0));else if(S.type==="Point")for(let Xs of S.geometry)for(let Lu of Xs)_u([Lu],new mm(Lu.x,Lu.y,0))}function $C(I,S,D,X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr){let ui=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=kC+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 Hd=_u.metrics.isDoubleResolution?2:1,Wd=(_u.metrics.left-Lu)*_u.scale-Rh+fd[0],jd=(-_u.metrics.top-Lu)*_u.scale+fd[1],$c=Wd+Xs.w/Hd*_u.scale/qu,Fh=jd+Xs.h/Hd*_u.scale/qu,Cd=new l(Wd,jd),cd=new l($c,jd),$h=new l(Wd,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)),Hc=new l(...Dh);Cd._rotateAround(Ac,Xf)._add(Fp)._add(Hc),cd._rotateAround(Ac,Xf)._add(Fp)._add(Hc),$h._rotateAround(Ac,Xf)._add(Fp)._add(Hc),ih._rotateAround(Ac,Xf)._add(Fp)._add(Hc)}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),fp=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:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,We,ie,ve,we,X,I.allowVerticalPlacement),Gi=I.textSizeData,cn=null;Gi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>cy&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)):Gi.kind==="composite"&&(cn=[p0*Dr.compositeTextSizes[0].evaluate(we,{},Jr),p0*Dr.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>cy||cn[1]>cy)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)),I.addSymbols(I.text,ui,cn,We,ve,we,St,S,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*ui.length}function QC(I){for(let S in I)return I[S];return null}function gO(I,S,D,X){let ie=I.compareText;if(S in ie){let ve=ie[S];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=eL[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(S,2,1),[We]=new Uint32Array(S,4,1);return new TM(We,we,ve,S)}constructor(S,D=64,X=Float64Array,ie){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let ve=eL.indexOf(this.ArrayType),we=2*S*this.ArrayType.BYTES_PER_ELEMENT,We=S*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-We%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+we+We+ut),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+We+ut,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=S)}add(S,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=S,this.coords[this._pos++]=D,X}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Yw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:We}=this,ut=[0,ve.length-1,0],St=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=We){for(let Gi=Sr;Gi<=vr;Gi++){let cn=we[2*Gi],Za=we[2*Gi+1];cn>=S&&cn<=X&&Za>=D&&Za<=ie&&St.push(ve[Gi])}continue}let Dr=Sr+vr>>1,Jr=we[2*Dr],ui=we[2*Dr+1];Jr>=S&&Jr<=X&&ui>=D&&ui<=ie&&St.push(ve[Dr]),($t===0?S<=Jr:D<=ui)&&(ut.push(Sr),ut.push(Dr-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=ui)&&(ut.push(Dr+1),ut.push(vr),ut.push(1-$t))}return St}within(S,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,We=[0,ie.length-1,0],ut=[],St=X*X;for(;We.length;){let $t=We.pop()||0,vr=We.pop()||0,Sr=We.pop()||0;if(vr-Sr<=we){for(let Gi=Sr;Gi<=vr;Gi++)rL(ve[2*Gi],ve[2*Gi+1],S,D)<=St&&ut.push(ie[Gi]);continue}let Dr=Sr+vr>>1,Jr=ve[2*Dr],ui=ve[2*Dr+1];rL(Jr,ui,S,D)<=St&&ut.push(ie[Dr]),($t===0?S-X<=Jr:D-X<=ui)&&(We.push(Sr),We.push(Dr-1),We.push(1-$t)),($t===0?S+X>=Jr:D+X>=ui)&&(We.push(Dr+1),We.push(vr),We.push(1-$t))}return ut}}function Yw(I,S,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;tL(I,S,we,X,ie,ve),Yw(I,S,D,X,we-1,1-ve),Yw(I,S,D,we+1,ie,1-ve)}function tL(I,S,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let St=ie-X+1,$t=D-X+1,vr=Math.log(St),Sr=.5*Math.exp(2*vr/3),Dr=.5*Math.sqrt(vr*Sr*(St-Sr)/St)*($t-St/2<0?-1:1);tL(I,S,D,Math.max(X,Math.floor(D-$t*Sr/St+Dr)),Math.min(ie,Math.floor(D+(St-$t)*Sr/St+Dr)),ve)}let we=S[2*D+ve],We=X,ut=ie;for(ub(I,S,X,D),S[2*ie+ve]>we&&ub(I,S,X,ie);Wewe;)ut--}S[2*X+ve]===we?ub(I,S,X,ut):(ut++,ub(I,S,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function ub(I,S,D,X){SM(I,D,X),SM(S,2*D,2*X),SM(S,2*D+1,2*X+1)}function SM(I,S,D){let X=I[S];I[S]=I[D],I[D]=X}function rL(I,S,D,X){let ie=I-D,ve=S-X;return ie*ie+ve*ve}var Kw;i.bg=void 0,(Kw=i.bg||(i.bg={})).create="create",Kw.load="load",Kw.fullLoad="fullLoad";let fb=null,mh=[],MM=1e3/60,EM="loadTime",Jw="fullLoadTime",_O={mark(I){performance.mark(I)},frame(I){let S=I;fb!=null&&mh.push(S-fb),fb=S},clearMetrics(){fb=null,mh=[],performance.clearMeasures(EM),performance.clearMeasures(Jw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(EM,i.bg.create,i.bg.load),performance.measure(Jw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(EM)[0].duration,S=performance.getEntriesByName(Jw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>MM).reduce((ve,we)=>ve+(we-MM)/MM,0);return{loadTime:I,fullLoadTime:S,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=Ci,i.C=function(I){if(U==null){let S=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=ms,i.E=Ne,i.F=class{constructor(I,S){this.target=I,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new yM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=B(self)?I:window}registerMessageHandler(I,S){this.messageHandlers[I]=S}sendAsync(I,S){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let We={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(We)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let S=I.data,D=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(B(self)||S.mustQueue)return this.tasks[D]=S,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,S)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),S=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(I,S)}processTask(I,S){return a(this,void 0,void 0,function*(){if(S.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(S.error?ie.reject(pa(S.error)):ie.resolve(pa(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(S.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[S.type](S.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,S,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?ia(S):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Le,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=qw,i.J=function(I,S,D){var X,ie,ve,we,We,ut,St,$t,vr,Sr,Dr,Jr,ui=D[0],Gi=D[1],cn=D[2];return S===I?(I[12]=S[0]*ui+S[4]*Gi+S[8]*cn+S[12],I[13]=S[1]*ui+S[5]*Gi+S[9]*cn+S[13],I[14]=S[2]*ui+S[6]*Gi+S[10]*cn+S[14],I[15]=S[3]*ui+S[7]*Gi+S[11]*cn+S[15]):(ie=S[1],ve=S[2],we=S[3],We=S[4],ut=S[5],St=S[6],$t=S[7],vr=S[8],Sr=S[9],Dr=S[10],Jr=S[11],I[0]=X=S[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=We,I[5]=ut,I[6]=St,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Dr,I[11]=Jr,I[12]=X*ui+We*Gi+vr*cn+S[12],I[13]=ie*ui+ut*Gi+Sr*cn+S[13],I[14]=ve*ui+St*Gi+Dr*cn+S[14],I[15]=we*ui+$t*Gi+Jr*cn+S[15]),I},i.K=function(I,S,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=S[0]*X,I[1]=S[1]*X,I[2]=S[2]*X,I[3]=S[3]*X,I[4]=S[4]*ie,I[5]=S[5]*ie,I[6]=S[6]*ie,I[7]=S[7]*ie,I[8]=S[8]*ve,I[9]=S[9]*ve,I[10]=S[10]*ve,I[11]=S[11]*ve,I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15],I},i.L=Zi,i.M=function(I,S){let D={};for(let X=0;X{let S=window.document.createElement("video");return S.muted=!0,new Promise(D=>{S.onloadstart=()=>{D(S)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(S.crossOrigin="Anonymous"),ie.src=X,S.appendChild(ie)}})},i.a4=function(){return x++},i.a5=Ua,i.a6=I1,i.a7=Jn,i.a8=hf,i.a9=xM,i.aA=function(I){if(I.type==="custom")return new mM(I);switch(I.type){case"background":return new cO(I);case"circle":return new Ji(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new vf(I);case"line":return new hg(I);case"raster":return new ab(I);case"symbol":return new mg(I)}},i.aB=m,i.aC=function(I,S){if(!I)return[{command:"setStyle",args:[S]}];let D=[];try{if(!gt(I.version,S.version))return[{command:"setStyle",args:[S]}];gt(I.center,S.center)||D.push({command:"setCenter",args:[S.center]}),gt(I.zoom,S.zoom)||D.push({command:"setZoom",args:[S.zoom]}),gt(I.bearing,S.bearing)||D.push({command:"setBearing",args:[S.bearing]}),gt(I.pitch,S.pitch)||D.push({command:"setPitch",args:[S.pitch]}),gt(I.sprite,S.sprite)||D.push({command:"setSprite",args:[S.sprite]}),gt(I.glyphs,S.glyphs)||D.push({command:"setGlyphs",args:[S.glyphs]}),gt(I.transition,S.transition)||D.push({command:"setTransition",args:[S.transition]}),gt(I.light,S.light)||D.push({command:"setLight",args:[S.light]}),gt(I.terrain,S.terrain)||D.push({command:"setTerrain",args:[S.terrain]}),gt(I.sky,S.sky)||D.push({command:"setSky",args:[S.sky]}),gt(I.projection,S.projection)||D.push({command:"setProjection",args:[S.projection]});let X={},ie=[];(function(we,We,ut,St){let $t;for($t in We=We||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(We,$t)||Ke($t,ut,St));for($t in We)Object.prototype.hasOwnProperty.call(We,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?gt(we[$t],We[$t])||(we[$t].type==="geojson"&&We[$t].type==="geojson"&&wt(we,We,$t)?qt(ut,{command:"setGeoJSONSourceData",args:[$t,We[$t].data]}):Ct($t,We,ut,St)):at($t,We,ut))})(I.sources,S.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,We,ut){We=We||[];let St=(we=we||[]).map(Bt),$t=We.map(Bt),vr=we.reduce(Zt,{}),Sr=We.reduce(Zt,{}),Dr=St.slice(),Jr=Object.create(null),ui,Gi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return S[X]=!we||we.toLowerCase(),""}),S["max-age"]){let D=parseInt(S["max-age"],10);isNaN(D)?delete S["max-age"]:S["max-age"]=D}return S},i.ab=function(I,S){let D=[];for(let X in I)X in S||D.push(X);return D},i.ac=E,i.ad=function(I,S,D){var X=Math.sin(D),ie=Math.cos(D),ve=S[0],we=S[1],We=S[2],ut=S[3],St=S[4],$t=S[5],vr=S[6],Sr=S[7];return S!==I&&(I[8]=S[8],I[9]=S[9],I[10]=S[10],I[11]=S[11],I[12]=S[12],I[13]=S[13],I[14]=S[14],I[15]=S[15]),I[0]=ve*ie+St*X,I[1]=we*ie+$t*X,I[2]=We*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=St*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-We*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var S=new dn(16);return S[0]=I[0],S[1]=I[1],S[2]=I[2],S[3]=I[3],S[4]=I[4],S[5]=I[5],S[6]=I[6],S[7]=I[7],S[8]=I[8],S[9]=I[9],S[10]=I[10],S[11]=I[11],S[12]=I[12],S[13]=I[13],S[14]=I[14],S[15]=I[15],S},i.af=hs,i.ag=function(I,S){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,We=ie?E(so.interpolationFactor(ie,S,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,We):D=We}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:S,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):S},i.aj=hM,i.ak=function(I,S,D,X){let ie=S.y-I.y,ve=S.x-I.x,we=X.y-D.y,We=X.x-D.x,ut=we*ve-We*ie;if(ut===0)return null;let St=(We*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+St*ve,I.y+St*ie)},i.al=HC,i.am=fc,i.an=En,i.ao=function(I){let S=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)S=Math.min(S,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[S,D,X,ie]},i.ap=jf,i.ar=cM,i.as=function(I,S){var D=S[0],X=S[1],ie=S[2],ve=S[3],we=S[4],We=S[5],ut=S[6],St=S[7],$t=S[8],vr=S[9],Sr=S[10],Dr=S[11],Jr=S[12],ui=S[13],Gi=S[14],cn=S[15],Za=D*We-X*we,Rn=D*ut-ie*we,La=D*St-ve*we,So=X*ut-ie*We,kl=X*St-ve*We,mu=ie*St-ve*ut,Iu=$t*ui-vr*Jr,su=$t*Gi-Sr*Jr,yl=$t*cn-Dr*Jr,Eu=vr*Gi-Sr*ui,bu=vr*cn-Dr*ui,_u=Sr*cn-Dr*Gi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(We*_u-ut*bu+St*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(ui*mu-Gi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Dr*So)*Xs,I[4]=(ut*yl-we*_u-St*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Gi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Dr*Rn)*Xs,I[8]=(we*bu-We*yl+St*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-ui*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Dr*Za)*Xs,I[12]=(We*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(ui*Rn-Jr*So-Gi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=AM,i.au=Gw,i.av=TM,i.aw=function(){let I={},S=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?S:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let S=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,S){return I[0]=S[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=S[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=S[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Ft{},i.be=gM,i.bf=_O,i.bh=de,i.bi=function(I,S){ge.REGISTERED_PROTOCOLS[I]=S},i.bj=function(I){delete ge.REGISTERED_PROTOCOLS[I]},i.bk=function(I,S){let D={};for(let ie=0;ie_u*jf)}let su=we?"center":D.get("text-justify").evaluate(St,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(St,{},I.canonical)*jf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Qx(ui,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&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 S=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(S)}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((S,D)=>{let X=new Image;X.onload=()=>{S(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=ze,i.h=(I,S)=>ke(L(I,{type:"json"}),S),i.i=B,i.j=xe,i.k=De,i.l=(I,S)=>ke(L(I,{type:"arrayBuffer"}),S),i.m=ke,i.n=function(I){return new lM(I).readFields(KQ,[])},i.o=ul,i.p=fM,i.q=le,i.r=Si,i.s=Ee,i.t=Pi,i.u=_i,i.v=ce,i.w=A,i.x=function([I,S,D]){return S+=90,S*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(S)*Math.sin(D),y:I*Math.sin(S)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(be){this.keyCache={},be&&this.replace(be)}replace(be){this._layerConfigs={},this._layers={},this.update(be,[])}update(be,Oe){for(let Fe of be){this._layerConfigs[Fe.id]=Fe;let ft=this._layers[Fe.id]=i.aA(Fe);ft._featureFilter=i.a7(ft.filter),this.keyCache[Fe.id]&&delete this.keyCache[Fe.id]}for(let Fe of Oe)delete this.keyCache[Fe],delete this._layerConfigs[Fe],delete this._layers[Fe];this.familiesBySource={};let Ie=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let Fe of Ie){let ft=Fe.map(zt=>this._layers[zt.id]),ye=ft[0];if(ye.visibility==="none")continue;let fe=ye.source||"",pe=this.familiesBySource[fe];pe||(pe=this.familiesBySource[fe]={});let dt=ye.sourceLayer||"_geojsonTileLayer",Pt=pe[dt];Pt||(Pt=pe[dt]=[]),Pt.push(ft)}}}class o{constructor(be){let Oe={},Ie=[];for(let fe in be){let pe=be[fe],dt=Oe[fe]={};for(let Pt in pe){let zt=pe[+Pt];if(!zt||zt.bitmap.width===0||zt.bitmap.height===0)continue;let rr={x:0,y:0,w:zt.bitmap.width+2,h:zt.bitmap.height+2};Ie.push(rr),dt[Pt]={rect:rr,metrics:zt.metrics}}}let{w:Fe,h:ft}=i.p(Ie),ye=new i.o({width:Fe||1,height:ft||1});for(let fe in be){let pe=be[fe];for(let dt in pe){let Pt=pe[+dt];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let zt=Oe[fe][dt].rect;i.o.copy(Pt.bitmap,ye,{x:0,y:0},{x:zt.x+1,y:zt.y+1},Pt.bitmap)}}this.image=ye,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(be){this.tileID=new i.S(be.tileID.overscaledZ,be.tileID.wrap,be.tileID.canonical.z,be.tileID.canonical.x,be.tileID.canonical.y),this.uid=be.uid,this.zoom=be.zoom,this.pixelRatio=be.pixelRatio,this.tileSize=be.tileSize,this.source=be.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=be.showCollisionBoxes,this.collectResourceTiming=!!be.collectResourceTiming,this.returnDependencies=!!be.returnDependencies,this.promoteId=be.promoteId,this.inFlightDependencies=[]}parse(be,Oe,Ie,Fe){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=be,this.collisionBoxArray=new i.a5;let ft=new i.bm(Object.keys(be.layers).sort()),ye=new i.bn(this.tileID,this.promoteId);ye.bucketLayerIDs=[];let fe={},pe={featureIndex:ye,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Ie},dt=Oe.familiesBySource[this.source];for(let Qi in dt){let si=be.layers[Qi];if(!si)continue;si.version===1&&i.w(`Vector tile source "${this.source}" layer "${Qi}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let Ti=ft.encode(Qi),Ni=[];for(let Rt=0;Rt=yt.maxzoom||yt.visibility!=="none"&&(u(Rt,this.zoom,Ie),(fe[yt.id]=yt.createBucket({index:ye.bucketLayerIDs.length,layers:Rt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ti,sourceID:this.source})).populate(Ni,pe,this.tileID.canonical),ye.bucketLayerIDs.push(Rt.map(Gt=>Gt.id)))}}let Pt=i.aF(pe.glyphDependencies,Qi=>Object.keys(Qi).map(Number));this.inFlightDependencies.forEach(Qi=>Qi==null?void 0:Qi.abort()),this.inFlightDependencies=[];let zt=Promise.resolve({});if(Object.keys(Pt).length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),zt=Fe.sendAsync({type:"GG",data:{stacks:Pt,source:this.source,tileID:this.tileID,type:"glyphs"}},Qi)}let rr=Object.keys(pe.iconDependencies),Gr=Promise.resolve({});if(rr.length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),Gr=Fe.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},Qi)}let Br=Object.keys(pe.patternDependencies),Er=Promise.resolve({});if(Br.length){let Qi=new AbortController;this.inFlightDependencies.push(Qi),Er=Fe.sendAsync({type:"GI",data:{icons:Br,source:this.source,tileID:this.tileID,type:"patterns"}},Qi)}let[Rr,pi,Di]=yield Promise.all([zt,Gr,Er]),ni=new o(Rr),$i=new i.bo(pi,Di);for(let Qi in fe){let si=fe[Qi];si instanceof i.a6?(u(si.layers,this.zoom,Ie),i.bp({bucket:si,glyphMap:Rr,glyphPositions:ni.positions,imageMap:pi,imagePositions:$i.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):si.hasPattern&&(si instanceof i.bq||si instanceof i.br||si instanceof i.bs)&&(u(si.layers,this.zoom,Ie),si.addFeatures(pe,this.tileID.canonical,$i.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(Qi=>!Qi.isEmpty()),featureIndex:ye,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:$i,glyphMap:this.returnDependencies?Rr:null,iconMap:this.returnDependencies?pi:null,glyphPositions:this.returnDependencies?ni.positions:null}})}}function u(Re,be,Oe){let Ie=new i.z(be);for(let Fe of Re)Fe.recalculate(Ie,Oe)}class l{constructor(be,Oe,Ie){this.actor=be,this.layerIndex=Oe,this.availableImages=Ie,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(be,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield i.l(be.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Ie.data)),rawData:Ie.data,cacheControl:Ie.cacheControl,expires:Ie.expires}}catch(Fe){let ft=new Uint8Array(Ie.data),ye=`Unable to parse the tile at ${be.request.url}, `;throw ye+=ft[0]===31&&ft[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Fe.message}`,new Error(ye)}})}loadTile(be){return i._(this,void 0,void 0,function*(){let Oe=be.uid,Ie=!!(be&&be.request&&be.request.collectResourceTiming)&&new i.bv(be.request),Fe=new s(be);this.loading[Oe]=Fe;let ft=new AbortController;Fe.abort=ft;try{let ye=yield this.loadVectorTile(be,ft);if(delete this.loading[Oe],!ye)return null;let fe=ye.rawData,pe={};ye.expires&&(pe.expires=ye.expires),ye.cacheControl&&(pe.cacheControl=ye.cacheControl);let dt={};if(Ie){let zt=Ie.finish();zt&&(dt.resourceTiming=JSON.parse(JSON.stringify(zt)))}Fe.vectorTile=ye.vectorTile;let Pt=Fe.parse(ye.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=Fe,this.fetching[Oe]={rawTileData:fe,cacheControl:pe,resourceTiming:dt};try{let zt=yield Pt;return i.e({rawTileData:fe.slice(0)},zt,pe,dt)}finally{delete this.fetching[Oe]}}catch(ye){throw delete this.loading[Oe],Fe.status="done",this.loaded[Oe]=Fe,ye}})}reloadTile(be){return i._(this,void 0,void 0,function*(){let Oe=be.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 Ie=this.loaded[Oe];if(Ie.showCollisionBoxes=be.showCollisionBoxes,Ie.status==="parsing"){let Fe=yield Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor),ft;if(this.fetching[Oe]){let{rawTileData:ye,cacheControl:fe,resourceTiming:pe}=this.fetching[Oe];delete this.fetching[Oe],ft=i.e({rawTileData:ye.slice(0)},Fe,fe,pe)}else ft=Fe;return ft}if(Ie.status==="done"&&Ie.vectorTile)return Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(be){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Ie=be.uid;Oe&&Oe[Ie]&&Oe[Ie].abort&&(Oe[Ie].abort.abort(),delete Oe[Ie])})}removeTile(be){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[be.uid]&&delete this.loaded[be.uid]})}}class f{constructor(){this.loaded={}}loadTile(be){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Ie,rawImageData:Fe,redFactor:ft,greenFactor:ye,blueFactor:fe,baseShift:pe}=be,dt=Fe.width+2,Pt=Fe.height+2,zt=i.b(Fe)?new i.R({width:dt,height:Pt},yield i.bw(Fe,-1,-1,dt,Pt)):Fe,rr=new i.bx(Oe,zt,Ie,ft,ye,fe,pe);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(be){let Oe=this.loaded,Ie=be.uid;Oe&&Oe[Ie]&&delete Oe[Ie]}}function c(Re,be){if(Re.length!==0){h(Re[0],be);for(var Oe=1;Oe=Math.abs(fe)?Oe-pe+fe:fe-pe+Oe,Oe=pe}Oe+Ie>=0!=!!be&&Re.reverse()}var d=i.by(function Re(be,Oe){var Ie,Fe=be&&be.type;if(Fe==="FeatureCollection")for(Ie=0;Ie>31}function B(Re,be){for(var Oe=Re.loadGeometry(),Ie=Re.type,Fe=0,ft=0,ye=Oe.length,fe=0;feRe},W=Math.fround||(N=new Float32Array(1),Re=>(N[0]=+Re,N[0]));var N;let H=3,re=5,ae=6;class ge{constructor(be){this.options=Object.assign(Object.create(j),be),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(be){let{log:Oe,minZoom:Ie,maxZoom:Fe}=this.options;Oe&&console.time("total time");let ft=`prepare ${be.length} points`;Oe&&console.time(ft),this.points=be;let ye=[];for(let pe=0;pe=Ie;pe--){let dt=+Date.now();fe=this.trees[pe]=this._createTree(this._cluster(fe,pe)),Oe&&console.log("z%d: %d clusters in %dms",pe,fe.numItems,+Date.now()-dt)}return Oe&&console.timeEnd("total time"),this}getClusters(be,Oe){let Ie=((be[0]+180)%360+360)%360-180,Fe=Math.max(-90,Math.min(90,be[1])),ft=be[2]===180?180:((be[2]+180)%360+360)%360-180,ye=Math.max(-90,Math.min(90,be[3]));if(be[2]-be[0]>=360)Ie=-180,ft=180;else if(Ie>ft){let zt=this.getClusters([Ie,Fe,180,ye],Oe),rr=this.getClusters([-180,Fe,ft,ye],Oe);return zt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],pe=fe.range(de(Ie),te(ye),de(ft),te(Fe)),dt=fe.data,Pt=[];for(let zt of pe){let rr=this.stride*zt;Pt.push(dt[rr+re]>1?ze(dt,rr,this.clusterProps):this.points[dt[rr+H]])}return Pt}getChildren(be){let Oe=this._getOriginId(be),Ie=this._getOriginZoom(be),Fe="No cluster with the specified id.",ft=this.trees[Ie];if(!ft)throw new Error(Fe);let ye=ft.data;if(Oe*this.stride>=ye.length)throw new Error(Fe);let fe=this.options.radius/(this.options.extent*Math.pow(2,Ie-1)),pe=ft.within(ye[Oe*this.stride],ye[Oe*this.stride+1],fe),dt=[];for(let Pt of pe){let zt=Pt*this.stride;ye[zt+4]===be&&dt.push(ye[zt+re]>1?ze(ye,zt,this.clusterProps):this.points[ye[zt+H]])}if(dt.length===0)throw new Error(Fe);return dt}getLeaves(be,Oe,Ie){let Fe=[];return this._appendLeaves(Fe,be,Oe=Oe||10,Ie=Ie||0,0),Fe}getTile(be,Oe,Ie){let Fe=this.trees[this._limitZoom(be)],ft=Math.pow(2,be),{extent:ye,radius:fe}=this.options,pe=fe/ye,dt=(Ie-pe)/ft,Pt=(Ie+1+pe)/ft,zt={features:[]};return this._addTileFeatures(Fe.range((Oe-pe)/ft,dt,(Oe+1+pe)/ft,Pt),Fe.data,Oe,Ie,ft,zt),Oe===0&&this._addTileFeatures(Fe.range(1-pe/ft,dt,1,Pt),Fe.data,ft,Ie,ft,zt),Oe===ft-1&&this._addTileFeatures(Fe.range(0,dt,pe/ft,Pt),Fe.data,-1,Ie,ft,zt),zt.features.length?zt:null}getClusterExpansionZoom(be){let Oe=this._getOriginZoom(be)-1;for(;Oe<=this.options.maxZoom;){let Ie=this.getChildren(be);if(Oe++,Ie.length!==1)break;be=Ie[0].properties.cluster_id}return Oe}_appendLeaves(be,Oe,Ie,Fe,ft){let ye=this.getChildren(Oe);for(let fe of ye){let pe=fe.properties;if(pe&&pe.cluster?ft+pe.point_count<=Fe?ft+=pe.point_count:ft=this._appendLeaves(be,pe.cluster_id,Ie,Fe,ft):ft1,Pt,zt,rr;if(dt)Pt=Le(Oe,pe,this.clusterProps),zt=Oe[pe],rr=Oe[pe+1];else{let Er=this.points[Oe[pe+H]];Pt=Er.properties;let[Rr,pi]=Er.geometry.coordinates;zt=de(Rr),rr=te(pi)}let Gr={type:1,geometry:[[Math.round(this.options.extent*(zt*ft-Ie)),Math.round(this.options.extent*(rr*ft-Fe))]],tags:Pt},Br;Br=dt||this.options.generateId?Oe[pe+H]:this.points[Oe[pe+H]].id,Br!==void 0&&(Gr.id=Br),ye.features.push(Gr)}}_limitZoom(be){return Math.max(this.options.minZoom,Math.min(Math.floor(+be),this.options.maxZoom+1))}_cluster(be,Oe){let{radius:Ie,extent:Fe,reduce:ft,minPoints:ye}=this.options,fe=Ie/(Fe*Math.pow(2,Oe)),pe=be.data,dt=[],Pt=this.stride;for(let zt=0;ztOe&&(Rr+=pe[Di+re])}if(Rr>Er&&Rr>=ye){let pi,Di=rr*Er,ni=Gr*Er,$i=-1,Qi=((zt/Pt|0)<<5)+(Oe+1)+this.points.length;for(let si of Br){let Ti=si*Pt;if(pe[Ti+2]<=Oe)continue;pe[Ti+2]=Oe;let Ni=pe[Ti+re];Di+=pe[Ti]*Ni,ni+=pe[Ti+1]*Ni,pe[Ti+4]=Qi,ft&&(pi||(pi=this._map(pe,zt,!0),$i=this.clusterProps.length,this.clusterProps.push(pi)),ft(pi,this._map(pe,Ti)))}pe[zt+4]=Qi,dt.push(Di/Rr,ni/Rr,1/0,Qi,-1,Rr),ft&&dt.push($i)}else{for(let pi=0;pi1)for(let pi of Br){let Di=pi*Pt;if(!(pe[Di+2]<=Oe)){pe[Di+2]=Oe;for(let ni=0;ni>5}_getOriginZoom(be){return(be-this.points.length)%32}_map(be,Oe,Ie){if(be[Oe+re]>1){let ye=this.clusterProps[be[Oe+ae]];return Ie?Object.assign({},ye):ye}let Fe=this.points[be[Oe+H]].properties,ft=this.options.map(Fe);return Ie&&ft===Fe?Object.assign({},ft):ft}}function ze(Re,be,Oe){return{type:"Feature",id:Re[be+H],properties:Le(Re,be,Oe),geometry:{type:"Point",coordinates:[(Ie=Re[be],360*(Ie-.5)),ke(Re[be+1])]}};var Ie}function Le(Re,be,Oe){let Ie=Re[be+re],Fe=Ie>=1e4?`${Math.round(Ie/1e3)}k`:Ie>=1e3?Math.round(Ie/100)/10+"k":Ie,ft=Re[be+ae],ye=ft===-1?{}:Object.assign({},Oe[ft]);return Object.assign(ye,{cluster:!0,cluster_id:Re[be+H],point_count:Ie,point_count_abbreviated:Fe})}function de(Re){return Re/360+.5}function te(Re){let be=Math.sin(Re*Math.PI/180),Oe=.5-.25*Math.log((1+be)/(1-be))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Re){let be=(180-360*Re)*Math.PI/180;return 360*Math.atan(Math.exp(be))/Math.PI-90}function Ee(Re,be,Oe,Ie){let Fe=Ie,ft=be+(Oe-be>>1),ye,fe=Oe-be,pe=Re[be],dt=Re[be+1],Pt=Re[Oe],zt=Re[Oe+1];for(let rr=be+3;rrFe)ye=rr,Fe=Gr;else if(Gr===Fe){let Br=Math.abs(rr-ft);BrIe&&(ye-be>3&&Ee(Re,be,ye,Ie),Re[ye+2]=Fe,Oe-ye>3&&Ee(Re,ye,Oe,Ie))}function Se(Re,be,Oe,Ie,Fe,ft){let ye=Fe-Oe,fe=ft-Ie;if(ye!==0||fe!==0){let pe=((Re-Oe)*ye+(be-Ie)*fe)/(ye*ye+fe*fe);pe>1?(Oe=Fe,Ie=ft):pe>0&&(Oe+=ye*pe,Ie+=fe*pe)}return ye=Re-Oe,fe=be-Ie,ye*ye+fe*fe}function Ge(Re,be,Oe,Ie){let Fe={id:Re==null?null:Re,type:be,geometry:Oe,tags:Ie,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(be==="Point"||be==="MultiPoint"||be==="LineString")De(Fe,Oe);else if(be==="Polygon")De(Fe,Oe[0]);else if(be==="MultiLineString")for(let ft of Oe)De(Fe,ft);else if(be==="MultiPolygon")for(let ft of Oe)De(Fe,ft[0]);return Fe}function De(Re,be){for(let Oe=0;Oe0&&(ye+=Ie?(Fe*Pt-dt*ft)/2:Math.sqrt(Math.pow(dt-Fe,2)+Math.pow(Pt-ft,2))),Fe=dt,ft=Pt}let fe=be.length-3;be[2]=1,Ee(be,0,fe,Oe),be[fe+2]=1,be.size=Math.abs(ye),be.start=0,be.end=be.size}function je(Re,be,Oe,Ie){for(let Fe=0;Fe1?1:Oe}function qt(Re,be,Oe,Ie,Fe,ft,ye,fe){if(Ie/=be,ft>=(Oe/=be)&&ye=Ie)return null;let pe=[];for(let dt of Re){let Pt=dt.geometry,zt=dt.type,rr=Fe===0?dt.minX:dt.minY,Gr=Fe===0?dt.maxX:dt.maxY;if(rr>=Oe&&Gr=Ie)continue;let Br=[];if(zt==="Point"||zt==="MultiPoint")at(Pt,Br,Oe,Ie,Fe);else if(zt==="LineString")Ke(Pt,Br,Oe,Ie,Fe,!1,fe.lineMetrics);else if(zt==="MultiLineString")wt(Pt,Br,Oe,Ie,Fe,!1);else if(zt==="Polygon")wt(Pt,Br,Oe,Ie,Fe,!0);else if(zt==="MultiPolygon")for(let Er of Pt){let Rr=[];wt(Er,Rr,Oe,Ie,Fe,!0),Rr.length&&Br.push(Rr)}if(Br.length){if(fe.lineMetrics&&zt==="LineString"){for(let Er of Br)pe.push(Ge(dt.id,zt,Er,dt.tags));continue}zt!=="LineString"&&zt!=="MultiLineString"||(Br.length===1?(zt="LineString",Br=Br[0]):zt="MultiLineString"),zt!=="Point"&&zt!=="MultiPoint"||(zt=Br.length===3?"Point":"MultiPoint"),pe.push(Ge(dt.id,zt,Br,dt.tags))}}return pe.length?pe:null}function at(Re,be,Oe,Ie,Fe){for(let ft=0;ft=Oe&&ye<=Ie&&Mt(be,Re[ft],Re[ft+1],Re[ft+2])}}function Ke(Re,be,Oe,Ie,Fe,ft,ye){let fe=Ct(Re),pe=Fe===0?Bt:Zt,dt,Pt,zt=Re.start;for(let Rr=0;RrOe&&(Pt=pe(fe,pi,Di,$i,Qi,Oe),ye&&(fe.start=zt+dt*Pt)):si>Ie?Ti=Oe&&(Pt=pe(fe,pi,Di,$i,Qi,Oe),Ni=!0),Ti>Ie&&si<=Ie&&(Pt=pe(fe,pi,Di,$i,Qi,Ie),Ni=!0),!ft&&Ni&&(ye&&(fe.end=zt+dt*Pt),be.push(fe),fe=Ct(Re)),ye&&(zt+=dt)}let rr=Re.length-3,Gr=Re[rr],Br=Re[rr+1],Er=Fe===0?Gr:Br;Er>=Oe&&Er<=Ie&&Mt(fe,Gr,Br,Re[rr+2]),rr=fe.length-3,ft&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&Mt(fe,fe[0],fe[1],fe[2]),fe.length&&be.push(fe)}function Ct(Re){let be=[];return be.size=Re.size,be.start=Re.start,be.end=Re.end,be}function wt(Re,be,Oe,Ie,Fe,ft){for(let ye of Re)Ke(ye,be,Oe,Ie,Fe,ft,!1)}function Mt(Re,be,Oe,Ie){Re.push(be,Oe,Ie)}function Bt(Re,be,Oe,Ie,Fe,ft){let ye=(ft-be)/(Ie-be);return Mt(Re,ft,Oe+(Fe-Oe)*ye,1),ye}function Zt(Re,be,Oe,Ie,Fe,ft){let ye=(ft-Oe)/(Fe-Oe);return Mt(Re,be+(Ie-be)*ye,ft,1),ye}function Et(Re,be){let Oe=[];for(let Ie=0;Ie0&&be.size<(Fe?ye:Ie))return void(Oe.numPoints+=be.length/3);let fe=[];for(let pe=0;peye)&&(Oe.numSimplified++,fe.push(be[pe],be[pe+1])),Oe.numPoints++;Fe&&function(pe,dt){let Pt=0;for(let zt=0,rr=pe.length,Gr=rr-2;zt0===dt)for(let zt=0,rr=pe.length;zt24)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 Fe=function(ft,ye){let fe=[];if(ft.type==="FeatureCollection")for(let pe=0;pe1&&console.time("creation"),Gr=this.tiles[rr]=vt(be,Oe,Ie,Fe,dt),this.tileCoords.push({z:Oe,x:Ie,y:Fe}),Pt)){Pt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Ie,Fe,Gr.numFeatures,Gr.numPoints,Gr.numSimplified),console.timeEnd("creation"));let Ni=`z${Oe}`;this.stats[Ni]=(this.stats[Ni]||0)+1,this.total++}if(Gr.source=be,ft==null){if(Oe===dt.indexMaxZoom||Gr.numPoints<=dt.indexMaxPoints)continue}else{if(Oe===dt.maxZoom||Oe===ft)continue;if(ft!=null){let Ni=ft-Oe;if(Ie!==ye>>Ni||Fe!==fe>>Ni)continue}}if(Gr.source=null,be.length===0)continue;Pt>1&&console.time("clipping");let Br=.5*dt.buffer/dt.extent,Er=.5-Br,Rr=.5+Br,pi=1+Br,Di=null,ni=null,$i=null,Qi=null,si=qt(be,zt,Ie-Br,Ie+Rr,0,Gr.minX,Gr.maxX,dt),Ti=qt(be,zt,Ie+Er,Ie+pi,0,Gr.minX,Gr.maxX,dt);be=null,si&&(Di=qt(si,zt,Fe-Br,Fe+Rr,1,Gr.minY,Gr.maxY,dt),ni=qt(si,zt,Fe+Er,Fe+pi,1,Gr.minY,Gr.maxY,dt),si=null),Ti&&($i=qt(Ti,zt,Fe-Br,Fe+Rr,1,Gr.minY,Gr.maxY,dt),Qi=qt(Ti,zt,Fe+Er,Fe+pi,1,Gr.minY,Gr.maxY,dt),Ti=null),Pt>1&&console.timeEnd("clipping"),pe.push(Di||[],Oe+1,2*Ie,2*Fe),pe.push(ni||[],Oe+1,2*Ie,2*Fe+1),pe.push($i||[],Oe+1,2*Ie+1,2*Fe),pe.push(Qi||[],Oe+1,2*Ie+1,2*Fe+1)}}getTile(be,Oe,Ie){be=+be,Oe=+Oe,Ie=+Ie;let Fe=this.options,{extent:ft,debug:ye}=Fe;if(be<0||be>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",be,Oe,Ie);let dt,Pt=be,zt=Oe,rr=Ie;for(;!dt&&Pt>0;)Pt--,zt>>=1,rr>>=1,dt=this.tiles[It(Pt,zt,rr)];return dt&&dt.source?(ye>1&&(console.log("found parent tile z%d-%d-%d",Pt,zt,rr),console.time("drilling down")),this.splitTile(dt.source,Pt,zt,rr,be,Oe,Ie),ye>1&&console.timeEnd("drilling down"),this.tiles[pe]?ot(this.tiles[pe],ft):null):null}}function It(Re,be,Oe){return 32*((1<{zt.properties=Gr;let Br={};for(let Er of rr)Br[Er]=pe[Er].evaluate(Pt,zt);return Br},ye.reduce=(Gr,Br)=>{zt.properties=Br;for(let Er of rr)Pt.accumulated=Gr[Er],Gr[Er]=dt[Er].evaluate(Pt,zt)},ye}(be)).load((yield this._pendingData).features):(Fe=yield this._pendingData,new tt(Fe,be.geojsonVtOptions)),this.loaded={};let ft={};if(Ie){let ye=Ie.finish();ye&&(ft.resourceTiming={},ft.resourceTiming[be.source]=JSON.parse(JSON.stringify(ye)))}return ft}catch(ft){if(delete this._pendingRequest,i.bB(ft))return{abandoned:!0};throw ft}var Fe})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(be){let Oe=this.loaded;return Oe&&Oe[be.uid]?super.reloadTile(be):this.loadTile(be)}loadAndProcessGeoJSON(be,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield this.loadGeoJSON(be,Oe);if(delete this._pendingRequest,typeof Ie!="object")throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`);if(d(Ie,!0),be.filter){let Fe=i.bC(be.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Fe.result==="error")throw new Error(Fe.value.map(ye=>`${ye.key}: ${ye.message}`).join(", "));Ie={type:"FeatureCollection",features:Ie.features.filter(ye=>Fe.value.evaluate({zoom:0},ye))}}return Ie})}loadGeoJSON(be,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Ie}=be;if(be.request){let Fe=yield i.h(be.request,Oe);return this._dataUpdateable=cr(Fe.data,Ie)?_r(Fe.data,Ie):void 0,Fe.data}if(typeof be.data=="string")try{let Fe=JSON.parse(be.data);return this._dataUpdateable=cr(Fe,Ie)?_r(Fe,Ie):void 0,Fe}catch(Fe){throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`)}if(!be.dataDiff)throw new Error(`Input data given to '${be.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${be.source}`);return function(Fe,ft,ye){var fe,pe,dt,Pt;if(ft.removeAll&&Fe.clear(),ft.remove)for(let zt of ft.remove)Fe.delete(zt);if(ft.add)for(let zt of ft.add){let rr=Yt(zt,ye);rr!=null&&Fe.set(rr,zt)}if(ft.update)for(let zt of ft.update){let rr=Fe.get(zt.id);if(rr==null)continue;let Gr=!zt.removeAllProperties&&(((fe=zt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=zt.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((zt.newGeometry||zt.removeAllProperties||Gr)&&(rr=Object.assign({},rr),Fe.set(zt.id,rr),Gr&&(rr.properties=Object.assign({},rr.properties))),zt.newGeometry&&(rr.geometry=zt.newGeometry),zt.removeAllProperties)rr.properties={};else if(((dt=zt.removeProperties)===null||dt===void 0?void 0:dt.length)>0)for(let Br of zt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Br)&&delete rr.properties[Br];if(((Pt=zt.addOrUpdateProperties)===null||Pt===void 0?void 0:Pt.length)>0)for(let{key:Br,value:Er}of zt.addOrUpdateProperties)rr.properties[Br]=Er}}(this._dataUpdateable,be.dataDiff,Ie),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(be){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(be){return this._geoJSONIndex.getClusterExpansionZoom(be.clusterId)}getClusterChildren(be){return this._geoJSONIndex.getChildren(be.clusterId)}getClusterLeaves(be){return this._geoJSONIndex.getLeaves(be.clusterId,be.limit,be.offset)}}class Ut{constructor(be){this.self=be,this.actor=new i.F(be),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Ie)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Ie},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,Ie)=>this._getDEMWorkerSource(Oe,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RDT",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Ie.source).removeTile(Ie)})),this.actor.registerMessageHandler("GCEZ",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterExpansionZoom(Ie)})),this.actor.registerMessageHandler("GCC",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterChildren(Ie)})),this.actor.registerMessageHandler("GCL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterLeaves(Ie)})),this.actor.registerMessageHandler("LD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadData(Ie)),this.actor.registerMessageHandler("GD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).reloadTile(Ie)),this.actor.registerMessageHandler("AT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).abortTile(Ie)),this.actor.registerMessageHandler("RMT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).removeTile(Ie)),this.actor.registerMessageHandler("RS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Ie.type]||!this.workerSources[Oe][Ie.type][Ie.source])return;let Fe=this.workerSources[Oe][Ie.type][Ie.source];delete this.workerSources[Oe][Ie.type][Ie.source],Fe.removeSource!==void 0&&Fe.removeSource(Ie)})),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,Ie)=>i._(this,void 0,void 0,function*(){this.referrer=Ie})),this.actor.registerMessageHandler("SRPS",(Oe,Ie)=>this._syncRTLPluginState(Oe,Ie)),this.actor.registerMessageHandler("IS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Ie)})),this.actor.registerMessageHandler("SI",(Oe,Ie)=>this._setImages(Oe,Ie)),this.actor.registerMessageHandler("UL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Ie.layers,Ie.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Ie)}))}_setImages(be,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[be]=Oe;for(let Ie in this.workerSources[be]){let Fe=this.workerSources[be][Ie];for(let ft in Fe)Fe[ft].availableImages=Oe}})}_syncRTLPluginState(be,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 Ie=Oe.pluginURL;if(this.self.importScripts(Ie),i.bD.isParsed()){let Fe={pluginStatus:"loaded",pluginURL:Ie};return i.bD.setState(Fe),Fe}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Ie}`)})}_getAvailableImages(be){let Oe=this.availableImages[be];return Oe||(Oe=[]),Oe}_getLayerIndex(be){let Oe=this.layerIndexes[be];return Oe||(Oe=this.layerIndexes[be]=new a),Oe}_getWorkerSource(be,Oe,Ie){if(this.workerSources[be]||(this.workerSources[be]={}),this.workerSources[be][Oe]||(this.workerSources[be][Oe]={}),!this.workerSources[be][Oe][Ie]){let Fe={sendAsync:(ft,ye)=>(ft.targetMapId=be,this.actor.sendAsync(ft,ye))};switch(Oe){case"vector":this.workerSources[be][Oe][Ie]=new l(Fe,this._getLayerIndex(be),this._getAvailableImages(be));break;case"geojson":this.workerSources[be][Oe][Ie]=new yr(Fe,this._getLayerIndex(be),this._getAvailableImages(be));break;default:this.workerSources[be][Oe][Ie]=new this.externalWorkerSourceTypes[Oe](Fe,this._getLayerIndex(be),this._getAvailableImages(be))}}return this.workerSources[be][Oe][Ie]}_getDEMWorkerSource(be,Oe){return this.demWorkerSources[be]||(this.demWorkerSources[be]={}),this.demWorkerSources[be][Oe]||(this.demWorkerSources[be][Oe]=new f),this.demWorkerSources[be][Oe]}}return i.i(self)&&(self.worker=new Ut(self)),Ut}),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:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){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=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,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 ue=0;ue{h&&b(h),h=null,_=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=mt=>{let Ft=Q++;return ee[Ft]=mt,Ft},le.removeThrottleControl=mt=>{delete ee[mt],Ue()},le.getImage=(mt,Ft,ir=!0)=>new Promise((or,kr)=>{c.supported&&(mt.headers||(mt.headers={}),mt.headers.accept="image/webp,*/*"),a.e(mt,{type:"image"}),w.push({abortController:Ft,requestParameters:mt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ue()});let ue=mt=>a._(this,void 0,void 0,function*(){mt.state="running";let{requestParameters:Ft,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=mt,he=ir===!1&&!a.i(self)&&!a.g(Ft.url)&&(!Ft.headers||Object.keys(Ft.headers).reduce((Ve,lt)=>Ve&<==="accept",!0));q++;let Me=he?rt(Ft,Vr):a.m(Ft,Vr);try{let Ve=yield Me;delete mt.abortController,mt.state="completed",Ve.data instanceof HTMLImageElement||a.b(Ve.data)?kr(Ve):Ve.data&&kr({data:yield(qe=Ve.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:Ve.cacheControl,expires:Ve.expires})}catch(Ve){delete mt.abortController,or(Ve)}finally{q--,Ue()}var qe}),Ue=()=>{let mt=(()=>{for(let Ft of Object.keys(ee))if(ee[Ft]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Ft=q;Ft0;Ft++){let ir=w.shift();ir.abortController.signal.aborted?Ft--:ue(ir)}},rt=(mt,Ft)=>new Promise((ir,or)=>{let kr=new Image,Vr=mt.url,he=mt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Ft.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Ft.signal.aborted||or(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."))},kr.src=Vr})}(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(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var x=function(le){var w=le[0],q=le[1];return w*w+q*q};function k(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function M(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[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:ue}=w,Ue=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:rt}=this,{gl:mt}=rt;if(this.useMipmap=!!(q&&q.useMipmap),mt.bindTexture(mt.TEXTURE_2D,this.texture),rt.pixelStoreUnpackFlipY.set(!1),rt.pixelStoreUnpack.set(1),rt.pixelStoreUnpackPremultiplyAlpha.set(this.format===mt.RGBA&&(!q||q.premultiply!==!1)),Ue)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texImage2D(mt.TEXTURE_2D,0,this.format,this.format,mt.UNSIGNED_BYTE,w):mt.texImage2D(mt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,mt.UNSIGNED_BYTE,w.data);else{let{x:Ft,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,mt.RGBA,mt.UNSIGNED_BYTE,w):mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,ee,ue,mt.RGBA,mt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&mt.generateMipmap(mt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.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(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A 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 ue of w)this.images[ue]||(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},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}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 ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ue}=this.patterns[ue],rt=Ue.x+1,mt=Ue.y+1,Ft=this.getImage(ue).data,ir=Ft.width,or=Ft.height;a.R.copy(Ft,ee,{x:0,y:0},{x:rt,y:mt},{width:ir,height:or}),a.R.copy(Ft,ee,{x:0,y:or-1},{x:rt,y:mt-1},{width:ir,height:1}),a.R.copy(Ft,ee,{x:0,y:0},{x:rt,y:mt+or},{width:ir,height:1}),a.R.copy(Ft,ee,{x:ir-1,y:0},{x:rt-1,y:mt},{width:1,height:or}),a.R.copy(Ft,ee,{x:0,y:0},{x:rt+ir,y:mt},{width:1,height:or})}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 F=1e20;function B(le,w,q,Q,ee,ue,Ue,rt,mt){for(let Ft=w;Ft-1);mt++,ue[mt]=rt,Ue[mt]=Ft,Ue[mt+1]=F}for(let rt=0,mt=0;rt65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let rt=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=rt}let Ue=yield Q.requests[ue];for(let rt in Ue)this._doesCharSupportLocalGlyph(+rt)||(Q.glyphs[+rt]=Ue[+rt]);return Q.ranges[ue]=!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 ue=w.tinySDF;if(!ue){let rt="400";/bold/i.test(q)?rt="900":/medium/i.test(q)?rt="500":/light/i.test(q)&&(rt="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:rt})}let Ue=ue.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(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ue=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),rt=yield a.l(Ue,new AbortController);if(!rt||!rt.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let mt={};for(let Ft of a.n(rt.data))mt[Ft.id]=Ft;return mt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ue="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let rt=this.size=le+4*w,mt=this._createCanvas(rt),Ft=this.ctx=mt.getContext("2d",{willReadFrequently:!0});Ft.font=`${Ue} ${ue} ${le}px ${ee}`,Ft.textBaseline="alphabetic",Ft.textAlign="left",Ft.fillStyle="black",this.gridOuter=new Float64Array(rt*rt),this.gridInner=new Float64Array(rt*rt),this.f=new Float64Array(rt),this.z=new Float64Array(rt+1),this.v=new Uint16Array(rt)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ue=Math.ceil(q),rt=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),mt=Math.min(this.size-this.buffer,Ue+Math.ceil(Q)),Ft=rt+2*this.buffer,ir=mt+2*this.buffer,or=Math.max(Ft*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Ft,height:ir,glyphWidth:rt,glyphHeight:mt,glyphTop:Ue,glyphLeft:0,glyphAdvance:w};if(rt===0||mt===0)return Vr;let{ctx:he,buffer:Me,gridInner:qe,gridOuter:Ve}=this;he.clearRect(Me,Me,rt,mt),he.fillText(le,Me,Me+Ue);let lt=he.getImageData(Me,Me,rt,mt);Ve.fill(F,0,or),qe.fill(0,0,or);for(let it=0;it0?fr*fr:0,qe[nr]=fr<0?fr*fr:0}}B(Ve,0,0,Ft,ir,Ft,this.f,this.v,this.z),B(qe,Me,Me,rt,mt,Ft,this.f,this.v,this.z);for(let it=0;it1&&(mt=w[++rt]);let ir=Math.abs(Ft-mt.left),or=Math.abs(Ft-mt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(mt.isDash){let Me=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Me*Me)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ue+Ft]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let rt=w.length-1;rt>=0;--rt){let mt=w[rt],Ft=w[rt+1];mt.zeroLength?w.splice(rt,1):Ft&&Ft.isDash===mt.isDash&&(Ft.left=mt.left,w.splice(rt,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,ue=0,Ue=w[ue];for(let rt=0;rt1&&(Ue=w[++ue]);let mt=Math.abs(rt-Ue.left),Ft=Math.abs(rt-Ue.right),ir=Math.min(mt,Ft);this.data[ee+rt]=Math.max(0,Math.min(255,(Ue.isDash?ir:-ir)+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 ue=0;for(let rt=0;rt{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[ge]}numActive(){return Object.keys(this.active).length}}let Le=Math.floor(l.hardwareConcurrency/2),de,te;function ke(){return de||(de=new ze),de}ze.workerCount=a.C(globalThis)?Math.max(Math.min(Le,3),1):1;class Ee{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 Se(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ge(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function De(le,w,q,Q,ee,ue){let Ue=function(or,kr,Vr){if(or)for(let he of or){let Me=kr[he];if(Me&&Me.source===Vr&&Me.type==="fill-extrusion")return!0}else for(let he in kr){let Me=kr[he];if(Me.source===Vr&&Me.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),rt=ue.maxPitchScaleFactor(),mt=le.tilesIn(Q,rt,Ue);mt.sort(xe);let Ft=[];for(let or of mt)Ft.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,rt,Ge(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Me=he.queryResults,qe=he.wrappedTileID,Ve=Vr[qe]=Vr[qe]||{};for(let lt in Me){let it=Me[lt],pt=Ve[lt]=Ve[lt]||{},Ht=kr[lt]=kr[lt]||[];for(let nr of it)pt[nr.featureIndex]||(pt[nr.featureIndex]=!0,Ht.push(nr))}}return kr}(Ft);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function xe(le,w){let q=le.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 Ne(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.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,ue;if(w instanceof a.N)ee=w,ue=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,ue=w._ne,!ee||!ue)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(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.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),ue=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((ue,Ue)=>{w.reloadPromise={resolve:ue,reject:Ue}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;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 gt 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 Ne(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,ue=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,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.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 qt extends gt{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 ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ue=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),rt={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 mt=yield w.actor.sendAsync({type:"LDT",data:rt});w.dem=mt,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,ue=q.x===0?w.wrap-1:w.wrap,Ue=(q.x+1+Q)%Q,rt=q.x+1===Q?w.wrap+1:w.wrap,mt={};return mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},mt[new a.S(w.overscaledZ,rt,q.z,Ue,q.y).key]={backfilled:!1},q.y>0&&(mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,rt,q.z,Ue,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{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 Ct 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 ue=1/0,Ue=1/0,rt=-1/0,mt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ue=Math.min(Ue,kr.y),rt=Math.max(rt,kr.x),mt=Math.max(mt,kr.y);let Ft=Math.max(rt-ue,mt-Ue),ir=Math.max(0,Math.floor(-Math.log(Ft)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+rt)/2*or),Math.floor((Ue+mt)/2*or))}(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 ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.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 wt extends Ct{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 ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.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 Mt extends Ct{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.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 ue in this.tiles){let Ue=this.tiles[ue];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 Bt={},Zt=le=>{switch(le){case"geojson":return at;case"image":return Ct;case"raster":return gt;case"raster-dem":return qt;case"vector":return Qe;case"video":return wt;case"canvas":return Mt}return Bt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Se()}_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(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let ot=null;function At(){return ot||(ot=new Ae),ot}class vt{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;que.getLayer(Ft)).filter(Boolean);if(mt.length!==0){rt.layers=mt,rt.stateDependentLayerIds&&(rt.stateDependentLayers=rt.stateDependentLayerIds.map(Ft=>mt.filter(ir=>ir.id===Ft)[0]));for(let Ft of mt)Ue[Ft.id]=rt}}return Ue}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,At().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}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,ue,Ue,rt,mt,Ft,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ue,tileSize:this.tileSize,pixelPosMatrix:ir,transform:mt,params:rt,queryPadding:this.queryPadding*Ft},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ue=ee._geojsonTileLayer||ee[ue];if(!Ue)return;let rt=a.a7(q&&q.filter),{z:mt,x:Ft,y:ir}=this.tileID.canonical,or={z:mt,x:Ft,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),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),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.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 He{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 ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}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 ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ue in ue)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 ue={};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]),ue[Ue]=this.state[ee][Ue];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ue in this.state[ee])ue[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 rt of Object.keys(this.deletedStates[ee][Ue]))delete this.state[ee][Ue][rt];ue[Ue]=this.state[ee][Ue]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class nt 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,ue,Ue,rt)=>{let mt=new(Zt(ue.type))(ee,ue,Ue,rt);if(mt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${mt.id}`);return mt})(w,q,Q,this),this._tiles={},this._cache=new Je(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new He,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 ue=Q.tileID,Ue=ee.tileID,rt=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),mt=new a.P(Ue.canonical.x,Ue.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ue.overscaledZ||mt.y-rt.y||mt.x-rt.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+mt)===1?Ue+=mt:Math.abs(Ue-mt)===1&&(Ue-=mt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ue,rt),ee.neighboringTiles&&ee.neighboringTiles[Ft]&&(ee.neighboringTiles[Ft].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ue=this._tiles[ue];if(ee[ue]||!Ue.hasData()||Ue.tileID.overscaledZ<=q||Ue.tileID.overscaledZ>Q)continue;let rt=Ue.tileID;for(;Ue&&Ue.tileID.overscaledZ>q+1;){let Ft=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Ft.key],Ue&&Ue.hasData()&&(rt=Ft)}let mt=rt;for(;mt.overscaledZ>q;)if(mt=mt.scaledTo(mt.overscaledZ-1),w[mt.key]){ee[rt.key]=rt;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),ue=this._getLoadedTile(ee);if(ue)return ue}}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)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}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 ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}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,ue,Ue){let rt={},mt={},Ft=Object.keys(w),ir=l.now();for(let or of Ft){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Me=this.findLoadedSibling(kr),qe=he||Me||null;qe&&(this._addTile(qe.tileID),rt[qe.tileID.key]=qe.tileID),mt[or]=kr}this._retainLoadedChildren(mt,ee,Q,w);for(let or in rt)w[or]||(this._coveredTiles[or]=!0,w[or]=rt[or]);if(Ue){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Me=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),Ve=Me||qe||null;if(Ve){or[Ve.tileID.key]=w[Ve.tileID.key]=Ve.tileID;for(let lt in or)or[lt].isChildOf(Ve.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!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(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.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(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-nt.maxOverzooming,this._source.minzoom),Ue=Math.max(ee+nt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let rt=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,rt&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let mt=this._updateRetainedTiles(Q,ee);It(this._source.type)&&this._updateCoveredAndRetainedTiles(mt,ue,Ue,ee,Q,q);for(let ir in mt)this._tiles[ir].clearFadeHold();let Ft=a.ab(this._tiles,mt);for(let ir of Ft){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}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={},ue={},Ue=Math.max(q-nt.maxOverzooming,this._source.minzoom),rt=Math.max(q+nt.maxUnderzooming,this._source.minzoom),mt={};for(let Ft of w){let ir=this._addTile(Ft);ee[Ft.key]=Ft,ir.hasData()||qthis._source.maxzoom){let kr=Ft.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Ft.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Ft.overscaledZ-1;kr>=Ue;--kr){let Vr=Ft.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.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 ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=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 vt(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=[],ue=this.transform;if(!ue)return ee;let Ue=Q?ue.getCameraQueryGeometry(w):w,rt=w.map(he=>ue.pointCoordinate(he,this.terrain)),mt=Ue.map(he=>ue.pointCoordinate(he,this.terrain)),Ft=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of mt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&it[1].y+lt>=0){let pt=rt.map(nr=>qe.getTilePoint(nr)),Ht=mt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Me,tileID:qe,queryGeometry:pt,cameraQueryGeometry:Ht,scale:Ve})}}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(It(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(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function It(le){return le==="raster"||le==="image"||le==="video"}nt.maxOverzooming=10,nt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ue)/rt:0;return this.points[ue].mult(1-mt).add(this.points[q].mult(mt))}}function cr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class _r{constructor(w,q,Q){let ee=this.boxCells=[],ue=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 mt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Ft=0;Ft0}hitTestCircle(w,q,Q,ee,ue){let Ue=w-Q,rt=w+Q,mt=q-Q,Ft=q+Q;if(rt<0||Ue>this.width||Ft<0||mt>this.height)return!1;let ir=[];return this._forEachCell(Ue,mt,rt,Ft,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ue,rt,mt){let{seenUids:Ft,hitTest:ir,overlapMode:or}=rt,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Me of kr)if(!Ft.box[Me]){Ft.box[Me]=!0;let qe=4*Me,Ve=this.boxKeys[Me];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!mt||mt(Ve))&&(!ir||!cr(or,Ve.overlapMode))&&(Ue.push({key:Ve,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Me of Vr)if(!Ft.circle[Me]){Ft.circle[Me]=!0;let qe=3*Me,Ve=this.circleKeys[Me];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!mt||mt(Ve))&&(!ir||!cr(or,Ve.overlapMode))){let lt=he[qe],it=he[qe+1],pt=he[qe+2];if(Ue.push({key:Ve,x1:lt-pt,y1:it-pt,x2:lt+pt,y2:it+pt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ue,rt,mt){let{circle:Ft,seenUids:ir,overlapMode:or}=rt,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Me of kr)if(!ir.box[Me]){ir.box[Me]=!0;let qe=4*Me,Ve=this.boxKeys[Me];if(this._circleAndRectCollide(Ft.x,Ft.y,Ft.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!mt||mt(Ve))&&!cr(or,Ve.overlapMode))return Ue.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Me of Vr)if(!ir.circle[Me]){ir.circle[Me]=!0;let qe=3*Me,Ve=this.circleKeys[Me];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Ft.x,Ft.y,Ft.radius)&&(!mt||mt(Ve))&&!cr(or,Ve.overlapMode))return Ue.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ue,rt,mt){let Ft=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Ft;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ue,rt,mt))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,ue,Ue){let rt=ee-w,mt=ue-q,Ft=Q+Ue;return Ft*Ft>rt*rt+mt*mt}_circleAndRectCollide(w,q,Q,ee,ue,Ue,rt){let mt=(Ue-ee)/2,Ft=Math.abs(w-(ee+mt));if(Ft>mt+Q)return!1;let ir=(rt-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Ft<=mt||or<=ir)return!0;let kr=Ft-mt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function yr(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ut(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Re(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Er(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function be(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Ie(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he){let Me=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Me,q.transform.zoom),Ve=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let it=le.lineVertexArray,pt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Ht=q.transform.width/q.transform.height,nr=!1;for(let fr=0;frMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function ye(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Me=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,Ve=w.lineStartIndex+w.lineLength,lt=Fe(or,rt,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let it=Re(lt.first.point.x,lt.first.point.y,Ue,le.getElevation).point,pt=Re(lt.last.point.x,lt.last.point.y,Ue,le.getElevation).point;if(ee&&!Q){let Ht=ft(w.writingMode,it,pt,Ft);if(Ht)return Ht}he=[lt.first];for(let Ht=w.glyphStartIndex+1;Ht0?it.point:function(nr,fr,Ar,Ir,ri,li){return fe(nr,fr,Ar,1,ri,li)}(le.tileAnchorPoint,lt,qe,0,ue,le),Ht=ft(w.writingMode,qe,pt,Ft);if(Ht)return Ht}let Me=rr(or*rt.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Me||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Me]}for(let Me of he)a.aj(mt,Me.point,Me.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ue=le.add(le.sub(w)._unit()),rt=ee!==void 0?Re(Ue.x,Ue.y,ee,ue.getElevation).point:dt(Ue.x,Ue.y,ue).point,mt=q.sub(rt);return q.add(mt._mult(Q/mt.mag()))}function pe(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=dt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ue=le-q.direction;return function(rt,mt,Ft,ir,or){return fe(rt,mt,Ft,ir,void 0,or)}(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 dt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Re(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function Pt(le,w,q){return le._unit()._perp()._mult(w*q)}function zt(le,w,q,Q,ee,ue,Ue,rt,mt){if(rt.projectionCache.offsets[le])return rt.projectionCache.offsets[le];let Ft=q.add(w);if(le+mt.direction=ee)return rt.projectionCache.offsets[le]=Ft,Ft;let ir=pe(le+mt.direction,rt,mt),or=Pt(ir.sub(q),Ue,mt.direction),kr=q.add(or),Vr=ir.add(or);return rt.projectionCache.offsets[le]=a.ak(ue,Ft,kr,Vr)||Ft,rt.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ue,rt,mt){let Ft=Q?le-w:le+w,ir=Ft>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;rt.projectionCache.cachedAnchorPoint?kr=rt.projectionCache.cachedAnchorPoint:(kr=dt(rt.tileAnchorPoint.x,rt.tileAnchorPoint.y,rt).point,rt.projectionCache.cachedAnchorPoint=kr);let he,Me,qe=kr,Ve=kr,lt=0,it=0,pt=Math.abs(Ft),Ht=[],nr;for(;lt+it<=pt;){if(Vr+=ir,Vr=Ue)return null;lt+=it,Ve=qe,Me=he;let Ir={absOffsetX:pt,direction:ir,distanceFromAnchor:lt,previousVertex:Ve};if(qe=pe(Vr,rt,Ir),q===0)Ht.push(Ve),nr=qe.sub(Ve);else{let ri,li=qe.sub(Ve);ri=li.mag()===0?Pt(pe(Vr+ir,rt,Ir).sub(qe),q,ir):Pt(li,q,ir),Me||(Me=Ve.add(ri)),he=zt(Vr,ri,qe,ue,Ue,Me,q,rt,Ir),Ht.push(Me),nr=he.sub(Me)}it=nr.mag()}let fr=nr._mult((pt-lt)/it)._add(Me||Ve),Ar=or+Math.atan2(qe.y-Ve.y,qe.x-Ve.x);return Ht.push(fr),{point:fr,angle:mt?Ar:0,path:Ht}}let Gr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Br(le,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=li.x&&ml.x<=Ei.x&&Us.y>=li.y&&ml.y<=Ei.y?[Ua]:ml.xEi.x||ml.yEi.y?[]:a.al([Ua],li.x,li.y,Ei.x,Ei.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auRe(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,ue=-1/0,Ue=-1/0;for(let ir of w){let or=new a.P(ir.x+Rr,ir.y+Rr);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ue=Math.max(Ue,or.y),q.push(or)}let rt=this.grid.query(Q,ee,ue,Ue).concat(this.ignoredGrid.query(Q,ee,ue,Ue)),mt={},Ft={};for(let ir of rt){let or=ir.key;if(mt[or.bucketInstanceId]===void 0&&(mt[or.bucketInstanceId]={}),mt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(mt[or.bucketInstanceId][or.featureIndex]=!0,Ft[or.bucketInstanceId]===void 0&&(Ft[or.bucketInstanceId]=[]),Ft[or.bucketInstanceId].push(or.featureIndex))}return Ft}insertCollisionBox(w,q,Q,ee,ue,Ue){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ue,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ue){let rt=Q?this.ignoredGrid:this.grid,mt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ue,overlapMode:q};for(let Ft=0;Ft=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Ft));Ar=Ir.some(ri=>!ri.isOccluded),fr=Ir.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(fr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class ni{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 $i{constructor(w,q,Q,ee,ue){this.text=new ni(w?w.text:null,q,Q,ue),this.icon=new ni(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Qi{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class si{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class Ti{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Ni{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(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ue}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ue-.5)*q+Q[1]*ee)}class yt{constructor(w,q,Q,ee,ue,Ue){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new pi(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Ni(ue),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 ue=Q.getBucket(q),Ue=Q.latestFeatureIndex;if(!ue||!Ue||q.id!==ue.layerIds[0])return;let rt=Q.collisionBoxArray,mt=ue.layers[0].layout,Ft=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=mt.get("text-pitch-alignment")==="map",Me=mt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),Ve=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("text-translate"),Ft.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("icon-translate"),Ft.get("icon-translate-anchor")),it=yr(Vr,he,Me,this.transform,qe),pt=null;if(he){let nr=Ut(Vr,he,Me,this.transform,qe);pt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new Ti(ue.bucketInstanceId,Ue,ue.sourceLayerIndex,ue.index,Q.tileID);let Ht={bucket:ue,layout:mt,translationText:Ve,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:it,labelToScreenMatrix:pt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:rt,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Ir}=nr;w.push({sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Ir,parameters:Ht})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Ht})}attemptAnchorPlacement(w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt,it){let pt=a.aq[w.textAnchor],Ht=[w.textOffset0,w.textOffset1],nr=Rt(pt,Q,ee,Ht,ue),fr=this.collisionIndex.placeCollisionBox(q,kr,mt,Ft,ir,rt,Ue,qe,or.predicate,it,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,mt,Ft,ir,rt,Ue,Ve,or.predicate,it,nr).placeable)&&fr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Ht,width:Q,height:ee,anchor:pt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,pt,Vr,Me),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Me,Vr),this.placedOrientations[Vr.crossTileID]=Me),{shift:nr,placedGlyphBoxes:fr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ue,translationIcon:rt,posMatrix:mt,unwrappedTileID:Ft,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Me,collisionGroup:qe}=w.parameters,Ve=ue.get("text-optional"),lt=ue.get("icon-optional"),it=a.ar(ue,"text-overlap","text-allow-overlap"),pt=it==="always",Ht=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Ht==="always",fr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Ir=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",li=pt&&(nr||!ee.hasIconData()||lt),Ei=nr&&(pt||!ee.hasTextData()||Ve);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new Qi(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,Ol={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,nu=null,tu=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=Pe=>{let Ze=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Pe&&this.prevPlacement){let et=this.prevPlacement.placedOrientations[Yn.crossTileID];et&&(this.placedOrientations[Yn.crossTileID]=et,Ze=et,this.markUsedOrientation(ee,Ze,Yn))}return Ze},ef=(Pe,Ze)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let et of ee.writingModes)if(et===a.ah.vertical?(Ol=Ze(),ou=Ol):Ol=Pe(),Ol&&Ol.placeable)break}else Ol=Pe()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let Pe=(Ze,et)=>{let st=this.collisionIndex.placeCollisionBox(Ze,it,kr,mt,Ft,Ar,fr,Ue,qe.predicate,hn);return st&&st.placeable&&(this.markUsedOrientation(ee,et,Yn),this.placedOrientations[Yn.crossTileID]=et),st};ef(()=>Pe(Wu,a.ah.horizontal),()=>{let Ze=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ze?Pe(Ze,a.ah.vertical):{box:null,offscreen:null}}),Qu(Ol&&Ol.placeable)}else{let Pe=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Ze=(st,jt,_t)=>{let hr=st.x2-st.x1,Cr=st.y2-st.y1,zr=Yn.textBoxScale,fi=Ir&&Ht==="never"?jt:null,$r=null,Bi=it==="never"?1:2,fn="never";Pe&&Bi++;for(let mi=0;miZe(Wu,Ua.iconBox,a.ah.horizontal),()=>{let st=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!Ol||!Ol.placeable)&&Yn.numVerticalGlyphVertices>0&&st?Ze(st,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Ol&&(ml=Ol.placeable,Sl=Ol.offscreen);let et=Qu(Ol&&Ol.placeable);if(!ml&&this.prevPlacement){let st=this.prevPlacement.variableOffsets[Yn.crossTileID];st&&(this.variableOffsets[Yn.crossTileID]=st,this.markUsedJustification(ee,st.anchor,Yn,et))}}}if(Pu=Ol,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let Qu=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),ef=a.ai(ee.textSizeData,Me,Qu),Z=ue.get("text-padding");nu=this.collisionIndex.placeCollisionCircles(it,Qu,ee.lineVertexArray,ee.glyphOffsetArray,ef,mt,Ft,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ue,hn),nu.circles.length&&nu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=pt||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,Ht,kr,mt,Ft,Ar,fr,rt,qe.predicate,hn,Ir&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=Qu(Ua.verticalIconBox),au=tu.placeable):(tu=Qu(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let ju=Ve||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,sf=lt||Yn.numIconVertices===0;ju||sf?sf?ju||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let _f=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,it,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&$u?$u:Hu,qe.ID),_f&&this.collisionIndex.insertCollisionBox(tu.box,Ht,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ku,qe.ID),nu&&ml&&this.collisionIndex.insertCollisionCircles(nu.circles,it,ue.get("text-ignore-placement"),ee.bucketInstanceId,Hu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,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 Qi(ml||li,au||Ei,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(rt).crossTileID=ue>=0&&rt!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ue=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let rt of Ue)w.text.placedSymbolArray.get(rt).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}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,ue=q?q.opacities:{},Ue=q?q.variableOffsets:{},rt=q?q.placedOrientations:{};for(let mt in this.placements){let Ft=this.placements[mt],ir=ue[mt];ir?(this.opacities[mt]=new $i(ir,ee,Ft.text,Ft.icon),Q=Q||Ft.text!==ir.text.placed||Ft.icon!==ir.icon.placed):(this.opacities[mt]=new $i(null,ee,Ft.text,Ft.icon,Ft.skipFade),Q=Q||Ft.text||Ft.icon)}for(let mt in ue){let Ft=ue[mt];if(!this.opacities[mt]){let ir=new $i(Ft,ee,!1,!1);ir.isHidden()||(this.opacities[mt]=ir,Q=Q||Ft.text.placed||Ft.icon.placed)}}for(let mt in Ue)this.variableOffsets[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.variableOffsets[mt]=Ue[mt]);for(let mt in rt)this.placedOrientations[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.placedOrientations[mt]=rt[mt]);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 ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,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 ue=w.layers[0],Ue=ue.layout,rt=new $i(null,0,!1,!1,!0),mt=Ue.get("text-allow-overlap"),Ft=Ue.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ue.get("text-rotation-alignment")==="map",kr=Ue.get("text-pitch-alignment")==="map",Vr=Ue.get("icon-text-fit")!=="none",he=new $i(null,0,mt&&(Ft||!w.hasIconData()||Ue.get("icon-optional")),Ft&&(mt||!w.hasTextData()||Ue.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Me=(Ve,lt,it)=>{for(let pt=0;pt0,Ar=this.placedOrientations[lt.crossTileID],Ir=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(it>0||pt>0){let Ei=gi(nr.text);Me(w.text,it,Ir?ki:Ei),Me(w.text,pt,ri?ki:Ei);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Ir?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(fr){let Ei=gi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Ir);lt.placedIconSymbolIndex>=0&&(Me(w.icon,lt.numIconVertices,hn?Ei:ki),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Me(w.icon,lt.numVerticalIconVertices,hn?ki:Ei),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let li=qe&&qe.has(Ve)?qe.get(Ve):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Ei=w.collisionArrays[Ve];if(Ei){let hn=new a.P(0,0);if(Ei.textBox||Ei.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Ht];Yn?(hn=Rt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Ei.textBox||Ei.verticalTextBox){let Yn;Ei.textBox&&(Yn=Ir),Ei.verticalTextBox&&(Yn=ri),Gt(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,li.text,hn.x,hn.y)}}if(Ei.iconBox||Ei.verticalIconBox){let Zn=!!(!ri&&Ei.verticalIconBox),Yn;Ei.iconBox&&(Yn=Zn),Ei.verticalIconBox&&(Yn=!Zn),Gt(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,li.icon,Vr?hn.x:0,Vr?hn.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 Ve=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Ve.invProjMatrix,w.placementViewportMatrix=Ve.viewportMatrix,w.collisionCircleArray=Ve.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 Gt(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ue=Q[0]-Rr,rt=Q[1]-Rr,mt=Q[2]-Rr,Ft=Q[3]-Rr;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ue,rt),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,rt),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,Ft),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ue,Ft)}let Wt=Math.pow(2,25),xr=Math.pow(2,24),Lr=Math.pow(2,17),Nr=Math.pow(2,16),Or=Math.pow(2,9),Hr=Math.pow(2,8),jr=Math.pow(2,1);function gi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*xr+q*Lr+w*Nr+q*Or+w*Hr+q*jr+w}let ki=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ue,rt,mt=!1){if(!Ue[0]&&!Ue[1])return[0,0];let Ft=mt?rt==="map"?ee.angle:0:rt==="viewport"?-ee.angle:0;if(Ft){let ir=Math.sin(Ft),or=Math.cos(Ft);Ue=[Ue[0]*or-Ue[1]*ir,Ue[0]*ir+Ue[1]*or]}return[mt?Ue[0]:Di(ue,Ue[0],ee.zoom),mt?Ue[1]:Di(ue,Ue[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>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,ue){let Ue=this._bucketParts;for(;this._currentTileIndexrt.sortKey-mt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ue=q[w[this._currentPlacementIndex]],rt=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=rt)&&(!Ue.maxzoom||Ue.maxzoom>rt)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ue)),this._inProgressLayer.continuePlacement(Q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ue))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 ue=0;ue({x:Math.floor(mt.anchorX*Yr),y:Math.floor(mt.anchorY*Yr)})),crossTileIDs:Ue.map(mt=>mt.crossTileID)};if(rt.positions.length>128){let mt=new a.av(rt.positions.length,16,Uint16Array);for(let{x:Ft,y:ir}of rt.positions)mt.add(Ft,ir);mt.finish(),delete rt.positions,rt.index=mt}this._symbolsByKey[ue]=rt}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ue,y:rt,z:mt}=q.canonical,Ft=Yr/Math.pow(2,mt-ue),ir=(rt*a.X+w.anchorY)*Ft,or=ee*a.X*Yr;return{x:Math.floor((Ue*a.X+w.anchorX)*Ft-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Fi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{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],ue={};for(let Ue in ee){let rt=ee[Ue];rt.tileID=rt.tileID.unwrapTo(rt.tileID.wrap+q),ue[rt.tileID.key]=rt}this.indexes[Q]=ue}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 ue=0;uew.overscaledZ)for(let rt in Ue){let mt=Ue[rt];mt.tileID.isChildOf(w)&&mt.findMatches(q.symbolInstances,w,ee)}else{let rt=Ue[w.scaledTo(Number(ue)).key];rt&&rt.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Ri=(le,w)=>a.t(le,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 Ee(ke(),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 A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new nn,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()),At().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ue in this._layers){let rt=this._layers[Ue];rt.source===ue.id&&this._validateLayer(rt)}})}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 ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ue=>{this._loadStyleRequest=null,this._load(Ue.data,q,Q)}).catch(Ue=>{this._loadStyleRequest=null,Ue&&!ue.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 ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Ri(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ue in ue.sources)this.addSource(Ue,ue.sources[Ue],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.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(ue,Ue,rt,mt){return a._(this,void 0,void 0,function*(){let Ft=k(ue),ir=rt>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Ft){let Me=Ue.transformRequest(M(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Me,mt);let qe=Ue.transformRequest(M(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,mt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Me={};for(let qe in Vr){Me[qe]={};let Ve=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let it in lt){let{width:pt,height:Ht,x:nr,y:fr,sdf:Ar,pixelRatio:Ir,stretchX:ri,stretchY:li,content:Ei,textFitWidth:hn,textFitHeight:Zn}=lt[it];Me[qe][it]={data:null,pixelRatio:Ir,sdf:Ar,stretchX:ri,stretchY:li,content:Ei,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:pt,height:Ht,x:nr,y:fr,context:Ve}}}}return Me})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ue in ue){this._spritesImagesIds[Ue]=[];let rt=this._spritesImagesIds[Ue]?this._spritesImagesIds[Ue].filter(mt=>!(mt in ue)):[];for(let mt of rt)this.imageManager.removeImage(mt),this._changedImages[mt]=!0;for(let mt in ue[Ue]){let Ft=Ue==="default"?mt:`${Ue}:${mt}`;this._spritesImagesIds[Ue].push(Ft),Ft in this.imageManager.images?this.imageManager.updateImage(Ft,ue[Ue][mt],!1):this.imageManager.addImage(Ft,ue[Ue][mt]),q&&(this._changedImages[Ft]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,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 ue of w)if(Q[ue]){let Ue=q?a.aB(Q[ue]):Q[ue];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),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ue in this._updatedSources){let rt=this._updatedSources[Ue];if(rt==="reload")this._reloadSource(Ue);else{if(rt!=="clear")throw new Error(`Invalid action ${rt}`);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 ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.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 ue=a.aC(ee,w),Ue=this._getOperationsToPerform(ue);if(Ue.unimplemented.length>0)throw new Error(`Unimplemented: ${Ue.unimplemented.join(", ")}.`);if(Ue.operations.length===0)return!1;for(let rt of Ue.operations)rt();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 nt(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 ue;if(w.type==="custom"){if(Ri(this,a.aD(w)))return;ue=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;ue=a.aA(w),this._validateLayer(ue),ue.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]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let rt=this._removedLayers[ee];delete this._removedLayers[ee],rt.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.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 ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):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 ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),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,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ue=ue.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."))),ue.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 ue=ee.getSource().type,Ue=ue==="vector"?w.sourceLayer:void 0;ue!=="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,ue=>ue.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},ue=>ue!==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 rt=this._order[Ue];if(q(rt)){Q[rt]=Ue;for(let mt of w){let Ft=mt[rt];if(Ft)for(let ir of Ft)ee.push(ir)}}}ee.sort((Ue,rt)=>rt.intersectionZ-Ue.intersectionZ);let ue=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let rt=this._order[Ue];if(q(rt))for(let mt=ee.length-1;mt>=0;mt--){let Ft=ee[mt].feature;if(Q[Ft.layer.id]{let Ar=Ve.featureSortOrder;if(Ar){let Ir=Ar.indexOf(nr.featureIndex);return Ar.indexOf(fr.featureIndex)-Ir}return fr.featureIndex-nr.featureIndex});for(let nr of Ht)pt.push(nr)}}for(let Ve in he)he[Ve].forEach(lt=>{let it=lt.feature,pt=Ft[rt[Ve].source].getFeatureState(it.layer["source-layer"],it.id);it.source=it.layer.source,it.layer["source-layer"]&&(it.sourceLayer=it.layer["source-layer"]),it.state=pt});return he}(this._layers,Ue,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}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,ue){let Ue=ee.getRenderableIds().map(Ft=>ee.getTileByID(Ft)),rt=[],mt={};for(let Ft=0;Ftkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,mt[ir.source],w.center.lng);Ue=Ue||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new tn(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),rt=!0),Ue&&this.pauseablePlacement.placement.setStale()),rt||Ue)for(let Ft of this._order){let ir=this._layers[Ft];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,mt[ir.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 ue=[{id:w,url:q}],Ue=[...k(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ue,null,Q)||(this.stylesheet.sprite=Ue,this._loadSprite(ue,!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 bi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ct(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3800,7 +3800,7 @@ uniform ${ir} ${or} u_${kr}; #endif `}),staticAttributes:Q,staticUniforms:Ue}}class tr{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,ue,Ue,rt,mt,Ft){this.context=w;let ir=this.boundPaintVertexBuffers.length!==ee.length;for(let or=0;!ir&&or({u_matrix:le,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(le){let w=[];for(let q=0;q({u_depth:new a.aH(nr,fr.u_depth),u_terrain:new a.aH(nr,fr.u_terrain),u_terrain_dim:new a.aI(nr,fr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,fr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,fr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,fr.u_terrain_exaggeration)}))(w,Ht),this.binderUniforms=Q?Q.getUniforms(w,Ht):[]}draw(w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt){let it=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ue),mt){w.activeTexture.set(it.TEXTURE2),it.bindTexture(it.TEXTURE_2D,mt.depthTexture),w.activeTexture.set(it.TEXTURE3),it.bindTexture(it.TEXTURE_2D,mt.texture);for(let Ht in this.terrainUniforms)this.terrainUniforms[Ht].set(mt[Ht])}for(let Ht in this.fixedUniforms)this.fixedUniforms[Ht].set(rt[Ht]);Me&&Me.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let pt=0;switch(q){case it.LINES:pt=2;break;case it.TRIANGLES:pt=3;break;case it.LINE_STRIP:pt=1}for(let Ht of kr.get()){let nr=Ht.vaos||(Ht.vaos={});(nr[Ft]||(nr[Ft]=new tr)).bind(w,this,ir,Me?Me.getPaintVertexBuffers():[],or,Ht.vertexOffset,qe,Ve,lt),it.drawElements(q,Ht.primitiveLength*pt,it.UNSIGNED_SHORT,Ht.primitiveOffset*pt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ue=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),rt=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ue>>16,rt>>16],u_pixel_coord_lower:[65535&Ue,65535&rt]}}let en=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ue=[ue.x,ue.y,ue.z],rt=function(){var Ft=new a.A(9);return a.A!=Float32Array&&(Ft[1]=0,Ft[2]=0,Ft[3]=0,Ft[5]=0,Ft[6]=0,Ft[7]=0),Ft[0]=1,Ft[4]=1,Ft[8]=1,Ft}();ee.properties.get("anchor")==="viewport"&&function(Ft,ir){var or=Math.sin(ir),kr=Math.cos(ir);Ft[0]=kr,Ft[1]=or,Ft[2]=0,Ft[3]=-or,Ft[4]=kr,Ft[5]=0,Ft[6]=0,Ft[7]=0,Ft[8]=1}(rt,-w.transform.angle),function(Ft,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Ft[0]=kr*or[0]+Vr*or[3]+he*or[6],Ft[1]=kr*or[1]+Vr*or[4]+he*or[7],Ft[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ue,Ue,rt);let mt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ue,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[mt.r,mt.g,mt.b],u_vertical_gradient:+q,u_opacity:Q}},ii=(le,w,q,Q,ee,ue,Ue)=>a.e(en(le,w,q,Q),Ai(ue,w,Ue),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ue.tileSize/8}),Xi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Xi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ue;if(Q.paint.get("circle-pitch-alignment")==="map"){let rt=Di(q,1,ee.zoom);ue=!0,Ue=[rt,rt]}else ue=!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:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ue}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,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=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ue=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ue,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ue=le.lineAtlas,rt=ys(w,le.transform),mt=q.layout.get("line-cap")==="round",Ft=Ue.getDash(Q.from,mt),ir=Ue.getDash(Q.to,mt),or=Ft.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[rt/or,-Ft.height/2],u_patternscale_b:[rt/kr,-ir.height/2],u_sdfgamma:Ue.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Ft.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,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:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ue};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr)=>{let he=Ue.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="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:rt,u_label_plane_matrix:mt,u_coord_matrix:Ft,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he)=>{let Me=Ue.transform;return a.e(fo(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Me._pitch)*Me.cameraToCenterDistance:1,u_device_pixel_ratio:Ue.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ue,rt,mt,Ft){let ir=mt.imageManager.getPattern(Ue.from.toString()),or=mt.imageManager.getPattern(Ue.to.toString()),{width:kr,height:Vr}=mt.imageManager.getPixelSize(),he=Math.pow(2,Ft.tileID.overscaledZ),Me=Ft.tileSize*Math.pow(2,mt.transform.tileZoom)/he,qe=Me*(Ft.tileID.canonical.x+Ft.tileID.wrap*he),Ve=Me*Ft.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:rt.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:rt.fromScale,u_scale_b:rt.toScale,u_tile_units_to_pixels:1/Di(Ft,1,mt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,Ve>>16],u_pixel_coord_lower:[65535&qe,65535&Ve]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,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 ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.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 nr=a.H();a.aQ(nr,it.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,it.placementViewportMatrix),mt.push({circleArray:Ht,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Ft+=Ht.length/4,ir=Ft}pt&&rt.draw(ue,Ue.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),rn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,pt.layoutVertexBuffer,pt.indexBuffer,pt.segments,null,le.transform.zoom,null,null,pt.collisionVertexBuffer)}var or;if(!ee||!mt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Ft),Vr._trim();let he=0;for(let Ve of mt)for(let lt=0;lt=0&&(Ve[it.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Br(it.numGlyphs,Me)}if(Ft){qe.clear();let lt=le.icon.placedSymbolArray;for(let it=0;itle.style.map.terrain.getElevation(li,_t,hr):null,jt=q.layout.get("text-rotation-alignment")==="map";Ie(hn,li.posMatrix,le,ee,$u,Wu,Ve,Ft,jt,Me,li.toUnwrapped(),he.width,he.height,ju,st)}let Qu=li.posMatrix,ef=ee&&Ar||_f,Z=lt||ef?yo:$u,se=Ku,Pe=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ze;Ze=Ua?hn.iconsInText?ra(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,Sl,Pu,ri):mn(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,ee,Sl,!0,ri):fo(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,ee,Sl,ri);let et={program:Us,buffers:Zn,uniformValues:Ze,atlasTexture:Yl,atlasTextureIcon:nu,atlasInterpolation:Ol,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:Pe};if(Ht&&hn.canOverlap){nr=!0;let st=Zn.segments.get();for(let jt of st)Ir.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:et,terrainData:au})}else Ir.push({segments:Zn.segments,sortKey:0,state:et,terrainData:au})}nr&&Ir.sort((li,Ei)=>li.sortKey-Ei.sortKey);for(let li of Ir){let Ei=li.state;if(kr.activeTexture.set(Vr.TEXTURE0),Ei.atlasTexture.bind(Ei.atlasInterpolation,Vr.CLAMP_TO_EDGE),Ei.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Ei.atlasTextureIcon&&Ei.atlasTextureIcon.bind(Ei.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Ei.isSDF){let hn=Ei.uniformValues;Ei.hasHalo&&(hn.u_is_halo=1,Ca(Ei.buffers,li.segments,q,le,Ei.program,fr,ir,or,hn,li.terrainData)),hn.u_is_halo=0}Ca(Ei.buffers,li.segments,q,le,Ei.program,fr,ir,or,Ei.uniformValues,li.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ue,rt,mt,Ft){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ue,rt,rn.disabled,mt,Ft,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ue=Na.disabled,rt=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),mt=w.getBucket(q);if(!mt)return;let Ft=Q.key,ir=q.heatmapFbos.get(Ft);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Ft,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=mt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ue,rt,rn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ue=q.key,rt=w.heatmapFbos.get(Ue);rt&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,rt.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),rn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),rt.destroy(),w.heatmapFbos.delete(Ue))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ue=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ue),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let rt=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,mt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,mt,w,q,0,ue.RGBA,rt,null);let Ft=le.createFramebuffer(w,q,!1,!1);return Ft.colorAttachment.set(Ue),Ft}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ue=ue[q.to.toString()],rt=ue[q.from.toString()];if(!Ue&&rt&&(Ue=rt),!rt&&Ue&&(rt=Ue),!Ue||!rt){let mt=ee.getPaintProperty(w);Ue=ue[mt],rt=ue[mt]}Ue&&rt&&le.setConstantPatternPositions(Ue,rt)}function ts(le,w,q,Q,ee,ue,Ue){let rt=le.context.gl,mt="fill-pattern",Ft=q.paint.get(mt),ir=Ft&&Ft.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Me,qe;Ue?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=rt.LINES):(Vr=ir?"fillPattern":"fill",kr=rt.TRIANGLES);let Ve=Ft.constantOr(null);for(let lt of Q){let it=w.getTile(lt);if(ir&&!it.patternsLoaded())continue;let pt=it.getBucket(q);if(!pt)continue;let Ht=pt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Ht),fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(rt.TEXTURE0),it.imageAtlasTexture.bind(rt.LINEAR,rt.CLAMP_TO_EDGE),Ht.updatePaintBuffers(or)),To(Ht,mt,Ve,it,q);let Ar=fr?lt:null,Ir=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,it,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ue){Me=pt.indexBuffer2,qe=pt.segments2;let ri=[rt.drawingBufferWidth,rt.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Ir,le,or,it,ri):Mn(Ir,ri)}else Me=pt.indexBuffer,qe=pt.segments,he=ir?aa(Ir,le,or,it):Xi(Ir);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,rn.disabled,he,fr,q.id,pt.layoutVertexBuffer,Me,qe,q.paint,le.transform.zoom,Ht)}}function Wo(le,w,q,Q,ee,ue,Ue){let rt=le.context,mt=rt.gl,Ft="fill-extrusion-pattern",ir=q.paint.get(Ft),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Me of Q){let qe=w.getTile(Me),Ve=qe.getBucket(q);if(!Ve)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Me),it=Ve.programConfigurations.get(q.id),pt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",it);or&&(le.context.activeTexture.set(mt.TEXTURE0),qe.imageAtlasTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),it.updatePaintBuffers(kr)),To(it,Ft,he,qe,q);let Ht=le.translatePosMatrix(Me.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),fr=or?ii(Ht,le,nr,Vr,Me,kr,qe):en(Ht,le,nr,Vr);pt.draw(rt,rt.gl.TRIANGLES,ee,ue,Ue,rn.backCCW,fr,lt,q.id,Ve.layoutVertexBuffer,Ve.indexBuffer,Ve.segments,q.paint,le.transform.zoom,it,le.style.map.terrain&&Ve.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ue){let rt=le.context,mt=rt.gl,Ft=q.fbo;if(!Ft)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);rt.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,Ft.colorAttachment.get()),ir.draw(rt,mt.TRIANGLES,ee,ue,Ue,rn.disabled,((kr,Vr,he,Me)=>{let qe=he.paint.get("hillshade-shadow-color"),Ve=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),it=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(it-=kr.transform.angle);let pt=!kr.options.moving;return{u_matrix:Me?Me.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),it],u_shadow:qe,u_highlight:Ve,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ue=le.context,rt=Ue.gl,mt=w.dem;if(mt&&mt.data){let Ft=mt.dim,ir=mt.stride,or=mt.getPixels();if(Ue.activeTexture.set(rt.TEXTURE1),Ue.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(rt.NEAREST,rt.CLAMP_TO_EDGE)}else w.demTexture=new m(Ue,or,rt.RGBA,{premultiply:!1}),w.demTexture.bind(rt.NEAREST,rt.CLAMP_TO_EDGE);Ue.activeTexture.set(rt.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ue,{width:Ft,height:Ft,data:null},rt.RGBA);Vr.bind(rt.LINEAR,rt.CLAMP_TO_EDGE),kr=w.fbo=Ue.createFramebuffer(Ft,Ft,!0,!1),kr.colorAttachment.set(Vr.texture)}Ue.bindFramebuffer.set(kr.framebuffer),Ue.viewport.set([0,0,Ft,Ft]),le.useProgram("hillshadePrepare").draw(Ue,rt.TRIANGLES,Q,ee,ue,rn.disabled,((Vr,he)=>{let Me=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:[Me,Me],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,mt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ue=Q.paint.get("raster-fade-duration");if(!ue&&Ue>0){let rt=l.now(),mt=(rt-le.timeAdded)/Ue,Ft=w?(rt-w.timeAdded)/Ue:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?mt:1-Ft,0,1);return le.refreshedUponExpiration&&mt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,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(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ue=le.context,rt=Ue.gl;rt.enable(rt.SCISSOR_TEST),rt.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ue.clear({color:ue}),rt.disable(rt.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ue=le.useProgram("debug"),rt=sa.disabled,mt=Na.disabled,Ft=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Me=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(Ve,lt){Ve.initDebugOverlayCanvas();let it=Ve.debugOverlayCanvas,pt=Ve.context.gl,Ht=Ve.debugOverlayCanvas.getContext("2d");Ht.clearRect(0,0,it.width,it.height),Ht.shadowColor="white",Ht.shadowBlur=2,Ht.lineWidth=1.5,Ht.strokeStyle="white",Ht.textBaseline="top",Ht.font="bold 36px Open Sans, sans-serif",Ht.fillText(lt,5,5),Ht.strokeText(lt,5,5),Ve.debugOverlayTexture.update(it),Ve.debugOverlayTexture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ue.draw(Q,ee.TRIANGLES,rt,mt,lo.alphaBlended,rn.disabled,oa(ue,a.aM.transparent,Me),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ue.draw(Q,ee.LINE_STRIP,rt,mt,Ft,rn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ue=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),rt=le.useProgram("terrain"),mt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Ft of q){let ir=le.renderToTexture.getTexture(Ft),or=w.getTerrainData(Ft.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Ft.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Ft.tileID.toUnwrapped()),Me=pr(kr,Vr,he,le.style.sky,le.transform.pitch);rt.draw(Q,ee.TRIANGLES,Ue,Na.disabled,ue,rn.backCCW,Me,or,"terrain",mt.vertexBuffer,mt.indexBuffer,mt.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=nt.maxUnderzooming+nt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new nn}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,bi.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,bi.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 ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,bi.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 rt=new a.aY;rt.emplaceBack(0,1,2),rt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(rt);let mt=this.context.gl;this.stencilClearMode=new Na({func:mt.ALWAYS,mask:0},0,255,mt.ZERO,mt.ZERO,mt.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,rn.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 ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ue of q){let rt=this._tileClippingMaskIDs[Ue.key]=this.nextStencilID++,mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ue);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},rt,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,rn.disabled,ka(Ue.posMatrix),mt,"$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,rt)=>rt.overscaledZ-Ue.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ue={};for(let rt=0;rt({u_sky_color:Ve.properties.get("sky-color"),u_horizon_color:Ve.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*it,u_sky_horizon_blend:Ve.properties.get("sky-horizon-blend")*lt.height/2*it}))(Ft,mt.style.map.transform,mt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Me=mt.colorModeForRenderPass(),qe=mt.useProgram("sky");if(!Ft.mesh){let Ve=new a.aX;Ve.emplaceBack(-1,-1),Ve.emplaceBack(1,-1),Ve.emplaceBack(1,1),Ve.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Ft.mesh=new Ma(ir.createVertexBuffer(Ve,bi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,Ve.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Me,rn.disabled,kr,void 0,"sky",Ft.mesh.vertexBuffer,Ft.mesh.indexBuffer,Ft.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 mt=this.style._layers[Q[this.currentLayer]],Ft=ee[mt.source],ir=ue[mt.source];this._renderTileClippingMasks(mt,ir),this.renderLayer(this,Ft,mt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Ft.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Me=qe=>{(!or||or.getSource().maxzoomMe(qe)),or||he.forEach(qe=>Me(qe)),or}(this.style,this.transform.zoom);mt&&function(Ft,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ue){let rt=ue.context,mt=rt.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ue.getTerrainMesh(),kr=Ue.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");rt.bindFramebuffer.set(Ue.getFramebuffer("depth").framebuffer),rt.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),rt.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Me=Ue.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ue.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(rt,mt.TRIANGLES,ir,Na.disabled,Ft,rn.backCCW,qe,Me,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}rt.bindFramebuffer.set(null),rt.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ue){let rt=ue.context,mt=rt.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ue.getTerrainMesh(),kr=Ue.getCoordsTexture(),Vr=Ue.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");rt.bindFramebuffer.set(Ue.getFramebuffer("coords").framebuffer),rt.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),rt.clear({color:a.aM.transparent,depth:1}),Ue.coordsIndex=[];for(let Me of Vr){let qe=Ue.getTerrainData(Me.tileID);rt.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,kr.texture);let Ve={u_matrix:ue.transform.calculatePosMatrix(Me.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ue.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ue.getMeshFrameDelta(ue.transform.zoom)};he.draw(rt,mt.TRIANGLES,ir,Na.disabled,Ft,rn.backCCW,Ve,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ue.coordsIndex.push(Me.tileID.key)}rt.bindFramebuffer.set(null),rt.viewport.set([0,0,ue.width,ue.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(ue,Ue,rt,mt,Ft){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(rt._unevaluatedLayout.hasValue("text-variable-anchor")||rt._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Me,qe,Ve,lt,it,pt){let Ht=Vr.transform,nr=Vi(),fr=qe==="map",Ar=Ve==="map";for(let Ir of kr){let ri=Me.getTile(Ir),li=ri.getBucket(he);if(!li||!li.text||!li.text.segments.get().length)continue;let Ei=a.ag(li.textSizeData,Ht.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=yr(Ir.posMatrix,Ar,fr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&li.hasIconData();if(Ei){let Ua=Math.pow(2,Ht.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Ir,Us,ml):null,vl=nr.translatePosition(Ht,ri,lt,it);Dn(li,fr,Ar,pt,Ht,Zn,Ir.posMatrix,Ua,Ei,Yn,nr,vl,Ir.toUnwrapped(),Fo)}}}(mt,ue,rt,Ue,rt.layout.get("text-rotation-alignment"),rt.layout.get("text-pitch-alignment"),rt.paint.get("text-translate"),rt.paint.get("text-translate-anchor"),Ft),rt.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ue,rt,mt,!1,rt.paint.get("icon-translate"),rt.paint.get("icon-translate-anchor"),rt.layout.get("icon-rotation-alignment"),rt.layout.get("icon-pitch-alignment"),rt.layout.get("icon-keep-upright"),ir,or),rt.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ue,rt,mt,!0,rt.paint.get("text-translate"),rt.paint.get("text-translate-anchor"),rt.layout.get("text-rotation-alignment"),rt.layout.get("text-pitch-alignment"),rt.layout.get("text-keep-upright"),ir,or),Ue.map.showCollisionBoxes&&(to(ue,Ue,rt,mt,!0),to(ue,Ue,rt,mt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ue,rt,mt){if(ue.renderPass!=="translucent")return;let Ft=rt.paint.get("circle-opacity"),ir=rt.paint.get("circle-stroke-width"),or=rt.paint.get("circle-stroke-opacity"),kr=!rt.layout.get("circle-sort-key").isConstant();if(Ft.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Me=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,Ve=ue.colorModeForRenderPass(),lt=[];for(let it=0;itit.sortKey-pt.sortKey);for(let it of lt){let{programConfiguration:pt,program:Ht,layoutVertexBuffer:nr,indexBuffer:fr,uniformValues:Ar,terrainData:Ir}=it.state;Ht.draw(Vr,he.TRIANGLES,Me,qe,Ve,rn.disabled,Ar,Ir,rt.id,nr,fr,it.segments,rt.paint,ue.transform.zoom,pt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ue,rt,mt){if(rt.paint.get("heatmap-opacity")===0)return;let Ft=ue.context;if(ue.style.map.terrain){for(let ir of mt){let or=Ue.getTile(ir);Ue.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,rt,ir):ue.renderPass==="translucent"&&Ts(ue,rt,ir))}Ft.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Me=he.gl,qe=Na.disabled,Ve=new lo([Me.ONE,Me.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,it,pt){let Ht=lt.gl;lt.activeTexture.set(Ht.TEXTURE1),lt.viewport.set([0,0,it.width/4,it.height/4]);let nr=pt.heatmapFbos.get(a.aU);nr?(Ht.bindTexture(Ht.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,it.width/4,it.height/4),pt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Ft.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ft.extTextureFilterAnisotropicMax);let li=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Ei=li?lt:null,hn=Ei?Ei.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),Ve),Zn=ls(hn,Ir||[0,0],Ar||1,fr,rt);or instanceof Ct?kr.draw(Ft,ir.TRIANGLES,it,Na.disabled,Vr,rn.disabled,Zn,li,rt.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Ft,ir.TRIANGLES,it,he[lt.overscaledZ],Vr,rn.disabled,Zn,li,rt.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ue,rt,mt){let Ft=rt.paint.get("background-color"),ir=rt.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Me=rt.paint.get("background-pattern");if(ue.isPatternMissing(Me))return;let qe=!Me&&Ft.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let Ve=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),it=ue.colorModeForRenderPass(),pt=ue.useProgram(Me?"backgroundPattern":"background"),Ht=mt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Me&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=rt.getCrossfadeParameters();for(let fr of Ht){let Ar=mt?fr.posMatrix:ue.transform.calculatePosMatrix(fr.toUnwrapped()),Ir=Me?ws(Ar,ir,ue,Me,{tileID:fr,tileSize:he},nr):wa(Ar,ir,Ft),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(fr);pt.draw(or,kr.TRIANGLES,lt,Ve,it,rn.disabled,Ir,ri,rt.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ue,rt){let mt=ue.context,Ft=rt.implementation;if(ue.renderPass==="offscreen"){let ir=Ft.prerender;ir&&(ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),ir.call(Ft,mt.gl,ue.transform.customLayerMatrix()),mt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),mt.setStencilMode(Na.disabled);let ir=Ft.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);mt.setDepthMode(ir),Ft.render(mt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),mt.setDirty(),ue.setBaseState(),mt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ue=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ue){let Ft=Math.sin(Ue),ir=Math.cos(Ue);Q=[Q[0]*ir-Q[1]*Ft,Q[0]*Ft+Q[1]*ir]}let rt=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],mt=new Float32Array(16);return a.J(mt,w,rt),mt}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),ue=[[-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(rt=>{let mt=1/(rt=a.af([],rt,w))[3]/q*ee;return a.b1(rt,rt,[mt,mt,1/rt[3],mt])}),Ue=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(rt=>{let mt=function(kr,Vr){var he=Vr[0],Me=Vr[1],qe=Vr[2],Ve=he*he+Me*Me+qe*qe;return Ve>0&&(Ve=1/Math.sqrt(Ve)),kr[0]=Vr[0]*Ve,kr[1]=Vr[1]*Ve,kr[2]=Vr[2]*Ve,kr}([],function(kr,Vr,he){var Me=Vr[0],qe=Vr[1],Ve=Vr[2],lt=he[0],it=he[1],pt=he[2];return kr[0]=qe*pt-Ve*it,kr[1]=Ve*lt-Me*pt,kr[2]=Me*it-qe*lt,kr}([],L([],ue[rt[0]],ue[rt[1]]),L([],ue[rt[2]],ue[rt[1]]))),Ft=-((ir=mt)[0]*(or=ue[rt[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return mt.concat(Ft)});return new ho(ue,Ue)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[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 ue=0;ue=0&&Ue++;if(Ue===0)return 0;Ue!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ue=-Number.MAX_VALUE;for(let rt=0;rtthis.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,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,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,ue){var Ue=ee[0],rt=ee[1],mt=ee[2],Ft=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ue*or+mt*ir,Q[1]=rt*or+Ft*ir,Q[2]=Ue*-ir+mt*or,Q[3]=rt*-ir+Ft*or}(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)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ue=this.pointCoordinate(new a.P(0,this.height)),rt=Math.floor(Math.min(Q.x,ee.x,ue.x,Ue.x)),mt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ue.x)),Ft=1;for(let ir=rt-Ft;ir<=mt+Ft;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ue=this.pointCoordinate(this.getCameraPoint()),rt=a.Z.fromLngLat(this.center),mt=Math.pow(2,ee),Ft=[mt*Ue.x,mt*Ue.y,0],ir=[mt*rt.x,mt*rt.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=it=>({aabb:new gs([it*mt,0,0],[(it+1)*mt,mt,0]),zoom:0,x:0,y:0,wrap:it,fullyVisible:!1}),Me=[],qe=[],Ve=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let it=1;it<=3;it++)Me.push(he(-it)),Me.push(he(it));for(Me.push(he(0));Me.length>0;){let it=Me.pop(),pt=it.x,Ht=it.y,nr=it.fullyVisible;if(!nr){let li=it.aabb.intersects(or);if(li===0)continue;nr=li===2}let fr=w.terrain?Ft:ir,Ar=it.aabb.distanceX(fr),Ir=it.aabb.distanceY(fr),ri=Math.max(Math.abs(Ar),Math.abs(Ir));if(it.zoom===Ve||ri>Vr+(1<=kr){let li=Ve-it.zoom,Ei=Ft[0]-.5-(pt<>1),Zn=it.zoom+1,Yn=it.aabb.quadrant(li);if(w.terrain){let Ua=new a.S(Zn,it.wrap,Zn,Ei,hn),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])}Me.push({aabb:Yn,zoom:Zn,x:Ei,y:hn,wrap:it.wrap,fullyVisible:nr})}}return qe.sort((it,pt)=>it.distanceSq-pt.distanceSq).map(it=>it.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),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ue=Q+q-ue,rt=Math.cos(this._pitch)*this.cameraToCenterDistance/Ue/a.b5(1,ee.lat),mt=this.scaleZoom(rt/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=mt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ue=new a.Z(ue.x-(Q.x-ee.x),ue.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 kr=q.pointCoordinate(w);if(kr!=null)return kr}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 ue=Q[3],Ue=ee[3],rt=Q[1]/ue,mt=ee[1]/Ue,Ft=Q[2]/ue,ir=ee[2]/Ue,or=Ft===ir?0:(0-Ft)/(ir-Ft);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ue,or)/this.worldSize,a.y.number(rt,mt,or)/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,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),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 it=179.9999999999;ee=[-it,it]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ue=0,rt=ue,mt=0,Ft=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let it=this.latRange;Ue=a.Q(it[1])*ue,rt=a.Q(it[0])*ue,rt-Uert&&(Ve=rt-it)}if(ee){let it=(mt+Ft)/2,pt=he;this._renderWorldCopies&&(pt=a.b3(he,it-ue/2,it+ue/2));let Ht=kr/2;pt-HtFt&&(qe=Ft-Ht)}if(qe!==void 0||Ve!==void 0){let it=new a.P(qe!=null?qe:he,Ve!=null?Ve:Me);Q.center=this.unproject.call({worldSize:ue},it).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 ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ue=Math.min(this.elevation,this.minElevationForCurrentTile),rt=ue-Ue*this._pixelPerMeter/Math.cos(this._pitch),mt=Ue<0?rt:ue,Ft=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*mt/Math.sin(a.ac(Math.PI-Ft-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*mt/Math.sin(a.ac(Math.PI-Ft-Vr,.01,Math.PI-.01)),Me=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Me+mt),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,ue,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,Ve=this.height%2/2,lt=Math.cos(this.angle),it=Math.sin(this.angle),pt=q-Math.round(q)+lt*qe+it*Ve,Ht=Q-Math.round(Q)+lt*Ve+it*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[pt>.5?pt-1:pt,Ht>.5?Ht-1:Ht,0]),this.alignedModelViewProjectionMatrix=nr,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,ue=q.x,Ue=q.y;for(let rt of w)Q=Math.min(Q,rt.x),ee=Math.min(ee,rt.y),ue=Math.max(ue,rt.x),Ue=Math.max(Ue,rt.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,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(le,w){let q,Q=!1,ee=null,ue=null,Ue=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ue,w),Q=!1)};return(...rt)=>(Q=!0,ue=this,q=rt,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 ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ue=window.location.href.replace(/(#.+)?$/,ue);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),ue=Math.pow(10,ee),Ue=Math.round(q.lng*ue)/ue,rt=Math.round(q.lat*ue)/ue,mt=this._map.getBearing(),Ft=this._map.getPitch(),ir="";if(ir+=w?`/${Ue}/${rt}/${Q}`:`${Q}/${rt}/${Ue}`,(mt||Ft)&&(ir+="/"+Math.round(10*mt)/10),Ft&&(ir+=`/${Math.round(Ft)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Me=he.split("=")[0];return Me===or?(kr=!0,`${Me}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=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:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(mt)),rt=ue.reduce((mt,Ft,ir,or)=>mt.add(Ft.div(or.length)),new a.P(0,0));super(w,{points:ue,point:rt,lngLats:Ue,lngLat:q.unproject(rt),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)ue.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(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.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 ue=new a.P(0,0);for(let Ue of ee)ue._add(Ue);return ue.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 ue in this.touches){let Ue=ee[ue];(!Ue||Ue.dist(this.touches[ue])>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 ue=w.timeStamp-this.lastTime<500,Ue=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&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),ue=this._zoomOut.touchend(w,q,Q),Ue=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:rt=>rt.easeTo({duration:300,zoom:Ue.zoom+1,around:Ue.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:rt=>rt.easeTo({duration:300,zoom:Ue.zoom-1,around:Ue.unproject(ue)},{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){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,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,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,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,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,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),ue=new a.P(0,0),Ue=new a.P(0,0),rt=0;for(let Ft in ee){let ir=ee[Ft],or=this._touches[Ft];or&&(ue._add(ir),Ue._add(ir.sub(or)),rt++,ee[Ft]=ir)}if(this._touches=ee,this._shouldBePrevented(rt)||!Ue.mag())return;let mt=Ue.div(rt);return this._sum._add(mt),this._sum.mag()Math.abs(le.x)}class Bs 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]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)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 Tt={panStep:100,bearingStep:15,pitchStep:10};class Vt{constructor(w){this._tr=new go(w);let q=Tt;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,ue=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(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=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:rt=>{let mt=this._tr;rt.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(mt.zoom)+q*(w.shiftKey?2:1):mt.zoom,bearing:mt.bearing+Q*this._bearingStep,pitch:mt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ue*this._panStep],center:mt.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 wr(le){return le*(2-le)}let mr=4.000244140625;class Fr{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%mr==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 mt=this._type==="wheel"&&Math.abs(this._delta)>mr?this._wheelZoomRate:this._defaultZoomRate,Ft=2/(1+Math.exp(-Math.abs(this._delta*mt)));this._delta<0&&Ft!==0&&(Ft=1/Ft);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Ft))),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,ue,Ue=!1,rt=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&rt){let mt=Math.min(rt/200,1),Ft=ee(mt);ue=a.y.number(Q,q,Ft),mt<1?this._frameId||(this._frameId=!0):Ue=!0}else ue=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:ue-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,ue=Q.easing(ee+.01)-Q.easing(ee),Ue=.27/Math.sqrt(ue*ue+1e-4)*.01,rt=Math.sqrt(.0729-Ue*Ue);q=a.b8(Ue,rt,.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 _i{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 Si{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 Ci{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],ue=w.timeStamp-this._tapTime<500,Ue=this._tapPoint.dist(ee)<30;ue&&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],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/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 Pi{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 di{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 ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),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 Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Mi extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ue=ee.type==="renderFrame"?void 0:ee,rt={needsRenderFrame:!1},mt={},Ft={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Me,handler:qe,allowed:Ve}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Ft,Ve,Me)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(rt,mt,lt,Me,Ue),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Ft[Me]=qe)}let Vr={};for(let Me in this._previousActiveHandlers)Ft[Me]||(Vr[Me]=Ue);this._previousActiveHandlers=Ft,(Object.keys(Vr).length||Gn(rt))&&(this._changes.push([rt,mt,Vr]),this._triggerRenderFrame()),(Object.keys(Ft).length||Gn(rt))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=rt;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,ue,Ue]of this._listeners)f.addEventListener(ee,ue,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 ue=q.cooperativeGestures=new di(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ue=new Io(q),rt=new Si(q);q.doubleClickZoom=new _i(rt,Ue),this._add("tapZoom",Ue),this._add("clickZoom",rt),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let mt=new Ci;this._add("tapDragZoom",mt);let Ft=q.touchPitch=new Bs(q);this._add("touchPitch",Ft),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:it})=>{let pt=new fs({checkCorrectEvent:Ht=>f.mouseButton(Ht)===0&&!Ht.ctrlKey});return new Da({clickTolerance:it,move:(Ht,nr)=>({around:nr,panDelta:nr.sub(Ht)}),activateOnStart:!0,moveStateManager:pt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ki(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Me=new Ms;q.touchZoomRotate=new Pi(Q,Me,he,mt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Me,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Fr(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let Ve=q.keyboard=new Vt(q);this._add("keyboard",Ve),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!!Li(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,ue){if(!Q)return;a.e(w,Q);let Ue={handlerName:ee,originalEvent:Q.originalEvent||ue};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,ue,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,ue),a.e(Q,Ue);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ue=ee.terrain;if(!(Gn(w)||Ue&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:rt,zoomDelta:mt,bearingDelta:Ft,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(rt?or.sub(rt):or);Ft&&(ue.bearing+=Ft),ir&&(ue.pitch+=ir),mt&&(ue.zoom+=mt),Ue?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(rt)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ue={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ue[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ue)this._fireEvent(or,Ue[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let rt={},mt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],mt=q[kr]||Vr,rt[`${or}end`]=mt)}for(let or in rt)this._fireEvent(or,rt[or]);let Ft=Li(this._eventsInProgress),ir=(ee||ue)&&!Ft;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Mi("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(ue,qe,fr)),this._rotating&&(ee.bearing=a.y.number(Ue,Ft,fr)),this._pitching&&(ee.pitch=a.y.number(rt,ir,fr)),this._padding&&(ee.interpolatePadding(mt,or,fr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(fr),pt)ee.setLocationAtPoint(pt,Ht);else{let Ar=ee.zoomScale(ee.zoom-ue),Ir=qe>ue?Math.min(2,it):Math.max(.5,it),ri=Math.pow(Ir,1-fr),li=ee.unproject(Ve.add(lt.mult(fr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?li.wrap():li,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},fr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,fr)},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 ue=Q.clone(),{center:Ue,zoom:rt,pitch:mt,bearing:Ft,elevation:ir}=ee(ue);Ue&&(ue.center=Ue),rt!==void 0&&(ue.zoom=rt),mt!==void 0&&(ue.pitch=mt),Ft!==void 0&&(ue.bearing=Ft),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}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,ue=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)),ue&&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(),ue=ee.zoom,Ue=ee.bearing,rt=ee.pitch,mt=ee.padding,Ft="bearing"in w?this._normalizeBearing(w.bearing,Ue):Ue,ir="pitch"in w?+w.pitch:rt,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Me,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Me,ee);let Ve=ee.zoomScale(qe-ue),lt=ee.project(he),it=ee.project(Me).sub(lt),pt=w.curve,Ht=Math.max(ee.width,ee.height),nr=Ht/Ve,fr=it.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Ht/ee.zoomScale(Ua-ue);pt=Math.sqrt(Fo/fr*2)}let Ar=pt*pt;function Ir(Ua){let Fo=(nr*nr-Ht*Ht+(Ua?-1:1)*Ar*Ar*fr*fr)/(2*(Ua?nr:Ht)*Ar*fr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function li(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Ei=Ir(!1),hn=function(Ua){return li(Ei)/li(Ei+pt*Ua)},Zn=function(Ua){return Ht*((li(Ei)*(ri(Fo=Ei+pt*Ua)/li(Fo))-ri(Ei))/Ar)/fr;var Fo},Yn=(Ir(!0)-Ei)/pt;if(Math.abs(fr)<1e-6||!isFinite(Yn)){if(Math.abs(Ht-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*pt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/pt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ue!==Ft,this._pitching=ir!==rt,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Me),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ue,Ft,Ua)),this._pitching&&(ee.pitch=a.y.number(rt,ir,Ua)),this._padding&&(ee.interpolatePadding(mt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Me:ee.unproject(lt.add(it.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),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 ue=q[ee];if(ue.used||ue.usedForTerrain){let Ue=ue.getSource();Ue.attribution&&w.indexOf(Ue.attribution)<0&&w.push(Ue.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ue=ue+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 vt(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 ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ue=ee.canonical.z-w.canonical.z,rt=ee.canonical.x-(ee.canonical.x>>Ue<>Ue<>Ue;a.aP(ue.posMatrix,0,Ft,0,Ft,0,1),a.J(ue.posMatrix,ue.posMatrix,[-rt*Ft,-mt*Ft,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ue=w.canonical.z-ee.canonical.z,rt=w.canonical.x-(w.canonical.x>>Ue<>Ue<>Ue;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[rt*Ft,mt*Ft,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ue,1/2**Ue,0]),q[Q]=ue}}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&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}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 ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ue=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>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,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ue=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),rt=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,rt-Ue-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let mt=q[0]+(q[2]>>4<<8),Ft=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(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 ue of ee){let Ue=this.terrain.sourceCache.getTerrainCoords(ue);for(let rt in Ue)this._coordsDescendingInv[Q][rt]||(this._coordsDescendingInv[Q][rt]=[]),this._coordsDescendingInv[Q][rt].push(Ue[rt])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ue in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ue]=this._coordsDescendingInv[ue][Ue].map(rt=>rt.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==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 ue=this._stacks.length-1,Ue=this._stacks[ue]||[];for(let rt of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(rt),rt.rtt[ue]){let Ft=this.pool.getObjectForId(rt.rtt[ue].id);if(Ft.stamp===rt.rtt[ue].stamp){this.pool.useObject(Ft);continue}}let mt=this.pool.getOrCreateFreeObject();this.pool.useObject(mt),this.pool.stampObject(mt),rt.rtt[ue]={id:mt.id,stamp:mt.stamp},Q.context.bindFramebuffer.set(mt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Ft=0;Ft{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.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(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ue,clickTolerance:rt,bearingDegreesPerPixelMoved:mt=.8})=>{let Ft=new cl;return new Da({clickTolerance:rt,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*mt}),moveStateManager:Ft,enable:Ue,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ue,clickTolerance:rt,pitchDegreesPerPixelMoved:mt=-.5})=>{let Ft=new cl;return new Da({clickTolerance:rt,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*mt}),moveStateManager:Ft,enable:Ue,assignEvents:Vl})})({clickTolerance:ue,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:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}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:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}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(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ue=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le: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(le,w,q){let Q=le.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 ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`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} ${ue}`),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 ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ue=f.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");let rt=f.createNS("http://www.w3.org/2000/svg","g");rt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),rt.setAttributeNS(null,"fill","#000000");let mt=[{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 Ve of mt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",Ve.rx),lt.setAttributeNS(null,"ry",Ve.ry),rt.appendChild(lt)}let Ft=f.createNS("http://www.w3.org/2000/svg","g");Ft.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.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"),Ft.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.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"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.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 Me=f.createNS("http://www.w3.org/2000/svg","circle");Me.setAttributeNS(null,"fill","#000000"),Me.setAttributeNS(null,"opacity","0.25"),Me.setAttributeNS(null,"cx","5.5"),Me.setAttributeNS(null,"cy","5.5"),Me.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(Me),he.appendChild(qe),Ue.appendChild(rt),Ue.appendChild(Ft),Ue.appendChild(or),Ue.appendChild(Vr),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,ue=ee.terrain.depthAtPoint(this._pos),Ue=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ue)-ue<.006)return void(this._element.style.opacity=this._opacity);let rt=-this._offset.y/ee.transform._pixelPerMeter,mt=Math.sin(ee.getPitch()*Math.PI/180)*rt,Ft=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ue+mt)-Ft>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?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(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ue=le.unproject([Q,ee]),rt=ue.distanceTo(Ue);if(q&&q.unit==="imperial"){let mt=3.2808*rt;mt>5280?ms(w,Q,mt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,mt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,rt/1852,le._getUIString("ScaleControl.NauticalMiles")):rt>=1e3?ms(w,Q,rt/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,rt,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ue=Math.pow(10,`${Math.floor(ue)}`.length-1),rt=ue/Ue;return rt=rt>=10?10:rt>=5?5:rt>=3?3:rt>=2?2:rt>=1?1:function(mt){let Ft=Math.pow(10,Math.ceil(-Math.log(mt)/Math.LN10));return Math.round(mt*Ft)/Ft}(rt),Ue*rt}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={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(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);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(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.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=Mt,i.CooperativeGesturesHandler=di,i.DoubleClickZoomHandler=_i,i.DragPanHandler=Ki,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){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,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.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(le){return this._map=le,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 le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_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(le){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(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ue=ce.fromLngLat(q,Q);this._map.fitBounds(Ue,ue,{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,le)}onAdd(le){return this._map=le,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(le){let w=this._map.getMaxBounds(),q=le.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 le=this._map.getBounds(),w=le.getSouthEast(),q=le.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 le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}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=Ct,i.KeyboardHandler=Vt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);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(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.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=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.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(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let rt=this.painter.context.gl;this._maxCanvasSize=[rt.drawingBufferWidth,rt.drawingBufferHeight];let mt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,mt),this.painter.resize(Q,ee,mt)}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",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ue&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ue=w*ee;return Math.min(ue>q?q/ue:1,Ue>Q?Q/Ue:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ue=w.filter(mt=>this.getLayer(mt)),rt=Ue.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ue}):[];rt.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:rt}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ue=>{let rt=w.filter(mt=>this.getLayer(mt));(rt.length!==0?this.queryRenderedFeatures(Ue.point,{layers:rt}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ue.originalEvent)))},mouseout:Ue=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ue.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(rt=>this.getLayer(rt)),Ue=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ue.length&&(ee.features=Ue,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ue))){for(let Ue in ue.delegates)this.off(Ue,ue.delegates[Ue]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ue=ee.delegates[ue];ee.delegates[ue]=(...rt)=>{this._removeDelegatedListener(le,Q,q),Ue(...rt)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ue=a.P.convert(ee[1]);q=[ue,new a.P(Ue.x,ue.y),Ue,new a.P(ue.x,Ue.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,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(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,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(le,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(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.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,le),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!==le.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:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft}=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:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);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:ue,data:Ue}=Q;if(ee===void 0||ue===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||ue!==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 rt=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ue,rt),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);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",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ue=>{ue[Ue]=f.create("div",`maplibregl-ctrl-${Ue} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={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:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);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(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ue=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),rt=Ue.crossFadingFactor();rt===1&&rt===this._crossFadingFactor||(q=!0,this._crossFadingFactor=rt),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 le;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),(le=this._resizeObserver)===null||le===void 0||le.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(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,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(le){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,le),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(le){return this._map=le,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(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){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 rt of this.options.className.split(" "))this._container.classList.add(rt);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,ue=Gl(this.options.offset);if(!ee){let rt=this._container.offsetWidth,mt=this._container.offsetHeight,Ft;Ft=Q.y+ue.bottom.ythis._map.transform.height-mt?["bottom"]:[],Q.xthis._map.transform.width-rt/2&&Ft.push("right"),ee=Ft.length===0?"bottom":Ft.join("-")}let Ue=Q.add(ue[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(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,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(le){return this._lngLat=a.N.convert(le),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(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){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(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_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 le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=qt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(le){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),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.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=Fr,i.Style=xn,i.TerrainControl=class{constructor(le){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=le}onAdd(le){return this._map=le,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=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=Qe,i.VideoSource=wt,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Bt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=de;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(ge),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 At().getRTLTextPluginStatus()},i.getVersion=function(){return Nl},i.getWorkerCount=function(){return ze.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Se().broadcast("IS",le)},i.prewarm=function(){ke().acquire(ge)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return At().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){ze.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var rje=Te((Ewr,tje)=>{"use strict";var pw=ei(),ZZt=Wf().sanitizeHTML,YZt=GJ(),$We=Px();function QWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=$We.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sm=QWe.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=TB(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,!!TB(e)){var r=KZt(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 eje(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=YZt(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 KZt(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=ZZt(e.sourceattribution)),n}tje.exports=function(t,r,n){var i=new QWe(t,r);return i.update(n),i}});var fje=Te((kwr,uje)=>{"use strict";var YJ=JWe(),KJ=ei(),aje=hx(),ije=$l(),JZt=wu(),$Zt=xp(),SB=Xc(),oje=Cm(),QZt=oje.drawMode,eYt=oje.selectMode,tYt=oh().prepSelect,rYt=oh().clearOutline,iYt=oh().clearSelectionsCache,nYt=oh().selectOnClick,vw=Px(),aYt=rje();function sje(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=sje.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=lje(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new YJ.Map({container:i.div,style:o.style,center:JJ(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 YJ.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(aje.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=lje(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(aje.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&&nYt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&SB.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=KJ.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)||QZt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){tYt(u,l,f,t.dragOptions,a)},$Zt.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 $J=ei(),sYt=B_(),lYt=Kd(),cje=Qk();hje.exports=function(t,r,n){sYt(t,r,n,{type:"map",attributes:cje,handleDefaults:uYt,partition:"y"})};function uYt(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,lYt(e,t,{name:"layers",handleItemDefaults:fYt}),t._input=e}function fYt(e,t){function r(u,l){return $J.coerce(e,t,cje.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",$J.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"),$J.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var EB=Te(u0=>{"use strict";var MB=ei(),pje=MB.strTranslate,cYt=MB.strScale,hYt=Rd().getSubplotCalcData,dYt=jv(),pYt=Jl(),vje=Mu(),vYt=Wf(),mYt=fje(),zx="map";u0.name=zx;u0.attr="subplot";u0.idRoot=zx;u0.idRegex=u0.attrRegex=MB.counterRegex(zx);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=Qk();u0.supplyLayoutDefaults=dje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[zx],a=0;a_/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(vYt.convertToTspans,e),p=vje.bBox(d.node())}d.attr("transform",pje(-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>_&&(v=_/(p.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",pje(C[0],C[1])+cYt(v))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[zx],n=0;n{"use strict";mje.exports={attributes:gB(),supplyDefaults:CWe(),colorbar:ep(),formatLabels:VJ(),calc:_F(),plot:GWe(),hoverPoints:AB().hoverPoints,eventData:XWe(),selectPoints:YWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:EB(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var _je=Te((zwr,gje)=>{"use strict";gje.exports=yje()});var QJ=Te((Iwr,xje)=>{"use strict";var x1=aS(),yYt=nc(),{hovertemplateAttrs:gYt,templatefallbackAttrs:_Yt}=Ff(),xYt=Gf(),Ix=Su().extendFlat;xje.exports=Ix({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ix({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Ix({},x1.marker.line.color,{editType:"plot"}),width:Ix({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ix({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ix({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ix({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:gYt({},{keys:["properties"]}),hovertemplatefallback:_Yt(),showlegend:Ix({},xYt.showlegend,{dflt:!1})},yYt("",{cLetter:"z",editTypeOverride:"calc"}))});var wje=Te((Rwr,bje)=>{"use strict";var iC=ei(),bYt=nd(),wYt=QJ();bje.exports=function(t,r,n,i){function a(f,c){return iC.coerce(t,r,wYt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!iC.isArrayOrTypedArray(o)||!o.length||!iC.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||iC.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"),bYt(t,r,i,a,{prefix:"",cLetter:"z"}),iC.coerceSelectionMarkerOpacity(r,a)}});var e$=Te((Dwr,Sje)=>{"use strict";var AYt=ku(),b1=ei(),TYt=_c(),SYt=Mu(),MYt=fx().makeBlank,Aje=hx();function EYt(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:MYt()};if(!r)return a;var o=Aje.extractTraceFeature(e);if(!o)return a;var s=TYt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;b1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return AYt(E)?+b1.constrain(E,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 Eje=e$().convert,kYt=e$().convertOnSelect,Mje=Px().traceLayerPrefix;function kje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Mje+t+"-fill"],["line",Mje+t+"-line"]],this.below=null}var RS=kje.prototype;RS.update=function(e){this._update(Eje(e)),e[0].trace._glTrace=this};RS.updateOnSelect=function(e){this._update(kYt(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)};Cje.exports=function(t,r){var n=r[0].trace,i=new kje(t,n.uid),a=i.sourceId,o=Eje(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 zje=Te((Bwr,Pje)=>{"use strict";Pje.exports={attributes:QJ(),supplyDefaults:wje(),colorbar:R_(),calc:NF(),plot:Lje(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";Ije.exports=zje()});var r$=Te((qwr,Fje)=>{"use strict";var CYt=nc(),{hovertemplateAttrs:LYt,templatefallbackAttrs:PYt}=Ff(),Dje=Gf(),kB=gB(),t$=Su().extendFlat;Fje.exports=t$({lon:kB.lon,lat:kB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:kB.text,hovertext:kB.hovertext,hoverinfo:t$({},Dje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:LYt(),hovertemplatefallback:PYt(),showlegend:t$({},Dje.showlegend,{dflt:!1})},CYt("",{cLetter:"z",editTypeOverride:"calc"}))});var Oje=Te((Nwr,Bje)=>{"use strict";var zYt=ei(),IYt=nd(),RYt=r$();Bje.exports=function(t,r,n,i){function a(l,f){return zYt.coerce(t,r,RYt,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"),IYt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Uje=Te((Uwr,Nje)=>{"use strict";var i$=ku(),DYt=ei().isArrayOrTypedArray,n$=rf().BADNUM,FYt=gp(),qje=ei()._;Nje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=DYt(a)&&a.length,s=0;s{"use strict";var BYt=ku(),a$=ei(),Vje=jl(),Gje=_c(),Hje=rf().BADNUM,OYt=fx().makeBlank;Wje.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:OYt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=a$.isArrayOrTypedArray(u)&&u.length,c=a$.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=Gje.extractOpts(r),v=b.reversescale?Gje.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=Vje.opacity(C)<1?C:Vje.addOpacity(C,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Xje=jje(),qYt=Px().traceLayerPrefix;function Zje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",qYt+t+"-heatmap"]],this.below=null}var CB=Zje.prototype;CB.update=function(e){var t=this.subplot,r=this.layerList,n=Xje(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])};CB.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),i}});var $je=Te((Hwr,Jje)=>{"use strict";var NYt=wu(),UYt=AB().hoverPoints,VYt=AB().getExtraText;Jje.exports=function(t,r,n){var i=UYt(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=NYt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=VYt(s,u,o[0].t.labels),[a]}}});var eXe=Te((Wwr,Qje)=>{"use strict";Qje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var rXe=Te((jwr,tXe)=>{"use strict";tXe.exports={attributes:r$(),supplyDefaults:Oje(),colorbar:R_(),formatLabels:VJ(),calc:Uje(),plot:Kje(),hoverPoints:$je(),eventData:eXe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";iXe.exports=rXe()});var s$=Te((Ywr,uXe)=>{"use strict";var GYt=gc(),HYt=Gf(),aXe=Oh(),o$=p3(),WYt=zc().attributes,{hovertemplateAttrs:oXe,templatefallbackAttrs:sXe}=Ff(),jYt=nc(),XYt=Lf().templatedArray,ZYt=jc().descriptionOnlyNumbers,lXe=Su().extendFlat,YYt=Sc().overrideAll,Zwr=uXe.exports=YYt({hoverinfo:lXe({},HYt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o$.hoverlabel,domain:WYt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:ZYt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:GYt({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:aXe.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:o$.hoverlabel,hovertemplate:oXe({},{keys:["value","label"]}),hovertemplatefallback:sXe(),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:aXe.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:o$.hoverlabel,hovertemplate:oXe({},{keys:["value","label"]}),hovertemplatefallback:sXe(),colorscales:XYt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:lXe(jYt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var pXe=Te((Kwr,dXe)=>{"use strict";var DS=ei(),LB=s$(),KYt=jl(),fXe=hd(),JYt=zc().defaults,cXe=_5(),hXe=Lf(),$Yt=Kd();dXe.exports=function(t,r,n,i){function a(T,L){return DS.coerce(t,r,LB,T,L)}var o=DS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=hXe.newContainer(r,"node");function l(T,L){return DS.coerce(s,u,LB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),cXe(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return KYt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=hXe.newContainer(r,"link");function p(T,L){return DS.coerce(h,d,LB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),cXe(h,d,p,o),p("hovertemplate");var _=fXe(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function C(T){var L=fXe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(C):C(v)),p("customdata"),$Yt(h,d,{name:"colorscales",handleItemDefaults:QYt}),JYt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),DS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function QYt(e,t){function r(n,i){return DS.coerce(e,t,LB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var l$=Te((Jwr,vXe)=>{"use strict";vXe.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]=T}else{if(n[b]===r[b]){for(var x=[],k=[],M=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,x.push(m),k.push(s[m]),M+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(x);for(var P=new Array(M),T=0;T{"use strict";var tKt=l$(),FS=ei(),rKt=ig().wrap,nC=FS.isArrayOrTypedArray,mXe=FS.isIndex,yXe=_c();function iKt(e){var t=e.node,r=e.link,n=[],i=nC(r.color),a=nC(r.hovercolor),o=nC(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 _=p+1;e.node._count=_;var b,v=e.node.groups,C={};for(f=0;f0&&mXe(M,_)&&mXe(m,_)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(m)&&C[M]===C[m])){C.hasOwnProperty(m)&&(m=C[m]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,m=+m,s[M]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=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:A,source:M,target:m,value:+k}),x.source.push(M),x.target.push(m)}}var F=_+v.length,B=nC(t.color),U=nC(t.customdata),G=[];for(f=0;f_-1,childrenNodes:[],pointNumber:f,label:j,color:B?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var W=!1;return nKt(F,x.source,x.target)&&(W=!0),{circular:W,links:n,nodes:G,groups:v,groupLookup:C}}function nKt(e,t,r){for(var n=FS.init2dArray(e,0),i=0;i1})}gXe.exports=function(t,r){var n=iKt(r);return rKt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var bXe=Te((PB,xXe)=>{(function(e,t){typeof PB=="object"&&typeof xXe!="undefined"?t(PB):(e=e||self,t(e.d3=e.d3||{}))})(PB,function(e){"use strict";function t(k){var M=+this._x.call(null,k),m=+this._y.call(null,k);return r(this.cover(M,m),M,m,k)}function r(k,M,m,P){if(isNaN(M)||isNaN(m))return k;var A,F=k._root,B={data:P},U=k._x0,G=k._y0,j=k._x1,W=k._y1,N,H,re,ae,ge,ze,Le,de;if(!F)return k._root=B,k;for(;F.length;)if((ge=M>=(N=(U+j)/2))?U=N:j=N,(ze=m>=(H=(G+W)/2))?G=H:W=H,A=F,!(F=F[Le=ze<<1|ge]))return A[Le]=B,k;if(re=+k._x.call(null,F.data),ae=+k._y.call(null,F.data),M===re&&m===ae)return B.next=F,A?A[Le]=B:k._root=B,k;do A=A?A[Le]=new Array(4):k._root=new Array(4),(ge=M>=(N=(U+j)/2))?U=N:j=N,(ze=m>=(H=(G+W)/2))?G=H:W=H;while((Le=ze<<1|ge)===(de=(ae>=H)<<1|re>=N));return A[de]=F,A[Le]=B,k}function n(k){var M,m,P=k.length,A,F,B=new Array(P),U=new Array(P),G=1/0,j=1/0,W=-1/0,N=-1/0;for(m=0;mW&&(W=A),FN&&(N=F));if(G>W||j>N)return this;for(this.cover(G,j).cover(W,N),m=0;mk||k>=A||P>M||M>=F;)switch(j=(MW||(U=ae.y0)>N||(G=ae.x1)=Le)<<1|k>=ze)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-ge],H[H.length-1-ge]=ae)}else{var de=k-+this._x.call(null,re.data),te=M-+this._y.call(null,re.data),ke=de*de+te*te;if(ke=(H=(B+G)/2))?B=H:G=H,(ge=N>=(re=(U+j)/2))?U=re:j=re,M=m,!(m=m[ze=ge<<1|ae]))return this;if(!m.length)break;(M[ze+1&3]||M[ze+2&3]||M[ze+3&3])&&(P=M,Le=ze)}for(;m.data!==k;)if(A=m,!(m=m.next))return this;return(F=m.next)&&delete m.next,A?(F?A.next=F:delete A.next,this):M?(F?M[ze]=F:delete M[ze],(m=M[0]||M[1]||M[2]||M[3])&&m===(M[3]||M[2]||M[1]||M[0])&&!m.length&&(P?P[Le]=m:this._root=m),this):(this._root=F,this)}function f(k){for(var M=0,m=k.length;M{(function(e,t){t(typeof zB=="object"&&typeof wXe!="undefined"?zB:e.d3=e.d3||{})})(zB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var v=new r;if(_ instanceof r)_.each(function(x,k){v.set(k,x)});else if(Array.isArray(_)){var C=-1,E=_.length,T;if(b==null)for(;++C=_.length)return v!=null&&x.sort(v),C!=null?C(x):x;for(var P=-1,A=x.length,F=_[k++],B,U,G=n(),j,W=M();++P_.length)return x;var M,m=b[k-1];return C!=null&&k>=_.length?M=x.entries():(M=[],x.each(function(P,A){M.push({key:A,values:L(P,k)})})),m!=null?M.sort(function(P,A){return m(P.key,A.key)}):M}return E={object:function(x){return T(x,0,a,o)},map:function(x){return T(x,0,s,u)},entries:function(x){return L(T(x,0,s,u),0)},key:function(x){return _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return v=x,E},rollup:function(x){return C=x,E}}}function a(){return{}}function o(_,b,v){_[b]=v}function s(){return n()}function u(_,b,v){_.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(_){return _+="",this[t+_]=_,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(_,b){var v=new l;if(_ instanceof l)_.each(function(T){v.add(T)});else if(_){var C=-1,E=_.length;if(b==null)for(;++C{(function(e,t){typeof RB=="object"&&typeof AXe!="undefined"?t(RB):(e=e||self,t(e.d3=e.d3||{}))})(RB,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 DB=="object"&&typeof SXe!="undefined"?t(DB):(e=e||self,t(e.d3=e.d3||{}))})(DB,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=_.prototype={constructor:p,restart:function(k,M,m){if(typeof k!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function _(k,M,m){var P=new p;return P.restart(k,M,m),P}function b(){h(),++t;for(var k=a,M;k;)(M=u-k._time)>=0&&k._call.call(null,M),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(),M=k-s;M>i&&(l-=M,s=k)}function E(){for(var k,M=a,m,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(m=M._next,M._next=null,M=k?k._next=m:a=m);o=k,T(P)}function T(k){if(!t){r&&(r=clearTimeout(r));var M=k-u;M>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,M,m){var P=new p;return M=M==null?0:+M,P.restart(function(A){P.stop(),k(A+M)},M,m),P}function x(k,M,m){var P=new p,A=M;return M==null?(P.restart(k,M,m),P):(M=+M,m=m==null?h():+m,P.restart(function F(B){B+=A,P.restart(F,A+=M,m),k(B)},M,m),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var kXe=Te((FB,EXe)=>{(function(e,t){typeof FB=="object"&&typeof EXe!="undefined"?t(FB,bXe(),IB(),TXe(),MXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(FB,function(e,t,r,n,i){"use strict";function a(k,M){var m;k==null&&(k=0),M==null&&(M=0);function P(){var A,F=m.length,B,U=0,G=0;for(A=0;AN.index){var Ne=H-Ge.x-Ge.vx,ce=re-Ge.y-Ge.vy,je=Ne*Ne+ce*ce;jeH+xe||Eere+xe||SeG.r&&(G.r=G[j].r)}function U(){if(M){var G,j=M.length,W;for(m=new Array(j),G=0;G1?(ge==null?U.remove(ae):U.set(ae,re(ge)),M):U.get(ae)},find:function(ae,ge,ze){var Le=0,de=k.length,te,ke,Ee,Se,Ge;for(ze==null?ze=1/0:ze*=ze,Le=0;Le1?(j.on(ae,ge),M):j.on(ae)}}}function E(){var k,M,m,P=o(-30),A,F=1,B=1/0,U=.81;function G(H){var re,ae=k.length,ge=t.quadtree(k,p,_).visitAfter(W);for(m=H,re=0;re=B)return;(H.data!==M||H.next)&&(ze===0&&(ze=s(),te+=ze*ze),Le===0&&(Le=s(),te+=Le*Le),te{(function(e,t){typeof BB=="object"&&typeof CXe!="undefined"?t(BB):(e=e||self,t(e.d3=e.d3||{}))})(BB,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,_=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-_*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+_*_,x=E*E+T*T,k=Math.sqrt(L),M=Math.sqrt(C),m=c*Math.tan((t-Math.acos((L+C-x)/(2*k*M)))/2),P=m/M,A=m/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*_)}},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),_=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"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+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=_)+","+(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 u$=Te((OB,PXe)=>{(function(e,t){typeof OB=="object"&&typeof PXe!="undefined"?t(OB,LXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(OB,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,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ct){return ct>1?0:ct<-1?c:Math.acos(ct)}function _(ct){return ct>=1?h:ct<=-1?-h:Math.asin(ct)}function b(ct){return ct.innerRadius}function v(ct){return ct.outerRadius}function C(ct){return ct.startAngle}function E(ct){return ct.endAngle}function T(ct){return ct&&ct.padAngle}function L(ct,tr,pr,gr,Zr,Ai,en,ii){var Xi=pr-ct,aa=gr-tr,Mn=en-Zr,Un=ii-Ai,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 ct=b,tr=v,pr=r(0),gr=null,Zr=C,Ai=E,en=T,ii=null;function Xi(){var aa,Mn,Un=+ct.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ii||(ii=aa=t.path()),Gaf))ii.moveTo(0,0);else if(ka>d-f)ii.moveTo(Ga*a(ma),Ga*u(ma)),ii.arc(0,0,Ga,ma,oa,!so),Un>f&&(ii.moveTo(Un*a(oa),Un*u(oa)),ii.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=en.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=_(uo/Un*u(ys)),ws=_(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),Ba;if(kaf?fo>f?(mn=x(Sn,ao,Co,Po,Ga,fo,so),ra=x(Ps,Ha,Wi,gn,Ga,fo,so),ii.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ii.lineTo(Wi,gn):$a>f?(mn=x(Wi,gn,Ps,Ha,Un,-$a,so),ra=x(Co,Po,Sn,ao,Un,-$a,so),ii.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ii.point(Ia[ma],Yo[ma]);ii.lineEnd(),ii.areaEnd()}so&&(Ia[Un]=+ct(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ii.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ii=null,Kr+""||null}function aa(){return F().defined(Zr).curve(en).context(Ai)}return Xi.x=function(Mn){return arguments.length?(ct=typeof Mn=="function"?Mn:r(+Mn),tr=null,Xi):ct},Xi.x0=function(Mn){return arguments.length?(ct=typeof Mn=="function"?Mn:r(+Mn),Xi):ct},Xi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):tr},Xi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Xi):pr},Xi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Xi):pr},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(ct).y(pr)},Xi.lineY1=function(){return aa().x(ct).y(gr)},Xi.lineX1=function(){return aa().x(tr).y(pr)},Xi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Xi):Zr},Xi.curve=function(Mn){return arguments.length?(en=Mn,Ai!=null&&(ii=en(Ai)),Xi):en},Xi.context=function(Mn){return arguments.length?(Mn==null?Ai=ii=null:ii=en(Ai=Mn),Xi):Ai},Xi}function U(ct,tr){return trct?1:tr>=ct?0:NaN}function G(ct){return ct}function j(){var ct=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function en(ii){var Xi,aa=ii.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,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Xi=0;Xi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ii[kn],ii[Ta])}),Xi=0,Un=Ga?(so-aa*Yo)/Ga:0;Xi0?fa*Un:0)+Yo,oa[Mn]={data:ii[Mn],index:Xi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return en.value=function(ii){return arguments.length?(ct=typeof ii=="function"?ii:r(+ii),en):ct},en.sortValues=function(ii){return arguments.length?(tr=ii,pr=null,en):tr},en.sort=function(ii){return arguments.length?(pr=ii,tr=null,en):pr},en.startAngle=function(ii){return arguments.length?(gr=typeof ii=="function"?ii:r(+ii),en):gr},en.endAngle=function(ii){return arguments.length?(Zr=typeof ii=="function"?ii:r(+ii),en):Zr},en.padAngle=function(ii){return arguments.length?(Ai=typeof ii=="function"?ii:r(+ii),en):Ai},en}var W=H(m);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,tr){this._curve.point(tr*Math.sin(ct),tr*-Math.cos(ct))}};function H(ct){function tr(pr){return new N(ct(pr))}return tr._curve=ct,tr}function re(ct){var tr=ct.curve;return ct.angle=ct.x,delete ct.x,ct.radius=ct.y,delete ct.y,ct.curve=function(pr){return arguments.length?tr(H(pr)):tr()._curve},ct}function ae(){return re(F().curve(W))}function ge(){var ct=B().curve(W),tr=ct.curve,pr=ct.lineX0,gr=ct.lineX1,Zr=ct.lineY0,Ai=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(pr())},delete ct.lineX0,ct.lineEndAngle=function(){return re(gr())},delete ct.lineX1,ct.lineInnerRadius=function(){return re(Zr())},delete ct.lineY0,ct.lineOuterRadius=function(){return re(Ai())},delete ct.lineY1,ct.curve=function(en){return arguments.length?tr(H(en)):tr()._curve},ct}function ze(ct,tr){return[(tr=+tr)*Math.cos(ct-=Math.PI/2),tr*Math.sin(ct)]}var Le=Array.prototype.slice;function de(ct){return ct.source}function te(ct){return ct.target}function ke(ct){var tr=de,pr=te,gr=P,Zr=A,Ai=null;function en(){var ii,Xi=Le.call(arguments),aa=tr.apply(this,Xi),Mn=pr.apply(this,Xi);if(Ai||(Ai=ii=t.path()),ct(Ai,+gr.apply(this,(Xi[0]=aa,Xi)),+Zr.apply(this,Xi),+gr.apply(this,(Xi[0]=Mn,Xi)),+Zr.apply(this,Xi)),ii)return Ai=null,ii+""||null}return en.source=function(ii){return arguments.length?(tr=ii,en):tr},en.target=function(ii){return arguments.length?(pr=ii,en):pr},en.x=function(ii){return arguments.length?(gr=typeof ii=="function"?ii:r(+ii),en):gr},en.y=function(ii){return arguments.length?(Zr=typeof ii=="function"?ii:r(+ii),en):Zr},en.context=function(ii){return arguments.length?(Ai=ii==null?null:ii,en):Ai},en}function Ee(ct,tr,pr,gr,Zr){ct.moveTo(tr,pr),ct.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Se(ct,tr,pr,gr,Zr){ct.moveTo(tr,pr),ct.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ge(ct,tr,pr,gr,Zr){var Ai=ze(tr,pr),en=ze(tr,pr=(pr+Zr)/2),ii=ze(gr,pr),Xi=ze(gr,Zr);ct.moveTo(Ai[0],Ai[1]),ct.bezierCurveTo(en[0],en[1],ii[0],ii[1],Xi[0],Xi[1])}function De(){return ke(Ee)}function xe(){return ke(Se)}function Ne(){var ct=ke(Ge);return ct.angle=ct.x,delete ct.x,ct.radius=ct.y,delete ct.y,ct}var ce={draw:function(ct,tr){var pr=Math.sqrt(tr/c);ct.moveTo(pr,0),ct.arc(0,0,pr,0,d)}},je={draw:function(ct,tr){var pr=Math.sqrt(tr/5)/2;ct.moveTo(-3*pr,-pr),ct.lineTo(-pr,-pr),ct.lineTo(-pr,-3*pr),ct.lineTo(pr,-3*pr),ct.lineTo(pr,-pr),ct.lineTo(3*pr,-pr),ct.lineTo(3*pr,pr),ct.lineTo(pr,pr),ct.lineTo(pr,3*pr),ct.lineTo(-pr,3*pr),ct.lineTo(-pr,pr),ct.lineTo(-3*pr,pr),ct.closePath()}},Qe=Math.sqrt(1/3),gt=Qe*2,qt={draw:function(ct,tr){var pr=Math.sqrt(tr/gt),gr=pr*Qe;ct.moveTo(0,-pr),ct.lineTo(gr,0),ct.lineTo(0,pr),ct.lineTo(-gr,0),ct.closePath()}},at=.8908130915292852,Ke=Math.sin(c/10)/Math.sin(7*c/10),Ct=Math.sin(d/10)*Ke,wt=-Math.cos(d/10)*Ke,Mt={draw:function(ct,tr){var pr=Math.sqrt(tr*at),gr=Ct*pr,Zr=wt*pr;ct.moveTo(0,-pr),ct.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var en=d*Ai/5,ii=Math.cos(en),Xi=Math.sin(en);ct.lineTo(Xi*pr,-ii*pr),ct.lineTo(ii*gr-Xi*Zr,Xi*gr+ii*Zr)}ct.closePath()}},Bt={draw:function(ct,tr){var pr=Math.sqrt(tr),gr=-pr/2;ct.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ct,tr){var pr=-Math.sqrt(tr/(Zt*3));ct.moveTo(0,pr*2),ct.lineTo(-Zt*pr,-pr),ct.lineTo(Zt*pr,-pr),ct.closePath()}},Ae=-.5,ot=Math.sqrt(3)/2,At=1/Math.sqrt(12),vt=(At/2+1)*3,Je={draw:function(ct,tr){var pr=Math.sqrt(tr/vt),gr=pr/2,Zr=pr*At,Ai=gr,en=pr*At+pr,ii=-Ai,Xi=en;ct.moveTo(gr,Zr),ct.lineTo(Ai,en),ct.lineTo(ii,Xi),ct.lineTo(Ae*gr-ot*Zr,ot*gr+Ae*Zr),ct.lineTo(Ae*Ai-ot*en,ot*Ai+Ae*en),ct.lineTo(Ae*ii-ot*Xi,ot*ii+Ae*Xi),ct.lineTo(Ae*gr+ot*Zr,Ae*Zr-ot*gr),ct.lineTo(Ae*Ai+ot*en,Ae*en-ot*Ai),ct.lineTo(Ae*ii+ot*Xi,Ae*Xi-ot*ii),ct.closePath()}},He=[ce,je,qt,Bt,Mt,Et,Je];function nt(){var ct=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ct.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ct=typeof Zr=="function"?Zr:r(Zr),gr):ct},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function tt(){}function It(ct,tr,pr){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+tr)/6,(ct._y0+4*ct._y1+pr)/6)}function Yt(ct){this._context=ct}Yt.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:It(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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);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:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function cr(ct){return new Yt(ct)}function _r(ct){this._context=ct}_r.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(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._x2=ct,this._y2=tr;break;case 1:this._point=2,this._x3=ct,this._y3=tr;break;case 2:this._point=3,this._x4=ct,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ct)/6,(this._y0+4*this._y1+tr)/6);break;default:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function yr(ct){return new _r(ct)}function Ut(ct){this._context=ct}Ut.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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ct)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function Re(ct){return new Ut(ct)}function be(ct,tr){this._basis=new Yt(ct),this._beta=tr}be.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ct=this._x,tr=this._y,pr=ct.length-1;if(pr>0)for(var gr=ct[0],Zr=tr[0],Ai=ct[pr]-gr,en=tr[pr]-Zr,ii=-1,Xi;++ii<=pr;)Xi=ii/pr,this._basis.point(this._beta*ct[ii]+(1-this._beta)*(gr+Xi*Ai),this._beta*tr[ii]+(1-this._beta)*(Zr+Xi*en));this._x=this._y=null,this._basis.lineEnd()},point:function(ct,tr){this._x.push(+ct),this._y.push(+tr)}};var Oe=function ct(tr){function pr(gr){return tr===1?new Yt(gr):new be(gr,tr)}return pr.beta=function(gr){return ct(+gr)},pr}(.85);function Ie(ct,tr,pr){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-tr),ct._y2+ct._k*(ct._y1-pr),ct._x2,ct._y2)}function Fe(ct,tr){this._context=ct,this._k=(1-tr)/6}Fe.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:Ie(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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2,this._x1=ct,this._y1=tr;break;case 2:this._point=3;default:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ft=function ct(tr){function pr(gr){return new Fe(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function ye(ct,tr){this._context=ct,this._k=(1-tr)/6}ye.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(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._x3=ct,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ct,this._y4=tr);break;case 2:this._point=3,this._x5=ct,this._y5=tr;break;default:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ct(tr){function pr(gr){return new ye(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function pe(ct,tr){this._context=ct,this._k=(1-tr)/6}pe.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,tr){switch(ct=+ct,tr=+tr,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:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var dt=function ct(tr){function pr(gr){return new pe(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function Pt(ct,tr,pr){var gr=ct._x1,Zr=ct._y1,Ai=ct._x2,en=ct._y2;if(ct._l01_a>f){var ii=2*ct._l01_2a+3*ct._l01_a*ct._l12_a+ct._l12_2a,Xi=3*ct._l01_a*(ct._l01_a+ct._l12_a);gr=(gr*ii-ct._x0*ct._l12_2a+ct._x2*ct._l01_2a)/Xi,Zr=(Zr*ii-ct._y0*ct._l12_2a+ct._y2*ct._l01_2a)/Xi}if(ct._l23_a>f){var aa=2*ct._l23_2a+3*ct._l23_a*ct._l12_a+ct._l12_2a,Mn=3*ct._l23_a*(ct._l23_a+ct._l12_a);Ai=(Ai*aa+ct._x1*ct._l23_2a-tr*ct._l12_2a)/Mn,en=(en*aa+ct._y1*ct._l23_2a-pr*ct._l12_2a)/Mn}ct._context.bezierCurveTo(gr,Zr,Ai,en,ct._x2,ct._y2)}function zt(ct,tr){this._context=ct,this._alpha=tr}zt.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,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:Pt(this,ct,tr);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=tr}};var rr=function ct(tr){function pr(gr){return tr?new zt(gr,tr):new Fe(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function Gr(ct,tr){this._context=ct,this._alpha=tr}Gr.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(ct,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ct,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ct,this._y4=tr);break;case 2:this._point=3,this._x5=ct,this._y5=tr;break;default:Pt(this,ct,tr);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=tr}};var Br=function ct(tr){function pr(gr){return tr?new Gr(gr,tr):new ye(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function Er(ct,tr){this._context=ct,this._alpha=tr}Er.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,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+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:Pt(this,ct,tr);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=tr}};var Rr=function ct(tr){function pr(gr){return tr?new Er(gr,tr):new pe(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function pi(ct){this._context=ct}pi.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ct,tr){ct=+ct,tr=+tr,this._point?this._context.lineTo(ct,tr):(this._point=1,this._context.moveTo(ct,tr))}};function Di(ct){return new pi(ct)}function ni(ct){return ct<0?-1:1}function $i(ct,tr,pr){var gr=ct._x1-ct._x0,Zr=tr-ct._x1,Ai=(ct._y1-ct._y0)/(gr||Zr<0&&-0),en=(pr-ct._y1)/(Zr||gr<0&&-0),ii=(Ai*Zr+en*gr)/(gr+Zr);return(ni(Ai)+ni(en))*Math.min(Math.abs(Ai),Math.abs(en),.5*Math.abs(ii))||0}function Qi(ct,tr){var pr=ct._x1-ct._x0;return pr?(3*(ct._y1-ct._y0)/pr-tr)/2:tr}function si(ct,tr,pr){var gr=ct._x0,Zr=ct._y0,Ai=ct._x1,en=ct._y1,ii=(Ai-gr)/3;ct._context.bezierCurveTo(gr+ii,Zr+ii*tr,Ai-ii,en-ii*pr,Ai,en)}function Ti(ct){this._context=ct}Ti.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:si(this,this._t0,Qi(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ct,tr){var pr=NaN;if(ct=+ct,tr=+tr,!(ct===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;break;case 2:this._point=3,si(this,Qi(this,pr=$i(this,ct,tr)),pr);break;default:si(this,this._t0,pr=$i(this,ct,tr));break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Ni(ct){this._context=new Rt(ct)}(Ni.prototype=Object.create(Ti.prototype)).point=function(ct,tr){Ti.prototype.point.call(this,tr,ct)};function Rt(ct){this._context=ct}Rt.prototype={moveTo:function(ct,tr){this._context.moveTo(tr,ct)},closePath:function(){this._context.closePath()},lineTo:function(ct,tr){this._context.lineTo(tr,ct)},bezierCurveTo:function(ct,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ct,gr,pr,Ai,Zr)}};function yt(ct){return new Ti(ct)}function Gt(ct){return new Ni(ct)}function Wt(ct){this._context=ct}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ct=this._x,tr=this._y,pr=ct.length;if(pr)if(this._line?this._context.lineTo(ct[0],tr[0]):this._context.moveTo(ct[0],tr[0]),pr===2)this._context.lineTo(ct[1],tr[1]);else for(var gr=xr(ct),Zr=xr(tr),Ai=0,en=1;en=0;--tr)Zr[tr]=(en[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ct[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ct,tr);else{var pr=this._x*(1-this._t)+ct*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ct,this._y=tr}};function Or(ct){return new Nr(ct,.5)}function Hr(ct){return new Nr(ct,0)}function jr(ct){return new Nr(ct,1)}function gi(ct,tr){if((en=ct.length)>1)for(var pr=1,gr,Zr,Ai=ct[tr[0]],en,ii=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ct,tr){return ct[tr]}function ti(){var ct=r([]),tr=ki,pr=gi,gr=Vi;function Zr(Ai){var en=ct.apply(this,arguments),ii,Xi=Ai.length,aa=en.length,Mn=new Array(aa),Un;for(ii=0;ii0){for(var pr,gr,Zr=0,Ai=ct[0].length,en;Zr0)for(var pr,gr=0,Zr,Ai,en,ii,Xi,aa=ct[tr[0]].length;gr0?(Zr[0]=en,Zr[1]=en+=Ai):Ai<0?(Zr[1]=ii,Zr[0]=ii+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ct,tr){if((Zr=ct.length)>0){for(var pr=0,gr=ct[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ct[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,en;grAi&&(Ai=Zr,pr=tr);return pr}function Ri(ct){var tr=ct.map(Ii);return ki(ct).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ii(ct){for(var tr=0,pr=-1,gr=ct.length,Zr;++pr{(function(e,t){typeof qB=="object"&&typeof zXe!="undefined"?t(qB,hk(),IB(),u$()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(qB,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 _(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 T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,F=1,B=24,U=8,G=v,j=s,W=C,N=E,H=32,re=2/3;function ae(){var ke={nodes:W.apply(null,arguments),links:N.apply(null,arguments)};return ge(ke),ze(ke),Le(ke),de(ke,H),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(B=+ke,ae):B},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(W=typeof ke=="function"?ke:l(ke),ae):W},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],F=+ke[1],ae):[A-m,F-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],F=+ke[1][1],ae):[[m,P],[A,F]]},ae.iterations=function(ke){return arguments.length?(H=+ke,ae):H};function ge(ke){ke.nodes.forEach(function(Se,Ge){Se.index=Ge,Se.sourceLinks=[],Se.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Se,Ge){Se.index=Ge;var De=Se.source,xe=Se.target;typeof De!="object"&&(De=Se.source=T(Ee,De)),typeof xe!="object"&&(xe=Se.target=T(Ee,xe)),De.sourceLinks.push(Se),xe.targetLinks.push(Se)})}function ze(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Le(ke){var Ee,Se,Ge;for(Ee=ke.nodes,Se=[],Ge=0;Ee.length;++Ge,Ee=Se,Se=[])Ee.forEach(function(xe){xe.depth=Ge,xe.sourceLinks.forEach(function(Ne){Se.indexOf(Ne.target)<0&&Se.push(Ne.target)})});for(Ee=ke.nodes,Se=[],Ge=0;Ee.length;++Ge,Ee=Se,Se=[])Ee.forEach(function(xe){xe.height=Ge,xe.targetLinks.forEach(function(Ne){Se.indexOf(Ne.source)<0&&Se.push(Ne.source)})});var De=(A-m-B)/(Ge-1);ke.nodes.forEach(function(xe){xe.x1=(xe.x0=m+Math.max(0,Math.min(Ge-1,Math.floor(j.call(null,xe,Ge))))*De)+B})}function de(ke){var Ee=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(je){return je.values});De(),ce();for(var Se=1,Ge=H;Ge>0;--Ge)Ne(Se*=.99),ce(),xe(Se),ce();function De(){var je=t.max(Ee,function(qt){return qt.length}),Qe=re*(F-P)/(je-1);U>Qe&&(U=Qe);var gt=t.min(Ee,function(qt){return(F-P-(qt.length-1)*U)/t.sum(qt,d)});Ee.forEach(function(qt){qt.forEach(function(at,Ke){at.y1=(at.y0=Ke)+at.value*gt})}),ke.links.forEach(function(qt){qt.width=qt.value*gt})}function xe(je){Ee.forEach(function(Qe){Qe.forEach(function(gt){if(gt.targetLinks.length){var qt=(t.sum(gt.targetLinks,_)/t.sum(gt.targetLinks,d)-p(gt))*je;gt.y0+=qt,gt.y1+=qt}})})}function Ne(je){Ee.slice().reverse().forEach(function(Qe){Qe.forEach(function(gt){if(gt.sourceLinks.length){var qt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-p(gt))*je;gt.y0+=qt,gt.y1+=qt}})})}function ce(){Ee.forEach(function(je){var Qe,gt,qt=P,at=je.length,Ke;for(je.sort(h),Ke=0;Ke0&&(Qe.y0+=gt,Qe.y1+=gt),qt=Qe.y1+U;if(gt=qt-U-F,gt>0)for(qt=Qe.y0-=gt,Qe.y1-=gt,Ke=at-2;Ke>=0;--Ke)Qe=je[Ke],gt=Qe.y1+U-qt,gt>0&&(Qe.y0-=gt,Qe.y1-=gt),qt=Qe.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Se=Ee.y0,Ge=Se;Ee.sourceLinks.forEach(function(De){De.y0=Se+De.width/2,Se+=De.width}),Ee.targetLinks.forEach(function(De){De.y1=Ge+De.width/2,Ge+=De.width})})}return ae};function x(m){return[m.source.x1,m.y0]}function k(m){return[m.target.x0,m.y1]}var M=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=M,Object.defineProperty(e,"__esModule",{value:!0})})});var DXe=Te((Qwr,RXe)=>{var aKt=l$();RXe.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(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=aKt(T),x=L.components.filter(function(B){return B.length>1}),k=1/0,M,m=0;m{(function(e,t){typeof NB=="object"&&typeof FXe!="undefined"?t(NB,hk(),IB(),u$(),DXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(NB,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,Ke){return Ke-1-at.height}function u(at,Ke){return at.sourceLinks.length?at.depth:Ke-1}function l(at){return at.targetLinks.length?at.depth:at.sourceLinks.length?t.min(at.sourceLinks,a)-1:0}function f(at){return function(){return at}}var c=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,Ke){return p(at.source,Ke.source)||at.index-Ke.index}function d(at,Ke){return p(at.target,Ke.target)||at.index-Ke.index}function p(at,Ke){return at.partOfCycle===Ke.partOfCycle?at.y0-Ke.y0:at.circularLinkType==="top"||Ke.circularLinkType==="bottom"?-1:1}function _(at){return at.value}function b(at){return(at.y0+at.y1)/2}function v(at){return b(at.source)}function C(at){return b(at.target)}function E(at){return at.index}function T(at){return at.nodes}function L(at){return at.links}function x(at,Ke){var Ct=at.get(Ke);if(!Ct)throw new Error("missing: "+Ke);return Ct}function k(at,Ke){return Ke(at)}var M=25,m=10,P=.3;function A(){var at=0,Ke=0,Ct=1,wt=1,Mt=24,Bt,Zt=E,Et=u,Ae=T,ot=L,At=32,vt=2,Je,He=null;function nt(){var Re={nodes:Ae.apply(null,arguments),links:ot.apply(null,arguments)};tt(Re),F(Re,Zt,He),It(Re),_r(Re),B(Re,Zt),yr(Re,At,Zt),Ut(Re);for(var be=4,Oe=0;Oe0?be+M+m:be,Oe=Oe>0?Oe+M+m:Oe,Ie=Ie>0?Ie+M+m:Ie,Fe=Fe>0?Fe+M+m:Fe,{top:be,bottom:Oe,left:Fe,right:Ie}}function cr(Re,be){var Oe=t.max(Re.nodes,function(dt){return dt.column}),Ie=Ct-at,Fe=wt-Ke,ft=Ie+be.right+be.left,ye=Fe+be.top+be.bottom,fe=Ie/ft,pe=Fe/ye;return at=at*fe+be.left,Ct=be.right==0?Ct:Ct*fe,Ke=Ke*pe+be.top,wt=wt*pe,Re.nodes.forEach(function(dt){dt.x0=at+dt.column*((Ct-at-Mt)/Oe),dt.x1=dt.x0+Mt}),pe}function _r(Re){var be,Oe,Ie;for(be=Re.nodes,Oe=[],Ie=0;be.length;++Ie,be=Oe,Oe=[])be.forEach(function(Fe){Fe.depth=Ie,Fe.sourceLinks.forEach(function(ft){Oe.indexOf(ft.target)<0&&!ft.circular&&Oe.push(ft.target)})});for(be=Re.nodes,Oe=[],Ie=0;be.length;++Ie,be=Oe,Oe=[])be.forEach(function(Fe){Fe.height=Ie,Fe.targetLinks.forEach(function(ft){Oe.indexOf(ft.source)<0&&!ft.circular&&Oe.push(ft.source)})});Re.nodes.forEach(function(Fe){Fe.column=Math.floor(Et.call(null,Fe,Ie))})}function yr(Re,be,Oe){var Ie=r.nest().key(function(dt){return dt.column}).sortKeys(t.ascending).entries(Re.nodes).map(function(dt){return dt.values});ye(Oe),pe();for(var Fe=1,ft=be;ft>0;--ft)fe(Fe*=.99,Oe),pe();function ye(dt){if(Je){var Pt=1/0;Ie.forEach(function(Br){var Er=wt*Je/(Br.length+1);Pt=Er0))if(Br==0&&Gr==1)Rr=Er.y1-Er.y0,Er.y0=wt/2-Rr/2,Er.y1=wt/2+Rr/2;else if(Br==zt-1&&Gr==1)Rr=Er.y1-Er.y0,Er.y0=wt/2-Rr/2,Er.y1=wt/2+Rr/2;else{var pi=0,Di=t.mean(Er.sourceLinks,C),ni=t.mean(Er.targetLinks,v);Di&&ni?pi=(Di+ni)/2:pi=Di||ni;var $i=(pi-b(Er))*dt;Er.y0+=$i,Er.y1+=$i}})})}function pe(){Ie.forEach(function(dt){var Pt,zt,rr=Ke,Gr=dt.length,Br;for(dt.sort(p),Br=0;Br0&&(Pt.y0+=zt,Pt.y1+=zt),rr=Pt.y1+Bt;if(zt=rr-Bt-wt,zt>0)for(rr=Pt.y0-=zt,Pt.y1-=zt,Br=Gr-2;Br>=0;--Br)Pt=dt[Br],zt=Pt.y1+Bt-rr,zt>0&&(Pt.y0-=zt,Pt.y1-=zt),rr=Pt.y0})}}function Ut(Re){Re.nodes.forEach(function(be){be.sourceLinks.sort(d),be.targetLinks.sort(h)}),Re.nodes.forEach(function(be){var Oe=be.y0,Ie=Oe,Fe=be.y1,ft=Fe;be.sourceLinks.forEach(function(ye){ye.circular?(ye.y0=Fe-ye.width/2,Fe=Fe-ye.width):(ye.y0=Oe+ye.width/2,Oe+=ye.width)}),be.targetLinks.forEach(function(ye){ye.circular?(ye.y1=ft-ye.width/2,ft=ft-ye.width):(ye.y1=Ie+ye.width/2,Ie+=ye.width)})})}return nt}function F(at,Ke,Ct){var wt=0;if(Ct===null){for(var Mt=[],Bt=0;BtKe.source.column)}function j(at,Ke){var Ct=0;at.sourceLinks.forEach(function(Mt){Ct=Mt.circular&&!gt(Mt,Ke)?Ct+1:Ct});var wt=0;return at.targetLinks.forEach(function(Mt){wt=Mt.circular&&!gt(Mt,Ke)?wt+1:wt}),Ct+wt}function W(at){var Ke=at.source.sourceLinks,Ct=0;Ke.forEach(function(Bt){Ct=Bt.circular?Ct+1:Ct});var wt=at.target.targetLinks,Mt=0;return wt.forEach(function(Bt){Mt=Bt.circular?Mt+1:Mt}),!(Ct>1||Mt>1)}function N(at,Ke,Ct){return at.sort(ae),at.forEach(function(wt,Mt){var Bt=0;if(gt(wt,Ct)&&W(wt))wt.circularPathData.verticalBuffer=Bt+wt.width/2;else{var Zt=0;for(Zt;ZtBt?Et:Bt}wt.circularPathData.verticalBuffer=Bt+wt.width/2}}),at}function H(at,Ke,Ct,wt){var Mt=5,Bt=t.min(at.links,function(Ae){return Ae.source.y0});at.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=at.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ke,wt);var Et=at.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ke,wt),at.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=Mt,Ae.circularPathData.rightNodeBuffer=Mt,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,gt(Ae,wt)&&W(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+M+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-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var ot=Ae.source.column,At=Ae.circularLinkType,vt=at.links.filter(function(nt){return nt.source.column==ot&&nt.circularLinkType==At});Ae.circularLinkType=="bottom"?vt.sort(ze):vt.sort(ge);var Je=0;vt.forEach(function(nt,tt){nt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+Je,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+tt*Ke+Je),Je=Je+nt.width}),ot=Ae.target.column,vt=at.links.filter(function(nt){return nt.target.column==ot&&nt.circularLinkType==At}),Ae.circularLinkType=="bottom"?vt.sort(de):vt.sort(Le),Je=0,vt.forEach(function(nt,tt){nt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+Je,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+tt*Ke+Je),Je=Je+nt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(Ct,Ae.source.y1,Ae.target.y1)+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Bt-M-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 He=n.linkHorizontal().source(function(nt){var tt=nt.source.x0+(nt.source.x1-nt.source.x0),It=nt.y0;return[tt,It]}).target(function(nt){var tt=nt.target.x0,It=nt.y1;return[tt,It]});Ae.path=He(Ae)}})}function re(at){var Ke="";return at.circularLinkType=="top"?Ke="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:Ke="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,Ke}function ae(at,Ke){return te(at)==te(Ke)?at.circularLinkType=="bottom"?ze(at,Ke):ge(at,Ke):te(Ke)-te(at)}function ge(at,Ke){return at.y0-Ke.y0}function ze(at,Ke){return Ke.y0-at.y0}function Le(at,Ke){return at.y1-Ke.y1}function de(at,Ke){return Ke.y1-at.y1}function te(at){return at.target.column-at.source.column}function ke(at){return at.target.x0-at.source.x1}function Ee(at,Ke){var Ct=U(at),wt=ke(Ke)/Math.tan(Ct),Mt=Qe(at)=="up"?at.y1+wt:at.y1-wt;return Mt}function Se(at,Ke){var Ct=U(at),wt=ke(Ke)/Math.tan(Ct),Mt=Qe(at)=="up"?at.y1-wt:at.y1+wt;return Mt}function Ge(at,Ke,Ct,wt){at.links.forEach(function(Mt){if(!Mt.circular&&Mt.target.column-Mt.source.column>1){var Bt=Mt.source.column+1,Zt=Mt.target.column-1,Et=1,Ae=Zt-Bt+1;for(Et=1;Bt<=Zt;Bt++,Et++)at.nodes.forEach(function(ot){if(ot.column==Bt){var At=Et/(Ae+1),vt=Math.pow(1-At,3),Je=3*At*Math.pow(1-At,2),He=3*Math.pow(At,2)*(1-At),nt=Math.pow(At,3),tt=vt*Mt.y0+Je*Mt.y0+He*Mt.y1+nt*Mt.y1,It=tt-Mt.width/2,Yt=tt+Mt.width/2,cr;It>ot.y0&&Itot.y0&&Ytot.y1&&xe(_r,cr,Ke,Ct)})):Itot.y1&&(cr=Yt-ot.y0+10,ot=xe(ot,cr,Ke,Ct),at.nodes.forEach(function(_r){k(_r,wt)==k(ot,wt)||_r.column!=ot.column||_r.y0ot.y1&&xe(_r,cr,Ke,Ct)}))}})}})}function De(at,Ke){return at.y0>Ke.y0&&at.y0Ke.y0&&at.y1Ke.y1}function xe(at,Ke,Ct,wt){return at.y0+Ke>=Ct&&at.y1+Ke<=wt&&(at.y0=at.y0+Ke,at.y1=at.y1+Ke,at.targetLinks.forEach(function(Mt){Mt.y1=Mt.y1+Ke}),at.sourceLinks.forEach(function(Mt){Mt.y0=Mt.y0+Ke})),at}function Ne(at,Ke,Ct,wt){at.nodes.forEach(function(Mt){wt&&Mt.y+(Mt.y1-Mt.y0)>Ke&&(Mt.y=Mt.y-(Mt.y+(Mt.y1-Mt.y0)-Ke));var Bt=at.links.filter(function(Ae){return k(Ae.source,Ct)==k(Mt,Ct)}),Zt=Bt.length;Zt>1&&Bt.sort(function(Ae,ot){if(!Ae.circular&&!ot.circular){if(Ae.target.column==ot.target.column)return Ae.y1-ot.y1;if(je(Ae,ot)){if(Ae.target.column>ot.target.column){var At=Se(ot,Ae);return Ae.y1-At}if(ot.target.column>Ae.target.column){var vt=Se(Ae,ot);return vt-ot.y1}}else return Ae.y1-ot.y1}if(Ae.circular&&!ot.circular)return Ae.circularLinkType=="top"?-1:1;if(ot.circular&&!Ae.circular)return ot.circularLinkType=="top"?1:-1;if(Ae.circular&&ot.circular)return Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===ot.target.column?Ae.target.y1-ot.target.y1:ot.target.column-Ae.target.column:Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===ot.target.column?ot.target.y1-Ae.target.y1:Ae.target.column-ot.target.column:Ae.circularLinkType=="top"?-1:1});var Et=Mt.y0;Bt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Bt.forEach(function(Ae,ot){if(Ae.circularLinkType=="bottom"){var At=ot+1,vt=0;for(At;At1&&Mt.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(je(Et,Ae)){if(Ae.source.column0?"up":"down"}function gt(at,Ke){return k(at.source,Ke)==k(at.target,Ke)}function qt(at,Ke,Ct){var wt=at.nodes,Mt=at.links,Bt=!1,Zt=!1;if(Mt.forEach(function(Je){Je.circularLinkType=="top"?Bt=!0:Je.circularLinkType=="bottom"&&(Zt=!0)}),Bt==!1||Zt==!1){var Et=t.min(wt,function(Je){return Je.y0}),Ae=t.max(wt,function(Je){return Je.y1}),ot=Ae-Et,At=Ct-Ke,vt=At/ot;wt.forEach(function(Je){var He=(Je.y1-Je.y0)*vt;Je.y0=(Je.y0-Et)*vt,Je.y1=Je.y0+He}),Mt.forEach(function(Je){Je.y0=(Je.y0-Et)*vt,Je.y1=(Je.y1-Et)*vt,Je.width=Je.width*vt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var f$=Te((e3r,OXe)=>{"use strict";OXe.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 JXe=Te((t3r,KXe)=>{"use strict";var qXe=kXe(),oKt=(H2(),vb(G2)).interpolateNumber,BS=Jl(),aC=IXe(),sKt=BXe(),dc=f$(),OS=hd(),mw=jl(),lKt=Mu(),w1=ei(),d$=w1.strTranslate,uKt=w1.strRotate,p$=ig(),oC=p$.keyFun,UB=p$.repeat,WXe=p$.unwrap,NXe=Wf(),fKt=$l(),jXe=Nh(),cKt=jXe.CAP_SHIFT,hKt=jXe.LINE_SPACING,dKt=3;function pKt(e,t,r){var n=WXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:aC.sankeyJustify,left:aC.sankeyLeft,right:aC.sankeyRight,center:aC.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,_;p?_=sKt.sankeyCircular().circularLinkGap(0):_=aC.sankey(),_.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=_();_.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(ge,ze){return{x0:ge.x0,index:ze}}).sort(function(ge,ze){return ge.x0-ze.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 v$(){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=oKt(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,_="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+_+v+b+"Z"}return t}function yKt(e,t){var r=OS(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:mw.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 h$(e){e.attr("transform",function(t){return d$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function gKt(e){e.call(h$)}function XXe(e,t){e.call(gKt),t.attr("d",v$())}function UXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function c$(e){return e.link.width>1||e.linkLineWidth>0}function VXe(e){var t=d$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function GXe(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 _Kt(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,HXe(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),bKt(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),HXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),XXe(e.filter(YXe(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,ZXe(r,i)}})}function wKt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function ZXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zp=Jl(),y$=ei(),VB=y$.numberFormat,MKt=JXe(),qS=Xc(),EKt=jl(),Rx=f$().cn,sC=y$._;function $Xe(e){return e!==""}function NS(e,t){return e.filter(function(r){return r.key===t.traceId})}function QXe(e,t){Zp.select(e).select("path").style("fill-opacity",t),Zp.select(e).select("rect").style("fill-opacity",t)}function eZe(e){Zp.select(e).select("text.name").style("fill","black")}function tZe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function rZe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function iZe(e,t,r){t&&r&&NS(r,t).selectAll("."+Rx.sankeyLink).filter(tZe(t)).call(nZe.bind(0,t,r,!1))}function m$(e,t,r){t&&r&&NS(r,t).selectAll("."+Rx.sankeyLink).filter(tZe(t)).call(aZe.bind(0,t,r,!1))}function nZe(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!==""&&NS(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&&NS(t,e).selectAll("."+Rx.sankeyNode).filter(rZe(e)).call(iZe)}function aZe(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!==""&&NS(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&&NS(t,e).selectAll(Rx.sankeyNode).filter(rZe(e)).call(m$)}function rh(e,t){var r=e.hoverlabel||{},n=y$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}oZe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:rh(k,"bgcolor")||EKt.addOpacity(F.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});QXe(W,.85),eZe(W)}}},T=function(L,x,k){t._fullLayout.hovermode!==!1&&(Zp.select(L).call(m$,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zp.event,points:[x.node]})),qS.loneUnhover(n._hoverlayer.node()))};MKt(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:_,unhover:b,select:u},nodeEvents:{hover:C,follow:E,unhover:T,select:v}})}});var sZe=Te(yw=>{"use strict";var kKt=Sc().overrideAll,CKt=Rd().getModuleCalcData,LKt=g$(),PKt=j1(),zKt=Em(),IKt=xp(),RKt=oh().prepSelect,_$=ei(),DKt=$l(),GB="sankey";yw.name=GB;yw.baseLayoutAttrOverrides=kKt({hoverlabel:PKt.hoverlabel},"plot","nested");yw.plot=function(e){var t=CKt(e.calcdata,GB)[0];LKt(e,t),yw.updateFx(e)};yw.clean=function(e,t,r,n){var i=n._has&&n._has(GB),a=t._has&&t._has(GB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};yw.updateFx=function(e){for(var t=0;t{"use strict";lZe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";fZe.exports={attributes:s$(),supplyDefaults:pXe(),calc:_Xe(),plot:g$(),moduleType:"trace",name:"sankey",basePlotModule:sZe(),selectPoints:uZe(),categories:["noOpacity"],meta:{}}});var dZe=Te((o3r,hZe)=>{"use strict";hZe.exports=cZe()});var vZe=Te(US=>{"use strict";var pZe=Cc();US.name="indicator";US.plot=function(e,t,r,n){pZe.plotBasePlot(US.name,e,t,r,n)};US.clean=function(e,t,r,n){pZe.cleanBasePlot(US.name,e,t,r,n)}});var b$=Te((l3r,bZe)=>{"use strict";var Dx=Su().extendFlat,yZe=Su().extendDeep,BKt=Sc().overrideAll,gZe=gc(),_Ze=Oh(),OKt=zc().attributes,uh=Dd(),qKt=Lf().templatedArray,HB=JA(),mZe=jc().descriptionOnlyNumbers,x$=gZe({editType:"plot",colorEditType:"plot"}),lC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:_Ze.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"},xZe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},NKt=qKt("step",yZe({},lC,{range:xZe}));bZe.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:OKt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Dx({},x$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:mZe("value")},font:Dx({},x$,{}),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:mZe("value")},increasing:{symbol:{valType:"string",dflt:HB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:HB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:HB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:HB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Dx({},x$,{}),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:yZe({},lC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:_Ze.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:BKt({range:xZe,visible:Dx({},uh.visible,{dflt:!0}),tickmode:uh.minor.tickmode,nticks:uh.nticks,tick0:uh.tick0,dtick:uh.dtick,tickvals:uh.tickvals,ticktext:uh.ticktext,ticks:Dx({},uh.ticks,{dflt:"outside"}),ticklen:uh.ticklen,tickwidth:uh.tickwidth,tickcolor:uh.tickcolor,ticklabelstep:uh.ticklabelstep,showticklabels:uh.showticklabels,labelalias:uh.labelalias,tickfont:gZe({}),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:NKt,threshold:{line:{color:Dx({},lC.line.color,{}),width:Dx({},lC.line.width,{dflt:1}),editType:"plot"},thickness:Dx({},lC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var w$=Te((u3r,wZe)=>{"use strict";wZe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var SZe=Te((f3r,TZe)=>{"use strict";var sg=ei(),jB=b$(),UKt=zc().defaults,AZe=Lf(),VKt=Kd(),WB=w$(),GKt=Lb(),HKt=D3(),WKt=s_(),jKt=l_();function XKt(e,t,r,n){function i(x,k){return sg.coerce(e,t,jB,x,k)}UKt(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=sg.extendFlat({},n.font);u.size=void 0,sg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=WB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=sg.extendFlat({},n.font);f.size=void 0,sg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||WB.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=sg.extendFlat({},n.font);c.size=.25*(s||l||WB.defaultNumberFontSize),sg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,_;function b(x,k){return sg.coerce(h,d,jB.gauge,x,k)}function v(x,k){return sg.coerce(p,_,jB.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=AZe.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 T=WB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),VKt(h,d,{name:"steps",handleItemDefaults:ZKt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),_=AZe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};GKt(p,_,v,"linear"),jKt(p,_,v,"linear",L),WKt(p,_,v,"linear",L),HKt(p,_,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function ZKt(e,t){function r(n,i){return sg.coerce(e,t,jB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}TZe.exports={supplyDefaults:XKt}});var EZe=Te((c3r,MZe)=>{"use strict";function YKt(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}MZe.exports={calc:YKt}});var IZe=Te((h3r,zZe)=>{"use strict";var ww=Jl(),KKt=(H2(),vb(G2)).interpolate,kZe=(H2(),vb(G2)).interpolateNumber,Fx=ei(),JKt=Fx.strScale,fC=Fx.strTranslate,$Kt=Fx.rad2deg,QKt=Nh().MID_SHIFT,bw=Mu(),gw=w$(),ZB=Wf(),up=wu(),eJt=cE(),tJt=dI(),rJt=Dd(),VS=jl(),A$={left:"start",center:"middle",right:"end"},_w={left:0,center:.5,right:1},CZe=/[yzafpnµmkMGTPEZY]/;function cC(e){return e&&e.duration>0}zZe.exports=function(t,r,n,i){var a=t._fullLayout,o;cC(n)&&i&&(o=i()),Fx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=ww.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,_={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=_.l+_.w/2,v=_.t+_.h/2,C=Math.min(_.w/2,_.h),E=gw.innerRadius*C,T,L,x,k=l.align||"center";if(L=v,!c)T=_.l+_w[k]*_.w,x=function(W){return LZe(W,_.w,_.h)};else if(h&&(T=b,L=v+C/2,x=function(W){return sJt(W,.9*E)}),d){var M=gw.bulletPadding,m=1-gw.bulletNumberDomainSize+M;T=_.l+(m+(1-m)*_w[k])*_.w,x=function(W){return LZe(W,(gw.bulletNumberDomainSize-M)*_.w,_.h)}}aJt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var F=f.selectAll("g.angular").data(h?s:[]);F.exit().remove();var B=f.selectAll("g.angularaxis").data(h?s:[]);B.exit().remove(),h&&nJt(t,f,s,{radius:C,innerRadius:E,gauge:F,layer:B,size:_,gaugeBg:P,gaugeOutline:A,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&&iJt(t,f,s,{gauge:U,layer:G,size:_,gaugeBg:P,gaugeOutline:A,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?A$.right:A$[l.title.align]}).text(l.title.text).call(bw.font,l.title.font).call(ZB.convertToTspans,t),j.attr("transform",function(){var W=_.l+_.w*_w[l.title.align],N,H=gw.titlePadding,re=bw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=bw.bBox(B.node());N=ae.top-H-re.bottom}else N=_.t+_.h/2-C/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,W=_.l-gw.bulletPadding*_.w)}else N=l._numbersTop-H-re.bottom;return fC(W,N)})})};function iJt(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,_,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",fC(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,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-gw.bulletNumberDomainSize:1);d=uC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),_=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:_}),up.drawLabels(e,d,{vals:p,layer:o,transFn:_,labelFns:up.makeLabelFns(d,v)}));function x(B){B.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),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(xw),M.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(xw),cC(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}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.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(VS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var F=a.selectAll("g.gauge-outline").data([u]);F.enter().append("g").classed("gauge-outline",!0).append("rect"),F.select("rect").call(x).call(xw),F.exit().remove()}function nJt(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,_=Math.PI/2;function b(ge){var ze=i.gauge.axis.range[0],Le=i.gauge.axis.range[1],de=(ge-ze)/(Le-ze)*Math.PI-_;return de<-_?-_:de>_?_:de}function v(ge){return ww.svg.arc().innerRadius((s+o)/2-ge/2*(o-s)).outerRadius((s+o)/2+ge/2*(o-s)).startAngle(-_)}function C(ge){ge.attr("d",function(ze){return v(ze.thickness).startAngle(b(ze.range[0])).endAngle(b(ze.range[1]))()})}var E,T,L,x;c.enter().append("g").classed("angular",!0),c.attr("transform",fC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=uC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(ge){return(E.range[0]-ge.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},m=up.makeLabelFns(E,0),P=m.labelStandoff;M.xFn=function(ge){var ze=k(ge);return Math.cos(ze)*P},M.yFn=function(ge){var ze=k(ge),Le=Math.sin(ze)>0?.2:1;return-Math.sin(ze)*(P+ge.fontSize*Le)+Math.abs(Math.cos(ze))*(ge.fontSize*QKt)},M.anchorFn=function(ge){var ze=k(ge),Le=Math.cos(ze);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},M.heightFn=function(ge,ze,Le){var de=k(ge);return-.5*(1+Math.sin(de))*Le};var A=function(ge){return fC(f[0]+o*Math.cos(ge),f[1]-o*Math.sin(ge))};L=function(ge){return A(k(ge))};var F=function(ge){var ze=k(ge);return A(ze)+"rotate("+-$Kt(ze)+")"};if(T=up.calcTicks(E),x=up.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var B=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+x*B+",0h"+x*E.ticklen,transFn:F}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}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(xw),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");cC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",oJt(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(xw),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(xw),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(xw),ae.exit().remove()}function aJt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=A$[s],l=n.transitionOpts,f=n.onComplete,c=Fx.ensureSingle(t,"g","numbers"),h,d,p,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=c.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,F,B,U){if(A.match("s")&&B>=0!=U>=0&&!F(B).slice(-1).match(CZe)&&!F(U).slice(-1).match(CZe)){var G=A.slice().replace("s","f").replace(/\d+/,function(W){return parseInt(W)-1}),j=uC(e,{tickformat:G});return function(W){return Math.abs(W)<1?up.tickText(j,W).text:F(W)}}else return F}function C(){var A=uC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var F=function(W){return up.tickText(A,W).text},B=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var W=typeof r[0].y=="number"?U+F(r[0].y)+B:"-";G.text(W).call(bw.font,i.number.font).call(ZB.convertToTspans,e)}return cC(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=ww.select(this),N=kZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=v(i.number.valueformat,F,r[0].lastY,r[0].y);return function(re){W.text(U+H(N(re))+B)}}):j(),h=PZe(U+F(r[0].y)+B,i.number.font,u,e),G}function E(){var A=uC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var F=function(re){return up.tickText(A,re).text},B=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)+B},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(bw.font,i.delta.font).call(VS.fill,W({delta:i._deltaLastValue}));function H(){N.text(j(G(r[0]),F)).call(VS.fill,W(r[0])).call(ZB.convertToTspans,e)}return cC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=ww.select(this),ae=G(r[0]),ge=i._deltaLastValue,ze=v(i.delta.valueformat,F,ge,ae),Le=kZe(ge,ae);return i._deltaLastValue=ae,function(de){re.text(j(Le(de),ze)),re.call(VS.fill,W({delta:Le(de)}))}}).each("end",function(){H(),f&&f()}).each("interrupt",function(){H(),f&&f()}):H(),d=PZe(j(G(r[0]),F),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(C(),T+=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],M,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=XB(i,"deltaPos",0,-1*(h.width*_w[i.align]+d.width*(1-_w[i.align])+P),T,Math.min),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(M=XB(i,"deltaPos",0,h.width*(1-_w[i.align])+d.width*_w[i.align]+P,T,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+M,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(M=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"&&(M=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:M,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var F=XB(i,"numbersScale",1,A[0],T,Math.min),B;i._scaleNumbers||(F=1),i._isAngular?B=o-F*p.bottom:B=o-F*(p.top+p.bottom)/2,i._numbersTop=F*p.top+B;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-F*U;return G=XB(i,"numbersTranslate",0,G,T,Math.max),fC(G,B)+JKt(F)})}function xw(e){e.each(function(t){VS.stroke(ww.select(this),t.line.color)}).each(function(t){VS.fill(ww.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function oJt(e,t,r){return function(){var n=KKt(t,r);return function(i){return e.endAngle(n(i))()}}}function uC(e,t,r){var n=e._fullLayout,i=Fx.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 Fx.coerce(i,a,rJt,u,l)}return eJt(i,a,s,o,n),tJt(i,a,s,o),a}function LZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function sJt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function PZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=ww.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(ZB.convertToTspans,n).call(bw.font,t),bw.bBox(a.node())}function XB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Fx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var DZe=Te((d3r,RZe)=>{"use strict";RZe.exports={moduleType:"trace",name:"indicator",basePlotModule:vZe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:b$(),supplyDefaults:SZe().supplyDefaults,calc:EZe().calc,plot:IZe(),meta:{}}});var BZe=Te((p3r,FZe)=>{"use strict";FZe.exports=DZe()});var T$=Te((m3r,UZe)=>{"use strict";var OZe=Jb(),YB=Su().extendFlat,lJt=Sc().overrideAll,qZe=gc(),uJt=zc().attributes,NZe=jc().descriptionOnlyNumbers,v3r=UZe.exports=lJt({domain:uJt({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:NZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:YB({},OZe.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:YB({},qZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:NZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:YB({},OZe.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:YB({},qZe({arrayOk:!0}))}},"calc","from-root")});var GZe=Te((y3r,VZe)=>{"use strict";var S$=ei(),fJt=T$(),cJt=zc().defaults;function hJt(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 dJt=ig().wrap;HZe.exports=function(){return dJt({})}});var M$=Te((_3r,jZe)=>{"use strict";jZe.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 tYe=Te((x3r,eYe)=>{"use strict";var XZe=M$(),k$=Su().extendFlat,pJt=ku(),vJt=mp().isTypedArray,KB=mp().isArrayOrTypedArray;eYe.exports=function(t,r){var n=E$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=E$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=E$(a));var o=a.concat(i(n).map(function(){return QZe((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}):[XZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(ZZe,0),d=l-h,p=d+XZe.uplift,_=JZe(c,p),b=JZe(f,h),v=KZe(b,[]),C=KZe(_,v),E={},T=r._fullInput.columnorder;KB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=KB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return pJt(A)?Number(A):1}),x=L.reduce(ZZe,0);L=L.map(function(m){return m/x*u});var k=Math.max(C$(r.header.line.width),C$(r.cells.line.width)),M={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:T,groupHeight:l,rowBlocks:C,headerRowBlocks:v,scrollY:0,cells:k$({},r.cells,{values:n}),headerCells:k$({},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 A=E[m];E[m]=(A||0)+1;var F=m+"__"+E[m];return{key:F,label:m,specIndex:P,xIndex:T[P],xScale:YZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(m){m.calcdata=M,m.x=YZe(m)}),M};function C$(e){if(KB(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=$Ze(),i+=a,s=l+1,a=0);return r}function $Ze(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var rYe=Te(L$=>{"use strict";var JB=Su().extendFlat;L$.splitToPanels=function(e){var t=[0,0],r=JB({},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:JB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=JB({},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=JB({},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]};L$.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 N$=Te((w3r,dYe)=>{"use strict";var uu=M$(),Gc=Jl(),P$=ei(),yJt=P$.numberFormat,pc=ig(),z$=Mu(),gJt=Wf(),_Jt=ei().raiseToTop,lm=ei().strTranslate,xJt=ei().cancelTransition,bJt=tYe(),uYe=rYe(),iYe=jl();dYe.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),T=E.trace;return bJt(t,T)}),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(hC,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+Gc.event.deltaY,T=QB(t,a,null,E)(C);T||(Gc.event.stopPropagation(),Gc.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(hC,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){z$.setClipUrl(Gc.select(this),nYe(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(Gc.behavior.drag().origin(function(C){var E=Gc.select(this);return sYe(E,C,-uu.uplift),_Jt(this),C.calcdata.columnDragInProgress=!0,hC(a.filter(function(T){return C.calcdata.key===T.key}),t),C}).on("drag",function(C){var E=Gc.select(this),T=function(k){return(C===k?Gc.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-uu.overdrag,Math.min(C.calcdata.width+uu.overdrag-C.columnWidth,Gc.event.x));var L=fYe(l).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,M){return T(k)-T(M)});x.forEach(function(k,M){k.xIndex=M,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=Gc.select(this),T=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,sYe(E,C,0),PJt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(C){z$.setClipUrl(Gc.select(this),aYe(t,C),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(uYe.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(zJt),h=f.filter(B$);n&&h.call(Gc.behavior.drag().origin(function(C){return Gc.event.stopPropagation(),C}).on("drag",QB(t,a,-1)).on("dragend",function(){})),I$(t,a,c,f),I$(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 nYe(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 _=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);_.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 aYe(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*$B(C)}).attr("height",function(C){return C.calcdata.height+2*$B(C)+uu.uplift}).attr("x",function(C){return-$B(C)}).attr("y",function(C){return-$B(C)}),O$(null,h,a)};function $B(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function nYe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function aYe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function fYe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function hC(e,t,r){function n(l){var f=l.rowBlocks;return D$(f,f.length-1)+(f.length?e9(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=Gc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Gc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||QB(t,e,null,p(d-h.barLength/2))(l)}).call(Gc.behavior.drag().origin(function(l){return Gc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",QB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function I$(e,t,r,n){var i=wJt(r),a=AJt(i);EJt(a);var o=TJt(a);CJt(o);var s=MJt(a),u=SJt(s);kJt(u),cYe(u,t,n,e),q$(a)}function wJt(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 AJt(e){var t=e.selectAll("."+uu.cn.columnCell).data(uYe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function TJt(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 SJt(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(){Gc.event.stopPropagation()}),t}function MJt(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 EJt(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 kJt(e){e.each(function(t){z$.font(Gc.select(this),t.font)})}function CJt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Gc.select(this);iYe.stroke(r,Yp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),iYe.fill(r,Yp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function cYe(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=LJt(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,_=h+(p?yJt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=oYe(_)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?oYe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var C=uu.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=u}return n}function O$(e,t,r){var n=fYe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=D$(i,i.length),s=n.calcdata.groupHeight-R$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=IJt(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=D$(f.rowBlocks,f.page)-f.scrollY;return lm(0,c)}),e&&(lYe(e,r,t,l,n.prevPages,n,0),lYe(e,r,t,l,n.prevPages,n,1),hC(r,e))}}function QB(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*Gc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(B$);return O$(e,f,s),o.scrollY===l}}function lYe(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]});I$(e,t,u,r),i[o]=n[o]}))}function RJt(e,t,r,n){return function(){var a=Gc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,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(),cYe(a.select("."+uu.cn.cellText),r,e,n),Gc.select(t.parentNode.parentNode).call(q$)}}function DJt(e,t,r,n,i){return function(){if(!i.settledY){var o=Gc.select(t.parentNode),s=F$(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(q$),O$(null,e.filter(B$),0),hC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,_=p.getBoundingClientRect(),b=Gc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),C=b.top-_.top+(v?v.matrix.f:uu.cellPad);return lm(hYe(i,Gc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function hYe(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 q$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+e9(s,1/0)},0),n=F$(t),i=e9(n,t.key),a=i+r;return lm(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return BJt(F$(t),t.key).rowHeight})}function D$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=FJt(e[n]);return r}function e9(e,t){for(var r=0,n=0;n{"use strict";var OJt=Rd().getModuleCalcData,qJt=N$(),t9="table";r9.name=t9;r9.plot=function(e){var t=OJt(e.calcdata,t9)[0];t.length&&qJt(e,t)};r9.clean=function(e,t,r,n){var i=n._has&&n._has(t9),a=t._has&&t._has(t9);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var mYe=Te((T3r,vYe)=>{"use strict";vYe.exports={attributes:T$(),supplyDefaults:GZe(),calc:WZe(),plot:N$(),moduleType:"trace",name:"table",basePlotModule:pYe(),categories:["noOpacity"],meta:{}}});var gYe=Te((S3r,yYe)=>{"use strict";yYe.exports=mYe()});var AYe=Te((M3r,wYe)=>{"use strict";var _Ye=gc(),xYe=Oh(),U$=Dd(),NJt=jc().descriptionWithDates,UJt=Sc().overrideAll,bYe=Id().dash,V$=Su().extendFlat;wYe.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:_Ye({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:U$.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:V$({},U$.labelalias,{editType:"calc"}),tickfont:_Ye({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:NJt("tick label")},tickformatstops:UJt(U$.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:xYe.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:V$({},bYe,{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:V$({},bYe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:xYe.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 n9=Te((E3r,MYe)=>{"use strict";var VJt=gc(),TYe=AYe(),SYe=Oh(),i9=VJt({editType:"calc"}),GJt=Zc().zorder;i9.family.dflt='"Open Sans", verdana, arial, sans-serif';i9.size.dflt=12;i9.color.dflt=SYe.defaultLine;MYe.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:TYe,baxis:TYe,font:i9,color:{valType:"color",dflt:SYe.defaultLine,editType:"plot"},zorder:GJt}});var CYe=Te((k3r,kYe)=>{"use strict";var EYe=ei().isArray1D;kYe.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||EYe(i))&&(!s||EYe(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 zYe=Te((C3r,PYe)=>{"use strict";var HJt=n9(),LYe=jl().addOpacity,WJt=$l(),dC=ei(),jJt=Lb(),XJt=s_(),ZJt=l_(),YJt=fI(),KJt=xy(),JJt=V3();PYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=HJt[i+"axis"];function s(m,P){return dC.coerce(t,r,o,m,P)}function u(m,P){return dC.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&&$Jt(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=WJt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}KJt(r,n.fullLayout),r.c2p=dC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(dC.coerceFont(s,"title.font",a,{overrideDflt:{size:dC.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"),jJt(t,r,s,l),ZJt(t,r,s,l,n),XJt(t,r,s,l,n),YJt(t,r,s,{data:n.data,dataAttr:i});var _=u("gridcolor",LYe(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),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=u("endlinecolor",c),k=u("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",LYe(_,.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 $Jt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=JJt(t,a,{autotypenumbers:e.autotypenumbers})}}});var RYe=Te((L3r,IYe)=>{"use strict";var QJt=zYe(),e$t=Lf();IYe.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")),t$t(t,r,n,a)};function t$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};QJt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var BYe=Te((P3r,FYe)=>{"use strict";var DYe=ei(),r$t=CYe(),i$t=RYe(),n$t=n9(),a$t=Oh();FYe.exports=function(t,r,n,i){function a(u,l){return DYe.coerce(t,r,n$t,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",a$t.defaultLine);if(DYe.coerceFont(a,"font",i.font),a("carpet"),i$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=r$t(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var G$=Te((z3r,OYe)=>{"use strict";var o$t=ei().isArrayOrTypedArray;OYe.exports=function(t,r,n){var i;for(o$t(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";qYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";NYe.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 YYe=Te((D3r,ZYe)=>{"use strict";var l9=Jl(),a9=Mu(),o9=G$(),HYe=H$(),pC=UYe(),W$=Wf(),Uv=ei(),WYe=Uv.strRotate,s9=Uv.strTranslate,jYe=Nh();ZYe.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=l9.select(this),h=f[0],d=h.trace,p=d.aaxis,_=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),GS(o,s,v,p,"a",p._gridlines,!0,a),GS(o,s,v,_,"b",_._gridlines,!0,a),GS(o,s,b,p,"a",p._minorgridlines,!0,a),GS(o,s,b,_,"b",_._minorgridlines,!0,a),GS(o,s,C,p,"a-boundary",p._boundarylines,a),GS(o,s,C,_,"b-boundary",_._boundarylines,a);var T=VYe(t,o,s,d,h,E,p._labels,"a-label"),L=VYe(t,o,s,d,h,E,_._labels,"b-label");l$t(t,E,d,h,o,s,T,L),s$t(d,h,l,o,s)})};function s$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(a9.font,c.font).text(c.text).call(W$.convertToTspans,e),v=a9.bBox(this);b.attr("transform",s9(d.p[0],d.p[1])+WYe(d.angle)+s9(c.axis.labelpadding*_,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function l$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),_=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,pC(r,i,a,f,r.dxydb_rough(u,l))),GYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+_),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Uv.extendFlat(s,pC(r,i,a,f,r.dxyda_rough(u,l))),GYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var XYe=jYe.LINE_SPACING,u$t=(1-jYe.MID_SHIFT)/XYe+1;function GYe(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=pC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var _=o.title.font.size;d+=_+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,C=v>90&&v<270,E=l9.select(this);E.text(o.title.text).call(W$.convertToTspans,e),C&&(d=(-W$.lineCount(E)+u$t)*XYe*_-d),E.attr("transform",s9(p.p[0],p.p[1])+WYe(p.angle)+s9(0,d)).attr("text-anchor","middle").call(a9.font,o.title.font)}),h.exit().remove()}});var JYe=Te((F3r,KYe)=>{"use strict";var u9=ei().isArrayOrTypedArray;KYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=u9(e)?e.length:e,c=u9(t)?t.length:t,h=u9(e)?e:null,d=u9(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,_=1/0,b=-1/0;for(i=0;i{"use strict";var $Ye=ei().isArrayOrTypedArray;eKe.exports=function(e){return QYe(e,0)};function QYe(e,t){if(!$Ye(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var f$t=wu(),Bx=Su().extendFlat;rKe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v,C=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,F=m.length,B=t._a.length,U=t._b.length;f$t.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De=[],xe=[],Ne={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),ge=re-ae,Ne.length=U,Ne.crossLength=B,Ne.xy=function(ce){return t.evalxy([],ce,re)},Ne.dxy=function(ce,je){return t.dxydi([],ce,ae,je,ge)},H=0;H0&&(ke=t.dxydi([],H-1,ae,0,ge),De.push(ze[0]+ke[0]/3),xe.push(ze[1]+ke[1]/3),Ee=t.dxydi([],H-1,ae,1,ge),De.push(te[0]-Ee[0]/3),xe.push(te[1]-Ee[1]/3)),De.push(te[0]),xe.push(te[1]),ze=te;else for(H=t.a2i(N),Le=Math.floor(Math.max(0,Math.min(B-2,H))),de=H-Le,Ne.length=B,Ne.crossLength=U,Ne.xy=function(ce){return t.evalxy([],H,ce)},Ne.dxy=function(ce,je){return t.dxydj([],Le,ce,de,je)},re=0;re0&&(Se=t.dxydj([],Le,re-1,de,0),De.push(ze[0]+Se[0]/3),xe.push(ze[1]+Se[1]/3),Ge=t.dxydj([],Le,re-1,de,1),De.push(te[0]-Ge[0]/3),xe.push(te[1]-Ge[1]/3)),De.push(te[0]),xe.push(te[1]),ze=te;return Ne.axisLetter=r,Ne.axis=E,Ne.crossAxis=M,Ne.value=N,Ne.constvar=n,Ne.index=c,Ne.x=De,Ne.y=xe,Ne.smoothing=M.smoothing,Ne}function W(N){var H,re,ae,ge,ze,Le=[],de=[],te={};if(te.length=C.length,te.crossLength=k.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),ze=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,ze)},H=0;HC.length-1)&&T.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(_=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,T.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 sKe=Te((q3r,oKe)=>{"use strict";var nKe=wu(),aKe=Su().extendFlat;oKe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";lKe.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 cKe=Te((U3r,fKe)=>{"use strict";var c$t=ei();fKe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,ge){var ze=0,Le,de=0;return ae>0&&(Le=t[ge][ae-1])!==void 0&&(de++,ze+=Le),ae0&&(Le=t[ge-1][ae])!==void 0&&(de++,ze+=Le),ge0&&a0&&iM);return c$t.log("Smoother converged to",m,"after",A,"iterations"),t}});var dKe=Te((V3r,hKe)=>{"use strict";hKe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var mKe=Te((G3r,vKe)=>{"use strict";var pKe=.5;vKe.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,pKe/2),f=Math.pow(s*s+u*u,pKe/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 gKe=Te((H3r,yKe)=>{"use strict";var j$=mKe(),f9=ei().ensureArray;function HS(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]}yKe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,_,b,v=n[0].length,C=n.length,E=a?3*v-2:v,T=o?3*C-2:C;for(t=f9(t,T),r=f9(r,T),l=0;l{"use strict";_Ke.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,_,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 T=C*C,L=T*C,x=1-C,k=x*x,M=k*x,m=E*E,P=m*E,A=1-E,F=A*A,B=F*A;for(_=0;_{"use strict";bKe.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,_=1-o,b=_*_,v=_*o*2,C=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,x=s*s,k=x*s,M=1-s,m=M*M,P=m*M;for(d=0;d{"use strict";AKe.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,_=p*o,b=1-o,v=b*b,C=v*b,E=s*s,T=1-s,L=T*T,x=T*s*2,k=-3*L,M=3*(L-x),m=3*(x-E),P=3*E;for(d=0;d{"use strict";var SKe=dKe(),MKe=UL().findBin,h$t=gKe(),d$t=xKe(),p$t=wKe(),v$t=TKe();EKe.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*SKe.RELATIVE_CULL_TOLERANCE,_=d*SKe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=_,c+=_,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,C=h$t(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=d$t([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=p$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(MKe(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(MKe(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),T=t.b2j(v),L=t.evalxy([],E,T);if(C){var x=0,k=0,M=[],m,P,A,F;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]?(A=a-2,F=1,k=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),F=T-A),x&&(t.dxydi(M,m,A,P,F),L[0]+=M[0]*x,L[1]+=M[1]*x),k&&(t.dxydj(M,m,A,P,F),L[0]+=M[0]*k,L[1]+=M[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 T=t.dxydi(null,b,v,C,E),L=t.dadi(b,C);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,C,E){var T=t.dxydj(null,b,v,C,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,C){var E=h*(C||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,C){var E=d*(C||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var FKe=Te((Y3r,DKe)=>{"use strict";var c9=wu(),CKe=ei().isArray1D,m$t=JYe(),LKe=tKe(),PKe=iKe(),zKe=sKe(),y$t=uKe(),IKe=uR(),RKe=cKe(),g$t=sR(),_$t=kKe();DKe.exports=function(t,r){var n=c9.getFromId(t,r.xaxis),i=c9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&CKe(s)&&l.push("x"),u&&CKe(u)&&l.push("y"),l.length&&g$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=IKe(s),r._y=u=IKe(u),RKe(s,f,c),RKe(u,f,c),_$t(r),r.setScale();var _=LKe(s),b=LKe(u),v=.5*(_[1]-_[0]),C=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return _=[C-v*L,C+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=c9.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=c9.findExtremes(i,b,{padded:!0}),PKe(r,"a","b"),PKe(r,"b","a"),zKe(r,a),zKe(r,o),h.clipsegments=y$t(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var OKe=Te((K3r,BKe)=>{"use strict";BKe.exports={attributes:n9(),supplyDefaults:BYe(),plot:YYe(),calc:FKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var NKe=Te((J3r,qKe)=>{"use strict";qKe.exports=OKe()});var X$=Te(($3r,HKe)=>{"use strict";var x$t=Pm(),f0=Zc(),b$t=Gf(),{hovertemplateAttrs:w$t,texttemplateAttrs:A$t,templatefallbackAttrs:UKe}=Ff(),VKe=nc(),Ox=Su().extendFlat,um=f0.marker,WS=f0.line,GKe=um.line;HKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Ox({},f0.mode,{dflt:"markers"}),text:Ox({},f0.text,{}),texttemplate:A$t({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:UKe({editType:"plot"}),hovertext:Ox({},f0.hovertext,{}),line:{color:WS.color,width:WS.width,dash:WS.dash,backoff:WS.backoff,shape:Ox({},WS.shape,{values:["linear","spline"]}),smoothing:WS.smoothing,editType:"calc"},connectgaps:f0.connectgaps,fill:Ox({},f0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:x$t(),marker:Ox({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:Ox({width:GKe.width,dash:GKe.dash,editType:"calc"},VKe("marker.line")),gradient:um.gradient,editType:"calc"},VKe("marker")),textfont:f0.textfont,textposition:f0.textposition,selected:f0.selected,unselected:f0.unselected,hoverinfo:Ox({},b$t.hoverinfo,{flags:["a","b","text","name"]}),hoveron:f0.hoveron,hovertemplate:w$t(),hovertemplatefallback:UKe(),zorder:f0.zorder}});var ZKe=Te((Q3r,XKe)=>{"use strict";var WKe=ei(),T$t=Ly(),jS=lc(),S$t=$v(),M$t=R0(),jKe=sA(),E$t=D0(),k$t=Dm(),C$t=X$();XKe.exports=function(t,r,n,i){function a(h,d){return WKe.coerce(t,r,C$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";YKe.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 h9=Te((tAr,JKe)=>{"use strict";JKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var $Ke=ku(),L$t=F0(),P$t=Iy(),z$t=B0(),I$t=O0().calcMarkerSize,R$t=h9();QKe.exports=function(t,r){var n=r._carpetTrace=R$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 D$t=dA(),tJe=wu(),F$t=Mu();rJe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=tJe.getFromId(t,u.xaxis||"x"),f=tJe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var B$t=yA(),O$t=ei().fillText;nJe.exports=function(t,r,n,i){var a=B$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 _=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+T.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),_.push("y: "+o.yLabel),C.indexOf("text")!==-1&&O$t(c,h,_),o.extraText=_.join("
")}return a}});var sJe=Te((aAr,oJe)=>{"use strict";oJe.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 uJe=Te((oAr,lJe)=>{"use strict";lJe.exports={attributes:X$(),supplyDefaults:ZKe(),colorbar:ep(),formatLabels:KKe(),calc:eJe(),plot:iJe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:aJe(),selectPoints:gA(),eventData:sJe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var cJe=Te((sAr,fJe)=>{"use strict";fJe.exports=uJe()});var Z$=Te((lAr,hJe)=>{"use strict";var fm=DA(),A1=BE(),q$t=nc(),N$t=Su().extendFlat,lg=A1.contours;hJe.exports=N$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:lg.type,start:lg.start,end:lg.end,size:lg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:lg.showlines,showlabels:lg.showlabels,labelfont:lg.labelfont,labelformat:lg.labelformat,operation:lg.operation,value:lg.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},q$t("",{cLetter:"z",autoColorDflt:!1}))});var Y$=Te((uAr,vJe)=>{"use strict";var dJe=ei(),U$t=nR(),pJe=Z$(),V$t=GG(),G$t=kR(),H$t=CR();vJe.exports=function(t,r,n,i){function a(l,f){return dJe.coerce(t,r,pJe,l,f)}function o(l){return dJe.coerce2(t,r,pJe,l)}if(a("carpet"),t.a&&t.b){var s=U$t(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?V$t(t,r,a,i,n,{hasHover:!1}):(G$t(t,r,a,o),H$t(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var _Je=Te((fAr,gJe)=>{"use strict";var W$t=gp(),mJe=ei(),j$t=sR(),X$t=uR(),Z$t=fR(),Y$t=cR(),yJe=hG(),K$t=Y$(),J$t=h9(),$$t=PG();gJe.exports=function(t,r){var n=r._carpetTrace=J$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),K$t(a,r,r._defaultColor,t._fullLayout)}var o=Q$t(t,r);return $$t(r,r._z),o}};function Q$t(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,mJe.isArray1D(t.z)&&j$t(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=X$t(t._z||t.z,t.transpose),t._emptypoints=Y$t(c),Z$t(c,t._emptypoints);var h=mJe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=yJe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":u,b=yJe(t,_,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&W$t(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var bJe=Te((cAr,xJe)=>{"use strict";var eQt=ei().isArrayOrTypedArray;xJe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v=eQt(r)?"a":"b",C=v==="a"?e.aaxis:e.baxis,E=C.smoothing,T=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,M=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(x):e.a2i(x)),P=v==="a"?function(ge){return e.evalxy([],ge,m)}:function(ge){return e.evalxy([],m,ge)};E&&(o=Math.max(0,Math.min(M-2,m)),s=m-o,a=v==="a"?function(ge,ze){return e.dxydi([],ge,o,ze,s)}:function(ge,ze){return e.dxydj([],o,ge,s,ze)});var A=T(L[0]),F=T(L[1]),B=A0?Math.floor:Math.ceil,j=B>0?Math.ceil:Math.floor,W=B>0?Math.min:Math.max,N=B>0?Math.max:Math.min,H=G(A+U),re=j(F-U);f=P(A);var ae=[[f]];for(i=H;i*B{"use strict";var p9=Jl(),v9=G$(),MJe=H$(),vC=Mu(),T1=ei(),tQt=IG(),rQt=RG(),Aw=zR(),d9=qE(),iQt=OG(),nQt=BG(),aQt=qG(),oQt=h9(),wJe=bJe();EJe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;T1.makeTraceGroups(i,n,"contour").each(function(s){var u=p9.select(this),l=s[0],f=l.trace,c=f._carpetTrace=oQt(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,_=f.contours,b=nQt(_,r,l),v=_.type==="constraint",C=_._operation,E=v?C==="="?"lines":"fill":_.coloring;function T(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]]];tQt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(p[p.length-1]-p[0])*1e-8;rQt(b,x,k);var M=b;_.type==="constraint"&&(M=iQt(b,C)),sQt(b,T);var m,P,A,F,B=[];for(F=h.clipsegments.length-1;F>=0;F--)m=h.clipsegments[F],P=v9([],m.x,a.c2p),A=v9([],m.y,o.c2p),P.reverse(),A.reverse(),B.push(MJe(P,A,m.bicubic));var U="M"+B.join("L")+"Z";fQt(u,h.clipsegments,a,o,v,E),cQt(f,u,a,o,M,L,T,c,h,E,U),lQt(u,b,t,l,_,r,c),vC.setClipUrl(u,c._clipPathId,t)})};function sQt(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 AJe(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 TJe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function SJe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function fQt(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,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):T1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;l+=M(h,d),h=d}if(_===t.edgepaths.length){T1.log("unclosed perimeter path");break}u=_,c=f.indexOf(u)===-1,c&&(u=f[0],l+=M(h,d)+"Z",h=null)}for(u=0;u{"use strict";CJe.exports={attributes:Z$(),supplyDefaults:Y$(),colorbar:DR(),calc:_Je(),plot:kJe(),style:RR(),moduleType:"trace",name:"contourcarpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var zJe=Te((pAr,PJe)=>{"use strict";PJe.exports=LJe()});var y9=Te((vAr,BJe)=>{"use strict";var m9=ei().extendFlat,mC=Zc(),IJe=jc().axisHoverFormat,{hovertemplateAttrs:dQt,templatefallbackAttrs:pQt}=Ff(),DJe=Id().dash,vQt=p3(),FJe=JA(),mQt=FJe.INCREASING.COLOR,yQt=FJe.DECREASING.COLOR,K$=mC.line;function RJe(e){return{line:{color:m9({},K$.color,{dflt:e}),width:K$.width,dash:DJe,editType:"style"},editType:"style"}}BJe.exports={xperiod:mC.xperiod,xperiod0:mC.xperiod0,xperiodalignment:mC.xperiodalignment,xhoverformat:IJe("x"),yhoverformat:IJe("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:m9({},K$.width,{}),dash:m9({},DJe,{}),editType:"style"},increasing:RJe(mQt),decreasing:RJe(yQt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:dQt({},{keys:["open","high","low","close"]}),hovertemplatefallback:pQt(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:m9({},vQt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:mC.zorder}});var J$=Te((mAr,OJe)=>{"use strict";var gQt=$l(),_Qt=ei();OJe.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=gQt.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,_Qt.minRowLength(a))),r._length=c,c}}});var UJe=Te((yAr,NJe)=>{"use strict";var xQt=ei(),bQt=J$(),wQt=Rm(),AQt=y9();NJe.exports=function(t,r,n,i){function a(s,u){return xQt.coerce(t,r,AQt,s,u)}var o=bQt(t,r,a,i);if(!o){r.visible=!1;return}wQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),qJe(t,r,a,"increasing"),qJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function qJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var $$=Te((gAr,GJe)=>{"use strict";var XS=ei(),g9=XS._,_9=wu(),TQt=Fm(),yC=rf().BADNUM;function SQt(e,t){var r=_9.getFromId(e,t.xaxis),n=_9.getFromId(e,t.yaxis),i=EQt(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=VJe(e,t,o,s,n,MQt);return t._extremes[r._id]=_9.findExtremes(r,s,{vpad:a/2}),u.length?(XS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function MQt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function VJe(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=XS.isArrayOrTypedArray(t.text),c=XS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,_=[],b=0;bd):h=L>C,d=L;var x=a(C,E,T,L);x.pos=v,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[T,E],p&&(x.orig_p=r[b]),f&&(x.tx=t.text[b]),c&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:v,empty:!0})}return t._extremes[i._id]=_9.findExtremes(i,XS.concat(u,s),{padded:!0}),_.length&&(_[0].t={labels:{open:g9(e,"open:")+" ",high:g9(e,"high:")+" ",low:g9(e,"low:")+" ",close:g9(e,"close:")+" "}}),_}function EQt(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 kQt=Jl(),HJe=ei();WJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;HJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=kQt.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(HJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),v=o.c2p(_.pos+d,!0),C=s?(b+v)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),T=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+T+"V"+L+"M"+v+","+x+"H"+C})})}});var ZJe=Te((xAr,XJe)=>{"use strict";var Q$=Jl(),CQt=Mu(),LQt=jl();XJe.exports=function(t,r,n){var i=n||Q$.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;Q$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;Q$.select(this).style("fill","none").call(LQt.stroke,u.color).call(CQt.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var tQ=Te((bAr,QJe)=>{"use strict";var eQ=wu(),PQt=ei(),x9=Xc(),zQt=jl(),IQt=ei().fillText,YJe=JA(),RQt={increasing:YJe.INCREASING.SYMBOL,decreasing:YJe.DECREASING.SYMBOL};function DQt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?JJe(e,t,r,n):$Je(e,t,r,n)}function KJe(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},_=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function C(P){var A=p(P);return x9.inbox(A-b,A+b,c)}function E(P){var A=P[l],F=P[f];return A===F||x9.inbox(A-r,F-r,c)}function T(P){return(C(P)+E(P))/2}var L=x9.getDistanceFunction(n,C,E,T);if(x9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,M=o[k],m=M.line.color;return zQt.opacity(m)&&M.line.width?e.color=m:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=T(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function JJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=KJe(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[_]+eQ.hoverLabelText(a,b,o.yhoverformat)):(C=PQt.extendFlat({},l),C.y0=C.y1=v,C.yLabelVal=b,C.yLabel=s.labels[_]+eQ.hoverLabelText(a,b,o.yhoverformat),C.name="",u.push(C),d[b]=C)}return u}function $Je(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=KJe(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+eQ.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",_=p.split("+"),b=p==="all",v=b||_.indexOf("y")!==-1,C=b||_.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+RQt[h]]:[];return C&&IQt(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}QJe.exports={hoverPoints:DQt,hoverSplit:JJe,hoverOnPoints:$Je}});var rQ=Te((wAr,e$e)=>{"use strict";e$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";t$e.exports={moduleType:"trace",name:"ohlc",basePlotModule:Mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:y9(),supplyDefaults:UJe(),calc:$$().calc,plot:jJe(),style:ZJe(),hoverPoints:tQ().hoverPoints,selectPoints:rQ()}});var n$e=Te((TAr,i$e)=>{"use strict";i$e.exports=r$e()});var nQ=Te((SAr,s$e)=>{"use strict";var iQ=ei().extendFlat,a$e=jc().axisHoverFormat,pv=y9(),ZS=kE();function o$e(e){return{line:{color:iQ({},ZS.line.color,{dflt:e}),width:ZS.line.width,editType:"style"},fillcolor:ZS.fillcolor,editType:"style"}}s$e.exports={xperiod:pv.xperiod,xperiod0:pv.xperiod0,xperiodalignment:pv.xperiodalignment,xhoverformat:a$e("x"),yhoverformat:a$e("y"),x:pv.x,open:pv.open,high:pv.high,low:pv.low,close:pv.close,line:{width:iQ({},ZS.line.width,{}),editType:"style"},increasing:o$e(pv.increasing.line.color.dflt),decreasing:o$e(pv.decreasing.line.color.dflt),text:pv.text,hovertext:pv.hovertext,hovertemplate:pv.hovertemplate,hovertemplatefallback:pv.hovertemplatefallback,whiskerwidth:iQ({},ZS.whiskerwidth,{dflt:0}),hoverlabel:pv.hoverlabel,zorder:ZS.zorder}});var f$e=Te((MAr,u$e)=>{"use strict";var FQt=ei(),BQt=jl(),OQt=J$(),qQt=Rm(),NQt=nQ();u$e.exports=function(t,r,n,i){function a(s,u){return FQt.coerce(t,r,NQt,s,u)}var o=OQt(t,r,a,i);if(!o){r.visible=!1;return}qQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),l$e(t,r,a,"increasing"),l$e(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function l$e(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",BQt.addOpacity(i,.5))}});var p$e=Te((EAr,d$e)=>{"use strict";var c$e=ei(),h$e=wu(),UQt=Fm(),VQt=$$().calcCommon;d$e.exports=function(e,t){var r=e._fullLayout,n=h$e.getFromId(e,t.xaxis),i=h$e.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=UQt(t,n,"x",a).vals,s=VQt(e,t,a,o,i,GQt);return s.length?(c$e.extendFlat(s[0].t,{num:r._numBoxes,dPos:c$e.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function GQt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var m$e=Te((kAr,v$e)=>{"use strict";v$e.exports={moduleType:"trace",name:"candlestick",basePlotModule:Mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:nQ(),layoutAttributes:CE(),supplyLayoutDefaults:$I().supplyLayoutDefaults,crossTraceCalc:eR().crossTraceCalc,supplyDefaults:f$e(),calc:p$e(),plot:tR().plot,layerName:"boxlayer",style:rR().style,hoverPoints:tQ().hoverPoints,selectPoints:rQ()}});var g$e=Te((CAr,y$e)=>{"use strict";y$e.exports=m$e()});var oQ=Te((LAr,_$e)=>{"use strict";var w9=ei(),HQt=xy(),b9=w9.deg2rad,aQ=w9.rad2deg;_$e.exports=function(t,r,n){switch(HQt(t,n),t._id){case"x":case"radialaxis":WQt(t,r);break;case"angularaxis":ZQt(t,r);break}};function WQt(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 jQt(e,t){return t==="degrees"?b9(e):e}function XQt(e,t){return t==="degrees"?aQ(e):e}function ZQt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return jQt(n(a),o)},e.c2d=function(a,o){return i(XQt(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";x$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 S9=Te((zAr,S$e)=>{"use strict";var Tw=ei(),b$e=D5().tester,sQ=Tw.findIndexOfMin,A$e=Tw.isAngleInsideSector,YQt=Tw.angleDelta,w$e=Tw.angleDist;function KQt(e,t,r,n,i){if(!A$e(t,n))return!1;var a,o;r[0]0?o:1/0},n=sQ(t,r),i=Tw.mod(n+1,t.length);return[t[n],t[i]]}function T9(e){return Math.abs(e)>1e-10?e:0}function lQ(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function M$e(e){return e<0?-1:e>0?1:0}function KS(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 JS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function E$e(e,t){return t*e.radius}function ner(e,t,r,n){var i=JS(e,KS([r,t])),a=i[0],o=i[1],s=JS(e,KS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=E$e(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function aer(e,t,r,n){var i=E$e(e,1/(t+1)),a=JS(e,KS([t,r])),o=a[0],s=a[1],u=JS(e,KS([t,n])),l=u[0],f=u[1];if(M$e(r)!==M$e(n)){var c=JS(e,KS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Sw=Jl(),oer=hd(),Ew=$l(),Oc=ei(),ug=Oc.strRotate,bd=Oc.strTranslate,fQ=jl(),gC=Mu(),ser=Cc(),vv=wu(),ler=xy(),uer=oQ(),fer=Mm().doAutoRange,S1=tU(),k9=xp(),C$e=Xc(),cer=Fb(),her=oh().prepSelect,der=oh().selectOnClick,cQ=oh().clearOutline,L$e=Em(),P$e=b5(),z$e=C5().redrawReglTraces,per=Nh().MID_SHIFT,qx=A9(),M1=S9(),C9=uQ(),M9=C9.smith,ver=C9.reactanceArc,mer=C9.resistanceArc,E9=C9.smithTransform,yer=Oc._,I$e=Oc.mod,Nx=Oc.deg2rad,Mw=Oc.rad2deg;function R$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 Ud=R$e.prototype;B$e.exports=function(t,r,n){return new R$e(t,r,n)};Ud.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]],T=[u[0]+L,u[1]-L]):(v=f/b,C=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=C,r.xDomain2=E,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=v/d,m=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],A=r.cy=k+M*h[3],F=r.cxx=P-x,B=r.cyy=A-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,M/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:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(F,B)),n.frontplot.attr("transform",bd(x,k)).call(gC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,A)).call(fQ.fill,t.bgcolor)};Ud.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return uer(i,t,e),i};Ud.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);ler(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};Ud.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);fer(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(M){var m=E9(r,M9([M.x,0]));return bd(m[0]-s,m[1]-u)}:function(M){return bd(c.l2p(M.x)+o,0)},_=d?function(M){return mer(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(c.r2p(M.x)+o)},b=D$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(M){return M>=0}).map(function(M){return vv.tickText(c,M,!0,!1)}):vv.calcTicks(c),E=d?C:vv.clipEnds(c,C),T=vv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),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,T),transFn:p,crisp:!1}),vv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:_,transFn:Oc.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?Mw(F$e(Nx(l.angle),r.vangles)):l.angle,x=bd(s,u),k=x+ug(-L);_C(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:k}),_C(i["radial-grid"],h&&l.showgrid,{transform:d?"":x}),_C(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(fQ.stroke,l.linecolor)};Ud.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=gC.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,_=Nx(p),b=Math.cos(_),v=Math.sin(_),C=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=cer.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title.text",placeholder:yer(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Ud.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=E9(r,M9([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=Mw(f.tick0),f.dtick=Mw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=E9(r,M9([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},_=c?function(m){var P=E9(r,M9([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+ug(-Mw(A))}:function(m){var P=h(m);return d(P)+ug(-Mw(P))},b=c?function(m){return ver(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),F=Math.sin(P);return"M"+[s+o*A,u-o*F]+"L"+[s+a*A,u-a*F]},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),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*per)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var F=h(m);return-.5*(1+Math.sin(F))*A};var T=D$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);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),Oc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var k=f.ticks==="inside"?-1:1,M=(f.linewidth||1)/2;vv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*f.ticklen,transFn:_,crisp:!1}),vv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),vv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}_C(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(fQ.stroke,l.linecolor)};Ud.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)}};Ud.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=qx.MINZOOM,s=qx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,_=t.vangles,b=t.radialAxis,v=M1.clampTiny,C=M1.findXYatLength,E=M1.findEnclosingVertexAngles,T=qx.cornerHalfWidth,L=qx.cornerLen/2,x,k,M=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Sw.select(M).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),M.onmousemove=function(ce){C$e.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||k9.unhover(n,ce)};var m={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,F,B,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 ge(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function ze(ce,je){if(ce===0)return t.pathSector(2*T);var Qe=L/ce,gt=je-Qe,qt=je+Qe,at=Math.max(0,Math.min(ce,u)),Ke=at-T,Ct=at+T;return"M"+ge(Ke,gt)+"A"+[Ke,Ke]+" 0,0,0 "+ge(Ke,qt)+"L"+ge(Ct,qt)+"A"+[Ct,Ct]+" 0,0,1 "+ge(Ct,gt)+"Z"}function Le(ce,je,Qe){if(ce===0)return t.pathSector(2*T);var gt=ge(ce,je),qt=ge(ce,Qe),at=v((gt[0]+qt[0])/2),Ke=v((gt[1]+qt[1])/2),Ct,wt;if(at&&Ke){var Mt=Ke/at,Bt=-1/Mt,Zt=C(T,Mt,at,Ke);Ct=C(L,Bt,Zt[0][0],Zt[0][1]),wt=C(L,Bt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ke?(Et=L,Ae=T):(Et=T,Ae=L),Ct=[[at-Et,Ke-Ae],[at+Et,Ke-Ae]],wt=[[at-Et,Ke+Ae],[at+Et,Ke+Ae]]}return"M"+Ct.join("L")+"L"+wt.reverse().join("L")+"Z"}function de(){F=null,B=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=oer(ce.bgcolor).getLuminance(),W=S1.makeZoombox(a,j,f,c,U),W.attr("fill-rule","evenodd"),N=S1.makeCorners(a,f,c),cQ(n)}function te(ce,je){return je=Math.max(Math.min(je,u),l),ceo?(ce-1&&ce===1&&der(je,n,[t.xaxis],[t.yaxis],t.id,m),Qe.indexOf("event")>-1&&C$e.click(n,je,t.id)}m.prepFn=function(ce,je,Qe){var gt=n._fullLayout.dragmode,qt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var at=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var Ke=Oc.apply3DTransform(at)(je-qt.left,Qe-qt.top);if(P=Ke[0],A=Ke[1],_){var Ct=M1.findPolygonOffset(u,p[0],p[1],_);P+=h+Ct[0],A+=d+Ct[1]}switch(gt){case"zoom":m.clickFn=Ne,r||(_?m.moveFn=Ge:m.moveFn=Ee,m.doneFn=De,de(ce,je,Qe));break;case"select":case"lasso":her(ce,je,Qe,m,gt);break}},k9.init(m)};Ud.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=qx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Nx(n.radialAxisAngle),p=f._rl,_=p[0],b=p[1],v=p[r],C=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=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),_C(Sw.select(x),f.visible&&s0!=(r?P>_: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 F$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.findIndexOfMin(t,r);return t[n]}function _C(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var dQ=Te((DAr,G$e)=>{"use strict";var _er=Oh(),Yu=Dd(),xer=zc().attributes,c0=ei().extendFlat,O$e=Sc().overrideAll,q$e=O$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"),N$e=O$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"),U$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(U$e,q$e,N$e);var V$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(V$e,q$e,N$e);G$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:_er.background},radialaxis:U$e,angularaxis:V$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var X$e=Te((FAr,j$e)=>{"use strict";var L9=ei(),ber=jl(),wer=Lf(),Aer=B_(),Ter=Rd().getSubplotData,Ser=Lb(),Mer=D3(),Eer=s_(),ker=l_(),Cer=fI(),Ler=uE(),Per=IN(),zer=V3(),W$e=dQ(),Ier=oQ(),P9=A9(),H$e=P9.axisNames;function Rer(e,t,r,n){var i=r("bgcolor");n.bgColor=ber.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=Ter(n.fullData,P9.name,n.id),s=n.layoutOut,u;function l(W,N){return r(u+"."+W,N)}for(var f=0;f{"use strict";var Fer=Rd().getSubplotCalcData,Ber=ei().counterRegex,Oer=hQ(),Y$e=A9(),K$e=Y$e.attr,kw=Y$e.name,Z$e=Ber(kw),J$e={};J$e[K$e]={valType:"subplotid",dflt:kw,editType:"calc"};function qer(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[kw],i=0;i{"use strict";var{hovertemplateAttrs:Uer,texttemplateAttrs:Ver,templatefallbackAttrs:Q$e}=Ff(),I9=Su().extendFlat,Ger=Pm(),h0=Zc(),Her=Gf(),$S=h0.line;eQe.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:Ver({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Q$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:$S.color,width:$S.width,dash:$S.dash,backoff:$S.backoff,shape:I9({},$S.shape,{values:["linear","spline"]}),smoothing:$S.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:I9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:I9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Ger(),hoverinfo:I9({},Her.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:Uer(),hovertemplatefallback:Q$e(),selected:h0.selected,unselected:h0.unselected}});var D9=Te((qAr,iQe)=>{"use strict";var R9=ei(),QS=lc(),Wer=$v(),jer=R0(),tQe=sA(),Xer=D0(),Zer=Dm(),Yer=Ly().PTS_LINESONLY,Ker=xC();function Jer(e,t,r,n){function i(s,u){return R9.coerce(e,t,Ker,s,u)}var a=rQe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var $er=ei(),nQe=wu();aQe.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=nQe.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?$er.rad2deg(t.theta):t.theta;return i.thetaLabel=nQe.tickText(s,l,!0).text,i}});var lQe=Te((UAr,sQe)=>{"use strict";var oQe=ku(),Qer=rf().BADNUM,etr=wu(),ttr=F0(),rtr=Iy(),itr=B0(),ntr=O0().calcMarkerSize;sQe.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 atr=dA(),uQe=rf().BADNUM;fQe.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 otr=yA();function str(e,t,r,n){var i=otr(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,hQe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function hQe(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("
")}}dQe.exports={hoverPoints:str,makeHoverPointText:hQe}});var vQe=Te((HAr,pQe)=>{"use strict";pQe.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:z9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:xC(),supplyDefaults:D9().supplyDefaults,colorbar:ep(),formatLabels:F9(),calc:lQe(),plot:cQe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:B9().hoverPoints,selectPoints:gA(),meta:{}}});var yQe=Te((WAr,mQe)=>{"use strict";mQe.exports=vQe()});var pQ=Te((ZAr,_Qe)=>{"use strict";var gQe=xC(),{cliponaxis:jAr,hoveron:XAr}=gQe,ltr=kee(gQe,["cliponaxis","hoveron"]),{connectgaps:utr,line:{color:ftr,dash:ctr,width:htr},fill:dtr,fillcolor:ptr,marker:vtr,textfont:mtr,textposition:ytr}=mk();_Qe.exports=W1(_m({},ltr),{connectgaps:utr,fill:dtr,fillcolor:ptr,line:{color:ftr,dash:ctr,editType:"calc",width:htr},marker:vtr,textfont:mtr,textposition:ytr})});var wQe=Te((KAr,bQe)=>{"use strict";var xQe=ei(),vQ=lc(),gtr=D9().handleRThetaDefaults,_tr=$v(),xtr=R0(),btr=D0(),wtr=Dm(),Atr=Ly().PTS_LINESONLY,Ttr=pQ();bQe.exports=function(t,r,n,i){function a(s,u){return xQe.coerce(t,r,Ttr,s,u)}var o=gtr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var Str=F9();AQe.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]),Str(t,r,n)}});var MQe=Te(($Ar,SQe)=>{"use strict";var Mtr=F0(),Etr=O0().calcMarkerSize,ktr=ow(),Ctr=wu(),Ltr=vx().TOO_MANY_POINTS;SQe.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 Ptr=WF(),ztr=B9().makeHoverPointText;function Itr(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=Ptr.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,ztr(c,h,f,l),u}}EQe.exports={hoverPoints:Itr}});var LQe=Te((eTr,CQe)=>{"use strict";CQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:z9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:pQ(),supplyDefaults:wQe(),colorbar:ep(),formatLabels:TQe(),calc:MQe(),hoverPoints:kQe().hoverPoints,selectPoints:MY(),meta:{}}});var PQe=Te((tTr,mQ)=>{"use strict";var Rtr=ZF(),Dtr=ku(),Ftr=LK(),Btr=AY(),O9=ow(),q9=ei(),Otr=vx().TOO_MANY_POINTS,qtr={};mQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Btr(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,_,b=h.slice(),v=d.slice();for(_=0;_=Otr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=C),p.line&&C.length>1&&q9.extendFlat(p.line,O9.linePositions(t,l,C)),p.text&&(q9.extendFlat(p.text,{positions:C},O9.textPosition(t,l,p.text,p.marker)),q9.extendFlat(p.textSel,{positions:C},O9.textPosition(t,l,p.text,p.markerSel)),q9.extendFlat(p.textUnsel,{positions:C},O9.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=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=C,f._scene=o,f.index=o.count,o.count++}}),Ftr(t,r,n)}};mQ.exports.reglPrecompiled=qtr});var IQe=Te((rTr,zQe)=>{"use strict";var Ntr=P8(),Utr=z8(),Vtr=I8(),Gtr=R8(),Htr=D8(),Wtr=F8(),jtr=B8(),Xtr=O8(),Ztr=q8(),Ytr=N8();zQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Ntr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Utr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Vtr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Gtr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Htr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Wtr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:jtr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:Xtr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Ztr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":Ytr}});var DQe=Te((iTr,RQe)=>{"use strict";var yQ=PQe(),Ktr=IQe(),Jtr=PK();Object.assign(yQ.reglPrecompiled,Ktr);Object.assign(yQ.reglPrecompiled,Jtr);RQe.exports=yQ});var OQe=Te((nTr,BQe)=>{"use strict";var FQe=LQe();FQe.plot=DQe();BQe.exports=FQe});var gQ=Te((aTr,qQe)=>{"use strict";var{hovertemplateAttrs:$tr,templatefallbackAttrs:Qtr}=Ff(),eM=Su().extendFlat,Ux=xC(),Vx=Fy();qQe.exports={r:Ux.r,theta:Ux.theta,r0:Ux.r0,dr:Ux.dr,theta0:Ux.theta0,dtheta:Ux.dtheta,thetaunit:Ux.thetaunit,base:eM({},Vx.base,{}),offset:eM({},Vx.offset,{}),width:eM({},Vx.width,{}),text:eM({},Vx.text,{}),hovertext:eM({},Vx.hovertext,{}),marker:err(),hoverinfo:Ux.hoverinfo,hovertemplate:$tr(),hovertemplatefallback:Qtr(),selected:Vx.selected,unselected:Vx.unselected};function err(){var e=eM({},Vx.marker);return delete e.cornerradius,e}});var _Q=Te((oTr,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 GQe=Te((sTr,VQe)=>{"use strict";var UQe=ei(),trr=D9().handleRThetaDefaults,rrr=jI(),irr=gQ();VQe.exports=function(t,r,n,i){function a(s,u){return UQe.coerce(t,r,irr,s,u)}var o=trr(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"),rrr(t,r,a,n,i),UQe.coerceSelectionMarkerOpacity(r,a)}});var WQe=Te((lTr,HQe)=>{"use strict";var nrr=ei(),arr=_Q();HQe.exports=function(e,t,r){var n={},i;function a(u,l){return nrr.coerce(e[i]||{},t[i],arr,u,l)}for(var o=0;o{"use strict";var jQe=yp().hasColorscale,XQe=gp(),orr=ei().isArrayOrTypedArray,srr=TE(),lrr=t2().setGroupPositions,urr=B0(),frr=$l().traceIs,crr=ei().extendFlat;function hrr(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 YQe=Jl(),N9=ku(),tM=ei(),prr=Mu(),bQ=S9();KQe.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");tM.makeTraceGroups(f,n,"trace bars").each(function(){var c=YQe.select(this),h=tM.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(tM.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 _=YQe.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),T;if(!N9(b)||!N9(v)||!N9(C)||!N9(E)||b===v||C===E)T="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))],T=l(b,v,C,E)}tM.ensureSingle(_,"path").attr("d",T)}),prr.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;tM.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=bQ.findEnclosingVertexAngles(s,e.vangles)[0],f=bQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return bQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return tM.pathAnnulus(n,i,a,o,t,r)}}});var QQe=Te((cTr,$Qe)=>{"use strict";var mrr=Xc(),wQ=ei(),yrr=PA().getTraceColor,grr=wQ.fillText,_rr=B9().makeHoverPointText,xrr=S9().isPtInsidePolygon;$Qe.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:wQ.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 _=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(mrr.getClosest(i,_,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=wQ.extendFlat({},v,{r:v.s,theta:v.p});return grr(v,a,t),_rr(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=yrr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var tet=Te((hTr,eet)=>{"use strict";eet.exports={moduleType:"trace",name:"barpolar",basePlotModule:z9(),categories:["polar","bar","showLegend"],attributes:gQ(),layoutAttributes:_Q(),supplyDefaults:GQe(),supplyLayoutDefaults:WQe(),calc:xQ().calc,crossTraceCalc:xQ().crossTraceCalc,plot:JQe(),colorbar:ep(),formatLabels:F9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:QQe(),selectPoints:zA(),meta:{}}});var iet=Te((dTr,ret)=>{"use strict";ret.exports=tet()});var AQ=Te((pTr,net)=>{"use strict";net.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var TQ=Te((vTr,uet)=>{"use strict";var brr=Oh(),fh=Dd(),wrr=zc().attributes,Gx=ei().extendFlat,aet=Sc().overrideAll,oet=aet({color:fh.color,showline:Gx({},fh.showline,{dflt:!0}),linecolor:fh.linecolor,linewidth:fh.linewidth,showgrid:Gx({},fh.showgrid,{dflt:!0}),gridcolor:fh.gridcolor,gridwidth:fh.gridwidth,griddash:fh.griddash},"plot","from-root"),set=aet({ticklen:fh.ticklen,tickwidth:Gx({},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"),Arr=Gx({visible:Gx({},fh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Gx({},fh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},oet,set),Trr=Gx({visible:Gx({},fh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:fh.ticks,editType:"calc"},oet,set);uet.exports={domain:wrr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:brr.background},realaxis:Arr,imaginaryaxis:Trr,editType:"calc"}});var het=Te((mTr,cet)=>{"use strict";var rM=ei(),Srr=jl(),Mrr=Lf(),Err=B_(),krr=Rd().getSubplotData,Crr=l_(),Lrr=s_(),Prr=uE(),zrr=xy(),iM=TQ(),SQ=AQ(),fet=SQ.axisNames,Irr=Drr(function(e){return rM.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function Rrr(e,t,r,n){var i=r("bgcolor");n.bgColor=Srr.combine(i,n.paper_bgcolor);var a=krr(n.fullData,SQ.name,n.id),o=n.layoutOut,s;function u(L,x){return r(s+"."+L,x)}for(var l=0;l{"use strict";var Frr=Rd().getSubplotCalcData,Brr=ei().counterRegex,Orr=hQ(),pet=AQ(),vet=pet.attr,Cw=pet.name,det=Brr(Cw),met={};met[vet]={valType:"subplotid",dflt:Cw,editType:"calc"};function qrr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Cw],i=0;i{"use strict";var{hovertemplateAttrs:Urr,texttemplateAttrs:Vrr,templatefallbackAttrs:_et}=Ff(),U9=Su().extendFlat,Grr=Pm(),d0=Zc(),Hrr=Gf(),nM=d0.line;xet.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Vrr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:_et({editType:"plot"}),hovertext:d0.hovertext,line:{color:nM.color,width:nM.width,dash:nM.dash,backoff:nM.backoff,shape:U9({},nM.shape,{values:["linear","spline"]}),smoothing:nM.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:U9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:U9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Grr(),hoverinfo:U9({},Hrr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Urr(),hovertemplatefallback:_et(),selected:d0.selected,unselected:d0.unselected}});var Aet=Te((_Tr,wet)=>{"use strict";var V9=ei(),aM=lc(),Wrr=$v(),jrr=R0(),bet=sA(),Xrr=D0(),Zrr=Dm(),Yrr=Ly().PTS_LINESONLY,Krr=MQ();wet.exports=function(t,r,n,i){function a(u,l){return V9.coerce(t,r,Krr,u,l)}var o=Jrr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var Tet=wu();Met.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=Tet.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=Tet.tickText(a.angularAxis,t.imag,!0).text,i}});var Let=Te((bTr,Cet)=>{"use strict";var ket=ku(),$rr=rf().BADNUM,Qrr=F0(),eir=Iy(),tir=B0(),rir=O0().calcMarkerSize;Cet.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 iir=dA(),Pet=rf().BADNUM,nir=uQ(),air=nir.smith;zet.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 oir=yA();function sir(e,t,r,n){var i=oir(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,Ret(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function Ret(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("
")}}Det.exports={hoverPoints:sir,makeHoverPointText:Ret}});var Oet=Te((TTr,Bet)=>{"use strict";Bet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:get(),categories:["smith","symbols","showLegend","scatter-like"],attributes:MQ(),supplyDefaults:Aet(),colorbar:ep(),formatLabels:Eet(),calc:Let(),plot:Iet(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:Fet().hoverPoints,selectPoints:gA(),meta:{}}});var Net=Te((STr,qet)=>{"use strict";qet.exports=Oet()});var Lp=Te((MTr,Vet)=>{var H9=jh();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={}}H9(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 EQ(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 G9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}H9(EQ.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?"-":"")+G9(Math.abs(this.year()),4)+"-"+G9(this.month(),2)+"-"+G9(this.day(),2)}});function kQ(){this.shortYearCutoff="+10"}H9(kQ.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 EQ(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?"-":"")+G9(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=Vet.exports=new Uet;wf.cdate=EQ;wf.baseCalendar=kQ;wf.calendars.gregorian=CQ});var Get=Te(()=>{var LQ=jh(),Vd=Lp();LQ(Vd.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"});Vd.local=Vd.regionalOptions[""];LQ(Vd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});LQ(Vd.baseCalendar.prototype,{UNIX_EPOCH:Vd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Vd.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 Vd.local.invalidFormat||Vd.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(T,L){for(var x=1;E+x1},f=function(T,L,x,k){var M=""+L;if(l(T,k))for(;M.length1},C=function(F,B){var U=v(F,B),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],j=new RegExp("^-?\\d{1,"+G+"}"),W=t.substring(M).match(j);if(!W)throw(Vd.local.missingNumberAt||Vd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=W[0].length,parseInt(W[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var F=s.call(E,t.substring(M));return M+=F.length,F}return C("m")},L=function(F,B,U,G){for(var j=v(F,G)?U:B,W=0;W-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}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 Het=Te(()=>{var Hx=Lp(),lir=jh(),PQ=Hx.instance();function W9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W9.prototype=new Hx.baseCalendar;lir(W9.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(fir);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(cir);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(hir);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 Hx.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 Hx.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,Hx.local.invalidyear),i=jx[n-jx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=PQ.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=Wx[e-Wx[0]],n=r>>13,i=n?12:11;if(t>i)throw Hx.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,Hx.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=pir(e,a,r,i);return PQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=PQ.fromJD(e),r=dir(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(uir),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(W9.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 uir=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,fir=/^\d?\d[iI]?/m,cir=/^闰?十?[一二三四五六七八九]?月/m,hir=/^闰?十?[一二三四五六七八九]?/m;Hx.calendars.chinese=W9;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],jx=[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 dir(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=jx[i.year-jx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=jx[a.year-jx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,_=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-_)/(24*3600*1e3));var v=Wx[a.year-Wx[0]],C;for(C=0;C<13;C++){var E=v&1<<12-C?30:29;if(p>13;return!T||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=Wx[o.year-Wx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var _=0;_>9&4095,E=v>>5&15,T=v&31,L=new Date(C,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var Wet=Te(()=>{var Lw=Lp(),vir=jh();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Lw.baseCalendar;vir(zQ.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,Lw.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,Lw.local.invalidYear||Lw.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,Lw.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,Lw.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)}});Lw.calendars.coptic=zQ});var jet=Te(()=>{var E1=Lp(),mir=jh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new E1.baseCalendar;mir(IQ.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:yir[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 yir={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=IQ});var Xet=Te(()=>{var Pw=Lp(),gir=jh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Pw.baseCalendar;gir(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,Pw.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,Pw.local.invalidYear||Pw.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,Pw.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,Pw.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)}});Pw.calendars.ethiopian=RQ});var Zet=Te(()=>{var Xx=Lp(),_ir=jh();function DQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DQ.prototype=new Xx.baseCalendar;_ir(DQ.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,Xx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,j9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xx.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,Xx.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,Xx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&j9(this.daysInYear(e),10)===5?30:t===9&&j9(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,Xx.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,Xx.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 j9(e,t){return e-t*Math.floor(e/t)}Xx.calendars.hebrew=DQ});var Yet=Te(()=>{var bC=Lp(),xir=jh();function FQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FQ.prototype=new bC.baseCalendar;xir(FQ.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,bC.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,bC.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,bC.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)}});bC.calendars.islamic=FQ});var Ket=Te(()=>{var wC=Lp(),bir=jh();function BQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BQ.prototype=new wC.baseCalendar;bir(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,wC.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,wC.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,wC.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)}});wC.calendars.julian=BQ});var $et=Te(()=>{var cm=Lp(),wir=jh();function qQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qQ.prototype=new cm.baseCalendar;wir(qQ.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=OQ(e+8+17*20,365);return[Math.floor(t/20)+1,OQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Jet(e+20,20),Jet(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 OQ(e,t){return e-t*Math.floor(e/t)}function Jet(e,t){return OQ(e-1,t)+1}cm.calendars.mayan=qQ});var ett=Te(()=>{var zw=Lp(),Air=jh();function NQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NQ.prototype=new zw.baseCalendar;var Qet=zw.instance("gregorian");Air(NQ.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 Qet.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=NQ});var ttt=Te(()=>{var Iw=Lp(),Tir=jh();function UQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}UQ.prototype=new Iw.baseCalendar;Tir(UQ.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,Iw.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,Iw.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,Iw.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=Iw.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=Iw.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 oM=Lp(),Sir=jh();function Z9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function X9(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}Z9.prototype=new oM.baseCalendar;Sir(Z9.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,oM.local.invalidYear);return X9(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,oM.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,oM.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,X9(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)}});oM.calendars.persian=Z9;oM.calendars.jalali=Z9});var itt=Te(()=>{var Rw=Lp(),Mir=jh(),Y9=Rw.instance();function VQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}VQ.prototype=new Rw.baseCalendar;Mir(VQ.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,Rw.local.invalidYear),r=this._t2gYear(t.year());return Y9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Rw.local.invalidYear),i=this._t2gYear(n.year());return Y9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Rw.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,Rw.local.invalidDate),i=this._t2gYear(n.year());return Y9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=Y9.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)}});Rw.calendars.taiwan=VQ});var ntt=Te(()=>{var Dw=Lp(),Eir=jh(),K9=Dw.instance();function GQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GQ.prototype=new Dw.baseCalendar;Eir(GQ.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,Dw.local.invalidYear),r=this._t2gYear(t.year());return K9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Dw.local.invalidYear),i=this._t2gYear(n.year());return K9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.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,Dw.local.invalidDate),i=this._t2gYear(n.year());return K9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=K9.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)}});Dw.calendars.thai=GQ});var att=Te(()=>{var Fw=Lp(),kir=jh();function HQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}HQ.prototype=new Fw.baseCalendar;kir(HQ.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,Fw.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,Fw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Zx[i]-Zx[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,Fw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Zx[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-Zx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Fw.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=Fw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Fw.calendars.ummalqura=HQ;var Zx=[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 stt=Te((iSr,ott)=>{"use strict";ott.exports=Lp();Get();Het();Wet();jet();Xet();Zet();Yet();Ket();$et();ett();ttt();rtt();itt();ntt();att()});var ptt=Te((nSr,dtt)=>{"use strict";var utt=stt(),AC=ei(),ftt=rf(),Cir=ftt.EPOCHJD,Lir=ftt.ONEDAY,XQ={valType:"enumerated",values:AC.sortObjectKeys(utt.calendars),editType:"calc",dflt:"gregorian"},ctt=function(e,t,r,n){var i={};return i[r]=XQ,AC.coerce(e,t,i,r,n)},Pir=function(e,t,r,n){for(var i=0;i{"use strict";vtt.exports=ptt()});var Bir=Te((oSr,gtt)=>{var ytt=bge();ytt.register([A1e(),f_e(),Txe(),Wxe(),abe(),t2e(),p2e(),rwe(),Pwe(),d3e(),eAe(),hke(),tCe(),jLe(),RPe(),cze(),Dze(),oRe(),SRe(),GRe(),tDe(),vDe(),LDe(),jDe(),bFe(),UFe(),m7e(),_Ue(),NVe(),hGe(),wHe(),BHe(),sWe(),_je(),Rje(),nXe(),dZe(),BZe(),gYe(),NKe(),cJe(),zJe(),n$e(),g$e(),yQe(),OQe(),iet(),Net(),mtt()]);gtt.exports=ytt});return Bir();})(); +`),it=rt.createShader(rt.FRAGMENT_SHADER);if(rt.isContextLost())return void(this.failedToCreate=!0);if(rt.shaderSource(it,Ve),rt.compileShader(it),!rt.getShaderParameter(it,rt.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${rt.getShaderInfoLog(it)}`);rt.attachShader(this.program,it);let pt=rt.createShader(rt.VERTEX_SHADER);if(rt.isContextLost())return void(this.failedToCreate=!0);if(rt.shaderSource(pt,lt),rt.compileShader(pt),!rt.getShaderParameter(pt,rt.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${rt.getShaderInfoLog(pt)}`);rt.attachShader(this.program,pt),this.attributes={};let Ht={};this.numAttributes=ir.length;for(let nr=0;nr({u_depth:new a.aH(nr,fr.u_depth),u_terrain:new a.aH(nr,fr.u_terrain),u_terrain_dim:new a.aI(nr,fr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,fr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,fr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,fr.u_terrain_exaggeration)}))(w,Ht),this.binderUniforms=Q?Q.getUniforms(w,Ht):[]}draw(w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he,Me,qe,Ve,lt){let it=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ue),mt){w.activeTexture.set(it.TEXTURE2),it.bindTexture(it.TEXTURE_2D,mt.depthTexture),w.activeTexture.set(it.TEXTURE3),it.bindTexture(it.TEXTURE_2D,mt.texture);for(let Ht in this.terrainUniforms)this.terrainUniforms[Ht].set(mt[Ht])}for(let Ht in this.fixedUniforms)this.fixedUniforms[Ht].set(rt[Ht]);Me&&Me.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let pt=0;switch(q){case it.LINES:pt=2;break;case it.TRIANGLES:pt=3;break;case it.LINE_STRIP:pt=1}for(let Ht of kr.get()){let nr=Ht.vaos||(Ht.vaos={});(nr[Ft]||(nr[Ft]=new tr)).bind(w,this,ir,Me?Me.getPaintVertexBuffers():[],or,Ht.vertexOffset,qe,Ve,lt),it.drawElements(q,Ht.primitiveLength*pt,it.UNSIGNED_SHORT,Ht.primitiveOffset*pt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ue=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),rt=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ue>>16,rt>>16],u_pixel_coord_lower:[65535&Ue,65535&rt]}}let en=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ue=[ue.x,ue.y,ue.z],rt=function(){var Ft=new a.A(9);return a.A!=Float32Array&&(Ft[1]=0,Ft[2]=0,Ft[3]=0,Ft[5]=0,Ft[6]=0,Ft[7]=0),Ft[0]=1,Ft[4]=1,Ft[8]=1,Ft}();ee.properties.get("anchor")==="viewport"&&function(Ft,ir){var or=Math.sin(ir),kr=Math.cos(ir);Ft[0]=kr,Ft[1]=or,Ft[2]=0,Ft[3]=-or,Ft[4]=kr,Ft[5]=0,Ft[6]=0,Ft[7]=0,Ft[8]=1}(rt,-w.transform.angle),function(Ft,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Ft[0]=kr*or[0]+Vr*or[3]+he*or[6],Ft[1]=kr*or[1]+Vr*or[4]+he*or[7],Ft[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ue,Ue,rt);let mt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ue,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[mt.r,mt.g,mt.b],u_vertical_gradient:+q,u_opacity:Q}},ii=(le,w,q,Q,ee,ue,Ue)=>a.e(en(le,w,q,Q),Ai(ue,w,Ue),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ue.tileSize/8}),Xi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Xi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ue;if(Q.paint.get("circle-pitch-alignment")==="map"){let rt=Di(q,1,ee.zoom);ue=!0,Ue=[rt,rt]}else ue=!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:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ue}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,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=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ue=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ue,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ue=le.lineAtlas,rt=ys(w,le.transform),mt=q.layout.get("line-cap")==="round",Ft=Ue.getDash(Q.from,mt),ir=Ue.getDash(Q.to,mt),or=Ft.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[rt/or,-Ft.height/2],u_patternscale_b:[rt/kr,-ir.height/2],u_sdfgamma:Ue.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Ft.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,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:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ue};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr)=>{let he=Ue.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="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:rt,u_label_plane_matrix:mt,u_coord_matrix:Ft,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr,he)=>{let Me=Ue.transform;return a.e(fo(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Me._pitch)*Me.cameraToCenterDistance:1,u_device_pixel_ratio:Ue.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ue,rt,mt,Ft,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ue,rt,mt,Ft){let ir=mt.imageManager.getPattern(Ue.from.toString()),or=mt.imageManager.getPattern(Ue.to.toString()),{width:kr,height:Vr}=mt.imageManager.getPixelSize(),he=Math.pow(2,Ft.tileID.overscaledZ),Me=Ft.tileSize*Math.pow(2,mt.transform.tileZoom)/he,qe=Me*(Ft.tileID.canonical.x+Ft.tileID.wrap*he),Ve=Me*Ft.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:rt.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:rt.fromScale,u_scale_b:rt.toScale,u_tile_units_to_pixels:1/Di(Ft,1,mt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,Ve>>16],u_pixel_coord_lower:[65535&qe,65535&Ve]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,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 ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.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 nr=a.H();a.aQ(nr,it.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,it.placementViewportMatrix),mt.push({circleArray:Ht,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Ft+=Ht.length/4,ir=Ft}pt&&rt.draw(ue,Ue.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),rn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,pt.layoutVertexBuffer,pt.indexBuffer,pt.segments,null,le.transform.zoom,null,null,pt.collisionVertexBuffer)}var or;if(!ee||!mt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Ft),Vr._trim();let he=0;for(let Ve of mt)for(let lt=0;lt=0&&(Ve[it.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Br(it.numGlyphs,Me)}if(Ft){qe.clear();let lt=le.icon.placedSymbolArray;for(let it=0;itle.style.map.terrain.getElevation(li,_t,hr):null,jt=q.layout.get("text-rotation-alignment")==="map";Ie(hn,li.posMatrix,le,ee,$u,Wu,Ve,Ft,jt,Me,li.toUnwrapped(),he.width,he.height,ju,st)}let Qu=li.posMatrix,ef=ee&&Ar||_f,Z=lt||ef?yo:$u,se=Ku,Pe=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ze;Ze=Ua?hn.iconsInText?ra(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,Sl,Pu,ri):mn(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,ee,Sl,!0,ri):fo(Fo.kind,ml,it,Ve,lt,ef,le,Qu,Z,se,ju,ee,Sl,ri);let et={program:Us,buffers:Zn,uniformValues:Ze,atlasTexture:Yl,atlasTextureIcon:nu,atlasInterpolation:Ol,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:Pe};if(Ht&&hn.canOverlap){nr=!0;let st=Zn.segments.get();for(let jt of st)Ir.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:et,terrainData:au})}else Ir.push({segments:Zn.segments,sortKey:0,state:et,terrainData:au})}nr&&Ir.sort((li,Ei)=>li.sortKey-Ei.sortKey);for(let li of Ir){let Ei=li.state;if(kr.activeTexture.set(Vr.TEXTURE0),Ei.atlasTexture.bind(Ei.atlasInterpolation,Vr.CLAMP_TO_EDGE),Ei.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Ei.atlasTextureIcon&&Ei.atlasTextureIcon.bind(Ei.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Ei.isSDF){let hn=Ei.uniformValues;Ei.hasHalo&&(hn.u_is_halo=1,Ca(Ei.buffers,li.segments,q,le,Ei.program,fr,ir,or,hn,li.terrainData)),hn.u_is_halo=0}Ca(Ei.buffers,li.segments,q,le,Ei.program,fr,ir,or,Ei.uniformValues,li.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ue,rt,mt,Ft){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ue,rt,rn.disabled,mt,Ft,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ue=Na.disabled,rt=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),mt=w.getBucket(q);if(!mt)return;let Ft=Q.key,ir=q.heatmapFbos.get(Ft);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Ft,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=mt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ue,rt,rn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ue=q.key,rt=w.heatmapFbos.get(Ue);rt&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,rt.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),rn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),rt.destroy(),w.heatmapFbos.delete(Ue))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ue=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ue),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let rt=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,mt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,mt,w,q,0,ue.RGBA,rt,null);let Ft=le.createFramebuffer(w,q,!1,!1);return Ft.colorAttachment.set(Ue),Ft}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ue=ue[q.to.toString()],rt=ue[q.from.toString()];if(!Ue&&rt&&(Ue=rt),!rt&&Ue&&(rt=Ue),!Ue||!rt){let mt=ee.getPaintProperty(w);Ue=ue[mt],rt=ue[mt]}Ue&&rt&&le.setConstantPatternPositions(Ue,rt)}function ts(le,w,q,Q,ee,ue,Ue){let rt=le.context.gl,mt="fill-pattern",Ft=q.paint.get(mt),ir=Ft&&Ft.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Me,qe;Ue?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=rt.LINES):(Vr=ir?"fillPattern":"fill",kr=rt.TRIANGLES);let Ve=Ft.constantOr(null);for(let lt of Q){let it=w.getTile(lt);if(ir&&!it.patternsLoaded())continue;let pt=it.getBucket(q);if(!pt)continue;let Ht=pt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Ht),fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(rt.TEXTURE0),it.imageAtlasTexture.bind(rt.LINEAR,rt.CLAMP_TO_EDGE),Ht.updatePaintBuffers(or)),To(Ht,mt,Ve,it,q);let Ar=fr?lt:null,Ir=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,it,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ue){Me=pt.indexBuffer2,qe=pt.segments2;let ri=[rt.drawingBufferWidth,rt.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Ir,le,or,it,ri):Mn(Ir,ri)}else Me=pt.indexBuffer,qe=pt.segments,he=ir?aa(Ir,le,or,it):Xi(Ir);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,rn.disabled,he,fr,q.id,pt.layoutVertexBuffer,Me,qe,q.paint,le.transform.zoom,Ht)}}function Wo(le,w,q,Q,ee,ue,Ue){let rt=le.context,mt=rt.gl,Ft="fill-extrusion-pattern",ir=q.paint.get(Ft),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Me of Q){let qe=w.getTile(Me),Ve=qe.getBucket(q);if(!Ve)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Me),it=Ve.programConfigurations.get(q.id),pt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",it);or&&(le.context.activeTexture.set(mt.TEXTURE0),qe.imageAtlasTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),it.updatePaintBuffers(kr)),To(it,Ft,he,qe,q);let Ht=le.translatePosMatrix(Me.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),fr=or?ii(Ht,le,nr,Vr,Me,kr,qe):en(Ht,le,nr,Vr);pt.draw(rt,rt.gl.TRIANGLES,ee,ue,Ue,rn.backCCW,fr,lt,q.id,Ve.layoutVertexBuffer,Ve.indexBuffer,Ve.segments,q.paint,le.transform.zoom,it,le.style.map.terrain&&Ve.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ue){let rt=le.context,mt=rt.gl,Ft=q.fbo;if(!Ft)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);rt.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,Ft.colorAttachment.get()),ir.draw(rt,mt.TRIANGLES,ee,ue,Ue,rn.disabled,((kr,Vr,he,Me)=>{let qe=he.paint.get("hillshade-shadow-color"),Ve=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),it=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(it-=kr.transform.angle);let pt=!kr.options.moving;return{u_matrix:Me?Me.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),it],u_shadow:qe,u_highlight:Ve,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ue=le.context,rt=Ue.gl,mt=w.dem;if(mt&&mt.data){let Ft=mt.dim,ir=mt.stride,or=mt.getPixels();if(Ue.activeTexture.set(rt.TEXTURE1),Ue.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(rt.NEAREST,rt.CLAMP_TO_EDGE)}else w.demTexture=new m(Ue,or,rt.RGBA,{premultiply:!1}),w.demTexture.bind(rt.NEAREST,rt.CLAMP_TO_EDGE);Ue.activeTexture.set(rt.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ue,{width:Ft,height:Ft,data:null},rt.RGBA);Vr.bind(rt.LINEAR,rt.CLAMP_TO_EDGE),kr=w.fbo=Ue.createFramebuffer(Ft,Ft,!0,!1),kr.colorAttachment.set(Vr.texture)}Ue.bindFramebuffer.set(kr.framebuffer),Ue.viewport.set([0,0,Ft,Ft]),le.useProgram("hillshadePrepare").draw(Ue,rt.TRIANGLES,Q,ee,ue,rn.disabled,((Vr,he)=>{let Me=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:[Me,Me],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,mt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ue=Q.paint.get("raster-fade-duration");if(!ue&&Ue>0){let rt=l.now(),mt=(rt-le.timeAdded)/Ue,Ft=w?(rt-w.timeAdded)/Ue:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?mt:1-Ft,0,1);return le.refreshedUponExpiration&&mt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,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(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ue=le.context,rt=Ue.gl;rt.enable(rt.SCISSOR_TEST),rt.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ue.clear({color:ue}),rt.disable(rt.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ue=le.useProgram("debug"),rt=sa.disabled,mt=Na.disabled,Ft=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Me=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(Ve,lt){Ve.initDebugOverlayCanvas();let it=Ve.debugOverlayCanvas,pt=Ve.context.gl,Ht=Ve.debugOverlayCanvas.getContext("2d");Ht.clearRect(0,0,it.width,it.height),Ht.shadowColor="white",Ht.shadowBlur=2,Ht.lineWidth=1.5,Ht.strokeStyle="white",Ht.textBaseline="top",Ht.font="bold 36px Open Sans, sans-serif",Ht.fillText(lt,5,5),Ht.strokeText(lt,5,5),Ve.debugOverlayTexture.update(it),Ve.debugOverlayTexture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ue.draw(Q,ee.TRIANGLES,rt,mt,lo.alphaBlended,rn.disabled,oa(ue,a.aM.transparent,Me),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ue.draw(Q,ee.LINE_STRIP,rt,mt,Ft,rn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ue=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),rt=le.useProgram("terrain"),mt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Ft of q){let ir=le.renderToTexture.getTexture(Ft),or=w.getTerrainData(Ft.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Ft.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Ft.tileID.toUnwrapped()),Me=pr(kr,Vr,he,le.style.sky,le.transform.pitch);rt.draw(Q,ee.TRIANGLES,Ue,Na.disabled,ue,rn.backCCW,Me,or,"terrain",mt.vertexBuffer,mt.indexBuffer,mt.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=nt.maxUnderzooming+nt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new nn}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,bi.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,bi.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 ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,bi.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 rt=new a.aY;rt.emplaceBack(0,1,2),rt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(rt);let mt=this.context.gl;this.stencilClearMode=new Na({func:mt.ALWAYS,mask:0},0,255,mt.ZERO,mt.ZERO,mt.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,rn.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 ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ue of q){let rt=this._tileClippingMaskIDs[Ue.key]=this.nextStencilID++,mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ue);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},rt,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,rn.disabled,ka(Ue.posMatrix),mt,"$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,rt)=>rt.overscaledZ-Ue.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ue={};for(let rt=0;rt({u_sky_color:Ve.properties.get("sky-color"),u_horizon_color:Ve.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*it,u_sky_horizon_blend:Ve.properties.get("sky-horizon-blend")*lt.height/2*it}))(Ft,mt.style.map.transform,mt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Me=mt.colorModeForRenderPass(),qe=mt.useProgram("sky");if(!Ft.mesh){let Ve=new a.aX;Ve.emplaceBack(-1,-1),Ve.emplaceBack(1,-1),Ve.emplaceBack(1,1),Ve.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Ft.mesh=new Ma(ir.createVertexBuffer(Ve,bi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,Ve.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Me,rn.disabled,kr,void 0,"sky",Ft.mesh.vertexBuffer,Ft.mesh.indexBuffer,Ft.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 mt=this.style._layers[Q[this.currentLayer]],Ft=ee[mt.source],ir=ue[mt.source];this._renderTileClippingMasks(mt,ir),this.renderLayer(this,Ft,mt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Ft.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Me=qe=>{(!or||or.getSource().maxzoomMe(qe)),or||he.forEach(qe=>Me(qe)),or}(this.style,this.transform.zoom);mt&&function(Ft,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ue){let rt=ue.context,mt=rt.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ue.getTerrainMesh(),kr=Ue.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");rt.bindFramebuffer.set(Ue.getFramebuffer("depth").framebuffer),rt.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),rt.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Me=Ue.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ue.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(rt,mt.TRIANGLES,ir,Na.disabled,Ft,rn.backCCW,qe,Me,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}rt.bindFramebuffer.set(null),rt.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ue){let rt=ue.context,mt=rt.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ue.getTerrainMesh(),kr=Ue.getCoordsTexture(),Vr=Ue.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");rt.bindFramebuffer.set(Ue.getFramebuffer("coords").framebuffer),rt.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),rt.clear({color:a.aM.transparent,depth:1}),Ue.coordsIndex=[];for(let Me of Vr){let qe=Ue.getTerrainData(Me.tileID);rt.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,kr.texture);let Ve={u_matrix:ue.transform.calculatePosMatrix(Me.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ue.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ue.getMeshFrameDelta(ue.transform.zoom)};he.draw(rt,mt.TRIANGLES,ir,Na.disabled,Ft,rn.backCCW,Ve,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ue.coordsIndex.push(Me.tileID.key)}rt.bindFramebuffer.set(null),rt.viewport.set([0,0,ue.width,ue.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(ue,Ue,rt,mt,Ft){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(rt._unevaluatedLayout.hasValue("text-variable-anchor")||rt._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Me,qe,Ve,lt,it,pt){let Ht=Vr.transform,nr=Vi(),fr=qe==="map",Ar=Ve==="map";for(let Ir of kr){let ri=Me.getTile(Ir),li=ri.getBucket(he);if(!li||!li.text||!li.text.segments.get().length)continue;let Ei=a.ag(li.textSizeData,Ht.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=yr(Ir.posMatrix,Ar,fr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&li.hasIconData();if(Ei){let Ua=Math.pow(2,Ht.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Ir,Us,ml):null,vl=nr.translatePosition(Ht,ri,lt,it);Dn(li,fr,Ar,pt,Ht,Zn,Ir.posMatrix,Ua,Ei,Yn,nr,vl,Ir.toUnwrapped(),Fo)}}}(mt,ue,rt,Ue,rt.layout.get("text-rotation-alignment"),rt.layout.get("text-pitch-alignment"),rt.paint.get("text-translate"),rt.paint.get("text-translate-anchor"),Ft),rt.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ue,rt,mt,!1,rt.paint.get("icon-translate"),rt.paint.get("icon-translate-anchor"),rt.layout.get("icon-rotation-alignment"),rt.layout.get("icon-pitch-alignment"),rt.layout.get("icon-keep-upright"),ir,or),rt.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ue,rt,mt,!0,rt.paint.get("text-translate"),rt.paint.get("text-translate-anchor"),rt.layout.get("text-rotation-alignment"),rt.layout.get("text-pitch-alignment"),rt.layout.get("text-keep-upright"),ir,or),Ue.map.showCollisionBoxes&&(to(ue,Ue,rt,mt,!0),to(ue,Ue,rt,mt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ue,rt,mt){if(ue.renderPass!=="translucent")return;let Ft=rt.paint.get("circle-opacity"),ir=rt.paint.get("circle-stroke-width"),or=rt.paint.get("circle-stroke-opacity"),kr=!rt.layout.get("circle-sort-key").isConstant();if(Ft.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Me=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,Ve=ue.colorModeForRenderPass(),lt=[];for(let it=0;itit.sortKey-pt.sortKey);for(let it of lt){let{programConfiguration:pt,program:Ht,layoutVertexBuffer:nr,indexBuffer:fr,uniformValues:Ar,terrainData:Ir}=it.state;Ht.draw(Vr,he.TRIANGLES,Me,qe,Ve,rn.disabled,Ar,Ir,rt.id,nr,fr,it.segments,rt.paint,ue.transform.zoom,pt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ue,rt,mt){if(rt.paint.get("heatmap-opacity")===0)return;let Ft=ue.context;if(ue.style.map.terrain){for(let ir of mt){let or=Ue.getTile(ir);Ue.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,rt,ir):ue.renderPass==="translucent"&&Ts(ue,rt,ir))}Ft.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Me=he.gl,qe=Na.disabled,Ve=new lo([Me.ONE,Me.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,it,pt){let Ht=lt.gl;lt.activeTexture.set(Ht.TEXTURE1),lt.viewport.set([0,0,it.width/4,it.height/4]);let nr=pt.heatmapFbos.get(a.aU);nr?(Ht.bindTexture(Ht.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,it.width/4,it.height/4),pt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Ft.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ft.extTextureFilterAnisotropicMax);let li=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Ei=li?lt:null,hn=Ei?Ei.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),Ve),Zn=ls(hn,Ir||[0,0],Ar||1,fr,rt);or instanceof Ct?kr.draw(Ft,ir.TRIANGLES,it,Na.disabled,Vr,rn.disabled,Zn,li,rt.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Ft,ir.TRIANGLES,it,he[lt.overscaledZ],Vr,rn.disabled,Zn,li,rt.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ue,rt,mt){let Ft=rt.paint.get("background-color"),ir=rt.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Me=rt.paint.get("background-pattern");if(ue.isPatternMissing(Me))return;let qe=!Me&&Ft.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let Ve=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),it=ue.colorModeForRenderPass(),pt=ue.useProgram(Me?"backgroundPattern":"background"),Ht=mt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Me&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=rt.getCrossfadeParameters();for(let fr of Ht){let Ar=mt?fr.posMatrix:ue.transform.calculatePosMatrix(fr.toUnwrapped()),Ir=Me?ws(Ar,ir,ue,Me,{tileID:fr,tileSize:he},nr):wa(Ar,ir,Ft),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(fr);pt.draw(or,kr.TRIANGLES,lt,Ve,it,rn.disabled,Ir,ri,rt.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ue,rt){let mt=ue.context,Ft=rt.implementation;if(ue.renderPass==="offscreen"){let ir=Ft.prerender;ir&&(ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),ir.call(Ft,mt.gl,ue.transform.customLayerMatrix()),mt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),mt.setStencilMode(Na.disabled);let ir=Ft.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);mt.setDepthMode(ir),Ft.render(mt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),mt.setDirty(),ue.setBaseState(),mt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ue=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ue){let Ft=Math.sin(Ue),ir=Math.cos(Ue);Q=[Q[0]*ir-Q[1]*Ft,Q[0]*Ft+Q[1]*ir]}let rt=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],mt=new Float32Array(16);return a.J(mt,w,rt),mt}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),ue=[[-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(rt=>{let mt=1/(rt=a.af([],rt,w))[3]/q*ee;return a.b1(rt,rt,[mt,mt,1/rt[3],mt])}),Ue=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(rt=>{let mt=function(kr,Vr){var he=Vr[0],Me=Vr[1],qe=Vr[2],Ve=he*he+Me*Me+qe*qe;return Ve>0&&(Ve=1/Math.sqrt(Ve)),kr[0]=Vr[0]*Ve,kr[1]=Vr[1]*Ve,kr[2]=Vr[2]*Ve,kr}([],function(kr,Vr,he){var Me=Vr[0],qe=Vr[1],Ve=Vr[2],lt=he[0],it=he[1],pt=he[2];return kr[0]=qe*pt-Ve*it,kr[1]=Ve*lt-Me*pt,kr[2]=Me*it-qe*lt,kr}([],L([],ue[rt[0]],ue[rt[1]]),L([],ue[rt[2]],ue[rt[1]]))),Ft=-((ir=mt)[0]*(or=ue[rt[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return mt.concat(Ft)});return new ho(ue,Ue)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[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 ue=0;ue=0&&Ue++;if(Ue===0)return 0;Ue!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ue=-Number.MAX_VALUE;for(let rt=0;rtthis.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,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,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,ue){var Ue=ee[0],rt=ee[1],mt=ee[2],Ft=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ue*or+mt*ir,Q[1]=rt*or+Ft*ir,Q[2]=Ue*-ir+mt*or,Q[3]=rt*-ir+Ft*or}(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)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ue=this.pointCoordinate(new a.P(0,this.height)),rt=Math.floor(Math.min(Q.x,ee.x,ue.x,Ue.x)),mt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ue.x)),Ft=1;for(let ir=rt-Ft;ir<=mt+Ft;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ue=this.pointCoordinate(this.getCameraPoint()),rt=a.Z.fromLngLat(this.center),mt=Math.pow(2,ee),Ft=[mt*Ue.x,mt*Ue.y,0],ir=[mt*rt.x,mt*rt.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=it=>({aabb:new gs([it*mt,0,0],[(it+1)*mt,mt,0]),zoom:0,x:0,y:0,wrap:it,fullyVisible:!1}),Me=[],qe=[],Ve=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let it=1;it<=3;it++)Me.push(he(-it)),Me.push(he(it));for(Me.push(he(0));Me.length>0;){let it=Me.pop(),pt=it.x,Ht=it.y,nr=it.fullyVisible;if(!nr){let li=it.aabb.intersects(or);if(li===0)continue;nr=li===2}let fr=w.terrain?Ft:ir,Ar=it.aabb.distanceX(fr),Ir=it.aabb.distanceY(fr),ri=Math.max(Math.abs(Ar),Math.abs(Ir));if(it.zoom===Ve||ri>Vr+(1<=kr){let li=Ve-it.zoom,Ei=Ft[0]-.5-(pt<>1),Zn=it.zoom+1,Yn=it.aabb.quadrant(li);if(w.terrain){let Ua=new a.S(Zn,it.wrap,Zn,Ei,hn),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])}Me.push({aabb:Yn,zoom:Zn,x:Ei,y:hn,wrap:it.wrap,fullyVisible:nr})}}return qe.sort((it,pt)=>it.distanceSq-pt.distanceSq).map(it=>it.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),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ue=Q+q-ue,rt=Math.cos(this._pitch)*this.cameraToCenterDistance/Ue/a.b5(1,ee.lat),mt=this.scaleZoom(rt/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=mt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ue=new a.Z(ue.x-(Q.x-ee.x),ue.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 kr=q.pointCoordinate(w);if(kr!=null)return kr}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 ue=Q[3],Ue=ee[3],rt=Q[1]/ue,mt=ee[1]/Ue,Ft=Q[2]/ue,ir=ee[2]/Ue,or=Ft===ir?0:(0-Ft)/(ir-Ft);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ue,or)/this.worldSize,a.y.number(rt,mt,or)/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,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),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 it=179.9999999999;ee=[-it,it]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ue=0,rt=ue,mt=0,Ft=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let it=this.latRange;Ue=a.Q(it[1])*ue,rt=a.Q(it[0])*ue,rt-Uert&&(Ve=rt-it)}if(ee){let it=(mt+Ft)/2,pt=he;this._renderWorldCopies&&(pt=a.b3(he,it-ue/2,it+ue/2));let Ht=kr/2;pt-HtFt&&(qe=Ft-Ht)}if(qe!==void 0||Ve!==void 0){let it=new a.P(qe!=null?qe:he,Ve!=null?Ve:Me);Q.center=this.unproject.call({worldSize:ue},it).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 ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ue=Math.min(this.elevation,this.minElevationForCurrentTile),rt=ue-Ue*this._pixelPerMeter/Math.cos(this._pitch),mt=Ue<0?rt:ue,Ft=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*mt/Math.sin(a.ac(Math.PI-Ft-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*mt/Math.sin(a.ac(Math.PI-Ft-Vr,.01,Math.PI-.01)),Me=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Me+mt),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,ue,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,Ve=this.height%2/2,lt=Math.cos(this.angle),it=Math.sin(this.angle),pt=q-Math.round(q)+lt*qe+it*Ve,Ht=Q-Math.round(Q)+lt*Ve+it*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[pt>.5?pt-1:pt,Ht>.5?Ht-1:Ht,0]),this.alignedModelViewProjectionMatrix=nr,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,ue=q.x,Ue=q.y;for(let rt of w)Q=Math.min(Q,rt.x),ee=Math.min(ee,rt.y),ue=Math.max(ue,rt.x),Ue=Math.max(Ue,rt.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,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(le,w){let q,Q=!1,ee=null,ue=null,Ue=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ue,w),Q=!1)};return(...rt)=>(Q=!0,ue=this,q=rt,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 ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ue=window.location.href.replace(/(#.+)?$/,ue);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),ue=Math.pow(10,ee),Ue=Math.round(q.lng*ue)/ue,rt=Math.round(q.lat*ue)/ue,mt=this._map.getBearing(),Ft=this._map.getPitch(),ir="";if(ir+=w?`/${Ue}/${rt}/${Q}`:`${Q}/${rt}/${Ue}`,(mt||Ft)&&(ir+="/"+Math.round(10*mt)/10),Ft&&(ir+=`/${Math.round(Ft)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Me=he.split("=")[0];return Me===or?(kr=!0,`${Me}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=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:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(mt)),rt=ue.reduce((mt,Ft,ir,or)=>mt.add(Ft.div(or.length)),new a.P(0,0));super(w,{points:ue,point:rt,lngLats:Ue,lngLat:q.unproject(rt),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)ue.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(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.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 ue=new a.P(0,0);for(let Ue of ee)ue._add(Ue);return ue.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 ue in this.touches){let Ue=ee[ue];(!Ue||Ue.dist(this.touches[ue])>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 ue=w.timeStamp-this.lastTime<500,Ue=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&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),ue=this._zoomOut.touchend(w,q,Q),Ue=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:rt=>rt.easeTo({duration:300,zoom:Ue.zoom+1,around:Ue.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:rt=>rt.easeTo({duration:300,zoom:Ue.zoom-1,around:Ue.unproject(ue)},{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){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,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,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,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,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,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),ue=new a.P(0,0),Ue=new a.P(0,0),rt=0;for(let Ft in ee){let ir=ee[Ft],or=this._touches[Ft];or&&(ue._add(ir),Ue._add(ir.sub(or)),rt++,ee[Ft]=ir)}if(this._touches=ee,this._shouldBePrevented(rt)||!Ue.mag())return;let mt=Ue.div(rt);return this._sum._add(mt),this._sum.mag()Math.abs(le.x)}class Bs 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]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)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 Tt={panStep:100,bearingStep:15,pitchStep:10};class Vt{constructor(w){this._tr=new go(w);let q=Tt;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,ue=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(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=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:rt=>{let mt=this._tr;rt.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(mt.zoom)+q*(w.shiftKey?2:1):mt.zoom,bearing:mt.bearing+Q*this._bearingStep,pitch:mt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ue*this._panStep],center:mt.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 wr(le){return le*(2-le)}let mr=4.000244140625;class Fr{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%mr==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 mt=this._type==="wheel"&&Math.abs(this._delta)>mr?this._wheelZoomRate:this._defaultZoomRate,Ft=2/(1+Math.exp(-Math.abs(this._delta*mt)));this._delta<0&&Ft!==0&&(Ft=1/Ft);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Ft))),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,ue,Ue=!1,rt=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&rt){let mt=Math.min(rt/200,1),Ft=ee(mt);ue=a.y.number(Q,q,Ft),mt<1?this._frameId||(this._frameId=!0):Ue=!0}else ue=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:ue-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,ue=Q.easing(ee+.01)-Q.easing(ee),Ue=.27/Math.sqrt(ue*ue+1e-4)*.01,rt=Math.sqrt(.0729-Ue*Ue);q=a.b8(Ue,rt,.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 _i{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 Si{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 Ci{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],ue=w.timeStamp-this._tapTime<500,Ue=this._tapPoint.dist(ee)<30;ue&&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],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/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 Pi{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 di{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 ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),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 Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Mi extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ue=ee.type==="renderFrame"?void 0:ee,rt={needsRenderFrame:!1},mt={},Ft={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Me,handler:qe,allowed:Ve}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Ft,Ve,Me)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(rt,mt,lt,Me,Ue),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Ft[Me]=qe)}let Vr={};for(let Me in this._previousActiveHandlers)Ft[Me]||(Vr[Me]=Ue);this._previousActiveHandlers=Ft,(Object.keys(Vr).length||Gn(rt))&&(this._changes.push([rt,mt,Vr]),this._triggerRenderFrame()),(Object.keys(Ft).length||Gn(rt))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=rt;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,ue,Ue]of this._listeners)f.addEventListener(ee,ue,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 ue=q.cooperativeGestures=new di(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ue=new Io(q),rt=new Si(q);q.doubleClickZoom=new _i(rt,Ue),this._add("tapZoom",Ue),this._add("clickZoom",rt),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let mt=new Ci;this._add("tapDragZoom",mt);let Ft=q.touchPitch=new Bs(q);this._add("touchPitch",Ft),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:it})=>{let pt=new fs({checkCorrectEvent:Ht=>f.mouseButton(Ht)===0&&!Ht.ctrlKey});return new Da({clickTolerance:it,move:(Ht,nr)=>({around:nr,panDelta:nr.sub(Ht)}),activateOnStart:!0,moveStateManager:pt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ki(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Me=new Ms;q.touchZoomRotate=new Pi(Q,Me,he,mt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Me,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Fr(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let Ve=q.keyboard=new Vt(q);this._add("keyboard",Ve),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!!Li(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,ue){if(!Q)return;a.e(w,Q);let Ue={handlerName:ee,originalEvent:Q.originalEvent||ue};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,ue,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,ue),a.e(Q,Ue);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ue=ee.terrain;if(!(Gn(w)||Ue&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:rt,zoomDelta:mt,bearingDelta:Ft,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(rt?or.sub(rt):or);Ft&&(ue.bearing+=Ft),ir&&(ue.pitch+=ir),mt&&(ue.zoom+=mt),Ue?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(rt)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ue={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ue[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ue)this._fireEvent(or,Ue[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let rt={},mt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],mt=q[kr]||Vr,rt[`${or}end`]=mt)}for(let or in rt)this._fireEvent(or,rt[or]);let Ft=Li(this._eventsInProgress),ir=(ee||ue)&&!Ft;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Mi("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(ue,qe,fr)),this._rotating&&(ee.bearing=a.y.number(Ue,Ft,fr)),this._pitching&&(ee.pitch=a.y.number(rt,ir,fr)),this._padding&&(ee.interpolatePadding(mt,or,fr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(fr),pt)ee.setLocationAtPoint(pt,Ht);else{let Ar=ee.zoomScale(ee.zoom-ue),Ir=qe>ue?Math.min(2,it):Math.max(.5,it),ri=Math.pow(Ir,1-fr),li=ee.unproject(Ve.add(lt.mult(fr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?li.wrap():li,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},fr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,fr)},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 ue=Q.clone(),{center:Ue,zoom:rt,pitch:mt,bearing:Ft,elevation:ir}=ee(ue);Ue&&(ue.center=Ue),rt!==void 0&&(ue.zoom=rt),mt!==void 0&&(ue.pitch=mt),Ft!==void 0&&(ue.bearing=Ft),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}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,ue=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)),ue&&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(),ue=ee.zoom,Ue=ee.bearing,rt=ee.pitch,mt=ee.padding,Ft="bearing"in w?this._normalizeBearing(w.bearing,Ue):Ue,ir="pitch"in w?+w.pitch:rt,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Me,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Me,ee);let Ve=ee.zoomScale(qe-ue),lt=ee.project(he),it=ee.project(Me).sub(lt),pt=w.curve,Ht=Math.max(ee.width,ee.height),nr=Ht/Ve,fr=it.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Ht/ee.zoomScale(Ua-ue);pt=Math.sqrt(Fo/fr*2)}let Ar=pt*pt;function Ir(Ua){let Fo=(nr*nr-Ht*Ht+(Ua?-1:1)*Ar*Ar*fr*fr)/(2*(Ua?nr:Ht)*Ar*fr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function li(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Ei=Ir(!1),hn=function(Ua){return li(Ei)/li(Ei+pt*Ua)},Zn=function(Ua){return Ht*((li(Ei)*(ri(Fo=Ei+pt*Ua)/li(Fo))-ri(Ei))/Ar)/fr;var Fo},Yn=(Ir(!0)-Ei)/pt;if(Math.abs(fr)<1e-6||!isFinite(Yn)){if(Math.abs(Ht-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*pt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/pt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ue!==Ft,this._pitching=ir!==rt,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Me),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ue,Ft,Ua)),this._pitching&&(ee.pitch=a.y.number(rt,ir,Ua)),this._padding&&(ee.interpolatePadding(mt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Me:ee.unproject(lt.add(it.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),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 ue=q[ee];if(ue.used||ue.usedForTerrain){let Ue=ue.getSource();Ue.attribution&&w.indexOf(Ue.attribution)<0&&w.push(Ue.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ue=ue+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 vt(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 ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ue=ee.canonical.z-w.canonical.z,rt=ee.canonical.x-(ee.canonical.x>>Ue<>Ue<>Ue;a.aP(ue.posMatrix,0,Ft,0,Ft,0,1),a.J(ue.posMatrix,ue.posMatrix,[-rt*Ft,-mt*Ft,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ue=w.canonical.z-ee.canonical.z,rt=w.canonical.x-(w.canonical.x>>Ue<>Ue<>Ue;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[rt*Ft,mt*Ft,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ue,1/2**Ue,0]),q[Q]=ue}}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&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}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 ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ue=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>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,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ue=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),rt=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,rt-Ue-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let mt=q[0]+(q[2]>>4<<8),Ft=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(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 ue of ee){let Ue=this.terrain.sourceCache.getTerrainCoords(ue);for(let rt in Ue)this._coordsDescendingInv[Q][rt]||(this._coordsDescendingInv[Q][rt]=[]),this._coordsDescendingInv[Q][rt].push(Ue[rt])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ue in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ue]=this._coordsDescendingInv[ue][Ue].map(rt=>rt.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==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 ue=this._stacks.length-1,Ue=this._stacks[ue]||[];for(let rt of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(rt),rt.rtt[ue]){let Ft=this.pool.getObjectForId(rt.rtt[ue].id);if(Ft.stamp===rt.rtt[ue].stamp){this.pool.useObject(Ft);continue}}let mt=this.pool.getOrCreateFreeObject();this.pool.useObject(mt),this.pool.stampObject(mt),rt.rtt[ue]={id:mt.id,stamp:mt.stamp},Q.context.bindFramebuffer.set(mt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Ft=0;Ft{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.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(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ue,clickTolerance:rt,bearingDegreesPerPixelMoved:mt=.8})=>{let Ft=new cl;return new Da({clickTolerance:rt,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*mt}),moveStateManager:Ft,enable:Ue,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ue,clickTolerance:rt,pitchDegreesPerPixelMoved:mt=-.5})=>{let Ft=new cl;return new Da({clickTolerance:rt,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*mt}),moveStateManager:Ft,enable:Ue,assignEvents:Vl})})({clickTolerance:ue,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:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}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:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}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(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ue=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le: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(le,w,q){let Q=le.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 ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`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} ${ue}`),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 ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ue=f.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");let rt=f.createNS("http://www.w3.org/2000/svg","g");rt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),rt.setAttributeNS(null,"fill","#000000");let mt=[{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 Ve of mt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",Ve.rx),lt.setAttributeNS(null,"ry",Ve.ry),rt.appendChild(lt)}let Ft=f.createNS("http://www.w3.org/2000/svg","g");Ft.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.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"),Ft.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.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"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.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 Me=f.createNS("http://www.w3.org/2000/svg","circle");Me.setAttributeNS(null,"fill","#000000"),Me.setAttributeNS(null,"opacity","0.25"),Me.setAttributeNS(null,"cx","5.5"),Me.setAttributeNS(null,"cy","5.5"),Me.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(Me),he.appendChild(qe),Ue.appendChild(rt),Ue.appendChild(Ft),Ue.appendChild(or),Ue.appendChild(Vr),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,ue=ee.terrain.depthAtPoint(this._pos),Ue=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ue)-ue<.006)return void(this._element.style.opacity=this._opacity);let rt=-this._offset.y/ee.transform._pixelPerMeter,mt=Math.sin(ee.getPitch()*Math.PI/180)*rt,Ft=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ue+mt)-Ft>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?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(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ue=le.unproject([Q,ee]),rt=ue.distanceTo(Ue);if(q&&q.unit==="imperial"){let mt=3.2808*rt;mt>5280?ms(w,Q,mt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,mt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,rt/1852,le._getUIString("ScaleControl.NauticalMiles")):rt>=1e3?ms(w,Q,rt/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,rt,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ue=Math.pow(10,`${Math.floor(ue)}`.length-1),rt=ue/Ue;return rt=rt>=10?10:rt>=5?5:rt>=3?3:rt>=2?2:rt>=1?1:function(mt){let Ft=Math.pow(10,Math.ceil(-Math.log(mt)/Math.LN10));return Math.round(mt*Ft)/Ft}(rt),Ue*rt}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={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(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);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(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.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=Mt,i.CooperativeGesturesHandler=di,i.DoubleClickZoomHandler=_i,i.DragPanHandler=Ki,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){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,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.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(le){return this._map=le,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 le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_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(le){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(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ue=ce.fromLngLat(q,Q);this._map.fitBounds(Ue,ue,{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,le)}onAdd(le){return this._map=le,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(le){let w=this._map.getMaxBounds(),q=le.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 le=this._map.getBounds(),w=le.getSouthEast(),q=le.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 le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}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=Ct,i.KeyboardHandler=Vt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);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(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.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=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.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(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let rt=this.painter.context.gl;this._maxCanvasSize=[rt.drawingBufferWidth,rt.drawingBufferHeight];let mt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,mt),this.painter.resize(Q,ee,mt)}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",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ue&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ue=w*ee;return Math.min(ue>q?q/ue:1,Ue>Q?Q/Ue:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ue=w.filter(mt=>this.getLayer(mt)),rt=Ue.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ue}):[];rt.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:rt}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ue=>{let rt=w.filter(mt=>this.getLayer(mt));(rt.length!==0?this.queryRenderedFeatures(Ue.point,{layers:rt}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ue.originalEvent)))},mouseout:Ue=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ue.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(rt=>this.getLayer(rt)),Ue=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ue.length&&(ee.features=Ue,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ue))){for(let Ue in ue.delegates)this.off(Ue,ue.delegates[Ue]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ue=ee.delegates[ue];ee.delegates[ue]=(...rt)=>{this._removeDelegatedListener(le,Q,q),Ue(...rt)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ue=a.P.convert(ee[1]);q=[ue,new a.P(Ue.x,ue.y),Ue,new a.P(ue.x,Ue.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,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(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,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(le,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(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.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,le),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!==le.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:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft}=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:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ue,content:rt,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);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:ue,data:Ue}=Q;if(ee===void 0||ue===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||ue!==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 rt=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ue,rt),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);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",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ue=>{ue[Ue]=f.create("div",`maplibregl-ctrl-${Ue} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={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:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);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(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ue=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),rt=Ue.crossFadingFactor();rt===1&&rt===this._crossFadingFactor||(q=!0,this._crossFadingFactor=rt),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 le;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),(le=this._resizeObserver)===null||le===void 0||le.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(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,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(le){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,le),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(le){return this._map=le,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(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){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 rt of this.options.className.split(" "))this._container.classList.add(rt);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,ue=Gl(this.options.offset);if(!ee){let rt=this._container.offsetWidth,mt=this._container.offsetHeight,Ft;Ft=Q.y+ue.bottom.ythis._map.transform.height-mt?["bottom"]:[],Q.xthis._map.transform.width-rt/2&&Ft.push("right"),ee=Ft.length===0?"bottom":Ft.join("-")}let Ue=Q.add(ue[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(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,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(le){return this._lngLat=a.N.convert(le),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(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){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(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_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 le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=qt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(le){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),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.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=Fr,i.Style=xn,i.TerrainControl=class{constructor(le){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=le}onAdd(le){return this._map=le,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=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=Qe,i.VideoSource=wt,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Bt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=de;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(ge),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 At().getRTLTextPluginStatus()},i.getVersion=function(){return Nl},i.getWorkerCount=function(){return ze.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Se().broadcast("IS",le)},i.prewarm=function(){ke().acquire(ge)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return At().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){ze.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var rje=Te((Ewr,tje)=>{"use strict";var pw=ei(),ZZt=Wf().sanitizeHTML,YZt=GJ(),$We=Px();function QWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=$We.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sm=QWe.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=TB(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,!!TB(e)){var r=KZt(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 eje(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=YZt(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 KZt(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=ZZt(e.sourceattribution)),n}tje.exports=function(t,r,n){var i=new QWe(t,r);return i.update(n),i}});var fje=Te((kwr,uje)=>{"use strict";var YJ=JWe(),KJ=ei(),aje=hx(),ije=$l(),JZt=wu(),$Zt=xp(),SB=Xc(),oje=Cm(),QZt=oje.drawMode,eYt=oje.selectMode,tYt=oh().prepSelect,rYt=oh().clearOutline,iYt=oh().clearSelectionsCache,nYt=oh().selectOnClick,vw=Px(),aYt=rje();function sje(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=sje.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=lje(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new YJ.Map({container:i.div,style:o.style,center:JJ(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 YJ.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(aje.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=lje(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(aje.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&&nYt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&SB.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=KJ.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)||QZt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){tYt(u,l,f,t.dragOptions,a)},$Zt.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 $J=ei(),sYt=B_(),lYt=Kd(),cje=eC();hje.exports=function(t,r,n){sYt(t,r,n,{type:"map",attributes:cje,handleDefaults:uYt,partition:"y"})};function uYt(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,lYt(e,t,{name:"layers",handleItemDefaults:fYt}),t._input=e}function fYt(e,t){function r(u,l){return $J.coerce(e,t,cje.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",$J.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"),$J.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var EB=Te(u0=>{"use strict";var MB=ei(),pje=MB.strTranslate,cYt=MB.strScale,hYt=Rd().getSubplotCalcData,dYt=jv(),pYt=Jl(),vje=Mu(),vYt=Wf(),mYt=fje(),zx="map";u0.name=zx;u0.attr="subplot";u0.idRoot=zx;u0.idRegex=u0.attrRegex=MB.counterRegex(zx);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=eC();u0.supplyLayoutDefaults=dje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[zx],a=0;a_/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(vYt.convertToTspans,e),p=vje.bBox(d.node())}d.attr("transform",pje(-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>_&&(v=_/(p.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",pje(C[0],C[1])+cYt(v))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[zx],n=0;n{"use strict";mje.exports={attributes:gB(),supplyDefaults:CWe(),colorbar:ep(),formatLabels:VJ(),calc:_F(),plot:GWe(),hoverPoints:AB().hoverPoints,eventData:XWe(),selectPoints:YWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:EB(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var _je=Te((zwr,gje)=>{"use strict";gje.exports=yje()});var QJ=Te((Iwr,xje)=>{"use strict";var x1=aS(),yYt=nc(),{hovertemplateAttrs:gYt,templatefallbackAttrs:_Yt}=Ff(),xYt=Gf(),Ix=Su().extendFlat;xje.exports=Ix({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ix({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Ix({},x1.marker.line.color,{editType:"plot"}),width:Ix({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ix({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ix({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ix({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:gYt({},{keys:["properties"]}),hovertemplatefallback:_Yt(),showlegend:Ix({},xYt.showlegend,{dflt:!1})},yYt("",{cLetter:"z",editTypeOverride:"calc"}))});var wje=Te((Rwr,bje)=>{"use strict";var nC=ei(),bYt=nd(),wYt=QJ();bje.exports=function(t,r,n,i){function a(f,c){return nC.coerce(t,r,wYt,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"),bYt(t,r,i,a,{prefix:"",cLetter:"z"}),nC.coerceSelectionMarkerOpacity(r,a)}});var e$=Te((Dwr,Sje)=>{"use strict";var AYt=ku(),b1=ei(),TYt=_c(),SYt=Mu(),MYt=fx().makeBlank,Aje=hx();function EYt(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:MYt()};if(!r)return a;var o=Aje.extractTraceFeature(e);if(!o)return a;var s=TYt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;b1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return AYt(E)?+b1.constrain(E,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 Eje=e$().convert,kYt=e$().convertOnSelect,Mje=Px().traceLayerPrefix;function kje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Mje+t+"-fill"],["line",Mje+t+"-line"]],this.below=null}var RS=kje.prototype;RS.update=function(e){this._update(Eje(e)),e[0].trace._glTrace=this};RS.updateOnSelect=function(e){this._update(kYt(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)};Cje.exports=function(t,r){var n=r[0].trace,i=new kje(t,n.uid),a=i.sourceId,o=Eje(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 zje=Te((Bwr,Pje)=>{"use strict";Pje.exports={attributes:QJ(),supplyDefaults:wje(),colorbar:R_(),calc:NF(),plot:Lje(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";Ije.exports=zje()});var r$=Te((qwr,Fje)=>{"use strict";var CYt=nc(),{hovertemplateAttrs:LYt,templatefallbackAttrs:PYt}=Ff(),Dje=Gf(),kB=gB(),t$=Su().extendFlat;Fje.exports=t$({lon:kB.lon,lat:kB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:kB.text,hovertext:kB.hovertext,hoverinfo:t$({},Dje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:LYt(),hovertemplatefallback:PYt(),showlegend:t$({},Dje.showlegend,{dflt:!1})},CYt("",{cLetter:"z",editTypeOverride:"calc"}))});var Oje=Te((Nwr,Bje)=>{"use strict";var zYt=ei(),IYt=nd(),RYt=r$();Bje.exports=function(t,r,n,i){function a(l,f){return zYt.coerce(t,r,RYt,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"),IYt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Uje=Te((Uwr,Nje)=>{"use strict";var i$=ku(),DYt=ei().isArrayOrTypedArray,n$=rf().BADNUM,FYt=gp(),qje=ei()._;Nje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=DYt(a)&&a.length,s=0;s{"use strict";var BYt=ku(),a$=ei(),Vje=jl(),Gje=_c(),Hje=rf().BADNUM,OYt=fx().makeBlank;Wje.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:OYt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=a$.isArrayOrTypedArray(u)&&u.length,c=a$.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=Gje.extractOpts(r),v=b.reversescale?Gje.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=Vje.opacity(C)<1?C:Vje.addOpacity(C,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Xje=jje(),qYt=Px().traceLayerPrefix;function Zje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",qYt+t+"-heatmap"]],this.below=null}var CB=Zje.prototype;CB.update=function(e){var t=this.subplot,r=this.layerList,n=Xje(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])};CB.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),i}});var $je=Te((Hwr,Jje)=>{"use strict";var NYt=wu(),UYt=AB().hoverPoints,VYt=AB().getExtraText;Jje.exports=function(t,r,n){var i=UYt(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=NYt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=VYt(s,u,o[0].t.labels),[a]}}});var eXe=Te((Wwr,Qje)=>{"use strict";Qje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var rXe=Te((jwr,tXe)=>{"use strict";tXe.exports={attributes:r$(),supplyDefaults:Oje(),colorbar:R_(),formatLabels:VJ(),calc:Uje(),plot:Kje(),hoverPoints:$je(),eventData:eXe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";iXe.exports=rXe()});var s$=Te((Ywr,uXe)=>{"use strict";var GYt=gc(),HYt=Gf(),aXe=Oh(),o$=p3(),WYt=zc().attributes,{hovertemplateAttrs:oXe,templatefallbackAttrs:sXe}=Ff(),jYt=nc(),XYt=Lf().templatedArray,ZYt=jc().descriptionOnlyNumbers,lXe=Su().extendFlat,YYt=Sc().overrideAll,Zwr=uXe.exports=YYt({hoverinfo:lXe({},HYt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o$.hoverlabel,domain:WYt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:ZYt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:GYt({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:aXe.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:o$.hoverlabel,hovertemplate:oXe({},{keys:["value","label"]}),hovertemplatefallback:sXe(),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:aXe.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:o$.hoverlabel,hovertemplate:oXe({},{keys:["value","label"]}),hovertemplatefallback:sXe(),colorscales:XYt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:lXe(jYt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var pXe=Te((Kwr,dXe)=>{"use strict";var DS=ei(),LB=s$(),KYt=jl(),fXe=hd(),JYt=zc().defaults,cXe=_5(),hXe=Lf(),$Yt=Kd();dXe.exports=function(t,r,n,i){function a(T,L){return DS.coerce(t,r,LB,T,L)}var o=DS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=hXe.newContainer(r,"node");function l(T,L){return DS.coerce(s,u,LB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),cXe(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return KYt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=hXe.newContainer(r,"link");function p(T,L){return DS.coerce(h,d,LB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),cXe(h,d,p,o),p("hovertemplate");var _=fXe(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function C(T){var L=fXe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(C):C(v)),p("customdata"),$Yt(h,d,{name:"colorscales",handleItemDefaults:QYt}),JYt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),DS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function QYt(e,t){function r(n,i){return DS.coerce(e,t,LB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var l$=Te((Jwr,vXe)=>{"use strict";vXe.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]=T}else{if(n[b]===r[b]){for(var x=[],k=[],M=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,x.push(m),k.push(s[m]),M+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(x);for(var P=new Array(M),T=0;T{"use strict";var tKt=l$(),FS=ei(),rKt=ig().wrap,aC=FS.isArrayOrTypedArray,mXe=FS.isIndex,yXe=_c();function iKt(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 _=p+1;e.node._count=_;var b,v=e.node.groups,C={};for(f=0;f0&&mXe(M,_)&&mXe(m,_)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(m)&&C[M]===C[m])){C.hasOwnProperty(m)&&(m=C[m]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,m=+m,s[M]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=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:A,source:M,target:m,value:+k}),x.source.push(M),x.target.push(m)}}var F=_+v.length,B=aC(t.color),U=aC(t.customdata),G=[];for(f=0;f_-1,childrenNodes:[],pointNumber:f,label:j,color:B?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var W=!1;return nKt(F,x.source,x.target)&&(W=!0),{circular:W,links:n,nodes:G,groups:v,groupLookup:C}}function nKt(e,t,r){for(var n=FS.init2dArray(e,0),i=0;i1})}gXe.exports=function(t,r){var n=iKt(r);return rKt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var bXe=Te((PB,xXe)=>{(function(e,t){typeof PB=="object"&&typeof xXe!="undefined"?t(PB):(e=e||self,t(e.d3=e.d3||{}))})(PB,function(e){"use strict";function t(k){var M=+this._x.call(null,k),m=+this._y.call(null,k);return r(this.cover(M,m),M,m,k)}function r(k,M,m,P){if(isNaN(M)||isNaN(m))return k;var A,F=k._root,B={data:P},U=k._x0,G=k._y0,j=k._x1,W=k._y1,N,H,re,ae,ge,ze,Le,de;if(!F)return k._root=B,k;for(;F.length;)if((ge=M>=(N=(U+j)/2))?U=N:j=N,(ze=m>=(H=(G+W)/2))?G=H:W=H,A=F,!(F=F[Le=ze<<1|ge]))return A[Le]=B,k;if(re=+k._x.call(null,F.data),ae=+k._y.call(null,F.data),M===re&&m===ae)return B.next=F,A?A[Le]=B:k._root=B,k;do A=A?A[Le]=new Array(4):k._root=new Array(4),(ge=M>=(N=(U+j)/2))?U=N:j=N,(ze=m>=(H=(G+W)/2))?G=H:W=H;while((Le=ze<<1|ge)===(de=(ae>=H)<<1|re>=N));return A[de]=F,A[Le]=B,k}function n(k){var M,m,P=k.length,A,F,B=new Array(P),U=new Array(P),G=1/0,j=1/0,W=-1/0,N=-1/0;for(m=0;mW&&(W=A),FN&&(N=F));if(G>W||j>N)return this;for(this.cover(G,j).cover(W,N),m=0;mk||k>=A||P>M||M>=F;)switch(j=(MW||(U=ae.y0)>N||(G=ae.x1)=Le)<<1|k>=ze)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-ge],H[H.length-1-ge]=ae)}else{var de=k-+this._x.call(null,re.data),te=M-+this._y.call(null,re.data),ke=de*de+te*te;if(ke=(H=(B+G)/2))?B=H:G=H,(ge=N>=(re=(U+j)/2))?U=re:j=re,M=m,!(m=m[ze=ge<<1|ae]))return this;if(!m.length)break;(M[ze+1&3]||M[ze+2&3]||M[ze+3&3])&&(P=M,Le=ze)}for(;m.data!==k;)if(A=m,!(m=m.next))return this;return(F=m.next)&&delete m.next,A?(F?A.next=F:delete A.next,this):M?(F?M[ze]=F:delete M[ze],(m=M[0]||M[1]||M[2]||M[3])&&m===(M[3]||M[2]||M[1]||M[0])&&!m.length&&(P?P[Le]=m:this._root=m),this):(this._root=F,this)}function f(k){for(var M=0,m=k.length;M{(function(e,t){t(typeof zB=="object"&&typeof wXe!="undefined"?zB:e.d3=e.d3||{})})(zB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var v=new r;if(_ instanceof r)_.each(function(x,k){v.set(k,x)});else if(Array.isArray(_)){var C=-1,E=_.length,T;if(b==null)for(;++C=_.length)return v!=null&&x.sort(v),C!=null?C(x):x;for(var P=-1,A=x.length,F=_[k++],B,U,G=n(),j,W=M();++P_.length)return x;var M,m=b[k-1];return C!=null&&k>=_.length?M=x.entries():(M=[],x.each(function(P,A){M.push({key:A,values:L(P,k)})})),m!=null?M.sort(function(P,A){return m(P.key,A.key)}):M}return E={object:function(x){return T(x,0,a,o)},map:function(x){return T(x,0,s,u)},entries:function(x){return L(T(x,0,s,u),0)},key:function(x){return _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return v=x,E},rollup:function(x){return C=x,E}}}function a(){return{}}function o(_,b,v){_[b]=v}function s(){return n()}function u(_,b,v){_.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(_){return _+="",this[t+_]=_,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(_,b){var v=new l;if(_ instanceof l)_.each(function(T){v.add(T)});else if(_){var C=-1,E=_.length;if(b==null)for(;++C{(function(e,t){typeof RB=="object"&&typeof AXe!="undefined"?t(RB):(e=e||self,t(e.d3=e.d3||{}))})(RB,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 DB=="object"&&typeof SXe!="undefined"?t(DB):(e=e||self,t(e.d3=e.d3||{}))})(DB,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=_.prototype={constructor:p,restart:function(k,M,m){if(typeof k!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function _(k,M,m){var P=new p;return P.restart(k,M,m),P}function b(){h(),++t;for(var k=a,M;k;)(M=u-k._time)>=0&&k._call.call(null,M),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(),M=k-s;M>i&&(l-=M,s=k)}function E(){for(var k,M=a,m,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(m=M._next,M._next=null,M=k?k._next=m:a=m);o=k,T(P)}function T(k){if(!t){r&&(r=clearTimeout(r));var M=k-u;M>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,M,m){var P=new p;return M=M==null?0:+M,P.restart(function(A){P.stop(),k(A+M)},M,m),P}function x(k,M,m){var P=new p,A=M;return M==null?(P.restart(k,M,m),P):(M=+M,m=m==null?h():+m,P.restart(function F(B){B+=A,P.restart(F,A+=M,m),k(B)},M,m),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var kXe=Te((FB,EXe)=>{(function(e,t){typeof FB=="object"&&typeof EXe!="undefined"?t(FB,bXe(),IB(),TXe(),MXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(FB,function(e,t,r,n,i){"use strict";function a(k,M){var m;k==null&&(k=0),M==null&&(M=0);function P(){var A,F=m.length,B,U=0,G=0;for(A=0;AN.index){var Ne=H-Ge.x-Ge.vx,ce=re-Ge.y-Ge.vy,je=Ne*Ne+ce*ce;jeH+xe||Eere+xe||SeG.r&&(G.r=G[j].r)}function U(){if(M){var G,j=M.length,W;for(m=new Array(j),G=0;G1?(ge==null?U.remove(ae):U.set(ae,re(ge)),M):U.get(ae)},find:function(ae,ge,ze){var Le=0,de=k.length,te,ke,Ee,Se,Ge;for(ze==null?ze=1/0:ze*=ze,Le=0;Le1?(j.on(ae,ge),M):j.on(ae)}}}function E(){var k,M,m,P=o(-30),A,F=1,B=1/0,U=.81;function G(H){var re,ae=k.length,ge=t.quadtree(k,p,_).visitAfter(W);for(m=H,re=0;re=B)return;(H.data!==M||H.next)&&(ze===0&&(ze=s(),te+=ze*ze),Le===0&&(Le=s(),te+=Le*Le),te{(function(e,t){typeof BB=="object"&&typeof CXe!="undefined"?t(BB):(e=e||self,t(e.d3=e.d3||{}))})(BB,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,_=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-_*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+_*_,x=E*E+T*T,k=Math.sqrt(L),M=Math.sqrt(C),m=c*Math.tan((t-Math.acos((L+C-x)/(2*k*M)))/2),P=m/M,A=m/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*_)}},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),_=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"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+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=_)+","+(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 u$=Te((OB,PXe)=>{(function(e,t){typeof OB=="object"&&typeof PXe!="undefined"?t(OB,LXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(OB,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,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ct){return ct>1?0:ct<-1?c:Math.acos(ct)}function _(ct){return ct>=1?h:ct<=-1?-h:Math.asin(ct)}function b(ct){return ct.innerRadius}function v(ct){return ct.outerRadius}function C(ct){return ct.startAngle}function E(ct){return ct.endAngle}function T(ct){return ct&&ct.padAngle}function L(ct,tr,pr,gr,Zr,Ai,en,ii){var Xi=pr-ct,aa=gr-tr,Mn=en-Zr,Un=ii-Ai,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 ct=b,tr=v,pr=r(0),gr=null,Zr=C,Ai=E,en=T,ii=null;function Xi(){var aa,Mn,Un=+ct.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ii||(ii=aa=t.path()),Gaf))ii.moveTo(0,0);else if(ka>d-f)ii.moveTo(Ga*a(ma),Ga*u(ma)),ii.arc(0,0,Ga,ma,oa,!so),Un>f&&(ii.moveTo(Un*a(oa),Un*u(oa)),ii.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=en.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=_(uo/Un*u(ys)),ws=_(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),Ba;if(kaf?fo>f?(mn=x(Sn,ao,Co,Po,Ga,fo,so),ra=x(Ps,Ha,Wi,gn,Ga,fo,so),ii.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ii.lineTo(Wi,gn):$a>f?(mn=x(Wi,gn,Ps,Ha,Un,-$a,so),ra=x(Co,Po,Sn,ao,Un,-$a,so),ii.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ii.point(Ia[ma],Yo[ma]);ii.lineEnd(),ii.areaEnd()}so&&(Ia[Un]=+ct(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ii.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ii=null,Kr+""||null}function aa(){return F().defined(Zr).curve(en).context(Ai)}return Xi.x=function(Mn){return arguments.length?(ct=typeof Mn=="function"?Mn:r(+Mn),tr=null,Xi):ct},Xi.x0=function(Mn){return arguments.length?(ct=typeof Mn=="function"?Mn:r(+Mn),Xi):ct},Xi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):tr},Xi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Xi):pr},Xi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Xi):pr},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(ct).y(pr)},Xi.lineY1=function(){return aa().x(ct).y(gr)},Xi.lineX1=function(){return aa().x(tr).y(pr)},Xi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Xi):Zr},Xi.curve=function(Mn){return arguments.length?(en=Mn,Ai!=null&&(ii=en(Ai)),Xi):en},Xi.context=function(Mn){return arguments.length?(Mn==null?Ai=ii=null:ii=en(Ai=Mn),Xi):Ai},Xi}function U(ct,tr){return trct?1:tr>=ct?0:NaN}function G(ct){return ct}function j(){var ct=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function en(ii){var Xi,aa=ii.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,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Xi=0;Xi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ii[kn],ii[Ta])}),Xi=0,Un=Ga?(so-aa*Yo)/Ga:0;Xi0?fa*Un:0)+Yo,oa[Mn]={data:ii[Mn],index:Xi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return en.value=function(ii){return arguments.length?(ct=typeof ii=="function"?ii:r(+ii),en):ct},en.sortValues=function(ii){return arguments.length?(tr=ii,pr=null,en):tr},en.sort=function(ii){return arguments.length?(pr=ii,tr=null,en):pr},en.startAngle=function(ii){return arguments.length?(gr=typeof ii=="function"?ii:r(+ii),en):gr},en.endAngle=function(ii){return arguments.length?(Zr=typeof ii=="function"?ii:r(+ii),en):Zr},en.padAngle=function(ii){return arguments.length?(Ai=typeof ii=="function"?ii:r(+ii),en):Ai},en}var W=H(m);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,tr){this._curve.point(tr*Math.sin(ct),tr*-Math.cos(ct))}};function H(ct){function tr(pr){return new N(ct(pr))}return tr._curve=ct,tr}function re(ct){var tr=ct.curve;return ct.angle=ct.x,delete ct.x,ct.radius=ct.y,delete ct.y,ct.curve=function(pr){return arguments.length?tr(H(pr)):tr()._curve},ct}function ae(){return re(F().curve(W))}function ge(){var ct=B().curve(W),tr=ct.curve,pr=ct.lineX0,gr=ct.lineX1,Zr=ct.lineY0,Ai=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(pr())},delete ct.lineX0,ct.lineEndAngle=function(){return re(gr())},delete ct.lineX1,ct.lineInnerRadius=function(){return re(Zr())},delete ct.lineY0,ct.lineOuterRadius=function(){return re(Ai())},delete ct.lineY1,ct.curve=function(en){return arguments.length?tr(H(en)):tr()._curve},ct}function ze(ct,tr){return[(tr=+tr)*Math.cos(ct-=Math.PI/2),tr*Math.sin(ct)]}var Le=Array.prototype.slice;function de(ct){return ct.source}function te(ct){return ct.target}function ke(ct){var tr=de,pr=te,gr=P,Zr=A,Ai=null;function en(){var ii,Xi=Le.call(arguments),aa=tr.apply(this,Xi),Mn=pr.apply(this,Xi);if(Ai||(Ai=ii=t.path()),ct(Ai,+gr.apply(this,(Xi[0]=aa,Xi)),+Zr.apply(this,Xi),+gr.apply(this,(Xi[0]=Mn,Xi)),+Zr.apply(this,Xi)),ii)return Ai=null,ii+""||null}return en.source=function(ii){return arguments.length?(tr=ii,en):tr},en.target=function(ii){return arguments.length?(pr=ii,en):pr},en.x=function(ii){return arguments.length?(gr=typeof ii=="function"?ii:r(+ii),en):gr},en.y=function(ii){return arguments.length?(Zr=typeof ii=="function"?ii:r(+ii),en):Zr},en.context=function(ii){return arguments.length?(Ai=ii==null?null:ii,en):Ai},en}function Ee(ct,tr,pr,gr,Zr){ct.moveTo(tr,pr),ct.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Se(ct,tr,pr,gr,Zr){ct.moveTo(tr,pr),ct.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ge(ct,tr,pr,gr,Zr){var Ai=ze(tr,pr),en=ze(tr,pr=(pr+Zr)/2),ii=ze(gr,pr),Xi=ze(gr,Zr);ct.moveTo(Ai[0],Ai[1]),ct.bezierCurveTo(en[0],en[1],ii[0],ii[1],Xi[0],Xi[1])}function De(){return ke(Ee)}function xe(){return ke(Se)}function Ne(){var ct=ke(Ge);return ct.angle=ct.x,delete ct.x,ct.radius=ct.y,delete ct.y,ct}var ce={draw:function(ct,tr){var pr=Math.sqrt(tr/c);ct.moveTo(pr,0),ct.arc(0,0,pr,0,d)}},je={draw:function(ct,tr){var pr=Math.sqrt(tr/5)/2;ct.moveTo(-3*pr,-pr),ct.lineTo(-pr,-pr),ct.lineTo(-pr,-3*pr),ct.lineTo(pr,-3*pr),ct.lineTo(pr,-pr),ct.lineTo(3*pr,-pr),ct.lineTo(3*pr,pr),ct.lineTo(pr,pr),ct.lineTo(pr,3*pr),ct.lineTo(-pr,3*pr),ct.lineTo(-pr,pr),ct.lineTo(-3*pr,pr),ct.closePath()}},Qe=Math.sqrt(1/3),gt=Qe*2,qt={draw:function(ct,tr){var pr=Math.sqrt(tr/gt),gr=pr*Qe;ct.moveTo(0,-pr),ct.lineTo(gr,0),ct.lineTo(0,pr),ct.lineTo(-gr,0),ct.closePath()}},at=.8908130915292852,Ke=Math.sin(c/10)/Math.sin(7*c/10),Ct=Math.sin(d/10)*Ke,wt=-Math.cos(d/10)*Ke,Mt={draw:function(ct,tr){var pr=Math.sqrt(tr*at),gr=Ct*pr,Zr=wt*pr;ct.moveTo(0,-pr),ct.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var en=d*Ai/5,ii=Math.cos(en),Xi=Math.sin(en);ct.lineTo(Xi*pr,-ii*pr),ct.lineTo(ii*gr-Xi*Zr,Xi*gr+ii*Zr)}ct.closePath()}},Bt={draw:function(ct,tr){var pr=Math.sqrt(tr),gr=-pr/2;ct.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ct,tr){var pr=-Math.sqrt(tr/(Zt*3));ct.moveTo(0,pr*2),ct.lineTo(-Zt*pr,-pr),ct.lineTo(Zt*pr,-pr),ct.closePath()}},Ae=-.5,ot=Math.sqrt(3)/2,At=1/Math.sqrt(12),vt=(At/2+1)*3,Je={draw:function(ct,tr){var pr=Math.sqrt(tr/vt),gr=pr/2,Zr=pr*At,Ai=gr,en=pr*At+pr,ii=-Ai,Xi=en;ct.moveTo(gr,Zr),ct.lineTo(Ai,en),ct.lineTo(ii,Xi),ct.lineTo(Ae*gr-ot*Zr,ot*gr+Ae*Zr),ct.lineTo(Ae*Ai-ot*en,ot*Ai+Ae*en),ct.lineTo(Ae*ii-ot*Xi,ot*ii+Ae*Xi),ct.lineTo(Ae*gr+ot*Zr,Ae*Zr-ot*gr),ct.lineTo(Ae*Ai+ot*en,Ae*en-ot*Ai),ct.lineTo(Ae*ii+ot*Xi,Ae*Xi-ot*ii),ct.closePath()}},He=[ce,je,qt,Bt,Mt,Et,Je];function nt(){var ct=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ct.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ct=typeof Zr=="function"?Zr:r(Zr),gr):ct},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function tt(){}function It(ct,tr,pr){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+tr)/6,(ct._y0+4*ct._y1+pr)/6)}function Yt(ct){this._context=ct}Yt.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:It(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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);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:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function cr(ct){return new Yt(ct)}function _r(ct){this._context=ct}_r.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(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._x2=ct,this._y2=tr;break;case 1:this._point=2,this._x3=ct,this._y3=tr;break;case 2:this._point=3,this._x4=ct,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ct)/6,(this._y0+4*this._y1+tr)/6);break;default:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function yr(ct){return new _r(ct)}function Ut(ct){this._context=ct}Ut.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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ct)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:It(this,ct,tr);break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr}};function Re(ct){return new Ut(ct)}function be(ct,tr){this._basis=new Yt(ct),this._beta=tr}be.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ct=this._x,tr=this._y,pr=ct.length-1;if(pr>0)for(var gr=ct[0],Zr=tr[0],Ai=ct[pr]-gr,en=tr[pr]-Zr,ii=-1,Xi;++ii<=pr;)Xi=ii/pr,this._basis.point(this._beta*ct[ii]+(1-this._beta)*(gr+Xi*Ai),this._beta*tr[ii]+(1-this._beta)*(Zr+Xi*en));this._x=this._y=null,this._basis.lineEnd()},point:function(ct,tr){this._x.push(+ct),this._y.push(+tr)}};var Oe=function ct(tr){function pr(gr){return tr===1?new Yt(gr):new be(gr,tr)}return pr.beta=function(gr){return ct(+gr)},pr}(.85);function Ie(ct,tr,pr){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-tr),ct._y2+ct._k*(ct._y1-pr),ct._x2,ct._y2)}function Fe(ct,tr){this._context=ct,this._k=(1-tr)/6}Fe.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:Ie(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,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2,this._x1=ct,this._y1=tr;break;case 2:this._point=3;default:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ft=function ct(tr){function pr(gr){return new Fe(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function ye(ct,tr){this._context=ct,this._k=(1-tr)/6}ye.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(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._x3=ct,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ct,this._y4=tr);break;case 2:this._point=3,this._x5=ct,this._y5=tr;break;default:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ct(tr){function pr(gr){return new ye(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function pe(ct,tr){this._context=ct,this._k=(1-tr)/6}pe.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,tr){switch(ct=+ct,tr=+tr,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:Ie(this,ct,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ct,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var dt=function ct(tr){function pr(gr){return new pe(gr,tr)}return pr.tension=function(gr){return ct(+gr)},pr}(0);function Pt(ct,tr,pr){var gr=ct._x1,Zr=ct._y1,Ai=ct._x2,en=ct._y2;if(ct._l01_a>f){var ii=2*ct._l01_2a+3*ct._l01_a*ct._l12_a+ct._l12_2a,Xi=3*ct._l01_a*(ct._l01_a+ct._l12_a);gr=(gr*ii-ct._x0*ct._l12_2a+ct._x2*ct._l01_2a)/Xi,Zr=(Zr*ii-ct._y0*ct._l12_2a+ct._y2*ct._l01_2a)/Xi}if(ct._l23_a>f){var aa=2*ct._l23_2a+3*ct._l23_a*ct._l12_a+ct._l12_2a,Mn=3*ct._l23_a*(ct._l23_a+ct._l12_a);Ai=(Ai*aa+ct._x1*ct._l23_2a-tr*ct._l12_2a)/Mn,en=(en*aa+ct._y1*ct._l23_2a-pr*ct._l12_2a)/Mn}ct._context.bezierCurveTo(gr,Zr,Ai,en,ct._x2,ct._y2)}function zt(ct,tr){this._context=ct,this._alpha=tr}zt.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,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:Pt(this,ct,tr);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=tr}};var rr=function ct(tr){function pr(gr){return tr?new zt(gr,tr):new Fe(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function Gr(ct,tr){this._context=ct,this._alpha=tr}Gr.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(ct,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ct,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ct,this._y4=tr);break;case 2:this._point=3,this._x5=ct,this._y5=tr;break;default:Pt(this,ct,tr);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=tr}};var Br=function ct(tr){function pr(gr){return tr?new Gr(gr,tr):new ye(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function Er(ct,tr){this._context=ct,this._alpha=tr}Er.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,tr){if(ct=+ct,tr=+tr,this._point){var pr=this._x2-ct,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+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:Pt(this,ct,tr);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=tr}};var Rr=function ct(tr){function pr(gr){return tr?new Er(gr,tr):new pe(gr,0)}return pr.alpha=function(gr){return ct(+gr)},pr}(.5);function pi(ct){this._context=ct}pi.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ct,tr){ct=+ct,tr=+tr,this._point?this._context.lineTo(ct,tr):(this._point=1,this._context.moveTo(ct,tr))}};function Di(ct){return new pi(ct)}function ni(ct){return ct<0?-1:1}function $i(ct,tr,pr){var gr=ct._x1-ct._x0,Zr=tr-ct._x1,Ai=(ct._y1-ct._y0)/(gr||Zr<0&&-0),en=(pr-ct._y1)/(Zr||gr<0&&-0),ii=(Ai*Zr+en*gr)/(gr+Zr);return(ni(Ai)+ni(en))*Math.min(Math.abs(Ai),Math.abs(en),.5*Math.abs(ii))||0}function Qi(ct,tr){var pr=ct._x1-ct._x0;return pr?(3*(ct._y1-ct._y0)/pr-tr)/2:tr}function si(ct,tr,pr){var gr=ct._x0,Zr=ct._y0,Ai=ct._x1,en=ct._y1,ii=(Ai-gr)/3;ct._context.bezierCurveTo(gr+ii,Zr+ii*tr,Ai-ii,en-ii*pr,Ai,en)}function Ti(ct){this._context=ct}Ti.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:si(this,this._t0,Qi(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ct,tr){var pr=NaN;if(ct=+ct,tr=+tr,!(ct===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;break;case 2:this._point=3,si(this,Qi(this,pr=$i(this,ct,tr)),pr);break;default:si(this,this._t0,pr=$i(this,ct,tr));break}this._x0=this._x1,this._x1=ct,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Ni(ct){this._context=new Rt(ct)}(Ni.prototype=Object.create(Ti.prototype)).point=function(ct,tr){Ti.prototype.point.call(this,tr,ct)};function Rt(ct){this._context=ct}Rt.prototype={moveTo:function(ct,tr){this._context.moveTo(tr,ct)},closePath:function(){this._context.closePath()},lineTo:function(ct,tr){this._context.lineTo(tr,ct)},bezierCurveTo:function(ct,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ct,gr,pr,Ai,Zr)}};function yt(ct){return new Ti(ct)}function Gt(ct){return new Ni(ct)}function Wt(ct){this._context=ct}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ct=this._x,tr=this._y,pr=ct.length;if(pr)if(this._line?this._context.lineTo(ct[0],tr[0]):this._context.moveTo(ct[0],tr[0]),pr===2)this._context.lineTo(ct[1],tr[1]);else for(var gr=xr(ct),Zr=xr(tr),Ai=0,en=1;en=0;--tr)Zr[tr]=(en[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ct[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ct,tr){switch(ct=+ct,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ct,tr):this._context.moveTo(ct,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ct,tr);else{var pr=this._x*(1-this._t)+ct*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ct,this._y=tr}};function Or(ct){return new Nr(ct,.5)}function Hr(ct){return new Nr(ct,0)}function jr(ct){return new Nr(ct,1)}function gi(ct,tr){if((en=ct.length)>1)for(var pr=1,gr,Zr,Ai=ct[tr[0]],en,ii=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ct,tr){return ct[tr]}function ti(){var ct=r([]),tr=ki,pr=gi,gr=Vi;function Zr(Ai){var en=ct.apply(this,arguments),ii,Xi=Ai.length,aa=en.length,Mn=new Array(aa),Un;for(ii=0;ii0){for(var pr,gr,Zr=0,Ai=ct[0].length,en;Zr0)for(var pr,gr=0,Zr,Ai,en,ii,Xi,aa=ct[tr[0]].length;gr0?(Zr[0]=en,Zr[1]=en+=Ai):Ai<0?(Zr[1]=ii,Zr[0]=ii+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ct,tr){if((Zr=ct.length)>0){for(var pr=0,gr=ct[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ct[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,en;grAi&&(Ai=Zr,pr=tr);return pr}function Ri(ct){var tr=ct.map(Ii);return ki(ct).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ii(ct){for(var tr=0,pr=-1,gr=ct.length,Zr;++pr{(function(e,t){typeof qB=="object"&&typeof zXe!="undefined"?t(qB,dk(),IB(),u$()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(qB,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 _(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 T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,F=1,B=24,U=8,G=v,j=s,W=C,N=E,H=32,re=2/3;function ae(){var ke={nodes:W.apply(null,arguments),links:N.apply(null,arguments)};return ge(ke),ze(ke),Le(ke),de(ke,H),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(B=+ke,ae):B},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(W=typeof ke=="function"?ke:l(ke),ae):W},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],F=+ke[1],ae):[A-m,F-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],F=+ke[1][1],ae):[[m,P],[A,F]]},ae.iterations=function(ke){return arguments.length?(H=+ke,ae):H};function ge(ke){ke.nodes.forEach(function(Se,Ge){Se.index=Ge,Se.sourceLinks=[],Se.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Se,Ge){Se.index=Ge;var De=Se.source,xe=Se.target;typeof De!="object"&&(De=Se.source=T(Ee,De)),typeof xe!="object"&&(xe=Se.target=T(Ee,xe)),De.sourceLinks.push(Se),xe.targetLinks.push(Se)})}function ze(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Le(ke){var Ee,Se,Ge;for(Ee=ke.nodes,Se=[],Ge=0;Ee.length;++Ge,Ee=Se,Se=[])Ee.forEach(function(xe){xe.depth=Ge,xe.sourceLinks.forEach(function(Ne){Se.indexOf(Ne.target)<0&&Se.push(Ne.target)})});for(Ee=ke.nodes,Se=[],Ge=0;Ee.length;++Ge,Ee=Se,Se=[])Ee.forEach(function(xe){xe.height=Ge,xe.targetLinks.forEach(function(Ne){Se.indexOf(Ne.source)<0&&Se.push(Ne.source)})});var De=(A-m-B)/(Ge-1);ke.nodes.forEach(function(xe){xe.x1=(xe.x0=m+Math.max(0,Math.min(Ge-1,Math.floor(j.call(null,xe,Ge))))*De)+B})}function de(ke){var Ee=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(je){return je.values});De(),ce();for(var Se=1,Ge=H;Ge>0;--Ge)Ne(Se*=.99),ce(),xe(Se),ce();function De(){var je=t.max(Ee,function(qt){return qt.length}),Qe=re*(F-P)/(je-1);U>Qe&&(U=Qe);var gt=t.min(Ee,function(qt){return(F-P-(qt.length-1)*U)/t.sum(qt,d)});Ee.forEach(function(qt){qt.forEach(function(at,Ke){at.y1=(at.y0=Ke)+at.value*gt})}),ke.links.forEach(function(qt){qt.width=qt.value*gt})}function xe(je){Ee.forEach(function(Qe){Qe.forEach(function(gt){if(gt.targetLinks.length){var qt=(t.sum(gt.targetLinks,_)/t.sum(gt.targetLinks,d)-p(gt))*je;gt.y0+=qt,gt.y1+=qt}})})}function Ne(je){Ee.slice().reverse().forEach(function(Qe){Qe.forEach(function(gt){if(gt.sourceLinks.length){var qt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-p(gt))*je;gt.y0+=qt,gt.y1+=qt}})})}function ce(){Ee.forEach(function(je){var Qe,gt,qt=P,at=je.length,Ke;for(je.sort(h),Ke=0;Ke0&&(Qe.y0+=gt,Qe.y1+=gt),qt=Qe.y1+U;if(gt=qt-U-F,gt>0)for(qt=Qe.y0-=gt,Qe.y1-=gt,Ke=at-2;Ke>=0;--Ke)Qe=je[Ke],gt=Qe.y1+U-qt,gt>0&&(Qe.y0-=gt,Qe.y1-=gt),qt=Qe.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Se=Ee.y0,Ge=Se;Ee.sourceLinks.forEach(function(De){De.y0=Se+De.width/2,Se+=De.width}),Ee.targetLinks.forEach(function(De){De.y1=Ge+De.width/2,Ge+=De.width})})}return ae};function x(m){return[m.source.x1,m.y0]}function k(m){return[m.target.x0,m.y1]}var M=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=M,Object.defineProperty(e,"__esModule",{value:!0})})});var DXe=Te((Qwr,RXe)=>{var aKt=l$();RXe.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(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=aKt(T),x=L.components.filter(function(B){return B.length>1}),k=1/0,M,m=0;m{(function(e,t){typeof NB=="object"&&typeof FXe!="undefined"?t(NB,dk(),IB(),u$(),DXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(NB,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,Ke){return Ke-1-at.height}function u(at,Ke){return at.sourceLinks.length?at.depth:Ke-1}function l(at){return at.targetLinks.length?at.depth:at.sourceLinks.length?t.min(at.sourceLinks,a)-1:0}function f(at){return function(){return at}}var c=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,Ke){return p(at.source,Ke.source)||at.index-Ke.index}function d(at,Ke){return p(at.target,Ke.target)||at.index-Ke.index}function p(at,Ke){return at.partOfCycle===Ke.partOfCycle?at.y0-Ke.y0:at.circularLinkType==="top"||Ke.circularLinkType==="bottom"?-1:1}function _(at){return at.value}function b(at){return(at.y0+at.y1)/2}function v(at){return b(at.source)}function C(at){return b(at.target)}function E(at){return at.index}function T(at){return at.nodes}function L(at){return at.links}function x(at,Ke){var Ct=at.get(Ke);if(!Ct)throw new Error("missing: "+Ke);return Ct}function k(at,Ke){return Ke(at)}var M=25,m=10,P=.3;function A(){var at=0,Ke=0,Ct=1,wt=1,Mt=24,Bt,Zt=E,Et=u,Ae=T,ot=L,At=32,vt=2,Je,He=null;function nt(){var Re={nodes:Ae.apply(null,arguments),links:ot.apply(null,arguments)};tt(Re),F(Re,Zt,He),It(Re),_r(Re),B(Re,Zt),yr(Re,At,Zt),Ut(Re);for(var be=4,Oe=0;Oe0?be+M+m:be,Oe=Oe>0?Oe+M+m:Oe,Ie=Ie>0?Ie+M+m:Ie,Fe=Fe>0?Fe+M+m:Fe,{top:be,bottom:Oe,left:Fe,right:Ie}}function cr(Re,be){var Oe=t.max(Re.nodes,function(dt){return dt.column}),Ie=Ct-at,Fe=wt-Ke,ft=Ie+be.right+be.left,ye=Fe+be.top+be.bottom,fe=Ie/ft,pe=Fe/ye;return at=at*fe+be.left,Ct=be.right==0?Ct:Ct*fe,Ke=Ke*pe+be.top,wt=wt*pe,Re.nodes.forEach(function(dt){dt.x0=at+dt.column*((Ct-at-Mt)/Oe),dt.x1=dt.x0+Mt}),pe}function _r(Re){var be,Oe,Ie;for(be=Re.nodes,Oe=[],Ie=0;be.length;++Ie,be=Oe,Oe=[])be.forEach(function(Fe){Fe.depth=Ie,Fe.sourceLinks.forEach(function(ft){Oe.indexOf(ft.target)<0&&!ft.circular&&Oe.push(ft.target)})});for(be=Re.nodes,Oe=[],Ie=0;be.length;++Ie,be=Oe,Oe=[])be.forEach(function(Fe){Fe.height=Ie,Fe.targetLinks.forEach(function(ft){Oe.indexOf(ft.source)<0&&!ft.circular&&Oe.push(ft.source)})});Re.nodes.forEach(function(Fe){Fe.column=Math.floor(Et.call(null,Fe,Ie))})}function yr(Re,be,Oe){var Ie=r.nest().key(function(dt){return dt.column}).sortKeys(t.ascending).entries(Re.nodes).map(function(dt){return dt.values});ye(Oe),pe();for(var Fe=1,ft=be;ft>0;--ft)fe(Fe*=.99,Oe),pe();function ye(dt){if(Je){var Pt=1/0;Ie.forEach(function(Br){var Er=wt*Je/(Br.length+1);Pt=Er0))if(Br==0&&Gr==1)Rr=Er.y1-Er.y0,Er.y0=wt/2-Rr/2,Er.y1=wt/2+Rr/2;else if(Br==zt-1&&Gr==1)Rr=Er.y1-Er.y0,Er.y0=wt/2-Rr/2,Er.y1=wt/2+Rr/2;else{var pi=0,Di=t.mean(Er.sourceLinks,C),ni=t.mean(Er.targetLinks,v);Di&&ni?pi=(Di+ni)/2:pi=Di||ni;var $i=(pi-b(Er))*dt;Er.y0+=$i,Er.y1+=$i}})})}function pe(){Ie.forEach(function(dt){var Pt,zt,rr=Ke,Gr=dt.length,Br;for(dt.sort(p),Br=0;Br0&&(Pt.y0+=zt,Pt.y1+=zt),rr=Pt.y1+Bt;if(zt=rr-Bt-wt,zt>0)for(rr=Pt.y0-=zt,Pt.y1-=zt,Br=Gr-2;Br>=0;--Br)Pt=dt[Br],zt=Pt.y1+Bt-rr,zt>0&&(Pt.y0-=zt,Pt.y1-=zt),rr=Pt.y0})}}function Ut(Re){Re.nodes.forEach(function(be){be.sourceLinks.sort(d),be.targetLinks.sort(h)}),Re.nodes.forEach(function(be){var Oe=be.y0,Ie=Oe,Fe=be.y1,ft=Fe;be.sourceLinks.forEach(function(ye){ye.circular?(ye.y0=Fe-ye.width/2,Fe=Fe-ye.width):(ye.y0=Oe+ye.width/2,Oe+=ye.width)}),be.targetLinks.forEach(function(ye){ye.circular?(ye.y1=ft-ye.width/2,ft=ft-ye.width):(ye.y1=Ie+ye.width/2,Ie+=ye.width)})})}return nt}function F(at,Ke,Ct){var wt=0;if(Ct===null){for(var Mt=[],Bt=0;BtKe.source.column)}function j(at,Ke){var Ct=0;at.sourceLinks.forEach(function(Mt){Ct=Mt.circular&&!gt(Mt,Ke)?Ct+1:Ct});var wt=0;return at.targetLinks.forEach(function(Mt){wt=Mt.circular&&!gt(Mt,Ke)?wt+1:wt}),Ct+wt}function W(at){var Ke=at.source.sourceLinks,Ct=0;Ke.forEach(function(Bt){Ct=Bt.circular?Ct+1:Ct});var wt=at.target.targetLinks,Mt=0;return wt.forEach(function(Bt){Mt=Bt.circular?Mt+1:Mt}),!(Ct>1||Mt>1)}function N(at,Ke,Ct){return at.sort(ae),at.forEach(function(wt,Mt){var Bt=0;if(gt(wt,Ct)&&W(wt))wt.circularPathData.verticalBuffer=Bt+wt.width/2;else{var Zt=0;for(Zt;ZtBt?Et:Bt}wt.circularPathData.verticalBuffer=Bt+wt.width/2}}),at}function H(at,Ke,Ct,wt){var Mt=5,Bt=t.min(at.links,function(Ae){return Ae.source.y0});at.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=at.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ke,wt);var Et=at.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ke,wt),at.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=Mt,Ae.circularPathData.rightNodeBuffer=Mt,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,gt(Ae,wt)&&W(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+M+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-M-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var ot=Ae.source.column,At=Ae.circularLinkType,vt=at.links.filter(function(nt){return nt.source.column==ot&&nt.circularLinkType==At});Ae.circularLinkType=="bottom"?vt.sort(ze):vt.sort(ge);var Je=0;vt.forEach(function(nt,tt){nt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+Je,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+tt*Ke+Je),Je=Je+nt.width}),ot=Ae.target.column,vt=at.links.filter(function(nt){return nt.target.column==ot&&nt.circularLinkType==At}),Ae.circularLinkType=="bottom"?vt.sort(de):vt.sort(Le),Je=0,vt.forEach(function(nt,tt){nt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+Je,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+tt*Ke+Je),Je=Je+nt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(Ct,Ae.source.y1,Ae.target.y1)+M+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Bt-M-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 He=n.linkHorizontal().source(function(nt){var tt=nt.source.x0+(nt.source.x1-nt.source.x0),It=nt.y0;return[tt,It]}).target(function(nt){var tt=nt.target.x0,It=nt.y1;return[tt,It]});Ae.path=He(Ae)}})}function re(at){var Ke="";return at.circularLinkType=="top"?Ke="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:Ke="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,Ke}function ae(at,Ke){return te(at)==te(Ke)?at.circularLinkType=="bottom"?ze(at,Ke):ge(at,Ke):te(Ke)-te(at)}function ge(at,Ke){return at.y0-Ke.y0}function ze(at,Ke){return Ke.y0-at.y0}function Le(at,Ke){return at.y1-Ke.y1}function de(at,Ke){return Ke.y1-at.y1}function te(at){return at.target.column-at.source.column}function ke(at){return at.target.x0-at.source.x1}function Ee(at,Ke){var Ct=U(at),wt=ke(Ke)/Math.tan(Ct),Mt=Qe(at)=="up"?at.y1+wt:at.y1-wt;return Mt}function Se(at,Ke){var Ct=U(at),wt=ke(Ke)/Math.tan(Ct),Mt=Qe(at)=="up"?at.y1-wt:at.y1+wt;return Mt}function Ge(at,Ke,Ct,wt){at.links.forEach(function(Mt){if(!Mt.circular&&Mt.target.column-Mt.source.column>1){var Bt=Mt.source.column+1,Zt=Mt.target.column-1,Et=1,Ae=Zt-Bt+1;for(Et=1;Bt<=Zt;Bt++,Et++)at.nodes.forEach(function(ot){if(ot.column==Bt){var At=Et/(Ae+1),vt=Math.pow(1-At,3),Je=3*At*Math.pow(1-At,2),He=3*Math.pow(At,2)*(1-At),nt=Math.pow(At,3),tt=vt*Mt.y0+Je*Mt.y0+He*Mt.y1+nt*Mt.y1,It=tt-Mt.width/2,Yt=tt+Mt.width/2,cr;It>ot.y0&&Itot.y0&&Ytot.y1&&xe(_r,cr,Ke,Ct)})):Itot.y1&&(cr=Yt-ot.y0+10,ot=xe(ot,cr,Ke,Ct),at.nodes.forEach(function(_r){k(_r,wt)==k(ot,wt)||_r.column!=ot.column||_r.y0ot.y1&&xe(_r,cr,Ke,Ct)}))}})}})}function De(at,Ke){return at.y0>Ke.y0&&at.y0Ke.y0&&at.y1Ke.y1}function xe(at,Ke,Ct,wt){return at.y0+Ke>=Ct&&at.y1+Ke<=wt&&(at.y0=at.y0+Ke,at.y1=at.y1+Ke,at.targetLinks.forEach(function(Mt){Mt.y1=Mt.y1+Ke}),at.sourceLinks.forEach(function(Mt){Mt.y0=Mt.y0+Ke})),at}function Ne(at,Ke,Ct,wt){at.nodes.forEach(function(Mt){wt&&Mt.y+(Mt.y1-Mt.y0)>Ke&&(Mt.y=Mt.y-(Mt.y+(Mt.y1-Mt.y0)-Ke));var Bt=at.links.filter(function(Ae){return k(Ae.source,Ct)==k(Mt,Ct)}),Zt=Bt.length;Zt>1&&Bt.sort(function(Ae,ot){if(!Ae.circular&&!ot.circular){if(Ae.target.column==ot.target.column)return Ae.y1-ot.y1;if(je(Ae,ot)){if(Ae.target.column>ot.target.column){var At=Se(ot,Ae);return Ae.y1-At}if(ot.target.column>Ae.target.column){var vt=Se(Ae,ot);return vt-ot.y1}}else return Ae.y1-ot.y1}if(Ae.circular&&!ot.circular)return Ae.circularLinkType=="top"?-1:1;if(ot.circular&&!Ae.circular)return ot.circularLinkType=="top"?1:-1;if(Ae.circular&&ot.circular)return Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===ot.target.column?Ae.target.y1-ot.target.y1:ot.target.column-Ae.target.column:Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===ot.target.column?ot.target.y1-Ae.target.y1:Ae.target.column-ot.target.column:Ae.circularLinkType=="top"?-1:1});var Et=Mt.y0;Bt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Bt.forEach(function(Ae,ot){if(Ae.circularLinkType=="bottom"){var At=ot+1,vt=0;for(At;At1&&Mt.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(je(Et,Ae)){if(Ae.source.column0?"up":"down"}function gt(at,Ke){return k(at.source,Ke)==k(at.target,Ke)}function qt(at,Ke,Ct){var wt=at.nodes,Mt=at.links,Bt=!1,Zt=!1;if(Mt.forEach(function(Je){Je.circularLinkType=="top"?Bt=!0:Je.circularLinkType=="bottom"&&(Zt=!0)}),Bt==!1||Zt==!1){var Et=t.min(wt,function(Je){return Je.y0}),Ae=t.max(wt,function(Je){return Je.y1}),ot=Ae-Et,At=Ct-Ke,vt=At/ot;wt.forEach(function(Je){var He=(Je.y1-Je.y0)*vt;Je.y0=(Je.y0-Et)*vt,Je.y1=Je.y0+He}),Mt.forEach(function(Je){Je.y0=(Je.y0-Et)*vt,Je.y1=(Je.y1-Et)*vt,Je.width=Je.width*vt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var f$=Te((e3r,OXe)=>{"use strict";OXe.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 JXe=Te((t3r,KXe)=>{"use strict";var qXe=kXe(),oKt=(H2(),vb(G2)).interpolateNumber,BS=Jl(),oC=IXe(),sKt=BXe(),dc=f$(),OS=hd(),mw=jl(),lKt=Mu(),w1=ei(),d$=w1.strTranslate,uKt=w1.strRotate,p$=ig(),sC=p$.keyFun,UB=p$.repeat,WXe=p$.unwrap,NXe=Wf(),fKt=$l(),jXe=Nh(),cKt=jXe.CAP_SHIFT,hKt=jXe.LINE_SPACING,dKt=3;function pKt(e,t,r){var n=WXe(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,_;p?_=sKt.sankeyCircular().circularLinkGap(0):_=oC.sankey(),_.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=_();_.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(ge,ze){return{x0:ge.x0,index:ze}}).sort(function(ge,ze){return ge.x0-ze.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 v$(){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=oKt(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,_="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+_+v+b+"Z"}return t}function yKt(e,t){var r=OS(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:mw.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 h$(e){e.attr("transform",function(t){return d$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function gKt(e){e.call(h$)}function XXe(e,t){e.call(gKt),t.attr("d",v$())}function UXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function c$(e){return e.link.width>1||e.linkLineWidth>0}function VXe(e){var t=d$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function GXe(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 _Kt(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,HXe(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),bKt(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),HXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),XXe(e.filter(YXe(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,ZXe(r,i)}})}function wKt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function ZXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zp=Jl(),y$=ei(),VB=y$.numberFormat,MKt=JXe(),qS=Xc(),EKt=jl(),Rx=f$().cn,lC=y$._;function $Xe(e){return e!==""}function NS(e,t){return e.filter(function(r){return r.key===t.traceId})}function QXe(e,t){Zp.select(e).select("path").style("fill-opacity",t),Zp.select(e).select("rect").style("fill-opacity",t)}function eZe(e){Zp.select(e).select("text.name").style("fill","black")}function tZe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function rZe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function iZe(e,t,r){t&&r&&NS(r,t).selectAll("."+Rx.sankeyLink).filter(tZe(t)).call(nZe.bind(0,t,r,!1))}function m$(e,t,r){t&&r&&NS(r,t).selectAll("."+Rx.sankeyLink).filter(tZe(t)).call(aZe.bind(0,t,r,!1))}function nZe(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!==""&&NS(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&&NS(t,e).selectAll("."+Rx.sankeyNode).filter(rZe(e)).call(iZe)}function aZe(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!==""&&NS(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&&NS(t,e).selectAll(Rx.sankeyNode).filter(rZe(e)).call(m$)}function rh(e,t){var r=e.hoverlabel||{},n=y$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}oZe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:rh(k,"bgcolor")||EKt.addOpacity(F.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});QXe(W,.85),eZe(W)}}},T=function(L,x,k){t._fullLayout.hovermode!==!1&&(Zp.select(L).call(m$,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zp.event,points:[x.node]})),qS.loneUnhover(n._hoverlayer.node()))};MKt(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:_,unhover:b,select:u},nodeEvents:{hover:C,follow:E,unhover:T,select:v}})}});var sZe=Te(yw=>{"use strict";var kKt=Sc().overrideAll,CKt=Rd().getModuleCalcData,LKt=g$(),PKt=j1(),zKt=Em(),IKt=xp(),RKt=oh().prepSelect,_$=ei(),DKt=$l(),GB="sankey";yw.name=GB;yw.baseLayoutAttrOverrides=kKt({hoverlabel:PKt.hoverlabel},"plot","nested");yw.plot=function(e){var t=CKt(e.calcdata,GB)[0];LKt(e,t),yw.updateFx(e)};yw.clean=function(e,t,r,n){var i=n._has&&n._has(GB),a=t._has&&t._has(GB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};yw.updateFx=function(e){for(var t=0;t{"use strict";lZe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";fZe.exports={attributes:s$(),supplyDefaults:pXe(),calc:_Xe(),plot:g$(),moduleType:"trace",name:"sankey",basePlotModule:sZe(),selectPoints:uZe(),categories:["noOpacity"],meta:{}}});var dZe=Te((o3r,hZe)=>{"use strict";hZe.exports=cZe()});var vZe=Te(US=>{"use strict";var pZe=Cc();US.name="indicator";US.plot=function(e,t,r,n){pZe.plotBasePlot(US.name,e,t,r,n)};US.clean=function(e,t,r,n){pZe.cleanBasePlot(US.name,e,t,r,n)}});var b$=Te((l3r,bZe)=>{"use strict";var Dx=Su().extendFlat,yZe=Su().extendDeep,BKt=Sc().overrideAll,gZe=gc(),_Ze=Oh(),OKt=zc().attributes,uh=Dd(),qKt=Lf().templatedArray,HB=JA(),mZe=jc().descriptionOnlyNumbers,x$=gZe({editType:"plot",colorEditType:"plot"}),uC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:_Ze.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"},xZe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},NKt=qKt("step",yZe({},uC,{range:xZe}));bZe.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:OKt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Dx({},x$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:mZe("value")},font:Dx({},x$,{}),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:mZe("value")},increasing:{symbol:{valType:"string",dflt:HB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:HB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:HB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:HB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Dx({},x$,{}),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:yZe({},uC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:_Ze.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:BKt({range:xZe,visible:Dx({},uh.visible,{dflt:!0}),tickmode:uh.minor.tickmode,nticks:uh.nticks,tick0:uh.tick0,dtick:uh.dtick,tickvals:uh.tickvals,ticktext:uh.ticktext,ticks:Dx({},uh.ticks,{dflt:"outside"}),ticklen:uh.ticklen,tickwidth:uh.tickwidth,tickcolor:uh.tickcolor,ticklabelstep:uh.ticklabelstep,showticklabels:uh.showticklabels,labelalias:uh.labelalias,tickfont:gZe({}),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:NKt,threshold:{line:{color:Dx({},uC.line.color,{}),width:Dx({},uC.line.width,{dflt:1}),editType:"plot"},thickness:Dx({},uC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var w$=Te((u3r,wZe)=>{"use strict";wZe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var SZe=Te((f3r,TZe)=>{"use strict";var sg=ei(),jB=b$(),UKt=zc().defaults,AZe=Lf(),VKt=Kd(),WB=w$(),GKt=Lb(),HKt=D3(),WKt=s_(),jKt=l_();function XKt(e,t,r,n){function i(x,k){return sg.coerce(e,t,jB,x,k)}UKt(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=sg.extendFlat({},n.font);u.size=void 0,sg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=WB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=sg.extendFlat({},n.font);f.size=void 0,sg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||WB.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=sg.extendFlat({},n.font);c.size=.25*(s||l||WB.defaultNumberFontSize),sg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,_;function b(x,k){return sg.coerce(h,d,jB.gauge,x,k)}function v(x,k){return sg.coerce(p,_,jB.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=AZe.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 T=WB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),VKt(h,d,{name:"steps",handleItemDefaults:ZKt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),_=AZe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};GKt(p,_,v,"linear"),jKt(p,_,v,"linear",L),WKt(p,_,v,"linear",L),HKt(p,_,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function ZKt(e,t){function r(n,i){return sg.coerce(e,t,jB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}TZe.exports={supplyDefaults:XKt}});var EZe=Te((c3r,MZe)=>{"use strict";function YKt(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}MZe.exports={calc:YKt}});var IZe=Te((h3r,zZe)=>{"use strict";var ww=Jl(),KKt=(H2(),vb(G2)).interpolate,kZe=(H2(),vb(G2)).interpolateNumber,Fx=ei(),JKt=Fx.strScale,cC=Fx.strTranslate,$Kt=Fx.rad2deg,QKt=Nh().MID_SHIFT,bw=Mu(),gw=w$(),ZB=Wf(),up=wu(),eJt=hE(),tJt=dI(),rJt=Dd(),VS=jl(),A$={left:"start",center:"middle",right:"end"},_w={left:0,center:.5,right:1},CZe=/[yzafpnµmkMGTPEZY]/;function hC(e){return e&&e.duration>0}zZe.exports=function(t,r,n,i){var a=t._fullLayout,o;hC(n)&&i&&(o=i()),Fx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=ww.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,_={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=_.l+_.w/2,v=_.t+_.h/2,C=Math.min(_.w/2,_.h),E=gw.innerRadius*C,T,L,x,k=l.align||"center";if(L=v,!c)T=_.l+_w[k]*_.w,x=function(W){return LZe(W,_.w,_.h)};else if(h&&(T=b,L=v+C/2,x=function(W){return sJt(W,.9*E)}),d){var M=gw.bulletPadding,m=1-gw.bulletNumberDomainSize+M;T=_.l+(m+(1-m)*_w[k])*_.w,x=function(W){return LZe(W,(gw.bulletNumberDomainSize-M)*_.w,_.h)}}aJt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var F=f.selectAll("g.angular").data(h?s:[]);F.exit().remove();var B=f.selectAll("g.angularaxis").data(h?s:[]);B.exit().remove(),h&&nJt(t,f,s,{radius:C,innerRadius:E,gauge:F,layer:B,size:_,gaugeBg:P,gaugeOutline:A,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&&iJt(t,f,s,{gauge:U,layer:G,size:_,gaugeBg:P,gaugeOutline:A,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?A$.right:A$[l.title.align]}).text(l.title.text).call(bw.font,l.title.font).call(ZB.convertToTspans,t),j.attr("transform",function(){var W=_.l+_.w*_w[l.title.align],N,H=gw.titlePadding,re=bw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=bw.bBox(B.node());N=ae.top-H-re.bottom}else N=_.t+_.h/2-C/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,W=_.l-gw.bulletPadding*_.w)}else N=l._numbersTop-H-re.bottom;return cC(W,N)})})};function iJt(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,_,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,E=i.gauge.bar.thickness*C,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-gw.bulletNumberDomainSize:1);d=fC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),_=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:_}),up.drawLabels(e,d,{vals:p,layer:o,transFn:_,labelFns:up.makeLabelFns(d,v)}));function x(B){B.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),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(xw),M.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(xw),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}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.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(VS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var F=a.selectAll("g.gauge-outline").data([u]);F.enter().append("g").classed("gauge-outline",!0).append("rect"),F.select("rect").call(x).call(xw),F.exit().remove()}function nJt(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,_=Math.PI/2;function b(ge){var ze=i.gauge.axis.range[0],Le=i.gauge.axis.range[1],de=(ge-ze)/(Le-ze)*Math.PI-_;return de<-_?-_:de>_?_:de}function v(ge){return ww.svg.arc().innerRadius((s+o)/2-ge/2*(o-s)).outerRadius((s+o)/2+ge/2*(o-s)).startAngle(-_)}function C(ge){ge.attr("d",function(ze){return v(ze.thickness).startAngle(b(ze.range[0])).endAngle(b(ze.range[1]))()})}var E,T,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(),E=fC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(ge){return(E.range[0]-ge.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},m=up.makeLabelFns(E,0),P=m.labelStandoff;M.xFn=function(ge){var ze=k(ge);return Math.cos(ze)*P},M.yFn=function(ge){var ze=k(ge),Le=Math.sin(ze)>0?.2:1;return-Math.sin(ze)*(P+ge.fontSize*Le)+Math.abs(Math.cos(ze))*(ge.fontSize*QKt)},M.anchorFn=function(ge){var ze=k(ge),Le=Math.cos(ze);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},M.heightFn=function(ge,ze,Le){var de=k(ge);return-.5*(1+Math.sin(de))*Le};var A=function(ge){return cC(f[0]+o*Math.cos(ge),f[1]-o*Math.sin(ge))};L=function(ge){return A(k(ge))};var F=function(ge){var ze=k(ge);return A(ze)+"rotate("+-$Kt(ze)+")"};if(T=up.calcTicks(E),x=up.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var B=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+x*B+",0h"+x*E.ticklen,transFn:F}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}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(xw),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",oJt(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(xw),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(xw),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(xw),ae.exit().remove()}function aJt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=A$[s],l=n.transitionOpts,f=n.onComplete,c=Fx.ensureSingle(t,"g","numbers"),h,d,p,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=c.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,F,B,U){if(A.match("s")&&B>=0!=U>=0&&!F(B).slice(-1).match(CZe)&&!F(U).slice(-1).match(CZe)){var G=A.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?up.tickText(j,W).text:F(W)}}else return F}function C(){var A=fC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var F=function(W){return up.tickText(A,W).text},B=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var W=typeof r[0].y=="number"?U+F(r[0].y)+B:"-";G.text(W).call(bw.font,i.number.font).call(ZB.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=ww.select(this),N=kZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=v(i.number.valueformat,F,r[0].lastY,r[0].y);return function(re){W.text(U+H(N(re))+B)}}):j(),h=PZe(U+F(r[0].y)+B,i.number.font,u,e),G}function E(){var A=fC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var F=function(re){return up.tickText(A,re).text},B=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)+B},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(bw.font,i.delta.font).call(VS.fill,W({delta:i._deltaLastValue}));function H(){N.text(j(G(r[0]),F)).call(VS.fill,W(r[0])).call(ZB.convertToTspans,e)}return hC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=ww.select(this),ae=G(r[0]),ge=i._deltaLastValue,ze=v(i.delta.valueformat,F,ge,ae),Le=kZe(ge,ae);return i._deltaLastValue=ae,function(de){re.text(j(Le(de),ze)),re.call(VS.fill,W({delta:Le(de)}))}}).each("end",function(){H(),f&&f()}).each("interrupt",function(){H(),f&&f()}):H(),d=PZe(j(G(r[0]),F),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(C(),T+=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],M,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=XB(i,"deltaPos",0,-1*(h.width*_w[i.align]+d.width*(1-_w[i.align])+P),T,Math.min),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(M=XB(i,"deltaPos",0,h.width*(1-_w[i.align])+d.width*_w[i.align]+P,T,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+M,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(M=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"&&(M=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:M,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var F=XB(i,"numbersScale",1,A[0],T,Math.min),B;i._scaleNumbers||(F=1),i._isAngular?B=o-F*p.bottom:B=o-F*(p.top+p.bottom)/2,i._numbersTop=F*p.top+B;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-F*U;return G=XB(i,"numbersTranslate",0,G,T,Math.max),cC(G,B)+JKt(F)})}function xw(e){e.each(function(t){VS.stroke(ww.select(this),t.line.color)}).each(function(t){VS.fill(ww.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function oJt(e,t,r){return function(){var n=KKt(t,r);return function(i){return e.endAngle(n(i))()}}}function fC(e,t,r){var n=e._fullLayout,i=Fx.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 Fx.coerce(i,a,rJt,u,l)}return eJt(i,a,s,o,n),tJt(i,a,s,o),a}function LZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function sJt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function PZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=ww.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(ZB.convertToTspans,n).call(bw.font,t),bw.bBox(a.node())}function XB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Fx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var DZe=Te((d3r,RZe)=>{"use strict";RZe.exports={moduleType:"trace",name:"indicator",basePlotModule:vZe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:b$(),supplyDefaults:SZe().supplyDefaults,calc:EZe().calc,plot:IZe(),meta:{}}});var BZe=Te((p3r,FZe)=>{"use strict";FZe.exports=DZe()});var T$=Te((m3r,UZe)=>{"use strict";var OZe=Jb(),YB=Su().extendFlat,lJt=Sc().overrideAll,qZe=gc(),uJt=zc().attributes,NZe=jc().descriptionOnlyNumbers,v3r=UZe.exports=lJt({domain:uJt({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:NZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:YB({},OZe.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:YB({},qZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:NZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:YB({},OZe.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:YB({},qZe({arrayOk:!0}))}},"calc","from-root")});var GZe=Te((y3r,VZe)=>{"use strict";var S$=ei(),fJt=T$(),cJt=zc().defaults;function hJt(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 dJt=ig().wrap;HZe.exports=function(){return dJt({})}});var M$=Te((_3r,jZe)=>{"use strict";jZe.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 tYe=Te((x3r,eYe)=>{"use strict";var XZe=M$(),k$=Su().extendFlat,pJt=ku(),vJt=mp().isTypedArray,KB=mp().isArrayOrTypedArray;eYe.exports=function(t,r){var n=E$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=E$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=E$(a));var o=a.concat(i(n).map(function(){return QZe((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}):[XZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(ZZe,0),d=l-h,p=d+XZe.uplift,_=JZe(c,p),b=JZe(f,h),v=KZe(b,[]),C=KZe(_,v),E={},T=r._fullInput.columnorder;KB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=KB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return pJt(A)?Number(A):1}),x=L.reduce(ZZe,0);L=L.map(function(m){return m/x*u});var k=Math.max(C$(r.header.line.width),C$(r.cells.line.width)),M={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:T,groupHeight:l,rowBlocks:C,headerRowBlocks:v,scrollY:0,cells:k$({},r.cells,{values:n}),headerCells:k$({},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 A=E[m];E[m]=(A||0)+1;var F=m+"__"+E[m];return{key:F,label:m,specIndex:P,xIndex:T[P],xScale:YZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(m){m.calcdata=M,m.x=YZe(m)}),M};function C$(e){if(KB(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=$Ze(),i+=a,s=l+1,a=0);return r}function $Ze(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var rYe=Te(L$=>{"use strict";var JB=Su().extendFlat;L$.splitToPanels=function(e){var t=[0,0],r=JB({},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:JB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=JB({},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=JB({},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]};L$.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 N$=Te((w3r,dYe)=>{"use strict";var uu=M$(),Gc=Jl(),P$=ei(),yJt=P$.numberFormat,pc=ig(),z$=Mu(),gJt=Wf(),_Jt=ei().raiseToTop,lm=ei().strTranslate,xJt=ei().cancelTransition,bJt=tYe(),uYe=rYe(),iYe=jl();dYe.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),T=E.trace;return bJt(t,T)}),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(dC,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+Gc.event.deltaY,T=QB(t,a,null,E)(C);T||(Gc.event.stopPropagation(),Gc.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){z$.setClipUrl(Gc.select(this),nYe(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(Gc.behavior.drag().origin(function(C){var E=Gc.select(this);return sYe(E,C,-uu.uplift),_Jt(this),C.calcdata.columnDragInProgress=!0,dC(a.filter(function(T){return C.calcdata.key===T.key}),t),C}).on("drag",function(C){var E=Gc.select(this),T=function(k){return(C===k?Gc.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-uu.overdrag,Math.min(C.calcdata.width+uu.overdrag-C.columnWidth,Gc.event.x));var L=fYe(l).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,M){return T(k)-T(M)});x.forEach(function(k,M){k.xIndex=M,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=Gc.select(this),T=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,sYe(E,C,0),PJt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(C){z$.setClipUrl(Gc.select(this),aYe(t,C),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(uYe.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(zJt),h=f.filter(B$);n&&h.call(Gc.behavior.drag().origin(function(C){return Gc.event.stopPropagation(),C}).on("drag",QB(t,a,-1)).on("dragend",function(){})),I$(t,a,c,f),I$(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 nYe(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 _=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);_.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 aYe(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*$B(C)}).attr("height",function(C){return C.calcdata.height+2*$B(C)+uu.uplift}).attr("x",function(C){return-$B(C)}).attr("y",function(C){return-$B(C)}),O$(null,h,a)};function $B(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function nYe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function aYe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function fYe(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 D$(f,f.length-1)+(f.length?e9(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=Gc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Gc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||QB(t,e,null,p(d-h.barLength/2))(l)}).call(Gc.behavior.drag().origin(function(l){return Gc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",QB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function I$(e,t,r,n){var i=wJt(r),a=AJt(i);EJt(a);var o=TJt(a);CJt(o);var s=MJt(a),u=SJt(s);kJt(u),cYe(u,t,n,e),q$(a)}function wJt(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 AJt(e){var t=e.selectAll("."+uu.cn.columnCell).data(uYe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function TJt(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 SJt(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(){Gc.event.stopPropagation()}),t}function MJt(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 EJt(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 kJt(e){e.each(function(t){z$.font(Gc.select(this),t.font)})}function CJt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Gc.select(this);iYe.stroke(r,Yp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),iYe.fill(r,Yp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function cYe(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=LJt(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,_=h+(p?yJt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=oYe(_)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?oYe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var C=uu.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=u}return n}function O$(e,t,r){var n=fYe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=D$(i,i.length),s=n.calcdata.groupHeight-R$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=IJt(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=D$(f.rowBlocks,f.page)-f.scrollY;return lm(0,c)}),e&&(lYe(e,r,t,l,n.prevPages,n,0),lYe(e,r,t,l,n.prevPages,n,1),dC(r,e))}}function QB(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*Gc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(B$);return O$(e,f,s),o.scrollY===l}}function lYe(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]});I$(e,t,u,r),i[o]=n[o]}))}function RJt(e,t,r,n){return function(){var a=Gc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,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(),cYe(a.select("."+uu.cn.cellText),r,e,n),Gc.select(t.parentNode.parentNode).call(q$)}}function DJt(e,t,r,n,i){return function(){if(!i.settledY){var o=Gc.select(t.parentNode),s=F$(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(q$),O$(null,e.filter(B$),0),dC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,_=p.getBoundingClientRect(),b=Gc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),C=b.top-_.top+(v?v.matrix.f:uu.cellPad);return lm(hYe(i,Gc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function hYe(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 q$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+e9(s,1/0)},0),n=F$(t),i=e9(n,t.key),a=i+r;return lm(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return BJt(F$(t),t.key).rowHeight})}function D$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=FJt(e[n]);return r}function e9(e,t){for(var r=0,n=0;n{"use strict";var OJt=Rd().getModuleCalcData,qJt=N$(),t9="table";r9.name=t9;r9.plot=function(e){var t=OJt(e.calcdata,t9)[0];t.length&&qJt(e,t)};r9.clean=function(e,t,r,n){var i=n._has&&n._has(t9),a=t._has&&t._has(t9);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var mYe=Te((T3r,vYe)=>{"use strict";vYe.exports={attributes:T$(),supplyDefaults:GZe(),calc:WZe(),plot:N$(),moduleType:"trace",name:"table",basePlotModule:pYe(),categories:["noOpacity"],meta:{}}});var gYe=Te((S3r,yYe)=>{"use strict";yYe.exports=mYe()});var AYe=Te((M3r,wYe)=>{"use strict";var _Ye=gc(),xYe=Oh(),U$=Dd(),NJt=jc().descriptionWithDates,UJt=Sc().overrideAll,bYe=Id().dash,V$=Su().extendFlat;wYe.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:_Ye({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:U$.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:V$({},U$.labelalias,{editType:"calc"}),tickfont:_Ye({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:NJt("tick label")},tickformatstops:UJt(U$.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:xYe.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:V$({},bYe,{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:V$({},bYe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:xYe.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 n9=Te((E3r,MYe)=>{"use strict";var VJt=gc(),TYe=AYe(),SYe=Oh(),i9=VJt({editType:"calc"}),GJt=Zc().zorder;i9.family.dflt='"Open Sans", verdana, arial, sans-serif';i9.size.dflt=12;i9.color.dflt=SYe.defaultLine;MYe.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:TYe,baxis:TYe,font:i9,color:{valType:"color",dflt:SYe.defaultLine,editType:"plot"},zorder:GJt}});var CYe=Te((k3r,kYe)=>{"use strict";var EYe=ei().isArray1D;kYe.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||EYe(i))&&(!s||EYe(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 zYe=Te((C3r,PYe)=>{"use strict";var HJt=n9(),LYe=jl().addOpacity,WJt=$l(),pC=ei(),jJt=Lb(),XJt=s_(),ZJt=l_(),YJt=fI(),KJt=xy(),JJt=V3();PYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=HJt[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&&$Jt(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=WJt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}KJt(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"),jJt(t,r,s,l),ZJt(t,r,s,l,n),XJt(t,r,s,l,n),YJt(t,r,s,{data:n.data,dataAttr:i});var _=u("gridcolor",LYe(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),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=u("endlinecolor",c),k=u("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",LYe(_,.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 $Jt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=JJt(t,a,{autotypenumbers:e.autotypenumbers})}}});var RYe=Te((L3r,IYe)=>{"use strict";var QJt=zYe(),e$t=Lf();IYe.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")),t$t(t,r,n,a)};function t$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};QJt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var BYe=Te((P3r,FYe)=>{"use strict";var DYe=ei(),r$t=CYe(),i$t=RYe(),n$t=n9(),a$t=Oh();FYe.exports=function(t,r,n,i){function a(u,l){return DYe.coerce(t,r,n$t,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",a$t.defaultLine);if(DYe.coerceFont(a,"font",i.font),a("carpet"),i$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=r$t(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var G$=Te((z3r,OYe)=>{"use strict";var o$t=ei().isArrayOrTypedArray;OYe.exports=function(t,r,n){var i;for(o$t(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";qYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";NYe.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 YYe=Te((D3r,ZYe)=>{"use strict";var l9=Jl(),a9=Mu(),o9=G$(),HYe=H$(),vC=UYe(),W$=Wf(),Uv=ei(),WYe=Uv.strRotate,s9=Uv.strTranslate,jYe=Nh();ZYe.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=l9.select(this),h=f[0],d=h.trace,p=d.aaxis,_=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),GS(o,s,v,p,"a",p._gridlines,!0,a),GS(o,s,v,_,"b",_._gridlines,!0,a),GS(o,s,b,p,"a",p._minorgridlines,!0,a),GS(o,s,b,_,"b",_._minorgridlines,!0,a),GS(o,s,C,p,"a-boundary",p._boundarylines,a),GS(o,s,C,_,"b-boundary",_._boundarylines,a);var T=VYe(t,o,s,d,h,E,p._labels,"a-label"),L=VYe(t,o,s,d,h,E,_._labels,"b-label");l$t(t,E,d,h,o,s,T,L),s$t(d,h,l,o,s)})};function s$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(a9.font,c.font).text(c.text).call(W$.convertToTspans,e),v=a9.bBox(this);b.attr("transform",s9(d.p[0],d.p[1])+WYe(d.angle)+s9(c.axis.labelpadding*_,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function l$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),_=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))),GYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+_),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))),GYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var XYe=jYe.LINE_SPACING,u$t=(1-jYe.MID_SHIFT)/XYe+1;function GYe(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 _=o.title.font.size;d+=_+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,C=v>90&&v<270,E=l9.select(this);E.text(o.title.text).call(W$.convertToTspans,e),C&&(d=(-W$.lineCount(E)+u$t)*XYe*_-d),E.attr("transform",s9(p.p[0],p.p[1])+WYe(p.angle)+s9(0,d)).attr("text-anchor","middle").call(a9.font,o.title.font)}),h.exit().remove()}});var JYe=Te((F3r,KYe)=>{"use strict";var u9=ei().isArrayOrTypedArray;KYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=u9(e)?e.length:e,c=u9(t)?t.length:t,h=u9(e)?e:null,d=u9(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,_=1/0,b=-1/0;for(i=0;i{"use strict";var $Ye=ei().isArrayOrTypedArray;eKe.exports=function(e){return QYe(e,0)};function QYe(e,t){if(!$Ye(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var f$t=wu(),Bx=Su().extendFlat;rKe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v,C=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,F=m.length,B=t._a.length,U=t._b.length;f$t.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var H,re,ae,ge,ze,Le,de,te,ke,Ee,Se,Ge,De=[],xe=[],Ne={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),ge=re-ae,Ne.length=U,Ne.crossLength=B,Ne.xy=function(ce){return t.evalxy([],ce,re)},Ne.dxy=function(ce,je){return t.dxydi([],ce,ae,je,ge)},H=0;H0&&(ke=t.dxydi([],H-1,ae,0,ge),De.push(ze[0]+ke[0]/3),xe.push(ze[1]+ke[1]/3),Ee=t.dxydi([],H-1,ae,1,ge),De.push(te[0]-Ee[0]/3),xe.push(te[1]-Ee[1]/3)),De.push(te[0]),xe.push(te[1]),ze=te;else for(H=t.a2i(N),Le=Math.floor(Math.max(0,Math.min(B-2,H))),de=H-Le,Ne.length=B,Ne.crossLength=U,Ne.xy=function(ce){return t.evalxy([],H,ce)},Ne.dxy=function(ce,je){return t.dxydj([],Le,ce,de,je)},re=0;re0&&(Se=t.dxydj([],Le,re-1,de,0),De.push(ze[0]+Se[0]/3),xe.push(ze[1]+Se[1]/3),Ge=t.dxydj([],Le,re-1,de,1),De.push(te[0]-Ge[0]/3),xe.push(te[1]-Ge[1]/3)),De.push(te[0]),xe.push(te[1]),ze=te;return Ne.axisLetter=r,Ne.axis=E,Ne.crossAxis=M,Ne.value=N,Ne.constvar=n,Ne.index=c,Ne.x=De,Ne.y=xe,Ne.smoothing=M.smoothing,Ne}function W(N){var H,re,ae,ge,ze,Le=[],de=[],te={};if(te.length=C.length,te.crossLength=k.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),ze=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,ze)},H=0;HC.length-1)&&T.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(_=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,T.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 sKe=Te((q3r,oKe)=>{"use strict";var nKe=wu(),aKe=Su().extendFlat;oKe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";lKe.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 cKe=Te((U3r,fKe)=>{"use strict";var c$t=ei();fKe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,ge){var ze=0,Le,de=0;return ae>0&&(Le=t[ge][ae-1])!==void 0&&(de++,ze+=Le),ae0&&(Le=t[ge-1][ae])!==void 0&&(de++,ze+=Le),ge0&&a0&&iM);return c$t.log("Smoother converged to",m,"after",A,"iterations"),t}});var dKe=Te((V3r,hKe)=>{"use strict";hKe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var mKe=Te((G3r,vKe)=>{"use strict";var pKe=.5;vKe.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,pKe/2),f=Math.pow(s*s+u*u,pKe/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 gKe=Te((H3r,yKe)=>{"use strict";var j$=mKe(),f9=ei().ensureArray;function HS(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]}yKe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,_,b,v=n[0].length,C=n.length,E=a?3*v-2:v,T=o?3*C-2:C;for(t=f9(t,T),r=f9(r,T),l=0;l{"use strict";_Ke.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,_,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 T=C*C,L=T*C,x=1-C,k=x*x,M=k*x,m=E*E,P=m*E,A=1-E,F=A*A,B=F*A;for(_=0;_{"use strict";bKe.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,_=1-o,b=_*_,v=_*o*2,C=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,x=s*s,k=x*s,M=1-s,m=M*M,P=m*M;for(d=0;d{"use strict";AKe.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,_=p*o,b=1-o,v=b*b,C=v*b,E=s*s,T=1-s,L=T*T,x=T*s*2,k=-3*L,M=3*(L-x),m=3*(x-E),P=3*E;for(d=0;d{"use strict";var SKe=dKe(),MKe=VL().findBin,h$t=gKe(),d$t=xKe(),p$t=wKe(),v$t=TKe();EKe.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*SKe.RELATIVE_CULL_TOLERANCE,_=d*SKe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=_,c+=_,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,C=h$t(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=d$t([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=p$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(MKe(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(MKe(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),T=t.b2j(v),L=t.evalxy([],E,T);if(C){var x=0,k=0,M=[],m,P,A,F;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]?(A=a-2,F=1,k=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),F=T-A),x&&(t.dxydi(M,m,A,P,F),L[0]+=M[0]*x,L[1]+=M[1]*x),k&&(t.dxydj(M,m,A,P,F),L[0]+=M[0]*k,L[1]+=M[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 T=t.dxydi(null,b,v,C,E),L=t.dadi(b,C);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,C,E){var T=t.dxydj(null,b,v,C,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,C){var E=h*(C||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,C){var E=d*(C||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var FKe=Te((Y3r,DKe)=>{"use strict";var c9=wu(),CKe=ei().isArray1D,m$t=JYe(),LKe=tKe(),PKe=iKe(),zKe=sKe(),y$t=uKe(),IKe=uR(),RKe=cKe(),g$t=sR(),_$t=kKe();DKe.exports=function(t,r){var n=c9.getFromId(t,r.xaxis),i=c9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&CKe(s)&&l.push("x"),u&&CKe(u)&&l.push("y"),l.length&&g$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=IKe(s),r._y=u=IKe(u),RKe(s,f,c),RKe(u,f,c),_$t(r),r.setScale();var _=LKe(s),b=LKe(u),v=.5*(_[1]-_[0]),C=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return _=[C-v*L,C+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=c9.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=c9.findExtremes(i,b,{padded:!0}),PKe(r,"a","b"),PKe(r,"b","a"),zKe(r,a),zKe(r,o),h.clipsegments=y$t(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var OKe=Te((K3r,BKe)=>{"use strict";BKe.exports={attributes:n9(),supplyDefaults:BYe(),plot:YYe(),calc:FKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var NKe=Te((J3r,qKe)=>{"use strict";qKe.exports=OKe()});var X$=Te(($3r,HKe)=>{"use strict";var x$t=Pm(),f0=Zc(),b$t=Gf(),{hovertemplateAttrs:w$t,texttemplateAttrs:A$t,templatefallbackAttrs:UKe}=Ff(),VKe=nc(),Ox=Su().extendFlat,um=f0.marker,WS=f0.line,GKe=um.line;HKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Ox({},f0.mode,{dflt:"markers"}),text:Ox({},f0.text,{}),texttemplate:A$t({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:UKe({editType:"plot"}),hovertext:Ox({},f0.hovertext,{}),line:{color:WS.color,width:WS.width,dash:WS.dash,backoff:WS.backoff,shape:Ox({},WS.shape,{values:["linear","spline"]}),smoothing:WS.smoothing,editType:"calc"},connectgaps:f0.connectgaps,fill:Ox({},f0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:x$t(),marker:Ox({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:Ox({width:GKe.width,dash:GKe.dash,editType:"calc"},VKe("marker.line")),gradient:um.gradient,editType:"calc"},VKe("marker")),textfont:f0.textfont,textposition:f0.textposition,selected:f0.selected,unselected:f0.unselected,hoverinfo:Ox({},b$t.hoverinfo,{flags:["a","b","text","name"]}),hoveron:f0.hoveron,hovertemplate:w$t(),hovertemplatefallback:UKe(),zorder:f0.zorder}});var ZKe=Te((Q3r,XKe)=>{"use strict";var WKe=ei(),T$t=Ly(),jS=lc(),S$t=$v(),M$t=R0(),jKe=sA(),E$t=D0(),k$t=Dm(),C$t=X$();XKe.exports=function(t,r,n,i){function a(h,d){return WKe.coerce(t,r,C$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";YKe.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 h9=Te((tAr,JKe)=>{"use strict";JKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var $Ke=ku(),L$t=F0(),P$t=Iy(),z$t=B0(),I$t=O0().calcMarkerSize,R$t=h9();QKe.exports=function(t,r){var n=r._carpetTrace=R$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 D$t=dA(),tJe=wu(),F$t=Mu();rJe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=tJe.getFromId(t,u.xaxis||"x"),f=tJe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var B$t=yA(),O$t=ei().fillText;nJe.exports=function(t,r,n,i){var a=B$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 _=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+T.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),_.push("y: "+o.yLabel),C.indexOf("text")!==-1&&O$t(c,h,_),o.extraText=_.join("
")}return a}});var sJe=Te((aAr,oJe)=>{"use strict";oJe.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 uJe=Te((oAr,lJe)=>{"use strict";lJe.exports={attributes:X$(),supplyDefaults:ZKe(),colorbar:ep(),formatLabels:KKe(),calc:eJe(),plot:iJe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:aJe(),selectPoints:gA(),eventData:sJe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var cJe=Te((sAr,fJe)=>{"use strict";fJe.exports=uJe()});var Z$=Te((lAr,hJe)=>{"use strict";var fm=DA(),A1=OE(),q$t=nc(),N$t=Su().extendFlat,lg=A1.contours;hJe.exports=N$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:lg.type,start:lg.start,end:lg.end,size:lg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:lg.showlines,showlabels:lg.showlabels,labelfont:lg.labelfont,labelformat:lg.labelformat,operation:lg.operation,value:lg.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},q$t("",{cLetter:"z",autoColorDflt:!1}))});var Y$=Te((uAr,vJe)=>{"use strict";var dJe=ei(),U$t=nR(),pJe=Z$(),V$t=GG(),G$t=kR(),H$t=CR();vJe.exports=function(t,r,n,i){function a(l,f){return dJe.coerce(t,r,pJe,l,f)}function o(l){return dJe.coerce2(t,r,pJe,l)}if(a("carpet"),t.a&&t.b){var s=U$t(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?V$t(t,r,a,i,n,{hasHover:!1}):(G$t(t,r,a,o),H$t(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var _Je=Te((fAr,gJe)=>{"use strict";var W$t=gp(),mJe=ei(),j$t=sR(),X$t=uR(),Z$t=fR(),Y$t=cR(),yJe=hG(),K$t=Y$(),J$t=h9(),$$t=PG();gJe.exports=function(t,r){var n=r._carpetTrace=J$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),K$t(a,r,r._defaultColor,t._fullLayout)}var o=Q$t(t,r);return $$t(r,r._z),o}};function Q$t(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,mJe.isArray1D(t.z)&&j$t(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=X$t(t._z||t.z,t.transpose),t._emptypoints=Y$t(c),Z$t(c,t._emptypoints);var h=mJe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=yJe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":u,b=yJe(t,_,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&W$t(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var bJe=Te((cAr,xJe)=>{"use strict";var eQt=ei().isArrayOrTypedArray;xJe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,_,b,v=eQt(r)?"a":"b",C=v==="a"?e.aaxis:e.baxis,E=C.smoothing,T=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,M=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(x):e.a2i(x)),P=v==="a"?function(ge){return e.evalxy([],ge,m)}:function(ge){return e.evalxy([],m,ge)};E&&(o=Math.max(0,Math.min(M-2,m)),s=m-o,a=v==="a"?function(ge,ze){return e.dxydi([],ge,o,ze,s)}:function(ge,ze){return e.dxydj([],o,ge,s,ze)});var A=T(L[0]),F=T(L[1]),B=A0?Math.floor:Math.ceil,j=B>0?Math.ceil:Math.floor,W=B>0?Math.min:Math.max,N=B>0?Math.max:Math.min,H=G(A+U),re=j(F-U);f=P(A);var ae=[[f]];for(i=H;i*B{"use strict";var p9=Jl(),v9=G$(),MJe=H$(),mC=Mu(),T1=ei(),tQt=IG(),rQt=RG(),Aw=zR(),d9=NE(),iQt=OG(),nQt=BG(),aQt=qG(),oQt=h9(),wJe=bJe();EJe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;T1.makeTraceGroups(i,n,"contour").each(function(s){var u=p9.select(this),l=s[0],f=l.trace,c=f._carpetTrace=oQt(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,_=f.contours,b=nQt(_,r,l),v=_.type==="constraint",C=_._operation,E=v?C==="="?"lines":"fill":_.coloring;function T(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]]];tQt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(p[p.length-1]-p[0])*1e-8;rQt(b,x,k);var M=b;_.type==="constraint"&&(M=iQt(b,C)),sQt(b,T);var m,P,A,F,B=[];for(F=h.clipsegments.length-1;F>=0;F--)m=h.clipsegments[F],P=v9([],m.x,a.c2p),A=v9([],m.y,o.c2p),P.reverse(),A.reverse(),B.push(MJe(P,A,m.bicubic));var U="M"+B.join("L")+"Z";fQt(u,h.clipsegments,a,o,v,E),cQt(f,u,a,o,M,L,T,c,h,E,U),lQt(u,b,t,l,_,r,c),mC.setClipUrl(u,c._clipPathId,t)})};function sQt(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 AJe(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 TJe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function SJe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function fQt(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,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):T1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;l+=M(h,d),h=d}if(_===t.edgepaths.length){T1.log("unclosed perimeter path");break}u=_,c=f.indexOf(u)===-1,c&&(u=f[0],l+=M(h,d)+"Z",h=null)}for(u=0;u{"use strict";CJe.exports={attributes:Z$(),supplyDefaults:Y$(),colorbar:DR(),calc:_Je(),plot:kJe(),style:RR(),moduleType:"trace",name:"contourcarpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var zJe=Te((pAr,PJe)=>{"use strict";PJe.exports=LJe()});var y9=Te((vAr,BJe)=>{"use strict";var m9=ei().extendFlat,yC=Zc(),IJe=jc().axisHoverFormat,{hovertemplateAttrs:dQt,templatefallbackAttrs:pQt}=Ff(),DJe=Id().dash,vQt=p3(),FJe=JA(),mQt=FJe.INCREASING.COLOR,yQt=FJe.DECREASING.COLOR,K$=yC.line;function RJe(e){return{line:{color:m9({},K$.color,{dflt:e}),width:K$.width,dash:DJe,editType:"style"},editType:"style"}}BJe.exports={xperiod:yC.xperiod,xperiod0:yC.xperiod0,xperiodalignment:yC.xperiodalignment,xhoverformat:IJe("x"),yhoverformat:IJe("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:m9({},K$.width,{}),dash:m9({},DJe,{}),editType:"style"},increasing:RJe(mQt),decreasing:RJe(yQt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:dQt({},{keys:["open","high","low","close"]}),hovertemplatefallback:pQt(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:m9({},vQt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:yC.zorder}});var J$=Te((mAr,OJe)=>{"use strict";var gQt=$l(),_Qt=ei();OJe.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=gQt.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,_Qt.minRowLength(a))),r._length=c,c}}});var UJe=Te((yAr,NJe)=>{"use strict";var xQt=ei(),bQt=J$(),wQt=Rm(),AQt=y9();NJe.exports=function(t,r,n,i){function a(s,u){return xQt.coerce(t,r,AQt,s,u)}var o=bQt(t,r,a,i);if(!o){r.visible=!1;return}wQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),qJe(t,r,a,"increasing"),qJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function qJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var $$=Te((gAr,GJe)=>{"use strict";var XS=ei(),g9=XS._,_9=wu(),TQt=Fm(),gC=rf().BADNUM;function SQt(e,t){var r=_9.getFromId(e,t.xaxis),n=_9.getFromId(e,t.yaxis),i=EQt(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=VJe(e,t,o,s,n,MQt);return t._extremes[r._id]=_9.findExtremes(r,s,{vpad:a/2}),u.length?(XS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function MQt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function VJe(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=XS.isArrayOrTypedArray(t.text),c=XS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,_=[],b=0;bd):h=L>C,d=L;var x=a(C,E,T,L);x.pos=v,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[T,E],p&&(x.orig_p=r[b]),f&&(x.tx=t.text[b]),c&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:v,empty:!0})}return t._extremes[i._id]=_9.findExtremes(i,XS.concat(u,s),{padded:!0}),_.length&&(_[0].t={labels:{open:g9(e,"open:")+" ",high:g9(e,"high:")+" ",low:g9(e,"low:")+" ",close:g9(e,"close:")+" "}}),_}function EQt(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 kQt=Jl(),HJe=ei();WJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;HJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=kQt.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(HJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),v=o.c2p(_.pos+d,!0),C=s?(b+v)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),T=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+T+"V"+L+"M"+v+","+x+"H"+C})})}});var ZJe=Te((xAr,XJe)=>{"use strict";var Q$=Jl(),CQt=Mu(),LQt=jl();XJe.exports=function(t,r,n){var i=n||Q$.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;Q$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;Q$.select(this).style("fill","none").call(LQt.stroke,u.color).call(CQt.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var tQ=Te((bAr,QJe)=>{"use strict";var eQ=wu(),PQt=ei(),x9=Xc(),zQt=jl(),IQt=ei().fillText,YJe=JA(),RQt={increasing:YJe.INCREASING.SYMBOL,decreasing:YJe.DECREASING.SYMBOL};function DQt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?JJe(e,t,r,n):$Je(e,t,r,n)}function KJe(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},_=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function C(P){var A=p(P);return x9.inbox(A-b,A+b,c)}function E(P){var A=P[l],F=P[f];return A===F||x9.inbox(A-r,F-r,c)}function T(P){return(C(P)+E(P))/2}var L=x9.getDistanceFunction(n,C,E,T);if(x9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,M=o[k],m=M.line.color;return zQt.opacity(m)&&M.line.width?e.color=m:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=T(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function JJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=KJe(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[_]+eQ.hoverLabelText(a,b,o.yhoverformat)):(C=PQt.extendFlat({},l),C.y0=C.y1=v,C.yLabelVal=b,C.yLabel=s.labels[_]+eQ.hoverLabelText(a,b,o.yhoverformat),C.name="",u.push(C),d[b]=C)}return u}function $Je(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=KJe(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+eQ.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",_=p.split("+"),b=p==="all",v=b||_.indexOf("y")!==-1,C=b||_.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+RQt[h]]:[];return C&&IQt(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}QJe.exports={hoverPoints:DQt,hoverSplit:JJe,hoverOnPoints:$Je}});var rQ=Te((wAr,e$e)=>{"use strict";e$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";t$e.exports={moduleType:"trace",name:"ohlc",basePlotModule:Mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:y9(),supplyDefaults:UJe(),calc:$$().calc,plot:jJe(),style:ZJe(),hoverPoints:tQ().hoverPoints,selectPoints:rQ()}});var n$e=Te((TAr,i$e)=>{"use strict";i$e.exports=r$e()});var nQ=Te((SAr,s$e)=>{"use strict";var iQ=ei().extendFlat,a$e=jc().axisHoverFormat,pv=y9(),ZS=CE();function o$e(e){return{line:{color:iQ({},ZS.line.color,{dflt:e}),width:ZS.line.width,editType:"style"},fillcolor:ZS.fillcolor,editType:"style"}}s$e.exports={xperiod:pv.xperiod,xperiod0:pv.xperiod0,xperiodalignment:pv.xperiodalignment,xhoverformat:a$e("x"),yhoverformat:a$e("y"),x:pv.x,open:pv.open,high:pv.high,low:pv.low,close:pv.close,line:{width:iQ({},ZS.line.width,{}),editType:"style"},increasing:o$e(pv.increasing.line.color.dflt),decreasing:o$e(pv.decreasing.line.color.dflt),text:pv.text,hovertext:pv.hovertext,hovertemplate:pv.hovertemplate,hovertemplatefallback:pv.hovertemplatefallback,whiskerwidth:iQ({},ZS.whiskerwidth,{dflt:0}),hoverlabel:pv.hoverlabel,zorder:ZS.zorder}});var f$e=Te((MAr,u$e)=>{"use strict";var FQt=ei(),BQt=jl(),OQt=J$(),qQt=Rm(),NQt=nQ();u$e.exports=function(t,r,n,i){function a(s,u){return FQt.coerce(t,r,NQt,s,u)}var o=OQt(t,r,a,i);if(!o){r.visible=!1;return}qQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),l$e(t,r,a,"increasing"),l$e(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function l$e(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",BQt.addOpacity(i,.5))}});var p$e=Te((EAr,d$e)=>{"use strict";var c$e=ei(),h$e=wu(),UQt=Fm(),VQt=$$().calcCommon;d$e.exports=function(e,t){var r=e._fullLayout,n=h$e.getFromId(e,t.xaxis),i=h$e.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=UQt(t,n,"x",a).vals,s=VQt(e,t,a,o,i,GQt);return s.length?(c$e.extendFlat(s[0].t,{num:r._numBoxes,dPos:c$e.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function GQt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var m$e=Te((kAr,v$e)=>{"use strict";v$e.exports={moduleType:"trace",name:"candlestick",basePlotModule:Mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:nQ(),layoutAttributes:LE(),supplyLayoutDefaults:$I().supplyLayoutDefaults,crossTraceCalc:eR().crossTraceCalc,supplyDefaults:f$e(),calc:p$e(),plot:tR().plot,layerName:"boxlayer",style:rR().style,hoverPoints:tQ().hoverPoints,selectPoints:rQ()}});var g$e=Te((CAr,y$e)=>{"use strict";y$e.exports=m$e()});var oQ=Te((LAr,_$e)=>{"use strict";var w9=ei(),HQt=xy(),b9=w9.deg2rad,aQ=w9.rad2deg;_$e.exports=function(t,r,n){switch(HQt(t,n),t._id){case"x":case"radialaxis":WQt(t,r);break;case"angularaxis":ZQt(t,r);break}};function WQt(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 jQt(e,t){return t==="degrees"?b9(e):e}function XQt(e,t){return t==="degrees"?aQ(e):e}function ZQt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return jQt(n(a),o)},e.c2d=function(a,o){return i(XQt(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";x$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 S9=Te((zAr,S$e)=>{"use strict";var Tw=ei(),b$e=F5().tester,sQ=Tw.findIndexOfMin,A$e=Tw.isAngleInsideSector,YQt=Tw.angleDelta,w$e=Tw.angleDist;function KQt(e,t,r,n,i){if(!A$e(t,n))return!1;var a,o;r[0]0?o:1/0},n=sQ(t,r),i=Tw.mod(n+1,t.length);return[t[n],t[i]]}function T9(e){return Math.abs(e)>1e-10?e:0}function lQ(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function M$e(e){return e<0?-1:e>0?1:0}function KS(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 JS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function E$e(e,t){return t*e.radius}function ner(e,t,r,n){var i=JS(e,KS([r,t])),a=i[0],o=i[1],s=JS(e,KS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=E$e(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function aer(e,t,r,n){var i=E$e(e,1/(t+1)),a=JS(e,KS([t,r])),o=a[0],s=a[1],u=JS(e,KS([t,n])),l=u[0],f=u[1];if(M$e(r)!==M$e(n)){var c=JS(e,KS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Sw=Jl(),oer=hd(),Ew=$l(),Oc=ei(),ug=Oc.strRotate,bd=Oc.strTranslate,fQ=jl(),_C=Mu(),ser=Cc(),vv=wu(),ler=xy(),uer=oQ(),fer=Mm().doAutoRange,S1=tU(),k9=xp(),C$e=Xc(),cer=Fb(),her=oh().prepSelect,der=oh().selectOnClick,cQ=oh().clearOutline,L$e=Em(),P$e=b5(),z$e=L5().redrawReglTraces,per=Nh().MID_SHIFT,qx=A9(),M1=S9(),C9=uQ(),M9=C9.smith,ver=C9.reactanceArc,mer=C9.resistanceArc,E9=C9.smithTransform,yer=Oc._,I$e=Oc.mod,Nx=Oc.deg2rad,Mw=Oc.rad2deg;function R$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 Ud=R$e.prototype;B$e.exports=function(t,r,n){return new R$e(t,r,n)};Ud.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]],T=[u[0]+L,u[1]-L]):(v=f/b,C=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=C,r.xDomain2=E,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=v/d,m=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],A=r.cy=k+M*h[3],F=r.cxx=P-x,B=r.cyy=A-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,M/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:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(F,B)),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,A)).call(fQ.fill,t.bgcolor)};Ud.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return uer(i,t,e),i};Ud.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);ler(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};Ud.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);fer(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(M){var m=E9(r,M9([M.x,0]));return bd(m[0]-s,m[1]-u)}:function(M){return bd(c.l2p(M.x)+o,0)},_=d?function(M){return mer(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(c.r2p(M.x)+o)},b=D$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(M){return M>=0}).map(function(M){return vv.tickText(c,M,!0,!1)}):vv.calcTicks(c),E=d?C:vv.clipEnds(c,C),T=vv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),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,T),transFn:p,crisp:!1}),vv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:_,transFn:Oc.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?Mw(F$e(Nx(l.angle),r.vangles)):l.angle,x=bd(s,u),k=x+ug(-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(fQ.stroke,l.linecolor)};Ud.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,_=Nx(p),b=Math.cos(_),v=Math.sin(_),C=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=cer.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title.text",placeholder:yer(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Ud.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=E9(r,M9([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=Mw(f.tick0),f.dtick=Mw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=E9(r,M9([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},_=c?function(m){var P=E9(r,M9([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+ug(-Mw(A))}:function(m){var P=h(m);return d(P)+ug(-Mw(P))},b=c?function(m){return ver(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),F=Math.sin(P);return"M"+[s+o*A,u-o*F]+"L"+[s+a*A,u-a*F]},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),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*per)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var F=h(m);return-.5*(1+Math.sin(F))*A};var T=D$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);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),Oc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var k=f.ticks==="inside"?-1:1,M=(f.linewidth||1)/2;vv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*f.ticklen,transFn:_,crisp:!1}),vv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),vv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}xC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(fQ.stroke,l.linecolor)};Ud.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)}};Ud.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=qx.MINZOOM,s=qx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,_=t.vangles,b=t.radialAxis,v=M1.clampTiny,C=M1.findXYatLength,E=M1.findEnclosingVertexAngles,T=qx.cornerHalfWidth,L=qx.cornerLen/2,x,k,M=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Sw.select(M).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),M.onmousemove=function(ce){C$e.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||k9.unhover(n,ce)};var m={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,F,B,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 ge(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function ze(ce,je){if(ce===0)return t.pathSector(2*T);var Qe=L/ce,gt=je-Qe,qt=je+Qe,at=Math.max(0,Math.min(ce,u)),Ke=at-T,Ct=at+T;return"M"+ge(Ke,gt)+"A"+[Ke,Ke]+" 0,0,0 "+ge(Ke,qt)+"L"+ge(Ct,qt)+"A"+[Ct,Ct]+" 0,0,1 "+ge(Ct,gt)+"Z"}function Le(ce,je,Qe){if(ce===0)return t.pathSector(2*T);var gt=ge(ce,je),qt=ge(ce,Qe),at=v((gt[0]+qt[0])/2),Ke=v((gt[1]+qt[1])/2),Ct,wt;if(at&&Ke){var Mt=Ke/at,Bt=-1/Mt,Zt=C(T,Mt,at,Ke);Ct=C(L,Bt,Zt[0][0],Zt[0][1]),wt=C(L,Bt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ke?(Et=L,Ae=T):(Et=T,Ae=L),Ct=[[at-Et,Ke-Ae],[at+Et,Ke-Ae]],wt=[[at-Et,Ke+Ae],[at+Et,Ke+Ae]]}return"M"+Ct.join("L")+"L"+wt.reverse().join("L")+"Z"}function de(){F=null,B=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=oer(ce.bgcolor).getLuminance(),W=S1.makeZoombox(a,j,f,c,U),W.attr("fill-rule","evenodd"),N=S1.makeCorners(a,f,c),cQ(n)}function te(ce,je){return je=Math.max(Math.min(je,u),l),ceo?(ce-1&&ce===1&&der(je,n,[t.xaxis],[t.yaxis],t.id,m),Qe.indexOf("event")>-1&&C$e.click(n,je,t.id)}m.prepFn=function(ce,je,Qe){var gt=n._fullLayout.dragmode,qt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var at=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var Ke=Oc.apply3DTransform(at)(je-qt.left,Qe-qt.top);if(P=Ke[0],A=Ke[1],_){var Ct=M1.findPolygonOffset(u,p[0],p[1],_);P+=h+Ct[0],A+=d+Ct[1]}switch(gt){case"zoom":m.clickFn=Ne,r||(_?m.moveFn=Ge:m.moveFn=Ee,m.doneFn=De,de(ce,je,Qe));break;case"select":case"lasso":her(ce,je,Qe,m,gt);break}},k9.init(m)};Ud.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=qx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Nx(n.radialAxisAngle),p=f._rl,_=p[0],b=p[1],v=p[r],C=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=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(Sw.select(x),f.visible&&s0!=(r?P>_: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 F$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.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 dQ=Te((DAr,G$e)=>{"use strict";var _er=Oh(),Yu=Dd(),xer=zc().attributes,c0=ei().extendFlat,O$e=Sc().overrideAll,q$e=O$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"),N$e=O$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"),U$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(U$e,q$e,N$e);var V$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(V$e,q$e,N$e);G$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:_er.background},radialaxis:U$e,angularaxis:V$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var X$e=Te((FAr,j$e)=>{"use strict";var L9=ei(),ber=jl(),wer=Lf(),Aer=B_(),Ter=Rd().getSubplotData,Ser=Lb(),Mer=D3(),Eer=s_(),ker=l_(),Cer=fI(),Ler=fE(),Per=IN(),zer=V3(),W$e=dQ(),Ier=oQ(),P9=A9(),H$e=P9.axisNames;function Rer(e,t,r,n){var i=r("bgcolor");n.bgColor=ber.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=Ter(n.fullData,P9.name,n.id),s=n.layoutOut,u;function l(W,N){return r(u+"."+W,N)}for(var f=0;f{"use strict";var Fer=Rd().getSubplotCalcData,Ber=ei().counterRegex,Oer=hQ(),Y$e=A9(),K$e=Y$e.attr,kw=Y$e.name,Z$e=Ber(kw),J$e={};J$e[K$e]={valType:"subplotid",dflt:kw,editType:"calc"};function qer(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[kw],i=0;i{"use strict";var{hovertemplateAttrs:Uer,texttemplateAttrs:Ver,templatefallbackAttrs:Q$e}=Ff(),I9=Su().extendFlat,Ger=Pm(),h0=Zc(),Her=Gf(),$S=h0.line;eQe.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:Ver({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Q$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:$S.color,width:$S.width,dash:$S.dash,backoff:$S.backoff,shape:I9({},$S.shape,{values:["linear","spline"]}),smoothing:$S.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:I9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:I9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Ger(),hoverinfo:I9({},Her.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:Uer(),hovertemplatefallback:Q$e(),selected:h0.selected,unselected:h0.unselected}});var D9=Te((qAr,iQe)=>{"use strict";var R9=ei(),QS=lc(),Wer=$v(),jer=R0(),tQe=sA(),Xer=D0(),Zer=Dm(),Yer=Ly().PTS_LINESONLY,Ker=bC();function Jer(e,t,r,n){function i(s,u){return R9.coerce(e,t,Ker,s,u)}var a=rQe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var $er=ei(),nQe=wu();aQe.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=nQe.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?$er.rad2deg(t.theta):t.theta;return i.thetaLabel=nQe.tickText(s,l,!0).text,i}});var lQe=Te((UAr,sQe)=>{"use strict";var oQe=ku(),Qer=rf().BADNUM,etr=wu(),ttr=F0(),rtr=Iy(),itr=B0(),ntr=O0().calcMarkerSize;sQe.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 atr=dA(),uQe=rf().BADNUM;fQe.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 otr=yA();function str(e,t,r,n){var i=otr(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,hQe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function hQe(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("
")}}dQe.exports={hoverPoints:str,makeHoverPointText:hQe}});var vQe=Te((HAr,pQe)=>{"use strict";pQe.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:z9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:bC(),supplyDefaults:D9().supplyDefaults,colorbar:ep(),formatLabels:F9(),calc:lQe(),plot:cQe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:B9().hoverPoints,selectPoints:gA(),meta:{}}});var yQe=Te((WAr,mQe)=>{"use strict";mQe.exports=vQe()});var pQ=Te((ZAr,_Qe)=>{"use strict";var gQe=bC(),{cliponaxis:jAr,hoveron:XAr}=gQe,ltr=kee(gQe,["cliponaxis","hoveron"]),{connectgaps:utr,line:{color:ftr,dash:ctr,width:htr},fill:dtr,fillcolor:ptr,marker:vtr,textfont:mtr,textposition:ytr}=yk();_Qe.exports=W1(_m({},ltr),{connectgaps:utr,fill:dtr,fillcolor:ptr,line:{color:ftr,dash:ctr,editType:"calc",width:htr},marker:vtr,textfont:mtr,textposition:ytr})});var wQe=Te((KAr,bQe)=>{"use strict";var xQe=ei(),vQ=lc(),gtr=D9().handleRThetaDefaults,_tr=$v(),xtr=R0(),btr=D0(),wtr=Dm(),Atr=Ly().PTS_LINESONLY,Ttr=pQ();bQe.exports=function(t,r,n,i){function a(s,u){return xQe.coerce(t,r,Ttr,s,u)}var o=gtr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var Str=F9();AQe.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]),Str(t,r,n)}});var MQe=Te(($Ar,SQe)=>{"use strict";var Mtr=F0(),Etr=O0().calcMarkerSize,ktr=ow(),Ctr=wu(),Ltr=vx().TOO_MANY_POINTS;SQe.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 Ptr=WF(),ztr=B9().makeHoverPointText;function Itr(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=Ptr.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,ztr(c,h,f,l),u}}EQe.exports={hoverPoints:Itr}});var LQe=Te((eTr,CQe)=>{"use strict";CQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:z9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:pQ(),supplyDefaults:wQe(),colorbar:ep(),formatLabels:TQe(),calc:MQe(),hoverPoints:kQe().hoverPoints,selectPoints:MY(),meta:{}}});var PQe=Te((tTr,mQ)=>{"use strict";var Rtr=ZF(),Dtr=ku(),Ftr=LK(),Btr=AY(),O9=ow(),q9=ei(),Otr=vx().TOO_MANY_POINTS,qtr={};mQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Btr(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,_,b=h.slice(),v=d.slice();for(_=0;_=Otr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=C),p.line&&C.length>1&&q9.extendFlat(p.line,O9.linePositions(t,l,C)),p.text&&(q9.extendFlat(p.text,{positions:C},O9.textPosition(t,l,p.text,p.marker)),q9.extendFlat(p.textSel,{positions:C},O9.textPosition(t,l,p.text,p.markerSel)),q9.extendFlat(p.textUnsel,{positions:C},O9.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=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=C,f._scene=o,f.index=o.count,o.count++}}),Ftr(t,r,n)}};mQ.exports.reglPrecompiled=qtr});var IQe=Te((rTr,zQe)=>{"use strict";var Ntr=P8(),Utr=z8(),Vtr=I8(),Gtr=R8(),Htr=D8(),Wtr=F8(),jtr=B8(),Xtr=O8(),Ztr=q8(),Ytr=N8();zQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Ntr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Utr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Vtr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Gtr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Htr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Wtr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:jtr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:Xtr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Ztr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":Ytr}});var DQe=Te((iTr,RQe)=>{"use strict";var yQ=PQe(),Ktr=IQe(),Jtr=PK();Object.assign(yQ.reglPrecompiled,Ktr);Object.assign(yQ.reglPrecompiled,Jtr);RQe.exports=yQ});var OQe=Te((nTr,BQe)=>{"use strict";var FQe=LQe();FQe.plot=DQe();BQe.exports=FQe});var gQ=Te((aTr,qQe)=>{"use strict";var{hovertemplateAttrs:$tr,templatefallbackAttrs:Qtr}=Ff(),eM=Su().extendFlat,Ux=bC(),Vx=Fy();qQe.exports={r:Ux.r,theta:Ux.theta,r0:Ux.r0,dr:Ux.dr,theta0:Ux.theta0,dtheta:Ux.dtheta,thetaunit:Ux.thetaunit,base:eM({},Vx.base,{}),offset:eM({},Vx.offset,{}),width:eM({},Vx.width,{}),text:eM({},Vx.text,{}),hovertext:eM({},Vx.hovertext,{}),marker:err(),hoverinfo:Ux.hoverinfo,hovertemplate:$tr(),hovertemplatefallback:Qtr(),selected:Vx.selected,unselected:Vx.unselected};function err(){var e=eM({},Vx.marker);return delete e.cornerradius,e}});var _Q=Te((oTr,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 GQe=Te((sTr,VQe)=>{"use strict";var UQe=ei(),trr=D9().handleRThetaDefaults,rrr=jI(),irr=gQ();VQe.exports=function(t,r,n,i){function a(s,u){return UQe.coerce(t,r,irr,s,u)}var o=trr(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"),rrr(t,r,a,n,i),UQe.coerceSelectionMarkerOpacity(r,a)}});var WQe=Te((lTr,HQe)=>{"use strict";var nrr=ei(),arr=_Q();HQe.exports=function(e,t,r){var n={},i;function a(u,l){return nrr.coerce(e[i]||{},t[i],arr,u,l)}for(var o=0;o{"use strict";var jQe=yp().hasColorscale,XQe=gp(),orr=ei().isArrayOrTypedArray,srr=SE(),lrr=t2().setGroupPositions,urr=B0(),frr=$l().traceIs,crr=ei().extendFlat;function hrr(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 YQe=Jl(),N9=ku(),tM=ei(),prr=Mu(),bQ=S9();KQe.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");tM.makeTraceGroups(f,n,"trace bars").each(function(){var c=YQe.select(this),h=tM.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(tM.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 _=YQe.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),T;if(!N9(b)||!N9(v)||!N9(C)||!N9(E)||b===v||C===E)T="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))],T=l(b,v,C,E)}tM.ensureSingle(_,"path").attr("d",T)}),prr.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;tM.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=bQ.findEnclosingVertexAngles(s,e.vangles)[0],f=bQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return bQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return tM.pathAnnulus(n,i,a,o,t,r)}}});var QQe=Te((cTr,$Qe)=>{"use strict";var mrr=Xc(),wQ=ei(),yrr=PA().getTraceColor,grr=wQ.fillText,_rr=B9().makeHoverPointText,xrr=S9().isPtInsidePolygon;$Qe.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:wQ.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 _=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(mrr.getClosest(i,_,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=wQ.extendFlat({},v,{r:v.s,theta:v.p});return grr(v,a,t),_rr(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=yrr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var tet=Te((hTr,eet)=>{"use strict";eet.exports={moduleType:"trace",name:"barpolar",basePlotModule:z9(),categories:["polar","bar","showLegend"],attributes:gQ(),layoutAttributes:_Q(),supplyDefaults:GQe(),supplyLayoutDefaults:WQe(),calc:xQ().calc,crossTraceCalc:xQ().crossTraceCalc,plot:JQe(),colorbar:ep(),formatLabels:F9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:QQe(),selectPoints:zA(),meta:{}}});var iet=Te((dTr,ret)=>{"use strict";ret.exports=tet()});var AQ=Te((pTr,net)=>{"use strict";net.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var TQ=Te((vTr,uet)=>{"use strict";var brr=Oh(),fh=Dd(),wrr=zc().attributes,Gx=ei().extendFlat,aet=Sc().overrideAll,oet=aet({color:fh.color,showline:Gx({},fh.showline,{dflt:!0}),linecolor:fh.linecolor,linewidth:fh.linewidth,showgrid:Gx({},fh.showgrid,{dflt:!0}),gridcolor:fh.gridcolor,gridwidth:fh.gridwidth,griddash:fh.griddash},"plot","from-root"),set=aet({ticklen:fh.ticklen,tickwidth:Gx({},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"),Arr=Gx({visible:Gx({},fh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Gx({},fh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},oet,set),Trr=Gx({visible:Gx({},fh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:fh.ticks,editType:"calc"},oet,set);uet.exports={domain:wrr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:brr.background},realaxis:Arr,imaginaryaxis:Trr,editType:"calc"}});var het=Te((mTr,cet)=>{"use strict";var rM=ei(),Srr=jl(),Mrr=Lf(),Err=B_(),krr=Rd().getSubplotData,Crr=l_(),Lrr=s_(),Prr=fE(),zrr=xy(),iM=TQ(),SQ=AQ(),fet=SQ.axisNames,Irr=Drr(function(e){return rM.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function Rrr(e,t,r,n){var i=r("bgcolor");n.bgColor=Srr.combine(i,n.paper_bgcolor);var a=krr(n.fullData,SQ.name,n.id),o=n.layoutOut,s;function u(L,x){return r(s+"."+L,x)}for(var l=0;l{"use strict";var Frr=Rd().getSubplotCalcData,Brr=ei().counterRegex,Orr=hQ(),pet=AQ(),vet=pet.attr,Cw=pet.name,det=Brr(Cw),met={};met[vet]={valType:"subplotid",dflt:Cw,editType:"calc"};function qrr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Cw],i=0;i{"use strict";var{hovertemplateAttrs:Urr,texttemplateAttrs:Vrr,templatefallbackAttrs:_et}=Ff(),U9=Su().extendFlat,Grr=Pm(),d0=Zc(),Hrr=Gf(),nM=d0.line;xet.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Vrr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:_et({editType:"plot"}),hovertext:d0.hovertext,line:{color:nM.color,width:nM.width,dash:nM.dash,backoff:nM.backoff,shape:U9({},nM.shape,{values:["linear","spline"]}),smoothing:nM.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:U9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:U9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Grr(),hoverinfo:U9({},Hrr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Urr(),hovertemplatefallback:_et(),selected:d0.selected,unselected:d0.unselected}});var Aet=Te((_Tr,wet)=>{"use strict";var V9=ei(),aM=lc(),Wrr=$v(),jrr=R0(),bet=sA(),Xrr=D0(),Zrr=Dm(),Yrr=Ly().PTS_LINESONLY,Krr=MQ();wet.exports=function(t,r,n,i){function a(u,l){return V9.coerce(t,r,Krr,u,l)}var o=Jrr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var Tet=wu();Met.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=Tet.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=Tet.tickText(a.angularAxis,t.imag,!0).text,i}});var Let=Te((bTr,Cet)=>{"use strict";var ket=ku(),$rr=rf().BADNUM,Qrr=F0(),eir=Iy(),tir=B0(),rir=O0().calcMarkerSize;Cet.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 iir=dA(),Pet=rf().BADNUM,nir=uQ(),air=nir.smith;zet.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 oir=yA();function sir(e,t,r,n){var i=oir(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,Ret(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function Ret(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("
")}}Det.exports={hoverPoints:sir,makeHoverPointText:Ret}});var Oet=Te((TTr,Bet)=>{"use strict";Bet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:get(),categories:["smith","symbols","showLegend","scatter-like"],attributes:MQ(),supplyDefaults:Aet(),colorbar:ep(),formatLabels:Eet(),calc:Let(),plot:Iet(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:Fet().hoverPoints,selectPoints:gA(),meta:{}}});var Net=Te((STr,qet)=>{"use strict";qet.exports=Oet()});var Lp=Te((MTr,Vet)=>{var H9=jh();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={}}H9(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 EQ(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 G9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}H9(EQ.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?"-":"")+G9(Math.abs(this.year()),4)+"-"+G9(this.month(),2)+"-"+G9(this.day(),2)}});function kQ(){this.shortYearCutoff="+10"}H9(kQ.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 EQ(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?"-":"")+G9(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=Vet.exports=new Uet;wf.cdate=EQ;wf.baseCalendar=kQ;wf.calendars.gregorian=CQ});var Get=Te(()=>{var LQ=jh(),Vd=Lp();LQ(Vd.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"});Vd.local=Vd.regionalOptions[""];LQ(Vd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});LQ(Vd.baseCalendar.prototype,{UNIX_EPOCH:Vd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Vd.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 Vd.local.invalidFormat||Vd.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(T,L){for(var x=1;E+x1},f=function(T,L,x,k){var M=""+L;if(l(T,k))for(;M.length1},C=function(F,B){var U=v(F,B),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],j=new RegExp("^-?\\d{1,"+G+"}"),W=t.substring(M).match(j);if(!W)throw(Vd.local.missingNumberAt||Vd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=W[0].length,parseInt(W[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var F=s.call(E,t.substring(M));return M+=F.length,F}return C("m")},L=function(F,B,U,G){for(var j=v(F,G)?U:B,W=0;W-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}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 Het=Te(()=>{var Hx=Lp(),lir=jh(),PQ=Hx.instance();function W9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W9.prototype=new Hx.baseCalendar;lir(W9.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(fir);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(cir);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(hir);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 Hx.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 Hx.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,Hx.local.invalidyear),i=jx[n-jx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=PQ.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=Wx[e-Wx[0]],n=r>>13,i=n?12:11;if(t>i)throw Hx.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,Hx.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=pir(e,a,r,i);return PQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=PQ.fromJD(e),r=dir(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(uir),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(W9.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 uir=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,fir=/^\d?\d[iI]?/m,cir=/^闰?十?[一二三四五六七八九]?月/m,hir=/^闰?十?[一二三四五六七八九]?/m;Hx.calendars.chinese=W9;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],jx=[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 dir(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=jx[i.year-jx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=jx[a.year-jx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,_=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-_)/(24*3600*1e3));var v=Wx[a.year-Wx[0]],C;for(C=0;C<13;C++){var E=v&1<<12-C?30:29;if(p>13;return!T||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=Wx[o.year-Wx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var _=0;_>9&4095,E=v>>5&15,T=v&31,L=new Date(C,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var Wet=Te(()=>{var Lw=Lp(),vir=jh();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Lw.baseCalendar;vir(zQ.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,Lw.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,Lw.local.invalidYear||Lw.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,Lw.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,Lw.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)}});Lw.calendars.coptic=zQ});var jet=Te(()=>{var E1=Lp(),mir=jh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new E1.baseCalendar;mir(IQ.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:yir[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 yir={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=IQ});var Xet=Te(()=>{var Pw=Lp(),gir=jh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Pw.baseCalendar;gir(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,Pw.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,Pw.local.invalidYear||Pw.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,Pw.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,Pw.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)}});Pw.calendars.ethiopian=RQ});var Zet=Te(()=>{var Xx=Lp(),_ir=jh();function DQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DQ.prototype=new Xx.baseCalendar;_ir(DQ.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,Xx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,j9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xx.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,Xx.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,Xx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&j9(this.daysInYear(e),10)===5?30:t===9&&j9(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,Xx.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,Xx.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 j9(e,t){return e-t*Math.floor(e/t)}Xx.calendars.hebrew=DQ});var Yet=Te(()=>{var wC=Lp(),xir=jh();function FQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FQ.prototype=new wC.baseCalendar;xir(FQ.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=FQ});var Ket=Te(()=>{var AC=Lp(),bir=jh();function BQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BQ.prototype=new AC.baseCalendar;bir(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 $et=Te(()=>{var cm=Lp(),wir=jh();function qQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qQ.prototype=new cm.baseCalendar;wir(qQ.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=OQ(e+8+17*20,365);return[Math.floor(t/20)+1,OQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Jet(e+20,20),Jet(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 OQ(e,t){return e-t*Math.floor(e/t)}function Jet(e,t){return OQ(e-1,t)+1}cm.calendars.mayan=qQ});var ett=Te(()=>{var zw=Lp(),Air=jh();function NQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NQ.prototype=new zw.baseCalendar;var Qet=zw.instance("gregorian");Air(NQ.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 Qet.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=NQ});var ttt=Te(()=>{var Iw=Lp(),Tir=jh();function UQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}UQ.prototype=new Iw.baseCalendar;Tir(UQ.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,Iw.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,Iw.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,Iw.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=Iw.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=Iw.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 oM=Lp(),Sir=jh();function Z9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function X9(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}Z9.prototype=new oM.baseCalendar;Sir(Z9.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,oM.local.invalidYear);return X9(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,oM.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,oM.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,X9(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)}});oM.calendars.persian=Z9;oM.calendars.jalali=Z9});var itt=Te(()=>{var Rw=Lp(),Mir=jh(),Y9=Rw.instance();function VQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}VQ.prototype=new Rw.baseCalendar;Mir(VQ.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,Rw.local.invalidYear),r=this._t2gYear(t.year());return Y9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Rw.local.invalidYear),i=this._t2gYear(n.year());return Y9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Rw.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,Rw.local.invalidDate),i=this._t2gYear(n.year());return Y9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=Y9.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)}});Rw.calendars.taiwan=VQ});var ntt=Te(()=>{var Dw=Lp(),Eir=jh(),K9=Dw.instance();function GQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GQ.prototype=new Dw.baseCalendar;Eir(GQ.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,Dw.local.invalidYear),r=this._t2gYear(t.year());return K9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Dw.local.invalidYear),i=this._t2gYear(n.year());return K9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.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,Dw.local.invalidDate),i=this._t2gYear(n.year());return K9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=K9.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)}});Dw.calendars.thai=GQ});var att=Te(()=>{var Fw=Lp(),kir=jh();function HQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}HQ.prototype=new Fw.baseCalendar;kir(HQ.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,Fw.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,Fw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Zx[i]-Zx[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,Fw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Zx[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-Zx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Fw.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=Fw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Fw.calendars.ummalqura=HQ;var Zx=[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 stt=Te((iSr,ott)=>{"use strict";ott.exports=Lp();Get();Het();Wet();jet();Xet();Zet();Yet();Ket();$et();ett();ttt();rtt();itt();ntt();att()});var ptt=Te((nSr,dtt)=>{"use strict";var utt=stt(),TC=ei(),ftt=rf(),Cir=ftt.EPOCHJD,Lir=ftt.ONEDAY,XQ={valType:"enumerated",values:TC.sortObjectKeys(utt.calendars),editType:"calc",dflt:"gregorian"},ctt=function(e,t,r,n){var i={};return i[r]=XQ,TC.coerce(e,t,i,r,n)},Pir=function(e,t,r,n){for(var i=0;i{"use strict";vtt.exports=ptt()});var Bir=Te((oSr,gtt)=>{var ytt=bge();ytt.register([A1e(),f_e(),Txe(),Wxe(),abe(),t2e(),p2e(),rwe(),Pwe(),d3e(),eAe(),hke(),tCe(),jLe(),RPe(),cze(),Dze(),oRe(),SRe(),GRe(),tDe(),vDe(),LDe(),jDe(),bFe(),UFe(),m7e(),_Ue(),NVe(),hGe(),wHe(),BHe(),sWe(),_je(),Rje(),nXe(),dZe(),BZe(),gYe(),NKe(),cJe(),zJe(),n$e(),g$e(),yQe(),OQe(),iet(),Net(),mtt()]);gtt.exports=ytt});return Bir();})(); /*! * pad-left * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 18ae829ac1a..e0e688f676a 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -14859,9 +14859,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -37951,7 +37951,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly.js b/dist/plotly.js index e91f353757e..0a5717776ba 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -13795,9 +13795,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")) { + if (!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")) { var e = document.createElement("style"); - e.id = "a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0"; + e.id = "ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184"; 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); } @@ -35925,7 +35925,7 @@ var Plotly = (() => { var gd = dragOptions.gd; function redraw() { displayOutlines(polygons, outlines, dragOptions, nCalls++); - if (pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if (pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({ redrawing: true }); } } diff --git a/dist/plotly.min.js b/dist/plotly.min.js index 27f0de03d46..c8649378eeb 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var ytt=Object.create;var DS=Object.defineProperty,_tt=Object.defineProperties,xtt=Object.getOwnPropertyDescriptor,btt=Object.getOwnPropertyDescriptors,wtt=Object.getOwnPropertyNames,p6=Object.getOwnPropertySymbols,Ttt=Object.getPrototypeOf,AO=Object.prototype.hasOwnProperty,pee=Object.prototype.propertyIsEnumerable;var vee=(e,t,r)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_g=(e,t)=>{for(var r in t||(t={}))AO.call(t,r)&&vee(e,r,t[r]);if(p6)for(var r of p6(t))pee.call(t,r)&&vee(e,r,t[r]);return e},j1=(e,t)=>_tt(e,btt(t));var gee=(e,t)=>{var r={};for(var n in e)AO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&p6)for(var n of p6(e))t.indexOf(n)<0&&pee.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),mee=(e,t)=>{for(var r in t)DS(e,r,{get:t[r],enumerable:!0})},yee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wtt(t))!AO.call(e,i)&&i!==r&&DS(e,i,{get:()=>t[i],enumerable:!(n=xtt(t,i))||n.enumerable});return e};var Att=(e,t,r)=>(r=e!=null?ytt(Ttt(e)):{},yee(t||!e||!e.__esModule?DS(r,"default",{value:e,enumerable:!0}):r,e)),pb=e=>yee(DS({},"__esModule",{value:!0}),e);var g6=ye(_ee=>{"use strict";_ee.version="3.4.0"});var bee=ye((xee,m6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof m6!="undefined"&&m6.exports&&(m6.exports=r[t])})("Promise",typeof window!="undefined"?window:xee,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,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(x,C){this.fn=x,this.self=C,this.next=void 0}return{add:function(C,M){T=new L(C,M),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=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,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(k=p.then),typeof k=="function"?k:!1}function l(){for(var p=0;p0&&o(l,E))}catch(T){f.call(new d(E),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,E,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,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}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,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}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,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,kt;if(arguments.length===1){for(;++Te=Ye){He=kt=Ye;break}for(;++TeYe&&(He=Ye),kt=Ye){He=kt=Ye;break}for(;++TeYe&&(He=Ye),kt1)return kt/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var _=v(f);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.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){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(kt=X[se],Te=kt.length;--Te>=0;)Ye[--He]=kt[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 Ne=[],He=k(p(Te)),Ye=-1,kt;if(X*=He,se*=He,Te*=He,Te<0)for(;(kt=X+Te*++Ye)>se;)Ne.push(kt/He);else for(;(kt=X+Te*++Ye)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Hr=jt.length,qr=se[gr++],_i,bi,Zr,ai=new T,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Hr,qr){gr.push({key:Hr,values:kt(qr,jt)})}),yr?gr.sort(function(Hr,qr){return yr(Hr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ye(jt,nt,0)},X.entries=function(nt){return kt(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new U;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new T;function Ne(){for(var He=se,Ye=-1,kt=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),je.hasOwnProperty(Te)?{space:je[Te],local:X}:X}},Pe.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 Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function kt(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:kt:X.local?Ye:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=ot(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=St.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=kt[se])&&++se0&&(X=X.slice(0,He));var kt=er.get(X);kt&&(X=kt,Ye=wr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Hr;for(var qr in this)if(Hr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Hr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?H:gr}var er=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&er.forEach(function(X){"on"+X in n&&er.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function wr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Lr,ti=0;function Br(X){var se=".dragsuppress-"+ ++ti,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Lr==null&&(Lr="onselectstart"in X?!1:j(X.style,"userSelect")),Lr){var He=i(X).style,Ye=He[Lr];He[Lr]="none"}return function(kt){if(Ne.on(se,null),Lr&&(He[Lr]=Ye),kt){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Ce())};var Vr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Vr<0){var He=a(X);if(He.scrollX||He.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();Vr=!(Ye.f||Ye.e),Te.remove()}}return Vr?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var kt=X.getBoundingClientRect();return[se.clientX-kt.left-X.clientLeft,se.clientY-kt.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Ce().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ar(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function vr(X){return X>1?0:X<-1?tt:Math.acos(X)}function ii(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function pi(X){return((X=Math.exp(X))-1/X)/2}function $r(X){return((X=Math.exp(X))+1/X)/2}function di(X){return((X=Math.exp(2*X))-1)/(X+1)}function ji(X){return(X=Math.sin(X/2))*X}var In=Math.SQRT2,wi=2,On=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],kt=se[1],nt=se[2],jt=Ye-Te,gr=kt-Ne,yr=jt*jt+gr*gr,Hr,qr;if(yr0&&(Gn=Gn.transition().duration(kt)),Gn.call(Si.event)}function Ea(){ai&&ai.domain(Zr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Zr.invert)),Ii&&Ii.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,ja=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,dl),$s=ei(e.mouse(Gn)),Sl=Br(Gn);fa.call(Gn),Ia(ja);function bu(){Fo=1,Un(e.mouse(Gn),$s),yo(ja)}function dl(){Uo.on(gr,null).on(yr,null),Sl(Fo),Da(ja)}}function Is(){var Gn=this,ja=bi.of(Gn,arguments),Fo={},Uo=0,$s,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,dl="touchend"+Sl,Sc=[],Me=e.select(Gn),bt=Br(Gn);Rr(),Ia(ja),Me.on(jt,null).on(qr,Rr);function zt(){var Gr=e.touches(Gn);return $s=X.k,Gr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ei(mi))}),Gr}function Rr(){var Gr=e.event.target;e.select(Gr).on(bu,jr).on(dl,Nr),Sc.push(Gr);for(var mi=e.event.changedTouches,Ui=0,qi=mi.length;Ui1){var en=Ei[0],Wi=Ei[1],si=en[0]-Wi[0],Mr=en[1]-Wi[1];Uo=si*si+Mr*Mr}}function jr(){var Gr=e.touches(Gn),mi,Ui,qi,Ei;fa.call(Gn);for(var Hn=0,en=Gr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function kt(nt){return Math.round(Ye(nt)*255)}return new Wa(kt(X+120),kt(X),kt(X-120))}e.hcl=nr;function nr(X,se,Te){return this instanceof nr?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof nr?new nr(X.h,X.c,X.l):X instanceof ri?Sn(X.l,X.a,X.b):Sn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new nr(X,se,Te)}var Er=nr.prototype=new la;Er.brighter=function(X){return new nr(this.h,this.c,Math.min(100,this.l+Qr*(arguments.length?X:1)))},Er.darker=function(X){return new nr(this.h,this.c,Math.max(0,this.l-Qr*(arguments.length?X:1)))},Er.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 ri(Te,Math.cos(X*=ke)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof nr?Xr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var Qr=18,Oi=.95047,$i=1,tn=1.08883,fn=ri.prototype=new la;fn.brighter=function(X){return new ri(Math.min(100,this.l+Qr*(arguments.length?X:1)),this.a,this.b)},fn.darker=function(X){return new ri(Math.max(0,this.l-Qr*(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 Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*Oi,Ne=Ba(Ne)*$i,Ye=Ba(Ye)*tn,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Sn(X,se,Te){return X>0?new nr(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new nr(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,rr):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 la;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ye=jt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ye=jt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,kt,nt,jt=(He+Ne)/2;return Ye?(nt=jt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?kt=(se-Te)/Ye+(se0&&jt<1?0:kt),new Ut(kt,nt,jt)}function jn(X,se,Te){X=Mt(X),se=Mt(se),Te=Mt(Te);var Ne=ua((.4124564*X+.3575761*se+.1804375*Te)/Oi),He=ua((.2126729*X+.7151522*se+.072175*Te)/$i),Ye=ua((.0193339*X+.119192*se+.9503041*Te)/tn);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function Mt(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function kr(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 vi(X){return typeof X=="function"?X:function(){return X}}e.functor=vi,e.xhr=hn(G);function hn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),An(se,Te,X,Ne)}}function An(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),kt={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Hr;if(!yr&&Li(nt)||yr>=200&&yr<300||yr===304){try{Hr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Hr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Hr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Hr}},He.header=function(yr,Hr){return yr=(yr+"").toLowerCase(),arguments.length<2?kt[yr]:(Hr==null?delete kt[yr]:kt[yr]=Hr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Hr,qr){if(arguments.length===2&&typeof Hr=="function"&&(qr=Hr,Hr=null),nt.open(yr,X,!0),se!=null&&!("accept"in kt)&&(kt.accept=se+",*/*"),nt.setRequestHeader)for(var _i in kt)nt.setRequestHeader(_i,kt[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Hr==null?null:Hr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(Mn(Ne))}function Mn(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function Li(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 ytt=Object.create;var DS=Object.defineProperty,_tt=Object.defineProperties,xtt=Object.getOwnPropertyDescriptor,btt=Object.getOwnPropertyDescriptors,wtt=Object.getOwnPropertyNames,g6=Object.getOwnPropertySymbols,Ttt=Object.getPrototypeOf,AO=Object.prototype.hasOwnProperty,pee=Object.prototype.propertyIsEnumerable;var vee=(e,t,r)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_g=(e,t)=>{for(var r in t||(t={}))AO.call(t,r)&&vee(e,r,t[r]);if(g6)for(var r of g6(t))pee.call(t,r)&&vee(e,r,t[r]);return e},j1=(e,t)=>_tt(e,btt(t));var gee=(e,t)=>{var r={};for(var n in e)AO.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&&pee.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),mee=(e,t)=>{for(var r in t)DS(e,r,{get:t[r],enumerable:!0})},yee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wtt(t))!AO.call(e,i)&&i!==r&&DS(e,i,{get:()=>t[i],enumerable:!(n=xtt(t,i))||n.enumerable});return e};var Att=(e,t,r)=>(r=e!=null?ytt(Ttt(e)):{},yee(t||!e||!e.__esModule?DS(r,"default",{value:e,enumerable:!0}):r,e)),pb=e=>yee(DS({},"__esModule",{value:!0}),e);var m6=ye(_ee=>{"use strict";_ee.version="3.4.0"});var bee=ye((xee,y6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof y6!="undefined"&&y6.exports&&(y6.exports=r[t])})("Promise",typeof window!="undefined"?window:xee,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,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(x,C){this.fn=x,this.self=C,this.next=void 0}return{add:function(C,M){T=new L(C,M),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=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,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(k=p.then),typeof k=="function"?k:!1}function l(){for(var p=0;p0&&o(l,E))}catch(T){f.call(new d(E),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,E,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,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}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,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}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,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,kt;if(arguments.length===1){for(;++Te=Ye){He=kt=Ye;break}for(;++TeYe&&(He=Ye),kt=Ye){He=kt=Ye;break}for(;++TeYe&&(He=Ye),kt1)return kt/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var _=v(f);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.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){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(kt=X[se],Te=kt.length;--Te>=0;)Ye[--He]=kt[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 Ne=[],He=k(p(Te)),Ye=-1,kt;if(X*=He,se*=He,Te*=He,Te<0)for(;(kt=X+Te*++Ye)>se;)Ne.push(kt/He);else for(;(kt=X+Te*++Ye)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Hr=jt.length,qr=se[gr++],_i,bi,Zr,ai=new T,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Hr,qr){gr.push({key:Hr,values:kt(qr,jt)})}),yr?gr.sort(function(Hr,qr){return yr(Hr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ye(jt,nt,0)},X.entries=function(nt){return kt(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new U;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new T;function Ne(){for(var He=se,Ye=-1,kt=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),je.hasOwnProperty(Te)?{space:je[Te],local:X}:X}},Pe.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 Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function kt(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:kt:X.local?Ye:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=ot(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=St.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=kt[se])&&++se0&&(X=X.slice(0,He));var kt=er.get(X);kt&&(X=kt,Ye=wr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Hr;for(var qr in this)if(Hr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Hr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?H:gr}var er=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&er.forEach(function(X){"on"+X in n&&er.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function wr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Lr,ti=0;function Br(X){var se=".dragsuppress-"+ ++ti,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Lr==null&&(Lr="onselectstart"in X?!1:j(X.style,"userSelect")),Lr){var He=i(X).style,Ye=He[Lr];He[Lr]="none"}return function(kt){if(Ne.on(se,null),Lr&&(He[Lr]=Ye),kt){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Ce())};var Vr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Vr<0){var He=a(X);if(He.scrollX||He.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();Vr=!(Ye.f||Ye.e),Te.remove()}}return Vr?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var kt=X.getBoundingClientRect();return[se.clientX-kt.left-X.clientLeft,se.clientY-kt.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Ce().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ar(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function vr(X){return X>1?0:X<-1?tt:Math.acos(X)}function ii(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function pi(X){return((X=Math.exp(X))-1/X)/2}function $r(X){return((X=Math.exp(X))+1/X)/2}function di(X){return((X=Math.exp(2*X))-1)/(X+1)}function ji(X){return(X=Math.sin(X/2))*X}var In=Math.SQRT2,wi=2,On=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],kt=se[1],nt=se[2],jt=Ye-Te,gr=kt-Ne,yr=jt*jt+gr*gr,Hr,qr;if(yr0&&(Gn=Gn.transition().duration(kt)),Gn.call(Si.event)}function Ea(){ai&&ai.domain(Zr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Zr.invert)),Ii&&Ii.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,ja=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,dl),$s=ei(e.mouse(Gn)),Sl=Br(Gn);fa.call(Gn),Ia(ja);function bu(){Fo=1,Un(e.mouse(Gn),$s),yo(ja)}function dl(){Uo.on(gr,null).on(yr,null),Sl(Fo),Da(ja)}}function Is(){var Gn=this,ja=bi.of(Gn,arguments),Fo={},Uo=0,$s,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,dl="touchend"+Sl,Sc=[],Me=e.select(Gn),bt=Br(Gn);Rr(),Ia(ja),Me.on(jt,null).on(qr,Rr);function zt(){var Gr=e.touches(Gn);return $s=X.k,Gr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ei(mi))}),Gr}function Rr(){var Gr=e.event.target;e.select(Gr).on(bu,jr).on(dl,Nr),Sc.push(Gr);for(var mi=e.event.changedTouches,Ui=0,qi=mi.length;Ui1){var en=Ei[0],Wi=Ei[1],si=en[0]-Wi[0],Mr=en[1]-Wi[1];Uo=si*si+Mr*Mr}}function jr(){var Gr=e.touches(Gn),mi,Ui,qi,Ei;fa.call(Gn);for(var Hn=0,en=Gr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function kt(nt){return Math.round(Ye(nt)*255)}return new Wa(kt(X+120),kt(X),kt(X-120))}e.hcl=nr;function nr(X,se,Te){return this instanceof nr?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof nr?new nr(X.h,X.c,X.l):X instanceof ri?Sn(X.l,X.a,X.b):Sn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new nr(X,se,Te)}var Er=nr.prototype=new la;Er.brighter=function(X){return new nr(this.h,this.c,Math.min(100,this.l+Qr*(arguments.length?X:1)))},Er.darker=function(X){return new nr(this.h,this.c,Math.max(0,this.l-Qr*(arguments.length?X:1)))},Er.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 ri(Te,Math.cos(X*=ke)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof nr?Xr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var Qr=18,Oi=.95047,$i=1,tn=1.08883,fn=ri.prototype=new la;fn.brighter=function(X){return new ri(Math.min(100,this.l+Qr*(arguments.length?X:1)),this.a,this.b)},fn.darker=function(X){return new ri(Math.max(0,this.l-Qr*(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 Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*Oi,Ne=Ba(Ne)*$i,Ye=Ba(Ye)*tn,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Sn(X,se,Te){return X>0?new nr(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new nr(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,rr):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 la;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ye=jt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ye=jt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,kt,nt,jt=(He+Ne)/2;return Ye?(nt=jt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?kt=(se-Te)/Ye+(se0&&jt<1?0:kt),new Ut(kt,nt,jt)}function jn(X,se,Te){X=Mt(X),se=Mt(se),Te=Mt(Te);var Ne=ua((.4124564*X+.3575761*se+.1804375*Te)/Oi),He=ua((.2126729*X+.7151522*se+.072175*Te)/$i),Ye=ua((.0193339*X+.119192*se+.9503041*Te)/tn);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function Mt(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function kr(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 vi(X){return typeof X=="function"?X:function(){return X}}e.functor=vi,e.xhr=hn(G);function hn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),An(se,Te,X,Ne)}}function An(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),kt={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Hr;if(!yr&&Li(nt)||yr>=200&&yr<300||yr===304){try{Hr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Hr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Hr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Hr}},He.header=function(yr,Hr){return yr=(yr+"").toLowerCase(),arguments.length<2?kt[yr]:(Hr==null?delete kt[yr]:kt[yr]=Hr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Hr,qr){if(arguments.length===2&&typeof Hr=="function"&&(qr=Hr,Hr=null),nt.open(yr,X,!0),se!=null&&!("accept"in kt)&&(kt.accept=se+",*/*"),nt.setRequestHeader)for(var _i in kt)nt.setRequestHeader(_i,kt[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Hr==null?null:Hr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(Mn(Ne))}function Mn(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function Li(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` ]`),Ne=X.charCodeAt(0);function He(gr,yr,Hr){arguments.length<3&&(Hr=yr,yr=null);var qr=An(gr,se,yr==null?Ye:kt(yr),Hr);return qr.row=function(_i){return arguments.length?qr.response((yr=_i)==null?Ye:kt(_i)):yr},qr}function Ye(gr){return He.parse(gr.responseText)}function kt(gr){return function(yr){return He.parse(yr.responseText,gr)}}He.parse=function(gr,yr){var Hr;return He.parseRows(gr,function(qr,_i){if(Hr)return Hr(qr,_i-1);var bi=function(Zr){for(var ai={},gi=qr.length,Ii=0;Ii=bi)return qr;if(Ii)return Ii=!1,Hr;var Ln=Zr;if(gr.charCodeAt(Ln)===34){for(var En=Ln;En++24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),$n=0):($n=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;--nt)Zr.push(He[gr[Hr[nt]][2]]);for(nt=+_i;nt1&&ar(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function ul(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(kt=se-xo(nt,Te),kt>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Je?(Ne=nt.P,He=nt):kt>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=bs(X);if(zs.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=bs(Ne.site),zs.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Hr=gr.y,qr=X.x-yr,_i=X.y-Hr,bi=He.site,Zr=bi.x-yr,ai=bi.y-Hr,gi=2*(qr*ai-_i*Zr),Ii=qr*qr+_i*_i,Si=Zr*Zr+ai*ai,ei={x:(ai*Ii-_i*Si)/gi+yr,y:(qr*Si-Zr*Ii)/gi+Hr};pl(He.edge,gr,bi,ei),jt.edge=rf(gr,X,null,ei),He.edge=rf(X,bi,null,ei),aa(Ne),aa(He)}}function Ol(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var kt=X.P;if(!kt)return-1/0;Te=kt.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Hr=1/Ye-1/gr,qr=yr/gr;return Hr?(-qr+Math.sqrt(qr*qr-2*Hr*(yr*yr/(-2*gr)-jt+gr/2+He-Ye/2)))/Hr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return Ol(Te,se);var Ne=X.site;return Ne.y===se?Ne.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],Ne=X[0][1],He=X[1][1],Ye,kt,nt,jt,gr=Ks,yr=gr.length,Hr,qr,_i,bi,Zr,ai;yr--;)if(Hr=gr[yr],!(!Hr||!Hr.prepare()))for(_i=Hr.edges,bi=_i.length,qr=0;qrJe||p(jt-kt)>Je)&&(_i.splice(qr,0,new Zc(Vf(Hr.site,ai,p(nt-se)Je?{x:se,y:p(Ye-se)Je?{x:p(kt-He)Je?{x:Te,y:p(Ye-Te)Je?{x:p(kt-Ne)=-We)){var qr=jt*jt+gr*gr,_i=yr*yr+ai*ai,bi=(ai*qr-gr*_i)/Hr,Zr=(jt*_i-yr*qr)/Hr,ai=Zr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+kt,gi.y=ai+Math.sqrt(bi*bi+Zr*Zr),gi.cy=ai,X.circle=gi;for(var Ii=null,Si=Yl._;Si;)if(gi.y0)){if(Zr/=_i,_i<0){if(Zr0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}if(Zr=Te-nt,!(!_i&&Zr<0)){if(Zr/=_i,_i<0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}else if(_i>0){if(Zr0)){if(Zr/=bi,bi<0){if(Zr0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}if(Zr=Ne-jt,!(!bi&&Zr<0)){if(Zr/=bi,bi<0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}else if(bi>0){if(Zr0&&(He.a={x:nt+Hr*_i,y:jt+Hr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function ql(X){for(var se=cl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:kt};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(kt-gi)/ai,y:kt};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ai,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ai,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ai*Ye+gi}}else{if(!Ne)Ne={x:Ye,y:ai*Ye+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Hr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Hr],[yr,Hr]]:[];Ii.point=jt[Zr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return kt.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},kt.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Hr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Zr=_i.length,ai,gi,Ii=_i[Zr-1].edge,Si=Ii.l===qr?Ii.r:Ii.l;++biSi&&(Si=yr.x),yr.y>ei&&(ei=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Zr=0;ZrSi&&(Si=Ln),En>ei&&(ei=En),_i.push(Ln),bi.push(En)}var Un=Si-gi,ia=ei-Ii;Un>ia?ei=Ii+Un:Si=gi+ia;function Ea(Da,go,Is,Ms,Xs,Gn,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,Gn,ja,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,$s,Xs,Gn,ja,Fo),Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo)}else Da.x=Is,Da.y=Ms,Da.point=go}else Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo)}function Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo){var Uo=(Xs+ja)*.5,$s=(Gn+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?Gn=$s:Fo=$s,Ea(Da,go,Is,Ms,Xs,Gn,ja,Fo)}var yo=$l();if(yo.add=function(Da){Ea(yo,Da,+Hr(Da,++Zr),+qr(Da,Zr),gi,Ii,Si,ei)},yo.visit=function(Da){fl(Da,yo,gi,Ii,Si,ei)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Ii,Si,ei)},Zr=-1,se==null){for(;++ZrYe||qr>kt||_i=Ln,ia=Te>=En,Ea=ia<<1|Un,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[kt]?nt[kt]+=Ye:nt[++kt]=Ye),(Ne=Ne[0])===(He=He[0])?nt[kt]?nt[kt]+=He:nt[++kt]=He:(nt[++kt]=null,jt.push({i:kt,x:Hs(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}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 la?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Es:Hs)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,kt=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=od.get(Te)||qs,Ne=Po.get(Ne)||G,sd(Ne(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 af(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*xe)}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(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-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,Ne=X.c,He=X.l,Ye=se.h-Te,kt=se.c-Ne,nt=se.l-He;return isNaN(kt)&&(kt=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return Xr(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,kt=se.s-Ne,nt=se.l-He;return isNaN(kt)&&(kt=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return rr(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,kt=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}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 Ne=se.transform.baseVal.consolidate()}return new jf(Ne?Ne.matrix:Kc)})(X)};function jf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ye=of(Nl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.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,Ne){X!==se?Ne.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,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:Hs(X[0],se[0])},{i:He-2,x:Hs(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),gs(X.translate,se.translate,Te,Ne),Wf(X.rotate,se.rotate,Te,Ne),Wh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,kt=Ne.length,nt;++Ye0?Ye=ei:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ei>0&&(se.start({type:"start",alpha:Ye=ei}),Te=No(X.tick)),X):Ye},X.start=function(){var ei,Ln=_i.length,En=bi.length,Un=Ne[0],ia=Ne[1],Ea,Ia;for(ei=0;ei=0;)Ye.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Hr){var qr,_i;X&&(qr=Hr.children)&&qr.sort(X),Te&&(_i=Hr.parent)&&(_i.value+=Hr.value)}),kt}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var kt;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(kt=Ye.parent)&&(kt.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(kt=X.children)&&(Ye=kt.length))for(var He=-1,Ye,kt;++HeHe&&(He=nt),Ne.push(nt)}for(kt=0;ktNe&&(Te=se,Ne=He);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,Ne=zc;function He(Ye,qr){for(var nt=[],jt=Ye.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Hr,qr=-1,_i=jt.length,bi=yr.length-1,Zr=X?1:1/_i,ai;++qr0)for(qr=-1;++qr<_i;)ai=jt[qr],ai>=gr[0]&&ai<=gr[1]&&(Hr=nt[e.bisect(yr,ai,1,bi)-1],Hr.y+=Zr,Hr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=vi(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(kt){return Wu(kt,Ye)}:vi(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;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],Ne;function He(Ye,kt){var nt=X.call(this,Ye,kt),jt=nt[0],gr=Te[0],yr=Te[1],Hr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Hr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(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,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,kt,nt,jt,gr,yr,Hr,qr;function _i(ei){Te=Math.min(ei.x-ei.r,Te),Ne=Math.max(ei.x+ei.r,Ne),He=Math.min(ei.y-ei.r,He),Ye=Math.max(ei.y+ei.r,Ye)}if(se.forEach(Zu),kt=se[0],kt.x=-kt.r,kt.y=0,_i(kt),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],wl(kt,nt,jt),_i(jt),uf(kt,jt),kt._pack_prev=jt,uf(jt,nt),nt=kt._pack_next,gr=3;grai.x&&(ai=Ln),Ln.depth>gi.depth&&(gi=Ln)});var Ii=se(Zr,ai)/2-Zr.x,Si=Te[0]/(ai.x+se(ai,Zr)/2+Ii),ei=Te[1]/(gi.depth||1);Fc(_i,function(Ln){Ln.x=(Ln.x+Ii)*Si,Ln.y=Ln.depth*ei})}return qr}function Ye(yr){for(var Hr={A:null,children:[yr]},qr=[Hr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Zr,ai=0,gi=bi.length;ai0&&(fc(At(Zr,yr,qr),yr,Ln),gi+=Ln,Ii+=Ln),Si+=Zr.m,gi+=_i.m,ei+=ai.m,Ii+=bi.m;Zr&&!cf(bi)&&(bi.t=Zr,bi.m+=Si-Ii),_i&&!qc(ai)&&(ai.t=_i,ai.m+=gi-ei,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function vu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function At(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],Ne=!1;function He(Ye,kt){var nt=X.call(this,Ye,kt),jt=nt[0],gr,yr=0;wc(jt,function(Zr){var ai=Zr.children;ai&&ai.length?(Zr.x=Cr(ai),Zr.y=Xt(ai)):(Zr.x=gr?yr+=se(Zr,gr):0,Zr.y=0,gr=Zr)});var Hr=Ar(jt),qr=Kr(jt),_i=Hr.x-se(Hr,qr)/2,bi=qr.x+se(qr,Hr)/2;return wc(jt,Ne?function(Zr){Zr.x=(Zr.x-jt.x)*Te[0],Zr.y=(jt.y-Zr.y)*Te[1]}:function(Zr){Zr.x=(Zr.x-_i)/(bi-_i)*Te[0],Zr.y=(1-(jt.y?Zr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function Cr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(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],Ne=null,He=ki,Ye=!1,kt,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Zr,ai){for(var gi=-1,Ii=Zr.length,Si,ei;++gi0;)Ii.push(ei=Si[ia-1]),Ii.area+=ei.area,nt!=="squarify"||(En=qr(Ii,Un))<=Ln?(Si.pop(),Ln=En):(Ii.area-=Ii.pop().area,_i(Ii,Un,gi,!1),Un=Math.min(gi.dx,gi.dy),Ii.length=Ii.area=0,Ln=1/0);Ii.length&&(_i(Ii,Un,gi,!0),Ii.length=Ii.area=0),ai.forEach(yr)}}function Hr(Zr){var ai=Zr.children;if(ai&&ai.length){var gi=He(Zr),Ii=ai.slice(),Si,ei=[];for(gr(Ii,gi.dx*gi.dy/Zr.value),ei.area=0;Si=Ii.pop();)ei.push(Si),ei.area+=Si.area,Si.z!=null&&(_i(ei,Si.z?gi.dx:gi.dy,gi,!Ii.length),ei.length=ei.area=0);ai.forEach(Hr)}}function qr(Zr,ai){for(var gi=Zr.area,Ii,Si=0,ei=1/0,Ln=-1,En=Zr.length;++LnSi&&(Si=Ii));return gi*=gi,ai*=ai,gi?Math.max(ai*Si*jt/gi,gi/(ai*ei*jt)):1/0}function _i(Zr,ai,gi,Ii){var Si=-1,ei=Zr.length,Ln=gi.x,En=gi.y,Un=ai?se(Zr.area/ai):0,ia;if(ai==gi.dx){for((Ii||Un>gi.dy)&&(Un=gi.dy);++Sigi.dx)&&(Un=gi.dx);++Si1);return X+se*Ne*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:Nn,gr=Ne?Mu:Sh;return He=jt(X,se,gr,Te),Ye=jt(se,X,gr,xl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ye(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),kt()):X},nt.range=function(jt){return arguments.length?(se=jt,kt()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,kt()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,kt()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),kt()},nt.copy=function(){return Qn(X,se,Te,Ne)},kt()}function Ca(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Yi(X,Qi(La(X,se)[2])),Yi(X,Qi(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=dn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={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 Yn?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,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function kt(nt){return X(He(nt))}return kt.invert=function(nt){return Ye(X.invert(nt))},kt.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),kt):Ne},kt.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),kt):se},kt.nice=function(){var nt=Yi(Ne.map(He),Te?Math:Zo);return X.domain(nt),Ne=nt.map(Ye),kt},kt.ticks=function(){var nt=dn(Ne),jt=[],gr=nt[0],yr=nt[1],Hr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Hr)){if(Te){for(;Hr0;bi--)jt.push(Ye(Hr)*bi);for(Hr=0;jt[Hr]yr;qr--);jt=jt.slice(Hr,qr)}return jt},kt.copy=function(){return bo(X.copy(),se,Te,Ne)},Ca(kt,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 Ne=as(se),He=as(1/se);function Ye(kt){return X(Ne(kt))}return Ye.invert=function(kt){return He(X.invert(kt))},Ye.domain=function(kt){return arguments.length?(X.domain((Te=kt.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(kt){return Na(Te,kt)},Ye.tickFormat=function(kt,nt){return d3_scale_linearTickFormat(Te,kt,nt)},Ye.nice=function(kt){return Ye.domain(Ra(Te,kt))},Ye.exponent=function(kt){return arguments.length?(Ne=as(se=kt),He=as(1/se),X.domain(Te.map(Ne)),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,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function kt(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new T;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Zr,ai,gi,Ii,Si=0,ei=0,Ln,En,Un,ia,Ea,Ia,yo,Da,go=[];if((Ii=(+kt.apply(this,arguments)||0)/2)&&(gi=Ne===Cu?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ei*=-1),yr&&(ei=ii(gi/yr*Math.sin(Ii))),gr&&(Si=ii(gi/gr*Math.sin(Ii)))),yr){Ln=yr*Math.cos(Hr+ei),En=yr*Math.sin(Hr+ei),Un=yr*Math.cos(qr-ei),ia=yr*Math.sin(qr-ei);var Is=Math.abs(qr-Hr-2*ei)<=tt?0:1;if(ei&&Ac(Ln,En,Un,ia)===bi^Is){var Ms=(Hr+qr)/2;Ln=yr*Math.cos(Ms),En=yr*Math.sin(Ms),Un=ia=null}}else Ln=En=0;if(gr){Ea=gr*Math.cos(qr-Si),Ia=gr*Math.sin(qr-Si),yo=gr*Math.cos(Hr+Si),Da=gr*Math.sin(Hr+Si);var Xs=Math.abs(Hr-qr+2*Si)<=tt?0:1;if(Si&&Ac(Ea,Ia,yo,Da)===1-bi^Xs){var Gn=(Hr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Zr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ai=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],kt=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+kt*kt),jt=nt*kt,gr=-nt*Ye,yr=X[0]+jt,Hr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Zr=(Hr+_i)/2,ai=qr-yr,gi=_i-Hr,Ii=ai*ai+gi*gi,Si=Te-Ne,ei=yr*_i-qr*Hr,Ln=(gi<0?-1:1)*Math.sqrt(Math.max(0,Si*Si*Ii-ei*ei)),En=(ei*gi-ai*Ln)/Ii,Un=(-ei*ai-gi*Ln)/Ii,ia=(ei*gi+ai*Ln)/Ii,Ea=(-ei*ai+gi*Ln)/Ii,Ia=En-bi,yo=Un-Zr,Da=ia-bi,go=Ea-Zr;return Ia*Ia+yo*yo>Da*Da+go*go&&(En=ia,Un=Ea),[[En-jt,Un-gr],[En*Te/Si,Un*Te/Si]]}function oo(){return!0}function Vc(X){var se=Ds,Te=Fs,Ne=oo,He=Ku,Ye=He.key,kt=.7;function nt(jt){var gr=[],yr=[],Hr=-1,qr=jt.length,_i,bi=vi(se),Zr=vi(Te);function ai(){gr.push("M",He(X(yr),kt))}for(;++Hr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[jt],jt++,Ne+="C"+(He[0]+kt[0])+","+(He[1]+kt[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),kt[nt]=Ye*Ne,kt[nt+1]=Ye*He));for(nt=-1;++nt<=jt;)Ye=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+kt[nt]*kt[nt])),se.push([Ye||0,kt[nt]*Ye||0]);return se}function Ft(X){return X.length<3?Ku(X):X[0]+Ze(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ye;++Tett)+",1 "+Hr}function gr(yr,Hr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=vi(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=vi(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=vi(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=vi(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=vi(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=Wr;function Ne(He,Ye){var kt=X.call(this,He,Ye),nt=se.call(this,He,Ye),jt=(kt.y+nt.y)/2,gr=[kt,{x:kt.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=vi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=vi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function Wr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=Wr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ni(se=Ne)):se},X};function ni(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=cn,se=Pi;function Te(Ne,He){return(Cn.get(X.call(this,Ne,He))||ln)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=vi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=vi(Ne),Te):se},Te};function Pi(){return 64}function cn(){return"circle"}function ln(X){var se=Math.sqrt(X/tt);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Cn=e.map({circle:ln,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=Cn.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*ke);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,kt=Ps||{time:Date.now(),ease:bl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Hr[--Ii].call(X,gi);if(ai>=1)return kt.event&&kt.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}kt||(nt=He.time,jt=No(qr,0,nt),kt=Ye[Ne]={tween:new T,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,Ne=6,He=3,Ye=[10],kt=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Hr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=kt==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():kt,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Zr=yr.selectAll(".tick").data(_i,qr),ai=Zr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Zr.exit()).style("opacity",Je).remove(),Ii=e.transition(Zr.order()).style("opacity",1),Si=Math.max(Te,0)+He,ei,Ln=wn(qr),En=yr.selectAll(".domain").data([0]),Un=(En.enter().append("path").attr("class","domain"),e.transition(En));ai.append("line"),ai.append("text");var ia=ai.select("line"),Ea=Ii.select("line"),Ia=Zr.select("text").text(bi),yo=ai.select("text"),Da=Ii.select("text"),go=se==="top"||se==="left"?-1:1,Is,Ms,Xs,Gn;if(se==="bottom"||se==="top"?(ei=au,Is="x",Xs="y",Ms="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Un.attr("d","M"+Ln[0]+","+go*Ne+"V0H"+Ln[1]+"V"+go*Ne)):(ei=Js,Is="y",Xs="x",Ms="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Un.attr("d","M"+go*Ne+","+Ln[0]+"H0V"+Ln[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Xs,go*Si),Ea.attr(Ms,0).attr(Gn,go*Te),Da.attr(Is,0).attr(Xs,go*Si),qr.rangeBand){var ja=qr,Fo=ja.rangeBand()/2;Hr=qr=function(Uo){return ja(Uo)+Fo}}else Hr.rangeBand?Hr=qr:gi.call(ei,qr,Hr);ai.call(ei,Hr,qr),Ii.call(ei,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Ul,jt):se},jt.ticks=function(){return arguments.length?(Ye=r(arguments),jt):Ye},jt.tickValues=function(gr){return arguments.length?(kt=gr,jt):kt},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function Js(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=Le(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,kt,nt=!0,jt=!0,gr=dc[0];function yr(Zr){Zr.each(function(){var ai=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ai.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ai.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ii=ai.selectAll(".resize").data(gr,G);Ii.exit().remove(),Ii.enter().append("g").attr("class",function(En){return"resize "+En}).style("cursor",function(En){return eu[En]}).append("rect").attr("x",function(En){return/[ew]$/.test(En)?-3:null}).attr("y",function(En){return/^[ns]/.test(En)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ii.style("display",yr.empty()?"none":null);var Si=e.transition(ai),ei=e.transition(gi),Ln;se&&(Ln=wn(se),ei.attr("x",Ln[0]).attr("width",Ln[1]-Ln[0]),qr(Si)),Te&&(Ln=wn(Te),ei.attr("y",Ln[0]).attr("height",Ln[1]-Ln[0]),_i(Si)),Hr(Si)})}yr.event=function(Zr){Zr.each(function(){var ai=X.of(this,arguments),gi={x:Ne,y:He,i:Ye,j:kt},Ii=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Ii.i,kt=Ii.j,Ne=Ii.x,He=Ii.y,ai({type:"brushstart"})}).tween("brush:brush",function(){var Si=Gu(Ne,gi.x),ei=Gu(He,gi.y);return Ye=kt=null,function(Ln){Ne=gi.x=Si(Ln),He=gi.y=ei(Ln),ai({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=gi.i,kt=gi.j,ai({type:"brush",mode:"resize"}),ai({type:"brushend"})}):(ai({type:"brushstart"}),ai({type:"brush",mode:"resize"}),ai({type:"brushend"}))})};function Hr(Zr){Zr.selectAll(".resize").attr("transform",function(ai){return"translate("+Ne[+/e$/.test(ai)]+","+He[+/^s/.test(ai)]+")"})}function qr(Zr){Zr.select(".extent").attr("x",Ne[0]),Zr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Zr){Zr.select(".extent").attr("y",He[0]),Zr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Zr=this,ai=e.select(e.event.target),gi=X.of(Zr,arguments),Ii=e.select(Zr),Si=ai.datum(),ei=!/^(n|s)$/.test(Si)&&se,Ln=!/^(e|w)$/.test(Si)&&Te,En=ai.classed("extent"),Un=Br(Zr),ia,Ea=e.mouse(Zr),Ia,yo=e.select(a(Zr)).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),Ii.interrupt().selectAll("*").interrupt(),En)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Si){var Da=+/w$/.test(Si),go=+/^n/.test(Si);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Ii.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ai.style("cursor")),gi({type:"brushstart"}),Xs();function Is(){e.event.keyCode==32&&(En||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],En=2),_e())}function Ms(){e.event.keyCode==32&&En==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],En=0,_e())}function Xs(){var Fo=e.mouse(Zr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),En||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof _6=="object"&&typeof wee!="undefined"?t(_6):(e=e||self,t(e.d3=e.d3||{}))})(_6,function(e){"use strict";var t=new Date,r=new Date;function n($e,St,Qt,Gt){function _t(It){return $e(It=arguments.length===0?new Date:new Date(+It)),It}return _t.floor=function(It){return $e(It=new Date(+It)),It},_t.ceil=function(It){return $e(It=new Date(It-1)),St(It,1),$e(It),It},_t.round=function(It){var mt=_t(It),er=_t.ceil(It);return It-mt0))return lr;do lr.push(wr=new Date(+It)),St(It,er),$e(It);while(wr=mt)for(;$e(mt),!It(mt);)mt.setTime(mt-1)},function(mt,er){if(mt>=mt)if(er<0)for(;++er<=0;)for(;St(mt,-1),!It(mt););else for(;--er>=0;)for(;St(mt,1),!It(mt););})},Qt&&(_t.count=function(It,mt){return t.setTime(+It),r.setTime(+mt),$e(t),$e(r),Math.floor(Qt(t,r))},_t.every=function(It){return It=Math.floor(It),!isFinite(It)||!(It>0)?null:It>1?_t.filter(Gt?function(mt){return Gt(mt)%It===0}:function(mt){return _t.count(0,mt)%It===0}):_t}),_t}var i=n(function(){},function($e,St){$e.setTime(+$e+St)},function($e,St){return St-$e});i.every=function($e){return $e=Math.floor($e),!isFinite($e)||!($e>0)?null:$e>1?n(function(St){St.setTime(Math.floor(St/$e)*$e)},function(St,Qt){St.setTime(+St+Qt*$e)},function(St,Qt){return(Qt-St)/$e}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function($e){$e.setTime($e-$e.getMilliseconds())},function($e,St){$e.setTime(+$e+St*o)},function($e,St){return(St-$e)/o},function($e){return $e.getUTCSeconds()}),h=f.range,d=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o)},function($e,St){$e.setTime(+$e+St*s)},function($e,St){return(St-$e)/s},function($e){return $e.getMinutes()}),v=d.range,_=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o-$e.getMinutes()*s)},function($e,St){$e.setTime(+$e+St*l)},function($e,St){return(St-$e)/l},function($e){return $e.getHours()}),b=_.range,p=n(function($e){$e.setHours(0,0,0,0)},function($e,St){$e.setDate($e.getDate()+St)},function($e,St){return(St-$e-(St.getTimezoneOffset()-$e.getTimezoneOffset())*s)/u},function($e){return $e.getDate()-1}),k=p.range;function E($e){return n(function(St){St.setDate(St.getDate()-(St.getDay()+7-$e)%7),St.setHours(0,0,0,0)},function(St,Qt){St.setDate(St.getDate()+Qt*7)},function(St,Qt){return(Qt-St-(Qt.getTimezoneOffset()-St.getTimezoneOffset())*s)/c})}var T=E(0),L=E(1),x=E(2),C=E(3),M=E(4),g=E(5),P=E(6),A=T.range,z=L.range,O=x.range,U=C.range,G=M.range,Z=g.range,j=P.range,N=n(function($e){$e.setDate(1),$e.setHours(0,0,0,0)},function($e,St){$e.setMonth($e.getMonth()+St)},function($e,St){return St.getMonth()-$e.getMonth()+(St.getFullYear()-$e.getFullYear())*12},function($e){return $e.getMonth()}),H=N.range,re=n(function($e){$e.setMonth(0,1),$e.setHours(0,0,0,0)},function($e,St){$e.setFullYear($e.getFullYear()+St)},function($e,St){return St.getFullYear()-$e.getFullYear()},function($e){return $e.getFullYear()});re.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(St){St.setFullYear(Math.floor(St.getFullYear()/$e)*$e),St.setMonth(0,1),St.setHours(0,0,0,0)},function(St,Qt){St.setFullYear(St.getFullYear()+Qt*$e)})};var oe=re.range,_e=n(function($e){$e.setUTCSeconds(0,0)},function($e,St){$e.setTime(+$e+St*s)},function($e,St){return(St-$e)/s},function($e){return $e.getUTCMinutes()}),Ce=_e.range,Le=n(function($e){$e.setUTCMinutes(0,0,0)},function($e,St){$e.setTime(+$e+St*l)},function($e,St){return(St-$e)/l},function($e){return $e.getUTCHours()}),ge=Le.range,ie=n(function($e){$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCDate($e.getUTCDate()+St)},function($e,St){return(St-$e)/u},function($e){return $e.getUTCDate()-1}),Se=ie.range;function Ee($e){return n(function(St){St.setUTCDate(St.getUTCDate()-(St.getUTCDay()+7-$e)%7),St.setUTCHours(0,0,0,0)},function(St,Qt){St.setUTCDate(St.getUTCDate()+Qt*7)},function(St,Qt){return(Qt-St)/c})}var Ae=Ee(0),Be=Ee(1),Pe=Ee(2),me=Ee(3),De=Ee(4),ce=Ee(5),je=Ee(6),lt=Ae.range,pt=Be.range,Vt=Pe.range,ot=me.range,ut=De.range,Wt=ce.range,Nt=je.range,$t=n(function($e){$e.setUTCDate(1),$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCMonth($e.getUTCMonth()+St)},function($e,St){return St.getUTCMonth()-$e.getUTCMonth()+(St.getUTCFullYear()-$e.getUTCFullYear())*12},function($e){return $e.getUTCMonth()}),sr=$t.range,Tr=n(function($e){$e.setUTCMonth(0,1),$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCFullYear($e.getUTCFullYear()+St)},function($e,St){return St.getUTCFullYear()-$e.getUTCFullYear()},function($e){return $e.getUTCFullYear()});Tr.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(St){St.setUTCFullYear(Math.floor(St.getUTCFullYear()/$e)*$e),St.setUTCMonth(0,1),St.setUTCHours(0,0,0,0)},function(St,Qt){St.setUTCFullYear(St.getUTCFullYear()+Qt*$e)})};var fr=Tr.range;e.timeDay=p,e.timeDays=k,e.timeFriday=g,e.timeFridays=Z,e.timeHour=_,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=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=O,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Wt,e.utcHour=Le,e.utcHours=ge,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Ce,e.utcMonday=Be,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=je,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=lt,e.utcThursday=De,e.utcThursdays=ut,e.utcTuesday=Pe,e.utcTuesdays=Vt,e.utcWednesday=me,e.utcWednesdays=ot,e.utcWeek=Ae,e.utcWeeks=lt,e.utcYear=Tr,e.utcYears=fr,Object.defineProperty(e,"__esModule",{value:!0})})});var f3=ye((x6,Tee)=>{(function(e,t){typeof x6=="object"&&typeof Tee!="undefined"?t(x6,SO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(x6,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,tt=Ge.time,xt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,ke=Ge.months,vt=Ge.shortMonths,ir=h(xt),ar=d(xt),vr=h(Ie),ii=d(Ie),pi=h(xe),$r=d(xe),di=h(ke),ji=d(ke),In=h(vt),wi=d(vt),On={a:$i,A:tn,b:fn,B:yn,c:null,d:N,e:N,f:Ce,H,I:re,j:oe,L:_e,m:Le,M:ge,p:Sn,q:Ba,Q:mt,s:er,S:ie,u:Se,U:Ee,V:Ae,w:Be,W:Pe,x:null,X:null,y:me,Y:De,Z:ce,"%":It},qn={a:ua,A:ma,b:Wa,B:Fa,c:null,d:je,e:je,f:ut,H:lt,I:pt,j:Vt,L:ot,m:Wt,M:Nt,p:Xo,q:da,Q:mt,s:er,S:$t,u:sr,U:Tr,V:fr,w:$e,W:St,x:null,X:null,y:Qt,Y:Gt,Z:_t,"%":It},Fn={a:rr,A:nr,b:Er,B:Xr,c:ri,d:M,e:M,f:U,H:P,I:P,j:g,L:O,m:C,M:A,p:wt,q:x,Q:Z,s:j,S:z,u:_,U:b,V:p,w:v,W:k,x:Qr,X:Oi,y:T,Y:E,Z:L,"%":G};On.x=ra(We,On),On.X=ra(tt,On),On.c=ra(Je,On),qn.x=ra(We,qn),qn.X=ra(tt,qn),qn.c=ra(Je,qn);function ra(Wn,Ha){return function(vo){var jn=[],Mt=-1,kr=0,Jr=Wn.length,vi,hn,An;for(vo instanceof Date||(vo=new Date(+vo));++Mt53)return null;"w"in jn||(jn.w=1),"Z"in jn?(kr=n(i(jn.y,0,1)),Jr=kr.getUTCDay(),kr=Jr>4||Jr===0?t.utcMonday.ceil(kr):t.utcMonday(kr),kr=t.utcDay.offset(kr,(jn.V-1)*7),jn.y=kr.getUTCFullYear(),jn.m=kr.getUTCMonth(),jn.d=kr.getUTCDate()+(jn.w+6)%7):(kr=r(i(jn.y,0,1)),Jr=kr.getDay(),kr=Jr>4||Jr===0?t.timeMonday.ceil(kr):t.timeMonday(kr),kr=t.timeDay.offset(kr,(jn.V-1)*7),jn.y=kr.getFullYear(),jn.m=kr.getMonth(),jn.d=kr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Jr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Jr+5)%7:jn.w+jn.U*7-(Jr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Ut(Wn,Ha,vo,jn){for(var Mt=0,kr=Ha.length,Jr=vo.length,vi,hn;Mt=Jr)return-1;if(vi=Ha.charCodeAt(Mt++),vi===37){if(vi=Ha.charAt(Mt++),hn=Fn[vi in o?Ha.charAt(Mt++):vi],!hn||(jn=hn(Wn,vo,jn))<0)return-1}else if(vi!=vo.charCodeAt(jn++))return-1}return jn}function wt(Wn,Ha,vo){var jn=ir.exec(Ha.slice(vo));return jn?(Wn.p=ar[jn[0].toLowerCase()],vo+jn[0].length):-1}function rr(Wn,Ha,vo){var jn=pi.exec(Ha.slice(vo));return jn?(Wn.w=$r[jn[0].toLowerCase()],vo+jn[0].length):-1}function nr(Wn,Ha,vo){var jn=vr.exec(Ha.slice(vo));return jn?(Wn.w=ii[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ha,vo){var jn=In.exec(Ha.slice(vo));return jn?(Wn.m=wi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Xr(Wn,Ha,vo){var jn=di.exec(Ha.slice(vo));return jn?(Wn.m=ji[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ha,vo){return Ut(Wn,Je,Ha,vo)}function Qr(Wn,Ha,vo){return Ut(Wn,We,Ha,vo)}function Oi(Wn,Ha,vo){return Ut(Wn,tt,Ha,vo)}function $i(Wn){return xe[Wn.getDay()]}function tn(Wn){return Ie[Wn.getDay()]}function fn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return ke[Wn.getMonth()]}function Sn(Wn){return xt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function ua(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return ke[Wn.getUTCMonth()]}function Xo(Wn){return xt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ha=ra(Wn+="",On);return Ha.toString=function(){return Wn},Ha},parse:function(Wn){var Ha=la(Wn+="",!1);return Ha.toString=function(){return Wn},Ha},utcFormat:function(Wn){var Ha=ra(Wn+="",qn);return Ha.toString=function(){return Wn},Ha},utcParse:function(Wn){var Ha=la(Wn+="",!0);return Ha.toString=function(){return Wn},Ha}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,We){var tt=Ge<0?"-":"",xt=(tt?-Ge:Ge)+"",Ie=xt.length;return tt+(Ie68?1900:2e3),We+tt[0].length):-1}function L(Ge,Je,We){var tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(We,We+6));return tt?(Ge.Z=tt[1]?0:-(tt[2]+(tt[3]||"00")),We+tt[0].length):-1}function x(Ge,Je,We){var tt=s.exec(Je.slice(We,We+1));return tt?(Ge.q=tt[0]*3-3,We+tt[0].length):-1}function C(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.m=tt[0]-1,We+tt[0].length):-1}function M(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.d=+tt[0],We+tt[0].length):-1}function g(Ge,Je,We){var tt=s.exec(Je.slice(We,We+3));return tt?(Ge.m=0,Ge.d=+tt[0],We+tt[0].length):-1}function P(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.H=+tt[0],We+tt[0].length):-1}function A(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.M=+tt[0],We+tt[0].length):-1}function z(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.S=+tt[0],We+tt[0].length):-1}function O(Ge,Je,We){var tt=s.exec(Je.slice(We,We+3));return tt?(Ge.L=+tt[0],We+tt[0].length):-1}function U(Ge,Je,We){var tt=s.exec(Je.slice(We,We+6));return tt?(Ge.L=Math.floor(tt[0]/1e3),We+tt[0].length):-1}function G(Ge,Je,We){var tt=l.exec(Je.slice(We,We+1));return tt?We+tt[0].length:-1}function Z(Ge,Je,We){var tt=s.exec(Je.slice(We));return tt?(Ge.Q=+tt[0],We+tt[0].length):-1}function j(Ge,Je,We){var tt=s.exec(Je.slice(We));return tt?(Ge.s=+tt[0],We+tt[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 oe(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 Ce(Ge,Je){return _e(Ge,Je)+"000"}function Le(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 Ee(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(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 Pe(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 De(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 je(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function lt(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Vt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function ot(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function ut(Ge,Je){return ot(Ge,Je)+"000"}function Wt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function Tr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function fr(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 $e(Ge){return Ge.getUTCDay()}function St(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function Qt(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Gt(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function _t(){return"+0000"}function It(){return"%"}function mt(Ge){return+Ge}function er(Ge){return Math.floor(+Ge/1e3)}var lr;wr({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 wr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Lr="%Y-%m-%dT%H:%M:%S.%LZ";function ti(Ge){return Ge.toISOString()}var Br=Date.prototype.toISOString?ti:e.utcFormat(Lr);function Vr(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Vr:e.utcParse(Lr);e.isoFormat=Br,e.isoParse=dt,e.timeFormatDefaultLocale=wr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var MO=ye((b6,Aee)=>{(function(e,t){typeof b6=="object"&&typeof Aee!="undefined"?t(b6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(b6,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,M){if((g=(C=M?C.toExponential(M-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,M){return function(g,P){for(var A=g.length,z=[],O=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),z.push(g.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[O=(O+1)%C.length];return z.reverse().join(M)}}function a(C){return function(M){return M.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(M=o.exec(C)))throw new Error("invalid format: "+C);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[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 M=C.length,g=1,P=-1,A;g0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var c;function f(C,M){var g=r(C,M);if(!g)return C+"";var P=g[0],A=g[1],z=A-(c=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(C,Math.max(0,M+z-1))[0]}function h(C,M){var g=r(C,M);if(!g)return C+"";var P=g[0],A=g[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,M){return(C*100).toFixed(M)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,M){return C.toExponential(M)},f:function(C,M){return C.toFixed(M)},g:function(C,M){return C.toPrecision(M)},o:function(C){return Math.round(C).toString(8)},p:function(C,M){return h(C*100,M)},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 _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var M=C.grouping===void 0||C.thousands===void 0?v:i(_.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",z=C.numerals===void 0?v:a(_.call(C.numerals,String)),O=C.percent===void 0?"%":C.percent+"",U=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,oe=N.sign,_e=N.symbol,Ce=N.zero,Le=N.width,ge=N.comma,ie=N.precision,Se=N.trim,Ee=N.type;Ee==="n"?(ge=!0,Ee="g"):d[Ee]||(ie===void 0&&(ie=12),Se=!0,Ee="g"),(Ce||H==="0"&&re==="=")&&(Ce=!0,H="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Be=_e==="$"?P:/[%p]/.test(Ee)?O:"",Pe=d[Ee],me=/[defgprs%]/.test(Ee);ie=ie===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function De(ce){var je=Ae,lt=Be,pt,Vt,ot;if(Ee==="c")lt=Pe(ce)+lt,ce="";else{ce=+ce;var ut=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),ut&&+ce==0&&oe!=="+"&&(ut=!1),je=(ut?oe==="("?oe:U:oe==="-"||oe==="("?"":oe)+je,lt=(Ee==="s"?b[8+c/3]:"")+lt+(ut&&oe==="("?")":""),me){for(pt=-1,Vt=ce.length;++ptot||ot>57){lt=(ot===46?A+ce.slice(pt+1):ce.slice(pt))+lt,ce=ce.slice(0,pt);break}}}ge&&!Ce&&(ce=M(ce,1/0));var Wt=je.length+ce.length+lt.length,Nt=Wt>1)+je+ce+lt+Nt.slice(Wt);break;default:ce=Nt+je+ce+lt;break}return z(ce)}return De.toString=function(){return N+""},De}function j(N,H){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,_e=Math.pow(10,-oe),Ce=b[8+oe/3];return function(Le){return re(_e*Le)+Ce}}return{format:Z,formatPrefix:j}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(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,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(C)))}function x(C,M){return C=Math.abs(C),M=Math.abs(M)-C,Math.max(0,n(M)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Mee=ye((grr,See)=>{"use strict";See.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((mrr,Eee)=>{"use strict";var Stt=Mee();Eee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Stt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var fs=ye((yrr,kee)=>{"use strict";kee.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 EO=ye((w6,Cee)=>{(function(e,t){typeof w6=="object"&&typeof Cee!="undefined"?t(w6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(w6,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 _=new ArrayBuffer(s),b=new Uint8Array(_);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ty=ye((_rr,Lee)=>{"use strict";Lee.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 vv=ye(xg=>{"use strict";var Mtt=EO().decode,Ett=Ty(),kO=Array.isArray,ktt=ArrayBuffer,Ctt=DataView;function Pee(e){return ktt.isView(e)&&!(e instanceof Ctt)}xg.isTypedArray=Pee;function T6(e){return kO(e)||Pee(e)}xg.isArrayOrTypedArray=T6;function Ltt(e){return!T6(e[0])}xg.isArray1D=Ltt;xg.ensureArray=function(e,t){return kO(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 CO(e){return e.constructor===ArrayBuffer}xg.isArrayBuffer=CO;xg.decodeTypedArraySpec=function(e){var t=[],r=Ptt(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;CO(o)||(o=Mtt(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 Ree=Eo(),PO=vv().isArrayOrTypedArray;Oee.exports=function(t,r){if(Ree(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 h3=FS(),ztt=/^\w*$/,Ott=0,qee=1,A6=2,Bee=3,gb=4;Nee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=h3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|A6,f.set(h,null);if(c){for(a=d;a{"use strict";var qtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Btt=/^[^\.\[\]]+$/;Vee.exports=function(e,t){for(;t;){var r=e.match(qtt);if(r)e=r[1];else if(e.match(Btt))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 S6=ye((Arr,Hee)=>{"use strict";var Ntt=Eo();Hee.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 Ntt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Xee=ye((Srr,Wee)=>{"use strict";var jee=vv().isArrayOrTypedArray,zS=Ty();Wee.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(jee(i)&&jee(a)&&zS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Utt(e,t){var r=e%t;return r<0?r+t:r}function Vtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Zee.exports={mod:Utt,modHalf:Vtt}});var fd=ye((Err,M6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(me,De){if(me=me||"",De=De||{},me instanceof l)return me;if(!(this instanceof l))return new l(me,De);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=De.format||ce.format,this._gradientType=De.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(),De,ce,je,lt,pt,Vt;return De=me.r/255,ce=me.g/255,je=me.b/255,De<=.03928?lt=De/12.92:lt=e.pow((De+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),je<=.03928?Vt=je/12.92:Vt=e.pow((je+.055)/1.055,2.4),.2126*lt+.7152*pt+.0722*Vt},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),De=i(me.h*360),ce=i(me.s*100),je=i(me.v*100);return this._a==1?"hsv("+De+", "+ce+"%, "+je+"%)":"hsva("+De+", "+ce+"%, "+je+"%, "+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),De=i(me.h*360),ce=i(me.s*100),je=i(me.l*100);return this._a==1?"hsl("+De+", "+ce+"%, "+je+"%)":"hsla("+De+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(me){return _(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[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var De="#"+p(this._r,this._g,this._b,this._a),ce=De,je=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("+je+"startColorstr="+De+",endColorstr="+ce+")"},toString:function(me){var De=!!me;me=me||this._format;var ce=!1,je=this._a<1&&this._a>=0,lt=!De&&je&&(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,De){var ce=me.apply(null,[this].concat([].slice.call(De)));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(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(me,De){return me.apply(null,[this].concat([].slice.call(De)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},l.fromRatio=function(me,De){if(typeof me=="object"){var ce={};for(var je in me)me.hasOwnProperty(je)&&(je==="a"?ce[je]=me[je]:ce[je]=ge(me[je]));me=ce}return l(me,De)};function u(me){var De={r:0,g:0,b:0},ce=1,je=null,lt=null,pt=null,Vt=!1,ot=!1;return typeof me=="string"&&(me=Be(me)),typeof me=="object"&&(Ae(me.r)&&Ae(me.g)&&Ae(me.b)?(De=c(me.r,me.g,me.b),Vt=!0,ot=String(me.r).substr(-1)==="%"?"prgb":"rgb"):Ae(me.h)&&Ae(me.s)&&Ae(me.v)?(je=ge(me.s),lt=ge(me.v),De=v(me.h,je,lt),Vt=!0,ot="hsv"):Ae(me.h)&&Ae(me.s)&&Ae(me.l)&&(je=ge(me.s),pt=ge(me.l),De=h(me.h,je,pt),Vt=!0,ot="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Vt,format:me.format||ot,r:a(255,o(De.r,0)),g:a(255,o(De.g,0)),b:a(255,o(De.b,0)),a:ce}}function c(me,De,ce){return{r:H(me,255)*255,g:H(De,255)*255,b:H(ce,255)*255}}function f(me,De,ce){me=H(me,255),De=H(De,255),ce=H(ce,255);var je=o(me,De,ce),lt=a(me,De,ce),pt,Vt,ot=(je+lt)/2;if(je==lt)pt=Vt=0;else{var ut=je-lt;switch(Vt=ot>.5?ut/(2-je-lt):ut/(je+lt),je){case me:pt=(De-ce)/ut+(De1&&($t-=1),$t<1/6?Wt+(Nt-Wt)*6*$t:$t<1/2?Nt:$t<2/3?Wt+(Nt-Wt)*(2/3-$t)*6:Wt}if(De===0)je=lt=pt=ce;else{var ot=ce<.5?ce*(1+De):ce+De-ce*De,ut=2*ce-ot;je=Vt(ut,ot,me+1/3),lt=Vt(ut,ot,me),pt=Vt(ut,ot,me-1/3)}return{r:je*255,g:lt*255,b:pt*255}}function d(me,De,ce){me=H(me,255),De=H(De,255),ce=H(ce,255);var je=o(me,De,ce),lt=a(me,De,ce),pt,Vt,ot=je,ut=je-lt;if(Vt=je===0?0:ut/je,je==lt)pt=0;else{switch(je){case me:pt=(De-ce)/ut+(De>1)+720)%360;--De;)je.h=(je.h+lt)%360,pt.push(l(je));return pt}function U(me,De){De=De||6;for(var ce=l(me).toHsv(),je=ce.h,lt=ce.s,pt=ce.v,Vt=[],ot=1/De;De--;)Vt.push(l({h:je,s:lt,v:pt})),pt=(pt+ot)%1;return Vt}l.mix=function(me,De,ce){ce=ce===0?0:ce||50;var je=l(me).toRgb(),lt=l(De).toRgb(),pt=ce/100,Vt={r:(lt.r-je.r)*pt+je.r,g:(lt.g-je.g)*pt+je.g,b:(lt.b-je.b)*pt+je.b,a:(lt.a-je.a)*pt+je.a};return l(Vt)},l.readability=function(me,De){var ce=l(me),je=l(De);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},l.isReadable=function(me,De,ce){var je=l.readability(me,De),lt,pt;switch(pt=!1,lt=Pe(ce),lt.level+lt.size){case"AAsmall":case"AAAlarge":pt=je>=4.5;break;case"AAlarge":pt=je>=3;break;case"AAAsmall":pt=je>=7;break}return pt},l.mostReadable=function(me,De,ce){var je=null,lt=0,pt,Vt,ot,ut;ce=ce||{},Vt=ce.includeFallbackColors,ot=ce.level,ut=ce.size;for(var Wt=0;Wtlt&&(lt=pt,je=l(De[Wt]));return l.isReadable(me,je,{level:ot,size:ut})||!Vt?je:(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 De={};for(var ce in me)me.hasOwnProperty(ce)&&(De[me[ce]]=ce);return De}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function H(me,De){_e(me)&&(me="100%");var ce=Ce(me);return me=a(De,o(0,parseFloat(me))),ce&&(me=parseInt(me*De,10)/100),e.abs(me-De)<1e-6?1:me%De/parseFloat(De)}function re(me){return a(1,o(0,me))}function oe(me){return parseInt(me,16)}function _e(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Ce(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Le(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 oe(me)/255}var Ee=function(){var me="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+De+")|(?:"+me+")",je="[\\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"+je),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+je),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 Ae(me){return!!Ee.CSS_UNIT.exec(me)}function Be(me){me=me.replace(t,"").replace(r,"").toLowerCase();var De=!1;if(G[me])me=G[me],De=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(me))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:De?"name":"hex8"}:(ce=Ee.hex6.exec(me))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:De?"name":"hex"}:(ce=Ee.hex4.exec(me))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:De?"name":"hex8"}:(ce=Ee.hex3.exec(me))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:De?"name":"hex"}:!1}function Pe(me){var De,ce;return me=me||{level:"AA",size:"small"},De=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:De,size:ce}}typeof M6!="undefined"&&M6.exports?M6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(BS=>{"use strict";var Yee=Ty(),OS=Array.isArray;function Gtt(e,t){var r,n;for(r=0;r{"use strict";Kee.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 NS=ye((Lrr,Jee)=>{"use strict";Jee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var W1=ye((Prr,ete)=>{"use strict";var $ee=NS(),Qee=ec(),IO=Qee({editType:"none"});IO.family.dflt=$ee.HOVERFONT;IO.size.dflt=$ee.HOVERFONTSIZE;ete.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:IO,grouptitlefont:Qee({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 v3=ye((Irr,tte)=>{"use strict";var Htt=ec(),US=W1().hoverlabel,VS=Ao().extendFlat;tte.exports={hoverlabel:{bgcolor:VS({},US.bgcolor,{arrayOk:!0}),bordercolor:VS({},US.bordercolor,{arrayOk:!0}),font:Htt({arrayOk:!0,editType:"none"}),align:VS({},US.align,{arrayOk:!0}),namelength:VS({},US.namelength,{arrayOk:!0}),showarrow:VS({},US.showarrow),editType:"none"}}});var Gl=ye((Rrr,rte)=>{"use strict";var jtt=ec(),Wtt=v3();rte.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:jtt({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:Wtt.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 mb=ye((Drr,ate)=>{"use strict";var Xtt=fd(),E6={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)"]]},ite=E6.RdBu;function Ztt(e,t){if(t||(t=ite),!e)return t;function r(){try{e=E6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),nte(e)?e:t}function nte(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";yb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];yb.defaultLine="#444";yb.lightLine="#eee";yb.background="#fff";yb.borderLine="#BEC8D9";yb.lightFraction=100*10/11});var ka=ye((zrr,ote)=>{"use strict";var wp=fd(),Ktt=Eo(),Jtt=vv().isTypedArray,hd=ote.exports={},k6=Ih();hd.defaults=k6.defaults;var $tt=hd.defaultLine=k6.defaultLine;hd.lightLine=k6.lightLine;var DO=hd.background=k6.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||DO).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,DO)));var i=n.isDark()?t?n.lighten(t):DO:r?n.darken(r):$tt;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((Orr,ste)=>{"use strict";ste.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var p3=ye(lte=>{"use strict";lte.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 hte=ye(Tp=>{"use strict";var FO=Eo(),ute=fd(),cte=Ao().extendFlat,Qtt=Gl(),ert=mb(),trt=ka(),rrt=X1().DESELECTDIM,g3=FS(),fte=p3().counter,irt=d3().modHalf,bg=vv().isArrayOrTypedArray,Z1=vv().isTypedArraySpec,Y1=vv().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)),!FO(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||!FO(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)),ute(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return ute(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(ert.get(e,r))}},angle:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),e==="auto"?t.set("auto"):FO(e)?t.set(irt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||fte(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:!!fte(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 dte={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},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:{}}},vte={};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(dte,vte);gte.exports={configAttributes:dte,dfltConfig:vte}});var OO=ye((Urr,mte)=>{"use strict";var zO=Oa(),nrt=Eo(),GS=[];mte.exports=function(e,t){if(GS.indexOf(e)!==-1)return;GS.push(e);var r=1e3;nrt(t)?r=t:t==="long"&&(r=3e3);var n=zO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(GS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=GS.indexOf(s);l!==-1&&GS.splice(l,1),zO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=zO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var m3=_b().dfltConfig,qO=OO(),BO=yte.exports={};BO.log=function(){var e;if(m3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};BO.warn=function(){var e;if(m3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};BO.error=function(){var e;if(m3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var L6=ye((Grr,_te)=>{"use strict";_te.exports=function(){}});var NO=ye((Hrr,xte)=>{"use strict";xte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{bte.exports=art;function art(){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 Ate=ye((Wrr,Tte)=>{Tte.exports=ort;function ort(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 Mte=ye((Xrr,Ste)=>{Ste.exports=srt;function srt(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 UO=ye((Zrr,Ete)=>{Ete.exports=lrt;function lrt(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 Cte=ye((Yrr,kte)=>{kte.exports=urt;function urt(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 Pte=ye((Krr,Lte)=>{Lte.exports=crt;function crt(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],_=t[13],b=t[14],p=t[15],k=r*s-n*o,E=r*l-i*o,T=r*u-a*o,L=n*l-i*s,x=n*u-a*s,C=i*u-a*l,M=c*_-f*v,g=c*b-h*v,P=c*p-d*v,A=f*b-h*_,z=f*p-d*_,O=h*p-d*b,U=k*O-E*z+T*A+L*P-x*g+C*M;return U?(U=1/U,e[0]=(s*O-l*z+u*A)*U,e[1]=(i*z-n*O-a*A)*U,e[2]=(_*C-b*x+p*L)*U,e[3]=(h*x-f*C-d*L)*U,e[4]=(l*P-o*O-u*g)*U,e[5]=(r*O-i*P+a*g)*U,e[6]=(b*T-v*C-p*E)*U,e[7]=(c*C-h*T+d*E)*U,e[8]=(o*z-s*P+u*M)*U,e[9]=(n*P-r*z-a*M)*U,e[10]=(v*x-_*T+p*k)*U,e[11]=(f*T-c*x-d*k)*U,e[12]=(s*g-o*A-l*M)*U,e[13]=(r*A-n*g+i*M)*U,e[14]=(_*E-v*L-b*k)*U,e[15]=(c*L-f*E+h*k)*U,e):null}});var Rte=ye((Jrr,Ite)=>{Ite.exports=frt;function frt(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],_=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+_*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+_*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+_*(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*_)-c*(s*p-u*_)+v*(s*d-u*f),e[9]=-(r*(f*p-d*_)-c*(n*p-a*_)+v*(n*d-a*f)),e[10]=r*(s*p-u*_)-o*(n*p-a*_)+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*_)-c*(s*b-l*_)+v*(s*h-l*f)),e[13]=r*(f*b-h*_)-c*(n*b-i*_)+v*(n*h-i*f),e[14]=-(r*(s*b-l*_)-o*(n*b-i*_)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Fte=ye(($rr,Dte)=>{Dte.exports=hrt;function hrt(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],_=e[14],b=e[15],p=t*o-r*a,k=t*s-n*a,E=t*l-i*a,T=r*s-n*o,L=r*l-i*o,x=n*l-i*s,C=u*v-c*d,M=u*_-f*d,g=u*b-h*d,P=c*_-f*v,A=c*b-h*v,z=f*b-h*_;return p*z-k*A+E*P+T*g-L*M+x*C}});var Ote=ye((Qrr,zte)=>{zte.exports=drt;function drt(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],_=t[12],b=t[13],p=t[14],k=t[15],E=r[0],T=r[1],L=r[2],x=r[3];return e[0]=E*n+T*s+L*f+x*_,e[1]=E*i+T*l+L*h+x*b,e[2]=E*a+T*u+L*d+x*p,e[3]=E*o+T*c+L*v+x*k,E=r[4],T=r[5],L=r[6],x=r[7],e[4]=E*n+T*s+L*f+x*_,e[5]=E*i+T*l+L*h+x*b,e[6]=E*a+T*u+L*d+x*p,e[7]=E*o+T*c+L*v+x*k,E=r[8],T=r[9],L=r[10],x=r[11],e[8]=E*n+T*s+L*f+x*_,e[9]=E*i+T*l+L*h+x*b,e[10]=E*a+T*u+L*d+x*p,e[11]=E*o+T*c+L*v+x*k,E=r[12],T=r[13],L=r[14],x=r[15],e[12]=E*n+T*s+L*f+x*_,e[13]=E*i+T*l+L*h+x*b,e[14]=E*a+T*u+L*d+x*p,e[15]=E*o+T*c+L*v+x*k,e}});var Bte=ye((eir,qte)=>{qte.exports=vrt;function vrt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,_,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],_=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]=_,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+_*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 Ute=ye((tir,Nte)=>{Nte.exports=prt;function prt(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 Gte=ye((rir,Vte)=>{Vte.exports=grt;function grt(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z,O,U,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],_=t[4],b=t[5],p=t[6],k=t[7],E=t[8],T=t[9],L=t[10],x=t[11],C=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,A=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,U=a*o*c-i*l,G=o*o*c+u,e[0]=f*C+_*M+E*g,e[1]=h*C+b*M+T*g,e[2]=d*C+p*M+L*g,e[3]=v*C+k*M+x*g,e[4]=f*P+_*A+E*z,e[5]=h*P+b*A+T*z,e[6]=d*P+p*A+L*z,e[7]=v*P+k*A+x*z,e[8]=f*O+_*U+E*G,e[9]=h*O+b*U+T*G,e[10]=d*O+p*U+L*G,e[11]=v*O+k*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var jte=ye((iir,Hte)=>{Hte.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 Xte=ye((nir,Wte)=>{Wte.exports=yrt;function yrt(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 Yte=ye((air,Zte)=>{Zte.exports=_rt;function _rt(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 Jte=ye((oir,Kte)=>{Kte.exports=xrt;function xrt(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 Qte=ye((sir,$te)=>{$te.exports=brt;function brt(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,_=a*u,b=o*s,p=o*l,k=o*u;return e[0]=1-(d+_),e[1]=f+k,e[2]=h-p,e[3]=0,e[4]=f-k,e[5]=1-(c+_),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 tre=ye((lir,ere)=>{ere.exports=wrt;function wrt(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 ire=ye((uir,rre)=>{rre.exports=Trt;function Trt(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 are=ye((cir,nre)=>{nre.exports=Art;function Art(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 sre=ye((fir,ore)=>{ore.exports=Srt;function Srt(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 ure=ye((hir,lre)=>{lre.exports=Mrt;function Mrt(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 fre=ye((dir,cre)=>{cre.exports=Ert;function Ert(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,_=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+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=ye((vir,hre)=>{hre.exports=krt;function krt(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 pre=ye((pir,vre)=>{vre.exports=Crt;function Crt(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 mre=ye((gir,gre)=>{gre.exports=Lrt;function Lrt(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 _re=ye((mir,yre)=>{yre.exports=Prt;function Prt(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 bre=ye((yir,xre)=>{var Irt=UO();xre.exports=Rrt;function Rrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],_=t[1],b=t[2],p=n[0],k=n[1],E=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(v-T)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?Irt(e):(c=v-T,f=_-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=k*h-E*f,a=E*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*_+o*b),e[13]=-(s*v+l*_+u*b),e[14]=-(c*v+f*_+h*b),e[15]=1,e)}});var Tre=ye((_ir,wre)=>{wre.exports=Drt;function Drt(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 VO=ye((xir,Are)=>{Are.exports={create:wte(),clone:Ate(),copy:Mte(),identity:UO(),transpose:Cte(),invert:Pte(),adjoint:Rte(),determinant:Fte(),multiply:Ote(),translate:Bte(),scale:Ute(),rotate:Gte(),rotateX:jte(),rotateY:Xte(),rotateZ:Yte(),fromRotation:Jte(),fromRotationTranslation:Qte(),fromScaling:tre(),fromTranslation:ire(),fromXRotation:are(),fromYRotation:sre(),fromZRotation:ure(),fromQuat:fre(),frustum:dre(),perspective:pre(),perspectiveFromFieldOfView:mre(),ortho:_re(),lookAt:bre(),str:Tre()}});var P6=ye(fh=>{"use strict";var Frt=VO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var zrt=Oa(),Sre=K1(),Ort=P6(),qrt=VO();function Brt(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 Nrt(e){var t=zrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Mre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Urt(e,t){Ere("global",e,t)}function Ere(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):Sre.warn("addStyleRule failed"):Sre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Vrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Mre(r)}function Grt(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 Hrt(e){var t=Cre(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=kre(n);if(i){var a=Ort.convertCssMatrix(i);r=qrt.multiply(r,r,a)}}),r}function kre(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 Cre(e){for(var t=[];jrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function jrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Wrt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Lre.exports={getGraphDiv:Brt,isPlotDiv:Nrt,removeElement:Mre,addStyleRule:Urt,addRelatedStyleRule:Ere,deleteRelatedStyleRule:Vrt,setStyleOnHover:Grt,getFullTransformMatrix:Hrt,getElementTransformMatrix:kre,getElementAndAncestors:Cre,equalDomRects:Wrt}});var jS=ye((Tir,Pre)=>{"use strict";Pre.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((Air,qre)=>{"use strict";var Rre=Ao().extendFlat,Xrt=Ty(),Dre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Fre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Zrt=Dre.flags.slice().concat(["fullReplot"]),Yrt=Fre.flags.slice().concat("layoutReplot");qre.exports={traces:Dre,layout:Fre,traceFlags:function(){return Ire(Zrt)},layoutFlags:function(){return Ire(Yrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";GO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};GO.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 HO=ye((Mir,Bre)=>{"use strict";Bre.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(y3=>{"use strict";var{DATE_FORMAT_LINK:Krt,FORMAT_LINK:Jrt}=HO(),$rt=["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 Qrt({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}".`,Jrt,"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}".`,Krt,"for details on the date formatting syntax.",$rt].join(" ")}y3.templateFormatStringDescription=Qrt;y3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});y3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});y3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});y3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var D6=ye((Cir,jre)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function Nre(e,t){return t?t.l2d(e):e}function eit(e){return e.x0}function tit(e){return e.x1}function rit(e){return e.y0}function iit(e){return e.y1}function Ure(e){return e.x0shift||0}function Vre(e){return e.x1shift||0}function Gre(e){return e.y0shift||0}function Hre(e){return e.y1shift||0}function I6(e,t){return J1(e.x1,t)+Vre(e)-J1(e.x0,t)-Ure(e)}function R6(e,t,r){return J1(e.y1,r)+Hre(e)-J1(e.y0,r)-Gre(e)}function nit(e,t){return Math.abs(I6(e,t))}function ait(e,t,r){return Math.abs(R6(e,t,r))}function oit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(I6(e,t),2)+Math.pow(R6(e,t,r),2))}function sit(e,t){return Nre((J1(e.x1,t)+Vre(e)+J1(e.x0,t)+Ure(e))/2,t)}function lit(e,t,r){return Nre((J1(e.y1,r)+Hre(e)+J1(e.y0,r)+Gre(e))/2,r)}function uit(e,t,r){return e.type!=="line"?void 0:R6(e,t,r)/I6(e,t)}var cit=["x0","x1","y0","y1","dy","height","ycenter"],fit=["x0","x1","y0","y1","dx","width","xcenter"];jre.exports={x0:eit,x1:tit,y0:rit,y1:iit,slope:uit,dx:I6,dy:R6,width:nit,height:ait,length:oit,xcenter:sit,ycenter:lit,simpleXVariables:cit,simpleYVariables:fit}});var Zre=ye((Lir,Xre)=>{"use strict";var hit=mc().overrideAll,xb=Gl(),Wre=ec(),dit=Pd().dash,$1=Ao().extendFlat,{shapeTexttemplateAttrs:vit,templatefallbackAttrs:pit}=Ll(),git=D6();Xre.exports=hit({newshape:{visible:$1({},xb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},xb.legend,{}),legendgroup:$1({},xb.legendgroup,{}),legendgrouptitle:{text:$1({},xb.legendgrouptitle.text,{}),font:Wre({})},legendrank:$1({},xb.legendrank,{}),legendwidth:$1({},xb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},dit,{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({},xb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:vit({newshape:!0},{keys:Object.keys(git)}),texttemplatefallback:pit({editType:"arraydraw"}),font:Wre({}),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 Kre=ye((Pir,Yre)=>{"use strict";var mit=Pd().dash,yit=Ao().extendFlat;Yre.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:yit({},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 F6=ye((Iir,Jre)=>{"use strict";Jre.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 _3=ye((Rir,tie)=>{"use strict";var jO=ec(),_it=jS(),z6=Ih(),$re=Zre(),Qre=Kre(),xit=F6(),eie=Ao().extendFlat,O6=jO({editType:"calc"});O6.family.dflt='"Open Sans", verdana, arial, sans-serif';O6.size.dflt=12;O6.color.dflt=z6.defaultLine;tie.exports={font:O6,title:{text:{valType:"string",editType:"layoutstyle"},font:jO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:jO({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:eie(xit({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:z6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:z6.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:z6.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:$re.newshape,activeshape:$re.activeshape,newselection:Qre.newselection,activeselection:Qre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:eie({},_it.transition,{editType:"none"})}});var rie=ye(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",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 qa=ye(el=>{"use strict";var x3=K1(),iie=L6(),nie=NO(),bit=Ty(),wit=HS().addStyleRule,aie=Ao(),Tit=Gl(),Ait=_3(),Sit=aie.extendFlat,WO=aie.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 Pit=f3().timeFormat,gie=Eo(),XO=K1(),e_=d3().mod,T3=fs(),_0=T3.BADNUM,Ap=T3.ONEDAY,WS=T3.ONEHOUR,Q1=T3.ONEMIN,w3=T3.ONESEC,XS=T3.EPOCHJD,Ay=qa(),cie=f3().utcFormat,Iit=/^\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,Rit=/^\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,fie=new Date().getFullYear()-70;function Sy(e){return e&&Ay.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Dit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=Ap*(t-1),hh.ms2DateTime(n,0,e)};function Dit(e,t){return Sy(e)?t?Ay.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ay.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return Sy(e)?Ay.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 B6,N6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*Q1,n=(e.getUTCMinutes()-e.getMinutes())*Q1+(e.getUTCSeconds()-e.getSeconds())*w3+(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>=B6&&e<=N6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=Sy(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?Rit:Iit);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 _;try{var b=Ay.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),_=b.newDate(u,b.toMonthIndex(u,c,p),f)}else _=b.newDate(u,Number(c),f)}catch(E){return _0}return _?(_.toJD()-XS)*Ap+h*WS+d*Q1+v*w3:_0}u.length===2?u=(Number(u)+2e3-fie)%100+fie: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*w3};B6=hh.MIN_MS=hh.dateTime2ms("-9999");N6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function b3(e,t){return String(e+Math.pow(10,t)).slice(1)}var q6=90*Ap,hie=3*WS,die=5*Q1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=B6&&e<=N6))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(Sy(r)){var f=Math.floor(i/Ap)+XS,h=Math.floor(e_(e,Ap));try{a=Ay.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=cie("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=B6+Ap&&e<=N6-Ap))return _0;var t=Math.floor(e_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Pit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return mie(n,i,a,o,s)};function mie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+b3(t,2)+":"+b3(r,2),(n||i)&&(e+=":"+b3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+b3(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(Sy(r))return XO.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 XO.error("unrecognized date",e),t;return e};var Fit=/%\d?f/g,zit=/%h/g,Oit={1:"1",2:"1",3:"2",4:"2"};function vie(e,t,r,n){e=e.replace(Fit,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(zit,function(){return Oit[r("%q")(i)]}),Sy(n))try{e=Ay.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var qit=[59,59.9,59.99,59.999,59.9999];function Bit(e,t){var r=e_(e+.05,Ap),n=b3(Math.floor(r/WS),2)+":"+b3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){gie(t)||(t=0);var i=Math.min(e_(e/w3,60),qit[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=Sy(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`)};function nt(gr){return gr.map(jt).join(X)}function jt(gr){return Te.test(gr)?'"'+gr.replace(/\"/g,'""')+'"':gr}return He},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var _n,ya,$n,Ma,_o=this[j(this,"requestAnimationFrame")]||function(X){setTimeout(X,17)};e.timer=function(){No.apply(this,arguments)};function No(X,se,Te){var Ne=arguments.length;Ne<2&&(se=0),Ne<3&&(Te=Date.now());var He=Te+se,Ye={c:X,t:He,n:null};return ya?ya.n=Ye:_n=Ye,ya=Ye,$n||(Ma=clearTimeout(Ma),$n=1,_o(po)),Ye}function po(){var X=Lo(),se=ko()-X;se>24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),$n=0):($n=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;--nt)Zr.push(He[gr[Hr[nt]][2]]);for(nt=+_i;nt1&&ar(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function ul(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(kt=se-xo(nt,Te),kt>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Je?(Ne=nt.P,He=nt):kt>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=bs(X);if(zs.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=bs(Ne.site),zs.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Hr=gr.y,qr=X.x-yr,_i=X.y-Hr,bi=He.site,Zr=bi.x-yr,ai=bi.y-Hr,gi=2*(qr*ai-_i*Zr),Ii=qr*qr+_i*_i,Si=Zr*Zr+ai*ai,ei={x:(ai*Ii-_i*Si)/gi+yr,y:(qr*Si-Zr*Ii)/gi+Hr};pl(He.edge,gr,bi,ei),jt.edge=rf(gr,X,null,ei),He.edge=rf(X,bi,null,ei),aa(Ne),aa(He)}}function Ol(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var kt=X.P;if(!kt)return-1/0;Te=kt.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Hr=1/Ye-1/gr,qr=yr/gr;return Hr?(-qr+Math.sqrt(qr*qr-2*Hr*(yr*yr/(-2*gr)-jt+gr/2+He-Ye/2)))/Hr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return Ol(Te,se);var Ne=X.site;return Ne.y===se?Ne.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],Ne=X[0][1],He=X[1][1],Ye,kt,nt,jt,gr=Ks,yr=gr.length,Hr,qr,_i,bi,Zr,ai;yr--;)if(Hr=gr[yr],!(!Hr||!Hr.prepare()))for(_i=Hr.edges,bi=_i.length,qr=0;qrJe||p(jt-kt)>Je)&&(_i.splice(qr,0,new Zc(Vf(Hr.site,ai,p(nt-se)Je?{x:se,y:p(Ye-se)Je?{x:p(kt-He)Je?{x:Te,y:p(Ye-Te)Je?{x:p(kt-Ne)=-We)){var qr=jt*jt+gr*gr,_i=yr*yr+ai*ai,bi=(ai*qr-gr*_i)/Hr,Zr=(jt*_i-yr*qr)/Hr,ai=Zr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+kt,gi.y=ai+Math.sqrt(bi*bi+Zr*Zr),gi.cy=ai,X.circle=gi;for(var Ii=null,Si=Yl._;Si;)if(gi.y0)){if(Zr/=_i,_i<0){if(Zr0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}if(Zr=Te-nt,!(!_i&&Zr<0)){if(Zr/=_i,_i<0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}else if(_i>0){if(Zr0)){if(Zr/=bi,bi<0){if(Zr0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}if(Zr=Ne-jt,!(!bi&&Zr<0)){if(Zr/=bi,bi<0){if(Zr>qr)return;Zr>Hr&&(Hr=Zr)}else if(bi>0){if(Zr0&&(He.a={x:nt+Hr*_i,y:jt+Hr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function ql(X){for(var se=cl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:kt};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(kt-gi)/ai,y:kt};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ai,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ai,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ai*Ye+gi}}else{if(!Ne)Ne={x:Ye,y:ai*Ye+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Hr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Hr],[yr,Hr]]:[];Ii.point=jt[Zr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return kt.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},kt.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Hr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Zr=_i.length,ai,gi,Ii=_i[Zr-1].edge,Si=Ii.l===qr?Ii.r:Ii.l;++biSi&&(Si=yr.x),yr.y>ei&&(ei=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Zr=0;ZrSi&&(Si=Ln),En>ei&&(ei=En),_i.push(Ln),bi.push(En)}var Un=Si-gi,ia=ei-Ii;Un>ia?ei=Ii+Un:Si=gi+ia;function Ea(Da,go,Is,Ms,Xs,Gn,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,Gn,ja,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,$s,Xs,Gn,ja,Fo),Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo)}else Da.x=Is,Da.y=Ms,Da.point=go}else Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo)}function Ia(Da,go,Is,Ms,Xs,Gn,ja,Fo){var Uo=(Xs+ja)*.5,$s=(Gn+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?Gn=$s:Fo=$s,Ea(Da,go,Is,Ms,Xs,Gn,ja,Fo)}var yo=$l();if(yo.add=function(Da){Ea(yo,Da,+Hr(Da,++Zr),+qr(Da,Zr),gi,Ii,Si,ei)},yo.visit=function(Da){fl(Da,yo,gi,Ii,Si,ei)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Ii,Si,ei)},Zr=-1,se==null){for(;++ZrYe||qr>kt||_i=Ln,ia=Te>=En,Ea=ia<<1|Un,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[kt]?nt[kt]+=Ye:nt[++kt]=Ye),(Ne=Ne[0])===(He=He[0])?nt[kt]?nt[kt]+=He:nt[++kt]=He:(nt[++kt]=null,jt.push({i:kt,x:Hs(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}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 la?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Es:Hs)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,kt=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=od.get(Te)||qs,Ne=Po.get(Ne)||G,sd(Ne(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 af(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*xe)}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(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-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,Ne=X.c,He=X.l,Ye=se.h-Te,kt=se.c-Ne,nt=se.l-He;return isNaN(kt)&&(kt=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return Xr(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,kt=se.s-Ne,nt=se.l-He;return isNaN(kt)&&(kt=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return rr(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,kt=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ye*jt,Ne+kt*jt,He+nt*jt)+""}}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 Ne=se.transform.baseVal.consolidate()}return new jf(Ne?Ne.matrix:Kc)})(X)};function jf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ye=of(Nl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.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,Ne){X!==se?Ne.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,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:Hs(X[0],se[0])},{i:He-2,x:Hs(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),gs(X.translate,se.translate,Te,Ne),Wf(X.rotate,se.rotate,Te,Ne),Wh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,kt=Ne.length,nt;++Ye0?Ye=ei:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ei>0&&(se.start({type:"start",alpha:Ye=ei}),Te=No(X.tick)),X):Ye},X.start=function(){var ei,Ln=_i.length,En=bi.length,Un=Ne[0],ia=Ne[1],Ea,Ia;for(ei=0;ei=0;)Ye.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Hr){var qr,_i;X&&(qr=Hr.children)&&qr.sort(X),Te&&(_i=Hr.parent)&&(_i.value+=Hr.value)}),kt}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var kt;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(kt=Ye.parent)&&(kt.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(kt=X.children)&&(Ye=kt.length))for(var He=-1,Ye,kt;++HeHe&&(He=nt),Ne.push(nt)}for(kt=0;ktNe&&(Te=se,Ne=He);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,Ne=zc;function He(Ye,qr){for(var nt=[],jt=Ye.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Hr,qr=-1,_i=jt.length,bi=yr.length-1,Zr=X?1:1/_i,ai;++qr0)for(qr=-1;++qr<_i;)ai=jt[qr],ai>=gr[0]&&ai<=gr[1]&&(Hr=nt[e.bisect(yr,ai,1,bi)-1],Hr.y+=Zr,Hr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=vi(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(kt){return Wu(kt,Ye)}:vi(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;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],Ne;function He(Ye,kt){var nt=X.call(this,Ye,kt),jt=nt[0],gr=Te[0],yr=Te[1],Hr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Hr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(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,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,kt,nt,jt,gr,yr,Hr,qr;function _i(ei){Te=Math.min(ei.x-ei.r,Te),Ne=Math.max(ei.x+ei.r,Ne),He=Math.min(ei.y-ei.r,He),Ye=Math.max(ei.y+ei.r,Ye)}if(se.forEach(Zu),kt=se[0],kt.x=-kt.r,kt.y=0,_i(kt),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],wl(kt,nt,jt),_i(jt),uf(kt,jt),kt._pack_prev=jt,uf(jt,nt),nt=kt._pack_next,gr=3;grai.x&&(ai=Ln),Ln.depth>gi.depth&&(gi=Ln)});var Ii=se(Zr,ai)/2-Zr.x,Si=Te[0]/(ai.x+se(ai,Zr)/2+Ii),ei=Te[1]/(gi.depth||1);Fc(_i,function(Ln){Ln.x=(Ln.x+Ii)*Si,Ln.y=Ln.depth*ei})}return qr}function Ye(yr){for(var Hr={A:null,children:[yr]},qr=[Hr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Zr,ai=0,gi=bi.length;ai0&&(fc(At(Zr,yr,qr),yr,Ln),gi+=Ln,Ii+=Ln),Si+=Zr.m,gi+=_i.m,ei+=ai.m,Ii+=bi.m;Zr&&!cf(bi)&&(bi.t=Zr,bi.m+=Si-Ii),_i&&!qc(ai)&&(ai.t=_i,ai.m+=gi-ei,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function vu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function At(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],Ne=!1;function He(Ye,kt){var nt=X.call(this,Ye,kt),jt=nt[0],gr,yr=0;wc(jt,function(Zr){var ai=Zr.children;ai&&ai.length?(Zr.x=Cr(ai),Zr.y=Xt(ai)):(Zr.x=gr?yr+=se(Zr,gr):0,Zr.y=0,gr=Zr)});var Hr=Ar(jt),qr=Kr(jt),_i=Hr.x-se(Hr,qr)/2,bi=qr.x+se(qr,Hr)/2;return wc(jt,Ne?function(Zr){Zr.x=(Zr.x-jt.x)*Te[0],Zr.y=(jt.y-Zr.y)*Te[1]}:function(Zr){Zr.x=(Zr.x-_i)/(bi-_i)*Te[0],Zr.y=(1-(jt.y?Zr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function Cr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(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],Ne=null,He=ki,Ye=!1,kt,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Zr,ai){for(var gi=-1,Ii=Zr.length,Si,ei;++gi0;)Ii.push(ei=Si[ia-1]),Ii.area+=ei.area,nt!=="squarify"||(En=qr(Ii,Un))<=Ln?(Si.pop(),Ln=En):(Ii.area-=Ii.pop().area,_i(Ii,Un,gi,!1),Un=Math.min(gi.dx,gi.dy),Ii.length=Ii.area=0,Ln=1/0);Ii.length&&(_i(Ii,Un,gi,!0),Ii.length=Ii.area=0),ai.forEach(yr)}}function Hr(Zr){var ai=Zr.children;if(ai&&ai.length){var gi=He(Zr),Ii=ai.slice(),Si,ei=[];for(gr(Ii,gi.dx*gi.dy/Zr.value),ei.area=0;Si=Ii.pop();)ei.push(Si),ei.area+=Si.area,Si.z!=null&&(_i(ei,Si.z?gi.dx:gi.dy,gi,!Ii.length),ei.length=ei.area=0);ai.forEach(Hr)}}function qr(Zr,ai){for(var gi=Zr.area,Ii,Si=0,ei=1/0,Ln=-1,En=Zr.length;++LnSi&&(Si=Ii));return gi*=gi,ai*=ai,gi?Math.max(ai*Si*jt/gi,gi/(ai*ei*jt)):1/0}function _i(Zr,ai,gi,Ii){var Si=-1,ei=Zr.length,Ln=gi.x,En=gi.y,Un=ai?se(Zr.area/ai):0,ia;if(ai==gi.dx){for((Ii||Un>gi.dy)&&(Un=gi.dy);++Sigi.dx)&&(Un=gi.dx);++Si1);return X+se*Ne*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:Nn,gr=Ne?Mu:Sh;return He=jt(X,se,gr,Te),Ye=jt(se,X,gr,xl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ye(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),kt()):X},nt.range=function(jt){return arguments.length?(se=jt,kt()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,kt()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,kt()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),kt()},nt.copy=function(){return Qn(X,se,Te,Ne)},kt()}function Ca(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Yi(X,Qi(La(X,se)[2])),Yi(X,Qi(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=dn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={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 Yn?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,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function kt(nt){return X(He(nt))}return kt.invert=function(nt){return Ye(X.invert(nt))},kt.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),kt):Ne},kt.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),kt):se},kt.nice=function(){var nt=Yi(Ne.map(He),Te?Math:Zo);return X.domain(nt),Ne=nt.map(Ye),kt},kt.ticks=function(){var nt=dn(Ne),jt=[],gr=nt[0],yr=nt[1],Hr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Hr)){if(Te){for(;Hr0;bi--)jt.push(Ye(Hr)*bi);for(Hr=0;jt[Hr]yr;qr--);jt=jt.slice(Hr,qr)}return jt},kt.copy=function(){return bo(X.copy(),se,Te,Ne)},Ca(kt,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 Ne=as(se),He=as(1/se);function Ye(kt){return X(Ne(kt))}return Ye.invert=function(kt){return He(X.invert(kt))},Ye.domain=function(kt){return arguments.length?(X.domain((Te=kt.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(kt){return Na(Te,kt)},Ye.tickFormat=function(kt,nt){return d3_scale_linearTickFormat(Te,kt,nt)},Ye.nice=function(kt){return Ye.domain(Ra(Te,kt))},Ye.exponent=function(kt){return arguments.length?(Ne=as(se=kt),He=as(1/se),X.domain(Te.map(Ne)),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,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function kt(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new T;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Zr,ai,gi,Ii,Si=0,ei=0,Ln,En,Un,ia,Ea,Ia,yo,Da,go=[];if((Ii=(+kt.apply(this,arguments)||0)/2)&&(gi=Ne===Cu?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ei*=-1),yr&&(ei=ii(gi/yr*Math.sin(Ii))),gr&&(Si=ii(gi/gr*Math.sin(Ii)))),yr){Ln=yr*Math.cos(Hr+ei),En=yr*Math.sin(Hr+ei),Un=yr*Math.cos(qr-ei),ia=yr*Math.sin(qr-ei);var Is=Math.abs(qr-Hr-2*ei)<=tt?0:1;if(ei&&Ac(Ln,En,Un,ia)===bi^Is){var Ms=(Hr+qr)/2;Ln=yr*Math.cos(Ms),En=yr*Math.sin(Ms),Un=ia=null}}else Ln=En=0;if(gr){Ea=gr*Math.cos(qr-Si),Ia=gr*Math.sin(qr-Si),yo=gr*Math.cos(Hr+Si),Da=gr*Math.sin(Hr+Si);var Xs=Math.abs(Hr-qr+2*Si)<=tt?0:1;if(Si&&Ac(Ea,Ia,yo,Da)===1-bi^Xs){var Gn=(Hr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Zr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ai=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],kt=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+kt*kt),jt=nt*kt,gr=-nt*Ye,yr=X[0]+jt,Hr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Zr=(Hr+_i)/2,ai=qr-yr,gi=_i-Hr,Ii=ai*ai+gi*gi,Si=Te-Ne,ei=yr*_i-qr*Hr,Ln=(gi<0?-1:1)*Math.sqrt(Math.max(0,Si*Si*Ii-ei*ei)),En=(ei*gi-ai*Ln)/Ii,Un=(-ei*ai-gi*Ln)/Ii,ia=(ei*gi+ai*Ln)/Ii,Ea=(-ei*ai+gi*Ln)/Ii,Ia=En-bi,yo=Un-Zr,Da=ia-bi,go=Ea-Zr;return Ia*Ia+yo*yo>Da*Da+go*go&&(En=ia,Un=Ea),[[En-jt,Un-gr],[En*Te/Si,Un*Te/Si]]}function oo(){return!0}function Vc(X){var se=Ds,Te=Fs,Ne=oo,He=Ku,Ye=He.key,kt=.7;function nt(jt){var gr=[],yr=[],Hr=-1,qr=jt.length,_i,bi=vi(se),Zr=vi(Te);function ai(){gr.push("M",He(X(yr),kt))}for(;++Hr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[jt],jt++,Ne+="C"+(He[0]+kt[0])+","+(He[1]+kt[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),kt[nt]=Ye*Ne,kt[nt+1]=Ye*He));for(nt=-1;++nt<=jt;)Ye=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+kt[nt]*kt[nt])),se.push([Ye||0,kt[nt]*Ye||0]);return se}function Ft(X){return X.length<3?Ku(X):X[0]+Ze(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ye;++Tett)+",1 "+Hr}function gr(yr,Hr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=vi(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=vi(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=vi(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=vi(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=vi(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=Wr;function Ne(He,Ye){var kt=X.call(this,He,Ye),nt=se.call(this,He,Ye),jt=(kt.y+nt.y)/2,gr=[kt,{x:kt.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=vi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=vi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function Wr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=Wr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ni(se=Ne)):se},X};function ni(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=cn,se=Pi;function Te(Ne,He){return(Cn.get(X.call(this,Ne,He))||ln)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=vi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=vi(Ne),Te):se},Te};function Pi(){return 64}function cn(){return"circle"}function ln(X){var se=Math.sqrt(X/tt);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Cn=e.map({circle:ln,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=Cn.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*ke);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,kt=Ps||{time:Date.now(),ease:bl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Hr[--Ii].call(X,gi);if(ai>=1)return kt.event&&kt.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}kt||(nt=He.time,jt=No(qr,0,nt),kt=Ye[Ne]={tween:new T,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,Ne=6,He=3,Ye=[10],kt=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Hr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=kt==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():kt,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Zr=yr.selectAll(".tick").data(_i,qr),ai=Zr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Zr.exit()).style("opacity",Je).remove(),Ii=e.transition(Zr.order()).style("opacity",1),Si=Math.max(Te,0)+He,ei,Ln=wn(qr),En=yr.selectAll(".domain").data([0]),Un=(En.enter().append("path").attr("class","domain"),e.transition(En));ai.append("line"),ai.append("text");var ia=ai.select("line"),Ea=Ii.select("line"),Ia=Zr.select("text").text(bi),yo=ai.select("text"),Da=Ii.select("text"),go=se==="top"||se==="left"?-1:1,Is,Ms,Xs,Gn;if(se==="bottom"||se==="top"?(ei=au,Is="x",Xs="y",Ms="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Un.attr("d","M"+Ln[0]+","+go*Ne+"V0H"+Ln[1]+"V"+go*Ne)):(ei=Js,Is="y",Xs="x",Ms="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Un.attr("d","M"+go*Ne+","+Ln[0]+"H0V"+Ln[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Xs,go*Si),Ea.attr(Ms,0).attr(Gn,go*Te),Da.attr(Is,0).attr(Xs,go*Si),qr.rangeBand){var ja=qr,Fo=ja.rangeBand()/2;Hr=qr=function(Uo){return ja(Uo)+Fo}}else Hr.rangeBand?Hr=qr:gi.call(ei,qr,Hr);ai.call(ei,Hr,qr),Ii.call(ei,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Ul,jt):se},jt.ticks=function(){return arguments.length?(Ye=r(arguments),jt):Ye},jt.tickValues=function(gr){return arguments.length?(kt=gr,jt):kt},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function Js(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=Le(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,kt,nt=!0,jt=!0,gr=dc[0];function yr(Zr){Zr.each(function(){var ai=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ai.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ai.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ii=ai.selectAll(".resize").data(gr,G);Ii.exit().remove(),Ii.enter().append("g").attr("class",function(En){return"resize "+En}).style("cursor",function(En){return eu[En]}).append("rect").attr("x",function(En){return/[ew]$/.test(En)?-3:null}).attr("y",function(En){return/^[ns]/.test(En)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ii.style("display",yr.empty()?"none":null);var Si=e.transition(ai),ei=e.transition(gi),Ln;se&&(Ln=wn(se),ei.attr("x",Ln[0]).attr("width",Ln[1]-Ln[0]),qr(Si)),Te&&(Ln=wn(Te),ei.attr("y",Ln[0]).attr("height",Ln[1]-Ln[0]),_i(Si)),Hr(Si)})}yr.event=function(Zr){Zr.each(function(){var ai=X.of(this,arguments),gi={x:Ne,y:He,i:Ye,j:kt},Ii=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Ii.i,kt=Ii.j,Ne=Ii.x,He=Ii.y,ai({type:"brushstart"})}).tween("brush:brush",function(){var Si=Gu(Ne,gi.x),ei=Gu(He,gi.y);return Ye=kt=null,function(Ln){Ne=gi.x=Si(Ln),He=gi.y=ei(Ln),ai({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=gi.i,kt=gi.j,ai({type:"brush",mode:"resize"}),ai({type:"brushend"})}):(ai({type:"brushstart"}),ai({type:"brush",mode:"resize"}),ai({type:"brushend"}))})};function Hr(Zr){Zr.selectAll(".resize").attr("transform",function(ai){return"translate("+Ne[+/e$/.test(ai)]+","+He[+/^s/.test(ai)]+")"})}function qr(Zr){Zr.select(".extent").attr("x",Ne[0]),Zr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Zr){Zr.select(".extent").attr("y",He[0]),Zr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Zr=this,ai=e.select(e.event.target),gi=X.of(Zr,arguments),Ii=e.select(Zr),Si=ai.datum(),ei=!/^(n|s)$/.test(Si)&&se,Ln=!/^(e|w)$/.test(Si)&&Te,En=ai.classed("extent"),Un=Br(Zr),ia,Ea=e.mouse(Zr),Ia,yo=e.select(a(Zr)).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),Ii.interrupt().selectAll("*").interrupt(),En)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Si){var Da=+/w$/.test(Si),go=+/^n/.test(Si);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Ii.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ai.style("cursor")),gi({type:"brushstart"}),Xs();function Is(){e.event.keyCode==32&&(En||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],En=2),_e())}function Ms(){e.event.keyCode==32&&En==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],En=0,_e())}function Xs(){var Fo=e.mouse(Zr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),En||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof x6=="object"&&typeof wee!="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($e,St,Qt,Gt){function _t(It){return $e(It=arguments.length===0?new Date:new Date(+It)),It}return _t.floor=function(It){return $e(It=new Date(+It)),It},_t.ceil=function(It){return $e(It=new Date(It-1)),St(It,1),$e(It),It},_t.round=function(It){var mt=_t(It),er=_t.ceil(It);return It-mt0))return lr;do lr.push(wr=new Date(+It)),St(It,er),$e(It);while(wr=mt)for(;$e(mt),!It(mt);)mt.setTime(mt-1)},function(mt,er){if(mt>=mt)if(er<0)for(;++er<=0;)for(;St(mt,-1),!It(mt););else for(;--er>=0;)for(;St(mt,1),!It(mt););})},Qt&&(_t.count=function(It,mt){return t.setTime(+It),r.setTime(+mt),$e(t),$e(r),Math.floor(Qt(t,r))},_t.every=function(It){return It=Math.floor(It),!isFinite(It)||!(It>0)?null:It>1?_t.filter(Gt?function(mt){return Gt(mt)%It===0}:function(mt){return _t.count(0,mt)%It===0}):_t}),_t}var i=n(function(){},function($e,St){$e.setTime(+$e+St)},function($e,St){return St-$e});i.every=function($e){return $e=Math.floor($e),!isFinite($e)||!($e>0)?null:$e>1?n(function(St){St.setTime(Math.floor(St/$e)*$e)},function(St,Qt){St.setTime(+St+Qt*$e)},function(St,Qt){return(Qt-St)/$e}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function($e){$e.setTime($e-$e.getMilliseconds())},function($e,St){$e.setTime(+$e+St*o)},function($e,St){return(St-$e)/o},function($e){return $e.getUTCSeconds()}),h=f.range,d=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o)},function($e,St){$e.setTime(+$e+St*s)},function($e,St){return(St-$e)/s},function($e){return $e.getMinutes()}),v=d.range,_=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o-$e.getMinutes()*s)},function($e,St){$e.setTime(+$e+St*l)},function($e,St){return(St-$e)/l},function($e){return $e.getHours()}),b=_.range,p=n(function($e){$e.setHours(0,0,0,0)},function($e,St){$e.setDate($e.getDate()+St)},function($e,St){return(St-$e-(St.getTimezoneOffset()-$e.getTimezoneOffset())*s)/u},function($e){return $e.getDate()-1}),k=p.range;function E($e){return n(function(St){St.setDate(St.getDate()-(St.getDay()+7-$e)%7),St.setHours(0,0,0,0)},function(St,Qt){St.setDate(St.getDate()+Qt*7)},function(St,Qt){return(Qt-St-(Qt.getTimezoneOffset()-St.getTimezoneOffset())*s)/c})}var T=E(0),L=E(1),x=E(2),C=E(3),M=E(4),g=E(5),P=E(6),A=T.range,z=L.range,O=x.range,U=C.range,G=M.range,Z=g.range,j=P.range,N=n(function($e){$e.setDate(1),$e.setHours(0,0,0,0)},function($e,St){$e.setMonth($e.getMonth()+St)},function($e,St){return St.getMonth()-$e.getMonth()+(St.getFullYear()-$e.getFullYear())*12},function($e){return $e.getMonth()}),H=N.range,re=n(function($e){$e.setMonth(0,1),$e.setHours(0,0,0,0)},function($e,St){$e.setFullYear($e.getFullYear()+St)},function($e,St){return St.getFullYear()-$e.getFullYear()},function($e){return $e.getFullYear()});re.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(St){St.setFullYear(Math.floor(St.getFullYear()/$e)*$e),St.setMonth(0,1),St.setHours(0,0,0,0)},function(St,Qt){St.setFullYear(St.getFullYear()+Qt*$e)})};var oe=re.range,_e=n(function($e){$e.setUTCSeconds(0,0)},function($e,St){$e.setTime(+$e+St*s)},function($e,St){return(St-$e)/s},function($e){return $e.getUTCMinutes()}),Ce=_e.range,Le=n(function($e){$e.setUTCMinutes(0,0,0)},function($e,St){$e.setTime(+$e+St*l)},function($e,St){return(St-$e)/l},function($e){return $e.getUTCHours()}),ge=Le.range,ie=n(function($e){$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCDate($e.getUTCDate()+St)},function($e,St){return(St-$e)/u},function($e){return $e.getUTCDate()-1}),Se=ie.range;function Ee($e){return n(function(St){St.setUTCDate(St.getUTCDate()-(St.getUTCDay()+7-$e)%7),St.setUTCHours(0,0,0,0)},function(St,Qt){St.setUTCDate(St.getUTCDate()+Qt*7)},function(St,Qt){return(Qt-St)/c})}var Ae=Ee(0),Be=Ee(1),Pe=Ee(2),me=Ee(3),De=Ee(4),ce=Ee(5),je=Ee(6),lt=Ae.range,pt=Be.range,Vt=Pe.range,ot=me.range,ut=De.range,Wt=ce.range,Nt=je.range,$t=n(function($e){$e.setUTCDate(1),$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCMonth($e.getUTCMonth()+St)},function($e,St){return St.getUTCMonth()-$e.getUTCMonth()+(St.getUTCFullYear()-$e.getUTCFullYear())*12},function($e){return $e.getUTCMonth()}),sr=$t.range,Tr=n(function($e){$e.setUTCMonth(0,1),$e.setUTCHours(0,0,0,0)},function($e,St){$e.setUTCFullYear($e.getUTCFullYear()+St)},function($e,St){return St.getUTCFullYear()-$e.getUTCFullYear()},function($e){return $e.getUTCFullYear()});Tr.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(St){St.setUTCFullYear(Math.floor(St.getUTCFullYear()/$e)*$e),St.setUTCMonth(0,1),St.setUTCHours(0,0,0,0)},function(St,Qt){St.setUTCFullYear(St.getUTCFullYear()+Qt*$e)})};var fr=Tr.range;e.timeDay=p,e.timeDays=k,e.timeFriday=g,e.timeFridays=Z,e.timeHour=_,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=A,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=O,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Wt,e.utcHour=Le,e.utcHours=ge,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Ce,e.utcMonday=Be,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=je,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=lt,e.utcThursday=De,e.utcThursdays=ut,e.utcTuesday=Pe,e.utcTuesdays=Vt,e.utcWednesday=me,e.utcWednesdays=ot,e.utcWeek=Ae,e.utcWeeks=lt,e.utcYear=Tr,e.utcYears=fr,Object.defineProperty(e,"__esModule",{value:!0})})});var f3=ye((b6,Tee)=>{(function(e,t){typeof b6=="object"&&typeof Tee!="undefined"?t(b6,SO()):(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,tt=Ge.time,xt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,ke=Ge.months,vt=Ge.shortMonths,ir=h(xt),ar=d(xt),vr=h(Ie),ii=d(Ie),pi=h(xe),$r=d(xe),di=h(ke),ji=d(ke),In=h(vt),wi=d(vt),On={a:$i,A:tn,b:fn,B:yn,c:null,d:N,e:N,f:Ce,H,I:re,j:oe,L:_e,m:Le,M:ge,p:Sn,q:Ba,Q:mt,s:er,S:ie,u:Se,U:Ee,V:Ae,w:Be,W:Pe,x:null,X:null,y:me,Y:De,Z:ce,"%":It},qn={a:ua,A:ma,b:Wa,B:Fa,c:null,d:je,e:je,f:ut,H:lt,I:pt,j:Vt,L:ot,m:Wt,M:Nt,p:Xo,q:da,Q:mt,s:er,S:$t,u:sr,U:Tr,V:fr,w:$e,W:St,x:null,X:null,y:Qt,Y:Gt,Z:_t,"%":It},Fn={a:rr,A:nr,b:Er,B:Xr,c:ri,d:M,e:M,f:U,H:P,I:P,j:g,L:O,m:C,M:A,p:wt,q:x,Q:Z,s:j,S:z,u:_,U:b,V:p,w:v,W:k,x:Qr,X:Oi,y:T,Y:E,Z:L,"%":G};On.x=ra(We,On),On.X=ra(tt,On),On.c=ra(Je,On),qn.x=ra(We,qn),qn.X=ra(tt,qn),qn.c=ra(Je,qn);function ra(Wn,Ha){return function(vo){var jn=[],Mt=-1,kr=0,Jr=Wn.length,vi,hn,An;for(vo instanceof Date||(vo=new Date(+vo));++Mt53)return null;"w"in jn||(jn.w=1),"Z"in jn?(kr=n(i(jn.y,0,1)),Jr=kr.getUTCDay(),kr=Jr>4||Jr===0?t.utcMonday.ceil(kr):t.utcMonday(kr),kr=t.utcDay.offset(kr,(jn.V-1)*7),jn.y=kr.getUTCFullYear(),jn.m=kr.getUTCMonth(),jn.d=kr.getUTCDate()+(jn.w+6)%7):(kr=r(i(jn.y,0,1)),Jr=kr.getDay(),kr=Jr>4||Jr===0?t.timeMonday.ceil(kr):t.timeMonday(kr),kr=t.timeDay.offset(kr,(jn.V-1)*7),jn.y=kr.getFullYear(),jn.m=kr.getMonth(),jn.d=kr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Jr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Jr+5)%7:jn.w+jn.U*7-(Jr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Ut(Wn,Ha,vo,jn){for(var Mt=0,kr=Ha.length,Jr=vo.length,vi,hn;Mt=Jr)return-1;if(vi=Ha.charCodeAt(Mt++),vi===37){if(vi=Ha.charAt(Mt++),hn=Fn[vi in o?Ha.charAt(Mt++):vi],!hn||(jn=hn(Wn,vo,jn))<0)return-1}else if(vi!=vo.charCodeAt(jn++))return-1}return jn}function wt(Wn,Ha,vo){var jn=ir.exec(Ha.slice(vo));return jn?(Wn.p=ar[jn[0].toLowerCase()],vo+jn[0].length):-1}function rr(Wn,Ha,vo){var jn=pi.exec(Ha.slice(vo));return jn?(Wn.w=$r[jn[0].toLowerCase()],vo+jn[0].length):-1}function nr(Wn,Ha,vo){var jn=vr.exec(Ha.slice(vo));return jn?(Wn.w=ii[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ha,vo){var jn=In.exec(Ha.slice(vo));return jn?(Wn.m=wi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Xr(Wn,Ha,vo){var jn=di.exec(Ha.slice(vo));return jn?(Wn.m=ji[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ha,vo){return Ut(Wn,Je,Ha,vo)}function Qr(Wn,Ha,vo){return Ut(Wn,We,Ha,vo)}function Oi(Wn,Ha,vo){return Ut(Wn,tt,Ha,vo)}function $i(Wn){return xe[Wn.getDay()]}function tn(Wn){return Ie[Wn.getDay()]}function fn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return ke[Wn.getMonth()]}function Sn(Wn){return xt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function ua(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return ke[Wn.getUTCMonth()]}function Xo(Wn){return xt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ha=ra(Wn+="",On);return Ha.toString=function(){return Wn},Ha},parse:function(Wn){var Ha=la(Wn+="",!1);return Ha.toString=function(){return Wn},Ha},utcFormat:function(Wn){var Ha=ra(Wn+="",qn);return Ha.toString=function(){return Wn},Ha},utcParse:function(Wn){var Ha=la(Wn+="",!0);return Ha.toString=function(){return Wn},Ha}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,We){var tt=Ge<0?"-":"",xt=(tt?-Ge:Ge)+"",Ie=xt.length;return tt+(Ie68?1900:2e3),We+tt[0].length):-1}function L(Ge,Je,We){var tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(We,We+6));return tt?(Ge.Z=tt[1]?0:-(tt[2]+(tt[3]||"00")),We+tt[0].length):-1}function x(Ge,Je,We){var tt=s.exec(Je.slice(We,We+1));return tt?(Ge.q=tt[0]*3-3,We+tt[0].length):-1}function C(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.m=tt[0]-1,We+tt[0].length):-1}function M(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.d=+tt[0],We+tt[0].length):-1}function g(Ge,Je,We){var tt=s.exec(Je.slice(We,We+3));return tt?(Ge.m=0,Ge.d=+tt[0],We+tt[0].length):-1}function P(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.H=+tt[0],We+tt[0].length):-1}function A(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.M=+tt[0],We+tt[0].length):-1}function z(Ge,Je,We){var tt=s.exec(Je.slice(We,We+2));return tt?(Ge.S=+tt[0],We+tt[0].length):-1}function O(Ge,Je,We){var tt=s.exec(Je.slice(We,We+3));return tt?(Ge.L=+tt[0],We+tt[0].length):-1}function U(Ge,Je,We){var tt=s.exec(Je.slice(We,We+6));return tt?(Ge.L=Math.floor(tt[0]/1e3),We+tt[0].length):-1}function G(Ge,Je,We){var tt=l.exec(Je.slice(We,We+1));return tt?We+tt[0].length:-1}function Z(Ge,Je,We){var tt=s.exec(Je.slice(We));return tt?(Ge.Q=+tt[0],We+tt[0].length):-1}function j(Ge,Je,We){var tt=s.exec(Je.slice(We));return tt?(Ge.s=+tt[0],We+tt[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 oe(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 Ce(Ge,Je){return _e(Ge,Je)+"000"}function Le(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 Ee(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(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 Pe(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 De(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 je(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function lt(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Vt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function ot(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function ut(Ge,Je){return ot(Ge,Je)+"000"}function Wt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function Tr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function fr(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 $e(Ge){return Ge.getUTCDay()}function St(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function Qt(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Gt(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function _t(){return"+0000"}function It(){return"%"}function mt(Ge){return+Ge}function er(Ge){return Math.floor(+Ge/1e3)}var lr;wr({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 wr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Lr="%Y-%m-%dT%H:%M:%S.%LZ";function ti(Ge){return Ge.toISOString()}var Br=Date.prototype.toISOString?ti:e.utcFormat(Lr);function Vr(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Vr:e.utcParse(Lr);e.isoFormat=Br,e.isoParse=dt,e.timeFormatDefaultLocale=wr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var MO=ye((w6,Aee)=>{(function(e,t){typeof w6=="object"&&typeof Aee!="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,M){if((g=(C=M?C.toExponential(M-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,M){return function(g,P){for(var A=g.length,z=[],O=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),z.push(g.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[O=(O+1)%C.length];return z.reverse().join(M)}}function a(C){return function(M){return M.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(M=o.exec(C)))throw new Error("invalid format: "+C);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[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 M=C.length,g=1,P=-1,A;g0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var c;function f(C,M){var g=r(C,M);if(!g)return C+"";var P=g[0],A=g[1],z=A-(c=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(C,Math.max(0,M+z-1))[0]}function h(C,M){var g=r(C,M);if(!g)return C+"";var P=g[0],A=g[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,M){return(C*100).toFixed(M)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,M){return C.toExponential(M)},f:function(C,M){return C.toFixed(M)},g:function(C,M){return C.toPrecision(M)},o:function(C){return Math.round(C).toString(8)},p:function(C,M){return h(C*100,M)},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 _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var M=C.grouping===void 0||C.thousands===void 0?v:i(_.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",z=C.numerals===void 0?v:a(_.call(C.numerals,String)),O=C.percent===void 0?"%":C.percent+"",U=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,oe=N.sign,_e=N.symbol,Ce=N.zero,Le=N.width,ge=N.comma,ie=N.precision,Se=N.trim,Ee=N.type;Ee==="n"?(ge=!0,Ee="g"):d[Ee]||(ie===void 0&&(ie=12),Se=!0,Ee="g"),(Ce||H==="0"&&re==="=")&&(Ce=!0,H="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Be=_e==="$"?P:/[%p]/.test(Ee)?O:"",Pe=d[Ee],me=/[defgprs%]/.test(Ee);ie=ie===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function De(ce){var je=Ae,lt=Be,pt,Vt,ot;if(Ee==="c")lt=Pe(ce)+lt,ce="";else{ce=+ce;var ut=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),ut&&+ce==0&&oe!=="+"&&(ut=!1),je=(ut?oe==="("?oe:U:oe==="-"||oe==="("?"":oe)+je,lt=(Ee==="s"?b[8+c/3]:"")+lt+(ut&&oe==="("?")":""),me){for(pt=-1,Vt=ce.length;++ptot||ot>57){lt=(ot===46?A+ce.slice(pt+1):ce.slice(pt))+lt,ce=ce.slice(0,pt);break}}}ge&&!Ce&&(ce=M(ce,1/0));var Wt=je.length+ce.length+lt.length,Nt=Wt>1)+je+ce+lt+Nt.slice(Wt);break;default:ce=Nt+je+ce+lt;break}return z(ce)}return De.toString=function(){return N+""},De}function j(N,H){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,_e=Math.pow(10,-oe),Ce=b[8+oe/3];return function(Le){return re(_e*Le)+Ce}}return{format:Z,formatPrefix:j}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(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,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(C)))}function x(C,M){return C=Math.abs(C),M=Math.abs(M)-C,Math.max(0,n(M)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Mee=ye((grr,See)=>{"use strict";See.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((mrr,Eee)=>{"use strict";var Stt=Mee();Eee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Stt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var fs=ye((yrr,kee)=>{"use strict";kee.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 EO=ye((T6,Cee)=>{(function(e,t){typeof T6=="object"&&typeof Cee!="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 _=new ArrayBuffer(s),b=new Uint8Array(_);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ty=ye((_rr,Lee)=>{"use strict";Lee.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 vv=ye(xg=>{"use strict";var Mtt=EO().decode,Ett=Ty(),kO=Array.isArray,ktt=ArrayBuffer,Ctt=DataView;function Pee(e){return ktt.isView(e)&&!(e instanceof Ctt)}xg.isTypedArray=Pee;function A6(e){return kO(e)||Pee(e)}xg.isArrayOrTypedArray=A6;function Ltt(e){return!A6(e[0])}xg.isArray1D=Ltt;xg.ensureArray=function(e,t){return kO(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 CO(e){return e.constructor===ArrayBuffer}xg.isArrayBuffer=CO;xg.decodeTypedArraySpec=function(e){var t=[],r=Ptt(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;CO(o)||(o=Mtt(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 Ree=Eo(),PO=vv().isArrayOrTypedArray;Oee.exports=function(t,r){if(Ree(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 h3=FS(),ztt=/^\w*$/,Ott=0,qee=1,S6=2,Bee=3,gb=4;Nee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=h3(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 qtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Btt=/^[^\.\[\]]+$/;Vee.exports=function(e,t){for(;t;){var r=e.match(qtt);if(r)e=r[1];else if(e.match(Btt))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((Arr,Hee)=>{"use strict";var Ntt=Eo();Hee.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 Ntt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Xee=ye((Srr,Wee)=>{"use strict";var jee=vv().isArrayOrTypedArray,zS=Ty();Wee.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(jee(i)&&jee(a)&&zS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Utt(e,t){var r=e%t;return r<0?r+t:r}function Vtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Zee.exports={mod:Utt,modHalf:Vtt}});var fd=ye((Err,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,De){if(me=me||"",De=De||{},me instanceof l)return me;if(!(this instanceof l))return new l(me,De);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=De.format||ce.format,this._gradientType=De.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(),De,ce,je,lt,pt,Vt;return De=me.r/255,ce=me.g/255,je=me.b/255,De<=.03928?lt=De/12.92:lt=e.pow((De+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),je<=.03928?Vt=je/12.92:Vt=e.pow((je+.055)/1.055,2.4),.2126*lt+.7152*pt+.0722*Vt},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),De=i(me.h*360),ce=i(me.s*100),je=i(me.v*100);return this._a==1?"hsv("+De+", "+ce+"%, "+je+"%)":"hsva("+De+", "+ce+"%, "+je+"%, "+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),De=i(me.h*360),ce=i(me.s*100),je=i(me.l*100);return this._a==1?"hsl("+De+", "+ce+"%, "+je+"%)":"hsla("+De+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(me){return _(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[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var De="#"+p(this._r,this._g,this._b,this._a),ce=De,je=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("+je+"startColorstr="+De+",endColorstr="+ce+")"},toString:function(me){var De=!!me;me=me||this._format;var ce=!1,je=this._a<1&&this._a>=0,lt=!De&&je&&(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,De){var ce=me.apply(null,[this].concat([].slice.call(De)));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(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(me,De){return me.apply(null,[this].concat([].slice.call(De)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},l.fromRatio=function(me,De){if(typeof me=="object"){var ce={};for(var je in me)me.hasOwnProperty(je)&&(je==="a"?ce[je]=me[je]:ce[je]=ge(me[je]));me=ce}return l(me,De)};function u(me){var De={r:0,g:0,b:0},ce=1,je=null,lt=null,pt=null,Vt=!1,ot=!1;return typeof me=="string"&&(me=Be(me)),typeof me=="object"&&(Ae(me.r)&&Ae(me.g)&&Ae(me.b)?(De=c(me.r,me.g,me.b),Vt=!0,ot=String(me.r).substr(-1)==="%"?"prgb":"rgb"):Ae(me.h)&&Ae(me.s)&&Ae(me.v)?(je=ge(me.s),lt=ge(me.v),De=v(me.h,je,lt),Vt=!0,ot="hsv"):Ae(me.h)&&Ae(me.s)&&Ae(me.l)&&(je=ge(me.s),pt=ge(me.l),De=h(me.h,je,pt),Vt=!0,ot="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Vt,format:me.format||ot,r:a(255,o(De.r,0)),g:a(255,o(De.g,0)),b:a(255,o(De.b,0)),a:ce}}function c(me,De,ce){return{r:H(me,255)*255,g:H(De,255)*255,b:H(ce,255)*255}}function f(me,De,ce){me=H(me,255),De=H(De,255),ce=H(ce,255);var je=o(me,De,ce),lt=a(me,De,ce),pt,Vt,ot=(je+lt)/2;if(je==lt)pt=Vt=0;else{var ut=je-lt;switch(Vt=ot>.5?ut/(2-je-lt):ut/(je+lt),je){case me:pt=(De-ce)/ut+(De1&&($t-=1),$t<1/6?Wt+(Nt-Wt)*6*$t:$t<1/2?Nt:$t<2/3?Wt+(Nt-Wt)*(2/3-$t)*6:Wt}if(De===0)je=lt=pt=ce;else{var ot=ce<.5?ce*(1+De):ce+De-ce*De,ut=2*ce-ot;je=Vt(ut,ot,me+1/3),lt=Vt(ut,ot,me),pt=Vt(ut,ot,me-1/3)}return{r:je*255,g:lt*255,b:pt*255}}function d(me,De,ce){me=H(me,255),De=H(De,255),ce=H(ce,255);var je=o(me,De,ce),lt=a(me,De,ce),pt,Vt,ot=je,ut=je-lt;if(Vt=je===0?0:ut/je,je==lt)pt=0;else{switch(je){case me:pt=(De-ce)/ut+(De>1)+720)%360;--De;)je.h=(je.h+lt)%360,pt.push(l(je));return pt}function U(me,De){De=De||6;for(var ce=l(me).toHsv(),je=ce.h,lt=ce.s,pt=ce.v,Vt=[],ot=1/De;De--;)Vt.push(l({h:je,s:lt,v:pt})),pt=(pt+ot)%1;return Vt}l.mix=function(me,De,ce){ce=ce===0?0:ce||50;var je=l(me).toRgb(),lt=l(De).toRgb(),pt=ce/100,Vt={r:(lt.r-je.r)*pt+je.r,g:(lt.g-je.g)*pt+je.g,b:(lt.b-je.b)*pt+je.b,a:(lt.a-je.a)*pt+je.a};return l(Vt)},l.readability=function(me,De){var ce=l(me),je=l(De);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},l.isReadable=function(me,De,ce){var je=l.readability(me,De),lt,pt;switch(pt=!1,lt=Pe(ce),lt.level+lt.size){case"AAsmall":case"AAAlarge":pt=je>=4.5;break;case"AAlarge":pt=je>=3;break;case"AAAsmall":pt=je>=7;break}return pt},l.mostReadable=function(me,De,ce){var je=null,lt=0,pt,Vt,ot,ut;ce=ce||{},Vt=ce.includeFallbackColors,ot=ce.level,ut=ce.size;for(var Wt=0;Wtlt&&(lt=pt,je=l(De[Wt]));return l.isReadable(me,je,{level:ot,size:ut})||!Vt?je:(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 De={};for(var ce in me)me.hasOwnProperty(ce)&&(De[me[ce]]=ce);return De}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function H(me,De){_e(me)&&(me="100%");var ce=Ce(me);return me=a(De,o(0,parseFloat(me))),ce&&(me=parseInt(me*De,10)/100),e.abs(me-De)<1e-6?1:me%De/parseFloat(De)}function re(me){return a(1,o(0,me))}function oe(me){return parseInt(me,16)}function _e(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Ce(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Le(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 oe(me)/255}var Ee=function(){var me="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+De+")|(?:"+me+")",je="[\\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"+je),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+je),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 Ae(me){return!!Ee.CSS_UNIT.exec(me)}function Be(me){me=me.replace(t,"").replace(r,"").toLowerCase();var De=!1;if(G[me])me=G[me],De=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(me))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:De?"name":"hex8"}:(ce=Ee.hex6.exec(me))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:De?"name":"hex"}:(ce=Ee.hex4.exec(me))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:De?"name":"hex8"}:(ce=Ee.hex3.exec(me))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:De?"name":"hex"}:!1}function Pe(me){var De,ce;return me=me||{level:"AA",size:"small"},De=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:De,size:ce}}typeof E6!="undefined"&&E6.exports?E6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(BS=>{"use strict";var Yee=Ty(),OS=Array.isArray;function Gtt(e,t){var r,n;for(r=0;r{"use strict";Kee.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 NS=ye((Lrr,Jee)=>{"use strict";Jee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var W1=ye((Prr,ete)=>{"use strict";var $ee=NS(),Qee=ec(),IO=Qee({editType:"none"});IO.family.dflt=$ee.HOVERFONT;IO.size.dflt=$ee.HOVERFONTSIZE;ete.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:IO,grouptitlefont:Qee({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 v3=ye((Irr,tte)=>{"use strict";var Htt=ec(),US=W1().hoverlabel,VS=Ao().extendFlat;tte.exports={hoverlabel:{bgcolor:VS({},US.bgcolor,{arrayOk:!0}),bordercolor:VS({},US.bordercolor,{arrayOk:!0}),font:Htt({arrayOk:!0,editType:"none"}),align:VS({},US.align,{arrayOk:!0}),namelength:VS({},US.namelength,{arrayOk:!0}),showarrow:VS({},US.showarrow),editType:"none"}}});var Gl=ye((Rrr,rte)=>{"use strict";var jtt=ec(),Wtt=v3();rte.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:jtt({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:Wtt.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 mb=ye((Drr,ate)=>{"use strict";var Xtt=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)"]]},ite=k6.RdBu;function Ztt(e,t){if(t||(t=ite),!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()),nte(e)?e:t}function nte(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";yb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];yb.defaultLine="#444";yb.lightLine="#eee";yb.background="#fff";yb.borderLine="#BEC8D9";yb.lightFraction=100*10/11});var ka=ye((zrr,ote)=>{"use strict";var wp=fd(),Ktt=Eo(),Jtt=vv().isTypedArray,hd=ote.exports={},C6=Ih();hd.defaults=C6.defaults;var $tt=hd.defaultLine=C6.defaultLine;hd.lightLine=C6.lightLine;var DO=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||DO).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,DO)));var i=n.isDark()?t?n.lighten(t):DO:r?n.darken(r):$tt;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((Orr,ste)=>{"use strict";ste.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var p3=ye(lte=>{"use strict";lte.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 hte=ye(Tp=>{"use strict";var FO=Eo(),ute=fd(),cte=Ao().extendFlat,Qtt=Gl(),ert=mb(),trt=ka(),rrt=X1().DESELECTDIM,g3=FS(),fte=p3().counter,irt=d3().modHalf,bg=vv().isArrayOrTypedArray,Z1=vv().isTypedArraySpec,Y1=vv().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)),!FO(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||!FO(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)),ute(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return ute(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(ert.get(e,r))}},angle:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),e==="auto"?t.set("auto"):FO(e)?t.set(irt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||fte(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:!!fte(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 dte={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},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:{}}},vte={};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(dte,vte);gte.exports={configAttributes:dte,dfltConfig:vte}});var OO=ye((Urr,mte)=>{"use strict";var zO=Oa(),nrt=Eo(),GS=[];mte.exports=function(e,t){if(GS.indexOf(e)!==-1)return;GS.push(e);var r=1e3;nrt(t)?r=t:t==="long"&&(r=3e3);var n=zO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(GS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=GS.indexOf(s);l!==-1&&GS.splice(l,1),zO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=zO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var m3=_b().dfltConfig,qO=OO(),BO=yte.exports={};BO.log=function(){var e;if(m3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};BO.warn=function(){var e;if(m3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};BO.error=function(){var e;if(m3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var P6=ye((Grr,_te)=>{"use strict";_te.exports=function(){}});var NO=ye((Hrr,xte)=>{"use strict";xte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{bte.exports=art;function art(){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 Ate=ye((Wrr,Tte)=>{Tte.exports=ort;function ort(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 Mte=ye((Xrr,Ste)=>{Ste.exports=srt;function srt(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 UO=ye((Zrr,Ete)=>{Ete.exports=lrt;function lrt(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 Cte=ye((Yrr,kte)=>{kte.exports=urt;function urt(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 Pte=ye((Krr,Lte)=>{Lte.exports=crt;function crt(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],_=t[13],b=t[14],p=t[15],k=r*s-n*o,E=r*l-i*o,T=r*u-a*o,L=n*l-i*s,x=n*u-a*s,C=i*u-a*l,M=c*_-f*v,g=c*b-h*v,P=c*p-d*v,A=f*b-h*_,z=f*p-d*_,O=h*p-d*b,U=k*O-E*z+T*A+L*P-x*g+C*M;return U?(U=1/U,e[0]=(s*O-l*z+u*A)*U,e[1]=(i*z-n*O-a*A)*U,e[2]=(_*C-b*x+p*L)*U,e[3]=(h*x-f*C-d*L)*U,e[4]=(l*P-o*O-u*g)*U,e[5]=(r*O-i*P+a*g)*U,e[6]=(b*T-v*C-p*E)*U,e[7]=(c*C-h*T+d*E)*U,e[8]=(o*z-s*P+u*M)*U,e[9]=(n*P-r*z-a*M)*U,e[10]=(v*x-_*T+p*k)*U,e[11]=(f*T-c*x-d*k)*U,e[12]=(s*g-o*A-l*M)*U,e[13]=(r*A-n*g+i*M)*U,e[14]=(_*E-v*L-b*k)*U,e[15]=(c*L-f*E+h*k)*U,e):null}});var Rte=ye((Jrr,Ite)=>{Ite.exports=frt;function frt(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],_=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+_*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+_*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+_*(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*_)-c*(s*p-u*_)+v*(s*d-u*f),e[9]=-(r*(f*p-d*_)-c*(n*p-a*_)+v*(n*d-a*f)),e[10]=r*(s*p-u*_)-o*(n*p-a*_)+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*_)-c*(s*b-l*_)+v*(s*h-l*f)),e[13]=r*(f*b-h*_)-c*(n*b-i*_)+v*(n*h-i*f),e[14]=-(r*(s*b-l*_)-o*(n*b-i*_)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Fte=ye(($rr,Dte)=>{Dte.exports=hrt;function hrt(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],_=e[14],b=e[15],p=t*o-r*a,k=t*s-n*a,E=t*l-i*a,T=r*s-n*o,L=r*l-i*o,x=n*l-i*s,C=u*v-c*d,M=u*_-f*d,g=u*b-h*d,P=c*_-f*v,A=c*b-h*v,z=f*b-h*_;return p*z-k*A+E*P+T*g-L*M+x*C}});var Ote=ye((Qrr,zte)=>{zte.exports=drt;function drt(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],_=t[12],b=t[13],p=t[14],k=t[15],E=r[0],T=r[1],L=r[2],x=r[3];return e[0]=E*n+T*s+L*f+x*_,e[1]=E*i+T*l+L*h+x*b,e[2]=E*a+T*u+L*d+x*p,e[3]=E*o+T*c+L*v+x*k,E=r[4],T=r[5],L=r[6],x=r[7],e[4]=E*n+T*s+L*f+x*_,e[5]=E*i+T*l+L*h+x*b,e[6]=E*a+T*u+L*d+x*p,e[7]=E*o+T*c+L*v+x*k,E=r[8],T=r[9],L=r[10],x=r[11],e[8]=E*n+T*s+L*f+x*_,e[9]=E*i+T*l+L*h+x*b,e[10]=E*a+T*u+L*d+x*p,e[11]=E*o+T*c+L*v+x*k,E=r[12],T=r[13],L=r[14],x=r[15],e[12]=E*n+T*s+L*f+x*_,e[13]=E*i+T*l+L*h+x*b,e[14]=E*a+T*u+L*d+x*p,e[15]=E*o+T*c+L*v+x*k,e}});var Bte=ye((eir,qte)=>{qte.exports=vrt;function vrt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,_,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],_=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]=_,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+_*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 Ute=ye((tir,Nte)=>{Nte.exports=prt;function prt(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 Gte=ye((rir,Vte)=>{Vte.exports=grt;function grt(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z,O,U,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],_=t[4],b=t[5],p=t[6],k=t[7],E=t[8],T=t[9],L=t[10],x=t[11],C=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,A=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,U=a*o*c-i*l,G=o*o*c+u,e[0]=f*C+_*M+E*g,e[1]=h*C+b*M+T*g,e[2]=d*C+p*M+L*g,e[3]=v*C+k*M+x*g,e[4]=f*P+_*A+E*z,e[5]=h*P+b*A+T*z,e[6]=d*P+p*A+L*z,e[7]=v*P+k*A+x*z,e[8]=f*O+_*U+E*G,e[9]=h*O+b*U+T*G,e[10]=d*O+p*U+L*G,e[11]=v*O+k*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var jte=ye((iir,Hte)=>{Hte.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 Xte=ye((nir,Wte)=>{Wte.exports=yrt;function yrt(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 Yte=ye((air,Zte)=>{Zte.exports=_rt;function _rt(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 Jte=ye((oir,Kte)=>{Kte.exports=xrt;function xrt(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 Qte=ye((sir,$te)=>{$te.exports=brt;function brt(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,_=a*u,b=o*s,p=o*l,k=o*u;return e[0]=1-(d+_),e[1]=f+k,e[2]=h-p,e[3]=0,e[4]=f-k,e[5]=1-(c+_),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 tre=ye((lir,ere)=>{ere.exports=wrt;function wrt(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 ire=ye((uir,rre)=>{rre.exports=Trt;function Trt(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 are=ye((cir,nre)=>{nre.exports=Art;function Art(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 sre=ye((fir,ore)=>{ore.exports=Srt;function Srt(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 ure=ye((hir,lre)=>{lre.exports=Mrt;function Mrt(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 fre=ye((dir,cre)=>{cre.exports=Ert;function Ert(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,_=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+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=ye((vir,hre)=>{hre.exports=krt;function krt(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 pre=ye((pir,vre)=>{vre.exports=Crt;function Crt(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 mre=ye((gir,gre)=>{gre.exports=Lrt;function Lrt(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 _re=ye((mir,yre)=>{yre.exports=Prt;function Prt(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 bre=ye((yir,xre)=>{var Irt=UO();xre.exports=Rrt;function Rrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],_=t[1],b=t[2],p=n[0],k=n[1],E=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(v-T)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?Irt(e):(c=v-T,f=_-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=k*h-E*f,a=E*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*_+o*b),e[13]=-(s*v+l*_+u*b),e[14]=-(c*v+f*_+h*b),e[15]=1,e)}});var Tre=ye((_ir,wre)=>{wre.exports=Drt;function Drt(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 VO=ye((xir,Are)=>{Are.exports={create:wte(),clone:Ate(),copy:Mte(),identity:UO(),transpose:Cte(),invert:Pte(),adjoint:Rte(),determinant:Fte(),multiply:Ote(),translate:Bte(),scale:Ute(),rotate:Gte(),rotateX:jte(),rotateY:Xte(),rotateZ:Yte(),fromRotation:Jte(),fromRotationTranslation:Qte(),fromScaling:tre(),fromTranslation:ire(),fromXRotation:are(),fromYRotation:sre(),fromZRotation:ure(),fromQuat:fre(),frustum:dre(),perspective:pre(),perspectiveFromFieldOfView:mre(),ortho:_re(),lookAt:bre(),str:Tre()}});var I6=ye(fh=>{"use strict";var Frt=VO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var zrt=Oa(),Sre=K1(),Ort=I6(),qrt=VO();function Brt(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 Nrt(e){var t=zrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Mre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Urt(e,t){Ere("global",e,t)}function Ere(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):Sre.warn("addStyleRule failed"):Sre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Vrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Mre(r)}function Grt(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 Hrt(e){var t=Cre(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=kre(n);if(i){var a=Ort.convertCssMatrix(i);r=qrt.multiply(r,r,a)}}),r}function kre(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 Cre(e){for(var t=[];jrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function jrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Wrt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Lre.exports={getGraphDiv:Brt,isPlotDiv:Nrt,removeElement:Mre,addStyleRule:Urt,addRelatedStyleRule:Ere,deleteRelatedStyleRule:Vrt,setStyleOnHover:Grt,getFullTransformMatrix:Hrt,getElementTransformMatrix:kre,getElementAndAncestors:Cre,equalDomRects:Wrt}});var jS=ye((Tir,Pre)=>{"use strict";Pre.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((Air,qre)=>{"use strict";var Rre=Ao().extendFlat,Xrt=Ty(),Dre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Fre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Zrt=Dre.flags.slice().concat(["fullReplot"]),Yrt=Fre.flags.slice().concat("layoutReplot");qre.exports={traces:Dre,layout:Fre,traceFlags:function(){return Ire(Zrt)},layoutFlags:function(){return Ire(Yrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";GO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};GO.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 HO=ye((Mir,Bre)=>{"use strict";Bre.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(y3=>{"use strict";var{DATE_FORMAT_LINK:Krt,FORMAT_LINK:Jrt}=HO(),$rt=["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 Qrt({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}".`,Jrt,"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}".`,Krt,"for details on the date formatting syntax.",$rt].join(" ")}y3.templateFormatStringDescription=Qrt;y3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});y3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});y3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});y3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var F6=ye((Cir,jre)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function Nre(e,t){return t?t.l2d(e):e}function eit(e){return e.x0}function tit(e){return e.x1}function rit(e){return e.y0}function iit(e){return e.y1}function Ure(e){return e.x0shift||0}function Vre(e){return e.x1shift||0}function Gre(e){return e.y0shift||0}function Hre(e){return e.y1shift||0}function R6(e,t){return J1(e.x1,t)+Vre(e)-J1(e.x0,t)-Ure(e)}function D6(e,t,r){return J1(e.y1,r)+Hre(e)-J1(e.y0,r)-Gre(e)}function nit(e,t){return Math.abs(R6(e,t))}function ait(e,t,r){return Math.abs(D6(e,t,r))}function oit(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 sit(e,t){return Nre((J1(e.x1,t)+Vre(e)+J1(e.x0,t)+Ure(e))/2,t)}function lit(e,t,r){return Nre((J1(e.y1,r)+Hre(e)+J1(e.y0,r)+Gre(e))/2,r)}function uit(e,t,r){return e.type!=="line"?void 0:D6(e,t,r)/R6(e,t)}var cit=["x0","x1","y0","y1","dy","height","ycenter"],fit=["x0","x1","y0","y1","dx","width","xcenter"];jre.exports={x0:eit,x1:tit,y0:rit,y1:iit,slope:uit,dx:R6,dy:D6,width:nit,height:ait,length:oit,xcenter:sit,ycenter:lit,simpleXVariables:cit,simpleYVariables:fit}});var Zre=ye((Lir,Xre)=>{"use strict";var hit=mc().overrideAll,xb=Gl(),Wre=ec(),dit=Pd().dash,$1=Ao().extendFlat,{shapeTexttemplateAttrs:vit,templatefallbackAttrs:pit}=Ll(),git=F6();Xre.exports=hit({newshape:{visible:$1({},xb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},xb.legend,{}),legendgroup:$1({},xb.legendgroup,{}),legendgrouptitle:{text:$1({},xb.legendgrouptitle.text,{}),font:Wre({})},legendrank:$1({},xb.legendrank,{}),legendwidth:$1({},xb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},dit,{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({},xb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:vit({newshape:!0},{keys:Object.keys(git)}),texttemplatefallback:pit({editType:"arraydraw"}),font:Wre({}),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 Kre=ye((Pir,Yre)=>{"use strict";var mit=Pd().dash,yit=Ao().extendFlat;Yre.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:yit({},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 z6=ye((Iir,Jre)=>{"use strict";Jre.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 _3=ye((Rir,tie)=>{"use strict";var jO=ec(),_it=jS(),O6=Ih(),$re=Zre(),Qre=Kre(),xit=z6(),eie=Ao().extendFlat,q6=jO({editType:"calc"});q6.family.dflt='"Open Sans", verdana, arial, sans-serif';q6.size.dflt=12;q6.color.dflt=O6.defaultLine;tie.exports={font:q6,title:{text:{valType:"string",editType:"layoutstyle"},font:jO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:jO({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:eie(xit({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:$re.newshape,activeshape:$re.activeshape,newselection:Qre.newselection,activeselection:Qre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:eie({},_it.transition,{editType:"none"})}});var rie=ye(()=>{(function(){if(!document.getElementById("ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184")){var e=document.createElement("style");e.id="ac0b5738c2c1eea0f391da794913404f3902fb7f05b352d7ff8ae4599febc184",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 qa=ye(el=>{"use strict";var x3=K1(),iie=P6(),nie=NO(),bit=Ty(),wit=HS().addStyleRule,aie=Ao(),Tit=Gl(),Ait=_3(),Sit=aie.extendFlat,WO=aie.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 Pit=f3().timeFormat,gie=Eo(),XO=K1(),e_=d3().mod,T3=fs(),_0=T3.BADNUM,Ap=T3.ONEDAY,WS=T3.ONEHOUR,Q1=T3.ONEMIN,w3=T3.ONESEC,XS=T3.EPOCHJD,Ay=qa(),cie=f3().utcFormat,Iit=/^\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,Rit=/^\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,fie=new Date().getFullYear()-70;function Sy(e){return e&&Ay.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Dit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=Ap*(t-1),hh.ms2DateTime(n,0,e)};function Dit(e,t){return Sy(e)?t?Ay.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ay.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return Sy(e)?Ay.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())*w3+(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=Sy(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?Rit:Iit);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 _;try{var b=Ay.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),_=b.newDate(u,b.toMonthIndex(u,c,p),f)}else _=b.newDate(u,Number(c),f)}catch(E){return _0}return _?(_.toJD()-XS)*Ap+h*WS+d*Q1+v*w3:_0}u.length===2?u=(Number(u)+2e3-fie)%100+fie: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*w3};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 b3(e,t){return String(e+Math.pow(10,t)).slice(1)}var B6=90*Ap,hie=3*WS,die=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(Sy(r)){var f=Math.floor(i/Ap)+XS,h=Math.floor(e_(e,Ap));try{a=Ay.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=cie("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=Pit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return mie(n,i,a,o,s)};function mie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+b3(t,2)+":"+b3(r,2),(n||i)&&(e+=":"+b3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+b3(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(Sy(r))return XO.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 XO.error("unrecognized date",e),t;return e};var Fit=/%\d?f/g,zit=/%h/g,Oit={1:"1",2:"1",3:"2",4:"2"};function vie(e,t,r,n){e=e.replace(Fit,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(zit,function(){return Oit[r("%q")(i)]}),Sy(n))try{e=Ay.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var qit=[59,59.9,59.99,59.999,59.9999];function Bit(e,t){var r=e_(e+.05,Ap),n=b3(Math.floor(r/WS),2)+":"+b3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){gie(t)||(t=0);var i=Math.min(e_(e/w3,60),qit[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=Sy(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 Bit(e,r)+` -`+vie(a.dayMonthYear,e,n,i);return vie(t,e,n,i)};var pie=3*Ap;hh.incrementMonth=function(e,t,r){r=Sy(r)&&r;var n=e_(e,Ap);if(e=Math.round(e-n),r)try{var i=Math.round(e/Ap)+XS,a=Ay.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-XS)*Ap+n}catch(l){XO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+pie);return s.setUTCMonth(s.getUTCMonth()+t)+n-pie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=Sy(t)&&Ay.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";_ie.exports=function(t){return t}});var U6=ye(My=>{"use strict";var Nit=Eo(),Uit=K1(),Vit=ZS(),Git=fs().BADNUM,ZO=1e-9;My.findBin=function(e,t,r){if(Nit(t.start))return r?Math.ceil((e-t.start)/t.size-ZO)-1:Math.floor((e-t.start)/t.size+ZO);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?Hit:jit:l=r?Xit:Wit,e+=o*ZO*(r?-1:1)*(o>=0?1:-1);n90&&Uit.log("Long binary search..."),n-1};function Hit(e,t){return et}function Xit(e,t){return e>=t}My.sorterAsc=function(e,t){return e-t};My.sorterDes=function(e,t){return t-e};My.distinctVals=function(e){var t=e.slice();t.sort(My.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Git;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}};My.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()};My.findIndexOfMin=function(e,t){t=t||Vit;for(var r=1/0,n,i=0;i{"use strict";xie.exports=function(t){return Object.keys(t).sort()}});var bie=ye(dh=>{"use strict";var YS=Eo(),Zit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),YS(t)||(t=!1),Zit(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 Mie=ye((Vir,Sie)=>{"use strict";var wie=d3(),YO=wie.mod,Yit=wie.modHalf,KS=Math.PI,r_=2*KS;function Kit(e){return e/180*KS}function Jit(e){return e/KS*180}function KO(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Tie(e,t){return Yit(t-e,r_)}function $it(e,t){return Math.abs(Tie(e,t))}function Aie(e,t){if(KO(t))return!0;var r,n;t[0]n&&(n+=r_);var i=YO(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function Qit(e,t,r,n){if(!Aie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function JO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=KO([r,n]),l,u,c,f,h;s?(l=0,u=KS,c=r_):r{"use strict";bb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};bb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};bb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};bb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};bb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};bb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Lie=ye(wb=>{"use strict";var $O=d3().mod;wb.segmentsIntersect=Cie;function Cie(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 _=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||_<0||_>1?null:{x:e+l*_,y:t+f*_}}wb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Cie(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,_=Math.min(V6(u,c,d,a-t,o-r),V6(u,c,d,s-t,l-r),V6(f,h,v,t-a,r-o),V6(f,h,v,n-a,i-o));return Math.sqrt(_)};function V6(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 G6,QO,kie;wb.getTextLocation=function(t,r,n,i){if((t!==QO||i!==kie)&&(G6={},QO=t,kie=i),G6[n])return G6[n];var a=t.getPointAtLength($O(n-i/2,r)),o=t.getPointAtLength($O(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength($O(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 G6[n]=f,f};wb.clearLocationCache=function(){QO=null};wb.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(_){var b=t.getPointAtLength(_);_===0?f=b:_===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}};wb.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 H6=ye(JS=>{"use strict";var Ey={};JS.throttle=function(t,r,n){var i=Ey[t],a=Date.now();if(!i){for(var o in Ey)Ey[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};JS.done=function(e){var t=Ey[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};JS.clear=function(e){if(e)Pie(Ey[e]),delete Ey[e];else for(var t in Ey)JS.clear(t)};function Pie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Rie=ye((Wir,Iie)=>{"use strict";Iie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Die=ye((Xir,j6)=>{"use strict";j6.exports=eq;j6.exports.isMobile=eq;j6.exports.default=eq;var int=/(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,nnt=/CrOS/,ant=/android|ipad|playbook|silk/i;function eq(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=int.test(t)&&!nnt.test(t)||!!e.tablet&&ant.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var zie=ye((Zir,Fie)=>{"use strict";var ont=Eo(),snt=Die();Fie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=lnt(),typeof r!="string")return!0;var n=snt({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(ont(u)&&(u=+u),u>=13)return!0}}}return n};function lnt(){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 qie=ye((Yir,Oie)=>{"use strict";var unt=Oa();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]=unt.select(this)}),i}});var Nie=ye((Kir,Bie)=>{"use strict";var cnt=qa();Bie.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=cnt.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var tq=ye((Jir,Uie)=>{"use strict";Uie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Vie.exports=function(t){for(var r=dnt(t)?hnt:fnt,n=[],i=0;i{"use strict";Hie.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 Xie=ye((enr,Wie)=>{"use strict";var vnt=Eo(),pnt=fs().BADNUM,gnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Wie.exports=function(t){return typeof t=="string"&&(t=t.replace(gnt,"")),vnt(t)?Number(t):pnt}});var Dr=ye((tnr,one)=>{"use strict";var $S=Oa(),mnt=f3().utcFormat,ynt=MO().format,Qie=Eo(),ene=fs(),tne=ene.FP_SAFE,_nt=-tne,Zie=ene.BADNUM,Mi=one.exports={};Mi.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 Yie={};Mi.warnBadFormat=function(e){var t=String(e);Yie[t]||(Yie[t]=1,Mi.warn('encountered bad format: "'+t+'"'))};Mi.noFormat=function(e){return String(e)};Mi.numberFormat=function(e){var t;try{t=ynt(Mi.adjustFormat(e))}catch(r){return Mi.warnBadFormat(e),Mi.noFormat}return t};Mi.nestedProperty=FS();Mi.keyedContainer=Uee();Mi.relativeAttr=Gee();Mi.isPlainObject=Ty();Mi.toLogRange=S6();Mi.relinkPrivateKeys=Xee();var i_=vv();Mi.isArrayBuffer=i_.isArrayBuffer;Mi.isTypedArray=i_.isTypedArray;Mi.isArrayOrTypedArray=i_.isArrayOrTypedArray;Mi.isArray1D=i_.isArray1D;Mi.ensureArray=i_.ensureArray;Mi.concat=i_.concat;Mi.maxRowLength=i_.maxRowLength;Mi.minRowLength=i_.minRowLength;var rne=d3();Mi.mod=rne.mod;Mi.modHalf=rne.modHalf;var n_=hte();Mi.valObjectMeta=n_.valObjectMeta;Mi.coerce=n_.coerce;Mi.coerce2=n_.coerce2;Mi.coerceFont=n_.coerceFont;Mi.coercePattern=n_.coercePattern;Mi.coerceHoverinfo=n_.coerceHoverinfo;Mi.coerceSelectionMarkerOpacity=n_.coerceSelectionMarkerOpacity;Mi.validate=n_.validate;var jp=yie();Mi.dateTime2ms=jp.dateTime2ms;Mi.isDateTime=jp.isDateTime;Mi.ms2DateTime=jp.ms2DateTime;Mi.ms2DateTimeLocal=jp.ms2DateTimeLocal;Mi.cleanDate=jp.cleanDate;Mi.isJSDate=jp.isJSDate;Mi.formatDate=jp.formatDate;Mi.incrementMonth=jp.incrementMonth;Mi.dateTick0=jp.dateTick0;Mi.dfltRange=jp.dfltRange;Mi.findExactDates=jp.findExactDates;Mi.MIN_MS=jp.MIN_MS;Mi.MAX_MS=jp.MAX_MS;var Tb=U6();Mi.findBin=Tb.findBin;Mi.sorterAsc=Tb.sorterAsc;Mi.sorterDes=Tb.sorterDes;Mi.distinctVals=Tb.distinctVals;Mi.roundUp=Tb.roundUp;Mi.sort=Tb.sort;Mi.findIndexOfMin=Tb.findIndexOfMin;Mi.sortObjectKeys=t_();var ky=bie();Mi.aggNums=ky.aggNums;Mi.len=ky.len;Mi.mean=ky.mean;Mi.geometricMean=ky.geometricMean;Mi.median=ky.median;Mi.midRange=ky.midRange;Mi.variance=ky.variance;Mi.stdev=ky.stdev;Mi.interp=ky.interp;var wg=P6();Mi.init2dArray=wg.init2dArray;Mi.transposeRagged=wg.transposeRagged;Mi.dot=wg.dot;Mi.translationMatrix=wg.translationMatrix;Mi.rotationMatrix=wg.rotationMatrix;Mi.rotationXYMatrix=wg.rotationXYMatrix;Mi.apply3DTransform=wg.apply3DTransform;Mi.apply2DTransform=wg.apply2DTransform;Mi.apply2DTransform2=wg.apply2DTransform2;Mi.convertCssMatrix=wg.convertCssMatrix;Mi.inverseTransformMatrix=wg.inverseTransformMatrix;var gm=Mie();Mi.deg2rad=gm.deg2rad;Mi.rad2deg=gm.rad2deg;Mi.angleDelta=gm.angleDelta;Mi.angleDist=gm.angleDist;Mi.isFullCircle=gm.isFullCircle;Mi.isAngleInsideSector=gm.isAngleInsideSector;Mi.isPtInsideSector=gm.isPtInsideSector;Mi.pathArc=gm.pathArc;Mi.pathSector=gm.pathSector;Mi.pathAnnulus=gm.pathAnnulus;var S3=Eie();Mi.isLeftAnchor=S3.isLeftAnchor;Mi.isCenterAnchor=S3.isCenterAnchor;Mi.isRightAnchor=S3.isRightAnchor;Mi.isTopAnchor=S3.isTopAnchor;Mi.isMiddleAnchor=S3.isMiddleAnchor;Mi.isBottomAnchor=S3.isBottomAnchor;var M3=Lie();Mi.segmentsIntersect=M3.segmentsIntersect;Mi.segmentDistance=M3.segmentDistance;Mi.getTextLocation=M3.getTextLocation;Mi.clearLocationCache=M3.clearLocationCache;Mi.getVisibleSegment=M3.getVisibleSegment;Mi.findPointOnPath=M3.findPointOnPath;var Z6=Ao();Mi.extendFlat=Z6.extendFlat;Mi.extendDeep=Z6.extendDeep;Mi.extendDeepAll=Z6.extendDeepAll;Mi.extendDeepNoArrays=Z6.extendDeepNoArrays;var rq=K1();Mi.log=rq.log;Mi.warn=rq.warn;Mi.error=rq.error;var xnt=p3();Mi.counterRegex=xnt.counter;var iq=H6();Mi.throttle=iq.throttle;Mi.throttleDone=iq.done;Mi.clearThrottle=iq.clear;var Tg=HS();Mi.getGraphDiv=Tg.getGraphDiv;Mi.isPlotDiv=Tg.isPlotDiv;Mi.removeElement=Tg.removeElement;Mi.addStyleRule=Tg.addStyleRule;Mi.addRelatedStyleRule=Tg.addRelatedStyleRule;Mi.deleteRelatedStyleRule=Tg.deleteRelatedStyleRule;Mi.setStyleOnHover=Tg.setStyleOnHover;Mi.getFullTransformMatrix=Tg.getFullTransformMatrix;Mi.getElementTransformMatrix=Tg.getElementTransformMatrix;Mi.getElementAndAncestors=Tg.getElementAndAncestors;Mi.equalDomRects=Tg.equalDomRects;Mi.clearResponsive=Rie();Mi.preserveDrawingBuffer=zie();Mi.makeTraceGroups=qie();Mi._=Nie();Mi.notifier=OO();Mi.filterUnique=tq();Mi.filterVisible=Gie();Mi.pushUnique=NO();Mi.increment=jie();Mi.cleanNumber=Xie();Mi.ensureNumber=function(t){return Qie(t)?(t=Number(t),t>tne||t<_nt?Zie:t):Zie};Mi.isIndex=function(e,t){return t!==void 0&&e>=t?!1:Qie(e)&&e>=0&&e%1===0};Mi.noop=L6();Mi.identity=ZS();Mi.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))};Mi.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};Mi.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?(Mi.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Mi.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};Mi.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};Mi.syncOrAsync=function(e,t,r){var n,i;function a(){return Mi.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)};Mi.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Mi.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Mi.fillArray=function(e,t,r,n){if(n=n||Mi.identity,Mi.isArrayOrTypedArray(e))for(var i=0;iTnt.test(window.navigator.userAgent);var Ant=/Firefox\/(\d+)\.\d+/;Mi.getFirefoxVersion=function(){var e=Ant.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Mi.isD3Selection=function(e){return e instanceof $S.selection};Mi.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};Mi.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};Mi.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};Mi.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ane=/^\w*$/;Mi.templateString=function(e,t){var r={};return e.replace(Mi.TEMPLATE_STRING_REGEX,function(n,i){var a;return ane.test(i)?a=t[i]:(r[i]=r[i]||Mi.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Ent={max:10,count:0,name:"hovertemplate"};Mi.hovertemplateString=e=>nq(j1(_g({},e),{opts:Ent}));var knt={max:10,count:0,name:"texttemplate"};Mi.texttemplateString=e=>nq(j1(_g({},e),{opts:knt}));var Cnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Lnt(e){var t=e.match(Cnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Pnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Mi.texttemplateStringForShapes=e=>nq(j1(_g({},e),{opts:Pnt}));var Kie=/^[:|\|]/;function nq({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(Mi.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,_=null;if(i.parseMultDiv){var b=Lnt(s);s=b.key,v=b.op,_=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(ane.test(s)||(p=Mi.nestedProperty(L,s).get(!0)),p!==void 0)break}if(p===void 0){let{count:L,max:x,name:C}=i,M=r===!1?o:r;return L=X6&&o<=Jie,u=s>=X6&&s<=Jie;if(l&&(n=10*n+o-X6),u&&(i=10*i+s-X6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var A3=2e9;Mi.seedPseudoRandom=function(){A3=2e9};Mi.pseudoRandom=function(){var e=A3;return A3=(69069*A3+1)%4294967296,Math.abs(A3-e)<429496729?Mi.pseudoRandom():A3/4294967296};Mi.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Mi.extractOption(e,t,"htx","hovertext");if(Mi.isValidTextValue(i))return n(i);var a=Mi.extractOption(e,t,"tx","text");if(Mi.isValidTextValue(a))return n(a)};Mi.isValidTextValue=function(e){return e||e===0};Mi.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,Mi.strTranslate(i-u*(r+o),a-u*(n+s))+Mi.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Mi.setTransormAndDisplay=function(e,t){e.attr("transform",Mi.getTextTransform(t)),e.style("display",t.scale?null:"none")};Mi.ensureUniformFontSize=function(e,t){var r=Mi.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Mi.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)};Mi.bigFont=function(e){return Math.round(1.2*e)};var $ie=Mi.getFirefoxVersion(),Int=$ie!==null&&$ie<86;Mi.getPositionFromD3Event=function(){return Int?[$S.event.layerX,$S.event.layerY]:[$S.event.offsetX,$S.event.offsetY]}});var une=ye(()=>{"use strict";var Rnt=Dr(),sne={"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(aq in sne)lne=aq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Rnt.addStyleRule(lne,sne[aq]);var lne,aq});var oq=ye((anr,cne)=>{cne.exports=!0});var lq=ye((onr,fne)=>{"use strict";var Dnt=oq(),sq;typeof window.matchMedia=="function"?sq=!window.matchMedia("(hover: none)").matches:sq=Dnt;fne.exports=sq});var Ab=ye((snr,uq)=>{"use strict";var E3=typeof Reflect=="object"?Reflect:null,hne=E3&&typeof E3.apply=="function"?E3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Y6;E3&&typeof E3.ownKeys=="function"?Y6=E3.ownKeys:Object.getOwnPropertySymbols?Y6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Y6=function(t){return Object.getOwnPropertyNames(t)};function Fnt(e){console&&console.warn&&console.warn(e)}var vne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}uq.exports=Jc;uq.exports.once=Bnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var dne=10;function K6(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 dne},set:function(e){if(typeof e!="number"||e<0||vne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");dne=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||vne(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?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return pne(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")hne(l,this,r);else for(var u=l.length,c=xne(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,Fnt(s)}return e}Jc.prototype.addListener=function(t,r){return gne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return gne(this,t,r,!0)};function znt(){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 mne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=znt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return K6(r),this.on(t,mne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return K6(r),this.prependListener(t,mne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(K6(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():Ont(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 yne(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?qnt(i):xne(i,i.length)}Jc.prototype.listeners=function(t){return yne(this,t,!0)};Jc.prototype.rawListeners=function(t){return yne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_ne.call(e,t)};Jc.prototype.listenerCount=_ne;function _ne(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?Y6(this._events):[]};function xne(e,t){for(var r=new Array(t),n=0;n{"use strict";var cq=Ab().EventEmitter,Unt={init:function(e){if(e._ev instanceof cq)return e;var t=new cq,r=new cq;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 Tne=Dr(),Vnt=_b().dfltConfig;function Gnt(e,t){for(var r=[],n,i=0;iVnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Cy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Cy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Cy.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";Mne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var P3=ye(ed=>{"use strict";var x0=qa(),QS=Dr(),$6=Gl(),hq=_3(),Hnt=fq(),jnt=jS(),Wnt=_b().configAttributes,Ene=mc(),Ag=QS.extendDeepAll,C3=QS.isPlainObject,Xnt=QS.isArrayOrTypedArray,Q6=QS.nestedProperty,Znt=QS.valObjectMeta,dq="_isSubplotObj",eL="_isLinkedToArray",Ynt="_arrayAttrRegexps",Cne="_deprecated",vq=[dq,eL,Ynt,Cne];ed.IS_SUBPLOT_OBJ=dq;ed.IS_LINKED_TO_ARRAY=eL;ed.DEPRECATED=Cne;ed.UNDERSCORE_ATTRS=vq;ed.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Jnt(t)}),{defs:{valObjects:Znt,metaKeys:vq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Ene.traces,layout:Ene.layout},impliedEdits:{}},traces:e,layout:$nt(),frames:Qnt(),animation:L3(jnt),config:L3(Wnt)}};ed.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(vq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!ed.isValObject(o)&&C3(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)Xnt(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(!J6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function J6(e){return e===Math.round(e)&&e>=0}function Jnt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Ag({},$6),a=Ag({},t.attributes);ed.crawl(a,function(l,u,c,f,h){Q6(i,h).set(void 0),l===void 0&&Q6(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:L3(n)};if(t.layoutAttributes){var s={};Ag(s,t.layoutAttributes),o.layoutAttributes=L3(s)}return t.animatable||ed.crawl(o,function(l){ed.isValObject(l)&&"anim"in l&&delete l.anim}),o}function $nt(){var e={},t,r;Ag(e,hq);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 I3=Dr(),nat=Gl(),a_="templateitemname",pq={name:{valType:"string",editType:"none"}};pq[a_]={valType:"string",editType:"calc"};Sb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=pq.name,t[a_]=pq[a_],t};Sb.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=I3.coerce(a,{},nat,"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}};Sb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);I3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Sb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Ine(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(!Pne(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?I3.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 _=f();for(var b in _)I3.nestedProperty(e,b).set(_[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Rh=ye((dnr,Rne)=>{"use strict";var eM=p3().counter;Rne.exports={idRegex:{x:eM("x","( domain)?"),y:eM("y","( domain)?")},attrRegex:eM("[xy]axis"),xAxisMatch:eM("xaxis"),yAxisMatch:eM("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 hf=ye(Sp=>{"use strict";var aat=qa(),gq=Rh();Sp.id2name=function(t){if(!(typeof t!="string"||!t.match(gq.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(gq.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(gq.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 Dne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function oat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function sat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Fne.exports={clearOutlineControllers:oat,clearOutline:sat}});var tL=ye((gnr,zne)=>{"use strict";zne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(iL=>{"use strict";var rL=qa(),mnr=Rh().SUBPLOT_PATTERN;iL.getSubplotCalcData=function(e,t,r){var n=rL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var lat=qa(),R3=Dr();Mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Mb.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;R3.isPlainObject(a)?mq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((xnr,eae)=>{"use strict";var Xne=Oa(),cat=f3().timeFormatLocale,fat=MO().formatLocale,tM=Eo(),hat=EO(),Xl=qa(),Zne=P3(),dat=vl(),Ga=Dr(),Yne=ka(),Une=fs().BADNUM,Mp=hf(),vat=o_().clearOutline,pat=tL(),yq=jS(),gat=fq(),mat=Id().getModuleCalcData,Vne=Ga.relinkPrivateKeys,Eb=Ga._,xa=eae.exports={};Ga.extendFlat(xa,Xl);xa.attributes=Gl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=_3();var aL=Nne();xa.executeAPICommand=aL.executeAPICommand;xa.computeAPICommandBindings=aL.computeAPICommandBindings;xa.manageCommandObserver=aL.manageCommandObserver;xa.hasSimpleAPICommandBindings=aL.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=Ga.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=Ga.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Ga.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||Ga.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=Ga.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Yne.defaultLine,"pointer-events":"all"}).each(function(){var u=Xne.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&&yat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function yat(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=Xne.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 _at=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],xat=["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:Eb(e,"Click to enter Plot title"),subtitle:Eb(e,"Click to enter Plot subtitle"),x:Eb(e,"Click to enter X axis title"),y:Eb(e,"Click to enter Y axis title"),colorbar:Eb(e,"Click to enter Colorscale title"),annotation:Eb(e,"new text")},i._traceWord=Eb(e,"trace");var h=Gne(e,_at);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 _=!a.width||!a.height,b=i.autosize,p=c.autosizable,k=_&&(b||p);k?xa.plotAutoSize(e,a,i):_&&xa.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=Tat(h,i.separators),i._extraFormat=Gne(e,xat),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=wat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=bat(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")),O=!!(i._has&&i._has("cartesian")),U=z,G=O;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&vat({_fullLayout:n}),Aat(s,i),Vne(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(Ga.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,E=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+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:T,size:r.t+_}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function Mat(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={}),Kne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Ga.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,_=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 E in p[k]){var T=p[k][E];o[E]=Math.max(o[E],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"&&tM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},A=h[g].b||{},z=P.val,O=P.size,U=A.val,G=A.size,Z=r-o.r-o.l,j=n-o.t-o.b;for(var N in h){if(tM(O)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>z){var oe=(O*H+(re-Z)*z)/(H-z),_e=(re*(1-z)+(O-Z)*(1-H))/(H-z);oe+_e>l+u&&(l=oe,u=_e)}}if(tM(G)&&h[N].t){var Ce=h[N].t.val,Le=h[N].t.size;if(Ce>U){var ge=(G*Ce+(Le-j)*U)/(Ce-U),ie=(Le*(1-U)+(G-j)*(1-Ce))/(Ce-U);ge+ie>f+c&&(f=ge,c=ie)}}}}}var Se=Ga.constrain(r-a.l-a.r,Jne,v),Ee=Ga.constrain(n-a.t-a.b,$ne,_),Ae=Math.max(0,r-Se),Be=Math.max(0,n-Ee);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}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)||Mat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var De=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(Ga.isPlainObject(h)){var v={},_;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.slice(-3)==="src")return}else if(r==="keepstream"){if(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!Ga.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=Ga.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var k=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Ga.isArrayBuffer(k)?hat.encode(k):k},d)}return b?h.map(function(E){return u(E,d)}):p?Ga.simpleMap(h,Ga.identity):Ga.isJSDate(h)?Ga.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=Ga.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:Une,y:Une}]),T[0].t||(T[0].t={}),T[0].trace=a,u[k]=T}}for(jne(r,n,i),s=0;s{"use strict";kb.xmlns="http://www.w3.org/2000/xmlns/";kb.svg="http://www.w3.org/2000/svg";kb.xlink="http://www.w3.org/1999/xlink";kb.svgAttrs={xmlns:kb.svg,"xmlns:xlink":kb.xlink}});var Dh=ye((wnr,tae)=>{"use strict";tae.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=Oa(),Ly=Dr(),Lat=Ly.strTranslate,_q=Wp(),Pat=Dh().LINE_SPACING,Iat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Iat),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=jat(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};zat(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 _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});_.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",E=v.select("g");E.attr({fill:k,stroke:k});var T=E.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"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,C,M]+")"+Lat(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,M=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-x/2}v.attr({x:C,y:M}),r&&r.call(e,_),l(_)})})):s(),e};var Rat=/(<|<|<)/g,Dat=/(>|>|>)/g;function Fat(e){return e.replace(Rat,"\\lt ").replace(Dat,"\\gt ")}var rae=[["$","$"],["\\(","\\)"]];function zat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ly.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ly.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rae},displayAlign:"left"})},u=function(){a=Ly.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rae},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-"+Ly.randstr({},64);s=Fh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Fat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ly.log("There was an error in the tex syntax.",e),r();else{var T=E.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)},_=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(),_(),p()}))}var oae={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"},Oat={sub:"0.3em",sup:"-0.6em"},qat={sub:"-0.21em",sup:"0.42em"},iae="\u200B",nae=["http:","https:","mailto:","",void 0,":"],sae=b0.NEWLINES=/(\r\n?|\n)/g,bq=/(<[^<>]*>)/,wq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Bat=//i;b0.BR_TAG_ALL=//gi;var lae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,uae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,cae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Nat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&oL(n)}var Uat=/(^|;)\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(bq),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,_-a))+i):s.push(f.slice(0,_));break}l=""}}return s.join("")};var Vat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Gat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function oL(e){return e.replace(Gat,function(t,r){var n;return r.charAt(0)==="#"?n=Hat(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=Vat[r],n||t})}b0.convertEntities=oL;function Hat(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 jat(e,t){t=t.replace(sae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(_q.svg,"tspan");Fh.select(x).attr({class:"line",dy:a*Pat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var M=1;M.",t);return}var C=n.pop();x!==C.type&&Ly.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Bat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(bq),h=0;h{"use strict";var Wat=Oa(),lL=fd(),iM=Eo(),sL=Dr(),hae=ka(),Xat=mb().isValid;function Zat(e,t,r){var n=t?sL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(sL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function yae(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 xae=HO(),Kat=xae.FORMAT_LINK,Jat=xae.DATE_FORMAT_LINK;function $at(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Tq:bae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Tq(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: "+Kat+"."].join(" ")}function bae(e,t){return Tq(e,t)+[" And for dates see: "+Jat+".","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(" ")}wae.exports={axisHoverFormat:$at,descriptionOnlyNumbers:Tq,descriptionWithDates:bae}});var Rd=ye((Enr,Bae)=>{"use strict";var Tae=ec(),D3=Ih(),qae=Pd().dash,Sq=Ao().extendFlat,Aae=vl().templatedArray,Mnr=Ll().templateFormatStringDescription,Sae=df().descriptionWithDates,Qat=fs().ONEDAY,mm=Rh(),eot=mm.HOUR_PATTERN,tot=mm.WEEKDAY_PATTERN,Aq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},rot=Sq({},Aq,{values:Aq.values.slice().concat(["sync"])});function Mae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Eae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Cae={valType:"data_array",editType:"ticks"},Lae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Pae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Iae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Rae={valType:"color",dflt:D3.defaultLine,editType:"ticks"},Dae={valType:"color",dflt:D3.lightLine,editType:"ticks"};function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zae=Sq({},qae,{editType:"ticks"}),Oae={valType:"boolean",editType:"ticks"};Bae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:D3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Tae({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:Aae("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:[tot,eot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Qat},editType:"calc"}),tickmode:rot,nticks:Mae(),tick0:Eae,dtick:kae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Cae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Lae,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:Pae(),tickwidth:Iae(),tickcolor:Rae,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:Sq({},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:Tae({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:Sae("tick label")},tickformatstops:Aae("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:Sae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:D3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Oae,gridcolor:Dae,gridwidth:Fae(),griddash:zae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:D3.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:D3.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:Aq,nticks:Mae("minor"),tick0:Eae,dtick:kae,tickvals:Cae,ticks:Lae,ticklen:Pae("minor"),tickwidth:Iae("minor"),tickcolor:Rae,gridcolor:Dae,gridwidth:Fae("minor"),griddash:zae,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 uL=ye((knr,Vae)=>{"use strict";var $c=Rd(),Nae=ec(),Uae=Ao().extendFlat,iot=mc().overrideAll;Vae.exports=iot({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:Uae({},$c.ticks,{dflt:""}),ticklabeloverflow:Uae({},$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:Nae({}),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:Nae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((Lnr,Hae)=>{"use strict";var not=uL(),aot=p3().counter,oot=t_(),Gae=mb().scales,Cnr=oot(Gae);function cL(e){return"`"+e+"`"}Hae.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"?Gae[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 "+cL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",_=n+"max",b=n+"mid",p=cL(u+d),k=cL(u+v),E=cL(u+_),T=k+" and "+E,L={};L[v]=L[_]=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[_]={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=not),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:aot("coloraxis"),dflt:null,editType:"calc"}),C}});var Eq=ye((Pnr,jae)=>{"use strict";var sot=Ao().extendFlat,lot=Tu(),Mq=mb().scales;jae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Mq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Mq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Mq.RdBu,editType:"calc"}},coloraxis:sot({_isSubplotObj:!0,editType:"calc"},lot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var kq=ye((Inr,Wae)=>{"use strict";var uot=Dr();Wae.exports=function(t){return uot.isPlainObject(t.colorbar)}});var Pq=ye(Lq=>{"use strict";var Cq=Eo(),Xae=Dr(),Zae=fs(),cot=Zae.ONEDAY,fot=Zae.ONEWEEK;Lq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?cot:1;if(!e)return a;if(Cq(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=Cq(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};Lq.tick0=function(e,t,r,n){if(t==="date")return Xae.cleanDate(e,Xae.dateTick0(r,n%fot===0?1:0));if(!(n==="D1"||n==="D2"))return Cq(e)?Number(e):0}});var Lb=ye((Dnr,Kae)=>{"use strict";var Yae=Pq(),hot=Dr().isArrayOrTypedArray,dot=vv().isTypedArraySpec,vot=vv().decodeTypedArraySpec;Kae.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 E=s[k];return dot(E)&&(E=vot(E)),E!==void 0?E:(l._template||{})[k]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=hot(d)?"array":h?"linear":"auto",_=n(u+"tickmode",v);if(_==="auto"||_==="sync")n(u+"nticks");else if(_==="linear"){var b=l.dtick=Yae.dtick(h,i);l.tick0=Yae.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 F3=ye((Fnr,$ae)=>{"use strict";var Iq=Dr(),Jae=Rd();$ae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Jae.minor:Jae,u=a?"minor.":"",c=Iq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Iq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Iq.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 Rq=ye((znr,Qae)=>{"use strict";Qae.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 Zd=ye((Onr,eoe)=>{"use strict";var fL=Dr(),pot=vl();eoe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=fL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=pot.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Dq=Dr(),got=ka().contrast,toe=Rd(),mot=Rq(),yot=Zd();roe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Dq.isPlainObject(o)||delete r.labelalias;var s=mot(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?got(a.bgColor):c&&c!==toe.color.dflt?c:u.color;if(Dq.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");yot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:_ot}),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 _ot(e,t){function r(i,a){return Dq.coerce(e,t,toe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=ye((Bnr,ioe)=>{"use strict";var xot=Rq();ioe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=xot(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Fq=ye((Nnr,noe)=>{"use strict";var u_=Dr(),bot=vl(),wot=Lb(),Tot=F3(),Aot=s_(),Sot=l_(),Mot=uL();noe.exports=function(t,r,n){var i=bot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,z){return u_.coerce(a,i,Mot,A,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"),_=o("xref"),b=v==="paper",p=_==="paper",k,E,T,L="left";f?(T="middle",L=p?"left":"right",k=p?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=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:E}},"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"),wot(a,i,o,"linear");var C=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(M.bgColor="black"),Sot(a,i,o,"linear",M),Aot(a,i,o,"linear",M),Tot(a,i,o,"linear",M),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((Unr,soe)=>{"use strict";var aoe=Eo(),Oq=Dr(),Eot=kq(),kot=Fq(),ooe=mb().isValid,Cot=qa().traceIs;function zq(e,t){var r=t.slice(0,t.length-1);return t?Oq.nestedProperty(e,r).get()||{}:e}soe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=zq(t,o),c=zq(r,o),f=zq(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 _=Cot(r,"contour")&&Oq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Oq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[_,r,[h]];return}}var p=u[s+"min"],k=u[s+"max"],E=aoe(p)&&aoe(k)&&p{"use strict";var loe=Dr(),Lot=vl(),uoe=Eq(),Pot=td();coe.exports=function(t,r){function n(f,h){return loe.coerce(t,r,uoe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return loe.coerce(a,o,uoe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Lot.newContainer(r,l,"coloraxis"),o._name=l,Pot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Iot=Dr(),Rot=pv().hasColorscale,Dot=pv().extractOpts;hoe.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?Iot.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Dot(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 voe=Eo(),qq=Dr(),Fot=pv().extractOpts;poe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?qq.nestedProperty(r,o).get():r,l=Fot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return qq.aggNums(Math.min,null,a)},v=function(){return qq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&voe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&voe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,l._sync("colorscale",_)}}});var tc=ye((jnr,goe)=>{"use strict";var hL=mb(),z3=pv();goe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:Eq(),supplyLayoutDefaults:foe(),handleDefaults:td(),crossTraceDefaults:doe(),calc:gv(),scales:hL.scales,defaultScale:hL.defaultScale,getScale:hL.get,isValidScale:hL.isValid,hasColorscale:z3.hasColorscale,extractOpts:z3.extractOpts,extractScale:z3.extractScale,flipScale:z3.flipScale,makeColorScaleFunc:z3.makeColorScaleFunc,makeColorScaleFuncFromTrace:z3.makeColorScaleFuncFromTrace}});var Ru=ye((Wnr,yoe)=>{"use strict";var moe=Dr(),zot=vv().isTypedArraySpec;yoe.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 moe.isPlainObject(t)&&(moe.isArrayOrTypedArray(t.size)||zot(t.size))}}});var O3=ye((Xnr,_oe)=>{"use strict";var Oot=Eo();_oe.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 Oot(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var dL=Dr();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{woe.exports=Vot;var Bq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Uot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Vot(e){var t=[];return e.replace(Uot,function(r,n,i){var a=n.toLowerCase();for(i=Hot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Bq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var jot=nM(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},hs="M0,0Z",Toe=Math.sqrt(2),c_=Math.sqrt(3),Nq=Math.PI,Uq=Math.cos,Vq=Math.sin;koe.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/Toe,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/Toe,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=Nq/2.5,i=2*e*Uq(n),a=2*e*Vq(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=Nq/4,i=2*e*Uq(n),a=2*e*Vq(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 Aoe,Soe,Moe,Eoe;function vs(e,t,r){if((!e||e%360===0)&&!t)return r;if(Moe===e&&Eoe===t&&Aoe===r)return Soe;Moe=e,Eoe=t,Aoe=r;function n(b,p){var k=Uq(b),E=Vq(b),T=p[0],L=p[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Nq,a=0,o=0,s=jot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),Wot=Du.numberFormat,Db=Eo(),Zq=fd(),pL=qa(),Yd=ka(),Xot=tc(),oM=Du.strTranslate,gL=Zl(),Zot=Wp(),Yot=Dh(),Kot=Yot.LINE_SPACING,Boe=X1().DESELECTDIM,Jot=Ru(),$ot=O3(),Qot=ip().appendArrayPointValue,Ta=Yoe.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(Yd.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",Gq(tst(c))),l&&e.style("text-shadow",l==="auto"?gL.makeTextShadow(Yd.contrast(a)):Gq(l)),u&&e.style("text-decoration-line",Gq(rst(u)))};function Gq(e){return e==="none"?void 0:e}var est={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function tst(e){return est[e]}function rst(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(Db(i)&&Db(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",oM(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=pL.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||!Db(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||"";Yd.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(Yd.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 Noe(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,_="scatterfill-"+t.uid;if(n&&(_="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(Goe,r,_,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Ta.gradient,r,_,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Yd.fill,t.fillcolor)}Ta.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Noe(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&&Noe(i,n[0].trace,t,r)})};var Loe=Coe();Ta.symbolNames=[];Ta.symbolFuncs=[];Ta.symbolBackOffs=[];Ta.symbolNeedLines={};Ta.symbolNoDot={};Ta.symbolNoFill={};Ta.symbolList=[];Object.keys(Loe).forEach(function(e){var t=Loe[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 ist=Ta.symbolNames.length,nst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ta.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=Ta.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=ist||e>=400?0:Math.floor(Math.max(e,0))};function Uoe(e,t,r,n){var i=e%100;return Ta.symbolFuncs[i](t,r,n)+(e>=200?nst:"")}var Poe=Wot("~f"),Voe={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=Voe[n];return Goe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Goe(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=Jq(e,r),f=Kq(e,r);t.attr("d",Uoe(u,l,c,f))}var h=!1,d,v,_;if(e.so)_=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(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=Yd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Yd.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,_),e.om)t.call(Yd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var k=o.gradient,E=e.mgt;E?h=!0:E=k&&k.type,Du.isArrayOrTypedArray(E)&&(E=E[0],Voe[E]||(E=0));var T=o.pattern,L=Ta.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(E&&E!=="none"){var C=e.mgc;C?h=!0:C=k.color;var M=r.uid;h&&(M+="-"+e.i),Ta.gradient(t,i,M,E,[[0,C],[1,d]],"fill")}else if(x){var g=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,g=!0);var A=L(P,e.i,a&&a.color||null),z=L(T.bgcolor,e.i,null),O=T.fgopacity,U=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,U,G,e.mcc,T.fillmode,z,A,O)}else Du.isArrayOrTypedArray(d)?Yd.fill(t,d[e.i]):Yd.fill(t,d);_&&Yd.stroke(t,v)}};Ta.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ta.tryColorscale(r,""),t.lineScale=Ta.tryColorscale(r,"line"),pL.traceIs(e,"symbols")&&(t.ms2mrc=Jot.isBubble(e)?$ot(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:Boe*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 _=i.size,b=a.size,p=o.size,k=b!==void 0,E=p!==void 0;return pL.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||_/2;return T.selected?k?b/2:L:E?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:Yd.addOpacity(f,Boe))},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){Yd.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",Uoe(Ta.symbolNumber(s),l,Jq(o,t),Kq(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={};Qot(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=joe(s,t),_=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:_}).text(u).call(gL.convertToTspans,r).call(Hoe,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=joe(n,t);Yd.fill(i,a);var l=pL.traceIs(t,"bar-like");Hoe(i,o,s,n.mrc2||n.mrc,l)})}};var Ioe=.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=Zoe;Ta.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Zot.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 jq=0,sst=1e4;Ta.bBox=function(e,t,r){r||(r=Roe(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=Roe(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(gL.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 jq>=sst&&(Ta.savedBBoxes={},jq=0),r&&(Ta.savedBBoxes[r]=d),jq++,Du.extendFlat({},d)};function Roe(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",Yq(t,r))};function Yq(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+=oM(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 lst=/\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(lst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var ust=/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(ust);t===1&&r===1?n=[]:n=[oM(o,s),"scale("+t+","+r+")",oM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Kq(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=Kq;var aM=Math.atan2,Pb=Math.cos,B3=Math.sin;function Doe(e,t){var r=t[0],n=t[1];return[r*Pb(e)-n*B3(e),r*B3(e)+n*Pb(e)]}var Foe,zoe,Ooe,qoe,Wq,Xq;function Jq(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=aM(h[1]-i,h[0]-n),v=aM(f[1]-i,f[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,k=Foe/180*Math.PI,E=zoe/180*Math.PI,T=k-b,L=Pb(E)*B3(T),x=B3(E)*Pb(p)-Pb(E)*B3(p)*Pb(T);_=-aM(L,x)-Math.PI,Foe=u,zoe=c}var C=Doe(d,[Pb(_),0]),M=Doe(v,[B3(_),0]);r=aM(C[1]+M[1],C[0]+M[0])/Math.PI*180,a==="previous"&&!(Xq===t.uid&&e.i===Wq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Xq===t.uid&&e.i===Wq+1&&Db(n)&&Db(i)){var g=n-Ooe,P=i-qoe,A=t.line&&t.line.shape||"",z=A.slice(A.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=aM(P,g)/Math.PI*180+90}else r=null}return Ooe=n,qoe=i,Wq=e.i,Xq=t.uid,r}Ta.getMarkerAngle=Jq});var zb=ye(($nr,Qoe)=>{"use strict";var N3=Oa(),cst=Eo(),fst=Mc(),$q=qa(),Fb=Dr(),Koe=Fb.strTranslate,mL=So(),yL=ka(),U3=Zl(),Joe=X1(),hst=Dh().OPPOSITE_SIDE,$oe=/ [XY][0-9]* /,Qq=1.6,eB=1.6;function dst(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(),_=!1,b=d&&d.font?d.font:{},p=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,A=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},U=(O.text||"").trim(),G=!1,Z=1,j=O.font,N=j.family,H=j.size,re=j.color,oe=j.weight,_e=j.style,Ce=j.variant,Le=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 Ee=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace($oe," % ")===$t.replace($oe," % ")}v===""?h=0:Ae(v,o)&&(Ee||(v=""),h=.2,_=!0),A&&(U===""?Z=0:Ae(U,z)&&(Ee||(U=""),Z=.2,G=!0)),r._meta?v=Fb.templateString(v,r._meta):n._meta&&(v=Fb.templateString(v,n._meta));var Be=v||U||Ee,Pe;f||(f=Fb.ensureSingle(n._infolayer,"g","g-"+t),Pe=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 De=null,ce=t+"-subtitle",je=U||Ee;if(A&&(De=f.selectAll("text."+ce).data(je?[0]:[]),De.enter().append("text"),De.text(U).attr("class",ce),De.exit().remove()),!Be)return f;function lt(Nt,$t){Fb.syncOrAsync([pt,Vt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,Tr;!c&&Pe&&(c={}),c?(Tr="",c.rotate&&(Tr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(Tr+=Koe(0,(c.offset||0)-(Pe||0)))):Tr=null,$t.attr("transform",Tr);function fr(It){if(It){var mt=N3.select(It.node().parentNode).select("."+ce);if(!mt.empty()){var er=It.node().getBBox();if(er.height){var lr=er.y+er.height+Qq*H;mt.attr("y",lr)}}}}if($t.style("opacity",h*yL.opacity(E)).call(mL.font,{color:yL.rgb(E),size:N3.round(k,2),family:p,weight:T,style:L,variant:x,textcase:C,shadow:g,lineposition:M}).attr(u).call(U3.convertToTspans,e,fr),sr&&!sr.empty()){var $e=f.select("."+t+"-math-group"),St=$t.node().getBBox(),Qt=$e.node()?$e.node().getBBox():void 0,Gt=Qt?Qt.y+Qt.height+Qq*H:St.y+St.height+eB*H,_t=Fb.extendFlat({},u,{y:Gt});sr.attr("transform",Tr),sr.style("opacity",Z*yL.opacity(re)).call(mL.font,{color:yL.rgb(re),size:N3.round(H,2),family:N,weight:oe,style:_e,variant:Ce,textcase:Le,shadow:ie,lineposition:ge}).attr(_t).call(U3.convertToTspans,e)}return fst.previousPromises(e)}function Vt(Nt){var $t=Nt.title,sr=N3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var Tr=hst[l.side],fr=l.side==="left"||l.side==="top"?-1:1,$e=cst(l.pad)?l.pad:2,St=mL.bBox(sr.node()),Qt={t:0,b:0,l:0,r:0},Gt=e._fullLayout._reservedMargin;for(var _t in Gt)for(var It in Gt[_t]){var mt=Gt[_t][It];Qt[It]=Math.max(Qt[It],mt)}var er={left:Qt.l,top:Qt.t,right:n.width-Qt.r,bottom:n.height-Qt.b},lr=l.maxShift||fr*(er[l.side]-St[l.side]),wr=0;if(lr<0)wr=lr;else{var Lr=l.offsetLeft||0,ti=l.offsetTop||0;St.left-=Lr,St.right-=Lr,St.top-=ti,St.bottom-=ti,l.selection.each(function(){var Vr=mL.bBox(this);Fb.bBoxIntersect(St,Vr,$e)&&(wr=Math.max(wr,fr*(Vr[l.side]-St[Tr])+$e))}),wr=Math.min(lr,wr),i._titleScoot=Math.abs(wr)}if(wr>0||lr<0){var Br={left:[-wr,0],right:[wr,0],top:[0,-wr],bottom:[0,wr]}[l.side];sr.attr("transform",Koe(Br[0],Br[1]))}}}me.call(lt,De);function ot(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){N3.select(this).transition().duration(Joe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){N3.select(this).transition().duration(Joe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(v?me.on(".opacity",null):(ot(me,o),_=!0),me.call(U3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?$q.call("_guiRestyle",e,a,Nt,s):$q.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Nt){this.text(Nt||" ").call(U3.positionText,u.x,u.y)}),A)){if(A&&!v){var ut=me.node().getBBox(),Wt=ut.y+ut.height+eB*H;De.attr("y",Wt)}U?De.on(".opacity",null):(ot(De,z),G=!0),De.call(U3.makeEditable,{gd:e}).on("edit",function(Nt){$q.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Nt){this.text(Nt||" ").call(U3.positionText,De.attr("x"),De.attr("y"))})}return me.classed("js-placeholder",_),De&&!De.empty()&&De.classed("js-placeholder",G),f}Qoe.exports={draw:dst,SUBTITLE_PADDING_EM:eB,SUBTITLE_PADDING_MATHJAX_EM:Qq}});var xm=ye((Qnr,nse)=>{"use strict";var vst=Oa(),pst=f3().utcFormat,yc=Dr(),gst=yc.numberFormat,ym=Eo(),f_=yc.cleanNumber,mst=yc.ms2DateTime,ese=yc.dateTime2ms,_m=yc.ensureNumber,tse=yc.isArrayOrTypedArray,h_=fs(),_L=h_.FP_SAFE,Sg=h_.BADNUM,yst=h_.LOG_CLIP,_st=h_.ONEWEEK,xL=h_.ONEDAY,bL=h_.ONEHOUR,rse=h_.ONEMIN,ise=h_.ONESEC,wL=hf(),SL=Rh(),TL=SL.HOUR_PATTERN,AL=SL.WEEKDAY_PATTERN;function sM(e){return Math.pow(10,e)}function tB(e){return e!=null}nse.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*yst*Math.abs(x-C))}else return Sg}function o(T,L,x,C){if((C||{}).msUTC&&ym(T))return+T;var M=ese(T,x||t.calendar);if(M===Sg)if(ym(T)){T=+T;var g=Math.floor(yc.mod(T+.05,1)*10),P=Math.round(T-g/10);M=ese(new Date(P))+g/10}else return Sg;return M}function s(T,L,x){return mst(T,L,x||t.calendar)}function l(T){return t._categories[Math.round(T)]}function u(T){if(tB(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,M=C*T,g=0,P=0;Pz)g=P+1;else{g=M<(A+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(T,t._m2,O):0},p=function(T){var L=t._rangebreaks.length;if(!L)return _(T,t._m,t._b);for(var x=0,C=0;Ct._rangebreaks[C].pmax&&(x=C+1);return _(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_m,t.l2c=t.type==="log"?sM:_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 sM(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 sM(f_(T))},t.d2c=t.r2l=f_,t.c2d=t.l2r=_m,t.c2r=a,t.l2d=sM,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return sM(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,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[wL.id2name(g)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(C[g?0:1]=x),C[0]===C[1]){var A=t.l2r(L),z=t.l2r(x);if(L!==void 0){var O=A+1;x!==void 0&&(O=Math.min(O,z)),C[g?1:0]=O}if(x!==void 0){var U=z+1;L!==void 0&&(U=Math.max(U,A)),C[g?0:1]=U}}}},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,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=SL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||SL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){yc.nestedProperty(t,T).set(M);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]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var A=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(A-1e3),x[1]=t.l2r(A+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]=M;break}if(x[C]<-_L?x[C]=-_L:x[C]>_L&&(x[C]=_L),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=wL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var C=T&&t._r?"_r":"range",M=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],M),P=t.r2l(t[C][1],M),A=i==="y";if(A?(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,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(A?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=C&&g=C&&T=ie.min&&(_eie.max&&(ie.max=Ce),Le=!1)}Le&&P.push({min:_e,max:Ce})}};for(x=0;x{"use strict";var ase=Eo(),rB=Dr(),xst=fs().BADNUM,ML=rB.isArrayOrTypedArray,bst=rB.isDateTime,wst=rB.cleanNumber,ose=Math.round;lse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(ML(i)&&!i.length)return"-";if(!a&&Est(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function sse(e){return Math.max(1,(e-1)/1e3)}function Mst(e,t){for(var r=e.length,n=sse(r),i=0,a=0,o={},s=0;si*2}function Est(e){return ML(e[0])&&ML(e[1])}});var Mg=ye((tar,gse)=>{"use strict";var kst=Oa(),hse=Eo(),d_=Dr(),EL=fs().FP_SAFE,Cst=qa(),Lst=So(),dse=hf(),Pst=dse.getFromId,Ist=dse.isLinked;gse.exports={applyAutorangeOptions:pse,getAutoRange:iB,makePadFn:nB,doAutoRange:Dst,findExtremes:Fst,concatExtremes:sB};function iB(e,t){var r,n,i=[],a=e._fullLayout,o=nB(a,t,0),s=nB(a,t,1),l=sB(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=E-o(x)-s(C),P>T?A/P>L&&(M=x,g=C,L=A/P):A/E>L&&(M={val:x.val,nopad:1},g={val:C.val,nopad:1},L=A/E));function z(j,N){return Math.max(j,s(N))}if(f===h){var O=f-1,U=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/E));i=f>0?[0,Z]:[Z,0]}else k?i=[Math.max(0,O),Math.max(1,U)]:i=[O,U]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):k&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-use(t,x.val,C.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=pse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function use(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),M=T(r.vpadminus||r.vpad);if(!u){if(k=1/0,E=-1/0,l)for(f=0;f0&&(k=h),h>E&&h-EL&&(k=h),h>E&&h=A;f--)P(f);return{min:n,max:i,opts:r}}function aB(e,t,r,n){vse(e,t,r,n,zst)}function oB(e,t,r,n){vse(e,t,r,n,Ost)}function vse(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 fse(e){return hse(e)&&Math.abs(e)=t}function qst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&kL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&kL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Bst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&kL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&kL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function kL(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=qst(r,t),n=Bst(n,t),[r,n]}});var ho=ye((iar,Bse)=>{"use strict";var w0=Oa(),zh=Eo(),G3=Mc(),uM=qa(),Wo=Dr(),H3=Wo.strTranslate,Ob=Zl(),Nst=zb(),cM=ka(),Xp=So(),Ust=Rd(),mse=Pq(),rar=Rh(),Kd=fs(),Vst=Kd.ONEMAXYEAR,PL=Kd.ONEAVGYEAR,IL=Kd.ONEMINYEAR,Gst=Kd.ONEMAXQUARTER,fB=Kd.ONEAVGQUARTER,RL=Kd.ONEMINQUARTER,Hst=Kd.ONEMAXMONTH,j3=Kd.ONEAVGMONTH,DL=Kd.ONEMINMONTH,Zp=Kd.ONEWEEK,Ov=Kd.ONEDAY,v_=Ov/2,wm=Kd.ONEHOUR,fM=Kd.ONEMIN,FL=Kd.ONESEC,jst=Kd.ONEMILLI,Wst=Kd.ONEMICROSEC,qb=Kd.MINUS_SIGN,OL=Kd.BADNUM,hB={K:"zeroline"},dB={K:"gridline",L:"path"},vB={K:"minor-gridline",L:"path"},kse={K:"tick",L:"path"},yse={K:"tick",L:"text"},_se={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},qL=Dh(),lM=qL.MID_SHIFT,Bb=qL.CAP_SHIFT,hM=qL.LINE_SPACING,Xst=qL.OPPOSITE_SIDE,zL=3,Jn=Bse.exports={};Jn.setConvert=xm();var Zst=V3(),Tm=hf(),Yst=Tm.idSort,Kst=Tm.isLinked;Jn.id2name=Tm.id2name;Jn.name2id=Tm.name2id;Jn.cleanId=Tm.cleanId;Jn.list=Tm.list;Jn.listIds=Tm.listIds;Jn.getFromId=Tm.getFromId;Jn.getFromTrace=Tm.getFromTrace;var Cse=Mg();Jn.getAutoRange=Cse.getAutoRange;Jn.findExtremes=Cse.findExtremes;var Jst=1e-4;function yB(e){var t=(e[1]-e[0])*Jst;return[e[0]-t,e[1]+t]}Jn.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)};Jn.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))};Jn.saveRangeInitial=function(e,t){for(var r=Jn.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=Jn.tickIncrement(e,"M6","reverse")+Ov*1.5:a.exactMonths>o?e=Jn.tickIncrement(e,"M1","reverse")+Ov*15.5:e-=v_;var l=Jn.tickIncrement(e,r);if(l<=n)return l}return e}Jn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&zh(t._tmin),i;if(n){var a=Jn.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,Jn.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?lB(u,c)?u===2*Zp&&c===2*Ov&&(e.dtick=Zp):u===2*Zp&&c===3*Ov?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=Ov:wse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":lB(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"?lB(u,c)||(e.dtick=wse(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}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function lB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function wse(e,t){return Math.abs(e/t-1)<.001}Jn.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,Jn.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>=IL?u>=IL&&u<=Vst?f=u:f=PL:r===fB&&c>=RL?u>=RL&&u<=Gst?f=u:f=fB:c>=DL?u>=DL&&u<=Hst?f=u:f=j3:r===Zp&&c>=Zp?f=Zp:c>=Ov?f=Ov: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,_=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Jn.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]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=T?t:Wo.extendFlat({},t,t.minor);if(L?Jn.prepMinorTicks(x,t,r):Jn.prepTicks(x,r),x.tickmode==="array"){T?(b=[],v=Tse(t,!L)):(p=[],_=Tse(t,!L));continue}if(x.tickmode==="sync"){b=[],v=ilt(t);continue}var C=yB(u),M=C[0],g=C[1],P=zh(x.dtick),A=n==="log"&&!(P||x.dtick.charAt(0)==="L"),z=Jn.tickFirst(x,r);if(T){if(t._tmin=z,z=g:U<=g;U=Jn.tickIncrement(U,j,c,i)){if(T&&G++,x.rangebreaks&&!c){if(U=h)break}if(b.length>d||U===O)break;O=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var H=(p[1].value-p[0].value)*(s?-1:1);klt(H,t.tickformat)||(l=!1)}if(!l)k=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Wt,Nt){return Wt.value-Nt.value}).filter(function(Wt,Nt,$t){return Nt===0||Wt.value!==$t[Nt-1].value});var oe=re.map(function(Wt,Nt){return Wt.minor===void 0&&!Wt.skipLabel?Nt:null}).filter(function(Wt){return Wt!==null});oe.forEach(function(Wt){l.map(function(Nt){var $t=Wt+Nt;$t>=0&&$t-1;Be--){if(b[Be].drop){b.splice(Be,1);continue}b[Be].value=cB(b[Be].value,t);var ce=t.c2p(b[Be].value);(Pe?De>ce-me:Deh||srh&&($t.periodX=h),sri&&hPL)t/=PL,n=i(10),e.dtick="M"+12*bm(t,n,CL);else if(a>j3)t/=j3,e.dtick="M"+bm(t,1,Ase);else if(a>Ov){if(e.dtick=bm(t,Ov,e._hasDayOfWeekBreaks?[1,2,7,14]:nlt),!r){var o=Jn.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,Ase):a>fM?e.dtick=bm(t,fM,Sse):a>FL?e.dtick=bm(t,FL,Sse):(n=i(10),e.dtick=bm(t,n,CL))}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,CL)}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))):wB(e)?(e.tick0=0,n=1,e.dtick=bm(t,n,alt)):(e.tick0=0,n=i(10),e.dtick=bm(t,n,CL));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 Rse(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>=Ov&&i<=10||t>=Ov*15)e._tickround="d";else if(t>=fM&&i<=16||t>=wm)e._tickround="M";else if(t>=FL&&i<=19||t>=fM)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&&(W3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!_B(l)||W3(e.exponentformat)&&e.exponentformat==="SI extended"&&!xB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Jn.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"?Ise:Pse,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)};Jn.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=vM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function slt(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=dM(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"||W3(v)&&v!=="SI extended"&&_B(h)||W3(v)&&v==="SI extended"&&xB(h)?(t.text=f[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):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":qb)+d:(t.text=dM(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 _=String(t.text).charAt(0);(_==="0"||_==="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 llt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function ult(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 clt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=dM(t.x,e,i,n)}function flt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=hlt(a);if(o[1]>=100)t.text=dM(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=qb+t.text)}}}else t.text=dM(t.x,e,i,n)}function hlt(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 Fse=["f","p","n","\u03BC","m","","k","M","G","T"],dlt=["q","r","y","z","a",...Fse,"P","E","Z","Y","R","Q"],W3=e=>["SI","SI extended","B"].includes(e);function _B(e){return e>14||e<-15}function xB(e){return e>32||e<-30}function vlt(e,t){return W3(t)?!!(t==="SI extended"&&xB(e)||t!=="SI extended"&&_B(e)):!1}function dM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Jn.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]};Rse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,qb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":W3(o)&&(e+=o==="SI extended"?dlt[s/3+10]:Fse[s/3+5])}return i?qb+e:e}Jn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*j3}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=Jn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Jn.drawOne(e,u,r);return u._shiftPusher&&mB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Wo.simpleMap(u._r,u.r2l),c}}}))};Jn.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=Jn.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),mB(t,v,n,!0),mB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Elt(t,n));var _=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=Jn.calcTicks(t),T=[t.mirror,p,k].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var St=0,Qt=0;if(t._shiftPusher&&(St=Math.max($t,sr.height>0?ut==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(Qt=(t._titleStandoff||0)+(t._titleScoot||0),ut==="l"&&(Qt+=Ese(t))),t._fullDepth=Math.max(St,Qt)),t.automargin){Tr={x:0,y:0,r:0,l:0,t:0,b:0};var Gt=[0,1],_t=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(ut==="b"?Tr[ut]=t._depth:(Tr[ut]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Gt.reverse()),sr.width>0){var It=sr.right-(t._offset+t._length);It>0&&(Tr.xr=1,Tr.r=It);var mt=t._offset-sr.left;mt>0&&(Tr.xl=0,Tr.l=mt)}}else if(ut==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),Tr[ut]=t._depth-_t):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),Tr[ut]=t._depth+_t,Gt.reverse()),sr.height>0){var er=sr.bottom-(t._offset+t._length);er>0&&(Tr.yb=0,Tr.b=er);var lr=t._offset-sr.top;lr>0&&(Tr.yt=1,Tr.t=lr)}Tr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Gt[0]],t.title.text!==l._dfltTitle[c]&&(Tr[ut]+=Ese(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(fr={x:0,y:0,r:0,l:0,t:0,b:0},fr[Wt]=t.linewidth,t.mirror&&t.mirror!==!0&&(fr[Wt]+=$t),t.mirror===!0||t.mirror==="ticks"?fr[f]=t._anchorAxis.domain[Gt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(fr[f]=[t._counterDomainMin,t._counterDomainMax][Gt[1]]))}ot&&($e=uM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Mse(Tr,t.automargin),Mse(fr,t.automargin)),G3.autoMargin(e,bB(t),Tr),G3.autoMargin(e,Ose(t),fr),G3.autoMargin(e,qse(t),$e)}),Wo.syncOrAsync(pt)}};function Mse(e,t){if(e){var r=Object.keys(_se).reduce(function(n,i){return t.indexOf(i)!==-1&&_se[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 plt(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 H3(i+e._offset+e.l2p(pB(h))+r,a+n)}:function(h){return H3(a+n,i+e._offset+e.l2p(pB(h))+r)}};function pB(e){return e.periodX!==void 0?e.periodX:e.x}function _lt(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=zL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*Bb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=zL),l&&c==="top"&&(h-=d*(1-Bb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Jn.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};Jn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-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,_=h?e.ticklen:0;if(f?_*=-1:c&&(_=0),h&&(d+=_,r)){var b=Wo.deg2rad(r);d=_*Math.cos(b)+1,v=_*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,E,T,L,x=0,C=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&C==="bottom"||f&&C==="top",L=P?1:-1,f&&(L*=-1),k=v*L,E=t+d*L,T=P?1:-.2,Math.abs(g)===90&&(f?T+=lM:g===-90&&C==="bottom"?T=Bb:g===90&&C==="top"?T=lM:T=.5,x=lM/2*(g/90)),p.xFn=function(O){return O.dx+k+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*T},p.anchorFn=function(O,U){if(c){if(s)return"end";if(l)return"start"}return!zh(U)||U===0||U===180?"middle":U*L<0!==f?"end":"start"},p.heightFn=function(O,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&C==="left"||f&&C==="right",L=P?1:-1,f&&(L*=-1),k=d,E=v*L,T=0,!f&&Math.abs(g)===90&&(g===-90&&C==="left"||g===90&&C==="right"?T=Bb:T=.5),f){var A=zh(g)?+g:0;if(A!==0){var z=Wo.deg2rad(A);x=Math.abs(Math.sin(z))*Bb*L,T=0}}p.xFn=function(O){return O.dx+t-(k+O.fontSize*T)*L+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*lM},p.anchorFn=function(O,U){return zh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},p.heightFn=function(O,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return p};function BL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Jn.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,BL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return cM.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),NL(t,[kse]),a.attr("transform",r.transFn)};Jn.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&&Jn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var _=v?h:d;if(_){var b=_.selectAll("path."+n).data(v?o:a,BL);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 cM.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)}}NL(t,[dB,vB])}};Jn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Jn.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 Yst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(cM.stroke,t.zerolinecolor||cM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),NL(t,[hB])};Jn.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:[],BL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var re=w0.select(this),oe=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[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),NL(t,[yse]),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(oe){var _e=w0.select(this),Ce=_e.select(".text-math-group"),Le=l.anchorFn(oe,re),ge=r.transFn.call(_e.node(),oe)+(zh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Ob.lineCount(_e),Se=hM*oe.fontSize,Ee=l.heightFn(oe,zh(re)?+re:0,(ie-1)*Se);if(Ee&&(ge+=H3(0,Ee)),Ce.empty()){var Ae=_e.select("text");Ae.attr({transform:ge,"text-anchor":Le}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Be=Xp.bBox(Ce.node()).width,Pe=Be*{end:-.5,start:.5}[Le];Ce.attr("transform",ge+H3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Ce=oe?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Le=Wo.simpleMap(t.range,t.r2l);_e=t.l2p(Le[0])+t._offset,Ce=t.l2p(Le[1])+t._offset}var ge=Math.min(_e,Ce),ie=Math.max(_e,Ce),Se=t.side,Ee=1/0,Ae=-1/0;f.each(function(De){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var lt=Xp.bBox(ce.node()),pt=0;oe?(lt.right>ie||lt.leftie||lt.top+(t.tickangle?0:De.fontSize/4)t["_visibleLabelMin_"+Le._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 _=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var H=0,re=[],oe,_e=1;f.each(function(Tr){H=Math.max(H,Tr.fontSize);var fr=t.l2p(Tr.x),$e=gB(this),St=Xp.bBox($e.node());_e=Math.max(_e,Ob.lineCount($e)),re.push({top:0,bottom:10,height:10,left:fr-St.width/2,right:fr+St.width/2+2,width:St.width+2})});var Ce=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Le=s.length,ge=Math.abs((s[Le-1].x-s[0].x)*t._m)/(Le-1),ie=Ce?ge/2:ge,Se=Ce?t.ticklen:H*1.25*_e,Ee=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Ee,Be=t.autotickangles.map(function(Tr){return Tr*Math.PI/180}),Pe=Be.find(function(Tr){return Math.abs(Math.cos(Tr))<=Ae});Pe===void 0&&(Pe=Be.reduce(function(Tr,fr){return Math.abs(Math.cos(Tr))Z*G&&(z=G,g[M]=P[M]=O[M])}var j=Math.abs(z-A);j-L>0?(j-=L,L*=1+L/j):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[C]=E.p2r(E.r2p(P[C])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Wo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function xlt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,BL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(cM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Jn.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 Ese(e){var t=e.title.font.size,r=(e.title.text.match(Ob.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Bb+r*hM):r?t*(r+1)*hM:t}function blt(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*Bb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(lM+s*hM));else{var l=vM(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=Jn.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 _=t._selections[t._id+"tick"];if(v={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xp.getTranslate(_.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,Nst.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"}})}Jn.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)&&(zse(t,0)||!wlt(e,t,r,n)||Tlt(e,t))};Jn.clipEnds=function(e,t){return t.filter(function(r){return zse(e,r.x)})};function zse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Wst:/%L/.test(t)?e>=jst:/%[SX]/.test(t)?e>=FL:/%M/.test(t)?e>=fM:/%[HI]/.test(t)?e>=wm:/%p/.test(t)?e>=v_:/%[Aadejuwx]/.test(t)?e>=Ov:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=DL:/%[q]/.test(t)?e>=RL:/%[Yy]/.test(t)?e>=IL:!0}});var TB=ye((nar,Nse)=>{"use strict";Nse.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 AB=ye((aar,Use)=>{"use strict";var Clt=TB();Use.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&&(Clt(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Gse=ye((oar,Vse)=>{var Llt={left:0,top:0};Vse.exports=Plt;function Plt(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=Ilt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Ilt(e){return e===window||e===document||e===document.body?Llt:e.getBoundingClientRect()}});var UL=ye((sar,Hse)=>{"use strict";var Rlt=oq();function Dlt(){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}Hse.exports=Rlt&&Dlt()});var Wse=ye((lar,jse)=>{"use strict";jse.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 Yse=ye((uar,Zse)=>{"use strict";var Xse=Dr(),Flt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Zse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Xse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Xse.constrain(Math.floor(r*3),0,2),Flt[r][t]}});var Jse=ye((car,Kse)=>{"use strict";var zlt=k3(),Olt=H6(),qlt=HS().getGraphDiv,Blt=NS(),SB=Kse.exports={};SB.wrapped=function(e,t,r){e=qlt(e),e._fullLayout&&Olt.clear(e._fullLayout._uid+Blt.HOVERID),SB.raw(e,t,r)};SB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&zlt.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((far,tle)=>{"use strict";var Nlt=Gse(),MB=lq(),Ult=UL(),Vlt=Dr().removeElement,Glt=Rh(),Nb=tle.exports={};Nb.align=Wse();Nb.getCursor=Yse();var Qse=Jse();Nb.unhover=Qse.wrapped;Nb.unhoverRaw=Qse.raw;Nb.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,Ult?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,T,L){return Math.abs(E)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",E))}r._dragging=!1,r._dragged=!1}};function ele(){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}Nb.coverSlip=ele;function $se(e){return Nlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eg=ye((har,rle)=>{"use strict";rle.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 ale=ye((dar,nle)=>{"use strict";var EB=Eg(),pM="data-savedcursor",ile="!!";nle.exports=function(t,r){var n=t.attr(pM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var kB=ec(),Hlt=Ih();ole.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Hlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kB({editType:"legend"}),grouptitlefont:kB({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:kB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var mM=ye(gM=>{"use strict";gM.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};gM.isVertical=function(t){return t.orientation!=="h"};gM.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};gM.getId=function(t){return t._id||"legend"}});var PB=ye((mar,sle)=>{"use strict";var VL=qa(),Yp=Dr(),jlt=vl(),Wlt=Gl(),Xlt=CB(),Zlt=_3(),LB=mM();function Ylt(e,t,r,n,i){var a=t[e]||{},o=jlt.newContainer(r,e);function s(H,re){return Yp.coerce(a,o,Xlt,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 oe=c._input,_e=c;return Yp.coerce(oe,_e,Wlt,H,re)},h=r.font||{},d=Yp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),v=0,_=!1,b="normal",p=(r.shapes||[]).filter(function(H){return H.showlegend});function k(H){return VL.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"),M=s("yref"),g=s("xref"),P=C==="h",A=M==="paper",z=g==="paper",O,U,G,Z="left";P?(O=0,VL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?A?(U=1.1,G="bottom"):(U=1,G="top"):A?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",z?O=1.02:(O=1,Z="right")),Yp.coerce(a,o,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:O}},"x"),Yp.coerce(a,o,{y:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:U}},"y"),s("traceorder",b),LB.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)}}}sle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var p_=qa(),IB=Dr(),Klt=IB.pushUnique,Jlt=mM(),lle=!0;RB.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"&&lle&&r.data&&r._context.showTips&&(IB.notifier(IB._(r,"Double-click on legend to isolate one trace"),"long"),lle=!1);var l=s==="togglegroup",u=a.hiddenlabels?a.hiddenlabels.slice():[],c=r._fullData,f=(a.shapes||[]).filter(function(ot){return ot.showlegend}),h=c.concat(f),d=o.trace;d._isShape&&(d=d._fullInput);var v=d.legendgroup,_,b,p,k,E,T,L={},x=[],C=[],M=[];function g(ot,ut){var Wt=x.indexOf(ot),Nt=L.visible;return Nt||(Nt=L.visible=[]),x.indexOf(ot)===-1&&(x.push(ot),Wt=x.length-1),Nt[Wt]=ut,Wt}var P=(a.shapes||[]).map(function(ot){return ot._input}),A=!1;function z(ot,ut){P[ot].visible=ut,A=!0}function O(ot,ut){if(!(o.groupTitle&&!l)){var Wt=ot._fullInput||ot,Nt=Wt._isShape,$t=Wt.index;$t===void 0&&($t=Wt._index);var sr=Wt.visible===!1?!1:ut;Nt?z($t,sr):g($t,sr)}}var U=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,re=[];for(_=0;_{"use strict";ule.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hle=ye((xar,fle)=>{"use strict";var cle=qa(),zB=mM();fle.exports=function(t,r,n){var i=r._inHover,a=zB.isGrouped(r),o=zB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function _(H,re,oe){if(r.visible!==!1&&!(n&&H!==r._id))if(re===""||!zB.isGrouped(r)){var _e="~~i"+f;l.push(_e),s[_e]=[oe],f++}else l.indexOf(re)===-1?(l.push(re),u=!0,s[re]=[oe]):s[re].push(oe)}for(d=0;dz&&(A=z)}g[d][0]._groupMinRank=A,g[d][0]._preGroupSort=d}var O=function(H,re){return H[0]._groupMinRank-re[0]._groupMinRank||H[0]._preGroupSort-re[0]._preGroupSort},U=function(H,re){return H.trace.legendrank-re.trace.legendrank||H._preSort-re._preSort};for(g.forEach(function(H,re){H[0]._preGroupSort=re}),g.sort(O),d=0;d{"use strict";var GL=Dr();function dle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ub.formatPiePercent=function(t,r){var n=dle((t*100).toPrecision(3));return GL.numSeparate(n,r)+"%"};Ub.formatPieValue=function(t,r){var n=dle(t.toPrecision(10));return GL.numSeparate(n,r)};Ub.getFirstFilled=function(t,r){if(GL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var $lt=So(),Qlt=ka();vle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?$lt.pointStyle(t,n,i,r):Qlt.fill(t,r.color)}});var X3=ye((Tar,yle)=>{"use strict";var gle=ka(),mle=g_().castOption,eut=ple();yle.exports=function(t,r,n,i){var a=n.marker.line,o=mle(a.color,r.pts)||gle.defaultLine,s=mle(a.width,r.pts)||0;t.call(eut,r,n,i).style("stroke-width",s).call(gle.stroke,o)}});var NB=ye((Aar,Ale)=>{"use strict";var qv=Oa(),OB=qa(),_v=Dr(),_le=_v.strTranslate,Kp=So(),T0=ka(),qB=pv().extractOpts,HL=Ru(),tut=X3(),rut=g_().castOption,iut=FB(),xle=12,ble=5,Vb=2,nut=10,Z3=5;Ale.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+iut.itemGap*2)/2,l=_le(s,0),u=function(C,M,g,P){var A;if(C+1)A=C;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,g)};t.each(function(C){var M=qv.select(this),g=_v.ensureSingle(M,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,z=C[0].lineHeight,O=C[0].height;if(A==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",_le(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(E).each(c).each(f).each(p).each(k);function c(C){var M=wle(C),g=M.showFill,P=M.showLine,A=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,U=M.anyLine,G=C[0],Z=G.trace,j,N,H=qB(Z),re=H.colorscale,oe=H.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var Be="legendfill-"+Z.uid;Kp.gradient(Ae,r,Be,BB(oe),re,"fill")}},Ce=function(Ae){if(Ae.size()){var Be="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,Be,BB(oe),re,"stroke")}},Le=HL.hasMarkers(Z)||!O?"M5,0":U?"M5,-2":"M5,-3",ge=qv.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",Le+"h"+o+"v6h-"+o+"z").call(_e),P||A){var Se=u(void 0,Z.line,nut,ble);N=_v.minExtend(Z,{line:{width:Se}}),j=[_v.minExtend(G,{trace:N})]}var Ee=ge.select(".legendlines").selectAll("path").data(P||A?[j]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Le+(A?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Ce)}function f(C){var M=wle(C),g=M.anyFill,P=M.anyLine,A=M.showLine,z=M.showMarker,O=C[0],U=O.trace,G=!z&&!P&&!g&&HL.hasText(U),Z,j;function N(ie,Se,Ee,Ae){var Be=_v.nestedProperty(U,ie).get(),Pe=_v.isArrayOrTypedArray(Be)&&Se?Se(Be):Be;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Ee){if(PeEe[1])return Ee[1]}return Pe}function H(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||A){var re={},oe={};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],Vb),re.mld=U._isShape?"solid":N("marker.line.dash",H),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],xle);re.ms=_e,oe.marker.size=_e}A&&(oe.line={width:N("line.width",H,[0,10],ble)}),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(O,re)],j=_v.minExtend(U,oe),j.selectedpoints=null,j.texttemplate=null}var Ce=qv.select(this).select("g.legendpoints"),Le=Ce.selectAll("path.scatterpts").data(z?Z:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),Le.exit().remove(),Le.call(Kp.pointStyle,j,r),z&&(Z[0].mrc=3);var ge=Ce.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 M=C[0].trace,g=M.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,_(C,this,"waterfall")}var A=[];M.visible&&g&&(A=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=qv.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var U=qv.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,Z3,Vb);U.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&U.call(T0.stroke,G.line.color)})}function d(C){_(C,this)}function v(C){_(C,this,"funnel")}function _(C,M,g){var P=C[0].trace,A=P.marker||{},z=A.line||{},O=A.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=g?P.visible&&P.type===g:OB.traceIs(P,"bar"),G=qv.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(U?[C]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var j=qv.select(this),N=Z[0],H=u(N.mlw,A.line,Z3,Vb);j.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=qB(A),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(A,"")(_e)}var Ce=re||N.mc||A.color,Le=A.pattern,ge=Kp.getPatternAttr,ie=Le&&(ge(Le.shape,0,"")||ge(Le.path,0,""));if(ie){var Se=ge(Le.bgcolor,0,null),Ee=ge(Le.fgcolor,0,null),Ae=Le.fgopacity,Be=Tle(Le.size,8,10),Pe=Tle(Le.solidity,.5,1),me="legend-"+P.uid;j.call(Kp.pattern,"legend",r,me,ie,Be,Pe,re,Le.fillmode,Se,Ee,Ae)}else j.call(T0.fill,Ce);H&&T0.stroke(j,N.mlc||z.color)})}function b(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&OB.traceIs(M,"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=qv.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var A=_v.minExtend(M,{marker:{size:a?xle:_v.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,A,r)}else{var z=u(void 0,M.line,Z3,Vb);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"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,A){var z=qv.select(this),O=M[A?"increasing":"decreasing"],U=u(void 0,O.line,Z3,Vb);z.style("stroke-width",U+"px").call(T0.fill,O.fillcolor),U&&T0.stroke(z,O.line.color)})}function k(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,A){var z=qv.select(this),O=M[A?"increasing":"decreasing"],U=u(void 0,O.line,Z3,Vb);z.style("fill","none").call(Kp.dashLine,O.line.dash,U),U&&T0.stroke(z,O.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,M,g){var P=C[0],A=P.trace,z=g?A.visible&&A.type===g:OB.traceIs(A,g),O=qv.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[C]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var U=A.marker||{},G=u(rut(U.line.width,P.pts),U.line,Z3,Vb),Z="pieLike",j=_v.minExtend(A,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:j},Z);tut(O,N,j,r)}}function x(C){var M=C[0].trace,g,P=[];if(M.visible)switch(M.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 A=qv.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(z,O){var U=qv.select(this),G=qB(M),Z=G.colorscale,j=G.reversescale,N=function(_e){if(_e.size()){var Ce="legendfill-"+M.uid;Kp.gradient(_e,r,Ce,BB(j,g==="radial"),Z,"fill")}},H;if(Z){if(!g){var oe=Z.length;H=O===0?Z[j?oe-1:0][1]:O===1?Z[j?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;H=_v.isArrayOrTypedArray(re)?re[O]||re[0]:re}U.attr("d",z[0]),H?U.call(T0.fill,H):U.call(N)})}};function BB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function wle(e){var t=e[0].trace,r=t.contours,n=HL.hasLines(t),i=HL.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 Tle(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var HB=ye((Sar,Rle)=>{"use strict";var np=Oa(),vh=Dr(),VB=Mc(),Gb=qa(),XL=k3(),UB=yv(),ph=So(),yM=ka(),Hb=Zl(),Sle=DB().handleItemClick,Mle=DB().handleTitleClick,Oh=FB(),GB=Dh(),Ple=GB.LINE_SPACING,K3=GB.FROM_TL,Ele=GB.FROM_BR,kle=hle(),aut=NB(),J3=mM(),Y3=1,out=/^legend[0-9]*$/;Rle.exports=function(t,r){if(r)Cle(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(out)&&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(),VB.autoMargin(e,i);var _=vh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=vh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=vh.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(yM.stroke,r.bordercolor).call(yM.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=vh.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=vh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(ph.font,E.font).text(E.text),WL(T,k,e,r,Y3),!s&&(r.titleclick||r.titledoubleclick)&&cut(k,e,r,i)):(k.selectAll("."+i+"titletext").remove(),k.selectAll("."+i+"titletoggle").remove());var L=vh.ensureSingle(_,"rect","scrollbar",function(M){M.attr(Oh.scrollBarEnterAttrs).call(yM.fill,Oh.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(M){let g=M[0],P=g.trace;if(g.groupTitle){let A=P.legendgroup,z=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(z).some(function(U){return U.legendgroup===A&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Gb.traceIs(P,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){np.select(this).call(lut,e,r)}).call(aut,e,r).each(function(M){s||M[0].groupTitle&&r.groupclick==="toggleitem"||np.select(this).call(uut,e,i)}),vh.syncOrAsync([VB.previousPromises,function(){return dut(e,x,C,r,k)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text){let je=(n.shapes||[]).filter(function(pt){return pt.showlegend}),lt=e._fullData.concat(je).some(function(pt){let Vt=pt.legend||"legend";var ot=Array.isArray(Vt)?Vt.includes(i):Vt===i;return ot&&pt.visible===!0});T.style("opacity",lt?1:.5)}if(!s){var z,O;P?z=M.l+M.w*r.x-K3[ZL(r)]*r._width:z=n.width*r.x-K3[ZL(r)]*r._width,A?O=M.t+M.h*(1-r.y)-K3[YL(r)]*r._effHeight:O=n.height*(1-r.y)-K3[YL(r)]*r._effHeight;var U=vut(e,i,z,O);if(U)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?vh.constrain(z,0,n.width-r._width):G,O=A?vh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&vh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&vh.log("Constrain "+i+".y to make legend fit inside graph")}ph.setTranslate(_,z,O)}if(L.on(".drag",null),_.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(Oh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*Oh.scrollBarMargin,re=r._height-r._effHeight,oe=H/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+Oh.scrollBarWidth+Oh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+Oh.scrollBarWidth+Oh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),ph.setClipUrl(k,a,e),Be(_e,N,oe),_.on("wheel",function(){_e=vh.constrain(r._scrollY+np.event.deltaY/re*H,0,re),Be(_e,N,oe),_e!==0&&_e!==re&&np.event.preventDefault()});var Ce,Le,ge,ie=function(je,lt,pt){var Vt=(pt-lt)/oe+je;return vh.constrain(Vt,0,re)},Se=function(je,lt,pt){var Vt=(lt-pt)/oe+je;return vh.constrain(Vt,0,re)},Ee=np.behavior.drag().on("dragstart",function(){var je=np.event.sourceEvent;je.type==="touchstart"?Ce=je.changedTouches[0].clientY:Ce=je.clientY,ge=_e}).on("drag",function(){var je=np.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Le=je.changedTouches[0].clientY:Le=je.clientY,_e=ie(ge,Ce,Le),Be(_e,N,oe))});L.call(Ee);var Ae=np.behavior.drag().on("dragstart",function(){var je=np.event.sourceEvent;je.type==="touchstart"&&(Ce=je.changedTouches[0].clientY,ge=_e)}).on("drag",function(){var je=np.event.sourceEvent;je.type==="touchmove"&&(Le=je.changedTouches[0].clientY,_e=Se(ge,Ce,Le),Be(_e,N,oe))});k.call(Ae)}function Be(je,lt,pt){r._scrollY=e._fullLayout[i]._scrollY=je,ph.setTranslate(k,0,-je),ph.setRect(L,r._width,Oh.scrollBarMargin+je*pt,Oh.scrollBarWidth,lt),b.select("rect").attr("y",g+je)}if(e._context.edits.legendPosition){var Pe,me,De,ce;_.classed("cursor-move",!0),UB.init({element:_.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var lt=ph.getTranslate(_);De=lt.x,ce=lt.y}},moveFn:function(je,lt){if(De!==void 0&&ce!==void 0){var pt=De+je,Vt=ce+lt;ph.setTranslate(_,pt,Vt),Pe=UB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),me=UB.align(Vt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&me!==void 0){var je={};je[i+".x"]=Pe,je[i+".y"]=me,Gb.call("_guiRelayout",e,je)}},clickFn:function(je,lt){var pt=o.selectAll("g.traces").filter(function(){var Vt=this.getBoundingClientRect();return lt.clientX>=Vt.left&<.clientX<=Vt.right&<.clientY>=Vt.top&<.clientY<=Vt.bottom});pt.size()>0&&Ile(e,r,pt,je,lt)}})}}],e)}}function jL(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 Ile(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),Gb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=XL.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Sle(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=XL.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&Sle(r,e,t,l)}}function lut(e,t,r){var n=J3.getId(r),i=e.data()[0][0],a=i.trace,o=Gb.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?Lle(u,l):u);var h=r.indentation+r.itemwidth+Oh.itemGap*2;Hb.positionText(f,h,0),s?f.call(Hb.makeEditable,{gd:t,text:u}).call(WL,e,t,r).on("edit",function(d){this.text(Lle(d,l)).call(WL,e,t,r);var v=i.trace._fullInput||{},_={};return _.name=d,v._isShape?Gb.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):Gb.call("_guiRestyle",t,_,a.index)}):WL(f,e,t,r)}function Lle(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 uut(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(yM.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)),Ile(t,s,e,a,np.event)}}))}function cut(e,t,r,n){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(n):c===n)&&Gb.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(yM.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(XL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Mle(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,XL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Mle(t,r,r.titledoubleclick))}))}function WL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Hb.convertToTspans(e,r,function(){fut(t,r,n,i)})}function fut(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=J3.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;n===Y3?c=r.title.font:i.groupTitle?c=i.groupTitle.font:c=r.font;var f=c.size*Ple,h,d;if(s){var v=ph.bBox(s);h=v.height,d=v.width,n===Y3?ph.setTranslate(o,u,u+h*.75):ph.setTranslate(o,0,h*.25)}else{var _="."+l+(n===Y3?"title":"")+"text",b=e.select(_),p=Hb.lineCount(b),k=b.node();if(h=f*p,d=k?ph.bBox(k).width:0,n===Y3)r.title.side==="left"&&(d+=Oh.itemGap*2),Hb.positionText(b,u+Oh.titlePad,u+f);else{var E=Oh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(E=Oh.itemGap,d-=r.indentation+r.itemwidth),Hb.positionText(b,E,-f*((p-1)/2-.3))}}n===Y3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=f,i.height=Math.max(h,16)+3,i.width=d)}function hut(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 dut(e,t,r,n,i){var a=e._fullLayout,o=J3.getId(n);n||(n=a[o]);var s=a._size,l=J3.isVertical(n),u=J3.isGrouped(n),c=n.entrywidthmode==="fraction",f=n.borderwidth,h=2*f,d=Oh.itemGap,v=n.indentation+n.itemwidth+d*2,_=2*(f+d),b=YL(n),p=n.y<0||n.y===0&&b==="top",k=n.y>1||n.y===1&&b==="bottom",E=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:C}=n,M=p||k||L!=="v"||x!=="paper";C||(C=M?.5:1);let g=M?a.height:s.h;n._maxHeight=Math.max(C>1?C:C*g,30);var P=0;n._width=0,n._height=0;var A=hut(n);if(l)r.each(function(je){var lt=je[0].height;ph.setTranslate(this,f+A[0],f+A[1]+n._height+lt/2+d),n._height+=lt,n._width=Math.max(n._width,je[0].width)}),P=v+n._width,n._width+=d+v+h,n._height+=_,u&&(t.each(function(je,lt){ph.setTranslate(this,0,lt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var z=ZL(n),O=n.x<0||n.x===0&&z==="right",U=n.x>1||n.x===1&&z==="left",G=k||p,Z=a.width/2;n._maxWidth=Math.max(O?G&&z==="left"?s.l+s.w:Z:U?G&&z==="right"?s.r+s.w:Z:s.w,2*v);var j=0,N=0;r.each(function(je){var lt=jL(je,n,v);j=Math.max(j,lt),N+=lt}),P=null;var H=0;if(u){var re=0,oe=0,_e=0;t.each(function(){var je=0,lt=0;np.select(this).selectAll("g.traces").each(function(Vt){var ot=jL(Vt,n,v),ut=Vt[0].height;ph.setTranslate(this,A[0],A[1]+f+d+ut/2+lt),lt+=ut,je=Math.max(je,ot),T[Vt[0].trace.legendgroup]=je});var pt=je+d;oe>0&&pt+f+oe>n._maxWidth?(H=Math.max(H,oe),oe=0,_e+=re+E,re=lt):re=Math.max(re,lt),ph.setTranslate(this,oe,_e),oe+=pt}),n._width=Math.max(H,oe)+f,n._height=_e+re+_}else{var Ce=r.size(),Le=N+h+(Ce-1)*d=n._maxWidth&&(H=Math.max(H,Ee),ie=0,Se+=ge,n._height+=ge,ge=0),ph.setTranslate(this,A[0]+f+ie,A[1]+f+Se+lt/2+d),Ee=ie+pt+d,ie+=Vt,ge=Math.max(ge,lt)}),Le?(n._width=ie+h,n._height=ge+_):(n._width=Math.max(H,Ee)+h,n._height+=ge+_)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(f+Oh.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(f+Oh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Ae=e._context.edits,Be=Ae.legendText||Ae.legendPosition;r.each(function(je){var lt=np.select(this).select("."+o+"toggle"),pt=je[0].height,Vt=je[0].trace.legendgroup,ot=jL(je,n,v);u&&Vt!==""&&(ot=T[Vt]);var ut=Be?v:P||ot;!l&&!c&&(ut+=d/2),ph.setRect(lt,0,-pt/2,ut,pt)});var Pe=i.select("."+o+"titletext");Pe.node()&&sut(Pe,n,f);var me=i.select("."+o+"titletoggle");if(me.size()&&Pe.node()){var De=Pe.attr("x")||0,ce=Oh.titlePad;ph.setRect(me,De-ce,f,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function vut(e,t,r,n){var i=e._fullLayout,a=i[t],o=ZL(a),s=YL(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 VB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*K3[o],r:a._width*Ele[o],b:a._effHeight*Ele[s],t:a._effHeight*K3[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 ZL(e){return vh.isRightAnchor(e)?"right":vh.isCenterAnchor(e)?"center":"left"}function YL(e){return vh.isBottomAnchor(e)?"bottom":vh.isMiddleAnchor(e)?"middle":"top"}});var ZB=ye(XB=>{"use strict";var jb=Oa(),Py=Eo(),Dle=fd(),zf=Dr(),put=zf.pushUnique,jB=zf.strTranslate,gut=zf.strRotate,mut=k3(),A0=Zl(),yut=ale(),Am=So(),vd=ka(),KL=yv(),Sm=ho(),_ut=Rh().zindexSeparator,Q3=qa(),kg=ip(),Wb=NS(),xut=PB(),but=HB(),Vle=Wb.YANGLE,WB=Math.PI*Vle/180,wut=1/Math.sin(WB),Tut=Math.cos(WB),Aut=Math.sin(WB),Qc=Wb.HOVERARROWSIZE,sl=Wb.HOVERTEXTPAD,Fle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Sut={scatter:!0,scattergl:!0,splom:!0};function zle(e,t){return e.distance-t.distance}XB.hover=function(t,r,n,i){t=zf.getGraphDiv(t);var a=r.target;zf.throttle(t._fullLayout._uid+Wb.HOVERID,Wb.HOVERMINTIME,function(){Mut(t,r,n,i,a)})};XB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Xle(i),o=Zle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=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),M=Math.min(E,T),g=Math.max(E,T),P=b.trace;if(Q3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,z=A.offsetLeft,O=A.offsetTop;x+=z,C+=z,M+=O,g+=O}L.bbox={x0:x+o,x1:C+o,y0:M+a,y1:g+a},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=Hle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:jb.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>M[0]._length)return KL.unhoverRaw(e,t)}if(t.pointerX=De+C[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=kg.flat(a,t.xval):Z=kg.p2c(C,De),"yval"in t?j=kg.flat(a,t.yval):j=kg.p2c(M,ce),!Py(Z[0])||!Py(j[0]))return zf.warn("Fx.hover failed",t,e),KL.unhoverRaw(e,t)}var pt=1/0;function Vt(wi,On){for(H=0;HEe&&(U.splice(0,Ee),pt=U[0].distance),f&&O!==0&&U.length===0){Se.distance=O,Se.index=!1;var Ut=oe._module.hoverPoints(Se,ge,ie,"closest",{hoverLayer:s._hoverlayer});if(Ut&&(Ut=Ut.filter(function(ri){return ri.spikeDistance<=O})),Ut&&Ut.length){var wt,rr=Ut.filter(function(ri){return ri.xa.showspikes&&ri.xa.spikesnap!=="hovered data"});if(rr.length){var nr=rr[0];Py(nr.x0)&&Py(nr.y0)&&(wt=ut(nr),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>wt.spikeDistance)&&(Ae.vLinePoint=wt))}var Er=Ut.filter(function(ri){return ri.ya.showspikes&&ri.ya.spikesnap!=="hovered data"});if(Er.length){var Xr=Er[0];Py(Xr.x0)&&Py(Xr.y0)&&(wt=ut(Xr),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>wt.spikeDistance)&&(Ae.hLinePoint=wt))}}}}}Vt();function ot(wi,On,qn){for(var Fn=null,ra=1/0,la,Ut=0;Utwi.trace.index===It.trace.index):U=[It];var mt=U.length,er=Ule("x",It,s),lr=Ule("y",It,s);Vt(er,lr);var wr=[],Lr={},ti=0,Br=function(wi){var On=Fle[wi.trace.type]?Gle(wi):wi.trace.index;if(!Lr[On])ti++,Lr[On]=ti,wr.push(wi);else{var qn=Lr[On]-1,Fn=wr[qn];qn>0&&Math.abs(wi.distance)mt-1;Vr--)Br(U[Vr]);U=wr,sr()}var dt=e._hoverdata,Ge=[],Je=Xle(e),We=Zle(e);for(let wi of U){var tt=kg.makeEventData(wi,wi.trace,wi.cd);if(wi.hovertemplate!==!1){var xt=!1;wi.cd[wi.index]&&wi.cd[wi.index].ht&&(xt=wi.cd[wi.index].ht),wi.hovertemplate=xt||wi.trace.hovertemplate||!1}if(wi.xa&&wi.ya){var Ie=wi.x0+wi.xa._offset,xe=wi.x1+wi.xa._offset,ke=wi.y0+wi.ya._offset,vt=wi.y1+wi.ya._offset,ir=Math.min(Ie,xe),ar=Math.max(Ie,xe),vr=Math.min(ke,vt),ii=Math.max(ke,vt);tt.bbox={x0:ir+We,x1:ar+We,y0:vr+Je,y1:ii+Je}}wi.eventData=[tt],Ge.push(tt)}e._hoverdata=Ge;var pi=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&Be&&U.length>1,$r=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),di=Hle(U,{gd:e,hovermode:h,rotateLabels:pi,bgColor:$r,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),ji=di.hoverLabels;if(kg.isUnifiedHover(h)||(kut(ji,pi,s,di.commonLabelBoundingBox),Wle(ji,pi,s._invScaleX,s._invScaleY)),i&&i.tagName){var In=Q3.getComponentMethod("annotations","hasClickToShow")(e,Ge);yut(jb.select(i),In?"pointer":"")}!i||n||!Put(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:M,xvals:Z,yvals:j}))}function Gle(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 Eut=/([\s\S]*)<\/extra>/;function Hle(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||Wb.HOVERFONT,f=t.fontSize||Wb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Je&&(We=n.width-Je),It.attr("d","M"+(Vr-We)+",0L"+(Vr-We+Qc)+","+Ge+Qc+"H"+Je+"v"+Ge+(sl*2+Br.height)+"H"+-Je+"V"+Ge+Qc+"H"+(Vr-We-Qc)+"Z"),Vr=We,H.minX=Vr-Je,H.maxX=Vr+Je,E.side==="top"?(H.minY=dt-(sl*2+Br.height),H.maxY=dt-sl):(H.minY=dt+sl,H.maxY=dt+(sl*2+Br.height))}else{var tt,xt,Ie;T.side==="right"?(tt="start",xt=1,Ie="",Vr=E._offset+E._length):(tt="end",xt=-1,Ie="-",Vr=E._offset),dt=T._offset+(k.y0+k.y1)/2,mt.attr("text-anchor",tt),It.attr("d","M0,0L"+Ie+Qc+","+Qc+"V"+(sl+Br.height/2)+"h"+Ie+(sl*2+Br.width)+"V-"+(sl+Br.height/2)+"H"+Ie+Qc+"V-"+Qc+"Z"),H.minY=dt-(sl+Br.height/2),H.maxY=dt+(sl+Br.height/2),T.side==="right"?(H.minX=Vr+Qc,H.maxX=Vr+Qc+(sl*2+Br.width)):(H.minX=Vr-Qc-(sl*2+Br.width),H.maxX=Vr-Qc);var xe=Br.height/2,ke=P-Br.top-xe,vt="clip"+n._uid+"commonlabel"+T._id,ir;if(VrIt.hoverinfo!=="none");if(_t.length===0)return[];var re=n.hoverlabel,oe=re.font,_e=_t[0],Ce=((i==="x unified"?_e.xa:_e.ya).unifiedhovertitle||{}).text,Le=Ce?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:Ce}):C,ge={showlegend:!0,legend:{title:{text:Le,font:oe},font:oe,bgcolor:re.bgcolor,bordercolor:re.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},ie={font:oe};xut(ge,ie,r._fullData);var Se=ie.legend;Se.entries=[];for(var Ee=0;Ee<_t.length;Ee++){var Ae=_t[Ee];if(Ae.hoverinfo!=="none"){var Be=Ole(Ae,!0,i,n,C),Pe=Be[0],me=Be[1];Ae.name=me,me!==""?Ae.text=me+" : "+Pe:Ae.text=Pe;var De=Ae.cd[Ae.index];De&&(De.mc&&(Ae.mc=De.mc),De.mcc&&(Ae.mc=De.mcc),De.mlc&&(Ae.mlc=De.mlc),De.mlcc&&(Ae.mlc=De.mlcc),De.mlw&&(Ae.mlw=De.mlw),De.mrc&&(Ae.mrc=De.mrc),De.dir&&(Ae.dir=De.dir)),Ae._distinct=!0,Se.entries.push([Ae])}}Se.entries.sort(function(It,mt){return It[0].trace.index-mt[0].trace.index}),Se.layer=s,Se._inHover=!0,Se._groupTitleFont=re.grouptitlefont,but(r,Se);var ce=s.select("g.legend"),je=$3(r,ce.node()),lt=je.width+2*sl,pt=je.height+2*sl,Vt=_t[0],ot=(Vt.x0+Vt.x1)/2,ut=(Vt.y0+Vt.y1)/2,Wt=!(Q3.traceIs(Vt.trace,"bar-like")||Q3.traceIs(Vt.trace,"box-violin")),Nt,$t;L==="y"?Wt?($t=ut-sl,Nt=ut+sl):($t=Math.min.apply(null,_t.map(function(It){return Math.min(It.y0,It.y1)})),Nt=Math.max.apply(null,_t.map(function(It){return Math.max(It.y0,It.y1)}))):$t=Nt=zf.mean(_t.map(function(It){return(It.y0+It.y1)/2}))-pt/2;var sr,Tr;L==="x"?Wt?(sr=ot+sl,Tr=ot-sl):(sr=Math.max.apply(null,_t.map(function(It){return Math.max(It.x0,It.x1)})),Tr=Math.min.apply(null,_t.map(function(It){return Math.min(It.x0,It.x1)}))):sr=Tr=zf.mean(_t.map(function(It){return(It.x0+It.x1)/2}))-lt/2;var fr=E._offset,$e=T._offset;Nt+=$e,sr+=fr,Tr+=fr-lt,$t+=$e-pt;var St,Qt;return sr+lt=0?St=sr:Tr+lt=0?St=Tr:fr+lt=0?Qt=Nt:$t+pt=0?Qt=$t:$e+pt=0,(_t.idealAlign==="top"||!ii)&&pi?(Ie-=ke/2,_t.anchor="end"):ii?(Ie+=ke/2,_t.anchor="start"):_t.anchor="middle",_t.crossPos=Ie;else{if(_t.pos=Ie,ii=xt+xe/2+vr<=A,pi=xt-xe/2-vr>=0,(_t.idealAlign==="left"||!ii)&&pi)xt-=xe/2,_t.anchor="end";else if(ii)xt+=xe/2,_t.anchor="start";else{_t.anchor="middle";var $r=vr/2,di=xt+$r-A,ji=xt-$r;di>0&&(xt-=di),ji<0&&(xt+=-ji)}_t.crossPos=xt}dt.attr("text-anchor",_t.anchor),Je&&Ge.attr("text-anchor",_t.anchor),It.attr("transform",jB(xt,Ie)+(a?gut(Vle):""))}),{hoverLabels:Gt,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=Nle(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(Eut,(v,_)=>(o=Nle(_,e.nameLength),""))}return[s,o]}function kut(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,_=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 oe=0,_e=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ce=jle(Z,t),Le=Z.anchor,ge=Le==="end"?-1:1,ie,Se;if(Le==="middle")ie=Z.crossPos+(H?b(Ce.y-Z.by/2):_(Z.bx/2+Z.tx2width/2)),Se=ie+(H?b(Z.by):_(Z.bx));else if(H)ie=Z.crossPos+b(Qc+Ce.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Ee=_(ge*Qc+Ce.x),Ae=Ee+_(ge*Z.bx);ie=Z.crossPos+Math.min(Ee,Ae),Se=Z.crossPos+Math.max(Ee,Ae)}H?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=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"?(oe=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?wut:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,j){return Z[0].posref-j[0].posref||s*(j[0].traceIndex-Z[0].traceIndex)});var p,k,E,T,L,x,C;function M(Z){var j=Z[0],N=Z[Z.length-1];if(k=j.pmin-j.pos-j.dp+j.size,E=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(!(E<.01)){if(k<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;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-=E;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(E=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else T++}u.forEach(M)}for(T=u.length-1;T>=0;T--){var O=u[T];for(L=O.length-1;L>=0;L--){var U=O[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function jle(e,t){var r=0,n=e.offset;return t&&(n*=-Aut,r=e.offset*Tut),{x:r,y:n}}function Cut(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 Wle(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 l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Cut(o),h=jle(o,t),d=h.x,v=h.y,_=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;_?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,E=v+o.ty0-o.by/2+sl,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&u!=="start"?(l.attr("text-anchor","start"),k=_?-o.bx/2-o.tx2width/2+sl:-o.bx-sl):T==="right"&&u!=="end"&&(l.attr("text-anchor","end"),k=_?o.bx/2-o.tx2width/2-sl:o.bx+sl)),l.call(A0.positionText,i(k),a(E)),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 Lut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Py(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 _=s(d,v);o(_)&&(e[h]=_)}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 qle(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 _=c.spikesnap;_==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Dle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,k=c.spikethickness,E=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,M=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),M=Math.max(M,c.position)),L=a.l+C*a.w,x=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k,stroke:E,"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:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,A;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,A=o.pointerY):(P=u._offset+g.x,A=c._offset+g.y);var O=Dle.readability(g.color,f)<1.5?vd.contrast(f):g.color,U=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,j=Sm.getPxPosition(e,u),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=j,H=A),U.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*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)}U.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 Put(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 Ble(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Nle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Iut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,Zle=e=>e.offsetLeft+e.clientLeft;function $3(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 _M=ye((Ear,Yle)=>{"use strict";var Rut=Dr(),Dut=ka(),Fut=ip().isUnifiedHover;Yle.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&&Fut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Dut.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),Rut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Jle=ye((kar,Kle)=>{"use strict";var zut=Dr(),Out=_M(),qut=W1();Kle.exports=function(t,r){function n(i,a){return zut.coerce(t,r,qut,i,a)}Out(t,r,n)}});var eue=ye((Car,Qle)=>{"use strict";var $le=Dr(),But=v3(),Nut=_M();Qle.exports=function(t,r,n,i){function a(s,l){return $le.coerce(t,r,But,s,l)}var o=$le.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Nut(t,r,a,o)}});var YB=ye((Lar,tue)=>{"use strict";var Uut=Dr(),Vut=W1();tue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Uut.coerce(t,r,Vut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var nue=ye((Par,iue)=>{"use strict";var rue=Dr(),Gut=W1(),Hut=YB(),jut=_M();iue.exports=function(t,r){function n(c,f){return rue.coerce(t,r,Gut,c,f)}var i=Hut(t,r);i&&(n("hoverdistance"),n("spikedistance"));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"),jut(t,r,n),rue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var sue=ye((Iar,oue)=>{"use strict";var KB=Dr(),aue=qa();oue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return KB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var Xut=qa(),Zut=ZB().hover;lue.exports=function(t,r,n){var i=Xut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Zut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((Dar,hue)=>{"use strict";var Yut=Oa(),JL=Dr(),Kut=yv(),xM=ip(),cue=W1(),fue=ZB();hue.exports={moduleType:"component",name:"fx",constants:NS(),schema:{layout:cue},attributes:v3(),layoutAttributes:cue,supplyLayoutGlobalDefaults:Jle(),supplyDefaults:eue(),supplyLayoutDefaults:nue(),calc:sue(),getDistanceFunction:xM.getDistanceFunction,getClosest:xM.getClosest,inbox:xM.inbox,quadrature:xM.quadrature,appendArrayPointValue:xM.appendArrayPointValue,castHoverOption:$ut,castHoverinfo:Qut,hover:fue.hover,unhover:Kut.unhover,loneHover:fue.loneHover,loneUnhover:Jut,click:uue()};function Jut(e){var t=JL.isD3Selection(e)?e:Yut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function $ut(e,t,r){return JL.castOption(e,t,"hoverlabel."+r)}function Qut(e,t,r){function n(i){return JL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return JL.castOption(e,r,"hoverinfo",n)}});var Cg=ye(Iy=>{"use strict";Iy.selectMode=function(e){return e==="lasso"||e==="select"};Iy.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iy.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Iy.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iy.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Iy.selectingOrDrawing=function(e){return Iy.freeMode(e)||Iy.rectMode(e)}});var bM=ye((zar,due)=>{"use strict";due.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 $L=ye((Oar,vue)=>{"use strict";vue.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 eP=ye((qar,pue)=>{"use strict";var QL=32;pue.exports={CIRCLE_SIDES:QL,i000:0,i090:QL/4,i180:QL/2,i270:QL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var tP=ye((Bar,mue)=>{"use strict";var ect=Dr().strTranslate;function gue(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 tct(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 rct(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return gue(e,r[t])}}function ict(e){return ect(e.xaxis._offset,e.yaxis._offset)}mue.exports={p2r:gue,r2p:tct,axValue:rct,getTransform:ict}});var m_=ye(Ry=>{"use strict";var nct=nM(),xue=eP(),eT=xue.CIRCLE_SIDES,JB=xue.SQRT2,bue=tP(),yue=bue.p2r,_ue=bue.r2p,act=[0,3,4,5,6,1,2],oct=[0,3,4,1,2];Ry.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var wue=hf(),Eue=Cg(),sct=Eue.drawMode,lct=Eue.openMode,tT=eP(),Tue=tT.i000,Aue=tT.i090,Sue=tT.i180,Mue=tT.i270,uct=tT.cos45,cct=tT.sin45,kue=tP(),iP=kue.p2r,y_=kue.r2p,fct=o_(),hct=fct.clearOutline,nP=m_(),dct=nP.readPaths,vct=nP.writePaths,pct=nP.ellipseOver,gct=nP.fixDatesForPaths;function mct(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(!sct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var yct=Cg(),_ct=yct.selectMode,xct=o_(),bct=xct.clearOutline,$B=m_(),wct=$B.readPaths,Tct=$B.writePaths,Act=$B.fixDatesForPaths;Pue.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(!_ct(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Iue.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(Jd=>{"use strict";var Mm=TM(),Rue=Dr(),__=ho();Jd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Jd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Jd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Jd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Jd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Mm.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Mm.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=i[s].drawn!==void 0;return a+(l?1:0)},0)};Jd.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=Jd.shapePositionToRange(t);o=function(l){var u=Dy(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Jd.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};Jd.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=Jd.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};Jd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Jd.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}};Jd.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}};Jd.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,_,b,p;function k(P,A,z,O){var U;if(P)if(A==="domain")O?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Jd.shapePositionToRange(P);U=function(Z){return P._offset+P.r2p(G(Z,!0))},z==="path"&&P.type==="date"&&(U=Jd.decodeDate(U))}else O?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,A){return k(o[A],__.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,A){return k(s[A],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=k(s,i,r,!0)),r==="path")return Sct(t,h,d);if(n==="array")l=Dy(o[0],t.x0shift),u=Dy(o[1],t.x1shift),v=h[0](t.x0)+l,_=h[1](t.x1)+u;else if(l=Dy(o,t.x0shift),u=Dy(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);v=P+t.x0+l,_=P+t.x1+u}else v=h(t.x0)+l,_=h(t.x1)+u;if(i==="array")c=Dy(s[0],t.y0shift),f=Dy(s[1],t.y1shift),b=d[0](t.y0)+c,p=d[1](t.y1)+f;else if(c=Dy(s,t.y0shift),f=Dy(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"+_+","+p;if(r==="rect")return"M"+v+","+b+"H"+_+"V"+p+"H"+v+"Z";var E=(v+_)/2,T=(b+p)/2,L=Math.abs(E-v),x=Math.abs(T-b),C="A"+L+","+x,M=E+L+","+T,g=E+","+(T-x);return"M"+M+C+" 0 1,1 "+g+C+" 0 0,1 "+M+"Z"};function Sct(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(Mm.segmentRE,function(h){var d=0,v=h.charAt(0),_=Mm.paramIsX[v],b=Mm.paramIsY[v],p=Mm.numParams[v];let k=_.drawn!==void 0,E=b.drawn!==void 0,T=l?t[c]:t,L=u?r[f]:r;var x=h.slice(1).replace(Mm.paramRE,function(C){return _[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.*/,""),Rue.log("Ignoring extra params in segment "+h)),k&&c++,E&&f++,v+x})}function Dy(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 tN=ye((jar,zue)=>{"use strict";var Mct=Dr(),Em=ho(),Due=Zl(),Fue=So(),Ect=m_().readPaths,eN=x_(),kct=eN.getPathString,AM=D6(),Cct=Dh().FROM_TL;zue.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=Em.getFromId(t,n.xref),l=Em.getFromId(t,n.yref);let oe=Array.isArray(n.xref),_e=Array.isArray(n.yref);for(var u in AM){var c=typeof AM[u]=="function",f=!oe||AM.simpleXVariables.includes(u),h=!_e||AM.simpleYVariables.includes(u);if(c&&f&&h){var d=AM[u](n,s,l);d!==void 0&&(o[u]=d)}}}a=Mct.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},_=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),E,T,L,x;if(n.path){var C=kct(t,n),M=Ect(C,t);E=1/0,L=1/0,T=-1/0,x=-1/0;for(var g=0;g=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Pct(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,_=i.label.yanchor,b,p,k,E;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 Ict=Dr(),Rct=Ict.strTranslate,Oue=yv(),Nue=Cg(),Dct=Nue.drawMode,Uue=Nue.selectMode,Vue=qa(),que=ka(),sP=eP(),Fct=sP.i000,zct=sP.i090,Oct=sP.i180,qct=sP.i270,Bct=o_(),Gue=Bct.clearOutlineControllers,iN=m_(),oP=iN.pointsOnRectangle,rN=iN.pointsOnEllipse,Nct=iN.writePaths,Uct=aP().newShapes,Vct=aP().createShapeObj,Gct=QB(),Hct=tN();Hue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(rN(t[0])||n.hasText)&&s({redrawing:!0})}function s(j){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Uct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Gct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Vue.call((j||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Dct(c),h=Uue(c);(f||h)&&(a._fullLayout._outlining=!0),Gue(a),r.attr("d",Nct(t));var d,v,_,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=jct([],t);var k=u.append("g").attr("class","outline-controllers");P(k),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),T=Vct(r,n,n.dragmode);Hct(a,"label-temp",T,E)}function L(j){_=+j.srcElement.getAttribute("data-i"),b=+j.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(j,N){if(t.length){var H=p[_][b][1],re=p[_][b][2],oe=t[_],_e=oe.length;if(oP(oe)){var Ce=j,Le=N;if(n.isActiveSelection){var ge=Bue(oe,b);ge[1]===oe[b][1]?Le=0:Ce=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=H+Ce),Se[2]===oe[b][2]&&(Se[2]=re+Le)}if(oe[b][1]=H+Ce,oe[b][2]=re+Le,!oP(oe))for(var Ee=0;Ee<_e;Ee++)for(var Ae=0;Ae1&&!(j.length===2&&j[1][0]==="Z")&&(b===0&&(j[0][0]="M"),t[_]=j,o(),s())}}function g(j,N){if(j===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[_];!oP(H)&&!rN(H)&&M()}}function P(j){d=[];for(var N=0;N{"use strict";var Xct=Oa(),Yue=qa(),aN=Dr(),Xb=ho(),Zct=m_().readPaths,Yct=lP(),cP=tN(),Kue=o_().clearOutlineControllers,nN=ka(),fP=So(),Kct=vl().arrayEditor,jue=yv(),Wue=Eg(),Zb=TM(),Ep=x_(),oN=Ep.getPathString;Que.exports={draw:sN,drawOne:Jue,eraseActiveShape:eft,drawLabel:cP};function sN(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;iXb.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 $ct(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z=Xct.select(t.node().parentNode),O=Xb.getFromId(e,r.xref),U=Xb.getRefType(r.xref),G=Xb.getFromId(e,r.yref),Z=Xb.getRefType(r.yref),j=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,oe=function(ot,ut){var Wt=Ep.getDataToPixel(e,O,ut,!1,U);return Wt(ot)},_e=function(ot,ut){var Wt=Ep.getDataToPixel(e,G,ut,!0,Z);return Wt(ot)},Ce=Ep.getPixelToData(e,O,!1,U),Le=Ep.getPixelToData(e,G,!0,Z),ge=Ee(),ie={element:ge.node(),gd:e,prepFn:Pe,doneFn:me,clickFn:De},Se;jue.init(ie),ge.node().onmousemove=Be;function Ee(){return c?Ae():t}function Ae(){var ot=10,ut=Math.max(r.line.width,ot),Wt=i.append("g").attr("data-index",n).attr("drag-helper",!0);Wt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":ut,"stroke-opacity":"0"});var Nt={"fill-opacity":"0"},$t=Math.max(ut/2,ot);return Wt.append("circle").attr({"data-line-point":"start-point",cx:l?oe(r.xanchor)+r.x0:oe(r.x0,j),cy:u?_e(r.yanchor)-r.y0:_e(r.y0,H),r:$t}).style(Nt).classed("cursor-grab",!0),Wt.append("circle").attr({"data-line-point":"end-point",cx:l?oe(r.xanchor)+r.x1:oe(r.x1,N),cy:u?_e(r.yanchor)-r.y1:_e(r.y1,re),r:$t}).style(Nt).classed("cursor-grab",!0),Wt}function Be(ot){if(uP(e)){Se=null;return}if(c)ot.target.tagName==="path"?Se="move":Se=ot.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ut=ie.element.getBoundingClientRect(),Wt=ut.right-ut.left,Nt=ut.bottom-ut.top,$t=ot.clientX-ut.left,sr=ot.clientY-ut.top,Tr=!f&&Wt>o&&Nt>s&&!ot.shiftKey?jue.getCursor($t/Wt,1-sr/Nt):"move";Wue(t,Tr),Se=Tr.split("-")[0]}}function Pe(ot){uP(e)||(l&&(p=oe(r.xanchor)),u&&(k=_e(r.yanchor)),r.type==="path"?A=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),_=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),d<_?(L=d,g="x0",x=_,P="x1"):(L=_,g="x1",x=d,P="x0"),!u&&vb?(E=v,C="y0",T=b,M="y1"):(E=b,C="y1",T=v,M="y0"),Be(ot),lt(i,r),Vt(t,r,e),ie.moveFn=Se==="move"?ce:je,ie.altKey=ot.altKey)}function me(){uP(e)||(Wue(t),pt(i),$ue(t,e,r),Yue.call("_guiRelayout",e,a.getUpdateObj()))}function De(){uP(e)||pt(i)}function ce(ot,ut){if(r.type==="path"){var Wt=function(sr){return sr},Nt=Wt,$t=Wt;l?h("xanchor",r.xanchor=Ce(p+ot)):(Nt=function(Tr){return Ce(oe(Tr)+ot)},O&&O.type==="date"&&(Nt=Ep.encodeDate(Nt))),u?h("yanchor",r.yanchor=Le(k+ut)):($t=function(Tr){return Le(_e(Tr)+ut)},G&&G.type==="date"&&($t=Ep.encodeDate($t))),h("path",r.path=Xue(A,Nt,$t))}else l?h("xanchor",r.xanchor=Ce(p+ot)):(h("x0",r.x0=Ce(d+ot)),h("x1",r.x1=Ce(_+ot))),u?h("yanchor",r.yanchor=Le(k+ut)):(h("y0",r.y0=Le(v+ut)),h("y1",r.y1=Le(b+ut)));t.attr("d",oN(e,r)),lt(i,r),cP(e,n,r,z)}function je(ot,ut){if(f){var Wt=function(Lr){return Lr},Nt=Wt,$t=Wt;l?h("xanchor",r.xanchor=Ce(p+ot)):(Nt=function(ti){return Ce(oe(ti)+ot)},O&&O.type==="date"&&(Nt=Ep.encodeDate(Nt))),u?h("yanchor",r.yanchor=Le(k+ut)):($t=function(ti){return Le(_e(ti)+ut)},G&&G.type==="date"&&($t=Ep.encodeDate($t))),h("path",r.path=Xue(A,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+ot,Tr=u?v-ut:v+ut;h("x0",r.x0=l?sr:Ce(sr)),h("y0",r.y0=u?Tr:Le(Tr))}else if(Se==="resize-over-end-point"){var fr=_+ot,$e=u?b-ut:b+ut;h("x1",r.x1=l?fr:Ce(fr)),h("y1",r.y1=u?$e:Le($e))}}else{var St=function(Lr){return Se.indexOf(Lr)!==-1},Qt=St("n"),Gt=St("s"),_t=St("w"),It=St("e"),mt=Qt?E+ut:E,er=Gt?T+ut:T,lr=_t?L+ot:L,wr=It?x+ot:x;u&&(Qt&&(mt=E-ut),Gt&&(er=T-ut)),(!u&&er-mt>s||u&&mt-er>s)&&(h(C,r[C]=u?mt:Le(mt)),h(M,r[M]=u?er:Le(er))),wr-lr>o&&(h(g,r[g]=l?lr:Ce(lr)),h(P,r[P]=l?wr:Ce(wr)))}t.attr("d",oN(e,r)),lt(i,r),cP(e,n,r,z)}function lt(ot,ut){(l||u)&&Wt();function Wt(){var Nt=ut.type!=="path",$t=ot.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var Tr=oe(l?ut.xanchor:aN.midRange(Nt?[ut.x0,ut.x1]:Ep.extractPathCoords(ut.path,Zb.paramIsX))),fr=_e(u?ut.yanchor:aN.midRange(Nt?[ut.y0,ut.y1]:Ep.extractPathCoords(ut.path,Zb.paramIsY)));if(Tr=Ep.roundPositionForSharpStrokeRendering(Tr,sr),fr=Ep.roundPositionForSharpStrokeRendering(fr,sr),l&&u){var $e="M"+(Tr-1-sr)+","+(fr-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",$e)}else if(l){var St="M"+(Tr-1-sr)+","+(fr-9-sr)+"v18 h2 v-18 Z";$t.attr("d",St)}else{var Qt="M"+(Tr-9-sr)+","+(fr-1-sr)+"h18 v2 h-18 Z";$t.attr("d",Qt)}}}function pt(ot){ot.selectAll(".visual-cue").remove()}function Vt(ot,ut,Wt){var Nt=ut.xref,$t=ut.yref,sr=Xb.getFromId(Wt,Nt),Tr=Xb.getFromId(Wt,$t),fr="";Nt!=="paper"&&!sr.autorange&&(fr+=Nt),$t!=="paper"&&!Tr.autorange&&(fr+=$t),fP.setClipUrl(ot,fr?"clip"+Wt._fullLayout._uid+fr:null,Wt)}}function Xue(e,t,r){return e.replace(Zb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Zb.paramIsX[a],s=Zb.paramIsY[a],l=Zb.numParams[a],u=n.slice(1).replace(Zb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function Qct(e,t){if(hP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Zue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Zue,sN(e)}}}function Zue(e){if(hP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Kue(e),delete e._fullLayout._activeShapeIndex,sN(e))}}function eft(e){if(hP(e)){Kue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),ece=Mc(),tce=hf(),Pl=$L(),tft=dP().eraseActiveShape,vP=Dr(),tl=vP._,Il=lce.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"};vP.notifier(tl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){vP.notifier(tl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){vP.notifier(tl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){ece.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){ece.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:tft};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=tce.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,_;for(c=0;c{"use strict";var uce=cN(),nft=Object.keys(uce),cce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],fce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(cce),iT=[],aft=function(e){if(fce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();iT.indexOf(t)===-1&&iT.push(t),iT.indexOf(r)===-1&&iT.push(r)}};nft.forEach(function(e){aft(uce[e])});iT.sort();hce.exports={DRAW_MODES:cce,backButtons:fce,foreButtons:iT}});var hN=ye((Jar,dce)=>{"use strict";var Kar=fN();dce.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 pce=ye(($ar,vce)=>{"use strict";var oft=Dr(),SM=ka(),sft=vl(),lft=hN();vce.exports=function(t,r){var n=t.modebar||{},i=sft.newContainer(r,"modebar");function a(s,l){return oft.coerce(n,i,lft,s,l)}a("orientation"),a("bgcolor",SM.addOpacity(r.paper_bgcolor,.5));var o=SM.contrast(SM.rgb(r.modebar.bgcolor));a("color",SM.addOpacity(o,.3)),a("activecolor",SM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var _ce=ye((Qar,yce)=>{"use strict";var dN=Oa(),uft=Eo(),gP=Dr(),gce=$L(),cft=g6().version,fft=new DOMParser;function mce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var km=mce.prototype;km.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(),gP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};km.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)})};km.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};km.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&&dN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||gce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};km.createIcon=function(e){var t=uft(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=fft.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};km.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=dN.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:gP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};km.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var vft=hf(),xce=Ru(),vN=qa(),pft=ip().isUnifiedHover,gft=_ce(),mP=cN(),mft=fN().DRAW_MODES,yft=Dr().extendDeep;bce.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=Aft(a):!n.displayModeBar&&n.watermark?o=[]:o=_ft(t),i?i.update(t,o):r._modeBar=gft(t,o)};function _ft(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,oe=H._cat||H.name;if(re===N||oe===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"],A=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):c?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(wft(r)||L)&&(P=[]),u&&!T&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||v?z=["zoom2d","pan2d"]:_||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),bft(r)&&z.push("select2d","lasso2d");var O=[],U=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";Tce.exports={moduleType:"component",name:"modebar",layoutAttributes:hN(),supplyLayoutDefaults:pce(),manage:wce()}});var gN=ye((ror,Ace)=>{"use strict";var Sft=Dh().FROM_BL;Ace.exports=function(t,r,n){n===void 0&&(n=Sft[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 Kb=ye(MM=>{"use strict";var Yb=Dr(),mN=Mg(),Lg=hf().id2name,Mft=Rd(),Sce=gN(),Eft=xm(),kft=fs().ALMOST_EQUAL,Cft=Dh().FROM_BL;MM.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 Pft(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;okft*v&&!k)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*A);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var _P=Oa(),Nv=qa(),Jp=Mc(),M0=Dr(),xN=Zl(),bN=bM(),EM=ka(),nT=So(),Cce=zb(),Dce=pN(),kM=ho(),Fy=Dh(),Fce=Kb(),Ift=Fce.enforce,Rft=Fce.clean,Lce=Mg().doAutoRange,zce="start",Dft="middle",Oce="end",Fft=Rh().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Oft],e)};function zft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Oft(e){var t=e._fullLayout,r=t._size,n=r.p,i=kM.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(nT.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Dce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,me,De){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(me){if(De==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(De==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return me._offset-n-ce}for(a=0;a0){Uft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Rce(t.yanchor)}).call(xN.positionText,o,a);var c=(t.text.match(xN.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=_P.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,_=v+Cce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Rce(t.yanchor)}).call(xN.positionText,o,_)}}}};function qft(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=Bft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Uft(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"&&qft(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 Vft(e,t){var r=e.title,n=e._size,i=0;switch(t===zce?i=r.pad.l:t===Oce&&(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 Gft(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 Rce(e){return e==="top"?Fy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fy.MID_SHIFT+"em"}function Hft(e){var t=e.title,r=Dft;return M0.isRightAnchor(t)?r=Oce:M0.isLeftAnchor(t)&&(r=zce),r}function jft(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 Wft=m_().readPaths,Xft=lP(),qce=o_().clearOutlineControllers,wN=ka(),Bce=So(),Zft=vl().arrayEditor,Nce=x_(),Yft=Nce.getPathString;Vce.exports={draw:xP,drawOne:Uce,activateLastSelection:$ft};function xP(e){var t=e._fullLayout;qce(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(wN.stroke,f).call(wN.fill,c).call(Bce.dashLine,b?"solid":d,b?4+h:h);if(Kft(p,e,n),v){var k=Zft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Wft(s,e);Xft(T,p,E)}else p.style("pointer-events",b?"all":"none");_[b]=p}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return Jft(e,L)})}}function Kft(e,t,r){var n=r.xref+r.yref;Bce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Jft(e,t){if(bP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){TN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=TN,xP(e)}}}function $ft(e){if(bP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=TN,xP(e)}}function TN(e){if(bP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(qce(e),delete e._fullLayout._activeSelectionIndex,xP(e))}}});var Hce=ye((oor,Gce)=>{function Qft(){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}Gce.exports=Qft});var Wce=ye((sor,jce)=>{function eht(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=eht});var Zce=ye((lor,Xce)=>{var tht={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}};Xce.exports=tht});var Kce=ye((uor,Yce)=>{var LM=Zce();function rht(e,t,r){function n(v,_){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:null,below:null},otherFill:null}}function i(v,_,b){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=LM.create();function o(v,_,b,p,k,E){var T=t.pointsCompare(_,k);return T!==0?T:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?k:E,p?E:k)?1:-1}function s(v,_){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,_,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,_){var b=LM.node({isStart:!0,pt:v.start,seg:v,primary:_,other:null,status:null});return s(b,v.end),b}function u(v,_,b){var p=LM.node({isStart:!1,pt:_.end,seg:_,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,_){var b=l(v,_);return u(b,v,_),b}function f(v,_){r&&r.segmentChop(v.seg,_),v.other.remove(),v.seg.end=_,v.other.pt=_,s(v.other,v.pt)}function h(v,_){var b=i(_,v.seg.end,v.seg);return f(v,_),c(b,v.primary)}function d(v,_){var b=LM.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 E(G,Z){var j=G.seg,N=Z.seg,H=j.start,re=j.end,oe=N.start,_e=N.end;r&&r.checkIntersection(j,N);var Ce=t.linesIntersect(H,re,oe,_e);if(Ce===!1){if(!t.pointsCollinear(H,re,oe)||t.pointsSame(H,_e)||t.pointsSame(re,oe))return!1;var Le=t.pointsSame(H,oe),ge=t.pointsSame(re,_e);if(Le&&ge)return Z;var ie=!Le&&t.pointBetween(H,oe,_e),Se=!ge&&t.pointBetween(re,oe,_e);if(Le)return Se?h(Z,re):h(G,_e),Z;ie&&(ge||(Se?h(Z,re):h(G,_e)),h(Z,H))}else Ce.alongA===0&&(Ce.alongB===-1?h(G,oe):Ce.alongB===0?h(G,Ce.pt):Ce.alongB===1&&h(G,_e)),Ce.alongB===0&&(Ce.alongA===-1?h(Z,H):Ce.alongA===0?h(Z,Ce.pt):Ce.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=E(L,C);if(Z)return Z}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,M?M.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,M?L.seg.myFill.below=M.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 A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?_:v,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,M?M.seg:!1),L.other.status=x.insert(LM.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)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(v){for(var _,b=v[v.length-1],p=0;p{function iht(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(U,G,Z){return c.index=U,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function PM(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 nht={union:function(e,t){return PM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return PM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return PM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return PM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return PM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Qce.exports=nht});var rfe=ye((dor,tfe)=>{var aht={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 oht=Hce(),sht=Wce(),ife=Kce(),lht=$ce(),IM=efe(),nfe=rfe(),E0=!1,RM=sht(),kp;kp={buildLog:function(e){return e===!0?E0=oht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return RM.epsilon(e)},segments:function(e){var t=ife(!0,RM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=ife(!1,RM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:IM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:IM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:IM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:IM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:IM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:lht(e.segments,RM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return nfe.toPolygon(kp,e)},polygonToGeoJSON:function(e){return nfe.fromPolygon(kp,RM,e)},union:function(e,t){return DM(e,t,kp.selectUnion)},intersect:function(e,t){return DM(e,t,kp.selectIntersect)},difference:function(e,t){return DM(e,t,kp.selectDifference)},differenceRev:function(e,t){return DM(e,t,kp.selectDifferenceRev)},xor:function(e,t){return DM(e,t,kp.selectXor)}};function DM(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);afe.exports=kp});var lfe=ye((por,sfe)=>{sfe.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;_&&(s=!s)}return s}});var FM=ye((gor,ufe)=>{"use strict";var SN=P6().dot,wP=fs().BADNUM,TP=ufe.exports={};TP.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===wP||po||_&&u(v))}function f(v,_){var b=v[0],p=v[1];if(b===wP||bi||p===wP||po)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,x,C,M,g,P;for(x=1;xMath.max(C,E)||p>Math.max(M,T)))if(ps||Math.abs(SN(f,u))>i)return!0;return!1};TP.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 ffe=ye((mor,cfe)=>{"use strict";cfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Rfe=ye((yor,Ife)=>{"use strict";var hfe=ofe(),uht=lfe(),qM=qa(),cht=So().dashStyle,zM=ka(),fht=vf(),hht=ip().makeEventData,GM=Cg(),dht=GM.freeMode,vht=GM.rectMode,BM=GM.drawMode,CN=GM.openMode,LN=GM.selectMode,dfe=x_(),vfe=TM(),_fe=lP(),xfe=o_().clearOutline,bfe=m_(),MN=bfe.handleEllipse,pht=bfe.readPaths,ght=aP().newShapes,mht=QB(),yht=AN().activateLastSelection,SP=Dr(),_ht=SP.sorterAsc,wfe=FM(),OM=H6(),k0=hf().getFromId,xht=bM(),bht=CM().redrawReglTraces,MP=ffe(),Cm=MP.MINSELECT,wht=wfe.filter,PN=wfe.tester,IN=tP(),pfe=IN.p2r,Tht=IN.axValue,Aht=IN.getTransform;function RN(e){return e.subplot!==void 0}function Sht(e,t,r,n,i){var a=!RN(n),o=dht(i),s=vht(i),l=CN(i),u=BM(i),c=LN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,_=v._fullLayout,b=c&&_.newselection.mode==="immediate"&&a,p=_._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=Aht(E),L=t-k.left,x=r-k.top;_._calcInverseTransform(v);var C=SP.apply3DTransform(_._invTransform)(L,x);L=C[0],x=C[1];var M=_._invScaleX,g=_._invScaleY,P=L,A=x,z="M"+L+","+x,O=n.xaxes[0],U=n.yaxes[0],G=O._length,Z=U._length,j=e.altKey&&!(BM(i)&&l),N,H,re,oe,_e,Ce,Le;Afe(e,v,n),o&&(N=wht([[L,x]],MP.BENDPX));var ge=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?_.newshape:_.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Ee=ie.line.color||(a?zM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":cht(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(zM.stroke,Ee).call(zM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",T).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:zM.background,stroke:zM.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 Pe=_._uid+MP.SELECTID,me=[],De=EP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=O._id,lt=U._id;Cfe(v,je,lt,De);for(var pt=(v.layout||{}).selections||[],Vt=[],ot=!1,ut=0;ut=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=_.clickmode;OM.done(Pe).then(function(){if(OM.clear(Pe),je===2){for(ge.remove(),_e=0;_e-1&&Tfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ge),pt==="event"&&VM(v,void 0);fht.click(v,lt,E.id)}).catch(SP.error)}},n.doneFn=function(){Ae.remove(),OM.done(Pe).then(function(){OM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=j,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&NM(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),c&&VM(v,Le)}).catch(SP.error)}}function Tfe(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,_,b,p,k,E,T,L;if(Lht(s)){Afe(e,t,a),h=EP(t,r,n,i);var x=Pht(s,h),C=x.pointNumbers.length>0;if(C?Iht(h,x):Rht(h)&&(k=mfe(x))){for(o&&o.remove(),L=0;L=0}function Cht(e){return e._fullLayout._activeSelectionIndex>=0}function NM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;kht(i)&&i._fullLayout._deactivateShape(i),Cht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=BM(r),l=LN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=ght(u,e)),c&&qM.call("_guiRelayout",i,{shapes:c});var f;l&&!RN(e)&&(f=mht(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,qM.call("_guiRelayout",i,{selections:f}).then(function(){t&&yht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function gfe(e){return e._id}function EP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(gfe),o=r.map(gfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Iht(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 UM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var je=yfe(e,!0);if(je.length){var lt=je[0].xref,pt=je[0].yref;if(lt&&pt){var Vt=Lfe(je),ot=Pfe([k0(e,lt,"x"),k0(e,pt,"y")]);ot(me,Vt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&VM(e,me),h._reselect=!1}if(!o&&h._deselect){var ut=h._deselect;s=ut.xref,l=ut.yref,zht(s,l,c)||Cfe(e,s,l,n),ce&&(me.points.length?VM(e,me):zN(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Fht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Dfe.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 HM=ye((xor,Ffe)=>{"use strict";Ffe.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 Jb=ye((wor,qfe)=>{"use strict";var zfe=ON(),Ofe=ec(),kP=Rh(),Uht=vl().templatedArray,bor=HM();qfe.exports=Uht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ofe({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:zfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:zfe.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",kP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",kP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",kP.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",kP.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:Ofe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Lm=ye((Tor,Bfe)=>{"use strict";Bfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pg=ye((Aor,Nfe)=>{"use strict";Nfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((Sor,Zfe)=>{"use strict";var Ufe=df().axisHoverFormat,{hovertemplateAttrs:Vht,texttemplateAttrs:Ght,templatefallbackAttrs:Vfe}=Ll(),Gfe=Tu(),Hht=ec(),Hfe=Pd().dash,jht=Pd().pattern,Wht=So(),Xht=Lm(),jM=Ao().extendFlat,Zht=Pg();function jfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Wfe(e){return{valType:"any",editType:"calc"}}function Xfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Zfe.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:Wfe("x0"),yperiod0:Wfe("y0"),xperiodalignment:Xfe("x"),yperiodalignment:Xfe("y"),xhoverformat:Ufe("x"),yhoverformat:Ufe("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:Ght(),texttemplatefallback:Vfe({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:Vht({},{keys:Xht.eventDataKeys}),hovertemplatefallback:Vfe(),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:jM({},Hfe,{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:Zht(!0),fillgradient:jM({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:jht,marker:jM({symbol:{valType:"enumerated",values:Wht.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:jM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:jM({},Hfe,{arrayOk:!0}),editType:"calc"},Gfe("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"},Gfe("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:Hht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var qN=ye((Eor,Jfe)=>{"use strict";var Yfe=Jb(),Kfe=pf().line,Yht=Pd().dash,CP=Ao().extendFlat,Kht=mc().overrideAll,Jht=vl().templatedArray,Mor=HM();Jfe.exports=Kht(Jht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:CP({},Yfe.xref,{}),yref:CP({},Yfe.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:Kfe.color,width:CP({},Kfe.width,{min:1,dflt:1}),dash:CP({},Yht,{dflt:"dot"})}}),"arraydraw","from-root")});var the=ye((kor,ehe)=>{"use strict";var $fe=Dr(),LP=ho(),$ht=Zd(),Qht=qN(),Qfe=x_();ehe.exports=function(t,r){$ht(t,r,{name:"selections",handleItemDefaults:edt});for(var n=r.selections,i=0;i{"use strict";rhe.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 WM=ye((Lor,ohe)=>{"use strict";var tdt=qa(),nhe=Dr(),ahe=hf();ohe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=tdt.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 she=AN(),XM=Rfe();lhe.exports={moduleType:"component",name:"selections",layoutAttributes:qN(),supplyLayoutDefaults:the(),supplyDrawNewSelectionDefaults:ihe(),includeBasePlot:WM()("selections"),draw:she.draw,drawOne:she.drawOne,reselect:XM.reselect,prepSelect:XM.prepSelect,clearOutline:XM.clearOutline,clearSelectionsCache:XM.clearSelectionsCache,selectOnClick:XM.selectOnClick}});var jN=ye((Ior,khe)=>{"use strict";var GN=Oa(),C0=Dr(),uhe=C0.numberFormat,rdt=fd(),idt=UL(),PP=qa(),yhe=C0.strTranslate,ndt=Zl(),che=ka(),w_=So(),adt=vf(),fhe=ho(),odt=Eg(),sdt=yv(),_he=Cg(),IP=_he.selectingOrDrawing,ldt=_he.freeMode,udt=Dh().FROM_TL,cdt=bM(),fdt=CM().redrawReglTraces,hdt=Mc(),NN=hf().getFromId,ddt=Of().prepSelect,vdt=Of().clearOutline,pdt=Of().selectOnClick,BN=gN(),HN=Rh(),hhe=HN.MINDRAG,ap=HN.MINZOOM,dhe=!0;function gdt(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z,O,U,G,Z,j;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=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 It=t.overlays,mt=0;mt=0){er._fullLayout._deactivateShape(er);return}var lr=er._fullLayout.clickmode;if(VN(er),It===2&&!c&&fr(),u)lr.indexOf("select")>-1&&pdt(mt,er,_,b,t.id,oe),lr.indexOf("event")>-1&&adt.click(er,mt,t.id);else if(It===1&&c){var wr=o?h:f,Lr=o==="s"||s==="w"?0:1,ti=wr._name+".range["+Lr+"]",Br=mdt(wr,Lr),Vr="left",dt="middle";if(wr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",wr.side==="right"&&(Vr="right")):s==="e"&&(Vr="right"),er._context.showAxisRangeEntryBoxes&&GN.select(re).call(ndt.makeEditable,{gd:er,immediate:!0,background:er._fullLayout.paper_bgcolor,text:String(Br),fill:wr.tickfont?wr.tickfont.color:"#444",horizontalAlign:Vr,verticalAlign:dt}).on("edit",function(Ge){var Je=wr.d2r(Ge);Je!==void 0&&PP.call("_guiRelayout",er,ti,Je)})}}sdt.init(oe);var Le,ge,ie,Se,Ee,Ae,Be,Pe,me,De;function ce(It,mt,er){var lr=re.getBoundingClientRect();Le=mt-lr.left,ge=er-lr.top,e._fullLayout._calcInverseTransform(e);var wr=C0.apply3DTransform(e._fullLayout._invTransform)(Le,ge);Le=wr[0],ge=wr[1],ie={l:Le,r:Le,w:0,t:ge,b:ge,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:rdt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Ae=!1,Be="xy",De=!1,Pe=whe(l,Se,p,k,Ee),me=The(l,p,k)}function je(It,mt){if(e._transitioningWithDuration)return!1;var er=Math.max(0,Math.min(E,Z*It+Le)),lr=Math.max(0,Math.min(T,j*mt+ge)),wr=Math.abs(er-Le),Lr=Math.abs(lr-ge);ie.l=Math.min(Le,er),ie.r=Math.max(Le,er),ie.t=Math.min(ge,lr),ie.b=Math.max(ge,lr);function ti(){Be="",ie.r=ie.l,ie.t=ie.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)wr>ap||Lr>ap?(Be="xy",wr/E>Lr/T?(Lr=wr*T/E,ge>lr?ie.t=ge-Lr:ie.b=ge+Lr):(wr=Lr*E/T,Le>er?ie.l=Le-wr:ie.r=Le+wr),me.attr("d",RP(ie))):ti();else if(x.isSubplotConstrained)if(wr>ap||Lr>ap){Be="xy";var Br=Math.min(ie.l/E,(T-ie.b)/T),Vr=Math.max(ie.r/E,(T-ie.t)/T);ie.l=Br*E,ie.r=Vr*E,ie.b=(1-Br)*T,ie.t=(1-Vr)*T,me.attr("d",RP(ie))}else ti();else!M||Lr0){var Ge;if(x.isSubplotConstrained||!C&&M.length===1){for(Ge=0;Ge<_.length;Ge++)_[Ge].range=_[Ge]._r.slice(),BN(_[Ge],1-mt/T);It=mt*E/T,Vr=It/2}if(x.isSubplotConstrained||!M&&C.length===1){for(Ge=0;Ge1&&(ti.maxallowed!==void 0&&P===(ti.range[0]1&&(Br.maxallowed!==void 0&&A===(Br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function _dt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function whe(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",yhe(r,n)).attr("d",i+"Z")}function The(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:che.background,stroke:che.defaultLine,"stroke-width":1,opacity:0}).attr("transform",yhe(t,r)).attr("d","M0,0Z")}function Ahe(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"),She(e,t,i,a)}function She(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 VN(e){GN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Mhe(e){dhe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),dhe=!1)}function xdt(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 bdt(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 RP(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 ghe(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 wdt=Oa(),DP=vf(),Tdt=yv(),Adt=Eg(),Ig=jN().makeDragBox,gd=Rh().DRAGGERSIZE;FP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){wdt.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]&&DP.hover(t,h,a)},DP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Tdt.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,DP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,DP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},FP.updateFx(t)}};FP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Adt(t._draggers,r)}});var Phe=ye((Dor,Lhe)=>{"use strict";var Che=qa();Lhe.exports=function(t){for(var r=Che.layoutArrayContainers,n=Che.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Sdt=Ty(),XN=L6(),ZM=K1(),Mdt=U6().sorterAsc,ZN=qa();YM.containerArrayMatch=Phe();var Edt=YM.isAddVal=function(t){return t==="add"||Sdt(t)},Ihe=YM.isRemoveVal=function(t){return t===null||t==="remove"};YM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=ZN.getComponentMethod(o,"supplyLayoutDefaults"),l=ZN.getComponentMethod(o,"draw"),u=ZN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===XN||l===XN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&ZM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Ihe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return ZM.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(Mdt),_=r.get(),b=_||[],p=a(h,o).get(),k=[],E=-1,T=b.length,L,x,C,M,g,P,A,z;for(L=0;Lb.length-(A?0:1)){ZM.warn("index out of range",o,C);continue}if(P!==void 0)g.length>1&&ZM.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Ihe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):ZM.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(x=0;x=0;L--)b.splice(k[L],1),p&&p.splice(k[L],1);if(b.length?_||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==XN){var O;if(E===-1)O=v;else{for(T=Math.max(b.length,T),O=[],L=0;L=E));L++)O.push(C);for(L=E;L{"use strict";var Ohe=Eo(),qhe=qa(),Uv=Dr(),KM=Mc(),Bhe=hf(),Nhe=ka(),JM=Bhe.cleanId,kdt=Bhe.getFromTrace,YN=qhe.traceIs,Cdt=["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=(KM.subplotsRegistry.cartesian||{}).attrRegex,i=(KM.subplotsRegistry.polar||{}).attrRegex,a=(KM.subplotsRegistry.ternary||{}).attrRegex,o=(KM.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"),Nhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function aT(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=JM(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=zhe(t);r;){if(r in e)return!0;r=zhe(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)?KN(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=KN});var ZP=ye(_l=>{"use strict";var BP=Oa(),Idt=Eo(),Rdt=lq(),Sa=Dr(),Ec=Sa.nestedProperty,QN=k3(),op=Sne(),P0=qa(),WP=P3(),Qo=Mc(),Vv=ho(),Ddt=AB(),Fdt=Rd(),JN=So(),zdt=ka(),Odt=WN().initInteractions,qdt=Wp(),Bdt=Of().clearOutline,Whe=_b().dfltConfig,OP=Rhe(),gh=Uhe(),Au=CM(),T_=mc(),Ndt=Rh().AX_NAME_PATTERN,$N=0,Vhe=5;function Udt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),QN.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=QN.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)}Zhe(e,n),r||(r={}),BP.select(e).classed("js-plotly-plot",!0),JN.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)&&(cvt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),JN.initGradients(e),JN.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 Yhe(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]),UP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&UP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Wdt(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 M.parts[A]!="string";)A--;var z=M.parts[A],O=M.parts[A-1]+"."+z,U=M.parts.slice(0,A).join("."),G=Ec(e.layout,U).get(),Z=Ec(n,U).get(),j=M.get();if(g!==void 0){p[C]=g,k[C]=z==="reverse"?g:zy(j);var N=WP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var H in N.impliedEdits)E(Sa.relativeAttr(C,H),N.impliedEdits[H]);if(["width","height"].indexOf(C)!==-1)if(g){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(nde))x(O),Ec(n,U+"._inputRange").set(null);else if(O.match(ade)){x(O),Ec(n,U+"._inputRange").set(null);var oe=Ec(n,U).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(Kdt)&&Ec(n,U+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Ce=Z.type==="log"&&g==="linear";if(_e||Ce){if(!L||!L.range)E(U+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Le=L.range[0],ge=L.range[1];_e?(Le<=0&&ge<=0&&E(U+".autorange",!0),Le<=0?Le=ge/1e6:ge<=0&&(ge=Le/1e6),E(U+".range[0]",Math.log(Le)/Math.LN10),E(U+".range[1]",Math.log(ge)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Le)),E(U+".range[1]",Math.pow(10,ge)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),P0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(U+".autorange",!0),E(U+".range",null);Ec(n,U+"._inputRange").set(null)}else if(z.match(Ndt)){var ie=Ec(n,C).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),P0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Ee=OP.containerArrayMatch(C);if(Ee){c=Ee.array,f=Ee.index;var Ae=Ee.property,Be=N||{editType:"calc"};f!==""&&Ae===""&&(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 Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[C]}else z==="reverse"?(G.range?G.range.reverse():(E(U+".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,M.set(g))}}for(c in u){var me=OP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);me||(b.plot=!0)}for(var De in T){L=Vv.getFromId(e,De);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)T[je]||(Vv.getFromId(e,je)._constraintShrinkable=!0)}}(sde(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 Qdt(e,t){for(var r=0;r[U,e._ev.listeners(U)]);a=_l.newPlot(e,t,r,n).then(()=>{for(let[U,G]of O)G.forEach(Z=>e.on(U,Z));return _l.react(e,t,r,n)})}else{e.data=t||[],gh.cleanData(e.data),e.layout=r||{},gh.cleanLayout(e.layout),tvt(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,_=nvt(e,l,h,d,v),b=_.newDataRevision,p=ivt(e,s,f,d,v,b);if(sde(e)&&(_.layoutReplot=!0),p.calc||_.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),E=0;E(c||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 l,u;function c(d){var v=WP.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 O=0;On._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,E,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)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),u())})}function ovt(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,_=l[d]||f[d];d&&v&&typeof v=="number"&&_&&$NM.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 lvt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),QN.purge(e),t._container&&t._container.remove(),delete e._context,e}function uvt(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 cvt(e){var t=BP.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={};BP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(qdt.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=avt;_l.addFrames=ovt;_l.deleteFrames=svt;_l.addTraces=ede;_l.deleteTraces=tde;_l.extendTraces=$he;_l.moveTraces=eU;_l.prependTraces=Qhe;_l.newPlot=jdt;_l._doPlot=Udt;_l.purge=lvt;_l.react=rvt;_l.redraw=Hdt;_l.relayout=$M;_l.restyle=VP;_l.setPlotConfig=Vdt;_l.update=HP;_l._guiRelayout=tU($M);_l._guiRestyle=tU(VP);_l._guiUpdate=tU(HP);_l._storeDirectGUIEdit=Ydt});var Oy=ye(Pm=>{"use strict";var fvt=qa();Pm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Pm.getRedrawFunc=function(e){return function(){fvt.getComponentMethod("colorbar","draw")(e)}};Pm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Pm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var lde=window.URL||window.webkitURL;Pm.createObjectURL=function(e){return lde.createObjectURL(e)};Pm.revokeObjectURL=function(e){return lde.revokeObjectURL(e)};Pm.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})};Pm.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 iU=Oa(),Bor=Dr(),dvt=So(),vvt=ka(),Nor=Wp(),rU=/"/g,e4="TOBESTRIPPED",pvt=new RegExp('("'+e4+")|("+e4+'")',"g");function gvt(e){var t=iU.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 mvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ude.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(dvt.setRect,0,0,s,l).call(vvt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var yvt=Dr(),_vt=Ab().EventEmitter,t4=Oy();function xvt(e){var t=e.emitter||new _vt,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}),_=new a,b,p;s==="svg"||yvt.isSafari()?p=t4.encodeSVG(o):(b=t4.createBlob(o,"svg"),p=t4.createObjectURL(b)),l.width=h,l.height=d,_.onload=function(){var k;switch(b=null,t4.revokeObjectURL(p),s!=="svg"&&v.drawImage(_,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 E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},_.onerror=function(k){if(b=null,t4.revokeObjectURL(p),i(k),!e.promise)return t.emit("error",k)},_.src=p});return e.promise?r:t}cde.exports=xvt});var aU=ye((Gor,dde)=>{"use strict";var fde=Eo(),hde=ZP(),bvt=Mc(),Im=Dr(),r4=Oy(),wvt=YP(),Tvt=KP(),Avt=g6().version,nU={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 Svt(e,t){t=t||{};var r,n,i,a;Im.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Im.getGraphDiv(e),r=Im.extendDeep([],e.data),n=Im.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Im.validate(t[x],nU[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 "+Im.join2(nU.format.values,", "," or ")+".");var s={};function l(x,C){return Im.coerce(t,s,nU,x,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=Im.extendFlat({},n);c?b.width=c:t.width===null&&fde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&fde(a.height)&&(b.height=a.height);var p=Im.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=r4.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,r4.getDelay(_._fullLayout))})}function T(){return new Promise(function(x,C){var M=wvt(_,u,h),g=_._fullLayout.width,P=_._fullLayout.height;function A(){hde.purge(_),document.body.removeChild(_)}if(u==="full-json"){var z=bvt.graphJson(_,!1,"keepdata","object",!0,!0);return z.version=Avt,z=JSON.stringify(z),A(),x(v?z:r4.encodeJSON(z))}if(A(),u==="svg")return x(v?M:r4.encodeSVG(M));var O=document.createElement("canvas");O.id=Im.randstr(),Tvt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(x).catch(C)})}function L(x){return v?x.replace(r4.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){hde.newPlot(_,r,b,p).then(k).then(E).then(T).then(function(M){x(L(M))}).catch(function(M){C(M)})})}dde.exports=Svt});var gde=ye((Hor,pde)=>{"use strict";var I0=Dr(),Mvt=Mc(),Evt=P3(),kvt=_b().dfltConfig,Rg=I0.isPlainObject,Qb=Array.isArray,oU=I0.isArrayOrTypedArray;pde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Evt.get(),i=[],a={_context:I0.extendFlat({},kvt)},o,s;Qb(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"))),Mvt.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 E,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 M=f[T].length;for(E=0;E<(k?Math.min(M,b[T].length):M);E++)L=k?b[T][E]:b,x=c[T][E],C=f[T][E],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T,E),x,C)):n.push(md("value",i,u.concat(T,E),x))}else n.push(md("array",i,u.concat(T),c[T]));else for(T=0;T{"use strict";var Fvt=Dr(),$P=Oy();function zvt(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=$P.createBlob(e,r),u=$P.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),$P.revokeObjectURL(u),l=null,o(t);if(Fvt.isSafari()){var c=r==="svg"?",":";base64,";return $P.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}mde.exports=zvt});var sU=ye((Xor,xde)=>{"use strict";var _de=Dr(),Ovt=aU(),qvt=yde(),Wor=Oy();function Bvt(e,t){var r;return _de.isPlainObject(e)||(r=_de.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=Ovt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),qvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}xde.exports=Bvt});var Sde=ye(lU=>{"use strict";var Cp=Dr(),Lp=Cp.isPlainObject,bde=P3(),wde=Mc(),Nvt=Gl(),Tde=vl(),Ade=_b().dfltConfig;lU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:Ade},{data:e.data,layout:e.layout}),wde.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={};i4(d,v,Vvt.bind(null,d));var _=Cp.coerce(d,{},Nvt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(v)}),i4(r,n.layout,Uvt.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)&&QP(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(E,T){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],C=R0(E,L,T);Lp(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&Gvt(x)&&k(x,C)}}if(k({data:l,layout:s},""),o.length)return o.map(Hvt)};function Gvt(e){for(var t=0;t{"use strict";var rd=ZP();ef._doPlot=rd._doPlot;ef.newPlot=rd.newPlot;ef.restyle=rd.restyle;ef.relayout=rd.relayout;ef.redraw=rd.redraw;ef.update=rd.update;ef._guiRestyle=rd._guiRestyle;ef._guiRelayout=rd._guiRelayout;ef._guiUpdate=rd._guiUpdate;ef._storeDirectGUIEdit=rd._storeDirectGUIEdit;ef.react=rd.react;ef.extendTraces=rd.extendTraces;ef.prependTraces=rd.prependTraces;ef.addTraces=rd.addTraces;ef.deleteTraces=rd.deleteTraces;ef.moveTraces=rd.moveTraces;ef.purge=rd.purge;ef.addFrames=rd.addFrames;ef.deleteFrames=rd.deleteFrames;ef.animate=rd.animate;ef.setPlotConfig=rd.setPlotConfig;var jvt=HS().getGraphDiv,Wvt=dP().eraseActiveShape;ef.deleteActiveShape=function(e){return Wvt(jvt(e))};ef.toImage=aU();ef.validate=gde();ef.downloadImage=sU();var Mde=Sde();ef.makeTemplate=Mde.makeTemplate;ef.validateTemplate=Mde.validateTemplate});var oT=ye((Kor,kde)=>{"use strict";var uU=Dr(),Xvt=qa();kde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=Xvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=uU.minRowLength(a);o?s=Math.min(u,uU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=uU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dg=ye((Jor,Pde)=>{"use strict";var Cde=Dr().dateTick0,Zvt=fs(),Yvt=Zvt.ONEWEEK;function Lde(e,t){return e%Yvt===0?Cde(t,1):Cde(t,0)}Pde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Lde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Lde(s,r.ycalendar)),i("yperiodalignment"))}}});var Dde=ye(($or,Rde)=>{"use strict";var Ide=["orientation","groupnorm","stackgaps"];Rde.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 Fde=ka(),zde=pv().hasColorscale,Ode=td(),Kvt=Ru();qde.exports=function(t,r,n,i,a,o={}){var s=Kvt.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),zde(t,"marker")&&Ode(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=Fde.background:u=Fde.defaultLine,a("marker.line.color",u),zde(t,"marker.line")&&Ode(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((esr,Bde)=>{"use strict";var Jvt=Dr().isArrayOrTypedArray,$vt=pv().hasColorscale,Qvt=td();Bde.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),$vt(t,"line"))Qvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(Jvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var sT=ye((tsr,Nde)=>{"use strict";Nde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((rsr,Ude)=>{"use strict";var ept=Dr();Ude.exports=function(e,t,r,n,i){i=i||{},n("textposition"),ept.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Fg=ye((isr,Gde)=>{"use strict";var tI=ka(),Vde=Dr().isArrayOrTypedArray;function tpt(e){for(var t=tI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Hde=Dr(),rpt=qa(),ipt=pf(),npt=Lm(),lT=Ru(),apt=oT(),opt=Dg(),spt=Dde(),lpt=$p(),upt=D0(),jde=sT(),cpt=F0(),fpt=Fg(),hpt=Dr().coercePattern;Wde.exports=function(t,r,n,i){function a(d,v){return Hde.coerce(t,r,ipt,d,v)}var o=apt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){opt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=spt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var dpt=Kb().getAxisGroup;Zde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=dpt(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,_=v[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=_.offsetIndex)}});var cU=ye((osr,Yde)=>{"use strict";var vpt=Dr(),ppt=e2(),gpt=pf();Yde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return vpt.coerce(i._input,i,gpt,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 Jde=ye((ssr,Kde)=>{"use strict";var mpt=Dr(),ypt=tL();Kde.exports=function(e,t){function r(i,a){return mpt.coerce(e,t,ypt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var zg=ye((lsr,Qde)=>{"use strict";var _pt=Eo(),$de=Dr(),xpt=$de.dateTime2ms,rI=$de.incrementMonth,bpt=fs(),wpt=bpt.ONEAVGMONTH;Qde.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(_pt(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=xpt(h,u)||0,v=[],_=[],b=[],p=i.length,k=0;kE;)x=rI(x,-s,u);for(;x<=E;)x=rI(x,s,u);L=rI(x,-s,u)}else{for(T=Math.round((E-d)/o),x=d+T*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}v[k]=c?L:f?x:(L+x)/2,_[k]=L,b[k]=x}return{vals:v,starts:_,ends:b}}});var z0=ye((usr,tve)=>{"use strict";var fU=pv().hasColorscale,hU=gv(),eve=Ru();tve.exports=function(t,r){eve.hasLines(r)&&fU(r,"line")&&hU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),eve.hasMarkers(r)&&(fU(r,"marker")&&hU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),fU(r,"marker.line")&&hU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Rm=ye((csr,rve)=>{"use strict";var qf=Dr();rve.exports=function(t,r){for(var n=0;n{"use strict";var ive=Dr();nve.exports=function(t,r){ive.isArrayOrTypedArray(r.selectedpoints)&&ive.tagSelected(t,r)}});var q0=ye((hsr,fve)=>{"use strict";var ave=Eo(),vU=Dr(),n4=ho(),ove=zg(),dU=fs().BADNUM,pU=Ru(),Tpt=z0(),Apt=Rm(),Spt=O0();function Mpt(e,t){var r=e._fullLayout,n=t._xA=n4.getFromId(e,t.xaxis||"x","x"),i=t._yA=n4.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=ove(t,n,"x",a),l=ove(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=gU(t,r,n,i),_=!1,b,p,k,E,T,L;uve(r,t);var x="x",C="y",M;if(v)vU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",M="x"):(x="s",M="y"),T=v.stackgaps==="interpolate";else{var g=lve(t,f);sve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;p{"use strict";hve.exports=iI;var Ept=Dr().distinctVals;function iI(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";vve.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var t2=ye((psr,yve)=>{"use strict";var B0=Eo(),{isArrayOrTypedArray:qy}=Dr(),{BADNUM:uT}=fs(),kpt=qa(),a4=ho(),{getAxisGroup:Cpt}=Kb(),nI=dve(),{TEXTPAD:Lpt}=A_(),{LINE_SPACING:Ppt}=Dh(),{BR_TAG_ALL:Ipt}=Zl();function Rpt(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*Ppt*r+Lpt;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 Gpt(e,t,r,n){for(var i=cT(n),a=0;a{"use strict";var _ve=q0(),xve=t2().setGroupPositions;function jpt(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 Xpt=So(),Mve=fs(),o4=Mve.BADNUM,Eve=Mve.LOG_CLIP,Tve=Eve+.5,Ave=Eve-.5,aI=Dr(),Zpt=aI.segmentsIntersect,Sve=aI.constrain,TU=Lm();kve.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,_=v==="linear",b=n.fill&&n.fill!=="none",p=[],k=TU.minTolerance,E=t.length,T=new Array(E),L=0,x,C,M,g,P,A,z,O,U,G,Z,j,N,H,re,oe;function _e(dt){var Ge=t[dt];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===o4){if(o&&(Je=i.c2p(Ge.x,!0)),Je===o4)return!1;s&&We===o4&&(Je*=Math.abs(i._m*u*(i._m>0?Tve:Ave)/(a._m*l*(a._m>0?Tve:Ave)))),Je*=1e3}if(We===o4){if(s&&(We=a.c2p(Ge.y,!0)),We===o4)return!1;We*=1e3}return[Je,We]}function Ce(dt,Ge,Je,We){var tt=Je-dt,xt=We-Ge,Ie=.5-dt,xe=.5-Ge,ke=tt*tt+xt*xt,vt=tt*Ie+xt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],We&&Se(Ie,dt)Be||dt[1]me)return[Sve(dt[0],Ae,Be),Sve(dt[1],Pe,me)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===Be)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===me))return!0}function $t(dt,Ge){var Je=[],We=Wt(dt),tt=Wt(Ge);return We&&tt&&Nt(We,tt)||(We&&Je.push(We),tt&&Je.push(tt)),Je}function sr(dt,Ge,Je){return function(We,tt){var xt=Wt(We),Ie=Wt(tt),xe=[];if(xt&&Ie&&Nt(xt,Ie))return xe;xt&&xe.push(xt),Ie&&xe.push(Ie);var ke=2*aI.constrain((We[dt]+tt[dt])/2,Ge,Je)-((xt||We)[dt]+(Ie||tt)[dt]);if(ke){var vt;xt&&Ie?vt=ke>0==xt[dt]>Ie[dt]?xt:Ie:vt=xt||Ie,vt[dt]+=ke}return xe}}var Tr;v==="linear"||v==="spline"?Tr=ut:v==="hv"||v==="vh"?Tr=$t:v==="hvh"?Tr=sr(0,Ae,Be):v==="vhv"&&(Tr=sr(1,Pe,me));function fr(dt,Ge){var Je=Ge[0]-dt[0],We=(Ge[1]-dt[1])/Je,tt=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return tt>0?[We>0?Ae:Be,me]:[We>0?Be:Ae,Pe]}function $e(dt){var Ge=dt[0],Je=dt[1],We=Ge===T[L-1][0],tt=Je===T[L-1][1];if(!(We&&tt))if(L>1){var xt=Ge===T[L-2][0],Ie=Je===T[L-2][1];We&&(Ge===Ae||Ge===Be)&&xt?Ie?L--:T[L-1]=dt:tt&&(Je===Pe||Je===me)&&Ie?xt?L--:T[L-1]=dt:T[L++]=dt}else T[L++]=dt}function St(dt){T[L-1][0]!==dt[0]&&T[L-1][1]!==dt[1]&&$e([lt,pt]),$e(dt),Vt=null,lt=pt=0}var Qt=aI.isArrayOrTypedArray(f);function Gt(dt){if(dt&&c&&(dt.i=x,dt.d=t,dt.trace=n,dt.marker=Qt?f[dt.i]:f,dt.backoff=c),Le=dt[0]/l,ge=dt[1]/u,ce=dt[0]Be?Be:0,je=dt[1]me?me:0,ce||je){if(!L)T[L++]=[ce||dt[0],je||dt[1]];else if(Vt){var Ge=Tr(Vt,dt);Ge.length>1&&(St(Ge[0]),T[L++]=Ge[1])}else ot=Tr(T[L-1],dt)[0],T[L++]=ot;var Je=T[L-1];ce&&je&&(Je[0]!==ce||Je[1]!==je)?(Vt&&(lt!==ce&&pt!==je?$e(lt&&pt?fr(Vt,dt):[lt||ce,pt||je]):lt&&pt&&$e([lt,pt])),$e([ce,je])):lt-ce&&pt-je&&$e([ce||lt,je||pt]),Vt=dt,lt=ce,pt=je}else Vt&&St(Tr(Vt,dt)[0]),T[L++]=dt}for(x=0;xie(A,_t))break;M=A,N=U[0]*O[0]+U[1]*O[1],N>Z?(Z=N,g=A,z=!1):N=t.length||!A)break;Gt(A),C=A}}Vt&&$e([lt||Vt[0],pt||Vt[1]]),p.push(T.slice(0,L))}var It=v.slice(v.length-1);if(c&&It!=="h"&&It!=="v"){for(var mt=!1,er=-1,lr=[],wr=0;wr{"use strict";var Cve={tonextx:1,tonexty:1,tonext:1};Lve.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 Og=Oa(),Ypt=qa(),s4=Dr(),fT=s4.ensureSingle,Ive=s4.identity,Kf=So(),hT=Ru(),Kpt=AU(),Jpt=SU(),oI=FM().tester;Rve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=Jpt(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(),$pt(t,s,r),c){o&&(l=o());var h=Og.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){Pve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Pve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function $pt(e,t,r){t.each(function(n){var i=fT(Og.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,Ive);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=fT(Og.select(this),"path","js-fill")})})}function Pve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;Qpt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,_=Og.select(a),b=fT(_,"g","errorbars"),p=fT(_,"g","lines"),k=fT(_,"g","points"),E=fT(_,"g","text");if(Ypt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(_).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,M;x==="y"?(C=1,M=h.c2p(0,!0)):x==="x"&&(C=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var g="",P=[],A=d._prevtrace,z=null,O=null;A&&(g=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,z=A._fillsegments,O=A._fillElement);var U,G,Z="",j="",N,H,re,oe,_e,Ce,Le=[];d._polygons=[];var ge=[],ie=[],Se=s4.noop;if(T=d._ownFill,hT.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(sr){var Tr=sr[sr.length-1];return sr.length>1&&sr[0][0]===Tr[0]&&sr[0][1]===Tr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=H=function(sr){return"M"+sr.join("L")},re=function(sr){return H(sr.reverse())},ie=Kpt(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 Ee=0;for(l=0;l=s[0]&&_.x<=s[1]&&_.y>=l[0]&&_.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(_,b){var p=_[0].trace;hT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Dve.exports={container:"marker",min:"cmin",max:"cmax"}});var lI=ye((bsr,Fve)=>{"use strict";var sI=ho();Fve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=sI.getFromTrace(a,r,"x"),s=sI.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=sI.tickText(o,o.c2l(l),!0).text,i.yLabel=sI.tickText(s,s.c2l(u),!0).text,i}});var sp=ye((wsr,zve)=>{"use strict";var MU=Oa(),vT=So(),e0t=qa();function t0t(e){var t=MU.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=MU.select(this),i=r.trace||r[0].trace;EU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=MU.select(this),i=r.trace||r[0].trace;kU(n,i,e)}),t.selectAll("g.trace path.js-line").call(vT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(vT.fillGroupStyle,e,!1),e0t.getComponentMethod("errorbars","style")(t)}function EU(e,t,r){vT.pointStyle(e.selectAll("path.point"),t,r)}function kU(e,t,r){vT.textPointStyle(e.selectAll("text"),t,r)}function r0t(e,t,r){var n=t[0].trace;n.selectedpoints?(vT.selectedPointStyle(r.selectAll("path.point"),n),vT.selectedTextStyle(r.selectAll("text"),n)):(EU(r,n,e),kU(r,n,e))}zve.exports={style:t0t,stylePoints:EU,styleText:kU,styleOnSelect:r0t}});var gT=ye((Tsr,Ove)=>{"use strict";var pT=ka(),i0t=Ru();Ove.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&pT.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&&pT.opacity(a)?a:o&&pT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?pT.opacity(i)<.3?pT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&pT.opacity(n)&&i0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var mT=ye((Asr,Bve)=>{"use strict";var uI=Dr(),qve=vf(),n0t=qa(),a0t=gT(),CU=ka(),o0t=uI.fillText;Bve.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,_=!!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),oe=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),oe=1-1/re,_e=Math.abs(l.c2p(j.y)-c);return _eLe!=me>=Le&&(Ae=Se[ie-1][0],Be=Se[ie][0],me-Pe&&(Ee=Ae+(Be-Ae)*(Le-Pe)/(me-Pe),re=Math.min(re,Ee),oe=Math.max(oe,Ee)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:Le,y1:Le}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=z(o._fillElement)&&!z(o._fillExclusionElement);if(U){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=CU.defaultLine;return CU.opacity(o.fillcolor)?Z=o.fillcolor:CU.opacity((o.line||{}).color)&&(Z=o.line.color),uI.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&&!uI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var yT=ye((Ssr,Uve)=>{"use strict";var Nve=Ru();Uve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Nve.hasMarkers(s)&&!Nve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Vve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var PU=ye((Esr,Wve)=>{"use strict";var l4=qa().traceIs,LU=V3();Wve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(s0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function s0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=l0t(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:!l4(a,"cartesian")||l4(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=Hve(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 Hve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jve(e,t){var r=Hve(e),n=l4(e,"box-violin"),i=l4(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var cI=ye((ksr,Xve)=>{"use strict";var u0t=vv().isTypedArraySpec;function c0t(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||u0t(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=c0t(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var u4=ye((Csr,Yve)=>{"use strict";var Zve=fd().mix,f0t=Ih(),h0t=Dr();Yve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return h0t.coerce2(t,r,i.attributes,M,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=Zve(a,i.bgColor,i.blend||f0t.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 _=Zve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),p=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!k);E||(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 f4=ye((Lsr,tpe)=>{"use strict";var Kve=Eo(),d0t=qa(),c4=Dr(),v0t=vl(),p0t=Zd(),IU=Rd(),Jve=Lb(),$ve=F3(),g0t=s_(),m0t=l_(),y0t=cI(),_0t=u4(),x0t=AB(),Qve=xm(),fI=Rh().WEEKDAY_PATTERN,b0t=Rh().HOUR_PATTERN;tpe.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=d0t.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=c4.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"),Qve(r,a),x0t(t,r,n,i),y0t(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==IU.color.dflt?_:s.color,p=l.label||a._dfltTitle[o];if(m0t(t,r,n,f,i),!u)return r;n("title.text",p),c4.coerceFont(n,"title.font",s,{overrideDflt:{size:c4.bigFont(s.size),color:b}}),Jve(t,r,n,f);var k=i.hasMinor;if(k&&(v0t.newContainer(r,"minor"),Jve(t,r,n,f,{isMinor:!0})),g0t(t,r,n,f,i),$ve(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,$ve(t,r,n,i),i.isMinor=E}_0t(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:IU}),k&&!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(p0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:w0t}),!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=epe(a[s]),l){o=fI;break}}var u=n("pattern",o);if(u===fI)for(s=0;s<2;s++)l=epe(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case fI:if(!Kve(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 b0t:if(!Kve(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 A0t=Eo(),hI=Dr();rpe.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,_;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||(A0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,_=!1;var b=hI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=hI.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],_=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=hI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",f);T[0]>T[1]-1/4096&&(r.domain=f),hI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var fpe=ye((Isr,cpe)=>{"use strict";var r2=Dr(),ipe=ka(),S0t=ip().isUnifiedHover,M0t=YB(),npe=vl(),E0t=_3(),ape=Rd(),k0t=PU(),ope=f4(),C0t=Kb(),spe=dI(),DU=hf(),Dm=DU.id2name,lpe=DU.name2id,L0t=Rh().AX_ID_PATTERN,upe=qa(),vI=upe.traceIs,RU=upe.getComponentMethod;function pI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}cpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},_,b;for(_=0;_{"use strict";var P0t=Oa(),hpe=qa(),gI=Dr(),Qp=So(),mI=ho();dpe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){mI.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 E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,x=T._length,C=!!b.xr1,M=!!b.yr1,g=[];if(C){var P=gI.simpleMap(b.xr0,E.r2l),A=gI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=A[1]-A[0];g[0]=(P[0]*(1-p)+p*A[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*A[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*A[1])}else g[0]=0,g[2]=L;if(M){var U=gI.simpleMap(b.yr0,T.r2l),G=gI.simpleMap(b.yr1,T.r2l),Z=U[1]-U[0],j=G[1]-G[0];g[1]=(U[1]*(1-p)+p*G[1]-U[1])/(U[0]-U[1])*x,g[3]=x*(1-p+p*j/Z),T.range[0]=E.l2r(U[0]*(1-p)+p*G[0]),T.range[1]=T.l2r(U[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;mI.drawOne(t,E,{skipTitle:!0}),mI.drawOne(t,T,{skipTitle:!0}),mI.redrawComponents(t,[E._id,T._id]);var N=C?L/g[2]:1,H=M?x/g[3]:1,re=C?g[0]:0,oe=M?g[1]:0,_e=C?g[0]/g[2]*L:0,Ce=M?g[1]/g[3]*x:0,Le=E._offset-_e,ge=T._offset-Ce;k.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/H),k.plot.call(Qp.setTranslate,Le,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(_)):d=window.requestAnimationFrame(_)}return f=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var mh=ye(xv=>{"use strict";var _I=Oa(),ppe=qa(),i2=Dr(),I0t=Mc(),R0t=So(),gpe=Id().getModuleCalcData,S_=hf(),qg=Rh(),D0t=Wp(),iu=i2.ensureSingle;function yI(e,t,r){return i2.ensureSingle(e,t,r,function(n){n.datum(r)})}var n2=qg.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=qg.idRegex;xv.attrRegex=qg.attrRegex;xv.attributes=Gve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=fpe();xv.transitionAxes=vpe();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(n2)!==-1)continue;d+=n2+(u+1),h=i2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],_,b=0;b1&&(L+=n2+T),E.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,_=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",_),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",_),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",_),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",_),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+_),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+_),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(yI(t.minorGridlayer,"g",t.xaxis._id),yI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort),yI(t.gridlayer,"g",t.xaxis._id),yI(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 _pe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=_I.select(this);c.remove(),xpe(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 xI=Ru();bpe.exports={hasLines:xI.hasLines,hasMarkers:xI.hasMarkers,hasText:xI.hasText,isBubble:xI.isBubble,attributes:pf(),layoutAttributes:tL(),supplyDefaults:Xde(),crossTraceDefaults:cU(),supplyLayoutDefaults:Jde(),calc:q0().calc,crossTraceCalc:wve(),arraysToCalcdata:Rm(),plot:dT(),colorbar:$d(),formatLabels:lI(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:mT(),selectPoints:yT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Spe=ye((zsr,Ape)=>{"use strict";var z0t=Oa(),O0t=ka(),Tpe=ON(),FU=Dr(),q0t=FU.strScale,B0t=FU.strRotate,N0t=FU.strTranslate;Ape.exports=function(t,r,n){var i=t.node(),a=Tpe[n.arrowhead||0],o=Tpe[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,_,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(_=Math.atan2(k,p),b=_+Math.PI,f&&h&&f+h>Math.sqrt(p*p+k*k)){U();return}if(f){if(f*f>p*p+k*k){U();return}var E=f*Math.cos(_),T=f*Math.sin(_);v.x+=E,v.y+=T,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+k*k){U();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),M="";if(C{"use strict";var Mpe=Oa(),zU=qa(),U0t=Mc(),E_=Dr(),OU=E_.strTranslate,d4=ho(),a2=ka(),By=So(),Epe=vf(),qU=Zl(),BU=Eg(),h4=yv(),V0t=vl().arrayEditor,G0t=Spe();Lpe.exports={draw:H0t,drawOne:kpe,drawRaw:Cpe};function H0t(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 Pe=!1,me=["x","y"],De=0;De1)&&(lt===je?(_t=pt.r2fraction(t["a"+ce]),(_t<0||_t>1)&&(Pe=!0)):Pe=!0),Tr=pt._offset+pt.r2p(t[ce]),St=.5}else{var It=Gt==="domain";ce==="x"?($e=t[ce],Tr=It?pt._offset+pt._length*$e:Tr=s.l+s.w*$e):($e=1-t[ce],Tr=It?pt._offset+pt._length*$e:Tr=s.t+s.h*$e),St=t.showarrow?.5:$e}if(t.showarrow){sr.head=Tr;var mt=t["a"+ce];if(Qt=ot*Be(.5,t.xanchor)-ut*Be(.5,t.yanchor),lt===je){var er=d4.getRefType(lt);er==="domain"?(ce==="y"&&(mt=1-mt),sr.tail=pt._offset+pt._length*mt):er==="paper"?ce==="y"?(mt=1-mt,sr.tail=s.t+s.h*mt):sr.tail=s.l+s.w*mt:sr.tail=pt._offset+pt.r2p(mt),fr=Qt}else sr.tail=Tr+mt,fr=Qt+mt;sr.text=sr.tail+Qt;var lr=o[ce==="x"?"width":"height"];if(je==="paper"&&(sr.head=E_.constrain(sr.head,1,lr-1)),lt==="pixel"){var wr=-Math.max(sr.tail-3,sr.text),Lr=Math.min(sr.tail+3,sr.text)-lr;wr>0?(sr.tail+=wr,sr.text+=wr):Lr>0&&(sr.tail-=Lr,sr.text-=Lr)}sr.tail+=$t,sr.head+=$t}else Qt=Wt*Be(St,Nt),fr=Qt,sr.text=Tr+Qt;sr.text+=$t,Qt+=$t,fr+=$t,t["_"+ce+"padplus"]=Wt/2+fr,t["_"+ce+"padminus"]=Wt/2-fr,t["_"+ce+"size"]=Wt,t["_"+ce+"shift"]=Qt}if(Pe){C.remove();return}var ti=0,Br=0;if(t.align!=="left"&&(ti=(ie-Le)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Br=(Se-ge)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ti-1,y:P+Br}).call(By.setClipUrl,z?_:null,e);else{var Vr=P+Br-Ce.top,dt=P+ti-Ce.left;Z.call(qU.positionText,dt,Vr).call(By.setClipUrl,z?_:null,e)}O.select("rect").call(By.setRect,P,P,ie,Se),A.call(By.setRect,M/2,M/2,Ee-M,Ae-M),C.call(By.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(We,tt){k.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,Ie=b.y.head,xe=b.x.tail+We,ke=b.y.tail+tt,vt=b.x.text+We,ir=b.y.text+tt,ar=E_.rotationXYMatrix(p,vt,ir),vr=E_.apply2DTransform(ar),ii=E_.apply2DTransform2(ar),pi=+A.attr("width"),$r=+A.attr("height"),di=vt-.5*pi,ji=di+pi,In=ir-.5*$r,wi=In+$r,On=[[di,In,di,wi],[di,wi,ji,wi],[ji,wi,ji,In],[ji,In,di,In]].map(ii);if(!On.reduce(function(Qr,Oi){return Qr^!!E_.segmentsIntersect(xt,Ie,xt+1e6,Ie+1e6,Oi[0],Oi[1],Oi[2],Oi[3])},!1)){On.forEach(function(Qr){var Oi=E_.segmentsIntersect(xe,ke,xt,Ie,Qr[0],Qr[1],Qr[2],Qr[3]);Oi&&(xe=Oi.x,ke=Oi.y)});var qn=t.arrowwidth,Fn=t.arrowcolor,ra=t.arrowside,la=k.append("g").style({opacity:a2.opacity(Fn)}).classed("annotation-arrow-g",!0),Ut=la.append("path").attr("d","M"+xe+","+ke+"L"+xt+","+Ie).style("stroke-width",qn+"px").call(a2.stroke,a2.rgb(Fn));if(G0t(Ut,ra,t),l.annotationPosition&&Ut.node().parentNode&&!n){var wt=xt,rr=Ie;if(t.standoff){var nr=Math.sqrt(Math.pow(xt-xe,2)+Math.pow(Ie-ke,2));wt+=t.standoff*(xe-xt)/nr,rr+=t.standoff*(ke-Ie)/nr}var Er=la.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-wt)+","+(ke-rr),transform:OU(wt,rr)}).style("stroke-width",qn+6+"px").call(a2.stroke,"rgba(0,0,0,0)").call(a2.fill,"rgba(0,0,0,0)"),Xr,ri;h4.init({element:Er.node(),gd:e,prepFn:function(){var Qr=By.getTranslate(C);Xr=Qr.x,ri=Qr.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Qr,Oi){var $i=vr(Xr,ri),tn=$i[0]+Qr,fn=$i[1]+Oi;C.call(By.setTranslate,tn,fn),d("x",M_(i,Qr,"x",s,t)),d("y",M_(a,Oi,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,Qr,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Oi,"ay",s,t)),la.attr("transform",OU(Qr,Oi)),E.attr({transform:"rotate("+p+","+tn+","+fn+")"})},doneFn:function(){zU.call("_guiRelayout",e,v());var Qr=document.querySelector(".js-notes-box-panel");Qr&&Qr.redraw(Qr.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),T){var Je;h4.init({element:C.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(We,tt){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,tt,"ay",s.w,t)):d("ay",t.ay+tt),Ge(We,tt);else{if(n)return;var Ie,xe;if(i)Ie=M_(i,We,"x",s,t);else{var ke=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-ke/2;Ie=h4.align(vt+We/s.w,ke,0,1,t.xanchor)}if(a)xe=M_(a,tt,"y",s,t);else{var ir=t._ysize/s.h,ar=t.y-(t._yshift+t.yshift)/s.h-ir/2;xe=h4.align(ar-tt/s.h,ir,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(xt=h4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:OU(We,tt)+Je}),BU(C,xt)},clickFn:function(We,tt){t.captureevents&&e.emit("plotly_clickannotation",x(tt))},doneFn:function(){BU(C),zU.call("_guiRelayout",e,v());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}l.annotationText?Z.call(qU.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),zU.call("_guiRelayout",e,v())}):Z.call(j)}});var zpe=ye((qsr,Fpe)=>{"use strict";var Ppe=Dr(),j0t=qa(),Ipe=vl().arrayEditor;Fpe.exports={hasClickToShow:W0t,onClick:X0t};function W0t(e,t){var r=Dpe(e,t);return r.on.length>0||r.explicitOff.length>0}function X0t(e,t){var r=Dpe(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 NU=Dr(),_T=ka();Ope.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=_T.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),NU.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:_T.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),_=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",_.bgcolor||(_T.opacity(a)?_T.rgb(a):_T.defaultLine)),p=i("hoverlabel.bordercolor",_.bordercolor||_T.contrast(b)),k=NU.extendFlat({},_.font);k.color||(k.color=p),NU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!v)}});var Bpe=ye((Nsr,qpe)=>{"use strict";var VU=Dr(),o2=ho(),Z0t=Zd(),Y0t=UU(),K0t=Jb();qpe.exports=function(t,r){Z0t(t,r,{name:"annotations",handleItemDefaults:J0t})};function J0t(e,t,r){function n(E,T){return VU.coerce(e,t,K0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Y0t(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=o2.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=o2.getFromId(u,h);d._annIndices.push(t._index)}if(o2.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,_=o2.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[v]="pixel");var b=_==="pixel"?l[c]:.4;o2.coercePosition(t,u,n,_,v,b)}n(f+"anchor"),n(f+"shift")}if(VU.noneOrAll(e,t,["x","y"]),o&&VU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),k=n("yclick");t._xclick=p===void 0?t.x:o2.cleanPosition(p,u,t.xref),t._yclick=k===void 0?t.y:o2.cleanPosition(k,u,t.yref)}}}});var Vpe=ye((Usr,Upe)=>{"use strict";var GU=Dr(),s2=ho(),$0t=bI().draw;Upe.exports=function(t){var r=t._fullLayout,n=GU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return GU.syncOrAsync([$0t,Q0t],t)};function Q0t(e){var t=e._fullLayout;GU.filterVisible(t.annotations).forEach(function(r){var n=s2.getFromId(e,r.xref),i=s2.getFromId(e,r.yref),a=s2.getRefType(r.xref),o=s2.getRefType(r.yref);r._extremes={},a==="range"&&Npe(r,n),o==="range"&&Npe(r,i)})}function Npe(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,_=v+c,b=v-c,p;if(s===o){var k=s2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=s2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,_),ppadminus:Math.max(u,b)});p={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,p=s2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,_),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Hpe=ye((Vsr,Gpe)=>{"use strict";var egt=Eo(),tgt=S6();Gpe.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],_=null;a?_=tgt(v,r.range):_=Math.pow(10,v),egt(_)||(_=null),i(c+d,_)}for(var h=0;h{"use strict";var HU=bI(),jpe=zpe();Wpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Jb(),supplyLayoutDefaults:Bpe(),includeBasePlot:WM()("annotations"),calcAutorange:Vpe(),draw:HU.draw,drawOne:HU.drawOne,drawRaw:HU.drawRaw,hasClickToShow:jpe.hasClickToShow,onClick:jpe.onClick,convertCoords:Hpe()}});var wI=ye((Hsr,Zpe)=>{"use strict";var kc=Jb(),rgt=mc().overrideAll,igt=vl().templatedArray;Zpe.exports=rgt(igt("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 Kpe=ye((jsr,Ype)=>{"use strict";var jU=Dr(),ngt=ho(),agt=Zd(),ogt=UU(),sgt=wI();Ype.exports=function(t,r,n){agt(t,r,{name:"annotations",handleItemDefaults:lgt,fullLayout:n.fullLayout})};function lgt(e,t,r,n){function i(s,l){return jU.coerce(e,t,sgt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ngt.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(ogt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),jU.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),jU.noneOrAll(e,t,["ax","ay"])))}});var e0e=ye((Wsr,Qpe)=>{"use strict";var Jpe=Dr(),$pe=ho();Qpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function WU(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 cgt(e,t){var r=WU(e.projection,WU(e.view,WU(e.model,[t[0],t[1],t[2],1])));return r}t0e.exports=cgt});var i0e=ye((Zsr,r0e)=>{"use strict";var fgt=bI().drawRaw,hgt=XU(),dgt=["x","y","z"];r0e.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=hgt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),fgt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var o0e=ye((Ysr,a0e)=>{"use strict";var vgt=qa(),n0e=Dr();a0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wI()}}},layoutAttributes:wI(),handleDefaults:Kpe(),includeBasePlot:pgt,convert:e0e(),draw:i0e()};function pgt(e,t){var r=vgt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Ksr=Rh(),s0e=ec(),l0e=pf().line,ggt=Pd().dash,Bg=Ao().extendFlat,mgt=vl().templatedArray,Jsr=HM(),xT=Gl(),u0e=Jb(),{shapeTexttemplateAttrs:ygt,templatefallbackAttrs:_gt}=Ll(),xgt=D6();c0e.exports=mgt("shape",{visible:Bg({},xT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Bg({},xT.legend,{editType:"calc+arraydraw"}),legendgroup:Bg({},xT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Bg({},xT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:s0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Bg({},xT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Bg({},xT.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({},u0e.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({},u0e.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({},l0e.color,{editType:"arraydraw"}),width:Bg({},l0e.width,{editType:"calc+arraydraw"}),dash:Bg({},ggt,{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:ygt({},{keys:Object.keys(xgt)}),texttemplatefallback:_gt({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 h0e=ye((Qsr,f0e)=>{"use strict";var bT=Dr(),e0=ho(),bgt=Zd(),wgt=ZU(),v4=x_();f0e.exports=function(t,r){bgt(t,r,{name:"shapes",handleItemDefaults:Agt})};function Tgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Agt(e,t,r){function n(E,T){return bT.coerce(e,t,wgt,E,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),bT.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(E=>{var T=E+"anchor",L=E==="x"?f:h,x={_fullLayout:r},C,M,g,P;let A=E+"ref",z=e[A];if(Array.isArray(z)&&z.length>0){let O=v4.countDefiningCoords(l,o,E);P=e0.coerceRefArray(e,t,x,E,void 0,"paper",O),t["_"+E+"refArray"]=!0}else P=e0.coerceRef(e,t,x,E,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){e0.getRefType(O)==="range"&&(C=e0.getFromId(x,O),C&&C._shapeIndices.indexOf(t._index)===-1&&C._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(O){let U=P[O];e0.getRefType(U)==="range"?(C=e0.getFromId(x,U),M=v4.shapePositionToRange(C),g=v4.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&n(E+O+"shift")):M=g=bT.identity;let Z=E+O,j=e[Z];if(e[Z]=M(e[Z],!0),L==="pixel"?n(Z,v[O]):e0.coercePosition(t,x,n,U,Z,d[O]),t[Z]=g(t[Z]),e[Z]=j,O===0&&L==="pixel"){let N=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,U,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=v4.rangeToShapePosition(C),M=v4.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(n(E+"0shift"),n(E+"1shift"))):M=g=bT.identity,u){let U=E+"0",G=E+"1",Z=e[U],j=e[G];e[U]=M(e[U],!0),e[G]=M(e[G],!0),L==="pixel"?(n(U,v[0]),n(G,v[1])):(e0.coercePosition(t,x,n,P,U,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[U]=g(t[U]),t[G]=g(t[G]),e[U]=Z,e[G]=j}if(L==="pixel"){let U=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=g(t[T]),e[T]=U}}}),u&&bT.noneOrAll(e,t,["x0","x1","y0","y1"]);var _=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",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Tgt(_,k)),n("label.padding"),bT.coerceFont(n,"label.font",r.font)}}});var p0e=ye((elr,v0e)=>{"use strict";var Sgt=ka(),d0e=Dr();function Mgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}v0e.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"),d0e.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",Sgt.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",Mgt(o,u)),n("newshape.label.padding"),d0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var w0e=ye((tlr,b0e)=>{"use strict";var YU=Dr(),N0=ho(),Fm=TM(),KU=x_();b0e.exports=function(t){var r=t._fullLayout,n=YU.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,m0e(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.xref),s=_0e(o,a,Fm.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,m0e(a))));if(u==="array"){let c=g0e(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,y0e(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.yref),s=_0e(o,a,Fm.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,y0e(a))))}};function g0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Fm.paramIsX:Fm.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(Fm.segmentRE)||[];for(var s=0,l=0;lv&&(a(n[s],_[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=KU.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function m0e(e){return x0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function y0e(e){return x0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function x0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var l=i?KU.extractPathCoords(i,a?Fm.paramIsY:Fm.paramIsX):[r,n],u=YU.aggNums(Math.max,null,l),c=YU.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 _0e(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(Fm.segmentRE),v,_,b,p,k;for(e.type==="date"&&(u=KU.decodeDate(u)),v=0;vh&&(h=k)));if(h>=f)return[f,h]}}});var S0e=ye((rlr,A0e)=>{"use strict";var T0e=dP();A0e.exports={moduleType:"component",name:"shapes",layoutAttributes:ZU(),supplyLayoutDefaults:h0e(),supplyDrawNewShapeDefaults:p0e(),includeBasePlot:WM()("shapes"),calcAutorange:w0e(),draw:T0e.draw,drawOne:T0e.drawOne}});var JU=ye((nlr,E0e)=>{"use strict";var M0e=Rh(),Egt=vl().templatedArray,ilr=HM();E0e.exports=Egt("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",M0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",M0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var C0e=ye((alr,k0e)=>{"use strict";var kgt=Dr(),$U=ho(),Cgt=Zd(),Lgt=JU(),Pgt="images";k0e.exports=function(t,r){var n={name:Pgt,handleItemDefaults:Igt};Cgt(t,r,n)};function Igt(e,t,r){function n(h,d){return kgt.coerce(e,t,Lgt,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=$U.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=$U.getFromId(o,c);f._imgIndices.push(t._index)}$U.coercePosition(t,o,n,c,u,0)}return t}});var R0e=ye((olr,I0e)=>{"use strict";var L0e=Oa(),Rgt=So(),wT=ho(),P0e=hf(),Dgt=Wp();I0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var D0e=Eo(),Fgt=S6();F0e.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";O0e.exports={moduleType:"component",name:"images",layoutAttributes:JU(),supplyLayoutDefaults:C0e(),includeBasePlot:WM()("images"),draw:R0e(),convertCoords:z0e()}});var TI=ye((ulr,B0e)=>{"use strict";B0e.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 QU=ye((clr,U0e)=>{"use strict";var zgt=ec(),Ogt=Ih(),qgt=Ao().extendFlat,Bgt=mc().overrideAll,Ngt=F6(),N0e=vl().templatedArray,Ugt=N0e("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}});U0e.exports=Bgt(N0e("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:Ugt,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:qgt(Ngt({editType:"arraydraw"}),{}),font:zgt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ogt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var j0e=ye((flr,H0e)=>{"use strict";var AI=Dr(),V0e=Zd(),G0e=QU(),Vgt=TI(),Ggt=Vgt.name,Hgt=G0e.buttons;H0e.exports=function(t,r){var n={name:Ggt,handleItemDefaults:jgt};V0e(t,r,n)};function jgt(e,t,r){function n(o,s){return AI.coerce(e,t,G0e,o,s)}var i=V0e(e,t,{name:"buttons",handleItemDefaults:Wgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),AI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),AI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Wgt(e,t){function r(i,a){return AI.coerce(e,t,Hgt,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 Z0e=ye((hlr,X0e)=>{"use strict";X0e.exports=Mf;var Ng=Oa(),W0e=ka(),TT=So(),SI=Dr();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",_=f==="up",b=l,p=c,k,E,T,L;!h&&!d&&!v&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(k=s,E=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?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:p};var C=l>b,M=Mf.barLength+2*Mf.barPad,g=Mf.barWidth+2*Mf.barPad,P=s,A=u+c;A+g>o&&(A=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(W0e.fill,Mf.barColor),C?(this.hbar=z.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:P,y:A,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,U=Mf.barWidth+2*Mf.barPad,G=Mf.barLength+2*Mf.barPad,Z=s+l,j=u;Z+U>a&&(Z=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(W0e.fill,Mf.barColor),O?(this.vbar=N.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:Z,y:j,width:U,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,oe=O?E+U+.5:E+.5,_e=T-.5,Ce=C?L+g+.5:L+.5,Le=i._topdefs.selectAll("#"+H).data(C||O?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",H).append("rect"),C||O?(this._clipRect=Le.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Ce)-Math.floor(_e)}),this.container.call(TT.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(TT.setClipUrl,null),delete this._clipRect),C||O){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),O&&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(TT.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=SI.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=SI.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=SI.constrain(t||0,0,n),r=SI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(TT.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(TT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(TT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var nge=ye((dlr,ige)=>{"use strict";var AT=Oa(),p4=Mc(),g4=ka(),ST=So(),t0=Dr(),MI=Zl(),Xgt=vl().arrayEditor,K0e=Dh().LINE_SPACING,es=TI(),Zgt=Z0e();ige.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[es.name]);function i(h){p4.autoMargin(t,tge(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(){AT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,Ygt);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 rmt=TI();age.exports={moduleType:"component",name:rmt.name,layoutAttributes:QU(),supplyLayoutDefaults:j0e(),draw:nge()}});var y4=ye((plr,sge)=>{"use strict";sge.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 iV=ye((glr,cge)=>{"use strict";var lge=ec(),imt=F6(),nmt=Ao().extendDeepAll,amt=mc().overrideAll,omt=jS(),uge=vl().templatedArray,l2=y4(),smt=uge("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}});cge.exports=amt(uge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:smt,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:nmt(imt({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:omt.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:lge({})},font:lge({}),activebgcolor:{valType:"color",dflt:l2.gripBgActiveColor},bgcolor:{valType:"color",dflt:l2.railBgColor},bordercolor:{valType:"color",dflt:l2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l2.tickLength},tickcolor:{valType:"color",dflt:l2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l2.minorTickLength}}),"arraydraw","from-root")});var vge=ye((mlr,dge)=>{"use strict";var MT=Dr(),fge=Zd(),hge=iV(),lmt=y4(),umt=lmt.name,cmt=hge.steps;dge.exports=function(t,r){fge(t,r,{name:umt,handleItemDefaults:fmt})};function fmt(e,t,r){function n(f,h){return MT.coerce(e,t,hge,f,h)}for(var i=fge(e,t,{name:"steps",handleItemDefaults:hmt}),a=0,o=0;o{"use strict";var Ug=Oa(),EI=Mc(),k_=ka(),Vg=So(),r0=Dr(),dmt=r0.strTranslate,_4=Zl(),vmt=vl().arrayEditor,Rs=y4(),oV=Dh(),mge=oV.LINE_SPACING,nV=oV.FROM_TL,aV=oV.FROM_BR;Tge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=pmt(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),EI.autoMargin(t,yge(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,gmt);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",dmt(o-Rs.gripWidth*.5,t._dims.currentValueTotalHeight))}}function sV(e,t){var r=e._dims;return r.inputAreaStart+Rs.stepInset+(r.inputAreaLength-2*Rs.stepInset)*Math.min(1,Math.max(0,t))}function gge(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 Tmt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",Rs.railTouchRectClass,function(a){a.call(bge,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 Amt(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 Mge=ye((_lr,Sge)=>{"use strict";var Smt=y4();Sge.exports={moduleType:"component",name:Smt.name,layoutAttributes:iV(),supplyLayoutDefaults:vge(),draw:Age()}});var CI=ye((xlr,kge)=>{"use strict";var Ege=Ih();kge.exports={bgcolor:{valType:"color",dflt:Ege.background,editType:"plot"},bordercolor:{valType:"color",dflt:Ege.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 lV=ye((blr,Cge)=>{"use strict";Cge.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 LI=ye((wlr,Lge)=>{"use strict";Lge.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 Rge=ye(II=>{"use strict";var Mmt=hf(),Emt=Zl(),Pge=LI(),kmt=Dh().LINE_SPACING,PI=Pge.name;function Ige(e){var t=e&&e[PI];return t&&t.visible}II.isVisible=Ige;II.makeData=function(e){for(var t=Mmt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var RI=Dr(),Dge=vl(),Fge=hf(),Cmt=CI(),Lmt=lV();zge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;RI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Dge.newContainer(a,"rangeslider");function l(L,x){return RI.coerce(o,s,Cmt,L,x)}var u,c;function f(L,x){return RI.coerce(u,c,Lmt,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")))===Fge.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),_=RI.simpleMap(v,Fge.id2name),b=0;b<_.length;b++){var p=_[b];u=o[p]||{},c=Dge.newContainer(s,p,"yaxis");var k=r[p],E;u.range&&k.isValidRange(u.range)&&(E="fixed");var T=f("rangemode",E);T!=="match"&&f("range",k.range.slice())}s._input=o}}});var Bge=ye((Slr,qge)=>{"use strict";var Pmt=hf().list,Imt=Mg().getAutoRange,Rmt=LI();qge.exports=function(t){for(var r=Pmt(t,"x",!0),n=0;n{"use strict";var DI=Oa(),Dmt=qa(),Fmt=Mc(),Jf=Dr(),FI=Jf.strTranslate,Uge=So(),C_=ka(),zmt=zb(),Omt=mh(),uV=hf(),qmt=yv(),Bmt=Eg(),rl=LI();Vge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=A[j+1];else if(G=N.pmax)Z=A[j+1];else if(G0?e.touches[0].clientX:0}function Nmt(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=DI.event,u=l.target,c=Nge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=qmt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),v.addEventListener("mousemove",_),v.addEventListener("mouseup",b);function _(p){var k=Nge(p),E=+k-c,T,L,x;switch(u){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;T=h,L=d+E;break;default:x="ew-resize",T=f,L=f+E;break}if(L{"use strict";var Kmt=Dr(),Jmt=CI(),$mt=lV(),cV=Rge();Hge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Kmt.extendFlat({},Jmt,{yaxis:$mt})}}},layoutAttributes:CI(),handleDefaults:Oge(),calcAutorange:Bge(),draw:Gge(),isVisible:cV.isVisible,makeData:cV.makeData,autoMarginOpts:cV.autoMarginOpts}});var zI=ye((klr,Xge)=>{"use strict";var Qmt=ec(),Wge=Ih(),eyt=vl().templatedArray,tyt=eyt("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"});Xge.exports={visible:{valType:"boolean",editType:"plot"},buttons:tyt,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:Qmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Wge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Wge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var fV=ye((Clr,Zge)=>{"use strict";Zge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Jge=ye((Llr,Kge)=>{"use strict";var OI=Dr(),ryt=ka(),iyt=vl(),nyt=Zd(),Yge=zI(),hV=fV();Kge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=iyt.newContainer(r,"rangeselector");function l(d,v){return OI.coerce(o,s,Yge,d,v)}var u=nyt(o,s,{name:"buttons",handleItemDefaults:ayt,calendar:a}),c=l("visible",u.length>0);if(c){var f=oyt(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",ryt.contrast(h,hV.lightAmount,hV.darkAmount)),l("bordercolor"),l("borderwidth")}};function ayt(e,t,r,n){var i=n.calendar;function a(l,u){return OI.coerce(e,t,Yge.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 oyt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var syt=SO(),lyt=Dr().titleCase;$ge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=uyt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function uyt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=syt["utc"+lyt(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 sme=ye((Ilr,ome)=>{"use strict";var BI=Oa(),cyt=qa(),fyt=Mc(),eme=ka(),ame=So(),Ny=Dr(),tme=Ny.strTranslate,qI=Zl(),hyt=hf(),pV=Dh(),rme=pV.LINE_SPACING,ime=pV.FROM_TL,nme=pV.FROM_BR,vV=fV(),dyt=Qge();ome.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(vyt(t),pyt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=BI.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=BI.select(this),f=dyt(o,u);u._isActive=gyt(o,u,f),c.call(dV,s,u),c.call(yyt,s,u,t),c.on("click",function(){t._dragged||cyt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(dV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(dV,s,u)})}),xyt(t,l,s,o._name,a)})};function vyt(e){for(var t=hyt.list(e,"x",!0),r=[],n=0;n{"use strict";lme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:zI()}}},layoutAttributes:zI(),handleDefaults:Jge(),draw:sme()}});var Cc=ye(gV=>{"use strict";var cme=Ao().extendFlat;gV.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:cme({},r,{}),y:cme({},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};gV.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 byt=Dr(),wyt=p3().counter,Tyt=Cc().attributes,fme=Rh().idRegex,Ayt=vl(),mV={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:[wyt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fme.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:Tyt({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 NI(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 Syt(e,t){var r=e.grid||{},n=NI(t,r,"x"),i=NI(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=Ayt.newContainer(t,"grid");function h(x,C){return byt.coerce(r,f,mV,x,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;l&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:hme("x",h,k,T,v),y:hme("y",h,E,L,d,p)}}function hme(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";pme.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 yme=ye((Olr,mme)=>{"use strict";var gme=Eo(),Eyt=qa(),kyt=Dr(),Cyt=vl(),Lyt=_V();mme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Cyt.newContainer(t,i),o=e[i]||{};function s(v,_){return kyt.coerce(o,a,Lyt,v,_)}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||gme(o.thickness)||gme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Eyt.traceIs(t,"gl3d")?0:4))}}});var xV=ye((qlr,xme)=>{"use strict";xme.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=_me(r,t.value),s=_me(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 _me(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 Tme=ye((Blr,wme)=>{"use strict";var bV=Eo(),Pyt=qa(),wV=ho(),Iyt=Dr(),Ryt=xV();wme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Ame=Oa(),L_=Eo(),Dyt=So(),Fyt=Ru();Sme.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 _=Fyt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=Ame.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),Dyt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=Ame.select(this),T=zyt(k,o,s);if(!(_&&!k.vis)){var L,x=E.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=E.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 M=E.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=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function zyt(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 Cme=ye((Ulr,kme)=>{"use strict";var Oyt=Oa(),Eme=ka();kme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Oyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Eme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Eme.stroke,a.color)})}});var Ime=ye((Vlr,Pme)=>{"use strict";var x4=Dr(),Lme=mc().overrideAll,b4=_V(),u2={error_x:x4.extendFlat({},b4),error_y:x4.extendFlat({},b4)};delete u2.error_x.copy_zstyle;delete u2.error_y.copy_zstyle;delete u2.error_y.copy_ystyle;var w4={error_x:x4.extendFlat({},b4),error_y:x4.extendFlat({},b4),error_z:x4.extendFlat({},b4)};delete w4.error_x.copy_ystyle;delete w4.error_y.copy_ystyle;delete w4.error_z.copy_ystyle;delete w4.error_z.copy_zstyle;Pme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:u2,bar:u2,histogram:u2,scatter3d:Lme(w4,"calc","nested"),scattergl:Lme(u2,"calc","nested")}},supplyDefaults:yme(),calc:Tme(),makeComputeError:xV(),plot:Mme(),style:Cme(),hoverInfo:qyt};function qyt(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 Dme=ye((Glr,Rme)=>{"use strict";Rme.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 Ume=ye((Hlr,Nme)=>{"use strict";var P_=Oa(),TV=fd(),VI=Mc(),Fme=qa(),Uy=ho(),UI=yv(),U0=Dr(),Hg=U0.strTranslate,Bme=Ao().extendFlat,AV=Eg(),Gg=So(),SV=ka(),Byt=zb(),Nyt=Zl(),Uyt=pv().flipScale,Vyt=f4(),Gyt=dI(),Hyt=Rd(),MV=Dh(),zme=MV.LINE_SPACING,Ome=MV.FROM_TL,qme=MV.FROM_BR,gf=Dme().cn;function jyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(Wyt(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=Xyt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Zyt(i,n,e)}),r.exit().each(function(n){VI.autoMargin(e,n._id)}).remove(),r.order()}function Wyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Bme(E,{_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?Uyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var De=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Be*=De*U0.roundUp(me/De,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Be}Ee.domain=n?[ie+v/T.h,ie+H-v/T.h]:[ie+d/T.w,ie+H-d/T.w],Ee.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))),je=Ee.ticklabelposition,lt=Ee.title.font.size,pt=e.select("."+gf.cbaxis),Vt,ot=0,ut=0;function Wt(fr,$e){var St={propContainer:Ee,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},Qt=fr.charAt(0)==="h"?fr.slice(1):"h"+fr;e.selectAll("."+Qt+",."+Qt+"-math-group").remove(),Byt.draw(r,fr,Bme(St,$e||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var fr,$e;M==="top"&&(fr=d+T.l+re*_,$e=v+T.t+oe*(1-ie-H)+3+lt*.75),M==="bottom"&&(fr=d+T.l+re*_,$e=v+T.t+oe*(1-ie)-3-lt*.25),M==="right"&&($e=v+T.t+oe*b+3+lt*.75,fr=d+T.l+re*ie),Wt(Ee._id+"title",{attributes:{x:fr,y:$e,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var fr=Ee.position||0,$e=Ee._offset+Ee._length/2,St,Qt;if(M==="right")Qt=$e,St=T.l+re*fr+10+lt*(Ee.showticklabels?1:.5);else if(St=$e,M==="bottom"&&(Qt=T.t+oe*fr+10+(je.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var Gt=C.text.split("
").length;Qt=T.t+oe*fr+10-Z-zme*lt*Gt}Wt((n?"h":"v")+Ee._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:St,y:Qt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var fr=e.select("."+gf.cbtitle),$e=fr.select("text"),St=[-l/2,l/2],Qt=fr.select(".h"+Ee._id+"title-math-group").node(),Gt=15.6;$e.node()&&(Gt=parseInt($e.node().style.fontSize,10)*zme);var _t;if(Qt?(_t=Gg.bBox(Qt),ut=_t.width,ot=_t.height,ot>Gt&&(St[1]-=(ot-Gt)/2)):$e.node()&&!$e.classed(gf.jsPlaceholder)&&(_t=Gg.bBox($e.node()),ut=_t.width,ot=_t.height),n){if(ot){if(ot+=5,M==="top")Ee.domain[1]-=ot/T.h,St[1]*=-1;else{Ee.domain[0]+=ot/T.h;var It=Nyt.lineCount($e);St[1]+=(1-It)*Gt}fr.attr("transform",Hg(St[0],St[1])),Ee.setScale()}}else ut&&(M==="right"&&(Ee.domain[0]+=(ut+lt/2)/T.w),fr.attr("transform",Hg(St[0],St[1])),Ee.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Hg(0,Math.round(T.h*(1-Ee.domain[1]))):Hg(Math.round(T.w*Ee.domain[0]),0)),pt.attr("transform",n?Hg(0,Math.round(-T.t)):Hg(Math.round(-T.l),0));var mt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(U);mt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),mt.exit().remove();var er=g.map(Ee.c2p).map(Math.round).sort(function(Br,Vr){return Br-Vr});mt.each(function(Br,Vr){var dt=[Vr===0?g[0]:(U[Vr]+U[Vr-1])/2,Vr===U.length-1?g[1]:(U[Vr]+U[Vr+1])/2].map(Ee.c2p).map(Math.round);n&&(dt[1]=U0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,er[0],er[1]));var Ge=P_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",P_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(P_.max(dt)-P_.min(dt),2));if(t._fillgradient)Gg.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=A(Br).replace("e-","");Ge.attr("fill",TV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Br){var Vr=_e,dt=Math.round(Ee.c2p(Br))+x.width/2%1;P_.select(this).attr("d","M"+(n?Vr+","+dt:dt+","+Vr)+(n?"h":"v")+Z).call(Gg.lineGroupStyle,x.width,P(Br),x.dash)}),pt.selectAll("g."+Ee._id+"tick,path").remove();var wr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Lr=Uy.calcTicks(Ee),ti=Uy.getTickSigns(Ee)[2];return Uy.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Uy.clipEnds(Ee,Lr):Lr,layer:pt,path:Uy.makeTickPath(Ee,wr,ti),transFn:Uy.makeTransTickFn(Ee)}),Uy.drawLabels(r,Ee,{vals:Lr,layer:pt,transFn:Uy.makeTransTickLabelFn(Ee),labelFns:Uy.makeLabelFns(Ee,wr)})}function Tr(){var fr,$e=Z+l/2;je.indexOf("inside")===-1&&(fr=Gg.bBox(pt.node()),$e+=n?fr.width:fr.height),Vt=ce.select("text");var St=0,Qt=n&&M==="top",Gt=!n&&M==="right",_t=0;if(Vt.node()&&!Vt.classed(gf.jsPlaceholder)){var It,mt=ce.select(".h"+Ee._id+"title-math-group").node();mt&&(n&&Ae||!n&&!Ae)?(fr=Gg.bBox(mt),St=fr.width,It=fr.height):(fr=Gg.bBox(ce.node()),St=fr.right-T.l-(n?_e:Se),It=fr.bottom-T.t-(n?Se:_e),!n&&M==="top"&&($e+=fr.height,_t=fr.height)),Gt&&(Vt.attr("transform",Hg(St/2+lt/2,0)),St*=2),$e=Math.max($e,n?St:It)}var er=(n?d:v)*2+$e+u+l/2,lr=0;!n&&C.text&&h==="bottom"&&b<=0&&(lr=er/2,er+=lr,_t+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=_t;var wr=u+l,Lr=(n?_e:Se)-wr/2-(n?d:0),ti=(n?Se:_e)-(n?N:v+_t-lr);e.select("."+gf.cbbg).attr("x",Lr).attr("y",ti).attr(n?"width":"height",Math.max(er-lr,2)).attr(n?"height":"width",Math.max(N+wr,2)).call(SV.fill,c).call(SV.stroke,t.bordercolor).style("stroke-width",u);var Br=Gt?Math.max(St-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Br).attr("y",(n?Se+v-N:_e)+(Qt?ot:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+ot:2*d+Br),2)).call(SV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Vr=n?Ce*er:0,dt=n?0:(1-Le)*er-_t;if(Vr=k?T.l-Vr:-Vr,dt=p?T.t-dt:-dt,e.attr("transform",Hg(Vr,dt)),!n&&(u||TV(c).getAlpha()&&!TV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,We=e.select("."+gf.cbbg).node(),tt=Gg.bBox(We),xt=Gg.getTranslate(e),Ie=2;Ge.each(function(di,ji){var In=0,wi=Je-1;if(ji===In||ji===wi){var On=Gg.bBox(this),qn=Gg.getTranslate(this),Fn;if(ji===wi){var ra=On.right+qn.x,la=tt.right+xt.x+Se-u-Ie+_;Fn=la-ra,Fn>0&&(Fn=0)}else if(ji===In){var Ut=On.left+qn.x,wt=tt.left+xt.x+Se+u+Ie;Fn=wt-Ut,Fn<0&&(Fn=0)}Fn&&(Je<3?this.setAttribute("transform","translate("+Fn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},ke=Ome[f],vt=qme[f],ir=Ome[h],ar=qme[h],vr=er-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*ir,xe.b=N*ar):(xe.t=xe.b=0,xe.yt=b+i*ir,xe.yb=b-i*ar),s==="pixels"?(xe.x=_,xe.l=er*ke,xe.r=er*vt):(xe.l=vr*ke,xe.r=vr*vt,xe.xl=_-o*ke,xe.xr=_+o*vt)):(a==="pixels"?(xe.x=_,xe.l=N*ke,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=_+i*ke,xe.xr=_-i*vt),s==="pixels"?(xe.y=1-b,xe.t=er*ir,xe.b=er*ar):(xe.t=vr*ir,xe.b=vr*ar,xe.yt=b-o*ir,xe.yb=b+o*ar));var ii=t.y<.5?"b":"t",pi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var $r={r:E.width-Lr-Vr,l:Lr+xe.r,b:E.height-ti-dt,t:ti+xe.b};k&&p?VI.autoMargin(r,t._id,xe):k?r._fullLayout._reservedMargin[t._id][ii]=$r[ii]:p||n?r._fullLayout._reservedMargin[t._id][pi]=$r[pi]:r._fullLayout._reservedMargin[t._id][ii]=$r[ii]}return U0.syncOrAsync([VI.previousPromises,Nt,sr,$t,VI.previousPromises,Tr],r)}function Zyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;UI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),AV(e)},moveFn:function(u,c){e.attr("transform",o+Hg(u,c)),s=UI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=UI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=UI.getCursor(s,l,t.xanchor,t.yanchor);AV(e,f)},doneFn:function(){if(AV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Fme.call("_guiRestyle",r,u,t._traceIndex):Fme.call("_guiRelayout",r,u)}}})}function Yyt(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";Vme.exports={moduleType:"component",name:"colorbar",attributes:uL(),supplyDefaults:Fq(),draw:Ume().draw,hasColorbar:kq()}});var jme=ye((Wlr,Hme)=>{"use strict";Hme.exports={moduleType:"component",name:"legend",layoutAttributes:CB(),supplyLayoutDefaults:PB(),draw:HB(),style:NB()}});var Xme=ye((Xlr,Wme)=>{"use strict";Wme.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 Yme=ye((Zlr,Zme)=>{"use strict";Zme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var kV=ye((Ylr,Qme)=>{"use strict";var Jyt=qa(),$me=Dr(),EV=$me.extendFlat,Kme=$me.extendDeep;function Jme(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 $yt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Qme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Kme([],i),s=Kme({},a,Jme(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 Qyt=Ab().EventEmitter,e1t=qa(),t1t=Dr(),eye=Oy(),r1t=kV(),i1t=YP(),n1t=KP();function a1t(e,t){var r=new Qyt,n=r1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=eye.getDelay(i._fullLayout);setTimeout(function(){var l=i1t(i),u=document.createElement("canvas");u.id=t1t.randstr(),r=n1t({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=eye.getRedrawFunc(i);return e1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}tye.exports=a1t});var aye=ye((Jlr,nye)=>{"use strict";var iye=Oy(),o1t={getDelay:iye.getDelay,getRedrawFunc:iye.getRedrawFunc,clone:kV(),toSVG:YP(),svgToImg:KP(),toImage:rye(),downloadImage:sU()};nye.exports=o1t});var sye=ye(Vy=>{"use strict";Vy.version=g6().version;bee();une();var s1t=qa(),T4=Vy.register=s1t.register,LV=Ede(),oye=Object.keys(LV);for(GI=0;GI{"use strict";lye.exports=sye()});var zm=ye((eur,vye)=>{"use strict";var Bf=pf(),cye=df().axisHoverFormat,{hovertemplateAttrs:l1t,texttemplateAttrs:u1t,templatefallbackAttrs:fye}=Ll(),dye=Tu(),c1t=ec(),hye=A_(),f1t=Pd().pattern,c2=Ao().extendFlat,PV=c1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),h1t=Bf.marker,d1t=h1t.line,v1t=c2({},d1t.width,{dflt:0}),p1t=c2({width:v1t,editType:"calc"},dye("marker.line")),g1t=c2({line:p1t,editType:"calc"},dye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:f1t,cornerradius:{valType:"any",editType:"calc"}});vye.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:cye("x"),yhoverformat:cye("y"),text:Bf.text,texttemplate:u1t({editType:"plot"},{keys:hye.eventDataKeys}),texttemplatefallback:fye({editType:"plot"}),hovertext:Bf.hovertext,hovertemplate:l1t({},{keys:hye.eventDataKeys}),hovertemplatefallback:fye(),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:c2({},PV,{}),insidetextfont:c2({},PV,{}),outsidetextfont:c2({},PV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:c2({},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:g1t,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 jI=ye((tur,pye)=>{"use strict";pye.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 WI=ye((rur,yye)=>{"use strict";var m1t=ka(),gye=pv().hasColorscale,mye=td(),y1t=Dr().coercePattern;yye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=gye(t,"marker");s&&mye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",m1t.defaultLine),gye(t,"marker.line")&&mye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),y1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=ye((iur,Aye)=>{"use strict";var _ye=Eo(),kT=Dr(),xye=ka(),_1t=qa(),x1t=oT(),b1t=Dg(),w1t=WI(),T1t=e2(),bye=zm(),XI=kT.coerceFont;function A1t(e,t,r,n){function i(u,c){return kT.coerce(e,t,bye,u,c)}var a=x1t(e,t,n,i);if(!a){t.visible=!1;return}b1t(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");Tye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),w1t(e,t,i,r,n);var s=(t.marker.line||{}).color,l=_1t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||xye.defaultLine,{axis:"y"}),l(e,t,s||xye.defaultLine,{axis:"x",inherit:"y"}),kT.coerceSelectionMarkerOpacity(t,i)}function S1t(e,t){var r,n;function i(s,l){return kT.coerce(n._input,n,bye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&_ye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Tye(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",_=d||i==="outside";if(v||_){var b=XI(n,"textfont",r.font),p=kT.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete p.color,XI(n,"insidetextfont",p),h){var T=kT.extendFlat({},b);E&&delete T.color,XI(n,"pathbar.textfont",T)}_&&XI(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")}Aye.exports={supplyDefaults:A1t,crossTraceDefaults:S1t,handleText:Tye,validateCornerradius:wye}});var IV=ye((nur,Sye)=>{"use strict";var M1t=qa(),E1t=ho(),k1t=Dr(),C1t=jI(),L1t=i0().validateCornerradius;Sye.exports=function(e,t,r){function n(_,b){return k1t.coerce(e,t,C1t,_,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=E1t.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=L1t(v)}});var A4=ye((aur,Mye)=>{"use strict";var CT=Dr();Mye.exports=function(t,r){for(var n=0;n{"use strict";var Eye=ho(),kye=zg(),Cye=pv().hasColorscale,Lye=gv(),P1t=A4(),I1t=O0();Pye.exports=function(t,r){var n=Eye.getFromId(t,r.xaxis||"x"),i=Eye.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=kye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=kye(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 R1t=Oa(),D1t=Dr();function F1t(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=R1t.select(this).select("text");D1t.setTransormAndDisplay(u,l)}})}}function z1t(e,t,r){if(r.uniformtext.mode){var n=Rye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var q1t=Eo(),B1t=fd(),Fye=Dr().isArrayOrTypedArray;f2.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};f2.coerceNumber=function(e,t,r){if(q1t(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};f2.coerceColor=function(e,t,r){return B1t(t).isValid()?t:r!==void 0?r:e.dflt};f2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};f2.getValue=function(e,t){var r;return Fye(e)?t{"use strict";var S4=Oa(),N1t=ka(),M4=So(),zye=Dr(),Oye=qa(),qye=bv().resizeText,RV=zm(),U1t=RV.textfont,V1t=RV.insidetextfont,G1t=RV.outsidetextfont,Qd=ZI();function H1t(e){var t=S4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");qye(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)&&S4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=S4.select(this),o=i[0].trace;Bye(a,o,e)}),Oye.getComponentMethod("errorbars","style")(t)}function Bye(e,t,r){M4.pointStyle(e.selectAll("path"),t,r),Nye(e,t,r)}function Nye(e,t,r){e.selectAll("text").each(function(n){var i=S4.select(this),a=zye.ensureUniformFontSize(r,Uye(i,n,t,r));M4.font(i,a)})}function j1t(e,t,r){var n=t[0].trace;n.selectedpoints?W1t(r,n,e):(Bye(r,n,e),Oye.getComponentMethod("errorbars","style")(r))}function W1t(e,t,r){M4.selectedPointStyle(e.selectAll("path"),t),X1t(e.selectAll("text"),t,r)}function X1t(e,t,r){e.each(function(n){var i=S4.select(this),a;if(n.selected){a=zye.ensureUniformFontSize(r,Uye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),M4.font(i,a)}else M4.selectedTextStyle(i,t)})}function Uye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=jye(t,r);a=Gye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Hye(r,t.i,i));return a}function Vye(e,t,r){return DV(U1t,e.textfont,t,r)}function Gye(e,t,r,n){var i=Vye(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:N1t.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}),DV(V1t,e.insidetextfont,t,i)}function Hye(e,t,r){var n=Vye(e,t,r);return DV(G1t,e.outsidetextfont,t,n)}function DV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.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}Wye.exports={style:H1t,styleTextPoints:Nye,styleOnSelect:j1t,getInsideTextFont:Gye,getOutsideTextFont:Hye,getBarColor:jye,resizeText:qye}});var d2=ye((cur,e1e)=>{"use strict";var YI=Oa(),KI=Eo(),Dd=Dr(),Z1t=Zl(),Y1t=ka(),I_=So(),K1t=qa(),JI=ho().tickText,Xye=bv(),J1t=Xye.recordMinTextSize,$1t=Xye.clearMinTextSize,FV=V0(),LT=ZI(),Q1t=A_(),Zye=zm(),e_t=Zye.text,t_t=Zye.textposition,r_t=ip().appendArrayPointValue,Gv=Q1t.TEXTPAD;function i_t(e){return e.id}function n_t(e){if(e.ids)return i_t}function zV(e){return(e>0)-(e<0)}function Om(e,t){return e0}function o_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},$1t("bar",l));var c=Dd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=YI.select(this),d=f[0].trace,v=f[0].t,_=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;_&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=Kye(i),C=Dd.ensureSingle(h,"g","points"),M=n_t(d),g=C.selectAll("g.point").data(Dd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(A,z){var O=YI.select(this),U=a_t(A,o,s,L),G=U[0][0],Z=U[0][1],j=U[1][0],N=U[1][1],H=(L?Z-G:N-j)===0;H&&E&<.getLineWidth(d,A)&&(H=!1),H||(H=!KI(G)||!KI(Z)||!KI(j)||!KI(N)),A.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,oe;if(d.type==="waterfall"){if(!H){var _e=d[A.dir].marker;re=_e.line.width,oe=_e.color}}else re=LT.getLineWidth(d,A),oe=A.mc||d.marker.color;function Ce($e){var St=YI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?YI.round(Math.round($e)-St,2):$e}function Le($e,St,Qt){return Qt&&$e===St?$e:Math.abs($e-St)>=2?Ce($e):$e>St?Math.ceil($e):Math.floor($e)}var ge=Y1t.opacity(oe),ie=ge<1||re>.01?Ce:Le;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,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Ae($e,St){if(!$e)return 0;var Qt=Math.abs(L?N-j:Z-G),Gt=Math.abs(L?Z-G:N-j),_t=ie(Math.abs(Se(Ee,!0)-Se(0,!0))),It=A.hasB?Math.min(Qt/2,Gt/2):Math.min(Qt/2,_t),mt;if(St==="%"){var er=Math.min(50,$e);mt=Qt*(er/100)}else mt=$e;return ie(Math.max(Math.min(mt,It),0))}var Be=k||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,me,De="M"+G+","+j+"V"+N+"H"+Z+"V"+j+"Z",ce=0;if(Be&&A.s){var je=zV(A.s0)===0||zV(A.s)===zV(A.s0)?A.s1:A.s0;if(ce=ie(A.hasB?0:Math.abs(Se(Ee,!0)-Se(je,!0))),ce0?Math.sqrt(ce*(2*Be-ce)):0,Wt=lt>0?Math.max:Math.min;Pe="M"+G+","+j+"V"+(N-ot*pt)+"H"+Wt(Z-(Be-ce)*lt,G)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Z+","+(N-Be*pt-ut)+"V"+(j+Be*pt+ut)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Wt(Z-(Be-ce)*lt,G)+","+(j+ot*pt)+"Z"}else if(A.hasB)Pe="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Vt+" "+G+","+(j+Be*pt)+"V"+(N-Be*pt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Z+","+(N-Be*pt)+"V"+(j+Be*pt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(N-j)+ce;var Nt=me0?Math.sqrt(ce*(2*Be-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*lt)+","+j+"V"+sr(N-(Be-ce)*pt,j)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(G+Be*lt-$t)+","+N+"H"+(Z-Be*lt+$t)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(Z-Nt*lt)+","+sr(N-(Be-ce)*pt,j)+"V"+j+"Z"}}else Pe=De}else Pe=De;var Tr=Yye(Dd.ensureSingle(O,"path"),l,i,a);if(Tr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-j))||H&&e._context.staticPlot?"M0,0Z":Pe).call(I_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var fr=I_.makePointStyleFns(d);I_.singlePointStyle(A,Tr,d,fr,e)}s_t(e,t,O,f,z,G,Z,j,N,Be,ce,i,a),t.layerClipId&&I_.hideOutsideRangePoint(A,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;I_.setClipUrl(h,P?null:t.layerClipId,e)});K1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function s_t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,_=e._fullLayout,b;function p(me,De,ce){var je=Dd.ensureSingle(me,"text").text(De).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(I_.font,ce).call(Z1t.convertToTspans,e);return je}var k=n[0].trace,E=k.orientation==="h",T=c_t(_,n,i,d,v);b=f_t(k,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],C=!L||x._outmost,M=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=_.font,A=FV.getBarColor(n[i],k),z=FV.getInsideTextFont(k,i,P,A),O=FV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ce>0,ie;g?M?ie=h2(N-2*u,H,_e,Ce,E)||h2(N,H-2*u,_e,Ce,E):E?ie=h2(N-(u-c),H,_e,Ce,E)||h2(N,H-2*(u-c),_e,Ce,E):ie=h2(N,H-(u-c),_e,Ce,E)||h2(N-2*(u-c),H,_e,Ce,E):ie=h2(N,H,_e,Ce,E),ge&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Le=Dd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,T,Le);var Se=re.attr("transform");if(re.attr("transform",""),oe=I_.bBox(re.node()),_e=oe.width,Ce=oe.height,re.attr("transform",Se),_e<=0||Ce<=0){re.remove();return}}var Ee=k.textangle,Ae,Be;b==="outside"?(Be=k.constraintext==="both"||k.constraintext==="outside",Ae=u_t(a,o,s,l,oe,{isHorizontal:E,constrained:Be,angle:Ee})):(Be=k.constraintext==="both"||k.constraintext==="inside",Ae=Qye(a,o,s,l,oe,{isHorizontal:E,constrained:Be,angle:Ee,anchor:U,hasB:M,r:u,overhead:c})),Ae.fontSize=Le.size,J1t(k.type==="histogram"?"bar":k.type,Ae,_),x.transform=Ae;var Pe=Yye(re,_,f,h);Dd.setTransormAndDisplay(Pe,Ae)}function h2(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 Jye(e){return e==="auto"?0:e}function $ye(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 Qye(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,_=a.hasB,b=a.r,p=a.overhead,k=i.width,E=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=Jye(l);l==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kGv){var A=l_t(e,t,r,n,M,b,p,o,_);g=A.scale,P=A.pad}else g=1,s&&(g=Math.min(1,T/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,U=(e+Gv)*v+(t-Gv)*d,G=(r+n)/2,Z=0,j=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||_)&&(x+=P);var H=o?Om(e,t):Om(r,n);o?f?(U=e+H*x,Z=-H*N):(U=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:O,targetX:U,targetY:G,anchorX:Z,anchorY:j,scale:g,rotate:C}}function l_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,_,b,p,k,E;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?(_=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*_*p))/(2*_)):l?(_=(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*_*p))/(2*_)):(_=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*_*p))/(2*_)),k=Math.min(1,k),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*k)/2)*(f-(c-i.y*k)/2)))-o):E=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:E}}function u_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 _=Jye(l),b=$ye(i,_),p=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,M=o?Om(t,e):Om(r,n);return o?(T=t-M*d,x=M*p):(L=n+M*d,C=-M*p),{textX:k,textY:E,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:v,rotate:_}}function c_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=h_t(e,t,r,n,i):a.textinfo?s=d_t(t,r,n,i):s=LT.getValue(a.text,r),LT.coerceString(e_t,s)}function f_t(e,t){var r=LT.getValue(e.textposition,t);return LT.coerceEnumerated(t_t,r)}function h_t(e,t,r,n,i){var a=t[0].trace,o=Dd.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 _(x){return JI(h,h.c2l(x),!0).text}function b(x){return JI(v,v.c2l(x),!0).text}var p=t[r],k={};k.label=p.p,k.labelLabel=k[f+"Label"]=_(p.p);var E=Dd.castOption(a,p.i,"text");(E===0||E)&&(k.text=E),k.value=p.s,k.valueLabel=k[d+"Label"]=b(p.s);var T={};r_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=Dd.formatPercent(p.begR),k.percentPrevious=p.difR,k.percentPreviousLabel=Dd.formatPercent(p.difR),k.percentTotal=p.sumR,k.percenTotalLabel=Dd.formatPercent(p.sumR));var L=Dd.castOption(a,p.i,"customdata");return L&&(k.customdata=L),Dd.texttemplateString({data:[T,k,a._meta],fallback:a.texttemplatefallback,labels:k,locale:e._d3locale,template:o})}function d_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 JI(x,L,!0).text}function u(L){var x=a?r:n;return JI(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(l(e[t].p)),_("text")&&(v=Dd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,k=p-b;_("initial")&&d.push(u(k)),_("delta")&&d.push(u(b)),_("final")&&d.push(u(p))}if(s){_("value")&&d.push(u(f.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var T=E>1;_("percent initial")&&(v=Dd.formatPercent(f.begR),T&&(v+=" of initial"),d.push(v)),_("percent previous")&&(v=Dd.formatPercent(f.difR),T&&(v+=" of previous"),d.push(v)),_("percent total")&&(v=Dd.formatPercent(f.sumR),T&&(v+=" of total"),d.push(v))}return d.join("
")}e1e.exports={plot:o_t,toMoveInsideBar:Qye}});var PT=ye((fur,n1e)=>{"use strict";var E4=vf(),v_t=qa(),t1e=ka(),p_t=Dr().fillText,g_t=ZI().getLineWidth,OV=ho().hoverLabelText,m_t=fs().BADNUM;function y_t(e,t,r,n,i){var a=r1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=i1e(s,l),v_t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function r1e(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,_,b,p,k;o.orientation==="h"?(h=r,d=t,v="y",_="x",b=G,p=z):(h=t,d=r,v="x",_="y",p=G,b=z);var E=o[v+"period"],T=l||E;function L(ie){return C(ie,-1)}function x(ie){return C(ie,1)}function C(ie,Se){var Ee=ie.w;return ie[v]+Se*Ee/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?x:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(x(ie),ie.p+s.bardelta/2)};function A(ie,Se,Ee){return i.finiteRange&&(Ee=0),E4.inbox(ie-h,Se-h,Ee+Math.min(1,Math.abs(Se-ie)/k)-1)}function z(ie){return A(g(ie),P(ie),c)}function O(ie){return A(L(ie),x(ie),f)}function U(ie){var Se=ie[_];if(u){var Ee=Math.abs(ie.rawS)||0;d>0?Se+=Ee:d<0&&(Se-=Ee)}return Se}function G(ie){var Se=d,Ee=ie.b,Ae=U(ie);return E4.inbox(Ee-Se,Ae-Se,c+(Ae-Se)/(Ae-Ee)-1)}function Z(ie){var Se=d,Ee=ie.b,Ae=U(ie);return E4.inbox(Ee-Se,Ae-Se,f+(Ae-Se)/(Ae-Ee)-1)}var j=e[v+"a"],N=e[_+"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=E4.getDistanceFunction(n,b,p,H);if(E4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==m_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 oe=e.index,_e=a[oe],Ce=o.base?_e.b+_e.s:_e.s;e[_+"0"]=e[_+"1"]=N.c2p(_e[_],!0),e[_+"LabelVal"]=Ce;var Le=s.extents[s.extents.round(_e.p)];e[v+"0"]=j.c2p(l?g(_e):Le[0],!0),e[v+"1"]=j.c2p(l?P(_e):Le[1],!0);var ge=_e.orig_p!==void 0;return e[v+"LabelVal"]=ge?_e.orig_p:_e.p,e.labelLabel=OV(j,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=OV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=OV(N,_e.b,o[_+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=j.c2p(_e.p,!0),p_t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function i1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=g_t(e,t);if(t1e.opacity(r))return r;if(t1e.opacity(n)&&i)return n}n1e.exports={hoverPoints:y_t,hoverOnBars:r1e,getTraceColor:i1e}});var o1e=ye((hur,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 IT=ye((dur,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",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";l1e.exports={attributes:zm(),layoutAttributes:jI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:IV(),calc:Iye(),crossTraceCalc:t2().crossTraceCalc,colorbar:$d(),arraysToCalcdata:A4(),plot:d2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:PT().hoverPoints,eventData:o1e(),selectPoints:IT(),moduleType:"trace",name:"bar",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var f1e=ye((pur,c1e)=>{"use strict";c1e.exports=u1e()});var k4=ye((gur,p1e)=>{"use strict";var x_t=Pg(),G0=pf(),h1e=zm(),b_t=Ih(),d1e=df().axisHoverFormat,{hovertemplateAttrs:w_t,templatefallbackAttrs:T_t}=Ll(),Gy=Ao().extendFlat,RT=G0.marker,v1e=RT.line;p1e.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:d1e("x"),yhoverformat:d1e("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({},RT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gy({},RT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gy({},RT.angle,{arrayOk:!1,editType:"calc"}),size:Gy({},RT.size,{arrayOk:!1,editType:"calc"}),color:Gy({},RT.color,{arrayOk:!1,editType:"style"}),line:{color:Gy({},v1e.color,{arrayOk:!1,dflt:b_t.defaultLine,editType:"style"}),width:Gy({},v1e.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:x_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:h1e.offsetgroup,alignmentgroup:h1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gy({},G0.text,{}),hovertext:Gy({},G0.hovertext,{}),hovertemplate:w_t({}),hovertemplatefallback:T_t(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var C4=ye((mur,g1e)=>{"use strict";g1e.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 P4=ye((yur,x1e)=>{"use strict";var H0=Dr(),A_t=qa(),S_t=ka(),M_t=Dg(),E_t=e2(),m1e=V3(),L4=k4();function k_t(e,t,r,n){function i(v,_){return H0.coerce(e,t,L4,v,_)}if(y1e(e,t,i,n),t.visible!==!1){M_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",S_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,L4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),_1e(e,t,i,{prefix:"box"}),i("zorder")}}function y1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return H0.validate(e[P],L4[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))}var h=i(o),d=i(s),v=h&&H0.minRowLength(o),_=d&&H0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},k,E;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",E=l;break;case"10":k="v",E=Math.min(l,_);break;case"20":k="h",E=Math.min(l,s.length);break;case"01":k="h",E=Math.min(l,v);break;case"02":k="v",E=Math.min(l,o.length);break;case"12":k="v",E=Math.min(l,_,o.length);break;case"21":k="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var x=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(_,v):E=Math.min(v)):d>0?(k="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",k);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=A_t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function _1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,L4,"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 C_t(e,t){var r,n;function i(l){return H0.coerce(n._input,n,L4,l)}for(var a=0;a{"use strict";var L_t=qa(),P_t=Dr(),I_t=C4();function b1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var BV=Eo(),QI=ho(),D_t=zg(),yh=Dr(),n0=fs().BADNUM,Hy=yh._;P1e.exports=function(t,r){var n=t._fullLayout,i=QI.getFromId(t,r.xaxis||"x"),a=QI.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 _=F_t(r,d,h,n[s]),b=_[0],p=_[1],k=yh.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,x,C,M,g,P,A=(r.boxpoints||r.points)==="all"?yh.identity:function(Vt){return Vt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Vt){return c.d2c((r[Vt]||[])[l])},U=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var j=O("lowerfence");L.lf=j!==n0&&j<=L.q1?j:M1e(L,C,M);var N=O("upperfence");L.uf=N!==n0&&N>=L.q3?N:E1e(L,C,M);var H=O("mean");L.mean=H!==n0?H:M?yh.mean(C,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=H!==n0&&re>=0?re:M?yh.stdev(C,M,L.mean):L.q3-L.q1,L.lo=k1e(L),L.uo=C1e(L);var oe=O("notchspan");oe=oe!==n0&&oe>0?oe:L1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Ce=L.uf;r.boxpoints&&C.length&&(_e=Math.min(_e,C[0]),Ce=Math.max(Ce,C[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Ce=Math.max(Ce,L.un)),L.min=_e,L.max=Ce}else{yh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Le;L.med!==n0?Le=L.med:L.q1!==n0?L.q3!==n0?Le=(L.q1+L.q3)/2:Le=L.q1:L.q3!==n0?Le=L.q3:Le=0,L.med=Le,L.q1=L.q3=Le,L.lf=L.uf=Le,L.mean=L.sd=Le,L.ln=L.un=Le,L.min=L.max=Le}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(A),o.push(L)}}r._extremes[c._id]=QI.findExtremes(c,[U,G],{padded:!0})}else{var ge=c.makeCalcdata(r,f),ie=z_t(E,T),Se=E.length,Ee=O_t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],x=L.pts=Ee[l].sort(A1e),C=L[f]=x.map(S1e),M=C.length,L.min=C[0],L.max=C[M-1],L.mean=yh.mean(C,M),L.sd=yh.stdev(C,M,L.mean)*r.sdmultiple,L.med=yh.interp(C,.5),M%2&&(De||ce)){var je,lt;De?(je=C.slice(0,M/2),lt=C.slice(M/2+1)):ce&&(je=C.slice(0,M/2+1),lt=C.slice(M/2)),L.q1=yh.interp(je,.5),L.q3=yh.interp(lt,.5)}else L.q1=yh.interp(C,.25),L.q3=yh.interp(C,.75);L.lf=M1e(L,C,M),L.uf=E1e(L,C,M),L.lo=k1e(L),L.uo=C1e(L);var pt=L1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,Be=Math.min(Be,L.ln),Pe=Math.max(Pe,L.un),L.pts2=x.filter(A),o.push(L)}r.notched&&yh.isTypedArray(ge)&&(ge=Array.from(ge)),r._extremes[c._id]=QI.findExtremes(c,r.notched?ge.concat([Be,Pe]):ge,{padded:!0})}return q_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 F_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=D_t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||BV(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 I1e=ho(),B_t=Dr(),N_t=Kb().getAxisGroup,R1e=["v","h"];function U_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(C==="positive"?(N=M*(x?1:.5),oe=re,H=oe=P):C==="negative"?(N=oe=P,H=M*(x?1:.5),_e=re):(N=H=M,oe=_e=re),Ee){var Ae=T.pointpos,Be=T.jitter,Pe=T.marker.size/2,me=0;Ae+Be>=0&&(me=re*(Ae+Be),me>N?(Se=!0,ge=Pe,Ce=me):me>oe&&(ge=Pe,Ce=N)),me<=N&&(Ce=N);var De=0;Ae-Be<=0&&(De=-re*(Ae-Be),De>H?(Se=!0,ie=Pe,Le=De):De>_e&&(ie=Pe,Le=H)),De<=H&&(Le=H)}else Ce=N,Le=H;var ce=new Array(c.length);for(u=0;u{"use strict";var DT=Oa(),v2=Dr(),V_t=So(),z1e=5,G_t=.01;function H_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;v2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=DT.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),O1e(l,{pos:h,val:d},f,c,i),q1e(l,{x:a,y:o},f,c),B1e(l,{pos:h,val:d},f,c)})}function O1e(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,_=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?v2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return DT.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+u,!0),L=s.l2p(T-b)+f,x=s.l2p(T+p)+f,C=l?(L+x)/2:s.l2p(T)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*C:s.l2p(T-c)+f,P=l?x*M+(1-M)*C:s.l2p(T+c)+f,A=s.l2p(T-b*_)+f,z=s.l2p(T+p*_)+f,O=r.sizemode==="sd",U=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=v2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),j=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(j?E.min:E.lf,!0),H=o.c2p(j?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?DT.select(this).attr("d","M"+Z+","+A+"V"+z+"M"+U+","+L+"V"+x+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+x:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+H+(h===0?"":"M"+N+","+g+"V"+P+"M"+H+","+g+"V"+P):"")):DT.select(this).attr("d","M"+A+","+Z+"H"+z+"M"+L+","+U+"H"+x+(v?"V"+re+"L"+z+","+Z+"L"+x+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+A+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+H+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+H+"H"+P):""))})}function q1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;v2.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,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,p=_*G_t,k=[],E=0,T;if(r.jitter){if(_===0)for(E=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(V_t.translatePoints,i,a)}function B1e(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?v2.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),_=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(_+b)/2:a.l2p(v)+l,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?DT.select(this).attr("d","M"+k+","+_+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+k+","+_+"L"+T+","+p+"Z":"")):DT.select(this).attr("d","M"+_+","+k+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+_+","+k+"L"+p+","+T+"Z":""))})}N1e.exports={plot:H_t,plotBoxAndWhiskers:O1e,plotPoints:q1e,plotBoxMean:B1e}});var r8=ye((Tur,U1e)=>{"use strict";var UV=Oa(),VV=ka(),GV=So();function j_t(e,t,r){var n=r||UV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=UV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(VV.stroke,d).call(VV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=UV.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(VV.stroke,o.line.color);var c=a.selectAll("path.point");GV.pointStyle(c,o,e)}})}function W_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?GV.selectedPointStyle(i,n):GV.pointStyle(i,n,e)}U1e.exports={style:j_t,styleOnSelect:W_t}});var jV=ye((Aur,j1e)=>{"use strict";var X_t=ho(),HV=Dr(),R_=vf(),V1e=ka(),Z_t=HV.fillText;function Y_t(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(G1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=H1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function G1e(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,_,b,p,k,E,T,L=l.bdPos,x,C,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(_)};u&&s.side!=="both"?(s.side==="positive"&&(k=function(Pe){var me=g(Pe);return R_.inbox(me,me+M,E)},x=L,C=0),s.side==="negative"&&(k=function(Pe){var me=g(Pe);return R_.inbox(me-M,me,E)},x=0,C=L)):(k=function(Pe){var me=g(Pe);return R_.inbox(me-M,me+M,E)},x=C=L);var P;u?P=function(Pe){return R_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return R_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,_=r,b=P,p=k,c="y",h=o,f="x",d=a):(v=r,_=t,b=k,p=P,c="x",h=a,f="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function z(Pe){return(b(Pe)+p(Pe))/2}var O=R_.getDistanceFunction(n,b,p,z);if(R_.getClosest(i,O,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,Z=(s.marker||{}).color;V1e.opacity(G)&&s.line.width?e.color=G:V1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(U.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(U.pos+l.bPos+x,!0),e[c+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var j=c+"Spike";e.spikeDistance=z(U)*T/E,e[j]=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"],oe=d.range[1]{"use strict";W1e.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 WV=ye((Mur,Z1e)=>{"use strict";Z1e.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";Y1e.exports={attributes:k4(),layoutAttributes:C4(),supplyDefaults:P4().supplyDefaults,crossTraceDefaults:P4().crossTraceDefaults,supplyLayoutDefaults:$I().supplyLayoutDefaults,calc:NV(),crossTraceCalc:e8().crossTraceCalc,plot:t8().plot,style:r8().style,styleOnSelect:r8().styleOnSelect,hoverPoints:jV().hoverPoints,eventData:X1e(),selectPoints:WV(),moduleType:"trace",name:"box",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var $1e=ye((kur,J1e)=>{"use strict";J1e.exports=K1e()});var FT=ye((Cur,e_e)=>{"use strict";var K_t=Tu(),{extendFlat:Pp}=Ao(),J_t=Gl(),{axisHoverFormat:XV}=df(),$_t=ec(),{hovertemplateAttrs:Q_t,templatefallbackAttrs:Q1e,texttemplateAttrs:ext}=Ll(),a0=pf();e_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:XV("x"),yhoverformat:XV("y"),zhoverformat:XV("z",1),hovertemplate:Q_t(),hovertemplatefallback:Q1e(),texttemplate:ext({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:Q1e({editType:"plot"}),textfont:$_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},J_t.showlegend,{dflt:!1}),zorder:a0.zorder},K_t("",{cLetter:"z",autoColorDflt:!1}))});var n8=ye((Lur,r_e)=>{"use strict";var txt=Eo(),i8=Dr(),rxt=qa();r_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(i8.isArray1D(s)){l=n(a),u=n(o);var c=i8.minRowLength(l),f=i8.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=t_e(a,n),u=t_e(o,n),!ixt(s))return 0;n("transpose"),r._length=null}var h=rxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function t_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 ixt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var i_e=Dr();n_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=i_e.extendFlat({},r.font,{color:"auto",size:"auto"});i_e.coerceFont(t,"textfont",n)}});var ZV=ye((Iur,a_e)=>{"use strict";a_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var l_e=ye((Rur,s_e)=>{"use strict";var o_e=Dr(),nxt=n8(),axt=I4(),oxt=Dg(),sxt=ZV(),lxt=td(),uxt=FT();s_e.exports=function(t,r,n,i){function a(s,l){return o_e.coerce(t,r,uxt,s,l)}var o=nxt(t,r,a,i);if(!o){r.visible=!1;return}oxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),axt(a,i),sxt(t,r,a,i),a("hoverongaps"),a("connectgaps",o_e.isArray1D(r.z)&&r.zsmooth!==!1),lxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var YV=ye((Dur,u_e)=>{"use strict";var zT=Eo();u_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return zT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return zT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(zT(i))if(i=Number(i),zT(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(zT(i))if(i=Number(i),zT(r[e])){if(r[e]{"use strict";c_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";f_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var OT=fs(),p2=OT.ONEAVGYEAR,h_e=OT.ONEAVGMONTH,o8=OT.ONEDAY,d_e=OT.ONEHOUR,v_e=OT.ONEMIN,p_e=OT.ONESEC,g_e=ho().tickIncrement;__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(a8(u+s,u+l,i,a),a8(c+s,c+l,i,a)),h=Math.min(a8(u+o,u+s,i,a),a8(c+o,c+s,i,a)),d,v;if(f>h&&ho8){var _=d===p2?1:6,b=d===p2?"M12":"M1";return function(p,k){var E=i.c2d(p,p2,a),T=E.indexOf("-",_);T>0&&(E=E.slice(0,T));var L=i.d2c(E,0,a);if(Lp_e?e>o8?e>p2*1.1?p2:e>h_e*1.1?h_e:o8:e>d_e?d_e:e>v_e?v_e:p_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function cxt(e,t,r,n,i,a){if(n&&e>o8){var o=y_e(t,i,a),s=y_e(r,i,a),l=e===p2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function y_e(e,t,r){var n=t.c2d(e,p2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var tG=ye((qur,A_e)=>{"use strict";var QV=Eo(),Hv=Dr(),x_e=qa(),j0=ho(),{hasColorscale:b_e}=pv(),w_e=gv(),fxt=A4(),T_e=YV(),hxt=KV(),dxt=JV(),vxt=$V();function pxt(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=eG(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",_=[],b=v?_:h,p=[],k=[],E=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,M,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=x==="max"||x==="min",z=A?null:0,O=T_e.count,U=hxt[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",O=T_e[x]),c=Z(h.start),g=Z(h.end)+(c-j0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){Be=c;break}for(c=Ae;c<=Be;c++)if(QV(r[c])&&QV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(_[c]),Pe.ph1=ie(_[c+1],!0))),Ee.push(Pe)}return Ee.length===1&&(Ee[0].width1=j0.tickIncrement(Ee[0].p,h.size,!1,l)-Ee[0].p),b_e(t,"marker")&&w_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),b_e(t,"marker.line")&&w_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),fxt(Ee,t),Hv.isArrayOrTypedArray(t.selectedpoints)&&Hv.tagSelected(Ee,t,Le),Ee}function eG(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,_,b,p=function(ge){return r.r2c(ge,0,d)},k=function(ge){return r.c2r(ge,0,d)},E=r.type==="date"?function(ge){return ge||ge===0?Hv.cleanDate(ge,null,d):null}:function(ge){return QV(ge)?Number(ge):null};function T(ge,ie,Se){ie[ge+"Found"]?(ie[ge]=E(ie[ge]),ie[ge]===null&&(ie[ge]=Se[ge])):(_[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,M=!1;for(c=0;cr.r2l(j)&&(H=j0.tickIncrement(H,l.size,!0,d)),O.start=r.l2r(H),Z||Hv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Ce=_e?oe:Hv.aggNums(Math.max,null,v);O.end=r.l2r(Ce),_e||Hv.nestedProperty(t,a+".start").set(O.end)}var Le="autobin"+n;return t._input[Le]===!1&&(t._input[a]=Hv.extendFlat({},t[a]||{}),delete t._input[Le],delete t[Le]),[O,v]}function gxt(e,t,r,n,i){var a=e._fullLayout,o=mxt(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())}}A_e.exports={calc:pxt,calcAllAutoBins:eG}});var I_e=ye((Bur,P_e)=>{"use strict";var S_e=Dr(),qT=ho(),M_e=YV(),_xt=KV(),xxt=JV(),bxt=$V(),E_e=tG().calcAllAutoBins;P_e.exports=function(t,r){var n=qT.getFromId(t,r.xaxis),i=qT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(It){return n.r2c(It,0,a)},l=function(It){return i.r2c(It,0,o)},u=function(It){return n.c2r(It,0,a)},c=function(It){return i.c2r(It,0,o)},f,h,d,v,_=E_e(t,r,n,"x"),b=_[0],p=_[1],k=E_e(t,r,i,"y"),E=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=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",A=[],z=[],O=g?A:b,U=P?z:E,G=0,Z=[],j=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,oe=H==="max"||H==="min",_e=oe?null:0,Ce=M_e.count,Le=_xt[N],ge=!1,ie=[],Se=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&H!=="count"&&(ge=H==="avg",Ce=M_e[H]);var Ae=b.size,Be=s(b.start),Pe=s(b.end)+(Be-qT.tickIncrement(Be,Ae,!1,a))/1e6;for(f=Be;f=0&&d=0&&v{"use strict";var qm=Dr(),R_e=fs().BADNUM,D_e=zg();F_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=D_e(t,r,i,l).vals,u=D_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&qm.isArray1D(c),h=t.hovertext,d=h!==void 0&&qm.isArray1D(h),v,_,b=qm.distinctVals(l),p=b.vals,k=qm.distinctVals(u),E=k.vals,T=[],L,x,C=E.length,M=p.length;for(v=0;v{"use strict";var wxt=Eo(),Txt=Dr(),l8=fs().BADNUM;z_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(wxt(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var Axt=Dr(),O_e=.01,Sxt=[[-1,0],[1,0],[0,-1],[0,1]];function Mxt(e){return .5-.25*Math.min(1,e*.5)}B_e.exports=function(t,r){var n=1,i;for(q_e(t,r),i=0;iO_e;i++)n=q_e(t,r,Mxt(n));return n>O_e&&Axt.log("interp2d didn't converge quickly",n),t};function q_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-_))))}return n}});var f8=ye((Gur,N_e)=>{"use strict";var Ext=Dr().maxRowLength;N_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=Ext(t),u,c,f,h,d,v,_,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&&(_[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(p,k){return k[2]-p[2]})}});var rG=ye((Hur,G_e)=>{"use strict";var U_e=qa(),V_e=Dr().isArrayOrTypedArray;G_e.exports=function(t,r,n,i,a,o){var s=[],l=U_e.traceIs(t,"contour"),u=U_e.traceIs(t,"histogram"),c,f,h,d=V_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 H_e=qa(),iG=Dr(),h8=ho(),j_e=zg(),kxt=I_e(),Cxt=gv(),Lxt=s8(),Pxt=u8(),Ixt=c8(),Rxt=f8(),d8=rG(),nG=fs().BADNUM;X_e.exports=function(t,r){var n=h8.getFromId(t,r.xaxis||"x"),i=h8.getFromId(t,r.yaxis||"y"),a=H_e.traceIs(r,"contour"),o=H_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,_,b,p,k;if(n._minDtick=0,i._minDtick=0,o)k=kxt(t,r),f=k.orig_x,l=k.x,u=k.x0,c=k.dx,_=k.orig_y,h=k.y,d=k.y0,v=k.dy,b=k.z;else{var E=r.z;iG.isArray1D(E)?(Lxt(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],l=j_e(r,n,"x",f).vals,h=j_e(r,i,"y",_).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=Pxt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Dxt(l,h,b),o||(l=W_e(l),h=W_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Rxt(b),Ixt(b,r._emptypoints));function T(O){s=r._input.zsmooth=r.zsmooth=!1,iG.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var U=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(U/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=iG.maxRowLength(b),C=r.xtype==="scaled"?"":l,M=d8(r,C,u,c,x,n),g=r.ytype==="scaled"?"":h,P=d8(r,g,d,v,b.length,i);r._extremes[n._id]=h8.findExtremes(n,M),r._extremes[i._id]=h8.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(A.orig_x=f),r.yperiodalignment&&_&&(A.orig_y=_),C&&C.length===M.length-1&&(A.xCenter=C),g&&g.length===P.length-1&&(A.yCenter=g),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||Cxt(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};A.xfill=d8(z,C,u,c,x,n),A.yfill=d8(z,g,d,v,b.length,i)}return[A]};function W_e(e){for(var t=[],r=e.length,n=0;n{"use strict";p8.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"]];p8.STYLE=p8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var oG=ye((Xur,Y_e)=>{"use strict";var Z_e=g8(),Fxt=So(),aG=Dr(),BT=null;function zxt(){if(BT!==null)return BT;BT=!1;var e=aG.isSafari()||aG.isMacWKWebView()||aG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(Z_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")BT=t.some(function(o){return r.apply(null,o)});else{var n=Fxt.tester.append("image").attr("style",Z_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;BT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return BT}Y_e.exports=zxt});var m8=ye((Zur,nxe)=>{"use strict";var K_e=Oa(),Oxt=fd(),qxt=qa(),Bxt=So(),Nxt=ho(),W0=Dr(),J_e=Zl(),Uxt=lI(),Vxt=ka(),Gxt=tc().extractOpts,Hxt=tc().makeColorScaleFuncFromTrace,jxt=Wp(),Wxt=Dh(),sG=Wxt.LINE_SPACING,Xxt=oG(),Zxt=g8().STYLE,rxe="heatmap-label";function ixe(e){return e.selectAll("g."+rxe)}function $_e(e){ixe(e).remove()}nxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=K_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,_=l.xCenter,b=l.yCenter,p=qxt.traceIs(u,"contour"),k=p?"best":u.zsmooth,E=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,M,g,P,A,z,O,U;for(z=0;C===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)A=a.c2p(v[z]),z--;A=i._length||M<=0||P>=a._length||A<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),$_e(s);return}var oe,_e;G==="fast"?(oe=T,_e=E):(oe=j,_e=N);var Ce=document.createElement("canvas");Ce.width=oe,Ce.height=_e;var Le=Ce.getContext("2d",{willReadFrequently:!0}),ge=Hxt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(fn){return T-1-fn}:W0.identity,Se=x?function(fn){return E-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 Ee=Se(0),Ae=[Ee,Ee],Be=L?0:1,Pe=x?0:1,me=0,De=0,ce=0,je=0,lt,pt,Vt,ot,ut;function Wt(fn,yn){if(fn!==void 0){var Sn=ge(fn);return Sn[0]=Math.round(Sn[0]),Sn[1]=Math.round(Sn[1]),Sn[2]=Math.round(Sn[2]),me+=yn,De+=Sn[0]*yn,ce+=Sn[1]*yn,je+=Sn[2]*yn,Sn}return[0,0,0,0]}function Nt(fn,yn,Sn,Ba){var ua=fn[Sn.bin0];if(ua===void 0)return Wt(void 0,1);var ma=fn[Sn.bin1],Wa=yn[Sn.bin0],Fa=yn[Sn.bin1],Xo=ma-ua||0,da=Wa-ua||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-ua):Wn=(2*Fa-Wa-ua)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*ua-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-ua)*2/3:Wn=Fa+ua-ma-Wa,Wt(ua+Sn.frac*Xo+Ba.frac*(da+Sn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(fn){sr=new Array(oe*_e*4)}if(G==="smooth"){var Tr=_||d,fr=b||v,$e=new Array(Tr.length),St=new Array(fr.length),Qt=new Array(j),Gt=_?exe:Q_e,_t=b?exe:Q_e,It,mt,er;for(z=0;zvr||vr>a._length))for(O=ke;Opi||pi>i._length)){var $r=Uxt({x:ii,y:ar},u,e._fullLayout);$r.x=ii,$r.y=ar;var di=l.z[z][O];di===void 0?($r.z="",$r.zLabel=""):($r.z=di,$r.zLabel=Nxt.tickText(We,di,"hover").text);var ji=l.text&&l.text[z]&&l.text[z][O];(ji===void 0||ji===!1)&&(ji=""),$r.text=ji;var In=W0.texttemplateString({data:[$r,u._meta],fallback:u.texttemplatefallback,labels:$r,locale:e._fullLayout._d3locale,template:Ge});if(In){var wi=In.split("
"),On=wi.length,qn=0;for(U=0;U{"use strict";axe.exports={min:"zmin",max:"zmax"}});var y8=ye((Kur,oxe)=>{"use strict";var Yxt=Oa();oxe.exports=function(t){Yxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var x8=ye((Jur,lxe)=>{"use strict";var sxe=vf(),R4=Dr(),_8=R4.isArrayOrTypedArray,Kxt=ho(),Jxt=tc().extractOpts;lxe.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,_=s.yCenter,b=s.zmask,p=l.zhoverformat,k=f,E=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){R4.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(sxe.inbox(r-f[0],r-f[f.length-1],0)>0||sxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(k=[2*f[0]-f[1]],M=1;M{"use strict";uxe.exports={attributes:FT(),supplyDefaults:l_e(),calc:v8(),plot:m8(),colorbar:D_(),style:y8(),hoverPoints:x8(),moduleType:"trace",name:"heatmap",basePlotModule:mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var hxe=ye((Qur,fxe)=>{"use strict";fxe.exports=cxe()});var lG=ye((ecr,dxe)=>{"use strict";dxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var pxe=ye((tcr,vxe)=>{"use strict";vxe.exports={eventDataKeys:["binNumber"]}});var b8=ye((rcr,_xe)=>{"use strict";var Ip=zm(),gxe=df().axisHoverFormat,{hovertemplateAttrs:$xt,texttemplateAttrs:Qxt,templatefallbackAttrs:mxe}=Ll(),uG=ec(),yxe=lG(),ebt=pxe(),cG=Ao().extendFlat;_xe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:gxe("x"),yhoverformat:gxe("y"),text:cG({},Ip.text,{}),hovertext:cG({},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:yxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:yxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:$xt({},{keys:ebt.eventDataKeys}),hovertemplatefallback:mxe(),texttemplate:Qxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:mxe({editType:"plot"}),textposition:cG({},Ip.textposition,{arrayOk:!1}),textfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:uG({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 Txe=ye((icr,wxe)=>{"use strict";var xxe=qa(),D4=Dr(),bxe=ka(),tbt=i0().handleText,rbt=WI(),ibt=b8();wxe.exports=function(t,r,n,i){function a(k,E){return D4.coerce(t,r,ibt,k,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");tbt(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(D4.minRowLength(o)&&D4.minRowLength(s)):D4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=xxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+f),rbt(t,r,a,n,i),D4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=xxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||bxe.defaultLine,{axis:"y"}),p(t,r,b||bxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var T8=ye((ncr,Mxe)=>{"use strict";var F4=Dr(),nbt=hf(),w8=qa().traceIs,abt=e2(),obt=i0().validateCornerradius,Axe=F4.nestedProperty,fG=Kb().getAxisGroup,Sxe=[{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"}],sbt=["x","y"];Mxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return F4.coerce(s._input,s,s._module.attributes,G,Z)}function _(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var j=nbt.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"]||"",oe=n[Z],_e=!0;oe&&(H===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(j)):(Z=N,H!==oe.axType&&F4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&F4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.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 lbt=PT().hoverPoints,ubt=ho().hoverLabelText;Exe.exports=function(t,r,n,i,a){var o=lbt(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"]=ubt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var hG=ye((ocr,Cxe)=>{"use strict";Cxe.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";Lxe.exports={attributes:b8(),layoutAttributes:jI(),supplyDefaults:Txe(),crossTraceDefaults:T8(),supplyLayoutDefaults:IV(),calc:tG().calc,crossTraceCalc:t2().crossTraceCalc,plot:d2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:$d(),hoverPoints:kxe(),selectPoints:IT(),eventData:hG(),moduleType:"trace",name:"histogram",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Rxe=ye((lcr,Ixe)=>{"use strict";Ixe.exports=Pxe()});var S8=ye((ucr,zxe)=>{"use strict";var jg=b8(),Dxe=lG(),A8=FT(),cbt=Gl(),dG=df().axisHoverFormat,{hovertemplateAttrs:fbt,texttemplateAttrs:hbt,templatefallbackAttrs:Fxe}=Ll(),dbt=Tu(),z4=Ao().extendFlat;zxe.exports=z4({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:Dxe("x"),nbinsy:jg.nbinsy,ybins:Dxe("y"),autobinx:jg.autobinx,autobiny:jg.autobiny,bingroup:z4({},jg.bingroup,{}),xbingroup:z4({},jg.bingroup,{}),ybingroup:z4({},jg.bingroup,{}),xgap:A8.xgap,ygap:A8.ygap,zsmooth:A8.zsmooth,xhoverformat:dG("x"),yhoverformat:dG("y"),zhoverformat:dG("z",1),hovertemplate:fbt({},{keys:["z"]}),hovertemplatefallback:Fxe(),texttemplate:hbt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Fxe({editType:"plot"}),textfont:A8.textfont,showlegend:z4({},cbt.showlegend,{dflt:!1})},dbt("",{cLetter:"z",autoColorDflt:!1}))});var vG=ye((ccr,qxe)=>{"use strict";var vbt=qa(),Oxe=Dr();qxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Oxe.minRowLength(a),l=Oxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=vbt.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 Nxe=ye((fcr,Bxe)=>{"use strict";var pbt=Dr(),gbt=vG(),mbt=ZV(),ybt=td(),_bt=I4(),xbt=S8();Bxe.exports=function(t,r,n,i){function a(o,s){return pbt.coerce(t,r,xbt,o,s)}gbt(t,r,a,i),r.visible!==!1&&(mbt(t,r,a,i),ybt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),_bt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Gxe=ye((hcr,Vxe)=>{"use strict";var bbt=x8(),Uxe=ho().hoverLabelText;Vxe.exports=function(t,r,n,i,a){var o=bbt(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=Uxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Uxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var jxe=ye((dcr,Hxe)=>{"use strict";Hxe.exports={attributes:S8(),supplyDefaults:Nxe(),crossTraceDefaults:T8(),calc:v8(),plot:m8(),layerName:"heatmaplayer",colorbar:D_(),style:y8(),hoverPoints:Gxe(),eventData:hG(),moduleType:"trace",name:"histogram2d",basePlotModule:mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Xxe=ye((vcr,Wxe)=>{"use strict";Wxe.exports=jxe()});var M8=ye((pcr,Zxe)=>{"use strict";Zxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var O4=ye((gcr,$xe)=>{"use strict";var _h=FT(),E8=pf(),Kxe=df(),pG=Kxe.axisHoverFormat,wbt=Kxe.descriptionOnlyNumbers,Tbt=Tu(),Abt=Pd().dash,Sbt=ec(),NT=Ao().extendFlat,Jxe=M8(),Mbt=Jxe.COMPARISON_OPS2,Ebt=Jxe.INTERVAL_OPS,Yxe=E8.line;$xe.exports=NT({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:E8.xperiod0,yperiod0:E8.yperiod0,xperiodalignment:_h.xperiodalignment,yperiodalignment:_h.yperiodalignment,text:_h.text,hovertext:_h.hovertext,transpose:_h.transpose,xtype:_h.xtype,ytype:_h.ytype,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:_h.hovertemplate,hovertemplatefallback:_h.hovertemplatefallback,texttemplate:NT({},_h.texttemplate,{}),texttemplatefallback:_h.texttemplatefallback,textfont:NT({},_h.textfont,{}),hoverongaps:_h.hoverongaps,connectgaps:NT({},_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:Sbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:wbt("contour label")},operation:{valType:"enumerated",values:[].concat(Mbt).concat(Ebt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:NT({},Yxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Abt,smoothing:NT({},Yxe.smoothing,{}),editType:"plot"},zorder:E8.zorder},Tbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var mG=ye((mcr,ebe)=>{"use strict";var wv=S8(),Bm=O4(),kbt=Tu(),gG=df().axisHoverFormat,Qxe=Ao().extendFlat;ebe.exports=Qxe({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:Bm.autocontour,ncontours:Bm.ncontours,contours:Bm.contours,line:{color:Bm.line.color,width:Qxe({},Bm.line.width,{dflt:.5}),dash:Bm.line.dash,smoothing:Bm.line.smoothing,editType:"plot"},xhoverformat:gG("x"),yhoverformat:gG("y"),zhoverformat:gG("z",1),hovertemplate:wv.hovertemplate,hovertemplatefallback:wv.hovertemplatefallback,texttemplate:Bm.texttemplate,texttemplatefallback:Bm.texttemplatefallback,textfont:Bm.textfont},kbt("",{cLetter:"z",editTypeOverride:"calc"}))});var k8=ye((ycr,tbe)=>{"use strict";tbe.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 yG=ye((_cr,rbe)=>{"use strict";var Cbt=Dr();rbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Cbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var C8=ye((xcr,ibe)=>{"use strict";var Lbt=td(),Pbt=yG();ibe.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,Lbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Pbt(n,i,l,a)}});var sbe=ye((bcr,obe)=>{"use strict";var nbe=Dr(),Ibt=vG(),Rbt=k8(),Dbt=C8(),Fbt=I4(),abe=mG();obe.exports=function(t,r,n,i){function a(s,l){return nbe.coerce(t,r,abe,s,l)}function o(s){return nbe.coerce2(t,r,abe,s)}Ibt(t,r,a,i),r.visible!==!1&&(Rbt(t,r,a,o),Dbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&Fbt(a,i))}});var bG=ye((wcr,ube)=>{"use strict";var xG=ho(),_G=Dr();ube.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=_G.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=_G.aggNums(Math.max,null,r));var o=lbe(i,a,t.ncontours);n.size=o.dtick,n.start=xG.tickFirst(o),o.range.reverse(),n.end=xG.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={}),_G.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=lbe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function lbe(e,t,r){var n={type:"linear",range:[e,t]};return xG.autoTicks(n,(t-e)/(r||15)),n}});var q4=ye((Tcr,cbe)=>{"use strict";cbe.exports=function(t){return t.end+t.size/1e6}});var wG=ye((Acr,hbe)=>{"use strict";var fbe=tc(),zbt=v8(),Obt=bG(),qbt=q4();hbe.exports=function(t,r){var n=zbt(t,r),i=n[0].z;Obt(r,i);var a=r.contours,o=fbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=qbt(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 fbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var B4=ye((Scr,dbe)=>{"use strict";dbe.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 TG=ye((Mcr,vbe)=>{"use strict";var L8=B4();vbe.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 AG=ye((Ecr,mbe)=>{"use strict";var P8=Dr(),UT=B4();mbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=UT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=UT.SADDLEREMAINDER[o]):delete e.crossings[a],s=UT.NEWDELTA[o],!s){P8.log("Found bad marching index:",o,t,e.level);break}l.push(gbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),N4(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),_=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&v)break;o=e.crossings[a]}d===1e4&&P8.log("Infinite loop in contour?");var b=N4(l[0],l[l.length-1],n,i),p=0,k=.2*e.smoothing,E=[],T=0,L,x,C,M,g,P,A,z,O,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[x]z&&O--,e.edgepaths[O]=G.concat(l,U));break}H||(e.edgepaths[z]=l.concat(U))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:UT.BOTTOMSTART.indexOf(e)!==-1?i=1:UT.LEFTSTART.indexOf(e)!==-1?n=1:UT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function gbe(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 bbe=ye((kcr,xbe)=>{"use strict";var SG=M8(),Vbt=Eo();xbe.exports={"[]":ybe("[]"),"][":ybe("]["),">":MG(">"),"<":MG("<"),"=":MG("=")};function _be(e,t){var r=Array.isArray(t),n;function i(a){return Vbt(a)?+a:null}return SG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):SG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:SG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function ybe(e){return function(t){t=_be(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 MG(e){return function(t){return t=_be(e,t),{start:t,end:1/0,size:1/0}}}});var EG=ye((Ccr,Tbe)=>{"use strict";var wbe=Dr(),Gbt=bbe(),Hbt=q4();Tbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Gbt[t._operation](t.value):t,a=i.size,o=[],s=Hbt(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){wbe.warn("Too many contours, clipping at 1000",t);break}return o}});var kG=ye((Lcr,Sbe)=>{"use strict";var VT=Dr();Sbe.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&&VT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Mbe.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 I8=ye(jv=>{"use strict";var V4=Oa(),Fd=Dr(),jy=So(),jbt=tc(),Cbe=Zl(),Ebe=ho(),kbe=xm(),Wbt=m8(),Lbe=TG(),Pbe=AG(),Xbt=EG(),Zbt=kG(),Ibe=CG(),U4=B4(),Nm=U4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Fd.makeTraceGroups(i,n,"contour").each(function(s){var l=V4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=Xbt(d,r,u),_=Fd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Wbt(t,r,b,_),Lbe(v),Pbe(v);var p=a.c2p(f[0],!0),k=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[p,T],[k,T],[k,E],[p,E]],x=v;d.type==="constraint"&&(x=Zbt(v,d._operation)),Ybt(l,L,d),Kbt(l,x,L,d),Jbt(l,v,t,u,d),Qbt(l,r,t,u,L)})};function Ybt(e,t,r){var n=Fd.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 Kbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Ibe(t,n);var o=Fd.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:"")+Rbe(l,r);u?V4.select(this).attr("d",u).style("stroke","none"):V4.select(this).remove()})}function Rbe(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 _(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){Fd.log("Missing end?",n,e);break}for(h(o)&&!_(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:_(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):Fd.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){Fd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nNm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Nm.MAXCOST)return c};function $bt(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=Nm.EDGECOST*(1/(f-1)+1/(h-1));d+=Nm.ANGLECOST*l*l;for(var v=o-u,_=s-c,b=o+u,p=s+c,k=0;k{"use strict";var t2t=Oa(),LG=tc(),r2t=q4();Dbe.exports=function(t){var r=t.contours,n=r.start,i=r2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=LG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?LG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,_=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;v_&&(f.unshift(_),h.unshift(h[0])),f[f.length-1]{"use strict";var R8=Oa(),Fbe=So(),i2t=y8(),n2t=PG();zbe.exports=function(t){var r=R8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=R8.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?n2t(a):null;i.selectAll("g.contourlevel").each(function(b){R8.select(this).selectAll("path").call(Fbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Fbe.font(R8.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 _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*l)}),_===void 0&&(_=u),i.selectAll("g.contourbg path").style("fill",d(_-.5*l))}}),i2t(t)}});var F8=ye((Fcr,qbe)=>{"use strict";var Obe=tc(),a2t=PG(),o2t=q4();function s2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=a2t(t,{isColorbar:!0});if(o==="heatmap"){var l=Obe.extractOpts(t);r._fillgradient=l.reversescale?Obe.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:o2t(n),size:a}}qbe.exports={min:"zmin",max:"zmax",calc:s2t}});var IG=ye((zcr,Bbe)=>{"use strict";var z8=ka(),l2t=x8();Bbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=l2t(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&z8.opacity(l.fillcolor)?s.color=z8.addOpacity(l.fillcolor,1):l.contours.showlines&&z8.opacity(l.line.color)&&(s.color=z8.addOpacity(l.line.color,1)))}),o}});var Ube=ye((Ocr,Nbe)=>{"use strict";Nbe.exports={attributes:mG(),supplyDefaults:sbe(),crossTraceDefaults:T8(),calc:wG(),plot:I8().plot,layerName:"contourlayer",style:D8(),colorbar:F8(),hoverPoints:IG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Gbe=ye((qcr,Vbe)=>{"use strict";Vbe.exports=Ube()});var RG=ye((Bcr,Ybe)=>{"use strict";var Hbe=Eo(),u2t=yG(),Xbe=ka(),jbe=Xbe.addOpacity,c2t=Xbe.opacity,Zbe=M8(),Wbe=Dr().isArrayOrTypedArray,f2t=Zbe.CONSTRAINT_REDUCTION,h2t=Zbe.COMPARISON_OPS2;Ybe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=f2t[f],d2t(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",jbe((t.line||{}).color||a,.5))),l){var h=c&&c2t(c)?jbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),u2t(n,i,u,o)};function d2t(e,t){var r;h2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Wbe(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])]:Hbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Hbe(t.value)||(Wbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var $be=ye((Ncr,Jbe)=>{"use strict";var DG=Dr(),v2t=n8(),p2t=Dg(),g2t=RG(),m2t=k8(),y2t=C8(),_2t=I4(),Kbe=O4();Jbe.exports=function(t,r,n,i){function a(u,c){return DG.coerce(t,r,Kbe,u,c)}function o(u){return DG.coerce2(t,r,Kbe,u)}var s=v2t(t,r,a,i);if(!s){r.visible=!1;return}p2t(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",DG.isArray1D(r.z)),l?g2t(t,r,a,i,n):(m2t(t,r,a,o),y2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&_2t(a,i),a("zorder")}});var e2e=ye((Ucr,Qbe)=>{"use strict";Qbe.exports={attributes:O4(),supplyDefaults:$be(),calc:wG(),plot:I8().plot,style:D8(),colorbar:F8(),hoverPoints:IG(),moduleType:"trace",name:"contour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var r2e=ye((Vcr,t2e)=>{"use strict";t2e.exports=e2e()});var FG=ye((Gcr,o2e)=>{"use strict";var{hovertemplateAttrs:x2t,texttemplateAttrs:b2t,templatefallbackAttrs:i2e}=Ll(),w2t=Pg(),o0=pf(),T2t=Gl(),n2e=Tu(),A2t=Pd().dash,F_=Ao().extendFlat,X0=o0.marker,G4=o0.line,a2e=X0.line;o2e.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:b2t({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:i2e({editType:"plot"}),hovertext:F_({},o0.hovertext,{}),line:{color:G4.color,width:G4.width,dash:A2t,backoff:G4.backoff,shape:F_({},G4.shape,{values:["linear","spline"]}),smoothing:G4.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:F_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:w2t(),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"},n2e("marker.line")),gradient:X0.gradient,editType:"calc"},n2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:F_({},T2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:x2t(),hovertemplatefallback:i2e()}});var c2e=ye((Hcr,u2e)=>{"use strict";var s2e=Dr(),S2t=Lm(),GT=Ru(),M2t=$p(),E2t=D0(),l2e=sT(),k2t=F0(),C2t=Fg(),L2t=FG();u2e.exports=function(t,r,n,i){function a(h,d){return s2e.coerce(t,r,L2t,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 zG=ho();f2e.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 g2e=ye((Wcr,p2e)=>{"use strict";var OG=Eo(),P2t=z0(),I2t=Rm(),R2t=O0(),D2t=q0().calcMarkerSize,d2e=["a","b","c"],v2e={a:["b","c"],b:["a","c"],c:["a","b"]};p2e.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 F2t=dT();m2e.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 z2t=mT();_2e.exports=function(t,r,n,i){var a=z2t(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 _=h._module.formatLabels(f,h,v);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=f.hi||h.hoverinfo,p=[];function k(T,L){p.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var w2e=ye((Ycr,b2e)=>{"use strict";b2e.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 R2e=ye((Kcr,I2e)=>{"use strict";var k2e=Oa(),O2t=fd(),qG=qa(),Wy=Dr(),Um=Wy.strTranslate,O8=Wy._,jT=ka(),q8=So(),H4=xm(),BG=Ao().extendFlat,q2t=Mc(),z_=ho(),T2e=yv(),A2e=vf(),C2e=Cg(),S2e=C2e.freeMode,B2t=C2e.rectMode,NG=zb(),N2t=Of().prepSelect,U2t=Of().selectOnClick,V2t=Of().clearOutline,G2t=Of().clearSelectionsCache,L2e=Rh();function P2e(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}I2e.exports=P2e;var Vm=P2e.prototype;Vm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aHT*u?(p=u,b=p*HT):(b=l,p=b/HT),k=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=_,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"},H4(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:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},H4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=BG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*HT],anchor:"free",position:0,_id:"y",_length:b});H4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=BG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});H4(x,r.graphDiv._fullLayout),x.setScale();var C=r.caxis=BG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*HT],anchor:"free",position:0,_id:"y",_length:b});H4(C,r.graphDiv._fullLayout),C.setScale();var M="M"+v+","+(_+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Um(v,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Um(v-x._offset,_+p);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var z=Um(v+b/2,_)+"rotate(30)"+Um(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Um(v+b/2,_)+"rotate(-30)"+Um(0,-C._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(_+p)+"l"+b/2+",-"+p:"M0,0").call(jT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(_+p)+"h"+b:"M0,0").call(jT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+_+"l"+b/2+","+p:"M0,0").call(jT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),q8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Vm.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"]=NG.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"]=NG.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"]=NG.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"}})}};Vm.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=H2t(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),_=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,k=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"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:E,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 H2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=L2e.MINZOOM/2+.87,j2t="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",W2t="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",X2t="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",Z2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",M2e=!0;Vm.clearOutline=function(){G2t(this.dragOptions),V2t(this.dragOptions.gd)};Vm.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(A,z,O){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;S2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,k(A,z,O)):U==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(B2t(U)||S2e(U))&&N2t(A,z,O,e.dragOptions,U)}};var o,s,l,u,c,f,h,d,v,_;function b(A){var z={};return z[e.id+".aaxis.min"]=A.a,z[e.id+".baxis.min"]=A.b,z[e.id+".caxis.min"]=A.c,z}function p(A,z){var O=r._fullLayout.clickmode;E2e(r),A===2&&(r.emit("plotly_doubleclick",null),qG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&A===1&&U2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&A2e.click(r,z,e.id)}function k(A,z,O){var U=t.getBoundingClientRect();o=z-U.left,s=O-U.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=O2t(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",Um(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Um(e.x0,e.y0)).style({fill:jT.background,stroke:jT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,z){return 1-z/e.h}function T(A,z){return 1-(A+(e.h-z)/Math.sqrt(3))/e.w}function L(A,z){return(A-(e.h-z)/Math.sqrt(3))/e.w}function x(A,z){var O=o+A*i,U=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,U))),Z=Math.max(0,Math.min(1,T(o,s),T(O,U))),j=Math.max(0,Math.min(1,L(o,s),L(O,U))),N=(G/2+j)*e.w,H=(1-G/2-Z)*e.w,re=(N+H)/2,oe=H-N,_e=(1-G)*e.h,Ce=_e-oe/HT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){E2e(r),c!==l&&(qG.call("_guiRelayout",r,b(c)),M2e&&r.data&&r._context.showTips&&(Wy.notifier(O8(r,"Double-click to zoom back out"),"long"),M2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(A,z){var O=A/e.xaxis._m,U=z/e.yaxis._m;c={a:l.a-U,b:l.b+(O+U)/2,c:l.c-(O-U)/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,A=(l.c-c.c-l.b+c.b)*e.xaxis._m);var j=Um(e.x0+A,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",j);var N=Um(-A,-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(q8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){qG.call("_guiRelayout",r,b(c))}t.onmousemove=function(A){A2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||T2e.unhover(r,A)},T2e.init(this.dragOptions)};function E2e(e){k2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var GG=ye((Jcr,D2e)=>{"use strict";var Y2t=Ih(),K2t=Cc().attributes,su=Rd(),J2t=mc().overrideAll,UG=Ao().extendFlat,VG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:UG({},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:UG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:UG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},B8=D2e.exports=J2t({domain:K2t({name:"ternary"}),bgcolor:{valType:"color",dflt:Y2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:VG,baxis:VG,caxis:VG},"plot","from-root");B8.uirevision={valType:"any",editType:"none"};B8.aaxis.uirevision=B8.baxis.uirevision=B8.caxis.uirevision={valType:"any",editType:"none"}});var O_=ye(($cr,F2e)=>{"use strict";var $2t=Dr(),Q2t=vl(),ewt=Cc().defaults;F2e.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,E){return $2t.coerce(h,d,o,k,E)}for(var _=0;_{"use strict";var twt=ka(),rwt=vl(),N8=Dr(),iwt=O_(),nwt=s_(),awt=l_(),owt=F3(),swt=Lb(),lwt=u4(),O2e=GG(),z2e=["aaxis","baxis","caxis"];q2e.exports=function(t,r,n){iwt(t,r,n,{type:"ternary",attributes:O2e,handleDefaults:uwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function uwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=twt.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 cwt(e,t,r,n){var i=O2e[t._name];function a(d,v){return N8.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,N8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:N8.bigFont(r.font.size),color:s}}),a("min"),swt(e,t,a,"linear"),awt(e,t,a,"linear"),nwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),owt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(N8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),lwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var N2e=ye(Z0=>{"use strict";var fwt=R2e(),hwt=Id().getSubplotCalcData,dwt=Dr().counterRegex,WT="ternary";Z0.name=WT;var vwt=Z0.attr="subplot";Z0.idRoot=WT;Z0.idRegex=Z0.attrRegex=dwt(WT);var pwt=Z0.attributes={};pwt[vwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=GG();Z0.supplyLayoutDefaults=B2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[WT],a=0;a{"use strict";U2e.exports={attributes:FG(),supplyDefaults:c2e(),colorbar:$d(),formatLabels:h2e(),calc:g2e(),plot:y2e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:x2e(),selectPoints:yT(),eventData:w2e(),moduleType:"trace",name:"scatterternary",basePlotModule:N2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var H2e=ye((rfr,G2e)=>{"use strict";G2e.exports=V2e()});var HG=ye((ifr,W2e)=>{"use strict";var qh=k4(),XT=Ao().extendFlat,j2e=df().axisHoverFormat;W2e.exports={y:qh.y,x:qh.x,x0:qh.x0,y0:qh.y0,xhoverformat:j2e("x"),yhoverformat:j2e("y"),name:XT({},qh.name,{}),orientation:XT({},qh.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:qh.fillcolor,points:XT({},qh.boxpoints,{}),jitter:XT({},qh.jitter,{}),pointpos:XT({},qh.pointpos,{}),width:XT({},qh.width,{}),marker:qh.marker,text:qh.text,hovertext:qh.hovertext,hovertemplate:qh.hovertemplate,hovertemplatefallback:qh.hovertemplatefallback,quartilemethod:qh.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:qh.offsetgroup,alignmentgroup:qh.alignmentgroup,selected:qh.selected,unselected:qh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:qh.zorder}});var XG=ye((nfr,X2e)=>{"use strict";var jG=C4(),WG=Dr().extendFlat;X2e.exports={violinmode:WG({},jG.boxmode,{}),violingap:WG({},jG.boxgap,{}),violingroupgap:WG({},jG.boxgroupgap,{})}});var $2e=ye((afr,J2e)=>{"use strict";var Z2e=Dr(),gwt=ka(),Y2e=P4(),K2e=HG();J2e.exports=function(t,r,n,i){function a(L,x){return Z2e.coerce(t,r,K2e,L,x)}function o(L,x){return Z2e.coerce2(t,r,K2e,L,x)}if(Y2e.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",gwt.addOpacity(r.line.color,.5));Y2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),_=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||_||b));p||(r.box={visible:!1});var k=o("meanline.color",c),E=o("meanline.width",f),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var ewe=ye((ofr,Q2e)=>{"use strict";var mwt=Dr(),ywt=XG(),_wt=$I();Q2e.exports=function(t,r,n){function i(a,o){return mwt.coerce(t,r,ywt,a,o)}_wt._supply(t,r,n,i,"violin")}});var U8=ye(g2=>{"use strict";var xwt=Dr(),bwt={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=bwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var ZG=Dr(),YG=ho(),wwt=NV(),twe=U8(),Twt=fs().BADNUM;rwe.exports=function(t,r){var n=wwt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=YG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var Ewt=e8().setPositionOffset,nwe=["v","h"];awe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var KG=Oa(),JG=Dr(),kwt=So(),$G=t8(),Cwt=AU(),Lwt=U8();swe.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=Cwt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return kwt.smoothopen(h[0],1)}JG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=KG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var _=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=v.side==="both",T=E||v.side==="positive",L=E||v.side==="negative",x=f.selectAll("path.violin").data(JG.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=KG.select(this),Z=U.density,j=Z.length,N=k.c2l(U.pos+_,!0),H=k.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/U.pts.length):oe.maxKDE/b}var _e,Ce,Le,ge,ie,Se,Ee;if(T){for(Se=new Array(j),ge=0;ge{"use strict";var uwe=Oa(),ZT=ka(),Pwt=sp().stylePoints;cwe.exports=function(t){var r=uwe.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=uwe.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(ZT.stroke,i.line.color).call(ZT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(ZT.stroke,s.color).call(ZT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(ZT.stroke,l.color),a.selectAll("path.meanline").style(c).call(ZT.stroke,l.color),Pwt(a,i,t)})}});var pwe=ye((hfr,vwe)=>{"use strict";var Iwt=ka(),QG=Dr(),Rwt=ho(),hwe=jV(),dwe=U8();vwe.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 _=hwe.hoverOnBoxes(t,r,n,i);if(f&&_.length>0){var b=t.xa,p=t.ya,k,E,T,L,x;l.orientation==="h"?(x=r,k="y",T=p,E="x",L=b):(x=n,k="x",T=b,E="y",L=p);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var M=QG.extendFlat({},t),g=L.c2p(x,!0),P=dwe.getKdeValue(C,l,x),A=dwe.getPositionOnKdePath(C,l,g),z=T._offset,O=T._length;M[k+"0"]=A[0],M[k+"1"]=A[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+Rwt.hoverLabelText(L,x,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G<_.length;G++)if(_[G].attr==="med"){U=G;break}M.spikeDistance=_[U].spikeDistance;var Z=k+"Spike";M[Z]=_[U][Z],_[U].spikeDistance=void 0,_[U][Z]=void 0,M.hovertemplate=!1,h.push(M),v={},v[k+"1"]=QG.constrain(z+A[0],z,z+O),v[k+"2"]=QG.constrain(z+A[1],z,z+O),v[E+"1"]=v[E+"2"]=L._offset+g}}c&&(h=h.concat(_))}u.indexOf("points")!==-1&&(d=hwe.hoverOnPoints(t,r,n));var j=o.selectAll(".violinline-"+l.uid).data(v?[0]:[]);return j.enter().append("line").classed("violinline-"+l.uid,!0).attr("stroke-width",1.5),j.exit().remove(),j.attr(v).call(Iwt.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var mwe=ye((dfr,gwe)=>{"use strict";gwe.exports={attributes:HG(),layoutAttributes:XG(),supplyDefaults:$2e(),crossTraceDefaults:P4().crossTraceDefaults,supplyLayoutDefaults:ewe(),calc:iwe(),crossTraceCalc:owe(),plot:lwe(),style:fwe(),styleOnSelect:sp().styleOnSelect,hoverPoints:pwe(),selectPoints:WV(),moduleType:"trace",name:"violin",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var _we=ye((vfr,ywe)=>{"use strict";ywe.exports=mwe()});var bwe=ye((pfr,xwe)=>{"use strict";xwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var tH=ye((gfr,Swe)=>{"use strict";var jc=zm(),eH=pf().line,Dwt=Gl(),wwe=df().axisHoverFormat,{hovertemplateAttrs:Fwt,texttemplateAttrs:zwt,templatefallbackAttrs:Twe}=Ll(),Awe=bwe(),Xy=Ao().extendFlat,Owt=ka();Swe.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:wwe("x"),yhoverformat:wwe("y"),hovertext:jc.hovertext,hovertemplate:Fwt({},{keys:Awe.eventDataKeys}),hovertemplatefallback:Twe(),hoverinfo:Xy({},Dwt.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:zwt({editType:"plot"},{keys:Awe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Twe({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:qwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xy({},eH.color,{dflt:Owt.defaultLine}),width:Xy({},eH.width,{dflt:0,editType:"plot"}),dash:eH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function qwt(){var e=Xy({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var rH=ye((mfr,Mwe)=>{"use strict";Mwe.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 nH=ye((yfr,kwe)=>{"use strict";var V8=Dr(),Bwt=e2(),Nwt=i0().handleText,Uwt=oT(),Vwt=Dg(),Ewe=tH(),iH=ka();function Gwt(e,t,r,n){function i(f,h){return V8.coerce(e,t,Ewe,f,h)}var a=Uwt(e,t,n,i);if(!a){t.visible=!1;return}Vwt(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");Nwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",V8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",iH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",Hwt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Hwt(e){var t=V8.isArrayOrTypedArray(e)?"#000":e;return iH.addOpacity(t,.5*iH.opacity(t))}function jwt(e,t){var r,n;function i(o){return V8.coerce(n._input,n,Ewe,o)}for(var a=0;a{"use strict";var Wwt=Dr(),Xwt=rH();Cwe.exports=function(e,t,r){var n=!1;function i(s,l){return Wwt.coerce(e,t,Xwt,s,l)}for(var a=0;a{"use strict";var YT=Dr();Pwe.exports=function(t,r){for(var n=0;n{"use strict";var Rwe=ho(),Dwe=zg(),Zwt=Iwe(),Ywt=O0(),j4=fs().BADNUM;Fwe.exports=function(t,r){var n=Rwe.getFromId(t,r.xaxis||"x"),i=Rwe.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=Dwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=Dwe(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 Owe=t2().setGroupPositions;qwe.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 G8=Oa(),B_=Dr(),Nwe=So(),q_=fs().BADNUM,Kwt=d2(),Jwt=bv().clearMinTextSize;Vwe.exports=function(t,r,n,i){var a=t._fullLayout;Jwt("funnel",a),$wt(t,r,n,i),Qwt(t,r,n,i),Kwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function $wt(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=G8.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 _=Uwe(d,i,a,c),b=_[0],p=_[1],k="";b[0]!==q_&&p[0]!==q_&&b[1]!==q_&&p[1]!==q_&&b[2]!==q_&&p[2]!==q_&&b[3]!==q_&&p[3]!==q_&&(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(G8.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function Qwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=G8.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 _=Uwe(d,i,a,c),b=_[0],p=_[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(G8.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function Uwe(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 Wwe=ye((Afr,jwe)=>{"use strict";var W4=Oa(),Hwe=So(),oH=ka(),e3t=X1().DESELECTDIM,t3t=V0(),r3t=bv().resizeText,i3t=t3t.styleTextPoints;function n3t(e,t,r){var n=r||W4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");r3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=W4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;W4.select(this).call(oH.fill,s.mc||l.color).call(oH.stroke,s.mlc||l.line.color).call(Hwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?e3t:1)}}),i3t(a,o,e),a.selectAll(".regions").each(function(){W4.select(this).selectAll("path").style("stroke-width",0).call(oH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Hwe.lineGroupStyle(W4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}jwe.exports={style:n3t}});var Ywe=ye((Sfr,Zwe)=>{"use strict";var Xwe=ka().opacity,a3t=PT().hoverOnBars,sH=Dr().formatPercent;Zwe.exports=function(t,r,n,i,a){var o=a3t(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=sH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=sH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=sH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),p=function(k){return _||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=o3t(l,f),[o]}};function o3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Xwe(n))return n;if(Xwe(i)&&a)return i}});var Jwe=ye((Mfr,Kwe)=>{"use strict";Kwe.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 Qwe=ye((Efr,$we)=>{"use strict";$we.exports={attributes:tH(),layoutAttributes:rH(),supplyDefaults:nH().supplyDefaults,crossTraceDefaults:nH().crossTraceDefaults,supplyLayoutDefaults:Lwe(),calc:zwe(),crossTraceCalc:Bwe(),plot:Gwe(),style:Wwe().style,hoverPoints:Ywe(),eventData:Jwe(),selectPoints:IT(),moduleType:"trace",name:"funnel",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var t3e=ye((kfr,e3e)=>{"use strict";e3e.exports=Qwe()});var i3e=ye((Cfr,r3e)=>{"use strict";r3e.exports={eventDataKeys:["initial","delta","final"]}});var cH=ye((Lfr,s3e)=>{"use strict";var _c=zm(),lH=pf().line,s3t=Gl(),n3e=df().axisHoverFormat,{hovertemplateAttrs:l3t,texttemplateAttrs:u3t,templatefallbackAttrs:a3e}=Ll(),o3e=i3e(),KT=Ao().extendFlat,c3t=ka();function uH(e){return{marker:{color:KT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:KT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:KT({},_c.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:_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:n3e("x"),yhoverformat:n3e("y"),hovertext:_c.hovertext,hovertemplate:l3t({},{keys:o3e.eventDataKeys}),hovertemplatefallback:a3e(),hoverinfo:KT({},s3t.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:u3t({editType:"plot"},{keys:o3e.eventDataKeys.concat(["label"])}),texttemplatefallback:a3e({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:uH("increasing"),decreasing:uH("decreasing"),totals:uH("intermediate sums and total"),connector:{line:{color:KT({},lH.color,{dflt:c3t.defaultLine}),width:KT({},lH.width,{editType:"plot"}),dash:lH.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 fH=ye((Pfr,l3e)=>{"use strict";l3e.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 JT=ye((Ifr,u3e)=>{"use strict";u3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var dH=ye((Rfr,d3e)=>{"use strict";var c3e=Dr(),f3t=e2(),h3t=i0().handleText,d3t=oT(),v3t=Dg(),f3e=cH(),p3t=ka(),h3e=JT(),g3t=h3e.INCREASING.COLOR,m3t=h3e.DECREASING.COLOR,y3t="#4499FF";function hH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",p3t.defaultLine),e(t+".marker.line.width")}function _3t(e,t,r,n){function i(u,c){return c3e.coerce(e,t,f3e,u,c)}var a=d3t(e,t,n,i);if(!a){t.visible=!1;return}v3t(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");h3t(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")),hH(i,"increasing",g3t),hH(i,"decreasing",m3t),hH(i,"totals",y3t);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 x3t(e,t){var r,n;function i(o){return c3e.coerce(n._input,n,f3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var b3t=Dr(),w3t=fH();v3e.exports=function(e,t,r){var n=!1;function i(s,l){return b3t.coerce(e,t,w3t,s,l)}for(var a=0;a{"use strict";var g3e=ho(),m3e=zg(),y3e=Dr().mergeArray,T3t=O0(),_3e=fs().BADNUM;function vH(e){return e==="a"||e==="absolute"}function pH(e){return e==="t"||e==="total"}x3e.exports=function(t,r){var n=g3e.getFromId(t,r.xaxis||"x"),i=g3e.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=m3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=m3e(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,_=!1,b=0;b{"use strict";var w3e=t2().setGroupPositions;T3e.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 S3e=Oa(),H8=Dr(),A3t=So(),$T=fs().BADNUM,S3t=d2(),M3t=bv().clearMinTextSize;M3e.exports=function(t,r,n,i){var a=t._fullLayout;M3t("waterfall",a),S3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),E3t(t,r,n,i)};function E3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;H8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=S3e.select(this),l=o[0].trace,u=H8.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(H8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,_){if(!(_!==d-1&&!v.cNext)){var b=k3t(v,i,a,c),p=b[0],k=b[1],E="";p[0]!==$T&&k[0]!==$T&&p[1]!==$T&&k[1]!==$T&&(f==="spanning"&&!v.isSum&&_>0&&(c?E+="M"+p[0]+","+k[1]+"V"+k[0]:E+="M"+p[1]+","+k[0]+"H"+p[0]),f!=="between"&&(v.isSum||_{"use strict";var j8=Oa(),k3e=So(),C3e=ka(),C3t=X1().DESELECTDIM,L3t=V0(),P3t=bv().resizeText,I3t=L3t.styleTextPoints;function R3t(e,t,r){var n=r||j8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");P3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=j8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;j8.select(this).call(C3e.fill,l.color).call(C3e.stroke,l.line.color).call(k3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?C3t:1)}}),I3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;k3e.lineGroupStyle(j8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}L3e.exports={style:R3t}});var z3e=ye((Bfr,F3e)=>{"use strict";var D3t=ho().hoverLabelText,I3e=ka().opacity,F3t=PT().hoverOnBars,R3e=JT(),D3e={increasing:R3e.INCREASING.SYMBOL,decreasing:R3e.DECREASING.SYMBOL};F3e.exports=function(t,r,n,i,a){var o=F3t(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 D3t(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],_=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<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 E=p==="all",T=p.split("+"),L=function(x){return E||T.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(_<0?k.push(o.deltaLabel+" "+D3e.decreasing):k.push(o.deltaLabel+" "+D3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=z3t(l,v),[o]};function z3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(I3e(n))return n;if(I3e(i)&&a)return i}});var q3e=ye((Nfr,O3e)=>{"use strict";O3e.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 N3e=ye((Ufr,B3e)=>{"use strict";B3e.exports={attributes:cH(),layoutAttributes:fH(),supplyDefaults:dH().supplyDefaults,crossTraceDefaults:dH().crossTraceDefaults,supplyLayoutDefaults:p3e(),calc:b3e(),crossTraceCalc:A3e(),plot:E3e(),style:P3e().style,hoverPoints:z3e(),eventData:q3e(),selectPoints:IT(),moduleType:"trace",name:"waterfall",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var V3e=ye((Vfr,U3e)=>{"use strict";U3e.exports=N3e()});var QT=ye((Gfr,G3e)=>{"use strict";G3e.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 gH=ye((Hfr,j3e)=>{"use strict";var O3t=Gl(),q3t=pf().zorder,{hovertemplateAttrs:B3t,templatefallbackAttrs:N3t}=Ll(),H3e=Ao().extendFlat,U3t=QT().colormodel,Z4=["rgb","rgba","rgba256","hsl","hsla"],V3t=[],G3t=[];for(eA=0;eA{"use strict";var H3t=Dr(),j3t=gH(),W3e=QT(),W3t=Oy().IMAGE_URL_PREFIX;X3e.exports=function(t,r){function n(o,s){return H3t.coerce(t,r,j3t,o,s)}n("source"),r.source&&!r.source.match(W3t)&&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=W3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=W3e.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((Wfr,mH)=>{typeof Object.create=="function"?mH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:mH.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 yH=ye((Xfr,Y3e)=>{Y3e.exports=Ab().EventEmitter});var $3e=ye(W8=>{"use strict";W8.byteLength=Z3t;W8.toByteArray=K3t;W8.fromByteArray=Q3t;var Gm=[],Y0=[],X3t=typeof Uint8Array!="undefined"?Uint8Array:Array,_H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m2=0,K3e=_H.length;m20)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 Z3t(e){var t=J3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Y3t(e,t,r){return(t+r)*3/4-r}function K3t(e){var t,r=J3e(e),n=r[0],i=r[1],a=new X3t(Y3t(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 J3t(e){return Gm[e>>18&63]+Gm[e>>12&63]+Gm[e>>6&63]+Gm[e&63]}function $3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Gm[t>>2]+Gm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Gm[t>>10]+Gm[t>>4&63]+Gm[t<<2&63]+"=")),i.join("")}});var Q3e=ye(xH=>{xH.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)};xH.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,_=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]|=_*128}});var _2=ye(nA=>{"use strict";var bH=$3e(),rA=Q3e(),eTe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nA.Buffer=ea;nA.SlowBuffer=aTt;nA.INSPECT_MAX_BYTES=50;var X8=2147483647;nA.kMaxLength=X8;ea.TYPED_ARRAY_SUPPORT=eTt();!ea.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 eTt(){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(ea.prototype,"parent",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.buffer}});Object.defineProperty(ea.prototype,"offset",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.byteOffset}});function Yy(e){if(e>X8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ea.prototype),t}function ea(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 SH(e)}return nTe(e,t,r)}ea.poolSize=8192;function nTe(e,t,r){if(typeof e=="string")return rTt(e,t);if(ArrayBuffer.isView(e))return iTt(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(Hm(e,ArrayBuffer)||e&&Hm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Hm(e,SharedArrayBuffer)||e&&Hm(e.buffer,SharedArrayBuffer)))return TH(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 ea.from(n,t,r);let i=nTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ea.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)}ea.from=function(e,t,r){return nTe(e,t,r)};Object.setPrototypeOf(ea.prototype,Uint8Array.prototype);Object.setPrototypeOf(ea,Uint8Array);function aTe(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 tTt(e,t,r){return aTe(e),e<=0?Yy(e):t!==void 0?typeof r=="string"?Yy(e).fill(t,r):Yy(e).fill(t):Yy(e)}ea.alloc=function(e,t,r){return tTt(e,t,r)};function SH(e){return aTe(e),Yy(e<0?0:MH(e)|0)}ea.allocUnsafe=function(e){return SH(e)};ea.allocUnsafeSlow=function(e){return SH(e)};function rTt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ea.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=oTe(e,t)|0,n=Yy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function wH(e){let t=e.length<0?0:MH(e.length)|0,r=Yy(t);for(let n=0;n=X8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X8.toString(16)+" bytes");return e|0}function aTt(e){return+e!=e&&(e=0),ea.alloc(+e)}ea.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ea.prototype};ea.compare=function(t,r){if(Hm(t,Uint8Array)&&(t=ea.from(t,t.offset,t.byteLength)),Hm(r,Uint8Array)&&(r=ea.from(r,r.offset,r.byteLength)),!ea.isBuffer(t)||!ea.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?(ea.isBuffer(o)||(o=ea.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ea.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function oTe(e,t){if(ea.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Hm(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 AH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pTe(e).length;default:if(i)return n?-1:AH(e).length;t=(""+t).toLowerCase(),i=!0}}ea.byteLength=oTe;function oTt(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 gTt(this,t,r);case"utf8":case"utf-8":return lTe(this,t,r);case"ascii":return vTt(this,t,r);case"latin1":case"binary":return pTt(this,t,r);case"base64":return hTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ea.prototype._isBuffer=!0;function y2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ea.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+=" ... "),""};eTe&&(ea.prototype[eTe]=ea.prototype.inspect);ea.prototype.compare=function(t,r,n,i,a){if(Hm(t,Uint8Array)&&(t=ea.from(t,t.offset,t.byteLength)),!ea.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,kH(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=ea.from(t,n)),ea.isBuffer(t))return t.length===0?-1:tTe(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):tTe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function tTe(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 sTt(this,t,r,n);case"utf8":case"utf-8":return lTt(this,t,r,n);case"ascii":case"latin1":case"binary":return uTt(this,t,r,n);case"base64":return cTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ea.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hTt(e,t,r){return t===0&&r===e.length?bH.fromByteArray(e):bH.fromByteArray(e.slice(t,r))}function lTe(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 dTt(n)}var rTe=4096;function dTt(e){let t=e.length;if(t<=rTe)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")}ea.prototype.readUintLE=ea.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ea.prototype.readUint8=ea.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ea.prototype.readUint16LE=ea.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ea.prototype.readUint16BE=ea.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ea.prototype.readUint32LE=ea.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ea.prototype.readUint32BE=ea.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ea.prototype.readBigUInt64LE=N_(function(t){t=t>>>0,iA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y4(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,iA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y4(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||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ea.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(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};ea.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ea.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ea.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ea.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ea.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ea.prototype.readBigInt64LE=N_(function(t){t=t>>>0,iA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y4(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,iA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Y4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),rA.read(this,t,!0,23,4)};ea.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),rA.read(this,t,!1,23,4)};ea.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),rA.read(this,t,!0,52,8)};ea.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),rA.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!ea.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ea.prototype.writeUintLE=ea.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};ea.prototype.writeUint8=ea.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};ea.prototype.writeUint16LE=ea.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};ea.prototype.writeUint16BE=ea.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};ea.prototype.writeUint32LE=ea.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};ea.prototype.writeUint32BE=ea.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 uTe(e,t,r,n,i){vTe(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 cTe(e,t,r,n,i){vTe(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}ea.prototype.writeBigUInt64LE=N_(function(t,r=0){return uTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ea.prototype.writeBigUInt64BE=N_(function(t,r=0){return cTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ea.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};ea.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};ea.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};ea.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};ea.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};ea.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};ea.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};ea.prototype.writeBigInt64LE=N_(function(t,r=0){return uTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ea.prototype.writeBigInt64BE=N_(function(t,r=0){return cTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fTe(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 hTe(e,t,r,n,i){return t=+t,r=r>>>0,i||fTe(e,t,r,4,34028234663852886e22,-34028234663852886e22),rA.write(e,t,r,n,23,4),r+4}ea.prototype.writeFloatLE=function(t,r,n){return hTe(this,t,r,!0,n)};ea.prototype.writeFloatBE=function(t,r,n){return hTe(this,t,r,!1,n)};function dTe(e,t,r,n,i){return t=+t,r=r>>>0,i||fTe(e,t,r,8,17976931348623157e292,-17976931348623157e292),rA.write(e,t,r,n,52,8),r+8}ea.prototype.writeDoubleLE=function(t,r,n){return dTe(this,t,r,!0,n)};ea.prototype.writeDoubleBE=function(t,r,n){return dTe(this,t,r,!1,n)};ea.prototype.copy=function(t,r,n,i){if(!ea.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=iTe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=iTe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function iTe(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 yTt(e,t,r){iA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Y4(t,e.length-(r+1))}function vTe(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 tA.ERR_OUT_OF_RANGE("value",s,e)}yTt(n,i,a)}function iA(e,t){if(typeof e!="number")throw new tA.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y4(e,t,r){throw Math.floor(e)!==e?(iA(e,r),new tA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new tA.ERR_BUFFER_OUT_OF_BOUNDS:new tA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var _Tt=/[^+/0-9A-Za-z-_]/g;function xTt(e){if(e=e.split("=")[0],e=e.trim().replace(_Tt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function AH(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 bTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function pTe(e){return bH.toByteArray(xTt(e))}function Z8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Hm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kH(e){return e!==e}var TTt=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"?ATt:e}function ATt(){throw new Error("BigInt not supported")}});var Y8=ye(($fr,gTe)=>{"use strict";gTe.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 K4=ye((Qfr,mTe)=>{"use strict";var STt=Y8();mTe.exports=function(){return STt()&&!!Symbol.toStringTag}});var CH=ye((ehr,yTe)=>{"use strict";yTe.exports=Object});var xTe=ye((thr,_Te)=>{"use strict";_Te.exports=Error});var wTe=ye((rhr,bTe)=>{"use strict";bTe.exports=EvalError});var ATe=ye((ihr,TTe)=>{"use strict";TTe.exports=RangeError});var MTe=ye((nhr,STe)=>{"use strict";STe.exports=ReferenceError});var LH=ye((ahr,ETe)=>{"use strict";ETe.exports=SyntaxError});var aA=ye((ohr,kTe)=>{"use strict";kTe.exports=TypeError});var LTe=ye((shr,CTe)=>{"use strict";CTe.exports=URIError});var ITe=ye((lhr,PTe)=>{"use strict";PTe.exports=Math.abs});var DTe=ye((uhr,RTe)=>{"use strict";RTe.exports=Math.floor});var zTe=ye((chr,FTe)=>{"use strict";FTe.exports=Math.max});var qTe=ye((fhr,OTe)=>{"use strict";OTe.exports=Math.min});var NTe=ye((hhr,BTe)=>{"use strict";BTe.exports=Math.pow});var VTe=ye((dhr,UTe)=>{"use strict";UTe.exports=Math.round});var HTe=ye((vhr,GTe)=>{"use strict";GTe.exports=Number.isNaN||function(t){return t!==t}});var WTe=ye((phr,jTe)=>{"use strict";var MTt=HTe();jTe.exports=function(t){return MTt(t)||t===0?t:t<0?-1:1}});var ZTe=ye((ghr,XTe)=>{"use strict";XTe.exports=Object.getOwnPropertyDescriptor});var x2=ye((mhr,YTe)=>{"use strict";var K8=ZTe();if(K8)try{K8([],"length")}catch(e){K8=null}YTe.exports=K8});var J4=ye((yhr,KTe)=>{"use strict";var J8=Object.defineProperty||!1;if(J8)try{J8({},"a",{value:1})}catch(e){J8=!1}KTe.exports=J8});var QTe=ye((_hr,$Te)=>{"use strict";var JTe=typeof Symbol!="undefined"&&Symbol,ETt=Y8();$Te.exports=function(){return typeof JTe!="function"||typeof Symbol!="function"||typeof JTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ETt()}});var PH=ye((xhr,eAe)=>{"use strict";eAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var IH=ye((bhr,tAe)=>{"use strict";var kTt=CH();tAe.exports=kTt.getPrototypeOf||null});var nAe=ye((whr,iAe)=>{"use strict";var CTt="Function.prototype.bind called on incompatible ",LTt=Object.prototype.toString,PTt=Math.max,ITt="[object Function]",rAe=function(t,r){for(var n=[],i=0;i{"use strict";var FTt=nAe();aAe.exports=Function.prototype.bind||FTt});var $8=ye((Ahr,oAe)=>{"use strict";oAe.exports=Function.prototype.call});var RH=ye((Shr,sAe)=>{"use strict";sAe.exports=Function.prototype.apply});var uAe=ye((Mhr,lAe)=>{"use strict";lAe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fAe=ye((Ehr,cAe)=>{"use strict";var zTt=oA(),OTt=RH(),qTt=$8(),BTt=uAe();cAe.exports=BTt||zTt.call(qTt,OTt)});var dAe=ye((khr,hAe)=>{"use strict";var NTt=oA(),UTt=aA(),VTt=$8(),GTt=fAe();hAe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new UTt("a function is required");return GTt(NTt,VTt,t)}});var _Ae=ye((Chr,yAe)=>{"use strict";var HTt=dAe(),vAe=x2(),gAe;try{gAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DH=!!gAe&&vAe&&vAe(Object.prototype,"__proto__"),mAe=Object,pAe=mAe.getPrototypeOf;yAe.exports=DH&&typeof DH.get=="function"?HTt([DH.get]):typeof pAe=="function"?function(t){return pAe(t==null?t:mAe(t))}:!1});var AAe=ye((Lhr,TAe)=>{"use strict";var xAe=PH(),bAe=IH(),wAe=_Ae();TAe.exports=xAe?function(t){return xAe(t)}:bAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return bAe(t)}:wAe?function(t){return wAe(t)}:null});var MAe=ye((Phr,SAe)=>{"use strict";var jTt=Function.prototype.call,WTt=Object.prototype.hasOwnProperty,XTt=oA();SAe.exports=XTt.call(jTt,WTt)});var tR=ye((Ihr,IAe)=>{"use strict";var lu,ZTt=CH(),YTt=xTe(),KTt=wTe(),JTt=ATe(),$Tt=MTe(),cA=LH(),uA=aA(),QTt=LTe(),eAt=ITe(),tAt=DTe(),rAt=zTe(),iAt=qTe(),nAt=NTe(),aAt=VTe(),oAt=WTe(),LAe=Function,FH=function(e){try{return LAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},$4=x2(),sAt=J4(),zH=function(){throw new uA},lAt=$4?function(){try{return arguments.callee,zH}catch(e){try{return $4(arguments,"callee").get}catch(t){return zH}}}():zH,sA=QTe()(),tv=AAe(),uAt=IH(),cAt=PH(),PAe=RH(),Q4=$8(),lA={},fAt=typeof Uint8Array=="undefined"||!tv?lu:tv(Uint8Array),b2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":sA&&tv?tv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":lA,"%AsyncGenerator%":lA,"%AsyncGeneratorFunction%":lA,"%AsyncIteratorPrototype%":lA,"%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%":YTt,"%eval%":eval,"%EvalError%":KTt,"%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%":LAe,"%GeneratorFunction%":lA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sA&&tv?tv(tv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!sA||!tv?lu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ZTt,"%Object.getOwnPropertyDescriptor%":$4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":JTt,"%ReferenceError%":$Tt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!sA||!tv?lu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sA&&tv?tv(""[Symbol.iterator]()):lu,"%Symbol%":sA?Symbol:lu,"%SyntaxError%":cA,"%ThrowTypeError%":lAt,"%TypedArray%":fAt,"%TypeError%":uA,"%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%":QTt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":Q4,"%Function.prototype.apply%":PAe,"%Object.defineProperty%":sAt,"%Object.getPrototypeOf%":uAt,"%Math.abs%":eAt,"%Math.floor%":tAt,"%Math.max%":rAt,"%Math.min%":iAt,"%Math.pow%":nAt,"%Math.round%":aAt,"%Math.sign%":oAt,"%Reflect.getPrototypeOf%":cAt};if(tv)try{null.error}catch(e){EAe=tv(tv(e)),b2["%Error.prototype%"]=EAe}var EAe,hAt=function e(t){var r;if(t==="%AsyncFunction%")r=FH("async function () {}");else if(t==="%GeneratorFunction%")r=FH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=FH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return b2[t]=r,r},kAe={__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"]},eE=oA(),Q8=MAe(),dAt=eE.call(Q4,Array.prototype.concat),vAt=eE.call(PAe,Array.prototype.splice),CAe=eE.call(Q4,String.prototype.replace),eR=eE.call(Q4,String.prototype.slice),pAt=eE.call(Q4,RegExp.prototype.exec),gAt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mAt=/\\(\\)?/g,yAt=function(t){var r=eR(t,0,1),n=eR(t,-1);if(r==="%"&&n!=="%")throw new cA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cA("invalid intrinsic syntax, expected opening `%`");var i=[];return CAe(t,gAt,function(a,o,s,l){i[i.length]=s?CAe(l,mAt,"$1"):o||a}),i},_At=function(t,r){var n=t,i;if(Q8(kAe,n)&&(i=kAe[n],n="%"+i[0]+"%"),Q8(b2,n)){var a=b2[n];if(a===lA&&(a=hAt(n)),typeof a=="undefined"&&!r)throw new uA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new cA("intrinsic "+t+" does not exist!")};IAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new uA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new uA('"allowMissing" argument must be a boolean');if(pAt(/^%?[^%]*%?$/,t)===null)throw new cA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yAt(t),i=n.length>0?n[0]:"",a=_At("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],vAt(n,dAt([0,1],u)));for(var c=1,f=!0;c=n.length){var _=$4(s,h);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else f=Q8(s,h),s=s[h];f&&!l&&(b2[o]=s)}}return s}});var zAe=ye((Rhr,FAe)=>{"use strict";var RAe=J4(),xAt=LH(),fA=aA(),DAe=x2();FAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new fA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new fA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new fA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new fA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new fA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new fA("`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=!!DAe&&DAe(t,r);if(RAe)RAe(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 xAt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var qH=ye((Dhr,qAe)=>{"use strict";var OH=J4(),OAe=function(){return!!OH};OAe.hasArrayLengthDefineBug=function(){if(!OH)return null;try{return OH([],"length",{value:1}).length!==1}catch(t){return!0}};qAe.exports=OAe});var GAe=ye((Fhr,VAe)=>{"use strict";var bAt=tR(),BAe=zAe(),wAt=qH()(),NAe=x2(),UAe=aA(),TAt=bAt("%Math.floor%");VAe.exports=function(t,r){if(typeof t!="function")throw new UAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||TAt(r)!==r)throw new UAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&NAe){var o=NAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(wAt?BAe(t,"length",r,!0,!0):BAe(t,"length",r)),t}});var tE=ye((zhr,rR)=>{"use strict";var BH=oA(),iR=tR(),AAt=GAe(),SAt=aA(),WAe=iR("%Function.prototype.apply%"),XAe=iR("%Function.prototype.call%"),ZAe=iR("%Reflect.apply%",!0)||BH.call(XAe,WAe),HAe=J4(),MAt=iR("%Math.max%");rR.exports=function(t){if(typeof t!="function")throw new SAt("a function is required");var r=ZAe(BH,XAe,arguments);return AAt(r,1+MAt(0,t.length-(arguments.length-1)),!0)};var jAe=function(){return ZAe(BH,WAe,arguments)};HAe?HAe(rR.exports,"apply",{value:jAe}):rR.exports.apply=jAe});var hA=ye((Ohr,JAe)=>{"use strict";var YAe=tR(),KAe=tE(),EAt=KAe(YAe("String.prototype.indexOf"));JAe.exports=function(t,r){var n=YAe(t,!!r);return typeof n=="function"&&EAt(t,".prototype.")>-1?KAe(n):n}});var e5e=ye((qhr,QAe)=>{"use strict";var kAt=K4()(),CAt=hA(),NH=CAt("Object.prototype.toString"),nR=function(t){return kAt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:NH(t)==="[object Arguments]"},$Ae=function(t){return nR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&NH(t)!=="[object Array]"&&NH(t.callee)==="[object Function]"},LAt=function(){return nR(arguments)}();nR.isLegacyArguments=$Ae;QAe.exports=LAt?nR:$Ae});var i5e=ye((Bhr,r5e)=>{"use strict";var PAt=Object.prototype.toString,IAt=Function.prototype.toString,RAt=/^\s*(?:function)?\*/,t5e=K4()(),UH=Object.getPrototypeOf,DAt=function(){if(!t5e)return!1;try{return Function("return function*() {}")()}catch(e){}},VH;r5e.exports=function(t){if(typeof t!="function")return!1;if(RAt.test(IAt.call(t)))return!0;if(!t5e){var r=PAt.call(t);return r==="[object GeneratorFunction]"}if(!UH)return!1;if(typeof VH=="undefined"){var n=DAt();VH=n?UH(n):!1}return UH(t)===VH}});var s5e=ye((Nhr,o5e)=>{"use strict";var a5e=Function.prototype.toString,dA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,HH,aR;if(typeof dA=="function"&&typeof Object.defineProperty=="function")try{HH=Object.defineProperty({},"length",{get:function(){throw aR}}),aR={},dA(function(){throw 42},null,HH)}catch(e){e!==aR&&(dA=null)}else dA=null;var FAt=/^\s*class\b/,jH=function(t){try{var r=a5e.call(t);return FAt.test(r)}catch(n){return!1}},GH=function(t){try{return jH(t)?!1:(a5e.call(t),!0)}catch(r){return!1}},oR=Object.prototype.toString,zAt="[object Object]",OAt="[object Function]",qAt="[object GeneratorFunction]",BAt="[object HTMLAllCollection]",NAt="[object HTML document.all class]",UAt="[object HTMLCollection]",VAt=typeof Symbol=="function"&&!!Symbol.toStringTag,GAt=!(0 in[,]),WH=function(){return!1};typeof document=="object"&&(n5e=document.all,oR.call(n5e)===oR.call(document.all)&&(WH=function(t){if((GAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=oR.call(t);return(r===BAt||r===NAt||r===UAt||r===zAt)&&t("")==null}catch(n){}return!1}));var n5e;o5e.exports=dA?function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{dA(t,null,HH)}catch(r){if(r!==aR)return!1}return!jH(t)&&GH(t)}:function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(VAt)return GH(t);if(jH(t))return!1;var r=oR.call(t);return r!==OAt&&r!==qAt&&!/^\[object HTML/.test(r)?!1:GH(t)}});var XH=ye((Uhr,u5e)=>{"use strict";var HAt=s5e(),jAt=Object.prototype.toString,l5e=Object.prototype.hasOwnProperty,WAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),jAt.call(t)==="[object Array]"?WAt(t,r,i):typeof t=="string"?XAt(t,r,i):ZAt(t,r,i)};u5e.exports=YAt});var YH=ye((Vhr,c5e)=>{"use strict";var ZH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],KAt=typeof globalThis=="undefined"?window:globalThis;c5e.exports=function(){for(var t=[],r=0;r{"use strict";var lR=XH(),JAt=YH(),f5e=tE(),$H=hA(),sR=x2(),$At=$H("Object.prototype.toString"),d5e=K4()(),h5e=typeof globalThis=="undefined"?window:globalThis,JH=JAt(),QH=$H("String.prototype.slice"),KH=Object.getPrototypeOf,QAt=$H("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:t5t(t)}return sR?e5t(t):null}});var b5e=ye((Hhr,x5e)=>{"use strict";var g5e=XH(),r5t=YH(),tj=hA(),i5t=tj("Object.prototype.toString"),m5e=K4()(),cR=x2(),n5t=typeof globalThis=="undefined"?window:globalThis,y5e=r5t(),a5t=tj("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return cR?s5t(t):!1}});var nj=ye(uu=>{"use strict";var l5t=e5e(),u5t=i5e(),Wg=p5e(),w5e=b5e();function vA(e){return e.call.bind(e)}var T5e=typeof BigInt!="undefined",A5e=typeof Symbol!="undefined",K0=vA(Object.prototype.toString),c5t=vA(Number.prototype.valueOf),f5t=vA(String.prototype.valueOf),h5t=vA(Boolean.prototype.valueOf);T5e&&(S5e=vA(BigInt.prototype.valueOf));var S5e;A5e&&(M5e=vA(Symbol.prototype.valueOf));var M5e;function iE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=l5t;uu.isGeneratorFunction=u5t;uu.isTypedArray=w5e;function d5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=d5t;function v5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):w5e(e)||k5e(e)}uu.isArrayBufferView=v5t;function p5t(e){return Wg(e)==="Uint8Array"}uu.isUint8Array=p5t;function g5t(e){return Wg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=g5t;function m5t(e){return Wg(e)==="Uint16Array"}uu.isUint16Array=m5t;function y5t(e){return Wg(e)==="Uint32Array"}uu.isUint32Array=y5t;function _5t(e){return Wg(e)==="Int8Array"}uu.isInt8Array=_5t;function x5t(e){return Wg(e)==="Int16Array"}uu.isInt16Array=x5t;function b5t(e){return Wg(e)==="Int32Array"}uu.isInt32Array=b5t;function w5t(e){return Wg(e)==="Float32Array"}uu.isFloat32Array=w5t;function T5t(e){return Wg(e)==="Float64Array"}uu.isFloat64Array=T5t;function A5t(e){return Wg(e)==="BigInt64Array"}uu.isBigInt64Array=A5t;function S5t(e){return Wg(e)==="BigUint64Array"}uu.isBigUint64Array=S5t;function fR(e){return K0(e)==="[object Map]"}fR.working=typeof Map!="undefined"&&fR(new Map);function M5t(e){return typeof Map=="undefined"?!1:fR.working?fR(e):e instanceof Map}uu.isMap=M5t;function hR(e){return K0(e)==="[object Set]"}hR.working=typeof Set!="undefined"&&hR(new Set);function E5t(e){return typeof Set=="undefined"?!1:hR.working?hR(e):e instanceof Set}uu.isSet=E5t;function dR(e){return K0(e)==="[object WeakMap]"}dR.working=typeof WeakMap!="undefined"&&dR(new WeakMap);function k5t(e){return typeof WeakMap=="undefined"?!1:dR.working?dR(e):e instanceof WeakMap}uu.isWeakMap=k5t;function ij(e){return K0(e)==="[object WeakSet]"}ij.working=typeof WeakSet!="undefined"&&ij(new WeakSet);function C5t(e){return ij(e)}uu.isWeakSet=C5t;function vR(e){return K0(e)==="[object ArrayBuffer]"}vR.working=typeof ArrayBuffer!="undefined"&&vR(new ArrayBuffer);function E5e(e){return typeof ArrayBuffer=="undefined"?!1:vR.working?vR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=E5e;function pR(e){return K0(e)==="[object DataView]"}pR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&pR(new DataView(new ArrayBuffer(1),0,1));function k5e(e){return typeof DataView=="undefined"?!1:pR.working?pR(e):e instanceof DataView}uu.isDataView=k5e;var rj=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function rE(e){return K0(e)==="[object SharedArrayBuffer]"}function C5e(e){return typeof rj=="undefined"?!1:(typeof rE.working=="undefined"&&(rE.working=rE(new rj)),rE.working?rE(e):e instanceof rj)}uu.isSharedArrayBuffer=C5e;function L5t(e){return K0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=L5t;function P5t(e){return K0(e)==="[object Map Iterator]"}uu.isMapIterator=P5t;function I5t(e){return K0(e)==="[object Set Iterator]"}uu.isSetIterator=I5t;function R5t(e){return K0(e)==="[object Generator]"}uu.isGeneratorObject=R5t;function D5t(e){return K0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=D5t;function L5e(e){return iE(e,c5t)}uu.isNumberObject=L5e;function P5e(e){return iE(e,f5t)}uu.isStringObject=P5e;function I5e(e){return iE(e,h5t)}uu.isBooleanObject=I5e;function R5e(e){return T5e&&iE(e,S5e)}uu.isBigIntObject=R5e;function D5e(e){return A5e&&iE(e,M5e)}uu.isSymbolObject=D5e;function F5t(e){return L5e(e)||P5e(e)||I5e(e)||R5e(e)||D5e(e)}uu.isBoxedPrimitive=F5t;function z5t(e){return typeof Uint8Array!="undefined"&&(E5e(e)||C5e(e))}uu.isAnyArrayBuffer=z5t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var aj=ye((Whr,F5e)=>{F5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var fj=ye(cu=>{var z5e=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]),uj(t)?r.showHidden=t:t&&cu._extend(r,t),T2(r.showHidden)&&(r.showHidden=!1),T2(r.depth)&&(r.depth=2),T2(r.colors)&&(r.colors=!1),T2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=q5t),_R(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 q5t(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function B5t(e,t){return e}function N5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _R(e,t,r){if(e.customInspect&&t&&yR(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return wR(n)||(n=_R(e,n,r)),n}var i=U5t(e,t);if(i)return i;var a=Object.keys(t),o=N5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),aE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return oj(t);if(a.length===0){if(yR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(nE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(aE(t))return oj(t)}var l="",u=!1,c=["{","}"];if(q5e(t)&&(u=!0,c=["[","]"]),yR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(nE(t)&&(l=" "+RegExp.prototype.toString.call(t)),xR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),aE(t)&&(l=" "+oj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return nE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=V5t(e,t,r,o,a):h=a.map(function(d){return lj(e,t,r,o,d,u)}),e.seen.pop(),G5t(h,l,c)}function U5t(e,t){if(T2(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(B5e(t))return e.stylize(""+t,"number");if(uj(t))return e.stylize(""+t,"boolean");if(bR(t))return e.stylize("null","null")}function oj(e){return"["+Error.prototype.toString.call(e)+"]"}function V5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";_ie.exports=function(t){return t}});var V6=ye(My=>{"use strict";var Nit=Eo(),Uit=K1(),Vit=ZS(),Git=fs().BADNUM,ZO=1e-9;My.findBin=function(e,t,r){if(Nit(t.start))return r?Math.ceil((e-t.start)/t.size-ZO)-1:Math.floor((e-t.start)/t.size+ZO);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?Hit:jit:l=r?Xit:Wit,e+=o*ZO*(r?-1:1)*(o>=0?1:-1);n90&&Uit.log("Long binary search..."),n-1};function Hit(e,t){return et}function Xit(e,t){return e>=t}My.sorterAsc=function(e,t){return e-t};My.sorterDes=function(e,t){return t-e};My.distinctVals=function(e){var t=e.slice();t.sort(My.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Git;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}};My.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()};My.findIndexOfMin=function(e,t){t=t||Vit;for(var r=1/0,n,i=0;i{"use strict";xie.exports=function(t){return Object.keys(t).sort()}});var bie=ye(dh=>{"use strict";var YS=Eo(),Zit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),YS(t)||(t=!1),Zit(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 Mie=ye((Vir,Sie)=>{"use strict";var wie=d3(),YO=wie.mod,Yit=wie.modHalf,KS=Math.PI,r_=2*KS;function Kit(e){return e/180*KS}function Jit(e){return e/KS*180}function KO(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Tie(e,t){return Yit(t-e,r_)}function $it(e,t){return Math.abs(Tie(e,t))}function Aie(e,t){if(KO(t))return!0;var r,n;t[0]n&&(n+=r_);var i=YO(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function Qit(e,t,r,n){if(!Aie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function JO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=KO([r,n]),l,u,c,f,h;s?(l=0,u=KS,c=r_):r{"use strict";bb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};bb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};bb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};bb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};bb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};bb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Lie=ye(wb=>{"use strict";var $O=d3().mod;wb.segmentsIntersect=Cie;function Cie(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 _=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||_<0||_>1?null:{x:e+l*_,y:t+f*_}}wb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Cie(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,_=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(_)};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,QO,kie;wb.getTextLocation=function(t,r,n,i){if((t!==QO||i!==kie)&&(H6={},QO=t,kie=i),H6[n])return H6[n];var a=t.getPointAtLength($O(n-i/2,r)),o=t.getPointAtLength($O(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength($O(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};wb.clearLocationCache=function(){QO=null};wb.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(_){var b=t.getPointAtLength(_);_===0?f=b:_===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}};wb.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(JS=>{"use strict";var Ey={};JS.throttle=function(t,r,n){var i=Ey[t],a=Date.now();if(!i){for(var o in Ey)Ey[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};JS.done=function(e){var t=Ey[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};JS.clear=function(e){if(e)Pie(Ey[e]),delete Ey[e];else for(var t in Ey)JS.clear(t)};function Pie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Rie=ye((Wir,Iie)=>{"use strict";Iie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Die=ye((Xir,W6)=>{"use strict";W6.exports=eq;W6.exports.isMobile=eq;W6.exports.default=eq;var int=/(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,nnt=/CrOS/,ant=/android|ipad|playbook|silk/i;function eq(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=int.test(t)&&!nnt.test(t)||!!e.tablet&&ant.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var zie=ye((Zir,Fie)=>{"use strict";var ont=Eo(),snt=Die();Fie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=lnt(),typeof r!="string")return!0;var n=snt({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(ont(u)&&(u=+u),u>=13)return!0}}}return n};function lnt(){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 qie=ye((Yir,Oie)=>{"use strict";var unt=Oa();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]=unt.select(this)}),i}});var Nie=ye((Kir,Bie)=>{"use strict";var cnt=qa();Bie.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=cnt.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var tq=ye((Jir,Uie)=>{"use strict";Uie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Vie.exports=function(t){for(var r=dnt(t)?hnt:fnt,n=[],i=0;i{"use strict";Hie.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 Xie=ye((enr,Wie)=>{"use strict";var vnt=Eo(),pnt=fs().BADNUM,gnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Wie.exports=function(t){return typeof t=="string"&&(t=t.replace(gnt,"")),vnt(t)?Number(t):pnt}});var Dr=ye((tnr,one)=>{"use strict";var $S=Oa(),mnt=f3().utcFormat,ynt=MO().format,Qie=Eo(),ene=fs(),tne=ene.FP_SAFE,_nt=-tne,Zie=ene.BADNUM,Mi=one.exports={};Mi.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 Yie={};Mi.warnBadFormat=function(e){var t=String(e);Yie[t]||(Yie[t]=1,Mi.warn('encountered bad format: "'+t+'"'))};Mi.noFormat=function(e){return String(e)};Mi.numberFormat=function(e){var t;try{t=ynt(Mi.adjustFormat(e))}catch(r){return Mi.warnBadFormat(e),Mi.noFormat}return t};Mi.nestedProperty=FS();Mi.keyedContainer=Uee();Mi.relativeAttr=Gee();Mi.isPlainObject=Ty();Mi.toLogRange=M6();Mi.relinkPrivateKeys=Xee();var i_=vv();Mi.isArrayBuffer=i_.isArrayBuffer;Mi.isTypedArray=i_.isTypedArray;Mi.isArrayOrTypedArray=i_.isArrayOrTypedArray;Mi.isArray1D=i_.isArray1D;Mi.ensureArray=i_.ensureArray;Mi.concat=i_.concat;Mi.maxRowLength=i_.maxRowLength;Mi.minRowLength=i_.minRowLength;var rne=d3();Mi.mod=rne.mod;Mi.modHalf=rne.modHalf;var n_=hte();Mi.valObjectMeta=n_.valObjectMeta;Mi.coerce=n_.coerce;Mi.coerce2=n_.coerce2;Mi.coerceFont=n_.coerceFont;Mi.coercePattern=n_.coercePattern;Mi.coerceHoverinfo=n_.coerceHoverinfo;Mi.coerceSelectionMarkerOpacity=n_.coerceSelectionMarkerOpacity;Mi.validate=n_.validate;var jp=yie();Mi.dateTime2ms=jp.dateTime2ms;Mi.isDateTime=jp.isDateTime;Mi.ms2DateTime=jp.ms2DateTime;Mi.ms2DateTimeLocal=jp.ms2DateTimeLocal;Mi.cleanDate=jp.cleanDate;Mi.isJSDate=jp.isJSDate;Mi.formatDate=jp.formatDate;Mi.incrementMonth=jp.incrementMonth;Mi.dateTick0=jp.dateTick0;Mi.dfltRange=jp.dfltRange;Mi.findExactDates=jp.findExactDates;Mi.MIN_MS=jp.MIN_MS;Mi.MAX_MS=jp.MAX_MS;var Tb=V6();Mi.findBin=Tb.findBin;Mi.sorterAsc=Tb.sorterAsc;Mi.sorterDes=Tb.sorterDes;Mi.distinctVals=Tb.distinctVals;Mi.roundUp=Tb.roundUp;Mi.sort=Tb.sort;Mi.findIndexOfMin=Tb.findIndexOfMin;Mi.sortObjectKeys=t_();var ky=bie();Mi.aggNums=ky.aggNums;Mi.len=ky.len;Mi.mean=ky.mean;Mi.geometricMean=ky.geometricMean;Mi.median=ky.median;Mi.midRange=ky.midRange;Mi.variance=ky.variance;Mi.stdev=ky.stdev;Mi.interp=ky.interp;var wg=I6();Mi.init2dArray=wg.init2dArray;Mi.transposeRagged=wg.transposeRagged;Mi.dot=wg.dot;Mi.translationMatrix=wg.translationMatrix;Mi.rotationMatrix=wg.rotationMatrix;Mi.rotationXYMatrix=wg.rotationXYMatrix;Mi.apply3DTransform=wg.apply3DTransform;Mi.apply2DTransform=wg.apply2DTransform;Mi.apply2DTransform2=wg.apply2DTransform2;Mi.convertCssMatrix=wg.convertCssMatrix;Mi.inverseTransformMatrix=wg.inverseTransformMatrix;var gm=Mie();Mi.deg2rad=gm.deg2rad;Mi.rad2deg=gm.rad2deg;Mi.angleDelta=gm.angleDelta;Mi.angleDist=gm.angleDist;Mi.isFullCircle=gm.isFullCircle;Mi.isAngleInsideSector=gm.isAngleInsideSector;Mi.isPtInsideSector=gm.isPtInsideSector;Mi.pathArc=gm.pathArc;Mi.pathSector=gm.pathSector;Mi.pathAnnulus=gm.pathAnnulus;var S3=Eie();Mi.isLeftAnchor=S3.isLeftAnchor;Mi.isCenterAnchor=S3.isCenterAnchor;Mi.isRightAnchor=S3.isRightAnchor;Mi.isTopAnchor=S3.isTopAnchor;Mi.isMiddleAnchor=S3.isMiddleAnchor;Mi.isBottomAnchor=S3.isBottomAnchor;var M3=Lie();Mi.segmentsIntersect=M3.segmentsIntersect;Mi.segmentDistance=M3.segmentDistance;Mi.getTextLocation=M3.getTextLocation;Mi.clearLocationCache=M3.clearLocationCache;Mi.getVisibleSegment=M3.getVisibleSegment;Mi.findPointOnPath=M3.findPointOnPath;var Y6=Ao();Mi.extendFlat=Y6.extendFlat;Mi.extendDeep=Y6.extendDeep;Mi.extendDeepAll=Y6.extendDeepAll;Mi.extendDeepNoArrays=Y6.extendDeepNoArrays;var rq=K1();Mi.log=rq.log;Mi.warn=rq.warn;Mi.error=rq.error;var xnt=p3();Mi.counterRegex=xnt.counter;var iq=j6();Mi.throttle=iq.throttle;Mi.throttleDone=iq.done;Mi.clearThrottle=iq.clear;var Tg=HS();Mi.getGraphDiv=Tg.getGraphDiv;Mi.isPlotDiv=Tg.isPlotDiv;Mi.removeElement=Tg.removeElement;Mi.addStyleRule=Tg.addStyleRule;Mi.addRelatedStyleRule=Tg.addRelatedStyleRule;Mi.deleteRelatedStyleRule=Tg.deleteRelatedStyleRule;Mi.setStyleOnHover=Tg.setStyleOnHover;Mi.getFullTransformMatrix=Tg.getFullTransformMatrix;Mi.getElementTransformMatrix=Tg.getElementTransformMatrix;Mi.getElementAndAncestors=Tg.getElementAndAncestors;Mi.equalDomRects=Tg.equalDomRects;Mi.clearResponsive=Rie();Mi.preserveDrawingBuffer=zie();Mi.makeTraceGroups=qie();Mi._=Nie();Mi.notifier=OO();Mi.filterUnique=tq();Mi.filterVisible=Gie();Mi.pushUnique=NO();Mi.increment=jie();Mi.cleanNumber=Xie();Mi.ensureNumber=function(t){return Qie(t)?(t=Number(t),t>tne||t<_nt?Zie:t):Zie};Mi.isIndex=function(e,t){return t!==void 0&&e>=t?!1:Qie(e)&&e>=0&&e%1===0};Mi.noop=P6();Mi.identity=ZS();Mi.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))};Mi.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};Mi.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?(Mi.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Mi.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};Mi.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};Mi.syncOrAsync=function(e,t,r){var n,i;function a(){return Mi.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)};Mi.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Mi.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Mi.fillArray=function(e,t,r,n){if(n=n||Mi.identity,Mi.isArrayOrTypedArray(e))for(var i=0;iTnt.test(window.navigator.userAgent);var Ant=/Firefox\/(\d+)\.\d+/;Mi.getFirefoxVersion=function(){var e=Ant.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Mi.isD3Selection=function(e){return e instanceof $S.selection};Mi.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};Mi.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};Mi.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};Mi.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ane=/^\w*$/;Mi.templateString=function(e,t){var r={};return e.replace(Mi.TEMPLATE_STRING_REGEX,function(n,i){var a;return ane.test(i)?a=t[i]:(r[i]=r[i]||Mi.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Ent={max:10,count:0,name:"hovertemplate"};Mi.hovertemplateString=e=>nq(j1(_g({},e),{opts:Ent}));var knt={max:10,count:0,name:"texttemplate"};Mi.texttemplateString=e=>nq(j1(_g({},e),{opts:knt}));var Cnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Lnt(e){var t=e.match(Cnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Pnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Mi.texttemplateStringForShapes=e=>nq(j1(_g({},e),{opts:Pnt}));var Kie=/^[:|\|]/;function nq({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(Mi.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,_=null;if(i.parseMultDiv){var b=Lnt(s);s=b.key,v=b.op,_=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(ane.test(s)||(p=Mi.nestedProperty(L,s).get(!0)),p!==void 0)break}if(p===void 0){let{count:L,max:x,name:C}=i,M=r===!1?o:r;return L=Z6&&o<=Jie,u=s>=Z6&&s<=Jie;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 A3=2e9;Mi.seedPseudoRandom=function(){A3=2e9};Mi.pseudoRandom=function(){var e=A3;return A3=(69069*A3+1)%4294967296,Math.abs(A3-e)<429496729?Mi.pseudoRandom():A3/4294967296};Mi.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Mi.extractOption(e,t,"htx","hovertext");if(Mi.isValidTextValue(i))return n(i);var a=Mi.extractOption(e,t,"tx","text");if(Mi.isValidTextValue(a))return n(a)};Mi.isValidTextValue=function(e){return e||e===0};Mi.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,Mi.strTranslate(i-u*(r+o),a-u*(n+s))+Mi.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Mi.setTransormAndDisplay=function(e,t){e.attr("transform",Mi.getTextTransform(t)),e.style("display",t.scale?null:"none")};Mi.ensureUniformFontSize=function(e,t){var r=Mi.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Mi.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)};Mi.bigFont=function(e){return Math.round(1.2*e)};var $ie=Mi.getFirefoxVersion(),Int=$ie!==null&&$ie<86;Mi.getPositionFromD3Event=function(){return Int?[$S.event.layerX,$S.event.layerY]:[$S.event.offsetX,$S.event.offsetY]}});var une=ye(()=>{"use strict";var Rnt=Dr(),sne={"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(aq in sne)lne=aq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Rnt.addStyleRule(lne,sne[aq]);var lne,aq});var oq=ye((anr,cne)=>{cne.exports=!0});var lq=ye((onr,fne)=>{"use strict";var Dnt=oq(),sq;typeof window.matchMedia=="function"?sq=!window.matchMedia("(hover: none)").matches:sq=Dnt;fne.exports=sq});var Ab=ye((snr,uq)=>{"use strict";var E3=typeof Reflect=="object"?Reflect:null,hne=E3&&typeof E3.apply=="function"?E3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},K6;E3&&typeof E3.ownKeys=="function"?K6=E3.ownKeys:Object.getOwnPropertySymbols?K6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:K6=function(t){return Object.getOwnPropertyNames(t)};function Fnt(e){console&&console.warn&&console.warn(e)}var vne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}uq.exports=Jc;uq.exports.once=Bnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var dne=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 dne},set:function(e){if(typeof e!="number"||e<0||vne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");dne=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||vne(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?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return pne(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")hne(l,this,r);else for(var u=l.length,c=xne(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,Fnt(s)}return e}Jc.prototype.addListener=function(t,r){return gne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return gne(this,t,r,!0)};function znt(){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 mne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=znt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return J6(r),this.on(t,mne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return J6(r),this.prependListener(t,mne(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():Ont(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 yne(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?qnt(i):xne(i,i.length)}Jc.prototype.listeners=function(t){return yne(this,t,!0)};Jc.prototype.rawListeners=function(t){return yne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_ne.call(e,t)};Jc.prototype.listenerCount=_ne;function _ne(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 xne(e,t){for(var r=new Array(t),n=0;n{"use strict";var cq=Ab().EventEmitter,Unt={init:function(e){if(e._ev instanceof cq)return e;var t=new cq,r=new cq;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 Tne=Dr(),Vnt=_b().dfltConfig;function Gnt(e,t){for(var r=[],n,i=0;iVnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Cy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Cy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Cy.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";Mne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var P3=ye(ed=>{"use strict";var x0=qa(),QS=Dr(),Q6=Gl(),hq=_3(),Hnt=fq(),jnt=jS(),Wnt=_b().configAttributes,Ene=mc(),Ag=QS.extendDeepAll,C3=QS.isPlainObject,Xnt=QS.isArrayOrTypedArray,eL=QS.nestedProperty,Znt=QS.valObjectMeta,dq="_isSubplotObj",tL="_isLinkedToArray",Ynt="_arrayAttrRegexps",Cne="_deprecated",vq=[dq,tL,Ynt,Cne];ed.IS_SUBPLOT_OBJ=dq;ed.IS_LINKED_TO_ARRAY=tL;ed.DEPRECATED=Cne;ed.UNDERSCORE_ATTRS=vq;ed.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Jnt(t)}),{defs:{valObjects:Znt,metaKeys:vq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Ene.traces,layout:Ene.layout},impliedEdits:{}},traces:e,layout:$nt(),frames:Qnt(),animation:L3(jnt),config:L3(Wnt)}};ed.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(vq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!ed.isValObject(o)&&C3(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)Xnt(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 Jnt(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:L3(n)};if(t.layoutAttributes){var s={};Ag(s,t.layoutAttributes),o.layoutAttributes=L3(s)}return t.animatable||ed.crawl(o,function(l){ed.isValObject(l)&&"anim"in l&&delete l.anim}),o}function $nt(){var e={},t,r;Ag(e,hq);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 I3=Dr(),nat=Gl(),a_="templateitemname",pq={name:{valType:"string",editType:"none"}};pq[a_]={valType:"string",editType:"calc"};Sb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=pq.name,t[a_]=pq[a_],t};Sb.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=I3.coerce(a,{},nat,"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}};Sb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);I3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Sb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Ine(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(!Pne(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?I3.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 _=f();for(var b in _)I3.nestedProperty(e,b).set(_[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Rh=ye((dnr,Rne)=>{"use strict";var eM=p3().counter;Rne.exports={idRegex:{x:eM("x","( domain)?"),y:eM("y","( domain)?")},attrRegex:eM("[xy]axis"),xAxisMatch:eM("xaxis"),yAxisMatch:eM("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 hf=ye(Sp=>{"use strict";var aat=qa(),gq=Rh();Sp.id2name=function(t){if(!(typeof t!="string"||!t.match(gq.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(gq.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(gq.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 Dne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function oat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function sat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Fne.exports={clearOutlineControllers:oat,clearOutline:sat}});var rL=ye((gnr,zne)=>{"use strict";zne.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=qa(),mnr=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 lat=qa(),R3=Dr();Mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Mb.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;R3.isPlainObject(a)?mq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((xnr,eae)=>{"use strict";var Xne=Oa(),cat=f3().timeFormatLocale,fat=MO().formatLocale,tM=Eo(),hat=EO(),Xl=qa(),Zne=P3(),dat=vl(),Ga=Dr(),Yne=ka(),Une=fs().BADNUM,Mp=hf(),vat=o_().clearOutline,pat=rL(),yq=jS(),gat=fq(),mat=Id().getModuleCalcData,Vne=Ga.relinkPrivateKeys,Eb=Ga._,xa=eae.exports={};Ga.extendFlat(xa,Xl);xa.attributes=Gl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=_3();var oL=Nne();xa.executeAPICommand=oL.executeAPICommand;xa.computeAPICommandBindings=oL.computeAPICommandBindings;xa.manageCommandObserver=oL.manageCommandObserver;xa.hasSimpleAPICommandBindings=oL.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=Ga.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=Ga.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Ga.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||Ga.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=Ga.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Yne.defaultLine,"pointer-events":"all"}).each(function(){var u=Xne.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&&yat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function yat(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=Xne.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 _at=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],xat=["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:Eb(e,"Click to enter Plot title"),subtitle:Eb(e,"Click to enter Plot subtitle"),x:Eb(e,"Click to enter X axis title"),y:Eb(e,"Click to enter Y axis title"),colorbar:Eb(e,"Click to enter Colorscale title"),annotation:Eb(e,"new text")},i._traceWord=Eb(e,"trace");var h=Gne(e,_at);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 _=!a.width||!a.height,b=i.autosize,p=c.autosizable,k=_&&(b||p);k?xa.plotAutoSize(e,a,i):_&&xa.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=Tat(h,i.separators),i._extraFormat=Gne(e,xat),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=wat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=bat(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")),O=!!(i._has&&i._has("cartesian")),U=z,G=O;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&vat({_fullLayout:n}),Aat(s,i),Vne(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(Ga.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,E=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+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:T,size:r.t+_}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function Mat(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={}),Kne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Ga.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,_=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 E in p[k]){var T=p[k][E];o[E]=Math.max(o[E],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"&&tM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},A=h[g].b||{},z=P.val,O=P.size,U=A.val,G=A.size,Z=r-o.r-o.l,j=n-o.t-o.b;for(var N in h){if(tM(O)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>z){var oe=(O*H+(re-Z)*z)/(H-z),_e=(re*(1-z)+(O-Z)*(1-H))/(H-z);oe+_e>l+u&&(l=oe,u=_e)}}if(tM(G)&&h[N].t){var Ce=h[N].t.val,Le=h[N].t.size;if(Ce>U){var ge=(G*Ce+(Le-j)*U)/(Ce-U),ie=(Le*(1-U)+(G-j)*(1-Ce))/(Ce-U);ge+ie>f+c&&(f=ge,c=ie)}}}}}var Se=Ga.constrain(r-a.l-a.r,Jne,v),Ee=Ga.constrain(n-a.t-a.b,$ne,_),Ae=Math.max(0,r-Se),Be=Math.max(0,n-Ee);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}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)||Mat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var De=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(Ga.isPlainObject(h)){var v={},_;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.slice(-3)==="src")return}else if(r==="keepstream"){if(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!Ga.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=Ga.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var k=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Ga.isArrayBuffer(k)?hat.encode(k):k},d)}return b?h.map(function(E){return u(E,d)}):p?Ga.simpleMap(h,Ga.identity):Ga.isJSDate(h)?Ga.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=Ga.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:Une,y:Une}]),T[0].t||(T[0].t={}),T[0].trace=a,u[k]=T}}for(jne(r,n,i),s=0;s{"use strict";kb.xmlns="http://www.w3.org/2000/xmlns/";kb.svg="http://www.w3.org/2000/svg";kb.xlink="http://www.w3.org/1999/xlink";kb.svgAttrs={xmlns:kb.svg,"xmlns:xlink":kb.xlink}});var Dh=ye((wnr,tae)=>{"use strict";tae.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=Oa(),Ly=Dr(),Lat=Ly.strTranslate,_q=Wp(),Pat=Dh().LINE_SPACING,Iat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Iat),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=jat(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};zat(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 _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});_.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",E=v.select("g");E.attr({fill:k,stroke:k});var T=E.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"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,C,M]+")"+Lat(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,M=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),M=M+P-x/2}v.attr({x:C,y:M}),r&&r.call(e,_),l(_)})})):s(),e};var Rat=/(<|<|<)/g,Dat=/(>|>|>)/g;function Fat(e){return e.replace(Rat,"\\lt ").replace(Dat,"\\gt ")}var rae=[["$","$"],["\\(","\\)"]];function zat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ly.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ly.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rae},displayAlign:"left"})},u=function(){a=Ly.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rae},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-"+Ly.randstr({},64);s=Fh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Fat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ly.log("There was an error in the tex syntax.",e),r();else{var T=E.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)},_=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(),_(),p()}))}var oae={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"},Oat={sub:"0.3em",sup:"-0.6em"},qat={sub:"-0.21em",sup:"0.42em"},iae="\u200B",nae=["http:","https:","mailto:","",void 0,":"],sae=b0.NEWLINES=/(\r\n?|\n)/g,bq=/(<[^<>]*>)/,wq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Bat=//i;b0.BR_TAG_ALL=//gi;var lae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,uae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,cae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Nat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&sL(n)}var Uat=/(^|;)\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(bq),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,_-a))+i):s.push(f.slice(0,_));break}l=""}}return s.join("")};var Vat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Gat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sL(e){return e.replace(Gat,function(t,r){var n;return r.charAt(0)==="#"?n=Hat(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=Vat[r],n||t})}b0.convertEntities=sL;function Hat(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 jat(e,t){t=t.replace(sae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(_q.svg,"tspan");Fh.select(x).attr({class:"line",dy:a*Pat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var M=1;M.",t);return}var C=n.pop();x!==C.type&&Ly.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Bat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(bq),h=0;h{"use strict";var Wat=Oa(),uL=fd(),iM=Eo(),lL=Dr(),hae=ka(),Xat=mb().isValid;function Zat(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 yae(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 xae=HO(),Kat=xae.FORMAT_LINK,Jat=xae.DATE_FORMAT_LINK;function $at(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Tq:bae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Tq(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: "+Kat+"."].join(" ")}function bae(e,t){return Tq(e,t)+[" And for dates see: "+Jat+".","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(" ")}wae.exports={axisHoverFormat:$at,descriptionOnlyNumbers:Tq,descriptionWithDates:bae}});var Rd=ye((Enr,Bae)=>{"use strict";var Tae=ec(),D3=Ih(),qae=Pd().dash,Sq=Ao().extendFlat,Aae=vl().templatedArray,Mnr=Ll().templateFormatStringDescription,Sae=df().descriptionWithDates,Qat=fs().ONEDAY,mm=Rh(),eot=mm.HOUR_PATTERN,tot=mm.WEEKDAY_PATTERN,Aq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},rot=Sq({},Aq,{values:Aq.values.slice().concat(["sync"])});function Mae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Eae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Cae={valType:"data_array",editType:"ticks"},Lae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Pae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Iae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Rae={valType:"color",dflt:D3.defaultLine,editType:"ticks"},Dae={valType:"color",dflt:D3.lightLine,editType:"ticks"};function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zae=Sq({},qae,{editType:"ticks"}),Oae={valType:"boolean",editType:"ticks"};Bae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:D3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Tae({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:Aae("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:[tot,eot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Qat},editType:"calc"}),tickmode:rot,nticks:Mae(),tick0:Eae,dtick:kae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Cae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Lae,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:Pae(),tickwidth:Iae(),tickcolor:Rae,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:Sq({},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:Tae({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:Sae("tick label")},tickformatstops:Aae("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:Sae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:D3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Oae,gridcolor:Dae,gridwidth:Fae(),griddash:zae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:D3.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:D3.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:Aq,nticks:Mae("minor"),tick0:Eae,dtick:kae,tickvals:Cae,ticks:Lae,ticklen:Pae("minor"),tickwidth:Iae("minor"),tickcolor:Rae,gridcolor:Dae,gridwidth:Fae("minor"),griddash:zae,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((knr,Vae)=>{"use strict";var $c=Rd(),Nae=ec(),Uae=Ao().extendFlat,iot=mc().overrideAll;Vae.exports=iot({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:Uae({},$c.ticks,{dflt:""}),ticklabeloverflow:Uae({},$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:Nae({}),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:Nae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((Lnr,Hae)=>{"use strict";var not=cL(),aot=p3().counter,oot=t_(),Gae=mb().scales,Cnr=oot(Gae);function fL(e){return"`"+e+"`"}Hae.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"?Gae[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",_=n+"max",b=n+"mid",p=fL(u+d),k=fL(u+v),E=fL(u+_),T=k+" and "+E,L={};L[v]=L[_]=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[_]={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=not),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:aot("coloraxis"),dflt:null,editType:"calc"}),C}});var Eq=ye((Pnr,jae)=>{"use strict";var sot=Ao().extendFlat,lot=Tu(),Mq=mb().scales;jae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Mq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Mq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Mq.RdBu,editType:"calc"}},coloraxis:sot({_isSubplotObj:!0,editType:"calc"},lot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var kq=ye((Inr,Wae)=>{"use strict";var uot=Dr();Wae.exports=function(t){return uot.isPlainObject(t.colorbar)}});var Pq=ye(Lq=>{"use strict";var Cq=Eo(),Xae=Dr(),Zae=fs(),cot=Zae.ONEDAY,fot=Zae.ONEWEEK;Lq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?cot:1;if(!e)return a;if(Cq(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=Cq(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};Lq.tick0=function(e,t,r,n){if(t==="date")return Xae.cleanDate(e,Xae.dateTick0(r,n%fot===0?1:0));if(!(n==="D1"||n==="D2"))return Cq(e)?Number(e):0}});var Lb=ye((Dnr,Kae)=>{"use strict";var Yae=Pq(),hot=Dr().isArrayOrTypedArray,dot=vv().isTypedArraySpec,vot=vv().decodeTypedArraySpec;Kae.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 E=s[k];return dot(E)&&(E=vot(E)),E!==void 0?E:(l._template||{})[k]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=hot(d)?"array":h?"linear":"auto",_=n(u+"tickmode",v);if(_==="auto"||_==="sync")n(u+"nticks");else if(_==="linear"){var b=l.dtick=Yae.dtick(h,i);l.tick0=Yae.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 F3=ye((Fnr,$ae)=>{"use strict";var Iq=Dr(),Jae=Rd();$ae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Jae.minor:Jae,u=a?"minor.":"",c=Iq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Iq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Iq.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 Rq=ye((znr,Qae)=>{"use strict";Qae.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 Zd=ye((Onr,eoe)=>{"use strict";var hL=Dr(),pot=vl();eoe.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=pot.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Dq=Dr(),got=ka().contrast,toe=Rd(),mot=Rq(),yot=Zd();roe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Dq.isPlainObject(o)||delete r.labelalias;var s=mot(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?got(a.bgColor):c&&c!==toe.color.dflt?c:u.color;if(Dq.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");yot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:_ot}),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 _ot(e,t){function r(i,a){return Dq.coerce(e,t,toe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=ye((Bnr,ioe)=>{"use strict";var xot=Rq();ioe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=xot(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Fq=ye((Nnr,noe)=>{"use strict";var u_=Dr(),bot=vl(),wot=Lb(),Tot=F3(),Aot=s_(),Sot=l_(),Mot=cL();noe.exports=function(t,r,n){var i=bot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,z){return u_.coerce(a,i,Mot,A,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"),_=o("xref"),b=v==="paper",p=_==="paper",k,E,T,L="left";f?(T="middle",L=p?"left":"right",k=p?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=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:E}},"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"),wot(a,i,o,"linear");var C=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(M.bgColor="black"),Sot(a,i,o,"linear",M),Aot(a,i,o,"linear",M),Tot(a,i,o,"linear",M),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((Unr,soe)=>{"use strict";var aoe=Eo(),Oq=Dr(),Eot=kq(),kot=Fq(),ooe=mb().isValid,Cot=qa().traceIs;function zq(e,t){var r=t.slice(0,t.length-1);return t?Oq.nestedProperty(e,r).get()||{}:e}soe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=zq(t,o),c=zq(r,o),f=zq(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 _=Cot(r,"contour")&&Oq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Oq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[_,r,[h]];return}}var p=u[s+"min"],k=u[s+"max"],E=aoe(p)&&aoe(k)&&p{"use strict";var loe=Dr(),Lot=vl(),uoe=Eq(),Pot=td();coe.exports=function(t,r){function n(f,h){return loe.coerce(t,r,uoe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return loe.coerce(a,o,uoe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Lot.newContainer(r,l,"coloraxis"),o._name=l,Pot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Iot=Dr(),Rot=pv().hasColorscale,Dot=pv().extractOpts;hoe.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?Iot.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Dot(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 voe=Eo(),qq=Dr(),Fot=pv().extractOpts;poe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?qq.nestedProperty(r,o).get():r,l=Fot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return qq.aggNums(Math.min,null,a)},v=function(){return qq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&voe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&voe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,l._sync("colorscale",_)}}});var tc=ye((jnr,goe)=>{"use strict";var dL=mb(),z3=pv();goe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:Eq(),supplyLayoutDefaults:foe(),handleDefaults:td(),crossTraceDefaults:doe(),calc:gv(),scales:dL.scales,defaultScale:dL.defaultScale,getScale:dL.get,isValidScale:dL.isValid,hasColorscale:z3.hasColorscale,extractOpts:z3.extractOpts,extractScale:z3.extractScale,flipScale:z3.flipScale,makeColorScaleFunc:z3.makeColorScaleFunc,makeColorScaleFuncFromTrace:z3.makeColorScaleFuncFromTrace}});var Ru=ye((Wnr,yoe)=>{"use strict";var moe=Dr(),zot=vv().isTypedArraySpec;yoe.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 moe.isPlainObject(t)&&(moe.isArrayOrTypedArray(t.size)||zot(t.size))}}});var O3=ye((Xnr,_oe)=>{"use strict";var Oot=Eo();_oe.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 Oot(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var vL=Dr();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{woe.exports=Vot;var Bq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Uot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Vot(e){var t=[];return e.replace(Uot,function(r,n,i){var a=n.toLowerCase();for(i=Hot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Bq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var jot=nM(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},hs="M0,0Z",Toe=Math.sqrt(2),c_=Math.sqrt(3),Nq=Math.PI,Uq=Math.cos,Vq=Math.sin;koe.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/Toe,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/Toe,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=Nq/2.5,i=2*e*Uq(n),a=2*e*Vq(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=Nq/4,i=2*e*Uq(n),a=2*e*Vq(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 Aoe,Soe,Moe,Eoe;function vs(e,t,r){if((!e||e%360===0)&&!t)return r;if(Moe===e&&Eoe===t&&Aoe===r)return Soe;Moe=e,Eoe=t,Aoe=r;function n(b,p){var k=Uq(b),E=Vq(b),T=p[0],L=p[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Nq,a=0,o=0,s=jot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),Wot=Du.numberFormat,Db=Eo(),Zq=fd(),gL=qa(),Yd=ka(),Xot=tc(),oM=Du.strTranslate,mL=Zl(),Zot=Wp(),Yot=Dh(),Kot=Yot.LINE_SPACING,Boe=X1().DESELECTDIM,Jot=Ru(),$ot=O3(),Qot=ip().appendArrayPointValue,Ta=Yoe.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(Yd.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",Gq(tst(c))),l&&e.style("text-shadow",l==="auto"?mL.makeTextShadow(Yd.contrast(a)):Gq(l)),u&&e.style("text-decoration-line",Gq(rst(u)))};function Gq(e){return e==="none"?void 0:e}var est={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function tst(e){return est[e]}function rst(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(Db(i)&&Db(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",oM(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||!Db(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||"";Yd.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(Yd.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 Noe(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,_="scatterfill-"+t.uid;if(n&&(_="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(Goe,r,_,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Ta.gradient,r,_,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Yd.fill,t.fillcolor)}Ta.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Noe(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&&Noe(i,n[0].trace,t,r)})};var Loe=Coe();Ta.symbolNames=[];Ta.symbolFuncs=[];Ta.symbolBackOffs=[];Ta.symbolNeedLines={};Ta.symbolNoDot={};Ta.symbolNoFill={};Ta.symbolList=[];Object.keys(Loe).forEach(function(e){var t=Loe[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 ist=Ta.symbolNames.length,nst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ta.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=Ta.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=ist||e>=400?0:Math.floor(Math.max(e,0))};function Uoe(e,t,r,n){var i=e%100;return Ta.symbolFuncs[i](t,r,n)+(e>=200?nst:"")}var Poe=Wot("~f"),Voe={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=Voe[n];return Goe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Goe(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=Jq(e,r),f=Kq(e,r);t.attr("d",Uoe(u,l,c,f))}var h=!1,d,v,_;if(e.so)_=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(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=Yd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Yd.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,_),e.om)t.call(Yd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var k=o.gradient,E=e.mgt;E?h=!0:E=k&&k.type,Du.isArrayOrTypedArray(E)&&(E=E[0],Voe[E]||(E=0));var T=o.pattern,L=Ta.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(E&&E!=="none"){var C=e.mgc;C?h=!0:C=k.color;var M=r.uid;h&&(M+="-"+e.i),Ta.gradient(t,i,M,E,[[0,C],[1,d]],"fill")}else if(x){var g=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,g=!0);var A=L(P,e.i,a&&a.color||null),z=L(T.bgcolor,e.i,null),O=T.fgopacity,U=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,U,G,e.mcc,T.fillmode,z,A,O)}else Du.isArrayOrTypedArray(d)?Yd.fill(t,d[e.i]):Yd.fill(t,d);_&&Yd.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=Jot.isBubble(e)?$ot(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:Boe*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 _=i.size,b=a.size,p=o.size,k=b!==void 0,E=p!==void 0;return gL.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||_/2;return T.selected?k?b/2:L:E?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:Yd.addOpacity(f,Boe))},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){Yd.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",Uoe(Ta.symbolNumber(s),l,Jq(o,t),Kq(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={};Qot(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=joe(s,t),_=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:_}).text(u).call(mL.convertToTspans,r).call(Hoe,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=joe(n,t);Yd.fill(i,a);var l=gL.traceIs(t,"bar-like");Hoe(i,o,s,n.mrc2||n.mrc,l)})}};var Ioe=.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=Zoe;Ta.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Zot.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 jq=0,sst=1e4;Ta.bBox=function(e,t,r){r||(r=Roe(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=Roe(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 jq>=sst&&(Ta.savedBBoxes={},jq=0),r&&(Ta.savedBBoxes[r]=d),jq++,Du.extendFlat({},d)};function Roe(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",Yq(t,r))};function Yq(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+=oM(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 lst=/\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(lst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var ust=/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(ust);t===1&&r===1?n=[]:n=[oM(o,s),"scale("+t+","+r+")",oM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Kq(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=Kq;var aM=Math.atan2,Pb=Math.cos,B3=Math.sin;function Doe(e,t){var r=t[0],n=t[1];return[r*Pb(e)-n*B3(e),r*B3(e)+n*Pb(e)]}var Foe,zoe,Ooe,qoe,Wq,Xq;function Jq(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=aM(h[1]-i,h[0]-n),v=aM(f[1]-i,f[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,k=Foe/180*Math.PI,E=zoe/180*Math.PI,T=k-b,L=Pb(E)*B3(T),x=B3(E)*Pb(p)-Pb(E)*B3(p)*Pb(T);_=-aM(L,x)-Math.PI,Foe=u,zoe=c}var C=Doe(d,[Pb(_),0]),M=Doe(v,[B3(_),0]);r=aM(C[1]+M[1],C[0]+M[0])/Math.PI*180,a==="previous"&&!(Xq===t.uid&&e.i===Wq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Xq===t.uid&&e.i===Wq+1&&Db(n)&&Db(i)){var g=n-Ooe,P=i-qoe,A=t.line&&t.line.shape||"",z=A.slice(A.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=aM(P,g)/Math.PI*180+90}else r=null}return Ooe=n,qoe=i,Wq=e.i,Xq=t.uid,r}Ta.getMarkerAngle=Jq});var zb=ye(($nr,Qoe)=>{"use strict";var N3=Oa(),cst=Eo(),fst=Mc(),$q=qa(),Fb=Dr(),Koe=Fb.strTranslate,yL=So(),_L=ka(),U3=Zl(),Joe=X1(),hst=Dh().OPPOSITE_SIDE,$oe=/ [XY][0-9]* /,Qq=1.6,eB=1.6;function dst(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(),_=!1,b=d&&d.font?d.font:{},p=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,A=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},U=(O.text||"").trim(),G=!1,Z=1,j=O.font,N=j.family,H=j.size,re=j.color,oe=j.weight,_e=j.style,Ce=j.variant,Le=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 Ee=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace($oe," % ")===$t.replace($oe," % ")}v===""?h=0:Ae(v,o)&&(Ee||(v=""),h=.2,_=!0),A&&(U===""?Z=0:Ae(U,z)&&(Ee||(U=""),Z=.2,G=!0)),r._meta?v=Fb.templateString(v,r._meta):n._meta&&(v=Fb.templateString(v,n._meta));var Be=v||U||Ee,Pe;f||(f=Fb.ensureSingle(n._infolayer,"g","g-"+t),Pe=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 De=null,ce=t+"-subtitle",je=U||Ee;if(A&&(De=f.selectAll("text."+ce).data(je?[0]:[]),De.enter().append("text"),De.text(U).attr("class",ce),De.exit().remove()),!Be)return f;function lt(Nt,$t){Fb.syncOrAsync([pt,Vt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,Tr;!c&&Pe&&(c={}),c?(Tr="",c.rotate&&(Tr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(Tr+=Koe(0,(c.offset||0)-(Pe||0)))):Tr=null,$t.attr("transform",Tr);function fr(It){if(It){var mt=N3.select(It.node().parentNode).select("."+ce);if(!mt.empty()){var er=It.node().getBBox();if(er.height){var lr=er.y+er.height+Qq*H;mt.attr("y",lr)}}}}if($t.style("opacity",h*_L.opacity(E)).call(yL.font,{color:_L.rgb(E),size:N3.round(k,2),family:p,weight:T,style:L,variant:x,textcase:C,shadow:g,lineposition:M}).attr(u).call(U3.convertToTspans,e,fr),sr&&!sr.empty()){var $e=f.select("."+t+"-math-group"),St=$t.node().getBBox(),Qt=$e.node()?$e.node().getBBox():void 0,Gt=Qt?Qt.y+Qt.height+Qq*H:St.y+St.height+eB*H,_t=Fb.extendFlat({},u,{y:Gt});sr.attr("transform",Tr),sr.style("opacity",Z*_L.opacity(re)).call(yL.font,{color:_L.rgb(re),size:N3.round(H,2),family:N,weight:oe,style:_e,variant:Ce,textcase:Le,shadow:ie,lineposition:ge}).attr(_t).call(U3.convertToTspans,e)}return fst.previousPromises(e)}function Vt(Nt){var $t=Nt.title,sr=N3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var Tr=hst[l.side],fr=l.side==="left"||l.side==="top"?-1:1,$e=cst(l.pad)?l.pad:2,St=yL.bBox(sr.node()),Qt={t:0,b:0,l:0,r:0},Gt=e._fullLayout._reservedMargin;for(var _t in Gt)for(var It in Gt[_t]){var mt=Gt[_t][It];Qt[It]=Math.max(Qt[It],mt)}var er={left:Qt.l,top:Qt.t,right:n.width-Qt.r,bottom:n.height-Qt.b},lr=l.maxShift||fr*(er[l.side]-St[l.side]),wr=0;if(lr<0)wr=lr;else{var Lr=l.offsetLeft||0,ti=l.offsetTop||0;St.left-=Lr,St.right-=Lr,St.top-=ti,St.bottom-=ti,l.selection.each(function(){var Vr=yL.bBox(this);Fb.bBoxIntersect(St,Vr,$e)&&(wr=Math.max(wr,fr*(Vr[l.side]-St[Tr])+$e))}),wr=Math.min(lr,wr),i._titleScoot=Math.abs(wr)}if(wr>0||lr<0){var Br={left:[-wr,0],right:[wr,0],top:[0,-wr],bottom:[0,wr]}[l.side];sr.attr("transform",Koe(Br[0],Br[1]))}}}me.call(lt,De);function ot(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){N3.select(this).transition().duration(Joe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){N3.select(this).transition().duration(Joe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(v?me.on(".opacity",null):(ot(me,o),_=!0),me.call(U3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?$q.call("_guiRestyle",e,a,Nt,s):$q.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Nt){this.text(Nt||" ").call(U3.positionText,u.x,u.y)}),A)){if(A&&!v){var ut=me.node().getBBox(),Wt=ut.y+ut.height+eB*H;De.attr("y",Wt)}U?De.on(".opacity",null):(ot(De,z),G=!0),De.call(U3.makeEditable,{gd:e}).on("edit",function(Nt){$q.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Nt){this.text(Nt||" ").call(U3.positionText,De.attr("x"),De.attr("y"))})}return me.classed("js-placeholder",_),De&&!De.empty()&&De.classed("js-placeholder",G),f}Qoe.exports={draw:dst,SUBTITLE_PADDING_EM:eB,SUBTITLE_PADDING_MATHJAX_EM:Qq}});var xm=ye((Qnr,nse)=>{"use strict";var vst=Oa(),pst=f3().utcFormat,yc=Dr(),gst=yc.numberFormat,ym=Eo(),f_=yc.cleanNumber,mst=yc.ms2DateTime,ese=yc.dateTime2ms,_m=yc.ensureNumber,tse=yc.isArrayOrTypedArray,h_=fs(),xL=h_.FP_SAFE,Sg=h_.BADNUM,yst=h_.LOG_CLIP,_st=h_.ONEWEEK,bL=h_.ONEDAY,wL=h_.ONEHOUR,rse=h_.ONEMIN,ise=h_.ONESEC,TL=hf(),ML=Rh(),AL=ML.HOUR_PATTERN,SL=ML.WEEKDAY_PATTERN;function sM(e){return Math.pow(10,e)}function tB(e){return e!=null}nse.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*yst*Math.abs(x-C))}else return Sg}function o(T,L,x,C){if((C||{}).msUTC&&ym(T))return+T;var M=ese(T,x||t.calendar);if(M===Sg)if(ym(T)){T=+T;var g=Math.floor(yc.mod(T+.05,1)*10),P=Math.round(T-g/10);M=ese(new Date(P))+g/10}else return Sg;return M}function s(T,L,x){return mst(T,L,x||t.calendar)}function l(T){return t._categories[Math.round(T)]}function u(T){if(tB(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,M=C*T,g=0,P=0;Pz)g=P+1;else{g=M<(A+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(T,t._m2,O):0},p=function(T){var L=t._rangebreaks.length;if(!L)return _(T,t._m,t._b);for(var x=0,C=0;Ct._rangebreaks[C].pmax&&(x=C+1);return _(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_m,t.l2c=t.type==="log"?sM:_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 sM(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 sM(f_(T))},t.d2c=t.r2l=f_,t.c2d=t.l2r=_m,t.c2r=a,t.l2d=sM,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return sM(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,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[TL.id2name(g)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(C[g?0:1]=x),C[0]===C[1]){var A=t.l2r(L),z=t.l2r(x);if(L!==void 0){var O=A+1;x!==void 0&&(O=Math.min(O,z)),C[g?1:0]=O}if(x!==void 0){var U=z+1;L!==void 0&&(U=Math.max(U,A)),C[g?0:1]=U}}}},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,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=ML.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||ML.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){yc.nestedProperty(t,T).set(M);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]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var A=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(A-1e3),x[1]=t.l2r(A+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]=M;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",M=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],M),P=t.r2l(t[C][1],M),A=i==="y";if(A?(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,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(A?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=C&&g=C&&T=ie.min&&(_eie.max&&(ie.max=Ce),Le=!1)}Le&&P.push({min:_e,max:Ce})}};for(x=0;x{"use strict";var ase=Eo(),rB=Dr(),xst=fs().BADNUM,EL=rB.isArrayOrTypedArray,bst=rB.isDateTime,wst=rB.cleanNumber,ose=Math.round;lse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(EL(i)&&!i.length)return"-";if(!a&&Est(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function sse(e){return Math.max(1,(e-1)/1e3)}function Mst(e,t){for(var r=e.length,n=sse(r),i=0,a=0,o={},s=0;si*2}function Est(e){return EL(e[0])&&EL(e[1])}});var Mg=ye((tar,gse)=>{"use strict";var kst=Oa(),hse=Eo(),d_=Dr(),kL=fs().FP_SAFE,Cst=qa(),Lst=So(),dse=hf(),Pst=dse.getFromId,Ist=dse.isLinked;gse.exports={applyAutorangeOptions:pse,getAutoRange:iB,makePadFn:nB,doAutoRange:Dst,findExtremes:Fst,concatExtremes:sB};function iB(e,t){var r,n,i=[],a=e._fullLayout,o=nB(a,t,0),s=nB(a,t,1),l=sB(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=E-o(x)-s(C),P>T?A/P>L&&(M=x,g=C,L=A/P):A/E>L&&(M={val:x.val,nopad:1},g={val:C.val,nopad:1},L=A/E));function z(j,N){return Math.max(j,s(N))}if(f===h){var O=f-1,U=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/E));i=f>0?[0,Z]:[Z,0]}else k?i=[Math.max(0,O),Math.max(1,U)]:i=[O,U]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):k&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-use(t,x.val,C.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=pse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function use(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),M=T(r.vpadminus||r.vpad);if(!u){if(k=1/0,E=-1/0,l)for(f=0;f0&&(k=h),h>E&&h-kL&&(k=h),h>E&&h=A;f--)P(f);return{min:n,max:i,opts:r}}function aB(e,t,r,n){vse(e,t,r,n,zst)}function oB(e,t,r,n){vse(e,t,r,n,Ost)}function vse(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 fse(e){return hse(e)&&Math.abs(e)=t}function qst(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 Bst(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=qst(r,t),n=Bst(n,t),[r,n]}});var ho=ye((iar,Bse)=>{"use strict";var w0=Oa(),zh=Eo(),G3=Mc(),uM=qa(),Wo=Dr(),H3=Wo.strTranslate,Ob=Zl(),Nst=zb(),cM=ka(),Xp=So(),Ust=Rd(),mse=Pq(),rar=Rh(),Kd=fs(),Vst=Kd.ONEMAXYEAR,IL=Kd.ONEAVGYEAR,RL=Kd.ONEMINYEAR,Gst=Kd.ONEMAXQUARTER,fB=Kd.ONEAVGQUARTER,DL=Kd.ONEMINQUARTER,Hst=Kd.ONEMAXMONTH,j3=Kd.ONEAVGMONTH,FL=Kd.ONEMINMONTH,Zp=Kd.ONEWEEK,Ov=Kd.ONEDAY,v_=Ov/2,wm=Kd.ONEHOUR,fM=Kd.ONEMIN,zL=Kd.ONESEC,jst=Kd.ONEMILLI,Wst=Kd.ONEMICROSEC,qb=Kd.MINUS_SIGN,qL=Kd.BADNUM,hB={K:"zeroline"},dB={K:"gridline",L:"path"},vB={K:"minor-gridline",L:"path"},kse={K:"tick",L:"path"},yse={K:"tick",L:"text"},_se={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(),lM=BL.MID_SHIFT,Bb=BL.CAP_SHIFT,hM=BL.LINE_SPACING,Xst=BL.OPPOSITE_SIDE,OL=3,Jn=Bse.exports={};Jn.setConvert=xm();var Zst=V3(),Tm=hf(),Yst=Tm.idSort,Kst=Tm.isLinked;Jn.id2name=Tm.id2name;Jn.name2id=Tm.name2id;Jn.cleanId=Tm.cleanId;Jn.list=Tm.list;Jn.listIds=Tm.listIds;Jn.getFromId=Tm.getFromId;Jn.getFromTrace=Tm.getFromTrace;var Cse=Mg();Jn.getAutoRange=Cse.getAutoRange;Jn.findExtremes=Cse.findExtremes;var Jst=1e-4;function yB(e){var t=(e[1]-e[0])*Jst;return[e[0]-t,e[1]+t]}Jn.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)};Jn.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))};Jn.saveRangeInitial=function(e,t){for(var r=Jn.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=Jn.tickIncrement(e,"M6","reverse")+Ov*1.5:a.exactMonths>o?e=Jn.tickIncrement(e,"M1","reverse")+Ov*15.5:e-=v_;var l=Jn.tickIncrement(e,r);if(l<=n)return l}return e}Jn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&zh(t._tmin),i;if(n){var a=Jn.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,Jn.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?lB(u,c)?u===2*Zp&&c===2*Ov&&(e.dtick=Zp):u===2*Zp&&c===3*Ov?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=Ov:wse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":lB(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"?lB(u,c)||(e.dtick=wse(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}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function lB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function wse(e,t){return Math.abs(e/t-1)<.001}Jn.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,Jn.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<=Vst?f=u:f=IL:r===fB&&c>=DL?u>=DL&&u<=Gst?f=u:f=fB:c>=FL?u>=FL&&u<=Hst?f=u:f=j3:r===Zp&&c>=Zp?f=Zp:c>=Ov?f=Ov: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,_=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Jn.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]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=T?t:Wo.extendFlat({},t,t.minor);if(L?Jn.prepMinorTicks(x,t,r):Jn.prepTicks(x,r),x.tickmode==="array"){T?(b=[],v=Tse(t,!L)):(p=[],_=Tse(t,!L));continue}if(x.tickmode==="sync"){b=[],v=ilt(t);continue}var C=yB(u),M=C[0],g=C[1],P=zh(x.dtick),A=n==="log"&&!(P||x.dtick.charAt(0)==="L"),z=Jn.tickFirst(x,r);if(T){if(t._tmin=z,z=g:U<=g;U=Jn.tickIncrement(U,j,c,i)){if(T&&G++,x.rangebreaks&&!c){if(U=h)break}if(b.length>d||U===O)break;O=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var H=(p[1].value-p[0].value)*(s?-1:1);klt(H,t.tickformat)||(l=!1)}if(!l)k=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Wt,Nt){return Wt.value-Nt.value}).filter(function(Wt,Nt,$t){return Nt===0||Wt.value!==$t[Nt-1].value});var oe=re.map(function(Wt,Nt){return Wt.minor===void 0&&!Wt.skipLabel?Nt:null}).filter(function(Wt){return Wt!==null});oe.forEach(function(Wt){l.map(function(Nt){var $t=Wt+Nt;$t>=0&&$t-1;Be--){if(b[Be].drop){b.splice(Be,1);continue}b[Be].value=cB(b[Be].value,t);var ce=t.c2p(b[Be].value);(Pe?De>ce-me:Deh||srh&&($t.periodX=h),sri&&hIL)t/=IL,n=i(10),e.dtick="M"+12*bm(t,n,LL);else if(a>j3)t/=j3,e.dtick="M"+bm(t,1,Ase);else if(a>Ov){if(e.dtick=bm(t,Ov,e._hasDayOfWeekBreaks?[1,2,7,14]:nlt),!r){var o=Jn.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,Ase):a>fM?e.dtick=bm(t,fM,Sse):a>zL?e.dtick=bm(t,zL,Sse):(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))):wB(e)?(e.tick0=0,n=1,e.dtick=bm(t,n,alt)):(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 Rse(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>=Ov&&i<=10||t>=Ov*15)e._tickround="d";else if(t>=fM&&i<=16||t>=wm)e._tickround="M";else if(t>=zL&&i<=19||t>=fM)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&&(W3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!_B(l)||W3(e.exponentformat)&&e.exponentformat==="SI extended"&&!xB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Jn.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"?Ise:Pse,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)};Jn.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=vM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function slt(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=dM(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"||W3(v)&&v!=="SI extended"&&_B(h)||W3(v)&&v==="SI extended"&&xB(h)?(t.text=f[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):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":qb)+d:(t.text=dM(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 _=String(t.text).charAt(0);(_==="0"||_==="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 llt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function ult(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 clt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=dM(t.x,e,i,n)}function flt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=hlt(a);if(o[1]>=100)t.text=dM(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=qb+t.text)}}}else t.text=dM(t.x,e,i,n)}function hlt(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 Fse=["f","p","n","\u03BC","m","","k","M","G","T"],dlt=["q","r","y","z","a",...Fse,"P","E","Z","Y","R","Q"],W3=e=>["SI","SI extended","B"].includes(e);function _B(e){return e>14||e<-15}function xB(e){return e>32||e<-30}function vlt(e,t){return W3(t)?!!(t==="SI extended"&&xB(e)||t!=="SI extended"&&_B(e)):!1}function dM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Jn.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]};Rse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,qb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":W3(o)&&(e+=o==="SI extended"?dlt[s/3+10]:Fse[s/3+5])}return i?qb+e:e}Jn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*j3}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=Jn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Jn.drawOne(e,u,r);return u._shiftPusher&&mB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Wo.simpleMap(u._r,u.r2l),c}}}))};Jn.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=Jn.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),mB(t,v,n,!0),mB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Elt(t,n));var _=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=Jn.calcTicks(t),T=[t.mirror,p,k].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var St=0,Qt=0;if(t._shiftPusher&&(St=Math.max($t,sr.height>0?ut==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(Qt=(t._titleStandoff||0)+(t._titleScoot||0),ut==="l"&&(Qt+=Ese(t))),t._fullDepth=Math.max(St,Qt)),t.automargin){Tr={x:0,y:0,r:0,l:0,t:0,b:0};var Gt=[0,1],_t=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(ut==="b"?Tr[ut]=t._depth:(Tr[ut]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Gt.reverse()),sr.width>0){var It=sr.right-(t._offset+t._length);It>0&&(Tr.xr=1,Tr.r=It);var mt=t._offset-sr.left;mt>0&&(Tr.xl=0,Tr.l=mt)}}else if(ut==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),Tr[ut]=t._depth-_t):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),Tr[ut]=t._depth+_t,Gt.reverse()),sr.height>0){var er=sr.bottom-(t._offset+t._length);er>0&&(Tr.yb=0,Tr.b=er);var lr=t._offset-sr.top;lr>0&&(Tr.yt=1,Tr.t=lr)}Tr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Gt[0]],t.title.text!==l._dfltTitle[c]&&(Tr[ut]+=Ese(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(fr={x:0,y:0,r:0,l:0,t:0,b:0},fr[Wt]=t.linewidth,t.mirror&&t.mirror!==!0&&(fr[Wt]+=$t),t.mirror===!0||t.mirror==="ticks"?fr[f]=t._anchorAxis.domain[Gt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(fr[f]=[t._counterDomainMin,t._counterDomainMax][Gt[1]]))}ot&&($e=uM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Mse(Tr,t.automargin),Mse(fr,t.automargin)),G3.autoMargin(e,bB(t),Tr),G3.autoMargin(e,Ose(t),fr),G3.autoMargin(e,qse(t),$e)}),Wo.syncOrAsync(pt)}};function Mse(e,t){if(e){var r=Object.keys(_se).reduce(function(n,i){return t.indexOf(i)!==-1&&_se[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 plt(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 H3(i+e._offset+e.l2p(pB(h))+r,a+n)}:function(h){return H3(a+n,i+e._offset+e.l2p(pB(h))+r)}};function pB(e){return e.periodX!==void 0?e.periodX:e.x}function _lt(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*Bb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=OL),l&&c==="top"&&(h-=d*(1-Bb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Jn.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};Jn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-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,_=h?e.ticklen:0;if(f?_*=-1:c&&(_=0),h&&(d+=_,r)){var b=Wo.deg2rad(r);d=_*Math.cos(b)+1,v=_*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,E,T,L,x=0,C=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&C==="bottom"||f&&C==="top",L=P?1:-1,f&&(L*=-1),k=v*L,E=t+d*L,T=P?1:-.2,Math.abs(g)===90&&(f?T+=lM:g===-90&&C==="bottom"?T=Bb:g===90&&C==="top"?T=lM:T=.5,x=lM/2*(g/90)),p.xFn=function(O){return O.dx+k+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*T},p.anchorFn=function(O,U){if(c){if(s)return"end";if(l)return"start"}return!zh(U)||U===0||U===180?"middle":U*L<0!==f?"end":"start"},p.heightFn=function(O,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&C==="left"||f&&C==="right",L=P?1:-1,f&&(L*=-1),k=d,E=v*L,T=0,!f&&Math.abs(g)===90&&(g===-90&&C==="left"||g===90&&C==="right"?T=Bb:T=.5),f){var A=zh(g)?+g:0;if(A!==0){var z=Wo.deg2rad(A);x=Math.abs(Math.sin(z))*Bb*L,T=0}}p.xFn=function(O){return O.dx+t-(k+O.fontSize*T)*L+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*lM},p.anchorFn=function(O,U){return zh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},p.heightFn=function(O,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return p};function NL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Jn.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 cM.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,[kse]),a.attr("transform",r.transFn)};Jn.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&&Jn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var _=v?h:d;if(_){var b=_.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 cM.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,[dB,vB])}};Jn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Jn.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 Yst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(cM.stroke,t.zerolinecolor||cM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),UL(t,[hB])};Jn.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 re=w0.select(this),oe=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[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),UL(t,[yse]),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(oe){var _e=w0.select(this),Ce=_e.select(".text-math-group"),Le=l.anchorFn(oe,re),ge=r.transFn.call(_e.node(),oe)+(zh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Ob.lineCount(_e),Se=hM*oe.fontSize,Ee=l.heightFn(oe,zh(re)?+re:0,(ie-1)*Se);if(Ee&&(ge+=H3(0,Ee)),Ce.empty()){var Ae=_e.select("text");Ae.attr({transform:ge,"text-anchor":Le}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Be=Xp.bBox(Ce.node()).width,Pe=Be*{end:-.5,start:.5}[Le];Ce.attr("transform",ge+H3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Ce=oe?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Le=Wo.simpleMap(t.range,t.r2l);_e=t.l2p(Le[0])+t._offset,Ce=t.l2p(Le[1])+t._offset}var ge=Math.min(_e,Ce),ie=Math.max(_e,Ce),Se=t.side,Ee=1/0,Ae=-1/0;f.each(function(De){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var lt=Xp.bBox(ce.node()),pt=0;oe?(lt.right>ie||lt.leftie||lt.top+(t.tickangle?0:De.fontSize/4)t["_visibleLabelMin_"+Le._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 _=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var H=0,re=[],oe,_e=1;f.each(function(Tr){H=Math.max(H,Tr.fontSize);var fr=t.l2p(Tr.x),$e=gB(this),St=Xp.bBox($e.node());_e=Math.max(_e,Ob.lineCount($e)),re.push({top:0,bottom:10,height:10,left:fr-St.width/2,right:fr+St.width/2+2,width:St.width+2})});var Ce=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Le=s.length,ge=Math.abs((s[Le-1].x-s[0].x)*t._m)/(Le-1),ie=Ce?ge/2:ge,Se=Ce?t.ticklen:H*1.25*_e,Ee=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Ee,Be=t.autotickangles.map(function(Tr){return Tr*Math.PI/180}),Pe=Be.find(function(Tr){return Math.abs(Math.cos(Tr))<=Ae});Pe===void 0&&(Pe=Be.reduce(function(Tr,fr){return Math.abs(Math.cos(Tr))Z*G&&(z=G,g[M]=P[M]=O[M])}var j=Math.abs(z-A);j-L>0?(j-=L,L*=1+L/j):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[C]=E.p2r(E.r2p(P[C])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Wo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function xlt(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(cM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Jn.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 Ese(e){var t=e.title.font.size,r=(e.title.text.match(Ob.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Bb+r*hM):r?t*(r+1)*hM:t}function blt(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*Bb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(lM+s*hM));else{var l=vM(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=Jn.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 _=t._selections[t._id+"tick"];if(v={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xp.getTranslate(_.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,Nst.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"}})}Jn.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)===qL)&&(zse(t,0)||!wlt(e,t,r,n)||Tlt(e,t))};Jn.clipEnds=function(e,t){return t.filter(function(r){return zse(e,r.x)})};function zse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Wst:/%L/.test(t)?e>=jst:/%[SX]/.test(t)?e>=zL:/%M/.test(t)?e>=fM:/%[HI]/.test(t)?e>=wm:/%p/.test(t)?e>=v_:/%[Aadejuwx]/.test(t)?e>=Ov:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=FL:/%[q]/.test(t)?e>=DL:/%[Yy]/.test(t)?e>=RL:!0}});var TB=ye((nar,Nse)=>{"use strict";Nse.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 AB=ye((aar,Use)=>{"use strict";var Clt=TB();Use.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&&(Clt(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Gse=ye((oar,Vse)=>{var Llt={left:0,top:0};Vse.exports=Plt;function Plt(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=Ilt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Ilt(e){return e===window||e===document||e===document.body?Llt:e.getBoundingClientRect()}});var VL=ye((sar,Hse)=>{"use strict";var Rlt=oq();function Dlt(){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}Hse.exports=Rlt&&Dlt()});var Wse=ye((lar,jse)=>{"use strict";jse.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 Yse=ye((uar,Zse)=>{"use strict";var Xse=Dr(),Flt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Zse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Xse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Xse.constrain(Math.floor(r*3),0,2),Flt[r][t]}});var Jse=ye((car,Kse)=>{"use strict";var zlt=k3(),Olt=j6(),qlt=HS().getGraphDiv,Blt=NS(),SB=Kse.exports={};SB.wrapped=function(e,t,r){e=qlt(e),e._fullLayout&&Olt.clear(e._fullLayout._uid+Blt.HOVERID),SB.raw(e,t,r)};SB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&zlt.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((far,tle)=>{"use strict";var Nlt=Gse(),MB=lq(),Ult=VL(),Vlt=Dr().removeElement,Glt=Rh(),Nb=tle.exports={};Nb.align=Wse();Nb.getCursor=Yse();var Qse=Jse();Nb.unhover=Qse.wrapped;Nb.unhoverRaw=Qse.raw;Nb.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,Ult?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,T,L){return Math.abs(E)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",E))}r._dragging=!1,r._dragged=!1}};function ele(){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}Nb.coverSlip=ele;function $se(e){return Nlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eg=ye((har,rle)=>{"use strict";rle.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 ale=ye((dar,nle)=>{"use strict";var EB=Eg(),pM="data-savedcursor",ile="!!";nle.exports=function(t,r){var n=t.attr(pM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var kB=ec(),Hlt=Ih();ole.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Hlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kB({editType:"legend"}),grouptitlefont:kB({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:kB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var mM=ye(gM=>{"use strict";gM.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};gM.isVertical=function(t){return t.orientation!=="h"};gM.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};gM.getId=function(t){return t._id||"legend"}});var PB=ye((mar,sle)=>{"use strict";var GL=qa(),Yp=Dr(),jlt=vl(),Wlt=Gl(),Xlt=CB(),Zlt=_3(),LB=mM();function Ylt(e,t,r,n,i){var a=t[e]||{},o=jlt.newContainer(r,e);function s(H,re){return Yp.coerce(a,o,Xlt,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 oe=c._input,_e=c;return Yp.coerce(oe,_e,Wlt,H,re)},h=r.font||{},d=Yp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),v=0,_=!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 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"),M=s("yref"),g=s("xref"),P=C==="h",A=M==="paper",z=g==="paper",O,U,G,Z="left";P?(O=0,GL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?A?(U=1.1,G="bottom"):(U=1,G="top"):A?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",z?O=1.02:(O=1,Z="right")),Yp.coerce(a,o,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:O}},"x"),Yp.coerce(a,o,{y:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:U}},"y"),s("traceorder",b),LB.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)}}}sle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var p_=qa(),IB=Dr(),Klt=IB.pushUnique,Jlt=mM(),lle=!0;RB.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"&&lle&&r.data&&r._context.showTips&&(IB.notifier(IB._(r,"Double-click on legend to isolate one trace"),"long"),lle=!1);var l=s==="togglegroup",u=a.hiddenlabels?a.hiddenlabels.slice():[],c=r._fullData,f=(a.shapes||[]).filter(function(ot){return ot.showlegend}),h=c.concat(f),d=o.trace;d._isShape&&(d=d._fullInput);var v=d.legendgroup,_,b,p,k,E,T,L={},x=[],C=[],M=[];function g(ot,ut){var Wt=x.indexOf(ot),Nt=L.visible;return Nt||(Nt=L.visible=[]),x.indexOf(ot)===-1&&(x.push(ot),Wt=x.length-1),Nt[Wt]=ut,Wt}var P=(a.shapes||[]).map(function(ot){return ot._input}),A=!1;function z(ot,ut){P[ot].visible=ut,A=!0}function O(ot,ut){if(!(o.groupTitle&&!l)){var Wt=ot._fullInput||ot,Nt=Wt._isShape,$t=Wt.index;$t===void 0&&($t=Wt._index);var sr=Wt.visible===!1?!1:ut;Nt?z($t,sr):g($t,sr)}}var U=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,re=[];for(_=0;_{"use strict";ule.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hle=ye((xar,fle)=>{"use strict";var cle=qa(),zB=mM();fle.exports=function(t,r,n){var i=r._inHover,a=zB.isGrouped(r),o=zB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function _(H,re,oe){if(r.visible!==!1&&!(n&&H!==r._id))if(re===""||!zB.isGrouped(r)){var _e="~~i"+f;l.push(_e),s[_e]=[oe],f++}else l.indexOf(re)===-1?(l.push(re),u=!0,s[re]=[oe]):s[re].push(oe)}for(d=0;dz&&(A=z)}g[d][0]._groupMinRank=A,g[d][0]._preGroupSort=d}var O=function(H,re){return H[0]._groupMinRank-re[0]._groupMinRank||H[0]._preGroupSort-re[0]._preGroupSort},U=function(H,re){return H.trace.legendrank-re.trace.legendrank||H._preSort-re._preSort};for(g.forEach(function(H,re){H[0]._preGroupSort=re}),g.sort(O),d=0;d{"use strict";var HL=Dr();function dle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ub.formatPiePercent=function(t,r){var n=dle((t*100).toPrecision(3));return HL.numSeparate(n,r)+"%"};Ub.formatPieValue=function(t,r){var n=dle(t.toPrecision(10));return HL.numSeparate(n,r)};Ub.getFirstFilled=function(t,r){if(HL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var $lt=So(),Qlt=ka();vle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?$lt.pointStyle(t,n,i,r):Qlt.fill(t,r.color)}});var X3=ye((Tar,yle)=>{"use strict";var gle=ka(),mle=g_().castOption,eut=ple();yle.exports=function(t,r,n,i){var a=n.marker.line,o=mle(a.color,r.pts)||gle.defaultLine,s=mle(a.width,r.pts)||0;t.call(eut,r,n,i).style("stroke-width",s).call(gle.stroke,o)}});var NB=ye((Aar,Ale)=>{"use strict";var qv=Oa(),OB=qa(),_v=Dr(),_le=_v.strTranslate,Kp=So(),T0=ka(),qB=pv().extractOpts,jL=Ru(),tut=X3(),rut=g_().castOption,iut=FB(),xle=12,ble=5,Vb=2,nut=10,Z3=5;Ale.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+iut.itemGap*2)/2,l=_le(s,0),u=function(C,M,g,P){var A;if(C+1)A=C;else if(M&&M.width>0)A=M.width;else return 0;return a?P:Math.min(A,g)};t.each(function(C){var M=qv.select(this),g=_v.ensureSingle(M,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,z=C[0].lineHeight,O=C[0].height;if(A==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",_le(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(E).each(c).each(f).each(p).each(k);function c(C){var M=wle(C),g=M.showFill,P=M.showLine,A=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,U=M.anyLine,G=C[0],Z=G.trace,j,N,H=qB(Z),re=H.colorscale,oe=H.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var Be="legendfill-"+Z.uid;Kp.gradient(Ae,r,Be,BB(oe),re,"fill")}},Ce=function(Ae){if(Ae.size()){var Be="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,Be,BB(oe),re,"stroke")}},Le=jL.hasMarkers(Z)||!O?"M5,0":U?"M5,-2":"M5,-3",ge=qv.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",Le+"h"+o+"v6h-"+o+"z").call(_e),P||A){var Se=u(void 0,Z.line,nut,ble);N=_v.minExtend(Z,{line:{width:Se}}),j=[_v.minExtend(G,{trace:N})]}var Ee=ge.select(".legendlines").selectAll("path").data(P||A?[j]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Le+(A?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Ce)}function f(C){var M=wle(C),g=M.anyFill,P=M.anyLine,A=M.showLine,z=M.showMarker,O=C[0],U=O.trace,G=!z&&!P&&!g&&jL.hasText(U),Z,j;function N(ie,Se,Ee,Ae){var Be=_v.nestedProperty(U,ie).get(),Pe=_v.isArrayOrTypedArray(Be)&&Se?Se(Be):Be;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Ee){if(PeEe[1])return Ee[1]}return Pe}function H(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||A){var re={},oe={};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],Vb),re.mld=U._isShape?"solid":N("marker.line.dash",H),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],xle);re.ms=_e,oe.marker.size=_e}A&&(oe.line={width:N("line.width",H,[0,10],ble)}),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(O,re)],j=_v.minExtend(U,oe),j.selectedpoints=null,j.texttemplate=null}var Ce=qv.select(this).select("g.legendpoints"),Le=Ce.selectAll("path.scatterpts").data(z?Z:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),Le.exit().remove(),Le.call(Kp.pointStyle,j,r),z&&(Z[0].mrc=3);var ge=Ce.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 M=C[0].trace,g=M.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,_(C,this,"waterfall")}var A=[];M.visible&&g&&(A=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=qv.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var U=qv.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,Z3,Vb);U.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&U.call(T0.stroke,G.line.color)})}function d(C){_(C,this)}function v(C){_(C,this,"funnel")}function _(C,M,g){var P=C[0].trace,A=P.marker||{},z=A.line||{},O=A.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=g?P.visible&&P.type===g:OB.traceIs(P,"bar"),G=qv.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(U?[C]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var j=qv.select(this),N=Z[0],H=u(N.mlw,A.line,Z3,Vb);j.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=qB(A),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(A,"")(_e)}var Ce=re||N.mc||A.color,Le=A.pattern,ge=Kp.getPatternAttr,ie=Le&&(ge(Le.shape,0,"")||ge(Le.path,0,""));if(ie){var Se=ge(Le.bgcolor,0,null),Ee=ge(Le.fgcolor,0,null),Ae=Le.fgopacity,Be=Tle(Le.size,8,10),Pe=Tle(Le.solidity,.5,1),me="legend-"+P.uid;j.call(Kp.pattern,"legend",r,me,ie,Be,Pe,re,Le.fillmode,Se,Ee,Ae)}else j.call(T0.fill,Ce);H&&T0.stroke(j,N.mlc||z.color)})}function b(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&OB.traceIs(M,"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=qv.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var A=_v.minExtend(M,{marker:{size:a?xle:_v.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,A,r)}else{var z=u(void 0,M.line,Z3,Vb);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"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,A){var z=qv.select(this),O=M[A?"increasing":"decreasing"],U=u(void 0,O.line,Z3,Vb);z.style("stroke-width",U+"px").call(T0.fill,O.fillcolor),U&&T0.stroke(z,O.line.color)})}function k(C){var M=C[0].trace,g=qv.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,A){var z=qv.select(this),O=M[A?"increasing":"decreasing"],U=u(void 0,O.line,Z3,Vb);z.style("fill","none").call(Kp.dashLine,O.line.dash,U),U&&T0.stroke(z,O.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,M,g){var P=C[0],A=P.trace,z=g?A.visible&&A.type===g:OB.traceIs(A,g),O=qv.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[C]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var U=A.marker||{},G=u(rut(U.line.width,P.pts),U.line,Z3,Vb),Z="pieLike",j=_v.minExtend(A,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:j},Z);tut(O,N,j,r)}}function x(C){var M=C[0].trace,g,P=[];if(M.visible)switch(M.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 A=qv.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(z,O){var U=qv.select(this),G=qB(M),Z=G.colorscale,j=G.reversescale,N=function(_e){if(_e.size()){var Ce="legendfill-"+M.uid;Kp.gradient(_e,r,Ce,BB(j,g==="radial"),Z,"fill")}},H;if(Z){if(!g){var oe=Z.length;H=O===0?Z[j?oe-1:0][1]:O===1?Z[j?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;H=_v.isArrayOrTypedArray(re)?re[O]||re[0]:re}U.attr("d",z[0]),H?U.call(T0.fill,H):U.call(N)})}};function BB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function wle(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 Tle(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var HB=ye((Sar,Rle)=>{"use strict";var np=Oa(),vh=Dr(),VB=Mc(),Gb=qa(),ZL=k3(),UB=yv(),ph=So(),yM=ka(),Hb=Zl(),Sle=DB().handleItemClick,Mle=DB().handleTitleClick,Oh=FB(),GB=Dh(),Ple=GB.LINE_SPACING,K3=GB.FROM_TL,Ele=GB.FROM_BR,kle=hle(),aut=NB(),J3=mM(),Y3=1,out=/^legend[0-9]*$/;Rle.exports=function(t,r){if(r)Cle(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(out)&&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(),VB.autoMargin(e,i);var _=vh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=vh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=vh.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(yM.stroke,r.bordercolor).call(yM.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=vh.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=vh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(ph.font,E.font).text(E.text),XL(T,k,e,r,Y3),!s&&(r.titleclick||r.titledoubleclick)&&cut(k,e,r,i)):(k.selectAll("."+i+"titletext").remove(),k.selectAll("."+i+"titletoggle").remove());var L=vh.ensureSingle(_,"rect","scrollbar",function(M){M.attr(Oh.scrollBarEnterAttrs).call(yM.fill,Oh.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(M){let g=M[0],P=g.trace;if(g.groupTitle){let A=P.legendgroup,z=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(z).some(function(U){return U.legendgroup===A&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Gb.traceIs(P,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){np.select(this).call(lut,e,r)}).call(aut,e,r).each(function(M){s||M[0].groupTitle&&r.groupclick==="toggleitem"||np.select(this).call(uut,e,i)}),vh.syncOrAsync([VB.previousPromises,function(){return dut(e,x,C,r,k)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text){let je=(n.shapes||[]).filter(function(pt){return pt.showlegend}),lt=e._fullData.concat(je).some(function(pt){let Vt=pt.legend||"legend";var ot=Array.isArray(Vt)?Vt.includes(i):Vt===i;return ot&&pt.visible===!0});T.style("opacity",lt?1:.5)}if(!s){var z,O;P?z=M.l+M.w*r.x-K3[YL(r)]*r._width:z=n.width*r.x-K3[YL(r)]*r._width,A?O=M.t+M.h*(1-r.y)-K3[KL(r)]*r._effHeight:O=n.height*(1-r.y)-K3[KL(r)]*r._effHeight;var U=vut(e,i,z,O);if(U)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?vh.constrain(z,0,n.width-r._width):G,O=A?vh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&vh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&vh.log("Constrain "+i+".y to make legend fit inside graph")}ph.setTranslate(_,z,O)}if(L.on(".drag",null),_.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(Oh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*Oh.scrollBarMargin,re=r._height-r._effHeight,oe=H/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+Oh.scrollBarWidth+Oh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+Oh.scrollBarWidth+Oh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),ph.setClipUrl(k,a,e),Be(_e,N,oe),_.on("wheel",function(){_e=vh.constrain(r._scrollY+np.event.deltaY/re*H,0,re),Be(_e,N,oe),_e!==0&&_e!==re&&np.event.preventDefault()});var Ce,Le,ge,ie=function(je,lt,pt){var Vt=(pt-lt)/oe+je;return vh.constrain(Vt,0,re)},Se=function(je,lt,pt){var Vt=(lt-pt)/oe+je;return vh.constrain(Vt,0,re)},Ee=np.behavior.drag().on("dragstart",function(){var je=np.event.sourceEvent;je.type==="touchstart"?Ce=je.changedTouches[0].clientY:Ce=je.clientY,ge=_e}).on("drag",function(){var je=np.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Le=je.changedTouches[0].clientY:Le=je.clientY,_e=ie(ge,Ce,Le),Be(_e,N,oe))});L.call(Ee);var Ae=np.behavior.drag().on("dragstart",function(){var je=np.event.sourceEvent;je.type==="touchstart"&&(Ce=je.changedTouches[0].clientY,ge=_e)}).on("drag",function(){var je=np.event.sourceEvent;je.type==="touchmove"&&(Le=je.changedTouches[0].clientY,_e=Se(ge,Ce,Le),Be(_e,N,oe))});k.call(Ae)}function Be(je,lt,pt){r._scrollY=e._fullLayout[i]._scrollY=je,ph.setTranslate(k,0,-je),ph.setRect(L,r._width,Oh.scrollBarMargin+je*pt,Oh.scrollBarWidth,lt),b.select("rect").attr("y",g+je)}if(e._context.edits.legendPosition){var Pe,me,De,ce;_.classed("cursor-move",!0),UB.init({element:_.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var lt=ph.getTranslate(_);De=lt.x,ce=lt.y}},moveFn:function(je,lt){if(De!==void 0&&ce!==void 0){var pt=De+je,Vt=ce+lt;ph.setTranslate(_,pt,Vt),Pe=UB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),me=UB.align(Vt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&me!==void 0){var je={};je[i+".x"]=Pe,je[i+".y"]=me,Gb.call("_guiRelayout",e,je)}},clickFn:function(je,lt){var pt=o.selectAll("g.traces").filter(function(){var Vt=this.getBoundingClientRect();return lt.clientX>=Vt.left&<.clientX<=Vt.right&<.clientY>=Vt.top&<.clientY<=Vt.bottom});pt.size()>0&&Ile(e,r,pt,je,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 Ile(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),Gb.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&&Sle(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&&Sle(r,e,t,l)}}function lut(e,t,r){var n=J3.getId(r),i=e.data()[0][0],a=i.trace,o=Gb.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?Lle(u,l):u);var h=r.indentation+r.itemwidth+Oh.itemGap*2;Hb.positionText(f,h,0),s?f.call(Hb.makeEditable,{gd:t,text:u}).call(XL,e,t,r).on("edit",function(d){this.text(Lle(d,l)).call(XL,e,t,r);var v=i.trace._fullInput||{},_={};return _.name=d,v._isShape?Gb.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):Gb.call("_guiRestyle",t,_,a.index)}):XL(f,e,t,r)}function Lle(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 uut(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(yM.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)),Ile(t,s,e,a,np.event)}}))}function cut(e,t,r,n){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(n):c===n)&&Gb.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(yM.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&&Mle(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&&Mle(t,r,r.titledoubleclick))}))}function XL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Hb.convertToTspans(e,r,function(){fut(t,r,n,i)})}function fut(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=J3.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;n===Y3?c=r.title.font:i.groupTitle?c=i.groupTitle.font:c=r.font;var f=c.size*Ple,h,d;if(s){var v=ph.bBox(s);h=v.height,d=v.width,n===Y3?ph.setTranslate(o,u,u+h*.75):ph.setTranslate(o,0,h*.25)}else{var _="."+l+(n===Y3?"title":"")+"text",b=e.select(_),p=Hb.lineCount(b),k=b.node();if(h=f*p,d=k?ph.bBox(k).width:0,n===Y3)r.title.side==="left"&&(d+=Oh.itemGap*2),Hb.positionText(b,u+Oh.titlePad,u+f);else{var E=Oh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(E=Oh.itemGap,d-=r.indentation+r.itemwidth),Hb.positionText(b,E,-f*((p-1)/2-.3))}}n===Y3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=f,i.height=Math.max(h,16)+3,i.width=d)}function hut(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 dut(e,t,r,n,i){var a=e._fullLayout,o=J3.getId(n);n||(n=a[o]);var s=a._size,l=J3.isVertical(n),u=J3.isGrouped(n),c=n.entrywidthmode==="fraction",f=n.borderwidth,h=2*f,d=Oh.itemGap,v=n.indentation+n.itemwidth+d*2,_=2*(f+d),b=KL(n),p=n.y<0||n.y===0&&b==="top",k=n.y>1||n.y===1&&b==="bottom",E=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:C}=n,M=p||k||L!=="v"||x!=="paper";C||(C=M?.5:1);let g=M?a.height:s.h;n._maxHeight=Math.max(C>1?C:C*g,30);var P=0;n._width=0,n._height=0;var A=hut(n);if(l)r.each(function(je){var lt=je[0].height;ph.setTranslate(this,f+A[0],f+A[1]+n._height+lt/2+d),n._height+=lt,n._width=Math.max(n._width,je[0].width)}),P=v+n._width,n._width+=d+v+h,n._height+=_,u&&(t.each(function(je,lt){ph.setTranslate(this,0,lt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var z=YL(n),O=n.x<0||n.x===0&&z==="right",U=n.x>1||n.x===1&&z==="left",G=k||p,Z=a.width/2;n._maxWidth=Math.max(O?G&&z==="left"?s.l+s.w:Z:U?G&&z==="right"?s.r+s.w:Z:s.w,2*v);var j=0,N=0;r.each(function(je){var lt=WL(je,n,v);j=Math.max(j,lt),N+=lt}),P=null;var H=0;if(u){var re=0,oe=0,_e=0;t.each(function(){var je=0,lt=0;np.select(this).selectAll("g.traces").each(function(Vt){var ot=WL(Vt,n,v),ut=Vt[0].height;ph.setTranslate(this,A[0],A[1]+f+d+ut/2+lt),lt+=ut,je=Math.max(je,ot),T[Vt[0].trace.legendgroup]=je});var pt=je+d;oe>0&&pt+f+oe>n._maxWidth?(H=Math.max(H,oe),oe=0,_e+=re+E,re=lt):re=Math.max(re,lt),ph.setTranslate(this,oe,_e),oe+=pt}),n._width=Math.max(H,oe)+f,n._height=_e+re+_}else{var Ce=r.size(),Le=N+h+(Ce-1)*d=n._maxWidth&&(H=Math.max(H,Ee),ie=0,Se+=ge,n._height+=ge,ge=0),ph.setTranslate(this,A[0]+f+ie,A[1]+f+Se+lt/2+d),Ee=ie+pt+d,ie+=Vt,ge=Math.max(ge,lt)}),Le?(n._width=ie+h,n._height=ge+_):(n._width=Math.max(H,Ee)+h,n._height+=ge+_)}}n._width=Math.ceil(Math.max(n._width+A[0],n._titleWidth+2*(f+Oh.titlePad))),n._height=Math.ceil(Math.max(n._height+A[1],n._titleHeight+2*(f+Oh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Ae=e._context.edits,Be=Ae.legendText||Ae.legendPosition;r.each(function(je){var lt=np.select(this).select("."+o+"toggle"),pt=je[0].height,Vt=je[0].trace.legendgroup,ot=WL(je,n,v);u&&Vt!==""&&(ot=T[Vt]);var ut=Be?v:P||ot;!l&&!c&&(ut+=d/2),ph.setRect(lt,0,-pt/2,ut,pt)});var Pe=i.select("."+o+"titletext");Pe.node()&&sut(Pe,n,f);var me=i.select("."+o+"titletoggle");if(me.size()&&Pe.node()){var De=Pe.attr("x")||0,ce=Oh.titlePad;ph.setRect(me,De-ce,f,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function vut(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 VB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*K3[o],r:a._width*Ele[o],b:a._effHeight*Ele[s],t:a._effHeight*K3[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 ZB=ye(XB=>{"use strict";var jb=Oa(),Py=Eo(),Dle=fd(),zf=Dr(),put=zf.pushUnique,jB=zf.strTranslate,gut=zf.strRotate,mut=k3(),A0=Zl(),yut=ale(),Am=So(),vd=ka(),JL=yv(),Sm=ho(),_ut=Rh().zindexSeparator,Q3=qa(),kg=ip(),Wb=NS(),xut=PB(),but=HB(),Vle=Wb.YANGLE,WB=Math.PI*Vle/180,wut=1/Math.sin(WB),Tut=Math.cos(WB),Aut=Math.sin(WB),Qc=Wb.HOVERARROWSIZE,sl=Wb.HOVERTEXTPAD,Fle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Sut={scatter:!0,scattergl:!0,splom:!0};function zle(e,t){return e.distance-t.distance}XB.hover=function(t,r,n,i){t=zf.getGraphDiv(t);var a=r.target;zf.throttle(t._fullLayout._uid+Wb.HOVERID,Wb.HOVERMINTIME,function(){Mut(t,r,n,i,a)})};XB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Xle(i),o=Zle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=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),M=Math.min(E,T),g=Math.max(E,T),P=b.trace;if(Q3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,z=A.offsetLeft,O=A.offsetTop;x+=z,C+=z,M+=O,g+=O}L.bbox={x0:x+o,x1:C+o,y0:M+a,y1:g+a},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=Hle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:jb.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>M[0]._length)return JL.unhoverRaw(e,t)}if(t.pointerX=De+C[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=kg.flat(a,t.xval):Z=kg.p2c(C,De),"yval"in t?j=kg.flat(a,t.yval):j=kg.p2c(M,ce),!Py(Z[0])||!Py(j[0]))return zf.warn("Fx.hover failed",t,e),JL.unhoverRaw(e,t)}var pt=1/0;function Vt(wi,On){for(H=0;HEe&&(U.splice(0,Ee),pt=U[0].distance),f&&O!==0&&U.length===0){Se.distance=O,Se.index=!1;var Ut=oe._module.hoverPoints(Se,ge,ie,"closest",{hoverLayer:s._hoverlayer});if(Ut&&(Ut=Ut.filter(function(ri){return ri.spikeDistance<=O})),Ut&&Ut.length){var wt,rr=Ut.filter(function(ri){return ri.xa.showspikes&&ri.xa.spikesnap!=="hovered data"});if(rr.length){var nr=rr[0];Py(nr.x0)&&Py(nr.y0)&&(wt=ut(nr),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>wt.spikeDistance)&&(Ae.vLinePoint=wt))}var Er=Ut.filter(function(ri){return ri.ya.showspikes&&ri.ya.spikesnap!=="hovered data"});if(Er.length){var Xr=Er[0];Py(Xr.x0)&&Py(Xr.y0)&&(wt=ut(Xr),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>wt.spikeDistance)&&(Ae.hLinePoint=wt))}}}}}Vt();function ot(wi,On,qn){for(var Fn=null,ra=1/0,la,Ut=0;Utwi.trace.index===It.trace.index):U=[It];var mt=U.length,er=Ule("x",It,s),lr=Ule("y",It,s);Vt(er,lr);var wr=[],Lr={},ti=0,Br=function(wi){var On=Fle[wi.trace.type]?Gle(wi):wi.trace.index;if(!Lr[On])ti++,Lr[On]=ti,wr.push(wi);else{var qn=Lr[On]-1,Fn=wr[qn];qn>0&&Math.abs(wi.distance)mt-1;Vr--)Br(U[Vr]);U=wr,sr()}var dt=e._hoverdata,Ge=[],Je=Xle(e),We=Zle(e);for(let wi of U){var tt=kg.makeEventData(wi,wi.trace,wi.cd);if(wi.hovertemplate!==!1){var xt=!1;wi.cd[wi.index]&&wi.cd[wi.index].ht&&(xt=wi.cd[wi.index].ht),wi.hovertemplate=xt||wi.trace.hovertemplate||!1}if(wi.xa&&wi.ya){var Ie=wi.x0+wi.xa._offset,xe=wi.x1+wi.xa._offset,ke=wi.y0+wi.ya._offset,vt=wi.y1+wi.ya._offset,ir=Math.min(Ie,xe),ar=Math.max(Ie,xe),vr=Math.min(ke,vt),ii=Math.max(ke,vt);tt.bbox={x0:ir+We,x1:ar+We,y0:vr+Je,y1:ii+Je}}wi.eventData=[tt],Ge.push(tt)}e._hoverdata=Ge;var pi=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&Be&&U.length>1,$r=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),di=Hle(U,{gd:e,hovermode:h,rotateLabels:pi,bgColor:$r,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),ji=di.hoverLabels;if(kg.isUnifiedHover(h)||(kut(ji,pi,s,di.commonLabelBoundingBox),Wle(ji,pi,s._invScaleX,s._invScaleY)),i&&i.tagName){var In=Q3.getComponentMethod("annotations","hasClickToShow")(e,Ge);yut(jb.select(i),In?"pointer":"")}!i||n||!Put(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:M,xvals:Z,yvals:j}))}function Gle(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 Eut=/([\s\S]*)<\/extra>/;function Hle(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||Wb.HOVERFONT,f=t.fontSize||Wb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&E.type==="multicategory")for(var M=0;Mn.width-Je&&(We=n.width-Je),It.attr("d","M"+(Vr-We)+",0L"+(Vr-We+Qc)+","+Ge+Qc+"H"+Je+"v"+Ge+(sl*2+Br.height)+"H"+-Je+"V"+Ge+Qc+"H"+(Vr-We-Qc)+"Z"),Vr=We,H.minX=Vr-Je,H.maxX=Vr+Je,E.side==="top"?(H.minY=dt-(sl*2+Br.height),H.maxY=dt-sl):(H.minY=dt+sl,H.maxY=dt+(sl*2+Br.height))}else{var tt,xt,Ie;T.side==="right"?(tt="start",xt=1,Ie="",Vr=E._offset+E._length):(tt="end",xt=-1,Ie="-",Vr=E._offset),dt=T._offset+(k.y0+k.y1)/2,mt.attr("text-anchor",tt),It.attr("d","M0,0L"+Ie+Qc+","+Qc+"V"+(sl+Br.height/2)+"h"+Ie+(sl*2+Br.width)+"V-"+(sl+Br.height/2)+"H"+Ie+Qc+"V-"+Qc+"Z"),H.minY=dt-(sl+Br.height/2),H.maxY=dt+(sl+Br.height/2),T.side==="right"?(H.minX=Vr+Qc,H.maxX=Vr+Qc+(sl*2+Br.width)):(H.minX=Vr-Qc-(sl*2+Br.width),H.maxX=Vr-Qc);var xe=Br.height/2,ke=P-Br.top-xe,vt="clip"+n._uid+"commonlabel"+T._id,ir;if(VrIt.hoverinfo!=="none");if(_t.length===0)return[];var re=n.hoverlabel,oe=re.font,_e=_t[0],Ce=((i==="x unified"?_e.xa:_e.ya).unifiedhovertitle||{}).text,Le=Ce?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:Ce}):C,ge={showlegend:!0,legend:{title:{text:Le,font:oe},font:oe,bgcolor:re.bgcolor,bordercolor:re.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},ie={font:oe};xut(ge,ie,r._fullData);var Se=ie.legend;Se.entries=[];for(var Ee=0;Ee<_t.length;Ee++){var Ae=_t[Ee];if(Ae.hoverinfo!=="none"){var Be=Ole(Ae,!0,i,n,C),Pe=Be[0],me=Be[1];Ae.name=me,me!==""?Ae.text=me+" : "+Pe:Ae.text=Pe;var De=Ae.cd[Ae.index];De&&(De.mc&&(Ae.mc=De.mc),De.mcc&&(Ae.mc=De.mcc),De.mlc&&(Ae.mlc=De.mlc),De.mlcc&&(Ae.mlc=De.mlcc),De.mlw&&(Ae.mlw=De.mlw),De.mrc&&(Ae.mrc=De.mrc),De.dir&&(Ae.dir=De.dir)),Ae._distinct=!0,Se.entries.push([Ae])}}Se.entries.sort(function(It,mt){return It[0].trace.index-mt[0].trace.index}),Se.layer=s,Se._inHover=!0,Se._groupTitleFont=re.grouptitlefont,but(r,Se);var ce=s.select("g.legend"),je=$3(r,ce.node()),lt=je.width+2*sl,pt=je.height+2*sl,Vt=_t[0],ot=(Vt.x0+Vt.x1)/2,ut=(Vt.y0+Vt.y1)/2,Wt=!(Q3.traceIs(Vt.trace,"bar-like")||Q3.traceIs(Vt.trace,"box-violin")),Nt,$t;L==="y"?Wt?($t=ut-sl,Nt=ut+sl):($t=Math.min.apply(null,_t.map(function(It){return Math.min(It.y0,It.y1)})),Nt=Math.max.apply(null,_t.map(function(It){return Math.max(It.y0,It.y1)}))):$t=Nt=zf.mean(_t.map(function(It){return(It.y0+It.y1)/2}))-pt/2;var sr,Tr;L==="x"?Wt?(sr=ot+sl,Tr=ot-sl):(sr=Math.max.apply(null,_t.map(function(It){return Math.max(It.x0,It.x1)})),Tr=Math.min.apply(null,_t.map(function(It){return Math.min(It.x0,It.x1)}))):sr=Tr=zf.mean(_t.map(function(It){return(It.x0+It.x1)/2}))-lt/2;var fr=E._offset,$e=T._offset;Nt+=$e,sr+=fr,Tr+=fr-lt,$t+=$e-pt;var St,Qt;return sr+lt=0?St=sr:Tr+lt=0?St=Tr:fr+lt=0?Qt=Nt:$t+pt=0?Qt=$t:$e+pt=0,(_t.idealAlign==="top"||!ii)&&pi?(Ie-=ke/2,_t.anchor="end"):ii?(Ie+=ke/2,_t.anchor="start"):_t.anchor="middle",_t.crossPos=Ie;else{if(_t.pos=Ie,ii=xt+xe/2+vr<=A,pi=xt-xe/2-vr>=0,(_t.idealAlign==="left"||!ii)&&pi)xt-=xe/2,_t.anchor="end";else if(ii)xt+=xe/2,_t.anchor="start";else{_t.anchor="middle";var $r=vr/2,di=xt+$r-A,ji=xt-$r;di>0&&(xt-=di),ji<0&&(xt+=-ji)}_t.crossPos=xt}dt.attr("text-anchor",_t.anchor),Je&&Ge.attr("text-anchor",_t.anchor),It.attr("transform",jB(xt,Ie)+(a?gut(Vle):""))}),{hoverLabels:Gt,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=Nle(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(Eut,(v,_)=>(o=Nle(_,e.nameLength),""))}return[s,o]}function kut(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,_=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 oe=0,_e=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ce=jle(Z,t),Le=Z.anchor,ge=Le==="end"?-1:1,ie,Se;if(Le==="middle")ie=Z.crossPos+(H?b(Ce.y-Z.by/2):_(Z.bx/2+Z.tx2width/2)),Se=ie+(H?b(Z.by):_(Z.bx));else if(H)ie=Z.crossPos+b(Qc+Ce.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Ee=_(ge*Qc+Ce.x),Ae=Ee+_(ge*Z.bx);ie=Z.crossPos+Math.min(Ee,Ae),Se=Z.crossPos+Math.max(Ee,Ae)}H?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=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"?(oe=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?wut:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,j){return Z[0].posref-j[0].posref||s*(j[0].traceIndex-Z[0].traceIndex)});var p,k,E,T,L,x,C;function M(Z){var j=Z[0],N=Z[Z.length-1];if(k=j.pmin-j.pos-j.dp+j.size,E=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(!(E<.01)){if(k<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;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-=E;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(E=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else T++}u.forEach(M)}for(T=u.length-1;T>=0;T--){var O=u[T];for(L=O.length-1;L>=0;L--){var U=O[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function jle(e,t){var r=0,n=e.offset;return t&&(n*=-Aut,r=e.offset*Tut),{x:r,y:n}}function Cut(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 Wle(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 l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Cut(o),h=jle(o,t),d=h.x,v=h.y,_=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;_?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,E=v+o.ty0-o.by/2+sl,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&u!=="start"?(l.attr("text-anchor","start"),k=_?-o.bx/2-o.tx2width/2+sl:-o.bx-sl):T==="right"&&u!=="end"&&(l.attr("text-anchor","end"),k=_?o.bx/2-o.tx2width/2-sl:o.bx+sl)),l.call(A0.positionText,i(k),a(E)),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 Lut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Py(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 _=s(d,v);o(_)&&(e[h]=_)}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 qle(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 _=c.spikesnap;_==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Dle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,k=c.spikethickness,E=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,M=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),M=Math.max(M,c.position)),L=a.l+C*a.w,x=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k,stroke:E,"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:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,A;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,A=o.pointerY):(P=u._offset+g.x,A=c._offset+g.y);var O=Dle.readability(g.color,f)<1.5?vd.contrast(f):g.color,U=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,j=Sm.getPxPosition(e,u),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=j,H=A),U.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*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)}U.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 Put(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 Ble(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Nle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Iut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,Zle=e=>e.offsetLeft+e.clientLeft;function $3(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 _M=ye((Ear,Yle)=>{"use strict";var Rut=Dr(),Dut=ka(),Fut=ip().isUnifiedHover;Yle.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&&Fut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Dut.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),Rut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Jle=ye((kar,Kle)=>{"use strict";var zut=Dr(),Out=_M(),qut=W1();Kle.exports=function(t,r){function n(i,a){return zut.coerce(t,r,qut,i,a)}Out(t,r,n)}});var eue=ye((Car,Qle)=>{"use strict";var $le=Dr(),But=v3(),Nut=_M();Qle.exports=function(t,r,n,i){function a(s,l){return $le.coerce(t,r,But,s,l)}var o=$le.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Nut(t,r,a,o)}});var YB=ye((Lar,tue)=>{"use strict";var Uut=Dr(),Vut=W1();tue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Uut.coerce(t,r,Vut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var nue=ye((Par,iue)=>{"use strict";var rue=Dr(),Gut=W1(),Hut=YB(),jut=_M();iue.exports=function(t,r){function n(c,f){return rue.coerce(t,r,Gut,c,f)}var i=Hut(t,r);i&&(n("hoverdistance"),n("spikedistance"));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"),jut(t,r,n),rue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var sue=ye((Iar,oue)=>{"use strict";var KB=Dr(),aue=qa();oue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return KB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var Xut=qa(),Zut=ZB().hover;lue.exports=function(t,r,n){var i=Xut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Zut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((Dar,hue)=>{"use strict";var Yut=Oa(),$L=Dr(),Kut=yv(),xM=ip(),cue=W1(),fue=ZB();hue.exports={moduleType:"component",name:"fx",constants:NS(),schema:{layout:cue},attributes:v3(),layoutAttributes:cue,supplyLayoutGlobalDefaults:Jle(),supplyDefaults:eue(),supplyLayoutDefaults:nue(),calc:sue(),getDistanceFunction:xM.getDistanceFunction,getClosest:xM.getClosest,inbox:xM.inbox,quadrature:xM.quadrature,appendArrayPointValue:xM.appendArrayPointValue,castHoverOption:$ut,castHoverinfo:Qut,hover:fue.hover,unhover:Kut.unhover,loneHover:fue.loneHover,loneUnhover:Jut,click:uue()};function Jut(e){var t=$L.isD3Selection(e)?e:Yut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function $ut(e,t,r){return $L.castOption(e,t,"hoverlabel."+r)}function Qut(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(Iy=>{"use strict";Iy.selectMode=function(e){return e==="lasso"||e==="select"};Iy.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iy.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Iy.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Iy.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Iy.selectingOrDrawing=function(e){return Iy.freeMode(e)||Iy.rectMode(e)}});var bM=ye((zar,due)=>{"use strict";due.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((Oar,vue)=>{"use strict";vue.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((qar,pue)=>{"use strict";var eP=32;pue.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((Bar,mue)=>{"use strict";var ect=Dr().strTranslate;function gue(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 tct(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 rct(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return gue(e,r[t])}}function ict(e){return ect(e.xaxis._offset,e.yaxis._offset)}mue.exports={p2r:gue,r2p:tct,axValue:rct,getTransform:ict}});var m_=ye(Ry=>{"use strict";var nct=nM(),xue=tP(),eT=xue.CIRCLE_SIDES,JB=xue.SQRT2,bue=rP(),yue=bue.p2r,_ue=bue.r2p,act=[0,3,4,5,6,1,2],oct=[0,3,4,1,2];Ry.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var wue=hf(),Eue=Cg(),sct=Eue.drawMode,lct=Eue.openMode,tT=tP(),Tue=tT.i000,Aue=tT.i090,Sue=tT.i180,Mue=tT.i270,uct=tT.cos45,cct=tT.sin45,kue=rP(),nP=kue.p2r,y_=kue.r2p,fct=o_(),hct=fct.clearOutline,aP=m_(),dct=aP.readPaths,vct=aP.writePaths,pct=aP.ellipseOver,gct=aP.fixDatesForPaths;function mct(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(!sct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var yct=Cg(),_ct=yct.selectMode,xct=o_(),bct=xct.clearOutline,$B=m_(),wct=$B.readPaths,Tct=$B.writePaths,Act=$B.fixDatesForPaths;Pue.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(!_ct(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Iue.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(Jd=>{"use strict";var Mm=TM(),Rue=Dr(),__=ho();Jd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Jd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Jd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Jd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Jd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Mm.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Mm.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=i[s].drawn!==void 0;return a+(l?1:0)},0)};Jd.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=Jd.shapePositionToRange(t);o=function(l){var u=Dy(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Jd.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};Jd.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=Jd.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};Jd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Jd.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}};Jd.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}};Jd.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,_,b,p;function k(P,A,z,O){var U;if(P)if(A==="domain")O?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Jd.shapePositionToRange(P);U=function(Z){return P._offset+P.r2p(G(Z,!0))},z==="path"&&P.type==="date"&&(U=Jd.decodeDate(U))}else O?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,A){return k(o[A],__.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,A){return k(s[A],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=k(s,i,r,!0)),r==="path")return Sct(t,h,d);if(n==="array")l=Dy(o[0],t.x0shift),u=Dy(o[1],t.x1shift),v=h[0](t.x0)+l,_=h[1](t.x1)+u;else if(l=Dy(o,t.x0shift),u=Dy(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);v=P+t.x0+l,_=P+t.x1+u}else v=h(t.x0)+l,_=h(t.x1)+u;if(i==="array")c=Dy(s[0],t.y0shift),f=Dy(s[1],t.y1shift),b=d[0](t.y0)+c,p=d[1](t.y1)+f;else if(c=Dy(s,t.y0shift),f=Dy(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"+_+","+p;if(r==="rect")return"M"+v+","+b+"H"+_+"V"+p+"H"+v+"Z";var E=(v+_)/2,T=(b+p)/2,L=Math.abs(E-v),x=Math.abs(T-b),C="A"+L+","+x,M=E+L+","+T,g=E+","+(T-x);return"M"+M+C+" 0 1,1 "+g+C+" 0 0,1 "+M+"Z"};function Sct(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(Mm.segmentRE,function(h){var d=0,v=h.charAt(0),_=Mm.paramIsX[v],b=Mm.paramIsY[v],p=Mm.numParams[v];let k=_.drawn!==void 0,E=b.drawn!==void 0,T=l?t[c]:t,L=u?r[f]:r;var x=h.slice(1).replace(Mm.paramRE,function(C){return _[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.*/,""),Rue.log("Ignoring extra params in segment "+h)),k&&c++,E&&f++,v+x})}function Dy(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 tN=ye((jar,zue)=>{"use strict";var Mct=Dr(),Em=ho(),Due=Zl(),Fue=So(),Ect=m_().readPaths,eN=x_(),kct=eN.getPathString,AM=F6(),Cct=Dh().FROM_TL;zue.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=Em.getFromId(t,n.xref),l=Em.getFromId(t,n.yref);let oe=Array.isArray(n.xref),_e=Array.isArray(n.yref);for(var u in AM){var c=typeof AM[u]=="function",f=!oe||AM.simpleXVariables.includes(u),h=!_e||AM.simpleYVariables.includes(u);if(c&&f&&h){var d=AM[u](n,s,l);d!==void 0&&(o[u]=d)}}}a=Mct.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},_=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),E,T,L,x;if(n.path){var C=kct(t,n),M=Ect(C,t);E=1/0,L=1/0,T=-1/0,x=-1/0;for(var g=0;g=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Pct(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,_=i.label.yanchor,b,p,k,E;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 Ict=Dr(),Rct=Ict.strTranslate,Oue=yv(),Nue=Cg(),Dct=Nue.drawMode,Uue=Nue.selectMode,Vue=qa(),que=ka(),sP=tP(),Fct=sP.i000,zct=sP.i090,Oct=sP.i180,qct=sP.i270,Bct=o_(),Gue=Bct.clearOutlineControllers,iN=m_(),SM=iN.pointsOnRectangle,rN=iN.pointsOnEllipse,Nct=iN.writePaths,Uct=oP().newShapes,Vct=oP().createShapeObj,Gct=QB(),Hct=tN();Hue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(rN(t[0])||SM(t[0])||n.hasText)&&s({redrawing:!0})}function s(j){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Uct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Gct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Vue.call((j||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Dct(c),h=Uue(c);(f||h)&&(a._fullLayout._outlining=!0),Gue(a),r.attr("d",Nct(t));var d,v,_,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=jct([],t);var k=u.append("g").attr("class","outline-controllers");P(k),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),T=Vct(r,n,n.dragmode);Hct(a,"label-temp",T,E)}function L(j){_=+j.srcElement.getAttribute("data-i"),b=+j.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(j,N){if(t.length){var H=p[_][b][1],re=p[_][b][2],oe=t[_],_e=oe.length;if(SM(oe)){var Ce=j,Le=N;if(n.isActiveSelection){var ge=Bue(oe,b);ge[1]===oe[b][1]?Le=0:Ce=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=H+Ce),Se[2]===oe[b][2]&&(Se[2]=re+Le)}if(oe[b][1]=H+Ce,oe[b][2]=re+Le,!SM(oe))for(var Ee=0;Ee<_e;Ee++)for(var Ae=0;Ae1&&!(j.length===2&&j[1][0]==="Z")&&(b===0&&(j[0][0]="M"),t[_]=j,o(),s())}}function g(j,N){if(j===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[_];!SM(H)&&!rN(H)&&M()}}function P(j){d=[];for(var N=0;N{"use strict";var Xct=Oa(),Yue=qa(),aN=Dr(),Xb=ho(),Zct=m_().readPaths,Yct=lP(),cP=tN(),Kue=o_().clearOutlineControllers,nN=ka(),fP=So(),Kct=vl().arrayEditor,jue=yv(),Wue=Eg(),Zb=TM(),Ep=x_(),oN=Ep.getPathString;Que.exports={draw:sN,drawOne:Jue,eraseActiveShape:eft,drawLabel:cP};function sN(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;iXb.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 $ct(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z=Xct.select(t.node().parentNode),O=Xb.getFromId(e,r.xref),U=Xb.getRefType(r.xref),G=Xb.getFromId(e,r.yref),Z=Xb.getRefType(r.yref),j=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,oe=function(ot,ut){var Wt=Ep.getDataToPixel(e,O,ut,!1,U);return Wt(ot)},_e=function(ot,ut){var Wt=Ep.getDataToPixel(e,G,ut,!0,Z);return Wt(ot)},Ce=Ep.getPixelToData(e,O,!1,U),Le=Ep.getPixelToData(e,G,!0,Z),ge=Ee(),ie={element:ge.node(),gd:e,prepFn:Pe,doneFn:me,clickFn:De},Se;jue.init(ie),ge.node().onmousemove=Be;function Ee(){return c?Ae():t}function Ae(){var ot=10,ut=Math.max(r.line.width,ot),Wt=i.append("g").attr("data-index",n).attr("drag-helper",!0);Wt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":ut,"stroke-opacity":"0"});var Nt={"fill-opacity":"0"},$t=Math.max(ut/2,ot);return Wt.append("circle").attr({"data-line-point":"start-point",cx:l?oe(r.xanchor)+r.x0:oe(r.x0,j),cy:u?_e(r.yanchor)-r.y0:_e(r.y0,H),r:$t}).style(Nt).classed("cursor-grab",!0),Wt.append("circle").attr({"data-line-point":"end-point",cx:l?oe(r.xanchor)+r.x1:oe(r.x1,N),cy:u?_e(r.yanchor)-r.y1:_e(r.y1,re),r:$t}).style(Nt).classed("cursor-grab",!0),Wt}function Be(ot){if(uP(e)){Se=null;return}if(c)ot.target.tagName==="path"?Se="move":Se=ot.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ut=ie.element.getBoundingClientRect(),Wt=ut.right-ut.left,Nt=ut.bottom-ut.top,$t=ot.clientX-ut.left,sr=ot.clientY-ut.top,Tr=!f&&Wt>o&&Nt>s&&!ot.shiftKey?jue.getCursor($t/Wt,1-sr/Nt):"move";Wue(t,Tr),Se=Tr.split("-")[0]}}function Pe(ot){uP(e)||(l&&(p=oe(r.xanchor)),u&&(k=_e(r.yanchor)),r.type==="path"?A=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),_=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),d<_?(L=d,g="x0",x=_,P="x1"):(L=_,g="x1",x=d,P="x0"),!u&&vb?(E=v,C="y0",T=b,M="y1"):(E=b,C="y1",T=v,M="y0"),Be(ot),lt(i,r),Vt(t,r,e),ie.moveFn=Se==="move"?ce:je,ie.altKey=ot.altKey)}function me(){uP(e)||(Wue(t),pt(i),$ue(t,e,r),Yue.call("_guiRelayout",e,a.getUpdateObj()))}function De(){uP(e)||pt(i)}function ce(ot,ut){if(r.type==="path"){var Wt=function(sr){return sr},Nt=Wt,$t=Wt;l?h("xanchor",r.xanchor=Ce(p+ot)):(Nt=function(Tr){return Ce(oe(Tr)+ot)},O&&O.type==="date"&&(Nt=Ep.encodeDate(Nt))),u?h("yanchor",r.yanchor=Le(k+ut)):($t=function(Tr){return Le(_e(Tr)+ut)},G&&G.type==="date"&&($t=Ep.encodeDate($t))),h("path",r.path=Xue(A,Nt,$t))}else l?h("xanchor",r.xanchor=Ce(p+ot)):(h("x0",r.x0=Ce(d+ot)),h("x1",r.x1=Ce(_+ot))),u?h("yanchor",r.yanchor=Le(k+ut)):(h("y0",r.y0=Le(v+ut)),h("y1",r.y1=Le(b+ut)));t.attr("d",oN(e,r)),lt(i,r),cP(e,n,r,z)}function je(ot,ut){if(f){var Wt=function(Lr){return Lr},Nt=Wt,$t=Wt;l?h("xanchor",r.xanchor=Ce(p+ot)):(Nt=function(ti){return Ce(oe(ti)+ot)},O&&O.type==="date"&&(Nt=Ep.encodeDate(Nt))),u?h("yanchor",r.yanchor=Le(k+ut)):($t=function(ti){return Le(_e(ti)+ut)},G&&G.type==="date"&&($t=Ep.encodeDate($t))),h("path",r.path=Xue(A,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+ot,Tr=u?v-ut:v+ut;h("x0",r.x0=l?sr:Ce(sr)),h("y0",r.y0=u?Tr:Le(Tr))}else if(Se==="resize-over-end-point"){var fr=_+ot,$e=u?b-ut:b+ut;h("x1",r.x1=l?fr:Ce(fr)),h("y1",r.y1=u?$e:Le($e))}}else{var St=function(Lr){return Se.indexOf(Lr)!==-1},Qt=St("n"),Gt=St("s"),_t=St("w"),It=St("e"),mt=Qt?E+ut:E,er=Gt?T+ut:T,lr=_t?L+ot:L,wr=It?x+ot:x;u&&(Qt&&(mt=E-ut),Gt&&(er=T-ut)),(!u&&er-mt>s||u&&mt-er>s)&&(h(C,r[C]=u?mt:Le(mt)),h(M,r[M]=u?er:Le(er))),wr-lr>o&&(h(g,r[g]=l?lr:Ce(lr)),h(P,r[P]=l?wr:Ce(wr)))}t.attr("d",oN(e,r)),lt(i,r),cP(e,n,r,z)}function lt(ot,ut){(l||u)&&Wt();function Wt(){var Nt=ut.type!=="path",$t=ot.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var Tr=oe(l?ut.xanchor:aN.midRange(Nt?[ut.x0,ut.x1]:Ep.extractPathCoords(ut.path,Zb.paramIsX))),fr=_e(u?ut.yanchor:aN.midRange(Nt?[ut.y0,ut.y1]:Ep.extractPathCoords(ut.path,Zb.paramIsY)));if(Tr=Ep.roundPositionForSharpStrokeRendering(Tr,sr),fr=Ep.roundPositionForSharpStrokeRendering(fr,sr),l&&u){var $e="M"+(Tr-1-sr)+","+(fr-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",$e)}else if(l){var St="M"+(Tr-1-sr)+","+(fr-9-sr)+"v18 h2 v-18 Z";$t.attr("d",St)}else{var Qt="M"+(Tr-9-sr)+","+(fr-1-sr)+"h18 v2 h-18 Z";$t.attr("d",Qt)}}}function pt(ot){ot.selectAll(".visual-cue").remove()}function Vt(ot,ut,Wt){var Nt=ut.xref,$t=ut.yref,sr=Xb.getFromId(Wt,Nt),Tr=Xb.getFromId(Wt,$t),fr="";Nt!=="paper"&&!sr.autorange&&(fr+=Nt),$t!=="paper"&&!Tr.autorange&&(fr+=$t),fP.setClipUrl(ot,fr?"clip"+Wt._fullLayout._uid+fr:null,Wt)}}function Xue(e,t,r){return e.replace(Zb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Zb.paramIsX[a],s=Zb.paramIsY[a],l=Zb.numParams[a],u=n.slice(1).replace(Zb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function Qct(e,t){if(hP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Zue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Zue,sN(e)}}}function Zue(e){if(hP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Kue(e),delete e._fullLayout._activeShapeIndex,sN(e))}}function eft(e){if(hP(e)){Kue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),ece=Mc(),tce=hf(),Pl=QL(),tft=dP().eraseActiveShape,vP=Dr(),tl=vP._,Il=lce.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"};vP.notifier(tl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){vP.notifier(tl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){vP.notifier(tl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){ece.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){ece.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:tft};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=tce.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,_;for(c=0;c{"use strict";var uce=cN(),nft=Object.keys(uce),cce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],fce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(cce),iT=[],aft=function(e){if(fce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();iT.indexOf(t)===-1&&iT.push(t),iT.indexOf(r)===-1&&iT.push(r)}};nft.forEach(function(e){aft(uce[e])});iT.sort();hce.exports={DRAW_MODES:cce,backButtons:fce,foreButtons:iT}});var hN=ye((Jar,dce)=>{"use strict";var Kar=fN();dce.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 pce=ye(($ar,vce)=>{"use strict";var oft=Dr(),MM=ka(),sft=vl(),lft=hN();vce.exports=function(t,r){var n=t.modebar||{},i=sft.newContainer(r,"modebar");function a(s,l){return oft.coerce(n,i,lft,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 _ce=ye((Qar,yce)=>{"use strict";var dN=Oa(),uft=Eo(),gP=Dr(),gce=QL(),cft=m6().version,fft=new DOMParser;function mce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var km=mce.prototype;km.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(),gP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};km.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)})};km.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};km.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&&dN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||gce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};km.createIcon=function(e){var t=uft(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=fft.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};km.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=dN.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:gP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};km.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var vft=hf(),xce=Ru(),vN=qa(),pft=ip().isUnifiedHover,gft=_ce(),mP=cN(),mft=fN().DRAW_MODES,yft=Dr().extendDeep;bce.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=Aft(a):!n.displayModeBar&&n.watermark?o=[]:o=_ft(t),i?i.update(t,o):r._modeBar=gft(t,o)};function _ft(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,oe=H._cat||H.name;if(re===N||oe===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"],A=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):c?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(wft(r)||L)&&(P=[]),u&&!T&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||v?z=["zoom2d","pan2d"]:_||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),bft(r)&&z.push("select2d","lasso2d");var O=[],U=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";Tce.exports={moduleType:"component",name:"modebar",layoutAttributes:hN(),supplyLayoutDefaults:pce(),manage:wce()}});var gN=ye((ror,Ace)=>{"use strict";var Sft=Dh().FROM_BL;Ace.exports=function(t,r,n){n===void 0&&(n=Sft[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 Kb=ye(EM=>{"use strict";var Yb=Dr(),mN=Mg(),Lg=hf().id2name,Mft=Rd(),Sce=gN(),Eft=xm(),kft=fs().ALMOST_EQUAL,Cft=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 Pft(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;okft*v&&!k)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*A);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var _P=Oa(),Nv=qa(),Jp=Mc(),M0=Dr(),xN=Zl(),bN=bM(),kM=ka(),nT=So(),Cce=zb(),Dce=pN(),CM=ho(),Fy=Dh(),Fce=Kb(),Ift=Fce.enforce,Rft=Fce.clean,Lce=Mg().doAutoRange,zce="start",Dft="middle",Oce="end",Fft=Rh().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Oft],e)};function zft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Oft(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(nT.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Dce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,me,De){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(me){if(De==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(De==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return me._offset-n-ce}for(a=0;a0){Uft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Rce(t.yanchor)}).call(xN.positionText,o,a);var c=(t.text.match(xN.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=_P.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,_=v+Cce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Rce(t.yanchor)}).call(xN.positionText,o,_)}}}};function qft(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=Bft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Uft(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"&&qft(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 Vft(e,t){var r=e.title,n=e._size,i=0;switch(t===zce?i=r.pad.l:t===Oce&&(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 Gft(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 Rce(e){return e==="top"?Fy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fy.MID_SHIFT+"em"}function Hft(e){var t=e.title,r=Dft;return M0.isRightAnchor(t)?r=Oce:M0.isLeftAnchor(t)&&(r=zce),r}function jft(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 Wft=m_().readPaths,Xft=lP(),qce=o_().clearOutlineControllers,wN=ka(),Bce=So(),Zft=vl().arrayEditor,Nce=x_(),Yft=Nce.getPathString;Vce.exports={draw:xP,drawOne:Uce,activateLastSelection:$ft};function xP(e){var t=e._fullLayout;qce(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(wN.stroke,f).call(wN.fill,c).call(Bce.dashLine,b?"solid":d,b?4+h:h);if(Kft(p,e,n),v){var k=Zft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Wft(s,e);Xft(T,p,E)}else p.style("pointer-events",b?"all":"none");_[b]=p}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return Jft(e,L)})}}function Kft(e,t,r){var n=r.xref+r.yref;Bce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Jft(e,t){if(bP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){TN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=TN,xP(e)}}}function $ft(e){if(bP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=TN,xP(e)}}function TN(e){if(bP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(qce(e),delete e._fullLayout._activeSelectionIndex,xP(e))}}});var Hce=ye((oor,Gce)=>{function Qft(){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}Gce.exports=Qft});var Wce=ye((sor,jce)=>{function eht(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=eht});var Zce=ye((lor,Xce)=>{var tht={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}};Xce.exports=tht});var Kce=ye((uor,Yce)=>{var PM=Zce();function rht(e,t,r){function n(v,_){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:null,below:null},otherFill:null}}function i(v,_,b){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=PM.create();function o(v,_,b,p,k,E){var T=t.pointsCompare(_,k);return T!==0?T:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?k:E,p?E:k)?1:-1}function s(v,_){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,_,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,_){var b=PM.node({isStart:!0,pt:v.start,seg:v,primary:_,other:null,status:null});return s(b,v.end),b}function u(v,_,b){var p=PM.node({isStart:!1,pt:_.end,seg:_,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,_){var b=l(v,_);return u(b,v,_),b}function f(v,_){r&&r.segmentChop(v.seg,_),v.other.remove(),v.seg.end=_,v.other.pt=_,s(v.other,v.pt)}function h(v,_){var b=i(_,v.seg.end,v.seg);return f(v,_),c(b,v.primary)}function d(v,_){var b=PM.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 E(G,Z){var j=G.seg,N=Z.seg,H=j.start,re=j.end,oe=N.start,_e=N.end;r&&r.checkIntersection(j,N);var Ce=t.linesIntersect(H,re,oe,_e);if(Ce===!1){if(!t.pointsCollinear(H,re,oe)||t.pointsSame(H,_e)||t.pointsSame(re,oe))return!1;var Le=t.pointsSame(H,oe),ge=t.pointsSame(re,_e);if(Le&&ge)return Z;var ie=!Le&&t.pointBetween(H,oe,_e),Se=!ge&&t.pointBetween(re,oe,_e);if(Le)return Se?h(Z,re):h(G,_e),Z;ie&&(ge||(Se?h(Z,re):h(G,_e)),h(Z,H))}else Ce.alongA===0&&(Ce.alongB===-1?h(G,oe):Ce.alongB===0?h(G,Ce.pt):Ce.alongB===1&&h(G,_e)),Ce.alongB===0&&(Ce.alongA===-1?h(Z,H):Ce.alongA===0?h(Z,Ce.pt):Ce.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=E(L,C);if(Z)return Z}return M?E(L,M):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,M?M.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,M?L.seg.myFill.below=M.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 A;M?L.primary===M.primary?A=M.seg.otherFill.above:A=M.seg.myFill.above:A=L.primary?_:v,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,M?M.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)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(v){for(var _,b=v[v.length-1],p=0;p{function iht(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(U,G,Z){return c.index=U,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 nht={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)}};Qce.exports=nht});var rfe=ye((dor,tfe)=>{var aht={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 oht=Hce(),sht=Wce(),ife=Kce(),lht=$ce(),RM=efe(),nfe=rfe(),E0=!1,DM=sht(),kp;kp={buildLog:function(e){return e===!0?E0=oht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return DM.epsilon(e)},segments:function(e){var t=ife(!0,DM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=ife(!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:lht(e.segments,DM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return nfe.toPolygon(kp,e)},polygonToGeoJSON:function(e){return nfe.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);afe.exports=kp});var lfe=ye((por,sfe)=>{sfe.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;_&&(s=!s)}return s}});var zM=ye((gor,ufe)=>{"use strict";var SN=I6().dot,wP=fs().BADNUM,TP=ufe.exports={};TP.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===wP||po||_&&u(v))}function f(v,_){var b=v[0],p=v[1];if(b===wP||bi||p===wP||po)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,x,C,M,g,P;for(x=1;xMath.max(C,E)||p>Math.max(M,T)))if(ps||Math.abs(SN(f,u))>i)return!0;return!1};TP.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 ffe=ye((mor,cfe)=>{"use strict";cfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Rfe=ye((yor,Ife)=>{"use strict";var hfe=ofe(),uht=lfe(),BM=qa(),cht=So().dashStyle,OM=ka(),fht=vf(),hht=ip().makeEventData,HM=Cg(),dht=HM.freeMode,vht=HM.rectMode,NM=HM.drawMode,CN=HM.openMode,LN=HM.selectMode,dfe=x_(),vfe=TM(),_fe=lP(),xfe=o_().clearOutline,bfe=m_(),MN=bfe.handleEllipse,pht=bfe.readPaths,ght=oP().newShapes,mht=QB(),yht=AN().activateLastSelection,SP=Dr(),_ht=SP.sorterAsc,wfe=zM(),qM=j6(),k0=hf().getFromId,xht=bM(),bht=LM().redrawReglTraces,MP=ffe(),Cm=MP.MINSELECT,wht=wfe.filter,PN=wfe.tester,IN=rP(),pfe=IN.p2r,Tht=IN.axValue,Aht=IN.getTransform;function RN(e){return e.subplot!==void 0}function Sht(e,t,r,n,i){var a=!RN(n),o=dht(i),s=vht(i),l=CN(i),u=NM(i),c=LN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,_=v._fullLayout,b=c&&_.newselection.mode==="immediate"&&a,p=_._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=Aht(E),L=t-k.left,x=r-k.top;_._calcInverseTransform(v);var C=SP.apply3DTransform(_._invTransform)(L,x);L=C[0],x=C[1];var M=_._invScaleX,g=_._invScaleY,P=L,A=x,z="M"+L+","+x,O=n.xaxes[0],U=n.yaxes[0],G=O._length,Z=U._length,j=e.altKey&&!(NM(i)&&l),N,H,re,oe,_e,Ce,Le;Afe(e,v,n),o&&(N=wht([[L,x]],MP.BENDPX));var ge=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?_.newshape:_.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Ee=ie.line.color||(a?OM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":cht(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(OM.stroke,Ee).call(OM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",T).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:OM.background,stroke:OM.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 Pe=_._uid+MP.SELECTID,me=[],De=EP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=O._id,lt=U._id;Cfe(v,je,lt,De);for(var pt=(v.layout||{}).selections||[],Vt=[],ot=!1,ut=0;ut=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=_.clickmode;qM.done(Pe).then(function(){if(qM.clear(Pe),je===2){for(ge.remove(),_e=0;_e-1&&Tfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ge),pt==="event"&&GM(v,void 0);fht.click(v,lt,E.id)}).catch(SP.error)}},n.doneFn=function(){Ae.remove(),qM.done(Pe).then(function(){qM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=j,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&UM(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),c&&GM(v,Le)}).catch(SP.error)}}function Tfe(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,_,b,p,k,E,T,L;if(Lht(s)){Afe(e,t,a),h=EP(t,r,n,i);var x=Pht(s,h),C=x.pointNumbers.length>0;if(C?Iht(h,x):Rht(h)&&(k=mfe(x))){for(o&&o.remove(),L=0;L=0}function Cht(e){return e._fullLayout._activeSelectionIndex>=0}function UM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;kht(i)&&i._fullLayout._deactivateShape(i),Cht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=NM(r),l=LN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=ght(u,e)),c&&BM.call("_guiRelayout",i,{shapes:c});var f;l&&!RN(e)&&(f=mht(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,BM.call("_guiRelayout",i,{selections:f}).then(function(){t&&yht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function gfe(e){return e._id}function EP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(gfe),o=r.map(gfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Iht(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 je=yfe(e,!0);if(je.length){var lt=je[0].xref,pt=je[0].yref;if(lt&&pt){var Vt=Lfe(je),ot=Pfe([k0(e,lt,"x"),k0(e,pt,"y")]);ot(me,Vt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&GM(e,me),h._reselect=!1}if(!o&&h._deselect){var ut=h._deselect;s=ut.xref,l=ut.yref,zht(s,l,c)||Cfe(e,s,l,n),ce&&(me.points.length?GM(e,me):zN(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Fht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Dfe.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((xor,Ffe)=>{"use strict";Ffe.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 Jb=ye((wor,qfe)=>{"use strict";var zfe=ON(),Ofe=ec(),kP=Rh(),Uht=vl().templatedArray,bor=jM();qfe.exports=Uht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ofe({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:zfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:zfe.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",kP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",kP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",kP.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",kP.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:Ofe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Lm=ye((Tor,Bfe)=>{"use strict";Bfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pg=ye((Aor,Nfe)=>{"use strict";Nfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((Sor,Zfe)=>{"use strict";var Ufe=df().axisHoverFormat,{hovertemplateAttrs:Vht,texttemplateAttrs:Ght,templatefallbackAttrs:Vfe}=Ll(),Gfe=Tu(),Hht=ec(),Hfe=Pd().dash,jht=Pd().pattern,Wht=So(),Xht=Lm(),WM=Ao().extendFlat,Zht=Pg();function jfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Wfe(e){return{valType:"any",editType:"calc"}}function Xfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Zfe.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:Wfe("x0"),yperiod0:Wfe("y0"),xperiodalignment:Xfe("x"),yperiodalignment:Xfe("y"),xhoverformat:Ufe("x"),yhoverformat:Ufe("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:Ght(),texttemplatefallback:Vfe({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:Vht({},{keys:Xht.eventDataKeys}),hovertemplatefallback:Vfe(),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({},Hfe,{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:Zht(!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:jht,marker:WM({symbol:{valType:"enumerated",values:Wht.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({},Hfe,{arrayOk:!0}),editType:"calc"},Gfe("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"},Gfe("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:Hht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var qN=ye((Eor,Jfe)=>{"use strict";var Yfe=Jb(),Kfe=pf().line,Yht=Pd().dash,CP=Ao().extendFlat,Kht=mc().overrideAll,Jht=vl().templatedArray,Mor=jM();Jfe.exports=Kht(Jht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:CP({},Yfe.xref,{}),yref:CP({},Yfe.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:Kfe.color,width:CP({},Kfe.width,{min:1,dflt:1}),dash:CP({},Yht,{dflt:"dot"})}}),"arraydraw","from-root")});var the=ye((kor,ehe)=>{"use strict";var $fe=Dr(),LP=ho(),$ht=Zd(),Qht=qN(),Qfe=x_();ehe.exports=function(t,r){$ht(t,r,{name:"selections",handleItemDefaults:edt});for(var n=r.selections,i=0;i{"use strict";rhe.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((Lor,ohe)=>{"use strict";var tdt=qa(),nhe=Dr(),ahe=hf();ohe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=tdt.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 she=AN(),ZM=Rfe();lhe.exports={moduleType:"component",name:"selections",layoutAttributes:qN(),supplyLayoutDefaults:the(),supplyDrawNewSelectionDefaults:ihe(),includeBasePlot:XM()("selections"),draw:she.draw,drawOne:she.drawOne,reselect:ZM.reselect,prepSelect:ZM.prepSelect,clearOutline:ZM.clearOutline,clearSelectionsCache:ZM.clearSelectionsCache,selectOnClick:ZM.selectOnClick}});var jN=ye((Ior,khe)=>{"use strict";var GN=Oa(),C0=Dr(),uhe=C0.numberFormat,rdt=fd(),idt=VL(),PP=qa(),yhe=C0.strTranslate,ndt=Zl(),che=ka(),w_=So(),adt=vf(),fhe=ho(),odt=Eg(),sdt=yv(),_he=Cg(),IP=_he.selectingOrDrawing,ldt=_he.freeMode,udt=Dh().FROM_TL,cdt=bM(),fdt=LM().redrawReglTraces,hdt=Mc(),NN=hf().getFromId,ddt=Of().prepSelect,vdt=Of().clearOutline,pdt=Of().selectOnClick,BN=gN(),HN=Rh(),hhe=HN.MINDRAG,ap=HN.MINZOOM,dhe=!0;function gdt(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,_,b,p,k,E,T,L,x,C,M,g,P,A,z,O,U,G,Z,j;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=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 It=t.overlays,mt=0;mt=0){er._fullLayout._deactivateShape(er);return}var lr=er._fullLayout.clickmode;if(VN(er),It===2&&!c&&fr(),u)lr.indexOf("select")>-1&&pdt(mt,er,_,b,t.id,oe),lr.indexOf("event")>-1&&adt.click(er,mt,t.id);else if(It===1&&c){var wr=o?h:f,Lr=o==="s"||s==="w"?0:1,ti=wr._name+".range["+Lr+"]",Br=mdt(wr,Lr),Vr="left",dt="middle";if(wr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",wr.side==="right"&&(Vr="right")):s==="e"&&(Vr="right"),er._context.showAxisRangeEntryBoxes&&GN.select(re).call(ndt.makeEditable,{gd:er,immediate:!0,background:er._fullLayout.paper_bgcolor,text:String(Br),fill:wr.tickfont?wr.tickfont.color:"#444",horizontalAlign:Vr,verticalAlign:dt}).on("edit",function(Ge){var Je=wr.d2r(Ge);Je!==void 0&&PP.call("_guiRelayout",er,ti,Je)})}}sdt.init(oe);var Le,ge,ie,Se,Ee,Ae,Be,Pe,me,De;function ce(It,mt,er){var lr=re.getBoundingClientRect();Le=mt-lr.left,ge=er-lr.top,e._fullLayout._calcInverseTransform(e);var wr=C0.apply3DTransform(e._fullLayout._invTransform)(Le,ge);Le=wr[0],ge=wr[1],ie={l:Le,r:Le,w:0,t:ge,b:ge,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:rdt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Ae=!1,Be="xy",De=!1,Pe=whe(l,Se,p,k,Ee),me=The(l,p,k)}function je(It,mt){if(e._transitioningWithDuration)return!1;var er=Math.max(0,Math.min(E,Z*It+Le)),lr=Math.max(0,Math.min(T,j*mt+ge)),wr=Math.abs(er-Le),Lr=Math.abs(lr-ge);ie.l=Math.min(Le,er),ie.r=Math.max(Le,er),ie.t=Math.min(ge,lr),ie.b=Math.max(ge,lr);function ti(){Be="",ie.r=ie.l,ie.t=ie.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)wr>ap||Lr>ap?(Be="xy",wr/E>Lr/T?(Lr=wr*T/E,ge>lr?ie.t=ge-Lr:ie.b=ge+Lr):(wr=Lr*E/T,Le>er?ie.l=Le-wr:ie.r=Le+wr),me.attr("d",RP(ie))):ti();else if(x.isSubplotConstrained)if(wr>ap||Lr>ap){Be="xy";var Br=Math.min(ie.l/E,(T-ie.b)/T),Vr=Math.max(ie.r/E,(T-ie.t)/T);ie.l=Br*E,ie.r=Vr*E,ie.b=(1-Br)*T,ie.t=(1-Vr)*T,me.attr("d",RP(ie))}else ti();else!M||Lr0){var Ge;if(x.isSubplotConstrained||!C&&M.length===1){for(Ge=0;Ge<_.length;Ge++)_[Ge].range=_[Ge]._r.slice(),BN(_[Ge],1-mt/T);It=mt*E/T,Vr=It/2}if(x.isSubplotConstrained||!M&&C.length===1){for(Ge=0;Ge1&&(ti.maxallowed!==void 0&&P===(ti.range[0]1&&(Br.maxallowed!==void 0&&A===(Br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function _dt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function whe(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",yhe(r,n)).attr("d",i+"Z")}function The(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:che.background,stroke:che.defaultLine,"stroke-width":1,opacity:0}).attr("transform",yhe(t,r)).attr("d","M0,0Z")}function Ahe(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"),She(e,t,i,a)}function She(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 VN(e){GN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Mhe(e){dhe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),dhe=!1)}function xdt(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 bdt(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 RP(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 ghe(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 wdt=Oa(),DP=vf(),Tdt=yv(),Adt=Eg(),Ig=jN().makeDragBox,gd=Rh().DRAGGERSIZE;FP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){wdt.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]&&DP.hover(t,h,a)},DP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Tdt.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,DP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,DP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},FP.updateFx(t)}};FP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Adt(t._draggers,r)}});var Phe=ye((Dor,Lhe)=>{"use strict";var Che=qa();Lhe.exports=function(t){for(var r=Che.layoutArrayContainers,n=Che.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Sdt=Ty(),XN=P6(),YM=K1(),Mdt=V6().sorterAsc,ZN=qa();KM.containerArrayMatch=Phe();var Edt=KM.isAddVal=function(t){return t==="add"||Sdt(t)},Ihe=KM.isRemoveVal=function(t){return t===null||t==="remove"};KM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=ZN.getComponentMethod(o,"supplyLayoutDefaults"),l=ZN.getComponentMethod(o,"draw"),u=ZN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===XN||l===XN,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(Ihe(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(Mdt),_=r.get(),b=_||[],p=a(h,o).get(),k=[],E=-1,T=b.length,L,x,C,M,g,P,A,z;for(L=0;Lb.length-(A?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),Ihe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):YM.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(x=0;x=0;L--)b.splice(k[L],1),p&&p.splice(k[L],1);if(b.length?_||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==XN){var O;if(E===-1)O=v;else{for(T=Math.max(b.length,T),O=[],L=0;L=E));L++)O.push(C);for(L=E;L{"use strict";var Ohe=Eo(),qhe=qa(),Uv=Dr(),JM=Mc(),Bhe=hf(),Nhe=ka(),$M=Bhe.cleanId,kdt=Bhe.getFromTrace,YN=qhe.traceIs,Cdt=["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"),Nhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function aT(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=zhe(t);r;){if(r in e)return!0;r=zhe(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)?KN(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=KN});var ZP=ye(_l=>{"use strict";var BP=Oa(),Idt=Eo(),Rdt=lq(),Sa=Dr(),Ec=Sa.nestedProperty,QN=k3(),op=Sne(),P0=qa(),WP=P3(),Qo=Mc(),Vv=ho(),Ddt=AB(),Fdt=Rd(),JN=So(),zdt=ka(),Odt=WN().initInteractions,qdt=Wp(),Bdt=Of().clearOutline,Whe=_b().dfltConfig,OP=Rhe(),gh=Uhe(),Au=LM(),T_=mc(),Ndt=Rh().AX_NAME_PATTERN,$N=0,Vhe=5;function Udt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),QN.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=QN.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)}Zhe(e,n),r||(r={}),BP.select(e).classed("js-plotly-plot",!0),JN.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)&&(cvt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),JN.initGradients(e),JN.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 Yhe(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]),UP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&UP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Wdt(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 M.parts[A]!="string";)A--;var z=M.parts[A],O=M.parts[A-1]+"."+z,U=M.parts.slice(0,A).join("."),G=Ec(e.layout,U).get(),Z=Ec(n,U).get(),j=M.get();if(g!==void 0){p[C]=g,k[C]=z==="reverse"?g:zy(j);var N=WP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var H in N.impliedEdits)E(Sa.relativeAttr(C,H),N.impliedEdits[H]);if(["width","height"].indexOf(C)!==-1)if(g){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(nde))x(O),Ec(n,U+"._inputRange").set(null);else if(O.match(ade)){x(O),Ec(n,U+"._inputRange").set(null);var oe=Ec(n,U).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(Kdt)&&Ec(n,U+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Ce=Z.type==="log"&&g==="linear";if(_e||Ce){if(!L||!L.range)E(U+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Le=L.range[0],ge=L.range[1];_e?(Le<=0&&ge<=0&&E(U+".autorange",!0),Le<=0?Le=ge/1e6:ge<=0&&(ge=Le/1e6),E(U+".range[0]",Math.log(Le)/Math.LN10),E(U+".range[1]",Math.log(ge)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Le)),E(U+".range[1]",Math.pow(10,ge)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),P0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(U+".autorange",!0),E(U+".range",null);Ec(n,U+"._inputRange").set(null)}else if(z.match(Ndt)){var ie=Ec(n,C).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),P0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Ee=OP.containerArrayMatch(C);if(Ee){c=Ee.array,f=Ee.index;var Ae=Ee.property,Be=N||{editType:"calc"};f!==""&&Ae===""&&(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 Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[C]}else z==="reverse"?(G.range?G.range.reverse():(E(U+".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,M.set(g))}}for(c in u){var me=OP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);me||(b.plot=!0)}for(var De in T){L=Vv.getFromId(e,De);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)T[je]||(Vv.getFromId(e,je)._constraintShrinkable=!0)}}(sde(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 Qdt(e,t){for(var r=0;r[U,e._ev.listeners(U)]);a=_l.newPlot(e,t,r,n).then(()=>{for(let[U,G]of O)G.forEach(Z=>e.on(U,Z));return _l.react(e,t,r,n)})}else{e.data=t||[],gh.cleanData(e.data),e.layout=r||{},gh.cleanLayout(e.layout),tvt(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,_=nvt(e,l,h,d,v),b=_.newDataRevision,p=ivt(e,s,f,d,v,b);if(sde(e)&&(_.layoutReplot=!0),p.calc||_.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),E=0;E(c||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 l,u;function c(d){var v=WP.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 O=0;On._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,E,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)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),u())})}function ovt(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,_=l[d]||f[d];d&&v&&typeof v=="number"&&_&&$NM.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 lvt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),QN.purge(e),t._container&&t._container.remove(),delete e._context,e}function uvt(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 cvt(e){var t=BP.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={};BP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(qdt.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=avt;_l.addFrames=ovt;_l.deleteFrames=svt;_l.addTraces=ede;_l.deleteTraces=tde;_l.extendTraces=$he;_l.moveTraces=eU;_l.prependTraces=Qhe;_l.newPlot=jdt;_l._doPlot=Udt;_l.purge=lvt;_l.react=rvt;_l.redraw=Hdt;_l.relayout=QM;_l.restyle=VP;_l.setPlotConfig=Vdt;_l.update=HP;_l._guiRelayout=tU(QM);_l._guiRestyle=tU(VP);_l._guiUpdate=tU(HP);_l._storeDirectGUIEdit=Ydt});var Oy=ye(Pm=>{"use strict";var fvt=qa();Pm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Pm.getRedrawFunc=function(e){return function(){fvt.getComponentMethod("colorbar","draw")(e)}};Pm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Pm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var lde=window.URL||window.webkitURL;Pm.createObjectURL=function(e){return lde.createObjectURL(e)};Pm.revokeObjectURL=function(e){return lde.revokeObjectURL(e)};Pm.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})};Pm.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 iU=Oa(),Bor=Dr(),dvt=So(),vvt=ka(),Nor=Wp(),rU=/"/g,t4="TOBESTRIPPED",pvt=new RegExp('("'+t4+")|("+t4+'")',"g");function gvt(e){var t=iU.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 mvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ude.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(dvt.setRect,0,0,s,l).call(vvt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var yvt=Dr(),_vt=Ab().EventEmitter,r4=Oy();function xvt(e){var t=e.emitter||new _vt,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}),_=new a,b,p;s==="svg"||yvt.isSafari()?p=r4.encodeSVG(o):(b=r4.createBlob(o,"svg"),p=r4.createObjectURL(b)),l.width=h,l.height=d,_.onload=function(){var k;switch(b=null,r4.revokeObjectURL(p),s!=="svg"&&v.drawImage(_,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 E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},_.onerror=function(k){if(b=null,r4.revokeObjectURL(p),i(k),!e.promise)return t.emit("error",k)},_.src=p});return e.promise?r:t}cde.exports=xvt});var aU=ye((Gor,dde)=>{"use strict";var fde=Eo(),hde=ZP(),bvt=Mc(),Im=Dr(),i4=Oy(),wvt=YP(),Tvt=KP(),Avt=m6().version,nU={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 Svt(e,t){t=t||{};var r,n,i,a;Im.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Im.getGraphDiv(e),r=Im.extendDeep([],e.data),n=Im.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Im.validate(t[x],nU[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 "+Im.join2(nU.format.values,", "," or ")+".");var s={};function l(x,C){return Im.coerce(t,s,nU,x,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=Im.extendFlat({},n);c?b.width=c:t.width===null&&fde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&fde(a.height)&&(b.height=a.height);var p=Im.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=i4.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,i4.getDelay(_._fullLayout))})}function T(){return new Promise(function(x,C){var M=wvt(_,u,h),g=_._fullLayout.width,P=_._fullLayout.height;function A(){hde.purge(_),document.body.removeChild(_)}if(u==="full-json"){var z=bvt.graphJson(_,!1,"keepdata","object",!0,!0);return z.version=Avt,z=JSON.stringify(z),A(),x(v?z:i4.encodeJSON(z))}if(A(),u==="svg")return x(v?M:i4.encodeSVG(M));var O=document.createElement("canvas");O.id=Im.randstr(),Tvt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(x).catch(C)})}function L(x){return v?x.replace(i4.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){hde.newPlot(_,r,b,p).then(k).then(E).then(T).then(function(M){x(L(M))}).catch(function(M){C(M)})})}dde.exports=Svt});var gde=ye((Hor,pde)=>{"use strict";var I0=Dr(),Mvt=Mc(),Evt=P3(),kvt=_b().dfltConfig,Rg=I0.isPlainObject,Qb=Array.isArray,oU=I0.isArrayOrTypedArray;pde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Evt.get(),i=[],a={_context:I0.extendFlat({},kvt)},o,s;Qb(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"))),Mvt.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 E,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 M=f[T].length;for(E=0;E<(k?Math.min(M,b[T].length):M);E++)L=k?b[T][E]:b,x=c[T][E],C=f[T][E],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T,E),x,C)):n.push(md("value",i,u.concat(T,E),x))}else n.push(md("array",i,u.concat(T),c[T]));else for(T=0;T{"use strict";var Fvt=Dr(),$P=Oy();function zvt(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=$P.createBlob(e,r),u=$P.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),$P.revokeObjectURL(u),l=null,o(t);if(Fvt.isSafari()){var c=r==="svg"?",":";base64,";return $P.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}mde.exports=zvt});var sU=ye((Xor,xde)=>{"use strict";var _de=Dr(),Ovt=aU(),qvt=yde(),Wor=Oy();function Bvt(e,t){var r;return _de.isPlainObject(e)||(r=_de.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=Ovt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),qvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}xde.exports=Bvt});var Sde=ye(lU=>{"use strict";var Cp=Dr(),Lp=Cp.isPlainObject,bde=P3(),wde=Mc(),Nvt=Gl(),Tde=vl(),Ade=_b().dfltConfig;lU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:Ade},{data:e.data,layout:e.layout}),wde.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,Vvt.bind(null,d));var _=Cp.coerce(d,{},Nvt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(v)}),n4(r,n.layout,Uvt.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)&&QP(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(E,T){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],C=R0(E,L,T);Lp(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&Gvt(x)&&k(x,C)}}if(k({data:l,layout:s},""),o.length)return o.map(Hvt)};function Gvt(e){for(var t=0;t{"use strict";var rd=ZP();ef._doPlot=rd._doPlot;ef.newPlot=rd.newPlot;ef.restyle=rd.restyle;ef.relayout=rd.relayout;ef.redraw=rd.redraw;ef.update=rd.update;ef._guiRestyle=rd._guiRestyle;ef._guiRelayout=rd._guiRelayout;ef._guiUpdate=rd._guiUpdate;ef._storeDirectGUIEdit=rd._storeDirectGUIEdit;ef.react=rd.react;ef.extendTraces=rd.extendTraces;ef.prependTraces=rd.prependTraces;ef.addTraces=rd.addTraces;ef.deleteTraces=rd.deleteTraces;ef.moveTraces=rd.moveTraces;ef.purge=rd.purge;ef.addFrames=rd.addFrames;ef.deleteFrames=rd.deleteFrames;ef.animate=rd.animate;ef.setPlotConfig=rd.setPlotConfig;var jvt=HS().getGraphDiv,Wvt=dP().eraseActiveShape;ef.deleteActiveShape=function(e){return Wvt(jvt(e))};ef.toImage=aU();ef.validate=gde();ef.downloadImage=sU();var Mde=Sde();ef.makeTemplate=Mde.makeTemplate;ef.validateTemplate=Mde.validateTemplate});var oT=ye((Kor,kde)=>{"use strict";var uU=Dr(),Xvt=qa();kde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=Xvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=uU.minRowLength(a);o?s=Math.min(u,uU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=uU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dg=ye((Jor,Pde)=>{"use strict";var Cde=Dr().dateTick0,Zvt=fs(),Yvt=Zvt.ONEWEEK;function Lde(e,t){return e%Yvt===0?Cde(t,1):Cde(t,0)}Pde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Lde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Lde(s,r.ycalendar)),i("yperiodalignment"))}}});var Dde=ye(($or,Rde)=>{"use strict";var Ide=["orientation","groupnorm","stackgaps"];Rde.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 Fde=ka(),zde=pv().hasColorscale,Ode=td(),Kvt=Ru();qde.exports=function(t,r,n,i,a,o={}){var s=Kvt.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),zde(t,"marker")&&Ode(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=Fde.background:u=Fde.defaultLine,a("marker.line.color",u),zde(t,"marker.line")&&Ode(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((esr,Bde)=>{"use strict";var Jvt=Dr().isArrayOrTypedArray,$vt=pv().hasColorscale,Qvt=td();Bde.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),$vt(t,"line"))Qvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(Jvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var sT=ye((tsr,Nde)=>{"use strict";Nde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((rsr,Ude)=>{"use strict";var ept=Dr();Ude.exports=function(e,t,r,n,i){i=i||{},n("textposition"),ept.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Fg=ye((isr,Gde)=>{"use strict";var tI=ka(),Vde=Dr().isArrayOrTypedArray;function tpt(e){for(var t=tI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Hde=Dr(),rpt=qa(),ipt=pf(),npt=Lm(),lT=Ru(),apt=oT(),opt=Dg(),spt=Dde(),lpt=$p(),upt=D0(),jde=sT(),cpt=F0(),fpt=Fg(),hpt=Dr().coercePattern;Wde.exports=function(t,r,n,i){function a(d,v){return Hde.coerce(t,r,ipt,d,v)}var o=apt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){opt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=spt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var dpt=Kb().getAxisGroup;Zde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=dpt(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,_=v[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=_.offsetIndex)}});var cU=ye((osr,Yde)=>{"use strict";var vpt=Dr(),ppt=e2(),gpt=pf();Yde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return vpt.coerce(i._input,i,gpt,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 Jde=ye((ssr,Kde)=>{"use strict";var mpt=Dr(),ypt=rL();Kde.exports=function(e,t){function r(i,a){return mpt.coerce(e,t,ypt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var zg=ye((lsr,Qde)=>{"use strict";var _pt=Eo(),$de=Dr(),xpt=$de.dateTime2ms,rI=$de.incrementMonth,bpt=fs(),wpt=bpt.ONEAVGMONTH;Qde.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(_pt(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=xpt(h,u)||0,v=[],_=[],b=[],p=i.length,k=0;kE;)x=rI(x,-s,u);for(;x<=E;)x=rI(x,s,u);L=rI(x,-s,u)}else{for(T=Math.round((E-d)/o),x=d+T*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}v[k]=c?L:f?x:(L+x)/2,_[k]=L,b[k]=x}return{vals:v,starts:_,ends:b}}});var z0=ye((usr,tve)=>{"use strict";var fU=pv().hasColorscale,hU=gv(),eve=Ru();tve.exports=function(t,r){eve.hasLines(r)&&fU(r,"line")&&hU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),eve.hasMarkers(r)&&(fU(r,"marker")&&hU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),fU(r,"marker.line")&&hU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Rm=ye((csr,rve)=>{"use strict";var qf=Dr();rve.exports=function(t,r){for(var n=0;n{"use strict";var ive=Dr();nve.exports=function(t,r){ive.isArrayOrTypedArray(r.selectedpoints)&&ive.tagSelected(t,r)}});var q0=ye((hsr,fve)=>{"use strict";var ave=Eo(),vU=Dr(),a4=ho(),ove=zg(),dU=fs().BADNUM,pU=Ru(),Tpt=z0(),Apt=Rm(),Spt=O0();function Mpt(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=ove(t,n,"x",a),l=ove(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=gU(t,r,n,i),_=!1,b,p,k,E,T,L;uve(r,t);var x="x",C="y",M;if(v)vU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",M="x"):(x="s",M="y"),T=v.stackgaps==="interpolate";else{var g=lve(t,f);sve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;p{"use strict";hve.exports=iI;var Ept=Dr().distinctVals;function iI(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";vve.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var t2=ye((psr,yve)=>{"use strict";var B0=Eo(),{isArrayOrTypedArray:qy}=Dr(),{BADNUM:uT}=fs(),kpt=qa(),o4=ho(),{getAxisGroup:Cpt}=Kb(),nI=dve(),{TEXTPAD:Lpt}=A_(),{LINE_SPACING:Ppt}=Dh(),{BR_TAG_ALL:Ipt}=Zl();function Rpt(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*Ppt*r+Lpt;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 Gpt(e,t,r,n){for(var i=cT(n),a=0;a{"use strict";var _ve=q0(),xve=t2().setGroupPositions;function jpt(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 Xpt=So(),Mve=fs(),s4=Mve.BADNUM,Eve=Mve.LOG_CLIP,Tve=Eve+.5,Ave=Eve-.5,aI=Dr(),Zpt=aI.segmentsIntersect,Sve=aI.constrain,TU=Lm();kve.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,_=v==="linear",b=n.fill&&n.fill!=="none",p=[],k=TU.minTolerance,E=t.length,T=new Array(E),L=0,x,C,M,g,P,A,z,O,U,G,Z,j,N,H,re,oe;function _e(dt){var Ge=t[dt];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?Tve:Ave)/(a._m*l*(a._m>0?Tve:Ave)))),Je*=1e3}if(We===s4){if(s&&(We=a.c2p(Ge.y,!0)),We===s4)return!1;We*=1e3}return[Je,We]}function Ce(dt,Ge,Je,We){var tt=Je-dt,xt=We-Ge,Ie=.5-dt,xe=.5-Ge,ke=tt*tt+xt*xt,vt=tt*Ie+xt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],We&&Se(Ie,dt)Be||dt[1]me)return[Sve(dt[0],Ae,Be),Sve(dt[1],Pe,me)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===Be)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===me))return!0}function $t(dt,Ge){var Je=[],We=Wt(dt),tt=Wt(Ge);return We&&tt&&Nt(We,tt)||(We&&Je.push(We),tt&&Je.push(tt)),Je}function sr(dt,Ge,Je){return function(We,tt){var xt=Wt(We),Ie=Wt(tt),xe=[];if(xt&&Ie&&Nt(xt,Ie))return xe;xt&&xe.push(xt),Ie&&xe.push(Ie);var ke=2*aI.constrain((We[dt]+tt[dt])/2,Ge,Je)-((xt||We)[dt]+(Ie||tt)[dt]);if(ke){var vt;xt&&Ie?vt=ke>0==xt[dt]>Ie[dt]?xt:Ie:vt=xt||Ie,vt[dt]+=ke}return xe}}var Tr;v==="linear"||v==="spline"?Tr=ut:v==="hv"||v==="vh"?Tr=$t:v==="hvh"?Tr=sr(0,Ae,Be):v==="vhv"&&(Tr=sr(1,Pe,me));function fr(dt,Ge){var Je=Ge[0]-dt[0],We=(Ge[1]-dt[1])/Je,tt=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return tt>0?[We>0?Ae:Be,me]:[We>0?Be:Ae,Pe]}function $e(dt){var Ge=dt[0],Je=dt[1],We=Ge===T[L-1][0],tt=Je===T[L-1][1];if(!(We&&tt))if(L>1){var xt=Ge===T[L-2][0],Ie=Je===T[L-2][1];We&&(Ge===Ae||Ge===Be)&&xt?Ie?L--:T[L-1]=dt:tt&&(Je===Pe||Je===me)&&Ie?xt?L--:T[L-1]=dt:T[L++]=dt}else T[L++]=dt}function St(dt){T[L-1][0]!==dt[0]&&T[L-1][1]!==dt[1]&&$e([lt,pt]),$e(dt),Vt=null,lt=pt=0}var Qt=aI.isArrayOrTypedArray(f);function Gt(dt){if(dt&&c&&(dt.i=x,dt.d=t,dt.trace=n,dt.marker=Qt?f[dt.i]:f,dt.backoff=c),Le=dt[0]/l,ge=dt[1]/u,ce=dt[0]Be?Be:0,je=dt[1]me?me:0,ce||je){if(!L)T[L++]=[ce||dt[0],je||dt[1]];else if(Vt){var Ge=Tr(Vt,dt);Ge.length>1&&(St(Ge[0]),T[L++]=Ge[1])}else ot=Tr(T[L-1],dt)[0],T[L++]=ot;var Je=T[L-1];ce&&je&&(Je[0]!==ce||Je[1]!==je)?(Vt&&(lt!==ce&&pt!==je?$e(lt&&pt?fr(Vt,dt):[lt||ce,pt||je]):lt&&pt&&$e([lt,pt])),$e([ce,je])):lt-ce&&pt-je&&$e([ce||lt,je||pt]),Vt=dt,lt=ce,pt=je}else Vt&&St(Tr(Vt,dt)[0]),T[L++]=dt}for(x=0;xie(A,_t))break;M=A,N=U[0]*O[0]+U[1]*O[1],N>Z?(Z=N,g=A,z=!1):N=t.length||!A)break;Gt(A),C=A}}Vt&&$e([lt||Vt[0],pt||Vt[1]]),p.push(T.slice(0,L))}var It=v.slice(v.length-1);if(c&&It!=="h"&&It!=="v"){for(var mt=!1,er=-1,lr=[],wr=0;wr{"use strict";var Cve={tonextx:1,tonexty:1,tonext:1};Lve.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 Og=Oa(),Ypt=qa(),l4=Dr(),fT=l4.ensureSingle,Ive=l4.identity,Kf=So(),hT=Ru(),Kpt=AU(),Jpt=SU(),oI=zM().tester;Rve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=Jpt(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(),$pt(t,s,r),c){o&&(l=o());var h=Og.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){Pve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Pve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function $pt(e,t,r){t.each(function(n){var i=fT(Og.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,Ive);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=fT(Og.select(this),"path","js-fill")})})}function Pve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;Qpt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,_=Og.select(a),b=fT(_,"g","errorbars"),p=fT(_,"g","lines"),k=fT(_,"g","points"),E=fT(_,"g","text");if(Ypt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(_).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,M;x==="y"?(C=1,M=h.c2p(0,!0)):x==="x"&&(C=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var g="",P=[],A=d._prevtrace,z=null,O=null;A&&(g=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,z=A._fillsegments,O=A._fillElement);var U,G,Z="",j="",N,H,re,oe,_e,Ce,Le=[];d._polygons=[];var ge=[],ie=[],Se=l4.noop;if(T=d._ownFill,hT.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(sr){var Tr=sr[sr.length-1];return sr.length>1&&sr[0][0]===Tr[0]&&sr[0][1]===Tr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=H=function(sr){return"M"+sr.join("L")},re=function(sr){return H(sr.reverse())},ie=Kpt(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 Ee=0;for(l=0;l=s[0]&&_.x<=s[1]&&_.y>=l[0]&&_.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(_,b){var p=_[0].trace;hT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Dve.exports={container:"marker",min:"cmin",max:"cmax"}});var lI=ye((bsr,Fve)=>{"use strict";var sI=ho();Fve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=sI.getFromTrace(a,r,"x"),s=sI.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=sI.tickText(o,o.c2l(l),!0).text,i.yLabel=sI.tickText(s,s.c2l(u),!0).text,i}});var sp=ye((wsr,zve)=>{"use strict";var MU=Oa(),vT=So(),e0t=qa();function t0t(e){var t=MU.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=MU.select(this),i=r.trace||r[0].trace;EU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=MU.select(this),i=r.trace||r[0].trace;kU(n,i,e)}),t.selectAll("g.trace path.js-line").call(vT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(vT.fillGroupStyle,e,!1),e0t.getComponentMethod("errorbars","style")(t)}function EU(e,t,r){vT.pointStyle(e.selectAll("path.point"),t,r)}function kU(e,t,r){vT.textPointStyle(e.selectAll("text"),t,r)}function r0t(e,t,r){var n=t[0].trace;n.selectedpoints?(vT.selectedPointStyle(r.selectAll("path.point"),n),vT.selectedTextStyle(r.selectAll("text"),n)):(EU(r,n,e),kU(r,n,e))}zve.exports={style:t0t,stylePoints:EU,styleText:kU,styleOnSelect:r0t}});var gT=ye((Tsr,Ove)=>{"use strict";var pT=ka(),i0t=Ru();Ove.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&pT.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&&pT.opacity(a)?a:o&&pT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?pT.opacity(i)<.3?pT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&pT.opacity(n)&&i0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var mT=ye((Asr,Bve)=>{"use strict";var uI=Dr(),qve=vf(),n0t=qa(),a0t=gT(),CU=ka(),o0t=uI.fillText;Bve.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,_=!!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),oe=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),oe=1-1/re,_e=Math.abs(l.c2p(j.y)-c);return _eLe!=me>=Le&&(Ae=Se[ie-1][0],Be=Se[ie][0],me-Pe&&(Ee=Ae+(Be-Ae)*(Le-Pe)/(me-Pe),re=Math.min(re,Ee),oe=Math.max(oe,Ee)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:Le,y1:Le}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=z(o._fillElement)&&!z(o._fillExclusionElement);if(U){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=CU.defaultLine;return CU.opacity(o.fillcolor)?Z=o.fillcolor:CU.opacity((o.line||{}).color)&&(Z=o.line.color),uI.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&&!uI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var yT=ye((Ssr,Uve)=>{"use strict";var Nve=Ru();Uve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Nve.hasMarkers(s)&&!Nve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Vve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var PU=ye((Esr,Wve)=>{"use strict";var u4=qa().traceIs,LU=V3();Wve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(s0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function s0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=l0t(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,jve(a,n)){var u=Hve(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 Hve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jve(e,t){var r=Hve(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 cI=ye((ksr,Xve)=>{"use strict";var u0t=vv().isTypedArraySpec;function c0t(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||u0t(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=c0t(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var c4=ye((Csr,Yve)=>{"use strict";var Zve=fd().mix,f0t=Ih(),h0t=Dr();Yve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return h0t.coerce2(t,r,i.attributes,M,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=Zve(a,i.bgColor,i.blend||f0t.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 _=Zve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),p=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!k);E||(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((Lsr,tpe)=>{"use strict";var Kve=Eo(),d0t=qa(),f4=Dr(),v0t=vl(),p0t=Zd(),IU=Rd(),Jve=Lb(),$ve=F3(),g0t=s_(),m0t=l_(),y0t=cI(),_0t=c4(),x0t=AB(),Qve=xm(),fI=Rh().WEEKDAY_PATTERN,b0t=Rh().HOUR_PATTERN;tpe.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=d0t.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"),Qve(r,a),x0t(t,r,n,i),y0t(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==IU.color.dflt?_:s.color,p=l.label||a._dfltTitle[o];if(m0t(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}}),Jve(t,r,n,f);var k=i.hasMinor;if(k&&(v0t.newContainer(r,"minor"),Jve(t,r,n,f,{isMinor:!0})),g0t(t,r,n,f,i),$ve(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,$ve(t,r,n,i),i.isMinor=E}_0t(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:IU}),k&&!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(p0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:w0t}),!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=epe(a[s]),l){o=fI;break}}var u=n("pattern",o);if(u===fI)for(s=0;s<2;s++)l=epe(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case fI:if(!Kve(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 b0t:if(!Kve(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 A0t=Eo(),hI=Dr();rpe.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,_;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||(A0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,_=!1;var b=hI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=hI.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],_=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=hI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",f);T[0]>T[1]-1/4096&&(r.domain=f),hI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var fpe=ye((Isr,cpe)=>{"use strict";var r2=Dr(),ipe=ka(),S0t=ip().isUnifiedHover,M0t=YB(),npe=vl(),E0t=_3(),ape=Rd(),k0t=PU(),ope=h4(),C0t=Kb(),spe=dI(),DU=hf(),Dm=DU.id2name,lpe=DU.name2id,L0t=Rh().AX_ID_PATTERN,upe=qa(),vI=upe.traceIs,RU=upe.getComponentMethod;function pI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}cpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},_,b;for(_=0;_{"use strict";var P0t=Oa(),hpe=qa(),gI=Dr(),Qp=So(),mI=ho();dpe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){mI.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 E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,x=T._length,C=!!b.xr1,M=!!b.yr1,g=[];if(C){var P=gI.simpleMap(b.xr0,E.r2l),A=gI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=A[1]-A[0];g[0]=(P[0]*(1-p)+p*A[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*A[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*A[1])}else g[0]=0,g[2]=L;if(M){var U=gI.simpleMap(b.yr0,T.r2l),G=gI.simpleMap(b.yr1,T.r2l),Z=U[1]-U[0],j=G[1]-G[0];g[1]=(U[1]*(1-p)+p*G[1]-U[1])/(U[0]-U[1])*x,g[3]=x*(1-p+p*j/Z),T.range[0]=E.l2r(U[0]*(1-p)+p*G[0]),T.range[1]=T.l2r(U[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;mI.drawOne(t,E,{skipTitle:!0}),mI.drawOne(t,T,{skipTitle:!0}),mI.redrawComponents(t,[E._id,T._id]);var N=C?L/g[2]:1,H=M?x/g[3]:1,re=C?g[0]:0,oe=M?g[1]:0,_e=C?g[0]/g[2]*L:0,Ce=M?g[1]/g[3]*x:0,Le=E._offset-_e,ge=T._offset-Ce;k.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/H),k.plot.call(Qp.setTranslate,Le,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(_)):d=window.requestAnimationFrame(_)}return f=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var mh=ye(xv=>{"use strict";var _I=Oa(),ppe=qa(),i2=Dr(),I0t=Mc(),R0t=So(),gpe=Id().getModuleCalcData,S_=hf(),qg=Rh(),D0t=Wp(),iu=i2.ensureSingle;function yI(e,t,r){return i2.ensureSingle(e,t,r,function(n){n.datum(r)})}var n2=qg.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=qg.idRegex;xv.attrRegex=qg.attrRegex;xv.attributes=Gve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=fpe();xv.transitionAxes=vpe();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(n2)!==-1)continue;d+=n2+(u+1),h=i2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],_,b=0;b1&&(L+=n2+T),E.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,_=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",_),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",_),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",_),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",_),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+_),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+_),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(yI(t.minorGridlayer,"g",t.xaxis._id),yI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort),yI(t.gridlayer,"g",t.xaxis._id),yI(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 _pe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=_I.select(this);c.remove(),xpe(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 xI=Ru();bpe.exports={hasLines:xI.hasLines,hasMarkers:xI.hasMarkers,hasText:xI.hasText,isBubble:xI.isBubble,attributes:pf(),layoutAttributes:rL(),supplyDefaults:Xde(),crossTraceDefaults:cU(),supplyLayoutDefaults:Jde(),calc:q0().calc,crossTraceCalc:wve(),arraysToCalcdata:Rm(),plot:dT(),colorbar:$d(),formatLabels:lI(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:mT(),selectPoints:yT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Spe=ye((zsr,Ape)=>{"use strict";var z0t=Oa(),O0t=ka(),Tpe=ON(),FU=Dr(),q0t=FU.strScale,B0t=FU.strRotate,N0t=FU.strTranslate;Ape.exports=function(t,r,n){var i=t.node(),a=Tpe[n.arrowhead||0],o=Tpe[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,_,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(_=Math.atan2(k,p),b=_+Math.PI,f&&h&&f+h>Math.sqrt(p*p+k*k)){U();return}if(f){if(f*f>p*p+k*k){U();return}var E=f*Math.cos(_),T=f*Math.sin(_);v.x+=E,v.y+=T,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+k*k){U();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),M="";if(C{"use strict";var Mpe=Oa(),zU=qa(),U0t=Mc(),E_=Dr(),OU=E_.strTranslate,v4=ho(),a2=ka(),By=So(),Epe=vf(),qU=Zl(),BU=Eg(),d4=yv(),V0t=vl().arrayEditor,G0t=Spe();Lpe.exports={draw:H0t,drawOne:kpe,drawRaw:Cpe};function H0t(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 Pe=!1,me=["x","y"],De=0;De1)&&(lt===je?(_t=pt.r2fraction(t["a"+ce]),(_t<0||_t>1)&&(Pe=!0)):Pe=!0),Tr=pt._offset+pt.r2p(t[ce]),St=.5}else{var It=Gt==="domain";ce==="x"?($e=t[ce],Tr=It?pt._offset+pt._length*$e:Tr=s.l+s.w*$e):($e=1-t[ce],Tr=It?pt._offset+pt._length*$e:Tr=s.t+s.h*$e),St=t.showarrow?.5:$e}if(t.showarrow){sr.head=Tr;var mt=t["a"+ce];if(Qt=ot*Be(.5,t.xanchor)-ut*Be(.5,t.yanchor),lt===je){var er=v4.getRefType(lt);er==="domain"?(ce==="y"&&(mt=1-mt),sr.tail=pt._offset+pt._length*mt):er==="paper"?ce==="y"?(mt=1-mt,sr.tail=s.t+s.h*mt):sr.tail=s.l+s.w*mt:sr.tail=pt._offset+pt.r2p(mt),fr=Qt}else sr.tail=Tr+mt,fr=Qt+mt;sr.text=sr.tail+Qt;var lr=o[ce==="x"?"width":"height"];if(je==="paper"&&(sr.head=E_.constrain(sr.head,1,lr-1)),lt==="pixel"){var wr=-Math.max(sr.tail-3,sr.text),Lr=Math.min(sr.tail+3,sr.text)-lr;wr>0?(sr.tail+=wr,sr.text+=wr):Lr>0&&(sr.tail-=Lr,sr.text-=Lr)}sr.tail+=$t,sr.head+=$t}else Qt=Wt*Be(St,Nt),fr=Qt,sr.text=Tr+Qt;sr.text+=$t,Qt+=$t,fr+=$t,t["_"+ce+"padplus"]=Wt/2+fr,t["_"+ce+"padminus"]=Wt/2-fr,t["_"+ce+"size"]=Wt,t["_"+ce+"shift"]=Qt}if(Pe){C.remove();return}var ti=0,Br=0;if(t.align!=="left"&&(ti=(ie-Le)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Br=(Se-ge)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ti-1,y:P+Br}).call(By.setClipUrl,z?_:null,e);else{var Vr=P+Br-Ce.top,dt=P+ti-Ce.left;Z.call(qU.positionText,dt,Vr).call(By.setClipUrl,z?_:null,e)}O.select("rect").call(By.setRect,P,P,ie,Se),A.call(By.setRect,M/2,M/2,Ee-M,Ae-M),C.call(By.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(We,tt){k.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,Ie=b.y.head,xe=b.x.tail+We,ke=b.y.tail+tt,vt=b.x.text+We,ir=b.y.text+tt,ar=E_.rotationXYMatrix(p,vt,ir),vr=E_.apply2DTransform(ar),ii=E_.apply2DTransform2(ar),pi=+A.attr("width"),$r=+A.attr("height"),di=vt-.5*pi,ji=di+pi,In=ir-.5*$r,wi=In+$r,On=[[di,In,di,wi],[di,wi,ji,wi],[ji,wi,ji,In],[ji,In,di,In]].map(ii);if(!On.reduce(function(Qr,Oi){return Qr^!!E_.segmentsIntersect(xt,Ie,xt+1e6,Ie+1e6,Oi[0],Oi[1],Oi[2],Oi[3])},!1)){On.forEach(function(Qr){var Oi=E_.segmentsIntersect(xe,ke,xt,Ie,Qr[0],Qr[1],Qr[2],Qr[3]);Oi&&(xe=Oi.x,ke=Oi.y)});var qn=t.arrowwidth,Fn=t.arrowcolor,ra=t.arrowside,la=k.append("g").style({opacity:a2.opacity(Fn)}).classed("annotation-arrow-g",!0),Ut=la.append("path").attr("d","M"+xe+","+ke+"L"+xt+","+Ie).style("stroke-width",qn+"px").call(a2.stroke,a2.rgb(Fn));if(G0t(Ut,ra,t),l.annotationPosition&&Ut.node().parentNode&&!n){var wt=xt,rr=Ie;if(t.standoff){var nr=Math.sqrt(Math.pow(xt-xe,2)+Math.pow(Ie-ke,2));wt+=t.standoff*(xe-xt)/nr,rr+=t.standoff*(ke-Ie)/nr}var Er=la.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-wt)+","+(ke-rr),transform:OU(wt,rr)}).style("stroke-width",qn+6+"px").call(a2.stroke,"rgba(0,0,0,0)").call(a2.fill,"rgba(0,0,0,0)"),Xr,ri;d4.init({element:Er.node(),gd:e,prepFn:function(){var Qr=By.getTranslate(C);Xr=Qr.x,ri=Qr.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Qr,Oi){var $i=vr(Xr,ri),tn=$i[0]+Qr,fn=$i[1]+Oi;C.call(By.setTranslate,tn,fn),d("x",M_(i,Qr,"x",s,t)),d("y",M_(a,Oi,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,Qr,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Oi,"ay",s,t)),la.attr("transform",OU(Qr,Oi)),E.attr({transform:"rotate("+p+","+tn+","+fn+")"})},doneFn:function(){zU.call("_guiRelayout",e,v());var Qr=document.querySelector(".js-notes-box-panel");Qr&&Qr.redraw(Qr.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),T){var Je;d4.init({element:C.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(We,tt){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,tt,"ay",s.w,t)):d("ay",t.ay+tt),Ge(We,tt);else{if(n)return;var Ie,xe;if(i)Ie=M_(i,We,"x",s,t);else{var ke=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-ke/2;Ie=d4.align(vt+We/s.w,ke,0,1,t.xanchor)}if(a)xe=M_(a,tt,"y",s,t);else{var ir=t._ysize/s.h,ar=t.y-(t._yshift+t.yshift)/s.h-ir/2;xe=d4.align(ar-tt/s.h,ir,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(xt=d4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:OU(We,tt)+Je}),BU(C,xt)},clickFn:function(We,tt){t.captureevents&&e.emit("plotly_clickannotation",x(tt))},doneFn:function(){BU(C),zU.call("_guiRelayout",e,v());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}l.annotationText?Z.call(qU.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),zU.call("_guiRelayout",e,v())}):Z.call(j)}});var zpe=ye((qsr,Fpe)=>{"use strict";var Ppe=Dr(),j0t=qa(),Ipe=vl().arrayEditor;Fpe.exports={hasClickToShow:W0t,onClick:X0t};function W0t(e,t){var r=Dpe(e,t);return r.on.length>0||r.explicitOff.length>0}function X0t(e,t){var r=Dpe(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 NU=Dr(),_T=ka();Ope.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=_T.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),NU.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:_T.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),_=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",_.bgcolor||(_T.opacity(a)?_T.rgb(a):_T.defaultLine)),p=i("hoverlabel.bordercolor",_.bordercolor||_T.contrast(b)),k=NU.extendFlat({},_.font);k.color||(k.color=p),NU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!v)}});var Bpe=ye((Nsr,qpe)=>{"use strict";var VU=Dr(),o2=ho(),Z0t=Zd(),Y0t=UU(),K0t=Jb();qpe.exports=function(t,r){Z0t(t,r,{name:"annotations",handleItemDefaults:J0t})};function J0t(e,t,r){function n(E,T){return VU.coerce(e,t,K0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Y0t(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=o2.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=o2.getFromId(u,h);d._annIndices.push(t._index)}if(o2.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,_=o2.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[v]="pixel");var b=_==="pixel"?l[c]:.4;o2.coercePosition(t,u,n,_,v,b)}n(f+"anchor"),n(f+"shift")}if(VU.noneOrAll(e,t,["x","y"]),o&&VU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),k=n("yclick");t._xclick=p===void 0?t.x:o2.cleanPosition(p,u,t.xref),t._yclick=k===void 0?t.y:o2.cleanPosition(k,u,t.yref)}}}});var Vpe=ye((Usr,Upe)=>{"use strict";var GU=Dr(),s2=ho(),$0t=bI().draw;Upe.exports=function(t){var r=t._fullLayout,n=GU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return GU.syncOrAsync([$0t,Q0t],t)};function Q0t(e){var t=e._fullLayout;GU.filterVisible(t.annotations).forEach(function(r){var n=s2.getFromId(e,r.xref),i=s2.getFromId(e,r.yref),a=s2.getRefType(r.xref),o=s2.getRefType(r.yref);r._extremes={},a==="range"&&Npe(r,n),o==="range"&&Npe(r,i)})}function Npe(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,_=v+c,b=v-c,p;if(s===o){var k=s2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=s2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,_),ppadminus:Math.max(u,b)});p={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,p=s2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,_),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Hpe=ye((Vsr,Gpe)=>{"use strict";var egt=Eo(),tgt=M6();Gpe.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],_=null;a?_=tgt(v,r.range):_=Math.pow(10,v),egt(_)||(_=null),i(c+d,_)}for(var h=0;h{"use strict";var HU=bI(),jpe=zpe();Wpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Jb(),supplyLayoutDefaults:Bpe(),includeBasePlot:XM()("annotations"),calcAutorange:Vpe(),draw:HU.draw,drawOne:HU.drawOne,drawRaw:HU.drawRaw,hasClickToShow:jpe.hasClickToShow,onClick:jpe.onClick,convertCoords:Hpe()}});var wI=ye((Hsr,Zpe)=>{"use strict";var kc=Jb(),rgt=mc().overrideAll,igt=vl().templatedArray;Zpe.exports=rgt(igt("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 Kpe=ye((jsr,Ype)=>{"use strict";var jU=Dr(),ngt=ho(),agt=Zd(),ogt=UU(),sgt=wI();Ype.exports=function(t,r,n){agt(t,r,{name:"annotations",handleItemDefaults:lgt,fullLayout:n.fullLayout})};function lgt(e,t,r,n){function i(s,l){return jU.coerce(e,t,sgt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ngt.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(ogt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),jU.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),jU.noneOrAll(e,t,["ax","ay"])))}});var e0e=ye((Wsr,Qpe)=>{"use strict";var Jpe=Dr(),$pe=ho();Qpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function WU(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 cgt(e,t){var r=WU(e.projection,WU(e.view,WU(e.model,[t[0],t[1],t[2],1])));return r}t0e.exports=cgt});var i0e=ye((Zsr,r0e)=>{"use strict";var fgt=bI().drawRaw,hgt=XU(),dgt=["x","y","z"];r0e.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=hgt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),fgt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var o0e=ye((Ysr,a0e)=>{"use strict";var vgt=qa(),n0e=Dr();a0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wI()}}},layoutAttributes:wI(),handleDefaults:Kpe(),includeBasePlot:pgt,convert:e0e(),draw:i0e()};function pgt(e,t){var r=vgt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Ksr=Rh(),s0e=ec(),l0e=pf().line,ggt=Pd().dash,Bg=Ao().extendFlat,mgt=vl().templatedArray,Jsr=jM(),xT=Gl(),u0e=Jb(),{shapeTexttemplateAttrs:ygt,templatefallbackAttrs:_gt}=Ll(),xgt=F6();c0e.exports=mgt("shape",{visible:Bg({},xT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Bg({},xT.legend,{editType:"calc+arraydraw"}),legendgroup:Bg({},xT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Bg({},xT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:s0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Bg({},xT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Bg({},xT.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({},u0e.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({},u0e.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({},l0e.color,{editType:"arraydraw"}),width:Bg({},l0e.width,{editType:"calc+arraydraw"}),dash:Bg({},ggt,{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:ygt({},{keys:Object.keys(xgt)}),texttemplatefallback:_gt({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 h0e=ye((Qsr,f0e)=>{"use strict";var bT=Dr(),e0=ho(),bgt=Zd(),wgt=ZU(),p4=x_();f0e.exports=function(t,r){bgt(t,r,{name:"shapes",handleItemDefaults:Agt})};function Tgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Agt(e,t,r){function n(E,T){return bT.coerce(e,t,wgt,E,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),bT.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(E=>{var T=E+"anchor",L=E==="x"?f:h,x={_fullLayout:r},C,M,g,P;let A=E+"ref",z=e[A];if(Array.isArray(z)&&z.length>0){let O=p4.countDefiningCoords(l,o,E);P=e0.coerceRefArray(e,t,x,E,void 0,"paper",O),t["_"+E+"refArray"]=!0}else P=e0.coerceRef(e,t,x,E,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){e0.getRefType(O)==="range"&&(C=e0.getFromId(x,O),C&&C._shapeIndices.indexOf(t._index)===-1&&C._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(O){let U=P[O];e0.getRefType(U)==="range"?(C=e0.getFromId(x,U),M=p4.shapePositionToRange(C),g=p4.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&n(E+O+"shift")):M=g=bT.identity;let Z=E+O,j=e[Z];if(e[Z]=M(e[Z],!0),L==="pixel"?n(Z,v[O]):e0.coercePosition(t,x,n,U,Z,d[O]),t[Z]=g(t[Z]),e[Z]=j,O===0&&L==="pixel"){let N=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,U,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),M=p4.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(n(E+"0shift"),n(E+"1shift"))):M=g=bT.identity,u){let U=E+"0",G=E+"1",Z=e[U],j=e[G];e[U]=M(e[U],!0),e[G]=M(e[G],!0),L==="pixel"?(n(U,v[0]),n(G,v[1])):(e0.coercePosition(t,x,n,P,U,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[U]=g(t[U]),t[G]=g(t[G]),e[U]=Z,e[G]=j}if(L==="pixel"){let U=e[T];e[T]=M(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=g(t[T]),e[T]=U}}}),u&&bT.noneOrAll(e,t,["x0","x1","y0","y1"]);var _=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",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Tgt(_,k)),n("label.padding"),bT.coerceFont(n,"label.font",r.font)}}});var p0e=ye((elr,v0e)=>{"use strict";var Sgt=ka(),d0e=Dr();function Mgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}v0e.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"),d0e.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",Sgt.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",Mgt(o,u)),n("newshape.label.padding"),d0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var w0e=ye((tlr,b0e)=>{"use strict";var YU=Dr(),N0=ho(),Fm=TM(),KU=x_();b0e.exports=function(t){var r=t._fullLayout,n=YU.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,m0e(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.xref),s=_0e(o,a,Fm.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,m0e(a))));if(u==="array"){let c=g0e(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,y0e(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.yref),s=_0e(o,a,Fm.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,y0e(a))))}};function g0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Fm.paramIsX:Fm.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(Fm.segmentRE)||[];for(var s=0,l=0;lv&&(a(n[s],_[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=KU.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function m0e(e){return x0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function y0e(e){return x0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function x0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var l=i?KU.extractPathCoords(i,a?Fm.paramIsY:Fm.paramIsX):[r,n],u=YU.aggNums(Math.max,null,l),c=YU.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 _0e(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(Fm.segmentRE),v,_,b,p,k;for(e.type==="date"&&(u=KU.decodeDate(u)),v=0;vh&&(h=k)));if(h>=f)return[f,h]}}});var S0e=ye((rlr,A0e)=>{"use strict";var T0e=dP();A0e.exports={moduleType:"component",name:"shapes",layoutAttributes:ZU(),supplyLayoutDefaults:h0e(),supplyDrawNewShapeDefaults:p0e(),includeBasePlot:XM()("shapes"),calcAutorange:w0e(),draw:T0e.draw,drawOne:T0e.drawOne}});var JU=ye((nlr,E0e)=>{"use strict";var M0e=Rh(),Egt=vl().templatedArray,ilr=jM();E0e.exports=Egt("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",M0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",M0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var C0e=ye((alr,k0e)=>{"use strict";var kgt=Dr(),$U=ho(),Cgt=Zd(),Lgt=JU(),Pgt="images";k0e.exports=function(t,r){var n={name:Pgt,handleItemDefaults:Igt};Cgt(t,r,n)};function Igt(e,t,r){function n(h,d){return kgt.coerce(e,t,Lgt,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=$U.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=$U.getFromId(o,c);f._imgIndices.push(t._index)}$U.coercePosition(t,o,n,c,u,0)}return t}});var R0e=ye((olr,I0e)=>{"use strict";var L0e=Oa(),Rgt=So(),wT=ho(),P0e=hf(),Dgt=Wp();I0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var D0e=Eo(),Fgt=M6();F0e.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";O0e.exports={moduleType:"component",name:"images",layoutAttributes:JU(),supplyLayoutDefaults:C0e(),includeBasePlot:XM()("images"),draw:R0e(),convertCoords:z0e()}});var TI=ye((ulr,B0e)=>{"use strict";B0e.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 QU=ye((clr,U0e)=>{"use strict";var zgt=ec(),Ogt=Ih(),qgt=Ao().extendFlat,Bgt=mc().overrideAll,Ngt=z6(),N0e=vl().templatedArray,Ugt=N0e("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}});U0e.exports=Bgt(N0e("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:Ugt,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:qgt(Ngt({editType:"arraydraw"}),{}),font:zgt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ogt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var j0e=ye((flr,H0e)=>{"use strict";var AI=Dr(),V0e=Zd(),G0e=QU(),Vgt=TI(),Ggt=Vgt.name,Hgt=G0e.buttons;H0e.exports=function(t,r){var n={name:Ggt,handleItemDefaults:jgt};V0e(t,r,n)};function jgt(e,t,r){function n(o,s){return AI.coerce(e,t,G0e,o,s)}var i=V0e(e,t,{name:"buttons",handleItemDefaults:Wgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),AI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),AI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Wgt(e,t){function r(i,a){return AI.coerce(e,t,Hgt,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 Z0e=ye((hlr,X0e)=>{"use strict";X0e.exports=Mf;var Ng=Oa(),W0e=ka(),TT=So(),SI=Dr();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",_=f==="up",b=l,p=c,k,E,T,L;!h&&!d&&!v&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(k=s,E=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?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:p};var C=l>b,M=Mf.barLength+2*Mf.barPad,g=Mf.barWidth+2*Mf.barPad,P=s,A=u+c;A+g>o&&(A=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(W0e.fill,Mf.barColor),C?(this.hbar=z.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:P,y:A,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,U=Mf.barWidth+2*Mf.barPad,G=Mf.barLength+2*Mf.barPad,Z=s+l,j=u;Z+U>a&&(Z=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(W0e.fill,Mf.barColor),O?(this.vbar=N.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:Z,y:j,width:U,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,oe=O?E+U+.5:E+.5,_e=T-.5,Ce=C?L+g+.5:L+.5,Le=i._topdefs.selectAll("#"+H).data(C||O?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",H).append("rect"),C||O?(this._clipRect=Le.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Ce)-Math.floor(_e)}),this.container.call(TT.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(TT.setClipUrl,null),delete this._clipRect),C||O){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),O&&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(TT.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=SI.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=SI.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=SI.constrain(t||0,0,n),r=SI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(TT.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(TT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(TT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var nge=ye((dlr,ige)=>{"use strict";var AT=Oa(),g4=Mc(),m4=ka(),ST=So(),t0=Dr(),MI=Zl(),Xgt=vl().arrayEditor,K0e=Dh().LINE_SPACING,es=TI(),Zgt=Z0e();ige.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[es.name]);function i(h){g4.autoMargin(t,tge(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(){AT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,Ygt);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 rmt=TI();age.exports={moduleType:"component",name:rmt.name,layoutAttributes:QU(),supplyLayoutDefaults:j0e(),draw:nge()}});var _4=ye((plr,sge)=>{"use strict";sge.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 iV=ye((glr,cge)=>{"use strict";var lge=ec(),imt=z6(),nmt=Ao().extendDeepAll,amt=mc().overrideAll,omt=jS(),uge=vl().templatedArray,l2=_4(),smt=uge("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}});cge.exports=amt(uge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:smt,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:nmt(imt({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:omt.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:lge({})},font:lge({}),activebgcolor:{valType:"color",dflt:l2.gripBgActiveColor},bgcolor:{valType:"color",dflt:l2.railBgColor},bordercolor:{valType:"color",dflt:l2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l2.tickLength},tickcolor:{valType:"color",dflt:l2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l2.minorTickLength}}),"arraydraw","from-root")});var vge=ye((mlr,dge)=>{"use strict";var MT=Dr(),fge=Zd(),hge=iV(),lmt=_4(),umt=lmt.name,cmt=hge.steps;dge.exports=function(t,r){fge(t,r,{name:umt,handleItemDefaults:fmt})};function fmt(e,t,r){function n(f,h){return MT.coerce(e,t,hge,f,h)}for(var i=fge(e,t,{name:"steps",handleItemDefaults:hmt}),a=0,o=0;o{"use strict";var Ug=Oa(),EI=Mc(),k_=ka(),Vg=So(),r0=Dr(),dmt=r0.strTranslate,x4=Zl(),vmt=vl().arrayEditor,Rs=_4(),oV=Dh(),mge=oV.LINE_SPACING,nV=oV.FROM_TL,aV=oV.FROM_BR;Tge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=pmt(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),EI.autoMargin(t,yge(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,gmt);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",dmt(o-Rs.gripWidth*.5,t._dims.currentValueTotalHeight))}}function sV(e,t){var r=e._dims;return r.inputAreaStart+Rs.stepInset+(r.inputAreaLength-2*Rs.stepInset)*Math.min(1,Math.max(0,t))}function gge(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 Tmt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",Rs.railTouchRectClass,function(a){a.call(bge,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 Amt(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 Mge=ye((_lr,Sge)=>{"use strict";var Smt=_4();Sge.exports={moduleType:"component",name:Smt.name,layoutAttributes:iV(),supplyLayoutDefaults:vge(),draw:Age()}});var CI=ye((xlr,kge)=>{"use strict";var Ege=Ih();kge.exports={bgcolor:{valType:"color",dflt:Ege.background,editType:"plot"},bordercolor:{valType:"color",dflt:Ege.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 lV=ye((blr,Cge)=>{"use strict";Cge.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 LI=ye((wlr,Lge)=>{"use strict";Lge.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 Rge=ye(II=>{"use strict";var Mmt=hf(),Emt=Zl(),Pge=LI(),kmt=Dh().LINE_SPACING,PI=Pge.name;function Ige(e){var t=e&&e[PI];return t&&t.visible}II.isVisible=Ige;II.makeData=function(e){for(var t=Mmt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var RI=Dr(),Dge=vl(),Fge=hf(),Cmt=CI(),Lmt=lV();zge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;RI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Dge.newContainer(a,"rangeslider");function l(L,x){return RI.coerce(o,s,Cmt,L,x)}var u,c;function f(L,x){return RI.coerce(u,c,Lmt,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")))===Fge.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),_=RI.simpleMap(v,Fge.id2name),b=0;b<_.length;b++){var p=_[b];u=o[p]||{},c=Dge.newContainer(s,p,"yaxis");var k=r[p],E;u.range&&k.isValidRange(u.range)&&(E="fixed");var T=f("rangemode",E);T!=="match"&&f("range",k.range.slice())}s._input=o}}});var Bge=ye((Slr,qge)=>{"use strict";var Pmt=hf().list,Imt=Mg().getAutoRange,Rmt=LI();qge.exports=function(t){for(var r=Pmt(t,"x",!0),n=0;n{"use strict";var DI=Oa(),Dmt=qa(),Fmt=Mc(),Jf=Dr(),FI=Jf.strTranslate,Uge=So(),C_=ka(),zmt=zb(),Omt=mh(),uV=hf(),qmt=yv(),Bmt=Eg(),rl=LI();Vge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=A[j+1];else if(G=N.pmax)Z=A[j+1];else if(G0?e.touches[0].clientX:0}function Nmt(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=DI.event,u=l.target,c=Nge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=qmt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),v.addEventListener("mousemove",_),v.addEventListener("mouseup",b);function _(p){var k=Nge(p),E=+k-c,T,L,x;switch(u){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;T=h,L=d+E;break;default:x="ew-resize",T=f,L=f+E;break}if(L{"use strict";var Kmt=Dr(),Jmt=CI(),$mt=lV(),cV=Rge();Hge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Kmt.extendFlat({},Jmt,{yaxis:$mt})}}},layoutAttributes:CI(),handleDefaults:Oge(),calcAutorange:Bge(),draw:Gge(),isVisible:cV.isVisible,makeData:cV.makeData,autoMarginOpts:cV.autoMarginOpts}});var zI=ye((klr,Xge)=>{"use strict";var Qmt=ec(),Wge=Ih(),eyt=vl().templatedArray,tyt=eyt("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"});Xge.exports={visible:{valType:"boolean",editType:"plot"},buttons:tyt,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:Qmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Wge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Wge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var fV=ye((Clr,Zge)=>{"use strict";Zge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Jge=ye((Llr,Kge)=>{"use strict";var OI=Dr(),ryt=ka(),iyt=vl(),nyt=Zd(),Yge=zI(),hV=fV();Kge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=iyt.newContainer(r,"rangeselector");function l(d,v){return OI.coerce(o,s,Yge,d,v)}var u=nyt(o,s,{name:"buttons",handleItemDefaults:ayt,calendar:a}),c=l("visible",u.length>0);if(c){var f=oyt(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",ryt.contrast(h,hV.lightAmount,hV.darkAmount)),l("bordercolor"),l("borderwidth")}};function ayt(e,t,r,n){var i=n.calendar;function a(l,u){return OI.coerce(e,t,Yge.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 oyt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var syt=SO(),lyt=Dr().titleCase;$ge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=uyt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function uyt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=syt["utc"+lyt(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 sme=ye((Ilr,ome)=>{"use strict";var BI=Oa(),cyt=qa(),fyt=Mc(),eme=ka(),ame=So(),Ny=Dr(),tme=Ny.strTranslate,qI=Zl(),hyt=hf(),pV=Dh(),rme=pV.LINE_SPACING,ime=pV.FROM_TL,nme=pV.FROM_BR,vV=fV(),dyt=Qge();ome.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(vyt(t),pyt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=BI.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=BI.select(this),f=dyt(o,u);u._isActive=gyt(o,u,f),c.call(dV,s,u),c.call(yyt,s,u,t),c.on("click",function(){t._dragged||cyt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(dV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(dV,s,u)})}),xyt(t,l,s,o._name,a)})};function vyt(e){for(var t=hyt.list(e,"x",!0),r=[],n=0;n{"use strict";lme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:zI()}}},layoutAttributes:zI(),handleDefaults:Jge(),draw:sme()}});var Cc=ye(gV=>{"use strict";var cme=Ao().extendFlat;gV.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:cme({},r,{}),y:cme({},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};gV.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 byt=Dr(),wyt=p3().counter,Tyt=Cc().attributes,fme=Rh().idRegex,Ayt=vl(),mV={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:[wyt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[fme.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:Tyt({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 NI(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 Syt(e,t){var r=e.grid||{},n=NI(t,r,"x"),i=NI(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=Ayt.newContainer(t,"grid");function h(x,C){return byt.coerce(r,f,mV,x,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;l&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:hme("x",h,k,T,v),y:hme("y",h,E,L,d,p)}}function hme(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";pme.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 yme=ye((Olr,mme)=>{"use strict";var gme=Eo(),Eyt=qa(),kyt=Dr(),Cyt=vl(),Lyt=_V();mme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Cyt.newContainer(t,i),o=e[i]||{};function s(v,_){return kyt.coerce(o,a,Lyt,v,_)}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||gme(o.thickness)||gme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Eyt.traceIs(t,"gl3d")?0:4))}}});var xV=ye((qlr,xme)=>{"use strict";xme.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=_me(r,t.value),s=_me(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 _me(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 Tme=ye((Blr,wme)=>{"use strict";var bV=Eo(),Pyt=qa(),wV=ho(),Iyt=Dr(),Ryt=xV();wme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Ame=Oa(),L_=Eo(),Dyt=So(),Fyt=Ru();Sme.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 _=Fyt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=Ame.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),Dyt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=Ame.select(this),T=zyt(k,o,s);if(!(_&&!k.vis)){var L,x=E.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=E.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 M=E.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=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function zyt(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 Cme=ye((Ulr,kme)=>{"use strict";var Oyt=Oa(),Eme=ka();kme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Oyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Eme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Eme.stroke,a.color)})}});var Ime=ye((Vlr,Pme)=>{"use strict";var b4=Dr(),Lme=mc().overrideAll,w4=_V(),u2={error_x:b4.extendFlat({},w4),error_y:b4.extendFlat({},w4)};delete u2.error_x.copy_zstyle;delete u2.error_y.copy_zstyle;delete u2.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;Pme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:u2,bar:u2,histogram:u2,scatter3d:Lme(T4,"calc","nested"),scattergl:Lme(u2,"calc","nested")}},supplyDefaults:yme(),calc:Tme(),makeComputeError:xV(),plot:Mme(),style:Cme(),hoverInfo:qyt};function qyt(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 Dme=ye((Glr,Rme)=>{"use strict";Rme.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 Ume=ye((Hlr,Nme)=>{"use strict";var P_=Oa(),TV=fd(),VI=Mc(),Fme=qa(),Uy=ho(),UI=yv(),U0=Dr(),Hg=U0.strTranslate,Bme=Ao().extendFlat,AV=Eg(),Gg=So(),SV=ka(),Byt=zb(),Nyt=Zl(),Uyt=pv().flipScale,Vyt=h4(),Gyt=dI(),Hyt=Rd(),MV=Dh(),zme=MV.LINE_SPACING,Ome=MV.FROM_TL,qme=MV.FROM_BR,gf=Dme().cn;function jyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(Wyt(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=Xyt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Zyt(i,n,e)}),r.exit().each(function(n){VI.autoMargin(e,n._id)}).remove(),r.order()}function Wyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Bme(E,{_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?Uyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var De=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Be*=De*U0.roundUp(me/De,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Be}Ee.domain=n?[ie+v/T.h,ie+H-v/T.h]:[ie+d/T.w,ie+H-d/T.w],Ee.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))),je=Ee.ticklabelposition,lt=Ee.title.font.size,pt=e.select("."+gf.cbaxis),Vt,ot=0,ut=0;function Wt(fr,$e){var St={propContainer:Ee,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},Qt=fr.charAt(0)==="h"?fr.slice(1):"h"+fr;e.selectAll("."+Qt+",."+Qt+"-math-group").remove(),Byt.draw(r,fr,Bme(St,$e||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var fr,$e;M==="top"&&(fr=d+T.l+re*_,$e=v+T.t+oe*(1-ie-H)+3+lt*.75),M==="bottom"&&(fr=d+T.l+re*_,$e=v+T.t+oe*(1-ie)-3-lt*.25),M==="right"&&($e=v+T.t+oe*b+3+lt*.75,fr=d+T.l+re*ie),Wt(Ee._id+"title",{attributes:{x:fr,y:$e,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var fr=Ee.position||0,$e=Ee._offset+Ee._length/2,St,Qt;if(M==="right")Qt=$e,St=T.l+re*fr+10+lt*(Ee.showticklabels?1:.5);else if(St=$e,M==="bottom"&&(Qt=T.t+oe*fr+10+(je.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="inside"&&t.ticklen||0)),M==="top"){var Gt=C.text.split("
").length;Qt=T.t+oe*fr+10-Z-zme*lt*Gt}Wt((n?"h":"v")+Ee._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+Ee._id+"tick"),side:M,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:St,y:Qt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var fr=e.select("."+gf.cbtitle),$e=fr.select("text"),St=[-l/2,l/2],Qt=fr.select(".h"+Ee._id+"title-math-group").node(),Gt=15.6;$e.node()&&(Gt=parseInt($e.node().style.fontSize,10)*zme);var _t;if(Qt?(_t=Gg.bBox(Qt),ut=_t.width,ot=_t.height,ot>Gt&&(St[1]-=(ot-Gt)/2)):$e.node()&&!$e.classed(gf.jsPlaceholder)&&(_t=Gg.bBox($e.node()),ut=_t.width,ot=_t.height),n){if(ot){if(ot+=5,M==="top")Ee.domain[1]-=ot/T.h,St[1]*=-1;else{Ee.domain[0]+=ot/T.h;var It=Nyt.lineCount($e);St[1]+=(1-It)*Gt}fr.attr("transform",Hg(St[0],St[1])),Ee.setScale()}}else ut&&(M==="right"&&(Ee.domain[0]+=(ut+lt/2)/T.w),fr.attr("transform",Hg(St[0],St[1])),Ee.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Hg(0,Math.round(T.h*(1-Ee.domain[1]))):Hg(Math.round(T.w*Ee.domain[0]),0)),pt.attr("transform",n?Hg(0,Math.round(-T.t)):Hg(Math.round(-T.l),0));var mt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(U);mt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),mt.exit().remove();var er=g.map(Ee.c2p).map(Math.round).sort(function(Br,Vr){return Br-Vr});mt.each(function(Br,Vr){var dt=[Vr===0?g[0]:(U[Vr]+U[Vr-1])/2,Vr===U.length-1?g[1]:(U[Vr]+U[Vr+1])/2].map(Ee.c2p).map(Math.round);n&&(dt[1]=U0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,er[0],er[1]));var Ge=P_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",P_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(P_.max(dt)-P_.min(dt),2));if(t._fillgradient)Gg.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=A(Br).replace("e-","");Ge.attr("fill",TV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Br){var Vr=_e,dt=Math.round(Ee.c2p(Br))+x.width/2%1;P_.select(this).attr("d","M"+(n?Vr+","+dt:dt+","+Vr)+(n?"h":"v")+Z).call(Gg.lineGroupStyle,x.width,P(Br),x.dash)}),pt.selectAll("g."+Ee._id+"tick,path").remove();var wr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Lr=Uy.calcTicks(Ee),ti=Uy.getTickSigns(Ee)[2];return Uy.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Uy.clipEnds(Ee,Lr):Lr,layer:pt,path:Uy.makeTickPath(Ee,wr,ti),transFn:Uy.makeTransTickFn(Ee)}),Uy.drawLabels(r,Ee,{vals:Lr,layer:pt,transFn:Uy.makeTransTickLabelFn(Ee),labelFns:Uy.makeLabelFns(Ee,wr)})}function Tr(){var fr,$e=Z+l/2;je.indexOf("inside")===-1&&(fr=Gg.bBox(pt.node()),$e+=n?fr.width:fr.height),Vt=ce.select("text");var St=0,Qt=n&&M==="top",Gt=!n&&M==="right",_t=0;if(Vt.node()&&!Vt.classed(gf.jsPlaceholder)){var It,mt=ce.select(".h"+Ee._id+"title-math-group").node();mt&&(n&&Ae||!n&&!Ae)?(fr=Gg.bBox(mt),St=fr.width,It=fr.height):(fr=Gg.bBox(ce.node()),St=fr.right-T.l-(n?_e:Se),It=fr.bottom-T.t-(n?Se:_e),!n&&M==="top"&&($e+=fr.height,_t=fr.height)),Gt&&(Vt.attr("transform",Hg(St/2+lt/2,0)),St*=2),$e=Math.max($e,n?St:It)}var er=(n?d:v)*2+$e+u+l/2,lr=0;!n&&C.text&&h==="bottom"&&b<=0&&(lr=er/2,er+=lr,_t+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=_t;var wr=u+l,Lr=(n?_e:Se)-wr/2-(n?d:0),ti=(n?Se:_e)-(n?N:v+_t-lr);e.select("."+gf.cbbg).attr("x",Lr).attr("y",ti).attr(n?"width":"height",Math.max(er-lr,2)).attr(n?"height":"width",Math.max(N+wr,2)).call(SV.fill,c).call(SV.stroke,t.bordercolor).style("stroke-width",u);var Br=Gt?Math.max(St-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Br).attr("y",(n?Se+v-N:_e)+(Qt?ot:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+ot:2*d+Br),2)).call(SV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Vr=n?Ce*er:0,dt=n?0:(1-Le)*er-_t;if(Vr=k?T.l-Vr:-Vr,dt=p?T.t-dt:-dt,e.attr("transform",Hg(Vr,dt)),!n&&(u||TV(c).getAlpha()&&!TV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,We=e.select("."+gf.cbbg).node(),tt=Gg.bBox(We),xt=Gg.getTranslate(e),Ie=2;Ge.each(function(di,ji){var In=0,wi=Je-1;if(ji===In||ji===wi){var On=Gg.bBox(this),qn=Gg.getTranslate(this),Fn;if(ji===wi){var ra=On.right+qn.x,la=tt.right+xt.x+Se-u-Ie+_;Fn=la-ra,Fn>0&&(Fn=0)}else if(ji===In){var Ut=On.left+qn.x,wt=tt.left+xt.x+Se+u+Ie;Fn=wt-Ut,Fn<0&&(Fn=0)}Fn&&(Je<3?this.setAttribute("transform","translate("+Fn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},ke=Ome[f],vt=qme[f],ir=Ome[h],ar=qme[h],vr=er-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*ir,xe.b=N*ar):(xe.t=xe.b=0,xe.yt=b+i*ir,xe.yb=b-i*ar),s==="pixels"?(xe.x=_,xe.l=er*ke,xe.r=er*vt):(xe.l=vr*ke,xe.r=vr*vt,xe.xl=_-o*ke,xe.xr=_+o*vt)):(a==="pixels"?(xe.x=_,xe.l=N*ke,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=_+i*ke,xe.xr=_-i*vt),s==="pixels"?(xe.y=1-b,xe.t=er*ir,xe.b=er*ar):(xe.t=vr*ir,xe.b=vr*ar,xe.yt=b-o*ir,xe.yb=b+o*ar));var ii=t.y<.5?"b":"t",pi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var $r={r:E.width-Lr-Vr,l:Lr+xe.r,b:E.height-ti-dt,t:ti+xe.b};k&&p?VI.autoMargin(r,t._id,xe):k?r._fullLayout._reservedMargin[t._id][ii]=$r[ii]:p||n?r._fullLayout._reservedMargin[t._id][pi]=$r[pi]:r._fullLayout._reservedMargin[t._id][ii]=$r[ii]}return U0.syncOrAsync([VI.previousPromises,Nt,sr,$t,VI.previousPromises,Tr],r)}function Zyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;UI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),AV(e)},moveFn:function(u,c){e.attr("transform",o+Hg(u,c)),s=UI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=UI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=UI.getCursor(s,l,t.xanchor,t.yanchor);AV(e,f)},doneFn:function(){if(AV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Fme.call("_guiRestyle",r,u,t._traceIndex):Fme.call("_guiRelayout",r,u)}}})}function Yyt(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";Vme.exports={moduleType:"component",name:"colorbar",attributes:cL(),supplyDefaults:Fq(),draw:Ume().draw,hasColorbar:kq()}});var jme=ye((Wlr,Hme)=>{"use strict";Hme.exports={moduleType:"component",name:"legend",layoutAttributes:CB(),supplyLayoutDefaults:PB(),draw:HB(),style:NB()}});var Xme=ye((Xlr,Wme)=>{"use strict";Wme.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 Yme=ye((Zlr,Zme)=>{"use strict";Zme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var kV=ye((Ylr,Qme)=>{"use strict";var Jyt=qa(),$me=Dr(),EV=$me.extendFlat,Kme=$me.extendDeep;function Jme(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 $yt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Qme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Kme([],i),s=Kme({},a,Jme(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 Qyt=Ab().EventEmitter,e1t=qa(),t1t=Dr(),eye=Oy(),r1t=kV(),i1t=YP(),n1t=KP();function a1t(e,t){var r=new Qyt,n=r1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=eye.getDelay(i._fullLayout);setTimeout(function(){var l=i1t(i),u=document.createElement("canvas");u.id=t1t.randstr(),r=n1t({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=eye.getRedrawFunc(i);return e1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}tye.exports=a1t});var aye=ye((Jlr,nye)=>{"use strict";var iye=Oy(),o1t={getDelay:iye.getDelay,getRedrawFunc:iye.getRedrawFunc,clone:kV(),toSVG:YP(),svgToImg:KP(),toImage:rye(),downloadImage:sU()};nye.exports=o1t});var sye=ye(Vy=>{"use strict";Vy.version=m6().version;bee();une();var s1t=qa(),A4=Vy.register=s1t.register,LV=Ede(),oye=Object.keys(LV);for(GI=0;GI{"use strict";lye.exports=sye()});var zm=ye((eur,vye)=>{"use strict";var Bf=pf(),cye=df().axisHoverFormat,{hovertemplateAttrs:l1t,texttemplateAttrs:u1t,templatefallbackAttrs:fye}=Ll(),dye=Tu(),c1t=ec(),hye=A_(),f1t=Pd().pattern,c2=Ao().extendFlat,PV=c1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),h1t=Bf.marker,d1t=h1t.line,v1t=c2({},d1t.width,{dflt:0}),p1t=c2({width:v1t,editType:"calc"},dye("marker.line")),g1t=c2({line:p1t,editType:"calc"},dye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:f1t,cornerradius:{valType:"any",editType:"calc"}});vye.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:cye("x"),yhoverformat:cye("y"),text:Bf.text,texttemplate:u1t({editType:"plot"},{keys:hye.eventDataKeys}),texttemplatefallback:fye({editType:"plot"}),hovertext:Bf.hovertext,hovertemplate:l1t({},{keys:hye.eventDataKeys}),hovertemplatefallback:fye(),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:c2({},PV,{}),insidetextfont:c2({},PV,{}),outsidetextfont:c2({},PV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:c2({},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:g1t,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 jI=ye((tur,pye)=>{"use strict";pye.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 WI=ye((rur,yye)=>{"use strict";var m1t=ka(),gye=pv().hasColorscale,mye=td(),y1t=Dr().coercePattern;yye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=gye(t,"marker");s&&mye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",m1t.defaultLine),gye(t,"marker.line")&&mye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),y1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=ye((iur,Aye)=>{"use strict";var _ye=Eo(),kT=Dr(),xye=ka(),_1t=qa(),x1t=oT(),b1t=Dg(),w1t=WI(),T1t=e2(),bye=zm(),XI=kT.coerceFont;function A1t(e,t,r,n){function i(u,c){return kT.coerce(e,t,bye,u,c)}var a=x1t(e,t,n,i);if(!a){t.visible=!1;return}b1t(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");Tye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),w1t(e,t,i,r,n);var s=(t.marker.line||{}).color,l=_1t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||xye.defaultLine,{axis:"y"}),l(e,t,s||xye.defaultLine,{axis:"x",inherit:"y"}),kT.coerceSelectionMarkerOpacity(t,i)}function S1t(e,t){var r,n;function i(s,l){return kT.coerce(n._input,n,bye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&_ye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Tye(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",_=d||i==="outside";if(v||_){var b=XI(n,"textfont",r.font),p=kT.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete p.color,XI(n,"insidetextfont",p),h){var T=kT.extendFlat({},b);E&&delete T.color,XI(n,"pathbar.textfont",T)}_&&XI(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")}Aye.exports={supplyDefaults:A1t,crossTraceDefaults:S1t,handleText:Tye,validateCornerradius:wye}});var IV=ye((nur,Sye)=>{"use strict";var M1t=qa(),E1t=ho(),k1t=Dr(),C1t=jI(),L1t=i0().validateCornerradius;Sye.exports=function(e,t,r){function n(_,b){return k1t.coerce(e,t,C1t,_,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=E1t.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=L1t(v)}});var S4=ye((aur,Mye)=>{"use strict";var CT=Dr();Mye.exports=function(t,r){for(var n=0;n{"use strict";var Eye=ho(),kye=zg(),Cye=pv().hasColorscale,Lye=gv(),P1t=S4(),I1t=O0();Pye.exports=function(t,r){var n=Eye.getFromId(t,r.xaxis||"x"),i=Eye.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=kye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=kye(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 R1t=Oa(),D1t=Dr();function F1t(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=R1t.select(this).select("text");D1t.setTransormAndDisplay(u,l)}})}}function z1t(e,t,r){if(r.uniformtext.mode){var n=Rye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var q1t=Eo(),B1t=fd(),Fye=Dr().isArrayOrTypedArray;f2.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};f2.coerceNumber=function(e,t,r){if(q1t(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};f2.coerceColor=function(e,t,r){return B1t(t).isValid()?t:r!==void 0?r:e.dflt};f2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};f2.getValue=function(e,t){var r;return Fye(e)?t{"use strict";var M4=Oa(),N1t=ka(),E4=So(),zye=Dr(),Oye=qa(),qye=bv().resizeText,RV=zm(),U1t=RV.textfont,V1t=RV.insidetextfont,G1t=RV.outsidetextfont,Qd=ZI();function H1t(e){var t=M4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");qye(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;Bye(a,o,e)}),Oye.getComponentMethod("errorbars","style")(t)}function Bye(e,t,r){E4.pointStyle(e.selectAll("path"),t,r),Nye(e,t,r)}function Nye(e,t,r){e.selectAll("text").each(function(n){var i=M4.select(this),a=zye.ensureUniformFontSize(r,Uye(i,n,t,r));E4.font(i,a)})}function j1t(e,t,r){var n=t[0].trace;n.selectedpoints?W1t(r,n,e):(Bye(r,n,e),Oye.getComponentMethod("errorbars","style")(r))}function W1t(e,t,r){E4.selectedPointStyle(e.selectAll("path"),t),X1t(e.selectAll("text"),t,r)}function X1t(e,t,r){e.each(function(n){var i=M4.select(this),a;if(n.selected){a=zye.ensureUniformFontSize(r,Uye(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 Uye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=jye(t,r);a=Gye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Hye(r,t.i,i));return a}function Vye(e,t,r){return DV(U1t,e.textfont,t,r)}function Gye(e,t,r,n){var i=Vye(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:N1t.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}),DV(V1t,e.insidetextfont,t,i)}function Hye(e,t,r){var n=Vye(e,t,r);return DV(G1t,e.outsidetextfont,t,n)}function DV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.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}Wye.exports={style:H1t,styleTextPoints:Nye,styleOnSelect:j1t,getInsideTextFont:Gye,getOutsideTextFont:Hye,getBarColor:jye,resizeText:qye}});var d2=ye((cur,e1e)=>{"use strict";var YI=Oa(),KI=Eo(),Dd=Dr(),Z1t=Zl(),Y1t=ka(),I_=So(),K1t=qa(),JI=ho().tickText,Xye=bv(),J1t=Xye.recordMinTextSize,$1t=Xye.clearMinTextSize,FV=V0(),LT=ZI(),Q1t=A_(),Zye=zm(),e_t=Zye.text,t_t=Zye.textposition,r_t=ip().appendArrayPointValue,Gv=Q1t.TEXTPAD;function i_t(e){return e.id}function n_t(e){if(e.ids)return i_t}function zV(e){return(e>0)-(e<0)}function Om(e,t){return e0}function o_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},$1t("bar",l));var c=Dd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=YI.select(this),d=f[0].trace,v=f[0].t,_=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;_&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=Kye(i),C=Dd.ensureSingle(h,"g","points"),M=n_t(d),g=C.selectAll("g.point").data(Dd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(A,z){var O=YI.select(this),U=a_t(A,o,s,L),G=U[0][0],Z=U[0][1],j=U[1][0],N=U[1][1],H=(L?Z-G:N-j)===0;H&&E&<.getLineWidth(d,A)&&(H=!1),H||(H=!KI(G)||!KI(Z)||!KI(j)||!KI(N)),A.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,oe;if(d.type==="waterfall"){if(!H){var _e=d[A.dir].marker;re=_e.line.width,oe=_e.color}}else re=LT.getLineWidth(d,A),oe=A.mc||d.marker.color;function Ce($e){var St=YI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?YI.round(Math.round($e)-St,2):$e}function Le($e,St,Qt){return Qt&&$e===St?$e:Math.abs($e-St)>=2?Ce($e):$e>St?Math.ceil($e):Math.floor($e)}var ge=Y1t.opacity(oe),ie=ge<1||re>.01?Ce:Le;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,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Ae($e,St){if(!$e)return 0;var Qt=Math.abs(L?N-j:Z-G),Gt=Math.abs(L?Z-G:N-j),_t=ie(Math.abs(Se(Ee,!0)-Se(0,!0))),It=A.hasB?Math.min(Qt/2,Gt/2):Math.min(Qt/2,_t),mt;if(St==="%"){var er=Math.min(50,$e);mt=Qt*(er/100)}else mt=$e;return ie(Math.max(Math.min(mt,It),0))}var Be=k||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,me,De="M"+G+","+j+"V"+N+"H"+Z+"V"+j+"Z",ce=0;if(Be&&A.s){var je=zV(A.s0)===0||zV(A.s)===zV(A.s0)?A.s1:A.s0;if(ce=ie(A.hasB?0:Math.abs(Se(Ee,!0)-Se(je,!0))),ce0?Math.sqrt(ce*(2*Be-ce)):0,Wt=lt>0?Math.max:Math.min;Pe="M"+G+","+j+"V"+(N-ot*pt)+"H"+Wt(Z-(Be-ce)*lt,G)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Z+","+(N-Be*pt-ut)+"V"+(j+Be*pt+ut)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Wt(Z-(Be-ce)*lt,G)+","+(j+ot*pt)+"Z"}else if(A.hasB)Pe="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Vt+" "+G+","+(j+Be*pt)+"V"+(N-Be*pt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+Z+","+(N-Be*pt)+"V"+(j+Be*pt)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(N-j)+ce;var Nt=me0?Math.sqrt(ce*(2*Be-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*lt)+","+j+"V"+sr(N-(Be-ce)*pt,j)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(G+Be*lt-$t)+","+N+"H"+(Z-Be*lt+$t)+"A "+Be+","+Be+" 0 0 "+Vt+" "+(Z-Nt*lt)+","+sr(N-(Be-ce)*pt,j)+"V"+j+"Z"}}else Pe=De}else Pe=De;var Tr=Yye(Dd.ensureSingle(O,"path"),l,i,a);if(Tr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-j))||H&&e._context.staticPlot?"M0,0Z":Pe).call(I_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var fr=I_.makePointStyleFns(d);I_.singlePointStyle(A,Tr,d,fr,e)}s_t(e,t,O,f,z,G,Z,j,N,Be,ce,i,a),t.layerClipId&&I_.hideOutsideRangePoint(A,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;I_.setClipUrl(h,P?null:t.layerClipId,e)});K1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function s_t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,_=e._fullLayout,b;function p(me,De,ce){var je=Dd.ensureSingle(me,"text").text(De).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(I_.font,ce).call(Z1t.convertToTspans,e);return je}var k=n[0].trace,E=k.orientation==="h",T=c_t(_,n,i,d,v);b=f_t(k,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],C=!L||x._outmost,M=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=_.font,A=FV.getBarColor(n[i],k),z=FV.getInsideTextFont(k,i,P,A),O=FV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ce>0,ie;g?M?ie=h2(N-2*u,H,_e,Ce,E)||h2(N,H-2*u,_e,Ce,E):E?ie=h2(N-(u-c),H,_e,Ce,E)||h2(N,H-2*(u-c),_e,Ce,E):ie=h2(N,H-(u-c),_e,Ce,E)||h2(N-2*(u-c),H,_e,Ce,E):ie=h2(N,H,_e,Ce,E),ge&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Le=Dd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,T,Le);var Se=re.attr("transform");if(re.attr("transform",""),oe=I_.bBox(re.node()),_e=oe.width,Ce=oe.height,re.attr("transform",Se),_e<=0||Ce<=0){re.remove();return}}var Ee=k.textangle,Ae,Be;b==="outside"?(Be=k.constraintext==="both"||k.constraintext==="outside",Ae=u_t(a,o,s,l,oe,{isHorizontal:E,constrained:Be,angle:Ee})):(Be=k.constraintext==="both"||k.constraintext==="inside",Ae=Qye(a,o,s,l,oe,{isHorizontal:E,constrained:Be,angle:Ee,anchor:U,hasB:M,r:u,overhead:c})),Ae.fontSize=Le.size,J1t(k.type==="histogram"?"bar":k.type,Ae,_),x.transform=Ae;var Pe=Yye(re,_,f,h);Dd.setTransormAndDisplay(Pe,Ae)}function h2(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 Jye(e){return e==="auto"?0:e}function $ye(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 Qye(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,_=a.hasB,b=a.r,p=a.overhead,k=i.width,E=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=Jye(l);l==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kGv){var A=l_t(e,t,r,n,M,b,p,o,_);g=A.scale,P=A.pad}else g=1,s&&(g=Math.min(1,T/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,U=(e+Gv)*v+(t-Gv)*d,G=(r+n)/2,Z=0,j=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||_)&&(x+=P);var H=o?Om(e,t):Om(r,n);o?f?(U=e+H*x,Z=-H*N):(U=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:O,targetX:U,targetY:G,anchorX:Z,anchorY:j,scale:g,rotate:C}}function l_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,_,b,p,k,E;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?(_=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*_*p))/(2*_)):l?(_=(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*_*p))/(2*_)):(_=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*_*p))/(2*_)),k=Math.min(1,k),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*k)/2)*(f-(c-i.y*k)/2)))-o):E=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:E}}function u_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 _=Jye(l),b=$ye(i,_),p=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,M=o?Om(t,e):Om(r,n);return o?(T=t-M*d,x=M*p):(L=n+M*d,C=-M*p),{textX:k,textY:E,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:v,rotate:_}}function c_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=h_t(e,t,r,n,i):a.textinfo?s=d_t(t,r,n,i):s=LT.getValue(a.text,r),LT.coerceString(e_t,s)}function f_t(e,t){var r=LT.getValue(e.textposition,t);return LT.coerceEnumerated(t_t,r)}function h_t(e,t,r,n,i){var a=t[0].trace,o=Dd.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 _(x){return JI(h,h.c2l(x),!0).text}function b(x){return JI(v,v.c2l(x),!0).text}var p=t[r],k={};k.label=p.p,k.labelLabel=k[f+"Label"]=_(p.p);var E=Dd.castOption(a,p.i,"text");(E===0||E)&&(k.text=E),k.value=p.s,k.valueLabel=k[d+"Label"]=b(p.s);var T={};r_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=Dd.formatPercent(p.begR),k.percentPrevious=p.difR,k.percentPreviousLabel=Dd.formatPercent(p.difR),k.percentTotal=p.sumR,k.percenTotalLabel=Dd.formatPercent(p.sumR));var L=Dd.castOption(a,p.i,"customdata");return L&&(k.customdata=L),Dd.texttemplateString({data:[T,k,a._meta],fallback:a.texttemplatefallback,labels:k,locale:e._d3locale,template:o})}function d_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 JI(x,L,!0).text}function u(L){var x=a?r:n;return JI(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(l(e[t].p)),_("text")&&(v=Dd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,k=p-b;_("initial")&&d.push(u(k)),_("delta")&&d.push(u(b)),_("final")&&d.push(u(p))}if(s){_("value")&&d.push(u(f.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var T=E>1;_("percent initial")&&(v=Dd.formatPercent(f.begR),T&&(v+=" of initial"),d.push(v)),_("percent previous")&&(v=Dd.formatPercent(f.difR),T&&(v+=" of previous"),d.push(v)),_("percent total")&&(v=Dd.formatPercent(f.sumR),T&&(v+=" of total"),d.push(v))}return d.join("
")}e1e.exports={plot:o_t,toMoveInsideBar:Qye}});var PT=ye((fur,n1e)=>{"use strict";var k4=vf(),v_t=qa(),t1e=ka(),p_t=Dr().fillText,g_t=ZI().getLineWidth,OV=ho().hoverLabelText,m_t=fs().BADNUM;function y_t(e,t,r,n,i){var a=r1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=i1e(s,l),v_t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function r1e(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,_,b,p,k;o.orientation==="h"?(h=r,d=t,v="y",_="x",b=G,p=z):(h=t,d=r,v="x",_="y",p=G,b=z);var E=o[v+"period"],T=l||E;function L(ie){return C(ie,-1)}function x(ie){return C(ie,1)}function C(ie,Se){var Ee=ie.w;return ie[v]+Se*Ee/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?x:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(x(ie),ie.p+s.bardelta/2)};function A(ie,Se,Ee){return i.finiteRange&&(Ee=0),k4.inbox(ie-h,Se-h,Ee+Math.min(1,Math.abs(Se-ie)/k)-1)}function z(ie){return A(g(ie),P(ie),c)}function O(ie){return A(L(ie),x(ie),f)}function U(ie){var Se=ie[_];if(u){var Ee=Math.abs(ie.rawS)||0;d>0?Se+=Ee:d<0&&(Se-=Ee)}return Se}function G(ie){var Se=d,Ee=ie.b,Ae=U(ie);return k4.inbox(Ee-Se,Ae-Se,c+(Ae-Se)/(Ae-Ee)-1)}function Z(ie){var Se=d,Ee=ie.b,Ae=U(ie);return k4.inbox(Ee-Se,Ae-Se,f+(Ae-Se)/(Ae-Ee)-1)}var j=e[v+"a"],N=e[_+"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=k4.getDistanceFunction(n,b,p,H);if(k4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==m_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 oe=e.index,_e=a[oe],Ce=o.base?_e.b+_e.s:_e.s;e[_+"0"]=e[_+"1"]=N.c2p(_e[_],!0),e[_+"LabelVal"]=Ce;var Le=s.extents[s.extents.round(_e.p)];e[v+"0"]=j.c2p(l?g(_e):Le[0],!0),e[v+"1"]=j.c2p(l?P(_e):Le[1],!0);var ge=_e.orig_p!==void 0;return e[v+"LabelVal"]=ge?_e.orig_p:_e.p,e.labelLabel=OV(j,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=OV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=OV(N,_e.b,o[_+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=j.c2p(_e.p,!0),p_t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function i1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=g_t(e,t);if(t1e.opacity(r))return r;if(t1e.opacity(n)&&i)return n}n1e.exports={hoverPoints:y_t,hoverOnBars:r1e,getTraceColor:i1e}});var o1e=ye((hur,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 IT=ye((dur,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",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";l1e.exports={attributes:zm(),layoutAttributes:jI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:IV(),calc:Iye(),crossTraceCalc:t2().crossTraceCalc,colorbar:$d(),arraysToCalcdata:S4(),plot:d2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:PT().hoverPoints,eventData:o1e(),selectPoints:IT(),moduleType:"trace",name:"bar",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var f1e=ye((pur,c1e)=>{"use strict";c1e.exports=u1e()});var C4=ye((gur,p1e)=>{"use strict";var x_t=Pg(),G0=pf(),h1e=zm(),b_t=Ih(),d1e=df().axisHoverFormat,{hovertemplateAttrs:w_t,templatefallbackAttrs:T_t}=Ll(),Gy=Ao().extendFlat,RT=G0.marker,v1e=RT.line;p1e.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:d1e("x"),yhoverformat:d1e("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({},RT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gy({},RT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gy({},RT.angle,{arrayOk:!1,editType:"calc"}),size:Gy({},RT.size,{arrayOk:!1,editType:"calc"}),color:Gy({},RT.color,{arrayOk:!1,editType:"style"}),line:{color:Gy({},v1e.color,{arrayOk:!1,dflt:b_t.defaultLine,editType:"style"}),width:Gy({},v1e.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:x_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:h1e.offsetgroup,alignmentgroup:h1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gy({},G0.text,{}),hovertext:Gy({},G0.hovertext,{}),hovertemplate:w_t({}),hovertemplatefallback:T_t(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var L4=ye((mur,g1e)=>{"use strict";g1e.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((yur,x1e)=>{"use strict";var H0=Dr(),A_t=qa(),S_t=ka(),M_t=Dg(),E_t=e2(),m1e=V3(),P4=C4();function k_t(e,t,r,n){function i(v,_){return H0.coerce(e,t,P4,v,_)}if(y1e(e,t,i,n),t.visible!==!1){M_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",S_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"),_1e(e,t,i,{prefix:"box"}),i("zorder")}}function y1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}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))}var h=i(o),d=i(s),v=h&&H0.minRowLength(o),_=d&&H0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},k,E;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",E=l;break;case"10":k="v",E=Math.min(l,_);break;case"20":k="h",E=Math.min(l,s.length);break;case"01":k="h",E=Math.min(l,v);break;case"02":k="v",E=Math.min(l,o.length);break;case"12":k="v",E=Math.min(l,_,o.length);break;case"21":k="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var x=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(_,v):E=Math.min(v)):d>0?(k="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",k);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=A_t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function _1e(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 C_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 L_t=qa(),P_t=Dr(),I_t=L4();function b1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var BV=Eo(),QI=ho(),D_t=zg(),yh=Dr(),n0=fs().BADNUM,Hy=yh._;P1e.exports=function(t,r){var n=t._fullLayout,i=QI.getFromId(t,r.xaxis||"x"),a=QI.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 _=F_t(r,d,h,n[s]),b=_[0],p=_[1],k=yh.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,x,C,M,g,P,A=(r.boxpoints||r.points)==="all"?yh.identity:function(Vt){return Vt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Vt){return c.d2c((r[Vt]||[])[l])},U=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var j=O("lowerfence");L.lf=j!==n0&&j<=L.q1?j:M1e(L,C,M);var N=O("upperfence");L.uf=N!==n0&&N>=L.q3?N:E1e(L,C,M);var H=O("mean");L.mean=H!==n0?H:M?yh.mean(C,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=H!==n0&&re>=0?re:M?yh.stdev(C,M,L.mean):L.q3-L.q1,L.lo=k1e(L),L.uo=C1e(L);var oe=O("notchspan");oe=oe!==n0&&oe>0?oe:L1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Ce=L.uf;r.boxpoints&&C.length&&(_e=Math.min(_e,C[0]),Ce=Math.max(Ce,C[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Ce=Math.max(Ce,L.un)),L.min=_e,L.max=Ce}else{yh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Le;L.med!==n0?Le=L.med:L.q1!==n0?L.q3!==n0?Le=(L.q1+L.q3)/2:Le=L.q1:L.q3!==n0?Le=L.q3:Le=0,L.med=Le,L.q1=L.q3=Le,L.lf=L.uf=Le,L.mean=L.sd=Le,L.ln=L.un=Le,L.min=L.max=Le}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(A),o.push(L)}}r._extremes[c._id]=QI.findExtremes(c,[U,G],{padded:!0})}else{var ge=c.makeCalcdata(r,f),ie=z_t(E,T),Se=E.length,Ee=O_t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],x=L.pts=Ee[l].sort(A1e),C=L[f]=x.map(S1e),M=C.length,L.min=C[0],L.max=C[M-1],L.mean=yh.mean(C,M),L.sd=yh.stdev(C,M,L.mean)*r.sdmultiple,L.med=yh.interp(C,.5),M%2&&(De||ce)){var je,lt;De?(je=C.slice(0,M/2),lt=C.slice(M/2+1)):ce&&(je=C.slice(0,M/2+1),lt=C.slice(M/2)),L.q1=yh.interp(je,.5),L.q3=yh.interp(lt,.5)}else L.q1=yh.interp(C,.25),L.q3=yh.interp(C,.75);L.lf=M1e(L,C,M),L.uf=E1e(L,C,M),L.lo=k1e(L),L.uo=C1e(L);var pt=L1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,Be=Math.min(Be,L.ln),Pe=Math.max(Pe,L.un),L.pts2=x.filter(A),o.push(L)}r.notched&&yh.isTypedArray(ge)&&(ge=Array.from(ge)),r._extremes[c._id]=QI.findExtremes(c,r.notched?ge.concat([Be,Pe]):ge,{padded:!0})}return q_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 F_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=D_t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||BV(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 I1e=ho(),B_t=Dr(),N_t=Kb().getAxisGroup,R1e=["v","h"];function U_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(C==="positive"?(N=M*(x?1:.5),oe=re,H=oe=P):C==="negative"?(N=oe=P,H=M*(x?1:.5),_e=re):(N=H=M,oe=_e=re),Ee){var Ae=T.pointpos,Be=T.jitter,Pe=T.marker.size/2,me=0;Ae+Be>=0&&(me=re*(Ae+Be),me>N?(Se=!0,ge=Pe,Ce=me):me>oe&&(ge=Pe,Ce=N)),me<=N&&(Ce=N);var De=0;Ae-Be<=0&&(De=-re*(Ae-Be),De>H?(Se=!0,ie=Pe,Le=De):De>_e&&(ie=Pe,Le=H)),De<=H&&(Le=H)}else Ce=N,Le=H;var ce=new Array(c.length);for(u=0;u{"use strict";var DT=Oa(),v2=Dr(),V_t=So(),z1e=5,G_t=.01;function H_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;v2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=DT.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),O1e(l,{pos:h,val:d},f,c,i),q1e(l,{x:a,y:o},f,c),B1e(l,{pos:h,val:d},f,c)})}function O1e(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,_=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?v2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return DT.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+u,!0),L=s.l2p(T-b)+f,x=s.l2p(T+p)+f,C=l?(L+x)/2:s.l2p(T)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*C:s.l2p(T-c)+f,P=l?x*M+(1-M)*C:s.l2p(T+c)+f,A=s.l2p(T-b*_)+f,z=s.l2p(T+p*_)+f,O=r.sizemode==="sd",U=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=v2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),j=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(j?E.min:E.lf,!0),H=o.c2p(j?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?DT.select(this).attr("d","M"+Z+","+A+"V"+z+"M"+U+","+L+"V"+x+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+x:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+H+(h===0?"":"M"+N+","+g+"V"+P+"M"+H+","+g+"V"+P):"")):DT.select(this).attr("d","M"+A+","+Z+"H"+z+"M"+L+","+U+"H"+x+(v?"V"+re+"L"+z+","+Z+"L"+x+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+A+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+H+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+H+"H"+P):""))})}function q1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;v2.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,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,p=_*G_t,k=[],E=0,T;if(r.jitter){if(_===0)for(E=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(V_t.translatePoints,i,a)}function B1e(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?v2.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),_=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(_+b)/2:a.l2p(v)+l,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?DT.select(this).attr("d","M"+k+","+_+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+k+","+_+"L"+T+","+p+"Z":"")):DT.select(this).attr("d","M"+_+","+k+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+_+","+k+"L"+p+","+T+"Z":""))})}N1e.exports={plot:H_t,plotBoxAndWhiskers:O1e,plotPoints:q1e,plotBoxMean:B1e}});var r8=ye((Tur,U1e)=>{"use strict";var UV=Oa(),VV=ka(),GV=So();function j_t(e,t,r){var n=r||UV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=UV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(VV.stroke,d).call(VV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=UV.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(VV.stroke,o.line.color);var c=a.selectAll("path.point");GV.pointStyle(c,o,e)}})}function W_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?GV.selectedPointStyle(i,n):GV.pointStyle(i,n,e)}U1e.exports={style:j_t,styleOnSelect:W_t}});var jV=ye((Aur,j1e)=>{"use strict";var X_t=ho(),HV=Dr(),R_=vf(),V1e=ka(),Z_t=HV.fillText;function Y_t(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(G1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=H1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function G1e(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,_,b,p,k,E,T,L=l.bdPos,x,C,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(_)};u&&s.side!=="both"?(s.side==="positive"&&(k=function(Pe){var me=g(Pe);return R_.inbox(me,me+M,E)},x=L,C=0),s.side==="negative"&&(k=function(Pe){var me=g(Pe);return R_.inbox(me-M,me,E)},x=0,C=L)):(k=function(Pe){var me=g(Pe);return R_.inbox(me-M,me+M,E)},x=C=L);var P;u?P=function(Pe){return R_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return R_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,_=r,b=P,p=k,c="y",h=o,f="x",d=a):(v=r,_=t,b=k,p=P,c="x",h=a,f="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function z(Pe){return(b(Pe)+p(Pe))/2}var O=R_.getDistanceFunction(n,b,p,z);if(R_.getClosest(i,O,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,Z=(s.marker||{}).color;V1e.opacity(G)&&s.line.width?e.color=G:V1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(U.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(U.pos+l.bPos+x,!0),e[c+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var j=c+"Spike";e.spikeDistance=z(U)*T/E,e[j]=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"],oe=d.range[1]{"use strict";W1e.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 WV=ye((Mur,Z1e)=>{"use strict";Z1e.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";Y1e.exports={attributes:C4(),layoutAttributes:L4(),supplyDefaults:I4().supplyDefaults,crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:$I().supplyLayoutDefaults,calc:NV(),crossTraceCalc:e8().crossTraceCalc,plot:t8().plot,style:r8().style,styleOnSelect:r8().styleOnSelect,hoverPoints:jV().hoverPoints,eventData:X1e(),selectPoints:WV(),moduleType:"trace",name:"box",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var $1e=ye((kur,J1e)=>{"use strict";J1e.exports=K1e()});var FT=ye((Cur,e_e)=>{"use strict";var K_t=Tu(),{extendFlat:Pp}=Ao(),J_t=Gl(),{axisHoverFormat:XV}=df(),$_t=ec(),{hovertemplateAttrs:Q_t,templatefallbackAttrs:Q1e,texttemplateAttrs:ext}=Ll(),a0=pf();e_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:XV("x"),yhoverformat:XV("y"),zhoverformat:XV("z",1),hovertemplate:Q_t(),hovertemplatefallback:Q1e(),texttemplate:ext({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:Q1e({editType:"plot"}),textfont:$_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},J_t.showlegend,{dflt:!1}),zorder:a0.zorder},K_t("",{cLetter:"z",autoColorDflt:!1}))});var n8=ye((Lur,r_e)=>{"use strict";var txt=Eo(),i8=Dr(),rxt=qa();r_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(i8.isArray1D(s)){l=n(a),u=n(o);var c=i8.minRowLength(l),f=i8.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=t_e(a,n),u=t_e(o,n),!ixt(s))return 0;n("transpose"),r._length=null}var h=rxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function t_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 ixt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var i_e=Dr();n_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=i_e.extendFlat({},r.font,{color:"auto",size:"auto"});i_e.coerceFont(t,"textfont",n)}});var ZV=ye((Iur,a_e)=>{"use strict";a_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var l_e=ye((Rur,s_e)=>{"use strict";var o_e=Dr(),nxt=n8(),axt=R4(),oxt=Dg(),sxt=ZV(),lxt=td(),uxt=FT();s_e.exports=function(t,r,n,i){function a(s,l){return o_e.coerce(t,r,uxt,s,l)}var o=nxt(t,r,a,i);if(!o){r.visible=!1;return}oxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),axt(a,i),sxt(t,r,a,i),a("hoverongaps"),a("connectgaps",o_e.isArray1D(r.z)&&r.zsmooth!==!1),lxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var YV=ye((Dur,u_e)=>{"use strict";var zT=Eo();u_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return zT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return zT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(zT(i))if(i=Number(i),zT(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(zT(i))if(i=Number(i),zT(r[e])){if(r[e]{"use strict";c_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";f_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var OT=fs(),p2=OT.ONEAVGYEAR,h_e=OT.ONEAVGMONTH,o8=OT.ONEDAY,d_e=OT.ONEHOUR,v_e=OT.ONEMIN,p_e=OT.ONESEC,g_e=ho().tickIncrement;__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(a8(u+s,u+l,i,a),a8(c+s,c+l,i,a)),h=Math.min(a8(u+o,u+s,i,a),a8(c+o,c+s,i,a)),d,v;if(f>h&&ho8){var _=d===p2?1:6,b=d===p2?"M12":"M1";return function(p,k){var E=i.c2d(p,p2,a),T=E.indexOf("-",_);T>0&&(E=E.slice(0,T));var L=i.d2c(E,0,a);if(Lp_e?e>o8?e>p2*1.1?p2:e>h_e*1.1?h_e:o8:e>d_e?d_e:e>v_e?v_e:p_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function cxt(e,t,r,n,i,a){if(n&&e>o8){var o=y_e(t,i,a),s=y_e(r,i,a),l=e===p2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function y_e(e,t,r){var n=t.c2d(e,p2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var tG=ye((qur,A_e)=>{"use strict";var QV=Eo(),Hv=Dr(),x_e=qa(),j0=ho(),{hasColorscale:b_e}=pv(),w_e=gv(),fxt=S4(),T_e=YV(),hxt=KV(),dxt=JV(),vxt=$V();function pxt(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=eG(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",_=[],b=v?_:h,p=[],k=[],E=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,M,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=x==="max"||x==="min",z=A?null:0,O=T_e.count,U=hxt[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",O=T_e[x]),c=Z(h.start),g=Z(h.end)+(c-j0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){Be=c;break}for(c=Ae;c<=Be;c++)if(QV(r[c])&&QV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(_[c]),Pe.ph1=ie(_[c+1],!0))),Ee.push(Pe)}return Ee.length===1&&(Ee[0].width1=j0.tickIncrement(Ee[0].p,h.size,!1,l)-Ee[0].p),b_e(t,"marker")&&w_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),b_e(t,"marker.line")&&w_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),fxt(Ee,t),Hv.isArrayOrTypedArray(t.selectedpoints)&&Hv.tagSelected(Ee,t,Le),Ee}function eG(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,_,b,p=function(ge){return r.r2c(ge,0,d)},k=function(ge){return r.c2r(ge,0,d)},E=r.type==="date"?function(ge){return ge||ge===0?Hv.cleanDate(ge,null,d):null}:function(ge){return QV(ge)?Number(ge):null};function T(ge,ie,Se){ie[ge+"Found"]?(ie[ge]=E(ie[ge]),ie[ge]===null&&(ie[ge]=Se[ge])):(_[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,M=!1;for(c=0;cr.r2l(j)&&(H=j0.tickIncrement(H,l.size,!0,d)),O.start=r.l2r(H),Z||Hv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Ce=_e?oe:Hv.aggNums(Math.max,null,v);O.end=r.l2r(Ce),_e||Hv.nestedProperty(t,a+".start").set(O.end)}var Le="autobin"+n;return t._input[Le]===!1&&(t._input[a]=Hv.extendFlat({},t[a]||{}),delete t._input[Le],delete t[Le]),[O,v]}function gxt(e,t,r,n,i){var a=e._fullLayout,o=mxt(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())}}A_e.exports={calc:pxt,calcAllAutoBins:eG}});var I_e=ye((Bur,P_e)=>{"use strict";var S_e=Dr(),qT=ho(),M_e=YV(),_xt=KV(),xxt=JV(),bxt=$V(),E_e=tG().calcAllAutoBins;P_e.exports=function(t,r){var n=qT.getFromId(t,r.xaxis),i=qT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(It){return n.r2c(It,0,a)},l=function(It){return i.r2c(It,0,o)},u=function(It){return n.c2r(It,0,a)},c=function(It){return i.c2r(It,0,o)},f,h,d,v,_=E_e(t,r,n,"x"),b=_[0],p=_[1],k=E_e(t,r,i,"y"),E=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=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",A=[],z=[],O=g?A:b,U=P?z:E,G=0,Z=[],j=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,oe=H==="max"||H==="min",_e=oe?null:0,Ce=M_e.count,Le=_xt[N],ge=!1,ie=[],Se=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&H!=="count"&&(ge=H==="avg",Ce=M_e[H]);var Ae=b.size,Be=s(b.start),Pe=s(b.end)+(Be-qT.tickIncrement(Be,Ae,!1,a))/1e6;for(f=Be;f=0&&d=0&&v{"use strict";var qm=Dr(),R_e=fs().BADNUM,D_e=zg();F_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=D_e(t,r,i,l).vals,u=D_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&qm.isArray1D(c),h=t.hovertext,d=h!==void 0&&qm.isArray1D(h),v,_,b=qm.distinctVals(l),p=b.vals,k=qm.distinctVals(u),E=k.vals,T=[],L,x,C=E.length,M=p.length;for(v=0;v{"use strict";var wxt=Eo(),Txt=Dr(),l8=fs().BADNUM;z_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(wxt(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var Axt=Dr(),O_e=.01,Sxt=[[-1,0],[1,0],[0,-1],[0,1]];function Mxt(e){return .5-.25*Math.min(1,e*.5)}B_e.exports=function(t,r){var n=1,i;for(q_e(t,r),i=0;iO_e;i++)n=q_e(t,r,Mxt(n));return n>O_e&&Axt.log("interp2d didn't converge quickly",n),t};function q_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-_))))}return n}});var f8=ye((Gur,N_e)=>{"use strict";var Ext=Dr().maxRowLength;N_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=Ext(t),u,c,f,h,d,v,_,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&&(_[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(p,k){return k[2]-p[2]})}});var rG=ye((Hur,G_e)=>{"use strict";var U_e=qa(),V_e=Dr().isArrayOrTypedArray;G_e.exports=function(t,r,n,i,a,o){var s=[],l=U_e.traceIs(t,"contour"),u=U_e.traceIs(t,"histogram"),c,f,h,d=V_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 H_e=qa(),iG=Dr(),h8=ho(),j_e=zg(),kxt=I_e(),Cxt=gv(),Lxt=s8(),Pxt=u8(),Ixt=c8(),Rxt=f8(),d8=rG(),nG=fs().BADNUM;X_e.exports=function(t,r){var n=h8.getFromId(t,r.xaxis||"x"),i=h8.getFromId(t,r.yaxis||"y"),a=H_e.traceIs(r,"contour"),o=H_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,_,b,p,k;if(n._minDtick=0,i._minDtick=0,o)k=kxt(t,r),f=k.orig_x,l=k.x,u=k.x0,c=k.dx,_=k.orig_y,h=k.y,d=k.y0,v=k.dy,b=k.z;else{var E=r.z;iG.isArray1D(E)?(Lxt(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],l=j_e(r,n,"x",f).vals,h=j_e(r,i,"y",_).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=Pxt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Dxt(l,h,b),o||(l=W_e(l),h=W_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Rxt(b),Ixt(b,r._emptypoints));function T(O){s=r._input.zsmooth=r.zsmooth=!1,iG.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var U=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(U/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=iG.maxRowLength(b),C=r.xtype==="scaled"?"":l,M=d8(r,C,u,c,x,n),g=r.ytype==="scaled"?"":h,P=d8(r,g,d,v,b.length,i);r._extremes[n._id]=h8.findExtremes(n,M),r._extremes[i._id]=h8.findExtremes(i,P);var A={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(A.orig_x=f),r.yperiodalignment&&_&&(A.orig_y=_),C&&C.length===M.length-1&&(A.xCenter=C),g&&g.length===P.length-1&&(A.yCenter=g),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||Cxt(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};A.xfill=d8(z,C,u,c,x,n),A.yfill=d8(z,g,d,v,b.length,i)}return[A]};function W_e(e){for(var t=[],r=e.length,n=0;n{"use strict";p8.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"]];p8.STYLE=p8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var oG=ye((Xur,Y_e)=>{"use strict";var Z_e=g8(),Fxt=So(),aG=Dr(),BT=null;function zxt(){if(BT!==null)return BT;BT=!1;var e=aG.isSafari()||aG.isMacWKWebView()||aG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(Z_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")BT=t.some(function(o){return r.apply(null,o)});else{var n=Fxt.tester.append("image").attr("style",Z_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;BT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return BT}Y_e.exports=zxt});var m8=ye((Zur,nxe)=>{"use strict";var K_e=Oa(),Oxt=fd(),qxt=qa(),Bxt=So(),Nxt=ho(),W0=Dr(),J_e=Zl(),Uxt=lI(),Vxt=ka(),Gxt=tc().extractOpts,Hxt=tc().makeColorScaleFuncFromTrace,jxt=Wp(),Wxt=Dh(),sG=Wxt.LINE_SPACING,Xxt=oG(),Zxt=g8().STYLE,rxe="heatmap-label";function ixe(e){return e.selectAll("g."+rxe)}function $_e(e){ixe(e).remove()}nxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=K_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,_=l.xCenter,b=l.yCenter,p=qxt.traceIs(u,"contour"),k=p?"best":u.zsmooth,E=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,M,g,P,A,z,O,U;for(z=0;C===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)A=a.c2p(v[z]),z--;A=i._length||M<=0||P>=a._length||A<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),$_e(s);return}var oe,_e;G==="fast"?(oe=T,_e=E):(oe=j,_e=N);var Ce=document.createElement("canvas");Ce.width=oe,Ce.height=_e;var Le=Ce.getContext("2d",{willReadFrequently:!0}),ge=Hxt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(fn){return T-1-fn}:W0.identity,Se=x?function(fn){return E-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 Ee=Se(0),Ae=[Ee,Ee],Be=L?0:1,Pe=x?0:1,me=0,De=0,ce=0,je=0,lt,pt,Vt,ot,ut;function Wt(fn,yn){if(fn!==void 0){var Sn=ge(fn);return Sn[0]=Math.round(Sn[0]),Sn[1]=Math.round(Sn[1]),Sn[2]=Math.round(Sn[2]),me+=yn,De+=Sn[0]*yn,ce+=Sn[1]*yn,je+=Sn[2]*yn,Sn}return[0,0,0,0]}function Nt(fn,yn,Sn,Ba){var ua=fn[Sn.bin0];if(ua===void 0)return Wt(void 0,1);var ma=fn[Sn.bin1],Wa=yn[Sn.bin0],Fa=yn[Sn.bin1],Xo=ma-ua||0,da=Wa-ua||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-ua):Wn=(2*Fa-Wa-ua)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*ua-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-ua)*2/3:Wn=Fa+ua-ma-Wa,Wt(ua+Sn.frac*Xo+Ba.frac*(da+Sn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(fn){sr=new Array(oe*_e*4)}if(G==="smooth"){var Tr=_||d,fr=b||v,$e=new Array(Tr.length),St=new Array(fr.length),Qt=new Array(j),Gt=_?exe:Q_e,_t=b?exe:Q_e,It,mt,er;for(z=0;zvr||vr>a._length))for(O=ke;Opi||pi>i._length)){var $r=Uxt({x:ii,y:ar},u,e._fullLayout);$r.x=ii,$r.y=ar;var di=l.z[z][O];di===void 0?($r.z="",$r.zLabel=""):($r.z=di,$r.zLabel=Nxt.tickText(We,di,"hover").text);var ji=l.text&&l.text[z]&&l.text[z][O];(ji===void 0||ji===!1)&&(ji=""),$r.text=ji;var In=W0.texttemplateString({data:[$r,u._meta],fallback:u.texttemplatefallback,labels:$r,locale:e._fullLayout._d3locale,template:Ge});if(In){var wi=In.split("
"),On=wi.length,qn=0;for(U=0;U{"use strict";axe.exports={min:"zmin",max:"zmax"}});var y8=ye((Kur,oxe)=>{"use strict";var Yxt=Oa();oxe.exports=function(t){Yxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var x8=ye((Jur,lxe)=>{"use strict";var sxe=vf(),D4=Dr(),_8=D4.isArrayOrTypedArray,Kxt=ho(),Jxt=tc().extractOpts;lxe.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,_=s.yCenter,b=s.zmask,p=l.zhoverformat,k=f,E=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){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(sxe.inbox(r-f[0],r-f[f.length-1],0)>0||sxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(k=[2*f[0]-f[1]],M=1;M{"use strict";uxe.exports={attributes:FT(),supplyDefaults:l_e(),calc:v8(),plot:m8(),colorbar:D_(),style:y8(),hoverPoints:x8(),moduleType:"trace",name:"heatmap",basePlotModule:mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var hxe=ye((Qur,fxe)=>{"use strict";fxe.exports=cxe()});var lG=ye((ecr,dxe)=>{"use strict";dxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var pxe=ye((tcr,vxe)=>{"use strict";vxe.exports={eventDataKeys:["binNumber"]}});var b8=ye((rcr,_xe)=>{"use strict";var Ip=zm(),gxe=df().axisHoverFormat,{hovertemplateAttrs:$xt,texttemplateAttrs:Qxt,templatefallbackAttrs:mxe}=Ll(),uG=ec(),yxe=lG(),ebt=pxe(),cG=Ao().extendFlat;_xe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:gxe("x"),yhoverformat:gxe("y"),text:cG({},Ip.text,{}),hovertext:cG({},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:yxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:yxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:$xt({},{keys:ebt.eventDataKeys}),hovertemplatefallback:mxe(),texttemplate:Qxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:mxe({editType:"plot"}),textposition:cG({},Ip.textposition,{arrayOk:!1}),textfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:uG({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 Txe=ye((icr,wxe)=>{"use strict";var xxe=qa(),F4=Dr(),bxe=ka(),tbt=i0().handleText,rbt=WI(),ibt=b8();wxe.exports=function(t,r,n,i){function a(k,E){return F4.coerce(t,r,ibt,k,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");tbt(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=xxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+f),rbt(t,r,a,n,i),F4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=xxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||bxe.defaultLine,{axis:"y"}),p(t,r,b||bxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var T8=ye((ncr,Mxe)=>{"use strict";var z4=Dr(),nbt=hf(),w8=qa().traceIs,abt=e2(),obt=i0().validateCornerradius,Axe=z4.nestedProperty,fG=Kb().getAxisGroup,Sxe=[{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"}],sbt=["x","y"];Mxe.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 _(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var j=nbt.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"]||"",oe=n[Z],_e=!0;oe&&(H===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(j)):(Z=N,H!==oe.axType&&z4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&z4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.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 lbt=PT().hoverPoints,ubt=ho().hoverLabelText;Exe.exports=function(t,r,n,i,a){var o=lbt(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"]=ubt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var hG=ye((ocr,Cxe)=>{"use strict";Cxe.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";Lxe.exports={attributes:b8(),layoutAttributes:jI(),supplyDefaults:Txe(),crossTraceDefaults:T8(),supplyLayoutDefaults:IV(),calc:tG().calc,crossTraceCalc:t2().crossTraceCalc,plot:d2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:$d(),hoverPoints:kxe(),selectPoints:IT(),eventData:hG(),moduleType:"trace",name:"histogram",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Rxe=ye((lcr,Ixe)=>{"use strict";Ixe.exports=Pxe()});var S8=ye((ucr,zxe)=>{"use strict";var jg=b8(),Dxe=lG(),A8=FT(),cbt=Gl(),dG=df().axisHoverFormat,{hovertemplateAttrs:fbt,texttemplateAttrs:hbt,templatefallbackAttrs:Fxe}=Ll(),dbt=Tu(),O4=Ao().extendFlat;zxe.exports=O4({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:Dxe("x"),nbinsy:jg.nbinsy,ybins:Dxe("y"),autobinx:jg.autobinx,autobiny:jg.autobiny,bingroup:O4({},jg.bingroup,{}),xbingroup:O4({},jg.bingroup,{}),ybingroup:O4({},jg.bingroup,{}),xgap:A8.xgap,ygap:A8.ygap,zsmooth:A8.zsmooth,xhoverformat:dG("x"),yhoverformat:dG("y"),zhoverformat:dG("z",1),hovertemplate:fbt({},{keys:["z"]}),hovertemplatefallback:Fxe(),texttemplate:hbt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Fxe({editType:"plot"}),textfont:A8.textfont,showlegend:O4({},cbt.showlegend,{dflt:!1})},dbt("",{cLetter:"z",autoColorDflt:!1}))});var vG=ye((ccr,qxe)=>{"use strict";var vbt=qa(),Oxe=Dr();qxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Oxe.minRowLength(a),l=Oxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=vbt.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 Nxe=ye((fcr,Bxe)=>{"use strict";var pbt=Dr(),gbt=vG(),mbt=ZV(),ybt=td(),_bt=R4(),xbt=S8();Bxe.exports=function(t,r,n,i){function a(o,s){return pbt.coerce(t,r,xbt,o,s)}gbt(t,r,a,i),r.visible!==!1&&(mbt(t,r,a,i),ybt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),_bt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Gxe=ye((hcr,Vxe)=>{"use strict";var bbt=x8(),Uxe=ho().hoverLabelText;Vxe.exports=function(t,r,n,i,a){var o=bbt(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=Uxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Uxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var jxe=ye((dcr,Hxe)=>{"use strict";Hxe.exports={attributes:S8(),supplyDefaults:Nxe(),crossTraceDefaults:T8(),calc:v8(),plot:m8(),layerName:"heatmaplayer",colorbar:D_(),style:y8(),hoverPoints:Gxe(),eventData:hG(),moduleType:"trace",name:"histogram2d",basePlotModule:mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Xxe=ye((vcr,Wxe)=>{"use strict";Wxe.exports=jxe()});var M8=ye((pcr,Zxe)=>{"use strict";Zxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var q4=ye((gcr,$xe)=>{"use strict";var _h=FT(),E8=pf(),Kxe=df(),pG=Kxe.axisHoverFormat,wbt=Kxe.descriptionOnlyNumbers,Tbt=Tu(),Abt=Pd().dash,Sbt=ec(),NT=Ao().extendFlat,Jxe=M8(),Mbt=Jxe.COMPARISON_OPS2,Ebt=Jxe.INTERVAL_OPS,Yxe=E8.line;$xe.exports=NT({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:E8.xperiod0,yperiod0:E8.yperiod0,xperiodalignment:_h.xperiodalignment,yperiodalignment:_h.yperiodalignment,text:_h.text,hovertext:_h.hovertext,transpose:_h.transpose,xtype:_h.xtype,ytype:_h.ytype,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:_h.hovertemplate,hovertemplatefallback:_h.hovertemplatefallback,texttemplate:NT({},_h.texttemplate,{}),texttemplatefallback:_h.texttemplatefallback,textfont:NT({},_h.textfont,{}),hoverongaps:_h.hoverongaps,connectgaps:NT({},_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:Sbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:wbt("contour label")},operation:{valType:"enumerated",values:[].concat(Mbt).concat(Ebt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:NT({},Yxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Abt,smoothing:NT({},Yxe.smoothing,{}),editType:"plot"},zorder:E8.zorder},Tbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var mG=ye((mcr,ebe)=>{"use strict";var wv=S8(),Bm=q4(),kbt=Tu(),gG=df().axisHoverFormat,Qxe=Ao().extendFlat;ebe.exports=Qxe({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:Bm.autocontour,ncontours:Bm.ncontours,contours:Bm.contours,line:{color:Bm.line.color,width:Qxe({},Bm.line.width,{dflt:.5}),dash:Bm.line.dash,smoothing:Bm.line.smoothing,editType:"plot"},xhoverformat:gG("x"),yhoverformat:gG("y"),zhoverformat:gG("z",1),hovertemplate:wv.hovertemplate,hovertemplatefallback:wv.hovertemplatefallback,texttemplate:Bm.texttemplate,texttemplatefallback:Bm.texttemplatefallback,textfont:Bm.textfont},kbt("",{cLetter:"z",editTypeOverride:"calc"}))});var k8=ye((ycr,tbe)=>{"use strict";tbe.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 yG=ye((_cr,rbe)=>{"use strict";var Cbt=Dr();rbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Cbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var C8=ye((xcr,ibe)=>{"use strict";var Lbt=td(),Pbt=yG();ibe.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,Lbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Pbt(n,i,l,a)}});var sbe=ye((bcr,obe)=>{"use strict";var nbe=Dr(),Ibt=vG(),Rbt=k8(),Dbt=C8(),Fbt=R4(),abe=mG();obe.exports=function(t,r,n,i){function a(s,l){return nbe.coerce(t,r,abe,s,l)}function o(s){return nbe.coerce2(t,r,abe,s)}Ibt(t,r,a,i),r.visible!==!1&&(Rbt(t,r,a,o),Dbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&Fbt(a,i))}});var bG=ye((wcr,ube)=>{"use strict";var xG=ho(),_G=Dr();ube.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=_G.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=_G.aggNums(Math.max,null,r));var o=lbe(i,a,t.ncontours);n.size=o.dtick,n.start=xG.tickFirst(o),o.range.reverse(),n.end=xG.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={}),_G.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=lbe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function lbe(e,t,r){var n={type:"linear",range:[e,t]};return xG.autoTicks(n,(t-e)/(r||15)),n}});var B4=ye((Tcr,cbe)=>{"use strict";cbe.exports=function(t){return t.end+t.size/1e6}});var wG=ye((Acr,hbe)=>{"use strict";var fbe=tc(),zbt=v8(),Obt=bG(),qbt=B4();hbe.exports=function(t,r){var n=zbt(t,r),i=n[0].z;Obt(r,i);var a=r.contours,o=fbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=qbt(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 fbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var N4=ye((Scr,dbe)=>{"use strict";dbe.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 TG=ye((Mcr,vbe)=>{"use strict";var L8=N4();vbe.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 AG=ye((Ecr,mbe)=>{"use strict";var P8=Dr(),UT=N4();mbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=UT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=UT.SADDLEREMAINDER[o]):delete e.crossings[a],s=UT.NEWDELTA[o],!s){P8.log("Found bad marching index:",o,t,e.level);break}l.push(gbe(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),_=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&v)break;o=e.crossings[a]}d===1e4&&P8.log("Infinite loop in contour?");var b=U4(l[0],l[l.length-1],n,i),p=0,k=.2*e.smoothing,E=[],T=0,L,x,C,M,g,P,A,z,O,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[x]z&&O--,e.edgepaths[O]=G.concat(l,U));break}H||(e.edgepaths[z]=l.concat(U))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:UT.BOTTOMSTART.indexOf(e)!==-1?i=1:UT.LEFTSTART.indexOf(e)!==-1?n=1:UT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function gbe(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 bbe=ye((kcr,xbe)=>{"use strict";var SG=M8(),Vbt=Eo();xbe.exports={"[]":ybe("[]"),"][":ybe("]["),">":MG(">"),"<":MG("<"),"=":MG("=")};function _be(e,t){var r=Array.isArray(t),n;function i(a){return Vbt(a)?+a:null}return SG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):SG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:SG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function ybe(e){return function(t){t=_be(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 MG(e){return function(t){return t=_be(e,t),{start:t,end:1/0,size:1/0}}}});var EG=ye((Ccr,Tbe)=>{"use strict";var wbe=Dr(),Gbt=bbe(),Hbt=B4();Tbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Gbt[t._operation](t.value):t,a=i.size,o=[],s=Hbt(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){wbe.warn("Too many contours, clipping at 1000",t);break}return o}});var kG=ye((Lcr,Sbe)=>{"use strict";var VT=Dr();Sbe.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&&VT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Mbe.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 I8=ye(jv=>{"use strict";var G4=Oa(),Fd=Dr(),jy=So(),jbt=tc(),Cbe=Zl(),Ebe=ho(),kbe=xm(),Wbt=m8(),Lbe=TG(),Pbe=AG(),Xbt=EG(),Zbt=kG(),Ibe=CG(),V4=N4(),Nm=V4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Fd.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=Xbt(d,r,u),_=Fd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Wbt(t,r,b,_),Lbe(v),Pbe(v);var p=a.c2p(f[0],!0),k=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[p,T],[k,T],[k,E],[p,E]],x=v;d.type==="constraint"&&(x=Zbt(v,d._operation)),Ybt(l,L,d),Kbt(l,x,L,d),Jbt(l,v,t,u,d),Qbt(l,r,t,u,L)})};function Ybt(e,t,r){var n=Fd.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 Kbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Ibe(t,n);var o=Fd.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:"")+Rbe(l,r);u?G4.select(this).attr("d",u).style("stroke","none"):G4.select(this).remove()})}function Rbe(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 _(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){Fd.log("Missing end?",n,e);break}for(h(o)&&!_(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:_(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):Fd.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){Fd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nNm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Nm.MAXCOST)return c};function $bt(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=Nm.EDGECOST*(1/(f-1)+1/(h-1));d+=Nm.ANGLECOST*l*l;for(var v=o-u,_=s-c,b=o+u,p=s+c,k=0;k{"use strict";var t2t=Oa(),LG=tc(),r2t=B4();Dbe.exports=function(t){var r=t.contours,n=r.start,i=r2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=LG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?LG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,_=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;v_&&(f.unshift(_),h.unshift(h[0])),f[f.length-1]{"use strict";var R8=Oa(),Fbe=So(),i2t=y8(),n2t=PG();zbe.exports=function(t){var r=R8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=R8.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?n2t(a):null;i.selectAll("g.contourlevel").each(function(b){R8.select(this).selectAll("path").call(Fbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Fbe.font(R8.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 _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*l)}),_===void 0&&(_=u),i.selectAll("g.contourbg path").style("fill",d(_-.5*l))}}),i2t(t)}});var F8=ye((Fcr,qbe)=>{"use strict";var Obe=tc(),a2t=PG(),o2t=B4();function s2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=a2t(t,{isColorbar:!0});if(o==="heatmap"){var l=Obe.extractOpts(t);r._fillgradient=l.reversescale?Obe.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:o2t(n),size:a}}qbe.exports={min:"zmin",max:"zmax",calc:s2t}});var IG=ye((zcr,Bbe)=>{"use strict";var z8=ka(),l2t=x8();Bbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=l2t(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&z8.opacity(l.fillcolor)?s.color=z8.addOpacity(l.fillcolor,1):l.contours.showlines&&z8.opacity(l.line.color)&&(s.color=z8.addOpacity(l.line.color,1)))}),o}});var Ube=ye((Ocr,Nbe)=>{"use strict";Nbe.exports={attributes:mG(),supplyDefaults:sbe(),crossTraceDefaults:T8(),calc:wG(),plot:I8().plot,layerName:"contourlayer",style:D8(),colorbar:F8(),hoverPoints:IG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Gbe=ye((qcr,Vbe)=>{"use strict";Vbe.exports=Ube()});var RG=ye((Bcr,Ybe)=>{"use strict";var Hbe=Eo(),u2t=yG(),Xbe=ka(),jbe=Xbe.addOpacity,c2t=Xbe.opacity,Zbe=M8(),Wbe=Dr().isArrayOrTypedArray,f2t=Zbe.CONSTRAINT_REDUCTION,h2t=Zbe.COMPARISON_OPS2;Ybe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=f2t[f],d2t(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",jbe((t.line||{}).color||a,.5))),l){var h=c&&c2t(c)?jbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),u2t(n,i,u,o)};function d2t(e,t){var r;h2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Wbe(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])]:Hbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Hbe(t.value)||(Wbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var $be=ye((Ncr,Jbe)=>{"use strict";var DG=Dr(),v2t=n8(),p2t=Dg(),g2t=RG(),m2t=k8(),y2t=C8(),_2t=R4(),Kbe=q4();Jbe.exports=function(t,r,n,i){function a(u,c){return DG.coerce(t,r,Kbe,u,c)}function o(u){return DG.coerce2(t,r,Kbe,u)}var s=v2t(t,r,a,i);if(!s){r.visible=!1;return}p2t(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",DG.isArray1D(r.z)),l?g2t(t,r,a,i,n):(m2t(t,r,a,o),y2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&_2t(a,i),a("zorder")}});var e2e=ye((Ucr,Qbe)=>{"use strict";Qbe.exports={attributes:q4(),supplyDefaults:$be(),calc:wG(),plot:I8().plot,style:D8(),colorbar:F8(),hoverPoints:IG(),moduleType:"trace",name:"contour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var r2e=ye((Vcr,t2e)=>{"use strict";t2e.exports=e2e()});var FG=ye((Gcr,o2e)=>{"use strict";var{hovertemplateAttrs:x2t,texttemplateAttrs:b2t,templatefallbackAttrs:i2e}=Ll(),w2t=Pg(),o0=pf(),T2t=Gl(),n2e=Tu(),A2t=Pd().dash,F_=Ao().extendFlat,X0=o0.marker,H4=o0.line,a2e=X0.line;o2e.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:b2t({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:i2e({editType:"plot"}),hovertext:F_({},o0.hovertext,{}),line:{color:H4.color,width:H4.width,dash:A2t,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:w2t(),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"},n2e("marker.line")),gradient:X0.gradient,editType:"calc"},n2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:F_({},T2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:x2t(),hovertemplatefallback:i2e()}});var c2e=ye((Hcr,u2e)=>{"use strict";var s2e=Dr(),S2t=Lm(),GT=Ru(),M2t=$p(),E2t=D0(),l2e=sT(),k2t=F0(),C2t=Fg(),L2t=FG();u2e.exports=function(t,r,n,i){function a(h,d){return s2e.coerce(t,r,L2t,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 zG=ho();f2e.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 g2e=ye((Wcr,p2e)=>{"use strict";var OG=Eo(),P2t=z0(),I2t=Rm(),R2t=O0(),D2t=q0().calcMarkerSize,d2e=["a","b","c"],v2e={a:["b","c"],b:["a","c"],c:["a","b"]};p2e.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 F2t=dT();m2e.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 z2t=mT();_2e.exports=function(t,r,n,i){var a=z2t(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 _=h._module.formatLabels(f,h,v);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=f.hi||h.hoverinfo,p=[];function k(T,L){p.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var w2e=ye((Ycr,b2e)=>{"use strict";b2e.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 R2e=ye((Kcr,I2e)=>{"use strict";var k2e=Oa(),O2t=fd(),qG=qa(),Wy=Dr(),Um=Wy.strTranslate,O8=Wy._,jT=ka(),q8=So(),j4=xm(),BG=Ao().extendFlat,q2t=Mc(),z_=ho(),T2e=yv(),A2e=vf(),C2e=Cg(),S2e=C2e.freeMode,B2t=C2e.rectMode,NG=zb(),N2t=Of().prepSelect,U2t=Of().selectOnClick,V2t=Of().clearOutline,G2t=Of().clearSelectionsCache,L2e=Rh();function P2e(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}I2e.exports=P2e;var Vm=P2e.prototype;Vm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aHT*u?(p=u,b=p*HT):(b=l,p=b/HT),k=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=_,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(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:[f,c-h-d],domain:[a-E/2,a+E/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=BG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*HT],anchor:"free",position:0,_id:"y",_length:b});j4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=BG({},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=BG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*HT],anchor:"free",position:0,_id:"y",_length:b});j4(C,r.graphDiv._fullLayout),C.setScale();var M="M"+v+","+(_+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Um(v,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Um(v-x._offset,_+p);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var z=Um(v+b/2,_)+"rotate(30)"+Um(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Um(v+b/2,_)+"rotate(-30)"+Um(0,-C._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(_+p)+"l"+b/2+",-"+p:"M0,0").call(jT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(_+p)+"h"+b:"M0,0").call(jT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+_+"l"+b/2+","+p:"M0,0").call(jT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),q8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Vm.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"]=NG.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"]=NG.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"]=NG.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"}})}};Vm.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=H2t(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),_=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,k=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"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:E,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 H2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=L2e.MINZOOM/2+.87,j2t="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",W2t="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",X2t="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",Z2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",M2e=!0;Vm.clearOutline=function(){G2t(this.dragOptions),V2t(this.dragOptions.gd)};Vm.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(A,z,O){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;S2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,k(A,z,O)):U==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(B2t(U)||S2e(U))&&N2t(A,z,O,e.dragOptions,U)}};var o,s,l,u,c,f,h,d,v,_;function b(A){var z={};return z[e.id+".aaxis.min"]=A.a,z[e.id+".baxis.min"]=A.b,z[e.id+".caxis.min"]=A.c,z}function p(A,z){var O=r._fullLayout.clickmode;E2e(r),A===2&&(r.emit("plotly_doubleclick",null),qG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&A===1&&U2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&A2e.click(r,z,e.id)}function k(A,z,O){var U=t.getBoundingClientRect();o=z-U.left,s=O-U.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=O2t(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",Um(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Um(e.x0,e.y0)).style({fill:jT.background,stroke:jT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,z){return 1-z/e.h}function T(A,z){return 1-(A+(e.h-z)/Math.sqrt(3))/e.w}function L(A,z){return(A-(e.h-z)/Math.sqrt(3))/e.w}function x(A,z){var O=o+A*i,U=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,U))),Z=Math.max(0,Math.min(1,T(o,s),T(O,U))),j=Math.max(0,Math.min(1,L(o,s),L(O,U))),N=(G/2+j)*e.w,H=(1-G/2-Z)*e.w,re=(N+H)/2,oe=H-N,_e=(1-G)*e.h,Ce=_e-oe/HT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){E2e(r),c!==l&&(qG.call("_guiRelayout",r,b(c)),M2e&&r.data&&r._context.showTips&&(Wy.notifier(O8(r,"Double-click to zoom back out"),"long"),M2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(A,z){var O=A/e.xaxis._m,U=z/e.yaxis._m;c={a:l.a-U,b:l.b+(O+U)/2,c:l.c-(O-U)/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,A=(l.c-c.c-l.b+c.b)*e.xaxis._m);var j=Um(e.x0+A,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",j);var N=Um(-A,-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(q8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){qG.call("_guiRelayout",r,b(c))}t.onmousemove=function(A){A2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||T2e.unhover(r,A)},T2e.init(this.dragOptions)};function E2e(e){k2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var GG=ye((Jcr,D2e)=>{"use strict";var Y2t=Ih(),K2t=Cc().attributes,su=Rd(),J2t=mc().overrideAll,UG=Ao().extendFlat,VG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:UG({},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:UG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:UG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},B8=D2e.exports=J2t({domain:K2t({name:"ternary"}),bgcolor:{valType:"color",dflt:Y2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:VG,baxis:VG,caxis:VG},"plot","from-root");B8.uirevision={valType:"any",editType:"none"};B8.aaxis.uirevision=B8.baxis.uirevision=B8.caxis.uirevision={valType:"any",editType:"none"}});var O_=ye(($cr,F2e)=>{"use strict";var $2t=Dr(),Q2t=vl(),ewt=Cc().defaults;F2e.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,E){return $2t.coerce(h,d,o,k,E)}for(var _=0;_{"use strict";var twt=ka(),rwt=vl(),N8=Dr(),iwt=O_(),nwt=s_(),awt=l_(),owt=F3(),swt=Lb(),lwt=c4(),O2e=GG(),z2e=["aaxis","baxis","caxis"];q2e.exports=function(t,r,n){iwt(t,r,n,{type:"ternary",attributes:O2e,handleDefaults:uwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function uwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=twt.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 cwt(e,t,r,n){var i=O2e[t._name];function a(d,v){return N8.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,N8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:N8.bigFont(r.font.size),color:s}}),a("min"),swt(e,t,a,"linear"),awt(e,t,a,"linear"),nwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),owt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(N8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),lwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var N2e=ye(Z0=>{"use strict";var fwt=R2e(),hwt=Id().getSubplotCalcData,dwt=Dr().counterRegex,WT="ternary";Z0.name=WT;var vwt=Z0.attr="subplot";Z0.idRoot=WT;Z0.idRegex=Z0.attrRegex=dwt(WT);var pwt=Z0.attributes={};pwt[vwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=GG();Z0.supplyLayoutDefaults=B2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[WT],a=0;a{"use strict";U2e.exports={attributes:FG(),supplyDefaults:c2e(),colorbar:$d(),formatLabels:h2e(),calc:g2e(),plot:y2e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:x2e(),selectPoints:yT(),eventData:w2e(),moduleType:"trace",name:"scatterternary",basePlotModule:N2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var H2e=ye((rfr,G2e)=>{"use strict";G2e.exports=V2e()});var HG=ye((ifr,W2e)=>{"use strict";var qh=C4(),XT=Ao().extendFlat,j2e=df().axisHoverFormat;W2e.exports={y:qh.y,x:qh.x,x0:qh.x0,y0:qh.y0,xhoverformat:j2e("x"),yhoverformat:j2e("y"),name:XT({},qh.name,{}),orientation:XT({},qh.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:qh.fillcolor,points:XT({},qh.boxpoints,{}),jitter:XT({},qh.jitter,{}),pointpos:XT({},qh.pointpos,{}),width:XT({},qh.width,{}),marker:qh.marker,text:qh.text,hovertext:qh.hovertext,hovertemplate:qh.hovertemplate,hovertemplatefallback:qh.hovertemplatefallback,quartilemethod:qh.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:qh.offsetgroup,alignmentgroup:qh.alignmentgroup,selected:qh.selected,unselected:qh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:qh.zorder}});var XG=ye((nfr,X2e)=>{"use strict";var jG=L4(),WG=Dr().extendFlat;X2e.exports={violinmode:WG({},jG.boxmode,{}),violingap:WG({},jG.boxgap,{}),violingroupgap:WG({},jG.boxgroupgap,{})}});var $2e=ye((afr,J2e)=>{"use strict";var Z2e=Dr(),gwt=ka(),Y2e=I4(),K2e=HG();J2e.exports=function(t,r,n,i){function a(L,x){return Z2e.coerce(t,r,K2e,L,x)}function o(L,x){return Z2e.coerce2(t,r,K2e,L,x)}if(Y2e.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",gwt.addOpacity(r.line.color,.5));Y2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),_=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||_||b));p||(r.box={visible:!1});var k=o("meanline.color",c),E=o("meanline.width",f),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var ewe=ye((ofr,Q2e)=>{"use strict";var mwt=Dr(),ywt=XG(),_wt=$I();Q2e.exports=function(t,r,n){function i(a,o){return mwt.coerce(t,r,ywt,a,o)}_wt._supply(t,r,n,i,"violin")}});var U8=ye(g2=>{"use strict";var xwt=Dr(),bwt={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=bwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var ZG=Dr(),YG=ho(),wwt=NV(),twe=U8(),Twt=fs().BADNUM;rwe.exports=function(t,r){var n=wwt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=YG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var Ewt=e8().setPositionOffset,nwe=["v","h"];awe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var KG=Oa(),JG=Dr(),kwt=So(),$G=t8(),Cwt=AU(),Lwt=U8();swe.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=Cwt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return kwt.smoothopen(h[0],1)}JG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=KG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var _=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=v.side==="both",T=E||v.side==="positive",L=E||v.side==="negative",x=f.selectAll("path.violin").data(JG.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=KG.select(this),Z=U.density,j=Z.length,N=k.c2l(U.pos+_,!0),H=k.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/U.pts.length):oe.maxKDE/b}var _e,Ce,Le,ge,ie,Se,Ee;if(T){for(Se=new Array(j),ge=0;ge{"use strict";var uwe=Oa(),ZT=ka(),Pwt=sp().stylePoints;cwe.exports=function(t){var r=uwe.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=uwe.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(ZT.stroke,i.line.color).call(ZT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(ZT.stroke,s.color).call(ZT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(ZT.stroke,l.color),a.selectAll("path.meanline").style(c).call(ZT.stroke,l.color),Pwt(a,i,t)})}});var pwe=ye((hfr,vwe)=>{"use strict";var Iwt=ka(),QG=Dr(),Rwt=ho(),hwe=jV(),dwe=U8();vwe.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 _=hwe.hoverOnBoxes(t,r,n,i);if(f&&_.length>0){var b=t.xa,p=t.ya,k,E,T,L,x;l.orientation==="h"?(x=r,k="y",T=p,E="x",L=b):(x=n,k="x",T=b,E="y",L=p);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var M=QG.extendFlat({},t),g=L.c2p(x,!0),P=dwe.getKdeValue(C,l,x),A=dwe.getPositionOnKdePath(C,l,g),z=T._offset,O=T._length;M[k+"0"]=A[0],M[k+"1"]=A[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+Rwt.hoverLabelText(L,x,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G<_.length;G++)if(_[G].attr==="med"){U=G;break}M.spikeDistance=_[U].spikeDistance;var Z=k+"Spike";M[Z]=_[U][Z],_[U].spikeDistance=void 0,_[U][Z]=void 0,M.hovertemplate=!1,h.push(M),v={},v[k+"1"]=QG.constrain(z+A[0],z,z+O),v[k+"2"]=QG.constrain(z+A[1],z,z+O),v[E+"1"]=v[E+"2"]=L._offset+g}}c&&(h=h.concat(_))}u.indexOf("points")!==-1&&(d=hwe.hoverOnPoints(t,r,n));var j=o.selectAll(".violinline-"+l.uid).data(v?[0]:[]);return j.enter().append("line").classed("violinline-"+l.uid,!0).attr("stroke-width",1.5),j.exit().remove(),j.attr(v).call(Iwt.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var mwe=ye((dfr,gwe)=>{"use strict";gwe.exports={attributes:HG(),layoutAttributes:XG(),supplyDefaults:$2e(),crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:ewe(),calc:iwe(),crossTraceCalc:owe(),plot:lwe(),style:fwe(),styleOnSelect:sp().styleOnSelect,hoverPoints:pwe(),selectPoints:WV(),moduleType:"trace",name:"violin",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var _we=ye((vfr,ywe)=>{"use strict";ywe.exports=mwe()});var bwe=ye((pfr,xwe)=>{"use strict";xwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var tH=ye((gfr,Swe)=>{"use strict";var jc=zm(),eH=pf().line,Dwt=Gl(),wwe=df().axisHoverFormat,{hovertemplateAttrs:Fwt,texttemplateAttrs:zwt,templatefallbackAttrs:Twe}=Ll(),Awe=bwe(),Xy=Ao().extendFlat,Owt=ka();Swe.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:wwe("x"),yhoverformat:wwe("y"),hovertext:jc.hovertext,hovertemplate:Fwt({},{keys:Awe.eventDataKeys}),hovertemplatefallback:Twe(),hoverinfo:Xy({},Dwt.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:zwt({editType:"plot"},{keys:Awe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Twe({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:qwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xy({},eH.color,{dflt:Owt.defaultLine}),width:Xy({},eH.width,{dflt:0,editType:"plot"}),dash:eH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function qwt(){var e=Xy({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var rH=ye((mfr,Mwe)=>{"use strict";Mwe.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 nH=ye((yfr,kwe)=>{"use strict";var V8=Dr(),Bwt=e2(),Nwt=i0().handleText,Uwt=oT(),Vwt=Dg(),Ewe=tH(),iH=ka();function Gwt(e,t,r,n){function i(f,h){return V8.coerce(e,t,Ewe,f,h)}var a=Uwt(e,t,n,i);if(!a){t.visible=!1;return}Vwt(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");Nwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",V8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",iH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",Hwt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Hwt(e){var t=V8.isArrayOrTypedArray(e)?"#000":e;return iH.addOpacity(t,.5*iH.opacity(t))}function jwt(e,t){var r,n;function i(o){return V8.coerce(n._input,n,Ewe,o)}for(var a=0;a{"use strict";var Wwt=Dr(),Xwt=rH();Cwe.exports=function(e,t,r){var n=!1;function i(s,l){return Wwt.coerce(e,t,Xwt,s,l)}for(var a=0;a{"use strict";var YT=Dr();Pwe.exports=function(t,r){for(var n=0;n{"use strict";var Rwe=ho(),Dwe=zg(),Zwt=Iwe(),Ywt=O0(),W4=fs().BADNUM;Fwe.exports=function(t,r){var n=Rwe.getFromId(t,r.xaxis||"x"),i=Rwe.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=Dwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=Dwe(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 Owe=t2().setGroupPositions;qwe.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 G8=Oa(),B_=Dr(),Nwe=So(),q_=fs().BADNUM,Kwt=d2(),Jwt=bv().clearMinTextSize;Vwe.exports=function(t,r,n,i){var a=t._fullLayout;Jwt("funnel",a),$wt(t,r,n,i),Qwt(t,r,n,i),Kwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function $wt(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=G8.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 _=Uwe(d,i,a,c),b=_[0],p=_[1],k="";b[0]!==q_&&p[0]!==q_&&b[1]!==q_&&p[1]!==q_&&b[2]!==q_&&p[2]!==q_&&b[3]!==q_&&p[3]!==q_&&(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(G8.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function Qwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=G8.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 _=Uwe(d,i,a,c),b=_[0],p=_[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(G8.select(this),"path").attr("d",k).call(Nwe.setClipUrl,t.layerClipId,e)}})})}function Uwe(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 Wwe=ye((Afr,jwe)=>{"use strict";var X4=Oa(),Hwe=So(),oH=ka(),e3t=X1().DESELECTDIM,t3t=V0(),r3t=bv().resizeText,i3t=t3t.styleTextPoints;function n3t(e,t,r){var n=r||X4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");r3t(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(oH.fill,s.mc||l.color).call(oH.stroke,s.mlc||l.line.color).call(Hwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?e3t:1)}}),i3t(a,o,e),a.selectAll(".regions").each(function(){X4.select(this).selectAll("path").style("stroke-width",0).call(oH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Hwe.lineGroupStyle(X4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}jwe.exports={style:n3t}});var Ywe=ye((Sfr,Zwe)=>{"use strict";var Xwe=ka().opacity,a3t=PT().hoverOnBars,sH=Dr().formatPercent;Zwe.exports=function(t,r,n,i,a){var o=a3t(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=sH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=sH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=sH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),p=function(k){return _||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=o3t(l,f),[o]}};function o3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Xwe(n))return n;if(Xwe(i)&&a)return i}});var Jwe=ye((Mfr,Kwe)=>{"use strict";Kwe.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 Qwe=ye((Efr,$we)=>{"use strict";$we.exports={attributes:tH(),layoutAttributes:rH(),supplyDefaults:nH().supplyDefaults,crossTraceDefaults:nH().crossTraceDefaults,supplyLayoutDefaults:Lwe(),calc:zwe(),crossTraceCalc:Bwe(),plot:Gwe(),style:Wwe().style,hoverPoints:Ywe(),eventData:Jwe(),selectPoints:IT(),moduleType:"trace",name:"funnel",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var t3e=ye((kfr,e3e)=>{"use strict";e3e.exports=Qwe()});var i3e=ye((Cfr,r3e)=>{"use strict";r3e.exports={eventDataKeys:["initial","delta","final"]}});var cH=ye((Lfr,s3e)=>{"use strict";var _c=zm(),lH=pf().line,s3t=Gl(),n3e=df().axisHoverFormat,{hovertemplateAttrs:l3t,texttemplateAttrs:u3t,templatefallbackAttrs:a3e}=Ll(),o3e=i3e(),KT=Ao().extendFlat,c3t=ka();function uH(e){return{marker:{color:KT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:KT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:KT({},_c.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:_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:n3e("x"),yhoverformat:n3e("y"),hovertext:_c.hovertext,hovertemplate:l3t({},{keys:o3e.eventDataKeys}),hovertemplatefallback:a3e(),hoverinfo:KT({},s3t.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:u3t({editType:"plot"},{keys:o3e.eventDataKeys.concat(["label"])}),texttemplatefallback:a3e({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:uH("increasing"),decreasing:uH("decreasing"),totals:uH("intermediate sums and total"),connector:{line:{color:KT({},lH.color,{dflt:c3t.defaultLine}),width:KT({},lH.width,{editType:"plot"}),dash:lH.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 fH=ye((Pfr,l3e)=>{"use strict";l3e.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 JT=ye((Ifr,u3e)=>{"use strict";u3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var dH=ye((Rfr,d3e)=>{"use strict";var c3e=Dr(),f3t=e2(),h3t=i0().handleText,d3t=oT(),v3t=Dg(),f3e=cH(),p3t=ka(),h3e=JT(),g3t=h3e.INCREASING.COLOR,m3t=h3e.DECREASING.COLOR,y3t="#4499FF";function hH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",p3t.defaultLine),e(t+".marker.line.width")}function _3t(e,t,r,n){function i(u,c){return c3e.coerce(e,t,f3e,u,c)}var a=d3t(e,t,n,i);if(!a){t.visible=!1;return}v3t(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");h3t(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")),hH(i,"increasing",g3t),hH(i,"decreasing",m3t),hH(i,"totals",y3t);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 x3t(e,t){var r,n;function i(o){return c3e.coerce(n._input,n,f3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var b3t=Dr(),w3t=fH();v3e.exports=function(e,t,r){var n=!1;function i(s,l){return b3t.coerce(e,t,w3t,s,l)}for(var a=0;a{"use strict";var g3e=ho(),m3e=zg(),y3e=Dr().mergeArray,T3t=O0(),_3e=fs().BADNUM;function vH(e){return e==="a"||e==="absolute"}function pH(e){return e==="t"||e==="total"}x3e.exports=function(t,r){var n=g3e.getFromId(t,r.xaxis||"x"),i=g3e.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=m3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=m3e(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,_=!1,b=0;b{"use strict";var w3e=t2().setGroupPositions;T3e.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 S3e=Oa(),H8=Dr(),A3t=So(),$T=fs().BADNUM,S3t=d2(),M3t=bv().clearMinTextSize;M3e.exports=function(t,r,n,i){var a=t._fullLayout;M3t("waterfall",a),S3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),E3t(t,r,n,i)};function E3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;H8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=S3e.select(this),l=o[0].trace,u=H8.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(H8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,_){if(!(_!==d-1&&!v.cNext)){var b=k3t(v,i,a,c),p=b[0],k=b[1],E="";p[0]!==$T&&k[0]!==$T&&p[1]!==$T&&k[1]!==$T&&(f==="spanning"&&!v.isSum&&_>0&&(c?E+="M"+p[0]+","+k[1]+"V"+k[0]:E+="M"+p[1]+","+k[0]+"H"+p[0]),f!=="between"&&(v.isSum||_{"use strict";var j8=Oa(),k3e=So(),C3e=ka(),C3t=X1().DESELECTDIM,L3t=V0(),P3t=bv().resizeText,I3t=L3t.styleTextPoints;function R3t(e,t,r){var n=r||j8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");P3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=j8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;j8.select(this).call(C3e.fill,l.color).call(C3e.stroke,l.line.color).call(k3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?C3t:1)}}),I3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;k3e.lineGroupStyle(j8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}L3e.exports={style:R3t}});var z3e=ye((Bfr,F3e)=>{"use strict";var D3t=ho().hoverLabelText,I3e=ka().opacity,F3t=PT().hoverOnBars,R3e=JT(),D3e={increasing:R3e.INCREASING.SYMBOL,decreasing:R3e.DECREASING.SYMBOL};F3e.exports=function(t,r,n,i,a){var o=F3t(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 D3t(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],_=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<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 E=p==="all",T=p.split("+"),L=function(x){return E||T.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(_<0?k.push(o.deltaLabel+" "+D3e.decreasing):k.push(o.deltaLabel+" "+D3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=z3t(l,v),[o]};function z3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(I3e(n))return n;if(I3e(i)&&a)return i}});var q3e=ye((Nfr,O3e)=>{"use strict";O3e.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 N3e=ye((Ufr,B3e)=>{"use strict";B3e.exports={attributes:cH(),layoutAttributes:fH(),supplyDefaults:dH().supplyDefaults,crossTraceDefaults:dH().crossTraceDefaults,supplyLayoutDefaults:p3e(),calc:b3e(),crossTraceCalc:A3e(),plot:E3e(),style:P3e().style,hoverPoints:z3e(),eventData:q3e(),selectPoints:IT(),moduleType:"trace",name:"waterfall",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var V3e=ye((Vfr,U3e)=>{"use strict";U3e.exports=N3e()});var QT=ye((Gfr,G3e)=>{"use strict";G3e.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 gH=ye((Hfr,j3e)=>{"use strict";var O3t=Gl(),q3t=pf().zorder,{hovertemplateAttrs:B3t,templatefallbackAttrs:N3t}=Ll(),H3e=Ao().extendFlat,U3t=QT().colormodel,Y4=["rgb","rgba","rgba256","hsl","hsla"],V3t=[],G3t=[];for(eA=0;eA{"use strict";var H3t=Dr(),j3t=gH(),W3e=QT(),W3t=Oy().IMAGE_URL_PREFIX;X3e.exports=function(t,r){function n(o,s){return H3t.coerce(t,r,j3t,o,s)}n("source"),r.source&&!r.source.match(W3t)&&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=W3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=W3e.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((Wfr,mH)=>{typeof Object.create=="function"?mH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:mH.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 yH=ye((Xfr,Y3e)=>{Y3e.exports=Ab().EventEmitter});var $3e=ye(W8=>{"use strict";W8.byteLength=Z3t;W8.toByteArray=K3t;W8.fromByteArray=Q3t;var Gm=[],Y0=[],X3t=typeof Uint8Array!="undefined"?Uint8Array:Array,_H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m2=0,K3e=_H.length;m20)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 Z3t(e){var t=J3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Y3t(e,t,r){return(t+r)*3/4-r}function K3t(e){var t,r=J3e(e),n=r[0],i=r[1],a=new X3t(Y3t(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 J3t(e){return Gm[e>>18&63]+Gm[e>>12&63]+Gm[e>>6&63]+Gm[e&63]}function $3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Gm[t>>2]+Gm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Gm[t>>10]+Gm[t>>4&63]+Gm[t<<2&63]+"=")),i.join("")}});var Q3e=ye(xH=>{xH.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)};xH.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,_=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]|=_*128}});var _2=ye(nA=>{"use strict";var bH=$3e(),rA=Q3e(),eTe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nA.Buffer=ea;nA.SlowBuffer=aTt;nA.INSPECT_MAX_BYTES=50;var X8=2147483647;nA.kMaxLength=X8;ea.TYPED_ARRAY_SUPPORT=eTt();!ea.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 eTt(){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(ea.prototype,"parent",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.buffer}});Object.defineProperty(ea.prototype,"offset",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.byteOffset}});function Yy(e){if(e>X8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ea.prototype),t}function ea(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 SH(e)}return nTe(e,t,r)}ea.poolSize=8192;function nTe(e,t,r){if(typeof e=="string")return rTt(e,t);if(ArrayBuffer.isView(e))return iTt(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(Hm(e,ArrayBuffer)||e&&Hm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Hm(e,SharedArrayBuffer)||e&&Hm(e.buffer,SharedArrayBuffer)))return TH(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 ea.from(n,t,r);let i=nTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ea.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)}ea.from=function(e,t,r){return nTe(e,t,r)};Object.setPrototypeOf(ea.prototype,Uint8Array.prototype);Object.setPrototypeOf(ea,Uint8Array);function aTe(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 tTt(e,t,r){return aTe(e),e<=0?Yy(e):t!==void 0?typeof r=="string"?Yy(e).fill(t,r):Yy(e).fill(t):Yy(e)}ea.alloc=function(e,t,r){return tTt(e,t,r)};function SH(e){return aTe(e),Yy(e<0?0:MH(e)|0)}ea.allocUnsafe=function(e){return SH(e)};ea.allocUnsafeSlow=function(e){return SH(e)};function rTt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ea.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=oTe(e,t)|0,n=Yy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function wH(e){let t=e.length<0?0:MH(e.length)|0,r=Yy(t);for(let n=0;n=X8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X8.toString(16)+" bytes");return e|0}function aTt(e){return+e!=e&&(e=0),ea.alloc(+e)}ea.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ea.prototype};ea.compare=function(t,r){if(Hm(t,Uint8Array)&&(t=ea.from(t,t.offset,t.byteLength)),Hm(r,Uint8Array)&&(r=ea.from(r,r.offset,r.byteLength)),!ea.isBuffer(t)||!ea.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?(ea.isBuffer(o)||(o=ea.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ea.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function oTe(e,t){if(ea.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Hm(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 AH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pTe(e).length;default:if(i)return n?-1:AH(e).length;t=(""+t).toLowerCase(),i=!0}}ea.byteLength=oTe;function oTt(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 gTt(this,t,r);case"utf8":case"utf-8":return lTe(this,t,r);case"ascii":return vTt(this,t,r);case"latin1":case"binary":return pTt(this,t,r);case"base64":return hTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ea.prototype._isBuffer=!0;function y2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ea.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+=" ... "),""};eTe&&(ea.prototype[eTe]=ea.prototype.inspect);ea.prototype.compare=function(t,r,n,i,a){if(Hm(t,Uint8Array)&&(t=ea.from(t,t.offset,t.byteLength)),!ea.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,kH(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=ea.from(t,n)),ea.isBuffer(t))return t.length===0?-1:tTe(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):tTe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function tTe(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 sTt(this,t,r,n);case"utf8":case"utf-8":return lTt(this,t,r,n);case"ascii":case"latin1":case"binary":return uTt(this,t,r,n);case"base64":return cTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ea.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hTt(e,t,r){return t===0&&r===e.length?bH.fromByteArray(e):bH.fromByteArray(e.slice(t,r))}function lTe(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 dTt(n)}var rTe=4096;function dTt(e){let t=e.length;if(t<=rTe)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")}ea.prototype.readUintLE=ea.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ea.prototype.readUint8=ea.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ea.prototype.readUint16LE=ea.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ea.prototype.readUint16BE=ea.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ea.prototype.readUint32LE=ea.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ea.prototype.readUint32BE=ea.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ea.prototype.readBigUInt64LE=N_(function(t){t=t>>>0,iA(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,iA(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||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ea.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(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};ea.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ea.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ea.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ea.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ea.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ea.prototype.readBigInt64LE=N_(function(t){t=t>>>0,iA(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,iA(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||ev(t,4,this.length),rA.read(this,t,!0,23,4)};ea.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),rA.read(this,t,!1,23,4)};ea.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),rA.read(this,t,!0,52,8)};ea.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),rA.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!ea.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ea.prototype.writeUintLE=ea.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};ea.prototype.writeUint8=ea.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};ea.prototype.writeUint16LE=ea.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};ea.prototype.writeUint16BE=ea.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};ea.prototype.writeUint32LE=ea.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};ea.prototype.writeUint32BE=ea.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 uTe(e,t,r,n,i){vTe(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 cTe(e,t,r,n,i){vTe(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}ea.prototype.writeBigUInt64LE=N_(function(t,r=0){return uTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ea.prototype.writeBigUInt64BE=N_(function(t,r=0){return cTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ea.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};ea.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};ea.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};ea.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};ea.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};ea.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};ea.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};ea.prototype.writeBigInt64LE=N_(function(t,r=0){return uTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ea.prototype.writeBigInt64BE=N_(function(t,r=0){return cTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fTe(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 hTe(e,t,r,n,i){return t=+t,r=r>>>0,i||fTe(e,t,r,4,34028234663852886e22,-34028234663852886e22),rA.write(e,t,r,n,23,4),r+4}ea.prototype.writeFloatLE=function(t,r,n){return hTe(this,t,r,!0,n)};ea.prototype.writeFloatBE=function(t,r,n){return hTe(this,t,r,!1,n)};function dTe(e,t,r,n,i){return t=+t,r=r>>>0,i||fTe(e,t,r,8,17976931348623157e292,-17976931348623157e292),rA.write(e,t,r,n,52,8),r+8}ea.prototype.writeDoubleLE=function(t,r,n){return dTe(this,t,r,!0,n)};ea.prototype.writeDoubleBE=function(t,r,n){return dTe(this,t,r,!1,n)};ea.prototype.copy=function(t,r,n,i){if(!ea.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=iTe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=iTe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function iTe(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 yTt(e,t,r){iA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&K4(t,e.length-(r+1))}function vTe(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 tA.ERR_OUT_OF_RANGE("value",s,e)}yTt(n,i,a)}function iA(e,t){if(typeof e!="number")throw new tA.ERR_INVALID_ARG_TYPE(t,"number",e)}function K4(e,t,r){throw Math.floor(e)!==e?(iA(e,r),new tA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new tA.ERR_BUFFER_OUT_OF_BOUNDS:new tA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var _Tt=/[^+/0-9A-Za-z-_]/g;function xTt(e){if(e=e.split("=")[0],e=e.trim().replace(_Tt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function AH(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 bTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function pTe(e){return bH.toByteArray(xTt(e))}function Z8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Hm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kH(e){return e!==e}var TTt=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"?ATt:e}function ATt(){throw new Error("BigInt not supported")}});var Y8=ye(($fr,gTe)=>{"use strict";gTe.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((Qfr,mTe)=>{"use strict";var STt=Y8();mTe.exports=function(){return STt()&&!!Symbol.toStringTag}});var CH=ye((ehr,yTe)=>{"use strict";yTe.exports=Object});var xTe=ye((thr,_Te)=>{"use strict";_Te.exports=Error});var wTe=ye((rhr,bTe)=>{"use strict";bTe.exports=EvalError});var ATe=ye((ihr,TTe)=>{"use strict";TTe.exports=RangeError});var MTe=ye((nhr,STe)=>{"use strict";STe.exports=ReferenceError});var LH=ye((ahr,ETe)=>{"use strict";ETe.exports=SyntaxError});var aA=ye((ohr,kTe)=>{"use strict";kTe.exports=TypeError});var LTe=ye((shr,CTe)=>{"use strict";CTe.exports=URIError});var ITe=ye((lhr,PTe)=>{"use strict";PTe.exports=Math.abs});var DTe=ye((uhr,RTe)=>{"use strict";RTe.exports=Math.floor});var zTe=ye((chr,FTe)=>{"use strict";FTe.exports=Math.max});var qTe=ye((fhr,OTe)=>{"use strict";OTe.exports=Math.min});var NTe=ye((hhr,BTe)=>{"use strict";BTe.exports=Math.pow});var VTe=ye((dhr,UTe)=>{"use strict";UTe.exports=Math.round});var HTe=ye((vhr,GTe)=>{"use strict";GTe.exports=Number.isNaN||function(t){return t!==t}});var WTe=ye((phr,jTe)=>{"use strict";var MTt=HTe();jTe.exports=function(t){return MTt(t)||t===0?t:t<0?-1:1}});var ZTe=ye((ghr,XTe)=>{"use strict";XTe.exports=Object.getOwnPropertyDescriptor});var x2=ye((mhr,YTe)=>{"use strict";var K8=ZTe();if(K8)try{K8([],"length")}catch(e){K8=null}YTe.exports=K8});var $4=ye((yhr,KTe)=>{"use strict";var J8=Object.defineProperty||!1;if(J8)try{J8({},"a",{value:1})}catch(e){J8=!1}KTe.exports=J8});var QTe=ye((_hr,$Te)=>{"use strict";var JTe=typeof Symbol!="undefined"&&Symbol,ETt=Y8();$Te.exports=function(){return typeof JTe!="function"||typeof Symbol!="function"||typeof JTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ETt()}});var PH=ye((xhr,eAe)=>{"use strict";eAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var IH=ye((bhr,tAe)=>{"use strict";var kTt=CH();tAe.exports=kTt.getPrototypeOf||null});var nAe=ye((whr,iAe)=>{"use strict";var CTt="Function.prototype.bind called on incompatible ",LTt=Object.prototype.toString,PTt=Math.max,ITt="[object Function]",rAe=function(t,r){for(var n=[],i=0;i{"use strict";var FTt=nAe();aAe.exports=Function.prototype.bind||FTt});var $8=ye((Ahr,oAe)=>{"use strict";oAe.exports=Function.prototype.call});var RH=ye((Shr,sAe)=>{"use strict";sAe.exports=Function.prototype.apply});var uAe=ye((Mhr,lAe)=>{"use strict";lAe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fAe=ye((Ehr,cAe)=>{"use strict";var zTt=oA(),OTt=RH(),qTt=$8(),BTt=uAe();cAe.exports=BTt||zTt.call(qTt,OTt)});var dAe=ye((khr,hAe)=>{"use strict";var NTt=oA(),UTt=aA(),VTt=$8(),GTt=fAe();hAe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new UTt("a function is required");return GTt(NTt,VTt,t)}});var _Ae=ye((Chr,yAe)=>{"use strict";var HTt=dAe(),vAe=x2(),gAe;try{gAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DH=!!gAe&&vAe&&vAe(Object.prototype,"__proto__"),mAe=Object,pAe=mAe.getPrototypeOf;yAe.exports=DH&&typeof DH.get=="function"?HTt([DH.get]):typeof pAe=="function"?function(t){return pAe(t==null?t:mAe(t))}:!1});var AAe=ye((Lhr,TAe)=>{"use strict";var xAe=PH(),bAe=IH(),wAe=_Ae();TAe.exports=xAe?function(t){return xAe(t)}:bAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return bAe(t)}:wAe?function(t){return wAe(t)}:null});var MAe=ye((Phr,SAe)=>{"use strict";var jTt=Function.prototype.call,WTt=Object.prototype.hasOwnProperty,XTt=oA();SAe.exports=XTt.call(jTt,WTt)});var tR=ye((Ihr,IAe)=>{"use strict";var lu,ZTt=CH(),YTt=xTe(),KTt=wTe(),JTt=ATe(),$Tt=MTe(),cA=LH(),uA=aA(),QTt=LTe(),eAt=ITe(),tAt=DTe(),rAt=zTe(),iAt=qTe(),nAt=NTe(),aAt=VTe(),oAt=WTe(),LAe=Function,FH=function(e){try{return LAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},Q4=x2(),sAt=$4(),zH=function(){throw new uA},lAt=Q4?function(){try{return arguments.callee,zH}catch(e){try{return Q4(arguments,"callee").get}catch(t){return zH}}}():zH,sA=QTe()(),tv=AAe(),uAt=IH(),cAt=PH(),PAe=RH(),eE=$8(),lA={},fAt=typeof Uint8Array=="undefined"||!tv?lu:tv(Uint8Array),b2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":sA&&tv?tv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":lA,"%AsyncGenerator%":lA,"%AsyncGeneratorFunction%":lA,"%AsyncIteratorPrototype%":lA,"%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%":YTt,"%eval%":eval,"%EvalError%":KTt,"%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%":LAe,"%GeneratorFunction%":lA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sA&&tv?tv(tv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!sA||!tv?lu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ZTt,"%Object.getOwnPropertyDescriptor%":Q4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":JTt,"%ReferenceError%":$Tt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!sA||!tv?lu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sA&&tv?tv(""[Symbol.iterator]()):lu,"%Symbol%":sA?Symbol:lu,"%SyntaxError%":cA,"%ThrowTypeError%":lAt,"%TypedArray%":fAt,"%TypeError%":uA,"%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%":QTt,"%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%":PAe,"%Object.defineProperty%":sAt,"%Object.getPrototypeOf%":uAt,"%Math.abs%":eAt,"%Math.floor%":tAt,"%Math.max%":rAt,"%Math.min%":iAt,"%Math.pow%":nAt,"%Math.round%":aAt,"%Math.sign%":oAt,"%Reflect.getPrototypeOf%":cAt};if(tv)try{null.error}catch(e){EAe=tv(tv(e)),b2["%Error.prototype%"]=EAe}var EAe,hAt=function e(t){var r;if(t==="%AsyncFunction%")r=FH("async function () {}");else if(t==="%GeneratorFunction%")r=FH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=FH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return b2[t]=r,r},kAe={__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=oA(),Q8=MAe(),dAt=tE.call(eE,Array.prototype.concat),vAt=tE.call(PAe,Array.prototype.splice),CAe=tE.call(eE,String.prototype.replace),eR=tE.call(eE,String.prototype.slice),pAt=tE.call(eE,RegExp.prototype.exec),gAt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mAt=/\\(\\)?/g,yAt=function(t){var r=eR(t,0,1),n=eR(t,-1);if(r==="%"&&n!=="%")throw new cA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cA("invalid intrinsic syntax, expected opening `%`");var i=[];return CAe(t,gAt,function(a,o,s,l){i[i.length]=s?CAe(l,mAt,"$1"):o||a}),i},_At=function(t,r){var n=t,i;if(Q8(kAe,n)&&(i=kAe[n],n="%"+i[0]+"%"),Q8(b2,n)){var a=b2[n];if(a===lA&&(a=hAt(n)),typeof a=="undefined"&&!r)throw new uA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new cA("intrinsic "+t+" does not exist!")};IAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new uA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new uA('"allowMissing" argument must be a boolean');if(pAt(/^%?[^%]*%?$/,t)===null)throw new cA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yAt(t),i=n.length>0?n[0]:"",a=_At("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],vAt(n,dAt([0,1],u)));for(var c=1,f=!0;c=n.length){var _=Q4(s,h);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else f=Q8(s,h),s=s[h];f&&!l&&(b2[o]=s)}}return s}});var zAe=ye((Rhr,FAe)=>{"use strict";var RAe=$4(),xAt=LH(),fA=aA(),DAe=x2();FAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new fA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new fA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new fA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new fA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new fA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new fA("`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=!!DAe&&DAe(t,r);if(RAe)RAe(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 xAt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var qH=ye((Dhr,qAe)=>{"use strict";var OH=$4(),OAe=function(){return!!OH};OAe.hasArrayLengthDefineBug=function(){if(!OH)return null;try{return OH([],"length",{value:1}).length!==1}catch(t){return!0}};qAe.exports=OAe});var GAe=ye((Fhr,VAe)=>{"use strict";var bAt=tR(),BAe=zAe(),wAt=qH()(),NAe=x2(),UAe=aA(),TAt=bAt("%Math.floor%");VAe.exports=function(t,r){if(typeof t!="function")throw new UAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||TAt(r)!==r)throw new UAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&NAe){var o=NAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(wAt?BAe(t,"length",r,!0,!0):BAe(t,"length",r)),t}});var rE=ye((zhr,rR)=>{"use strict";var BH=oA(),iR=tR(),AAt=GAe(),SAt=aA(),WAe=iR("%Function.prototype.apply%"),XAe=iR("%Function.prototype.call%"),ZAe=iR("%Reflect.apply%",!0)||BH.call(XAe,WAe),HAe=$4(),MAt=iR("%Math.max%");rR.exports=function(t){if(typeof t!="function")throw new SAt("a function is required");var r=ZAe(BH,XAe,arguments);return AAt(r,1+MAt(0,t.length-(arguments.length-1)),!0)};var jAe=function(){return ZAe(BH,WAe,arguments)};HAe?HAe(rR.exports,"apply",{value:jAe}):rR.exports.apply=jAe});var hA=ye((Ohr,JAe)=>{"use strict";var YAe=tR(),KAe=rE(),EAt=KAe(YAe("String.prototype.indexOf"));JAe.exports=function(t,r){var n=YAe(t,!!r);return typeof n=="function"&&EAt(t,".prototype.")>-1?KAe(n):n}});var e5e=ye((qhr,QAe)=>{"use strict";var kAt=J4()(),CAt=hA(),NH=CAt("Object.prototype.toString"),nR=function(t){return kAt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:NH(t)==="[object Arguments]"},$Ae=function(t){return nR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&NH(t)!=="[object Array]"&&NH(t.callee)==="[object Function]"},LAt=function(){return nR(arguments)}();nR.isLegacyArguments=$Ae;QAe.exports=LAt?nR:$Ae});var i5e=ye((Bhr,r5e)=>{"use strict";var PAt=Object.prototype.toString,IAt=Function.prototype.toString,RAt=/^\s*(?:function)?\*/,t5e=J4()(),UH=Object.getPrototypeOf,DAt=function(){if(!t5e)return!1;try{return Function("return function*() {}")()}catch(e){}},VH;r5e.exports=function(t){if(typeof t!="function")return!1;if(RAt.test(IAt.call(t)))return!0;if(!t5e){var r=PAt.call(t);return r==="[object GeneratorFunction]"}if(!UH)return!1;if(typeof VH=="undefined"){var n=DAt();VH=n?UH(n):!1}return UH(t)===VH}});var s5e=ye((Nhr,o5e)=>{"use strict";var a5e=Function.prototype.toString,dA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,HH,aR;if(typeof dA=="function"&&typeof Object.defineProperty=="function")try{HH=Object.defineProperty({},"length",{get:function(){throw aR}}),aR={},dA(function(){throw 42},null,HH)}catch(e){e!==aR&&(dA=null)}else dA=null;var FAt=/^\s*class\b/,jH=function(t){try{var r=a5e.call(t);return FAt.test(r)}catch(n){return!1}},GH=function(t){try{return jH(t)?!1:(a5e.call(t),!0)}catch(r){return!1}},oR=Object.prototype.toString,zAt="[object Object]",OAt="[object Function]",qAt="[object GeneratorFunction]",BAt="[object HTMLAllCollection]",NAt="[object HTML document.all class]",UAt="[object HTMLCollection]",VAt=typeof Symbol=="function"&&!!Symbol.toStringTag,GAt=!(0 in[,]),WH=function(){return!1};typeof document=="object"&&(n5e=document.all,oR.call(n5e)===oR.call(document.all)&&(WH=function(t){if((GAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=oR.call(t);return(r===BAt||r===NAt||r===UAt||r===zAt)&&t("")==null}catch(n){}return!1}));var n5e;o5e.exports=dA?function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{dA(t,null,HH)}catch(r){if(r!==aR)return!1}return!jH(t)&&GH(t)}:function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(VAt)return GH(t);if(jH(t))return!1;var r=oR.call(t);return r!==OAt&&r!==qAt&&!/^\[object HTML/.test(r)?!1:GH(t)}});var XH=ye((Uhr,u5e)=>{"use strict";var HAt=s5e(),jAt=Object.prototype.toString,l5e=Object.prototype.hasOwnProperty,WAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),jAt.call(t)==="[object Array]"?WAt(t,r,i):typeof t=="string"?XAt(t,r,i):ZAt(t,r,i)};u5e.exports=YAt});var YH=ye((Vhr,c5e)=>{"use strict";var ZH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],KAt=typeof globalThis=="undefined"?window:globalThis;c5e.exports=function(){for(var t=[],r=0;r{"use strict";var lR=XH(),JAt=YH(),f5e=rE(),$H=hA(),sR=x2(),$At=$H("Object.prototype.toString"),d5e=J4()(),h5e=typeof globalThis=="undefined"?window:globalThis,JH=JAt(),QH=$H("String.prototype.slice"),KH=Object.getPrototypeOf,QAt=$H("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:t5t(t)}return sR?e5t(t):null}});var b5e=ye((Hhr,x5e)=>{"use strict";var g5e=XH(),r5t=YH(),tj=hA(),i5t=tj("Object.prototype.toString"),m5e=J4()(),cR=x2(),n5t=typeof globalThis=="undefined"?window:globalThis,y5e=r5t(),a5t=tj("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return cR?s5t(t):!1}});var nj=ye(uu=>{"use strict";var l5t=e5e(),u5t=i5e(),Wg=p5e(),w5e=b5e();function vA(e){return e.call.bind(e)}var T5e=typeof BigInt!="undefined",A5e=typeof Symbol!="undefined",K0=vA(Object.prototype.toString),c5t=vA(Number.prototype.valueOf),f5t=vA(String.prototype.valueOf),h5t=vA(Boolean.prototype.valueOf);T5e&&(S5e=vA(BigInt.prototype.valueOf));var S5e;A5e&&(M5e=vA(Symbol.prototype.valueOf));var M5e;function nE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=l5t;uu.isGeneratorFunction=u5t;uu.isTypedArray=w5e;function d5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=d5t;function v5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):w5e(e)||k5e(e)}uu.isArrayBufferView=v5t;function p5t(e){return Wg(e)==="Uint8Array"}uu.isUint8Array=p5t;function g5t(e){return Wg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=g5t;function m5t(e){return Wg(e)==="Uint16Array"}uu.isUint16Array=m5t;function y5t(e){return Wg(e)==="Uint32Array"}uu.isUint32Array=y5t;function _5t(e){return Wg(e)==="Int8Array"}uu.isInt8Array=_5t;function x5t(e){return Wg(e)==="Int16Array"}uu.isInt16Array=x5t;function b5t(e){return Wg(e)==="Int32Array"}uu.isInt32Array=b5t;function w5t(e){return Wg(e)==="Float32Array"}uu.isFloat32Array=w5t;function T5t(e){return Wg(e)==="Float64Array"}uu.isFloat64Array=T5t;function A5t(e){return Wg(e)==="BigInt64Array"}uu.isBigInt64Array=A5t;function S5t(e){return Wg(e)==="BigUint64Array"}uu.isBigUint64Array=S5t;function fR(e){return K0(e)==="[object Map]"}fR.working=typeof Map!="undefined"&&fR(new Map);function M5t(e){return typeof Map=="undefined"?!1:fR.working?fR(e):e instanceof Map}uu.isMap=M5t;function hR(e){return K0(e)==="[object Set]"}hR.working=typeof Set!="undefined"&&hR(new Set);function E5t(e){return typeof Set=="undefined"?!1:hR.working?hR(e):e instanceof Set}uu.isSet=E5t;function dR(e){return K0(e)==="[object WeakMap]"}dR.working=typeof WeakMap!="undefined"&&dR(new WeakMap);function k5t(e){return typeof WeakMap=="undefined"?!1:dR.working?dR(e):e instanceof WeakMap}uu.isWeakMap=k5t;function ij(e){return K0(e)==="[object WeakSet]"}ij.working=typeof WeakSet!="undefined"&&ij(new WeakSet);function C5t(e){return ij(e)}uu.isWeakSet=C5t;function vR(e){return K0(e)==="[object ArrayBuffer]"}vR.working=typeof ArrayBuffer!="undefined"&&vR(new ArrayBuffer);function E5e(e){return typeof ArrayBuffer=="undefined"?!1:vR.working?vR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=E5e;function pR(e){return K0(e)==="[object DataView]"}pR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&pR(new DataView(new ArrayBuffer(1),0,1));function k5e(e){return typeof DataView=="undefined"?!1:pR.working?pR(e):e instanceof DataView}uu.isDataView=k5e;var rj=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function iE(e){return K0(e)==="[object SharedArrayBuffer]"}function C5e(e){return typeof rj=="undefined"?!1:(typeof iE.working=="undefined"&&(iE.working=iE(new rj)),iE.working?iE(e):e instanceof rj)}uu.isSharedArrayBuffer=C5e;function L5t(e){return K0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=L5t;function P5t(e){return K0(e)==="[object Map Iterator]"}uu.isMapIterator=P5t;function I5t(e){return K0(e)==="[object Set Iterator]"}uu.isSetIterator=I5t;function R5t(e){return K0(e)==="[object Generator]"}uu.isGeneratorObject=R5t;function D5t(e){return K0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=D5t;function L5e(e){return nE(e,c5t)}uu.isNumberObject=L5e;function P5e(e){return nE(e,f5t)}uu.isStringObject=P5e;function I5e(e){return nE(e,h5t)}uu.isBooleanObject=I5e;function R5e(e){return T5e&&nE(e,S5e)}uu.isBigIntObject=R5e;function D5e(e){return A5e&&nE(e,M5e)}uu.isSymbolObject=D5e;function F5t(e){return L5e(e)||P5e(e)||I5e(e)||R5e(e)||D5e(e)}uu.isBoxedPrimitive=F5t;function z5t(e){return typeof Uint8Array!="undefined"&&(E5e(e)||C5e(e))}uu.isAnyArrayBuffer=z5t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var aj=ye((Whr,F5e)=>{F5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var fj=ye(cu=>{var z5e=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]),uj(t)?r.showHidden=t:t&&cu._extend(r,t),T2(r.showHidden)&&(r.showHidden=!1),T2(r.depth)&&(r.depth=2),T2(r.colors)&&(r.colors=!1),T2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=q5t),_R(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 q5t(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function B5t(e,t){return e}function N5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _R(e,t,r){if(e.customInspect&&t&&yR(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return wR(n)||(n=_R(e,n,r)),n}var i=U5t(e,t);if(i)return i;var a=Object.keys(t),o=N5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),oE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return oj(t);if(a.length===0){if(yR(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(xR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(oE(t))return oj(t)}var l="",u=!1,c=["{","}"];if(q5e(t)&&(u=!0,c=["[","]"]),yR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(aE(t)&&(l=" "+RegExp.prototype.toString.call(t)),xR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),oE(t)&&(l=" "+oj(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=V5t(e,t,r,o,a):h=a.map(function(d){return lj(e,t,r,o,d,u)}),e.seen.pop(),G5t(h,l,c)}function U5t(e,t){if(T2(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(B5e(t))return e.stylize(""+t,"number");if(uj(t))return e.stylize(""+t,"boolean");if(bR(t))return e.stylize("null","null")}function oj(e){return"["+Error.prototype.toString.call(e)+"]"}function V5t(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=` @@ -28,7 +28,7 @@ `))):s=e.stylize("[Circular]","special")),T2(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 G5t(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=nj();function q5e(e){return Array.isArray(e)}cu.isArray=q5e;function uj(e){return typeof e=="boolean"}cu.isBoolean=uj;function bR(e){return e===null}cu.isNull=bR;function H5t(e){return e==null}cu.isNullOrUndefined=H5t;function B5e(e){return typeof e=="number"}cu.isNumber=B5e;function wR(e){return typeof e=="string"}cu.isString=wR;function j5t(e){return typeof e=="symbol"}cu.isSymbol=j5t;function T2(e){return e===void 0}cu.isUndefined=T2;function nE(e){return pA(e)&&cj(e)==="[object RegExp]"}cu.isRegExp=nE;cu.types.isRegExp=nE;function pA(e){return typeof e=="object"&&e!==null}cu.isObject=pA;function xR(e){return pA(e)&&cj(e)==="[object Date]"}cu.isDate=xR;cu.types.isDate=xR;function aE(e){return pA(e)&&(cj(e)==="[object Error]"||e instanceof Error)}cu.isError=aE;cu.types.isNativeError=aE;function yR(e){return typeof e=="function"}cu.isFunction=yR;function W5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}cu.isPrimitive=W5t;cu.isBuffer=aj();function cj(e){return Object.prototype.toString.call(e)}function sj(e){return e<10?"0"+e.toString(10):e.toString(10)}var X5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z5t(){var e=new Date,t=[sj(e.getHours()),sj(e.getMinutes()),sj(e.getSeconds())].join(":");return[e.getDate(),X5t[e.getMonth()],t].join(" ")}cu.log=function(){console.log("%s - %s",Z5t(),cu.format.apply(cu,arguments))};cu.inherits=Zy();cu._extend=function(e,t){if(!t||!pA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function N5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var w2=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(w2&&t[w2]){var r=t[w2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,w2,{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 U5e(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 J5t(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;)nSt(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:iSt,value:function(r,n){return hj(this,J5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var vj=ye((Yhr,W5e)=>{"use strict";function aSt(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(dj,this,e)):process.nextTick(dj,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(AR,r):(r._writableState.errorEmitted=!0,process.nextTick(j5e,r,a)):process.nextTick(j5e,r,a):t?(process.nextTick(AR,r),t(a)):process.nextTick(AR,r)}),this)}function j5e(e,t){dj(e,t),AR(e)}function AR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function oSt(){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 dj(e,t){e.emit("error",t)}function sSt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}W5e.exports={destroy:aSt,undestroy:oSt,errorOrDestroy:sSt}});var A2=ye((Khr,Y5e)=>{"use strict";function lSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Z5e={};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){lSt(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,Z5e[e]=i}function X5e(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 uSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function cSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function fSt(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"&&uSt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(cSt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(X5e(t,"type"));else{var a=fSt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(X5e(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");Y5e.exports.codes=Z5e});var pj=ye((Jhr,K5e)=>{"use strict";var hSt=A2().codes.ERR_INVALID_OPT_VALUE;function dSt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vSt(e,t,r,n){var i=dSt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new hSt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}K5e.exports={getHighWaterMark:vSt}});var $5e=ye(($hr,J5e)=>{J5e.exports=pSt;function pSt(e,t){if(gj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(gj("throwDeprecation"))throw new Error(t);gj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function gj(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 _j=ye((Qhr,nSe)=>{"use strict";nSe.exports=Bh;function eSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){VSt(t,e)}}var gA;Bh.WritableState=sE;var gSt={deprecate:$5e()},tSe=yH(),MR=_2().Buffer,mSt=window.Uint8Array||function(){};function ySt(e){return MR.from(e)}function _St(e){return MR.isBuffer(e)||e instanceof mSt}var yj=vj(),xSt=pj(),bSt=xSt.getHighWaterMark,V_=A2().codes,wSt=V_.ERR_INVALID_ARG_TYPE,TSt=V_.ERR_METHOD_NOT_IMPLEMENTED,ASt=V_.ERR_MULTIPLE_CALLBACK,SSt=V_.ERR_STREAM_CANNOT_PIPE,MSt=V_.ERR_STREAM_DESTROYED,ESt=V_.ERR_STREAM_NULL_VALUES,kSt=V_.ERR_STREAM_WRITE_AFTER_END,CSt=V_.ERR_UNKNOWN_ENCODING,mA=yj.errorOrDestroy;Zy()(Bh,tSe);function LSt(){}function sE(e,t,r){gA=gA||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof gA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=bSt(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){OSt(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 eSe(this)}sE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(sE.prototype,"buffer",{get:gSt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var SR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(SR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Bh,Symbol.hasInstance,{value:function(t){return SR.call(this,t)?!0:this!==Bh?!1:t&&t._writableState instanceof sE}})):SR=function(t){return t instanceof this};function Bh(e){gA=gA||S2();var t=this instanceof gA;if(!t&&!SR.call(Bh,this))return new Bh(e);this._writableState=new sE(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)),tSe.call(this)}Bh.prototype.pipe=function(){mA(this,new SSt)};function PSt(e,t){var r=new kSt;mA(e,r),process.nextTick(t,r)}function ISt(e,t,r,n){var i;return r===null?i=new ESt:typeof r!="string"&&!t.objectMode&&(i=new wSt("chunk",["string","Buffer"],r)),i?(mA(e,i),process.nextTick(n,i),!1):!0}Bh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&_St(e);return a&&!MR.isBuffer(e)&&(e=ySt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=LSt),n.ending?PSt(this,r):(a||ISt(this,n,e,r))&&(n.pendingcb++,i=DSt(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&&rSe(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 CSt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Bh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function RSt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=MR.from(t,r)),t}Object.defineProperty(Bh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function DSt(e,t,r,n,i,a){if(!r){var o=RSt(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 GSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};oSe.exports=jm;var aSe=wj(),bj=_j();Zy()(jm,aSe);for(xj=GSt(bj.prototype),ER=0;ER{var CR=_2(),Wm=CR.Buffer;function sSe(e,t){for(var r in e)t[r]=e[r]}Wm.from&&Wm.alloc&&Wm.allocUnsafe&&Wm.allocUnsafeSlow?lSe.exports=CR:(sSe(CR,Tj),Tj.Buffer=M2);function M2(e,t,r){return Wm(e,t,r)}M2.prototype=Object.create(Wm.prototype);sSe(Wm,M2);M2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Wm(e,t,r)};M2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Wm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};M2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Wm(e)};M2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return CR.SlowBuffer(e)}});var Mj=ye(fSe=>{"use strict";var Sj=uSe().Buffer,cSe=Sj.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 WSt(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 XSt(e){var t=WSt(e);if(typeof t!="string"&&(Sj.isEncoding===cSe||!cSe(e)))throw new Error("Unknown encoding: "+e);return t||e}fSe.StringDecoder=lE;function lE(e){this.encoding=XSt(e);var t;switch(this.encoding){case"utf16le":this.text=QSt,this.end=eMt,t=4;break;case"utf8":this.fillLast=KSt,t=4;break;case"base64":this.text=tMt,this.end=rMt,t=3;break;default:this.write=iMt,this.end=nMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Sj.allocUnsafe(t)}lE.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 ZSt(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 YSt(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 KSt(e){var t=this.lastTotal-this.lastNeed,r=YSt(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 JSt(e,t){var r=ZSt(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 $St(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function QSt(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 eMt(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 tMt(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 rMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iMt(e){return e.toString(this.encoding)}function nMt(e){return e&&e.length?this.write(e):""}});var LR=ye((rdr,vSe)=>{"use strict";var hSe=A2().codes.ERR_STREAM_PREMATURE_CLOSE;function aMt(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 PR;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 lMt=LR(),H_=Symbol("lastResolve"),E2=Symbol("lastReject"),uE=Symbol("error"),IR=Symbol("ended"),k2=Symbol("lastPromise"),Ej=Symbol("handlePromise"),C2=Symbol("stream");function j_(e,t){return{value:e,done:t}}function uMt(e){var t=e[H_];if(t!==null){var r=e[C2].read();r!==null&&(e[k2]=null,e[H_]=null,e[E2]=null,t(j_(r,!1)))}}function cMt(e){process.nextTick(uMt,e)}function fMt(e,t){return function(r,n){e.then(function(){if(t[IR]){r(j_(void 0,!0));return}t[Ej](r,n)},n)}}var hMt=Object.getPrototypeOf(function(){}),dMt=Object.setPrototypeOf((PR={get stream(){return this[C2]},next:function(){var t=this,r=this[uE];if(r!==null)return Promise.reject(r);if(this[IR])return Promise.resolve(j_(void 0,!0));if(this[C2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[uE]?s(t[uE]):o(j_(void 0,!0))})});var n=this[k2],i;if(n)i=new Promise(fMt(n,this));else{var a=this[C2].read();if(a!==null)return Promise.resolve(j_(a,!1));i=new Promise(this[Ej])}return this[k2]=i,i}},G_(PR,Symbol.asyncIterator,function(){return this}),G_(PR,"return",function(){var t=this;return new Promise(function(r,n){t[C2].destroy(null,function(i){if(i){n(i);return}r(j_(void 0,!0))})})}),PR),hMt),vMt=function(t){var r,n=Object.create(dMt,(r={},G_(r,C2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,E2,{value:null,writable:!0}),G_(r,uE,{value:null,writable:!0}),G_(r,IR,{value:t._readableState.endEmitted,writable:!0}),G_(r,Ej,{value:function(a,o){var s=n[C2].read();s?(n[k2]=null,n[H_]=null,n[E2]=null,a(j_(s,!1))):(n[H_]=a,n[E2]=o)},writable:!0}),r));return n[k2]=null,lMt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[E2];a!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,a(i)),n[uE]=i;return}var o=n[H_];o!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,o(j_(void 0,!0))),n[IR]=!0}),t.on("readable",cMt.bind(null,n)),n};pSe.exports=vMt});var ySe=ye((ndr,mSe)=>{mSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var wj=ye((odr,kSe)=>{"use strict";kSe.exports=Bu;var yA;Bu.ReadableState=wSe;var adr=Ab().EventEmitter,bSe=function(t,r){return t.listeners(r).length},fE=yH(),RR=_2().Buffer,pMt=window.Uint8Array||function(){};function gMt(e){return RR.from(e)}function mMt(e){return RR.isBuffer(e)||e instanceof pMt}var kj=fj(),nu;kj&&kj.debuglog?nu=kj.debuglog("stream"):nu=function(){};var yMt=H5e(),Fj=vj(),_Mt=pj(),xMt=_Mt.getHighWaterMark,DR=A2().codes,bMt=DR.ERR_INVALID_ARG_TYPE,wMt=DR.ERR_STREAM_PUSH_AFTER_EOF,TMt=DR.ERR_METHOD_NOT_IMPLEMENTED,AMt=DR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_A,Cj,Lj;Zy()(Bu,fE);var cE=Fj.errorOrDestroy,Pj=["error","close","destroy","pause","resume"];function SMt(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 wSe(e,t,r){yA=yA||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof yA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=xMt(this,e,"readableHighWaterMark",r),this.buffer=new yMt,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&&(_A||(_A=Mj().StringDecoder),this.decoder=new _A(e.encoding),this.encoding=e.encoding)}function Bu(e){if(yA=yA||S2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof yA;this._readableState=new wSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),fE.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=Fj.destroy;Bu.prototype._undestroy=Fj.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=RR.from(e,t),t=""),n=!0),TSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return TSe(this,e,null,!0,!1)};function TSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,kMt(e,a);else{var o;if(i||(o=MMt(a,t)),o)cE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==RR.prototype&&(t=gMt(t)),n)a.endEmitted?cE(e,new AMt):Ij(e,a,t,!0);else if(a.ended)cE(e,new wMt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Ij(e,a,t,!1):Dj(e,a)):Ij(e,a,t,!1)}else n||(a.reading=!1,Dj(e,a))}return!a.ended&&(a.length=_Se?e=_Se:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function xSe(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=EMt(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?Rj(this):FR(this),null;if(e=xSe(e,t),e===0&&t.ended)return t.length===0&&Rj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=MSe(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&&Rj(this)),i!==null&&this.emit("data",i),i};function kMt(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?FR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ASe(e)))}}function FR(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(ASe,e))}function ASe(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,zj(e)}function Dj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(CMt,e,t))}function CMt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&ESe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),_(),e.removeListener("error",h),bSe(e,"error")===0&&cE(e,b)}SMt(e,"error",h);function d(){e.removeListener("finish",v),_()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),_()}e.once("finish",v);function _(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function LMt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&bSe(e,"data")&&(r.flowing=!0,zj(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?FR(this):n.reading||process.nextTick(PMt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=fE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(SSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=fE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(SSe,this),t};function SSe(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 PMt(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,IMt(this,e)),e.paused=!1,this};function IMt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(RMt,e,t))}function RMt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),zj(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 zj(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 Rj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(DMt,t,e))}function DMt(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 Lj===void 0&&(Lj=ySe()),Lj(Bu,e,t)});function ESe(e,t){for(var r=0,n=e.length;r{"use strict";LSe.exports=Ky;var zR=A2().codes,FMt=zR.ERR_METHOD_NOT_IMPLEMENTED,zMt=zR.ERR_MULTIPLE_CALLBACK,OMt=zR.ERR_TRANSFORM_ALREADY_TRANSFORMING,qMt=zR.ERR_TRANSFORM_WITH_LENGTH_0,OR=S2();Zy()(Ky,OR);function BMt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new zMt);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";ISe.exports=hE;var PSe=Oj();Zy()(hE,PSe);function hE(e){if(!(this instanceof hE))return new hE(e);PSe.call(this,e)}hE.prototype._transform=function(e,t,r){r(null,e)}});var qSe=ye((udr,OSe)=>{"use strict";var qj;function UMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var zSe=A2().codes,VMt=zSe.ERR_MISSING_ARGS,GMt=zSe.ERR_STREAM_DESTROYED;function DSe(e){if(e)throw e}function HMt(e){return e.setHeader&&typeof e.abort=="function"}function jMt(e,t,r,n){n=UMt(n);var i=!1;e.on("close",function(){i=!0}),qj===void 0&&(qj=LR()),qj(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,HMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new GMt("pipe"))}}}function FSe(e){e()}function WMt(e,t){return e.pipe(t)}function XMt(e){return!e.length||typeof e[e.length-1]!="function"?DSe:e.pop()}function ZMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return jMt(o,l,u,function(c){i||(i=c),c&&a.forEach(FSe),!l&&(a.forEach(FSe),n(i))})});return t.reduce(WMt)}OSe.exports=ZMt});var NSe=ye((cdr,BSe)=>{BSe.exports=$0;var Bj=Ab().EventEmitter,YMt=Zy();YMt($0,Bj);$0.Readable=wj();$0.Writable=_j();$0.Duplex=S2();$0.Transform=Oj();$0.PassThrough=RSe();$0.finished=LR();$0.pipeline=qSe();$0.Stream=$0;function $0(){Bj.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(),Bj.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 bA=ye(fu=>{var USe=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]),Gj(t)?r.showHidden=t:t&&fu._extend(r,t),P2(r.showHidden)&&(r.showHidden=!1),P2(r.depth)&&(r.depth=2),P2(r.colors)&&(r.colors=!1),P2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JMt),UR(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 JMt(e,t){var r=W_.styles[t];return r?"\x1B["+W_.colors[r][0]+"m"+e+"\x1B["+W_.colors[r][1]+"m":e}function $Mt(e,t){return e}function QMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function UR(e,t,r){if(e.customInspect&&t&&NR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return HR(n)||(n=UR(e,n,r)),n}var i=e4t(e,t);if(i)return i;var a=Object.keys(t),o=QMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),vE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Nj(t);if(a.length===0){if(NR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(dE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(VR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(vE(t))return Nj(t)}var l="",u=!1,c=["{","}"];if(GSe(t)&&(u=!0,c=["[","]"]),NR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(dE(t)&&(l=" "+RegExp.prototype.toString.call(t)),VR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),vE(t)&&(l=" "+Nj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return dE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=t4t(e,t,r,o,a):h=a.map(function(d){return Vj(e,t,r,o,d,u)}),e.seen.pop(),r4t(h,l,c)}function e4t(e,t){if(P2(t))return e.stylize("undefined","undefined");if(HR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(HSe(t))return e.stylize(""+t,"number");if(Gj(t))return e.stylize(""+t,"boolean");if(GR(t))return e.stylize("null","null")}function Nj(e){return"["+Error.prototype.toString.call(e)+"]"}function t4t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function U5e(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 J5t(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;)nSt(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:iSt,value:function(r,n){return hj(this,J5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var vj=ye((Yhr,W5e)=>{"use strict";function aSt(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(dj,this,e)):process.nextTick(dj,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(AR,r):(r._writableState.errorEmitted=!0,process.nextTick(j5e,r,a)):process.nextTick(j5e,r,a):t?(process.nextTick(AR,r),t(a)):process.nextTick(AR,r)}),this)}function j5e(e,t){dj(e,t),AR(e)}function AR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function oSt(){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 dj(e,t){e.emit("error",t)}function sSt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}W5e.exports={destroy:aSt,undestroy:oSt,errorOrDestroy:sSt}});var A2=ye((Khr,Y5e)=>{"use strict";function lSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Z5e={};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){lSt(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,Z5e[e]=i}function X5e(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 uSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function cSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function fSt(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"&&uSt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(cSt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(X5e(t,"type"));else{var a=fSt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(X5e(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");Y5e.exports.codes=Z5e});var pj=ye((Jhr,K5e)=>{"use strict";var hSt=A2().codes.ERR_INVALID_OPT_VALUE;function dSt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vSt(e,t,r,n){var i=dSt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new hSt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}K5e.exports={getHighWaterMark:vSt}});var $5e=ye(($hr,J5e)=>{J5e.exports=pSt;function pSt(e,t){if(gj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(gj("throwDeprecation"))throw new Error(t);gj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function gj(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 _j=ye((Qhr,nSe)=>{"use strict";nSe.exports=Bh;function eSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){VSt(t,e)}}var gA;Bh.WritableState=lE;var gSt={deprecate:$5e()},tSe=yH(),MR=_2().Buffer,mSt=window.Uint8Array||function(){};function ySt(e){return MR.from(e)}function _St(e){return MR.isBuffer(e)||e instanceof mSt}var yj=vj(),xSt=pj(),bSt=xSt.getHighWaterMark,V_=A2().codes,wSt=V_.ERR_INVALID_ARG_TYPE,TSt=V_.ERR_METHOD_NOT_IMPLEMENTED,ASt=V_.ERR_MULTIPLE_CALLBACK,SSt=V_.ERR_STREAM_CANNOT_PIPE,MSt=V_.ERR_STREAM_DESTROYED,ESt=V_.ERR_STREAM_NULL_VALUES,kSt=V_.ERR_STREAM_WRITE_AFTER_END,CSt=V_.ERR_UNKNOWN_ENCODING,mA=yj.errorOrDestroy;Zy()(Bh,tSe);function LSt(){}function lE(e,t,r){gA=gA||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof gA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=bSt(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){OSt(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 eSe(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:gSt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var SR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(SR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Bh,Symbol.hasInstance,{value:function(t){return SR.call(this,t)?!0:this!==Bh?!1:t&&t._writableState instanceof lE}})):SR=function(t){return t instanceof this};function Bh(e){gA=gA||S2();var t=this instanceof gA;if(!t&&!SR.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)),tSe.call(this)}Bh.prototype.pipe=function(){mA(this,new SSt)};function PSt(e,t){var r=new kSt;mA(e,r),process.nextTick(t,r)}function ISt(e,t,r,n){var i;return r===null?i=new ESt:typeof r!="string"&&!t.objectMode&&(i=new wSt("chunk",["string","Buffer"],r)),i?(mA(e,i),process.nextTick(n,i),!1):!0}Bh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&_St(e);return a&&!MR.isBuffer(e)&&(e=ySt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=LSt),n.ending?PSt(this,r):(a||ISt(this,n,e,r))&&(n.pendingcb++,i=DSt(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&&rSe(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 CSt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Bh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function RSt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=MR.from(t,r)),t}Object.defineProperty(Bh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function DSt(e,t,r,n,i,a){if(!r){var o=RSt(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 GSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};oSe.exports=jm;var aSe=wj(),bj=_j();Zy()(jm,aSe);for(xj=GSt(bj.prototype),ER=0;ER{var CR=_2(),Wm=CR.Buffer;function sSe(e,t){for(var r in e)t[r]=e[r]}Wm.from&&Wm.alloc&&Wm.allocUnsafe&&Wm.allocUnsafeSlow?lSe.exports=CR:(sSe(CR,Tj),Tj.Buffer=M2);function M2(e,t,r){return Wm(e,t,r)}M2.prototype=Object.create(Wm.prototype);sSe(Wm,M2);M2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Wm(e,t,r)};M2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Wm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};M2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Wm(e)};M2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return CR.SlowBuffer(e)}});var Mj=ye(fSe=>{"use strict";var Sj=uSe().Buffer,cSe=Sj.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 WSt(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 XSt(e){var t=WSt(e);if(typeof t!="string"&&(Sj.isEncoding===cSe||!cSe(e)))throw new Error("Unknown encoding: "+e);return t||e}fSe.StringDecoder=uE;function uE(e){this.encoding=XSt(e);var t;switch(this.encoding){case"utf16le":this.text=QSt,this.end=eMt,t=4;break;case"utf8":this.fillLast=KSt,t=4;break;case"base64":this.text=tMt,this.end=rMt,t=3;break;default:this.write=iMt,this.end=nMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Sj.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 ZSt(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 YSt(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 KSt(e){var t=this.lastTotal-this.lastNeed,r=YSt(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 JSt(e,t){var r=ZSt(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 $St(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function QSt(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 eMt(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 tMt(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 rMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iMt(e){return e.toString(this.encoding)}function nMt(e){return e&&e.length?this.write(e):""}});var LR=ye((rdr,vSe)=>{"use strict";var hSe=A2().codes.ERR_STREAM_PREMATURE_CLOSE;function aMt(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 PR;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 lMt=LR(),H_=Symbol("lastResolve"),E2=Symbol("lastReject"),cE=Symbol("error"),IR=Symbol("ended"),k2=Symbol("lastPromise"),Ej=Symbol("handlePromise"),C2=Symbol("stream");function j_(e,t){return{value:e,done:t}}function uMt(e){var t=e[H_];if(t!==null){var r=e[C2].read();r!==null&&(e[k2]=null,e[H_]=null,e[E2]=null,t(j_(r,!1)))}}function cMt(e){process.nextTick(uMt,e)}function fMt(e,t){return function(r,n){e.then(function(){if(t[IR]){r(j_(void 0,!0));return}t[Ej](r,n)},n)}}var hMt=Object.getPrototypeOf(function(){}),dMt=Object.setPrototypeOf((PR={get stream(){return this[C2]},next:function(){var t=this,r=this[cE];if(r!==null)return Promise.reject(r);if(this[IR])return Promise.resolve(j_(void 0,!0));if(this[C2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[cE]?s(t[cE]):o(j_(void 0,!0))})});var n=this[k2],i;if(n)i=new Promise(fMt(n,this));else{var a=this[C2].read();if(a!==null)return Promise.resolve(j_(a,!1));i=new Promise(this[Ej])}return this[k2]=i,i}},G_(PR,Symbol.asyncIterator,function(){return this}),G_(PR,"return",function(){var t=this;return new Promise(function(r,n){t[C2].destroy(null,function(i){if(i){n(i);return}r(j_(void 0,!0))})})}),PR),hMt),vMt=function(t){var r,n=Object.create(dMt,(r={},G_(r,C2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,E2,{value:null,writable:!0}),G_(r,cE,{value:null,writable:!0}),G_(r,IR,{value:t._readableState.endEmitted,writable:!0}),G_(r,Ej,{value:function(a,o){var s=n[C2].read();s?(n[k2]=null,n[H_]=null,n[E2]=null,a(j_(s,!1))):(n[H_]=a,n[E2]=o)},writable:!0}),r));return n[k2]=null,lMt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[E2];a!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,a(i)),n[cE]=i;return}var o=n[H_];o!==null&&(n[k2]=null,n[H_]=null,n[E2]=null,o(j_(void 0,!0))),n[IR]=!0}),t.on("readable",cMt.bind(null,n)),n};pSe.exports=vMt});var ySe=ye((ndr,mSe)=>{mSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var wj=ye((odr,kSe)=>{"use strict";kSe.exports=Bu;var yA;Bu.ReadableState=wSe;var adr=Ab().EventEmitter,bSe=function(t,r){return t.listeners(r).length},hE=yH(),RR=_2().Buffer,pMt=window.Uint8Array||function(){};function gMt(e){return RR.from(e)}function mMt(e){return RR.isBuffer(e)||e instanceof pMt}var kj=fj(),nu;kj&&kj.debuglog?nu=kj.debuglog("stream"):nu=function(){};var yMt=H5e(),Fj=vj(),_Mt=pj(),xMt=_Mt.getHighWaterMark,DR=A2().codes,bMt=DR.ERR_INVALID_ARG_TYPE,wMt=DR.ERR_STREAM_PUSH_AFTER_EOF,TMt=DR.ERR_METHOD_NOT_IMPLEMENTED,AMt=DR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_A,Cj,Lj;Zy()(Bu,hE);var fE=Fj.errorOrDestroy,Pj=["error","close","destroy","pause","resume"];function SMt(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 wSe(e,t,r){yA=yA||S2(),e=e||{},typeof r!="boolean"&&(r=t instanceof yA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=xMt(this,e,"readableHighWaterMark",r),this.buffer=new yMt,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&&(_A||(_A=Mj().StringDecoder),this.decoder=new _A(e.encoding),this.encoding=e.encoding)}function Bu(e){if(yA=yA||S2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof yA;this._readableState=new wSe(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=Fj.destroy;Bu.prototype._undestroy=Fj.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=RR.from(e,t),t=""),n=!0),TSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return TSe(this,e,null,!0,!1)};function TSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,kMt(e,a);else{var o;if(i||(o=MMt(a,t)),o)fE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==RR.prototype&&(t=gMt(t)),n)a.endEmitted?fE(e,new AMt):Ij(e,a,t,!0);else if(a.ended)fE(e,new wMt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Ij(e,a,t,!1):Dj(e,a)):Ij(e,a,t,!1)}else n||(a.reading=!1,Dj(e,a))}return!a.ended&&(a.length=_Se?e=_Se:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function xSe(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=EMt(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?Rj(this):FR(this),null;if(e=xSe(e,t),e===0&&t.ended)return t.length===0&&Rj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=MSe(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&&Rj(this)),i!==null&&this.emit("data",i),i};function kMt(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?FR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ASe(e)))}}function FR(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(ASe,e))}function ASe(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,zj(e)}function Dj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(CMt,e,t))}function CMt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&ESe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),_(),e.removeListener("error",h),bSe(e,"error")===0&&fE(e,b)}SMt(e,"error",h);function d(){e.removeListener("finish",v),_()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),_()}e.once("finish",v);function _(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function LMt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&bSe(e,"data")&&(r.flowing=!0,zj(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?FR(this):n.reading||process.nextTick(PMt,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(SSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=hE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(SSe,this),t};function SSe(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 PMt(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,IMt(this,e)),e.paused=!1,this};function IMt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(RMt,e,t))}function RMt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),zj(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 zj(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 Rj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(DMt,t,e))}function DMt(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 Lj===void 0&&(Lj=ySe()),Lj(Bu,e,t)});function ESe(e,t){for(var r=0,n=e.length;r{"use strict";LSe.exports=Ky;var zR=A2().codes,FMt=zR.ERR_METHOD_NOT_IMPLEMENTED,zMt=zR.ERR_MULTIPLE_CALLBACK,OMt=zR.ERR_TRANSFORM_ALREADY_TRANSFORMING,qMt=zR.ERR_TRANSFORM_WITH_LENGTH_0,OR=S2();Zy()(Ky,OR);function BMt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new zMt);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";ISe.exports=dE;var PSe=Oj();Zy()(dE,PSe);function dE(e){if(!(this instanceof dE))return new dE(e);PSe.call(this,e)}dE.prototype._transform=function(e,t,r){r(null,e)}});var qSe=ye((udr,OSe)=>{"use strict";var qj;function UMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var zSe=A2().codes,VMt=zSe.ERR_MISSING_ARGS,GMt=zSe.ERR_STREAM_DESTROYED;function DSe(e){if(e)throw e}function HMt(e){return e.setHeader&&typeof e.abort=="function"}function jMt(e,t,r,n){n=UMt(n);var i=!1;e.on("close",function(){i=!0}),qj===void 0&&(qj=LR()),qj(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,HMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new GMt("pipe"))}}}function FSe(e){e()}function WMt(e,t){return e.pipe(t)}function XMt(e){return!e.length||typeof e[e.length-1]!="function"?DSe:e.pop()}function ZMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return jMt(o,l,u,function(c){i||(i=c),c&&a.forEach(FSe),!l&&(a.forEach(FSe),n(i))})});return t.reduce(WMt)}OSe.exports=ZMt});var NSe=ye((cdr,BSe)=>{BSe.exports=$0;var Bj=Ab().EventEmitter,YMt=Zy();YMt($0,Bj);$0.Readable=wj();$0.Writable=_j();$0.Duplex=S2();$0.Transform=Oj();$0.PassThrough=RSe();$0.finished=LR();$0.pipeline=qSe();$0.Stream=$0;function $0(){Bj.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(),Bj.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 bA=ye(fu=>{var USe=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]),Gj(t)?r.showHidden=t:t&&fu._extend(r,t),P2(r.showHidden)&&(r.showHidden=!1),P2(r.depth)&&(r.depth=2),P2(r.colors)&&(r.colors=!1),P2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JMt),UR(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 JMt(e,t){var r=W_.styles[t];return r?"\x1B["+W_.colors[r][0]+"m"+e+"\x1B["+W_.colors[r][1]+"m":e}function $Mt(e,t){return e}function QMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function UR(e,t,r){if(e.customInspect&&t&&NR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return HR(n)||(n=UR(e,n,r)),n}var i=e4t(e,t);if(i)return i;var a=Object.keys(t),o=QMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),pE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Nj(t);if(a.length===0){if(NR(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(VR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pE(t))return Nj(t)}var l="",u=!1,c=["{","}"];if(GSe(t)&&(u=!0,c=["[","]"]),NR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(vE(t)&&(l=" "+RegExp.prototype.toString.call(t)),VR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),pE(t)&&(l=" "+Nj(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=t4t(e,t,r,o,a):h=a.map(function(d){return Vj(e,t,r,o,d,u)}),e.seen.pop(),r4t(h,l,c)}function e4t(e,t){if(P2(t))return e.stylize("undefined","undefined");if(HR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(HSe(t))return e.stylize(""+t,"number");if(Gj(t))return e.stylize(""+t,"boolean");if(GR(t))return e.stylize("null","null")}function Nj(e){return"["+Error.prototype.toString.call(e)+"]"}function t4t(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=` @@ -37,8 +37,8 @@ `))):s=e.stylize("[Circular]","special")),P2(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 r4t(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=nj();function GSe(e){return Array.isArray(e)}fu.isArray=GSe;function Gj(e){return typeof e=="boolean"}fu.isBoolean=Gj;function GR(e){return e===null}fu.isNull=GR;function i4t(e){return e==null}fu.isNullOrUndefined=i4t;function HSe(e){return typeof e=="number"}fu.isNumber=HSe;function HR(e){return typeof e=="string"}fu.isString=HR;function n4t(e){return typeof e=="symbol"}fu.isSymbol=n4t;function P2(e){return e===void 0}fu.isUndefined=P2;function dE(e){return xA(e)&&Hj(e)==="[object RegExp]"}fu.isRegExp=dE;fu.types.isRegExp=dE;function xA(e){return typeof e=="object"&&e!==null}fu.isObject=xA;function VR(e){return xA(e)&&Hj(e)==="[object Date]"}fu.isDate=VR;fu.types.isDate=VR;function vE(e){return xA(e)&&(Hj(e)==="[object Error]"||e instanceof Error)}fu.isError=vE;fu.types.isNativeError=vE;function NR(e){return typeof e=="function"}fu.isFunction=NR;function a4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=a4t;fu.isBuffer=aj();function Hj(e){return Object.prototype.toString.call(e)}function Uj(e){return e<10?"0"+e.toString(10):e.toString(10)}var o4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function s4t(){var e=new Date,t=[Uj(e.getHours()),Uj(e.getMinutes()),Uj(e.getSeconds())].join(":");return[e.getDate(),o4t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",s4t(),fu.format.apply(fu,arguments))};fu.inherits=Zy();fu._extend=function(e,t){if(!t||!xA(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 L2=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(L2&&t[L2]){var r=t[L2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,L2,{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 WSe(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 _4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function x4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function b4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}pE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);pE("ERR_INVALID_ARG_TYPE",function(e,t,r){wA===void 0&&(wA=gE()),wA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&_4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(x4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(XSe(t,"type"));else{var a=b4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(XSe(t,"type"))}return i+=". Received type ".concat(X_(r)),i},TypeError);pE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";jj===void 0&&(jj=bA());var n=jj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);pE("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);pE("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);YSe.exports.codes=ZSe});var aMe=ye((ddr,nMe)=>{"use strict";function KSe(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 JSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function I4t(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="",mE="",yE="",Tv="",I2={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:"},R4t=10;function eMe(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 _E(e){return Kj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function D4t(e,t,r){var n="",i="",a=0,o="",s=!1,l=_E(e),u=l.split(` -`),c=_E(t).split(` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=nj();function GSe(e){return Array.isArray(e)}fu.isArray=GSe;function Gj(e){return typeof e=="boolean"}fu.isBoolean=Gj;function GR(e){return e===null}fu.isNull=GR;function i4t(e){return e==null}fu.isNullOrUndefined=i4t;function HSe(e){return typeof e=="number"}fu.isNumber=HSe;function HR(e){return typeof e=="string"}fu.isString=HR;function n4t(e){return typeof e=="symbol"}fu.isSymbol=n4t;function P2(e){return e===void 0}fu.isUndefined=P2;function vE(e){return xA(e)&&Hj(e)==="[object RegExp]"}fu.isRegExp=vE;fu.types.isRegExp=vE;function xA(e){return typeof e=="object"&&e!==null}fu.isObject=xA;function VR(e){return xA(e)&&Hj(e)==="[object Date]"}fu.isDate=VR;fu.types.isDate=VR;function pE(e){return xA(e)&&(Hj(e)==="[object Error]"||e instanceof Error)}fu.isError=pE;fu.types.isNativeError=pE;function NR(e){return typeof e=="function"}fu.isFunction=NR;function a4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=a4t;fu.isBuffer=aj();function Hj(e){return Object.prototype.toString.call(e)}function Uj(e){return e<10?"0"+e.toString(10):e.toString(10)}var o4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function s4t(){var e=new Date,t=[Uj(e.getHours()),Uj(e.getMinutes()),Uj(e.getSeconds())].join(":");return[e.getDate(),o4t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",s4t(),fu.format.apply(fu,arguments))};fu.inherits=Zy();fu._extend=function(e,t){if(!t||!xA(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 L2=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(L2&&t[L2]){var r=t[L2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,L2,{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 WSe(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 _4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function x4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function b4t(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){wA===void 0&&(wA=mE()),wA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&_4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(x4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(XSe(t,"type"));else{var a=b4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(XSe(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";jj===void 0&&(jj=bA());var n=jj.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);YSe.exports.codes=ZSe});var aMe=ye((ddr,nMe)=>{"use strict";function KSe(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 JSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function I4t(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="",I2={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:"},R4t=10;function eMe(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 Kj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function D4t(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<=R4t){if((Dp(e)!=="object"||e===null)&&(Dp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(I2[r],` `)+"".concat(u[0]," !== ").concat(c[0],` @@ -52,39 +52,39 @@ `)}f>3&&(o=` `.concat(Xg,"...").concat(Tv).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,T=I2[r]+` -`.concat(mE,"+ actual").concat(Tv," ").concat(yE,"- expected").concat(Tv),L=" ".concat(Xg,"...").concat(Tv," Lines skipped");for(f=0;f1&&f>2&&(x>4?(i+=` +`.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(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(c[f-2]),E++),i+=` `.concat(c[f-1]),E++),a=f,n+=` -`.concat(yE,"-").concat(Tv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(x>4?(i+=` +`.concat(_E,"-").concat(Tv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(x>4?(i+=` `.concat(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(mE,"+").concat(Tv," ").concat(u[f]),E++;else{var C=c[f],M=u[f],g=M!==C&&(!QSe(M,",")||M.slice(0,-1)!==C);g&&QSe(C,",")&&C.slice(0,-1)===M&&(g=!1,M+=","),g?(x>1&&f>2&&(x>4?(i+=` +`.concat(yE,"+").concat(Tv," ").concat(u[f]),E++;else{var C=c[f],M=u[f],g=M!==C&&(!QSe(M,",")||M.slice(0,-1)!==C);g&&QSe(C,",")&&C.slice(0,-1)===M&&(g=!1,M+=","),g?(x>1&&f>2&&(x>4?(i+=` `.concat(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(mE,"+").concat(Tv," ").concat(M),n+=` -`.concat(yE,"-").concat(Tv," ").concat(C),E+=2):(i+=n,n="",(x===1||f===0)&&(i+=` +`.concat(yE,"+").concat(Tv," ").concat(M),n+=` +`.concat(_E,"-").concat(Tv," ").concat(C),E+=2):(i+=n,n="",(x===1||f===0)&&(i+=` `.concat(M),E++))}if(E>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(d.join(` `),` -`))}else{var v=_E(u),_="",b=I2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(I2[s],` +`))}else{var v=xE(u),_="",b=I2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(I2[s],` -`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(_="".concat(_E(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(_="".concat(xE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` `).concat(v,` should equal -`):_=" ".concat(s," ").concat(_)),a=r.call(this,"".concat(v).concat(_))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(Zj(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(Zj(a),l),a.stack,a.name="AssertionError",rMe(a)}return A4t(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Kj(this,JSe(JSe({},o),{},{customInspect:!1,depth:0}))}}]),n}(Yj(Error),Kj.custom);nMe.exports=F4t});var Jj=ye((vdr,sMe)=>{"use strict";var oMe=Object.prototype.toString;sMe.exports=function(t){var r=oMe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&oMe.call(t.callee)==="[object Function]"),n}});var gMe=ye((pdr,pMe)=>{"use strict";var vMe;Object.keys||(wE=Object.prototype.hasOwnProperty,$j=Object.prototype.toString,lMe=Jj(),Qj=Object.prototype.propertyIsEnumerable,uMe=!Qj.call({toString:null},"toString"),cMe=Qj.call(function(){},"prototype"),TE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],XR=function(e){var t=e.constructor;return t&&t.prototype===e},fMe={$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},hMe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!fMe["$"+e]&&wE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{XR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),dMe=function(e){if(typeof window=="undefined"||!hMe)return XR(e);try{return XR(e)}catch(t){return!1}},vMe=function(t){var r=t!==null&&typeof t=="object",n=$j.call(t)==="[object Function]",i=lMe(t),a=r&&$j.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=cMe&&n;if(a&&t.length>0&&!wE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var z4t=Array.prototype.slice,O4t=Jj(),mMe=Object.keys,ZR=mMe?function(t){return mMe(t)}:gMe(),yMe=Object.keys;ZR.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 O4t(n)?yMe(z4t.call(n)):yMe(n)})}else Object.keys=ZR;return Object.keys||ZR};_Me.exports=ZR});var SMe=ye((mdr,AMe)=>{"use strict";var q4t=eW(),wMe=Y8()(),TMe=hA(),xMe=Object,B4t=TMe("Array.prototype.push"),bMe=TMe("Object.prototype.propertyIsEnumerable"),N4t=wMe?Object.getOwnPropertySymbols:null;AMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=xMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var tW=SMe(),U4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var kMe=function(e){return e!==e};CMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||kMe(t)&&kMe(r))}});var YR=ye((xdr,LMe)=>{"use strict";var G4t=rW();LMe.exports=function(){return typeof Object.is=="function"?Object.is:G4t}});var AE=ye((bdr,DMe)=>{"use strict";var H4t=eW(),j4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",W4t=Object.prototype.toString,X4t=Array.prototype.concat,PMe=Object.defineProperty,Z4t=function(e){return typeof e=="function"&&W4t.call(e)==="[object Function]"},Y4t=qH()(),IMe=PMe&&Y4t,K4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!Z4t(n)||!n())return}IMe?PMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},RMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=H4t(t);j4t&&(n=X4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var J4t=YR(),$4t=AE();FMe.exports=function(){var t=J4t();return $4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var NMe=ye((Tdr,BMe)=>{"use strict";var Q4t=AE(),eEt=tE(),tEt=rW(),OMe=YR(),rEt=zMe(),qMe=eEt(OMe(),Object);Q4t(qMe,{getPolyfill:OMe,implementation:tEt,shim:rEt});BMe.exports=qMe});var iW=ye((Adr,UMe)=>{"use strict";UMe.exports=function(t){return t!==t}});var nW=ye((Sdr,VMe)=>{"use strict";var iEt=iW();VMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:iEt}});var HMe=ye((Mdr,GMe)=>{"use strict";var nEt=AE(),aEt=nW();GMe.exports=function(){var t=aEt();return nEt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var ZMe=ye((Edr,XMe)=>{"use strict";var oEt=tE(),sEt=AE(),lEt=iW(),jMe=nW(),uEt=HMe(),WMe=oEt(jMe(),Number);sEt(WMe,{getPolyfill:jMe,implementation:lEt,shim:uEt});XMe.exports=WMe});var v4e=ye((kdr,d4e)=>{"use strict";function YMe(e,t){return dEt(e)||hEt(e,t)||fEt(e,t)||cEt()}function cEt(){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 fEt(e,t){if(e){if(typeof e=="string")return KMe(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 KMe(e,t)}}function KMe(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 $R(e){return Object.keys(e).filter(wEt).concat(eD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function u4e(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 p4e(e,t){for(var r=0;r{"use strict";var oMe=Object.prototype.toString;sMe.exports=function(t){var r=oMe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&oMe.call(t.callee)==="[object Function]"),n}});var gMe=ye((pdr,pMe)=>{"use strict";var vMe;Object.keys||(TE=Object.prototype.hasOwnProperty,$j=Object.prototype.toString,lMe=Jj(),Qj=Object.prototype.propertyIsEnumerable,uMe=!Qj.call({toString:null},"toString"),cMe=Qj.call(function(){},"prototype"),AE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],XR=function(e){var t=e.constructor;return t&&t.prototype===e},fMe={$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},hMe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!fMe["$"+e]&&TE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{XR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),dMe=function(e){if(typeof window=="undefined"||!hMe)return XR(e);try{return XR(e)}catch(t){return!1}},vMe=function(t){var r=t!==null&&typeof t=="object",n=$j.call(t)==="[object Function]",i=lMe(t),a=r&&$j.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=cMe&&n;if(a&&t.length>0&&!TE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var z4t=Array.prototype.slice,O4t=Jj(),mMe=Object.keys,ZR=mMe?function(t){return mMe(t)}:gMe(),yMe=Object.keys;ZR.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 O4t(n)?yMe(z4t.call(n)):yMe(n)})}else Object.keys=ZR;return Object.keys||ZR};_Me.exports=ZR});var SMe=ye((mdr,AMe)=>{"use strict";var q4t=eW(),wMe=Y8()(),TMe=hA(),xMe=Object,B4t=TMe("Array.prototype.push"),bMe=TMe("Object.prototype.propertyIsEnumerable"),N4t=wMe?Object.getOwnPropertySymbols:null;AMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=xMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var tW=SMe(),U4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var kMe=function(e){return e!==e};CMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||kMe(t)&&kMe(r))}});var YR=ye((xdr,LMe)=>{"use strict";var G4t=rW();LMe.exports=function(){return typeof Object.is=="function"?Object.is:G4t}});var SE=ye((bdr,DMe)=>{"use strict";var H4t=eW(),j4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",W4t=Object.prototype.toString,X4t=Array.prototype.concat,PMe=Object.defineProperty,Z4t=function(e){return typeof e=="function"&&W4t.call(e)==="[object Function]"},Y4t=qH()(),IMe=PMe&&Y4t,K4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!Z4t(n)||!n())return}IMe?PMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},RMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=H4t(t);j4t&&(n=X4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var J4t=YR(),$4t=SE();FMe.exports=function(){var t=J4t();return $4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var NMe=ye((Tdr,BMe)=>{"use strict";var Q4t=SE(),eEt=rE(),tEt=rW(),OMe=YR(),rEt=zMe(),qMe=eEt(OMe(),Object);Q4t(qMe,{getPolyfill:OMe,implementation:tEt,shim:rEt});BMe.exports=qMe});var iW=ye((Adr,UMe)=>{"use strict";UMe.exports=function(t){return t!==t}});var nW=ye((Sdr,VMe)=>{"use strict";var iEt=iW();VMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:iEt}});var HMe=ye((Mdr,GMe)=>{"use strict";var nEt=SE(),aEt=nW();GMe.exports=function(){var t=aEt();return nEt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var ZMe=ye((Edr,XMe)=>{"use strict";var oEt=rE(),sEt=SE(),lEt=iW(),jMe=nW(),uEt=HMe(),WMe=oEt(jMe(),Number);sEt(WMe,{getPolyfill:jMe,implementation:lEt,shim:uEt});XMe.exports=WMe});var v4e=ye((kdr,d4e)=>{"use strict";function YMe(e,t){return dEt(e)||hEt(e,t)||fEt(e,t)||cEt()}function cEt(){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 fEt(e,t){if(e){if(typeof e=="string")return KMe(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 KMe(e,t)}}function KMe(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 $R(e){return Object.keys(e).filter(wEt).concat(eD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function u4e(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 p4e(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 CE=1e3,LE=CE*60,PE=LE*60,IE=PE*24,ZEt=IE*365.25;R4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return YEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?JEt(e):KEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function YEt(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*ZEt;case"days":case"day":case"d":return r*IE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*PE;case"minutes":case"minute":case"mins":case"min":case"m":return r*LE;case"seconds":case"second":case"secs":case"sec":case"s":return r*CE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function KEt(e){return e>=IE?Math.round(e/IE)+"d":e>=PE?Math.round(e/PE)+"h":e>=LE?Math.round(e/LE)+"m":e>=CE?Math.round(e/CE)+"s":e+"ms"}function JEt(e){return lD(e,IE,"day")||lD(e,PE,"hour")||lD(e,LE,"minute")||lD(e,CE,"second")||e+" ms"}function lD(e,t,r){if(!(e{Lc=F4e.exports=fW.debug=fW.default=fW;Lc.coerce=rkt;Lc.disable=ekt;Lc.enable=QEt;Lc.enabled=tkt;Lc.humanize=D4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var cW;function $Et(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 fW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(cW||n);r.diff=i,r.prev=cW,r.curr=n,cW=n;for(var a=new Array(arguments.length),o=0;o{up=q4e.exports=z4e();up.log=akt;up.formatArgs=nkt;up.save=okt;up.load=O4e;up.useColors=ikt;up.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:skt();up.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function ikt(){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 nkt(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 akt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function okt(e){try{e==null?up.storage.removeItem("debug"):up.storage.debug=e}catch(t){}}function O4e(){var e;try{e=up.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}up.enable(O4e());function skt(){try{return window.localStorage}catch(e){}}});var X4e=ye((Pdr,W4e)=>{var AA=gE(),J_=B4e()("stream-parser");W4e.exports=ukt;var U4e=-1,uD=0,lkt=1,V4e=2;function ukt(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=ckt,e._skipBytes=fkt,t&&(e._passthrough=hkt),t?e._transform=vkt:e._write=dkt}function RE(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=U4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ckt(e,t){AA(!this._parserCallback,'there is already a "callback" set!'),AA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||RE(this),J_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=uD}function fkt(e,t){AA(!this._parserCallback,'there is already a "callback" set!'),AA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||RE(this),J_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=lkt}function hkt(e,t){AA(!this._parserCallback,'There is already a "callback" set!'),AA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||RE(this),J_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=V4e}function dkt(e,t,r){this._parserInit||RE(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),H4e(this,e,null,r)}function vkt(e,t,r){this._parserInit||RE(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),H4e(this,e,t,r)}function G4e(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 G4e(e,t.slice(i.length),r,n)}})}}function N4e(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===uD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===V4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===uD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==uD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=U4e,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 H4e=j4e(G4e);function j4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Jy=>{"use strict";var Z4e=NSe().Transform,pkt=X4e();function DE(){Z4e.call(this,{readableObjectMode:!0})}DE.prototype=Object.create(Z4e.prototype);DE.prototype.constructor=DE;pkt(DE.prototype);Jy.ParserStream=DE;Jy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var SA=rc().readUInt16BE,dW=rc().readUInt32BE;function FE(e,t){if(e.length<4+t)return null;var r=dW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=SA(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}fD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(xkt(e,t),!!t.sizes.length){var r=bkt(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 hD(e,t){var r=new Error(e);return r.code=t,r}function wkt(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 hD("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 hD("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 hD("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 hD("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)})};vW.exports.ExifParser=$y;vW.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 J4e=ye((Fdr,K4e)=>{"use strict";var Tkt=rc().str2arr,Akt=rc().sliceEq,Skt=rc().readUInt32BE,vD=Y4e(),Mkt=dD(),Ekt=Tkt("ftyp");K4e.exports=function(e){if(Akt(e,4,Ekt)){var t=vD.unbox(e,0);if(t){var r=vD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=vD.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=vD.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=Skt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=Mkt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var eEe=ye((zdr,Q4e)=>{"use strict";var kkt=rc().str2arr,Ckt=rc().sliceEq,$4e=rc().readUInt16LE,Lkt=kkt("BM");Q4e.exports=function(e){if(!(e.length<26)&&Ckt(e,0,Lkt))return{width:$4e(e,18),height:$4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var aEe=ye((Odr,nEe)=>{"use strict";var iEe=rc().str2arr,tEe=rc().sliceEq,rEe=rc().readUInt16LE,Pkt=iEe("GIF87a"),Ikt=iEe("GIF89a");nEe.exports=function(e){if(!(e.length<10)&&!(!tEe(e,0,Pkt)&&!tEe(e,0,Ikt)))return{width:rEe(e,6),height:rEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var lEe=ye((qdr,sEe)=>{"use strict";var pW=rc().readUInt16LE,Rkt=0,Dkt=1,oEe=16;sEe.exports=function(e){var t=pW(e,0),r=pW(e,2),n=pW(e,4);if(!(t!==Rkt||r!==Dkt||!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 cEe=ye((Bdr,uEe)=>{"use strict";var gW=rc().readUInt16BE,Fkt=rc().str2arr,zkt=rc().sliceEq,Okt=dD(),qkt=Fkt("Exif\0\0");uEe.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=gW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&zkt(e,t,qkt)&&(i=Okt.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 pEe=ye((Ndr,vEe)=>{"use strict";var dEe=rc().str2arr,fEe=rc().sliceEq,hEe=rc().readUInt32BE,Bkt=dEe(`\x89PNG\r +`));var s=new K_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}Ef.match=function e(t,r,n){L4e(t,r,n,e,"match")};Ef.doesNotMatch=function e(t,r,n){L4e(t,r,n,e,"doesNotMatch")};function P4e(){for(var e=arguments.length,t=new Array(e),r=0;r{var LE=1e3,PE=LE*60,IE=PE*60,RE=IE*24,ZEt=RE*365.25;R4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return YEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?JEt(e):KEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function YEt(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*ZEt;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 KEt(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 JEt(e){return lD(e,RE,"day")||lD(e,IE,"hour")||lD(e,PE,"minute")||lD(e,LE,"second")||e+" ms"}function lD(e,t,r){if(!(e{Lc=F4e.exports=fW.debug=fW.default=fW;Lc.coerce=rkt;Lc.disable=ekt;Lc.enable=QEt;Lc.enabled=tkt;Lc.humanize=D4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var cW;function $Et(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 fW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(cW||n);r.diff=i,r.prev=cW,r.curr=n,cW=n;for(var a=new Array(arguments.length),o=0;o{up=q4e.exports=z4e();up.log=akt;up.formatArgs=nkt;up.save=okt;up.load=O4e;up.useColors=ikt;up.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:skt();up.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function ikt(){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 nkt(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 akt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function okt(e){try{e==null?up.storage.removeItem("debug"):up.storage.debug=e}catch(t){}}function O4e(){var e;try{e=up.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}up.enable(O4e());function skt(){try{return window.localStorage}catch(e){}}});var X4e=ye((Pdr,W4e)=>{var AA=mE(),J_=B4e()("stream-parser");W4e.exports=ukt;var U4e=-1,uD=0,lkt=1,V4e=2;function ukt(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=ckt,e._skipBytes=fkt,t&&(e._passthrough=hkt),t?e._transform=vkt:e._write=dkt}function DE(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=U4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ckt(e,t){AA(!this._parserCallback,'there is already a "callback" set!'),AA(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=uD}function fkt(e,t){AA(!this._parserCallback,'there is already a "callback" set!'),AA(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=lkt}function hkt(e,t){AA(!this._parserCallback,'There is already a "callback" set!'),AA(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=V4e}function dkt(e,t,r){this._parserInit||DE(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),H4e(this,e,null,r)}function vkt(e,t,r){this._parserInit||DE(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),H4e(this,e,t,r)}function G4e(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 G4e(e,t.slice(i.length),r,n)}})}}function N4e(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===uD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===V4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===uD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==uD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=U4e,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 H4e=j4e(G4e);function j4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Jy=>{"use strict";var Z4e=NSe().Transform,pkt=X4e();function FE(){Z4e.call(this,{readableObjectMode:!0})}FE.prototype=Object.create(Z4e.prototype);FE.prototype.constructor=FE;pkt(FE.prototype);Jy.ParserStream=FE;Jy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var SA=rc().readUInt16BE,dW=rc().readUInt32BE;function zE(e,t){if(e.length<4+t)return null;var r=dW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=SA(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}fD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(xkt(e,t),!!t.sizes.length){var r=bkt(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 hD(e,t){var r=new Error(e);return r.code=t,r}function wkt(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 hD("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 hD("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 hD("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 hD("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)})};vW.exports.ExifParser=$y;vW.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 J4e=ye((Fdr,K4e)=>{"use strict";var Tkt=rc().str2arr,Akt=rc().sliceEq,Skt=rc().readUInt32BE,vD=Y4e(),Mkt=dD(),Ekt=Tkt("ftyp");K4e.exports=function(e){if(Akt(e,4,Ekt)){var t=vD.unbox(e,0);if(t){var r=vD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=vD.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=vD.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=Skt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=Mkt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var eEe=ye((zdr,Q4e)=>{"use strict";var kkt=rc().str2arr,Ckt=rc().sliceEq,$4e=rc().readUInt16LE,Lkt=kkt("BM");Q4e.exports=function(e){if(!(e.length<26)&&Ckt(e,0,Lkt))return{width:$4e(e,18),height:$4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var aEe=ye((Odr,nEe)=>{"use strict";var iEe=rc().str2arr,tEe=rc().sliceEq,rEe=rc().readUInt16LE,Pkt=iEe("GIF87a"),Ikt=iEe("GIF89a");nEe.exports=function(e){if(!(e.length<10)&&!(!tEe(e,0,Pkt)&&!tEe(e,0,Ikt)))return{width:rEe(e,6),height:rEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var lEe=ye((qdr,sEe)=>{"use strict";var pW=rc().readUInt16LE,Rkt=0,Dkt=1,oEe=16;sEe.exports=function(e){var t=pW(e,0),r=pW(e,2),n=pW(e,4);if(!(t!==Rkt||r!==Dkt||!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 cEe=ye((Bdr,uEe)=>{"use strict";var gW=rc().readUInt16BE,Fkt=rc().str2arr,zkt=rc().sliceEq,Okt=dD(),qkt=Fkt("Exif\0\0");uEe.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=gW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&zkt(e,t,qkt)&&(i=Okt.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 pEe=ye((Ndr,vEe)=>{"use strict";var dEe=rc().str2arr,fEe=rc().sliceEq,hEe=rc().readUInt32BE,Bkt=dEe(`\x89PNG\r  -`),Nkt=dEe("IHDR");vEe.exports=function(e){if(!(e.length<24)&&fEe(e,0,Bkt)&&fEe(e,12,Nkt))return{width:hEe(e,16),height:hEe(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var yEe=ye((Udr,mEe)=>{"use strict";var Ukt=rc().str2arr,Vkt=rc().sliceEq,gEe=rc().readUInt32BE,Gkt=Ukt("8BPS\0");mEe.exports=function(e){if(!(e.length<22)&&Vkt(e,0,Gkt))return{width:gEe(e,18),height:gEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var bEe=ye((Vdr,xEe)=>{"use strict";function Hkt(e){return e===32||e===9||e===13||e===10}function MA(e){return typeof e=="number"&&isFinite(e)&&e>0}function jkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,Xkt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Zkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Ykt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Kkt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,_Ee=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Jkt(e){var t=e.match(Zkt),r=e.match(Ykt),n=e.match(Kkt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Xm(e){return _Ee.test(e)?e.match(_Ee)[0]:"px"}xEe.exports=function(e){if(jkt(e)){for(var t="",r=0;r{"use strict";var AEe=rc().str2arr,wEe=rc().sliceEq,$kt=rc().readUInt16LE,Qkt=rc().readUInt16BE,eCt=rc().readUInt32LE,tCt=rc().readUInt32BE,rCt=AEe("II*\0"),iCt=AEe("MM\0*");function pD(e,t,r){return r?Qkt(e,t):$kt(e,t)}function mW(e,t,r){return r?tCt(e,t):eCt(e,t)}function TEe(e,t,r){var n=pD(e,t+2,r),i=mW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?pD(e,t+8,r):mW(e,t+8,r)}SEe.exports=function(e){if(!(e.length<8)&&!(!wEe(e,0,rCt)&&!wEe(e,0,iCt))){var t=e[0]===77,r=mW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=pD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var CEe=rc().str2arr,EEe=rc().sliceEq,kEe=rc().readUInt16LE,yW=rc().readUInt32LE,nCt=dD(),aCt=CEe("RIFF"),oCt=CEe("WEBP");function sCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:kEe(e,t+6)&16383,height:kEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function lCt(e,t){if(e[t]===47){var r=yW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function uCt(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||sCt(e,t+8):a==="VP8L"&&o>=9?r=r||lCt(e,t+8):a==="VP8X"&&o>=10?r=r||uCt(e,t+8):a==="EXIF"&&(n=nCt.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 REe=ye((jdr,IEe)=>{"use strict";IEe.exports={avif:J4e(),bmp:eEe(),gif:aEe(),ico:lEe(),jpeg:cEe(),png:pEe(),psd:yEe(),svg:bEe(),tiff:MEe(),webp:PEe()}});var DEe=ye((Wdr,xW)=>{"use strict";var _W=REe();function cCt(e){for(var t=Object.keys(_W),r=0;r{"use strict";var fCt=DEe(),hCt=Oy().IMAGE_URL_PREFIX,dCt=_2().Buffer;FEe.getImageSize=function(e){var t=e.replace(hCt,""),r=new dCt(t,"base64");return fCt(r)}});var BEe=ye((Zdr,qEe)=>{"use strict";var OEe=Dr(),vCt=QT(),pCt=Eo(),gD=ho(),gCt=Dr().maxRowLength,mCt=zEe().getImageSize;qEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=gCt(r.z);else if(r._hasSource){var a=mCt(r.source);n=a.height,i=a.width}var o=gD.getFromId(t,r.xaxis||"x"),s=gD.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 bCt=Oa(),R2=Dr(),NEe=R2.strTranslate,wCt=Wp(),TCt=QT(),ACt=oG(),SCt=g8().STYLE;UEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ACt();R2.makeTraceGroups(i,n,"im").each(function(l){var u=bCt.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,_=c.y0,b=c.w,p=c.h,k=f.dx,E=f.dy,T,L,x,C,M,g;for(g=0;T===void 0&&g0;)L=a.c2p(v+g*k),g--;for(g=0;C===void 0&&g0;)M=o.c2p(_+g*E),g--;if(LH[0];if(re||oe){var _e=T+A/2,Ce=C+z/2;j+="transform:"+NEe(_e+"px",Ce+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+NEe(-_e+"px",-Ce+"px")+";"}}Z.attr("style",j);var Le=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 Ee=f._image;Ee.onload=function(){Se.drawImage(Ee,0,0),f._canvas={el:ie,source:f.source},ge()},Ee.setAttribute("src",f.source)}}).then(function(){var ge,ie;if(f._hasZ)ie=G(function(Ae,Be){var Pe=d[Be][Ae];return R2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ge=ie.toDataURL("image/png");else if(f._hasSource)if(h)ge=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,Be){var Pe=4*(Be*b+Ae);return[Ee[Pe],Ee[Pe+1],Ee[Pe+2],Ee[Pe+3]]}),ge=ie.toDataURL("image/png")}Z.attr({"xlink:href":ge,height:z,width:A,x:T,y:C})});t._promises.push(Le)})}});var HEe=ye((Kdr,GEe)=>{"use strict";var MCt=Oa();GEe.exports=function(t){MCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var ZEe=ye((Jdr,XEe)=>{"use strict";var jEe=vf(),WEe=Dr(),mD=WEe.isArrayOrTypedArray,ECt=QT();XEe.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=ECt.colormodel[a.colormodel],_=v.colormodel||a.colormodel,b=_.length,p=a._scaler(c),k=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+k[0],p[1]+k[1],p[2]+k[2]].join(", ")),b===4&&E.push(", "+p[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=_.toUpperCase()+": "+E);var T;mD(a.hovertext)&&mD(a.hovertext[u])?T=a.hovertext[u][l]:mD(a.text)&&mD(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,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[WEe.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:M,text:T,hovertemplateLabels:{zLabel:M,colorLabel:E,"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 KEe=ye(($dr,YEe)=>{"use strict";YEe.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 $Ee=ye((Qdr,JEe)=>{"use strict";JEe.exports={attributes:gH(),supplyDefaults:Z3e(),calc:BEe(),plot:VEe(),style:HEe(),hoverPoints:ZEe(),eventData:KEe(),moduleType:"trace",name:"image",basePlotModule:mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var eke=ye((evr,QEe)=>{"use strict";QEe.exports=$Ee()});var F2=ye((tvr,rke)=>{"use strict";var bW=Gl(),kCt=Cc().attributes,CCt=ec(),LCt=Ih(),{hovertemplateAttrs:PCt,texttemplateAttrs:ICt,templatefallbackAttrs:tke}=Ll(),D2=Ao().extendFlat,RCt=Pd().pattern,yD=CCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});rke.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:LCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:RCt,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:D2({},bW.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:PCt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:tke(),texttemplate:ICt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:tke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:D2({},yD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:D2({},yD,{}),outsidetextfont:D2({},yD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:D2({},bW.showlegend,{arrayOk:!0}),legend:D2({},bW.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:D2({},yD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:kCt({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 z2=ye((rvr,ake)=>{"use strict";var DCt=Eo(),zE=Dr(),FCt=F2(),zCt=Cc().defaults,OCt=i0().handleText,qCt=Dr().coercePattern;function ike(e,t){var r=zE.isArrayOrTypedArray(e),n=zE.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 nke(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");qCt(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 BCt(e,t,r,n){function i(k,E){return zE.coerce(e,t,FCt,k,E)}var a=i("labels"),o=i("values"),s=ike(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,nke(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate");i("texttemplatefallback");var f;if(c||(f=i("textinfo",zE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||f&&f!=="none"){var h=i("textposition");OCt(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");zCt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var p=i("title.position",_?"middle center":"top center");!_&&p==="middle center"&&(t.title.position="top center"),zE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}ake.exports={handleLabelsAndValues:ike,handleMarkerDefaults:nke,supplyDefaults:BCt}});var _D=ye((ivr,oke)=>{"use strict";oke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var lke=ye((nvr,ske)=>{"use strict";var NCt=Dr(),UCt=_D();ske.exports=function(t,r){function n(i,a){return NCt.coerce(t,r,UCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var EA=ye((avr,fke)=>{"use strict";var VCt=Eo(),wW=fd(),GCt=ka(),HCt={};function jCt(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"?_:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function uke(e){return function(r,n){return!r||(r=wW(r),!r.isValid())?!1:(r=GCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function WCt(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=cke(a,HCt));for(var s=0,l=0;l{"use strict";var XCt=ip().appendArrayMultiPointValues;hke.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]),XCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var TD=ye((svr,Dke)=>{"use strict";var Fp=Oa(),ZCt=Mc(),xD=vf(),_ke=ka(),Qy=So(),rv=Dr(),YCt=rv.strScale,vke=rv.strTranslate,TW=Zl(),xke=bv(),KCt=xke.recordMinTextSize,JCt=xke.clearMinTextSize,bke=A_().TEXTPAD,ns=g_(),bD=dke(),pke=Dr().isValidTextValue;function $Ct(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;JCt("pie",n),Ake(t,e),Pke(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Fp.select(this),l=o[0],u=l.trace;s6t(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,M=Fp.select(this),g=M.selectAll("path.surface").data([T]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(wke,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 A(N,H,re,oe){var _e=oe*(H[0]-N[0]),Ce=oe*(H[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+_e+","+Ce}var z=u.hole;if(T.v===l.vTotal){var O="M"+(x+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*T.px0[0])+","+(C+z*T.px0[1])+A(T.px0,T.pxmid,!1,z)+A(T.pxmid,T.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var U=A(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])+A(T.px1,T.px0,!1,z)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else g.attr("d","M"+x+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Ike(e,T,l);var Z=ns.castOption(u.textposition,T.pts),j=M.selectAll("g.slicetext").data(T.text&&Z!=="none"?[0]:[]);j.enter().append("g").classed("slicetext",!0),j.exit().remove(),j.each(function(){var N=rv.ensureSingle(Fp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),H=rv.ensureUniformFontSize(e,Z==="outside"?e6t(u,T,n.font):Tke(u,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qy.font,H).call(TW.convertToTspans,e);var re=Qy.bBox(N.node()),oe;if(Z==="outside")oe=yke(re,T);else if(oe=Ske(re,T,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Qy.font,_e),re=Qy.bBox(N.node()),oe=yke(re,T)}var Ce=oe.textPosAngle,Le=Ce===void 0?T.pxmid:wD(l.r,Ce);if(oe.targetX=x+Le[0]*oe.rCenter+(oe.x||0),oe.targetY=C+Le[1]*oe.rCenter+(oe.y||0),Rke(oe,re),oe.outside){var ge=oe.targetY;T.yLabelMin=ge-re.height/2,T.yLabelMid=ge,T.yLabelMax=ge+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}oe.fontSize=H.size,KCt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});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=rv.ensureSingle(Fp.select(this),"text","",function(C){C.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qy.font,u.title.font).call(TW.convertToTspans,e);var x;u.title.position==="middle center"?x=i6t(l):x=Cke(l,i),T.attr("transform",vke(x.x,x.y)+YCt(Math.min(1,x.scale))+vke(x.tx,x.ty))}),h&&a6t(f,u),QCt(c,u),h&&u.automargin){var v=Qy.bBox(s.node()),_=u.domain,b=i.w*(_.x[1]-_.x[0]),p=i.h*(_.y[1]-_.y[0]),k=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;ZCt.autoMargin(e,"pie."+u.uid+".automargin",{xl:_.x[0]-k,xr:_.x[1]+k,yb:_.y[0]-E,yt:_.y[1]+E,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 QCt(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,rv.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;rv.ensureSingle(n,"path","textline").call(_ke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function wke(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=xD.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),_=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;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=ns.formatPieValue(l.v,_),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=ns.formatPiePercent(l.percent,_),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var k=c.hoverlabel,E=k.font,T=[];xD.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(E.family,l.pts),fontSize:ns.castOption(E.size,l.pts),fontColor:ns.castOption(E.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:[bD(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:[bD(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:[bD(f,c)],event:Fp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(xD.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=[bD(l,c)],xD.click(t,Fp.event))})}function e6t(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 Tke(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||_ke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Ake(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 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;_.push(b)}(v||d)&&(b=gke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(v||h)&&(b=mke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var T=0,L=0,x=0;x<_.length;x++){var C=_[x].scale;if(L=1)break}return _[T]}function t6t(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 i6t(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 Cke(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=Lke(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=n6t(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=AW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function n6t(e,t){return e/(t===void 0?1:t)}function AW(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 Lke(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function a6t(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function _(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function p(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-x,P,A,z,O,U,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(A=0;A=(ns.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-x-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(C+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(A-f.indexOf(E)),U=z.cxFinal+a(z.px0[0],z.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?_: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=r6t(u,t))}function wD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Ike(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 _=ns.getFirstFilled(i.text,t.pts);pke(_)&&v.push(_)}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:rv.castOption(i,T.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var k=b(t),E=ns.getFirstFilled(i.text,t.pts);(pke(E)||E==="")&&(k.text=E),t.text=rv.texttemplateString({data:[k,i._meta],fallback:i.texttemplatefallback,labels:k,locale:e._fullLayout._d3locale,template:p})}}}function Rke(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}Dke.exports={plot:$Ct,formatSliceLabel:Ike,transformInsideText:Ske,determineInsideTextFont:Tke,positionTitleOutside:Cke,prerenderTitles:Ake,layoutAreas:Pke,attachFxHandlers:wke,computeTransform:Rke}});var Oke=ye((lvr,zke)=>{"use strict";var Fke=Oa(),l6t=X3(),u6t=bv().resizeText;zke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");u6t(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Fke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Fke.select(this).call(l6t,s,a,t)})})}});var Bke=ye(kA=>{"use strict";var qke=Mc();kA.name="pie";kA.plot=function(e,t,r,n){qke.plotBasePlot(kA.name,e,t,r,n)};kA.clean=function(e,t,r,n){qke.cleanBasePlot(kA.name,e,t,r,n)}});var Uke=ye((cvr,Nke)=>{"use strict";Nke.exports={attributes:F2(),supplyDefaults:z2().supplyDefaults,supplyLayoutDefaults:lke(),layoutAttributes:_D(),calc:EA().calc,crossTraceCalc:EA().crossTraceCalc,plot:TD().plot,style:Oke(),styleOne:X3(),moduleType:"trace",name:"pie",basePlotModule:Bke(),categories:["pie-like","pie","showLegend"],meta:{}}});var Gke=ye((fvr,Vke)=>{"use strict";Vke.exports=Uke()});var jke=ye(CA=>{"use strict";var Hke=Mc();CA.name="sunburst";CA.plot=function(e,t,r,n){Hke.plotBasePlot(CA.name,e,t,r,n)};CA.clean=function(e,t,r,n){Hke.cleanBasePlot(CA.name,e,t,r,n)}});var SW=ye((dvr,Wke)=>{"use strict";Wke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var qE=ye((vvr,Yke)=>{"use strict";var c6t=Gl(),{hovertemplateAttrs:f6t,texttemplateAttrs:h6t,templatefallbackAttrs:Xke}=Ll(),d6t=Tu(),v6t=Cc().attributes,e1=F2(),Zke=SW(),OE=Ao().extendFlat,p6t=Pd().pattern;Yke.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:p6t,editType:"calc"},d6t("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:h6t({editType:"plot"},{keys:Zke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Xke({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:OE({},c6t.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:f6t({},{keys:Zke.eventDataKeys}),hovertemplatefallback:Xke(),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:v6t({name:"sunburst",trace:!0,editType:"calc"})}});var MW=ye((pvr,Kke)=>{"use strict";Kke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var eCe=ye((gvr,Qke)=>{"use strict";var Jke=Dr(),g6t=qE(),m6t=Cc().defaults,y6t=i0().handleText,_6t=z2().handleMarkerDefaults,$ke=tc(),x6t=$ke.hasColorscale,b6t=$ke.handleDefaults;Qke.exports=function(t,r,n,i){function a(h,d){return Jke.coerce(t,r,g6t,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"),_6t(t,r,i,a);var u=r._hasColorscale=x6t(t,"marker","colors")||(t.marker||{}).coloraxis;u&&b6t(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",Jke.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";y6t(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"),m6t(r,i,a),r._length=null}});var rCe=ye((mvr,tCe)=>{"use strict";var w6t=Dr(),T6t=MW();tCe.exports=function(t,r){function n(i,a){return w6t.coerce(t,r,T6t,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var BE=ye((AD,iCe)=>{(function(e,t){typeof AD=="object"&&typeof iCe!="undefined"?t(AD):(e=e||self,t(e.d3=e.d3||{}))})(AD,function(e){"use strict";function t(We,tt){return We.parent===tt.parent?1:2}function r(We){return We.reduce(n,0)/We.length}function n(We,tt){return We+tt.x}function i(We){return 1+We.reduce(a,0)}function a(We,tt){return Math.max(We,tt.y)}function o(We){for(var tt;tt=We.children;)We=tt[0];return We}function s(We){for(var tt;tt=We.children;)We=tt[tt.length-1];return We}function l(){var We=t,tt=1,xt=1,Ie=!1;function xe(ke){var vt,ir=0;ke.eachAfter(function($r){var di=$r.children;di?($r.x=r(di),$r.y=i(di)):($r.x=vt?ir+=We($r,vt):0,$r.y=0,vt=$r)});var ar=o(ke),vr=s(ke),ii=ar.x-We(ar,vr)/2,pi=vr.x+We(vr,ar)/2;return ke.eachAfter(Ie?function($r){$r.x=($r.x-ke.x)*tt,$r.y=(ke.y-$r.y)*xt}:function($r){$r.x=($r.x-ii)/(pi-ii)*tt,$r.y=(1-(ke.y?$r.y/ke.y:1))*xt})}return xe.separation=function(ke){return arguments.length?(We=ke,xe):We},xe.size=function(ke){return arguments.length?(Ie=!1,tt=+ke[0],xt=+ke[1],xe):Ie?null:[tt,xt]},xe.nodeSize=function(ke){return arguments.length?(Ie=!0,tt=+ke[0],xt=+ke[1],xe):Ie?[tt,xt]:null},xe}function u(We){var tt=0,xt=We.children,Ie=xt&&xt.length;if(!Ie)tt=1;else for(;--Ie>=0;)tt+=xt[Ie].value;We.value=tt}function c(){return this.eachAfter(u)}function f(We){var tt=this,xt,Ie=[tt],xe,ke,vt;do for(xt=Ie.reverse(),Ie=[];tt=xt.pop();)if(We(tt),xe=tt.children,xe)for(ke=0,vt=xe.length;ke=0;--xe)xt.push(Ie[xe]);return this}function d(We){for(var tt=this,xt=[tt],Ie=[],xe,ke,vt;tt=xt.pop();)if(Ie.push(tt),xe=tt.children,xe)for(ke=0,vt=xe.length;ke=0;)xt+=Ie[xe].value;tt.value=xt})}function _(We){return this.eachBefore(function(tt){tt.children&&tt.children.sort(We)})}function b(We){for(var tt=this,xt=p(tt,We),Ie=[tt];tt!==xt;)tt=tt.parent,Ie.push(tt);for(var xe=Ie.length;We!==xt;)Ie.splice(xe,0,We),We=We.parent;return Ie}function p(We,tt){if(We===tt)return We;var xt=We.ancestors(),Ie=tt.ancestors(),xe=null;for(We=xt.pop(),tt=Ie.pop();We===tt;)xe=We,We=xt.pop(),tt=Ie.pop();return xe}function k(){for(var We=this,tt=[We];We=We.parent;)tt.push(We);return tt}function E(){var We=[];return this.each(function(tt){We.push(tt)}),We}function T(){var We=[];return this.eachBefore(function(tt){tt.children||We.push(tt)}),We}function L(){var We=this,tt=[];return We.each(function(xt){xt!==We&&tt.push({source:xt.parent,target:xt})}),tt}function x(We,tt){var xt=new A(We),Ie=+We.value&&(xt.value=We.value),xe,ke=[xt],vt,ir,ar,vr;for(tt==null&&(tt=M);xe=ke.pop();)if(Ie&&(xe.value=+xe.data.value),(ir=tt(xe.data))&&(vr=ir.length))for(xe.children=new Array(vr),ar=vr-1;ar>=0;--ar)ke.push(vt=xe.children[ar]=new A(ir[ar])),vt.parent=xe,vt.depth=xe.depth+1;return xt.eachBefore(P)}function C(){return x(this).eachBefore(g)}function M(We){return We.children}function g(We){We.data=We.data.data}function P(We){var tt=0;do We.height=tt;while((We=We.parent)&&We.height<++tt)}function A(We){this.data=We,this.depth=this.height=0,this.parent=null}A.prototype=x.prototype={constructor:A,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:_,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var z=Array.prototype.slice;function O(We){for(var tt=We.length,xt,Ie;tt;)Ie=Math.random()*tt--|0,xt=We[tt],We[tt]=We[Ie],We[Ie]=xt;return We}function U(We){for(var tt=0,xt=(We=O(z.call(We))).length,Ie=[],xe,ke;tt0&&xt*xt>Ie*Ie+xe*xe}function N(We,tt){for(var xt=0;xtar?(xe=(vr+ar-ke)/(2*vr),ir=Math.sqrt(Math.max(0,ar/vr-xe*xe)),xt.x=We.x-xe*Ie-ir*vt,xt.y=We.y-xe*vt+ir*Ie):(xe=(vr+ke-ar)/(2*vr),ir=Math.sqrt(Math.max(0,ke/vr-xe*xe)),xt.x=tt.x+xe*Ie-ir*vt,xt.y=tt.y+xe*vt+ir*Ie)):(xt.x=tt.x+xt.r,xt.y=tt.y)}function Le(We,tt){var xt=We.r+tt.r-1e-6,Ie=tt.x-We.x,xe=tt.y-We.y;return xt>0&&xt*xt>Ie*Ie+xe*xe}function ge(We){var tt=We._,xt=We.next._,Ie=tt.r+xt.r,xe=(tt.x*xt.r+xt.x*tt.r)/Ie,ke=(tt.y*xt.r+xt.y*tt.r)/Ie;return xe*xe+ke*ke}function ie(We){this._=We,this.next=null,this.previous=null}function Se(We){if(!(xe=We.length))return 0;var tt,xt,Ie,xe,ke,vt,ir,ar,vr,ii,pi;if(tt=We[0],tt.x=0,tt.y=0,!(xe>1))return tt.r;if(xt=We[1],tt.x=-xt.r,xt.x=tt.r,xt.y=0,!(xe>2))return tt.r+xt.r;Ce(xt,tt,Ie=We[2]),tt=new ie(tt),xt=new ie(xt),Ie=new ie(Ie),tt.next=Ie.previous=xt,xt.next=tt.previous=Ie,Ie.next=xt.previous=tt;e:for(ir=3;ir0)throw new Error("cycle");return ir}return xt.id=function(Ie){return arguments.length?(We=Be(Ie),xt):We},xt.parentId=function(Ie){return arguments.length?(tt=Be(Ie),xt):tt},xt}function $e(We,tt){return We.parent===tt.parent?1:2}function St(We){var tt=We.children;return tt?tt[0]:We.t}function Qt(We){var tt=We.children;return tt?tt[tt.length-1]:We.t}function Gt(We,tt,xt){var Ie=xt/(tt.i-We.i);tt.c-=Ie,tt.s+=xt,We.c+=Ie,tt.z+=xt,tt.m+=xt}function _t(We){for(var tt=0,xt=0,Ie=We.children,xe=Ie.length,ke;--xe>=0;)ke=Ie[xe],ke.z+=tt,ke.m+=tt,tt+=ke.s+(xt+=ke.c)}function It(We,tt,xt){return We.a.parent===tt.parent?We.a:xt}function mt(We,tt){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=tt}mt.prototype=Object.create(A.prototype);function er(We){for(var tt=new mt(We,0),xt,Ie=[tt],xe,ke,vt,ir;xt=Ie.pop();)if(ke=xt._.children)for(xt.children=new Array(ir=ke.length),vt=ir-1;vt>=0;--vt)Ie.push(xe=xt.children[vt]=new mt(ke[vt],vt)),xe.parent=xt;return(tt.parent=new mt(null,0)).children=[tt],tt}function lr(){var We=$e,tt=1,xt=1,Ie=null;function xe(vr){var ii=er(vr);if(ii.eachAfter(ke),ii.parent.m=-ii.z,ii.eachBefore(vt),Ie)vr.eachBefore(ar);else{var pi=vr,$r=vr,di=vr;vr.eachBefore(function(qn){qn.x$r.x&&($r=qn),qn.depth>di.depth&&(di=qn)});var ji=pi===$r?1:We(pi,$r)/2,In=ji-pi.x,wi=tt/($r.x+ji+In),On=xt/(di.depth||1);vr.eachBefore(function(qn){qn.x=(qn.x+In)*wi,qn.y=qn.depth*On})}return vr}function ke(vr){var ii=vr.children,pi=vr.parent.children,$r=vr.i?pi[vr.i-1]:null;if(ii){_t(vr);var di=(ii[0].z+ii[ii.length-1].z)/2;$r?(vr.z=$r.z+We(vr._,$r._),vr.m=vr.z-di):vr.z=di}else $r&&(vr.z=$r.z+We(vr._,$r._));vr.parent.A=ir(vr,$r,vr.parent.A||pi[0])}function vt(vr){vr._.x=vr.z+vr.parent.m,vr.m+=vr.parent.m}function ir(vr,ii,pi){if(ii){for(var $r=vr,di=vr,ji=ii,In=$r.parent.children[0],wi=$r.m,On=di.m,qn=ji.m,Fn=In.m,ra;ji=Qt(ji),$r=St($r),ji&&$r;)In=St(In),di=Qt(di),di.a=vr,ra=ji.z+qn-$r.z-wi+We(ji._,$r._),ra>0&&(Gt(It(ji,vr,pi),vr,ra),wi+=ra,On+=ra),qn+=ji.m,wi+=$r.m,Fn+=In.m,On+=di.m;ji&&!Qt(di)&&(di.t=ji,di.m+=qn-On),$r&&!St(In)&&(In.t=$r,In.m+=wi-Fn,pi=vr)}return pi}function ar(vr){vr.x*=tt,vr.y=vr.depth*xt}return xe.separation=function(vr){return arguments.length?(We=vr,xe):We},xe.size=function(vr){return arguments.length?(Ie=!1,tt=+vr[0],xt=+vr[1],xe):Ie?null:[tt,xt]},xe.nodeSize=function(vr){return arguments.length?(Ie=!0,tt=+vr[0],xt=+vr[1],xe):Ie?[tt,xt]:null},xe}function wr(We,tt,xt,Ie,xe){for(var ke=We.children,vt,ir=-1,ar=ke.length,vr=We.value&&(xe-xt)/We.value;++irqn&&(qn=vr),Ut=wi*wi*la,Fn=Math.max(qn/Ut,Ut/On),Fn>ra){wi-=vr;break}ra=Fn}vt.push(ar={value:wi,dice:di1?Ie:1)},xt}(Lr);function Vr(){var We=Br,tt=!1,xt=1,Ie=1,xe=[0],ke=Pe,vt=Pe,ir=Pe,ar=Pe,vr=Pe;function ii($r){return $r.x0=$r.y0=0,$r.x1=xt,$r.y1=Ie,$r.eachBefore(pi),xe=[0],tt&&$r.eachBefore(Vt),$r}function pi($r){var di=xe[$r.depth],ji=$r.x0+di,In=$r.y0+di,wi=$r.x1-di,On=$r.y1-di;wi=$r-1){var qn=ke[pi];qn.x0=ji,qn.y0=In,qn.x1=wi,qn.y1=On;return}for(var Fn=vr[pi],ra=di/2+Fn,la=pi+1,Ut=$r-1;la>>1;vr[wt]On-In){var Er=(ji*nr+wi*rr)/di;ii(pi,la,rr,ji,In,Er,On),ii(la,$r,nr,Er,In,wi,On)}else{var Xr=(In*nr+On*rr)/di;ii(pi,la,rr,ji,In,wi,Xr),ii(la,$r,nr,ji,Xr,wi,On)}}}function Ge(We,tt,xt,Ie,xe){(We.depth&1?wr:ot)(We,tt,xt,Ie,xe)}var Je=function We(tt){function xt(Ie,xe,ke,vt,ir){if((ar=Ie._squarify)&&ar.ratio===tt)for(var ar,vr,ii,pi,$r=-1,di,ji=ar.length,In=Ie.value;++$r1?Ie:1)},xt}(Lr);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=ut,e.stratify=fr,e.tree=lr,e.treemap=Vr,e.treemapBinary=dt,e.treemapDice=ot,e.treemapResquarify=Je,e.treemapSlice=wr,e.treemapSliceDice=Ge,e.treemapSquarify=Br,Object.defineProperty(e,"__esModule",{value:!0})})});var UE=ye(NE=>{"use strict";var nCe=BE(),A6t=Eo(),LA=Dr(),S6t=tc().makeColorScaleFuncFromTrace,M6t=EA().makePullColorFn,E6t=EA().generateExtendedColors,k6t=tc().calc,C6t=fs().ALMOST_EQUAL,L6t={},P6t={},I6t={};NE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=LA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=LA.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||A6t(s[j])&&s[j]>=0},_,b,p;i?(_=Math.min(n.length,o.length),b=function(j){return d(n[j])&&v(j)},p=function(j){return String(n[j])}):(_=Math.min(a.length,o.length),b=function(j){return d(a[j])&&v(j)},p=function(j){return String(a[j])}),l&&(_=Math.min(_,s.length));for(var k=0;k<_;k++)if(b(k)){var E=p(k),T=d(o[k])?String(o[k]):"",L={i:k,id:E,pid:T,label:d(a[k])?String(a[k]):""};l&&(L.v=+s[k]),u.push(L),h(T,E)}if(c[""]){if(c[""].length>1){for(var M=LA.randstr(),g=0;g{"use strict";var Ukt=rc().str2arr,Vkt=rc().sliceEq,gEe=rc().readUInt32BE,Gkt=Ukt("8BPS\0");mEe.exports=function(e){if(!(e.length<22)&&Vkt(e,0,Gkt))return{width:gEe(e,18),height:gEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var bEe=ye((Vdr,xEe)=>{"use strict";function Hkt(e){return e===32||e===9||e===13||e===10}function MA(e){return typeof e=="number"&&isFinite(e)&&e>0}function jkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,Xkt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Zkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Ykt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Kkt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,_Ee=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Jkt(e){var t=e.match(Zkt),r=e.match(Ykt),n=e.match(Kkt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Xm(e){return _Ee.test(e)?e.match(_Ee)[0]:"px"}xEe.exports=function(e){if(jkt(e)){for(var t="",r=0;r{"use strict";var AEe=rc().str2arr,wEe=rc().sliceEq,$kt=rc().readUInt16LE,Qkt=rc().readUInt16BE,eCt=rc().readUInt32LE,tCt=rc().readUInt32BE,rCt=AEe("II*\0"),iCt=AEe("MM\0*");function pD(e,t,r){return r?Qkt(e,t):$kt(e,t)}function mW(e,t,r){return r?tCt(e,t):eCt(e,t)}function TEe(e,t,r){var n=pD(e,t+2,r),i=mW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?pD(e,t+8,r):mW(e,t+8,r)}SEe.exports=function(e){if(!(e.length<8)&&!(!wEe(e,0,rCt)&&!wEe(e,0,iCt))){var t=e[0]===77,r=mW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=pD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var CEe=rc().str2arr,EEe=rc().sliceEq,kEe=rc().readUInt16LE,yW=rc().readUInt32LE,nCt=dD(),aCt=CEe("RIFF"),oCt=CEe("WEBP");function sCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:kEe(e,t+6)&16383,height:kEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function lCt(e,t){if(e[t]===47){var r=yW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function uCt(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||sCt(e,t+8):a==="VP8L"&&o>=9?r=r||lCt(e,t+8):a==="VP8X"&&o>=10?r=r||uCt(e,t+8):a==="EXIF"&&(n=nCt.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 REe=ye((jdr,IEe)=>{"use strict";IEe.exports={avif:J4e(),bmp:eEe(),gif:aEe(),ico:lEe(),jpeg:cEe(),png:pEe(),psd:yEe(),svg:bEe(),tiff:MEe(),webp:PEe()}});var DEe=ye((Wdr,xW)=>{"use strict";var _W=REe();function cCt(e){for(var t=Object.keys(_W),r=0;r{"use strict";var fCt=DEe(),hCt=Oy().IMAGE_URL_PREFIX,dCt=_2().Buffer;FEe.getImageSize=function(e){var t=e.replace(hCt,""),r=new dCt(t,"base64");return fCt(r)}});var BEe=ye((Zdr,qEe)=>{"use strict";var OEe=Dr(),vCt=QT(),pCt=Eo(),gD=ho(),gCt=Dr().maxRowLength,mCt=zEe().getImageSize;qEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=gCt(r.z);else if(r._hasSource){var a=mCt(r.source);n=a.height,i=a.width}var o=gD.getFromId(t,r.xaxis||"x"),s=gD.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 bCt=Oa(),R2=Dr(),NEe=R2.strTranslate,wCt=Wp(),TCt=QT(),ACt=oG(),SCt=g8().STYLE;UEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ACt();R2.makeTraceGroups(i,n,"im").each(function(l){var u=bCt.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,_=c.y0,b=c.w,p=c.h,k=f.dx,E=f.dy,T,L,x,C,M,g;for(g=0;T===void 0&&g0;)L=a.c2p(v+g*k),g--;for(g=0;C===void 0&&g0;)M=o.c2p(_+g*E),g--;if(LH[0];if(re||oe){var _e=T+A/2,Ce=C+z/2;j+="transform:"+NEe(_e+"px",Ce+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+NEe(-_e+"px",-Ce+"px")+";"}}Z.attr("style",j);var Le=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 Ee=f._image;Ee.onload=function(){Se.drawImage(Ee,0,0),f._canvas={el:ie,source:f.source},ge()},Ee.setAttribute("src",f.source)}}).then(function(){var ge,ie;if(f._hasZ)ie=G(function(Ae,Be){var Pe=d[Be][Ae];return R2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ge=ie.toDataURL("image/png");else if(f._hasSource)if(h)ge=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,Be){var Pe=4*(Be*b+Ae);return[Ee[Pe],Ee[Pe+1],Ee[Pe+2],Ee[Pe+3]]}),ge=ie.toDataURL("image/png")}Z.attr({"xlink:href":ge,height:z,width:A,x:T,y:C})});t._promises.push(Le)})}});var HEe=ye((Kdr,GEe)=>{"use strict";var MCt=Oa();GEe.exports=function(t){MCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var ZEe=ye((Jdr,XEe)=>{"use strict";var jEe=vf(),WEe=Dr(),mD=WEe.isArrayOrTypedArray,ECt=QT();XEe.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=ECt.colormodel[a.colormodel],_=v.colormodel||a.colormodel,b=_.length,p=a._scaler(c),k=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+k[0],p[1]+k[1],p[2]+k[2]].join(", ")),b===4&&E.push(", "+p[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=_.toUpperCase()+": "+E);var T;mD(a.hovertext)&&mD(a.hovertext[u])?T=a.hovertext[u][l]:mD(a.text)&&mD(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,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[WEe.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:M,text:T,hovertemplateLabels:{zLabel:M,colorLabel:E,"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 KEe=ye(($dr,YEe)=>{"use strict";YEe.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 $Ee=ye((Qdr,JEe)=>{"use strict";JEe.exports={attributes:gH(),supplyDefaults:Z3e(),calc:BEe(),plot:VEe(),style:HEe(),hoverPoints:ZEe(),eventData:KEe(),moduleType:"trace",name:"image",basePlotModule:mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var eke=ye((evr,QEe)=>{"use strict";QEe.exports=$Ee()});var F2=ye((tvr,rke)=>{"use strict";var bW=Gl(),kCt=Cc().attributes,CCt=ec(),LCt=Ih(),{hovertemplateAttrs:PCt,texttemplateAttrs:ICt,templatefallbackAttrs:tke}=Ll(),D2=Ao().extendFlat,RCt=Pd().pattern,yD=CCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});rke.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:LCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:RCt,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:D2({},bW.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:PCt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:tke(),texttemplate:ICt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:tke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:D2({},yD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:D2({},yD,{}),outsidetextfont:D2({},yD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:D2({},bW.showlegend,{arrayOk:!0}),legend:D2({},bW.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:D2({},yD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:kCt({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 z2=ye((rvr,ake)=>{"use strict";var DCt=Eo(),OE=Dr(),FCt=F2(),zCt=Cc().defaults,OCt=i0().handleText,qCt=Dr().coercePattern;function ike(e,t){var r=OE.isArrayOrTypedArray(e),n=OE.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 nke(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");qCt(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 BCt(e,t,r,n){function i(k,E){return OE.coerce(e,t,FCt,k,E)}var a=i("labels"),o=i("values"),s=ike(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,nke(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate");i("texttemplatefallback");var f;if(c||(f=i("textinfo",OE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||f&&f!=="none"){var h=i("textposition");OCt(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");zCt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var p=i("title.position",_?"middle center":"top center");!_&&p==="middle center"&&(t.title.position="top center"),OE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}ake.exports={handleLabelsAndValues:ike,handleMarkerDefaults:nke,supplyDefaults:BCt}});var _D=ye((ivr,oke)=>{"use strict";oke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var lke=ye((nvr,ske)=>{"use strict";var NCt=Dr(),UCt=_D();ske.exports=function(t,r){function n(i,a){return NCt.coerce(t,r,UCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var EA=ye((avr,fke)=>{"use strict";var VCt=Eo(),wW=fd(),GCt=ka(),HCt={};function jCt(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"?_:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function uke(e){return function(r,n){return!r||(r=wW(r),!r.isValid())?!1:(r=GCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function WCt(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=cke(a,HCt));for(var s=0,l=0;l{"use strict";var XCt=ip().appendArrayMultiPointValues;hke.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]),XCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var TD=ye((svr,Dke)=>{"use strict";var Fp=Oa(),ZCt=Mc(),xD=vf(),_ke=ka(),Qy=So(),rv=Dr(),YCt=rv.strScale,vke=rv.strTranslate,TW=Zl(),xke=bv(),KCt=xke.recordMinTextSize,JCt=xke.clearMinTextSize,bke=A_().TEXTPAD,ns=g_(),bD=dke(),pke=Dr().isValidTextValue;function $Ct(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;JCt("pie",n),Ake(t,e),Pke(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Fp.select(this),l=o[0],u=l.trace;s6t(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,M=Fp.select(this),g=M.selectAll("path.surface").data([T]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(wke,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 A(N,H,re,oe){var _e=oe*(H[0]-N[0]),Ce=oe*(H[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+_e+","+Ce}var z=u.hole;if(T.v===l.vTotal){var O="M"+(x+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*T.px0[0])+","+(C+z*T.px0[1])+A(T.px0,T.pxmid,!1,z)+A(T.pxmid,T.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var U=A(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])+A(T.px1,T.px0,!1,z)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else g.attr("d","M"+x+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Ike(e,T,l);var Z=ns.castOption(u.textposition,T.pts),j=M.selectAll("g.slicetext").data(T.text&&Z!=="none"?[0]:[]);j.enter().append("g").classed("slicetext",!0),j.exit().remove(),j.each(function(){var N=rv.ensureSingle(Fp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),H=rv.ensureUniformFontSize(e,Z==="outside"?e6t(u,T,n.font):Tke(u,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qy.font,H).call(TW.convertToTspans,e);var re=Qy.bBox(N.node()),oe;if(Z==="outside")oe=yke(re,T);else if(oe=Ske(re,T,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Qy.font,_e),re=Qy.bBox(N.node()),oe=yke(re,T)}var Ce=oe.textPosAngle,Le=Ce===void 0?T.pxmid:wD(l.r,Ce);if(oe.targetX=x+Le[0]*oe.rCenter+(oe.x||0),oe.targetY=C+Le[1]*oe.rCenter+(oe.y||0),Rke(oe,re),oe.outside){var ge=oe.targetY;T.yLabelMin=ge-re.height/2,T.yLabelMid=ge,T.yLabelMax=ge+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}oe.fontSize=H.size,KCt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});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=rv.ensureSingle(Fp.select(this),"text","",function(C){C.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qy.font,u.title.font).call(TW.convertToTspans,e);var x;u.title.position==="middle center"?x=i6t(l):x=Cke(l,i),T.attr("transform",vke(x.x,x.y)+YCt(Math.min(1,x.scale))+vke(x.tx,x.ty))}),h&&a6t(f,u),QCt(c,u),h&&u.automargin){var v=Qy.bBox(s.node()),_=u.domain,b=i.w*(_.x[1]-_.x[0]),p=i.h*(_.y[1]-_.y[0]),k=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;ZCt.autoMargin(e,"pie."+u.uid+".automargin",{xl:_.x[0]-k,xr:_.x[1]+k,yb:_.y[0]-E,yt:_.y[1]+E,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 QCt(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,rv.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;rv.ensureSingle(n,"path","textline").call(_ke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function wke(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=xD.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),_=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;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=ns.formatPieValue(l.v,_),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=ns.formatPiePercent(l.percent,_),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var k=c.hoverlabel,E=k.font,T=[];xD.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(E.family,l.pts),fontSize:ns.castOption(E.size,l.pts),fontColor:ns.castOption(E.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:[bD(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:[bD(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:[bD(f,c)],event:Fp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(xD.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=[bD(l,c)],xD.click(t,Fp.event))})}function e6t(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 Tke(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||_ke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Ake(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 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;_.push(b)}(v||d)&&(b=gke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(v||h)&&(b=mke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var T=0,L=0,x=0;x<_.length;x++){var C=_[x].scale;if(L=1)break}return _[T]}function t6t(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 i6t(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 Cke(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=Lke(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=n6t(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=AW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function n6t(e,t){return e/(t===void 0?1:t)}function AW(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 Lke(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function a6t(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function _(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function p(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-x,P,A,z,O,U,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(A=0;A=(ns.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-x-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(C+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(A-f.indexOf(E)),U=z.cxFinal+a(z.px0[0],z.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?_: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=r6t(u,t))}function wD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Ike(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 _=ns.getFirstFilled(i.text,t.pts);pke(_)&&v.push(_)}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:rv.castOption(i,T.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var k=b(t),E=ns.getFirstFilled(i.text,t.pts);(pke(E)||E==="")&&(k.text=E),t.text=rv.texttemplateString({data:[k,i._meta],fallback:i.texttemplatefallback,labels:k,locale:e._fullLayout._d3locale,template:p})}}}function Rke(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}Dke.exports={plot:$Ct,formatSliceLabel:Ike,transformInsideText:Ske,determineInsideTextFont:Tke,positionTitleOutside:Cke,prerenderTitles:Ake,layoutAreas:Pke,attachFxHandlers:wke,computeTransform:Rke}});var Oke=ye((lvr,zke)=>{"use strict";var Fke=Oa(),l6t=X3(),u6t=bv().resizeText;zke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");u6t(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Fke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Fke.select(this).call(l6t,s,a,t)})})}});var Bke=ye(kA=>{"use strict";var qke=Mc();kA.name="pie";kA.plot=function(e,t,r,n){qke.plotBasePlot(kA.name,e,t,r,n)};kA.clean=function(e,t,r,n){qke.cleanBasePlot(kA.name,e,t,r,n)}});var Uke=ye((cvr,Nke)=>{"use strict";Nke.exports={attributes:F2(),supplyDefaults:z2().supplyDefaults,supplyLayoutDefaults:lke(),layoutAttributes:_D(),calc:EA().calc,crossTraceCalc:EA().crossTraceCalc,plot:TD().plot,style:Oke(),styleOne:X3(),moduleType:"trace",name:"pie",basePlotModule:Bke(),categories:["pie-like","pie","showLegend"],meta:{}}});var Gke=ye((fvr,Vke)=>{"use strict";Vke.exports=Uke()});var jke=ye(CA=>{"use strict";var Hke=Mc();CA.name="sunburst";CA.plot=function(e,t,r,n){Hke.plotBasePlot(CA.name,e,t,r,n)};CA.clean=function(e,t,r,n){Hke.cleanBasePlot(CA.name,e,t,r,n)}});var SW=ye((dvr,Wke)=>{"use strict";Wke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var BE=ye((vvr,Yke)=>{"use strict";var c6t=Gl(),{hovertemplateAttrs:f6t,texttemplateAttrs:h6t,templatefallbackAttrs:Xke}=Ll(),d6t=Tu(),v6t=Cc().attributes,e1=F2(),Zke=SW(),qE=Ao().extendFlat,p6t=Pd().pattern;Yke.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:qE({colors:{valType:"data_array",editType:"calc"},line:{color:qE({},e1.marker.line.color,{dflt:null}),width:qE({},e1.marker.line.width,{dflt:1}),editType:"calc"},pattern:p6t,editType:"calc"},d6t("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:h6t({editType:"plot"},{keys:Zke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Xke({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:qE({},c6t.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:f6t({},{keys:Zke.eventDataKeys}),hovertemplatefallback:Xke(),textfont:e1.textfont,insidetextorientation:e1.insidetextorientation,insidetextfont:e1.insidetextfont,outsidetextfont:qE({},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:v6t({name:"sunburst",trace:!0,editType:"calc"})}});var MW=ye((pvr,Kke)=>{"use strict";Kke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var eCe=ye((gvr,Qke)=>{"use strict";var Jke=Dr(),g6t=BE(),m6t=Cc().defaults,y6t=i0().handleText,_6t=z2().handleMarkerDefaults,$ke=tc(),x6t=$ke.hasColorscale,b6t=$ke.handleDefaults;Qke.exports=function(t,r,n,i){function a(h,d){return Jke.coerce(t,r,g6t,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"),_6t(t,r,i,a);var u=r._hasColorscale=x6t(t,"marker","colors")||(t.marker||{}).coloraxis;u&&b6t(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",Jke.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";y6t(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"),m6t(r,i,a),r._length=null}});var rCe=ye((mvr,tCe)=>{"use strict";var w6t=Dr(),T6t=MW();tCe.exports=function(t,r){function n(i,a){return w6t.coerce(t,r,T6t,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var NE=ye((AD,iCe)=>{(function(e,t){typeof AD=="object"&&typeof iCe!="undefined"?t(AD):(e=e||self,t(e.d3=e.d3||{}))})(AD,function(e){"use strict";function t(We,tt){return We.parent===tt.parent?1:2}function r(We){return We.reduce(n,0)/We.length}function n(We,tt){return We+tt.x}function i(We){return 1+We.reduce(a,0)}function a(We,tt){return Math.max(We,tt.y)}function o(We){for(var tt;tt=We.children;)We=tt[0];return We}function s(We){for(var tt;tt=We.children;)We=tt[tt.length-1];return We}function l(){var We=t,tt=1,xt=1,Ie=!1;function xe(ke){var vt,ir=0;ke.eachAfter(function($r){var di=$r.children;di?($r.x=r(di),$r.y=i(di)):($r.x=vt?ir+=We($r,vt):0,$r.y=0,vt=$r)});var ar=o(ke),vr=s(ke),ii=ar.x-We(ar,vr)/2,pi=vr.x+We(vr,ar)/2;return ke.eachAfter(Ie?function($r){$r.x=($r.x-ke.x)*tt,$r.y=(ke.y-$r.y)*xt}:function($r){$r.x=($r.x-ii)/(pi-ii)*tt,$r.y=(1-(ke.y?$r.y/ke.y:1))*xt})}return xe.separation=function(ke){return arguments.length?(We=ke,xe):We},xe.size=function(ke){return arguments.length?(Ie=!1,tt=+ke[0],xt=+ke[1],xe):Ie?null:[tt,xt]},xe.nodeSize=function(ke){return arguments.length?(Ie=!0,tt=+ke[0],xt=+ke[1],xe):Ie?[tt,xt]:null},xe}function u(We){var tt=0,xt=We.children,Ie=xt&&xt.length;if(!Ie)tt=1;else for(;--Ie>=0;)tt+=xt[Ie].value;We.value=tt}function c(){return this.eachAfter(u)}function f(We){var tt=this,xt,Ie=[tt],xe,ke,vt;do for(xt=Ie.reverse(),Ie=[];tt=xt.pop();)if(We(tt),xe=tt.children,xe)for(ke=0,vt=xe.length;ke=0;--xe)xt.push(Ie[xe]);return this}function d(We){for(var tt=this,xt=[tt],Ie=[],xe,ke,vt;tt=xt.pop();)if(Ie.push(tt),xe=tt.children,xe)for(ke=0,vt=xe.length;ke=0;)xt+=Ie[xe].value;tt.value=xt})}function _(We){return this.eachBefore(function(tt){tt.children&&tt.children.sort(We)})}function b(We){for(var tt=this,xt=p(tt,We),Ie=[tt];tt!==xt;)tt=tt.parent,Ie.push(tt);for(var xe=Ie.length;We!==xt;)Ie.splice(xe,0,We),We=We.parent;return Ie}function p(We,tt){if(We===tt)return We;var xt=We.ancestors(),Ie=tt.ancestors(),xe=null;for(We=xt.pop(),tt=Ie.pop();We===tt;)xe=We,We=xt.pop(),tt=Ie.pop();return xe}function k(){for(var We=this,tt=[We];We=We.parent;)tt.push(We);return tt}function E(){var We=[];return this.each(function(tt){We.push(tt)}),We}function T(){var We=[];return this.eachBefore(function(tt){tt.children||We.push(tt)}),We}function L(){var We=this,tt=[];return We.each(function(xt){xt!==We&&tt.push({source:xt.parent,target:xt})}),tt}function x(We,tt){var xt=new A(We),Ie=+We.value&&(xt.value=We.value),xe,ke=[xt],vt,ir,ar,vr;for(tt==null&&(tt=M);xe=ke.pop();)if(Ie&&(xe.value=+xe.data.value),(ir=tt(xe.data))&&(vr=ir.length))for(xe.children=new Array(vr),ar=vr-1;ar>=0;--ar)ke.push(vt=xe.children[ar]=new A(ir[ar])),vt.parent=xe,vt.depth=xe.depth+1;return xt.eachBefore(P)}function C(){return x(this).eachBefore(g)}function M(We){return We.children}function g(We){We.data=We.data.data}function P(We){var tt=0;do We.height=tt;while((We=We.parent)&&We.height<++tt)}function A(We){this.data=We,this.depth=this.height=0,this.parent=null}A.prototype=x.prototype={constructor:A,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:_,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var z=Array.prototype.slice;function O(We){for(var tt=We.length,xt,Ie;tt;)Ie=Math.random()*tt--|0,xt=We[tt],We[tt]=We[Ie],We[Ie]=xt;return We}function U(We){for(var tt=0,xt=(We=O(z.call(We))).length,Ie=[],xe,ke;tt0&&xt*xt>Ie*Ie+xe*xe}function N(We,tt){for(var xt=0;xtar?(xe=(vr+ar-ke)/(2*vr),ir=Math.sqrt(Math.max(0,ar/vr-xe*xe)),xt.x=We.x-xe*Ie-ir*vt,xt.y=We.y-xe*vt+ir*Ie):(xe=(vr+ke-ar)/(2*vr),ir=Math.sqrt(Math.max(0,ke/vr-xe*xe)),xt.x=tt.x+xe*Ie-ir*vt,xt.y=tt.y+xe*vt+ir*Ie)):(xt.x=tt.x+xt.r,xt.y=tt.y)}function Le(We,tt){var xt=We.r+tt.r-1e-6,Ie=tt.x-We.x,xe=tt.y-We.y;return xt>0&&xt*xt>Ie*Ie+xe*xe}function ge(We){var tt=We._,xt=We.next._,Ie=tt.r+xt.r,xe=(tt.x*xt.r+xt.x*tt.r)/Ie,ke=(tt.y*xt.r+xt.y*tt.r)/Ie;return xe*xe+ke*ke}function ie(We){this._=We,this.next=null,this.previous=null}function Se(We){if(!(xe=We.length))return 0;var tt,xt,Ie,xe,ke,vt,ir,ar,vr,ii,pi;if(tt=We[0],tt.x=0,tt.y=0,!(xe>1))return tt.r;if(xt=We[1],tt.x=-xt.r,xt.x=tt.r,xt.y=0,!(xe>2))return tt.r+xt.r;Ce(xt,tt,Ie=We[2]),tt=new ie(tt),xt=new ie(xt),Ie=new ie(Ie),tt.next=Ie.previous=xt,xt.next=tt.previous=Ie,Ie.next=xt.previous=tt;e:for(ir=3;ir0)throw new Error("cycle");return ir}return xt.id=function(Ie){return arguments.length?(We=Be(Ie),xt):We},xt.parentId=function(Ie){return arguments.length?(tt=Be(Ie),xt):tt},xt}function $e(We,tt){return We.parent===tt.parent?1:2}function St(We){var tt=We.children;return tt?tt[0]:We.t}function Qt(We){var tt=We.children;return tt?tt[tt.length-1]:We.t}function Gt(We,tt,xt){var Ie=xt/(tt.i-We.i);tt.c-=Ie,tt.s+=xt,We.c+=Ie,tt.z+=xt,tt.m+=xt}function _t(We){for(var tt=0,xt=0,Ie=We.children,xe=Ie.length,ke;--xe>=0;)ke=Ie[xe],ke.z+=tt,ke.m+=tt,tt+=ke.s+(xt+=ke.c)}function It(We,tt,xt){return We.a.parent===tt.parent?We.a:xt}function mt(We,tt){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=tt}mt.prototype=Object.create(A.prototype);function er(We){for(var tt=new mt(We,0),xt,Ie=[tt],xe,ke,vt,ir;xt=Ie.pop();)if(ke=xt._.children)for(xt.children=new Array(ir=ke.length),vt=ir-1;vt>=0;--vt)Ie.push(xe=xt.children[vt]=new mt(ke[vt],vt)),xe.parent=xt;return(tt.parent=new mt(null,0)).children=[tt],tt}function lr(){var We=$e,tt=1,xt=1,Ie=null;function xe(vr){var ii=er(vr);if(ii.eachAfter(ke),ii.parent.m=-ii.z,ii.eachBefore(vt),Ie)vr.eachBefore(ar);else{var pi=vr,$r=vr,di=vr;vr.eachBefore(function(qn){qn.x$r.x&&($r=qn),qn.depth>di.depth&&(di=qn)});var ji=pi===$r?1:We(pi,$r)/2,In=ji-pi.x,wi=tt/($r.x+ji+In),On=xt/(di.depth||1);vr.eachBefore(function(qn){qn.x=(qn.x+In)*wi,qn.y=qn.depth*On})}return vr}function ke(vr){var ii=vr.children,pi=vr.parent.children,$r=vr.i?pi[vr.i-1]:null;if(ii){_t(vr);var di=(ii[0].z+ii[ii.length-1].z)/2;$r?(vr.z=$r.z+We(vr._,$r._),vr.m=vr.z-di):vr.z=di}else $r&&(vr.z=$r.z+We(vr._,$r._));vr.parent.A=ir(vr,$r,vr.parent.A||pi[0])}function vt(vr){vr._.x=vr.z+vr.parent.m,vr.m+=vr.parent.m}function ir(vr,ii,pi){if(ii){for(var $r=vr,di=vr,ji=ii,In=$r.parent.children[0],wi=$r.m,On=di.m,qn=ji.m,Fn=In.m,ra;ji=Qt(ji),$r=St($r),ji&&$r;)In=St(In),di=Qt(di),di.a=vr,ra=ji.z+qn-$r.z-wi+We(ji._,$r._),ra>0&&(Gt(It(ji,vr,pi),vr,ra),wi+=ra,On+=ra),qn+=ji.m,wi+=$r.m,Fn+=In.m,On+=di.m;ji&&!Qt(di)&&(di.t=ji,di.m+=qn-On),$r&&!St(In)&&(In.t=$r,In.m+=wi-Fn,pi=vr)}return pi}function ar(vr){vr.x*=tt,vr.y=vr.depth*xt}return xe.separation=function(vr){return arguments.length?(We=vr,xe):We},xe.size=function(vr){return arguments.length?(Ie=!1,tt=+vr[0],xt=+vr[1],xe):Ie?null:[tt,xt]},xe.nodeSize=function(vr){return arguments.length?(Ie=!0,tt=+vr[0],xt=+vr[1],xe):Ie?[tt,xt]:null},xe}function wr(We,tt,xt,Ie,xe){for(var ke=We.children,vt,ir=-1,ar=ke.length,vr=We.value&&(xe-xt)/We.value;++irqn&&(qn=vr),Ut=wi*wi*la,Fn=Math.max(qn/Ut,Ut/On),Fn>ra){wi-=vr;break}ra=Fn}vt.push(ar={value:wi,dice:di1?Ie:1)},xt}(Lr);function Vr(){var We=Br,tt=!1,xt=1,Ie=1,xe=[0],ke=Pe,vt=Pe,ir=Pe,ar=Pe,vr=Pe;function ii($r){return $r.x0=$r.y0=0,$r.x1=xt,$r.y1=Ie,$r.eachBefore(pi),xe=[0],tt&&$r.eachBefore(Vt),$r}function pi($r){var di=xe[$r.depth],ji=$r.x0+di,In=$r.y0+di,wi=$r.x1-di,On=$r.y1-di;wi=$r-1){var qn=ke[pi];qn.x0=ji,qn.y0=In,qn.x1=wi,qn.y1=On;return}for(var Fn=vr[pi],ra=di/2+Fn,la=pi+1,Ut=$r-1;la>>1;vr[wt]On-In){var Er=(ji*nr+wi*rr)/di;ii(pi,la,rr,ji,In,Er,On),ii(la,$r,nr,Er,In,wi,On)}else{var Xr=(In*nr+On*rr)/di;ii(pi,la,rr,ji,In,wi,Xr),ii(la,$r,nr,ji,Xr,wi,On)}}}function Ge(We,tt,xt,Ie,xe){(We.depth&1?wr:ot)(We,tt,xt,Ie,xe)}var Je=function We(tt){function xt(Ie,xe,ke,vt,ir){if((ar=Ie._squarify)&&ar.ratio===tt)for(var ar,vr,ii,pi,$r=-1,di,ji=ar.length,In=Ie.value;++$r1?Ie:1)},xt}(Lr);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=ut,e.stratify=fr,e.tree=lr,e.treemap=Vr,e.treemapBinary=dt,e.treemapDice=ot,e.treemapResquarify=Je,e.treemapSlice=wr,e.treemapSliceDice=Ge,e.treemapSquarify=Br,Object.defineProperty(e,"__esModule",{value:!0})})});var VE=ye(UE=>{"use strict";var nCe=NE(),A6t=Eo(),LA=Dr(),S6t=tc().makeColorScaleFuncFromTrace,M6t=EA().makePullColorFn,E6t=EA().generateExtendedColors,k6t=tc().calc,C6t=fs().ALMOST_EQUAL,L6t={},P6t={},I6t={};UE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=LA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=LA.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||A6t(s[j])&&s[j]>=0},_,b,p;i?(_=Math.min(n.length,o.length),b=function(j){return d(n[j])&&v(j)},p=function(j){return String(n[j])}):(_=Math.min(a.length,o.length),b=function(j){return d(a[j])&&v(j)},p=function(j){return String(a[j])}),l&&(_=Math.min(_,s.length));for(var k=0;k<_;k++)if(b(k)){var E=p(k),T=d(o[k])?String(o[k]):"",L={i:k,id:E,pid:T,label:d(a[k])?String(a[k]):""};l&&(L.v=+s[k]),u.push(L),h(T,E)}if(c[""]){if(c[""].length>1){for(var M=LA.randstr(),g=0;g{});function Ym(){}function sCe(){return this.rgb().formatHex()}function N6t(){return this.rgb().formatHex8()}function U6t(){return vCe(this).formatHsl()}function lCe(){return this.rgb().formatRgb()}function ex(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=R6t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?uCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?MD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?MD(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=D6t.exec(e))?new _d(t[1],t[2],t[3],1):(t=F6t.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z6t.exec(e))?MD(t[1],t[2],t[3],t[4]):(t=O6t.exec(e))?MD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=q6t.exec(e))?hCe(t[1],t[2]/100,t[3]/100,1):(t=B6t.exec(e))?hCe(t[1],t[2]/100,t[3]/100,t[4]):oCe.hasOwnProperty(e)?uCe(oCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function uCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function MD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function GE(e){return e instanceof Ym||(e=ex(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function IA(e,t,r,n){return arguments.length===1?GE(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 cCe(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}`}function V6t(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}${O2((isNaN(this.opacity)?1:this.opacity)*255)}`}function fCe(){let e=kD(this.opacity);return`${e===1?"rgb(":"rgba("}${q2(this.r)}, ${q2(this.g)}, ${q2(this.b)}${e===1?")":`, ${e})`}`}function kD(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 O2(e){return e=q2(e),(e<16?"0":"")+e.toString(16)}function hCe(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 vCe(e){if(e instanceof Kg)return new Kg(e.h,e.s,e.l,e.opacity);if(e instanceof Ym||(e=ex(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 HE(e,t,r,n){return arguments.length===1?vCe(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 dCe(e){return e=(e||0)%360,e<0?e+360:e}function ED(e){return Math.max(0,Math.min(1,e||0))}function EW(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 Q_,B2,PA,VE,Zm,R6t,D6t,F6t,z6t,O6t,q6t,B6t,oCe,CD=gu(()=>{SD();Q_=.7,B2=1/Q_,PA="\\s*([+-]?\\d+)\\s*",VE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R6t=/^#([0-9a-f]{3,8})$/,D6t=new RegExp(`^rgb\\(${PA},${PA},${PA}\\)$`),F6t=new RegExp(`^rgb\\(${Zm},${Zm},${Zm}\\)$`),z6t=new RegExp(`^rgba\\(${PA},${PA},${PA},${VE}\\)$`),O6t=new RegExp(`^rgba\\(${Zm},${Zm},${Zm},${VE}\\)$`),q6t=new RegExp(`^hsl\\(${VE},${Zm},${Zm}\\)$`),B6t=new RegExp(`^hsla\\(${VE},${Zm},${Zm},${VE}\\)$`),oCe={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(Ym,ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sCe,formatHex:sCe,formatHex8:N6t,formatHsl:U6t,formatRgb:lCe,toString:lCe});t1(_d,IA,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(q2(this.r),q2(this.g),q2(this.b),kD(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:cCe,formatHex:cCe,formatHex8:V6t,formatRgb:fCe,toString:fCe}));t1(Kg,HE,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new Kg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,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(EW(e>=240?e-240:e+120,i,n),EW(e,i,n),EW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Kg(dCe(this.h),ED(this.s),ED(this.l),kD(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=kD(this.opacity);return`${e===1?"hsl(":"hsla("}${dCe(this.h)}, ${ED(this.s)*100}%, ${ED(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var LD,PD,kW=gu(()=>{LD=Math.PI/180,PD=180/Math.PI});function xCe(e){if(e instanceof Km)return new Km(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return bCe(e);e instanceof _d||(e=GE(e));var t=IW(e.r),r=IW(e.g),n=IW(e.b),i=CW((.2225045*t+.7168786*r+.0606169*n)/gCe),a,o;return t===r&&r===n?a=o=i:(a=CW((.4360747*t+.3850649*r+.1430804*n)/pCe),o=CW((.0139322*t+.0971045*r+.7141733*n)/mCe)),new Km(116*i-16,500*(a-i),200*(i-o),e.opacity)}function DA(e,t,r,n){return arguments.length===1?xCe(e):new Km(e,t,r,n==null?1:n)}function Km(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function CW(e){return e>G6t?Math.pow(e,1/3):e/_Ce+yCe}function LW(e){return e>RA?e*e*e:_Ce*(e-yCe)}function PW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function IW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function H6t(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Km||(e=xCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{SD();CD();kW();ID=18,pCe=.96422,gCe=1,mCe=.82521,yCe=4/29,RA=6/29,_Ce=3*RA*RA,G6t=RA*RA*RA;t1(Km,DA,$_(Ym,{brighter(e){return new Km(this.l+ID*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Km(this.l-ID*(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=pCe*LW(t),e=gCe*LW(e),r=mCe*LW(r),new _d(PW(3.1338561*t-1.6168667*e-.4906146*r),PW(-.9787684*t+1.9161415*e+.033454*r),PW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,jE,$_(Ym,{brighter(e){return new r1(this.h,this.c,this.l+ID*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-ID*(e==null?1:e),this.opacity)},rgb(){return bCe(this).rgb()}}))});function j6t(e){if(e instanceof N2)return new N2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=GE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(SCe*n+TCe*t-ACe*r)/(SCe+TCe-ACe),a=n-i,o=(WE*(r-i)-DW*a)/RD,s=Math.sqrt(o*o+a*a)/(WE*i*(1-i)),l=s?Math.atan2(o,a)*PD-120:NaN;return new N2(l<0?l+360:l,s,i,e.opacity)}function FA(e,t,r,n){return arguments.length===1?j6t(e):new N2(e,t,r,n==null?1:n)}function N2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var MCe,RW,DW,RD,WE,TCe,ACe,SCe,ECe=gu(()=>{SD();CD();kW();MCe=-.14861,RW=1.78277,DW=-.29227,RD=-.90649,WE=1.97294,TCe=WE*RD,ACe=WE*RW,SCe=RW*DW-RD*MCe;t1(N2,FA,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new N2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new N2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*LD,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*(MCe*n+RW*i)),255*(t+r*(DW*n+RD*i)),255*(t+r*(WE*n)),this.opacity)}}))});var U2=gu(()=>{CD();wCe();ECe()});function FW(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 DD(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 zD(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 FW((r-n/t)*t,i,a,o,s)}}var zW=gu(()=>{FD()});var zA,OW=gu(()=>{zA=e=>()=>e});function kCe(e,t){return function(r){return e+r*t}}function W6t(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 tx(e,t){var r=t-e;return r?kCe(e,r>180||r<-180?r-360*Math.round(r/360):r):zA(isNaN(e)?t:e)}function CCe(e){return(e=+e)==1?$f:function(t,r){return r-t?W6t(t,r,e):zA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?kCe(e,r):zA(isNaN(e)?t:e)}var V2=gu(()=>{OW()});function LCe(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{U2();FD();zW();V2();XE=function e(t){var r=CCe(t);function n(i,a){var o=r((i=IA(i)).r,(a=IA(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);PCe=LCe(DD),ICe=LCe(zD)});function OA(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 RCe(e,t){return(OD(t)?OA:BW)(e,t)}function BW(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{ZE();qD()});function BD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var UW=gu(()=>{});function zp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var YE=gu(()=>{});function ND(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]=rx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var VW=gu(()=>{ZE()});function X6t(e){return function(){return e}}function Z6t(e){return function(t){return e(t)+""}}function UD(e,t){var r=HW.lastIndex=GW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=HW.exec(e))&&(i=GW.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=GW.lastIndex;return r{YE();HW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GW=new RegExp(HW.source,"g")});function rx(e,t){var r=typeof t,n;return t==null||r==="boolean"?zA(t):(r==="number"?zp:r==="string"?(n=ex(t))?(t=n,XE):UD:t instanceof ex?XE:t instanceof Date?BD:OD(t)?OA:Array.isArray(t)?BW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ND:zp)(e,t)}var ZE=gu(()=>{U2();qW();NW();UW();YE();VW();jW();OW();qD()});function DCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var FCe=gu(()=>{});function zCe(e,t){var r=tx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var OCe=gu(()=>{V2()});function qCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var BCe=gu(()=>{});function WW(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{NCe=180/Math.PI,VD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function VCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?VD:WW(t.a,t.b,t.c,t.d,t.e,t.f)}function GCe(e){return e==null?VD:(GD||(GD=document.createElementNS("http://www.w3.org/2000/svg","g")),GD.setAttribute("transform",e),(e=GD.transform.baseVal.consolidate())?(e=e.matrix,WW(e.a,e.b,e.c,e.d,e.e,e.f)):VD)}var GD,HCe=gu(()=>{UCe()});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 _=d.push("translate(",null,t,null,r);v.push({i:_-4,x:zp(u,f)},{i:_-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 _=d.push(i(d)+"scale(",null,",",null,")");v.push({i:_-4,x:zp(u,f)},{i:_-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,_=h.length,b;++v<_;)f[(b=h[v]).i]=b.x(d);return f.join("")}}}var WCe,XCe,ZCe=gu(()=>{YE();HCe();WCe=jCe(VCe,"px, ","px)","deg)"),XCe=jCe(GCe,", ",")",")")});function YCe(e){return((e=Math.exp(e))+1/e)/2}function K6t(e){return((e=Math.exp(e))-1/e)/2}function J6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var Y6t,KCe,JCe=gu(()=>{Y6t=1e-12;KCe=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,_=d*d+v*v,b,p;if(_{U2();V2();QCe=$Ce(tx),e6e=$Ce($f)});function XW(e,t){var r=$f((e=DA(e)).l,(t=DA(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 r6e=gu(()=>{U2();V2()});function i6e(e){return function(t,r){var n=e((t=jE(t)).h,(r=jE(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 n6e,a6e,o6e=gu(()=>{U2();V2();n6e=i6e(tx),a6e=i6e($f)});function s6e(e){return function t(r){r=+r;function n(i,a){var o=e((i=FA(i)).h,(a=FA(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 l6e,u6e,c6e=gu(()=>{U2();V2();l6e=s6e(tx),u6e=s6e($f)});function ZW(e,t){t===void 0&&(t=e,e=rx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{ZE()});function h6e(e,t){for(var r=new Array(t),n=0;n{});var G2={};mee(G2,{interpolate:()=>rx,interpolateArray:()=>RCe,interpolateBasis:()=>DD,interpolateBasisClosed:()=>zD,interpolateCubehelix:()=>l6e,interpolateCubehelixLong:()=>u6e,interpolateDate:()=>BD,interpolateDiscrete:()=>DCe,interpolateHcl:()=>n6e,interpolateHclLong:()=>a6e,interpolateHsl:()=>QCe,interpolateHslLong:()=>e6e,interpolateHue:()=>zCe,interpolateLab:()=>XW,interpolateNumber:()=>zp,interpolateNumberArray:()=>OA,interpolateObject:()=>ND,interpolateRgb:()=>XE,interpolateRgbBasis:()=>PCe,interpolateRgbBasisClosed:()=>ICe,interpolateRound:()=>qCe,interpolateString:()=>UD,interpolateTransformCss:()=>WCe,interpolateTransformSvg:()=>XCe,interpolateZoom:()=>KCe,piecewise:()=>ZW,quantize:()=>h6e});var H2=gu(()=>{ZE();NW();FD();zW();UW();FCe();OCe();YE();qD();VW();BCe();jW();ZCe();JCe();qW();t6e();r6e();o6e();c6e();f6e();d6e()});var HD=ye((s0r,v6e)=>{"use strict";var $6t=So(),Q6t=ka();v6e.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),$6t.pointStyle(t,n,i,r)}else Q6t.fill(t,l)}});var YW=ye((l0r,_6e)=>{"use strict";var p6e=Oa(),g6e=ka(),m6e=Dr(),eLt=bv().resizeText,tLt=HD();function rLt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");eLt(e,t,"sunburst"),t.each(function(r){var n=p6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){p6e.select(this).call(y6e,o,a,e)})})}function y6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=m6e.castOption(r,o,"marker.line.color")||g6e.defaultLine,l=m6e.castOption(r,o,"marker.line.width")||0;e.call(tLt,t,r,n).style("stroke-width",l).call(g6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}_6e.exports={style:rLt,styleOne:y6e}});var i1=ye(Bs=>{"use strict";var j2=Dr(),iLt=ka(),nLt=Eg(),x6e=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 b6e(e){return e.data.data.pid}Bs.getParent=function(e,t){return Bs.findEntryWithLevel(e,b6e(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=x6e.formatPieValue;Bs.formatPercent=function(e,t){var r=j2.formatPercent(e,0);return r==="0%"&&(r=x6e.formatPiePercent(e,t)),r}});var $E=ye((c0r,A6e)=>{"use strict";var qA=Oa(),w6e=qa(),sLt=ip().appendArrayPointValue,KE=vf(),T6e=Dr(),lLt=k3(),id=i1(),uLt=g_(),cLt=uLt.formatPieValue;A6e.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 _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,k=p.i,E=id.isHierarchyRoot(v),T=id.getParent(l,v),L=id.getValue(v),x=function(Ce){return T6e.castOption(b,k,Ce)},C=x("hovertemplate"),M=KE.castHoverinfo(b,_,k),g=_.separators,P;if(C||M&&M!=="none"&&M!=="skip"){var A,z;u&&(A=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(A=v._hoverX,z=v._hoverY);var O={},U=[],G=[],Z=function(Ce){return U.indexOf(Ce)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=cLt(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=id.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var j,N=[],H=function(){N.indexOf(j)===-1&&(G.push(j),N.push(j))};O.percentParent=v.percentParent=L/id.getValue(T),O.parent=v.parentString=id.getPtLabel(T),Z("percent parent")&&(j=id.formatPercent(O.percentParent,g)+" of "+O.parent,H()),O.percentEntry=v.percentEntry=L/id.getValue(r),O.entry=v.entry=id.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(j=id.formatPercent(O.percentEntry,g)+" of "+O.entry,H()),O.percentRoot=v.percentRoot=L/id.getValue(l),O.root=v.root=id.getPtLabel(l),Z("percent root")&&!E&&(j=id.formatPercent(O.percentRoot,g)+" of "+O.root,H()),O.text=x("hovertext")||x("text"),Z("text")&&(j=O.text,T6e.isValidTextValue(j)&&G.push(j)),P=[JE(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:O,eventData:P};u&&(re.x0=A-v.rInscribed*v.rpx1,re.x1=A+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=A,re.idealAlign=A<0?"left":"right");var oe=[];KE.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[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||[JE(v,b,a.eventDataKeys)],event:qA.event})}},h=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=qA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=qA.event,n.emit("plotly_unhover",{points:[JE(p,b,a.eventDataKeys)],event:qA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(KE.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),c){var k=t.select("path.surface");a.styleOne(k,p,b,n,{hovered:!1})}},d=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=u&&(id.isHierarchyRoot(v)||id.isLeaf(v)),k=id.getPtId(v),E=id.isEntry(v)?id.findEntryWithChild(l,k):id.findEntryWithLevel(l,k),T=id.getPtId(E),L={points:[JE(v,b,a.eventDataKeys)],event:qA.event};p||(L.nextLevel=T);var x=lLt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[JE(v,b,a.eventDataKeys)],KE.click(n,qA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){w6e.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};KE.loneUnhover(_._hoverlayer.node()),w6e.call("animate",n,C,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function JE(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 QE=Oa(),fLt=BE(),Jg=(H2(),pb(G2)).interpolate,S6e=So(),Av=Dr(),hLt=Zl(),C6e=bv(),M6e=C6e.recordMinTextSize,dLt=C6e.clearMinTextSize,L6e=TD(),vLt=g_().getRotationAngle,pLt=L6e.computeTransform,gLt=L6e.transformInsideText,mLt=YW().styleOne,yLt=V0().resizeText,_Lt=$E(),KW=SW(),Rl=i1();jD.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(dLt("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=QE.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){E6e(e,f,this,r)})})}else o.each(function(f){E6e(e,f,this,r)}),i.uniformtext.mode&&yLt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function E6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Rl.hasTransition(n),s=QE.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,_=c.domain,b=v.w*(_.x[1]-_.x[0]),p=v.h*(_.y[1]-_.y[0]),k=.5*Math.min(b,p),E=u.cx=v.l+v.w*(_.x[1]+_.x[0])/2,T=u.cy=v.t+v.h*(1-_.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=xLt(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Rl.isHierarchyRoot(h)&&(C=C.slice(1),M-=1,g=1,P+=1),C=C.filter(function(ge){return ge.y1<=P});var A=vLt(c.rotation);A&&C.forEach(function(ge){ge.x0+=A,ge.x1+=A});var z=Math.min(M,d),O=function(ge){return(ge-g)/z*k},U=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,E,T)},Z=function(ge){return E+k6e(ge)[0]*(ge.transform.rCenter||0)+(ge.transform.x||0)},j=function(ge){return T+k6e(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=QE.select(this),ie=ge.select("path.surface");ie.transition().attrTween("d",function(Ee){var Ae=oe(Ee);return function(Be){return G(Ae(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 re=l;o&&(re=re.transition().each("end",function(){var ge=QE.select(this);Rl.setSliceCursor(ge,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(ge){var ie=QE.select(this),Se=Av.ensureSingle(ie,"path","surface",function(De){De.style("pointer-events",i?"none":"all")});ge.rpx0=O(ge.y0),ge.rpx1=O(ge.y1),ge.xmid=(ge.x0+ge.x1)/2,ge.pxmid=U(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=bLt(ge,c),o?Se.transition().attrTween("d",function(De){var ce=_e(De);return function(je){return G(ce(je))}}):Se.attr("d",G),ie.call(_Lt,h,e,t,{eventDataKeys:KW.eventDataKeys,transitionTime:KW.CLICK_TRANSITION_TIME,transitionEasing:KW.CLICK_TRANSITION_EASING}).call(Rl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(mLt,ge,c,e);var Ee=Av.ensureSingle(ie,"g","slicetext"),Ae=Av.ensureSingle(Ee,"text","",function(De){De.attr("data-notex",1)}),Be=Av.ensureUniformFontSize(e,Rl.determineTextFont(c,ge,a.font));Ae.text(jD.formatSliceLabel(ge,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(S6e.font,Be).call(hLt.convertToTspans,e);var Pe=S6e.bBox(Ae.node());ge.transform=gLt(Pe,ge,u),ge.transform.targetX=Z(ge),ge.transform.targetY=j(ge);var me=function(De,ce){var je=De.transform;return pLt(je,ce),je.fontSize=Be.size,M6e(c.type,je,a),Av.getTextTransform(je)};o?Ae.transition().attrTween("transform",function(De){var ce=Ce(De);return function(je){return me(ce(je),Pe)}}):Ae.attr("transform",me(ge,Pe))});function oe(ge){var ie=Rl.getPtId(ge),Se=x[ie],Ee=x[Rl.getPtId(h)],Ae;if(Ee){var Be=(ge.x1>Ee.x1?2*Math.PI:0)+A;Ae=ge.rpx1N?2*Math.PI:0)+A;Se={x0:Ae,x1:Ae}}else Se={rpx0:k,rpx1:k},Av.extendFlat(Se,Le(ge));else Se={rpx0:0,rpx1:0};else Se={x0:A,x1:A};return Jg(Se,Ee)}function Ce(ge){var ie=x[Rl.getPtId(ge)],Se,Ee=ge.transform;if(ie)Se=ie;else if(Se={rpx1:ge.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(ge.parent)if(N){var Ae=ge.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else Av.extendFlat(Se,Le(ge));else Se.x0=Se.x1=A;else Se.x0=Se.x1=A;var Be=Jg(Se.transform.textPosAngle,ge.transform.textPosAngle),Pe=Jg(Se.rpx1,ge.rpx1),me=Jg(Se.x0,ge.x0),De=Jg(Se.x1,ge.x1),ce=Jg(Se.transform.scale,Ee.scale),je=Jg(Se.transform.rotate,Ee.rotate),lt=Ee.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Jg(Se.transform.rCenter,Ee.rCenter),Vt=function(ot){return pt(Math.pow(ot,lt))};return function(ot){var ut=Pe(ot),Wt=me(ot),Nt=De(ot),$t=Vt(ot),sr=U(ut,(Wt+Nt)/2),Tr=Be(ot),fr={pxmid:sr,rpx1:ut,transform:{textPosAngle:Tr,rCenter:$t,x:Ee.x,y:Ee.y}};return M6e(c.type,Ee,a),{transform:{targetX:Z(fr),targetY:j(fr),scale:ce(ot),rotate:je(ot),rCenter:$t}}}}function Le(ge){var ie=ge.parent,Se=x[Rl.getPtId(ie)],Ee={};if(Se){var Ae=ie.children,Be=Ae.indexOf(ge),Pe=Ae.length,me=Jg(Se.x0,Se.x1);Ee.x0=me(Be/Pe),Ee.x1=me(Be/Pe)}else Ee.x0=Ee.x1=0;return Ee}}function xLt(e){return fLt.partition().size([2*Math.PI,e.height+1])(e)}jD.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("+"),_=function(g){return v.indexOf(g)!==-1},b=[],p;if(_("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&_("value")&&b.push(Rl.formatValue(u.v,s)),!f){_("current path")&&b.push(Rl.getPath(e.data));var k=0;_("percent parent")&&k++,_("percent entry")&&k++,_("percent root")&&k++;var E=k>1;if(k){var T,L=function(g){p=Rl.formatPercent(T,s),E&&(p+=" of "+g),b.push(p)};_("percent parent")&&!f&&(T=d/Rl.getValue(h),L("parent")),_("percent entry")&&(T=d/Rl.getValue(t),L("entry")),_("percent root")&&(T=d/Rl.getValue(c),L("root"))}}return _("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 M=Av.castOption(r,u.i,"text");return(Av.isValidTextValue(M)||M==="")&&(C.text=M),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 bLt(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 k6e(e){return wLt(e.rpx1,e.transform.textPosAngle)}function wLt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var I6e=ye((h0r,P6e)=>{"use strict";P6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:jke(),categories:[],animatable:!0,attributes:qE(),layoutAttributes:MW(),supplyDefaults:eCe(),supplyLayoutDefaults:rCe(),calc:UE().calc,crossTraceCalc:UE().crossTraceCalc,plot:WD().plot,style:YW().style,colorbar:$d(),meta:{}}});var D6e=ye((d0r,R6e)=>{"use strict";R6e.exports=I6e()});var z6e=ye(BA=>{"use strict";var F6e=Mc();BA.name="treemap";BA.plot=function(e,t,r,n){F6e.plotBasePlot(BA.name,e,t,r,n)};BA.clean=function(e,t,r,n){F6e.cleanBasePlot(BA.name,e,t,r,n)}});var W2=ye((p0r,O6e)=>{"use strict";O6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var XD=ye((g0r,N6e)=>{"use strict";var{hovertemplateAttrs:TLt,texttemplateAttrs:ALt,templatefallbackAttrs:q6e}=Ll(),SLt=Tu(),MLt=Cc().attributes,X2=F2(),tg=qE(),B6e=W2(),JW=Ao().extendFlat,ELt=Pd().pattern;N6e.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:JW({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:ELt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tg.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},SLt("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:JW({},X2.textfont,{}),editType:"calc"},text:X2.text,textinfo:tg.textinfo,texttemplate:ALt({editType:"plot"},{keys:B6e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:q6e({editType:"plot"}),hovertext:X2.hovertext,hoverinfo:tg.hoverinfo,hovertemplate:TLt({},{keys:B6e.eventDataKeys}),hovertemplatefallback:q6e(),textfont:X2.textfont,insidetextfont:X2.insidetextfont,outsidetextfont:JW({},X2.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:X2.sort,root:tg.root,domain:MLt({name:"treemap",trace:!0,editType:"calc"})}});var $W=ye((m0r,U6e)=>{"use strict";U6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var j6e=ye((y0r,H6e)=>{"use strict";var V6e=Dr(),kLt=XD(),CLt=ka(),LLt=Cc().defaults,PLt=i0().handleText,ILt=A_().TEXTPAD,RLt=z2().handleMarkerDefaults,G6e=tc(),DLt=G6e.hasColorscale,FLt=G6e.handleDefaults;H6e.exports=function(t,r,n,i){function a(b,p){return V6e.coerce(t,r,kLt,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",V6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";PLt(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;RLt(t,r,i,a);var v=r._hasColorscale=DLt(t,"marker","colors")||(t.marker||{}).coloraxis;v?FLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:CLt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ILt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LLt(r,i,a),r._length=null}});var X6e=ye((_0r,W6e)=>{"use strict";var zLt=Dr(),OLt=$W();W6e.exports=function(t,r){function n(i,a){return zLt.coerce(t,r,OLt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var eX=ye(QW=>{"use strict";var Z6e=UE();QW.calc=function(e,t){return Z6e.calc(e,t)};QW.crossTraceCalc=function(e){return Z6e._runCrossTraceCalc("treemap",e)}});var tX=ye((b0r,Y6e)=>{"use strict";Y6e.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 NA=BE(),qLt=tX();K6e.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=NA.treemap().tile(BLt(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)&&qLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function BLt(e,t){switch(e){case"squarify":return NA.treemapSquarify.ratio(t);case"binary":return NA.treemapBinary;case"dice":return NA.treemapDice;case"slice":return NA.treemapSlice;default:return NA.treemapSliceDice}}});var ZD=ye((T0r,eLe)=>{"use strict";var J6e=Oa(),UA=ka(),$6e=Dr(),iX=i1(),NLt=bv().resizeText,ULt=HD();function VLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");NLt(e,t,"treemap"),t.each(function(r){var n=J6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){J6e.select(this).call(Q6e,o,a,e,{hovered:!1})})})}function Q6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=iX.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=$6e.castOption(r,s,"marker.line.color")||UA.defaultLine,u=$6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=UA.combine(UA.addOpacity(r._backgroundColor,.75),c),_;if(d===!0){var b=iX.getMaxDepth(r);isFinite(b)?iX.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var p=0;p<_;p++){var k=.5*p/_;c=UA.combine(UA.addOpacity(v,k),c)}}}e.call(ULt,t,r,n,c).style("stroke-width",u).call(UA.stroke,l).style("opacity",h)}eLe.exports={style:VLt,styleOne:Q6e}});var aLe=ye((A0r,nLe)=>{"use strict";var tLe=Oa(),YD=Dr(),rLe=So(),GLt=Zl(),HLt=rX(),iLe=ZD().styleOne,nX=W2(),VA=i1(),jLt=$E(),aX=!0;nLe.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,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=L.hierarchy,M=s/x._entryDepth,g=VA.listPath(n.data,"id"),P=HLt(C.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,VA.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,aX,k,[s,l],f),i.order();var A=i;v&&(A=A.transition().each("end",function(){var z=tLe.select(this);VA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.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 O=tLe.select(this),U=YD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?U.transition().attrTween("d",function(N){var H=b(N,aX,k,[s,l]);return function(re){return f(H(re))}}):U.attr("d",f),O.call(jLt,n,t,r,{styleOne:iLe,eventDataKeys:nX.eventDataKeys,transitionTime:nX.CLICK_TRANSITION_TIME,transitionEasing:nX.CLICK_TRANSITION_EASING}).call(VA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(iLe,z,x,t,{hovered:!1}),z._text=(VA.getPtLabel(z)||"").split("
").join(" ")||"";var G=YD.ensureSingle(O,"g","slicetext"),Z=YD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),j=YD.ensureUniformFontSize(t,VA.determineTextFont(x,z,T.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(rLe.font,j).call(GLt.convertToTspans,t),z.textBB=rLe.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,aX,k,[s,l]);return function(re){return d(H(re))}}):Z.attr("transform",d(z))})}});var uLe=ye((S0r,lLe)=>{"use strict";var oLe=Oa(),oX=(H2(),pb(G2)).interpolate,ix=i1(),ek=Dr(),sLe=A_().TEXTPAD,WLt=d2(),XLt=WLt.toMoveInsideBar,ZLt=bv(),sX=ZLt.recordMinTextSize,YLt=W2(),KLt=aLe();function Z2(e){return ix.isHierarchyRoot(e)?"":ix.getPtId(e)}lLe.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=ix.findEntryWithLevel(f,l.level),d=oLe.select(n),v=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){v.remove(),_.remove();return}var b=ix.isHierarchyRoot(h),p=!o.uniformtext.mode&&ix.hasTransition(i),k=ix.getMaxDepth(l),E=function($e){return $e.data.depth-h.data.depth-1?C+P:-(g+P):0,z={x0:M,x1:M,y0:A,y1:A+g},O=function($e,St,Qt){var Gt=l.tiling.pad,_t=function(lr){return lr-Gt<=St.x0},It=function(lr){return lr+Gt>=St.x1},mt=function(lr){return lr-Gt<=St.y0},er=function(lr){return lr+Gt>=St.y1};return $e.x0===St.x0&&$e.x1===St.x1&&$e.y0===St.y0&&$e.y1===St.y1?{x0:$e.x0,x1:$e.x1,y0:$e.y0,y1:$e.y1}:{x0:_t($e.x0-Gt)?0:It($e.x0-Gt)?Qt[0]:$e.x0,x1:_t($e.x1+Gt)?0:It($e.x1+Gt)?Qt[0]:$e.x1,y0:mt($e.y0-Gt)?0:er($e.y0-Gt)?Qt[1]:$e.y0,y1:mt($e.y1+Gt)?0:er($e.y1+Gt)?Qt[1]:$e.y1}},U=null,G={},Z={},j=null,N=function($e,St){return St?G[Z2($e)]:Z[Z2($e)]},H=function($e,St,Qt,Gt){if(St)return G[Z2(f)]||z;var _t=Z[l.level]||Qt;return E($e)?O($e,_t,Gt):{}};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,oe=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),_e=function($e){return re+$e},Ce=function($e){return oe+$e},Le=Ce(0),ge=_e(0),ie=function($e){return ge+$e},Se=function($e){return Le+$e};function Ee($e,St){return $e+","+St}var Ae=ie(0),Be=function($e){$e.x=Math.max(Ae,$e.x)},Pe=l.pathbar.edgeshape,me=function($e){var St=ie(Math.max(Math.min($e.x0,$e.x0),0)),Qt=ie(Math.min(Math.max($e.x1,$e.x1),M)),Gt=Se($e.y0),_t=Se($e.y1),It=g/2,mt={},er={};mt.x=St,er.x=Qt,mt.y=er.y=(Gt+_t)/2;var lr={x:St,y:Gt},wr={x:Qt,y:Gt},Lr={x:Qt,y:_t},ti={x:St,y:_t};return Pe===">"?(lr.x-=It,wr.x-=It,Lr.x-=It,ti.x-=It):Pe==="/"?(Lr.x-=It,ti.x-=It,mt.x-=It/2,er.x-=It/2):Pe==="\\"?(lr.x-=It,wr.x-=It,mt.x-=It/2,er.x-=It/2):Pe==="<"&&(mt.x-=It,er.x-=It),Be(lr),Be(ti),Be(mt),Be(wr),Be(Lr),Be(er),"M"+Ee(lr.x,lr.y)+"L"+Ee(wr.x,wr.y)+"L"+Ee(er.x,er.y)+"L"+Ee(Lr.x,Lr.y)+"L"+Ee(ti.x,ti.y)+"L"+Ee(mt.x,mt.y)+"Z"},De=l[c?"tiling":"marker"].pad,ce=function($e){return l.textposition.indexOf($e)!==-1},je=ce("top"),lt=ce("left"),pt=ce("right"),Vt=ce("bottom"),ot=function($e){var St=_e($e.x0),Qt=_e($e.x1),Gt=Ce($e.y0),_t=Ce($e.y1),It=Qt-St,mt=_t-Gt;if(!It||!mt)return"";var er=l.marker.cornerradius||0,lr=Math.min(er,It/2,mt/2);lr&&$e.data&&$e.data.data&&$e.data.data.label&&(je&&(lr=Math.min(lr,De.t)),lt&&(lr=Math.min(lr,De.l)),pt&&(lr=Math.min(lr,De.r)),Vt&&(lr=Math.min(lr,De.b)));var wr=function(Lr,ti){return lr?"a"+Ee(lr,lr)+" 0 0 1 "+Ee(Lr,ti):""};return"M"+Ee(St,Gt+lr)+wr(lr,-lr)+"L"+Ee(Qt-lr,Gt)+wr(lr,lr)+"L"+Ee(Qt,_t-lr)+wr(-lr,lr)+"L"+Ee(St+lr,_t)+wr(-lr,-lr)+"Z"},ut=function($e,St){var Qt=$e.x0,Gt=$e.x1,_t=$e.y0,It=$e.y1,mt=$e.textBB,er=je||St.isHeader&&!Vt,lr=er?"start":Vt?"end":"middle",wr=ce("right"),Lr=ce("left")||St.onPathbar,ti=Lr?-1:wr?1:0;if(St.isHeader){if(Qt+=(c?De:De.l)-sLe,Gt-=(c?De:De.r)-sLe,Qt>=Gt){var Br=(Qt+Gt)/2;Qt=Br,Gt=Br}var Vr;Vt?(Vr=It-(c?De:De.b),_t{"use strict";var JLt=Oa(),$Lt=i1(),QLt=bv(),ePt=QLt.clearMinTextSize,tPt=V0().resizeText,cLe=uLe();fLe.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(ePt(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&&$Lt.hasTransition(n)){i&&(f=i());var d=JLt.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){cLe(t,v,this,n,s)})})}else c.each(function(v){cLe(t,v,this,n,s)}),l.uniformtext.mode&&tPt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var gLe=ye((E0r,pLe)=>{"use strict";var hLe=Oa(),KD=Dr(),dLe=So(),rPt=Zl(),iPt=rX(),vLe=ZD().styleOne,uX=W2(),nx=i1(),nPt=$E(),aPt=WD().formatSliceLabel,cX=!1;pLe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,A=iPt(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=A.descendants(),O=1/0,U=-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):(O=Math.min(O,re),U=Math.max(U,re))}),i=i.data(z,nx.getPtId),x._maxVisibleLayers=isFinite(U)?U-O+1:0,i.enter().append("g").classed("slice",!0),v(i,cX,k,[o,s],c),i.order();var G=null;if(d&&p){var Z=nx.getPtId(p);i.each(function(H){G===null&&nx.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=hLe.select(this);nx.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=nx.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 oe=hLe.select(this),_e=KD.ensureSingle(oe,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Ee){var Ae=_(Ee,cX,j(),[o,s]);return function(Be){return c(Ae(Be))}}):_e.attr("d",c),oe.call(nPt,n,t,r,{styleOne:vLe,eventDataKeys:uX.eventDataKeys,transitionTime:uX.CLICK_TRANSITION_TIME,transitionEasing:uX.CLICK_TRANSITION_EASING}).call(nx.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(vLe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":nx.getPtLabel(H)||"":H._text=aPt(H,n,x,r,T)||"";var Ce=KD.ensureSingle(oe,"g","slicetext"),Le=KD.ensureSingle(Ce,"text","",function(Ee){Ee.attr("data-notex",1)}),ge=KD.ensureUniformFontSize(t,nx.determineTextFont(x,H,T.font)),ie=H._text||" ",Se=re&&ie.indexOf("
")===-1;Le.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":C||Se?"start":"middle").call(dLe.font,ge).call(rPt.convertToTspans,t),H.textBB=dLe.bBox(Le.node()),H.transform=f(H,{fontSize:ge.size,isHeader:re}),H.transform.fontSize=ge.size,d?Le.transition().attrTween("transform",function(Ee){var Ae=b(Ee,cX,j(),[o,s]);return function(Be){return h(Ae(Be))}}):Le.attr("transform",h(H))}),G}});var yLe=ye((k0r,mLe)=>{"use strict";var oPt=lX(),sPt=gLe();mLe.exports=function(t,r,n,i){return oPt(t,r,n,i,{type:"treemap",drawDescendants:sPt})}});var xLe=ye((C0r,_Le)=>{"use strict";_Le.exports={moduleType:"trace",name:"treemap",basePlotModule:z6e(),categories:[],animatable:!0,attributes:XD(),layoutAttributes:$W(),supplyDefaults:j6e(),supplyLayoutDefaults:X6e(),calc:eX().calc,crossTraceCalc:eX().crossTraceCalc,plot:yLe(),style:ZD().style,colorbar:$d(),meta:{}}});var wLe=ye((L0r,bLe)=>{"use strict";bLe.exports=xLe()});var ALe=ye(GA=>{"use strict";var TLe=Mc();GA.name="icicle";GA.plot=function(e,t,r,n){TLe.plotBasePlot(GA.name,e,t,r,n)};GA.clean=function(e,t,r,n){TLe.cleanBasePlot(GA.name,e,t,r,n)}});var fX=ye((I0r,ELe)=>{"use strict";var{hovertemplateAttrs:lPt,texttemplateAttrs:uPt,templatefallbackAttrs:SLe}=Ll(),cPt=Tu(),fPt=Cc().attributes,tk=F2(),s0=qE(),JD=XD(),MLe=W2(),hPt=Ao().extendFlat,dPt=Pd().pattern;ELe.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:JD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:hPt({colors:s0.marker.colors,line:s0.marker.line,pattern:dPt,editType:"calc"},cPt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:JD.pathbar,text:tk.text,textinfo:s0.textinfo,texttemplate:uPt({editType:"plot"},{keys:MLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:SLe({editType:"plot"}),hovertext:tk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:lPt({},{keys:MLe.eventDataKeys}),hovertemplatefallback:SLe(),textfont:tk.textfont,insidetextfont:tk.insidetextfont,outsidetextfont:JD.outsidetextfont,textposition:JD.textposition,sort:tk.sort,root:s0.root,domain:fPt({name:"icicle",trace:!0,editType:"calc"})}});var hX=ye((R0r,kLe)=>{"use strict";kLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ILe=ye((D0r,PLe)=>{"use strict";var CLe=Dr(),vPt=fX(),pPt=ka(),gPt=Cc().defaults,mPt=i0().handleText,yPt=A_().TEXTPAD,_Pt=z2().handleMarkerDefaults,LLe=tc(),xPt=LLe.hasColorscale,bPt=LLe.handleDefaults;PLe.exports=function(t,r,n,i){function a(d,v){return CLe.coerce(t,r,vPt,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",CLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";mPt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),_Pt(t,r,i,a);var h=r._hasColorscale=xPt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&bPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:pPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*yPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),gPt(r,i,a),r._length=null}});var DLe=ye((F0r,RLe)=>{"use strict";var wPt=Dr(),TPt=hX();RLe.exports=function(t,r){function n(i,a){return wPt.coerce(t,r,TPt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var vX=ye(dX=>{"use strict";var FLe=UE();dX.calc=function(e,t){return FLe.calc(e,t)};dX.crossTraceCalc=function(e){return FLe._runCrossTraceCalc("icicle",e)}});var OLe=ye((O0r,zLe)=>{"use strict";var APt=BE(),SPt=tX();zLe.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=APt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&SPt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var pX=ye((q0r,VLe)=>{"use strict";var qLe=Oa(),BLe=ka(),NLe=Dr(),MPt=bv().resizeText,EPt=HD();function kPt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");MPt(e,t,"icicle"),t.each(function(r){var n=qLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){qLe.select(this).call(ULe,o,a,e)})})}function ULe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=NLe.castOption(r,o,"marker.line.color")||BLe.defaultLine,l=NLe.castOption(r,o,"marker.line.width")||0;e.call(EPt,t,r,n).style("stroke-width",l).call(BLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}VLe.exports={style:kPt,styleOne:ULe}});var XLe=ye((B0r,WLe)=>{"use strict";var GLe=Oa(),$D=Dr(),HLe=So(),CPt=Zl(),LPt=OLe(),jLe=pX().styleOne,gX=W2(),HA=i1(),PPt=$E(),IPt=WD().formatSliceLabel,mX=!1;WLe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=LPt(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}),A=P.descendants(),z=1/0,O=-1/0;A.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),O=Math.max(O,H))}),i=i.data(A,HA.getPtId),x._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,mX,k,[o,s],c),i.order();var U=null;if(d&&p){var G=HA.getPtId(p);i.each(function(N){U===null&&HA.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return U||{x0:0,x1:o,y0:0,y1:s}},j=i;return d&&(j=j.transition().each("end",function(){var N=GLe.select(this);HA.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=GLe.select(this),re=$D.ensureSingle(H,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Le){var ge=_(Le,mX,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(PPt,n,t,r,{styleOne:jLe,eventDataKeys:gX.eventDataKeys,transitionTime:gX.CLICK_TRANSITION_TIME,transitionEasing:gX.CLICK_TRANSITION_EASING}).call(HA.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=IPt(N,n,x,r,T)||"";var oe=$D.ensureSingle(H,"g","slicetext"),_e=$D.ensureSingle(oe,"text","",function(Le){Le.attr("data-notex",1)}),Ce=$D.ensureUniformFontSize(t,HA.determineTextFont(x,N,T.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":C?"start":"middle").call(HLe.font,Ce).call(CPt.convertToTspans,t),N.textBB=HLe.bBox(_e.node()),N.transform=f(N,{fontSize:Ce.size}),N.transform.fontSize=Ce.size,d?_e.transition().attrTween("transform",function(Le){var ge=b(Le,mX,Z(),[o,s]);return function(ie){return h(ge(ie))}}):_e.attr("transform",h(N))}),U}});var YLe=ye((N0r,ZLe)=>{"use strict";var RPt=lX(),DPt=XLe();ZLe.exports=function(t,r,n,i){return RPt(t,r,n,i,{type:"icicle",drawDescendants:DPt})}});var JLe=ye((U0r,KLe)=>{"use strict";KLe.exports={moduleType:"trace",name:"icicle",basePlotModule:ALe(),categories:[],animatable:!0,attributes:fX(),layoutAttributes:hX(),supplyDefaults:ILe(),supplyLayoutDefaults:DLe(),calc:vX().calc,crossTraceCalc:vX().crossTraceCalc,plot:YLe(),style:pX().style,colorbar:$d(),meta:{}}});var QLe=ye((V0r,$Le)=>{"use strict";$Le.exports=JLe()});var tPe=ye(jA=>{"use strict";var ePe=Mc();jA.name="funnelarea";jA.plot=function(e,t,r,n){ePe.plotBasePlot(jA.name,e,t,r,n)};jA.clean=function(e,t,r,n){ePe.cleanBasePlot(jA.name,e,t,r,n)}});var yX=ye((H0r,iPe)=>{"use strict";var iv=F2(),FPt=Gl(),zPt=Cc().attributes,{hovertemplateAttrs:OPt,texttemplateAttrs:qPt,templatefallbackAttrs:rPe}=Ll(),Y2=Ao().extendFlat;iPe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:Y2({},iv.marker.line.color,{dflt:null}),width:Y2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:Y2({},iv.scalegroup,{}),textinfo:Y2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:qPt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:rPe({editType:"plot"}),hoverinfo:Y2({},FPt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:OPt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:rPe(),textposition:Y2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:Y2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:zPt({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 _X=ye((j0r,nPe)=>{"use strict";var BPt=_D().hiddenlabels;nPe.exports={hiddenlabels:BPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var sPe=ye((W0r,oPe)=>{"use strict";var aPe=Dr(),NPt=yX(),UPt=Cc().defaults,VPt=i0().handleText,GPt=z2().handleLabelsAndValues,HPt=z2().handleMarkerDefaults;oPe.exports=function(t,r,n,i){function a(_,b){return aPe.coerce(t,r,NPt,_,b)}var o=a("labels"),s=a("values"),l=GPt(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,HPt(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");VPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");UPt(r,i,a);var v=a("title.text");v&&(a("title.position"),aPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var uPe=ye((X0r,lPe)=>{"use strict";var jPt=Dr(),WPt=_X();lPe.exports=function(t,r){function n(i,a){return jPt.coerce(t,r,WPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var xX=ye((Z0r,fPe)=>{"use strict";var cPe=EA();function XPt(e,t){return cPe.calc(e,t)}function ZPt(e){cPe.crossTraceCalc(e,{type:"funnelarea"})}fPe.exports={calc:XPt,crossTraceCalc:ZPt}});var gPe=ye((Y0r,pPe)=>{"use strict";var K2=Oa(),bX=So(),ax=Dr(),YPt=ax.strScale,hPe=ax.strTranslate,dPe=Zl(),KPt=d2(),JPt=KPt.toMoveInsideBar,vPe=bv(),$Pt=vPe.recordMinTextSize,QPt=vPe.clearMinTextSize,eIt=g_(),WA=TD(),tIt=WA.attachFxHandlers,rIt=WA.determineInsideTextFont,iIt=WA.layoutAreas,nIt=WA.prerenderTitles,aIt=WA.positionTitleOutside,oIt=WA.formatSliceLabel;pPe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;QPt("funnelarea",i),nIt(r,t),iIt(r,i._size),ax.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=K2.select(this),s=a[0],l=s.trace;lIt(a),o.each(function(){var u=K2.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){K2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,_=K2.select(this),b=_.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(tIt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+wX(f.TR,f.BR)+wX(f.BR,f.BL)+wX(f.BL,f.TL)+"Z";b.attr("d",p),oIt(t,f,s);var k=eIt.castOption(l.textposition,f.pts),E=_.selectAll("g.slicetext").data(f.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=ax.ensureSingle(K2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=ax.ensureUniformFontSize(t,rIt(l,f,i.font));T.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(bX.font,L).call(dPe.convertToTspans,t);var x=bX.bBox(T.node()),C,M,g,P=Math.min(f.BL[1],f.BR[1])+v,A=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,C=JPt(M,g,P,A,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,$Pt(l.type,C,i),a[h].transform=C,ax.setTransormAndDisplay(T,C)})});var c=K2.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=ax.ensureSingle(K2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=ax.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(bX.font,l.title.font).call(dPe.convertToTspans,t);var d=aIt(s,i._size);f.attr("transform",hPe(d.x,d.y)+YPt(Math.min(1,d.scale))+hPe(d.tx,d.ty))})})})};function wX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function sIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function lIt(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 O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,_;for(v=e.length-1;v>-1;v--)if(_=e[v],!_.hidden){var b=_.v/l;u+=b,d.push(f())}var p=1/0,k=-1/0;for(v=0;v-1;v--)if(_=e[v],!_.hidden){P+=1;var A=d[P][0],z=d[P][1];_.TL=[-A,z],_.TR=[A,z],_.BL=M,_.BR=g,_.pxmid=sIt(_.TR,_.BR),M=_.TL,g=_.TR}}});var _Pe=ye((K0r,yPe)=>{"use strict";var mPe=Oa(),uIt=X3(),cIt=bv().resizeText;yPe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");cIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=mPe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){mPe.select(this).call(uIt,s,a,t)})})}});var bPe=ye((J0r,xPe)=>{"use strict";xPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:tPe(),categories:["pie-like","funnelarea","showLegend"],attributes:yX(),layoutAttributes:_X(),supplyDefaults:sPe(),supplyLayoutDefaults:uPe(),calc:xX().calc,crossTraceCalc:xX().crossTraceCalc,plot:gPe(),style:_Pe(),styleOne:X3(),meta:{}}});var TPe=ye(($0r,wPe)=>{"use strict";wPe.exports=bPe()});var zd=ye((Q0r,APe)=>{(function(){var e={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()}},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),_=Math.cos(u);return o[0]=c+d*v+h*_,o[1]=s[1],o[2]=f+d*_-h*v,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}},216:function(i){"use strict";i.exports=a;function a(o,s){for(var l={},u=0;u1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var _=1;_=0;--N){var Se=Z[N];H=Se[0];var Ee=U[H],Ae=Ee[0],Be=Ee[1],Pe=O[Ae],me=O[Be];if((Pe[0]-me[0]||Pe[1]-me[1])<0){var De=Ae;Ae=Be,Be=De}Ee[0]=Ae;var ce=Ee[1]=Se[1],je;for(j&&(je=Ee[2]);N>0&&Z[N-1][0]===H;){var Se=Z[--N],lt=Se[1];j?U.push([ce,lt,je]):U.push([ce,lt]),ce=lt}j?U.push([ce,Be,je]):U.push([ce,Be])}return re}function x(O,U,G){for(var Z=U.length,j=new s(Z),N=[],H=0;HU[2]?1:0)}function g(O,U,G){if(O.length!==0){if(U)for(var Z=0;Z0||H.length>0}function z(O,U,G){var Z;if(G){Z=U;for(var j=new Array(U.length),N=0;N{});function Ym(){}function sCe(){return this.rgb().formatHex()}function N6t(){return this.rgb().formatHex8()}function U6t(){return vCe(this).formatHsl()}function lCe(){return this.rgb().formatRgb()}function ex(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=R6t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?uCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?MD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?MD(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=D6t.exec(e))?new _d(t[1],t[2],t[3],1):(t=F6t.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=z6t.exec(e))?MD(t[1],t[2],t[3],t[4]):(t=O6t.exec(e))?MD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=q6t.exec(e))?hCe(t[1],t[2]/100,t[3]/100,1):(t=B6t.exec(e))?hCe(t[1],t[2]/100,t[3]/100,t[4]):oCe.hasOwnProperty(e)?uCe(oCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function uCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function MD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function HE(e){return e instanceof Ym||(e=ex(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function IA(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 cCe(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}`}function V6t(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}${O2((isNaN(this.opacity)?1:this.opacity)*255)}`}function fCe(){let e=kD(this.opacity);return`${e===1?"rgb(":"rgba("}${q2(this.r)}, ${q2(this.g)}, ${q2(this.b)}${e===1?")":`, ${e})`}`}function kD(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 O2(e){return e=q2(e),(e<16?"0":"")+e.toString(16)}function hCe(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 vCe(e){if(e instanceof Kg)return new Kg(e.h,e.s,e.l,e.opacity);if(e instanceof Ym||(e=ex(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?vCe(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 dCe(e){return e=(e||0)%360,e<0?e+360:e}function ED(e){return Math.max(0,Math.min(1,e||0))}function EW(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 Q_,B2,PA,GE,Zm,R6t,D6t,F6t,z6t,O6t,q6t,B6t,oCe,CD=gu(()=>{SD();Q_=.7,B2=1/Q_,PA="\\s*([+-]?\\d+)\\s*",GE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R6t=/^#([0-9a-f]{3,8})$/,D6t=new RegExp(`^rgb\\(${PA},${PA},${PA}\\)$`),F6t=new RegExp(`^rgb\\(${Zm},${Zm},${Zm}\\)$`),z6t=new RegExp(`^rgba\\(${PA},${PA},${PA},${GE}\\)$`),O6t=new RegExp(`^rgba\\(${Zm},${Zm},${Zm},${GE}\\)$`),q6t=new RegExp(`^hsl\\(${GE},${Zm},${Zm}\\)$`),B6t=new RegExp(`^hsla\\(${GE},${Zm},${Zm},${GE}\\)$`),oCe={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(Ym,ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sCe,formatHex:sCe,formatHex8:N6t,formatHsl:U6t,formatRgb:lCe,toString:lCe});t1(_d,IA,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(q2(this.r),q2(this.g),q2(this.b),kD(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:cCe,formatHex:cCe,formatHex8:V6t,formatRgb:fCe,toString:fCe}));t1(Kg,jE,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new Kg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,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(EW(e>=240?e-240:e+120,i,n),EW(e,i,n),EW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Kg(dCe(this.h),ED(this.s),ED(this.l),kD(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=kD(this.opacity);return`${e===1?"hsl(":"hsla("}${dCe(this.h)}, ${ED(this.s)*100}%, ${ED(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var LD,PD,kW=gu(()=>{LD=Math.PI/180,PD=180/Math.PI});function xCe(e){if(e instanceof Km)return new Km(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return bCe(e);e instanceof _d||(e=HE(e));var t=IW(e.r),r=IW(e.g),n=IW(e.b),i=CW((.2225045*t+.7168786*r+.0606169*n)/gCe),a,o;return t===r&&r===n?a=o=i:(a=CW((.4360747*t+.3850649*r+.1430804*n)/pCe),o=CW((.0139322*t+.0971045*r+.7141733*n)/mCe)),new Km(116*i-16,500*(a-i),200*(i-o),e.opacity)}function DA(e,t,r,n){return arguments.length===1?xCe(e):new Km(e,t,r,n==null?1:n)}function Km(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function CW(e){return e>G6t?Math.pow(e,1/3):e/_Ce+yCe}function LW(e){return e>RA?e*e*e:_Ce*(e-yCe)}function PW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function IW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function H6t(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Km||(e=xCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{SD();CD();kW();ID=18,pCe=.96422,gCe=1,mCe=.82521,yCe=4/29,RA=6/29,_Ce=3*RA*RA,G6t=RA*RA*RA;t1(Km,DA,$_(Ym,{brighter(e){return new Km(this.l+ID*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Km(this.l-ID*(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=pCe*LW(t),e=gCe*LW(e),r=mCe*LW(r),new _d(PW(3.1338561*t-1.6168667*e-.4906146*r),PW(-.9787684*t+1.9161415*e+.033454*r),PW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,WE,$_(Ym,{brighter(e){return new r1(this.h,this.c,this.l+ID*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-ID*(e==null?1:e),this.opacity)},rgb(){return bCe(this).rgb()}}))});function j6t(e){if(e instanceof N2)return new N2(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=(SCe*n+TCe*t-ACe*r)/(SCe+TCe-ACe),a=n-i,o=(XE*(r-i)-DW*a)/RD,s=Math.sqrt(o*o+a*a)/(XE*i*(1-i)),l=s?Math.atan2(o,a)*PD-120:NaN;return new N2(l<0?l+360:l,s,i,e.opacity)}function FA(e,t,r,n){return arguments.length===1?j6t(e):new N2(e,t,r,n==null?1:n)}function N2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var MCe,RW,DW,RD,XE,TCe,ACe,SCe,ECe=gu(()=>{SD();CD();kW();MCe=-.14861,RW=1.78277,DW=-.29227,RD=-.90649,XE=1.97294,TCe=XE*RD,ACe=XE*RW,SCe=RW*DW-RD*MCe;t1(N2,FA,$_(Ym,{brighter(e){return e=e==null?B2:Math.pow(B2,e),new N2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Q_:Math.pow(Q_,e),new N2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*LD,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*(MCe*n+RW*i)),255*(t+r*(DW*n+RD*i)),255*(t+r*(XE*n)),this.opacity)}}))});var U2=gu(()=>{CD();wCe();ECe()});function FW(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 DD(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 zD(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 FW((r-n/t)*t,i,a,o,s)}}var zW=gu(()=>{FD()});var zA,OW=gu(()=>{zA=e=>()=>e});function kCe(e,t){return function(r){return e+r*t}}function W6t(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 tx(e,t){var r=t-e;return r?kCe(e,r>180||r<-180?r-360*Math.round(r/360):r):zA(isNaN(e)?t:e)}function CCe(e){return(e=+e)==1?$f:function(t,r){return r-t?W6t(t,r,e):zA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?kCe(e,r):zA(isNaN(e)?t:e)}var V2=gu(()=>{OW()});function LCe(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{U2();FD();zW();V2();ZE=function e(t){var r=CCe(t);function n(i,a){var o=r((i=IA(i)).r,(a=IA(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);PCe=LCe(DD),ICe=LCe(zD)});function OA(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 RCe(e,t){return(OD(t)?OA:BW)(e,t)}function BW(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();qD()});function BD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var UW=gu(()=>{});function zp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var KE=gu(()=>{});function ND(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]=rx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var VW=gu(()=>{YE()});function X6t(e){return function(){return e}}function Z6t(e){return function(t){return e(t)+""}}function UD(e,t){var r=HW.lastIndex=GW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=HW.exec(e))&&(i=GW.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=GW.lastIndex;return r{KE();HW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GW=new RegExp(HW.source,"g")});function rx(e,t){var r=typeof t,n;return t==null||r==="boolean"?zA(t):(r==="number"?zp:r==="string"?(n=ex(t))?(t=n,ZE):UD:t instanceof ex?ZE:t instanceof Date?BD:OD(t)?OA:Array.isArray(t)?BW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ND:zp)(e,t)}var YE=gu(()=>{U2();qW();NW();UW();KE();VW();jW();OW();qD()});function DCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var FCe=gu(()=>{});function zCe(e,t){var r=tx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var OCe=gu(()=>{V2()});function qCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var BCe=gu(()=>{});function WW(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{NCe=180/Math.PI,VD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function VCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?VD:WW(t.a,t.b,t.c,t.d,t.e,t.f)}function GCe(e){return e==null?VD:(GD||(GD=document.createElementNS("http://www.w3.org/2000/svg","g")),GD.setAttribute("transform",e),(e=GD.transform.baseVal.consolidate())?(e=e.matrix,WW(e.a,e.b,e.c,e.d,e.e,e.f)):VD)}var GD,HCe=gu(()=>{UCe()});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 _=d.push("translate(",null,t,null,r);v.push({i:_-4,x:zp(u,f)},{i:_-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 _=d.push(i(d)+"scale(",null,",",null,")");v.push({i:_-4,x:zp(u,f)},{i:_-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,_=h.length,b;++v<_;)f[(b=h[v]).i]=b.x(d);return f.join("")}}}var WCe,XCe,ZCe=gu(()=>{KE();HCe();WCe=jCe(VCe,"px, ","px)","deg)"),XCe=jCe(GCe,", ",")",")")});function YCe(e){return((e=Math.exp(e))+1/e)/2}function K6t(e){return((e=Math.exp(e))-1/e)/2}function J6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var Y6t,KCe,JCe=gu(()=>{Y6t=1e-12;KCe=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,_=d*d+v*v,b,p;if(_{U2();V2();QCe=$Ce(tx),e6e=$Ce($f)});function XW(e,t){var r=$f((e=DA(e)).l,(t=DA(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 r6e=gu(()=>{U2();V2()});function i6e(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 n6e,a6e,o6e=gu(()=>{U2();V2();n6e=i6e(tx),a6e=i6e($f)});function s6e(e){return function t(r){r=+r;function n(i,a){var o=e((i=FA(i)).h,(a=FA(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 l6e,u6e,c6e=gu(()=>{U2();V2();l6e=s6e(tx),u6e=s6e($f)});function ZW(e,t){t===void 0&&(t=e,e=rx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{YE()});function h6e(e,t){for(var r=new Array(t),n=0;n{});var G2={};mee(G2,{interpolate:()=>rx,interpolateArray:()=>RCe,interpolateBasis:()=>DD,interpolateBasisClosed:()=>zD,interpolateCubehelix:()=>l6e,interpolateCubehelixLong:()=>u6e,interpolateDate:()=>BD,interpolateDiscrete:()=>DCe,interpolateHcl:()=>n6e,interpolateHclLong:()=>a6e,interpolateHsl:()=>QCe,interpolateHslLong:()=>e6e,interpolateHue:()=>zCe,interpolateLab:()=>XW,interpolateNumber:()=>zp,interpolateNumberArray:()=>OA,interpolateObject:()=>ND,interpolateRgb:()=>ZE,interpolateRgbBasis:()=>PCe,interpolateRgbBasisClosed:()=>ICe,interpolateRound:()=>qCe,interpolateString:()=>UD,interpolateTransformCss:()=>WCe,interpolateTransformSvg:()=>XCe,interpolateZoom:()=>KCe,piecewise:()=>ZW,quantize:()=>h6e});var H2=gu(()=>{YE();NW();FD();zW();UW();FCe();OCe();KE();qD();VW();BCe();jW();ZCe();JCe();qW();t6e();r6e();o6e();c6e();f6e();d6e()});var HD=ye((s0r,v6e)=>{"use strict";var $6t=So(),Q6t=ka();v6e.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),$6t.pointStyle(t,n,i,r)}else Q6t.fill(t,l)}});var YW=ye((l0r,_6e)=>{"use strict";var p6e=Oa(),g6e=ka(),m6e=Dr(),eLt=bv().resizeText,tLt=HD();function rLt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");eLt(e,t,"sunburst"),t.each(function(r){var n=p6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){p6e.select(this).call(y6e,o,a,e)})})}function y6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=m6e.castOption(r,o,"marker.line.color")||g6e.defaultLine,l=m6e.castOption(r,o,"marker.line.width")||0;e.call(tLt,t,r,n).style("stroke-width",l).call(g6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}_6e.exports={style:rLt,styleOne:y6e}});var i1=ye(Bs=>{"use strict";var j2=Dr(),iLt=ka(),nLt=Eg(),x6e=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 b6e(e){return e.data.data.pid}Bs.getParent=function(e,t){return Bs.findEntryWithLevel(e,b6e(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=x6e.formatPieValue;Bs.formatPercent=function(e,t){var r=j2.formatPercent(e,0);return r==="0%"&&(r=x6e.formatPiePercent(e,t)),r}});var QE=ye((c0r,A6e)=>{"use strict";var qA=Oa(),w6e=qa(),sLt=ip().appendArrayPointValue,JE=vf(),T6e=Dr(),lLt=k3(),id=i1(),uLt=g_(),cLt=uLt.formatPieValue;A6e.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 _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,k=p.i,E=id.isHierarchyRoot(v),T=id.getParent(l,v),L=id.getValue(v),x=function(Ce){return T6e.castOption(b,k,Ce)},C=x("hovertemplate"),M=JE.castHoverinfo(b,_,k),g=_.separators,P;if(C||M&&M!=="none"&&M!=="skip"){var A,z;u&&(A=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(A=v._hoverX,z=v._hoverY);var O={},U=[],G=[],Z=function(Ce){return U.indexOf(Ce)!==-1};M&&(U=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=cLt(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=id.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var j,N=[],H=function(){N.indexOf(j)===-1&&(G.push(j),N.push(j))};O.percentParent=v.percentParent=L/id.getValue(T),O.parent=v.parentString=id.getPtLabel(T),Z("percent parent")&&(j=id.formatPercent(O.percentParent,g)+" of "+O.parent,H()),O.percentEntry=v.percentEntry=L/id.getValue(r),O.entry=v.entry=id.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(j=id.formatPercent(O.percentEntry,g)+" of "+O.entry,H()),O.percentRoot=v.percentRoot=L/id.getValue(l),O.root=v.root=id.getPtLabel(l),Z("percent root")&&!E&&(j=id.formatPercent(O.percentRoot,g)+" of "+O.root,H()),O.text=x("hovertext")||x("text"),Z("text")&&(j=O.text,T6e.isValidTextValue(j)&&G.push(j)),P=[$E(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:O,eventData:P};u&&(re.x0=A-v.rInscribed*v.rpx1,re.x1=A+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=A,re.idealAlign=A<0?"left":"right");var oe=[];JE.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[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:qA.event})}},h=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=qA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=qA.event,n.emit("plotly_unhover",{points:[$E(p,b,a.eventDataKeys)],event:qA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(JE.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),c){var k=t.select("path.surface");a.styleOne(k,p,b,n,{hovered:!1})}},d=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=u&&(id.isHierarchyRoot(v)||id.isLeaf(v)),k=id.getPtId(v),E=id.isEntry(v)?id.findEntryWithChild(l,k):id.findEntryWithLevel(l,k),T=id.getPtId(E),L={points:[$E(v,b,a.eventDataKeys)],event:qA.event};p||(L.nextLevel=T);var x=lLt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[$E(v,b,a.eventDataKeys)],JE.click(n,qA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){w6e.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};JE.loneUnhover(_._hoverlayer.node()),w6e.call("animate",n,C,M)}};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=Oa(),fLt=NE(),Jg=(H2(),pb(G2)).interpolate,S6e=So(),Av=Dr(),hLt=Zl(),C6e=bv(),M6e=C6e.recordMinTextSize,dLt=C6e.clearMinTextSize,L6e=TD(),vLt=g_().getRotationAngle,pLt=L6e.computeTransform,gLt=L6e.transformInsideText,mLt=YW().styleOne,yLt=V0().resizeText,_Lt=QE(),KW=SW(),Rl=i1();jD.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(dLt("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){E6e(e,f,this,r)})})}else o.each(function(f){E6e(e,f,this,r)}),i.uniformtext.mode&&yLt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function E6e(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,_=c.domain,b=v.w*(_.x[1]-_.x[0]),p=v.h*(_.y[1]-_.y[0]),k=.5*Math.min(b,p),E=u.cx=v.l+v.w*(_.x[1]+_.x[0])/2,T=u.cy=v.t+v.h*(1-_.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=xLt(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Rl.isHierarchyRoot(h)&&(C=C.slice(1),M-=1,g=1,P+=1),C=C.filter(function(ge){return ge.y1<=P});var A=vLt(c.rotation);A&&C.forEach(function(ge){ge.x0+=A,ge.x1+=A});var z=Math.min(M,d),O=function(ge){return(ge-g)/z*k},U=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,E,T)},Z=function(ge){return E+k6e(ge)[0]*(ge.transform.rCenter||0)+(ge.transform.x||0)},j=function(ge){return T+k6e(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),ie=ge.select("path.surface");ie.transition().attrTween("d",function(Ee){var Ae=oe(Ee);return function(Be){return G(Ae(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 re=l;o&&(re=re.transition().each("end",function(){var ge=ek.select(this);Rl.setSliceCursor(ge,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(ge){var ie=ek.select(this),Se=Av.ensureSingle(ie,"path","surface",function(De){De.style("pointer-events",i?"none":"all")});ge.rpx0=O(ge.y0),ge.rpx1=O(ge.y1),ge.xmid=(ge.x0+ge.x1)/2,ge.pxmid=U(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=bLt(ge,c),o?Se.transition().attrTween("d",function(De){var ce=_e(De);return function(je){return G(ce(je))}}):Se.attr("d",G),ie.call(_Lt,h,e,t,{eventDataKeys:KW.eventDataKeys,transitionTime:KW.CLICK_TRANSITION_TIME,transitionEasing:KW.CLICK_TRANSITION_EASING}).call(Rl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(mLt,ge,c,e);var Ee=Av.ensureSingle(ie,"g","slicetext"),Ae=Av.ensureSingle(Ee,"text","",function(De){De.attr("data-notex",1)}),Be=Av.ensureUniformFontSize(e,Rl.determineTextFont(c,ge,a.font));Ae.text(jD.formatSliceLabel(ge,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(S6e.font,Be).call(hLt.convertToTspans,e);var Pe=S6e.bBox(Ae.node());ge.transform=gLt(Pe,ge,u),ge.transform.targetX=Z(ge),ge.transform.targetY=j(ge);var me=function(De,ce){var je=De.transform;return pLt(je,ce),je.fontSize=Be.size,M6e(c.type,je,a),Av.getTextTransform(je)};o?Ae.transition().attrTween("transform",function(De){var ce=Ce(De);return function(je){return me(ce(je),Pe)}}):Ae.attr("transform",me(ge,Pe))});function oe(ge){var ie=Rl.getPtId(ge),Se=x[ie],Ee=x[Rl.getPtId(h)],Ae;if(Ee){var Be=(ge.x1>Ee.x1?2*Math.PI:0)+A;Ae=ge.rpx1N?2*Math.PI:0)+A;Se={x0:Ae,x1:Ae}}else Se={rpx0:k,rpx1:k},Av.extendFlat(Se,Le(ge));else Se={rpx0:0,rpx1:0};else Se={x0:A,x1:A};return Jg(Se,Ee)}function Ce(ge){var ie=x[Rl.getPtId(ge)],Se,Ee=ge.transform;if(ie)Se=ie;else if(Se={rpx1:ge.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(ge.parent)if(N){var Ae=ge.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else Av.extendFlat(Se,Le(ge));else Se.x0=Se.x1=A;else Se.x0=Se.x1=A;var Be=Jg(Se.transform.textPosAngle,ge.transform.textPosAngle),Pe=Jg(Se.rpx1,ge.rpx1),me=Jg(Se.x0,ge.x0),De=Jg(Se.x1,ge.x1),ce=Jg(Se.transform.scale,Ee.scale),je=Jg(Se.transform.rotate,Ee.rotate),lt=Ee.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Jg(Se.transform.rCenter,Ee.rCenter),Vt=function(ot){return pt(Math.pow(ot,lt))};return function(ot){var ut=Pe(ot),Wt=me(ot),Nt=De(ot),$t=Vt(ot),sr=U(ut,(Wt+Nt)/2),Tr=Be(ot),fr={pxmid:sr,rpx1:ut,transform:{textPosAngle:Tr,rCenter:$t,x:Ee.x,y:Ee.y}};return M6e(c.type,Ee,a),{transform:{targetX:Z(fr),targetY:j(fr),scale:ce(ot),rotate:je(ot),rCenter:$t}}}}function Le(ge){var ie=ge.parent,Se=x[Rl.getPtId(ie)],Ee={};if(Se){var Ae=ie.children,Be=Ae.indexOf(ge),Pe=Ae.length,me=Jg(Se.x0,Se.x1);Ee.x0=me(Be/Pe),Ee.x1=me(Be/Pe)}else Ee.x0=Ee.x1=0;return Ee}}function xLt(e){return fLt.partition().size([2*Math.PI,e.height+1])(e)}jD.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("+"),_=function(g){return v.indexOf(g)!==-1},b=[],p;if(_("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&_("value")&&b.push(Rl.formatValue(u.v,s)),!f){_("current path")&&b.push(Rl.getPath(e.data));var k=0;_("percent parent")&&k++,_("percent entry")&&k++,_("percent root")&&k++;var E=k>1;if(k){var T,L=function(g){p=Rl.formatPercent(T,s),E&&(p+=" of "+g),b.push(p)};_("percent parent")&&!f&&(T=d/Rl.getValue(h),L("parent")),_("percent entry")&&(T=d/Rl.getValue(t),L("entry")),_("percent root")&&(T=d/Rl.getValue(c),L("root"))}}return _("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 M=Av.castOption(r,u.i,"text");return(Av.isValidTextValue(M)||M==="")&&(C.text=M),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 bLt(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 k6e(e){return wLt(e.rpx1,e.transform.textPosAngle)}function wLt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var I6e=ye((h0r,P6e)=>{"use strict";P6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:jke(),categories:[],animatable:!0,attributes:BE(),layoutAttributes:MW(),supplyDefaults:eCe(),supplyLayoutDefaults:rCe(),calc:VE().calc,crossTraceCalc:VE().crossTraceCalc,plot:WD().plot,style:YW().style,colorbar:$d(),meta:{}}});var D6e=ye((d0r,R6e)=>{"use strict";R6e.exports=I6e()});var z6e=ye(BA=>{"use strict";var F6e=Mc();BA.name="treemap";BA.plot=function(e,t,r,n){F6e.plotBasePlot(BA.name,e,t,r,n)};BA.clean=function(e,t,r,n){F6e.cleanBasePlot(BA.name,e,t,r,n)}});var W2=ye((p0r,O6e)=>{"use strict";O6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var XD=ye((g0r,N6e)=>{"use strict";var{hovertemplateAttrs:TLt,texttemplateAttrs:ALt,templatefallbackAttrs:q6e}=Ll(),SLt=Tu(),MLt=Cc().attributes,X2=F2(),tg=BE(),B6e=W2(),JW=Ao().extendFlat,ELt=Pd().pattern;N6e.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:JW({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:ELt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tg.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},SLt("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:JW({},X2.textfont,{}),editType:"calc"},text:X2.text,textinfo:tg.textinfo,texttemplate:ALt({editType:"plot"},{keys:B6e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:q6e({editType:"plot"}),hovertext:X2.hovertext,hoverinfo:tg.hoverinfo,hovertemplate:TLt({},{keys:B6e.eventDataKeys}),hovertemplatefallback:q6e(),textfont:X2.textfont,insidetextfont:X2.insidetextfont,outsidetextfont:JW({},X2.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:X2.sort,root:tg.root,domain:MLt({name:"treemap",trace:!0,editType:"calc"})}});var $W=ye((m0r,U6e)=>{"use strict";U6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var j6e=ye((y0r,H6e)=>{"use strict";var V6e=Dr(),kLt=XD(),CLt=ka(),LLt=Cc().defaults,PLt=i0().handleText,ILt=A_().TEXTPAD,RLt=z2().handleMarkerDefaults,G6e=tc(),DLt=G6e.hasColorscale,FLt=G6e.handleDefaults;H6e.exports=function(t,r,n,i){function a(b,p){return V6e.coerce(t,r,kLt,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",V6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";PLt(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;RLt(t,r,i,a);var v=r._hasColorscale=DLt(t,"marker","colors")||(t.marker||{}).coloraxis;v?FLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:CLt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ILt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LLt(r,i,a),r._length=null}});var X6e=ye((_0r,W6e)=>{"use strict";var zLt=Dr(),OLt=$W();W6e.exports=function(t,r){function n(i,a){return zLt.coerce(t,r,OLt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var eX=ye(QW=>{"use strict";var Z6e=VE();QW.calc=function(e,t){return Z6e.calc(e,t)};QW.crossTraceCalc=function(e){return Z6e._runCrossTraceCalc("treemap",e)}});var tX=ye((b0r,Y6e)=>{"use strict";Y6e.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 NA=NE(),qLt=tX();K6e.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=NA.treemap().tile(BLt(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)&&qLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function BLt(e,t){switch(e){case"squarify":return NA.treemapSquarify.ratio(t);case"binary":return NA.treemapBinary;case"dice":return NA.treemapDice;case"slice":return NA.treemapSlice;default:return NA.treemapSliceDice}}});var ZD=ye((T0r,eLe)=>{"use strict";var J6e=Oa(),UA=ka(),$6e=Dr(),iX=i1(),NLt=bv().resizeText,ULt=HD();function VLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");NLt(e,t,"treemap"),t.each(function(r){var n=J6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){J6e.select(this).call(Q6e,o,a,e,{hovered:!1})})})}function Q6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=iX.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=$6e.castOption(r,s,"marker.line.color")||UA.defaultLine,u=$6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=UA.combine(UA.addOpacity(r._backgroundColor,.75),c),_;if(d===!0){var b=iX.getMaxDepth(r);isFinite(b)?iX.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var p=0;p<_;p++){var k=.5*p/_;c=UA.combine(UA.addOpacity(v,k),c)}}}e.call(ULt,t,r,n,c).style("stroke-width",u).call(UA.stroke,l).style("opacity",h)}eLe.exports={style:VLt,styleOne:Q6e}});var aLe=ye((A0r,nLe)=>{"use strict";var tLe=Oa(),YD=Dr(),rLe=So(),GLt=Zl(),HLt=rX(),iLe=ZD().styleOne,nX=W2(),VA=i1(),jLt=QE(),aX=!0;nLe.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,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=L.hierarchy,M=s/x._entryDepth,g=VA.listPath(n.data,"id"),P=HLt(C.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,VA.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,aX,k,[s,l],f),i.order();var A=i;v&&(A=A.transition().each("end",function(){var z=tLe.select(this);VA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.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 O=tLe.select(this),U=YD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?U.transition().attrTween("d",function(N){var H=b(N,aX,k,[s,l]);return function(re){return f(H(re))}}):U.attr("d",f),O.call(jLt,n,t,r,{styleOne:iLe,eventDataKeys:nX.eventDataKeys,transitionTime:nX.CLICK_TRANSITION_TIME,transitionEasing:nX.CLICK_TRANSITION_EASING}).call(VA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(iLe,z,x,t,{hovered:!1}),z._text=(VA.getPtLabel(z)||"").split("
").join(" ")||"";var G=YD.ensureSingle(O,"g","slicetext"),Z=YD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),j=YD.ensureUniformFontSize(t,VA.determineTextFont(x,z,T.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(rLe.font,j).call(GLt.convertToTspans,t),z.textBB=rLe.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,aX,k,[s,l]);return function(re){return d(H(re))}}):Z.attr("transform",d(z))})}});var uLe=ye((S0r,lLe)=>{"use strict";var oLe=Oa(),oX=(H2(),pb(G2)).interpolate,ix=i1(),tk=Dr(),sLe=A_().TEXTPAD,WLt=d2(),XLt=WLt.toMoveInsideBar,ZLt=bv(),sX=ZLt.recordMinTextSize,YLt=W2(),KLt=aLe();function Z2(e){return ix.isHierarchyRoot(e)?"":ix.getPtId(e)}lLe.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=ix.findEntryWithLevel(f,l.level),d=oLe.select(n),v=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){v.remove(),_.remove();return}var b=ix.isHierarchyRoot(h),p=!o.uniformtext.mode&&ix.hasTransition(i),k=ix.getMaxDepth(l),E=function($e){return $e.data.depth-h.data.depth-1?C+P:-(g+P):0,z={x0:M,x1:M,y0:A,y1:A+g},O=function($e,St,Qt){var Gt=l.tiling.pad,_t=function(lr){return lr-Gt<=St.x0},It=function(lr){return lr+Gt>=St.x1},mt=function(lr){return lr-Gt<=St.y0},er=function(lr){return lr+Gt>=St.y1};return $e.x0===St.x0&&$e.x1===St.x1&&$e.y0===St.y0&&$e.y1===St.y1?{x0:$e.x0,x1:$e.x1,y0:$e.y0,y1:$e.y1}:{x0:_t($e.x0-Gt)?0:It($e.x0-Gt)?Qt[0]:$e.x0,x1:_t($e.x1+Gt)?0:It($e.x1+Gt)?Qt[0]:$e.x1,y0:mt($e.y0-Gt)?0:er($e.y0-Gt)?Qt[1]:$e.y0,y1:mt($e.y1+Gt)?0:er($e.y1+Gt)?Qt[1]:$e.y1}},U=null,G={},Z={},j=null,N=function($e,St){return St?G[Z2($e)]:Z[Z2($e)]},H=function($e,St,Qt,Gt){if(St)return G[Z2(f)]||z;var _t=Z[l.level]||Qt;return E($e)?O($e,_t,Gt):{}};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,oe=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),_e=function($e){return re+$e},Ce=function($e){return oe+$e},Le=Ce(0),ge=_e(0),ie=function($e){return ge+$e},Se=function($e){return Le+$e};function Ee($e,St){return $e+","+St}var Ae=ie(0),Be=function($e){$e.x=Math.max(Ae,$e.x)},Pe=l.pathbar.edgeshape,me=function($e){var St=ie(Math.max(Math.min($e.x0,$e.x0),0)),Qt=ie(Math.min(Math.max($e.x1,$e.x1),M)),Gt=Se($e.y0),_t=Se($e.y1),It=g/2,mt={},er={};mt.x=St,er.x=Qt,mt.y=er.y=(Gt+_t)/2;var lr={x:St,y:Gt},wr={x:Qt,y:Gt},Lr={x:Qt,y:_t},ti={x:St,y:_t};return Pe===">"?(lr.x-=It,wr.x-=It,Lr.x-=It,ti.x-=It):Pe==="/"?(Lr.x-=It,ti.x-=It,mt.x-=It/2,er.x-=It/2):Pe==="\\"?(lr.x-=It,wr.x-=It,mt.x-=It/2,er.x-=It/2):Pe==="<"&&(mt.x-=It,er.x-=It),Be(lr),Be(ti),Be(mt),Be(wr),Be(Lr),Be(er),"M"+Ee(lr.x,lr.y)+"L"+Ee(wr.x,wr.y)+"L"+Ee(er.x,er.y)+"L"+Ee(Lr.x,Lr.y)+"L"+Ee(ti.x,ti.y)+"L"+Ee(mt.x,mt.y)+"Z"},De=l[c?"tiling":"marker"].pad,ce=function($e){return l.textposition.indexOf($e)!==-1},je=ce("top"),lt=ce("left"),pt=ce("right"),Vt=ce("bottom"),ot=function($e){var St=_e($e.x0),Qt=_e($e.x1),Gt=Ce($e.y0),_t=Ce($e.y1),It=Qt-St,mt=_t-Gt;if(!It||!mt)return"";var er=l.marker.cornerradius||0,lr=Math.min(er,It/2,mt/2);lr&&$e.data&&$e.data.data&&$e.data.data.label&&(je&&(lr=Math.min(lr,De.t)),lt&&(lr=Math.min(lr,De.l)),pt&&(lr=Math.min(lr,De.r)),Vt&&(lr=Math.min(lr,De.b)));var wr=function(Lr,ti){return lr?"a"+Ee(lr,lr)+" 0 0 1 "+Ee(Lr,ti):""};return"M"+Ee(St,Gt+lr)+wr(lr,-lr)+"L"+Ee(Qt-lr,Gt)+wr(lr,lr)+"L"+Ee(Qt,_t-lr)+wr(-lr,lr)+"L"+Ee(St+lr,_t)+wr(-lr,-lr)+"Z"},ut=function($e,St){var Qt=$e.x0,Gt=$e.x1,_t=$e.y0,It=$e.y1,mt=$e.textBB,er=je||St.isHeader&&!Vt,lr=er?"start":Vt?"end":"middle",wr=ce("right"),Lr=ce("left")||St.onPathbar,ti=Lr?-1:wr?1:0;if(St.isHeader){if(Qt+=(c?De:De.l)-sLe,Gt-=(c?De:De.r)-sLe,Qt>=Gt){var Br=(Qt+Gt)/2;Qt=Br,Gt=Br}var Vr;Vt?(Vr=It-(c?De:De.b),_t{"use strict";var JLt=Oa(),$Lt=i1(),QLt=bv(),ePt=QLt.clearMinTextSize,tPt=V0().resizeText,cLe=uLe();fLe.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(ePt(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&&$Lt.hasTransition(n)){i&&(f=i());var d=JLt.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){cLe(t,v,this,n,s)})})}else c.each(function(v){cLe(t,v,this,n,s)}),l.uniformtext.mode&&tPt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var gLe=ye((E0r,pLe)=>{"use strict";var hLe=Oa(),KD=Dr(),dLe=So(),rPt=Zl(),iPt=rX(),vLe=ZD().styleOne,uX=W2(),nx=i1(),nPt=QE(),aPt=WD().formatSliceLabel,cX=!1;pLe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,A=iPt(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=A.descendants(),O=1/0,U=-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):(O=Math.min(O,re),U=Math.max(U,re))}),i=i.data(z,nx.getPtId),x._maxVisibleLayers=isFinite(U)?U-O+1:0,i.enter().append("g").classed("slice",!0),v(i,cX,k,[o,s],c),i.order();var G=null;if(d&&p){var Z=nx.getPtId(p);i.each(function(H){G===null&&nx.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=hLe.select(this);nx.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=nx.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 oe=hLe.select(this),_e=KD.ensureSingle(oe,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Ee){var Ae=_(Ee,cX,j(),[o,s]);return function(Be){return c(Ae(Be))}}):_e.attr("d",c),oe.call(nPt,n,t,r,{styleOne:vLe,eventDataKeys:uX.eventDataKeys,transitionTime:uX.CLICK_TRANSITION_TIME,transitionEasing:uX.CLICK_TRANSITION_EASING}).call(nx.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(vLe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":nx.getPtLabel(H)||"":H._text=aPt(H,n,x,r,T)||"";var Ce=KD.ensureSingle(oe,"g","slicetext"),Le=KD.ensureSingle(Ce,"text","",function(Ee){Ee.attr("data-notex",1)}),ge=KD.ensureUniformFontSize(t,nx.determineTextFont(x,H,T.font)),ie=H._text||" ",Se=re&&ie.indexOf("
")===-1;Le.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":C||Se?"start":"middle").call(dLe.font,ge).call(rPt.convertToTspans,t),H.textBB=dLe.bBox(Le.node()),H.transform=f(H,{fontSize:ge.size,isHeader:re}),H.transform.fontSize=ge.size,d?Le.transition().attrTween("transform",function(Ee){var Ae=b(Ee,cX,j(),[o,s]);return function(Be){return h(Ae(Be))}}):Le.attr("transform",h(H))}),G}});var yLe=ye((k0r,mLe)=>{"use strict";var oPt=lX(),sPt=gLe();mLe.exports=function(t,r,n,i){return oPt(t,r,n,i,{type:"treemap",drawDescendants:sPt})}});var xLe=ye((C0r,_Le)=>{"use strict";_Le.exports={moduleType:"trace",name:"treemap",basePlotModule:z6e(),categories:[],animatable:!0,attributes:XD(),layoutAttributes:$W(),supplyDefaults:j6e(),supplyLayoutDefaults:X6e(),calc:eX().calc,crossTraceCalc:eX().crossTraceCalc,plot:yLe(),style:ZD().style,colorbar:$d(),meta:{}}});var wLe=ye((L0r,bLe)=>{"use strict";bLe.exports=xLe()});var ALe=ye(GA=>{"use strict";var TLe=Mc();GA.name="icicle";GA.plot=function(e,t,r,n){TLe.plotBasePlot(GA.name,e,t,r,n)};GA.clean=function(e,t,r,n){TLe.cleanBasePlot(GA.name,e,t,r,n)}});var fX=ye((I0r,ELe)=>{"use strict";var{hovertemplateAttrs:lPt,texttemplateAttrs:uPt,templatefallbackAttrs:SLe}=Ll(),cPt=Tu(),fPt=Cc().attributes,rk=F2(),s0=BE(),JD=XD(),MLe=W2(),hPt=Ao().extendFlat,dPt=Pd().pattern;ELe.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:JD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:hPt({colors:s0.marker.colors,line:s0.marker.line,pattern:dPt,editType:"calc"},cPt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:JD.pathbar,text:rk.text,textinfo:s0.textinfo,texttemplate:uPt({editType:"plot"},{keys:MLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:SLe({editType:"plot"}),hovertext:rk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:lPt({},{keys:MLe.eventDataKeys}),hovertemplatefallback:SLe(),textfont:rk.textfont,insidetextfont:rk.insidetextfont,outsidetextfont:JD.outsidetextfont,textposition:JD.textposition,sort:rk.sort,root:s0.root,domain:fPt({name:"icicle",trace:!0,editType:"calc"})}});var hX=ye((R0r,kLe)=>{"use strict";kLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ILe=ye((D0r,PLe)=>{"use strict";var CLe=Dr(),vPt=fX(),pPt=ka(),gPt=Cc().defaults,mPt=i0().handleText,yPt=A_().TEXTPAD,_Pt=z2().handleMarkerDefaults,LLe=tc(),xPt=LLe.hasColorscale,bPt=LLe.handleDefaults;PLe.exports=function(t,r,n,i){function a(d,v){return CLe.coerce(t,r,vPt,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",CLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";mPt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),_Pt(t,r,i,a);var h=r._hasColorscale=xPt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&bPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:pPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*yPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),gPt(r,i,a),r._length=null}});var DLe=ye((F0r,RLe)=>{"use strict";var wPt=Dr(),TPt=hX();RLe.exports=function(t,r){function n(i,a){return wPt.coerce(t,r,TPt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var vX=ye(dX=>{"use strict";var FLe=VE();dX.calc=function(e,t){return FLe.calc(e,t)};dX.crossTraceCalc=function(e){return FLe._runCrossTraceCalc("icicle",e)}});var OLe=ye((O0r,zLe)=>{"use strict";var APt=NE(),SPt=tX();zLe.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=APt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&SPt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var pX=ye((q0r,VLe)=>{"use strict";var qLe=Oa(),BLe=ka(),NLe=Dr(),MPt=bv().resizeText,EPt=HD();function kPt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");MPt(e,t,"icicle"),t.each(function(r){var n=qLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){qLe.select(this).call(ULe,o,a,e)})})}function ULe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=NLe.castOption(r,o,"marker.line.color")||BLe.defaultLine,l=NLe.castOption(r,o,"marker.line.width")||0;e.call(EPt,t,r,n).style("stroke-width",l).call(BLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}VLe.exports={style:kPt,styleOne:ULe}});var XLe=ye((B0r,WLe)=>{"use strict";var GLe=Oa(),$D=Dr(),HLe=So(),CPt=Zl(),LPt=OLe(),jLe=pX().styleOne,gX=W2(),HA=i1(),PPt=QE(),IPt=WD().formatSliceLabel,mX=!1;WLe.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,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=LPt(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}),A=P.descendants(),z=1/0,O=-1/0;A.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),O=Math.max(O,H))}),i=i.data(A,HA.getPtId),x._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,mX,k,[o,s],c),i.order();var U=null;if(d&&p){var G=HA.getPtId(p);i.each(function(N){U===null&&HA.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return U||{x0:0,x1:o,y0:0,y1:s}},j=i;return d&&(j=j.transition().each("end",function(){var N=GLe.select(this);HA.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=GLe.select(this),re=$D.ensureSingle(H,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Le){var ge=_(Le,mX,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(PPt,n,t,r,{styleOne:jLe,eventDataKeys:gX.eventDataKeys,transitionTime:gX.CLICK_TRANSITION_TIME,transitionEasing:gX.CLICK_TRANSITION_EASING}).call(HA.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=IPt(N,n,x,r,T)||"";var oe=$D.ensureSingle(H,"g","slicetext"),_e=$D.ensureSingle(oe,"text","",function(Le){Le.attr("data-notex",1)}),Ce=$D.ensureUniformFontSize(t,HA.determineTextFont(x,N,T.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":C?"start":"middle").call(HLe.font,Ce).call(CPt.convertToTspans,t),N.textBB=HLe.bBox(_e.node()),N.transform=f(N,{fontSize:Ce.size}),N.transform.fontSize=Ce.size,d?_e.transition().attrTween("transform",function(Le){var ge=b(Le,mX,Z(),[o,s]);return function(ie){return h(ge(ie))}}):_e.attr("transform",h(N))}),U}});var YLe=ye((N0r,ZLe)=>{"use strict";var RPt=lX(),DPt=XLe();ZLe.exports=function(t,r,n,i){return RPt(t,r,n,i,{type:"icicle",drawDescendants:DPt})}});var JLe=ye((U0r,KLe)=>{"use strict";KLe.exports={moduleType:"trace",name:"icicle",basePlotModule:ALe(),categories:[],animatable:!0,attributes:fX(),layoutAttributes:hX(),supplyDefaults:ILe(),supplyLayoutDefaults:DLe(),calc:vX().calc,crossTraceCalc:vX().crossTraceCalc,plot:YLe(),style:pX().style,colorbar:$d(),meta:{}}});var QLe=ye((V0r,$Le)=>{"use strict";$Le.exports=JLe()});var tPe=ye(jA=>{"use strict";var ePe=Mc();jA.name="funnelarea";jA.plot=function(e,t,r,n){ePe.plotBasePlot(jA.name,e,t,r,n)};jA.clean=function(e,t,r,n){ePe.cleanBasePlot(jA.name,e,t,r,n)}});var yX=ye((H0r,iPe)=>{"use strict";var iv=F2(),FPt=Gl(),zPt=Cc().attributes,{hovertemplateAttrs:OPt,texttemplateAttrs:qPt,templatefallbackAttrs:rPe}=Ll(),Y2=Ao().extendFlat;iPe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:Y2({},iv.marker.line.color,{dflt:null}),width:Y2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:Y2({},iv.scalegroup,{}),textinfo:Y2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:qPt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:rPe({editType:"plot"}),hoverinfo:Y2({},FPt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:OPt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:rPe(),textposition:Y2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:Y2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:zPt({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 _X=ye((j0r,nPe)=>{"use strict";var BPt=_D().hiddenlabels;nPe.exports={hiddenlabels:BPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var sPe=ye((W0r,oPe)=>{"use strict";var aPe=Dr(),NPt=yX(),UPt=Cc().defaults,VPt=i0().handleText,GPt=z2().handleLabelsAndValues,HPt=z2().handleMarkerDefaults;oPe.exports=function(t,r,n,i){function a(_,b){return aPe.coerce(t,r,NPt,_,b)}var o=a("labels"),s=a("values"),l=GPt(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,HPt(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");VPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");UPt(r,i,a);var v=a("title.text");v&&(a("title.position"),aPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var uPe=ye((X0r,lPe)=>{"use strict";var jPt=Dr(),WPt=_X();lPe.exports=function(t,r){function n(i,a){return jPt.coerce(t,r,WPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var xX=ye((Z0r,fPe)=>{"use strict";var cPe=EA();function XPt(e,t){return cPe.calc(e,t)}function ZPt(e){cPe.crossTraceCalc(e,{type:"funnelarea"})}fPe.exports={calc:XPt,crossTraceCalc:ZPt}});var gPe=ye((Y0r,pPe)=>{"use strict";var K2=Oa(),bX=So(),ax=Dr(),YPt=ax.strScale,hPe=ax.strTranslate,dPe=Zl(),KPt=d2(),JPt=KPt.toMoveInsideBar,vPe=bv(),$Pt=vPe.recordMinTextSize,QPt=vPe.clearMinTextSize,eIt=g_(),WA=TD(),tIt=WA.attachFxHandlers,rIt=WA.determineInsideTextFont,iIt=WA.layoutAreas,nIt=WA.prerenderTitles,aIt=WA.positionTitleOutside,oIt=WA.formatSliceLabel;pPe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;QPt("funnelarea",i),nIt(r,t),iIt(r,i._size),ax.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=K2.select(this),s=a[0],l=s.trace;lIt(a),o.each(function(){var u=K2.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){K2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,_=K2.select(this),b=_.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(tIt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+wX(f.TR,f.BR)+wX(f.BR,f.BL)+wX(f.BL,f.TL)+"Z";b.attr("d",p),oIt(t,f,s);var k=eIt.castOption(l.textposition,f.pts),E=_.selectAll("g.slicetext").data(f.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=ax.ensureSingle(K2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=ax.ensureUniformFontSize(t,rIt(l,f,i.font));T.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(bX.font,L).call(dPe.convertToTspans,t);var x=bX.bBox(T.node()),C,M,g,P=Math.min(f.BL[1],f.BR[1])+v,A=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,C=JPt(M,g,P,A,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,$Pt(l.type,C,i),a[h].transform=C,ax.setTransormAndDisplay(T,C)})});var c=K2.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=ax.ensureSingle(K2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=ax.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(bX.font,l.title.font).call(dPe.convertToTspans,t);var d=aIt(s,i._size);f.attr("transform",hPe(d.x,d.y)+YPt(Math.min(1,d.scale))+hPe(d.tx,d.ty))})})})};function wX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function sIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function lIt(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 O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,_;for(v=e.length-1;v>-1;v--)if(_=e[v],!_.hidden){var b=_.v/l;u+=b,d.push(f())}var p=1/0,k=-1/0;for(v=0;v-1;v--)if(_=e[v],!_.hidden){P+=1;var A=d[P][0],z=d[P][1];_.TL=[-A,z],_.TR=[A,z],_.BL=M,_.BR=g,_.pxmid=sIt(_.TR,_.BR),M=_.TL,g=_.TR}}});var _Pe=ye((K0r,yPe)=>{"use strict";var mPe=Oa(),uIt=X3(),cIt=bv().resizeText;yPe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");cIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=mPe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){mPe.select(this).call(uIt,s,a,t)})})}});var bPe=ye((J0r,xPe)=>{"use strict";xPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:tPe(),categories:["pie-like","funnelarea","showLegend"],attributes:yX(),layoutAttributes:_X(),supplyDefaults:sPe(),supplyLayoutDefaults:uPe(),calc:xX().calc,crossTraceCalc:xX().crossTraceCalc,plot:gPe(),style:_Pe(),styleOne:X3(),meta:{}}});var TPe=ye(($0r,wPe)=>{"use strict";wPe.exports=bPe()});var zd=ye((Q0r,APe)=>{(function(){var e={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()}},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),_=Math.cos(u);return o[0]=c+d*v+h*_,o[1]=s[1],o[2]=f+d*_-h*v,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}},216:function(i){"use strict";i.exports=a;function a(o,s){for(var l={},u=0;u1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var _=1;_=0;--N){var Se=Z[N];H=Se[0];var Ee=U[H],Ae=Ee[0],Be=Ee[1],Pe=O[Ae],me=O[Be];if((Pe[0]-me[0]||Pe[1]-me[1])<0){var De=Ae;Ae=Be,Be=De}Ee[0]=Ae;var ce=Ee[1]=Se[1],je;for(j&&(je=Ee[2]);N>0&&Z[N-1][0]===H;){var Se=Z[--N],lt=Se[1];j?U.push([ce,lt,je]):U.push([ce,lt]),ce=lt}j?U.push([ce,Be,je]):U.push([ce,Be])}return re}function x(O,U,G){for(var Z=U.length,j=new s(Z),N=[],H=0;HU[2]?1:0)}function g(O,U,G){if(O.length!==0){if(U)for(var Z=0;Z0||H.length>0}function z(O,U,G){var Z;if(G){Z=U;for(var j=new Array(U.length),N=0;N/g," ");var re="",oe=[];for(me=0;me-1?parseInt($e[1+Gt]):0,mt=_t>-1?parseInt(St[1+_t]):0;It!==mt&&(Qt=Qt.replace(ot(),"?px "),je*=Math.pow(.75,mt-It),Qt=Qt.replace("?px ",ot())),ce+=.25*ie*(mt-It)}if(H.superscripts===!0){var er=$e.indexOf(k),lr=St.indexOf(k),wr=er>-1?parseInt($e[1+er]):0,Lr=lr>-1?parseInt(St[1+lr]):0;wr!==Lr&&(Qt=Qt.replace(ot(),"?px "),je*=Math.pow(.75,Lr-wr),Qt=Qt.replace("?px ",ot())),ce-=.25*ie*(Lr-wr)}if(H.bolds===!0){var ti=$e.indexOf(v)>-1,Br=St.indexOf(v)>-1;!ti&&Br&&(Vr?Qt=Qt.replace("italic ","italic bold "):Qt="bold "+Qt),ti&&!Br&&(Qt=Qt.replace("bold ",""))}if(H.italics===!0){var Vr=$e.indexOf(b)>-1,dt=St.indexOf(b)>-1;!Vr&&dt&&(Qt="italic "+Qt),Vr&&!dt&&(Qt=Qt.replace("italic ",""))}G.font=Qt}for(Pe=0;Pe0&&(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 oe=g(G,Z,U,N,H,re);return z(oe,j,N)}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},7765:function(i,a,o){"use strict";i.exports=p;var s=o(9618),l=o(1888),u=o(446),c=o(1570);function f(k){for(var E=k.length,T=0,L=0;LU||z<0||z>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,A,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,A,z,O,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[z,O],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 A=this.gl;if(this.type===A.FLOAT&&c.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&c.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==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 A=0;A<2;++A)if(h.indexOf(P[A])<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 A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.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]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},k.setPixels=function(P,A,z,O){var U=this.gl;this.bind(),Array.isArray(A)?(O=z,z=A[1]|0,A=A[0]|0):(A=A||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):U.texSubImage2D(U.TEXTURE_2D,O,A,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||A<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,z,O,U,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,oe=0,_e=E(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 Ce=1;if(H.length===2)oe=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)oe=P.ALPHA;else if(H[2]===2)oe=P.LUMINANCE_ALPHA;else if(H[2]===3)oe=P.RGB;else if(H[2]===4)oe=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((oe===P.LUMINANCE||oe===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(oe=U),oe!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Le=j.size,ge=Z.indexOf(O)<0;if(ge&&Z.push(O),re===G&&_e)j.offset===0&&j.data.length===Le?ge?P.texImage2D(P.TEXTURE_2D,O,U,H[0],H[1],0,U,G,j.data):P.texSubImage2D(P.TEXTURE_2D,O,A,z,H[0],H[1],U,G,j.data):ge?P.texImage2D(P.TEXTURE_2D,O,U,H[0],H[1],0,U,G,j.data.subarray(j.offset,j.offset+Le)):P.texSubImage2D(P.TEXTURE_2D,O,A,z,H[0],H[1],U,G,j.data.subarray(j.offset,j.offset+Le));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(Le):ie=u.mallocUint8(Le);var Se=s(ie,H,[H[2],H[2]*H[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?_(Se,j):l.assign(Se,j),ge?P.texImage2D(P.TEXTURE_2D,O,U,H[0],H[1],0,U,G,ie.subarray(0,Le)):P.texSubImage2D(P.TEXTURE_2D,O,A,z,H[0],H[1],U,G,ie.subarray(0,Le)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),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),A}function x(P,A,z,O,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||z<0||z>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 Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,A,z,0,O,U,null),new p(P,Z,A,z,O,U)}function C(P,A,z,O,U,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new p(P,Z,z,O,U,G)}function M(P,A){var z=A.dtype,O=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>U||O[1]<0||O[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,A.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(O.length===2)j=P.LUMINANCE,O=[O[0],O[1],1],A=s(A.data,O,[A.stride[0],A.stride[1],1],A.offset);else if(O.length===3)if(O[2]===1)j=P.ALPHA;else if(O[2]===2)j=P.LUMINANCE_ALPHA;else if(O[2]===3)j=P.RGB;else if(O[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=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var oe=[O[2],O[2]*O[0],1];H=u.malloc(re,z);var _e=s(H,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?_(_e,A):l.assign(_e,A),N=H.subarray(0,re)}var Ce=L(P);return P.texImage2D(P.TEXTURE_2D,0,j,O[0],O[1],0,j,Z,N),G||u.free(H),new p(P,Ce,O[0],O[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 A=arguments[1],z=v(A)?A:A.raw;if(z)return C(P,z,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return M(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},7790:function(){},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 M=T.points,g=T.velocities,P=T.divergences,A=[],z=[],O=[],U=[],G=[],Z=[],j=0,N=0,H=l.create(),re=l.create(),oe=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,M=L.meshgrid,g=T[0],P=T[1],A=T[2],z=M[0].length,O=M[1].length,U=M[2].length,G=h(M[0],g),Z=h(M[1],P),j=h(M[2],A),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,O-1),H=d(H,0,O-1),j=d(j,0,U-1),re=d(re,0,U-1),G<0||Z<0||j<0||N>z-1||H>O-1||re>U-1)return s.create();var oe=M[0][G],_e=M[0][N],Ce=M[1][Z],Le=M[1][H],ge=M[2][j],ie=M[2][re],Se=(g-oe)/(_e-oe),Ee=(P-Ce)/(Le-Ce),Ae=(A-ge)/(ie-ge);isFinite(Se)||(Se=.5),isFinite(Ee)||(Ee=.5),isFinite(Ae)||(Ae=.5);var Be,Pe,me,De,ce,je;switch(x.reversedX&&(G=z-1-G,N=z-1-N),x.reversedY&&(Z=O-1-Z,H=O-1-H),x.reversedZ&&(j=U-1-j,re=U-1-re),x.filled){case 5:ce=j,je=re,me=Z*U,De=H*U,Be=G*U*O,Pe=N*U*O;break;case 4:ce=j,je=re,Be=G*U,Pe=N*U,me=Z*U*z,De=H*U*z;break;case 3:me=Z,De=H,ce=j*O,je=re*O,Be=G*O*U,Pe=N*O*U;break;case 2:me=Z,De=H,Be=G*O,Pe=N*O,ce=j*O*z,je=re*O*z;break;case 1:Be=G,Pe=N,ce=j*z,je=re*z,me=Z*z*U,De=H*z*U;break;default:Be=G,Pe=N,me=Z*z,De=H*z,ce=j*z*O,je=re*z*O;break}var lt=C[Be+me+ce],pt=C[Be+me+je],Vt=C[Be+De+ce],ot=C[Be+De+je],ut=C[Pe+me+ce],Wt=C[Pe+me+je],Nt=C[Pe+De+ce],$t=C[Pe+De+je],sr=s.create(),Tr=s.create(),fr=s.create(),$e=s.create();s.lerp(sr,lt,ut,Se),s.lerp(Tr,pt,Wt,Se),s.lerp(fr,Vt,Nt,Se),s.lerp($e,ot,$t,Se);var St=s.create(),Qt=s.create();s.lerp(St,sr,fr,Ee),s.lerp(Qt,Tr,$e,Ee);var Gt=s.create();return s.lerp(Gt,St,Qt,Ae),Gt},_=function(T,L){var x=L[0],C=L[1],M=L[2];return T[0]=x<0?-x:x,T[1]=C<0?-C:C,T[2]=M<0?-M:M,T},b=function(T){var L=1/0;T.sort(function(g,P){return g-P});for(var x=T.length,C=1;CN||$tH||srre)},_e=s.distance(L[0],L[1]),Ce=10*_e/C,Le=Ce*Ce,ge=1,ie=0,Se=x.length;Se>1&&(ge=p(x));for(var Ee=0;Eeie&&(ie=lt),ce.push(lt),U.push({points:Be,velocities:Pe,divergences:ce});for(var pt=0;ptLe&&s.scale(Vt,Vt,Ce/Math.sqrt(ot)),s.add(Vt,Vt,Ae),me=z(Vt),s.squaredDistance(De,Vt)-Le>-1e-4*Le){Be.push(Vt),De=Vt,Pe.push(me);var je=O(Vt,me),lt=s.length(je);isFinite(lt)&<>ie&&(ie=lt),ce.push(lt)}Ae=Vt}}var ut=f(U,T.colormap,ie,ge);return g?ut.tubeScale=g:(ie===0&&(ie=1),ut.tubeScale=M*.5*ge/ie),ut};var k=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:k,traceType:"streamtube"})}},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},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,_){if(s(v))return _?h(v,d(_)):[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(_))p.mul(_[1]),k=_[0].clone();else if(l(_))k=_.clone();else if(typeof _=="string")k=c(_);else if(!_)k=u(1);else if(_===Math.floor(_))k=u(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),b+=256;k=u(_)}return b>0?p=p.ushln(b):b<0&&(k=k.ushln(-b)),f(p,k)}},7894:function(i){i.exports=a;function a(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},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"])},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}},8105:function(i){"use strict";i.exports=o;var a={"lo===p0":s,"lo=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+g];if(z===T)if(M===A)M+=1,C+=L;else{for(var O=0;L>O;++O){var U=k[x+O];k[x+O]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function l(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+g];if(zO;++O){var U=k[x+O];k[x+O]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function u(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+P];if(z<=T)if(M===A)M+=1,C+=L;else{for(var O=0;L>O;++O){var U=k[x+O];k[x+O]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function c(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+P];if(z<=T)if(M===A)M+=1,C+=L;else{for(var O=0;L>O;++O){var U=k[x+O];k[x+O]=k[C],k[C++]=U}var G=E[A];E[A]=E[M],E[M++]=G}}return M}function f(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+g],O=k[x+P];if(z<=T&&T<=O)if(M===A)M+=1,C+=L;else{for(var U=0;L>U;++U){var G=k[x+U];k[x+U]=k[C],k[C++]=G}var Z=E[A];E[A]=E[M],E[M++]=Z}}return M}function h(v,_,b,p,k,E,T){for(var L=2*v,x=L*b,C=x,M=b,g=_,P=v+_,A=b;p>A;++A,x+=L){var z=k[x+g],O=k[x+P];if(zU;++U){var G=k[x+U];k[x+U]=k[C],k[C++]=G}var Z=E[A];E[A]=E[M],E[M++]=Z}}return M}function d(v,_,b,p,k,E,T,L){for(var x=2*v,C=x*b,M=C,g=b,P=_,A=v+_,z=b;p>z;++z,C+=x){var O=k[C+P],U=k[C+A];if(!(O>=T)&&!(L>=U))if(g===z)g+=1,M+=x;else{for(var G=0;x>G;++G){var Z=k[C+G];k[C+G]=k[M],k[M++]=Z}var j=E[z];E[z]=E[g],E[g++]=j}}return g}},8107: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}},8116:function(i,a,o){"use strict";var s=o(7518),l=o(870);function u(f){this.bindVertexArrayOES=f.bindVertexArray.bind(f),this.createVertexArrayOES=f.createVertexArray.bind(f),this.deleteVertexArrayOES=f.deleteVertexArray.bind(f)}function c(f,h,d,v){var _=f.createVertexArray?new u(f):f.getExtension("OES_vertex_array_object"),b;return _?b=s(f,_):b=l(f),b.update(h,d,v),b}i.exports=c},8192:function(i,a,o){i.exports=c;var s=o(2825),l=o(3536),u=o(244);function c(f,h){var d=s(f[0],f[1],f[2]),v=s(h[0],h[1],h[2]);l(d,d),l(v,v);var _=u(d,v);return _>1?0:Math.acos(_)}},8210: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,_=0,b=Math.abs,p=s[v],k=b(p),E=l[_],T=b(E),L,x;k=c?(L=p,v+=1,vd)for(var z=h[p],O=1/Math.sqrt(M*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;z[A]+=O*(g[U]*C[G]-g[G]*C[U])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),A=0;A<3;++A)z[A]*=O;else for(var A=0;A<3;++A)z[A]=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}},8418:function(i,a,o){"use strict";var s=o(5219),l=o(2762),u=o(8116),c=o(1888),f=o(6760),h=o(1283),d=o(9366),v=o(5964),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],b=ArrayBuffer,p=DataView;function k(Ae){return b.isView(Ae)&&!(Ae instanceof p)}function E(Ae){return Array.isArray(Ae)||k(Ae)}i.exports=Ee;function T(Ae,Be){var Pe=Ae[0],me=Ae[1],De=Ae[2],ce=Ae[3];return Ae[0]=Be[0]*Pe+Be[4]*me+Be[8]*De+Be[12]*ce,Ae[1]=Be[1]*Pe+Be[5]*me+Be[9]*De+Be[13]*ce,Ae[2]=Be[2]*Pe+Be[6]*me+Be[10]*De+Be[14]*ce,Ae[3]=Be[3]*Pe+Be[7]*me+Be[11]*De+Be[15]*ce,Ae}function L(Ae,Be,Pe,me){return T(me,me,Pe),T(me,me,Be),T(me,me,Ae)}function x(Ae,Be){this.index=Ae,this.dataCoordinate=this.position=Be}function C(Ae){return Ae===!0||Ae>1?1:Ae}function M(Ae,Be,Pe,me,De,ce,je,lt,pt,Vt,ot,ut){this.gl=Ae,this.pixelRatio=1,this.shader=Be,this.orthoShader=Pe,this.projectShader=me,this.pointBuffer=De,this.colorBuffer=ce,this.glyphBuffer=je,this.idBuffer=lt,this.vao=pt,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=Vt,this.pickOrthoShader=ot,this.pickProjectShader=ut,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=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],z=[0,0,0],O=[0,0,0,1],U=[0,0,0,1],G=_.slice(),Z=[0,0,0],j=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function H(Ae,Be){return Ae[0]=Be[0],Ae[1]=Be[1],Ae[2]=Be[2],Ae[3]=1,Ae}function re(Ae,Be,Pe,me){return Ae[0]=Be[0],Ae[1]=Be[1],Ae[2]=Be[2],Ae[Pe]=me,Ae}function oe(Ae){for(var Be=j,Pe=0;Pe<2;++Pe)for(var me=0;me<3;++me)Be[Pe][me]=Math.max(Math.min(Ae[Pe][me],1e8),-1e8);return Be}function _e(Ae,Be,Pe,me){var De=Be.axesProject,ce=Be.gl,je=Ae.uniforms,lt=Pe.model||_,pt=Pe.view||_,Vt=Pe.projection||_,ot=Be.axesBounds,ut=oe(Be.clipBounds),Wt;Be.axes&&Be.axes.lastCubeProps?Wt=Be.axes.lastCubeProps.axis:Wt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),je.view=pt,je.projection=Vt,je.screenSize=P,je.highlightId=Be.highlightId,je.highlightScale=Be.highlightScale,je.clipBounds=ut,je.pickGroup=Be.pickId/255,je.pixelRatio=me;for(var Nt=0;Nt<3;++Nt)if(De[Nt]){je.scale=Be.projectScale[Nt],je.opacity=Be.projectOpacity[Nt];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Nt]=0,Wt[Nt]<0?$t[12+Nt]=ot[0][Nt]:$t[12+Nt]=ot[1][Nt],f($t,lt,$t),je.model=$t;var Tr=(Nt+1)%3,fr=(Nt+2)%3,$e=N(A),St=N(z);$e[Tr]=1,St[fr]=1;var Qt=L(Vt,pt,lt,H(O,$e)),Gt=L(Vt,pt,lt,H(U,St));if(Math.abs(Qt[1])>Math.abs(Gt[1])){var _t=Qt;Qt=Gt,Gt=_t,_t=$e,$e=St,St=_t;var It=Tr;Tr=fr,fr=It}Qt[0]<0&&($e[Tr]=-1),Gt[1]>0&&(St[fr]=-1);for(var mt=0,er=0,sr=0;sr<4;++sr)mt+=Math.pow(lt[4*Tr+sr],2),er+=Math.pow(lt[4*fr+sr],2);$e[Tr]/=Math.sqrt(mt),St[fr]/=Math.sqrt(er),je.axes[0]=$e,je.axes[1]=St,je.fragClipBounds[0]=re(Z,ut[0],Nt,-1e8),je.fragClipBounds[1]=re(Z,ut[1],Nt,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 Ce=[-1e8,-1e8,-1e8],Le=[1e8,1e8,1e8],ge=[Ce,Le];function ie(Ae,Be,Pe,me,De,ce,je){var lt=Pe.gl;if((ce===Pe.projectHasAlpha||je)&&_e(Be,Pe,me,De),ce===Pe.hasAlpha||je){Ae.bind();var pt=Ae.uniforms;pt.model=me.model||_,pt.view=me.view||_,pt.projection=me.projection||_,P[0]=2/lt.drawingBufferWidth,P[1]=2/lt.drawingBufferHeight,pt.screenSize=P,pt.highlightId=Pe.highlightId,pt.highlightScale=Pe.highlightScale,pt.fragClipBounds=ge,pt.clipBounds=Pe.axes.bounds,pt.opacity=Pe.opacity,pt.pickGroup=Pe.pickId/255,pt.pixelRatio=De,Pe.vao.bind(),Pe.vao.draw(lt.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(lt.lineWidth(Pe.lineWidth*De),Pe.vao.draw(lt.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var Be=this.useOrtho?this.orthoShader:this.shader;ie(Be,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var Be=this.useOrtho?this.orthoShader:this.shader;ie(Be,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var Be=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(Be,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var Be=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(Be>=this.pointCount||Be<0)return null;var Pe=this.points[Be],me=this._selectResult;me.index=Be;for(var De=0;De<3;++De)me.position[De]=me.dataCoordinate[De]=Pe[De];return me},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var Be=Ae.index,Pe=Be&255,me=Be>>8&255,De=Be>>16&255;this.highlightId=[Pe/255,me/255,De/255,0]}};function Se(Ae,Be,Pe,me){var De;E(Ae)?Be0){var Vr=0,dt=fr,Ge=[0,0,0,1],Je=[0,0,0,1],We=E(Wt)&&E(Wt[0]),tt=E(sr)&&E(sr[0]);e:for(var me=0;me0?1-er[0][0]:ar<0?1+er[1][0]:1,vr*=vr>0?1-er[0][1]:vr<0?1+er[1][1]:1;for(var ii=[ar,vr],In=It.cells||[],wi=It.positions||[],Gt=0;Gt=c?(L=p,v+=1,v0?1:0}},8648:function(i,a,o){i.exports=o(783)},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),_=Math.cos(u);return o[0]=c+h*_-d*v,o[1]=f+h*v+d*_,o[2]=s[2],o}},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]))}},8731:function(i,a,o){"use strict";i.exports=d;var s=o(8866);function l(v,_,b,p,k,E){this._gl=v,this._wrapper=_,this._index=b,this._locations=p,this._dimension=k,this._constFunc=E}var u=l.prototype;u.pointer=function(_,b,p,k){var E=this,T=E._gl,L=E._locations[E._index];T.vertexAttribPointer(L,E._dimension,_||T.FLOAT,!!b,p||0,k||0),T.enableVertexAttribArray(L)},u.set=function(v,_,b,p){return this._constFunc(this._locations[this._index],v,_,b,p)},Object.defineProperty(u,"location",{get:function(){return this._locations[this._index]},set:function(v){return v!==this._locations[this._index]&&(this._locations[this._index]=v|0,this._wrapper.program=null),v|0}});var c=[function(v,_,b){return b.length===void 0?v.vertexAttrib1f(_,b):v.vertexAttrib1fv(_,b)},function(v,_,b,p){return b.length===void 0?v.vertexAttrib2f(_,b,p):v.vertexAttrib2fv(_,b)},function(v,_,b,p,k){return b.length===void 0?v.vertexAttrib3f(_,b,p,k):v.vertexAttrib3fv(_,b)},function(v,_,b,p,k,E){return b.length===void 0?v.vertexAttrib4f(_,b,p,k,E):v.vertexAttrib4fv(_,b)}];function f(v,_,b,p,k,E,T){var L=c[k],x=new l(v,_,b,p,k,L);Object.defineProperty(E,T,{set:function(C){return v.disableVertexAttribArray(p[b]),L(v,p[b],C),C},get:function(){return x},enumerable:!0})}function h(v,_,b,p,k,E,T){for(var L=new Array(k),x=new Array(k),C=0;C=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[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,p,g,k,x)}else throw new s("","Unknown data type for attribute "+x+": "+C);break}}return k}},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}},8866:function(i){function a(o,s,l){this.shortMessage=s||"",this.longMessage=l||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(l?` -`+l:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,i.exports=a},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,M,g){this.a=L,this.b=x,this.idx=C,this.lowerIds=M,this.upperIds=g}function d(L,x,C,M){this.a=L,this.b=x,this.type=C,this.idx=M}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 _(L,x){return l(L.a,L.b,x)}function b(L,x,C,M,g){for(var P=s.lt(x,M,_),A=s.gt(x,M,_),z=P;z1&&l(C[U[Z-2]],C[U[Z-1]],M)>0;)L.push([U[Z-1],U[Z-2],g]),Z-=1;U.length=Z,U.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(C[G[Z-2]],C[G[Z-1]],M)<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]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var U=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],Z=[],P=0,j=g.length;P0;){k=M.pop();for(var g=k.adjacent,P=0;P<=T;++P){var A=g[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var z=A.vertices,O=0;O<=T;++O){var U=z[O];U<0?x[O]=E:x[O]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,A=g.adjacent,z=0;z<=L;++z)C[z]=x[P[z]];g.lastVisited=T;for(var z=0;z<=L;++z){var O=A[z];if(!(O.lastVisited>=T)){var U=C[z];C[z]=k;var G=this.orient();if(C[z]=U,G<0){g=O;continue e}else O.boundary?O.lastVisited=-T:O.lastVisited=T}}return}return g},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,U=z.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var Z=O[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,M.push(Z),P.push(Z),Z.lastVisited=T;continue}else Z.lastVisited=-T}var oe=Z.adjacent,_e=z.slice(),Ce=O.slice(),Le=new u(_e,Ce,!0);g.push(Le);var ge=oe.indexOf(E);if(!(ge<0)){oe[ge]=Le,Ce[U]=Z,_e[G]=-1,Ce[G]=E,O[G]=Le,Le.flip();for(var H=0;H<=L;++H){var ie=_e[H];if(!(ie<0||ie===T)){for(var Se=new Array(L-1),Ee=0,Ae=0;Ae<=L;++Ae){var Be=_e[Ae];Be<0||Ae===H||(Se[Ee++]=Be)}A.push(new c(Se,Le,H))}}}}}}}A.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:A=z&1;if(A===(k&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(k,E){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 M=new Array(L+1),g=0;g<=L;++g)M[g]=g;C<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),A=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),U=0;U<=L;++U)U===g&&(O[U]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);A[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=A[g].vertices,j=A[g].adjacent,U=0;U<=L;++U){var N=O[U];if(N<0){j[U]=P;continue}for(var H=0;H<=L;++H)A[H].vertices.indexOf(N)<0&&(j[U]=A[H])}for(var re=new _(L,x,z),oe=!!E,g=L+1;g=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(C){this.pickId=C};function k(C){for(var M=v({colormap:C,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],z=0;z<3;++z)g[4*P+z]=A[z];g[4*P+3]=A[3]*255}return d(g,[256,256,4],[4,0,1])}function E(C){for(var M=C.length,g=new Array(M),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(C){C=C||{};for(var M=this.gl,g=C.model||_,P=C.view||_,A=C.projection||_,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:g,view:P,projection:A,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=U,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(C){if(!C||C.id!==this.pickId)return null;var M=C.value[0]+256*C.value[1]+65536*C.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?A.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[g[1]],A.velocity=this.vectors[g[1]].slice(0,3),A.divergence=this.vectors[g[1]][3],A.index=M),A},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,M){var g=s(C,M.meshShader.vertex,M.meshShader.fragment,null,M.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,M){var g=s(C,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(C,M,g){var P=g.shaders;arguments.length===1&&(M=C,C=M.gl);var A=T(C,P),z=L(C,P),O=c(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=C.LINEAR_MIPMAP_LINEAR,O.magFilter=C.LINEAR;var U=l(C),G=l(C),Z=l(C),j=l(C),N=l(C),H=u(C,[{buffer:U,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,O,A,z,U,G,N,Z,j,H,g.traceType||"cone");return re.update(M),re}i.exports=x},9127:function(i,a,o){"use strict";i.exports=u;var s=o(6204),l=o(5771);function u(c){return l(s(c))}},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}},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,E,T){this.gl=p,this.shader=T,this.buffer=k,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=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var k=this.gl,E=this.shader.uniforms;this.shader.bind();var T=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=T[12],C=T[13],M=T[14],g=T[15],P=p._ortho||!1,A=P?2:1,z=A*this.pixelRatio*(L[3]*x+L[7]*C+L[11]*M+L[15]*g)/k.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)k.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&k.drawArrays(k.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,k){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],k[E]),p[1][E]=Math.max(p[1][E],k[E])}var v=function(){for(var p=new Array(3),k=0;k<3;++k){for(var E=[],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,E.push(C)}p[k]=E}return p}();function _(p,k,E,T){for(var L=v[T],x=0;x0){var U=P.slice();U[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,U[0],U[1],U[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,U),C+=2+_(L,U,O,M)}}}this.lineCount[M]=C-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var k=p.gl,E=s(k),T=l(k,[{buffer:E,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:E,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,E,T,L);return x.update(p),x}},9215:function(i,a,o){"use strict";i.exports=d;var s=o(4769),l=o(2478);function u(v,_,b){return Math.min(_,Math.max(v,b))}function c(v,_,b){this.dimension=v.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var p=0;p=b-1)for(var C=E.length-1,g=v-_[b-1],M=0;M=b-1)for(var x=E.length-1,C=v-_[b-1],M=0;M=0;--b)if(v[--_])return!1;return!0},f.jump=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1];this._time.push(_,v);for(var C=0;C<2;++C)for(var M=0;M0;--M)p.push(u(L[M-1],x[M-1],arguments[M])),k.push(0)}},f.push=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=v-_,L=this.bounds,x=L[0],C=L[1],M=T>1e-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[E++])*M)}}},f.set=function(v){var _=this.dimension;if(!(v0;--L)b.push(u(E[L-1],T[L-1],arguments[L])),p.push(0)}},f.move=function(v){var _=this.lastT(),b=this.dimension;if(!(v<=_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1],C=v-_,M=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[E++]+P)),k.push(P*M)}}},f.idle=function(v){var _=this.lastT();if(!(v<_)){var b=this.dimension,p=this._state,k=this._velocity,E=p.length-b,T=this.bounds,L=T[0],x=T[1],C=v-_;this._time.push(v);for(var M=b-1;M>=0;--M)p.push(u(L[M],x[M],p[E]+C*k[E])),k.push(0),E+=1}};function h(v){for(var _=new Array(v),b=0;b1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},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}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},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}},9346:function(i){"use strict";var a=new Float64Array(4),o=new Float64Array(4),s=new Float64Array(4);function l(u,c,f,h,d){a.length=_?(g=1,A=_+2*k+T):(g=-k/_,A=k*g+T)):(g=0,E>=0?(P=0,A=T):-E>=p?(P=1,A=p+2*E+T):(P=-E/p,A=E*P+T));else if(P<0)P=0,k>=0?(g=0,A=T):-k>=_?(g=1,A=_+2*k+T):(g=-k/_,A=k*g+T);else{var z=1/M;g*=z,P*=z,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T}else{var O,U,G,Z;g<0?(O=b+k,U=p+E,U>O?(G=U-O,Z=_-2*b+p,G>=Z?(g=1,P=0,A=_+2*k+T):(g=G/Z,P=1-g,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)):(g=0,U<=0?(P=1,A=p+2*E+T):E>=0?(P=0,A=T):(P=-E/p,A=E*P+T))):P<0?(O=b+E,U=_+k,U>O?(G=U-O,Z=_-2*b+p,G>=Z?(P=1,g=0,A=p+2*E+T):(P=G/Z,g=1-P,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)):(P=0,U<=0?(g=1,A=_+2*k+T):k>=0?(g=0,A=T):(g=-k/_,A=k*g+T))):(G=p+E-b-k,G<=0?(g=0,P=1,A=p+2*E+T):(Z=_-2*b+p,G>=Z?(g=1,P=0,A=_+2*k+T):(g=G/Z,P=1-g,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)))}for(var j=1-g-P,v=0;vE)for(p=E;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;U[G]=re}var oe=new Array(E.length);function _e(){x.program=c.program(C,x._vref,x._fref,O,U);for(var Ce=0;CePe&&De>0){var ce=(me[De][0]-Pe)/(me[De][0]-me[De-1][0]);return me[De][1]*(1-ce)+ce*me[De-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,me){var De,ce,je,lt=me.axes&&me.axes.lastCubeProps.axis||H,pt=me.showSurface,Vt=me.showContour;for(De=0;De<3;++De)for(pt=pt||me.surfaceProject[De],ce=0;ce<3;++ce)Vt=Vt||me.contourProject[De][ce];for(De=0;De<3;++De){var ot=re.projections[De];for(ce=0;ce<16;++ce)ot[ce]=0;for(ce=0;ce<4;++ce)ot[5*ce]=1;ot[5*De]=0,ot[12+De]=me.axesBounds[+(lt[De]>0)][De],p(ot,Pe.model,ot);var ut=re.clipBounds[De];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)ut[je][ce]=Pe.clipBounds[je][ce];ut[0][De]=-1e8,ut[1][De]=1e8}return re.showSurface=pt,re.showContour=Vt,re}var _e={model:A,view:A,projection:A,inverseModel:A.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=A.slice(),Le=[1,0,0,0,1,0,0,0,1];function ge(Pe,me){Pe=Pe||{};var De=this.gl;De.disable(De.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||A,ce.view=Pe.view||A,ce.projection=Pe.projection||A,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 je=0;je<2;++je)for(var lt=ce.clipBounds[je],pt=0;pt<3;++pt)lt[pt]=Math.min(Math.max(this.clipBounds[je][pt],-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=Le,ce.vertexColor=this.vertexColor;var Vt=Ce;for(p(Vt,ce.view,ce.model),p(Vt,ce.projection,Vt),k(Vt,Vt),je=0;je<3;++je)ce.eyePosition[je]=Vt[12+je]/Vt[15];var ot=Vt[15];for(je=0;je<3;++je)ot+=this.lightPosition[je]*Vt[4*je+3];for(je=0;je<3;++je){var ut=Vt[12+je];for(pt=0;pt<3;++pt)ut+=Vt[4*pt+je]*this.lightPosition[pt];ce.lightPosition[je]=ut/ot}var Wt=oe(ce,this);if(Wt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(De.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=Wt.projections[je],this._shader.uniforms.clipBounds=Wt.clipBounds[je],this._vao.draw(De.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Wt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),je=0;je<3;++je)for(Nt.uniforms.permutation=O[je],De.lineWidth(this.contourWidth[je]*this.pixelRatio),pt=0;pt>4)/16)/255,je=Math.floor(ce),lt=ce-je,pt=me[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Vt=Math.floor(pt),ot=pt-Vt;je+=1,Vt+=1;var ut=De.position;ut[0]=ut[1]=ut[2]=0;for(var Wt=0;Wt<2;++Wt)for(var Nt=Wt?lt:1-lt,$t=0;$t<2;++$t)for(var sr=$t?ot:1-ot,Tr=je+Wt,fr=Vt+$t,$e=Nt*sr,St=0;St<3;++St)ut[St]+=this._field[St].get(Tr,fr)*$e;for(var Qt=this._pickResult.level,Gt=0;Gt<3;++Gt)if(Qt[Gt]=E.le(this.contourLevels[Gt],ut[Gt]),Qt[Gt]<0)this.contourLevels[Gt].length>0&&(Qt[Gt]=0);else if(Qt[Gt]Math.abs(It-ut[Gt])&&(Qt[Gt]+=1)}for(De.index[0]=lt<.5?je:je+1,De.index[1]=ot<.5?Vt:Vt+1,De.uv[0]=ce/me[0],De.uv[1]=pt/me[1],St=0;St<3;++St)De.dataCoordinate[St]=this._field[St].get(De.index[0],De.index[1]);return De},j.padField=function(Pe,me){var De=me.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(De[0],De[1]),me),d.assign(Pe.lo(1).hi(De[0],1),me.hi(De[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(De[0],1),me.lo(0,De[1]-1).hi(De[0],1)),d.assign(Pe.lo(0,1).hi(1,De[1]),me.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,De[1]),me.lo(De[0]-1)),Pe.set(0,0,me.get(0,0)),Pe.set(0,ce[1]-1,me.get(0,De[1]-1)),Pe.set(ce[0]-1,0,me.get(De[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,me.get(De[0]-1,De[1]-1))};function Se(Pe,me){return Array.isArray(Pe)?[me(Pe[0]),me(Pe[1]),me(Pe[2])]:[me(Pe),me(Pe),me(Pe)]}function Ee(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Ee(Pe[0]),Ee(Pe[1]),Ee(Pe[2])];var me=Ee(Pe);return[me.slice(),me.slice(),me.slice()]}}j.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var me=Pe.field||Pe.coords&&Pe.coords[2]||null,De=!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 Pe||"coords"in Pe){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]=_(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 je=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]=_(this._field[lt].data,[je[0]+2,je[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(lt=0;lt<2;++lt){var Vt=pt[lt];for($t=0;$t<2;++$t)if(Vt.shape[$t]!==je[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[lt],Vt)}}else if(Pe.ticks){var ot=Pe.ticks;if(!Array.isArray(ot)||ot.length!==2)throw new Error("gl-surface: invalid ticks");for(lt=0;lt<2;++lt){var ut=ot[lt];if((Array.isArray(ut)||ut.length)&&(ut=_(ut)),ut.shape[0]!==je[lt])throw new Error("gl-surface: invalid tick length");var Wt=_(ut.data,je);Wt.stride[lt]=ut.stride[0],Wt.stride[lt^1]=0,this.padField(this._field[lt],Wt)}}else{for(lt=0;lt<2;++lt){var Nt=[0,0];Nt[lt]=1,this._field[lt]=_(this._field[lt].data,[je[0]+2,je[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var tn=0;tn<5;++tn)pi.pop();We-=1}continue e}}}In.push(We)}this._contourOffsets[$r]=ji,this._contourCounts[$r]=In}var fn=f.mallocFloat(pi.length);for(lt=0;lt=0&&(M=x|0,C+=P*M,g-=M),new E(this.data,g,P,C)},T.step=function(x){var C=this.shape[0],M=this.stride[0],g=this.offset,P=0,A=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=M*(C-1),C=A(-C/P)):C=A(C/P),M*=P),new E(this.data,C,M,g)},T.transpose=function(x){x=x===void 0?0:x|0;var C=this.shape,M=this.stride;return new E(this.data,C[x],M[x],this.offset)},T.pick=function(x){var C=[],M=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(C.push(this.shape[0]),M.push(this.stride[0]));var P=p[C.length+1];return P(this.data,C,M,g)},function(x,C,M,g){return new E(x,C[0],M[0],g)}},2:function(b,p,k){function E(L,x,C,M,g,P){this.data=L,this.shape=[x,C],this.stride=[M,g],this.offset=P|0}var T=E.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,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]=M},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 E(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 M=this.offset,g=0,P=this.shape[0],A=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,M+=z*g,P-=g),typeof C=="number"&&C>=0&&(g=C|0,M+=O*g,A-=g),new E(this.data,P,A,z,O,M)},T.step=function(x,C){var M=this.shape[0],g=this.shape[1],P=this.stride[0],A=this.stride[1],z=this.offset,O=0,U=Math.ceil;return typeof x=="number"&&(O=x|0,O<0?(z+=P*(M-1),M=U(-M/O)):M=U(M/O),P*=O),typeof C=="number"&&(O=C|0,O<0?(z+=A*(g-1),g=U(-g/O)):g=U(g/O),A*=O),new E(this.data,M,g,P,A,z)},T.transpose=function(x,C){x=x===void 0?0:x|0,C=C===void 0?1:C|0;var M=this.shape,g=this.stride;return new E(this.data,M[x],M[C],g[x],g[C],this.offset)},T.pick=function(x,C){var M=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(M.push(this.shape[1]),g.push(this.stride[1]));var A=p[M.length+1];return A(this.data,M,g,P)},function(x,C,M,g){return new E(x,C[0],C[1],M[0],M[1],g)}},3:function(b,p,k){function E(L,x,C,M,g,P,A,z){this.data=L,this.shape=[x,C,M],this.stride=[g,P,A],this.offset=z|0}var T=E.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]),M=Math.abs(this.stride[2]);return x>C?C>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>C?[0,1,2]:[0,2,1]}}),T.set=function(x,C,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]=g},T.get=function(x,C,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]},T.index=function(x,C,M){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M},T.hi=function(x,C,M){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,C,M){var g=this.offset,P=0,A=this.shape[0],z=this.shape[1],O=this.shape[2],U=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,A,z,O,U,G,Z,g)},T.step=function(x,C,M){var g=this.shape[0],P=this.shape[1],A=this.shape[2],z=this.stride[0],O=this.stride[1],U=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+=O*(P-1),P=j(-P/Z)):P=j(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=U*(A-1),A=j(-A/Z)):A=j(A/Z),U*=Z),new E(this.data,g,P,A,z,O,U,G)},T.transpose=function(x,C,M){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[x],g[C],g[M],P[x],P[C],P[M],this.offset)},T.pick=function(x,C,M){var g=[],P=[],A=this.offset;typeof x=="number"&&x>=0?A=A+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,A)},function(x,C,M,g){return new E(x,C[0],C[1],C[2],M[0],M[1],M[2],g)}},4:function(b,p,k){function E(L,x,C,M,g,P,A,z,O,U){this.data=L,this.shape=[x,C,M,g],this.stride=[P,A,z,O],this.offset=U|0}var T=E.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,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g]=P},T.get=function(x,C,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g]},T.index=function(x,C,M,g){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g},T.hi=function(x,C,M,g){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|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,M,g){var P=this.offset,A=0,z=this.shape[0],O=this.shape[1],U=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&&(A=x|0,P+=Z*A,z-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=j*A,O-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof g=="number"&&g>=0&&(A=g|0,P+=H*A,G-=A),new E(this.data,z,O,U,G,Z,j,N,H,P)},T.step=function(x,C,M,g){var P=this.shape[0],A=this.shape[1],z=this.shape[2],O=this.shape[3],U=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+=U*(P-1),P=re(-P/H)):P=re(P/H),U*=H),typeof C=="number"&&(H=C|0,H<0?(N+=G*(A-1),A=re(-A/H)):A=re(A/H),G*=H),typeof M=="number"&&(H=M|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*(O-1),O=re(-O/H)):O=re(O/H),j*=H),new E(this.data,P,A,z,O,U,G,Z,j,N)},T.transpose=function(x,C,M,g){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,A=this.stride;return new E(this.data,P[x],P[C],P[M],P[g],A[x],A[C],A[M],A[g],this.offset)},T.pick=function(x,C,M,g){var P=[],A=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?z=z+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),A.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,A,z)},function(x,C,M,g){return new E(x,C[0],C[1],C[2],C[3],M[0],M[1],M[2],M[3],g)}},5:function(p,k,E){function T(x,C,M,g,P,A,z,O,U,G,Z,j){this.data=x,this.shape=[C,M,g,P,A],this.stride=[z,O,U,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:E}),L.set=function(C,M,g,P,A,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A]=z},L.get=function(C,M,g,P,A){return p==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,M,g,P,A){return this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,M,g,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,M,g,P,A){var z=this.offset,O=0,U=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],oe=this.stride[2],_e=this.stride[3],Ce=this.stride[4];return typeof C=="number"&&C>=0&&(O=C|0,z+=H*O,U-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,j-=O),typeof A=="number"&&A>=0&&(O=A|0,z+=Ce*O,N-=O),new T(this.data,U,G,Z,j,N,H,re,oe,_e,Ce,z)},L.step=function(C,M,g,P,A){var z=this.shape[0],O=this.shape[1],U=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],oe=this.stride[4],_e=this.offset,Ce=0,Le=Math.ceil;return typeof C=="number"&&(Ce=C|0,Ce<0?(_e+=j*(z-1),z=Le(-z/Ce)):z=Le(z/Ce),j*=Ce),typeof M=="number"&&(Ce=M|0,Ce<0?(_e+=N*(O-1),O=Le(-O/Ce)):O=Le(O/Ce),N*=Ce),typeof g=="number"&&(Ce=g|0,Ce<0?(_e+=H*(U-1),U=Le(-U/Ce)):U=Le(U/Ce),H*=Ce),typeof P=="number"&&(Ce=P|0,Ce<0?(_e+=re*(G-1),G=Le(-G/Ce)):G=Le(G/Ce),re*=Ce),typeof A=="number"&&(Ce=A|0,Ce<0?(_e+=oe*(Z-1),Z=Le(-Z/Ce)):Z=Le(Z/Ce),oe*=Ce),new T(this.data,z,O,U,G,Z,j,N,H,re,oe,_e)},L.transpose=function(C,M,g,P,A){C=C===void 0?0:C|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var z=this.shape,O=this.stride;return new T(this.data,z[C],z[M],z[g],z[P],z[A],O[C],O[M],O[g],O[P],O[A],this.offset)},L.pick=function(C,M,g,P,A){var z=[],O=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?U=U+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=k[z.length+1];return G(this.data,z,O,U)},function(C,M,g,P){return new T(C,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var k=p===-1?"T":String(p),E=f[k];return p===-1?E(b):p===0?E(b,v[b][0]):E(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 _(b,p,k,E){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(E===void 0){E=0;for(var L=0;L1e-6?(k[0]=T/M,k[1]=L/M,k[2]=x/M,k[3]=C/M):(k[0]=k[1]=k[2]=0,k[3]=1)}function _(k,E,T){this.radius=s([T]),this.center=s(E),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=_.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 E=this.computedRotation;v(E,E);var T=this.computedMatrix;u(T,E);var L=this.computedCenter,x=this.computedEye,C=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*T[2],x[1]=L[1]+M*T[6],x[2]=L[2]+M*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,A=0;A<3;++A)P+=T[g+4*A]*x[A];T[12+g]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}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,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var x=this.computedMatrix,C=x[1],M=x[5],g=x[9],P=h(C,M,g);C/=P,M/=P,g/=P;var A=x[0],z=x[4],O=x[8],U=A*C+z*M+O*g;A-=C*U,z-=M*U,O-=g*U;var G=h(A,z,O);A/=G,z/=G,O/=G;var Z=x[2],j=x[6],N=x[10],H=Z*C+j*M+N*g,re=Z*A+j*z+N*O;Z-=H*C+re*A,j-=H*M+re*z,N-=H*g+re*O;var oe=h(Z,j,N);Z/=oe,j/=oe,N/=oe;var _e=A*E+C*T,Ce=z*E+M*T,Le=O*E+g*T;this.center.move(k,_e,Ce,Le);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,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var x=this.computedMatrix,C=x[0],M=x[4],g=x[8],P=x[1],A=x[5],z=x[9],O=x[2],U=x[6],G=x[10],Z=E*C+T*P,j=E*M+T*A,N=E*g+T*z,H=-(U*N-G*j),re=-(G*Z-O*N),oe=-(O*j-U*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(oe,2))),Ce=d(H,re,oe,_e);Ce>1e-6?(H/=Ce,re/=Ce,oe/=Ce,_e/=Ce):(H=re=oe=0,_e=1);var Le=this.computedRotation,ge=Le[0],ie=Le[1],Se=Le[2],Ee=Le[3],Ae=ge*_e+Ee*H+ie*oe-Se*re,Be=ie*_e+Ee*re+Se*H-ge*oe,Pe=Se*_e+Ee*oe+ge*re-ie*H,me=Ee*_e-ge*H-ie*re-Se*oe;if(L){H=O,re=U,oe=G;var De=Math.sin(L)/h(H,re,oe);H*=De,re*=De,oe*=De,_e=Math.cos(E),Ae=Ae*_e+me*H+Be*oe-Pe*re,Be=Be*_e+me*re+Pe*H-Ae*oe,Pe=Pe*_e+me*oe+Ae*re-Be*H,me=me*_e-Ae*H-Be*re-Pe*oe}var ce=d(Ae,Be,Pe,me);ce>1e-6?(Ae/=ce,Be/=ce,Pe/=ce,me/=ce):(Ae=Be=Pe=0,me=1),this.rotation.set(k,Ae,Be,Pe,me)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,E,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 M=0,g=0;g<3;++g)M+=Math.pow(T[g]-E[g],2);this.radius.set(k,.5*Math.log(Math.max(M,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;f(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;c(L,E);var x=L[15];if(Math.abs(x)>1e-6){var C=L[12]/x,M=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,M-L[6]*P,g-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[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(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=k.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function p(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),v(T,T);var x=new _(T,E,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}},9994:function(i,a,o){"use strict";var s=o(9618),l=o(8277);i.exports=function(c,f){for(var h=[],d=c,v=1;Array.isArray(d);)h.push(d.length),v*=d.length,d=d[0];return h.length===0?s():(f||(f=s(new Float64Array(v),h)),l(f,c),f)}}},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);APe.exports=n})()});var TX=ye((egr,SPe)=>{"use strict";SPe.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 CPe=ye((tgr,kPe)=>{"use strict";var MPe=TX();kPe.exports=fIt;var EPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function fIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),MPe[e])r=MPe[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(EPe[h]!==void 0)return EPe[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 PPe=ye((rgr,LPe)=>{"use strict";var hIt=CPe();LPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=hIt(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=dIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function dIt(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 rk=ye((igr,IPe)=>{IPe.exports=vIt;function vIt(e,t,r){return tr?r:e:et?t:e}});var QD=ye((ngr,RPe)=>{RPe.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 ox=ye((agr,DPe)=>{"use strict";var pIt=PPe(),eF=rk(),gIt=QD();DPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=gIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=pIt(t),t[0]/=255,t[1]/=255,t[2]/=255),mIt(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]=eF(Math.floor(t[0]*255),0,255),i[1]=eF(Math.floor(t[1]*255),0,255),i[2]=eF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:eF(Math.floor(t[3]*255),0,255)),i)};function mIt(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((ogr,FPe)=>{"use strict";var yIt=ox();function _It(e){return e?yIt(e):[0,0,0,1]}FPe.exports=_It});var a1=ye((sgr,VPe)=>{"use strict";var NPe=Eo(),xIt=fd(),tF=ox(),rF=tc(),bIt=Ih().defaultLine,zPe=vv().isArrayOrTypedArray,AX=tF(bIt),UPe=1;function OPe(e,t){var r=e;return r[3]*=t,r}function qPe(e){if(NPe(e))return AX;var t=tF(e);return t.length?t:AX}function BPe(e){return NPe(e)?e:UPe}function wIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=zPe(n),a=zPe(t),o=rF.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=rF.makeColorScaleFuncFromTrace(e):l=qPe,i?u=function(v,_){return v[_]===void 0?AX:tF(l(v[_]))}:u=qPe,a?c=function(v,_){return v[_]===void 0?UPe:BPe(v[_])}:c=BPe,i||a)for(var d=0;d{"use strict";GPe.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 iF=ye((ugr,HPe)=>{"use strict";HPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var WPe=ye((cgr,jPe)=>{"use strict";var AIt=qa();function MX(e,t,r,n){if(!t||!t.visible)return null;for(var i=AIt.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 SIt(e){for(var t=0;t{"use strict";var EIt=zd().gl_line3d,XPe=zd().gl_scatter3d,kIt=zd().gl_error3d,CIt=zd().gl_mesh3d,LIt=zd().delaunay_triangulate,o1=Dr(),$Pe=n1(),nF=a1().formatColor,PIt=O3(),EX=SX(),IIt=iF(),RIt=ho(),DIt=ip().appendArrayPointValue,FIt=WPe();function QPe(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 CX=QPe.prototype;CX.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 zIt(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 YPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function qIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=zIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=CIt(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)};CX.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 VIt(e,t){var r=new QPe(e,t.uid);return r.update(t),r}eIe.exports=VIt});var DX=ye((hgr,aIe)=>{"use strict";var s1=pf(),GIt=ec(),RX=Tu(),LX=df().axisHoverFormat,{hovertemplateAttrs:HIt,texttemplateAttrs:jIt,templatefallbackAttrs:rIe}=Ll(),iIe=Gl(),WIt=SX(),XIt=iF(),$g=Ao().extendFlat,ZIt=mc().overrideAll,nIe=t_(),YIt=s1.line,J2=s1.marker,KIt=J2.line,JIt=$g({width:YIt.width,dash:{valType:"enumerated",values:nIe(WIt),dflt:"solid"}},RX("line"));function PX(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 IX=aIe.exports=ZIt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$g({},s1.text,{}),texttemplate:jIt(),texttemplatefallback:rIe({editType:"calc"}),hovertext:$g({},s1.hovertext,{}),hovertemplate:HIt(),hovertemplatefallback:rIe(),xhoverformat:LX("x"),yhoverformat:LX("y"),zhoverformat:LX("z"),mode:$g({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:PX("x"),y:PX("y"),z:PX("z")},connectgaps:s1.connectgaps,line:JIt,marker:$g({symbol:{valType:"enumerated",values:nIe(XIt),dflt:"circle",arrayOk:!0},size:$g({},J2.size,{dflt:8}),sizeref:J2.sizeref,sizemin:J2.sizemin,sizemode:J2.sizemode,opacity:$g({},J2.opacity,{arrayOk:!1}),colorbar:J2.colorbar,line:$g({width:$g({},KIt.width,{arrayOk:!1})},RX("marker.line"))},RX("marker")),textposition:$g({},s1.textposition,{dflt:"top center"}),textfont:GIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:iIe.opacity,hoverinfo:$g({},iIe.hoverinfo)},"calc","nested");IX.x.editType=IX.y.editType=IX.z.editType="calc+clearAxisTypes"});var lIe=ye((dgr,sIe)=>{"use strict";var oIe=qa(),$It=Dr(),FX=Ru(),QIt=$p(),e8t=D0(),t8t=F0(),r8t=DX();sIe.exports=function(t,r,n,i){function a(d,v){return $It.coerce(t,r,r8t,d,v)}var o=i8t(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"),FX.hasMarkers(r)&&QIt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),FX.hasLines(r)&&(a("connectgaps"),e8t(t,r,n,i,a)),FX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),t8t(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=oIe.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 i8t(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=oIe.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 cIe=ye((vgr,uIe)=>{"use strict";var n8t=Rm(),a8t=z0();uIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return n8t(n,r),a8t(t,r),n}});var hIe=ye((pgr,fIe)=>{fIe.exports=o8t;function o8t(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 s8t=hIe();dIe.exports=function(t){return s8t("webgl",t)}});var zX=ye((mgr,gIe)=>{"use strict";var pIe=ka(),l8t=function(){};gIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=l8t);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=pIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=pIe.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 _Ie=ye((ygr,yIe)=>{"use strict";var $2=n1(),u8t=Dr(),c8t=["xaxis","yaxis","zaxis"];function mIe(){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 f8t=mIe.prototype;f8t.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[c8t[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?u8t.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=$2(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]=$2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=$2(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]=$2(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]=$2(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]=$2(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]=$2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function h8t(e,t){var r=new mIe;return r.merge(e,t),r}yIe.exports=h8t});var wIe=ye((_gr,bIe)=>{"use strict";var d8t=n1(),v8t=["xaxis","yaxis","zaxis"];function xIe(){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 p8t=xIe.prototype;p8t.merge=function(e){for(var t=0;t<3;++t){var r=e[v8t[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=d8t(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function g8t(e){var t=new xIe;return t.merge(e),t}bIe.exports=g8t});var SIe=ye((xgr,AIe)=>{"use strict";AIe.exports=b8t;var TIe=ho(),m8t=Dr(),y8t=["xaxis","yaxis","zaxis"],_8t=[0,0,0];function x8t(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){_8t[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=x8t(i)}});var IIe=ye((bgr,PIe)=>{"use strict";var kIe=zd().gl_plot3d,w8t=kIe.createCamera,MIe=kIe.createScene,T8t=vIe(),A8t=UL(),sF=qa(),cp=Dr(),oF=cp.preserveDrawingBuffer(),lF=ho(),Qg=vf(),S8t=n1(),M8t=zX(),E8t=XU(),k8t=_Ie(),C8t=wIe(),L8t=SIe(),P8t=Mg().applyAutorangeOptions,ik,aF,CIe=!1;function LIe(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=k8t(t,t[this.id]),this.spikeOptions=C8t(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=sF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Sv=LIe.prototype;Sv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oF,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(!aF&&(ik=document.createElement("canvas"),aF=T8t({canvas:ik,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aF))throw new Error("error creating static canvas/context for image server");t.gl=aF,t.canvas=ik}return t};var EIe=!0;Sv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=MIe(t)}catch(n){if(e.staticMode||!EIe||oF)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{oF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=MIe(t)}catch(i){oF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return EIe=!1,r};Sv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=w8t(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 M8t(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(){CIe=!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)}},A8t?{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),L8t(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=lF.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:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Qg.appendArrayPointValue(C,_,b),r._module.eventData&&(C=_._module.eventData(C,f,_,{},b));var M={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Qg.loneHover({trace:_,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(_,b,"bgcolor")||c.color,borderColor:Qg.castHoverOption(_,b,"bordercolor"),fontFamily:Qg.castHoverOption(_,b,"font.family"),fontSize:Qg.castHoverOption(_,b,"font.size"),fontColor:Qg.castHoverOption(_,b,"font.color"),nameLength:Qg.castHoverOption(_,b,"namelength"),textAlign:Qg.castHoverOption(_,b,"align"),hovertemplate:cp.castOption(_,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||CIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}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 nk=["xaxis","yaxis","zaxis"];function I8t(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=nk[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;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var A=_[1][o]-_[0][o];_[0][o]-=A/32,_[1][o]+=A/32}if(k=[_[0][o],_[1][o]],k=P8t(k,l),_[0][o]=k[0],_[1][o]=k[1],l.isReversed()){var z=_[0][o];_[0][o]=_[1][o],_[1][o]=z}}else k=l.range,_[0][o]=l.r2l(k[0]),_[1][o]=l.r2l(k[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],l.range=[_[0][o],_[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,U=c.aspectmode;if(U==="cube")O=[1,1,1];else if(U==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[nk[o]],u=l.type;var j=p[u];Z[o]=Math.pow(j.acc,1/j.count)/d[o]}U==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[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 D8t(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 F8t(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()),F8t(e.camera)};Sv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,D8t(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),sF.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;sF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,cp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function z8t(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(ik),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),z8t(a,n,i),O8t(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(ik),u};Sv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[nk[t]];lF.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"},lF.setConvert(e._mockAxis,r)};PIe.exports=LIe});var DIe=ye((wgr,RIe)=>{"use strict";RIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var qX=ye((Tgr,FIe)=>{"use strict";var q8t=ka(),xs=Rd(),OX=Ao().extendFlat,B8t=mc().overrideAll;FIe.exports=B8t({visible:xs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:q8t.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 VX=ye((Agr,zIe)=>{"use strict";var BX=qX(),N8t=Cc().attributes,NX=Ao().extendFlat,U8t=Dr().counterRegex;function UX(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"}}zIe.exports={_arrayAttrRegexps:[U8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:NX(UX(0,0,1),{}),center:NX(UX(0,0,0),{}),eye:NX(UX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:N8t({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:BX,yaxis:BX,zaxis:BX,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 NIe=ye((Sgr,BIe)=>{"use strict";var V8t=fd().mix,OIe=Dr(),G8t=vl(),H8t=qX(),j8t=PU(),W8t=f4(),qIe=["xaxis","yaxis","zaxis"],X8t=100*136/187;BIe.exports=function(t,r,n){var i,a;function o(u,c){return OIe.coerce(i,a,H8t,u,c)}for(var s=0;s{"use strict";var Z8t=Dr(),Y8t=ka(),K8t=qa(),J8t=O_(),$8t=NIe(),UIe=VX(),Q8t=Id().getSubplotData,VIe="gl3d";GIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=Z8t.validate(t[o],UIe[o]);if(s)return t[o]}}J8t(t,r,n,{type:VIe,attributes:UIe,handleDefaults:eRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function eRt(e,t,r,n){for(var i=r("bgcolor"),a=Y8t.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 sx=ye(fp=>{"use strict";var tRt=mc().overrideAll,rRt=W1(),iRt=IIe(),nRt=Id().getSubplotData,aRt=Dr(),oRt=Wp(),XA="gl3d",GX="scene";fp.name=XA;fp.attr=GX;fp.idRoot=GX;fp.idRegex=fp.attrRegex=aRt.counterRegex("scene");fp.attributes=DIe();fp.layoutAttributes=VX();fp.baseLayoutAttrOverrides=tRt({hoverlabel:rRt.hoverlabel},"plot","nested");fp.supplyLayoutDefaults=HIe();fp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[XA],a=0;a{"use strict";jIe.exports={plot:tIe(),attributes:DX(),markerSymbols:iF(),supplyDefaults:lIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:cIe(),moduleType:"trace",name:"scatter3d",basePlotModule:sx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var ZIe=ye((Cgr,XIe)=>{"use strict";XIe.exports=WIe()});var ak=ye((Lgr,JIe)=>{"use strict";var YIe=ka(),sRt=Tu(),HX=df().axisHoverFormat,{hovertemplateAttrs:lRt,templatefallbackAttrs:uRt}=Ll(),KIe=Gl(),jX=Ao().extendFlat,cRt=mc().overrideAll;function WX(e){return{valType:"boolean",dflt:!1}}function XX(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:WX("x"),y:WX("y"),z:WX("z")},color:{valType:"color",dflt:YIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:YIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var ZX=JIe.exports=cRt(jX({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:lRt(),hovertemplatefallback:uRt(),xhoverformat:HX("x"),yhoverformat:HX("y"),zhoverformat:HX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},sRt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:XX("x"),y:XX("y"),z:XX("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:jX({},KIe.hoverinfo),showlegend:jX({},KIe.showlegend,{dflt:!1})}),"calc","nested");ZX.x.editType=ZX.y.editType=ZX.z.editType="calc+clearAxisTypes"});var KX=ye((Pgr,e8e)=>{"use strict";var fRt=qa(),$Ie=Dr(),hRt=td(),dRt=ak(),YX=.1;function vRt(e,t){for(var r=[],n=32,i=0;i{"use strict";var t8e=gv();r8e.exports=function(t,r){r.surfacecolor?t8e(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):t8e(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var u8e=ye((Rgr,l8e)=>{"use strict";var mRt=zd().gl_surface3d,ZA=zd().ndarray,yRt=zd().ndarray_linear_interpolate.d2,_Rt=c8(),xRt=f8(),ok=Dr().isArrayOrTypedArray,bRt=a1().parseColorScale,n8e=n1(),wRt=tc().extractOpts;function o8e(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=o8e.prototype;em.getXat=function(e,t,r,n){var i=ok(this.data.x)?ok(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=ok(this.data.y)?ok(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 ok(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 TRt(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 YA=[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 ARt(e,t){if(e0){r=YA[n];break}return r}function MRt(e,t){if(!(e<1||t<1)){for(var r=JX(e),n=JX(t),i=1,a=0;auF;)n--,n/=SRt(n),n++,n1?i:1};function kRt(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 CRt(e,t,r){return LRt(e,t,kRt,r),e}function LRt(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";c8e.exports={attributes:ak(),supplyDefaults:KX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:i8e(),plot:u8e(),moduleType:"trace",name:"surface",basePlotModule:sx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var d8e=ye((Fgr,h8e)=>{"use strict";h8e.exports=f8e()});var KA=ye((zgr,p8e)=>{"use strict";var RRt=Tu(),$X=df().axisHoverFormat,{hovertemplateAttrs:DRt,templatefallbackAttrs:FRt}=Ll(),lx=ak(),v8e=Gl(),ux=Ao().extendFlat;p8e.exports=ux({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:DRt({editType:"calc"}),hovertemplatefallback:FRt({editType:"calc"}),xhoverformat:$X("x"),yhoverformat:$X("y"),zhoverformat:$X("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"}},RRt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ux({},lx.contours.x.show,{}),color:lx.contours.x.color,width:lx.contours.x.width,editType:"calc"},lightposition:{x:ux({},lx.lightposition.x,{dflt:1e5}),y:ux({},lx.lightposition.y,{dflt:1e5}),z:ux({},lx.lightposition.z,{dflt:0}),editType:"calc"},lighting:ux({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"},lx.lighting),hoverinfo:ux({},v8e.hoverinfo,{editType:"calc"}),showlegend:ux({},v8e.showlegend,{dflt:!1})})});var fF=ye((Ogr,m8e)=>{"use strict";var zRt=Tu(),cF=df().axisHoverFormat,{hovertemplateAttrs:ORt,templatefallbackAttrs:qRt}=Ll(),sk=KA(),g8e=Gl(),QX=Ao().extendFlat,BRt=mc().overrideAll;function eZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function tZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var JA=m8e.exports=BRt(QX({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:eZ("x"),y:eZ("y"),z:eZ("z")},caps:{x:tZ("x"),y:tZ("y"),z:tZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ORt(),hovertemplatefallback:qRt(),xhoverformat:cF("x"),yhoverformat:cF("y"),zhoverformat:cF("z"),valuehoverformat:cF("value",1),showlegend:QX({},g8e.showlegend,{dflt:!1})},zRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:sk.opacity,lightposition:sk.lightposition,lighting:sk.lighting,flatshading:sk.flatshading,contour:sk.contour,hoverinfo:QX({},g8e.hoverinfo)}),"calc","nested");JA.flatshading.dflt=!0;JA.lighting.facenormalsepsilon.dflt=0;JA.x.editType=JA.y.editType=JA.z.editType=JA.value.editType="calc+clearAxisTypes"});var rZ=ye((qgr,_8e)=>{"use strict";var NRt=Dr(),URt=qa(),VRt=fF(),GRt=td();function HRt(e,t,r,n){function i(a,o){return NRt.coerce(e,t,VRt,a,o)}y8e(e,t,r,n,i)}function y8e(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=URt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,p=i(b+".show");p&&i(b+".fill");var k="slices."+_,E=i(k+".show");E&&(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(_){i(_)}),GRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}_8e.exports={supplyDefaults:HRt,supplyIsoDefaults:y8e}});var hF=ye((Bgr,b8e)=>{"use strict";var nZ=Dr(),jRt=gv();function WRt(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=Jm(t.u,t._len),t._v=Jm(t.v,t._len),t._w=Jm(t.w,t._len),t._x=Jm(t.x,t._len),t._y=Jm(t.y,t._len),t._z=Jm(t.z,t._len);var r=x8e(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=Jm(t.starts.x||[]),a=Jm(t.starts.y||[]),o=Jm(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&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(T>L?"-":"+")+"y"),v=v.replace("z",(x>C?"-":"+")+"z");var A=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var XRt=gv(),ZRt=hF().processGrid,dF=hF().filter;w8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dF(r.x,r._len),r._y=dF(r.y,r._len),r._z=dF(r.z,r._len),r._value=dF(r.value,r._len);var n=ZRt(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";T8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var YRt=zd().gl_mesh3d,KRt=a1().parseColorScale,JRt=Dr().isArrayOrTypedArray,$Rt=n1(),QRt=tc().extractOpts,A8e=$A(),lk=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 oe(Qt,Gt){return Qt===null?Gt:Qt}function _e(Qt,Gt,_t){A();var It=[Gt],mt=[_t];if(j>=1)It=[Gt],mt=[_t];else if(j>0){var er=H(Gt,_t);It=er.xyzv,mt=er.abc}for(var lr=0;lr-1?_t[Lr]:P(ti,Br,Vr);Ge>-1?wr[Lr]=Ge:wr[Lr]=O(ti,Br,Vr,oe(Qt,dt))}U(wr[0],wr[1],wr[2])}}function Ce(Qt,Gt,_t){var It=function(mt,er,lr){_e(Qt,[Gt[mt],Gt[er],Gt[lr]],[_t[mt],_t[er],_t[lr]])};It(0,1,2),It(2,3,0)}function Le(Qt,Gt,_t){var It=function(mt,er,lr){_e(Qt,[Gt[mt],Gt[er],Gt[lr]],[_t[mt],_t[er],_t[lr]])};It(0,1,2),It(3,0,1),It(2,3,0),It(1,2,3)}function ge(Qt,Gt,_t,It){var mt=Qt[3];mt<_t&&(mt=_t),mt>It&&(mt=It);for(var er=(Qt[3]-mt)/(Qt[3]-Gt[3]+1e-9),lr=[],wr=0;wr<4;wr++)lr[wr]=(1-er)*Qt[wr]+er*Gt[wr];return lr}function ie(Qt,Gt,_t){return Qt>=Gt&&Qt<=_t}function Se(Qt){var Gt=.001*(L-T);return Qt>=T-Gt&&Qt<=L+Gt}function Ee(Qt){for(var Gt=[],_t=0;_t<4;_t++){var It=Qt[_t];Gt.push([e._x[It],e._y[It],e._z[It],e._value[It]])}return Gt}var Ae=3;function Be(Qt,Gt,_t,It,mt,er){er||(er=1),_t=[-1,-1,-1];var lr=!1,wr=[ie(Gt[0][3],It,mt),ie(Gt[1][3],It,mt),ie(Gt[2][3],It,mt)];if(!wr[0]&&!wr[1]&&!wr[2])return!1;var Lr=function(Br,Vr,dt){return Se(Vr[0][3])&&Se(Vr[1][3])&&Se(Vr[2][3])?(_e(Br,Vr,dt),!0):erwr?[k,er]:[er,E];Nt(Gt,Lr[0],Lr[1])}}var ti=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(Br){for(var Vr=[],dt=0;dt0&&(Ie.push(vt.id),Br==="x"?xe.push([vt.distRatio,0,0]):Br==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Br==="x"?xt=fr(1,d-1):Br==="y"?xt=fr(1,v-1):xt=fr(1,_-1);Ie.length>0&&(Br==="x"?Vr[Ge]=$t(Qt,Ie,Je,We,xe,Vr[Ge]):Br==="y"?Vr[Ge]=sr(Qt,Ie,Je,We,xe,Vr[Ge]):Vr[Ge]=Tr(Qt,Ie,Je,We,xe,Vr[Ge]),Ge++),xt.length>0&&(Br==="x"?Vr[Ge]=pt(Qt,xt,Je,We,Vr[Ge]):Br==="y"?Vr[Ge]=Vt(Qt,xt,Je,We,Vr[Ge]):Vr[Ge]=ot(Qt,xt,Je,We,Vr[Ge]),Ge++)}var ir=e.caps[Br];ir.show&&ir.fill&&(N(ir.fill),Br==="x"?Vr[Ge]=pt(Qt,[0,d-1],Je,We,Vr[Ge]):Br==="y"?Vr[Ge]=Vt(Qt,[0,v-1],Je,We,Vr[Ge]):Vr[Ge]=ot(Qt,[0,_-1],Je,We,Vr[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=C,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return St(),e}function tDt(e,t){var r=e.glplot.gl,n=YRt({gl:r}),i=new S8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}E8e.exports={findNearestOnAxis:lk,generateIsoMeshes:M8e,createIsosurfaceTrace:tDt}});var C8e=ye((Ggr,k8e)=>{"use strict";k8e.exports={attributes:fF(),supplyDefaults:rZ().supplyDefaults,calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:vF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var P8e=ye((Hgr,L8e)=>{"use strict";L8e.exports=C8e()});var lZ=ye((jgr,R8e)=>{"use strict";var rDt=Tu(),xh=fF(),iDt=ak(),I8e=Gl(),sZ=Ao().extendFlat,nDt=mc().overrideAll,pF=R8e.exports=nDt(sZ({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},rDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:iDt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:sZ({},I8e.hoverinfo),showlegend:sZ({},I8e.showlegend,{dflt:!1})}),"calc","nested");pF.x.editType=pF.y.editType=pF.z.editType=pF.value.editType="calc+clearAxisTypes"});var F8e=ye((Wgr,D8e)=>{"use strict";var aDt=Dr(),oDt=lZ(),sDt=rZ().supplyIsoDefaults,lDt=KX().opacityscaleDefaults;D8e.exports=function(t,r,n,i){function a(o,s){return aDt.coerce(t,r,oDt,o,s)}sDt(t,r,n,i,a),lDt(t,r,i,a)}});var B8e=ye((Xgr,q8e)=>{"use strict";var uDt=zd().gl_mesh3d,cDt=a1().parseColorScale,fDt=Dr().isArrayOrTypedArray,hDt=n1(),dDt=tc().extractOpts,z8e=$A(),uZ=vF().findNearestOnAxis,vDt=vF().generateIsoMeshes;function O8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var cZ=O8e.prototype;cZ.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=uZ(r,this.data._Xs).id,l=uZ(n,this.data._Ys).id,u=uZ(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 fDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};cZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=vDt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=z8e(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=z8e(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:hDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=dDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=cDt(e),this.mesh.update(o)};cZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function pDt(e,t){var r=e.glplot.gl,n=uDt({gl:r}),i=new O8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}q8e.exports=pDt});var U8e=ye((Zgr,N8e)=>{"use strict";N8e.exports={attributes:lZ(),supplyDefaults:F8e(),calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:B8e(),moduleType:"trace",name:"volume",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var G8e=ye((Ygr,V8e)=>{"use strict";V8e.exports=U8e()});var W8e=ye((Kgr,j8e)=>{"use strict";var gDt=qa(),H8e=Dr(),mDt=td(),yDt=KA();j8e.exports=function(t,r,n,i){function a(c,f){return H8e.coerce(t,r,yDt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&H8e.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=gDt.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"),mDt(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 Z8e=ye((Jgr,X8e)=>{"use strict";var _Dt=gv();X8e.exports=function(t,r){r.intensity&&_Dt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var Q8e=ye(($gr,$8e)=>{"use strict";var xDt=zd().gl_mesh3d,bDt=zd().delaunay_triangulate,wDt=zd().alpha_shape,TDt=zd().convex_hull,ADt=a1().parseColorScale,SDt=Dr().isArrayOrTypedArray,vZ=n1(),MDt=tc().extractOpts,Y8e=$A();function J8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var pZ=J8e.prototype;pZ.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 SDt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function K8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}pZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=Y8e(fZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),fZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),fZ(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||!dZ(e.i,n)||!dZ(e.j,n)||!dZ(e.k,n))return;a=Y8e(hZ(e.i),hZ(e.j),hZ(e.k))}else e.alphahull===0?a=TDt(i):e.alphahull>0?a=wDt(e.alphahull,i):a=EDt(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:vZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=MDt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=ADt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=K8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=K8e(e.facecolor)):(this.color=e.color,o.meshColor=vZ(e.color));this.mesh.update(o)};pZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function kDt(e,t){var r=e.glplot.gl,n=xDt({gl:r}),i=new J8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}$8e.exports=kDt});var tRe=ye((Qgr,eRe)=>{"use strict";eRe.exports={attributes:KA(),supplyDefaults:W8e(),calc:Z8e(),colorbar:{min:"cmin",max:"cmax"},plot:Q8e(),moduleType:"trace",name:"mesh3d",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var iRe=ye((emr,rRe)=>{"use strict";rRe.exports=tRe()});var mZ=ye((tmr,aRe)=>{"use strict";var CDt=Tu(),QA=df().axisHoverFormat,{hovertemplateAttrs:LDt,templatefallbackAttrs:PDt}=Ll(),IDt=KA(),nRe=Gl(),gZ=Ao().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:LDt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:PDt({editType:"calc"}),uhoverformat:QA("u",1),vhoverformat:QA("v",1),whoverformat:QA("w",1),xhoverformat:QA("x"),yhoverformat:QA("y"),zhoverformat:QA("z"),showlegend:gZ({},nRe.showlegend,{dflt:!1})};gZ(gF,CDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var RDt=["opacity","lightposition","lighting"];RDt.forEach(function(e){gF[e]=IDt[e]});gF.hoverinfo=gZ({},nRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});aRe.exports=gF});var sRe=ye((rmr,oRe)=>{"use strict";var DDt=Dr(),FDt=td(),zDt=mZ();oRe.exports=function(t,r,n,i){function a(d,v){return DDt.coerce(t,r,zDt,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"),FDt(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 uRe=ye((imr,lRe)=>{"use strict";var ODt=gv();lRe.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 qDt=zd().gl_cone3d,BDt=zd().gl_cone3d.createConeMesh,NDt=Dr().simpleMap,UDt=a1().parseColorScale,VDt=tc().extractOpts,GDt=Dr().isArrayOrTypedArray,cRe=$A();function fRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var yZ=fRe.prototype;yZ.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 GDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var HDt={xaxis:0,yaxis:1,zaxis:2},jDt={tip:1,tail:0,cm:.25,center:.5},WDt={tip:1,tail:1,cm:.75,center:.5};function hRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[HDt[f]];return NDt(c,function(v){return h.d2l(v)*d})}i.vectors=cRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=cRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=VDt(t);i.colormap=UDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=jDt[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=qDt(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=WDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}yZ.update=function(e){this.data=e;var t=hRe(this.scene,e);this.mesh.update(t)};yZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function XDt(e,t){var r=e.glplot.gl,n=hRe(e,t),i=BDt(r,n),a=new fRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}dRe.exports=XDt});var gRe=ye((amr,pRe)=>{"use strict";pRe.exports={moduleType:"trace",name:"cone",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:mZ(),supplyDefaults:sRe(),colorbar:{min:"cmin",max:"cmax"},calc:uRe(),plot:vRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var yRe=ye((omr,mRe)=>{"use strict";mRe.exports=gRe()});var xZ=ye((smr,xRe)=>{"use strict";var ZDt=Tu(),e5=df().axisHoverFormat,{hovertemplateAttrs:YDt,templatefallbackAttrs:KDt}=Ll(),JDt=KA(),_Re=Gl(),_Z=Ao().extendFlat,mF={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:YDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:KDt({editType:"calc"}),uhoverformat:e5("u",1),vhoverformat:e5("v",1),whoverformat:e5("w",1),xhoverformat:e5("x"),yhoverformat:e5("y"),zhoverformat:e5("z"),showlegend:_Z({},_Re.showlegend,{dflt:!1})};_Z(mF,ZDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var $Dt=["opacity","lightposition","lighting"];$Dt.forEach(function(e){mF[e]=JDt[e]});mF.hoverinfo=_Z({},_Re.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});xRe.exports=mF});var wRe=ye((lmr,bRe)=>{"use strict";var QDt=Dr(),eFt=td(),tFt=xZ();bRe.exports=function(t,r,n,i){function a(h,d){return QDt.coerce(t,r,tFt,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"),eFt(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 LRe=ye((umr,CRe)=>{"use strict";var SRe=zd().gl_streamtube3d,rFt=SRe.createTubeMesh,iFt=Dr(),nFt=a1().parseColorScale,aFt=tc().extractOpts,TRe=$A(),MRe={xaxis:0,yaxis:1,zaxis:2};function ERe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var wZ=ERe.prototype;wZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[MRe[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 ARe(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 bZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function kRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var U=r[O],G=n[MRe[O]];return iFt.simpleMap(z,function(Z){return U.d2l(Z)*G})}if(a.vectors=TRe(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=TRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=ARe(s),d=ARe(u),v=new Array(h.length*d.length),_=0,b=0;b{"use strict";PRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:xZ(),supplyDefaults:wRe(),colorbar:{min:"cmin",max:"cmax"},calc:hF().calc,plot:LRe(),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 DRe=ye((fmr,RRe)=>{"use strict";RRe.exports=IRe()});var ew=ye((dmr,BRe)=>{"use strict";var{hovertemplateAttrs:sFt,texttemplateAttrs:lFt,templatefallbackAttrs:FRe}=Ll(),uFt=Pg(),$m=pf(),cFt=Gl(),zRe=Tu(),fFt=Pd().dash,Q2=Ao().extendFlat,hFt=mc().overrideAll,rg=$m.marker,ORe=$m.line,qRe=rg.line,hmr=["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(" ");BRe.exports=hFt({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:Q2({},$m.mode,{dflt:"markers"}),text:Q2({},$m.text,{}),texttemplate:lFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:FRe({editType:"plot"}),hovertext:Q2({},$m.hovertext,{}),textfont:$m.textfont,textposition:$m.textposition,line:{color:ORe.color,width:ORe.width,dash:fFt},connectgaps:$m.connectgaps,marker:Q2({symbol:rg.symbol,opacity:rg.opacity,angle:rg.angle,angleref:Q2({},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:Q2({width:qRe.width,dash:qRe.dash},zRe("marker.line")),gradient:rg.gradient},zRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:uFt(),selected:$m.selected,unselected:$m.unselected,hoverinfo:Q2({},cFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:sFt(),hovertemplatefallback:FRe()},"calc","nested")});var URe=ye((vmr,NRe)=>{"use strict";var yF=Dr(),TZ=Ru(),dFt=$p(),vFt=D0(),pFt=F0(),gFt=Fg(),mFt=ew(),yFt=["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(" ");NRe.exports=function(t,r,n,i){function a(d,v){return yF.coerce(t,r,mFt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||yF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&yF.warn(yFt),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"),TZ.hasMarkers(r)&&dFt(t,r,n,i,a,{gradient:!0}),TZ.hasLines(r)&&(vFt(t,r,n,i,a),a("connectgaps")),TZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),pFt(t,r,i,a)),a("fill"),r.fill!=="none"&&gFt(t,r,n,a),yF.coerceSelectionMarkerOpacity(r,a)}});var HRe=ye((pmr,GRe)=>{"use strict";var VRe=ho();GRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=VRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=VRe.tickText(o,o.c2l(s[1]),!0).text,i}});var _F=ye((gmr,ZRe)=>{"use strict";var AZ=Eo(),jRe=fs().BADNUM,_Ft=z0(),xFt=Rm(),bFt=O0(),wFt=Dr().isArrayOrTypedArray,WRe=Dr()._;function XRe(e){return e&&typeof e=="string"}ZRe.exports=function(t,r){var n=wFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return XRe(h)||AZ(h)}:o=XRe;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 SZ=ye((xF,YRe)=>{(function(e,t){typeof xF=="object"&&typeof YRe!="undefined"?t(xF):(e=e||self,t(e.topojson=e.topojson||{}))})(xF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,x=E.scale[0],C=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,A){A||(T=L=0);var z=2,O=P.length,U=new Array(O);for(U[0]=(T+=P[0])*x+M,U[1]=(L+=P[1])*C+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function A(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(A);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,U=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)A(E.objects[L]);return[x,C,M,g]}function i(E,T){for(var L,x=E.length,C=x-T;C<--x;)L=E[C],E[C++]=E[x],E[x]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:M}:x==null?{type:"Feature",id:L,properties:C,geometry:M}:{type:"Feature",id:L,bbox:x,properties:C,geometry:M}}function s(E,T){var L=r(E.transform),x=E.arcs;function C(O,U){U.length&&U.pop();for(var G=x[O<0?~O:O],Z=0,j=G.length;Z1)x=f(E,T,L);else for(C=0,x=new Array(M=E.arcs.length);C1)for(var U=1,G=P(z[0]),Z,j;UG&&(j=z[0],z[0]=z[U],z[U]=j,G=Z);return z}).filter(function(A){return A.length>0})}}function _(E,T){for(var L=0,x=E.length;L>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],x=A[1],C=A[2],M=A[3],g;T={scale:[C-L?(C-L)/(g-1):1,M-x?(M-x)/(g-1):1],translate:[L,x]}}else A=E.bbox;var P=p(T),A,z,O=E.objects,U={};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,oe=N.length,_e,Ce=new Array(oe);for(Ce[0]=P(N[0],0);++H{"use strict";var MZ=KRe.exports={},TFt=uk().locationmodeToLayer,AFt=SZ().feature;MZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};MZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};MZ.getTopojsonFeatures=function(e,t){var r=TFt[e.locationmode],n=t.objects[r];return AFt(t,n).features}});var cx=ye(ck=>{"use strict";var SFt=fs().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{JRe.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 AF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Op=63710088e-1,kZ={centimeters:Op*100,centimetres:Op*100,degrees:360/(2*Math.PI),feet:Op*3.28084,inches:Op*39.37,kilometers:Op/1e3,kilometres:Op/1e3,meters:Op,metres:Op,miles:Op/1609.344,millimeters:Op*1e3,millimetres:Op*1e3,nauticalmiles:Op/1852,radians:1,yards:Op*1.0936},EZ={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 fx(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 MFt(e,t,r={}){switch(e){case"Point":return CZ(t).geometry;case"LineString":return PZ(t).geometry;case"Polygon":return LZ(t).geometry;case"MultiPoint":return eDe(t).geometry;case"MultiLineString":return QRe(t).geometry;case"MultiPolygon":return tDe(t).geometry;default:throw new Error(e+" is invalid")}}function CZ(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(!wF(e[0])||!wF(e[1]))throw new Error("coordinates must contain numbers");return fx({type:"Point",coordinates:e},t,r)}function EFt(e,t,r={}){return TF(e.map(n=>CZ(n,t)),r)}function LZ(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;aLZ(n,t)),r)}function PZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return fx({type:"LineString",coordinates:e},t,r)}function CFt(e,t,r={}){return TF(e.map(n=>PZ(n,t)),r)}function TF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function QRe(e,t,r={}){return fx({type:"MultiLineString",coordinates:e},t,r)}function eDe(e,t,r={}){return fx({type:"MultiPoint",coordinates:e},t,r)}function tDe(e,t,r={}){return fx({type:"MultiPolygon",coordinates:e},t,r)}function LFt(e,t,r={}){return fx({type:"GeometryCollection",geometries:e},t,r)}function PFt(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 rDe(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function IZ(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function IFt(e,t){return iDe(IZ(e,t))}function RFt(e){let t=e%360;return t<0&&(t+=360),t}function DFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function iDe(e){return e%(2*Math.PI)*180/Math.PI}function FFt(e){return e%360*Math.PI/180}function zFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return rDe(IZ(e,t),r)}function OFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=EZ[t];if(!n)throw new Error("invalid original units");let i=EZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function wF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function qFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function BFt(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(!wF(t))throw new Error("bbox must only contain numbers")})}function NFt(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=EZ;ic.azimuthToBearing=DFt;ic.bearingToAzimuth=RFt;ic.convertArea=OFt;ic.convertLength=zFt;ic.degreesToRadians=FFt;ic.earthRadius=Op;ic.factors=kZ;ic.feature=fx;ic.featureCollection=TF;ic.geometry=MFt;ic.geometryCollection=LFt;ic.isNumber=wF;ic.isObject=qFt;ic.lengthToDegrees=IFt;ic.lengthToRadians=IZ;ic.lineString=PZ;ic.lineStrings=CFt;ic.multiLineString=QRe;ic.multiPoint=eDe;ic.multiPolygon=tDe;ic.point=CZ;ic.points=EFt;ic.polygon=LZ;ic.polygons=kFt;ic.radiansToDegrees=iDe;ic.radiansToLength=rDe;ic.round=PFt;ic.validateBBox=BFt;ic.validateId=NFt});var MF=ye(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Wv=AF();function fk(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",_=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||_>c){s=f,l=n,u=v,c=_,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function XFt(e,t,r){var n=r,i=!1;return oDe(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 sDe(e,t){if(!e)throw new Error("geojson is required");SF(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(EF,"__esModule",{value:!0});var lDe=AF(),JFt=MF();function fDe(e){return JFt.geomReduce.call(void 0,e,(t,r)=>t+$Ft(r),0)}function $Ft(e){let t=0,r;switch(e.type){case"Polygon":return uDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(cDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*DZ,l=a[1]*DZ,u=o[0]*DZ;r+=(u-s)*Math.sin(l),n++}return r*QFt}var ezt=fDe;EF.area=fDe;EF.default=ezt});var vDe=ye(kF=>{"use strict";Object.defineProperty(kF,"__esModule",{value:!0});var tzt=AF(),rzt=MF();function dDe(e,t={}){let r=0,n=0,i=0;return rzt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),tzt.point.call(void 0,[r/i,n/i],t.properties)}var izt=dDe;kF.centroid=dDe;kF.default=izt});var gDe=ye(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var nzt=MF();function pDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return nzt.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 ozt=Oa(),_De=$Re(),{area:szt}=hDe(),{centroid:lzt}=vDe(),{bbox:uzt}=gDe(),mDe=ZS(),t5=K1(),czt=Ty(),fzt=FS(),LF=FM(),yDe=Object.keys(_De),hzt={"ISO-3":mDe,"USA-states":mDe,"country names":dzt};function dzt(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=LF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(LF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=mzt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else t5.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 lzt(r).geometry.coordinates}function yzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){ozt.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 xzt=Oa(),bzt=So(),wDe=ka(),TDe=sp(),wzt=TDe.stylePoints,Tzt=TDe.styleText;ADe.exports=function(t,r){r&&Azt(t,r)};function Azt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),wzt(n,r,e),Tzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=xzt.select(this),o=i.trace,s=o.line||{};a.call(wDe.stroke,s.color).call(bzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(wDe.fill,o.fillcolor)})}});var BZ=ye((kmr,EDe)=>{"use strict";var SDe=Oa(),IF=Dr(),Szt=bF().getTopojsonFeatures,zZ=cx(),PF=hx(),MDe=Mg().findExtremes,qZ=fs().BADNUM,Mzt=q0().calcMarkerSize,OZ=Ru(),Ezt=FZ();function kzt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=IF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===qZ&&SDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=SDe.select(this),l=o[0].trace;if(OZ.hasLines(l)||l.fill!=="none"){var u=zZ.calcTraceToLineCoords(o),c=l.fill!=="none"?zZ.makePolygon(u):zZ.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(IF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),OZ.hasText(l)&&s.selectAll("g").data(IF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Ezt(e,o)})}function Czt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(IF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?PF.extractTraceFeature(e):Szt(r,i.topojson);for(o=0;o{"use strict";var Lzt=vf(),Pzt=fs().BADNUM,Izt=gT(),Rzt=Dr().fillText,Dzt=ew();kDe.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 E=k.lonlat;if(E[0]===Pzt||u(E))return 1/0;var T=c(E),L=c([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),M=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-M,1-3/M)}if(Lzt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=v[0]-_,t.x1=v[0]+_,t.y0=v[1]-_,t.y1=v[1]+_,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=Izt(a,h),t.extraText=Fzt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Fzt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?Dzt.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&&Rzt(t,e,c),c.join("
")}});var PDe=ye((Lmr,LDe)=>{"use strict";LDe.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 DDe=ye((Pmr,RDe)=>{"use strict";var IDe=Ru(),zzt=fs().BADNUM;RDe.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=!IDe.hasMarkers(s)&&!IDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof RF=="object"&&typeof FDe!="undefined"?RF:e.d3=e.d3||{})})(RF,function(e){"use strict";function t(Ee,Ae){return EeAe?1:Ee>=Ae?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Ae,Be,Pe,me){for(Pe==null&&(Pe=0),me==null&&(me=Ae.length);Pe>>1;Ee(Ae[De],Be)<0?Pe=De+1:me=De}return Pe},right:function(Ae,Be,Pe,me){for(Pe==null&&(Pe=0),me==null&&(me=Ae.length);Pe>>1;Ee(Ae[De],Be)>0?me=De:Pe=De+1}return Pe}}}function n(Ee){return function(Ae,Be){return t(Ee(Ae),Be)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Ae){Ae==null&&(Ae=l);for(var Be=0,Pe=Ee.length-1,me=Ee[0],De=new Array(Pe<0?0:Pe);BeEe?1:Ae>=Ee?0:NaN}function f(Ee){return Ee===null?NaN:+Ee}function h(Ee,Ae){var Be=Ee.length,Pe=0,me=-1,De=0,ce,je,lt=0;if(Ae==null)for(;++me1)return lt/(Pe-1)}function d(Ee,Ae){var Be=h(Ee,Ae);return Be&&Math.sqrt(Be)}function v(Ee,Ae){var Be=Ee.length,Pe=-1,me,De,ce;if(Ae==null){for(;++Pe=me)for(De=ce=me;++Peme&&(De=me),ce=me)for(De=ce=me;++Peme&&(De=me),ce0)return[Ee];if((Pe=Ae0)for(Ee=Math.ceil(Ee/je),Ae=Math.floor(Ae/je),ce=new Array(De=Math.ceil(Ae-Ee+1));++me=0?(De>=L?10:De>=x?5:De>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(De>=L?10:De>=x?5:De>=C?2:1)}function P(Ee,Ae,Be){var Pe=Math.abs(Ae-Ee)/Math.max(0,Be),me=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),De=Pe/me;return De>=L?me*=10:De>=x?me*=5:De>=C&&(me*=2),Aeot;)ut.pop(),--Wt;var Nt=new Array(Wt+1),$t;for(De=0;De<=Wt;++De)$t=Nt[De]=[],$t.x0=De>0?ut[De-1]:Vt,$t.x1=De=1)return+Be(Ee[Pe-1],Pe-1,Ee);var Pe,me=(Pe-1)*Ae,De=Math.floor(me),ce=+Be(Ee[De],De,Ee),je=+Be(Ee[De+1],De+1,Ee);return ce+(je-ce)*(me-De)}}function U(Ee,Ae,Be){return Ee=p.call(Ee,f).sort(t),Math.ceil((Be-Ae)/(2*(O(Ee,.75)-O(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Ae,Be){return Math.ceil((Be-Ae)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function Z(Ee,Ae){var Be=Ee.length,Pe=-1,me,De;if(Ae==null){for(;++Pe=me)for(De=me;++PeDe&&(De=me)}else for(;++Pe=me)for(De=me;++PeDe&&(De=me);return De}function j(Ee,Ae){var Be=Ee.length,Pe=Be,me=-1,De,ce=0;if(Ae==null)for(;++me=0;)for(ce=Ee[Ae],Be=ce.length;--Be>=0;)De[--me]=ce[Be];return De}function re(Ee,Ae){var Be=Ee.length,Pe=-1,me,De;if(Ae==null){for(;++Pe=me)for(De=me;++Peme&&(De=me)}else for(;++Pe=me)for(De=me;++Peme&&(De=me);return De}function oe(Ee,Ae){for(var Be=Ae.length,Pe=new Array(Be);Be--;)Pe[Be]=Ee[Ae[Be]];return Pe}function _e(Ee,Ae){if(Be=Ee.length){var Be,Pe=0,me=0,De,ce=Ee[me];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof DF=="object"&&typeof zDe!="undefined"?t(DF,hk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(DF,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(At){a(i,At,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(At,Xt,Cr){var Ar=At.s=Xt+Cr,Kr=Ar-Xt,ki=Ar-Kr;At.t=Xt-ki+(Cr-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,_=Math.atan,b=Math.atan2,p=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function A(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=x(At/2))*At}function O(){}function U(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){U(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var Cr=At.features,Ar=-1,Kr=Cr.length;++Ar=0?1:-1,Kr=Ar*Cr,ki=p(Xt),Xi=x(Xt),dn=ie*Xi,wn=ge*ki+dn*p(Kr),Nn=dn*Ar*x(Kr);re.add(b(Nn,wn)),Le=At,ge=ki,ie=Xi}function me(At){return oe.reset(),H(At,Se),oe*2}function De(At){return[b(At[1],At[0]),A(At[2])]}function ce(At){var Xt=At[0],Cr=At[1],Ar=p(Cr);return[Ar*p(Xt),Ar*x(Xt),x(Cr)]}function je(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function lt(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Vt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function ot(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var ut,Wt,Nt,$t,sr,Tr,fr,$e,St=r(),Qt,Gt,_t={point:It,lineStart:er,lineEnd:lr,polygonStart:function(){_t.point=wr,_t.lineStart=Lr,_t.lineEnd=ti,St.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),_t.point=It,_t.lineStart=er,_t.lineEnd=lr,re<0?(ut=-(Nt=180),Wt=-($t=90)):St>o?$t=90:St<-o&&(Wt=-90),Gt[0]=ut,Gt[1]=Nt},sphere:function(){ut=-(Nt=180),Wt=-($t=90)}};function It(At,Xt){Qt.push(Gt=[ut=At,Nt=At]),Xt$t&&($t=Xt)}function mt(At,Xt){var Cr=ce([At*d,Xt*d]);if($e){var Ar=lt($e,Cr),Kr=[Ar[1],-Ar[0],0],ki=lt(Kr,Ar);ot(ki),ki=De(ki);var Xi=At-sr,dn=Xi>0?1:-1,wn=ki[0]*h*dn,Nn,Yi=v(Xi)>180;Yi^(dn*sr$t&&($t=Nn)):(wn=(wn+360)%360-180,Yi^(dn*sr$t&&($t=Xt))),Yi?AtBr(ut,Nt)&&(Nt=At):Br(At,Nt)>Br(ut,Nt)&&(ut=At):Nt>=ut?(AtNt&&(Nt=At)):At>sr?Br(ut,At)>Br(ut,Nt)&&(Nt=At):Br(At,Nt)>Br(ut,Nt)&&(ut=At)}else Qt.push(Gt=[ut=At,Nt=At]);Xt$t&&($t=Xt),$e=Cr,sr=At}function er(){_t.point=mt}function lr(){Gt[0]=ut,Gt[1]=Nt,_t.point=It,$e=null}function wr(At,Xt){if($e){var Cr=At-sr;St.add(v(Cr)>180?Cr+(Cr>0?360:-360):Cr)}else Tr=At,fr=Xt;Se.point(At,Xt),mt(At,Xt)}function Lr(){Se.lineStart()}function ti(){wr(Tr,fr),Se.lineEnd(),v(St)>o&&(ut=-(Nt=180)),Gt[0]=ut,Gt[1]=Nt,$e=null}function Br(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Vr(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtBr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Br(Kr[0],Ar[1])>Br(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):ki.push(Ar=Kr);for(Xi=-1/0,Cr=ki.length-1,Xt=0,Ar=ki[Cr];Xt<=Cr;Ar=Kr,++Xt)Kr=ki[Xt],(dn=Br(Ar[1],Kr[0]))>Xi&&(Xi=dn,ut=Kr[0],Nt=Ar[1])}return Qt=Gt=null,ut===1/0||Wt===1/0?[[NaN,NaN],[NaN,NaN]]:[[ut,Wt],[Nt,$t]]}var Je,We,tt,xt,Ie,xe,ke,vt,ir,ar,vr,ii,pi,$r,di,ji,In={sphere:O,point:wi,lineStart:qn,lineEnd:la,polygonStart:function(){In.lineStart=Ut,In.lineEnd=wt},polygonEnd:function(){In.lineStart=qn,In.lineEnd=la}};function wi(At,Xt){At*=d,Xt*=d;var Cr=p(Xt);On(Cr*p(At),Cr*x(At),x(Xt))}function On(At,Xt,Cr){++Je,tt+=(At-tt)/Je,xt+=(Xt-xt)/Je,Ie+=(Cr-Ie)/Je}function qn(){In.point=Fn}function Fn(At,Xt){At*=d,Xt*=d;var Cr=p(Xt);$r=Cr*p(At),di=Cr*x(At),ji=x(Xt),In.point=ra,On($r,di,ji)}function ra(At,Xt){At*=d,Xt*=d;var Cr=p(Xt),Ar=Cr*p(At),Kr=Cr*x(At),ki=x(Xt),Xi=b(M((Xi=di*ki-ji*Kr)*Xi+(Xi=ji*Ar-$r*ki)*Xi+(Xi=$r*Kr-di*Ar)*Xi),$r*Ar+di*Kr+ji*ki);We+=Xi,xe+=Xi*($r+($r=Ar)),ke+=Xi*(di+(di=Kr)),vt+=Xi*(ji+(ji=ki)),On($r,di,ji)}function la(){In.point=wi}function Ut(){In.point=rr}function wt(){nr(ii,pi),In.point=wi}function rr(At,Xt){ii=At,pi=Xt,At*=d,Xt*=d,In.point=nr;var Cr=p(Xt);$r=Cr*p(At),di=Cr*x(At),ji=x(Xt),On($r,di,ji)}function nr(At,Xt){At*=d,Xt*=d;var Cr=p(Xt),Ar=Cr*p(At),Kr=Cr*x(At),ki=x(Xt),Xi=di*ki-ji*Kr,dn=ji*Ar-$r*ki,wn=$r*Kr-di*Ar,Nn=M(Xi*Xi+dn*dn+wn*wn),Yi=A(Nn),Qi=Nn&&-Yi/Nn;ir+=Qi*Xi,ar+=Qi*dn,vr+=Qi*wn,We+=Yi,xe+=Yi*($r+($r=Ar)),ke+=Yi*(di+(di=Kr)),vt+=Yi*(ji+(ji=ki)),On($r,di,ji)}function Er(At){Je=We=tt=xt=Ie=xe=ke=vt=ir=ar=vr=0,H(At,In);var Xt=ir,Cr=ar,Ar=vr,Kr=Xt*Xt+Cr*Cr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}Qr.invert=Qr;function Oi(At,Xt,Cr){return(At%=f)?Xt||Cr?ri(tn(At),fn(Xt,Cr)):tn(At):Xt||Cr?fn(Xt,Cr):Qr}function $i(At){return function(Xt,Cr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,Cr]}}function tn(At){var Xt=$i(At);return Xt.invert=$i(-At),Xt}function fn(At,Xt){var Cr=p(At),Ar=x(At),Kr=p(Xt),ki=x(Xt);function Xi(dn,wn){var Nn=p(wn),Yi=p(dn)*Nn,Qi=x(dn)*Nn,on=x(wn),Fi=on*Cr+Yi*Ar;return[b(Qi*Kr-Fi*ki,Yi*Cr-on*Ar),A(Fi*Kr+Qi*ki)]}return Xi.invert=function(dn,wn){var Nn=p(wn),Yi=p(dn)*Nn,Qi=x(dn)*Nn,on=x(wn),Fi=on*Kr-Qi*ki;return[b(Qi*Kr+on*ki,Yi*Cr+Fi*Ar),A(Fi*Cr-Yi*Ar)]},Xi}function yn(At){At=Oi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(Cr){return Cr=At(Cr[0]*d,Cr[1]*d),Cr[0]*=h,Cr[1]*=h,Cr}return Xt.invert=function(Cr){return Cr=At.invert(Cr[0]*d,Cr[1]*d),Cr[0]*=h,Cr[1]*=h,Cr},Xt}function Sn(At,Xt,Cr,Ar,Kr,ki){if(Cr){var Xi=p(Xt),dn=x(Xt),wn=Ar*Cr;Kr==null?(Kr=Xt+Ar*f,ki=Xt-wn/2):(Kr=Ba(Xi,Kr),ki=Ba(Xi,ki),(Ar>0?Krki)&&(Kr+=Ar*f));for(var Nn,Yi=Kr;Ar>0?Yi>ki:Yi1&&At.push(At.pop().concat(At.shift()))},result:function(){var Cr=At;return At=[],Xt=null,Cr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--dn)Kr.point((Qi=Yi[dn])[0],Qi[1]);else Ar(on.x,on.p.x,-1,Kr);on=on.p}on=on.o,Yi=on.z,Fi=!Fi}while(!on.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,Cr=0,Ar=At[0],Kr;++Cr=0?1:-1,as=Ss*Zo,ws=as>l,Ho=Ca*Ka;if(Wn.add(b(Ho*Ss*x(as),Ra*bo+Ho*p(as))),Xi+=ws?Zo+Ss*f:Zo,ws^Fi>=Cr^Yn>=Cr){var ml=lt(ce(on),ce(Na));ot(ml);var Ws=lt(ki,ml);ot(Ws);var Ls=(ws^Zo>=0?-1:1)*A(Ws[2]);(Ar>Ls||Ar===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(Mt))}}return on}}function Mt(At){return At.length>1}function kr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Jr=jn(function(){return!0},vi,An,[-l,-u]);function vi(At){var Xt=NaN,Cr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(ki,Xi){var dn=ki>0?l:-l,wn=v(ki-Xt);v(wn-l)0?u:-u),At.point(Ar,Cr),At.lineEnd(),At.lineStart(),At.point(dn,Cr),At.point(ki,Cr),Kr=0):Ar!==dn&&wn>=l&&(v(Xt-Ar)o?_((x(Xt)*(ki=p(Ar))*x(Cr)-x(Ar)*(Kr=p(Xt))*x(At))/(Kr*ki*Xi)):(Xt+Ar)/2}function An(At,Xt,Cr,Ar){var Kr;if(At==null)Kr=Cr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var ki=At[0]0,Kr=v(Xt)>o;function ki(Yi,Qi,on,Fi){Sn(Fi,At,Cr,on,Yi,Qi)}function Xi(Yi,Qi){return p(Yi)*p(Qi)>Xt}function dn(Yi){var Qi,on,Fi,Qn,Ca;return{lineStart:function(){Qn=Fi=!1,Ca=1},point:function(Ra,La){var Na=[Ra,La],Yn,Dn=Xi(Ra,La),Ka=Ar?Dn?0:Nn(Ra,La):Dn?Nn(Ra+(Ra<0?l:-l),La):0;if(!Qi&&(Qn=Fi=Dn)&&Yi.lineStart(),Dn!==Fi&&(Yn=wn(Qi,Na),(!Yn||Wa(Qi,Yn)||Wa(Na,Yn))&&(Na[2]=1)),Dn!==Fi)Ca=0,Dn?(Yi.lineStart(),Yn=wn(Na,Qi),Yi.point(Yn[0],Yn[1])):(Yn=wn(Qi,Na),Yi.point(Yn[0],Yn[1],2),Yi.lineEnd()),Qi=Yn;else if(Kr&&Qi&&Ar^Dn){var bo;!(Ka&on)&&(bo=wn(Na,Qi,!0))&&(Ca=0,Ar?(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&&(!Qi||!Wa(Qi,Na))&&Yi.point(Na[0],Na[1]),Qi=Na,Fi=Dn,on=Ka},lineEnd:function(){Fi&&Yi.lineEnd(),Qi=null},clean:function(){return Ca|(Qn&&Fi)<<1}}}function wn(Yi,Qi,on){var Fi=ce(Yi),Qn=ce(Qi),Ca=[1,0,0],Ra=lt(Fi,Qn),La=je(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!on&&Yi;var Dn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=lt(Ca,Ra),Zo=Vt(Ca,Dn),Ss=Vt(Ra,Ka);pt(Zo,Ss);var as=bo,ws=je(Zo,as),Ho=je(as,as),ml=ws*ws-Ho*(je(Zo,Zo)-1);if(!(ml<0)){var Ws=M(ml),Ls=Vt(as,(-ws-Ws)/Ho);if(pt(Ls,Zo),Ls=De(Ls),!on)return Ls;var va=Yi[0],no=Qi[0],ys=Yi[1],rs=Qi[1],Ql;no0^Ls[1]<(v(Ls[0]-va)l^(va<=Ls[0]&&Ls[0]<=no)){var pu=Vt(as,(-ws+Ws)/Ho);return pt(pu,Zo),[Ls,De(pu)]}}}function Nn(Yi,Qi){var on=Ar?At:l-At,Fi=0;return Yi<-on?Fi|=1:Yi>on&&(Fi|=2),Qi<-on?Fi|=4:Qi>on&&(Fi|=8),Fi}return jn(Xi,dn,ki,Ar?[0,-At]:[-l,At-l])}function Li(At,Xt,Cr,Ar,Kr,ki){var Xi=At[0],dn=At[1],wn=Xt[0],Nn=Xt[1],Yi=0,Qi=1,on=wn-Xi,Fi=Nn-dn,Qn;if(Qn=Cr-Xi,!(!on&&Qn>0)){if(Qn/=on,on<0){if(Qn0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}if(Qn=Kr-Xi,!(!on&&Qn<0)){if(Qn/=on,on<0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}else if(on>0){if(Qn0)){if(Qn/=Fi,Fi<0){if(Qn0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}if(Qn=ki-dn,!(!Fi&&Qn<0)){if(Qn/=Fi,Fi<0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}else if(Fi>0){if(Qn0&&(At[0]=Xi+Yi*on,At[1]=dn+Yi*Fi),Qi<1&&(Xt[0]=Xi+Qi*on,Xt[1]=dn+Qi*Fi),!0}}}}}var _n=1e9,ya=-_n;function $n(At,Xt,Cr,Ar){function Kr(Nn,Yi){return At<=Nn&&Nn<=Cr&&Xt<=Yi&&Yi<=Ar}function ki(Nn,Yi,Qi,on){var Fi=0,Qn=0;if(Nn==null||(Fi=Xi(Nn,Qi))!==(Qn=Xi(Yi,Qi))||wn(Nn,Yi)<0^Qi>0)do on.point(Fi===0||Fi===3?At:Cr,Fi>1?Ar:Xt);while((Fi=(Fi+Qi+4)%4)!==Qn);else on.point(Yi[0],Yi[1])}function Xi(Nn,Yi){return v(Nn[0]-At)0?0:3:v(Nn[0]-Cr)0?2:1:v(Nn[1]-Xt)0?1:0:Yi>0?3:2}function dn(Nn,Yi){return wn(Nn.x,Yi.x)}function wn(Nn,Yi){var Qi=Xi(Nn,1),on=Xi(Yi,1);return Qi!==on?Qi-on:Qi===0?Yi[1]-Nn[1]:Qi===1?Nn[0]-Yi[0]:Qi===2?Nn[1]-Yi[1]:Yi[0]-Nn[0]}return function(Nn){var Yi=Nn,Qi=ma(),on,Fi,Qn,Ca,Ra,La,Na,Yn,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;noAr&&(Uc-Nc)*(Ar-pu)>(xu-pu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-pu)<(xu-pu)*(At-Nc)&&--va;return va}function ws(){Yi=Qi,on=[],Fi=[],bo=!0}function Ho(){var va=as(),no=bo&&va,ys=(on=t.merge(on)).length;(no||ys)&&(Nn.polygonStart(),no&&(Nn.lineStart(),ki(null,null,1,Nn),Nn.lineEnd()),ys&&Xo(on,dn,va,ki,Nn),Nn.polygonEnd()),Yi=Nn,on=Fi=Qn=null}function ml(){Zo.point=Ls,Fi&&Fi.push(Qn=[]),Ka=!0,Dn=!1,Na=Yn=NaN}function Ws(){on&&(Ls(Ca,Ra),La&&Dn&&Qi.rejoin(),on.push(Qi.result())),Zo.point=Ss,Dn&&Yi.lineEnd()}function Ls(va,no){var ys=Kr(va,no);if(Fi&&Qn.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=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],Ql=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];Li(rs,Ql,At,Xt,Cr,Ar)?(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)}Na=va,Yn=no,Dn=ys}return Zo}}function Ma(){var At=0,Xt=0,Cr=960,Ar=500,Kr,ki,Xi;return Xi={stream:function(dn){return Kr&&ki===dn?Kr:Kr=$n(At,Xt,Cr,Ar)(ki=dn)},extent:function(dn){return arguments.length?(At=+dn[0][0],Xt=+dn[0][1],Cr=+dn[1][0],Ar=+dn[1][1],Kr=ki=null,Xi):[[At,Xt],[Cr,Ar]]}}}var _o=r(),No,po,Lo,ko={sphere:O,point:O,lineStart:Ds,lineEnd:O,polygonStart:O,polygonEnd:O};function Ds(){ko.point=ll,ko.lineEnd=Fs}function Fs(){ko.point=ko.lineEnd=O}function ll(At,Xt){At*=d,Xt*=d,No=At,po=x(Xt),Lo=p(Xt),ko.point=ul}function ul(At,Xt){At*=d,Xt*=d;var Cr=x(Xt),Ar=p(Xt),Kr=v(At-No),ki=p(Kr),Xi=x(Kr),dn=Ar*Xi,wn=Lo*Cr-po*Ar*ki,Nn=po*Cr+Lo*Ar*ki;_o.add(b(M(dn*dn+wn*wn),Nn)),No=At,po=Cr,Lo=Ar}function zl(At){return _o.reset(),H(At,ko),+_o}var us=[null,null],il={type:"LineString",coordinates:us};function As(At,Xt){return us[0]=At,us[1]=Xt,zl(il)}var cl={Feature:function(At,Xt){return zs(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var Cr=At.features,Ar=-1,Kr=Cr.length;++Ar0&&(Kr=As(At[ki],At[ki-1]),Kr>0&&Cr<=Kr&&Ar<=Kr&&(Cr+Ar-Kr)*(1-Math.pow((Cr-Ar)/Kr,2))o}).map(on)).concat(t.range(k(ki/Nn)*Nn,Kr,Nn).filter(function(Yn){return v(Yn%Qi)>o}).map(Fi))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[Qn(Ar).concat(Ca(Xi).slice(1),Qn(Cr).reverse().slice(1),Ca(dn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],Cr=+Yn[1][0],dn=+Yn[0][1],Xi=+Yn[1][1],Ar>Cr&&(Yn=Ar,Ar=Cr,Cr=Yn),dn>Xi&&(Yn=dn,dn=Xi,Xi=Yn),La.precision(Ra)):[[Ar,dn],[Cr,Xi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],ki=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),ki>Kr&&(Yn=ki,ki=Kr,Kr=Yn),La.precision(Ra)):[[Xt,ki],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Yi=+Yn[0],Qi=+Yn[1],La):[Yi,Qi]},La.stepMinor=function(Yn){return arguments.length?(wn=+Yn[0],Nn=+Yn[1],La):[wn,Nn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,on=Rn(ki,Kr,90),Fi=_a(Xt,At,Ra),Qn=Rn(dn,Xi,90),Ca=_a(Ar,Cr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ol(){return Vu()()}function xo(At,Xt){var Cr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,ki=Xt[1]*d,Xi=p(Ar),dn=x(Ar),wn=p(ki),Nn=x(ki),Yi=Xi*p(Cr),Qi=Xi*x(Cr),on=wn*p(Kr),Fi=wn*x(Kr),Qn=2*A(M(z(ki-Ar)+Xi*wn*z(Kr-Cr))),Ca=x(Qn),Ra=Qn?function(La){var Na=x(La*=Qn)/Ca,Yn=x(Qn-La)/Ca,Dn=Yn*Yi+Na*on,Ka=Yn*Qi+Na*Fi,bo=Yn*dn+Na*Nn;return[b(Ka,Dn)*h,b(bo,M(Dn*Dn+Ka*Ka))*h]}:function(){return[Cr*h,Ar*h]};return Ra.distance=Qn,Ra}function Kl(At){return At}var Ns=r(),Hl=r(),ac,aa,Oo,qo,ql={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ql.lineStart=Pc,ql.lineEnd=Vf},polygonEnd:function(){ql.lineStart=ql.lineEnd=ql.point=O,Ns.add(v(Hl)),Hl.reset()},result:function(){var At=Ns/2;return Ns.reset(),At}};function Pc(){ql.point=Do}function Do(At,Xt){ql.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Vf(){rf(ac,aa)}var pl=1/0,Zc=pl,Jl=-pl,Os=Jl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[pl,Zc],[Jl,Os]];return Jl=Os=-(Zc=pl=1/0),At}};function oc(At,Xt){AtJl&&(Jl=At),XtOs&&(Os=Xt)}var Cf=0,sc=0,jh=0,Lf=0,cs=0,nf=0,Gf=0,$l=0,fl=0,lc,Fu,Es,Hs,Go={point:ps,lineStart:uc,lineEnd:qs,polygonStart:function(){Go.lineStart=od,Go.lineEnd=Po},polygonEnd:function(){Go.point=ps,Go.lineStart=uc,Go.lineEnd=qs},result:function(){var At=fl?[Gf/fl,$l/fl]:nf?[Lf/nf,cs/nf]:jh?[Cf/jh,sc/jh]:[NaN,NaN];return Cf=sc=jh=Lf=cs=nf=Gf=$l=fl=0,At}};function ps(At,Xt){Cf+=At,sc+=Xt,++jh}function uc(){Go.point=xl}function xl(At,Xt){Go.point=Gu,ps(Es=At,Hs=Xt)}function Gu(At,Xt){var Cr=At-Es,Ar=Xt-Hs,Kr=M(Cr*Cr+Ar*Ar);Lf+=Kr*(Es+At)/2,cs+=Kr*(Hs+Xt)/2,nf+=Kr,ps(Es=At,Hs=Xt)}function qs(){Go.point=ps}function od(){Go.point=sd}function Po(){Ko(lc,Fu)}function sd(At,Xt){Go.point=Ko,ps(lc=Es=At,Fu=Hs=Xt)}function Ko(At,Xt){var Cr=At-Es,Ar=Xt-Hs,Kr=M(Cr*Cr+Ar*Ar);Lf+=Kr*(Es+At)/2,cs+=Kr*(Hs+Xt)/2,nf+=Kr,Kr=Hs*At-Es*Xt,Gf+=Kr*(Es+At),$l+=Kr*(Hs+Xt),fl+=Kr*3,ps(Es=At,Hs=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,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(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,bl,Hf,Ic,yf,Bl={point:O,lineStart:function(){Bl.point=Ah},lineEnd:function(){Hu&&Qf(bl,Hf),Bl.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function Ah(At,Xt){Bl.point=Qf,bl=Ic=At,Hf=yf=Xt}function Qf(At,Xt){Ic-=At,yf-=Xt,af.add(M(Ic*Ic+yf*yf)),Ic=At,yf=Xt}function _f(){this._string=[]}_f.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,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(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var Cr=4.5,Ar,Kr;function ki(Xi){return Xi&&(typeof Cr=="function"&&Kr.pointRadius(+Cr.apply(this,arguments)),H(Xi,Ar(Kr))),Kr.result()}return ki.area=function(Xi){return H(Xi,Ar(ql)),ql.result()},ki.measure=function(Xi){return H(Xi,Ar(Bl)),Bl.result()},ki.bounds=function(Xi){return H(Xi,Ar(yu)),yu.result()},ki.centroid=function(Xi){return H(Xi,Ar(Go)),Go.result()},ki.projection=function(Xi){return arguments.length?(Ar=Xi==null?(At=null,Kl):(At=Xi).stream,ki):At},ki.context=function(Xi){return arguments.length?(Kr=Xi==null?(Xt=null,new _f):new Pa(Xt=Xi),typeof Cr!="function"&&Kr.pointRadius(Cr),ki):Xt},ki.pointRadius=function(Xi){return arguments.length?(Cr=typeof Xi=="function"?Xi:(Kr.pointRadius(+Xi),+Xi),ki):Cr},ki.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var Cr=new jf;for(var Ar in At)Cr[Ar]=At[Ar];return Cr.stream=Xt,Cr}}function jf(){}jf.prototype={constructor:jf,point:function(At,Xt){this.stream.point(At,Xt)},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(At,Xt,Cr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),H(Cr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,Cr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],ki=Xt[1][1]-Xt[0][1],Xi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),ki/(Ar[1][1]-Ar[0][1])),dn=+Xt[0][0]+(Kr-Xi*(Ar[1][0]+Ar[0][0]))/2,wn=+Xt[0][1]+(ki-Xi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Xi).translate([dn,wn])},Cr)}function Nl(At,Xt,Cr){return of(At,[[0,0],Xt],Cr)}function Kc(At,Xt,Cr){return cc(At,function(Ar){var Kr=+Xt,ki=Kr/(Ar[1][0]-Ar[0][0]),Xi=(Kr-ki*(Ar[1][0]+Ar[0][0]))/2,dn=-ki*Ar[0][1];At.scale(150*ki).translate([Xi,dn])},Cr)}function Rc(At,Xt,Cr){return cc(At,function(Ar){var Kr=+Xt,ki=Kr/(Ar[1][1]-Ar[0][1]),Xi=-ki*Ar[0][0],dn=(Kr-ki*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*ki).translate([Xi,dn])},Cr)}var gs=16,Wf=p(30*d);function Wh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,Cr){Xt=At(Xt,Cr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function Cr(Ar,Kr,ki,Xi,dn,wn,Nn,Yi,Qi,on,Fi,Qn,Ca,Ra){var La=Nn-Ar,Na=Yi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&Ca--){var Dn=Xi+on,Ka=dn+Fi,bo=wn+Qn,Zo=M(Dn*Dn+Ka*Ka+bo*bo),Ss=A(bo/=Zo),as=v(v(bo)-1)Xt||v((La*Ws+Na*Ls)/Yn-.5)>.3||Xi*on+dn*Fi+wn*Qn2?va[2]%360*d:0,Ws()):[dn*h,wn*h,Nn*h]},Ho.angle=function(va){return arguments.length?(Qi=va%360*d,Ws()):Qi*h},Ho.reflectX=function(va){return arguments.length?(on=va?-1:1,Ws()):on<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()):M(Ka)},Ho.fitExtent=function(va,no){return of(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(Cr,0,0,on,Fi,Qi).apply(null,Xt(ki,Xi)),no=(Qi?js:ih)(Cr,Ar-va[0],Kr-va[1],on,Fi,Qi);return Yi=Oi(dn,wn,Nn),Zo=ri(Xt,no),Ss=ri(Yi,Zo),bo=Wh(Zo,Ka),Ls()}function Ls(){return as=ws=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&ml,Ws()}}function ks(At){var Xt=0,Cr=l/3,Ar=Dc(At),Kr=Ar(Xt,Cr);return Kr.parallels=function(ki){return arguments.length?Ar(Xt=ki[0]*d,Cr=ki[1]*d):[Xt*h,Cr*h]},Kr}function bc(At){var Xt=p(At);function Cr(Ar,Kr){return[Ar*Xt,x(Kr)/Xt]}return Cr.invert=function(Ar,Kr){return[Ar/Xt,A(Kr*Xt)]},Cr}function hu(At,Xt){var Cr=x(At),Ar=(Cr+x(Xt))/2;if(v(Ar)=.12&&Ra<.234&&Ca>=-.425&&Ca<-.214?Kr:Ra>=.166&&Ra<.234&&Ca>=-.214&&Ca<-.115?Xi:Cr).invert(on)},Yi.stream=function(on){return At&&Xt===on?At:At=nh([Cr.stream(Xt=on),Kr.stream(on),Xi.stream(on)])},Yi.precision=function(on){return arguments.length?(Cr.precision(on),Kr.precision(on),Xi.precision(on),Qi()):Cr.precision()},Yi.scale=function(on){return arguments.length?(Cr.scale(on),Kr.scale(on*.35),Xi.scale(on),Yi.translate(Cr.translate())):Cr.scale()},Yi.translate=function(on){if(!arguments.length)return Cr.translate();var Fi=Cr.scale(),Qn=+on[0],Ca=+on[1];return Ar=Cr.translate(on).clipExtent([[Qn-.455*Fi,Ca-.238*Fi],[Qn+.455*Fi,Ca+.238*Fi]]).stream(Nn),ki=Kr.translate([Qn-.307*Fi,Ca+.201*Fi]).clipExtent([[Qn-.425*Fi+o,Ca+.12*Fi+o],[Qn-.214*Fi-o,Ca+.234*Fi-o]]).stream(Nn),dn=Xi.translate([Qn-.205*Fi,Ca+.212*Fi]).clipExtent([[Qn-.214*Fi+o,Ca+.166*Fi+o],[Qn-.115*Fi-o,Ca+.234*Fi-o]]).stream(Nn),Qi()},Yi.fitExtent=function(on,Fi){return of(Yi,on,Fi)},Yi.fitSize=function(on,Fi){return Nl(Yi,on,Fi)},Yi.fitWidth=function(on,Fi){return Kc(Yi,on,Fi)},Yi.fitHeight=function(on,Fi){return Rc(Yi,on,Fi)};function Qi(){return At=Xt=null,Yi}return Yi.scale(1070)}function zu(At){return function(Xt,Cr){var Ar=p(Xt),Kr=p(Cr),ki=At(Ar*Kr);return[ki*Kr*x(Xt),ki*x(Cr)]}}function Fc(At){return function(Xt,Cr){var Ar=M(Xt*Xt+Cr*Cr),Kr=At(Ar),ki=x(Kr),Xi=p(Kr);return[b(Xt*ki,Ar*Xi),A(Ar&&Cr*ki/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*A(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var xf=zu(function(At){return(At=P(At))&&At/x(At)});xf.invert=Fc(function(At){return At});function Pf(){return Eu(xf).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,T(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*_(E(Xt))-u]};function bf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),Cr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,ki=Xt.clipExtent,Xi=null,dn,wn,Nn;Xt.scale=function(Qi){return arguments.length?(Ar(Qi),Yi()):Ar()},Xt.translate=function(Qi){return arguments.length?(Kr(Qi),Yi()):Kr()},Xt.center=function(Qi){return arguments.length?(Cr(Qi),Yi()):Cr()},Xt.clipExtent=function(Qi){return arguments.length?(Qi==null?Xi=dn=wn=Nn=null:(Xi=+Qi[0][0],dn=+Qi[0][1],wn=+Qi[1][0],Nn=+Qi[1][1]),Yi()):Xi==null?null:[[Xi,dn],[wn,Nn]]};function Yi(){var Qi=l*Ar(),on=Xt(yn(Xt.rotate()).invert([0,0]));return ki(Xi==null?[[on[0]-Qi,on[1]-Qi],[on[0]+Qi,on[1]+Qi]]:At===Ou?[[Math.max(on[0]-Qi,Xi),dn],[Math.min(on[0]+Qi,wn),Nn]]:[[Xi,Math.max(on[1]-Qi,dn)],[wn,Math.min(on[1]+Qi,Nn)]])}return Yi()}function lf(At){return g((u+At)/2)}function Xh(At,Xt){var Cr=p(At),Ar=At===Xt?x(At):T(Cr/p(Xt))/T(lf(Xt)/lf(At)),Kr=Cr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function ki(Xi,dn){Kr>0?dn<-u+o&&(dn=-u+o):dn>u-o&&(dn=u-o);var wn=Kr/L(lf(dn),Ar);return[wn*x(Ar*Xi),Kr-wn*p(Ar*Xi)]}return ki.invert=function(Xi,dn){var wn=Kr-dn,Nn=C(Ar)*M(Xi*Xi+wn*wn),Yi=b(Xi,v(wn))*C(wn);return wn*Ar<0&&(Yi-=l*C(Xi)*C(wn)),[Yi/Ar,2*_(L(Kr/Nn,1/Ar))-u]},ki}function If(){return ks(Xh).scale(109.5).parallels([30,30])}function Cs(At,Xt){return[At,Xt]}Cs.invert=Cs;function du(){return Eu(Cs).scale(152.63)}function ku(At,Xt){var Cr=p(At),Ar=At===Xt?x(At):(Cr-p(Xt))/(Xt-At),Kr=Cr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(ki=Cr*Cr)*(-.131979+ki*(-.013791+ki*ki*ki*(.003971-.001529*ki)))),Cr]};function Tc(){return Eu(Oc).scale(175.295)}function wl(At,Xt){return[p(Xt)*x(At),x(Xt)]}wl.invert=Fc(A);function vu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var Cr=p(Xt),Ar=1+p(At)*Cr;return[Cr*x(At)/Ar,x(Xt)/Ar]}qc.invert=Fc(function(At){return 2*_(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[T(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*_(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,Cr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?Cr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=Cr(),[Ar[0],Ar[1],Ar[2]-90])},Cr([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=Er,e.geoCircle=ua,e.geoClipAntimeridian=Jr,e.geoClipCircle=Mn,e.geoClipExtent=Ma,e.geoClipRectangle=$n,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=uf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Cs,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=Ol,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=bf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=vu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=H,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var qDe=ye((FF,ODe)=>{(function(e,t){typeof FF=="object"&&typeof ODe!="undefined"?t(FF,NZ(),hk()):t(e.d3=e.d3||{},e.d3,e.d3)})(FF,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},_=Math.sin,b=Math.tan,p=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,x=Math.SQRT1_2,C=G(2),M=G(E),g=E*2,P=180/E,A=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?T:ve<-1?-T:Math.asin(ve)}function U(ve){return ve>1?0:ve<-1?E: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 oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function qe(et,Xe){var it=o(et),Ft=o(Xe),Ht=_(Xe),tr=Ft*it,dr=-((1-tr?u((1+tr)/2)/(1-tr):-.5)+Re/(1+tr));return[dr*Ft*_(et),dr*Ht]}return qe.invert=function(et,Xe){var it=G(et*et+Xe*Xe),Ft=-ve/2,Ht=50,tr;if(!it)return[0,0];do{var dr=Ft/2,Sr=o(dr),Or=_(dr),Wr=Or/Sr,ni=-u(n(Sr));Ft-=tr=(2/Wr*ni-Re*Wr-it)/(-ni/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(tr)>p&&--Ht>0);var Pi=_(Ft);return[a(et*Pi,it*o(Ft)),O(Xe*Pi/it)]},qe}function _e(){var ve=T,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(qe){return arguments.length?be(ve=qe*A):ve*P},Re.scale(179.976).clipAngle(147)}function Ce(ve,be){var Re=o(be),qe=z(U(Re*o(ve/=2)));return[2*Re*_(ve)*qe,_(be)*qe]}Ce.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,qe=be,et=25;do{var Xe=_(Re),it=_(Re/2),Ft=o(Re/2),Ht=_(qe),tr=o(qe),dr=_(2*qe),Sr=Ht*Ht,Or=tr*tr,Wr=it*it,ni=1-Or*Ft*Ft,Pi=ni?U(tr*Ft)*G(cn=1/ni):cn=0,cn,ln=2*Pi*tr*it-ve,Cn=Pi*Ht-be,Kn=cn*(Or*Wr+Pi*tr*Ft*Sr),Aa=cn*(.5*Xe*dr-Pi*2*Ht*it),fa=cn*.25*(dr*it-Pi*Ht*Or*Xe),$a=cn*(Sr*Ft+Pi*Wr*tr),Co=Aa*fa-$a*Kn;if(!Co)break;var Qa=(Cn*Aa-ln*$a)/Co,mo=(ln*fa-Cn*Kn)/Co;Re-=Qa,qe-=mo}while((n(Qa)>p||n(mo)>p)&&--et>0);return[Re,qe]}};function Le(){return t.geoProjection(Ce).scale(152.63)}function ge(ve){var be=_(ve),Re=o(ve),qe=ve>=0?1:-1,et=b(qe*ve),Xe=(1+be-Re)/2;function it(Ft,Ht){var tr=o(Ht),dr=o(Ft/=2);return[(1+tr)*_(Ft),(qe*Ht>-a(dr,et)-.001?0:-qe*10)+Xe+_(Ht)*Re-(1+tr)*be*dr]}return it.invert=function(Ft,Ht){var tr=0,dr=0,Sr=50;do{var Or=o(tr),Wr=_(tr),ni=o(dr),Pi=_(dr),cn=1+ni,ln=cn*Wr-Ft,Cn=Xe+Pi*Re-cn*be*Or-Ht,Kn=cn*Or/2,Aa=-Wr*Pi,fa=be*cn*Wr/2,$a=Re*ni+be*Or*Pi,Co=Aa*fa-$a*Kn,Qa=(Cn*Aa-ln*$a)/Co/2,mo=(ln*fa-Cn*Kn)/Co;n(mo)>2&&(mo/=2),tr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return qe*dr>-a(o(tr),et)-.001?[tr*2,dr]:null},it}function ie(){var ve=20*A,be=ve>=0?1:-1,Re=b(be*ve),qe=t.geoProjectionMutator(ge),et=qe(ve),Xe=et.stream;return et.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*A)>=0?1:-1)*ve),qe(ve)):ve*P},et.stream=function(it){var Ft=et.rotate(),Ht=Xe(it),tr=(et.rotate([0,0]),Xe(it)),dr=et.precision();return et.rotate(Ft),Ht.sphere=function(){tr.polygonStart(),tr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)tr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)tr.point(Sr,be*-a(o(Sr*A/2),Re)*P);tr.lineEnd(),tr.polygonEnd()},Ht},et.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),qe=G(1-Re*Re),et=1+qe*o(ve/=2),Xe=_(ve)*qe/et,it=Re/et,Ft=Xe*Xe,Ht=it*it;return[4/3*Xe*(3+Ft-3*Ht),4/3*it*(3+3*Ft-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,qe=be*be,et=1+Re+qe,Xe=G((et-G(et*et-4*be*be))/2),it=O(Xe)/3,Ft=Xe?re(n(be/Xe))/3:H(n(ve))/3,Ht=o(it),tr=N(Ft),dr=tr*tr-Ht*Ht;return[v(ve)*2*a(j(Ft)*Ht,.25-dr),v(be)*2*a(tr*_(it),.25+dr)]};function Ee(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),Be=u(1+C);function Pe(ve,be){var Re=n(be);return Rek&&--qe>0);return[ve/(o(Re)*(Ae-1/_(Re))),v(be)*Re]};function me(){return t.geoProjection(Pe).scale(112.314)}function De(ve){var be=2*E/ve;function Re(qe,et){var Xe=t.geoAzimuthalEquidistantRaw(qe,et);if(n(qe)>T){var it=a(Xe[1],Xe[0]),Ft=G(Xe[0]*Xe[0]+Xe[1]*Xe[1]),Ht=be*d((it-T)/be)+T,tr=a(_(it-=Ht),2-o(it));it=Ht+O(E/Ft*_(tr))-tr,Xe[0]=Ft*o(it),Xe[1]=Ft*_(it)}return Xe}return Re.invert=function(qe,et){var Xe=G(qe*qe+et*et);if(Xe>T){var it=a(et,qe),Ft=be*d((it-T)/be)+T,Ht=it>Ft?-1:1,tr=Xe*o(Ft-it),dr=1/b(Ht*U((tr-E)/G(E*(E-2*tr)+Xe*Xe)));it=Ft+2*i((dr+Ht*G(dr*dr-3))/3),qe=Xe*o(it),et=Xe*_(it)}return t.geoAzimuthalEquidistantRaw.invert(qe,et)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(De),Re=be(ve),qe=Re.stream,et=.01,Xe=-o(et*A),it=_(et*A);return Re.lobes=function(Ft){return arguments.length?be(ve=+Ft):ve},Re.stream=function(Ft){var Ht=Re.rotate(),tr=qe(Ft),dr=(Re.rotate([0,0]),qe(Ft));return Re.rotate(Ht),tr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,Wr=2*E/ve,ni=90-180/ve,Pi=T;Sr0&&n(et)>p);return qe<0?NaN:Re}function ot(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=k),function(qe,et,Xe,it){var Ft,Ht,tr;Xe=Xe===void 0?0:+Xe,it=it===void 0?0:+it;for(var dr=0;drFt){Xe-=Ht/=2,it-=tr/=2;continue}Ft=ni;var Pi=(Xe>0?-1:1)*Re,cn=(it>0?-1:1)*Re,ln=ve(Xe+Pi,it),Cn=ve(Xe,it+cn),Kn=(ln[0]-Sr[0])/Pi,Aa=(ln[1]-Sr[1])/Pi,fa=(Cn[0]-Sr[0])/cn,$a=(Cn[1]-Sr[1])/cn,Co=$a*Kn-Aa*fa,Qa=(n(Co)<.5?.5:1)/Co;if(Ht=(Wr*fa-Or*$a)*Qa,tr=(Or*Aa-Wr*Kn)*Qa,Xe+=Ht,it+=tr,n(Ht)0&&(Ft[1]*=1+Ht/1.5*Ft[0]*Ft[0]),Ft}return qe.invert=ot(qe),qe}function Wt(){return t.geoProjection(ut()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*_(be),qe=30,et;do be-=et=(be+_(be)-Re)/(1+o(be));while(n(et)>p&&--qe>0);return be/2}function $t(ve,be,Re){function qe(et,Xe){return[ve*et*o(Xe=Nt(Re,Xe)),be*_(Xe)]}return qe.invert=function(et,Xe){return Xe=O(Xe/be),[et/(ve*o(Xe)),O((2*Xe+_(2*Xe))/Re)]},qe}var sr=$t(C/T,C,E);function Tr(){return t.geoProjection(sr).scale(169.529)}var fr=2.00276,$e=1.11072;function St(ve,be){var Re=Nt(E,be);return[fr*ve/(1/o(be)+$e/o(Re)),(be+C*_(Re))/fr]}St.invert=function(ve,be){var Re=fr*be,qe=be<0?-L:L,et=25,Xe,it;do it=Re-C*_(qe),qe-=Xe=(_(2*qe)+2*qe-E*_(it))/(2*o(2*qe)+2+E*o(it)*C*o(qe));while(n(Xe)>p&&--et>0);return it=Re-C*_(qe),[ve*(1/o(it)+$e/o(qe))/fr,it]};function Qt(){return t.geoProjection(St).scale(160.857)}function Gt(ve){var be=0,Re=t.geoProjectionMutator(ve),qe=Re(be);return qe.parallel=function(et){return arguments.length?Re(be=et*A):be*P},qe}function _t(ve,be){return[ve*o(be),be]}_t.invert=function(ve,be){return[ve/o(be),be]};function It(){return t.geoProjection(_t).scale(152.63)}function mt(ve){if(!ve)return _t;var be=1/b(ve);function Re(qe,et){var Xe=be+ve-et,it=Xe&&qe*o(et)/Xe;return[Xe*_(it),be-Xe*o(it)]}return Re.invert=function(qe,et){var Xe=G(qe*qe+(et=be-et)*et),it=be+ve-Xe;return[Xe/o(it)*a(qe,et),it]},Re}function er(){return Gt(mt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,qe){var et=T-qe,Xe=et&&Re*ve*_(et)/et;return[et*_(Xe)/ve,T-et*o(Xe)]}return be.invert=function(Re,qe){var et=Re*ve,Xe=T-qe,it=G(et*et+Xe*Xe),Ft=a(et,Xe);return[(it?it/_(it):1)*Ft/ve,T-it]},be}function wr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(158.837)}var Lr=$t(1,4/E,E);function ti(){return t.geoProjection(Lr).scale(152.63)}function Br(ve,be,Re,qe,et,Xe){var it=o(Xe),Ft;if(n(ve)>1||n(Xe)>1)Ft=U(Re*et+be*qe*it);else{var Ht=_(ve/2),tr=_(Xe/2);Ft=2*O(G(Ht*Ht+be*qe*tr*tr))}return n(Ft)>p?[Ft,a(qe*_(Xe),be*et-Re*qe*it)]:[0,0]}function Vr(ve,be,Re){return U((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var qe=[[ve[0],ve[1],_(ve[1]),o(ve[1])],[be[0],be[1],_(be[1]),o(be[1])],[Re[0],Re[1],_(Re[1]),o(Re[1])]],et=qe[2],Xe,it=0;it<3;++it,et=Xe)Xe=qe[it],et.v=Br(Xe[1]-et[1],et[3],et[2],Xe[3],Xe[2],Xe[0]-et[0]),et.point=[0,0];var Ft=Vr(qe[0].v[0],qe[2].v[0],qe[1].v[0]),Ht=Vr(qe[0].v[0],qe[1].v[0],qe[2].v[0]),tr=E-Ft;qe[2].point[1]=0,qe[0].point[0]=-(qe[1].point[0]=qe[0].v[0]/2);var dr=[qe[2].point[0]=qe[0].point[0]+qe[2].v[0]*o(Ft),2*(qe[0].point[1]=qe[1].point[1]=qe[2].v[0]*_(Ft))];function Sr(Or,Wr){var ni=_(Wr),Pi=o(Wr),cn=new Array(3),ln;for(ln=0;ln<3;++ln){var Cn=qe[ln];if(cn[ln]=Br(Wr-Cn[1],Cn[3],Cn[2],Pi,ni,Or-Cn[0]),!cn[ln][0])return Cn.point;cn[ln][1]=dt(cn[ln][1]-Cn.v[1])}var Kn=dr.slice();for(ln=0;ln<3;++ln){var Aa=ln==2?0:ln+1,fa=Vr(qe[ln].v[0],cn[ln][0],cn[Aa][0]);cn[ln][1]<0&&(fa=-fa),ln?ln==1?(fa=Ht-fa,Kn[0]-=cn[ln][0]*o(fa),Kn[1]-=cn[ln][0]*_(fa)):(fa=tr-fa,Kn[0]+=cn[ln][0]*o(fa),Kn[1]+=cn[ln][0]*_(fa)):(Kn[0]+=cn[ln][0]*o(fa),Kn[1]-=cn[ln][0]*_(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=A,ve[1]*=A,ve}function We(){return tt([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function tt(ve,be,Re){var qe=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),et=[-qe[0],-qe[1]],Xe=t.geoRotation(et),it=Ge(Je(Xe(ve)),Je(Xe(be)),Je(Xe(Re)));it.invert=ot(it);var Ft=t.geoProjection(it).rotate(et),Ht=Ft.center;return delete Ft.rotate,Ft.center=function(tr){return arguments.length?Ht(Xe(tr)):Xe.invert(Ht())},Ft.clipAngle(90)}function xt(ve,be){var Re=G(1-_(be));return[2/M*ve*Re,M*(1-Re)]}xt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(qe,et){return[qe,(qe?qe/_(qe):1)*(_(et)*o(qe)-be*o(et))]}return Re.invert=be?function(qe,et){qe&&(et*=_(qe)/qe);var Xe=o(qe);return[qe,2*a(G(Xe*Xe+be*be-et*et)-Xe,be-et)]}:function(qe,et){return[qe,O(qe?et*b(qe)/qe:et)]},Re}function ke(){return Gt(xe).scale(249.828).clipAngle(90)}var vt=G(3);function ir(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*_(be/3)]}ir.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ar(){return t.geoProjection(ir).scale(156.19)}function vr(ve){var be=o(ve);function Re(qe,et){return[qe*be,_(et)/be]}return Re.invert=function(qe,et){return[qe/be,O(et*be)]},Re}function ii(){return Gt(vr).parallel(38.58).scale(195.044)}function pi(ve){var be=o(ve);function Re(qe,et){return[qe*be,(1+be)*b(et/2)]}return Re.invert=function(qe,et){return[qe/be,i(et/(1+be))*2]},Re}function $r(){return Gt(pi).scale(124.75)}function di(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}di.invert=function(ve,be){var Re=G(8/(3*E)),qe=be/Re;return[ve/(Re*(1-n(qe)/E)),qe]};function ji(){return t.geoProjection(di).scale(165.664)}function In(ve,be){var Re=G(4-3*_(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}In.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wi(){return t.geoProjection(In).scale(165.664)}function On(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}On.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function qn(){return t.geoProjection(On).scale(180.739)}function Fn(ve,be){var Re=(2+T)*_(be);be/=2;for(var qe=0,et=1/0;qe<10&&n(et)>p;qe++){var Xe=o(be);be-=et=(be+_(be)*(Xe+2)-Re)/(2*Xe*(1+Xe))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*_(be)]}Fn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,qe=O(Re),et=o(qe);return[ve/(2/G(E*(4+E))*(1+et)),O((qe+Re*(et+2))/(2+T))]};function ra(){return t.geoProjection(Fn).scale(180.739)}function la(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}la.invert=function(ve,be){var Re=G(2+E),qe=be*Re/2;return[Re*ve/(1+o(qe)),qe]};function Ut(){return t.geoProjection(la).scale(173.044)}function wt(ve,be){for(var Re=(1+T)*_(be),qe=0,et=1/0;qe<10&&n(et)>p;qe++)be-=et=(be+_(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}wt.invert=function(ve,be){var Re=1+T,qe=G(Re/2);return[ve*2*qe/(1+o(be*=qe)),O((be+_(be))/Re)]};function rr(){return t.geoProjection(wt).scale(173.044)}var nr=3+2*C;function Er(ve,be){var Re=_(ve/=2),qe=o(ve),et=G(o(be)),Xe=o(be/=2),it=_(be)/(Xe+C*qe*et),Ft=G(2/(1+it*it)),Ht=G((C*Xe+(qe+Re)*et)/(C*Xe+(qe-Re)*et));return[nr*(Ft*(Ht-1/Ht)-2*u(Ht)),nr*(Ft*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(Xe=Se.invert(ve/1.2,be*1.065)))return null;var Re=Xe[0],qe=Xe[1],et=20,Xe;ve/=nr,be/=nr;do{var it=Re/2,Ft=qe/2,Ht=_(it),tr=o(it),dr=_(Ft),Sr=o(Ft),Or=o(qe),Wr=G(Or),ni=dr/(Sr+C*tr*Wr),Pi=ni*ni,cn=G(2/(1+Pi)),ln=C*Sr+(tr+Ht)*Wr,Cn=C*Sr+(tr-Ht)*Wr,Kn=ln/Cn,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,Co=cn*fa-2*u(Aa)-ve,Qa=cn*ni*$a-2*i(ni)-be,mo=dr&&x*Wr*Ht*Pi/dr,Bo=(C*tr*Sr+Wr)/(2*(Sr+C*tr*Wr)*(Sr+C*tr*Wr)*Wr),Ps=-.5*ni*cn*cn*cn,Ts=Ps*mo,wo=Ps*Bo,To=(To=2*Sr+C*Wr*(tr-Ht))*To*Aa,hl=(C*tr*Sr*Wr+Or)/To,Ul=-(C*Ht*dr)/(Wr*To),Lu=fa*Ts-2*hl/Aa+cn*(hl+hl/Kn),au=fa*wo-2*Ul/Aa+cn*(Ul+Ul/Kn),Js=ni*$a*Ts-2*mo/(1+Pi)+cn*$a*mo+cn*ni*(hl-hl/Kn),eu=ni*$a*wo-2*Bo/(1+Pi)+cn*$a*Bo+cn*ni*(Ul-Ul/Kn),dc=au*Js-eu*Lu;if(!dc)break;var Tl=(Qa*au-Co*eu)/dc,Al=(Co*Js-Qa*Lu)/dc;Re-=Tl,qe=c(-T,f(T,qe-Al))}while((n(Tl)>p||n(Al)>p)&&--et>0);return n(n(qe)-T)qe){var Sr=G(dr),Or=a(tr,Ht),Wr=Re*d(Or/Re),ni=Or-Wr,Pi=ve*o(ni),cn=(ve*_(ni)-ni*_(Pi))/(T-Pi),ln=Wa(ni,cn),Cn=(E-ve)/Fa(ln,Pi,E);Ht=Sr;var Kn=50,Aa;do Ht-=Aa=(ve+Fa(ln,Pi,Ht)*Cn-Sr)/(ln(Ht)*Cn);while(n(Aa)>p&&--Kn>0);tr=ni*_(Ht),Htqe){var Ht=G(Ft),tr=a(it,Xe),dr=Re*d(tr/Re),Sr=tr-dr;Xe=Ht*o(Sr),it=Ht*_(Sr);for(var Or=Xe-T,Wr=_(Xe),ni=it/Wr,Pi=Xep||n(ni)>p)&&--Pi>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ha(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var Mt=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function kr(){return t.geoProjection(Mt).scale(130.945)}function Jr(ve,be){var Re=ve*ve,qe=be*be;return[ve*(1-.162388*qe)*(.87-952426e-9*Re*Re),be*(1+qe/12)]}Jr.invert=function(ve,be){var Re=ve,qe=be,et=50,Xe;do{var it=qe*qe;qe-=Xe=(qe*(1+it/12)-be)/(1+it/4)}while(n(Xe)>p&&--et>0);et=50,ve/=1-.162388*it;do{var Ft=(Ft=Re*Re)*Ft;Re-=Xe=(Re*(.87-952426e-9*Ft)-ve)/(.87-.00476213*Ft)}while(n(Xe)>p&&--et>0);return[Re,qe]};function vi(){return t.geoProjection(Jr).scale(131.747)}var hn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function An(){return t.geoProjection(hn).scale(131.087)}function Mn(ve){var be=ve(T,0)[0]-ve(-T,0)[0];function Re(qe,et){var Xe=qe>0?-.5:.5,it=ve(qe+Xe*E,et);return it[0]-=Xe*be,it}return ve.invert&&(Re.invert=function(qe,et){var Xe=qe>0?-.5:.5,it=ve.invert(qe+Xe*be,et),Ft=it[0]-Xe*E;return Ft<-E?Ft+=2*E:Ft>E&&(Ft-=2*E),it[0]=Ft,it}),Re}function Li(ve,be){var Re=v(ve),qe=v(be),et=o(be),Xe=o(ve)*et,it=_(ve)*et,Ft=_(qe*be);ve=n(a(it,Ft)),be=O(Xe),n(ve-T)>p&&(ve%=T);var Ht=_n(ve>E/4?T-ve:ve,be);return ve>E/4&&(Ft=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Ft),Ht[0]*=Re,Ht[1]*=-qe,Ht}Li.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),qe=v(be),et=-Re*ve,Xe=-qe*be,it=Xe/et<1,Ft=ya(it?Xe:et,it?et:Xe),Ht=Ft[0],tr=Ft[1],dr=o(tr);return it&&(Ht=-T-Ht),[Re*(a(_(Ht)*dr,-_(tr))+E),qe*O(o(Ht)*dr)]};function _n(ve,be){if(be===T)return[0,0];var Re=_(be),qe=Re*Re,et=qe*qe,Xe=1+et,it=1+3*et,Ft=1-et,Ht=O(1/G(Xe)),tr=Ft+qe*Xe*Ht,dr=(1-Re)/tr,Sr=G(dr),Or=dr*Xe,Wr=G(Or),ni=Sr*Ft,Pi,cn;if(ve===0)return[0,-(ni+qe*Wr)];var ln=o(be),Cn=1/ln,Kn=2*Re*ln,Aa=(-3*qe+Ht*it)*Kn,fa=(-tr*ln-(1-Re)*Aa)/(tr*tr),$a=.5*fa/Sr,Co=Ft*$a-2*qe*Sr*Kn,Qa=qe*Xe*fa+dr*it*Kn,mo=-Cn*Kn,Bo=-Cn*Qa,Ps=-2*Cn*Co,Ts=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Pi=(ni+qe*G(Or*(1+et)-ni*ni))/(1+et),ve>E/4)return[Pi,Pi];var To=Pi,hl=.5*Pi;Pi=.5*(hl+To),cn=50;do{var Ul=G(Or-Pi*Pi),Lu=Pi*(Ps+mo*Ul)+Bo*O(Pi/Wr)-Ts;if(!Lu)break;Lu<0?hl=Pi:To=Pi,Pi=.5*(hl+To)}while(n(To-hl)>p&&--cn>0)}else{Pi=p,cn=25;do{var au=Pi*Pi,Js=G(Or-au),eu=Ps+mo*Js,dc=Pi*eu+Bo*O(Pi/Wr)-Ts,Tl=eu+(Bo-mo*au)/Js;Pi-=wo=Js?dc/Tl:0}while(n(wo)>p&&--cn>0)}return[Pi,-ni-qe*G(Or-Pi*Pi)]}function ya(ve,be){for(var Re=0,qe=1,et=.5,Xe=50;;){var it=et*et,Ft=G(et),Ht=O(1/G(1+it)),tr=1-it+et*(1+it)*Ht,dr=(1-Ft)/tr,Sr=G(dr),Or=dr*(1+it),Wr=Sr*(1-it),ni=Or-ve*ve,Pi=G(ni),cn=be+Wr+et*Pi;if(n(qe-Re)0?Re=et:qe=et,et=.5*(Re+qe)}if(!Xe)return null;var ln=O(Ft),Cn=o(ln),Kn=1/Cn,Aa=2*Ft*Cn,fa=(-3*et+Ht*(1+3*it))*Aa,$a=(-tr*Cn-(1-Ft)*fa)/(tr*tr),Co=.5*$a/Sr,Qa=(1-it)*Co-2*et*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Ps=-Kn*(et*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Pi)+Ps*O(ve/G(Or))),ln]}function $n(){return t.geoProjection(Mn(Li)).scale(239.75)}function Ma(ve,be,Re){var qe,et,Xe;return ve?(qe=_o(ve,Re),be?(et=_o(be,1-Re),Xe=et[1]*et[1]+Re*qe[0]*qe[0]*et[0]*et[0],[[qe[0]*et[2]/Xe,qe[1]*qe[2]*et[0]*et[1]/Xe],[qe[1]*et[1]/Xe,-qe[0]*qe[2]*et[0]*et[2]/Xe],[qe[2]*et[1]*et[2]/Xe,-Re*qe[0]*qe[1]*et[0]/Xe]]):[[qe[0],0],[qe[1],0],[qe[2],0]]):(et=_o(be,1-Re),[[0,et[0]/et[1]],[1/et[1],0],[et[2]/et[1],0]])}function _o(ve,be){var Re,qe,et,Xe,it;if(be=1-p)return Re=(1-be)/4,qe=N(ve),Xe=Z(ve),et=1/qe,it=qe*j(ve),[Xe+Re*(it-ve)/(qe*qe),et-Re*Xe*et*(it-ve),et+Re*Xe*et*(it+ve),2*i(s(ve))-T+Re*(it-ve)/qe];var Ft=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],tr=0;for(qe=G(1-be),it=1;n(Ht[tr]/Ft[tr])>p&&tr<8;)Re=Ft[tr++],Ht[tr]=(Re-qe)/2,Ft[tr]=(Re+qe)/2,qe=G(Re*qe),it*=2;et=it*Ft[tr]*ve;do Xe=Ht[tr]*_(qe=et)/Ft[tr],et=(O(Xe)+et)/2;while(--tr);return[_(et),Xe=o(et),Xe/o(et-qe),et]}function No(ve,be,Re){var qe=n(ve),et=n(be),Xe=j(et);if(qe){var it=1/_(qe),Ft=1/(b(qe)*b(qe)),Ht=-(Ft+Re*(Xe*Xe*it*it)-1+Re),tr=(Re-1)*Ft,dr=(-Ht+G(Ht*Ht-4*tr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Ft-1)/Re)),1-Re)*v(be)]}return[0,po(i(Xe),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,qe=G(1-be),et=G(be),Xe=0;n(et)>p;Xe++){if(ve%E){var it=i(qe*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;et=(Re+qe)/2,qe=G(Re*qe),et=((Re=et)-qe)/2}return ve/(h(2,Xe)*Re)}function Lo(ve,be){var Re=(C-1)/(C+1),qe=G(1-Re*Re),et=po(T,qe*qe),Xe=-1,it=u(b(E/4+n(be)/2)),Ft=s(Xe*it)/G(Re),Ht=ko(Ft*o(Xe*ve),Ft*_(Xe*ve)),tr=No(Ht[0],Ht[1],qe*qe);return[-tr[1],(be>=0?1:-1)*(.5*et-tr[0])]}function ko(ve,be){var Re=ve*ve,qe=be+1,et=1-Re-be*be;return[.5*((ve>=0?T:-T)-a(et,2*ve)),-.25*u(et*et+4*Re)+.5*u(qe*qe+Re)]}function Ds(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(C-1)/(C+1),qe=G(1-Re*Re),et=po(T,qe*qe),Xe=-1,it=Ma(.5*et-be,-ve,qe*qe),Ft=Ds(it[0],it[1]),Ht=a(Ft[1],Ft[0])/Xe;return[Ht,2*i(s(.5/Xe*u(Re*Ft[0]*Ft[0]+Re*Ft[1]*Ft[1])))-T]};function Fs(){return t.geoProjection(Mn(Lo)).scale(151.496)}function ll(ve){var be=_(ve),Re=o(ve),qe=ul(ve);qe.invert=ul(-ve);function et(Xe,it){var Ft=qe(Xe,it);Xe=Ft[0],it=Ft[1];var Ht=_(it),tr=o(it),dr=o(Xe),Sr=U(be*Ht+Re*tr*dr),Or=_(Sr),Wr=n(Or)>p?Sr/Or:1;return[Wr*Re*_(Xe),(n(Xe)>T?Wr:-Wr)*(be*tr-Re*Ht*dr)]}return et.invert=function(Xe,it){var Ft=G(Xe*Xe+it*it),Ht=-_(Ft),tr=o(Ft),dr=Ft*tr,Sr=-it*Ht,Or=Ft*be,Wr=G(dr*dr+Sr*Sr-Or*Or),ni=a(dr*Or+Sr*Wr,Sr*Or-dr*Wr),Pi=(Ft>T?-1:1)*a(Xe*Ht,Ft*o(ni)*tr+it*_(ni)*Ht);return qe.invert(Pi,ni)},et}function ul(ve){var be=_(ve),Re=o(ve);return function(qe,et){var Xe=o(et),it=o(qe)*Xe,Ft=_(qe)*Xe,Ht=_(et);return[a(Ft,it*Re-Ht*be),O(Ht*Re+it*be)]}}function zl(){var ve=0,be=t.geoProjectionMutator(ll),Re=be(ve),qe=Re.rotate,et=Re.stream,Xe=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Ft=Re.rotate();return be(ve=it*A).rotate(Ft)},Re.rotate=function(it){return arguments.length?(qe.call(Re,[it[0],it[1]-ve*P]),Xe.center([-it[0],-it[1]]),Re):(it=qe.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=et(it),it.sphere=function(){it.polygonStart();var Ft=.01,Ht=Xe.radius(90-Ft)().coordinates[0],tr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var us=3,il=O(1-1/us)*P,As=vr(0);function cl(ve){var be=il*A,Re=xt(E,be)[0]-xt(-E,be)[0],qe=As(0,be)[1],et=xt(0,be)[1],Xe=M-et,it=g/ve,Ft=4/g,Ht=qe+Xe*Xe*4/g;function tr(dr,Sr){var Or,Wr=n(Sr);if(Wr>be){var ni=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ni*it,Or=xt(dr,Wr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ni*g/ve,Or[1]=qe+(Or[1]-et)*4*Xe/g,Sr<0&&(Or[1]=-Or[1])}else Or=As(dr,Sr);return Or[0]*=Ft,Or[1]/=Ht,Or}return tr.invert=function(dr,Sr){dr/=Ft,Sr*=Ht;var Or=n(Sr);if(Or>qe){var Wr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-Wr*it)*Re/g;var ni=xt.invert(dr,.25*(Or-qe)*g/Xe+et);return ni[0]-=E*(ve-1)/ve-Wr*it,Sr<0&&(ni[1]=-ni[1]),ni}return As.invert(dr,Sr)},tr}function Ks(ve,be){return[ve,be&1?90-p:il]}function zs(ve,be){return[ve,be&1?-90+p:-il]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function ls(ve){var be=[].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?be.map(Io):be]}}function Yl(){var ve=4,be=t.geoProjectionMutator(cl),Re=be(ve),qe=Re.stream;return Re.lobes=function(et){return arguments.length?be(ve=+et):ve},Re.stream=function(et){var Xe=Re.rotate(),it=qe(et),Ft=(Re.rotate([0,0]),qe(et));return Re.rotate(Xe),it.sphere=function(){t.geoStream(ls(180/ve),Ft)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=_(1/be),qe=O(Re),et=2*G(E/(Xe=E+4*qe*be)),Xe,it=.5*et*(be+G(ve*(2+ve))),Ft=ve*ve,Ht=be*be;function tr(dr,Sr){var Or=1-_(Sr),Wr,ni;if(Or&&Or<2){var Pi=T-Sr,cn=25,ln;do{var Cn=_(Pi),Kn=o(Pi),Aa=qe+a(Cn,be-Kn),fa=1+Ht-2*be*Kn;Pi-=ln=(Pi-Ft*qe-be*Cn+fa*Aa-.5*Or*Xe)/(2*be*Cn*Aa)}while(n(ln)>k&&--cn>0);Wr=et*G(fa),ni=dr*Aa/E}else Wr=et*(ve+Or),ni=dr*qe/E;return[Wr*_(ni),it-Wr*o(ni)]}return tr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,Wr=(1+Ht-Or/(et*et))/(2*be),ni=U(Wr),Pi=_(ni),cn=qe+a(Pi,be-Wr);return[O(dr/G(Or))*E/cn,O(1-2*(ni-Ft*qe-be*Pi+(1+Ht-2*be*Wr)*cn)/Xe)]},tr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(167.774).center([0,18.67])}var bs=.7109889596207567,Rn=.0528035274542;function _a(ve,be){return be>-bs?(ve=sr(ve,be),ve[1]+=Rn,ve):_t(ve,be)}_a.invert=function(ve,be){return be>-bs?sr.invert(ve,be-Rn):_t.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ol(ve,be){return n(be)>bs?(ve=sr(ve,be),ve[1]-=be>0?Rn:-Rn,ve):_t(ve,be)}Ol.invert=function(ve,be){return n(be)>bs?sr.invert(ve,be+(be>0?Rn:-Rn)):_t.invert(ve,be)};function xo(){return t.geoProjection(Ol).scale(152.63)}function Kl(ve,be,Re,qe){var et=G(4*E/(2*Re+(1+ve-be/2)*_(2*Re)+(ve+be)/2*_(4*Re)+be/2*_(6*Re))),Xe=G(qe*_(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Ft(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*_(2*Or)+(ve+be)/2*_(4*Or)+be/2*_(6*Or))/Re}function tr(Sr){return Ft(Sr)*_(Sr)}var dr=function(Sr,Or){var Wr=Re*Vt(Ht,it*_(Or)/Re,Or/E);isNaN(Wr)&&(Wr=Re*v(Or));var ni=et*Ft(Wr);return[ni*Xe*Sr/E*o(Wr),ni/Xe*_(Wr)]};return dr.invert=function(Sr,Or){var Wr=Vt(tr,Or*Xe/et);return[Sr*E/(o(Wr)*et*Xe*Ft(Wr)),O(Re*Ht(Wr/Re)/it)]},Re===0&&(et=G(qe/E),dr=function(Sr,Or){return[Sr*et,_(Or)/et]},dr.invert=function(Sr,Or){return[Sr/et,O(Or*et)]}),dr}function Ns(){var ve=1,be=0,Re=45*A,qe=2,et=t.geoProjectionMutator(Kl),Xe=et(ve,be,Re,qe);return Xe.a=function(it){return arguments.length?et(ve=+it,be,Re,qe):ve},Xe.b=function(it){return arguments.length?et(ve,be=+it,Re,qe):be},Xe.psiMax=function(it){return arguments.length?et(ve,be,Re=+it*A,qe):Re*P},Xe.ratio=function(it){return arguments.length?et(ve,be,Re,qe=+it):qe},Xe.scale(180.739)}function Hl(ve,be,Re,qe,et,Xe,it,Ft,Ht,tr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,Wr,ni,Pi,cn,ln,Cn,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),Wr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(Wr)){dr.nanEncountered=!0;return}return ni=Sr*(qe+4*Or+et)/12,Pi=Sr*(et+4*Wr+Xe)/12,cn=ni+Pi,Aa=(cn-it)/15,tr>Ht?(dr.maxDepthCount++,cn+Aa):Math.abs(Aa)>1;do Ht[cn]>Wr?Pi=cn:ni=cn,cn=ni+Pi>>1;while(cn>ni);var ln=Ht[cn+1]-Ht[cn];return ln&&(ln=(Wr-Ht[cn+1])/ln),(cn+1+ln)/it}var Sr=2*dr(1)/E*Xe/Re,Or=function(Wr,ni){var Pi=dr(n(_(ni))),cn=qe(Pi)*Wr;return Pi/=Sr,[cn,ni>=0?Pi:-Pi]};return Or.invert=function(Wr,ni){var Pi;return ni*=Sr,n(ni)<1&&(Pi=v(ni)*O(et(n(ni))*Xe)),[Wr/qe(n(ni)),Pi]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,qe=t.geoProjectionMutator(aa),et=qe(ve,be,Re);return et.alpha=function(Xe){return arguments.length?qe(ve=+Xe,be,Re):ve},et.k=function(Xe){return arguments.length?qe(ve,be=+Xe,Re):be},et.gamma=function(Xe){return arguments.length?qe(ve,be,Re=+Xe):Re},et.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],qe=Re[0][0],et=Re[0][1],Xe=Re[1][1],it=Re[2][0],Ft=Re[2][1],be.push(ql([[it-p,Ft-p],[it-p,Xe+p],[qe+p,Xe+p],[qe+p,et-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var qe,et;function Xe(Ht,tr){for(var dr=tr<0?-1:1,Sr=be[+(tr<0)],Or=0,Wr=Sr.length-1;OrSr[Or][2][0];++Or);var ni=ve(Ht-Sr[Or][1][0],tr);return ni[0]+=ve(Sr[Or][1][0],dr*tr>dr*Sr[Or][0][1]?Sr[Or][0][1]:tr)[0],ni}Re?Xe.invert=Re(Xe):ve.invert&&(Xe.invert=function(Ht,tr){for(var dr=et[+(tr<0)],Sr=be[+(tr<0)],Or=0,Wr=dr.length;Orni&&(Pi=Wr,Wr=ni,ni=Pi),[[Sr,Wr],[Or,ni]]})}),it):be.map(function(tr){return tr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-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(St,rf).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(Ol,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 Os(){return Do(sr,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(sr,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,ot).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(_t,jh).scale(152.63).rotate([-20,0])}function cs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}cs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(cs).scale(158.837)}function Gf(ve){function be(Re,qe){if(n(n(qe)-T)2)return null;Re/=2,qe/=2;var Xe=Re*Re,it=qe*qe,Ft=2*qe/(1+Xe+it);return Ft=h((1+Ft)/(1-Ft),1/ve),[a(2*Re,1-Xe-it)/ve,O((Ft-1)/(Ft+1))]},be}function $l(){var ve=.5,be=t.geoProjectionMutator(Gf),Re=be(ve);return Re.spacing=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(124.75)}var fl=E/C;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),qe=n(be),et=p,Xe=T;qep||n(cn)>p)&&--et>0);return et&&[Re,qe]};function Hs(){return t.geoProjection(Es).scale(139.98)}function Go(ve,be){return[_(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,qe=be*be,et=qe+1,Xe=Re+et,it=ve?x*G((Xe-G(Xe*Xe-4*Re))/Re):1/G(et);return[O(ve*it),v(be)*U(it)]};function ps(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function qe(et,Xe){var it=Xe-ve,Ft=n(it)=0;)dr=ve[tr],Sr=dr[0]+Ft*(Wr=Sr)-Ht*Or,Or=dr[1]+Ft*Or+Ht*Wr;return Sr=Ft*(Wr=Sr)-Ht*Or,Or=Ft*Or+Ht*Wr,[Sr,Or]}return Re.invert=function(qe,et){var Xe=20,it=qe,Ft=et;do{for(var Ht=be,tr=ve[Ht],dr=tr[0],Sr=tr[1],Or=0,Wr=0,ni;--Ht>=0;)tr=ve[Ht],Or=dr+it*(ni=Or)-Ft*Wr,Wr=Sr+it*Wr+Ft*ni,dr=tr[0]+it*(ni=dr)-Ft*Sr,Sr=tr[1]+it*Sr+Ft*ni;Or=dr+it*(ni=Or)-Ft*Wr,Wr=Sr+it*Wr+Ft*ni,dr=it*(ni=dr)-Ft*Sr-qe,Sr=it*Sr+Ft*ni-et;var Pi=Or*Or+Wr*Wr,cn,ln;it-=cn=(dr*Or+Sr*Wr)/Pi,Ft-=ln=(Sr*Or-dr*Wr)/Pi}while(n(cn)+n(ln)>p*p&&--Xe>0);if(Xe){var Cn=G(it*it+Ft*Ft),Kn=2*i(Cn*.5),Aa=_(Kn);return[a(it*Aa,Cn*o(Kn)),Cn?O(Ft*Aa/Cn):0]}},Re}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]],af=[[.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(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,be){var Re=t.geoProjection(od(ve)).rotate(be).clipAngle(90),qe=t.geoRotation(be),et=Re.center;return delete Re.rotate,Re.center=function(Xe){return arguments.length?et(qe(Xe)):qe.invert(et())},Re}var Ah=G(6),Qf=G(7);function _f(ve,be){var Re=O(7*_(be)/(3*Ah));return[Ah*ve*(2*o(2*Re/3)-1)/Qf,9*_(Re/3)/Qf]}_f.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(Ah*(2*o(2*Re/3)-1)),O(_(Re)*3*Ah/7)]};function Yc(){return t.geoProjection(_f).scale(164.859)}function eh(ve,be){for(var Re=(1+x)*_(be),qe=be,et=0,Xe;et<25&&(qe-=Xe=(_(qe/2)+_(qe)-Re)/(.5*o(qe/2)+o(qe)),!(n(Xe)k&&--qe>0);return Xe=Re*Re,it=Xe*Xe,Ft=Xe*it,[ve/(.84719-.13063*Xe+Ft*Ft*(-.04515+.05494*Xe-.02326*it+.00331*Ft)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Nl.invert=function(ve,be){for(var Re=be/2,qe=0,et=1/0;qe<10&&n(et)>p;++qe){var Xe=o(be/2);be-=et=(be-b(be/2)-Re)/(1-.5/(Xe*Xe))}return[2*ve/(1+o(be)),be]};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(je(1/0),Rc).rotate([20,0]).scale(152.63)}function Wf(ve,be){var Re=_(be),qe=o(be),et=v(ve);if(ve===0||n(be)===T)return[0,be];if(be===0)return[ve,0];if(n(ve)===T)return[ve*qe,T*Re];var Xe=E/(2*ve)-2*ve/E,it=2*be/E,Ft=(1-it*it)/(Re-it),Ht=Xe*Xe,tr=Ft*Ft,dr=1+Ht/tr,Sr=1+tr/Ht,Or=(Xe*Re/Ft-Xe/2)/dr,Wr=(tr*Re/Ht+Ft/2)/Sr,ni=Or*Or+qe*qe/dr,Pi=Wr*Wr-(tr*Re*Re/Ht+Ft*Re-1)/Sr;return[T*(Or+G(ni)*et),T*(Wr+G(Pi<0?0:Pi)*v(-be*Xe)*et)]}Wf.invert=function(ve,be){ve/=T,be/=T;var Re=ve*ve,qe=be*be,et=Re+qe,Xe=E*E;return[ve?(et-1+G((1-et)*(1-et)+4*Re))/(2*ve)*T:0,Vt(function(it){return et*(E*_(it)-2*it)*E+4*it*it*(be-_(it))+2*E*it-Xe*be},0)]};function Wh(){return t.geoProjection(Wf).scale(127.267)}var rh=1.0148,sf=.23185,Sh=-.14499,Mu=.02406,ih=rh,js=5*sf,Eu=7*Sh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(Sh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,qe;do{var et=Re*Re;Re-=qe=(Re*(rh+et*et*(sf+et*(Sh+Mu*et)))-be)/(ih+et*et*(js+et*(Eu+Dc*et)))}while(n(qe)>p);return[ve,Re]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--et>0);return it=b(qe),[(n(be)=0;)if(qe=be[Ft],Re[0]===qe[0]&&Re[1]===qe[1]){if(Xe)return[Xe,Re];Xe=Re}}}function jl(ve){for(var be=ve.length,Re=[],qe=ve[be-1],et=0;et0?[-qe[0],0]:[180-qe[0],180])};var be=If.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,qe){var et=be[Re];et&&(et.children||(et.children=[])).push(be[qe])}),xf(be[0],function(Re,qe){return be[Re<-E/2?qe<0?6:4:Re<0?qe<0?2:0:Reqe^Wr>qe&&Re<(Or-tr)*(qe-dr)/(Wr-dr)+tr&&(et=!et)}return et}function Wl(ve,be){var Re=be.stream,qe;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":qe=Zu;break;case"FeatureCollection":qe=ah;break;default:qe=Tc;break}return qe(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var wl=[],vu=[],qc={point:function(ve,be){wl.push([ve,be])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},cf={lineStart:Xu,point:function(ve,be){wl.push([ve,be])},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,be){wl.push([ve,be])},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=[],be=[];return vu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var qe=Re[0];ve.some(function(et){if(Zf(et[0],qe))return et.push(Re),!0})||ve.push([Re])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(T,0)[0]-ve(-T,0)[0];function Re(qe,et){var Xe=n(qe)0?qe-E:qe+E,et),Ft=(it[0]-it[1])*x,Ht=(it[0]+it[1])*x;if(Xe)return[Ft,Ht];var tr=be*x,dr=Ft>0^Ht>0?-1:1;return[dr*Ft-v(Ht)*tr,dr*Ht-v(Ft)*tr]}return ve.invert&&(Re.invert=function(qe,et){var Xe=(qe+et)*x,it=(et-qe)*x,Ft=n(Xe)<.5*be&&n(it)<.5*be;if(!Ft){var Ht=be*x,tr=Xe>0^it>0?-1:1,dr=-tr*qe+(it>0?1:-1)*Ht,Sr=-tr*et+(Xe>0?1:-1)*Ht;Xe=(-dr-Sr)*x,it=(dr-Sr)*x}var Or=ve.invert(Xe,it);return Ft||(Or[0]+=Xe>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(Li).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function Cr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(tr){var dr=tr.length,Sr=2,Or=new Array(dr);for(Or[0]=+tr[0].toFixed(be),Or[1]=+tr[1].toFixed(be);Sr2||Wr[0]!=dr[0]||Wr[1]!=dr[1])&&(Sr.push(Wr),dr=Wr)}return Sr.length===1&&tr.length>1&&Sr.push(Re(tr[tr.length-1])),Sr}function Xe(tr){return tr.map(et)}function it(tr){if(tr==null)return tr;var dr;switch(tr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:tr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(tr.coordinates)};break;case"MultiPoint":dr={type:tr.type,coordinates:qe(tr.coordinates)};break;case"LineString":dr={type:tr.type,coordinates:et(tr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:tr.type,coordinates:Xe(tr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:tr.coordinates.map(Xe)};break;default:return tr}return tr.bbox!=null&&(dr.bbox=tr.bbox),dr}function Ft(tr){var dr={type:"Feature",properties:tr.properties,geometry:it(tr.geometry)};return tr.id!=null&&(dr.id=tr.id),tr.bbox!=null&&(dr.bbox=tr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Ft(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Ft)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=_(ve);function Re(qe,et){var Xe=be?b(qe*be/2)/be:qe/2;if(!et)return[2*Xe,-ve];var it=2*i(Xe*_(et)),Ft=1/b(et);return[_(it)*Ft,et+(1-o(it))*Ft-ve]}return Re.invert=function(qe,et){if(n(et+=ve)p&&--Ft>0);var Or=qe*(tr=b(it)),Wr=b(n(et)0?T:-T)*(Ht+et*(dr-it)/2+et*et*(dr-2*Ht+it)/2)]}Xi.invert=function(ve,be){var Re=be/T,qe=Re*90,et=f(18,n(qe/5)),Xe=c(0,l(et));do{var it=ki[Xe][1],Ft=ki[Xe+1][1],Ht=ki[f(19,Xe+2)][1],tr=Ht-it,dr=Ht-2*Ft+it,Sr=2*(n(Re)-Ft)/tr,Or=dr/tr,Wr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(Wr>=0||Xe===1){qe=(be>=0?5:-5)*(Wr+et);var ni=50,Pi;do et=f(18,n(qe)/5),Xe=l(et),Wr=et-Xe,it=ki[Xe][1],Ft=ki[Xe+1][1],Ht=ki[f(19,Xe+2)][1],qe-=(Pi=(be>=0?T:-T)*(Ft+Wr*(Ht-it)/2+Wr*Wr*(Ht-2*Ft+it)/2)-be)*P;while(n(Pi)>k&&--ni>0);break}}while(--Xe>=0);var cn=ki[Xe][0],ln=ki[Xe+1][0],Cn=ki[f(19,Xe+2)][0];return[ve/(ln+Wr*(Cn-cn)/2+Wr*Wr*(Cn-2*ln+cn)/2),qe*A]};function dn(){return t.geoProjection(Xi).scale(152.63)}function wn(ve){function be(Re,qe){var et=o(qe),Xe=(ve-1)/(ve-et*o(Re));return[Xe*et*_(Re),Xe*_(qe)]}return be.invert=function(Re,qe){var et=Re*Re+qe*qe,Xe=G(et),it=(ve-G(1-et*(ve+1)/(ve-1)))/((ve-1)/Xe+Xe/(ve-1));return[a(Re*it,Xe*G(1-it*it)),Xe?O(qe*it/Xe):0]},be}function Nn(ve,be){var Re=wn(ve);if(!be)return Re;var qe=o(be),et=_(be);function Xe(it,Ft){var Ht=Re(it,Ft),tr=Ht[1],dr=tr*et/(ve-1)+qe;return[Ht[0]*qe/dr,tr/dr]}return Xe.invert=function(it,Ft){var Ht=(ve-1)/(ve-1-Ft*et);return Re.invert(Ht*it,Ht*Ft*qe)},Xe}function Yi(){var ve=2,be=0,Re=t.geoProjectionMutator(Nn),qe=Re(ve,be);return qe.distance=function(et){return arguments.length?Re(ve=+et,be):ve},qe.tilt=function(et){return arguments.length?Re(ve,be=et*A):be*P},qe.scale(432.147).clipAngle(U(1/ve)*P-1e-6)}var Qi=1e-4,on=1e4,Fi=-180,Qn=Fi+Qi,Ca=180,Ra=Ca-Qi,La=-90,Na=La+Qi,Yn=90,Dn=Yn-Qi;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*on)/on}function Zo(ve){return ve===La||ve===Yn?[0,ve]:[Fi,bo(ve)]}function Ss(ve){var be=ve[0],Re=ve[1],qe=!1;return be<=Qn?(be=Fi,qe=!0):be>=Ra&&(be=Ca,qe=!0),Re<=Na?(Re=La,qe=!0):Re>=Dn&&(Re=Yn,qe=!0),qe?[be,Re]:ve}function as(ve){return ve.map(Ss)}function ws(ve,be,Re){for(var qe=0,et=ve.length;qe=Ra||dr<=Na||dr>=Dn){Xe[it]=Ss(Ht);for(var Sr=it+1;SrQn&&WrNa&&ni=Ft)break;Re.push({index:-1,polygon:be,ring:Xe=Xe.slice(Sr-1)}),Xe[0]=Zo(Xe[0][1]),it=-1,Ft=Xe.length}}}}function Ho(ve){var be,Re=ve.length,qe={},et={},Xe,it,Ft,Ht,tr;for(be=0;be0?E-Ft:Ft)*P],tr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=tr.center;return delete tr.rotate,tr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},tr.clipAngle(90)}function rs(ve){var be=o(ve);function Re(qe,et){var Xe=t.geoGnomonicRaw(qe,et);return Xe[0]*=be,Xe}return Re.invert=function(qe,et){return t.geoGnomonicRaw.invert(qe/be,et)},Re}function Ql(){return Cu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cu(ve,be){return ys(rs,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,qe=ve*ve,et=b(Re),Xe=.5/_(Re);function it(Ft,Ht){var tr=U(o(Ht)*o(Ft-be)),dr=U(o(Ht)*o(Ft-Re)),Sr=Ht<0?-1:1;return tr*=tr,dr*=dr,[(tr-dr)/(2*ve),Sr*G(4*qe*dr-(qe-tr+dr)*(qe-tr+dr))/(2*ve)]}return it.invert=function(Ft,Ht){var tr=Ht*Ht,dr=o(G(tr+(Or=Ft+be)*Or)),Sr=o(G(tr+(Or=Ft+Re)*Or)),Or,Wr;return[a(Wr=dr-Sr,Or=(dr+Sr)*et),(Ht<0?-1:1)*U(G(Or*Or+Wr*Wr)*Xe)]},it}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,be){return ys(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Ft>0);return[v(ve)*(G(et*et+4)+et)*E/4,T*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,qe,et){function Xe(it,Ft){var Ht=Re*_(qe*Ft),tr=G(1-Ht*Ht),dr=G(2/(1+tr*o(it*=et)));return[ve*tr*dr*_(it),be*Ht*dr]}return Xe.invert=function(it,Ft){var Ht=it/ve,tr=Ft/be,dr=G(Ht*Ht+tr*tr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/et,dr&&O(Ft*_(Sr)/(be*Re*dr))/qe]},Xe}function w(ve,be,Re,qe){var et=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,T),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),qe=c(qe,p);var Xe=Re/100+1,it=qe/100,Ft=U(Xe*o(et))/et,Ht=_(ve)/_(Ft*T),tr=be/E,dr=G(it*_(ve/2)/_(be/2)),Sr=dr/G(tr*Ht*Ft),Or=1/(dr*G(tr*Ht*Ft));return ue(Sr,Or,Ht,Ft,tr)}function B(){var ve=65*A,be=60*A,Re=20,qe=200,et=t.geoProjectionMutator(w),Xe=et(ve,be,Re,qe);return Xe.poleline=function(it){return arguments.length?et(ve=+it*A,be,Re,qe):ve*P},Xe.parallels=function(it){return arguments.length?et(ve,be=+it*A,Re,qe):be*P},Xe.inflation=function(it){return arguments.length?et(ve,be,Re=+it,qe):Re},Xe.ratio=function(it){return arguments.length?et(ve,be,Re,qe=+it):qe},Xe.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),Oe=$t(le*G(3)/E,le,ee/6);function Ze(){return t.geoProjection(Oe).scale(176.84)}function st(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}st.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(st).scale(152.63)}function Yt(ve,be){var Re=o(be),qe=o(ve)*Re,et=1-qe,Xe=o(ve=a(_(ve)*Re,-_(be))),it=_(ve);return Re=G(1-qe*qe),[it*Re-Xe*et,-Xe*Re-it*et]}Yt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,qe=G(-Re*(2+Re)),et=be*Re+ve*qe,Xe=ve*Re-be*qe,it=G(Xe*Xe+et*et);return[a(qe*et,it*(1+Re)),it?-O(qe*Xe/it):0]};function Kt(){return t.geoProjection(Yt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Ce(ve,be);return[(Re[0]+ve/T)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,qe=be,et=25;do{var Xe=o(qe),it=_(qe),Ft=_(2*qe),Ht=it*it,tr=Xe*Xe,dr=_(Re),Sr=o(Re/2),Or=_(Re/2),Wr=Or*Or,ni=1-tr*Sr*Sr,Pi=ni?U(Xe*Sr)*G(cn=1/ni):cn=0,cn,ln=.5*(2*Pi*Xe*Or+Re/T)-ve,Cn=.5*(Pi*it+qe)-be,Kn=.5*cn*(tr*Wr+Pi*Xe*Sr*Ht)+.5/T,Aa=cn*(dr*Ft/4-Pi*it*Or),fa=.125*cn*(Ft*Or-Pi*it*tr*dr),$a=.5*cn*(Ht*Sr+Pi*Wr*Xe)+.5,Co=Aa*fa-$a*Kn,Qa=(Cn*Aa-ln*$a)/Co,mo=(ln*fa-Cn*Kn)/Co;Re-=Qa,qe-=mo}while((n(Qa)>p||n(mo)>p)&&--et>0);return[Re,qe]};function Ir(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=Le,e.geoAitoffRaw=Ce,e.geoArmadillo=ie,e.geoArmadilloRaw=ge,e.geoAugust=Ee,e.geoAugustRaw=Se,e.geoBaker=me,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=De,e.geoBertin1953=Wt,e.geoBertin1953Raw=ut,e.geoBoggs=Qt,e.geoBoggsRaw=St,e.geoBonne=er,e.geoBonneRaw=mt,e.geoBottomley=wr,e.geoBottomleyRaw=lr,e.geoBromley=ti,e.geoBromleyRaw=Lr,e.geoChamberlin=tt,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=We,e.geoCollignon=Ie,e.geoCollignonRaw=xt,e.geoCraig=ke,e.geoCraigRaw=xe,e.geoCraster=ar,e.geoCrasterRaw=ir,e.geoCylindricalEqualArea=ii,e.geoCylindricalEqualAreaRaw=vr,e.geoCylindricalStereographic=$r,e.geoCylindricalStereographicRaw=pi,e.geoEckert1=ji,e.geoEckert1Raw=di,e.geoEckert2=wi,e.geoEckert2Raw=In,e.geoEckert3=qn,e.geoEckert3Raw=On,e.geoEckert4=ra,e.geoEckert4Raw=Fn,e.geoEckert5=Ut,e.geoEckert5Raw=la,e.geoEckert6=rr,e.geoEckert6Raw=wt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=Er,e.geoFahey=Oi,e.geoFaheyRaw=Qr,e.geoFoucaut=tn,e.geoFoucautRaw=$i,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=fn,e.geoGilbert=ua,e.geoGingery=Xo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ha,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=kr,e.geoGinzburg6Raw=Mt,e.geoGinzburg8=vi,e.geoGinzburg8Raw=Jr,e.geoGinzburg9=An,e.geoGinzburg9Raw=hn,e.geoGringorten=$n,e.geoGringortenRaw=Li,e.geoGuyou=Fs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=je,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ll,e.geoHealpix=Yl,e.geoHealpixRaw=cl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=Ol,e.geoHufnagel=Ns,e.geoHufnagelRaw=Kl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Vf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=Os,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=Lf,e.geoKavrayskiy7=nf,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=qs,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=Tr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=_f,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=jf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,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=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=Cr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=dn,e.geoRobinsonRaw=Xi,e.geoSatellite=Yi,e.geoSatelliteRaw=Nn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=It,e.geoSinusoidalRaw=_t,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=Ua,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=Oe,e.geoWagner6=Tt,e.geoWagner6Raw=st,e.geoWiechel=Kt,e.geoWiechelRaw=Yt,e.geoWinkel3=Ir,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var GDe=ye((Imr,VDe)=>{"use strict";var nd=Oa(),UZ=Dr(),Ozt=qa(),r5=Math.PI/180,tw=180/Math.PI,GZ={cursor:"pointer"},HZ={cursor:"auto"};function qzt(e,t){var r=e.projection,n;return t._isScoped?n=Bzt:t._isClipped?n=Uzt:n=Nzt,n(e,r)}VDe.exports=qzt;function jZ(e,t){return nd.behavior.zoom().translate(t.translate()).scale(t.scale())}function WZ(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]=UZ.nestedProperty(o,h).get(),Ozt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=UZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),UZ.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 Bzt(e,t){var r=jZ(e,t);function n(){nd.select(this).style(GZ)}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(HZ),WZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function Nzt(e,t){var r=jZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){nd.select(this).style(GZ),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 E=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":-E[0]})}function p(){nd.select(this).style(HZ),h&&WZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",p),r}function Uzt(e,t){var r={r:t.rotate(),k:t.scale()},n=jZ(e,t),i=Yzt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){nd.select(this).style(GZ);var h=nd.mouse(this),d=t.rotate(),v=d,_=t.translate(),b=Vzt(d);s=zF(t,h),o.call(n,"zoom",function(){var p=nd.mouse(this);if(t.scale(r.k=nd.event.scale),!s)h=p,s=zF(t,h);else if(zF(t,p)){t.rotate(d).translate(_);var k=zF(t,p),E=Hzt(s,k),T=Wzt(Gzt(b,E)),L=r.r=jzt(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(HZ),o.call(n,"zoom",null),c(i.of(this,arguments)),WZ(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 zF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&Xzt(r)}function Vzt(e){var t=.5*e[0]*r5,r=.5*e[1]*r5,n=.5*e[2]*r5,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 Gzt(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 Hzt(e,t){if(!(!e||!t)){var r=Zzt(e,t),n=Math.sqrt(UDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,UDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function jzt(e,t,r){var n=VZ(t,2,e[0]);n=VZ(n,1,e[1]),n=VZ(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)*tw,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)*tw-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,_=(Math.atan2(u,s)-Math.atan2(o,h))*tw,b=(Math.atan2(u,s)-Math.atan2(o,-h))*tw,p=BDe(r[0],r[1],d,_),k=BDe(r[0],r[1],v,b);return p<=k?[d,_,r[2]]:[v,b,r[2]]}function BDe(e,t,r,n){var i=NDe(r-e),a=NDe(n-t);return Math.sqrt(i*i+a*a)}function NDe(e){return(e%360+540)%360-180}function VZ(e,t,r){var n=r*r5,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 Wzt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*tw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*tw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*tw]}function Xzt(e){var t=e[0]*r5,r=e[1]*r5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function UDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=Oa(),YZ=NZ(),Kzt=YZ.geoPath,Jzt=YZ.geoDistance,$zt=qDe(),Qzt=qa(),vk=Dr(),e7t=vk.strTranslate,OF=ka(),dk=So(),HDe=vf(),t7t=Mc(),ZZ=ho(),jDe=Mg().getAutoRange,XZ=yv(),r7t=Of().prepSelect,i7t=Of().clearOutline,n7t=Of().selectOnClick,a7t=GDe(),hp=uk(),o7t=hx(),XDe=bF(),s7t=SZ().feature;function ZDe(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=ZDe.prototype;YDe.exports=function(t){return new ZDe(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),t7t.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=l7t(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||{},_=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=jDe(r,u),c.range=jDe(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 E=o.type,T=hp.lonaxisSpan[E]/2||180,L=hp.lataxisSpan[E]/2||90;_=[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=WDe(_,b);f.fitExtent(h,x);var C=this.bounds=f.getBounds(x),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(WDe(u.range,c.range)),A=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(A)?f.scale(A*M):vk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);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 O=f([d.lon,d.lat]),U=f.translate();f.translate([U[0]-(O[0]-U[0]),U[1]-(O[1]-U[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(s7t(n,n.objects[h])):o(h)&&d.datum(u7t(h,t,e)).call(OF.stroke,t[h].gridcolor).call(dk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(OF.stroke,t[v+"color"]).call(dk.dashLine,"",t[v+"width"]):l(h)&&d.call(OF.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;dk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(dk.setRect,i,a,o,s).call(OF.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];Qzt.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&&i7t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(a7t(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){r7t(f,h,d,c,a)},XZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(vk.getPositionFromD3Event());if(!f)return XZ.unhover(n,l1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},HDe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||XZ.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&n7t(l1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&HDe.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(dk.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"},ZZ.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},vk.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?e7t(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 l7t(e){var t=e.projection,r=t.type,n=hp.projNames[r];n="geo"+vk.titleCase(n);for(var i=YZ[n]||$zt[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 Kzt().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 u7t(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,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(k,E){return[E,k]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};ZZ.setConvert(c,r);var f=ZZ.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 KZ=ye((Dmr,QDe)=>{"use strict";var n5=Ih(),c7t=Cc().attributes,f7t=Pd().dash,i5=uk(),h7t=mc().overrideAll,JDe=t_(),$De={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:n5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:f7t},d7t=QDe.exports=h7t({domain:c7t({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:JDe(i5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:JDe(i5.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:n5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:i5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:i5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:i5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:i5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:n5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:n5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:n5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:n5.background},lonaxis:$De,lataxis:$De},"plot","from-root");d7t.uirevision={valType:"any",editType:"none"}});var rFe=ye((Fmr,tFe)=>{"use strict";var qF=Dr(),v7t=O_(),p7t=Id().getSubplotData,BF=uk(),g7t=KZ(),eFe=BF.axesNames;tFe.exports=function(t,r,n){v7t(t,r,n,{type:"geo",attributes:g7t,handleDefaults:m7t,fullData:n,partition:"y"})};function m7t(e,t,r,n){var i=p7t(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=BF.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=!!BF.lonaxisSpan[u];if(e.visible===!1){var _=qF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),p,k=0;k0&&O<0&&(O+=360);var U=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[U,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?U:G,N=(A[0]+A[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 re=r("fitbounds");re&&(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 JZ=ye((zmr,aFe)=>{"use strict";var y7t=Id().getSubplotCalcData,_7t=Dr().counterRegex,x7t=KDe(),Qm="geo",iFe=_7t(Qm),nFe={};nFe[Qm]={valType:"subplotid",dflt:Qm,editType:"calc"};function b7t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Qm],i=0;i{"use strict";oFe.exports={attributes:ew(),supplyDefaults:URe(),colorbar:$d(),formatLabels:HRe(),calc:_F(),calcGeoJSON:BZ().calcGeoJSON,plot:BZ().plot,style:FZ(),styleOnSelect:sp().styleOnSelect,hoverPoints:CDe(),eventData:PDe(),selectPoints:DDe(),moduleType:"trace",name:"scattergeo",basePlotModule:JZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var uFe=ye((qmr,lFe)=>{"use strict";lFe.exports=sFe()});var a5=ye((Bmr,hFe)=>{"use strict";var{hovertemplateAttrs:A7t,templatefallbackAttrs:S7t}=Ll(),vx=ew(),M7t=Tu(),cFe=Gl(),E7t=Ih().defaultLine,dx=Ao().extendFlat,fFe=vx.marker.line;hFe.exports=dx({locations:{valType:"data_array",editType:"calc"},locationmode:vx.locationmode,z:{valType:"data_array",editType:"calc"},geojson:dx({},vx.geojson,{}),featureidkey:vx.featureidkey,text:dx({},vx.text,{}),hovertext:dx({},vx.hovertext,{}),marker:{line:{color:dx({},fFe.color,{dflt:E7t}),width:dx({},fFe.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:dx({},cFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:A7t(),hovertemplatefallback:S7t(),showlegend:dx({},cFe.showlegend,{dflt:!1})},M7t("",{cLetter:"z",editTypeOverride:"calc"}))});var vFe=ye((Nmr,dFe)=>{"use strict";var pk=Dr(),k7t=td(),C7t=a5(),L7t=["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(" ");dFe.exports=function(t,r,n,i){function a(h,d){return pk.coerce(t,r,C7t,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&pk.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!==""||pk.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&pk.warn(L7t),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"),k7t(t,r,i,a,{prefix:"",cLetter:"z"}),pk.coerceSelectionMarkerOpacity(r,a)}});var NF=ye((Umr,mFe)=>{"use strict";var pFe=Eo(),P7t=fs().BADNUM,I7t=gv(),R7t=Rm(),D7t=O0();function gFe(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 gFe(c)||pFe(c)}:a=gFe;for(var o=0;o{"use strict";var F7t=Oa(),z7t=ka(),$Z=So(),O7t=tc();function q7t(e,t){t&&yFe(e,t)}function yFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=O7t.makeColorScaleFuncFromTrace(r);i.each(function(l){F7t.select(this).attr("fill",s(l.z)).call(z7t.stroke,l.mlc||o.color).call($Z.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),$Z.selectedPointStyle(i,r)}function B7t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?$Z.selectedPointStyle(r.selectAll(".choroplethlocation"),n):yFe(e,t)}_Fe.exports={style:q7t,styleOnSelect:B7t}});var QZ=ye((Gmr,wFe)=>{"use strict";var N7t=Oa(),xFe=Dr(),o5=hx(),U7t=bF().getTopojsonFeatures,bFe=Mg().findExtremes,V7t=UF().style;function G7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");xFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=N7t.select(this),o=a.selectAll("path.choroplethlocation").data(xFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),V7t(e,i)})}function H7t(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"?o5.extractTraceFeature(e):U7t(r,i.topojson),l=[],u=[],c=0;c{"use strict";var j7t=ho(),W7t=a5(),X7t=Dr().fillText;TFe.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 GF=ye((jmr,AFe)=>{"use strict";AFe.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 HF=ye((Wmr,SFe)=>{"use strict";SFe.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";MFe.exports={attributes:a5(),supplyDefaults:vFe(),colorbar:D_(),calc:NF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:UF().style,styleOnSelect:UF().styleOnSelect,hoverPoints:VF(),eventData:GF(),selectPoints:HF(),moduleType:"trace",name:"choropleth",basePlotModule:JZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var CFe=ye((Zmr,kFe)=>{"use strict";kFe.exports=EFe()});var jF=ye((Ymr,PFe)=>{"use strict";var Y7t=qa(),l0=Dr(),K7t=gT();function J7t(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 _=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(_,b),Math.min(l._rl[0],l._rl[1]),Math.max(_,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(_,b),Math.min(p,k),Math.max(_,b),Math.max(p,k))}else v=a.ids;var E,T,L,x,C,M,g,P,A,z=d;if(n==="x"){var O=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(j,N)&&h<=Math.max(j,N)?0:1/0}A=Math.sqrt(M*M+g*g),T=v[C]}}}else for(C=v.length-1;C>-1;C--)E=v[C],L=u[E],x=c[E],M=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var IFe=20;RFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:IFe,SYMBOL_STROKE:IFe/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 gk=ye((Jmr,OFe)=>{"use strict";var $7t=Gl(),Q7t=ec(),e9t=Pg(),mf=pf(),DFe=df().axisHoverFormat,FFe=Tu(),t9t=t_(),eY=Ao().extendFlat,r9t=mc().overrideAll,i9t=px().DASHES,zFe=mf.line,u1=mf.marker,n9t=u1.line,gx=OFe.exports=r9t({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:DFe("x"),yhoverformat:DFe("y"),text:mf.text,hovertext:mf.hovertext,textposition:mf.textposition,textfont:Q7t({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:zFe.color,width:zFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:t9t(i9t),dflt:"solid"}},marker:eY({},FFe("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:eY({},FFe("marker.line"),{width:n9t.width})}),connectgaps:mf.connectgaps,fill:eY({},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:$7t.opacity},"calc","nested");gx.x.editType=gx.y.editType=gx.x0.editType=gx.y0.editType="calc+clearAxisTypes";gx.hovertemplate=mf.hovertemplate;gx.hovertemplatefallback=mf.hovertemplatefallback;gx.texttemplate=mf.texttemplate;gx.texttemplatefallback=mf.texttemplatefallback});var WF=ye(tY=>{"use strict";var qFe=px();tY.isOpenSymbol=function(e){return typeof e=="string"?qFe.OPEN_RE.test(e):e%200>100};tY.isDotSymbol=function(e){return typeof e=="string"?qFe.DOT_RE.test(e):e>200}});var UFe=ye((Qmr,NFe)=>{"use strict";var BFe=Dr(),a9t=qa(),o9t=WF(),s9t=gk(),l9t=Lm(),XF=Ru(),u9t=oT(),c9t=Dg(),f9t=$p(),h9t=D0(),d9t=Fg(),v9t=F0();NFe.exports=function(t,r,n,i){function a(d,v){return BFe.coerce(t,r,s9t,d,v)}var o=t.marker?o9t.isOpenSymbol(t.marker.symbol):!1,s=XF.isBubble(t),l=u9t(t,r,i,a);if(!l){r.visible=!1;return}c9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var p9t=lI();VFe.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]),p9t(t,r,n)}});var jFe=ye((tyr,HFe)=>{"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 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 y9t(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 _9t(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 mk(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)}HFe.exports={ge:function(e,t,r,n,i){return mk(e,t,r,n,i,g9t)},gt:function(e,t,r,n,i){return mk(e,t,r,n,i,m9t)},lt:function(e,t,r,n,i){return mk(e,t,r,n,i,y9t)},le:function(e,t,r,n,i){return mk(e,t,r,n,i,_9t)},eq:function(e,t,r,n,i){return mk(e,t,r,n,i,x9t)}}});var ey=ye((ryr,XFe)=>{"use strict";XFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=WFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var b9t=ey();ZFe.exports=w9t;function w9t(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=b9t(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 rw=ye((nyr,YFe)=>{"use strict";YFe.exports=T9t;function T9t(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]{KFe.exports=function(){for(var e=0;e{var $Fe=QD();QFe.exports=A9t;function A9t(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($Fe(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";eze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var ize=ye((lyr,rze)=>{"use strict";rze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var cze=ye((uyr,uze)=>{"use strict";var nze=jFe(),aze=rk(),S9t=s5(),M9t=rw(),oze=ey(),iY=JFe(),E9t=iw(),k9t=tze(),C9t=QD(),sze=ize(),L9t=1073741824;uze.exports=function(t,r){r||(r={}),t=E9t(t,"float64"),r=oze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=iY(r.maxDepth,255),i=iY(r.bounds,M9t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=lze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(C9t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>L9t){for(let N=0;N_e||g>Ce||P=z||re===oe)return;let Le=l[H];oe===void 0&&(oe=Le.length);for(let De=re;De=T&&je<=x&<>=L&<<=C&&O.push(ce)}let ge=u[H],ie=ge[re*4+0],Se=ge[re*4+1],Ee=ge[re*4+2],Ae=ge[re*4+3],Be=G(ge,re+1),Pe=N*.5,me=H+1;U(Z,j,Pe,me,ie,Se||Ee||Ae||Be),U(Z,j+Pe,Pe,me,Se,Ee||Ae||Be),U(Z+Pe,j,Pe,me,Ee,Ae||Be),U(Z+Pe,j+Pe,Pe,me,Ae,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 O}function _(p,k,E,T,L){let x=[];for(let C=0;C{"use strict";fze.exports=cze()});var nY=ye((fyr,hze)=>{hze.exports=P9t;function P9t(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(YF,"__esModule",{value:!0});var I9t=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")}}(),yk=Math.PI*2,aY=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}},R9t=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}]},dze=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)},D9t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),_=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*_;p<0&&(p=0),p/=d*b+v*_,p=Math.sqrt(p)*(s===l?-1:1);var k=p*a/o*h,E=p*-o/a*f,T=c*k-u*E+(t+n)/2,L=u*k+c*E+(r+i)/2,x=(f-k)/a,C=(h-E)/o,M=(-f-k)/a,g=(-h-E)/o,P=dze(1,0,x,C),A=dze(x,C,M,g);return l===0&&A>0&&(A-=yk),l===1&&A<0&&(A+=yk),[T,L,P,A]},F9t=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 _=Math.sin(u*yk/360),b=Math.cos(u*yk/360),p=b*(r-i)/2+_*(n-a)/2,k=-_*(r-i)/2+b*(n-a)/2;if(p===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=D9t(r,n,i,a,o,s,f,d,_,b,p,k),L=I9t(T,4),x=L[0],C=L[1],M=L[2],g=L[3],P=Math.abs(g)/(yk/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);g/=A;for(var z=0;z{"use strict";mze.exports=O9t;var z9t=pze();function O9t(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 KF(e,t,r,n){return["C",e,t,r,n,r,n]}function gze(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 oY=ye((dyr,_ze)=>{"use strict";_ze.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 wze=ye((vyr,bze)=>{"use strict";var q9t=nM(),B9t=nY(),N9t=yze(),U9t=oY(),xze=gE();bze.exports=V9t;function V9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(xze(U9t(e),"String is not an SVG path."),e=q9t(e)),xze(Array.isArray(e),"Argument should be a string or an array of path segments."),e=B9t(e),e=N9t(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 kze=ye((pyr,Eze)=>{var nw=Math.PI,Tze=Mze(120);Eze.exports=G9t;function G9t(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 _=u,b=c;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,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=Aze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=Aze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=JF(u,c,d[1],d[2]);break;case"H":d=JF(u,c,d[1],c);break;case"V":d=JF(u,c,u,d[1]);break;case"Z":d=JF(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 JF(e,t,r,n){return["C",e,t,r,n,r,n]}function Aze(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 Sze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],T=u[1],p=u[2],k=u[3];else{var c=sY(e,t,-i);e=c.x,t=c.y,c=sY(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,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*_-v*h*h-_*f*f)/(v*h*h+_*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,k=b*-n*f/r+(t+l)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((l-k)/n).toFixed(9));E=eT&&(E=E-nw*2),!o&&T>E&&(T=T-nw*2)}if(Math.abs(T-E)>Tze){var L=T,x=s,C=l;T=E+Tze*(o&&T>E?1:-1),s=p+r*Math.cos(T),l=k+n*Math.sin(T);var M=Sze(s,l,r,n,i,0,o,x,C,[T,L,p,k])}var g=Math.tan((T-E)/4),P=4/3*r*g,A=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),l-A*Math.cos(T),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var H9t=nY(),j9t=kze(),W9t={M:"moveTo",C:"bezierCurveTo"};Cze.exports=function(e,t){e.beginPath(),j9t(H9t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[W9t[n]].apply(e,i)}),e.closePath()}});var Dze=ye((myr,Rze)=>{"use strict";var X9t=rk();Rze.exports=Z9t;var _k=1e20;function Z9t(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,_;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,_=u.length;v<_;v++)l[v]=u[v*c+i]/255;else if(c!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),p=Array(a*o),k=Array(s),E=Array(s),T=Array(s+1),L=Array(s);for(v=0,_=a*o;v<_;v++){var x=l[v];b[v]=x===1?0:x===0?_k:Math.pow(Math.max(0,.5-x),2),p[v]=x===1?_k:x===0?0:Math.pow(Math.max(0,x-.5),2)}Pze(b,a,o,k,E,L,T),Pze(p,a,o,k,E,L,T);var C=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(v=0,_=a*o;v<_;v++)C[v]=X9t(1-((b[v]-p[v])/n+r),0,1);return C}function Pze(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var Y9t=wze(),K9t=nM(),J9t=Lze(),$9t=oY(),Q9t=Dze(),lY=document.createElement("canvas"),dp=lY.getContext("2d");Fze.exports=eOt;function eOt(e,t){if(!$9t(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=lY.width=t.w||t.width||200,n=lY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Y9t(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),tOt()){var u=new Path2D(e);dp.fill(u),a&&dp.stroke(u)}else{var c=K9t(e);J9t(dp,c),dp.fill(),a&&dp.stroke()}dp.setTransform(1,0,0,1,0,0);var f=Q9t(dp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var $F;function tOt(){if($F!=null)return $F;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return $F=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return $F=r&&r.data&&r.data[3]===255}});var ow=ye((_yr,Xze)=>{"use strict";var ez=Eo(),rOt=zze(),QF=ox(),iOt=qa(),c5=Dr(),bh=c5.isArrayOrTypedArray,l5=So(),Oze=hf(),qze=a1().formatColor,u5=Ru(),nOt=O3(),cY=WF(),xk=px(),aOt=X1().DESELECTDIM,Bze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},oOt=ip().appendArrayPointValue;function sOt(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(u5.hasText(t)&&(n.text=Wze(e,t),n.textSel=Uze(e,t,t.selected),n.textUnsel=Uze(e,t,t.unselected)),u5.hasMarkers(t)&&(n.marker=hY(e,t),n.markerSel=fY(e,t,t.selected),n.markerUnsel=fY(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 hY(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=cY.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,_=n.angle,b=qze(n,n.opacity,r),p=qze(n.line,n.opacity,r);if(!bh(p[0])){var k=p;for(p=Array(r),a=0;axk.TOO_MANY_POINTS||u5.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=Bze[h],_=Bze[d],b=c?c/.8+1:0,p=-_*b-_*.5;a.offset[o]=[v*b/f,p/f]}}return a}Xze.exports={style:sOt,markerStyle:hY,markerSelection:fY,linePositions:uOt,errorBarPositions:cOt,textPosition:fOt}});var dY=ye((xyr,Zze)=>{"use strict";var tz=Dr();Zze.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(){tz.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=tz.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 hOt=ZF(),f5=Dr(),Yze=hf(),dOt=Mg().findExtremes,Kze=zg(),vY=q0(),vOt=vY.calcMarkerSize,pOt=vY.calcAxisExpansion,gOt=vY.setFirstScatter,mOt=z0(),h5=ow(),yOt=dY(),Jze=fs().BADNUM,_Ot=px().TOO_MANY_POINTS;Qze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Yze.getFromId(t,r.xaxis,"x"),a=r._yA=Yze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=_Ot,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Kze(r,i,"x",h),_=Kze(r,a,"y",d),b=v.vals,p=_.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=_.starts,r._yEnds=_.ends);var k=new Array(u),E=new Array(s);for(f=0;f1&&f5.extendFlat(o.line,h5.linePositions(e,r,n)),o.errorX||o.errorY){var s=h5.errorBarPositions(e,r,n,i,a);o.errorX&&f5.extendFlat(o.errorX,s.x),o.errorY&&f5.extendFlat(o.errorY,s.y)}return o.text&&(f5.extendFlat(o.text,{positions:n},h5.textPosition(e,r,o.text,o.marker)),f5.extendFlat(o.textSel,{positions:n},h5.textPosition(e,r,o.text,o.markerSel)),f5.extendFlat(o.textUnsel,{positions:n},h5.textPosition(e,r,o.text,o.markerUnsel))),o}});var pY=ye((wyr,r7e)=>{"use strict";var t7e=Dr(),bOt=ka(),wOt=X1().DESELECTDIM;function TOt(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=t7e.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,_=c.color,b=l.color,p=t7e.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var i7e=Ru(),AOt=pY().styleTextSelection;n7e.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=i7e.hasText(s),_=i7e.hasMarkers(s),b=!_&&!v;if(s.visible!==!0||b)return o;var p=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var SOt=jF();a7e.exports={moduleType:"trace",name:"scattergl",basePlotModule:mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gk(),supplyDefaults:UFe(),crossTraceDefaults:cU(),colorbar:$d(),formatLabels:GFe(),calc:e7e(),hoverPoints:SOt.hoverPoints,selectPoints:gY(),meta:{}}});var l7e=ye((Syr,iz)=>{"use strict";var rz=rk();iz.exports=s7e;iz.exports.to=s7e;iz.exports.from=MOt;function s7e(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=rz(r,0,255)&255,n=rz(n,0,255)&255,i=rz(i,0,255)&255,a=rz(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function MOt(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((Myr,c7e)=>{"use strict";var u7e=Object.getOwnPropertySymbols,EOt=Object.prototype.hasOwnProperty,kOt=Object.prototype.propertyIsEnumerable;function COt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function LOt(){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}}c7e.exports=LOt()?Object.assign:function(e,t){for(var r,n=COt(e),i,a=1;a{f7e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";d7e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";v7e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var nz=ye((Lyr,d5)=>{"use strict";d5.exports=bk;d5.exports.float32=d5.exports.float=bk;d5.exports.fract32=d5.exports.fract=POt;var g7e=new Float32Array(1);function POt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=bk(e));for(var r=0,n=t.length;r{"use strict";function IOt(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 ROt(e,t){return zOt(e)||IOt(e,t)||y7e(e,t)||BOt()}function DOt(e){return FOt(e)||OOt(e)||y7e(e)||qOt()}function FOt(e){if(Array.isArray(e))return yY(e)}function zOt(e){if(Array.isArray(e))return e}function OOt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y7e(e,t){if(e){if(typeof e=="string")return yY(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 yY(e,t)}}function yY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&l(C[U[Z-2]],C[U[Z-1]],M)>0;)L.push([U[Z-1],U[Z-2],g]),Z-=1;U.length=Z,U.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(C[G[Z-2]],C[G[Z-1]],M)<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]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var U=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],Z=[],P=0,j=g.length;P0;){k=M.pop();for(var g=k.adjacent,P=0;P<=T;++P){var A=g[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var z=A.vertices,O=0;O<=T;++O){var U=z[O];U<0?x[O]=E:x[O]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&M.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,A=g.adjacent,z=0;z<=L;++z)C[z]=x[P[z]];g.lastVisited=T;for(var z=0;z<=L;++z){var O=A[z];if(!(O.lastVisited>=T)){var U=C[z];C[z]=k;var G=this.orient();if(C[z]=U,G<0){g=O;continue e}else O.boundary?O.lastVisited=-T:O.lastVisited=T}}return}return g},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,M.push(E);for(var A=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,U=z.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var Z=O[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,M.push(Z),P.push(Z),Z.lastVisited=T;continue}else Z.lastVisited=-T}var oe=Z.adjacent,_e=z.slice(),Ce=O.slice(),Le=new u(_e,Ce,!0);g.push(Le);var ge=oe.indexOf(E);if(!(ge<0)){oe[ge]=Le,Ce[U]=Z,_e[G]=-1,Ce[G]=E,O[G]=Le,Le.flip();for(var H=0;H<=L;++H){var ie=_e[H];if(!(ie<0||ie===T)){for(var Se=new Array(L-1),Ee=0,Ae=0;Ae<=L;++Ae){var Be=_e[Ae];Be<0||Ae===H||(Se[Ee++]=Be)}A.push(new c(Se,Le,H))}}}}}}}A.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:A=z&1;if(A===(k&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(k,E){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 M=new Array(L+1),g=0;g<=L;++g)M[g]=g;C<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),A=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),U=0;U<=L;++U)U===g&&(O[U]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);A[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=A[g].vertices,j=A[g].adjacent,U=0;U<=L;++U){var N=O[U];if(N<0){j[U]=P;continue}for(var H=0;H<=L;++H)A[H].vertices.indexOf(N)<0&&(j[U]=A[H])}for(var re=new _(L,x,z),oe=!!E,g=L+1;g=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(C){this.pickId=C};function k(C){for(var M=v({colormap:C,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var A=M[P],z=0;z<3;++z)g[4*P+z]=A[z];g[4*P+3]=A[3]*255}return d(g,[256,256,4],[4,0,1])}function E(C){for(var M=C.length,g=new Array(M),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(C){C=C||{};for(var M=this.gl,g=C.model||_,P=C.view||_,A=C.projection||_,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var U={model:g,view:P,projection:A,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=U,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(C){if(!C||C.id!==this.pickId)return null;var M=C.value[0]+256*C.value[1]+65536*C.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?A.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[g[1]],A.velocity=this.vectors[g[1]].slice(0,3),A.divergence=this.vectors[g[1]][3],A.index=M),A},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,M){var g=s(C,M.meshShader.vertex,M.meshShader.fragment,null,M.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,M){var g=s(C,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(C,M,g){var P=g.shaders;arguments.length===1&&(M=C,C=M.gl);var A=T(C,P),z=L(C,P),O=c(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=C.LINEAR_MIPMAP_LINEAR,O.magFilter=C.LINEAR;var U=l(C),G=l(C),Z=l(C),j=l(C),N=l(C),H=u(C,[{buffer:U,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,O,A,z,U,G,N,Z,j,H,g.traceType||"cone");return re.update(M),re}i.exports=x},9127:function(i,a,o){"use strict";i.exports=u;var s=o(6204),l=o(5771);function u(c){return l(s(c))}},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}},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,E,T){this.gl=p,this.shader=T,this.buffer=k,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=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var k=this.gl,E=this.shader.uniforms;this.shader.bind();var T=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=T[12],C=T[13],M=T[14],g=T[15],P=p._ortho||!1,A=P?2:1,z=A*this.pixelRatio*(L[3]*x+L[7]*C+L[11]*M+L[15]*g)/k.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)k.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&k.drawArrays(k.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,k){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],k[E]),p[1][E]=Math.max(p[1][E],k[E])}var v=function(){for(var p=new Array(3),k=0;k<3;++k){for(var E=[],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,E.push(C)}p[k]=E}return p}();function _(p,k,E,T){for(var L=v[T],x=0;x0){var U=P.slice();U[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,U[0],U[1],U[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,U),C+=2+_(L,U,O,M)}}}this.lineCount[M]=C-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var k=p.gl,E=s(k),T=l(k,[{buffer:E,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:E,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,E,T,L);return x.update(p),x}},9215:function(i,a,o){"use strict";i.exports=d;var s=o(4769),l=o(2478);function u(v,_,b){return Math.min(_,Math.max(v,b))}function c(v,_,b){this.dimension=v.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var p=0;p=b-1)for(var C=E.length-1,g=v-_[b-1],M=0;M=b-1)for(var x=E.length-1,C=v-_[b-1],M=0;M=0;--b)if(v[--_])return!1;return!0},f.jump=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1];this._time.push(_,v);for(var C=0;C<2;++C)for(var M=0;M0;--M)p.push(u(L[M-1],x[M-1],arguments[M])),k.push(0)}},f.push=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=v-_,L=this.bounds,x=L[0],C=L[1],M=T>1e-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[E++])*M)}}},f.set=function(v){var _=this.dimension;if(!(v0;--L)b.push(u(E[L-1],T[L-1],arguments[L])),p.push(0)}},f.move=function(v){var _=this.lastT(),b=this.dimension;if(!(v<=_||arguments.length!==b+1)){var p=this._state,k=this._velocity,E=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1],C=v-_,M=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[E++]+P)),k.push(P*M)}}},f.idle=function(v){var _=this.lastT();if(!(v<_)){var b=this.dimension,p=this._state,k=this._velocity,E=p.length-b,T=this.bounds,L=T[0],x=T[1],C=v-_;this._time.push(v);for(var M=b-1;M>=0;--M)p.push(u(L[M],x[M],p[E]+C*k[E])),k.push(0),E+=1}};function h(v){for(var _=new Array(v),b=0;b1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},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}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},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}},9346:function(i){"use strict";var a=new Float64Array(4),o=new Float64Array(4),s=new Float64Array(4);function l(u,c,f,h,d){a.length=_?(g=1,A=_+2*k+T):(g=-k/_,A=k*g+T)):(g=0,E>=0?(P=0,A=T):-E>=p?(P=1,A=p+2*E+T):(P=-E/p,A=E*P+T));else if(P<0)P=0,k>=0?(g=0,A=T):-k>=_?(g=1,A=_+2*k+T):(g=-k/_,A=k*g+T);else{var z=1/M;g*=z,P*=z,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T}else{var O,U,G,Z;g<0?(O=b+k,U=p+E,U>O?(G=U-O,Z=_-2*b+p,G>=Z?(g=1,P=0,A=_+2*k+T):(g=G/Z,P=1-g,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)):(g=0,U<=0?(P=1,A=p+2*E+T):E>=0?(P=0,A=T):(P=-E/p,A=E*P+T))):P<0?(O=b+E,U=_+k,U>O?(G=U-O,Z=_-2*b+p,G>=Z?(P=1,g=0,A=p+2*E+T):(P=G/Z,g=1-P,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)):(P=0,U<=0?(g=1,A=_+2*k+T):k>=0?(g=0,A=T):(g=-k/_,A=k*g+T))):(G=p+E-b-k,G<=0?(g=0,P=1,A=p+2*E+T):(Z=_-2*b+p,G>=Z?(g=1,P=0,A=_+2*k+T):(g=G/Z,P=1-g,A=g*(_*g+b*P+2*k)+P*(b*g+p*P+2*E)+T)))}for(var j=1-g-P,v=0;vE)for(p=E;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;U[G]=re}var oe=new Array(E.length);function _e(){x.program=c.program(C,x._vref,x._fref,O,U);for(var Ce=0;CePe&&De>0){var ce=(me[De][0]-Pe)/(me[De][0]-me[De-1][0]);return me[De][1]*(1-ce)+ce*me[De-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,me){var De,ce,je,lt=me.axes&&me.axes.lastCubeProps.axis||H,pt=me.showSurface,Vt=me.showContour;for(De=0;De<3;++De)for(pt=pt||me.surfaceProject[De],ce=0;ce<3;++ce)Vt=Vt||me.contourProject[De][ce];for(De=0;De<3;++De){var ot=re.projections[De];for(ce=0;ce<16;++ce)ot[ce]=0;for(ce=0;ce<4;++ce)ot[5*ce]=1;ot[5*De]=0,ot[12+De]=me.axesBounds[+(lt[De]>0)][De],p(ot,Pe.model,ot);var ut=re.clipBounds[De];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)ut[je][ce]=Pe.clipBounds[je][ce];ut[0][De]=-1e8,ut[1][De]=1e8}return re.showSurface=pt,re.showContour=Vt,re}var _e={model:A,view:A,projection:A,inverseModel:A.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=A.slice(),Le=[1,0,0,0,1,0,0,0,1];function ge(Pe,me){Pe=Pe||{};var De=this.gl;De.disable(De.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||A,ce.view=Pe.view||A,ce.projection=Pe.projection||A,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 je=0;je<2;++je)for(var lt=ce.clipBounds[je],pt=0;pt<3;++pt)lt[pt]=Math.min(Math.max(this.clipBounds[je][pt],-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=Le,ce.vertexColor=this.vertexColor;var Vt=Ce;for(p(Vt,ce.view,ce.model),p(Vt,ce.projection,Vt),k(Vt,Vt),je=0;je<3;++je)ce.eyePosition[je]=Vt[12+je]/Vt[15];var ot=Vt[15];for(je=0;je<3;++je)ot+=this.lightPosition[je]*Vt[4*je+3];for(je=0;je<3;++je){var ut=Vt[12+je];for(pt=0;pt<3;++pt)ut+=Vt[4*pt+je]*this.lightPosition[pt];ce.lightPosition[je]=ut/ot}var Wt=oe(ce,this);if(Wt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(De.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=Wt.projections[je],this._shader.uniforms.clipBounds=Wt.clipBounds[je],this._vao.draw(De.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Wt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),je=0;je<3;++je)for(Nt.uniforms.permutation=O[je],De.lineWidth(this.contourWidth[je]*this.pixelRatio),pt=0;pt>4)/16)/255,je=Math.floor(ce),lt=ce-je,pt=me[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Vt=Math.floor(pt),ot=pt-Vt;je+=1,Vt+=1;var ut=De.position;ut[0]=ut[1]=ut[2]=0;for(var Wt=0;Wt<2;++Wt)for(var Nt=Wt?lt:1-lt,$t=0;$t<2;++$t)for(var sr=$t?ot:1-ot,Tr=je+Wt,fr=Vt+$t,$e=Nt*sr,St=0;St<3;++St)ut[St]+=this._field[St].get(Tr,fr)*$e;for(var Qt=this._pickResult.level,Gt=0;Gt<3;++Gt)if(Qt[Gt]=E.le(this.contourLevels[Gt],ut[Gt]),Qt[Gt]<0)this.contourLevels[Gt].length>0&&(Qt[Gt]=0);else if(Qt[Gt]Math.abs(It-ut[Gt])&&(Qt[Gt]+=1)}for(De.index[0]=lt<.5?je:je+1,De.index[1]=ot<.5?Vt:Vt+1,De.uv[0]=ce/me[0],De.uv[1]=pt/me[1],St=0;St<3;++St)De.dataCoordinate[St]=this._field[St].get(De.index[0],De.index[1]);return De},j.padField=function(Pe,me){var De=me.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(De[0],De[1]),me),d.assign(Pe.lo(1).hi(De[0],1),me.hi(De[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(De[0],1),me.lo(0,De[1]-1).hi(De[0],1)),d.assign(Pe.lo(0,1).hi(1,De[1]),me.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,De[1]),me.lo(De[0]-1)),Pe.set(0,0,me.get(0,0)),Pe.set(0,ce[1]-1,me.get(0,De[1]-1)),Pe.set(ce[0]-1,0,me.get(De[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,me.get(De[0]-1,De[1]-1))};function Se(Pe,me){return Array.isArray(Pe)?[me(Pe[0]),me(Pe[1]),me(Pe[2])]:[me(Pe),me(Pe),me(Pe)]}function Ee(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Ee(Pe[0]),Ee(Pe[1]),Ee(Pe[2])];var me=Ee(Pe);return[me.slice(),me.slice(),me.slice()]}}j.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var me=Pe.field||Pe.coords&&Pe.coords[2]||null,De=!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 Pe||"coords"in Pe){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]=_(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 je=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]=_(this._field[lt].data,[je[0]+2,je[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(lt=0;lt<2;++lt){var Vt=pt[lt];for($t=0;$t<2;++$t)if(Vt.shape[$t]!==je[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[lt],Vt)}}else if(Pe.ticks){var ot=Pe.ticks;if(!Array.isArray(ot)||ot.length!==2)throw new Error("gl-surface: invalid ticks");for(lt=0;lt<2;++lt){var ut=ot[lt];if((Array.isArray(ut)||ut.length)&&(ut=_(ut)),ut.shape[0]!==je[lt])throw new Error("gl-surface: invalid tick length");var Wt=_(ut.data,je);Wt.stride[lt]=ut.stride[0],Wt.stride[lt^1]=0,this.padField(this._field[lt],Wt)}}else{for(lt=0;lt<2;++lt){var Nt=[0,0];Nt[lt]=1,this._field[lt]=_(this._field[lt].data,[je[0]+2,je[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var tn=0;tn<5;++tn)pi.pop();We-=1}continue e}}}In.push(We)}this._contourOffsets[$r]=ji,this._contourCounts[$r]=In}var fn=f.mallocFloat(pi.length);for(lt=0;lt=0&&(M=x|0,C+=P*M,g-=M),new E(this.data,g,P,C)},T.step=function(x){var C=this.shape[0],M=this.stride[0],g=this.offset,P=0,A=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=M*(C-1),C=A(-C/P)):C=A(C/P),M*=P),new E(this.data,C,M,g)},T.transpose=function(x){x=x===void 0?0:x|0;var C=this.shape,M=this.stride;return new E(this.data,C[x],M[x],this.offset)},T.pick=function(x){var C=[],M=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(C.push(this.shape[0]),M.push(this.stride[0]));var P=p[C.length+1];return P(this.data,C,M,g)},function(x,C,M,g){return new E(x,C[0],M[0],g)}},2:function(b,p,k){function E(L,x,C,M,g,P){this.data=L,this.shape=[x,C],this.stride=[M,g],this.offset=P|0}var T=E.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,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]=M},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 E(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 M=this.offset,g=0,P=this.shape[0],A=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,M+=z*g,P-=g),typeof C=="number"&&C>=0&&(g=C|0,M+=O*g,A-=g),new E(this.data,P,A,z,O,M)},T.step=function(x,C){var M=this.shape[0],g=this.shape[1],P=this.stride[0],A=this.stride[1],z=this.offset,O=0,U=Math.ceil;return typeof x=="number"&&(O=x|0,O<0?(z+=P*(M-1),M=U(-M/O)):M=U(M/O),P*=O),typeof C=="number"&&(O=C|0,O<0?(z+=A*(g-1),g=U(-g/O)):g=U(g/O),A*=O),new E(this.data,M,g,P,A,z)},T.transpose=function(x,C){x=x===void 0?0:x|0,C=C===void 0?1:C|0;var M=this.shape,g=this.stride;return new E(this.data,M[x],M[C],g[x],g[C],this.offset)},T.pick=function(x,C){var M=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(M.push(this.shape[1]),g.push(this.stride[1]));var A=p[M.length+1];return A(this.data,M,g,P)},function(x,C,M,g){return new E(x,C[0],C[1],M[0],M[1],g)}},3:function(b,p,k){function E(L,x,C,M,g,P,A,z){this.data=L,this.shape=[x,C,M],this.stride=[g,P,A],this.offset=z|0}var T=E.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]),M=Math.abs(this.stride[2]);return x>C?C>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>C?[0,1,2]:[0,2,1]}}),T.set=function(x,C,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]=g},T.get=function(x,C,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M]},T.index=function(x,C,M){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M},T.hi=function(x,C,M){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,C,M){var g=this.offset,P=0,A=this.shape[0],z=this.shape[1],O=this.shape[2],U=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,A,z,O,U,G,Z,g)},T.step=function(x,C,M){var g=this.shape[0],P=this.shape[1],A=this.shape[2],z=this.stride[0],O=this.stride[1],U=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+=O*(P-1),P=j(-P/Z)):P=j(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=U*(A-1),A=j(-A/Z)):A=j(A/Z),U*=Z),new E(this.data,g,P,A,z,O,U,G)},T.transpose=function(x,C,M){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[x],g[C],g[M],P[x],P[C],P[M],this.offset)},T.pick=function(x,C,M){var g=[],P=[],A=this.offset;typeof x=="number"&&x>=0?A=A+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?A=A+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,A)},function(x,C,M,g){return new E(x,C[0],C[1],C[2],M[0],M[1],M[2],g)}},4:function(b,p,k){function E(L,x,C,M,g,P,A,z,O,U){this.data=L,this.shape=[x,C,M,g],this.stride=[P,A,z,O],this.offset=U|0}var T=E.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,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g]=P},T.get=function(x,C,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g]},T.index=function(x,C,M,g){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*M+this.stride[3]*g},T.hi=function(x,C,M,g){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof M!="number"||M<0?this.shape[2]:M|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,M,g){var P=this.offset,A=0,z=this.shape[0],O=this.shape[1],U=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&&(A=x|0,P+=Z*A,z-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=j*A,O-=A),typeof M=="number"&&M>=0&&(A=M|0,P+=N*A,U-=A),typeof g=="number"&&g>=0&&(A=g|0,P+=H*A,G-=A),new E(this.data,z,O,U,G,Z,j,N,H,P)},T.step=function(x,C,M,g){var P=this.shape[0],A=this.shape[1],z=this.shape[2],O=this.shape[3],U=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+=U*(P-1),P=re(-P/H)):P=re(P/H),U*=H),typeof C=="number"&&(H=C|0,H<0?(N+=G*(A-1),A=re(-A/H)):A=re(A/H),G*=H),typeof M=="number"&&(H=M|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*(O-1),O=re(-O/H)):O=re(O/H),j*=H),new E(this.data,P,A,z,O,U,G,Z,j,N)},T.transpose=function(x,C,M,g){x=x===void 0?0:x|0,C=C===void 0?1:C|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,A=this.stride;return new E(this.data,P[x],P[C],P[M],P[g],A[x],A[C],A[M],A[g],this.offset)},T.pick=function(x,C,M,g){var P=[],A=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?z=z+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),A.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,A,z)},function(x,C,M,g){return new E(x,C[0],C[1],C[2],C[3],M[0],M[1],M[2],M[3],g)}},5:function(p,k,E){function T(x,C,M,g,P,A,z,O,U,G,Z,j){this.data=x,this.shape=[C,M,g,P,A],this.stride=[z,O,U,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:E}),L.set=function(C,M,g,P,A,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A]=z},L.get=function(C,M,g,P,A){return p==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,M,g,P,A){return this.offset+this.stride[0]*C+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,M,g,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,M,g,P,A){var z=this.offset,O=0,U=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],oe=this.stride[2],_e=this.stride[3],Ce=this.stride[4];return typeof C=="number"&&C>=0&&(O=C|0,z+=H*O,U-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,j-=O),typeof A=="number"&&A>=0&&(O=A|0,z+=Ce*O,N-=O),new T(this.data,U,G,Z,j,N,H,re,oe,_e,Ce,z)},L.step=function(C,M,g,P,A){var z=this.shape[0],O=this.shape[1],U=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],oe=this.stride[4],_e=this.offset,Ce=0,Le=Math.ceil;return typeof C=="number"&&(Ce=C|0,Ce<0?(_e+=j*(z-1),z=Le(-z/Ce)):z=Le(z/Ce),j*=Ce),typeof M=="number"&&(Ce=M|0,Ce<0?(_e+=N*(O-1),O=Le(-O/Ce)):O=Le(O/Ce),N*=Ce),typeof g=="number"&&(Ce=g|0,Ce<0?(_e+=H*(U-1),U=Le(-U/Ce)):U=Le(U/Ce),H*=Ce),typeof P=="number"&&(Ce=P|0,Ce<0?(_e+=re*(G-1),G=Le(-G/Ce)):G=Le(G/Ce),re*=Ce),typeof A=="number"&&(Ce=A|0,Ce<0?(_e+=oe*(Z-1),Z=Le(-Z/Ce)):Z=Le(Z/Ce),oe*=Ce),new T(this.data,z,O,U,G,Z,j,N,H,re,oe,_e)},L.transpose=function(C,M,g,P,A){C=C===void 0?0:C|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var z=this.shape,O=this.stride;return new T(this.data,z[C],z[M],z[g],z[P],z[A],O[C],O[M],O[g],O[P],O[A],this.offset)},L.pick=function(C,M,g,P,A){var z=[],O=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?U=U+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?U=U+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=k[z.length+1];return G(this.data,z,O,U)},function(C,M,g,P){return new T(C,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var k=p===-1?"T":String(p),E=f[k];return p===-1?E(b):p===0?E(b,v[b][0]):E(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 _(b,p,k,E){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(E===void 0){E=0;for(var L=0;L1e-6?(k[0]=T/M,k[1]=L/M,k[2]=x/M,k[3]=C/M):(k[0]=k[1]=k[2]=0,k[3]=1)}function _(k,E,T){this.radius=s([T]),this.center=s(E),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=_.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 E=this.computedRotation;v(E,E);var T=this.computedMatrix;u(T,E);var L=this.computedCenter,x=this.computedEye,C=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*T[2],x[1]=L[1]+M*T[6],x[2]=L[2]+M*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,A=0;A<3;++A)P+=T[g+4*A]*x[A];T[12+g]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}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,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var x=this.computedMatrix,C=x[1],M=x[5],g=x[9],P=h(C,M,g);C/=P,M/=P,g/=P;var A=x[0],z=x[4],O=x[8],U=A*C+z*M+O*g;A-=C*U,z-=M*U,O-=g*U;var G=h(A,z,O);A/=G,z/=G,O/=G;var Z=x[2],j=x[6],N=x[10],H=Z*C+j*M+N*g,re=Z*A+j*z+N*O;Z-=H*C+re*A,j-=H*M+re*z,N-=H*g+re*O;var oe=h(Z,j,N);Z/=oe,j/=oe,N/=oe;var _e=A*E+C*T,Ce=z*E+M*T,Le=O*E+g*T;this.center.move(k,_e,Ce,Le);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,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var x=this.computedMatrix,C=x[0],M=x[4],g=x[8],P=x[1],A=x[5],z=x[9],O=x[2],U=x[6],G=x[10],Z=E*C+T*P,j=E*M+T*A,N=E*g+T*z,H=-(U*N-G*j),re=-(G*Z-O*N),oe=-(O*j-U*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(oe,2))),Ce=d(H,re,oe,_e);Ce>1e-6?(H/=Ce,re/=Ce,oe/=Ce,_e/=Ce):(H=re=oe=0,_e=1);var Le=this.computedRotation,ge=Le[0],ie=Le[1],Se=Le[2],Ee=Le[3],Ae=ge*_e+Ee*H+ie*oe-Se*re,Be=ie*_e+Ee*re+Se*H-ge*oe,Pe=Se*_e+Ee*oe+ge*re-ie*H,me=Ee*_e-ge*H-ie*re-Se*oe;if(L){H=O,re=U,oe=G;var De=Math.sin(L)/h(H,re,oe);H*=De,re*=De,oe*=De,_e=Math.cos(E),Ae=Ae*_e+me*H+Be*oe-Pe*re,Be=Be*_e+me*re+Pe*H-Ae*oe,Pe=Pe*_e+me*oe+Ae*re-Be*H,me=me*_e-Ae*H-Be*re-Pe*oe}var ce=d(Ae,Be,Pe,me);ce>1e-6?(Ae/=ce,Be/=ce,Pe/=ce,me/=ce):(Ae=Be=Pe=0,me=1),this.rotation.set(k,Ae,Be,Pe,me)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,E,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 M=0,g=0;g<3;++g)M+=Math.pow(T[g]-E[g],2);this.radius.set(k,.5*Math.log(Math.max(M,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;f(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;c(L,E);var x=L[15];if(Math.abs(x)>1e-6){var C=L[12]/x,M=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,M-L[6]*P,g-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[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(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=k.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function p(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),v(T,T);var x=new _(T,E,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}},9994:function(i,a,o){"use strict";var s=o(9618),l=o(8277);i.exports=function(c,f){for(var h=[],d=c,v=1;Array.isArray(d);)h.push(d.length),v*=d.length,d=d[0];return h.length===0?s():(f||(f=s(new Float64Array(v),h)),l(f,c),f)}}},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);APe.exports=n})()});var TX=ye((egr,SPe)=>{"use strict";SPe.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 CPe=ye((tgr,kPe)=>{"use strict";var MPe=TX();kPe.exports=fIt;var EPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function fIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),MPe[e])r=MPe[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(EPe[h]!==void 0)return EPe[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 PPe=ye((rgr,LPe)=>{"use strict";var hIt=CPe();LPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=hIt(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=dIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function dIt(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((igr,IPe)=>{IPe.exports=vIt;function vIt(e,t,r){return tr?r:e:et?t:e}});var QD=ye((ngr,RPe)=>{RPe.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 ox=ye((agr,DPe)=>{"use strict";var pIt=PPe(),eF=ik(),gIt=QD();DPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=gIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=pIt(t),t[0]/=255,t[1]/=255,t[2]/=255),mIt(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]=eF(Math.floor(t[0]*255),0,255),i[1]=eF(Math.floor(t[1]*255),0,255),i[2]=eF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:eF(Math.floor(t[3]*255),0,255)),i)};function mIt(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((ogr,FPe)=>{"use strict";var yIt=ox();function _It(e){return e?yIt(e):[0,0,0,1]}FPe.exports=_It});var a1=ye((sgr,VPe)=>{"use strict";var NPe=Eo(),xIt=fd(),tF=ox(),rF=tc(),bIt=Ih().defaultLine,zPe=vv().isArrayOrTypedArray,AX=tF(bIt),UPe=1;function OPe(e,t){var r=e;return r[3]*=t,r}function qPe(e){if(NPe(e))return AX;var t=tF(e);return t.length?t:AX}function BPe(e){return NPe(e)?e:UPe}function wIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=zPe(n),a=zPe(t),o=rF.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=rF.makeColorScaleFuncFromTrace(e):l=qPe,i?u=function(v,_){return v[_]===void 0?AX:tF(l(v[_]))}:u=qPe,a?c=function(v,_){return v[_]===void 0?UPe:BPe(v[_])}:c=BPe,i||a)for(var d=0;d{"use strict";GPe.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 iF=ye((ugr,HPe)=>{"use strict";HPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var WPe=ye((cgr,jPe)=>{"use strict";var AIt=qa();function MX(e,t,r,n){if(!t||!t.visible)return null;for(var i=AIt.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 SIt(e){for(var t=0;t{"use strict";var EIt=zd().gl_line3d,XPe=zd().gl_scatter3d,kIt=zd().gl_error3d,CIt=zd().gl_mesh3d,LIt=zd().delaunay_triangulate,o1=Dr(),$Pe=n1(),nF=a1().formatColor,PIt=O3(),EX=SX(),IIt=iF(),RIt=ho(),DIt=ip().appendArrayPointValue,FIt=WPe();function QPe(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 CX=QPe.prototype;CX.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 zIt(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 YPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function qIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=zIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=CIt(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)};CX.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 VIt(e,t){var r=new QPe(e,t.uid);return r.update(t),r}eIe.exports=VIt});var DX=ye((hgr,aIe)=>{"use strict";var s1=pf(),GIt=ec(),RX=Tu(),LX=df().axisHoverFormat,{hovertemplateAttrs:HIt,texttemplateAttrs:jIt,templatefallbackAttrs:rIe}=Ll(),iIe=Gl(),WIt=SX(),XIt=iF(),$g=Ao().extendFlat,ZIt=mc().overrideAll,nIe=t_(),YIt=s1.line,J2=s1.marker,KIt=J2.line,JIt=$g({width:YIt.width,dash:{valType:"enumerated",values:nIe(WIt),dflt:"solid"}},RX("line"));function PX(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 IX=aIe.exports=ZIt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$g({},s1.text,{}),texttemplate:jIt(),texttemplatefallback:rIe({editType:"calc"}),hovertext:$g({},s1.hovertext,{}),hovertemplate:HIt(),hovertemplatefallback:rIe(),xhoverformat:LX("x"),yhoverformat:LX("y"),zhoverformat:LX("z"),mode:$g({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:PX("x"),y:PX("y"),z:PX("z")},connectgaps:s1.connectgaps,line:JIt,marker:$g({symbol:{valType:"enumerated",values:nIe(XIt),dflt:"circle",arrayOk:!0},size:$g({},J2.size,{dflt:8}),sizeref:J2.sizeref,sizemin:J2.sizemin,sizemode:J2.sizemode,opacity:$g({},J2.opacity,{arrayOk:!1}),colorbar:J2.colorbar,line:$g({width:$g({},KIt.width,{arrayOk:!1})},RX("marker.line"))},RX("marker")),textposition:$g({},s1.textposition,{dflt:"top center"}),textfont:GIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:iIe.opacity,hoverinfo:$g({},iIe.hoverinfo)},"calc","nested");IX.x.editType=IX.y.editType=IX.z.editType="calc+clearAxisTypes"});var lIe=ye((dgr,sIe)=>{"use strict";var oIe=qa(),$It=Dr(),FX=Ru(),QIt=$p(),e8t=D0(),t8t=F0(),r8t=DX();sIe.exports=function(t,r,n,i){function a(d,v){return $It.coerce(t,r,r8t,d,v)}var o=i8t(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"),FX.hasMarkers(r)&&QIt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),FX.hasLines(r)&&(a("connectgaps"),e8t(t,r,n,i,a)),FX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),t8t(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=oIe.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 i8t(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=oIe.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 cIe=ye((vgr,uIe)=>{"use strict";var n8t=Rm(),a8t=z0();uIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return n8t(n,r),a8t(t,r),n}});var hIe=ye((pgr,fIe)=>{fIe.exports=o8t;function o8t(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 s8t=hIe();dIe.exports=function(t){return s8t("webgl",t)}});var zX=ye((mgr,gIe)=>{"use strict";var pIe=ka(),l8t=function(){};gIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=l8t);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=pIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=pIe.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 _Ie=ye((ygr,yIe)=>{"use strict";var $2=n1(),u8t=Dr(),c8t=["xaxis","yaxis","zaxis"];function mIe(){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 f8t=mIe.prototype;f8t.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[c8t[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?u8t.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=$2(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]=$2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=$2(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]=$2(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]=$2(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]=$2(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]=$2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function h8t(e,t){var r=new mIe;return r.merge(e,t),r}yIe.exports=h8t});var wIe=ye((_gr,bIe)=>{"use strict";var d8t=n1(),v8t=["xaxis","yaxis","zaxis"];function xIe(){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 p8t=xIe.prototype;p8t.merge=function(e){for(var t=0;t<3;++t){var r=e[v8t[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=d8t(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function g8t(e){var t=new xIe;return t.merge(e),t}bIe.exports=g8t});var SIe=ye((xgr,AIe)=>{"use strict";AIe.exports=b8t;var TIe=ho(),m8t=Dr(),y8t=["xaxis","yaxis","zaxis"],_8t=[0,0,0];function x8t(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){_8t[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=x8t(i)}});var IIe=ye((bgr,PIe)=>{"use strict";var kIe=zd().gl_plot3d,w8t=kIe.createCamera,MIe=kIe.createScene,T8t=vIe(),A8t=VL(),sF=qa(),cp=Dr(),oF=cp.preserveDrawingBuffer(),lF=ho(),Qg=vf(),S8t=n1(),M8t=zX(),E8t=XU(),k8t=_Ie(),C8t=wIe(),L8t=SIe(),P8t=Mg().applyAutorangeOptions,nk,aF,CIe=!1;function LIe(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=k8t(t,t[this.id]),this.spikeOptions=C8t(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=sF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Sv=LIe.prototype;Sv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oF,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(!aF&&(nk=document.createElement("canvas"),aF=T8t({canvas:nk,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aF))throw new Error("error creating static canvas/context for image server");t.gl=aF,t.canvas=nk}return t};var EIe=!0;Sv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=MIe(t)}catch(n){if(e.staticMode||!EIe||oF)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{oF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=MIe(t)}catch(i){oF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return EIe=!1,r};Sv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=w8t(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 M8t(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(){CIe=!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)}},A8t?{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),L8t(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=lF.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:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Qg.appendArrayPointValue(C,_,b),r._module.eventData&&(C=_._module.eventData(C,f,_,{},b));var M={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Qg.loneHover({trace:_,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(_,b,"bgcolor")||c.color,borderColor:Qg.castHoverOption(_,b,"bordercolor"),fontFamily:Qg.castHoverOption(_,b,"font.family"),fontSize:Qg.castHoverOption(_,b,"font.size"),fontColor:Qg.castHoverOption(_,b,"font.color"),nameLength:Qg.castHoverOption(_,b,"namelength"),textAlign:Qg.castHoverOption(_,b,"align"),hovertemplate:cp.castOption(_,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||CIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}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 I8t(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;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var A=_[1][o]-_[0][o];_[0][o]-=A/32,_[1][o]+=A/32}if(k=[_[0][o],_[1][o]],k=P8t(k,l),_[0][o]=k[0],_[1][o]=k[1],l.isReversed()){var z=_[0][o];_[0][o]=_[1][o],_[1][o]=z}}else k=l.range,_[0][o]=l.r2l(k[0]),_[1][o]=l.r2l(k[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],l.range=[_[0][o],_[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,U=c.aspectmode;if(U==="cube")O=[1,1,1];else if(U==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(U==="auto"||U==="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]}U==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[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 D8t(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 F8t(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()),F8t(e.camera)};Sv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,D8t(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),sF.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;sF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,cp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function z8t(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),z8t(a,n,i),O8t(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]];lF.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"},lF.setConvert(e._mockAxis,r)};PIe.exports=LIe});var DIe=ye((wgr,RIe)=>{"use strict";RIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var qX=ye((Tgr,FIe)=>{"use strict";var q8t=ka(),xs=Rd(),OX=Ao().extendFlat,B8t=mc().overrideAll;FIe.exports=B8t({visible:xs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:q8t.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 VX=ye((Agr,zIe)=>{"use strict";var BX=qX(),N8t=Cc().attributes,NX=Ao().extendFlat,U8t=Dr().counterRegex;function UX(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"}}zIe.exports={_arrayAttrRegexps:[U8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:NX(UX(0,0,1),{}),center:NX(UX(0,0,0),{}),eye:NX(UX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:N8t({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:BX,yaxis:BX,zaxis:BX,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 NIe=ye((Sgr,BIe)=>{"use strict";var V8t=fd().mix,OIe=Dr(),G8t=vl(),H8t=qX(),j8t=PU(),W8t=h4(),qIe=["xaxis","yaxis","zaxis"],X8t=100*136/187;BIe.exports=function(t,r,n){var i,a;function o(u,c){return OIe.coerce(i,a,H8t,u,c)}for(var s=0;s{"use strict";var Z8t=Dr(),Y8t=ka(),K8t=qa(),J8t=O_(),$8t=NIe(),UIe=VX(),Q8t=Id().getSubplotData,VIe="gl3d";GIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=Z8t.validate(t[o],UIe[o]);if(s)return t[o]}}J8t(t,r,n,{type:VIe,attributes:UIe,handleDefaults:eRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function eRt(e,t,r,n){for(var i=r("bgcolor"),a=Y8t.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 sx=ye(fp=>{"use strict";var tRt=mc().overrideAll,rRt=W1(),iRt=IIe(),nRt=Id().getSubplotData,aRt=Dr(),oRt=Wp(),XA="gl3d",GX="scene";fp.name=XA;fp.attr=GX;fp.idRoot=GX;fp.idRegex=fp.attrRegex=aRt.counterRegex("scene");fp.attributes=DIe();fp.layoutAttributes=VX();fp.baseLayoutAttrOverrides=tRt({hoverlabel:rRt.hoverlabel},"plot","nested");fp.supplyLayoutDefaults=HIe();fp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[XA],a=0;a{"use strict";jIe.exports={plot:tIe(),attributes:DX(),markerSymbols:iF(),supplyDefaults:lIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:cIe(),moduleType:"trace",name:"scatter3d",basePlotModule:sx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var ZIe=ye((Cgr,XIe)=>{"use strict";XIe.exports=WIe()});var ok=ye((Lgr,JIe)=>{"use strict";var YIe=ka(),sRt=Tu(),HX=df().axisHoverFormat,{hovertemplateAttrs:lRt,templatefallbackAttrs:uRt}=Ll(),KIe=Gl(),jX=Ao().extendFlat,cRt=mc().overrideAll;function WX(e){return{valType:"boolean",dflt:!1}}function XX(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:WX("x"),y:WX("y"),z:WX("z")},color:{valType:"color",dflt:YIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:YIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var ZX=JIe.exports=cRt(jX({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:lRt(),hovertemplatefallback:uRt(),xhoverformat:HX("x"),yhoverformat:HX("y"),zhoverformat:HX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},sRt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:XX("x"),y:XX("y"),z:XX("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:jX({},KIe.hoverinfo),showlegend:jX({},KIe.showlegend,{dflt:!1})}),"calc","nested");ZX.x.editType=ZX.y.editType=ZX.z.editType="calc+clearAxisTypes"});var KX=ye((Pgr,e8e)=>{"use strict";var fRt=qa(),$Ie=Dr(),hRt=td(),dRt=ok(),YX=.1;function vRt(e,t){for(var r=[],n=32,i=0;i{"use strict";var t8e=gv();r8e.exports=function(t,r){r.surfacecolor?t8e(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):t8e(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var u8e=ye((Rgr,l8e)=>{"use strict";var mRt=zd().gl_surface3d,ZA=zd().ndarray,yRt=zd().ndarray_linear_interpolate.d2,_Rt=c8(),xRt=f8(),sk=Dr().isArrayOrTypedArray,bRt=a1().parseColorScale,n8e=n1(),wRt=tc().extractOpts;function o8e(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=o8e.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 TRt(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 YA=[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 ARt(e,t){if(e0){r=YA[n];break}return r}function MRt(e,t){if(!(e<1||t<1)){for(var r=JX(e),n=JX(t),i=1,a=0;auF;)n--,n/=SRt(n),n++,n1?i:1};function kRt(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 CRt(e,t,r){return LRt(e,t,kRt,r),e}function LRt(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";c8e.exports={attributes:ok(),supplyDefaults:KX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:i8e(),plot:u8e(),moduleType:"trace",name:"surface",basePlotModule:sx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var d8e=ye((Fgr,h8e)=>{"use strict";h8e.exports=f8e()});var KA=ye((zgr,p8e)=>{"use strict";var RRt=Tu(),$X=df().axisHoverFormat,{hovertemplateAttrs:DRt,templatefallbackAttrs:FRt}=Ll(),lx=ok(),v8e=Gl(),ux=Ao().extendFlat;p8e.exports=ux({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:DRt({editType:"calc"}),hovertemplatefallback:FRt({editType:"calc"}),xhoverformat:$X("x"),yhoverformat:$X("y"),zhoverformat:$X("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"}},RRt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ux({},lx.contours.x.show,{}),color:lx.contours.x.color,width:lx.contours.x.width,editType:"calc"},lightposition:{x:ux({},lx.lightposition.x,{dflt:1e5}),y:ux({},lx.lightposition.y,{dflt:1e5}),z:ux({},lx.lightposition.z,{dflt:0}),editType:"calc"},lighting:ux({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"},lx.lighting),hoverinfo:ux({},v8e.hoverinfo,{editType:"calc"}),showlegend:ux({},v8e.showlegend,{dflt:!1})})});var fF=ye((Ogr,m8e)=>{"use strict";var zRt=Tu(),cF=df().axisHoverFormat,{hovertemplateAttrs:ORt,templatefallbackAttrs:qRt}=Ll(),lk=KA(),g8e=Gl(),QX=Ao().extendFlat,BRt=mc().overrideAll;function eZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function tZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var JA=m8e.exports=BRt(QX({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:eZ("x"),y:eZ("y"),z:eZ("z")},caps:{x:tZ("x"),y:tZ("y"),z:tZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ORt(),hovertemplatefallback:qRt(),xhoverformat:cF("x"),yhoverformat:cF("y"),zhoverformat:cF("z"),valuehoverformat:cF("value",1),showlegend:QX({},g8e.showlegend,{dflt:!1})},zRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lk.opacity,lightposition:lk.lightposition,lighting:lk.lighting,flatshading:lk.flatshading,contour:lk.contour,hoverinfo:QX({},g8e.hoverinfo)}),"calc","nested");JA.flatshading.dflt=!0;JA.lighting.facenormalsepsilon.dflt=0;JA.x.editType=JA.y.editType=JA.z.editType=JA.value.editType="calc+clearAxisTypes"});var rZ=ye((qgr,_8e)=>{"use strict";var NRt=Dr(),URt=qa(),VRt=fF(),GRt=td();function HRt(e,t,r,n){function i(a,o){return NRt.coerce(e,t,VRt,a,o)}y8e(e,t,r,n,i)}function y8e(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=URt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,p=i(b+".show");p&&i(b+".fill");var k="slices."+_,E=i(k+".show");E&&(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(_){i(_)}),GRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}_8e.exports={supplyDefaults:HRt,supplyIsoDefaults:y8e}});var hF=ye((Bgr,b8e)=>{"use strict";var nZ=Dr(),jRt=gv();function WRt(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=Jm(t.u,t._len),t._v=Jm(t.v,t._len),t._w=Jm(t.w,t._len),t._x=Jm(t.x,t._len),t._y=Jm(t.y,t._len),t._z=Jm(t.z,t._len);var r=x8e(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=Jm(t.starts.x||[]),a=Jm(t.starts.y||[]),o=Jm(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&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(T>L?"-":"+")+"y"),v=v.replace("z",(x>C?"-":"+")+"z");var A=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var XRt=gv(),ZRt=hF().processGrid,dF=hF().filter;w8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dF(r.x,r._len),r._y=dF(r.y,r._len),r._z=dF(r.z,r._len),r._value=dF(r.value,r._len);var n=ZRt(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";T8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var YRt=zd().gl_mesh3d,KRt=a1().parseColorScale,JRt=Dr().isArrayOrTypedArray,$Rt=n1(),QRt=tc().extractOpts,A8e=$A(),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 oe(Qt,Gt){return Qt===null?Gt:Qt}function _e(Qt,Gt,_t){A();var It=[Gt],mt=[_t];if(j>=1)It=[Gt],mt=[_t];else if(j>0){var er=H(Gt,_t);It=er.xyzv,mt=er.abc}for(var lr=0;lr-1?_t[Lr]:P(ti,Br,Vr);Ge>-1?wr[Lr]=Ge:wr[Lr]=O(ti,Br,Vr,oe(Qt,dt))}U(wr[0],wr[1],wr[2])}}function Ce(Qt,Gt,_t){var It=function(mt,er,lr){_e(Qt,[Gt[mt],Gt[er],Gt[lr]],[_t[mt],_t[er],_t[lr]])};It(0,1,2),It(2,3,0)}function Le(Qt,Gt,_t){var It=function(mt,er,lr){_e(Qt,[Gt[mt],Gt[er],Gt[lr]],[_t[mt],_t[er],_t[lr]])};It(0,1,2),It(3,0,1),It(2,3,0),It(1,2,3)}function ge(Qt,Gt,_t,It){var mt=Qt[3];mt<_t&&(mt=_t),mt>It&&(mt=It);for(var er=(Qt[3]-mt)/(Qt[3]-Gt[3]+1e-9),lr=[],wr=0;wr<4;wr++)lr[wr]=(1-er)*Qt[wr]+er*Gt[wr];return lr}function ie(Qt,Gt,_t){return Qt>=Gt&&Qt<=_t}function Se(Qt){var Gt=.001*(L-T);return Qt>=T-Gt&&Qt<=L+Gt}function Ee(Qt){for(var Gt=[],_t=0;_t<4;_t++){var It=Qt[_t];Gt.push([e._x[It],e._y[It],e._z[It],e._value[It]])}return Gt}var Ae=3;function Be(Qt,Gt,_t,It,mt,er){er||(er=1),_t=[-1,-1,-1];var lr=!1,wr=[ie(Gt[0][3],It,mt),ie(Gt[1][3],It,mt),ie(Gt[2][3],It,mt)];if(!wr[0]&&!wr[1]&&!wr[2])return!1;var Lr=function(Br,Vr,dt){return Se(Vr[0][3])&&Se(Vr[1][3])&&Se(Vr[2][3])?(_e(Br,Vr,dt),!0):erwr?[k,er]:[er,E];Nt(Gt,Lr[0],Lr[1])}}var ti=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(Br){for(var Vr=[],dt=0;dt0&&(Ie.push(vt.id),Br==="x"?xe.push([vt.distRatio,0,0]):Br==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Br==="x"?xt=fr(1,d-1):Br==="y"?xt=fr(1,v-1):xt=fr(1,_-1);Ie.length>0&&(Br==="x"?Vr[Ge]=$t(Qt,Ie,Je,We,xe,Vr[Ge]):Br==="y"?Vr[Ge]=sr(Qt,Ie,Je,We,xe,Vr[Ge]):Vr[Ge]=Tr(Qt,Ie,Je,We,xe,Vr[Ge]),Ge++),xt.length>0&&(Br==="x"?Vr[Ge]=pt(Qt,xt,Je,We,Vr[Ge]):Br==="y"?Vr[Ge]=Vt(Qt,xt,Je,We,Vr[Ge]):Vr[Ge]=ot(Qt,xt,Je,We,Vr[Ge]),Ge++)}var ir=e.caps[Br];ir.show&&ir.fill&&(N(ir.fill),Br==="x"?Vr[Ge]=pt(Qt,[0,d-1],Je,We,Vr[Ge]):Br==="y"?Vr[Ge]=Vt(Qt,[0,v-1],Je,We,Vr[Ge]):Vr[Ge]=ot(Qt,[0,_-1],Je,We,Vr[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=C,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return St(),e}function tDt(e,t){var r=e.glplot.gl,n=YRt({gl:r}),i=new S8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}E8e.exports={findNearestOnAxis:uk,generateIsoMeshes:M8e,createIsosurfaceTrace:tDt}});var C8e=ye((Ggr,k8e)=>{"use strict";k8e.exports={attributes:fF(),supplyDefaults:rZ().supplyDefaults,calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:vF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var P8e=ye((Hgr,L8e)=>{"use strict";L8e.exports=C8e()});var lZ=ye((jgr,R8e)=>{"use strict";var rDt=Tu(),xh=fF(),iDt=ok(),I8e=Gl(),sZ=Ao().extendFlat,nDt=mc().overrideAll,pF=R8e.exports=nDt(sZ({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},rDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:iDt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:sZ({},I8e.hoverinfo),showlegend:sZ({},I8e.showlegend,{dflt:!1})}),"calc","nested");pF.x.editType=pF.y.editType=pF.z.editType=pF.value.editType="calc+clearAxisTypes"});var F8e=ye((Wgr,D8e)=>{"use strict";var aDt=Dr(),oDt=lZ(),sDt=rZ().supplyIsoDefaults,lDt=KX().opacityscaleDefaults;D8e.exports=function(t,r,n,i){function a(o,s){return aDt.coerce(t,r,oDt,o,s)}sDt(t,r,n,i,a),lDt(t,r,i,a)}});var B8e=ye((Xgr,q8e)=>{"use strict";var uDt=zd().gl_mesh3d,cDt=a1().parseColorScale,fDt=Dr().isArrayOrTypedArray,hDt=n1(),dDt=tc().extractOpts,z8e=$A(),uZ=vF().findNearestOnAxis,vDt=vF().generateIsoMeshes;function O8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var cZ=O8e.prototype;cZ.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=uZ(r,this.data._Xs).id,l=uZ(n,this.data._Ys).id,u=uZ(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 fDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};cZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=vDt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=z8e(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=z8e(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:hDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=dDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=cDt(e),this.mesh.update(o)};cZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function pDt(e,t){var r=e.glplot.gl,n=uDt({gl:r}),i=new O8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}q8e.exports=pDt});var U8e=ye((Zgr,N8e)=>{"use strict";N8e.exports={attributes:lZ(),supplyDefaults:F8e(),calc:aZ(),colorbar:{min:"cmin",max:"cmax"},plot:B8e(),moduleType:"trace",name:"volume",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var G8e=ye((Ygr,V8e)=>{"use strict";V8e.exports=U8e()});var W8e=ye((Kgr,j8e)=>{"use strict";var gDt=qa(),H8e=Dr(),mDt=td(),yDt=KA();j8e.exports=function(t,r,n,i){function a(c,f){return H8e.coerce(t,r,yDt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&H8e.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=gDt.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"),mDt(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 Z8e=ye((Jgr,X8e)=>{"use strict";var _Dt=gv();X8e.exports=function(t,r){r.intensity&&_Dt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var Q8e=ye(($gr,$8e)=>{"use strict";var xDt=zd().gl_mesh3d,bDt=zd().delaunay_triangulate,wDt=zd().alpha_shape,TDt=zd().convex_hull,ADt=a1().parseColorScale,SDt=Dr().isArrayOrTypedArray,vZ=n1(),MDt=tc().extractOpts,Y8e=$A();function J8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var pZ=J8e.prototype;pZ.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 SDt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function K8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}pZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=Y8e(fZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),fZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),fZ(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||!dZ(e.i,n)||!dZ(e.j,n)||!dZ(e.k,n))return;a=Y8e(hZ(e.i),hZ(e.j),hZ(e.k))}else e.alphahull===0?a=TDt(i):e.alphahull>0?a=wDt(e.alphahull,i):a=EDt(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:vZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=MDt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=ADt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=K8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=K8e(e.facecolor)):(this.color=e.color,o.meshColor=vZ(e.color));this.mesh.update(o)};pZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function kDt(e,t){var r=e.glplot.gl,n=xDt({gl:r}),i=new J8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}$8e.exports=kDt});var tRe=ye((Qgr,eRe)=>{"use strict";eRe.exports={attributes:KA(),supplyDefaults:W8e(),calc:Z8e(),colorbar:{min:"cmin",max:"cmax"},plot:Q8e(),moduleType:"trace",name:"mesh3d",basePlotModule:sx(),categories:["gl3d","showLegend"],meta:{}}});var iRe=ye((emr,rRe)=>{"use strict";rRe.exports=tRe()});var mZ=ye((tmr,aRe)=>{"use strict";var CDt=Tu(),QA=df().axisHoverFormat,{hovertemplateAttrs:LDt,templatefallbackAttrs:PDt}=Ll(),IDt=KA(),nRe=Gl(),gZ=Ao().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:LDt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:PDt({editType:"calc"}),uhoverformat:QA("u",1),vhoverformat:QA("v",1),whoverformat:QA("w",1),xhoverformat:QA("x"),yhoverformat:QA("y"),zhoverformat:QA("z"),showlegend:gZ({},nRe.showlegend,{dflt:!1})};gZ(gF,CDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var RDt=["opacity","lightposition","lighting"];RDt.forEach(function(e){gF[e]=IDt[e]});gF.hoverinfo=gZ({},nRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});aRe.exports=gF});var sRe=ye((rmr,oRe)=>{"use strict";var DDt=Dr(),FDt=td(),zDt=mZ();oRe.exports=function(t,r,n,i){function a(d,v){return DDt.coerce(t,r,zDt,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"),FDt(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 uRe=ye((imr,lRe)=>{"use strict";var ODt=gv();lRe.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 qDt=zd().gl_cone3d,BDt=zd().gl_cone3d.createConeMesh,NDt=Dr().simpleMap,UDt=a1().parseColorScale,VDt=tc().extractOpts,GDt=Dr().isArrayOrTypedArray,cRe=$A();function fRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var yZ=fRe.prototype;yZ.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 GDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var HDt={xaxis:0,yaxis:1,zaxis:2},jDt={tip:1,tail:0,cm:.25,center:.5},WDt={tip:1,tail:1,cm:.75,center:.5};function hRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[HDt[f]];return NDt(c,function(v){return h.d2l(v)*d})}i.vectors=cRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=cRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=VDt(t);i.colormap=UDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=jDt[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=qDt(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=WDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}yZ.update=function(e){this.data=e;var t=hRe(this.scene,e);this.mesh.update(t)};yZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function XDt(e,t){var r=e.glplot.gl,n=hRe(e,t),i=BDt(r,n),a=new fRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}dRe.exports=XDt});var gRe=ye((amr,pRe)=>{"use strict";pRe.exports={moduleType:"trace",name:"cone",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:mZ(),supplyDefaults:sRe(),colorbar:{min:"cmin",max:"cmax"},calc:uRe(),plot:vRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var yRe=ye((omr,mRe)=>{"use strict";mRe.exports=gRe()});var xZ=ye((smr,xRe)=>{"use strict";var ZDt=Tu(),e5=df().axisHoverFormat,{hovertemplateAttrs:YDt,templatefallbackAttrs:KDt}=Ll(),JDt=KA(),_Re=Gl(),_Z=Ao().extendFlat,mF={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:YDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:KDt({editType:"calc"}),uhoverformat:e5("u",1),vhoverformat:e5("v",1),whoverformat:e5("w",1),xhoverformat:e5("x"),yhoverformat:e5("y"),zhoverformat:e5("z"),showlegend:_Z({},_Re.showlegend,{dflt:!1})};_Z(mF,ZDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var $Dt=["opacity","lightposition","lighting"];$Dt.forEach(function(e){mF[e]=JDt[e]});mF.hoverinfo=_Z({},_Re.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});xRe.exports=mF});var wRe=ye((lmr,bRe)=>{"use strict";var QDt=Dr(),eFt=td(),tFt=xZ();bRe.exports=function(t,r,n,i){function a(h,d){return QDt.coerce(t,r,tFt,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"),eFt(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 LRe=ye((umr,CRe)=>{"use strict";var SRe=zd().gl_streamtube3d,rFt=SRe.createTubeMesh,iFt=Dr(),nFt=a1().parseColorScale,aFt=tc().extractOpts,TRe=$A(),MRe={xaxis:0,yaxis:1,zaxis:2};function ERe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var wZ=ERe.prototype;wZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[MRe[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 ARe(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 bZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function kRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var U=r[O],G=n[MRe[O]];return iFt.simpleMap(z,function(Z){return U.d2l(Z)*G})}if(a.vectors=TRe(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=TRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=ARe(s),d=ARe(u),v=new Array(h.length*d.length),_=0,b=0;b{"use strict";PRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:sx(),categories:["gl3d","showLegend"],attributes:xZ(),supplyDefaults:wRe(),colorbar:{min:"cmin",max:"cmax"},calc:hF().calc,plot:LRe(),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 DRe=ye((fmr,RRe)=>{"use strict";RRe.exports=IRe()});var ew=ye((dmr,BRe)=>{"use strict";var{hovertemplateAttrs:sFt,texttemplateAttrs:lFt,templatefallbackAttrs:FRe}=Ll(),uFt=Pg(),$m=pf(),cFt=Gl(),zRe=Tu(),fFt=Pd().dash,Q2=Ao().extendFlat,hFt=mc().overrideAll,rg=$m.marker,ORe=$m.line,qRe=rg.line,hmr=["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(" ");BRe.exports=hFt({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:Q2({},$m.mode,{dflt:"markers"}),text:Q2({},$m.text,{}),texttemplate:lFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:FRe({editType:"plot"}),hovertext:Q2({},$m.hovertext,{}),textfont:$m.textfont,textposition:$m.textposition,line:{color:ORe.color,width:ORe.width,dash:fFt},connectgaps:$m.connectgaps,marker:Q2({symbol:rg.symbol,opacity:rg.opacity,angle:rg.angle,angleref:Q2({},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:Q2({width:qRe.width,dash:qRe.dash},zRe("marker.line")),gradient:rg.gradient},zRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:uFt(),selected:$m.selected,unselected:$m.unselected,hoverinfo:Q2({},cFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:sFt(),hovertemplatefallback:FRe()},"calc","nested")});var URe=ye((vmr,NRe)=>{"use strict";var yF=Dr(),TZ=Ru(),dFt=$p(),vFt=D0(),pFt=F0(),gFt=Fg(),mFt=ew(),yFt=["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(" ");NRe.exports=function(t,r,n,i){function a(d,v){return yF.coerce(t,r,mFt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||yF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&yF.warn(yFt),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"),TZ.hasMarkers(r)&&dFt(t,r,n,i,a,{gradient:!0}),TZ.hasLines(r)&&(vFt(t,r,n,i,a),a("connectgaps")),TZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),pFt(t,r,i,a)),a("fill"),r.fill!=="none"&&gFt(t,r,n,a),yF.coerceSelectionMarkerOpacity(r,a)}});var HRe=ye((pmr,GRe)=>{"use strict";var VRe=ho();GRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=VRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=VRe.tickText(o,o.c2l(s[1]),!0).text,i}});var _F=ye((gmr,ZRe)=>{"use strict";var AZ=Eo(),jRe=fs().BADNUM,_Ft=z0(),xFt=Rm(),bFt=O0(),wFt=Dr().isArrayOrTypedArray,WRe=Dr()._;function XRe(e){return e&&typeof e=="string"}ZRe.exports=function(t,r){var n=wFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return XRe(h)||AZ(h)}:o=XRe;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 SZ=ye((xF,YRe)=>{(function(e,t){typeof xF=="object"&&typeof YRe!="undefined"?t(xF):(e=e||self,t(e.topojson=e.topojson||{}))})(xF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,x=E.scale[0],C=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,A){A||(T=L=0);var z=2,O=P.length,U=new Array(O);for(U[0]=(T+=P[0])*x+M,U[1]=(L+=P[1])*C+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function A(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(A);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,U=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)A(E.objects[L]);return[x,C,M,g]}function i(E,T){for(var L,x=E.length,C=x-T;C<--x;)L=E[C],E[C++]=E[x],E[x]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,M=s(E,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:M}:x==null?{type:"Feature",id:L,properties:C,geometry:M}:{type:"Feature",id:L,bbox:x,properties:C,geometry:M}}function s(E,T){var L=r(E.transform),x=E.arcs;function C(O,U){U.length&&U.pop();for(var G=x[O<0?~O:O],Z=0,j=G.length;Z1)x=f(E,T,L);else for(C=0,x=new Array(M=E.arcs.length);C1)for(var U=1,G=P(z[0]),Z,j;UG&&(j=z[0],z[0]=z[U],z[U]=j,G=Z);return z}).filter(function(A){return A.length>0})}}function _(E,T){for(var L=0,x=E.length;L>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],x=A[1],C=A[2],M=A[3],g;T={scale:[C-L?(C-L)/(g-1):1,M-x?(M-x)/(g-1):1],translate:[L,x]}}else A=E.bbox;var P=p(T),A,z,O=E.objects,U={};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,oe=N.length,_e,Ce=new Array(oe);for(Ce[0]=P(N[0],0);++H{"use strict";var MZ=KRe.exports={},TFt=ck().locationmodeToLayer,AFt=SZ().feature;MZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};MZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};MZ.getTopojsonFeatures=function(e,t){var r=TFt[e.locationmode],n=t.objects[r];return AFt(t,n).features}});var cx=ye(fk=>{"use strict";var SFt=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{JRe.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 AF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Op=63710088e-1,kZ={centimeters:Op*100,centimetres:Op*100,degrees:360/(2*Math.PI),feet:Op*3.28084,inches:Op*39.37,kilometers:Op/1e3,kilometres:Op/1e3,meters:Op,metres:Op,miles:Op/1609.344,millimeters:Op*1e3,millimetres:Op*1e3,nauticalmiles:Op/1852,radians:1,yards:Op*1.0936},EZ={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 fx(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 MFt(e,t,r={}){switch(e){case"Point":return CZ(t).geometry;case"LineString":return PZ(t).geometry;case"Polygon":return LZ(t).geometry;case"MultiPoint":return eDe(t).geometry;case"MultiLineString":return QRe(t).geometry;case"MultiPolygon":return tDe(t).geometry;default:throw new Error(e+" is invalid")}}function CZ(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(!wF(e[0])||!wF(e[1]))throw new Error("coordinates must contain numbers");return fx({type:"Point",coordinates:e},t,r)}function EFt(e,t,r={}){return TF(e.map(n=>CZ(n,t)),r)}function LZ(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;aLZ(n,t)),r)}function PZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return fx({type:"LineString",coordinates:e},t,r)}function CFt(e,t,r={}){return TF(e.map(n=>PZ(n,t)),r)}function TF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function QRe(e,t,r={}){return fx({type:"MultiLineString",coordinates:e},t,r)}function eDe(e,t,r={}){return fx({type:"MultiPoint",coordinates:e},t,r)}function tDe(e,t,r={}){return fx({type:"MultiPolygon",coordinates:e},t,r)}function LFt(e,t,r={}){return fx({type:"GeometryCollection",geometries:e},t,r)}function PFt(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 rDe(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function IZ(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function IFt(e,t){return iDe(IZ(e,t))}function RFt(e){let t=e%360;return t<0&&(t+=360),t}function DFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function iDe(e){return e%(2*Math.PI)*180/Math.PI}function FFt(e){return e%360*Math.PI/180}function zFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return rDe(IZ(e,t),r)}function OFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=EZ[t];if(!n)throw new Error("invalid original units");let i=EZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function wF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function qFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function BFt(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(!wF(t))throw new Error("bbox must only contain numbers")})}function NFt(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=EZ;ic.azimuthToBearing=DFt;ic.bearingToAzimuth=RFt;ic.convertArea=OFt;ic.convertLength=zFt;ic.degreesToRadians=FFt;ic.earthRadius=Op;ic.factors=kZ;ic.feature=fx;ic.featureCollection=TF;ic.geometry=MFt;ic.geometryCollection=LFt;ic.isNumber=wF;ic.isObject=qFt;ic.lengthToDegrees=IFt;ic.lengthToRadians=IZ;ic.lineString=PZ;ic.lineStrings=CFt;ic.multiLineString=QRe;ic.multiPoint=eDe;ic.multiPolygon=tDe;ic.point=CZ;ic.points=EFt;ic.polygon=LZ;ic.polygons=kFt;ic.radiansToDegrees=iDe;ic.radiansToLength=rDe;ic.round=PFt;ic.validateBBox=BFt;ic.validateId=NFt});var MF=ye(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Wv=AF();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",_=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||_>c){s=f,l=n,u=v,c=_,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function XFt(e,t,r){var n=r,i=!1;return oDe(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 sDe(e,t){if(!e)throw new Error("geojson is required");SF(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(EF,"__esModule",{value:!0});var lDe=AF(),JFt=MF();function fDe(e){return JFt.geomReduce.call(void 0,e,(t,r)=>t+$Ft(r),0)}function $Ft(e){let t=0,r;switch(e.type){case"Polygon":return uDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(cDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*DZ,l=a[1]*DZ,u=o[0]*DZ;r+=(u-s)*Math.sin(l),n++}return r*QFt}var ezt=fDe;EF.area=fDe;EF.default=ezt});var vDe=ye(kF=>{"use strict";Object.defineProperty(kF,"__esModule",{value:!0});var tzt=AF(),rzt=MF();function dDe(e,t={}){let r=0,n=0,i=0;return rzt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),tzt.point.call(void 0,[r/i,n/i],t.properties)}var izt=dDe;kF.centroid=dDe;kF.default=izt});var gDe=ye(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var nzt=MF();function pDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return nzt.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 ozt=Oa(),_De=$Re(),{area:szt}=hDe(),{centroid:lzt}=vDe(),{bbox:uzt}=gDe(),mDe=ZS(),t5=K1(),czt=Ty(),fzt=FS(),LF=zM(),yDe=Object.keys(_De),hzt={"ISO-3":mDe,"USA-states":mDe,"country names":dzt};function dzt(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=LF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(LF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=mzt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else t5.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 lzt(r).geometry.coordinates}function yzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){ozt.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 xzt=Oa(),bzt=So(),wDe=ka(),TDe=sp(),wzt=TDe.stylePoints,Tzt=TDe.styleText;ADe.exports=function(t,r){r&&Azt(t,r)};function Azt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),wzt(n,r,e),Tzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=xzt.select(this),o=i.trace,s=o.line||{};a.call(wDe.stroke,s.color).call(bzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(wDe.fill,o.fillcolor)})}});var BZ=ye((kmr,EDe)=>{"use strict";var SDe=Oa(),IF=Dr(),Szt=bF().getTopojsonFeatures,zZ=cx(),PF=hx(),MDe=Mg().findExtremes,qZ=fs().BADNUM,Mzt=q0().calcMarkerSize,OZ=Ru(),Ezt=FZ();function kzt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=IF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===qZ&&SDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=SDe.select(this),l=o[0].trace;if(OZ.hasLines(l)||l.fill!=="none"){var u=zZ.calcTraceToLineCoords(o),c=l.fill!=="none"?zZ.makePolygon(u):zZ.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(IF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),OZ.hasText(l)&&s.selectAll("g").data(IF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Ezt(e,o)})}function Czt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(IF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?PF.extractTraceFeature(e):Szt(r,i.topojson);for(o=0;o{"use strict";var Lzt=vf(),Pzt=fs().BADNUM,Izt=gT(),Rzt=Dr().fillText,Dzt=ew();kDe.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 E=k.lonlat;if(E[0]===Pzt||u(E))return 1/0;var T=c(E),L=c([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),M=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-M,1-3/M)}if(Lzt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=v[0]-_,t.x1=v[0]+_,t.y0=v[1]-_,t.y1=v[1]+_,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=Izt(a,h),t.extraText=Fzt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Fzt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?Dzt.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&&Rzt(t,e,c),c.join("
")}});var PDe=ye((Lmr,LDe)=>{"use strict";LDe.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 DDe=ye((Pmr,RDe)=>{"use strict";var IDe=Ru(),zzt=fs().BADNUM;RDe.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=!IDe.hasMarkers(s)&&!IDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof RF=="object"&&typeof FDe!="undefined"?RF:e.d3=e.d3||{})})(RF,function(e){"use strict";function t(Ee,Ae){return EeAe?1:Ee>=Ae?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Ae,Be,Pe,me){for(Pe==null&&(Pe=0),me==null&&(me=Ae.length);Pe>>1;Ee(Ae[De],Be)<0?Pe=De+1:me=De}return Pe},right:function(Ae,Be,Pe,me){for(Pe==null&&(Pe=0),me==null&&(me=Ae.length);Pe>>1;Ee(Ae[De],Be)>0?me=De:Pe=De+1}return Pe}}}function n(Ee){return function(Ae,Be){return t(Ee(Ae),Be)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Ae){Ae==null&&(Ae=l);for(var Be=0,Pe=Ee.length-1,me=Ee[0],De=new Array(Pe<0?0:Pe);BeEe?1:Ae>=Ee?0:NaN}function f(Ee){return Ee===null?NaN:+Ee}function h(Ee,Ae){var Be=Ee.length,Pe=0,me=-1,De=0,ce,je,lt=0;if(Ae==null)for(;++me1)return lt/(Pe-1)}function d(Ee,Ae){var Be=h(Ee,Ae);return Be&&Math.sqrt(Be)}function v(Ee,Ae){var Be=Ee.length,Pe=-1,me,De,ce;if(Ae==null){for(;++Pe=me)for(De=ce=me;++Peme&&(De=me),ce=me)for(De=ce=me;++Peme&&(De=me),ce0)return[Ee];if((Pe=Ae0)for(Ee=Math.ceil(Ee/je),Ae=Math.floor(Ae/je),ce=new Array(De=Math.ceil(Ae-Ee+1));++me=0?(De>=L?10:De>=x?5:De>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(De>=L?10:De>=x?5:De>=C?2:1)}function P(Ee,Ae,Be){var Pe=Math.abs(Ae-Ee)/Math.max(0,Be),me=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),De=Pe/me;return De>=L?me*=10:De>=x?me*=5:De>=C&&(me*=2),Aeot;)ut.pop(),--Wt;var Nt=new Array(Wt+1),$t;for(De=0;De<=Wt;++De)$t=Nt[De]=[],$t.x0=De>0?ut[De-1]:Vt,$t.x1=De=1)return+Be(Ee[Pe-1],Pe-1,Ee);var Pe,me=(Pe-1)*Ae,De=Math.floor(me),ce=+Be(Ee[De],De,Ee),je=+Be(Ee[De+1],De+1,Ee);return ce+(je-ce)*(me-De)}}function U(Ee,Ae,Be){return Ee=p.call(Ee,f).sort(t),Math.ceil((Be-Ae)/(2*(O(Ee,.75)-O(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Ae,Be){return Math.ceil((Be-Ae)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function Z(Ee,Ae){var Be=Ee.length,Pe=-1,me,De;if(Ae==null){for(;++Pe=me)for(De=me;++PeDe&&(De=me)}else for(;++Pe=me)for(De=me;++PeDe&&(De=me);return De}function j(Ee,Ae){var Be=Ee.length,Pe=Be,me=-1,De,ce=0;if(Ae==null)for(;++me=0;)for(ce=Ee[Ae],Be=ce.length;--Be>=0;)De[--me]=ce[Be];return De}function re(Ee,Ae){var Be=Ee.length,Pe=-1,me,De;if(Ae==null){for(;++Pe=me)for(De=me;++Peme&&(De=me)}else for(;++Pe=me)for(De=me;++Peme&&(De=me);return De}function oe(Ee,Ae){for(var Be=Ae.length,Pe=new Array(Be);Be--;)Pe[Be]=Ee[Ae[Be]];return Pe}function _e(Ee,Ae){if(Be=Ee.length){var Be,Pe=0,me=0,De,ce=Ee[me];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof DF=="object"&&typeof zDe!="undefined"?t(DF,dk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(DF,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(At){a(i,At,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(At,Xt,Cr){var Ar=At.s=Xt+Cr,Kr=Ar-Xt,ki=Ar-Kr;At.t=Xt-ki+(Cr-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,_=Math.atan,b=Math.atan2,p=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function A(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=x(At/2))*At}function O(){}function U(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){U(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var Cr=At.features,Ar=-1,Kr=Cr.length;++Ar=0?1:-1,Kr=Ar*Cr,ki=p(Xt),Xi=x(Xt),dn=ie*Xi,wn=ge*ki+dn*p(Kr),Nn=dn*Ar*x(Kr);re.add(b(Nn,wn)),Le=At,ge=ki,ie=Xi}function me(At){return oe.reset(),H(At,Se),oe*2}function De(At){return[b(At[1],At[0]),A(At[2])]}function ce(At){var Xt=At[0],Cr=At[1],Ar=p(Cr);return[Ar*p(Xt),Ar*x(Xt),x(Cr)]}function je(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function lt(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Vt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function ot(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var ut,Wt,Nt,$t,sr,Tr,fr,$e,St=r(),Qt,Gt,_t={point:It,lineStart:er,lineEnd:lr,polygonStart:function(){_t.point=wr,_t.lineStart=Lr,_t.lineEnd=ti,St.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),_t.point=It,_t.lineStart=er,_t.lineEnd=lr,re<0?(ut=-(Nt=180),Wt=-($t=90)):St>o?$t=90:St<-o&&(Wt=-90),Gt[0]=ut,Gt[1]=Nt},sphere:function(){ut=-(Nt=180),Wt=-($t=90)}};function It(At,Xt){Qt.push(Gt=[ut=At,Nt=At]),Xt$t&&($t=Xt)}function mt(At,Xt){var Cr=ce([At*d,Xt*d]);if($e){var Ar=lt($e,Cr),Kr=[Ar[1],-Ar[0],0],ki=lt(Kr,Ar);ot(ki),ki=De(ki);var Xi=At-sr,dn=Xi>0?1:-1,wn=ki[0]*h*dn,Nn,Yi=v(Xi)>180;Yi^(dn*sr$t&&($t=Nn)):(wn=(wn+360)%360-180,Yi^(dn*sr$t&&($t=Xt))),Yi?AtBr(ut,Nt)&&(Nt=At):Br(At,Nt)>Br(ut,Nt)&&(ut=At):Nt>=ut?(AtNt&&(Nt=At)):At>sr?Br(ut,At)>Br(ut,Nt)&&(Nt=At):Br(At,Nt)>Br(ut,Nt)&&(ut=At)}else Qt.push(Gt=[ut=At,Nt=At]);Xt$t&&($t=Xt),$e=Cr,sr=At}function er(){_t.point=mt}function lr(){Gt[0]=ut,Gt[1]=Nt,_t.point=It,$e=null}function wr(At,Xt){if($e){var Cr=At-sr;St.add(v(Cr)>180?Cr+(Cr>0?360:-360):Cr)}else Tr=At,fr=Xt;Se.point(At,Xt),mt(At,Xt)}function Lr(){Se.lineStart()}function ti(){wr(Tr,fr),Se.lineEnd(),v(St)>o&&(ut=-(Nt=180)),Gt[0]=ut,Gt[1]=Nt,$e=null}function Br(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Vr(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtBr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Br(Kr[0],Ar[1])>Br(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):ki.push(Ar=Kr);for(Xi=-1/0,Cr=ki.length-1,Xt=0,Ar=ki[Cr];Xt<=Cr;Ar=Kr,++Xt)Kr=ki[Xt],(dn=Br(Ar[1],Kr[0]))>Xi&&(Xi=dn,ut=Kr[0],Nt=Ar[1])}return Qt=Gt=null,ut===1/0||Wt===1/0?[[NaN,NaN],[NaN,NaN]]:[[ut,Wt],[Nt,$t]]}var Je,We,tt,xt,Ie,xe,ke,vt,ir,ar,vr,ii,pi,$r,di,ji,In={sphere:O,point:wi,lineStart:qn,lineEnd:la,polygonStart:function(){In.lineStart=Ut,In.lineEnd=wt},polygonEnd:function(){In.lineStart=qn,In.lineEnd=la}};function wi(At,Xt){At*=d,Xt*=d;var Cr=p(Xt);On(Cr*p(At),Cr*x(At),x(Xt))}function On(At,Xt,Cr){++Je,tt+=(At-tt)/Je,xt+=(Xt-xt)/Je,Ie+=(Cr-Ie)/Je}function qn(){In.point=Fn}function Fn(At,Xt){At*=d,Xt*=d;var Cr=p(Xt);$r=Cr*p(At),di=Cr*x(At),ji=x(Xt),In.point=ra,On($r,di,ji)}function ra(At,Xt){At*=d,Xt*=d;var Cr=p(Xt),Ar=Cr*p(At),Kr=Cr*x(At),ki=x(Xt),Xi=b(M((Xi=di*ki-ji*Kr)*Xi+(Xi=ji*Ar-$r*ki)*Xi+(Xi=$r*Kr-di*Ar)*Xi),$r*Ar+di*Kr+ji*ki);We+=Xi,xe+=Xi*($r+($r=Ar)),ke+=Xi*(di+(di=Kr)),vt+=Xi*(ji+(ji=ki)),On($r,di,ji)}function la(){In.point=wi}function Ut(){In.point=rr}function wt(){nr(ii,pi),In.point=wi}function rr(At,Xt){ii=At,pi=Xt,At*=d,Xt*=d,In.point=nr;var Cr=p(Xt);$r=Cr*p(At),di=Cr*x(At),ji=x(Xt),On($r,di,ji)}function nr(At,Xt){At*=d,Xt*=d;var Cr=p(Xt),Ar=Cr*p(At),Kr=Cr*x(At),ki=x(Xt),Xi=di*ki-ji*Kr,dn=ji*Ar-$r*ki,wn=$r*Kr-di*Ar,Nn=M(Xi*Xi+dn*dn+wn*wn),Yi=A(Nn),Qi=Nn&&-Yi/Nn;ir+=Qi*Xi,ar+=Qi*dn,vr+=Qi*wn,We+=Yi,xe+=Yi*($r+($r=Ar)),ke+=Yi*(di+(di=Kr)),vt+=Yi*(ji+(ji=ki)),On($r,di,ji)}function Er(At){Je=We=tt=xt=Ie=xe=ke=vt=ir=ar=vr=0,H(At,In);var Xt=ir,Cr=ar,Ar=vr,Kr=Xt*Xt+Cr*Cr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}Qr.invert=Qr;function Oi(At,Xt,Cr){return(At%=f)?Xt||Cr?ri(tn(At),fn(Xt,Cr)):tn(At):Xt||Cr?fn(Xt,Cr):Qr}function $i(At){return function(Xt,Cr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,Cr]}}function tn(At){var Xt=$i(At);return Xt.invert=$i(-At),Xt}function fn(At,Xt){var Cr=p(At),Ar=x(At),Kr=p(Xt),ki=x(Xt);function Xi(dn,wn){var Nn=p(wn),Yi=p(dn)*Nn,Qi=x(dn)*Nn,on=x(wn),Fi=on*Cr+Yi*Ar;return[b(Qi*Kr-Fi*ki,Yi*Cr-on*Ar),A(Fi*Kr+Qi*ki)]}return Xi.invert=function(dn,wn){var Nn=p(wn),Yi=p(dn)*Nn,Qi=x(dn)*Nn,on=x(wn),Fi=on*Kr-Qi*ki;return[b(Qi*Kr+on*ki,Yi*Cr+Fi*Ar),A(Fi*Cr-Yi*Ar)]},Xi}function yn(At){At=Oi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(Cr){return Cr=At(Cr[0]*d,Cr[1]*d),Cr[0]*=h,Cr[1]*=h,Cr}return Xt.invert=function(Cr){return Cr=At.invert(Cr[0]*d,Cr[1]*d),Cr[0]*=h,Cr[1]*=h,Cr},Xt}function Sn(At,Xt,Cr,Ar,Kr,ki){if(Cr){var Xi=p(Xt),dn=x(Xt),wn=Ar*Cr;Kr==null?(Kr=Xt+Ar*f,ki=Xt-wn/2):(Kr=Ba(Xi,Kr),ki=Ba(Xi,ki),(Ar>0?Krki)&&(Kr+=Ar*f));for(var Nn,Yi=Kr;Ar>0?Yi>ki:Yi1&&At.push(At.pop().concat(At.shift()))},result:function(){var Cr=At;return At=[],Xt=null,Cr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--dn)Kr.point((Qi=Yi[dn])[0],Qi[1]);else Ar(on.x,on.p.x,-1,Kr);on=on.p}on=on.o,Yi=on.z,Fi=!Fi}while(!on.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,Cr=0,Ar=At[0],Kr;++Cr=0?1:-1,as=Ss*Zo,ws=as>l,Ho=Ca*Ka;if(Wn.add(b(Ho*Ss*x(as),Ra*bo+Ho*p(as))),Xi+=ws?Zo+Ss*f:Zo,ws^Fi>=Cr^Yn>=Cr){var ml=lt(ce(on),ce(Na));ot(ml);var Ws=lt(ki,ml);ot(Ws);var Ls=(ws^Zo>=0?-1:1)*A(Ws[2]);(Ar>Ls||Ar===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(Mt))}}return on}}function Mt(At){return At.length>1}function kr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Jr=jn(function(){return!0},vi,An,[-l,-u]);function vi(At){var Xt=NaN,Cr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(ki,Xi){var dn=ki>0?l:-l,wn=v(ki-Xt);v(wn-l)0?u:-u),At.point(Ar,Cr),At.lineEnd(),At.lineStart(),At.point(dn,Cr),At.point(ki,Cr),Kr=0):Ar!==dn&&wn>=l&&(v(Xt-Ar)o?_((x(Xt)*(ki=p(Ar))*x(Cr)-x(Ar)*(Kr=p(Xt))*x(At))/(Kr*ki*Xi)):(Xt+Ar)/2}function An(At,Xt,Cr,Ar){var Kr;if(At==null)Kr=Cr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var ki=At[0]0,Kr=v(Xt)>o;function ki(Yi,Qi,on,Fi){Sn(Fi,At,Cr,on,Yi,Qi)}function Xi(Yi,Qi){return p(Yi)*p(Qi)>Xt}function dn(Yi){var Qi,on,Fi,Qn,Ca;return{lineStart:function(){Qn=Fi=!1,Ca=1},point:function(Ra,La){var Na=[Ra,La],Yn,Dn=Xi(Ra,La),Ka=Ar?Dn?0:Nn(Ra,La):Dn?Nn(Ra+(Ra<0?l:-l),La):0;if(!Qi&&(Qn=Fi=Dn)&&Yi.lineStart(),Dn!==Fi&&(Yn=wn(Qi,Na),(!Yn||Wa(Qi,Yn)||Wa(Na,Yn))&&(Na[2]=1)),Dn!==Fi)Ca=0,Dn?(Yi.lineStart(),Yn=wn(Na,Qi),Yi.point(Yn[0],Yn[1])):(Yn=wn(Qi,Na),Yi.point(Yn[0],Yn[1],2),Yi.lineEnd()),Qi=Yn;else if(Kr&&Qi&&Ar^Dn){var bo;!(Ka&on)&&(bo=wn(Na,Qi,!0))&&(Ca=0,Ar?(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&&(!Qi||!Wa(Qi,Na))&&Yi.point(Na[0],Na[1]),Qi=Na,Fi=Dn,on=Ka},lineEnd:function(){Fi&&Yi.lineEnd(),Qi=null},clean:function(){return Ca|(Qn&&Fi)<<1}}}function wn(Yi,Qi,on){var Fi=ce(Yi),Qn=ce(Qi),Ca=[1,0,0],Ra=lt(Fi,Qn),La=je(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!on&&Yi;var Dn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=lt(Ca,Ra),Zo=Vt(Ca,Dn),Ss=Vt(Ra,Ka);pt(Zo,Ss);var as=bo,ws=je(Zo,as),Ho=je(as,as),ml=ws*ws-Ho*(je(Zo,Zo)-1);if(!(ml<0)){var Ws=M(ml),Ls=Vt(as,(-ws-Ws)/Ho);if(pt(Ls,Zo),Ls=De(Ls),!on)return Ls;var va=Yi[0],no=Qi[0],ys=Yi[1],rs=Qi[1],Ql;no0^Ls[1]<(v(Ls[0]-va)l^(va<=Ls[0]&&Ls[0]<=no)){var pu=Vt(as,(-ws+Ws)/Ho);return pt(pu,Zo),[Ls,De(pu)]}}}function Nn(Yi,Qi){var on=Ar?At:l-At,Fi=0;return Yi<-on?Fi|=1:Yi>on&&(Fi|=2),Qi<-on?Fi|=4:Qi>on&&(Fi|=8),Fi}return jn(Xi,dn,ki,Ar?[0,-At]:[-l,At-l])}function Li(At,Xt,Cr,Ar,Kr,ki){var Xi=At[0],dn=At[1],wn=Xt[0],Nn=Xt[1],Yi=0,Qi=1,on=wn-Xi,Fi=Nn-dn,Qn;if(Qn=Cr-Xi,!(!on&&Qn>0)){if(Qn/=on,on<0){if(Qn0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}if(Qn=Kr-Xi,!(!on&&Qn<0)){if(Qn/=on,on<0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}else if(on>0){if(Qn0)){if(Qn/=Fi,Fi<0){if(Qn0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}if(Qn=ki-dn,!(!Fi&&Qn<0)){if(Qn/=Fi,Fi<0){if(Qn>Qi)return;Qn>Yi&&(Yi=Qn)}else if(Fi>0){if(Qn0&&(At[0]=Xi+Yi*on,At[1]=dn+Yi*Fi),Qi<1&&(Xt[0]=Xi+Qi*on,Xt[1]=dn+Qi*Fi),!0}}}}}var _n=1e9,ya=-_n;function $n(At,Xt,Cr,Ar){function Kr(Nn,Yi){return At<=Nn&&Nn<=Cr&&Xt<=Yi&&Yi<=Ar}function ki(Nn,Yi,Qi,on){var Fi=0,Qn=0;if(Nn==null||(Fi=Xi(Nn,Qi))!==(Qn=Xi(Yi,Qi))||wn(Nn,Yi)<0^Qi>0)do on.point(Fi===0||Fi===3?At:Cr,Fi>1?Ar:Xt);while((Fi=(Fi+Qi+4)%4)!==Qn);else on.point(Yi[0],Yi[1])}function Xi(Nn,Yi){return v(Nn[0]-At)0?0:3:v(Nn[0]-Cr)0?2:1:v(Nn[1]-Xt)0?1:0:Yi>0?3:2}function dn(Nn,Yi){return wn(Nn.x,Yi.x)}function wn(Nn,Yi){var Qi=Xi(Nn,1),on=Xi(Yi,1);return Qi!==on?Qi-on:Qi===0?Yi[1]-Nn[1]:Qi===1?Nn[0]-Yi[0]:Qi===2?Nn[1]-Yi[1]:Yi[0]-Nn[0]}return function(Nn){var Yi=Nn,Qi=ma(),on,Fi,Qn,Ca,Ra,La,Na,Yn,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;noAr&&(Uc-Nc)*(Ar-pu)>(xu-pu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-pu)<(xu-pu)*(At-Nc)&&--va;return va}function ws(){Yi=Qi,on=[],Fi=[],bo=!0}function Ho(){var va=as(),no=bo&&va,ys=(on=t.merge(on)).length;(no||ys)&&(Nn.polygonStart(),no&&(Nn.lineStart(),ki(null,null,1,Nn),Nn.lineEnd()),ys&&Xo(on,dn,va,ki,Nn),Nn.polygonEnd()),Yi=Nn,on=Fi=Qn=null}function ml(){Zo.point=Ls,Fi&&Fi.push(Qn=[]),Ka=!0,Dn=!1,Na=Yn=NaN}function Ws(){on&&(Ls(Ca,Ra),La&&Dn&&Qi.rejoin(),on.push(Qi.result())),Zo.point=Ss,Dn&&Yi.lineEnd()}function Ls(va,no){var ys=Kr(va,no);if(Fi&&Qn.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=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],Ql=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];Li(rs,Ql,At,Xt,Cr,Ar)?(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)}Na=va,Yn=no,Dn=ys}return Zo}}function Ma(){var At=0,Xt=0,Cr=960,Ar=500,Kr,ki,Xi;return Xi={stream:function(dn){return Kr&&ki===dn?Kr:Kr=$n(At,Xt,Cr,Ar)(ki=dn)},extent:function(dn){return arguments.length?(At=+dn[0][0],Xt=+dn[0][1],Cr=+dn[1][0],Ar=+dn[1][1],Kr=ki=null,Xi):[[At,Xt],[Cr,Ar]]}}}var _o=r(),No,po,Lo,ko={sphere:O,point:O,lineStart:Ds,lineEnd:O,polygonStart:O,polygonEnd:O};function Ds(){ko.point=ll,ko.lineEnd=Fs}function Fs(){ko.point=ko.lineEnd=O}function ll(At,Xt){At*=d,Xt*=d,No=At,po=x(Xt),Lo=p(Xt),ko.point=ul}function ul(At,Xt){At*=d,Xt*=d;var Cr=x(Xt),Ar=p(Xt),Kr=v(At-No),ki=p(Kr),Xi=x(Kr),dn=Ar*Xi,wn=Lo*Cr-po*Ar*ki,Nn=po*Cr+Lo*Ar*ki;_o.add(b(M(dn*dn+wn*wn),Nn)),No=At,po=Cr,Lo=Ar}function zl(At){return _o.reset(),H(At,ko),+_o}var us=[null,null],il={type:"LineString",coordinates:us};function As(At,Xt){return us[0]=At,us[1]=Xt,zl(il)}var cl={Feature:function(At,Xt){return zs(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var Cr=At.features,Ar=-1,Kr=Cr.length;++Ar0&&(Kr=As(At[ki],At[ki-1]),Kr>0&&Cr<=Kr&&Ar<=Kr&&(Cr+Ar-Kr)*(1-Math.pow((Cr-Ar)/Kr,2))o}).map(on)).concat(t.range(k(ki/Nn)*Nn,Kr,Nn).filter(function(Yn){return v(Yn%Qi)>o}).map(Fi))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[Qn(Ar).concat(Ca(Xi).slice(1),Qn(Cr).reverse().slice(1),Ca(dn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],Cr=+Yn[1][0],dn=+Yn[0][1],Xi=+Yn[1][1],Ar>Cr&&(Yn=Ar,Ar=Cr,Cr=Yn),dn>Xi&&(Yn=dn,dn=Xi,Xi=Yn),La.precision(Ra)):[[Ar,dn],[Cr,Xi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],ki=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),ki>Kr&&(Yn=ki,ki=Kr,Kr=Yn),La.precision(Ra)):[[Xt,ki],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Yi=+Yn[0],Qi=+Yn[1],La):[Yi,Qi]},La.stepMinor=function(Yn){return arguments.length?(wn=+Yn[0],Nn=+Yn[1],La):[wn,Nn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,on=Rn(ki,Kr,90),Fi=_a(Xt,At,Ra),Qn=Rn(dn,Xi,90),Ca=_a(Ar,Cr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ol(){return Vu()()}function xo(At,Xt){var Cr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,ki=Xt[1]*d,Xi=p(Ar),dn=x(Ar),wn=p(ki),Nn=x(ki),Yi=Xi*p(Cr),Qi=Xi*x(Cr),on=wn*p(Kr),Fi=wn*x(Kr),Qn=2*A(M(z(ki-Ar)+Xi*wn*z(Kr-Cr))),Ca=x(Qn),Ra=Qn?function(La){var Na=x(La*=Qn)/Ca,Yn=x(Qn-La)/Ca,Dn=Yn*Yi+Na*on,Ka=Yn*Qi+Na*Fi,bo=Yn*dn+Na*Nn;return[b(Ka,Dn)*h,b(bo,M(Dn*Dn+Ka*Ka))*h]}:function(){return[Cr*h,Ar*h]};return Ra.distance=Qn,Ra}function Kl(At){return At}var Ns=r(),Hl=r(),ac,aa,Oo,qo,ql={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ql.lineStart=Pc,ql.lineEnd=Vf},polygonEnd:function(){ql.lineStart=ql.lineEnd=ql.point=O,Ns.add(v(Hl)),Hl.reset()},result:function(){var At=Ns/2;return Ns.reset(),At}};function Pc(){ql.point=Do}function Do(At,Xt){ql.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Vf(){rf(ac,aa)}var pl=1/0,Zc=pl,Jl=-pl,Os=Jl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[pl,Zc],[Jl,Os]];return Jl=Os=-(Zc=pl=1/0),At}};function oc(At,Xt){AtJl&&(Jl=At),XtOs&&(Os=Xt)}var Cf=0,sc=0,jh=0,Lf=0,cs=0,nf=0,Gf=0,$l=0,fl=0,lc,Fu,Es,Hs,Go={point:ps,lineStart:uc,lineEnd:qs,polygonStart:function(){Go.lineStart=od,Go.lineEnd=Po},polygonEnd:function(){Go.point=ps,Go.lineStart=uc,Go.lineEnd=qs},result:function(){var At=fl?[Gf/fl,$l/fl]:nf?[Lf/nf,cs/nf]:jh?[Cf/jh,sc/jh]:[NaN,NaN];return Cf=sc=jh=Lf=cs=nf=Gf=$l=fl=0,At}};function ps(At,Xt){Cf+=At,sc+=Xt,++jh}function uc(){Go.point=xl}function xl(At,Xt){Go.point=Gu,ps(Es=At,Hs=Xt)}function Gu(At,Xt){var Cr=At-Es,Ar=Xt-Hs,Kr=M(Cr*Cr+Ar*Ar);Lf+=Kr*(Es+At)/2,cs+=Kr*(Hs+Xt)/2,nf+=Kr,ps(Es=At,Hs=Xt)}function qs(){Go.point=ps}function od(){Go.point=sd}function Po(){Ko(lc,Fu)}function sd(At,Xt){Go.point=Ko,ps(lc=Es=At,Fu=Hs=Xt)}function Ko(At,Xt){var Cr=At-Es,Ar=Xt-Hs,Kr=M(Cr*Cr+Ar*Ar);Lf+=Kr*(Es+At)/2,cs+=Kr*(Hs+Xt)/2,nf+=Kr,Kr=Hs*At-Es*Xt,Gf+=Kr*(Es+At),$l+=Kr*(Hs+Xt),fl+=Kr*3,ps(Es=At,Hs=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,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(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,bl,Hf,Ic,yf,Bl={point:O,lineStart:function(){Bl.point=Ah},lineEnd:function(){Hu&&Qf(bl,Hf),Bl.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function Ah(At,Xt){Bl.point=Qf,bl=Ic=At,Hf=yf=Xt}function Qf(At,Xt){Ic-=At,yf-=Xt,af.add(M(Ic*Ic+yf*yf)),Ic=At,yf=Xt}function _f(){this._string=[]}_f.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,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(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var Cr=4.5,Ar,Kr;function ki(Xi){return Xi&&(typeof Cr=="function"&&Kr.pointRadius(+Cr.apply(this,arguments)),H(Xi,Ar(Kr))),Kr.result()}return ki.area=function(Xi){return H(Xi,Ar(ql)),ql.result()},ki.measure=function(Xi){return H(Xi,Ar(Bl)),Bl.result()},ki.bounds=function(Xi){return H(Xi,Ar(yu)),yu.result()},ki.centroid=function(Xi){return H(Xi,Ar(Go)),Go.result()},ki.projection=function(Xi){return arguments.length?(Ar=Xi==null?(At=null,Kl):(At=Xi).stream,ki):At},ki.context=function(Xi){return arguments.length?(Kr=Xi==null?(Xt=null,new _f):new Pa(Xt=Xi),typeof Cr!="function"&&Kr.pointRadius(Cr),ki):Xt},ki.pointRadius=function(Xi){return arguments.length?(Cr=typeof Xi=="function"?Xi:(Kr.pointRadius(+Xi),+Xi),ki):Cr},ki.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var Cr=new jf;for(var Ar in At)Cr[Ar]=At[Ar];return Cr.stream=Xt,Cr}}function jf(){}jf.prototype={constructor:jf,point:function(At,Xt){this.stream.point(At,Xt)},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(At,Xt,Cr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),H(Cr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,Cr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],ki=Xt[1][1]-Xt[0][1],Xi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),ki/(Ar[1][1]-Ar[0][1])),dn=+Xt[0][0]+(Kr-Xi*(Ar[1][0]+Ar[0][0]))/2,wn=+Xt[0][1]+(ki-Xi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Xi).translate([dn,wn])},Cr)}function Nl(At,Xt,Cr){return of(At,[[0,0],Xt],Cr)}function Kc(At,Xt,Cr){return cc(At,function(Ar){var Kr=+Xt,ki=Kr/(Ar[1][0]-Ar[0][0]),Xi=(Kr-ki*(Ar[1][0]+Ar[0][0]))/2,dn=-ki*Ar[0][1];At.scale(150*ki).translate([Xi,dn])},Cr)}function Rc(At,Xt,Cr){return cc(At,function(Ar){var Kr=+Xt,ki=Kr/(Ar[1][1]-Ar[0][1]),Xi=-ki*Ar[0][0],dn=(Kr-ki*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*ki).translate([Xi,dn])},Cr)}var gs=16,Wf=p(30*d);function Wh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,Cr){Xt=At(Xt,Cr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function Cr(Ar,Kr,ki,Xi,dn,wn,Nn,Yi,Qi,on,Fi,Qn,Ca,Ra){var La=Nn-Ar,Na=Yi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&Ca--){var Dn=Xi+on,Ka=dn+Fi,bo=wn+Qn,Zo=M(Dn*Dn+Ka*Ka+bo*bo),Ss=A(bo/=Zo),as=v(v(bo)-1)Xt||v((La*Ws+Na*Ls)/Yn-.5)>.3||Xi*on+dn*Fi+wn*Qn2?va[2]%360*d:0,Ws()):[dn*h,wn*h,Nn*h]},Ho.angle=function(va){return arguments.length?(Qi=va%360*d,Ws()):Qi*h},Ho.reflectX=function(va){return arguments.length?(on=va?-1:1,Ws()):on<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()):M(Ka)},Ho.fitExtent=function(va,no){return of(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(Cr,0,0,on,Fi,Qi).apply(null,Xt(ki,Xi)),no=(Qi?js:ih)(Cr,Ar-va[0],Kr-va[1],on,Fi,Qi);return Yi=Oi(dn,wn,Nn),Zo=ri(Xt,no),Ss=ri(Yi,Zo),bo=Wh(Zo,Ka),Ls()}function Ls(){return as=ws=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&ml,Ws()}}function ks(At){var Xt=0,Cr=l/3,Ar=Dc(At),Kr=Ar(Xt,Cr);return Kr.parallels=function(ki){return arguments.length?Ar(Xt=ki[0]*d,Cr=ki[1]*d):[Xt*h,Cr*h]},Kr}function bc(At){var Xt=p(At);function Cr(Ar,Kr){return[Ar*Xt,x(Kr)/Xt]}return Cr.invert=function(Ar,Kr){return[Ar/Xt,A(Kr*Xt)]},Cr}function hu(At,Xt){var Cr=x(At),Ar=(Cr+x(Xt))/2;if(v(Ar)=.12&&Ra<.234&&Ca>=-.425&&Ca<-.214?Kr:Ra>=.166&&Ra<.234&&Ca>=-.214&&Ca<-.115?Xi:Cr).invert(on)},Yi.stream=function(on){return At&&Xt===on?At:At=nh([Cr.stream(Xt=on),Kr.stream(on),Xi.stream(on)])},Yi.precision=function(on){return arguments.length?(Cr.precision(on),Kr.precision(on),Xi.precision(on),Qi()):Cr.precision()},Yi.scale=function(on){return arguments.length?(Cr.scale(on),Kr.scale(on*.35),Xi.scale(on),Yi.translate(Cr.translate())):Cr.scale()},Yi.translate=function(on){if(!arguments.length)return Cr.translate();var Fi=Cr.scale(),Qn=+on[0],Ca=+on[1];return Ar=Cr.translate(on).clipExtent([[Qn-.455*Fi,Ca-.238*Fi],[Qn+.455*Fi,Ca+.238*Fi]]).stream(Nn),ki=Kr.translate([Qn-.307*Fi,Ca+.201*Fi]).clipExtent([[Qn-.425*Fi+o,Ca+.12*Fi+o],[Qn-.214*Fi-o,Ca+.234*Fi-o]]).stream(Nn),dn=Xi.translate([Qn-.205*Fi,Ca+.212*Fi]).clipExtent([[Qn-.214*Fi+o,Ca+.166*Fi+o],[Qn-.115*Fi-o,Ca+.234*Fi-o]]).stream(Nn),Qi()},Yi.fitExtent=function(on,Fi){return of(Yi,on,Fi)},Yi.fitSize=function(on,Fi){return Nl(Yi,on,Fi)},Yi.fitWidth=function(on,Fi){return Kc(Yi,on,Fi)},Yi.fitHeight=function(on,Fi){return Rc(Yi,on,Fi)};function Qi(){return At=Xt=null,Yi}return Yi.scale(1070)}function zu(At){return function(Xt,Cr){var Ar=p(Xt),Kr=p(Cr),ki=At(Ar*Kr);return[ki*Kr*x(Xt),ki*x(Cr)]}}function Fc(At){return function(Xt,Cr){var Ar=M(Xt*Xt+Cr*Cr),Kr=At(Ar),ki=x(Kr),Xi=p(Kr);return[b(Xt*ki,Ar*Xi),A(Ar&&Cr*ki/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*A(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var xf=zu(function(At){return(At=P(At))&&At/x(At)});xf.invert=Fc(function(At){return At});function Pf(){return Eu(xf).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,T(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*_(E(Xt))-u]};function bf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),Cr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,ki=Xt.clipExtent,Xi=null,dn,wn,Nn;Xt.scale=function(Qi){return arguments.length?(Ar(Qi),Yi()):Ar()},Xt.translate=function(Qi){return arguments.length?(Kr(Qi),Yi()):Kr()},Xt.center=function(Qi){return arguments.length?(Cr(Qi),Yi()):Cr()},Xt.clipExtent=function(Qi){return arguments.length?(Qi==null?Xi=dn=wn=Nn=null:(Xi=+Qi[0][0],dn=+Qi[0][1],wn=+Qi[1][0],Nn=+Qi[1][1]),Yi()):Xi==null?null:[[Xi,dn],[wn,Nn]]};function Yi(){var Qi=l*Ar(),on=Xt(yn(Xt.rotate()).invert([0,0]));return ki(Xi==null?[[on[0]-Qi,on[1]-Qi],[on[0]+Qi,on[1]+Qi]]:At===Ou?[[Math.max(on[0]-Qi,Xi),dn],[Math.min(on[0]+Qi,wn),Nn]]:[[Xi,Math.max(on[1]-Qi,dn)],[wn,Math.min(on[1]+Qi,Nn)]])}return Yi()}function lf(At){return g((u+At)/2)}function Xh(At,Xt){var Cr=p(At),Ar=At===Xt?x(At):T(Cr/p(Xt))/T(lf(Xt)/lf(At)),Kr=Cr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function ki(Xi,dn){Kr>0?dn<-u+o&&(dn=-u+o):dn>u-o&&(dn=u-o);var wn=Kr/L(lf(dn),Ar);return[wn*x(Ar*Xi),Kr-wn*p(Ar*Xi)]}return ki.invert=function(Xi,dn){var wn=Kr-dn,Nn=C(Ar)*M(Xi*Xi+wn*wn),Yi=b(Xi,v(wn))*C(wn);return wn*Ar<0&&(Yi-=l*C(Xi)*C(wn)),[Yi/Ar,2*_(L(Kr/Nn,1/Ar))-u]},ki}function If(){return ks(Xh).scale(109.5).parallels([30,30])}function Cs(At,Xt){return[At,Xt]}Cs.invert=Cs;function du(){return Eu(Cs).scale(152.63)}function ku(At,Xt){var Cr=p(At),Ar=At===Xt?x(At):(Cr-p(Xt))/(Xt-At),Kr=Cr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(ki=Cr*Cr)*(-.131979+ki*(-.013791+ki*ki*ki*(.003971-.001529*ki)))),Cr]};function Tc(){return Eu(Oc).scale(175.295)}function wl(At,Xt){return[p(Xt)*x(At),x(Xt)]}wl.invert=Fc(A);function vu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var Cr=p(Xt),Ar=1+p(At)*Cr;return[Cr*x(At)/Ar,x(Xt)/Ar]}qc.invert=Fc(function(At){return 2*_(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[T(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*_(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,Cr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?Cr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=Cr(),[Ar[0],Ar[1],Ar[2]-90])},Cr([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=Er,e.geoCircle=ua,e.geoClipAntimeridian=Jr,e.geoClipCircle=Mn,e.geoClipExtent=Ma,e.geoClipRectangle=$n,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=uf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Cs,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=Ol,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=bf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=vu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=H,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var qDe=ye((FF,ODe)=>{(function(e,t){typeof FF=="object"&&typeof ODe!="undefined"?t(FF,NZ(),dk()):t(e.d3=e.d3||{},e.d3,e.d3)})(FF,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},_=Math.sin,b=Math.tan,p=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,x=Math.SQRT1_2,C=G(2),M=G(E),g=E*2,P=180/E,A=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?T:ve<-1?-T:Math.asin(ve)}function U(ve){return ve>1?0:ve<-1?E: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 oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function qe(et,Xe){var it=o(et),Ft=o(Xe),Ht=_(Xe),tr=Ft*it,dr=-((1-tr?u((1+tr)/2)/(1-tr):-.5)+Re/(1+tr));return[dr*Ft*_(et),dr*Ht]}return qe.invert=function(et,Xe){var it=G(et*et+Xe*Xe),Ft=-ve/2,Ht=50,tr;if(!it)return[0,0];do{var dr=Ft/2,Sr=o(dr),Or=_(dr),Wr=Or/Sr,ni=-u(n(Sr));Ft-=tr=(2/Wr*ni-Re*Wr-it)/(-ni/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(tr)>p&&--Ht>0);var Pi=_(Ft);return[a(et*Pi,it*o(Ft)),O(Xe*Pi/it)]},qe}function _e(){var ve=T,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(qe){return arguments.length?be(ve=qe*A):ve*P},Re.scale(179.976).clipAngle(147)}function Ce(ve,be){var Re=o(be),qe=z(U(Re*o(ve/=2)));return[2*Re*_(ve)*qe,_(be)*qe]}Ce.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,qe=be,et=25;do{var Xe=_(Re),it=_(Re/2),Ft=o(Re/2),Ht=_(qe),tr=o(qe),dr=_(2*qe),Sr=Ht*Ht,Or=tr*tr,Wr=it*it,ni=1-Or*Ft*Ft,Pi=ni?U(tr*Ft)*G(cn=1/ni):cn=0,cn,ln=2*Pi*tr*it-ve,Cn=Pi*Ht-be,Kn=cn*(Or*Wr+Pi*tr*Ft*Sr),Aa=cn*(.5*Xe*dr-Pi*2*Ht*it),fa=cn*.25*(dr*it-Pi*Ht*Or*Xe),$a=cn*(Sr*Ft+Pi*Wr*tr),Co=Aa*fa-$a*Kn;if(!Co)break;var Qa=(Cn*Aa-ln*$a)/Co,mo=(ln*fa-Cn*Kn)/Co;Re-=Qa,qe-=mo}while((n(Qa)>p||n(mo)>p)&&--et>0);return[Re,qe]}};function Le(){return t.geoProjection(Ce).scale(152.63)}function ge(ve){var be=_(ve),Re=o(ve),qe=ve>=0?1:-1,et=b(qe*ve),Xe=(1+be-Re)/2;function it(Ft,Ht){var tr=o(Ht),dr=o(Ft/=2);return[(1+tr)*_(Ft),(qe*Ht>-a(dr,et)-.001?0:-qe*10)+Xe+_(Ht)*Re-(1+tr)*be*dr]}return it.invert=function(Ft,Ht){var tr=0,dr=0,Sr=50;do{var Or=o(tr),Wr=_(tr),ni=o(dr),Pi=_(dr),cn=1+ni,ln=cn*Wr-Ft,Cn=Xe+Pi*Re-cn*be*Or-Ht,Kn=cn*Or/2,Aa=-Wr*Pi,fa=be*cn*Wr/2,$a=Re*ni+be*Or*Pi,Co=Aa*fa-$a*Kn,Qa=(Cn*Aa-ln*$a)/Co/2,mo=(ln*fa-Cn*Kn)/Co;n(mo)>2&&(mo/=2),tr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return qe*dr>-a(o(tr),et)-.001?[tr*2,dr]:null},it}function ie(){var ve=20*A,be=ve>=0?1:-1,Re=b(be*ve),qe=t.geoProjectionMutator(ge),et=qe(ve),Xe=et.stream;return et.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*A)>=0?1:-1)*ve),qe(ve)):ve*P},et.stream=function(it){var Ft=et.rotate(),Ht=Xe(it),tr=(et.rotate([0,0]),Xe(it)),dr=et.precision();return et.rotate(Ft),Ht.sphere=function(){tr.polygonStart(),tr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)tr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)tr.point(Sr,be*-a(o(Sr*A/2),Re)*P);tr.lineEnd(),tr.polygonEnd()},Ht},et.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),qe=G(1-Re*Re),et=1+qe*o(ve/=2),Xe=_(ve)*qe/et,it=Re/et,Ft=Xe*Xe,Ht=it*it;return[4/3*Xe*(3+Ft-3*Ht),4/3*it*(3+3*Ft-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,qe=be*be,et=1+Re+qe,Xe=G((et-G(et*et-4*be*be))/2),it=O(Xe)/3,Ft=Xe?re(n(be/Xe))/3:H(n(ve))/3,Ht=o(it),tr=N(Ft),dr=tr*tr-Ht*Ht;return[v(ve)*2*a(j(Ft)*Ht,.25-dr),v(be)*2*a(tr*_(it),.25+dr)]};function Ee(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),Be=u(1+C);function Pe(ve,be){var Re=n(be);return Rek&&--qe>0);return[ve/(o(Re)*(Ae-1/_(Re))),v(be)*Re]};function me(){return t.geoProjection(Pe).scale(112.314)}function De(ve){var be=2*E/ve;function Re(qe,et){var Xe=t.geoAzimuthalEquidistantRaw(qe,et);if(n(qe)>T){var it=a(Xe[1],Xe[0]),Ft=G(Xe[0]*Xe[0]+Xe[1]*Xe[1]),Ht=be*d((it-T)/be)+T,tr=a(_(it-=Ht),2-o(it));it=Ht+O(E/Ft*_(tr))-tr,Xe[0]=Ft*o(it),Xe[1]=Ft*_(it)}return Xe}return Re.invert=function(qe,et){var Xe=G(qe*qe+et*et);if(Xe>T){var it=a(et,qe),Ft=be*d((it-T)/be)+T,Ht=it>Ft?-1:1,tr=Xe*o(Ft-it),dr=1/b(Ht*U((tr-E)/G(E*(E-2*tr)+Xe*Xe)));it=Ft+2*i((dr+Ht*G(dr*dr-3))/3),qe=Xe*o(it),et=Xe*_(it)}return t.geoAzimuthalEquidistantRaw.invert(qe,et)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(De),Re=be(ve),qe=Re.stream,et=.01,Xe=-o(et*A),it=_(et*A);return Re.lobes=function(Ft){return arguments.length?be(ve=+Ft):ve},Re.stream=function(Ft){var Ht=Re.rotate(),tr=qe(Ft),dr=(Re.rotate([0,0]),qe(Ft));return Re.rotate(Ht),tr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,Wr=2*E/ve,ni=90-180/ve,Pi=T;Sr0&&n(et)>p);return qe<0?NaN:Re}function ot(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=k),function(qe,et,Xe,it){var Ft,Ht,tr;Xe=Xe===void 0?0:+Xe,it=it===void 0?0:+it;for(var dr=0;drFt){Xe-=Ht/=2,it-=tr/=2;continue}Ft=ni;var Pi=(Xe>0?-1:1)*Re,cn=(it>0?-1:1)*Re,ln=ve(Xe+Pi,it),Cn=ve(Xe,it+cn),Kn=(ln[0]-Sr[0])/Pi,Aa=(ln[1]-Sr[1])/Pi,fa=(Cn[0]-Sr[0])/cn,$a=(Cn[1]-Sr[1])/cn,Co=$a*Kn-Aa*fa,Qa=(n(Co)<.5?.5:1)/Co;if(Ht=(Wr*fa-Or*$a)*Qa,tr=(Or*Aa-Wr*Kn)*Qa,Xe+=Ht,it+=tr,n(Ht)0&&(Ft[1]*=1+Ht/1.5*Ft[0]*Ft[0]),Ft}return qe.invert=ot(qe),qe}function Wt(){return t.geoProjection(ut()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*_(be),qe=30,et;do be-=et=(be+_(be)-Re)/(1+o(be));while(n(et)>p&&--qe>0);return be/2}function $t(ve,be,Re){function qe(et,Xe){return[ve*et*o(Xe=Nt(Re,Xe)),be*_(Xe)]}return qe.invert=function(et,Xe){return Xe=O(Xe/be),[et/(ve*o(Xe)),O((2*Xe+_(2*Xe))/Re)]},qe}var sr=$t(C/T,C,E);function Tr(){return t.geoProjection(sr).scale(169.529)}var fr=2.00276,$e=1.11072;function St(ve,be){var Re=Nt(E,be);return[fr*ve/(1/o(be)+$e/o(Re)),(be+C*_(Re))/fr]}St.invert=function(ve,be){var Re=fr*be,qe=be<0?-L:L,et=25,Xe,it;do it=Re-C*_(qe),qe-=Xe=(_(2*qe)+2*qe-E*_(it))/(2*o(2*qe)+2+E*o(it)*C*o(qe));while(n(Xe)>p&&--et>0);return it=Re-C*_(qe),[ve*(1/o(it)+$e/o(qe))/fr,it]};function Qt(){return t.geoProjection(St).scale(160.857)}function Gt(ve){var be=0,Re=t.geoProjectionMutator(ve),qe=Re(be);return qe.parallel=function(et){return arguments.length?Re(be=et*A):be*P},qe}function _t(ve,be){return[ve*o(be),be]}_t.invert=function(ve,be){return[ve/o(be),be]};function It(){return t.geoProjection(_t).scale(152.63)}function mt(ve){if(!ve)return _t;var be=1/b(ve);function Re(qe,et){var Xe=be+ve-et,it=Xe&&qe*o(et)/Xe;return[Xe*_(it),be-Xe*o(it)]}return Re.invert=function(qe,et){var Xe=G(qe*qe+(et=be-et)*et),it=be+ve-Xe;return[Xe/o(it)*a(qe,et),it]},Re}function er(){return Gt(mt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,qe){var et=T-qe,Xe=et&&Re*ve*_(et)/et;return[et*_(Xe)/ve,T-et*o(Xe)]}return be.invert=function(Re,qe){var et=Re*ve,Xe=T-qe,it=G(et*et+Xe*Xe),Ft=a(et,Xe);return[(it?it/_(it):1)*Ft/ve,T-it]},be}function wr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(158.837)}var Lr=$t(1,4/E,E);function ti(){return t.geoProjection(Lr).scale(152.63)}function Br(ve,be,Re,qe,et,Xe){var it=o(Xe),Ft;if(n(ve)>1||n(Xe)>1)Ft=U(Re*et+be*qe*it);else{var Ht=_(ve/2),tr=_(Xe/2);Ft=2*O(G(Ht*Ht+be*qe*tr*tr))}return n(Ft)>p?[Ft,a(qe*_(Xe),be*et-Re*qe*it)]:[0,0]}function Vr(ve,be,Re){return U((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var qe=[[ve[0],ve[1],_(ve[1]),o(ve[1])],[be[0],be[1],_(be[1]),o(be[1])],[Re[0],Re[1],_(Re[1]),o(Re[1])]],et=qe[2],Xe,it=0;it<3;++it,et=Xe)Xe=qe[it],et.v=Br(Xe[1]-et[1],et[3],et[2],Xe[3],Xe[2],Xe[0]-et[0]),et.point=[0,0];var Ft=Vr(qe[0].v[0],qe[2].v[0],qe[1].v[0]),Ht=Vr(qe[0].v[0],qe[1].v[0],qe[2].v[0]),tr=E-Ft;qe[2].point[1]=0,qe[0].point[0]=-(qe[1].point[0]=qe[0].v[0]/2);var dr=[qe[2].point[0]=qe[0].point[0]+qe[2].v[0]*o(Ft),2*(qe[0].point[1]=qe[1].point[1]=qe[2].v[0]*_(Ft))];function Sr(Or,Wr){var ni=_(Wr),Pi=o(Wr),cn=new Array(3),ln;for(ln=0;ln<3;++ln){var Cn=qe[ln];if(cn[ln]=Br(Wr-Cn[1],Cn[3],Cn[2],Pi,ni,Or-Cn[0]),!cn[ln][0])return Cn.point;cn[ln][1]=dt(cn[ln][1]-Cn.v[1])}var Kn=dr.slice();for(ln=0;ln<3;++ln){var Aa=ln==2?0:ln+1,fa=Vr(qe[ln].v[0],cn[ln][0],cn[Aa][0]);cn[ln][1]<0&&(fa=-fa),ln?ln==1?(fa=Ht-fa,Kn[0]-=cn[ln][0]*o(fa),Kn[1]-=cn[ln][0]*_(fa)):(fa=tr-fa,Kn[0]+=cn[ln][0]*o(fa),Kn[1]+=cn[ln][0]*_(fa)):(Kn[0]+=cn[ln][0]*o(fa),Kn[1]-=cn[ln][0]*_(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=A,ve[1]*=A,ve}function We(){return tt([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function tt(ve,be,Re){var qe=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),et=[-qe[0],-qe[1]],Xe=t.geoRotation(et),it=Ge(Je(Xe(ve)),Je(Xe(be)),Je(Xe(Re)));it.invert=ot(it);var Ft=t.geoProjection(it).rotate(et),Ht=Ft.center;return delete Ft.rotate,Ft.center=function(tr){return arguments.length?Ht(Xe(tr)):Xe.invert(Ht())},Ft.clipAngle(90)}function xt(ve,be){var Re=G(1-_(be));return[2/M*ve*Re,M*(1-Re)]}xt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(qe,et){return[qe,(qe?qe/_(qe):1)*(_(et)*o(qe)-be*o(et))]}return Re.invert=be?function(qe,et){qe&&(et*=_(qe)/qe);var Xe=o(qe);return[qe,2*a(G(Xe*Xe+be*be-et*et)-Xe,be-et)]}:function(qe,et){return[qe,O(qe?et*b(qe)/qe:et)]},Re}function ke(){return Gt(xe).scale(249.828).clipAngle(90)}var vt=G(3);function ir(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*_(be/3)]}ir.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ar(){return t.geoProjection(ir).scale(156.19)}function vr(ve){var be=o(ve);function Re(qe,et){return[qe*be,_(et)/be]}return Re.invert=function(qe,et){return[qe/be,O(et*be)]},Re}function ii(){return Gt(vr).parallel(38.58).scale(195.044)}function pi(ve){var be=o(ve);function Re(qe,et){return[qe*be,(1+be)*b(et/2)]}return Re.invert=function(qe,et){return[qe/be,i(et/(1+be))*2]},Re}function $r(){return Gt(pi).scale(124.75)}function di(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}di.invert=function(ve,be){var Re=G(8/(3*E)),qe=be/Re;return[ve/(Re*(1-n(qe)/E)),qe]};function ji(){return t.geoProjection(di).scale(165.664)}function In(ve,be){var Re=G(4-3*_(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}In.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wi(){return t.geoProjection(In).scale(165.664)}function On(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}On.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function qn(){return t.geoProjection(On).scale(180.739)}function Fn(ve,be){var Re=(2+T)*_(be);be/=2;for(var qe=0,et=1/0;qe<10&&n(et)>p;qe++){var Xe=o(be);be-=et=(be+_(be)*(Xe+2)-Re)/(2*Xe*(1+Xe))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*_(be)]}Fn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,qe=O(Re),et=o(qe);return[ve/(2/G(E*(4+E))*(1+et)),O((qe+Re*(et+2))/(2+T))]};function ra(){return t.geoProjection(Fn).scale(180.739)}function la(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}la.invert=function(ve,be){var Re=G(2+E),qe=be*Re/2;return[Re*ve/(1+o(qe)),qe]};function Ut(){return t.geoProjection(la).scale(173.044)}function wt(ve,be){for(var Re=(1+T)*_(be),qe=0,et=1/0;qe<10&&n(et)>p;qe++)be-=et=(be+_(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}wt.invert=function(ve,be){var Re=1+T,qe=G(Re/2);return[ve*2*qe/(1+o(be*=qe)),O((be+_(be))/Re)]};function rr(){return t.geoProjection(wt).scale(173.044)}var nr=3+2*C;function Er(ve,be){var Re=_(ve/=2),qe=o(ve),et=G(o(be)),Xe=o(be/=2),it=_(be)/(Xe+C*qe*et),Ft=G(2/(1+it*it)),Ht=G((C*Xe+(qe+Re)*et)/(C*Xe+(qe-Re)*et));return[nr*(Ft*(Ht-1/Ht)-2*u(Ht)),nr*(Ft*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(Xe=Se.invert(ve/1.2,be*1.065)))return null;var Re=Xe[0],qe=Xe[1],et=20,Xe;ve/=nr,be/=nr;do{var it=Re/2,Ft=qe/2,Ht=_(it),tr=o(it),dr=_(Ft),Sr=o(Ft),Or=o(qe),Wr=G(Or),ni=dr/(Sr+C*tr*Wr),Pi=ni*ni,cn=G(2/(1+Pi)),ln=C*Sr+(tr+Ht)*Wr,Cn=C*Sr+(tr-Ht)*Wr,Kn=ln/Cn,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,Co=cn*fa-2*u(Aa)-ve,Qa=cn*ni*$a-2*i(ni)-be,mo=dr&&x*Wr*Ht*Pi/dr,Bo=(C*tr*Sr+Wr)/(2*(Sr+C*tr*Wr)*(Sr+C*tr*Wr)*Wr),Ps=-.5*ni*cn*cn*cn,Ts=Ps*mo,wo=Ps*Bo,To=(To=2*Sr+C*Wr*(tr-Ht))*To*Aa,hl=(C*tr*Sr*Wr+Or)/To,Ul=-(C*Ht*dr)/(Wr*To),Lu=fa*Ts-2*hl/Aa+cn*(hl+hl/Kn),au=fa*wo-2*Ul/Aa+cn*(Ul+Ul/Kn),Js=ni*$a*Ts-2*mo/(1+Pi)+cn*$a*mo+cn*ni*(hl-hl/Kn),eu=ni*$a*wo-2*Bo/(1+Pi)+cn*$a*Bo+cn*ni*(Ul-Ul/Kn),dc=au*Js-eu*Lu;if(!dc)break;var Tl=(Qa*au-Co*eu)/dc,Al=(Co*Js-Qa*Lu)/dc;Re-=Tl,qe=c(-T,f(T,qe-Al))}while((n(Tl)>p||n(Al)>p)&&--et>0);return n(n(qe)-T)qe){var Sr=G(dr),Or=a(tr,Ht),Wr=Re*d(Or/Re),ni=Or-Wr,Pi=ve*o(ni),cn=(ve*_(ni)-ni*_(Pi))/(T-Pi),ln=Wa(ni,cn),Cn=(E-ve)/Fa(ln,Pi,E);Ht=Sr;var Kn=50,Aa;do Ht-=Aa=(ve+Fa(ln,Pi,Ht)*Cn-Sr)/(ln(Ht)*Cn);while(n(Aa)>p&&--Kn>0);tr=ni*_(Ht),Htqe){var Ht=G(Ft),tr=a(it,Xe),dr=Re*d(tr/Re),Sr=tr-dr;Xe=Ht*o(Sr),it=Ht*_(Sr);for(var Or=Xe-T,Wr=_(Xe),ni=it/Wr,Pi=Xep||n(ni)>p)&&--Pi>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ha(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var Mt=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function kr(){return t.geoProjection(Mt).scale(130.945)}function Jr(ve,be){var Re=ve*ve,qe=be*be;return[ve*(1-.162388*qe)*(.87-952426e-9*Re*Re),be*(1+qe/12)]}Jr.invert=function(ve,be){var Re=ve,qe=be,et=50,Xe;do{var it=qe*qe;qe-=Xe=(qe*(1+it/12)-be)/(1+it/4)}while(n(Xe)>p&&--et>0);et=50,ve/=1-.162388*it;do{var Ft=(Ft=Re*Re)*Ft;Re-=Xe=(Re*(.87-952426e-9*Ft)-ve)/(.87-.00476213*Ft)}while(n(Xe)>p&&--et>0);return[Re,qe]};function vi(){return t.geoProjection(Jr).scale(131.747)}var hn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function An(){return t.geoProjection(hn).scale(131.087)}function Mn(ve){var be=ve(T,0)[0]-ve(-T,0)[0];function Re(qe,et){var Xe=qe>0?-.5:.5,it=ve(qe+Xe*E,et);return it[0]-=Xe*be,it}return ve.invert&&(Re.invert=function(qe,et){var Xe=qe>0?-.5:.5,it=ve.invert(qe+Xe*be,et),Ft=it[0]-Xe*E;return Ft<-E?Ft+=2*E:Ft>E&&(Ft-=2*E),it[0]=Ft,it}),Re}function Li(ve,be){var Re=v(ve),qe=v(be),et=o(be),Xe=o(ve)*et,it=_(ve)*et,Ft=_(qe*be);ve=n(a(it,Ft)),be=O(Xe),n(ve-T)>p&&(ve%=T);var Ht=_n(ve>E/4?T-ve:ve,be);return ve>E/4&&(Ft=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Ft),Ht[0]*=Re,Ht[1]*=-qe,Ht}Li.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),qe=v(be),et=-Re*ve,Xe=-qe*be,it=Xe/et<1,Ft=ya(it?Xe:et,it?et:Xe),Ht=Ft[0],tr=Ft[1],dr=o(tr);return it&&(Ht=-T-Ht),[Re*(a(_(Ht)*dr,-_(tr))+E),qe*O(o(Ht)*dr)]};function _n(ve,be){if(be===T)return[0,0];var Re=_(be),qe=Re*Re,et=qe*qe,Xe=1+et,it=1+3*et,Ft=1-et,Ht=O(1/G(Xe)),tr=Ft+qe*Xe*Ht,dr=(1-Re)/tr,Sr=G(dr),Or=dr*Xe,Wr=G(Or),ni=Sr*Ft,Pi,cn;if(ve===0)return[0,-(ni+qe*Wr)];var ln=o(be),Cn=1/ln,Kn=2*Re*ln,Aa=(-3*qe+Ht*it)*Kn,fa=(-tr*ln-(1-Re)*Aa)/(tr*tr),$a=.5*fa/Sr,Co=Ft*$a-2*qe*Sr*Kn,Qa=qe*Xe*fa+dr*it*Kn,mo=-Cn*Kn,Bo=-Cn*Qa,Ps=-2*Cn*Co,Ts=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Pi=(ni+qe*G(Or*(1+et)-ni*ni))/(1+et),ve>E/4)return[Pi,Pi];var To=Pi,hl=.5*Pi;Pi=.5*(hl+To),cn=50;do{var Ul=G(Or-Pi*Pi),Lu=Pi*(Ps+mo*Ul)+Bo*O(Pi/Wr)-Ts;if(!Lu)break;Lu<0?hl=Pi:To=Pi,Pi=.5*(hl+To)}while(n(To-hl)>p&&--cn>0)}else{Pi=p,cn=25;do{var au=Pi*Pi,Js=G(Or-au),eu=Ps+mo*Js,dc=Pi*eu+Bo*O(Pi/Wr)-Ts,Tl=eu+(Bo-mo*au)/Js;Pi-=wo=Js?dc/Tl:0}while(n(wo)>p&&--cn>0)}return[Pi,-ni-qe*G(Or-Pi*Pi)]}function ya(ve,be){for(var Re=0,qe=1,et=.5,Xe=50;;){var it=et*et,Ft=G(et),Ht=O(1/G(1+it)),tr=1-it+et*(1+it)*Ht,dr=(1-Ft)/tr,Sr=G(dr),Or=dr*(1+it),Wr=Sr*(1-it),ni=Or-ve*ve,Pi=G(ni),cn=be+Wr+et*Pi;if(n(qe-Re)0?Re=et:qe=et,et=.5*(Re+qe)}if(!Xe)return null;var ln=O(Ft),Cn=o(ln),Kn=1/Cn,Aa=2*Ft*Cn,fa=(-3*et+Ht*(1+3*it))*Aa,$a=(-tr*Cn-(1-Ft)*fa)/(tr*tr),Co=.5*$a/Sr,Qa=(1-it)*Co-2*et*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Ps=-Kn*(et*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Pi)+Ps*O(ve/G(Or))),ln]}function $n(){return t.geoProjection(Mn(Li)).scale(239.75)}function Ma(ve,be,Re){var qe,et,Xe;return ve?(qe=_o(ve,Re),be?(et=_o(be,1-Re),Xe=et[1]*et[1]+Re*qe[0]*qe[0]*et[0]*et[0],[[qe[0]*et[2]/Xe,qe[1]*qe[2]*et[0]*et[1]/Xe],[qe[1]*et[1]/Xe,-qe[0]*qe[2]*et[0]*et[2]/Xe],[qe[2]*et[1]*et[2]/Xe,-Re*qe[0]*qe[1]*et[0]/Xe]]):[[qe[0],0],[qe[1],0],[qe[2],0]]):(et=_o(be,1-Re),[[0,et[0]/et[1]],[1/et[1],0],[et[2]/et[1],0]])}function _o(ve,be){var Re,qe,et,Xe,it;if(be=1-p)return Re=(1-be)/4,qe=N(ve),Xe=Z(ve),et=1/qe,it=qe*j(ve),[Xe+Re*(it-ve)/(qe*qe),et-Re*Xe*et*(it-ve),et+Re*Xe*et*(it+ve),2*i(s(ve))-T+Re*(it-ve)/qe];var Ft=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],tr=0;for(qe=G(1-be),it=1;n(Ht[tr]/Ft[tr])>p&&tr<8;)Re=Ft[tr++],Ht[tr]=(Re-qe)/2,Ft[tr]=(Re+qe)/2,qe=G(Re*qe),it*=2;et=it*Ft[tr]*ve;do Xe=Ht[tr]*_(qe=et)/Ft[tr],et=(O(Xe)+et)/2;while(--tr);return[_(et),Xe=o(et),Xe/o(et-qe),et]}function No(ve,be,Re){var qe=n(ve),et=n(be),Xe=j(et);if(qe){var it=1/_(qe),Ft=1/(b(qe)*b(qe)),Ht=-(Ft+Re*(Xe*Xe*it*it)-1+Re),tr=(Re-1)*Ft,dr=(-Ht+G(Ht*Ht-4*tr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Ft-1)/Re)),1-Re)*v(be)]}return[0,po(i(Xe),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,qe=G(1-be),et=G(be),Xe=0;n(et)>p;Xe++){if(ve%E){var it=i(qe*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;et=(Re+qe)/2,qe=G(Re*qe),et=((Re=et)-qe)/2}return ve/(h(2,Xe)*Re)}function Lo(ve,be){var Re=(C-1)/(C+1),qe=G(1-Re*Re),et=po(T,qe*qe),Xe=-1,it=u(b(E/4+n(be)/2)),Ft=s(Xe*it)/G(Re),Ht=ko(Ft*o(Xe*ve),Ft*_(Xe*ve)),tr=No(Ht[0],Ht[1],qe*qe);return[-tr[1],(be>=0?1:-1)*(.5*et-tr[0])]}function ko(ve,be){var Re=ve*ve,qe=be+1,et=1-Re-be*be;return[.5*((ve>=0?T:-T)-a(et,2*ve)),-.25*u(et*et+4*Re)+.5*u(qe*qe+Re)]}function Ds(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(C-1)/(C+1),qe=G(1-Re*Re),et=po(T,qe*qe),Xe=-1,it=Ma(.5*et-be,-ve,qe*qe),Ft=Ds(it[0],it[1]),Ht=a(Ft[1],Ft[0])/Xe;return[Ht,2*i(s(.5/Xe*u(Re*Ft[0]*Ft[0]+Re*Ft[1]*Ft[1])))-T]};function Fs(){return t.geoProjection(Mn(Lo)).scale(151.496)}function ll(ve){var be=_(ve),Re=o(ve),qe=ul(ve);qe.invert=ul(-ve);function et(Xe,it){var Ft=qe(Xe,it);Xe=Ft[0],it=Ft[1];var Ht=_(it),tr=o(it),dr=o(Xe),Sr=U(be*Ht+Re*tr*dr),Or=_(Sr),Wr=n(Or)>p?Sr/Or:1;return[Wr*Re*_(Xe),(n(Xe)>T?Wr:-Wr)*(be*tr-Re*Ht*dr)]}return et.invert=function(Xe,it){var Ft=G(Xe*Xe+it*it),Ht=-_(Ft),tr=o(Ft),dr=Ft*tr,Sr=-it*Ht,Or=Ft*be,Wr=G(dr*dr+Sr*Sr-Or*Or),ni=a(dr*Or+Sr*Wr,Sr*Or-dr*Wr),Pi=(Ft>T?-1:1)*a(Xe*Ht,Ft*o(ni)*tr+it*_(ni)*Ht);return qe.invert(Pi,ni)},et}function ul(ve){var be=_(ve),Re=o(ve);return function(qe,et){var Xe=o(et),it=o(qe)*Xe,Ft=_(qe)*Xe,Ht=_(et);return[a(Ft,it*Re-Ht*be),O(Ht*Re+it*be)]}}function zl(){var ve=0,be=t.geoProjectionMutator(ll),Re=be(ve),qe=Re.rotate,et=Re.stream,Xe=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Ft=Re.rotate();return be(ve=it*A).rotate(Ft)},Re.rotate=function(it){return arguments.length?(qe.call(Re,[it[0],it[1]-ve*P]),Xe.center([-it[0],-it[1]]),Re):(it=qe.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=et(it),it.sphere=function(){it.polygonStart();var Ft=.01,Ht=Xe.radius(90-Ft)().coordinates[0],tr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var us=3,il=O(1-1/us)*P,As=vr(0);function cl(ve){var be=il*A,Re=xt(E,be)[0]-xt(-E,be)[0],qe=As(0,be)[1],et=xt(0,be)[1],Xe=M-et,it=g/ve,Ft=4/g,Ht=qe+Xe*Xe*4/g;function tr(dr,Sr){var Or,Wr=n(Sr);if(Wr>be){var ni=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ni*it,Or=xt(dr,Wr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ni*g/ve,Or[1]=qe+(Or[1]-et)*4*Xe/g,Sr<0&&(Or[1]=-Or[1])}else Or=As(dr,Sr);return Or[0]*=Ft,Or[1]/=Ht,Or}return tr.invert=function(dr,Sr){dr/=Ft,Sr*=Ht;var Or=n(Sr);if(Or>qe){var Wr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-Wr*it)*Re/g;var ni=xt.invert(dr,.25*(Or-qe)*g/Xe+et);return ni[0]-=E*(ve-1)/ve-Wr*it,Sr<0&&(ni[1]=-ni[1]),ni}return As.invert(dr,Sr)},tr}function Ks(ve,be){return[ve,be&1?90-p:il]}function zs(ve,be){return[ve,be&1?-90+p:-il]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function ls(ve){var be=[].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?be.map(Io):be]}}function Yl(){var ve=4,be=t.geoProjectionMutator(cl),Re=be(ve),qe=Re.stream;return Re.lobes=function(et){return arguments.length?be(ve=+et):ve},Re.stream=function(et){var Xe=Re.rotate(),it=qe(et),Ft=(Re.rotate([0,0]),qe(et));return Re.rotate(Xe),it.sphere=function(){t.geoStream(ls(180/ve),Ft)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=_(1/be),qe=O(Re),et=2*G(E/(Xe=E+4*qe*be)),Xe,it=.5*et*(be+G(ve*(2+ve))),Ft=ve*ve,Ht=be*be;function tr(dr,Sr){var Or=1-_(Sr),Wr,ni;if(Or&&Or<2){var Pi=T-Sr,cn=25,ln;do{var Cn=_(Pi),Kn=o(Pi),Aa=qe+a(Cn,be-Kn),fa=1+Ht-2*be*Kn;Pi-=ln=(Pi-Ft*qe-be*Cn+fa*Aa-.5*Or*Xe)/(2*be*Cn*Aa)}while(n(ln)>k&&--cn>0);Wr=et*G(fa),ni=dr*Aa/E}else Wr=et*(ve+Or),ni=dr*qe/E;return[Wr*_(ni),it-Wr*o(ni)]}return tr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,Wr=(1+Ht-Or/(et*et))/(2*be),ni=U(Wr),Pi=_(ni),cn=qe+a(Pi,be-Wr);return[O(dr/G(Or))*E/cn,O(1-2*(ni-Ft*qe-be*Pi+(1+Ht-2*be*Wr)*cn)/Xe)]},tr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(167.774).center([0,18.67])}var bs=.7109889596207567,Rn=.0528035274542;function _a(ve,be){return be>-bs?(ve=sr(ve,be),ve[1]+=Rn,ve):_t(ve,be)}_a.invert=function(ve,be){return be>-bs?sr.invert(ve,be-Rn):_t.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ol(ve,be){return n(be)>bs?(ve=sr(ve,be),ve[1]-=be>0?Rn:-Rn,ve):_t(ve,be)}Ol.invert=function(ve,be){return n(be)>bs?sr.invert(ve,be+(be>0?Rn:-Rn)):_t.invert(ve,be)};function xo(){return t.geoProjection(Ol).scale(152.63)}function Kl(ve,be,Re,qe){var et=G(4*E/(2*Re+(1+ve-be/2)*_(2*Re)+(ve+be)/2*_(4*Re)+be/2*_(6*Re))),Xe=G(qe*_(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Ft(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*_(2*Or)+(ve+be)/2*_(4*Or)+be/2*_(6*Or))/Re}function tr(Sr){return Ft(Sr)*_(Sr)}var dr=function(Sr,Or){var Wr=Re*Vt(Ht,it*_(Or)/Re,Or/E);isNaN(Wr)&&(Wr=Re*v(Or));var ni=et*Ft(Wr);return[ni*Xe*Sr/E*o(Wr),ni/Xe*_(Wr)]};return dr.invert=function(Sr,Or){var Wr=Vt(tr,Or*Xe/et);return[Sr*E/(o(Wr)*et*Xe*Ft(Wr)),O(Re*Ht(Wr/Re)/it)]},Re===0&&(et=G(qe/E),dr=function(Sr,Or){return[Sr*et,_(Or)/et]},dr.invert=function(Sr,Or){return[Sr/et,O(Or*et)]}),dr}function Ns(){var ve=1,be=0,Re=45*A,qe=2,et=t.geoProjectionMutator(Kl),Xe=et(ve,be,Re,qe);return Xe.a=function(it){return arguments.length?et(ve=+it,be,Re,qe):ve},Xe.b=function(it){return arguments.length?et(ve,be=+it,Re,qe):be},Xe.psiMax=function(it){return arguments.length?et(ve,be,Re=+it*A,qe):Re*P},Xe.ratio=function(it){return arguments.length?et(ve,be,Re,qe=+it):qe},Xe.scale(180.739)}function Hl(ve,be,Re,qe,et,Xe,it,Ft,Ht,tr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,Wr,ni,Pi,cn,ln,Cn,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),Wr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(Wr)){dr.nanEncountered=!0;return}return ni=Sr*(qe+4*Or+et)/12,Pi=Sr*(et+4*Wr+Xe)/12,cn=ni+Pi,Aa=(cn-it)/15,tr>Ht?(dr.maxDepthCount++,cn+Aa):Math.abs(Aa)>1;do Ht[cn]>Wr?Pi=cn:ni=cn,cn=ni+Pi>>1;while(cn>ni);var ln=Ht[cn+1]-Ht[cn];return ln&&(ln=(Wr-Ht[cn+1])/ln),(cn+1+ln)/it}var Sr=2*dr(1)/E*Xe/Re,Or=function(Wr,ni){var Pi=dr(n(_(ni))),cn=qe(Pi)*Wr;return Pi/=Sr,[cn,ni>=0?Pi:-Pi]};return Or.invert=function(Wr,ni){var Pi;return ni*=Sr,n(ni)<1&&(Pi=v(ni)*O(et(n(ni))*Xe)),[Wr/qe(n(ni)),Pi]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,qe=t.geoProjectionMutator(aa),et=qe(ve,be,Re);return et.alpha=function(Xe){return arguments.length?qe(ve=+Xe,be,Re):ve},et.k=function(Xe){return arguments.length?qe(ve,be=+Xe,Re):be},et.gamma=function(Xe){return arguments.length?qe(ve,be,Re=+Xe):Re},et.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],qe=Re[0][0],et=Re[0][1],Xe=Re[1][1],it=Re[2][0],Ft=Re[2][1],be.push(ql([[it-p,Ft-p],[it-p,Xe+p],[qe+p,Xe+p],[qe+p,et-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var qe,et;function Xe(Ht,tr){for(var dr=tr<0?-1:1,Sr=be[+(tr<0)],Or=0,Wr=Sr.length-1;OrSr[Or][2][0];++Or);var ni=ve(Ht-Sr[Or][1][0],tr);return ni[0]+=ve(Sr[Or][1][0],dr*tr>dr*Sr[Or][0][1]?Sr[Or][0][1]:tr)[0],ni}Re?Xe.invert=Re(Xe):ve.invert&&(Xe.invert=function(Ht,tr){for(var dr=et[+(tr<0)],Sr=be[+(tr<0)],Or=0,Wr=dr.length;Orni&&(Pi=Wr,Wr=ni,ni=Pi),[[Sr,Wr],[Or,ni]]})}),it):be.map(function(tr){return tr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-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(St,rf).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(Ol,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 Os(){return Do(sr,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(sr,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,ot).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(_t,jh).scale(152.63).rotate([-20,0])}function cs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}cs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(cs).scale(158.837)}function Gf(ve){function be(Re,qe){if(n(n(qe)-T)2)return null;Re/=2,qe/=2;var Xe=Re*Re,it=qe*qe,Ft=2*qe/(1+Xe+it);return Ft=h((1+Ft)/(1-Ft),1/ve),[a(2*Re,1-Xe-it)/ve,O((Ft-1)/(Ft+1))]},be}function $l(){var ve=.5,be=t.geoProjectionMutator(Gf),Re=be(ve);return Re.spacing=function(qe){return arguments.length?be(ve=+qe):ve},Re.scale(124.75)}var fl=E/C;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),qe=n(be),et=p,Xe=T;qep||n(cn)>p)&&--et>0);return et&&[Re,qe]};function Hs(){return t.geoProjection(Es).scale(139.98)}function Go(ve,be){return[_(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,qe=be*be,et=qe+1,Xe=Re+et,it=ve?x*G((Xe-G(Xe*Xe-4*Re))/Re):1/G(et);return[O(ve*it),v(be)*U(it)]};function ps(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function qe(et,Xe){var it=Xe-ve,Ft=n(it)=0;)dr=ve[tr],Sr=dr[0]+Ft*(Wr=Sr)-Ht*Or,Or=dr[1]+Ft*Or+Ht*Wr;return Sr=Ft*(Wr=Sr)-Ht*Or,Or=Ft*Or+Ht*Wr,[Sr,Or]}return Re.invert=function(qe,et){var Xe=20,it=qe,Ft=et;do{for(var Ht=be,tr=ve[Ht],dr=tr[0],Sr=tr[1],Or=0,Wr=0,ni;--Ht>=0;)tr=ve[Ht],Or=dr+it*(ni=Or)-Ft*Wr,Wr=Sr+it*Wr+Ft*ni,dr=tr[0]+it*(ni=dr)-Ft*Sr,Sr=tr[1]+it*Sr+Ft*ni;Or=dr+it*(ni=Or)-Ft*Wr,Wr=Sr+it*Wr+Ft*ni,dr=it*(ni=dr)-Ft*Sr-qe,Sr=it*Sr+Ft*ni-et;var Pi=Or*Or+Wr*Wr,cn,ln;it-=cn=(dr*Or+Sr*Wr)/Pi,Ft-=ln=(Sr*Or-dr*Wr)/Pi}while(n(cn)+n(ln)>p*p&&--Xe>0);if(Xe){var Cn=G(it*it+Ft*Ft),Kn=2*i(Cn*.5),Aa=_(Kn);return[a(it*Aa,Cn*o(Kn)),Cn?O(Ft*Aa/Cn):0]}},Re}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]],af=[[.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(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,be){var Re=t.geoProjection(od(ve)).rotate(be).clipAngle(90),qe=t.geoRotation(be),et=Re.center;return delete Re.rotate,Re.center=function(Xe){return arguments.length?et(qe(Xe)):qe.invert(et())},Re}var Ah=G(6),Qf=G(7);function _f(ve,be){var Re=O(7*_(be)/(3*Ah));return[Ah*ve*(2*o(2*Re/3)-1)/Qf,9*_(Re/3)/Qf]}_f.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(Ah*(2*o(2*Re/3)-1)),O(_(Re)*3*Ah/7)]};function Yc(){return t.geoProjection(_f).scale(164.859)}function eh(ve,be){for(var Re=(1+x)*_(be),qe=be,et=0,Xe;et<25&&(qe-=Xe=(_(qe/2)+_(qe)-Re)/(.5*o(qe/2)+o(qe)),!(n(Xe)k&&--qe>0);return Xe=Re*Re,it=Xe*Xe,Ft=Xe*it,[ve/(.84719-.13063*Xe+Ft*Ft*(-.04515+.05494*Xe-.02326*it+.00331*Ft)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Nl.invert=function(ve,be){for(var Re=be/2,qe=0,et=1/0;qe<10&&n(et)>p;++qe){var Xe=o(be/2);be-=et=(be-b(be/2)-Re)/(1-.5/(Xe*Xe))}return[2*ve/(1+o(be)),be]};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(je(1/0),Rc).rotate([20,0]).scale(152.63)}function Wf(ve,be){var Re=_(be),qe=o(be),et=v(ve);if(ve===0||n(be)===T)return[0,be];if(be===0)return[ve,0];if(n(ve)===T)return[ve*qe,T*Re];var Xe=E/(2*ve)-2*ve/E,it=2*be/E,Ft=(1-it*it)/(Re-it),Ht=Xe*Xe,tr=Ft*Ft,dr=1+Ht/tr,Sr=1+tr/Ht,Or=(Xe*Re/Ft-Xe/2)/dr,Wr=(tr*Re/Ht+Ft/2)/Sr,ni=Or*Or+qe*qe/dr,Pi=Wr*Wr-(tr*Re*Re/Ht+Ft*Re-1)/Sr;return[T*(Or+G(ni)*et),T*(Wr+G(Pi<0?0:Pi)*v(-be*Xe)*et)]}Wf.invert=function(ve,be){ve/=T,be/=T;var Re=ve*ve,qe=be*be,et=Re+qe,Xe=E*E;return[ve?(et-1+G((1-et)*(1-et)+4*Re))/(2*ve)*T:0,Vt(function(it){return et*(E*_(it)-2*it)*E+4*it*it*(be-_(it))+2*E*it-Xe*be},0)]};function Wh(){return t.geoProjection(Wf).scale(127.267)}var rh=1.0148,sf=.23185,Sh=-.14499,Mu=.02406,ih=rh,js=5*sf,Eu=7*Sh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(Sh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,qe;do{var et=Re*Re;Re-=qe=(Re*(rh+et*et*(sf+et*(Sh+Mu*et)))-be)/(ih+et*et*(js+et*(Eu+Dc*et)))}while(n(qe)>p);return[ve,Re]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--et>0);return it=b(qe),[(n(be)=0;)if(qe=be[Ft],Re[0]===qe[0]&&Re[1]===qe[1]){if(Xe)return[Xe,Re];Xe=Re}}}function jl(ve){for(var be=ve.length,Re=[],qe=ve[be-1],et=0;et0?[-qe[0],0]:[180-qe[0],180])};var be=If.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,qe){var et=be[Re];et&&(et.children||(et.children=[])).push(be[qe])}),xf(be[0],function(Re,qe){return be[Re<-E/2?qe<0?6:4:Re<0?qe<0?2:0:Reqe^Wr>qe&&Re<(Or-tr)*(qe-dr)/(Wr-dr)+tr&&(et=!et)}return et}function Wl(ve,be){var Re=be.stream,qe;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":qe=Zu;break;case"FeatureCollection":qe=ah;break;default:qe=Tc;break}return qe(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var wl=[],vu=[],qc={point:function(ve,be){wl.push([ve,be])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},cf={lineStart:Xu,point:function(ve,be){wl.push([ve,be])},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,be){wl.push([ve,be])},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=[],be=[];return vu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var qe=Re[0];ve.some(function(et){if(Zf(et[0],qe))return et.push(Re),!0})||ve.push([Re])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(T,0)[0]-ve(-T,0)[0];function Re(qe,et){var Xe=n(qe)0?qe-E:qe+E,et),Ft=(it[0]-it[1])*x,Ht=(it[0]+it[1])*x;if(Xe)return[Ft,Ht];var tr=be*x,dr=Ft>0^Ht>0?-1:1;return[dr*Ft-v(Ht)*tr,dr*Ht-v(Ft)*tr]}return ve.invert&&(Re.invert=function(qe,et){var Xe=(qe+et)*x,it=(et-qe)*x,Ft=n(Xe)<.5*be&&n(it)<.5*be;if(!Ft){var Ht=be*x,tr=Xe>0^it>0?-1:1,dr=-tr*qe+(it>0?1:-1)*Ht,Sr=-tr*et+(Xe>0?1:-1)*Ht;Xe=(-dr-Sr)*x,it=(dr-Sr)*x}var Or=ve.invert(Xe,it);return Ft||(Or[0]+=Xe>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(Li).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function Cr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(tr){var dr=tr.length,Sr=2,Or=new Array(dr);for(Or[0]=+tr[0].toFixed(be),Or[1]=+tr[1].toFixed(be);Sr2||Wr[0]!=dr[0]||Wr[1]!=dr[1])&&(Sr.push(Wr),dr=Wr)}return Sr.length===1&&tr.length>1&&Sr.push(Re(tr[tr.length-1])),Sr}function Xe(tr){return tr.map(et)}function it(tr){if(tr==null)return tr;var dr;switch(tr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:tr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(tr.coordinates)};break;case"MultiPoint":dr={type:tr.type,coordinates:qe(tr.coordinates)};break;case"LineString":dr={type:tr.type,coordinates:et(tr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:tr.type,coordinates:Xe(tr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:tr.coordinates.map(Xe)};break;default:return tr}return tr.bbox!=null&&(dr.bbox=tr.bbox),dr}function Ft(tr){var dr={type:"Feature",properties:tr.properties,geometry:it(tr.geometry)};return tr.id!=null&&(dr.id=tr.id),tr.bbox!=null&&(dr.bbox=tr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Ft(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Ft)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=_(ve);function Re(qe,et){var Xe=be?b(qe*be/2)/be:qe/2;if(!et)return[2*Xe,-ve];var it=2*i(Xe*_(et)),Ft=1/b(et);return[_(it)*Ft,et+(1-o(it))*Ft-ve]}return Re.invert=function(qe,et){if(n(et+=ve)p&&--Ft>0);var Or=qe*(tr=b(it)),Wr=b(n(et)0?T:-T)*(Ht+et*(dr-it)/2+et*et*(dr-2*Ht+it)/2)]}Xi.invert=function(ve,be){var Re=be/T,qe=Re*90,et=f(18,n(qe/5)),Xe=c(0,l(et));do{var it=ki[Xe][1],Ft=ki[Xe+1][1],Ht=ki[f(19,Xe+2)][1],tr=Ht-it,dr=Ht-2*Ft+it,Sr=2*(n(Re)-Ft)/tr,Or=dr/tr,Wr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(Wr>=0||Xe===1){qe=(be>=0?5:-5)*(Wr+et);var ni=50,Pi;do et=f(18,n(qe)/5),Xe=l(et),Wr=et-Xe,it=ki[Xe][1],Ft=ki[Xe+1][1],Ht=ki[f(19,Xe+2)][1],qe-=(Pi=(be>=0?T:-T)*(Ft+Wr*(Ht-it)/2+Wr*Wr*(Ht-2*Ft+it)/2)-be)*P;while(n(Pi)>k&&--ni>0);break}}while(--Xe>=0);var cn=ki[Xe][0],ln=ki[Xe+1][0],Cn=ki[f(19,Xe+2)][0];return[ve/(ln+Wr*(Cn-cn)/2+Wr*Wr*(Cn-2*ln+cn)/2),qe*A]};function dn(){return t.geoProjection(Xi).scale(152.63)}function wn(ve){function be(Re,qe){var et=o(qe),Xe=(ve-1)/(ve-et*o(Re));return[Xe*et*_(Re),Xe*_(qe)]}return be.invert=function(Re,qe){var et=Re*Re+qe*qe,Xe=G(et),it=(ve-G(1-et*(ve+1)/(ve-1)))/((ve-1)/Xe+Xe/(ve-1));return[a(Re*it,Xe*G(1-it*it)),Xe?O(qe*it/Xe):0]},be}function Nn(ve,be){var Re=wn(ve);if(!be)return Re;var qe=o(be),et=_(be);function Xe(it,Ft){var Ht=Re(it,Ft),tr=Ht[1],dr=tr*et/(ve-1)+qe;return[Ht[0]*qe/dr,tr/dr]}return Xe.invert=function(it,Ft){var Ht=(ve-1)/(ve-1-Ft*et);return Re.invert(Ht*it,Ht*Ft*qe)},Xe}function Yi(){var ve=2,be=0,Re=t.geoProjectionMutator(Nn),qe=Re(ve,be);return qe.distance=function(et){return arguments.length?Re(ve=+et,be):ve},qe.tilt=function(et){return arguments.length?Re(ve,be=et*A):be*P},qe.scale(432.147).clipAngle(U(1/ve)*P-1e-6)}var Qi=1e-4,on=1e4,Fi=-180,Qn=Fi+Qi,Ca=180,Ra=Ca-Qi,La=-90,Na=La+Qi,Yn=90,Dn=Yn-Qi;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*on)/on}function Zo(ve){return ve===La||ve===Yn?[0,ve]:[Fi,bo(ve)]}function Ss(ve){var be=ve[0],Re=ve[1],qe=!1;return be<=Qn?(be=Fi,qe=!0):be>=Ra&&(be=Ca,qe=!0),Re<=Na?(Re=La,qe=!0):Re>=Dn&&(Re=Yn,qe=!0),qe?[be,Re]:ve}function as(ve){return ve.map(Ss)}function ws(ve,be,Re){for(var qe=0,et=ve.length;qe=Ra||dr<=Na||dr>=Dn){Xe[it]=Ss(Ht);for(var Sr=it+1;SrQn&&WrNa&&ni=Ft)break;Re.push({index:-1,polygon:be,ring:Xe=Xe.slice(Sr-1)}),Xe[0]=Zo(Xe[0][1]),it=-1,Ft=Xe.length}}}}function Ho(ve){var be,Re=ve.length,qe={},et={},Xe,it,Ft,Ht,tr;for(be=0;be0?E-Ft:Ft)*P],tr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=tr.center;return delete tr.rotate,tr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},tr.clipAngle(90)}function rs(ve){var be=o(ve);function Re(qe,et){var Xe=t.geoGnomonicRaw(qe,et);return Xe[0]*=be,Xe}return Re.invert=function(qe,et){return t.geoGnomonicRaw.invert(qe/be,et)},Re}function Ql(){return Cu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cu(ve,be){return ys(rs,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,qe=ve*ve,et=b(Re),Xe=.5/_(Re);function it(Ft,Ht){var tr=U(o(Ht)*o(Ft-be)),dr=U(o(Ht)*o(Ft-Re)),Sr=Ht<0?-1:1;return tr*=tr,dr*=dr,[(tr-dr)/(2*ve),Sr*G(4*qe*dr-(qe-tr+dr)*(qe-tr+dr))/(2*ve)]}return it.invert=function(Ft,Ht){var tr=Ht*Ht,dr=o(G(tr+(Or=Ft+be)*Or)),Sr=o(G(tr+(Or=Ft+Re)*Or)),Or,Wr;return[a(Wr=dr-Sr,Or=(dr+Sr)*et),(Ht<0?-1:1)*U(G(Or*Or+Wr*Wr)*Xe)]},it}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,be){return ys(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Ft>0);return[v(ve)*(G(et*et+4)+et)*E/4,T*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,qe,et){function Xe(it,Ft){var Ht=Re*_(qe*Ft),tr=G(1-Ht*Ht),dr=G(2/(1+tr*o(it*=et)));return[ve*tr*dr*_(it),be*Ht*dr]}return Xe.invert=function(it,Ft){var Ht=it/ve,tr=Ft/be,dr=G(Ht*Ht+tr*tr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/et,dr&&O(Ft*_(Sr)/(be*Re*dr))/qe]},Xe}function w(ve,be,Re,qe){var et=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,T),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),qe=c(qe,p);var Xe=Re/100+1,it=qe/100,Ft=U(Xe*o(et))/et,Ht=_(ve)/_(Ft*T),tr=be/E,dr=G(it*_(ve/2)/_(be/2)),Sr=dr/G(tr*Ht*Ft),Or=1/(dr*G(tr*Ht*Ft));return ue(Sr,Or,Ht,Ft,tr)}function B(){var ve=65*A,be=60*A,Re=20,qe=200,et=t.geoProjectionMutator(w),Xe=et(ve,be,Re,qe);return Xe.poleline=function(it){return arguments.length?et(ve=+it*A,be,Re,qe):ve*P},Xe.parallels=function(it){return arguments.length?et(ve,be=+it*A,Re,qe):be*P},Xe.inflation=function(it){return arguments.length?et(ve,be,Re=+it,qe):Re},Xe.ratio=function(it){return arguments.length?et(ve,be,Re,qe=+it):qe},Xe.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),Oe=$t(le*G(3)/E,le,ee/6);function Ze(){return t.geoProjection(Oe).scale(176.84)}function st(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}st.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(st).scale(152.63)}function Yt(ve,be){var Re=o(be),qe=o(ve)*Re,et=1-qe,Xe=o(ve=a(_(ve)*Re,-_(be))),it=_(ve);return Re=G(1-qe*qe),[it*Re-Xe*et,-Xe*Re-it*et]}Yt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,qe=G(-Re*(2+Re)),et=be*Re+ve*qe,Xe=ve*Re-be*qe,it=G(Xe*Xe+et*et);return[a(qe*et,it*(1+Re)),it?-O(qe*Xe/it):0]};function Kt(){return t.geoProjection(Yt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Ce(ve,be);return[(Re[0]+ve/T)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,qe=be,et=25;do{var Xe=o(qe),it=_(qe),Ft=_(2*qe),Ht=it*it,tr=Xe*Xe,dr=_(Re),Sr=o(Re/2),Or=_(Re/2),Wr=Or*Or,ni=1-tr*Sr*Sr,Pi=ni?U(Xe*Sr)*G(cn=1/ni):cn=0,cn,ln=.5*(2*Pi*Xe*Or+Re/T)-ve,Cn=.5*(Pi*it+qe)-be,Kn=.5*cn*(tr*Wr+Pi*Xe*Sr*Ht)+.5/T,Aa=cn*(dr*Ft/4-Pi*it*Or),fa=.125*cn*(Ft*Or-Pi*it*tr*dr),$a=.5*cn*(Ht*Sr+Pi*Wr*Xe)+.5,Co=Aa*fa-$a*Kn,Qa=(Cn*Aa-ln*$a)/Co,mo=(ln*fa-Cn*Kn)/Co;Re-=Qa,qe-=mo}while((n(Qa)>p||n(mo)>p)&&--et>0);return[Re,qe]};function Ir(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=Le,e.geoAitoffRaw=Ce,e.geoArmadillo=ie,e.geoArmadilloRaw=ge,e.geoAugust=Ee,e.geoAugustRaw=Se,e.geoBaker=me,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=De,e.geoBertin1953=Wt,e.geoBertin1953Raw=ut,e.geoBoggs=Qt,e.geoBoggsRaw=St,e.geoBonne=er,e.geoBonneRaw=mt,e.geoBottomley=wr,e.geoBottomleyRaw=lr,e.geoBromley=ti,e.geoBromleyRaw=Lr,e.geoChamberlin=tt,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=We,e.geoCollignon=Ie,e.geoCollignonRaw=xt,e.geoCraig=ke,e.geoCraigRaw=xe,e.geoCraster=ar,e.geoCrasterRaw=ir,e.geoCylindricalEqualArea=ii,e.geoCylindricalEqualAreaRaw=vr,e.geoCylindricalStereographic=$r,e.geoCylindricalStereographicRaw=pi,e.geoEckert1=ji,e.geoEckert1Raw=di,e.geoEckert2=wi,e.geoEckert2Raw=In,e.geoEckert3=qn,e.geoEckert3Raw=On,e.geoEckert4=ra,e.geoEckert4Raw=Fn,e.geoEckert5=Ut,e.geoEckert5Raw=la,e.geoEckert6=rr,e.geoEckert6Raw=wt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=Er,e.geoFahey=Oi,e.geoFaheyRaw=Qr,e.geoFoucaut=tn,e.geoFoucautRaw=$i,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=fn,e.geoGilbert=ua,e.geoGingery=Xo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ha,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=kr,e.geoGinzburg6Raw=Mt,e.geoGinzburg8=vi,e.geoGinzburg8Raw=Jr,e.geoGinzburg9=An,e.geoGinzburg9Raw=hn,e.geoGringorten=$n,e.geoGringortenRaw=Li,e.geoGuyou=Fs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=je,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ll,e.geoHealpix=Yl,e.geoHealpixRaw=cl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=Ol,e.geoHufnagel=Ns,e.geoHufnagelRaw=Kl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Vf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=Os,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=Lf,e.geoKavrayskiy7=nf,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=qs,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=Tr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=_f,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=jf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,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=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=Cr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=dn,e.geoRobinsonRaw=Xi,e.geoSatellite=Yi,e.geoSatelliteRaw=Nn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=It,e.geoSinusoidalRaw=_t,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=Ua,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=Oe,e.geoWagner6=Tt,e.geoWagner6Raw=st,e.geoWiechel=Kt,e.geoWiechelRaw=Yt,e.geoWinkel3=Ir,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var GDe=ye((Imr,VDe)=>{"use strict";var nd=Oa(),UZ=Dr(),Ozt=qa(),r5=Math.PI/180,tw=180/Math.PI,GZ={cursor:"pointer"},HZ={cursor:"auto"};function qzt(e,t){var r=e.projection,n;return t._isScoped?n=Bzt:t._isClipped?n=Uzt:n=Nzt,n(e,r)}VDe.exports=qzt;function jZ(e,t){return nd.behavior.zoom().translate(t.translate()).scale(t.scale())}function WZ(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]=UZ.nestedProperty(o,h).get(),Ozt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=UZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),UZ.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 Bzt(e,t){var r=jZ(e,t);function n(){nd.select(this).style(GZ)}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(HZ),WZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function Nzt(e,t){var r=jZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){nd.select(this).style(GZ),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 E=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":-E[0]})}function p(){nd.select(this).style(HZ),h&&WZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",p),r}function Uzt(e,t){var r={r:t.rotate(),k:t.scale()},n=jZ(e,t),i=Yzt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){nd.select(this).style(GZ);var h=nd.mouse(this),d=t.rotate(),v=d,_=t.translate(),b=Vzt(d);s=zF(t,h),o.call(n,"zoom",function(){var p=nd.mouse(this);if(t.scale(r.k=nd.event.scale),!s)h=p,s=zF(t,h);else if(zF(t,p)){t.rotate(d).translate(_);var k=zF(t,p),E=Hzt(s,k),T=Wzt(Gzt(b,E)),L=r.r=jzt(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(HZ),o.call(n,"zoom",null),c(i.of(this,arguments)),WZ(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 zF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&Xzt(r)}function Vzt(e){var t=.5*e[0]*r5,r=.5*e[1]*r5,n=.5*e[2]*r5,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 Gzt(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 Hzt(e,t){if(!(!e||!t)){var r=Zzt(e,t),n=Math.sqrt(UDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,UDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function jzt(e,t,r){var n=VZ(t,2,e[0]);n=VZ(n,1,e[1]),n=VZ(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)*tw,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)*tw-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,_=(Math.atan2(u,s)-Math.atan2(o,h))*tw,b=(Math.atan2(u,s)-Math.atan2(o,-h))*tw,p=BDe(r[0],r[1],d,_),k=BDe(r[0],r[1],v,b);return p<=k?[d,_,r[2]]:[v,b,r[2]]}function BDe(e,t,r,n){var i=NDe(r-e),a=NDe(n-t);return Math.sqrt(i*i+a*a)}function NDe(e){return(e%360+540)%360-180}function VZ(e,t,r){var n=r*r5,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 Wzt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*tw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*tw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*tw]}function Xzt(e){var t=e[0]*r5,r=e[1]*r5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function UDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=Oa(),YZ=NZ(),Kzt=YZ.geoPath,Jzt=YZ.geoDistance,$zt=qDe(),Qzt=qa(),pk=Dr(),e7t=pk.strTranslate,OF=ka(),vk=So(),HDe=vf(),t7t=Mc(),ZZ=ho(),jDe=Mg().getAutoRange,XZ=yv(),r7t=Of().prepSelect,i7t=Of().clearOutline,n7t=Of().selectOnClick,a7t=GDe(),hp=ck(),o7t=hx(),XDe=bF(),s7t=SZ().feature;function ZDe(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=ZDe.prototype;YDe.exports=function(t){return new ZDe(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),t7t.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=l7t(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||{},_=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=jDe(r,u),c.range=jDe(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 E=o.type,T=hp.lonaxisSpan[E]/2||180,L=hp.lataxisSpan[E]/2||90;_=[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=WDe(_,b);f.fitExtent(h,x);var C=this.bounds=f.getBounds(x),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(WDe(u.range,c.range)),A=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(A)?f.scale(A*M):pk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);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 O=f([d.lon,d.lat]),U=f.translate();f.translate([U[0]-(O[0]-U[0]),U[1]-(O[1]-U[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(s7t(n,n.objects[h])):o(h)&&d.datum(u7t(h,t,e)).call(OF.stroke,t[h].gridcolor).call(vk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(OF.stroke,t[v+"color"]).call(vk.dashLine,"",t[v+"width"]):l(h)&&d.call(OF.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(OF.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];Qzt.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&&i7t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(a7t(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){r7t(f,h,d,c,a)},XZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(pk.getPositionFromD3Event());if(!f)return XZ.unhover(n,l1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},HDe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||XZ.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&n7t(l1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&HDe.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"},ZZ.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?e7t(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 l7t(e){var t=e.projection,r=t.type,n=hp.projNames[r];n="geo"+pk.titleCase(n);for(var i=YZ[n]||$zt[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 Kzt().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 u7t(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,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(k,E){return[E,k]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};ZZ.setConvert(c,r);var f=ZZ.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 KZ=ye((Dmr,QDe)=>{"use strict";var n5=Ih(),c7t=Cc().attributes,f7t=Pd().dash,i5=ck(),h7t=mc().overrideAll,JDe=t_(),$De={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:n5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:f7t},d7t=QDe.exports=h7t({domain:c7t({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:JDe(i5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:JDe(i5.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:n5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:i5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:i5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:i5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:i5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:n5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:n5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:n5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:n5.background},lonaxis:$De,lataxis:$De},"plot","from-root");d7t.uirevision={valType:"any",editType:"none"}});var rFe=ye((Fmr,tFe)=>{"use strict";var qF=Dr(),v7t=O_(),p7t=Id().getSubplotData,BF=ck(),g7t=KZ(),eFe=BF.axesNames;tFe.exports=function(t,r,n){v7t(t,r,n,{type:"geo",attributes:g7t,handleDefaults:m7t,fullData:n,partition:"y"})};function m7t(e,t,r,n){var i=p7t(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=BF.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=!!BF.lonaxisSpan[u];if(e.visible===!1){var _=qF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),p,k=0;k0&&O<0&&(O+=360);var U=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[U,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?U:G,N=(A[0]+A[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 re=r("fitbounds");re&&(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 JZ=ye((zmr,aFe)=>{"use strict";var y7t=Id().getSubplotCalcData,_7t=Dr().counterRegex,x7t=KDe(),Qm="geo",iFe=_7t(Qm),nFe={};nFe[Qm]={valType:"subplotid",dflt:Qm,editType:"calc"};function b7t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Qm],i=0;i{"use strict";oFe.exports={attributes:ew(),supplyDefaults:URe(),colorbar:$d(),formatLabels:HRe(),calc:_F(),calcGeoJSON:BZ().calcGeoJSON,plot:BZ().plot,style:FZ(),styleOnSelect:sp().styleOnSelect,hoverPoints:CDe(),eventData:PDe(),selectPoints:DDe(),moduleType:"trace",name:"scattergeo",basePlotModule:JZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var uFe=ye((qmr,lFe)=>{"use strict";lFe.exports=sFe()});var a5=ye((Bmr,hFe)=>{"use strict";var{hovertemplateAttrs:A7t,templatefallbackAttrs:S7t}=Ll(),vx=ew(),M7t=Tu(),cFe=Gl(),E7t=Ih().defaultLine,dx=Ao().extendFlat,fFe=vx.marker.line;hFe.exports=dx({locations:{valType:"data_array",editType:"calc"},locationmode:vx.locationmode,z:{valType:"data_array",editType:"calc"},geojson:dx({},vx.geojson,{}),featureidkey:vx.featureidkey,text:dx({},vx.text,{}),hovertext:dx({},vx.hovertext,{}),marker:{line:{color:dx({},fFe.color,{dflt:E7t}),width:dx({},fFe.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:dx({},cFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:A7t(),hovertemplatefallback:S7t(),showlegend:dx({},cFe.showlegend,{dflt:!1})},M7t("",{cLetter:"z",editTypeOverride:"calc"}))});var vFe=ye((Nmr,dFe)=>{"use strict";var gk=Dr(),k7t=td(),C7t=a5(),L7t=["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(" ");dFe.exports=function(t,r,n,i){function a(h,d){return gk.coerce(t,r,C7t,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(L7t),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"),k7t(t,r,i,a,{prefix:"",cLetter:"z"}),gk.coerceSelectionMarkerOpacity(r,a)}});var NF=ye((Umr,mFe)=>{"use strict";var pFe=Eo(),P7t=fs().BADNUM,I7t=gv(),R7t=Rm(),D7t=O0();function gFe(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 gFe(c)||pFe(c)}:a=gFe;for(var o=0;o{"use strict";var F7t=Oa(),z7t=ka(),$Z=So(),O7t=tc();function q7t(e,t){t&&yFe(e,t)}function yFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=O7t.makeColorScaleFuncFromTrace(r);i.each(function(l){F7t.select(this).attr("fill",s(l.z)).call(z7t.stroke,l.mlc||o.color).call($Z.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),$Z.selectedPointStyle(i,r)}function B7t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?$Z.selectedPointStyle(r.selectAll(".choroplethlocation"),n):yFe(e,t)}_Fe.exports={style:q7t,styleOnSelect:B7t}});var QZ=ye((Gmr,wFe)=>{"use strict";var N7t=Oa(),xFe=Dr(),o5=hx(),U7t=bF().getTopojsonFeatures,bFe=Mg().findExtremes,V7t=UF().style;function G7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");xFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=N7t.select(this),o=a.selectAll("path.choroplethlocation").data(xFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),V7t(e,i)})}function H7t(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"?o5.extractTraceFeature(e):U7t(r,i.topojson),l=[],u=[],c=0;c{"use strict";var j7t=ho(),W7t=a5(),X7t=Dr().fillText;TFe.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 GF=ye((jmr,AFe)=>{"use strict";AFe.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 HF=ye((Wmr,SFe)=>{"use strict";SFe.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";MFe.exports={attributes:a5(),supplyDefaults:vFe(),colorbar:D_(),calc:NF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:UF().style,styleOnSelect:UF().styleOnSelect,hoverPoints:VF(),eventData:GF(),selectPoints:HF(),moduleType:"trace",name:"choropleth",basePlotModule:JZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var CFe=ye((Zmr,kFe)=>{"use strict";kFe.exports=EFe()});var jF=ye((Ymr,PFe)=>{"use strict";var Y7t=qa(),l0=Dr(),K7t=gT();function J7t(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 _=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(_,b),Math.min(l._rl[0],l._rl[1]),Math.max(_,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(_,b),Math.min(p,k),Math.max(_,b),Math.max(p,k))}else v=a.ids;var E,T,L,x,C,M,g,P,A,z=d;if(n==="x"){var O=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(j,N)&&h<=Math.max(j,N)?0:1/0}A=Math.sqrt(M*M+g*g),T=v[C]}}}else for(C=v.length-1;C>-1;C--)E=v[C],L=u[E],x=c[E],M=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var IFe=20;RFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:IFe,SYMBOL_STROKE:IFe/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((Jmr,OFe)=>{"use strict";var $7t=Gl(),Q7t=ec(),e9t=Pg(),mf=pf(),DFe=df().axisHoverFormat,FFe=Tu(),t9t=t_(),eY=Ao().extendFlat,r9t=mc().overrideAll,i9t=px().DASHES,zFe=mf.line,u1=mf.marker,n9t=u1.line,gx=OFe.exports=r9t({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:DFe("x"),yhoverformat:DFe("y"),text:mf.text,hovertext:mf.hovertext,textposition:mf.textposition,textfont:Q7t({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:zFe.color,width:zFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:t9t(i9t),dflt:"solid"}},marker:eY({},FFe("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:eY({},FFe("marker.line"),{width:n9t.width})}),connectgaps:mf.connectgaps,fill:eY({},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:$7t.opacity},"calc","nested");gx.x.editType=gx.y.editType=gx.x0.editType=gx.y0.editType="calc+clearAxisTypes";gx.hovertemplate=mf.hovertemplate;gx.hovertemplatefallback=mf.hovertemplatefallback;gx.texttemplate=mf.texttemplate;gx.texttemplatefallback=mf.texttemplatefallback});var WF=ye(tY=>{"use strict";var qFe=px();tY.isOpenSymbol=function(e){return typeof e=="string"?qFe.OPEN_RE.test(e):e%200>100};tY.isDotSymbol=function(e){return typeof e=="string"?qFe.DOT_RE.test(e):e>200}});var UFe=ye((Qmr,NFe)=>{"use strict";var BFe=Dr(),a9t=qa(),o9t=WF(),s9t=mk(),l9t=Lm(),XF=Ru(),u9t=oT(),c9t=Dg(),f9t=$p(),h9t=D0(),d9t=Fg(),v9t=F0();NFe.exports=function(t,r,n,i){function a(d,v){return BFe.coerce(t,r,s9t,d,v)}var o=t.marker?o9t.isOpenSymbol(t.marker.symbol):!1,s=XF.isBubble(t),l=u9t(t,r,i,a);if(!l){r.visible=!1;return}c9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var p9t=lI();VFe.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]),p9t(t,r,n)}});var jFe=ye((tyr,HFe)=>{"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 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 y9t(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 _9t(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 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)}HFe.exports={ge:function(e,t,r,n,i){return yk(e,t,r,n,i,g9t)},gt:function(e,t,r,n,i){return yk(e,t,r,n,i,m9t)},lt:function(e,t,r,n,i){return yk(e,t,r,n,i,y9t)},le:function(e,t,r,n,i){return yk(e,t,r,n,i,_9t)},eq:function(e,t,r,n,i){return yk(e,t,r,n,i,x9t)}}});var ey=ye((ryr,XFe)=>{"use strict";XFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=WFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var b9t=ey();ZFe.exports=w9t;function w9t(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=b9t(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 rw=ye((nyr,YFe)=>{"use strict";YFe.exports=T9t;function T9t(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]{KFe.exports=function(){for(var e=0;e{var $Fe=QD();QFe.exports=A9t;function A9t(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($Fe(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";eze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var ize=ye((lyr,rze)=>{"use strict";rze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var cze=ye((uyr,uze)=>{"use strict";var nze=jFe(),aze=ik(),S9t=s5(),M9t=rw(),oze=ey(),iY=JFe(),E9t=iw(),k9t=tze(),C9t=QD(),sze=ize(),L9t=1073741824;uze.exports=function(t,r){r||(r={}),t=E9t(t,"float64"),r=oze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=iY(r.maxDepth,255),i=iY(r.bounds,M9t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=lze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(C9t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>L9t){for(let N=0;N_e||g>Ce||P=z||re===oe)return;let Le=l[H];oe===void 0&&(oe=Le.length);for(let De=re;De=T&&je<=x&<>=L&<<=C&&O.push(ce)}let ge=u[H],ie=ge[re*4+0],Se=ge[re*4+1],Ee=ge[re*4+2],Ae=ge[re*4+3],Be=G(ge,re+1),Pe=N*.5,me=H+1;U(Z,j,Pe,me,ie,Se||Ee||Ae||Be),U(Z,j+Pe,Pe,me,Se,Ee||Ae||Be),U(Z+Pe,j,Pe,me,Ee,Ae||Be),U(Z+Pe,j+Pe,Pe,me,Ae,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 O}function _(p,k,E,T,L){let x=[];for(let C=0;C{"use strict";fze.exports=cze()});var nY=ye((fyr,hze)=>{hze.exports=P9t;function P9t(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(YF,"__esModule",{value:!0});var I9t=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,aY=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}},R9t=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}]},dze=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)},D9t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),_=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*_;p<0&&(p=0),p/=d*b+v*_,p=Math.sqrt(p)*(s===l?-1:1);var k=p*a/o*h,E=p*-o/a*f,T=c*k-u*E+(t+n)/2,L=u*k+c*E+(r+i)/2,x=(f-k)/a,C=(h-E)/o,M=(-f-k)/a,g=(-h-E)/o,P=dze(1,0,x,C),A=dze(x,C,M,g);return l===0&&A>0&&(A-=_k),l===1&&A<0&&(A+=_k),[T,L,P,A]},F9t=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 _=Math.sin(u*_k/360),b=Math.cos(u*_k/360),p=b*(r-i)/2+_*(n-a)/2,k=-_*(r-i)/2+b*(n-a)/2;if(p===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=D9t(r,n,i,a,o,s,f,d,_,b,p,k),L=I9t(T,4),x=L[0],C=L[1],M=L[2],g=L[3],P=Math.abs(g)/(_k/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);g/=A;for(var z=0;z{"use strict";mze.exports=O9t;var z9t=pze();function O9t(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 KF(e,t,r,n){return["C",e,t,r,n,r,n]}function gze(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 oY=ye((dyr,_ze)=>{"use strict";_ze.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 wze=ye((vyr,bze)=>{"use strict";var q9t=nM(),B9t=nY(),N9t=yze(),U9t=oY(),xze=mE();bze.exports=V9t;function V9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(xze(U9t(e),"String is not an SVG path."),e=q9t(e)),xze(Array.isArray(e),"Argument should be a string or an array of path segments."),e=B9t(e),e=N9t(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 kze=ye((pyr,Eze)=>{var nw=Math.PI,Tze=Mze(120);Eze.exports=G9t;function G9t(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 _=u,b=c;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,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=Aze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=Aze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=JF(u,c,d[1],d[2]);break;case"H":d=JF(u,c,d[1],c);break;case"V":d=JF(u,c,u,d[1]);break;case"Z":d=JF(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 JF(e,t,r,n){return["C",e,t,r,n,r,n]}function Aze(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 Sze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],T=u[1],p=u[2],k=u[3];else{var c=sY(e,t,-i);e=c.x,t=c.y,c=sY(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,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*_-v*h*h-_*f*f)/(v*h*h+_*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,k=b*-n*f/r+(t+l)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((l-k)/n).toFixed(9));E=eT&&(E=E-nw*2),!o&&T>E&&(T=T-nw*2)}if(Math.abs(T-E)>Tze){var L=T,x=s,C=l;T=E+Tze*(o&&T>E?1:-1),s=p+r*Math.cos(T),l=k+n*Math.sin(T);var M=Sze(s,l,r,n,i,0,o,x,C,[T,L,p,k])}var g=Math.tan((T-E)/4),P=4/3*r*g,A=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),l-A*Math.cos(T),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var H9t=nY(),j9t=kze(),W9t={M:"moveTo",C:"bezierCurveTo"};Cze.exports=function(e,t){e.beginPath(),j9t(H9t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[W9t[n]].apply(e,i)}),e.closePath()}});var Dze=ye((myr,Rze)=>{"use strict";var X9t=ik();Rze.exports=Z9t;var xk=1e20;function Z9t(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,_;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,_=u.length;v<_;v++)l[v]=u[v*c+i]/255;else if(c!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),p=Array(a*o),k=Array(s),E=Array(s),T=Array(s+1),L=Array(s);for(v=0,_=a*o;v<_;v++){var x=l[v];b[v]=x===1?0:x===0?xk:Math.pow(Math.max(0,.5-x),2),p[v]=x===1?xk:x===0?0:Math.pow(Math.max(0,x-.5),2)}Pze(b,a,o,k,E,L,T),Pze(p,a,o,k,E,L,T);var C=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(v=0,_=a*o;v<_;v++)C[v]=X9t(1-((b[v]-p[v])/n+r),0,1);return C}function Pze(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var Y9t=wze(),K9t=nM(),J9t=Lze(),$9t=oY(),Q9t=Dze(),lY=document.createElement("canvas"),dp=lY.getContext("2d");Fze.exports=eOt;function eOt(e,t){if(!$9t(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=lY.width=t.w||t.width||200,n=lY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Y9t(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),tOt()){var u=new Path2D(e);dp.fill(u),a&&dp.stroke(u)}else{var c=K9t(e);J9t(dp,c),dp.fill(),a&&dp.stroke()}dp.setTransform(1,0,0,1,0,0);var f=Q9t(dp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var $F;function tOt(){if($F!=null)return $F;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return $F=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return $F=r&&r.data&&r.data[3]===255}});var ow=ye((_yr,Xze)=>{"use strict";var ez=Eo(),rOt=zze(),QF=ox(),iOt=qa(),c5=Dr(),bh=c5.isArrayOrTypedArray,l5=So(),Oze=hf(),qze=a1().formatColor,u5=Ru(),nOt=O3(),cY=WF(),bk=px(),aOt=X1().DESELECTDIM,Bze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},oOt=ip().appendArrayPointValue;function sOt(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(u5.hasText(t)&&(n.text=Wze(e,t),n.textSel=Uze(e,t,t.selected),n.textUnsel=Uze(e,t,t.unselected)),u5.hasMarkers(t)&&(n.marker=hY(e,t),n.markerSel=fY(e,t,t.selected),n.markerUnsel=fY(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 hY(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=cY.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,_=n.angle,b=qze(n,n.opacity,r),p=qze(n.line,n.opacity,r);if(!bh(p[0])){var k=p;for(p=Array(r),a=0;abk.TOO_MANY_POINTS||u5.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=Bze[h],_=Bze[d],b=c?c/.8+1:0,p=-_*b-_*.5;a.offset[o]=[v*b/f,p/f]}}return a}Xze.exports={style:sOt,markerStyle:hY,markerSelection:fY,linePositions:uOt,errorBarPositions:cOt,textPosition:fOt}});var dY=ye((xyr,Zze)=>{"use strict";var tz=Dr();Zze.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(){tz.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=tz.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 hOt=ZF(),f5=Dr(),Yze=hf(),dOt=Mg().findExtremes,Kze=zg(),vY=q0(),vOt=vY.calcMarkerSize,pOt=vY.calcAxisExpansion,gOt=vY.setFirstScatter,mOt=z0(),h5=ow(),yOt=dY(),Jze=fs().BADNUM,_Ot=px().TOO_MANY_POINTS;Qze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Yze.getFromId(t,r.xaxis,"x"),a=r._yA=Yze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=_Ot,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Kze(r,i,"x",h),_=Kze(r,a,"y",d),b=v.vals,p=_.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=_.starts,r._yEnds=_.ends);var k=new Array(u),E=new Array(s);for(f=0;f1&&f5.extendFlat(o.line,h5.linePositions(e,r,n)),o.errorX||o.errorY){var s=h5.errorBarPositions(e,r,n,i,a);o.errorX&&f5.extendFlat(o.errorX,s.x),o.errorY&&f5.extendFlat(o.errorY,s.y)}return o.text&&(f5.extendFlat(o.text,{positions:n},h5.textPosition(e,r,o.text,o.marker)),f5.extendFlat(o.textSel,{positions:n},h5.textPosition(e,r,o.text,o.markerSel)),f5.extendFlat(o.textUnsel,{positions:n},h5.textPosition(e,r,o.text,o.markerUnsel))),o}});var pY=ye((wyr,r7e)=>{"use strict";var t7e=Dr(),bOt=ka(),wOt=X1().DESELECTDIM;function TOt(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=t7e.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,_=c.color,b=l.color,p=t7e.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var i7e=Ru(),AOt=pY().styleTextSelection;n7e.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=i7e.hasText(s),_=i7e.hasMarkers(s),b=!_&&!v;if(s.visible!==!0||b)return o;var p=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var SOt=jF();a7e.exports={moduleType:"trace",name:"scattergl",basePlotModule:mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mk(),supplyDefaults:UFe(),crossTraceDefaults:cU(),colorbar:$d(),formatLabels:GFe(),calc:e7e(),hoverPoints:SOt.hoverPoints,selectPoints:gY(),meta:{}}});var l7e=ye((Syr,iz)=>{"use strict";var rz=ik();iz.exports=s7e;iz.exports.to=s7e;iz.exports.from=MOt;function s7e(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=rz(r,0,255)&255,n=rz(n,0,255)&255,i=rz(i,0,255)&255,a=rz(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function MOt(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((Myr,c7e)=>{"use strict";var u7e=Object.getOwnPropertySymbols,EOt=Object.prototype.hasOwnProperty,kOt=Object.prototype.propertyIsEnumerable;function COt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function LOt(){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}}c7e.exports=LOt()?Object.assign:function(e,t){for(var r,n=COt(e),i,a=1;a{f7e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";d7e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";v7e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var nz=ye((Lyr,d5)=>{"use strict";d5.exports=wk;d5.exports.float32=d5.exports.float=wk;d5.exports.fract32=d5.exports.fract=POt;var g7e=new Float32Array(1);function POt(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 IOt(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 ROt(e,t){return zOt(e)||IOt(e,t)||y7e(e,t)||BOt()}function DOt(e){return FOt(e)||OOt(e)||y7e(e)||qOt()}function FOt(e){if(Array.isArray(e))return yY(e)}function zOt(e){if(Array.isArray(e))return e}function OOt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function y7e(e,t){if(e){if(typeof e=="string")return yY(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 yY(e,t)}}function yY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?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=oz.float32(j);oe({data:Se,usage:"dynamic"});var Ee=oz.fract32(j,Se);return _e({data:Ee,usage:"dynamic"}),Ce({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),j}},{marker:function(j,N,H){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!j||typeof j[0]=="number"){var oe=e.addMarker(j);re[oe]=!0}else{for(var _e=[],Ce=0,Le=Math.min(j.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};nv.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";TY.exports=uz;TY.exports.default=uz;function uz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=b7e(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=tqt(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 wk(a,o,r,s,l,d,0),o}function b7e(e,t,r,n,i){var a,o;if(i===wY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=x7e(a,e[a],e[a+1],o);return o&&cz(o,o.next)&&(Ak(o),o=o.next),o}function lw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(cz(r,r.next)||wh(r.prev,r,r.next)===0)){if(Ak(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function wk(e,t,r,n,i,a,o){if(e){!o&&a&&oqt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?$Ot(e,n,i,a):JOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),Ak(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=QOt(lw(e),t,r),wk(e,t,r,n,i,a,2)):o===2&&eqt(e,t,r,n,i,a):wk(lw(e),t,r,n,i,a,1);break}}}}function JOt(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&&v5(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 $Ot(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=xY(d,v,t,r,n),k=xY(_,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=p&&T&&T.z<=k;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&v5(s,c,l,f,u,h,E.x,E.y)&&wh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=_&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&v5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&v5(s,c,l,f,u,h,E.x,E.y)&&wh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=_&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&v5(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 QOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!cz(i,a)&&w7e(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),Ak(n),Ak(n.next),n=e=a),n=n.next}while(n!==e);return lw(n)}function eqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&uqt(o,s)){var l=T7e(o,s);o=lw(o,o.next),l=lw(l,l.next),wk(o,t,r,n,i,a,0),wk(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function tqt(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&&v5(io.x||r.x===o.x&&aqt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function aqt(e,t){return wh(e.prev,e,t.prev)<0&&wh(t.next,e,e.next)<0}function oqt(e,t,r,n){var i=e;do i.z===0&&(i.z=xY(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,sqt(i)}function sqt(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 xY(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 lqt(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 uqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!cqt(e,t)&&(Tk(e,t)&&Tk(t,e)&&fqt(e,t)&&(wh(e.prev,e,t.prev)||wh(e,t.prev,t))||cz(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 cz(e,t){return e.x===t.x&&e.y===t.y}function w7e(e,t,r,n){var i=lz(wh(e,t,r)),a=lz(wh(e,t,n)),o=lz(wh(r,n,e)),s=lz(wh(r,n,t));return!!(i!==a&&o!==s||i===0&&sz(e,r,t)||a===0&&sz(e,n,t)||o===0&&sz(r,e,n)||s===0&&sz(r,t,n))}function sz(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 lz(e){return e>0?1:e<0?-1:0}function cqt(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&&w7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Tk(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 fqt(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 T7e(e,t){var r=new bY(e.i,e.x,e.y),n=new bY(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 x7e(e,t,r,n){var i=new bY(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 Ak(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 bY(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}uz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(wY(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 M7e=ye((Ryr,S7e)=>{"use strict";var hqt=rw();S7e.exports=dqt;function dqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=hqt(e,t));for(var n=0;n{"use strict";E7e.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 L7e=ye((Fyr,C7e)=>{"use strict";C7e.exports=function(){}});var mx=ye((zyr,P7e)=>{"use strict";var vqt=L7e()();P7e.exports=function(e){return e!==vqt&&e!==null}});var AY=ye((Oyr,R7e)=>{"use strict";var pqt=Object.create,gqt=Object.getPrototypeOf,I7e={};R7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||pqt;return typeof e!="function"?!1:gqt(e(t(null),I7e))===I7e}});var SY=ye((qyr,D7e)=>{"use strict";var mqt=mx(),yqt={function:!0,object:!0};D7e.exports=function(e){return mqt(e)&&yqt[typeof e]||!1}});var c1=ye((Byr,F7e)=>{"use strict";var _qt=mx();F7e.exports=function(e){if(!_qt(e))throw new TypeError("Cannot use null or undefined");return e}});var O7e=ye((Nyr,z7e)=>{"use strict";var MY=Object.create,fz;AY()()||(fz=EY());z7e.exports=function(){var e,t,r;return!fz||fz.level!==1?MY:(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(fz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return MY(n===null?e:n,i)})}()});var EY=ye((Uyr,q7e)=>{"use strict";var xqt=SY(),bqt=c1(),wqt=Object.prototype.isPrototypeOf,Tqt=Object.defineProperty,Aqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},hz;hz=function(e,t){if(bqt(e),t===null||xqt(t))return e;throw new TypeError("Prototype must be null or an object")};q7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(hz(n,i),i),n}):t=function(n,i){return hz(n,i).__proto__=i,n}:t=function n(i,a){var o;return hz(i,a),o=wqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&Tqt(n.nullPolyfill,"__proto__",Aqt),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)}());O7e()});var dz=ye((Vyr,B7e)=>{"use strict";B7e.exports=AY()()?Object.setPrototypeOf:EY()});var U7e=ye((Gyr,N7e)=>{"use strict";var Sqt=SY();N7e.exports=function(e){if(!Sqt(e))throw new TypeError(e+" is not an Object");return e}});var G7e=ye((Hyr,V7e)=>{"use strict";var Mqt=Object.create(null),Eqt=Math.random;V7e.exports=function(){var e;do e=Eqt().toString(36).slice(2);while(Mqt[e]);return e}});var uw=ye((jyr,H7e)=>{"use strict";var kqt=void 0;H7e.exports=function(e){return e!==kqt&&e!==null}});var vz=ye((Wyr,j7e)=>{"use strict";var Cqt=uw(),Lqt={object:!0,function:!0,undefined:!0};j7e.exports=function(e){return Cqt(e)?hasOwnProperty.call(Lqt,typeof e):!1}});var X7e=ye((Xyr,W7e)=>{"use strict";var Pqt=vz();W7e.exports=function(e){if(!Pqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var Y7e=ye((Zyr,Z7e)=>{"use strict";var Iqt=X7e();Z7e.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!Iqt(e)}});var kY=ye((Yyr,K7e)=>{"use strict";var Rqt=Y7e(),Dqt=/^\s*class[\s{/}]/,Fqt=Function.prototype.toString;K7e.exports=function(e){return!(!Rqt(e)||Dqt.test(Fqt.call(e)))}});var $7e=ye((Kyr,J7e)=>{"use strict";J7e.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 e9e=ye((Jyr,Q7e)=>{"use strict";Q7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var r9e=ye(($yr,t9e)=>{"use strict";var zqt=mx(),Oqt=Object.keys;t9e.exports=function(e){return Oqt(zqt(e)?Object(e):e)}});var n9e=ye((Qyr,i9e)=>{"use strict";i9e.exports=e9e()()?Object.keys:r9e()});var o9e=ye((e1r,a9e)=>{"use strict";var qqt=n9e(),Bqt=c1(),Nqt=Math.max;a9e.exports=function(e,t){var r,n,i=Nqt(arguments.length,2),a;for(e=Object(Bqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";s9e.exports=$7e()()?Object.assign:o9e()});var CY=ye((r1r,l9e)=>{"use strict";var Uqt=mx(),Vqt=Array.prototype.forEach,Gqt=Object.create,Hqt=function(e,t){var r;for(r in e)t[r]=e[r]};l9e.exports=function(e){var t=Gqt(null);return Vqt.call(arguments,function(r){Uqt(r)&&Hqt(Object(r),t)}),t}});var c9e=ye((i1r,u9e)=>{"use strict";var LY="razdwatrzy";u9e.exports=function(){return typeof LY.contains!="function"?!1:LY.contains("dwa")===!0&&LY.contains("foo")===!1}});var h9e=ye((n1r,f9e)=>{"use strict";var jqt=String.prototype.indexOf;f9e.exports=function(e){return jqt.call(this,e,arguments[1])>-1}});var PY=ye((a1r,d9e)=>{"use strict";d9e.exports=c9e()()?String.prototype.contains:h9e()});var f1=ye((o1r,m9e)=>{"use strict";var gz=uw(),v9e=kY(),p9e=pz(),g9e=CY(),Sk=PY(),Wqt=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],gz(e)?(r=Sk.call(e,"c"),n=Sk.call(e,"e"),i=Sk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?p9e(g9e(a),o):o};Wqt.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],gz(t)?v9e(t)?gz(r)?v9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,gz(e)?(n=Sk.call(e,"c"),i=Sk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?p9e(g9e(a),o):o}});var Mk=ye((s1r,_9e)=>{"use strict";var y9e=Object.prototype.toString,Xqt=y9e.call(function(){return arguments}());_9e.exports=function(e){return y9e.call(e)===Xqt}});var Ek=ye((l1r,b9e)=>{"use strict";var x9e=Object.prototype.toString,Zqt=x9e.call("");b9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||x9e.call(e)===Zqt)||!1}});var T9e=ye((u1r,w9e)=>{"use strict";w9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var M9e=ye((c1r,S9e)=>{var A9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};S9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return A9e()}try{return __global__||A9e()}finally{delete Object.prototype.__global__}}()});var kk=ye((f1r,E9e)=>{"use strict";E9e.exports=T9e()()?globalThis:M9e()});var C9e=ye((h1r,k9e)=>{"use strict";var Yqt=kk(),IY={object:!0,symbol:!0};k9e.exports=function(){var e=Yqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!IY[typeof e.iterator]||!IY[typeof e.toPrimitive]||!IY[typeof e.toStringTag])}});var P9e=ye((d1r,L9e)=>{"use strict";L9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var RY=ye((v1r,I9e)=>{"use strict";var Kqt=P9e();I9e.exports=function(e){if(!Kqt(e))throw new TypeError(e+" is not a symbol");return e}});var O9e=ye((p1r,z9e)=>{"use strict";var R9e=f1(),Jqt=Object.create,D9e=Object.defineProperty,$qt=Object.prototype,F9e=Jqt(null);z9e.exports=function(e){for(var t=0,r,n;F9e[e+(t||"")];)++t;return e+=t||"",F9e[e]=!0,r="@@"+e,D9e($qt,r,R9e.gs(null,function(i){n||(n=!0,D9e(this,r,R9e(i)),n=!1)})),r}});var B9e=ye((g1r,q9e)=>{"use strict";var rm=f1(),Uh=kk().Symbol;q9e.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 V9e=ye((m1r,U9e)=>{"use strict";var N9e=f1(),Qqt=RY(),Ck=Object.create(null);U9e.exports=function(e){return Object.defineProperties(e,{for:N9e(function(t){return Ck[t]?Ck[t]:Ck[t]=e(String(t))}),keyFor:N9e(function(t){var r;Qqt(t);for(r in Ck)if(Ck[r]===t)return r})})}});var j9e=ye((y1r,H9e)=>{"use strict";var ty=f1(),DY=RY(),mz=kk().Symbol,eBt=O9e(),tBt=B9e(),rBt=V9e(),iBt=Object.create,FY=Object.defineProperties,yz=Object.defineProperty,Xv,p5,G9e;if(typeof mz=="function")try{String(mz()),G9e=!0}catch(e){}else mz=null;p5=function(t){if(this instanceof p5)throw new TypeError("Symbol is not a constructor");return Xv(t)};H9e.exports=Xv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return G9e?mz(t):(r=iBt(p5.prototype),t=t===void 0?"":String(t),FY(r,{__description__:ty("",t),__name__:ty("",eBt(t))}))};tBt(Xv);rBt(Xv);FY(p5.prototype,{constructor:ty(Xv),toString:ty("",function(){return this.__name__})});FY(Xv.prototype,{toString:ty(function(){return"Symbol ("+DY(this).__description__+")"}),valueOf:ty(function(){return DY(this)})});yz(Xv.prototype,Xv.toPrimitive,ty("",function(){var e=DY(this);return typeof e=="symbol"?e:e.toString()}));yz(Xv.prototype,Xv.toStringTag,ty("c","Symbol"));yz(p5.prototype,Xv.toStringTag,ty("c",Xv.prototype[Xv.toStringTag]));yz(p5.prototype,Xv.toPrimitive,ty("c",Xv.prototype[Xv.toPrimitive]))});var yx=ye((_1r,W9e)=>{"use strict";W9e.exports=C9e()()?kk().Symbol:j9e()});var Z9e=ye((x1r,X9e)=>{"use strict";var nBt=c1();X9e.exports=function(){return nBt(this).length=0,this}});var g5=ye((b1r,Y9e)=>{"use strict";Y9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var J9e=ye((w1r,K9e)=>{"use strict";var aBt=uw(),oBt=vz(),sBt=Object.prototype.toString;K9e.exports=function(e){if(!aBt(e))return null;if(oBt(e)){var t=e.toString;if(typeof t!="function"||t===sBt)return null}try{return""+e}catch(r){return null}}});var Q9e=ye((T1r,$9e)=>{"use strict";$9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var tOe=ye((A1r,eOe)=>{"use strict";var lBt=Q9e(),uBt=/[\n\r\u2028\u2029]/g;eOe.exports=function(e){var t=lBt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(uBt,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 zY=ye((S1r,nOe)=>{"use strict";var rOe=uw(),cBt=vz(),fBt=J9e(),hBt=tOe(),iOe=function(e,t){return e.replace("%v",hBt(t))};nOe.exports=function(e,t,r){if(!cBt(r))throw new TypeError(iOe(t,e));if(!rOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=fBt(r.errorMessage);throw rOe(n)||(n=t),new TypeError(iOe(n,e))}});var oOe=ye((M1r,aOe)=>{"use strict";var dBt=zY(),vBt=uw();aOe.exports=function(e){return vBt(e)?e:dBt(e,"Cannot use %v",arguments[1])}});var lOe=ye((E1r,sOe)=>{"use strict";var pBt=zY(),gBt=kY();sOe.exports=function(e){return gBt(e)?e:pBt(e,"%v is not a plain function",arguments[1])}});var cOe=ye((k1r,uOe)=>{"use strict";uOe.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 hOe=ye((C1r,fOe)=>{"use strict";var mBt=Object.prototype.toString,yBt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);fOe.exports=function(e){return typeof e=="function"&&yBt(mBt.call(e))}});var vOe=ye((L1r,dOe)=>{"use strict";dOe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var gOe=ye((P1r,pOe)=>{"use strict";pOe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var yOe=ye((I1r,mOe)=>{"use strict";mOe.exports=vOe()()?Math.sign:gOe()});var xOe=ye((R1r,_Oe)=>{"use strict";var _Bt=yOe(),xBt=Math.abs,bBt=Math.floor;_Oe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:_Bt(e)*bBt(xBt(e)))}});var wOe=ye((D1r,bOe)=>{"use strict";var wBt=xOe(),TBt=Math.max;bOe.exports=function(e){return TBt(0,wBt(e))}});var MOe=ye((F1r,SOe)=>{"use strict";var ABt=yx().iterator,SBt=Mk(),MBt=hOe(),EBt=wOe(),TOe=g5(),kBt=c1(),CBt=mx(),LBt=Ek(),AOe=Array.isArray,OY=Function.prototype.call,cw={configurable:!0,enumerable:!0,writable:!0,value:null},qY=Object.defineProperty;SOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(kBt(e)),CBt(t)&&TOe(t),!this||this===Array||!MBt(this)){if(!t){if(SBt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(AOe(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?(cw.value=h,qY(o,a,cw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=EBt(e.length),n&&(o=new n(s)),i=0;i{"use strict";EOe.exports=cOe()()?Array.from:MOe()});var LOe=ye((O1r,COe)=>{"use strict";var PBt=kOe(),IBt=pz(),RBt=c1();COe.exports=function(e){var t=Object(RBt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?PBt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):IBt(i,e),i}});var ROe=ye((q1r,IOe)=>{"use strict";var DBt=g5(),FBt=c1(),zBt=Function.prototype.bind,POe=Function.prototype.call,OBt=Object.keys,qBt=Object.prototype.propertyIsEnumerable;IOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(FBt(r)),DBt(n),i=OBt(r),o&&i.sort(typeof o=="function"?zBt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),POe.call(e,i,function(s,l){return qBt.call(r,s)?POe.call(n,a,r[s],s,r,l):t})}}});var FOe=ye((B1r,DOe)=>{"use strict";DOe.exports=ROe()("forEach")});var OOe=ye((N1r,zOe)=>{"use strict";var BBt=g5(),NBt=FOe(),UBt=Function.prototype.call;zOe.exports=function(e,t){var r={},n=arguments[2];return BBt(t),NBt(e,function(i,a,o,s){r[a]=UBt.call(t,n,i,a,o,s)}),r}});var UOe=ye((U1r,NOe)=>{"use strict";var VBt=uw(),GBt=oOe(),qOe=lOe(),HBt=LOe(),jBt=CY(),WBt=OOe(),XBt=Function.prototype.bind,ZBt=Object.defineProperty,YBt=Object.prototype.hasOwnProperty,BOe;BOe=function(e,t,r){var n=GBt(t)&&qOe(t.value),i;return i=HBt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&YBt.call(this,e)?n:(t.value=XBt.call(n,r.resolveContext?r.resolveContext(this):this),ZBt(this,e,t),this[e])},i};NOe.exports=function(e){var t=jBt(arguments[1]);return VBt(t.resolveContext)&&qOe(t.resolveContext),WBt(e,function(r,n){return BOe(n,r,t)})}});var BY=ye((V1r,jOe)=>{"use strict";var KBt=Z9e(),JBt=pz(),$Bt=g5(),QBt=c1(),qp=f1(),eNt=UOe(),VOe=yx(),GOe=Object.defineProperty,HOe=Object.defineProperties,Lk;jOe.exports=Lk=function(e,t){if(!(this instanceof Lk))throw new TypeError("Constructor requires 'new'");HOe(this,{__list__:qp("w",QBt(e)),__context__:qp("w",t),__nextIndex__:qp("w",0)}),t&&($Bt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Lk.prototype.constructor;HOe(Lk.prototype,JBt({_next:qp(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__){GOe(this,"__redo__",qp("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:qp(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:qp(function(){this.__redo__&&KBt.call(this.__redo__),this.__nextIndex__=0})})));GOe(Lk.prototype,VOe.iterator,qp(function(){return this}))});var KOe=ye((G1r,YOe)=>{"use strict";var WOe=dz(),XOe=PY(),NY=f1(),tNt=yx(),UY=BY(),ZOe=Object.defineProperty,m5;m5=YOe.exports=function(e,t){if(!(this instanceof m5))throw new TypeError("Constructor requires 'new'");UY.call(this,e),t?XOe.call(t,"key+value")?t="key+value":XOe.call(t,"key")?t="key":t="value":t="value",ZOe(this,"__kind__",NY("",t))};WOe&&WOe(m5,UY);delete m5.prototype.constructor;m5.prototype=Object.create(UY.prototype,{_resolve:NY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});ZOe(m5.prototype,tNt.toStringTag,NY("c","Array Iterator"))});var eqe=ye((H1r,QOe)=>{"use strict";var JOe=dz(),_z=f1(),rNt=yx(),VY=BY(),$Oe=Object.defineProperty,y5;y5=QOe.exports=function(e){if(!(this instanceof y5))throw new TypeError("Constructor requires 'new'");e=String(e),VY.call(this,e),$Oe(this,"__length__",_z("",e.length))};JOe&&JOe(y5,VY);delete y5.prototype.constructor;y5.prototype=Object.create(VY.prototype,{_next:_z(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});$Oe(y5.prototype,rNt.toStringTag,_z("c","String Iterator"))});var rqe=ye((j1r,tqe)=>{"use strict";var iNt=Mk(),nNt=mx(),aNt=Ek(),oNt=yx().iterator,sNt=Array.isArray;tqe.exports=function(e){return nNt(e)?sNt(e)||aNt(e)||iNt(e)?!0:typeof e[oNt]=="function":!1}});var nqe=ye((W1r,iqe)=>{"use strict";var lNt=rqe();iqe.exports=function(e){if(!lNt(e))throw new TypeError(e+" is not iterable");return e}});var GY=ye((X1r,sqe)=>{"use strict";var uNt=Mk(),cNt=Ek(),aqe=KOe(),fNt=eqe(),hNt=nqe(),oqe=yx().iterator;sqe.exports=function(e){return typeof hNt(e)[oqe]=="function"?e[oqe]():uNt(e)?new aqe(e):cNt(e)?new fNt(e):new aqe(e)}});var uqe=ye((Z1r,lqe)=>{"use strict";var dNt=Mk(),vNt=g5(),pNt=Ek(),gNt=GY(),mNt=Array.isArray,HY=Function.prototype.call,yNt=Array.prototype.some;lqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(mNt(e)||dNt(e)?r="array":pNt(e)?r="string":e=gNt(e),vNt(t),a=function(){o=!0},r==="array"){yNt.call(e,function(f){return HY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),HY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(HY.call(t,n,i.value,a),o)return;i=e.next()}}});var fqe=ye((Y1r,cqe)=>{"use strict";cqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var vqe=ye((K1r,dqe)=>{"use strict";var _Nt=mx(),bz=dz(),xz=U7e(),xNt=c1(),bNt=G7e(),h1=f1(),wNt=GY(),TNt=uqe(),ANt=yx().toStringTag,hqe=fqe(),SNt=Array.isArray,WY=Object.defineProperty,jY=Object.prototype.hasOwnProperty,MNt=Object.getPrototypeOf,_x;dqe.exports=_x=function(){var e=arguments[0],t;if(!(this instanceof _x))throw new TypeError("Constructor requires 'new'");return t=hqe&&bz&&WeakMap!==_x?bz(new WeakMap,MNt(this)):this,_Nt(e)&&(SNt(e)||(e=wNt(e))),WY(t,"__weakMapData__",h1("c","$weakMap$"+bNt())),e&&TNt(e,function(r){xNt(r),t.set(r[0],r[1])}),t};hqe&&(bz&&bz(_x,WeakMap),_x.prototype=Object.create(WeakMap.prototype,{constructor:h1(_x)}));Object.defineProperties(_x.prototype,{delete:h1(function(e){return jY.call(xz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(jY.call(xz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return jY.call(xz(e),this.__weakMapData__)}),set:h1(function(e,t){return WY(xz(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});WY(_x.prototype,ANt,h1("c","WeakMap"))});var XY=ye((J1r,pqe)=>{"use strict";pqe.exports=k7e()()?WeakMap:vqe()});var mqe=ye(($1r,gqe)=>{"use strict";gqe.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 wz=ox(),ENt=rw(),YY=Nh(),kNt=ey(),CNt=iw(),yqe=A7e(),LNt=M7e(),{float32:PNt,fract32:ZY}=nz(),INt=XY(),_qe=s5(),RNt=mqe(),DNt=` +`]),m7e&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}nv.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};nv.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};nv.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=oz.float32(j);oe({data:Se,usage:"dynamic"});var Ee=oz.fract32(j,Se);return _e({data:Ee,usage:"dynamic"}),Ce({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),j}},{marker:function(j,N,H){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!j||typeof j[0]=="number"){var oe=e.addMarker(j);re[oe]=!0}else{for(var _e=[],Ce=0,Le=Math.min(j.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};nv.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";TY.exports=uz;TY.exports.default=uz;function uz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=b7e(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=tqt(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 b7e(e,t,r,n,i){var a,o;if(i===wY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=x7e(a,e[a],e[a+1],o);return o&&cz(o,o.next)&&(Sk(o),o=o.next),o}function lw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(cz(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&&oqt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?$Ot(e,n,i,a):JOt(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=QOt(lw(e),t,r),Tk(e,t,r,n,i,a,2)):o===2&&eqt(e,t,r,n,i,a):Tk(lw(e),t,r,n,i,a,1);break}}}}function JOt(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&&v5(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 $Ot(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=xY(d,v,t,r,n),k=xY(_,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=p&&T&&T.z<=k;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&v5(s,c,l,f,u,h,E.x,E.y)&&wh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=_&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&v5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&v5(s,c,l,f,u,h,E.x,E.y)&&wh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=_&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&v5(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 QOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!cz(i,a)&&w7e(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 lw(n)}function eqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&uqt(o,s)){var l=T7e(o,s);o=lw(o,o.next),l=lw(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 tqt(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&&v5(io.x||r.x===o.x&&aqt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function aqt(e,t){return wh(e.prev,e,t.prev)<0&&wh(t.next,e,e.next)<0}function oqt(e,t,r,n){var i=e;do i.z===0&&(i.z=xY(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,sqt(i)}function sqt(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 xY(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 lqt(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 uqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!cqt(e,t)&&(Ak(e,t)&&Ak(t,e)&&fqt(e,t)&&(wh(e.prev,e,t.prev)||wh(e,t.prev,t))||cz(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 cz(e,t){return e.x===t.x&&e.y===t.y}function w7e(e,t,r,n){var i=lz(wh(e,t,r)),a=lz(wh(e,t,n)),o=lz(wh(r,n,e)),s=lz(wh(r,n,t));return!!(i!==a&&o!==s||i===0&&sz(e,r,t)||a===0&&sz(e,n,t)||o===0&&sz(r,e,n)||s===0&&sz(r,t,n))}function sz(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 lz(e){return e>0?1:e<0?-1:0}function cqt(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&&w7e(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 fqt(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 T7e(e,t){var r=new bY(e.i,e.x,e.y),n=new bY(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 x7e(e,t,r,n){var i=new bY(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 bY(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}uz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(wY(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 M7e=ye((Ryr,S7e)=>{"use strict";var hqt=rw();S7e.exports=dqt;function dqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=hqt(e,t));for(var n=0;n{"use strict";E7e.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 L7e=ye((Fyr,C7e)=>{"use strict";C7e.exports=function(){}});var mx=ye((zyr,P7e)=>{"use strict";var vqt=L7e()();P7e.exports=function(e){return e!==vqt&&e!==null}});var AY=ye((Oyr,R7e)=>{"use strict";var pqt=Object.create,gqt=Object.getPrototypeOf,I7e={};R7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||pqt;return typeof e!="function"?!1:gqt(e(t(null),I7e))===I7e}});var SY=ye((qyr,D7e)=>{"use strict";var mqt=mx(),yqt={function:!0,object:!0};D7e.exports=function(e){return mqt(e)&&yqt[typeof e]||!1}});var c1=ye((Byr,F7e)=>{"use strict";var _qt=mx();F7e.exports=function(e){if(!_qt(e))throw new TypeError("Cannot use null or undefined");return e}});var O7e=ye((Nyr,z7e)=>{"use strict";var MY=Object.create,fz;AY()()||(fz=EY());z7e.exports=function(){var e,t,r;return!fz||fz.level!==1?MY:(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(fz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return MY(n===null?e:n,i)})}()});var EY=ye((Uyr,q7e)=>{"use strict";var xqt=SY(),bqt=c1(),wqt=Object.prototype.isPrototypeOf,Tqt=Object.defineProperty,Aqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},hz;hz=function(e,t){if(bqt(e),t===null||xqt(t))return e;throw new TypeError("Prototype must be null or an object")};q7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(hz(n,i),i),n}):t=function(n,i){return hz(n,i).__proto__=i,n}:t=function n(i,a){var o;return hz(i,a),o=wqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&Tqt(n.nullPolyfill,"__proto__",Aqt),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)}());O7e()});var dz=ye((Vyr,B7e)=>{"use strict";B7e.exports=AY()()?Object.setPrototypeOf:EY()});var U7e=ye((Gyr,N7e)=>{"use strict";var Sqt=SY();N7e.exports=function(e){if(!Sqt(e))throw new TypeError(e+" is not an Object");return e}});var G7e=ye((Hyr,V7e)=>{"use strict";var Mqt=Object.create(null),Eqt=Math.random;V7e.exports=function(){var e;do e=Eqt().toString(36).slice(2);while(Mqt[e]);return e}});var uw=ye((jyr,H7e)=>{"use strict";var kqt=void 0;H7e.exports=function(e){return e!==kqt&&e!==null}});var vz=ye((Wyr,j7e)=>{"use strict";var Cqt=uw(),Lqt={object:!0,function:!0,undefined:!0};j7e.exports=function(e){return Cqt(e)?hasOwnProperty.call(Lqt,typeof e):!1}});var X7e=ye((Xyr,W7e)=>{"use strict";var Pqt=vz();W7e.exports=function(e){if(!Pqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var Y7e=ye((Zyr,Z7e)=>{"use strict";var Iqt=X7e();Z7e.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!Iqt(e)}});var kY=ye((Yyr,K7e)=>{"use strict";var Rqt=Y7e(),Dqt=/^\s*class[\s{/}]/,Fqt=Function.prototype.toString;K7e.exports=function(e){return!(!Rqt(e)||Dqt.test(Fqt.call(e)))}});var $7e=ye((Kyr,J7e)=>{"use strict";J7e.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 e9e=ye((Jyr,Q7e)=>{"use strict";Q7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var r9e=ye(($yr,t9e)=>{"use strict";var zqt=mx(),Oqt=Object.keys;t9e.exports=function(e){return Oqt(zqt(e)?Object(e):e)}});var n9e=ye((Qyr,i9e)=>{"use strict";i9e.exports=e9e()()?Object.keys:r9e()});var o9e=ye((e1r,a9e)=>{"use strict";var qqt=n9e(),Bqt=c1(),Nqt=Math.max;a9e.exports=function(e,t){var r,n,i=Nqt(arguments.length,2),a;for(e=Object(Bqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";s9e.exports=$7e()()?Object.assign:o9e()});var CY=ye((r1r,l9e)=>{"use strict";var Uqt=mx(),Vqt=Array.prototype.forEach,Gqt=Object.create,Hqt=function(e,t){var r;for(r in e)t[r]=e[r]};l9e.exports=function(e){var t=Gqt(null);return Vqt.call(arguments,function(r){Uqt(r)&&Hqt(Object(r),t)}),t}});var c9e=ye((i1r,u9e)=>{"use strict";var LY="razdwatrzy";u9e.exports=function(){return typeof LY.contains!="function"?!1:LY.contains("dwa")===!0&&LY.contains("foo")===!1}});var h9e=ye((n1r,f9e)=>{"use strict";var jqt=String.prototype.indexOf;f9e.exports=function(e){return jqt.call(this,e,arguments[1])>-1}});var PY=ye((a1r,d9e)=>{"use strict";d9e.exports=c9e()()?String.prototype.contains:h9e()});var f1=ye((o1r,m9e)=>{"use strict";var gz=uw(),v9e=kY(),p9e=pz(),g9e=CY(),Mk=PY(),Wqt=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],gz(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?p9e(g9e(a),o):o};Wqt.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],gz(t)?v9e(t)?gz(r)?v9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,gz(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?p9e(g9e(a),o):o}});var Ek=ye((s1r,_9e)=>{"use strict";var y9e=Object.prototype.toString,Xqt=y9e.call(function(){return arguments}());_9e.exports=function(e){return y9e.call(e)===Xqt}});var kk=ye((l1r,b9e)=>{"use strict";var x9e=Object.prototype.toString,Zqt=x9e.call("");b9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||x9e.call(e)===Zqt)||!1}});var T9e=ye((u1r,w9e)=>{"use strict";w9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var M9e=ye((c1r,S9e)=>{var A9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};S9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return A9e()}try{return __global__||A9e()}finally{delete Object.prototype.__global__}}()});var Ck=ye((f1r,E9e)=>{"use strict";E9e.exports=T9e()()?globalThis:M9e()});var C9e=ye((h1r,k9e)=>{"use strict";var Yqt=Ck(),IY={object:!0,symbol:!0};k9e.exports=function(){var e=Yqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!IY[typeof e.iterator]||!IY[typeof e.toPrimitive]||!IY[typeof e.toStringTag])}});var P9e=ye((d1r,L9e)=>{"use strict";L9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var RY=ye((v1r,I9e)=>{"use strict";var Kqt=P9e();I9e.exports=function(e){if(!Kqt(e))throw new TypeError(e+" is not a symbol");return e}});var O9e=ye((p1r,z9e)=>{"use strict";var R9e=f1(),Jqt=Object.create,D9e=Object.defineProperty,$qt=Object.prototype,F9e=Jqt(null);z9e.exports=function(e){for(var t=0,r,n;F9e[e+(t||"")];)++t;return e+=t||"",F9e[e]=!0,r="@@"+e,D9e($qt,r,R9e.gs(null,function(i){n||(n=!0,D9e(this,r,R9e(i)),n=!1)})),r}});var B9e=ye((g1r,q9e)=>{"use strict";var rm=f1(),Uh=Ck().Symbol;q9e.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 V9e=ye((m1r,U9e)=>{"use strict";var N9e=f1(),Qqt=RY(),Lk=Object.create(null);U9e.exports=function(e){return Object.defineProperties(e,{for:N9e(function(t){return Lk[t]?Lk[t]:Lk[t]=e(String(t))}),keyFor:N9e(function(t){var r;Qqt(t);for(r in Lk)if(Lk[r]===t)return r})})}});var j9e=ye((y1r,H9e)=>{"use strict";var ty=f1(),DY=RY(),mz=Ck().Symbol,eBt=O9e(),tBt=B9e(),rBt=V9e(),iBt=Object.create,FY=Object.defineProperties,yz=Object.defineProperty,Xv,p5,G9e;if(typeof mz=="function")try{String(mz()),G9e=!0}catch(e){}else mz=null;p5=function(t){if(this instanceof p5)throw new TypeError("Symbol is not a constructor");return Xv(t)};H9e.exports=Xv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return G9e?mz(t):(r=iBt(p5.prototype),t=t===void 0?"":String(t),FY(r,{__description__:ty("",t),__name__:ty("",eBt(t))}))};tBt(Xv);rBt(Xv);FY(p5.prototype,{constructor:ty(Xv),toString:ty("",function(){return this.__name__})});FY(Xv.prototype,{toString:ty(function(){return"Symbol ("+DY(this).__description__+")"}),valueOf:ty(function(){return DY(this)})});yz(Xv.prototype,Xv.toPrimitive,ty("",function(){var e=DY(this);return typeof e=="symbol"?e:e.toString()}));yz(Xv.prototype,Xv.toStringTag,ty("c","Symbol"));yz(p5.prototype,Xv.toStringTag,ty("c",Xv.prototype[Xv.toStringTag]));yz(p5.prototype,Xv.toPrimitive,ty("c",Xv.prototype[Xv.toPrimitive]))});var yx=ye((_1r,W9e)=>{"use strict";W9e.exports=C9e()()?Ck().Symbol:j9e()});var Z9e=ye((x1r,X9e)=>{"use strict";var nBt=c1();X9e.exports=function(){return nBt(this).length=0,this}});var g5=ye((b1r,Y9e)=>{"use strict";Y9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var J9e=ye((w1r,K9e)=>{"use strict";var aBt=uw(),oBt=vz(),sBt=Object.prototype.toString;K9e.exports=function(e){if(!aBt(e))return null;if(oBt(e)){var t=e.toString;if(typeof t!="function"||t===sBt)return null}try{return""+e}catch(r){return null}}});var Q9e=ye((T1r,$9e)=>{"use strict";$9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var tOe=ye((A1r,eOe)=>{"use strict";var lBt=Q9e(),uBt=/[\n\r\u2028\u2029]/g;eOe.exports=function(e){var t=lBt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(uBt,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 zY=ye((S1r,nOe)=>{"use strict";var rOe=uw(),cBt=vz(),fBt=J9e(),hBt=tOe(),iOe=function(e,t){return e.replace("%v",hBt(t))};nOe.exports=function(e,t,r){if(!cBt(r))throw new TypeError(iOe(t,e));if(!rOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=fBt(r.errorMessage);throw rOe(n)||(n=t),new TypeError(iOe(n,e))}});var oOe=ye((M1r,aOe)=>{"use strict";var dBt=zY(),vBt=uw();aOe.exports=function(e){return vBt(e)?e:dBt(e,"Cannot use %v",arguments[1])}});var lOe=ye((E1r,sOe)=>{"use strict";var pBt=zY(),gBt=kY();sOe.exports=function(e){return gBt(e)?e:pBt(e,"%v is not a plain function",arguments[1])}});var cOe=ye((k1r,uOe)=>{"use strict";uOe.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 hOe=ye((C1r,fOe)=>{"use strict";var mBt=Object.prototype.toString,yBt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);fOe.exports=function(e){return typeof e=="function"&&yBt(mBt.call(e))}});var vOe=ye((L1r,dOe)=>{"use strict";dOe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var gOe=ye((P1r,pOe)=>{"use strict";pOe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var yOe=ye((I1r,mOe)=>{"use strict";mOe.exports=vOe()()?Math.sign:gOe()});var xOe=ye((R1r,_Oe)=>{"use strict";var _Bt=yOe(),xBt=Math.abs,bBt=Math.floor;_Oe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:_Bt(e)*bBt(xBt(e)))}});var wOe=ye((D1r,bOe)=>{"use strict";var wBt=xOe(),TBt=Math.max;bOe.exports=function(e){return TBt(0,wBt(e))}});var MOe=ye((F1r,SOe)=>{"use strict";var ABt=yx().iterator,SBt=Ek(),MBt=hOe(),EBt=wOe(),TOe=g5(),kBt=c1(),CBt=mx(),LBt=kk(),AOe=Array.isArray,OY=Function.prototype.call,cw={configurable:!0,enumerable:!0,writable:!0,value:null},qY=Object.defineProperty;SOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(kBt(e)),CBt(t)&&TOe(t),!this||this===Array||!MBt(this)){if(!t){if(SBt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(AOe(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?(cw.value=h,qY(o,a,cw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=EBt(e.length),n&&(o=new n(s)),i=0;i{"use strict";EOe.exports=cOe()()?Array.from:MOe()});var LOe=ye((O1r,COe)=>{"use strict";var PBt=kOe(),IBt=pz(),RBt=c1();COe.exports=function(e){var t=Object(RBt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?PBt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):IBt(i,e),i}});var ROe=ye((q1r,IOe)=>{"use strict";var DBt=g5(),FBt=c1(),zBt=Function.prototype.bind,POe=Function.prototype.call,OBt=Object.keys,qBt=Object.prototype.propertyIsEnumerable;IOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(FBt(r)),DBt(n),i=OBt(r),o&&i.sort(typeof o=="function"?zBt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),POe.call(e,i,function(s,l){return qBt.call(r,s)?POe.call(n,a,r[s],s,r,l):t})}}});var FOe=ye((B1r,DOe)=>{"use strict";DOe.exports=ROe()("forEach")});var OOe=ye((N1r,zOe)=>{"use strict";var BBt=g5(),NBt=FOe(),UBt=Function.prototype.call;zOe.exports=function(e,t){var r={},n=arguments[2];return BBt(t),NBt(e,function(i,a,o,s){r[a]=UBt.call(t,n,i,a,o,s)}),r}});var UOe=ye((U1r,NOe)=>{"use strict";var VBt=uw(),GBt=oOe(),qOe=lOe(),HBt=LOe(),jBt=CY(),WBt=OOe(),XBt=Function.prototype.bind,ZBt=Object.defineProperty,YBt=Object.prototype.hasOwnProperty,BOe;BOe=function(e,t,r){var n=GBt(t)&&qOe(t.value),i;return i=HBt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&YBt.call(this,e)?n:(t.value=XBt.call(n,r.resolveContext?r.resolveContext(this):this),ZBt(this,e,t),this[e])},i};NOe.exports=function(e){var t=jBt(arguments[1]);return VBt(t.resolveContext)&&qOe(t.resolveContext),WBt(e,function(r,n){return BOe(n,r,t)})}});var BY=ye((V1r,jOe)=>{"use strict";var KBt=Z9e(),JBt=pz(),$Bt=g5(),QBt=c1(),qp=f1(),eNt=UOe(),VOe=yx(),GOe=Object.defineProperty,HOe=Object.defineProperties,Pk;jOe.exports=Pk=function(e,t){if(!(this instanceof Pk))throw new TypeError("Constructor requires 'new'");HOe(this,{__list__:qp("w",QBt(e)),__context__:qp("w",t),__nextIndex__:qp("w",0)}),t&&($Bt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Pk.prototype.constructor;HOe(Pk.prototype,JBt({_next:qp(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__){GOe(this,"__redo__",qp("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:qp(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:qp(function(){this.__redo__&&KBt.call(this.__redo__),this.__nextIndex__=0})})));GOe(Pk.prototype,VOe.iterator,qp(function(){return this}))});var KOe=ye((G1r,YOe)=>{"use strict";var WOe=dz(),XOe=PY(),NY=f1(),tNt=yx(),UY=BY(),ZOe=Object.defineProperty,m5;m5=YOe.exports=function(e,t){if(!(this instanceof m5))throw new TypeError("Constructor requires 'new'");UY.call(this,e),t?XOe.call(t,"key+value")?t="key+value":XOe.call(t,"key")?t="key":t="value":t="value",ZOe(this,"__kind__",NY("",t))};WOe&&WOe(m5,UY);delete m5.prototype.constructor;m5.prototype=Object.create(UY.prototype,{_resolve:NY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});ZOe(m5.prototype,tNt.toStringTag,NY("c","Array Iterator"))});var eqe=ye((H1r,QOe)=>{"use strict";var JOe=dz(),_z=f1(),rNt=yx(),VY=BY(),$Oe=Object.defineProperty,y5;y5=QOe.exports=function(e){if(!(this instanceof y5))throw new TypeError("Constructor requires 'new'");e=String(e),VY.call(this,e),$Oe(this,"__length__",_z("",e.length))};JOe&&JOe(y5,VY);delete y5.prototype.constructor;y5.prototype=Object.create(VY.prototype,{_next:_z(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});$Oe(y5.prototype,rNt.toStringTag,_z("c","String Iterator"))});var rqe=ye((j1r,tqe)=>{"use strict";var iNt=Ek(),nNt=mx(),aNt=kk(),oNt=yx().iterator,sNt=Array.isArray;tqe.exports=function(e){return nNt(e)?sNt(e)||aNt(e)||iNt(e)?!0:typeof e[oNt]=="function":!1}});var nqe=ye((W1r,iqe)=>{"use strict";var lNt=rqe();iqe.exports=function(e){if(!lNt(e))throw new TypeError(e+" is not iterable");return e}});var GY=ye((X1r,sqe)=>{"use strict";var uNt=Ek(),cNt=kk(),aqe=KOe(),fNt=eqe(),hNt=nqe(),oqe=yx().iterator;sqe.exports=function(e){return typeof hNt(e)[oqe]=="function"?e[oqe]():uNt(e)?new aqe(e):cNt(e)?new fNt(e):new aqe(e)}});var uqe=ye((Z1r,lqe)=>{"use strict";var dNt=Ek(),vNt=g5(),pNt=kk(),gNt=GY(),mNt=Array.isArray,HY=Function.prototype.call,yNt=Array.prototype.some;lqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(mNt(e)||dNt(e)?r="array":pNt(e)?r="string":e=gNt(e),vNt(t),a=function(){o=!0},r==="array"){yNt.call(e,function(f){return HY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),HY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(HY.call(t,n,i.value,a),o)return;i=e.next()}}});var fqe=ye((Y1r,cqe)=>{"use strict";cqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var vqe=ye((K1r,dqe)=>{"use strict";var _Nt=mx(),bz=dz(),xz=U7e(),xNt=c1(),bNt=G7e(),h1=f1(),wNt=GY(),TNt=uqe(),ANt=yx().toStringTag,hqe=fqe(),SNt=Array.isArray,WY=Object.defineProperty,jY=Object.prototype.hasOwnProperty,MNt=Object.getPrototypeOf,_x;dqe.exports=_x=function(){var e=arguments[0],t;if(!(this instanceof _x))throw new TypeError("Constructor requires 'new'");return t=hqe&&bz&&WeakMap!==_x?bz(new WeakMap,MNt(this)):this,_Nt(e)&&(SNt(e)||(e=wNt(e))),WY(t,"__weakMapData__",h1("c","$weakMap$"+bNt())),e&&TNt(e,function(r){xNt(r),t.set(r[0],r[1])}),t};hqe&&(bz&&bz(_x,WeakMap),_x.prototype=Object.create(WeakMap.prototype,{constructor:h1(_x)}));Object.defineProperties(_x.prototype,{delete:h1(function(e){return jY.call(xz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(jY.call(xz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return jY.call(xz(e),this.__weakMapData__)}),set:h1(function(e,t){return WY(xz(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});WY(_x.prototype,ANt,h1("c","WeakMap"))});var XY=ye((J1r,pqe)=>{"use strict";pqe.exports=k7e()()?WeakMap:vqe()});var mqe=ye(($1r,gqe)=>{"use strict";gqe.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 wz=ox(),ENt=rw(),YY=Nh(),kNt=ey(),CNt=iw(),yqe=A7e(),LNt=M7e(),{float32:PNt,fract32:ZY}=nz(),INt=XY(),_qe=s5(),RNt=mqe(),DNt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -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:Tqe.length}),bqe(f,{update:v,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&_(),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=GNt(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=bqe({},u,L)),VNt(C,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=wqe(M),k+=M.length,M),positions:(M,g)=>(M=wqe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=NNt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let A=g.bounds;return M||(M=A),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=JY(g.scale),g.translateFract=JY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),C}),p||k){let L=c.reduce((g,P,A)=>g+(P?P.count:0),0),x=new Float64Array(L*2),C=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:A,count:z,offset:O,color:U,errors:G}=g;z&&(C.set(U,O*4),M.set(G,O*4),x.set(A,O*2))});var E=HNt(x);i(E);var T=JY(x,E);a(T),o(C),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var kqe=ye((t_r,Eqe)=>{var Mqe=/[\'\"]/;Eqe.exports=function(t){return t?(Mqe.test(t.charAt(0))&&(t=t.substr(1)),Mqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var $Y=ye((r_r,WNt)=>{WNt.exports=["inherit","initial","unset"]});var QY=ye((i_r,XNt)=>{XNt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var eK=ye((n_r,ZNt)=>{ZNt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var tK=ye((a_r,YNt)=>{YNt.exports=["normal","italic","oblique"]});var rK=ye((o_r,KNt)=>{KNt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Iqe=ye((s_r,Pqe)=>{"use strict";function Cqe(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 _=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(_),i+_+i}r.forEach(function(h,d){for(var v,_=0;h!=v;)if(v=h,h=h.replace(u,f),_++>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 Lqe(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 iK(e,t){return Array.isArray(e)?Lqe(e,t):Cqe(e,t)}iK.parse=Cqe;iK.stringify=Lqe;Pqe.exports=iK});var Fqe=ye((l_r,Dqe)=>{"use strict";var Rqe=Iqe();Dqe.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=Rqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{JNt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var nK=ye((c_r,Oqe)=>{"use strict";var $Nt=zqe();Oqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||$Nt.indexOf(t)!==-1}}});var Uqe=ye((f_r,Nqe)=>{"use strict";var QNt=kqe(),eUt=$Y(),tUt=QY(),rUt=eK(),iUt=tK(),nUt=rK(),aK=Fqe(),aUt=nK().isSize;Nqe.exports=Bqe;var Pk=Bqe.cache={};function Bqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Pk[e])return Pk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(tUt.indexOf(e)!==-1)return Pk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=aK(e,/\s+/),n;n=r.shift();){if(eUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Pk[e]=t;if(iUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(nUt.indexOf(n)!==-1){t.stretch=n;continue}if(rUt.indexOf(n)!==-1){t.weight=n;continue}if(aUt(n)){var i=aK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=qqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=qqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=aK(r.join(" "),/\s*,\s*/).map(QNt),Pk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function qqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var sK=ye((h_r,Vqe)=>{"use strict";var oUt=ey(),sUt=nK().isSize,lUt=Rk($Y()),uUt=Rk(QY()),cUt=Rk(eK()),fUt=Rk(tK()),hUt=Rk(rK()),dUt={normal:1,"small-caps":1},vUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},oK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Vqe.exports=function(t){if(t=oUt(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,uUt),t.system;if(Ik(t.style,fUt),Ik(t.variant,dUt),Ik(t.weight,cUt),Ik(t.stretch,hUt),t.size==null&&(t.size=oK.size),typeof t.size=="number"&&(t.size+="px"),!sUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=oK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[oK.family]),t.family=t.family.map(function(n){return vUt[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]&&!lUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Rk(e){for(var t={},r=0;r{"use strict";Gqe.exports={parse:Uqe(),stringify:sK()}});var jqe=ye((lK,uK)=>{(function(e,t){typeof lK=="object"&&typeof uK!="undefined"?uK.exports=t():e.createREGL=t()})(lK,function(){"use strict";var e=function(Me,bt){for(var zt=Object.keys(bt),Rr=0;Rr1&&bt===zt&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Rr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Rr)return s(Me.substr(0,Rr.index)).concat(s(Rr[1])).concat(s(Me.substr(Rr.index+Rr[0].length)));var jr=Me.split(".");if(jr.length===1)return['"'+o(Me)+'"'];for(var Nr=[],Gr=0;Gr65535)<<4,Me>>>=bt,zt=(Me>255)<<3,Me>>>=zt,bt|=zt,zt=(Me>15)<<2,Me>>>=zt,bt|=zt,zt=(Me>3)<<1,Me>>>=zt,bt|=zt,bt|Me>>1}function N(){var Me=M(8,function(){return[]});function bt(Nr){var Gr=Z(Nr),mi=Me[j(Gr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Gr)}function zt(Nr){Me[j(Nr.byteLength)>>2].push(Nr)}function Rr(Nr,Gr){var mi=null;switch(Nr){case g:mi=new Int8Array(bt(Gr),0,Gr);break;case P:mi=new Uint8Array(bt(Gr),0,Gr);break;case A:mi=new Int16Array(bt(2*Gr),0,Gr);break;case z:mi=new Uint16Array(bt(2*Gr),0,Gr);break;case O:mi=new Int32Array(bt(4*Gr),0,Gr);break;case U:mi=new Uint32Array(bt(4*Gr),0,Gr);break;case G:mi=new Float32Array(bt(4*Gr),0,Gr);break;default:return null}return mi.length!==Gr?mi.subarray(0,Gr):mi}function jr(Nr){zt(Nr.buffer)}return{alloc:bt,free:zt,allocType:Rr,freeType:jr}}var H=N();H.zero=N();var re=3408,oe=3410,_e=3411,Ce=3412,Le=3413,ge=3414,ie=3415,Se=33901,Ee=33902,Ae=3379,Be=3386,Pe=34921,me=36347,De=36348,ce=35661,je=35660,lt=34930,pt=36349,Vt=34076,ot=34024,ut=7936,Wt=7937,Nt=7938,$t=35724,sr=34047,Tr=36063,fr=34852,$e=3553,St=34067,Qt=34069,Gt=33984,_t=6408,It=5126,mt=5121,er=36160,lr=36053,wr=36064,Lr=16384,ti=function(Me,bt){var zt=1;bt.ext_texture_filter_anisotropic&&(zt=Me.getParameter(sr));var Rr=1,jr=1;bt.webgl_draw_buffers&&(Rr=Me.getParameter(fr),jr=Me.getParameter(Tr));var Nr=!!bt.oes_texture_float;if(Nr){var Gr=Me.createTexture();Me.bindTexture($e,Gr),Me.texImage2D($e,0,_t,1,1,0,_t,It,null);var mi=Me.createFramebuffer();if(Me.bindFramebuffer(er,mi),Me.framebufferTexture2D(er,wr,$e,Gr,0),Me.bindTexture($e,null),Me.checkFramebufferStatus(er)!==lr)Nr=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Lr);var Ui=H.allocType(It,4);Me.readPixels(0,0,1,1,_t,It,Ui),Me.getError()?Nr=!1:(Me.deleteFramebuffer(mi),Me.deleteTexture(Gr),Nr=Ui[0]===1),H.freeType(Ui)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Ei=!0;if(!qi){var Hn=Me.createTexture(),en=H.allocType(mt,36);Me.activeTexture(Gt),Me.bindTexture(St,Hn),Me.texImage2D(Qt,0,_t,3,3,0,_t,mt,en),H.freeType(en),Me.bindTexture(St,null),Me.deleteTexture(Hn),Ei=!Me.getError()}return{colorBits:[Me.getParameter(oe),Me.getParameter(_e),Me.getParameter(Ce),Me.getParameter(Le)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(ie),subpixelBits:Me.getParameter(re),extensions:Object.keys(bt).filter(function(Wi){return!!bt[Wi]}),maxAnisotropic:zt,maxDrawbuffers:Rr,maxColorAttachments:jr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(Ee),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Vt),maxRenderbufferSize:Me.getParameter(ot),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(Ae),maxAttributes:Me.getParameter(Pe),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(je),maxVaryingVectors:Me.getParameter(De),maxFragmentUniforms:Me.getParameter(pt),glsl:Me.getParameter($t),renderer:Me.getParameter(Wt),vendor:Me.getParameter(ut),version:Me.getParameter(Nt),readFloat:Nr,npotTextureCube:Ei}},Br=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 Vr(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)||Br(Me.data))}var dt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:xe,flatten:Ie};function Je(Me,bt,zt){for(var Rr=0;Rr0){var Bn;if(Array.isArray(Yr[0])){Zi=Fn(Yr);for(var hi=1,li=1;li0){if(typeof hi[0]=="number"){var Vi=H.allocType(ci.dtype,hi.length);Er(Vi,hi),Zi(Vi,mn),H.freeType(Vi)}else if(Array.isArray(hi[0])||Br(hi[0])){Ji=Fn(hi);var Ni=qn(hi,Ji,ci.dtype);Zi(Ni,mn),H.freeType(Ni)}}}else if(Vr(hi)){Ji=hi.shape;var pn=hi.stride,Vn=0,na=0,Ki=0,kn=0;Ji.length===1?(Vn=Ji[0],na=1,Ki=pn[0],kn=0):Ji.length===2&&(Vn=Ji[0],na=Ji[1],Ki=pn[0],kn=pn[1]);var ta=Array.isArray(hi.data)?ci.dtype:nr(hi.data),oa=H.allocType(ta,Vn*na);Xr(oa,hi.data,Vn,na,Ki,kn,hi.offset),Zi(oa,mn),H.freeType(oa)}return an}return xi||an(Mr),an._reglType="buffer",an._buffer=ci,an.subdata=Bn,zt.profile&&(an.stats=ci.stats),an.destroy=function(){en(ci)},an}function si(){dt(Nr).forEach(function(Mr){Mr.buffer=Me.createBuffer(),Me.bindBuffer(Mr.type,Mr.buffer),Me.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(bt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Nr).forEach(function(Yr){Mr+=Nr[Yr].stats.size}),Mr}),{create:Wi,createStream:Ui,destroyStream:qi,clear:function(){dt(Nr).forEach(en),mi.forEach(en)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Gr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var Qr=0,Oi=0,$i=1,tn=1,fn=4,yn=4,Sn={points:Qr,point:Oi,lines:$i,line:tn,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,Wn=5124,Ha=5125,vo=34963,jn=35040,Mt=35044;function kr(Me,bt,zt,Rr){var jr={},Nr=0,Gr={uint8:Fa,uint16:da};bt.oes_element_index_uint&&(Gr.uint32=Ha);function mi(si){this.id=Nr++,jr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ui=[];function qi(si){var Mr=Ui.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Ei(si){Ui.push(si)}function Hn(si,Mr,Yr,xi,Ri,ci,an){si.buffer.bind();var Zi;if(Mr){var Bn=an;!an&&(!Br(Mr)||Vr(Mr)&&!Br(Mr.data))&&(Bn=bt.oes_element_index_uint?Ha:da),zt._initBuffer(si.buffer,Mr,Yr,Bn,3)}else Me.bufferData(vo,ci,Yr),si.buffer.dtype=Zi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Zi=an,!an){switch(si.buffer.dtype){case Fa:case Wa:Zi=Fa;break;case da:case Xo:Zi=da;break;case Ha:case Wn:Zi=Ha;break;default:}si.buffer.dtype=Zi}si.type=Zi;var hi=Ri;hi<0&&(hi=si.buffer.byteLength,Zi===da?hi>>=1:Zi===Ha&&(hi>>=2)),si.vertCount=hi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=ua),mn===3&&(li=ma)}si.primType=li}function en(si){Rr.elementsCount--,delete jr[si.id],si.buffer.destroy(),si.buffer=null}function Wi(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Rr.elementsCount++;function Ri(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var an=null,Zi=Mt,Bn=-1,hi=-1,li=0,mn=0;Array.isArray(ci)||Br(ci)||Vr(ci)?an=ci:("data"in ci&&(an=ci.data),"usage"in ci&&(Zi=On[ci.usage]),"primitive"in ci&&(Bn=Sn[ci.primitive]),"count"in ci&&(hi=ci.count|0),"type"in ci&&(mn=Gr[ci.type]),"length"in ci?li=ci.length|0:(li=hi,mn===da||mn===Xo?li*=2:(mn===Ha||mn===Wn)&&(li*=4))),Hn(xi,an,Zi,Bn,hi,li,mn)}return Ri}return Ri(si),Ri._reglType="elements",Ri._elements=xi,Ri.subdata=function(ci,an){return Yr.subdata(ci,an),Ri},Ri.destroy=function(){en(xi)},Ri}return{create:Wi,createStream:qi,destroyStream:Ei,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(jr).forEach(en)}}}var Jr=new Float32Array(1),vi=new Uint32Array(Jr.buffer),hn=5123;function An(Me){for(var bt=H.allocType(hn,Me.length),zt=0;zt>>31<<15,Nr=(Rr<<1>>>24)-127,Gr=Rr>>13&1023;if(Nr<-24)bt[zt]=jr;else if(Nr<-14){var mi=-14-Nr;bt[zt]=jr+(Gr+1024>>mi)}else Nr>15?bt[zt]=jr+31744:bt[zt]=jr+(Nr+15<<10)+Gr}return bt}function Mn(Me){return Array.isArray(Me)||Br(Me)}var Li=34467,_n=3553,ya=34067,$n=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,Ol=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,Os=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,nf=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,Os,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"),qs=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(ke).concat([uc,xl,Gu,qs,od,Po]),Ko=[];Ko[Ns]=1,Ko[aa]=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[Ol]=.5,Pa[xo]=.25,Pa[Kl]=.5;function af(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||!Mn(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)===qs}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:af(Me)||Hu(Me)||Vr(Me)}function Yc(Me){return ke[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var zt=bt.length;switch(Me.type){case Ns:case Hl:case ac:case aa:var Rr=H.allocType(Me.type,zt);Rr.set(bt),Me.data=Rr;break;case zs:Me.data=An(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?aa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=An(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,zt,Rr,jr,Nr){for(var Gr=Me.width,mi=Me.height,Ui=Me.channels,qi=Gr*mi*Ui,Ei=th(Me,qi),Hn=0,en=0;en=1;)mi+=Gr*Ui*Ui,Ui/=2;return mi}else return Gr*zt*Rr}function of(Me,bt,zt,Rr,jr,Nr,Gr){var mi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ui={repeat:ql,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Ei=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":Os,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Hn={none:0,browser:lc},en={uint8:Ns,rgba4:ll,rgb565:zl,"rgb5 a1":ul},Wi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},si={};bt.ext_srgb&&(Wi.srgb=cl,Wi.srgba=Ks),bt.oes_texture_float&&(en.float32=en.float=aa),bt.oes_texture_half_float&&(en.float16=en["half float"]=zs),bt.webgl_depth_texture&&(e(Wi,{depth:il,"depth stencil":As}),e(en,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Kl);var Mr=Array.prototype.slice.call(Me.getParameter(Li));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(Wi[ne]=we)});var Yr=Object.keys(Wi);zt.textureFormats=Yr;var xi=[];Object.keys(Wi).forEach(function(ne){var we=Wi[ne];xi[we]=ne});var Ri=[];Object.keys(en).forEach(function(ne){var we=en[ne];Ri[we]=ne});var ci=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ci[we]=ne});var an=[];Object.keys(Ei).forEach(function(ne){var we=Ei[ne];an[we]=ne});var Zi=[];Object.keys(Ui).forEach(function(ne){var we=Ui[ne];Zi[we]=ne});var Bn=Yr.reduce(function(ne,we){var Ue=Wi[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===il||Ue===As||bt.ext_srgb&&(Ue===cl||Ue===Ks)?ne[Ue]=Ue:Ue===Ds||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function hi(){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 li(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=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=en[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var Qe=we.format,at=ne.internalformat=Wi[Qe];ne.format=Bn[at],Qe in en&&("type"in we||(ne.type=en[Qe])),Qe in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&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(nf,ne.unpackAlignment)}function Vi(){hi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Ni(ne,we){var Ue=null;if(_f(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Ue=we.data)),we.copy){var ft=jr.viewportWidth,Zt=jr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Br(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Vr(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Ns&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,Qe,at,Ct,Ot,Rt,Bt;qt.length===3?(Ct=qt[2],Bt=Ve[2]):(Ct=1,Bt=1),Qe=qt[0],at=qt[1],Ot=Ve[0],Rt=Ve[1],ne.alignment=1,ne.width=Qe,ne.height=at,ne.channels=Ct,ne.format=ne.internalformat=Hs[Ct],ne.needsFree=!0,jf(ne,hr,Ot,Rt,Bt,Ue.offset)}else if(Hf(Ue)||Ic(Ue)||yf(Ue))Hf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(Ah(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Dt=ne.width||Ue[0].length,yt=ne.height||Ue.length,Pt=ne.channels;Mn(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),ur=1,br=0;br>=Zt,Ue.height>>=Zt,Ni(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=qi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ui[qt]:Array.isArray(qt)&&(Zt=Ui[qt[0]],hr=Ui[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ui[Ve]}if("wrapT"in we){var Qe=we.wrapT;hr=Ui[Qe]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var Ct=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,Ct=!0;break;case"boolean":Ct=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,Ct=!0;break;default:}Ct&&!("min"in we)&&(ne.minFilter=Jl)}}function al(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,rf,ne.magFilter),Me.texParameteri(we,Oo,ne.wrapS),Me.texParameteri(we,qo,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=zt.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){hi.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,Gr.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,Ue=ne.unit,ft=ne.target;Ue>=0&&(Me.activeTexture(Fu+Ue),Me.bindTexture(ft,null),Ys[Ue]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Nr.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ys[Ue]=ne,we=Ue;break}we>=Vs,Gr.profile&&Nr.maxTextureUnits>Rt)-Ct,Bt.height=Bt.height||(Ue.height>>Rt)-Ot,ol(Ue),Vn(Bt,_n,Ct,Ot,Rt),io(),kn(Bt),ft}function hr(qt,Ve){var Qe=qt|0,at=Ve|0||Qe;if(Qe===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=Qe,ft.height=Ue.height=at,ol(Ue);for(var Ct=0;Ue.mipmask>>Ct;++Ct){var Ot=Qe>>Ct,Rt=at>>Ct;if(!Ot||!Rt)break;Me.texImage2D(_n,Ct,Ue.format,Ot,Rt,0,Ue.format,Ue.type,null)}return io(),Gr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,Qe,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Gr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new wa(ya);ss[qt.id]=qt,Nr.cubeCount++;var Ve=new Array(6);function Qe(Ot,Rt,Bt,Dt,yt,Pt){var ht,ur=qt.texInfo;for(zo.call(ur),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(Rt)ba(Ve[0],Ot),ba(Ve[1],Rt),ba(Ve[2],Bt),ba(Ve[3],Dt),ba(Ve[4],yt),ba(Ve[5],Pt);else if(Qs(ur,Ot),mn(qt,Ot),"faces"in Ot){var Ur=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),ba(Ve[ht],Ur[ht])}else for(ht=0;ht<6;++ht)ba(Ve[ht],Ot);for(li(qt,Ve[0]),ur.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,Qe.width=Ve[0].width,Qe.height=Ve[0].height,ol(qt),ht=0;ht<6;++ht)is(Ve[ht],$n+ht);for(al(ur,ya),io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,ur.genMipmaps,!0)),Qe.format=xi[qt.internalformat],Qe.type=Ri[qt.type],Qe.mag=ci[ur.magFilter],Qe.min=an[ur.minFilter],Qe.wrapS=Zi[ur.wrapS],Qe.wrapT=Zi[ur.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return Qe}function at(Ot,Rt,Bt,Dt,yt){var Pt=Bt|0,ht=Dt|0,ur=yt|0,br=Ki();return li(br,qt),br.width=0,br.height=0,Ni(br,Rt),br.width=br.width||(qt.width>>ur)-Pt,br.height=br.height||(qt.height>>ur)-ht,ol(qt),Vn(br,$n+Ot,Pt,ht,ur),io(),kn(br),Qe}function Ct(Ot){var Rt=Ot|0;if(Rt!==qt.width){Qe.width=qt.width=Rt,Qe.height=qt.height=Rt,ol(qt);for(var Bt=0;Bt<6;++Bt)for(var Dt=0;qt.mipmask>>Dt;++Dt)Me.texImage2D($n+Bt,Dt,qt.format,Rt>>Dt,Rt>>Dt,0,qt.format,qt.type,null);return io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(ne,we,Ue,ft,Zt,hr),Qe.subimage=at,Qe.resize=Ct,Qe._reglType="textureCube",Qe._texture=qt,Gr.profile&&(Qe.stats=qt.stats),Qe.destroy=function(){qt.decRef()},Qe}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Me.texImage2D($n+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);al(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ui.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(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(al),ta=0;ta0&&(kn.depth=Ni[0].depth,kn.stencil=Ni[0].stencil,kn.depthStencil=Ni[0].depthStencil),Ni[Ki]?Ni[Ki](kn):Ni[Ki]=li(kn)}return e(pn,{width:ta,height:ta,color:zo})}function Vn(na){var Ki,kn=na|0;if(kn===pn.width)return pn;var ta=pn.color;for(Ki=0;Ki=ta.byteLength?oa.subdata(ta):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=jr.create(Ki,If,!1,!0)),kn.buffer=jr.getBuffer(oa),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1,pn[na]=1}else jr.getBuffer(Ki)?(kn.buffer=jr.getBuffer(Ki),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1):jr.getBuffer(Ki.buffer)?(kn.buffer=jr.getBuffer(Ki.buffer),kn.size=(+Ki.size||kn.buffer.dimension)|0,kn.normalized=!!Ki.normalized||!1,"type"in Ki?kn.type=ji[Ki.type]:kn.type=kn.buffer.dtype,kn.offset=(Ki.offset||0)|0,kn.stride=(Ki.stride||0)|0,kn.divisor=(Ki.divisor||0)|0,kn.state=1):"x"in Ki&&(kn.x=+Ki.x||0,kn.y=+Ki.y||0,kn.z=+Ki.z||0,kn.w=+Ki.w||0,kn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Ei.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){jr={},Nr={};for(var Mr=0;Mr16&&(zt=Yi(zt,Me.length*8));for(var Rr=Array(16),jr=Array(16),Nr=0;Nr<16;Nr++)Rr[Nr]=zt[Nr]^909522486,jr[Nr]=zt[Nr]^1549556828;var Gr=Yi(Rr.concat(Bc(bt)),512+bt.length*8);return At(Yi(jr.concat(Gr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Rr,jr=0;jr>>4&15)+bt.charAt(Rr&15);return zt}function qc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Rr=Me.length,jr=0;jrMe.length*8?zt+=Zu:zt+=bt.charAt(Nr>>>6*(3-Gr)&63);return zt}function cf(Me,bt){var zt=bt.length,Rr=Array(),jr,Nr,Gr,mi,Ui=Array(Math.ceil(Me.length/2));for(jr=0;jr0;){for(mi=Array(),Gr=0,jr=0;jr0||Nr>0)&&(mi[mi.length]=Nr);Rr[Rr.length]=Gr,Ui=mi}var qi="";for(jr=Rr.length-1;jr>=0;jr--)qi+=bt.charAt(Rr[jr]);var Ei=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(jr=qi.length;jr>>6&31,128|Rr&63):Rr<=65535?bt+=String.fromCharCode(224|Rr>>>12&15,128|Rr>>>6&63,128|Rr&63):Rr<=2097151&&(bt+=String.fromCharCode(240|Rr>>>18&7,128|Rr>>>12&63,128|Rr>>>6&63,128|Rr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),zt=0;zt>5]|=(Me.charCodeAt(zt/8)&255)<<24-zt%32;return bt}function At(Me){for(var bt="",zt=0;zt>5]>>>24-zt%32&255);return bt}function Xt(Me,bt){return Me>>>bt|Me<<32-bt}function Cr(Me,bt){return Me>>>bt}function Ar(Me,bt,zt){return Me&bt^~Me&zt}function Kr(Me,bt,zt){return Me&bt^Me&zt^bt&zt}function ki(Me){return Xt(Me,2)^Xt(Me,13)^Xt(Me,22)}function Xi(Me){return Xt(Me,6)^Xt(Me,11)^Xt(Me,25)}function dn(Me){return Xt(Me,7)^Xt(Me,18)^Cr(Me,3)}function wn(Me){return Xt(Me,17)^Xt(Me,19)^Cr(Me,10)}var Nn=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 zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Rr=new Array(64),jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,en=0;en>16)+(bt>>16)+(zt>>16);return Rr<<16|zt&65535}function on(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return on(Me).join("")}function Qn(Me){var bt=Me&&Me.cache,zt=0,Rr=[],jr=[],Nr=[];function Gr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ri,"="),si.push.apply(si,on(arguments)),si.push(";")),Ri}return e(Mr,{def:xi,toString:function(){return Fi([Yr.length>0?"var "+Yr.join(",")+";":"",Fi(si)])}})}function Ui(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ri(ci,an){Mr(ci,an,"=",si.def(ci,an),";")}return e(function(){si.apply(si,on(arguments))},{def:si.def,entry:si,exit:Mr,save:Ri,set:function(ci,an,Zi){Ri(ci,an),si(ci,an,"=",Zi,";")},toString:function(){return Yr()+xi()}})}function qi(){var si=Fi(arguments),Mr=Ui(),Yr=Ui(),xi=Mr.toString,Ri=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,on(arguments)),this},else:function(){return Yr.apply(Yr,on(arguments)),this},toString:function(){var ci=Ri();return ci&&(ci="else{"+ci+"}"),Fi(["if(",si,"){",xi(),"}",ci])}})}var Ei=mi(),Hn={};function en(si,Mr){var Yr=[];function xi(){var Bn="a"+Yr.length;return Yr.push(Bn),Bn}Mr=Mr||0;for(var Ri=0;Ri[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:Tqe.length}),bqe(f,{update:v,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&_(),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=GNt(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=bqe({},u,L)),VNt(C,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=wqe(M),k+=M.length,M),positions:(M,g)=>(M=wqe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=NNt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let A=g.bounds;return M||(M=A),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=JY(g.scale),g.translateFract=JY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),C}),p||k){let L=c.reduce((g,P,A)=>g+(P?P.count:0),0),x=new Float64Array(L*2),C=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:A,count:z,offset:O,color:U,errors:G}=g;z&&(C.set(U,O*4),M.set(G,O*4),x.set(A,O*2))});var E=HNt(x);i(E);var T=JY(x,E);a(T),o(C),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var kqe=ye((t_r,Eqe)=>{var Mqe=/[\'\"]/;Eqe.exports=function(t){return t?(Mqe.test(t.charAt(0))&&(t=t.substr(1)),Mqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var $Y=ye((r_r,WNt)=>{WNt.exports=["inherit","initial","unset"]});var QY=ye((i_r,XNt)=>{XNt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var eK=ye((n_r,ZNt)=>{ZNt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var tK=ye((a_r,YNt)=>{YNt.exports=["normal","italic","oblique"]});var rK=ye((o_r,KNt)=>{KNt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Iqe=ye((s_r,Pqe)=>{"use strict";function Cqe(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 _=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(_),i+_+i}r.forEach(function(h,d){for(var v,_=0;h!=v;)if(v=h,h=h.replace(u,f),_++>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 Lqe(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 iK(e,t){return Array.isArray(e)?Lqe(e,t):Cqe(e,t)}iK.parse=Cqe;iK.stringify=Lqe;Pqe.exports=iK});var Fqe=ye((l_r,Dqe)=>{"use strict";var Rqe=Iqe();Dqe.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=Rqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{JNt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var nK=ye((c_r,Oqe)=>{"use strict";var $Nt=zqe();Oqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||$Nt.indexOf(t)!==-1}}});var Uqe=ye((f_r,Nqe)=>{"use strict";var QNt=kqe(),eUt=$Y(),tUt=QY(),rUt=eK(),iUt=tK(),nUt=rK(),aK=Fqe(),aUt=nK().isSize;Nqe.exports=Bqe;var Ik=Bqe.cache={};function Bqe(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(tUt.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=aK(e,/\s+/),n;n=r.shift();){if(eUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Ik[e]=t;if(iUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(nUt.indexOf(n)!==-1){t.stretch=n;continue}if(rUt.indexOf(n)!==-1){t.weight=n;continue}if(aUt(n)){var i=aK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=qqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=qqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=aK(r.join(" "),/\s*,\s*/).map(QNt),Ik[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function qqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var sK=ye((h_r,Vqe)=>{"use strict";var oUt=ey(),sUt=nK().isSize,lUt=Dk($Y()),uUt=Dk(QY()),cUt=Dk(eK()),fUt=Dk(tK()),hUt=Dk(rK()),dUt={normal:1,"small-caps":1},vUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},oK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Vqe.exports=function(t){if(t=oUt(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,uUt),t.system;if(Rk(t.style,fUt),Rk(t.variant,dUt),Rk(t.weight,cUt),Rk(t.stretch,hUt),t.size==null&&(t.size=oK.size),typeof t.size=="number"&&(t.size+="px"),!sUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=oK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[oK.family]),t.family=t.family.map(function(n){return vUt[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]&&!lUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Dk(e){for(var t={},r=0;r{"use strict";Gqe.exports={parse:Uqe(),stringify:sK()}});var jqe=ye((lK,uK)=>{(function(e,t){typeof lK=="object"&&typeof uK!="undefined"?uK.exports=t():e.createREGL=t()})(lK,function(){"use strict";var e=function(Me,bt){for(var zt=Object.keys(bt),Rr=0;Rr1&&bt===zt&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Rr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Rr)return s(Me.substr(0,Rr.index)).concat(s(Rr[1])).concat(s(Me.substr(Rr.index+Rr[0].length)));var jr=Me.split(".");if(jr.length===1)return['"'+o(Me)+'"'];for(var Nr=[],Gr=0;Gr65535)<<4,Me>>>=bt,zt=(Me>255)<<3,Me>>>=zt,bt|=zt,zt=(Me>15)<<2,Me>>>=zt,bt|=zt,zt=(Me>3)<<1,Me>>>=zt,bt|=zt,bt|Me>>1}function N(){var Me=M(8,function(){return[]});function bt(Nr){var Gr=Z(Nr),mi=Me[j(Gr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Gr)}function zt(Nr){Me[j(Nr.byteLength)>>2].push(Nr)}function Rr(Nr,Gr){var mi=null;switch(Nr){case g:mi=new Int8Array(bt(Gr),0,Gr);break;case P:mi=new Uint8Array(bt(Gr),0,Gr);break;case A:mi=new Int16Array(bt(2*Gr),0,Gr);break;case z:mi=new Uint16Array(bt(2*Gr),0,Gr);break;case O:mi=new Int32Array(bt(4*Gr),0,Gr);break;case U:mi=new Uint32Array(bt(4*Gr),0,Gr);break;case G:mi=new Float32Array(bt(4*Gr),0,Gr);break;default:return null}return mi.length!==Gr?mi.subarray(0,Gr):mi}function jr(Nr){zt(Nr.buffer)}return{alloc:bt,free:zt,allocType:Rr,freeType:jr}}var H=N();H.zero=N();var re=3408,oe=3410,_e=3411,Ce=3412,Le=3413,ge=3414,ie=3415,Se=33901,Ee=33902,Ae=3379,Be=3386,Pe=34921,me=36347,De=36348,ce=35661,je=35660,lt=34930,pt=36349,Vt=34076,ot=34024,ut=7936,Wt=7937,Nt=7938,$t=35724,sr=34047,Tr=36063,fr=34852,$e=3553,St=34067,Qt=34069,Gt=33984,_t=6408,It=5126,mt=5121,er=36160,lr=36053,wr=36064,Lr=16384,ti=function(Me,bt){var zt=1;bt.ext_texture_filter_anisotropic&&(zt=Me.getParameter(sr));var Rr=1,jr=1;bt.webgl_draw_buffers&&(Rr=Me.getParameter(fr),jr=Me.getParameter(Tr));var Nr=!!bt.oes_texture_float;if(Nr){var Gr=Me.createTexture();Me.bindTexture($e,Gr),Me.texImage2D($e,0,_t,1,1,0,_t,It,null);var mi=Me.createFramebuffer();if(Me.bindFramebuffer(er,mi),Me.framebufferTexture2D(er,wr,$e,Gr,0),Me.bindTexture($e,null),Me.checkFramebufferStatus(er)!==lr)Nr=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Lr);var Ui=H.allocType(It,4);Me.readPixels(0,0,1,1,_t,It,Ui),Me.getError()?Nr=!1:(Me.deleteFramebuffer(mi),Me.deleteTexture(Gr),Nr=Ui[0]===1),H.freeType(Ui)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Ei=!0;if(!qi){var Hn=Me.createTexture(),en=H.allocType(mt,36);Me.activeTexture(Gt),Me.bindTexture(St,Hn),Me.texImage2D(Qt,0,_t,3,3,0,_t,mt,en),H.freeType(en),Me.bindTexture(St,null),Me.deleteTexture(Hn),Ei=!Me.getError()}return{colorBits:[Me.getParameter(oe),Me.getParameter(_e),Me.getParameter(Ce),Me.getParameter(Le)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(ie),subpixelBits:Me.getParameter(re),extensions:Object.keys(bt).filter(function(Wi){return!!bt[Wi]}),maxAnisotropic:zt,maxDrawbuffers:Rr,maxColorAttachments:jr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(Ee),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Vt),maxRenderbufferSize:Me.getParameter(ot),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(Ae),maxAttributes:Me.getParameter(Pe),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(je),maxVaryingVectors:Me.getParameter(De),maxFragmentUniforms:Me.getParameter(pt),glsl:Me.getParameter($t),renderer:Me.getParameter(Wt),vendor:Me.getParameter(ut),version:Me.getParameter(Nt),readFloat:Nr,npotTextureCube:Ei}},Br=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 Vr(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)||Br(Me.data))}var dt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:xe,flatten:Ie};function Je(Me,bt,zt){for(var Rr=0;Rr0){var Bn;if(Array.isArray(Yr[0])){Zi=Fn(Yr);for(var hi=1,li=1;li0){if(typeof hi[0]=="number"){var Vi=H.allocType(ci.dtype,hi.length);Er(Vi,hi),Zi(Vi,mn),H.freeType(Vi)}else if(Array.isArray(hi[0])||Br(hi[0])){Ji=Fn(hi);var Ni=qn(hi,Ji,ci.dtype);Zi(Ni,mn),H.freeType(Ni)}}}else if(Vr(hi)){Ji=hi.shape;var pn=hi.stride,Vn=0,na=0,Ki=0,kn=0;Ji.length===1?(Vn=Ji[0],na=1,Ki=pn[0],kn=0):Ji.length===2&&(Vn=Ji[0],na=Ji[1],Ki=pn[0],kn=pn[1]);var ta=Array.isArray(hi.data)?ci.dtype:nr(hi.data),oa=H.allocType(ta,Vn*na);Xr(oa,hi.data,Vn,na,Ki,kn,hi.offset),Zi(oa,mn),H.freeType(oa)}return an}return xi||an(Mr),an._reglType="buffer",an._buffer=ci,an.subdata=Bn,zt.profile&&(an.stats=ci.stats),an.destroy=function(){en(ci)},an}function si(){dt(Nr).forEach(function(Mr){Mr.buffer=Me.createBuffer(),Me.bindBuffer(Mr.type,Mr.buffer),Me.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(bt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Nr).forEach(function(Yr){Mr+=Nr[Yr].stats.size}),Mr}),{create:Wi,createStream:Ui,destroyStream:qi,clear:function(){dt(Nr).forEach(en),mi.forEach(en)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Gr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var Qr=0,Oi=0,$i=1,tn=1,fn=4,yn=4,Sn={points:Qr,point:Oi,lines:$i,line:tn,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,Wn=5124,Ha=5125,vo=34963,jn=35040,Mt=35044;function kr(Me,bt,zt,Rr){var jr={},Nr=0,Gr={uint8:Fa,uint16:da};bt.oes_element_index_uint&&(Gr.uint32=Ha);function mi(si){this.id=Nr++,jr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ui=[];function qi(si){var Mr=Ui.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Ei(si){Ui.push(si)}function Hn(si,Mr,Yr,xi,Ri,ci,an){si.buffer.bind();var Zi;if(Mr){var Bn=an;!an&&(!Br(Mr)||Vr(Mr)&&!Br(Mr.data))&&(Bn=bt.oes_element_index_uint?Ha:da),zt._initBuffer(si.buffer,Mr,Yr,Bn,3)}else Me.bufferData(vo,ci,Yr),si.buffer.dtype=Zi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Zi=an,!an){switch(si.buffer.dtype){case Fa:case Wa:Zi=Fa;break;case da:case Xo:Zi=da;break;case Ha:case Wn:Zi=Ha;break;default:}si.buffer.dtype=Zi}si.type=Zi;var hi=Ri;hi<0&&(hi=si.buffer.byteLength,Zi===da?hi>>=1:Zi===Ha&&(hi>>=2)),si.vertCount=hi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=ua),mn===3&&(li=ma)}si.primType=li}function en(si){Rr.elementsCount--,delete jr[si.id],si.buffer.destroy(),si.buffer=null}function Wi(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Rr.elementsCount++;function Ri(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var an=null,Zi=Mt,Bn=-1,hi=-1,li=0,mn=0;Array.isArray(ci)||Br(ci)||Vr(ci)?an=ci:("data"in ci&&(an=ci.data),"usage"in ci&&(Zi=On[ci.usage]),"primitive"in ci&&(Bn=Sn[ci.primitive]),"count"in ci&&(hi=ci.count|0),"type"in ci&&(mn=Gr[ci.type]),"length"in ci?li=ci.length|0:(li=hi,mn===da||mn===Xo?li*=2:(mn===Ha||mn===Wn)&&(li*=4))),Hn(xi,an,Zi,Bn,hi,li,mn)}return Ri}return Ri(si),Ri._reglType="elements",Ri._elements=xi,Ri.subdata=function(ci,an){return Yr.subdata(ci,an),Ri},Ri.destroy=function(){en(xi)},Ri}return{create:Wi,createStream:qi,destroyStream:Ei,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(jr).forEach(en)}}}var Jr=new Float32Array(1),vi=new Uint32Array(Jr.buffer),hn=5123;function An(Me){for(var bt=H.allocType(hn,Me.length),zt=0;zt>>31<<15,Nr=(Rr<<1>>>24)-127,Gr=Rr>>13&1023;if(Nr<-24)bt[zt]=jr;else if(Nr<-14){var mi=-14-Nr;bt[zt]=jr+(Gr+1024>>mi)}else Nr>15?bt[zt]=jr+31744:bt[zt]=jr+(Nr+15<<10)+Gr}return bt}function Mn(Me){return Array.isArray(Me)||Br(Me)}var Li=34467,_n=3553,ya=34067,$n=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,Ol=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,Os=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,nf=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,Os,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"),qs=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(ke).concat([uc,xl,Gu,qs,od,Po]),Ko=[];Ko[Ns]=1,Ko[aa]=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[Ol]=.5,Pa[xo]=.25,Pa[Kl]=.5;function af(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||!Mn(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)===qs}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:af(Me)||Hu(Me)||Vr(Me)}function Yc(Me){return ke[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var zt=bt.length;switch(Me.type){case Ns:case Hl:case ac:case aa:var Rr=H.allocType(Me.type,zt);Rr.set(bt),Me.data=Rr;break;case zs:Me.data=An(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?aa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=An(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,zt,Rr,jr,Nr){for(var Gr=Me.width,mi=Me.height,Ui=Me.channels,qi=Gr*mi*Ui,Ei=th(Me,qi),Hn=0,en=0;en=1;)mi+=Gr*Ui*Ui,Ui/=2;return mi}else return Gr*zt*Rr}function of(Me,bt,zt,Rr,jr,Nr,Gr){var mi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ui={repeat:ql,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Ei=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":Os,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Hn={none:0,browser:lc},en={uint8:Ns,rgba4:ll,rgb565:zl,"rgb5 a1":ul},Wi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},si={};bt.ext_srgb&&(Wi.srgb=cl,Wi.srgba=Ks),bt.oes_texture_float&&(en.float32=en.float=aa),bt.oes_texture_half_float&&(en.float16=en["half float"]=zs),bt.webgl_depth_texture&&(e(Wi,{depth:il,"depth stencil":As}),e(en,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Kl);var Mr=Array.prototype.slice.call(Me.getParameter(Li));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(Wi[ne]=we)});var Yr=Object.keys(Wi);zt.textureFormats=Yr;var xi=[];Object.keys(Wi).forEach(function(ne){var we=Wi[ne];xi[we]=ne});var Ri=[];Object.keys(en).forEach(function(ne){var we=en[ne];Ri[we]=ne});var ci=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ci[we]=ne});var an=[];Object.keys(Ei).forEach(function(ne){var we=Ei[ne];an[we]=ne});var Zi=[];Object.keys(Ui).forEach(function(ne){var we=Ui[ne];Zi[we]=ne});var Bn=Yr.reduce(function(ne,we){var Ue=Wi[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===il||Ue===As||bt.ext_srgb&&(Ue===cl||Ue===Ks)?ne[Ue]=Ue:Ue===Ds||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function hi(){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 li(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=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=en[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var Qe=we.format,at=ne.internalformat=Wi[Qe];ne.format=Bn[at],Qe in en&&("type"in we||(ne.type=en[Qe])),Qe in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&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(nf,ne.unpackAlignment)}function Vi(){hi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Ni(ne,we){var Ue=null;if(_f(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Ue=we.data)),we.copy){var ft=jr.viewportWidth,Zt=jr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Br(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Vr(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Ns&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,Qe,at,Ct,Ot,Rt,Bt;qt.length===3?(Ct=qt[2],Bt=Ve[2]):(Ct=1,Bt=1),Qe=qt[0],at=qt[1],Ot=Ve[0],Rt=Ve[1],ne.alignment=1,ne.width=Qe,ne.height=at,ne.channels=Ct,ne.format=ne.internalformat=Hs[Ct],ne.needsFree=!0,jf(ne,hr,Ot,Rt,Bt,Ue.offset)}else if(Hf(Ue)||Ic(Ue)||yf(Ue))Hf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(Ah(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Dt=ne.width||Ue[0].length,yt=ne.height||Ue.length,Pt=ne.channels;Mn(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),ur=1,br=0;br>=Zt,Ue.height>>=Zt,Ni(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=qi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ui[qt]:Array.isArray(qt)&&(Zt=Ui[qt[0]],hr=Ui[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ui[Ve]}if("wrapT"in we){var Qe=we.wrapT;hr=Ui[Qe]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var Ct=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,Ct=!0;break;case"boolean":Ct=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,Ct=!0;break;default:}Ct&&!("min"in we)&&(ne.minFilter=Jl)}}function al(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,rf,ne.magFilter),Me.texParameteri(we,Oo,ne.wrapS),Me.texParameteri(we,qo,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=zt.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){hi.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,Gr.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,Ue=ne.unit,ft=ne.target;Ue>=0&&(Me.activeTexture(Fu+Ue),Me.bindTexture(ft,null),Ys[Ue]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Nr.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ys[Ue]=ne,we=Ue;break}we>=Vs,Gr.profile&&Nr.maxTextureUnits>Rt)-Ct,Bt.height=Bt.height||(Ue.height>>Rt)-Ot,ol(Ue),Vn(Bt,_n,Ct,Ot,Rt),io(),kn(Bt),ft}function hr(qt,Ve){var Qe=qt|0,at=Ve|0||Qe;if(Qe===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=Qe,ft.height=Ue.height=at,ol(Ue);for(var Ct=0;Ue.mipmask>>Ct;++Ct){var Ot=Qe>>Ct,Rt=at>>Ct;if(!Ot||!Rt)break;Me.texImage2D(_n,Ct,Ue.format,Ot,Rt,0,Ue.format,Ue.type,null)}return io(),Gr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,Qe,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Gr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new wa(ya);ss[qt.id]=qt,Nr.cubeCount++;var Ve=new Array(6);function Qe(Ot,Rt,Bt,Dt,yt,Pt){var ht,ur=qt.texInfo;for(zo.call(ur),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(Rt)ba(Ve[0],Ot),ba(Ve[1],Rt),ba(Ve[2],Bt),ba(Ve[3],Dt),ba(Ve[4],yt),ba(Ve[5],Pt);else if(Qs(ur,Ot),mn(qt,Ot),"faces"in Ot){var Ur=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),ba(Ve[ht],Ur[ht])}else for(ht=0;ht<6;++ht)ba(Ve[ht],Ot);for(li(qt,Ve[0]),ur.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,Qe.width=Ve[0].width,Qe.height=Ve[0].height,ol(qt),ht=0;ht<6;++ht)is(Ve[ht],$n+ht);for(al(ur,ya),io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,ur.genMipmaps,!0)),Qe.format=xi[qt.internalformat],Qe.type=Ri[qt.type],Qe.mag=ci[ur.magFilter],Qe.min=an[ur.minFilter],Qe.wrapS=Zi[ur.wrapS],Qe.wrapT=Zi[ur.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return Qe}function at(Ot,Rt,Bt,Dt,yt){var Pt=Bt|0,ht=Dt|0,ur=yt|0,br=Ki();return li(br,qt),br.width=0,br.height=0,Ni(br,Rt),br.width=br.width||(qt.width>>ur)-Pt,br.height=br.height||(qt.height>>ur)-ht,ol(qt),Vn(br,$n+Ot,Pt,ht,ur),io(),kn(br),Qe}function Ct(Ot){var Rt=Ot|0;if(Rt!==qt.width){Qe.width=qt.width=Rt,Qe.height=qt.height=Rt,ol(qt);for(var Bt=0;Bt<6;++Bt)for(var Dt=0;qt.mipmask>>Dt;++Dt)Me.texImage2D($n+Bt,Dt,qt.format,Rt>>Dt,Rt>>Dt,0,qt.format,qt.type,null);return io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(ne,we,Ue,ft,Zt,hr),Qe.subimage=at,Qe.resize=Ct,Qe._reglType="textureCube",Qe._texture=qt,Gr.profile&&(Qe.stats=qt.stats),Qe.destroy=function(){qt.decRef()},Qe}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Me.texImage2D($n+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);al(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ui.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(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(al),ta=0;ta0&&(kn.depth=Ni[0].depth,kn.stencil=Ni[0].stencil,kn.depthStencil=Ni[0].depthStencil),Ni[Ki]?Ni[Ki](kn):Ni[Ki]=li(kn)}return e(pn,{width:ta,height:ta,color:zo})}function Vn(na){var Ki,kn=na|0;if(kn===pn.width)return pn;var ta=pn.color;for(Ki=0;Ki=ta.byteLength?oa.subdata(ta):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=jr.create(Ki,If,!1,!0)),kn.buffer=jr.getBuffer(oa),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1,pn[na]=1}else jr.getBuffer(Ki)?(kn.buffer=jr.getBuffer(Ki),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1):jr.getBuffer(Ki.buffer)?(kn.buffer=jr.getBuffer(Ki.buffer),kn.size=(+Ki.size||kn.buffer.dimension)|0,kn.normalized=!!Ki.normalized||!1,"type"in Ki?kn.type=ji[Ki.type]:kn.type=kn.buffer.dtype,kn.offset=(Ki.offset||0)|0,kn.stride=(Ki.stride||0)|0,kn.divisor=(Ki.divisor||0)|0,kn.state=1):"x"in Ki&&(kn.x=+Ki.x||0,kn.y=+Ki.y||0,kn.z=+Ki.z||0,kn.w=+Ki.w||0,kn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Ei.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){jr={},Nr={};for(var Mr=0;Mr16&&(zt=Yi(zt,Me.length*8));for(var Rr=Array(16),jr=Array(16),Nr=0;Nr<16;Nr++)Rr[Nr]=zt[Nr]^909522486,jr[Nr]=zt[Nr]^1549556828;var Gr=Yi(Rr.concat(Bc(bt)),512+bt.length*8);return At(Yi(jr.concat(Gr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Rr,jr=0;jr>>4&15)+bt.charAt(Rr&15);return zt}function qc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Rr=Me.length,jr=0;jrMe.length*8?zt+=Zu:zt+=bt.charAt(Nr>>>6*(3-Gr)&63);return zt}function cf(Me,bt){var zt=bt.length,Rr=Array(),jr,Nr,Gr,mi,Ui=Array(Math.ceil(Me.length/2));for(jr=0;jr0;){for(mi=Array(),Gr=0,jr=0;jr0||Nr>0)&&(mi[mi.length]=Nr);Rr[Rr.length]=Gr,Ui=mi}var qi="";for(jr=Rr.length-1;jr>=0;jr--)qi+=bt.charAt(Rr[jr]);var Ei=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(jr=qi.length;jr>>6&31,128|Rr&63):Rr<=65535?bt+=String.fromCharCode(224|Rr>>>12&15,128|Rr>>>6&63,128|Rr&63):Rr<=2097151&&(bt+=String.fromCharCode(240|Rr>>>18&7,128|Rr>>>12&63,128|Rr>>>6&63,128|Rr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),zt=0;zt>5]|=(Me.charCodeAt(zt/8)&255)<<24-zt%32;return bt}function At(Me){for(var bt="",zt=0;zt>5]>>>24-zt%32&255);return bt}function Xt(Me,bt){return Me>>>bt|Me<<32-bt}function Cr(Me,bt){return Me>>>bt}function Ar(Me,bt,zt){return Me&bt^~Me&zt}function Kr(Me,bt,zt){return Me&bt^Me&zt^bt&zt}function ki(Me){return Xt(Me,2)^Xt(Me,13)^Xt(Me,22)}function Xi(Me){return Xt(Me,6)^Xt(Me,11)^Xt(Me,25)}function dn(Me){return Xt(Me,7)^Xt(Me,18)^Cr(Me,3)}function wn(Me){return Xt(Me,17)^Xt(Me,19)^Cr(Me,10)}var Nn=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 zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Rr=new Array(64),jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,en=0;en>16)+(bt>>16)+(zt>>16);return Rr<<16|zt&65535}function on(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return on(Me).join("")}function Qn(Me){var bt=Me&&Me.cache,zt=0,Rr=[],jr=[],Nr=[];function Gr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ri,"="),si.push.apply(si,on(arguments)),si.push(";")),Ri}return e(Mr,{def:xi,toString:function(){return Fi([Yr.length>0?"var "+Yr.join(",")+";":"",Fi(si)])}})}function Ui(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ri(ci,an){Mr(ci,an,"=",si.def(ci,an),";")}return e(function(){si.apply(si,on(arguments))},{def:si.def,entry:si,exit:Mr,save:Ri,set:function(ci,an,Zi){Ri(ci,an),si(ci,an,"=",Zi,";")},toString:function(){return Yr()+xi()}})}function qi(){var si=Fi(arguments),Mr=Ui(),Yr=Ui(),xi=Mr.toString,Ri=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,on(arguments)),this},else:function(){return Yr.apply(Yr,on(arguments)),this},toString:function(){var ci=Ri();return ci&&(ci="else{"+ci+"}"),Fi(["if(",si,"){",xi(),"}",ci])}})}var Ei=mi(),Hn={};function en(si,Mr){var Yr=[];function xi(){var Bn="a"+Yr.length;return Yr.push(Bn),Bn}Mr=Mr||0;for(var Ri=0;Ri":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ai={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Ii(Me){return Array.isArray(Me)||Br(Me)||Vr(Me)}function Si(Me){return Me.sort(function(bt,zt){return bt===ee?-1:zt===ee?1:bt=1,Rr>=2,bt)}else if(zt===Zo){var jr=Me.data;return new ei(jr.thisDep,jr.contextDep,jr.propDep,bt)}else{if(zt===Ss)return new ei(!1,!1,!1,bt);if(zt===as){for(var Nr=!1,Gr=!1,mi=!1,Ui=0;Ui=1&&(Gr=!0),Ei>=2&&(mi=!0)}else qi.type===Zo&&(Nr=Nr||qi.data.thisDep,Gr=Gr||qi.data.contextDep,mi=mi||qi.data.propDep)}return new ei(Nr,Gr,mi,bt)}else return new ei(zt===bo,zt===Ka,zt===Dn,bt)}}var ia=new ei(!1,!1,!1,function(){});function Ea(Me,bt,zt,Rr,jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr){var Yr=qi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ri=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,an=zt.oes_vertex_array_object,Zi={dirty:!0,profile:Mr.profile},Bn={},hi=[],li={},mn={};function Ji(Ve){return Ve.replace(".","_")}function Vi(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Bn[Ct]=Zi[Ct]=!!at,li[Ct]=Qe}function Ni(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Array.isArray(at)?(Zi[Ct]=at.slice(),Bn[Ct]=at.slice()):Zi[Ct]=Bn[Ct]=at,mn[Ct]=Qe}function pn(Ve){return!!isNaN(Ve)}Vi(ws,Pi),Vi(Ho,ni),Ni(ml,"blendColor",[0,0,0,0]),Ni(Ws,"blendEquationSeparate",[yr,yr]),Ni(Ls,"blendFuncSeparate",[gr,jt,gr,jt]),Vi(va,ln,!0),Ni(no,"depthFunc",Hr),Ni(ys,"depthRange",[0,1]),Ni(rs,"depthMask",!0),Ni(Ql,Ql,[!0,!0,!0,!0]),Vi(Cu,Wr),Ni(Yu,"cullFace",se),Ni(Nc,Nc,Ne),Ni(pu,pu,1),Vi(Uc,Kn),Ni(xu,"polygonOffset",[0,0]),Vi(Ac,Aa),Vi(Ua,fa),Ni(oo,"sampleCoverage",[1,!1]),Vi(Vc,cn),Ni(hc,"stencilMask",-1),Ni(Ku,"stencilFunc",[kt,0,-1]),Ni(ue,"stencilOpSeparate",[X,nt,nt,nt]),Ni(w,"stencilOpSeparate",[se,nt,nt,nt]),Vi(B,Cn),Ni(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Ni(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Vn={gl:Me,context:en,strings:bt,next:Bn,current:Zi,draw:Hn,elements:Nr,buffer:jr,shader:Ei,attributes:qi.state,vao:qi,uniforms:Ui,framebuffer:mi,extensions:zt,timer:Wi,isBufferArgs:Ii},na={primTypes:Sn,compareFuncs:Zr,blendFuncs:bi,blendEquations:xi,stencilOps:ai,glTypes:ji,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(Qe){return _i+Qe})}));var Ki=0;function kn(){var Ve=Qn({cache:si}),Qe=Ve.link,at=Ve.global;Ve.id=Ki++,Ve.batchId="0";var Ct=Qe(Vn),Ot=Ve.shared={props:"a0"};Object.keys(Vn).forEach(function(Pt){Ot[Pt]=at.def(Ct,".",Pt)});var Rt=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Zi[Pt])&&(Rt[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var ur=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(Qe(ht.data),".call(",ur.slice(0,Math.max(ht.data.length+1,4)),")");case Dn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Zo:return ht.data.append(Ve,Pt),ht.data.ref;case Ss:return ht.data.toString();case as:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var yt={};return Ve.scopeAttrib=function(Pt){var ht=bt.id(Pt);if(ht in yt)return yt[ht];var ur=qi.scope[ht];ur||(ur=qi.scope[ht]=new Yr);var br=yt[ht]=Qe(ur);return br},Ve}function ta(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct;if(le in Qe){var Ot=!!Qe[le];Ct=En(function(Bt,Dt){return Ot}),Ct.enable=Ot}else if(le in at){var Rt=at[le];Ct=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}return Ct}function oa(Ve,Qe){var at=Ve.static,Ct=Ve.dynamic;if(Oe in at){var Ot=at[Oe];return Ot?(Ot=mi.getFramebuffer(Ot),En(function(Bt,Dt){var yt=Bt.link(Ot),Pt=Bt.shared;Dt.set(Pt.framebuffer,".next",yt);var ht=Pt.context;return Dt.set(ht,"."+qe,yt+".width"),Dt.set(ht,"."+et,yt+".height"),yt})):En(function(Bt,Dt){var yt=Bt.shared;Dt.set(yt.framebuffer,".next","null");var Pt=yt.context;return Dt.set(Pt,"."+qe,Pt+"."+Ht),Dt.set(Pt,"."+et,Pt+"."+tr),"null"})}else if(Oe in Ct){var Rt=Ct[Oe];return Un(Rt,function(Bt,Dt){var yt=Bt.invoke(Dt,Rt),Pt=Bt.shared,ht=Pt.framebuffer,ur=Dt.def(ht,".getFramebuffer(",yt,")");Dt.set(ht,".next",ur);var br=Pt.context;return Dt.set(br,"."+qe,ur+"?"+ur+".width:"+br+"."+Ht),Dt.set(br,"."+et,ur+"?"+ur+".height:"+br+"."+tr),ur})}else return null}function ba(Ve,Qe,at){var Ct=Ve.static,Ot=Ve.dynamic;function Rt(yt){if(yt in Ct){var Pt=Ct[yt],ht=!0,ur=Pt.x|0,br=Pt.y|0,Ur,Di;return"width"in Pt?Ur=Pt.width|0:ht=!1,"height"in Pt?Di=Pt.height|0:ht=!1,new ei(!ht&&Qe&&Qe.thisDep,!ht&&Qe&&Qe.contextDep,!ht&&Qe&&Qe.propDep,function(gn,rn){var Ci=gn.shared.context,Bi=Ur;"width"in Pt||(Bi=rn.def(Ci,".",qe,"-",ur));var Gi=Di;return"height"in Pt||(Gi=rn.def(Ci,".",et,"-",br)),[ur,br,Bi,Gi]})}else if(yt in Ot){var fi=Ot[yt],Ti=Un(fi,function(gn,rn){var Ci=gn.invoke(rn,fi),Bi=gn.shared.context,Gi=rn.def(Ci,".x|0"),sn=rn.def(Ci,".y|0"),zn=rn.def('"width" in ',Ci,"?",Ci,".width|0:","(",Bi,".",qe,"-",Gi,")"),Ja=rn.def('"height" in ',Ci,"?",Ci,".height|0:","(",Bi,".",et,"-",sn,")");return[Gi,sn,zn,Ja]});return Qe&&(Ti.thisDep=Ti.thisDep||Qe.thisDep,Ti.contextDep=Ti.contextDep||Qe.contextDep,Ti.propDep=Ti.propDep||Qe.propDep),Ti}else return Qe?new ei(Qe.thisDep,Qe.contextDep,Qe.propDep,function(gn,rn){var Ci=gn.shared.context;return[0,0,rn.def(Ci,".",qe),rn.def(Ci,".",et)]}):null}var Bt=Rt(ee);if(Bt){var Dt=Bt;Bt=new ei(Bt.thisDep,Bt.contextDep,Bt.propDep,function(yt,Pt){var ht=Dt.append(yt,Pt),ur=yt.shared.context;return Pt.set(ur,"."+Xe,ht[2]),Pt.set(ur,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:Rt(Q)}}function is(Ve,Qe){var at=Ve.static,Ct=typeof at[st]=="string"&&typeof at[Ze]=="string";if(Ct){if(Object.keys(Qe.dynamic).length>0)return null;var Ot=Qe.static,Rt=Object.keys(Ot);if(Rt.length>0&&typeof Ot[Rt[0]]=="number"){for(var Bt=[],Dt=0;Dt"+Gi+"?"+ht+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Ur,"(",ht,".buffer)){",gn,"=",Di,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Di,".getBuffer(",ht,".buffer);","}",rn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(Bi){Pt(fi[Bi],"=",ht,".",Bi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Di,".destroyStream(",gn,");","}"),fi}Ot[Rt]=Un(Bt,Dt)}),Ot}function al(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct={};return Object.keys(Qe).forEach(function(Ot){var Rt=Qe[Ot];Ct[Ot]=En(function(Bt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Bt.link(Rt)})}),Object.keys(at).forEach(function(Ot){var Rt=at[Ot];Ct[Ot]=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}),Ct}function Vl(Ve,Qe,at,Ct,Ot){var Rt=Ve.static,Bt=Ve.dynamic,Dt=is(Ve,Qe),yt=oa(Ve,Ot),Pt=ba(Ve,yt,Ot),ht=Va(Ve,Ot),ur=Ml(Ve,Ot),br=Zs(Ve,Ot,Dt);function Ur(Ci){var Bi=Pt[Ci];Bi&&(ur[Ci]=Bi)}Ur(ee),Ur(Ji(Q));var Di=Object.keys(ur).length>0,fi={framebuffer:yt,draw:ht,shader:br,state:ur,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ta(Ve,Ot),fi.uniforms=zo(at,Ot),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var Ti=!0,gn=br.program.attributes.map(function(Ci){var Bi=Qe.static[Ci];return Ti=Ti&&!!Bi,Bi});if(Ti&&gn.length>0){var rn=qi.getVAO(qi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ei(null,null,null,function(Ci,Bi){return Ci.link(rn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=Qs(Qe,Ot),fi.context=al(Ct,Ot),fi}function ss(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.context,Rt=Ve.scope();Object.keys(at).forEach(function(Bt){Qe.save(Ot,"."+Bt);var Dt=at[Bt],yt=Dt.append(Ve,Qe);Array.isArray(yt)?Rt(Ot,".",Bt,"=[",yt.join(),"];"):Rt(Ot,".",Bt,"=",yt,";")}),Qe(Rt)}function Vs(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ot.gl,Bt=Ot.framebuffer,Dt;ci&&(Dt=Qe.def(Ot.extensions,".webgl_draw_buffers"));var yt=Ve.constants,Pt=yt.drawBuffer,ht=yt.backBuffer,ur;at?ur=at.append(Ve,Qe):ur=Qe.def(Bt,".next"),Ct||Qe("if(",ur,"!==",Bt,".cur){"),Qe("if(",ur,"){",Rt,".bindFramebuffer(",qr,",",ur,".framebuffer);"),ci&&Qe(Dt,".drawBuffersWEBGL(",Pt,"[",ur,".colorAttachments.length]);"),Qe("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&Qe(Dt,".drawBuffersWEBGL(",ht,");"),Qe("}",Bt,".cur=",ur,";"),Ct||Qe("}")}function Ys(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.gl,Rt=Ve.current,Bt=Ve.next,Dt=Ct.current,yt=Ct.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var ur=Ji(ht);if(!(ur in at.state)){var br,Ur;if(ur in Bt){br=Bt[ur],Ur=Rt[ur];var Di=M(Zi[ur].length,function(Ti){return Pt.def(br,"[",Ti,"]")});Pt(Ve.cond(Di.map(function(Ti,gn){return Ti+"!=="+Ur+"["+gn+"]"}).join("||")).then(Ot,".",mn[ur],"(",Di,");",Di.map(function(Ti,gn){return Ur+"["+gn+"]="+Ti}).join(";"),";"))}else{br=Pt.def(yt,".",ur);var fi=Ve.cond(br,"!==",Dt,".",ur);Pt(fi),ur in li?fi(Ve.cond(br).then(Ot,".enable(",li[ur],");").else(Ot,".disable(",li[ur],");"),Dt,".",ur,"=",br,";"):fi(Ot,".",mn[ur],"(",br,");",Dt,".",ur,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),Qe(Pt)}function wa(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ve.current,Bt=Ot.current,Dt=Ot.gl,yt;Si(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(Ct&&!Ct(ht))){var ur=ht.append(Ve,Qe);if(li[Pt]){var br=li[Pt];Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Ve.cond(yt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",yt,";")):(Qe(Ve.cond(ur).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",ur,";"))}else if(Mn(ur)){var Ur=Rt[Pt];Qe(Dt,".",mn[Pt],"(",ur,");",ur.map(function(Di,fi){return Ur+"["+fi+"]="+Di}).join(";"),";")}else Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Dt,".",mn[Pt],"(",yt,");",Bt,".",Pt,"=",yt,";")):Qe(Dt,".",mn[Pt],"(",ur,");",Bt,".",Pt,"=",ur,";")}})}function ol(Ve,Qe){Ri&&(Ve.instancing=Qe.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared,Bt=Ve.stats,Dt=Rt.current,yt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ur,br;function Ur(Ci){ur=Qe.def(),Ci(ur,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),Wi&&(Ct?(br=Qe.def(),Ci(br,"=",yt,".getNumPendingQueries();")):Ci(yt,".beginQuery(",Bt,");"))}function Di(Ci){Ci(Bt,".cpuTime+=",ht(),"-",ur,";"),Wi&&(Ct?Ci(yt,".pushScopeStats(",br,",",yt,".getNumPendingQueries(),",Bt,");"):Ci(yt,".endQuery();"))}function fi(Ci){var Bi=Qe.def(Dt,".profile");Qe(Dt,".profile=",Ci,";"),Qe.exit(Dt,".profile=",Bi,";")}var Ti;if(Pt){if(Ln(Pt)){Pt.enable?(Ur(Qe),Di(Qe.exit),fi("true")):fi("false");return}Ti=Pt.append(Ve,Qe),fi(Ti)}else Ti=Qe.def(Dt,".profile");var gn=Ve.block();Ur(gn),Qe("if(",Ti,"){",gn,"}");var rn=Ve.block();Di(rn),Qe.exit("if(",Ti,"){",rn,"}")}function Y(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared;function Bt(yt){switch(yt){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 Dt(yt,Pt,ht){var ur=Rt.gl,br=Qe.def(yt,".location"),Ur=Qe.def(Rt.attributes,"[",br,"]"),Di=ht.state,fi=ht.buffer,Ti=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function rn(){Qe("if(!",Ur,".buffer){",ur,".enableVertexAttribArray(",br,");}");var Bi=ht.type,Gi;if(ht.size?Gi=Qe.def(ht.size,"||",Pt):Gi=Pt,Qe("if(",Ur,".type!==",Bi,"||",Ur,".size!==",Gi,"||",gn.map(function(zn){return Ur+"."+zn+"!=="+ht[zn]}).join("||"),"){",ur,".bindBuffer(",Sr,",",fi,".buffer);",ur,".vertexAttribPointer(",[br,Gi,Bi,ht.normalized,ht.stride,ht.offset],");",Ur,".type=",Bi,";",Ur,".size=",Gi,";",gn.map(function(zn){return Ur+"."+zn+"="+ht[zn]+";"}).join(""),"}"),Ri){var sn=ht.divisor;Qe("if(",Ur,".divisor!==",sn,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,sn],");",Ur,".divisor=",sn,";}")}}function Ci(){Qe("if(",Ur,".buffer){",ur,".disableVertexAttribArray(",br,");",Ur,".buffer=null;","}if(",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"!=="+Ti[Gi]}).join("||"),"){",ur,".vertexAttrib4f(",br,",",Ti,");",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"="+Ti[Gi]+";"}).join(""),"}")}Di===La?rn():Di===Na?Ci():(Qe("if(",Di,"===",La,"){"),rn(),Qe("}else{"),Ci(),Qe("}"))}Ct.forEach(function(yt){var Pt=yt.name,ht=at.attributes[Pt],ur;if(ht){if(!Ot(ht))return;ur=ht.append(Ve,Qe)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);ur={},Object.keys(new Yr).forEach(function(Ur){ur[Ur]=Qe.def(br,".",Ur)})}Dt(Ve.link(yt),Bt(yt.info.type),ur)})}function D(Ve,Qe,at,Ct,Ot,Rt){for(var Bt=Ve.shared,Dt=Bt.gl,yt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function sn(){at(Ti,".drawArraysInstancedANGLE(",[br,Ur,Di,fi],");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}function Bi(){function Gi(){at(Rt+".drawElements("+[br,Di,gn,Ur+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function sn(){at(Rt+".drawArrays("+[br,Ur,Di]+");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}Ri&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),Bi(),at("}")):Ci():Bi()}function q(Ve,Qe,at,Ct,Ot){var Rt=kn(),Bt=Rt.proc("body",Ot);return Ri&&(Rt.instancing=Bt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Bt,at,Ct),Rt.compile().body}function K(Ve,Qe,at,Ct){ol(Ve,Qe),at.useVAO?at.drawVAO?Qe(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Qe),");"):Qe(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Qe(Ve.shared.vao,".setVAO(null);"),Y(Ve,Qe,at,Ct.attributes,function(){return!0})),D(Ve,Qe,at,Ct.uniforms,function(){return!0},!1),J(Ve,Qe,Qe,at)}function de(Ve,Qe){var at=Ve.proc("draw",1);ol(Ve,at),ss(Ve,at,Qe.context),Vs(Ve,at,Qe.framebuffer),Ys(Ve,at,Qe),wa(Ve,at,Qe.state),io(Ve,at,Qe,!1,!0);var Ct=Qe.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Ct,".program);"),Qe.shader.program)K(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),Rt=at.def(Ct,".id"),Bt=at.def(Ot,"[",Rt,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,Qe,Dt,1)}),"(",Ct,");",Bt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,Qe,at,Ct){Ve.batchId="a1",ol(Ve,Qe);function Ot(){return!0}Y(Ve,Qe,at,Ct.attributes,Ot),D(Ve,Qe,at,Ct.uniforms,Ot,!1),J(Ve,Qe,Qe,at)}function we(Ve,Qe,at,Ct){ol(Ve,Qe);var Ot=at.contextDep,Rt=Qe.def(),Bt="a0",Dt="a1",yt=Qe.def();Ve.shared.props=yt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();Qe(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",yt,"=",Bt,"[",Rt,"];",ht,"}",Pt.exit);function ur(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!ur(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Vs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,ur),at.profile&&ur(at.profile)&&io(Ve,ht,at,!1,!0),Ct)at.useVAO?at.drawVAO?ur(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,Ct.attributes,br),Y(Ve,ht,at,Ct.attributes,ur)),D(Ve,Pt,at,Ct.uniforms,br,!1),D(Ve,ht,at,Ct.uniforms,ur,!0),J(Ve,Pt,ht,at);else{var Ur=Ve.global.def("{}"),Di=at.shader.progVar.append(Ve,ht),fi=ht.def(Di,".id"),Ti=ht.def(Ur,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Di,".program);","if(!",Ti,"){",Ti,"=",Ur,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Di,");}",Ti,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,Qe){var at=Ve.proc("batch",2);Ve.batchId="0",ol(Ve,at);var Ct=!1,Ot=!0;Object.keys(Qe.context).forEach(function(Ur){Ct=Ct||Qe.context[Ur].propDep}),Ct||(ss(Ve,at,Qe.context),Ot=!1);var Rt=Qe.framebuffer,Bt=!1;Rt?(Rt.propDep?Ct=Bt=!0:Rt.contextDep&&Ct&&(Bt=!0),Bt||Vs(Ve,at,Rt)):Vs(Ve,at,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Ct=!0);function Dt(Ur){return Ur.contextDep&&Ct||Ur.propDep}Ys(Ve,at,Qe),wa(Ve,at,Qe.state,function(Ur){return!Dt(Ur)}),(!Qe.profile||!Dt(Qe.profile))&&io(Ve,at,Qe,!1,"a1"),Qe.contextDep=Ct,Qe.needsContext=Ot,Qe.needsFramebuffer=Bt;var yt=Qe.shader.progVar;if(yt.contextDep&&Ct||yt.propDep)we(Ve,at,Qe,null);else{var Pt=yt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),Qe.shader.program)we(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),ur=at.def(Pt,".id"),br=at.def(ht,"[",ur,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",ur,"]=",Ve.link(function(Ur){return q(we,Ve,Qe,Ur,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,Qe){var at=Ve.proc("scope",3);Ve.batchId="a2";var Ct=Ve.shared,Ot=Ct.current;if(ss(Ve,at,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ve,at),Si(Object.keys(Qe.state)).forEach(function(Dt){var yt=Qe.state[Dt],Pt=yt.append(Ve,at);Mn(Pt)?Pt.forEach(function(ht,ur){pn(ht)?at.set(Ve.next[Dt],"["+ur+"]",ht):at.set(Ve.next[Dt],"["+ur+"]",Ve.link(ht,{stable:!0}))}):Ln(yt)?at.set(Ct.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(Ct.next,"."+Dt,Pt)}),io(Ve,at,Qe,!0,!0),[Tt,xr,Kt,Ir,Yt].forEach(function(Dt){var yt=Qe.draw[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.draw,"."+Dt,Pt):at.set(Ct.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(Dt){var yt=Qe.uniforms[Dt].append(Ve,at);Array.isArray(yt)&&(yt="["+yt.map(function(Pt){return pn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(Ct.uniforms,"["+Ve.link(bt.id(Dt),{stable:!0})+"]",yt)}),Object.keys(Qe.attributes).forEach(function(Dt){var yt=Qe.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,yt[ht])})}),Qe.scopeVAO){var Rt=Qe.scopeVAO.append(Ve,at);pn(Rt)?at.set(Ct.vao,".targetVAO",Rt):at.set(Ct.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Bt(Dt){var yt=Qe.shader[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.shader,"."+Dt,Pt):at.set(Ct.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Bt(Ze),Bt(st),Object.keys(Qe.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||Mn(Ve))){for(var Qe=Object.keys(Ve),at=0;at=0;--q){var K=Vn[q];K&&K(si,null,0)}zt.flush(),Ei&&Ei.update()}function ba(){!ta&&Vn.length>0&&(ta=d.next(oa))}function is(){ta&&(d.cancel(oa),ta=null)}function Zs(q){q.preventDefault(),jr=!0,is(),na.forEach(function(K){K()})}function Va(q){zt.getError(),jr=!1,Nr.restore(),Bn.restore(),Ri.restore(),hi.restore(),li.restore(),mn.restore(),an.restore(),Ei&&Ei.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Va,!1));function Ml(){Vn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Va)),Bn.clear(),mn.clear(),li.clear(),an.clear(),hi.clear(),ci.clear(),Ri.clear(),Ei&&Ei.clear(),kn.forEach(function(q){q()})}function zo(q){function K(Rt){var Bt=e({},Rt);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Dt(yt){if(yt in Bt){var Pt=Bt[yt];delete Bt[yt],Object.keys(Pt).forEach(function(ht){Bt[yt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Bt.vao=Rt.vao),Bt}function de(Rt,Bt){var Dt={},yt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){yt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var ur=0;ur0)return Ve.call(this,Ct(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return qt.call(this,Rt)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(q,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(zt.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:q.framebuffer.faces[K]},q),al);else Qs(q,al);else al(null,q)}function ss(q){Vn.push(q);function K(){var de=dl(Vn,q);function ne(){var we=dl(Vn,ne);Vn[we]=Vn[Vn.length-1],Vn.length-=1,Vn.length<=0&&is()}Vn[de]=ne}return ba(),{cancel:K}}function Vs(){var q=Ni.viewport,K=Ni.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ys(){si.tick+=1,si.time=ol(),Vs(),Ji.procs.poll()}function wa(){hi.refresh(),Vs(),Ji.procs.refresh(),Ei&&Ei.update()}function ol(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Ki;break;case"destroy":de=kn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Vi,destroy:Ml,_gl:zt,_refresh:wa,poll:function(){Ys(),Ei&&Ei.update()},now:ol,stats:mi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var Kqe=ye((v_r,Yqe)=>{"use strict";var pUt=ey();Yqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Xqe(t)?t={container:t}:gUt(t)?t={container:t}:mUt(t)?t={gl:t}:t=pUt(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}Xqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Zqe(),t.container.appendChild(t.canvas),Wqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Zqe(),t.container.appendChild(t.canvas),Wqe(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 Wqe(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 Xqe(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 mUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Zqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var $qe=ye((p_r,Jqe)=>{"use strict";var yUt=sK(),_Ut=[32,126];Jqe.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||_Ut;if(n&&typeof n!="string"&&(n=yUt(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 fK=ye(Vh=>{"use strict";"use restrict";var cK=32;Vh.INT_BITS=cK;Vh.INT_MAX=2147483647;Vh.INT_MIN=-1<0)-(e<0)};Vh.abs=function(e){var t=e>>cK-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 Qqe(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=Qqe;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 Dk=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|Dk[e>>>16&255]<<8|Dk[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>>>Qqe(e)+1}});var rBe=ye((m_r,tBe)=>{"use strict";function eBe(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 bUt(e|0,t);break;case"object":if(typeof e.length=="number")return eBe(e,t,0);break}return[]}tBe.exports=wUt});var mBe=ye(mu=>{"use strict";var xx=fK(),Ev=rBe(),iBe=_2().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 TUt=typeof Uint8ClampedArray!="undefined",AUt=typeof BigUint64Array!="undefined",SUt=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 Tz=ad.DATA,Az=ad.BUFFER;mu.free=function(t){if(iBe.isBuffer(t))Az[xx.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=xx.log2(r)|0;Tz[n].push(t)}};function nBe(e){if(e){var t=e.length||e.byteLength,r=xx.log2(t);Tz[r].push(e)}}function MUt(e){nBe(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=MUt;mu.freeArrayBuffer=nBe;mu.freeBuffer=function(t){Az[xx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Bp(t);switch(r){case"uint8":return hK(t);case"uint16":return aBe(t);case"uint32":return oBe(t);case"int8":return sBe(t);case"int16":return lBe(t);case"int32":return uBe(t);case"float":case"float32":return cBe(t);case"double":case"float64":return fBe(t);case"uint8_clamped":return hBe(t);case"bigint64":return vBe(t);case"biguint64":return dBe(t);case"buffer":return gBe(t);case"data":case"dataview":return pBe(t);default:return null}return null};function Bp(t){var t=xx.nextPow2(t),r=xx.log2(t),n=Tz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=Bp;function hK(e){return new Uint8Array(Bp(e),0,e)}mu.mallocUint8=hK;function aBe(e){return new Uint16Array(Bp(2*e),0,e)}mu.mallocUint16=aBe;function oBe(e){return new Uint32Array(Bp(4*e),0,e)}mu.mallocUint32=oBe;function sBe(e){return new Int8Array(Bp(e),0,e)}mu.mallocInt8=sBe;function lBe(e){return new Int16Array(Bp(2*e),0,e)}mu.mallocInt16=lBe;function uBe(e){return new Int32Array(Bp(4*e),0,e)}mu.mallocInt32=uBe;function cBe(e){return new Float32Array(Bp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=cBe;function fBe(e){return new Float64Array(Bp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=fBe;function hBe(e){return TUt?new Uint8ClampedArray(Bp(e),0,e):hK(e)}mu.mallocUint8Clamped=hBe;function dBe(e){return AUt?new BigUint64Array(Bp(8*e),0,e):null}mu.mallocBigUint64=dBe;function vBe(e){return SUt?new BigInt64Array(Bp(8*e),0,e):null}mu.mallocBigInt64=vBe;function pBe(e){return new DataView(Bp(e),0,e)}mu.mallocDataView=pBe;function gBe(e){e=xx.nextPow2(e);var t=xx.log2(e),r=Az[t];return r.length>0?r.pop():new iBe(e)}mu.mallocBuffer=gBe;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,Tz[t].length=0,Az[t].length=0}});var _Be=ye((__r,yBe)=>{"use strict";var EUt=Object.prototype.toString;yBe.exports=function(e){var t;return EUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var dK=ye((x_r,xBe)=>{xBe.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 TBe=ye((b_r,wBe)=>{"use strict";var kUt=dK();wBe.exports=bBe;var Fk=96;function vK(e,t){var r=kUt(getComputedStyle(e).getPropertyValue(t));return r[0]*bBe(r[1],e)}function CUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=vK(r,"font-size")/128;return t.removeChild(r),n}function bBe(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 CUt(e,t);case"em":return vK(t,"font-size");case"rem":return vK(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 MBe=ye((w_r,SBe)=>{"use strict";SBe.exports=Ez;var LUt=Ez.canvas=document.createElement("canvas"),Sz=LUt.getContext("2d"),ABe=Mz([32,126]);Ez.createPairs=Mz;Ez.ascii=ABe;function Ez(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Mz(t):Array.isArray(t)?n=t:(t.o?n=Mz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=ABe),Sz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function Mz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";CBe.exports=bx;bx.canvas=document.createElement("canvas");bx.cache={};function bx(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(bx.cache[r]&&n<=bx.cache[r].em)return EBe(bx.cache[r],s);var l=t.canvas||bx.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=ry(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var _=ry(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-_+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=ry(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=ry(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 E=ry(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var T=ry(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=ry(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=ry(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=ry(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=ry(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=kBe(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=kBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,bx.cache[r]=d,EBe(d,s)}function EBe(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 ry(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 DBe=ye((A_r,RBe)=>{"use strict";var _5=Hqe(),PUt=ey(),IUt=jqe(),RUt=Kqe(),DUt=XY(),pK=ox(),FUt=$qe(),wx=mBe(),zUt=s5(),OUt=_Be(),qUt=dK(),BUt=TBe(),NUt=MBe(),UUt=Nh(),VUt=LBe(),GUt=iw(),HUt=fK(),PBe=HUt.nextPow2,IBe=new DUt,Cz=!1;document.body&&(kz=document.body.appendChild(document.createElement("div")),kz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(kz).fontStretch&&(Cz=!0),document.body.removeChild(kz));var kz,xc=function(t){jUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=RUt(t),this.shader=IBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||IUt({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(),IBe.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(OUt(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:` +`),Yr;if(bt&&(Yr=Oc(Mr),bt[Yr]))return bt[Yr].apply(null,jr);var xi=Function.apply(null,Rr.concat(Mr));return bt&&(bt[Yr]=xi),xi.apply(null,jr)}return{global:Ei,link:Gr,block:mi,proc:en,scope:Ui,cond:qi,compile:Wi}}var Ca="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=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",Ua="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",Oe="framebuffer",Ze="vert",st="frag",Tt="elements",Yt="primitive",Kt="count",xr="offset",Ir="instances",ve="vao",be="Width",Re="Height",qe=Oe+be,et=Oe+Re,Xe=ee+be,it=ee+Re,Ft="drawingBuffer",Ht=Ft+be,tr=Ft+Re,dr=[Ls,Ws,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,Wr=2884,ni=3042,Pi=3024,cn=2960,ln=2929,Cn=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,Ul=35672,Lu=35673,au=35674,Js=35675,eu=35676,dc=35678,Tl=35680,Al=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ye=32776,kt=519,nt=7680,jt=0,gr=1,yr=32774,Hr=513,qr=36160,_i=36064,bi={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},Zr={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,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Ii(Me){return Array.isArray(Me)||Br(Me)||Vr(Me)}function Si(Me){return Me.sort(function(bt,zt){return bt===ee?-1:zt===ee?1:bt=1,Rr>=2,bt)}else if(zt===Zo){var jr=Me.data;return new ei(jr.thisDep,jr.contextDep,jr.propDep,bt)}else{if(zt===Ss)return new ei(!1,!1,!1,bt);if(zt===as){for(var Nr=!1,Gr=!1,mi=!1,Ui=0;Ui=1&&(Gr=!0),Ei>=2&&(mi=!0)}else qi.type===Zo&&(Nr=Nr||qi.data.thisDep,Gr=Gr||qi.data.contextDep,mi=mi||qi.data.propDep)}return new ei(Nr,Gr,mi,bt)}else return new ei(zt===bo,zt===Ka,zt===Dn,bt)}}var ia=new ei(!1,!1,!1,function(){});function Ea(Me,bt,zt,Rr,jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr){var Yr=qi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ri=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,an=zt.oes_vertex_array_object,Zi={dirty:!0,profile:Mr.profile},Bn={},hi=[],li={},mn={};function Ji(Ve){return Ve.replace(".","_")}function Vi(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Bn[Ct]=Zi[Ct]=!!at,li[Ct]=Qe}function Ni(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Array.isArray(at)?(Zi[Ct]=at.slice(),Bn[Ct]=at.slice()):Zi[Ct]=Bn[Ct]=at,mn[Ct]=Qe}function pn(Ve){return!!isNaN(Ve)}Vi(ws,Pi),Vi(Ho,ni),Ni(ml,"blendColor",[0,0,0,0]),Ni(Ws,"blendEquationSeparate",[yr,yr]),Ni(Ls,"blendFuncSeparate",[gr,jt,gr,jt]),Vi(va,ln,!0),Ni(no,"depthFunc",Hr),Ni(ys,"depthRange",[0,1]),Ni(rs,"depthMask",!0),Ni(Ql,Ql,[!0,!0,!0,!0]),Vi(Cu,Wr),Ni(Yu,"cullFace",se),Ni(Nc,Nc,Ne),Ni(pu,pu,1),Vi(Uc,Kn),Ni(xu,"polygonOffset",[0,0]),Vi(Ac,Aa),Vi(Ua,fa),Ni(oo,"sampleCoverage",[1,!1]),Vi(Vc,cn),Ni(hc,"stencilMask",-1),Ni(Ku,"stencilFunc",[kt,0,-1]),Ni(ue,"stencilOpSeparate",[X,nt,nt,nt]),Ni(w,"stencilOpSeparate",[se,nt,nt,nt]),Vi(B,Cn),Ni(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Ni(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Vn={gl:Me,context:en,strings:bt,next:Bn,current:Zi,draw:Hn,elements:Nr,buffer:jr,shader:Ei,attributes:qi.state,vao:qi,uniforms:Ui,framebuffer:mi,extensions:zt,timer:Wi,isBufferArgs:Ii},na={primTypes:Sn,compareFuncs:Zr,blendFuncs:bi,blendEquations:xi,stencilOps:ai,glTypes:ji,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(Qe){return _i+Qe})}));var Ki=0;function kn(){var Ve=Qn({cache:si}),Qe=Ve.link,at=Ve.global;Ve.id=Ki++,Ve.batchId="0";var Ct=Qe(Vn),Ot=Ve.shared={props:"a0"};Object.keys(Vn).forEach(function(Pt){Ot[Pt]=at.def(Ct,".",Pt)});var Rt=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Zi[Pt])&&(Rt[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var ur=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(Qe(ht.data),".call(",ur.slice(0,Math.max(ht.data.length+1,4)),")");case Dn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Zo:return ht.data.append(Ve,Pt),ht.data.ref;case Ss:return ht.data.toString();case as:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var yt={};return Ve.scopeAttrib=function(Pt){var ht=bt.id(Pt);if(ht in yt)return yt[ht];var ur=qi.scope[ht];ur||(ur=qi.scope[ht]=new Yr);var br=yt[ht]=Qe(ur);return br},Ve}function ta(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct;if(le in Qe){var Ot=!!Qe[le];Ct=En(function(Bt,Dt){return Ot}),Ct.enable=Ot}else if(le in at){var Rt=at[le];Ct=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}return Ct}function oa(Ve,Qe){var at=Ve.static,Ct=Ve.dynamic;if(Oe in at){var Ot=at[Oe];return Ot?(Ot=mi.getFramebuffer(Ot),En(function(Bt,Dt){var yt=Bt.link(Ot),Pt=Bt.shared;Dt.set(Pt.framebuffer,".next",yt);var ht=Pt.context;return Dt.set(ht,"."+qe,yt+".width"),Dt.set(ht,"."+et,yt+".height"),yt})):En(function(Bt,Dt){var yt=Bt.shared;Dt.set(yt.framebuffer,".next","null");var Pt=yt.context;return Dt.set(Pt,"."+qe,Pt+"."+Ht),Dt.set(Pt,"."+et,Pt+"."+tr),"null"})}else if(Oe in Ct){var Rt=Ct[Oe];return Un(Rt,function(Bt,Dt){var yt=Bt.invoke(Dt,Rt),Pt=Bt.shared,ht=Pt.framebuffer,ur=Dt.def(ht,".getFramebuffer(",yt,")");Dt.set(ht,".next",ur);var br=Pt.context;return Dt.set(br,"."+qe,ur+"?"+ur+".width:"+br+"."+Ht),Dt.set(br,"."+et,ur+"?"+ur+".height:"+br+"."+tr),ur})}else return null}function ba(Ve,Qe,at){var Ct=Ve.static,Ot=Ve.dynamic;function Rt(yt){if(yt in Ct){var Pt=Ct[yt],ht=!0,ur=Pt.x|0,br=Pt.y|0,Ur,Di;return"width"in Pt?Ur=Pt.width|0:ht=!1,"height"in Pt?Di=Pt.height|0:ht=!1,new ei(!ht&&Qe&&Qe.thisDep,!ht&&Qe&&Qe.contextDep,!ht&&Qe&&Qe.propDep,function(gn,rn){var Ci=gn.shared.context,Bi=Ur;"width"in Pt||(Bi=rn.def(Ci,".",qe,"-",ur));var Gi=Di;return"height"in Pt||(Gi=rn.def(Ci,".",et,"-",br)),[ur,br,Bi,Gi]})}else if(yt in Ot){var fi=Ot[yt],Ti=Un(fi,function(gn,rn){var Ci=gn.invoke(rn,fi),Bi=gn.shared.context,Gi=rn.def(Ci,".x|0"),sn=rn.def(Ci,".y|0"),zn=rn.def('"width" in ',Ci,"?",Ci,".width|0:","(",Bi,".",qe,"-",Gi,")"),Ja=rn.def('"height" in ',Ci,"?",Ci,".height|0:","(",Bi,".",et,"-",sn,")");return[Gi,sn,zn,Ja]});return Qe&&(Ti.thisDep=Ti.thisDep||Qe.thisDep,Ti.contextDep=Ti.contextDep||Qe.contextDep,Ti.propDep=Ti.propDep||Qe.propDep),Ti}else return Qe?new ei(Qe.thisDep,Qe.contextDep,Qe.propDep,function(gn,rn){var Ci=gn.shared.context;return[0,0,rn.def(Ci,".",qe),rn.def(Ci,".",et)]}):null}var Bt=Rt(ee);if(Bt){var Dt=Bt;Bt=new ei(Bt.thisDep,Bt.contextDep,Bt.propDep,function(yt,Pt){var ht=Dt.append(yt,Pt),ur=yt.shared.context;return Pt.set(ur,"."+Xe,ht[2]),Pt.set(ur,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:Rt(Q)}}function is(Ve,Qe){var at=Ve.static,Ct=typeof at[st]=="string"&&typeof at[Ze]=="string";if(Ct){if(Object.keys(Qe.dynamic).length>0)return null;var Ot=Qe.static,Rt=Object.keys(Ot);if(Rt.length>0&&typeof Ot[Rt[0]]=="number"){for(var Bt=[],Dt=0;Dt"+Gi+"?"+ht+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Ur,"(",ht,".buffer)){",gn,"=",Di,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Di,".getBuffer(",ht,".buffer);","}",rn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(Bi){Pt(fi[Bi],"=",ht,".",Bi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Di,".destroyStream(",gn,");","}"),fi}Ot[Rt]=Un(Bt,Dt)}),Ot}function al(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct={};return Object.keys(Qe).forEach(function(Ot){var Rt=Qe[Ot];Ct[Ot]=En(function(Bt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Bt.link(Rt)})}),Object.keys(at).forEach(function(Ot){var Rt=at[Ot];Ct[Ot]=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}),Ct}function Vl(Ve,Qe,at,Ct,Ot){var Rt=Ve.static,Bt=Ve.dynamic,Dt=is(Ve,Qe),yt=oa(Ve,Ot),Pt=ba(Ve,yt,Ot),ht=Va(Ve,Ot),ur=Ml(Ve,Ot),br=Zs(Ve,Ot,Dt);function Ur(Ci){var Bi=Pt[Ci];Bi&&(ur[Ci]=Bi)}Ur(ee),Ur(Ji(Q));var Di=Object.keys(ur).length>0,fi={framebuffer:yt,draw:ht,shader:br,state:ur,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ta(Ve,Ot),fi.uniforms=zo(at,Ot),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var Ti=!0,gn=br.program.attributes.map(function(Ci){var Bi=Qe.static[Ci];return Ti=Ti&&!!Bi,Bi});if(Ti&&gn.length>0){var rn=qi.getVAO(qi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ei(null,null,null,function(Ci,Bi){return Ci.link(rn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=Qs(Qe,Ot),fi.context=al(Ct,Ot),fi}function ss(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.context,Rt=Ve.scope();Object.keys(at).forEach(function(Bt){Qe.save(Ot,"."+Bt);var Dt=at[Bt],yt=Dt.append(Ve,Qe);Array.isArray(yt)?Rt(Ot,".",Bt,"=[",yt.join(),"];"):Rt(Ot,".",Bt,"=",yt,";")}),Qe(Rt)}function Vs(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ot.gl,Bt=Ot.framebuffer,Dt;ci&&(Dt=Qe.def(Ot.extensions,".webgl_draw_buffers"));var yt=Ve.constants,Pt=yt.drawBuffer,ht=yt.backBuffer,ur;at?ur=at.append(Ve,Qe):ur=Qe.def(Bt,".next"),Ct||Qe("if(",ur,"!==",Bt,".cur){"),Qe("if(",ur,"){",Rt,".bindFramebuffer(",qr,",",ur,".framebuffer);"),ci&&Qe(Dt,".drawBuffersWEBGL(",Pt,"[",ur,".colorAttachments.length]);"),Qe("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&Qe(Dt,".drawBuffersWEBGL(",ht,");"),Qe("}",Bt,".cur=",ur,";"),Ct||Qe("}")}function Ys(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.gl,Rt=Ve.current,Bt=Ve.next,Dt=Ct.current,yt=Ct.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var ur=Ji(ht);if(!(ur in at.state)){var br,Ur;if(ur in Bt){br=Bt[ur],Ur=Rt[ur];var Di=M(Zi[ur].length,function(Ti){return Pt.def(br,"[",Ti,"]")});Pt(Ve.cond(Di.map(function(Ti,gn){return Ti+"!=="+Ur+"["+gn+"]"}).join("||")).then(Ot,".",mn[ur],"(",Di,");",Di.map(function(Ti,gn){return Ur+"["+gn+"]="+Ti}).join(";"),";"))}else{br=Pt.def(yt,".",ur);var fi=Ve.cond(br,"!==",Dt,".",ur);Pt(fi),ur in li?fi(Ve.cond(br).then(Ot,".enable(",li[ur],");").else(Ot,".disable(",li[ur],");"),Dt,".",ur,"=",br,";"):fi(Ot,".",mn[ur],"(",br,");",Dt,".",ur,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),Qe(Pt)}function wa(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ve.current,Bt=Ot.current,Dt=Ot.gl,yt;Si(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(Ct&&!Ct(ht))){var ur=ht.append(Ve,Qe);if(li[Pt]){var br=li[Pt];Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Ve.cond(yt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",yt,";")):(Qe(Ve.cond(ur).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",ur,";"))}else if(Mn(ur)){var Ur=Rt[Pt];Qe(Dt,".",mn[Pt],"(",ur,");",ur.map(function(Di,fi){return Ur+"["+fi+"]="+Di}).join(";"),";")}else Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Dt,".",mn[Pt],"(",yt,");",Bt,".",Pt,"=",yt,";")):Qe(Dt,".",mn[Pt],"(",ur,");",Bt,".",Pt,"=",ur,";")}})}function ol(Ve,Qe){Ri&&(Ve.instancing=Qe.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared,Bt=Ve.stats,Dt=Rt.current,yt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ur,br;function Ur(Ci){ur=Qe.def(),Ci(ur,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),Wi&&(Ct?(br=Qe.def(),Ci(br,"=",yt,".getNumPendingQueries();")):Ci(yt,".beginQuery(",Bt,");"))}function Di(Ci){Ci(Bt,".cpuTime+=",ht(),"-",ur,";"),Wi&&(Ct?Ci(yt,".pushScopeStats(",br,",",yt,".getNumPendingQueries(),",Bt,");"):Ci(yt,".endQuery();"))}function fi(Ci){var Bi=Qe.def(Dt,".profile");Qe(Dt,".profile=",Ci,";"),Qe.exit(Dt,".profile=",Bi,";")}var Ti;if(Pt){if(Ln(Pt)){Pt.enable?(Ur(Qe),Di(Qe.exit),fi("true")):fi("false");return}Ti=Pt.append(Ve,Qe),fi(Ti)}else Ti=Qe.def(Dt,".profile");var gn=Ve.block();Ur(gn),Qe("if(",Ti,"){",gn,"}");var rn=Ve.block();Di(rn),Qe.exit("if(",Ti,"){",rn,"}")}function Y(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared;function Bt(yt){switch(yt){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 Dt(yt,Pt,ht){var ur=Rt.gl,br=Qe.def(yt,".location"),Ur=Qe.def(Rt.attributes,"[",br,"]"),Di=ht.state,fi=ht.buffer,Ti=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function rn(){Qe("if(!",Ur,".buffer){",ur,".enableVertexAttribArray(",br,");}");var Bi=ht.type,Gi;if(ht.size?Gi=Qe.def(ht.size,"||",Pt):Gi=Pt,Qe("if(",Ur,".type!==",Bi,"||",Ur,".size!==",Gi,"||",gn.map(function(zn){return Ur+"."+zn+"!=="+ht[zn]}).join("||"),"){",ur,".bindBuffer(",Sr,",",fi,".buffer);",ur,".vertexAttribPointer(",[br,Gi,Bi,ht.normalized,ht.stride,ht.offset],");",Ur,".type=",Bi,";",Ur,".size=",Gi,";",gn.map(function(zn){return Ur+"."+zn+"="+ht[zn]+";"}).join(""),"}"),Ri){var sn=ht.divisor;Qe("if(",Ur,".divisor!==",sn,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,sn],");",Ur,".divisor=",sn,";}")}}function Ci(){Qe("if(",Ur,".buffer){",ur,".disableVertexAttribArray(",br,");",Ur,".buffer=null;","}if(",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"!=="+Ti[Gi]}).join("||"),"){",ur,".vertexAttrib4f(",br,",",Ti,");",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"="+Ti[Gi]+";"}).join(""),"}")}Di===La?rn():Di===Na?Ci():(Qe("if(",Di,"===",La,"){"),rn(),Qe("}else{"),Ci(),Qe("}"))}Ct.forEach(function(yt){var Pt=yt.name,ht=at.attributes[Pt],ur;if(ht){if(!Ot(ht))return;ur=ht.append(Ve,Qe)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);ur={},Object.keys(new Yr).forEach(function(Ur){ur[Ur]=Qe.def(br,".",Ur)})}Dt(Ve.link(yt),Bt(yt.info.type),ur)})}function D(Ve,Qe,at,Ct,Ot,Rt){for(var Bt=Ve.shared,Dt=Bt.gl,yt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function sn(){at(Ti,".drawArraysInstancedANGLE(",[br,Ur,Di,fi],");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}function Bi(){function Gi(){at(Rt+".drawElements("+[br,Di,gn,Ur+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function sn(){at(Rt+".drawArrays("+[br,Ur,Di]+");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}Ri&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),Bi(),at("}")):Ci():Bi()}function q(Ve,Qe,at,Ct,Ot){var Rt=kn(),Bt=Rt.proc("body",Ot);return Ri&&(Rt.instancing=Bt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Bt,at,Ct),Rt.compile().body}function K(Ve,Qe,at,Ct){ol(Ve,Qe),at.useVAO?at.drawVAO?Qe(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Qe),");"):Qe(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Qe(Ve.shared.vao,".setVAO(null);"),Y(Ve,Qe,at,Ct.attributes,function(){return!0})),D(Ve,Qe,at,Ct.uniforms,function(){return!0},!1),J(Ve,Qe,Qe,at)}function de(Ve,Qe){var at=Ve.proc("draw",1);ol(Ve,at),ss(Ve,at,Qe.context),Vs(Ve,at,Qe.framebuffer),Ys(Ve,at,Qe),wa(Ve,at,Qe.state),io(Ve,at,Qe,!1,!0);var Ct=Qe.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Ct,".program);"),Qe.shader.program)K(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),Rt=at.def(Ct,".id"),Bt=at.def(Ot,"[",Rt,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,Qe,Dt,1)}),"(",Ct,");",Bt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,Qe,at,Ct){Ve.batchId="a1",ol(Ve,Qe);function Ot(){return!0}Y(Ve,Qe,at,Ct.attributes,Ot),D(Ve,Qe,at,Ct.uniforms,Ot,!1),J(Ve,Qe,Qe,at)}function we(Ve,Qe,at,Ct){ol(Ve,Qe);var Ot=at.contextDep,Rt=Qe.def(),Bt="a0",Dt="a1",yt=Qe.def();Ve.shared.props=yt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();Qe(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",yt,"=",Bt,"[",Rt,"];",ht,"}",Pt.exit);function ur(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!ur(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Vs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,ur),at.profile&&ur(at.profile)&&io(Ve,ht,at,!1,!0),Ct)at.useVAO?at.drawVAO?ur(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,Ct.attributes,br),Y(Ve,ht,at,Ct.attributes,ur)),D(Ve,Pt,at,Ct.uniforms,br,!1),D(Ve,ht,at,Ct.uniforms,ur,!0),J(Ve,Pt,ht,at);else{var Ur=Ve.global.def("{}"),Di=at.shader.progVar.append(Ve,ht),fi=ht.def(Di,".id"),Ti=ht.def(Ur,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Di,".program);","if(!",Ti,"){",Ti,"=",Ur,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Di,");}",Ti,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,Qe){var at=Ve.proc("batch",2);Ve.batchId="0",ol(Ve,at);var Ct=!1,Ot=!0;Object.keys(Qe.context).forEach(function(Ur){Ct=Ct||Qe.context[Ur].propDep}),Ct||(ss(Ve,at,Qe.context),Ot=!1);var Rt=Qe.framebuffer,Bt=!1;Rt?(Rt.propDep?Ct=Bt=!0:Rt.contextDep&&Ct&&(Bt=!0),Bt||Vs(Ve,at,Rt)):Vs(Ve,at,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Ct=!0);function Dt(Ur){return Ur.contextDep&&Ct||Ur.propDep}Ys(Ve,at,Qe),wa(Ve,at,Qe.state,function(Ur){return!Dt(Ur)}),(!Qe.profile||!Dt(Qe.profile))&&io(Ve,at,Qe,!1,"a1"),Qe.contextDep=Ct,Qe.needsContext=Ot,Qe.needsFramebuffer=Bt;var yt=Qe.shader.progVar;if(yt.contextDep&&Ct||yt.propDep)we(Ve,at,Qe,null);else{var Pt=yt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),Qe.shader.program)we(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),ur=at.def(Pt,".id"),br=at.def(ht,"[",ur,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",ur,"]=",Ve.link(function(Ur){return q(we,Ve,Qe,Ur,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,Qe){var at=Ve.proc("scope",3);Ve.batchId="a2";var Ct=Ve.shared,Ot=Ct.current;if(ss(Ve,at,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ve,at),Si(Object.keys(Qe.state)).forEach(function(Dt){var yt=Qe.state[Dt],Pt=yt.append(Ve,at);Mn(Pt)?Pt.forEach(function(ht,ur){pn(ht)?at.set(Ve.next[Dt],"["+ur+"]",ht):at.set(Ve.next[Dt],"["+ur+"]",Ve.link(ht,{stable:!0}))}):Ln(yt)?at.set(Ct.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(Ct.next,"."+Dt,Pt)}),io(Ve,at,Qe,!0,!0),[Tt,xr,Kt,Ir,Yt].forEach(function(Dt){var yt=Qe.draw[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.draw,"."+Dt,Pt):at.set(Ct.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(Dt){var yt=Qe.uniforms[Dt].append(Ve,at);Array.isArray(yt)&&(yt="["+yt.map(function(Pt){return pn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(Ct.uniforms,"["+Ve.link(bt.id(Dt),{stable:!0})+"]",yt)}),Object.keys(Qe.attributes).forEach(function(Dt){var yt=Qe.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,yt[ht])})}),Qe.scopeVAO){var Rt=Qe.scopeVAO.append(Ve,at);pn(Rt)?at.set(Ct.vao,".targetVAO",Rt):at.set(Ct.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Bt(Dt){var yt=Qe.shader[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.shader,"."+Dt,Pt):at.set(Ct.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Bt(Ze),Bt(st),Object.keys(Qe.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||Mn(Ve))){for(var Qe=Object.keys(Ve),at=0;at=0;--q){var K=Vn[q];K&&K(si,null,0)}zt.flush(),Ei&&Ei.update()}function ba(){!ta&&Vn.length>0&&(ta=d.next(oa))}function is(){ta&&(d.cancel(oa),ta=null)}function Zs(q){q.preventDefault(),jr=!0,is(),na.forEach(function(K){K()})}function Va(q){zt.getError(),jr=!1,Nr.restore(),Bn.restore(),Ri.restore(),hi.restore(),li.restore(),mn.restore(),an.restore(),Ei&&Ei.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Va,!1));function Ml(){Vn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Va)),Bn.clear(),mn.clear(),li.clear(),an.clear(),hi.clear(),ci.clear(),Ri.clear(),Ei&&Ei.clear(),kn.forEach(function(q){q()})}function zo(q){function K(Rt){var Bt=e({},Rt);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Dt(yt){if(yt in Bt){var Pt=Bt[yt];delete Bt[yt],Object.keys(Pt).forEach(function(ht){Bt[yt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Bt.vao=Rt.vao),Bt}function de(Rt,Bt){var Dt={},yt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){yt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var ur=0;ur0)return Ve.call(this,Ct(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return qt.call(this,Rt)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(q,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(zt.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:q.framebuffer.faces[K]},q),al);else Qs(q,al);else al(null,q)}function ss(q){Vn.push(q);function K(){var de=dl(Vn,q);function ne(){var we=dl(Vn,ne);Vn[we]=Vn[Vn.length-1],Vn.length-=1,Vn.length<=0&&is()}Vn[de]=ne}return ba(),{cancel:K}}function Vs(){var q=Ni.viewport,K=Ni.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ys(){si.tick+=1,si.time=ol(),Vs(),Ji.procs.poll()}function wa(){hi.refresh(),Vs(),Ji.procs.refresh(),Ei&&Ei.update()}function ol(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Ki;break;case"destroy":de=kn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Vi,destroy:Ml,_gl:zt,_refresh:wa,poll:function(){Ys(),Ei&&Ei.update()},now:ol,stats:mi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var Kqe=ye((v_r,Yqe)=>{"use strict";var pUt=ey();Yqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Xqe(t)?t={container:t}:gUt(t)?t={container:t}:mUt(t)?t={gl:t}:t=pUt(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}Xqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Zqe(),t.container.appendChild(t.canvas),Wqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Zqe(),t.container.appendChild(t.canvas),Wqe(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 Wqe(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 Xqe(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 mUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Zqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var $qe=ye((p_r,Jqe)=>{"use strict";var yUt=sK(),_Ut=[32,126];Jqe.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||_Ut;if(n&&typeof n!="string"&&(n=yUt(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 fK=ye(Vh=>{"use strict";"use restrict";var cK=32;Vh.INT_BITS=cK;Vh.INT_MAX=2147483647;Vh.INT_MIN=-1<0)-(e<0)};Vh.abs=function(e){var t=e>>cK-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 Qqe(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=Qqe;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>>>Qqe(e)+1}});var rBe=ye((m_r,tBe)=>{"use strict";function eBe(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 bUt(e|0,t);break;case"object":if(typeof e.length=="number")return eBe(e,t,0);break}return[]}tBe.exports=wUt});var mBe=ye(mu=>{"use strict";var xx=fK(),Ev=rBe(),iBe=_2().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 TUt=typeof Uint8ClampedArray!="undefined",AUt=typeof BigUint64Array!="undefined",SUt=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 Tz=ad.DATA,Az=ad.BUFFER;mu.free=function(t){if(iBe.isBuffer(t))Az[xx.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=xx.log2(r)|0;Tz[n].push(t)}};function nBe(e){if(e){var t=e.length||e.byteLength,r=xx.log2(t);Tz[r].push(e)}}function MUt(e){nBe(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=MUt;mu.freeArrayBuffer=nBe;mu.freeBuffer=function(t){Az[xx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Bp(t);switch(r){case"uint8":return hK(t);case"uint16":return aBe(t);case"uint32":return oBe(t);case"int8":return sBe(t);case"int16":return lBe(t);case"int32":return uBe(t);case"float":case"float32":return cBe(t);case"double":case"float64":return fBe(t);case"uint8_clamped":return hBe(t);case"bigint64":return vBe(t);case"biguint64":return dBe(t);case"buffer":return gBe(t);case"data":case"dataview":return pBe(t);default:return null}return null};function Bp(t){var t=xx.nextPow2(t),r=xx.log2(t),n=Tz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=Bp;function hK(e){return new Uint8Array(Bp(e),0,e)}mu.mallocUint8=hK;function aBe(e){return new Uint16Array(Bp(2*e),0,e)}mu.mallocUint16=aBe;function oBe(e){return new Uint32Array(Bp(4*e),0,e)}mu.mallocUint32=oBe;function sBe(e){return new Int8Array(Bp(e),0,e)}mu.mallocInt8=sBe;function lBe(e){return new Int16Array(Bp(2*e),0,e)}mu.mallocInt16=lBe;function uBe(e){return new Int32Array(Bp(4*e),0,e)}mu.mallocInt32=uBe;function cBe(e){return new Float32Array(Bp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=cBe;function fBe(e){return new Float64Array(Bp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=fBe;function hBe(e){return TUt?new Uint8ClampedArray(Bp(e),0,e):hK(e)}mu.mallocUint8Clamped=hBe;function dBe(e){return AUt?new BigUint64Array(Bp(8*e),0,e):null}mu.mallocBigUint64=dBe;function vBe(e){return SUt?new BigInt64Array(Bp(8*e),0,e):null}mu.mallocBigInt64=vBe;function pBe(e){return new DataView(Bp(e),0,e)}mu.mallocDataView=pBe;function gBe(e){e=xx.nextPow2(e);var t=xx.log2(e),r=Az[t];return r.length>0?r.pop():new iBe(e)}mu.mallocBuffer=gBe;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,Tz[t].length=0,Az[t].length=0}});var _Be=ye((__r,yBe)=>{"use strict";var EUt=Object.prototype.toString;yBe.exports=function(e){var t;return EUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var dK=ye((x_r,xBe)=>{xBe.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 TBe=ye((b_r,wBe)=>{"use strict";var kUt=dK();wBe.exports=bBe;var zk=96;function vK(e,t){var r=kUt(getComputedStyle(e).getPropertyValue(t));return r[0]*bBe(r[1],e)}function CUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=vK(r,"font-size")/128;return t.removeChild(r),n}function bBe(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 CUt(e,t);case"em":return vK(t,"font-size");case"rem":return vK(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 MBe=ye((w_r,SBe)=>{"use strict";SBe.exports=Ez;var LUt=Ez.canvas=document.createElement("canvas"),Sz=LUt.getContext("2d"),ABe=Mz([32,126]);Ez.createPairs=Mz;Ez.ascii=ABe;function Ez(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Mz(t):Array.isArray(t)?n=t:(t.o?n=Mz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=ABe),Sz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function Mz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";CBe.exports=bx;bx.canvas=document.createElement("canvas");bx.cache={};function bx(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(bx.cache[r]&&n<=bx.cache[r].em)return EBe(bx.cache[r],s);var l=t.canvas||bx.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=ry(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var _=ry(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-_+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=ry(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=ry(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 E=ry(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var T=ry(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=ry(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=ry(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=ry(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=ry(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=kBe(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=kBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,bx.cache[r]=d,EBe(d,s)}function EBe(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 ry(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 DBe=ye((A_r,RBe)=>{"use strict";var _5=Hqe(),PUt=ey(),IUt=jqe(),RUt=Kqe(),DUt=XY(),pK=ox(),FUt=$qe(),wx=mBe(),zUt=s5(),OUt=_Be(),qUt=dK(),BUt=TBe(),NUt=MBe(),UUt=Nh(),VUt=LBe(),GUt=iw(),HUt=fK(),PBe=HUt.nextPow2,IBe=new DUt,Cz=!1;document.body&&(kz=document.body.appendChild(document.createElement("div")),kz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(kz).fontStretch&&(Cz=!0),document.body.removeChild(kz));var kz,xc=function(t){jUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=RUt(t),this.shader=IBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||IUt({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(),IBe.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(OUt(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; @@ -2708,14 +2708,14 @@ void main() { }`}),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=PUt(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(Le){return parseFloat(Le)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=zUt(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=GUt(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(Le,ge){if(typeof Le=="string")try{Le=_5.parse(Le)}catch(je){Le=_5.parse(xc.baseFontSize+"px "+Le)}else{var ie=Le.style,Se=Le.weight,Ee=Le.stretch,Ae=Le.variant;Le=_5.parse(_5.stringify(Le)),ie&&(Le.style=ie),Se&&(Le.weight=Se),Ee&&(Le.stretch=Ee),Ae&&(Le.variant=Ae)}var Be=_5.stringify({size:xc.baseFontSize,family:Le.family,stretch:Cz?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style}),Pe=qUt(Le.size),me=Math.round(Pe[0]*BUt(Pe[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 De=Le.family.join(", "),ce=[Le.style];Le.style!=Le.variant&&ce.push(Le.variant),Le.variant!=Le.weight&&ce.push(Le.weight),Cz&&Le.weight!=Le.stretch&&ce.push(Le.stretch),r.font[ge]={baseString:Be,family:De,weight:Le.weight,stretch:Le.stretch,style:Le.style,variant:Le.variant,width:{},kerning:{},metrics:VUt(De,{origin:"top",fontSize:xc.baseFontSize,fontStyle:ce.join(" ")})},xc.fonts[Be]=r.font[ge]}}),(n||i)&&this.font.forEach(function(Le,ge){var ie=_5.stringify({size:r.fontSize[ge],family:Le.family,stretch:Cz?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style});if(r.fontAtlas[ge]=r.shader.atlas[ie],!r.fontAtlas[ge]){var Se=Le.metrics;r.shader.atlas[ie]=r.fontAtlas[ge]={fontString:ie,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=wx.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-Le;case"center":case"centre":case"middle":return-Le*.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(Le,ge){var ie=(r.font[ge]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof Le=="number"?Se+=Le-ie.baseline:Se+=-ie[Le],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=pK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=wx.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(oe){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 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=[]}};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 jUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}RBe.exports=xc});var FBe=ye((gK,mK)=>{(function(e,t){typeof gK=="object"&&typeof mK!="undefined"?mK.exports=t():e.createREGL=t()})(gK,function(){"use strict";var e=function(Me,bt){for(var zt=Object.keys(bt),Rr=0;Rr1&&bt===zt&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Rr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Rr)return s(Me.substr(0,Rr.index)).concat(s(Rr[1])).concat(s(Me.substr(Rr.index+Rr[0].length)));var jr=Me.split(".");if(jr.length===1)return['"'+o(Me)+'"'];for(var Nr=[],Gr=0;Gr65535)<<4,Me>>>=bt,zt=(Me>255)<<3,Me>>>=zt,bt|=zt,zt=(Me>15)<<2,Me>>>=zt,bt|=zt,zt=(Me>3)<<1,Me>>>=zt,bt|=zt,bt|Me>>1}function N(){var Me=M(8,function(){return[]});function bt(Nr){var Gr=Z(Nr),mi=Me[j(Gr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Gr)}function zt(Nr){Me[j(Nr.byteLength)>>2].push(Nr)}function Rr(Nr,Gr){var mi=null;switch(Nr){case g:mi=new Int8Array(bt(Gr),0,Gr);break;case P:mi=new Uint8Array(bt(Gr),0,Gr);break;case A:mi=new Int16Array(bt(2*Gr),0,Gr);break;case z:mi=new Uint16Array(bt(2*Gr),0,Gr);break;case O:mi=new Int32Array(bt(4*Gr),0,Gr);break;case U:mi=new Uint32Array(bt(4*Gr),0,Gr);break;case G:mi=new Float32Array(bt(4*Gr),0,Gr);break;default:return null}return mi.length!==Gr?mi.subarray(0,Gr):mi}function jr(Nr){zt(Nr.buffer)}return{alloc:bt,free:zt,allocType:Rr,freeType:jr}}var H=N();H.zero=N();var re=3408,oe=3410,_e=3411,Ce=3412,Le=3413,ge=3414,ie=3415,Se=33901,Ee=33902,Ae=3379,Be=3386,Pe=34921,me=36347,De=36348,ce=35661,je=35660,lt=34930,pt=36349,Vt=34076,ot=34024,ut=7936,Wt=7937,Nt=7938,$t=35724,sr=34047,Tr=36063,fr=34852,$e=3553,St=34067,Qt=34069,Gt=33984,_t=6408,It=5126,mt=5121,er=36160,lr=36053,wr=36064,Lr=16384,ti=function(Me,bt){var zt=1;bt.ext_texture_filter_anisotropic&&(zt=Me.getParameter(sr));var Rr=1,jr=1;bt.webgl_draw_buffers&&(Rr=Me.getParameter(fr),jr=Me.getParameter(Tr));var Nr=!!bt.oes_texture_float;if(Nr){var Gr=Me.createTexture();Me.bindTexture($e,Gr),Me.texImage2D($e,0,_t,1,1,0,_t,It,null);var mi=Me.createFramebuffer();if(Me.bindFramebuffer(er,mi),Me.framebufferTexture2D(er,wr,$e,Gr,0),Me.bindTexture($e,null),Me.checkFramebufferStatus(er)!==lr)Nr=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Lr);var Ui=H.allocType(It,4);Me.readPixels(0,0,1,1,_t,It,Ui),Me.getError()?Nr=!1:(Me.deleteFramebuffer(mi),Me.deleteTexture(Gr),Nr=Ui[0]===1),H.freeType(Ui)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Ei=!0;if(!qi){var Hn=Me.createTexture(),en=H.allocType(mt,36);Me.activeTexture(Gt),Me.bindTexture(St,Hn),Me.texImage2D(Qt,0,_t,3,3,0,_t,mt,en),H.freeType(en),Me.bindTexture(St,null),Me.deleteTexture(Hn),Ei=!Me.getError()}return{colorBits:[Me.getParameter(oe),Me.getParameter(_e),Me.getParameter(Ce),Me.getParameter(Le)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(ie),subpixelBits:Me.getParameter(re),extensions:Object.keys(bt).filter(function(Wi){return!!bt[Wi]}),maxAnisotropic:zt,maxDrawbuffers:Rr,maxColorAttachments:jr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(Ee),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Vt),maxRenderbufferSize:Me.getParameter(ot),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(Ae),maxAttributes:Me.getParameter(Pe),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(je),maxVaryingVectors:Me.getParameter(De),maxFragmentUniforms:Me.getParameter(pt),glsl:Me.getParameter($t),renderer:Me.getParameter(Wt),vendor:Me.getParameter(ut),version:Me.getParameter(Nt),readFloat:Nr,npotTextureCube:Ei}},Br=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 Vr(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)||Br(Me.data))}var dt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:xe,flatten:Ie};function Je(Me,bt,zt){for(var Rr=0;Rr0){var Bn;if(Array.isArray(Yr[0])){Zi=Fn(Yr);for(var hi=1,li=1;li0){if(typeof hi[0]=="number"){var Vi=H.allocType(ci.dtype,hi.length);Er(Vi,hi),Zi(Vi,mn),H.freeType(Vi)}else if(Array.isArray(hi[0])||Br(hi[0])){Ji=Fn(hi);var Ni=qn(hi,Ji,ci.dtype);Zi(Ni,mn),H.freeType(Ni)}}}else if(Vr(hi)){Ji=hi.shape;var pn=hi.stride,Vn=0,na=0,Ki=0,kn=0;Ji.length===1?(Vn=Ji[0],na=1,Ki=pn[0],kn=0):Ji.length===2&&(Vn=Ji[0],na=Ji[1],Ki=pn[0],kn=pn[1]);var ta=Array.isArray(hi.data)?ci.dtype:nr(hi.data),oa=H.allocType(ta,Vn*na);Xr(oa,hi.data,Vn,na,Ki,kn,hi.offset),Zi(oa,mn),H.freeType(oa)}return an}return xi||an(Mr),an._reglType="buffer",an._buffer=ci,an.subdata=Bn,zt.profile&&(an.stats=ci.stats),an.destroy=function(){en(ci)},an}function si(){dt(Nr).forEach(function(Mr){Mr.buffer=Me.createBuffer(),Me.bindBuffer(Mr.type,Mr.buffer),Me.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(bt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Nr).forEach(function(Yr){Mr+=Nr[Yr].stats.size}),Mr}),{create:Wi,createStream:Ui,destroyStream:qi,clear:function(){dt(Nr).forEach(en),mi.forEach(en)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Gr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var Qr=0,Oi=0,$i=1,tn=1,fn=4,yn=4,Sn={points:Qr,point:Oi,lines:$i,line:tn,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,Wn=5124,Ha=5125,vo=34963,jn=35040,Mt=35044;function kr(Me,bt,zt,Rr){var jr={},Nr=0,Gr={uint8:Fa,uint16:da};bt.oes_element_index_uint&&(Gr.uint32=Ha);function mi(si){this.id=Nr++,jr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ui=[];function qi(si){var Mr=Ui.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Ei(si){Ui.push(si)}function Hn(si,Mr,Yr,xi,Ri,ci,an){si.buffer.bind();var Zi;if(Mr){var Bn=an;!an&&(!Br(Mr)||Vr(Mr)&&!Br(Mr.data))&&(Bn=bt.oes_element_index_uint?Ha:da),zt._initBuffer(si.buffer,Mr,Yr,Bn,3)}else Me.bufferData(vo,ci,Yr),si.buffer.dtype=Zi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Zi=an,!an){switch(si.buffer.dtype){case Fa:case Wa:Zi=Fa;break;case da:case Xo:Zi=da;break;case Ha:case Wn:Zi=Ha;break;default:}si.buffer.dtype=Zi}si.type=Zi;var hi=Ri;hi<0&&(hi=si.buffer.byteLength,Zi===da?hi>>=1:Zi===Ha&&(hi>>=2)),si.vertCount=hi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=ua),mn===3&&(li=ma)}si.primType=li}function en(si){Rr.elementsCount--,delete jr[si.id],si.buffer.destroy(),si.buffer=null}function Wi(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Rr.elementsCount++;function Ri(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var an=null,Zi=Mt,Bn=-1,hi=-1,li=0,mn=0;Array.isArray(ci)||Br(ci)||Vr(ci)?an=ci:("data"in ci&&(an=ci.data),"usage"in ci&&(Zi=On[ci.usage]),"primitive"in ci&&(Bn=Sn[ci.primitive]),"count"in ci&&(hi=ci.count|0),"type"in ci&&(mn=Gr[ci.type]),"length"in ci?li=ci.length|0:(li=hi,mn===da||mn===Xo?li*=2:(mn===Ha||mn===Wn)&&(li*=4))),Hn(xi,an,Zi,Bn,hi,li,mn)}return Ri}return Ri(si),Ri._reglType="elements",Ri._elements=xi,Ri.subdata=function(ci,an){return Yr.subdata(ci,an),Ri},Ri.destroy=function(){en(xi)},Ri}return{create:Wi,createStream:qi,destroyStream:Ei,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(jr).forEach(en)}}}var Jr=new Float32Array(1),vi=new Uint32Array(Jr.buffer),hn=5123;function An(Me){for(var bt=H.allocType(hn,Me.length),zt=0;zt>>31<<15,Nr=(Rr<<1>>>24)-127,Gr=Rr>>13&1023;if(Nr<-24)bt[zt]=jr;else if(Nr<-14){var mi=-14-Nr;bt[zt]=jr+(Gr+1024>>mi)}else Nr>15?bt[zt]=jr+31744:bt[zt]=jr+(Nr+15<<10)+Gr}return bt}function Mn(Me){return Array.isArray(Me)||Br(Me)}var Li=34467,_n=3553,ya=34067,$n=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,Ol=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,ql=10497,Pc=33071,Do=33648,rf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,Os=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,nf=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,Os,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"),qs=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(ke).concat([uc,xl,Gu,qs,od,Po]),Ko=[];Ko[Ns]=1,Ko[aa]=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[Ol]=.5,Pa[xo]=.25,Pa[Kl]=.5;function af(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||!Mn(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)===qs}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:af(Me)||Hu(Me)||Vr(Me)}function Yc(Me){return ke[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var zt=bt.length;switch(Me.type){case Ns:case Hl:case ac:case aa:var Rr=H.allocType(Me.type,zt);Rr.set(bt),Me.data=Rr;break;case zs:Me.data=An(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?aa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=An(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,zt,Rr,jr,Nr){for(var Gr=Me.width,mi=Me.height,Ui=Me.channels,qi=Gr*mi*Ui,Ei=th(Me,qi),Hn=0,en=0;en=1;)mi+=Gr*Ui*Ui,Ui/=2;return mi}else return Gr*zt*Rr}function of(Me,bt,zt,Rr,jr,Nr,Gr){var mi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ui={repeat:ql,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Ei=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":Os,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Hn={none:0,browser:lc},en={uint8:Ns,rgba4:ll,rgb565:zl,"rgb5 a1":ul},Wi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},si={};bt.ext_srgb&&(Wi.srgb=cl,Wi.srgba=Ks),bt.oes_texture_float&&(en.float32=en.float=aa),bt.oes_texture_half_float&&(en.float16=en["half float"]=zs),bt.webgl_depth_texture&&(e(Wi,{depth:il,"depth stencil":As}),e(en,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":Ol,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Kl);var Mr=Array.prototype.slice.call(Me.getParameter(Li));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(Wi[ne]=we)});var Yr=Object.keys(Wi);zt.textureFormats=Yr;var xi=[];Object.keys(Wi).forEach(function(ne){var we=Wi[ne];xi[we]=ne});var Ri=[];Object.keys(en).forEach(function(ne){var we=en[ne];Ri[we]=ne});var ci=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ci[we]=ne});var an=[];Object.keys(Ei).forEach(function(ne){var we=Ei[ne];an[we]=ne});var Zi=[];Object.keys(Ui).forEach(function(ne){var we=Ui[ne];Zi[we]=ne});var Bn=Yr.reduce(function(ne,we){var Ue=Wi[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===il||Ue===As||bt.ext_srgb&&(Ue===cl||Ue===Ks)?ne[Ue]=Ue:Ue===Ds||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function hi(){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 li(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=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=en[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var Qe=we.format,at=ne.internalformat=Wi[Qe];ne.format=Bn[at],Qe in en&&("type"in we||(ne.type=en[Qe])),Qe in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&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(nf,ne.unpackAlignment)}function Vi(){hi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Ni(ne,we){var Ue=null;if(_f(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Ue=we.data)),we.copy){var ft=jr.viewportWidth,Zt=jr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Br(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Vr(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Ns&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,Qe,at,Ct,Ot,Rt,Bt;qt.length===3?(Ct=qt[2],Bt=Ve[2]):(Ct=1,Bt=1),Qe=qt[0],at=qt[1],Ot=Ve[0],Rt=Ve[1],ne.alignment=1,ne.width=Qe,ne.height=at,ne.channels=Ct,ne.format=ne.internalformat=Hs[Ct],ne.needsFree=!0,jf(ne,hr,Ot,Rt,Bt,Ue.offset)}else if(Hf(Ue)||Ic(Ue)||yf(Ue))Hf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(Ah(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Dt=ne.width||Ue[0].length,yt=ne.height||Ue.length,Pt=ne.channels;Mn(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),ur=1,br=0;br>=Zt,Ue.height>>=Zt,Ni(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=qi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ui[qt]:Array.isArray(qt)&&(Zt=Ui[qt[0]],hr=Ui[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ui[Ve]}if("wrapT"in we){var Qe=we.wrapT;hr=Ui[Qe]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var Ct=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,Ct=!0;break;case"boolean":Ct=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,Ct=!0;break;default:}Ct&&!("min"in we)&&(ne.minFilter=Jl)}}function al(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,rf,ne.magFilter),Me.texParameteri(we,Oo,ne.wrapS),Me.texParameteri(we,qo,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=zt.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){hi.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,Gr.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,Ue=ne.unit,ft=ne.target;Ue>=0&&(Me.activeTexture(Fu+Ue),Me.bindTexture(ft,null),Ys[Ue]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Nr.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ys[Ue]=ne,we=Ue;break}we>=Vs,Gr.profile&&Nr.maxTextureUnits>Rt)-Ct,Bt.height=Bt.height||(Ue.height>>Rt)-Ot,ol(Ue),Vn(Bt,_n,Ct,Ot,Rt),io(),kn(Bt),ft}function hr(qt,Ve){var Qe=qt|0,at=Ve|0||Qe;if(Qe===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=Qe,ft.height=Ue.height=at,ol(Ue);for(var Ct=0;Ue.mipmask>>Ct;++Ct){var Ot=Qe>>Ct,Rt=at>>Ct;if(!Ot||!Rt)break;Me.texImage2D(_n,Ct,Ue.format,Ot,Rt,0,Ue.format,Ue.type,null)}return io(),Gr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,Qe,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Gr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new wa(ya);ss[qt.id]=qt,Nr.cubeCount++;var Ve=new Array(6);function Qe(Ot,Rt,Bt,Dt,yt,Pt){var ht,ur=qt.texInfo;for(zo.call(ur),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(Rt)ba(Ve[0],Ot),ba(Ve[1],Rt),ba(Ve[2],Bt),ba(Ve[3],Dt),ba(Ve[4],yt),ba(Ve[5],Pt);else if(Qs(ur,Ot),mn(qt,Ot),"faces"in Ot){var Ur=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),ba(Ve[ht],Ur[ht])}else for(ht=0;ht<6;++ht)ba(Ve[ht],Ot);for(li(qt,Ve[0]),ur.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,Qe.width=Ve[0].width,Qe.height=Ve[0].height,ol(qt),ht=0;ht<6;++ht)is(Ve[ht],$n+ht);for(al(ur,ya),io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,ur.genMipmaps,!0)),Qe.format=xi[qt.internalformat],Qe.type=Ri[qt.type],Qe.mag=ci[ur.magFilter],Qe.min=an[ur.minFilter],Qe.wrapS=Zi[ur.wrapS],Qe.wrapT=Zi[ur.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return Qe}function at(Ot,Rt,Bt,Dt,yt){var Pt=Bt|0,ht=Dt|0,ur=yt|0,br=Ki();return li(br,qt),br.width=0,br.height=0,Ni(br,Rt),br.width=br.width||(qt.width>>ur)-Pt,br.height=br.height||(qt.height>>ur)-ht,ol(qt),Vn(br,$n+Ot,Pt,ht,ur),io(),kn(br),Qe}function Ct(Ot){var Rt=Ot|0;if(Rt!==qt.width){Qe.width=qt.width=Rt,Qe.height=qt.height=Rt,ol(qt);for(var Bt=0;Bt<6;++Bt)for(var Dt=0;qt.mipmask>>Dt;++Dt)Me.texImage2D($n+Bt,Dt,qt.format,Rt>>Dt,Rt>>Dt,0,qt.format,qt.type,null);return io(),Gr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(ne,we,Ue,ft,Zt,hr),Qe.subimage=at,Qe.resize=Ct,Qe._reglType="textureCube",Qe._texture=qt,Gr.profile&&(Qe.stats=qt.stats),Qe.destroy=function(){qt.decRef()},Qe}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Me.texImage2D($n+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);al(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ui.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(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(al),ta=0;ta0&&(kn.depth=Ni[0].depth,kn.stencil=Ni[0].stencil,kn.depthStencil=Ni[0].depthStencil),Ni[Ki]?Ni[Ki](kn):Ni[Ki]=li(kn)}return e(pn,{width:ta,height:ta,color:zo})}function Vn(na){var Ki,kn=na|0;if(kn===pn.width)return pn;var ta=pn.color;for(Ki=0;Ki=ta.byteLength?oa.subdata(ta):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=jr.create(Ki,If,!1,!0)),kn.buffer=jr.getBuffer(oa),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1,pn[na]=1}else jr.getBuffer(Ki)?(kn.buffer=jr.getBuffer(Ki),kn.size=kn.buffer.dimension|0,kn.normalized=!1,kn.type=kn.buffer.dtype,kn.offset=0,kn.stride=0,kn.divisor=0,kn.state=1):jr.getBuffer(Ki.buffer)?(kn.buffer=jr.getBuffer(Ki.buffer),kn.size=(+Ki.size||kn.buffer.dimension)|0,kn.normalized=!!Ki.normalized||!1,"type"in Ki?kn.type=ji[Ki.type]:kn.type=kn.buffer.dtype,kn.offset=(Ki.offset||0)|0,kn.stride=(Ki.stride||0)|0,kn.divisor=(Ki.divisor||0)|0,kn.state=1):"x"in Ki&&(kn.x=+Ki.x||0,kn.y=+Ki.y||0,kn.z=+Ki.z||0,kn.w=+Ki.w||0,kn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Ei.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){jr={},Nr={};for(var Mr=0;Mr16&&(zt=Yi(zt,Me.length*8));for(var Rr=Array(16),jr=Array(16),Nr=0;Nr<16;Nr++)Rr[Nr]=zt[Nr]^909522486,jr[Nr]=zt[Nr]^1549556828;var Gr=Yi(Rr.concat(Bc(bt)),512+bt.length*8);return At(Yi(jr.concat(Gr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Rr,jr=0;jr>>4&15)+bt.charAt(Rr&15);return zt}function qc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Rr=Me.length,jr=0;jrMe.length*8?zt+=Zu:zt+=bt.charAt(Nr>>>6*(3-Gr)&63);return zt}function cf(Me,bt){var zt=bt.length,Rr=Array(),jr,Nr,Gr,mi,Ui=Array(Math.ceil(Me.length/2));for(jr=0;jr0;){for(mi=Array(),Gr=0,jr=0;jr0||Nr>0)&&(mi[mi.length]=Nr);Rr[Rr.length]=Gr,Ui=mi}var qi="";for(jr=Rr.length-1;jr>=0;jr--)qi+=bt.charAt(Rr[jr]);var Ei=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(jr=qi.length;jr>>6&31,128|Rr&63):Rr<=65535?bt+=String.fromCharCode(224|Rr>>>12&15,128|Rr>>>6&63,128|Rr&63):Rr<=2097151&&(bt+=String.fromCharCode(240|Rr>>>18&7,128|Rr>>>12&63,128|Rr>>>6&63,128|Rr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),zt=0;zt>5]|=(Me.charCodeAt(zt/8)&255)<<24-zt%32;return bt}function At(Me){for(var bt="",zt=0;zt>5]>>>24-zt%32&255);return bt}function Xt(Me,bt){return Me>>>bt|Me<<32-bt}function Cr(Me,bt){return Me>>>bt}function Ar(Me,bt,zt){return Me&bt^~Me&zt}function Kr(Me,bt,zt){return Me&bt^Me&zt^bt&zt}function ki(Me){return Xt(Me,2)^Xt(Me,13)^Xt(Me,22)}function Xi(Me){return Xt(Me,6)^Xt(Me,11)^Xt(Me,25)}function dn(Me){return Xt(Me,7)^Xt(Me,18)^Cr(Me,3)}function wn(Me){return Xt(Me,17)^Xt(Me,19)^Cr(Me,10)}var Nn=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 zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Rr=new Array(64),jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,en=0;en>16)+(bt>>16)+(zt>>16);return Rr<<16|zt&65535}function on(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return on(Me).join("")}function Qn(Me){var bt=Me&&Me.cache,zt=0,Rr=[],jr=[],Nr=[];function Gr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ri,"="),si.push.apply(si,on(arguments)),si.push(";")),Ri}return e(Mr,{def:xi,toString:function(){return Fi([Yr.length>0?"var "+Yr.join(",")+";":"",Fi(si)])}})}function Ui(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ri(ci,an){Mr(ci,an,"=",si.def(ci,an),";")}return e(function(){si.apply(si,on(arguments))},{def:si.def,entry:si,exit:Mr,save:Ri,set:function(ci,an,Zi){Ri(ci,an),si(ci,an,"=",Zi,";")},toString:function(){return Yr()+xi()}})}function qi(){var si=Fi(arguments),Mr=Ui(),Yr=Ui(),xi=Mr.toString,Ri=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,on(arguments)),this},else:function(){return Yr.apply(Yr,on(arguments)),this},toString:function(){var ci=Ri();return ci&&(ci="else{"+ci+"}"),Fi(["if(",si,"){",xi(),"}",ci])}})}var Ei=mi(),Hn={};function en(si,Mr){var Yr=[];function xi(){var Bn="a"+Yr.length;return Yr.push(Bn),Bn}Mr=Mr||0;for(var Ri=0;Ri":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ai={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Ii(Me){return Array.isArray(Me)||Br(Me)||Vr(Me)}function Si(Me){return Me.sort(function(bt,zt){return bt===ee?-1:zt===ee?1:bt=1,Rr>=2,bt)}else if(zt===Zo){var jr=Me.data;return new ei(jr.thisDep,jr.contextDep,jr.propDep,bt)}else{if(zt===Ss)return new ei(!1,!1,!1,bt);if(zt===as){for(var Nr=!1,Gr=!1,mi=!1,Ui=0;Ui=1&&(Gr=!0),Ei>=2&&(mi=!0)}else qi.type===Zo&&(Nr=Nr||qi.data.thisDep,Gr=Gr||qi.data.contextDep,mi=mi||qi.data.propDep)}return new ei(Nr,Gr,mi,bt)}else return new ei(zt===bo,zt===Ka,zt===Dn,bt)}}var ia=new ei(!1,!1,!1,function(){});function Ea(Me,bt,zt,Rr,jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr){var Yr=qi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ri=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,an=zt.oes_vertex_array_object,Zi={dirty:!0,profile:Mr.profile},Bn={},hi=[],li={},mn={};function Ji(Ve){return Ve.replace(".","_")}function Vi(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Bn[Ct]=Zi[Ct]=!!at,li[Ct]=Qe}function Ni(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Array.isArray(at)?(Zi[Ct]=at.slice(),Bn[Ct]=at.slice()):Zi[Ct]=Bn[Ct]=at,mn[Ct]=Qe}function pn(Ve){return!!isNaN(Ve)}Vi(ws,Pi),Vi(Ho,ni),Ni(ml,"blendColor",[0,0,0,0]),Ni(Ws,"blendEquationSeparate",[yr,yr]),Ni(Ls,"blendFuncSeparate",[gr,jt,gr,jt]),Vi(va,ln,!0),Ni(no,"depthFunc",Hr),Ni(ys,"depthRange",[0,1]),Ni(rs,"depthMask",!0),Ni(Ql,Ql,[!0,!0,!0,!0]),Vi(Cu,Wr),Ni(Yu,"cullFace",se),Ni(Nc,Nc,Ne),Ni(pu,pu,1),Vi(Uc,Kn),Ni(xu,"polygonOffset",[0,0]),Vi(Ac,Aa),Vi(Ua,fa),Ni(oo,"sampleCoverage",[1,!1]),Vi(Vc,cn),Ni(hc,"stencilMask",-1),Ni(Ku,"stencilFunc",[kt,0,-1]),Ni(ue,"stencilOpSeparate",[X,nt,nt,nt]),Ni(w,"stencilOpSeparate",[se,nt,nt,nt]),Vi(B,Cn),Ni(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Ni(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Vn={gl:Me,context:en,strings:bt,next:Bn,current:Zi,draw:Hn,elements:Nr,buffer:jr,shader:Ei,attributes:qi.state,vao:qi,uniforms:Ui,framebuffer:mi,extensions:zt,timer:Wi,isBufferArgs:Ii},na={primTypes:Sn,compareFuncs:Zr,blendFuncs:bi,blendEquations:xi,stencilOps:ai,glTypes:ji,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(Qe){return _i+Qe})}));var Ki=0;function kn(){var Ve=Qn({cache:si}),Qe=Ve.link,at=Ve.global;Ve.id=Ki++,Ve.batchId="0";var Ct=Qe(Vn),Ot=Ve.shared={props:"a0"};Object.keys(Vn).forEach(function(Pt){Ot[Pt]=at.def(Ct,".",Pt)});var Rt=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Zi[Pt])&&(Rt[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var ur=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(Qe(ht.data),".call(",ur.slice(0,Math.max(ht.data.length+1,4)),")");case Dn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Zo:return ht.data.append(Ve,Pt),ht.data.ref;case Ss:return ht.data.toString();case as:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var yt={};return Ve.scopeAttrib=function(Pt){var ht=bt.id(Pt);if(ht in yt)return yt[ht];var ur=qi.scope[ht];ur||(ur=qi.scope[ht]=new Yr);var br=yt[ht]=Qe(ur);return br},Ve}function ta(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct;if(le in Qe){var Ot=!!Qe[le];Ct=En(function(Bt,Dt){return Ot}),Ct.enable=Ot}else if(le in at){var Rt=at[le];Ct=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}return Ct}function oa(Ve,Qe){var at=Ve.static,Ct=Ve.dynamic;if(Oe in at){var Ot=at[Oe];return Ot?(Ot=mi.getFramebuffer(Ot),En(function(Bt,Dt){var yt=Bt.link(Ot),Pt=Bt.shared;Dt.set(Pt.framebuffer,".next",yt);var ht=Pt.context;return Dt.set(ht,"."+qe,yt+".width"),Dt.set(ht,"."+et,yt+".height"),yt})):En(function(Bt,Dt){var yt=Bt.shared;Dt.set(yt.framebuffer,".next","null");var Pt=yt.context;return Dt.set(Pt,"."+qe,Pt+"."+Ht),Dt.set(Pt,"."+et,Pt+"."+tr),"null"})}else if(Oe in Ct){var Rt=Ct[Oe];return Un(Rt,function(Bt,Dt){var yt=Bt.invoke(Dt,Rt),Pt=Bt.shared,ht=Pt.framebuffer,ur=Dt.def(ht,".getFramebuffer(",yt,")");Dt.set(ht,".next",ur);var br=Pt.context;return Dt.set(br,"."+qe,ur+"?"+ur+".width:"+br+"."+Ht),Dt.set(br,"."+et,ur+"?"+ur+".height:"+br+"."+tr),ur})}else return null}function ba(Ve,Qe,at){var Ct=Ve.static,Ot=Ve.dynamic;function Rt(yt){if(yt in Ct){var Pt=Ct[yt],ht=!0,ur=Pt.x|0,br=Pt.y|0,Ur,Di;return"width"in Pt?Ur=Pt.width|0:ht=!1,"height"in Pt?Di=Pt.height|0:ht=!1,new ei(!ht&&Qe&&Qe.thisDep,!ht&&Qe&&Qe.contextDep,!ht&&Qe&&Qe.propDep,function(gn,rn){var Ci=gn.shared.context,Bi=Ur;"width"in Pt||(Bi=rn.def(Ci,".",qe,"-",ur));var Gi=Di;return"height"in Pt||(Gi=rn.def(Ci,".",et,"-",br)),[ur,br,Bi,Gi]})}else if(yt in Ot){var fi=Ot[yt],Ti=Un(fi,function(gn,rn){var Ci=gn.invoke(rn,fi),Bi=gn.shared.context,Gi=rn.def(Ci,".x|0"),sn=rn.def(Ci,".y|0"),zn=rn.def('"width" in ',Ci,"?",Ci,".width|0:","(",Bi,".",qe,"-",Gi,")"),Ja=rn.def('"height" in ',Ci,"?",Ci,".height|0:","(",Bi,".",et,"-",sn,")");return[Gi,sn,zn,Ja]});return Qe&&(Ti.thisDep=Ti.thisDep||Qe.thisDep,Ti.contextDep=Ti.contextDep||Qe.contextDep,Ti.propDep=Ti.propDep||Qe.propDep),Ti}else return Qe?new ei(Qe.thisDep,Qe.contextDep,Qe.propDep,function(gn,rn){var Ci=gn.shared.context;return[0,0,rn.def(Ci,".",qe),rn.def(Ci,".",et)]}):null}var Bt=Rt(ee);if(Bt){var Dt=Bt;Bt=new ei(Bt.thisDep,Bt.contextDep,Bt.propDep,function(yt,Pt){var ht=Dt.append(yt,Pt),ur=yt.shared.context;return Pt.set(ur,"."+Xe,ht[2]),Pt.set(ur,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:Rt(Q)}}function is(Ve,Qe){var at=Ve.static,Ct=typeof at[st]=="string"&&typeof at[Ze]=="string";if(Ct){if(Object.keys(Qe.dynamic).length>0)return null;var Ot=Qe.static,Rt=Object.keys(Ot);if(Rt.length>0&&typeof Ot[Rt[0]]=="number"){for(var Bt=[],Dt=0;Dt"+Gi+"?"+ht+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Ur,"(",ht,".buffer)){",gn,"=",Di,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Di,".getBuffer(",ht,".buffer);","}",rn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(Bi){Pt(fi[Bi],"=",ht,".",Bi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Di,".destroyStream(",gn,");","}"),fi}Ot[Rt]=Un(Bt,Dt)}),Ot}function al(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct={};return Object.keys(Qe).forEach(function(Ot){var Rt=Qe[Ot];Ct[Ot]=En(function(Bt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Bt.link(Rt)})}),Object.keys(at).forEach(function(Ot){var Rt=at[Ot];Ct[Ot]=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}),Ct}function Vl(Ve,Qe,at,Ct,Ot){var Rt=Ve.static,Bt=Ve.dynamic,Dt=is(Ve,Qe),yt=oa(Ve,Ot),Pt=ba(Ve,yt,Ot),ht=Va(Ve,Ot),ur=Ml(Ve,Ot),br=Zs(Ve,Ot,Dt);function Ur(Ci){var Bi=Pt[Ci];Bi&&(ur[Ci]=Bi)}Ur(ee),Ur(Ji(Q));var Di=Object.keys(ur).length>0,fi={framebuffer:yt,draw:ht,shader:br,state:ur,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ta(Ve,Ot),fi.uniforms=zo(at,Ot),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var Ti=!0,gn=br.program.attributes.map(function(Ci){var Bi=Qe.static[Ci];return Ti=Ti&&!!Bi,Bi});if(Ti&&gn.length>0){var rn=qi.getVAO(qi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ei(null,null,null,function(Ci,Bi){return Ci.link(rn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=Qs(Qe,Ot),fi.context=al(Ct,Ot),fi}function ss(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.context,Rt=Ve.scope();Object.keys(at).forEach(function(Bt){Qe.save(Ot,"."+Bt);var Dt=at[Bt],yt=Dt.append(Ve,Qe);Array.isArray(yt)?Rt(Ot,".",Bt,"=[",yt.join(),"];"):Rt(Ot,".",Bt,"=",yt,";")}),Qe(Rt)}function Vs(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ot.gl,Bt=Ot.framebuffer,Dt;ci&&(Dt=Qe.def(Ot.extensions,".webgl_draw_buffers"));var yt=Ve.constants,Pt=yt.drawBuffer,ht=yt.backBuffer,ur;at?ur=at.append(Ve,Qe):ur=Qe.def(Bt,".next"),Ct||Qe("if(",ur,"!==",Bt,".cur){"),Qe("if(",ur,"){",Rt,".bindFramebuffer(",qr,",",ur,".framebuffer);"),ci&&Qe(Dt,".drawBuffersWEBGL(",Pt,"[",ur,".colorAttachments.length]);"),Qe("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&Qe(Dt,".drawBuffersWEBGL(",ht,");"),Qe("}",Bt,".cur=",ur,";"),Ct||Qe("}")}function Ys(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.gl,Rt=Ve.current,Bt=Ve.next,Dt=Ct.current,yt=Ct.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var ur=Ji(ht);if(!(ur in at.state)){var br,Ur;if(ur in Bt){br=Bt[ur],Ur=Rt[ur];var Di=M(Zi[ur].length,function(Ti){return Pt.def(br,"[",Ti,"]")});Pt(Ve.cond(Di.map(function(Ti,gn){return Ti+"!=="+Ur+"["+gn+"]"}).join("||")).then(Ot,".",mn[ur],"(",Di,");",Di.map(function(Ti,gn){return Ur+"["+gn+"]="+Ti}).join(";"),";"))}else{br=Pt.def(yt,".",ur);var fi=Ve.cond(br,"!==",Dt,".",ur);Pt(fi),ur in li?fi(Ve.cond(br).then(Ot,".enable(",li[ur],");").else(Ot,".disable(",li[ur],");"),Dt,".",ur,"=",br,";"):fi(Ot,".",mn[ur],"(",br,");",Dt,".",ur,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),Qe(Pt)}function wa(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ve.current,Bt=Ot.current,Dt=Ot.gl,yt;Si(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(Ct&&!Ct(ht))){var ur=ht.append(Ve,Qe);if(li[Pt]){var br=li[Pt];Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Ve.cond(yt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",yt,";")):(Qe(Ve.cond(ur).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",ur,";"))}else if(Mn(ur)){var Ur=Rt[Pt];Qe(Dt,".",mn[Pt],"(",ur,");",ur.map(function(Di,fi){return Ur+"["+fi+"]="+Di}).join(";"),";")}else Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Dt,".",mn[Pt],"(",yt,");",Bt,".",Pt,"=",yt,";")):Qe(Dt,".",mn[Pt],"(",ur,");",Bt,".",Pt,"=",ur,";")}})}function ol(Ve,Qe){Ri&&(Ve.instancing=Qe.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared,Bt=Ve.stats,Dt=Rt.current,yt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ur,br;function Ur(Ci){ur=Qe.def(),Ci(ur,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),Wi&&(Ct?(br=Qe.def(),Ci(br,"=",yt,".getNumPendingQueries();")):Ci(yt,".beginQuery(",Bt,");"))}function Di(Ci){Ci(Bt,".cpuTime+=",ht(),"-",ur,";"),Wi&&(Ct?Ci(yt,".pushScopeStats(",br,",",yt,".getNumPendingQueries(),",Bt,");"):Ci(yt,".endQuery();"))}function fi(Ci){var Bi=Qe.def(Dt,".profile");Qe(Dt,".profile=",Ci,";"),Qe.exit(Dt,".profile=",Bi,";")}var Ti;if(Pt){if(Ln(Pt)){Pt.enable?(Ur(Qe),Di(Qe.exit),fi("true")):fi("false");return}Ti=Pt.append(Ve,Qe),fi(Ti)}else Ti=Qe.def(Dt,".profile");var gn=Ve.block();Ur(gn),Qe("if(",Ti,"){",gn,"}");var rn=Ve.block();Di(rn),Qe.exit("if(",Ti,"){",rn,"}")}function Y(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared;function Bt(yt){switch(yt){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 Dt(yt,Pt,ht){var ur=Rt.gl,br=Qe.def(yt,".location"),Ur=Qe.def(Rt.attributes,"[",br,"]"),Di=ht.state,fi=ht.buffer,Ti=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function rn(){Qe("if(!",Ur,".buffer){",ur,".enableVertexAttribArray(",br,");}");var Bi=ht.type,Gi;if(ht.size?Gi=Qe.def(ht.size,"||",Pt):Gi=Pt,Qe("if(",Ur,".type!==",Bi,"||",Ur,".size!==",Gi,"||",gn.map(function(zn){return Ur+"."+zn+"!=="+ht[zn]}).join("||"),"){",ur,".bindBuffer(",Sr,",",fi,".buffer);",ur,".vertexAttribPointer(",[br,Gi,Bi,ht.normalized,ht.stride,ht.offset],");",Ur,".type=",Bi,";",Ur,".size=",Gi,";",gn.map(function(zn){return Ur+"."+zn+"="+ht[zn]+";"}).join(""),"}"),Ri){var sn=ht.divisor;Qe("if(",Ur,".divisor!==",sn,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,sn],");",Ur,".divisor=",sn,";}")}}function Ci(){Qe("if(",Ur,".buffer){",ur,".disableVertexAttribArray(",br,");",Ur,".buffer=null;","}if(",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"!=="+Ti[Gi]}).join("||"),"){",ur,".vertexAttrib4f(",br,",",Ti,");",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"="+Ti[Gi]+";"}).join(""),"}")}Di===La?rn():Di===Na?Ci():(Qe("if(",Di,"===",La,"){"),rn(),Qe("}else{"),Ci(),Qe("}"))}Ct.forEach(function(yt){var Pt=yt.name,ht=at.attributes[Pt],ur;if(ht){if(!Ot(ht))return;ur=ht.append(Ve,Qe)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);ur={},Object.keys(new Yr).forEach(function(Ur){ur[Ur]=Qe.def(br,".",Ur)})}Dt(Ve.link(yt),Bt(yt.info.type),ur)})}function D(Ve,Qe,at,Ct,Ot,Rt){for(var Bt=Ve.shared,Dt=Bt.gl,yt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function sn(){at(Ti,".drawArraysInstancedANGLE(",[br,Ur,Di,fi],");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}function Bi(){function Gi(){at(Rt+".drawElements("+[br,Di,gn,Ur+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function sn(){at(Rt+".drawArrays("+[br,Ur,Di]+");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}Ri&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),Bi(),at("}")):Ci():Bi()}function q(Ve,Qe,at,Ct,Ot){var Rt=kn(),Bt=Rt.proc("body",Ot);return Ri&&(Rt.instancing=Bt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Bt,at,Ct),Rt.compile().body}function K(Ve,Qe,at,Ct){ol(Ve,Qe),at.useVAO?at.drawVAO?Qe(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Qe),");"):Qe(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Qe(Ve.shared.vao,".setVAO(null);"),Y(Ve,Qe,at,Ct.attributes,function(){return!0})),D(Ve,Qe,at,Ct.uniforms,function(){return!0},!1),J(Ve,Qe,Qe,at)}function de(Ve,Qe){var at=Ve.proc("draw",1);ol(Ve,at),ss(Ve,at,Qe.context),Vs(Ve,at,Qe.framebuffer),Ys(Ve,at,Qe),wa(Ve,at,Qe.state),io(Ve,at,Qe,!1,!0);var Ct=Qe.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Ct,".program);"),Qe.shader.program)K(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),Rt=at.def(Ct,".id"),Bt=at.def(Ot,"[",Rt,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,Qe,Dt,1)}),"(",Ct,");",Bt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,Qe,at,Ct){Ve.batchId="a1",ol(Ve,Qe);function Ot(){return!0}Y(Ve,Qe,at,Ct.attributes,Ot),D(Ve,Qe,at,Ct.uniforms,Ot,!1),J(Ve,Qe,Qe,at)}function we(Ve,Qe,at,Ct){ol(Ve,Qe);var Ot=at.contextDep,Rt=Qe.def(),Bt="a0",Dt="a1",yt=Qe.def();Ve.shared.props=yt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();Qe(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",yt,"=",Bt,"[",Rt,"];",ht,"}",Pt.exit);function ur(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!ur(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Vs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,ur),at.profile&&ur(at.profile)&&io(Ve,ht,at,!1,!0),Ct)at.useVAO?at.drawVAO?ur(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,Ct.attributes,br),Y(Ve,ht,at,Ct.attributes,ur)),D(Ve,Pt,at,Ct.uniforms,br,!1),D(Ve,ht,at,Ct.uniforms,ur,!0),J(Ve,Pt,ht,at);else{var Ur=Ve.global.def("{}"),Di=at.shader.progVar.append(Ve,ht),fi=ht.def(Di,".id"),Ti=ht.def(Ur,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Di,".program);","if(!",Ti,"){",Ti,"=",Ur,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Di,");}",Ti,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,Qe){var at=Ve.proc("batch",2);Ve.batchId="0",ol(Ve,at);var Ct=!1,Ot=!0;Object.keys(Qe.context).forEach(function(Ur){Ct=Ct||Qe.context[Ur].propDep}),Ct||(ss(Ve,at,Qe.context),Ot=!1);var Rt=Qe.framebuffer,Bt=!1;Rt?(Rt.propDep?Ct=Bt=!0:Rt.contextDep&&Ct&&(Bt=!0),Bt||Vs(Ve,at,Rt)):Vs(Ve,at,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Ct=!0);function Dt(Ur){return Ur.contextDep&&Ct||Ur.propDep}Ys(Ve,at,Qe),wa(Ve,at,Qe.state,function(Ur){return!Dt(Ur)}),(!Qe.profile||!Dt(Qe.profile))&&io(Ve,at,Qe,!1,"a1"),Qe.contextDep=Ct,Qe.needsContext=Ot,Qe.needsFramebuffer=Bt;var yt=Qe.shader.progVar;if(yt.contextDep&&Ct||yt.propDep)we(Ve,at,Qe,null);else{var Pt=yt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),Qe.shader.program)we(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),ur=at.def(Pt,".id"),br=at.def(ht,"[",ur,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",ur,"]=",Ve.link(function(Ur){return q(we,Ve,Qe,Ur,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,Qe){var at=Ve.proc("scope",3);Ve.batchId="a2";var Ct=Ve.shared,Ot=Ct.current;if(ss(Ve,at,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ve,at),Si(Object.keys(Qe.state)).forEach(function(Dt){var yt=Qe.state[Dt],Pt=yt.append(Ve,at);Mn(Pt)?Pt.forEach(function(ht,ur){pn(ht)?at.set(Ve.next[Dt],"["+ur+"]",ht):at.set(Ve.next[Dt],"["+ur+"]",Ve.link(ht,{stable:!0}))}):Ln(yt)?at.set(Ct.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(Ct.next,"."+Dt,Pt)}),io(Ve,at,Qe,!0,!0),[Tt,xr,Kt,Ir,Yt].forEach(function(Dt){var yt=Qe.draw[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.draw,"."+Dt,Pt):at.set(Ct.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(Dt){var yt=Qe.uniforms[Dt].append(Ve,at);Array.isArray(yt)&&(yt="["+yt.map(function(Pt){return pn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(Ct.uniforms,"["+Ve.link(bt.id(Dt),{stable:!0})+"]",yt)}),Object.keys(Qe.attributes).forEach(function(Dt){var yt=Qe.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,yt[ht])})}),Qe.scopeVAO){var Rt=Qe.scopeVAO.append(Ve,at);pn(Rt)?at.set(Ct.vao,".targetVAO",Rt):at.set(Ct.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Bt(Dt){var yt=Qe.shader[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.shader,"."+Dt,Pt):at.set(Ct.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Bt(Ze),Bt(st),Object.keys(Qe.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||Mn(Ve))){for(var Qe=Object.keys(Ve),at=0;at=0;--q){var K=Vn[q];K&&K(si,null,0)}zt.flush(),Ei&&Ei.update()}function ba(){!ta&&Vn.length>0&&(ta=d.next(oa))}function is(){ta&&(d.cancel(oa),ta=null)}function Zs(q){q.preventDefault(),jr=!0,is(),na.forEach(function(K){K()})}function Va(q){zt.getError(),jr=!1,Nr.restore(),Bn.restore(),Ri.restore(),hi.restore(),li.restore(),mn.restore(),an.restore(),Ei&&Ei.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Va,!1));function Ml(){Vn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Va)),Bn.clear(),mn.clear(),li.clear(),an.clear(),hi.clear(),ci.clear(),Ri.clear(),Ei&&Ei.clear(),kn.forEach(function(q){q()})}function zo(q){function K(Rt){var Bt=e({},Rt);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Dt(yt){if(yt in Bt){var Pt=Bt[yt];delete Bt[yt],Object.keys(Pt).forEach(function(ht){Bt[yt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Bt.vao=Rt.vao),Bt}function de(Rt,Bt){var Dt={},yt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){yt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var ur=0;ur0)return Ve.call(this,Ct(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return qt.call(this,Rt)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(q,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(zt.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:q.framebuffer.faces[K]},q),al);else Qs(q,al);else al(null,q)}function ss(q){Vn.push(q);function K(){var de=dl(Vn,q);function ne(){var we=dl(Vn,ne);Vn[we]=Vn[Vn.length-1],Vn.length-=1,Vn.length<=0&&is()}Vn[de]=ne}return ba(),{cancel:K}}function Vs(){var q=Ni.viewport,K=Ni.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ys(){si.tick+=1,si.time=ol(),Vs(),Ji.procs.poll()}function wa(){hi.refresh(),Vs(),Ji.procs.refresh(),Ei&&Ei.update()}function ol(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Ki;break;case"destroy":de=kn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Vi,destroy:Ml,_gl:zt,_refresh:wa,poll:function(){Ys(),Ei&&Ei.update()},now:ol,stats:mi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var Lz=ye((S_r,zBe)=>{"use strict";var WUt=zX(),XUt=FBe();zBe.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=XUt({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||WUt({container:i._glcontainer.node()}),a}});var xK=ye((_K,UBe)=>{"use strict";var OBe=_Y(),qBe=KY(),ZUt=Sqe(),BBe=DBe(),yK=Dr(),YUt=Cg().selectMode,KUt=Lz(),JUt=Ru(),$Ut=SU(),QUt=pY().styleTextSelection,NBe={};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 _K=UBe.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=KUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],NBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if($Ut(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=ZUt(h)),a.line2d===!0&&(a.line2d=qBe(h)),a.scatter2d===!0&&(a.scatter2d=OBe(h)),a.fill2d===!0&&(a.fill2d=qBe(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[oe])||isNaN(H[oe+1]));)oe-=2;N.positions=H.slice(re,oe+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=yK.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 oe=re[0],_e=oe.trace,Ce=oe.t,Le=a.lineOptions[H],ge,ie,Se=[];_e._ownfill&&Se.push(H),_e._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var Ee=[],Ae=Le&&Le.positions||Ce.positions,Be,Pe;if(_e.fill==="tozeroy"){for(Be=0;BeBe&&isNaN(Ae[Pe+1]);)Pe-=2;Ae[Be+1]!==0&&(Ee=[Ae[Be],0]),Ee=Ee.concat(Ae.slice(Be,Pe+2)),Ae[Pe+1]!==0&&(Ee=Ee.concat([Ae[Pe],0]))}else if(_e.fill==="tozerox"){for(Be=0;BeBe&&isNaN(Ae[Pe]);)Pe-=2;Ae[Be]!==0&&(Ee=[0,Ae[Be+1]]),Ee=Ee.concat(Ae.slice(Be,Pe+2)),Ae[Pe]!==0&&(Ee=Ee.concat([0,Ae[Pe+1]]))}else if(_e.fill==="toself"||_e.fill==="tonext"){for(Ee=[],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,M=L.x,g=L.y;if(T.selectedpoints||k||E){if(k||(k=!0),T.selectedpoints){var P=a.selectBatch[x]=yK.selIndices2selPoints(T),A={};for(u=0;u{"use strict";var VBe=o7e();VBe.plot=xK();GBe.exports=VBe});var WBe=ye((E_r,jBe)=>{"use strict";jBe.exports=HBe()});var bK=ye((k_r,KBe)=>{"use strict";var tVt=pf(),YBe=Tu(),XBe=df().axisHoverFormat,{hovertemplateAttrs:rVt,templatefallbackAttrs:iVt}=Ll(),zk=gk(),nVt=Rh().idRegex,aVt=vl().templatedArray,x5=Ao().extendFlat,d1=tVt.marker,oVt=d1.line,sVt=x5(YBe("marker.line",{editTypeOverride:"calc"}),{width:x5({},oVt.width,{editType:"calc"}),editType:"calc"}),Pz=x5(YBe("marker"),{symbol:d1.symbol,angle:d1.angle,size:x5({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:sVt,editType:"calc"});Pz.color.editType=Pz.cmin.editType=Pz.cmax.editType="style";function ZBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:nVt[e],editType:"plot"}}}KBe.exports={dimensions:aVt("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:x5({},zk.text,{}),hovertext:x5({},zk.hovertext,{}),hovertemplate:rVt(),hovertemplatefallback:iVt(),xhoverformat:XBe("x"),yhoverformat:XBe("y"),marker:Pz,xaxes:ZBe("x"),yaxes:ZBe("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:zk.selected.marker,editType:"calc"},unselected:{marker:zk.unselected.marker,editType:"calc"},opacity:zk.opacity}});var Iz=ye((C_r,JBe)=>{"use strict";JBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var wK=Dr(),lVt=Zd(),$Be=bK(),uVt=Ru(),cVt=$p(),fVt=Iz(),hVt=WF().isOpenSymbol;QBe.exports=function(t,r,n,i){function a(d,v){return wK.coerce(t,r,$Be,d,v)}var o=lVt(t,r,{name:"dimensions",handleItemDefaults:dVt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=fVt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),cVt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=hVt(r.marker.symbol),h=uVt.isBubble(r);a("marker.line.width",f||h?1:0),vVt(t,r,i,a),wK.coerceSelectionMarkerOpacity(r,a)};function dVt(e,t){function r(i,a){return wK.coerce(e,t,$Be.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function vVt(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 tNe=Dr();rNe.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]=tNe.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||tNe.extendFlat(l,o),l}});var oNe=ye((I_r,aNe)=>{"use strict";var TK=Dr(),Rz=hf(),pVt=q0().calcMarkerSize,gVt=q0().calcAxisExpansion,mVt=z0(),nNe=ow().markerSelection,yVt=ow().markerStyle,_Vt=iNe(),xVt=fs().BADNUM,bVt=px().TOO_MANY_POINTS;aNe.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(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xbVt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=pVt(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(sNe)});var cNe=ye((R_r,zz)=>{var wVt=lNe(),v1=window,Dz=["moz","webkit"],w5="AnimationFrame",T5=v1["request"+w5],qk=v1["cancel"+w5]||v1["cancelRequest"+w5];for(b5=0;!T5&&b5{fNe.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 TVt=_Y(),AVt=ey(),SVt=rw(),dNe=cNe(),MVt=hNe(),SK=s5(),EVt=iw();pNe.exports=Ax;function Ax(e,t){if(!(this instanceof Ax))return new Ax(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=TVt(e),this.canvas=this.scatter.canvas}Ax.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=dNe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,dNe(()=>{this.dirty=!1})),this)};Ax.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};Ax.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 kVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Oz(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 vNe(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=SK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var yNe=ye((z_r,mNe)=>{"use strict";var CVt=gNe(),MK=Dr(),qz=hf(),LVt=Cg().selectMode;mNe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=LVt(c)||!!i.selectedpoints||P,z=!0;if(A){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";_Ne.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 xNe=EK(),IVt=jF().calcHover,bNe=ho().getFromId,RVt=Ao().extendFlat;function DVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=wNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=RVt({},e),f=0;f{"use strict";var kNe=Dr(),SNe=kNe.pushUnique,MNe=Ru(),ENe=EK();CNe.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=!MNe.hasMarkers(i)&&!MNe.hasText(i);if(i.visible!==!0||f)return c;var h=ENe.getDimIndex(i,l),d=ENe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],_=a.ypx[d],b=s[h],p=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var PNe=Dr(),FVt=z0(),zVt=ow().markerStyle;INe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){FVt(t,n),PNe.extendFlat(i.matrixOptions,zVt(t,n));var a=PNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var FNe=ye((U_r,DNe)=>{"use strict";var OVt=qa(),qVt=yV();DNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:bK(),supplyDefaults:eNe(),colorbar:$d(),calc:oNe(),plot:yNe(),hoverPoints:ANe().hoverPoints,selectPoints:LNe(),editStyle:RNe(),meta:{}};OVt.register(qVt)});var UNe=ye((V_r,NNe)=>{"use strict";var BVt=KY(),NVt=qa(),UVt=Lz(),VVt=Id().getModuleCalcData,Sx=mh(),zNe=hf().getFromId,ONe=ho().shouldShowZeroLine,qNe="splom",BNe={};function GVt(e){var t=e._fullLayout,r=NVt.getModule(qNe),n=VVt(e.calcdata,r)[0],i=UVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],BNe);i&&(t._hasOnlyLargeSploms&&kK(e),r.plot(e,{},n))}function HVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&kK(e);for(var n=0;n{"use strict";var VNe=FNe();VNe.basePlotModule=UNe(),GNe.exports=VNe});var WNe=ye((H_r,jNe)=>{"use strict";jNe.exports=HNe()});var PK=ye((j_r,XNe)=>{"use strict";var ZVt=Tu(),CK=Rd(),LK=ec(),YVt=Cc().attributes,Bz=Ao().extendFlat,KVt=vl().templatedArray;XNe.exports={domain:YVt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:LK({editType:"plot"}),tickfont:LK({autoShadowDflt:!0,editType:"plot"}),rangefont:LK({editType:"plot"}),dimensions:KVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Bz({},CK.tickvals,{editType:"plot"}),ticktext:Bz({},CK.ticktext,{editType:"plot"}),tickformat:Bz({},CK.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:Bz({editType:"calc"},ZVt("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 Bk=ye((W_r,ZNe)=>{"use strict";ZNe.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 iy=ye((X_r,KNe)=>{"use strict";var JVt=ZS();function YNe(e){return[e]}KNe.exports={keyFun:function(e){return e.key},repeat:YNe,descend:JVt,wrap:YNe,unwrap:function(e){return e[0]}}});var DK=ye((Z_r,sUe)=>{"use strict";var Th=Bk(),im=Oa(),$Vt=iy().keyFun,Nz=iy().repeat,A5=Dr().sorterAsc,QVt=Dr().strTranslate,JNe=Th.bar.snapRatio;function $Ne(e,t){return e*(1-JNe)+t*JNe}var QNe=Th.bar.snapClose;function eGt(e,t){return e*(1-QNe)+t*QNe}function Vz(e,t,r,n){if(tGt(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 rGt(e){e.attr("x",-Th.bar.captureWidth/2).attr("width",Th.bar.captureWidth)}function iGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function nGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=eUe(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 tUe(){im.select(document.body).style("cursor",null)}function RK(e){e.attr("stroke-dasharray",nGt)}function Uz(e,t){var r=im.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Th.bar.snapDuration).each("end",t):r;RK(n)}function rUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=eUe(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 oGt(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=rUe(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 iUe(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(A5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Uz(e.parentNode)}function sGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(nUe(e,t),iUe(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,tUe(),!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&&IK(r)):IK(r),i.brushCallback(t),Uz(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||IK(r),i.brushCallback(t),u?Uz(e.parentNode,s):(s(),Uz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function nUe(e,t){var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=rUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),im.select(document.body).style("cursor",i)}function lGt(e){e.on("mousemove",function(t){im.event.preventDefault(),t.parent.inBrushDrag||nUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||tUe()}).call(im.behavior.drag().on("dragstart",function(t){oGt(this,t)}).on("drag",function(t){iUe(this,t)}).on("dragend",function(t){sGt(this,t)}))}function aUe(e,t){return e[0]-t[0]}function uGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Nz);i.enter().append("rect").classed("background",!0).call(rGt).call(iGt).style("pointer-events",n?"none":"auto").attr("transform",QVt(0,Th.verticalPadding)),i.call(lGt).attr("height",function(s){return s.height-Th.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Nz);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(RK);var o=e.selectAll(".highlight").data(Nz);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(RK)}function cGt(e,t,r){var n=e.selectAll("."+Th.cn.axisBrush).data(Nz,$Vt);n.enter().append("g").classed(Th.cn.axisBrush,!0),uGt(n,t,r)}function fGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function IK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function hGt(e){return function(r){var n=r.brush,i=fGt(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 dGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(A5)}).sort(aUe),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 vGt(e,t,r,n,i,a){var o=dGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:hGt(i),brushEndCallback:a}}}function pGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(A5)}),t.multiselect?e=oUe(e.sort(aUe)):e=[e[0]]):e=[e.sort(A5)],t.tickvals){var r=t.tickvals.slice().sort(A5);if(e=e.map(function(n){var i=[Vz(0,r,n[0],[]),Vz(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]}sUe.exports={makeBrush:vGt,ensureAxisBrush:cGt,cleanRanges:pGt}});var cUe=ye((Y_r,uUe)=>{"use strict";var Mx=Dr(),gGt=pv().hasColorscale,mGt=td(),yGt=Cc().defaults,_Gt=Zd(),xGt=ho(),lUe=PK(),bGt=DK(),FK=Bk().maxDimensionCount,wGt=Iz();function TGt(e,t,r,n,i){var a=i("line.color",r);if(gGt(e,"line")&&Mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),mGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function AGt(e,t,r,n){function i(u,c){return Mx.coerce(e,t,lUe.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=bGt.cleanRanges(l,t))}}uUe.exports=function(t,r,n,i){function a(c,f){return Mx.coerce(t,r,lUe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>FK&&(Mx.log("parcoords traces support up to "+FK+" dimensions at the moment"),o.splice(FK));var s=_Gt(t,r,{name:"dimensions",layout:i,handleItemDefaults:AGt}),l=TGt(t,r,n,i,a);yGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),wGt(r,s,"values",l);var u=Mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Mx.coerceFont(a,"labelfont",u),Mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),Mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var hUe=ye((K_r,fUe)=>{"use strict";var SGt=Dr().isArrayOrTypedArray,zK=tc(),MGt=iy().wrap;fUe.exports=function(t,r){var n,i;return zK.hasColorscale(r,"line")&&SGt(r.line.color)?(n=r.line.color,i=zK.extractOpts(r.line).colorscale,zK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=EGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),MGt({lineColor:n,cscale:i})};function EGt(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(dUe[h]!==void 0)return dUe[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,vUe,dUe,pUe=gu(()=>{OK=Att(TX(),1),vUe=kGt,dUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Nk,qK=gu(()=>{Nk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Gz,gUe=gu(()=>{qK();Gz={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}};Nk.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 yUe={};mee(yUe,{default:()=>mUe});function mUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=vUe(e);if(!i.space)return[];let a=i.space[0]==="h"?Gz.min:Nk.min,o=i.space[0]==="h"?Gz.max:Nk.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=Gz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var _Ue=gu(()=>{pUe();qK();gUe()});var BK=ye(Hz=>{"use strict";var CGt=Dr().isTypedArray;Hz.convertTypedArray=function(e){return CGt(e)?Array.prototype.slice.call(e):e};Hz.isOrdinal=function(e){return!!e.tickvals};Hz.isVisible=function(e){return e.visible||!("visible"in e)}});var CUe=ye((axr,kUe)=>{"use strict";var LGt=["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(` +`),Yr;if(bt&&(Yr=Oc(Mr),bt[Yr]))return bt[Yr].apply(null,jr);var xi=Function.apply(null,Rr.concat(Mr));return bt&&(bt[Yr]=xi),xi.apply(null,jr)}return{global:Ei,link:Gr,block:mi,proc:en,scope:Ui,cond:qi,compile:Wi}}var Ca="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=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",Ua="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",Oe="framebuffer",Ze="vert",st="frag",Tt="elements",Yt="primitive",Kt="count",xr="offset",Ir="instances",ve="vao",be="Width",Re="Height",qe=Oe+be,et=Oe+Re,Xe=ee+be,it=ee+Re,Ft="drawingBuffer",Ht=Ft+be,tr=Ft+Re,dr=[Ls,Ws,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,Wr=2884,ni=3042,Pi=3024,cn=2960,ln=2929,Cn=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,Ul=35672,Lu=35673,au=35674,Js=35675,eu=35676,dc=35678,Tl=35680,Al=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ye=32776,kt=519,nt=7680,jt=0,gr=1,yr=32774,Hr=513,qr=36160,_i=36064,bi={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},Zr={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,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Ii(Me){return Array.isArray(Me)||Br(Me)||Vr(Me)}function Si(Me){return Me.sort(function(bt,zt){return bt===ee?-1:zt===ee?1:bt=1,Rr>=2,bt)}else if(zt===Zo){var jr=Me.data;return new ei(jr.thisDep,jr.contextDep,jr.propDep,bt)}else{if(zt===Ss)return new ei(!1,!1,!1,bt);if(zt===as){for(var Nr=!1,Gr=!1,mi=!1,Ui=0;Ui=1&&(Gr=!0),Ei>=2&&(mi=!0)}else qi.type===Zo&&(Nr=Nr||qi.data.thisDep,Gr=Gr||qi.data.contextDep,mi=mi||qi.data.propDep)}return new ei(Nr,Gr,mi,bt)}else return new ei(zt===bo,zt===Ka,zt===Dn,bt)}}var ia=new ei(!1,!1,!1,function(){});function Ea(Me,bt,zt,Rr,jr,Nr,Gr,mi,Ui,qi,Ei,Hn,en,Wi,si,Mr){var Yr=qi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ri=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,an=zt.oes_vertex_array_object,Zi={dirty:!0,profile:Mr.profile},Bn={},hi=[],li={},mn={};function Ji(Ve){return Ve.replace(".","_")}function Vi(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Bn[Ct]=Zi[Ct]=!!at,li[Ct]=Qe}function Ni(Ve,Qe,at){var Ct=Ji(Ve);hi.push(Ve),Array.isArray(at)?(Zi[Ct]=at.slice(),Bn[Ct]=at.slice()):Zi[Ct]=Bn[Ct]=at,mn[Ct]=Qe}function pn(Ve){return!!isNaN(Ve)}Vi(ws,Pi),Vi(Ho,ni),Ni(ml,"blendColor",[0,0,0,0]),Ni(Ws,"blendEquationSeparate",[yr,yr]),Ni(Ls,"blendFuncSeparate",[gr,jt,gr,jt]),Vi(va,ln,!0),Ni(no,"depthFunc",Hr),Ni(ys,"depthRange",[0,1]),Ni(rs,"depthMask",!0),Ni(Ql,Ql,[!0,!0,!0,!0]),Vi(Cu,Wr),Ni(Yu,"cullFace",se),Ni(Nc,Nc,Ne),Ni(pu,pu,1),Vi(Uc,Kn),Ni(xu,"polygonOffset",[0,0]),Vi(Ac,Aa),Vi(Ua,fa),Ni(oo,"sampleCoverage",[1,!1]),Vi(Vc,cn),Ni(hc,"stencilMask",-1),Ni(Ku,"stencilFunc",[kt,0,-1]),Ni(ue,"stencilOpSeparate",[X,nt,nt,nt]),Ni(w,"stencilOpSeparate",[se,nt,nt,nt]),Vi(B,Cn),Ni(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Ni(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Vn={gl:Me,context:en,strings:bt,next:Bn,current:Zi,draw:Hn,elements:Nr,buffer:jr,shader:Ei,attributes:qi.state,vao:qi,uniforms:Ui,framebuffer:mi,extensions:zt,timer:Wi,isBufferArgs:Ii},na={primTypes:Sn,compareFuncs:Zr,blendFuncs:bi,blendEquations:xi,stencilOps:ai,glTypes:ji,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(Qe){return _i+Qe})}));var Ki=0;function kn(){var Ve=Qn({cache:si}),Qe=Ve.link,at=Ve.global;Ve.id=Ki++,Ve.batchId="0";var Ct=Qe(Vn),Ot=Ve.shared={props:"a0"};Object.keys(Vn).forEach(function(Pt){Ot[Pt]=at.def(Ct,".",Pt)});var Rt=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Zi[Pt])&&(Rt[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var ur=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(Qe(ht.data),".call(",ur.slice(0,Math.max(ht.data.length+1,4)),")");case Dn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Zo:return ht.data.append(Ve,Pt),ht.data.ref;case Ss:return ht.data.toString();case as:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var yt={};return Ve.scopeAttrib=function(Pt){var ht=bt.id(Pt);if(ht in yt)return yt[ht];var ur=qi.scope[ht];ur||(ur=qi.scope[ht]=new Yr);var br=yt[ht]=Qe(ur);return br},Ve}function ta(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct;if(le in Qe){var Ot=!!Qe[le];Ct=En(function(Bt,Dt){return Ot}),Ct.enable=Ot}else if(le in at){var Rt=at[le];Ct=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}return Ct}function oa(Ve,Qe){var at=Ve.static,Ct=Ve.dynamic;if(Oe in at){var Ot=at[Oe];return Ot?(Ot=mi.getFramebuffer(Ot),En(function(Bt,Dt){var yt=Bt.link(Ot),Pt=Bt.shared;Dt.set(Pt.framebuffer,".next",yt);var ht=Pt.context;return Dt.set(ht,"."+qe,yt+".width"),Dt.set(ht,"."+et,yt+".height"),yt})):En(function(Bt,Dt){var yt=Bt.shared;Dt.set(yt.framebuffer,".next","null");var Pt=yt.context;return Dt.set(Pt,"."+qe,Pt+"."+Ht),Dt.set(Pt,"."+et,Pt+"."+tr),"null"})}else if(Oe in Ct){var Rt=Ct[Oe];return Un(Rt,function(Bt,Dt){var yt=Bt.invoke(Dt,Rt),Pt=Bt.shared,ht=Pt.framebuffer,ur=Dt.def(ht,".getFramebuffer(",yt,")");Dt.set(ht,".next",ur);var br=Pt.context;return Dt.set(br,"."+qe,ur+"?"+ur+".width:"+br+"."+Ht),Dt.set(br,"."+et,ur+"?"+ur+".height:"+br+"."+tr),ur})}else return null}function ba(Ve,Qe,at){var Ct=Ve.static,Ot=Ve.dynamic;function Rt(yt){if(yt in Ct){var Pt=Ct[yt],ht=!0,ur=Pt.x|0,br=Pt.y|0,Ur,Di;return"width"in Pt?Ur=Pt.width|0:ht=!1,"height"in Pt?Di=Pt.height|0:ht=!1,new ei(!ht&&Qe&&Qe.thisDep,!ht&&Qe&&Qe.contextDep,!ht&&Qe&&Qe.propDep,function(gn,rn){var Ci=gn.shared.context,Bi=Ur;"width"in Pt||(Bi=rn.def(Ci,".",qe,"-",ur));var Gi=Di;return"height"in Pt||(Gi=rn.def(Ci,".",et,"-",br)),[ur,br,Bi,Gi]})}else if(yt in Ot){var fi=Ot[yt],Ti=Un(fi,function(gn,rn){var Ci=gn.invoke(rn,fi),Bi=gn.shared.context,Gi=rn.def(Ci,".x|0"),sn=rn.def(Ci,".y|0"),zn=rn.def('"width" in ',Ci,"?",Ci,".width|0:","(",Bi,".",qe,"-",Gi,")"),Ja=rn.def('"height" in ',Ci,"?",Ci,".height|0:","(",Bi,".",et,"-",sn,")");return[Gi,sn,zn,Ja]});return Qe&&(Ti.thisDep=Ti.thisDep||Qe.thisDep,Ti.contextDep=Ti.contextDep||Qe.contextDep,Ti.propDep=Ti.propDep||Qe.propDep),Ti}else return Qe?new ei(Qe.thisDep,Qe.contextDep,Qe.propDep,function(gn,rn){var Ci=gn.shared.context;return[0,0,rn.def(Ci,".",qe),rn.def(Ci,".",et)]}):null}var Bt=Rt(ee);if(Bt){var Dt=Bt;Bt=new ei(Bt.thisDep,Bt.contextDep,Bt.propDep,function(yt,Pt){var ht=Dt.append(yt,Pt),ur=yt.shared.context;return Pt.set(ur,"."+Xe,ht[2]),Pt.set(ur,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:Rt(Q)}}function is(Ve,Qe){var at=Ve.static,Ct=typeof at[st]=="string"&&typeof at[Ze]=="string";if(Ct){if(Object.keys(Qe.dynamic).length>0)return null;var Ot=Qe.static,Rt=Object.keys(Ot);if(Rt.length>0&&typeof Ot[Rt[0]]=="number"){for(var Bt=[],Dt=0;Dt"+Gi+"?"+ht+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Ur,"(",ht,".buffer)){",gn,"=",Di,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Di,".getBuffer(",ht,".buffer);","}",rn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(Bi){Pt(fi[Bi],"=",ht,".",Bi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Di,".destroyStream(",gn,");","}"),fi}Ot[Rt]=Un(Bt,Dt)}),Ot}function al(Ve){var Qe=Ve.static,at=Ve.dynamic,Ct={};return Object.keys(Qe).forEach(function(Ot){var Rt=Qe[Ot];Ct[Ot]=En(function(Bt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Bt.link(Rt)})}),Object.keys(at).forEach(function(Ot){var Rt=at[Ot];Ct[Ot]=Un(Rt,function(Bt,Dt){return Bt.invoke(Dt,Rt)})}),Ct}function Vl(Ve,Qe,at,Ct,Ot){var Rt=Ve.static,Bt=Ve.dynamic,Dt=is(Ve,Qe),yt=oa(Ve,Ot),Pt=ba(Ve,yt,Ot),ht=Va(Ve,Ot),ur=Ml(Ve,Ot),br=Zs(Ve,Ot,Dt);function Ur(Ci){var Bi=Pt[Ci];Bi&&(ur[Ci]=Bi)}Ur(ee),Ur(Ji(Q));var Di=Object.keys(ur).length>0,fi={framebuffer:yt,draw:ht,shader:br,state:ur,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ta(Ve,Ot),fi.uniforms=zo(at,Ot),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var Ti=!0,gn=br.program.attributes.map(function(Ci){var Bi=Qe.static[Ci];return Ti=Ti&&!!Bi,Bi});if(Ti&&gn.length>0){var rn=qi.getVAO(qi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ei(null,null,null,function(Ci,Bi){return Ci.link(rn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=Qs(Qe,Ot),fi.context=al(Ct,Ot),fi}function ss(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.context,Rt=Ve.scope();Object.keys(at).forEach(function(Bt){Qe.save(Ot,"."+Bt);var Dt=at[Bt],yt=Dt.append(Ve,Qe);Array.isArray(yt)?Rt(Ot,".",Bt,"=[",yt.join(),"];"):Rt(Ot,".",Bt,"=",yt,";")}),Qe(Rt)}function Vs(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ot.gl,Bt=Ot.framebuffer,Dt;ci&&(Dt=Qe.def(Ot.extensions,".webgl_draw_buffers"));var yt=Ve.constants,Pt=yt.drawBuffer,ht=yt.backBuffer,ur;at?ur=at.append(Ve,Qe):ur=Qe.def(Bt,".next"),Ct||Qe("if(",ur,"!==",Bt,".cur){"),Qe("if(",ur,"){",Rt,".bindFramebuffer(",qr,",",ur,".framebuffer);"),ci&&Qe(Dt,".drawBuffersWEBGL(",Pt,"[",ur,".colorAttachments.length]);"),Qe("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&Qe(Dt,".drawBuffersWEBGL(",ht,");"),Qe("}",Bt,".cur=",ur,";"),Ct||Qe("}")}function Ys(Ve,Qe,at){var Ct=Ve.shared,Ot=Ct.gl,Rt=Ve.current,Bt=Ve.next,Dt=Ct.current,yt=Ct.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var ur=Ji(ht);if(!(ur in at.state)){var br,Ur;if(ur in Bt){br=Bt[ur],Ur=Rt[ur];var Di=M(Zi[ur].length,function(Ti){return Pt.def(br,"[",Ti,"]")});Pt(Ve.cond(Di.map(function(Ti,gn){return Ti+"!=="+Ur+"["+gn+"]"}).join("||")).then(Ot,".",mn[ur],"(",Di,");",Di.map(function(Ti,gn){return Ur+"["+gn+"]="+Ti}).join(";"),";"))}else{br=Pt.def(yt,".",ur);var fi=Ve.cond(br,"!==",Dt,".",ur);Pt(fi),ur in li?fi(Ve.cond(br).then(Ot,".enable(",li[ur],");").else(Ot,".disable(",li[ur],");"),Dt,".",ur,"=",br,";"):fi(Ot,".",mn[ur],"(",br,");",Dt,".",ur,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),Qe(Pt)}function wa(Ve,Qe,at,Ct){var Ot=Ve.shared,Rt=Ve.current,Bt=Ot.current,Dt=Ot.gl,yt;Si(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(Ct&&!Ct(ht))){var ur=ht.append(Ve,Qe);if(li[Pt]){var br=li[Pt];Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Ve.cond(yt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",yt,";")):(Qe(Ve.cond(ur).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),Qe(Bt,".",Pt,"=",ur,";"))}else if(Mn(ur)){var Ur=Rt[Pt];Qe(Dt,".",mn[Pt],"(",ur,");",ur.map(function(Di,fi){return Ur+"["+fi+"]="+Di}).join(";"),";")}else Ln(ht)?(yt=Ve.link(ur,{stable:!0}),Qe(Dt,".",mn[Pt],"(",yt,");",Bt,".",Pt,"=",yt,";")):Qe(Dt,".",mn[Pt],"(",ur,");",Bt,".",Pt,"=",ur,";")}})}function ol(Ve,Qe){Ri&&(Ve.instancing=Qe.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared,Bt=Ve.stats,Dt=Rt.current,yt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ur,br;function Ur(Ci){ur=Qe.def(),Ci(ur,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),Wi&&(Ct?(br=Qe.def(),Ci(br,"=",yt,".getNumPendingQueries();")):Ci(yt,".beginQuery(",Bt,");"))}function Di(Ci){Ci(Bt,".cpuTime+=",ht(),"-",ur,";"),Wi&&(Ct?Ci(yt,".pushScopeStats(",br,",",yt,".getNumPendingQueries(),",Bt,");"):Ci(yt,".endQuery();"))}function fi(Ci){var Bi=Qe.def(Dt,".profile");Qe(Dt,".profile=",Ci,";"),Qe.exit(Dt,".profile=",Bi,";")}var Ti;if(Pt){if(Ln(Pt)){Pt.enable?(Ur(Qe),Di(Qe.exit),fi("true")):fi("false");return}Ti=Pt.append(Ve,Qe),fi(Ti)}else Ti=Qe.def(Dt,".profile");var gn=Ve.block();Ur(gn),Qe("if(",Ti,"){",gn,"}");var rn=Ve.block();Di(rn),Qe.exit("if(",Ti,"){",rn,"}")}function Y(Ve,Qe,at,Ct,Ot){var Rt=Ve.shared;function Bt(yt){switch(yt){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 Dt(yt,Pt,ht){var ur=Rt.gl,br=Qe.def(yt,".location"),Ur=Qe.def(Rt.attributes,"[",br,"]"),Di=ht.state,fi=ht.buffer,Ti=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function rn(){Qe("if(!",Ur,".buffer){",ur,".enableVertexAttribArray(",br,");}");var Bi=ht.type,Gi;if(ht.size?Gi=Qe.def(ht.size,"||",Pt):Gi=Pt,Qe("if(",Ur,".type!==",Bi,"||",Ur,".size!==",Gi,"||",gn.map(function(zn){return Ur+"."+zn+"!=="+ht[zn]}).join("||"),"){",ur,".bindBuffer(",Sr,",",fi,".buffer);",ur,".vertexAttribPointer(",[br,Gi,Bi,ht.normalized,ht.stride,ht.offset],");",Ur,".type=",Bi,";",Ur,".size=",Gi,";",gn.map(function(zn){return Ur+"."+zn+"="+ht[zn]+";"}).join(""),"}"),Ri){var sn=ht.divisor;Qe("if(",Ur,".divisor!==",sn,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,sn],");",Ur,".divisor=",sn,";}")}}function Ci(){Qe("if(",Ur,".buffer){",ur,".disableVertexAttribArray(",br,");",Ur,".buffer=null;","}if(",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"!=="+Ti[Gi]}).join("||"),"){",ur,".vertexAttrib4f(",br,",",Ti,");",Ca.map(function(Bi,Gi){return Ur+"."+Bi+"="+Ti[Gi]+";"}).join(""),"}")}Di===La?rn():Di===Na?Ci():(Qe("if(",Di,"===",La,"){"),rn(),Qe("}else{"),Ci(),Qe("}"))}Ct.forEach(function(yt){var Pt=yt.name,ht=at.attributes[Pt],ur;if(ht){if(!Ot(ht))return;ur=ht.append(Ve,Qe)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);ur={},Object.keys(new Yr).forEach(function(Ur){ur[Ur]=Qe.def(br,".",Ur)})}Dt(Ve.link(yt),Bt(yt.info.type),ur)})}function D(Ve,Qe,at,Ct,Ot,Rt){for(var Bt=Ve.shared,Dt=Bt.gl,yt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function sn(){at(Ti,".drawArraysInstancedANGLE(",[br,Ur,Di,fi],");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}function Bi(){function Gi(){at(Rt+".drawElements("+[br,Di,gn,Ur+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function sn(){at(Rt+".drawArrays("+[br,Ur,Di]+");")}ht&&ht!=="null"?rn?Gi():(at("if(",ht,"){"),Gi(),at("}else{"),sn(),at("}")):sn()}Ri&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),Bi(),at("}")):Ci():Bi()}function q(Ve,Qe,at,Ct,Ot){var Rt=kn(),Bt=Rt.proc("body",Ot);return Ri&&(Rt.instancing=Bt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Bt,at,Ct),Rt.compile().body}function K(Ve,Qe,at,Ct){ol(Ve,Qe),at.useVAO?at.drawVAO?Qe(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Qe),");"):Qe(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Qe(Ve.shared.vao,".setVAO(null);"),Y(Ve,Qe,at,Ct.attributes,function(){return!0})),D(Ve,Qe,at,Ct.uniforms,function(){return!0},!1),J(Ve,Qe,Qe,at)}function de(Ve,Qe){var at=Ve.proc("draw",1);ol(Ve,at),ss(Ve,at,Qe.context),Vs(Ve,at,Qe.framebuffer),Ys(Ve,at,Qe),wa(Ve,at,Qe.state),io(Ve,at,Qe,!1,!0);var Ct=Qe.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Ct,".program);"),Qe.shader.program)K(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),Rt=at.def(Ct,".id"),Bt=at.def(Ot,"[",Rt,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,Qe,Dt,1)}),"(",Ct,");",Bt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,Qe,at,Ct){Ve.batchId="a1",ol(Ve,Qe);function Ot(){return!0}Y(Ve,Qe,at,Ct.attributes,Ot),D(Ve,Qe,at,Ct.uniforms,Ot,!1),J(Ve,Qe,Qe,at)}function we(Ve,Qe,at,Ct){ol(Ve,Qe);var Ot=at.contextDep,Rt=Qe.def(),Bt="a0",Dt="a1",yt=Qe.def();Ve.shared.props=yt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();Qe(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",yt,"=",Bt,"[",Rt,"];",ht,"}",Pt.exit);function ur(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!ur(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Vs(Ve,ht,at.framebuffer),wa(Ve,ht,at.state,ur),at.profile&&ur(at.profile)&&io(Ve,ht,at,!1,!0),Ct)at.useVAO?at.drawVAO?ur(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,Ct.attributes,br),Y(Ve,ht,at,Ct.attributes,ur)),D(Ve,Pt,at,Ct.uniforms,br,!1),D(Ve,ht,at,Ct.uniforms,ur,!0),J(Ve,Pt,ht,at);else{var Ur=Ve.global.def("{}"),Di=at.shader.progVar.append(Ve,ht),fi=ht.def(Di,".id"),Ti=ht.def(Ur,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Di,".program);","if(!",Ti,"){",Ti,"=",Ur,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Di,");}",Ti,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,Qe){var at=Ve.proc("batch",2);Ve.batchId="0",ol(Ve,at);var Ct=!1,Ot=!0;Object.keys(Qe.context).forEach(function(Ur){Ct=Ct||Qe.context[Ur].propDep}),Ct||(ss(Ve,at,Qe.context),Ot=!1);var Rt=Qe.framebuffer,Bt=!1;Rt?(Rt.propDep?Ct=Bt=!0:Rt.contextDep&&Ct&&(Bt=!0),Bt||Vs(Ve,at,Rt)):Vs(Ve,at,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Ct=!0);function Dt(Ur){return Ur.contextDep&&Ct||Ur.propDep}Ys(Ve,at,Qe),wa(Ve,at,Qe.state,function(Ur){return!Dt(Ur)}),(!Qe.profile||!Dt(Qe.profile))&&io(Ve,at,Qe,!1,"a1"),Qe.contextDep=Ct,Qe.needsContext=Ot,Qe.needsFramebuffer=Bt;var yt=Qe.shader.progVar;if(yt.contextDep&&Ct||yt.propDep)we(Ve,at,Qe,null);else{var Pt=yt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),Qe.shader.program)we(Ve,at,Qe,Qe.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),ur=at.def(Pt,".id"),br=at.def(ht,"[",ur,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",ur,"]=",Ve.link(function(Ur){return q(we,Ve,Qe,Ur,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,Qe){var at=Ve.proc("scope",3);Ve.batchId="a2";var Ct=Ve.shared,Ot=Ct.current;if(ss(Ve,at,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ve,at),Si(Object.keys(Qe.state)).forEach(function(Dt){var yt=Qe.state[Dt],Pt=yt.append(Ve,at);Mn(Pt)?Pt.forEach(function(ht,ur){pn(ht)?at.set(Ve.next[Dt],"["+ur+"]",ht):at.set(Ve.next[Dt],"["+ur+"]",Ve.link(ht,{stable:!0}))}):Ln(yt)?at.set(Ct.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(Ct.next,"."+Dt,Pt)}),io(Ve,at,Qe,!0,!0),[Tt,xr,Kt,Ir,Yt].forEach(function(Dt){var yt=Qe.draw[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.draw,"."+Dt,Pt):at.set(Ct.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(Dt){var yt=Qe.uniforms[Dt].append(Ve,at);Array.isArray(yt)&&(yt="["+yt.map(function(Pt){return pn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(Ct.uniforms,"["+Ve.link(bt.id(Dt),{stable:!0})+"]",yt)}),Object.keys(Qe.attributes).forEach(function(Dt){var yt=Qe.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,yt[ht])})}),Qe.scopeVAO){var Rt=Qe.scopeVAO.append(Ve,at);pn(Rt)?at.set(Ct.vao,".targetVAO",Rt):at.set(Ct.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Bt(Dt){var yt=Qe.shader[Dt];if(yt){var Pt=yt.append(Ve,at);pn(Pt)?at.set(Ct.shader,"."+Dt,Pt):at.set(Ct.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Bt(Ze),Bt(st),Object.keys(Qe.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||Mn(Ve))){for(var Qe=Object.keys(Ve),at=0;at=0;--q){var K=Vn[q];K&&K(si,null,0)}zt.flush(),Ei&&Ei.update()}function ba(){!ta&&Vn.length>0&&(ta=d.next(oa))}function is(){ta&&(d.cancel(oa),ta=null)}function Zs(q){q.preventDefault(),jr=!0,is(),na.forEach(function(K){K()})}function Va(q){zt.getError(),jr=!1,Nr.restore(),Bn.restore(),Ri.restore(),hi.restore(),li.restore(),mn.restore(),an.restore(),Ei&&Ei.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Va,!1));function Ml(){Vn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Va)),Bn.clear(),mn.clear(),li.clear(),an.clear(),hi.clear(),ci.clear(),Ri.clear(),Ei&&Ei.clear(),kn.forEach(function(q){q()})}function zo(q){function K(Rt){var Bt=e({},Rt);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Dt(yt){if(yt in Bt){var Pt=Bt[yt];delete Bt[yt],Object.keys(Pt).forEach(function(ht){Bt[yt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Bt.vao=Rt.vao),Bt}function de(Rt,Bt){var Dt={},yt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){yt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var ur=0;ur0)return Ve.call(this,Ct(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return qt.call(this,Rt)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(q,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(zt.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Vl(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:q.framebuffer.faces[K]},q),al);else Qs(q,al);else al(null,q)}function ss(q){Vn.push(q);function K(){var de=dl(Vn,q);function ne(){var we=dl(Vn,ne);Vn[we]=Vn[Vn.length-1],Vn.length-=1,Vn.length<=0&&is()}Vn[de]=ne}return ba(),{cancel:K}}function Vs(){var q=Ni.viewport,K=Ni.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ys(){si.tick+=1,si.time=ol(),Vs(),Ji.procs.poll()}function wa(){hi.refresh(),Vs(),Ji.procs.refresh(),Ei&&Ei.update()}function ol(){return(v()-Hn)/1e3}wa();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Ki;break;case"destroy":de=kn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Vi,destroy:Ml,_gl:zt,_refresh:wa,poll:function(){Ys(),Ei&&Ei.update()},now:ol,stats:mi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var Lz=ye((S_r,zBe)=>{"use strict";var WUt=zX(),XUt=FBe();zBe.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=XUt({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||WUt({container:i._glcontainer.node()}),a}});var xK=ye((_K,UBe)=>{"use strict";var OBe=_Y(),qBe=KY(),ZUt=Sqe(),BBe=DBe(),yK=Dr(),YUt=Cg().selectMode,KUt=Lz(),JUt=Ru(),$Ut=SU(),QUt=pY().styleTextSelection,NBe={};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 _K=UBe.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=KUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],NBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if($Ut(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=ZUt(h)),a.line2d===!0&&(a.line2d=qBe(h)),a.scatter2d===!0&&(a.scatter2d=OBe(h)),a.fill2d===!0&&(a.fill2d=qBe(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[oe])||isNaN(H[oe+1]));)oe-=2;N.positions=H.slice(re,oe+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=yK.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 oe=re[0],_e=oe.trace,Ce=oe.t,Le=a.lineOptions[H],ge,ie,Se=[];_e._ownfill&&Se.push(H),_e._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var Ee=[],Ae=Le&&Le.positions||Ce.positions,Be,Pe;if(_e.fill==="tozeroy"){for(Be=0;BeBe&&isNaN(Ae[Pe+1]);)Pe-=2;Ae[Be+1]!==0&&(Ee=[Ae[Be],0]),Ee=Ee.concat(Ae.slice(Be,Pe+2)),Ae[Pe+1]!==0&&(Ee=Ee.concat([Ae[Pe],0]))}else if(_e.fill==="tozerox"){for(Be=0;BeBe&&isNaN(Ae[Pe]);)Pe-=2;Ae[Be]!==0&&(Ee=[0,Ae[Be+1]]),Ee=Ee.concat(Ae.slice(Be,Pe+2)),Ae[Pe]!==0&&(Ee=Ee.concat([0,Ae[Pe+1]]))}else if(_e.fill==="toself"||_e.fill==="tonext"){for(Ee=[],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,M=L.x,g=L.y;if(T.selectedpoints||k||E){if(k||(k=!0),T.selectedpoints){var P=a.selectBatch[x]=yK.selIndices2selPoints(T),A={};for(u=0;u{"use strict";var VBe=o7e();VBe.plot=xK();GBe.exports=VBe});var WBe=ye((E_r,jBe)=>{"use strict";jBe.exports=HBe()});var bK=ye((k_r,KBe)=>{"use strict";var tVt=pf(),YBe=Tu(),XBe=df().axisHoverFormat,{hovertemplateAttrs:rVt,templatefallbackAttrs:iVt}=Ll(),Ok=mk(),nVt=Rh().idRegex,aVt=vl().templatedArray,x5=Ao().extendFlat,d1=tVt.marker,oVt=d1.line,sVt=x5(YBe("marker.line",{editTypeOverride:"calc"}),{width:x5({},oVt.width,{editType:"calc"}),editType:"calc"}),Pz=x5(YBe("marker"),{symbol:d1.symbol,angle:d1.angle,size:x5({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:sVt,editType:"calc"});Pz.color.editType=Pz.cmin.editType=Pz.cmax.editType="style";function ZBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:nVt[e],editType:"plot"}}}KBe.exports={dimensions:aVt("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:x5({},Ok.text,{}),hovertext:x5({},Ok.hovertext,{}),hovertemplate:rVt(),hovertemplatefallback:iVt(),xhoverformat:XBe("x"),yhoverformat:XBe("y"),marker:Pz,xaxes:ZBe("x"),yaxes:ZBe("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 Iz=ye((C_r,JBe)=>{"use strict";JBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var wK=Dr(),lVt=Zd(),$Be=bK(),uVt=Ru(),cVt=$p(),fVt=Iz(),hVt=WF().isOpenSymbol;QBe.exports=function(t,r,n,i){function a(d,v){return wK.coerce(t,r,$Be,d,v)}var o=lVt(t,r,{name:"dimensions",handleItemDefaults:dVt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=fVt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),cVt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=hVt(r.marker.symbol),h=uVt.isBubble(r);a("marker.line.width",f||h?1:0),vVt(t,r,i,a),wK.coerceSelectionMarkerOpacity(r,a)};function dVt(e,t){function r(i,a){return wK.coerce(e,t,$Be.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function vVt(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 tNe=Dr();rNe.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]=tNe.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||tNe.extendFlat(l,o),l}});var oNe=ye((I_r,aNe)=>{"use strict";var TK=Dr(),Rz=hf(),pVt=q0().calcMarkerSize,gVt=q0().calcAxisExpansion,mVt=z0(),nNe=ow().markerSelection,yVt=ow().markerStyle,_Vt=iNe(),xVt=fs().BADNUM,bVt=px().TOO_MANY_POINTS;aNe.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(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xbVt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=pVt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?qk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(qk.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?(qk.exports=function(){return Date.now()-r},r=Date.now()):(qk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(sNe)});var cNe=ye((R_r,zz)=>{var wVt=lNe(),v1=window,Dz=["moz","webkit"],w5="AnimationFrame",T5=v1["request"+w5],Bk=v1["cancel"+w5]||v1["cancelRequest"+w5];for(b5=0;!T5&&b5{fNe.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 TVt=_Y(),AVt=ey(),SVt=rw(),dNe=cNe(),MVt=hNe(),SK=s5(),EVt=iw();pNe.exports=Ax;function Ax(e,t){if(!(this instanceof Ax))return new Ax(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=TVt(e),this.canvas=this.scatter.canvas}Ax.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=dNe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,dNe(()=>{this.dirty=!1})),this)};Ax.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};Ax.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 kVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Oz(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 vNe(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=SK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var yNe=ye((z_r,mNe)=>{"use strict";var CVt=gNe(),MK=Dr(),qz=hf(),LVt=Cg().selectMode;mNe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=LVt(c)||!!i.selectedpoints||P,z=!0;if(A){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";_Ne.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 xNe=EK(),IVt=jF().calcHover,bNe=ho().getFromId,RVt=Ao().extendFlat;function DVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=wNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=RVt({},e),f=0;f{"use strict";var kNe=Dr(),SNe=kNe.pushUnique,MNe=Ru(),ENe=EK();CNe.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=!MNe.hasMarkers(i)&&!MNe.hasText(i);if(i.visible!==!0||f)return c;var h=ENe.getDimIndex(i,l),d=ENe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],_=a.ypx[d],b=s[h],p=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var PNe=Dr(),FVt=z0(),zVt=ow().markerStyle;INe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){FVt(t,n),PNe.extendFlat(i.matrixOptions,zVt(t,n));var a=PNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var FNe=ye((U_r,DNe)=>{"use strict";var OVt=qa(),qVt=yV();DNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:bK(),supplyDefaults:eNe(),colorbar:$d(),calc:oNe(),plot:yNe(),hoverPoints:ANe().hoverPoints,selectPoints:LNe(),editStyle:RNe(),meta:{}};OVt.register(qVt)});var UNe=ye((V_r,NNe)=>{"use strict";var BVt=KY(),NVt=qa(),UVt=Lz(),VVt=Id().getModuleCalcData,Sx=mh(),zNe=hf().getFromId,ONe=ho().shouldShowZeroLine,qNe="splom",BNe={};function GVt(e){var t=e._fullLayout,r=NVt.getModule(qNe),n=VVt(e.calcdata,r)[0],i=UVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],BNe);i&&(t._hasOnlyLargeSploms&&kK(e),r.plot(e,{},n))}function HVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&kK(e);for(var n=0;n{"use strict";var VNe=FNe();VNe.basePlotModule=UNe(),GNe.exports=VNe});var WNe=ye((H_r,jNe)=>{"use strict";jNe.exports=HNe()});var PK=ye((j_r,XNe)=>{"use strict";var ZVt=Tu(),CK=Rd(),LK=ec(),YVt=Cc().attributes,Bz=Ao().extendFlat,KVt=vl().templatedArray;XNe.exports={domain:YVt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:LK({editType:"plot"}),tickfont:LK({autoShadowDflt:!0,editType:"plot"}),rangefont:LK({editType:"plot"}),dimensions:KVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Bz({},CK.tickvals,{editType:"plot"}),ticktext:Bz({},CK.ticktext,{editType:"plot"}),tickformat:Bz({},CK.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:Bz({editType:"calc"},ZVt("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((W_r,ZNe)=>{"use strict";ZNe.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 iy=ye((X_r,KNe)=>{"use strict";var JVt=ZS();function YNe(e){return[e]}KNe.exports={keyFun:function(e){return e.key},repeat:YNe,descend:JVt,wrap:YNe,unwrap:function(e){return e[0]}}});var DK=ye((Z_r,sUe)=>{"use strict";var Th=Nk(),im=Oa(),$Vt=iy().keyFun,Nz=iy().repeat,A5=Dr().sorterAsc,QVt=Dr().strTranslate,JNe=Th.bar.snapRatio;function $Ne(e,t){return e*(1-JNe)+t*JNe}var QNe=Th.bar.snapClose;function eGt(e,t){return e*(1-QNe)+t*QNe}function Vz(e,t,r,n){if(tGt(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 rGt(e){e.attr("x",-Th.bar.captureWidth/2).attr("width",Th.bar.captureWidth)}function iGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function nGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=eUe(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 tUe(){im.select(document.body).style("cursor",null)}function RK(e){e.attr("stroke-dasharray",nGt)}function Uz(e,t){var r=im.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Th.bar.snapDuration).each("end",t):r;RK(n)}function rUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=eUe(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 oGt(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=rUe(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 iUe(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(A5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Uz(e.parentNode)}function sGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(nUe(e,t),iUe(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,tUe(),!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&&IK(r)):IK(r),i.brushCallback(t),Uz(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||IK(r),i.brushCallback(t),u?Uz(e.parentNode,s):(s(),Uz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function nUe(e,t){var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=rUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),im.select(document.body).style("cursor",i)}function lGt(e){e.on("mousemove",function(t){im.event.preventDefault(),t.parent.inBrushDrag||nUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||tUe()}).call(im.behavior.drag().on("dragstart",function(t){oGt(this,t)}).on("drag",function(t){iUe(this,t)}).on("dragend",function(t){sGt(this,t)}))}function aUe(e,t){return e[0]-t[0]}function uGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Nz);i.enter().append("rect").classed("background",!0).call(rGt).call(iGt).style("pointer-events",n?"none":"auto").attr("transform",QVt(0,Th.verticalPadding)),i.call(lGt).attr("height",function(s){return s.height-Th.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Nz);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(RK);var o=e.selectAll(".highlight").data(Nz);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(RK)}function cGt(e,t,r){var n=e.selectAll("."+Th.cn.axisBrush).data(Nz,$Vt);n.enter().append("g").classed(Th.cn.axisBrush,!0),uGt(n,t,r)}function fGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function IK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function hGt(e){return function(r){var n=r.brush,i=fGt(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 dGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(A5)}).sort(aUe),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 vGt(e,t,r,n,i,a){var o=dGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:hGt(i),brushEndCallback:a}}}function pGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(A5)}),t.multiselect?e=oUe(e.sort(aUe)):e=[e[0]]):e=[e.sort(A5)],t.tickvals){var r=t.tickvals.slice().sort(A5);if(e=e.map(function(n){var i=[Vz(0,r,n[0],[]),Vz(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]}sUe.exports={makeBrush:vGt,ensureAxisBrush:cGt,cleanRanges:pGt}});var cUe=ye((Y_r,uUe)=>{"use strict";var Mx=Dr(),gGt=pv().hasColorscale,mGt=td(),yGt=Cc().defaults,_Gt=Zd(),xGt=ho(),lUe=PK(),bGt=DK(),FK=Nk().maxDimensionCount,wGt=Iz();function TGt(e,t,r,n,i){var a=i("line.color",r);if(gGt(e,"line")&&Mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),mGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function AGt(e,t,r,n){function i(u,c){return Mx.coerce(e,t,lUe.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=bGt.cleanRanges(l,t))}}uUe.exports=function(t,r,n,i){function a(c,f){return Mx.coerce(t,r,lUe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>FK&&(Mx.log("parcoords traces support up to "+FK+" dimensions at the moment"),o.splice(FK));var s=_Gt(t,r,{name:"dimensions",layout:i,handleItemDefaults:AGt}),l=TGt(t,r,n,i,a);yGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),wGt(r,s,"values",l);var u=Mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Mx.coerceFont(a,"labelfont",u),Mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),Mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var hUe=ye((K_r,fUe)=>{"use strict";var SGt=Dr().isArrayOrTypedArray,zK=tc(),MGt=iy().wrap;fUe.exports=function(t,r){var n,i;return zK.hasColorscale(r,"line")&&SGt(r.line.color)?(n=r.line.color,i=zK.extractOpts(r.line).colorscale,zK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=EGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),MGt({lineColor:n,cscale:i})};function EGt(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(dUe[h]!==void 0)return dUe[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,vUe,dUe,pUe=gu(()=>{OK=Att(TX(),1),vUe=kGt,dUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Uk,qK=gu(()=>{Uk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Gz,gUe=gu(()=>{qK();Gz={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 yUe={};mee(yUe,{default:()=>mUe});function mUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=vUe(e);if(!i.space)return[];let a=i.space[0]==="h"?Gz.min:Uk.min,o=i.space[0]==="h"?Gz.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=Gz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var _Ue=gu(()=>{pUe();qK();gUe()});var BK=ye(Hz=>{"use strict";var CGt=Dr().isTypedArray;Hz.convertTypedArray=function(e){return CGt(e)?Array.prototype.slice.call(e):e};Hz.isOrdinal=function(e){return!!e.tickvals};Hz.isVisible=function(e){return e.visible||!("visible"in e)}});var CUe=ye((axr,kUe)=>{"use strict";var LGt=["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(` `),PGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Uk=Bk().maxDimensionCount,SUe=Dr(),xUe=1e-6,jz=2048,IGt=new Uint8Array(4),bUe=new Uint8Array(4),wUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function RGt(e){e.read({x:0,y:0,width:1,height:1,data:IGt})}function MUe(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 DGt(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],MUe(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 OGt(e,t,r){for(var n=new Array(e*(Uk+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,U=z);A===0&&MUe(i,0,0,u.canvasWidth,u.canvasHeight);var j=E(r);for(z=0;z{"use strict";var qd=Oa(),p1=Dr(),UK=p1.isArrayOrTypedArray,FUe=p1.numberFormat,zUe=(_Ue(),pb(yUe)).default,OUe=ho(),VGt=p1.strRotate,ny=p1.strTranslate,GGt=Zl(),Wz=So(),LUe=tc(),HK=iy(),ig=HK.keyFun,ay=HK.repeat,qUe=HK.unwrap,S5=BK(),Dl=Bk(),BUe=DK(),HGt=CUe();function PUe(e,t,r){return p1.aggNums(e,null,t,r)}function NUe(e,t){return jK(PUe(Math.min,e,t),PUe(Math.max,e,t))}function Xz(e){var t=e.range;return t?jK(t[0],t[1]):NUe(e.values,e._length)}function jK(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 jGt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function WGt(e,t,r,n,i){var a=Xz(r);return n?qd.scale.ordinal().domain(n.map(jGt(FUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):qd.scale.linear().domain(a).range([e-t,t])}function XGt(e,t){return qd.scale.linear().range([t,e-t])}function ZGt(e,t){return qd.scale.linear().domain(Xz(e)).range([t,1-t])}function YGt(e){if(e.tickvals){var t=Xz(e);return qd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function KGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=zUe(a[1]);return qd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return qd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function GK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function JGt(e,t,r){var n=qUe(t),i=n.trace,a=S5.convertTypedArray(n.lineColor),o=i.line,s={color:zUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=LUe.extractOpts(o),u=l.reversescale?LUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,_=i.labelfont,b=i.tickfont,p=i.rangefont,k=p1.extendDeepNoArrays({},o,{color:a.map(qd.scale.linear().domain(Xz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Dl.blockLineCount,canvasOverdrag:Dl.overdrag*Dl.canvasPixelRatio}),E=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=E,C=T;return{key:r,colCount:f.filter(S5.isVisible).length,dimensions:f,tickDistance:Dl.tickDistance,unitToColor:KGt(u),lines:k,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:_,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 $Gt(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=XGt(i,Dl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(S5.isVisible).map(function(h,d){var v=ZGt(h,l),_=f[h.label];f[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),p=h.constraintrange,k=p&&p.length;k&&!UK(p[0])&&(p=[p]);var E=k?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],T=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var U=GK(O);!e.contextShown()&&U?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(O.contextLayer&&O.contextLayer.render(O.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 M(O,U){return{val:O,text:C[U]}}function g(O,U){return O.val-U.val}if(UK(x)&&x.length){p1.isTypedArray(x)&&(x=Array.from(x)),C=h.ticktext,!UK(C)||!C.length?C=x.map(FUe(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=U||N>=G)return;var H=z.lineLayer.readPixel(j,G-1-N),re=H[3]!==0,oe=re?H[2]+256*(H[1]+256*H[0]):null,_e={x:j,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),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 ny(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Dl.cn.parcoordsControlView).data(ay,ig);p.enter().append("g").classed(Dl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return ny(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){VK(k,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=HGt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),k.attr("transform",function(z){return ny(z.xScale(z.xIndex),0)}),k.call(qd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Dl.overdrag,Math.min(z.model.width+Dl.overdrag,qd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=z===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),VK(k,O,u),k.filter(function(U){return Math.abs(z.xIndex-U.xIndex)!==0}).attr("transform",function(U){return ny(U.xScale(U.xIndex),0)}),qd.select(this).attr("transform",ny(z.x,0)),k.each(function(U,G,Z){Z===z.parent.key&&(O.dimensions[G]=U)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!GK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,VK(k,O,u),qd.select(this).attr("transform",function(U){return ny(U.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!GK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+Dl.cn.axisOverlays).data(ay,ig);E.enter().append("g").classed(Dl.cn.axisOverlays,!0),E.selectAll("."+Dl.cn.axis).remove();var T=E.selectAll("."+Dl.cn.axis).data(ay,ig);T.enter().append("g").classed(Dl.cn.axis,!0),T.each(function(z){var O=z.model.height/z.model.tickDistance,U=z.domainScale,G=U.domain();qd.select(this).call(qd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return S5.isOrdinal(z)?Z:UUe(z.model.dimensions[z.visibleIndex],Z)}).scale(U)),Wz.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=E.selectAll("."+Dl.cn.axisHeading).data(ay,ig);L.enter().append("g").classed(Dl.cn.axisHeading,!0);var x=L.selectAll("."+Dl.cn.axisTitle).data(ay,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 O=qd.select(this);Wz.font(O,z.model.labelFont),GGt.convertToTspans(O,t)}).attr("transform",function(z){var O=RUe(z.model.labelAngle,z.model.labelSide),U=Dl.axisTitleOffset;return(O.dir>0?"":ny(0,2*U+z.model.height))+VGt(O.degrees)+ny(-U*O.dx,-U*O.dy)}).attr("text-anchor",function(z){var O=RUe(z.model.labelAngle,z.model.labelSide),U=Math.abs(O.dx),G=Math.abs(O.dy);return 2*U>G?O.dir*O.dx<0?"start":"end":"middle"});var C=E.selectAll("."+Dl.cn.axisExtent).data(ay,ig);C.enter().append("g").classed(Dl.cn.axisExtent,!0);var M=C.selectAll("."+Dl.cn.axisExtentTop).data(ay,ig);M.enter().append("g").classed(Dl.cn.axisExtentTop,!0),M.attr("transform",ny(0,-Dl.axisExtentOffset));var g=M.selectAll("."+Dl.cn.axisExtentTopText).data(ay,ig);g.enter().append("text").classed(Dl.cn.axisExtentTopText,!0).call(IUe),g.text(function(z){return DUe(z,!0)}).each(function(z){Wz.font(qd.select(this),z.model.rangeFont)});var P=C.selectAll("."+Dl.cn.axisExtentBottom).data(ay,ig);P.enter().append("g").classed(Dl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return ny(0,z.model.height+Dl.axisExtentOffset)});var A=P.selectAll("."+Dl.cn.axisExtentBottomText).data(ay,ig);A.enter().append("text").classed(Dl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(IUe),A.text(function(z){return DUe(z,!1)}).each(function(z){Wz.font(qd.select(this),z.model.rangeFont)}),BUe.ensureAxisBrush(E,c,t)}});var XK=ye((WK,XUe)=>{"use strict";var tHt=GUe(),rHt=Lz(),HUe=BK().isVisible,WUe={};function jUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function iHt(e,t){return function(n,i){return jUe(e,t,n)-jUe(e,t,i)}}var WK=XUe.exports=function(t,r){var n=t._fullLayout,i=rHt(t,[],WUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,_){var b=v[0].trace;s[_]=b.index;var p=l[_]=b.index;a[_]=t.data[p].dimensions,o[_]=t.data[p].dimensions.slice()});var c=function(v,_,b){var p=o[v][_],k=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",T=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(T[E]===void 0){var L=p.constraintrange;T[E]=L||null}var x=t._fullData[s[v]].dimensions[_];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[E]=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,_){var b=iHt(_,o[v].filter(HUe));a[v].sort(b),o[v].filter(function(p){return!HUe(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]]])};tHt(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})}};WK.reglPrecompiled=WUe});var YUe=ye(Vk=>{"use strict";var ZUe=Oa(),nHt=Id().getModuleCalcData,aHt=XK(),oHt=Wp();Vk.name="parcoords";Vk.plot=function(e){var t=nHt(e.calcdata,"parcoords")[0];t.length&&aHt(e,t)};Vk.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())};Vk.toSVG=function(e){var t=e._fullLayout._glimages,r=ZUe.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:oHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){ZUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var JUe=ye((lxr,KUe)=>{"use strict";KUe.exports={attributes:PK(),supplyDefaults:cUe(),calc:hUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:YUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var eVe=ye((uxr,QUe)=>{"use strict";var $Ue=JUe();$Ue.plot=XK();QUe.exports=$Ue});var rVe=ye((cxr,tVe)=>{"use strict";tVe.exports=eVe()});var ZK=ye((fxr,sVe)=>{"use strict";var nVe=Ao().extendFlat,sHt=Gl(),iVe=ec(),lHt=Tu(),{hovertemplateAttrs:aVe,templatefallbackAttrs:oVe}=Ll(),uHt=Cc().attributes,cHt=nVe({editType:"calc"},lHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:aVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:oVe({editType:"plot"})});sVe.exports={domain:uHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:nVe({},sHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:aVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:oVe({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:iVe({editType:"calc"}),tickfont:iVe({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:cHt,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 cVe=ye((hxr,uVe)=>{"use strict";var M5=Dr(),fHt=pv().hasColorscale,hHt=td(),dHt=Cc().defaults,vHt=Zd(),lVe=ZK(),pHt=Iz(),gHt=vv().isTypedArraySpec;function mHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(fHt(e,"line")&&M5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),hHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function yHt(e,t){function r(u,c){return M5.coerce(e,t,lVe.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=M5.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")}}uVe.exports=function(t,r,n,i){function a(u,c){return M5.coerce(t,r,lVe,u,c)}var o=vHt(t,r,{name:"dimensions",handleItemDefaults:yHt}),s=mHt(t,r,n,i,a);dHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),pHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;M5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),M5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var hVe=ye((dxr,fVe)=>{"use strict";var _Ht=iy().wrap,xHt=pv().hasColorscale,bHt=gv(),wHt=tq(),THt=So(),Gk=Dr(),AHt=Eo();fVe.exports=function(t,r){var n=Gk.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=wHt(g.values);for(var A=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var bVe=ye((vxr,xVe)=>{"use strict";var Fl=Oa(),FHt=(H2(),pb(G2)).interpolateNumber,zHt=ZP(),Wk=vf(),Ex=Dr(),Hk=Ex.strTranslate,dVe=So(),YK=fd(),OHt=Zl();function qHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(QHt.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 Hk(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);$K(f),c.attr("d",function(k){return k.svgD}),f.empty()||c.sort(KK),c.exit().remove(),c.on("mouseover",BHt).on("mouseout",NHt).on("click",UHt),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 Hk(k.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(k){return k.categories},g1),_=v.enter().append("g").attr("class","category");v.attr("transform",function(k){return Hk(0,k.y)}),_.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}),pVe(_);var b=v.selectAll("rect.bandrect").data(function(k){return k.bands},g1);b.each(function(){Ex.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"}),eJ(p),b.exit().remove(),_.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(k){return jk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return jk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){dVe.font(Fl.select(this),k.parcatsViewModel.categorylabelfont),OHt.convertToTspans(Fl.select(this),t)}),_.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,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){dVe.font(Fl.select(this),k.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",ZHt).on("mouseout",YHt),v.exit().remove(),d.call(Fl.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",KHt).on("drag",JHt).on("dragend",$Ht)),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()}xVe.exports=function(e,t,r,n){qHt(r,e,n,t)};function g1(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 KK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Fl.mouse(i)[0];Wk.loneHover({trace:a,x:v-s.left+l.left,y:_-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,_=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:_,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 E=k.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,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:_,probability:b}]}}function WHt(e,t,r){var n=[];return Fl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(gVe(e,t,i))}),n}function XHt(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,_=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 E=b/_,T=b/k,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:E.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 M=C.join("
"),g=YK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,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:_,probability:E,categorycount:p,colorcount:k,bandcolorcount:b}]}}function ZHt(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"?(jHt(o),rJ(o,"plotly_hover",Fl.event)):(HHt(o),tJ(o,"plotly_hover",Fl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=gVe(r,i,o):a==="color"?s=XHt(r,i,o):a==="dimension"&&(s=WHt(r,i,o)),s&&Wk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function YHt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&($K(t.pathSelection),pVe(t.dimensionSelection.selectAll("g.category")),eJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Wk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(KK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?rJ(n,"plotly_unhover",Fl.event):tJ(n,"plotly_unhover",Fl.event)}}function KHt(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,Ex.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}nJ(e.parcatsViewModel),iJ(e.parcatsViewModel),_Ve(e.parcatsViewModel),yVe(e.parcatsViewModel)}}function $Ht(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Fl.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"?rJ(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent):tJ(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,nJ(e.parcatsViewModel),iJ(e.parcatsViewModel);var f=Fl.transition().duration(300).ease("cubic-in-out");f.each(function(){_Ve(e.parcatsViewModel,!0),yVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&zHt.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 iJ(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var U=O.categoryInds.map(function(Z,j){return i[j][Z]}),G=o.map(function(Z){return U[Z]});return G}u.sort(function(O,U){var G=f(O),Z=f(U);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(U.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,U){return O+U}),_=0;_0?p=v*(b.count/d):p=0;for(var k=new Array(n.length),E=0;E1?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),_,b,p,k,E,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}),E=0;E0?_=b.count/d*v:_=0,p={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+_+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 aJ=ye((pxr,wVe)=>{"use strict";var tjt=bVe();wVe.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 AVe=ye(Yz=>{"use strict";var rjt=Id().getModuleCalcData,ijt=aJ(),TVe="parcats";Yz.name=TVe;Yz.plot=function(e,t,r,n){var i=rjt(e.calcdata,TVe);if(i.length){var a=i[0];ijt(e,a,r,n)}};Yz.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 MVe=ye((mxr,SVe)=>{"use strict";SVe.exports={attributes:ZK(),supplyDefaults:cVe(),calc:hVe(),plot:aJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:AVe(),categories:["noOpacity"],meta:{}}});var kVe=ye((yxr,EVe)=>{"use strict";EVe.exports=MVe()});var m1=ye((_xr,FVe)=>{"use strict";var njt=t_(),CVe="1.13.4",RVe='\xA9
OpenStreetMap contributors',LVe=['\xA9 Carto',RVe].join(" "),PVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),ajt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),DVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:RVe,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:LVe,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:LVe,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:PVe,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:PVe,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:ajt,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"}},IVe=njt(DVe);FVe.exports={requiredVersion:CVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:DVe,styleValuesNonMapbox:IVe,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@"+CVe+"."].join(` +`),Vk=Nk().maxDimensionCount,SUe=Dr(),xUe=1e-6,jz=2048,IGt=new Uint8Array(4),bUe=new Uint8Array(4),wUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function RGt(e){e.read({x:0,y:0,width:1,height:1,data:IGt})}function MUe(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 DGt(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],MUe(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 OGt(e,t,r){for(var n=new Array(e*(Vk+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,U=z);A===0&&MUe(i,0,0,u.canvasWidth,u.canvasHeight);var j=E(r);for(z=0;z{"use strict";var qd=Oa(),p1=Dr(),UK=p1.isArrayOrTypedArray,FUe=p1.numberFormat,zUe=(_Ue(),pb(yUe)).default,OUe=ho(),VGt=p1.strRotate,ny=p1.strTranslate,GGt=Zl(),Wz=So(),LUe=tc(),HK=iy(),ig=HK.keyFun,ay=HK.repeat,qUe=HK.unwrap,S5=BK(),Dl=Nk(),BUe=DK(),HGt=CUe();function PUe(e,t,r){return p1.aggNums(e,null,t,r)}function NUe(e,t){return jK(PUe(Math.min,e,t),PUe(Math.max,e,t))}function Xz(e){var t=e.range;return t?jK(t[0],t[1]):NUe(e.values,e._length)}function jK(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 jGt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function WGt(e,t,r,n,i){var a=Xz(r);return n?qd.scale.ordinal().domain(n.map(jGt(FUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):qd.scale.linear().domain(a).range([e-t,t])}function XGt(e,t){return qd.scale.linear().range([t,e-t])}function ZGt(e,t){return qd.scale.linear().domain(Xz(e)).range([t,1-t])}function YGt(e){if(e.tickvals){var t=Xz(e);return qd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function KGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=zUe(a[1]);return qd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return qd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function GK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function JGt(e,t,r){var n=qUe(t),i=n.trace,a=S5.convertTypedArray(n.lineColor),o=i.line,s={color:zUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=LUe.extractOpts(o),u=l.reversescale?LUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,_=i.labelfont,b=i.tickfont,p=i.rangefont,k=p1.extendDeepNoArrays({},o,{color:a.map(qd.scale.linear().domain(Xz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Dl.blockLineCount,canvasOverdrag:Dl.overdrag*Dl.canvasPixelRatio}),E=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=E,C=T;return{key:r,colCount:f.filter(S5.isVisible).length,dimensions:f,tickDistance:Dl.tickDistance,unitToColor:KGt(u),lines:k,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:_,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 $Gt(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=XGt(i,Dl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(S5.isVisible).map(function(h,d){var v=ZGt(h,l),_=f[h.label];f[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),p=h.constraintrange,k=p&&p.length;k&&!UK(p[0])&&(p=[p]);var E=k?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],T=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var U=GK(O);!e.contextShown()&&U?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(O.contextLayer&&O.contextLayer.render(O.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 M(O,U){return{val:O,text:C[U]}}function g(O,U){return O.val-U.val}if(UK(x)&&x.length){p1.isTypedArray(x)&&(x=Array.from(x)),C=h.ticktext,!UK(C)||!C.length?C=x.map(FUe(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=U||N>=G)return;var H=z.lineLayer.readPixel(j,G-1-N),re=H[3]!==0,oe=re?H[2]+256*(H[1]+256*H[0]):null,_e={x:j,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),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 ny(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Dl.cn.parcoordsControlView).data(ay,ig);p.enter().append("g").classed(Dl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return ny(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){VK(k,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=HGt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),k.attr("transform",function(z){return ny(z.xScale(z.xIndex),0)}),k.call(qd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Dl.overdrag,Math.min(z.model.width+Dl.overdrag,qd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=z===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),VK(k,O,u),k.filter(function(U){return Math.abs(z.xIndex-U.xIndex)!==0}).attr("transform",function(U){return ny(U.xScale(U.xIndex),0)}),qd.select(this).attr("transform",ny(z.x,0)),k.each(function(U,G,Z){Z===z.parent.key&&(O.dimensions[G]=U)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!GK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,VK(k,O,u),qd.select(this).attr("transform",function(U){return ny(U.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!GK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+Dl.cn.axisOverlays).data(ay,ig);E.enter().append("g").classed(Dl.cn.axisOverlays,!0),E.selectAll("."+Dl.cn.axis).remove();var T=E.selectAll("."+Dl.cn.axis).data(ay,ig);T.enter().append("g").classed(Dl.cn.axis,!0),T.each(function(z){var O=z.model.height/z.model.tickDistance,U=z.domainScale,G=U.domain();qd.select(this).call(qd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return S5.isOrdinal(z)?Z:UUe(z.model.dimensions[z.visibleIndex],Z)}).scale(U)),Wz.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=E.selectAll("."+Dl.cn.axisHeading).data(ay,ig);L.enter().append("g").classed(Dl.cn.axisHeading,!0);var x=L.selectAll("."+Dl.cn.axisTitle).data(ay,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 O=qd.select(this);Wz.font(O,z.model.labelFont),GGt.convertToTspans(O,t)}).attr("transform",function(z){var O=RUe(z.model.labelAngle,z.model.labelSide),U=Dl.axisTitleOffset;return(O.dir>0?"":ny(0,2*U+z.model.height))+VGt(O.degrees)+ny(-U*O.dx,-U*O.dy)}).attr("text-anchor",function(z){var O=RUe(z.model.labelAngle,z.model.labelSide),U=Math.abs(O.dx),G=Math.abs(O.dy);return 2*U>G?O.dir*O.dx<0?"start":"end":"middle"});var C=E.selectAll("."+Dl.cn.axisExtent).data(ay,ig);C.enter().append("g").classed(Dl.cn.axisExtent,!0);var M=C.selectAll("."+Dl.cn.axisExtentTop).data(ay,ig);M.enter().append("g").classed(Dl.cn.axisExtentTop,!0),M.attr("transform",ny(0,-Dl.axisExtentOffset));var g=M.selectAll("."+Dl.cn.axisExtentTopText).data(ay,ig);g.enter().append("text").classed(Dl.cn.axisExtentTopText,!0).call(IUe),g.text(function(z){return DUe(z,!0)}).each(function(z){Wz.font(qd.select(this),z.model.rangeFont)});var P=C.selectAll("."+Dl.cn.axisExtentBottom).data(ay,ig);P.enter().append("g").classed(Dl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return ny(0,z.model.height+Dl.axisExtentOffset)});var A=P.selectAll("."+Dl.cn.axisExtentBottomText).data(ay,ig);A.enter().append("text").classed(Dl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(IUe),A.text(function(z){return DUe(z,!1)}).each(function(z){Wz.font(qd.select(this),z.model.rangeFont)}),BUe.ensureAxisBrush(E,c,t)}});var XK=ye((WK,XUe)=>{"use strict";var tHt=GUe(),rHt=Lz(),HUe=BK().isVisible,WUe={};function jUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function iHt(e,t){return function(n,i){return jUe(e,t,n)-jUe(e,t,i)}}var WK=XUe.exports=function(t,r){var n=t._fullLayout,i=rHt(t,[],WUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,_){var b=v[0].trace;s[_]=b.index;var p=l[_]=b.index;a[_]=t.data[p].dimensions,o[_]=t.data[p].dimensions.slice()});var c=function(v,_,b){var p=o[v][_],k=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",T=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(T[E]===void 0){var L=p.constraintrange;T[E]=L||null}var x=t._fullData[s[v]].dimensions[_];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[E]=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,_){var b=iHt(_,o[v].filter(HUe));a[v].sort(b),o[v].filter(function(p){return!HUe(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]]])};tHt(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})}};WK.reglPrecompiled=WUe});var YUe=ye(Gk=>{"use strict";var ZUe=Oa(),nHt=Id().getModuleCalcData,aHt=XK(),oHt=Wp();Gk.name="parcoords";Gk.plot=function(e){var t=nHt(e.calcdata,"parcoords")[0];t.length&&aHt(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=ZUe.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:oHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){ZUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var JUe=ye((lxr,KUe)=>{"use strict";KUe.exports={attributes:PK(),supplyDefaults:cUe(),calc:hUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:YUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var eVe=ye((uxr,QUe)=>{"use strict";var $Ue=JUe();$Ue.plot=XK();QUe.exports=$Ue});var rVe=ye((cxr,tVe)=>{"use strict";tVe.exports=eVe()});var ZK=ye((fxr,sVe)=>{"use strict";var nVe=Ao().extendFlat,sHt=Gl(),iVe=ec(),lHt=Tu(),{hovertemplateAttrs:aVe,templatefallbackAttrs:oVe}=Ll(),uHt=Cc().attributes,cHt=nVe({editType:"calc"},lHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:aVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:oVe({editType:"plot"})});sVe.exports={domain:uHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:nVe({},sHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:aVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:oVe({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:iVe({editType:"calc"}),tickfont:iVe({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:cHt,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 cVe=ye((hxr,uVe)=>{"use strict";var M5=Dr(),fHt=pv().hasColorscale,hHt=td(),dHt=Cc().defaults,vHt=Zd(),lVe=ZK(),pHt=Iz(),gHt=vv().isTypedArraySpec;function mHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(fHt(e,"line")&&M5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),hHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function yHt(e,t){function r(u,c){return M5.coerce(e,t,lVe.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=M5.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")}}uVe.exports=function(t,r,n,i){function a(u,c){return M5.coerce(t,r,lVe,u,c)}var o=vHt(t,r,{name:"dimensions",handleItemDefaults:yHt}),s=mHt(t,r,n,i,a);dHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),pHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;M5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),M5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var hVe=ye((dxr,fVe)=>{"use strict";var _Ht=iy().wrap,xHt=pv().hasColorscale,bHt=gv(),wHt=tq(),THt=So(),Hk=Dr(),AHt=Eo();fVe.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=wHt(g.values);for(var A=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var bVe=ye((vxr,xVe)=>{"use strict";var Fl=Oa(),FHt=(H2(),pb(G2)).interpolateNumber,zHt=ZP(),Xk=vf(),Ex=Dr(),jk=Ex.strTranslate,dVe=So(),YK=fd(),OHt=Zl();function qHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(QHt.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);$K(f),c.attr("d",function(k){return k.svgD}),f.empty()||c.sort(KK),c.exit().remove(),c.on("mouseover",BHt).on("mouseout",NHt).on("click",UHt),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),_=v.enter().append("g").attr("class","category");v.attr("transform",function(k){return jk(0,k.y)}),_.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}),pVe(_);var b=v.selectAll("rect.bandrect").data(function(k){return k.bands},g1);b.each(function(){Ex.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"}),eJ(p),b.exit().remove(),_.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){dVe.font(Fl.select(this),k.parcatsViewModel.categorylabelfont),OHt.convertToTspans(Fl.select(this),t)}),_.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,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){dVe.font(Fl.select(this),k.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",ZHt).on("mouseout",YHt),v.exit().remove(),d.call(Fl.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",KHt).on("drag",JHt).on("dragend",$Ht)),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()}xVe.exports=function(e,t,r,n){qHt(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 KK(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:_-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,_=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:_,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 E=k.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,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:_,probability:b}]}}function WHt(e,t,r){var n=[];return Fl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(gVe(e,t,i))}),n}function XHt(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,_=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 E=b/_,T=b/k,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:E.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 M=C.join("
"),g=YK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,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:_,probability:E,categorycount:p,colorcount:k,bandcolorcount:b}]}}function ZHt(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"?(jHt(o),rJ(o,"plotly_hover",Fl.event)):(HHt(o),tJ(o,"plotly_hover",Fl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=gVe(r,i,o):a==="color"?s=XHt(r,i,o):a==="dimension"&&(s=WHt(r,i,o)),s&&Xk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function YHt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&($K(t.pathSelection),pVe(t.dimensionSelection.selectAll("g.category")),eJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Xk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(KK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?rJ(n,"plotly_unhover",Fl.event):tJ(n,"plotly_unhover",Fl.event)}}function KHt(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,Ex.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}nJ(e.parcatsViewModel),iJ(e.parcatsViewModel),_Ve(e.parcatsViewModel),yVe(e.parcatsViewModel)}}function $Ht(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Fl.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"?rJ(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent):tJ(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,nJ(e.parcatsViewModel),iJ(e.parcatsViewModel);var f=Fl.transition().duration(300).ease("cubic-in-out");f.each(function(){_Ve(e.parcatsViewModel,!0),yVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&zHt.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 iJ(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var U=O.categoryInds.map(function(Z,j){return i[j][Z]}),G=o.map(function(Z){return U[Z]});return G}u.sort(function(O,U){var G=f(O),Z=f(U);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(U.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,U){return O+U}),_=0;_0?p=v*(b.count/d):p=0;for(var k=new Array(n.length),E=0;E1?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),_,b,p,k,E,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}),E=0;E0?_=b.count/d*v:_=0,p={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+_+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 aJ=ye((pxr,wVe)=>{"use strict";var tjt=bVe();wVe.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 AVe=ye(Yz=>{"use strict";var rjt=Id().getModuleCalcData,ijt=aJ(),TVe="parcats";Yz.name=TVe;Yz.plot=function(e,t,r,n){var i=rjt(e.calcdata,TVe);if(i.length){var a=i[0];ijt(e,a,r,n)}};Yz.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 MVe=ye((mxr,SVe)=>{"use strict";SVe.exports={attributes:ZK(),supplyDefaults:cVe(),calc:hVe(),plot:aJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:AVe(),categories:["noOpacity"],meta:{}}});var kVe=ye((yxr,EVe)=>{"use strict";EVe.exports=MVe()});var m1=ye((_xr,FVe)=>{"use strict";var njt=t_(),CVe="1.13.4",RVe='\xA9 OpenStreetMap contributors',LVe=['\xA9 Carto',RVe].join(" "),PVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),ajt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),DVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:RVe,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:LVe,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:LVe,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:PVe,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:PVe,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:ajt,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"}},IVe=njt(DVe);FVe.exports={requiredVersion:CVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:DVe,styleValuesNonMapbox:IVe,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@"+CVe+"."].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:",IVe.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 Zk=ye((xxr,BVe)=>{"use strict";var zVe=Dr(),OVe=ka().defaultLine,ojt=Cc().attributes,sjt=ec(),ljt=pf().textposition,ujt=mc().overrideAll,cjt=vl().templatedArray,oJ=m1(),qVe=sjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});qVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var fjt=BVe.exports=ujt({_arrayAttrRegexps:[zVe.counterRegex("mapbox",".layers",!0)],domain:ojt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:oJ.styleValuesMapbox.concat(oJ.styleValuesNonMapbox),dflt:oJ.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:cjt("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:OVe},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:OVe}},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:qVe,textposition:zVe.extendFlat({},ljt,{arrayOk:!1})}})},"plot","from-root");fjt.uirevision={valType:"any",editType:"none"}});var Kz=ye((bxr,GVe)=>{"use strict";var{hovertemplateAttrs:hjt,texttemplateAttrs:djt,templatefallbackAttrs:NVe}=Ll(),vjt=Pg(),Yk=ew(),E5=pf(),UVe=Zk(),pjt=Gl(),gjt=Tu(),fw=Ao().extendFlat,mjt=mc().overrideAll,yjt=Zk(),VVe=Yk.line,k5=Yk.marker;GVe.exports=mjt({lon:Yk.lon,lat:Yk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:fw({},yjt.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:fw({},k5.opacity,{dflt:1})},mode:fw({},E5.mode,{dflt:"markers"}),text:fw({},E5.text,{}),texttemplate:djt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:NVe({editType:"plot"}),hovertext:fw({},E5.hovertext,{}),line:{color:VVe.color,width:VVe.width},connectgaps:E5.connectgaps,marker:fw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:k5.opacity,size:k5.size,sizeref:k5.sizeref,sizemin:k5.sizemin,sizemode:k5.sizemode},gjt("marker")),fill:Yk.fill,fillcolor:vjt(),textfont:UVe.layers.symbol.textfont,textposition:UVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:E5.selected.marker},unselected:{marker:E5.unselected.marker},hoverinfo:fw({},pjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hjt(),hovertemplatefallback:NVe()},"calc","nested")});var sJ=ye((wxr,HVe)=>{"use strict";var _jt=["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"];HVe.exports={isSupportedFont:function(e){return _jt.indexOf(e)!==-1}}});var XVe=ye((Txr,WVe)=>{"use strict";var Kk=Dr(),lJ=Ru(),xjt=$p(),bjt=D0(),wjt=F0(),Tjt=Fg(),jVe=Kz(),Ajt=sJ().isSupportedFont;WVe.exports=function(t,r,n,i){function a(p,k){return Kk.coerce(t,r,jVe,p,k)}function o(p,k){return Kk.coerce2(t,r,jVe,p,k)}var s=Sjt(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"),lJ.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"&&(Kk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),Kk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}lJ.hasLines(r)&&(bjt(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,_=a("cluster.enabled",v);if(_||lJ.hasText(r)){var b=i.font.family;wjt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ajt(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"&&Tjt(t,r,n,a),Kk.coerceSelectionMarkerOpacity(r,a)};function Sjt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var uJ=ye((Axr,YVe)=>{"use strict";var ZVe=ho();YVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=ZVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=ZVe.tickText(o,o.c2l(s[1]),!0).text,i}});var cJ=ye((Sxr,JVe)=>{"use strict";var KVe=Dr();JVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=KVe.isArrayOrTypedArray(r)?KVe.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 iGe=ye((Mxr,rGe)=>{"use strict";var eGe=Eo(),av=Dr(),Mjt=fs().BADNUM,$z=cx(),$Ve=tc(),Ejt=So(),kjt=O3(),Qz=Ru(),Cjt=sJ().isSupportedFont,Ljt=cJ(),Pjt=ip().appendArrayPointValue,Ijt=Zl().NEWLINES,Rjt=Zl().BR_TAG_ALL;rGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=Qz.hasLines(n),s=Qz.hasMarkers(n),l=Qz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Jz("fill"),d=Jz("line"),v=Jz("circle"),_=Jz("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=$z.calcTraceToLineCoords(r)),a&&(h.geojson=$z.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=$z.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=Djt(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":hJ(n.cluster.color,n.cluster.step),"circle-radius":hJ(n.cluster.size,n.cluster.step),"circle-opacity":hJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":QVe(n),"text-size":12}}),av.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)&&(_.geojson=Fjt(r,t),av.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,T=Ljt(n.textposition,E);av.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":QVe(n)}),av.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Jz(e){return{type:e,geojson:$z.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Djt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&($Ve.hasColorscale(t,"marker")?c=$Ve.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=kjt(t));var h;o&&(h=function(E){var T=eGe(E)?+av.constrain(E,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"),Cjt(s)||(s=r);var l=s.split(", ");return l}});var sGe=ye((Exr,oGe)=>{"use strict";var zjt=Dr(),nGe=iGe(),C5=m1().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function aGe(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:C5+t+"-fill",line:C5+t+"-line",circle:C5+t+"-circle",symbol:C5+t+"-symbol",cluster:C5+t+"-cluster",clusterCount:C5+t+"-cluster-count"},this.below=null}var Jk=aGe.prototype;Jk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&zjt.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)};Jk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Jk.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])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var T=ng.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};oGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new aGe(t,n.uid,i,a),s=nGe(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 Ojt=vf(),dJ=Dr(),qjt=gT(),Bjt=dJ.fillText,Njt=fs().BADNUM,Ujt=m1().traceLayerPrefix;function Vjt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=Ujt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===Njt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=dJ.modHalf(g[0],360),A=g[1],z=s.project([P,A]),O=z.x-a.c2p([v,A]),U=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+U*U)-G,1-3/G)}if(Ojt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[dJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+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=qjt(i,b),e.extraText=lGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function lGe(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)&&Bjt(t,e,u),u.join("
")}uGe.exports={hoverPoints:Vjt,getExtraText:lGe}});var fGe=ye((Cxr,cGe)=>{"use strict";cGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var dGe=ye((Lxr,hGe)=>{"use strict";var Gjt=Dr(),Hjt=Ru(),jjt=fs().BADNUM;hGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!Hjt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof vJ=="object"&&typeof pJ!="undefined"?pJ.exports=t():(e=e||self,e.mapboxgl=t())})(vJ,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(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,V){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(V-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=V,this.p2x=I,this.p2y=V}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,V,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)V)return V;for(;Iae?I=$:V=$,$=(V-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},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(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),V=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=V,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),V=Math.sin(m),$=y.x+I*(this.x-y.x)-V*(this.y-y.y),ae=y.y+V*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function _(m,y,I,V){var $=new s(m,y,I,V);return function(ae){return $.solve(ae)}}var b=_(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function k(m,y,I){var V=I-y,$=((m-y)%V+V)%V+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var V=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,ze){y(he,function(rt,gt){rt&&(ae=rt),$[ze]=gt,--V===0&&I(ae,$)})})}function T(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var V in m)V in y||I.push(V);return I}function x(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var V=0,$=y;V<$.length;V+=1){var ae=$[V];for(var he in ae)m[he]=ae[he]}return m}function C(m,y){for(var I={},V=0;V>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function A(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function U(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var V={};for(var $ in m)V[$]=y.call(I||this,m[$],$,m);return V}function Z(m,y,I){var V={};for(var $ in m)y.call(I||this,m[$],$,m)&&(V[$]=m[$]);return V}function j(m){return Array.isArray(m)?m.map(j):typeof m=="object"&&m?G(m,j):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var H={};function re(m){H[m]||(typeof console!="undefined"&&console.warn(m),H[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,V=m.length,$=V-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,ze){var rt=he||ze;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var V=parseInt(I["max-age"],10);isNaN(V)?delete I["max-age"]:I["max-age"]=V}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Ee(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function Be(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),me=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,De=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,je,lt={now:Pe,frame:function(y){var I=me(y);return{cancel:function(){return De(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var V=f.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=y.width,V.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(je==null&&(je=f.matchMedia("(prefers-reduced-motion: reduce)")),je.matches):!1}},pt={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},Vt={supported:!1,testSupport:$t},ot,ut=!1,Wt,Nt=!1;f.document&&(Wt=f.document.createElement("img"),Wt.onload=function(){ot&&sr(ot),ot=null,Nt=!0},Wt.onerror=function(){ut=!0,ot=null},Wt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){ut||!Wt||(Nt?sr(m):ot=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Wt),m.isContextLost())return;Vt.supported=!0}catch(I){}m.deleteTexture(y),ut=!0}var Tr="01";function fr(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",V=0;V<10;V++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,Tr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var $e=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};$e.prototype._createSkuToken=function(){var y=fr();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},$e.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},$e.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},$e.prototype.normalizeStyleURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeGlyphsURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeSourceURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeSpriteURL=function(y,I,V,$){var ae=er(y);return St(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+V,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+V,lr(ae))},$e.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!St(y))return y;var V=er(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=lt.devicePixelRatio>=2||I===512?"@2x":"",ze=Vt.supported?".webp":"$1";V.path=V.path.replace($,""+he+ze),V.path=V.path.replace(ae,"/"),V.path="/v4"+V.path;var rt=this._customAccessToken||It(V.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,rt)},$e.prototype.canonicalizeTileURL=function(y,I){var V="/v4/",$=/\.[\w]+$/,ae=er(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(V,"");var ze=ae.params;return I&&(ze=ze.filter(function(rt){return!rt.match(/^access_token=/)})),ze.length&&(he+="?"+ze.join("&")),he},$e.prototype.canonicalizeTileset=function(y,I){for(var V=I?St(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+V);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function St(m){return m.indexOf("mapbox:")===0}var Qt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Gt(m){return Qt.test(m)}function _t(m){return m.indexOf("sku=")>0&&Gt(m)}function It(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ti.prototype.processRequests=function(y){},ti.prototype.postEvent=function(y,I,V,$){var ae=this;if(pt.EVENTS_URL){var he=er(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var ze={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Tr,userId:this.anonId},rt=I?x(ze,I):ze,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=Qr(gt,function(Et){ae.pendingRequest=null,V(Et),ae.saveEventData(),ae.processRequests($)})}},ti.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Br=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(V,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(ze){return St(ze)||Gt(ze)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,ze=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(ze,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},V))}},y}(ti),Vr=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(V,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(ae){return St(ae)||Gt(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Lr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,ze=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),ze=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Et=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);ze=ze||or>=1||or<-1||gt.getDate()!==Et.getDate()}else ze=!0;if(!ze)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},V)}},y}(ti),dt=new Vr,Ge=dt.postTurnstileEvent.bind(dt),Je=new Br,We=Je.postMapLoadEvent.bind(Je),tt="mapbox-tiles",xt=500,Ie=50,xe=1e3*60*7,ke;function vt(){f.caches&&!ke&&(ke=f.caches.open(tt))}var ir;function ar(m,y){if(ir===void 0)try{new Response(new ReadableStream),ir=!0}catch(I){ir=!1}ir?y(m.body):m.blob().then(y)}function vr(m,y,I){if(vt(),!!ke){var V={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,ze){return V.headers.set(ze,he)});var $=ge(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(V.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var di=1/0;function ji(m){di++,di>Ie&&(m.getActor().send("enforceCacheSizeLimit",xt),di=0)}function In(m){vt(),ke&&ke.then(function(y){y.keys().then(function(I){for(var V=0;V=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new la(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!wt(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return rr(m,y);if(Le()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return nr(m,y)},Xr=function(m,y){return Er(x(m,{type:"json"}),y)},ri=function(m,y){return Er(x(m,{type:"arrayBuffer"}),y)},Qr=function(m,y){return Er(x(m,{method:"POST"}),y)};function Oi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var $i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function tn(m,y,I,V){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=$i})},$.onerror=function(){return y(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(m)],{type:"image/png"});$.cacheControl=I,$.expires=V,$.src=m.byteLength?ae.createObjectURL(he):$i}function fn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(V){y(null,V)}).catch(function(V){y(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 yn,Sn,Ba=function(){yn=[],Sn=0};Ba();var ua=function(m,y){if(Vt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Sn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Sn++;var V=!1,$=function(){if(!V)for(V=!0,Sn--;yn.length&&Sn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,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"}},jn={"*":{type:"source"}},Mt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],kr={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:"*"}},vi={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"}},An={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"}}},Mn={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"}}},Li={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"}},$n={"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:jn,source:Mt,source_vector:kr,source_raster:Jr,source_raster_dem:vi,source_geojson:hn,source_video:An,source_image:Mn,layer:Li,layout:_n,layout_background:ya,layout_fill:$n,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(y,I,V,$){this.message=(y?y+": ":"")+V,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function Ol(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var V=0,$=y;V<$.length;V+=1){var ae=$[V];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Kl(m){if(Array.isArray(m))return m.map(Kl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Kl(m[I]);return y}return xo(m)}var Ns=function(m){function y(I,V){m.call(this,V),this.message=V,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var V=0,$=I;V<$.length;V+=1){var ae=$[V],he=ae[0],ze=ae[1];this.bindings[he]=ze}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},ql={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Vf={kind:"collator"},pl={kind:"formatted"},Zc={kind:"resolvedImage"};function Jl(m,y){return{kind:"array",itemType:m,N:y}}function Os(m){if(m.kind==="array"){var y=Os(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,ql,pl,Pc,Jl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,V=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?V(parseFloat(gt)/100*255):V(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function ze(gt,Et,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Et-gt)*or*6:or*2<1?Et:or*3<2?gt+(Et-gt)*(2/3-or)*6:gt}function rt(gt){var Et=gt.replace(/ /g,"").toLowerCase();if(Et in I)return I[Et].slice();if(Et[0]==="#"){if(Et.length===4){var or=parseInt(Et.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Et.length===7){var or=parseInt(Et.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Et.indexOf("("),pr=Et.indexOf(")");if(_r!==-1&&pr+1===Et.length){var Fr=Et.substr(0,_r),oi=Et.substr(_r+1,pr-(_r+1)).split(","),Hi=1;switch(Fr){case"rgba":if(oi.length!==4)return null;Hi=he(oi.pop());case"rgb":return oi.length!==3?null:[ae(oi[0]),ae(oi[1]),ae(oi[2]),Hi];case"hsla":if(oi.length!==4)return null;Hi=he(oi.pop());case"hsl":if(oi.length!==3)return null;var Ai=(parseFloat(oi[0])%360+360)%360/360,bn=he(oi[1]),nn=he(oi[2]),xn=nn<=.5?nn*(bn+1):nn+bn-nn*bn,Pn=nn*2-xn;return[V(ze(Pn,xn,Ai+1/3)*255),V(ze(Pn,xn,Ai)*255),V(ze(Pn,xn,Ai-1/3)*255),Hi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),Lf=jh.parseCSSColor,cs=function(y,I,V,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=V,this.a=$};cs.parse=function(y){if(y){if(y instanceof cs)return y;if(typeof y=="string"){var I=Lf(y);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 y=this.toArray(),I=y[0],V=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(V)+","+Math.round($)+","+ae+")"},cs.prototype.toArray=function(){var y=this,I=y.r,V=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,V*255/ae,$*255/ae,ae]},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 nf=function(y,I,V){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Gf=function(y,I,V,$,ae){this.text=y,this.image=I,this.scale=V,this.fontStack=$,this.textColor=ae},$l=function(y){this.sections=y};$l.fromString=function(y){return new $l([new Gf(y,null,null,null,null)])},$l.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},$l.factory=function(y){return y instanceof $l?y:$l.fromString(y)},$l.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},$l.prototype.serialize=function(){for(var y=["format"],I=0,V=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof V=="number"?[m,y,I,V]:[m,y,I];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 ["+[m,y,I,V].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof cs)return!0;if(m instanceof nf)return!0;if(m instanceof $l)return!0;if(m instanceof fl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var ze=y[1];if(typeof ze!="string"||!(ze in uc)||ze==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[ze],V++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],V++}$=Jl(he,rt)}else $=uc[ae];for(var gt=[];V1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=pl,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var V=y[1];if(!Array.isArray(V)&&typeof V=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var ze=y[he];if(ae&&typeof ze=="object"&&!Array.isArray(ze)){ae=!1;var rt=null;if(ze["font-scale"]&&(rt=I.parse(ze["font-scale"],1,aa),!rt))return null;var gt=null;if(ze["text-font"]&&(gt=I.parse(ze["text-font"],1,Jl(Oo)),!gt))return null;var Et=null;if(ze["text-color"]&&(Et=I.parse(ze["text-color"],1,ql),!Et))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Et}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var pr=_r.type.kind;if(pr!=="string"&&pr!=="value"&&pr!=="null"&&pr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(V){var $=V.content.evaluate(y);return Es($)===Zc?new Gf("",$,null,null,null):new Gf(Hs($),null,V.scale?V.scale.evaluate(y):null,V.font?V.font.evaluate(y).join(","):null,V.textColor?V.textColor.evaluate(y):null)};return new $l(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,V=this.sections;I-1),V},qs.prototype.eachChild=function(y){y(this.input)},qs.prototype.outputDefined=function(){return!1},qs.prototype.serialize=function(){return["image",this.input.serialize()]};var od={"to-boolean":qo,"to-color":ql,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var V=y[0];if((V==="to-boolean"||V==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=od[V],ae=[],he=1;he4?V="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":V=lc(I[0],I[1],I[2],I[3]),!V))return new cs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new ps(V||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Et=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function Ah(m,y){var I=Ic(m[0]),V=yf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*bl),Math.round(V*$*bl)]}function Qf(m,y,I){var V=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return V*he-ae*$===0&&V*ae<=0&&$*he<=0}function _f(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,V=0,$=y.length;V<$;V++)for(var ae=y[V],he=0,ze=ae.length;he0&&or<0||Et<0&&or>0}function jf(m,y,I,V){var $=[y[0]-m[0],y[1]-m[1]],ae=[V[0]-I[0],V[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,V)&&ju(I,V,m,y))}function cc(m,y,I){for(var V=0,$=I;V<$.length;V+=1)for(var ae=$[V],he=0;heI[2]){var $=V*.5,ae=m[0]-I[0]>$?-V:I[0]-m[0]>$?V:0;ae===0&&(ae=m[0]-I[2]>$?-V:I[2]-m[0]>$?V:0),m[0]+=ae}Hf(y,m)}function Wf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Wh(m,y,I,V){for(var $=Math.pow(2,V.z)*bl,ae=[V.x*bl,V.y*bl],he=[],ze=0,rt=m;ze=0)return!1;var I=!0;return m.eachChild(function(V){I&&!Eu(V,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var V=y[1];return I.scope.has(V)?new Dc(V,I.scope.get(V)):I.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,V,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=V};ks.prototype.parse=function(y,I,V,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,V,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function V(Et,or,_r){return _r==="assert"?new xl(or,[Et]):_r==="coerce"?new Po(or,[Et]):Et}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[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 ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var ze=this.expectedType,rt=he.type;if((ze.kind==="string"||ze.kind==="number"||ze.kind==="boolean"||ze.kind==="object"||ze.kind==="array")&&rt.kind==="value")he=V(he,ze,I.typeAnnotation||"assert");else if((ze.kind==="color"||ze.kind==="formatted"||ze.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=V(he,ze,I.typeAnnotation||"coerce");else if(this.checkSubtype(ze,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Ko;try{he=new Go(he.type,he.evaluate(gt))}catch(Et){return this.error(Et.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,V){var $=typeof y=="number"?this.path.concat(y):this.path,ae=V?this.scope.concat(V):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],V=arguments.length-1;V-- >0;)I[V]=arguments[V+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Ns($,y))},ks.prototype.checkSubtype=function(y,I){var V=oc(y,I);return V&&this.error(V),V};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof xl,I=!0;return m.eachChild(function(V){y?I=I&&bc(V):I=I&&V instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(m,y){for(var I=m.length-1,V=0,$=I,ae=0,he,ze;V<=$;)if(ae=Math.floor((V+$)/2),he=m[ae],ze=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new ps("Input is not a number.");return 0}var _u=function(y,I,V){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=V;$=ze)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Et,ae);if(!or)return null;ae=ae||or.type,$.push([ze,or])}return new _u(ae,V,$)},_u.prototype.evaluate=function(y){var I=this.labels,V=this.outputs;if(I.length===1)return V[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return V[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return V[ae-1].evaluate(y);var he=hu(I,$);return V[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,V=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function nl(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new cs(nl(m.r,y.r,I),nl(m.g,y.g,I),nl(m.b,y.b,I),nl(m.a,y.a,I))}function Mh(m,y,I){return m.map(function(V,$){return nl(V,y[$],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,Ou=3*Pf*Pf,bf=Pf*Pf*Pf,jl=Math.PI/180,lf=180/Math.PI;function Xh(m){return m>bf?Math.pow(m,1/3):m/Ou+xf}function If(m){return m>Pf?m*m*m:Ou*(m-xf)}function Cs(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function du(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function ku(m){var y=du(m.r),I=du(m.g),V=du(m.b),$=Xh((.4124564*y+.3575761*I+.1804375*V)/Fc),ae=Xh((.2126729*y+.7151522*I+.072175*V)/wc),he=Xh((.0193339*y+.119192*I+.9503041*V)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Xf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,V=isNaN(m.b)?y:y-m.b/200;return y=wc*If(y),I=Fc*If(I),V=bd*If(V),new cs(Cs(3.2404542*I-1.5371385*y-.4985314*V),Cs(-.969266*I+1.8760108*y+.041556*V),Cs(.0556434*I-.2040259*y+1.0572252*V),m.alpha)}function Us(m,y,I){return{l:nl(m.l,y.l,I),a:nl(m.a,y.a,I),b:nl(m.b,y.b,I),alpha:nl(m.alpha,y.alpha,I)}}function wf(m){var y=ku(m),I=y.l,V=y.a,$=y.b,ae=Math.atan2($,V)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(V*V+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,V=m.l;return Xf({l:V,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var V=y-m;return m+I*(V>180||V<-180?V-360*Math.round(V/360):V)}function Rf(m,y,I){return{h:Wu(m.h,y.h,I),c:nl(m.c,y.c,I),l:nl(m.l,y.l,I),alpha:nl(m.alpha,y.alpha,I)}}var Xu={forward:ku,reverse:Xf,interpolate:Us},uf={forward:wf,reverse:zc,interpolate:Rf},Zf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,V,$,ae){this.type=y,this.operator=I,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var he=0,ze=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Et=null;V==="interpolate-hcl"||V==="interpolate-lab"?Et=ql:I.expectedType&&I.expectedType.kind!=="value"&&(Et=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Hi=I.parse(pr,oi,Et);if(!Hi)return null;Et=Et||Hi.type,gt.push([_r,Hi])}return Et.kind!=="number"&&Et.kind!=="color"&&!(Et.kind==="array"&&Et.itemType.kind==="number"&&typeof Et.N=="number")?I.error("Type "+Os(Et)+" is not interpolatable."):new Wl(Et,V,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,V=this.outputs;if(I.length===1)return V[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return V[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return V[ae-1].evaluate(y);var he=hu(I,$),ze=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,ze,rt),Et=V[he].evaluate(y),or=V[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Et,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Et),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Et),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,V=this.outputs;I=V.length)throw new ps("Array index out of bounds: "+I+" > "+(V.length-1)+".");if(I!==Math.floor(I))throw new ps("Array index must be an integer, but found "+I+" instead.");return V[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};wl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!V||!$?null:Cf(V.type,[qo,Oo,aa,ac,Do])?new wl(V,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+Os(V.type)+" instead")},wl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),V=this.haystack.evaluate(y);if(!V)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 "+Os(Es(I))+" instead.");if(!sc(V,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+Os(Es(V))+" instead.");return V.indexOf(I)>=0},wl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(y,I,V){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=V};vu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!V||!$)return null;if(!Cf(V.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+Os(V.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new vu(V,$,ae):null}else return new vu(V,$)},vu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),V=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+Os(Es(I))+" instead.");if(!sc(V,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+Os(Es(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return V.indexOf(I,$)}return V.indexOf(I)},vu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,V,$,ae,he){this.inputType=y,this.type=I,this.input=V,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var V,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],ze=2;zeNumber.MAX_SAFE_INTEGER)return Et.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof pr=="number"&&Math.floor(pr)!==pr)return Et.error("Numeric branch labels must be integer values.");if(!V)V=Es(pr);else if(Et.checkSubtype(V,Es(pr)))return null;if(typeof ae[String(pr)]!="undefined")return Et.error("Branch labels must be unique.");ae[String(pr)]=he.length}var Fr=I.parse(gt,ze,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var oi=I.parse(y[1],1,Do);if(!oi)return null;var Hi=I.parse(y[y.length-1],y.length-1,$);return!Hi||oi.type.kind!=="value"&&I.concat(1).checkSubtype(V,oi.type)?null:new qc(V,$,oi,ae,he,Hi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),V=Es(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return V.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],ae={},he=0,ze=V;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!V||!$)return null;if(!Cf(V.type,[Jl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+Os(V.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(V.type,V,$,ae):null}else return new fc(V.type,V,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),V=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new ps("Expected first argument to be of type array or string, but found "+Os(Es(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(V,$)}return I.slice(V)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function Cr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function ki(m,y,I){return y>=I}function Xi(m,y,I,V){return V.compare(y,I)===0}function dn(m,y,I,V){return!Xi(m,y,I,V)}function wn(m,y,I,V){return V.compare(y,I)<0}function Nn(m,y,I,V){return V.compare(y,I)>0}function Yi(m,y,I,V){return V.compare(y,I)<=0}function Qi(m,y,I,V){return V.compare(y,I)>=0}function on(m,y,I){var V=m!=="=="&&m!=="!=";return function(){function $(ae,he,ze){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=ze,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,ze){if(he.length!==3&&he.length!==4)return ze.error("Expected two or three arguments.");var rt=he[0],gt=ze.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return ze.concat(1).error('"'+rt+`" comparisons are not supported for type '`+Os(gt.type)+"'.");var Et=ze.parse(he[2],2,Do);if(!Et)return null;if(!Bc(rt,Et.type))return ze.concat(2).error('"'+rt+`" comparisons are not supported for type '`+Os(Et.type)+"'.");if(gt.type.kind!==Et.type.kind&>.type.kind!=="value"&&Et.type.kind!=="value")return ze.error("Cannot compare types '"+Os(gt.type)+"' and '"+Os(Et.type)+"'.");V&&(gt.type.kind==="value"&&Et.type.kind!=="value"?gt=new xl(Et.type,[gt]):gt.type.kind!=="value"&&Et.type.kind==="value"&&(Et=new xl(gt.type,[Et])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Et.type.kind!=="string"&>.type.kind!=="value"&&Et.type.kind!=="value")return ze.error("Cannot use collator to compare non-string types.");if(or=ze.parse(he[3],3,Vf),!or)return null}return new $(gt,Et,or)},$.prototype.evaluate=function(he){var ze=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(V&&this.hasUntypedArgument){var gt=Es(ze),Et=Es(rt);if(gt.kind!==Et.kind||!(gt.kind==="string"||gt.kind==="number"))throw new ps('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Et.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var or=Es(ze),_r=Es(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,ze,rt)}return this.collator?I(he,ze,rt,this.collator.evaluate(he)):y(he,ze,rt)},$.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=[m];return this.eachChild(function(ze){he.push(ze.serialize())}),he},$}()}var Fi=on("==",At,Xi),Qn=on("!=",Xt,dn),Ca=on("<",Cr,wn),Ra=on(">",Ar,Nn),La=on("<=",Kr,Yi),Na=on(">=",ki,Qi),Yn=function(y,I,V,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var V=I.parse(y[1],1,aa);if(!V)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var ze=null;if($["min-fraction-digits"]&&(ze=I.parse($["min-fraction-digits"],1,aa),!ze))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(V,ae,he,ze,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var Dn=function(y){this.type=aa,this.input=y};Dn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+Os(V.type)+" instead."):new Dn(V):null},Dn.prototype.evaluate=function(y){var I=this.input.evaluate(y);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 "+Os(Es(I))+" instead.")},Dn.prototype.eachChild=function(y){y(this.input)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Fi,"!=":Qn,">":Ra,"<":Ca,">=":Na,"<=":La,array:xl,at:Tc,boolean:xl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:qs,in:wl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:Dn,let:Oc,literal:Go,match:qc,number:xl,"number-format":Yn,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(m,y){var I=y[0],V=y[1],$=y[2],ae=y[3];I=I.evaluate(m),V=V.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,ze=lc(I,V,$,he);if(ze)throw new ps(ze);return new cs(I/255*he,V/255*he,$/255*he,he)}function Zo(m,y){return m in y}function Ss(m,y){var I=y[m];return typeof I=="undefined"?null:I}function as(m,y,I,V){for(;I<=V;){var $=I+V>>1;if(y[$]===m)return!0;y[$]>m?V=$-1:I=$+1}return!1}function ws(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new ps(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return Os(Es(I.evaluate(m)))}],"to-rgba":[Jl(aa,4),[ql],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[ql,[aa,aa,aa],bo],rgba:[ql,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Zo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],V=y[1];return Zo(I.evaluate(m),V.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ss(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],V=y[1];return Ss(I.evaluate(m),V.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ss(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,ws(aa),function(m,y){for(var I=0,V=0,$=y;V<$.length;V+=1){var ae=$[V];I+=ae.evaluate(m)}return I}],"*":[aa,ws(aa),function(m,y){for(var I=1,V=0,$=y;V<$.length;V+=1){var ae=$[V];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)-V.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)/V.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)%V.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return Math.pow(I.evaluate(m),V.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,ws(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,ws(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],V=I.evaluate(m);return V<0?-Math.round(-V):Math.round(V)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1];return m.properties()[I.value]===V.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Jl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Jl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Jl(Do)],function(m,y){var I=y[0],V=y[1];return V.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Jl(Do)],function(m,y){var I=y[0],V=y[1];return as(m.properties()[I.value],V.value,0,V.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)&&V.evaluate(m)}],[ws(qo),function(m,y){for(var I=0,V=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function ys(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function rs(m){return m}function Ql(m,y){var I=y.type==="color",V=m.stops&&typeof m.stops[0][0]=="object",$=V||m.property!==void 0,ae=V||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=Ol({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],cs.parse(ha[1])]})),m.default?m.default=cs.parse(m.default):m.default=cs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Zf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var ze,rt,gt;if(he==="exponential")ze=pu;else if(he==="interval")ze=Nc;else if(he==="categorical"){ze=Yu,rt=Object.create(null);for(var Et=0,or=m.stops;Et=m.stops[V-1][0])return m.stops[V-1][1];var $=hu(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function pu(m,y,I){var V=m.base!==void 0?m.base:1;if(no(I)!=="number")return Cu(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=hu(m.stops.map(function(or){return or[0]}),I),he=xu(I,V,m.stops[ae][0],m.stops[ae+1][0]),ze=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||rs;if(m.colorSpace&&m.colorSpace!=="rgb"){var Et=Zf[m.colorSpace];gt=function(or,_r){return Et.reverse(Et.interpolate(Et.forward(or),Et.forward(_r),he))}}return typeof ze.evaluate=="function"?{evaluate:function(){for(var _r=[],pr=arguments.length;pr--;)_r[pr]=arguments[pr];var Fr=ze.evaluate.apply(void 0,_r),oi=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||oi===void 0))return gt(Fr,oi,he)}}:gt(ze,rt,he)}function Uc(m,y,I){return y.type==="color"?I=cs.parse(I):y.type==="formatted"?I=$l.fromString(I.toString()):y.type==="resolvedImage"?I=fl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),Cu(I,m.default,y.default)}function xu(m,y,I,V){var $=V-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,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(y,I,V,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,V,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||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 ps("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(ze)+" instead.");return ze}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),V=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?Ho(new Ac(V,y)):ml(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!js(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,V,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,V,$,ae,he)},Vc.prototype.evaluate=function(y,I,V,$,ae,he){return this._styleExpression.evaluate(y,I,V,$,ae,he)};var hc=function(y,I,V,$){this.kind=y,this.zoomStops=V,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!js(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,V,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,V,$,ae,he)},hc.prototype.evaluate=function(y,I,V,$,ae,he){return this._styleExpression.evaluate(y,I,V,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,V){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,V):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,V=ih(I);if(!V&&!Ws(y))return ml([new Ns("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ls(y))return ml([new Ns("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return ml([new Ns("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Ns)return ml([ae]);if(ae instanceof Wl&&!va(y))return ml([new Ns("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(V?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(V?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,Ol(this,Ql(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(ys(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var V=m;return typeof m=="string"&&y.type==="color"&&(V=cs.parse(m)),{kind:"constant",evaluate:function(){return V}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,V=m.args;IV.maximum?[new _a(y,I,I+" is greater than the maximum value "+V.maximum)]:[]}function st(m){var y=m.valueSpec,I=xo(m.value.type),V,$={},ae,he,ze=I!=="categorical"&&m.value.property===void 0,rt=!ze,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Et=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&ze&&Et.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Et.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Et.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Ws(m.valueSpec)?Et.push(new _a(m.key,m.value,"property functions not supported")):ze&&!Ls(m.valueSpec)&&Et.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Et.push(new _a(m.key,m.value,'"property" property is required')),Et;function or(oi){if(I==="identity")return[new _a(oi.key,oi.value,'identity function may not have a "stops" property')];var Hi=[],Ai=oi.value;return Hi=Hi.concat(Oe({key:oi.key,value:Ai,valueSpec:oi.valueSpec,style:oi.style,styleSpec:oi.styleSpec,arrayElementValidator:_r})),no(Ai)==="array"&&Ai.length===0&&Hi.push(new _a(oi.key,Ai,"array must have at least one stop")),Hi}function _r(oi){var Hi=[],Ai=oi.value,bn=oi.key;if(no(Ai)!=="array")return[new _a(bn,Ai,"array expected, "+no(Ai)+" found")];if(Ai.length!==2)return[new _a(bn,Ai,"array length 2 expected, length "+Ai.length+" found")];if(gt){if(no(Ai[0])!=="object")return[new _a(bn,Ai,"object expected, "+no(Ai[0])+" found")];if(Ai[0].zoom===void 0)return[new _a(bn,Ai,"object stop key must have zoom")];if(Ai[0].value===void 0)return[new _a(bn,Ai,"object stop key must have value")];if(he&&he>xo(Ai[0].zoom))return[new _a(bn,Ai[0].zoom,"stop zoom values must appear in ascending order")];xo(Ai[0].zoom)!==he&&(he=xo(Ai[0].zoom),ae=void 0,$={}),Hi=Hi.concat(le({key:bn+"[0]",value:Ai[0],valueSpec:{zoom:{}},style:oi.style,styleSpec:oi.styleSpec,objectElementValidators:{zoom:Ze,value:pr}}))}else Hi=Hi.concat(pr({key:bn+"[0]",value:Ai[0],valueSpec:{},style:oi.style,styleSpec:oi.styleSpec},Ai));return Ua(Kl(Ai[1]))?Hi.concat([new _a(bn+"[1]",Ai[1],"expressions are not allowed in function stops.")]):Hi.concat(Qa({key:bn+"[1]",value:Ai[1],valueSpec:y,style:oi.style,styleSpec:oi.styleSpec}))}function pr(oi,Hi){var Ai=no(oi.value),bn=xo(oi.value),nn=oi.value!==null?oi.value:Hi;if(!V)V=Ai;else if(Ai!==V)return[new _a(oi.key,nn,Ai+" stop domain type must match previous stop domain type "+V)];if(Ai!=="number"&&Ai!=="string"&&Ai!=="boolean")return[new _a(oi.key,nn,"stop domain value must be a number, string, or boolean")];if(Ai!=="number"&&I!=="categorical"){var xn="number expected, "+Ai+" found";return Ws(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(oi.key,nn,xn)]}return I==="categorical"&&Ai==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(oi.key,nn,"integer expected, found "+bn)]:I!=="categorical"&&Ai==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function qe(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?Xe(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(et)):y==="none"?["all"].concat(m.slice(1).map(et).map(tr)):y==="in"?Ft(m[1],m.slice(2)):y==="!in"?tr(Ft(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?tr(Ht(m[1])):y==="within"?m:!0;return I}function Xe(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(et))}function Ft(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function tr(m){return["!",m]}function dr(m){return Ir(Kl(m.value))?Tt(Ol({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var V=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:V.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Et[pr+0]&&V>=Et[pr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},eu.prototype._forEachCell=function(m,y,I,V,$,ae,he,ze){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Et=this._convertToCellCoord(I),or=this._convertToCellCoord(V),_r=rt;_r<=Et;_r++)for(var pr=gt;pr<=or;pr++){var Fr=this.d*pr+_r;if(!(ze&&!ze(this._convertFromCellCoord(_r),this._convertFromCellCoord(pr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(pr+1)))&&$.call(this,m,y,I,V,Fr,ae,he,ze))return}},eu.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},eu.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},eu.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=Js+this.cells.length+1+1,I=0,V=0;V=0)){var or=m[Et];gt[Et]=Al[rt].shallow.indexOf(Et)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Al[y],V=I.klass;if(!V)throw new Error("can't deserialize unregistered class "+y);if(V.deserialize)return V.deserialize(m);for(var $=Object.create(V.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var kt=function(){this.first=!0};kt.prototype.update=function(y,I){var V=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Zr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ai(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ai(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Ii(m){for(var y=0,I=m;y-1&&(En=ei.error),Ln&&Ln(m)};function Ea(){Ia.fire(new Xo("pluginStateChange",{pluginStatus:En,pluginURL:Un}))}var Ia=new Wn,yo=function(){return En},Da=function(m){return m({pluginStatus:En,pluginURL:Un}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),En===ei.deferred||En===ei.loading||En===ei.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Un=lt.resolveURL(m),En=ei.deferred,Ln=y,Ea(),I||Is()},Is=function(){if(En!==ei.deferred||!Un)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");En=ei.loading,Ea(),Un&&ri({url:Un},function(m){m?ia(m):(En=ei.loaded,Ea())})},Ms={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return En===ei.loaded||Ms.applyArabicShaping!=null},isLoading:function(){return En===ei.loading},setState:function(y){En=y.pluginStatus,Un=y.pluginURL},isParsed:function(){return Ms.applyArabicShaping!=null&&Ms.processBidirectionalText!=null&&Ms.processStyledBidirectionalText!=null},getPluginURL:function(){return Un}},Xs=function(){!Ms.isLoading()&&!Ms.isLoaded()&&yo()==="deferred"&&Is()},Gn=function(y,I){this.zoom=y,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 kt,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Si(y,Ms.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),V=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*I}};var ja=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},ja.prototype.possiblyEvaluate=function(y,I,V){return this.property.possiblyEvaluate(this,y,I,V)};var Fo=function(y){this.property=y,this.value=new ja(y,void 0)};Fo.prototype.transitioned=function(y,I){return new $s(this.property,this.value,I,x({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new $s(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return j(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new ja(this._values[y].property,I===null?void 0:j(I))},Uo.prototype.getTransition=function(y){return j(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=j(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,V=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(V){return V},y}(bt),Rr=function(y){this.specification=y};Rr.prototype.possiblyEvaluate=function(y,I,V,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},V,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Rr.prototype._calculate=function(y,I,V,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:V,to:I}},Rr.prototype.interpolate=function(y){return y};var jr=function(y){this.specification=y};jr.prototype.possiblyEvaluate=function(y,I,V,$){return!!y.expression.evaluate(I,null,{},V,$)},jr.prototype.interpolate=function(){return!1};var Nr=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var V=y[I];V.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new ja(V,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(V);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",bt),X("DataConstantProperty",Me),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Rr),X("ColorRampProperty",jr);var Gr="-transition",mi=function(m){function y(I,V){if(m.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),V.layout&&(this._unevaluatedLayout=new bu(V.layout)),V.paint)){this._transitionablePaint=new Uo(V.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(V.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},y.prototype.setLayoutProperty=function(V,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+V;if(this._validate(Ul,he,V,$,ae))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},y.prototype.getPaintProperty=function(V){return U(V,Gr)?this._transitionablePaint.getTransition(V.slice(0,-Gr.length)):this._transitionablePaint.getValue(V)},y.prototype.setPaintProperty=function(V,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+V;if(this._validate(hl,he,V,$,ae))return!1}if(U(V,Gr))return this._transitionablePaint.setTransition(V.slice(0,-Gr.length),$||void 0),!1;var ze=this._transitionablePaint._values[V],rt=ze.property.specification["property-type"]==="cross-faded-data-driven",gt=ze.value.isDataDriven(),Et=ze.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var or=this._transitionablePaint._values[V].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(V,Et,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(V){},y.prototype._handleOverridablePaintPropertyUpdate=function(V,$,ae){return!1},y.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.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,$)},y.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),Z(V,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(V,$,ae,he,ze){return ze===void 0&&(ze={}),ze&&ze.validate===!1?!1:Lu(this,V.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Rn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof dl)||!Ws($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ui={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ei=128,Hn=5,en=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};en.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},en.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},en.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},en.prototype.clear=function(){this.length=0},en.prototype.resize=function(y){this.reserve(y),this.length=y},en.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Ei),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},en.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Wi(m,y){y===void 0&&(y=1);var I=0,V=0,$=m.map(function(he){var ze=si(he.type),rt=I=Mr(I,Math.max(y,ze)),gt=he.components||1;return V=Math.max(V,ze),I+=ze*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(V,y));return{members:$,size:ae,alignment:y}}function si(m){return Ui[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.int16[he+0]=$,this.int16[he+1]=ae,V},y}(en);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=ze,V},y}(en);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ri=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*6;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.int16[Et+2]=he,this.int16[Et+3]=ze,this.int16[Et+4]=rt,this.int16[Et+5]=gt,V},y}(en);Ri.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ri);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*4,or=V*8;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=ze,this.uint8[or+6]=rt,this.uint8[or+7]=gt,V},y}(en);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var an=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.float32[he+0]=$,this.float32[he+1]=ae,V},y}(en);an.prototype.bytesPerElement=8,X("StructArrayLayout2f8",an);var Zi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r){var pr=this.length;return this.resize(pr+1),this.emplace(pr,V,$,ae,he,ze,rt,gt,Et,or,_r)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr){var Fr=V*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=ze,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Et,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=pr,V},y}(en);Zi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Zi);var Bn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr){var oi=this.length;return this.resize(oi+1),this.emplace(oi,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi){var Hi=V*12;return this.int16[Hi+0]=$,this.int16[Hi+1]=ae,this.int16[Hi+2]=he,this.int16[Hi+3]=ze,this.uint16[Hi+4]=rt,this.uint16[Hi+5]=gt,this.uint16[Hi+6]=Et,this.uint16[Hi+7]=or,this.int16[Hi+8]=_r,this.int16[Hi+9]=pr,this.int16[Hi+10]=Fr,this.int16[Hi+11]=oi,V},y}(en);Bn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",Bn);var hi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.float32[ze+0]=$,this.float32[ze+1]=ae,this.float32[ze+2]=he,V},y}(en);hi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",hi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.uint32[ae+0]=$,V},y}(en);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,V,$,ae,he,ze,rt,gt,Et,or)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r){var pr=V*10,Fr=V*5;return this.int16[pr+0]=$,this.int16[pr+1]=ae,this.int16[pr+2]=he,this.int16[pr+3]=ze,this.int16[pr+4]=rt,this.int16[pr+5]=gt,this.uint32[Fr+3]=Et,this.uint16[pr+8]=or,this.uint16[pr+9]=_r,V},y}(en);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ji=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*6;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.int16[Et+2]=he,this.int16[Et+3]=ze,this.int16[Et+4]=rt,this.int16[Et+5]=gt,V},y}(en);Ji.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ji);var Vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze){var rt=this.length;return this.resize(rt+1),this.emplace(rt,V,$,ae,he,ze)},y.prototype.emplace=function(V,$,ae,he,ze,rt){var gt=V*4,Et=V*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Et+6]=ze,this.int16[Et+7]=rt,V},y}(en);Vi.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Vi);var Ni=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*12,gt=V*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=ze,V},y}(en);Ni.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Ni);var pn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.uint16[ze+0]=$,this.uint16[ze+1]=ae,this.uint16[ze+2]=he,V},y}(en);pn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",pn);var Vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn){var Pn=V*24,Zn=V*12,ga=V*48;return this.int16[Pn+0]=$,this.int16[Pn+1]=ae,this.uint16[Pn+2]=he,this.uint16[Pn+3]=ze,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Et,this.uint16[Pn+10]=or,this.uint16[Pn+11]=_r,this.uint16[Pn+12]=pr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=oi,this.uint8[ga+36]=Hi,this.uint8[ga+37]=Ai,this.uint8[ga+38]=bn,this.uint32[Zn+10]=nn,this.int16[Pn+22]=xn,V},y}(en);Vn.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vn);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao){var _s=this.length;return this.resize(_s+1),this.emplace(_s,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao,_s){var jo=V*34,El=V*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=ze,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Et,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=pr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=oi,this.uint16[jo+12]=Hi,this.uint16[jo+13]=Ai,this.uint16[jo+14]=bn,this.uint16[jo+15]=nn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Pn,this.uint16[jo+18]=Zn,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,V},y}(en);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.float32[ae+0]=$,V},y}(en);Ki.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Ki);var kn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.int16[ze+0]=$,this.int16[ze+1]=ae,this.int16[ze+2]=he,V},y}(en);kn.prototype.bytesPerElement=6,X("StructArrayLayout3i6",kn);var ta=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*2,rt=V*4;return this.uint32[ze+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,V},y}(en);ta.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ta);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,V},y}(en);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var ba=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.uint16[ae+0]=$,V},y}(en);ba.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",ba);var is=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=ze,V},y}(en);is.prototype.bytesPerElement=16,X("StructArrayLayout4f16",is);var Zs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(y.prototype,I),y}(qi);Zs.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Zs(this,V)},y}(mn);X("CollisionBoxArray",Va);var Ml=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(V){this._structArray.uint8[this._pos1+37]=V},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(qi);Ml.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Ml(this,V)},y}(Vn);X("PlacedSymbolArray",zo);var Qs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(V){this._structArray.uint32[this._pos4+12]=V},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(y.prototype,I),y}(qi);Qs.prototype.size=68;var al=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Qs(this,V)},y}(na);X("SymbolInstanceArray",al);var Vl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(V){return this.float32[V*1+0]},y}(Ki);X("GlyphOffsetArray",Vl);var ss=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(V){return this.int16[V*3+0]},y.prototype.gety=function(V){return this.int16[V*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},y}(kn);X("SymbolLineVertexArray",ss);var Vs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(y.prototype,I),y}(qi);Vs.prototype.size=8;var Ys=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Vs(this,V)},y}(ta);X("FeatureIndexArray",Ys);var wa=Wi([{name:"a_pos",components:2,type:"Int16"}],4),ol=wa.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,V,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Et=Et<<15|Et>>>17,Et=(Et&65535)*gt+(((Et>>>16)*gt&65535)<<16)&4294967295,he^=Et,he=he<<13|he>>>19,ze=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(ze&65535)+27492+(((ze>>>16)+58964&65535)<<16);switch(Et=0,$){case 3:Et^=(I.charCodeAt(or+2)&255)<<16;case 2:Et^=(I.charCodeAt(or+1)&255)<<8;case 1:Et^=I.charCodeAt(or)&255,Et=(Et&65535)*rt+(((Et>>>16)*rt&65535)<<16)&4294967295,Et=Et<<15|Et>>>17,Et=(Et&65535)*gt+(((Et>>>16)*gt&65535)<<16)&4294967295,he^=Et}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}m.exports=y}),q=a(function(m){function y(I,V){for(var $=I.length,ae=V^$,he=0,ze;$>=4;)ze=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ze^=ze>>>24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^ze,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,V,$){this.ids.push(ft(y)),this.positions.push(I,V,$)},we.prototype.getPositions=function(y){for(var I=ft(y),V=0,$=this.ids.length-1;V<$;){var ae=V+$>>1;this.ids[ae]>=I?$=ae:V=ae+1}for(var he=[];this.ids[V]===I;){var ze=this.positions[3*V],rt=this.positions[3*V+1],gt=this.positions[3*V+2];he.push({index:ze,start:rt,end:gt}),V++}return he},we.serialize=function(y,I){var V=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(V,$,0,V.length-1),I&&I.push(V.buffer,$.buffer),{ids:V,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,V){for(;I>1],ae=I-1,he=V+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?zn(m):[]}}function co(m,y,I,V,$){m.emplaceBack(y*2+(V+1)/2,I*2+($+1)/2)}var ts=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new pn,this.segments=new io,this.programConfigurations=new fi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};ts.prototype.populate=function(y,I,V){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var ze=0,rt=y;ze=Ci||_r<0||_r>=Ci)){var pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=pr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),pr.vertexLength+=4,pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,V,{},$)},X("CircleBucket",ts,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Cv(m,$,I))return!0}return!1}function Cv(m,y,I){if(m.length>1){if(Lv(m,y))return!0;for(var V=0;V1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function gp(m,y){for(var I=!1,V,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,V=0,$=m.length-1;Vy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function mp(m,y,I,V,$){for(var ae=0,he=m;ae=ze.x&&$>=ze.y)return!0}var rt=[new u(y,I),new u(y,$),new u(V,$),new u(V,I)];if(m.length>2)for(var gt=0,Et=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var V=y.paint.get(m).value;return V.kind==="constant"?V.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Pv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Jv(m,y,I,V,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-V);for(var he=[],ze=0;ze0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function V9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function G9(m,y,I){var V=y[0],$=y[1],ae=y[2],he=I[0],ze=I[1],rt=I[2];return m[0]=$*rt-ae*ze,m[1]=ae*he-V*rt,m[2]=V*ze-$*he,m}function H9(m,y,I){var V=y[0],$=y[1],ae=y[2];return m[0]=V*I[0]+$*I[3]+ae*I[6],m[1]=V*I[1]+$*I[4]+ae*I[7],m[2]=V*I[2]+$*I[5]+ae*I[8],m}var j9=um,OQ=function(){var m=lm();return function(y,I,V,$,ae,he){var ze,rt;for(I||(I=3),V||(V=0),$?rt=Math.min($*I+V,y.length):rt=y.length,ze=V;zem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||V.x>y.width-$.width||V.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,ze=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Et=((V.y+rt)*y.width+V.x)*ae,or=0;or<$.width*ae;or++)ze[Et+or]=he[gt+or];return y}var Dv=function(y,I){Md(this,y,1,I)};Dv.prototype.resize=function(y){Bw(this,y,1)},Dv.prototype.clone=function(){return new Dv({width:this.width,height:this.height},new Uint8Array(this.data))},Dv.copy=function(y,I,V,$,ae){Nw(y,I,V,$,ae,1)};var Eh=function(y,I){Md(this,y,4,I)};Eh.prototype.resize=function(y){Bw(this,y,4)},Eh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},Eh.prototype.clone=function(){return new Eh({width:this.width,height:this.height},new Uint8Array(this.data))},Eh.copy=function(y,I,V,$,ae){Nw(y,I,V,$,ae,4)},X("AlphaImage",Dv),X("RGBAImage",Eh);var $x=new Nr({"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 jr(Rn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Me(Rn.paint_heatmap["heatmap-opacity"])}),P1={paint:$x};function Qx(m){var y={},I=m.resolution||256,V=m.clips?m.clips.length:1,$=m.image||new Eh({width:I,height:V}),ae=function(bn,nn,xn){y[m.evaluationKey]=xn;var Pn=m.expression.evaluate(y);$.data[bn+nn+0]=Math.floor(Pn.r*255/Pn.a),$.data[bn+nn+1]=Math.floor(Pn.g*255/Pn.a),$.data[bn+nn+2]=Math.floor(Pn.b*255/Pn.a),$.data[bn+nn+3]=Math.floor(Pn.a*255)};if(m.clips)for(var gt=0,Et=0;gt80*I){ze=gt=m[0],rt=Et=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Et&&(Et=_r);pr=Math.max(gt-ze,Et-rt),pr=pr!==0?1/pr:0}return eb(ae,he,I,ze,rt,pr),he}function Gw(m,y,I,V,$){var ae,he;if($===mS(m,y,I,V)>0)for(ae=y;ae=y;ae-=V)he=FC(ae,m[ae],m[ae+1],he);return he&&rb(he,he.next)&&(ab(he),he=he.next),he}function cm(m,y){if(!m)return m;y||(y=m);var I=m,V;do if(V=!1,!I.steiner&&(rb(I,I.next)||Tf(I.prev,I,I.next)===0)){if(ab(I),I=y=I.prev,I===I.next)break;V=!0}else I=I.next;while(V||I!==y);return y}function eb(m,y,I,V,$,ae,he){if(m){!he&&ae&&Hw(m,V,$,ae);for(var ze=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?IC(m,V,$,ae):PC(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),ab(m),m=gt.next,ze=gt.next;continue}if(m=gt,m===ze){he?he===1?(m=tb(cm(m),y,I),eb(m,y,I,V,$,ae,2)):he===2&&v0(m,y,I,V,$,ae):eb(cm(m),y,I,V,$,ae,1);break}}}}function PC(m){var y=m.prev,I=m,V=m.next;if(Tf(y,I,V)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(hm(y.x,y.y,I.x,I.y,V.x,V.y,$.x,$.y)&&Tf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function IC(m,y,I,V){var $=m.prev,ae=m,he=m.next;if(Tf($,ae,he)>=0)return!1;for(var ze=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Et=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=dS(ze,rt,y,I,V),_r=dS(gt,Et,y,I,V),pr=m.prevZ,Fr=m.nextZ;pr&&pr.z>=or&&Fr&&Fr.z<=_r;){if(pr!==m.prev&&pr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&Tf(pr.prev,pr,pr.next)>=0||(pr=pr.prevZ,Fr!==m.prev&&Fr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&Tf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;pr&&pr.z>=or;){if(pr!==m.prev&&pr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&Tf(pr.prev,pr,pr.next)>=0)return!1;pr=pr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&Tf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function tb(m,y,I){var V=m;do{var $=V.prev,ae=V.next.next;!rb($,ae)&&jw($,V,V.next,ae)&&nb($,ae)&&nb(ae,$)&&(y.push($.i/I),y.push(V.i/I),y.push(ae.i/I),ab(V),ab(V.next),V=m=ae),V=V.next}while(V!==m);return cm(V)}function v0(m,y,I,V,$,ae){var he=m;do{for(var ze=he.next.next;ze!==he.prev;){if(he.i!==ze.i&&R1(he,ze)){var rt=pS(he,ze);he=cm(he,he.next),rt=cm(rt,rt.next),eb(he,y,I,V,$,ae),eb(rt,y,I,V,$,ae);return}ze=ze.next}he=he.next}while(he!==m)}function fm(m,y,I,V){var $=[],ae,he,ze,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var ze=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(ze<=V&&ze>ae){if(ae=ze,ze===V){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&V!==I.x&&hm($he.x||I.x===he.x&&eO(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function eO(m,y){return Tf(m.prev,m,y.prev)<0&&Tf(y.next,m,m.next)<0}function Hw(m,y,I,V){var $=m;do $.z===null&&($.z=dS($.x,$.y,y,I,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,hS($)}function hS(m){var y,I,V,$,ae,he,ze,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,V=I,ze=0,y=0;y0||rt>0&&V;)ze!==0&&(rt===0||!V||I.z<=V.z)?($=I,I=I.nextZ,ze--):($=V,V=V.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=V}ae.nextZ=null,gt*=2}while(he>1);return m}function dS(m,y,I,V,$){return m=32767*(m-I)*$,y=32767*(y-V)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function vS(m){var y=m,I=m;do(y.x=0&&(m-he)*(V-ze)-(I-he)*(y-ze)>=0&&(I-he)*(ae-ze)-($-he)*(V-ze)>=0}function R1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!DC(m,y)&&(nb(m,y)&&nb(y,m)&&tO(m,y)&&(Tf(m.prev,m,y.prev)||Tf(m,y.prev,y))||rb(m,y)&&Tf(m.prev,m,m.next)>0&&Tf(y.prev,y,y.next)>0)}function Tf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function rb(m,y){return m.x===y.x&&m.y===y.y}function jw(m,y,I,V){var $=gy(Tf(m,y,I)),ae=gy(Tf(m,y,V)),he=gy(Tf(I,V,m)),ze=gy(Tf(I,V,y));return!!($!==ae&&he!==ze||$===0&&ib(m,I,y)||ae===0&&ib(m,V,y)||he===0&&ib(I,m,V)||ze===0&&ib(I,y,V))}function ib(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function gy(m){return m>0?1:m<0?-1:0}function DC(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&jw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function nb(m,y){return Tf(m.prev,m,m.next)<0?Tf(m,y,m.next)>=0&&Tf(m,m.prev,y)>=0:Tf(m,y,m.prev)<0||Tf(m,m.next,y)<0}function tO(m,y){var I=m,V=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(V=!V),I=I.next;while(I!==m);return V}function pS(m,y){var I=new gS(m.i,m.x,m.y),V=new gS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,V.next=I,I.prev=V,ae.next=V,V.prev=ae,V}function FC(m,y,I,V){var $=new gS(m,y,I);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ab(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function gS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}I1.deviation=function(m,y,I,V){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(mS(m,0,ae,I));if($)for(var ze=0,rt=y.length;ze0&&(V+=m[$-1].length,I.holes.push(V))}return I},Vw.default=LC;function yS(m,y,I,V,$){pg(m,y,I||0,V||m.length-1,$||zC)}function pg(m,y,I,V,$){for(;V>I;){if(V-I>600){var ae=V-I+1,he=y-I+1,ze=Math.log(ae),rt=.5*Math.exp(2*ze/3),gt=.5*Math.sqrt(ze*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Et=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(V,Math.floor(y+(ae-he)*rt/ae+gt));pg(m,y,Et,or,$)}var _r=m[y],pr=I,Fr=V;for(D1(m,I,y),$(m[V],_r)>0&&D1(m,I,V);pr0;)Fr--}$(m[I],_r)===0?D1(m,I,Fr):(Fr++,D1(m,Fr,V)),Fr<=y&&(I=Fr+1),y<=Fr&&(V=Fr-1)}}function D1(m,y,I){var V=m[y];m[y]=m[I],m[I]=V}function zC(m,y){return my?1:0}function Ww(m,y){var I=m.length;if(I<=1)return[m];for(var V=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(V--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(ze&&he.push(ze),ze=[]),ze.push(new u($,ae));else if(I===7)ze&&ze.push(ze[0].clone());else throw new Error("unknown command "+I)}return ze&&he.push(ze),he},my.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,V=0,$=0,ae=0,he=1/0,ze=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(V--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$ze&&(ze=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,ze,gt]},my.prototype.toGeoJSON=function(m,y,I){var V=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),ze=my.types[this.type],rt,gt;function Et(pr){for(var Fr=0;Fr>3;y=V===1?m.readString():V===2?m.readFloat():V===3?m.readDouble():V===4?m.readVarint64():V===5?m.readVarint():V===6?m.readSVarint():V===7?m.readBoolean():null}return y}bS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new xS(this._pbf,y,this.extent,this._keys,this._values)};var WC=iO;function iO(m,y){this.layers=m.readFields(nO,{},y)}function nO(m,y,I){if(m===3){var V=new gg(I,I.readVarint()+I.pos);V.length&&(y[V.name]=V)}}var XC=WC,F1=xS,ZC=gg,mg={VectorTile:XC,VectorTileFeature:F1,VectorTileLayer:ZC},YC=mg.VectorTileFeature.types,Zw=500,z1=Math.pow(2,13);function dm(m,y,I,V,$,ae,he,ze){m.emplaceBack(y,I,Math.floor(V*z1)*2+he,$*z1*2,ae*z1*2,Math.round(ze))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new pn,this.programConfigurations=new fi(y.layers,y.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(y,I,V){this.features=[],this.hasPattern=Xw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Hi[bn-1];if(!aO(nn,xn)){pr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Pn=nn.sub(xn)._perp()._unit(),Zn=xn.dist(nn);Ai+Zn>32768&&(Ai=0),dm(this.layoutVertexArray,nn.x,nn.y,Pn.x,Pn.y,0,0,Ai),dm(this.layoutVertexArray,nn.x,nn.y,Pn.x,Pn.y,0,1,Ai),Ai+=Zn,dm(this.layoutVertexArray,xn.x,xn.y,Pn.x,Pn.y,0,0,Ai),dm(this.layoutVertexArray,xn.x,xn.y,Pn.x,Pn.y,0,1,Ai);var ga=pr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),pr.vertexLength+=4,pr.primitiveLength+=2}}}}if(pr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),YC[y.type]==="Polygon"){for(var ha=[],eo=[],za=pr.vertexLength,Za=0,Jo=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function oO(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var O1=new Nr({"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 zt(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(m){function y(I){m.call(this,I,ld)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(V){return new Vp(V)},y.prototype.queryRadius=function(){return Pv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(V,$,ae,he,ze,rt,gt,Et){var or=Jv(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),pr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=sO(or,Et,rt,0),oi=TS(he,pr,_r,Et),Hi=oi[0],Ai=oi[1];return KC(Hi,Ai,Fr)},y}(mi);function yy(m,y){return m.x*y.x+m.y*y.y}function wS(m,y){if(m.length===1){for(var I=0,V=y[I++],$;!$||V.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Et=0;Et0;if(ha&&bn>Et){var za=pr.dist(Fr);if(za>2*or){var Za=pr.sub(pr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Hi,0,0,_r),Fr=Za}}var Jo=Fr&&oi,to=Jo?V:rt?"butt":$;if(Jo&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)nn=Ai.mult(-1);else{var ao=Zn*Hi.add(Ai).mag()/Hi.sub(Ai).mag();nn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(pr,nn,0,0,_r),this.addCurrentVertex(pr,nn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var _s=-Math.sqrt(Zn*Zn-1),jo=eo?_s:0,El=eo?0:_s;if(Fr&&this.addCurrentVertex(pr,Hi,jo,El,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/SS),kl=1;kl2*or){var ch=pr.add(oi.sub(pr)._mult(or/$h)._round());this.updateDistance(pr,ch),this.addCurrentVertex(ch,Ai,0,0,_r),pr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,V,$,ae,he){he===void 0&&(he=!1);var ze=I.x+I.y*V,rt=I.y-I.x*V,gt=-I.x+I.y*$,Et=-I.y-I.x*$;this.addHalfVertex(y,ze,rt,he,!1,V,ae),this.addHalfVertex(y,gt,Et,he,!0,-$,ae),this.distance>cb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,V,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,V,$,ae,he,ze){var rt=y.x,gt=y.y,Et=this.lineClips?this.scaledDistance*(cb-1):this.scaledDistance,or=Et*Kw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(Yw*I)+128,Math.round(Yw*V)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,pr=this.lineClips.end-this.lineClips.start,Fr=_r/pr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var oi=ze.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,oi),ze.primitiveLength++),ae?this.e2=oi:this.e1=oi},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(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var MS=new Nr({"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"])}),ES=new Nr({"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 Rr(Rn.paint_line["line-dasharray"]),"line-pattern":new zt(Rn.paint_line["line-pattern"]),"line-gradient":new jr(Rn.paint_line["line-gradient"])}),Jw={paint:ES,layout:MS},uO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(V,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,V,$)},y.prototype.evaluate=function(V,$,ae,he){return $=x({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,V,$,ae,he)},y}(bt),R=new uO(Jw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Jw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(V,$){m.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},y.prototype.createBucket=function(V){return new sh(V)},y.prototype.queryRadius=function(V){var $=V,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Pv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(V,$,ae,he,ze,rt,gt){var Et=Jv(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),ou(Et,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],V=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 un(m){for(var y="",I=0;I>1,Et=-7,or=I?$-1:0,_r=I?-1:1,pr=m[y+or];for(or+=_r,ae=pr&(1<<-Et)-1,pr>>=-Et,Et+=ze;Et>0;ae=ae*256+m[y+or],or+=_r,Et-=8);for(he=ae&(1<<-Et)-1,ae>>=-Et,Et+=V;Et>0;he=he*256+m[y+or],or+=_r,Et-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(pr?-1:1)*(1/0);he=he+Math.pow(2,V),ae=ae-gt}return(pr?-1:1)*he*Math.pow(2,ae-V)},ro=function(m,y,I,V,$,ae){var he,ze,rt,gt=ae*8-$-1,Et=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,pr=V?0:ae-1,Fr=V?1:-1,oi=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(ze=isNaN(y)?1:0,he=Et):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Et?(ze=0,he=Et):he+or>=1?(ze=(y*rt-1)*Math.pow(2,$),he=he+or):(ze=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+pr]=ze&255,pr+=Fr,ze/=256,$-=8);for(he=he<<$|ze,gt+=$;gt>0;m[I+pr]=he&255,pr+=Fr,he/=256,gt-=8);m[I+pr-Fr]|=oi*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=V&7,m($,y,this),this.pos===ae&&this.skip(V)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Yh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Fv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Yh(this.buf,this.pos)+Yh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Yh(this.buf,this.pos)+Fv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,V;return V=y[this.pos++],I=V&127,V<128||(V=y[this.pos++],I|=(V&127)<<7,V<128)||(V=y[this.pos++],I|=(V&127)<<14,V<128)||(V=y[this.pos++],I|=(V&127)<<21,V<128)?I:(V=y[this.pos],I|=(V&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?ru(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&Qv(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&Qv(I,V,this),this.pos=I-1,this.writeVarint(V),this.pos+=V},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ud,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ch,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Vd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Af,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Lh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,cd,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var V=I.buf,$,ae;if(ae=V[I.pos++],$=(ae&112)>>4,ae<128||(ae=V[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=V[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,V;if(m>=0?(I=m%4294967296|0,V=m/4294967296|0):(I=~(-m%4294967296),V=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,V=V+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,V,y),kh(V,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function kh(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function Qv(m,y,I){var V=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(V);for(var $=I.pos-1;$>=m;$--)I.buf[$+V]=I.buf[$]}function ud(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Fv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var V="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+ze>I)break;var rt,gt,Et;ze===1?ae<128&&(he=ae):ze===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):ze===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):ze===4&&(rt=m[$+1],gt=m[$+2],Et=m[$+3],(rt&192)===128&&(gt&192)===128&&(Et&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Et&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,ze=1):he>65535&&(he-=65536,V+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),V+=String.fromCharCode(he),$+=ze}return V}function ru(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var V=0,$,ae;V55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||V+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function zv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var V=I.readMessage(q1,{}),$=V.id,ae=V.bitmap,he=V.width,ze=V.height,rt=V.left,gt=V.top,Et=V.advance;y.push({id:$,bitmap:new Dv({width:he+2*$u,height:ze+2*$u},ae),metrics:{width:he,height:ze,left:rt,top:gt,advance:Et}})}}function q1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(zv,[])}var Gp=$u;function ep(m){for(var y=0,I=0,V=0,$=m;V<$.length;V+=1){var ae=$[V];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Hi,Ai){return Ai.h-Hi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),ze=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Et=0,or=m;Et=0;pr--){var Fr=ze[pr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var oi=ze.pop();pr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(y,V),this.sectionIndex=this.sectionIndex.slice(y,V)},Kh.prototype.substring=function(y,I){var V=new Kh;return V.text=this.text.substring(y,I),V.sectionIndex=this.sectionIndex.slice(y,I),V.sections=this.sections,V},Kh.prototype.toString=function(){return this.text},Kh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,V){return Math.max(I,y.sections[V].scale)},0)},Kh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(_y.forText(y.scale,y.fontStack||I));for(var V=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=$w,this.imageSectionID)};function cO(m,y){for(var I=[],V=m.text,$=0,ae=0,he=y;ae=0,Et=0,or=0;or0&&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=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;_s=gc.metrics}ao=(Pn-Za.scale)*Tn}kl?(m.verticalizable=!0,ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),_r+=_s.advance*Za.scale+gt)}if(ha.length!==0){var Wd=_r-gt;Fr=Math.max(Wd,Fr),vO(ha,0,ha.length-1,Hi,eo)}_r=0;var Xd=ae*Pn+eo;ga.lineOffset=Math.max(eo,Zn),pr+=Xd,oi=Math.max(Xd,oi),++Ai}var Qh=pr-B1,fv=CS(he),hv=fv.horizontalAlign,Ph=fv.verticalAlign;kd(m.positionedLines,Hi,hv,Ph,Fr,oi,ae,Qh,$.length),m.top+=-Ph*Qh,m.bottom=m.top+Qh,m.left+=-hv*Fr,m.right=m.left+Fr}function vO(m,y,I,V,$){if(!(!V&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,ze=(m[I].x+he)*V,rt=y;rt<=I;rt++)m[rt].x-=ze,m[rt].y+=$}function kd(m,y,I,V,$,ae,he,ze,rt){var gt=(y-I)*$,Et=0;ae!==he?Et=-ze*V-B1:Et=(-V*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var pr=_r[or],Fr=0,oi=pr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;ze-=m[he].dist(ae),ae=m[he]}ze+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;zeV;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,ze+=or.dist(_r)}return!0}function VQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/pr,oi=nl(or.x,_r.x,Fr),Hi=nl(or.y,_r.y,Fr),Ai=new jd(oi,Hi,_r.angleTo(or),Et);return Ai._round(),!he||UQ(m,Ai,ze,he,y)?Ai:void 0}rt+=pr}}function Fet(m,y,I,V,$,ae,he,ze,rt){var gt=GQ(V,ae,he),Et=HQ(V,$),or=Et*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Pn=0&&_r+gt<=Et){var Zn=new jd(xn,Pn,bn,Fr);Zn._round(),(!V||UQ(m,Zn,ae,V,$))&&pr.push(Zn)}}or+=Ai}return!ze&&!pr.length&&!he&&(pr=jQ(m,or/2,I,V,$,ae,he,!0,rt)),pr}function WQ(m,y,I,V,$){for(var ae=[],he=0;he=V&&or.x>=V)&&(Et.x>=V?Et=new u(V,Et.y+(or.y-Et.y)*((V-Et.x)/(or.x-Et.x)))._round():or.x>=V&&(or=new u(V,Et.y+(or.y-Et.y)*((V-Et.x)/(or.x-Et.x)))._round()),!(Et.y>=$&&or.y>=$)&&(Et.y>=$?Et=new u(Et.x+(or.x-Et.x)*(($-Et.y)/(or.y-Et.y)),$)._round():or.y>=$&&(or=new u(Et.x+(or.x-Et.x)*(($-Et.y)/(or.y-Et.y)),$)._round()),(!rt||!Et.equals(rt[rt.length-1]))&&(rt=[Et],ae.push(rt)),rt.push(or)))))}return ae}var t3=Gc;function XQ(m,y,I,V){var $=[],ae=m.image,he=ae.pixelRatio,ze=ae.paddedRect.w-2*t3,rt=ae.paddedRect.h-2*t3,gt=m.right-m.left,Et=m.bottom-m.top,or=ae.stretchX||[[0,ze]],_r=ae.stretchY||[[0,rt]],pr=function(Cl,yl){return Cl+yl[1]-yl[0]},Fr=or.reduce(pr,0),oi=_r.reduce(pr,0),Hi=ze-Fr,Ai=rt-oi,bn=0,nn=Fr,xn=0,Pn=oi,Zn=0,ga=Hi,ha=0,eo=Ai;if(ae.content&&V){var za=ae.content;bn=n6(or,0,za[0]),xn=n6(_r,0,za[1]),nn=n6(or,za[0],za[2]),Pn=n6(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-nn,eo=za[3]-za[1]-Pn}var Za=function(Cl,yl,Qu,gc){var Sf=a6(Cl.stretch-bn,nn,gt,m.left),Ff=o6(Cl.fixed-Zn,ga,Cl.stretch,Fr),$h=a6(yl.stretch-xn,Pn,Et,m.top),ch=o6(yl.fixed-ha,eo,yl.stretch,oi),Wd=a6(Qu.stretch-bn,nn,gt,m.left),Xd=o6(Qu.fixed-Zn,ga,Qu.stretch,Fr),Qh=a6(gc.stretch-xn,Pn,Et,m.top),fv=o6(gc.fixed-ha,eo,gc.stretch,oi),hv=new u(Sf,$h),Ph=new u(Wd,$h),dv=new u(Wd,Qh),bp=new u(Sf,Qh),wy=new u(Ff/he,ch/he),V1=new u(Xd/he,fv/he),G1=y*Math.PI/180;if(G1){var H1=Math.sin(G1),u3=Math.cos(G1),y0=[u3,-H1,H1,u3];hv._matMult(y0),Ph._matMult(y0),bp._matMult(y0),dv._matMult(y0)}var h6=Cl.stretch+Cl.fixed,wO=Qu.stretch+Qu.fixed,d6=yl.stretch+yl.fixed,TO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+t3+h6,y:ae.paddedRect.y+t3+d6,w:wO-h6,h:TO-d6},c3=ga/he/gt,v6=eo/he/Et;return{tl:hv,tr:Ph,bl:bp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:wy,pixelOffsetBR:V1,minFontScaleX:c3,minFontScaleY:v6,isSDF:I}};if(!V||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:ze+1},{fixed:0,stretch:rt+1}));else for(var Jo=ZQ(or,Hi,Fr),to=ZQ(_r,Ai,oi),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var oi=he.top*ze-rt,Hi=he.bottom*ze+rt,Ai=he.left*ze-rt,bn=he.right*ze+rt,nn=he.collisionPadding;if(nn&&(Ai-=nn[0]*ze,oi-=nn[1]*ze,bn+=nn[2]*ze,Hi+=nn[3]*ze),Et){var xn=new u(Ai,oi),Pn=new u(bn,oi),Zn=new u(Ai,Hi),ga=new u(bn,Hi),ha=Et*Math.PI/180;xn._rotate(ha),Pn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ai=Math.min(xn.x,Pn.x,Zn.x,ga.x),bn=Math.max(xn.x,Pn.x,Zn.x,ga.x),oi=Math.min(xn.y,Pn.y,Zn.y,ga.y),Hi=Math.max(xn.y,Pn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ai,oi,bn,Hi,V,$,ae)}this.boxEndIndex=y.length},r3=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=Oet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};r3.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},r3.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},r3.prototype.peek=function(){return this.data[0]},r3.prototype._up=function(y){for(var I=this,V=I.data,$=I.compare,ae=V[y];y>0;){var he=y-1>>1,ze=V[he];if($(ae,ze)>=0)break;V[y]=ze,y=he}V[y]=ae},r3.prototype._down=function(y){for(var I=this,V=I.data,$=I.compare,ae=this.length>>1,he=V[y];y=0)break;V[y]=rt,y=ze}V[y]=he};function Oet(m,y){return my?1:0}function qet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var V=1/0,$=1/0,ae=-1/0,he=-1/0,ze=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Et=ae-V,or=he-$,_r=Math.min(Et,or),pr=_r/2,Fr=new r3([],Bet);if(_r===0)return new u(V,$);for(var oi=V;oiAi.d||!Ai.d)&&(Ai=nn,I&&console.log("found best %d after %d probes",Math.round(1e4*nn.d)/1e4,bn)),!(nn.max-Ai.d<=y)&&(pr=nn.h/2,Fr.push(new i3(nn.p.x-pr,nn.p.y-pr,pr,m)),Fr.push(new i3(nn.p.x+pr,nn.p.y-pr,pr,m)),Fr.push(new i3(nn.p.x-pr,nn.p.y+pr,pr,m)),Fr.push(new i3(nn.p.x+pr,nn.p.y+pr,pr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ai.d)),Ai.p}function Bet(m,y){return y.max-m.max}function i3(m,y,I,V){this.p=new u(m,y),this.h=I,this.d=Net(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Net(m,y){for(var I=!1,V=1/0,$=0;$m.y!=Et.y>m.y&&m.x<(Et.x-gt.x)*(m.y-gt.y)/(Et.y-gt.y)+gt.x&&(I=!I),V=Math.min(V,hg(m,gt,Et))}return(I?1:-1)*Math.sqrt(V)}function Uet(m){for(var y=0,I=0,V=0,$=m[0],ae=0,he=$.length,ze=he-1;ae=Ci||y0.y<0||y0.y>=Ci||Het(m,y0,u3,I,V,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ai,Pn,ha,rt,nn,Zn,eo,pr,y,ae,gt,Et,he)};if(za==="line")for(var _s=0,jo=WQ(y.geometry,0,0,Ci,Ci);_s1){var $h=Det(Ff,ga,I.vertical||Fr,V,oi,bn);$h&&ao(Ff,$h)}}else if(y.type==="Polygon")for(var ch=0,Wd=Ww(y.geometry,0);chN1&&re(m.layerIds[0]+': Value for "text-size" is >= '+LS+'. Reduce your "text-size".')):Hi.kind==="composite"&&(Ai=[Cd*pr.compositeTextSizes[0].evaluate(he,{},Fr),Cd*pr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ai[0]>N1||Ai[1]>N1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+LS+'. Reduce your "text-size".')),m.addSymbols(m.text,oi,Ai,ze,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,nn=Et;bnN1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+LS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Ph=[Cd*Pn.compositeIconSizes[0].evaluate(xn,{},ga),Cd*Pn.compositeIconSizes[1].evaluate(xn,{},ga)],(Ph[0]>N1||Ph[1]>N1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+LS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Qh,Ph,nn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Ph,nn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),Cl=m.icon.placedSymbolArray.length-1)}for(var dv in V.horizontal){var bp=V.horizontal[dv];if(!Za){Qu=K(bp.text);var wy=ze.layout.get("text-rotate").evaluate(xn,{},ga);Za=new s6(rt,y,gt,Et,or,bp,_r,pr,Fr,wy)}var V1=bp.positionedLines.length===1;if(El+=KQ(m,y,bp,ae,ze,Fr,xn,oi,za,V.vertical?uv.horizontal:uv.horizontalOnly,V1?Object.keys(V.horizontal):[dv],yl,kl,Pn,ga),V1)break}V.vertical&&(Iu+=KQ(m,y,V.vertical,ae,ze,Fr,xn,oi,za,uv.vertical,["vertical"],yl,Cl,Pn,ga));var G1=Za?Za.boxStartIndex:m.collisionBoxArray.length,H1=Za?Za.boxEndIndex:m.collisionBoxArray.length,u3=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,h6=Jo?Jo.boxStartIndex:m.collisionBoxArray.length,wO=Jo?Jo.boxEndIndex:m.collisionBoxArray.length,d6=ao?ao.boxStartIndex:m.collisionBoxArray.length,TO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,c3=function(RS,dee){return RS&&RS.circleDiameter?Math.max(RS.circleDiameter,dee):dee};Hp=c3(Za,Hp),Hp=c3(to,Hp),Hp=c3(Jo,Hp),Hp=c3(ao,Hp);var v6=Hp>-1?1:0;v6&&(Hp*=ha/Tn),m.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&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.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,u3,y0,h6,wO,d6,TO,gt,El,Iu,_s,jo,v6,0,_r,gc,Sf,Hp)}function jet(m,y,I,V){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(V.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Et=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Et)){for(var _r=I.iconDependencies,pr=I.glyphDependencies,Fr=I.availableImages,oi=new Gn(this.zoom),Hi=0,Ai=y;Hi=0;for(var Iu=0,kl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},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(y,I){for(var V=y.placedSymbolArray.get(I),$=V.vertexStartIndex+V.numGlyphs*4,ae=V.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),V=Math.cos(y),$=[],ae=[],he=[],ze=0;ze1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var ae=$[V],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(ze,rt,gt){ze>=0&>.indexOf(ze)===rt&&I.addIndicesForPlacedSymbol(I.text,ze)}),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=mO;function Yet(m,y){return y.replace(/{([^{}]+)}/g,function(I,V){return V in m?String(m[V]):""})}var Ket=new Nr({"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"])}),Jet=new Nr({"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(m){return m.textColor},hasOverride:function(m){return!!m.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"])}),yO={paint:Jet,layout:Ket},o3=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};o3.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},o3.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},o3.prototype.outputDefined=function(){return!1},o3.prototype.serialize=function(){return null},X("FormatSectionOverride",o3,{omit:["defaultValue"]});var $et=function(m){function y(I){m.call(this,I,yO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(V,$){if(m.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 ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],ze=0,rt=ae;ze",targetMapId:$,sourceMapId:he.mapId})}}},s3.prototype.receive=function(y){var I=y.data,V=I.id;if(V&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Le()||I.mustQueue?(this.tasks[V]=I,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,I)},s3.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},s3.prototype.processTask=function(y,I){var V=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],ze=I.hasCallback?function(_r,pr){ae=!0,delete V.cancelCallbacks[y],V.target.postMessage({id:y,type:"",sourceMapId:V.mapId,error:_r?He(_r):null,data:He(pr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,ze);else if(this.parent.getWorkerSource){var Et=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Et[0],gt.source);rt=or[Et[1]](gt,ze)}else ze(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},s3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function utt(m,y,I){y=Math.pow(2,I)-y-1;var V=ree(m*256,y*256,I),$=ree((m+1)*256,(y+1)*256,I);return V[0]+","+V[1]+","+$[0]+","+$[1]}function ree(m,y,I){var V=2*Math.PI*6378137/256/Math.pow(2,I),$=m*V-2*Math.PI*6378137/2,ae=y*V-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,V=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var ze=y;return this.extend(Hc.convert(ze))}return this}return!I&&!V?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),V.lng=Math.max(ae.lng,V.lng),V.lat=Math.max(ae.lat,V.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(y){var I=Hc.convert(y),V=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=V&&V>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var iee=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,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(y){var I=Math.PI/180,V=this.lat*I,$=y.lat*I,ae=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=iee*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,V=360*y/I,$=V/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-V),new Hc(this.lng+$,this.lat+V))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.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 nee=2*Math.PI*iee;function aee(m){return nee*Math.cos(m*Math.PI/180)}function oee(m){return(180+m)/360}function see(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function lee(m,y){return m/aee(y)}function ctt(m){return m*360-180}function xO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function ftt(m,y){return m*aee(xO(y))}function htt(m){return 1/Math.cos(m*Math.PI/180)}var db=function(y,I,V){V===void 0&&(V=0),this.x=+y,this.y=+I,this.z=+V};db.fromLngLat=function(y,I){I===void 0&&(I=0);var V=Hc.convert(y);return new db(oee(V.lng),see(V.lat),lee(I,V.lat))},db.prototype.toLngLat=function(){return new Hc(ctt(this.x),xO(this.y))},db.prototype.toAltitude=function(){return ftt(this.z,this.y)},db.prototype.meterInMercatorCoordinateUnits=function(){return 1/nee*htt(xO(this.y))};var vb=function(y,I,V){this.z=y,this.x=I,this.y=V,this.key=IS(0,y,y,I,V)};vb.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},vb.prototype.url=function(y,I){var V=utt(this.x,this.y,this.z),$=dtt(this.z,this.x,this.y);return y[(this.x+this.y)%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}",V)},vb.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},vb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var uee=function(y,I){this.wrap=y,this.canonical=I,this.key=IS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,V,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new vb(V,+$,+ae),this.key=IS(I,y,V,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var V=this.canonical.z-y;return y>this.canonical.z?IS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):IS(this.wrap*+I,y,y,this.canonical.x>>V,this.canonical.y>>V)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,V,$),new uh(I,this.wrap,I,V+1,$),new uh(I,this.wrap,I,V,$+1),new uh(I,this.wrap,I,V+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=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+(y+1)},xy.prototype._unpackMapbox=function(y,I,V){return(y*256*256+I*256+V)/10-1e4},xy.prototype._unpackTerrarium=function(y,I,V){return y*256+I+V/256-32768},xy.prototype.getPixels=function(){return new Eh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},xy.prototype.backfillBorder=function(y,I,V){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=V*this.dim,ze=V*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(V){case-1:he=ze-1;break;case 1:ze=he+1;break}for(var rt=-I*this.dim,gt=-V*this.dim,Et=he;Et=0&&or[3]>=0&&rt.insert(ze,or[0],or[1],or[2],or[3])}},by.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new mg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new c6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},by.prototype.query=function(y,I,V,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},ze=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Et=y.queryPadding*ze,or=fee(gt),_r=this.grid.query(or.minX-Et,or.minY-Et,or.maxX+Et,or.maxY+Et),pr=fee(y.cameraQueryGeometry),Fr=this.grid3D.query(pr.minX-Et,pr.minY-Et,pr.maxX+Et,pr.maxY+Et,function(Zn,ga,ha,eo){return mp(y.cameraQueryGeometry,Zn-Et,ga-Et,ha+Et,eo+Et)}),oi=0,Hi=Fr;oi$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ha.maxzoom)&&Ha.visibility!=="none"){h(Wn,this.zoom,nr);var vo=$i[Ha.id]=Ha.createBucket({index:Oi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(ua,tn,this.tileID.canonical),Oi.bucketLayerIDs.push(Wn.map(function(Li){return Li.id}))}}}}var jn,Mt,kr,Jr,vi=i.mapObject(tn.glyphDependencies,function(Li){return Object.keys(Li).map(Number)});Object.keys(vi).length?Er.send("getGlyphs",{uid:this.uid,stacks:vi},function(Li,_n){jn||(jn=Li,Mt=_n,Mn.call(ri))}):Mt={};var hn=Object.keys(tn.iconDependencies);hn.length?Er.send("getImages",{icons:hn,source:this.source,tileID:this.tileID,type:"icons"},function(Li,_n){jn||(jn=Li,kr=_n,Mn.call(ri))}):kr={};var An=Object.keys(tn.patternDependencies);An.length?Er.send("getImages",{icons:An,source:this.source,tileID:this.tileID,type:"patterns"},function(Li,_n){jn||(jn=Li,Jr=_n,Mn.call(ri))}):Jr={},Mn.call(this);function Mn(){if(jn)return Xr(jn);if(Mt&&kr&&Jr){var Li=new c(Mt),_n=new i.ImageAtlas(kr,Jr);for(var ya in $i){var $n=$i[ya];$n instanceof i.SymbolBucket?(h($n.layers,this.zoom,nr),i.performSymbolLayout($n,Mt,Li.positions,kr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):$n.hasPattern&&($n instanceof i.LineBucket||$n instanceof i.FillBucket||$n instanceof i.FillExtrusionBucket)&&(h($n.layers,this.zoom,nr),$n.addFeatures(tn,this.tileID.canonical,_n.patternPositions))}this.status="done",Xr(null,{buckets:i.values($i).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:Oi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Li.image,imageAtlas:_n,glyphMap:this.returnDependencies?Mt:null,iconMap:this.returnDependencies?kr:null,glyphPositions:this.returnDependencies?Li.positions:null})}}};function h(Ut,wt,rr){for(var nr=new i.EvaluationParameters(wt),Er=0,Xr=Ut;Er=0!=!!wt&&Ut.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=[],rr=0,nr=this._feature.geometry;rr>31}function Le(Ut,wt){for(var rr=Ut.loadGeometry(),nr=Ut.type,Er=0,Xr=0,ri=rr.length,Qr=0;Qr>1;Se(Ut,wt,ri,nr,Er,Xr%2),ie(Ut,wt,rr,nr,ri-1,Xr+1),ie(Ut,wt,rr,ri+1,Er,Xr+1)}}function Se(Ut,wt,rr,nr,Er,Xr){for(;Er>nr;){if(Er-nr>600){var ri=Er-nr+1,Qr=rr-nr+1,Oi=Math.log(ri),$i=.5*Math.exp(2*Oi/3),tn=.5*Math.sqrt(Oi*$i*(ri-$i)/ri)*(Qr-ri/2<0?-1:1),fn=Math.max(nr,Math.floor(rr-Qr*$i/ri+tn)),yn=Math.min(Er,Math.floor(rr+(ri-Qr)*$i/ri+tn));Se(Ut,wt,rr,fn,yn,Xr)}var Sn=wt[2*rr+Xr],Ba=nr,ua=Er;for(Ee(Ut,wt,nr,rr),wt[2*Er+Xr]>Sn&&Ee(Ut,wt,nr,Er);BaSn;)ua--}wt[2*nr+Xr]===Sn?Ee(Ut,wt,nr,ua):(ua++,Ee(Ut,wt,ua,Er)),ua<=rr&&(nr=ua+1),rr<=ua&&(Er=ua-1)}}function Ee(Ut,wt,rr,nr){Ae(Ut,rr,nr),Ae(wt,2*rr,2*nr),Ae(wt,2*rr+1,2*nr+1)}function Ae(Ut,wt,rr){var nr=Ut[wt];Ut[wt]=Ut[rr],Ut[rr]=nr}function Be(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=[0,Ut.length-1,0],Oi=[],$i,tn;Qr.length;){var fn=Qr.pop(),yn=Qr.pop(),Sn=Qr.pop();if(yn-Sn<=ri){for(var Ba=Sn;Ba<=yn;Ba++)$i=wt[2*Ba],tn=wt[2*Ba+1],$i>=rr&&$i<=Er&&tn>=nr&&tn<=Xr&&Oi.push(Ut[Ba]);continue}var ua=Math.floor((Sn+yn)/2);$i=wt[2*ua],tn=wt[2*ua+1],$i>=rr&&$i<=Er&&tn>=nr&&tn<=Xr&&Oi.push(Ut[ua]);var ma=(fn+1)%2;(fn===0?rr<=$i:nr<=tn)&&(Qr.push(Sn),Qr.push(ua-1),Qr.push(ma)),(fn===0?Er>=$i:Xr>=tn)&&(Qr.push(ua+1),Qr.push(yn),Qr.push(ma))}return Oi}function Pe(Ut,wt,rr,nr,Er,Xr){for(var ri=[0,Ut.length-1,0],Qr=[],Oi=Er*Er;ri.length;){var $i=ri.pop(),tn=ri.pop(),fn=ri.pop();if(tn-fn<=Xr){for(var yn=fn;yn<=tn;yn++)me(wt[2*yn],wt[2*yn+1],rr,nr)<=Oi&&Qr.push(Ut[yn]);continue}var Sn=Math.floor((fn+tn)/2),Ba=wt[2*Sn],ua=wt[2*Sn+1];me(Ba,ua,rr,nr)<=Oi&&Qr.push(Ut[Sn]);var ma=($i+1)%2;($i===0?rr-Er<=Ba:nr-Er<=ua)&&(ri.push(fn),ri.push(Sn-1),ri.push(ma)),($i===0?rr+Er>=Ba:nr+Er>=ua)&&(ri.push(Sn+1),ri.push(tn),ri.push(ma))}return Qr}function me(Ut,wt,rr,nr){var Er=Ut-rr,Xr=wt-nr;return Er*Er+Xr*Xr}var De=function(Ut){return Ut[0]},ce=function(Ut){return Ut[1]},je=function(wt,rr,nr,Er,Xr){rr===void 0&&(rr=De),nr===void 0&&(nr=ce),Er===void 0&&(Er=64),Xr===void 0&&(Xr=Float64Array),this.nodeSize=Er,this.points=wt;for(var ri=wt.length<65536?Uint16Array:Uint32Array,Qr=this.ids=new ri(wt.length),Oi=this.coords=new Xr(wt.length*2),$i=0;$i=Er;tn--){var fn=+Date.now();Oi=this._cluster(Oi,tn),this.trees[tn]=new je(Oi,$e,St,ri,Float32Array),nr&&console.log("z%d: %d clusters in %dms",tn,Oi.length,+Date.now()-fn)}return nr&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(wt,rr){var nr=((wt[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,wt[1])),Xr=wt[2]===180?180:((wt[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,wt[3]));if(wt[2]-wt[0]>=360)nr=-180,Xr=180;else if(nr>Xr){var Qr=this.getClusters([nr,Er,180,ri],rr),Oi=this.getClusters([-180,Er,Xr,ri],rr);return Qr.concat(Oi)}for(var $i=this.trees[this._limitZoom(rr)],tn=$i.range(Nt(nr),$t(ri),Nt(Xr),$t(Er)),fn=[],yn=0,Sn=tn;ynrr&&(ua+=Xo.numPoints||1)}if(ua>=Oi){for(var da=fn.x*Ba,Wn=fn.y*Ba,Ha=Qr&&Ba>1?this._map(fn,!0):null,vo=(tn<<5)+(rr+1)+this.points.length,jn=0,Mt=Sn;jn1)for(var hn=0,An=Sn;hn>5},pt.prototype._getOriginZoom=function(wt){return(wt-this.points.length)%32},pt.prototype._map=function(wt,rr){if(wt.numPoints)return rr?fr({},wt.properties):wt.properties;var nr=this.points[wt.index].properties,Er=this.options.map(nr);return rr&&Er===nr?fr({},Er):Er};function Vt(Ut,wt,rr,nr,Er){return{x:Ut,y:wt,zoom:1/0,id:rr,parentId:-1,numPoints:nr,properties:Er}}function ot(Ut,wt){var rr=Ut.geometry.coordinates,nr=rr[0],Er=rr[1];return{x:Nt(nr),y:$t(Er),zoom:1/0,index:wt,parentId:-1}}function ut(Ut){return{type:"Feature",id:Ut.id,properties:Wt(Ut),geometry:{type:"Point",coordinates:[sr(Ut.x),Tr(Ut.y)]}}}function Wt(Ut){var wt=Ut.numPoints,rr=wt>=1e4?Math.round(wt/1e3)+"k":wt>=1e3?Math.round(wt/100)/10+"k":wt;return fr(fr({},Ut.properties),{cluster:!0,cluster_id:Ut.id,point_count:wt,point_count_abbreviated:rr})}function Nt(Ut){return Ut/360+.5}function $t(Ut){var wt=Math.sin(Ut*Math.PI/180),rr=.5-.25*Math.log((1+wt)/(1-wt))/Math.PI;return rr<0?0:rr>1?1:rr}function sr(Ut){return(Ut-.5)*360}function Tr(Ut){var wt=(180-Ut*360)*Math.PI/180;return 360*Math.atan(Math.exp(wt))/Math.PI-90}function fr(Ut,wt){for(var rr in wt)Ut[rr]=wt[rr];return Ut}function $e(Ut){return Ut.x}function St(Ut){return Ut.y}function Qt(Ut,wt,rr,nr){for(var Er=nr,Xr=rr-wt>>1,ri=rr-wt,Qr,Oi=Ut[wt],$i=Ut[wt+1],tn=Ut[rr],fn=Ut[rr+1],yn=wt+3;ynEr)Qr=yn,Er=Sn;else if(Sn===Er){var Ba=Math.abs(yn-Xr);Banr&&(Qr-wt>3&&Qt(Ut,wt,Qr,nr),Ut[Qr+2]=Er,rr-Qr>3&&Qt(Ut,Qr,rr,nr))}function Gt(Ut,wt,rr,nr,Er,Xr){var ri=Er-rr,Qr=Xr-nr;if(ri!==0||Qr!==0){var Oi=((Ut-rr)*ri+(wt-nr)*Qr)/(ri*ri+Qr*Qr);Oi>1?(rr=Er,nr=Xr):Oi>0&&(rr+=ri*Oi,nr+=Qr*Oi)}return ri=Ut-rr,Qr=wt-nr,ri*ri+Qr*Qr}function _t(Ut,wt,rr,nr){var Er={id:typeof Ut=="undefined"?null:Ut,type:wt,geometry:rr,tags:nr,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return It(Er),Er}function It(Ut){var wt=Ut.geometry,rr=Ut.type;if(rr==="Point"||rr==="MultiPoint"||rr==="LineString")mt(Ut,wt);else if(rr==="Polygon"||rr==="MultiLineString")for(var nr=0;nr0&&(nr?ri+=(Er*$i-Oi*Xr)/2:ri+=Math.sqrt(Math.pow(Oi-Er,2)+Math.pow($i-Xr,2))),Er=Oi,Xr=$i}var tn=wt.length-3;wt[2]=1,Qt(wt,0,tn,rr),wt[tn+2]=1,wt.size=Math.abs(ri),wt.start=0,wt.end=wt.size}function ti(Ut,wt,rr,nr){for(var Er=0;Er1?1:rr}function dt(Ut,wt,rr,nr,Er,Xr,ri,Qr){if(rr/=wt,nr/=wt,Xr>=rr&&ri=nr)return null;for(var Oi=[],$i=0;$i=rr&&Ba=nr)continue;var ua=[];if(yn==="Point"||yn==="MultiPoint")Ge(fn,ua,rr,nr,Er);else if(yn==="LineString")Je(fn,ua,rr,nr,Er,!1,Qr.lineMetrics);else if(yn==="MultiLineString")tt(fn,ua,rr,nr,Er,!1);else if(yn==="Polygon")tt(fn,ua,rr,nr,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=rr&&ri<=nr&&(wt.push(Ut[Xr]),wt.push(Ut[Xr+1]),wt.push(Ut[Xr+2]))}}function Je(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=We(Ut),Oi=Er===0?Ie:xe,$i=Ut.start,tn,fn,yn=0;ynrr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,rr),ri&&(Qr.start=$i+tn*fn)):Fa>nr?Xo=rr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,rr),da=!0),Xo>nr&&Fa<=nr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,nr),da=!0),!Xr&&da&&(ri&&(Qr.end=$i+tn*fn),wt.push(Qr),Qr=We(Ut)),ri&&($i+=tn)}var Wn=Ut.length-3;Sn=Ut[Wn],Ba=Ut[Wn+1],ua=Ut[Wn+2],Fa=Er===0?Sn:Ba,Fa>=rr&&Fa<=nr&&xt(Qr,Sn,Ba,ua),Wn=Qr.length-3,Xr&&Wn>=3&&(Qr[Wn]!==Qr[0]||Qr[Wn+1]!==Qr[1])&&xt(Qr,Qr[0],Qr[1],Qr[2]),Qr.length&&wt.push(Qr)}function We(Ut){var wt=[];return wt.size=Ut.size,wt.start=Ut.start,wt.end=Ut.end,wt}function tt(Ut,wt,rr,nr,Er,Xr){for(var ri=0;riri.maxX&&(ri.maxX=tn),fn>ri.maxY&&(ri.maxY=fn)}return ri}function pi(Ut,wt,rr,nr){var Er=wt.geometry,Xr=wt.type,ri=[];if(Xr==="Point"||Xr==="MultiPoint")for(var Qr=0;Qr0&&wt.size<(Er?ri:nr)){rr.numPoints+=wt.length/3;return}for(var Qr=[],Oi=0;Oiri)&&(rr.numSimplified++,Qr.push(wt[Oi]),Qr.push(wt[Oi+1])),rr.numPoints++;Er&&di(Qr,Xr),Ut.push(Qr)}function di(Ut,wt){for(var rr=0,nr=0,Er=Ut.length,Xr=Er-2;nr0===wt)for(nr=0,Er=Ut.length;nr24)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 nr=er(Ut,wt);this.tiles={},this.tileCoords=[],rr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",wt.indexMaxZoom,wt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),nr=ke(nr,wt),nr.length&&this.splitTile(nr,0,0,0),rr&&(nr.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)))}In.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},In.prototype.splitTile=function(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=[Ut,wt,rr,nr],Oi=this.options,$i=Oi.debug;Qr.length;){nr=Qr.pop(),rr=Qr.pop(),wt=Qr.pop(),Ut=Qr.pop();var tn=1<1&&console.time("creation"),yn=this.tiles[fn]=ii(Ut,wt,rr,nr,Oi),this.tileCoords.push({z:wt,x:rr,y:nr}),$i)){$i>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",wt,rr,nr,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Sn="z"+wt;this.stats[Sn]=(this.stats[Sn]||0)+1,this.total++}if(yn.source=Ut,Er){if(wt===Oi.maxZoom||wt===Er)continue;var Ba=1<1&&console.time("clipping");var ua=.5*Oi.buffer/Oi.extent,ma=.5-ua,Wa=.5+ua,Fa=1+ua,Xo,da,Wn,Ha,vo,jn;Xo=da=Wn=Ha=null,vo=dt(Ut,tn,rr-ua,rr+Wa,0,yn.minX,yn.maxX,Oi),jn=dt(Ut,tn,rr+ma,rr+Fa,0,yn.minX,yn.maxX,Oi),Ut=null,vo&&(Xo=dt(vo,tn,nr-ua,nr+Wa,1,yn.minY,yn.maxY,Oi),da=dt(vo,tn,nr+ma,nr+Fa,1,yn.minY,yn.maxY,Oi),vo=null),jn&&(Wn=dt(jn,tn,nr-ua,nr+Wa,1,yn.minY,yn.maxY,Oi),Ha=dt(jn,tn,nr+ma,nr+Fa,1,yn.minY,yn.maxY,Oi),jn=null),$i>1&&console.timeEnd("clipping"),Qr.push(Xo||[],wt+1,rr*2,nr*2),Qr.push(da||[],wt+1,rr*2,nr*2+1),Qr.push(Wn||[],wt+1,rr*2+1,nr*2),Qr.push(Ha||[],wt+1,rr*2+1,nr*2+1)}}},In.prototype.getTile=function(Ut,wt,rr){var nr=this.options,Er=nr.extent,Xr=nr.debug;if(Ut<0||Ut>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Ut,wt,rr);for(var Oi=Ut,$i=wt,tn=rr,fn;!fn&&Oi>0;)Oi--,$i=Math.floor($i/2),tn=Math.floor(tn/2),fn=this.tiles[wi(Oi,$i,tn)];return!fn||!fn.source?null:(Xr>1&&console.log("found parent tile z%d-%d-%d",Oi,$i,tn),Xr>1&&console.time("drilling down"),this.splitTile(fn.source,Oi,$i,tn,Ut,wt,rr),Xr>1&&console.timeEnd("drilling down"),this.tiles[Qr]?ar(this.tiles[Qr],Er):null)};function wi(Ut,wt,rr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],Qe=Ve.width,at=Ve.height,Ct=Ve.x,Ot=Ve.y,Rt=Ve.sdf,Bt=Ve.pixelRatio,Dt=Ve.stretchX,yt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:Qe,height:at});i.RGBAImage.copy(Zt,ht,{x:Ct,y:Ot},{x:0,y:0},{width:Qe,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:Rt,stretchX:Dt,stretchY:yt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=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(q){if(this.loaded!==q&&(this.loaded=q,q)){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),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:Qe});return}var Ct=Ve.requests[at];Ct||(Ct=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,Rt){if(Rt){for(var Bt in Rt)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=Rt[+Bt]);Ve.ranges[at]=!0}for(var Dt=0,yt=Ct;Dt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),Qe=void 0,at=de/q*(K+1);if(ft.isDash){var Ct=K-Math.abs(at);Qe=Math.sqrt(Ve*Ve+Ct*Ct)}else Qe=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,Qe+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.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,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),Qe=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,Qe+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,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(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){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,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.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),Ce=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Le=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,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,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.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(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.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 q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,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(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.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,q=-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=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,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 q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.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(q,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}(Le),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.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"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.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=q,this.animate=q.animate!==void 0?q.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(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!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,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||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 q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},ot.prototype.has=function(D){return D.wrapped().key in this.data},ot.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},ot.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},ot.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},ot.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},ot.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},ot.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},ot.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[Qe]&&(ft.neighboringTiles[Qe].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ur){return new i.OverscaledTileID(Ur.canonical.z,Ur.wrap,Ur.canonical.z,Ur.canonical.x,Ur.canonical.y)}):(de=q.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(Ur){return K._source.hasTile(Ur)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(Oi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,Qe=qt;Vethis._source.maxzoom){var Rt=Ct.children(this._source.maxzoom)[0],Bt=this.getTile(Rt);if(Bt&&Bt.hasData()){de[Rt.key]=Rt;continue}}else{var Dt=Ct.children(this._source.maxzoom);if(de[Dt[0].key]&&de[Dt[1].key]&&de[Dt[2].key]&&de[Dt[3].key])continue}for(var yt=Ot.wasRequested(),Pt=Ct.overscaledZ-1;Pt>=we;--Pt){var ht=Ct.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&yt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,yt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].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 Ue=0,ft=K;Ue0)&&(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 q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,Qe=1/0,at=-1/0,Ct=-1/0,Ot=0,Rt=hr;Ot=0&&Di[1].y+Ur>=0){var fi=Zt.map(function(gn){return ur.getTilePoint(gn)}),Ti=hr.map(function(gn){return ur.getTilePoint(gn)});we.push({tile:ht,tileID:ur,queryGeometry:fi,cameraQueryGeometry:Ti,scale:br})}}},yt=0;yt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function Qr(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function Oi(Y){return Y==="raster"||Y==="image"||Y==="video"}function $i(){return new i.window.Worker(io.workerUrl)}var tn="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-Ue).add(this.points[J].mult(Ue))};var Li=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},Li.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},Li.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},Li.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},Li.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},Li.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[Qe]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[Qe],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var Ct=this.circleCells[de];if(Ct!==null)for(var Ot=this.circles,Rt=0,Bt=Ct;Rtwe*we+Ue*Ue},Li.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function $n(Y,D){var J=[Y.x,Y.y,0,1];zl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,Qe=J.transform.width/J.transform.height,at=!1,Ct=0;Ctde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function ko(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var Qe=D/24,at=Y.lineOffsetX*Qe,Ct=Y.lineOffsetY*Qe,Ot;if(Y.numGlyphs>1){var Rt=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Dt=Y.lineStartIndex+Y.lineLength,yt=po(Qe,we,at,Ct,J,Zt,hr,Y,Ue,de,qt);if(!yt)return{notEnoughRoom:!0};var Pt=$n(yt.first.point,ne).point,ht=$n(yt.last.point,ne).point;if(q&&!J){var ur=Lo(Y.writingMode,Pt,ht,Ve);if(ur)return ur}Ot=[yt.first];for(var br=Y.glyphStartIndex+1;br0?Ti.point:Ds(hr,fi,Ur,1,K),rn=Lo(Y.writingMode,Ur,gn,Ve);if(rn)return rn}var Ci=Fs(Qe*we.getoffsetX(Y.glyphStartIndex),at,Ct,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var Bi=0,Gi=Ot;Bi0?1:-1,Qe=0;q&&(Ve*=-1,Qe=Math.PI),Ve<0&&(Qe+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,Ct=K,Ot=K,Rt=0,Bt=0,Dt=Math.abs(qt),yt=[];Rt+Bt<=Dt;){if(at+=Ve,at=Ue)return null;if(Ot=Ct,yt.push(Ct),Ct=hr[at],Ct===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=$n(Pt,Zt);if(ht.signedDistanceFromCamera>0)Ct=hr[at]=ht.point;else{var ur=at-Ve,br=Rt===0?de:new i.Point(ft.getx(ur),ft.gety(ur));Ct=Ds(br,Pt,Ot,Dt-Rt+1,Zt)}}Rt+=Bt,Bt=Ot.dist(Ct)}var Ur=(Dt-Rt)/Bt,Di=Ct.sub(Ot),fi=Di.mult(Ur)._add(Ot);fi._add(Di._unit()._perp()._mult(J*Ve));var Ti=Qe+Math.atan2(Ct.y-Ot.y,Ct.x-Ot.x);return yt.push(fi),{point:fi,angle:Ti,path:yt}}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;sn--)Gi.push(Ci.path[sn]);for(var zn=1;zn0){for(var so=Gi[0].clone(),Yo=Gi[0].clone(),ms=1;ms=Ti.x&&Yo.x<=gn.x&&so.y>=Ti.y&&Yo.y<=gn.y?ts=[Gi]:Yo.xgn.x||Yo.ygn.y?ts=[]:ts=i.clipLine([Gi],Ti.x,Ti.y,gn.x,gn.y)}for(var ou=0,Cv=ts;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},il.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Dt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Dt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:Ct,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Dt},this.markUsedJustification(Ve,D,qt,Qe),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,Qe,qt),this.placedOrientations[qt.crossTileID]=Qe),{shift:Ot,placedGlyphBoxes:Rt}}},bs.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,Qe=de.partiallyEvaluatedTextSize,at=de.collisionGroup,Ct=we.get("text-optional"),Ot=we.get("icon-optional"),Rt=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Dt=we.get("text-rotation-alignment")==="map",yt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",ur=Rt&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(Rt||!ne.hasTextData()||Ct);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Ur=function(Ci,Bi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new zs(!1,!1,!1);return}var Gi=!1,sn=!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;Bi.textFeatureIndex?ou=Bi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(ou=Ci.featureIndex),Bi.verticalTextFeatureIndex&&(Cv=Bi.verticalTextFeatureIndex);var wd=Bi.textBox;if(wd){var Kv=function(vc){var tu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,tu=Sd,K.markUsedOrientation(ne,tu,Ci))}return tu},hg=function(vc,tu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&Bi.verticalTextBox)for(var Sd=0,vy=ne.writingModes;Sd0&&(Ud=Ud.filter(function(vc){return vc!==Ad.anchor}),Ud.unshift(Ad.anchor))}var Pv=function(vc,tu,Sd){for(var vy=vc.x2-vc.x1,L1=vc.y2-vc.y1,wu=Ci.textBoxScale,Yx=Pt&&!Bt?tu:null,lm={box:[],offscreen:!1},Ow=Rt?Ud.length*2:Ud.length,Rv=0;Rv=Ud.length,Kx=K.attemptAnchorPlacement(um,vc,vy,L1,wu,Dt,yt,hr,Ue,at,qw,Ci,ne,Sd,Yx);if(Kx&&(lm=Kx.placedGlyphBoxes,lm&&lm.box&&lm.box.length)){Gi=!0,Ja=Kx.shift;break}}return lm},Jv=function(){return Pv(wd,Bi.iconBox,i.WritingMode.horizontal)},Iv=function(){var vc=Bi.verticalTextBox,tu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!tu&&Ci.numVerticalGlyphVertices>0&&vc?Pv(vc,Bi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Jv,Iv),co&&(Gi=co.box,zn=co.offscreen);var fy=Kv(co&&co.box);if(!Gi&&K.prevPlacement){var dg=K.prevPlacement.variableOffsets[Ci.crossTileID];dg&&(K.variableOffsets[Ci.crossTileID]=dg,K.markUsedJustification(ne,dg.anchor,Ci,fy))}}else{var gp=function(vc,tu){var Sd=K.collisionIndex.placeCollisionBox(vc,Rt,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,tu,Ci),K.placedOrientations[Ci.crossTileID]=tu),Sd},Td=function(){return gp(wd,i.WritingMode.horizontal)},mp=function(){var vc=Bi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.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,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),vg=i.evaluateSizeForFeature(ne.textSizeData,Qe,oh),hy=we.get("text-padding"),Zh=Ci.collisionCircleDiameter;Yo=K.collisionIndex.placeCollisionCircles(Rt,oh,ne.lineVertexArray,ne.glyphOffsetArray,vg,Ue,ft,Zt,q,yt,at.predicate,Zh,hy),Gi=Rt||Yo.circles.length>0&&!Yo.collisionDetected,zn=zn&&Yo.offscreen}if(Bi.iconFeatureIndex&&(Lv=Bi.iconFeatureIndex),Bi.iconBox){var am=function(vc){var tu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Dt,yt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(tu,Bt,hr,Ue,at.predicate)};ts&&ts.box&&ts.box.length&&Bi.verticalIconBox?(ms=am(Bi.verticalIconBox),sn=ms.box.length>0):(ms=am(Bi.iconBox),sn=ms.box.length>0),zn=zn&&ms.offscreen}var k1=Ct||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,C1=Ot||Ci.numIconVertices===0;if(!k1&&!C1?sn=Gi=sn&&Gi:C1?k1||(sn=sn&&Gi):Gi=sn&&Gi,Gi&&so&&so.box&&(ts&&ts.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID)),sn&&ms&&K.collisionIndex.insertCollisionBox(ms.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Lv,at.ID),Yo&&(Gi&&K.collisionIndex.insertCollisionCircles(Yo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID),q)){var dy=ne.bucketInstanceId,om=K.collisionCircleArrays[dy];om===void 0&&(om=K.collisionCircleArrays[dy]=new Io);for(var sm=0;sm=0;--fi){var Ti=Di[fi];Ur(ne.symbolInstances.get(Ti),ne.collisionArrays[Ti])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},bs.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||yt>0,Ur=Bt.numIconVertices>0,Di=K.placedOrientations[Bt.crossTileID],fi=Di===i.WritingMode.vertical,Ti=Di===i.WritingMode.horizontal||Di===i.WritingMode.horizontalOnly;if(br){var gn=ac(ur.text),rn=fi?aa:gn;Qe(D.text,Dt,rn);var Ci=Ti?aa:gn;Qe(D.text,yt,Ci);var Bi=ur.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(Lv){Lv>=0&&(D.text.placedSymbolArray.get(Lv).hidden=Bi||fi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=Bi||Ti?1:0);var Gi=K.variableOffsets[Bt.crossTileID];Gi&&K.markUsedJustification(D,Gi.anchor,Bt,Di);var sn=K.placedOrientations[Bt.crossTileID];sn&&(K.markUsedJustification(D,"left",Bt,sn),K.markUsedOrientation(D,sn,Bt))}if(Ur){var zn=ac(ur.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&fi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?zn:aa;Qe(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=ur.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var ts=Ja?aa:zn;Qe(D.icon,Bt.numVerticalIconVertices,ts),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=ur.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[Rt];if(so){var Yo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ms=!0;if(ft){var ou=K.variableOffsets[Pt];ou?(Yo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Zt&&Yo._rotate(hr?K.transform.angle:-K.transform.angle)):ms=!1}so.textBox&&Rn(D.textCollisionBox.collisionVertexArray,ur.text.placed,!ms||fi,Yo.x,Yo.y),so.verticalTextBox&&Rn(D.textCollisionBox.collisionVertexArray,ur.text.placed,!ms||Ti,Yo.x,Yo.y)}var Cv=!!(!Ti&&so.verticalIconBox);so.iconBox&&Rn(D.iconCollisionBox.collisionVertexArray,ur.icon.placed,Cv,qt?Yo.x:0,qt?Yo.y:0),so.verticalIconBox&&Rn(D.iconCollisionBox.collisionVertexArray,ur.icon.placed,!Cv,qt?Yo.x:0,qt?Yo.y:0)}}},Ct=0;CtD},bs.prototype.setStale=function(){this.stale=!0};function Rn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),Ol=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*Ol+D*xo+J*Kl+D*Ns+J*Hl+D}var aa=0,Oo=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=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var ql=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)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=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!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(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==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"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.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(q.type==="custom"){if(pl(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.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(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);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,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.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 Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.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,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.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 q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.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(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(Ti){return K._layers[Ti].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;Rt--){var Bt=this._order[Rt];if(de(Bt))for(var Dt=we.length-1;Dt>=0;Dt--){var yt=we[Dt].feature;if(ne[yt.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 Yk=ye((xxr,BVe)=>{"use strict";var zVe=Dr(),OVe=ka().defaultLine,ojt=Cc().attributes,sjt=ec(),ljt=pf().textposition,ujt=mc().overrideAll,cjt=vl().templatedArray,oJ=m1(),qVe=sjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});qVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var fjt=BVe.exports=ujt({_arrayAttrRegexps:[zVe.counterRegex("mapbox",".layers",!0)],domain:ojt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:oJ.styleValuesMapbox.concat(oJ.styleValuesNonMapbox),dflt:oJ.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:cjt("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:OVe},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:OVe}},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:qVe,textposition:zVe.extendFlat({},ljt,{arrayOk:!1})}})},"plot","from-root");fjt.uirevision={valType:"any",editType:"none"}});var Kz=ye((bxr,GVe)=>{"use strict";var{hovertemplateAttrs:hjt,texttemplateAttrs:djt,templatefallbackAttrs:NVe}=Ll(),vjt=Pg(),Kk=ew(),E5=pf(),UVe=Yk(),pjt=Gl(),gjt=Tu(),fw=Ao().extendFlat,mjt=mc().overrideAll,yjt=Yk(),VVe=Kk.line,k5=Kk.marker;GVe.exports=mjt({lon:Kk.lon,lat:Kk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:fw({},yjt.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:fw({},k5.opacity,{dflt:1})},mode:fw({},E5.mode,{dflt:"markers"}),text:fw({},E5.text,{}),texttemplate:djt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:NVe({editType:"plot"}),hovertext:fw({},E5.hovertext,{}),line:{color:VVe.color,width:VVe.width},connectgaps:E5.connectgaps,marker:fw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:k5.opacity,size:k5.size,sizeref:k5.sizeref,sizemin:k5.sizemin,sizemode:k5.sizemode},gjt("marker")),fill:Kk.fill,fillcolor:vjt(),textfont:UVe.layers.symbol.textfont,textposition:UVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:E5.selected.marker},unselected:{marker:E5.unselected.marker},hoverinfo:fw({},pjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hjt(),hovertemplatefallback:NVe()},"calc","nested")});var sJ=ye((wxr,HVe)=>{"use strict";var _jt=["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"];HVe.exports={isSupportedFont:function(e){return _jt.indexOf(e)!==-1}}});var XVe=ye((Txr,WVe)=>{"use strict";var Jk=Dr(),lJ=Ru(),xjt=$p(),bjt=D0(),wjt=F0(),Tjt=Fg(),jVe=Kz(),Ajt=sJ().isSupportedFont;WVe.exports=function(t,r,n,i){function a(p,k){return Jk.coerce(t,r,jVe,p,k)}function o(p,k){return Jk.coerce2(t,r,jVe,p,k)}var s=Sjt(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"),lJ.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"&&(Jk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),Jk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}lJ.hasLines(r)&&(bjt(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,_=a("cluster.enabled",v);if(_||lJ.hasText(r)){var b=i.font.family;wjt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ajt(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"&&Tjt(t,r,n,a),Jk.coerceSelectionMarkerOpacity(r,a)};function Sjt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var uJ=ye((Axr,YVe)=>{"use strict";var ZVe=ho();YVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=ZVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=ZVe.tickText(o,o.c2l(s[1]),!0).text,i}});var cJ=ye((Sxr,JVe)=>{"use strict";var KVe=Dr();JVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=KVe.isArrayOrTypedArray(r)?KVe.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 iGe=ye((Mxr,rGe)=>{"use strict";var eGe=Eo(),av=Dr(),Mjt=fs().BADNUM,$z=cx(),$Ve=tc(),Ejt=So(),kjt=O3(),Qz=Ru(),Cjt=sJ().isSupportedFont,Ljt=cJ(),Pjt=ip().appendArrayPointValue,Ijt=Zl().NEWLINES,Rjt=Zl().BR_TAG_ALL;rGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=Qz.hasLines(n),s=Qz.hasMarkers(n),l=Qz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Jz("fill"),d=Jz("line"),v=Jz("circle"),_=Jz("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=$z.calcTraceToLineCoords(r)),a&&(h.geojson=$z.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=$z.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=Djt(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":hJ(n.cluster.color,n.cluster.step),"circle-radius":hJ(n.cluster.size,n.cluster.step),"circle-opacity":hJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":QVe(n),"text-size":12}}),av.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)&&(_.geojson=Fjt(r,t),av.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,T=Ljt(n.textposition,E);av.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":QVe(n)}),av.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Jz(e){return{type:e,geojson:$z.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Djt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&($Ve.hasColorscale(t,"marker")?c=$Ve.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=kjt(t));var h;o&&(h=function(E){var T=eGe(E)?+av.constrain(E,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"),Cjt(s)||(s=r);var l=s.split(", ");return l}});var sGe=ye((Exr,oGe)=>{"use strict";var zjt=Dr(),nGe=iGe(),C5=m1().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function aGe(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:C5+t+"-fill",line:C5+t+"-line",circle:C5+t+"-circle",symbol:C5+t+"-symbol",cluster:C5+t+"-cluster",clusterCount:C5+t+"-cluster-count"},this.below=null}var $k=aGe.prototype;$k.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&zjt.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])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var T=ng.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};oGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new aGe(t,n.uid,i,a),s=nGe(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 Ojt=vf(),dJ=Dr(),qjt=gT(),Bjt=dJ.fillText,Njt=fs().BADNUM,Ujt=m1().traceLayerPrefix;function Vjt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=Ujt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===Njt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=dJ.modHalf(g[0],360),A=g[1],z=s.project([P,A]),O=z.x-a.c2p([v,A]),U=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+U*U)-G,1-3/G)}if(Ojt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[dJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+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=qjt(i,b),e.extraText=lGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function lGe(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)&&Bjt(t,e,u),u.join("
")}uGe.exports={hoverPoints:Vjt,getExtraText:lGe}});var fGe=ye((Cxr,cGe)=>{"use strict";cGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var dGe=ye((Lxr,hGe)=>{"use strict";var Gjt=Dr(),Hjt=Ru(),jjt=fs().BADNUM;hGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!Hjt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof vJ=="object"&&typeof pJ!="undefined"?pJ.exports=t():(e=e||self,e.mapboxgl=t())})(vJ,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(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,V){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(V-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=V,this.p2x=I,this.p2y=V}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,V,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)V)return V;for(;Iae?I=$:V=$,$=(V-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},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(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),V=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=V,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),V=Math.sin(m),$=y.x+I*(this.x-y.x)-V*(this.y-y.y),ae=y.y+V*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function _(m,y,I,V){var $=new s(m,y,I,V);return function(ae){return $.solve(ae)}}var b=_(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function k(m,y,I){var V=I-y,$=((m-y)%V+V)%V+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var V=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,ze){y(he,function(rt,gt){rt&&(ae=rt),$[ze]=gt,--V===0&&I(ae,$)})})}function T(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var V in m)V in y||I.push(V);return I}function x(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var V=0,$=y;V<$.length;V+=1){var ae=$[V];for(var he in ae)m[he]=ae[he]}return m}function C(m,y){for(var I={},V=0;V>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function A(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function U(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var V={};for(var $ in m)V[$]=y.call(I||this,m[$],$,m);return V}function Z(m,y,I){var V={};for(var $ in m)y.call(I||this,m[$],$,m)&&(V[$]=m[$]);return V}function j(m){return Array.isArray(m)?m.map(j):typeof m=="object"&&m?G(m,j):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var H={};function re(m){H[m]||(typeof console!="undefined"&&console.warn(m),H[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,V=m.length,$=V-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,ze){var rt=he||ze;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var V=parseInt(I["max-age"],10);isNaN(V)?delete I["max-age"]:I["max-age"]=V}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Ee(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function Be(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),me=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,De=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,je,lt={now:Pe,frame:function(y){var I=me(y);return{cancel:function(){return De(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var V=f.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=y.width,V.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(je==null&&(je=f.matchMedia("(prefers-reduced-motion: reduce)")),je.matches):!1}},pt={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},Vt={supported:!1,testSupport:$t},ot,ut=!1,Wt,Nt=!1;f.document&&(Wt=f.document.createElement("img"),Wt.onload=function(){ot&&sr(ot),ot=null,Nt=!0},Wt.onerror=function(){ut=!0,ot=null},Wt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){ut||!Wt||(Nt?sr(m):ot=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Wt),m.isContextLost())return;Vt.supported=!0}catch(I){}m.deleteTexture(y),ut=!0}var Tr="01";function fr(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",V=0;V<10;V++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,Tr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var $e=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};$e.prototype._createSkuToken=function(){var y=fr();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},$e.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},$e.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},$e.prototype.normalizeStyleURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeGlyphsURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeSourceURL=function(y,I){if(!St(y))return y;var V=er(y);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||I)},$e.prototype.normalizeSpriteURL=function(y,I,V,$){var ae=er(y);return St(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+V,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+V,lr(ae))},$e.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!St(y))return y;var V=er(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=lt.devicePixelRatio>=2||I===512?"@2x":"",ze=Vt.supported?".webp":"$1";V.path=V.path.replace($,""+he+ze),V.path=V.path.replace(ae,"/"),V.path="/v4"+V.path;var rt=this._customAccessToken||It(V.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,rt)},$e.prototype.canonicalizeTileURL=function(y,I){var V="/v4/",$=/\.[\w]+$/,ae=er(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(V,"");var ze=ae.params;return I&&(ze=ze.filter(function(rt){return!rt.match(/^access_token=/)})),ze.length&&(he+="?"+ze.join("&")),he},$e.prototype.canonicalizeTileset=function(y,I){for(var V=I?St(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+V);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function St(m){return m.indexOf("mapbox:")===0}var Qt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Gt(m){return Qt.test(m)}function _t(m){return m.indexOf("sku=")>0&&Gt(m)}function It(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ti.prototype.processRequests=function(y){},ti.prototype.postEvent=function(y,I,V,$){var ae=this;if(pt.EVENTS_URL){var he=er(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var ze={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Tr,userId:this.anonId},rt=I?x(ze,I):ze,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=Qr(gt,function(Et){ae.pendingRequest=null,V(Et),ae.saveEventData(),ae.processRequests($)})}},ti.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Br=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(V,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(ze){return St(ze)||Gt(ze)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,ze=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(ze,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},V))}},y}(ti),Vr=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(V,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(ae){return St(ae)||Gt(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Lr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,ze=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),ze=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Et=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);ze=ze||or>=1||or<-1||gt.getDate()!==Et.getDate()}else ze=!0;if(!ze)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},V)}},y}(ti),dt=new Vr,Ge=dt.postTurnstileEvent.bind(dt),Je=new Br,We=Je.postMapLoadEvent.bind(Je),tt="mapbox-tiles",xt=500,Ie=50,xe=1e3*60*7,ke;function vt(){f.caches&&!ke&&(ke=f.caches.open(tt))}var ir;function ar(m,y){if(ir===void 0)try{new Response(new ReadableStream),ir=!0}catch(I){ir=!1}ir?y(m.body):m.blob().then(y)}function vr(m,y,I){if(vt(),!!ke){var V={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,ze){return V.headers.set(ze,he)});var $=ge(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(V.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var di=1/0;function ji(m){di++,di>Ie&&(m.getActor().send("enforceCacheSizeLimit",xt),di=0)}function In(m){vt(),ke&&ke.then(function(y){y.keys().then(function(I){for(var V=0;V=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new la(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!wt(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return rr(m,y);if(Le()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return nr(m,y)},Xr=function(m,y){return Er(x(m,{type:"json"}),y)},ri=function(m,y){return Er(x(m,{type:"arrayBuffer"}),y)},Qr=function(m,y){return Er(x(m,{method:"POST"}),y)};function Oi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var $i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function tn(m,y,I,V){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=$i})},$.onerror=function(){return y(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(m)],{type:"image/png"});$.cacheControl=I,$.expires=V,$.src=m.byteLength?ae.createObjectURL(he):$i}function fn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(V){y(null,V)}).catch(function(V){y(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 yn,Sn,Ba=function(){yn=[],Sn=0};Ba();var ua=function(m,y){if(Vt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Sn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Sn++;var V=!1,$=function(){if(!V)for(V=!0,Sn--;yn.length&&Sn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,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"}},jn={"*":{type:"source"}},Mt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],kr={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:"*"}},vi={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"}},An={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"}}},Mn={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"}}},Li={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"}},$n={"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:jn,source:Mt,source_vector:kr,source_raster:Jr,source_raster_dem:vi,source_geojson:hn,source_video:An,source_image:Mn,layer:Li,layout:_n,layout_background:ya,layout_fill:$n,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(y,I,V,$){this.message=(y?y+": ":"")+V,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function Ol(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var V=0,$=y;V<$.length;V+=1){var ae=$[V];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Kl(m){if(Array.isArray(m))return m.map(Kl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Kl(m[I]);return y}return xo(m)}var Ns=function(m){function y(I,V){m.call(this,V),this.message=V,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var V=0,$=I;V<$.length;V+=1){var ae=$[V],he=ae[0],ze=ae[1];this.bindings[he]=ze}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},ql={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Vf={kind:"collator"},pl={kind:"formatted"},Zc={kind:"resolvedImage"};function Jl(m,y){return{kind:"array",itemType:m,N:y}}function Os(m){if(m.kind==="array"){var y=Os(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,ql,pl,Pc,Jl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,V=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?V(parseFloat(gt)/100*255):V(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function ze(gt,Et,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Et-gt)*or*6:or*2<1?Et:or*3<2?gt+(Et-gt)*(2/3-or)*6:gt}function rt(gt){var Et=gt.replace(/ /g,"").toLowerCase();if(Et in I)return I[Et].slice();if(Et[0]==="#"){if(Et.length===4){var or=parseInt(Et.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Et.length===7){var or=parseInt(Et.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Et.indexOf("("),pr=Et.indexOf(")");if(_r!==-1&&pr+1===Et.length){var Fr=Et.substr(0,_r),oi=Et.substr(_r+1,pr-(_r+1)).split(","),Hi=1;switch(Fr){case"rgba":if(oi.length!==4)return null;Hi=he(oi.pop());case"rgb":return oi.length!==3?null:[ae(oi[0]),ae(oi[1]),ae(oi[2]),Hi];case"hsla":if(oi.length!==4)return null;Hi=he(oi.pop());case"hsl":if(oi.length!==3)return null;var Ai=(parseFloat(oi[0])%360+360)%360/360,bn=he(oi[1]),nn=he(oi[2]),xn=nn<=.5?nn*(bn+1):nn+bn-nn*bn,Pn=nn*2-xn;return[V(ze(Pn,xn,Ai+1/3)*255),V(ze(Pn,xn,Ai)*255),V(ze(Pn,xn,Ai-1/3)*255),Hi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),Lf=jh.parseCSSColor,cs=function(y,I,V,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=V,this.a=$};cs.parse=function(y){if(y){if(y instanceof cs)return y;if(typeof y=="string"){var I=Lf(y);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 y=this.toArray(),I=y[0],V=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(V)+","+Math.round($)+","+ae+")"},cs.prototype.toArray=function(){var y=this,I=y.r,V=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,V*255/ae,$*255/ae,ae]},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 nf=function(y,I,V){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Gf=function(y,I,V,$,ae){this.text=y,this.image=I,this.scale=V,this.fontStack=$,this.textColor=ae},$l=function(y){this.sections=y};$l.fromString=function(y){return new $l([new Gf(y,null,null,null,null)])},$l.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},$l.factory=function(y){return y instanceof $l?y:$l.fromString(y)},$l.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},$l.prototype.serialize=function(){for(var y=["format"],I=0,V=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof V=="number"?[m,y,I,V]:[m,y,I];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 ["+[m,y,I,V].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof cs)return!0;if(m instanceof nf)return!0;if(m instanceof $l)return!0;if(m instanceof fl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var ze=y[1];if(typeof ze!="string"||!(ze in uc)||ze==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[ze],V++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],V++}$=Jl(he,rt)}else $=uc[ae];for(var gt=[];V1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=pl,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var V=y[1];if(!Array.isArray(V)&&typeof V=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var ze=y[he];if(ae&&typeof ze=="object"&&!Array.isArray(ze)){ae=!1;var rt=null;if(ze["font-scale"]&&(rt=I.parse(ze["font-scale"],1,aa),!rt))return null;var gt=null;if(ze["text-font"]&&(gt=I.parse(ze["text-font"],1,Jl(Oo)),!gt))return null;var Et=null;if(ze["text-color"]&&(Et=I.parse(ze["text-color"],1,ql),!Et))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Et}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var pr=_r.type.kind;if(pr!=="string"&&pr!=="value"&&pr!=="null"&&pr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(V){var $=V.content.evaluate(y);return Es($)===Zc?new Gf("",$,null,null,null):new Gf(Hs($),null,V.scale?V.scale.evaluate(y):null,V.font?V.font.evaluate(y).join(","):null,V.textColor?V.textColor.evaluate(y):null)};return new $l(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,V=this.sections;I-1),V},qs.prototype.eachChild=function(y){y(this.input)},qs.prototype.outputDefined=function(){return!1},qs.prototype.serialize=function(){return["image",this.input.serialize()]};var od={"to-boolean":qo,"to-color":ql,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var V=y[0];if((V==="to-boolean"||V==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=od[V],ae=[],he=1;he4?V="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":V=lc(I[0],I[1],I[2],I[3]),!V))return new cs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new ps(V||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Et=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function Ah(m,y){var I=Ic(m[0]),V=yf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*bl),Math.round(V*$*bl)]}function Qf(m,y,I){var V=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return V*he-ae*$===0&&V*ae<=0&&$*he<=0}function _f(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,V=0,$=y.length;V<$;V++)for(var ae=y[V],he=0,ze=ae.length;he0&&or<0||Et<0&&or>0}function jf(m,y,I,V){var $=[y[0]-m[0],y[1]-m[1]],ae=[V[0]-I[0],V[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,V)&&ju(I,V,m,y))}function cc(m,y,I){for(var V=0,$=I;V<$.length;V+=1)for(var ae=$[V],he=0;heI[2]){var $=V*.5,ae=m[0]-I[0]>$?-V:I[0]-m[0]>$?V:0;ae===0&&(ae=m[0]-I[2]>$?-V:I[2]-m[0]>$?V:0),m[0]+=ae}Hf(y,m)}function Wf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Wh(m,y,I,V){for(var $=Math.pow(2,V.z)*bl,ae=[V.x*bl,V.y*bl],he=[],ze=0,rt=m;ze=0)return!1;var I=!0;return m.eachChild(function(V){I&&!Eu(V,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var V=y[1];return I.scope.has(V)?new Dc(V,I.scope.get(V)):I.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,V,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=V};ks.prototype.parse=function(y,I,V,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,V,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function V(Et,or,_r){return _r==="assert"?new xl(or,[Et]):_r==="coerce"?new Po(or,[Et]):Et}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[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 ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var ze=this.expectedType,rt=he.type;if((ze.kind==="string"||ze.kind==="number"||ze.kind==="boolean"||ze.kind==="object"||ze.kind==="array")&&rt.kind==="value")he=V(he,ze,I.typeAnnotation||"assert");else if((ze.kind==="color"||ze.kind==="formatted"||ze.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=V(he,ze,I.typeAnnotation||"coerce");else if(this.checkSubtype(ze,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Ko;try{he=new Go(he.type,he.evaluate(gt))}catch(Et){return this.error(Et.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,V){var $=typeof y=="number"?this.path.concat(y):this.path,ae=V?this.scope.concat(V):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],V=arguments.length-1;V-- >0;)I[V]=arguments[V+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Ns($,y))},ks.prototype.checkSubtype=function(y,I){var V=oc(y,I);return V&&this.error(V),V};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof xl,I=!0;return m.eachChild(function(V){y?I=I&&bc(V):I=I&&V instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(m,y){for(var I=m.length-1,V=0,$=I,ae=0,he,ze;V<=$;)if(ae=Math.floor((V+$)/2),he=m[ae],ze=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new ps("Input is not a number.");return 0}var _u=function(y,I,V){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=V;$=ze)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Et,ae);if(!or)return null;ae=ae||or.type,$.push([ze,or])}return new _u(ae,V,$)},_u.prototype.evaluate=function(y){var I=this.labels,V=this.outputs;if(I.length===1)return V[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return V[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return V[ae-1].evaluate(y);var he=hu(I,$);return V[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,V=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function nl(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new cs(nl(m.r,y.r,I),nl(m.g,y.g,I),nl(m.b,y.b,I),nl(m.a,y.a,I))}function Mh(m,y,I){return m.map(function(V,$){return nl(V,y[$],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,Ou=3*Pf*Pf,bf=Pf*Pf*Pf,jl=Math.PI/180,lf=180/Math.PI;function Xh(m){return m>bf?Math.pow(m,1/3):m/Ou+xf}function If(m){return m>Pf?m*m*m:Ou*(m-xf)}function Cs(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function du(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function ku(m){var y=du(m.r),I=du(m.g),V=du(m.b),$=Xh((.4124564*y+.3575761*I+.1804375*V)/Fc),ae=Xh((.2126729*y+.7151522*I+.072175*V)/wc),he=Xh((.0193339*y+.119192*I+.9503041*V)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Xf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,V=isNaN(m.b)?y:y-m.b/200;return y=wc*If(y),I=Fc*If(I),V=bd*If(V),new cs(Cs(3.2404542*I-1.5371385*y-.4985314*V),Cs(-.969266*I+1.8760108*y+.041556*V),Cs(.0556434*I-.2040259*y+1.0572252*V),m.alpha)}function Us(m,y,I){return{l:nl(m.l,y.l,I),a:nl(m.a,y.a,I),b:nl(m.b,y.b,I),alpha:nl(m.alpha,y.alpha,I)}}function wf(m){var y=ku(m),I=y.l,V=y.a,$=y.b,ae=Math.atan2($,V)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(V*V+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,V=m.l;return Xf({l:V,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var V=y-m;return m+I*(V>180||V<-180?V-360*Math.round(V/360):V)}function Rf(m,y,I){return{h:Wu(m.h,y.h,I),c:nl(m.c,y.c,I),l:nl(m.l,y.l,I),alpha:nl(m.alpha,y.alpha,I)}}var Xu={forward:ku,reverse:Xf,interpolate:Us},uf={forward:wf,reverse:zc,interpolate:Rf},Zf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,V,$,ae){this.type=y,this.operator=I,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var he=0,ze=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Et=null;V==="interpolate-hcl"||V==="interpolate-lab"?Et=ql:I.expectedType&&I.expectedType.kind!=="value"&&(Et=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Hi=I.parse(pr,oi,Et);if(!Hi)return null;Et=Et||Hi.type,gt.push([_r,Hi])}return Et.kind!=="number"&&Et.kind!=="color"&&!(Et.kind==="array"&&Et.itemType.kind==="number"&&typeof Et.N=="number")?I.error("Type "+Os(Et)+" is not interpolatable."):new Wl(Et,V,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,V=this.outputs;if(I.length===1)return V[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return V[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return V[ae-1].evaluate(y);var he=hu(I,$),ze=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,ze,rt),Et=V[he].evaluate(y),or=V[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Et,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Et),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Et),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,V=this.outputs;I=V.length)throw new ps("Array index out of bounds: "+I+" > "+(V.length-1)+".");if(I!==Math.floor(I))throw new ps("Array index must be an integer, but found "+I+" instead.");return V[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};wl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!V||!$?null:Cf(V.type,[qo,Oo,aa,ac,Do])?new wl(V,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+Os(V.type)+" instead")},wl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),V=this.haystack.evaluate(y);if(!V)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 "+Os(Es(I))+" instead.");if(!sc(V,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+Os(Es(V))+" instead.");return V.indexOf(I)>=0},wl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(y,I,V){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=V};vu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!V||!$)return null;if(!Cf(V.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+Os(V.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new vu(V,$,ae):null}else return new vu(V,$)},vu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),V=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+Os(Es(I))+" instead.");if(!sc(V,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+Os(Es(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return V.indexOf(I,$)}return V.indexOf(I)},vu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,V,$,ae,he){this.inputType=y,this.type=I,this.input=V,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var V,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],ze=2;zeNumber.MAX_SAFE_INTEGER)return Et.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof pr=="number"&&Math.floor(pr)!==pr)return Et.error("Numeric branch labels must be integer values.");if(!V)V=Es(pr);else if(Et.checkSubtype(V,Es(pr)))return null;if(typeof ae[String(pr)]!="undefined")return Et.error("Branch labels must be unique.");ae[String(pr)]=he.length}var Fr=I.parse(gt,ze,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var oi=I.parse(y[1],1,Do);if(!oi)return null;var Hi=I.parse(y[y.length-1],y.length-1,$);return!Hi||oi.type.kind!=="value"&&I.concat(1).checkSubtype(V,oi.type)?null:new qc(V,$,oi,ae,he,Hi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),V=Es(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return V.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],ae={},he=0,ze=V;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!V||!$)return null;if(!Cf(V.type,[Jl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+Os(V.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(V.type,V,$,ae):null}else return new fc(V.type,V,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),V=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new ps("Expected first argument to be of type array or string, but found "+Os(Es(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(V,$)}return I.slice(V)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function Cr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function ki(m,y,I){return y>=I}function Xi(m,y,I,V){return V.compare(y,I)===0}function dn(m,y,I,V){return!Xi(m,y,I,V)}function wn(m,y,I,V){return V.compare(y,I)<0}function Nn(m,y,I,V){return V.compare(y,I)>0}function Yi(m,y,I,V){return V.compare(y,I)<=0}function Qi(m,y,I,V){return V.compare(y,I)>=0}function on(m,y,I){var V=m!=="=="&&m!=="!=";return function(){function $(ae,he,ze){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=ze,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,ze){if(he.length!==3&&he.length!==4)return ze.error("Expected two or three arguments.");var rt=he[0],gt=ze.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return ze.concat(1).error('"'+rt+`" comparisons are not supported for type '`+Os(gt.type)+"'.");var Et=ze.parse(he[2],2,Do);if(!Et)return null;if(!Bc(rt,Et.type))return ze.concat(2).error('"'+rt+`" comparisons are not supported for type '`+Os(Et.type)+"'.");if(gt.type.kind!==Et.type.kind&>.type.kind!=="value"&&Et.type.kind!=="value")return ze.error("Cannot compare types '"+Os(gt.type)+"' and '"+Os(Et.type)+"'.");V&&(gt.type.kind==="value"&&Et.type.kind!=="value"?gt=new xl(Et.type,[gt]):gt.type.kind!=="value"&&Et.type.kind==="value"&&(Et=new xl(gt.type,[Et])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Et.type.kind!=="string"&>.type.kind!=="value"&&Et.type.kind!=="value")return ze.error("Cannot use collator to compare non-string types.");if(or=ze.parse(he[3],3,Vf),!or)return null}return new $(gt,Et,or)},$.prototype.evaluate=function(he){var ze=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(V&&this.hasUntypedArgument){var gt=Es(ze),Et=Es(rt);if(gt.kind!==Et.kind||!(gt.kind==="string"||gt.kind==="number"))throw new ps('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Et.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var or=Es(ze),_r=Es(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,ze,rt)}return this.collator?I(he,ze,rt,this.collator.evaluate(he)):y(he,ze,rt)},$.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=[m];return this.eachChild(function(ze){he.push(ze.serialize())}),he},$}()}var Fi=on("==",At,Xi),Qn=on("!=",Xt,dn),Ca=on("<",Cr,wn),Ra=on(">",Ar,Nn),La=on("<=",Kr,Yi),Na=on(">=",ki,Qi),Yn=function(y,I,V,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var V=I.parse(y[1],1,aa);if(!V)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var ze=null;if($["min-fraction-digits"]&&(ze=I.parse($["min-fraction-digits"],1,aa),!ze))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(V,ae,he,ze,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var Dn=function(y){this.type=aa,this.input=y};Dn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var V=I.parse(y[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+Os(V.type)+" instead."):new Dn(V):null},Dn.prototype.evaluate=function(y){var I=this.input.evaluate(y);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 "+Os(Es(I))+" instead.")},Dn.prototype.eachChild=function(y){y(this.input)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Fi,"!=":Qn,">":Ra,"<":Ca,">=":Na,"<=":La,array:xl,at:Tc,boolean:xl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:qs,in:wl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:Dn,let:Oc,literal:Go,match:qc,number:xl,"number-format":Yn,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(m,y){var I=y[0],V=y[1],$=y[2],ae=y[3];I=I.evaluate(m),V=V.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,ze=lc(I,V,$,he);if(ze)throw new ps(ze);return new cs(I/255*he,V/255*he,$/255*he,he)}function Zo(m,y){return m in y}function Ss(m,y){var I=y[m];return typeof I=="undefined"?null:I}function as(m,y,I,V){for(;I<=V;){var $=I+V>>1;if(y[$]===m)return!0;y[$]>m?V=$-1:I=$+1}return!1}function ws(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new ps(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return Os(Es(I.evaluate(m)))}],"to-rgba":[Jl(aa,4),[ql],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[ql,[aa,aa,aa],bo],rgba:[ql,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Zo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],V=y[1];return Zo(I.evaluate(m),V.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ss(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],V=y[1];return Ss(I.evaluate(m),V.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ss(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,ws(aa),function(m,y){for(var I=0,V=0,$=y;V<$.length;V+=1){var ae=$[V];I+=ae.evaluate(m)}return I}],"*":[aa,ws(aa),function(m,y){for(var I=1,V=0,$=y;V<$.length;V+=1){var ae=$[V];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)-V.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)/V.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)%V.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],V=y[1];return Math.pow(I.evaluate(m),V.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,ws(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,ws(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],V=I.evaluate(m);return V<0?-Math.round(-V):Math.round(V)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1];return m.properties()[I.value]===V.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],V=y[1],$=m.properties()[I.value],ae=V.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],V=m.id(),$=I.value;return typeof V==typeof $&&V>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Jl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Jl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Jl(Do)],function(m,y){var I=y[0],V=y[1];return V.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Jl(Do)],function(m,y){var I=y[0],V=y[1];return as(m.properties()[I.value],V.value,0,V.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],V=y[1];return I.evaluate(m)&&V.evaluate(m)}],[ws(qo),function(m,y){for(var I=0,V=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function ys(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function rs(m){return m}function Ql(m,y){var I=y.type==="color",V=m.stops&&typeof m.stops[0][0]=="object",$=V||m.property!==void 0,ae=V||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=Ol({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],cs.parse(ha[1])]})),m.default?m.default=cs.parse(m.default):m.default=cs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Zf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var ze,rt,gt;if(he==="exponential")ze=pu;else if(he==="interval")ze=Nc;else if(he==="categorical"){ze=Yu,rt=Object.create(null);for(var Et=0,or=m.stops;Et=m.stops[V-1][0])return m.stops[V-1][1];var $=hu(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function pu(m,y,I){var V=m.base!==void 0?m.base:1;if(no(I)!=="number")return Cu(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=hu(m.stops.map(function(or){return or[0]}),I),he=xu(I,V,m.stops[ae][0],m.stops[ae+1][0]),ze=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||rs;if(m.colorSpace&&m.colorSpace!=="rgb"){var Et=Zf[m.colorSpace];gt=function(or,_r){return Et.reverse(Et.interpolate(Et.forward(or),Et.forward(_r),he))}}return typeof ze.evaluate=="function"?{evaluate:function(){for(var _r=[],pr=arguments.length;pr--;)_r[pr]=arguments[pr];var Fr=ze.evaluate.apply(void 0,_r),oi=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||oi===void 0))return gt(Fr,oi,he)}}:gt(ze,rt,he)}function Uc(m,y,I){return y.type==="color"?I=cs.parse(I):y.type==="formatted"?I=$l.fromString(I.toString()):y.type==="resolvedImage"?I=fl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),Cu(I,m.default,y.default)}function xu(m,y,I,V){var $=V-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,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(y,I,V,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,V,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||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 ps("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(ze)+" instead.");return ze}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),V=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?Ho(new Ac(V,y)):ml(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!js(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,V,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,V,$,ae,he)},Vc.prototype.evaluate=function(y,I,V,$,ae,he){return this._styleExpression.evaluate(y,I,V,$,ae,he)};var hc=function(y,I,V,$){this.kind=y,this.zoomStops=V,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!js(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,V,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,V,$,ae,he)},hc.prototype.evaluate=function(y,I,V,$,ae,he){return this._styleExpression.evaluate(y,I,V,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,V){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,V):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,V=ih(I);if(!V&&!Ws(y))return ml([new Ns("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ls(y))return ml([new Ns("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return ml([new Ns("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Ns)return ml([ae]);if(ae instanceof Wl&&!va(y))return ml([new Ns("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(V?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(V?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,Ol(this,Ql(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(ys(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var V=m;return typeof m=="string"&&y.type==="color"&&(V=cs.parse(m)),{kind:"constant",evaluate:function(){return V}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,V=m.args;IV.maximum?[new _a(y,I,I+" is greater than the maximum value "+V.maximum)]:[]}function st(m){var y=m.valueSpec,I=xo(m.value.type),V,$={},ae,he,ze=I!=="categorical"&&m.value.property===void 0,rt=!ze,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Et=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&ze&&Et.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Et.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Et.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Ws(m.valueSpec)?Et.push(new _a(m.key,m.value,"property functions not supported")):ze&&!Ls(m.valueSpec)&&Et.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Et.push(new _a(m.key,m.value,'"property" property is required')),Et;function or(oi){if(I==="identity")return[new _a(oi.key,oi.value,'identity function may not have a "stops" property')];var Hi=[],Ai=oi.value;return Hi=Hi.concat(Oe({key:oi.key,value:Ai,valueSpec:oi.valueSpec,style:oi.style,styleSpec:oi.styleSpec,arrayElementValidator:_r})),no(Ai)==="array"&&Ai.length===0&&Hi.push(new _a(oi.key,Ai,"array must have at least one stop")),Hi}function _r(oi){var Hi=[],Ai=oi.value,bn=oi.key;if(no(Ai)!=="array")return[new _a(bn,Ai,"array expected, "+no(Ai)+" found")];if(Ai.length!==2)return[new _a(bn,Ai,"array length 2 expected, length "+Ai.length+" found")];if(gt){if(no(Ai[0])!=="object")return[new _a(bn,Ai,"object expected, "+no(Ai[0])+" found")];if(Ai[0].zoom===void 0)return[new _a(bn,Ai,"object stop key must have zoom")];if(Ai[0].value===void 0)return[new _a(bn,Ai,"object stop key must have value")];if(he&&he>xo(Ai[0].zoom))return[new _a(bn,Ai[0].zoom,"stop zoom values must appear in ascending order")];xo(Ai[0].zoom)!==he&&(he=xo(Ai[0].zoom),ae=void 0,$={}),Hi=Hi.concat(le({key:bn+"[0]",value:Ai[0],valueSpec:{zoom:{}},style:oi.style,styleSpec:oi.styleSpec,objectElementValidators:{zoom:Ze,value:pr}}))}else Hi=Hi.concat(pr({key:bn+"[0]",value:Ai[0],valueSpec:{},style:oi.style,styleSpec:oi.styleSpec},Ai));return Ua(Kl(Ai[1]))?Hi.concat([new _a(bn+"[1]",Ai[1],"expressions are not allowed in function stops.")]):Hi.concat(Qa({key:bn+"[1]",value:Ai[1],valueSpec:y,style:oi.style,styleSpec:oi.styleSpec}))}function pr(oi,Hi){var Ai=no(oi.value),bn=xo(oi.value),nn=oi.value!==null?oi.value:Hi;if(!V)V=Ai;else if(Ai!==V)return[new _a(oi.key,nn,Ai+" stop domain type must match previous stop domain type "+V)];if(Ai!=="number"&&Ai!=="string"&&Ai!=="boolean")return[new _a(oi.key,nn,"stop domain value must be a number, string, or boolean")];if(Ai!=="number"&&I!=="categorical"){var xn="number expected, "+Ai+" found";return Ws(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(oi.key,nn,xn)]}return I==="categorical"&&Ai==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(oi.key,nn,"integer expected, found "+bn)]:I!=="categorical"&&Ai==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function qe(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?Xe(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(et)):y==="none"?["all"].concat(m.slice(1).map(et).map(tr)):y==="in"?Ft(m[1],m.slice(2)):y==="!in"?tr(Ft(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?tr(Ht(m[1])):y==="within"?m:!0;return I}function Xe(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(et))}function Ft(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function tr(m){return["!",m]}function dr(m){return Ir(Kl(m.value))?Tt(Ol({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var V=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:V.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Et[pr+0]&&V>=Et[pr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},eu.prototype._forEachCell=function(m,y,I,V,$,ae,he,ze){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Et=this._convertToCellCoord(I),or=this._convertToCellCoord(V),_r=rt;_r<=Et;_r++)for(var pr=gt;pr<=or;pr++){var Fr=this.d*pr+_r;if(!(ze&&!ze(this._convertFromCellCoord(_r),this._convertFromCellCoord(pr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(pr+1)))&&$.call(this,m,y,I,V,Fr,ae,he,ze))return}},eu.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},eu.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},eu.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=Js+this.cells.length+1+1,I=0,V=0;V=0)){var or=m[Et];gt[Et]=Al[rt].shallow.indexOf(Et)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Al[y],V=I.klass;if(!V)throw new Error("can't deserialize unregistered class "+y);if(V.deserialize)return V.deserialize(m);for(var $=Object.create(V.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var kt=function(){this.first=!0};kt.prototype.update=function(y,I){var V=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Zr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ai(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ai(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Ii(m){for(var y=0,I=m;y-1&&(En=ei.error),Ln&&Ln(m)};function Ea(){Ia.fire(new Xo("pluginStateChange",{pluginStatus:En,pluginURL:Un}))}var Ia=new Wn,yo=function(){return En},Da=function(m){return m({pluginStatus:En,pluginURL:Un}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),En===ei.deferred||En===ei.loading||En===ei.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Un=lt.resolveURL(m),En=ei.deferred,Ln=y,Ea(),I||Is()},Is=function(){if(En!==ei.deferred||!Un)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");En=ei.loading,Ea(),Un&&ri({url:Un},function(m){m?ia(m):(En=ei.loaded,Ea())})},Ms={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return En===ei.loaded||Ms.applyArabicShaping!=null},isLoading:function(){return En===ei.loading},setState:function(y){En=y.pluginStatus,Un=y.pluginURL},isParsed:function(){return Ms.applyArabicShaping!=null&&Ms.processBidirectionalText!=null&&Ms.processStyledBidirectionalText!=null},getPluginURL:function(){return Un}},Xs=function(){!Ms.isLoading()&&!Ms.isLoaded()&&yo()==="deferred"&&Is()},Gn=function(y,I){this.zoom=y,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 kt,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Si(y,Ms.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),V=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*I}};var ja=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},ja.prototype.possiblyEvaluate=function(y,I,V){return this.property.possiblyEvaluate(this,y,I,V)};var Fo=function(y){this.property=y,this.value=new ja(y,void 0)};Fo.prototype.transitioned=function(y,I){return new $s(this.property,this.value,I,x({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new $s(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return j(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new ja(this._values[y].property,I===null?void 0:j(I))},Uo.prototype.getTransition=function(y){return j(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=j(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,V=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(V){return V},y}(bt),Rr=function(y){this.specification=y};Rr.prototype.possiblyEvaluate=function(y,I,V,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},V,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Rr.prototype._calculate=function(y,I,V,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:V,to:I}},Rr.prototype.interpolate=function(y){return y};var jr=function(y){this.specification=y};jr.prototype.possiblyEvaluate=function(y,I,V,$){return!!y.expression.evaluate(I,null,{},V,$)},jr.prototype.interpolate=function(){return!1};var Nr=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var V=y[I];V.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new ja(V,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(V);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",bt),X("DataConstantProperty",Me),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Rr),X("ColorRampProperty",jr);var Gr="-transition",mi=function(m){function y(I,V){if(m.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),V.layout&&(this._unevaluatedLayout=new bu(V.layout)),V.paint)){this._transitionablePaint=new Uo(V.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(V.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},y.prototype.setLayoutProperty=function(V,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+V;if(this._validate(Ul,he,V,$,ae))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},y.prototype.getPaintProperty=function(V){return U(V,Gr)?this._transitionablePaint.getTransition(V.slice(0,-Gr.length)):this._transitionablePaint.getValue(V)},y.prototype.setPaintProperty=function(V,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+V;if(this._validate(hl,he,V,$,ae))return!1}if(U(V,Gr))return this._transitionablePaint.setTransition(V.slice(0,-Gr.length),$||void 0),!1;var ze=this._transitionablePaint._values[V],rt=ze.property.specification["property-type"]==="cross-faded-data-driven",gt=ze.value.isDataDriven(),Et=ze.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var or=this._transitionablePaint._values[V].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(V,Et,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(V){},y.prototype._handleOverridablePaintPropertyUpdate=function(V,$,ae){return!1},y.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.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,$)},y.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),Z(V,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(V,$,ae,he,ze){return ze===void 0&&(ze={}),ze&&ze.validate===!1?!1:Lu(this,V.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Rn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof dl)||!Ws($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ui={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ei=128,Hn=5,en=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};en.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},en.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},en.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},en.prototype.clear=function(){this.length=0},en.prototype.resize=function(y){this.reserve(y),this.length=y},en.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Ei),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},en.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Wi(m,y){y===void 0&&(y=1);var I=0,V=0,$=m.map(function(he){var ze=si(he.type),rt=I=Mr(I,Math.max(y,ze)),gt=he.components||1;return V=Math.max(V,ze),I+=ze*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(V,y));return{members:$,size:ae,alignment:y}}function si(m){return Ui[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.int16[he+0]=$,this.int16[he+1]=ae,V},y}(en);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=ze,V},y}(en);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ri=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*6;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.int16[Et+2]=he,this.int16[Et+3]=ze,this.int16[Et+4]=rt,this.int16[Et+5]=gt,V},y}(en);Ri.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ri);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*4,or=V*8;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=ze,this.uint8[or+6]=rt,this.uint8[or+7]=gt,V},y}(en);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var an=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.float32[he+0]=$,this.float32[he+1]=ae,V},y}(en);an.prototype.bytesPerElement=8,X("StructArrayLayout2f8",an);var Zi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r){var pr=this.length;return this.resize(pr+1),this.emplace(pr,V,$,ae,he,ze,rt,gt,Et,or,_r)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr){var Fr=V*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=ze,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Et,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=pr,V},y}(en);Zi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Zi);var Bn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr){var oi=this.length;return this.resize(oi+1),this.emplace(oi,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi){var Hi=V*12;return this.int16[Hi+0]=$,this.int16[Hi+1]=ae,this.int16[Hi+2]=he,this.int16[Hi+3]=ze,this.uint16[Hi+4]=rt,this.uint16[Hi+5]=gt,this.uint16[Hi+6]=Et,this.uint16[Hi+7]=or,this.int16[Hi+8]=_r,this.int16[Hi+9]=pr,this.int16[Hi+10]=Fr,this.int16[Hi+11]=oi,V},y}(en);Bn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",Bn);var hi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.float32[ze+0]=$,this.float32[ze+1]=ae,this.float32[ze+2]=he,V},y}(en);hi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",hi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.uint32[ae+0]=$,V},y}(en);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,V,$,ae,he,ze,rt,gt,Et,or)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r){var pr=V*10,Fr=V*5;return this.int16[pr+0]=$,this.int16[pr+1]=ae,this.int16[pr+2]=he,this.int16[pr+3]=ze,this.int16[pr+4]=rt,this.int16[pr+5]=gt,this.uint32[Fr+3]=Et,this.uint16[pr+8]=or,this.uint16[pr+9]=_r,V},y}(en);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ji=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,V,$,ae,he,ze,rt)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt){var Et=V*6;return this.int16[Et+0]=$,this.int16[Et+1]=ae,this.int16[Et+2]=he,this.int16[Et+3]=ze,this.int16[Et+4]=rt,this.int16[Et+5]=gt,V},y}(en);Ji.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ji);var Vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he,ze){var rt=this.length;return this.resize(rt+1),this.emplace(rt,V,$,ae,he,ze)},y.prototype.emplace=function(V,$,ae,he,ze,rt){var gt=V*4,Et=V*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Et+6]=ze,this.int16[Et+7]=rt,V},y}(en);Vi.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Vi);var Ni=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*12,gt=V*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=ze,V},y}(en);Ni.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Ni);var pn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.uint16[ze+0]=$,this.uint16[ze+1]=ae,this.uint16[ze+2]=he,V},y}(en);pn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",pn);var Vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn){var Pn=V*24,Zn=V*12,ga=V*48;return this.int16[Pn+0]=$,this.int16[Pn+1]=ae,this.uint16[Pn+2]=he,this.uint16[Pn+3]=ze,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Et,this.uint16[Pn+10]=or,this.uint16[Pn+11]=_r,this.uint16[Pn+12]=pr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=oi,this.uint8[ga+36]=Hi,this.uint8[ga+37]=Ai,this.uint8[ga+38]=bn,this.uint32[Zn+10]=nn,this.int16[Pn+22]=xn,V},y}(en);Vn.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vn);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.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)},y.prototype.emplaceBack=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao){var _s=this.length;return this.resize(_s+1),this.emplace(_s,V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao)},y.prototype.emplace=function(V,$,ae,he,ze,rt,gt,Et,or,_r,pr,Fr,oi,Hi,Ai,bn,nn,xn,Pn,Zn,ga,ha,eo,za,Za,Jo,to,ao,_s){var jo=V*34,El=V*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=ze,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Et,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=pr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=oi,this.uint16[jo+12]=Hi,this.uint16[jo+13]=Ai,this.uint16[jo+14]=bn,this.uint16[jo+15]=nn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Pn,this.uint16[jo+18]=Zn,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,V},y}(en);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.float32[ae+0]=$,V},y}(en);Ki.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Ki);var kn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*3;return this.int16[ze+0]=$,this.int16[ze+1]=ae,this.int16[ze+2]=he,V},y}(en);kn.prototype.bytesPerElement=6,X("StructArrayLayout3i6",kn);var ta=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,V,$,ae)},y.prototype.emplace=function(V,$,ae,he){var ze=V*2,rt=V*4;return this.uint32[ze+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,V},y}(en);ta.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ta);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,V,$)},y.prototype.emplace=function(V,$,ae){var he=V*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,V},y}(en);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var ba=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},y.prototype.emplace=function(V,$){var ae=V*1;return this.uint16[ae+0]=$,V},y}(en);ba.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",ba);var is=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(V,$,ae,he){var ze=this.length;return this.resize(ze+1),this.emplace(ze,V,$,ae,he)},y.prototype.emplace=function(V,$,ae,he,ze){var rt=V*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=ze,V},y}(en);is.prototype.bytesPerElement=16,X("StructArrayLayout4f16",is);var Zs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(y.prototype,I),y}(qi);Zs.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Zs(this,V)},y}(mn);X("CollisionBoxArray",Va);var Ml=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(V){this._structArray.uint8[this._pos1+37]=V},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(qi);Ml.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Ml(this,V)},y}(Vn);X("PlacedSymbolArray",zo);var Qs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(V){this._structArray.uint32[this._pos4+12]=V},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(y.prototype,I),y}(qi);Qs.prototype.size=68;var al=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Qs(this,V)},y}(na);X("SymbolInstanceArray",al);var Vl=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(V){return this.float32[V*1+0]},y}(Ki);X("GlyphOffsetArray",Vl);var ss=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(V){return this.int16[V*3+0]},y.prototype.gety=function(V){return this.int16[V*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},y}(kn);X("SymbolLineVertexArray",ss);var Vs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;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(y.prototype,I),y}(qi);Vs.prototype.size=8;var Ys=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(V){return new Vs(this,V)},y}(ta);X("FeatureIndexArray",Ys);var wa=Wi([{name:"a_pos",components:2,type:"Int16"}],4),ol=wa.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,V,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Et=Et<<15|Et>>>17,Et=(Et&65535)*gt+(((Et>>>16)*gt&65535)<<16)&4294967295,he^=Et,he=he<<13|he>>>19,ze=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(ze&65535)+27492+(((ze>>>16)+58964&65535)<<16);switch(Et=0,$){case 3:Et^=(I.charCodeAt(or+2)&255)<<16;case 2:Et^=(I.charCodeAt(or+1)&255)<<8;case 1:Et^=I.charCodeAt(or)&255,Et=(Et&65535)*rt+(((Et>>>16)*rt&65535)<<16)&4294967295,Et=Et<<15|Et>>>17,Et=(Et&65535)*gt+(((Et>>>16)*gt&65535)<<16)&4294967295,he^=Et}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}m.exports=y}),q=a(function(m){function y(I,V){for(var $=I.length,ae=V^$,he=0,ze;$>=4;)ze=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ze^=ze>>>24,ze=(ze&65535)*1540483477+(((ze>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^ze,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,V,$){this.ids.push(ft(y)),this.positions.push(I,V,$)},we.prototype.getPositions=function(y){for(var I=ft(y),V=0,$=this.ids.length-1;V<$;){var ae=V+$>>1;this.ids[ae]>=I?$=ae:V=ae+1}for(var he=[];this.ids[V]===I;){var ze=this.positions[3*V],rt=this.positions[3*V+1],gt=this.positions[3*V+2];he.push({index:ze,start:rt,end:gt}),V++}return he},we.serialize=function(y,I){var V=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(V,$,0,V.length-1),I&&I.push(V.buffer,$.buffer),{ids:V,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,V){for(;I>1],ae=I-1,he=V+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?zn(m):[]}}function co(m,y,I,V,$){m.emplaceBack(y*2+(V+1)/2,I*2+($+1)/2)}var ts=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new pn,this.segments=new io,this.programConfigurations=new fi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};ts.prototype.populate=function(y,I,V){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var ze=0,rt=y;ze=Ci||_r<0||_r>=Ci)){var pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=pr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),pr.vertexLength+=4,pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,V,{},$)},X("CircleBucket",ts,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Cv(m,$,I))return!0}return!1}function Cv(m,y,I){if(m.length>1){if(Lv(m,y))return!0;for(var V=0;V1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function gp(m,y){for(var I=!1,V,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,V=0,$=m.length-1;Vy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function mp(m,y,I,V,$){for(var ae=0,he=m;ae=ze.x&&$>=ze.y)return!0}var rt=[new u(y,I),new u(y,$),new u(V,$),new u(V,I)];if(m.length>2)for(var gt=0,Et=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var V=y.paint.get(m).value;return V.kind==="constant"?V.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Pv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Jv(m,y,I,V,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-V);for(var he=[],ze=0;ze0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function V9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function G9(m,y,I){var V=y[0],$=y[1],ae=y[2],he=I[0],ze=I[1],rt=I[2];return m[0]=$*rt-ae*ze,m[1]=ae*he-V*rt,m[2]=V*ze-$*he,m}function H9(m,y,I){var V=y[0],$=y[1],ae=y[2];return m[0]=V*I[0]+$*I[3]+ae*I[6],m[1]=V*I[1]+$*I[4]+ae*I[7],m[2]=V*I[2]+$*I[5]+ae*I[8],m}var j9=um,OQ=function(){var m=lm();return function(y,I,V,$,ae,he){var ze,rt;for(I||(I=3),V||(V=0),$?rt=Math.min($*I+V,y.length):rt=y.length,ze=V;zem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||V.x>y.width-$.width||V.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,ze=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Et=((V.y+rt)*y.width+V.x)*ae,or=0;or<$.width*ae;or++)ze[Et+or]=he[gt+or];return y}var Dv=function(y,I){Md(this,y,1,I)};Dv.prototype.resize=function(y){Bw(this,y,1)},Dv.prototype.clone=function(){return new Dv({width:this.width,height:this.height},new Uint8Array(this.data))},Dv.copy=function(y,I,V,$,ae){Nw(y,I,V,$,ae,1)};var Eh=function(y,I){Md(this,y,4,I)};Eh.prototype.resize=function(y){Bw(this,y,4)},Eh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},Eh.prototype.clone=function(){return new Eh({width:this.width,height:this.height},new Uint8Array(this.data))},Eh.copy=function(y,I,V,$,ae){Nw(y,I,V,$,ae,4)},X("AlphaImage",Dv),X("RGBAImage",Eh);var $x=new Nr({"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 jr(Rn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Me(Rn.paint_heatmap["heatmap-opacity"])}),P1={paint:$x};function Qx(m){var y={},I=m.resolution||256,V=m.clips?m.clips.length:1,$=m.image||new Eh({width:I,height:V}),ae=function(bn,nn,xn){y[m.evaluationKey]=xn;var Pn=m.expression.evaluate(y);$.data[bn+nn+0]=Math.floor(Pn.r*255/Pn.a),$.data[bn+nn+1]=Math.floor(Pn.g*255/Pn.a),$.data[bn+nn+2]=Math.floor(Pn.b*255/Pn.a),$.data[bn+nn+3]=Math.floor(Pn.a*255)};if(m.clips)for(var gt=0,Et=0;gt80*I){ze=gt=m[0],rt=Et=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Et&&(Et=_r);pr=Math.max(gt-ze,Et-rt),pr=pr!==0?1/pr:0}return eb(ae,he,I,ze,rt,pr),he}function Gw(m,y,I,V,$){var ae,he;if($===mS(m,y,I,V)>0)for(ae=y;ae=y;ae-=V)he=zC(ae,m[ae],m[ae+1],he);return he&&rb(he,he.next)&&(ab(he),he=he.next),he}function cm(m,y){if(!m)return m;y||(y=m);var I=m,V;do if(V=!1,!I.steiner&&(rb(I,I.next)||Tf(I.prev,I,I.next)===0)){if(ab(I),I=y=I.prev,I===I.next)break;V=!0}else I=I.next;while(V||I!==y);return y}function eb(m,y,I,V,$,ae,he){if(m){!he&&ae&&Hw(m,V,$,ae);for(var ze=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?RC(m,V,$,ae):IC(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),ab(m),m=gt.next,ze=gt.next;continue}if(m=gt,m===ze){he?he===1?(m=tb(cm(m),y,I),eb(m,y,I,V,$,ae,2)):he===2&&v0(m,y,I,V,$,ae):eb(cm(m),y,I,V,$,ae,1);break}}}}function IC(m){var y=m.prev,I=m,V=m.next;if(Tf(y,I,V)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(hm(y.x,y.y,I.x,I.y,V.x,V.y,$.x,$.y)&&Tf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function RC(m,y,I,V){var $=m.prev,ae=m,he=m.next;if(Tf($,ae,he)>=0)return!1;for(var ze=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Et=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=dS(ze,rt,y,I,V),_r=dS(gt,Et,y,I,V),pr=m.prevZ,Fr=m.nextZ;pr&&pr.z>=or&&Fr&&Fr.z<=_r;){if(pr!==m.prev&&pr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&Tf(pr.prev,pr,pr.next)>=0||(pr=pr.prevZ,Fr!==m.prev&&Fr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&Tf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;pr&&pr.z>=or;){if(pr!==m.prev&&pr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&Tf(pr.prev,pr,pr.next)>=0)return!1;pr=pr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&hm($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&Tf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function tb(m,y,I){var V=m;do{var $=V.prev,ae=V.next.next;!rb($,ae)&&jw($,V,V.next,ae)&&nb($,ae)&&nb(ae,$)&&(y.push($.i/I),y.push(V.i/I),y.push(ae.i/I),ab(V),ab(V.next),V=m=ae),V=V.next}while(V!==m);return cm(V)}function v0(m,y,I,V,$,ae){var he=m;do{for(var ze=he.next.next;ze!==he.prev;){if(he.i!==ze.i&&R1(he,ze)){var rt=pS(he,ze);he=cm(he,he.next),rt=cm(rt,rt.next),eb(he,y,I,V,$,ae),eb(rt,y,I,V,$,ae);return}ze=ze.next}he=he.next}while(he!==m)}function fm(m,y,I,V){var $=[],ae,he,ze,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var ze=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(ze<=V&&ze>ae){if(ae=ze,ze===V){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&V!==I.x&&hm($he.x||I.x===he.x&&eO(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function eO(m,y){return Tf(m.prev,m,y.prev)<0&&Tf(y.next,m,m.next)<0}function Hw(m,y,I,V){var $=m;do $.z===null&&($.z=dS($.x,$.y,y,I,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,hS($)}function hS(m){var y,I,V,$,ae,he,ze,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,V=I,ze=0,y=0;y0||rt>0&&V;)ze!==0&&(rt===0||!V||I.z<=V.z)?($=I,I=I.nextZ,ze--):($=V,V=V.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=V}ae.nextZ=null,gt*=2}while(he>1);return m}function dS(m,y,I,V,$){return m=32767*(m-I)*$,y=32767*(y-V)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function vS(m){var y=m,I=m;do(y.x=0&&(m-he)*(V-ze)-(I-he)*(y-ze)>=0&&(I-he)*(ae-ze)-($-he)*(V-ze)>=0}function R1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!FC(m,y)&&(nb(m,y)&&nb(y,m)&&tO(m,y)&&(Tf(m.prev,m,y.prev)||Tf(m,y.prev,y))||rb(m,y)&&Tf(m.prev,m,m.next)>0&&Tf(y.prev,y,y.next)>0)}function Tf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function rb(m,y){return m.x===y.x&&m.y===y.y}function jw(m,y,I,V){var $=gy(Tf(m,y,I)),ae=gy(Tf(m,y,V)),he=gy(Tf(I,V,m)),ze=gy(Tf(I,V,y));return!!($!==ae&&he!==ze||$===0&&ib(m,I,y)||ae===0&&ib(m,V,y)||he===0&&ib(I,m,V)||ze===0&&ib(I,y,V))}function ib(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function gy(m){return m>0?1:m<0?-1:0}function FC(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&jw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function nb(m,y){return Tf(m.prev,m,m.next)<0?Tf(m,y,m.next)>=0&&Tf(m,m.prev,y)>=0:Tf(m,y,m.prev)<0||Tf(m,m.next,y)<0}function tO(m,y){var I=m,V=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(V=!V),I=I.next;while(I!==m);return V}function pS(m,y){var I=new gS(m.i,m.x,m.y),V=new gS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,V.next=I,I.prev=V,ae.next=V,V.prev=ae,V}function zC(m,y,I,V){var $=new gS(m,y,I);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ab(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function gS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}I1.deviation=function(m,y,I,V){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(mS(m,0,ae,I));if($)for(var ze=0,rt=y.length;ze0&&(V+=m[$-1].length,I.holes.push(V))}return I},Vw.default=PC;function yS(m,y,I,V,$){pg(m,y,I||0,V||m.length-1,$||OC)}function pg(m,y,I,V,$){for(;V>I;){if(V-I>600){var ae=V-I+1,he=y-I+1,ze=Math.log(ae),rt=.5*Math.exp(2*ze/3),gt=.5*Math.sqrt(ze*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Et=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(V,Math.floor(y+(ae-he)*rt/ae+gt));pg(m,y,Et,or,$)}var _r=m[y],pr=I,Fr=V;for(D1(m,I,y),$(m[V],_r)>0&&D1(m,I,V);pr0;)Fr--}$(m[I],_r)===0?D1(m,I,Fr):(Fr++,D1(m,Fr,V)),Fr<=y&&(I=Fr+1),y<=Fr&&(V=Fr-1)}}function D1(m,y,I){var V=m[y];m[y]=m[I],m[I]=V}function OC(m,y){return my?1:0}function Ww(m,y){var I=m.length;if(I<=1)return[m];for(var V=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(V--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(ze&&he.push(ze),ze=[]),ze.push(new u($,ae));else if(I===7)ze&&ze.push(ze[0].clone());else throw new Error("unknown command "+I)}return ze&&he.push(ze),he},my.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,V=0,$=0,ae=0,he=1/0,ze=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(V--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$ze&&(ze=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,ze,gt]},my.prototype.toGeoJSON=function(m,y,I){var V=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),ze=my.types[this.type],rt,gt;function Et(pr){for(var Fr=0;Fr>3;y=V===1?m.readString():V===2?m.readFloat():V===3?m.readDouble():V===4?m.readVarint64():V===5?m.readVarint():V===6?m.readSVarint():V===7?m.readBoolean():null}return y}bS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new xS(this._pbf,y,this.extent,this._keys,this._values)};var XC=iO;function iO(m,y){this.layers=m.readFields(nO,{},y)}function nO(m,y,I){if(m===3){var V=new gg(I,I.readVarint()+I.pos);V.length&&(y[V.name]=V)}}var ZC=XC,F1=xS,YC=gg,mg={VectorTile:ZC,VectorTileFeature:F1,VectorTileLayer:YC},KC=mg.VectorTileFeature.types,Zw=500,z1=Math.pow(2,13);function dm(m,y,I,V,$,ae,he,ze){m.emplaceBack(y,I,Math.floor(V*z1)*2+he,$*z1*2,ae*z1*2,Math.round(ze))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new pn,this.programConfigurations=new fi(y.layers,y.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(y,I,V){this.features=[],this.hasPattern=Xw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Hi[bn-1];if(!aO(nn,xn)){pr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Pn=nn.sub(xn)._perp()._unit(),Zn=xn.dist(nn);Ai+Zn>32768&&(Ai=0),dm(this.layoutVertexArray,nn.x,nn.y,Pn.x,Pn.y,0,0,Ai),dm(this.layoutVertexArray,nn.x,nn.y,Pn.x,Pn.y,0,1,Ai),Ai+=Zn,dm(this.layoutVertexArray,xn.x,xn.y,Pn.x,Pn.y,0,0,Ai),dm(this.layoutVertexArray,xn.x,xn.y,Pn.x,Pn.y,0,1,Ai);var ga=pr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),pr.vertexLength+=4,pr.primitiveLength+=2}}}}if(pr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),KC[y.type]==="Polygon"){for(var ha=[],eo=[],za=pr.vertexLength,Za=0,Jo=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function oO(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var O1=new Nr({"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 zt(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(m){function y(I){m.call(this,I,ld)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(V){return new Vp(V)},y.prototype.queryRadius=function(){return Pv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(V,$,ae,he,ze,rt,gt,Et){var or=Jv(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),pr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=sO(or,Et,rt,0),oi=TS(he,pr,_r,Et),Hi=oi[0],Ai=oi[1];return JC(Hi,Ai,Fr)},y}(mi);function yy(m,y){return m.x*y.x+m.y*y.y}function wS(m,y){if(m.length===1){for(var I=0,V=y[I++],$;!$||V.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Et=0;Et0;if(ha&&bn>Et){var za=pr.dist(Fr);if(za>2*or){var Za=pr.sub(pr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Hi,0,0,_r),Fr=Za}}var Jo=Fr&&oi,to=Jo?V:rt?"butt":$;if(Jo&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)nn=Ai.mult(-1);else{var ao=Zn*Hi.add(Ai).mag()/Hi.sub(Ai).mag();nn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(pr,nn,0,0,_r),this.addCurrentVertex(pr,nn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var _s=-Math.sqrt(Zn*Zn-1),jo=eo?_s:0,El=eo?0:_s;if(Fr&&this.addCurrentVertex(pr,Hi,jo,El,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/SS),kl=1;kl2*or){var ch=pr.add(oi.sub(pr)._mult(or/$h)._round());this.updateDistance(pr,ch),this.addCurrentVertex(ch,Ai,0,0,_r),pr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,V,$,ae,he){he===void 0&&(he=!1);var ze=I.x+I.y*V,rt=I.y-I.x*V,gt=-I.x+I.y*$,Et=-I.y-I.x*$;this.addHalfVertex(y,ze,rt,he,!1,V,ae),this.addHalfVertex(y,gt,Et,he,!0,-$,ae),this.distance>cb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,V,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,V,$,ae,he,ze){var rt=y.x,gt=y.y,Et=this.lineClips?this.scaledDistance*(cb-1):this.scaledDistance,or=Et*Kw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(Yw*I)+128,Math.round(Yw*V)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,pr=this.lineClips.end-this.lineClips.start,Fr=_r/pr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var oi=ze.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,oi),ze.primitiveLength++),ae?this.e2=oi:this.e1=oi},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(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var MS=new Nr({"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"])}),ES=new Nr({"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 Rr(Rn.paint_line["line-dasharray"]),"line-pattern":new zt(Rn.paint_line["line-pattern"]),"line-gradient":new jr(Rn.paint_line["line-gradient"])}),Jw={paint:ES,layout:MS},uO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(V,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,V,$)},y.prototype.evaluate=function(V,$,ae,he){return $=x({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,V,$,ae,he)},y}(bt),R=new uO(Jw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Jw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(V,$){m.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},y.prototype.createBucket=function(V){return new sh(V)},y.prototype.queryRadius=function(V){var $=V,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Pv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(V,$,ae,he,ze,rt,gt){var Et=Jv(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),ou(Et,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],V=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 un(m){for(var y="",I=0;I>1,Et=-7,or=I?$-1:0,_r=I?-1:1,pr=m[y+or];for(or+=_r,ae=pr&(1<<-Et)-1,pr>>=-Et,Et+=ze;Et>0;ae=ae*256+m[y+or],or+=_r,Et-=8);for(he=ae&(1<<-Et)-1,ae>>=-Et,Et+=V;Et>0;he=he*256+m[y+or],or+=_r,Et-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(pr?-1:1)*(1/0);he=he+Math.pow(2,V),ae=ae-gt}return(pr?-1:1)*he*Math.pow(2,ae-V)},ro=function(m,y,I,V,$,ae){var he,ze,rt,gt=ae*8-$-1,Et=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,pr=V?0:ae-1,Fr=V?1:-1,oi=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(ze=isNaN(y)?1:0,he=Et):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Et?(ze=0,he=Et):he+or>=1?(ze=(y*rt-1)*Math.pow(2,$),he=he+or):(ze=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+pr]=ze&255,pr+=Fr,ze/=256,$-=8);for(he=he<<$|ze,gt+=$;gt>0;m[I+pr]=he&255,pr+=Fr,he/=256,gt-=8);m[I+pr-Fr]|=oi*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=V&7,m($,y,this),this.pos===ae&&this.skip(V)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Yh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Fv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Yh(this.buf,this.pos)+Yh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Yh(this.buf,this.pos)+Fv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,V;return V=y[this.pos++],I=V&127,V<128||(V=y[this.pos++],I|=(V&127)<<7,V<128)||(V=y[this.pos++],I|=(V&127)<<14,V<128)||(V=y[this.pos++],I|=(V&127)<<21,V<128)?I:(V=y[this.pos],I|=(V&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?ru(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&Qv(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&Qv(I,V,this),this.pos=I-1,this.writeVarint(V),this.pos+=V},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ud,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ch,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Vd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Af,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Lh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,cd,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var V=I.buf,$,ae;if(ae=V[I.pos++],$=(ae&112)>>4,ae<128||(ae=V[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=V[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=V[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,V;if(m>=0?(I=m%4294967296|0,V=m/4294967296|0):(I=~(-m%4294967296),V=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,V=V+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,V,y),kh(V,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function kh(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function Qv(m,y,I){var V=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(V);for(var $=I.pos-1;$>=m;$--)I.buf[$+V]=I.buf[$]}function ud(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Fv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var V="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+ze>I)break;var rt,gt,Et;ze===1?ae<128&&(he=ae):ze===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):ze===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):ze===4&&(rt=m[$+1],gt=m[$+2],Et=m[$+3],(rt&192)===128&&(gt&192)===128&&(Et&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Et&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,ze=1):he>65535&&(he-=65536,V+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),V+=String.fromCharCode(he),$+=ze}return V}function ru(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var V=0,$,ae;V55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||V+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function zv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var V=I.readMessage(q1,{}),$=V.id,ae=V.bitmap,he=V.width,ze=V.height,rt=V.left,gt=V.top,Et=V.advance;y.push({id:$,bitmap:new Dv({width:he+2*$u,height:ze+2*$u},ae),metrics:{width:he,height:ze,left:rt,top:gt,advance:Et}})}}function q1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(zv,[])}var Gp=$u;function ep(m){for(var y=0,I=0,V=0,$=m;V<$.length;V+=1){var ae=$[V];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Hi,Ai){return Ai.h-Hi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),ze=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Et=0,or=m;Et=0;pr--){var Fr=ze[pr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var oi=ze.pop();pr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(y,V),this.sectionIndex=this.sectionIndex.slice(y,V)},Kh.prototype.substring=function(y,I){var V=new Kh;return V.text=this.text.substring(y,I),V.sectionIndex=this.sectionIndex.slice(y,I),V.sections=this.sections,V},Kh.prototype.toString=function(){return this.text},Kh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,V){return Math.max(I,y.sections[V].scale)},0)},Kh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(_y.forText(y.scale,y.fontStack||I));for(var V=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=$w,this.imageSectionID)};function cO(m,y){for(var I=[],V=m.text,$=0,ae=0,he=y;ae=0,Et=0,or=0;or0&&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=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;_s=gc.metrics}ao=(Pn-Za.scale)*Tn}kl?(m.verticalizable=!0,ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),_r+=_s.advance*Za.scale+gt)}if(ha.length!==0){var Wd=_r-gt;Fr=Math.max(Wd,Fr),vO(ha,0,ha.length-1,Hi,eo)}_r=0;var Xd=ae*Pn+eo;ga.lineOffset=Math.max(eo,Zn),pr+=Xd,oi=Math.max(Xd,oi),++Ai}var Qh=pr-B1,fv=CS(he),hv=fv.horizontalAlign,Ph=fv.verticalAlign;kd(m.positionedLines,Hi,hv,Ph,Fr,oi,ae,Qh,$.length),m.top+=-Ph*Qh,m.bottom=m.top+Qh,m.left+=-hv*Fr,m.right=m.left+Fr}function vO(m,y,I,V,$){if(!(!V&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,ze=(m[I].x+he)*V,rt=y;rt<=I;rt++)m[rt].x-=ze,m[rt].y+=$}function kd(m,y,I,V,$,ae,he,ze,rt){var gt=(y-I)*$,Et=0;ae!==he?Et=-ze*V-B1:Et=(-V*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var pr=_r[or],Fr=0,oi=pr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;ze-=m[he].dist(ae),ae=m[he]}ze+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;zeV;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,ze+=or.dist(_r)}return!0}function VQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/pr,oi=nl(or.x,_r.x,Fr),Hi=nl(or.y,_r.y,Fr),Ai=new jd(oi,Hi,_r.angleTo(or),Et);return Ai._round(),!he||UQ(m,Ai,ze,he,y)?Ai:void 0}rt+=pr}}function Fet(m,y,I,V,$,ae,he,ze,rt){var gt=GQ(V,ae,he),Et=HQ(V,$),or=Et*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Pn=0&&_r+gt<=Et){var Zn=new jd(xn,Pn,bn,Fr);Zn._round(),(!V||UQ(m,Zn,ae,V,$))&&pr.push(Zn)}}or+=Ai}return!ze&&!pr.length&&!he&&(pr=jQ(m,or/2,I,V,$,ae,he,!0,rt)),pr}function WQ(m,y,I,V,$){for(var ae=[],he=0;he=V&&or.x>=V)&&(Et.x>=V?Et=new u(V,Et.y+(or.y-Et.y)*((V-Et.x)/(or.x-Et.x)))._round():or.x>=V&&(or=new u(V,Et.y+(or.y-Et.y)*((V-Et.x)/(or.x-Et.x)))._round()),!(Et.y>=$&&or.y>=$)&&(Et.y>=$?Et=new u(Et.x+(or.x-Et.x)*(($-Et.y)/(or.y-Et.y)),$)._round():or.y>=$&&(or=new u(Et.x+(or.x-Et.x)*(($-Et.y)/(or.y-Et.y)),$)._round()),(!rt||!Et.equals(rt[rt.length-1]))&&(rt=[Et],ae.push(rt)),rt.push(or)))))}return ae}var t3=Gc;function XQ(m,y,I,V){var $=[],ae=m.image,he=ae.pixelRatio,ze=ae.paddedRect.w-2*t3,rt=ae.paddedRect.h-2*t3,gt=m.right-m.left,Et=m.bottom-m.top,or=ae.stretchX||[[0,ze]],_r=ae.stretchY||[[0,rt]],pr=function(Cl,yl){return Cl+yl[1]-yl[0]},Fr=or.reduce(pr,0),oi=_r.reduce(pr,0),Hi=ze-Fr,Ai=rt-oi,bn=0,nn=Fr,xn=0,Pn=oi,Zn=0,ga=Hi,ha=0,eo=Ai;if(ae.content&&V){var za=ae.content;bn=a6(or,0,za[0]),xn=a6(_r,0,za[1]),nn=a6(or,za[0],za[2]),Pn=a6(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-nn,eo=za[3]-za[1]-Pn}var Za=function(Cl,yl,Qu,gc){var Sf=o6(Cl.stretch-bn,nn,gt,m.left),Ff=s6(Cl.fixed-Zn,ga,Cl.stretch,Fr),$h=o6(yl.stretch-xn,Pn,Et,m.top),ch=s6(yl.fixed-ha,eo,yl.stretch,oi),Wd=o6(Qu.stretch-bn,nn,gt,m.left),Xd=s6(Qu.fixed-Zn,ga,Qu.stretch,Fr),Qh=o6(gc.stretch-xn,Pn,Et,m.top),fv=s6(gc.fixed-ha,eo,gc.stretch,oi),hv=new u(Sf,$h),Ph=new u(Wd,$h),dv=new u(Wd,Qh),bp=new u(Sf,Qh),wy=new u(Ff/he,ch/he),V1=new u(Xd/he,fv/he),G1=y*Math.PI/180;if(G1){var H1=Math.sin(G1),u3=Math.cos(G1),y0=[u3,-H1,H1,u3];hv._matMult(y0),Ph._matMult(y0),bp._matMult(y0),dv._matMult(y0)}var d6=Cl.stretch+Cl.fixed,wO=Qu.stretch+Qu.fixed,v6=yl.stretch+yl.fixed,TO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+t3+d6,y:ae.paddedRect.y+t3+v6,w:wO-d6,h:TO-v6},c3=ga/he/gt,p6=eo/he/Et;return{tl:hv,tr:Ph,bl:bp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:wy,pixelOffsetBR:V1,minFontScaleX:c3,minFontScaleY:p6,isSDF:I}};if(!V||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:ze+1},{fixed:0,stretch:rt+1}));else for(var Jo=ZQ(or,Hi,Fr),to=ZQ(_r,Ai,oi),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var oi=he.top*ze-rt,Hi=he.bottom*ze+rt,Ai=he.left*ze-rt,bn=he.right*ze+rt,nn=he.collisionPadding;if(nn&&(Ai-=nn[0]*ze,oi-=nn[1]*ze,bn+=nn[2]*ze,Hi+=nn[3]*ze),Et){var xn=new u(Ai,oi),Pn=new u(bn,oi),Zn=new u(Ai,Hi),ga=new u(bn,Hi),ha=Et*Math.PI/180;xn._rotate(ha),Pn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ai=Math.min(xn.x,Pn.x,Zn.x,ga.x),bn=Math.max(xn.x,Pn.x,Zn.x,ga.x),oi=Math.min(xn.y,Pn.y,Zn.y,ga.y),Hi=Math.max(xn.y,Pn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ai,oi,bn,Hi,V,$,ae)}this.boxEndIndex=y.length},r3=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=Oet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};r3.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},r3.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},r3.prototype.peek=function(){return this.data[0]},r3.prototype._up=function(y){for(var I=this,V=I.data,$=I.compare,ae=V[y];y>0;){var he=y-1>>1,ze=V[he];if($(ae,ze)>=0)break;V[y]=ze,y=he}V[y]=ae},r3.prototype._down=function(y){for(var I=this,V=I.data,$=I.compare,ae=this.length>>1,he=V[y];y=0)break;V[y]=rt,y=ze}V[y]=he};function Oet(m,y){return my?1:0}function qet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var V=1/0,$=1/0,ae=-1/0,he=-1/0,ze=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Et=ae-V,or=he-$,_r=Math.min(Et,or),pr=_r/2,Fr=new r3([],Bet);if(_r===0)return new u(V,$);for(var oi=V;oiAi.d||!Ai.d)&&(Ai=nn,I&&console.log("found best %d after %d probes",Math.round(1e4*nn.d)/1e4,bn)),!(nn.max-Ai.d<=y)&&(pr=nn.h/2,Fr.push(new i3(nn.p.x-pr,nn.p.y-pr,pr,m)),Fr.push(new i3(nn.p.x+pr,nn.p.y-pr,pr,m)),Fr.push(new i3(nn.p.x-pr,nn.p.y+pr,pr,m)),Fr.push(new i3(nn.p.x+pr,nn.p.y+pr,pr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ai.d)),Ai.p}function Bet(m,y){return y.max-m.max}function i3(m,y,I,V){this.p=new u(m,y),this.h=I,this.d=Net(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Net(m,y){for(var I=!1,V=1/0,$=0;$m.y!=Et.y>m.y&&m.x<(Et.x-gt.x)*(m.y-gt.y)/(Et.y-gt.y)+gt.x&&(I=!I),V=Math.min(V,hg(m,gt,Et))}return(I?1:-1)*Math.sqrt(V)}function Uet(m){for(var y=0,I=0,V=0,$=m[0],ae=0,he=$.length,ze=he-1;ae=Ci||y0.y<0||y0.y>=Ci||Het(m,y0,u3,I,V,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ai,Pn,ha,rt,nn,Zn,eo,pr,y,ae,gt,Et,he)};if(za==="line")for(var _s=0,jo=WQ(y.geometry,0,0,Ci,Ci);_s1){var $h=Det(Ff,ga,I.vertical||Fr,V,oi,bn);$h&&ao(Ff,$h)}}else if(y.type==="Polygon")for(var ch=0,Wd=Ww(y.geometry,0);chN1&&re(m.layerIds[0]+': Value for "text-size" is >= '+LS+'. Reduce your "text-size".')):Hi.kind==="composite"&&(Ai=[Cd*pr.compositeTextSizes[0].evaluate(he,{},Fr),Cd*pr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ai[0]>N1||Ai[1]>N1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+LS+'. Reduce your "text-size".')),m.addSymbols(m.text,oi,Ai,ze,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,nn=Et;bnN1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+LS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Ph=[Cd*Pn.compositeIconSizes[0].evaluate(xn,{},ga),Cd*Pn.compositeIconSizes[1].evaluate(xn,{},ga)],(Ph[0]>N1||Ph[1]>N1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+LS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Qh,Ph,nn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Ph,nn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),Cl=m.icon.placedSymbolArray.length-1)}for(var dv in V.horizontal){var bp=V.horizontal[dv];if(!Za){Qu=K(bp.text);var wy=ze.layout.get("text-rotate").evaluate(xn,{},ga);Za=new l6(rt,y,gt,Et,or,bp,_r,pr,Fr,wy)}var V1=bp.positionedLines.length===1;if(El+=KQ(m,y,bp,ae,ze,Fr,xn,oi,za,V.vertical?uv.horizontal:uv.horizontalOnly,V1?Object.keys(V.horizontal):[dv],yl,kl,Pn,ga),V1)break}V.vertical&&(Iu+=KQ(m,y,V.vertical,ae,ze,Fr,xn,oi,za,uv.vertical,["vertical"],yl,Cl,Pn,ga));var G1=Za?Za.boxStartIndex:m.collisionBoxArray.length,H1=Za?Za.boxEndIndex:m.collisionBoxArray.length,u3=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,d6=Jo?Jo.boxStartIndex:m.collisionBoxArray.length,wO=Jo?Jo.boxEndIndex:m.collisionBoxArray.length,v6=ao?ao.boxStartIndex:m.collisionBoxArray.length,TO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,c3=function(RS,dee){return RS&&RS.circleDiameter?Math.max(RS.circleDiameter,dee):dee};Hp=c3(Za,Hp),Hp=c3(to,Hp),Hp=c3(Jo,Hp),Hp=c3(ao,Hp);var p6=Hp>-1?1:0;p6&&(Hp*=ha/Tn),m.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&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.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,u3,y0,d6,wO,v6,TO,gt,El,Iu,_s,jo,p6,0,_r,gc,Sf,Hp)}function jet(m,y,I,V){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(V.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Et=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Et)){for(var _r=I.iconDependencies,pr=I.glyphDependencies,Fr=I.availableImages,oi=new Gn(this.zoom),Hi=0,Ai=y;Hi=0;for(var Iu=0,kl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},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(y,I){for(var V=y.placedSymbolArray.get(I),$=V.vertexStartIndex+V.numGlyphs*4,ae=V.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),V=Math.cos(y),$=[],ae=[],he=[],ze=0;ze1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var ae=$[V],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(ze,rt,gt){ze>=0&>.indexOf(ze)===rt&&I.addIndicesForPlacedSymbol(I.text,ze)}),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=mO;function Yet(m,y){return y.replace(/{([^{}]+)}/g,function(I,V){return V in m?String(m[V]):""})}var Ket=new Nr({"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"])}),Jet=new Nr({"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(m){return m.textColor},hasOverride:function(m){return!!m.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"])}),yO={paint:Jet,layout:Ket},o3=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};o3.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},o3.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},o3.prototype.outputDefined=function(){return!1},o3.prototype.serialize=function(){return null},X("FormatSectionOverride",o3,{omit:["defaultValue"]});var $et=function(m){function y(I){m.call(this,I,yO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(V,$){if(m.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 ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],ze=0,rt=ae;ze",targetMapId:$,sourceMapId:he.mapId})}}},s3.prototype.receive=function(y){var I=y.data,V=I.id;if(V&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Le()||I.mustQueue?(this.tasks[V]=I,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,I)},s3.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},s3.prototype.processTask=function(y,I){var V=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],ze=I.hasCallback?function(_r,pr){ae=!0,delete V.cancelCallbacks[y],V.target.postMessage({id:y,type:"",sourceMapId:V.mapId,error:_r?He(_r):null,data:He(pr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,ze);else if(this.parent.getWorkerSource){var Et=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Et[0],gt.source);rt=or[Et[1]](gt,ze)}else ze(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},s3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function utt(m,y,I){y=Math.pow(2,I)-y-1;var V=ree(m*256,y*256,I),$=ree((m+1)*256,(y+1)*256,I);return V[0]+","+V[1]+","+$[0]+","+$[1]}function ree(m,y,I){var V=2*Math.PI*6378137/256/Math.pow(2,I),$=m*V-2*Math.PI*6378137/2,ae=y*V-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,V=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var ze=y;return this.extend(Hc.convert(ze))}return this}return!I&&!V?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),V.lng=Math.max(ae.lng,V.lng),V.lat=Math.max(ae.lat,V.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(y){var I=Hc.convert(y),V=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=V&&V>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var iee=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,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(y){var I=Math.PI/180,V=this.lat*I,$=y.lat*I,ae=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=iee*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,V=360*y/I,$=V/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-V),new Hc(this.lng+$,this.lat+V))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.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 nee=2*Math.PI*iee;function aee(m){return nee*Math.cos(m*Math.PI/180)}function oee(m){return(180+m)/360}function see(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function lee(m,y){return m/aee(y)}function ctt(m){return m*360-180}function xO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function ftt(m,y){return m*aee(xO(y))}function htt(m){return 1/Math.cos(m*Math.PI/180)}var db=function(y,I,V){V===void 0&&(V=0),this.x=+y,this.y=+I,this.z=+V};db.fromLngLat=function(y,I){I===void 0&&(I=0);var V=Hc.convert(y);return new db(oee(V.lng),see(V.lat),lee(I,V.lat))},db.prototype.toLngLat=function(){return new Hc(ctt(this.x),xO(this.y))},db.prototype.toAltitude=function(){return ftt(this.z,this.y)},db.prototype.meterInMercatorCoordinateUnits=function(){return 1/nee*htt(xO(this.y))};var vb=function(y,I,V){this.z=y,this.x=I,this.y=V,this.key=IS(0,y,y,I,V)};vb.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},vb.prototype.url=function(y,I){var V=utt(this.x,this.y,this.z),$=dtt(this.z,this.x,this.y);return y[(this.x+this.y)%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}",V)},vb.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},vb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var uee=function(y,I){this.wrap=y,this.canonical=I,this.key=IS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,V,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new vb(V,+$,+ae),this.key=IS(I,y,V,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var V=this.canonical.z-y;return y>this.canonical.z?IS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):IS(this.wrap*+I,y,y,this.canonical.x>>V,this.canonical.y>>V)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,V,$),new uh(I,this.wrap,I,V+1,$),new uh(I,this.wrap,I,V,$+1),new uh(I,this.wrap,I,V+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=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+(y+1)},xy.prototype._unpackMapbox=function(y,I,V){return(y*256*256+I*256+V)/10-1e4},xy.prototype._unpackTerrarium=function(y,I,V){return y*256+I+V/256-32768},xy.prototype.getPixels=function(){return new Eh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},xy.prototype.backfillBorder=function(y,I,V){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=V*this.dim,ze=V*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(V){case-1:he=ze-1;break;case 1:ze=he+1;break}for(var rt=-I*this.dim,gt=-V*this.dim,Et=he;Et=0&&or[3]>=0&&rt.insert(ze,or[0],or[1],or[2],or[3])}},by.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},by.prototype.query=function(y,I,V,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},ze=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Et=y.queryPadding*ze,or=fee(gt),_r=this.grid.query(or.minX-Et,or.minY-Et,or.maxX+Et,or.maxY+Et),pr=fee(y.cameraQueryGeometry),Fr=this.grid3D.query(pr.minX-Et,pr.minY-Et,pr.maxX+Et,pr.maxY+Et,function(Zn,ga,ha,eo){return mp(y.cameraQueryGeometry,Zn-Et,ga-Et,ha+Et,eo+Et)}),oi=0,Hi=Fr;oi$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ha.maxzoom)&&Ha.visibility!=="none"){h(Wn,this.zoom,nr);var vo=$i[Ha.id]=Ha.createBucket({index:Oi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(ua,tn,this.tileID.canonical),Oi.bucketLayerIDs.push(Wn.map(function(Li){return Li.id}))}}}}var jn,Mt,kr,Jr,vi=i.mapObject(tn.glyphDependencies,function(Li){return Object.keys(Li).map(Number)});Object.keys(vi).length?Er.send("getGlyphs",{uid:this.uid,stacks:vi},function(Li,_n){jn||(jn=Li,Mt=_n,Mn.call(ri))}):Mt={};var hn=Object.keys(tn.iconDependencies);hn.length?Er.send("getImages",{icons:hn,source:this.source,tileID:this.tileID,type:"icons"},function(Li,_n){jn||(jn=Li,kr=_n,Mn.call(ri))}):kr={};var An=Object.keys(tn.patternDependencies);An.length?Er.send("getImages",{icons:An,source:this.source,tileID:this.tileID,type:"patterns"},function(Li,_n){jn||(jn=Li,Jr=_n,Mn.call(ri))}):Jr={},Mn.call(this);function Mn(){if(jn)return Xr(jn);if(Mt&&kr&&Jr){var Li=new c(Mt),_n=new i.ImageAtlas(kr,Jr);for(var ya in $i){var $n=$i[ya];$n instanceof i.SymbolBucket?(h($n.layers,this.zoom,nr),i.performSymbolLayout($n,Mt,Li.positions,kr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):$n.hasPattern&&($n instanceof i.LineBucket||$n instanceof i.FillBucket||$n instanceof i.FillExtrusionBucket)&&(h($n.layers,this.zoom,nr),$n.addFeatures(tn,this.tileID.canonical,_n.patternPositions))}this.status="done",Xr(null,{buckets:i.values($i).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:Oi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Li.image,imageAtlas:_n,glyphMap:this.returnDependencies?Mt:null,iconMap:this.returnDependencies?kr:null,glyphPositions:this.returnDependencies?Li.positions:null})}}};function h(Ut,wt,rr){for(var nr=new i.EvaluationParameters(wt),Er=0,Xr=Ut;Er=0!=!!wt&&Ut.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=[],rr=0,nr=this._feature.geometry;rr>31}function Le(Ut,wt){for(var rr=Ut.loadGeometry(),nr=Ut.type,Er=0,Xr=0,ri=rr.length,Qr=0;Qr>1;Se(Ut,wt,ri,nr,Er,Xr%2),ie(Ut,wt,rr,nr,ri-1,Xr+1),ie(Ut,wt,rr,ri+1,Er,Xr+1)}}function Se(Ut,wt,rr,nr,Er,Xr){for(;Er>nr;){if(Er-nr>600){var ri=Er-nr+1,Qr=rr-nr+1,Oi=Math.log(ri),$i=.5*Math.exp(2*Oi/3),tn=.5*Math.sqrt(Oi*$i*(ri-$i)/ri)*(Qr-ri/2<0?-1:1),fn=Math.max(nr,Math.floor(rr-Qr*$i/ri+tn)),yn=Math.min(Er,Math.floor(rr+(ri-Qr)*$i/ri+tn));Se(Ut,wt,rr,fn,yn,Xr)}var Sn=wt[2*rr+Xr],Ba=nr,ua=Er;for(Ee(Ut,wt,nr,rr),wt[2*Er+Xr]>Sn&&Ee(Ut,wt,nr,Er);BaSn;)ua--}wt[2*nr+Xr]===Sn?Ee(Ut,wt,nr,ua):(ua++,Ee(Ut,wt,ua,Er)),ua<=rr&&(nr=ua+1),rr<=ua&&(Er=ua-1)}}function Ee(Ut,wt,rr,nr){Ae(Ut,rr,nr),Ae(wt,2*rr,2*nr),Ae(wt,2*rr+1,2*nr+1)}function Ae(Ut,wt,rr){var nr=Ut[wt];Ut[wt]=Ut[rr],Ut[rr]=nr}function Be(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=[0,Ut.length-1,0],Oi=[],$i,tn;Qr.length;){var fn=Qr.pop(),yn=Qr.pop(),Sn=Qr.pop();if(yn-Sn<=ri){for(var Ba=Sn;Ba<=yn;Ba++)$i=wt[2*Ba],tn=wt[2*Ba+1],$i>=rr&&$i<=Er&&tn>=nr&&tn<=Xr&&Oi.push(Ut[Ba]);continue}var ua=Math.floor((Sn+yn)/2);$i=wt[2*ua],tn=wt[2*ua+1],$i>=rr&&$i<=Er&&tn>=nr&&tn<=Xr&&Oi.push(Ut[ua]);var ma=(fn+1)%2;(fn===0?rr<=$i:nr<=tn)&&(Qr.push(Sn),Qr.push(ua-1),Qr.push(ma)),(fn===0?Er>=$i:Xr>=tn)&&(Qr.push(ua+1),Qr.push(yn),Qr.push(ma))}return Oi}function Pe(Ut,wt,rr,nr,Er,Xr){for(var ri=[0,Ut.length-1,0],Qr=[],Oi=Er*Er;ri.length;){var $i=ri.pop(),tn=ri.pop(),fn=ri.pop();if(tn-fn<=Xr){for(var yn=fn;yn<=tn;yn++)me(wt[2*yn],wt[2*yn+1],rr,nr)<=Oi&&Qr.push(Ut[yn]);continue}var Sn=Math.floor((fn+tn)/2),Ba=wt[2*Sn],ua=wt[2*Sn+1];me(Ba,ua,rr,nr)<=Oi&&Qr.push(Ut[Sn]);var ma=($i+1)%2;($i===0?rr-Er<=Ba:nr-Er<=ua)&&(ri.push(fn),ri.push(Sn-1),ri.push(ma)),($i===0?rr+Er>=Ba:nr+Er>=ua)&&(ri.push(Sn+1),ri.push(tn),ri.push(ma))}return Qr}function me(Ut,wt,rr,nr){var Er=Ut-rr,Xr=wt-nr;return Er*Er+Xr*Xr}var De=function(Ut){return Ut[0]},ce=function(Ut){return Ut[1]},je=function(wt,rr,nr,Er,Xr){rr===void 0&&(rr=De),nr===void 0&&(nr=ce),Er===void 0&&(Er=64),Xr===void 0&&(Xr=Float64Array),this.nodeSize=Er,this.points=wt;for(var ri=wt.length<65536?Uint16Array:Uint32Array,Qr=this.ids=new ri(wt.length),Oi=this.coords=new Xr(wt.length*2),$i=0;$i=Er;tn--){var fn=+Date.now();Oi=this._cluster(Oi,tn),this.trees[tn]=new je(Oi,$e,St,ri,Float32Array),nr&&console.log("z%d: %d clusters in %dms",tn,Oi.length,+Date.now()-fn)}return nr&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(wt,rr){var nr=((wt[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,wt[1])),Xr=wt[2]===180?180:((wt[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,wt[3]));if(wt[2]-wt[0]>=360)nr=-180,Xr=180;else if(nr>Xr){var Qr=this.getClusters([nr,Er,180,ri],rr),Oi=this.getClusters([-180,Er,Xr,ri],rr);return Qr.concat(Oi)}for(var $i=this.trees[this._limitZoom(rr)],tn=$i.range(Nt(nr),$t(ri),Nt(Xr),$t(Er)),fn=[],yn=0,Sn=tn;ynrr&&(ua+=Xo.numPoints||1)}if(ua>=Oi){for(var da=fn.x*Ba,Wn=fn.y*Ba,Ha=Qr&&Ba>1?this._map(fn,!0):null,vo=(tn<<5)+(rr+1)+this.points.length,jn=0,Mt=Sn;jn1)for(var hn=0,An=Sn;hn>5},pt.prototype._getOriginZoom=function(wt){return(wt-this.points.length)%32},pt.prototype._map=function(wt,rr){if(wt.numPoints)return rr?fr({},wt.properties):wt.properties;var nr=this.points[wt.index].properties,Er=this.options.map(nr);return rr&&Er===nr?fr({},Er):Er};function Vt(Ut,wt,rr,nr,Er){return{x:Ut,y:wt,zoom:1/0,id:rr,parentId:-1,numPoints:nr,properties:Er}}function ot(Ut,wt){var rr=Ut.geometry.coordinates,nr=rr[0],Er=rr[1];return{x:Nt(nr),y:$t(Er),zoom:1/0,index:wt,parentId:-1}}function ut(Ut){return{type:"Feature",id:Ut.id,properties:Wt(Ut),geometry:{type:"Point",coordinates:[sr(Ut.x),Tr(Ut.y)]}}}function Wt(Ut){var wt=Ut.numPoints,rr=wt>=1e4?Math.round(wt/1e3)+"k":wt>=1e3?Math.round(wt/100)/10+"k":wt;return fr(fr({},Ut.properties),{cluster:!0,cluster_id:Ut.id,point_count:wt,point_count_abbreviated:rr})}function Nt(Ut){return Ut/360+.5}function $t(Ut){var wt=Math.sin(Ut*Math.PI/180),rr=.5-.25*Math.log((1+wt)/(1-wt))/Math.PI;return rr<0?0:rr>1?1:rr}function sr(Ut){return(Ut-.5)*360}function Tr(Ut){var wt=(180-Ut*360)*Math.PI/180;return 360*Math.atan(Math.exp(wt))/Math.PI-90}function fr(Ut,wt){for(var rr in wt)Ut[rr]=wt[rr];return Ut}function $e(Ut){return Ut.x}function St(Ut){return Ut.y}function Qt(Ut,wt,rr,nr){for(var Er=nr,Xr=rr-wt>>1,ri=rr-wt,Qr,Oi=Ut[wt],$i=Ut[wt+1],tn=Ut[rr],fn=Ut[rr+1],yn=wt+3;ynEr)Qr=yn,Er=Sn;else if(Sn===Er){var Ba=Math.abs(yn-Xr);Banr&&(Qr-wt>3&&Qt(Ut,wt,Qr,nr),Ut[Qr+2]=Er,rr-Qr>3&&Qt(Ut,Qr,rr,nr))}function Gt(Ut,wt,rr,nr,Er,Xr){var ri=Er-rr,Qr=Xr-nr;if(ri!==0||Qr!==0){var Oi=((Ut-rr)*ri+(wt-nr)*Qr)/(ri*ri+Qr*Qr);Oi>1?(rr=Er,nr=Xr):Oi>0&&(rr+=ri*Oi,nr+=Qr*Oi)}return ri=Ut-rr,Qr=wt-nr,ri*ri+Qr*Qr}function _t(Ut,wt,rr,nr){var Er={id:typeof Ut=="undefined"?null:Ut,type:wt,geometry:rr,tags:nr,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return It(Er),Er}function It(Ut){var wt=Ut.geometry,rr=Ut.type;if(rr==="Point"||rr==="MultiPoint"||rr==="LineString")mt(Ut,wt);else if(rr==="Polygon"||rr==="MultiLineString")for(var nr=0;nr0&&(nr?ri+=(Er*$i-Oi*Xr)/2:ri+=Math.sqrt(Math.pow(Oi-Er,2)+Math.pow($i-Xr,2))),Er=Oi,Xr=$i}var tn=wt.length-3;wt[2]=1,Qt(wt,0,tn,rr),wt[tn+2]=1,wt.size=Math.abs(ri),wt.start=0,wt.end=wt.size}function ti(Ut,wt,rr,nr){for(var Er=0;Er1?1:rr}function dt(Ut,wt,rr,nr,Er,Xr,ri,Qr){if(rr/=wt,nr/=wt,Xr>=rr&&ri=nr)return null;for(var Oi=[],$i=0;$i=rr&&Ba=nr)continue;var ua=[];if(yn==="Point"||yn==="MultiPoint")Ge(fn,ua,rr,nr,Er);else if(yn==="LineString")Je(fn,ua,rr,nr,Er,!1,Qr.lineMetrics);else if(yn==="MultiLineString")tt(fn,ua,rr,nr,Er,!1);else if(yn==="Polygon")tt(fn,ua,rr,nr,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=rr&&ri<=nr&&(wt.push(Ut[Xr]),wt.push(Ut[Xr+1]),wt.push(Ut[Xr+2]))}}function Je(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=We(Ut),Oi=Er===0?Ie:xe,$i=Ut.start,tn,fn,yn=0;ynrr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,rr),ri&&(Qr.start=$i+tn*fn)):Fa>nr?Xo=rr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,rr),da=!0),Xo>nr&&Fa<=nr&&(fn=Oi(Qr,Sn,Ba,ma,Wa,nr),da=!0),!Xr&&da&&(ri&&(Qr.end=$i+tn*fn),wt.push(Qr),Qr=We(Ut)),ri&&($i+=tn)}var Wn=Ut.length-3;Sn=Ut[Wn],Ba=Ut[Wn+1],ua=Ut[Wn+2],Fa=Er===0?Sn:Ba,Fa>=rr&&Fa<=nr&&xt(Qr,Sn,Ba,ua),Wn=Qr.length-3,Xr&&Wn>=3&&(Qr[Wn]!==Qr[0]||Qr[Wn+1]!==Qr[1])&&xt(Qr,Qr[0],Qr[1],Qr[2]),Qr.length&&wt.push(Qr)}function We(Ut){var wt=[];return wt.size=Ut.size,wt.start=Ut.start,wt.end=Ut.end,wt}function tt(Ut,wt,rr,nr,Er,Xr){for(var ri=0;riri.maxX&&(ri.maxX=tn),fn>ri.maxY&&(ri.maxY=fn)}return ri}function pi(Ut,wt,rr,nr){var Er=wt.geometry,Xr=wt.type,ri=[];if(Xr==="Point"||Xr==="MultiPoint")for(var Qr=0;Qr0&&wt.size<(Er?ri:nr)){rr.numPoints+=wt.length/3;return}for(var Qr=[],Oi=0;Oiri)&&(rr.numSimplified++,Qr.push(wt[Oi]),Qr.push(wt[Oi+1])),rr.numPoints++;Er&&di(Qr,Xr),Ut.push(Qr)}function di(Ut,wt){for(var rr=0,nr=0,Er=Ut.length,Xr=Er-2;nr0===wt)for(nr=0,Er=Ut.length;nr24)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 nr=er(Ut,wt);this.tiles={},this.tileCoords=[],rr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",wt.indexMaxZoom,wt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),nr=ke(nr,wt),nr.length&&this.splitTile(nr,0,0,0),rr&&(nr.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)))}In.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},In.prototype.splitTile=function(Ut,wt,rr,nr,Er,Xr,ri){for(var Qr=[Ut,wt,rr,nr],Oi=this.options,$i=Oi.debug;Qr.length;){nr=Qr.pop(),rr=Qr.pop(),wt=Qr.pop(),Ut=Qr.pop();var tn=1<1&&console.time("creation"),yn=this.tiles[fn]=ii(Ut,wt,rr,nr,Oi),this.tileCoords.push({z:wt,x:rr,y:nr}),$i)){$i>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",wt,rr,nr,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Sn="z"+wt;this.stats[Sn]=(this.stats[Sn]||0)+1,this.total++}if(yn.source=Ut,Er){if(wt===Oi.maxZoom||wt===Er)continue;var Ba=1<1&&console.time("clipping");var ua=.5*Oi.buffer/Oi.extent,ma=.5-ua,Wa=.5+ua,Fa=1+ua,Xo,da,Wn,Ha,vo,jn;Xo=da=Wn=Ha=null,vo=dt(Ut,tn,rr-ua,rr+Wa,0,yn.minX,yn.maxX,Oi),jn=dt(Ut,tn,rr+ma,rr+Fa,0,yn.minX,yn.maxX,Oi),Ut=null,vo&&(Xo=dt(vo,tn,nr-ua,nr+Wa,1,yn.minY,yn.maxY,Oi),da=dt(vo,tn,nr+ma,nr+Fa,1,yn.minY,yn.maxY,Oi),vo=null),jn&&(Wn=dt(jn,tn,nr-ua,nr+Wa,1,yn.minY,yn.maxY,Oi),Ha=dt(jn,tn,nr+ma,nr+Fa,1,yn.minY,yn.maxY,Oi),jn=null),$i>1&&console.timeEnd("clipping"),Qr.push(Xo||[],wt+1,rr*2,nr*2),Qr.push(da||[],wt+1,rr*2,nr*2+1),Qr.push(Wn||[],wt+1,rr*2+1,nr*2),Qr.push(Ha||[],wt+1,rr*2+1,nr*2+1)}}},In.prototype.getTile=function(Ut,wt,rr){var nr=this.options,Er=nr.extent,Xr=nr.debug;if(Ut<0||Ut>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Ut,wt,rr);for(var Oi=Ut,$i=wt,tn=rr,fn;!fn&&Oi>0;)Oi--,$i=Math.floor($i/2),tn=Math.floor(tn/2),fn=this.tiles[wi(Oi,$i,tn)];return!fn||!fn.source?null:(Xr>1&&console.log("found parent tile z%d-%d-%d",Oi,$i,tn),Xr>1&&console.time("drilling down"),this.splitTile(fn.source,Oi,$i,tn,Ut,wt,rr),Xr>1&&console.timeEnd("drilling down"),this.tiles[Qr]?ar(this.tiles[Qr],Er):null)};function wi(Ut,wt,rr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],Qe=Ve.width,at=Ve.height,Ct=Ve.x,Ot=Ve.y,Rt=Ve.sdf,Bt=Ve.pixelRatio,Dt=Ve.stretchX,yt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:Qe,height:at});i.RGBAImage.copy(Zt,ht,{x:Ct,y:Ot},{x:0,y:0},{width:Qe,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:Rt,stretchX:Dt,stretchY:yt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=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(q){if(this.loaded!==q&&(this.loaded=q,q)){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),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:Qe});return}var Ct=Ve.requests[at];Ct||(Ct=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,Rt){if(Rt){for(var Bt in Rt)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=Rt[+Bt]);Ve.ranges[at]=!0}for(var Dt=0,yt=Ct;Dt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),Qe=void 0,at=de/q*(K+1);if(ft.isDash){var Ct=K-Math.abs(at);Qe=Math.sqrt(Ve*Ve+Ct*Ct)}else Qe=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,Qe+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.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,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),Qe=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,Qe+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,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(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){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,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.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),Ce=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Le=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,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,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.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(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.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 q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,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(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.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,q=-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=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,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 q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.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(q,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}(Le),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.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"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.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=q,this.animate=q.animate!==void 0?q.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(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!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,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||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 q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},ot.prototype.has=function(D){return D.wrapped().key in this.data},ot.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},ot.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},ot.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},ot.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},ot.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},ot.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},ot.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[Qe]&&(ft.neighboringTiles[Qe].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ur){return new i.OverscaledTileID(Ur.canonical.z,Ur.wrap,Ur.canonical.z,Ur.canonical.x,Ur.canonical.y)}):(de=q.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(Ur){return K._source.hasTile(Ur)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(Oi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,Qe=qt;Vethis._source.maxzoom){var Rt=Ct.children(this._source.maxzoom)[0],Bt=this.getTile(Rt);if(Bt&&Bt.hasData()){de[Rt.key]=Rt;continue}}else{var Dt=Ct.children(this._source.maxzoom);if(de[Dt[0].key]&&de[Dt[1].key]&&de[Dt[2].key]&&de[Dt[3].key])continue}for(var yt=Ot.wasRequested(),Pt=Ct.overscaledZ-1;Pt>=we;--Pt){var ht=Ct.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&yt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,yt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].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 Ue=0,ft=K;Ue0)&&(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 q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,Qe=1/0,at=-1/0,Ct=-1/0,Ot=0,Rt=hr;Ot=0&&Di[1].y+Ur>=0){var fi=Zt.map(function(gn){return ur.getTilePoint(gn)}),Ti=hr.map(function(gn){return ur.getTilePoint(gn)});we.push({tile:ht,tileID:ur,queryGeometry:fi,cameraQueryGeometry:Ti,scale:br})}}},yt=0;yt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function Qr(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function Oi(Y){return Y==="raster"||Y==="image"||Y==="video"}function $i(){return new i.window.Worker(io.workerUrl)}var tn="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-Ue).add(this.points[J].mult(Ue))};var Li=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},Li.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},Li.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},Li.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},Li.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},Li.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[Qe]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[Qe],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var Ct=this.circleCells[de];if(Ct!==null)for(var Ot=this.circles,Rt=0,Bt=Ct;Rtwe*we+Ue*Ue},Li.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function $n(Y,D){var J=[Y.x,Y.y,0,1];zl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,Qe=J.transform.width/J.transform.height,at=!1,Ct=0;Ctde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function ko(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var Qe=D/24,at=Y.lineOffsetX*Qe,Ct=Y.lineOffsetY*Qe,Ot;if(Y.numGlyphs>1){var Rt=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Dt=Y.lineStartIndex+Y.lineLength,yt=po(Qe,we,at,Ct,J,Zt,hr,Y,Ue,de,qt);if(!yt)return{notEnoughRoom:!0};var Pt=$n(yt.first.point,ne).point,ht=$n(yt.last.point,ne).point;if(q&&!J){var ur=Lo(Y.writingMode,Pt,ht,Ve);if(ur)return ur}Ot=[yt.first];for(var br=Y.glyphStartIndex+1;br0?Ti.point:Ds(hr,fi,Ur,1,K),rn=Lo(Y.writingMode,Ur,gn,Ve);if(rn)return rn}var Ci=Fs(Qe*we.getoffsetX(Y.glyphStartIndex),at,Ct,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var Bi=0,Gi=Ot;Bi0?1:-1,Qe=0;q&&(Ve*=-1,Qe=Math.PI),Ve<0&&(Qe+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,Ct=K,Ot=K,Rt=0,Bt=0,Dt=Math.abs(qt),yt=[];Rt+Bt<=Dt;){if(at+=Ve,at=Ue)return null;if(Ot=Ct,yt.push(Ct),Ct=hr[at],Ct===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=$n(Pt,Zt);if(ht.signedDistanceFromCamera>0)Ct=hr[at]=ht.point;else{var ur=at-Ve,br=Rt===0?de:new i.Point(ft.getx(ur),ft.gety(ur));Ct=Ds(br,Pt,Ot,Dt-Rt+1,Zt)}}Rt+=Bt,Bt=Ot.dist(Ct)}var Ur=(Dt-Rt)/Bt,Di=Ct.sub(Ot),fi=Di.mult(Ur)._add(Ot);fi._add(Di._unit()._perp()._mult(J*Ve));var Ti=Qe+Math.atan2(Ct.y-Ot.y,Ct.x-Ot.x);return yt.push(fi),{point:fi,angle:Ti,path:yt}}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;sn--)Gi.push(Ci.path[sn]);for(var zn=1;zn0){for(var so=Gi[0].clone(),Yo=Gi[0].clone(),ms=1;ms=Ti.x&&Yo.x<=gn.x&&so.y>=Ti.y&&Yo.y<=gn.y?ts=[Gi]:Yo.xgn.x||Yo.ygn.y?ts=[]:ts=i.clipLine([Gi],Ti.x,Ti.y,gn.x,gn.y)}for(var ou=0,Cv=ts;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},il.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Dt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Dt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:Ct,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Dt},this.markUsedJustification(Ve,D,qt,Qe),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,Qe,qt),this.placedOrientations[qt.crossTileID]=Qe),{shift:Ot,placedGlyphBoxes:Rt}}},bs.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,Qe=de.partiallyEvaluatedTextSize,at=de.collisionGroup,Ct=we.get("text-optional"),Ot=we.get("icon-optional"),Rt=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Dt=we.get("text-rotation-alignment")==="map",yt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",ur=Rt&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(Rt||!ne.hasTextData()||Ct);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Ur=function(Ci,Bi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new zs(!1,!1,!1);return}var Gi=!1,sn=!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;Bi.textFeatureIndex?ou=Bi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(ou=Ci.featureIndex),Bi.verticalTextFeatureIndex&&(Cv=Bi.verticalTextFeatureIndex);var wd=Bi.textBox;if(wd){var Kv=function(vc){var tu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,tu=Sd,K.markUsedOrientation(ne,tu,Ci))}return tu},hg=function(vc,tu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&Bi.verticalTextBox)for(var Sd=0,vy=ne.writingModes;Sd0&&(Ud=Ud.filter(function(vc){return vc!==Ad.anchor}),Ud.unshift(Ad.anchor))}var Pv=function(vc,tu,Sd){for(var vy=vc.x2-vc.x1,L1=vc.y2-vc.y1,wu=Ci.textBoxScale,Yx=Pt&&!Bt?tu:null,lm={box:[],offscreen:!1},Ow=Rt?Ud.length*2:Ud.length,Rv=0;Rv=Ud.length,Kx=K.attemptAnchorPlacement(um,vc,vy,L1,wu,Dt,yt,hr,Ue,at,qw,Ci,ne,Sd,Yx);if(Kx&&(lm=Kx.placedGlyphBoxes,lm&&lm.box&&lm.box.length)){Gi=!0,Ja=Kx.shift;break}}return lm},Jv=function(){return Pv(wd,Bi.iconBox,i.WritingMode.horizontal)},Iv=function(){var vc=Bi.verticalTextBox,tu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!tu&&Ci.numVerticalGlyphVertices>0&&vc?Pv(vc,Bi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Jv,Iv),co&&(Gi=co.box,zn=co.offscreen);var fy=Kv(co&&co.box);if(!Gi&&K.prevPlacement){var dg=K.prevPlacement.variableOffsets[Ci.crossTileID];dg&&(K.variableOffsets[Ci.crossTileID]=dg,K.markUsedJustification(ne,dg.anchor,Ci,fy))}}else{var gp=function(vc,tu){var Sd=K.collisionIndex.placeCollisionBox(vc,Rt,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,tu,Ci),K.placedOrientations[Ci.crossTileID]=tu),Sd},Td=function(){return gp(wd,i.WritingMode.horizontal)},mp=function(){var vc=Bi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.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,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),vg=i.evaluateSizeForFeature(ne.textSizeData,Qe,oh),hy=we.get("text-padding"),Zh=Ci.collisionCircleDiameter;Yo=K.collisionIndex.placeCollisionCircles(Rt,oh,ne.lineVertexArray,ne.glyphOffsetArray,vg,Ue,ft,Zt,q,yt,at.predicate,Zh,hy),Gi=Rt||Yo.circles.length>0&&!Yo.collisionDetected,zn=zn&&Yo.offscreen}if(Bi.iconFeatureIndex&&(Lv=Bi.iconFeatureIndex),Bi.iconBox){var am=function(vc){var tu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Dt,yt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(tu,Bt,hr,Ue,at.predicate)};ts&&ts.box&&ts.box.length&&Bi.verticalIconBox?(ms=am(Bi.verticalIconBox),sn=ms.box.length>0):(ms=am(Bi.iconBox),sn=ms.box.length>0),zn=zn&&ms.offscreen}var k1=Ct||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,C1=Ot||Ci.numIconVertices===0;if(!k1&&!C1?sn=Gi=sn&&Gi:C1?k1||(sn=sn&&Gi):Gi=sn&&Gi,Gi&&so&&so.box&&(ts&&ts.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID)),sn&&ms&&K.collisionIndex.insertCollisionBox(ms.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Lv,at.ID),Yo&&(Gi&&K.collisionIndex.insertCollisionCircles(Yo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,at.ID),q)){var dy=ne.bucketInstanceId,om=K.collisionCircleArrays[dy];om===void 0&&(om=K.collisionCircleArrays[dy]=new Io);for(var sm=0;sm=0;--fi){var Ti=Di[fi];Ur(ne.symbolInstances.get(Ti),ne.collisionArrays[Ti])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},bs.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||yt>0,Ur=Bt.numIconVertices>0,Di=K.placedOrientations[Bt.crossTileID],fi=Di===i.WritingMode.vertical,Ti=Di===i.WritingMode.horizontal||Di===i.WritingMode.horizontalOnly;if(br){var gn=ac(ur.text),rn=fi?aa:gn;Qe(D.text,Dt,rn);var Ci=Ti?aa:gn;Qe(D.text,yt,Ci);var Bi=ur.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(Lv){Lv>=0&&(D.text.placedSymbolArray.get(Lv).hidden=Bi||fi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=Bi||Ti?1:0);var Gi=K.variableOffsets[Bt.crossTileID];Gi&&K.markUsedJustification(D,Gi.anchor,Bt,Di);var sn=K.placedOrientations[Bt.crossTileID];sn&&(K.markUsedJustification(D,"left",Bt,sn),K.markUsedOrientation(D,sn,Bt))}if(Ur){var zn=ac(ur.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&fi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?zn:aa;Qe(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=ur.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var ts=Ja?aa:zn;Qe(D.icon,Bt.numVerticalIconVertices,ts),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=ur.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[Rt];if(so){var Yo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ms=!0;if(ft){var ou=K.variableOffsets[Pt];ou?(Yo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Zt&&Yo._rotate(hr?K.transform.angle:-K.transform.angle)):ms=!1}so.textBox&&Rn(D.textCollisionBox.collisionVertexArray,ur.text.placed,!ms||fi,Yo.x,Yo.y),so.verticalTextBox&&Rn(D.textCollisionBox.collisionVertexArray,ur.text.placed,!ms||Ti,Yo.x,Yo.y)}var Cv=!!(!Ti&&so.verticalIconBox);so.iconBox&&Rn(D.iconCollisionBox.collisionVertexArray,ur.icon.placed,Cv,qt?Yo.x:0,qt?Yo.y:0),so.verticalIconBox&&Rn(D.iconCollisionBox.collisionVertexArray,ur.icon.placed,!Cv,qt?Yo.x:0,qt?Yo.y:0)}}},Ct=0;CtD},bs.prototype.setStale=function(){this.stale=!0};function Rn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),Ol=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*Ol+D*xo+J*Kl+D*Ns+J*Hl+D}var aa=0,Oo=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=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var ql=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)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=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!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(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==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"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.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(q.type==="custom"){if(pl(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.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(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);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,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' 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(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.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 Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.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,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.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 q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.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(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(Ti){return K._layers[Ti].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;Rt--){var Bt=this._order[Rt];if(de(Bt))for(var Dt=we.length-1;Dt>=0;Dt--){var yt=we[Dt].feature;if(ne[yt.layer.id]>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.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,Ue],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(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&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,q){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 Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=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)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=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)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.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:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},Cr=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)}},Ar=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 q=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:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},ki=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)}},Nn=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)}},Qi=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)}},on=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:As(D,1,J),u_intensity:q}},Fi=function(Y,D,J,q){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:q,u_opacity:D.paint.get("heatmap-opacity")}},Qn=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 q=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:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=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 q=Y.transform;return{u_matrix:ml(Y,D,J),u_ratio:1/As(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ss=function(Y,D,J,q){return i.extend(Zo(Y,D,J),{u_image:0,u_image_height:q})},as=function(Y,D,J,q){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,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},ws=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Zo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.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,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.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,q,K,de,ne,we,Ue,ft){var Zt=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:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.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:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},pu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,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}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Zf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:vu,circle:At,collisionBox:Cr,collisionCircle:Ar,debug:Xi,clippingMask:wn,heatmap:Yi,heatmapTexture:Qi,hillshade:Qn,hillshadePrepare:Ca,line:Yn,lineGradient:Dn,linePattern:Ka,lineSDF:bo,raster:Ws,symbolIcon:rs,symbolSDF:Ql,symbolTextAndIcon:Cu,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Dt=i.create(),yt=Ot;i.mul(Dt,Ct.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Dt,Dt,Ct.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:yt,invTransform:Dt}),hr+=Bt.length/4,qt=hr}Rt&&ft.draw(we,Ue.LINES,wi.disabled,Fn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,Rt.layoutVertexBuffer,Rt.indexBuffer,Rt.segments,null,Y.transform.zoom,null,null,Rt.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var ur=0,br=0,Ur=Zt;br=0&&(Qe[Ct.associatedIconIndex]={shiftedAnchor:Ti,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,Bi=0;Bi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function tr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=Fn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wi.ReadWrite:wi.ReadOnly),Ve=Y.colorModeForRenderPass(),Qe=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Ct=J.getCrossfadeParameters(),Ot=0,Rt=at;Ot "+J.overscaledZ);var Ot=Ct+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,wt.alphaBlended,Er.disabled,dn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=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(q.LINEAR,q.CLAMP_TO_EDGE)}function Co(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(Fn.disabled);var ne=K.renderingMode==="3d"?new wi(Y.context.gl.LEQUAL,wi.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wi.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:st,heatmap:Tt,line:Ir,fill:ve,"fill-extrusion":Re,hillshade:et,raster:Ft,background:tr,debug:Aa,custom:Co},mo=function(D,J){this.context=new Xr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.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 q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(wt.disabled),q.setDepthMode(wi.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 Fn({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 Fn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.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={},Ue=0;Ue=0;this.currentLayer--){var Dt=this.style._layers[K[this.currentLayer]],yt=de[Dt.source],Pt=Ue[Dt.source];this._renderTileClippingMasks(Dt,Pt),this.renderLayer(this,yt,Dt,Pt)}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()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new Rf(this.context,D,wf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},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,q){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,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};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],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var Ts=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<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=q,this.right=K};Ts.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},Ts.prototype.getCenter=function(D,J){var q=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(q,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,q,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=q==null?0:q,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,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),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 q=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(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=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),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(fi){return{aabb:new Ps([fi*de,0,0],[(fi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:fi,fullyVisible:!1}},hr=[],qt=[],Ve=J,Qe=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var Ct=hr.pop(),Ot=Ct.x,Rt=Ct.y,Bt=Ct.fullyVisible;if(!Bt){var Dt=Ct.aabb.intersects(we);if(Dt===0)continue;Bt=Dt===2}var yt=Ct.aabb.distanceX(ne),Pt=Ct.aabb.distanceY(ne),ht=Math.max(Math.abs(yt),Math.abs(Pt)),ur=ft+(1<ur&&Ct.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(Ct.zoom===Ve?Qe:Ct.zoom,Ct.wrap,Ct.zoom,Ot,Rt),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-Rt])});continue}for(var br=0;br<4;br++){var Ur=(Ot<<1)+br%2,Di=(Rt<<1)+(br>>1);hr.push({aabb:Ct.aabb.quadrant(br),zoom:Ct.zoom+1,x:Ur,y:Di,wrap:Ct.wrap,fullyVisible:Bt})}}return qt.sort(function(fi,Ti){return fi.distanceSq-Ti.distanceSq}).map(function(fi){return fi.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 q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.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,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/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 q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},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,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-Ct)}if(this.lngRange){var Ot=Ve.x,Rt=ft.x/2;Ot-RtK&&(we=K-Rt)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,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 q=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-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,Qe=this.height%2/2,at=Math.cos(this.angle),Ct=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+Ct*Qe,Rt=Ue-Math.round(Ue)+at*Qe+Ct*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,Rt>.5?Rt-1:Rt,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,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],q=i.transformMat4(J,J,this.pixelMatrix);return q[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 q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){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(),q=160;D.length>0&&J-D[0].time>q;)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},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.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 kt=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};kt.prototype.isEnabled=function(){return!!this._enabled},kt.prototype.isActive=function(){return!!this._active},kt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},kt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},kt.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},kt.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Hr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=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(q){this._lastPoints=q,Xs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Xs(q)&&Xs(K)&&ft}},D}(ia),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 q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-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(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:$s,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.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,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,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 q=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));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,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Me.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.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 zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Rr=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Rr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Rr.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Rr.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[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}}},Rr.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Rr.prototype.touchcancel=function(){this.reset()},Rr.prototype.enable=function(){this._enabled=!0},Rr.prototype.disable=function(){this._enabled=!1,this.reset()},Rr.prototype.isEnabled=function(){return this._enabled},Rr.prototype.isActive=function(){return this._active};var jr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};jr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},jr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},jr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},jr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Nr=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Nr.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Nr.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Nr.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Nr.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Gr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Gr.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")},Gr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Gr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Gr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Gr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Gr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ui=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 Ei=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 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],[i.window.document,"mousemove",{capture:!0}],[i.window.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],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,yt):Math.max(.5,yt),fi=Math.pow(Di,1-br),Ti=ne.unproject(Bt.add(Dt.mult(br*fi)).mult(Ur));ne.setLocationAtPoint(ne.renderWorldCopies?Ti.wrap():Ti,Ct)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,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",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,Qe="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,Ct=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),Rt=we.centerPoint.add(Ot),Bt=we.pointLocation(Rt),Dt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Dt);var yt=we.project(Bt),Pt=we.project(Dt).sub(yt),ht=q.curve,ur=Math.max(we.width,we.height),br=ur/Ct,Ur=Pt.mag();if("minZoom"in q){var Di=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),fi=ur/we.zoomScale(Di-Ue);ht=Math.sqrt(fi/Ur*2)}var Ti=ht*ht;function gn(so){var Yo=(br*br-ur*ur+(so?-1:1)*Ti*Ti*Ur*Ur)/(2*(so?br:ur)*Ti*Ur);return Math.log(Math.sqrt(Yo*Yo+1)-Yo)}function rn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function Bi(so){return rn(so)/Ci(so)}var Gi=gn(0),sn=function(so){return Ci(Gi)/Ci(Gi+ht*so)},zn=function(so){return ur*((Ci(Gi)*Bi(Gi+ht*so)-rn(Gi))/Ti)/Ur},Ja=(gn(1)-Gi)/ht;if(Math.abs(Ur)<1e-6||!isFinite(Ja)){if(Math.abs(ur-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=Qe!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Yo=so*Ja,ms=1/sn(Yo);we.zoom=so===1?qt:Ue+we.scaleZoom(ms),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,Qe,so)),de._padding&&(we.interpolatePadding(hr,at,so),Rt=we.centerPoint.add(Ot));var ou=so===1?Dt:we.unproject(yt.add(Pt.mult(zn(Yo))).mult(ms));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,Rt),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,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(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),en=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};en.prototype.getDefaultPosition=function(){return"bottom-right"},en.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},en.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},en.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},en.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"))},en.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 q=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)}},en.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 q=D[J].getSource();if(q.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 si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchBn)throw new Error("maxPitch must be less than or equal to "+Bn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.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 Ei(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Ul(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new en({customAttribution:q.customAttribution})),this.addControl(new Wi,q.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 Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&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?ci:K,K>=ci&&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()Bn)throw new Error("maxPitch must be less than or equal to "+Bn);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,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,Ct.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,Ct.originalEvent)))},Qe=function(Ct){qt&&(qt=!1,ne.call(we,new se(K,we,Ct.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:Qe}}}else{var at=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length&&(Ct.features=Ot,ne.call(we,Ct),delete Ct.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},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 Ue in we.delegates)this.on(Ue,we.delegates[Ue]);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 Ue in we.delegates)this.once(Ue,we.delegates[Ue]);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 Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){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 Vn={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 na(Y,D,J){var q=Y.classList;for(var K in Vn)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Ki=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),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 Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{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"}],hr=0,qt=Zt;hr=K}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 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(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))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(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(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),kn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ta;function oa(Y){ta!==void 0?Y(ta):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ta=D.state!=="denied",Y(ta)}):(ta=!!i.window.navigator.geolocation,Y(ta))}var ba=0,is=!1,Zs=function(Y){function D(J){Y.call(this),this.options=i.extend({},kn,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(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(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(q){var K=this._map.getMaxBounds(),de=q.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(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,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(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.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(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),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(q){if(this._map){if(this.options.trackUserLocation)if(q.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(q.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",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){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",q===!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 Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(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 q;ba>1?(q={maximumAge:6e5,timeout:0},is=!0):(q=this.options.positionOptions,is=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}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),Va={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Va,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 q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;Qs(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else Qs(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;Qs(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?Qs(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):Qs(D,q,we,Y._getUIString("ScaleControl.Meters"))}function Qs(Y,D,J,q){var K=Vl(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}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(q){return this._map&&this.remove(),this._map=q,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(q){return this._lngLat=i.LngLat.convert(q),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(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;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(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){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(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},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(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){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(Ve){return K._container.classList.add(Ve)}),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&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=ol(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Vn[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ys);q&&q.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:li,NavigationControl:Vi,GeolocateControl:Zs,AttributionControl:en,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 yGe=ye((Pxr,mGe)=>{"use strict";var hw=Dr(),Wjt=Zl().sanitizeHTML,Xjt=cJ(),vGe=m1();function pGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=vGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=pGe.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=r7(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,!!r7(e)){var r=Zjt(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 gGe(e){var t={},r={};switch(e.type){case"circle":hw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":hw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":hw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=Xjt(n.textposition,n.iconsize);hw.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}),hw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":hw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Zjt(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=Wjt(e.sourceattribution)),n}mGe.exports=function(t,r,n){var i=new pGe(t,r);return i.update(n),i}});var EGe=ye((Ixr,MGe)=>{"use strict";var mJ=gJ(),yJ=Dr(),wGe=hx(),_Ge=qa(),Yjt=ho(),Kjt=yv(),i7=vf(),TGe=Cg(),Jjt=TGe.drawMode,$jt=TGe.selectMode,Qjt=Of().prepSelect,eWt=Of().clearOutline,tWt=Of().clearSelectionsCache,rWt=Of().selectOnClick,kx=m1(),iWt=yGe();function AGe(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=AGe.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=SGe(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 mJ.Map({container:i.div,style:o.style,center:_J(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 mJ.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(wGe.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=SGe(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(wGe.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&&rWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&i7.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=yJ.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),$jt(a)||Jjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){Qjt(l,u,c,t.dragOptions,a)},Kjt.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 xJ=Dr(),nWt=O_(),aWt=Zd(),kGe=Zk();CGe.exports=function(t,r,n){nWt(t,r,n,{type:"mapbox",attributes:kGe,handleDefaults:oWt,partition:"y",accessToken:r._mapboxAccessToken})};function oWt(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,aWt(e,t,{name:"layers",handleItemDefaults:sWt}),t._input=e}function sWt(e,t){function r(l,u){return xJ.coerce(e,t,kGe.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",xJ.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"),xJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var n7=ye(Np=>{"use strict";var PGe=gJ(),nm=Dr(),bJ=nm.strTranslate,lWt=nm.strScale,uWt=Id().getSubplotCalcData,cWt=Wp(),fWt=Oa(),IGe=So(),hWt=Zl(),dWt=EGe(),Cx="mapbox",oy=Np.constants=m1();Np.name=Cx;Np.attr="subplot";Np.idRoot=Cx;Np.idRegex=Np.attrRegex=nm.counterRegex(Cx);var vWt=["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=Zk();Np.supplyLayoutDefaults=LGe();var RGe=!0;Np.plot=function(t){RGe&&(RGe=!1,nm.warn(vWt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Cx];if(PGe.version!==oy.requiredVersion)throw new Error(oy.wrongVersionErrorMsg);var a=pWt(t,i);PGe.accessToken=a;for(var o=0;op/2){var k=d.split("|").join("
");_.text(k).attr("data-unformatted",k).call(hWt.convertToTspans,e),b=IGe.bBox(_.node())}_.attr("transform",bJ(-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 E=1;b.width+6>p&&(E=p/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",bJ(T[0],T[1])+lWt(E))}};function pWt(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(oy.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 DGe(e){return typeof e=="string"&&(oy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Np.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Cx],n=0;n{"use strict";var Fxr=["*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(" ");FGe.exports={attributes:Kz(),supplyDefaults:XVe(),colorbar:$d(),formatLabels:uJ(),calc:_F(),plot:sGe(),hoverPoints:t7().hoverPoints,eventData:fGe(),selectPoints:dGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:n7(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var qGe=ye((Oxr,OGe)=>{"use strict";OGe.exports=zGe()});var wJ=ye((qxr,BGe)=>{"use strict";var y1=a5(),gWt=Tu(),{hovertemplateAttrs:mWt,templatefallbackAttrs:yWt}=Ll(),_Wt=Gl(),Lx=Ao().extendFlat;BGe.exports=Lx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Lx({},y1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:y1.text,hovertext:y1.hovertext,marker:{line:{color:Lx({},y1.marker.line.color,{editType:"plot"}),width:Lx({},y1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Lx({},y1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Lx({},y1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Lx({},y1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:y1.hoverinfo,hovertemplate:mWt({},{keys:["properties"]}),hovertemplatefallback:yWt(),showlegend:Lx({},_Wt.showlegend,{dflt:!1})},gWt("",{cLetter:"z",editTypeOverride:"calc"}))});var UGe=ye((Bxr,NGe)=>{"use strict";var $k=Dr(),xWt=td(),bWt=wJ();NGe.exports=function(t,r,n,i){function a(c,f){return $k.coerce(t,r,bWt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!$k.isArrayOrTypedArray(o)||!o.length||!$k.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||$k.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"}),$k.coerceSelectionMarkerOpacity(r,a)}});var TJ=ye((Nxr,HGe)=>{"use strict";var wWt=Eo(),_1=Dr(),TWt=tc(),AWt=So(),SWt=cx().makeBlank,VGe=hx();function MWt(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:SWt()};if(!r)return a;var o=VGe.extractTraceFeature(e);if(!o)return a;var s=TWt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;_1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var E=k.mo;return wWt(E)?+_1.constrain(E,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 WGe=TJ().convert,EWt=TJ().convertOnSelect,jGe=m1().traceLayerPrefix;function XGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",jGe+t+"-fill"],["line",jGe+t+"-line"]],this.below=null}var L5=XGe.prototype;L5.update=function(e){this._update(WGe(e)),e[0].trace._glTrace=this};L5.updateOnSelect=function(e){this._update(EWt(e))};L5._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])};L5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};ZGe.exports=function(t,r){var n=r[0].trace,i=new XGe(t,n.uid),a=i.sourceId,o=WGe(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 JGe=ye((Gxr,KGe)=>{"use strict";var Vxr=["*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(" ");KGe.exports={attributes:wJ(),supplyDefaults:UGe(),colorbar:D_(),calc:NF(),plot:YGe(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";$Ge.exports=JGe()});var SJ=ye((jxr,tHe)=>{"use strict";var kWt=Tu(),{hovertemplateAttrs:CWt,templatefallbackAttrs:LWt}=Ll(),eHe=Gl(),a7=Kz(),AJ=Ao().extendFlat;tHe.exports=AJ({lon:a7.lon,lat:a7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:a7.text,hovertext:a7.hovertext,hoverinfo:AJ({},eHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:CWt(),hovertemplatefallback:LWt(),showlegend:AJ({},eHe.showlegend,{dflt:!1})},kWt("",{cLetter:"z",editTypeOverride:"calc"}))});var iHe=ye((Wxr,rHe)=>{"use strict";var PWt=Dr(),IWt=td(),RWt=SJ();rHe.exports=function(t,r,n,i){function a(u,c){return PWt.coerce(t,r,RWt,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"),IWt(t,r,i,a,{prefix:"",cLetter:"z"})}});var oHe=ye((Xxr,aHe)=>{"use strict";var MJ=Eo(),DWt=Dr().isArrayOrTypedArray,EJ=fs().BADNUM,FWt=gv(),nHe=Dr()._;aHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=DWt(a)&&a.length,s=0;s{"use strict";var zWt=Eo(),kJ=Dr(),sHe=ka(),lHe=tc(),uHe=fs().BADNUM,OWt=cx().makeBlank;cHe.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:OWt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=kJ.isArrayOrTypedArray(l)&&l.length,f=kJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=lHe.extractOpts(r),p=b.reversescale?lHe.flipScale(b.colorscale):b.colorscale,k=p[0][1],E=sHe.opacity(k)<1?k:sHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var hHe=fHe(),qWt=m1().traceLayerPrefix;function dHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",qWt+t+"-heatmap"]],this.below=null}var o7=dHe.prototype;o7.update=function(e){var t=this.subplot,r=this.layerList,n=hHe(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])};o7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};vHe.exports=function(t,r){var n=r[0].trace,i=new dHe(t,n.uid),a=i.sourceId,o=hHe(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((Kxr,gHe)=>{"use strict";var BWt=ho(),NWt=t7().hoverPoints,UWt=t7().getExtraText;gHe.exports=function(t,r,n){var i=NWt(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=BWt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=UWt(s,l,o[0].t.labels),[a]}}});var _He=ye((Jxr,yHe)=>{"use strict";yHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var bHe=ye((Qxr,xHe)=>{"use strict";var $xr=["*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(" ");xHe.exports={attributes:SJ(),supplyDefaults:iHe(),colorbar:D_(),formatLabels:uJ(),calc:oHe(),plot:pHe(),hoverPoints:mHe(),eventData:_He(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";wHe.exports=bHe()});var SHe=ye((tbr,AHe)=>{AHe.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} +`),yt=we.createShader(we.FRAGMENT_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(yt,Bt),we.compileShader(yt),we.attachShader(this.program,yt);var Pt=we.createShader(we.VERTEX_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(Pt,Dt),we.compileShader(Pt),we.attachShader(this.program,Pt),this.attributes={};var ht={};this.numAttributes=Zt.length;for(var ur=0;ur>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.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,Ue],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(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&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,q){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 Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=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)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=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)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.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:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},Cr=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)}},Ar=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 q=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:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},ki=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)}},Nn=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)}},Qi=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)}},on=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:As(D,1,J),u_intensity:q}},Fi=function(Y,D,J,q){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:q,u_opacity:D.paint.get("heatmap-opacity")}},Qn=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 q=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:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=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 q=Y.transform;return{u_matrix:ml(Y,D,J),u_ratio:1/As(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ss=function(Y,D,J,q){return i.extend(Zo(Y,D,J),{u_image:0,u_image_height:q})},as=function(Y,D,J,q){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,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},ws=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Zo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.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,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.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,q,K,de,ne,we,Ue,ft){var Zt=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:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.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:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},pu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,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}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Zf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:vu,circle:At,collisionBox:Cr,collisionCircle:Ar,debug:Xi,clippingMask:wn,heatmap:Yi,heatmapTexture:Qi,hillshade:Qn,hillshadePrepare:Ca,line:Yn,lineGradient:Dn,linePattern:Ka,lineSDF:bo,raster:Ws,symbolIcon:rs,symbolSDF:Ql,symbolTextAndIcon:Cu,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Dt=i.create(),yt=Ot;i.mul(Dt,Ct.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Dt,Dt,Ct.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:yt,invTransform:Dt}),hr+=Bt.length/4,qt=hr}Rt&&ft.draw(we,Ue.LINES,wi.disabled,Fn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,Rt.layoutVertexBuffer,Rt.indexBuffer,Rt.segments,null,Y.transform.zoom,null,null,Rt.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var ur=0,br=0,Ur=Zt;br=0&&(Qe[Ct.associatedIconIndex]={shiftedAnchor:Ti,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,Bi=0;Bi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function tr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=Fn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wi.ReadWrite:wi.ReadOnly),Ve=Y.colorModeForRenderPass(),Qe=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Ct=J.getCrossfadeParameters(),Ot=0,Rt=at;Ot "+J.overscaledZ);var Ot=Ct+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,wt.alphaBlended,Er.disabled,dn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=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(q.LINEAR,q.CLAMP_TO_EDGE)}function Co(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(Fn.disabled);var ne=K.renderingMode==="3d"?new wi(Y.context.gl.LEQUAL,wi.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wi.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:st,heatmap:Tt,line:Ir,fill:ve,"fill-extrusion":Re,hillshade:et,raster:Ft,background:tr,debug:Aa,custom:Co},mo=function(D,J){this.context=new Xr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.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 q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(wt.disabled),q.setDepthMode(wi.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 Fn({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 Fn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.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={},Ue=0;Ue=0;this.currentLayer--){var Dt=this.style._layers[K[this.currentLayer]],yt=de[Dt.source],Pt=Ue[Dt.source];this._renderTileClippingMasks(Dt,Pt),this.renderLayer(this,yt,Dt,Pt)}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()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new Rf(this.context,D,wf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},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,q){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,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};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],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var Ts=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<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=q,this.right=K};Ts.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},Ts.prototype.getCenter=function(D,J){var q=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(q,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,q,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=q==null?0:q,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,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),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 q=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(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=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),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(fi){return{aabb:new Ps([fi*de,0,0],[(fi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:fi,fullyVisible:!1}},hr=[],qt=[],Ve=J,Qe=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var Ct=hr.pop(),Ot=Ct.x,Rt=Ct.y,Bt=Ct.fullyVisible;if(!Bt){var Dt=Ct.aabb.intersects(we);if(Dt===0)continue;Bt=Dt===2}var yt=Ct.aabb.distanceX(ne),Pt=Ct.aabb.distanceY(ne),ht=Math.max(Math.abs(yt),Math.abs(Pt)),ur=ft+(1<ur&&Ct.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(Ct.zoom===Ve?Qe:Ct.zoom,Ct.wrap,Ct.zoom,Ot,Rt),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-Rt])});continue}for(var br=0;br<4;br++){var Ur=(Ot<<1)+br%2,Di=(Rt<<1)+(br>>1);hr.push({aabb:Ct.aabb.quadrant(br),zoom:Ct.zoom+1,x:Ur,y:Di,wrap:Ct.wrap,fullyVisible:Bt})}}return qt.sort(function(fi,Ti){return fi.distanceSq-Ti.distanceSq}).map(function(fi){return fi.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 q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.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,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/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 q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},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,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-Ct)}if(this.lngRange){var Ot=Ve.x,Rt=ft.x/2;Ot-RtK&&(we=K-Rt)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,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 q=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-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,Qe=this.height%2/2,at=Math.cos(this.angle),Ct=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+Ct*Qe,Rt=Ue-Math.round(Ue)+at*Qe+Ct*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,Rt>.5?Rt-1:Rt,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,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],q=i.transformMat4(J,J,this.pixelMatrix);return q[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 q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){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(),q=160;D.length>0&&J-D[0].time>q;)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},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.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 kt=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};kt.prototype.isEnabled=function(){return!!this._enabled},kt.prototype.isActive=function(){return!!this._active},kt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},kt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},kt.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},kt.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Hr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=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(q){this._lastPoints=q,Xs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Xs(q)&&Xs(K)&&ft}},D}(ia),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 q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-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(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:$s,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.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,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,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 q=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));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,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Me.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.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 zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Rr=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Rr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Rr.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Rr.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[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}}},Rr.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Rr.prototype.touchcancel=function(){this.reset()},Rr.prototype.enable=function(){this._enabled=!0},Rr.prototype.disable=function(){this._enabled=!1,this.reset()},Rr.prototype.isEnabled=function(){return this._enabled},Rr.prototype.isActive=function(){return this._active};var jr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};jr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},jr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},jr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},jr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Nr=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Nr.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Nr.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Nr.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Nr.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Gr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Gr.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")},Gr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Gr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Gr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Gr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Gr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ui=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 Ei=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 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],[i.window.document,"mousemove",{capture:!0}],[i.window.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],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,yt):Math.max(.5,yt),fi=Math.pow(Di,1-br),Ti=ne.unproject(Bt.add(Dt.mult(br*fi)).mult(Ur));ne.setLocationAtPoint(ne.renderWorldCopies?Ti.wrap():Ti,Ct)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,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",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,Qe="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,Ct=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),Rt=we.centerPoint.add(Ot),Bt=we.pointLocation(Rt),Dt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Dt);var yt=we.project(Bt),Pt=we.project(Dt).sub(yt),ht=q.curve,ur=Math.max(we.width,we.height),br=ur/Ct,Ur=Pt.mag();if("minZoom"in q){var Di=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),fi=ur/we.zoomScale(Di-Ue);ht=Math.sqrt(fi/Ur*2)}var Ti=ht*ht;function gn(so){var Yo=(br*br-ur*ur+(so?-1:1)*Ti*Ti*Ur*Ur)/(2*(so?br:ur)*Ti*Ur);return Math.log(Math.sqrt(Yo*Yo+1)-Yo)}function rn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function Bi(so){return rn(so)/Ci(so)}var Gi=gn(0),sn=function(so){return Ci(Gi)/Ci(Gi+ht*so)},zn=function(so){return ur*((Ci(Gi)*Bi(Gi+ht*so)-rn(Gi))/Ti)/Ur},Ja=(gn(1)-Gi)/ht;if(Math.abs(Ur)<1e-6||!isFinite(Ja)){if(Math.abs(ur-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=Qe!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Yo=so*Ja,ms=1/sn(Yo);we.zoom=so===1?qt:Ue+we.scaleZoom(ms),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,Qe,so)),de._padding&&(we.interpolatePadding(hr,at,so),Rt=we.centerPoint.add(Ot));var ou=so===1?Dt:we.unproject(yt.add(Pt.mult(zn(Yo))).mult(ms));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,Rt),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,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(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),en=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};en.prototype.getDefaultPosition=function(){return"bottom-right"},en.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},en.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},en.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},en.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"))},en.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 q=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)}},en.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 q=D[J].getSource();if(q.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 si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchBn)throw new Error("maxPitch must be less than or equal to "+Bn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.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 Ei(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Ul(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new en({customAttribution:q.customAttribution})),this.addControl(new Wi,q.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 Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&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?ci:K,K>=ci&&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()Bn)throw new Error("maxPitch must be less than or equal to "+Bn);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,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,Ct.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,Ct.originalEvent)))},Qe=function(Ct){qt&&(qt=!1,ne.call(we,new se(K,we,Ct.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:Qe}}}else{var at=function(Ct){var Ot=we.getLayer(de)?we.queryRenderedFeatures(Ct.point,{layers:[de]}):[];Ot.length&&(Ct.features=Ot,ne.call(we,Ct),delete Ct.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},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 Ue in we.delegates)this.on(Ue,we.delegates[Ue]);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 Ue in we.delegates)this.once(Ue,we.delegates[Ue]);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 Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){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 Vn={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 na(Y,D,J){var q=Y.classList;for(var K in Vn)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Ki=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),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 Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{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"}],hr=0,qt=Zt;hr=K}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 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(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))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(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(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),kn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ta;function oa(Y){ta!==void 0?Y(ta):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ta=D.state!=="denied",Y(ta)}):(ta=!!i.window.navigator.geolocation,Y(ta))}var ba=0,is=!1,Zs=function(Y){function D(J){Y.call(this),this.options=i.extend({},kn,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(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(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(q){var K=this._map.getMaxBounds(),de=q.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(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,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(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.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(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),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(q){if(this._map){if(this.options.trackUserLocation)if(q.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(q.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",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){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",q===!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 Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(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 q;ba>1?(q={maximumAge:6e5,timeout:0},is=!0):(q=this.options.positionOptions,is=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}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),Va={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Va,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 q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;Qs(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else Qs(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;Qs(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?Qs(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):Qs(D,q,we,Y._getUIString("ScaleControl.Meters"))}function Qs(Y,D,J,q){var K=Vl(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}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(q){return this._map&&this.remove(),this._map=q,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(q){return this._lngLat=i.LngLat.convert(q),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(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;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(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){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(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},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(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){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(Ve){return K._container.classList.add(Ve)}),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&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=ol(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Vn[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ys);q&&q.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:li,NavigationControl:Vi,GeolocateControl:Zs,AttributionControl:en,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 yGe=ye((Pxr,mGe)=>{"use strict";var hw=Dr(),Wjt=Zl().sanitizeHTML,Xjt=cJ(),vGe=m1();function pGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=vGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=pGe.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=r7(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,!!r7(e)){var r=Zjt(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 gGe(e){var t={},r={};switch(e.type){case"circle":hw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":hw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":hw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=Xjt(n.textposition,n.iconsize);hw.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}),hw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":hw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Zjt(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=Wjt(e.sourceattribution)),n}mGe.exports=function(t,r,n){var i=new pGe(t,r);return i.update(n),i}});var EGe=ye((Ixr,MGe)=>{"use strict";var mJ=gJ(),yJ=Dr(),wGe=hx(),_Ge=qa(),Yjt=ho(),Kjt=yv(),i7=vf(),TGe=Cg(),Jjt=TGe.drawMode,$jt=TGe.selectMode,Qjt=Of().prepSelect,eWt=Of().clearOutline,tWt=Of().clearSelectionsCache,rWt=Of().selectOnClick,kx=m1(),iWt=yGe();function AGe(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=AGe.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=SGe(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 mJ.Map({container:i.div,style:o.style,center:_J(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 mJ.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(wGe.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=SGe(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(wGe.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&&rWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&i7.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=yJ.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),$jt(a)||Jjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){Qjt(l,u,c,t.dragOptions,a)},Kjt.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 xJ=Dr(),nWt=O_(),aWt=Zd(),kGe=Yk();CGe.exports=function(t,r,n){nWt(t,r,n,{type:"mapbox",attributes:kGe,handleDefaults:oWt,partition:"y",accessToken:r._mapboxAccessToken})};function oWt(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,aWt(e,t,{name:"layers",handleItemDefaults:sWt}),t._input=e}function sWt(e,t){function r(l,u){return xJ.coerce(e,t,kGe.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",xJ.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"),xJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var n7=ye(Np=>{"use strict";var PGe=gJ(),nm=Dr(),bJ=nm.strTranslate,lWt=nm.strScale,uWt=Id().getSubplotCalcData,cWt=Wp(),fWt=Oa(),IGe=So(),hWt=Zl(),dWt=EGe(),Cx="mapbox",oy=Np.constants=m1();Np.name=Cx;Np.attr="subplot";Np.idRoot=Cx;Np.idRegex=Np.attrRegex=nm.counterRegex(Cx);var vWt=["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=LGe();var RGe=!0;Np.plot=function(t){RGe&&(RGe=!1,nm.warn(vWt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Cx];if(PGe.version!==oy.requiredVersion)throw new Error(oy.wrongVersionErrorMsg);var a=pWt(t,i);PGe.accessToken=a;for(var o=0;op/2){var k=d.split("|").join("
");_.text(k).attr("data-unformatted",k).call(hWt.convertToTspans,e),b=IGe.bBox(_.node())}_.attr("transform",bJ(-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 E=1;b.width+6>p&&(E=p/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",bJ(T[0],T[1])+lWt(E))}};function pWt(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(oy.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 DGe(e){return typeof e=="string"&&(oy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Np.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Cx],n=0;n{"use strict";var Fxr=["*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(" ");FGe.exports={attributes:Kz(),supplyDefaults:XVe(),colorbar:$d(),formatLabels:uJ(),calc:_F(),plot:sGe(),hoverPoints:t7().hoverPoints,eventData:fGe(),selectPoints:dGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:n7(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var qGe=ye((Oxr,OGe)=>{"use strict";OGe.exports=zGe()});var wJ=ye((qxr,BGe)=>{"use strict";var y1=a5(),gWt=Tu(),{hovertemplateAttrs:mWt,templatefallbackAttrs:yWt}=Ll(),_Wt=Gl(),Lx=Ao().extendFlat;BGe.exports=Lx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Lx({},y1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:y1.text,hovertext:y1.hovertext,marker:{line:{color:Lx({},y1.marker.line.color,{editType:"plot"}),width:Lx({},y1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Lx({},y1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Lx({},y1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Lx({},y1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:y1.hoverinfo,hovertemplate:mWt({},{keys:["properties"]}),hovertemplatefallback:yWt(),showlegend:Lx({},_Wt.showlegend,{dflt:!1})},gWt("",{cLetter:"z",editTypeOverride:"calc"}))});var UGe=ye((Bxr,NGe)=>{"use strict";var Qk=Dr(),xWt=td(),bWt=wJ();NGe.exports=function(t,r,n,i){function a(c,f){return Qk.coerce(t,r,bWt,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"),xWt(t,r,i,a,{prefix:"",cLetter:"z"}),Qk.coerceSelectionMarkerOpacity(r,a)}});var TJ=ye((Nxr,HGe)=>{"use strict";var wWt=Eo(),_1=Dr(),TWt=tc(),AWt=So(),SWt=cx().makeBlank,VGe=hx();function MWt(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:SWt()};if(!r)return a;var o=VGe.extractTraceFeature(e);if(!o)return a;var s=TWt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;_1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var E=k.mo;return wWt(E)?+_1.constrain(E,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 WGe=TJ().convert,EWt=TJ().convertOnSelect,jGe=m1().traceLayerPrefix;function XGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",jGe+t+"-fill"],["line",jGe+t+"-line"]],this.below=null}var L5=XGe.prototype;L5.update=function(e){this._update(WGe(e)),e[0].trace._glTrace=this};L5.updateOnSelect=function(e){this._update(EWt(e))};L5._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])};L5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};ZGe.exports=function(t,r){var n=r[0].trace,i=new XGe(t,n.uid),a=i.sourceId,o=WGe(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 JGe=ye((Gxr,KGe)=>{"use strict";var Vxr=["*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(" ");KGe.exports={attributes:wJ(),supplyDefaults:UGe(),colorbar:D_(),calc:NF(),plot:YGe(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";$Ge.exports=JGe()});var SJ=ye((jxr,tHe)=>{"use strict";var kWt=Tu(),{hovertemplateAttrs:CWt,templatefallbackAttrs:LWt}=Ll(),eHe=Gl(),a7=Kz(),AJ=Ao().extendFlat;tHe.exports=AJ({lon:a7.lon,lat:a7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:a7.text,hovertext:a7.hovertext,hoverinfo:AJ({},eHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:CWt(),hovertemplatefallback:LWt(),showlegend:AJ({},eHe.showlegend,{dflt:!1})},kWt("",{cLetter:"z",editTypeOverride:"calc"}))});var iHe=ye((Wxr,rHe)=>{"use strict";var PWt=Dr(),IWt=td(),RWt=SJ();rHe.exports=function(t,r,n,i){function a(u,c){return PWt.coerce(t,r,RWt,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"),IWt(t,r,i,a,{prefix:"",cLetter:"z"})}});var oHe=ye((Xxr,aHe)=>{"use strict";var MJ=Eo(),DWt=Dr().isArrayOrTypedArray,EJ=fs().BADNUM,FWt=gv(),nHe=Dr()._;aHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=DWt(a)&&a.length,s=0;s{"use strict";var zWt=Eo(),kJ=Dr(),sHe=ka(),lHe=tc(),uHe=fs().BADNUM,OWt=cx().makeBlank;cHe.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:OWt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=kJ.isArrayOrTypedArray(l)&&l.length,f=kJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=lHe.extractOpts(r),p=b.reversescale?lHe.flipScale(b.colorscale):b.colorscale,k=p[0][1],E=sHe.opacity(k)<1?k:sHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var hHe=fHe(),qWt=m1().traceLayerPrefix;function dHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",qWt+t+"-heatmap"]],this.below=null}var o7=dHe.prototype;o7.update=function(e){var t=this.subplot,r=this.layerList,n=hHe(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])};o7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};vHe.exports=function(t,r){var n=r[0].trace,i=new dHe(t,n.uid),a=i.sourceId,o=hHe(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((Kxr,gHe)=>{"use strict";var BWt=ho(),NWt=t7().hoverPoints,UWt=t7().getExtraText;gHe.exports=function(t,r,n){var i=NWt(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=BWt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=UWt(s,l,o[0].t.labels),[a]}}});var _He=ye((Jxr,yHe)=>{"use strict";yHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var bHe=ye((Qxr,xHe)=>{"use strict";var $xr=["*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(" ");xHe.exports={attributes:SJ(),supplyDefaults:iHe(),colorbar:D_(),formatLabels:uJ(),calc:oHe(),plot:pHe(),hoverPoints:mHe(),eventData:_He(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";wHe.exports=bHe()});var SHe=ye((tbr,AHe)=>{AHe.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} @@ -3223,9 +3223,9 @@ uniform `+Zt+" "+hr+" u_"+qt+`; {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 EHe=ye((rbr,MHe)=>{MHe.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 Px=ye((ibr,IHe)=>{"use strict";var VWt=t_(),GWt=SHe(),HWt=EHe(),jWt='\xA9 OpenStreetMap contributors',kHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",CHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",s7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",WWt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",XWt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",ZWt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",PHe={basic:s7,streets:s7,outdoors:s7,light:kHe,dark:CHe,satellite:HWt,"satellite-streets":GWt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jWt,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":kHe,"carto-darkmatter":CHe,"carto-voyager":s7,"carto-positron-nolabels":WWt,"carto-darkmatter-nolabels":XWt,"carto-voyager-nolabels":ZWt},LHe=VWt(PHe);IHe.exports={styleValueDflt:"basic",stylesMap:PHe,styleValuesMap:LHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",LHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var Qk=ye((nbr,OHe)=>{"use strict";var RHe=Dr(),DHe=ka().defaultLine,YWt=Cc().attributes,KWt=ec(),JWt=pf().textposition,$Wt=mc().overrideAll,QWt=vl().templatedArray,FHe=Px(),zHe=KWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});zHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var eXt=OHe.exports=$Wt({_arrayAttrRegexps:[RHe.counterRegex("map",".layers",!0)],domain:YWt({name:"map"}),style:{valType:"any",values:FHe.styleValuesMap,dflt:FHe.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:QWt("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:DHe},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:DHe}},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:zHe,textposition:RHe.extendFlat({},JWt,{arrayOk:!1})}})},"plot","from-root");eXt.uirevision={valType:"any",editType:"none"}});var l7=ye((abr,UHe)=>{"use strict";var{hovertemplateAttrs:tXt,texttemplateAttrs:rXt,templatefallbackAttrs:qHe}=Ll(),iXt=Pg(),eC=ew(),P5=pf(),BHe=Qk(),nXt=Gl(),aXt=Tu(),dw=Ao().extendFlat,oXt=mc().overrideAll,sXt=Qk(),NHe=eC.line,I5=eC.marker;UHe.exports=oXt({lon:eC.lon,lat:eC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},sXt.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({},I5.opacity,{dflt:1})},mode:dw({},P5.mode,{dflt:"markers"}),text:dw({},P5.text,{}),texttemplate:rXt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:qHe({editType:"plot"}),hovertext:dw({},P5.hovertext,{}),line:{color:NHe.color,width:NHe.width},connectgaps:P5.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:I5.opacity,size:I5.size,sizeref:I5.sizeref,sizemin:I5.sizemin,sizemode:I5.sizemode},aXt("marker")),fill:eC.fill,fillcolor:iXt(),textfont:BHe.layers.symbol.textfont,textposition:BHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:P5.selected.marker},unselected:{marker:P5.unselected.marker},hoverinfo:dw({},nXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:tXt(),hovertemplatefallback:qHe()},"calc","nested")});var CJ=ye((obr,VHe)=>{"use strict";var lXt=["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"];VHe.exports={isSupportedFont:function(e){return lXt.indexOf(e)!==-1}}});var jHe=ye((sbr,HHe)=>{"use strict";var tC=Dr(),LJ=Ru(),uXt=$p(),cXt=D0(),fXt=F0(),hXt=Fg(),GHe=l7(),dXt=CJ().isSupportedFont;HHe.exports=function(t,r,n,i){function a(p,k){return tC.coerce(t,r,GHe,p,k)}function o(p,k){return tC.coerce2(t,r,GHe,p,k)}var s=vXt(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"),LJ.hasMarkers(r)){uXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(tC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),tC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}LJ.hasLines(r)&&(cXt(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,_=a("cluster.enabled",v);if(_||LJ.hasText(r)){var b=i.font.family;fXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:dXt(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"&&hXt(t,r,n,a),tC.coerceSelectionMarkerOpacity(r,a)};function vXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var PJ=ye((lbr,XHe)=>{"use strict";var WHe=ho();XHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=WHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=WHe.tickText(o,o.c2l(s[1]),!0).text,i}});var IJ=ye((ubr,YHe)=>{"use strict";var ZHe=Dr();YHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=ZHe.isArrayOrTypedArray(r)?ZHe.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 tje=ye((cbr,eje)=>{"use strict";var $He=Eo(),ov=Dr(),pXt=fs().BADNUM,c7=cx(),KHe=tc(),gXt=So(),mXt=O3(),f7=Ru(),yXt=CJ().isSupportedFont,_Xt=IJ(),xXt=ip().appendArrayPointValue,bXt=Zl().NEWLINES,wXt=Zl().BR_TAG_ALL;eje.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=f7.hasLines(n),s=f7.hasMarkers(n),l=f7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=u7("fill"),d=u7("line"),v=u7("circle"),_=u7("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=c7.calcTraceToLineCoords(r)),a&&(h.geojson=c7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=c7.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=TXt(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":JHe(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)&&(_.geojson=AXt(r,t),ov.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,T=_Xt(n.textposition,E);ov.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":JHe(n)}),ov.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function u7(e){return{type:e,geojson:c7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function TXt(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(E){return t.opacity*E}function u(E){return E/2}var c;i&&(KHe.hasColorscale(t,"marker")?c=KHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=mXt(t));var h;o&&(h=function(E){var T=$He(E)?+ov.constrain(E,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"),yXt(s)||(s=r);var l=s.split(", ");return l}});var aje=ye((fbr,nje)=>{"use strict";var SXt=Dr(),rje=tje(),R5=Px().traceLayerPrefix,og={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function ije(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:R5+t+"-fill",line:R5+t+"-line",circle:R5+t+"-circle",symbol:R5+t+"-symbol",cluster:R5+t+"-cluster",clusterCount:R5+t+"-cluster-count"},this.below=null}var rC=ije.prototype;rC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&SXt.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)};rC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};rC.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])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var T=og.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?og.cluster:og.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};nje.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new ije(t,n.uid,i,a),s=rje(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 MXt=vf(),FJ=Dr(),EXt=gT(),kXt=FJ.fillText,CXt=fs().BADNUM,LXt=Px().traceLayerPrefix;function PXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=LXt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===CXt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=FJ.modHalf(g[0],360),A=g[1],z=s.project([P,A]),O=z.x-a.c2p([v,A]),U=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+U*U)-G,1-3/G)}if(MXt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[FJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+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=EXt(i,b),e.extraText=oje(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function oje(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)&&kXt(t,e,u),u.join("
")}sje.exports={hoverPoints:PXt,getExtraText:oje}});var uje=ye((dbr,lje)=>{"use strict";lje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var fje=ye((vbr,cje)=>{"use strict";var IXt=Dr(),RXt=Ru(),DXt=fs().BADNUM;cje.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!RXt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof zJ=="object"&&typeof OJ!="undefined"?OJ.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);",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,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ct){try{Ke(W.next(ct))}catch(Lt){fe(Lt)}}function Fe(ct){try{Ke(W.throw(ct))}catch(Lt){fe(Lt)}}function Ke(ct){var Lt;ct.done?te(ct.value):(Lt=ct.value,Lt instanceof F?Lt:new F(function(Jt){Jt(Lt)})).then(pe,Fe)}Ke((W=W.apply(R,S||[])).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,S){this.x=R,this.y=S}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,S){return this.clone()._rotateAround(R,S)},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 S=R.x-this.x,F=R.y-this.y;return S*S+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,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,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 S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.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,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,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,S){if(S===void 0&&(S=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:Fe=F,F=.5*(Fe-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.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,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let k=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function T(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let x=1;function C(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.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 A(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let U=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function j(R,S,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 Fe=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ct,Lt,Jt,cr,mr){let Pr=4*Math.max(-Lt,0),zr=(Math.max(0,Jt)-Jt)*cr*4+Pr,ui=4*cr,yi=Math.max(0,Lt),vn=Math.max(0,Jt);return{rect:{x:yi,y:vn,width:Math.min(ct.width,Lt+cr)-yi,height:Math.min(ct.height,Jt+mr)-vn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),Fe)for(let ct=0;ctO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Ce(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:Le},S)}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 ct=yield pe.blob();throw new ge(pe.status,pe.statusText,W.url,ct)}let Fe;Fe=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield Fe;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:Le},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var Fe;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ct in W.headers)Ke.setRequestHeader(ct,W.headers[ct]);W.type==="json"&&(Ke.responseType="text",!((Fe=W.headers)===null||Fe===void 0)&&Fe.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 ct=Ke.response;if(W.type==="json")try{ct=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ct,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ct=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new ge(Ke.status,Ke.statusText,W.url,ct))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Ee(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function Be(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class me extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class De{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return Be(S,F,this._listeners),Be(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let Fe of te)Fe.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let Fe of fe)Be(W,Fe,this._oneTimeListeners),Fe.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof me&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,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 je=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function lt(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return je.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let We=[Gt,_t,It,mt,er,ti,lr,Ge(wr),Br,Vr,dt];function tt(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!tt(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of We)if(!tt(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function xt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let ke=.96422,vt=.82521,ir=4/29,ar=6/29,vr=3*ar*ar,ii=ar*ar*ar,pi=Math.PI/180,$r=180/Math.PI;function di(R){return(R%=360)<0&&(R+=360),R}function ji([R,S,F,W]){let te,fe,pe=wi((.2225045*(R=In(R))+.7168786*(S=In(S))+.0606169*(F=In(F)))/1);R===S&&S===F?te=fe=pe:(te=wi((.4360747*R+.3850649*S+.1430804*F)/ke),fe=wi((.0139322*R+.0971045*S+.7141733*F)/vt));let Fe=116*pe-16;return[Fe<0?0:Fe,500*(te-pe),200*(pe-fe),W]}function In(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wi(R){return R>ii?Math.pow(R,1/3):R/vr+ir}function On([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*Fn(te),fe=ke*Fn(fe),pe=vt*Fn(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 Fn(R){return R>ar?R*R*R:vr*(R-ir)}function ra(R){return parseInt(R.padEnd(2,R),16)/255}function la(R,S){return Ut(S?R/100:R,0,1)}function Ut(R,S,F){return Math.min(Math.max(S,R),F)}function wt(R){return!R.some(Number.isNaN)}let rr={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 nr{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof nr)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=rr[W];if(te){let[pe,Fe,Ke]=te;return[pe/255,Fe/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,Fe=1;return[ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+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[Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn]=pe,zi=[Lt||" ",mr||" ",ui].join("");if(zi===" "||zi===" /"||zi===",,"||zi===",,,"){let un=[ct,cr,zr].join(""),Tn=un==="%%%"?100:un===""?255:0;if(Tn){let pa=[Ut(+Ke/Tn,0,1),Ut(+Jt/Tn,0,1),Ut(+Pr/Tn,0,1),yi?la(+yi,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,Fe,Ke,ct,Lt,Jt,cr,mr,Pr]=fe,zr=[Ke||" ",Lt||" ",cr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+Fe,Ut(+ct,0,100),Ut(+Jt,0,100),mr?la(+mr,Pr):1];if(wt(ui))return function([yi,vn,zi,un]){function Tn(pa){let ro=(pa+yi/30)%12,Vo=vn*Math.min(zi,1-zi);return zi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=di(yi),vn/=100,zi/=100,[Tn(0),Tn(8),Tn(4),un]}(ui)}}}(S);return F?new nr(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=ji(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?di(Math.atan2(te,W)*$r):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ji(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}nr.black=new nr(0,0,0,1),nr.white=new nr(1,1,1,1),nr.transparent=new nr(0,0,0,0),nr.red=new nr(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Xr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Xr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Qr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Qr)return S;if(typeof S=="number")return new Qr([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Qr(S)}}toString(){return JSON.stringify(this.values)}}let Oi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class $i{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $i)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,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 nr||R instanceof Er||R instanceof ri||R instanceof Qr||R instanceof $i||R instanceof tn)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Sn(R){if(R===null)return Gt;if(typeof R=="string")return It;if(typeof R=="boolean")return mt;if(typeof R=="number")return _t;if(R instanceof nr)return er;if(R instanceof Er)return Lr;if(R instanceof ri)return ti;if(R instanceof Qr)return Br;if(R instanceof $i)return dt;if(R instanceof tn)return Vr;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Sn(W);if(F){if(F===te)continue;F=wr;break}F=te}return Ge(F||wr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof nr||R instanceof ri||R instanceof Qr||R instanceof $i||R instanceof tn?R.toString():JSON.stringify(R)}class ua{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Sn(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(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:It,number:_t,boolean:mt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let Fe,Ke;if(S.length>2){let ct=S[1];if(typeof ct!="string"||!(ct in Wa)||ct==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);Fe=Wa[ct],te++}else Fe=wr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(Fe,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Xo={"to-boolean":mt,"to-color":er,"to-number":_t,"to-string":It};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[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")&&S.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 nr(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(S);let te=Qr.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(S);let te=$i.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(S),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 ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return tn.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["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"?Wn[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(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=nr.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new Qt,pe=[]){this.registry=S,this.path=W,this.key=W.map(Fe=>`[${Fe}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[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(S,this);if(!pe)return null;if(this.expectedType){let Fe=this.expectedType,Ke=pe.type;if(Fe.kind!=="string"&&Fe.kind!=="number"&&Fe.kind!=="boolean"&&Fe.kind!=="object"&&Fe.kind!=="array"||Ke.kind!=="value")if(Fe.kind!=="color"&&Fe.kind!=="formatted"&&Fe.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(Fe.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(Fe.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(Fe,Ke))return null}else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"assert")}if(!(pe instanceof ua)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let Fe=new Ha;try{pe=new ua(pe.type,pe.evaluate(Fe))}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(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new St(W,S))}checkSubtype(S,F){let W=tt(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.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(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Jr{constructor(S,F){this.type=mt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);return W&&te?xt(W.type,[mt,It,_t,Gt,wr])?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(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Sn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Sn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class vi{constructor(S,F,W){this.type=_t,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);if(!W||!te)return null;if(!xt(W.type,[mt,It,_t,Gt,wr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,_t);return fe?new vi(W,te,fe):null}return new vi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Sn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Sn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class hn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.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 ct=2;ctNumber.MAX_SAFE_INTEGER)return cr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return cr.error("Numeric branch labels must be integer values.");if(W){if(cr.checkSubtype(W,Sn(Pr)))return null}else W=Sn(Pr);if(fe[String(Pr)]!==void 0)return cr.error("Branch labels must be unique.");fe[String(Pr)]=pe.length}let mr=F.parse(Jt,ct,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let Fe=F.parse(S[1],1,wr);if(!Fe)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?Fe.type.kind!=="value"&&F.concat(1).checkSubtype(W,Fe.type)?null:new hn(W,te,Fe,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Sn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class An{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.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 Mn{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,_t);if(!W||!te)return null;if(!xt(W.type,[Ge(wr),It,wr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,_t);return fe?new Mn(W.type,W,te,fe):null}return new Mn(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Sn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function Li(R,S){let F=R.length-1,W,te,fe=0,pe=F,Fe=0;for(;fe<=pe;)if(Fe=Math.floor((fe+pe)/2),W=R[Fe],te=R[Fe+1],W<=S){if(Fe===F||SS))throw new ma("Input is not a number.");pe=Fe-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,_t);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=Fe)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ct);let Jt=F.parse(Ke,Lt,fe);if(!Jt)return null;fe=fe||Jt.type,te.push([Fe,Jt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[Li(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var $n=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,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,S){if(S===void 0&&(S=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:Fe=F,F=.5*(Fe-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya($n);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,Fe]=po(R.rgb,S.rgb,F);return new nr(te,fe,pe,Fe,!1)}case"hcl":{let[te,fe,pe,Fe]=R.hcl,[Ke,ct,Lt,Jt]=S.hcl,cr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?cr=NaN:(cr=Ke,pe!==1&&pe!==0||(mr=ct)):(cr=te,Lt!==1&&Lt!==0||(mr=fe));else{let vn=Ke-te;Ke>te&&vn>180?vn-=360:Ke180&&(vn+=360),cr=te+F*vn}let[Pr,zr,ui,yi]=function([vn,zi,un,Tn]){return vn=isNaN(vn)?0:vn*pi,On([un,Math.cos(vn)*zi,Math.sin(vn)*zi,Tn])}([cr,mr!=null?mr:No(fe,ct,F),No(pe,Lt,F),No(Fe,Jt,F)]);return new nr(Pr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,Fe]=On(po(R.lab,S.lab,F));return new nr(te,fe,pe,Fe,!1)}}},array:po,padding:function(R,S,F){return new Qr(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ct}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,_t),!fe)return null;let Fe=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=er:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ct=0;ct=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',cr);let Pr=F.parse(Jt,mr,Ke);if(!Pr)return null;Ke=Ke||Pr.type,Fe.push([Lt,Pr])}return xe(Ke,_t)||xe(Ke,er)||xe(Ke,Br)||xe(Ke,dt)||xe(Ke,Ge(_t))?new ko(Ke,W,te,fe,Fe):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=Li(F,te),Fe=ko.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ct=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ct,Fe);case"interpolate-hcl":return Lo.color(Ke,ct,Fe,"hcl");case"interpolate-lab":return Lo.color(Ke,ct,Fe,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Ds(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class Fs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.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 Fe of S.slice(1)){let Ke=F.parse(Fe,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(Fe=>tt(te,Fe.type));return new Fs(pe?wr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof tn&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ll(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function ul(R,S,F,W){return W.compare(S,F)===0}function zl(R,S,F){let W=R!=="=="&&R!=="!=";return class hje{constructor(fe,pe,Fe){this.type=mt,this.lhs=fe,this.rhs=pe,this.collator=Fe,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 Fe=fe[0],Ke=pe.parse(fe[1],1,wr);if(!Ke)return null;if(!ll(Fe,Ke.type))return pe.concat(1).error(`"${Fe}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ct=pe.parse(fe[2],2,wr);if(!ct)return null;if(!ll(Fe,ct.type))return pe.concat(2).error(`"${Fe}" comparisons are not supported for type '${Je(ct.type)}'.`);if(Ke.type.kind!==ct.type.kind&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ct.type)}'.`);W&&(Ke.type.kind==="value"&&ct.type.kind!=="value"?Ke=new Fa(ct.type,[Ke]):Ke.type.kind!=="value"&&ct.type.kind==="value"&&(ct=new Fa(Ke.type,[ct])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ct.type.kind!=="string"&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Lr),!Lt)return null}return new hje(Ke,ct,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),Fe=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Sn(pe),ct=Sn(Fe);if(Ke.kind!==ct.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}, ${ct.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Sn(pe),ct=Sn(Fe);if(Ke.kind!=="string"||ct.kind!=="string")return S(fe,pe,Fe)}return this.collator?F(fe,pe,Fe,this.collator.evaluate(fe)):S(fe,pe,Fe)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let us=zl("==",function(R,S,F){return S===F},ul),il=zl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!ul(0,S,F,W)}),As=zl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Ks=zl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),zs=zl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Lr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[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,mt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,mt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,It),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ls{constructor(S,F,W,te,fe){this.type=It,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,_t);if(!W)return null;let te=S[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,It),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,It),!pe))return null;let Fe=null;if(te["min-fraction-digits"]&&(Fe=F.parse(te["min-fraction-digits"],1,_t),!Fe))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,_t),!Ke)?null:new ls(W,fe,pe,Fe,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Yl{constructor(S){this.type=ti,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[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<=S.length-1;++pe){let Fe=S[pe];if(fe&&typeof Fe=="object"&&!Array.isArray(Fe)){fe=!1;let Ke=null;if(Fe["font-scale"]&&(Ke=F.parse(Fe["font-scale"],1,_t),!Ke))return null;let ct=null;if(Fe["text-font"]&&(ct=F.parse(Fe["text-font"],1,Ge(It)),!ct))return null;let Lt=null;if(Fe["text-color"]&&(Lt=F.parse(Fe["text-color"],1,er),!Lt))return null;let Jt=te[te.length-1];Jt.scale=Ke,Jt.font=ct,Jt.textColor=Lt}else{let Ke=F.parse(S[pe],1,wr);if(!Ke)return null;let ct=Ke.type.kind;if(ct!=="string"&&ct!=="value"&&ct!=="null"&&ct!=="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(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Sn(W)===Vr?new Xr("",W,null,null,null):new Xr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Vr,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,It);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=tn.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=_t,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[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(S){let F=this.input.evaluate(S);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(Sn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let bs=8192;function Rn(R,S){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,S.z);return[Math.round(F*te*bs),Math.round(W*te*bs)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/bs+S.x)/F,360*te-180),(W=(R[1]/bs+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function Ol(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[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,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Ns(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=Fe[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,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&Fe<0||pe<0&&Fe>0}function ql(R,S,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(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Fe of R)for(let Ke of Fe){let ct=[Ke.x+fe[0],Ke.y+fe[1]];Do(ct,S,F,te),pe.push(ct)}return pe}function Vf(R,S,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Ke of R){let ct=[];for(let Lt of Ke){let Jt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Jt),ct.push(Jt)}pe.push(ct)}if(S[2]-S[0]<=te/2){(Fe=S)[0]=Fe[1]=1/0,Fe[2]=Fe[3]=-1/0;for(let Ke of pe)for(let ct of Ke)Do(ct,S,F,te)}var Fe;return pe}class pl{constructor(S,F){this.type=mt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:Fe}=fe.geometry;pe==="Polygon"&&te.push(Fe),pe==="MultiPolygon"&&te.push(...Fe)}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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.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 Fe=ql(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!Hl(ct,Fe))return!1}if(W.type==="MultiPolygon"){let Fe=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!ac(ct,Fe))return!1}return!0}(S,this.geometries);if(S.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 Fe=ql(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!aa(ct,Fe))return!1}if(W.type==="MultiPolygon"){let Fe=Pc(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!Oo(ct,Fe))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,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],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Jl(R,S,F,W,te){Os(R,S,F,W||R.length-1,te||oc)}function Os(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,Fe=Math.log(fe),Ke=.5*Math.exp(2*Fe/3),ct=.5*Math.sqrt(Fe*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);Os(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ct)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ct)),te)}var Lt=R[S],Jt=F,cr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Jt0;)cr--}te(R[F],Lt)===0?yu(R,F,cr):yu(R,++cr,W),cr<=S&&(F=cr+1),S<=cr&&(W=cr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){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),S>1)for(let fe=0;fe1?(ct=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ct+=Jt/this.kx*mr,Lt+=cr/this.ky*mr)),Jt=this.wrap(F[0]-ct)*this.kx,cr=(F[1]-Lt)*this.ky;let Pr=Jt*Jt+cr*cr;Pr180;)S-=360;return S}}function $l(R,S){return S[0]-R[0]}function fl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=fl(R);if(S){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,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function Hs(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function ps(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(Ol(te,fe)){if(sd(R,S))return 0}else if(sd(S,R))return 0;let pe=1/0;for(let Fe of R)for(let Ke=0,ct=Fe.length,Lt=ct-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ct=Ke[1],Lt=S?50:100;if(fl(ct)<=Lt){if(!lc(ct,R.length))return NaN;if(S){let Jt=Po(R,ct,F,W);if(isNaN(Jt)||Jt===0)return Jt;fe=Math.min(fe,Jt)}else for(let Jt=ct[0];Jt<=ct[1];++Jt){let cr=od(R[Jt],F,W);if(fe=Math.min(fe,cr),fe===0)return 0}}else{let Jt=Fu(ct,S);Pa(pe,fe,W,R,Fe,Jt[0]),Pa(pe,fe,W,R,Fe,Jt[1])}}return fe}function bl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let Fe=new Zc([[0,[0,R.length-1],[0,F.length-1]]],$l);for(;Fe.length>0;){let Ke=Fe.pop();if(Ke[0]>=pe)continue;let ct=Ke[1],Lt=Ke[2],Jt=S?50:100,cr=W?50:100;if(fl(ct)<=Jt&&fl(Lt)<=cr){if(!lc(ct,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ct,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Pr=R.slice(ct[0],ct[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Pr=F.slice(Lt[0],Lt[1]+1);for(let zr=ct[0];zr<=ct[1];++zr)if(mr=uc(R[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=qs(R,ct,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ct,S),Pr=Fu(Lt,W);af(Fe,pe,te,R,F,mr[0],Pr[0]),af(Fe,pe,te,R,F,mr[0],Pr[1]),af(Fe,pe,te,R,F,mr[1],Pr[0]),af(Fe,pe,te,R,F,mr[1],Pr[1])}}return pe}function Hf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=_t,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.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]),Fe=1/0;for(let Ke of W){switch(Ke.type){case"Point":Fe=Math.min(Fe,bl(fe,!1,[Ke.coordinates],!1,pe,Fe));break;case"LineString":Fe=Math.min(Fe,bl(fe,!1,Ke.coordinates,!0,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Hu(fe,!1,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries);if(S.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]),Fe=1/0;for(let Ke of W){switch(Ke.type){case"Point":Fe=Math.min(Fe,bl(fe,!0,[Ke.coordinates],!1,pe,Fe));break;case"LineString":Fe=Math.min(Fe,bl(fe,!0,Ke.coordinates,!0,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Hu(fe,!0,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries);if(S.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(ct=>ct.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Gf(fe[0][0][0][1]),Fe=1/0;for(let Ke of W)for(let ct of fe){switch(Ke.type){case"Point":Fe=Math.min(Fe,Hu([Ke.coordinates],!1,ct,pe,Fe));break;case"LineString":Fe=Math.min(Fe,Hu(Ke.coordinates,!0,ct,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Ko(ct,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let yf={"==":us,"!=":il,">":cl,"<":As,">=":zs,"<=":Ks,array:Fa,at:kr,boolean:Fa,case:An,coalesce:Fs,collator:Io,format:Yl,image:Su,in:Jr,"index-of":vi,interpolate:ko,"interpolate-hcl":ko,"interpolate-lab":ko,length:nc,let:jn,literal:ua,match:hn,number:Fa,"number-format":ls,object:Fa,slice:Mn,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:Mt,within:pl,distance:Ic};class Bl{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[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,Fe=pe.filter(([ct])=>!Array.isArray(ct)||ct.length===S.length-1),Ke=null;for(let[ct,Lt]of Fe){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Jt=[],cr=!1;for(let mr=1;mr{return cr=Jt,Array.isArray(cr)?`(${cr.map(Je).join(", ")})`:`(${Je(cr.type)}...)`;var cr}).join(" | "),Lt=[];for(let Jt=1;Jt{F=S?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 S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof Bl&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function jf(R,S){if(R instanceof Bl&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!jf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(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,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?nr.parse:Qr.parse;(R=$e({},R)).stops&&(R.stops=R.stops.map(Jt=>[Jt[0],Lt(Jt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let Fe,Ke,ct;if(fe==="exponential")Fe=ih;else if(fe==="interval")Fe=Mu;else if(fe==="categorical"){Fe=Sh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ct=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);Fe=js}if(W){let Lt={},Jt=[];for(let Pr=0;PrPr[0]),evaluate:({zoom:Pr},zr)=>ih({stops:cr,base:R.base},S,Pr).evaluate(Pr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:ko.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Jt=>Jt[0]),evaluate:({zoom:Jt})=>Fe(R,S,Jt,Ke,ct)}}return{kind:"source",evaluate(Lt,Jt){let cr=Jt&&Jt.properties?Jt.properties[R.property]:void 0;return cr===void 0?sf(R.default,S.default):Fe(R,S,cr,Ke,ct)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function Sh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(gs(F)!=="number")return sf(R.default,S.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=Li(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(gs(F)!=="number")return sf(R.default,S.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=Li(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Jt,cr,mr){let Pr=mr-cr,zr=Lt-cr;return Pr===0?0:Jt===1?zr/Pr:(Math.pow(Jt,zr)-1)/(Math.pow(Jt,Pr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),Fe=R.stops[fe][1],Ke=R.stops[fe+1][1],ct=Lo[S.type]||Wh;return typeof Fe.evaluate=="function"?{evaluate(...Lt){let Jt=Fe.evaluate.apply(void 0,Lt),cr=Ke.evaluate.apply(void 0,Lt);if(Jt!==void 0&&cr!==void 0)return ct(Jt,cr,pe,R.colorSpace)}}:ct(Fe,Ke,pe,R.colorSpace)}function js(R,S,F){switch(S.type){case"color":F=nr.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=tn.fromString(F.toString());break;case"padding":F=Qr.parse(F);break;default:gs(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}Bl.register(yf,{error:[{kind:"error"},[It],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[It,[wr],(R,[S])=>Je(Sn(S.evaluate(R)))],"to-rgba":[Ge(_t,4),[er],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[er,[_t,_t,_t],Ah],rgba:[er,[_t,_t,_t,_t],Ah],has:{type:mt,overloads:[[[It],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[It,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:wr,overloads:[[[It],(R,[S])=>_f(S.evaluate(R),R.properties())],[[It,lr],(R,[S,F])=>_f(S.evaluate(R),F.evaluate(R))]]},"feature-state":[wr,[It],(R,[S])=>_f(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[It,[],R=>R.geometryType()],id:[wr,[],R=>R.id()],zoom:[_t,[],R=>R.globals.zoom],"heatmap-density":[_t,[],R=>R.globals.heatmapDensity||0],"line-progress":[_t,[],R=>R.globals.lineProgress||0],accumulated:[wr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[_t,Yc(_t),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[_t,Yc(_t),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:_t,overloads:[[[_t,_t],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[_t],(R,[S])=>-S.evaluate(R)]]},"/":[_t,[_t,_t],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[_t,[_t,_t],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[_t,[],()=>Math.LN2],pi:[_t,[],()=>Math.PI],e:[_t,[],()=>Math.E],"^":[_t,[_t,_t],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[_t,[_t],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))],log2:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[_t,[_t],(R,[S])=>Math.sin(S.evaluate(R))],cos:[_t,[_t],(R,[S])=>Math.cos(S.evaluate(R))],tan:[_t,[_t],(R,[S])=>Math.tan(S.evaluate(R))],asin:[_t,[_t],(R,[S])=>Math.asin(S.evaluate(R))],acos:[_t,[_t],(R,[S])=>Math.acos(S.evaluate(R))],atan:[_t,[_t],(R,[S])=>Math.atan(S.evaluate(R))],min:[_t,Yc(_t),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[_t,Yc(_t),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[_t,[_t],(R,[S])=>Math.abs(S.evaluate(R))],round:[_t,[_t],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[_t,[_t],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[_t,[_t],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[mt,[It,wr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[mt,[wr],(R,[S])=>R.id()===S.value],"filter-type-==":[mt,[It],(R,[S])=>R.geometryType()===S.value],"filter-<":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[mt,[wr],(R,[S])=>S.value in R.properties()],"filter-has-id":[mt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[mt,[Ge(It)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[mt,[Ge(wr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[mt,[It,Ge(wr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[mt,[It,Ge(wr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let Fe=fe+pe>>1;if(te[Fe]===W)return!0;te[Fe]>W?pe=Fe-1:fe=Fe+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:mt,overloads:[[[mt,mt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(mt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:mt,overloads:[[[mt,mt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(mt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[mt,[mt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[mt,[It],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[It,[It],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[It,[It],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[It,Yc(wr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[It,[Lr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ha,this._defaultValue=F?(W=F).type==="color"&&Wf(W.default)?new nr(0,0,0,0):W.type==="color"?nr.parse(W.default)||null:W.type==="padding"?Qr.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?$i.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,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(S,F,W,te,fe,pe){this._evaluator.globals=S,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 Fe=this.expression.evaluate(this._evaluator);if(Fe==null||typeof Fe=="number"&&Fe!=Fe)return this._defaultValue;if(this._enumValues&&!(Fe 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(Fe)} instead.`);return Fe}catch(Fe){return this._warningHistory[Fe.message]||(this._warningHistory[Fe.message]=!0,typeof console!="undefined"&&console.warn(Fe.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in yf}function ks(R,S){let F=new vo(yf,eh,[],S?function(te){let fe={color:er,string:It,number:_t,enum:It,boolean:mt,formatted:ti,padding:Br,resolvedImage:Vr,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||wr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class hu{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?ko.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Nl(S))return of([new St("","data expressions not supported")]);let fe=jf(W,["zoom"]);if(!fe&&!Kc(S))return of([new St("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof St?of([pe]):pe instanceof ko&&!Rc(S)?of([new St("",'"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)):of([new St("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class nl{constructor(S,F){this._parameters=S,this._specification=F,$e(this,rh(this._parameters,this._specification))}static deserialize(S){return new nl(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof Fs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof ko)&&R.input instanceof Bl&&R.input.name==="zoom"&&(S=R);return S instanceof St||R.eachChild(F=>{let W=nh(F);W instanceof St?S=W:!S&&W?S=new St("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new St("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}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 S of R.slice(1))if(!Mh(S)&&typeof S!="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 S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Pf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(xf))):S==="all"?["all"].concat(R.slice(1).map(xf)):S==="none"?["all"].concat(R.slice(1).map(xf).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?bf(R[1]):S!=="!has"||jl(bf(R[1]));var F}function Pf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}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 lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new fr(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function wf(R){let S=R.valueSpec,F=Cs(R.value.type),W,te,fe,pe={},Fe=F!=="categorical"&&R.value.property===void 0,Ke=!Fe,ct=gs(R.value.stops)==="array"&&gs(R.value.stops[0])==="array"&&gs(R.value.stops[0][0])==="object",Lt=ku({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new fr(mr.key,mr.value,'identity function may not have a "stops" property')];let Pr=[],zr=mr.value;return Pr=Pr.concat(Xf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Jt})),gs(zr)==="array"&&zr.length===0&&Pr.push(new fr(mr.key,zr,"array must have at least one stop")),Pr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&Fe&&Lt.push(new fr(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new fr(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new fr(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Nl(R.valueSpec)?Lt.push(new fr(R.key,R.value,"property functions not supported")):Fe&&!Kc(R.valueSpec)&&Lt.push(new fr(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ct||R.value.property!==void 0||Lt.push(new fr(R.key,R.value,'"property" property is required')),Lt;function Jt(mr){let Pr=[],zr=mr.value,ui=mr.key;if(gs(zr)!=="array")return[new fr(ui,zr,`array expected, ${gs(zr)} found`)];if(zr.length!==2)return[new fr(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ct){if(gs(zr[0])!=="object")return[new fr(ui,zr,`object expected, ${gs(zr[0])} found`)];if(zr[0].zoom===void 0)return[new fr(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new fr(ui,zr,"object stop key must have value")];if(fe&&fe>Cs(zr[0].zoom))return[new fr(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Cs(zr[0].zoom)!==fe&&(fe=Cs(zr[0].zoom),te=void 0,pe={}),Pr=Pr.concat(ku({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Us,value:cr}}))}else Pr=Pr.concat(cr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(du(zr[1]))?Pr.concat([new fr(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Pr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function cr(mr,Pr){let zr=gs(mr.value),ui=Cs(mr.value),yi=mr.value!==null?mr.value:Pr;if(W){if(zr!==W)return[new fr(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new fr(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let vn=`number expected, ${zr} found`;return Nl(S)&&F===void 0&&(vn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fr(mr.key,yi,vn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew fr(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new fr(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 fr(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new fr(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 fr(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new fr(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Cs(F))===-1&&te.push(new fr(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Cs(F))===-1&&te.push(new fr(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function Rf(R){return Mh(du(R.value))?zc($e({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(gs(S)!=="array")return[new fr(F,S,`array expected, ${gs(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new fr(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Cs(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Cs(S[1])==="$type"&&fe.push(new fr(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new fr(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=gs(S[1]),te!=="string"&&fe.push(new fr(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ct in F&&S.push(new fr(W,F[ct],`"${ct}" is prohibited for ref layers`))}),te.layers.forEach(ct=>{Cs(ct.id)===Fe&&(Ke=ct)}),Ke?Ke.ref?S.push(new fr(W,F.ref,"ref cannot reference another ref layer")):pe=Cs(Ke.type):S.push(new fr(W,F.ref,`ref layer "${Fe}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ct=Ke&&Cs(Ke.type);Ke?ct==="vector"&&pe==="raster"?S.push(new fr(W,F.source,`layer "${F.id}" requires a raster source`)):ct!=="raster-dem"&&pe==="hillshade"?S.push(new fr(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ct==="raster"&&pe!=="raster"?S.push(new fr(W,F.source,`layer "${F.id}" requires a vector source`)):ct!=="vector"||F["source-layer"]?ct==="raster-dem"&&pe!=="hillshade"?S.push(new fr(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ct==="geojson"&&Ke.lineMetrics||S.push(new fr(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new fr(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new fr(W,F.source,`source "${F.source}" not found`))}else S.push(new fr(W,F,'missing required property "source"'));return S=S.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:{"*":ct=>Wl($e({layerType:pe},ct))}}),paint:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ct=>Zf($e({layerType:pe},ct))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=gs(S);return W!=="string"?[new fr(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(gs(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new fr(F,S,'"type" is required')];let pe=Cs(S.type),Fe;switch(pe){case"vector":case"raster":return Fe=ku({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),Fe;case"raster-dem":return Fe=function(Ke){var ct;let Lt=(ct=Ke.sourceName)!==null&&ct!==void 0?ct:"",Jt=Ke.value,cr=Ke.styleSpec,mr=cr.source_raster_dem,Pr=Ke.style,zr=[],ui=gs(Jt);if(Jt===void 0)return zr;if(ui!=="object")return zr.push(new fr("source_raster_dem",Jt,`object expected, ${ui} found`)),zr;let yi=Cs(Jt.encoding)==="custom",vn=["redFactor","greenFactor","blueFactor","baseShift"],zi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let un in Jt)!yi&&vn.includes(un)?zr.push(new fr(un,Jt[un],`In "${Lt}": "${un}" is only valid when "encoding" is set to "custom". ${zi} encoding found`)):mr[un]?zr=zr.concat(Ke.validateSpec({key:un,value:Jt[un],valueSpec:mr[un],validateSpec:Ke.validateSpec,style:Pr,styleSpec:cr})):zr.push(new fr(un,Jt[un],`unknown property "${un}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),Fe;case"geojson":if(Fe=ku({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ct,Lt]=S.clusterProperties[Ke],Jt=typeof ct=="string"?[ct,["accumulated"],["get",Ke]]:ct;Fe.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),Fe.push(...zc({key:`${F}.${Ke}.reduce`,value:Jt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return Fe;case"video":return ku({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return ku({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new fr(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:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=gs(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new fr("light",S,`object expected, ${pe} found`)]),fe;for(let Fe in S){let Ke=Fe.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:Fe,value:S[Fe],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)])}return fe}function vu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=gs(S);if(S===void 0)return[];if(fe!=="object")return[new fr("sky",S,`object expected, ${fe} found`)];let pe=[];for(let Fe in S)pe=pe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=gs(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new fr("terrain",S,`object expected, ${pe} found`)]),fe;for(let Fe in S)fe=fe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);return fe}function cf(R){let S=[],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)&&S.push(new fr(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)&&S.push(new fr(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(ku({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Xf,boolean:function(R){let S=R.value,F=R.key,W=gs(S);return W!=="boolean"?[new fr(F,S,`boolean expected, ${W} found`)]:[]},number:Us,color:function(R){let S=R.key,F=R.value,W=gs(F);return W!=="string"?[new fr(S,F,`color expected, ${W} found`)]:nr.parse(String(F))?[]:[new fr(S,F,`color expected, "${F}" found`)]},constants:If,enum:Wu,filter:Rf,function:wf,layer:ah,object:ku,source:Tc,light:wl,sky:vu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=gs(S);if(S===void 0)return[];if(fe!=="object")return[new fr("projection",S,`object expected, ${fe} found`)];let pe=[];for(let Fe in S)pe=pe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);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 S=R.key,F=R.value;if(gs(F)==="array"){if(F.length<1||F.length>4)return[new fr(S,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:S,validateSpec:Bc}))),Ar(F)}function Cr(R){return function(S){return R(j1(_g({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(Cr(Tc)),Xt.sprite=Kr(Cr(cf)),Xt.glyphs=Kr(Cr(At)),Xt.light=Kr(Cr(wl)),Xt.sky=Kr(Cr(vu)),Xt.terrain=Kr(Cr(qc)),Xt.layer=Kr(Cr(ah)),Xt.filter=Kr(Cr(Rf)),Xt.paintProperty=Kr(Cr(Zf)),Xt.layoutProperty=Kr(Cr(Wl));let ki=Xt,Xi=ki.light,dn=ki.sky,wn=ki.paintProperty,Nn=ki.layoutProperty;function Yi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new me(new Error(W.message))),F=!0;return F}class Qi{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Jt[Pr+0]&&te>=Jt[Pr+1])?(Fe[mr]=!0,pe.push(Lt[mr])):Fe[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,Fe,Ke){let ct=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Jt=this._convertToCellCoord(W),cr=this._convertToCellCoord(te);for(let mr=ct;mr<=Jt;mr++)for(let Pr=Lt;Pr<=cr;Pr++){let zr=this.d*Pr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Pr+1)))&&fe.call(this,S,F,W,te,zr,pe,Fe,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=on[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}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 Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=Ca(R)||"Object";if(!on[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=on[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);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]=on[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,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 S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!as(S.charCodeAt(0)))return!1;return!0}function Zo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.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(S){return!!(Dn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||Dn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||Dn["Letterlike Symbols"](S)||Dn["Number Forms"](S)||Dn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||Dn["Control Pictures"](S)&&S!==9251||Dn["Optical Character Recognition"](S)||Dn["Enclosed Alphanumerics"](S)||Dn["Geometric Shapes"](S)||Dn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||Dn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||Dn["CJK Symbols and Punctuation"](S)||Dn.Katakana(S)||Dn["Private Use Area"](S)||Dn["CJK Compatibility Forms"](S)||Dn["Small Form Variants"](S)||Dn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===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,S){return!(!S&&Ls(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||Dn.Khmer(R))}function no(R){for(let S of R)if(Ls(S.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(S,F){this.zoom=S,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 Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,ys.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class Ql{constructor(S,F){this.property=S,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=nr.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=$i.parse(W)):fe=Qr.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class Cu{constructor(S){this.property=S,this.value=new Ql(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new Cu(this._values[S].property)),this._values[S].value=new Ql(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new Cu(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new pu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,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 ct=Ke*Ke,Lt=ct*Ke;return 4*(Ke<.5?Lt:3*(Ke-ct)+Lt-.75)}(Fe))}}return fe}}class pu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new Ql(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,Fe=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:Fe},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let Fe=S.evaluate(F,W,te,fe,pe);return this._calculate(Fe,Fe,Fe,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new rs(Math.floor(F.zoom-1),F)),S.expression.evaluate(new rs(Math.floor(F.zoom),F)),S.expression.evaluate(new rs(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[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",Ua),Fi("CrossFadedDataDrivenProperty",Vc),Fi("CrossFadedProperty",hc),Fi("ColorRampProperty",Ku);let w="-transition";class B extends De{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Nn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(wn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),Fe=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,Fe,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={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&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Yi(this,S.call(ki,{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 S in this.paint._values){let F=this.paint.get(S);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(S,F){this._structArray=S,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(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.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(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,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 Oe(R,S=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(S,fe)),Fe=te.components||1;return W=Math.max(W,fe),F+=fe*Fe,{name:te.name,type:te.type,components:Fe,offset:pe}}),size:Ze(F,Math.max(W,S)),alignment:S}}function Ze(R,S){return Math.ceil(R/S)*S}class st extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}st.prototype.bytesPerElement=4,Fi("StructArrayLayout2i4",st);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Fi("StructArrayLayout3i6",Tt);class Yt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Yt.prototype.bytesPerElement=8,Fi("StructArrayLayout4i8",Yt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=6*S;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]=Fe,S}}Kt.prototype.bytesPerElement=12,Fi("StructArrayLayout2i4i12",Kt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=4*S,ct=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ct+4]=te,this.uint8[ct+5]=fe,this.uint8[ct+6]=pe,this.uint8[ct+7]=Fe,S}}xr.prototype.bytesPerElement=8,Fi("StructArrayLayout2i4ub8",xr);class Ir extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Ir.prototype.bytesPerElement=8,Fi("StructArrayLayout2f8",Ir);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=this.length;return this.resize(Jt+1),this.emplace(Jt,S,F,W,te,fe,pe,Fe,Ke,ct,Lt)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt){let cr=10*S;return this.uint16[cr+0]=F,this.uint16[cr+1]=W,this.uint16[cr+2]=te,this.uint16[cr+3]=fe,this.uint16[cr+4]=pe,this.uint16[cr+5]=Fe,this.uint16[cr+6]=Ke,this.uint16[cr+7]=ct,this.uint16[cr+8]=Lt,this.uint16[cr+9]=Jt,S}}ve.prototype.bytesPerElement=20,Fi("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr){let Pr=12*S;return this.int16[Pr+0]=F,this.int16[Pr+1]=W,this.int16[Pr+2]=te,this.int16[Pr+3]=fe,this.uint16[Pr+4]=pe,this.uint16[Pr+5]=Fe,this.uint16[Pr+6]=Ke,this.uint16[Pr+7]=ct,this.int16[Pr+8]=Lt,this.int16[Pr+9]=Jt,this.int16[Pr+10]=cr,this.int16[Pr+11]=mr,S}}be.prototype.bytesPerElement=24,Fi("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Fi("StructArrayLayout3f12",Re);class qe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}qe.prototype.bytesPerElement=4,Fi("StructArrayLayout1ul4",qe);class et 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(S,F,W,te,fe,pe,Fe,Ke,ct){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,Fe,Ke,ct)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=10*S,cr=5*S;return this.int16[Jt+0]=F,this.int16[Jt+1]=W,this.int16[Jt+2]=te,this.int16[Jt+3]=fe,this.int16[Jt+4]=pe,this.int16[Jt+5]=Fe,this.uint32[cr+3]=Ke,this.uint16[Jt+8]=ct,this.uint16[Jt+9]=Lt,S}}et.prototype.bytesPerElement=20,Fi("StructArrayLayout6i1ul2ui20",et);class Xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=6*S;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]=Fe,S}}Xe.prototype.bytesPerElement=12,Fi("StructArrayLayout2i2i2i12",Xe);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let Fe=4*S,Ke=8*S;return this.float32[Fe+0]=F,this.float32[Fe+1]=W,this.float32[Fe+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Fi("StructArrayLayout2f1f2i16",it);class Ft extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=16*S,ct=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ct+1]=te,this.float32[ct+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=Fe,S}}Ft.prototype.bytesPerElement=16,Fi("StructArrayLayout2ub2f2i16",Ft);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Fi("StructArrayLayout3ui6",Ht);class tr 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(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi){let vn=this.length;return this.resize(vn+1),this.emplace(vn,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn){let zi=24*S,un=12*S,Tn=48*S;return this.int16[zi+0]=F,this.int16[zi+1]=W,this.uint16[zi+2]=te,this.uint16[zi+3]=fe,this.uint32[un+2]=pe,this.uint32[un+3]=Fe,this.uint32[un+4]=Ke,this.uint16[zi+10]=ct,this.uint16[zi+11]=Lt,this.uint16[zi+12]=Jt,this.float32[un+7]=cr,this.float32[un+8]=mr,this.uint8[Tn+36]=Pr,this.uint8[Tn+37]=zr,this.uint8[Tn+38]=ui,this.uint32[un+10]=yi,this.int16[zi+22]=vn,S}}tr.prototype.bytesPerElement=48,Fi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tr);class dr 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(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=Fe,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ct,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Jt,this.uint16[Xn+10]=cr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Pr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=vn,this.uint16[Xn+17]=zi,this.uint16[Xn+18]=un,this.uint16[Xn+19]=Tn,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Fi("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Fi("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Fi("StructArrayLayout1ui2f12",Or);class Wr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}Wr.prototype.bytesPerElement=8,Fi("StructArrayLayout1ul2ui8",Wr);class ni extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ni.prototype.bytesPerElement=4,Fi("StructArrayLayout2ui4",ni);class Pi extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Pi.prototype.bytesPerElement=2,Fi("StructArrayLayout1ui2",Pi);class cn extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}cn.prototype.bytesPerElement=16,Fi("StructArrayLayout4f16",cn);class ln 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)}}ln.prototype.size=20;class Cn extends et{get(S){return new ln(this,S)}}Fi("CollisionBoxArray",Cn);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(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends tr{get(S){return new Kn(this,S)}}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(S){this._structArray.uint32[this._pos4+12]=S}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 dr{get(S){return new fa(this,S)}}Fi("SymbolInstanceArray",$a);class Co extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Fi("GlyphOffsetArray",Co);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+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 Or{get(S){return new mo(this,S)}}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 Wr{get(S){return new Ps(this,S)}}Fi("FeatureIndexArray",Ts);class wo extends st{}class To extends st{}class hl extends st{}class Ul extends Kt{}class Lu extends xr{}class au extends Ir{}class Js extends ve{}class eu extends be{}class dc extends Re{}class Tl extends qe{}class Al extends Xe{}class X extends Ft{}class se extends Ht{}class Te extends ni{}let Ne=Oe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>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 S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function kt(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fi("SegmentVector",Ye);let nt=Oe([{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 jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,Fe,Ke,ct;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,Fe=461845907,ct=0;ct>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Fe+(((Ke>>>16)*Fe&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(ct+2))<<16;case 2:Ke^=(255&R.charCodeAt(ct+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ct)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Fe+(((Ke>>>16)*Fe&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 yr=gr.exports,Hr={exports:{}};Hr.exports=function(R,S){for(var F,W=R.length,te=S^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 qr=yr,_i=Hr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Zr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ai(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ai(S),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(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Zr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ai(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Ii(R,fe,pe),Ii(S,3*fe,3*pe),Ii(S,3*fe+1,3*pe+1),Ii(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new En(S,F):new ei(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,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&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Ln(S,F):new ei(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,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(S,F,W,te,fe){let pe=this.paintVertexArray.length,Fe=this.expression.evaluate(new rs(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,Fe)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${Fe}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(Fe=>({name:`a_${Fe}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new rs(this.zoom),F,{},te,[],fe),Fe=this.expression.evaluate(new rs(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,Fe)}updatePaintArray(S,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(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let Fe=S;Fe`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];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 S)this.programConfigurations[te.id]=new Is(te,F,W);this.needsUpload=!1,this._featureMap=new Zr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let Fe in this.programConfigurations)this.programConfigurations[Fe].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Xs(R,S){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(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Ir,composite:cn},number:{source:Sr,composite:Ir}},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[S][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 S=ja/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?$s(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class dl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Ms(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,Fe=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),Fe=!pe.isConstant());for(let{feature:Ke,id:ct,index:Lt,sourceLayerIndex:Jt}of S){let cr=this.layers[0]._featureFilter.needGeometry,mr=Sl(Ke,cr);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),mr,W))continue;let Pr=Fe?pe.evaluate(mr,{},W):void 0,zr={id:ct,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Jt,index:Lt,geometry:cr?mr.geometry:$s(Ke),patterns:{},sortKey:Pr};fe.push(zr)}Fe&&fe.sort((Ke,ct)=>Ke.sortKey-ct.sortKey);for(let Ke of fe){let{geometry:ct,index:Lt,sourceLayerIndex:Jt}=Ke,cr=S[Lt].feature;this.addFeature(Ke,ct,Lt,W),F.featureIndex.insert(cr,ct,Lt,Jt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let Fe=pe.x,Ke=pe.y;if(Fe<0||Fe>=ja||Ke<0||Ke>=ja)continue;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ct.vertexLength;bu(this.layoutVertexArray,Fe,Ke,-1,-1),bu(this.layoutVertexArray,Fe,Ke,1,-1),bu(this.layoutVertexArray,Fe,Ke,1,1),bu(this.layoutVertexArray,Fe,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ct.vertexLength+=4,ct.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Rr(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ui(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function qi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Ei(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function en(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let Fe=0;Feli(ui,zr))}(ct,Ke),mr=Jt?Lt*Fe:Lt;for(let Pr of te)for(let zr of Pr){let ui=Jt?zr:li(zr,Ke),yi=mr,vn=Bn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=vn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/vn[3]),Me(cr,ui,yi))return!0}return!1}}function li(R,S){let F=Bn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends dl{}let Ji;Fi("HeatmapBucket",mn,{omit:["layers"]});var Vi={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 Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Ni(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function pn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Ni({},{width:S,height:F},W);Vn(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Vn(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;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>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,Fe=S.data;if(pe===Fe)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ct=R.expression.evaluate(S);te.data[pe+Fe+0]=Math.floor(255*ct.r/ct.a),te.data[pe+Fe+1]=Math.floor(255*ct.g/ct.a),te.data[pe+Fe+2]=Math.floor(255*ct.b/ct.a),te.data[pe+Fe+3]=Math.floor(255*ct.a)};if(R.clips)for(let pe=0,Fe=0;pe80*F){Fe=1/0,Ke=1/0;let Lt=-1/0,Jt=-1/0;for(let cr=F;crLt&&(Lt=mr),Pr>Jt&&(Jt=Pr)}ct=Math.max(Lt-Fe,Jt-Ke),ct=ct!==0?32767/ct:0}return Vl(fe,pe,F,Fe,Ke,ct,0),pe}function Qs(R,S,F,W,te){let fe;if(te===function(pe,Fe,Ke,ct){let Lt=0;for(let Jt=Fe,cr=Ke-ct;Jt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function al(R,S){if(!R)return R;S||(S=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(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Vl(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ct,Lt,Jt){let cr=Ke;do cr.z===0&&(cr.z=D(cr.x,cr.y,ct,Lt,Jt)),cr.prevZ=cr.prev,cr.nextZ=cr.next,cr=cr.next;while(cr!==Ke);cr.prevZ.nextZ=null,cr.prevZ=null,function(mr){let Pr,zr=1;do{let ui,yi=mr;mr=null;let vn=null;for(Pr=0;yi;){Pr++;let zi=yi,un=0;for(let pa=0;pa0||Tn>0&&zi;)un!==0&&(Tn===0||!zi||yi.z<=zi.z)?(ui=yi,yi=yi.nextZ,un--):(ui=zi,zi=zi.nextZ,Tn--),vn?vn.nextZ=ui:mr=ui,ui.prevZ=vn,vn=ui;yi=zi}vn.nextZ=null,zr*=2}while(Pr>1)}(cr)}(R,W,te,fe);let Fe=R;for(;R.prev!==R.next;){let Ke=R.prev,ct=R.next;if(fe?Vs(R,W,te,fe):ss(R))S.push(Ke.i,R.i,ct.i),Ve(R),R=ct.next,Fe=ct.next;else if((R=ct)===Fe){pe?pe===1?Vl(R=Ys(al(R),S),S,F,W,te,fe,2):pe===2&&wa(R,S,F,W,te,fe):Vl(al(R),S,F,W,te,fe,1);break}}}function ss(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,Fe=S.y,Ke=F.y,ct=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=Fe>Ke?Fe>ct?Fe:ct:Ke>ct?Ke:ct,Pr=W.next;for(;Pr!==S;){if(Pr.x>=Lt&&Pr.x<=cr&&Pr.y>=Jt&&Pr.y<=mr&&q(te,Fe,fe,Ke,pe,ct,Pr.x,Pr.y)&&de(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.next}return!0}function Vs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let Fe=te.x,Ke=fe.x,ct=pe.x,Lt=te.y,Jt=fe.y,cr=pe.y,mr=FeKe?Fe>ct?Fe:ct:Ke>ct?Ke:ct,ui=Lt>Jt?Lt>cr?Lt:cr:Jt>cr?Jt:cr,yi=D(mr,Pr,S,F,W),vn=D(zr,ui,S,F,W),zi=R.prevZ,un=R.nextZ;for(;zi&&zi.z>=yi&&un&&un.z<=vn;){if(zi.x>=mr&&zi.x<=zr&&zi.y>=Pr&&zi.y<=ui&&zi!==te&&zi!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0||(zi=zi.prevZ,un.x>=mr&&un.x<=zr&&un.y>=Pr&&un.y<=ui&&un!==te&&un!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,un.x,un.y)&&de(un.prev,un,un.next)>=0))return!1;un=un.nextZ}for(;zi&&zi.z>=yi;){if(zi.x>=mr&&zi.x<=zr&&zi.y>=Pr&&zi.y<=ui&&zi!==te&&zi!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0)return!1;zi=zi.prevZ}for(;un&&un.z<=vn;){if(un.x>=mr&&un.x<=zr&&un.y>=Pr&&un.y<=ui&&un!==te&&un!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,un.x,un.y)&&de(un.prev,un,un.next)>=0)return!1;un=un.nextZ}return!0}function Ys(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return al(F)}function wa(R,S,F,W,te,fe){let pe=R;do{let Fe=pe.next.next;for(;Fe!==pe.prev;){if(pe.i!==Fe.i&&K(pe,Fe)){let Ke=hr(pe,Fe);return pe=al(pe,pe.next),Ke=al(Ke,Ke.next),Vl(pe,S,F,W,te,fe,0),void Vl(Ke,S,F,W,te,fe,0)}Fe=Fe.next}pe=pe.next}while(pe!==R)}function ol(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,Fe=te.x,Ke=te.y,ct,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=Fe&&zr>Lt&&(Lt=zr,ct=pe.x=pe.x&&pe.x>=cr&&Fe!==pe.x&&q(Kect.x||pe.x===ct.x&&Y(ct,pe)))&&(ct=pe,Pr=zr)}pe=pe.next}while(pe!==Jt);return ct}(R,S);if(!F)return S;let W=hr(F,R);return al(W,W.next),al(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,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))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-Fe)&&(R-pe)*(W-Fe)>=(F-pe)*(S-Fe)&&(F-pe)*(fe-Fe)>=(te-pe)*(W-Fe)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.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,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,Fe=(F.y+W.y)/2;do te.y>Fe!=te.next.y>Fe&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(Fe-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),Fe=ft(de(F,W,S));return te!==fe&&pe!==Fe||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(Fe!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=Qe(R.i,R.x,R.y),W=Qe(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=Qe(R,S,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 Ve(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 Qe(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let Fe=pe.constantOr(null);Fe&&(te=!0,W[Fe.to]=!0,W[Fe.from]=!0)}return te}function Ct(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let Fe=pe.paint.get(`${R}-pattern`).value;if(Fe.kind!=="constant"){let Ke=Fe.evaluate({zoom:W-1},F,{},te.availableImages),ct=Fe.evaluate({zoom:W},F,{},te.availableImages),Lt=Fe.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ct=ct&&ct.name?ct.name:ct,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ct]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ct,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new hl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Ms(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Fe,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Jt=this.layers[0]._featureFilter.needGeometry,cr=Sl(Fe,Jt);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),cr,W))continue;let mr=fe?te.evaluate(cr,{},W,F.availableImages):void 0,Pr={id:Ke,properties:Fe.properties,type:Fe.type,sourceLayerIndex:Lt,index:ct,geometry:Jt?cr.geometry:$s(Fe),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((Fe,Ke)=>Fe.sortKey-Ke.sortKey);for(let Fe of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=Fe;if(this.hasPattern){let Jt=Ct("fill",this.layers,Fe,this.zoom,F);this.patternFeatures.push(Jt)}else this.addFeature(Fe,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),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(S,F,W,te,fe){for(let pe of Cf(F,500)){let Fe=0;for(let mr of pe)Fe+=mr.length;let Ke=this.segments.prepareSegment(Fe,this.layoutVertexArray,this.indexArray),ct=Ke.vertexLength,Lt=[],Jt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Jt.push(Lt.length/2);let Pr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Pr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&Fe.push(S),S=[]),S.push(new Ur(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&Fe.push(S),Fe},fi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,Fe=-1/0,Ke=1/0,ct=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())Fe&&(Fe=te),(fe+=R.readSVarint())ct&&(ct=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,Fe,ct]},fi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,Fe=this.extent*S,Ke=this.loadGeometry(),ct=fi.types[this.type];function Lt(mr){for(var Pr=0;Pr>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))}Bi.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 S=this._pbf.readVarint()+this._pbf.pos;return new rn(this._pbf,S,this.extent,this._keys,this._values)};var sn=Ci;function zn(R,S,F){if(R===3){var W=new sn(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(zn,{},S)},br.VectorTileFeature=Di,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function ts(R,S,F,W,te,fe,pe,Fe){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(Fe))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Ms(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:Fe}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ct=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ct,W))continue;let Lt={id:fe,sourceLayerIndex:Fe,index:pe,geometry:Ke?ct.geometry:$s(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(Ct("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,Fe,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,ur),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let Fe={x:0,y:0,vertexCount:0},Ke=0;for(let Pr of pe)Ke+=Pr.length;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Pr of pe){if(Pr.length===0||ms(Pr))continue;let zr=0;for(let ui=0;ui=1){let vn=Pr[ui-1];if(!Yo(yi,vn)){ct.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let zi=yi.sub(vn)._perp()._unit(),un=vn.dist(yi);zr+un>32768&&(zr=0),ts(this.layoutVertexArray,yi.x,yi.y,zi.x,zi.y,0,0,zr),ts(this.layoutVertexArray,yi.x,yi.y,zi.x,zi.y,0,1,zr),Fe.x+=2*yi.x,Fe.y+=2*yi.y,Fe.vertexCount+=2,zr+=un,ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,0,zr),ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,1,zr),Fe.x+=2*vn.x,Fe.y+=2*vn.y,Fe.vertexCount+=2;let Tn=ct.vertexLength;this.indexArray.emplaceBack(Tn,Tn+2,Tn+1),this.indexArray.emplaceBack(Tn+1,Tn+2,Tn+3),ct.vertexLength+=4,ct.primitiveLength+=2}}}}if(ct.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Jt=[],cr=ct.vertexLength;for(let Pr of pe)if(Pr.length!==0){Pr!==pe[0]&&Jt.push(Lt.length/2);for(let zr=0;zrja)||R.y===S.y&&(R.y<0||R.y>ja)}function ms(R){return R.every(S=>S.x<0)||R.every(S=>S.x>ja)||R.every(S=>S.y<0)||R.every(S=>S.y>ja)}let ou;Fi("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(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 Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Lv extends B{constructor(S){super(S,Cv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,Fe,Ke){let ct=en(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,Fe),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Jt=this.paint.get("fill-extrusion-base").evaluate(F,W),cr=function(Pr,zr,ui,yi){let vn=[];for(let zi of Pr){let un=[zi.x,zi.y,0,1];Bn(un,un,zr),vn.push(new u(un[0]/un[3],un[1]/un[3]))}return vn}(ct,Ke),mr=function(Pr,zr,ui,yi){let vn=[],zi=[],un=yi[8]*zr,Tn=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Pr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],kh=yi[2]*uo+yi[6]*$o+yi[14],Qv=yi[3]*uo+yi[7]*$o+yi[15],ud=kh+pa,Ch=Qv+ro,Vd=Ju+Vo,Gd=qu+Xa,Hd=kh+sa,Af=Qv+Mo,Lh=new u((Ju+un)/Ch,(qu+Tn)/Ch);Lh.z=ud/Ch,lo.push(Lh);let Ed=new u(Vd/Af,Gd/Af);Ed.z=Hd/Af,Xn.push(Ed)}vn.push(lo),zi.push(Xn)}return[vn,zi]}(te,Jt,Lt,Ke);return function(Pr,zr,ui){let yi=1/0;bt(ui,zr)&&(yi=Kv(ui,zr[0]));for(let vn=0;vnF.id),this.index=S.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(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Fe,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Jt=this.layers[0]._featureFilter.needGeometry,cr=Sl(Fe,Jt);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),cr,W))continue;let mr=fe?te.evaluate(cr,{},W):void 0,Pr={id:Ke,properties:Fe.properties,type:Fe.type,sourceLayerIndex:Lt,index:ct,geometry:Jt?cr.geometry:$s(Fe),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((Fe,Ke)=>Fe.sortKey-Ke.sortKey);for(let Fe of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=Fe;if(this.hasPattern){let Jt=Ct("line",this.layers,Fe,this.zoom,F);this.patternFeatures.push(Jt)}else this.addFeature(Fe,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,mp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,Fe=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ct=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Jt of F)this.addLine(Jt,S,Fe,Ke,ct,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ct=0;for(;ct0;if(ro&&yi>ct){let Mo=cr.dist(mr);if(Mo>2*Lt){let fo=cr.sub(cr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Jt),mr=fo}}let Xa=mr&&Pr,sa=Xa?W:Fe?"butt":te;if(Xa&&sa==="round"&&(Tnfe&&(sa="bevel"),sa==="bevel"&&(Tn>2&&(sa="flipbevel"),Tn100)vn=ui.mult(-1);else{let Mo=Tn*zr.add(ui).mag()/zr.sub(ui).mag();vn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(cr,vn,0,0,Jt),this.addCurrentVertex(cr,vn.mult(-1),0,0,Jt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(Tn*Tn-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(cr,zr,fo,lo,Jt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=cr.add(Pr.sub(cr)._mult(Lt/Mo)._round());this.updateDistance(cr,fo),this.addCurrentVertex(fo,ui,0,0,Jt),cr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let Fe=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,Fe,Ke,pe,!0,-te,fe),this.distance>Pv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,Fe,Ke){let ct=.5*(this.lineClips?this.scaledDistance*(Pv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(Fe===0?0:Fe<0?-1:1)|(63&ct)<<2,ct>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let Iv,fy;Fi("LineBucket",Jv,{omit:["layers","patternFeatures"]});var dg={get paint(){return fy=fy||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(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 Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new rs(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let vg;class hy extends B{constructor(S){super(S,dg),this.gradientVersion=0,vg||(vg=new oh(dg.paint.properties["line-width"].specification),vg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="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(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=vg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jv(S)}queryRadius(S){let F=S,W=Zh(Ei("line-width",this,F),Ei("line-gap-width",this,F)),te=Ei("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,Fe){let Ke=en(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,Fe),ct=Fe/2*Zh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Jt,cr){let mr=[];for(let Pr=0;Pr=3){for(let ui=0;ui0?S+2*R:R}let am=Oe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),k1=Oe([{name:"a_projected_pos",components:3,type:"Float32"}],4);Oe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let C1=Oe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Oe([{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 dy=Oe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),om=Oe([{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,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let Fe=fe.layout.get("text-transform").evaluate(pe,{});return Fe==="uppercase"?te=te.toLocaleUpperCase():Fe==="lowercase"&&(te=te.toLocaleLowerCase()),ys.applyArabicShaping&&(te=ys.applyArabicShaping(te)),te}(W.text,S,F)}),R}Oe([{name:"triangle",components:3,type:"Uint16"}]),Oe([{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"}]),Oe([{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"}]),Oe([{type:"Float32",name:"offsetX"}]),Oe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Oe([{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,vy=function(R,S,F,W,te){var fe,pe,Fe=8*te-W-1,Ke=(1<>1,Lt=-7,Jt=F?te-1:0,cr=F?-1:1,mr=R[S+Jt];for(Jt+=cr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=Fe;Lt>0;fe=256*fe+R[S+Jt],Jt+=cr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Jt],Jt+=cr,Lt-=8);if(fe===0)fe=1-ct;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ct}return(mr?-1:1)*pe*Math.pow(2,fe-W)},L1=function(R,S,F,W,te,fe){var pe,Fe,Ke,ct=8*fe-te-1,Lt=(1<>1,cr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Pr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(Fe=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Jt>=1?cr/Ke:cr*Math.pow(2,1-Jt))*Ke>=2&&(pe++,Ke/=2),pe+Jt>=Lt?(Fe=0,pe=Lt):pe+Jt>=1?(Fe=(S*Ke-1)*Math.pow(2,te),pe+=Jt):(Fe=S*Math.pow(2,Jt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&Fe,mr+=Pr,Fe/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Pr,pe/=256,ct-=8);R[F+mr-Pr]|=128*zr};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 Yx=4294967296,lm=1/Yx,Ow=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,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function qw(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Kx(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function SC(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=py(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=SC(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=py(this.buf,this.pos)+py(this.buf,this.pos+4)*Yx;return this.pos+=8,R},readSFixed64:function(){var R=py(this.buf,this.pos)+SC(this.buf,this.pos+4)*Yx;return this.pos+=8,R},readFloat:function(){var R=vy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=vy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var Fe,Ke,ct=pe.buf;if(Fe=(112&(Ke=ct[pe.pos++]))>>4,Ke<128||(Fe|=(127&(Ke=ct[pe.pos++]))<<3,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<10,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<17,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<24,Ke<128)||(Fe|=(1&(Ke=ct[pe.pos++]))<<31,Ke<128))return um(te,Fe,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(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,S=this.pos;return this.pos=R,R-S>=12&&Ow?function(F,W,te){return Ow.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+cr>te)break;cr===1?Lt<128&&(Jt=Lt):cr===2?(192&(Fe=F[pe+1]))==128&&(Jt=(31&Lt)<<6|63&Fe)<=127&&(Jt=null):cr===3?(Ke=F[pe+2],(192&(Fe=F[pe+1]))==128&&(192&Ke)==128&&((Jt=(15&Lt)<<12|(63&Fe)<<6|63&Ke)<=2047||Jt>=55296&&Jt<=57343)&&(Jt=null)):cr===4&&(Ke=F[pe+2],ct=F[pe+3],(192&(Fe=F[pe+1]))==128&&(192&Ke)==128&&(192&ct)==128&&((Jt=(15&Lt)<<18|(63&Fe)<<12|(63&Ke)<<6|63&ct)<=65535||Jt>=1114112)&&(Jt=null)),Jt===null?(Jt=65533,cr=1):Jt>65535&&(Jt-=65536,fe+=String.fromCharCode(Jt>>>10&1023|55296),Jt=56320|1023&Jt),fe+=String.fromCharCode(Jt),pe+=cr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Rv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,Fe){Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,Fe.buf[Fe.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var Fe=(7&fe)<<4;pe.buf[pe.pos++]|=Fe|((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 S=this.pos;this.pos=function(W,te,fe){for(var pe,Fe,Ke=0;Ke55295&&pe<57344){if(!Fe){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):Fe=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,Fe=pe;continue}pe=Fe-55296<<10|pe-56320|65536,Fe=null}else Fe&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,Fe=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-S;F>=128&&qw(S,F,this),this.pos=S-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 S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&qw(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Kx,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,V9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,j9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,G9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,H9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,OQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,W9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,X9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,Z9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var lS=o(Sd);let uS=3;function qQ(R,S,F){R===1&&F.readMessage(Y9,S)}function Y9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:Fe,top:Ke,advance:ct}=F.readMessage(MC,{});S.push({id:W,bitmap:new na({width:fe+2*uS,height:pe+2*uS},te),metrics:{width:fe,height:pe,left:Fe,top:Ke,advance:ct}})}}function MC(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let EC=uS;function cS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,Fe)=>Fe.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let Fe=W.length-1;Fe>=0;Fe--){let Ke=W[Fe];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 ct=W.pop();Fe=0&&W>=S&&Uw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new P1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push($x.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Qx(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr){let zr=P1.fromFeature(R,te),ui;Jt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:vn}=ys;if(yi&&zr.sections.length===1){ui=[];let Tn=yi(zr.toString(),I1(zr,ct,fe,S,W,mr));for(let pa of Tn){let ro=new P1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&tp>Df&&(Df=tp)}else{let Gc=ro[ru.fontStack],Yf=Gc&&Gc[$u];if(Yf&&Yf.rect)q1=Yf.rect,ff=Yf.metrics;else{let tp=pa[ru.fontStack],yg=tp&&tp[$u];if(!yg)continue;ff=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:ff,rect:q1}),$o+=Gp*ru.scale+Xn):(Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:ff,rect:q1}),$o+=ff.advance*ru.scale+Xn)}Yh.length!==0&&(qu=Math.max($o-Xn,qu),cm(Yh,0,Yh.length-1,Qv,Df)),$o=0;let Fv=sa*Lh+Df;cd.lineOffset=Math.max(Df,Ed),Ju+=Fv,kh=Math.max(Fv,kh),++ud}var Ch;let Vd=Ju-Eh,{horizontalAlign:Gd,verticalAlign:Hd}=Gw(Mo);(function(Af,Lh,Ed,cd,Yh,Df,Fv,lv,ru){let pc=(Lh-Ed)*Yh,$u=0;$u=Df!==Fv?-lv*cd-Eh:(-cd*ru+.5)*Fv;for(let zv of Af)for(let ff of zv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(Tn.positionedLines,Qv,Gd,Hd,qu,kh,sa,Vd,Xa.length),Tn.top+=-Hd*Vd,Tn.bottom=Tn.top+Vd,Tn.left+=-Gd*qu,Tn.right=Tn.left+qu}(un,S,F,W,ui,pe,Fe,Ke,Jt,ct,cr,Pr),!function(Tn){for(let pa of Tn)if(pa.positionedGlyphs.length!==0)return!1;return!0}(zi)&&un}let Uw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},K9={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},J9={40:!0};function kC(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*tu/fe+te:0}{let pe=F[S.fontStack],Fe=pe&&pe[R];return Fe?Fe.metrics.advance*S.scale+te:0}}function CC(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ct=0;for(let Jt=0;Jtct){let Lt=Math.ceil(fe/ct);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function IC(R,S,F,W,te,fe){let pe=R.image,Fe;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;Fe=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ct=S.right*fe,Lt,Jt,cr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Jt=te[0]+ct+W[1]):(mr=te[0]+(Ke+ct-pe.displaySize[0])/2,Jt=mr+pe.displaySize[0]);let Pr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Pr-W[0],cr=te[1]+zr+W[2]):(Lt=te[1]+(Pr+zr-pe.displaySize[1])/2,cr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Jt,bottom:cr,left:mr,collisionPadding:Fe}}let tb=255,v0=128,fm=tb*v0;function RC(R,S){let{expression:F}=S;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=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ri([]),this.placementViewportMatrix=Ri([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=RC(this.zoom,F["text-size"]),this.iconSizeData=RC(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=fS(W,"text-overlap","text-allow-overlap")!=="never"||fS(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=S.sourceID}createArrays(){this.text=new vS(new Ms(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new vS(new Ms(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new Co,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Jt=fe.get("symbol-sort-key");if(this.features=[],!ct&&!Lt)return;let cr=F.iconDependencies,mr=F.glyphDependencies,Pr=F.availableImages,zr=new rs(this.zoom);for(let{feature:ui,id:yi,index:vn,sourceLayerIndex:zi}of S){let un=te._featureFilter.needGeometry,Tn=Sl(ui,un);if(!te._featureFilter.filter(zr,Tn,W))continue;let pa,ro;if(un||(Tn.geometry=$s(ui)),ct){let Xa=te.getValueAndResolveTokens("text-field",Tn,W,Pr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||dS(sa);(!Mo||ys.getRTLTextPluginStatus()==="unavailable"||Mo&&ys.isParsed())&&(pa=sm(sa,te,Tn))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",Tn,W,Pr);ro=Xa instanceof tn?Xa:tn.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Jt.evaluate(Tn,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:vn,sourceLayerIndex:zi,geometry:Tn.geometry,properties:ui.properties,type:Q9[ui.type],sortKey:Vo}),ro&&(cr[ro.name]=!0),pa){let Xa=pe.evaluate(Tn,{},W).join(","),sa=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)cr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},vn={},zi=[],un=0;function Tn(Xa){zi.push(ui[Xa]),un++}function pa(Xa,sa,Mo){let fo=vn[Xa];return delete vn[Xa],vn[sa]=fo,zi[fo].geometry[0].pop(),zi[fo].geometry[0]=zi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,zi[fo].geometry[0].shift(),zi[fo].geometry[0]=Mo[0].concat(zi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,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(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,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(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let Fe=S.segment+1;Fe=0;Fe--)pe[Fe]={x:F[Fe].x,y:F[Fe].y,tileUnitDistanceFromAnchor:fe},Fe>0&&(fe+=F[Fe-1].dist(F[Fe]));for(let Fe=0;Fe0}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(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[Fe]-te[Ke]||fe[Ke]-fe[Fe]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,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,rb;Fi("SymbolBucket",R1,{omit:["layers","collisionBoxArray","features","compareText"]}),R1.MAX_GLYPHS=65535,R1.addDynamicAttributes=hS;var jw={get paint(){return rb=rb||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 Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(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:er,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 Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Tf=Tf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(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 Ua(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 Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(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 Ua(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 Ua(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 Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(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 Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class ib{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Gt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Fi("FormatSectionOverride",ib,{omit:["defaultValue"]});class gy extends B{constructor(S){super(S,jw)}recalculate(S,F){if(super.recalculate(S,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(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(Fe,Ke){return Ke.replace(/{([^{}]+)}/g,(ct,Lt)=>Fe&&Lt in Fe?String(Fe[Lt]):"")}(F.properties,fe)}createBucket(S){return new R1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of jw.paint.overridableProperties){if(!gy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new ib(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[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&gy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=jw.paint.properties[F],fe=!1,pe=Fe=>{for(let Ke of Fe)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let Fe=ct=>{fe||(ct instanceof ua&&Sn(ct.value)===ti?pe(ct.value.sections):ct instanceof Yl?pe(ct.sections):ct.eachChild(Fe))},Ke=W.value;Ke._styleExpression&&Fe(Ke._styleExpression.expression)}return fe}}let DC;var nb={get paint(){return DC=DC||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class tO extends B{constructor(S){super(S,nb)}}let pS;var FC={get paint(){return pS=pS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class ab extends B{constructor(S){super(S,FC)}}class gS extends B{constructor(S){super(S,{}),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=S}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 mS{constructor(S){this._methodToThrottle=S,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 yS=63710088e-1;class pg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,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(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return yS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof pg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new pg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new pg(Number("lng"in S?S.lng:S.lon),Number(S.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*yS;function zC(R){return D1*Math.cos(R*Math.PI/180)}function Ww(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 Xw(R,S){return R/zC(S)}function ob(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class sb{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=pg.convert(S);return new sb(Ww(W.lng),OC(W.lat),Xw(F,W.lat))}toLngLat(){return new pg(360*this.x-180,ob(this.y))}toAltitude(){return this.z*zC(ob(this.y))}meterInMercatorCoordinateUnits(){return 1/D1*(S=ob(this.y),1/Math.cos(S*Math.PI/180));var S}}function yp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class _S{constructor(S,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))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=lb(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,Fe=this.z,Ke=yp(256*(fe=this.x),256*(pe=Math.pow(2,Fe)-pe-1),Fe),ct=yp(256*(fe+1),256*(pe+1),Fe),Ke[0]+","+Ke[1]+","+ct[0]+","+ct[1]);var fe,pe,Fe,Ke,ct;let Lt=function(Jt,cr,mr){let Pr,zr="";for(let ui=Jt;ui>0;ui--)Pr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*ja,(S.y*F-this.y)*ja)}toString(){return`${this.z}/${this.x}/${this.y}`}}class qC{constructor(S,F){this.wrap=S,this.canonical=F,this.key=lb(S,F.z,F.z,F.x,F.y)}}class $v{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new _S(W,+te,+fe),this.key=lb(F,S,W,te,fe)}clone(){return new $v(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new $v(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $v(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?lb(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):lb(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)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(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Jt),Jt=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+(S+1)}unpack(S,F,W){return S*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(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,Fe=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=Fe-1;break;case 1:Fe=pe+1}let Ke=-F*this.dim,ct=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class xS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.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(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class my{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new Qi(ja,16,0),this.grid3D=new Qi(ja,16,0),this.featureIndexArray=new Ts,this.promoteId=F}insert(S,F,W,te,fe,pe){let Fe=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ct=0;ct=0&&Jt[3]>=0&&Ke.insert(Fe,Jt[0],Jt[1],Jt[2],Jt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new lS(this.rawTileData)).layers,this.sourceLayerCoder=new NC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=ja/S.tileSize/S.scale,Fe=Fc(fe.filter),Ke=S.queryGeometry,ct=S.queryPadding*pe,Lt=VC(Ke),Jt=this.grid.query(Lt.minX-ct,Lt.minY-ct,Lt.maxX+ct,Lt.maxY+ct),cr=VC(S.cameraQueryGeometry),mr=this.grid3D.query(cr.minX-ct,cr.minY-ct,cr.maxX+ct,cr.maxY+ct,(ui,yi,vn,zi)=>function(un,Tn,pa,ro,Vo){for(let sa of un)if(Tn<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(Tn,pa),new u(Tn,Vo),new u(ro,Vo),new u(ro,pa)];if(un.length>2){for(let sa of Xa)if(Ui(un,sa))return!0}for(let sa=0;sa(zi||(zi=$s(un)),Tn.queryIntersectsFeature(Ke,un,pa,zi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Pr}loadMatchingFeature(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt){let cr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let vn=0;vn=0)return!0;return!1}(pe,cr))return;let mr=this.sourceLayerCoder.decode(W),Pr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Sl(Pr,!0);if(!fe.filter(new rs(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new rs(this.tileID.overscaledZ),Pr))return;let zr=this.getId(Pr,mr);for(let ui=0;ui{let Fe=S instanceof Ac?S.get(pe):null;return Fe&&Fe.evaluate?Fe.evaluate(F,W,te):Fe})}function VC(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function rO(R,S){return S-R}function GC(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Jt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Jt.x-Lt.x)*(Jt.y-Lt.y))._round():Jt.x>=W&&(Jt=new u(W,Lt.y+(W-Lt.x)/(Jt.x-Lt.x)*(Jt.y-Lt.y))._round()),Lt.y>=te&&Jt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Jt.y-Lt.y)*(Jt.x-Lt.x),te)._round():Jt.y>=te&&(Jt=new u(Lt.x+(te-Lt.y)/(Jt.y-Lt.y)*(Jt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Jt)))))}}return fe}Fi("FeatureIndex",my,{omit:["rawTileData","sourceLayerCoder"]});class gg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new gg(this.x,this.y,this.angle,this.segment)}}function bS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,Fe=0;for(;Fe>-F/2;){if(pe--,pe<0)return!1;Fe-=R[pe].dist(fe),fe=R[pe]}Fe+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ct=0;for(;FeW;)ct-=Ke.shift().angleDelta;if(ct>te)return!1;pe++,Fe+=Lt.dist(Jt)}return!0}function HC(R){let S=0;for(let F=0;Fct){let Pr=(ct-Ke)/mr,zr=Lo.number(Jt.x,cr.x,Pr),ui=Lo.number(Jt.y,cr.y,Pr),yi=new gg(zr,ui,cr.angleTo(Jt),Lt);return yi._round(),!pe||bS(R,yi,Fe,pe,S)?yi:void 0}Ke+=mr}}function nO(R,S,F,W,te,fe,pe,Fe,Ke){let ct=jC(W,fe,pe),Lt=WC(W,te),Jt=Lt*pe,cr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Jt=0&&un=0&&Tn=0&&cr+ct<=Lt){let pa=new gg(un,Tn,vn,Pr);pa._round(),W&&!bS(R,pa,fe,W,te)||mr.push(pa)}}Jt+=yi}return Fe||mr.length||pe||(mr=XC(R,Jt/2,F,W,te,fe,pe,!0,Ke)),mr}Fi("Anchor",gg);let F1=Md;function ZC(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,Fe=fe.paddedRect.w-2*F1,Ke=fe.paddedRect.h-2*F1,ct={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,Fe]],Jt=fe.stretchY||[[0,Ke]],cr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(cr,0),Pr=Jt.reduce(cr,0),zr=Fe-mr,ui=Ke-Pr,yi=0,vn=mr,zi=0,un=Pr,Tn=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ct=PC(R)),yi=mg(Lt,0,Xn[0]),zi=mg(Jt,0,Xn[1]),vn=mg(Lt,Xn[0],Xn[2]),un=mg(Jt,Xn[1],Xn[3]),Tn=Xn[0]-yi,ro=Xn[1]-zi,pa=Ro-vn,Vo=uo-un}let Xa=ct.x1,sa=ct.y1,Mo=ct.x2-Xa,fo=ct.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Zw(Xn.stretch-yi,vn,Mo,Xa),qu=z1(Xn.fixed-Tn,pa,Xn.stretch,mr),kh=Zw(Ro.stretch-zi,un,fo,sa),Qv=z1(Ro.fixed-ro,Vo,Ro.stretch,Pr),ud=Zw(uo.stretch-yi,vn,Mo,Xa),Ch=z1(uo.fixed-Tn,pa,uo.stretch,mr),Vd=Zw($o.stretch-zi,un,fo,sa),Gd=z1($o.fixed-ro,Vo,$o.stretch,Pr),Hd=new u(Ju,kh),Af=new u(ud,kh),Lh=new u(ud,Vd),Ed=new u(Ju,Vd),cd=new u(qu/pe,Qv/pe),Yh=new u(Ch/pe,Gd/pe),Df=S*Math.PI/180;if(Df){let ru=Math.sin(Df),pc=Math.cos(Df),$u=[pc,-ru,ru,pc];Hd._matMult($u),Af._matMult($u),Ed._matMult($u),Lh._matMult($u)}let Fv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:Hd,tr:Af,bl:Ed,br:Lh,tex:{x:fe.paddedRect.x+F1+Fv,y:fe.paddedRect.y+F1+lv,w:uo.stretch+uo.fixed-Fv,h:$o.stretch+$o.fixed-lv},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 Xn=YC(Lt,zr,mr),Ro=YC(Jt,ui,Pr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let cr=!((Jt=pe.image)===null||Jt===void 0)&&Jt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?PC(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};cr.y1=cr.y1*Fe-Ke[0],cr.y2=cr.y2*Fe+Ke[2],cr.x1=cr.x1*Fe-Ke[3],cr.x2=cr.x2*Fe+Ke[1];let mr=pe.collisionPadding;if(mr&&(cr.x1-=mr[0]*Fe,cr.y1-=mr[1]*Fe,cr.x2+=mr[2]*Fe,cr.y2+=mr[3]*Fe),Lt){let Pr=new u(cr.x1,cr.y1),zr=new u(cr.x2,cr.y1),ui=new u(cr.x1,cr.y2),yi=new u(cr.x2,cr.y2),vn=Lt*Math.PI/180;Pr._rotate(vn),zr._rotate(vn),ui._rotate(vn),yi._rotate(vn),cr.x1=Math.min(Pr.x,zr.x,ui.x,yi.x),cr.x2=Math.max(Pr.x,zr.x,ui.x,yi.x),cr.y1=Math.min(Pr.y,zr.y,ui.y,yi.y),cr.y2=Math.max(Pr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,cr.x1,cr.y1,cr.x2,cr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,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(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function aO(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,Fe=R[0];for(let mr=0;mrfe)&&(fe=Pr.x),(!mr||Pr.y>pe)&&(pe=Pr.y)}let Ke=Math.min(fe-W,pe-te),ct=Ke/2,Lt=new Vp([],oO);if(Ke===0)return new u(W,te);for(let mr=W;mrJt.d||!Jt.d)&&(Jt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,cr)),mr.max-Jt.d<=S||(ct=mr.h/2,Lt.push(new O1(mr.p.x-ct,mr.p.y-ct,ct,R)),Lt.push(new O1(mr.p.x+ct,mr.p.y-ct,ct,R)),Lt.push(new O1(mr.p.x-ct,mr.p.y+ct,ct,R)),Lt.push(new O1(mr.p.x+ct,mr.p.y+ct,ct,R)),cr+=4)}return F&&(console.log(`num probes: ${cr}`),console.log(`best distance: ${Jt.d}`)),Jt.p}function oO(R,S){return S.max-R.max}function O1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,Fe=1/0;for(let Ke=0;Kete.y!=Pr.y>te.y&&te.x<(Pr.x-mr.x)*(te.y-mr.y)/(Pr.y-mr.y)+mr.x&&(pe=!pe),Fe=Math.min(Fe,Gr(te,mr,Pr))}}return(pe?1:-1)*Math.sqrt(Fe)}(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,yy=Number.POSITIVE_INFINITY;function wS(R,S){return S[1]!==yy?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,S[0],S[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,S[0])}function KC(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let Fe=fe.values,Ke=[];for(let ct=0;ctcr*tu);Lt.startsWith("top")?Jt[1]-=vm:Lt.startsWith("bottom")&&(Jt[1]+=vm),Ke[ct+1]=Jt}return new $i(Ke)}let pe=te.get("text-variable-anchor");if(pe){let Fe;Fe=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*tu,yy]:te.get("text-offset").evaluate(S,{},F).map(ct=>ct*tu);let Ke=[];for(let ct of pe)Ke.push(ct,wS(ct,Fe));return new $i(Ke)}return null}function TS(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 sO(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=fe.textMaxSize.evaluate(S,{});Jt===void 0&&(Jt=pe);let cr=R.layers[0].layout,mr=cr.get("icon-offset").evaluate(S,{},Lt),Pr=$C(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Jt/24,vn=R.tilePixelRatio*Fe,zi=R.tilePixelRatio*cr.get("symbol-spacing"),un=cr.get("text-padding")*R.tilePixelRatio,Tn=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(cr,S,Lt,R.tilePixelRatio),pa=cr.get("text-max-angle")/180*Math.PI,ro=cr.get("text-rotation-alignment")!=="viewport"&&cr.get("symbol-placement")!=="point",Vo=cr.get("icon-rotation-alignment")==="map"&&cr.get("symbol-placement")!=="point",Xa=cr.get("symbol-placement"),sa=zi/2,Mo=cr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=IC(W,F.vertical,Mo,cr.get("icon-text-fit-padding"),mr,zr)),Pr&&(W=IC(W,Pr,Mo,cr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=ja||Ro.y<0||Ro.y>=ja||function(uo,$o,Ju,qu,kh,Qv,ud,Ch,Vd,Gd,Hd,Af,Lh,Ed,cd,Yh,Df,Fv,lv,ru,pc,$u,zv,ff,q1){let p0=uo.addToLineVertexArray($o,Ju),Gp,ep,Gc,Yf,tp=0,yg=0,uv=0,B1=0,kS=-1,$w=-1,g0={},_y=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let kd=Ch.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new dm(Vd,$o,Gd,Hd,Af,qu.vertical,Lh,Ed,cd,kd),ud&&(Yf=new dm(Vd,$o,Gd,Hd,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=ZC(kh,kd,zv,rp),jd=ud?ZC(ud,kd,zv,rp):void 0;ep=new dm(Vd,$o,Gd,Hd,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&&A(`${uo.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)):Cd.kind==="composite"&&(xp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(xp[0]>fm||xp[1]>fm)&&A(`${uo.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,pm,xp,ru,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),kS=uo.icon.placedSymbolArray.length-1,jd&&(yg=4*jd.length,uo.addSymbols(uo.icon,jd,xp,ru,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),$w=uo.icon.placedSymbolArray.length-1)}let Kh=Object.keys(qu.horizontal);for(let kd of Kh){let rp=qu.horizontal[kd];if(!Gp){_y=bi(rp.text);let jd=Ch.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new dm(Vd,$o,Gd,Hd,Af,rp,Lh,Ed,cd,jd)}let pm=rp.positionedLines.length===1;if(uv+=JC(uo,$o,rp,Qv,Ch,cd,pc,Yh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,pm?Kh:[kd],g0,kS,$u,ff),pm)break}qu.vertical&&(B1+=JC(uo,$o,qu.vertical,Qv,Ch,cd,pc,Yh,p0,i.ah.vertical,["vertical"],g0,$w,$u,ff));let cO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Qw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,r6=ep?ep.boxStartIndex:uo.collisionBoxArray.length,fO=ep?ep.boxEndIndex:uo.collisionBoxArray.length,i6=Yf?Yf.boxStartIndex:uo.collisionBoxArray.length,hO=Yf?Yf.boxEndIndex:uo.collisionBoxArray.length,_p=-1,fb=(kd,rp)=>kd&&kd.circleDiameter?Math.max(kd.circleDiameter,rp):rp;_p=fb(Gp,_p),_p=fb(Gc,_p),_p=fb(ep,_p),_p=fb(Yf,_p);let e3=_p>-1?1:0;e3&&(_p*=q1/tu),uo.glyphOffsetArray.length>=R1.MAX_GLYPHS&&A("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 CS=KC(Ch,pc,ff),[dO,vO]=function(kd,rp){let pm=kd.length,jd=rp==null?void 0:rp.values;if((jd==null?void 0:jd.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,kS,$w,_y,cO,Qw,m0,cv,r6,fO,i6,hO,Gd,uv,B1,tp,yg,e3,0,Lh,_p,dO,vO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[un,un,un,un],ro,Ke,vn,Tn,Vo,mr,S,fe,ct,Lt,pe)};if(Xa==="line")for(let Xn of GC(S.geometry,0,0,ja,ja)){let Ro=nO(Xn,zi,pa,F.vertical||Pr,W,24,yi,R.overscaling,ja);for(let uo of Ro)Pr&&lO(R,Pr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=iO(Xn,pa,F.vertical||Pr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=aO(Xn,16);lo(Xn[0],new gg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new gg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new gg(Ro.x,Ro.y,0))}function JC(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr){let zr=function(vn,zi,un,Tn,pa,ro,Vo,Xa){let sa=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 Xn=lo.rect||{},Ro=EC+1,uo=!0,$o=1,Ju=0,qu=(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+un[0],lo.y+un[1]-Ju],Ch=[0,0];qu&&(Ch=ud,ud=[0,0]);let Vd=lo.metrics.isDoubleResolution?2:1,Gd=(lo.metrics.left-Ro)*lo.scale-kh+ud[0],Hd=(-lo.metrics.top-Ro)*lo.scale+ud[1],Af=Gd+Xn.w/Vd*lo.scale/$o,Lh=Hd+Xn.h/Vd*lo.scale/$o,Ed=new u(Gd,Hd),cd=new u(Af,Hd),Yh=new u(Gd,Lh),Df=new u(Af,Lh);if(qu){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)),ff=new u(...Ch);Ed._rotateAround(pc,ru)._add(zv)._add(ff),cd._rotateAround(pc,ru)._add(zv)._add(ff),Yh._rotateAround(pc,ru)._add(zv)._add(ff),Df._rotateAround(pc,ru)._add(zv)._add(ff)}if(sa){let ru=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-ru,ru,pc];Ed._matMult($u),cd._matMult($u),Yh._matMult($u),Df._matMult($u)}let Fv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:cd,bl:Yh,br:Df,tex:Xn,writingMode:zi.writingMode,glyphOffset:Qv,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Fv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,Fe,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>fm&&A(`${R.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Pr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Pr)],(yi[0]>fm||yi[1]>fm)&&A(`${R.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,Fe,fe,pe,ct,S,Ke.lineStartIndex,Ke.lineLength,cr,Pr);for(let vn of Lt)Jt[vn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function $C(R){for(let S in R)return R[S];return null}function lO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];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=QC[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[Fe]=new Uint32Array(S,4,1);return new AS(Fe,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=QC.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,Fe=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-Fe%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,S),this.coords=new this.ArrayType(this.data,8+Fe+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+Fe+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+Fe+Ke,2*S),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]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Yw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:Fe}=this,Ke=[0,fe.length-1,0],ct=[];for(;Ke.length;){let Lt=Ke.pop()||0,Jt=Ke.pop()||0,cr=Ke.pop()||0;if(Jt-cr<=Fe){for(let ui=cr;ui<=Jt;ui++){let yi=pe[2*ui],vn=pe[2*ui+1];yi>=S&&yi<=W&&vn>=F&&vn<=te&&ct.push(fe[ui])}continue}let mr=cr+Jt>>1,Pr=pe[2*mr],zr=pe[2*mr+1];Pr>=S&&Pr<=W&&zr>=F&&zr<=te&&ct.push(fe[mr]),(Lt===0?S<=Pr:F<=zr)&&(Ke.push(cr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Pr:te>=zr)&&(Ke.push(mr+1),Ke.push(Jt),Ke.push(1-Lt))}return ct}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,Fe=[0,te.length-1,0],Ke=[],ct=W*W;for(;Fe.length;){let Lt=Fe.pop()||0,Jt=Fe.pop()||0,cr=Fe.pop()||0;if(Jt-cr<=pe){for(let ui=cr;ui<=Jt;ui++)t6(fe[2*ui],fe[2*ui+1],S,F)<=ct&&Ke.push(te[ui]);continue}let mr=cr+Jt>>1,Pr=fe[2*mr],zr=fe[2*mr+1];t6(Pr,zr,S,F)<=ct&&Ke.push(te[mr]),(Lt===0?S-W<=Pr:F-W<=zr)&&(Fe.push(cr),Fe.push(mr-1),Fe.push(1-Lt)),(Lt===0?S+W>=Pr:F+W>=zr)&&(Fe.push(mr+1),Fe.push(Jt),Fe.push(1-Lt))}return Ke}}function Yw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;e6(R,S,pe,W,te,fe),Yw(R,S,F,W,pe-1,1-fe),Yw(R,S,F,pe+1,te,1-fe)}function e6(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ct=te-W+1,Lt=F-W+1,Jt=Math.log(ct),cr=.5*Math.exp(2*Jt/3),mr=.5*Math.sqrt(Jt*cr*(ct-cr)/ct)*(Lt-ct/2<0?-1:1);e6(R,S,F,Math.max(W,Math.floor(F-Lt*cr/ct+mr)),Math.min(te,Math.floor(F+(ct-Lt)*cr/ct+mr)),fe)}let pe=S[2*F+fe],Fe=W,Ke=te;for(ub(R,S,W,F),S[2*te+fe]>pe&&ub(R,S,W,te);Fepe;)Ke--}S[2*W+fe]===pe?ub(R,S,W,Ke):(Ke++,ub(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function ub(R,S,F,W){SS(R,F,W),SS(S,2*F,2*W),SS(S,2*F+1,2*W+1)}function SS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function t6(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Kw;i.bg=void 0,(Kw=i.bg||(i.bg={})).create="create",Kw.load="load",Kw.fullLoad="fullLoad";let cb=null,sh=[],MS=1e3/60,ES="loadTime",Jw="fullLoadTime",uO={mark(R){performance.mark(R)},frame(R){let S=R;cb!=null&&sh.push(S-cb),cb=S},clearMetrics(){cb=null,sh=[],performance.clearMeasures(ES),performance.clearMeasures(Jw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(ES,i.bg.create,i.bg.load),performance.measure(Jw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(ES)[0].duration,S=performance.getEntriesByName(Jw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>MS).reduce((fe,pe)=>fe+(pe-MS)/MS,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Yt{},i.A=xi,i.B=dn,i.C=function(R){if(U==null){let S=R.navigator?R.navigator.userAgent:null;U=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=Ua,i.E=De,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new mS(()=>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=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let Fe={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Fe)},{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 S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Le,i.H=function(){var R=new xi(16);return xi!=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=Bw,i.J=function(R,S,F){var W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],Fe=S[4],Ke=S[5],ct=S[6],Lt=S[7],Jt=S[8],cr=S[9],mr=S[10],Pr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=Fe,R[5]=Ke,R[6]=ct,R[7]=Lt,R[8]=Jt,R[9]=cr,R[10]=mr,R[11]=Pr,R[12]=W*zr+Fe*ui+Jt*yi+S[12],R[13]=te*zr+Ke*ui+cr*yi+S[13],R[14]=fe*zr+ct*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Pr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Ee(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return x++},i.a5=Cn,i.a6=R1,i.a7=Fc,i.a8=Sl,i.a9=xS,i.aA=function(R){if(R.type==="custom")return new gS(R);switch(R.type){case"background":return new tO(R);case"circle":return new hi(R);case"fill":return new yt(R);case"fill-extrusion":return new Lv(R);case"heatmap":return new oa(R);case"hillshade":return new Zs(R);case"line":return new hy(R);case"raster":return new ab(R);case"symbol":return new gy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,Fe,Ke,ct){let Lt;for(Lt in Fe=Fe||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(Fe,Lt)||ut(Lt,Ke,ct));for(Lt in Fe)Object.prototype.hasOwnProperty.call(Fe,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],Fe[Lt])||(pe[Lt].type==="geojson"&&Fe[Lt].type==="geojson"&&Nt(pe,Fe,Lt)?Vt(Ke,{command:"setGeoJSONSourceData",args:[Lt,Fe[Lt].data]}):Wt(Lt,Fe,Ke,ct)):ot(Lt,Fe,Ke))})(R.sources,S.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,Fe,Ke){Fe=Fe||[];let ct=(pe=pe||[]).map(sr),Lt=Fe.map(sr),Jt=pe.reduce(Tr,{}),cr=Fe.reduce(Tr,{}),mr=ct.slice(),Pr=Object.create(null),zr,ui,yi,vn,zi;for(let un=0,Tn=0;un@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],Fe=S[2],Ke=S[3],ct=S[4],Lt=S[5],Jt=S[6],cr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ct*W,R[1]=pe*te+Lt*W,R[2]=Fe*te+Jt*W,R[3]=Ke*te+cr*W,R[4]=ct*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Jt*te-Fe*W,R[7]=cr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=Bn,i.ag=function(R,S){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,Fe=te?E(ko.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,Fe):F=Fe}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=hS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,Fe=W.x-F.x,Ke=pe*fe-Fe*te;if(Ke===0)return null;let ct=(Fe*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ct*fe,R.y+ct*te)},i.al=GC,i.am=Sc,i.an=Ri,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=tu,i.ar=fS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],Fe=S[5],Ke=S[6],ct=S[7],Lt=S[8],Jt=S[9],cr=S[10],mr=S[11],Pr=S[12],zr=S[13],ui=S[14],yi=S[15],vn=F*Fe-W*pe,zi=F*Ke-te*pe,un=F*ct-fe*pe,Tn=W*Ke-te*Fe,pa=W*ct-fe*Fe,ro=te*ct-fe*Ke,Vo=Lt*zr-Jt*Pr,Xa=Lt*ui-cr*Pr,sa=Lt*yi-mr*Pr,Mo=Jt*ui-cr*zr,fo=Jt*yi-mr*zr,lo=cr*yi-mr*ui,Xn=vn*lo-zi*fo+un*Mo+Tn*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(Fe*lo-Ke*fo+ct*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*Tn)*Xn,R[3]=(cr*pa-Jt*ro-mr*Tn)*Xn,R[4]=(Ke*sa-pe*lo-ct*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*un-Pr*ro-yi*zi)*Xn,R[7]=(Lt*ro-cr*un+mr*zi)*Xn,R[8]=(pe*fo-Fe*sa+ct*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Pr*pa-zr*un+yi*vn)*Xn,R[11]=(Jt*un-Lt*pa-mr*vn)*Xn,R[12]=(Fe*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*zi-Pr*Tn-ui*vn)*Xn,R[15]=(Lt*Tn-Jt*zi+cr*vn)*Xn,R):null},i.at=TS,i.au=Gw,i.av=AS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=yS,i.bf=uO,i.bh=ge,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*tu)}let Xa=pe?"center":F.get("text-justify").evaluate(ct,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ct,{},R.canonical)*tu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(un)&&(Pr.vertical=Qx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,cr,Jt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}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((S,F)=>{let W=new Image;W.onload=()=>{S(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=Ce,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=me,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new lS(R).readFields(qQ,[])},i.o=na,i.p=cS,i.q=ue,i.r=Xi,i.s=Ee,i.t=Yi,i.u=ki,i.v=ce,i.w=A,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*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 tt of Ge){this._layerConfigs[tt.id]=tt;let xt=this._layers[tt.id]=i.aA(tt);xt._featureFilter=i.a7(xt.filter),this.keyCache[tt.id]&&delete this.keyCache[tt.id]}for(let tt of Je)delete this.keyCache[tt],delete this._layerConfigs[tt],delete this._layers[tt];this.familiesBySource={};let We=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let tt of We){let xt=tt.map(ar=>this._layers[ar.id]),Ie=xt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",ke=this.familiesBySource[xe];ke||(ke=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",ir=ke[vt];ir||(ir=ke[vt]=[]),ir.push(xt)}}}class o{constructor(Ge){let Je={},We=[];for(let xe in Ge){let ke=Ge[xe],vt=Je[xe]={};for(let ir in ke){let ar=ke[+ir];if(!ar||ar.bitmap.width===0||ar.bitmap.height===0)continue;let vr={x:0,y:0,w:ar.bitmap.width+2,h:ar.bitmap.height+2};We.push(vr),vt[ir]={rect:vr,metrics:ar.metrics}}}let{w:tt,h:xt}=i.p(We),Ie=new i.o({width:tt||1,height:xt||1});for(let xe in Ge){let ke=Ge[xe];for(let vt in ke){let ir=ke[+vt];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let ar=Je[xe][vt].rect;i.o.copy(ir.bitmap,Ie,{x:0,y:0},{x:ar.x+1,y:ar.y+1},ir.bitmap)}}this.image=Ie,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,tt){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()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},ke={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:We},vt=Je.familiesBySource[this.source];for(let qn in vt){let Fn=Ge.layers[qn];if(!Fn)continue;Fn.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 ra=xt.encode(qn),la=[];for(let Ut=0;Ut=wt.maxzoom||wt.visibility!=="none"&&(l(Ut,this.zoom,We),(xe[wt.id]=wt.createBucket({index:Ie.bucketLayerIDs.length,layers:Ut,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ra,sourceID:this.source})).populate(la,ke,this.tileID.canonical),Ie.bucketLayerIDs.push(Ut.map(rr=>rr.id)))}}let ir=i.aF(ke.glyphDependencies,qn=>Object.keys(qn).map(Number));this.inFlightDependencies.forEach(qn=>qn==null?void 0:qn.abort()),this.inFlightDependencies=[];let ar=Promise.resolve({});if(Object.keys(ir).length){let qn=new AbortController;this.inFlightDependencies.push(qn),ar=tt.sendAsync({type:"GG",data:{stacks:ir,source:this.source,tileID:this.tileID,type:"glyphs"}},qn)}let vr=Object.keys(ke.iconDependencies),ii=Promise.resolve({});if(vr.length){let qn=new AbortController;this.inFlightDependencies.push(qn),ii=tt.sendAsync({type:"GI",data:{icons:vr,source:this.source,tileID:this.tileID,type:"icons"}},qn)}let pi=Object.keys(ke.patternDependencies),$r=Promise.resolve({});if(pi.length){let qn=new AbortController;this.inFlightDependencies.push(qn),$r=tt.sendAsync({type:"GI",data:{icons:pi,source:this.source,tileID:this.tileID,type:"patterns"}},qn)}let[di,ji,In]=yield Promise.all([ar,ii,$r]),wi=new o(di),On=new i.bo(ji,In);for(let qn in xe){let Fn=xe[qn];Fn instanceof i.a6?(l(Fn.layers,this.zoom,We),i.bp({bucket:Fn,glyphMap:di,glyphPositions:wi.positions,imageMap:ji,imagePositions:On.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Fn.hasPattern&&(Fn instanceof i.bq||Fn instanceof i.br||Fn instanceof i.bs)&&(l(Fn.layers,this.zoom,We),Fn.addFeatures(ke,this.tileID.canonical,On.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(qn=>!qn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wi.image,imageAtlas:On,glyphMap:this.returnDependencies?di:null,iconMap:this.returnDependencies?ji:null,glyphPositions:this.returnDependencies?wi.positions:null}})}}function l(dt,Ge,Je){let We=new i.z(Ge);for(let tt of dt)tt.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(tt){let xt=new Uint8Array(We.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=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: ${tt.message}`,new Error(Ie)}})}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),tt=new s(Ge);this.loading[Je]=tt;let xt=new AbortController;tt.abort=xt;try{let Ie=yield this.loadVectorTile(Ge,xt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,ke={};Ie.expires&&(ke.expires=Ie.expires),Ie.cacheControl&&(ke.cacheControl=Ie.cacheControl);let vt={};if(We){let ar=We.finish();ar&&(vt.resourceTiming=JSON.parse(JSON.stringify(ar)))}tt.vectorTile=Ie.vectorTile;let ir=tt.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=tt,this.fetching[Je]={rawTileData:xe,cacheControl:ke,resourceTiming:vt};try{let ar=yield ir;return i.e({rawTileData:xe.slice(0)},ar,ke,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],tt.status="done",this.loaded[Je]=tt,Ie}})}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 tt=yield We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor),xt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:ke}=this.fetching[Je];delete this.fetching[Je],xt=i.e({rawTileData:Ie.slice(0)},tt,xe,ke)}else xt=tt;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:tt,redFactor:xt,greenFactor:Ie,blueFactor:xe,baseShift:ke}=Ge,vt=tt.width+2,ir=tt.height+2,ar=i.b(tt)?new i.R({width:vt,height:ir},yield i.bw(tt,-1,-1,vt,ir)):tt,vr=new i.bx(Je,ar,We,xt,Ie,xe,ke);return this.loaded=this.loaded||{},this.loaded[Je]=vr,vr})}removeTile(Ge){let Je=this.loaded,We=Ge.uid;Je&&Je[We]&&delete Je[We]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-ke+xe:xe-ke+Je,Je=ke}Je+We>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var We,tt=Ge&&Ge.type;if(tt==="FeatureCollection")for(We=0;We>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),We=dt.type,tt=0,xt=0,Ie=Je.length,xe=0;xedt},j=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let H=3,re=5,oe=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:tt}=this.options;Je&&console.time("total time");let xt=`prepare ${Ge.length} points`;Je&&console.time(xt),this.points=Ge;let Ie=[];for(let ke=0;ke=We;ke--){let vt=+Date.now();xe=this.trees[ke]=this._createTree(this._cluster(xe,ke)),Je&&console.log("z%d: %d clusters in %dms",ke,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let We=((Ge[0]+180)%360+360)%360-180,tt=Math.max(-90,Math.min(90,Ge[1])),xt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)We=-180,xt=180;else if(We>xt){let ar=this.getClusters([We,tt,180,Ie],Je),vr=this.getClusters([-180,tt,xt,Ie],Je);return ar.concat(vr)}let xe=this.trees[this._limitZoom(Je)],ke=xe.range(ge(We),ie(Ie),ge(xt),ie(tt)),vt=xe.data,ir=[];for(let ar of ke){let vr=this.stride*ar;ir.push(vt[vr+re]>1?Ce(vt,vr,this.clusterProps):this.points[vt[vr+H]])}return ir}getChildren(Ge){let Je=this._getOriginId(Ge),We=this._getOriginZoom(Ge),tt="No cluster with the specified id.",xt=this.trees[We];if(!xt)throw new Error(tt);let Ie=xt.data;if(Je*this.stride>=Ie.length)throw new Error(tt);let xe=this.options.radius/(this.options.extent*Math.pow(2,We-1)),ke=xt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let ir of ke){let ar=ir*this.stride;Ie[ar+4]===Ge&&vt.push(Ie[ar+re]>1?Ce(Ie,ar,this.clusterProps):this.points[Ie[ar+H]])}if(vt.length===0)throw new Error(tt);return vt}getLeaves(Ge,Je,We){let tt=[];return this._appendLeaves(tt,Ge,Je=Je||10,We=We||0,0),tt}getTile(Ge,Je,We){let tt=this.trees[this._limitZoom(Ge)],xt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,ke=xe/Ie,vt=(We-ke)/xt,ir=(We+1+ke)/xt,ar={features:[]};return this._addTileFeatures(tt.range((Je-ke)/xt,vt,(Je+1+ke)/xt,ir),tt.data,Je,We,xt,ar),Je===0&&this._addTileFeatures(tt.range(1-ke/xt,vt,1,ir),tt.data,xt,We,xt,ar),Je===xt-1&&this._addTileFeatures(tt.range(0,vt,ke/xt,ir),tt.data,-1,We,xt,ar),ar.features.length?ar: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,tt,xt){let Ie=this.getChildren(Je);for(let xe of Ie){let ke=xe.properties;if(ke&&ke.cluster?xt+ke.point_count<=tt?xt+=ke.point_count:xt=this._appendLeaves(Ge,ke.cluster_id,We,tt,xt):xt1,ir,ar,vr;if(vt)ir=Le(Je,ke,this.clusterProps),ar=Je[ke],vr=Je[ke+1];else{let $r=this.points[Je[ke+H]];ir=$r.properties;let[di,ji]=$r.geometry.coordinates;ar=ge(di),vr=ie(ji)}let ii={type:1,geometry:[[Math.round(this.options.extent*(ar*xt-We)),Math.round(this.options.extent*(vr*xt-tt))]],tags:ir},pi;pi=vt||this.options.generateId?Je[ke+H]:this.points[Je[ke+H]].id,pi!==void 0&&(ii.id=pi),Ie.features.push(ii)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:We,extent:tt,reduce:xt,minPoints:Ie}=this.options,xe=We/(tt*Math.pow(2,Je)),ke=Ge.data,vt=[],ir=this.stride;for(let ar=0;arJe&&(di+=ke[In+re])}if(di>$r&&di>=Ie){let ji,In=vr*$r,wi=ii*$r,On=-1,qn=((ar/ir|0)<<5)+(Je+1)+this.points.length;for(let Fn of pi){let ra=Fn*ir;if(ke[ra+2]<=Je)continue;ke[ra+2]=Je;let la=ke[ra+re];In+=ke[ra]*la,wi+=ke[ra+1]*la,ke[ra+4]=qn,xt&&(ji||(ji=this._map(ke,ar,!0),On=this.clusterProps.length,this.clusterProps.push(ji)),xt(ji,this._map(ke,ra)))}ke[ar+4]=qn,vt.push(In/di,wi/di,1/0,qn,-1,di),xt&&vt.push(On)}else{for(let ji=0;ji1)for(let ji of pi){let In=ji*ir;if(!(ke[In+2]<=Je)){ke[In+2]=Je;for(let wi=0;wi>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,We){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return We?Object.assign({},Ie):Ie}let tt=this.points[Ge[Je+H]].properties,xt=this.options.map(tt);return We&&xt===tt?Object.assign({},xt):xt}}function Ce(dt,Ge,Je){return{type:"Feature",id:dt[Ge+H],properties:Le(dt,Ge,Je),geometry:{type:"Point",coordinates:[(We=dt[Ge],360*(We-.5)),Se(dt[Ge+1])]}};var We}function Le(dt,Ge,Je){let We=dt[Ge+re],tt=We>=1e4?`${Math.round(We/1e3)}k`:We>=1e3?Math.round(We/100)/10+"k":We,xt=dt[Ge+oe],Ie=xt===-1?{}:Object.assign({},Je[xt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+H],point_count:We,point_count_abbreviated:tt})}function ge(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Ee(dt,Ge,Je,We){let tt=We,xt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,ke=dt[Ge],vt=dt[Ge+1],ir=dt[Je],ar=dt[Je+1];for(let vr=Ge+3;vrtt)Ie=vr,tt=ii;else if(ii===tt){let pi=Math.abs(vr-xt);piWe&&(Ie-Ge>3&&Ee(dt,Ge,Ie,We),dt[Ie+2]=tt,Je-Ie>3&&Ee(dt,Ie,Je,We))}function Ae(dt,Ge,Je,We,tt,xt){let Ie=tt-Je,xe=xt-We;if(Ie!==0||xe!==0){let ke=((dt-Je)*Ie+(Ge-We)*xe)/(Ie*Ie+xe*xe);ke>1?(Je=tt,We=xt):ke>0&&(Je+=Ie*ke,We+=xe*ke)}return Ie=dt-Je,xe=Ge-We,Ie*Ie+xe*xe}function Be(dt,Ge,Je,We){let tt={id:dt==null?null:dt,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")Pe(tt,Je);else if(Ge==="Polygon")Pe(tt,Je[0]);else if(Ge==="MultiLineString")for(let xt of Je)Pe(tt,xt);else if(Ge==="MultiPolygon")for(let xt of Je)Pe(tt,xt[0]);return tt}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=We?(tt*ir-vt*xt)/2:Math.sqrt(Math.pow(vt-tt,2)+Math.pow(ir-xt,2))),tt=vt,xt=ir}let xe=Ge.length-3;Ge[2]=1,Ee(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function je(dt,Ge,Je,We){for(let tt=0;tt1?1:Je}function Vt(dt,Ge,Je,We,tt,xt,Ie,xe){if(We/=Ge,xt>=(Je/=Ge)&&Ie=We)return null;let ke=[];for(let vt of dt){let ir=vt.geometry,ar=vt.type,vr=tt===0?vt.minX:vt.minY,ii=tt===0?vt.maxX:vt.maxY;if(vr>=Je&&ii=We)continue;let pi=[];if(ar==="Point"||ar==="MultiPoint")ot(ir,pi,Je,We,tt);else if(ar==="LineString")ut(ir,pi,Je,We,tt,!1,xe.lineMetrics);else if(ar==="MultiLineString")Nt(ir,pi,Je,We,tt,!1);else if(ar==="Polygon")Nt(ir,pi,Je,We,tt,!0);else if(ar==="MultiPolygon")for(let $r of ir){let di=[];Nt($r,di,Je,We,tt,!0),di.length&&pi.push(di)}if(pi.length){if(xe.lineMetrics&&ar==="LineString"){for(let $r of pi)ke.push(Be(vt.id,ar,$r,vt.tags));continue}ar!=="LineString"&&ar!=="MultiLineString"||(pi.length===1?(ar="LineString",pi=pi[0]):ar="MultiLineString"),ar!=="Point"&&ar!=="MultiPoint"||(ar=pi.length===3?"Point":"MultiPoint"),ke.push(Be(vt.id,ar,pi,vt.tags))}}return ke.length?ke:null}function ot(dt,Ge,Je,We,tt){for(let xt=0;xt=Je&&Ie<=We&&$t(Ge,dt[xt],dt[xt+1],dt[xt+2])}}function ut(dt,Ge,Je,We,tt,xt,Ie){let xe=Wt(dt),ke=tt===0?sr:Tr,vt,ir,ar=dt.start;for(let di=0;diJe&&(ir=ke(xe,ji,In,On,qn,Je),Ie&&(xe.start=ar+vt*ir)):Fn>We?ra=Je&&(ir=ke(xe,ji,In,On,qn,Je),la=!0),ra>We&&Fn<=We&&(ir=ke(xe,ji,In,On,qn,We),la=!0),!xt&&la&&(Ie&&(xe.end=ar+vt*ir),Ge.push(xe),xe=Wt(dt)),Ie&&(ar+=vt)}let vr=dt.length-3,ii=dt[vr],pi=dt[vr+1],$r=tt===0?ii:pi;$r>=Je&&$r<=We&&$t(xe,ii,pi,dt[vr+2]),vr=xe.length-3,xt&&vr>=3&&(xe[vr]!==xe[0]||xe[vr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Wt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,We,tt,xt){for(let Ie of dt)ut(Ie,Ge,Je,We,tt,xt,!1)}function $t(dt,Ge,Je,We){dt.push(Ge,Je,We)}function sr(dt,Ge,Je,We,tt,xt){let Ie=(xt-Ge)/(We-Ge);return $t(dt,xt,Je+(tt-Je)*Ie,1),Ie}function Tr(dt,Ge,Je,We,tt,xt){let Ie=(xt-Je)/(tt-Je);return $t(dt,Ge+(We-Ge)*Ie,xt,1),Ie}function fr(dt,Ge){let Je=[];for(let We=0;We0&&Ge.size<(tt?Ie:We))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let ke=0;keIe)&&(Je.numSimplified++,xe.push(Ge[ke],Ge[ke+1])),Je.numPoints++;tt&&function(ke,vt){let ir=0;for(let ar=0,vr=ke.length,ii=vr-2;ar0===vt)for(let ar=0,vr=ke.length;ar24)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 tt=function(xt,Ie){let xe=[];if(xt.type==="FeatureCollection")for(let ke=0;ke1&&console.time("creation"),ii=this.tiles[vr]=Gt(Ge,Je,We,tt,vt),this.tileCoords.push({z:Je,x:We,y:tt}),ir)){ir>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,We,tt,ii.numFeatures,ii.numPoints,ii.numSimplified),console.timeEnd("creation"));let la=`z${Je}`;this.stats[la]=(this.stats[la]||0)+1,this.total++}if(ii.source=Ge,xt==null){if(Je===vt.indexMaxZoom||ii.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===xt)continue;if(xt!=null){let la=xt-Je;if(We!==Ie>>la||tt!==xe>>la)continue}}if(ii.source=null,Ge.length===0)continue;ir>1&&console.time("clipping");let pi=.5*vt.buffer/vt.extent,$r=.5-pi,di=.5+pi,ji=1+pi,In=null,wi=null,On=null,qn=null,Fn=Vt(Ge,ar,We-pi,We+di,0,ii.minX,ii.maxX,vt),ra=Vt(Ge,ar,We+$r,We+ji,0,ii.minX,ii.maxX,vt);Ge=null,Fn&&(In=Vt(Fn,ar,tt-pi,tt+di,1,ii.minY,ii.maxY,vt),wi=Vt(Fn,ar,tt+$r,tt+ji,1,ii.minY,ii.maxY,vt),Fn=null),ra&&(On=Vt(ra,ar,tt-pi,tt+di,1,ii.minY,ii.maxY,vt),qn=Vt(ra,ar,tt+$r,tt+ji,1,ii.minY,ii.maxY,vt),ra=null),ir>1&&console.timeEnd("clipping"),ke.push(In||[],Je+1,2*We,2*tt),ke.push(wi||[],Je+1,2*We,2*tt+1),ke.push(On||[],Je+1,2*We+1,2*tt),ke.push(qn||[],Je+1,2*We+1,2*tt+1)}}getTile(Ge,Je,We){Ge=+Ge,Je=+Je,We=+We;let tt=this.options,{extent:xt,debug:Ie}=tt;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,We);let vt,ir=Ge,ar=Je,vr=We;for(;!vt&&ir>0;)ir--,ar>>=1,vr>>=1,vt=this.tiles[lr(ir,ar,vr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",ir,ar,vr),console.time("drilling down")),this.splitTile(vt.source,ir,ar,vr,Ge,Je,We),Ie>1&&console.timeEnd("drilling down"),this.tiles[ke]?St(this.tiles[ke],xt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ar.properties=ii;let pi={};for(let $r of vr)pi[$r]=ke[$r].evaluate(ir,ar);return pi},Ie.reduce=(ii,pi)=>{ar.properties=pi;for(let $r of vr)ir.accumulated=ii[$r],ii[$r]=vt[$r].evaluate(ir,ar)},Ie}(Ge)).load((yield this._pendingData).features):(tt=yield this._pendingData,new er(tt,Ge.geojsonVtOptions)),this.loaded={};let xt={};if(We){let Ie=We.finish();Ie&&(xt.resourceTiming={},xt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return xt}catch(xt){if(delete this._pendingRequest,i.bB(xt))return{abandoned:!0};throw xt}var tt})}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 tt=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(tt.result==="error")throw new Error(tt.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));We={type:"FeatureCollection",features:We.features.filter(Ie=>tt.value.evaluate({zoom:0},Ie))}}return We})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:We}=Ge;if(Ge.request){let tt=yield i.h(Ge.request,Je);return this._dataUpdateable=Lr(tt.data,We)?ti(tt.data,We):void 0,tt.data}if(typeof Ge.data=="string")try{let tt=JSON.parse(Ge.data);return this._dataUpdateable=Lr(tt,We)?ti(tt,We):void 0,tt}catch(tt){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(tt,xt,Ie){var xe,ke,vt,ir;if(xt.removeAll&&tt.clear(),xt.remove)for(let ar of xt.remove)tt.delete(ar);if(xt.add)for(let ar of xt.add){let vr=wr(ar,Ie);vr!=null&&tt.set(vr,ar)}if(xt.update)for(let ar of xt.update){let vr=tt.get(ar.id);if(vr==null)continue;let ii=!ar.removeAllProperties&&(((xe=ar.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((ke=ar.addOrUpdateProperties)===null||ke===void 0?void 0:ke.length)>0);if((ar.newGeometry||ar.removeAllProperties||ii)&&(vr=Object.assign({},vr),tt.set(ar.id,vr),ii&&(vr.properties=Object.assign({},vr.properties))),ar.newGeometry&&(vr.geometry=ar.newGeometry),ar.removeAllProperties)vr.properties={};else if(((vt=ar.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let pi of ar.removeProperties)Object.prototype.hasOwnProperty.call(vr.properties,pi)&&delete vr.properties[pi];if(((ir=ar.addOrUpdateProperties)===null||ir===void 0?void 0:ir.length)>0)for(let{key:pi,value:$r}of ar.addOrUpdateProperties)vr.properties[pi]=$r}}(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 Vr{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 tt=this.workerSources[Je][We.type][We.source];delete this.workerSources[Je][We.type][We.source],tt.removeSource!==void 0&&tt.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 tt=this.workerSources[Ge][We];for(let xt in tt)tt[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 tt={pluginStatus:"loaded",pluginURL:We};return i.bD.setState(tt),tt}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 tt={sendAsync:(xt,Ie)=>(xt.targetMapId=Ge,this.actor.sendAsync(xt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][We]=new u(tt,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][We]=new Br(tt,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][We]=new this.externalWorkerSourceTypes[Je](tt,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 Vr(self)),Vr}),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,_=!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=st=>{let Tt=Q++;return ee[Tt]=st,Tt},ue.removeThrottleControl=st=>{delete ee[st],Oe()},ue.getImage=(st,Tt,Yt=!0)=>new Promise((Kt,xr)=>{f.supported&&(st.headers||(st.headers={}),st.headers.accept="image/webp,*/*"),a.e(st,{type:"image"}),w.push({abortController:Tt,requestParameters:st,supportImageRefresh:Yt,state:"queued",onError:Ir=>{xr(Ir)},onSuccess:Ir=>{Kt(Ir)}}),Oe()});let le=st=>a._(this,void 0,void 0,function*(){st.state="running";let{requestParameters:Tt,supportImageRefresh:Yt,onError:Kt,onSuccess:xr,abortController:Ir}=st,ve=Yt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((qe,et)=>qe&&et==="accept",!0));B++;let be=ve?Ze(Tt,Ir):a.m(Tt,Ir);try{let qe=yield be;delete st.abortController,st.state="completed",qe.data instanceof HTMLImageElement||a.b(qe.data)?xr(qe):qe.data&&xr({data:yield(Re=qe.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:qe.cacheControl,expires:qe.expires})}catch(qe){delete st.abortController,Kt(qe)}finally{B--,Oe()}var Re}),Oe=()=>{let st=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Yt=w.shift();Yt.abortController.signal.aborted?Tt--:le(Yt)}},Ze=(st,Tt)=>new Promise((Yt,Kt)=>{let xr=new Image,Ir=st.url,ve=st.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Ir))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Kt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Yt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Kt(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."))},xr.src=Ir})}(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 E(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 M(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,Oe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Ze}=this,{gl:st}=Ze;if(this.useMipmap=!!(B&&B.useMipmap),st.bindTexture(st.TEXTURE_2D,this.texture),Ze.pixelStoreUnpackFlipY.set(!1),Ze.pixelStoreUnpack.set(1),Ze.pixelStoreUnpackPremultiplyAlpha.set(this.format===st.RGBA&&(!B||B.premultiply!==!1)),Oe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?st.texImage2D(st.TEXTURE_2D,0,this.format,this.format,st.UNSIGNED_BYTE,w):st.texImage2D(st.TEXTURE_2D,0,this.format,ee,le,0,this.format,st.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Yt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?st.texSubImage2D(st.TEXTURE_2D,0,Tt,Yt,st.RGBA,st.UNSIGNED_BYTE,w):st.texSubImage2D(st.TEXTURE_2D,0,Tt,Yt,ee,le,st.RGBA,st.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&st.generateMipmap(st.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 A 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:Oe}=this.patterns[le],Ze=Oe.x+1,st=Oe.y+1,Tt=this.getImage(le).data,Yt=Tt.width,Kt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Ze,y:st},{width:Yt,height:Kt}),a.R.copy(Tt,ee,{x:0,y:Kt-1},{x:Ze,y:st-1},{width:Yt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Ze,y:st+Kt},{width:Yt,height:1}),a.R.copy(Tt,ee,{x:Yt-1,y:0},{x:Ze-1,y:st},{width:1,height:Kt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Ze+Yt,y:st},{width:1,height:Kt})}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 O(ue,w,B,Q,ee,le,Oe,Ze,st){for(let Tt=w;Tt-1);st++,le[st]=Ze,Oe[st]=Tt,Oe[st+1]=z}for(let Ze=0,st=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 Oe=yield Q.requests[le];for(let Ze in Oe)this._doesCharSupportLocalGlyph(+Ze)||(Q.glyphs[+Ze]=Oe[+Ze]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:Oe[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 Oe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Oe.width||60,height:Oe.height||60},Oe.data),metrics:{width:Oe.glyphWidth/2||24,height:Oe.glyphHeight/2||24,left:Oe.glyphLeft/2+.5||0,top:Oe.glyphTop/2-27.5||-8,advance:Oe.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,Oe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Ze=yield a.l(Oe,new AbortController);if(!Ze||!Ze.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let st={};for(let Tt of a.n(Ze.data))st[Tt.id]=Tt;return st})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:Oe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Ze=this.size=ue+4*w,st=this._createCanvas(Ze),Tt=this.ctx=st.getContext("2d",{willReadFrequently:!0});Tt.font=`${Oe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.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),Oe=Math.ceil(B),Ze=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),st=Math.min(this.size-this.buffer,Oe+Math.ceil(Q)),Tt=Ze+2*this.buffer,Yt=st+2*this.buffer,Kt=Math.max(Tt*Yt,0),xr=new Uint8ClampedArray(Kt),Ir={data:xr,width:Tt,height:Yt,glyphWidth:Ze,glyphHeight:st,glyphTop:Oe,glyphLeft:0,glyphAdvance:w};if(Ze===0||st===0)return Ir;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:qe}=this;ve.clearRect(be,be,Ze,st),ve.fillText(ue,be,be+Oe);let et=ve.getImageData(be,be,Ze,st);qe.fill(z,0,Kt),Re.fill(0,0,Kt);for(let Xe=0;Xe0?tr*tr:0,Re[Ht]=tr<0?tr*tr:0}}O(qe,0,0,Tt,Yt,Tt,this.f,this.v,this.z),O(Re,be,be,Ze,st,Tt,this.f,this.v,this.z);for(let Xe=0;Xe1&&(st=w[++Ze]);let Yt=Math.abs(Tt-st.left),Kt=Math.abs(Tt-st.right),xr=Math.min(Yt,Kt),Ir,ve=le/Q*(ee+1);if(st.isDash){let be=ee-Math.abs(ve);Ir=Math.sqrt(xr*xr+be*be)}else Ir=ee-Math.sqrt(xr*xr+ve*ve);this.data[Oe+Tt]=Math.max(0,Math.min(255,Ir+128))}}}addRegularDash(w){for(let Ze=w.length-1;Ze>=0;--Ze){let st=w[Ze],Tt=w[Ze+1];st.zeroLength?w.splice(Ze,1):Tt&&Tt.isDash===st.isDash&&(Tt.left=st.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,Oe=w[le];for(let Ze=0;Ze1&&(Oe=w[++le]);let st=Math.abs(Ze-Oe.left),Tt=Math.abs(Ze-Oe.right),Yt=Math.min(st,Tt);this.data[ee+Ze]=Math.max(0,Math.min(255,(Oe.isDash?Yt:-Yt)+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 Le=Math.floor(u.hardwareConcurrency/2),ge,ie;function Se(){return ge||(ge=new Ce),ge}Ce.workerCount=a.C(globalThis)?Math.max(Math.min(Le,3),1):1;class Ee{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 Ae(){return ie||(ie=new Ee(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 Pe(ue,w,B,Q,ee,le){let Oe=function(Kt,xr,Ir){if(Kt)for(let ve of Kt){let be=xr[ve];if(be&&be.source===Ir&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Ir&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Ze=le.maxPitchScaleFactor(),st=ue.tilesIn(Q,Ze,Oe);st.sort(me);let Tt=[];for(let Kt of st)Tt.push({wrappedTileID:Kt.tileID.wrapped().key,queryResults:Kt.tile.queryRenderedFeatures(w,B,ue._state,Kt.queryGeometry,Kt.cameraQueryGeometry,Kt.scale,ee,le,Ze,Be(ue.transform,Kt.tileID))});let Yt=function(Kt){let xr={},Ir={};for(let ve of Kt){let be=ve.queryResults,Re=ve.wrappedTileID,qe=Ir[Re]=Ir[Re]||{};for(let et in be){let Xe=be[et],it=qe[et]=qe[et]||{},Ft=xr[et]=xr[et]||[];for(let Ht of Xe)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Ft.push(Ht))}}return xr}(Tt);for(let Kt in Yt)Yt[Kt].forEach(xr=>{let Ir=xr.feature,ve=ue.getFeatureState(Ir.layer["source-layer"],Ir.id);Ir.source=Ir.layer.source,Ir.layer["source-layer"]&&(Ir.sourceLayer=Ir.layer["source-layer"]),Ir.state=ve});return Yt}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 De(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 je{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),Oe=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,Oe)=>{w.reloadPromise={resolve:le,reject:Oe}})}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 pt 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 De(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 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,Oe=Q.data;w.texture=this.map.painter.getTileTexture(Oe.width),w.texture?w.texture.update(Oe,{useMipmap:!0}):(w.texture=new g(ee,Oe,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 Vt extends pt{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 Oe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Ze={type:this.type,uid:w.uid,source:this.id,rawImageData:Oe,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 st=yield w.actor.sendAsync({type:"LDT",data:Ze});w.dem=st,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,Oe=(B.x+1+Q)%Q,Ze=B.x+1===Q?w.wrap+1:w.wrap,st={};return st[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},st[new a.S(w.overscaledZ,Ze,B.z,Oe,B.y).key]={backfilled:!1},B.y>0&&(st[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},st[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},st[new a.S(w.overscaledZ,Ze,B.z,Oe,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 ut=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Wt 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,Oe=1/0,Ze=-1/0,st=-1/0;for(let xr of ee)le=Math.min(le,xr.x),Oe=Math.min(Oe,xr.y),Ze=Math.max(Ze,xr.x),st=Math.max(st,xr.y);let Tt=Math.max(Ze-le,st-Oe),Yt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Kt=Math.pow(2,Yt);return new a.a1(Yt,Math.floor((le+Ze)/2*Kt),Math.floor((Oe+st)/2*Kt))}(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,ut.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 Nt extends Wt{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,ut.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 $t extends Wt{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(Oe=>typeof Oe!="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,ut.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 Oe=this.tiles[le];Oe.state!=="loaded"&&(Oe.state="loaded",Oe.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 sr={},Tr=ue=>{switch(ue){case"geojson":return ot;case"image":return Wt;case"raster":return pt;case"raster-dem":return Vt;case"vector":return lt;case"video":return Nt;case"canvas":return $t}return sr[ue]},fr="RTLPluginLoaded";class $e extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_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(fr))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let St=null;function Qt(){return St||(St=new $e),St}class Gt{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(Tt)).filter(Boolean);if(st.length!==0){Ze.layers=st,Ze.stateDependentLayerIds&&(Ze.stateDependentLayers=Ze.stateDependentLayerIds.map(Tt=>st.filter(Yt=>Yt.id===Tt)[0]));for(let Tt of st)Oe[Tt.id]=Ze}}return Oe}(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,Qt().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,Oe,Ze,st,Tt,Yt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:Oe,tileSize:this.tileSize,pixelPosMatrix:Yt,transform:st,params:Ze,queryPadding:this.queryPadding*Tt},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:"",Oe=ee._geojsonTileLayer||ee[le];if(!Oe)return;let Ze=a.a7(B&&B.filter),{z:st,x:Tt,y:Yt}=this.tileID.canonical,Kt={z:st,x:Tt,y:Yt};for(let xr=0;xrQ)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 Oe=this._getAndRemoveByKey(this.order[0]);Oe&&this.onRemove(Oe)}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 It{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 Oe in le)delete ee[Oe]}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 Oe in this.stateChanges[ee])this.state[ee][Oe]||(this.state[ee][Oe]={}),a.e(this.state[ee][Oe],this.stateChanges[ee][Oe]),le[Oe]=this.state[ee][Oe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let Oe in this.state[ee])le[Oe]={},this.state[ee][Oe]={};else for(let Oe in this.deletedStates[ee]){if(this.deletedStates[ee][Oe]===null)this.state[ee][Oe]={};else for(let Ze of Object.keys(this.deletedStates[ee][Oe]))delete this.state[ee][Oe][Ze];le[Oe]=this.state[ee][Oe]}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 mt 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,Oe,Ze)=>{let st=new(Tr(le.type))(ee,le,Oe,Ze);if(st.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${st.id}`);return st})(w,B,Q,this),this._tiles={},this._cache=new _t(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new It,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(er).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,Oe=ee.tileID,Ze=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),st=new a.P(Oe.canonical.x,Oe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-Oe.overscaledZ||st.y-Ze.y||st.x-Ze.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(er).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(Oe)>1&&(Math.abs(Oe+st)===1?Oe+=st:Math.abs(Oe-st)===1&&(Oe-=st)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,Oe,Ze),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].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 Oe=this._tiles[le];if(ee[le]||!Oe.hasData()||Oe.tileID.overscaledZ<=B||Oe.tileID.overscaledZ>Q)continue;let Ze=Oe.tileID;for(;Oe&&Oe.tileID.overscaledZ>B+1;){let Tt=Oe.tileID.scaledTo(Oe.tileID.overscaledZ-1);Oe=this._tiles[Tt.key],Oe&&Oe.hasData()&&(Ze=Tt)}let st=Ze;for(;st.overscaledZ>B;)if(st=st.scaledTo(st.overscaledZ-1),w[st.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,Oe){let Ze={},st={},Tt=Object.keys(w),Yt=u.now();for(let Kt of Tt){let xr=w[Kt],Ir=this._tiles[Kt];if(!Ir||Ir.fadeEndTime!==0&&Ir.fadeEndTime<=Yt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Ze[Re.tileID.key]=Re.tileID),st[Kt]=xr}this._retainLoadedChildren(st,ee,Q,w);for(let Kt in Ze)w[Kt]||(this._coveredTiles[Kt]=!0,w[Kt]=Ze[Kt]);if(Oe){let Kt={},xr={};for(let Ir of le)this._tiles[Ir.key].hasData()?Kt[Ir.key]=Ir:xr[Ir.key]=Ir;for(let Ir in xr){let ve=xr[Ir].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Kt[ve[0].key]=w[ve[0].key]=ve[0],Kt[ve[1].key]=w[ve[1].key]=ve[1],Kt[ve[2].key]=w[ve[2].key]=ve[2],Kt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Ir])}for(let Ir in xr){let ve=xr[Ir],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),qe=be||Re||null;if(qe){Kt[qe.tileID.key]=w[qe.tileID.key]=qe.tileID;for(let et in Kt)Kt[et].isChildOf(qe.tileID)&&delete Kt[et]}}for(let Ir in this._tiles)Kt[Ir]||(this._coveredTiles[Ir]=!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(Yt=>new a.S(Yt.canonical.z,Yt.wrap,Yt.canonical.z,Yt.canonical.x,Yt.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(Yt=>this._source.hasTile(Yt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-mt.maxOverzooming,this._source.minzoom),Oe=Math.max(ee+mt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Yt={};for(let Kt of Q)if(Kt.canonical.z>this._source.minzoom){let xr=Kt.scaledTo(Kt.canonical.z-1);Yt[xr.key]=xr;let Ir=Kt.scaledTo(Math.max(this._source.minzoom,Math.min(Kt.canonical.z,5)));Yt[Ir.key]=Ir}Q=Q.concat(Object.values(Yt))}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 st=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(st,le,Oe,ee,Q,B);for(let Yt in st)this._tiles[Yt].clearFadeHold();let Tt=a.ab(this._tiles,st);for(let Yt of Tt){let Kt=this._tiles[Yt];Kt.hasSymbolBuckets&&!Kt.holdingForFade()?Kt.setHoldDuration(this.map._fadeDuration):Kt.hasSymbolBuckets&&!Kt.symbolFadeFinished()||this._removeTile(Yt)}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={},Oe=Math.max(B-mt.maxOverzooming,this._source.minzoom),Ze=Math.max(B+mt.maxUnderzooming,this._source.minzoom),st={};for(let Tt of w){let Yt=this._addTile(Tt);ee[Tt.key]=Tt,Yt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Ir=this.getTile(xr);if(Ir&&Ir.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Kt=Yt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=Oe;--xr){let Ir=Tt.scaledTo(xr);if(le[Ir.key])break;if(le[Ir.key]=!0,Yt=this.getTile(Ir),!Yt&&Kt&&(Yt=this._addTile(Ir)),Yt){let ve=Yt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Kt)&&(ee[Ir.key]=Ir),Kt=Yt.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 Gt(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 Oe=Q?le.getCameraQueryGeometry(w):w,Ze=w.map(ve=>le.pointCoordinate(ve,this.terrain)),st=Oe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Yt=1/0,Kt=1/0,xr=-1/0,Ir=-1/0;for(let ve of st)Yt=Math.min(Yt,ve.x),Kt=Math.min(Kt,ve.y),xr=Math.max(xr,ve.x),Ir=Math.max(Ir,ve.y);for(let ve=0;ve=0&&Xe[1].y+et>=0){let it=Ze.map(Ht=>Re.getTilePoint(Ht)),Ft=st.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Ft,scale:qe})}}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(lr(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 er(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 lr(ue){return ue==="raster"||ue==="image"||ue==="video"}mt.maxOverzooming=10,mt.maxUnderzooming=3;class wr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Oe)/Ze:0;return this.points[le].mult(1-st).add(this.points[B].mult(st))}}function Lr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ti{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 Oe=0;Oethis.width||ee<0||B>this.height)return[];let st=[];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 Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let Oe=w-Q,Ze=w+Q,st=B-Q,Tt=B+Q;if(Ze<0||Oe>this.width||Tt<0||st>this.height)return!1;let Yt=[];return this._forEachCell(Oe,st,Ze,Tt,this._queryCellCircle,Yt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Yt.length>0}_queryCell(w,B,Q,ee,le,Oe,Ze,st){let{seenUids:Tt,hitTest:Yt,overlapMode:Kt}=Ze,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,qe=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!st||st(qe))&&(!Yt||!Lr(Kt,qe.overlapMode))&&(Oe.push({key:qe,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Yt))return!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,qe=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!st||st(qe))&&(!Yt||!Lr(Kt,qe.overlapMode))){let et=ve[Re],Xe=ve[Re+1],it=ve[Re+2];if(Oe.push({key:qe,x1:et-it,y1:Xe-it,x2:et+it,y2:Xe+it}),Yt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,Oe,Ze,st){let{circle:Tt,seenUids:Yt,overlapMode:Kt}=Ze,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Yt.box[be]){Yt.box[be]=!0;let Re=4*be,qe=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!st||st(qe))&&!Lr(Kt,qe.overlapMode))return Oe.push(!0),!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!Yt.circle[be]){Yt.circle[be]=!0;let Re=3*be,qe=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!st||st(qe))&&!Lr(Kt,qe.overlapMode))return Oe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,Oe,Ze,st){let Tt=this._convertToXCellCoord(w),Yt=this._convertToYCellCoord(B),Kt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Ir=Tt;Ir<=Kt;Ir++)for(let ve=Yt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Ir,Oe,Ze,st))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,Oe){let Ze=ee-w,st=le-B,Tt=Q+Oe;return Tt*Tt>Ze*Ze+st*st}_circleAndRectCollide(w,B,Q,ee,le,Oe,Ze){let st=(Oe-ee)/2,Tt=Math.abs(w-(ee+st));if(Tt>st+Q)return!1;let Yt=(Ze-le)/2,Kt=Math.abs(B-(le+Yt));if(Kt>Yt+Q)return!1;if(Tt<=st||Kt<=Yt)return!0;let xr=Tt-st,Ir=Kt-Yt;return xr*xr+Ir*Ir<=Q*Q}}function Br(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 Vr(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 dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],$r(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,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),qe=[256/B.width*2+1,256/B.height*2+1],et=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;et.clear();let Xe=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Ft=B.transform.width/B.transform.height,Ht=!1;for(let tr=0;trMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt){let Kt=B/24,xr=w.lineOffsetX*Kt,Ir=w.lineOffsetY*Kt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,qe=w.lineStartIndex+w.lineLength,et=tt(Kt,Ze,xr,Ir,Q,w,Yt,ue);if(!et)return{notEnoughRoom:!0};let Xe=dt(et.first.point.x,et.first.point.y,Oe,ue.getElevation).point,it=dt(et.last.point.x,et.last.point.y,Oe,ue.getElevation).point;if(ee&&!Q){let Ft=xt(w.writingMode,Xe,it,Tt);if(Ft)return Ft}ve=[et.first];for(let Ft=w.glyphStartIndex+1;Ft0?Xe.point:function(Ht,tr,dr,Sr,Or,Wr){return xe(Ht,tr,dr,1,Or,Wr)}(ue.tileAnchorPoint,et,Re,0,le,ue),Ft=xt(w.writingMode,Re,it,Tt);if(Ft)return Ft}let be=vr(Kt*Ze.getoffsetX(w.glyphStartIndex),xr,Ir,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Yt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(st,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let Oe=ue.add(ue.sub(w)._unit()),Ze=ee!==void 0?dt(Oe.x,Oe.y,ee,le.getElevation).point:vt(Oe.x,Oe.y,le).point,st=B.sub(Ze);return B.add(st._mult(Q/st.mag()))}function ke(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=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let Oe=ue-B.direction;return function(Ze,st,Tt,Yt,Kt){return xe(Ze,st,Tt,Yt,void 0,Kt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Oe),w.lineVertexArray.gety(Oe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(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=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function ir(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ar(ue,w,B,Q,ee,le,Oe,Ze,st){if(Ze.projectionCache.offsets[ue])return Ze.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+st.direction=ee)return Ze.projectionCache.offsets[ue]=Tt,Tt;let Yt=ke(ue+st.direction,Ze,st),Kt=ir(Yt.sub(B),Oe,st.direction),xr=B.add(Kt),Ir=Yt.add(Kt);return Ze.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Ir)||Tt,Ze.projectionCache.offsets[ue]}function vr(ue,w,B,Q,ee,le,Oe,Ze,st){let Tt=Q?ue-w:ue+w,Yt=Tt>0?1:-1,Kt=0;Q&&(Yt*=-1,Kt=Math.PI),Yt<0&&(Kt+=Math.PI);let xr,Ir=Yt>0?le+ee:le+ee+1;Ze.projectionCache.cachedAnchorPoint?xr=Ze.projectionCache.cachedAnchorPoint:(xr=vt(Ze.tileAnchorPoint.x,Ze.tileAnchorPoint.y,Ze).point,Ze.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,qe=xr,et=0,Xe=0,it=Math.abs(Tt),Ft=[],Ht;for(;et+Xe<=it;){if(Ir+=Yt,Ir=Oe)return null;et+=Xe,qe=Re,be=ve;let Sr={absOffsetX:it,direction:Yt,distanceFromAnchor:et,previousVertex:qe};if(Re=ke(Ir,Ze,Sr),B===0)Ft.push(qe),Ht=Re.sub(qe);else{let Or,Wr=Re.sub(qe);Or=Wr.mag()===0?ir(ke(Ir+Yt,Ze,Sr).sub(Re),B,Yt):ir(Wr,B,Yt),be||(be=qe.add(Or)),ve=ar(Ir,Or,Re,le,Oe,be,B,Ze,Sr),Ft.push(be),Ht=ve.sub(be)}Xe=Ht.mag()}let tr=Ht._mult((it-et)/Xe)._add(be||qe),dr=Kt+Math.atan2(Re.y-qe.y,Re.x-qe.x);return Ft.push(tr),{point:tr,angle:st?dr:0,path:Ft}}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 pi(ue,w){for(let B=0;B=1;fa--)Cn.push(cn.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(Cn.length>0){let fa=Cn[0].clone(),$a=Cn[0].clone();for(let Co=1;Co=Wr.x&&$a.x<=ni.x&&fa.y>=Wr.y&&$a.y<=ni.y?[Cn]:$a.xni.x||$a.yni.y?[]:a.al([Cn],Wr.x,Wr.y,ni.x,ni.y)}for(let fa of Aa){Pi.reset(fa,.25*Or);let $a=0;$a=Pi.length<=.5*Or?1:Math.ceil(Pi.paddedLength/Kn)+1;for(let Co=0;Co<$a;Co++){let Qa=Co/Math.max($a-1,1),mo=Pi.lerp(Qa),Bo=mo.x+di,Ps=mo.y+di;qe.push(Bo,Ps,Or,0);let Ts=Bo-Or,wo=Ps-Or,To=Bo+Or,hl=Ps+Or;if(Sr=Sr&&this.isOffscreen(Ts,wo,To,hl),dr=dr||this.isInsideGrid(Ts,wo,To,hl),w!=="always"&&this.grid.hitTestCircle(Bo,Ps,Or,w,xr)&&(tr=!0,!Yt))return{circles:[],offscreen:!1,collisionDetected:tr}}}}return{circles:!Yt&&tr||!dr||Xedt(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,Oe=-1/0;for(let Yt of w){let Kt=new a.P(Yt.x+di,Yt.y+di);Q=Math.min(Q,Kt.x),ee=Math.min(ee,Kt.y),le=Math.max(le,Kt.x),Oe=Math.max(Oe,Kt.y),B.push(Kt)}let Ze=this.grid.query(Q,ee,le,Oe).concat(this.ignoredGrid.query(Q,ee,le,Oe)),st={},Tt={};for(let Yt of Ze){let Kt=Yt.key;if(st[Kt.bucketInstanceId]===void 0&&(st[Kt.bucketInstanceId]={}),st[Kt.bucketInstanceId][Kt.featureIndex])continue;let xr=[new a.P(Yt.x1,Yt.y1),new a.P(Yt.x2,Yt.y1),new a.P(Yt.x2,Yt.y2),new a.P(Yt.x1,Yt.y2)];a.am(B,xr)&&(st[Kt.bucketInstanceId][Kt.featureIndex]=!0,Tt[Kt.bucketInstanceId]===void 0&&(Tt[Kt.bucketInstanceId]=[]),Tt[Kt.bucketInstanceId].push(Kt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,Oe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:Oe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,Oe){let Ze=Q?this.ignoredGrid:this.grid,st={bucketInstanceId:ee,featureIndex:le,collisionGroupID:Oe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),tr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(tr),allPointsOccluded:!dr}}}function In(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wi{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 On{constructor(w,B,Q,ee,le){this.text=new wi(w?w.text:null,B,Q,le),this.icon=new wi(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 Fn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ra{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class la{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 Ut(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:Oe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(Oe-.5)*B+Q[1]*ee)}class wt{constructor(w,B,Q,ee,le,Oe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new ji(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new la(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Oe,Oe&&(Oe.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),Oe=Q.latestFeatureIndex;if(!le||!Oe||B.id!==le.layerIds[0])return;let Ze=Q.collisionBoxArray,st=le.layers[0].layout,Tt=le.layers[0].paint,Yt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Kt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Ir=this.transform.calculatePosMatrix(xr),ve=st.get("text-pitch-alignment")==="map",be=st.get("text-rotation-alignment")==="map",Re=In(Q,1,this.transform.zoom),qe=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),et=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),Xe=Br(Ir,ve,be,this.transform,Re),it=null;if(ve){let Ht=Vr(Ir,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ra(le.bucketInstanceId,Oe,le.sourceLayerIndex,le.index,Q.tileID);let Ft={bucket:le,layout:st,translationText:qe,translationIcon:et,posMatrix:Ir,unwrappedTileID:xr,textLabelPlaneMatrix:Xe,labelToScreenMatrix:it,scale:Yt,textPixelRatio:Kt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Ze,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Ft})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Ft})}attemptAnchorPlacement(w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve,be,Re,qe,et,Xe){let it=a.aq[w.textAnchor],Ft=[w.textOffset0,w.textOffset1],Ht=Ut(it,Q,ee,Ft,le),tr=this.collisionIndex.placeCollisionBox(B,xr,st,Tt,Yt,Ze,Oe,Re,Kt.predicate,Xe,Ht);if((!et||this.collisionIndex.placeCollisionBox(et,xr,st,Tt,Yt,Ze,Oe,qe,Kt.predicate,Xe,Ht).placeable)&&tr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Ir.crossTileID].anchor),Ir.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ir.crossTileID]={textOffset:Ft,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Ir,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Ir),this.placedOrientations[Ir.crossTileID]=be),{shift:Ht,placedGlyphBoxes:tr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:Oe,translationIcon:Ze,posMatrix:st,unwrappedTileID:Tt,textLabelPlaneMatrix:Yt,labelToScreenMatrix:Kt,textPixelRatio:xr,holdingForFade:Ir,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,qe=le.get("text-optional"),et=le.get("icon-optional"),Xe=a.ar(le,"text-overlap","text-allow-overlap"),it=Xe==="always",Ft=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Ft==="always",tr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",Wr=it&&(Ht||!ee.hasIconData()||et),ni=Ht&&(it||!ee.hasTextData()||qe);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Pi=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),cn=(ln,Cn,Kn)=>{var Aa,fa;if(B[ln.crossTileID])return;if(Ir)return void(this.placements[ln.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;Cn.textFeatureIndex?hl=Cn.textFeatureIndex:ln.useRuntimeCollisionCircles&&(hl=ln.featureIndex),Cn.verticalTextFeatureIndex&&(Ul=Cn.verticalTextFeatureIndex);let au=Cn.textBox;if(au){let Tl=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[ln.crossTileID];He&&(this.placedOrientations[ln.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,ln))}return Ne},Al=(Te,Ne)=>{if(ee.allowVerticalPlacement&&ln.numVerticalGlyphVertices>0&&Cn.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Ps=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=ln.textAnchorOffsetStartIndex,se=ln.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,Xe,xr,st,Tt,dr,tr,Oe,Re.predicate,Pi);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,ln),this.placedOrientations[ln.crossTileID]=He),Ye};Al(()=>Te(au,a.ah.horizontal),()=>{let Ne=Cn.verticalTextBox;return ee.allowVerticalPlacement&&ln.numVerticalGlyphVertices>0&&Ne?Te(Ne,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[ln.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,kt,nt)=>{let jt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=ln.textBoxScale,Hr=Sr&&Ft==="never"?kt:null,qr=null,_i=Xe==="never"?1:2,bi="never";Te&&_i++;for(let Zr=0;Zr<_i;Zr++){for(let ai=X;aiNe(au,Cn.iconBox,a.ah.horizontal),()=>{let Ye=Cn.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&ln.numVerticalGlyphVertices>0&&Ye?Ne(Ye,Cn.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[ln.crossTileID];Ye&&(this.variableOffsets[ln.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,ln,He))}}}if(Ts=Bo,$a=Ts&&Ts.placeable,Qa=Ts&&Ts.offscreen,ln.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(ln.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,be,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(Xe,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,st,Tt,Yt,Kt,Q,dr,Re.predicate,ln.collisionCircleDiameter,X,Oe,Pi),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(Cn.iconFeatureIndex&&(Lu=Cn.iconFeatureIndex),Cn.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,Ft,xr,st,Tt,dr,tr,Ze,Re.predicate,Pi,Sr&&mo?mo:void 0);Ps&&Ps.placeable&&Cn.verticalIconBox?(To=Tl(Cn.verticalIconBox),Co=To.placeable):(To=Tl(Cn.iconBox),Co=To.placeable),Qa=Qa&&To.offscreen}let Js=qe||ln.numHorizontalGlyphVertices===0&&ln.numVerticalGlyphVertices===0,eu=et||ln.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,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Ft,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,hl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,Cn,Ts,To,wo),ln.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[ln.crossTileID]=new qn($a||Wr,Co||ni,Qa||ee.justReloaded),B[ln.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let ln=ee.getSortedSymbolIndexes(this.transform.angle);for(let Cn=ln.length-1;Cn>=0;--Cn){let Kn=ln[Cn];cn(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let ln=w.symbolInstanceStart;ln=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,Oe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Ze of Oe)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:{},Oe=B?B.variableOffsets:{},Ze=B?B.placedOrientations:{};for(let st in this.placements){let Tt=this.placements[st],Yt=le[st];Yt?(this.opacities[st]=new On(Yt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Yt.text.placed||Tt.icon!==Yt.icon.placed):(this.opacities[st]=new On(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let st in le){let Tt=le[st];if(!this.opacities[st]){let Yt=new On(Tt,ee,!1,!1);Yt.isHidden()||(this.opacities[st]=Yt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let st in Oe)this.variableOffsets[st]||!this.opacities[st]||this.opacities[st].isHidden()||(this.variableOffsets[st]=Oe[st]);for(let st in Ze)this.placedOrientations[st]||!this.opacities[st]||this.opacities[st].isHidden()||(this.placedOrientations[st]=Ze[st]);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],Oe=le.layout,Ze=new On(null,0,!1,!1,!0),st=Oe.get("text-allow-overlap"),Tt=Oe.get("icon-allow-overlap"),Yt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Kt=Oe.get("text-rotation-alignment")==="map",xr=Oe.get("text-pitch-alignment")==="map",Ir=Oe.get("icon-text-fit")!=="none",ve=new On(null,0,st&&(Tt||!w.hasIconData()||Oe.get("icon-optional")),Tt&&(st||!w.hasTextData()||Oe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(qe,et,Xe)=>{for(let it=0;it0,dr=this.placedOrientations[et.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(Xe>0||it>0){let ni=tn(Ht.text);be(w.text,Xe,Sr?fn:ni),be(w.text,it,Or?fn:ni);let Pi=Ht.text.isHidden();[et.rightJustifiedTextSymbolIndex,et.centerJustifiedTextSymbolIndex,et.leftJustifiedTextSymbolIndex].forEach(Cn=>{Cn>=0&&(w.text.placedSymbolArray.get(Cn).hidden=Pi||Sr?1:0)}),et.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(et.verticalPlacedTextSymbolIndex).hidden=Pi||Or?1:0);let cn=this.variableOffsets[et.crossTileID];cn&&this.markUsedJustification(w,cn.anchor,et,dr);let ln=this.placedOrientations[et.crossTileID];ln&&(this.markUsedJustification(w,"left",et,ln),this.markUsedOrientation(w,ln,et))}if(tr){let ni=tn(Ht.icon),Pi=!(Ir&&et.verticalPlacedIconSymbolIndex&&Sr);et.placedIconSymbolIndex>=0&&(be(w.icon,et.numIconVertices,Pi?ni:fn),w.icon.placedSymbolArray.get(et.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),et.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,et.numVerticalIconVertices,Pi?fn:ni),w.icon.placedSymbolArray.get(et.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let Wr=Re&&Re.has(qe)?Re.get(qe):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ni=w.collisionArrays[qe];if(ni){let Pi=new a.P(0,0);if(ni.textBox||ni.verticalTextBox){let cn=!0;if(Yt){let ln=this.variableOffsets[Ft];ln?(Pi=Ut(ln.anchor,ln.width,ln.height,ln.textOffset,ln.textBoxScale),Kt&&Pi._rotate(xr?this.transform.angle:-this.transform.angle)):cn=!1}if(ni.textBox||ni.verticalTextBox){let ln;ni.textBox&&(ln=Sr),ni.verticalTextBox&&(ln=Or),rr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!cn||ln,Wr.text,Pi.x,Pi.y)}}if(ni.iconBox||ni.verticalIconBox){let cn=!!(!Or&&ni.verticalIconBox),ln;ni.iconBox&&(ln=cn),ni.verticalIconBox&&(ln=!cn),rr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,ln,Wr.icon,Ir?Pi.x:0,Ir?Pi.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 qe=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=qe.invProjMatrix,w.placementViewportMatrix=qe.viewportMatrix,w.collisionCircleArray=qe.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 rr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let Oe=Q[0]-di,Ze=Q[1]-di,st=Q[2]-di,Tt=Q[3]-di;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Oe,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,st,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,st,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Oe,Tt)}let nr=Math.pow(2,25),Er=Math.pow(2,24),Xr=Math.pow(2,17),ri=Math.pow(2,16),Qr=Math.pow(2,9),Oi=Math.pow(2,8),$i=Math.pow(2,1);function tn(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*nr+w*Er+B*Xr+w*ri+B*Qr+w*Oi+B*$i+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,Oe,Ze,st=!1){if(!Oe[0]&&!Oe[1])return[0,0];let Tt=st?Ze==="map"?ee.angle:0:Ze==="viewport"?-ee.angle:0;if(Tt){let Yt=Math.sin(Tt),Kt=Math.cos(Tt);Oe=[Oe[0]*Kt-Oe[1]*Yt,Oe[0]*Yt+Oe[1]*Kt]}return[st?Oe[0]:In(le,Oe[0],ee.zoom),st?Oe[1]:In(le,Oe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Sn{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 Oe=this._bucketParts;for(;this._currentTileIndexZe.sortKey-st.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Oe=B[w[this._currentPlacementIndex]],Ze=this.placement.collisionIndex.transform.zoom;if(Oe.type==="symbol"&&(!Oe.minzoom||Oe.minzoom<=Ze)&&(!Oe.maxzoom||Oe.maxzoom>Ze)){if(this._inProgressLayer||(this._inProgressLayer=new Sn(Oe)),this._inProgressLayer.continuePlacement(Q[Oe.source],this.placement,this._showCollisionBoxes,Oe,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(st.anchorX*ua),y:Math.floor(st.anchorY*ua)})),crossTileIDs:Oe.map(st=>st.crossTileID)};if(Ze.positions.length>128){let st=new a.av(Ze.positions.length,16,Uint16Array);for(let{x:Tt,y:Yt}of Ze.positions)st.add(Tt,Yt);st.finish(),delete Ze.positions,Ze.index=st}this._symbolsByKey[le]=Ze}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:Oe,y:Ze,z:st}=B.canonical,Tt=ua/Math.pow(2,st-le),Yt=(Ze*a.X+w.anchorY)*Tt,Kt=ee*a.X*ua;return{x:Math.floor((Oe*a.X+w.anchorX)*Tt-Q*a.X*ua),y:Math.floor(Yt-Kt)}}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 Oe in ee){let Ze=ee[Oe];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 Oe){let st=Oe[Ze];st.tileID.isChildOf(w)&&st.findMatches(B.symbolInstances,w,ee)}else{let Ze=Oe[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")),Wn=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 Ee(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 A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(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()),Qt().on(fr,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 Oe in this._layers){let Ze=this._layers[Oe];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(Oe=>{this._loadStyleRequest=null,this._load(Oe.data,B,Q)}).catch(Oe=>{this._loadStyleRequest=null,Oe&&!le.signal.aborted&&this.fire(new a.j(Oe))})}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(Wn,{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 Oe in le.sources)this.addSource(Oe,le.sources[Oe],{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,Oe,Ze,st){return a._(this,void 0,void 0,function*(){let Tt=C(le),Yt=Ze>1?"@2x":"",Kt={},xr={};for(let{id:Ir,url:ve}of Tt){let be=Oe.transformRequest(M(ve,Yt,".json"),"SpriteJSON");Kt[Ir]=a.h(be,st);let Re=Oe.transformRequest(M(ve,Yt,".png"),"SpriteImage");xr[Ir]=p.getImage(Re,st)}return yield Promise.all([...Object.values(Kt),...Object.values(xr)]),function(Ir,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Ir){be[Re]={};let qe=u.getImageCanvasContext((yield ve[Re]).data),et=(yield Ir[Re]).data;for(let Xe in et){let{width:it,height:Ft,x:Ht,y:tr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:Wr,content:ni,textFitWidth:Pi,textFitHeight:cn}=et[Xe];be[Re][Xe]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:Wr,content:ni,textFitWidth:Pi,textFitHeight:cn,spriteData:{width:it,height:Ft,x:Ht,y:tr,context:qe}}}}return be})}(Kt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let Oe in le){this._spritesImagesIds[Oe]=[];let Ze=this._spritesImagesIds[Oe]?this._spritesImagesIds[Oe].filter(st=>!(st in le)):[];for(let st of Ze)this.imageManager.removeImage(st),this._changedImages[st]=!0;for(let st in le[Oe]){let Tt=Oe==="default"?st:`${Oe}:${st}`;this._spritesImagesIds[Oe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[Oe][st],!1):this.imageManager.addImage(Tt,le[Oe][st]),B&&(this._changedImages[Tt]=!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 Oe=B?a.aB(Q[le]):Q[le];ee.push(Oe)}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 Oe in this._updatedSources){let Ze=this._updatedSources[Oe];if(Ze==="reload")this._reloadSource(Oe);else{if(Ze!=="clear")throw new Error(`Invalid action ${Ze}`);this._clearSource(Oe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Oe in this._updatedPaintProps)this._layers[Oe].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),Oe=this._getOperationsToPerform(le);if(Oe.unimplemented.length>0)throw new Error(`Unimplemented: ${Oe.unimplemented.join(", ")}.`);if(Oe.operations.length===0)return!1;for(let Ze of Oe.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 mt(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 Oe=B?this._order.indexOf(B):this._order.length;if(B&&Oe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(Oe,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 Oe=le.getSource().type;Oe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Oe!=="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,Oe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||Oe?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(Oe,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=Oe=>this._layers[Oe].type==="fill-extrusion",Q={},ee=[];for(let Oe=this._order.length-1;Oe>=0;Oe--){let Ze=this._order[Oe];if(B(Ze)){Q[Ze]=Oe;for(let st of w){let Tt=st[Ze];if(Tt)for(let Yt of Tt)ee.push(Yt)}}}ee.sort((Oe,Ze)=>Ze.intersectionZ-Oe.intersectionZ);let le=[];for(let Oe=this._order.length-1;Oe>=0;Oe--){let Ze=this._order[Oe];if(B(Ze))for(let st=ee.length-1;st>=0;st--){let Tt=ee[st].feature;if(Q[Tt.layer.id]{let dr=qe.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(tr.featureIndex)-Sr}return tr.featureIndex-Ht.featureIndex});for(let Ht of Ft)it.push(Ht)}}for(let qe in ve)ve[qe].forEach(et=>{let Xe=et.feature,it=Tt[Ze[qe].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=it});return ve}(this._layers,Oe,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 Oe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Ze=[],st={};for(let Tt=0;Ttxr.getTileByID(Ir)).sort((Ir,ve)=>ve.tileID.overscaledZ-Ir.tileID.overscaledZ||(Ir.tileID.isLessThan(ve.tileID)?-1:1))}let Kt=this.crossTileSymbolIndex.addLayer(Yt,st[Yt.source],w.center.lng);Oe=Oe||Kt}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,st),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Ze=!0),Oe&&this.pauseablePlacement.placement.setStale()),Ze||Oe)for(let Tt of this._order){let Yt=this._layers[Tt];Yt.type==="symbol"&&this.placement.updateLayerOpacities(Yt,st[Yt.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}],Oe=[...C(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",Oe,null,Q)||(this.stylesheet.sprite=Oe,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 jn={prelude:Mt(`#ifdef GL_ES +`),mapOnErrorMsg:"Map error."}});var eC=ye((nbr,OHe)=>{"use strict";var RHe=Dr(),DHe=ka().defaultLine,YWt=Cc().attributes,KWt=ec(),JWt=pf().textposition,$Wt=mc().overrideAll,QWt=vl().templatedArray,FHe=Px(),zHe=KWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});zHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var eXt=OHe.exports=$Wt({_arrayAttrRegexps:[RHe.counterRegex("map",".layers",!0)],domain:YWt({name:"map"}),style:{valType:"any",values:FHe.styleValuesMap,dflt:FHe.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:QWt("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:DHe},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:DHe}},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:zHe,textposition:RHe.extendFlat({},JWt,{arrayOk:!1})}})},"plot","from-root");eXt.uirevision={valType:"any",editType:"none"}});var l7=ye((abr,UHe)=>{"use strict";var{hovertemplateAttrs:tXt,texttemplateAttrs:rXt,templatefallbackAttrs:qHe}=Ll(),iXt=Pg(),tC=ew(),P5=pf(),BHe=eC(),nXt=Gl(),aXt=Tu(),dw=Ao().extendFlat,oXt=mc().overrideAll,sXt=eC(),NHe=tC.line,I5=tC.marker;UHe.exports=oXt({lon:tC.lon,lat:tC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},sXt.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({},I5.opacity,{dflt:1})},mode:dw({},P5.mode,{dflt:"markers"}),text:dw({},P5.text,{}),texttemplate:rXt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:qHe({editType:"plot"}),hovertext:dw({},P5.hovertext,{}),line:{color:NHe.color,width:NHe.width},connectgaps:P5.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:I5.opacity,size:I5.size,sizeref:I5.sizeref,sizemin:I5.sizemin,sizemode:I5.sizemode},aXt("marker")),fill:tC.fill,fillcolor:iXt(),textfont:BHe.layers.symbol.textfont,textposition:BHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:P5.selected.marker},unselected:{marker:P5.unselected.marker},hoverinfo:dw({},nXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:tXt(),hovertemplatefallback:qHe()},"calc","nested")});var CJ=ye((obr,VHe)=>{"use strict";var lXt=["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"];VHe.exports={isSupportedFont:function(e){return lXt.indexOf(e)!==-1}}});var jHe=ye((sbr,HHe)=>{"use strict";var rC=Dr(),LJ=Ru(),uXt=$p(),cXt=D0(),fXt=F0(),hXt=Fg(),GHe=l7(),dXt=CJ().isSupportedFont;HHe.exports=function(t,r,n,i){function a(p,k){return rC.coerce(t,r,GHe,p,k)}function o(p,k){return rC.coerce2(t,r,GHe,p,k)}var s=vXt(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"),LJ.hasMarkers(r)){uXt(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]))}LJ.hasLines(r)&&(cXt(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,_=a("cluster.enabled",v);if(_||LJ.hasText(r)){var b=i.font.family;fXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:dXt(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"&&hXt(t,r,n,a),rC.coerceSelectionMarkerOpacity(r,a)};function vXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var PJ=ye((lbr,XHe)=>{"use strict";var WHe=ho();XHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=WHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=WHe.tickText(o,o.c2l(s[1]),!0).text,i}});var IJ=ye((ubr,YHe)=>{"use strict";var ZHe=Dr();YHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=ZHe.isArrayOrTypedArray(r)?ZHe.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 tje=ye((cbr,eje)=>{"use strict";var $He=Eo(),ov=Dr(),pXt=fs().BADNUM,c7=cx(),KHe=tc(),gXt=So(),mXt=O3(),f7=Ru(),yXt=CJ().isSupportedFont,_Xt=IJ(),xXt=ip().appendArrayPointValue,bXt=Zl().NEWLINES,wXt=Zl().BR_TAG_ALL;eje.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=f7.hasLines(n),s=f7.hasMarkers(n),l=f7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=u7("fill"),d=u7("line"),v=u7("circle"),_=u7("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=c7.calcTraceToLineCoords(r)),a&&(h.geojson=c7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=c7.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=TXt(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":JHe(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)&&(_.geojson=AXt(r,t),ov.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,T=_Xt(n.textposition,E);ov.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":JHe(n)}),ov.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function u7(e){return{type:e,geojson:c7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function TXt(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(E){return t.opacity*E}function u(E){return E/2}var c;i&&(KHe.hasColorscale(t,"marker")?c=KHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=mXt(t));var h;o&&(h=function(E){var T=$He(E)?+ov.constrain(E,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"),yXt(s)||(s=r);var l=s.split(", ");return l}});var aje=ye((fbr,nje)=>{"use strict";var SXt=Dr(),rje=tje(),R5=Px().traceLayerPrefix,og={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function ije(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:R5+t+"-fill",line:R5+t+"-line",circle:R5+t+"-circle",symbol:R5+t+"-symbol",cluster:R5+t+"-cluster",clusterCount:R5+t+"-cluster-count"},this.below=null}var iC=ije.prototype;iC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&SXt.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])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var T=og.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?og.cluster:og.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};nje.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new ije(t,n.uid,i,a),s=rje(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 MXt=vf(),FJ=Dr(),EXt=gT(),kXt=FJ.fillText,CXt=fs().BADNUM,LXt=Px().traceLayerPrefix;function PXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=LXt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===CXt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=FJ.modHalf(g[0],360),A=g[1],z=s.project([P,A]),O=z.x-a.c2p([v,A]),U=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+U*U)-G,1-3/G)}if(MXt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[FJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+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=EXt(i,b),e.extraText=oje(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function oje(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)&&kXt(t,e,u),u.join("
")}sje.exports={hoverPoints:PXt,getExtraText:oje}});var uje=ye((dbr,lje)=>{"use strict";lje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var fje=ye((vbr,cje)=>{"use strict";var IXt=Dr(),RXt=Ru(),DXt=fs().BADNUM;cje.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!RXt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof zJ=="object"&&typeof OJ!="undefined"?OJ.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);",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,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ct){try{Ke(W.next(ct))}catch(Lt){fe(Lt)}}function Fe(ct){try{Ke(W.throw(ct))}catch(Lt){fe(Lt)}}function Ke(ct){var Lt;ct.done?te(ct.value):(Lt=ct.value,Lt instanceof F?Lt:new F(function(Jt){Jt(Lt)})).then(pe,Fe)}Ke((W=W.apply(R,S||[])).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,S){this.x=R,this.y=S}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,S){return this.clone()._rotateAround(R,S)},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 S=R.x-this.x,F=R.y-this.y;return S*S+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,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,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 S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.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,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,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,S){if(S===void 0&&(S=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:Fe=F,F=.5*(Fe-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.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,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let k=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function T(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let x=1;function C(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.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 A(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let U=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function j(R,S,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 Fe=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ct,Lt,Jt,cr,mr){let Pr=4*Math.max(-Lt,0),zr=(Math.max(0,Jt)-Jt)*cr*4+Pr,ui=4*cr,yi=Math.max(0,Lt),vn=Math.max(0,Jt);return{rect:{x:yi,y:vn,width:Math.min(ct.width,Lt+cr)-yi,height:Math.min(ct.height,Jt+mr)-vn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),Fe)for(let ct=0;ctO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Ce(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:Le},S)}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 ct=yield pe.blob();throw new ge(pe.status,pe.statusText,W.url,ct)}let Fe;Fe=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield Fe;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:Le},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var Fe;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ct in W.headers)Ke.setRequestHeader(ct,W.headers[ct]);W.type==="json"&&(Ke.responseType="text",!((Fe=W.headers)===null||Fe===void 0)&&Fe.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 ct=Ke.response;if(W.type==="json")try{ct=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ct,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ct=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new ge(Ke.status,Ke.statusText,W.url,ct))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Ee(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function Be(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class me extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class De{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return Be(S,F,this._listeners),Be(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let Fe of te)Fe.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let Fe of fe)Be(W,Fe,this._oneTimeListeners),Fe.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof me&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,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 je=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function lt(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return je.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let We=[Gt,_t,It,mt,er,ti,lr,Ge(wr),Br,Vr,dt];function tt(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!tt(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of We)if(!tt(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function xt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let ke=.96422,vt=.82521,ir=4/29,ar=6/29,vr=3*ar*ar,ii=ar*ar*ar,pi=Math.PI/180,$r=180/Math.PI;function di(R){return(R%=360)<0&&(R+=360),R}function ji([R,S,F,W]){let te,fe,pe=wi((.2225045*(R=In(R))+.7168786*(S=In(S))+.0606169*(F=In(F)))/1);R===S&&S===F?te=fe=pe:(te=wi((.4360747*R+.3850649*S+.1430804*F)/ke),fe=wi((.0139322*R+.0971045*S+.7141733*F)/vt));let Fe=116*pe-16;return[Fe<0?0:Fe,500*(te-pe),200*(pe-fe),W]}function In(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wi(R){return R>ii?Math.pow(R,1/3):R/vr+ir}function On([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*Fn(te),fe=ke*Fn(fe),pe=vt*Fn(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 Fn(R){return R>ar?R*R*R:vr*(R-ir)}function ra(R){return parseInt(R.padEnd(2,R),16)/255}function la(R,S){return Ut(S?R/100:R,0,1)}function Ut(R,S,F){return Math.min(Math.max(S,R),F)}function wt(R){return!R.some(Number.isNaN)}let rr={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 nr{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof nr)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=rr[W];if(te){let[pe,Fe,Ke]=te;return[pe/255,Fe/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,Fe=1;return[ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+=pe)),ra(W.slice(Fe,Fe+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[Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn]=pe,zi=[Lt||" ",mr||" ",ui].join("");if(zi===" "||zi===" /"||zi===",,"||zi===",,,"){let un=[ct,cr,zr].join(""),Tn=un==="%%%"?100:un===""?255:0;if(Tn){let pa=[Ut(+Ke/Tn,0,1),Ut(+Jt/Tn,0,1),Ut(+Pr/Tn,0,1),yi?la(+yi,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,Fe,Ke,ct,Lt,Jt,cr,mr,Pr]=fe,zr=[Ke||" ",Lt||" ",cr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+Fe,Ut(+ct,0,100),Ut(+Jt,0,100),mr?la(+mr,Pr):1];if(wt(ui))return function([yi,vn,zi,un]){function Tn(pa){let ro=(pa+yi/30)%12,Vo=vn*Math.min(zi,1-zi);return zi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=di(yi),vn/=100,zi/=100,[Tn(0),Tn(8),Tn(4),un]}(ui)}}}(S);return F?new nr(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=ji(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?di(Math.atan2(te,W)*$r):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ji(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}nr.black=new nr(0,0,0,1),nr.white=new nr(1,1,1,1),nr.transparent=new nr(0,0,0,0),nr.red=new nr(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Xr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Xr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class Qr{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Qr)return S;if(typeof S=="number")return new Qr([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new Qr(S)}}toString(){return JSON.stringify(this.values)}}let Oi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class $i{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $i)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,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 nr||R instanceof Er||R instanceof ri||R instanceof Qr||R instanceof $i||R instanceof tn)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Sn(R){if(R===null)return Gt;if(typeof R=="string")return It;if(typeof R=="boolean")return mt;if(typeof R=="number")return _t;if(R instanceof nr)return er;if(R instanceof Er)return Lr;if(R instanceof ri)return ti;if(R instanceof Qr)return Br;if(R instanceof $i)return dt;if(R instanceof tn)return Vr;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Sn(W);if(F){if(F===te)continue;F=wr;break}F=te}return Ge(F||wr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof nr||R instanceof ri||R instanceof Qr||R instanceof $i||R instanceof tn?R.toString():JSON.stringify(R)}class ua{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Sn(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(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:It,number:_t,boolean:mt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let Fe,Ke;if(S.length>2){let ct=S[1];if(typeof ct!="string"||!(ct in Wa)||ct==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);Fe=Wa[ct],te++}else Fe=wr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(Fe,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Xo={"to-boolean":mt,"to-color":er,"to-number":_t,"to-string":It};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[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")&&S.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 nr(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(S);let te=Qr.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(S);let te=$i.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(S),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 ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return tn.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["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"?Wn[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(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=nr.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new Qt,pe=[]){this.registry=S,this.path=W,this.key=W.map(Fe=>`[${Fe}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[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(S,this);if(!pe)return null;if(this.expectedType){let Fe=this.expectedType,Ke=pe.type;if(Fe.kind!=="string"&&Fe.kind!=="number"&&Fe.kind!=="boolean"&&Fe.kind!=="object"&&Fe.kind!=="array"||Ke.kind!=="value")if(Fe.kind!=="color"&&Fe.kind!=="formatted"&&Fe.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(Fe.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(Fe.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(Fe,Ke))return null}else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"coerce");else pe=W(pe,Fe,F.typeAnnotation||"assert")}if(!(pe instanceof ua)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let Fe=new Ha;try{pe=new ua(pe.type,pe.evaluate(Fe))}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(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new St(W,S))}checkSubtype(S,F){let W=tt(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.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(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Jr{constructor(S,F){this.type=mt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);return W&&te?xt(W.type,[mt,It,_t,Gt,wr])?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(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Sn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Sn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class vi{constructor(S,F,W){this.type=_t,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);if(!W||!te)return null;if(!xt(W.type,[mt,It,_t,Gt,wr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,_t);return fe?new vi(W,te,fe):null}return new vi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Sn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Sn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class hn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.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 ct=2;ctNumber.MAX_SAFE_INTEGER)return cr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return cr.error("Numeric branch labels must be integer values.");if(W){if(cr.checkSubtype(W,Sn(Pr)))return null}else W=Sn(Pr);if(fe[String(Pr)]!==void 0)return cr.error("Branch labels must be unique.");fe[String(Pr)]=pe.length}let mr=F.parse(Jt,ct,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let Fe=F.parse(S[1],1,wr);if(!Fe)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?Fe.type.kind!=="value"&&F.concat(1).checkSubtype(W,Fe.type)?null:new hn(W,te,Fe,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Sn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class An{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.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 Mn{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,_t);if(!W||!te)return null;if(!xt(W.type,[Ge(wr),It,wr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,_t);return fe?new Mn(W.type,W,te,fe):null}return new Mn(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Sn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function Li(R,S){let F=R.length-1,W,te,fe=0,pe=F,Fe=0;for(;fe<=pe;)if(Fe=Math.floor((fe+pe)/2),W=R[Fe],te=R[Fe+1],W<=S){if(Fe===F||SS))throw new ma("Input is not a number.");pe=Fe-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,_t);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=Fe)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ct);let Jt=F.parse(Ke,Lt,fe);if(!Jt)return null;fe=fe||Jt.type,te.push([Fe,Jt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[Li(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var $n=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,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,S){if(S===void 0&&(S=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:Fe=F,F=.5*(Fe-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya($n);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,Fe]=po(R.rgb,S.rgb,F);return new nr(te,fe,pe,Fe,!1)}case"hcl":{let[te,fe,pe,Fe]=R.hcl,[Ke,ct,Lt,Jt]=S.hcl,cr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?cr=NaN:(cr=Ke,pe!==1&&pe!==0||(mr=ct)):(cr=te,Lt!==1&&Lt!==0||(mr=fe));else{let vn=Ke-te;Ke>te&&vn>180?vn-=360:Ke180&&(vn+=360),cr=te+F*vn}let[Pr,zr,ui,yi]=function([vn,zi,un,Tn]){return vn=isNaN(vn)?0:vn*pi,On([un,Math.cos(vn)*zi,Math.sin(vn)*zi,Tn])}([cr,mr!=null?mr:No(fe,ct,F),No(pe,Lt,F),No(Fe,Jt,F)]);return new nr(Pr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,Fe]=On(po(R.lab,S.lab,F));return new nr(te,fe,pe,Fe,!1)}}},array:po,padding:function(R,S,F){return new Qr(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ct}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,_t),!fe)return null;let Fe=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=er:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ct=0;ct=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',cr);let Pr=F.parse(Jt,mr,Ke);if(!Pr)return null;Ke=Ke||Pr.type,Fe.push([Lt,Pr])}return xe(Ke,_t)||xe(Ke,er)||xe(Ke,Br)||xe(Ke,dt)||xe(Ke,Ge(_t))?new ko(Ke,W,te,fe,Fe):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=Li(F,te),Fe=ko.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ct=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ct,Fe);case"interpolate-hcl":return Lo.color(Ke,ct,Fe,"hcl");case"interpolate-lab":return Lo.color(Ke,ct,Fe,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Ds(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class Fs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.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 Fe of S.slice(1)){let Ke=F.parse(Fe,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(Fe=>tt(te,Fe.type));return new Fs(pe?wr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof tn&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ll(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function ul(R,S,F,W){return W.compare(S,F)===0}function zl(R,S,F){let W=R!=="=="&&R!=="!=";return class hje{constructor(fe,pe,Fe){this.type=mt,this.lhs=fe,this.rhs=pe,this.collator=Fe,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 Fe=fe[0],Ke=pe.parse(fe[1],1,wr);if(!Ke)return null;if(!ll(Fe,Ke.type))return pe.concat(1).error(`"${Fe}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ct=pe.parse(fe[2],2,wr);if(!ct)return null;if(!ll(Fe,ct.type))return pe.concat(2).error(`"${Fe}" comparisons are not supported for type '${Je(ct.type)}'.`);if(Ke.type.kind!==ct.type.kind&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ct.type)}'.`);W&&(Ke.type.kind==="value"&&ct.type.kind!=="value"?Ke=new Fa(ct.type,[Ke]):Ke.type.kind!=="value"&&ct.type.kind==="value"&&(ct=new Fa(Ke.type,[ct])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ct.type.kind!=="string"&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Lr),!Lt)return null}return new hje(Ke,ct,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),Fe=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Sn(pe),ct=Sn(Fe);if(Ke.kind!==ct.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}, ${ct.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Sn(pe),ct=Sn(Fe);if(Ke.kind!=="string"||ct.kind!=="string")return S(fe,pe,Fe)}return this.collator?F(fe,pe,Fe,this.collator.evaluate(fe)):S(fe,pe,Fe)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let us=zl("==",function(R,S,F){return S===F},ul),il=zl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!ul(0,S,F,W)}),As=zl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Ks=zl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),zs=zl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Lr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[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,mt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,mt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,It),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class ls{constructor(S,F,W,te,fe){this.type=It,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,_t);if(!W)return null;let te=S[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,It),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,It),!pe))return null;let Fe=null;if(te["min-fraction-digits"]&&(Fe=F.parse(te["min-fraction-digits"],1,_t),!Fe))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,_t),!Ke)?null:new ls(W,fe,pe,Fe,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Yl{constructor(S){this.type=ti,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[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<=S.length-1;++pe){let Fe=S[pe];if(fe&&typeof Fe=="object"&&!Array.isArray(Fe)){fe=!1;let Ke=null;if(Fe["font-scale"]&&(Ke=F.parse(Fe["font-scale"],1,_t),!Ke))return null;let ct=null;if(Fe["text-font"]&&(ct=F.parse(Fe["text-font"],1,Ge(It)),!ct))return null;let Lt=null;if(Fe["text-color"]&&(Lt=F.parse(Fe["text-color"],1,er),!Lt))return null;let Jt=te[te.length-1];Jt.scale=Ke,Jt.font=ct,Jt.textColor=Lt}else{let Ke=F.parse(S[pe],1,wr);if(!Ke)return null;let ct=Ke.type.kind;if(ct!=="string"&&ct!=="value"&&ct!=="null"&&ct!=="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(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Sn(W)===Vr?new Xr("",W,null,null,null):new Xr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Vr,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,It);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=tn.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=_t,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[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(S){let F=this.input.evaluate(S);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(Sn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let bs=8192;function Rn(R,S){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,S.z);return[Math.round(F*te*bs),Math.round(W*te*bs)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/bs+S.x)/F,360*te-180),(W=(R[1]/bs+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function Ol(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[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,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Ns(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=Fe[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,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&Fe<0||pe<0&&Fe>0}function ql(R,S,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(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Fe of R)for(let Ke of Fe){let ct=[Ke.x+fe[0],Ke.y+fe[1]];Do(ct,S,F,te),pe.push(ct)}return pe}function Vf(R,S,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Ke of R){let ct=[];for(let Lt of Ke){let Jt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Jt),ct.push(Jt)}pe.push(ct)}if(S[2]-S[0]<=te/2){(Fe=S)[0]=Fe[1]=1/0,Fe[2]=Fe[3]=-1/0;for(let Ke of pe)for(let ct of Ke)Do(ct,S,F,te)}var Fe;return pe}class pl{constructor(S,F){this.type=mt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:Fe}=fe.geometry;pe==="Polygon"&&te.push(Fe),pe==="MultiPolygon"&&te.push(...Fe)}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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.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 Fe=ql(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!Hl(ct,Fe))return!1}if(W.type==="MultiPolygon"){let Fe=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!ac(ct,Fe))return!1}return!0}(S,this.geometries);if(S.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 Fe=ql(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!aa(ct,Fe))return!1}if(W.type==="MultiPolygon"){let Fe=Pc(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!Ol(te,fe))return!1;for(let ct of Ke)if(!Oo(ct,Fe))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,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],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Jl(R,S,F,W,te){Os(R,S,F,W||R.length-1,te||oc)}function Os(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,Fe=Math.log(fe),Ke=.5*Math.exp(2*Fe/3),ct=.5*Math.sqrt(Fe*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);Os(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ct)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ct)),te)}var Lt=R[S],Jt=F,cr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Jt0;)cr--}te(R[F],Lt)===0?yu(R,F,cr):yu(R,++cr,W),cr<=S&&(F=cr+1),S<=cr&&(W=cr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){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),S>1)for(let fe=0;fe1?(ct=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ct+=Jt/this.kx*mr,Lt+=cr/this.ky*mr)),Jt=this.wrap(F[0]-ct)*this.kx,cr=(F[1]-Lt)*this.ky;let Pr=Jt*Jt+cr*cr;Pr180;)S-=360;return S}}function $l(R,S){return S[0]-R[0]}function fl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=fl(R);if(S){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,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function Hs(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function ps(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(Ol(te,fe)){if(sd(R,S))return 0}else if(sd(S,R))return 0;let pe=1/0;for(let Fe of R)for(let Ke=0,ct=Fe.length,Lt=ct-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ct=Ke[1],Lt=S?50:100;if(fl(ct)<=Lt){if(!lc(ct,R.length))return NaN;if(S){let Jt=Po(R,ct,F,W);if(isNaN(Jt)||Jt===0)return Jt;fe=Math.min(fe,Jt)}else for(let Jt=ct[0];Jt<=ct[1];++Jt){let cr=od(R[Jt],F,W);if(fe=Math.min(fe,cr),fe===0)return 0}}else{let Jt=Fu(ct,S);Pa(pe,fe,W,R,Fe,Jt[0]),Pa(pe,fe,W,R,Fe,Jt[1])}}return fe}function bl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let Fe=new Zc([[0,[0,R.length-1],[0,F.length-1]]],$l);for(;Fe.length>0;){let Ke=Fe.pop();if(Ke[0]>=pe)continue;let ct=Ke[1],Lt=Ke[2],Jt=S?50:100,cr=W?50:100;if(fl(ct)<=Jt&&fl(Lt)<=cr){if(!lc(ct,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ct,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Pr=R.slice(ct[0],ct[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Pr=F.slice(Lt[0],Lt[1]+1);for(let zr=ct[0];zr<=ct[1];++zr)if(mr=uc(R[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=qs(R,ct,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ct,S),Pr=Fu(Lt,W);af(Fe,pe,te,R,F,mr[0],Pr[0]),af(Fe,pe,te,R,F,mr[0],Pr[1]),af(Fe,pe,te,R,F,mr[1],Pr[0]),af(Fe,pe,te,R,F,mr[1],Pr[1])}}return pe}function Hf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=_t,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[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(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.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]),Fe=1/0;for(let Ke of W){switch(Ke.type){case"Point":Fe=Math.min(Fe,bl(fe,!1,[Ke.coordinates],!1,pe,Fe));break;case"LineString":Fe=Math.min(Fe,bl(fe,!1,Ke.coordinates,!0,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Hu(fe,!1,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries);if(S.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]),Fe=1/0;for(let Ke of W){switch(Ke.type){case"Point":Fe=Math.min(Fe,bl(fe,!0,[Ke.coordinates],!1,pe,Fe));break;case"LineString":Fe=Math.min(Fe,bl(fe,!0,Ke.coordinates,!0,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Hu(fe,!0,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries);if(S.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(ct=>ct.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Gf(fe[0][0][0][1]),Fe=1/0;for(let Ke of W)for(let ct of fe){switch(Ke.type){case"Point":Fe=Math.min(Fe,Hu([Ke.coordinates],!1,ct,pe,Fe));break;case"LineString":Fe=Math.min(Fe,Hu(Ke.coordinates,!0,ct,pe,Fe));break;case"Polygon":Fe=Math.min(Fe,Ko(ct,Ke.coordinates,pe,Fe))}if(Fe===0)return Fe}return Fe}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let yf={"==":us,"!=":il,">":cl,"<":As,">=":zs,"<=":Ks,array:Fa,at:kr,boolean:Fa,case:An,coalesce:Fs,collator:Io,format:Yl,image:Su,in:Jr,"index-of":vi,interpolate:ko,"interpolate-hcl":ko,"interpolate-lab":ko,length:nc,let:jn,literal:ua,match:hn,number:Fa,"number-format":ls,object:Fa,slice:Mn,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:Mt,within:pl,distance:Ic};class Bl{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[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,Fe=pe.filter(([ct])=>!Array.isArray(ct)||ct.length===S.length-1),Ke=null;for(let[ct,Lt]of Fe){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Jt=[],cr=!1;for(let mr=1;mr{return cr=Jt,Array.isArray(cr)?`(${cr.map(Je).join(", ")})`:`(${Je(cr.type)}...)`;var cr}).join(" | "),Lt=[];for(let Jt=1;Jt{F=S?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 S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof Bl&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function jf(R,S){if(R instanceof Bl&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!jf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(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,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?nr.parse:Qr.parse;(R=$e({},R)).stops&&(R.stops=R.stops.map(Jt=>[Jt[0],Lt(Jt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let Fe,Ke,ct;if(fe==="exponential")Fe=ih;else if(fe==="interval")Fe=Mu;else if(fe==="categorical"){Fe=Sh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ct=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);Fe=js}if(W){let Lt={},Jt=[];for(let Pr=0;PrPr[0]),evaluate:({zoom:Pr},zr)=>ih({stops:cr,base:R.base},S,Pr).evaluate(Pr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:ko.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Jt=>Jt[0]),evaluate:({zoom:Jt})=>Fe(R,S,Jt,Ke,ct)}}return{kind:"source",evaluate(Lt,Jt){let cr=Jt&&Jt.properties?Jt.properties[R.property]:void 0;return cr===void 0?sf(R.default,S.default):Fe(R,S,cr,Ke,ct)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function Sh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(gs(F)!=="number")return sf(R.default,S.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=Li(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(gs(F)!=="number")return sf(R.default,S.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=Li(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Jt,cr,mr){let Pr=mr-cr,zr=Lt-cr;return Pr===0?0:Jt===1?zr/Pr:(Math.pow(Jt,zr)-1)/(Math.pow(Jt,Pr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),Fe=R.stops[fe][1],Ke=R.stops[fe+1][1],ct=Lo[S.type]||Wh;return typeof Fe.evaluate=="function"?{evaluate(...Lt){let Jt=Fe.evaluate.apply(void 0,Lt),cr=Ke.evaluate.apply(void 0,Lt);if(Jt!==void 0&&cr!==void 0)return ct(Jt,cr,pe,R.colorSpace)}}:ct(Fe,Ke,pe,R.colorSpace)}function js(R,S,F){switch(S.type){case"color":F=nr.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=tn.fromString(F.toString());break;case"padding":F=Qr.parse(F);break;default:gs(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}Bl.register(yf,{error:[{kind:"error"},[It],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[It,[wr],(R,[S])=>Je(Sn(S.evaluate(R)))],"to-rgba":[Ge(_t,4),[er],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[er,[_t,_t,_t],Ah],rgba:[er,[_t,_t,_t,_t],Ah],has:{type:mt,overloads:[[[It],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[It,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:wr,overloads:[[[It],(R,[S])=>_f(S.evaluate(R),R.properties())],[[It,lr],(R,[S,F])=>_f(S.evaluate(R),F.evaluate(R))]]},"feature-state":[wr,[It],(R,[S])=>_f(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[It,[],R=>R.geometryType()],id:[wr,[],R=>R.id()],zoom:[_t,[],R=>R.globals.zoom],"heatmap-density":[_t,[],R=>R.globals.heatmapDensity||0],"line-progress":[_t,[],R=>R.globals.lineProgress||0],accumulated:[wr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[_t,Yc(_t),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[_t,Yc(_t),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:_t,overloads:[[[_t,_t],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[_t],(R,[S])=>-S.evaluate(R)]]},"/":[_t,[_t,_t],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[_t,[_t,_t],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[_t,[],()=>Math.LN2],pi:[_t,[],()=>Math.PI],e:[_t,[],()=>Math.E],"^":[_t,[_t,_t],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[_t,[_t],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))],log2:[_t,[_t],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[_t,[_t],(R,[S])=>Math.sin(S.evaluate(R))],cos:[_t,[_t],(R,[S])=>Math.cos(S.evaluate(R))],tan:[_t,[_t],(R,[S])=>Math.tan(S.evaluate(R))],asin:[_t,[_t],(R,[S])=>Math.asin(S.evaluate(R))],acos:[_t,[_t],(R,[S])=>Math.acos(S.evaluate(R))],atan:[_t,[_t],(R,[S])=>Math.atan(S.evaluate(R))],min:[_t,Yc(_t),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[_t,Yc(_t),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[_t,[_t],(R,[S])=>Math.abs(S.evaluate(R))],round:[_t,[_t],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[_t,[_t],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[_t,[_t],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[mt,[It,wr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[mt,[wr],(R,[S])=>R.id()===S.value],"filter-type-==":[mt,[It],(R,[S])=>R.geometryType()===S.value],"filter-<":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[mt,[It,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[mt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[mt,[wr],(R,[S])=>S.value in R.properties()],"filter-has-id":[mt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[mt,[Ge(It)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[mt,[Ge(wr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[mt,[It,Ge(wr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[mt,[It,Ge(wr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let Fe=fe+pe>>1;if(te[Fe]===W)return!0;te[Fe]>W?pe=Fe-1:fe=Fe+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:mt,overloads:[[[mt,mt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(mt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:mt,overloads:[[[mt,mt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(mt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[mt,[mt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[mt,[It],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[It,[It],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[It,[It],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[It,Yc(wr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[It,[Lr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ha,this._defaultValue=F?(W=F).type==="color"&&Wf(W.default)?new nr(0,0,0,0):W.type==="color"?nr.parse(W.default)||null:W.type==="padding"?Qr.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?$i.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,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(S,F,W,te,fe,pe){this._evaluator.globals=S,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 Fe=this.expression.evaluate(this._evaluator);if(Fe==null||typeof Fe=="number"&&Fe!=Fe)return this._defaultValue;if(this._enumValues&&!(Fe 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(Fe)} instead.`);return Fe}catch(Fe){return this._warningHistory[Fe.message]||(this._warningHistory[Fe.message]=!0,typeof console!="undefined"&&console.warn(Fe.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in yf}function ks(R,S){let F=new vo(yf,eh,[],S?function(te){let fe={color:er,string:It,number:_t,enum:It,boolean:mt,formatted:ti,padding:Br,resolvedImage:Vr,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||wr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class hu{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?ko.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Nl(S))return of([new St("","data expressions not supported")]);let fe=jf(W,["zoom"]);if(!fe&&!Kc(S))return of([new St("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof St?of([pe]):pe instanceof ko&&!Rc(S)?of([new St("",'"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)):of([new St("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class nl{constructor(S,F){this._parameters=S,this._specification=F,$e(this,rh(this._parameters,this._specification))}static deserialize(S){return new nl(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof Fs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof ko)&&R.input instanceof Bl&&R.input.name==="zoom"&&(S=R);return S instanceof St||R.eachChild(F=>{let W=nh(F);W instanceof St?S=W:!S&&W?S=new St("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new St("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}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 S of R.slice(1))if(!Mh(S)&&typeof S!="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 S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Pf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(xf))):S==="all"?["all"].concat(R.slice(1).map(xf)):S==="none"?["all"].concat(R.slice(1).map(xf).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?bf(R[1]):S!=="!has"||jl(bf(R[1]));var F}function Pf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}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 lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new fr(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function wf(R){let S=R.valueSpec,F=Cs(R.value.type),W,te,fe,pe={},Fe=F!=="categorical"&&R.value.property===void 0,Ke=!Fe,ct=gs(R.value.stops)==="array"&&gs(R.value.stops[0])==="array"&&gs(R.value.stops[0][0])==="object",Lt=ku({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new fr(mr.key,mr.value,'identity function may not have a "stops" property')];let Pr=[],zr=mr.value;return Pr=Pr.concat(Xf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Jt})),gs(zr)==="array"&&zr.length===0&&Pr.push(new fr(mr.key,zr,"array must have at least one stop")),Pr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&Fe&&Lt.push(new fr(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new fr(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new fr(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Nl(R.valueSpec)?Lt.push(new fr(R.key,R.value,"property functions not supported")):Fe&&!Kc(R.valueSpec)&&Lt.push(new fr(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ct||R.value.property!==void 0||Lt.push(new fr(R.key,R.value,'"property" property is required')),Lt;function Jt(mr){let Pr=[],zr=mr.value,ui=mr.key;if(gs(zr)!=="array")return[new fr(ui,zr,`array expected, ${gs(zr)} found`)];if(zr.length!==2)return[new fr(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ct){if(gs(zr[0])!=="object")return[new fr(ui,zr,`object expected, ${gs(zr[0])} found`)];if(zr[0].zoom===void 0)return[new fr(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new fr(ui,zr,"object stop key must have value")];if(fe&&fe>Cs(zr[0].zoom))return[new fr(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Cs(zr[0].zoom)!==fe&&(fe=Cs(zr[0].zoom),te=void 0,pe={}),Pr=Pr.concat(ku({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Us,value:cr}}))}else Pr=Pr.concat(cr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(du(zr[1]))?Pr.concat([new fr(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Pr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function cr(mr,Pr){let zr=gs(mr.value),ui=Cs(mr.value),yi=mr.value!==null?mr.value:Pr;if(W){if(zr!==W)return[new fr(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new fr(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let vn=`number expected, ${zr} found`;return Nl(S)&&F===void 0&&(vn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fr(mr.key,yi,vn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew fr(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new fr(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 fr(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new fr(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 fr(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new fr(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Cs(F))===-1&&te.push(new fr(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Cs(F))===-1&&te.push(new fr(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function Rf(R){return Mh(du(R.value))?zc($e({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(gs(S)!=="array")return[new fr(F,S,`array expected, ${gs(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new fr(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Cs(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Cs(S[1])==="$type"&&fe.push(new fr(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new fr(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=gs(S[1]),te!=="string"&&fe.push(new fr(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ct in F&&S.push(new fr(W,F[ct],`"${ct}" is prohibited for ref layers`))}),te.layers.forEach(ct=>{Cs(ct.id)===Fe&&(Ke=ct)}),Ke?Ke.ref?S.push(new fr(W,F.ref,"ref cannot reference another ref layer")):pe=Cs(Ke.type):S.push(new fr(W,F.ref,`ref layer "${Fe}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ct=Ke&&Cs(Ke.type);Ke?ct==="vector"&&pe==="raster"?S.push(new fr(W,F.source,`layer "${F.id}" requires a raster source`)):ct!=="raster-dem"&&pe==="hillshade"?S.push(new fr(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ct==="raster"&&pe!=="raster"?S.push(new fr(W,F.source,`layer "${F.id}" requires a vector source`)):ct!=="vector"||F["source-layer"]?ct==="raster-dem"&&pe!=="hillshade"?S.push(new fr(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ct==="geojson"&&Ke.lineMetrics||S.push(new fr(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new fr(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new fr(W,F.source,`source "${F.source}" not found`))}else S.push(new fr(W,F,'missing required property "source"'));return S=S.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:{"*":ct=>Wl($e({layerType:pe},ct))}}),paint:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ct=>Zf($e({layerType:pe},ct))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=gs(S);return W!=="string"?[new fr(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(gs(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new fr(F,S,'"type" is required')];let pe=Cs(S.type),Fe;switch(pe){case"vector":case"raster":return Fe=ku({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),Fe;case"raster-dem":return Fe=function(Ke){var ct;let Lt=(ct=Ke.sourceName)!==null&&ct!==void 0?ct:"",Jt=Ke.value,cr=Ke.styleSpec,mr=cr.source_raster_dem,Pr=Ke.style,zr=[],ui=gs(Jt);if(Jt===void 0)return zr;if(ui!=="object")return zr.push(new fr("source_raster_dem",Jt,`object expected, ${ui} found`)),zr;let yi=Cs(Jt.encoding)==="custom",vn=["redFactor","greenFactor","blueFactor","baseShift"],zi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let un in Jt)!yi&&vn.includes(un)?zr.push(new fr(un,Jt[un],`In "${Lt}": "${un}" is only valid when "encoding" is set to "custom". ${zi} encoding found`)):mr[un]?zr=zr.concat(Ke.validateSpec({key:un,value:Jt[un],valueSpec:mr[un],validateSpec:Ke.validateSpec,style:Pr,styleSpec:cr})):zr.push(new fr(un,Jt[un],`unknown property "${un}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),Fe;case"geojson":if(Fe=ku({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ct,Lt]=S.clusterProperties[Ke],Jt=typeof ct=="string"?[ct,["accumulated"],["get",Ke]]:ct;Fe.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),Fe.push(...zc({key:`${F}.${Ke}.reduce`,value:Jt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return Fe;case"video":return ku({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return ku({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new fr(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:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=gs(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new fr("light",S,`object expected, ${pe} found`)]),fe;for(let Fe in S){let Ke=Fe.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:Fe,value:S[Fe],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)])}return fe}function vu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=gs(S);if(S===void 0)return[];if(fe!=="object")return[new fr("sky",S,`object expected, ${fe} found`)];let pe=[];for(let Fe in S)pe=pe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=gs(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new fr("terrain",S,`object expected, ${pe} found`)]),fe;for(let Fe in S)fe=fe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);return fe}function cf(R){let S=[],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)&&S.push(new fr(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)&&S.push(new fr(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(ku({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Xf,boolean:function(R){let S=R.value,F=R.key,W=gs(S);return W!=="boolean"?[new fr(F,S,`boolean expected, ${W} found`)]:[]},number:Us,color:function(R){let S=R.key,F=R.value,W=gs(F);return W!=="string"?[new fr(S,F,`color expected, ${W} found`)]:nr.parse(String(F))?[]:[new fr(S,F,`color expected, "${F}" found`)]},constants:If,enum:Wu,filter:Rf,function:wf,layer:ah,object:ku,source:Tc,light:wl,sky:vu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=gs(S);if(S===void 0)return[];if(fe!=="object")return[new fr("projection",S,`object expected, ${fe} found`)];let pe=[];for(let Fe in S)pe=pe.concat(W[Fe]?R.validateSpec({key:Fe,value:S[Fe],valueSpec:W[Fe],style:te,styleSpec:F}):[new fr(Fe,S[Fe],`unknown property "${Fe}"`)]);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 S=R.key,F=R.value;if(gs(F)==="array"){if(F.length<1||F.length>4)return[new fr(S,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:S,validateSpec:Bc}))),Ar(F)}function Cr(R){return function(S){return R(j1(_g({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(Cr(Tc)),Xt.sprite=Kr(Cr(cf)),Xt.glyphs=Kr(Cr(At)),Xt.light=Kr(Cr(wl)),Xt.sky=Kr(Cr(vu)),Xt.terrain=Kr(Cr(qc)),Xt.layer=Kr(Cr(ah)),Xt.filter=Kr(Cr(Rf)),Xt.paintProperty=Kr(Cr(Zf)),Xt.layoutProperty=Kr(Cr(Wl));let ki=Xt,Xi=ki.light,dn=ki.sky,wn=ki.paintProperty,Nn=ki.layoutProperty;function Yi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new me(new Error(W.message))),F=!0;return F}class Qi{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Jt[Pr+0]&&te>=Jt[Pr+1])?(Fe[mr]=!0,pe.push(Lt[mr])):Fe[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,Fe,Ke){let ct=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Jt=this._convertToCellCoord(W),cr=this._convertToCellCoord(te);for(let mr=ct;mr<=Jt;mr++)for(let Pr=Lt;Pr<=cr;Pr++){let zr=this.d*Pr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Pr+1)))&&fe.call(this,S,F,W,te,zr,pe,Fe,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=on[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}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 Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=Ca(R)||"Object";if(!on[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=on[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);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]=on[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,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 S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!as(S.charCodeAt(0)))return!1;return!0}function Zo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.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(S){return!!(Dn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||Dn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||Dn["Letterlike Symbols"](S)||Dn["Number Forms"](S)||Dn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||Dn["Control Pictures"](S)&&S!==9251||Dn["Optical Character Recognition"](S)||Dn["Enclosed Alphanumerics"](S)||Dn["Geometric Shapes"](S)||Dn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||Dn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||Dn["CJK Symbols and Punctuation"](S)||Dn.Katakana(S)||Dn["Private Use Area"](S)||Dn["CJK Compatibility Forms"](S)||Dn["Small Form Variants"](S)||Dn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===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,S){return!(!S&&Ls(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||Dn.Khmer(R))}function no(R){for(let S of R)if(Ls(S.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(S,F){this.zoom=S,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 Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,ys.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class Ql{constructor(S,F){this.property=S,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=nr.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=$i.parse(W)):fe=Qr.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class Cu{constructor(S){this.property=S,this.value=new Ql(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new Cu(this._values[S].property)),this._values[S].value=new Ql(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new Cu(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new pu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,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 ct=Ke*Ke,Lt=ct*Ke;return 4*(Ke<.5?Lt:3*(Ke-ct)+Lt-.75)}(Fe))}}return fe}}class pu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new Ql(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,Fe=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:Fe},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let Fe=S.evaluate(F,W,te,fe,pe);return this._calculate(Fe,Fe,Fe,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new rs(Math.floor(F.zoom-1),F)),S.expression.evaluate(new rs(Math.floor(F.zoom),F)),S.expression.evaluate(new rs(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[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",Ua),Fi("CrossFadedDataDrivenProperty",Vc),Fi("CrossFadedProperty",hc),Fi("ColorRampProperty",Ku);let w="-transition";class B extends De{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Nn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(wn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),Fe=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,Fe,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={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&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Yi(this,S.call(ki,{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 S in this.paint._values){let F=this.paint.get(S);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(S,F){this._structArray=S,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(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.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(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,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 Oe(R,S=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(S,fe)),Fe=te.components||1;return W=Math.max(W,fe),F+=fe*Fe,{name:te.name,type:te.type,components:Fe,offset:pe}}),size:Ze(F,Math.max(W,S)),alignment:S}}function Ze(R,S){return Math.ceil(R/S)*S}class st extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}st.prototype.bytesPerElement=4,Fi("StructArrayLayout2i4",st);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Fi("StructArrayLayout3i6",Tt);class Yt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Yt.prototype.bytesPerElement=8,Fi("StructArrayLayout4i8",Yt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=6*S;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]=Fe,S}}Kt.prototype.bytesPerElement=12,Fi("StructArrayLayout2i4i12",Kt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=4*S,ct=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ct+4]=te,this.uint8[ct+5]=fe,this.uint8[ct+6]=pe,this.uint8[ct+7]=Fe,S}}xr.prototype.bytesPerElement=8,Fi("StructArrayLayout2i4ub8",xr);class Ir extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Ir.prototype.bytesPerElement=8,Fi("StructArrayLayout2f8",Ir);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=this.length;return this.resize(Jt+1),this.emplace(Jt,S,F,W,te,fe,pe,Fe,Ke,ct,Lt)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt){let cr=10*S;return this.uint16[cr+0]=F,this.uint16[cr+1]=W,this.uint16[cr+2]=te,this.uint16[cr+3]=fe,this.uint16[cr+4]=pe,this.uint16[cr+5]=Fe,this.uint16[cr+6]=Ke,this.uint16[cr+7]=ct,this.uint16[cr+8]=Lt,this.uint16[cr+9]=Jt,S}}ve.prototype.bytesPerElement=20,Fi("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr){let Pr=12*S;return this.int16[Pr+0]=F,this.int16[Pr+1]=W,this.int16[Pr+2]=te,this.int16[Pr+3]=fe,this.uint16[Pr+4]=pe,this.uint16[Pr+5]=Fe,this.uint16[Pr+6]=Ke,this.uint16[Pr+7]=ct,this.int16[Pr+8]=Lt,this.int16[Pr+9]=Jt,this.int16[Pr+10]=cr,this.int16[Pr+11]=mr,S}}be.prototype.bytesPerElement=24,Fi("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Fi("StructArrayLayout3f12",Re);class qe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}qe.prototype.bytesPerElement=4,Fi("StructArrayLayout1ul4",qe);class et 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(S,F,W,te,fe,pe,Fe,Ke,ct){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,Fe,Ke,ct)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=10*S,cr=5*S;return this.int16[Jt+0]=F,this.int16[Jt+1]=W,this.int16[Jt+2]=te,this.int16[Jt+3]=fe,this.int16[Jt+4]=pe,this.int16[Jt+5]=Fe,this.uint32[cr+3]=Ke,this.uint16[Jt+8]=ct,this.uint16[Jt+9]=Lt,S}}et.prototype.bytesPerElement=20,Fi("StructArrayLayout6i1ul2ui20",et);class Xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=6*S;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]=Fe,S}}Xe.prototype.bytesPerElement=12,Fi("StructArrayLayout2i2i2i12",Xe);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let Fe=4*S,Ke=8*S;return this.float32[Fe+0]=F,this.float32[Fe+1]=W,this.float32[Fe+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Fi("StructArrayLayout2f1f2i16",it);class Ft extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,Fe){let Ke=16*S,ct=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ct+1]=te,this.float32[ct+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=Fe,S}}Ft.prototype.bytesPerElement=16,Fi("StructArrayLayout2ub2f2i16",Ft);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Fi("StructArrayLayout3ui6",Ht);class tr 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(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi){let vn=this.length;return this.resize(vn+1),this.emplace(vn,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn){let zi=24*S,un=12*S,Tn=48*S;return this.int16[zi+0]=F,this.int16[zi+1]=W,this.uint16[zi+2]=te,this.uint16[zi+3]=fe,this.uint32[un+2]=pe,this.uint32[un+3]=Fe,this.uint32[un+4]=Ke,this.uint16[zi+10]=ct,this.uint16[zi+11]=Lt,this.uint16[zi+12]=Jt,this.float32[un+7]=cr,this.float32[un+8]=mr,this.uint8[Tn+36]=Pr,this.uint8[Tn+37]=zr,this.uint8[Tn+38]=ui,this.uint32[un+10]=yi,this.int16[zi+22]=vn,S}}tr.prototype.bytesPerElement=48,Fi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tr);class dr 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(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr,ui,yi,vn,zi,un,Tn,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=Fe,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ct,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Jt,this.uint16[Xn+10]=cr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Pr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=vn,this.uint16[Xn+17]=zi,this.uint16[Xn+18]=un,this.uint16[Xn+19]=Tn,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Fi("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Fi("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Fi("StructArrayLayout1ui2f12",Or);class Wr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}Wr.prototype.bytesPerElement=8,Fi("StructArrayLayout1ul2ui8",Wr);class ni extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ni.prototype.bytesPerElement=4,Fi("StructArrayLayout2ui4",ni);class Pi extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Pi.prototype.bytesPerElement=2,Fi("StructArrayLayout1ui2",Pi);class cn extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}cn.prototype.bytesPerElement=16,Fi("StructArrayLayout4f16",cn);class ln 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)}}ln.prototype.size=20;class Cn extends et{get(S){return new ln(this,S)}}Fi("CollisionBoxArray",Cn);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(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends tr{get(S){return new Kn(this,S)}}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(S){this._structArray.uint32[this._pos4+12]=S}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 dr{get(S){return new fa(this,S)}}Fi("SymbolInstanceArray",$a);class Co extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Fi("GlyphOffsetArray",Co);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+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 Or{get(S){return new mo(this,S)}}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 Wr{get(S){return new Ps(this,S)}}Fi("FeatureIndexArray",Ts);class wo extends st{}class To extends st{}class hl extends st{}class Ul extends Kt{}class Lu extends xr{}class au extends Ir{}class Js extends ve{}class eu extends be{}class dc extends Re{}class Tl extends qe{}class Al extends Xe{}class X extends Ft{}class se extends Ht{}class Te extends ni{}let Ne=Oe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>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 S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function kt(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fi("SegmentVector",Ye);let nt=Oe([{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 jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,Fe,Ke,ct;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,Fe=461845907,ct=0;ct>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Fe+(((Ke>>>16)*Fe&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(ct+2))<<16;case 2:Ke^=(255&R.charCodeAt(ct+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ct)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Fe+(((Ke>>>16)*Fe&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 yr=gr.exports,Hr={exports:{}};Hr.exports=function(R,S){for(var F,W=R.length,te=S^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 qr=yr,_i=Hr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Zr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ai(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ai(S),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(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Zr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ai(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Ii(R,fe,pe),Ii(S,3*fe,3*pe),Ii(S,3*fe+1,3*pe+1),Ii(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new En(S,F):new ei(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,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&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Ln(S,F):new ei(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,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(S,F,W,te,fe){let pe=this.paintVertexArray.length,Fe=this.expression.evaluate(new rs(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,Fe)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${Fe}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(Fe=>({name:`a_${Fe}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new rs(this.zoom),F,{},te,[],fe),Fe=this.expression.evaluate(new rs(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,Fe)}updatePaintArray(S,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(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let Fe=S;Fe`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];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 S)this.programConfigurations[te.id]=new Is(te,F,W);this.needsUpload=!1,this._featureMap=new Zr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let Fe in this.programConfigurations)this.programConfigurations[Fe].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Xs(R,S){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(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Ir,composite:cn},number:{source:Sr,composite:Ir}},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[S][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 S=ja/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?$s(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class dl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Ms(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,Fe=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),Fe=!pe.isConstant());for(let{feature:Ke,id:ct,index:Lt,sourceLayerIndex:Jt}of S){let cr=this.layers[0]._featureFilter.needGeometry,mr=Sl(Ke,cr);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),mr,W))continue;let Pr=Fe?pe.evaluate(mr,{},W):void 0,zr={id:ct,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Jt,index:Lt,geometry:cr?mr.geometry:$s(Ke),patterns:{},sortKey:Pr};fe.push(zr)}Fe&&fe.sort((Ke,ct)=>Ke.sortKey-ct.sortKey);for(let Ke of fe){let{geometry:ct,index:Lt,sourceLayerIndex:Jt}=Ke,cr=S[Lt].feature;this.addFeature(Ke,ct,Lt,W),F.featureIndex.insert(cr,ct,Lt,Jt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let Fe=pe.x,Ke=pe.y;if(Fe<0||Fe>=ja||Ke<0||Ke>=ja)continue;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ct.vertexLength;bu(this.layoutVertexArray,Fe,Ke,-1,-1),bu(this.layoutVertexArray,Fe,Ke,1,-1),bu(this.layoutVertexArray,Fe,Ke,1,1),bu(this.layoutVertexArray,Fe,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ct.vertexLength+=4,ct.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Rr(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ui(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function qi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Ei(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function en(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let Fe=0;Feli(ui,zr))}(ct,Ke),mr=Jt?Lt*Fe:Lt;for(let Pr of te)for(let zr of Pr){let ui=Jt?zr:li(zr,Ke),yi=mr,vn=Bn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=vn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/vn[3]),Me(cr,ui,yi))return!0}return!1}}function li(R,S){let F=Bn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends dl{}let Ji;Fi("HeatmapBucket",mn,{omit:["layers"]});var Vi={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 Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Ni(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function pn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Ni({},{width:S,height:F},W);Vn(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Vn(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;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>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,Fe=S.data;if(pe===Fe)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ct=R.expression.evaluate(S);te.data[pe+Fe+0]=Math.floor(255*ct.r/ct.a),te.data[pe+Fe+1]=Math.floor(255*ct.g/ct.a),te.data[pe+Fe+2]=Math.floor(255*ct.b/ct.a),te.data[pe+Fe+3]=Math.floor(255*ct.a)};if(R.clips)for(let pe=0,Fe=0;pe80*F){Fe=1/0,Ke=1/0;let Lt=-1/0,Jt=-1/0;for(let cr=F;crLt&&(Lt=mr),Pr>Jt&&(Jt=Pr)}ct=Math.max(Lt-Fe,Jt-Ke),ct=ct!==0?32767/ct:0}return Vl(fe,pe,F,Fe,Ke,ct,0),pe}function Qs(R,S,F,W,te){let fe;if(te===function(pe,Fe,Ke,ct){let Lt=0;for(let Jt=Fe,cr=Ke-ct;Jt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function al(R,S){if(!R)return R;S||(S=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(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Vl(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ct,Lt,Jt){let cr=Ke;do cr.z===0&&(cr.z=D(cr.x,cr.y,ct,Lt,Jt)),cr.prevZ=cr.prev,cr.nextZ=cr.next,cr=cr.next;while(cr!==Ke);cr.prevZ.nextZ=null,cr.prevZ=null,function(mr){let Pr,zr=1;do{let ui,yi=mr;mr=null;let vn=null;for(Pr=0;yi;){Pr++;let zi=yi,un=0;for(let pa=0;pa0||Tn>0&&zi;)un!==0&&(Tn===0||!zi||yi.z<=zi.z)?(ui=yi,yi=yi.nextZ,un--):(ui=zi,zi=zi.nextZ,Tn--),vn?vn.nextZ=ui:mr=ui,ui.prevZ=vn,vn=ui;yi=zi}vn.nextZ=null,zr*=2}while(Pr>1)}(cr)}(R,W,te,fe);let Fe=R;for(;R.prev!==R.next;){let Ke=R.prev,ct=R.next;if(fe?Vs(R,W,te,fe):ss(R))S.push(Ke.i,R.i,ct.i),Ve(R),R=ct.next,Fe=ct.next;else if((R=ct)===Fe){pe?pe===1?Vl(R=Ys(al(R),S),S,F,W,te,fe,2):pe===2&&wa(R,S,F,W,te,fe):Vl(al(R),S,F,W,te,fe,1);break}}}function ss(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,Fe=S.y,Ke=F.y,ct=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=Fe>Ke?Fe>ct?Fe:ct:Ke>ct?Ke:ct,Pr=W.next;for(;Pr!==S;){if(Pr.x>=Lt&&Pr.x<=cr&&Pr.y>=Jt&&Pr.y<=mr&&q(te,Fe,fe,Ke,pe,ct,Pr.x,Pr.y)&&de(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.next}return!0}function Vs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let Fe=te.x,Ke=fe.x,ct=pe.x,Lt=te.y,Jt=fe.y,cr=pe.y,mr=FeKe?Fe>ct?Fe:ct:Ke>ct?Ke:ct,ui=Lt>Jt?Lt>cr?Lt:cr:Jt>cr?Jt:cr,yi=D(mr,Pr,S,F,W),vn=D(zr,ui,S,F,W),zi=R.prevZ,un=R.nextZ;for(;zi&&zi.z>=yi&&un&&un.z<=vn;){if(zi.x>=mr&&zi.x<=zr&&zi.y>=Pr&&zi.y<=ui&&zi!==te&&zi!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0||(zi=zi.prevZ,un.x>=mr&&un.x<=zr&&un.y>=Pr&&un.y<=ui&&un!==te&&un!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,un.x,un.y)&&de(un.prev,un,un.next)>=0))return!1;un=un.nextZ}for(;zi&&zi.z>=yi;){if(zi.x>=mr&&zi.x<=zr&&zi.y>=Pr&&zi.y<=ui&&zi!==te&&zi!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0)return!1;zi=zi.prevZ}for(;un&&un.z<=vn;){if(un.x>=mr&&un.x<=zr&&un.y>=Pr&&un.y<=ui&&un!==te&&un!==pe&&q(Fe,Lt,Ke,Jt,ct,cr,un.x,un.y)&&de(un.prev,un,un.next)>=0)return!1;un=un.nextZ}return!0}function Ys(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return al(F)}function wa(R,S,F,W,te,fe){let pe=R;do{let Fe=pe.next.next;for(;Fe!==pe.prev;){if(pe.i!==Fe.i&&K(pe,Fe)){let Ke=hr(pe,Fe);return pe=al(pe,pe.next),Ke=al(Ke,Ke.next),Vl(pe,S,F,W,te,fe,0),void Vl(Ke,S,F,W,te,fe,0)}Fe=Fe.next}pe=pe.next}while(pe!==R)}function ol(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,Fe=te.x,Ke=te.y,ct,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=Fe&&zr>Lt&&(Lt=zr,ct=pe.x=pe.x&&pe.x>=cr&&Fe!==pe.x&&q(Kect.x||pe.x===ct.x&&Y(ct,pe)))&&(ct=pe,Pr=zr)}pe=pe.next}while(pe!==Jt);return ct}(R,S);if(!F)return S;let W=hr(F,R);return al(W,W.next),al(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,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))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-Fe)&&(R-pe)*(W-Fe)>=(F-pe)*(S-Fe)&&(F-pe)*(fe-Fe)>=(te-pe)*(W-Fe)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.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,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,Fe=(F.y+W.y)/2;do te.y>Fe!=te.next.y>Fe&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(Fe-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),Fe=ft(de(F,W,S));return te!==fe&&pe!==Fe||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(Fe!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=Qe(R.i,R.x,R.y),W=Qe(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=Qe(R,S,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 Ve(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 Qe(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let Fe=pe.constantOr(null);Fe&&(te=!0,W[Fe.to]=!0,W[Fe.from]=!0)}return te}function Ct(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let Fe=pe.paint.get(`${R}-pattern`).value;if(Fe.kind!=="constant"){let Ke=Fe.evaluate({zoom:W-1},F,{},te.availableImages),ct=Fe.evaluate({zoom:W},F,{},te.availableImages),Lt=Fe.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ct=ct&&ct.name?ct.name:ct,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ct]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ct,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new hl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Ms(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Fe,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Jt=this.layers[0]._featureFilter.needGeometry,cr=Sl(Fe,Jt);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),cr,W))continue;let mr=fe?te.evaluate(cr,{},W,F.availableImages):void 0,Pr={id:Ke,properties:Fe.properties,type:Fe.type,sourceLayerIndex:Lt,index:ct,geometry:Jt?cr.geometry:$s(Fe),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((Fe,Ke)=>Fe.sortKey-Ke.sortKey);for(let Fe of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=Fe;if(this.hasPattern){let Jt=Ct("fill",this.layers,Fe,this.zoom,F);this.patternFeatures.push(Jt)}else this.addFeature(Fe,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),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(S,F,W,te,fe){for(let pe of Cf(F,500)){let Fe=0;for(let mr of pe)Fe+=mr.length;let Ke=this.segments.prepareSegment(Fe,this.layoutVertexArray,this.indexArray),ct=Ke.vertexLength,Lt=[],Jt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Jt.push(Lt.length/2);let Pr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Pr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&Fe.push(S),S=[]),S.push(new Ur(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&Fe.push(S),Fe},fi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,Fe=-1/0,Ke=1/0,ct=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())Fe&&(Fe=te),(fe+=R.readSVarint())ct&&(ct=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,Fe,ct]},fi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,Fe=this.extent*S,Ke=this.loadGeometry(),ct=fi.types[this.type];function Lt(mr){for(var Pr=0;Pr>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))}Bi.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 S=this._pbf.readVarint()+this._pbf.pos;return new rn(this._pbf,S,this.extent,this._keys,this._values)};var sn=Ci;function zn(R,S,F){if(R===3){var W=new sn(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(zn,{},S)},br.VectorTileFeature=Di,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function ts(R,S,F,W,te,fe,pe,Fe){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(Fe))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Ms(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:Fe}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ct=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ct,W))continue;let Lt={id:fe,sourceLayerIndex:Fe,index:pe,geometry:Ke?ct.geometry:$s(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(Ct("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,Fe,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,ur),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let Fe={x:0,y:0,vertexCount:0},Ke=0;for(let Pr of pe)Ke+=Pr.length;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Pr of pe){if(Pr.length===0||ms(Pr))continue;let zr=0;for(let ui=0;ui=1){let vn=Pr[ui-1];if(!Yo(yi,vn)){ct.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let zi=yi.sub(vn)._perp()._unit(),un=vn.dist(yi);zr+un>32768&&(zr=0),ts(this.layoutVertexArray,yi.x,yi.y,zi.x,zi.y,0,0,zr),ts(this.layoutVertexArray,yi.x,yi.y,zi.x,zi.y,0,1,zr),Fe.x+=2*yi.x,Fe.y+=2*yi.y,Fe.vertexCount+=2,zr+=un,ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,0,zr),ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,1,zr),Fe.x+=2*vn.x,Fe.y+=2*vn.y,Fe.vertexCount+=2;let Tn=ct.vertexLength;this.indexArray.emplaceBack(Tn,Tn+2,Tn+1),this.indexArray.emplaceBack(Tn+1,Tn+2,Tn+3),ct.vertexLength+=4,ct.primitiveLength+=2}}}}if(ct.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Jt=[],cr=ct.vertexLength;for(let Pr of pe)if(Pr.length!==0){Pr!==pe[0]&&Jt.push(Lt.length/2);for(let zr=0;zrja)||R.y===S.y&&(R.y<0||R.y>ja)}function ms(R){return R.every(S=>S.x<0)||R.every(S=>S.x>ja)||R.every(S=>S.y<0)||R.every(S=>S.y>ja)}let ou;Fi("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(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 Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Lv extends B{constructor(S){super(S,Cv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,Fe,Ke){let ct=en(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,Fe),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Jt=this.paint.get("fill-extrusion-base").evaluate(F,W),cr=function(Pr,zr,ui,yi){let vn=[];for(let zi of Pr){let un=[zi.x,zi.y,0,1];Bn(un,un,zr),vn.push(new u(un[0]/un[3],un[1]/un[3]))}return vn}(ct,Ke),mr=function(Pr,zr,ui,yi){let vn=[],zi=[],un=yi[8]*zr,Tn=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Pr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],kh=yi[2]*uo+yi[6]*$o+yi[14],Qv=yi[3]*uo+yi[7]*$o+yi[15],ud=kh+pa,Ch=Qv+ro,Vd=Ju+Vo,Gd=qu+Xa,Hd=kh+sa,Af=Qv+Mo,Lh=new u((Ju+un)/Ch,(qu+Tn)/Ch);Lh.z=ud/Ch,lo.push(Lh);let Ed=new u(Vd/Af,Gd/Af);Ed.z=Hd/Af,Xn.push(Ed)}vn.push(lo),zi.push(Xn)}return[vn,zi]}(te,Jt,Lt,Ke);return function(Pr,zr,ui){let yi=1/0;bt(ui,zr)&&(yi=Kv(ui,zr[0]));for(let vn=0;vnF.id),this.index=S.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(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Fe,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Jt=this.layers[0]._featureFilter.needGeometry,cr=Sl(Fe,Jt);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),cr,W))continue;let mr=fe?te.evaluate(cr,{},W):void 0,Pr={id:Ke,properties:Fe.properties,type:Fe.type,sourceLayerIndex:Lt,index:ct,geometry:Jt?cr.geometry:$s(Fe),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((Fe,Ke)=>Fe.sortKey-Ke.sortKey);for(let Fe of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=Fe;if(this.hasPattern){let Jt=Ct("line",this.layers,Fe,this.zoom,F);this.patternFeatures.push(Jt)}else this.addFeature(Fe,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,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(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,mp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,Fe=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ct=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Jt of F)this.addLine(Jt,S,Fe,Ke,ct,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ct=0;for(;ct0;if(ro&&yi>ct){let Mo=cr.dist(mr);if(Mo>2*Lt){let fo=cr.sub(cr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Jt),mr=fo}}let Xa=mr&&Pr,sa=Xa?W:Fe?"butt":te;if(Xa&&sa==="round"&&(Tnfe&&(sa="bevel"),sa==="bevel"&&(Tn>2&&(sa="flipbevel"),Tn100)vn=ui.mult(-1);else{let Mo=Tn*zr.add(ui).mag()/zr.sub(ui).mag();vn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(cr,vn,0,0,Jt),this.addCurrentVertex(cr,vn.mult(-1),0,0,Jt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(Tn*Tn-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(cr,zr,fo,lo,Jt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=cr.add(Pr.sub(cr)._mult(Lt/Mo)._round());this.updateDistance(cr,fo),this.addCurrentVertex(fo,ui,0,0,Jt),cr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let Fe=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,Fe,Ke,pe,!0,-te,fe),this.distance>Pv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,Fe,Ke){let ct=.5*(this.lineClips?this.scaledDistance*(Pv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(Fe===0?0:Fe<0?-1:1)|(63&ct)<<2,ct>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let Iv,fy;Fi("LineBucket",Jv,{omit:["layers","patternFeatures"]});var dg={get paint(){return fy=fy||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(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 Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new rs(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let vg;class hy extends B{constructor(S){super(S,dg),this.gradientVersion=0,vg||(vg=new oh(dg.paint.properties["line-width"].specification),vg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="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(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=vg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Jv(S)}queryRadius(S){let F=S,W=Zh(Ei("line-width",this,F),Ei("line-gap-width",this,F)),te=Ei("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,Fe){let Ke=en(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,Fe),ct=Fe/2*Zh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Jt,cr){let mr=[];for(let Pr=0;Pr=3){for(let ui=0;ui0?S+2*R:R}let am=Oe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),k1=Oe([{name:"a_projected_pos",components:3,type:"Float32"}],4);Oe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let C1=Oe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Oe([{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 dy=Oe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),om=Oe([{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,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let Fe=fe.layout.get("text-transform").evaluate(pe,{});return Fe==="uppercase"?te=te.toLocaleUpperCase():Fe==="lowercase"&&(te=te.toLocaleLowerCase()),ys.applyArabicShaping&&(te=ys.applyArabicShaping(te)),te}(W.text,S,F)}),R}Oe([{name:"triangle",components:3,type:"Uint16"}]),Oe([{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"}]),Oe([{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"}]),Oe([{type:"Float32",name:"offsetX"}]),Oe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Oe([{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,vy=function(R,S,F,W,te){var fe,pe,Fe=8*te-W-1,Ke=(1<>1,Lt=-7,Jt=F?te-1:0,cr=F?-1:1,mr=R[S+Jt];for(Jt+=cr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=Fe;Lt>0;fe=256*fe+R[S+Jt],Jt+=cr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Jt],Jt+=cr,Lt-=8);if(fe===0)fe=1-ct;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ct}return(mr?-1:1)*pe*Math.pow(2,fe-W)},L1=function(R,S,F,W,te,fe){var pe,Fe,Ke,ct=8*fe-te-1,Lt=(1<>1,cr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Pr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(Fe=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Jt>=1?cr/Ke:cr*Math.pow(2,1-Jt))*Ke>=2&&(pe++,Ke/=2),pe+Jt>=Lt?(Fe=0,pe=Lt):pe+Jt>=1?(Fe=(S*Ke-1)*Math.pow(2,te),pe+=Jt):(Fe=S*Math.pow(2,Jt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&Fe,mr+=Pr,Fe/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Pr,pe/=256,ct-=8);R[F+mr-Pr]|=128*zr};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 Yx=4294967296,lm=1/Yx,Ow=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,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function qw(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Kx(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function MC(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=py(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=py(this.buf,this.pos)+py(this.buf,this.pos+4)*Yx;return this.pos+=8,R},readSFixed64:function(){var R=py(this.buf,this.pos)+MC(this.buf,this.pos+4)*Yx;return this.pos+=8,R},readFloat:function(){var R=vy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=vy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var Fe,Ke,ct=pe.buf;if(Fe=(112&(Ke=ct[pe.pos++]))>>4,Ke<128||(Fe|=(127&(Ke=ct[pe.pos++]))<<3,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<10,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<17,Ke<128)||(Fe|=(127&(Ke=ct[pe.pos++]))<<24,Ke<128)||(Fe|=(1&(Ke=ct[pe.pos++]))<<31,Ke<128))return um(te,Fe,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(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,S=this.pos;return this.pos=R,R-S>=12&&Ow?function(F,W,te){return Ow.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+cr>te)break;cr===1?Lt<128&&(Jt=Lt):cr===2?(192&(Fe=F[pe+1]))==128&&(Jt=(31&Lt)<<6|63&Fe)<=127&&(Jt=null):cr===3?(Ke=F[pe+2],(192&(Fe=F[pe+1]))==128&&(192&Ke)==128&&((Jt=(15&Lt)<<12|(63&Fe)<<6|63&Ke)<=2047||Jt>=55296&&Jt<=57343)&&(Jt=null)):cr===4&&(Ke=F[pe+2],ct=F[pe+3],(192&(Fe=F[pe+1]))==128&&(192&Ke)==128&&(192&ct)==128&&((Jt=(15&Lt)<<18|(63&Fe)<<12|(63&Ke)<<6|63&ct)<=65535||Jt>=1114112)&&(Jt=null)),Jt===null?(Jt=65533,cr=1):Jt>65535&&(Jt-=65536,fe+=String.fromCharCode(Jt>>>10&1023|55296),Jt=56320|1023&Jt),fe+=String.fromCharCode(Jt),pe+=cr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Rv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,Fe){Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,fe>>>=7,Fe.buf[Fe.pos++]=127&fe|128,Fe.buf[Fe.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var Fe=(7&fe)<<4;pe.buf[pe.pos++]|=Fe|((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 S=this.pos;this.pos=function(W,te,fe){for(var pe,Fe,Ke=0;Ke55295&&pe<57344){if(!Fe){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):Fe=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,Fe=pe;continue}pe=Fe-55296<<10|pe-56320|65536,Fe=null}else Fe&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,Fe=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-S;F>=128&&qw(S,F,this),this.pos=S-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 S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&qw(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Kx,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,V9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,j9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,G9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,H9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,OQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,W9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,X9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,Z9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var lS=o(Sd);let uS=3;function qQ(R,S,F){R===1&&F.readMessage(Y9,S)}function Y9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:Fe,top:Ke,advance:ct}=F.readMessage(EC,{});S.push({id:W,bitmap:new na({width:fe+2*uS,height:pe+2*uS},te),metrics:{width:fe,height:pe,left:Fe,top:Ke,advance:ct}})}}function EC(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let kC=uS;function cS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,Fe)=>Fe.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let Fe=W.length-1;Fe>=0;Fe--){let Ke=W[Fe];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 ct=W.pop();Fe=0&&W>=S&&Uw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new P1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push($x.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Qx(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr){let zr=P1.fromFeature(R,te),ui;Jt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:vn}=ys;if(yi&&zr.sections.length===1){ui=[];let Tn=yi(zr.toString(),I1(zr,ct,fe,S,W,mr));for(let pa of Tn){let ro=new P1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&tp>Df&&(Df=tp)}else{let Gc=ro[ru.fontStack],Yf=Gc&&Gc[$u];if(Yf&&Yf.rect)q1=Yf.rect,ff=Yf.metrics;else{let tp=pa[ru.fontStack],yg=tp&&tp[$u];if(!yg)continue;ff=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:ff,rect:q1}),$o+=Gp*ru.scale+Xn):(Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:ff,rect:q1}),$o+=ff.advance*ru.scale+Xn)}Yh.length!==0&&(qu=Math.max($o-Xn,qu),cm(Yh,0,Yh.length-1,Qv,Df)),$o=0;let Fv=sa*Lh+Df;cd.lineOffset=Math.max(Df,Ed),Ju+=Fv,kh=Math.max(Fv,kh),++ud}var Ch;let Vd=Ju-Eh,{horizontalAlign:Gd,verticalAlign:Hd}=Gw(Mo);(function(Af,Lh,Ed,cd,Yh,Df,Fv,lv,ru){let pc=(Lh-Ed)*Yh,$u=0;$u=Df!==Fv?-lv*cd-Eh:(-cd*ru+.5)*Fv;for(let zv of Af)for(let ff of zv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(Tn.positionedLines,Qv,Gd,Hd,qu,kh,sa,Vd,Xa.length),Tn.top+=-Hd*Vd,Tn.bottom=Tn.top+Vd,Tn.left+=-Gd*qu,Tn.right=Tn.left+qu}(un,S,F,W,ui,pe,Fe,Ke,Jt,ct,cr,Pr),!function(Tn){for(let pa of Tn)if(pa.positionedGlyphs.length!==0)return!1;return!0}(zi)&&un}let Uw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},K9={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},J9={40:!0};function CC(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*tu/fe+te:0}{let pe=F[S.fontStack],Fe=pe&&pe[R];return Fe?Fe.metrics.advance*S.scale+te:0}}function LC(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ct=0;for(let Jt=0;Jtct){let Lt=Math.ceil(fe/ct);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function RC(R,S,F,W,te,fe){let pe=R.image,Fe;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;Fe=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ct=S.right*fe,Lt,Jt,cr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Jt=te[0]+ct+W[1]):(mr=te[0]+(Ke+ct-pe.displaySize[0])/2,Jt=mr+pe.displaySize[0]);let Pr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Pr-W[0],cr=te[1]+zr+W[2]):(Lt=te[1]+(Pr+zr-pe.displaySize[1])/2,cr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Jt,bottom:cr,left:mr,collisionPadding:Fe}}let tb=255,v0=128,fm=tb*v0;function DC(R,S){let{expression:F}=S;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=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ri([]),this.placementViewportMatrix=Ri([]);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=fS(W,"text-overlap","text-allow-overlap")!=="never"||fS(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=S.sourceID}createArrays(){this.text=new vS(new Ms(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new vS(new Ms(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new Co,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Jt=fe.get("symbol-sort-key");if(this.features=[],!ct&&!Lt)return;let cr=F.iconDependencies,mr=F.glyphDependencies,Pr=F.availableImages,zr=new rs(this.zoom);for(let{feature:ui,id:yi,index:vn,sourceLayerIndex:zi}of S){let un=te._featureFilter.needGeometry,Tn=Sl(ui,un);if(!te._featureFilter.filter(zr,Tn,W))continue;let pa,ro;if(un||(Tn.geometry=$s(ui)),ct){let Xa=te.getValueAndResolveTokens("text-field",Tn,W,Pr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||dS(sa);(!Mo||ys.getRTLTextPluginStatus()==="unavailable"||Mo&&ys.isParsed())&&(pa=sm(sa,te,Tn))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",Tn,W,Pr);ro=Xa instanceof tn?Xa:tn.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Jt.evaluate(Tn,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:vn,sourceLayerIndex:zi,geometry:Tn.geometry,properties:ui.properties,type:Q9[ui.type],sortKey:Vo}),ro&&(cr[ro.name]=!0),pa){let Xa=pe.evaluate(Tn,{},W).join(","),sa=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)cr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},vn={},zi=[],un=0;function Tn(Xa){zi.push(ui[Xa]),un++}function pa(Xa,sa,Mo){let fo=vn[Xa];return delete vn[Xa],vn[sa]=fo,zi[fo].geometry[0].pop(),zi[fo].geometry[0]=zi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,zi[fo].geometry[0].shift(),zi[fo].geometry[0]=Mo[0].concat(zi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,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(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,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(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let Fe=S.segment+1;Fe=0;Fe--)pe[Fe]={x:F[Fe].x,y:F[Fe].y,tileUnitDistanceFromAnchor:fe},Fe>0&&(fe+=F[Fe-1].dist(F[Fe]));for(let Fe=0;Fe0}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(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[Fe]-te[Ke]||fe[Ke]-fe[Fe]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,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,rb;Fi("SymbolBucket",R1,{omit:["layers","collisionBoxArray","features","compareText"]}),R1.MAX_GLYPHS=65535,R1.addDynamicAttributes=hS;var jw={get paint(){return rb=rb||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 Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(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:er,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 Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Tf=Tf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(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 Ua(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 Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(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 Ua(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 Ua(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 Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(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 Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class ib{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Gt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Fi("FormatSectionOverride",ib,{omit:["defaultValue"]});class gy extends B{constructor(S){super(S,jw)}recalculate(S,F){if(super.recalculate(S,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(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(Fe,Ke){return Ke.replace(/{([^{}]+)}/g,(ct,Lt)=>Fe&&Lt in Fe?String(Fe[Lt]):"")}(F.properties,fe)}createBucket(S){return new R1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of jw.paint.overridableProperties){if(!gy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new ib(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[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&gy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=jw.paint.properties[F],fe=!1,pe=Fe=>{for(let Ke of Fe)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let Fe=ct=>{fe||(ct instanceof ua&&Sn(ct.value)===ti?pe(ct.value.sections):ct instanceof Yl?pe(ct.sections):ct.eachChild(Fe))},Ke=W.value;Ke._styleExpression&&Fe(Ke._styleExpression.expression)}return fe}}let FC;var nb={get paint(){return FC=FC||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class tO extends B{constructor(S){super(S,nb)}}let pS;var zC={get paint(){return pS=pS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class ab extends B{constructor(S){super(S,zC)}}class gS extends B{constructor(S){super(S,{}),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=S}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 mS{constructor(S){this._methodToThrottle=S,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 yS=63710088e-1;class pg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,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(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return yS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof pg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new pg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new pg(Number("lng"in S?S.lng:S.lon),Number(S.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*yS;function OC(R){return D1*Math.cos(R*Math.PI/180)}function Ww(R){return(180+R)/360}function qC(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function Xw(R,S){return R/OC(S)}function ob(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class sb{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=pg.convert(S);return new sb(Ww(W.lng),qC(W.lat),Xw(F,W.lat))}toLngLat(){return new pg(360*this.x-180,ob(this.y))}toAltitude(){return this.z*OC(ob(this.y))}meterInMercatorCoordinateUnits(){return 1/D1*(S=ob(this.y),1/Math.cos(S*Math.PI/180));var S}}function yp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class _S{constructor(S,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))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=lb(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,Fe=this.z,Ke=yp(256*(fe=this.x),256*(pe=Math.pow(2,Fe)-pe-1),Fe),ct=yp(256*(fe+1),256*(pe+1),Fe),Ke[0]+","+Ke[1]+","+ct[0]+","+ct[1]);var fe,pe,Fe,Ke,ct;let Lt=function(Jt,cr,mr){let Pr,zr="";for(let ui=Jt;ui>0;ui--)Pr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*ja,(S.y*F-this.y)*ja)}toString(){return`${this.z}/${this.x}/${this.y}`}}class BC{constructor(S,F){this.wrap=S,this.canonical=F,this.key=lb(S,F.z,F.z,F.x,F.y)}}class $v{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new _S(W,+te,+fe),this.key=lb(F,S,W,te,fe)}clone(){return new $v(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new $v(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $v(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?lb(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):lb(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)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(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Jt),Jt=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+(S+1)}unpack(S,F,W){return S*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(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,Fe=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=Fe-1;break;case 1:Fe=pe+1}let Ke=-F*this.dim,ct=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class xS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.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(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class my{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new Qi(ja,16,0),this.grid3D=new Qi(ja,16,0),this.featureIndexArray=new Ts,this.promoteId=F}insert(S,F,W,te,fe,pe){let Fe=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ct=0;ct=0&&Jt[3]>=0&&Ke.insert(Fe,Jt[0],Jt[1],Jt[2],Jt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new lS(this.rawTileData)).layers,this.sourceLayerCoder=new UC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=ja/S.tileSize/S.scale,Fe=Fc(fe.filter),Ke=S.queryGeometry,ct=S.queryPadding*pe,Lt=GC(Ke),Jt=this.grid.query(Lt.minX-ct,Lt.minY-ct,Lt.maxX+ct,Lt.maxY+ct),cr=GC(S.cameraQueryGeometry),mr=this.grid3D.query(cr.minX-ct,cr.minY-ct,cr.maxX+ct,cr.maxY+ct,(ui,yi,vn,zi)=>function(un,Tn,pa,ro,Vo){for(let sa of un)if(Tn<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(Tn,pa),new u(Tn,Vo),new u(ro,Vo),new u(ro,pa)];if(un.length>2){for(let sa of Xa)if(Ui(un,sa))return!0}for(let sa=0;sa(zi||(zi=$s(un)),Tn.queryIntersectsFeature(Ke,un,pa,zi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Pr}loadMatchingFeature(S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt){let cr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let vn=0;vn=0)return!0;return!1}(pe,cr))return;let mr=this.sourceLayerCoder.decode(W),Pr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Sl(Pr,!0);if(!fe.filter(new rs(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new rs(this.tileID.overscaledZ),Pr))return;let zr=this.getId(Pr,mr);for(let ui=0;ui{let Fe=S instanceof Ac?S.get(pe):null;return Fe&&Fe.evaluate?Fe.evaluate(F,W,te):Fe})}function GC(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function rO(R,S){return S-R}function HC(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Jt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Jt.x-Lt.x)*(Jt.y-Lt.y))._round():Jt.x>=W&&(Jt=new u(W,Lt.y+(W-Lt.x)/(Jt.x-Lt.x)*(Jt.y-Lt.y))._round()),Lt.y>=te&&Jt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Jt.y-Lt.y)*(Jt.x-Lt.x),te)._round():Jt.y>=te&&(Jt=new u(Lt.x+(te-Lt.y)/(Jt.y-Lt.y)*(Jt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Jt)))))}}return fe}Fi("FeatureIndex",my,{omit:["rawTileData","sourceLayerCoder"]});class gg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new gg(this.x,this.y,this.angle,this.segment)}}function bS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,Fe=0;for(;Fe>-F/2;){if(pe--,pe<0)return!1;Fe-=R[pe].dist(fe),fe=R[pe]}Fe+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ct=0;for(;FeW;)ct-=Ke.shift().angleDelta;if(ct>te)return!1;pe++,Fe+=Lt.dist(Jt)}return!0}function jC(R){let S=0;for(let F=0;Fct){let Pr=(ct-Ke)/mr,zr=Lo.number(Jt.x,cr.x,Pr),ui=Lo.number(Jt.y,cr.y,Pr),yi=new gg(zr,ui,cr.angleTo(Jt),Lt);return yi._round(),!pe||bS(R,yi,Fe,pe,S)?yi:void 0}Ke+=mr}}function nO(R,S,F,W,te,fe,pe,Fe,Ke){let ct=WC(W,fe,pe),Lt=XC(W,te),Jt=Lt*pe,cr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Jt=0&&un=0&&Tn=0&&cr+ct<=Lt){let pa=new gg(un,Tn,vn,Pr);pa._round(),W&&!bS(R,pa,fe,W,te)||mr.push(pa)}}Jt+=yi}return Fe||mr.length||pe||(mr=ZC(R,Jt/2,F,W,te,fe,pe,!0,Ke)),mr}Fi("Anchor",gg);let F1=Md;function YC(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,Fe=fe.paddedRect.w-2*F1,Ke=fe.paddedRect.h-2*F1,ct={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,Fe]],Jt=fe.stretchY||[[0,Ke]],cr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(cr,0),Pr=Jt.reduce(cr,0),zr=Fe-mr,ui=Ke-Pr,yi=0,vn=mr,zi=0,un=Pr,Tn=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ct=IC(R)),yi=mg(Lt,0,Xn[0]),zi=mg(Jt,0,Xn[1]),vn=mg(Lt,Xn[0],Xn[2]),un=mg(Jt,Xn[1],Xn[3]),Tn=Xn[0]-yi,ro=Xn[1]-zi,pa=Ro-vn,Vo=uo-un}let Xa=ct.x1,sa=ct.y1,Mo=ct.x2-Xa,fo=ct.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Zw(Xn.stretch-yi,vn,Mo,Xa),qu=z1(Xn.fixed-Tn,pa,Xn.stretch,mr),kh=Zw(Ro.stretch-zi,un,fo,sa),Qv=z1(Ro.fixed-ro,Vo,Ro.stretch,Pr),ud=Zw(uo.stretch-yi,vn,Mo,Xa),Ch=z1(uo.fixed-Tn,pa,uo.stretch,mr),Vd=Zw($o.stretch-zi,un,fo,sa),Gd=z1($o.fixed-ro,Vo,$o.stretch,Pr),Hd=new u(Ju,kh),Af=new u(ud,kh),Lh=new u(ud,Vd),Ed=new u(Ju,Vd),cd=new u(qu/pe,Qv/pe),Yh=new u(Ch/pe,Gd/pe),Df=S*Math.PI/180;if(Df){let ru=Math.sin(Df),pc=Math.cos(Df),$u=[pc,-ru,ru,pc];Hd._matMult($u),Af._matMult($u),Ed._matMult($u),Lh._matMult($u)}let Fv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:Hd,tr:Af,bl:Ed,br:Lh,tex:{x:fe.paddedRect.x+F1+Fv,y:fe.paddedRect.y+F1+lv,w:uo.stretch+uo.fixed-Fv,h:$o.stretch+$o.fixed-lv},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 Xn=KC(Lt,zr,mr),Ro=KC(Jt,ui,Pr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let cr=!((Jt=pe.image)===null||Jt===void 0)&&Jt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?IC(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};cr.y1=cr.y1*Fe-Ke[0],cr.y2=cr.y2*Fe+Ke[2],cr.x1=cr.x1*Fe-Ke[3],cr.x2=cr.x2*Fe+Ke[1];let mr=pe.collisionPadding;if(mr&&(cr.x1-=mr[0]*Fe,cr.y1-=mr[1]*Fe,cr.x2+=mr[2]*Fe,cr.y2+=mr[3]*Fe),Lt){let Pr=new u(cr.x1,cr.y1),zr=new u(cr.x2,cr.y1),ui=new u(cr.x1,cr.y2),yi=new u(cr.x2,cr.y2),vn=Lt*Math.PI/180;Pr._rotate(vn),zr._rotate(vn),ui._rotate(vn),yi._rotate(vn),cr.x1=Math.min(Pr.x,zr.x,ui.x,yi.x),cr.x2=Math.max(Pr.x,zr.x,ui.x,yi.x),cr.y1=Math.min(Pr.y,zr.y,ui.y,yi.y),cr.y2=Math.max(Pr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,cr.x1,cr.y1,cr.x2,cr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,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(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function aO(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,Fe=R[0];for(let mr=0;mrfe)&&(fe=Pr.x),(!mr||Pr.y>pe)&&(pe=Pr.y)}let Ke=Math.min(fe-W,pe-te),ct=Ke/2,Lt=new Vp([],oO);if(Ke===0)return new u(W,te);for(let mr=W;mrJt.d||!Jt.d)&&(Jt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,cr)),mr.max-Jt.d<=S||(ct=mr.h/2,Lt.push(new O1(mr.p.x-ct,mr.p.y-ct,ct,R)),Lt.push(new O1(mr.p.x+ct,mr.p.y-ct,ct,R)),Lt.push(new O1(mr.p.x-ct,mr.p.y+ct,ct,R)),Lt.push(new O1(mr.p.x+ct,mr.p.y+ct,ct,R)),cr+=4)}return F&&(console.log(`num probes: ${cr}`),console.log(`best distance: ${Jt.d}`)),Jt.p}function oO(R,S){return S.max-R.max}function O1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,Fe=1/0;for(let Ke=0;Kete.y!=Pr.y>te.y&&te.x<(Pr.x-mr.x)*(te.y-mr.y)/(Pr.y-mr.y)+mr.x&&(pe=!pe),Fe=Math.min(Fe,Gr(te,mr,Pr))}}return(pe?1:-1)*Math.sqrt(Fe)}(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,yy=Number.POSITIVE_INFINITY;function wS(R,S){return S[1]!==yy?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,S[0],S[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,S[0])}function JC(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let Fe=fe.values,Ke=[];for(let ct=0;ctcr*tu);Lt.startsWith("top")?Jt[1]-=vm:Lt.startsWith("bottom")&&(Jt[1]+=vm),Ke[ct+1]=Jt}return new $i(Ke)}let pe=te.get("text-variable-anchor");if(pe){let Fe;Fe=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*tu,yy]:te.get("text-offset").evaluate(S,{},F).map(ct=>ct*tu);let Ke=[];for(let ct of pe)Ke.push(ct,wS(ct,Fe));return new $i(Ke)}return null}function TS(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 sO(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt){let Jt=fe.textMaxSize.evaluate(S,{});Jt===void 0&&(Jt=pe);let cr=R.layers[0].layout,mr=cr.get("icon-offset").evaluate(S,{},Lt),Pr=QC(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Jt/24,vn=R.tilePixelRatio*Fe,zi=R.tilePixelRatio*cr.get("symbol-spacing"),un=cr.get("text-padding")*R.tilePixelRatio,Tn=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(cr,S,Lt,R.tilePixelRatio),pa=cr.get("text-max-angle")/180*Math.PI,ro=cr.get("text-rotation-alignment")!=="viewport"&&cr.get("symbol-placement")!=="point",Vo=cr.get("icon-rotation-alignment")==="map"&&cr.get("symbol-placement")!=="point",Xa=cr.get("symbol-placement"),sa=zi/2,Mo=cr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=RC(W,F.vertical,Mo,cr.get("icon-text-fit-padding"),mr,zr)),Pr&&(W=RC(W,Pr,Mo,cr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=ja||Ro.y<0||Ro.y>=ja||function(uo,$o,Ju,qu,kh,Qv,ud,Ch,Vd,Gd,Hd,Af,Lh,Ed,cd,Yh,Df,Fv,lv,ru,pc,$u,zv,ff,q1){let p0=uo.addToLineVertexArray($o,Ju),Gp,ep,Gc,Yf,tp=0,yg=0,uv=0,B1=0,kS=-1,$w=-1,g0={},_y=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let kd=Ch.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new dm(Vd,$o,Gd,Hd,Af,qu.vertical,Lh,Ed,cd,kd),ud&&(Yf=new dm(Vd,$o,Gd,Hd,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),jd=ud?YC(ud,kd,zv,rp):void 0;ep=new dm(Vd,$o,Gd,Hd,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&&A(`${uo.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)):Cd.kind==="composite"&&(xp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(xp[0]>fm||xp[1]>fm)&&A(`${uo.layerIds[0]}: Value for "icon-size" is >= ${tb}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,pm,xp,ru,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),kS=uo.icon.placedSymbolArray.length-1,jd&&(yg=4*jd.length,uo.addSymbols(uo.icon,jd,xp,ru,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),$w=uo.icon.placedSymbolArray.length-1)}let Kh=Object.keys(qu.horizontal);for(let kd of Kh){let rp=qu.horizontal[kd];if(!Gp){_y=bi(rp.text);let jd=Ch.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new dm(Vd,$o,Gd,Hd,Af,rp,Lh,Ed,cd,jd)}let pm=rp.positionedLines.length===1;if(uv+=$C(uo,$o,rp,Qv,Ch,cd,pc,Yh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,pm?Kh:[kd],g0,kS,$u,ff),pm)break}qu.vertical&&(B1+=$C(uo,$o,qu.vertical,Qv,Ch,cd,pc,Yh,p0,i.ah.vertical,["vertical"],g0,$w,$u,ff));let cO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Qw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,i6=ep?ep.boxStartIndex:uo.collisionBoxArray.length,fO=ep?ep.boxEndIndex:uo.collisionBoxArray.length,n6=Yf?Yf.boxStartIndex:uo.collisionBoxArray.length,hO=Yf?Yf.boxEndIndex:uo.collisionBoxArray.length,_p=-1,fb=(kd,rp)=>kd&&kd.circleDiameter?Math.max(kd.circleDiameter,rp):rp;_p=fb(Gp,_p),_p=fb(Gc,_p),_p=fb(ep,_p),_p=fb(Yf,_p);let e3=_p>-1?1:0;e3&&(_p*=q1/tu),uo.glyphOffsetArray.length>=R1.MAX_GLYPHS&&A("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 CS=JC(Ch,pc,ff),[dO,vO]=function(kd,rp){let pm=kd.length,jd=rp==null?void 0:rp.values;if((jd==null?void 0:jd.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,kS,$w,_y,cO,Qw,m0,cv,i6,fO,n6,hO,Gd,uv,B1,tp,yg,e3,0,Lh,_p,dO,vO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[un,un,un,un],ro,Ke,vn,Tn,Vo,mr,S,fe,ct,Lt,pe)};if(Xa==="line")for(let Xn of HC(S.geometry,0,0,ja,ja)){let Ro=nO(Xn,zi,pa,F.vertical||Pr,W,24,yi,R.overscaling,ja);for(let uo of Ro)Pr&&lO(R,Pr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=iO(Xn,pa,F.vertical||Pr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=aO(Xn,16);lo(Xn[0],new gg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new gg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new gg(Ro.x,Ro.y,0))}function $C(R,S,F,W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr){let zr=function(vn,zi,un,Tn,pa,ro,Vo,Xa){let sa=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 Xn=lo.rect||{},Ro=kC+1,uo=!0,$o=1,Ju=0,qu=(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+un[0],lo.y+un[1]-Ju],Ch=[0,0];qu&&(Ch=ud,ud=[0,0]);let Vd=lo.metrics.isDoubleResolution?2:1,Gd=(lo.metrics.left-Ro)*lo.scale-kh+ud[0],Hd=(-lo.metrics.top-Ro)*lo.scale+ud[1],Af=Gd+Xn.w/Vd*lo.scale/$o,Lh=Hd+Xn.h/Vd*lo.scale/$o,Ed=new u(Gd,Hd),cd=new u(Af,Hd),Yh=new u(Gd,Lh),Df=new u(Af,Lh);if(qu){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)),ff=new u(...Ch);Ed._rotateAround(pc,ru)._add(zv)._add(ff),cd._rotateAround(pc,ru)._add(zv)._add(ff),Yh._rotateAround(pc,ru)._add(zv)._add(ff),Df._rotateAround(pc,ru)._add(zv)._add(ff)}if(sa){let ru=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-ru,ru,pc];Ed._matMult($u),cd._matMult($u),Yh._matMult($u),Df._matMult($u)}let Fv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:cd,bl:Yh,br:Df,tex:Xn,writingMode:zi.writingMode,glyphOffset:Qv,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Fv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,Fe,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>fm&&A(`${R.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Pr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Pr)],(yi[0]>fm||yi[1]>fm)&&A(`${R.layerIds[0]}: Value for "text-size" is >= ${tb}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,Fe,fe,pe,ct,S,Ke.lineStartIndex,Ke.lineLength,cr,Pr);for(let vn of Lt)Jt[vn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function QC(R){for(let S in R)return R[S];return null}function lO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];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(S,2,1),[Fe]=new Uint32Array(S,4,1);return new AS(Fe,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=e6.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,Fe=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-Fe%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,S),this.coords=new this.ArrayType(this.data,8+Fe+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+Fe+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+Fe+Ke,2*S),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]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return Yw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:Fe}=this,Ke=[0,fe.length-1,0],ct=[];for(;Ke.length;){let Lt=Ke.pop()||0,Jt=Ke.pop()||0,cr=Ke.pop()||0;if(Jt-cr<=Fe){for(let ui=cr;ui<=Jt;ui++){let yi=pe[2*ui],vn=pe[2*ui+1];yi>=S&&yi<=W&&vn>=F&&vn<=te&&ct.push(fe[ui])}continue}let mr=cr+Jt>>1,Pr=pe[2*mr],zr=pe[2*mr+1];Pr>=S&&Pr<=W&&zr>=F&&zr<=te&&ct.push(fe[mr]),(Lt===0?S<=Pr:F<=zr)&&(Ke.push(cr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Pr:te>=zr)&&(Ke.push(mr+1),Ke.push(Jt),Ke.push(1-Lt))}return ct}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,Fe=[0,te.length-1,0],Ke=[],ct=W*W;for(;Fe.length;){let Lt=Fe.pop()||0,Jt=Fe.pop()||0,cr=Fe.pop()||0;if(Jt-cr<=pe){for(let ui=cr;ui<=Jt;ui++)r6(fe[2*ui],fe[2*ui+1],S,F)<=ct&&Ke.push(te[ui]);continue}let mr=cr+Jt>>1,Pr=fe[2*mr],zr=fe[2*mr+1];r6(Pr,zr,S,F)<=ct&&Ke.push(te[mr]),(Lt===0?S-W<=Pr:F-W<=zr)&&(Fe.push(cr),Fe.push(mr-1),Fe.push(1-Lt)),(Lt===0?S+W>=Pr:F+W>=zr)&&(Fe.push(mr+1),Fe.push(Jt),Fe.push(1-Lt))}return Ke}}function Yw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;t6(R,S,pe,W,te,fe),Yw(R,S,F,W,pe-1,1-fe),Yw(R,S,F,pe+1,te,1-fe)}function t6(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ct=te-W+1,Lt=F-W+1,Jt=Math.log(ct),cr=.5*Math.exp(2*Jt/3),mr=.5*Math.sqrt(Jt*cr*(ct-cr)/ct)*(Lt-ct/2<0?-1:1);t6(R,S,F,Math.max(W,Math.floor(F-Lt*cr/ct+mr)),Math.min(te,Math.floor(F+(ct-Lt)*cr/ct+mr)),fe)}let pe=S[2*F+fe],Fe=W,Ke=te;for(ub(R,S,W,F),S[2*te+fe]>pe&&ub(R,S,W,te);Fepe;)Ke--}S[2*W+fe]===pe?ub(R,S,W,Ke):(Ke++,ub(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function ub(R,S,F,W){SS(R,F,W),SS(S,2*F,2*W),SS(S,2*F+1,2*W+1)}function SS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function r6(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Kw;i.bg=void 0,(Kw=i.bg||(i.bg={})).create="create",Kw.load="load",Kw.fullLoad="fullLoad";let cb=null,sh=[],MS=1e3/60,ES="loadTime",Jw="fullLoadTime",uO={mark(R){performance.mark(R)},frame(R){let S=R;cb!=null&&sh.push(S-cb),cb=S},clearMetrics(){cb=null,sh=[],performance.clearMeasures(ES),performance.clearMeasures(Jw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(ES,i.bg.create,i.bg.load),performance.measure(Jw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(ES)[0].duration,S=performance.getEntriesByName(Jw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>MS).reduce((fe,pe)=>fe+(pe-MS)/MS,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Yt{},i.A=xi,i.B=dn,i.C=function(R){if(U==null){let S=R.navigator?R.navigator.userAgent:null;U=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return U},i.D=Ua,i.E=De,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new mS(()=>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=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let Fe={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Fe)},{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 S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Le,i.H=function(){var R=new xi(16);return xi!=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=Bw,i.J=function(R,S,F){var W,te,fe,pe,Fe,Ke,ct,Lt,Jt,cr,mr,Pr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],Fe=S[4],Ke=S[5],ct=S[6],Lt=S[7],Jt=S[8],cr=S[9],mr=S[10],Pr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=Fe,R[5]=Ke,R[6]=ct,R[7]=Lt,R[8]=Jt,R[9]=cr,R[10]=mr,R[11]=Pr,R[12]=W*zr+Fe*ui+Jt*yi+S[12],R[13]=te*zr+Ke*ui+cr*yi+S[13],R[14]=fe*zr+ct*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Pr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Ee(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return x++},i.a5=Cn,i.a6=R1,i.a7=Fc,i.a8=Sl,i.a9=xS,i.aA=function(R){if(R.type==="custom")return new gS(R);switch(R.type){case"background":return new tO(R);case"circle":return new hi(R);case"fill":return new yt(R);case"fill-extrusion":return new Lv(R);case"heatmap":return new oa(R);case"hillshade":return new Zs(R);case"line":return new hy(R);case"raster":return new ab(R);case"symbol":return new gy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,Fe,Ke,ct){let Lt;for(Lt in Fe=Fe||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(Fe,Lt)||ut(Lt,Ke,ct));for(Lt in Fe)Object.prototype.hasOwnProperty.call(Fe,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],Fe[Lt])||(pe[Lt].type==="geojson"&&Fe[Lt].type==="geojson"&&Nt(pe,Fe,Lt)?Vt(Ke,{command:"setGeoJSONSourceData",args:[Lt,Fe[Lt].data]}):Wt(Lt,Fe,Ke,ct)):ot(Lt,Fe,Ke))})(R.sources,S.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,Fe,Ke){Fe=Fe||[];let ct=(pe=pe||[]).map(sr),Lt=Fe.map(sr),Jt=pe.reduce(Tr,{}),cr=Fe.reduce(Tr,{}),mr=ct.slice(),Pr=Object.create(null),zr,ui,yi,vn,zi;for(let un=0,Tn=0;un@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],Fe=S[2],Ke=S[3],ct=S[4],Lt=S[5],Jt=S[6],cr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ct*W,R[1]=pe*te+Lt*W,R[2]=Fe*te+Jt*W,R[3]=Ke*te+cr*W,R[4]=ct*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Jt*te-Fe*W,R[7]=cr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=Bn,i.ag=function(R,S){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,Fe=te?E(ko.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,Fe):F=Fe}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=hS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,Fe=W.x-F.x,Ke=pe*fe-Fe*te;if(Ke===0)return null;let ct=(Fe*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ct*fe,R.y+ct*te)},i.al=HC,i.am=Sc,i.an=Ri,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=tu,i.ar=fS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],Fe=S[5],Ke=S[6],ct=S[7],Lt=S[8],Jt=S[9],cr=S[10],mr=S[11],Pr=S[12],zr=S[13],ui=S[14],yi=S[15],vn=F*Fe-W*pe,zi=F*Ke-te*pe,un=F*ct-fe*pe,Tn=W*Ke-te*Fe,pa=W*ct-fe*Fe,ro=te*ct-fe*Ke,Vo=Lt*zr-Jt*Pr,Xa=Lt*ui-cr*Pr,sa=Lt*yi-mr*Pr,Mo=Jt*ui-cr*zr,fo=Jt*yi-mr*zr,lo=cr*yi-mr*ui,Xn=vn*lo-zi*fo+un*Mo+Tn*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(Fe*lo-Ke*fo+ct*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*Tn)*Xn,R[3]=(cr*pa-Jt*ro-mr*Tn)*Xn,R[4]=(Ke*sa-pe*lo-ct*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*un-Pr*ro-yi*zi)*Xn,R[7]=(Lt*ro-cr*un+mr*zi)*Xn,R[8]=(pe*fo-Fe*sa+ct*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Pr*pa-zr*un+yi*vn)*Xn,R[11]=(Jt*un-Lt*pa-mr*vn)*Xn,R[12]=(Fe*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*zi-Pr*Tn-ui*vn)*Xn,R[15]=(Lt*Tn-Jt*zi+cr*vn)*Xn,R):null},i.at=TS,i.au=Gw,i.av=AS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=yS,i.bf=uO,i.bh=ge,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*tu)}let Xa=pe?"center":F.get("text-justify").evaluate(ct,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ct,{},R.canonical)*tu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(un)&&(Pr.vertical=Qx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,cr,Jt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}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((S,F)=>{let W=new Image;W.onload=()=>{S(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=Ce,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=me,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new lS(R).readFields(qQ,[])},i.o=na,i.p=cS,i.q=ue,i.r=Xi,i.s=Ee,i.t=Yi,i.u=ki,i.v=ce,i.w=A,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*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 tt of Ge){this._layerConfigs[tt.id]=tt;let xt=this._layers[tt.id]=i.aA(tt);xt._featureFilter=i.a7(xt.filter),this.keyCache[tt.id]&&delete this.keyCache[tt.id]}for(let tt of Je)delete this.keyCache[tt],delete this._layerConfigs[tt],delete this._layers[tt];this.familiesBySource={};let We=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let tt of We){let xt=tt.map(ar=>this._layers[ar.id]),Ie=xt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",ke=this.familiesBySource[xe];ke||(ke=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",ir=ke[vt];ir||(ir=ke[vt]=[]),ir.push(xt)}}}class o{constructor(Ge){let Je={},We=[];for(let xe in Ge){let ke=Ge[xe],vt=Je[xe]={};for(let ir in ke){let ar=ke[+ir];if(!ar||ar.bitmap.width===0||ar.bitmap.height===0)continue;let vr={x:0,y:0,w:ar.bitmap.width+2,h:ar.bitmap.height+2};We.push(vr),vt[ir]={rect:vr,metrics:ar.metrics}}}let{w:tt,h:xt}=i.p(We),Ie=new i.o({width:tt||1,height:xt||1});for(let xe in Ge){let ke=Ge[xe];for(let vt in ke){let ir=ke[+vt];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let ar=Je[xe][vt].rect;i.o.copy(ir.bitmap,Ie,{x:0,y:0},{x:ar.x+1,y:ar.y+1},ir.bitmap)}}this.image=Ie,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,tt){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()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},ke={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:We},vt=Je.familiesBySource[this.source];for(let qn in vt){let Fn=Ge.layers[qn];if(!Fn)continue;Fn.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 ra=xt.encode(qn),la=[];for(let Ut=0;Ut=wt.maxzoom||wt.visibility!=="none"&&(l(Ut,this.zoom,We),(xe[wt.id]=wt.createBucket({index:Ie.bucketLayerIDs.length,layers:Ut,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ra,sourceID:this.source})).populate(la,ke,this.tileID.canonical),Ie.bucketLayerIDs.push(Ut.map(rr=>rr.id)))}}let ir=i.aF(ke.glyphDependencies,qn=>Object.keys(qn).map(Number));this.inFlightDependencies.forEach(qn=>qn==null?void 0:qn.abort()),this.inFlightDependencies=[];let ar=Promise.resolve({});if(Object.keys(ir).length){let qn=new AbortController;this.inFlightDependencies.push(qn),ar=tt.sendAsync({type:"GG",data:{stacks:ir,source:this.source,tileID:this.tileID,type:"glyphs"}},qn)}let vr=Object.keys(ke.iconDependencies),ii=Promise.resolve({});if(vr.length){let qn=new AbortController;this.inFlightDependencies.push(qn),ii=tt.sendAsync({type:"GI",data:{icons:vr,source:this.source,tileID:this.tileID,type:"icons"}},qn)}let pi=Object.keys(ke.patternDependencies),$r=Promise.resolve({});if(pi.length){let qn=new AbortController;this.inFlightDependencies.push(qn),$r=tt.sendAsync({type:"GI",data:{icons:pi,source:this.source,tileID:this.tileID,type:"patterns"}},qn)}let[di,ji,In]=yield Promise.all([ar,ii,$r]),wi=new o(di),On=new i.bo(ji,In);for(let qn in xe){let Fn=xe[qn];Fn instanceof i.a6?(l(Fn.layers,this.zoom,We),i.bp({bucket:Fn,glyphMap:di,glyphPositions:wi.positions,imageMap:ji,imagePositions:On.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Fn.hasPattern&&(Fn instanceof i.bq||Fn instanceof i.br||Fn instanceof i.bs)&&(l(Fn.layers,this.zoom,We),Fn.addFeatures(ke,this.tileID.canonical,On.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(qn=>!qn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wi.image,imageAtlas:On,glyphMap:this.returnDependencies?di:null,iconMap:this.returnDependencies?ji:null,glyphPositions:this.returnDependencies?wi.positions:null}})}}function l(dt,Ge,Je){let We=new i.z(Ge);for(let tt of dt)tt.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(tt){let xt=new Uint8Array(We.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=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: ${tt.message}`,new Error(Ie)}})}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),tt=new s(Ge);this.loading[Je]=tt;let xt=new AbortController;tt.abort=xt;try{let Ie=yield this.loadVectorTile(Ge,xt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,ke={};Ie.expires&&(ke.expires=Ie.expires),Ie.cacheControl&&(ke.cacheControl=Ie.cacheControl);let vt={};if(We){let ar=We.finish();ar&&(vt.resourceTiming=JSON.parse(JSON.stringify(ar)))}tt.vectorTile=Ie.vectorTile;let ir=tt.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=tt,this.fetching[Je]={rawTileData:xe,cacheControl:ke,resourceTiming:vt};try{let ar=yield ir;return i.e({rawTileData:xe.slice(0)},ar,ke,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],tt.status="done",this.loaded[Je]=tt,Ie}})}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 tt=yield We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor),xt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:ke}=this.fetching[Je];delete this.fetching[Je],xt=i.e({rawTileData:Ie.slice(0)},tt,xe,ke)}else xt=tt;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:tt,redFactor:xt,greenFactor:Ie,blueFactor:xe,baseShift:ke}=Ge,vt=tt.width+2,ir=tt.height+2,ar=i.b(tt)?new i.R({width:vt,height:ir},yield i.bw(tt,-1,-1,vt,ir)):tt,vr=new i.bx(Je,ar,We,xt,Ie,xe,ke);return this.loaded=this.loaded||{},this.loaded[Je]=vr,vr})}removeTile(Ge){let Je=this.loaded,We=Ge.uid;Je&&Je[We]&&delete Je[We]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-ke+xe:xe-ke+Je,Je=ke}Je+We>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var We,tt=Ge&&Ge.type;if(tt==="FeatureCollection")for(We=0;We>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),We=dt.type,tt=0,xt=0,Ie=Je.length,xe=0;xedt},j=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let H=3,re=5,oe=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:tt}=this.options;Je&&console.time("total time");let xt=`prepare ${Ge.length} points`;Je&&console.time(xt),this.points=Ge;let Ie=[];for(let ke=0;ke=We;ke--){let vt=+Date.now();xe=this.trees[ke]=this._createTree(this._cluster(xe,ke)),Je&&console.log("z%d: %d clusters in %dms",ke,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let We=((Ge[0]+180)%360+360)%360-180,tt=Math.max(-90,Math.min(90,Ge[1])),xt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)We=-180,xt=180;else if(We>xt){let ar=this.getClusters([We,tt,180,Ie],Je),vr=this.getClusters([-180,tt,xt,Ie],Je);return ar.concat(vr)}let xe=this.trees[this._limitZoom(Je)],ke=xe.range(ge(We),ie(Ie),ge(xt),ie(tt)),vt=xe.data,ir=[];for(let ar of ke){let vr=this.stride*ar;ir.push(vt[vr+re]>1?Ce(vt,vr,this.clusterProps):this.points[vt[vr+H]])}return ir}getChildren(Ge){let Je=this._getOriginId(Ge),We=this._getOriginZoom(Ge),tt="No cluster with the specified id.",xt=this.trees[We];if(!xt)throw new Error(tt);let Ie=xt.data;if(Je*this.stride>=Ie.length)throw new Error(tt);let xe=this.options.radius/(this.options.extent*Math.pow(2,We-1)),ke=xt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let ir of ke){let ar=ir*this.stride;Ie[ar+4]===Ge&&vt.push(Ie[ar+re]>1?Ce(Ie,ar,this.clusterProps):this.points[Ie[ar+H]])}if(vt.length===0)throw new Error(tt);return vt}getLeaves(Ge,Je,We){let tt=[];return this._appendLeaves(tt,Ge,Je=Je||10,We=We||0,0),tt}getTile(Ge,Je,We){let tt=this.trees[this._limitZoom(Ge)],xt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,ke=xe/Ie,vt=(We-ke)/xt,ir=(We+1+ke)/xt,ar={features:[]};return this._addTileFeatures(tt.range((Je-ke)/xt,vt,(Je+1+ke)/xt,ir),tt.data,Je,We,xt,ar),Je===0&&this._addTileFeatures(tt.range(1-ke/xt,vt,1,ir),tt.data,xt,We,xt,ar),Je===xt-1&&this._addTileFeatures(tt.range(0,vt,ke/xt,ir),tt.data,-1,We,xt,ar),ar.features.length?ar: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,tt,xt){let Ie=this.getChildren(Je);for(let xe of Ie){let ke=xe.properties;if(ke&&ke.cluster?xt+ke.point_count<=tt?xt+=ke.point_count:xt=this._appendLeaves(Ge,ke.cluster_id,We,tt,xt):xt1,ir,ar,vr;if(vt)ir=Le(Je,ke,this.clusterProps),ar=Je[ke],vr=Je[ke+1];else{let $r=this.points[Je[ke+H]];ir=$r.properties;let[di,ji]=$r.geometry.coordinates;ar=ge(di),vr=ie(ji)}let ii={type:1,geometry:[[Math.round(this.options.extent*(ar*xt-We)),Math.round(this.options.extent*(vr*xt-tt))]],tags:ir},pi;pi=vt||this.options.generateId?Je[ke+H]:this.points[Je[ke+H]].id,pi!==void 0&&(ii.id=pi),Ie.features.push(ii)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:We,extent:tt,reduce:xt,minPoints:Ie}=this.options,xe=We/(tt*Math.pow(2,Je)),ke=Ge.data,vt=[],ir=this.stride;for(let ar=0;arJe&&(di+=ke[In+re])}if(di>$r&&di>=Ie){let ji,In=vr*$r,wi=ii*$r,On=-1,qn=((ar/ir|0)<<5)+(Je+1)+this.points.length;for(let Fn of pi){let ra=Fn*ir;if(ke[ra+2]<=Je)continue;ke[ra+2]=Je;let la=ke[ra+re];In+=ke[ra]*la,wi+=ke[ra+1]*la,ke[ra+4]=qn,xt&&(ji||(ji=this._map(ke,ar,!0),On=this.clusterProps.length,this.clusterProps.push(ji)),xt(ji,this._map(ke,ra)))}ke[ar+4]=qn,vt.push(In/di,wi/di,1/0,qn,-1,di),xt&&vt.push(On)}else{for(let ji=0;ji1)for(let ji of pi){let In=ji*ir;if(!(ke[In+2]<=Je)){ke[In+2]=Je;for(let wi=0;wi>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,We){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return We?Object.assign({},Ie):Ie}let tt=this.points[Ge[Je+H]].properties,xt=this.options.map(tt);return We&&xt===tt?Object.assign({},xt):xt}}function Ce(dt,Ge,Je){return{type:"Feature",id:dt[Ge+H],properties:Le(dt,Ge,Je),geometry:{type:"Point",coordinates:[(We=dt[Ge],360*(We-.5)),Se(dt[Ge+1])]}};var We}function Le(dt,Ge,Je){let We=dt[Ge+re],tt=We>=1e4?`${Math.round(We/1e3)}k`:We>=1e3?Math.round(We/100)/10+"k":We,xt=dt[Ge+oe],Ie=xt===-1?{}:Object.assign({},Je[xt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+H],point_count:We,point_count_abbreviated:tt})}function ge(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Ee(dt,Ge,Je,We){let tt=We,xt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,ke=dt[Ge],vt=dt[Ge+1],ir=dt[Je],ar=dt[Je+1];for(let vr=Ge+3;vrtt)Ie=vr,tt=ii;else if(ii===tt){let pi=Math.abs(vr-xt);piWe&&(Ie-Ge>3&&Ee(dt,Ge,Ie,We),dt[Ie+2]=tt,Je-Ie>3&&Ee(dt,Ie,Je,We))}function Ae(dt,Ge,Je,We,tt,xt){let Ie=tt-Je,xe=xt-We;if(Ie!==0||xe!==0){let ke=((dt-Je)*Ie+(Ge-We)*xe)/(Ie*Ie+xe*xe);ke>1?(Je=tt,We=xt):ke>0&&(Je+=Ie*ke,We+=xe*ke)}return Ie=dt-Je,xe=Ge-We,Ie*Ie+xe*xe}function Be(dt,Ge,Je,We){let tt={id:dt==null?null:dt,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")Pe(tt,Je);else if(Ge==="Polygon")Pe(tt,Je[0]);else if(Ge==="MultiLineString")for(let xt of Je)Pe(tt,xt);else if(Ge==="MultiPolygon")for(let xt of Je)Pe(tt,xt[0]);return tt}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=We?(tt*ir-vt*xt)/2:Math.sqrt(Math.pow(vt-tt,2)+Math.pow(ir-xt,2))),tt=vt,xt=ir}let xe=Ge.length-3;Ge[2]=1,Ee(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function je(dt,Ge,Je,We){for(let tt=0;tt1?1:Je}function Vt(dt,Ge,Je,We,tt,xt,Ie,xe){if(We/=Ge,xt>=(Je/=Ge)&&Ie=We)return null;let ke=[];for(let vt of dt){let ir=vt.geometry,ar=vt.type,vr=tt===0?vt.minX:vt.minY,ii=tt===0?vt.maxX:vt.maxY;if(vr>=Je&&ii=We)continue;let pi=[];if(ar==="Point"||ar==="MultiPoint")ot(ir,pi,Je,We,tt);else if(ar==="LineString")ut(ir,pi,Je,We,tt,!1,xe.lineMetrics);else if(ar==="MultiLineString")Nt(ir,pi,Je,We,tt,!1);else if(ar==="Polygon")Nt(ir,pi,Je,We,tt,!0);else if(ar==="MultiPolygon")for(let $r of ir){let di=[];Nt($r,di,Je,We,tt,!0),di.length&&pi.push(di)}if(pi.length){if(xe.lineMetrics&&ar==="LineString"){for(let $r of pi)ke.push(Be(vt.id,ar,$r,vt.tags));continue}ar!=="LineString"&&ar!=="MultiLineString"||(pi.length===1?(ar="LineString",pi=pi[0]):ar="MultiLineString"),ar!=="Point"&&ar!=="MultiPoint"||(ar=pi.length===3?"Point":"MultiPoint"),ke.push(Be(vt.id,ar,pi,vt.tags))}}return ke.length?ke:null}function ot(dt,Ge,Je,We,tt){for(let xt=0;xt=Je&&Ie<=We&&$t(Ge,dt[xt],dt[xt+1],dt[xt+2])}}function ut(dt,Ge,Je,We,tt,xt,Ie){let xe=Wt(dt),ke=tt===0?sr:Tr,vt,ir,ar=dt.start;for(let di=0;diJe&&(ir=ke(xe,ji,In,On,qn,Je),Ie&&(xe.start=ar+vt*ir)):Fn>We?ra=Je&&(ir=ke(xe,ji,In,On,qn,Je),la=!0),ra>We&&Fn<=We&&(ir=ke(xe,ji,In,On,qn,We),la=!0),!xt&&la&&(Ie&&(xe.end=ar+vt*ir),Ge.push(xe),xe=Wt(dt)),Ie&&(ar+=vt)}let vr=dt.length-3,ii=dt[vr],pi=dt[vr+1],$r=tt===0?ii:pi;$r>=Je&&$r<=We&&$t(xe,ii,pi,dt[vr+2]),vr=xe.length-3,xt&&vr>=3&&(xe[vr]!==xe[0]||xe[vr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Wt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,We,tt,xt){for(let Ie of dt)ut(Ie,Ge,Je,We,tt,xt,!1)}function $t(dt,Ge,Je,We){dt.push(Ge,Je,We)}function sr(dt,Ge,Je,We,tt,xt){let Ie=(xt-Ge)/(We-Ge);return $t(dt,xt,Je+(tt-Je)*Ie,1),Ie}function Tr(dt,Ge,Je,We,tt,xt){let Ie=(xt-Je)/(tt-Je);return $t(dt,Ge+(We-Ge)*Ie,xt,1),Ie}function fr(dt,Ge){let Je=[];for(let We=0;We0&&Ge.size<(tt?Ie:We))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let ke=0;keIe)&&(Je.numSimplified++,xe.push(Ge[ke],Ge[ke+1])),Je.numPoints++;tt&&function(ke,vt){let ir=0;for(let ar=0,vr=ke.length,ii=vr-2;ar0===vt)for(let ar=0,vr=ke.length;ar24)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 tt=function(xt,Ie){let xe=[];if(xt.type==="FeatureCollection")for(let ke=0;ke1&&console.time("creation"),ii=this.tiles[vr]=Gt(Ge,Je,We,tt,vt),this.tileCoords.push({z:Je,x:We,y:tt}),ir)){ir>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,We,tt,ii.numFeatures,ii.numPoints,ii.numSimplified),console.timeEnd("creation"));let la=`z${Je}`;this.stats[la]=(this.stats[la]||0)+1,this.total++}if(ii.source=Ge,xt==null){if(Je===vt.indexMaxZoom||ii.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===xt)continue;if(xt!=null){let la=xt-Je;if(We!==Ie>>la||tt!==xe>>la)continue}}if(ii.source=null,Ge.length===0)continue;ir>1&&console.time("clipping");let pi=.5*vt.buffer/vt.extent,$r=.5-pi,di=.5+pi,ji=1+pi,In=null,wi=null,On=null,qn=null,Fn=Vt(Ge,ar,We-pi,We+di,0,ii.minX,ii.maxX,vt),ra=Vt(Ge,ar,We+$r,We+ji,0,ii.minX,ii.maxX,vt);Ge=null,Fn&&(In=Vt(Fn,ar,tt-pi,tt+di,1,ii.minY,ii.maxY,vt),wi=Vt(Fn,ar,tt+$r,tt+ji,1,ii.minY,ii.maxY,vt),Fn=null),ra&&(On=Vt(ra,ar,tt-pi,tt+di,1,ii.minY,ii.maxY,vt),qn=Vt(ra,ar,tt+$r,tt+ji,1,ii.minY,ii.maxY,vt),ra=null),ir>1&&console.timeEnd("clipping"),ke.push(In||[],Je+1,2*We,2*tt),ke.push(wi||[],Je+1,2*We,2*tt+1),ke.push(On||[],Je+1,2*We+1,2*tt),ke.push(qn||[],Je+1,2*We+1,2*tt+1)}}getTile(Ge,Je,We){Ge=+Ge,Je=+Je,We=+We;let tt=this.options,{extent:xt,debug:Ie}=tt;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,We);let vt,ir=Ge,ar=Je,vr=We;for(;!vt&&ir>0;)ir--,ar>>=1,vr>>=1,vt=this.tiles[lr(ir,ar,vr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",ir,ar,vr),console.time("drilling down")),this.splitTile(vt.source,ir,ar,vr,Ge,Je,We),Ie>1&&console.timeEnd("drilling down"),this.tiles[ke]?St(this.tiles[ke],xt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ar.properties=ii;let pi={};for(let $r of vr)pi[$r]=ke[$r].evaluate(ir,ar);return pi},Ie.reduce=(ii,pi)=>{ar.properties=pi;for(let $r of vr)ir.accumulated=ii[$r],ii[$r]=vt[$r].evaluate(ir,ar)},Ie}(Ge)).load((yield this._pendingData).features):(tt=yield this._pendingData,new er(tt,Ge.geojsonVtOptions)),this.loaded={};let xt={};if(We){let Ie=We.finish();Ie&&(xt.resourceTiming={},xt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return xt}catch(xt){if(delete this._pendingRequest,i.bB(xt))return{abandoned:!0};throw xt}var tt})}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 tt=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(tt.result==="error")throw new Error(tt.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));We={type:"FeatureCollection",features:We.features.filter(Ie=>tt.value.evaluate({zoom:0},Ie))}}return We})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:We}=Ge;if(Ge.request){let tt=yield i.h(Ge.request,Je);return this._dataUpdateable=Lr(tt.data,We)?ti(tt.data,We):void 0,tt.data}if(typeof Ge.data=="string")try{let tt=JSON.parse(Ge.data);return this._dataUpdateable=Lr(tt,We)?ti(tt,We):void 0,tt}catch(tt){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(tt,xt,Ie){var xe,ke,vt,ir;if(xt.removeAll&&tt.clear(),xt.remove)for(let ar of xt.remove)tt.delete(ar);if(xt.add)for(let ar of xt.add){let vr=wr(ar,Ie);vr!=null&&tt.set(vr,ar)}if(xt.update)for(let ar of xt.update){let vr=tt.get(ar.id);if(vr==null)continue;let ii=!ar.removeAllProperties&&(((xe=ar.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((ke=ar.addOrUpdateProperties)===null||ke===void 0?void 0:ke.length)>0);if((ar.newGeometry||ar.removeAllProperties||ii)&&(vr=Object.assign({},vr),tt.set(ar.id,vr),ii&&(vr.properties=Object.assign({},vr.properties))),ar.newGeometry&&(vr.geometry=ar.newGeometry),ar.removeAllProperties)vr.properties={};else if(((vt=ar.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let pi of ar.removeProperties)Object.prototype.hasOwnProperty.call(vr.properties,pi)&&delete vr.properties[pi];if(((ir=ar.addOrUpdateProperties)===null||ir===void 0?void 0:ir.length)>0)for(let{key:pi,value:$r}of ar.addOrUpdateProperties)vr.properties[pi]=$r}}(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 Vr{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 tt=this.workerSources[Je][We.type][We.source];delete this.workerSources[Je][We.type][We.source],tt.removeSource!==void 0&&tt.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 tt=this.workerSources[Ge][We];for(let xt in tt)tt[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 tt={pluginStatus:"loaded",pluginURL:We};return i.bD.setState(tt),tt}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 tt={sendAsync:(xt,Ie)=>(xt.targetMapId=Ge,this.actor.sendAsync(xt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][We]=new u(tt,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][We]=new Br(tt,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][We]=new this.externalWorkerSourceTypes[Je](tt,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 Vr(self)),Vr}),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,_=!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=st=>{let Tt=Q++;return ee[Tt]=st,Tt},ue.removeThrottleControl=st=>{delete ee[st],Oe()},ue.getImage=(st,Tt,Yt=!0)=>new Promise((Kt,xr)=>{f.supported&&(st.headers||(st.headers={}),st.headers.accept="image/webp,*/*"),a.e(st,{type:"image"}),w.push({abortController:Tt,requestParameters:st,supportImageRefresh:Yt,state:"queued",onError:Ir=>{xr(Ir)},onSuccess:Ir=>{Kt(Ir)}}),Oe()});let le=st=>a._(this,void 0,void 0,function*(){st.state="running";let{requestParameters:Tt,supportImageRefresh:Yt,onError:Kt,onSuccess:xr,abortController:Ir}=st,ve=Yt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((qe,et)=>qe&&et==="accept",!0));B++;let be=ve?Ze(Tt,Ir):a.m(Tt,Ir);try{let qe=yield be;delete st.abortController,st.state="completed",qe.data instanceof HTMLImageElement||a.b(qe.data)?xr(qe):qe.data&&xr({data:yield(Re=qe.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:qe.cacheControl,expires:qe.expires})}catch(qe){delete st.abortController,Kt(qe)}finally{B--,Oe()}var Re}),Oe=()=>{let st=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Yt=w.shift();Yt.abortController.signal.aborted?Tt--:le(Yt)}},Ze=(st,Tt)=>new Promise((Yt,Kt)=>{let xr=new Image,Ir=st.url,ve=st.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Ir))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Kt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Yt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Kt(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."))},xr.src=Ir})}(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 E(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 M(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,Oe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Ze}=this,{gl:st}=Ze;if(this.useMipmap=!!(B&&B.useMipmap),st.bindTexture(st.TEXTURE_2D,this.texture),Ze.pixelStoreUnpackFlipY.set(!1),Ze.pixelStoreUnpack.set(1),Ze.pixelStoreUnpackPremultiplyAlpha.set(this.format===st.RGBA&&(!B||B.premultiply!==!1)),Oe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?st.texImage2D(st.TEXTURE_2D,0,this.format,this.format,st.UNSIGNED_BYTE,w):st.texImage2D(st.TEXTURE_2D,0,this.format,ee,le,0,this.format,st.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Yt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?st.texSubImage2D(st.TEXTURE_2D,0,Tt,Yt,st.RGBA,st.UNSIGNED_BYTE,w):st.texSubImage2D(st.TEXTURE_2D,0,Tt,Yt,ee,le,st.RGBA,st.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&st.generateMipmap(st.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 A 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:Oe}=this.patterns[le],Ze=Oe.x+1,st=Oe.y+1,Tt=this.getImage(le).data,Yt=Tt.width,Kt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Ze,y:st},{width:Yt,height:Kt}),a.R.copy(Tt,ee,{x:0,y:Kt-1},{x:Ze,y:st-1},{width:Yt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Ze,y:st+Kt},{width:Yt,height:1}),a.R.copy(Tt,ee,{x:Yt-1,y:0},{x:Ze-1,y:st},{width:1,height:Kt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Ze+Yt,y:st},{width:1,height:Kt})}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 O(ue,w,B,Q,ee,le,Oe,Ze,st){for(let Tt=w;Tt-1);st++,le[st]=Ze,Oe[st]=Tt,Oe[st+1]=z}for(let Ze=0,st=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 Oe=yield Q.requests[le];for(let Ze in Oe)this._doesCharSupportLocalGlyph(+Ze)||(Q.glyphs[+Ze]=Oe[+Ze]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:Oe[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 Oe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Oe.width||60,height:Oe.height||60},Oe.data),metrics:{width:Oe.glyphWidth/2||24,height:Oe.glyphHeight/2||24,left:Oe.glyphLeft/2+.5||0,top:Oe.glyphTop/2-27.5||-8,advance:Oe.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,Oe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Ze=yield a.l(Oe,new AbortController);if(!Ze||!Ze.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let st={};for(let Tt of a.n(Ze.data))st[Tt.id]=Tt;return st})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:Oe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Ze=this.size=ue+4*w,st=this._createCanvas(Ze),Tt=this.ctx=st.getContext("2d",{willReadFrequently:!0});Tt.font=`${Oe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.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),Oe=Math.ceil(B),Ze=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),st=Math.min(this.size-this.buffer,Oe+Math.ceil(Q)),Tt=Ze+2*this.buffer,Yt=st+2*this.buffer,Kt=Math.max(Tt*Yt,0),xr=new Uint8ClampedArray(Kt),Ir={data:xr,width:Tt,height:Yt,glyphWidth:Ze,glyphHeight:st,glyphTop:Oe,glyphLeft:0,glyphAdvance:w};if(Ze===0||st===0)return Ir;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:qe}=this;ve.clearRect(be,be,Ze,st),ve.fillText(ue,be,be+Oe);let et=ve.getImageData(be,be,Ze,st);qe.fill(z,0,Kt),Re.fill(0,0,Kt);for(let Xe=0;Xe0?tr*tr:0,Re[Ht]=tr<0?tr*tr:0}}O(qe,0,0,Tt,Yt,Tt,this.f,this.v,this.z),O(Re,be,be,Ze,st,Tt,this.f,this.v,this.z);for(let Xe=0;Xe1&&(st=w[++Ze]);let Yt=Math.abs(Tt-st.left),Kt=Math.abs(Tt-st.right),xr=Math.min(Yt,Kt),Ir,ve=le/Q*(ee+1);if(st.isDash){let be=ee-Math.abs(ve);Ir=Math.sqrt(xr*xr+be*be)}else Ir=ee-Math.sqrt(xr*xr+ve*ve);this.data[Oe+Tt]=Math.max(0,Math.min(255,Ir+128))}}}addRegularDash(w){for(let Ze=w.length-1;Ze>=0;--Ze){let st=w[Ze],Tt=w[Ze+1];st.zeroLength?w.splice(Ze,1):Tt&&Tt.isDash===st.isDash&&(Tt.left=st.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,Oe=w[le];for(let Ze=0;Ze1&&(Oe=w[++le]);let st=Math.abs(Ze-Oe.left),Tt=Math.abs(Ze-Oe.right),Yt=Math.min(st,Tt);this.data[ee+Ze]=Math.max(0,Math.min(255,(Oe.isDash?Yt:-Yt)+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 Le=Math.floor(u.hardwareConcurrency/2),ge,ie;function Se(){return ge||(ge=new Ce),ge}Ce.workerCount=a.C(globalThis)?Math.max(Math.min(Le,3),1):1;class Ee{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 Ae(){return ie||(ie=new Ee(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 Pe(ue,w,B,Q,ee,le){let Oe=function(Kt,xr,Ir){if(Kt)for(let ve of Kt){let be=xr[ve];if(be&&be.source===Ir&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Ir&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Ze=le.maxPitchScaleFactor(),st=ue.tilesIn(Q,Ze,Oe);st.sort(me);let Tt=[];for(let Kt of st)Tt.push({wrappedTileID:Kt.tileID.wrapped().key,queryResults:Kt.tile.queryRenderedFeatures(w,B,ue._state,Kt.queryGeometry,Kt.cameraQueryGeometry,Kt.scale,ee,le,Ze,Be(ue.transform,Kt.tileID))});let Yt=function(Kt){let xr={},Ir={};for(let ve of Kt){let be=ve.queryResults,Re=ve.wrappedTileID,qe=Ir[Re]=Ir[Re]||{};for(let et in be){let Xe=be[et],it=qe[et]=qe[et]||{},Ft=xr[et]=xr[et]||[];for(let Ht of Xe)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Ft.push(Ht))}}return xr}(Tt);for(let Kt in Yt)Yt[Kt].forEach(xr=>{let Ir=xr.feature,ve=ue.getFeatureState(Ir.layer["source-layer"],Ir.id);Ir.source=Ir.layer.source,Ir.layer["source-layer"]&&(Ir.sourceLayer=Ir.layer["source-layer"]),Ir.state=ve});return Yt}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 De(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 je{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),Oe=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,Oe)=>{w.reloadPromise={resolve:le,reject:Oe}})}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 pt 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 De(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 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,Oe=Q.data;w.texture=this.map.painter.getTileTexture(Oe.width),w.texture?w.texture.update(Oe,{useMipmap:!0}):(w.texture=new g(ee,Oe,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 Vt extends pt{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 Oe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Ze={type:this.type,uid:w.uid,source:this.id,rawImageData:Oe,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 st=yield w.actor.sendAsync({type:"LDT",data:Ze});w.dem=st,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,Oe=(B.x+1+Q)%Q,Ze=B.x+1===Q?w.wrap+1:w.wrap,st={};return st[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},st[new a.S(w.overscaledZ,Ze,B.z,Oe,B.y).key]={backfilled:!1},B.y>0&&(st[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},st[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},st[new a.S(w.overscaledZ,Ze,B.z,Oe,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 ut=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Wt 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,Oe=1/0,Ze=-1/0,st=-1/0;for(let xr of ee)le=Math.min(le,xr.x),Oe=Math.min(Oe,xr.y),Ze=Math.max(Ze,xr.x),st=Math.max(st,xr.y);let Tt=Math.max(Ze-le,st-Oe),Yt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Kt=Math.pow(2,Yt);return new a.a1(Yt,Math.floor((le+Ze)/2*Kt),Math.floor((Oe+st)/2*Kt))}(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,ut.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 Nt extends Wt{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,ut.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 $t extends Wt{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(Oe=>typeof Oe!="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,ut.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 Oe=this.tiles[le];Oe.state!=="loaded"&&(Oe.state="loaded",Oe.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 sr={},Tr=ue=>{switch(ue){case"geojson":return ot;case"image":return Wt;case"raster":return pt;case"raster-dem":return Vt;case"vector":return lt;case"video":return Nt;case"canvas":return $t}return sr[ue]},fr="RTLPluginLoaded";class $e extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_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(fr))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let St=null;function Qt(){return St||(St=new $e),St}class Gt{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(Tt)).filter(Boolean);if(st.length!==0){Ze.layers=st,Ze.stateDependentLayerIds&&(Ze.stateDependentLayers=Ze.stateDependentLayerIds.map(Tt=>st.filter(Yt=>Yt.id===Tt)[0]));for(let Tt of st)Oe[Tt.id]=Ze}}return Oe}(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,Qt().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,Oe,Ze,st,Tt,Yt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:Oe,tileSize:this.tileSize,pixelPosMatrix:Yt,transform:st,params:Ze,queryPadding:this.queryPadding*Tt},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:"",Oe=ee._geojsonTileLayer||ee[le];if(!Oe)return;let Ze=a.a7(B&&B.filter),{z:st,x:Tt,y:Yt}=this.tileID.canonical,Kt={z:st,x:Tt,y:Yt};for(let xr=0;xrQ)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 Oe=this._getAndRemoveByKey(this.order[0]);Oe&&this.onRemove(Oe)}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 It{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 Oe in le)delete ee[Oe]}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 Oe in this.stateChanges[ee])this.state[ee][Oe]||(this.state[ee][Oe]={}),a.e(this.state[ee][Oe],this.stateChanges[ee][Oe]),le[Oe]=this.state[ee][Oe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let Oe in this.state[ee])le[Oe]={},this.state[ee][Oe]={};else for(let Oe in this.deletedStates[ee]){if(this.deletedStates[ee][Oe]===null)this.state[ee][Oe]={};else for(let Ze of Object.keys(this.deletedStates[ee][Oe]))delete this.state[ee][Oe][Ze];le[Oe]=this.state[ee][Oe]}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 mt 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,Oe,Ze)=>{let st=new(Tr(le.type))(ee,le,Oe,Ze);if(st.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${st.id}`);return st})(w,B,Q,this),this._tiles={},this._cache=new _t(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new It,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(er).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,Oe=ee.tileID,Ze=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),st=new a.P(Oe.canonical.x,Oe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-Oe.overscaledZ||st.y-Ze.y||st.x-Ze.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(er).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(Oe)>1&&(Math.abs(Oe+st)===1?Oe+=st:Math.abs(Oe-st)===1&&(Oe-=st)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,Oe,Ze),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].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 Oe=this._tiles[le];if(ee[le]||!Oe.hasData()||Oe.tileID.overscaledZ<=B||Oe.tileID.overscaledZ>Q)continue;let Ze=Oe.tileID;for(;Oe&&Oe.tileID.overscaledZ>B+1;){let Tt=Oe.tileID.scaledTo(Oe.tileID.overscaledZ-1);Oe=this._tiles[Tt.key],Oe&&Oe.hasData()&&(Ze=Tt)}let st=Ze;for(;st.overscaledZ>B;)if(st=st.scaledTo(st.overscaledZ-1),w[st.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,Oe){let Ze={},st={},Tt=Object.keys(w),Yt=u.now();for(let Kt of Tt){let xr=w[Kt],Ir=this._tiles[Kt];if(!Ir||Ir.fadeEndTime!==0&&Ir.fadeEndTime<=Yt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Ze[Re.tileID.key]=Re.tileID),st[Kt]=xr}this._retainLoadedChildren(st,ee,Q,w);for(let Kt in Ze)w[Kt]||(this._coveredTiles[Kt]=!0,w[Kt]=Ze[Kt]);if(Oe){let Kt={},xr={};for(let Ir of le)this._tiles[Ir.key].hasData()?Kt[Ir.key]=Ir:xr[Ir.key]=Ir;for(let Ir in xr){let ve=xr[Ir].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Kt[ve[0].key]=w[ve[0].key]=ve[0],Kt[ve[1].key]=w[ve[1].key]=ve[1],Kt[ve[2].key]=w[ve[2].key]=ve[2],Kt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Ir])}for(let Ir in xr){let ve=xr[Ir],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),qe=be||Re||null;if(qe){Kt[qe.tileID.key]=w[qe.tileID.key]=qe.tileID;for(let et in Kt)Kt[et].isChildOf(qe.tileID)&&delete Kt[et]}}for(let Ir in this._tiles)Kt[Ir]||(this._coveredTiles[Ir]=!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(Yt=>new a.S(Yt.canonical.z,Yt.wrap,Yt.canonical.z,Yt.canonical.x,Yt.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(Yt=>this._source.hasTile(Yt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-mt.maxOverzooming,this._source.minzoom),Oe=Math.max(ee+mt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Yt={};for(let Kt of Q)if(Kt.canonical.z>this._source.minzoom){let xr=Kt.scaledTo(Kt.canonical.z-1);Yt[xr.key]=xr;let Ir=Kt.scaledTo(Math.max(this._source.minzoom,Math.min(Kt.canonical.z,5)));Yt[Ir.key]=Ir}Q=Q.concat(Object.values(Yt))}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 st=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(st,le,Oe,ee,Q,B);for(let Yt in st)this._tiles[Yt].clearFadeHold();let Tt=a.ab(this._tiles,st);for(let Yt of Tt){let Kt=this._tiles[Yt];Kt.hasSymbolBuckets&&!Kt.holdingForFade()?Kt.setHoldDuration(this.map._fadeDuration):Kt.hasSymbolBuckets&&!Kt.symbolFadeFinished()||this._removeTile(Yt)}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={},Oe=Math.max(B-mt.maxOverzooming,this._source.minzoom),Ze=Math.max(B+mt.maxUnderzooming,this._source.minzoom),st={};for(let Tt of w){let Yt=this._addTile(Tt);ee[Tt.key]=Tt,Yt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Ir=this.getTile(xr);if(Ir&&Ir.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Kt=Yt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=Oe;--xr){let Ir=Tt.scaledTo(xr);if(le[Ir.key])break;if(le[Ir.key]=!0,Yt=this.getTile(Ir),!Yt&&Kt&&(Yt=this._addTile(Ir)),Yt){let ve=Yt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Kt)&&(ee[Ir.key]=Ir),Kt=Yt.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 Gt(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 Oe=Q?le.getCameraQueryGeometry(w):w,Ze=w.map(ve=>le.pointCoordinate(ve,this.terrain)),st=Oe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Yt=1/0,Kt=1/0,xr=-1/0,Ir=-1/0;for(let ve of st)Yt=Math.min(Yt,ve.x),Kt=Math.min(Kt,ve.y),xr=Math.max(xr,ve.x),Ir=Math.max(Ir,ve.y);for(let ve=0;ve=0&&Xe[1].y+et>=0){let it=Ze.map(Ht=>Re.getTilePoint(Ht)),Ft=st.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Ft,scale:qe})}}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(lr(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 er(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 lr(ue){return ue==="raster"||ue==="image"||ue==="video"}mt.maxOverzooming=10,mt.maxUnderzooming=3;class wr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Oe)/Ze:0;return this.points[le].mult(1-st).add(this.points[B].mult(st))}}function Lr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ti{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 Oe=0;Oethis.width||ee<0||B>this.height)return[];let st=[];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 Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let Oe=w-Q,Ze=w+Q,st=B-Q,Tt=B+Q;if(Ze<0||Oe>this.width||Tt<0||st>this.height)return!1;let Yt=[];return this._forEachCell(Oe,st,Ze,Tt,this._queryCellCircle,Yt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Yt.length>0}_queryCell(w,B,Q,ee,le,Oe,Ze,st){let{seenUids:Tt,hitTest:Yt,overlapMode:Kt}=Ze,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,qe=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!st||st(qe))&&(!Yt||!Lr(Kt,qe.overlapMode))&&(Oe.push({key:qe,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Yt))return!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,qe=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!st||st(qe))&&(!Yt||!Lr(Kt,qe.overlapMode))){let et=ve[Re],Xe=ve[Re+1],it=ve[Re+2];if(Oe.push({key:qe,x1:et-it,y1:Xe-it,x2:et+it,y2:Xe+it}),Yt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,Oe,Ze,st){let{circle:Tt,seenUids:Yt,overlapMode:Kt}=Ze,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Yt.box[be]){Yt.box[be]=!0;let Re=4*be,qe=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!st||st(qe))&&!Lr(Kt,qe.overlapMode))return Oe.push(!0),!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!Yt.circle[be]){Yt.circle[be]=!0;let Re=3*be,qe=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!st||st(qe))&&!Lr(Kt,qe.overlapMode))return Oe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,Oe,Ze,st){let Tt=this._convertToXCellCoord(w),Yt=this._convertToYCellCoord(B),Kt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Ir=Tt;Ir<=Kt;Ir++)for(let ve=Yt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Ir,Oe,Ze,st))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,Oe){let Ze=ee-w,st=le-B,Tt=Q+Oe;return Tt*Tt>Ze*Ze+st*st}_circleAndRectCollide(w,B,Q,ee,le,Oe,Ze){let st=(Oe-ee)/2,Tt=Math.abs(w-(ee+st));if(Tt>st+Q)return!1;let Yt=(Ze-le)/2,Kt=Math.abs(B-(le+Yt));if(Kt>Yt+Q)return!1;if(Tt<=st||Kt<=Yt)return!0;let xr=Tt-st,Ir=Kt-Yt;return xr*xr+Ir*Ir<=Q*Q}}function Br(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 Vr(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 dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],$r(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,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),qe=[256/B.width*2+1,256/B.height*2+1],et=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;et.clear();let Xe=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Ft=B.transform.width/B.transform.height,Ht=!1;for(let tr=0;trMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt){let Kt=B/24,xr=w.lineOffsetX*Kt,Ir=w.lineOffsetY*Kt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,qe=w.lineStartIndex+w.lineLength,et=tt(Kt,Ze,xr,Ir,Q,w,Yt,ue);if(!et)return{notEnoughRoom:!0};let Xe=dt(et.first.point.x,et.first.point.y,Oe,ue.getElevation).point,it=dt(et.last.point.x,et.last.point.y,Oe,ue.getElevation).point;if(ee&&!Q){let Ft=xt(w.writingMode,Xe,it,Tt);if(Ft)return Ft}ve=[et.first];for(let Ft=w.glyphStartIndex+1;Ft0?Xe.point:function(Ht,tr,dr,Sr,Or,Wr){return xe(Ht,tr,dr,1,Or,Wr)}(ue.tileAnchorPoint,et,Re,0,le,ue),Ft=xt(w.writingMode,Re,it,Tt);if(Ft)return Ft}let be=vr(Kt*Ze.getoffsetX(w.glyphStartIndex),xr,Ir,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Yt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(st,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let Oe=ue.add(ue.sub(w)._unit()),Ze=ee!==void 0?dt(Oe.x,Oe.y,ee,le.getElevation).point:vt(Oe.x,Oe.y,le).point,st=B.sub(Ze);return B.add(st._mult(Q/st.mag()))}function ke(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=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let Oe=ue-B.direction;return function(Ze,st,Tt,Yt,Kt){return xe(Ze,st,Tt,Yt,void 0,Kt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Oe),w.lineVertexArray.gety(Oe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(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=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function ir(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ar(ue,w,B,Q,ee,le,Oe,Ze,st){if(Ze.projectionCache.offsets[ue])return Ze.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+st.direction=ee)return Ze.projectionCache.offsets[ue]=Tt,Tt;let Yt=ke(ue+st.direction,Ze,st),Kt=ir(Yt.sub(B),Oe,st.direction),xr=B.add(Kt),Ir=Yt.add(Kt);return Ze.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Ir)||Tt,Ze.projectionCache.offsets[ue]}function vr(ue,w,B,Q,ee,le,Oe,Ze,st){let Tt=Q?ue-w:ue+w,Yt=Tt>0?1:-1,Kt=0;Q&&(Yt*=-1,Kt=Math.PI),Yt<0&&(Kt+=Math.PI);let xr,Ir=Yt>0?le+ee:le+ee+1;Ze.projectionCache.cachedAnchorPoint?xr=Ze.projectionCache.cachedAnchorPoint:(xr=vt(Ze.tileAnchorPoint.x,Ze.tileAnchorPoint.y,Ze).point,Ze.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,qe=xr,et=0,Xe=0,it=Math.abs(Tt),Ft=[],Ht;for(;et+Xe<=it;){if(Ir+=Yt,Ir=Oe)return null;et+=Xe,qe=Re,be=ve;let Sr={absOffsetX:it,direction:Yt,distanceFromAnchor:et,previousVertex:qe};if(Re=ke(Ir,Ze,Sr),B===0)Ft.push(qe),Ht=Re.sub(qe);else{let Or,Wr=Re.sub(qe);Or=Wr.mag()===0?ir(ke(Ir+Yt,Ze,Sr).sub(Re),B,Yt):ir(Wr,B,Yt),be||(be=qe.add(Or)),ve=ar(Ir,Or,Re,le,Oe,be,B,Ze,Sr),Ft.push(be),Ht=ve.sub(be)}Xe=Ht.mag()}let tr=Ht._mult((it-et)/Xe)._add(be||qe),dr=Kt+Math.atan2(Re.y-qe.y,Re.x-qe.x);return Ft.push(tr),{point:tr,angle:st?dr:0,path:Ft}}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 pi(ue,w){for(let B=0;B=1;fa--)Cn.push(cn.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(Cn.length>0){let fa=Cn[0].clone(),$a=Cn[0].clone();for(let Co=1;Co=Wr.x&&$a.x<=ni.x&&fa.y>=Wr.y&&$a.y<=ni.y?[Cn]:$a.xni.x||$a.yni.y?[]:a.al([Cn],Wr.x,Wr.y,ni.x,ni.y)}for(let fa of Aa){Pi.reset(fa,.25*Or);let $a=0;$a=Pi.length<=.5*Or?1:Math.ceil(Pi.paddedLength/Kn)+1;for(let Co=0;Co<$a;Co++){let Qa=Co/Math.max($a-1,1),mo=Pi.lerp(Qa),Bo=mo.x+di,Ps=mo.y+di;qe.push(Bo,Ps,Or,0);let Ts=Bo-Or,wo=Ps-Or,To=Bo+Or,hl=Ps+Or;if(Sr=Sr&&this.isOffscreen(Ts,wo,To,hl),dr=dr||this.isInsideGrid(Ts,wo,To,hl),w!=="always"&&this.grid.hitTestCircle(Bo,Ps,Or,w,xr)&&(tr=!0,!Yt))return{circles:[],offscreen:!1,collisionDetected:tr}}}}return{circles:!Yt&&tr||!dr||Xedt(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,Oe=-1/0;for(let Yt of w){let Kt=new a.P(Yt.x+di,Yt.y+di);Q=Math.min(Q,Kt.x),ee=Math.min(ee,Kt.y),le=Math.max(le,Kt.x),Oe=Math.max(Oe,Kt.y),B.push(Kt)}let Ze=this.grid.query(Q,ee,le,Oe).concat(this.ignoredGrid.query(Q,ee,le,Oe)),st={},Tt={};for(let Yt of Ze){let Kt=Yt.key;if(st[Kt.bucketInstanceId]===void 0&&(st[Kt.bucketInstanceId]={}),st[Kt.bucketInstanceId][Kt.featureIndex])continue;let xr=[new a.P(Yt.x1,Yt.y1),new a.P(Yt.x2,Yt.y1),new a.P(Yt.x2,Yt.y2),new a.P(Yt.x1,Yt.y2)];a.am(B,xr)&&(st[Kt.bucketInstanceId][Kt.featureIndex]=!0,Tt[Kt.bucketInstanceId]===void 0&&(Tt[Kt.bucketInstanceId]=[]),Tt[Kt.bucketInstanceId].push(Kt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,Oe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:Oe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,Oe){let Ze=Q?this.ignoredGrid:this.grid,st={bucketInstanceId:ee,featureIndex:le,collisionGroupID:Oe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),tr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(tr),allPointsOccluded:!dr}}}function In(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wi{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 On{constructor(w,B,Q,ee,le){this.text=new wi(w?w.text:null,B,Q,le),this.icon=new wi(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 Fn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ra{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class la{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 Ut(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:Oe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(Oe-.5)*B+Q[1]*ee)}class wt{constructor(w,B,Q,ee,le,Oe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new ji(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new la(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Oe,Oe&&(Oe.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),Oe=Q.latestFeatureIndex;if(!le||!Oe||B.id!==le.layerIds[0])return;let Ze=Q.collisionBoxArray,st=le.layers[0].layout,Tt=le.layers[0].paint,Yt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Kt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Ir=this.transform.calculatePosMatrix(xr),ve=st.get("text-pitch-alignment")==="map",be=st.get("text-rotation-alignment")==="map",Re=In(Q,1,this.transform.zoom),qe=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),et=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),Xe=Br(Ir,ve,be,this.transform,Re),it=null;if(ve){let Ht=Vr(Ir,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ra(le.bucketInstanceId,Oe,le.sourceLayerIndex,le.index,Q.tileID);let Ft={bucket:le,layout:st,translationText:qe,translationIcon:et,posMatrix:Ir,unwrappedTileID:xr,textLabelPlaneMatrix:Xe,labelToScreenMatrix:it,scale:Yt,textPixelRatio:Kt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Ze,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Ft})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Ft})}attemptAnchorPlacement(w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve,be,Re,qe,et,Xe){let it=a.aq[w.textAnchor],Ft=[w.textOffset0,w.textOffset1],Ht=Ut(it,Q,ee,Ft,le),tr=this.collisionIndex.placeCollisionBox(B,xr,st,Tt,Yt,Ze,Oe,Re,Kt.predicate,Xe,Ht);if((!et||this.collisionIndex.placeCollisionBox(et,xr,st,Tt,Yt,Ze,Oe,qe,Kt.predicate,Xe,Ht).placeable)&&tr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Ir.crossTileID].anchor),Ir.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ir.crossTileID]={textOffset:Ft,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Ir,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Ir),this.placedOrientations[Ir.crossTileID]=be),{shift:Ht,placedGlyphBoxes:tr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:Oe,translationIcon:Ze,posMatrix:st,unwrappedTileID:Tt,textLabelPlaneMatrix:Yt,labelToScreenMatrix:Kt,textPixelRatio:xr,holdingForFade:Ir,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,qe=le.get("text-optional"),et=le.get("icon-optional"),Xe=a.ar(le,"text-overlap","text-allow-overlap"),it=Xe==="always",Ft=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Ft==="always",tr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",Wr=it&&(Ht||!ee.hasIconData()||et),ni=Ht&&(it||!ee.hasTextData()||qe);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Pi=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),cn=(ln,Cn,Kn)=>{var Aa,fa;if(B[ln.crossTileID])return;if(Ir)return void(this.placements[ln.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;Cn.textFeatureIndex?hl=Cn.textFeatureIndex:ln.useRuntimeCollisionCircles&&(hl=ln.featureIndex),Cn.verticalTextFeatureIndex&&(Ul=Cn.verticalTextFeatureIndex);let au=Cn.textBox;if(au){let Tl=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[ln.crossTileID];He&&(this.placedOrientations[ln.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,ln))}return Ne},Al=(Te,Ne)=>{if(ee.allowVerticalPlacement&&ln.numVerticalGlyphVertices>0&&Cn.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Ps=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=ln.textAnchorOffsetStartIndex,se=ln.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,Xe,xr,st,Tt,dr,tr,Oe,Re.predicate,Pi);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,ln),this.placedOrientations[ln.crossTileID]=He),Ye};Al(()=>Te(au,a.ah.horizontal),()=>{let Ne=Cn.verticalTextBox;return ee.allowVerticalPlacement&&ln.numVerticalGlyphVertices>0&&Ne?Te(Ne,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[ln.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,kt,nt)=>{let jt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=ln.textBoxScale,Hr=Sr&&Ft==="never"?kt:null,qr=null,_i=Xe==="never"?1:2,bi="never";Te&&_i++;for(let Zr=0;Zr<_i;Zr++){for(let ai=X;aiNe(au,Cn.iconBox,a.ah.horizontal),()=>{let Ye=Cn.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&ln.numVerticalGlyphVertices>0&&Ye?Ne(Ye,Cn.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[ln.crossTileID];Ye&&(this.variableOffsets[ln.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,ln,He))}}}if(Ts=Bo,$a=Ts&&Ts.placeable,Qa=Ts&&Ts.offscreen,ln.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(ln.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,be,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(Xe,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,st,Tt,Yt,Kt,Q,dr,Re.predicate,ln.collisionCircleDiameter,X,Oe,Pi),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(Cn.iconFeatureIndex&&(Lu=Cn.iconFeatureIndex),Cn.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,Ft,xr,st,Tt,dr,tr,Ze,Re.predicate,Pi,Sr&&mo?mo:void 0);Ps&&Ps.placeable&&Cn.verticalIconBox?(To=Tl(Cn.verticalIconBox),Co=To.placeable):(To=Tl(Cn.iconBox),Co=To.placeable),Qa=Qa&&To.offscreen}let Js=qe||ln.numHorizontalGlyphVertices===0&&ln.numVerticalGlyphVertices===0,eu=et||ln.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,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Ft,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,hl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,Cn,Ts,To,wo),ln.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[ln.crossTileID]=new qn($a||Wr,Co||ni,Qa||ee.justReloaded),B[ln.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let ln=ee.getSortedSymbolIndexes(this.transform.angle);for(let Cn=ln.length-1;Cn>=0;--Cn){let Kn=ln[Cn];cn(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let ln=w.symbolInstanceStart;ln=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,Oe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Ze of Oe)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:{},Oe=B?B.variableOffsets:{},Ze=B?B.placedOrientations:{};for(let st in this.placements){let Tt=this.placements[st],Yt=le[st];Yt?(this.opacities[st]=new On(Yt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Yt.text.placed||Tt.icon!==Yt.icon.placed):(this.opacities[st]=new On(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let st in le){let Tt=le[st];if(!this.opacities[st]){let Yt=new On(Tt,ee,!1,!1);Yt.isHidden()||(this.opacities[st]=Yt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let st in Oe)this.variableOffsets[st]||!this.opacities[st]||this.opacities[st].isHidden()||(this.variableOffsets[st]=Oe[st]);for(let st in Ze)this.placedOrientations[st]||!this.opacities[st]||this.opacities[st].isHidden()||(this.placedOrientations[st]=Ze[st]);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],Oe=le.layout,Ze=new On(null,0,!1,!1,!0),st=Oe.get("text-allow-overlap"),Tt=Oe.get("icon-allow-overlap"),Yt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Kt=Oe.get("text-rotation-alignment")==="map",xr=Oe.get("text-pitch-alignment")==="map",Ir=Oe.get("icon-text-fit")!=="none",ve=new On(null,0,st&&(Tt||!w.hasIconData()||Oe.get("icon-optional")),Tt&&(st||!w.hasTextData()||Oe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(qe,et,Xe)=>{for(let it=0;it0,dr=this.placedOrientations[et.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(Xe>0||it>0){let ni=tn(Ht.text);be(w.text,Xe,Sr?fn:ni),be(w.text,it,Or?fn:ni);let Pi=Ht.text.isHidden();[et.rightJustifiedTextSymbolIndex,et.centerJustifiedTextSymbolIndex,et.leftJustifiedTextSymbolIndex].forEach(Cn=>{Cn>=0&&(w.text.placedSymbolArray.get(Cn).hidden=Pi||Sr?1:0)}),et.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(et.verticalPlacedTextSymbolIndex).hidden=Pi||Or?1:0);let cn=this.variableOffsets[et.crossTileID];cn&&this.markUsedJustification(w,cn.anchor,et,dr);let ln=this.placedOrientations[et.crossTileID];ln&&(this.markUsedJustification(w,"left",et,ln),this.markUsedOrientation(w,ln,et))}if(tr){let ni=tn(Ht.icon),Pi=!(Ir&&et.verticalPlacedIconSymbolIndex&&Sr);et.placedIconSymbolIndex>=0&&(be(w.icon,et.numIconVertices,Pi?ni:fn),w.icon.placedSymbolArray.get(et.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),et.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,et.numVerticalIconVertices,Pi?fn:ni),w.icon.placedSymbolArray.get(et.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let Wr=Re&&Re.has(qe)?Re.get(qe):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ni=w.collisionArrays[qe];if(ni){let Pi=new a.P(0,0);if(ni.textBox||ni.verticalTextBox){let cn=!0;if(Yt){let ln=this.variableOffsets[Ft];ln?(Pi=Ut(ln.anchor,ln.width,ln.height,ln.textOffset,ln.textBoxScale),Kt&&Pi._rotate(xr?this.transform.angle:-this.transform.angle)):cn=!1}if(ni.textBox||ni.verticalTextBox){let ln;ni.textBox&&(ln=Sr),ni.verticalTextBox&&(ln=Or),rr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!cn||ln,Wr.text,Pi.x,Pi.y)}}if(ni.iconBox||ni.verticalIconBox){let cn=!!(!Or&&ni.verticalIconBox),ln;ni.iconBox&&(ln=cn),ni.verticalIconBox&&(ln=!cn),rr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,ln,Wr.icon,Ir?Pi.x:0,Ir?Pi.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 qe=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=qe.invProjMatrix,w.placementViewportMatrix=qe.viewportMatrix,w.collisionCircleArray=qe.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 rr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let Oe=Q[0]-di,Ze=Q[1]-di,st=Q[2]-di,Tt=Q[3]-di;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Oe,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,st,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,st,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Oe,Tt)}let nr=Math.pow(2,25),Er=Math.pow(2,24),Xr=Math.pow(2,17),ri=Math.pow(2,16),Qr=Math.pow(2,9),Oi=Math.pow(2,8),$i=Math.pow(2,1);function tn(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*nr+w*Er+B*Xr+w*ri+B*Qr+w*Oi+B*$i+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,Oe,Ze,st=!1){if(!Oe[0]&&!Oe[1])return[0,0];let Tt=st?Ze==="map"?ee.angle:0:Ze==="viewport"?-ee.angle:0;if(Tt){let Yt=Math.sin(Tt),Kt=Math.cos(Tt);Oe=[Oe[0]*Kt-Oe[1]*Yt,Oe[0]*Yt+Oe[1]*Kt]}return[st?Oe[0]:In(le,Oe[0],ee.zoom),st?Oe[1]:In(le,Oe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Sn{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 Oe=this._bucketParts;for(;this._currentTileIndexZe.sortKey-st.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Oe=B[w[this._currentPlacementIndex]],Ze=this.placement.collisionIndex.transform.zoom;if(Oe.type==="symbol"&&(!Oe.minzoom||Oe.minzoom<=Ze)&&(!Oe.maxzoom||Oe.maxzoom>Ze)){if(this._inProgressLayer||(this._inProgressLayer=new Sn(Oe)),this._inProgressLayer.continuePlacement(Q[Oe.source],this.placement,this._showCollisionBoxes,Oe,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(st.anchorX*ua),y:Math.floor(st.anchorY*ua)})),crossTileIDs:Oe.map(st=>st.crossTileID)};if(Ze.positions.length>128){let st=new a.av(Ze.positions.length,16,Uint16Array);for(let{x:Tt,y:Yt}of Ze.positions)st.add(Tt,Yt);st.finish(),delete Ze.positions,Ze.index=st}this._symbolsByKey[le]=Ze}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:Oe,y:Ze,z:st}=B.canonical,Tt=ua/Math.pow(2,st-le),Yt=(Ze*a.X+w.anchorY)*Tt,Kt=ee*a.X*ua;return{x:Math.floor((Oe*a.X+w.anchorX)*Tt-Q*a.X*ua),y:Math.floor(Yt-Kt)}}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 Oe in ee){let Ze=ee[Oe];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 Oe){let st=Oe[Ze];st.tileID.isChildOf(w)&&st.findMatches(B.symbolInstances,w,ee)}else{let Ze=Oe[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")),Wn=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 Ee(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 A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(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()),Qt().on(fr,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 Oe in this._layers){let Ze=this._layers[Oe];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(Oe=>{this._loadStyleRequest=null,this._load(Oe.data,B,Q)}).catch(Oe=>{this._loadStyleRequest=null,Oe&&!le.signal.aborted&&this.fire(new a.j(Oe))})}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(Wn,{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 Oe in le.sources)this.addSource(Oe,le.sources[Oe],{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,Oe,Ze,st){return a._(this,void 0,void 0,function*(){let Tt=C(le),Yt=Ze>1?"@2x":"",Kt={},xr={};for(let{id:Ir,url:ve}of Tt){let be=Oe.transformRequest(M(ve,Yt,".json"),"SpriteJSON");Kt[Ir]=a.h(be,st);let Re=Oe.transformRequest(M(ve,Yt,".png"),"SpriteImage");xr[Ir]=p.getImage(Re,st)}return yield Promise.all([...Object.values(Kt),...Object.values(xr)]),function(Ir,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Ir){be[Re]={};let qe=u.getImageCanvasContext((yield ve[Re]).data),et=(yield Ir[Re]).data;for(let Xe in et){let{width:it,height:Ft,x:Ht,y:tr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:Wr,content:ni,textFitWidth:Pi,textFitHeight:cn}=et[Xe];be[Re][Xe]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:Wr,content:ni,textFitWidth:Pi,textFitHeight:cn,spriteData:{width:it,height:Ft,x:Ht,y:tr,context:qe}}}}return be})}(Kt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let Oe in le){this._spritesImagesIds[Oe]=[];let Ze=this._spritesImagesIds[Oe]?this._spritesImagesIds[Oe].filter(st=>!(st in le)):[];for(let st of Ze)this.imageManager.removeImage(st),this._changedImages[st]=!0;for(let st in le[Oe]){let Tt=Oe==="default"?st:`${Oe}:${st}`;this._spritesImagesIds[Oe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[Oe][st],!1):this.imageManager.addImage(Tt,le[Oe][st]),B&&(this._changedImages[Tt]=!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 Oe=B?a.aB(Q[le]):Q[le];ee.push(Oe)}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 Oe in this._updatedSources){let Ze=this._updatedSources[Oe];if(Ze==="reload")this._reloadSource(Oe);else{if(Ze!=="clear")throw new Error(`Invalid action ${Ze}`);this._clearSource(Oe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Oe in this._updatedPaintProps)this._layers[Oe].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),Oe=this._getOperationsToPerform(le);if(Oe.unimplemented.length>0)throw new Error(`Unimplemented: ${Oe.unimplemented.join(", ")}.`);if(Oe.operations.length===0)return!1;for(let Ze of Oe.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 mt(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 Oe=B?this._order.indexOf(B):this._order.length;if(B&&Oe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(Oe,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 Oe=le.getSource().type;Oe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Oe!=="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,Oe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||Oe?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(Oe,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=Oe=>this._layers[Oe].type==="fill-extrusion",Q={},ee=[];for(let Oe=this._order.length-1;Oe>=0;Oe--){let Ze=this._order[Oe];if(B(Ze)){Q[Ze]=Oe;for(let st of w){let Tt=st[Ze];if(Tt)for(let Yt of Tt)ee.push(Yt)}}}ee.sort((Oe,Ze)=>Ze.intersectionZ-Oe.intersectionZ);let le=[];for(let Oe=this._order.length-1;Oe>=0;Oe--){let Ze=this._order[Oe];if(B(Ze))for(let st=ee.length-1;st>=0;st--){let Tt=ee[st].feature;if(Q[Tt.layer.id]{let dr=qe.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(tr.featureIndex)-Sr}return tr.featureIndex-Ht.featureIndex});for(let Ht of Ft)it.push(Ht)}}for(let qe in ve)ve[qe].forEach(et=>{let Xe=et.feature,it=Tt[Ze[qe].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=it});return ve}(this._layers,Oe,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 Oe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Ze=[],st={};for(let Tt=0;Ttxr.getTileByID(Ir)).sort((Ir,ve)=>ve.tileID.overscaledZ-Ir.tileID.overscaledZ||(Ir.tileID.isLessThan(ve.tileID)?-1:1))}let Kt=this.crossTileSymbolIndex.addLayer(Yt,st[Yt.source],w.center.lng);Oe=Oe||Kt}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,st),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Ze=!0),Oe&&this.pauseablePlacement.placement.setStale()),Ze||Oe)for(let Tt of this._order){let Yt=this._layers[Tt];Yt.type==="symbol"&&this.placement.updateLayerOpacities(Yt,st[Yt.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}],Oe=[...C(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",Oe,null,Q)||(this.stylesheet.sprite=Oe,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 jn={prelude:Mt(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3800,7 +3800,7 @@ uniform ${Yt} ${Kt} u_${xr}; #endif `}),staticAttributes:Q,staticUniforms:Oe}}class kr{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,Oe,Ze,st,Tt){this.context=w;let Yt=this.boundPaintVertexBuffers.length!==ee.length;for(let Kt=0;!Yt&&Kt({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 vi(ue){let w=[];for(let B=0;B({u_depth:new a.aH(Ht,tr.u_depth),u_terrain:new a.aH(Ht,tr.u_terrain),u_terrain_dim:new a.aI(Ht,tr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,tr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,tr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,tr.u_terrain_exaggeration)}))(w,Ft),this.binderUniforms=Q?Q.getUniforms(w,Ft):[]}draw(w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve,be,Re,qe,et){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(Oe),st){w.activeTexture.set(Xe.TEXTURE2),Xe.bindTexture(Xe.TEXTURE_2D,st.depthTexture),w.activeTexture.set(Xe.TEXTURE3),Xe.bindTexture(Xe.TEXTURE_2D,st.texture);for(let Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(st[Ft])}for(let Ft in this.fixedUniforms)this.fixedUniforms[Ft].set(Ze[Ft]);be&&be.setUniforms(w,this.binderUniforms,Ir,{zoom:ve});let it=0;switch(B){case Xe.LINES:it=2;break;case Xe.TRIANGLES:it=3;break;case Xe.LINE_STRIP:it=1}for(let Ft of xr.get()){let Ht=Ft.vaos||(Ft.vaos={});(Ht[Tt]||(Ht[Tt]=new kr)).bind(w,this,Yt,be?be.getPaintVertexBuffers():[],Kt,Ft.vertexOffset,Re,qe,et),Xe.drawElements(B,Ft.primitiveLength*it,Xe.UNSIGNED_SHORT,Ft.primitiveOffset*it*2)}}}function An(ue,w,B){let Q=1/In(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Oe=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:[Oe>>16,Ze>>16],u_pixel_coord_lower:[65535&Oe,65535&Ze]}}let Mn=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),Oe=[le.x,le.y,le.z],Ze=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Yt){var Kt=Math.sin(Yt),xr=Math.cos(Yt);Tt[0]=xr,Tt[1]=Kt,Tt[2]=0,Tt[3]=-Kt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Ze,-w.transform.angle),function(Tt,Yt,Kt){var xr=Yt[0],Ir=Yt[1],ve=Yt[2];Tt[0]=xr*Kt[0]+Ir*Kt[3]+ve*Kt[6],Tt[1]=xr*Kt[1]+Ir*Kt[4]+ve*Kt[7],Tt[2]=xr*Kt[2]+Ir*Kt[5]+ve*Kt[8]}(Oe,Oe,Ze);let st=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Oe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[st.r,st.g,st.b],u_vertical_gradient:+B,u_opacity:Q}},Li=(ue,w,B,Q,ee,le,Oe)=>a.e(Mn(ue,w,B,Q),An(le,w,Oe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Oe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),An(B,w,Q)),$n=(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,Oe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Ze=In(B,1,ee.zoom);le=!0,Oe=[Ze,Ze]}else le=!1,Oe=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:Oe}},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:In(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/In(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,Oe=il(w,le);return{u_matrix:As(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/In(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Oe,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 Oe=ue.lineAtlas,Ze=il(w,ue.transform),st=B.layout.get("line-cap")==="round",Tt=Oe.getDash(Q.from,st),Yt=Oe.getDash(Q.to,st),Kt=Tt.width*ee.fromScale,xr=Yt.width*ee.toScale;return a.e(ll(ue,w,B,le),{u_patternscale_a:[Ze/Kt,-Tt.height/2],u_patternscale_b:[Ze/xr,-Yt.height/2],u_sdfgamma:Oe.width/(256*Math.min(Kt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Yt.y,u_mix:ee.t})};function il(ue,w){return 1/In(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:(Oe=ee.paint.get("raster-saturation"),Oe>0?1-1/(1.001-Oe):-Oe),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,Oe};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,Oe,Ze,st,Tt,Yt,Kt,xr,Ir)=>{let ve=Oe.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:Oe.options.fadeDuration?Oe.symbolFadeChange:1,u_matrix:Ze,u_label_plane_matrix:st,u_coord_matrix:Tt,u_is_text:+Kt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Yt,u_pitched_scale:Ir}},Io=(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve)=>{let be=Oe.transform;return a.e(zs(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:Oe.pixelRatio,u_is_halo:+Ir})},ls=(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir)=>a.e(Io(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,!0,Kt,!0,Ir),{u_texsize_icon:xr,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(Oe,Ze,st,Tt){let Yt=st.imageManager.getPattern(Oe.from.toString()),Kt=st.imageManager.getPattern(Oe.to.toString()),{width:xr,height:Ir}=st.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,st.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),qe=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Yt.tl,u_pattern_br_a:Yt.br,u_pattern_tl_b:Kt.tl,u_pattern_br_b:Kt.br,u_texsize:[xr,Ir],u_mix:Ze.t,u_pattern_size_a:Yt.displaySize,u_pattern_size_b:Kt.displaySize,u_scale_a:Ze.fromScale,u_scale_b:Ze.toScale,u_tile_units_to_pixels:1/In(Tt,1,st.transform.tileZoom),u_pixel_coord_upper:[Re>>16,qe>>16],u_pixel_coord_lower:[65535&Re,65535&qe]}}(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 Ht=a.H();a.aQ(Ht,Xe.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,Xe.placementViewportMatrix),st.push({circleArray:Ft,circleOffset:Yt,transform:et.posMatrix,invTransform:Ht,coord:et}),Tt+=Ft.length/4,Yt=Tt}it&&Ze.draw(le,Oe.LINES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:et.posMatrix,u_pixel_extrude_scale:[1/(Kt=ue.transform).width,1/Kt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(et),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Kt;if(!ee||!st.length)return;let xr=ue.useProgram("collisionCircle"),Ir=new a.aR;Ir.resize(4*Tt),Ir._trim();let ve=0;for(let qe of st)for(let et=0;et=0&&(qe[Xe.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else pi(Xe.numGlyphs,be)}if(Tt){Re.clear();let et=ue.icon.placedSymbolArray;for(let Xe=0;Xeue.style.map.terrain.getElevation(Wr,nt,jt):null,kt=B.layout.get("text-rotation-alignment")==="map";We(Pi,Wr.posMatrix,ue,ee,Ul,au,qe,Tt,kt,be,Wr.toUnwrapped(),ve.width,ve.height,Js,Ye)}let Tl=Wr.posMatrix,Al=ee&&dr||dc,X=et||Al?bl:Ul,se=Lu,Te=Cn&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=Cn?Pi.iconsInText?ls(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,Qa,Ts,Or):Io(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,ee,Qa,!0,Or):zs(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,ee,Qa,Or);let He={program:fa,buffers:cn,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Ps,isSDF:Cn,hasHalo:Te};if(Ft&&Pi.canOverlap){Ht=!0;let Ye=cn.segments.get();for(let kt of Ye)Sr.push({segments:new a.a0([kt]),sortKey:kt.sortKey,state:He,terrainData:Co})}else Sr.push({segments:cn.segments,sortKey:0,state:He,terrainData:Co})}Ht&&Sr.sort((Wr,ni)=>Wr.sortKey-ni.sortKey);for(let Wr of Sr){let ni=Wr.state;if(xr.activeTexture.set(Ir.TEXTURE0),ni.atlasTexture.bind(ni.atlasInterpolation,Ir.CLAMP_TO_EDGE),ni.atlasTextureIcon&&(xr.activeTexture.set(Ir.TEXTURE1),ni.atlasTextureIcon&&ni.atlasTextureIcon.bind(ni.atlasInterpolationIcon,Ir.CLAMP_TO_EDGE)),ni.isSDF){let Pi=ni.uniformValues;ni.hasHalo&&(Pi.u_is_halo=1,Qf(ni.buffers,Wr.segments,B,ue,ni.program,tr,Yt,Kt,Pi,Wr.terrainData)),Pi.u_is_halo=0}Qf(ni.buffers,Wr.segments,B,ue,ni.program,tr,Yt,Kt,ni.uniformValues,Wr.terrainData)}}function Qf(ue,w,B,Q,ee,le,Oe,Ze,st,Tt){let Yt=Q.context;ee.draw(Yt,Yt.gl.TRIANGLES,le,Oe,Ze,Pa.disabled,st,Tt,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,Oe=Ko.disabled,Ze=new qs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),st=w.getBucket(B);if(!st)return;let Tt=Q.key,Yt=B.heatmapFbos.get(Tt);Yt||(Yt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Yt)),ee.bindFramebuffer.set(Yt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Kt=st.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Kt),Ir=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,Oe,Ze,Pa.disabled,ko(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Ir,B.id,st.layoutVertexBuffer,st.indexBuffer,st.segments,B.paint,ue.transform.zoom,Kt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),Oe=B.key,Ze=w.heatmapFbos.get(Oe);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(Oe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,Oe=le.createTexture();le.bindTexture(le.TEXTURE_2D,Oe),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,st=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,st,w,B,0,le.RGBA,Ze,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(Oe),Tt}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,Oe=le[B.to.toString()],Ze=le[B.from.toString()];if(!Oe&&Ze&&(Oe=Ze),!Ze&&Oe&&(Ze=Oe),!Oe||!Ze){let st=ee.getPaintProperty(w);Oe=le[st],Ze=le[st]}Oe&&Ze&&ue.setConstantPatternPositions(Oe,Ze)}function jf(ue,w,B,Q,ee,le,Oe){let Ze=ue.context.gl,st="fill-pattern",Tt=B.paint.get(st),Yt=Tt&&Tt.constantOr(1),Kt=B.getCrossfadeParameters(),xr,Ir,ve,be,Re;Oe?(Ir=Yt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Ze.LINES):(Ir=Yt?"fillPattern":"fill",xr=Ze.TRIANGLES);let qe=Tt.constantOr(null);for(let et of Q){let Xe=w.getTile(et);if(Yt&&!Xe.patternsLoaded())continue;let it=Xe.getBucket(B);if(!it)continue;let Ft=it.programConfigurations.get(B.id),Ht=ue.useProgram(Ir,Ft),tr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(et);Yt&&(ue.context.activeTexture.set(Ze.TEXTURE0),Xe.imageAtlasTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),Ft.updatePaintBuffers(Kt)),ju(Ft,st,qe,Xe,B);let dr=tr?et:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:et.posMatrix,Xe,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(Oe){be=it.indexBuffer2,Re=it.segments2;let Or=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];ve=Ir==="fillOutlinePattern"&&Yt?Ma(Sr,ue,Kt,Xe,Or):$n(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Yt?ya(Sr,ue,Kt,Xe):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(et),le,Pa.disabled,ve,tr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Ft)}}function cc(ue,w,B,Q,ee,le,Oe){let Ze=ue.context,st=Ze.gl,Tt="fill-extrusion-pattern",Yt=B.paint.get(Tt),Kt=Yt.constantOr(1),xr=B.getCrossfadeParameters(),Ir=B.paint.get("fill-extrusion-opacity"),ve=Yt.constantOr(null);for(let be of Q){let Re=w.getTile(be),qe=Re.getBucket(B);if(!qe)continue;let et=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),Xe=qe.programConfigurations.get(B.id),it=ue.useProgram(Kt?"fillExtrusionPattern":"fillExtrusion",Xe);Kt&&(ue.context.activeTexture.set(st.TEXTURE0),Re.imageAtlasTexture.bind(st.LINEAR,st.CLAMP_TO_EDGE),Xe.updatePaintBuffers(xr)),ju(Xe,Tt,ve,Re,B);let Ft=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),tr=Kt?Li(Ft,ue,Ht,Ir,be,xr,Re):Mn(Ft,ue,Ht,Ir);it.draw(Ze,Ze.gl.TRIANGLES,ee,le,Oe,Pa.backCCW,tr,et,B.id,qe.layoutVertexBuffer,qe.indexBuffer,qe.segments,B.paint,ue.transform.zoom,Xe,ue.style.map.terrain&&qe.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,Oe){let Ze=ue.context,st=Ze.gl,Tt=B.fbo;if(!Tt)return;let Yt=ue.useProgram("hillshade"),Kt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Ze.activeTexture.set(st.TEXTURE0),st.bindTexture(st.TEXTURE_2D,Tt.colorAttachment.get()),Yt.draw(Ze,st.TRIANGLES,ee,le,Oe,Pa.disabled,((xr,Ir,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),qe=ve.paint.get("hillshade-highlight-color"),et=ve.paint.get("hillshade-accent-color"),Xe=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Ir.tileID.toUnwrapped(),it),u_image:0,u_latrange:Fs(0,Ir.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),Xe],u_shadow:Re,u_highlight:qe,u_accent:et}})(ue,B,Q,Kt?w:null),Kt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Nl(ue,w,B,Q,ee,le){let Oe=ue.context,Ze=Oe.gl,st=w.dem;if(st&&st.data){let Tt=st.dim,Yt=st.stride,Kt=st.getPixels();if(Oe.activeTexture.set(Ze.TEXTURE1),Oe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Yt),w.demTexture){let Ir=w.demTexture;Ir.update(Kt,{premultiply:!1}),Ir.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE)}else w.demTexture=new g(Oe,Kt,Ze.RGBA,{premultiply:!1}),w.demTexture.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE);Oe.activeTexture.set(Ze.TEXTURE0);let xr=w.fbo;if(!xr){let Ir=new g(Oe,{width:Tt,height:Tt,data:null},Ze.RGBA);Ir.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),xr=w.fbo=Oe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Ir.texture)}Oe.bindFramebuffer.set(xr.framebuffer),Oe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(Oe,Ze.TRIANGLES,Q,ee,le,Pa.disabled,((Ir,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Ir.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,st),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let Oe=Q.paint.get("raster-fade-duration");if(!le&&Oe>0){let Ze=u.now(),st=(Ze-ue.timeAdded)/Oe,Tt=w?(Ze-w.timeAdded)/Oe:-1,Yt=B.getSource(),Kt=ee.coveringZoomLevel({tileSize:Yt.tileSize,roundZoom:Yt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Kt)>Math.abs(ue.tileID.overscaledZ-Kt),Ir=xr&&ue.refreshedUponExpiration?1:a.ac(xr?st:1-Tt,0,1);return ue.refreshedUponExpiration&&st>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ir}:{opacity:Ir,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 sf(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 Oe=ue.context,Ze=Oe.gl;Ze.enable(Ze.SCISSOR_TEST),Ze.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Oe.clear({color:le}),Ze.disable(Ze.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,Oe=ue.useProgram("debug"),Ze=Po.disabled,st=Ko.disabled,Tt=ue.colorModeForRenderPass(),Yt="$debug",Kt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Ir=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(qe,et){qe.initDebugOverlayCanvas();let Xe=qe.debugOverlayCanvas,it=qe.context.gl,Ft=qe.debugOverlayCanvas.getContext("2d");Ft.clearRect(0,0,Xe.width,Xe.height),Ft.shadowColor="white",Ft.shadowBlur=2,Ft.lineWidth=1.5,Ft.strokeStyle="white",Ft.textBaseline="top",Ft.font="bold 36px Open Sans, sans-serif",Ft.fillText(et,5,5),Ft.strokeText(et,5,5),qe.debugOverlayTexture.update(Xe),qe.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Ir}kB`),Oe.draw(Q,ee.TRIANGLES,Ze,st,qs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Yt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Oe.draw(Q,ee.LINE_STRIP,Ze,st,Tt,Pa.disabled,po(le,a.aM.red),Kt,Yt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function js(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),Oe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Ze=ue.useProgram("terrain"),st=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Yt=ue.renderToTexture.getTexture(Tt),Kt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Yt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Ir=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Jr(xr,Ir,ve,ue.style.sky,ue.transform.pitch);Ze.draw(Q,ee.TRIANGLES,Oe,Ko.disabled,le,Pa.backCCW,be,Kt,"terrain",st.vertexBuffer,st.indexBuffer,st.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=mt.maxUnderzooming+mt.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,ut.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 Oe=new a.aZ;Oe.emplaceBack(0),Oe.emplaceBack(1),Oe.emplaceBack(3),Oe.emplaceBack(2),Oe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Oe);let Ze=new a.aY;Ze.emplaceBack(0,1,2),Ze.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Ze);let st=this.context.gl;this.stencilClearMode=new Ko({func:st.ALWAYS,mask:0},0,255,st.ZERO,st.ZERO,st.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,qs.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(qs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Oe of B){let Ze=this._tileClippingMaskIDs[Oe.key]=this.nextStencilID++,st=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Oe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Ko({func:ee.ALWAYS,mask:0},Ze,255,ee.KEEP,ee.KEEP,ee.REPLACE),qs.disabled,Pa.disabled,Lo(Oe.posMatrix),st,"$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((Oe,Ze)=>Ze.overscaledZ-Oe.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 Oe={};for(let Ze=0;Ze({u_sky_color:qe.properties.get("sky-color"),u_horizon_color:qe.properties.get("horizon-color"),u_horizon:(et.height/2+et.getHorizon())*Xe,u_sky_horizon_blend:qe.properties.get("sky-horizon-blend")*et.height/2*Xe}))(Tt,st.style.map.transform,st.pixelRatio),Ir=new Po(Kt.LEQUAL,Po.ReadWrite,[0,1]),ve=Ko.disabled,be=st.colorModeForRenderPass(),Re=st.useProgram("sky");if(!Tt.mesh){let qe=new a.aX;qe.emplaceBack(-1,-1),qe.emplaceBack(1,-1),qe.emplaceBack(1,1),qe.emplaceBack(-1,1);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(0,2,3),Tt.mesh=new Eu(Yt.createVertexBuffer(qe,vo.members),Yt.createIndexBuffer(et),a.a0.simpleSegment(0,0,qe.length,et.length))}Re.draw(Yt,Kt.TRIANGLES,Ir,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.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 st=this.style._layers[Q[this.currentLayer]],Tt=ee[st.source],Yt=le[st.source];this._renderTileClippingMasks(st,Yt),this.renderLayer(this,Tt,st,Yt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Yt)?[Tt.sourceCaches[Re.source]]:[]),Ir=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Kt||Kt.getSource().maxzoombe(Re)),Kt||ve.forEach(Re=>be(Re)),Kt}(this.style,this.transform.zoom);st&&function(Tt,Yt,Kt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,Oe){let Ze=le.context,st=Ze.gl,Tt=qs.unblended,Yt=new Po(st.LEQUAL,Po.ReadWrite,[0,1]),Kt=Oe.getTerrainMesh(),xr=Oe.sourceCache.getRenderableTiles(),Ir=le.useProgram("terrainDepth");Ze.bindFramebuffer.set(Oe.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 xr){let be=Oe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:Oe.getMeshFrameDelta(le.transform.zoom)};Ir.draw(Ze,st.TRIANGLES,Yt,Ko.disabled,Tt,Pa.backCCW,Re,be,"terrain",Kt.vertexBuffer,Kt.indexBuffer,Kt.segments)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,Oe){let Ze=le.context,st=Ze.gl,Tt=qs.unblended,Yt=new Po(st.LEQUAL,Po.ReadWrite,[0,1]),Kt=Oe.getTerrainMesh(),xr=Oe.getCoordsTexture(),Ir=Oe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Ze.bindFramebuffer.set(Oe.getFramebuffer("coords").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1}),Oe.coordsIndex=[];for(let be of Ir){let Re=Oe.getTerrainData(be.tileID);Ze.activeTexture.set(st.TEXTURE0),st.bindTexture(st.TEXTURE_2D,xr.texture);let qe={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-Oe.coordsIndex.length)/255,u_texture:0,u_ele_delta:Oe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Ze,st.TRIANGLES,Yt,Ko.disabled,Tt,Pa.backCCW,qe,Re,"terrain",Kt.vertexBuffer,Kt.indexBuffer,Kt.segments),Oe.coordsIndex.push(be.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,Oe,Ze,st,Tt){if(le.renderPass!=="translucent")return;let Yt=Ko.disabled,Kt=le.colorModeForRenderPass();(Ze._unevaluatedLayout.hasValue("text-variable-anchor")||Ze._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Ir,ve,be,Re,qe,et,Xe,it){let Ft=Ir.transform,Ht=yn(),tr=Re==="map",dr=qe==="map";for(let Sr of xr){let Or=be.getTile(Sr),Wr=Or.getBucket(ve);if(!Wr||!Wr.text||!Wr.text.segments.get().length)continue;let ni=a.ag(Wr.textSizeData,Ft.zoom),Pi=In(Or,1,Ir.transform.zoom),cn=Br(Sr.posMatrix,dr,tr,Ir.transform,Pi),ln=ve.layout.get("icon-text-fit")!=="none"&&Wr.hasIconData();if(ni){let Cn=Math.pow(2,Ft.zoom-Or.tileID.overscaledZ),Kn=Ir.style.map.terrain?(fa,$a)=>Ir.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=Ht.translatePosition(Ft,Or,et,Xe);yf(Wr,tr,dr,it,Ft,cn,Sr.posMatrix,Cn,ni,ln,Ht,Aa,Sr.toUnwrapped(),Kn)}}}(st,le,Ze,Oe,Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Tt),Ze.paint.get("icon-opacity").constantOr(1)!==0&&Ah(le,Oe,Ze,st,!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"),Yt,Kt),Ze.paint.get("text-opacity").constantOr(1)!==0&&Ah(le,Oe,Ze,st,!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"),Yt,Kt),Oe.map.showCollisionBoxes&&(Hu(le,Oe,Ze,st,!0),Hu(le,Oe,Ze,st,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,Oe,Ze,st){if(le.renderPass!=="translucent")return;let Tt=Ze.paint.get("circle-opacity"),Yt=Ze.paint.get("circle-stroke-width"),Kt=Ze.paint.get("circle-stroke-opacity"),xr=!Ze.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Yt.constantOr(1)===0||Kt.constantOr(1)===0))return;let Ir=le.context,ve=Ir.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Ko.disabled,qe=le.colorModeForRenderPass(),et=[];for(let Xe=0;XeXe.sortKey-it.sortKey);for(let Xe of et){let{programConfiguration:it,program:Ft,layoutVertexBuffer:Ht,indexBuffer:tr,uniformValues:dr,terrainData:Sr}=Xe.state;Ft.draw(Ir,ve.TRIANGLES,be,Re,qe,Pa.disabled,dr,Sr,Ze.id,Ht,tr,Xe.segments,Ze.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,Oe,Ze,st){if(Ze.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Yt of st){let Kt=Oe.getTile(Yt);Oe.hasRenderableParent(Yt)||(le.renderPass==="offscreen"?_f(le,Kt,Ze,Yt):le.renderPass==="translucent"&&Yc(le,Ze,Yt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Yt,Kt,xr,Ir){let ve=Yt.context,be=ve.gl,Re=Ko.disabled,qe=new qs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(et,Xe,it){let Ft=et.gl;et.activeTexture.set(Ft.TEXTURE1),et.viewport.set([0,0,Xe.width/4,Xe.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Ft.bindTexture(Ft.TEXTURE_2D,Ht.colorAttachment.get()),et.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(et,Xe.width/4,Xe.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Yt,xr),ve.clear({color:a.aM.transparent});for(let et=0;et20&&Yt.texParameterf(Yt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let Wr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(et),ni=Wr?et:null,Pi=ni?ni.posMatrix:le.transform.calculatePosMatrix(et.toUnwrapped(),qe),cn=cl(Pi,Sr||[0,0],dr||1,tr,Ze);Kt instanceof Wt?xr.draw(Tt,Yt.TRIANGLES,Xe,Ko.disabled,Ir,Pa.disabled,cn,Wr,Ze.id,Kt.boundsBuffer,le.quadTriangleIndexBuffer,Kt.boundsSegments):xr.draw(Tt,Yt.TRIANGLES,Xe,ve[et.overscaledZ],Ir,Pa.disabled,cn,Wr,Ze.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,Oe,Ze,st){let Tt=Ze.paint.get("background-color"),Yt=Ze.paint.get("background-opacity");if(Yt===0)return;let Kt=le.context,xr=Kt.gl,Ir=le.transform,ve=Ir.tileSize,be=Ze.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Yt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let qe=Ko.disabled,et=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),Xe=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Ft=st||Ir.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Kt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Ze.getCrossfadeParameters();for(let tr of Ft){let dr=st?tr.posMatrix:le.transform.calculatePosMatrix(tr.toUnwrapped()),Sr=be?Su(dr,Yt,le,be,{tileID:tr,tileSize:ve},Ht):Yl(dr,Yt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tr);it.draw(Kt,xr.TRIANGLES,et,qe,Xe,Pa.disabled,Sr,Or,Ze.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,Oe,Ze){let st=le.context,Tt=Ze.implementation;if(le.renderPass==="offscreen"){let Yt=Tt.prerender;Yt&&(le.setCustomLayerDefaults(),st.setColorMode(le.colorModeForRenderPass()),Yt.call(Tt,st.gl,le.transform.customLayerMatrix()),st.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),st.setColorMode(le.colorModeForRenderPass()),st.setStencilMode(Ko.disabled);let Yt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);st.setDepthMode(Yt),Tt.render(st.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),st.setDirty(),le.setBaseState(),st.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let Oe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Oe){let Tt=Math.sin(Oe),Yt=Math.cos(Oe);Q=[Q[0]*Yt-Q[1]*Tt,Q[0]*Tt+Q[1]*Yt]}let Ze=[le?Q[0]:In(B,Q[0],this.transform.zoom),le?Q[1]:In(B,Q[1],this.transform.zoom),0],st=new Float32Array(16);return a.J(st,w,Ze),st}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,jn[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 st=1/(Ze=a.af([],Ze,w))[3]/B*ee;return a.b1(Ze,Ze,[st,st,1/Ze[3],st])}),Oe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Ze=>{let st=function(xr,Ir){var ve=Ir[0],be=Ir[1],Re=Ir[2],qe=ve*ve+be*be+Re*Re;return qe>0&&(qe=1/Math.sqrt(qe)),xr[0]=Ir[0]*qe,xr[1]=Ir[1]*qe,xr[2]=Ir[2]*qe,xr}([],function(xr,Ir,ve){var be=Ir[0],Re=Ir[1],qe=Ir[2],et=ve[0],Xe=ve[1],it=ve[2];return xr[0]=Re*it-qe*Xe,xr[1]=qe*et-be*it,xr[2]=be*Xe-Re*et,xr}([],L([],le[Ze[0]],le[Ze[1]]),L([],le[Ze[2]],le[Ze[1]]))),Tt=-((Yt=st)[0]*(Kt=le[Ze[1]])[0]+Yt[1]*Kt[1]+Yt[2]*Kt[2]);var Yt,Kt;return st.concat(Tt)});return new ks(le,Oe)}}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=E(this.min),ee=E(this.max);for(let le=0;le=0&&Oe++;if(Oe===0)return 0;Oe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,Oe=-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 Oe=ee[0],Ze=ee[1],st=ee[2],Tt=ee[3],Yt=Math.sin(le),Kt=Math.cos(le);Q[0]=Oe*Kt+st*Yt,Q[1]=Ze*Kt+Tt*Yt,Q[2]=Oe*-Yt+st*Kt,Q[3]=Ze*-Yt+Tt*Kt}(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)),Oe=this.pointCoordinate(new a.P(0,this.height)),Ze=Math.floor(Math.min(Q.x,ee.x,le.x,Oe.x)),st=Math.floor(Math.max(Q.x,ee.x,le.x,Oe.x)),Tt=1;for(let Yt=Ze-Tt;Yt<=st+Tt;Yt++)Yt!==0&&B.push(new a.b4(Yt,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 Oe=this.pointCoordinate(this.getCameraPoint()),Ze=a.Z.fromLngLat(this.center),st=Math.pow(2,ee),Tt=[st*Oe.x,st*Oe.y,0],Yt=[st*Ze.x,st*Ze.y,0],Kt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Ir=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=Xe=>({aabb:new bc([Xe*st,0,0],[(Xe+1)*st,st,0]),zoom:0,x:0,y:0,wrap:Xe,fullyVisible:!1}),be=[],Re=[],qe=ee,et=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let Xe=1;Xe<=3;Xe++)be.push(ve(-Xe)),be.push(ve(Xe));for(be.push(ve(0));be.length>0;){let Xe=be.pop(),it=Xe.x,Ft=Xe.y,Ht=Xe.fullyVisible;if(!Ht){let Wr=Xe.aabb.intersects(Kt);if(Wr===0)continue;Ht=Wr===2}let tr=w.terrain?Tt:Yt,dr=Xe.aabb.distanceX(tr),Sr=Xe.aabb.distanceY(tr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(Xe.zoom===qe||Or>Ir+(1<=xr){let Wr=qe-Xe.zoom,ni=Tt[0]-.5-(it<>1),cn=Xe.zoom+1,ln=Xe.aabb.quadrant(Wr);if(w.terrain){let Cn=new a.S(cn,Xe.wrap,cn,ni,Pi),Kn=w.terrain.getMinMaxElevation(Cn),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;ln=new bc([ln.min[0],ln.min[1],Aa],[ln.max[0],ln.max[1],fa])}be.push({aabb:ln,zoom:cn,x:ni,y:Pi,wrap:Xe.wrap,fullyVisible:Ht})}}return Re.sort((Xe,it)=>Xe.distanceSq-it.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 Oe=Q+B-le,Ze=Math.cos(this._pitch)*this.cameraToCenterDistance/Oe/a.b5(1,ee.lat),st=this.scaleZoom(Ze/this.tileSize);this._elevation=le,this._center=ee,this.zoom=st}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),Oe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(Oe),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 xr=B.pointCoordinate(w);if(xr!=null)return xr}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],Oe=ee[3],Ze=Q[1]/le,st=ee[1]/Oe,Tt=Q[2]/le,Yt=ee[2]/Oe,Kt=Tt===Yt?0:(0-Tt)/(Yt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/Oe,Kt)/this.worldSize,a.y.number(Ze,st,Kt)/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),Oe=0,Ze=le,st=0,Tt=le,Yt=0,Kt=0,{x:xr,y:Ir}=this.size;if(this.latRange){let Xe=this.latRange;Oe=a.Q(Xe[1])*le,Ze=a.Q(Xe[0])*le,Ze-OeZe&&(qe=Ze-Xe)}if(ee){let Xe=(st+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,Xe-le/2,Xe+le/2));let Ft=xr/2;it-FtTt&&(Re=Tt-Ft)}if(Re!==void 0||qe!==void 0){let Xe=new a.P(Re!=null?Re:ve,qe!=null?qe:be);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),Oe=Math.min(this.elevation,this.minElevationForCurrentTile),Ze=le-Oe*this._pixelPerMeter/Math.cos(this._pitch),st=Oe<0?Ze:le,Tt=Math.PI/2+this._pitch,Yt=this._fov*(.5+w.y/this.height),Kt=Math.sin(Yt)*st/Math.sin(a.ac(Math.PI-Tt-Yt,.01,Math.PI-.01)),xr=this.getHorizon(),Ir=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Ir)*st/Math.sin(a.ac(Math.PI-Tt-Ir,.01,Math.PI-.01)),be=Math.min(Kt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+st),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 Re=this.width%2/2,qe=this.height%2/2,et=Math.cos(this.angle),Xe=Math.sin(this.angle),it=B-Math.round(B)+et*Re+Xe*qe,Ft=Q-Math.round(Q)+et*qe+Xe*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Ft>.5?Ft-1:Ft,0]),this.alignedModelViewProjectionMatrix=Ht,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,Oe=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),Oe=Math.max(Oe,Ze.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,Oe),new a.P(Q,Oe),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,Oe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(Oe,w),Q=!1)};return(...Ze)=>(Q=!0,le=this,B=Ze,ee||Oe(),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 Oe=window.location.href.replace(/(#.+)?$/,le);Oe=Oe.replace("&&","&"),window.history.replaceState(window.history.state,null,Oe)},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),Oe=Math.round(B.lng*le)/le,Ze=Math.round(B.lat*le)/le,st=this._map.getBearing(),Tt=this._map.getPitch(),Yt="";if(Yt+=w?`/${Oe}/${Ze}/${Q}`:`${Q}/${Ze}/${Oe}`,(st||Tt)&&(Yt+="/"+Math.round(10*st)/10),Tt&&(Yt+=`/${Math.round(Tt)}`),this._hashName){let Kt=this._hashName,xr=!1,Ir=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Kt?(xr=!0,`${be}=${Yt}`):ve}).filter(ve=>ve);return xr||Ir.push(`${Kt}=${Yt}`),`#${Ir.join("&")}`}return`#${Yt}`}}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,Ou(ee,le)}if(B.zoom){let le=bf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=bf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=bf(B.pitch,Q,xf);ee.pitch=this._map.transform.pitch+le.amount,Ou(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 Ou(ue,w){(!ue.duration||ue.durationB.unproject(st)),Ze=le.reduce((st,Tt,Yt,Kt)=>st.add(Tt.div(Kt.length)),new a.P(0,0));super(w,{points:le,point:Ze,lngLats:Oe,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 lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(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 Oe of ee)le._add(Oe);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 Oe=ee[le];(!Oe||Oe.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,Oe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&Oe||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),Oe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Oe.zoom+1,around:Oe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Oe.zoom-1,around:Oe.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),Oe=new a.P(0,0),Ze=0;for(let Tt in ee){let Yt=ee[Tt],Kt=this._touches[Tt];Kt&&(le._add(Yt),Oe._add(Yt.sub(Kt)),Ze++,ee[Tt]=Yt)}if(this._touches=ee,this._shouldBePrevented(Ze)||!Oe.mag())return;let st=Oe.div(Ze);return this._sum._add(st),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{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 Oe=w.y>0==B.y>0;return fc(w)&&fc(B)&&Oe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new du(w);let B=At;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,Oe=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(),Oe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Oe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Ze=>{let st=this._tr;Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:Cr,zoom:B?Math.round(st.zoom)+B*(w.shiftKey?2:1):st.zoom,bearing:st.bearing+Q*this._bearingStep,pitch:st.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-Oe*this._panStep],center:st.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 Cr(ue){return ue*(2-ue)}let Ar=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%Ar==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 st=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*st)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Yt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Yt*Tt))),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,Oe=!1,Ze=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Ze){let st=Math.min(Ze/200,1),Tt=ee(st);le=a.y.number(Q,B,Tt),st<1?this._frameId||(this._frameId=!0):Oe=!0}else le=B,Oe=!0;return this._active=!0,Oe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Oe,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),Oe=.27/Math.sqrt(le*le+1e-4)*.01,Ze=Math.sqrt(.0729-Oe*Oe);B=a.b8(Oe,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 ki{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,Oe=this._tapPoint.dist(ee)<30;le&&Oe?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 Nn{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 Qi{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 on=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Fi extends a.k{}function Qn(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 Oe=ee.type==="renderFrame"?void 0:ee,Ze={needsRenderFrame:!1},st={},Tt={},Yt=ee.touches,Kt=Yt?this._getMapTouches(Yt):void 0,xr=Kt?c.touchPos(this._map.getCanvas(),Kt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:qe}of this._handlers){if(!Re.isEnabled())continue;let et;this._blockedByActive(Tt,qe,be)?Re.reset():Re[le||ee.type]&&(et=Re[le||ee.type](ee,xr,Kt),this.mergeHandlerResult(Ze,st,et,be,Oe),et&&et.needsRenderFrame&&this._triggerRenderFrame()),(et||Re.isActive())&&(Tt[be]=Re)}let Ir={};for(let be in this._previousActiveHandlers)Tt[be]||(Ir[be]=Oe);this._previousActiveHandlers=Tt,(Object.keys(Ir).length||Qn(Ze))&&(this._changes.push([Ze,st,Ir]),this._triggerRenderFrame()),(Object.keys(Tt).length||Qn(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,Oe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,Oe)}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 Qi(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let Oe=new zc(B),Ze=new Xi(B);B.doubleClickZoom=new ki(Ze,Oe),this._add("tapZoom",Oe),this._add("clickZoom",Ze),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let st=new dn;this._add("tapDragZoom",st);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Yt=Wl(w),Kt=ah(w);B.dragRotate=new Nn(w,Yt,Kt),this._add("mouseRotate",Yt,["mousePitch"]),this._add("mousePitch",Kt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:et,clickTolerance:Xe})=>{let it=new Xu({checkCorrectEvent:Ft=>c.mouseButton(Ft)===0&&!Ft.ctrlKey});return new Wu({clickTolerance:Xe,move:(Ft,Ht)=>({around:Ht,panDelta:Ht.sub(Ft)}),activateOnStart:!0,moveStateManager:it,enable:et,assignEvents:Zf})})(w),Ir=new Zu(w,B);B.dragPan=new wn(Q,xr,Ir),this._add("mousePan",xr),this._add("touchPan",Ir,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new vu;B.touchZoomRotate=new Yi(Q,be,ve,st),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let qe=B.keyboard=new Xt(B);this._add("keyboard",qe),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!!on(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 Oe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=Oe),Q.panDelta!==void 0&&(B.drag=Oe),Q.pitchDelta!==void 0&&(B.pitch=Oe),Q.bearingDelta!==void 0&&(B.rotate=Oe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,Oe]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,Oe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),Oe=ee.terrain;if(!(Qn(w)||Oe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Ze,zoomDelta:st,bearingDelta:Tt,pitchDelta:Yt,around:Kt,pinchAround:xr}=w;xr!==void 0&&(Kt=xr),ee._stop(!0),Kt=Kt||ee.transform.centerPoint;let Ir=le.pointLocation(Ze?Kt.sub(Ze):Kt);Tt&&(le.bearing+=Tt),Yt&&(le.pitch+=Yt),st&&(le.zoom+=st),Oe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Ze)):le.setLocationAtPoint(Ir,Kt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Ir,Kt)):le.setLocationAtPoint(Ir,Kt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=on(this._eventsInProgress),le=on(w),Oe={};for(let Kt in w){let{originalEvent:xr}=w[Kt];this._eventsInProgress[Kt]||(Oe[`${Kt}start`]=xr),this._eventsInProgress[Kt]=w[Kt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Kt in Oe)this._fireEvent(Kt,Oe[Kt]);le&&this._fireEvent("move",le.originalEvent);for(let Kt in w){let{originalEvent:xr}=w[Kt];this._fireEvent(Kt,xr)}let Ze={},st;for(let Kt in this._eventsInProgress){let{handlerName:xr,originalEvent:Ir}=this._eventsInProgress[Kt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Kt],st=B[xr]||Ir,Ze[`${Kt}end`]=st)}for(let Kt in Ze)this._fireEvent(Kt,Ze[Kt]);let Tt=on(this._eventsInProgress),Yt=(ee||le)&&!Tt;if(Yt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Kt=this._map._getTransformForUpdate();Kt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Kt)}if(Q&&Yt){this._updatingCamera=!0;let Kt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Ir=>Ir!==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,Re,tr)),this._rotating&&(ee.bearing=a.y.number(Oe,Tt,tr)),this._pitching&&(ee.pitch=a.y.number(Ze,Yt,tr)),this._padding&&(ee.interpolatePadding(st,Kt,tr),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(tr),it)ee.setLocationAtPoint(it,Ft);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,Xe):Math.max(.5,Xe),Or=Math.pow(Sr,1-tr),Wr=ee.unproject(qe.add(et.mult(tr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?Wr.wrap():Wr,Ir)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},tr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,tr)},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:Oe,zoom:Ze,pitch:st,bearing:Tt,elevation:Yt}=ee(le);Oe&&(le.center=Oe),Ze!==void 0&&(le.zoom=Ze),st!==void 0&&(le.pitch=st),Tt!==void 0&&(le.bearing=Tt),Yt!==void 0&&(le.elevation=Yt),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 Cn=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Cn,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,Oe=ee.bearing,Ze=ee.pitch,st=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,Oe):Oe,Yt="pitch"in w?+w.pitch:Ze,Kt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Ir=ee.centerPoint.add(xr),ve=ee.pointLocation(Ir),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let qe=ee.zoomScale(Re-le),et=ee.project(ve),Xe=ee.project(be).sub(et),it=w.curve,Ft=Math.max(ee.width,ee.height),Ht=Ft/qe,tr=Xe.mag();if("minZoom"in w){let Cn=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Ft/ee.zoomScale(Cn-le);it=Math.sqrt(Kn/tr*2)}let dr=it*it;function Sr(Cn){let Kn=(Ht*Ht-Ft*Ft+(Cn?-1:1)*dr*dr*tr*tr)/(2*(Cn?Ht:Ft)*dr*tr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(Cn){return(Math.exp(Cn)-Math.exp(-Cn))/2}function Wr(Cn){return(Math.exp(Cn)+Math.exp(-Cn))/2}let ni=Sr(!1),Pi=function(Cn){return Wr(ni)/Wr(ni+it*Cn)},cn=function(Cn){return Ft*((Wr(ni)*(Or(Kn=ni+it*Cn)/Wr(Kn))-Or(ni))/dr)/tr;var Kn},ln=(Sr(!0)-ni)/it;if(Math.abs(tr)<1e-6||!isFinite(ln)){if(Math.abs(Ft-Ht)<1e-6)return this.easeTo(w,B);let Cn=Ht0,Pi=Kn=>Math.exp(Cn*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*ln/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Oe!==Tt,this._pitching=Yt!==Ze,this._padding=!ee.isPaddingEqual(Kt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(Cn=>{let Kn=Cn*ln,Aa=1/Pi(Kn);ee.zoom=Cn===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(Oe,Tt,Cn)),this._pitching&&(ee.pitch=a.y.number(Ze,Yt,Cn)),this._padding&&(ee.interpolatePadding(st,Kt,Cn),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Cn);let fa=Cn===1?be:ee.unproject(et.add(Xe.mult(cn(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Ir),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 Na{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 Oe=le.getSource();Oe.attribution&&w.indexOf(Oe.attribution)<0&&w.push(Oe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let Oe=le+1;Oe=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 Yn{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 Gt(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 Oe=ee.canonical.z-w.canonical.z,Ze=ee.canonical.x-(ee.canonical.x>>Oe<>Oe<>Oe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Ze*Tt,-st*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Oe=w.canonical.z-ee.canonical.z,Ze=w.canonical.x-(w.canonical.x>>Oe<>Oe<>Oe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Ze*Tt,st*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**Oe,1/2**Oe,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 Oe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[Oe+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),Oe=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-Oe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let st=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Yt=this.coordsIndex[255-B[3]],Kt=Yt&&this.sourceCache.getTileByID(Yt);if(!Kt)return null;let xr=this._coordsTextureSize,Ir=(1<w.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 Oe=this.terrain.sourceCache.getTerrainCoords(le);for(let Ze in Oe)this._coordsDescendingInv[Q][Ze]||(this._coordsDescendingInv[Q][Ze]=[]),this._coordsDescendingInv[Q][Ze].push(Oe[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 Oe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][Oe]=this._coordsDescendingInv[le][Oe].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,Oe=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 Tt=this.pool.getObjectForId(Ze.rtt[le].id);if(Tt.stamp===Ze.rtt[le].stamp){this.pool.useObject(Tt);continue}}let st=this.pool.getOrCreateFreeObject();this.pool.useObject(st),this.pool.stampObject(st),Ze.rtt[le]={id:st.id,stamp:st.stamp},Q.context.bindFramebuffer.set(st.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{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=Oe=>{this.startMouse(a.e({},Oe,{ctrlKey:!0,preventDefault:()=>Oe.preventDefault()}),c.mousePos(this.element,Oe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Oe=>{this.moveMouse(Oe,c.mousePos(this.element,Oe))},this.mouseup=Oe=>{this.mouseRotate.dragEnd(Oe),this.mousePitch&&this.mousePitch.dragEnd(Oe),this.offTemp()},this.touchstart=Oe=>{Oe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,Oe.targetTouches)[0],this.startTouch(Oe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=Oe=>{Oe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,Oe.targetTouches)[0],this.moveTouch(Oe,this._lastPos))},this.touchend=Oe=>{Oe.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:Oe,clickTolerance:Ze,bearingDegreesPerPixelMoved:st=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Ze,move:(Yt,Kt)=>({bearingDelta:(Kt.x-Yt.x)*st}),moveStateManager:Tt,enable:Oe,assignEvents:Ls})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:Oe,clickTolerance:Ze,pitchDegreesPerPixelMoved:st=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Ze,move:(Yt,Kt)=>({pitchDelta:(Kt.y-Yt.y)*st}),moveStateManager:Tt,enable:Oe,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),Oe=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 Oe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Oe="rotateX(0deg)":this._pitchAlignment==="map"&&(Oe=`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) ${Oe} ${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 Oe=c.createNS("http://www.w3.org/2000/svg","g");Oe.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 st=[{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 qe of st){let et=c.createNS("http://www.w3.org/2000/svg","ellipse");et.setAttributeNS(null,"opacity","0.04"),et.setAttributeNS(null,"cx","10.5"),et.setAttributeNS(null,"cy","5.80029008"),et.setAttributeNS(null,"rx",qe.rx),et.setAttributeNS(null,"ry",qe.ry),Ze.appendChild(et)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Yt=c.createNS("http://www.w3.org/2000/svg","path");Yt.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"),Tt.appendChild(Yt);let Kt=c.createNS("http://www.w3.org/2000/svg","g");Kt.setAttributeNS(null,"opacity","0.25"),Kt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.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"),Kt.appendChild(xr);let Ir=c.createNS("http://www.w3.org/2000/svg","g");Ir.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ir.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 be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),Oe.appendChild(Ze),Oe.appendChild(Tt),Oe.appendChild(Kt),Oe.appendChild(Ir),Oe.appendChild(ve),B.appendChild(Oe),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),Oe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Oe)-le<.006)return void(this._element.style.opacity=this._opacity);let Ze=-this._offset.y/ee.transform._pixelPerMeter,st=Math.sin(ee.getPitch()*Math.PI/180)*Ze,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Yt=ee.transform.lngLatToCameraDepth(this._lngLat,Oe+st)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Yt&&this._popup.remove(),this._element.style.opacity=Yt?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]),Oe=ue.unproject([Q,ee]),Ze=le.distanceTo(Oe);if(B&&B.unit==="imperial"){let st=3.2808*Ze;st>5280?Ua(w,Q,st/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,st,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Ze/1852,ue._getUIString("ScaleControl.NauticalMiles")):Ze>=1e3?Ua(w,Q,Ze/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Ze,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let Oe=Math.pow(10,`${Math.floor(le)}`.length-1),Ze=le/Oe;return Ze=Ze>=10?10:Ze>=5?5:Ze>=3?3:Ze>=2?2:Ze>=1?1:function(st){let Tt=Math.pow(10,Math.ceil(-Math.log(st)/Math.LN10));return Math.round(st*Tt)/Tt}(Ze),Oe*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=Na,i.BoxZoomHandler=ku,i.CanvasSource=$t,i.CooperativeGesturesHandler=Qi,i.DoubleClickZoomHandler=ki,i.DragPanHandler=wn,i.DragRotateHandler=Nn,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=ot,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),Oe=ce.fromLngLat(B,Q);this._map.fitBounds(Oe,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=Wt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,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 Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,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 st=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,st),this.painter.resize(Q,ee,st)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Oe=!this._moving;return Oe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Oe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,Oe=w*ee;return Math.min(le>B?B/le:1,Oe>Q?Q/Oe: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 Oe=w.filter(st=>this.getLayer(st)),Ze=Oe.length!==0?this.queryRenderedFeatures(le.point,{layers:Oe}):[];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:Oe=>{let Ze=w.filter(st=>this.getLayer(st));(Ze.length!==0?this.queryRenderedFeatures(Oe.point,{layers:Ze}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,Oe.originalEvent)))},mouseout:Oe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,Oe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Ze=>this.getLayer(Ze)),Oe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];Oe.length&&(ee.features=Oe,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(Oe))){for(let Oe in le.delegates)this.off(Oe,le.delegates[Oe]);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 Oe=ee.delegates[le];ee.delegates[le]=(...Ze)=>{this._removeDelegatedListener(ue,Q,B),Oe(...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]),Oe=a.P.convert(ee[1]);B=[le,new a.P(Oe.x,le.y),Oe,new a.P(le.x,Oe.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:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt}=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:Yt,height:Kt,data:xr}=w,Ir=w;return this.style.addImage(ue,{data:new a.R({width:Yt,height:Kt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt,sdf:ee,version:0,userImage:Ir}),Ir.onAdd&&Ir.onAdd(this,ue),this}}{let{width:Yt,height:Kt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Yt,height:Kt},xr),pixelRatio:Q,stretchX:le,stretchY:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt,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:Oe}=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(Oe,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(Oe=>{le[Oe]=c.create("div",`maplibregl-ctrl-${Oe} `,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 Oe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ze=Oe.crossFadingFactor();Ze===1&&Ze===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Ze),this.style.update(Oe)}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=lf,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,st=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-st?["bottom"]:[],Q.xthis._map.transform.width-Ze/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let Oe=Q.add(le[ee]);this.options.subpixelPositioning||(Oe=Oe.round()),c.setTransform(this._container,`${Ql[ee]} translate(${Oe.x}px,${Oe.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=Vt,i.RasterTileSource=pt,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=cf,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Yi,i.VectorTileSource=lt,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(Tr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[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 Qt().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Ce.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().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 Qt().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 yje=ye((Bbr,mje)=>{"use strict";var vw=Dr(),FXt=Zl().sanitizeHTML,zXt=IJ(),vje=Px();function pje(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=vje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sg=pje.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=v7(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,!!v7(e)){var r=OXt(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 gje(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=zXt(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 OXt(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=FXt(e.sourceattribution)),n}mje.exports=function(t,r,n){var i=new pje(t,r);return i.update(n),i}});var Mje=ye((Nbr,Sje)=>{"use strict";var qJ=dje(),BJ=Dr(),bje=hx(),_je=qa(),qXt=ho(),BXt=yv(),p7=vf(),wje=Cg(),NXt=wje.drawMode,UXt=wje.selectMode,VXt=Of().prepSelect,GXt=Of().clearOutline,HXt=Of().clearSelectionsCache,jXt=Of().selectOnClick,pw=Px(),WXt=yje();function Tje(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=Tje.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=Aje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new qJ.Map({container:i.div,style:o.style,center:NJ(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 qJ.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(bje.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=Aje(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(bje.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&&jXt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&p7.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=BJ.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),UXt(a)||NXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){VXt(l,u,c,t.dragOptions,a)},BXt.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 UJ=Dr(),ZXt=O_(),YXt=Zd(),Eje=Qk();kje.exports=function(t,r,n){ZXt(t,r,n,{type:"map",attributes:Eje,handleDefaults:KXt,partition:"y"})};function KXt(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,YXt(e,t,{name:"layers",handleItemDefaults:JXt}),t._input=e}function JXt(e,t){function r(l,u){return UJ.coerce(e,t,Eje.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",UJ.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"),UJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var m7=ye(u0=>{"use strict";var g7=Dr(),Lje=g7.strTranslate,$Xt=g7.strScale,QXt=Id().getSubplotCalcData,eZt=Wp(),tZt=Oa(),Pje=So(),rZt=Zl(),iZt=Mje(),Ix="map";u0.name=Ix;u0.attr="subplot";u0.idRoot=Ix;u0.idRegex=u0.attrRegex=g7.counterRegex(Ix);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=Qk();u0.supplyLayoutDefaults=Cje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ix],a=0;a_/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(rZt.convertToTspans,e),v=Pje.bBox(d.node())}d.attr("transform",Lje(-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>_&&(p=_/(v.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",Lje(k[0],k[1])+$Xt(p))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ix],n=0;n{"use strict";Ije.exports={attributes:l7(),supplyDefaults:jHe(),colorbar:$d(),formatLabels:PJ(),calc:_F(),plot:aje(),hoverPoints:d7().hoverPoints,eventData:uje(),selectPoints:fje(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:m7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Fje=ye((Hbr,Dje)=>{"use strict";Dje.exports=Rje()});var VJ=ye((jbr,zje)=>{"use strict";var x1=a5(),nZt=Tu(),{hovertemplateAttrs:aZt,templatefallbackAttrs:oZt}=Ll(),sZt=Gl(),Rx=Ao().extendFlat;zje.exports=Rx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Rx({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Rx({},x1.marker.line.color,{editType:"plot"}),width:Rx({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Rx({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Rx({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Rx({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:aZt({},{keys:["properties"]}),hovertemplatefallback:oZt(),showlegend:Rx({},sZt.showlegend,{dflt:!1})},nZt("",{cLetter:"z",editTypeOverride:"calc"}))});var qje=ye((Wbr,Oje)=>{"use strict";var iC=Dr(),lZt=td(),uZt=VJ();Oje.exports=function(t,r,n,i){function a(c,f){return iC.coerce(t,r,uZt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!iC.isArrayOrTypedArray(o)||!o.length||!iC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||iC.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"),lZt(t,r,i,a,{prefix:"",cLetter:"z"}),iC.coerceSelectionMarkerOpacity(r,a)}});var GJ=ye((Xbr,Uje)=>{"use strict";var cZt=Eo(),b1=Dr(),fZt=tc(),hZt=So(),dZt=cx().makeBlank,Bje=hx();function vZt(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:dZt()};if(!r)return a;var o=Bje.extractTraceFeature(e);if(!o)return a;var s=fZt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;b1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var E=k.mo;return cZt(E)?+b1.constrain(E,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 Gje=GJ().convert,pZt=GJ().convertOnSelect,Vje=Px().traceLayerPrefix;function Hje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Vje+t+"-fill"],["line",Vje+t+"-line"]],this.below=null}var D5=Hje.prototype;D5.update=function(e){this._update(Gje(e)),e[0].trace._glTrace=this};D5.updateOnSelect=function(e){this._update(pZt(e))};D5._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])};D5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};jje.exports=function(t,r){var n=r[0].trace,i=new Hje(t,n.uid),a=i.sourceId,o=Gje(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 Zje=ye((Ybr,Xje)=>{"use strict";Xje.exports={attributes:VJ(),supplyDefaults:qje(),colorbar:D_(),calc:NF(),plot:Wje(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";Yje.exports=Zje()});var jJ=ye((Jbr,$je)=>{"use strict";var gZt=Tu(),{hovertemplateAttrs:mZt,templatefallbackAttrs:yZt}=Ll(),Jje=Gl(),y7=l7(),HJ=Ao().extendFlat;$je.exports=HJ({lon:y7.lon,lat:y7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:y7.text,hovertext:y7.hovertext,hoverinfo:HJ({},Jje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:mZt(),hovertemplatefallback:yZt(),showlegend:HJ({},Jje.showlegend,{dflt:!1})},gZt("",{cLetter:"z",editTypeOverride:"calc"}))});var eWe=ye(($br,Qje)=>{"use strict";var _Zt=Dr(),xZt=td(),bZt=jJ();Qje.exports=function(t,r,n,i){function a(u,c){return _Zt.coerce(t,r,bZt,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 iWe=ye((Qbr,rWe)=>{"use strict";var WJ=Eo(),wZt=Dr().isArrayOrTypedArray,XJ=fs().BADNUM,TZt=gv(),tWe=Dr()._;rWe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=wZt(a)&&a.length,s=0;s{"use strict";var AZt=Eo(),ZJ=Dr(),nWe=ka(),aWe=tc(),oWe=fs().BADNUM,SZt=cx().makeBlank;sWe.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:SZt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=ZJ.isArrayOrTypedArray(l)&&l.length,f=ZJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=aWe.extractOpts(r),p=b.reversescale?aWe.flipScale(b.colorscale):b.colorscale,k=p[0][1],E=nWe.opacity(k)<1?k:nWe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var uWe=lWe(),MZt=Px().traceLayerPrefix;function cWe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",MZt+t+"-heatmap"]],this.below=null}var _7=cWe.prototype;_7.update=function(e){var t=this.subplot,r=this.layerList,n=uWe(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])};_7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};fWe.exports=function(t,r){var n=r[0].trace,i=new cWe(t,n.uid),a=i.sourceId,o=uWe(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 vWe=ye((r2r,dWe)=>{"use strict";var EZt=ho(),kZt=d7().hoverPoints,CZt=d7().getExtraText;dWe.exports=function(t,r,n){var i=kZt(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=EZt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=CZt(s,l,o[0].t.labels),[a]}}});var gWe=ye((i2r,pWe)=>{"use strict";pWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var yWe=ye((n2r,mWe)=>{"use strict";mWe.exports={attributes:jJ(),supplyDefaults:eWe(),colorbar:D_(),formatLabels:PJ(),calc:iWe(),plot:hWe(),hoverPoints:vWe(),eventData:gWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";_We.exports=yWe()});var KJ=ye((s2r,SWe)=>{"use strict";var LZt=ec(),PZt=Gl(),bWe=Ih(),YJ=v3(),IZt=Cc().attributes,{hovertemplateAttrs:wWe,templatefallbackAttrs:TWe}=Ll(),RZt=Tu(),DZt=vl().templatedArray,FZt=df().descriptionOnlyNumbers,AWe=Ao().extendFlat,zZt=mc().overrideAll,o2r=SWe.exports=zZt({hoverinfo:AWe({},PZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:YJ.hoverlabel,domain:IZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:FZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:LZt({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:bWe.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:YJ.hoverlabel,hovertemplate:wWe({},{keys:["value","label"]}),hovertemplatefallback:TWe(),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:bWe.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:YJ.hoverlabel,hovertemplate:wWe({},{keys:["value","label"]}),hovertemplatefallback:TWe(),colorscales:DZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:AWe(RZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var LWe=ye((l2r,CWe)=>{"use strict";var F5=Dr(),x7=KJ(),OZt=ka(),MWe=fd(),qZt=Cc().defaults,EWe=_M(),kWe=vl(),BZt=Zd();CWe.exports=function(t,r,n,i){function a(T,L){return F5.coerce(t,r,x7,T,L)}var o=F5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=kWe.newContainer(r,"node");function u(T,L){return F5.coerce(s,l,x7.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),EWe(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 OZt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=kWe.newContainer(r,"link");function v(T,L){return F5.coerce(h,d,x7.link,T,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),EWe(h,d,v,o),v("hovertemplate");var _=MWe(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function k(T){var L=MWe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(k):k(p)),v("customdata"),BZt(h,d,{name:"colorscales",handleItemDefaults:NZt}),qZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),F5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function NZt(e,t){function r(n,i){return F5.coerce(e,t,x7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var JJ=ye((u2r,PWe)=>{"use strict";PWe.exports=UZt;function UZt(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 E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var x=[],C=[],M=0,T=p.length-1;T>=0;--T){var g=p[T];if(i[g]=!1,x.push(g),C.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=T;break}}c.push(x);for(var P=new Array(M),T=0;T{"use strict";var VZt=JJ(),z5=Dr(),GZt=iy().wrap,nC=z5.isArrayOrTypedArray,IWe=z5.isIndex,RWe=tc();function HZt(e){var t=e.node,r=e.link,n=[],i=nC(r.color),a=nC(r.hovercolor),o=nC(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 _=v+1;e.node._count=_;var b,p=e.node.groups,k={};for(c=0;c0&&IWe(M,_)&&IWe(g,_)&&!(k.hasOwnProperty(M)&&k.hasOwnProperty(g)&&k[M]===k[g])){k.hasOwnProperty(g)&&(g=k[g]),k.hasOwnProperty(M)&&(M=k[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var A=null;P&&l.hasOwnProperty(P)&&(A=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:A,source:M,target:g,value:+C}),x.source.push(M),x.target.push(g)}}var z=_+p.length,O=nC(t.color),U=nC(t.customdata),G=[];for(c=0;c_-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:U?t.customdata[c]:t.customdata})}var j=!1;return jZt(z,x.source,x.target)&&(j=!0),{circular:j,links:n,nodes:G,groups:p,groupLookup:k}}function jZt(e,t,r){for(var n=z5.init2dArray(e,0),i=0;i1})}DWe.exports=function(t,r){var n=HZt(r);return GZt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var OWe=ye((b7,zWe)=>{(function(e,t){typeof b7=="object"&&typeof zWe!="undefined"?t(b7):(e=e||self,t(e.d3=e.d3||{}))})(b7,function(e){"use strict";function t(C){var M=+this._x.call(null,C),g=+this._y.call(null,C);return r(this.cover(M,g),M,g,C)}function r(C,M,g,P){if(isNaN(M)||isNaN(g))return C;var A,z=C._root,O={data:P},U=C._x0,G=C._y0,Z=C._x1,j=C._y1,N,H,re,oe,_e,Ce,Le,ge;if(!z)return C._root=O,C;for(;z.length;)if((_e=M>=(N=(U+Z)/2))?U=N:Z=N,(Ce=g>=(H=(G+j)/2))?G=H:j=H,A=z,!(z=z[Le=Ce<<1|_e]))return A[Le]=O,C;if(re=+C._x.call(null,z.data),oe=+C._y.call(null,z.data),M===re&&g===oe)return O.next=z,A?A[Le]=O:C._root=O,C;do A=A?A[Le]=new Array(4):C._root=new Array(4),(_e=M>=(N=(U+Z)/2))?U=N:Z=N,(Ce=g>=(H=(G+j)/2))?G=H:j=H;while((Le=Ce<<1|_e)===(ge=(oe>=H)<<1|re>=N));return A[ge]=z,A[Le]=O,C}function n(C){var M,g,P=C.length,A,z,O=new Array(P),U=new Array(P),G=1/0,Z=1/0,j=-1/0,N=-1/0;for(g=0;gj&&(j=A),zN&&(N=z));if(G>j||Z>N)return this;for(this.cover(G,Z).cover(j,N),g=0;gC||C>=A||P>M||M>=z;)switch(Z=(Mj||(U=oe.y0)>N||(G=oe.x1)=Le)<<1|C>=Ce)&&(oe=H[H.length-1],H[H.length-1]=H[H.length-1-_e],H[H.length-1-_e]=oe)}else{var ge=C-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=ge*ge+ie*ie;if(Se=(H=(O+G)/2))?O=H:G=H,(_e=N>=(re=(U+Z)/2))?U=re:Z=re,M=g,!(g=g[Ce=_e<<1|oe]))return this;if(!g.length)break;(M[Ce+1&3]||M[Ce+2&3]||M[Ce+3&3])&&(P=M,Le=Ce)}for(;g.data!==C;)if(A=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,A?(z?A.next=z:delete A.next,this):M?(z?M[Ce]=z:delete M[Ce],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[Le]=g:this._root=g),this):(this._root=z,this)}function c(C){for(var M=0,g=C.length;M{(function(e,t){t(typeof w7=="object"&&typeof qWe!="undefined"?w7:e.d3=e.d3||{})})(w7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var p=new r;if(_ instanceof r)_.each(function(x,C){p.set(C,x)});else if(Array.isArray(_)){var k=-1,E=_.length,T;if(b==null)for(;++k=_.length)return p!=null&&x.sort(p),k!=null?k(x):x;for(var P=-1,A=x.length,z=_[C++],O,U,G=n(),Z,j=M();++P_.length)return x;var M,g=b[C-1];return k!=null&&C>=_.length?M=x.entries():(M=[],x.each(function(P,A){M.push({key:A,values:L(P,C)})})),g!=null?M.sort(function(P,A){return g(P.key,A.key)}):M}return E={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 _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return p=x,E},rollup:function(x){return k=x,E}}}function a(){return{}}function o(_,b,p){_[b]=p}function s(){return n()}function l(_,b,p){_.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(_){return _+="",this[t+_]=_,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(_,b){var p=new u;if(_ instanceof u)_.each(function(T){p.add(T)});else if(_){var k=-1,E=_.length;if(b==null)for(;++k{(function(e,t){typeof A7=="object"&&typeof BWe!="undefined"?t(A7):(e=e||self,t(e.d3=e.d3||{}))})(A7,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 S7=="object"&&typeof UWe!="undefined"?t(S7):(e=e||self,t(e.d3=e.d3||{}))})(S7,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=_.prototype={constructor:v,restart:function(C,M,g){if(typeof C!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!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 _(C,M,g){var P=new v;return P.restart(C,M,g),P}function b(){h(),++t;for(var C=a,M;C;)(M=l-C._time)>=0&&C._call.call(null,M),C=C._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function k(){var C=c.now(),M=C-s;M>i&&(u-=M,s=C)}function E(){for(var C,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),C=M,M=M._next):(g=M._next,M._next=null,M=C?C._next=g:a=g);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var M=C-l;M>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,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(A){P.stop(),C(A+M)},M,g),P}function x(C,M,g){var P=new v,A=M;return M==null?(P.restart(C,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=A,P.restart(z,A+=M,g),C(O)},M,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var HWe=ye((M7,GWe)=>{(function(e,t){typeof M7=="object"&&typeof GWe!="undefined"?t(M7,OWe(),T7(),NWe(),VWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(M7,function(e,t,r,n,i){"use strict";function a(C,M){var g;C==null&&(C=0),M==null&&(M=0);function P(){var A,z=g.length,O,U=0,G=0;for(A=0;AN.index){var De=H-Be.x-Be.vx,ce=re-Be.y-Be.vy,je=De*De+ce*ce;jeH+me||Eere+me||AeG.r&&(G.r=G[Z].r)}function U(){if(M){var G,Z=M.length,j;for(g=new Array(Z),G=0;G1?(_e==null?U.remove(oe):U.set(oe,re(_e)),M):U.get(oe)},find:function(oe,_e,Ce){var Le=0,ge=C.length,ie,Se,Ee,Ae,Be;for(Ce==null?Ce=1/0:Ce*=Ce,Le=0;Le1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var C,M,g,P=o(-30),A,z=1,O=1/0,U=.81;function G(H){var re,oe=C.length,_e=t.quadtree(C,v,_).visitAfter(j);for(g=H,re=0;re=O)return;(H.data!==M||H.next)&&(Ce===0&&(Ce=s(),ie+=Ce*Ce),Le===0&&(Le=s(),ie+=Le*Le),ie{(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=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,_=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-_*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,T=c-d,L=v*v+_*_,x=E*E+T*T,C=Math.sqrt(L),M=Math.sqrt(k),g=f*Math.tan((t-Math.acos((L+k-x)/(2*C*M)))/2),P=g/M,A=g/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*T)+","+(this._x1=s+A*v)+","+(this._y1=l+A*_)}},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),_=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"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+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=_)+","+(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 $J=ye((k7,XWe)=>{(function(e,t){typeof k7=="object"&&typeof XWe!="undefined"?t(k7,WWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(k7,function(e,t){"use strict";function r(Mt){return function(){return Mt}}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(Mt){return Mt>1?0:Mt<-1?f:Math.acos(Mt)}function _(Mt){return Mt>=1?h:Mt<=-1?-h:Math.asin(Mt)}function b(Mt){return Mt.innerRadius}function p(Mt){return Mt.outerRadius}function k(Mt){return Mt.startAngle}function E(Mt){return Mt.endAngle}function T(Mt){return Mt&&Mt.padAngle}function L(Mt,kr,Jr,vi,hn,An,Mn,Li){var _n=Jr-Mt,ya=vi-kr,$n=Mn-hn,Ma=Li-An,_o=Ma*_n-$n*ya;if(!(_o*_oYl*Yl+Su*Su&&(As=Ks,cl=zs),{cx:As,cy:cl,x01:-$n,y01:-Ma,x11:As*(hn/zl-1),y11:cl*(hn/zl-1)}}function C(){var Mt=b,kr=p,Jr=r(0),vi=null,hn=k,An=E,Mn=T,Li=null;function _n(){var ya,$n,Ma=+Mt.apply(this,arguments),_o=+kr.apply(this,arguments),No=hn.apply(this,arguments)-h,po=An.apply(this,arguments)-h,Lo=n(po-No),ko=po>No;if(Li||(Li=ya=t.path()),_oc))Li.moveTo(0,0);else if(Lo>d-c)Li.moveTo(_o*a(No),_o*l(No)),Li.arc(0,0,_o,No,po,!ko),Ma>c&&(Li.moveTo(Ma*a(po),Ma*l(po)),Li.arc(0,0,Ma,po,No,ko));else{var Ds=No,Fs=po,ll=No,ul=po,zl=Lo,us=Lo,il=Mn.apply(this,arguments)/2,As=il>c&&(vi?+vi.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=_(As/Ma*l(il)),Su=_(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),Ol=_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,Ol,Rn,_a,_o,zs,ko),Li.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),zsc)||!(zl>c)?Li.lineTo(Rn,_a):Ks>c?(Io=x(Rn,_a,Vu,Ol,Ma,-Ks,ko),ls=x(nc,bs,xo,Kl,Ma,-Ks,ko),Li.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Ks=_o;--No)Li.point(Fs[No],ll[No]);Li.lineEnd(),Li.areaEnd()}ko&&(Fs[Ma]=+Mt(Lo,Ma,$n),ll[Ma]=+Jr(Lo,Ma,$n),Li.point(kr?+kr(Lo,Ma,$n):Fs[Ma],vi?+vi(Lo,Ma,$n):ll[Ma]))}if(Ds)return Li=null,Ds+""||null}function ya(){return z().defined(hn).curve(Mn).context(An)}return _n.x=function($n){return arguments.length?(Mt=typeof $n=="function"?$n:r(+$n),kr=null,_n):Mt},_n.x0=function($n){return arguments.length?(Mt=typeof $n=="function"?$n:r(+$n),_n):Mt},_n.x1=function($n){return arguments.length?(kr=$n==null?null:typeof $n=="function"?$n:r(+$n),_n):kr},_n.y=function($n){return arguments.length?(Jr=typeof $n=="function"?$n:r(+$n),vi=null,_n):Jr},_n.y0=function($n){return arguments.length?(Jr=typeof $n=="function"?$n:r(+$n),_n):Jr},_n.y1=function($n){return arguments.length?(vi=$n==null?null:typeof $n=="function"?$n:r(+$n),_n):vi},_n.lineX0=_n.lineY0=function(){return ya().x(Mt).y(Jr)},_n.lineY1=function(){return ya().x(Mt).y(vi)},_n.lineX1=function(){return ya().x(kr).y(Jr)},_n.defined=function($n){return arguments.length?(hn=typeof $n=="function"?$n:r(!!$n),_n):hn},_n.curve=function($n){return arguments.length?(Mn=$n,An!=null&&(Li=Mn(An)),_n):Mn},_n.context=function($n){return arguments.length?($n==null?An=Li=null:Li=Mn(An=$n),_n):An},_n}function U(Mt,kr){return krMt?1:kr>=Mt?0:NaN}function G(Mt){return Mt}function Z(){var Mt=G,kr=U,Jr=null,vi=r(0),hn=r(d),An=r(0);function Mn(Li){var _n,ya=Li.length,$n,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+vi.apply(this,arguments),ko=Math.min(d,Math.max(-d,hn.apply(this,arguments)-Lo)),Ds,Fs=Math.min(Math.abs(ko)/ya,An.apply(this,arguments)),ll=Fs*(ko<0?-1:1),ul;for(_n=0;_n0&&(_o+=ul);for(kr!=null?No.sort(function(zl,us){return kr(po[zl],po[us])}):Jr!=null&&No.sort(function(zl,us){return Jr(Li[zl],Li[us])}),_n=0,Ma=_o?(ko-ya*ll)/_o:0;_n0?ul*Ma:0)+ll,po[$n]={data:Li[$n],index:_n,value:ul,startAngle:Lo,endAngle:Ds,padAngle:Fs};return po}return Mn.value=function(Li){return arguments.length?(Mt=typeof Li=="function"?Li:r(+Li),Mn):Mt},Mn.sortValues=function(Li){return arguments.length?(kr=Li,Jr=null,Mn):kr},Mn.sort=function(Li){return arguments.length?(Jr=Li,kr=null,Mn):Jr},Mn.startAngle=function(Li){return arguments.length?(vi=typeof Li=="function"?Li:r(+Li),Mn):vi},Mn.endAngle=function(Li){return arguments.length?(hn=typeof Li=="function"?Li:r(+Li),Mn):hn},Mn.padAngle=function(Li){return arguments.length?(An=typeof Li=="function"?Li:r(+Li),Mn):An},Mn}var j=H(g);function N(Mt){this._curve=Mt}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Mt,kr){this._curve.point(kr*Math.sin(Mt),kr*-Math.cos(Mt))}};function H(Mt){function kr(Jr){return new N(Mt(Jr))}return kr._curve=Mt,kr}function re(Mt){var kr=Mt.curve;return Mt.angle=Mt.x,delete Mt.x,Mt.radius=Mt.y,delete Mt.y,Mt.curve=function(Jr){return arguments.length?kr(H(Jr)):kr()._curve},Mt}function oe(){return re(z().curve(j))}function _e(){var Mt=O().curve(j),kr=Mt.curve,Jr=Mt.lineX0,vi=Mt.lineX1,hn=Mt.lineY0,An=Mt.lineY1;return Mt.angle=Mt.x,delete Mt.x,Mt.startAngle=Mt.x0,delete Mt.x0,Mt.endAngle=Mt.x1,delete Mt.x1,Mt.radius=Mt.y,delete Mt.y,Mt.innerRadius=Mt.y0,delete Mt.y0,Mt.outerRadius=Mt.y1,delete Mt.y1,Mt.lineStartAngle=function(){return re(Jr())},delete Mt.lineX0,Mt.lineEndAngle=function(){return re(vi())},delete Mt.lineX1,Mt.lineInnerRadius=function(){return re(hn())},delete Mt.lineY0,Mt.lineOuterRadius=function(){return re(An())},delete Mt.lineY1,Mt.curve=function(Mn){return arguments.length?kr(H(Mn)):kr()._curve},Mt}function Ce(Mt,kr){return[(kr=+kr)*Math.cos(Mt-=Math.PI/2),kr*Math.sin(Mt)]}var Le=Array.prototype.slice;function ge(Mt){return Mt.source}function ie(Mt){return Mt.target}function Se(Mt){var kr=ge,Jr=ie,vi=P,hn=A,An=null;function Mn(){var Li,_n=Le.call(arguments),ya=kr.apply(this,_n),$n=Jr.apply(this,_n);if(An||(An=Li=t.path()),Mt(An,+vi.apply(this,(_n[0]=ya,_n)),+hn.apply(this,_n),+vi.apply(this,(_n[0]=$n,_n)),+hn.apply(this,_n)),Li)return An=null,Li+""||null}return Mn.source=function(Li){return arguments.length?(kr=Li,Mn):kr},Mn.target=function(Li){return arguments.length?(Jr=Li,Mn):Jr},Mn.x=function(Li){return arguments.length?(vi=typeof Li=="function"?Li:r(+Li),Mn):vi},Mn.y=function(Li){return arguments.length?(hn=typeof Li=="function"?Li:r(+Li),Mn):hn},Mn.context=function(Li){return arguments.length?(An=Li==null?null:Li,Mn):An},Mn}function Ee(Mt,kr,Jr,vi,hn){Mt.moveTo(kr,Jr),Mt.bezierCurveTo(kr=(kr+vi)/2,Jr,kr,hn,vi,hn)}function Ae(Mt,kr,Jr,vi,hn){Mt.moveTo(kr,Jr),Mt.bezierCurveTo(kr,Jr=(Jr+hn)/2,vi,Jr,vi,hn)}function Be(Mt,kr,Jr,vi,hn){var An=Ce(kr,Jr),Mn=Ce(kr,Jr=(Jr+hn)/2),Li=Ce(vi,Jr),_n=Ce(vi,hn);Mt.moveTo(An[0],An[1]),Mt.bezierCurveTo(Mn[0],Mn[1],Li[0],Li[1],_n[0],_n[1])}function Pe(){return Se(Ee)}function me(){return Se(Ae)}function De(){var Mt=Se(Be);return Mt.angle=Mt.x,delete Mt.x,Mt.radius=Mt.y,delete Mt.y,Mt}var ce={draw:function(Mt,kr){var Jr=Math.sqrt(kr/f);Mt.moveTo(Jr,0),Mt.arc(0,0,Jr,0,d)}},je={draw:function(Mt,kr){var Jr=Math.sqrt(kr/5)/2;Mt.moveTo(-3*Jr,-Jr),Mt.lineTo(-Jr,-Jr),Mt.lineTo(-Jr,-3*Jr),Mt.lineTo(Jr,-3*Jr),Mt.lineTo(Jr,-Jr),Mt.lineTo(3*Jr,-Jr),Mt.lineTo(3*Jr,Jr),Mt.lineTo(Jr,Jr),Mt.lineTo(Jr,3*Jr),Mt.lineTo(-Jr,3*Jr),Mt.lineTo(-Jr,Jr),Mt.lineTo(-3*Jr,Jr),Mt.closePath()}},lt=Math.sqrt(1/3),pt=lt*2,Vt={draw:function(Mt,kr){var Jr=Math.sqrt(kr/pt),vi=Jr*lt;Mt.moveTo(0,-Jr),Mt.lineTo(vi,0),Mt.lineTo(0,Jr),Mt.lineTo(-vi,0),Mt.closePath()}},ot=.8908130915292852,ut=Math.sin(f/10)/Math.sin(7*f/10),Wt=Math.sin(d/10)*ut,Nt=-Math.cos(d/10)*ut,$t={draw:function(Mt,kr){var Jr=Math.sqrt(kr*ot),vi=Wt*Jr,hn=Nt*Jr;Mt.moveTo(0,-Jr),Mt.lineTo(vi,hn);for(var An=1;An<5;++An){var Mn=d*An/5,Li=Math.cos(Mn),_n=Math.sin(Mn);Mt.lineTo(_n*Jr,-Li*Jr),Mt.lineTo(Li*vi-_n*hn,_n*vi+Li*hn)}Mt.closePath()}},sr={draw:function(Mt,kr){var Jr=Math.sqrt(kr),vi=-Jr/2;Mt.rect(vi,vi,Jr,Jr)}},Tr=Math.sqrt(3),fr={draw:function(Mt,kr){var Jr=-Math.sqrt(kr/(Tr*3));Mt.moveTo(0,Jr*2),Mt.lineTo(-Tr*Jr,-Jr),Mt.lineTo(Tr*Jr,-Jr),Mt.closePath()}},$e=-.5,St=Math.sqrt(3)/2,Qt=1/Math.sqrt(12),Gt=(Qt/2+1)*3,_t={draw:function(Mt,kr){var Jr=Math.sqrt(kr/Gt),vi=Jr/2,hn=Jr*Qt,An=vi,Mn=Jr*Qt+Jr,Li=-An,_n=Mn;Mt.moveTo(vi,hn),Mt.lineTo(An,Mn),Mt.lineTo(Li,_n),Mt.lineTo($e*vi-St*hn,St*vi+$e*hn),Mt.lineTo($e*An-St*Mn,St*An+$e*Mn),Mt.lineTo($e*Li-St*_n,St*Li+$e*_n),Mt.lineTo($e*vi+St*hn,$e*hn-St*vi),Mt.lineTo($e*An+St*Mn,$e*Mn-St*An),Mt.lineTo($e*Li+St*_n,$e*_n-St*Li),Mt.closePath()}},It=[ce,je,Vt,sr,$t,fr,_t];function mt(){var Mt=r(ce),kr=r(64),Jr=null;function vi(){var hn;if(Jr||(Jr=hn=t.path()),Mt.apply(this,arguments).draw(Jr,+kr.apply(this,arguments)),hn)return Jr=null,hn+""||null}return vi.type=function(hn){return arguments.length?(Mt=typeof hn=="function"?hn:r(hn),vi):Mt},vi.size=function(hn){return arguments.length?(kr=typeof hn=="function"?hn:r(+hn),vi):kr},vi.context=function(hn){return arguments.length?(Jr=hn==null?null:hn,vi):Jr},vi}function er(){}function lr(Mt,kr,Jr){Mt._context.bezierCurveTo((2*Mt._x0+Mt._x1)/3,(2*Mt._y0+Mt._y1)/3,(Mt._x0+2*Mt._x1)/3,(Mt._y0+2*Mt._y1)/3,(Mt._x0+4*Mt._x1+kr)/6,(Mt._y0+4*Mt._y1+Jr)/6)}function wr(Mt){this._context=Mt}wr.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:lr(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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);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:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function Lr(Mt){return new wr(Mt)}function ti(Mt){this._context=Mt}ti.prototype={areaStart:er,areaEnd:er,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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._x2=Mt,this._y2=kr;break;case 1:this._point=2,this._x3=Mt,this._y3=kr;break;case 2:this._point=3,this._x4=Mt,this._y4=kr,this._context.moveTo((this._x0+4*this._x1+Mt)/6,(this._y0+4*this._y1+kr)/6);break;default:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function Br(Mt){return new ti(Mt)}function Vr(Mt){this._context=Mt}Vr.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(Mt,kr){switch(Mt=+Mt,kr=+kr,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+Mt)/6,vi=(this._y0+4*this._y1+kr)/6;this._line?this._context.lineTo(Jr,vi):this._context.moveTo(Jr,vi);break;case 3:this._point=4;default:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function dt(Mt){return new Vr(Mt)}function Ge(Mt,kr){this._basis=new wr(Mt),this._beta=kr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Mt=this._x,kr=this._y,Jr=Mt.length-1;if(Jr>0)for(var vi=Mt[0],hn=kr[0],An=Mt[Jr]-vi,Mn=kr[Jr]-hn,Li=-1,_n;++Li<=Jr;)_n=Li/Jr,this._basis.point(this._beta*Mt[Li]+(1-this._beta)*(vi+_n*An),this._beta*kr[Li]+(1-this._beta)*(hn+_n*Mn));this._x=this._y=null,this._basis.lineEnd()},point:function(Mt,kr){this._x.push(+Mt),this._y.push(+kr)}};var Je=function Mt(kr){function Jr(vi){return kr===1?new wr(vi):new Ge(vi,kr)}return Jr.beta=function(vi){return Mt(+vi)},Jr}(.85);function We(Mt,kr,Jr){Mt._context.bezierCurveTo(Mt._x1+Mt._k*(Mt._x2-Mt._x0),Mt._y1+Mt._k*(Mt._y2-Mt._y0),Mt._x2+Mt._k*(Mt._x1-kr),Mt._y2+Mt._k*(Mt._y1-Jr),Mt._x2,Mt._y2)}function tt(Mt,kr){this._context=Mt,this._k=(1-kr)/6}tt.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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2,this._x1=Mt,this._y1=kr;break;case 2:this._point=3;default:We(this,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xt=function Mt(kr){function Jr(vi){return new tt(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function Ie(Mt,kr){this._context=Mt,this._k=(1-kr)/6}Ie.prototype={areaStart:er,areaEnd:er,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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._x3=Mt,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=Mt,this._y4=kr);break;case 2:this._point=3,this._x5=Mt,this._y5=kr;break;default:We(this,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xe=function Mt(kr){function Jr(vi){return new Ie(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function ke(Mt,kr){this._context=Mt,this._k=(1-kr)/6}ke.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(Mt,kr){switch(Mt=+Mt,kr=+kr,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,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vt=function Mt(kr){function Jr(vi){return new ke(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function ir(Mt,kr,Jr){var vi=Mt._x1,hn=Mt._y1,An=Mt._x2,Mn=Mt._y2;if(Mt._l01_a>c){var Li=2*Mt._l01_2a+3*Mt._l01_a*Mt._l12_a+Mt._l12_2a,_n=3*Mt._l01_a*(Mt._l01_a+Mt._l12_a);vi=(vi*Li-Mt._x0*Mt._l12_2a+Mt._x2*Mt._l01_2a)/_n,hn=(hn*Li-Mt._y0*Mt._l12_2a+Mt._y2*Mt._l01_2a)/_n}if(Mt._l23_a>c){var ya=2*Mt._l23_2a+3*Mt._l23_a*Mt._l12_a+Mt._l12_2a,$n=3*Mt._l23_a*(Mt._l23_a+Mt._l12_a);An=(An*ya+Mt._x1*Mt._l23_2a-kr*Mt._l12_2a)/$n,Mn=(Mn*ya+Mt._y1*Mt._l23_2a-Jr*Mt._l12_2a)/$n}Mt._context.bezierCurveTo(vi,hn,An,Mn,Mt._x2,Mt._y2)}function ar(Mt,kr){this._context=Mt,this._alpha=kr}ar.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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;break;case 2:this._point=3;default:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vr=function Mt(kr){function Jr(vi){return kr?new ar(vi,kr):new tt(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function ii(Mt,kr){this._context=Mt,this._alpha=kr}ii.prototype={areaStart:er,areaEnd:er,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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Mt,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=Mt,this._y4=kr);break;case 2:this._point=3,this._x5=Mt,this._y5=kr;break;default:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var pi=function Mt(kr){function Jr(vi){return kr?new ii(vi,kr):new Ie(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function $r(Mt,kr){this._context=Mt,this._alpha=kr}$r.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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,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:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var di=function Mt(kr){function Jr(vi){return kr?new $r(vi,kr):new ke(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function ji(Mt){this._context=Mt}ji.prototype={areaStart:er,areaEnd:er,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Mt,kr){Mt=+Mt,kr=+kr,this._point?this._context.lineTo(Mt,kr):(this._point=1,this._context.moveTo(Mt,kr))}};function In(Mt){return new ji(Mt)}function wi(Mt){return Mt<0?-1:1}function On(Mt,kr,Jr){var vi=Mt._x1-Mt._x0,hn=kr-Mt._x1,An=(Mt._y1-Mt._y0)/(vi||hn<0&&-0),Mn=(Jr-Mt._y1)/(hn||vi<0&&-0),Li=(An*hn+Mn*vi)/(vi+hn);return(wi(An)+wi(Mn))*Math.min(Math.abs(An),Math.abs(Mn),.5*Math.abs(Li))||0}function qn(Mt,kr){var Jr=Mt._x1-Mt._x0;return Jr?(3*(Mt._y1-Mt._y0)/Jr-kr)/2:kr}function Fn(Mt,kr,Jr){var vi=Mt._x0,hn=Mt._y0,An=Mt._x1,Mn=Mt._y1,Li=(An-vi)/3;Mt._context.bezierCurveTo(vi+Li,hn+Li*kr,An-Li,Mn-Li*Jr,An,Mn)}function ra(Mt){this._context=Mt}ra.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:Fn(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(Mt,kr){var Jr=NaN;if(Mt=+Mt,kr=+kr,!(Mt===this._x1&&kr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;break;case 2:this._point=3,Fn(this,qn(this,Jr=On(this,Mt,kr)),Jr);break;default:Fn(this,this._t0,Jr=On(this,Mt,kr));break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr,this._t0=Jr}}};function la(Mt){this._context=new Ut(Mt)}(la.prototype=Object.create(ra.prototype)).point=function(Mt,kr){ra.prototype.point.call(this,kr,Mt)};function Ut(Mt){this._context=Mt}Ut.prototype={moveTo:function(Mt,kr){this._context.moveTo(kr,Mt)},closePath:function(){this._context.closePath()},lineTo:function(Mt,kr){this._context.lineTo(kr,Mt)},bezierCurveTo:function(Mt,kr,Jr,vi,hn,An){this._context.bezierCurveTo(kr,Mt,vi,Jr,An,hn)}};function wt(Mt){return new ra(Mt)}function rr(Mt){return new la(Mt)}function nr(Mt){this._context=Mt}nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Mt=this._x,kr=this._y,Jr=Mt.length;if(Jr)if(this._line?this._context.lineTo(Mt[0],kr[0]):this._context.moveTo(Mt[0],kr[0]),Jr===2)this._context.lineTo(Mt[1],kr[1]);else for(var vi=Er(Mt),hn=Er(kr),An=0,Mn=1;Mn=0;--kr)hn[kr]=(Mn[kr]-hn[kr+1])/An[kr];for(An[Jr-1]=(Mt[Jr]+hn[Jr-1])/2,kr=0;kr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,kr),this._context.lineTo(Mt,kr);else{var Jr=this._x*(1-this._t)+Mt*this._t;this._context.lineTo(Jr,this._y),this._context.lineTo(Jr,kr)}break}}this._x=Mt,this._y=kr}};function Qr(Mt){return new ri(Mt,.5)}function Oi(Mt){return new ri(Mt,0)}function $i(Mt){return new ri(Mt,1)}function tn(Mt,kr){if((Mn=Mt.length)>1)for(var Jr=1,vi,hn,An=Mt[kr[0]],Mn,Li=An.length;Jr=0;)Jr[kr]=kr;return Jr}function yn(Mt,kr){return Mt[kr]}function Sn(){var Mt=r([]),kr=fn,Jr=tn,vi=yn;function hn(An){var Mn=Mt.apply(this,arguments),Li,_n=An.length,ya=Mn.length,$n=new Array(ya),Ma;for(Li=0;Li0){for(var Jr,vi,hn=0,An=Mt[0].length,Mn;hn0)for(var Jr,vi=0,hn,An,Mn,Li,_n,ya=Mt[kr[0]].length;vi0?(hn[0]=Mn,hn[1]=Mn+=An):An<0?(hn[1]=Li,hn[0]=Li+=An):(hn[0]=0,hn[1]=An)}function ma(Mt,kr){if((hn=Mt.length)>0){for(var Jr=0,vi=Mt[kr[0]],hn,An=vi.length;Jr0)||!((An=(hn=Mt[kr[0]]).length)>0))){for(var Jr=0,vi=1,hn,An,Mn;viAn&&(An=hn,Jr=kr);return Jr}function da(Mt){var kr=Mt.map(Wn);return fn(Mt).sort(function(Jr,vi){return kr[Jr]-kr[vi]})}function Wn(Mt){for(var kr=0,Jr=-1,vi=Mt.length,hn;++Jr{(function(e,t){typeof C7=="object"&&typeof ZWe!="undefined"?t(C7,hk(),T7(),$J()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(C7,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 _(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 E(g){return g.links}function T(g,P){var A=g.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var g=0,P=0,A=1,z=1,O=24,U=8,G=p,Z=s,j=k,N=E,H=32,re=2/3;function oe(){var Se={nodes:j.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Ce(Se),Le(Se),ge(Se,H),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(U=+Se,oe):U},oe.nodes=function(Se){return arguments.length?(j=typeof Se=="function"?Se:u(Se),oe):j},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,A=+Se[0],z=+Se[1],oe):[A-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],A=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[A,z]]},oe.iterations=function(Se){return arguments.length?(H=+Se,oe):H};function _e(Se){Se.nodes.forEach(function(Ae,Be){Ae.index=Be,Ae.sourceLinks=[],Ae.targetLinks=[]});var Ee=r.map(Se.nodes,G);Se.links.forEach(function(Ae,Be){Ae.index=Be;var Pe=Ae.source,me=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=T(Ee,Pe)),typeof me!="object"&&(me=Ae.target=T(Ee,me)),Pe.sourceLinks.push(Ae),me.targetLinks.push(Ae)})}function Ce(Se){Se.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Le(Se){var Ee,Ae,Be;for(Ee=Se.nodes,Ae=[],Be=0;Ee.length;++Be,Ee=Ae,Ae=[])Ee.forEach(function(me){me.depth=Be,me.sourceLinks.forEach(function(De){Ae.indexOf(De.target)<0&&Ae.push(De.target)})});for(Ee=Se.nodes,Ae=[],Be=0;Ee.length;++Be,Ee=Ae,Ae=[])Ee.forEach(function(me){me.height=Be,me.targetLinks.forEach(function(De){Ae.indexOf(De.source)<0&&Ae.push(De.source)})});var Pe=(A-g-O)/(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))))*Pe)+O})}function ge(Se){var Ee=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(je){return je.values});Pe(),ce();for(var Ae=1,Be=H;Be>0;--Be)De(Ae*=.99),ce(),me(Ae),ce();function Pe(){var je=t.max(Ee,function(Vt){return Vt.length}),lt=re*(z-P)/(je-1);U>lt&&(U=lt);var pt=t.min(Ee,function(Vt){return(z-P-(Vt.length-1)*U)/t.sum(Vt,d)});Ee.forEach(function(Vt){Vt.forEach(function(ot,ut){ot.y1=(ot.y0=ut)+ot.value*pt})}),Se.links.forEach(function(Vt){Vt.width=Vt.value*pt})}function me(je){Ee.forEach(function(lt){lt.forEach(function(pt){if(pt.targetLinks.length){var Vt=(t.sum(pt.targetLinks,_)/t.sum(pt.targetLinks,d)-v(pt))*je;pt.y0+=Vt,pt.y1+=Vt}})})}function De(je){Ee.slice().reverse().forEach(function(lt){lt.forEach(function(pt){if(pt.sourceLinks.length){var Vt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*je;pt.y0+=Vt,pt.y1+=Vt}})})}function ce(){Ee.forEach(function(je){var lt,pt,Vt=P,ot=je.length,ut;for(je.sort(h),ut=0;ut0&&(lt.y0+=pt,lt.y1+=pt),Vt=lt.y1+U;if(pt=Vt-U-z,pt>0)for(Vt=lt.y0-=pt,lt.y1-=pt,ut=ot-2;ut>=0;--ut)lt=je[ut],pt=lt.y1+U-Vt,pt>0&&(lt.y0-=pt,lt.y1-=pt),Vt=lt.y0})}}function ie(Se){Se.nodes.forEach(function(Ee){Ee.sourceLinks.sort(f),Ee.targetLinks.sort(c)}),Se.nodes.forEach(function(Ee){var Ae=Ee.y0,Be=Ae;Ee.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Ee.targetLinks.forEach(function(Pe){Pe.y1=Be+Pe.width/2,Be+=Pe.width})})}return oe};function x(g){return[g.source.x1,g.y0]}function C(g){return[g.target.x0,g.y1]}var M=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=M,Object.defineProperty(e,"__esModule",{value:!0})})});var JWe=ye((f2r,KWe)=>{var WZt=JJ();KWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&u(T)})}function c(E){var T=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=WZt(T),x=L.components.filter(function(O){return O.length>1}),C=1/0,M,g=0;g{(function(e,t){typeof L7=="object"&&typeof $We!="undefined"?t(L7,hk(),T7(),$J(),JWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(L7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(ot){return ot.target.depth}function o(ot){return ot.depth}function s(ot,ut){return ut-1-ot.height}function l(ot,ut){return ot.sourceLinks.length?ot.depth:ut-1}function u(ot){return ot.targetLinks.length?ot.depth:ot.sourceLinks.length?t.min(ot.sourceLinks,a)-1:0}function c(ot){return function(){return ot}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot};function h(ot,ut){return v(ot.source,ut.source)||ot.index-ut.index}function d(ot,ut){return v(ot.target,ut.target)||ot.index-ut.index}function v(ot,ut){return ot.partOfCycle===ut.partOfCycle?ot.y0-ut.y0:ot.circularLinkType==="top"||ut.circularLinkType==="bottom"?-1:1}function _(ot){return ot.value}function b(ot){return(ot.y0+ot.y1)/2}function p(ot){return b(ot.source)}function k(ot){return b(ot.target)}function E(ot){return ot.index}function T(ot){return ot.nodes}function L(ot){return ot.links}function x(ot,ut){var Wt=ot.get(ut);if(!Wt)throw new Error("missing: "+ut);return Wt}function C(ot,ut){return ut(ot)}var M=25,g=10,P=.3;function A(){var ot=0,ut=0,Wt=1,Nt=1,$t=24,sr,Tr=E,fr=l,$e=T,St=L,Qt=32,Gt=2,_t,It=null;function mt(){var dt={nodes:$e.apply(null,arguments),links:St.apply(null,arguments)};er(dt),z(dt,Tr,It),lr(dt),ti(dt),O(dt,Tr),Br(dt,Qt,Tr),Vr(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,We=We>0?We+M+g:We,tt=tt>0?tt+M+g:tt,{top:Ge,bottom:Je,left:tt,right:We}}function Lr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),We=Wt-ot,tt=Nt-ut,xt=We+Ge.right+Ge.left,Ie=tt+Ge.top+Ge.bottom,xe=We/xt,ke=tt/Ie;return ot=ot*xe+Ge.left,Wt=Ge.right==0?Wt:Wt*xe,ut=ut*ke+Ge.top,Nt=Nt*ke,dt.nodes.forEach(function(vt){vt.x0=ot+vt.column*((Wt-ot-$t)/Je),vt.x1=vt.x0+$t}),ke}function ti(dt){var Ge,Je,We;for(Ge=dt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(tt){tt.depth=We,tt.sourceLinks.forEach(function(xt){Je.indexOf(xt.target)<0&&!xt.circular&&Je.push(xt.target)})});for(Ge=dt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(tt){tt.height=We,tt.targetLinks.forEach(function(xt){Je.indexOf(xt.source)<0&&!xt.circular&&Je.push(xt.source)})});dt.nodes.forEach(function(tt){tt.column=Math.floor(fr.call(null,tt,We))})}function Br(dt,Ge,Je){var We=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),ke();for(var tt=1,xt=Ge;xt>0;--xt)xe(tt*=.99,Je),ke();function Ie(vt){if(_t){var ir=1/0;We.forEach(function(pi){var $r=Nt*_t/(pi.length+1);ir=$r0))if(pi==0&&ii==1)di=$r.y1-$r.y0,$r.y0=Nt/2-di/2,$r.y1=Nt/2+di/2;else if(pi==ar-1&&ii==1)di=$r.y1-$r.y0,$r.y0=Nt/2-di/2,$r.y1=Nt/2+di/2;else{var ji=0,In=t.mean($r.sourceLinks,k),wi=t.mean($r.targetLinks,p);In&&wi?ji=(In+wi)/2:ji=In||wi;var On=(ji-b($r))*vt;$r.y0+=On,$r.y1+=On}})})}function ke(){We.forEach(function(vt){var ir,ar,vr=ut,ii=vt.length,pi;for(vt.sort(v),pi=0;pi0&&(ir.y0+=ar,ir.y1+=ar),vr=ir.y1+sr;if(ar=vr-sr-Nt,ar>0)for(vr=ir.y0-=ar,ir.y1-=ar,pi=ii-2;pi>=0;--pi)ir=vt[pi],ar=ir.y1+sr-vr,ar>0&&(ir.y0-=ar,ir.y1-=ar),vr=ir.y0})}}function Vr(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,We=Je,tt=Ge.y1,xt=tt;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=tt-Ie.width/2,tt=tt-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=xt-Ie.width/2,xt=xt-Ie.width):(Ie.y1=We+Ie.width/2,We+=Ie.width)})})}return mt}function z(ot,ut,Wt){var Nt=0;if(Wt===null){for(var $t=[],sr=0;srut.source.column)}function Z(ot,ut){var Wt=0;ot.sourceLinks.forEach(function($t){Wt=$t.circular&&!pt($t,ut)?Wt+1:Wt});var Nt=0;return ot.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,ut)?Nt+1:Nt}),Wt+Nt}function j(ot){var ut=ot.source.sourceLinks,Wt=0;ut.forEach(function(sr){Wt=sr.circular?Wt+1:Wt});var Nt=ot.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Wt>1||$t>1)}function N(ot,ut,Wt){return ot.sort(oe),ot.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Wt)&&j(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var Tr=0;for(Tr;Tr<$t;Tr++)if(G(ot[$t],ot[Tr])){var fr=ot[Tr].circularPathData.verticalBuffer+ot[Tr].width/2+ut;sr=fr>sr?fr:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),ot}function H(ot,ut,Wt,Nt){var $t=5,sr=t.min(ot.links,function($e){return $e.source.y0});ot.links.forEach(function($e){$e.circular&&($e.circularPathData={})});var Tr=ot.links.filter(function($e){return $e.circularLinkType=="top"});N(Tr,ut,Nt);var fr=ot.links.filter(function($e){return $e.circularLinkType=="bottom"});N(fr,ut,Nt),ot.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+g,$e.circularPathData.leftNodeBuffer=$t,$e.circularPathData.rightNodeBuffer=$t,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,pt($e,Nt)&&j($e))$e.circularPathData.leftSmallArcRadius=g+$e.width/2,$e.circularPathData.leftLargeArcRadius=g+$e.width/2,$e.circularPathData.rightSmallArcRadius=g+$e.width/2,$e.circularPathData.rightLargeArcRadius=g+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var St=$e.source.column,Qt=$e.circularLinkType,Gt=ot.links.filter(function(mt){return mt.source.column==St&&mt.circularLinkType==Qt});$e.circularLinkType=="bottom"?Gt.sort(Ce):Gt.sort(_e);var _t=0;Gt.forEach(function(mt,er){mt.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=g+$e.width/2+_t,$e.circularPathData.leftLargeArcRadius=g+$e.width/2+er*ut+_t),_t=_t+mt.width}),St=$e.target.column,Gt=ot.links.filter(function(mt){return mt.target.column==St&&mt.circularLinkType==Qt}),$e.circularLinkType=="bottom"?Gt.sort(ge):Gt.sort(Le),_t=0,Gt.forEach(function(mt,er){mt.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=g+$e.width/2+_t,$e.circularPathData.rightLargeArcRadius=g+$e.width/2+er*ut+_t),_t=_t+mt.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(Wt,$e.source.y1,$e.target.y1)+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=sr-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=re($e);else{var It=n.linkHorizontal().source(function(mt){var er=mt.source.x0+(mt.source.x1-mt.source.x0),lr=mt.y0;return[er,lr]}).target(function(mt){var er=mt.target.x0,lr=mt.y1;return[er,lr]});$e.path=It($e)}})}function re(ot){var ut="";return ot.circularLinkType=="top"?ut="M"+ot.circularPathData.sourceX+" "+ot.circularPathData.sourceY+" L"+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.sourceY+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftSmallArcRadius+" 0 0 0 "+ot.circularPathData.leftFullExtent+" "+(ot.circularPathData.sourceY-ot.circularPathData.leftSmallArcRadius)+" L"+ot.circularPathData.leftFullExtent+" "+ot.circularPathData.verticalLeftInnerExtent+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftLargeArcRadius+" 0 0 0 "+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.verticalFullExtent+" L"+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.verticalFullExtent+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightLargeArcRadius+" 0 0 0 "+ot.circularPathData.rightFullExtent+" "+ot.circularPathData.verticalRightInnerExtent+" L"+ot.circularPathData.rightFullExtent+" "+(ot.circularPathData.targetY-ot.circularPathData.rightSmallArcRadius)+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightSmallArcRadius+" 0 0 0 "+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.targetY+" L"+ot.circularPathData.targetX+" "+ot.circularPathData.targetY:ut="M"+ot.circularPathData.sourceX+" "+ot.circularPathData.sourceY+" L"+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.sourceY+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftSmallArcRadius+" 0 0 1 "+ot.circularPathData.leftFullExtent+" "+(ot.circularPathData.sourceY+ot.circularPathData.leftSmallArcRadius)+" L"+ot.circularPathData.leftFullExtent+" "+ot.circularPathData.verticalLeftInnerExtent+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftLargeArcRadius+" 0 0 1 "+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.verticalFullExtent+" L"+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.verticalFullExtent+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightLargeArcRadius+" 0 0 1 "+ot.circularPathData.rightFullExtent+" "+ot.circularPathData.verticalRightInnerExtent+" L"+ot.circularPathData.rightFullExtent+" "+(ot.circularPathData.targetY+ot.circularPathData.rightSmallArcRadius)+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightSmallArcRadius+" 0 0 1 "+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.targetY+" L"+ot.circularPathData.targetX+" "+ot.circularPathData.targetY,ut}function oe(ot,ut){return ie(ot)==ie(ut)?ot.circularLinkType=="bottom"?Ce(ot,ut):_e(ot,ut):ie(ut)-ie(ot)}function _e(ot,ut){return ot.y0-ut.y0}function Ce(ot,ut){return ut.y0-ot.y0}function Le(ot,ut){return ot.y1-ut.y1}function ge(ot,ut){return ut.y1-ot.y1}function ie(ot){return ot.target.column-ot.source.column}function Se(ot){return ot.target.x0-ot.source.x1}function Ee(ot,ut){var Wt=U(ot),Nt=Se(ut)/Math.tan(Wt),$t=lt(ot)=="up"?ot.y1+Nt:ot.y1-Nt;return $t}function Ae(ot,ut){var Wt=U(ot),Nt=Se(ut)/Math.tan(Wt),$t=lt(ot)=="up"?ot.y1-Nt:ot.y1+Nt;return $t}function Be(ot,ut,Wt,Nt){ot.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,Tr=$t.target.column-1,fr=1,$e=Tr-sr+1;for(fr=1;sr<=Tr;sr++,fr++)ot.nodes.forEach(function(St){if(St.column==sr){var Qt=fr/($e+1),Gt=Math.pow(1-Qt,3),_t=3*Qt*Math.pow(1-Qt,2),It=3*Math.pow(Qt,2)*(1-Qt),mt=Math.pow(Qt,3),er=Gt*$t.y0+_t*$t.y0+It*$t.y1+mt*$t.y1,lr=er-$t.width/2,wr=er+$t.width/2,Lr;lr>St.y0&&lrSt.y0&&wrSt.y1&&me(ti,Lr,ut,Wt)})):lrSt.y1&&(Lr=wr-St.y0+10,St=me(St,Lr,ut,Wt),ot.nodes.forEach(function(ti){C(ti,Nt)==C(St,Nt)||ti.column!=St.column||ti.y0St.y1&&me(ti,Lr,ut,Wt)}))}})}})}function Pe(ot,ut){return ot.y0>ut.y0&&ot.y0ut.y0&&ot.y1ut.y1}function me(ot,ut,Wt,Nt){return ot.y0+ut>=Wt&&ot.y1+ut<=Nt&&(ot.y0=ot.y0+ut,ot.y1=ot.y1+ut,ot.targetLinks.forEach(function($t){$t.y1=$t.y1+ut}),ot.sourceLinks.forEach(function($t){$t.y0=$t.y0+ut})),ot}function De(ot,ut,Wt,Nt){ot.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>ut&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-ut));var sr=ot.links.filter(function($e){return C($e.source,Wt)==C($t,Wt)}),Tr=sr.length;Tr>1&&sr.sort(function($e,St){if(!$e.circular&&!St.circular){if($e.target.column==St.target.column)return $e.y1-St.y1;if(je($e,St)){if($e.target.column>St.target.column){var Qt=Ae(St,$e);return $e.y1-Qt}if(St.target.column>$e.target.column){var Gt=Ae($e,St);return Gt-St.y1}}else return $e.y1-St.y1}if($e.circular&&!St.circular)return $e.circularLinkType=="top"?-1:1;if(St.circular&&!$e.circular)return St.circularLinkType=="top"?1:-1;if($e.circular&&St.circular)return $e.circularLinkType===St.circularLinkType&&$e.circularLinkType=="top"?$e.target.column===St.target.column?$e.target.y1-St.target.y1:St.target.column-$e.target.column:$e.circularLinkType===St.circularLinkType&&$e.circularLinkType=="bottom"?$e.target.column===St.target.column?St.target.y1-$e.target.y1:$e.target.column-St.target.column:$e.circularLinkType=="top"?-1:1});var fr=$t.y0;sr.forEach(function($e){$e.y0=fr+$e.width/2,fr=fr+$e.width}),sr.forEach(function($e,St){if($e.circularLinkType=="bottom"){var Qt=St+1,Gt=0;for(Qt;Qt1&&$t.sort(function(fr,$e){if(!fr.circular&&!$e.circular){if(fr.source.column==$e.source.column)return fr.y0-$e.y0;if(je(fr,$e)){if($e.source.column0?"up":"down"}function pt(ot,ut){return C(ot.source,ut)==C(ot.target,ut)}function Vt(ot,ut,Wt){var Nt=ot.nodes,$t=ot.links,sr=!1,Tr=!1;if($t.forEach(function(_t){_t.circularLinkType=="top"?sr=!0:_t.circularLinkType=="bottom"&&(Tr=!0)}),sr==!1||Tr==!1){var fr=t.min(Nt,function(_t){return _t.y0}),$e=t.max(Nt,function(_t){return _t.y1}),St=$e-fr,Qt=Wt-ut,Gt=Qt/St;Nt.forEach(function(_t){var It=(_t.y1-_t.y0)*Gt;_t.y0=(_t.y0-fr)*Gt,_t.y1=_t.y0+It}),$t.forEach(function(_t){_t.y0=(_t.y0-fr)*Gt,_t.y1=(_t.y1-fr)*Gt,_t.width=_t.width*Gt})}}e.sankeyCircular=A,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=ye((h2r,eXe)=>{"use strict";eXe.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 dXe=ye((d2r,hXe)=>{"use strict";var tXe=HWe(),XZt=(H2(),pb(G2)).interpolateNumber,O5=Oa(),aC=YWe(),ZZt=QWe(),Nu=QJ(),q5=fd(),gw=ka(),YZt=So(),w1=Dr(),r$=w1.strTranslate,KZt=w1.strRotate,i$=iy(),oC=i$.keyFun,P7=i$.repeat,sXe=i$.unwrap,rXe=Zl(),JZt=qa(),lXe=Dh(),$Zt=lXe.CAP_SHIFT,QZt=lXe.LINE_SPACING,eYt=3;function tYt(e,t,r){var n=sXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:aC.sankeyJustify,left:aC.sankeyLeft,right:aC.sankeyRight,center:aC.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,_;v?_=ZZt.sankeyCircular().circularLinkGap(0):_=aC.sankey(),_.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=_();_.nodePadding()=N||(j=N-Z.y0,j>1e-6&&(Z.y0+=j,Z.y1+=j)),N=Z.y1+s})}function P(U){var G=U.map(function(_e,Ce){return{x0:_e.x0,index:Ce}}).sort(function(_e,Ce){return _e.x0-Ce.x0}),Z=[],j=-1,N,H=-1/0,re;for(p=0;pH+l&&(j+=1,N=oe.x0),H=oe.x0,Z[j]||(Z[j]=[]),Z[j].push(oe),re=N-oe.x0,oe.x0+=re,oe.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 n$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return iYt(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=XZt(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,_="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+_+p+b+"Z"}return t}function nYt(e,t){var r=q5(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: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 t$(e){e.attr("transform",function(t){return r$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function aYt(e){e.call(t$)}function uXe(e,t){e.call(aYt),t.attr("d",n$())}function iXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function e$(e){return e.link.width>1||e.linkLineWidth>0}function nXe(e){var t=r$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function aXe(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 oYt(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,oXe(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):sYt(e,o,a,n),lYt(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),oXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),uXe(e.filter(fXe(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,cXe(r,i)}})}function uYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function cXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=Oa(),o$=Dr(),I7=o$.numberFormat,dYt=dXe(),B5=vf(),vYt=ka(),Dx=QJ().cn,sC=o$._;function vXe(e){return e!==""}function N5(e,t){return e.filter(function(r){return r.key===t.traceId})}function pXe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function gXe(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 yXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function _Xe(e,t,r){t&&r&&N5(r,t).selectAll("."+Dx.sankeyLink).filter(mXe(t)).call(xXe.bind(0,t,r,!1))}function a$(e,t,r){t&&r&&N5(r,t).selectAll("."+Dx.sankeyLink).filter(mXe(t)).call(bXe.bind(0,t,r,!1))}function xXe(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!==""&&N5(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&&N5(t,e).selectAll("."+Dx.sankeyNode).filter(yXe(e)).call(_Xe)}function bXe(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!==""&&N5(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&&N5(t,e).selectAll(Dx.sankeyNode).filter(yXe(e)).call(a$)}function kf(e,t){var r=e.hoverlabel||{},n=o$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}wXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:kf(C,"bgcolor")||vYt.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:U,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});pXe(j,.85),gXe(j)}}},T=function(L,x,C){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(a$,x,C),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[x.node]})),B5.loneUnhover(n._hoverlayer.node()))};dYt(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:_,unhover:b,select:l},nodeEvents:{hover:k,follow:E,unhover:T,select:p}})}});var TXe=ye(mw=>{"use strict";var pYt=mc().overrideAll,gYt=Id().getModuleCalcData,mYt=s$(),yYt=W1(),_Yt=Eg(),xYt=yv(),bYt=Of().prepSelect,l$=Dr(),wYt=qa(),R7="sankey";mw.name=R7;mw.baseLayoutAttrOverrides=pYt({hoverlabel:yYt.hoverlabel},"plot","nested");mw.plot=function(e){var t=gYt(e.calcdata,R7)[0];mYt(e,t),mw.updateFx(e)};mw.clean=function(e,t,r,n){var i=n._has&&n._has(R7),a=t._has&&t._has(R7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};mw.updateFx=function(e){for(var t=0;t{"use strict";AXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";MXe.exports={attributes:KJ(),supplyDefaults:LWe(),calc:FWe(),plot:s$(),moduleType:"trace",name:"sankey",basePlotModule:TXe(),selectPoints:SXe(),categories:["noOpacity"],meta:{}}});var CXe=ye((y2r,kXe)=>{"use strict";kXe.exports=EXe()});var PXe=ye(U5=>{"use strict";var LXe=Mc();U5.name="indicator";U5.plot=function(e,t,r,n){LXe.plotBasePlot(U5.name,e,t,r,n)};U5.clean=function(e,t,r,n){LXe.cleanBasePlot(U5.name,e,t,r,n)}});var c$=ye((x2r,OXe)=>{"use strict";var Fx=Ao().extendFlat,RXe=Ao().extendDeep,AYt=mc().overrideAll,DXe=ec(),FXe=Ih(),SYt=Cc().attributes,Nf=Rd(),MYt=vl().templatedArray,D7=JT(),IXe=df().descriptionOnlyNumbers,u$=DXe({editType:"plot",colorEditType:"plot"}),lC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:FXe.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"},zXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},EYt=MYt("step",RXe({},lC,{range:zXe}));OXe.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:SYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Fx({},u$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:IXe("value")},font:Fx({},u$,{}),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:IXe("value")},increasing:{symbol:{valType:"string",dflt:D7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:D7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:D7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:D7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Fx({},u$,{}),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:RXe({},lC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:FXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:AYt({range:zXe,visible:Fx({},Nf.visible,{dflt:!0}),tickmode:Nf.minor.tickmode,nticks:Nf.nticks,tick0:Nf.tick0,dtick:Nf.dtick,tickvals:Nf.tickvals,ticktext:Nf.ticktext,ticks:Fx({},Nf.ticks,{dflt:"outside"}),ticklen:Nf.ticklen,tickwidth:Nf.tickwidth,tickcolor:Nf.tickcolor,ticklabelstep:Nf.ticklabelstep,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,tickfont:DXe({}),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:EYt,threshold:{line:{color:Fx({},lC.line.color,{}),width:Fx({},lC.line.width,{dflt:1}),editType:"plot"},thickness:Fx({},lC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var f$=ye((b2r,qXe)=>{"use strict";qXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var UXe=ye((w2r,NXe)=>{"use strict";var sy=Dr(),z7=c$(),kYt=Cc().defaults,BXe=vl(),CYt=Zd(),F7=f$(),LYt=Lb(),PYt=F3(),IYt=s_(),RYt=l_();function DYt(e,t,r,n){function i(x,C){return sy.coerce(e,t,z7,x,C)}kYt(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=sy.extendFlat({},n.font);l.size=void 0,sy.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=F7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=sy.extendFlat({},n.font);c.size=void 0,sy.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||F7.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=sy.extendFlat({},n.font);f.size=.25*(s||u||F7.defaultNumberFontSize),sy.coerceFont(i,"title.font",f),i("title.text");var h,d,v,_;function b(x,C){return sy.coerce(h,d,z7.gauge,x,C)}function p(x,C){return sy.coerce(v,_,z7.gauge.axis,x,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=BXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||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 T=F7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),CYt(h,d,{name:"steps",handleItemDefaults:FYt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),_=BXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};LYt(v,_,p,"linear"),RYt(v,_,p,"linear",L),IYt(v,_,p,"linear",L),PYt(v,_,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function FYt(e,t){function r(n,i){return sy.coerce(e,t,z7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}NXe.exports={supplyDefaults:DYt}});var GXe=ye((T2r,VXe)=>{"use strict";function zYt(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}VXe.exports={calc:zYt}});var YXe=ye((A2r,ZXe)=>{"use strict";var ww=Oa(),OYt=(H2(),pb(G2)).interpolate,HXe=(H2(),pb(G2)).interpolateNumber,zx=Dr(),qYt=zx.strScale,cC=zx.strTranslate,BYt=zx.rad2deg,NYt=Dh().MID_SHIFT,bw=So(),yw=f$(),q7=Zl(),sv=ho(),UYt=f4(),VYt=dI(),GYt=Rd(),V5=ka(),h$={left:"start",center:"middle",right:"end"},_w={left:0,center:.5,right:1},jXe=/[yzafpnµmkMGTPEZY]/;function fC(e){return e&&e.duration>0}ZXe.exports=function(t,r,n,i){var a=t._fullLayout,o;fC(n)&&i&&(o=i()),zx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=ww.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,_={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=_.l+_.w/2,p=_.t+_.h/2,k=Math.min(_.w/2,_.h),E=yw.innerRadius*k,T,L,x,C=u.align||"center";if(L=p,!f)T=_.l+_w[C]*_.w,x=function(j){return WXe(j,_.w,_.h)};else if(h&&(T=b,L=p+k/2,x=function(j){return ZYt(j,.9*E)}),d){var M=yw.bulletPadding,g=1-yw.bulletNumberDomainSize+M;T=_.l+(g+(1-g)*_w[C])*_.w,x=function(j){return WXe(j,(yw.bulletNumberDomainSize-M)*_.w,_.h)}}WYt(t,c,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,A;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},A={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 O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&jYt(t,c,s,{radius:k,innerRadius:E,gauge:z,layer:O,size:_,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=c.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&HYt(t,c,s,{gauge:U,layer:G,size:_,gaugeBg:P,gaugeOutline:A,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?h$.right:h$[u.title.align]}).text(u.title.text).call(bw.font,u.title.font).call(q7.convertToTspans,t),Z.attr("transform",function(){var j=_.l+_.w*_w[u.title.align],N,H=yw.titlePadding,re=bw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=bw.bBox(O.node());N=oe.top-H-re.bottom}else N=_.t+_.h/2-k/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,j=_.l-yw.bulletPadding*_.w)}else N=u._numbersTop-H-re.bottom;return cC(j,N)})})};function HYt(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,_,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",cC(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,E=i.gauge.bar.thickness*k,T=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-yw.bulletNumberDomainSize:1);d=uC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),v=sv.calcTicks(d),_=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:_}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:_,labelFns:sv.makeLabelFns(d,p)}));function x(O){O.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)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(C);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(xw),M.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",E).attr("y",(k-E)/2).call(xw),fC(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}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.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(V5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.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(xw),z.exit().remove()}function jYt(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,_=Math.PI/2;function b(_e){var Ce=i.gauge.axis.range[0],Le=i.gauge.axis.range[1],ge=(_e-Ce)/(Le-Ce)*Math.PI-_;return ge<-_?-_:ge>_?_:ge}function p(_e){return ww.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-_)}function k(_e){_e.attr("d",function(Ce){return p(Ce.thickness).startAngle(b(Ce.range[0])).endAngle(b(Ce.range[1]))()})}var E,T,L,x;f.enter().append("g").classed("angular",!0),f.attr("transform",cC(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=uC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Ce=C(_e);return Math.cos(Ce)*P},M.yFn=function(_e){var Ce=C(_e),Le=Math.sin(Ce)>0?.2:1;return-Math.sin(Ce)*(P+_e.fontSize*Le)+Math.abs(Math.cos(Ce))*(_e.fontSize*NYt)},M.anchorFn=function(_e){var Ce=C(_e),Le=Math.cos(Ce);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},M.heightFn=function(_e,Ce,Le){var ge=C(_e);return-.5*(1+Math.sin(ge))*Le};var A=function(_e){return cC(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return A(C(_e))};var z=function(_e){var Ce=C(_e);return A(Ce)+"rotate("+-BYt(Ce)+")"};if(T=sv.calcTicks(E),x=sv.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:T,layer:h,path:"M"+x*O+",0h"+x*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}var U=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(xw),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");fC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",XYt(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(xw),j.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=f.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(xw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(k).call(xw),oe.exit().remove()}function WYt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=h$[s],u=n.transitionOpts,c=n.onComplete,f=zx.ensureSingle(t,"g","numbers"),h,d,v,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=f.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(A,z,O,U){if(A.match("s")&&O>=0!=U>=0&&!z(O).slice(-1).match(jXe)&&!z(U).slice(-1).match(jXe)){var G=A.slice().replace("s","f").replace(/\d+/,function(j){return parseInt(j)-1}),Z=uC(e,{tickformat:G});return function(j){return Math.abs(j)<1?sv.tickText(Z,j).text:z(j)}}else return z}function k(){var A=uC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),sv.prepTicks(A);var z=function(j){return sv.tickText(A,j).text},O=i.number.suffix,U=i.number.prefix,G=f.select("text.number");function Z(){var j=typeof r[0].y=="number"?U+z(r[0].y)+O:"-";G.text(j).call(bw.font,i.number.font).call(q7.convertToTspans,e)}return fC(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=ww.select(this),N=HXe(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(U+H(N(re))+O)}}):Z(),h=XXe(U+z(r[0].y)+O,i.number.font,l,e),G}function E(){var A=uC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),sv.prepTicks(A);var z=function(re){return sv.tickText(A,re).text},O=i.delta.suffix,U=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+oe(re)+O},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(bw.font,i.delta.font).call(V5.fill,j({delta:i._deltaLastValue}));function H(){N.text(Z(G(r[0]),z)).call(V5.fill,j(r[0])).call(q7.convertToTspans,e)}return fC(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=ww.select(this),oe=G(r[0]),_e=i._deltaLastValue,Ce=p(i.delta.valueformat,z,_e,oe),Le=HXe(_e,oe);return i._deltaLastValue=oe,function(ge){re.text(Z(Le(ge),Ce)),re.call(V5.fill,j({delta:Le(ge)}))}}).each("end",function(){H(),c&&c()}).each("interrupt",function(){H(),c&&c()}):H(),d=XXe(Z(G(r[0]),z),i.delta.font,l,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),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],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=O7(i,"deltaPos",0,-1*(h.width*_w[i.align]+d.width*(1-_w[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+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=O7(i,"deltaPos",0,h.width*(1-_w[i.align])+d.width*_w[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+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=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"&&(M=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:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var A=n.numbersScaler(v);T+=A[2];var z=O7(i,"numbersScale",1,A[0],T,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var U=v[s];s==="center"&&(U=(v.left+v.right)/2);var G=a-z*U;return G=O7(i,"numbersTranslate",0,G,T,Math.max),cC(G,O)+qYt(z)})}function xw(e){e.each(function(t){V5.stroke(ww.select(this),t.line.color)}).each(function(t){V5.fill(ww.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function XYt(e,t,r){return function(){var n=OYt(t,r);return function(i){return e.endAngle(n(i))()}}}function uC(e,t,r){var n=e._fullLayout,i=zx.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 zx.coerce(i,a,GYt,l,u)}return UYt(i,a,s,o,n),VYt(i,a,s,o),a}function WXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function ZYt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function XXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=ww.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(q7.convertToTspans,n).call(bw.font,t),bw.bBox(a.node())}function O7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=zx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var JXe=ye((S2r,KXe)=>{"use strict";KXe.exports={moduleType:"trace",name:"indicator",basePlotModule:PXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:c$(),supplyDefaults:UXe().supplyDefaults,calc:GXe().calc,plot:YXe(),meta:{}}});var QXe=ye((M2r,$Xe)=>{"use strict";$Xe.exports=JXe()});var d$=ye((k2r,iZe)=>{"use strict";var eZe=Jb(),B7=Ao().extendFlat,YYt=mc().overrideAll,tZe=ec(),KYt=Cc().attributes,rZe=df().descriptionOnlyNumbers,E2r=iZe.exports=YYt({domain:KYt({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:rZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:B7({},eZe.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:B7({},tZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:rZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:B7({},eZe.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:B7({},tZe({arrayOk:!0}))}},"calc","from-root")});var aZe=ye((C2r,nZe)=>{"use strict";var v$=Dr(),JYt=d$(),$Yt=Cc().defaults;function QYt(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=iy().wrap;oZe.exports=function(){return eKt({})}});var p$=ye((P2r,lZe)=>{"use strict";lZe.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((I2r,gZe)=>{"use strict";var uZe=p$(),m$=Ao().extendFlat,tKt=Eo(),rKt=vv().isTypedArray,N7=vv().isArrayOrTypedArray;gZe.exports=function(t,r){var n=g$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=g$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=g$(a));var o=a.concat(i(n).map(function(){return pZe((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}):[uZe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(cZe,0),d=u-h,v=d+uZe.uplift,_=dZe(f,v),b=dZe(c,h),p=hZe(b,[]),k=hZe(_,p),E={},T=r._fullInput.columnorder;N7(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var A=N7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return tKt(A)?Number(A):1}),x=L.reduce(cZe,0);L=L.map(function(g){return g/x*l});var C=Math.max(y$(r.header.line.width),y$(r.cells.line.width)),M={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:m$({},r.cells,{values:n}),headerCells:m$({},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 A=E[g];E[g]=(A||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:T[P],xScale:fZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=fZe(g)}),M};function y$(e){if(N7(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=vZe(),i+=a,s=u+1,a=0);return r}function vZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var yZe=ye(_$=>{"use strict";var U7=Ao().extendFlat;_$.splitToPanels=function(e){var t=[0,0],r=U7({},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:U7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=U7({},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=U7({},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]};_$.splitToCells=function(e){var t=iKt(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 iKt(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 C$=ye((D2r,CZe)=>{"use strict";var Ya=p$(),tf=Oa(),x$=Dr(),nKt=x$.numberFormat,Uu=iy(),b$=So(),aKt=Zl(),oKt=Dr().raiseToTop,lg=Dr().strTranslate,sKt=Dr().cancelTransition,lKt=mZe(),SZe=yZe(),_Ze=ka();CZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(k){var E=Uu.unwrap(k),T=E.trace;return lKt(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(E){return k===E}).call(hC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+tf.event.deltaY,T=G7(t,a,null,E)(k);T||(tf.event.stopPropagation(),tf.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(hC,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){b$.setClipUrl(tf.select(this),xZe(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(tf.behavior.drag().origin(function(k){var E=tf.select(this);return TZe(E,k,-Ya.uplift),oKt(this),k.calcdata.columnDragInProgress=!0,hC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=tf.select(this),T=function(C){return(k===C?tf.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-Ya.overdrag,Math.min(k.calcdata.width+Ya.overdrag-k.columnWidth,tf.event.x));var L=MZe(u).filter(function(C){return C.calcdata.key===k.calcdata.key}),x=L.sort(function(C,M){return T(C)-T(M)});x.forEach(function(C,M){C.xIndex=M,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)}),E.call(sKt).attr("transform",lg(k.x,-Ya.uplift))}).on("dragend",function(k){var E=tf.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,TZe(E,k,0),yKt(t,T,T.columns.map(function(L){return L.xIndex}))})),u.each(function(k){b$.setClipUrl(tf.select(this),bZe(t,k),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(SZe.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(_Kt),h=c.filter(M$);n&&h.call(tf.behavior.drag().origin(function(k){return tf.event.stopPropagation(),k}).on("drag",G7(t,a,-1)).on("dragend",function(){})),w$(t,a,f,c),w$(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 xZe(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 _=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);_.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 bZe(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*V7(k)}).attr("height",function(k){return k.calcdata.height+2*V7(k)+Ya.uplift}).attr("x",function(k){return-V7(k)}).attr("y",function(k){return-V7(k)}),E$(null,h,a)};function V7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function xZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function bZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function MZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function hC(e,t,r){function n(u){var c=u.rowBlocks;return A$(c,c.length-1)+(c.length?H7(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-T$(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,T$(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=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||G7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",G7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function w$(e,t,r,n){var i=uKt(r),a=cKt(i);vKt(a);var o=fKt(a);gKt(o);var s=dKt(a),l=hKt(s);pKt(l),EZe(l,t,n,e),k$(a)}function uKt(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 cKt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(SZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function fKt(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 hKt(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(){tf.event.stopPropagation()}),t}function dKt(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 vKt(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 pKt(e){e.each(function(t){b$.font(tf.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=tf.select(this);_Ze.stroke(r,Yv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),_Ze.fill(r,Yv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function EZe(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=mKt(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,_=h+(v?nKt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=wZe(_)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?wZe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var k=Ya.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=l}return n}function E$(e,t,r){var n=MZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=A$(i,i.length),s=n.calcdata.groupHeight-T$(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=A$(c.rowBlocks,c.page)-c.scrollY;return lg(0,f)}),e&&(AZe(e,r,t,u,n.prevPages,n,0),AZe(e,r,t,u,n.prevPages,n,1),hC(r,e))}}function G7(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*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(M$);return E$(e,c,s),o.scrollY===u}}function AZe(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]});w$(e,t,l,r),i[o]=n[o]}))}function bKt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,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(),EZe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(k$)}}function wKt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=S$(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(k$),E$(null,e.filter(M$),0),hC(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,_=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),k=b.top-_.top+(p?p.matrix.f:Ya.cellPad);return lg(kZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function kZe(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 k$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+H7(s,1/0)},0),n=S$(t),i=H7(n,t.key),a=i+r;return lg(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return AKt(S$(t),t.key).rowHeight})}function A$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=TKt(e[n]);return r}function H7(e,t){for(var r=0,n=0;n{"use strict";var SKt=Id().getModuleCalcData,MKt=C$(),j7="table";W7.name=j7;W7.plot=function(e){var t=SKt(e.calcdata,j7)[0];t.length&&MKt(e,t)};W7.clean=function(e,t,r,n){var i=n._has&&n._has(j7),a=t._has&&t._has(j7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var IZe=ye((z2r,PZe)=>{"use strict";PZe.exports={attributes:d$(),supplyDefaults:aZe(),calc:sZe(),plot:C$(),moduleType:"trace",name:"table",basePlotModule:LZe(),categories:["noOpacity"],meta:{}}});var DZe=ye((O2r,RZe)=>{"use strict";RZe.exports=IZe()});var BZe=ye((q2r,qZe)=>{"use strict";var FZe=ec(),zZe=Ih(),L$=Rd(),EKt=df().descriptionWithDates,kKt=mc().overrideAll,OZe=Pd().dash,P$=Ao().extendFlat;qZe.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:FZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:L$.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:P$({},L$.labelalias,{editType:"calc"}),tickfont:FZe({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:EKt("tick label")},tickformatstops:kKt(L$.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:zZe.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:P$({},OZe,{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:P$({},OZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:zZe.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 Z7=ye((B2r,VZe)=>{"use strict";var CKt=ec(),NZe=BZe(),UZe=Ih(),X7=CKt({editType:"calc"}),LKt=pf().zorder;X7.family.dflt='"Open Sans", verdana, arial, sans-serif';X7.size.dflt=12;X7.color.dflt=UZe.defaultLine;VZe.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:NZe,baxis:NZe,font:X7,color:{valType:"color",dflt:UZe.defaultLine,editType:"plot"},zorder:LKt}});var jZe=ye((N2r,HZe)=>{"use strict";var GZe=Dr().isArray1D;HZe.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||GZe(i))&&(!s||GZe(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 ZZe=ye((U2r,XZe)=>{"use strict";var PKt=Z7(),WZe=ka().addOpacity,IKt=qa(),dC=Dr(),RKt=Lb(),DKt=s_(),FKt=l_(),zKt=cI(),OKt=xm(),qKt=V3();XZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=PKt[i+"axis"];function s(g,P){return dC.coerce(t,r,o,g,P)}function l(g,P){return dC.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&&BKt(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=IKt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}OKt(r,n.fullLayout),r.c2p=dC.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(dC.coerceFont(s,"title.font",a,{overrideDflt:{size:dC.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"),RKt(t,r,s,u),FKt(t,r,s,u,n),DKt(t,r,s,u,n),zKt(t,r,s,{data:n.data,dataAttr:i});var _=l("gridcolor",WZe(f,.3)),b=l("gridwidth"),p=l("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),T=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),C=l("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!C);return M||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",WZe(_,.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 BKt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=qKt(t,a,{autotypenumbers:e.autotypenumbers})}}});var KZe=ye((V2r,YZe)=>{"use strict";var NKt=ZZe(),UKt=vl();YZe.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")),VKt(t,r,n,a)};function VKt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=UKt.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};NKt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var QZe=ye((G2r,$Ze)=>{"use strict";var JZe=Dr(),GKt=jZe(),HKt=KZe(),jKt=Z7(),WKt=Ih();$Ze.exports=function(t,r,n,i){function a(l,u){return JZe.coerce(t,r,jKt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",WKt.defaultLine);if(JZe.coerceFont(a,"font",i.font),a("carpet"),HKt(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=GKt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var I$=ye((H2r,eYe)=>{"use strict";var XKt=Dr().isArrayOrTypedArray;eYe.exports=function(t,r,n){var i;for(XKt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";tYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";rYe.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 fYe=ye((X2r,cYe)=>{"use strict";var $7=Oa(),Y7=So(),K7=I$(),oYe=R$(),vC=iYe(),D$=Zl(),Up=Dr(),sYe=Up.strRotate,J7=Up.strTranslate,lYe=Dh();cYe.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=$7.select(this),h=c[0],d=h.trace,v=d.aaxis,_=d.baxis,b=Up.ensureSingle(f,"g","minorlayer"),p=Up.ensureSingle(f,"g","majorlayer"),k=Up.ensureSingle(f,"g","boundarylayer"),E=Up.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),G5(o,s,p,v,"a",v._gridlines,!0,a),G5(o,s,p,_,"b",_._gridlines,!0,a),G5(o,s,b,v,"a",v._minorgridlines,!0,a),G5(o,s,b,_,"b",_._minorgridlines,!0,a),G5(o,s,k,v,"a-boundary",v._boundarylines,a),G5(o,s,k,_,"b-boundary",_._boundarylines,a);var T=nYe(t,o,s,d,h,E,v._labels,"a-label"),L=nYe(t,o,s,d,h,E,_._labels,"b-label");YKt(t,E,d,h,o,s,T,L),ZKt(d,h,u,o,s)})};function ZKt(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(Y7.font,f.font).text(f.text).call(D$.convertToTspans,e),p=Y7.bBox(this);b.attr("transform",J7(d.p[0],d.p[1])+sYe(d.angle)+J7(f.axis.labelpadding*_,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function YKt(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),_=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,vC(r,i,a,c,r.dxydb_rough(l,u))),aYe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+_),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Up.extendFlat(s,vC(r,i,a,c,r.dxyda_rough(l,u))),aYe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var uYe=lYe.LINE_SPACING,KKt=(1-lYe.MID_SHIFT)/uYe+1;function aYe(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=vC(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var _=o.title.font.size;d+=_+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,k=p>90&&p<270,E=$7.select(this);E.text(o.title.text).call(D$.convertToTspans,e),k&&(d=(-D$.lineCount(E)+KKt)*uYe*_-d),E.attr("transform",J7(v.p[0],v.p[1])+sYe(v.angle)+J7(0,d)).attr("text-anchor","middle").call(Y7.font,o.title.font)}),h.exit().remove()}});var dYe=ye((Z2r,hYe)=>{"use strict";var Q7=Dr().isArrayOrTypedArray;hYe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=Q7(e)?e.length:e,f=Q7(t)?t.length:t,h=Q7(e)?e:null,d=Q7(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,_=1/0,b=-1/0;for(i=0;i{"use strict";var vYe=Dr().isArrayOrTypedArray;gYe.exports=function(e){return pYe(e,0)};function pYe(e,t){if(!vYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var JKt=ho(),Ox=Ao().extendFlat;yYe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],C=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var g=t._xctrl,P=t._yctrl,A=g[0].length,z=g.length,O=t._a.length,U=t._b.length;JKt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var H,re,oe,_e,Ce,Le,ge,ie,Se,Ee,Ae,Be,Pe=[],me=[],De={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(U-2,re))),_e=re-oe,De.length=U,De.crossLength=O,De.xy=function(ce){return t.evalxy([],ce,re)},De.dxy=function(ce,je){return t.dxydi([],ce,oe,je,_e)},H=0;H0&&(Se=t.dxydi([],H-1,oe,0,_e),Pe.push(Ce[0]+Se[0]/3),me.push(Ce[1]+Se[1]/3),Ee=t.dxydi([],H-1,oe,1,_e),Pe.push(ie[0]-Ee[0]/3),me.push(ie[1]-Ee[1]/3)),Pe.push(ie[0]),me.push(ie[1]),Ce=ie;else for(H=t.a2i(N),Le=Math.floor(Math.max(0,Math.min(O-2,H))),ge=H-Le,De.length=O,De.crossLength=U,De.xy=function(ce){return t.evalxy([],H,ce)},De.dxy=function(ce,je){return t.dxydj([],Le,ce,ge,je)},re=0;re0&&(Ae=t.dxydj([],Le,re-1,ge,0),Pe.push(Ce[0]+Ae[0]/3),me.push(Ce[1]+Ae[1]/3),Be=t.dxydj([],Le,re-1,ge,1),Pe.push(ie[0]-Be[0]/3),me.push(ie[1]-Be[1]/3)),Pe.push(ie[0]),me.push(ie[1]),Ce=ie;return De.axisLetter=r,De.axis=E,De.crossAxis=M,De.value=N,De.constvar=n,De.index=f,De.x=Pe,De.y=me,De.smoothing=M.smoothing,De}function j(N){var H,re,oe,_e,Ce,Le=[],ge=[],ie={};if(ie.length=k.length,ie.crossLength=C.length,r==="b")for(oe=Math.max(0,Math.min(U-2,N)),Ce=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Ee){return t.dxydi([],Se,oe,Ee,Ce)},H=0;Hk.length-1)&&T.push(Ox(j(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fk.length-1)&&!(v<0||v>k.length-1))for(_=k[o],b=k[v],i=0;ik[k.length-1])&&L.push(Ox(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Ox(j(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ox(j(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,H){return N-H}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,T.push(Ox(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fk[k.length-1])&&L.push(Ox(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Ox(Z(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ox(Z(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var TYe=ye((J2r,wYe)=>{"use strict";var xYe=ho(),bYe=Ao().extendFlat;wYe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";AYe.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 EYe=ye((Q2r,MYe)=>{"use strict";var $Kt=Dr();MYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Ce=0,Le,ge=0;return oe>0&&(Le=t[_e][oe-1])!==void 0&&(ge++,Ce+=Le),oe0&&(Le=t[_e-1][oe])!==void 0&&(ge++,Ce+=Le),_e0&&a0&&iM);return $Kt.log("Smoother converged to",g,"after",A,"iterations"),t}});var CYe=ye((ewr,kYe)=>{"use strict";kYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var IYe=ye((twr,PYe)=>{"use strict";var LYe=.5;PYe.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,LYe/2),c=Math.pow(s*s+l*l,LYe/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 DYe=ye((rwr,RYe)=>{"use strict";var F$=IYe(),e9=Dr().ensureArray;function H5(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]}RYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,_,b,p=n[0].length,k=n.length,E=a?3*p-2:p,T=o?3*k-2:k;for(t=e9(t,T),r=e9(r,T),u=0;u{"use strict";FYe.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,_,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)),E=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,M=C*x,g=E*E,P=g*E,A=1-E,z=A*A,O=z*A;for(_=0;_{"use strict";OYe.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,_=1-o,b=_*_,p=_*o*2,k=-3*b,E=3*(b-p),T=3*(p-v),L=3*v,x=s*s,C=x*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";BYe.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,_=v*o,b=1-o,p=b*b,k=p*b,E=s*s,T=1-s,L=T*T,x=T*s*2,C=-3*L,M=3*(L-x),g=3*(x-E),P=3*E;for(d=0;d{"use strict";var UYe=CYe(),VYe=U6().findBin,QKt=DYe(),eJt=zYe(),tJt=qYe(),rJt=NYe();GYe.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*UYe.RELATIVE_CULL_TOLERANCE,_=d*UYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=_,f+=_,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,k=QKt(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=tJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=rJt([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(VYe(b,r),i-2)),k=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-k)/(E-k)))},t.b2j=function(b){var p=Math.max(0,Math.min(VYe(b,n),a-2)),k=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-k)/(E-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 E=t.a2i(b),T=t.b2j(p),L=t.evalxy([],E,T);if(k){var x=0,C=0,M=[],g,P,A,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(E))),P=E-g),pn[a-1]?(A=a-2,z=1,C=(p-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),z=T-A),x&&(t.dxydi(M,g,A,P,z),L[0]+=M[0]*x,L[1]+=M[1]*x),C&&(t.dxydj(M,g,A,P,z),L[0]+=M[0]*C,L[1]+=M[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,E){var T=t.dxydi(null,b,p,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,p,k,E){var T=t.dxydj(null,b,p,k,E),L=t.dbdj(p,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,p,k){var E=h*(k||.1),T=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,k){var E=d*(k||.1),T=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var $Ye=ye((swr,JYe)=>{"use strict";var t9=ho(),jYe=Dr().isArray1D,iJt=dYe(),WYe=mYe(),XYe=_Ye(),ZYe=TYe(),nJt=SYe(),YYe=u8(),KYe=EYe(),aJt=s8(),oJt=HYe();JYe.exports=function(t,r){var n=t9.getFromId(t,r.xaxis),i=t9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&jYe(s)&&u.push("x"),l&&jYe(l)&&u.push("y"),u.length&&aJt(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=iJt(d,v,r.cheaterslope)}r._x=s=YYe(s),r._y=l=YYe(l),KYe(s,c,f),KYe(l,c,f),oJt(r),r.setScale();var _=WYe(s),b=WYe(l),p=.5*(_[1]-_[0]),k=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return _=[k-p*L,k+p*L],b=[T-E*L,T+E*L],r._extremes[n._id]=t9.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=t9.findExtremes(i,b,{padded:!0}),XYe(r,"a","b"),XYe(r,"b","a"),ZYe(r,a),ZYe(r,o),h.clipsegments=nJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var eKe=ye((lwr,QYe)=>{"use strict";QYe.exports={attributes:Z7(),supplyDefaults:QZe(),plot:fYe(),calc:$Ye(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var rKe=ye((uwr,tKe)=>{"use strict";tKe.exports=eKe()});var z$=ye((cwr,oKe)=>{"use strict";var sJt=Pg(),c0=pf(),lJt=Gl(),{hovertemplateAttrs:uJt,texttemplateAttrs:cJt,templatefallbackAttrs:iKe}=Ll(),nKe=Tu(),qx=Ao().extendFlat,ug=c0.marker,j5=c0.line,aKe=ug.line;oKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:qx({},c0.mode,{dflt:"markers"}),text:qx({},c0.text,{}),texttemplate:cJt({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:iKe({editType:"plot"}),hovertext:qx({},c0.hovertext,{}),line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:qx({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:c0.connectgaps,fill:qx({},c0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:sJt(),marker:qx({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:qx({width:aKe.width,dash:aKe.dash,editType:"calc"},nKe("marker.line")),gradient:ug.gradient,editType:"calc"},nKe("marker")),textfont:c0.textfont,textposition:c0.textposition,selected:c0.selected,unselected:c0.unselected,hoverinfo:qx({},lJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:c0.hoveron,hovertemplate:uJt(),hovertemplatefallback:iKe(),zorder:c0.zorder}});var cKe=ye((fwr,uKe)=>{"use strict";var sKe=Dr(),fJt=Lm(),W5=Ru(),hJt=$p(),dJt=D0(),lKe=sT(),vJt=F0(),pJt=Fg(),gJt=z$();uKe.exports=function(t,r,n,i){function a(h,d){return sKe.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";fKe.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 r9=ye((dwr,dKe)=>{"use strict";dKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var vKe=Eo(),mJt=z0(),yJt=Rm(),_Jt=O0(),xJt=q0().calcMarkerSize,bJt=r9();pKe.exports=function(t,r){var n=r._carpetTrace=bJt(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 wJt=dT(),mKe=ho(),TJt=So();yKe.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 AJt=mT(),SJt=Dr().fillText;xKe.exports=function(t,r,n,i){var a=AJt(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 _=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+T.toFixed(3)+E.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),_.push("y: "+o.yLabel),k.indexOf("text")!==-1&&SJt(f,h,_),o.extraText=_.join("
")}return a}});var TKe=ye((mwr,wKe)=>{"use strict";wKe.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 SKe=ye((ywr,AKe)=>{"use strict";AKe.exports={attributes:z$(),supplyDefaults:cKe(),colorbar:$d(),formatLabels:hKe(),calc:gKe(),plot:_Ke(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:bKe(),selectPoints:yT(),eventData:TKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var EKe=ye((_wr,MKe)=>{"use strict";MKe.exports=SKe()});var O$=ye((xwr,kKe)=>{"use strict";var cg=FT(),T1=O4(),MJt=Tu(),EJt=Ao().extendFlat,ly=T1.contours;kKe.exports=EJt({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:ly.type,start:ly.start,end:ly.end,size:ly.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ly.showlines,showlabels:ly.showlabels,labelfont:ly.labelfont,labelformat:ly.labelformat,operation:ly.operation,value:ly.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},MJt("",{cLetter:"z",autoColorDflt:!1}))});var q$=ye((bwr,PKe)=>{"use strict";var CKe=Dr(),kJt=n8(),LKe=O$(),CJt=RG(),LJt=k8(),PJt=C8();PKe.exports=function(t,r,n,i){function a(u,c){return CKe.coerce(t,r,LKe,u,c)}function o(u){return CKe.coerce2(t,r,LKe,u)}if(a("carpet"),t.a&&t.b){var s=kJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?CJt(t,r,a,i,n,{hasHover:!1}):(LJt(t,r,a,o),PJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var FKe=ye((wwr,DKe)=>{"use strict";var IJt=gv(),IKe=Dr(),RJt=s8(),DJt=u8(),FJt=c8(),zJt=f8(),RKe=rG(),OJt=q$(),qJt=r9(),BJt=bG();DKe.exports=function(t,r){var n=r._carpetTrace=qJt(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),OJt(a,r,r._defaultColor,t._fullLayout)}var o=NJt(t,r);return BJt(r,r._z),o}};function NJt(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,IKe.isArray1D(t.z)&&RJt(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=DJt(t._z||t.z,t.transpose),t._emptypoints=zJt(f),FJt(f,t._emptypoints);var h=IKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=RKe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":l,b=RKe(t,_,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&IJt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var OKe=ye((Twr,zKe)=>{"use strict";var UJt=Dr().isArrayOrTypedArray;zKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p=UJt(r)?"a":"b",k=p==="a"?e.aaxis:e.baxis,E=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,M=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)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Ce){return e.dxydi([],_e,o,Ce,s)}:function(_e,Ce){return e.dxydj([],o,_e,s,Ce)});var A=T(L[0]),z=T(L[1]),O=A0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,j=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,H=G(A+U),re=Z(z-U);c=P(A);var oe=[[c]];for(i=H;i*O{"use strict";var n9=Oa(),a9=I$(),VKe=R$(),pC=So(),A1=Dr(),VJt=TG(),GJt=AG(),Tw=I8(),i9=B4(),HJt=kG(),jJt=EG(),WJt=CG(),XJt=r9(),qKe=OKe();GKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;A1.makeTraceGroups(i,n,"contour").each(function(s){var l=n9.select(this),u=s[0],c=u.trace,f=c._carpetTrace=XJt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,_=c.contours,b=jJt(_,r,u),p=_.type==="constraint",k=_._operation,E=p?k==="="?"lines":"fill":_.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]]];VJt(b);var x=(d[d.length-1]-d[0])*1e-8,C=(v[v.length-1]-v[0])*1e-8;GJt(b,x,C);var M=b;_.type==="constraint"&&(M=HJt(b,k)),ZJt(b,T);var g,P,A,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=a9([],g.x,a.c2p),A=a9([],g.y,o.c2p),P.reverse(),A.reverse(),O.push(VKe(P,A,g.bicubic));var U="M"+O.join("L")+"Z";JJt(l,h.clipsegments,a,o,p,E),$Jt(c,l,a,o,M,L,T,f,h,E,U),YJt(l,b,t,u,_,r,f),pC.setClipUrl(l,f._clipPathId,t)})};function ZJt(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 BKe(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 NKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function UKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function JJt(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,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):A1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;u+=M(h,d),h=d}if(_===t.edgepaths.length){A1.log("unclosed perimeter path");break}l=_,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";jKe.exports={attributes:O$(),supplyDefaults:q$(),colorbar:F8(),calc:FKe(),plot:HKe(),style:D8(),moduleType:"trace",name:"contourcarpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var ZKe=ye((Mwr,XKe)=>{"use strict";XKe.exports=WKe()});var s9=ye((Ewr,QKe)=>{"use strict";var o9=Dr().extendFlat,gC=pf(),YKe=df().axisHoverFormat,{hovertemplateAttrs:e$t,templatefallbackAttrs:t$t}=Ll(),JKe=Pd().dash,r$t=v3(),$Ke=JT(),i$t=$Ke.INCREASING.COLOR,n$t=$Ke.DECREASING.COLOR,B$=gC.line;function KKe(e){return{line:{color:o9({},B$.color,{dflt:e}),width:B$.width,dash:JKe,editType:"style"},editType:"style"}}QKe.exports={xperiod:gC.xperiod,xperiod0:gC.xperiod0,xperiodalignment:gC.xperiodalignment,xhoverformat:YKe("x"),yhoverformat:YKe("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:o9({},B$.width,{}),dash:o9({},JKe,{}),editType:"style"},increasing:KKe(i$t),decreasing:KKe(n$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:t$t(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:o9({},r$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:gC.zorder}});var N$=ye((kwr,eJe)=>{"use strict";var a$t=qa(),o$t=Dr();eJe.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=a$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,o$t.minRowLength(a))),r._length=f,f}}});var iJe=ye((Cwr,rJe)=>{"use strict";var s$t=Dr(),l$t=N$(),u$t=Dg(),c$t=s9();rJe.exports=function(t,r,n,i){function a(s,l){return s$t.coerce(t,r,c$t,s,l)}var o=l$t(t,r,a,i);if(!o){r.visible=!1;return}u$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),tJe(t,r,a,"increasing"),tJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function tJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var U$=ye((Lwr,aJe)=>{"use strict";var X5=Dr(),l9=X5._,u9=ho(),f$t=zg(),mC=fs().BADNUM;function h$t(e,t){var r=u9.getFromId(e,t.xaxis),n=u9.getFromId(e,t.yaxis),i=v$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=nJe(e,t,o,s,n,d$t);return t._extremes[r._id]=u9.findExtremes(r,s,{vpad:a/2}),l.length?(X5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function d$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function nJe(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=X5.isArrayOrTypedArray(t.text),f=X5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,_=[],b=0;bd):h=L>k,d=L;var x=a(k,E,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,E],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:p,empty:!0})}return t._extremes[i._id]=u9.findExtremes(i,X5.concat(l,s),{padded:!0}),_.length&&(_[0].t={labels:{open:l9(e,"open:")+" ",high:l9(e,"high:")+" ",low:l9(e,"low:")+" ",close:l9(e,"close:")+" "}}),_}function v$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 p$t=Oa(),oJe=Dr();sJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;oJe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=p$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(oJe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),p=o.c2p(_.pos+d,!0),k=s?(b+p)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),T=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+p+","+x+"H"+k})})}});var cJe=ye((Iwr,uJe)=>{"use strict";var V$=Oa(),g$t=So(),m$t=ka();uJe.exports=function(t,r,n){var i=n||V$.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;V$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;V$.select(this).style("fill","none").call(m$t.stroke,l.color).call(g$t.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var H$=ye((Rwr,pJe)=>{"use strict";var G$=ho(),y$t=Dr(),c9=vf(),_$t=ka(),x$t=Dr().fillText,fJe=JT(),b$t={increasing:fJe.INCREASING.SYMBOL,decreasing:fJe.DECREASING.SYMBOL};function w$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?dJe(e,t,r,n):vJe(e,t,r,n)}function hJe(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},_=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function k(P){var A=v(P);return c9.inbox(A-b,A+b,f)}function E(P){var A=P[u],z=P[c];return A===z||c9.inbox(A-r,z-r,f)}function T(P){return(k(P)+E(P))/2}var L=c9.getDistanceFunction(n,k,E,T);if(c9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var C=x.dir,M=o[C],g=M.line.color;return _$t.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!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 dJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=hJe(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[_]+G$.hoverLabelText(a,b,o.yhoverformat)):(k=y$t.extendFlat({},u),k.y0=k.y1=p,k.yLabelVal=b,k.yLabel=s.labels[_]+G$.hoverLabelText(a,b,o.yhoverformat),k.name="",l.push(k),d[b]=k)}return l}function vJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=hJe(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]+G$.hoverLabelText(a,o[T][f],o.yhoverformat)}var v=c.hi||o.hoverinfo||"",_=v.split("+"),b=v==="all",p=b||_.indexOf("y")!==-1,k=b||_.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+b$t[h]]:[];return k&&x$t(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}pJe.exports={hoverPoints:w$t,hoverSplit:dJe,hoverOnPoints:vJe}});var j$=ye((Dwr,gJe)=>{"use strict";gJe.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:s9(),supplyDefaults:iJe(),calc:U$().calc,plot:lJe(),style:cJe(),hoverPoints:H$().hoverPoints,selectPoints:j$()}});var xJe=ye((zwr,_Je)=>{"use strict";_Je.exports=yJe()});var X$=ye((Owr,TJe)=>{"use strict";var W$=Dr().extendFlat,bJe=df().axisHoverFormat,vp=s9(),Z5=k4();function wJe(e){return{line:{color:W$({},Z5.line.color,{dflt:e}),width:Z5.line.width,editType:"style"},fillcolor:Z5.fillcolor,editType:"style"}}TJe.exports={xperiod:vp.xperiod,xperiod0:vp.xperiod0,xperiodalignment:vp.xperiodalignment,xhoverformat:bJe("x"),yhoverformat:bJe("y"),x:vp.x,open:vp.open,high:vp.high,low:vp.low,close:vp.close,line:{width:W$({},Z5.line.width,{}),editType:"style"},increasing:wJe(vp.increasing.line.color.dflt),decreasing:wJe(vp.decreasing.line.color.dflt),text:vp.text,hovertext:vp.hovertext,hovertemplate:vp.hovertemplate,hovertemplatefallback:vp.hovertemplatefallback,whiskerwidth:W$({},Z5.whiskerwidth,{dflt:0}),hoverlabel:vp.hoverlabel,zorder:Z5.zorder}});var MJe=ye((qwr,SJe)=>{"use strict";var T$t=Dr(),A$t=ka(),S$t=N$(),M$t=Dg(),E$t=X$();SJe.exports=function(t,r,n,i){function a(s,l){return T$t.coerce(t,r,E$t,s,l)}var o=S$t(t,r,a,i);if(!o){r.visible=!1;return}M$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),AJe(t,r,a,"increasing"),AJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function AJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",A$t.addOpacity(i,.5))}});var LJe=ye((Bwr,CJe)=>{"use strict";var EJe=Dr(),kJe=ho(),k$t=zg(),C$t=U$().calcCommon;CJe.exports=function(e,t){var r=e._fullLayout,n=kJe.getFromId(e,t.xaxis),i=kJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=k$t(t,n,"x",a).vals,s=C$t(e,t,a,o,i,L$t);return s.length?(EJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:EJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function L$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var IJe=ye((Nwr,PJe)=>{"use strict";PJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:X$(),layoutAttributes:C4(),supplyLayoutDefaults:$I().supplyLayoutDefaults,crossTraceCalc:e8().crossTraceCalc,supplyDefaults:MJe(),calc:LJe(),plot:t8().plot,layerName:"boxlayer",style:r8().style,hoverPoints:H$().hoverPoints,selectPoints:j$()}});var DJe=ye((Uwr,RJe)=>{"use strict";RJe.exports=IJe()});var Y$=ye((Vwr,FJe)=>{"use strict";var h9=Dr(),P$t=xm(),f9=h9.deg2rad,Z$=h9.rad2deg;FJe.exports=function(t,r,n){switch(P$t(t,n),t._id){case"x":case"radialaxis":I$t(t,r);break;case"angularaxis":F$t(t,r);break}};function I$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 R$t(e,t){return t==="degrees"?f9(e):e}function D$t(e,t){return t==="degrees"?Z$(e):e}function F$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return R$t(n(a),o)},e.c2d=function(a,o){return i(D$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";zJe.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 p9=ye((Hwr,UJe)=>{"use strict";var Aw=Dr(),OJe=FM().tester,K$=Aw.findIndexOfMin,BJe=Aw.isAngleInsideSector,z$t=Aw.angleDelta,qJe=Aw.angleDist;function O$t(e,t,r,n,i){if(!BJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=K$(t,r),i=Aw.mod(n+1,t.length);return[t[n],t[i]]}function v9(e){return Math.abs(e)>1e-10?e:0}function J$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function VJe(e){return e<0?-1:e>0?1:0}function K5(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 J5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function GJe(e,t){return t*e.radius}function j$t(e,t,r,n){var i=J5(e,K5([r,t])),a=i[0],o=i[1],s=J5(e,K5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=GJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function W$t(e,t,r,n){var i=GJe(e,1/(t+1)),a=J5(e,K5([t,r])),o=a[0],s=a[1],l=J5(e,K5([t,n])),u=l[0],c=l[1];if(VJe(r)!==VJe(n)){var f=J5(e,K5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Sw=Oa(),X$t=fd(),Ew=qa(),Xc=Dr(),uy=Xc.strRotate,xd=Xc.strTranslate,Q$=ka(),yC=So(),Z$t=Mc(),pp=ho(),Y$t=xm(),K$t=Y$(),J$t=Mg().doAutoRange,S1=jN(),y9=yv(),jJe=vf(),$$t=zb(),Q$t=Of().prepSelect,eQt=Of().selectOnClick,eQ=Of().clearOutline,WJe=Eg(),XJe=bM(),ZJe=CM().redrawReglTraces,tQt=Dh().MID_SHIFT,Bx=d9(),M1=p9(),_9=$$(),g9=_9.smith,rQt=_9.reactanceArc,iQt=_9.resistanceArc,m9=_9.smithTransform,nQt=Xc._,YJe=Xc.mod,Nx=Xc.deg2rad,Mw=Xc.rad2deg;function KJe(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 Bd=KJe.prototype;QJe.exports=function(t,r,n){return new KJe(t,r,n)};Bd.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,E=[s[0],s[1]],T=[l[0]+L,l[1]-L]):(p=c/b,k=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],T=[l[0],l[1]]),r.xLength2=p,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],A=r.cy=C+M*h[3],z=r.cxx=P-x,O=r.cyy=A-C,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:[g/i.w,M/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:T});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(x,C)).call(yC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,A)).call(Q$.fill,t.bgcolor)};Bd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return K$t(i,t,e),i};Bd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);Y$t(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};Bd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);J$t(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(M){var g=m9(r,g9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},_=d?function(M){return iQt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=JJe(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(M){return M>=0}).map(function(M){return pp.tickText(f,M,!0,!1)}):pp.calcTicks(f),E=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:E,layer:i["radial-grid"],path:_,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?Mw($Je(Nx(u.angle),r.vangles)):u.angle,x=xd(s,l),C=x+uy(-L);_C(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:C}),_C(i["radial-grid"],h&&u.showgrid,{transform:d?"":x}),_C(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(Q$.stroke,u.linecolor)};Bd.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=yC.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,_=Nx(v),b=Math.cos(_),p=Math.sin(_),k=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=$$t.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title.text",placeholder:nQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Bd.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=m9(r,g9([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=Mw(c.tick0),c.dtick=Mw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=m9(r,g9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},_=f?function(g){var P=m9(r,g9([0,g.x])),A=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+uy(-Mw(A))}:function(g){var P=h(g);return d(P)+uy(-Mw(P))},b=f?function(g){return rQt(r,g.x,0,1/0)}:function(g){var P=h(g),A=Math.cos(P),z=Math.sin(P);return"M"+[s+o*A,l-o*z]+"L"+[s+a*A,l-a*z]},p=pp.makeLabelFns(c,0),k=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*k},E.yFn=function(g){var P=h(g),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+g.fontSize*A)+Math.abs(Math.cos(P))*(g.fontSize*tQt)},E.anchorFn=function(g){var P=h(g),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(g,P,A){var z=h(g);return-.5*(1+Math.sin(z))*A};var T=JJe(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,M=(c.linewidth||1)/2;pp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+C*M+",0h"+C*c.ticklen,transFn:_,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:E})}_C(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(Q$.stroke,u.linecolor)};Bd.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)}};Bd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Bx.MINZOOM,s=Bx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,_=t.vangles,b=t.radialAxis,p=M1.clampTiny,k=M1.findXYatLength,E=M1.findEnclosingVertexAngles,T=Bx.cornerHalfWidth,L=Bx.cornerLen/2,x,C,M=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Sw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){jJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||y9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,z,O,U,G,Z,j,N;function H(ce,je){return Math.sqrt(ce*ce+je*je)}function re(ce,je){return H(ce-h,je-d)}function oe(ce,je){return Math.atan2(d-je,ce-h)}function _e(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function Ce(ce,je){if(ce===0)return t.pathSector(2*T);var lt=L/ce,pt=je-lt,Vt=je+lt,ot=Math.max(0,Math.min(ce,l)),ut=ot-T,Wt=ot+T;return"M"+_e(ut,pt)+"A"+[ut,ut]+" 0,0,0 "+_e(ut,Vt)+"L"+_e(Wt,Vt)+"A"+[Wt,Wt]+" 0,0,1 "+_e(Wt,pt)+"Z"}function Le(ce,je,lt){if(ce===0)return t.pathSector(2*T);var pt=_e(ce,je),Vt=_e(ce,lt),ot=p((pt[0]+Vt[0])/2),ut=p((pt[1]+Vt[1])/2),Wt,Nt;if(ot&&ut){var $t=ut/ot,sr=-1/$t,Tr=k(T,$t,ot,ut);Wt=k(L,sr,Tr[0][0],Tr[0][1]),Nt=k(L,sr,Tr[1][0],Tr[1][1])}else{var fr,$e;ut?(fr=L,$e=T):(fr=T,$e=L),Wt=[[ot-fr,ut-$e],[ot+fr,ut-$e]],Nt=[[ot-fr,ut+$e],[ot+fr,ut+$e]]}return"M"+Wt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function ge(){z=null,O=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=X$t(ce.bgcolor).getLuminance(),j=S1.makeZoombox(a,Z,c,f,U),j.attr("fill-rule","evenodd"),N=S1.makeCorners(a,c,f),eQ(n)}function ie(ce,je){return je=Math.max(Math.min(je,l),u),ceo?(ce-1&&ce===1&&eQt(je,n,[t.xaxis],[t.yaxis],t.id,g),lt.indexOf("event")>-1&&jJe.click(n,je,t.id)}g.prepFn=function(ce,je,lt){var pt=n._fullLayout.dragmode,Vt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var ot=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var ut=Xc.apply3DTransform(ot)(je-Vt.left,lt-Vt.top);if(P=ut[0],A=ut[1],_){var Wt=M1.findPolygonOffset(l,v[0],v[1],_);P+=h+Wt[0],A+=d+Wt[1]}switch(pt){case"zoom":g.clickFn=De,r||(_?g.moveFn=Be:g.moveFn=Ee,g.doneFn=Pe,ge(ce,je,lt));break;case"select":case"lasso":Q$t(ce,je,lt,g,pt);break}},y9.init(g)};Bd.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=Bx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Nx(n.radialAxisAngle),v=c._rl,_=v[0],b=v[1],p=v[r],k=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,T,L;r?(E=l+(o+h)*Math.cos(d),T=u-(o+h)*Math.sin(d),L="radialdrag"):(E=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),_C(Sw.select(x),c.visible&&s0!=(r?P>_: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 $Je(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function _C(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var rQ=ye((Xwr,a$e)=>{"use strict";var oQt=Ih(),os=Rd(),sQt=Cc().attributes,f0=Dr().extendFlat,e$e=mc().overrideAll,t$e=e$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"),r$e=e$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"),i$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(i$e,t$e,r$e);var n$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(n$e,t$e,r$e);a$e.exports={domain:sQt({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:oQt.background},radialaxis:i$e,angularaxis:n$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var u$e=ye((Zwr,l$e)=>{"use strict";var x9=Dr(),lQt=ka(),uQt=vl(),cQt=O_(),fQt=Id().getSubplotData,hQt=Lb(),dQt=F3(),vQt=s_(),pQt=l_(),gQt=cI(),mQt=u4(),yQt=TB(),_Qt=V3(),s$e=rQ(),xQt=Y$(),b9=d9(),o$e=b9.axisNames;function bQt(e,t,r,n){var i=r("bgcolor");n.bgColor=lQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=fQt(n.fullData,b9.name,n.id),s=n.layoutOut,l;function u(j,N){return r(l+"."+j,N)}for(var c=0;c{"use strict";var TQt=Id().getSubplotCalcData,AQt=Dr().counterRegex,SQt=tQ(),f$e=d9(),h$e=f$e.attr,kw=f$e.name,c$e=AQt(kw),d$e={};d$e[h$e]={valType:"subplotid",dflt:kw,editType:"calc"};function MQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[kw],i=0;i{"use strict";var{hovertemplateAttrs:kQt,texttemplateAttrs:CQt,templatefallbackAttrs:p$e}=Ll(),T9=Ao().extendFlat,LQt=Pg(),h0=pf(),PQt=Gl(),$5=h0.line;g$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:CQt({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:p$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:$5.color,width:$5.width,dash:$5.dash,backoff:$5.backoff,shape:T9({},$5.shape,{values:["linear","spline"]}),smoothing:$5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:T9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:T9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:LQt(),hoverinfo:T9({},PQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:kQt(),hovertemplatefallback:p$e(),selected:h0.selected,unselected:h0.unselected}});var S9=ye((Jwr,_$e)=>{"use strict";var A9=Dr(),Q5=Ru(),IQt=$p(),RQt=D0(),m$e=sT(),DQt=F0(),FQt=Fg(),zQt=Lm().PTS_LINESONLY,OQt=xC();function qQt(e,t,r,n){function i(s,l){return A9.coerce(e,t,OQt,s,l)}var a=y$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var BQt=Dr(),x$e=ho();b$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=x$e.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?BQt.rad2deg(t.theta):t.theta;return i.thetaLabel=x$e.tickText(s,u,!0).text,i}});var A$e=ye((Qwr,T$e)=>{"use strict";var w$e=Eo(),NQt=fs().BADNUM,UQt=ho(),VQt=z0(),GQt=Rm(),HQt=O0(),jQt=q0().calcMarkerSize;T$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 WQt=dT(),S$e=fs().BADNUM;M$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 XQt=mT();function ZQt(e,t,r,n){var i=XQt(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,k$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function k$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("
")}}C$e.exports={hoverPoints:ZQt,makeHoverPointText:k$e}});var P$e=ye((r3r,L$e)=>{"use strict";L$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:w9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:xC(),supplyDefaults:S9().supplyDefaults,colorbar:$d(),formatLabels:M9(),calc:A$e(),plot:E$e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:E9().hoverPoints,selectPoints:yT(),meta:{}}});var R$e=ye((i3r,I$e)=>{"use strict";I$e.exports=P$e()});var iQ=ye((o3r,F$e)=>{"use strict";var D$e=xC(),{cliponaxis:n3r,hoveron:a3r}=D$e,YQt=gee(D$e,["cliponaxis","hoveron"]),{connectgaps:KQt,line:{color:JQt,dash:$Qt,width:QQt},fill:eer,fillcolor:ter,marker:rer,textfont:ier,textposition:ner}=gk();F$e.exports=j1(_g({},YQt),{connectgaps:KQt,fill:eer,fillcolor:ter,line:{color:JQt,dash:$Qt,editType:"calc",width:QQt},marker:rer,textfont:ier,textposition:ner})});var q$e=ye((l3r,O$e)=>{"use strict";var z$e=Dr(),nQ=Ru(),aer=S9().handleRThetaDefaults,oer=$p(),ser=D0(),ler=F0(),uer=Fg(),cer=Lm().PTS_LINESONLY,fer=iQ();O$e.exports=function(t,r,n,i){function a(s,l){return z$e.coerce(t,r,fer,s,l)}var o=aer(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var her=M9();B$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]),her(t,r,n)}});var V$e=ye((c3r,U$e)=>{"use strict";var der=z0(),ver=q0().calcMarkerSize,per=ow(),ger=ho(),mer=px().TOO_MANY_POINTS;U$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 yer=jF(),_er=E9().makeHoverPointText;function xer(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=yer.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,_er(f,h,c,u),l}}G$e.exports={hoverPoints:xer}});var W$e=ye((h3r,j$e)=>{"use strict";j$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:w9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:iQ(),supplyDefaults:q$e(),colorbar:$d(),formatLabels:N$e(),calc:V$e(),hoverPoints:H$e().hoverPoints,selectPoints:gY(),meta:{}}});var X$e=ye((d3r,aQ)=>{"use strict";var ber=ZF(),wer=Eo(),Ter=xK(),Aer=dY(),k9=ow(),C9=Dr(),Ser=px().TOO_MANY_POINTS,Mer={};aQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Aer(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,_,b=h.slice(),p=d.slice();for(_=0;_=Ser&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=k),v.line&&k.length>1&&C9.extendFlat(v.line,k9.linePositions(t,u,k)),v.text&&(C9.extendFlat(v.text,{positions:k},k9.textPosition(t,u,v.text,v.marker)),C9.extendFlat(v.textSel,{positions:k},k9.textPosition(t,u,v.text,v.markerSel)),C9.extendFlat(v.textUnsel,{positions:k},k9.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=E,c.y=T,c.rawx=E,c.rawy=T,c.r=h,c.theta=d,c.positions=k,c._scene=o,c.index=o.count,o.count++}}),Ter(t,r,n)}};aQ.exports.reglPrecompiled=Mer});var K$e=ye((v3r,Y$e)=>{"use strict";var Z$e=W$e();Z$e.plot=X$e();Y$e.exports=Z$e});var $$e=ye((p3r,J$e)=>{"use strict";J$e.exports=K$e()});var oQ=ye((g3r,Q$e)=>{"use strict";var{hovertemplateAttrs:Eer,templatefallbackAttrs:ker}=Ll(),eS=Ao().extendFlat,Ux=xC(),Vx=zm();Q$e.exports={r:Ux.r,theta:Ux.theta,r0:Ux.r0,dr:Ux.dr,theta0:Ux.theta0,dtheta:Ux.dtheta,thetaunit:Ux.thetaunit,base:eS({},Vx.base,{}),offset:eS({},Vx.offset,{}),width:eS({},Vx.width,{}),text:eS({},Vx.text,{}),hovertext:eS({},Vx.hovertext,{}),marker:Cer(),hoverinfo:Ux.hoverinfo,hovertemplate:Eer(),hovertemplatefallback:ker(),selected:Vx.selected,unselected:Vx.unselected};function Cer(){var e=eS({},Vx.marker);return delete e.cornerradius,e}});var sQ=ye((m3r,eQe)=>{"use strict";eQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var iQe=ye((y3r,rQe)=>{"use strict";var tQe=Dr(),Ler=S9().handleRThetaDefaults,Per=WI(),Ier=oQ();rQe.exports=function(t,r,n,i){function a(s,l){return tQe.coerce(t,r,Ier,s,l)}var o=Ler(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"),Per(t,r,a,n,i),tQe.coerceSelectionMarkerOpacity(r,a)}});var aQe=ye((_3r,nQe)=>{"use strict";var Rer=Dr(),Der=sQ();nQe.exports=function(e,t,r){var n={},i;function a(l,u){return Rer.coerce(e[i]||{},t[i],Der,l,u)}for(var o=0;o{"use strict";var oQe=pv().hasColorscale,sQe=gv(),Fer=Dr().isArrayOrTypedArray,zer=A4(),Oer=t2().setGroupPositions,qer=O0(),Ber=qa().traceIs,Ner=Dr().extendFlat;function Uer(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 uQe=Oa(),L9=Eo(),tS=Dr(),Ger=So(),uQ=p9();cQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=Her(r),c=r.layers.frontplot.select("g.barlayer");tS.makeTraceGroups(c,n,"trace bars").each(function(){var f=uQe.select(this),h=tS.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(tS.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 _=uQe.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),k=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),T;if(!L9(b)||!L9(p)||!L9(k)||!L9(E)||b===p||k===E)T="M0,0Z";else{var L=s.c2g(v.s1),x=(k+E)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],T=u(b,p,k,E)}tS.ensureSingle(_,"path").attr("d",T)}),Ger.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function Her(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;tS.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=uQ.findEnclosingVertexAngles(s,e.vangles)[0],c=uQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return uQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return tS.pathAnnulus(n,i,a,o,t,r)}}});var dQe=ye((w3r,hQe)=>{"use strict";var jer=vf(),cQ=Dr(),Wer=PT().getTraceColor,Xer=cQ.fillText,Zer=E9().makeHoverPointText,Yer=p9().isPtInsidePolygon;hQe.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?Yer:cQ.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 _=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(jer.getClosest(i,_,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=cQ.extendFlat({},p,{r:p.s,theta:p.p});return Xer(p,a,t),Zer(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=Wer(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var pQe=ye((T3r,vQe)=>{"use strict";vQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:w9(),categories:["polar","bar","showLegend"],attributes:oQ(),layoutAttributes:sQ(),supplyDefaults:iQe(),supplyLayoutDefaults:aQe(),calc:lQ().calc,crossTraceCalc:lQ().crossTraceCalc,plot:fQe(),colorbar:$d(),formatLabels:M9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:dQe(),selectPoints:IT(),meta:{}}});var mQe=ye((A3r,gQe)=>{"use strict";gQe.exports=pQe()});var fQ=ye((S3r,yQe)=>{"use strict";yQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var hQ=ye((M3r,wQe)=>{"use strict";var Ker=Ih(),Uf=Rd(),Jer=Cc().attributes,Gx=Dr().extendFlat,_Qe=mc().overrideAll,xQe=_Qe({color:Uf.color,showline:Gx({},Uf.showline,{dflt:!0}),linecolor:Uf.linecolor,linewidth:Uf.linewidth,showgrid:Gx({},Uf.showgrid,{dflt:!0}),gridcolor:Uf.gridcolor,gridwidth:Uf.gridwidth,griddash:Uf.griddash},"plot","from-root"),bQe=_Qe({ticklen:Uf.ticklen,tickwidth:Gx({},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"),$er=Gx({visible:Gx({},Uf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Gx({},Uf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},xQe,bQe),Qer=Gx({visible:Gx({},Uf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Uf.ticks,editType:"calc"},xQe,bQe);wQe.exports={domain:Jer({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:Ker.background},realaxis:$er,imaginaryaxis:Qer,editType:"calc"}});var SQe=ye((E3r,AQe)=>{"use strict";var rS=Dr(),etr=ka(),ttr=vl(),rtr=O_(),itr=Id().getSubplotData,ntr=l_(),atr=s_(),otr=u4(),str=xm(),iS=hQ(),dQ=fQ(),TQe=dQ.axisNames,ltr=ctr(function(e){return rS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function utr(e,t,r,n){var i=r("bgcolor");n.bgColor=etr.combine(i,n.paper_bgcolor);var a=itr(n.fullData,dQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var ftr=Id().getSubplotCalcData,htr=Dr().counterRegex,dtr=tQ(),EQe=fQ(),kQe=EQe.attr,Cw=EQe.name,MQe=htr(Cw),CQe={};CQe[kQe]={valType:"subplotid",dflt:Cw,editType:"calc"};function vtr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Cw],i=0;i{"use strict";var{hovertemplateAttrs:gtr,texttemplateAttrs:mtr,templatefallbackAttrs:IQe}=Ll(),P9=Ao().extendFlat,ytr=Pg(),d0=pf(),_tr=Gl(),nS=d0.line;RQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:mtr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:IQe({editType:"plot"}),hovertext:d0.hovertext,line:{color:nS.color,width:nS.width,dash:nS.dash,backoff:nS.backoff,shape:P9({},nS.shape,{values:["linear","spline"]}),smoothing:nS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:P9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:P9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ytr(),hoverinfo:P9({},_tr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:gtr(),hovertemplatefallback:IQe(),selected:d0.selected,unselected:d0.unselected}});var zQe=ye((L3r,FQe)=>{"use strict";var I9=Dr(),aS=Ru(),xtr=$p(),btr=D0(),DQe=sT(),wtr=F0(),Ttr=Fg(),Atr=Lm().PTS_LINESONLY,Str=vQ();FQe.exports=function(t,r,n,i){function a(l,u){return I9.coerce(t,r,Str,l,u)}var o=Mtr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var OQe=ho();qQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=OQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=OQe.tickText(a.angularAxis,t.imag,!0).text,i}});var VQe=ye((I3r,UQe)=>{"use strict";var NQe=Eo(),Etr=fs().BADNUM,ktr=z0(),Ctr=Rm(),Ltr=O0(),Ptr=q0().calcMarkerSize;UQe.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 Itr=dT(),GQe=fs().BADNUM,Rtr=$$(),Dtr=Rtr.smith;HQe.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 Ftr=mT();function ztr(e,t,r,n){var i=Ftr(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,WQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function WQe(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("
")}}XQe.exports={hoverPoints:ztr,makeHoverPointText:WQe}});var KQe=ye((F3r,YQe)=>{"use strict";YQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:PQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:vQ(),supplyDefaults:zQe(),colorbar:$d(),formatLabels:BQe(),calc:VQe(),plot:jQe(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:ZQe().hoverPoints,selectPoints:yT(),meta:{}}});var $Qe=ye((z3r,JQe)=>{"use strict";JQe.exports=KQe()});var kv=ye((O3r,eet)=>{var D9=Nh();function QQe(){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={}}D9(QQe.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(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function R9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}D9(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(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?"-":"")+R9(Math.abs(this.year()),4)+"-"+R9(this.month(),2)+"-"+R9(this.day(),2)}});function gQ(){this.shortYearCutoff="+10"}D9(gQ.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 pQ(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?"-":"")+R9(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=eet.exports=new QQe;Gs.cdate=pQ;Gs.baseCalendar=gQ;Gs.calendars.gregorian=mQ});var tet=ye(()=>{var yQ=Nh(),Nd=kv();yQ(Nd.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"});Nd.local=Nd.regionalOptions[""];yQ(Nd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});yQ(Nd.baseCalendar.prototype,{UNIX_EPOCH:Nd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Nd.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 Nd.local.invalidFormat||Nd.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;E+x1},c=function(T,L,x,C){var M=""+L;if(u(T,C))for(;M.length1},k=function(z,O){var U=p(z,O),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),j=t.substring(M).match(Z);if(!j)throw(Nd.local.missingNumberAt||Nd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=j[0].length,parseInt(j[0],10)},E=this,T=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return k("m")},L=function(z,O,U,G){for(var Z=p(z,G)?U:O,j=0;j-1){h=1,d=v;for(var A=this.daysInMonth(f,h);d>A;A=this.daysInMonth(f,h))h++,d-=A}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 ret=ye(()=>{var Hx=kv(),Otr=Nh(),_Q=Hx.instance();function F9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F9.prototype=new Hx.baseCalendar;Otr(F9.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(Btr);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(Ntr);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(Utr);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 Hx.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 Hx.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,Hx.local.invalidyear),i=Wx[n-Wx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=_Q.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=jx[e-jx[0]],n=r>>13,i=n?12:11;if(t>i)throw Hx.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,Hx.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=Gtr(e,a,r,i);return _Q.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=_Q.fromJD(e),r=Vtr(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(qtr),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(F9.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 qtr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Btr=/^\d?\d[iI]?/m,Ntr=/^闰?十?[一二三四五六七八九]?月/m,Utr=/^闰?十?[一二三四五六七八九]?/m;Hx.calendars.chinese=F9;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],Wx=[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 Vtr(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=Wx[i.year-Wx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Wx[a.year-Wx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,_=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-_)/(24*3600*1e3));var p=jx[a.year-jx[0]],k;for(k=0;k<13;k++){var E=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=jx[o.year-jx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var _=0;_>9&4095,E=p>>5&15,T=p&31,L=new Date(k,E-1,T+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var iet=ye(()=>{var Lw=kv(),Htr=Nh();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Lw.baseCalendar;Htr(xQ.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,Lw.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,Lw.local.invalidYear||Lw.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,Lw.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,Lw.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)}});Lw.calendars.coptic=xQ});var net=ye(()=>{var E1=kv(),jtr=Nh();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new E1.baseCalendar;jtr(bQ.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:Wtr[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 Wtr={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=bQ});var aet=ye(()=>{var Pw=kv(),Xtr=Nh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Pw.baseCalendar;Xtr(wQ.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,Pw.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,Pw.local.invalidYear||Pw.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,Pw.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,Pw.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)}});Pw.calendars.ethiopian=wQ});var oet=ye(()=>{var Xx=kv(),Ztr=Nh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Xx.baseCalendar;Ztr(TQ.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,Xx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,z9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xx.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,Xx.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,Xx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&z9(this.daysInYear(e),10)===5?30:t===9&&z9(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,Xx.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,Xx.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 z9(e,t){return e-t*Math.floor(e/t)}Xx.calendars.hebrew=TQ});var set=ye(()=>{var bC=kv(),Ytr=Nh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new bC.baseCalendar;Ytr(AQ.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,bC.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,bC.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,bC.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)}});bC.calendars.islamic=AQ});var uet=ye(()=>{var wC=kv(),Ktr=Nh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new wC.baseCalendar;Ktr(SQ.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,wC.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,wC.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,wC.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)}});wC.calendars.julian=SQ});var fet=ye(()=>{var fg=kv(),Jtr=Nh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new fg.baseCalendar;Jtr(EQ.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=MQ(e+8+17*20,365);return[Math.floor(t/20)+1,MQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[cet(e+20,20),cet(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 MQ(e,t){return e-t*Math.floor(e/t)}function cet(e,t){return MQ(e-1,t)+1}fg.calendars.mayan=EQ});var det=ye(()=>{var Iw=kv(),$tr=Nh();function kQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kQ.prototype=new Iw.baseCalendar;var het=Iw.instance("gregorian");$tr(kQ.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,Iw.local.invalidYear||Iw.regionalOptions[""].invalidYear);return het.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,Iw.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,Iw.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)}});Iw.calendars.nanakshahi=kQ});var vet=ye(()=>{var Rw=kv(),Qtr=Nh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new Rw.baseCalendar;Qtr(CQ.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 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=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],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 oS=kv(),err=Nh();function q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function O9(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}q9.prototype=new oS.baseCalendar;err(q9.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,oS.local.invalidYear);return O9(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,oS.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,oS.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,O9(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)}});oS.calendars.persian=q9;oS.calendars.jalali=q9});var get=ye(()=>{var Dw=kv(),trr=Nh(),B9=Dw.instance();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new Dw.baseCalendar;trr(LQ.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,Dw.local.invalidYear),r=this._t2gYear(t.year());return B9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Dw.local.invalidYear),i=this._t2gYear(n.year());return B9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.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,Dw.local.invalidDate),i=this._t2gYear(n.year());return B9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=B9.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)}});Dw.calendars.taiwan=LQ});var met=ye(()=>{var Fw=kv(),rrr=Nh(),N9=Fw.instance();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new Fw.baseCalendar;rrr(PQ.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,Fw.local.invalidYear),r=this._t2gYear(t.year());return N9.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 N9.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 N9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=N9.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)}});Fw.calendars.thai=PQ});var yet=ye(()=>{var zw=kv(),irr=Nh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new zw.baseCalendar;irr(IQ.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,zw.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,zw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Zx[i]-Zx[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,zw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Zx[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-Zx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=zw.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=zw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});zw.calendars.ummalqura=IQ;var Zx=[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 xet=ye((vTr,_et)=>{"use strict";_et.exports=kv();tet();ret();iet();net();aet();oet();set();uet();fet();det();vet();pet();get();met();yet()});var ket=ye((pTr,Eet)=>{"use strict";var wet=xet(),TC=Dr(),Tet=fs(),nrr=Tet.EPOCHJD,arr=Tet.ONEDAY,FQ={valType:"enumerated",values:TC.sortObjectKeys(wet.calendars),editType:"calc",dflt:"gregorian"},Aet=function(e,t,r,n){var i={};return i[r]=FQ,TC.coerce(e,t,i,r,n)},orr=function(e,t,r,n){for(var i=0;i{"use strict";Cet.exports=ket()});var hrr=ye((mTr,Iet)=>{var Pet=uye();Pet.register([f1e(),$1e(),hxe(),Rxe(),Xxe(),Gbe(),r2e(),H2e(),_we(),t3e(),V3e(),eke(),Gke(),D6e(),wLe(),QLe(),TPe(),ZIe(),d8e(),P8e(),G8e(),iRe(),yRe(),DRe(),uFe(),CFe(),WBe(),WNe(),rVe(),kVe(),qGe(),QGe(),THe(),Fje(),Kje(),xWe(),CXe(),QXe(),DZe(),rKe(),EKe(),ZKe(),xJe(),DJe(),R$e(),$$e(),mQe(),$Qe(),Let()]);Iet.exports=Pet});return hrr();})(); +`),Xe=Ze.createShader(Ze.FRAGMENT_SHADER);if(Ze.isContextLost())return void(this.failedToCreate=!0);if(Ze.shaderSource(Xe,qe),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 it=Ze.createShader(Ze.VERTEX_SHADER);if(Ze.isContextLost())return void(this.failedToCreate=!0);if(Ze.shaderSource(it,et),Ze.compileShader(it),!Ze.getShaderParameter(it,Ze.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Ze.getShaderInfoLog(it)}`);Ze.attachShader(this.program,it),this.attributes={};let Ft={};this.numAttributes=Yt.length;for(let Ht=0;Ht({u_depth:new a.aH(Ht,tr.u_depth),u_terrain:new a.aH(Ht,tr.u_terrain),u_terrain_dim:new a.aI(Ht,tr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,tr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,tr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,tr.u_terrain_exaggeration)}))(w,Ft),this.binderUniforms=Q?Q.getUniforms(w,Ft):[]}draw(w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve,be,Re,qe,et){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(Oe),st){w.activeTexture.set(Xe.TEXTURE2),Xe.bindTexture(Xe.TEXTURE_2D,st.depthTexture),w.activeTexture.set(Xe.TEXTURE3),Xe.bindTexture(Xe.TEXTURE_2D,st.texture);for(let Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(st[Ft])}for(let Ft in this.fixedUniforms)this.fixedUniforms[Ft].set(Ze[Ft]);be&&be.setUniforms(w,this.binderUniforms,Ir,{zoom:ve});let it=0;switch(B){case Xe.LINES:it=2;break;case Xe.TRIANGLES:it=3;break;case Xe.LINE_STRIP:it=1}for(let Ft of xr.get()){let Ht=Ft.vaos||(Ft.vaos={});(Ht[Tt]||(Ht[Tt]=new kr)).bind(w,this,Yt,be?be.getPaintVertexBuffers():[],Kt,Ft.vertexOffset,Re,qe,et),Xe.drawElements(B,Ft.primitiveLength*it,Xe.UNSIGNED_SHORT,Ft.primitiveOffset*it*2)}}}function An(ue,w,B){let Q=1/In(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Oe=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:[Oe>>16,Ze>>16],u_pixel_coord_lower:[65535&Oe,65535&Ze]}}let Mn=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),Oe=[le.x,le.y,le.z],Ze=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Yt){var Kt=Math.sin(Yt),xr=Math.cos(Yt);Tt[0]=xr,Tt[1]=Kt,Tt[2]=0,Tt[3]=-Kt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Ze,-w.transform.angle),function(Tt,Yt,Kt){var xr=Yt[0],Ir=Yt[1],ve=Yt[2];Tt[0]=xr*Kt[0]+Ir*Kt[3]+ve*Kt[6],Tt[1]=xr*Kt[1]+Ir*Kt[4]+ve*Kt[7],Tt[2]=xr*Kt[2]+Ir*Kt[5]+ve*Kt[8]}(Oe,Oe,Ze);let st=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Oe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[st.r,st.g,st.b],u_vertical_gradient:+B,u_opacity:Q}},Li=(ue,w,B,Q,ee,le,Oe)=>a.e(Mn(ue,w,B,Q),An(le,w,Oe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Oe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),An(B,w,Q)),$n=(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,Oe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Ze=In(B,1,ee.zoom);le=!0,Oe=[Ze,Ze]}else le=!1,Oe=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:Oe}},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:In(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/In(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,Oe=il(w,le);return{u_matrix:As(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/In(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Oe,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 Oe=ue.lineAtlas,Ze=il(w,ue.transform),st=B.layout.get("line-cap")==="round",Tt=Oe.getDash(Q.from,st),Yt=Oe.getDash(Q.to,st),Kt=Tt.width*ee.fromScale,xr=Yt.width*ee.toScale;return a.e(ll(ue,w,B,le),{u_patternscale_a:[Ze/Kt,-Tt.height/2],u_patternscale_b:[Ze/xr,-Yt.height/2],u_sdfgamma:Oe.width/(256*Math.min(Kt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Yt.y,u_mix:ee.t})};function il(ue,w){return 1/In(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:(Oe=ee.paint.get("raster-saturation"),Oe>0?1-1/(1.001-Oe):-Oe),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,Oe};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,Oe,Ze,st,Tt,Yt,Kt,xr,Ir)=>{let ve=Oe.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:Oe.options.fadeDuration?Oe.symbolFadeChange:1,u_matrix:Ze,u_label_plane_matrix:st,u_coord_matrix:Tt,u_is_text:+Kt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Yt,u_pitched_scale:Ir}},Io=(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir,ve)=>{let be=Oe.transform;return a.e(zs(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:Oe.pixelRatio,u_is_halo:+Ir})},ls=(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,Kt,xr,Ir)=>a.e(Io(ue,w,B,Q,ee,le,Oe,Ze,st,Tt,Yt,!0,Kt,!0,Ir),{u_texsize_icon:xr,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(Oe,Ze,st,Tt){let Yt=st.imageManager.getPattern(Oe.from.toString()),Kt=st.imageManager.getPattern(Oe.to.toString()),{width:xr,height:Ir}=st.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,st.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),qe=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Yt.tl,u_pattern_br_a:Yt.br,u_pattern_tl_b:Kt.tl,u_pattern_br_b:Kt.br,u_texsize:[xr,Ir],u_mix:Ze.t,u_pattern_size_a:Yt.displaySize,u_pattern_size_b:Kt.displaySize,u_scale_a:Ze.fromScale,u_scale_b:Ze.toScale,u_tile_units_to_pixels:1/In(Tt,1,st.transform.tileZoom),u_pixel_coord_upper:[Re>>16,qe>>16],u_pixel_coord_lower:[65535&Re,65535&qe]}}(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 Ht=a.H();a.aQ(Ht,Xe.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,Xe.placementViewportMatrix),st.push({circleArray:Ft,circleOffset:Yt,transform:et.posMatrix,invTransform:Ht,coord:et}),Tt+=Ft.length/4,Yt=Tt}it&&Ze.draw(le,Oe.LINES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:et.posMatrix,u_pixel_extrude_scale:[1/(Kt=ue.transform).width,1/Kt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(et),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Kt;if(!ee||!st.length)return;let xr=ue.useProgram("collisionCircle"),Ir=new a.aR;Ir.resize(4*Tt),Ir._trim();let ve=0;for(let qe of st)for(let et=0;et=0&&(qe[Xe.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else pi(Xe.numGlyphs,be)}if(Tt){Re.clear();let et=ue.icon.placedSymbolArray;for(let Xe=0;Xeue.style.map.terrain.getElevation(Wr,nt,jt):null,kt=B.layout.get("text-rotation-alignment")==="map";We(Pi,Wr.posMatrix,ue,ee,Ul,au,qe,Tt,kt,be,Wr.toUnwrapped(),ve.width,ve.height,Js,Ye)}let Tl=Wr.posMatrix,Al=ee&&dr||dc,X=et||Al?bl:Ul,se=Lu,Te=Cn&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=Cn?Pi.iconsInText?ls(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,Qa,Ts,Or):Io(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,ee,Qa,!0,Or):zs(Kn.kind,$a,Xe,qe,et,Al,ue,Tl,X,se,Js,ee,Qa,Or);let He={program:fa,buffers:cn,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Ps,isSDF:Cn,hasHalo:Te};if(Ft&&Pi.canOverlap){Ht=!0;let Ye=cn.segments.get();for(let kt of Ye)Sr.push({segments:new a.a0([kt]),sortKey:kt.sortKey,state:He,terrainData:Co})}else Sr.push({segments:cn.segments,sortKey:0,state:He,terrainData:Co})}Ht&&Sr.sort((Wr,ni)=>Wr.sortKey-ni.sortKey);for(let Wr of Sr){let ni=Wr.state;if(xr.activeTexture.set(Ir.TEXTURE0),ni.atlasTexture.bind(ni.atlasInterpolation,Ir.CLAMP_TO_EDGE),ni.atlasTextureIcon&&(xr.activeTexture.set(Ir.TEXTURE1),ni.atlasTextureIcon&&ni.atlasTextureIcon.bind(ni.atlasInterpolationIcon,Ir.CLAMP_TO_EDGE)),ni.isSDF){let Pi=ni.uniformValues;ni.hasHalo&&(Pi.u_is_halo=1,Qf(ni.buffers,Wr.segments,B,ue,ni.program,tr,Yt,Kt,Pi,Wr.terrainData)),Pi.u_is_halo=0}Qf(ni.buffers,Wr.segments,B,ue,ni.program,tr,Yt,Kt,ni.uniformValues,Wr.terrainData)}}function Qf(ue,w,B,Q,ee,le,Oe,Ze,st,Tt){let Yt=Q.context;ee.draw(Yt,Yt.gl.TRIANGLES,le,Oe,Ze,Pa.disabled,st,Tt,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,Oe=Ko.disabled,Ze=new qs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),st=w.getBucket(B);if(!st)return;let Tt=Q.key,Yt=B.heatmapFbos.get(Tt);Yt||(Yt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Yt)),ee.bindFramebuffer.set(Yt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Kt=st.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Kt),Ir=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,Oe,Ze,Pa.disabled,ko(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Ir,B.id,st.layoutVertexBuffer,st.indexBuffer,st.segments,B.paint,ue.transform.zoom,Kt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),Oe=B.key,Ze=w.heatmapFbos.get(Oe);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(Oe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,Oe=le.createTexture();le.bindTexture(le.TEXTURE_2D,Oe),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,st=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,st,w,B,0,le.RGBA,Ze,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(Oe),Tt}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,Oe=le[B.to.toString()],Ze=le[B.from.toString()];if(!Oe&&Ze&&(Oe=Ze),!Ze&&Oe&&(Ze=Oe),!Oe||!Ze){let st=ee.getPaintProperty(w);Oe=le[st],Ze=le[st]}Oe&&Ze&&ue.setConstantPatternPositions(Oe,Ze)}function jf(ue,w,B,Q,ee,le,Oe){let Ze=ue.context.gl,st="fill-pattern",Tt=B.paint.get(st),Yt=Tt&&Tt.constantOr(1),Kt=B.getCrossfadeParameters(),xr,Ir,ve,be,Re;Oe?(Ir=Yt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Ze.LINES):(Ir=Yt?"fillPattern":"fill",xr=Ze.TRIANGLES);let qe=Tt.constantOr(null);for(let et of Q){let Xe=w.getTile(et);if(Yt&&!Xe.patternsLoaded())continue;let it=Xe.getBucket(B);if(!it)continue;let Ft=it.programConfigurations.get(B.id),Ht=ue.useProgram(Ir,Ft),tr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(et);Yt&&(ue.context.activeTexture.set(Ze.TEXTURE0),Xe.imageAtlasTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),Ft.updatePaintBuffers(Kt)),ju(Ft,st,qe,Xe,B);let dr=tr?et:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:et.posMatrix,Xe,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(Oe){be=it.indexBuffer2,Re=it.segments2;let Or=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];ve=Ir==="fillOutlinePattern"&&Yt?Ma(Sr,ue,Kt,Xe,Or):$n(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Yt?ya(Sr,ue,Kt,Xe):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(et),le,Pa.disabled,ve,tr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Ft)}}function cc(ue,w,B,Q,ee,le,Oe){let Ze=ue.context,st=Ze.gl,Tt="fill-extrusion-pattern",Yt=B.paint.get(Tt),Kt=Yt.constantOr(1),xr=B.getCrossfadeParameters(),Ir=B.paint.get("fill-extrusion-opacity"),ve=Yt.constantOr(null);for(let be of Q){let Re=w.getTile(be),qe=Re.getBucket(B);if(!qe)continue;let et=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),Xe=qe.programConfigurations.get(B.id),it=ue.useProgram(Kt?"fillExtrusionPattern":"fillExtrusion",Xe);Kt&&(ue.context.activeTexture.set(st.TEXTURE0),Re.imageAtlasTexture.bind(st.LINEAR,st.CLAMP_TO_EDGE),Xe.updatePaintBuffers(xr)),ju(Xe,Tt,ve,Re,B);let Ft=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),tr=Kt?Li(Ft,ue,Ht,Ir,be,xr,Re):Mn(Ft,ue,Ht,Ir);it.draw(Ze,Ze.gl.TRIANGLES,ee,le,Oe,Pa.backCCW,tr,et,B.id,qe.layoutVertexBuffer,qe.indexBuffer,qe.segments,B.paint,ue.transform.zoom,Xe,ue.style.map.terrain&&qe.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,Oe){let Ze=ue.context,st=Ze.gl,Tt=B.fbo;if(!Tt)return;let Yt=ue.useProgram("hillshade"),Kt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Ze.activeTexture.set(st.TEXTURE0),st.bindTexture(st.TEXTURE_2D,Tt.colorAttachment.get()),Yt.draw(Ze,st.TRIANGLES,ee,le,Oe,Pa.disabled,((xr,Ir,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),qe=ve.paint.get("hillshade-highlight-color"),et=ve.paint.get("hillshade-accent-color"),Xe=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Ir.tileID.toUnwrapped(),it),u_image:0,u_latrange:Fs(0,Ir.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),Xe],u_shadow:Re,u_highlight:qe,u_accent:et}})(ue,B,Q,Kt?w:null),Kt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Nl(ue,w,B,Q,ee,le){let Oe=ue.context,Ze=Oe.gl,st=w.dem;if(st&&st.data){let Tt=st.dim,Yt=st.stride,Kt=st.getPixels();if(Oe.activeTexture.set(Ze.TEXTURE1),Oe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Yt),w.demTexture){let Ir=w.demTexture;Ir.update(Kt,{premultiply:!1}),Ir.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE)}else w.demTexture=new g(Oe,Kt,Ze.RGBA,{premultiply:!1}),w.demTexture.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE);Oe.activeTexture.set(Ze.TEXTURE0);let xr=w.fbo;if(!xr){let Ir=new g(Oe,{width:Tt,height:Tt,data:null},Ze.RGBA);Ir.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),xr=w.fbo=Oe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Ir.texture)}Oe.bindFramebuffer.set(xr.framebuffer),Oe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(Oe,Ze.TRIANGLES,Q,ee,le,Pa.disabled,((Ir,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Ir.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,st),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let Oe=Q.paint.get("raster-fade-duration");if(!le&&Oe>0){let Ze=u.now(),st=(Ze-ue.timeAdded)/Oe,Tt=w?(Ze-w.timeAdded)/Oe:-1,Yt=B.getSource(),Kt=ee.coveringZoomLevel({tileSize:Yt.tileSize,roundZoom:Yt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Kt)>Math.abs(ue.tileID.overscaledZ-Kt),Ir=xr&&ue.refreshedUponExpiration?1:a.ac(xr?st:1-Tt,0,1);return ue.refreshedUponExpiration&&st>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ir}:{opacity:Ir,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 sf(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 Oe=ue.context,Ze=Oe.gl;Ze.enable(Ze.SCISSOR_TEST),Ze.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Oe.clear({color:le}),Ze.disable(Ze.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,Oe=ue.useProgram("debug"),Ze=Po.disabled,st=Ko.disabled,Tt=ue.colorModeForRenderPass(),Yt="$debug",Kt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Ir=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(qe,et){qe.initDebugOverlayCanvas();let Xe=qe.debugOverlayCanvas,it=qe.context.gl,Ft=qe.debugOverlayCanvas.getContext("2d");Ft.clearRect(0,0,Xe.width,Xe.height),Ft.shadowColor="white",Ft.shadowBlur=2,Ft.lineWidth=1.5,Ft.strokeStyle="white",Ft.textBaseline="top",Ft.font="bold 36px Open Sans, sans-serif",Ft.fillText(et,5,5),Ft.strokeText(et,5,5),qe.debugOverlayTexture.update(Xe),qe.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Ir}kB`),Oe.draw(Q,ee.TRIANGLES,Ze,st,qs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Yt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Oe.draw(Q,ee.LINE_STRIP,Ze,st,Tt,Pa.disabled,po(le,a.aM.red),Kt,Yt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function js(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),Oe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Ze=ue.useProgram("terrain"),st=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Yt=ue.renderToTexture.getTexture(Tt),Kt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Yt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Ir=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Jr(xr,Ir,ve,ue.style.sky,ue.transform.pitch);Ze.draw(Q,ee.TRIANGLES,Oe,Ko.disabled,le,Pa.backCCW,be,Kt,"terrain",st.vertexBuffer,st.indexBuffer,st.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=mt.maxUnderzooming+mt.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,ut.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 Oe=new a.aZ;Oe.emplaceBack(0),Oe.emplaceBack(1),Oe.emplaceBack(3),Oe.emplaceBack(2),Oe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Oe);let Ze=new a.aY;Ze.emplaceBack(0,1,2),Ze.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Ze);let st=this.context.gl;this.stencilClearMode=new Ko({func:st.ALWAYS,mask:0},0,255,st.ZERO,st.ZERO,st.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,qs.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(qs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Oe of B){let Ze=this._tileClippingMaskIDs[Oe.key]=this.nextStencilID++,st=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Oe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Ko({func:ee.ALWAYS,mask:0},Ze,255,ee.KEEP,ee.KEEP,ee.REPLACE),qs.disabled,Pa.disabled,Lo(Oe.posMatrix),st,"$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((Oe,Ze)=>Ze.overscaledZ-Oe.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 Oe={};for(let Ze=0;Ze({u_sky_color:qe.properties.get("sky-color"),u_horizon_color:qe.properties.get("horizon-color"),u_horizon:(et.height/2+et.getHorizon())*Xe,u_sky_horizon_blend:qe.properties.get("sky-horizon-blend")*et.height/2*Xe}))(Tt,st.style.map.transform,st.pixelRatio),Ir=new Po(Kt.LEQUAL,Po.ReadWrite,[0,1]),ve=Ko.disabled,be=st.colorModeForRenderPass(),Re=st.useProgram("sky");if(!Tt.mesh){let qe=new a.aX;qe.emplaceBack(-1,-1),qe.emplaceBack(1,-1),qe.emplaceBack(1,1),qe.emplaceBack(-1,1);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(0,2,3),Tt.mesh=new Eu(Yt.createVertexBuffer(qe,vo.members),Yt.createIndexBuffer(et),a.a0.simpleSegment(0,0,qe.length,et.length))}Re.draw(Yt,Kt.TRIANGLES,Ir,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.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 st=this.style._layers[Q[this.currentLayer]],Tt=ee[st.source],Yt=le[st.source];this._renderTileClippingMasks(st,Yt),this.renderLayer(this,Tt,st,Yt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Yt)?[Tt.sourceCaches[Re.source]]:[]),Ir=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Kt||Kt.getSource().maxzoombe(Re)),Kt||ve.forEach(Re=>be(Re)),Kt}(this.style,this.transform.zoom);st&&function(Tt,Yt,Kt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,Oe){let Ze=le.context,st=Ze.gl,Tt=qs.unblended,Yt=new Po(st.LEQUAL,Po.ReadWrite,[0,1]),Kt=Oe.getTerrainMesh(),xr=Oe.sourceCache.getRenderableTiles(),Ir=le.useProgram("terrainDepth");Ze.bindFramebuffer.set(Oe.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 xr){let be=Oe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:Oe.getMeshFrameDelta(le.transform.zoom)};Ir.draw(Ze,st.TRIANGLES,Yt,Ko.disabled,Tt,Pa.backCCW,Re,be,"terrain",Kt.vertexBuffer,Kt.indexBuffer,Kt.segments)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,Oe){let Ze=le.context,st=Ze.gl,Tt=qs.unblended,Yt=new Po(st.LEQUAL,Po.ReadWrite,[0,1]),Kt=Oe.getTerrainMesh(),xr=Oe.getCoordsTexture(),Ir=Oe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Ze.bindFramebuffer.set(Oe.getFramebuffer("coords").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1}),Oe.coordsIndex=[];for(let be of Ir){let Re=Oe.getTerrainData(be.tileID);Ze.activeTexture.set(st.TEXTURE0),st.bindTexture(st.TEXTURE_2D,xr.texture);let qe={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-Oe.coordsIndex.length)/255,u_texture:0,u_ele_delta:Oe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Ze,st.TRIANGLES,Yt,Ko.disabled,Tt,Pa.backCCW,qe,Re,"terrain",Kt.vertexBuffer,Kt.indexBuffer,Kt.segments),Oe.coordsIndex.push(be.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,Oe,Ze,st,Tt){if(le.renderPass!=="translucent")return;let Yt=Ko.disabled,Kt=le.colorModeForRenderPass();(Ze._unevaluatedLayout.hasValue("text-variable-anchor")||Ze._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Ir,ve,be,Re,qe,et,Xe,it){let Ft=Ir.transform,Ht=yn(),tr=Re==="map",dr=qe==="map";for(let Sr of xr){let Or=be.getTile(Sr),Wr=Or.getBucket(ve);if(!Wr||!Wr.text||!Wr.text.segments.get().length)continue;let ni=a.ag(Wr.textSizeData,Ft.zoom),Pi=In(Or,1,Ir.transform.zoom),cn=Br(Sr.posMatrix,dr,tr,Ir.transform,Pi),ln=ve.layout.get("icon-text-fit")!=="none"&&Wr.hasIconData();if(ni){let Cn=Math.pow(2,Ft.zoom-Or.tileID.overscaledZ),Kn=Ir.style.map.terrain?(fa,$a)=>Ir.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=Ht.translatePosition(Ft,Or,et,Xe);yf(Wr,tr,dr,it,Ft,cn,Sr.posMatrix,Cn,ni,ln,Ht,Aa,Sr.toUnwrapped(),Kn)}}}(st,le,Ze,Oe,Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Tt),Ze.paint.get("icon-opacity").constantOr(1)!==0&&Ah(le,Oe,Ze,st,!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"),Yt,Kt),Ze.paint.get("text-opacity").constantOr(1)!==0&&Ah(le,Oe,Ze,st,!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"),Yt,Kt),Oe.map.showCollisionBoxes&&(Hu(le,Oe,Ze,st,!0),Hu(le,Oe,Ze,st,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,Oe,Ze,st){if(le.renderPass!=="translucent")return;let Tt=Ze.paint.get("circle-opacity"),Yt=Ze.paint.get("circle-stroke-width"),Kt=Ze.paint.get("circle-stroke-opacity"),xr=!Ze.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Yt.constantOr(1)===0||Kt.constantOr(1)===0))return;let Ir=le.context,ve=Ir.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Ko.disabled,qe=le.colorModeForRenderPass(),et=[];for(let Xe=0;XeXe.sortKey-it.sortKey);for(let Xe of et){let{programConfiguration:it,program:Ft,layoutVertexBuffer:Ht,indexBuffer:tr,uniformValues:dr,terrainData:Sr}=Xe.state;Ft.draw(Ir,ve.TRIANGLES,be,Re,qe,Pa.disabled,dr,Sr,Ze.id,Ht,tr,Xe.segments,Ze.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,Oe,Ze,st){if(Ze.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Yt of st){let Kt=Oe.getTile(Yt);Oe.hasRenderableParent(Yt)||(le.renderPass==="offscreen"?_f(le,Kt,Ze,Yt):le.renderPass==="translucent"&&Yc(le,Ze,Yt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Yt,Kt,xr,Ir){let ve=Yt.context,be=ve.gl,Re=Ko.disabled,qe=new qs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(et,Xe,it){let Ft=et.gl;et.activeTexture.set(Ft.TEXTURE1),et.viewport.set([0,0,Xe.width/4,Xe.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Ft.bindTexture(Ft.TEXTURE_2D,Ht.colorAttachment.get()),et.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(et,Xe.width/4,Xe.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Yt,xr),ve.clear({color:a.aM.transparent});for(let et=0;et20&&Yt.texParameterf(Yt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let Wr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(et),ni=Wr?et:null,Pi=ni?ni.posMatrix:le.transform.calculatePosMatrix(et.toUnwrapped(),qe),cn=cl(Pi,Sr||[0,0],dr||1,tr,Ze);Kt instanceof Wt?xr.draw(Tt,Yt.TRIANGLES,Xe,Ko.disabled,Ir,Pa.disabled,cn,Wr,Ze.id,Kt.boundsBuffer,le.quadTriangleIndexBuffer,Kt.boundsSegments):xr.draw(Tt,Yt.TRIANGLES,Xe,ve[et.overscaledZ],Ir,Pa.disabled,cn,Wr,Ze.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,Oe,Ze,st){let Tt=Ze.paint.get("background-color"),Yt=Ze.paint.get("background-opacity");if(Yt===0)return;let Kt=le.context,xr=Kt.gl,Ir=le.transform,ve=Ir.tileSize,be=Ze.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Yt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let qe=Ko.disabled,et=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),Xe=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Ft=st||Ir.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Kt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Ze.getCrossfadeParameters();for(let tr of Ft){let dr=st?tr.posMatrix:le.transform.calculatePosMatrix(tr.toUnwrapped()),Sr=be?Su(dr,Yt,le,be,{tileID:tr,tileSize:ve},Ht):Yl(dr,Yt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tr);it.draw(Kt,xr.TRIANGLES,et,qe,Xe,Pa.disabled,Sr,Or,Ze.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,Oe,Ze){let st=le.context,Tt=Ze.implementation;if(le.renderPass==="offscreen"){let Yt=Tt.prerender;Yt&&(le.setCustomLayerDefaults(),st.setColorMode(le.colorModeForRenderPass()),Yt.call(Tt,st.gl,le.transform.customLayerMatrix()),st.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),st.setColorMode(le.colorModeForRenderPass()),st.setStencilMode(Ko.disabled);let Yt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);st.setDepthMode(Yt),Tt.render(st.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),st.setDirty(),le.setBaseState(),st.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let Oe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Oe){let Tt=Math.sin(Oe),Yt=Math.cos(Oe);Q=[Q[0]*Yt-Q[1]*Tt,Q[0]*Tt+Q[1]*Yt]}let Ze=[le?Q[0]:In(B,Q[0],this.transform.zoom),le?Q[1]:In(B,Q[1],this.transform.zoom),0],st=new Float32Array(16);return a.J(st,w,Ze),st}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,jn[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 st=1/(Ze=a.af([],Ze,w))[3]/B*ee;return a.b1(Ze,Ze,[st,st,1/Ze[3],st])}),Oe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Ze=>{let st=function(xr,Ir){var ve=Ir[0],be=Ir[1],Re=Ir[2],qe=ve*ve+be*be+Re*Re;return qe>0&&(qe=1/Math.sqrt(qe)),xr[0]=Ir[0]*qe,xr[1]=Ir[1]*qe,xr[2]=Ir[2]*qe,xr}([],function(xr,Ir,ve){var be=Ir[0],Re=Ir[1],qe=Ir[2],et=ve[0],Xe=ve[1],it=ve[2];return xr[0]=Re*it-qe*Xe,xr[1]=qe*et-be*it,xr[2]=be*Xe-Re*et,xr}([],L([],le[Ze[0]],le[Ze[1]]),L([],le[Ze[2]],le[Ze[1]]))),Tt=-((Yt=st)[0]*(Kt=le[Ze[1]])[0]+Yt[1]*Kt[1]+Yt[2]*Kt[2]);var Yt,Kt;return st.concat(Tt)});return new ks(le,Oe)}}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=E(this.min),ee=E(this.max);for(let le=0;le=0&&Oe++;if(Oe===0)return 0;Oe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,Oe=-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 Oe=ee[0],Ze=ee[1],st=ee[2],Tt=ee[3],Yt=Math.sin(le),Kt=Math.cos(le);Q[0]=Oe*Kt+st*Yt,Q[1]=Ze*Kt+Tt*Yt,Q[2]=Oe*-Yt+st*Kt,Q[3]=Ze*-Yt+Tt*Kt}(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)),Oe=this.pointCoordinate(new a.P(0,this.height)),Ze=Math.floor(Math.min(Q.x,ee.x,le.x,Oe.x)),st=Math.floor(Math.max(Q.x,ee.x,le.x,Oe.x)),Tt=1;for(let Yt=Ze-Tt;Yt<=st+Tt;Yt++)Yt!==0&&B.push(new a.b4(Yt,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 Oe=this.pointCoordinate(this.getCameraPoint()),Ze=a.Z.fromLngLat(this.center),st=Math.pow(2,ee),Tt=[st*Oe.x,st*Oe.y,0],Yt=[st*Ze.x,st*Ze.y,0],Kt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Ir=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=Xe=>({aabb:new bc([Xe*st,0,0],[(Xe+1)*st,st,0]),zoom:0,x:0,y:0,wrap:Xe,fullyVisible:!1}),be=[],Re=[],qe=ee,et=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let Xe=1;Xe<=3;Xe++)be.push(ve(-Xe)),be.push(ve(Xe));for(be.push(ve(0));be.length>0;){let Xe=be.pop(),it=Xe.x,Ft=Xe.y,Ht=Xe.fullyVisible;if(!Ht){let Wr=Xe.aabb.intersects(Kt);if(Wr===0)continue;Ht=Wr===2}let tr=w.terrain?Tt:Yt,dr=Xe.aabb.distanceX(tr),Sr=Xe.aabb.distanceY(tr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(Xe.zoom===qe||Or>Ir+(1<=xr){let Wr=qe-Xe.zoom,ni=Tt[0]-.5-(it<>1),cn=Xe.zoom+1,ln=Xe.aabb.quadrant(Wr);if(w.terrain){let Cn=new a.S(cn,Xe.wrap,cn,ni,Pi),Kn=w.terrain.getMinMaxElevation(Cn),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;ln=new bc([ln.min[0],ln.min[1],Aa],[ln.max[0],ln.max[1],fa])}be.push({aabb:ln,zoom:cn,x:ni,y:Pi,wrap:Xe.wrap,fullyVisible:Ht})}}return Re.sort((Xe,it)=>Xe.distanceSq-it.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 Oe=Q+B-le,Ze=Math.cos(this._pitch)*this.cameraToCenterDistance/Oe/a.b5(1,ee.lat),st=this.scaleZoom(Ze/this.tileSize);this._elevation=le,this._center=ee,this.zoom=st}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),Oe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(Oe),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 xr=B.pointCoordinate(w);if(xr!=null)return xr}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],Oe=ee[3],Ze=Q[1]/le,st=ee[1]/Oe,Tt=Q[2]/le,Yt=ee[2]/Oe,Kt=Tt===Yt?0:(0-Tt)/(Yt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/Oe,Kt)/this.worldSize,a.y.number(Ze,st,Kt)/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),Oe=0,Ze=le,st=0,Tt=le,Yt=0,Kt=0,{x:xr,y:Ir}=this.size;if(this.latRange){let Xe=this.latRange;Oe=a.Q(Xe[1])*le,Ze=a.Q(Xe[0])*le,Ze-OeZe&&(qe=Ze-Xe)}if(ee){let Xe=(st+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,Xe-le/2,Xe+le/2));let Ft=xr/2;it-FtTt&&(Re=Tt-Ft)}if(Re!==void 0||qe!==void 0){let Xe=new a.P(Re!=null?Re:ve,qe!=null?qe:be);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),Oe=Math.min(this.elevation,this.minElevationForCurrentTile),Ze=le-Oe*this._pixelPerMeter/Math.cos(this._pitch),st=Oe<0?Ze:le,Tt=Math.PI/2+this._pitch,Yt=this._fov*(.5+w.y/this.height),Kt=Math.sin(Yt)*st/Math.sin(a.ac(Math.PI-Tt-Yt,.01,Math.PI-.01)),xr=this.getHorizon(),Ir=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Ir)*st/Math.sin(a.ac(Math.PI-Tt-Ir,.01,Math.PI-.01)),be=Math.min(Kt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+st),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 Re=this.width%2/2,qe=this.height%2/2,et=Math.cos(this.angle),Xe=Math.sin(this.angle),it=B-Math.round(B)+et*Re+Xe*qe,Ft=Q-Math.round(Q)+et*qe+Xe*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Ft>.5?Ft-1:Ft,0]),this.alignedModelViewProjectionMatrix=Ht,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,Oe=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),Oe=Math.max(Oe,Ze.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,Oe),new a.P(Q,Oe),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,Oe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(Oe,w),Q=!1)};return(...Ze)=>(Q=!0,le=this,B=Ze,ee||Oe(),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 Oe=window.location.href.replace(/(#.+)?$/,le);Oe=Oe.replace("&&","&"),window.history.replaceState(window.history.state,null,Oe)},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),Oe=Math.round(B.lng*le)/le,Ze=Math.round(B.lat*le)/le,st=this._map.getBearing(),Tt=this._map.getPitch(),Yt="";if(Yt+=w?`/${Oe}/${Ze}/${Q}`:`${Q}/${Ze}/${Oe}`,(st||Tt)&&(Yt+="/"+Math.round(10*st)/10),Tt&&(Yt+=`/${Math.round(Tt)}`),this._hashName){let Kt=this._hashName,xr=!1,Ir=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Kt?(xr=!0,`${be}=${Yt}`):ve}).filter(ve=>ve);return xr||Ir.push(`${Kt}=${Yt}`),`#${Ir.join("&")}`}return`#${Yt}`}}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,Ou(ee,le)}if(B.zoom){let le=bf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=bf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=bf(B.pitch,Q,xf);ee.pitch=this._map.transform.pitch+le.amount,Ou(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 Ou(ue,w){(!ue.duration||ue.durationB.unproject(st)),Ze=le.reduce((st,Tt,Yt,Kt)=>st.add(Tt.div(Kt.length)),new a.P(0,0));super(w,{points:le,point:Ze,lngLats:Oe,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 lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(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 Oe of ee)le._add(Oe);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 Oe=ee[le];(!Oe||Oe.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,Oe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&Oe||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),Oe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Oe.zoom+1,around:Oe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Oe.zoom-1,around:Oe.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),Oe=new a.P(0,0),Ze=0;for(let Tt in ee){let Yt=ee[Tt],Kt=this._touches[Tt];Kt&&(le._add(Yt),Oe._add(Yt.sub(Kt)),Ze++,ee[Tt]=Yt)}if(this._touches=ee,this._shouldBePrevented(Ze)||!Oe.mag())return;let st=Oe.div(Ze);return this._sum._add(st),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{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 Oe=w.y>0==B.y>0;return fc(w)&&fc(B)&&Oe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new du(w);let B=At;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,Oe=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(),Oe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Oe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Ze=>{let st=this._tr;Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:Cr,zoom:B?Math.round(st.zoom)+B*(w.shiftKey?2:1):st.zoom,bearing:st.bearing+Q*this._bearingStep,pitch:st.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-Oe*this._panStep],center:st.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 Cr(ue){return ue*(2-ue)}let Ar=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%Ar==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 st=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*st)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Yt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Yt*Tt))),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,Oe=!1,Ze=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Ze){let st=Math.min(Ze/200,1),Tt=ee(st);le=a.y.number(Q,B,Tt),st<1?this._frameId||(this._frameId=!0):Oe=!0}else le=B,Oe=!0;return this._active=!0,Oe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Oe,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),Oe=.27/Math.sqrt(le*le+1e-4)*.01,Ze=Math.sqrt(.0729-Oe*Oe);B=a.b8(Oe,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 ki{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,Oe=this._tapPoint.dist(ee)<30;le&&Oe?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 Nn{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 Qi{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 on=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Fi extends a.k{}function Qn(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 Oe=ee.type==="renderFrame"?void 0:ee,Ze={needsRenderFrame:!1},st={},Tt={},Yt=ee.touches,Kt=Yt?this._getMapTouches(Yt):void 0,xr=Kt?c.touchPos(this._map.getCanvas(),Kt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:qe}of this._handlers){if(!Re.isEnabled())continue;let et;this._blockedByActive(Tt,qe,be)?Re.reset():Re[le||ee.type]&&(et=Re[le||ee.type](ee,xr,Kt),this.mergeHandlerResult(Ze,st,et,be,Oe),et&&et.needsRenderFrame&&this._triggerRenderFrame()),(et||Re.isActive())&&(Tt[be]=Re)}let Ir={};for(let be in this._previousActiveHandlers)Tt[be]||(Ir[be]=Oe);this._previousActiveHandlers=Tt,(Object.keys(Ir).length||Qn(Ze))&&(this._changes.push([Ze,st,Ir]),this._triggerRenderFrame()),(Object.keys(Tt).length||Qn(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,Oe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,Oe)}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 Qi(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let Oe=new zc(B),Ze=new Xi(B);B.doubleClickZoom=new ki(Ze,Oe),this._add("tapZoom",Oe),this._add("clickZoom",Ze),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let st=new dn;this._add("tapDragZoom",st);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Yt=Wl(w),Kt=ah(w);B.dragRotate=new Nn(w,Yt,Kt),this._add("mouseRotate",Yt,["mousePitch"]),this._add("mousePitch",Kt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:et,clickTolerance:Xe})=>{let it=new Xu({checkCorrectEvent:Ft=>c.mouseButton(Ft)===0&&!Ft.ctrlKey});return new Wu({clickTolerance:Xe,move:(Ft,Ht)=>({around:Ht,panDelta:Ht.sub(Ft)}),activateOnStart:!0,moveStateManager:it,enable:et,assignEvents:Zf})})(w),Ir=new Zu(w,B);B.dragPan=new wn(Q,xr,Ir),this._add("mousePan",xr),this._add("touchPan",Ir,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new vu;B.touchZoomRotate=new Yi(Q,be,ve,st),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let qe=B.keyboard=new Xt(B);this._add("keyboard",qe),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!!on(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 Oe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=Oe),Q.panDelta!==void 0&&(B.drag=Oe),Q.pitchDelta!==void 0&&(B.pitch=Oe),Q.bearingDelta!==void 0&&(B.rotate=Oe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,Oe]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,Oe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),Oe=ee.terrain;if(!(Qn(w)||Oe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Ze,zoomDelta:st,bearingDelta:Tt,pitchDelta:Yt,around:Kt,pinchAround:xr}=w;xr!==void 0&&(Kt=xr),ee._stop(!0),Kt=Kt||ee.transform.centerPoint;let Ir=le.pointLocation(Ze?Kt.sub(Ze):Kt);Tt&&(le.bearing+=Tt),Yt&&(le.pitch+=Yt),st&&(le.zoom+=st),Oe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Ze)):le.setLocationAtPoint(Ir,Kt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Ir,Kt)):le.setLocationAtPoint(Ir,Kt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=on(this._eventsInProgress),le=on(w),Oe={};for(let Kt in w){let{originalEvent:xr}=w[Kt];this._eventsInProgress[Kt]||(Oe[`${Kt}start`]=xr),this._eventsInProgress[Kt]=w[Kt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Kt in Oe)this._fireEvent(Kt,Oe[Kt]);le&&this._fireEvent("move",le.originalEvent);for(let Kt in w){let{originalEvent:xr}=w[Kt];this._fireEvent(Kt,xr)}let Ze={},st;for(let Kt in this._eventsInProgress){let{handlerName:xr,originalEvent:Ir}=this._eventsInProgress[Kt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Kt],st=B[xr]||Ir,Ze[`${Kt}end`]=st)}for(let Kt in Ze)this._fireEvent(Kt,Ze[Kt]);let Tt=on(this._eventsInProgress),Yt=(ee||le)&&!Tt;if(Yt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Kt=this._map._getTransformForUpdate();Kt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Kt)}if(Q&&Yt){this._updatingCamera=!0;let Kt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Ir=>Ir!==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,Re,tr)),this._rotating&&(ee.bearing=a.y.number(Oe,Tt,tr)),this._pitching&&(ee.pitch=a.y.number(Ze,Yt,tr)),this._padding&&(ee.interpolatePadding(st,Kt,tr),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(tr),it)ee.setLocationAtPoint(it,Ft);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,Xe):Math.max(.5,Xe),Or=Math.pow(Sr,1-tr),Wr=ee.unproject(qe.add(et.mult(tr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?Wr.wrap():Wr,Ir)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},tr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,tr)},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:Oe,zoom:Ze,pitch:st,bearing:Tt,elevation:Yt}=ee(le);Oe&&(le.center=Oe),Ze!==void 0&&(le.zoom=Ze),st!==void 0&&(le.pitch=st),Tt!==void 0&&(le.bearing=Tt),Yt!==void 0&&(le.elevation=Yt),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 Cn=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Cn,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,Oe=ee.bearing,Ze=ee.pitch,st=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,Oe):Oe,Yt="pitch"in w?+w.pitch:Ze,Kt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Ir=ee.centerPoint.add(xr),ve=ee.pointLocation(Ir),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let qe=ee.zoomScale(Re-le),et=ee.project(ve),Xe=ee.project(be).sub(et),it=w.curve,Ft=Math.max(ee.width,ee.height),Ht=Ft/qe,tr=Xe.mag();if("minZoom"in w){let Cn=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Ft/ee.zoomScale(Cn-le);it=Math.sqrt(Kn/tr*2)}let dr=it*it;function Sr(Cn){let Kn=(Ht*Ht-Ft*Ft+(Cn?-1:1)*dr*dr*tr*tr)/(2*(Cn?Ht:Ft)*dr*tr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(Cn){return(Math.exp(Cn)-Math.exp(-Cn))/2}function Wr(Cn){return(Math.exp(Cn)+Math.exp(-Cn))/2}let ni=Sr(!1),Pi=function(Cn){return Wr(ni)/Wr(ni+it*Cn)},cn=function(Cn){return Ft*((Wr(ni)*(Or(Kn=ni+it*Cn)/Wr(Kn))-Or(ni))/dr)/tr;var Kn},ln=(Sr(!0)-ni)/it;if(Math.abs(tr)<1e-6||!isFinite(ln)){if(Math.abs(Ft-Ht)<1e-6)return this.easeTo(w,B);let Cn=Ht0,Pi=Kn=>Math.exp(Cn*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*ln/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Oe!==Tt,this._pitching=Yt!==Ze,this._padding=!ee.isPaddingEqual(Kt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(Cn=>{let Kn=Cn*ln,Aa=1/Pi(Kn);ee.zoom=Cn===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(Oe,Tt,Cn)),this._pitching&&(ee.pitch=a.y.number(Ze,Yt,Cn)),this._padding&&(ee.interpolatePadding(st,Kt,Cn),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Cn);let fa=Cn===1?be:ee.unproject(et.add(Xe.mult(cn(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Ir),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 Na{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 Oe=le.getSource();Oe.attribution&&w.indexOf(Oe.attribution)<0&&w.push(Oe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let Oe=le+1;Oe=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 Yn{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 Gt(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 Oe=ee.canonical.z-w.canonical.z,Ze=ee.canonical.x-(ee.canonical.x>>Oe<>Oe<>Oe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Ze*Tt,-st*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Oe=w.canonical.z-ee.canonical.z,Ze=w.canonical.x-(w.canonical.x>>Oe<>Oe<>Oe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Ze*Tt,st*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**Oe,1/2**Oe,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 Oe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[Oe+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),Oe=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-Oe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let st=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Yt=this.coordsIndex[255-B[3]],Kt=Yt&&this.sourceCache.getTileByID(Yt);if(!Kt)return null;let xr=this._coordsTextureSize,Ir=(1<w.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 Oe=this.terrain.sourceCache.getTerrainCoords(le);for(let Ze in Oe)this._coordsDescendingInv[Q][Ze]||(this._coordsDescendingInv[Q][Ze]=[]),this._coordsDescendingInv[Q][Ze].push(Oe[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 Oe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][Oe]=this._coordsDescendingInv[le][Oe].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,Oe=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 Tt=this.pool.getObjectForId(Ze.rtt[le].id);if(Tt.stamp===Ze.rtt[le].stamp){this.pool.useObject(Tt);continue}}let st=this.pool.getOrCreateFreeObject();this.pool.useObject(st),this.pool.stampObject(st),Ze.rtt[le]={id:st.id,stamp:st.stamp},Q.context.bindFramebuffer.set(st.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{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=Oe=>{this.startMouse(a.e({},Oe,{ctrlKey:!0,preventDefault:()=>Oe.preventDefault()}),c.mousePos(this.element,Oe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Oe=>{this.moveMouse(Oe,c.mousePos(this.element,Oe))},this.mouseup=Oe=>{this.mouseRotate.dragEnd(Oe),this.mousePitch&&this.mousePitch.dragEnd(Oe),this.offTemp()},this.touchstart=Oe=>{Oe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,Oe.targetTouches)[0],this.startTouch(Oe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=Oe=>{Oe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,Oe.targetTouches)[0],this.moveTouch(Oe,this._lastPos))},this.touchend=Oe=>{Oe.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:Oe,clickTolerance:Ze,bearingDegreesPerPixelMoved:st=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Ze,move:(Yt,Kt)=>({bearingDelta:(Kt.x-Yt.x)*st}),moveStateManager:Tt,enable:Oe,assignEvents:Ls})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:Oe,clickTolerance:Ze,pitchDegreesPerPixelMoved:st=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Ze,move:(Yt,Kt)=>({pitchDelta:(Kt.y-Yt.y)*st}),moveStateManager:Tt,enable:Oe,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),Oe=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 Oe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Oe="rotateX(0deg)":this._pitchAlignment==="map"&&(Oe=`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) ${Oe} ${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 Oe=c.createNS("http://www.w3.org/2000/svg","g");Oe.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 st=[{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 qe of st){let et=c.createNS("http://www.w3.org/2000/svg","ellipse");et.setAttributeNS(null,"opacity","0.04"),et.setAttributeNS(null,"cx","10.5"),et.setAttributeNS(null,"cy","5.80029008"),et.setAttributeNS(null,"rx",qe.rx),et.setAttributeNS(null,"ry",qe.ry),Ze.appendChild(et)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Yt=c.createNS("http://www.w3.org/2000/svg","path");Yt.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"),Tt.appendChild(Yt);let Kt=c.createNS("http://www.w3.org/2000/svg","g");Kt.setAttributeNS(null,"opacity","0.25"),Kt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.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"),Kt.appendChild(xr);let Ir=c.createNS("http://www.w3.org/2000/svg","g");Ir.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ir.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 be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),Oe.appendChild(Ze),Oe.appendChild(Tt),Oe.appendChild(Kt),Oe.appendChild(Ir),Oe.appendChild(ve),B.appendChild(Oe),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),Oe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Oe)-le<.006)return void(this._element.style.opacity=this._opacity);let Ze=-this._offset.y/ee.transform._pixelPerMeter,st=Math.sin(ee.getPitch()*Math.PI/180)*Ze,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Yt=ee.transform.lngLatToCameraDepth(this._lngLat,Oe+st)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Yt&&this._popup.remove(),this._element.style.opacity=Yt?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]),Oe=ue.unproject([Q,ee]),Ze=le.distanceTo(Oe);if(B&&B.unit==="imperial"){let st=3.2808*Ze;st>5280?Ua(w,Q,st/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,st,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Ze/1852,ue._getUIString("ScaleControl.NauticalMiles")):Ze>=1e3?Ua(w,Q,Ze/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Ze,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let Oe=Math.pow(10,`${Math.floor(le)}`.length-1),Ze=le/Oe;return Ze=Ze>=10?10:Ze>=5?5:Ze>=3?3:Ze>=2?2:Ze>=1?1:function(st){let Tt=Math.pow(10,Math.ceil(-Math.log(st)/Math.LN10));return Math.round(st*Tt)/Tt}(Ze),Oe*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=Na,i.BoxZoomHandler=ku,i.CanvasSource=$t,i.CooperativeGesturesHandler=Qi,i.DoubleClickZoomHandler=ki,i.DragPanHandler=wn,i.DragRotateHandler=Nn,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=ot,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),Oe=ce.fromLngLat(B,Q);this._map.fitBounds(Oe,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=Wt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,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 Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,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 st=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,st),this.painter.resize(Q,ee,st)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Oe=!this._moving;return Oe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Oe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,Oe=w*ee;return Math.min(le>B?B/le:1,Oe>Q?Q/Oe: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 Oe=w.filter(st=>this.getLayer(st)),Ze=Oe.length!==0?this.queryRenderedFeatures(le.point,{layers:Oe}):[];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:Oe=>{let Ze=w.filter(st=>this.getLayer(st));(Ze.length!==0?this.queryRenderedFeatures(Oe.point,{layers:Ze}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,Oe.originalEvent)))},mouseout:Oe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,Oe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Ze=>this.getLayer(Ze)),Oe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];Oe.length&&(ee.features=Oe,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(Oe))){for(let Oe in le.delegates)this.off(Oe,le.delegates[Oe]);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 Oe=ee.delegates[le];ee.delegates[le]=(...Ze)=>{this._removeDelegatedListener(ue,Q,B),Oe(...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]),Oe=a.P.convert(ee[1]);B=[le,new a.P(Oe.x,le.y),Oe,new a.P(le.x,Oe.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:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt}=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:Yt,height:Kt,data:xr}=w,Ir=w;return this.style.addImage(ue,{data:new a.R({width:Yt,height:Kt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt,sdf:ee,version:0,userImage:Ir}),Ir.onAdd&&Ir.onAdd(this,ue),this}}{let{width:Yt,height:Kt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Yt,height:Kt},xr),pixelRatio:Q,stretchX:le,stretchY:Oe,content:Ze,textFitWidth:st,textFitHeight:Tt,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:Oe}=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(Oe,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(Oe=>{le[Oe]=c.create("div",`maplibregl-ctrl-${Oe} `,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 Oe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ze=Oe.crossFadingFactor();Ze===1&&Ze===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Ze),this.style.update(Oe)}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=lf,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,st=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-st?["bottom"]:[],Q.xthis._map.transform.width-Ze/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let Oe=Q.add(le[ee]);this.options.subpixelPositioning||(Oe=Oe.round()),c.setTransform(this._container,`${Ql[ee]} translate(${Oe.x}px,${Oe.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=Vt,i.RasterTileSource=pt,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=cf,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Yi,i.VectorTileSource=lt,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(Tr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[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 Qt().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Ce.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().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 Qt().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 yje=ye((Bbr,mje)=>{"use strict";var vw=Dr(),FXt=Zl().sanitizeHTML,zXt=IJ(),vje=Px();function pje(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=vje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sg=pje.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=v7(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,!!v7(e)){var r=OXt(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 gje(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=zXt(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 OXt(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=FXt(e.sourceattribution)),n}mje.exports=function(t,r,n){var i=new pje(t,r);return i.update(n),i}});var Mje=ye((Nbr,Sje)=>{"use strict";var qJ=dje(),BJ=Dr(),bje=hx(),_je=qa(),qXt=ho(),BXt=yv(),p7=vf(),wje=Cg(),NXt=wje.drawMode,UXt=wje.selectMode,VXt=Of().prepSelect,GXt=Of().clearOutline,HXt=Of().clearSelectionsCache,jXt=Of().selectOnClick,pw=Px(),WXt=yje();function Tje(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=Tje.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=Aje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new qJ.Map({container:i.div,style:o.style,center:NJ(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 qJ.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(bje.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=Aje(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(bje.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&&jXt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&p7.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=BJ.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),UXt(a)||NXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){VXt(l,u,c,t.dragOptions,a)},BXt.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 UJ=Dr(),ZXt=O_(),YXt=Zd(),Eje=eC();kje.exports=function(t,r,n){ZXt(t,r,n,{type:"map",attributes:Eje,handleDefaults:KXt,partition:"y"})};function KXt(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,YXt(e,t,{name:"layers",handleItemDefaults:JXt}),t._input=e}function JXt(e,t){function r(l,u){return UJ.coerce(e,t,Eje.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",UJ.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"),UJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var m7=ye(u0=>{"use strict";var g7=Dr(),Lje=g7.strTranslate,$Xt=g7.strScale,QXt=Id().getSubplotCalcData,eZt=Wp(),tZt=Oa(),Pje=So(),rZt=Zl(),iZt=Mje(),Ix="map";u0.name=Ix;u0.attr="subplot";u0.idRoot=Ix;u0.idRegex=u0.attrRegex=g7.counterRegex(Ix);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=eC();u0.supplyLayoutDefaults=Cje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ix],a=0;a_/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(rZt.convertToTspans,e),v=Pje.bBox(d.node())}d.attr("transform",Lje(-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>_&&(p=_/(v.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",Lje(k[0],k[1])+$Xt(p))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ix],n=0;n{"use strict";Ije.exports={attributes:l7(),supplyDefaults:jHe(),colorbar:$d(),formatLabels:PJ(),calc:_F(),plot:aje(),hoverPoints:d7().hoverPoints,eventData:uje(),selectPoints:fje(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:m7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Fje=ye((Hbr,Dje)=>{"use strict";Dje.exports=Rje()});var VJ=ye((jbr,zje)=>{"use strict";var x1=a5(),nZt=Tu(),{hovertemplateAttrs:aZt,templatefallbackAttrs:oZt}=Ll(),sZt=Gl(),Rx=Ao().extendFlat;zje.exports=Rx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Rx({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Rx({},x1.marker.line.color,{editType:"plot"}),width:Rx({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Rx({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Rx({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Rx({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:aZt({},{keys:["properties"]}),hovertemplatefallback:oZt(),showlegend:Rx({},sZt.showlegend,{dflt:!1})},nZt("",{cLetter:"z",editTypeOverride:"calc"}))});var qje=ye((Wbr,Oje)=>{"use strict";var nC=Dr(),lZt=td(),uZt=VJ();Oje.exports=function(t,r,n,i){function a(c,f){return nC.coerce(t,r,uZt,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"),lZt(t,r,i,a,{prefix:"",cLetter:"z"}),nC.coerceSelectionMarkerOpacity(r,a)}});var GJ=ye((Xbr,Uje)=>{"use strict";var cZt=Eo(),b1=Dr(),fZt=tc(),hZt=So(),dZt=cx().makeBlank,Bje=hx();function vZt(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:dZt()};if(!r)return a;var o=Bje.extractTraceFeature(e);if(!o)return a;var s=fZt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;b1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var E=k.mo;return cZt(E)?+b1.constrain(E,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 Gje=GJ().convert,pZt=GJ().convertOnSelect,Vje=Px().traceLayerPrefix;function Hje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Vje+t+"-fill"],["line",Vje+t+"-line"]],this.below=null}var D5=Hje.prototype;D5.update=function(e){this._update(Gje(e)),e[0].trace._glTrace=this};D5.updateOnSelect=function(e){this._update(pZt(e))};D5._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])};D5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};jje.exports=function(t,r){var n=r[0].trace,i=new Hje(t,n.uid),a=i.sourceId,o=Gje(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 Zje=ye((Ybr,Xje)=>{"use strict";Xje.exports={attributes:VJ(),supplyDefaults:qje(),colorbar:D_(),calc:NF(),plot:Wje(),hoverPoints:VF(),eventData:GF(),selectPoints:HF(),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";Yje.exports=Zje()});var jJ=ye((Jbr,$je)=>{"use strict";var gZt=Tu(),{hovertemplateAttrs:mZt,templatefallbackAttrs:yZt}=Ll(),Jje=Gl(),y7=l7(),HJ=Ao().extendFlat;$je.exports=HJ({lon:y7.lon,lat:y7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:y7.text,hovertext:y7.hovertext,hoverinfo:HJ({},Jje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:mZt(),hovertemplatefallback:yZt(),showlegend:HJ({},Jje.showlegend,{dflt:!1})},gZt("",{cLetter:"z",editTypeOverride:"calc"}))});var eWe=ye(($br,Qje)=>{"use strict";var _Zt=Dr(),xZt=td(),bZt=jJ();Qje.exports=function(t,r,n,i){function a(u,c){return _Zt.coerce(t,r,bZt,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 iWe=ye((Qbr,rWe)=>{"use strict";var WJ=Eo(),wZt=Dr().isArrayOrTypedArray,XJ=fs().BADNUM,TZt=gv(),tWe=Dr()._;rWe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=wZt(a)&&a.length,s=0;s{"use strict";var AZt=Eo(),ZJ=Dr(),nWe=ka(),aWe=tc(),oWe=fs().BADNUM,SZt=cx().makeBlank;sWe.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:SZt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=ZJ.isArrayOrTypedArray(l)&&l.length,f=ZJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=aWe.extractOpts(r),p=b.reversescale?aWe.flipScale(b.colorscale):b.colorscale,k=p[0][1],E=nWe.opacity(k)<1?k:nWe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var uWe=lWe(),MZt=Px().traceLayerPrefix;function cWe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",MZt+t+"-heatmap"]],this.below=null}var _7=cWe.prototype;_7.update=function(e){var t=this.subplot,r=this.layerList,n=uWe(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])};_7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};fWe.exports=function(t,r){var n=r[0].trace,i=new cWe(t,n.uid),a=i.sourceId,o=uWe(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 vWe=ye((r2r,dWe)=>{"use strict";var EZt=ho(),kZt=d7().hoverPoints,CZt=d7().getExtraText;dWe.exports=function(t,r,n){var i=kZt(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=EZt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=CZt(s,l,o[0].t.labels),[a]}}});var gWe=ye((i2r,pWe)=>{"use strict";pWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var yWe=ye((n2r,mWe)=>{"use strict";mWe.exports={attributes:jJ(),supplyDefaults:eWe(),colorbar:D_(),formatLabels:PJ(),calc:iWe(),plot:hWe(),hoverPoints:vWe(),eventData:gWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";_We.exports=yWe()});var KJ=ye((s2r,SWe)=>{"use strict";var LZt=ec(),PZt=Gl(),bWe=Ih(),YJ=v3(),IZt=Cc().attributes,{hovertemplateAttrs:wWe,templatefallbackAttrs:TWe}=Ll(),RZt=Tu(),DZt=vl().templatedArray,FZt=df().descriptionOnlyNumbers,AWe=Ao().extendFlat,zZt=mc().overrideAll,o2r=SWe.exports=zZt({hoverinfo:AWe({},PZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:YJ.hoverlabel,domain:IZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:FZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:LZt({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:bWe.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:YJ.hoverlabel,hovertemplate:wWe({},{keys:["value","label"]}),hovertemplatefallback:TWe(),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:bWe.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:YJ.hoverlabel,hovertemplate:wWe({},{keys:["value","label"]}),hovertemplatefallback:TWe(),colorscales:DZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:AWe(RZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var LWe=ye((l2r,CWe)=>{"use strict";var F5=Dr(),x7=KJ(),OZt=ka(),MWe=fd(),qZt=Cc().defaults,EWe=_M(),kWe=vl(),BZt=Zd();CWe.exports=function(t,r,n,i){function a(T,L){return F5.coerce(t,r,x7,T,L)}var o=F5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=kWe.newContainer(r,"node");function u(T,L){return F5.coerce(s,l,x7.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),EWe(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 OZt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=kWe.newContainer(r,"link");function v(T,L){return F5.coerce(h,d,x7.link,T,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),EWe(h,d,v,o),v("hovertemplate");var _=MWe(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function k(T){var L=MWe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(k):k(p)),v("customdata"),BZt(h,d,{name:"colorscales",handleItemDefaults:NZt}),qZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),F5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function NZt(e,t){function r(n,i){return F5.coerce(e,t,x7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var JJ=ye((u2r,PWe)=>{"use strict";PWe.exports=UZt;function UZt(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 E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var x=[],C=[],M=0,T=p.length-1;T>=0;--T){var g=p[T];if(i[g]=!1,x.push(g),C.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=T;break}}c.push(x);for(var P=new Array(M),T=0;T{"use strict";var VZt=JJ(),z5=Dr(),GZt=iy().wrap,aC=z5.isArrayOrTypedArray,IWe=z5.isIndex,RWe=tc();function HZt(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 _=v+1;e.node._count=_;var b,p=e.node.groups,k={};for(c=0;c0&&IWe(M,_)&&IWe(g,_)&&!(k.hasOwnProperty(M)&&k.hasOwnProperty(g)&&k[M]===k[g])){k.hasOwnProperty(g)&&(g=k[g]),k.hasOwnProperty(M)&&(M=k[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var A=null;P&&l.hasOwnProperty(P)&&(A=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:A,source:M,target:g,value:+C}),x.source.push(M),x.target.push(g)}}var z=_+p.length,O=aC(t.color),U=aC(t.customdata),G=[];for(c=0;c_-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:U?t.customdata[c]:t.customdata})}var j=!1;return jZt(z,x.source,x.target)&&(j=!0),{circular:j,links:n,nodes:G,groups:p,groupLookup:k}}function jZt(e,t,r){for(var n=z5.init2dArray(e,0),i=0;i1})}DWe.exports=function(t,r){var n=HZt(r);return GZt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var OWe=ye((b7,zWe)=>{(function(e,t){typeof b7=="object"&&typeof zWe!="undefined"?t(b7):(e=e||self,t(e.d3=e.d3||{}))})(b7,function(e){"use strict";function t(C){var M=+this._x.call(null,C),g=+this._y.call(null,C);return r(this.cover(M,g),M,g,C)}function r(C,M,g,P){if(isNaN(M)||isNaN(g))return C;var A,z=C._root,O={data:P},U=C._x0,G=C._y0,Z=C._x1,j=C._y1,N,H,re,oe,_e,Ce,Le,ge;if(!z)return C._root=O,C;for(;z.length;)if((_e=M>=(N=(U+Z)/2))?U=N:Z=N,(Ce=g>=(H=(G+j)/2))?G=H:j=H,A=z,!(z=z[Le=Ce<<1|_e]))return A[Le]=O,C;if(re=+C._x.call(null,z.data),oe=+C._y.call(null,z.data),M===re&&g===oe)return O.next=z,A?A[Le]=O:C._root=O,C;do A=A?A[Le]=new Array(4):C._root=new Array(4),(_e=M>=(N=(U+Z)/2))?U=N:Z=N,(Ce=g>=(H=(G+j)/2))?G=H:j=H;while((Le=Ce<<1|_e)===(ge=(oe>=H)<<1|re>=N));return A[ge]=z,A[Le]=O,C}function n(C){var M,g,P=C.length,A,z,O=new Array(P),U=new Array(P),G=1/0,Z=1/0,j=-1/0,N=-1/0;for(g=0;gj&&(j=A),zN&&(N=z));if(G>j||Z>N)return this;for(this.cover(G,Z).cover(j,N),g=0;gC||C>=A||P>M||M>=z;)switch(Z=(Mj||(U=oe.y0)>N||(G=oe.x1)=Le)<<1|C>=Ce)&&(oe=H[H.length-1],H[H.length-1]=H[H.length-1-_e],H[H.length-1-_e]=oe)}else{var ge=C-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=ge*ge+ie*ie;if(Se=(H=(O+G)/2))?O=H:G=H,(_e=N>=(re=(U+Z)/2))?U=re:Z=re,M=g,!(g=g[Ce=_e<<1|oe]))return this;if(!g.length)break;(M[Ce+1&3]||M[Ce+2&3]||M[Ce+3&3])&&(P=M,Le=Ce)}for(;g.data!==C;)if(A=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,A?(z?A.next=z:delete A.next,this):M?(z?M[Ce]=z:delete M[Ce],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[Le]=g:this._root=g),this):(this._root=z,this)}function c(C){for(var M=0,g=C.length;M{(function(e,t){t(typeof w7=="object"&&typeof qWe!="undefined"?w7:e.d3=e.d3||{})})(w7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var p=new r;if(_ instanceof r)_.each(function(x,C){p.set(C,x)});else if(Array.isArray(_)){var k=-1,E=_.length,T;if(b==null)for(;++k=_.length)return p!=null&&x.sort(p),k!=null?k(x):x;for(var P=-1,A=x.length,z=_[C++],O,U,G=n(),Z,j=M();++P_.length)return x;var M,g=b[C-1];return k!=null&&C>=_.length?M=x.entries():(M=[],x.each(function(P,A){M.push({key:A,values:L(P,C)})})),g!=null?M.sort(function(P,A){return g(P.key,A.key)}):M}return E={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 _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return p=x,E},rollup:function(x){return k=x,E}}}function a(){return{}}function o(_,b,p){_[b]=p}function s(){return n()}function l(_,b,p){_.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(_){return _+="",this[t+_]=_,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(_,b){var p=new u;if(_ instanceof u)_.each(function(T){p.add(T)});else if(_){var k=-1,E=_.length;if(b==null)for(;++k{(function(e,t){typeof A7=="object"&&typeof BWe!="undefined"?t(A7):(e=e||self,t(e.d3=e.d3||{}))})(A7,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 S7=="object"&&typeof UWe!="undefined"?t(S7):(e=e||self,t(e.d3=e.d3||{}))})(S7,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=_.prototype={constructor:v,restart:function(C,M,g){if(typeof C!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!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 _(C,M,g){var P=new v;return P.restart(C,M,g),P}function b(){h(),++t;for(var C=a,M;C;)(M=l-C._time)>=0&&C._call.call(null,M),C=C._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function k(){var C=c.now(),M=C-s;M>i&&(u-=M,s=C)}function E(){for(var C,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),C=M,M=M._next):(g=M._next,M._next=null,M=C?C._next=g:a=g);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var M=C-l;M>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,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(A){P.stop(),C(A+M)},M,g),P}function x(C,M,g){var P=new v,A=M;return M==null?(P.restart(C,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=A,P.restart(z,A+=M,g),C(O)},M,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var HWe=ye((M7,GWe)=>{(function(e,t){typeof M7=="object"&&typeof GWe!="undefined"?t(M7,OWe(),T7(),NWe(),VWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(M7,function(e,t,r,n,i){"use strict";function a(C,M){var g;C==null&&(C=0),M==null&&(M=0);function P(){var A,z=g.length,O,U=0,G=0;for(A=0;AN.index){var De=H-Be.x-Be.vx,ce=re-Be.y-Be.vy,je=De*De+ce*ce;jeH+me||Eere+me||AeG.r&&(G.r=G[Z].r)}function U(){if(M){var G,Z=M.length,j;for(g=new Array(Z),G=0;G1?(_e==null?U.remove(oe):U.set(oe,re(_e)),M):U.get(oe)},find:function(oe,_e,Ce){var Le=0,ge=C.length,ie,Se,Ee,Ae,Be;for(Ce==null?Ce=1/0:Ce*=Ce,Le=0;Le1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var C,M,g,P=o(-30),A,z=1,O=1/0,U=.81;function G(H){var re,oe=C.length,_e=t.quadtree(C,v,_).visitAfter(j);for(g=H,re=0;re=O)return;(H.data!==M||H.next)&&(Ce===0&&(Ce=s(),ie+=Ce*Ce),Le===0&&(Le=s(),ie+=Le*Le),ie{(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=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,_=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-_*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,T=c-d,L=v*v+_*_,x=E*E+T*T,C=Math.sqrt(L),M=Math.sqrt(k),g=f*Math.tan((t-Math.acos((L+k-x)/(2*C*M)))/2),P=g/M,A=g/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*T)+","+(this._x1=s+A*v)+","+(this._y1=l+A*_)}},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),_=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"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+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=_)+","+(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 $J=ye((k7,XWe)=>{(function(e,t){typeof k7=="object"&&typeof XWe!="undefined"?t(k7,WWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(k7,function(e,t){"use strict";function r(Mt){return function(){return Mt}}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(Mt){return Mt>1?0:Mt<-1?f:Math.acos(Mt)}function _(Mt){return Mt>=1?h:Mt<=-1?-h:Math.asin(Mt)}function b(Mt){return Mt.innerRadius}function p(Mt){return Mt.outerRadius}function k(Mt){return Mt.startAngle}function E(Mt){return Mt.endAngle}function T(Mt){return Mt&&Mt.padAngle}function L(Mt,kr,Jr,vi,hn,An,Mn,Li){var _n=Jr-Mt,ya=vi-kr,$n=Mn-hn,Ma=Li-An,_o=Ma*_n-$n*ya;if(!(_o*_oYl*Yl+Su*Su&&(As=Ks,cl=zs),{cx:As,cy:cl,x01:-$n,y01:-Ma,x11:As*(hn/zl-1),y11:cl*(hn/zl-1)}}function C(){var Mt=b,kr=p,Jr=r(0),vi=null,hn=k,An=E,Mn=T,Li=null;function _n(){var ya,$n,Ma=+Mt.apply(this,arguments),_o=+kr.apply(this,arguments),No=hn.apply(this,arguments)-h,po=An.apply(this,arguments)-h,Lo=n(po-No),ko=po>No;if(Li||(Li=ya=t.path()),_oc))Li.moveTo(0,0);else if(Lo>d-c)Li.moveTo(_o*a(No),_o*l(No)),Li.arc(0,0,_o,No,po,!ko),Ma>c&&(Li.moveTo(Ma*a(po),Ma*l(po)),Li.arc(0,0,Ma,po,No,ko));else{var Ds=No,Fs=po,ll=No,ul=po,zl=Lo,us=Lo,il=Mn.apply(this,arguments)/2,As=il>c&&(vi?+vi.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=_(As/Ma*l(il)),Su=_(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),Ol=_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,Ol,Rn,_a,_o,zs,ko),Li.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),zsc)||!(zl>c)?Li.lineTo(Rn,_a):Ks>c?(Io=x(Rn,_a,Vu,Ol,Ma,-Ks,ko),ls=x(nc,bs,xo,Kl,Ma,-Ks,ko),Li.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Ks=_o;--No)Li.point(Fs[No],ll[No]);Li.lineEnd(),Li.areaEnd()}ko&&(Fs[Ma]=+Mt(Lo,Ma,$n),ll[Ma]=+Jr(Lo,Ma,$n),Li.point(kr?+kr(Lo,Ma,$n):Fs[Ma],vi?+vi(Lo,Ma,$n):ll[Ma]))}if(Ds)return Li=null,Ds+""||null}function ya(){return z().defined(hn).curve(Mn).context(An)}return _n.x=function($n){return arguments.length?(Mt=typeof $n=="function"?$n:r(+$n),kr=null,_n):Mt},_n.x0=function($n){return arguments.length?(Mt=typeof $n=="function"?$n:r(+$n),_n):Mt},_n.x1=function($n){return arguments.length?(kr=$n==null?null:typeof $n=="function"?$n:r(+$n),_n):kr},_n.y=function($n){return arguments.length?(Jr=typeof $n=="function"?$n:r(+$n),vi=null,_n):Jr},_n.y0=function($n){return arguments.length?(Jr=typeof $n=="function"?$n:r(+$n),_n):Jr},_n.y1=function($n){return arguments.length?(vi=$n==null?null:typeof $n=="function"?$n:r(+$n),_n):vi},_n.lineX0=_n.lineY0=function(){return ya().x(Mt).y(Jr)},_n.lineY1=function(){return ya().x(Mt).y(vi)},_n.lineX1=function(){return ya().x(kr).y(Jr)},_n.defined=function($n){return arguments.length?(hn=typeof $n=="function"?$n:r(!!$n),_n):hn},_n.curve=function($n){return arguments.length?(Mn=$n,An!=null&&(Li=Mn(An)),_n):Mn},_n.context=function($n){return arguments.length?($n==null?An=Li=null:Li=Mn(An=$n),_n):An},_n}function U(Mt,kr){return krMt?1:kr>=Mt?0:NaN}function G(Mt){return Mt}function Z(){var Mt=G,kr=U,Jr=null,vi=r(0),hn=r(d),An=r(0);function Mn(Li){var _n,ya=Li.length,$n,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+vi.apply(this,arguments),ko=Math.min(d,Math.max(-d,hn.apply(this,arguments)-Lo)),Ds,Fs=Math.min(Math.abs(ko)/ya,An.apply(this,arguments)),ll=Fs*(ko<0?-1:1),ul;for(_n=0;_n0&&(_o+=ul);for(kr!=null?No.sort(function(zl,us){return kr(po[zl],po[us])}):Jr!=null&&No.sort(function(zl,us){return Jr(Li[zl],Li[us])}),_n=0,Ma=_o?(ko-ya*ll)/_o:0;_n0?ul*Ma:0)+ll,po[$n]={data:Li[$n],index:_n,value:ul,startAngle:Lo,endAngle:Ds,padAngle:Fs};return po}return Mn.value=function(Li){return arguments.length?(Mt=typeof Li=="function"?Li:r(+Li),Mn):Mt},Mn.sortValues=function(Li){return arguments.length?(kr=Li,Jr=null,Mn):kr},Mn.sort=function(Li){return arguments.length?(Jr=Li,kr=null,Mn):Jr},Mn.startAngle=function(Li){return arguments.length?(vi=typeof Li=="function"?Li:r(+Li),Mn):vi},Mn.endAngle=function(Li){return arguments.length?(hn=typeof Li=="function"?Li:r(+Li),Mn):hn},Mn.padAngle=function(Li){return arguments.length?(An=typeof Li=="function"?Li:r(+Li),Mn):An},Mn}var j=H(g);function N(Mt){this._curve=Mt}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Mt,kr){this._curve.point(kr*Math.sin(Mt),kr*-Math.cos(Mt))}};function H(Mt){function kr(Jr){return new N(Mt(Jr))}return kr._curve=Mt,kr}function re(Mt){var kr=Mt.curve;return Mt.angle=Mt.x,delete Mt.x,Mt.radius=Mt.y,delete Mt.y,Mt.curve=function(Jr){return arguments.length?kr(H(Jr)):kr()._curve},Mt}function oe(){return re(z().curve(j))}function _e(){var Mt=O().curve(j),kr=Mt.curve,Jr=Mt.lineX0,vi=Mt.lineX1,hn=Mt.lineY0,An=Mt.lineY1;return Mt.angle=Mt.x,delete Mt.x,Mt.startAngle=Mt.x0,delete Mt.x0,Mt.endAngle=Mt.x1,delete Mt.x1,Mt.radius=Mt.y,delete Mt.y,Mt.innerRadius=Mt.y0,delete Mt.y0,Mt.outerRadius=Mt.y1,delete Mt.y1,Mt.lineStartAngle=function(){return re(Jr())},delete Mt.lineX0,Mt.lineEndAngle=function(){return re(vi())},delete Mt.lineX1,Mt.lineInnerRadius=function(){return re(hn())},delete Mt.lineY0,Mt.lineOuterRadius=function(){return re(An())},delete Mt.lineY1,Mt.curve=function(Mn){return arguments.length?kr(H(Mn)):kr()._curve},Mt}function Ce(Mt,kr){return[(kr=+kr)*Math.cos(Mt-=Math.PI/2),kr*Math.sin(Mt)]}var Le=Array.prototype.slice;function ge(Mt){return Mt.source}function ie(Mt){return Mt.target}function Se(Mt){var kr=ge,Jr=ie,vi=P,hn=A,An=null;function Mn(){var Li,_n=Le.call(arguments),ya=kr.apply(this,_n),$n=Jr.apply(this,_n);if(An||(An=Li=t.path()),Mt(An,+vi.apply(this,(_n[0]=ya,_n)),+hn.apply(this,_n),+vi.apply(this,(_n[0]=$n,_n)),+hn.apply(this,_n)),Li)return An=null,Li+""||null}return Mn.source=function(Li){return arguments.length?(kr=Li,Mn):kr},Mn.target=function(Li){return arguments.length?(Jr=Li,Mn):Jr},Mn.x=function(Li){return arguments.length?(vi=typeof Li=="function"?Li:r(+Li),Mn):vi},Mn.y=function(Li){return arguments.length?(hn=typeof Li=="function"?Li:r(+Li),Mn):hn},Mn.context=function(Li){return arguments.length?(An=Li==null?null:Li,Mn):An},Mn}function Ee(Mt,kr,Jr,vi,hn){Mt.moveTo(kr,Jr),Mt.bezierCurveTo(kr=(kr+vi)/2,Jr,kr,hn,vi,hn)}function Ae(Mt,kr,Jr,vi,hn){Mt.moveTo(kr,Jr),Mt.bezierCurveTo(kr,Jr=(Jr+hn)/2,vi,Jr,vi,hn)}function Be(Mt,kr,Jr,vi,hn){var An=Ce(kr,Jr),Mn=Ce(kr,Jr=(Jr+hn)/2),Li=Ce(vi,Jr),_n=Ce(vi,hn);Mt.moveTo(An[0],An[1]),Mt.bezierCurveTo(Mn[0],Mn[1],Li[0],Li[1],_n[0],_n[1])}function Pe(){return Se(Ee)}function me(){return Se(Ae)}function De(){var Mt=Se(Be);return Mt.angle=Mt.x,delete Mt.x,Mt.radius=Mt.y,delete Mt.y,Mt}var ce={draw:function(Mt,kr){var Jr=Math.sqrt(kr/f);Mt.moveTo(Jr,0),Mt.arc(0,0,Jr,0,d)}},je={draw:function(Mt,kr){var Jr=Math.sqrt(kr/5)/2;Mt.moveTo(-3*Jr,-Jr),Mt.lineTo(-Jr,-Jr),Mt.lineTo(-Jr,-3*Jr),Mt.lineTo(Jr,-3*Jr),Mt.lineTo(Jr,-Jr),Mt.lineTo(3*Jr,-Jr),Mt.lineTo(3*Jr,Jr),Mt.lineTo(Jr,Jr),Mt.lineTo(Jr,3*Jr),Mt.lineTo(-Jr,3*Jr),Mt.lineTo(-Jr,Jr),Mt.lineTo(-3*Jr,Jr),Mt.closePath()}},lt=Math.sqrt(1/3),pt=lt*2,Vt={draw:function(Mt,kr){var Jr=Math.sqrt(kr/pt),vi=Jr*lt;Mt.moveTo(0,-Jr),Mt.lineTo(vi,0),Mt.lineTo(0,Jr),Mt.lineTo(-vi,0),Mt.closePath()}},ot=.8908130915292852,ut=Math.sin(f/10)/Math.sin(7*f/10),Wt=Math.sin(d/10)*ut,Nt=-Math.cos(d/10)*ut,$t={draw:function(Mt,kr){var Jr=Math.sqrt(kr*ot),vi=Wt*Jr,hn=Nt*Jr;Mt.moveTo(0,-Jr),Mt.lineTo(vi,hn);for(var An=1;An<5;++An){var Mn=d*An/5,Li=Math.cos(Mn),_n=Math.sin(Mn);Mt.lineTo(_n*Jr,-Li*Jr),Mt.lineTo(Li*vi-_n*hn,_n*vi+Li*hn)}Mt.closePath()}},sr={draw:function(Mt,kr){var Jr=Math.sqrt(kr),vi=-Jr/2;Mt.rect(vi,vi,Jr,Jr)}},Tr=Math.sqrt(3),fr={draw:function(Mt,kr){var Jr=-Math.sqrt(kr/(Tr*3));Mt.moveTo(0,Jr*2),Mt.lineTo(-Tr*Jr,-Jr),Mt.lineTo(Tr*Jr,-Jr),Mt.closePath()}},$e=-.5,St=Math.sqrt(3)/2,Qt=1/Math.sqrt(12),Gt=(Qt/2+1)*3,_t={draw:function(Mt,kr){var Jr=Math.sqrt(kr/Gt),vi=Jr/2,hn=Jr*Qt,An=vi,Mn=Jr*Qt+Jr,Li=-An,_n=Mn;Mt.moveTo(vi,hn),Mt.lineTo(An,Mn),Mt.lineTo(Li,_n),Mt.lineTo($e*vi-St*hn,St*vi+$e*hn),Mt.lineTo($e*An-St*Mn,St*An+$e*Mn),Mt.lineTo($e*Li-St*_n,St*Li+$e*_n),Mt.lineTo($e*vi+St*hn,$e*hn-St*vi),Mt.lineTo($e*An+St*Mn,$e*Mn-St*An),Mt.lineTo($e*Li+St*_n,$e*_n-St*Li),Mt.closePath()}},It=[ce,je,Vt,sr,$t,fr,_t];function mt(){var Mt=r(ce),kr=r(64),Jr=null;function vi(){var hn;if(Jr||(Jr=hn=t.path()),Mt.apply(this,arguments).draw(Jr,+kr.apply(this,arguments)),hn)return Jr=null,hn+""||null}return vi.type=function(hn){return arguments.length?(Mt=typeof hn=="function"?hn:r(hn),vi):Mt},vi.size=function(hn){return arguments.length?(kr=typeof hn=="function"?hn:r(+hn),vi):kr},vi.context=function(hn){return arguments.length?(Jr=hn==null?null:hn,vi):Jr},vi}function er(){}function lr(Mt,kr,Jr){Mt._context.bezierCurveTo((2*Mt._x0+Mt._x1)/3,(2*Mt._y0+Mt._y1)/3,(Mt._x0+2*Mt._x1)/3,(Mt._y0+2*Mt._y1)/3,(Mt._x0+4*Mt._x1+kr)/6,(Mt._y0+4*Mt._y1+Jr)/6)}function wr(Mt){this._context=Mt}wr.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:lr(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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);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:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function Lr(Mt){return new wr(Mt)}function ti(Mt){this._context=Mt}ti.prototype={areaStart:er,areaEnd:er,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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._x2=Mt,this._y2=kr;break;case 1:this._point=2,this._x3=Mt,this._y3=kr;break;case 2:this._point=3,this._x4=Mt,this._y4=kr,this._context.moveTo((this._x0+4*this._x1+Mt)/6,(this._y0+4*this._y1+kr)/6);break;default:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function Br(Mt){return new ti(Mt)}function Vr(Mt){this._context=Mt}Vr.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(Mt,kr){switch(Mt=+Mt,kr=+kr,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+Mt)/6,vi=(this._y0+4*this._y1+kr)/6;this._line?this._context.lineTo(Jr,vi):this._context.moveTo(Jr,vi);break;case 3:this._point=4;default:lr(this,Mt,kr);break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr}};function dt(Mt){return new Vr(Mt)}function Ge(Mt,kr){this._basis=new wr(Mt),this._beta=kr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Mt=this._x,kr=this._y,Jr=Mt.length-1;if(Jr>0)for(var vi=Mt[0],hn=kr[0],An=Mt[Jr]-vi,Mn=kr[Jr]-hn,Li=-1,_n;++Li<=Jr;)_n=Li/Jr,this._basis.point(this._beta*Mt[Li]+(1-this._beta)*(vi+_n*An),this._beta*kr[Li]+(1-this._beta)*(hn+_n*Mn));this._x=this._y=null,this._basis.lineEnd()},point:function(Mt,kr){this._x.push(+Mt),this._y.push(+kr)}};var Je=function Mt(kr){function Jr(vi){return kr===1?new wr(vi):new Ge(vi,kr)}return Jr.beta=function(vi){return Mt(+vi)},Jr}(.85);function We(Mt,kr,Jr){Mt._context.bezierCurveTo(Mt._x1+Mt._k*(Mt._x2-Mt._x0),Mt._y1+Mt._k*(Mt._y2-Mt._y0),Mt._x2+Mt._k*(Mt._x1-kr),Mt._y2+Mt._k*(Mt._y1-Jr),Mt._x2,Mt._y2)}function tt(Mt,kr){this._context=Mt,this._k=(1-kr)/6}tt.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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2,this._x1=Mt,this._y1=kr;break;case 2:this._point=3;default:We(this,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xt=function Mt(kr){function Jr(vi){return new tt(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function Ie(Mt,kr){this._context=Mt,this._k=(1-kr)/6}Ie.prototype={areaStart:er,areaEnd:er,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(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._x3=Mt,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=Mt,this._y4=kr);break;case 2:this._point=3,this._x5=Mt,this._y5=kr;break;default:We(this,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xe=function Mt(kr){function Jr(vi){return new Ie(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function ke(Mt,kr){this._context=Mt,this._k=(1-kr)/6}ke.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(Mt,kr){switch(Mt=+Mt,kr=+kr,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,Mt,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vt=function Mt(kr){function Jr(vi){return new ke(vi,kr)}return Jr.tension=function(vi){return Mt(+vi)},Jr}(0);function ir(Mt,kr,Jr){var vi=Mt._x1,hn=Mt._y1,An=Mt._x2,Mn=Mt._y2;if(Mt._l01_a>c){var Li=2*Mt._l01_2a+3*Mt._l01_a*Mt._l12_a+Mt._l12_2a,_n=3*Mt._l01_a*(Mt._l01_a+Mt._l12_a);vi=(vi*Li-Mt._x0*Mt._l12_2a+Mt._x2*Mt._l01_2a)/_n,hn=(hn*Li-Mt._y0*Mt._l12_2a+Mt._y2*Mt._l01_2a)/_n}if(Mt._l23_a>c){var ya=2*Mt._l23_2a+3*Mt._l23_a*Mt._l12_a+Mt._l12_2a,$n=3*Mt._l23_a*(Mt._l23_a+Mt._l12_a);An=(An*ya+Mt._x1*Mt._l23_2a-kr*Mt._l12_2a)/$n,Mn=(Mn*ya+Mt._y1*Mt._l23_2a-Jr*Mt._l12_2a)/$n}Mt._context.bezierCurveTo(vi,hn,An,Mn,Mt._x2,Mt._y2)}function ar(Mt,kr){this._context=Mt,this._alpha=kr}ar.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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;break;case 2:this._point=3;default:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vr=function Mt(kr){function Jr(vi){return kr?new ar(vi,kr):new tt(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function ii(Mt,kr){this._context=Mt,this._alpha=kr}ii.prototype={areaStart:er,areaEnd:er,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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Mt,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=Mt,this._y4=kr);break;case 2:this._point=3,this._x5=Mt,this._y5=kr;break;default:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var pi=function Mt(kr){function Jr(vi){return kr?new ii(vi,kr):new Ie(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function $r(Mt,kr){this._context=Mt,this._alpha=kr}$r.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(Mt,kr){if(Mt=+Mt,kr=+kr,this._point){var Jr=this._x2-Mt,vi=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+vi*vi,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:ir(this,Mt,kr);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=Mt,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var di=function Mt(kr){function Jr(vi){return kr?new $r(vi,kr):new ke(vi,0)}return Jr.alpha=function(vi){return Mt(+vi)},Jr}(.5);function ji(Mt){this._context=Mt}ji.prototype={areaStart:er,areaEnd:er,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Mt,kr){Mt=+Mt,kr=+kr,this._point?this._context.lineTo(Mt,kr):(this._point=1,this._context.moveTo(Mt,kr))}};function In(Mt){return new ji(Mt)}function wi(Mt){return Mt<0?-1:1}function On(Mt,kr,Jr){var vi=Mt._x1-Mt._x0,hn=kr-Mt._x1,An=(Mt._y1-Mt._y0)/(vi||hn<0&&-0),Mn=(Jr-Mt._y1)/(hn||vi<0&&-0),Li=(An*hn+Mn*vi)/(vi+hn);return(wi(An)+wi(Mn))*Math.min(Math.abs(An),Math.abs(Mn),.5*Math.abs(Li))||0}function qn(Mt,kr){var Jr=Mt._x1-Mt._x0;return Jr?(3*(Mt._y1-Mt._y0)/Jr-kr)/2:kr}function Fn(Mt,kr,Jr){var vi=Mt._x0,hn=Mt._y0,An=Mt._x1,Mn=Mt._y1,Li=(An-vi)/3;Mt._context.bezierCurveTo(vi+Li,hn+Li*kr,An-Li,Mn-Li*Jr,An,Mn)}function ra(Mt){this._context=Mt}ra.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:Fn(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(Mt,kr){var Jr=NaN;if(Mt=+Mt,kr=+kr,!(Mt===this._x1&&kr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;break;case 2:this._point=3,Fn(this,qn(this,Jr=On(this,Mt,kr)),Jr);break;default:Fn(this,this._t0,Jr=On(this,Mt,kr));break}this._x0=this._x1,this._x1=Mt,this._y0=this._y1,this._y1=kr,this._t0=Jr}}};function la(Mt){this._context=new Ut(Mt)}(la.prototype=Object.create(ra.prototype)).point=function(Mt,kr){ra.prototype.point.call(this,kr,Mt)};function Ut(Mt){this._context=Mt}Ut.prototype={moveTo:function(Mt,kr){this._context.moveTo(kr,Mt)},closePath:function(){this._context.closePath()},lineTo:function(Mt,kr){this._context.lineTo(kr,Mt)},bezierCurveTo:function(Mt,kr,Jr,vi,hn,An){this._context.bezierCurveTo(kr,Mt,vi,Jr,An,hn)}};function wt(Mt){return new ra(Mt)}function rr(Mt){return new la(Mt)}function nr(Mt){this._context=Mt}nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Mt=this._x,kr=this._y,Jr=Mt.length;if(Jr)if(this._line?this._context.lineTo(Mt[0],kr[0]):this._context.moveTo(Mt[0],kr[0]),Jr===2)this._context.lineTo(Mt[1],kr[1]);else for(var vi=Er(Mt),hn=Er(kr),An=0,Mn=1;Mn=0;--kr)hn[kr]=(Mn[kr]-hn[kr+1])/An[kr];for(An[Jr-1]=(Mt[Jr]+hn[Jr-1])/2,kr=0;kr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Mt,kr){switch(Mt=+Mt,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Mt,kr):this._context.moveTo(Mt,kr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,kr),this._context.lineTo(Mt,kr);else{var Jr=this._x*(1-this._t)+Mt*this._t;this._context.lineTo(Jr,this._y),this._context.lineTo(Jr,kr)}break}}this._x=Mt,this._y=kr}};function Qr(Mt){return new ri(Mt,.5)}function Oi(Mt){return new ri(Mt,0)}function $i(Mt){return new ri(Mt,1)}function tn(Mt,kr){if((Mn=Mt.length)>1)for(var Jr=1,vi,hn,An=Mt[kr[0]],Mn,Li=An.length;Jr=0;)Jr[kr]=kr;return Jr}function yn(Mt,kr){return Mt[kr]}function Sn(){var Mt=r([]),kr=fn,Jr=tn,vi=yn;function hn(An){var Mn=Mt.apply(this,arguments),Li,_n=An.length,ya=Mn.length,$n=new Array(ya),Ma;for(Li=0;Li0){for(var Jr,vi,hn=0,An=Mt[0].length,Mn;hn0)for(var Jr,vi=0,hn,An,Mn,Li,_n,ya=Mt[kr[0]].length;vi0?(hn[0]=Mn,hn[1]=Mn+=An):An<0?(hn[1]=Li,hn[0]=Li+=An):(hn[0]=0,hn[1]=An)}function ma(Mt,kr){if((hn=Mt.length)>0){for(var Jr=0,vi=Mt[kr[0]],hn,An=vi.length;Jr0)||!((An=(hn=Mt[kr[0]]).length)>0))){for(var Jr=0,vi=1,hn,An,Mn;viAn&&(An=hn,Jr=kr);return Jr}function da(Mt){var kr=Mt.map(Wn);return fn(Mt).sort(function(Jr,vi){return kr[Jr]-kr[vi]})}function Wn(Mt){for(var kr=0,Jr=-1,vi=Mt.length,hn;++Jr{(function(e,t){typeof C7=="object"&&typeof ZWe!="undefined"?t(C7,dk(),T7(),$J()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(C7,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 _(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 E(g){return g.links}function T(g,P){var A=g.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var g=0,P=0,A=1,z=1,O=24,U=8,G=p,Z=s,j=k,N=E,H=32,re=2/3;function oe(){var Se={nodes:j.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Ce(Se),Le(Se),ge(Se,H),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(U=+Se,oe):U},oe.nodes=function(Se){return arguments.length?(j=typeof Se=="function"?Se:u(Se),oe):j},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,A=+Se[0],z=+Se[1],oe):[A-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],A=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[A,z]]},oe.iterations=function(Se){return arguments.length?(H=+Se,oe):H};function _e(Se){Se.nodes.forEach(function(Ae,Be){Ae.index=Be,Ae.sourceLinks=[],Ae.targetLinks=[]});var Ee=r.map(Se.nodes,G);Se.links.forEach(function(Ae,Be){Ae.index=Be;var Pe=Ae.source,me=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=T(Ee,Pe)),typeof me!="object"&&(me=Ae.target=T(Ee,me)),Pe.sourceLinks.push(Ae),me.targetLinks.push(Ae)})}function Ce(Se){Se.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Le(Se){var Ee,Ae,Be;for(Ee=Se.nodes,Ae=[],Be=0;Ee.length;++Be,Ee=Ae,Ae=[])Ee.forEach(function(me){me.depth=Be,me.sourceLinks.forEach(function(De){Ae.indexOf(De.target)<0&&Ae.push(De.target)})});for(Ee=Se.nodes,Ae=[],Be=0;Ee.length;++Be,Ee=Ae,Ae=[])Ee.forEach(function(me){me.height=Be,me.targetLinks.forEach(function(De){Ae.indexOf(De.source)<0&&Ae.push(De.source)})});var Pe=(A-g-O)/(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))))*Pe)+O})}function ge(Se){var Ee=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(je){return je.values});Pe(),ce();for(var Ae=1,Be=H;Be>0;--Be)De(Ae*=.99),ce(),me(Ae),ce();function Pe(){var je=t.max(Ee,function(Vt){return Vt.length}),lt=re*(z-P)/(je-1);U>lt&&(U=lt);var pt=t.min(Ee,function(Vt){return(z-P-(Vt.length-1)*U)/t.sum(Vt,d)});Ee.forEach(function(Vt){Vt.forEach(function(ot,ut){ot.y1=(ot.y0=ut)+ot.value*pt})}),Se.links.forEach(function(Vt){Vt.width=Vt.value*pt})}function me(je){Ee.forEach(function(lt){lt.forEach(function(pt){if(pt.targetLinks.length){var Vt=(t.sum(pt.targetLinks,_)/t.sum(pt.targetLinks,d)-v(pt))*je;pt.y0+=Vt,pt.y1+=Vt}})})}function De(je){Ee.slice().reverse().forEach(function(lt){lt.forEach(function(pt){if(pt.sourceLinks.length){var Vt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*je;pt.y0+=Vt,pt.y1+=Vt}})})}function ce(){Ee.forEach(function(je){var lt,pt,Vt=P,ot=je.length,ut;for(je.sort(h),ut=0;ut0&&(lt.y0+=pt,lt.y1+=pt),Vt=lt.y1+U;if(pt=Vt-U-z,pt>0)for(Vt=lt.y0-=pt,lt.y1-=pt,ut=ot-2;ut>=0;--ut)lt=je[ut],pt=lt.y1+U-Vt,pt>0&&(lt.y0-=pt,lt.y1-=pt),Vt=lt.y0})}}function ie(Se){Se.nodes.forEach(function(Ee){Ee.sourceLinks.sort(f),Ee.targetLinks.sort(c)}),Se.nodes.forEach(function(Ee){var Ae=Ee.y0,Be=Ae;Ee.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Ee.targetLinks.forEach(function(Pe){Pe.y1=Be+Pe.width/2,Be+=Pe.width})})}return oe};function x(g){return[g.source.x1,g.y0]}function C(g){return[g.target.x0,g.y1]}var M=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=M,Object.defineProperty(e,"__esModule",{value:!0})})});var JWe=ye((f2r,KWe)=>{var WZt=JJ();KWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&u(T)})}function c(E){var T=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=WZt(T),x=L.components.filter(function(O){return O.length>1}),C=1/0,M,g=0;g{(function(e,t){typeof L7=="object"&&typeof $We!="undefined"?t(L7,dk(),T7(),$J(),JWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(L7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(ot){return ot.target.depth}function o(ot){return ot.depth}function s(ot,ut){return ut-1-ot.height}function l(ot,ut){return ot.sourceLinks.length?ot.depth:ut-1}function u(ot){return ot.targetLinks.length?ot.depth:ot.sourceLinks.length?t.min(ot.sourceLinks,a)-1:0}function c(ot){return function(){return ot}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot};function h(ot,ut){return v(ot.source,ut.source)||ot.index-ut.index}function d(ot,ut){return v(ot.target,ut.target)||ot.index-ut.index}function v(ot,ut){return ot.partOfCycle===ut.partOfCycle?ot.y0-ut.y0:ot.circularLinkType==="top"||ut.circularLinkType==="bottom"?-1:1}function _(ot){return ot.value}function b(ot){return(ot.y0+ot.y1)/2}function p(ot){return b(ot.source)}function k(ot){return b(ot.target)}function E(ot){return ot.index}function T(ot){return ot.nodes}function L(ot){return ot.links}function x(ot,ut){var Wt=ot.get(ut);if(!Wt)throw new Error("missing: "+ut);return Wt}function C(ot,ut){return ut(ot)}var M=25,g=10,P=.3;function A(){var ot=0,ut=0,Wt=1,Nt=1,$t=24,sr,Tr=E,fr=l,$e=T,St=L,Qt=32,Gt=2,_t,It=null;function mt(){var dt={nodes:$e.apply(null,arguments),links:St.apply(null,arguments)};er(dt),z(dt,Tr,It),lr(dt),ti(dt),O(dt,Tr),Br(dt,Qt,Tr),Vr(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,We=We>0?We+M+g:We,tt=tt>0?tt+M+g:tt,{top:Ge,bottom:Je,left:tt,right:We}}function Lr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),We=Wt-ot,tt=Nt-ut,xt=We+Ge.right+Ge.left,Ie=tt+Ge.top+Ge.bottom,xe=We/xt,ke=tt/Ie;return ot=ot*xe+Ge.left,Wt=Ge.right==0?Wt:Wt*xe,ut=ut*ke+Ge.top,Nt=Nt*ke,dt.nodes.forEach(function(vt){vt.x0=ot+vt.column*((Wt-ot-$t)/Je),vt.x1=vt.x0+$t}),ke}function ti(dt){var Ge,Je,We;for(Ge=dt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(tt){tt.depth=We,tt.sourceLinks.forEach(function(xt){Je.indexOf(xt.target)<0&&!xt.circular&&Je.push(xt.target)})});for(Ge=dt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(tt){tt.height=We,tt.targetLinks.forEach(function(xt){Je.indexOf(xt.source)<0&&!xt.circular&&Je.push(xt.source)})});dt.nodes.forEach(function(tt){tt.column=Math.floor(fr.call(null,tt,We))})}function Br(dt,Ge,Je){var We=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),ke();for(var tt=1,xt=Ge;xt>0;--xt)xe(tt*=.99,Je),ke();function Ie(vt){if(_t){var ir=1/0;We.forEach(function(pi){var $r=Nt*_t/(pi.length+1);ir=$r0))if(pi==0&&ii==1)di=$r.y1-$r.y0,$r.y0=Nt/2-di/2,$r.y1=Nt/2+di/2;else if(pi==ar-1&&ii==1)di=$r.y1-$r.y0,$r.y0=Nt/2-di/2,$r.y1=Nt/2+di/2;else{var ji=0,In=t.mean($r.sourceLinks,k),wi=t.mean($r.targetLinks,p);In&&wi?ji=(In+wi)/2:ji=In||wi;var On=(ji-b($r))*vt;$r.y0+=On,$r.y1+=On}})})}function ke(){We.forEach(function(vt){var ir,ar,vr=ut,ii=vt.length,pi;for(vt.sort(v),pi=0;pi0&&(ir.y0+=ar,ir.y1+=ar),vr=ir.y1+sr;if(ar=vr-sr-Nt,ar>0)for(vr=ir.y0-=ar,ir.y1-=ar,pi=ii-2;pi>=0;--pi)ir=vt[pi],ar=ir.y1+sr-vr,ar>0&&(ir.y0-=ar,ir.y1-=ar),vr=ir.y0})}}function Vr(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,We=Je,tt=Ge.y1,xt=tt;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=tt-Ie.width/2,tt=tt-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=xt-Ie.width/2,xt=xt-Ie.width):(Ie.y1=We+Ie.width/2,We+=Ie.width)})})}return mt}function z(ot,ut,Wt){var Nt=0;if(Wt===null){for(var $t=[],sr=0;srut.source.column)}function Z(ot,ut){var Wt=0;ot.sourceLinks.forEach(function($t){Wt=$t.circular&&!pt($t,ut)?Wt+1:Wt});var Nt=0;return ot.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,ut)?Nt+1:Nt}),Wt+Nt}function j(ot){var ut=ot.source.sourceLinks,Wt=0;ut.forEach(function(sr){Wt=sr.circular?Wt+1:Wt});var Nt=ot.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Wt>1||$t>1)}function N(ot,ut,Wt){return ot.sort(oe),ot.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Wt)&&j(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var Tr=0;for(Tr;Tr<$t;Tr++)if(G(ot[$t],ot[Tr])){var fr=ot[Tr].circularPathData.verticalBuffer+ot[Tr].width/2+ut;sr=fr>sr?fr:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),ot}function H(ot,ut,Wt,Nt){var $t=5,sr=t.min(ot.links,function($e){return $e.source.y0});ot.links.forEach(function($e){$e.circular&&($e.circularPathData={})});var Tr=ot.links.filter(function($e){return $e.circularLinkType=="top"});N(Tr,ut,Nt);var fr=ot.links.filter(function($e){return $e.circularLinkType=="bottom"});N(fr,ut,Nt),ot.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+g,$e.circularPathData.leftNodeBuffer=$t,$e.circularPathData.rightNodeBuffer=$t,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,pt($e,Nt)&&j($e))$e.circularPathData.leftSmallArcRadius=g+$e.width/2,$e.circularPathData.leftLargeArcRadius=g+$e.width/2,$e.circularPathData.rightSmallArcRadius=g+$e.width/2,$e.circularPathData.rightLargeArcRadius=g+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var St=$e.source.column,Qt=$e.circularLinkType,Gt=ot.links.filter(function(mt){return mt.source.column==St&&mt.circularLinkType==Qt});$e.circularLinkType=="bottom"?Gt.sort(Ce):Gt.sort(_e);var _t=0;Gt.forEach(function(mt,er){mt.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=g+$e.width/2+_t,$e.circularPathData.leftLargeArcRadius=g+$e.width/2+er*ut+_t),_t=_t+mt.width}),St=$e.target.column,Gt=ot.links.filter(function(mt){return mt.target.column==St&&mt.circularLinkType==Qt}),$e.circularLinkType=="bottom"?Gt.sort(ge):Gt.sort(Le),_t=0,Gt.forEach(function(mt,er){mt.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=g+$e.width/2+_t,$e.circularPathData.rightLargeArcRadius=g+$e.width/2+er*ut+_t),_t=_t+mt.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(Wt,$e.source.y1,$e.target.y1)+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=sr-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=re($e);else{var It=n.linkHorizontal().source(function(mt){var er=mt.source.x0+(mt.source.x1-mt.source.x0),lr=mt.y0;return[er,lr]}).target(function(mt){var er=mt.target.x0,lr=mt.y1;return[er,lr]});$e.path=It($e)}})}function re(ot){var ut="";return ot.circularLinkType=="top"?ut="M"+ot.circularPathData.sourceX+" "+ot.circularPathData.sourceY+" L"+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.sourceY+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftSmallArcRadius+" 0 0 0 "+ot.circularPathData.leftFullExtent+" "+(ot.circularPathData.sourceY-ot.circularPathData.leftSmallArcRadius)+" L"+ot.circularPathData.leftFullExtent+" "+ot.circularPathData.verticalLeftInnerExtent+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftLargeArcRadius+" 0 0 0 "+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.verticalFullExtent+" L"+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.verticalFullExtent+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightLargeArcRadius+" 0 0 0 "+ot.circularPathData.rightFullExtent+" "+ot.circularPathData.verticalRightInnerExtent+" L"+ot.circularPathData.rightFullExtent+" "+(ot.circularPathData.targetY-ot.circularPathData.rightSmallArcRadius)+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightSmallArcRadius+" 0 0 0 "+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.targetY+" L"+ot.circularPathData.targetX+" "+ot.circularPathData.targetY:ut="M"+ot.circularPathData.sourceX+" "+ot.circularPathData.sourceY+" L"+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.sourceY+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftSmallArcRadius+" 0 0 1 "+ot.circularPathData.leftFullExtent+" "+(ot.circularPathData.sourceY+ot.circularPathData.leftSmallArcRadius)+" L"+ot.circularPathData.leftFullExtent+" "+ot.circularPathData.verticalLeftInnerExtent+" A"+ot.circularPathData.leftLargeArcRadius+" "+ot.circularPathData.leftLargeArcRadius+" 0 0 1 "+ot.circularPathData.leftInnerExtent+" "+ot.circularPathData.verticalFullExtent+" L"+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.verticalFullExtent+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightLargeArcRadius+" 0 0 1 "+ot.circularPathData.rightFullExtent+" "+ot.circularPathData.verticalRightInnerExtent+" L"+ot.circularPathData.rightFullExtent+" "+(ot.circularPathData.targetY+ot.circularPathData.rightSmallArcRadius)+" A"+ot.circularPathData.rightLargeArcRadius+" "+ot.circularPathData.rightSmallArcRadius+" 0 0 1 "+ot.circularPathData.rightInnerExtent+" "+ot.circularPathData.targetY+" L"+ot.circularPathData.targetX+" "+ot.circularPathData.targetY,ut}function oe(ot,ut){return ie(ot)==ie(ut)?ot.circularLinkType=="bottom"?Ce(ot,ut):_e(ot,ut):ie(ut)-ie(ot)}function _e(ot,ut){return ot.y0-ut.y0}function Ce(ot,ut){return ut.y0-ot.y0}function Le(ot,ut){return ot.y1-ut.y1}function ge(ot,ut){return ut.y1-ot.y1}function ie(ot){return ot.target.column-ot.source.column}function Se(ot){return ot.target.x0-ot.source.x1}function Ee(ot,ut){var Wt=U(ot),Nt=Se(ut)/Math.tan(Wt),$t=lt(ot)=="up"?ot.y1+Nt:ot.y1-Nt;return $t}function Ae(ot,ut){var Wt=U(ot),Nt=Se(ut)/Math.tan(Wt),$t=lt(ot)=="up"?ot.y1-Nt:ot.y1+Nt;return $t}function Be(ot,ut,Wt,Nt){ot.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,Tr=$t.target.column-1,fr=1,$e=Tr-sr+1;for(fr=1;sr<=Tr;sr++,fr++)ot.nodes.forEach(function(St){if(St.column==sr){var Qt=fr/($e+1),Gt=Math.pow(1-Qt,3),_t=3*Qt*Math.pow(1-Qt,2),It=3*Math.pow(Qt,2)*(1-Qt),mt=Math.pow(Qt,3),er=Gt*$t.y0+_t*$t.y0+It*$t.y1+mt*$t.y1,lr=er-$t.width/2,wr=er+$t.width/2,Lr;lr>St.y0&&lrSt.y0&&wrSt.y1&&me(ti,Lr,ut,Wt)})):lrSt.y1&&(Lr=wr-St.y0+10,St=me(St,Lr,ut,Wt),ot.nodes.forEach(function(ti){C(ti,Nt)==C(St,Nt)||ti.column!=St.column||ti.y0St.y1&&me(ti,Lr,ut,Wt)}))}})}})}function Pe(ot,ut){return ot.y0>ut.y0&&ot.y0ut.y0&&ot.y1ut.y1}function me(ot,ut,Wt,Nt){return ot.y0+ut>=Wt&&ot.y1+ut<=Nt&&(ot.y0=ot.y0+ut,ot.y1=ot.y1+ut,ot.targetLinks.forEach(function($t){$t.y1=$t.y1+ut}),ot.sourceLinks.forEach(function($t){$t.y0=$t.y0+ut})),ot}function De(ot,ut,Wt,Nt){ot.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>ut&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-ut));var sr=ot.links.filter(function($e){return C($e.source,Wt)==C($t,Wt)}),Tr=sr.length;Tr>1&&sr.sort(function($e,St){if(!$e.circular&&!St.circular){if($e.target.column==St.target.column)return $e.y1-St.y1;if(je($e,St)){if($e.target.column>St.target.column){var Qt=Ae(St,$e);return $e.y1-Qt}if(St.target.column>$e.target.column){var Gt=Ae($e,St);return Gt-St.y1}}else return $e.y1-St.y1}if($e.circular&&!St.circular)return $e.circularLinkType=="top"?-1:1;if(St.circular&&!$e.circular)return St.circularLinkType=="top"?1:-1;if($e.circular&&St.circular)return $e.circularLinkType===St.circularLinkType&&$e.circularLinkType=="top"?$e.target.column===St.target.column?$e.target.y1-St.target.y1:St.target.column-$e.target.column:$e.circularLinkType===St.circularLinkType&&$e.circularLinkType=="bottom"?$e.target.column===St.target.column?St.target.y1-$e.target.y1:$e.target.column-St.target.column:$e.circularLinkType=="top"?-1:1});var fr=$t.y0;sr.forEach(function($e){$e.y0=fr+$e.width/2,fr=fr+$e.width}),sr.forEach(function($e,St){if($e.circularLinkType=="bottom"){var Qt=St+1,Gt=0;for(Qt;Qt1&&$t.sort(function(fr,$e){if(!fr.circular&&!$e.circular){if(fr.source.column==$e.source.column)return fr.y0-$e.y0;if(je(fr,$e)){if($e.source.column0?"up":"down"}function pt(ot,ut){return C(ot.source,ut)==C(ot.target,ut)}function Vt(ot,ut,Wt){var Nt=ot.nodes,$t=ot.links,sr=!1,Tr=!1;if($t.forEach(function(_t){_t.circularLinkType=="top"?sr=!0:_t.circularLinkType=="bottom"&&(Tr=!0)}),sr==!1||Tr==!1){var fr=t.min(Nt,function(_t){return _t.y0}),$e=t.max(Nt,function(_t){return _t.y1}),St=$e-fr,Qt=Wt-ut,Gt=Qt/St;Nt.forEach(function(_t){var It=(_t.y1-_t.y0)*Gt;_t.y0=(_t.y0-fr)*Gt,_t.y1=_t.y0+It}),$t.forEach(function(_t){_t.y0=(_t.y0-fr)*Gt,_t.y1=(_t.y1-fr)*Gt,_t.width=_t.width*Gt})}}e.sankeyCircular=A,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=ye((h2r,eXe)=>{"use strict";eXe.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 dXe=ye((d2r,hXe)=>{"use strict";var tXe=HWe(),XZt=(H2(),pb(G2)).interpolateNumber,O5=Oa(),oC=YWe(),ZZt=QWe(),Nu=QJ(),q5=fd(),gw=ka(),YZt=So(),w1=Dr(),r$=w1.strTranslate,KZt=w1.strRotate,i$=iy(),sC=i$.keyFun,P7=i$.repeat,sXe=i$.unwrap,rXe=Zl(),JZt=qa(),lXe=Dh(),$Zt=lXe.CAP_SHIFT,QZt=lXe.LINE_SPACING,eYt=3;function tYt(e,t,r){var n=sXe(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,_;v?_=ZZt.sankeyCircular().circularLinkGap(0):_=oC.sankey(),_.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=_();_.nodePadding()=N||(j=N-Z.y0,j>1e-6&&(Z.y0+=j,Z.y1+=j)),N=Z.y1+s})}function P(U){var G=U.map(function(_e,Ce){return{x0:_e.x0,index:Ce}}).sort(function(_e,Ce){return _e.x0-Ce.x0}),Z=[],j=-1,N,H=-1/0,re;for(p=0;pH+l&&(j+=1,N=oe.x0),H=oe.x0,Z[j]||(Z[j]=[]),Z[j].push(oe),re=N-oe.x0,oe.x0+=re,oe.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 n$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return iYt(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=XZt(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,_="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+_+p+b+"Z"}return t}function nYt(e,t){var r=q5(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: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 t$(e){e.attr("transform",function(t){return r$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function aYt(e){e.call(t$)}function uXe(e,t){e.call(aYt),t.attr("d",n$())}function iXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function e$(e){return e.link.width>1||e.linkLineWidth>0}function nXe(e){var t=r$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function aXe(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 oYt(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,oXe(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):sYt(e,o,a,n),lYt(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),oXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),uXe(e.filter(fXe(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,cXe(r,i)}})}function uYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function cXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=Oa(),o$=Dr(),I7=o$.numberFormat,dYt=dXe(),B5=vf(),vYt=ka(),Dx=QJ().cn,lC=o$._;function vXe(e){return e!==""}function N5(e,t){return e.filter(function(r){return r.key===t.traceId})}function pXe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function gXe(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 yXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function _Xe(e,t,r){t&&r&&N5(r,t).selectAll("."+Dx.sankeyLink).filter(mXe(t)).call(xXe.bind(0,t,r,!1))}function a$(e,t,r){t&&r&&N5(r,t).selectAll("."+Dx.sankeyLink).filter(mXe(t)).call(bXe.bind(0,t,r,!1))}function xXe(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!==""&&N5(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&&N5(t,e).selectAll("."+Dx.sankeyNode).filter(yXe(e)).call(_Xe)}function bXe(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!==""&&N5(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&&N5(t,e).selectAll(Dx.sankeyNode).filter(yXe(e)).call(a$)}function kf(e,t){var r=e.hoverlabel||{},n=o$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}wXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:kf(C,"bgcolor")||vYt.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:U,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});pXe(j,.85),gXe(j)}}},T=function(L,x,C){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(a$,x,C),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[x.node]})),B5.loneUnhover(n._hoverlayer.node()))};dYt(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:_,unhover:b,select:l},nodeEvents:{hover:k,follow:E,unhover:T,select:p}})}});var TXe=ye(mw=>{"use strict";var pYt=mc().overrideAll,gYt=Id().getModuleCalcData,mYt=s$(),yYt=W1(),_Yt=Eg(),xYt=yv(),bYt=Of().prepSelect,l$=Dr(),wYt=qa(),R7="sankey";mw.name=R7;mw.baseLayoutAttrOverrides=pYt({hoverlabel:yYt.hoverlabel},"plot","nested");mw.plot=function(e){var t=gYt(e.calcdata,R7)[0];mYt(e,t),mw.updateFx(e)};mw.clean=function(e,t,r,n){var i=n._has&&n._has(R7),a=t._has&&t._has(R7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};mw.updateFx=function(e){for(var t=0;t{"use strict";AXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";MXe.exports={attributes:KJ(),supplyDefaults:LWe(),calc:FWe(),plot:s$(),moduleType:"trace",name:"sankey",basePlotModule:TXe(),selectPoints:SXe(),categories:["noOpacity"],meta:{}}});var CXe=ye((y2r,kXe)=>{"use strict";kXe.exports=EXe()});var PXe=ye(U5=>{"use strict";var LXe=Mc();U5.name="indicator";U5.plot=function(e,t,r,n){LXe.plotBasePlot(U5.name,e,t,r,n)};U5.clean=function(e,t,r,n){LXe.cleanBasePlot(U5.name,e,t,r,n)}});var c$=ye((x2r,OXe)=>{"use strict";var Fx=Ao().extendFlat,RXe=Ao().extendDeep,AYt=mc().overrideAll,DXe=ec(),FXe=Ih(),SYt=Cc().attributes,Nf=Rd(),MYt=vl().templatedArray,D7=JT(),IXe=df().descriptionOnlyNumbers,u$=DXe({editType:"plot",colorEditType:"plot"}),uC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:FXe.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"},zXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},EYt=MYt("step",RXe({},uC,{range:zXe}));OXe.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:SYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Fx({},u$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:IXe("value")},font:Fx({},u$,{}),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:IXe("value")},increasing:{symbol:{valType:"string",dflt:D7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:D7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:D7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:D7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Fx({},u$,{}),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:RXe({},uC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:FXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:AYt({range:zXe,visible:Fx({},Nf.visible,{dflt:!0}),tickmode:Nf.minor.tickmode,nticks:Nf.nticks,tick0:Nf.tick0,dtick:Nf.dtick,tickvals:Nf.tickvals,ticktext:Nf.ticktext,ticks:Fx({},Nf.ticks,{dflt:"outside"}),ticklen:Nf.ticklen,tickwidth:Nf.tickwidth,tickcolor:Nf.tickcolor,ticklabelstep:Nf.ticklabelstep,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,tickfont:DXe({}),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:EYt,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 f$=ye((b2r,qXe)=>{"use strict";qXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var UXe=ye((w2r,NXe)=>{"use strict";var sy=Dr(),z7=c$(),kYt=Cc().defaults,BXe=vl(),CYt=Zd(),F7=f$(),LYt=Lb(),PYt=F3(),IYt=s_(),RYt=l_();function DYt(e,t,r,n){function i(x,C){return sy.coerce(e,t,z7,x,C)}kYt(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=sy.extendFlat({},n.font);l.size=void 0,sy.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=F7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=sy.extendFlat({},n.font);c.size=void 0,sy.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||F7.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=sy.extendFlat({},n.font);f.size=.25*(s||u||F7.defaultNumberFontSize),sy.coerceFont(i,"title.font",f),i("title.text");var h,d,v,_;function b(x,C){return sy.coerce(h,d,z7.gauge,x,C)}function p(x,C){return sy.coerce(v,_,z7.gauge.axis,x,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=BXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||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 T=F7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),CYt(h,d,{name:"steps",handleItemDefaults:FYt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),_=BXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};LYt(v,_,p,"linear"),RYt(v,_,p,"linear",L),IYt(v,_,p,"linear",L),PYt(v,_,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function FYt(e,t){function r(n,i){return sy.coerce(e,t,z7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}NXe.exports={supplyDefaults:DYt}});var GXe=ye((T2r,VXe)=>{"use strict";function zYt(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}VXe.exports={calc:zYt}});var YXe=ye((A2r,ZXe)=>{"use strict";var ww=Oa(),OYt=(H2(),pb(G2)).interpolate,HXe=(H2(),pb(G2)).interpolateNumber,zx=Dr(),qYt=zx.strScale,fC=zx.strTranslate,BYt=zx.rad2deg,NYt=Dh().MID_SHIFT,bw=So(),yw=f$(),q7=Zl(),sv=ho(),UYt=h4(),VYt=dI(),GYt=Rd(),V5=ka(),h$={left:"start",center:"middle",right:"end"},_w={left:0,center:.5,right:1},jXe=/[yzafpnµmkMGTPEZY]/;function hC(e){return e&&e.duration>0}ZXe.exports=function(t,r,n,i){var a=t._fullLayout,o;hC(n)&&i&&(o=i()),zx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=ww.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,_={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=_.l+_.w/2,p=_.t+_.h/2,k=Math.min(_.w/2,_.h),E=yw.innerRadius*k,T,L,x,C=u.align||"center";if(L=p,!f)T=_.l+_w[C]*_.w,x=function(j){return WXe(j,_.w,_.h)};else if(h&&(T=b,L=p+k/2,x=function(j){return ZYt(j,.9*E)}),d){var M=yw.bulletPadding,g=1-yw.bulletNumberDomainSize+M;T=_.l+(g+(1-g)*_w[C])*_.w,x=function(j){return WXe(j,(yw.bulletNumberDomainSize-M)*_.w,_.h)}}WYt(t,c,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,A;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},A={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 O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&jYt(t,c,s,{radius:k,innerRadius:E,gauge:z,layer:O,size:_,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=c.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&HYt(t,c,s,{gauge:U,layer:G,size:_,gaugeBg:P,gaugeOutline:A,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?h$.right:h$[u.title.align]}).text(u.title.text).call(bw.font,u.title.font).call(q7.convertToTspans,t),Z.attr("transform",function(){var j=_.l+_.w*_w[u.title.align],N,H=yw.titlePadding,re=bw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=bw.bBox(O.node());N=oe.top-H-re.bottom}else N=_.t+_.h/2-k/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,j=_.l-yw.bulletPadding*_.w)}else N=u._numbersTop-H-re.bottom;return fC(j,N)})})};function HYt(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,_,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,E=i.gauge.bar.thickness*k,T=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-yw.bulletNumberDomainSize:1);d=cC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),v=sv.calcTicks(d),_=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:_}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:_,labelFns:sv.makeLabelFns(d,p)}));function x(O){O.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)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(C);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(xw),M.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",E).attr("y",(k-E)/2).call(xw),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}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.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(V5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.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(xw),z.exit().remove()}function jYt(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,_=Math.PI/2;function b(_e){var Ce=i.gauge.axis.range[0],Le=i.gauge.axis.range[1],ge=(_e-Ce)/(Le-Ce)*Math.PI-_;return ge<-_?-_:ge>_?_:ge}function p(_e){return ww.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-_)}function k(_e){_e.attr("d",function(Ce){return p(Ce.thickness).startAngle(b(Ce.range[0])).endAngle(b(Ce.range[1]))()})}var E,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(),E=cC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Ce=C(_e);return Math.cos(Ce)*P},M.yFn=function(_e){var Ce=C(_e),Le=Math.sin(Ce)>0?.2:1;return-Math.sin(Ce)*(P+_e.fontSize*Le)+Math.abs(Math.cos(Ce))*(_e.fontSize*NYt)},M.anchorFn=function(_e){var Ce=C(_e),Le=Math.cos(Ce);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},M.heightFn=function(_e,Ce,Le){var ge=C(_e);return-.5*(1+Math.sin(ge))*Le};var A=function(_e){return fC(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return A(C(_e))};var z=function(_e){var Ce=C(_e);return A(Ce)+"rotate("+-BYt(Ce)+")"};if(T=sv.calcTicks(E),x=sv.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:T,layer:h,path:"M"+x*O+",0h"+x*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:M})}var U=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(xw),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",XYt(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(xw),j.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=f.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(xw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(k).call(xw),oe.exit().remove()}function WYt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=h$[s],u=n.transitionOpts,c=n.onComplete,f=zx.ensureSingle(t,"g","numbers"),h,d,v,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=f.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(A,z,O,U){if(A.match("s")&&O>=0!=U>=0&&!z(O).slice(-1).match(jXe)&&!z(U).slice(-1).match(jXe)){var G=A.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?sv.tickText(Z,j).text:z(j)}}else return z}function k(){var A=cC(e,{tickformat:i.number.valueformat},i._range);A.setScale(),sv.prepTicks(A);var z=function(j){return sv.tickText(A,j).text},O=i.number.suffix,U=i.number.prefix,G=f.select("text.number");function Z(){var j=typeof r[0].y=="number"?U+z(r[0].y)+O:"-";G.text(j).call(bw.font,i.number.font).call(q7.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=ww.select(this),N=HXe(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(U+H(N(re))+O)}}):Z(),h=XXe(U+z(r[0].y)+O,i.number.font,l,e),G}function E(){var A=cC(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),sv.prepTicks(A);var z=function(re){return sv.tickText(A,re).text},O=i.delta.suffix,U=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+oe(re)+O},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(bw.font,i.delta.font).call(V5.fill,j({delta:i._deltaLastValue}));function H(){N.text(Z(G(r[0]),z)).call(V5.fill,j(r[0])).call(q7.convertToTspans,e)}return hC(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=ww.select(this),oe=G(r[0]),_e=i._deltaLastValue,Ce=p(i.delta.valueformat,z,_e,oe),Le=HXe(_e,oe);return i._deltaLastValue=oe,function(ge){re.text(Z(Le(ge),Ce)),re.call(V5.fill,j({delta:Le(ge)}))}}).each("end",function(){H(),c&&c()}).each("interrupt",function(){H(),c&&c()}):H(),d=XXe(Z(G(r[0]),z),i.delta.font,l,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),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],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=O7(i,"deltaPos",0,-1*(h.width*_w[i.align]+d.width*(1-_w[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+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=O7(i,"deltaPos",0,h.width*(1-_w[i.align])+d.width*_w[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+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=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"&&(M=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:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var A=n.numbersScaler(v);T+=A[2];var z=O7(i,"numbersScale",1,A[0],T,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var U=v[s];s==="center"&&(U=(v.left+v.right)/2);var G=a-z*U;return G=O7(i,"numbersTranslate",0,G,T,Math.max),fC(G,O)+qYt(z)})}function xw(e){e.each(function(t){V5.stroke(ww.select(this),t.line.color)}).each(function(t){V5.fill(ww.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function XYt(e,t,r){return function(){var n=OYt(t,r);return function(i){return e.endAngle(n(i))()}}}function cC(e,t,r){var n=e._fullLayout,i=zx.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 zx.coerce(i,a,GYt,l,u)}return UYt(i,a,s,o,n),VYt(i,a,s,o),a}function WXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function ZYt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function XXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=ww.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(q7.convertToTspans,n).call(bw.font,t),bw.bBox(a.node())}function O7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=zx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var JXe=ye((S2r,KXe)=>{"use strict";KXe.exports={moduleType:"trace",name:"indicator",basePlotModule:PXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:c$(),supplyDefaults:UXe().supplyDefaults,calc:GXe().calc,plot:YXe(),meta:{}}});var QXe=ye((M2r,$Xe)=>{"use strict";$Xe.exports=JXe()});var d$=ye((k2r,iZe)=>{"use strict";var eZe=Jb(),B7=Ao().extendFlat,YYt=mc().overrideAll,tZe=ec(),KYt=Cc().attributes,rZe=df().descriptionOnlyNumbers,E2r=iZe.exports=YYt({domain:KYt({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:rZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:B7({},eZe.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:B7({},tZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:rZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:B7({},eZe.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:B7({},tZe({arrayOk:!0}))}},"calc","from-root")});var aZe=ye((C2r,nZe)=>{"use strict";var v$=Dr(),JYt=d$(),$Yt=Cc().defaults;function QYt(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=iy().wrap;oZe.exports=function(){return eKt({})}});var p$=ye((P2r,lZe)=>{"use strict";lZe.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((I2r,gZe)=>{"use strict";var uZe=p$(),m$=Ao().extendFlat,tKt=Eo(),rKt=vv().isTypedArray,N7=vv().isArrayOrTypedArray;gZe.exports=function(t,r){var n=g$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=g$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=g$(a));var o=a.concat(i(n).map(function(){return pZe((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}):[uZe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(cZe,0),d=u-h,v=d+uZe.uplift,_=dZe(f,v),b=dZe(c,h),p=hZe(b,[]),k=hZe(_,p),E={},T=r._fullInput.columnorder;N7(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var A=N7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return tKt(A)?Number(A):1}),x=L.reduce(cZe,0);L=L.map(function(g){return g/x*l});var C=Math.max(y$(r.header.line.width),y$(r.cells.line.width)),M={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:m$({},r.cells,{values:n}),headerCells:m$({},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 A=E[g];E[g]=(A||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:T[P],xScale:fZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=fZe(g)}),M};function y$(e){if(N7(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=vZe(),i+=a,s=u+1,a=0);return r}function vZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var yZe=ye(_$=>{"use strict";var U7=Ao().extendFlat;_$.splitToPanels=function(e){var t=[0,0],r=U7({},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:U7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=U7({},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=U7({},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]};_$.splitToCells=function(e){var t=iKt(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 iKt(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 C$=ye((D2r,CZe)=>{"use strict";var Ya=p$(),tf=Oa(),x$=Dr(),nKt=x$.numberFormat,Uu=iy(),b$=So(),aKt=Zl(),oKt=Dr().raiseToTop,lg=Dr().strTranslate,sKt=Dr().cancelTransition,lKt=mZe(),SZe=yZe(),_Ze=ka();CZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(k){var E=Uu.unwrap(k),T=E.trace;return lKt(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(E){return k===E}).call(dC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+tf.event.deltaY,T=G7(t,a,null,E)(k);T||(tf.event.stopPropagation(),tf.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){b$.setClipUrl(tf.select(this),xZe(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(tf.behavior.drag().origin(function(k){var E=tf.select(this);return TZe(E,k,-Ya.uplift),oKt(this),k.calcdata.columnDragInProgress=!0,dC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=tf.select(this),T=function(C){return(k===C?tf.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-Ya.overdrag,Math.min(k.calcdata.width+Ya.overdrag-k.columnWidth,tf.event.x));var L=MZe(u).filter(function(C){return C.calcdata.key===k.calcdata.key}),x=L.sort(function(C,M){return T(C)-T(M)});x.forEach(function(C,M){C.xIndex=M,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)}),E.call(sKt).attr("transform",lg(k.x,-Ya.uplift))}).on("dragend",function(k){var E=tf.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,TZe(E,k,0),yKt(t,T,T.columns.map(function(L){return L.xIndex}))})),u.each(function(k){b$.setClipUrl(tf.select(this),bZe(t,k),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(SZe.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(_Kt),h=c.filter(M$);n&&h.call(tf.behavior.drag().origin(function(k){return tf.event.stopPropagation(),k}).on("drag",G7(t,a,-1)).on("dragend",function(){})),w$(t,a,f,c),w$(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 xZe(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 _=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);_.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 bZe(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*V7(k)}).attr("height",function(k){return k.calcdata.height+2*V7(k)+Ya.uplift}).attr("x",function(k){return-V7(k)}).attr("y",function(k){return-V7(k)}),E$(null,h,a)};function V7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function xZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function bZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function MZe(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 A$(c,c.length-1)+(c.length?H7(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-T$(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,T$(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=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||G7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",G7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function w$(e,t,r,n){var i=uKt(r),a=cKt(i);vKt(a);var o=fKt(a);gKt(o);var s=dKt(a),l=hKt(s);pKt(l),EZe(l,t,n,e),k$(a)}function uKt(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 cKt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(SZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function fKt(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 hKt(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(){tf.event.stopPropagation()}),t}function dKt(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 vKt(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 pKt(e){e.each(function(t){b$.font(tf.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=tf.select(this);_Ze.stroke(r,Yv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),_Ze.fill(r,Yv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function EZe(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=mKt(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,_=h+(v?nKt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=wZe(_)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?wZe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var k=Ya.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=l}return n}function E$(e,t,r){var n=MZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=A$(i,i.length),s=n.calcdata.groupHeight-T$(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=A$(c.rowBlocks,c.page)-c.scrollY;return lg(0,f)}),e&&(AZe(e,r,t,u,n.prevPages,n,0),AZe(e,r,t,u,n.prevPages,n,1),dC(r,e))}}function G7(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*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(M$);return E$(e,c,s),o.scrollY===u}}function AZe(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]});w$(e,t,l,r),i[o]=n[o]}))}function bKt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,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(),EZe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(k$)}}function wKt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=S$(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(k$),E$(null,e.filter(M$),0),dC(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,_=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),k=b.top-_.top+(p?p.matrix.f:Ya.cellPad);return lg(kZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function kZe(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 k$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+H7(s,1/0)},0),n=S$(t),i=H7(n,t.key),a=i+r;return lg(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return AKt(S$(t),t.key).rowHeight})}function A$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=TKt(e[n]);return r}function H7(e,t){for(var r=0,n=0;n{"use strict";var SKt=Id().getModuleCalcData,MKt=C$(),j7="table";W7.name=j7;W7.plot=function(e){var t=SKt(e.calcdata,j7)[0];t.length&&MKt(e,t)};W7.clean=function(e,t,r,n){var i=n._has&&n._has(j7),a=t._has&&t._has(j7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var IZe=ye((z2r,PZe)=>{"use strict";PZe.exports={attributes:d$(),supplyDefaults:aZe(),calc:sZe(),plot:C$(),moduleType:"trace",name:"table",basePlotModule:LZe(),categories:["noOpacity"],meta:{}}});var DZe=ye((O2r,RZe)=>{"use strict";RZe.exports=IZe()});var BZe=ye((q2r,qZe)=>{"use strict";var FZe=ec(),zZe=Ih(),L$=Rd(),EKt=df().descriptionWithDates,kKt=mc().overrideAll,OZe=Pd().dash,P$=Ao().extendFlat;qZe.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:FZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:L$.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:P$({},L$.labelalias,{editType:"calc"}),tickfont:FZe({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:EKt("tick label")},tickformatstops:kKt(L$.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:zZe.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:P$({},OZe,{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:P$({},OZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:zZe.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 Z7=ye((B2r,VZe)=>{"use strict";var CKt=ec(),NZe=BZe(),UZe=Ih(),X7=CKt({editType:"calc"}),LKt=pf().zorder;X7.family.dflt='"Open Sans", verdana, arial, sans-serif';X7.size.dflt=12;X7.color.dflt=UZe.defaultLine;VZe.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:NZe,baxis:NZe,font:X7,color:{valType:"color",dflt:UZe.defaultLine,editType:"plot"},zorder:LKt}});var jZe=ye((N2r,HZe)=>{"use strict";var GZe=Dr().isArray1D;HZe.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||GZe(i))&&(!s||GZe(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 ZZe=ye((U2r,XZe)=>{"use strict";var PKt=Z7(),WZe=ka().addOpacity,IKt=qa(),vC=Dr(),RKt=Lb(),DKt=s_(),FKt=l_(),zKt=cI(),OKt=xm(),qKt=V3();XZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=PKt[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&&BKt(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=IKt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}OKt(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"),RKt(t,r,s,u),FKt(t,r,s,u,n),DKt(t,r,s,u,n),zKt(t,r,s,{data:n.data,dataAttr:i});var _=l("gridcolor",WZe(f,.3)),b=l("gridwidth"),p=l("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),T=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),C=l("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!C);return M||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",WZe(_,.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 BKt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=qKt(t,a,{autotypenumbers:e.autotypenumbers})}}});var KZe=ye((V2r,YZe)=>{"use strict";var NKt=ZZe(),UKt=vl();YZe.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")),VKt(t,r,n,a)};function VKt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=UKt.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};NKt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var QZe=ye((G2r,$Ze)=>{"use strict";var JZe=Dr(),GKt=jZe(),HKt=KZe(),jKt=Z7(),WKt=Ih();$Ze.exports=function(t,r,n,i){function a(l,u){return JZe.coerce(t,r,jKt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",WKt.defaultLine);if(JZe.coerceFont(a,"font",i.font),a("carpet"),HKt(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=GKt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var I$=ye((H2r,eYe)=>{"use strict";var XKt=Dr().isArrayOrTypedArray;eYe.exports=function(t,r,n){var i;for(XKt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";tYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";rYe.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 fYe=ye((X2r,cYe)=>{"use strict";var $7=Oa(),Y7=So(),K7=I$(),oYe=R$(),pC=iYe(),D$=Zl(),Up=Dr(),sYe=Up.strRotate,J7=Up.strTranslate,lYe=Dh();cYe.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=$7.select(this),h=c[0],d=h.trace,v=d.aaxis,_=d.baxis,b=Up.ensureSingle(f,"g","minorlayer"),p=Up.ensureSingle(f,"g","majorlayer"),k=Up.ensureSingle(f,"g","boundarylayer"),E=Up.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),G5(o,s,p,v,"a",v._gridlines,!0,a),G5(o,s,p,_,"b",_._gridlines,!0,a),G5(o,s,b,v,"a",v._minorgridlines,!0,a),G5(o,s,b,_,"b",_._minorgridlines,!0,a),G5(o,s,k,v,"a-boundary",v._boundarylines,a),G5(o,s,k,_,"b-boundary",_._boundarylines,a);var T=nYe(t,o,s,d,h,E,v._labels,"a-label"),L=nYe(t,o,s,d,h,E,_._labels,"b-label");YKt(t,E,d,h,o,s,T,L),ZKt(d,h,u,o,s)})};function ZKt(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(Y7.font,f.font).text(f.text).call(D$.convertToTspans,e),p=Y7.bBox(this);b.attr("transform",J7(d.p[0],d.p[1])+sYe(d.angle)+J7(f.axis.labelpadding*_,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function YKt(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),_=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))),aYe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+_),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))),aYe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var uYe=lYe.LINE_SPACING,KKt=(1-lYe.MID_SHIFT)/uYe+1;function aYe(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 _=o.title.font.size;d+=_+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,k=p>90&&p<270,E=$7.select(this);E.text(o.title.text).call(D$.convertToTspans,e),k&&(d=(-D$.lineCount(E)+KKt)*uYe*_-d),E.attr("transform",J7(v.p[0],v.p[1])+sYe(v.angle)+J7(0,d)).attr("text-anchor","middle").call(Y7.font,o.title.font)}),h.exit().remove()}});var dYe=ye((Z2r,hYe)=>{"use strict";var Q7=Dr().isArrayOrTypedArray;hYe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=Q7(e)?e.length:e,f=Q7(t)?t.length:t,h=Q7(e)?e:null,d=Q7(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,_=1/0,b=-1/0;for(i=0;i{"use strict";var vYe=Dr().isArrayOrTypedArray;gYe.exports=function(e){return pYe(e,0)};function pYe(e,t){if(!vYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var JKt=ho(),Ox=Ao().extendFlat;yYe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],C=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var g=t._xctrl,P=t._yctrl,A=g[0].length,z=g.length,O=t._a.length,U=t._b.length;JKt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var H,re,oe,_e,Ce,Le,ge,ie,Se,Ee,Ae,Be,Pe=[],me=[],De={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(U-2,re))),_e=re-oe,De.length=U,De.crossLength=O,De.xy=function(ce){return t.evalxy([],ce,re)},De.dxy=function(ce,je){return t.dxydi([],ce,oe,je,_e)},H=0;H0&&(Se=t.dxydi([],H-1,oe,0,_e),Pe.push(Ce[0]+Se[0]/3),me.push(Ce[1]+Se[1]/3),Ee=t.dxydi([],H-1,oe,1,_e),Pe.push(ie[0]-Ee[0]/3),me.push(ie[1]-Ee[1]/3)),Pe.push(ie[0]),me.push(ie[1]),Ce=ie;else for(H=t.a2i(N),Le=Math.floor(Math.max(0,Math.min(O-2,H))),ge=H-Le,De.length=O,De.crossLength=U,De.xy=function(ce){return t.evalxy([],H,ce)},De.dxy=function(ce,je){return t.dxydj([],Le,ce,ge,je)},re=0;re0&&(Ae=t.dxydj([],Le,re-1,ge,0),Pe.push(Ce[0]+Ae[0]/3),me.push(Ce[1]+Ae[1]/3),Be=t.dxydj([],Le,re-1,ge,1),Pe.push(ie[0]-Be[0]/3),me.push(ie[1]-Be[1]/3)),Pe.push(ie[0]),me.push(ie[1]),Ce=ie;return De.axisLetter=r,De.axis=E,De.crossAxis=M,De.value=N,De.constvar=n,De.index=f,De.x=Pe,De.y=me,De.smoothing=M.smoothing,De}function j(N){var H,re,oe,_e,Ce,Le=[],ge=[],ie={};if(ie.length=k.length,ie.crossLength=C.length,r==="b")for(oe=Math.max(0,Math.min(U-2,N)),Ce=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Ee){return t.dxydi([],Se,oe,Ee,Ce)},H=0;Hk.length-1)&&T.push(Ox(j(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fk.length-1)&&!(v<0||v>k.length-1))for(_=k[o],b=k[v],i=0;ik[k.length-1])&&L.push(Ox(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Ox(j(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ox(j(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,H){return N-H}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,T.push(Ox(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fk[k.length-1])&&L.push(Ox(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Ox(Z(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Ox(Z(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var TYe=ye((J2r,wYe)=>{"use strict";var xYe=ho(),bYe=Ao().extendFlat;wYe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";AYe.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 EYe=ye((Q2r,MYe)=>{"use strict";var $Kt=Dr();MYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Ce=0,Le,ge=0;return oe>0&&(Le=t[_e][oe-1])!==void 0&&(ge++,Ce+=Le),oe0&&(Le=t[_e-1][oe])!==void 0&&(ge++,Ce+=Le),_e0&&a0&&iM);return $Kt.log("Smoother converged to",g,"after",A,"iterations"),t}});var CYe=ye((ewr,kYe)=>{"use strict";kYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var IYe=ye((twr,PYe)=>{"use strict";var LYe=.5;PYe.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,LYe/2),c=Math.pow(s*s+l*l,LYe/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 DYe=ye((rwr,RYe)=>{"use strict";var F$=IYe(),e9=Dr().ensureArray;function H5(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]}RYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,_,b,p=n[0].length,k=n.length,E=a?3*p-2:p,T=o?3*k-2:k;for(t=e9(t,T),r=e9(r,T),u=0;u{"use strict";FYe.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,_,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)),E=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,M=C*x,g=E*E,P=g*E,A=1-E,z=A*A,O=z*A;for(_=0;_{"use strict";OYe.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,_=1-o,b=_*_,p=_*o*2,k=-3*b,E=3*(b-p),T=3*(p-v),L=3*v,x=s*s,C=x*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";BYe.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,_=v*o,b=1-o,p=b*b,k=p*b,E=s*s,T=1-s,L=T*T,x=T*s*2,C=-3*L,M=3*(L-x),g=3*(x-E),P=3*E;for(d=0;d{"use strict";var UYe=CYe(),VYe=V6().findBin,QKt=DYe(),eJt=zYe(),tJt=qYe(),rJt=NYe();GYe.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*UYe.RELATIVE_CULL_TOLERANCE,_=d*UYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=_,f+=_,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,k=QKt(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=tJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=rJt([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(VYe(b,r),i-2)),k=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-k)/(E-k)))},t.b2j=function(b){var p=Math.max(0,Math.min(VYe(b,n),a-2)),k=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-k)/(E-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 E=t.a2i(b),T=t.b2j(p),L=t.evalxy([],E,T);if(k){var x=0,C=0,M=[],g,P,A,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(E))),P=E-g),pn[a-1]?(A=a-2,z=1,C=(p-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),z=T-A),x&&(t.dxydi(M,g,A,P,z),L[0]+=M[0]*x,L[1]+=M[1]*x),C&&(t.dxydj(M,g,A,P,z),L[0]+=M[0]*C,L[1]+=M[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,E){var T=t.dxydi(null,b,p,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,p,k,E){var T=t.dxydj(null,b,p,k,E),L=t.dbdj(p,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,p,k){var E=h*(k||.1),T=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,k){var E=d*(k||.1),T=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var $Ye=ye((swr,JYe)=>{"use strict";var t9=ho(),jYe=Dr().isArray1D,iJt=dYe(),WYe=mYe(),XYe=_Ye(),ZYe=TYe(),nJt=SYe(),YYe=u8(),KYe=EYe(),aJt=s8(),oJt=HYe();JYe.exports=function(t,r){var n=t9.getFromId(t,r.xaxis),i=t9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&jYe(s)&&u.push("x"),l&&jYe(l)&&u.push("y"),u.length&&aJt(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=iJt(d,v,r.cheaterslope)}r._x=s=YYe(s),r._y=l=YYe(l),KYe(s,c,f),KYe(l,c,f),oJt(r),r.setScale();var _=WYe(s),b=WYe(l),p=.5*(_[1]-_[0]),k=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return _=[k-p*L,k+p*L],b=[T-E*L,T+E*L],r._extremes[n._id]=t9.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=t9.findExtremes(i,b,{padded:!0}),XYe(r,"a","b"),XYe(r,"b","a"),ZYe(r,a),ZYe(r,o),h.clipsegments=nJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var eKe=ye((lwr,QYe)=>{"use strict";QYe.exports={attributes:Z7(),supplyDefaults:QZe(),plot:fYe(),calc:$Ye(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var rKe=ye((uwr,tKe)=>{"use strict";tKe.exports=eKe()});var z$=ye((cwr,oKe)=>{"use strict";var sJt=Pg(),c0=pf(),lJt=Gl(),{hovertemplateAttrs:uJt,texttemplateAttrs:cJt,templatefallbackAttrs:iKe}=Ll(),nKe=Tu(),qx=Ao().extendFlat,ug=c0.marker,j5=c0.line,aKe=ug.line;oKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:qx({},c0.mode,{dflt:"markers"}),text:qx({},c0.text,{}),texttemplate:cJt({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:iKe({editType:"plot"}),hovertext:qx({},c0.hovertext,{}),line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:qx({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:c0.connectgaps,fill:qx({},c0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:sJt(),marker:qx({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:qx({width:aKe.width,dash:aKe.dash,editType:"calc"},nKe("marker.line")),gradient:ug.gradient,editType:"calc"},nKe("marker")),textfont:c0.textfont,textposition:c0.textposition,selected:c0.selected,unselected:c0.unselected,hoverinfo:qx({},lJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:c0.hoveron,hovertemplate:uJt(),hovertemplatefallback:iKe(),zorder:c0.zorder}});var cKe=ye((fwr,uKe)=>{"use strict";var sKe=Dr(),fJt=Lm(),W5=Ru(),hJt=$p(),dJt=D0(),lKe=sT(),vJt=F0(),pJt=Fg(),gJt=z$();uKe.exports=function(t,r,n,i){function a(h,d){return sKe.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";fKe.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 r9=ye((dwr,dKe)=>{"use strict";dKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var vKe=Eo(),mJt=z0(),yJt=Rm(),_Jt=O0(),xJt=q0().calcMarkerSize,bJt=r9();pKe.exports=function(t,r){var n=r._carpetTrace=bJt(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 wJt=dT(),mKe=ho(),TJt=So();yKe.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 AJt=mT(),SJt=Dr().fillText;xKe.exports=function(t,r,n,i){var a=AJt(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 _=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+T.toFixed(3)+E.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),_.push("y: "+o.yLabel),k.indexOf("text")!==-1&&SJt(f,h,_),o.extraText=_.join("
")}return a}});var TKe=ye((mwr,wKe)=>{"use strict";wKe.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 SKe=ye((ywr,AKe)=>{"use strict";AKe.exports={attributes:z$(),supplyDefaults:cKe(),colorbar:$d(),formatLabels:hKe(),calc:gKe(),plot:_Ke(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:bKe(),selectPoints:yT(),eventData:TKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var EKe=ye((_wr,MKe)=>{"use strict";MKe.exports=SKe()});var O$=ye((xwr,kKe)=>{"use strict";var cg=FT(),T1=q4(),MJt=Tu(),EJt=Ao().extendFlat,ly=T1.contours;kKe.exports=EJt({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:ly.type,start:ly.start,end:ly.end,size:ly.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ly.showlines,showlabels:ly.showlabels,labelfont:ly.labelfont,labelformat:ly.labelformat,operation:ly.operation,value:ly.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},MJt("",{cLetter:"z",autoColorDflt:!1}))});var q$=ye((bwr,PKe)=>{"use strict";var CKe=Dr(),kJt=n8(),LKe=O$(),CJt=RG(),LJt=k8(),PJt=C8();PKe.exports=function(t,r,n,i){function a(u,c){return CKe.coerce(t,r,LKe,u,c)}function o(u){return CKe.coerce2(t,r,LKe,u)}if(a("carpet"),t.a&&t.b){var s=kJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?CJt(t,r,a,i,n,{hasHover:!1}):(LJt(t,r,a,o),PJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var FKe=ye((wwr,DKe)=>{"use strict";var IJt=gv(),IKe=Dr(),RJt=s8(),DJt=u8(),FJt=c8(),zJt=f8(),RKe=rG(),OJt=q$(),qJt=r9(),BJt=bG();DKe.exports=function(t,r){var n=r._carpetTrace=qJt(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),OJt(a,r,r._defaultColor,t._fullLayout)}var o=NJt(t,r);return BJt(r,r._z),o}};function NJt(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,IKe.isArray1D(t.z)&&RJt(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=DJt(t._z||t.z,t.transpose),t._emptypoints=zJt(f),FJt(f,t._emptypoints);var h=IKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=RKe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":l,b=RKe(t,_,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&IJt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var OKe=ye((Twr,zKe)=>{"use strict";var UJt=Dr().isArrayOrTypedArray;zKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p=UJt(r)?"a":"b",k=p==="a"?e.aaxis:e.baxis,E=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,M=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)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Ce){return e.dxydi([],_e,o,Ce,s)}:function(_e,Ce){return e.dxydj([],o,_e,s,Ce)});var A=T(L[0]),z=T(L[1]),O=A0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,j=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,H=G(A+U),re=Z(z-U);c=P(A);var oe=[[c]];for(i=H;i*O{"use strict";var n9=Oa(),a9=I$(),VKe=R$(),gC=So(),A1=Dr(),VJt=TG(),GJt=AG(),Tw=I8(),i9=N4(),HJt=kG(),jJt=EG(),WJt=CG(),XJt=r9(),qKe=OKe();GKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;A1.makeTraceGroups(i,n,"contour").each(function(s){var l=n9.select(this),u=s[0],c=u.trace,f=c._carpetTrace=XJt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,_=c.contours,b=jJt(_,r,u),p=_.type==="constraint",k=_._operation,E=p?k==="="?"lines":"fill":_.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]]];VJt(b);var x=(d[d.length-1]-d[0])*1e-8,C=(v[v.length-1]-v[0])*1e-8;GJt(b,x,C);var M=b;_.type==="constraint"&&(M=HJt(b,k)),ZJt(b,T);var g,P,A,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=a9([],g.x,a.c2p),A=a9([],g.y,o.c2p),P.reverse(),A.reverse(),O.push(VKe(P,A,g.bicubic));var U="M"+O.join("L")+"Z";JJt(l,h.clipsegments,a,o,p,E),$Jt(c,l,a,o,M,L,T,f,h,E,U),YJt(l,b,t,u,_,r,f),gC.setClipUrl(l,f._clipPathId,t)})};function ZJt(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 BKe(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 NKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function UKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function JJt(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,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):A1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;u+=M(h,d),h=d}if(_===t.edgepaths.length){A1.log("unclosed perimeter path");break}l=_,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";jKe.exports={attributes:O$(),supplyDefaults:q$(),colorbar:F8(),calc:FKe(),plot:HKe(),style:D8(),moduleType:"trace",name:"contourcarpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var ZKe=ye((Mwr,XKe)=>{"use strict";XKe.exports=WKe()});var s9=ye((Ewr,QKe)=>{"use strict";var o9=Dr().extendFlat,mC=pf(),YKe=df().axisHoverFormat,{hovertemplateAttrs:e$t,templatefallbackAttrs:t$t}=Ll(),JKe=Pd().dash,r$t=v3(),$Ke=JT(),i$t=$Ke.INCREASING.COLOR,n$t=$Ke.DECREASING.COLOR,B$=mC.line;function KKe(e){return{line:{color:o9({},B$.color,{dflt:e}),width:B$.width,dash:JKe,editType:"style"},editType:"style"}}QKe.exports={xperiod:mC.xperiod,xperiod0:mC.xperiod0,xperiodalignment:mC.xperiodalignment,xhoverformat:YKe("x"),yhoverformat:YKe("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:o9({},B$.width,{}),dash:o9({},JKe,{}),editType:"style"},increasing:KKe(i$t),decreasing:KKe(n$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:t$t(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:o9({},r$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:mC.zorder}});var N$=ye((kwr,eJe)=>{"use strict";var a$t=qa(),o$t=Dr();eJe.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=a$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,o$t.minRowLength(a))),r._length=f,f}}});var iJe=ye((Cwr,rJe)=>{"use strict";var s$t=Dr(),l$t=N$(),u$t=Dg(),c$t=s9();rJe.exports=function(t,r,n,i){function a(s,l){return s$t.coerce(t,r,c$t,s,l)}var o=l$t(t,r,a,i);if(!o){r.visible=!1;return}u$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),tJe(t,r,a,"increasing"),tJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function tJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var U$=ye((Lwr,aJe)=>{"use strict";var X5=Dr(),l9=X5._,u9=ho(),f$t=zg(),yC=fs().BADNUM;function h$t(e,t){var r=u9.getFromId(e,t.xaxis),n=u9.getFromId(e,t.yaxis),i=v$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=nJe(e,t,o,s,n,d$t);return t._extremes[r._id]=u9.findExtremes(r,s,{vpad:a/2}),l.length?(X5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function d$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function nJe(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=X5.isArrayOrTypedArray(t.text),f=X5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,_=[],b=0;bd):h=L>k,d=L;var x=a(k,E,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,E],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:p,empty:!0})}return t._extremes[i._id]=u9.findExtremes(i,X5.concat(l,s),{padded:!0}),_.length&&(_[0].t={labels:{open:l9(e,"open:")+" ",high:l9(e,"high:")+" ",low:l9(e,"low:")+" ",close:l9(e,"close:")+" "}}),_}function v$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 p$t=Oa(),oJe=Dr();sJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;oJe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=p$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(oJe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),p=o.c2p(_.pos+d,!0),k=s?(b+p)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),T=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+p+","+x+"H"+k})})}});var cJe=ye((Iwr,uJe)=>{"use strict";var V$=Oa(),g$t=So(),m$t=ka();uJe.exports=function(t,r,n){var i=n||V$.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;V$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;V$.select(this).style("fill","none").call(m$t.stroke,l.color).call(g$t.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var H$=ye((Rwr,pJe)=>{"use strict";var G$=ho(),y$t=Dr(),c9=vf(),_$t=ka(),x$t=Dr().fillText,fJe=JT(),b$t={increasing:fJe.INCREASING.SYMBOL,decreasing:fJe.DECREASING.SYMBOL};function w$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?dJe(e,t,r,n):vJe(e,t,r,n)}function hJe(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},_=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function k(P){var A=v(P);return c9.inbox(A-b,A+b,f)}function E(P){var A=P[u],z=P[c];return A===z||c9.inbox(A-r,z-r,f)}function T(P){return(k(P)+E(P))/2}var L=c9.getDistanceFunction(n,k,E,T);if(c9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var C=x.dir,M=o[C],g=M.line.color;return _$t.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!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 dJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=hJe(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[_]+G$.hoverLabelText(a,b,o.yhoverformat)):(k=y$t.extendFlat({},u),k.y0=k.y1=p,k.yLabelVal=b,k.yLabel=s.labels[_]+G$.hoverLabelText(a,b,o.yhoverformat),k.name="",l.push(k),d[b]=k)}return l}function vJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=hJe(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]+G$.hoverLabelText(a,o[T][f],o.yhoverformat)}var v=c.hi||o.hoverinfo||"",_=v.split("+"),b=v==="all",p=b||_.indexOf("y")!==-1,k=b||_.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+b$t[h]]:[];return k&&x$t(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}pJe.exports={hoverPoints:w$t,hoverSplit:dJe,hoverOnPoints:vJe}});var j$=ye((Dwr,gJe)=>{"use strict";gJe.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:s9(),supplyDefaults:iJe(),calc:U$().calc,plot:lJe(),style:cJe(),hoverPoints:H$().hoverPoints,selectPoints:j$()}});var xJe=ye((zwr,_Je)=>{"use strict";_Je.exports=yJe()});var X$=ye((Owr,TJe)=>{"use strict";var W$=Dr().extendFlat,bJe=df().axisHoverFormat,vp=s9(),Z5=C4();function wJe(e){return{line:{color:W$({},Z5.line.color,{dflt:e}),width:Z5.line.width,editType:"style"},fillcolor:Z5.fillcolor,editType:"style"}}TJe.exports={xperiod:vp.xperiod,xperiod0:vp.xperiod0,xperiodalignment:vp.xperiodalignment,xhoverformat:bJe("x"),yhoverformat:bJe("y"),x:vp.x,open:vp.open,high:vp.high,low:vp.low,close:vp.close,line:{width:W$({},Z5.line.width,{}),editType:"style"},increasing:wJe(vp.increasing.line.color.dflt),decreasing:wJe(vp.decreasing.line.color.dflt),text:vp.text,hovertext:vp.hovertext,hovertemplate:vp.hovertemplate,hovertemplatefallback:vp.hovertemplatefallback,whiskerwidth:W$({},Z5.whiskerwidth,{dflt:0}),hoverlabel:vp.hoverlabel,zorder:Z5.zorder}});var MJe=ye((qwr,SJe)=>{"use strict";var T$t=Dr(),A$t=ka(),S$t=N$(),M$t=Dg(),E$t=X$();SJe.exports=function(t,r,n,i){function a(s,l){return T$t.coerce(t,r,E$t,s,l)}var o=S$t(t,r,a,i);if(!o){r.visible=!1;return}M$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),AJe(t,r,a,"increasing"),AJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function AJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",A$t.addOpacity(i,.5))}});var LJe=ye((Bwr,CJe)=>{"use strict";var EJe=Dr(),kJe=ho(),k$t=zg(),C$t=U$().calcCommon;CJe.exports=function(e,t){var r=e._fullLayout,n=kJe.getFromId(e,t.xaxis),i=kJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=k$t(t,n,"x",a).vals,s=C$t(e,t,a,o,i,L$t);return s.length?(EJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:EJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function L$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var IJe=ye((Nwr,PJe)=>{"use strict";PJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:X$(),layoutAttributes:L4(),supplyLayoutDefaults:$I().supplyLayoutDefaults,crossTraceCalc:e8().crossTraceCalc,supplyDefaults:MJe(),calc:LJe(),plot:t8().plot,layerName:"boxlayer",style:r8().style,hoverPoints:H$().hoverPoints,selectPoints:j$()}});var DJe=ye((Uwr,RJe)=>{"use strict";RJe.exports=IJe()});var Y$=ye((Vwr,FJe)=>{"use strict";var h9=Dr(),P$t=xm(),f9=h9.deg2rad,Z$=h9.rad2deg;FJe.exports=function(t,r,n){switch(P$t(t,n),t._id){case"x":case"radialaxis":I$t(t,r);break;case"angularaxis":F$t(t,r);break}};function I$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 R$t(e,t){return t==="degrees"?f9(e):e}function D$t(e,t){return t==="degrees"?Z$(e):e}function F$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return R$t(n(a),o)},e.c2d=function(a,o){return i(D$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";zJe.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 p9=ye((Hwr,UJe)=>{"use strict";var Aw=Dr(),OJe=zM().tester,K$=Aw.findIndexOfMin,BJe=Aw.isAngleInsideSector,z$t=Aw.angleDelta,qJe=Aw.angleDist;function O$t(e,t,r,n,i){if(!BJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=K$(t,r),i=Aw.mod(n+1,t.length);return[t[n],t[i]]}function v9(e){return Math.abs(e)>1e-10?e:0}function J$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function VJe(e){return e<0?-1:e>0?1:0}function K5(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 J5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function GJe(e,t){return t*e.radius}function j$t(e,t,r,n){var i=J5(e,K5([r,t])),a=i[0],o=i[1],s=J5(e,K5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=GJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function W$t(e,t,r,n){var i=GJe(e,1/(t+1)),a=J5(e,K5([t,r])),o=a[0],s=a[1],l=J5(e,K5([t,n])),u=l[0],c=l[1];if(VJe(r)!==VJe(n)){var f=J5(e,K5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Sw=Oa(),X$t=fd(),Ew=qa(),Xc=Dr(),uy=Xc.strRotate,xd=Xc.strTranslate,Q$=ka(),_C=So(),Z$t=Mc(),pp=ho(),Y$t=xm(),K$t=Y$(),J$t=Mg().doAutoRange,S1=jN(),y9=yv(),jJe=vf(),$$t=zb(),Q$t=Of().prepSelect,eQt=Of().selectOnClick,eQ=Of().clearOutline,WJe=Eg(),XJe=bM(),ZJe=LM().redrawReglTraces,tQt=Dh().MID_SHIFT,Bx=d9(),M1=p9(),_9=$$(),g9=_9.smith,rQt=_9.reactanceArc,iQt=_9.resistanceArc,m9=_9.smithTransform,nQt=Xc._,YJe=Xc.mod,Nx=Xc.deg2rad,Mw=Xc.rad2deg;function KJe(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 Bd=KJe.prototype;QJe.exports=function(t,r,n){return new KJe(t,r,n)};Bd.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,E=[s[0],s[1]],T=[l[0]+L,l[1]-L]):(p=c/b,k=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],T=[l[0],l[1]]),r.xLength2=p,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],A=r.cy=C+M*h[3],z=r.cxx=P-x,O=r.cyy=A-C,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:[g/i.w,M/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:T});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),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,A)).call(Q$.fill,t.bgcolor)};Bd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return K$t(i,t,e),i};Bd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);Y$t(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};Bd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);J$t(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(M){var g=m9(r,g9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},_=d?function(M){return iQt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=JJe(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(M){return M>=0}).map(function(M){return pp.tickText(f,M,!0,!1)}):pp.calcTicks(f),E=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:E,layer:i["radial-grid"],path:_,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?Mw($Je(Nx(u.angle),r.vangles)):u.angle,x=xd(s,l),C=x+uy(-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(Q$.stroke,u.linecolor)};Bd.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,_=Nx(v),b=Math.cos(_),p=Math.sin(_),k=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=$$t.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title.text",placeholder:nQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Bd.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=m9(r,g9([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=Mw(c.tick0),c.dtick=Mw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=m9(r,g9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},_=f?function(g){var P=m9(r,g9([0,g.x])),A=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+uy(-Mw(A))}:function(g){var P=h(g);return d(P)+uy(-Mw(P))},b=f?function(g){return rQt(r,g.x,0,1/0)}:function(g){var P=h(g),A=Math.cos(P),z=Math.sin(P);return"M"+[s+o*A,l-o*z]+"L"+[s+a*A,l-a*z]},p=pp.makeLabelFns(c,0),k=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*k},E.yFn=function(g){var P=h(g),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+g.fontSize*A)+Math.abs(Math.cos(P))*(g.fontSize*tQt)},E.anchorFn=function(g){var P=h(g),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(g,P,A){var z=h(g);return-.5*(1+Math.sin(z))*A};var T=JJe(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,M=(c.linewidth||1)/2;pp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+C*M+",0h"+C*c.ticklen,transFn:_,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:E})}xC(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(Q$.stroke,u.linecolor)};Bd.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)}};Bd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Bx.MINZOOM,s=Bx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,_=t.vangles,b=t.radialAxis,p=M1.clampTiny,k=M1.findXYatLength,E=M1.findEnclosingVertexAngles,T=Bx.cornerHalfWidth,L=Bx.cornerLen/2,x,C,M=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Sw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){jJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||y9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,z,O,U,G,Z,j,N;function H(ce,je){return Math.sqrt(ce*ce+je*je)}function re(ce,je){return H(ce-h,je-d)}function oe(ce,je){return Math.atan2(d-je,ce-h)}function _e(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function Ce(ce,je){if(ce===0)return t.pathSector(2*T);var lt=L/ce,pt=je-lt,Vt=je+lt,ot=Math.max(0,Math.min(ce,l)),ut=ot-T,Wt=ot+T;return"M"+_e(ut,pt)+"A"+[ut,ut]+" 0,0,0 "+_e(ut,Vt)+"L"+_e(Wt,Vt)+"A"+[Wt,Wt]+" 0,0,1 "+_e(Wt,pt)+"Z"}function Le(ce,je,lt){if(ce===0)return t.pathSector(2*T);var pt=_e(ce,je),Vt=_e(ce,lt),ot=p((pt[0]+Vt[0])/2),ut=p((pt[1]+Vt[1])/2),Wt,Nt;if(ot&&ut){var $t=ut/ot,sr=-1/$t,Tr=k(T,$t,ot,ut);Wt=k(L,sr,Tr[0][0],Tr[0][1]),Nt=k(L,sr,Tr[1][0],Tr[1][1])}else{var fr,$e;ut?(fr=L,$e=T):(fr=T,$e=L),Wt=[[ot-fr,ut-$e],[ot+fr,ut-$e]],Nt=[[ot-fr,ut+$e],[ot+fr,ut+$e]]}return"M"+Wt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function ge(){z=null,O=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=X$t(ce.bgcolor).getLuminance(),j=S1.makeZoombox(a,Z,c,f,U),j.attr("fill-rule","evenodd"),N=S1.makeCorners(a,c,f),eQ(n)}function ie(ce,je){return je=Math.max(Math.min(je,l),u),ceo?(ce-1&&ce===1&&eQt(je,n,[t.xaxis],[t.yaxis],t.id,g),lt.indexOf("event")>-1&&jJe.click(n,je,t.id)}g.prepFn=function(ce,je,lt){var pt=n._fullLayout.dragmode,Vt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var ot=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var ut=Xc.apply3DTransform(ot)(je-Vt.left,lt-Vt.top);if(P=ut[0],A=ut[1],_){var Wt=M1.findPolygonOffset(l,v[0],v[1],_);P+=h+Wt[0],A+=d+Wt[1]}switch(pt){case"zoom":g.clickFn=De,r||(_?g.moveFn=Be:g.moveFn=Ee,g.doneFn=Pe,ge(ce,je,lt));break;case"select":case"lasso":Q$t(ce,je,lt,g,pt);break}},y9.init(g)};Bd.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=Bx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Nx(n.radialAxisAngle),v=c._rl,_=v[0],b=v[1],p=v[r],k=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,T,L;r?(E=l+(o+h)*Math.cos(d),T=u-(o+h)*Math.sin(d),L="radialdrag"):(E=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(Sw.select(x),c.visible&&s0!=(r?P>_: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 $Je(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 rQ=ye((Xwr,a$e)=>{"use strict";var oQt=Ih(),os=Rd(),sQt=Cc().attributes,f0=Dr().extendFlat,e$e=mc().overrideAll,t$e=e$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"),r$e=e$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"),i$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(i$e,t$e,r$e);var n$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(n$e,t$e,r$e);a$e.exports={domain:sQt({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:oQt.background},radialaxis:i$e,angularaxis:n$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var u$e=ye((Zwr,l$e)=>{"use strict";var x9=Dr(),lQt=ka(),uQt=vl(),cQt=O_(),fQt=Id().getSubplotData,hQt=Lb(),dQt=F3(),vQt=s_(),pQt=l_(),gQt=cI(),mQt=c4(),yQt=TB(),_Qt=V3(),s$e=rQ(),xQt=Y$(),b9=d9(),o$e=b9.axisNames;function bQt(e,t,r,n){var i=r("bgcolor");n.bgColor=lQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=fQt(n.fullData,b9.name,n.id),s=n.layoutOut,l;function u(j,N){return r(l+"."+j,N)}for(var c=0;c{"use strict";var TQt=Id().getSubplotCalcData,AQt=Dr().counterRegex,SQt=tQ(),f$e=d9(),h$e=f$e.attr,kw=f$e.name,c$e=AQt(kw),d$e={};d$e[h$e]={valType:"subplotid",dflt:kw,editType:"calc"};function MQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[kw],i=0;i{"use strict";var{hovertemplateAttrs:kQt,texttemplateAttrs:CQt,templatefallbackAttrs:p$e}=Ll(),T9=Ao().extendFlat,LQt=Pg(),h0=pf(),PQt=Gl(),$5=h0.line;g$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:CQt({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:p$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:$5.color,width:$5.width,dash:$5.dash,backoff:$5.backoff,shape:T9({},$5.shape,{values:["linear","spline"]}),smoothing:$5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:T9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:T9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:LQt(),hoverinfo:T9({},PQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:kQt(),hovertemplatefallback:p$e(),selected:h0.selected,unselected:h0.unselected}});var S9=ye((Jwr,_$e)=>{"use strict";var A9=Dr(),Q5=Ru(),IQt=$p(),RQt=D0(),m$e=sT(),DQt=F0(),FQt=Fg(),zQt=Lm().PTS_LINESONLY,OQt=bC();function qQt(e,t,r,n){function i(s,l){return A9.coerce(e,t,OQt,s,l)}var a=y$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var BQt=Dr(),x$e=ho();b$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=x$e.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?BQt.rad2deg(t.theta):t.theta;return i.thetaLabel=x$e.tickText(s,u,!0).text,i}});var A$e=ye((Qwr,T$e)=>{"use strict";var w$e=Eo(),NQt=fs().BADNUM,UQt=ho(),VQt=z0(),GQt=Rm(),HQt=O0(),jQt=q0().calcMarkerSize;T$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 WQt=dT(),S$e=fs().BADNUM;M$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 XQt=mT();function ZQt(e,t,r,n){var i=XQt(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,k$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function k$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("
")}}C$e.exports={hoverPoints:ZQt,makeHoverPointText:k$e}});var P$e=ye((r3r,L$e)=>{"use strict";L$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:w9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:bC(),supplyDefaults:S9().supplyDefaults,colorbar:$d(),formatLabels:M9(),calc:A$e(),plot:E$e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:E9().hoverPoints,selectPoints:yT(),meta:{}}});var R$e=ye((i3r,I$e)=>{"use strict";I$e.exports=P$e()});var iQ=ye((o3r,F$e)=>{"use strict";var D$e=bC(),{cliponaxis:n3r,hoveron:a3r}=D$e,YQt=gee(D$e,["cliponaxis","hoveron"]),{connectgaps:KQt,line:{color:JQt,dash:$Qt,width:QQt},fill:eer,fillcolor:ter,marker:rer,textfont:ier,textposition:ner}=mk();F$e.exports=j1(_g({},YQt),{connectgaps:KQt,fill:eer,fillcolor:ter,line:{color:JQt,dash:$Qt,editType:"calc",width:QQt},marker:rer,textfont:ier,textposition:ner})});var q$e=ye((l3r,O$e)=>{"use strict";var z$e=Dr(),nQ=Ru(),aer=S9().handleRThetaDefaults,oer=$p(),ser=D0(),ler=F0(),uer=Fg(),cer=Lm().PTS_LINESONLY,fer=iQ();O$e.exports=function(t,r,n,i){function a(s,l){return z$e.coerce(t,r,fer,s,l)}var o=aer(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var her=M9();B$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]),her(t,r,n)}});var V$e=ye((c3r,U$e)=>{"use strict";var der=z0(),ver=q0().calcMarkerSize,per=ow(),ger=ho(),mer=px().TOO_MANY_POINTS;U$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 yer=jF(),_er=E9().makeHoverPointText;function xer(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=yer.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,_er(f,h,c,u),l}}G$e.exports={hoverPoints:xer}});var W$e=ye((h3r,j$e)=>{"use strict";j$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:w9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:iQ(),supplyDefaults:q$e(),colorbar:$d(),formatLabels:N$e(),calc:V$e(),hoverPoints:H$e().hoverPoints,selectPoints:gY(),meta:{}}});var X$e=ye((d3r,aQ)=>{"use strict";var ber=ZF(),wer=Eo(),Ter=xK(),Aer=dY(),k9=ow(),C9=Dr(),Ser=px().TOO_MANY_POINTS,Mer={};aQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Aer(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,_,b=h.slice(),p=d.slice();for(_=0;_=Ser&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=k),v.line&&k.length>1&&C9.extendFlat(v.line,k9.linePositions(t,u,k)),v.text&&(C9.extendFlat(v.text,{positions:k},k9.textPosition(t,u,v.text,v.marker)),C9.extendFlat(v.textSel,{positions:k},k9.textPosition(t,u,v.text,v.markerSel)),C9.extendFlat(v.textUnsel,{positions:k},k9.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=E,c.y=T,c.rawx=E,c.rawy=T,c.r=h,c.theta=d,c.positions=k,c._scene=o,c.index=o.count,o.count++}}),Ter(t,r,n)}};aQ.exports.reglPrecompiled=Mer});var K$e=ye((v3r,Y$e)=>{"use strict";var Z$e=W$e();Z$e.plot=X$e();Y$e.exports=Z$e});var $$e=ye((p3r,J$e)=>{"use strict";J$e.exports=K$e()});var oQ=ye((g3r,Q$e)=>{"use strict";var{hovertemplateAttrs:Eer,templatefallbackAttrs:ker}=Ll(),eS=Ao().extendFlat,Ux=bC(),Vx=zm();Q$e.exports={r:Ux.r,theta:Ux.theta,r0:Ux.r0,dr:Ux.dr,theta0:Ux.theta0,dtheta:Ux.dtheta,thetaunit:Ux.thetaunit,base:eS({},Vx.base,{}),offset:eS({},Vx.offset,{}),width:eS({},Vx.width,{}),text:eS({},Vx.text,{}),hovertext:eS({},Vx.hovertext,{}),marker:Cer(),hoverinfo:Ux.hoverinfo,hovertemplate:Eer(),hovertemplatefallback:ker(),selected:Vx.selected,unselected:Vx.unselected};function Cer(){var e=eS({},Vx.marker);return delete e.cornerradius,e}});var sQ=ye((m3r,eQe)=>{"use strict";eQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var iQe=ye((y3r,rQe)=>{"use strict";var tQe=Dr(),Ler=S9().handleRThetaDefaults,Per=WI(),Ier=oQ();rQe.exports=function(t,r,n,i){function a(s,l){return tQe.coerce(t,r,Ier,s,l)}var o=Ler(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"),Per(t,r,a,n,i),tQe.coerceSelectionMarkerOpacity(r,a)}});var aQe=ye((_3r,nQe)=>{"use strict";var Rer=Dr(),Der=sQ();nQe.exports=function(e,t,r){var n={},i;function a(l,u){return Rer.coerce(e[i]||{},t[i],Der,l,u)}for(var o=0;o{"use strict";var oQe=pv().hasColorscale,sQe=gv(),Fer=Dr().isArrayOrTypedArray,zer=S4(),Oer=t2().setGroupPositions,qer=O0(),Ber=qa().traceIs,Ner=Dr().extendFlat;function Uer(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 uQe=Oa(),L9=Eo(),tS=Dr(),Ger=So(),uQ=p9();cQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=Her(r),c=r.layers.frontplot.select("g.barlayer");tS.makeTraceGroups(c,n,"trace bars").each(function(){var f=uQe.select(this),h=tS.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(tS.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 _=uQe.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),k=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),T;if(!L9(b)||!L9(p)||!L9(k)||!L9(E)||b===p||k===E)T="M0,0Z";else{var L=s.c2g(v.s1),x=(k+E)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],T=u(b,p,k,E)}tS.ensureSingle(_,"path").attr("d",T)}),Ger.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function Her(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;tS.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=uQ.findEnclosingVertexAngles(s,e.vangles)[0],c=uQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return uQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return tS.pathAnnulus(n,i,a,o,t,r)}}});var dQe=ye((w3r,hQe)=>{"use strict";var jer=vf(),cQ=Dr(),Wer=PT().getTraceColor,Xer=cQ.fillText,Zer=E9().makeHoverPointText,Yer=p9().isPtInsidePolygon;hQe.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?Yer:cQ.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 _=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(jer.getClosest(i,_,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=cQ.extendFlat({},p,{r:p.s,theta:p.p});return Xer(p,a,t),Zer(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=Wer(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var pQe=ye((T3r,vQe)=>{"use strict";vQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:w9(),categories:["polar","bar","showLegend"],attributes:oQ(),layoutAttributes:sQ(),supplyDefaults:iQe(),supplyLayoutDefaults:aQe(),calc:lQ().calc,crossTraceCalc:lQ().crossTraceCalc,plot:fQe(),colorbar:$d(),formatLabels:M9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:dQe(),selectPoints:IT(),meta:{}}});var mQe=ye((A3r,gQe)=>{"use strict";gQe.exports=pQe()});var fQ=ye((S3r,yQe)=>{"use strict";yQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var hQ=ye((M3r,wQe)=>{"use strict";var Ker=Ih(),Uf=Rd(),Jer=Cc().attributes,Gx=Dr().extendFlat,_Qe=mc().overrideAll,xQe=_Qe({color:Uf.color,showline:Gx({},Uf.showline,{dflt:!0}),linecolor:Uf.linecolor,linewidth:Uf.linewidth,showgrid:Gx({},Uf.showgrid,{dflt:!0}),gridcolor:Uf.gridcolor,gridwidth:Uf.gridwidth,griddash:Uf.griddash},"plot","from-root"),bQe=_Qe({ticklen:Uf.ticklen,tickwidth:Gx({},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"),$er=Gx({visible:Gx({},Uf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Gx({},Uf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},xQe,bQe),Qer=Gx({visible:Gx({},Uf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Uf.ticks,editType:"calc"},xQe,bQe);wQe.exports={domain:Jer({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:Ker.background},realaxis:$er,imaginaryaxis:Qer,editType:"calc"}});var SQe=ye((E3r,AQe)=>{"use strict";var rS=Dr(),etr=ka(),ttr=vl(),rtr=O_(),itr=Id().getSubplotData,ntr=l_(),atr=s_(),otr=c4(),str=xm(),iS=hQ(),dQ=fQ(),TQe=dQ.axisNames,ltr=ctr(function(e){return rS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function utr(e,t,r,n){var i=r("bgcolor");n.bgColor=etr.combine(i,n.paper_bgcolor);var a=itr(n.fullData,dQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var ftr=Id().getSubplotCalcData,htr=Dr().counterRegex,dtr=tQ(),EQe=fQ(),kQe=EQe.attr,Cw=EQe.name,MQe=htr(Cw),CQe={};CQe[kQe]={valType:"subplotid",dflt:Cw,editType:"calc"};function vtr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Cw],i=0;i{"use strict";var{hovertemplateAttrs:gtr,texttemplateAttrs:mtr,templatefallbackAttrs:IQe}=Ll(),P9=Ao().extendFlat,ytr=Pg(),d0=pf(),_tr=Gl(),nS=d0.line;RQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:mtr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:IQe({editType:"plot"}),hovertext:d0.hovertext,line:{color:nS.color,width:nS.width,dash:nS.dash,backoff:nS.backoff,shape:P9({},nS.shape,{values:["linear","spline"]}),smoothing:nS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:P9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:P9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ytr(),hoverinfo:P9({},_tr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:gtr(),hovertemplatefallback:IQe(),selected:d0.selected,unselected:d0.unselected}});var zQe=ye((L3r,FQe)=>{"use strict";var I9=Dr(),aS=Ru(),xtr=$p(),btr=D0(),DQe=sT(),wtr=F0(),Ttr=Fg(),Atr=Lm().PTS_LINESONLY,Str=vQ();FQe.exports=function(t,r,n,i){function a(l,u){return I9.coerce(t,r,Str,l,u)}var o=Mtr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var OQe=ho();qQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=OQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=OQe.tickText(a.angularAxis,t.imag,!0).text,i}});var VQe=ye((I3r,UQe)=>{"use strict";var NQe=Eo(),Etr=fs().BADNUM,ktr=z0(),Ctr=Rm(),Ltr=O0(),Ptr=q0().calcMarkerSize;UQe.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 Itr=dT(),GQe=fs().BADNUM,Rtr=$$(),Dtr=Rtr.smith;HQe.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 Ftr=mT();function ztr(e,t,r,n){var i=Ftr(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,WQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function WQe(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("
")}}XQe.exports={hoverPoints:ztr,makeHoverPointText:WQe}});var KQe=ye((F3r,YQe)=>{"use strict";YQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:PQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:vQ(),supplyDefaults:zQe(),colorbar:$d(),formatLabels:BQe(),calc:VQe(),plot:jQe(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:ZQe().hoverPoints,selectPoints:yT(),meta:{}}});var $Qe=ye((z3r,JQe)=>{"use strict";JQe.exports=KQe()});var kv=ye((O3r,eet)=>{var D9=Nh();function QQe(){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={}}D9(QQe.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(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function R9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}D9(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(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?"-":"")+R9(Math.abs(this.year()),4)+"-"+R9(this.month(),2)+"-"+R9(this.day(),2)}});function gQ(){this.shortYearCutoff="+10"}D9(gQ.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 pQ(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?"-":"")+R9(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=eet.exports=new QQe;Gs.cdate=pQ;Gs.baseCalendar=gQ;Gs.calendars.gregorian=mQ});var tet=ye(()=>{var yQ=Nh(),Nd=kv();yQ(Nd.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"});Nd.local=Nd.regionalOptions[""];yQ(Nd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});yQ(Nd.baseCalendar.prototype,{UNIX_EPOCH:Nd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Nd.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 Nd.local.invalidFormat||Nd.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;E+x1},c=function(T,L,x,C){var M=""+L;if(u(T,C))for(;M.length1},k=function(z,O){var U=p(z,O),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),j=t.substring(M).match(Z);if(!j)throw(Nd.local.missingNumberAt||Nd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=j[0].length,parseInt(j[0],10)},E=this,T=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return k("m")},L=function(z,O,U,G){for(var Z=p(z,G)?U:O,j=0;j-1){h=1,d=v;for(var A=this.daysInMonth(f,h);d>A;A=this.daysInMonth(f,h))h++,d-=A}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 ret=ye(()=>{var Hx=kv(),Otr=Nh(),_Q=Hx.instance();function F9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F9.prototype=new Hx.baseCalendar;Otr(F9.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(Btr);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(Ntr);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(Utr);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 Hx.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 Hx.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,Hx.local.invalidyear),i=Wx[n-Wx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=_Q.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=jx[e-jx[0]],n=r>>13,i=n?12:11;if(t>i)throw Hx.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,Hx.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=Gtr(e,a,r,i);return _Q.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=_Q.fromJD(e),r=Vtr(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(qtr),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(F9.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 qtr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Btr=/^\d?\d[iI]?/m,Ntr=/^闰?十?[一二三四五六七八九]?月/m,Utr=/^闰?十?[一二三四五六七八九]?/m;Hx.calendars.chinese=F9;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],Wx=[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 Vtr(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=Wx[i.year-Wx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Wx[a.year-Wx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,_=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-_)/(24*3600*1e3));var p=jx[a.year-jx[0]],k;for(k=0;k<13;k++){var E=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=jx[o.year-jx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var _=0;_>9&4095,E=p>>5&15,T=p&31,L=new Date(k,E-1,T+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var iet=ye(()=>{var Lw=kv(),Htr=Nh();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Lw.baseCalendar;Htr(xQ.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,Lw.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,Lw.local.invalidYear||Lw.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,Lw.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,Lw.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)}});Lw.calendars.coptic=xQ});var net=ye(()=>{var E1=kv(),jtr=Nh();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new E1.baseCalendar;jtr(bQ.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:Wtr[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 Wtr={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=bQ});var aet=ye(()=>{var Pw=kv(),Xtr=Nh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Pw.baseCalendar;Xtr(wQ.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,Pw.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,Pw.local.invalidYear||Pw.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,Pw.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,Pw.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)}});Pw.calendars.ethiopian=wQ});var oet=ye(()=>{var Xx=kv(),Ztr=Nh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Xx.baseCalendar;Ztr(TQ.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,Xx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,z9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xx.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,Xx.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,Xx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&z9(this.daysInYear(e),10)===5?30:t===9&&z9(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,Xx.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,Xx.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 z9(e,t){return e-t*Math.floor(e/t)}Xx.calendars.hebrew=TQ});var set=ye(()=>{var wC=kv(),Ytr=Nh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new wC.baseCalendar;Ytr(AQ.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=AQ});var uet=ye(()=>{var TC=kv(),Ktr=Nh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new TC.baseCalendar;Ktr(SQ.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=SQ});var fet=ye(()=>{var fg=kv(),Jtr=Nh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new fg.baseCalendar;Jtr(EQ.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=MQ(e+8+17*20,365);return[Math.floor(t/20)+1,MQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[cet(e+20,20),cet(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 MQ(e,t){return e-t*Math.floor(e/t)}function cet(e,t){return MQ(e-1,t)+1}fg.calendars.mayan=EQ});var det=ye(()=>{var Iw=kv(),$tr=Nh();function kQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kQ.prototype=new Iw.baseCalendar;var het=Iw.instance("gregorian");$tr(kQ.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,Iw.local.invalidYear||Iw.regionalOptions[""].invalidYear);return het.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,Iw.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,Iw.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)}});Iw.calendars.nanakshahi=kQ});var vet=ye(()=>{var Rw=kv(),Qtr=Nh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new Rw.baseCalendar;Qtr(CQ.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 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=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],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 oS=kv(),err=Nh();function q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function O9(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}q9.prototype=new oS.baseCalendar;err(q9.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,oS.local.invalidYear);return O9(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,oS.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,oS.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,O9(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)}});oS.calendars.persian=q9;oS.calendars.jalali=q9});var get=ye(()=>{var Dw=kv(),trr=Nh(),B9=Dw.instance();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new Dw.baseCalendar;trr(LQ.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,Dw.local.invalidYear),r=this._t2gYear(t.year());return B9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Dw.local.invalidYear),i=this._t2gYear(n.year());return B9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.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,Dw.local.invalidDate),i=this._t2gYear(n.year());return B9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=B9.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)}});Dw.calendars.taiwan=LQ});var met=ye(()=>{var Fw=kv(),rrr=Nh(),N9=Fw.instance();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new Fw.baseCalendar;rrr(PQ.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,Fw.local.invalidYear),r=this._t2gYear(t.year());return N9.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 N9.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 N9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=N9.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)}});Fw.calendars.thai=PQ});var yet=ye(()=>{var zw=kv(),irr=Nh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new zw.baseCalendar;irr(IQ.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,zw.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,zw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Zx[i]-Zx[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,zw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Zx[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-Zx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=zw.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=zw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});zw.calendars.ummalqura=IQ;var Zx=[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 xet=ye((vTr,_et)=>{"use strict";_et.exports=kv();tet();ret();iet();net();aet();oet();set();uet();fet();det();vet();pet();get();met();yet()});var ket=ye((pTr,Eet)=>{"use strict";var wet=xet(),AC=Dr(),Tet=fs(),nrr=Tet.EPOCHJD,arr=Tet.ONEDAY,FQ={valType:"enumerated",values:AC.sortObjectKeys(wet.calendars),editType:"calc",dflt:"gregorian"},Aet=function(e,t,r,n){var i={};return i[r]=FQ,AC.coerce(e,t,i,r,n)},orr=function(e,t,r,n){for(var i=0;i{"use strict";Cet.exports=ket()});var hrr=ye((mTr,Iet)=>{var Pet=uye();Pet.register([f1e(),$1e(),hxe(),Rxe(),Xxe(),Gbe(),r2e(),H2e(),_we(),t3e(),V3e(),eke(),Gke(),D6e(),wLe(),QLe(),TPe(),ZIe(),d8e(),P8e(),G8e(),iRe(),yRe(),DRe(),uFe(),CFe(),WBe(),WNe(),rVe(),kVe(),qGe(),QGe(),THe(),Fje(),Kje(),xWe(),CXe(),QXe(),DZe(),rKe(),EKe(),ZKe(),xJe(),DJe(),R$e(),$$e(),mQe(),$Qe(),Let()]);Iet.exports=Pet});return hrr();})(); /*! * pad-left * diff --git a/package-lock.json b/package-lock.json index 5867cccd72f..a99b700e49d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -454,7 +454,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -478,7 +477,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" } @@ -968,6 +966,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, + "peer": true, "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -982,6 +981,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", "dev": true, + "peer": true, "engines": { "node": ">=6.0.0" } @@ -991,6 +991,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, + "peer": true, "engines": { "node": ">=6.0.0" } @@ -1000,6 +1001,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", "dev": true, + "peer": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" @@ -1016,6 +1018,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, + "peer": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -1440,7 +1443,8 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@types/geojson": { "version": "7946.0.14", @@ -1670,6 +1674,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/helper-numbers": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6" @@ -1679,25 +1684,29 @@ "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", @@ -1708,13 +1717,15 @@ "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -1727,6 +1738,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", "dev": true, + "peer": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } @@ -1736,6 +1748,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", "dev": true, + "peer": true, "dependencies": { "@xtuc/long": "4.2.2" } @@ -1744,13 +1757,15 @@ "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -1767,6 +1782,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", @@ -1780,6 +1796,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-buffer": "1.12.1", @@ -1792,6 +1809,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@webassemblyjs/helper-api-error": "1.11.6", @@ -1806,6 +1824,7 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", "dev": true, + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.12.1", "@xtuc/long": "4.2.2" @@ -1815,13 +1834,15 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true + "dev": true, + "peer": true }, "node_modules/abs-svg-path": { "version": "0.1.1", @@ -1847,7 +1868,6 @@ "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1888,7 +1908,6 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2450,7 +2469,8 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "peer": true }, "node_modules/canvas": { "version": "3.1.0", @@ -2459,7 +2479,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "dependencies": { "node-addon-api": "^7.0.0", "prebuild-install": "^7.1.1" @@ -2613,6 +2632,7 @@ "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true, + "peer": true, "engines": { "node": ">=6.0" } @@ -3848,7 +3868,8 @@ "version": "1.5.6", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.6.tgz", "integrity": "sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/element-size": { "version": "1.1.1", @@ -4005,7 +4026,8 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", - "dev": true + "dev": true, + "peer": true }, "node_modules/es-object-atoms": { "version": "1.1.1", @@ -4071,7 +4093,6 @@ "integrity": "sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==", "dev": true, "hasInstallScript": true, - "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -4249,6 +4270,7 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "peer": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -4261,6 +4283,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", "dev": true, + "peer": true, "engines": { "node": ">=4.0" } @@ -4949,7 +4972,8 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.2", @@ -6224,6 +6248,7 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, + "peer": true, "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -6238,6 +6263,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "peer": true, "engines": { "node": ">=8" } @@ -6247,6 +6273,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -6382,7 +6409,6 @@ "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.2.tgz", "integrity": "sha512-C6SU/53LB31BEgRg+omznBEMY4SjHU3ricV6zBcAe1EeILKkeScr+fZXtaI5WyDbkVowJxxAI6h73NcFPmXolQ==", "dev": true, - "peer": true, "dependencies": { "@colors/colors": "1.5.0", "body-parser": "^1.19.0", @@ -6480,7 +6506,6 @@ "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-3.3.1.tgz", "integrity": "sha512-Nxh7eX9mOQMyK0VSsMxdod+bcqrR/ikrmEiWj5M6fwuQ7oI+YEF1FckaDsWfs6TIpULm9f0fTKMjF7XcrvWyqQ==", "dev": true, - "peer": true, "dependencies": { "jasmine-core": "^3.5.0" }, @@ -6610,6 +6635,7 @@ "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", "dev": true, + "peer": true, "engines": { "node": ">=6.11.5" } @@ -7052,7 +7078,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "peer": true }, "node_modules/merge2": { "version": "1.4.1", @@ -7414,7 +7441,8 @@ "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true + "dev": true, + "peer": true }, "node_modules/next-tick": { "version": "1.1.0", @@ -7458,7 +7486,8 @@ "version": "2.0.18", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", - "dev": true + "dev": true, + "peer": true }, "node_modules/node-source-walk": { "version": "7.0.0", @@ -8117,7 +8146,6 @@ "url": "https://github.com/sponsors/ai" } ], - "peer": true, "dependencies": { "nanoid": "^3.3.7", "picocolors": "^1.0.1", @@ -8431,6 +8459,7 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -9055,6 +9084,7 @@ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, + "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -9943,6 +9973,7 @@ "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "dev": true, + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.20", "jest-worker": "^27.4.5", @@ -9978,6 +10009,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -9990,6 +10022,7 @@ "resolved": "https://registry.npmjs.org/terser/-/terser-5.27.0.tgz", "integrity": "sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==", "dev": true, + "peer": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", @@ -10331,7 +10364,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -10468,6 +10500,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "escalade": "^3.1.2", "picocolors": "^1.0.1" @@ -10606,6 +10639,7 @@ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, + "peer": true, "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -10697,6 +10731,7 @@ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true, + "peer": true, "engines": { "node": ">=10.13.0" } @@ -10720,6 +10755,7 @@ "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", "dev": true, + "peer": true, "peerDependencies": { "acorn": "^8" } @@ -10729,6 +10765,7 @@ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, + "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" diff --git a/src/components/shapes/display_outlines.js b/src/components/shapes/display_outlines.js index f1b9e8d50f9..ebb09db38ca 100644 --- a/src/components/shapes/display_outlines.js +++ b/src/components/shapes/display_outlines.js @@ -39,7 +39,7 @@ module.exports = function displayOutlines(polygons, outlines, dragOptions, nCall // recursive call displayOutlines(polygons, outlines, dragOptions, nCalls++); - if(pointsOnEllipse(polygons[0]) || dragOptions.hasText) { + if(pointsOnEllipse(polygons[0]) || pointsOnRectangle(polygons[0]) || dragOptions.hasText) { update({redrawing: true}); } }